diff --git a/.nvmrc b/.nvmrc index e329619..2f3b977 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v16.19.1 +v18.15.0 \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 149eefd..b5a4fbf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,16 +7,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [2.5.0] - unreleased +### Changed + +- Prevent SoundPlugin from sending mute state before Application is loaded. +- Prevent CaptionsTogglePlugin from sending mute state before Application is loaded. +- updated .nvmrc to 18 + ### Added - Added a check to make sure plugin preloads are finished before opening up the application to avoid race conditions. -## [2.4.6] - unreleased +https://github.com/SpringRoll/SpringRollContainer/pull/169 + ### Fixed - added check to prevent sub sound channel volumes being set to 0 causing soundVolume to be set to 1 in the game -- Added/fixed logic in volume and toggle handlers to make sure everything stays in sync and respects user preferences better +- Added/fixed logic in `SoundPlugin` volume and toggle handlers to make sure everything stays in sync and respects user preferences better ## [2.4.5] 2023-09-08 diff --git a/README.md b/README.md index d6233b9..3218d83 100644 --- a/README.md +++ b/README.md @@ -678,6 +678,6 @@ There is no configuration required for the UserDataPlugin as it just handles req ## License -Copyright (c) 2022 [SpringRoll](http://github.com/SpringRoll) +Copyright (c) 2024 [SpringRoll](http://github.com/SpringRoll) Released under the MIT License. diff --git a/dist/SpringRoll-Container-umd.js b/dist/SpringRoll-Container-umd.js index 28c02c0..76f95e7 100644 --- a/dist/SpringRoll-Container-umd.js +++ b/dist/SpringRoll-Container-umd.js @@ -1,2 +1,2 @@ -!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).springroll=t.springroll||{})}(this,(function(t){"use strict";var e="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==e&&e,n="URLSearchParams"in e,r="Symbol"in e&&"iterator"in Symbol,o="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(t){return!1}}(),i="FormData"in e,s="ArrayBuffer"in e;if(s)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(t){return t&&a.indexOf(Object.prototype.toString.call(t))>-1};function l(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function c(t){return"string"!=typeof t&&(t=String(t)),t}function d(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return r&&(e[Symbol.iterator]=function(){return e}),e}function h(t){this.map={},t instanceof h?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function f(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function p(t){return new Promise((function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}}))}function v(t){var e=new FileReader,n=p(e);return e.readAsArrayBuffer(t),n}function y(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function g(){return this.bodyUsed=!1,this._initBody=function(t){var e;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:i&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:n&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():s&&o&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=y(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s&&(ArrayBuffer.prototype.isPrototypeOf(t)||u(t))?this._bodyArrayBuffer=y(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var t=f(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var t=f(this);return t||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(v)}),this.text=function(){var t=f(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,n=p(e);return e.readAsText(t),n}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r-1?e:t}(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache)){var r=/([?&])_=[^&]*/;if(r.test(this.url))this.url=this.url.replace(r,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function S(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(o))}})),e}function w(t,e){if(!(this instanceof w))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new h(e.headers),this.url=e.url||"",this._initBody(t)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},g.call(b.prototype),g.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},w.error=function(){var t=new w(null,{status:0,statusText:""});return t.type="error",t};var k=[301,302,303,307,308];w.redirect=function(t,e){if(-1===k.indexOf(e))throw new RangeError("Invalid status code");return new w(null,{status:e,headers:{location:t}})};var E=e.DOMException;try{new E}catch(t){(E=function(t,e){this.message=t,this.name=e;var n=Error(t);this.stack=n.stack}).prototype=Object.create(Error.prototype),E.prototype.constructor=E}function B(t,n){return new Promise((function(r,i){var a=new b(t,n);if(a.signal&&a.signal.aborted)return i(new E("Aborted","AbortError"));var u=new XMLHttpRequest;function l(){u.abort()}u.onload=function(){var t,e,n={status:u.status,statusText:u.statusText,headers:(t=u.getAllResponseHeaders()||"",e=new h,t.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t})).forEach((function(t){var n=t.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();e.append(r,o)}})),e)};n.url="responseURL"in u?u.responseURL:n.headers.get("X-Request-URL");var o="response"in u?u.response:u.responseText;setTimeout((function(){r(new w(o,n))}),0)},u.onerror=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},u.ontimeout=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},u.onabort=function(){setTimeout((function(){i(new E("Aborted","AbortError"))}),0)},u.open(a.method,function(t){try{return""===t&&e.location.href?e.location.href:t}catch(e){return t}}(a.url),!0),"include"===a.credentials?u.withCredentials=!0:"omit"===a.credentials&&(u.withCredentials=!1),"responseType"in u&&(o?u.responseType="blob":s&&a.headers.get("Content-Type")&&-1!==a.headers.get("Content-Type").indexOf("application/octet-stream")&&(u.responseType="arraybuffer")),!n||"object"!=typeof n.headers||n.headers instanceof h?a.headers.forEach((function(t,e){u.setRequestHeader(e,t)})):Object.getOwnPropertyNames(n.headers).forEach((function(t){u.setRequestHeader(t,c(n.headers[t]))})),a.signal&&(a.signal.addEventListener("abort",l),u.onreadystatechange=function(){4===u.readyState&&a.signal.removeEventListener("abort",l)}),u.send(void 0===a._bodyInit?null:a._bodyInit)}))}B.polyfill=!0,e.fetch||(e.fetch=B,e.Headers=h,e.Request=b,e.Response=w);var x="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},P=function(t){return t&&t.Math==Math&&t},L=P("object"==typeof globalThis&&globalThis)||P("object"==typeof window&&window)||P("object"==typeof self&&self)||P("object"==typeof x&&x)||function(){return this}()||Function("return this")(),_={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},O="object"==typeof document&&document.all,A={all:O,IS_HTMLDDA:void 0===O&&void 0!==O},C=A.all,V=A.IS_HTMLDDA?function(t){return"function"==typeof t||t===C}:function(t){return"function"==typeof t},D=V,M=A.all,T=A.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:D(t)||t===M}:function(t){return"object"==typeof t?null!==t:D(t)},I=T,R=L.document,j=I(R)&&I(R.createElement),N=function(t){return j?R.createElement(t):{}},K=N("span").classList,F=K&&K.constructor&&K.constructor.prototype,G=F===Object.prototype?void 0:F,U=function(t){try{return!!t()}catch(t){return!0}},H=!U((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),z=H,q=Function.prototype,W=q.call,X=z&&q.bind.bind(W,W),Y=z?X:function(t){return function(){return W.apply(t,arguments)}},J=Y,$=J({}.toString),Q=J("".slice),Z=function(t){return Q($(t),8,-1)},tt=Z,et=Y,nt=function(t){if("Function"===tt(t))return et(t)},rt=String,ot=function(t){try{return rt(t)}catch(t){return"Object"}},it=V,st=ot,at=TypeError,ut=function(t){if(it(t))return t;throw at(st(t)+" is not a function")},lt=ut,ct=H,dt=nt(nt.bind),ht=function(t,e){return lt(t),void 0===e?t:ct?dt(t,e):function(){return t.apply(e,arguments)}},ft=U,pt=Z,vt=Object,yt=Y("".split),gt=ft((function(){return!vt("z").propertyIsEnumerable(0)}))?function(t){return"String"==pt(t)?yt(t,""):vt(t)}:vt,mt=function(t){return null==t},bt=mt,St=TypeError,wt=function(t){if(bt(t))throw St("Can't call method on "+t);return t},kt=wt,Et=Object,Bt=function(t){return Et(kt(t))},xt=Math.ceil,Pt=Math.floor,Lt=Math.trunc||function(t){var e=+t;return(e>0?Pt:xt)(e)},_t=Lt,Ot=function(t){var e=+t;return e!=e||0===e?0:_t(e)},At=Ot,Ct=Math.min,Vt=function(t){return t>0?Ct(At(t),9007199254740991):0},Dt=function(t){return Vt(t.length)},Mt=Z,Tt=Array.isArray||function(t){return"Array"==Mt(t)},It={exports:{}},Rt=L,jt=Object.defineProperty,Nt=function(t,e){try{jt(Rt,t,{value:e,configurable:!0,writable:!0})}catch(n){Rt[t]=e}return e},Kt=Nt,Ft="__core-js_shared__",Gt=L[Ft]||Kt(Ft,{}),Ut=Gt;(It.exports=function(t,e){return Ut[t]||(Ut[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.28.0",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.28.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Ht,zt,qt=It.exports,Wt=Bt,Xt=Y({}.hasOwnProperty),Yt=Object.hasOwn||function(t,e){return Xt(Wt(t),e)},Jt=Y,$t=0,Qt=Math.random(),Zt=Jt(1..toString),te=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Zt(++$t+Qt,36)},ee="undefined"!=typeof navigator&&String(navigator.userAgent)||"",ne=L,re=ee,oe=ne.process,ie=ne.Deno,se=oe&&oe.versions||ie&&ie.version,ae=se&&se.v8;ae&&(zt=(Ht=ae.split("."))[0]>0&&Ht[0]<4?1:+(Ht[0]+Ht[1])),!zt&&re&&(!(Ht=re.match(/Edge\/(\d+)/))||Ht[1]>=74)&&(Ht=re.match(/Chrome\/(\d+)/))&&(zt=+Ht[1]);var ue=zt,le=ue,ce=U,de=!!Object.getOwnPropertySymbols&&!ce((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&le&&le<41})),he=de&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,fe=qt,pe=Yt,ve=te,ye=de,ge=he,me=L.Symbol,be=fe("wks"),Se=ge?me.for||me:me&&me.withoutSetter||ve,we=function(t){return pe(be,t)||(be[t]=ye&&pe(me,t)?me[t]:Se("Symbol."+t)),be[t]},ke={};ke[we("toStringTag")]="z";var Ee="[object z]"===String(ke),Be=Ee,xe=V,Pe=Z,Le=we("toStringTag"),_e=Object,Oe="Arguments"==Pe(function(){return arguments}()),Ae=Be?Pe:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=_e(t),Le))?n:Oe?Pe(e):"Object"==(r=Pe(e))&&xe(e.callee)?"Arguments":r},Ce=L,Ve=V,De=function(t,e){return arguments.length<2?(n=Ce[t],Ve(n)?n:void 0):Ce[t]&&Ce[t][e];var n},Me=V,Te=Gt,Ie=Y(Function.toString);Me(Te.inspectSource)||(Te.inspectSource=function(t){return Ie(t)});var Re=Te.inspectSource,je=Y,Ne=U,Ke=V,Fe=Ae,Ge=Re,Ue=function(){},He=[],ze=De("Reflect","construct"),qe=/^\s*(?:class|function)\b/,We=je(qe.exec),Xe=!qe.exec(Ue),Ye=function(t){if(!Ke(t))return!1;try{return ze(Ue,He,t),!0}catch(t){return!1}},Je=function(t){if(!Ke(t))return!1;switch(Fe(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Xe||!!We(qe,Ge(t))}catch(t){return!0}};Je.sham=!0;var $e=!ze||Ne((function(){var t;return Ye(Ye.call)||!Ye(Object)||!Ye((function(){t=!0}))||t}))?Je:Ye,Qe=Tt,Ze=$e,tn=T,en=we("species"),nn=Array,rn=function(t){var e;return Qe(t)&&(e=t.constructor,(Ze(e)&&(e===nn||Qe(e.prototype))||tn(e)&&null===(e=e[en]))&&(e=void 0)),void 0===e?nn:e},on=function(t,e){return new(rn(t))(0===e?0:e)},sn=ht,an=gt,un=Bt,ln=Dt,cn=on,dn=Y([].push),hn=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,s=7==t,a=5==t||i;return function(u,l,c,d){for(var h,f,p=un(u),v=an(p),y=sn(l,c),g=ln(v),m=0,b=d||cn,S=e?b(u,g):n||s?b(u,0):void 0;g>m;m++)if((a||m in v)&&(f=y(h=v[m],m,p),t))if(e)S[m]=f;else if(f)switch(t){case 3:return!0;case 5:return h;case 6:return m;case 2:dn(S,h)}else switch(t){case 4:return!1;case 7:dn(S,h)}return i?-1:r||o?o:S}},fn={forEach:hn(0),map:hn(1),filter:hn(2),some:hn(3),every:hn(4),find:hn(5),findIndex:hn(6),filterReject:hn(7)},pn=U,vn=function(t,e){var n=[][t];return!!n&&pn((function(){n.call(null,e||function(){return 1},1)}))},yn=fn.forEach,gn=vn("forEach")?[].forEach:function(t){return yn(this,t,arguments.length>1?arguments[1]:void 0)},mn=!U((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),bn={},Sn=N,wn=!mn&&!U((function(){return 7!=Object.defineProperty(Sn("div"),"a",{get:function(){return 7}}).a})),kn=mn&&U((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),En=T,Bn=String,xn=TypeError,Pn=function(t){if(En(t))return t;throw xn(Bn(t)+" is not an object")},Ln=H,_n=Function.prototype.call,On=Ln?_n.bind(_n):function(){return _n.apply(_n,arguments)},An=Y({}.isPrototypeOf),Cn=De,Vn=V,Dn=An,Mn=Object,Tn=he?function(t){return"symbol"==typeof t}:function(t){var e=Cn("Symbol");return Vn(e)&&Dn(e.prototype,Mn(t))},In=ut,Rn=mt,jn=function(t,e){var n=t[e];return Rn(n)?void 0:In(n)},Nn=On,Kn=V,Fn=T,Gn=TypeError,Un=On,Hn=T,zn=Tn,qn=jn,Wn=function(t,e){var n,r;if("string"===e&&Kn(n=t.toString)&&!Fn(r=Nn(n,t)))return r;if(Kn(n=t.valueOf)&&!Fn(r=Nn(n,t)))return r;if("string"!==e&&Kn(n=t.toString)&&!Fn(r=Nn(n,t)))return r;throw Gn("Can't convert object to primitive value")},Xn=TypeError,Yn=we("toPrimitive"),Jn=function(t,e){if(!Hn(t)||zn(t))return t;var n,r=qn(t,Yn);if(r){if(void 0===e&&(e="default"),n=Un(r,t,e),!Hn(n)||zn(n))return n;throw Xn("Can't convert object to primitive value")}return void 0===e&&(e="number"),Wn(t,e)},$n=Jn,Qn=Tn,Zn=function(t){var e=$n(t,"string");return Qn(e)?e:e+""},tr=mn,er=wn,nr=kn,rr=Pn,or=Zn,ir=TypeError,sr=Object.defineProperty,ar=Object.getOwnPropertyDescriptor,ur="enumerable",lr="configurable",cr="writable";bn.f=tr?nr?function(t,e,n){if(rr(t),e=or(e),rr(n),"function"==typeof t&&"prototype"===e&&"value"in n&&cr in n&&!n[cr]){var r=ar(t,e);r&&r[cr]&&(t[e]=n.value,n={configurable:lr in n?n[lr]:r[lr],enumerable:ur in n?n[ur]:r[ur],writable:!1})}return sr(t,e,n)}:sr:function(t,e,n){if(rr(t),e=or(e),rr(n),er)try{return sr(t,e,n)}catch(t){}if("get"in n||"set"in n)throw ir("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var dr=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},hr=bn,fr=dr,pr=mn?function(t,e,n){return hr.f(t,e,fr(1,n))}:function(t,e,n){return t[e]=n,t},vr=L,yr=_,gr=G,mr=gn,br=pr,Sr=function(t){if(t&&t.forEach!==mr)try{br(t,"forEach",mr)}catch(e){t.forEach=mr}};for(var wr in yr)yr[wr]&&Sr(vr[wr]&&vr[wr].prototype);Sr(gr);var kr=gt,Er=wt,Br=function(t){return kr(Er(t))},xr={},Pr=Ot,Lr=Math.max,_r=Math.min,Or=function(t,e){var n=Pr(t);return n<0?Lr(n+e,0):_r(n,e)},Ar=Br,Cr=Or,Vr=Dt,Dr=function(t){return function(e,n,r){var o,i=Ar(e),s=Vr(i),a=Cr(r,s);if(t&&n!=n){for(;s>a;)if((o=i[a++])!=o)return!0}else for(;s>a;a++)if((t||a in i)&&i[a]===n)return t||a||0;return!t&&-1}},Mr={includes:Dr(!0),indexOf:Dr(!1)},Tr={},Ir=Yt,Rr=Br,jr=Mr.indexOf,Nr=Tr,Kr=Y([].push),Fr=function(t,e){var n,r=Rr(t),o=0,i=[];for(n in r)!Ir(Nr,n)&&Ir(r,n)&&Kr(i,n);for(;e.length>o;)Ir(r,n=e[o++])&&(~jr(i,n)||Kr(i,n));return i},Gr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ur=Fr,Hr=Gr,zr=Object.keys||function(t){return Ur(t,Hr)},qr=mn,Wr=kn,Xr=bn,Yr=Pn,Jr=Br,$r=zr;xr.f=qr&&!Wr?Object.defineProperties:function(t,e){Yr(t);for(var n,r=Jr(e),o=$r(e),i=o.length,s=0;i>s;)Xr.f(t,n=o[s++],r[n]);return t};var Qr,Zr=De("document","documentElement"),to=te,eo=qt("keys"),no=function(t){return eo[t]||(eo[t]=to(t))},ro=Pn,oo=xr,io=Gr,so=Tr,ao=Zr,uo=N,lo="prototype",co="script",ho=no("IE_PROTO"),fo=function(){},po=function(t){return"<"+co+">"+t+""},vo=function(t){t.write(po("")),t.close();var e=t.parentWindow.Object;return t=null,e},yo=function(){try{Qr=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;yo="undefined"!=typeof document?document.domain&&Qr?vo(Qr):(e=uo("iframe"),n="java"+co+":",e.style.display="none",ao.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(po("document.F=Object")),t.close(),t.F):vo(Qr);for(var r=io.length;r--;)delete yo[lo][io[r]];return yo()};so[ho]=!0;var go=Object.create||function(t,e){var n;return null!==t?(fo[lo]=ro(t),n=new fo,fo[lo]=null,n[ho]=t):n=yo(),void 0===e?n:oo.f(n,e)},mo=we,bo=go,So=bn.f,wo=mo("unscopables"),ko=Array.prototype;null==ko[wo]&&So(ko,wo,{configurable:!0,value:bo(null)});var Eo,Bo,xo,Po=function(t){ko[wo][t]=!0},Lo={},_o=V,Oo=L.WeakMap,Ao=_o(Oo)&&/native code/.test(String(Oo)),Co=L,Vo=T,Do=pr,Mo=Yt,To=Gt,Io=no,Ro=Tr,jo="Object already initialized",No=Co.TypeError,Ko=Co.WeakMap;if(Ao||To.state){var Fo=To.state||(To.state=new Ko);Fo.get=Fo.get,Fo.has=Fo.has,Fo.set=Fo.set,Eo=function(t,e){if(Fo.has(t))throw No(jo);return e.facade=t,Fo.set(t,e),e},Bo=function(t){return Fo.get(t)||{}},xo=function(t){return Fo.has(t)}}else{var Go=Io("state");Ro[Go]=!0,Eo=function(t,e){if(Mo(t,Go))throw No(jo);return e.facade=t,Do(t,Go,e),e},Bo=function(t){return Mo(t,Go)?t[Go]:{}},xo=function(t){return Mo(t,Go)}}var Uo={set:Eo,get:Bo,has:xo,enforce:function(t){return xo(t)?Bo(t):Eo(t,{})},getterFor:function(t){return function(e){var n;if(!Vo(e)||(n=Bo(e)).type!==t)throw No("Incompatible receiver, "+t+" required");return n}}},Ho={},zo={},qo={}.propertyIsEnumerable,Wo=Object.getOwnPropertyDescriptor,Xo=Wo&&!qo.call({1:2},1);zo.f=Xo?function(t){var e=Wo(this,t);return!!e&&e.enumerable}:qo;var Yo=mn,Jo=On,$o=zo,Qo=dr,Zo=Br,ti=Zn,ei=Yt,ni=wn,ri=Object.getOwnPropertyDescriptor;Ho.f=Yo?ri:function(t,e){if(t=Zo(t),e=ti(e),ni)try{return ri(t,e)}catch(t){}if(ei(t,e))return Qo(!Jo($o.f,t,e),t[e])};var oi={exports:{}},ii=mn,si=Yt,ai=Function.prototype,ui=ii&&Object.getOwnPropertyDescriptor,li=si(ai,"name"),ci={EXISTS:li,PROPER:li&&"something"===function(){}.name,CONFIGURABLE:li&&(!ii||ii&&ui(ai,"name").configurable)},di=Y,hi=U,fi=V,pi=Yt,vi=mn,yi=ci.CONFIGURABLE,gi=Re,mi=Uo.enforce,bi=Uo.get,Si=String,wi=Object.defineProperty,ki=di("".slice),Ei=di("".replace),Bi=di([].join),xi=vi&&!hi((function(){return 8!==wi((function(){}),"length",{value:8}).length})),Pi=String(String).split("String"),Li=oi.exports=function(t,e,n){"Symbol("===ki(Si(e),0,7)&&(e="["+Ei(Si(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!pi(t,"name")||yi&&t.name!==e)&&(vi?wi(t,"name",{value:e,configurable:!0}):t.name=e),xi&&n&&pi(n,"arity")&&t.length!==n.arity&&wi(t,"length",{value:n.arity});try{n&&pi(n,"constructor")&&n.constructor?vi&&wi(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=mi(t);return pi(r,"source")||(r.source=Bi(Pi,"string"==typeof e?e:"")),t};Function.prototype.toString=Li((function(){return fi(this)&&bi(this).source||gi(this)}),"toString");var _i=oi.exports,Oi=V,Ai=bn,Ci=_i,Vi=Nt,Di=function(t,e,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:e;if(Oi(n)&&Ci(n,i,r),r.global)o?t[e]=n:Vi(e,n);else{try{r.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=n:Ai.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},Mi={},Ti=Fr,Ii=Gr.concat("length","prototype");Mi.f=Object.getOwnPropertyNames||function(t){return Ti(t,Ii)};var Ri={};Ri.f=Object.getOwnPropertySymbols;var ji,Ni,Ki,Fi=De,Gi=Mi,Ui=Ri,Hi=Pn,zi=Y([].concat),qi=Fi("Reflect","ownKeys")||function(t){var e=Gi.f(Hi(t)),n=Ui.f;return n?zi(e,n(t)):e},Wi=Yt,Xi=qi,Yi=Ho,Ji=bn,$i=U,Qi=V,Zi=/#|\.prototype\./,ts=function(t,e){var n=ns[es(t)];return n==os||n!=rs&&(Qi(e)?$i(e):!!e)},es=ts.normalize=function(t){return String(t).replace(Zi,".").toLowerCase()},ns=ts.data={},rs=ts.NATIVE="N",os=ts.POLYFILL="P",is=ts,ss=L,as=Ho.f,us=pr,ls=Di,cs=Nt,ds=function(t,e,n){for(var r=Xi(e),o=Ji.f,i=Yi.f,s=0;s=e.length?(t.target=void 0,Ba(void 0,!0)):Ba("keys"==n?r:"values"==n?e[r]:[r,e[r]],!1)}),"values"),Aa=Sa.Arguments=Sa.Array;if(ba("keys"),ba("values"),ba("entries"),xa&&"values"!==Aa.name)try{ka(Aa,"name",{value:"values"})}catch(t){}var Ca=L,Va=_,Da=G,Ma=Oa,Ta=pr,Ia=we,Ra=Ia("iterator"),ja=Ia("toStringTag"),Na=Ma.values,Ka=function(t,e){if(t){if(t[Ra]!==Na)try{Ta(t,Ra,Na)}catch(e){t[Ra]=Na}if(t[ja]||Ta(t,ja,e),Va[e])for(var n in Ma)if(t[n]!==Ma[n])try{Ta(t,n,Ma[n])}catch(e){t[n]=Ma[n]}}};for(var Fa in Va)Ka(Ca[Fa]&&Ca[Fa].prototype,Fa);Ka(Da,"DOMTokenList");var Ga=L;function Ua(){Ua=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function l(t,e,n,o){var i=e&&e.prototype instanceof h?e:h,s=Object.create(i.prototype),a=new x(o||[]);return r(s,"_invoke",{value:w(t,n,a)}),s}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var d={};function h(){}function f(){}function p(){}var v={};u(v,i,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(P([])));g&&g!==e&&n.call(g,i)&&(v=g);var m=p.prototype=h.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function o(r,i,s,a){var u=c(t[r],t,i);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==typeof d&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){o("next",t,s,a)}),(function(t){o("throw",t,s,a)})):e.resolve(d).then((function(t){l.value=t,s(l)}),(function(t){return o("throw",t,s,a)}))}a(u.arg)}var i;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){o(t,n,e,r)}))}return i=i?i.then(r,r):r()}})}function w(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return L()}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var a=k(s,n);if(a){if(a===d)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=c(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function k(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,k(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=c(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function B(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function P(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var a=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(a&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),B(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;B(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:P(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function Ha(t){return Ha="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ha(t)}function za(t,e,n,r,o,i,s){try{var a=t[i](s),u=a.value}catch(t){return void n(t)}a.done?e(u):Promise.resolve(u).then(r,o)}function qa(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function s(t){za(i,r,o,s,a,"next",t)}function a(t){za(i,r,o,s,a,"throw",t)}s(void 0)}))}}function Wa(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Xa(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,i=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}var su=fs,au=Mr.indexOf,uu=vn,lu=nt([].indexOf),cu=!!lu&&1/lu([1],1,-0)<0;su({target:"Array",proto:!0,forced:cu||!uu("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return cu?lu(this,t,e)||0:au(this,t,e)}});var du=TypeError,hu=Zn,fu=bn,pu=dr,vu=function(t,e,n){var r=hu(e);r in t?fu.f(t,r,pu(0,n)):t[r]=n},yu=U,gu=ue,mu=we("species"),bu=function(t){return gu>=51||!yu((function(){var e=[];return(e.constructor={})[mu]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Su=fs,wu=U,ku=Tt,Eu=T,Bu=Bt,xu=Dt,Pu=function(t){if(t>9007199254740991)throw du("Maximum allowed index exceeded");return t},Lu=vu,_u=on,Ou=bu,Au=ue,Cu=we("isConcatSpreadable"),Vu=Au>=51||!wu((function(){var t=[];return t[Cu]=!1,t.concat()[0]!==t})),Du=function(t){if(!Eu(t))return!1;var e=t[Cu];return void 0!==e?!!e:ku(t)};Su({target:"Array",proto:!0,arity:1,forced:!Vu||!Ou("concat")},{concat:function(t){var e,n,r,o,i,s=Bu(this),a=_u(s,0),u=0;for(e=-1,r=arguments.length;eo;)for(var a,u=Gu(arguments[o++]),l=i?zu(ju(u),i(u)):ju(u),c=l.length,d=0;c>d;)a=l[d++],Mu&&!Iu(s,u,a)||(n[a]=u[a]);return n}:Uu,Wu=qu;fs({target:"Object",stat:!0,arity:2,forced:Object.assign!==Wu},{assign:Wu});var Xu=Ae,Yu=Ee?{}.toString:function(){return"[object "+Xu(this)+"]"};Ee||Di(Object.prototype,"toString",Yu,{unsafe:!0});var Ju,$u,Qu,Zu,tl="undefined"!=typeof process&&"process"==Z(process),el=_i,nl=bn,rl=function(t,e,n){return n.get&&el(n.get,e,{getter:!0}),n.set&&el(n.set,e,{setter:!0}),nl.f(t,e,n)},ol=De,il=rl,sl=mn,al=we("species"),ul=function(t){var e=ol(t);sl&&e&&!e[al]&&il(e,al,{configurable:!0,get:function(){return this}})},ll=An,cl=TypeError,dl=function(t,e){if(ll(e,t))return t;throw cl("Incorrect invocation")},hl=$e,fl=ot,pl=TypeError,vl=Pn,yl=function(t){if(hl(t))return t;throw pl(fl(t)+" is not a constructor")},gl=mt,ml=we("species"),bl=H,Sl=Function.prototype,wl=Sl.apply,kl=Sl.call,El="object"==typeof Reflect&&Reflect.apply||(bl?kl.bind(wl):function(){return kl.apply(wl,arguments)}),Bl=Y([].slice),xl=TypeError,Pl=/(?:ipad|iphone|ipod).*applewebkit/i.test(ee),Ll=L,_l=El,Ol=ht,Al=V,Cl=Yt,Vl=U,Dl=Zr,Ml=Bl,Tl=N,Il=function(t,e){if(ti;i++)if((a=g(t[i]))&&vh(wh,a))return a;return new Sh(!1)}r=yh(t,o)}for(u=h?t.next:r.next;!(l=ch(u,r)).done;){try{a=g(l.value)}catch(t){mh(r,"throw",t)}if("object"==typeof a&&a&&vh(wh,a))return a}return new Sh(!1)},Eh=we("iterator"),Bh=!1;try{var xh=0,Ph={next:function(){return{done:!!xh++}},return:function(){Bh=!0}};Ph[Eh]=function(){return this},Array.from(Ph,(function(){throw 2}))}catch(t){}var Lh=function(t,e){if(!e&&!Bh)return!1;var n=!1;try{var r={};r[Eh]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n},_h=_c,Oh=Hc.CONSTRUCTOR||!Lh((function(t){_h.all(t).then(void 0,(function(){}))})),Ah=On,Ch=ut,Vh=zc,Dh=Lc,Mh=kh;fs({target:"Promise",stat:!0,forced:Oh},{all:function(t){var e=this,n=Vh.f(e),r=n.resolve,o=n.reject,i=Dh((function(){var n=Ch(e.resolve),i=[],s=0,a=1;Mh(t,(function(t){var u=s++,l=!1;a++,Ah(n,e,t).then((function(t){l||(l=!0,i[u]=t,--a||r(i))}),o)})),--a||r(i)}));return i.error&&o(i.value),n.promise}});var Th=fs,Ih=Hc.CONSTRUCTOR,Rh=_c,jh=De,Nh=V,Kh=Di,Fh=Rh&&Rh.prototype;if(Th({target:"Promise",proto:!0,forced:Ih,real:!0},{catch:function(t){return this.then(void 0,t)}}),Nh(Rh)){var Gh=jh("Promise").prototype.catch;Fh.catch!==Gh&&Kh(Fh,"catch",Gh,{unsafe:!0})}var Uh=On,Hh=ut,zh=zc,qh=Lc,Wh=kh;fs({target:"Promise",stat:!0,forced:Oh},{race:function(t){var e=this,n=zh.f(e),r=n.reject,o=qh((function(){var o=Hh(e.resolve);Wh(t,(function(t){Uh(o,e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var Xh=On,Yh=zc;fs({target:"Promise",stat:!0,forced:Hc.CONSTRUCTOR},{reject:function(t){var e=Yh.f(this);return Xh(e.reject,void 0,t),e.promise}});var Jh=Pn,$h=T,Qh=zc,Zh=fs,tf=Hc.CONSTRUCTOR,ef=function(t,e){if(Jh(t),$h(e)&&e.constructor===t)return e;var n=Qh.f(t);return(0,n.resolve)(e),n.promise};De("Promise"),Zh({target:"Promise",stat:!0,forced:tf},{resolve:function(t){return ef(this,t)}});var nf,rf,of=Ae,sf=String,af=function(t){if("Symbol"===of(t))throw TypeError("Cannot convert a Symbol value to a string");return sf(t)},uf=Pn,lf=function(){var t=uf(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},cf=U,df=L.RegExp,hf=cf((function(){var t=df("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),ff=hf||cf((function(){return!df("a","y").sticky})),pf={BROKEN_CARET:hf||cf((function(){var t=df("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:ff,UNSUPPORTED_Y:hf},vf=U,yf=L.RegExp,gf=vf((function(){var t=yf(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),mf=U,bf=L.RegExp,Sf=mf((function(){var t=bf("(?b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$c")})),wf=On,kf=Y,Ef=af,Bf=lf,xf=pf,Pf=go,Lf=Uo.get,_f=gf,Of=Sf,Af=qt("native-string-replace",String.prototype.replace),Cf=RegExp.prototype.exec,Vf=Cf,Df=kf("".charAt),Mf=kf("".indexOf),Tf=kf("".replace),If=kf("".slice),Rf=(rf=/b*/g,wf(Cf,nf=/a/,"a"),wf(Cf,rf,"a"),0!==nf.lastIndex||0!==rf.lastIndex),jf=xf.BROKEN_CARET,Nf=void 0!==/()??/.exec("")[1];(Rf||Nf||jf||_f||Of)&&(Vf=function(t){var e,n,r,o,i,s,a,u=this,l=Lf(u),c=Ef(t),d=l.raw;if(d)return d.lastIndex=u.lastIndex,e=wf(Vf,d,c),u.lastIndex=d.lastIndex,e;var h=l.groups,f=jf&&u.sticky,p=wf(Bf,u),v=u.source,y=0,g=c;if(f&&(p=Tf(p,"y",""),-1===Mf(p,"g")&&(p+="g"),g=If(c,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==Df(c,u.lastIndex-1))&&(v="(?: "+v+")",g=" "+g,y++),n=new RegExp("^(?:"+v+")",p)),Nf&&(n=new RegExp("^"+v+"$(?!\\s)",p)),Rf&&(r=u.lastIndex),o=wf(Cf,f?n:u,g),f?o?(o.input=If(o.input,y),o[0]=If(o[0],y),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:Rf&&o&&(u.lastIndex=u.global?o.index+o[0].length:r),Nf&&o&&o.length>1&&wf(Af,o[0],n,(function(){for(i=1;i0||navigator.pointerEnabled&&navigator.maxTouchPoints>0)}},{key:"basic",value:function(){return t.canvas?t.webaudio||t.htmlAudio?null:"Browser does not support WebAudio or HTMLAudio":"Browser does not support canvas"}},{key:"test",value:function(e){var n=this.basic();if(n)return n;var r=e.features,o=e.ui,i=e.sizes;for(var s in r)if(!0===r[s]&&!t[s])return"Browser does not support "+s;if(!o.touch&&t.touch)return"Game does not support touch input";var a=Math.max(window.screen.width,window.screen.height);return!i.xsmall&&a<480?"Game doesn't support extra small screens":!i.small&&a<768?"Game doesn't support small screens":!i.medium&&a<992?"Game doesn't support medium screens":!i.large&&a<1200?"Game doesn't support large screens":!i.xlarge&&a>=1200?"Game doesn't support extra large screens":null}},{key:"info",get:function(){return"Browser Feature Detection\n\t\t\t\tCanvas support ".concat(t.canvas?"✓":"×","\n\t\t\t\tWebGL support ").concat(t.webgl?"✓":"×","\n\t\t\t\tWebAudio support ").concat(t.webAudio?"✓":"×")}}]),t}(),Ff=Y,Gf=Ot,Uf=af,Hf=wt,zf=Ff("".charAt),qf=Ff("".charCodeAt),Wf=Ff("".slice),Xf=function(t){return function(e,n){var r,o,i=Uf(Hf(e)),s=Gf(n),a=i.length;return s<0||s>=a?t?"":void 0:(r=qf(i,s))<55296||r>56319||s+1===a||(o=qf(i,s+1))<56320||o>57343?t?zf(i,s):r:t?Wf(i,s,s+2):o-56320+(r-55296<<10)+65536}},Yf={codeAt:Xf(!1),charAt:Xf(!0)}.charAt,Jf=af,$f=Uo,Qf=ya,Zf=ga,tp="String Iterator",ep=$f.set,np=$f.getterFor(tp);Qf(String,"String",(function(t){ep(this,{type:tp,string:Jf(t),index:0})}),(function(){var t,e=np(this),n=e.string,r=e.index;return r>=n.length?Zf(void 0,!0):(t=Yf(n,r),e.index+=t.length,Zf(t,!1))}));var rp=fn.filter;fs({target:"Array",proto:!0,forced:!bu("filter")},{filter:function(t){return rp(this,t,arguments.length>1?arguments[1]:void 0)}});var op=fs,ip=fn.find,sp=Po,ap="find",up=!0;function lp(t,e){return t(e={exports:{}},e.exports),e.exports}ap in[]&&Array(1)[ap]((function(){up=!1})),op({target:"Array",proto:!0,forced:up},{find:function(t){return ip(this,t,arguments.length>1?arguments[1]:void 0)}}),sp(ap);var cp=lp((function(t){function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function n(r){return"function"==typeof Symbol&&"symbol"===e(Symbol.iterator)?t.exports=n=function(t){return e(t)}:t.exports=n=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":e(t)},n(r)}t.exports=n})),dp=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")};function hp(t,e){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:0;this._listeners[t]||(this._listeners[t]=[]),e._priority=parseInt(n)||0,-1===this._listeners[t].indexOf(e)&&(this._listeners[t].push(e),this._listeners[t].length>1&&this._listeners[t].sort(this.listenerSorter))}},{key:"listenerSorter",value:function(t,e){return t._priority-e._priority}},{key:"off",value:function(t,e){if(void 0!==this._listeners[t])if(void 0!==e){var n=this._listeners[t].indexOf(e);-11&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof t&&(t={type:t,data:"object"===cp(e)&&null!==e?e:{}}),void 0!==this._listeners[t.type])for(var n=this._listeners[t.type].length-1;n>=0;n--)this._listeners[t.type][n](t)}},{key:"destroy",value:function(){this._listeners={}}}]),t}(),vp=lp((function(t){var e=function(t){var e,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function u(t,e,n,r){var o=e&&e.prototype instanceof v?e:v,i=Object.create(o.prototype),s=new L(r||[]);return i._invoke=function(t,e,n){var r=c;return function(o,i){if(r===h)throw new Error("Generator is already running");if(r===f){if("throw"===o)throw i;return O()}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var a=B(s,n);if(a){if(a===p)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===c)throw r=f,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var u=l(t,e,n);if("normal"===u.type){if(r=n.done?f:d,u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=f,n.method="throw",n.arg=u.arg)}}}(t,n,s),i}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var c="suspendedStart",d="suspendedYield",h="executing",f="completed",p={};function v(){}function y(){}function g(){}var m={};m[i]=function(){return this};var b=Object.getPrototypeOf,S=b&&b(b(_([])));S&&S!==n&&r.call(S,i)&&(m=S);var w=g.prototype=v.prototype=Object.create(m);function k(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function E(t){function e(n,o,i,s){var a=l(t[n],t,o);if("throw"!==a.type){var u=a.arg,c=u.value;return c&&"object"==typeof c&&r.call(c,"__await")?Promise.resolve(c.__await).then((function(t){e("next",t,i,s)}),(function(t){e("throw",t,i,s)})):Promise.resolve(c).then((function(t){u.value=t,i(u)}),(function(t){return e("throw",t,i,s)}))}s(a.arg)}var n;this._invoke=function(t,r){function o(){return new Promise((function(n,o){e(t,r,n,o)}))}return n=n?n.then(o,o):o()}}function B(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,B(t,n),"throw"===n.method))return p;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var o=l(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,p;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,p):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function _(t){if(t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,s=function n(){for(;++o=0;--i){var s=this.tryEntries[i],a=s.completion;if("root"===s.tryLoc)return o("end");if(s.tryLoc<=this.prev){var u=r.call(s,"catchLoc"),l=r.call(s,"finallyLoc");if(u&&l){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:_(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),p}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}})),yp=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},gp=function(t,e){return!e||"object"!==cp(e)&&"function"!=typeof e?yp(t):e},mp=lp((function(t){function e(n){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},e(n)}t.exports=e})),bp=lp((function(t){function e(n,r,o){return"undefined"!=typeof Reflect&&Reflect.get?t.exports=e=Reflect.get:t.exports=e=function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=mp(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}},e(n,r,o||n)}t.exports=e})),Sp=lp((function(t){function e(n,r){return t.exports=e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},e(n,r)}t.exports=e})),wp=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100*Math.random()|0;return dp(this,e),(t=gp(this,mp(e).call(this))).id="BELLHOP:".concat(n),t.connected=!1,t.isChild=!0,t.connecting=!1,t.debug=!1,t.origin="*",t._sendLater=[],t.iframe=null,t.receive=t.receive.bind(yp(t)),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Sp(t,e)}(e,pp),fp(e,[{key:"receive",value:function(t){if(this.target===t.source)if(this.logDebugMessage(!0,t),"connected"===t.data)this.onConnectionReceived(t.data);else{var e=t.data;if("string"==typeof e)try{e=JSON.parse(e)}catch(t){console.warn("Bellhop error: ",t)}this.connected&&"object"===cp(e)&&e.type&&this.trigger(e)}}},{key:"onConnectionReceived",value:function(t){if(this.connecting=!1,this.connected=!0,!this.isChild){if(!this.target)return;this.target.postMessage(t,this.origin)}for(var e=0;e1&&void 0!==arguments[1]?arguments[1]:"*";this.connecting||(this.disconnect(),this.connecting=!0,t instanceof HTMLIFrameElement&&(this.iframe=t),this.isChild=void 0===t,this.supported=!0,this.isChild&&(this.supported=window!=t),this.origin=e,window.addEventListener("message",this.receive),this.isChild&&(window===this.target?this.trigger("failed"):this.target.postMessage("connected",this.origin)))}},{key:"disconnect",value:function(){this.connected=!1,this.connecting=!1,this.origin=null,this.iframe=null,this.isChild=!0,this._sendLater.length=0,window.removeEventListener("message",this.receive)}},{key:"send",value:function(t){if("string"!=typeof t)throw"The event type must be a string";var e={type:t,data:arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}};this.logDebugMessage(!1,e),this.connecting?this._sendLater.push(e):this.target.postMessage(JSON.stringify(e),this.origin)}},{key:"fetch",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!this.connecting&&!this.connected)throw"No connection, please call connect() first";this.on(t,(function t(r){o&&n.off(r.type,t),e(r)})),this.send(t,r)}},{key:"respond",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this;this.on(t,(function t(o){return vp.async((function(i){for(;;)switch(i.prev=i.next){case 0:if(n&&r.off(o,t),"function"!=typeof e){i.next=10;break}return i.t0=r,i.t1=o.type,i.next=6,vp.awrap(e());case 6:i.t2=i.sent,i.t0.send.call(i.t0,i.t1,i.t2),i.next=11;break;case 10:r.send(o.type,e);case 11:case"end":return i.stop()}}))}))}},{key:"logDebugMessage",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1?arguments[1]:void 0;this.debug&&"function"==typeof this.debug?this.debug({isChild:this.isChild,received:t,message:e}):this.debug&&console.log("Bellhop Instance (".concat(this.isChild?"Child":"Parent",") ").concat(t?"Receieved":"Sent"),e)}},{key:"destroy",value:function(){bp(mp(e.prototype),"destroy",this).call(this),this.disconnect(),this._sendLater.length=0}},{key:"target",get:function(){return this.isChild?window.parent:this.iframe.contentWindow}}]),e}(),kp=function(){function t(e){var n=e.plugins,r=void 0===n?[]:n;Wa(this,t),this.client=new wp,this.preloading=!0,this.client.hidden=this.client.receive.bind(this.client),this.client.hiddenSend=this.client.send.bind(this.client),this.client.receive=function(t){this.hidden(t)}.bind(this.client),this.client.send=function(t,e){this.hiddenSend(t,e)}.bind(this.client),this.plugins=r}return Ya(t,[{key:"setupPlugins",value:function(){for(var t=this,e=[],n=function(n){if(!t.plugins[n].preload)return"continue";e.push(t.plugins[n].preload(t).catch(function(t){this.plugins[n].preloadFailed=!0,console.warn(this.plugins[n].name,"Preload Failed:",t)}.bind(t)))},r=0,o=this.plugins.length;r1&&void 0!==arguments[1]?arguments[1]:{},i=o.plugins,s=o.context,a=void 0===s?{}:s;if(Wa(this,r),(e=n.call(this,{plugins:i})).iframe=t instanceof HTMLIFrameElement?t:document.querySelector(t),e.iframe.style.backgroundColor="black",null===e.iframe)throw new Error("No iframe was found with the provided selector");return e.loaded=!1,e.loading=!1,e.release=null,e._context=a,e.onLoading=e.onLoading.bind(Za(e)),e.onLoadDone=e.onLoadDone.bind(Za(e)),e.onLoadDone=e.onLoadDone.bind(Za(e)),e.onEndGame=e.onEndGame.bind(Za(e)),e.onLocalError=e.onLocalError.bind(Za(e)),e.initClient(),e.setupPlugins(),e}return Ya(r,[{key:"onLoading",value:function(){this.client.trigger("opening")}},{key:"onLoadDone",value:function(){this.loading=!1,this.loaded=!0,this.iframe.classList.remove("loading"),this.client.trigger("opened")}},{key:"onEndGame",value:function(){this.reset()}},{key:"onLocalError",value:function(t){console.error("SpringRoll Container error: ",t,(new Error).stack)}},{key:"reset",value:function(){(this.loaded||this.loading)&&this.client.trigger("closed"),this.loaded=!1,this.loading=!1,this.iframe.setAttribute("src",""),this.iframe.classList.remove("loading")}},{key:"initClient",value:function(){this.client.on("loading",this.onLoading),this.client.on("loaded",this.onLoadDone),this.client.on("loadDone",this.onLoadDone),this.client.on("endGame",this.onEndGame),this.client.on("localError",this.onLocalError),this.client.connect(this.iframe)}},{key:"_onCloseFailed",value:function(){this.reset()}},{key:"_internalOpen",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.singlePlay,o=void 0!==r&&r,i=n.playOptions,s=void 0===i?null:i;if(this.preloading)this.client.on("preloadsFinished",(function(){e._internalOpen(t,{singlePlay:o,playOptions:s})}));else{var a={singlePlay:o,playOptions:s};this.reset(),this.loading=!0,this.initClient();var u=Kf.basic();u&&(console.error("ERROR:",u),this.client.trigger("unsupported"));var l=t;if(null!==a.playOptions){var c="playOptions="+encodeURIComponent(JSON.stringify(a.playOptions));l=-1===t.indexOf("?")?"".concat(t,"?").concat(c):"".concat(t,"&").concat(c)}this.iframe.classList.add("loading"),this.iframe.setAttribute("src",l),this.client.respond("singlePlay",o),this.client.respond("playOptions",s),this.client.trigger("open")}}},{key:"openPath",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"object"!==Ha(e)&&(console.warn("SpringRoll Container.openPath was passed a invalid options parameter. Using default parameters instead"),e={}),this._internalOpen(t,Object.assign({singlePlay:!1,playOptions:{}},e))}},{key:"openRemote",value:(e=qa(Ua().mark((function t(e){var n,r,o,i,s,a,u,l,c,d,h,f=arguments;return Ua().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=(n=f.length>1&&void 0!==f[1]?f[1]:{}).query,o=void 0===r?"":r,i=n.singlePlay,s=void 0!==i&&i,a=n.playOptions,u=void 0===a?null:a,this.release=null,t.next=4,fetch(e,{headers:{"Content-Type":"application/json"}});case 4:return l=t.sent,t.next=7,l.json();case 7:if((c=t.sent).success){t.next=10;break}throw new Error(c.error);case 10:if(d=c.data,!(h=Kf.test(d.capabilities))){t.next=15;break}throw this.client.trigger("unsupported",{error:h}),new Error(h);case 15:this.release=d,this._internalOpen(d.url+o,{singlePlay:s,playOptions:u});case 17:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"destroy",value:function(){this.reset(),this.iframe=null,this.options=null,this.release=null}},{key:"close",value:function(){this.loading||this.loaded?(this.client.trigger("close"),this.client.send("close")):this.reset()}},{key:"context",get:function(){return this._context},set:function(t){"object"===Ha(t)?this._context=t:console.error("[SpringRollContainer] Context: new context provided is not an object")}}],[{key:"version",get:function(){return"2.4.6"}}]),r}(kp),Bp=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};Wa(this,t),this._onFocus=e,this._onBlur=n,this.onFocus=function(t){this.enabled&&this._onFocus(t)}.bind(this),this.onBlur=function(t){this.enabled&&this._onBlur(t)}.bind(this),this._enabled=!1,this.enabled=!0,this.onToggle=this.onToggle.bind(this)}return Ya(t,[{key:"destroy",value:function(){this.enabled=!1,this.onToggle=null,this.onFocus=null,this.onBlur=null}},{key:"onToggle",value:function(t){this.enabled&&(document.hidden?this.onBlur(t):this.onFocus(t))}},{key:"enabled",get:function(){return this._enabled},set:function(t){this._enabled=t,document.removeEventListener("visibilitychange",this.onToggle,!1),window.removeEventListener("blur",this.onBlur,!1),window.removeEventListener("focus",this.onFocus,!1),window.removeEventListener("pagehide",this.onBlur,!1),window.removeEventListener("pageshow",this.onFocus,!1),window.removeEventListener("visibilitychange",this.onToggle,!1),this._enabled&&(document.addEventListener("visibilitychange",this.onToggle,!1),window.addEventListener("blur",this.onBlur,!1),window.addEventListener("focus",this.onFocus,!1),window.addEventListener("pagehide",this.onBlur,!1),window.addEventListener("pageshow",this.onFocus,!1),window.addEventListener("visibilitychange",this.onToggle,!1))}}]),t}(),xp=Mr.includes,Pp=Po;fs({target:"Array",proto:!0,forced:U((function(){return!Array(1).includes()}))},{includes:function(t){return xp(this,t,arguments.length>1?arguments[1]:void 0)}}),Pp("includes");var Lp="\t\n\v\f\r                 \u2028\u2029\ufeff",_p=wt,Op=af,Ap=Lp,Cp=Y("".replace),Vp=RegExp("^["+Ap+"]+"),Dp=RegExp("(^|[^"+Ap+"])["+Ap+"]+$"),Mp=function(t){return function(e){var n=Op(_p(e));return 1&t&&(n=Cp(n,Vp,"")),2&t&&(n=Cp(n,Dp,"$1")),n}},Tp={start:Mp(1),end:Mp(2),trim:Mp(3)},Ip=ci.PROPER,Rp=U,jp=Lp,Np=Tp.trim;fs({target:"String",proto:!0,forced:function(t){return Rp((function(){return!!jp[t]()||"​…᠎"!=="​…᠎"[t]()||Ip&&jp[t].name!==t}))}("trim")},{trim:function(){return Np(this)}});var Kp=On,Fp=Yt,Gp=An,Up=lf,Hp=RegExp.prototype,zp=ci.PROPER,qp=Di,Wp=Pn,Xp=af,Yp=U,Jp=function(t){var e=t.flags;return void 0!==e||"flags"in Hp||Fp(t,"flags")||!Gp(Hp,t)?e:Kp(Up,t)},$p="toString",Qp=RegExp.prototype[$p],Zp=Yp((function(){return"/a/b"!=Qp.call({source:"a",flags:"b"})})),tv=zp&&Qp.name!=$p;(Zp||tv)&&qp(RegExp.prototype,$p,(function(){var t=Wp(this);return"/"+Xp(t.source)+"/"+Xp(Jp(t))}),{unsafe:!0});var ev=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";Wa(this,t),this.db=null,this.dbName=e}return Ya(t,[{key:"IDBOpen",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=n?indexedDB.open(t,n):indexedDB.open(t);s.onsuccess=function(t){e.db=t.target.result,e.db.version==n|null==n&&i({result:"Success: IDBOpen",success:!0})},s.onerror=function(){i({result:s.error.toString(),success:!1})},s.onupgradeneeded=function(t){e.db=t.target.result,null!=r&&(r.stores&&r.stores.forEach((function(t){e.db.createObjectStore(t.storeName,t.options)})),null!=r.indexes&&r.indexes.forEach((function(t){s.transaction.objectStore(t.storeName).createIndex(t.indexName,t.keyPath,t.options)}))),null!=o&&(null!=o.indexes&&o.indexes.forEach((function(t){s.transaction.objectStore(t.storeName).deleteIndex(t.indexName)})),o.stores&&o.stores.forEach((function(t){e.db.deleteObjectStore(t.storeName)}))),i({result:"Success: IDBOpen onupgradeneeded ran",success:!0})}}},{key:"IDBDeleteDB",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=null!=e?indexedDB.deleteDatabase(t,e):indexedDB.deleteDatabase(t);r.onsuccess=function(t){n({result:"Success: Database Deleted, returned: "+t.result,success:!0})},r.onerror=function(){n({result:r.error.toString(),success:!1})}}},{key:"IDBAdd",value:function(t,e,n,r){this.db||""==this.dbName||this.IDBOpen(this.dbName);var o=this.db.transaction(t,"readwrite");o.onerror=function(){return r({result:null!=o.error?o.error.toString():"Aborted: No error given, was the record already added?",success:!1})},o.onabort=function(){return r({result:null!=o.error?o.error.toString():"Aborted: No error given, was the record already added?",success:!1})},o.oncomplete=function(){return r({result:"Success: Record Added",success:!0})},o.objectStore(t).add(e,n)}},{key:"IDBUpdate",value:function(t,e,n,r){this.db||""==this.dbName||this.IDBOpen(this.dbName);var o=this.db.transaction(t,"readwrite").objectStore(t).put(n,e);o.onsuccess=function(){r({result:"Success: Record Updated",success:!0})},o.onerror=function(){return r({result:o.error.toString(),success:!1})}}},{key:"IDBRemove",value:function(t,e,n){var r=this;this.db||""==this.dbName||this.IDBOpen(this.dbName);var o=this.db.transaction(t,"readwrite");o.onerror=function(){return n({result:r.db.error.toString(),success:!1})},o.objectStore(t).delete(e),o.oncomplete=function(){return n({result:"Removed Successfully",success:!0})}}},{key:"IDBRead",value:function(t,e,n){var r=this,o=this.db.transaction(t,"readonly"),i=o.objectStore(t);o.onerror=function(){return n({result:r.db.error.toString(),success:!1})};var s=i.get(e);s.onsuccess=function(){n({result:s.result,success:null!=s.result})}}},{key:"IDBGetIndexKeys",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},s=this.db.transaction(t,"readonly"),a=s.objectStore(t);s.onerror=function(){return i({result:n.db.error.toString(),success:!1})},(r&&o?a.index(e,r,o):r?a.index(e,r):a.index(e)).getAllKeys().onsuccess=function(t){i({result:t.result,success:!0})}}},{key:"IDBReadAll",value:function(t,e,n){var r=this.db.transaction(t,"readonly"),o=r.objectStore(t),i=null!=e?o.getAll(null,e):o.getAll();r.onerror=function(){return n({result:r.error.toString(),success:!1})},i.onsuccess=function(){n({result:i.result,success:null!=i.result})}}},{key:"IDBGetVersion",value:function(t,e){var n=window.indexedDB.open(t);n.onerror=function(){e({result:n.error.toString(),success:!1})},n.onsuccess=function(){var t=n.result;e({result:t.version,success:!0})}}},{key:"IDBClose",value:function(t){this.db&&(this.db.close(),t({result:"Success: Closed Database Connection",success:!0}))}}],[{key:"remove",value:function(t){localStorage.removeItem(t),sessionStorage.removeItem(t)}},{key:"write",value:function(t,e){return arguments.length>2&&void 0!==arguments[2]&&arguments[2]?sessionStorage.setItem(t,JSON.stringify("function"==typeof e?e():e)):localStorage.setItem(t,JSON.stringify("function"==typeof e?e():e))}},{key:"read",value:function(t){var e=localStorage.getItem(t)||sessionStorage.getItem(t);if("string"!=typeof e)return e;try{return JSON.parse(e)}catch(t){return e}}}]),t}(),nv=function(){function t(e){Wa(this,t),this.name=e,this.client=null}var e;return Ya(t,[{key:"preload",value:(e=qa(Ua().mark((function t(e){var n;return Ua().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=e.client,this.client=n;case 2:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"start",value:function(){this.client.on("loaded",this.sendAllProperties),this.client.on("loadDone",this.sendAllProperties)}},{key:"init",value:function(t){}},{key:"sendProperty",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];ev.write(t,e),n||this.client.send(t,e)}},{key:"sendAllProperties",value:function(t){}},{key:"warn",value:function(t){console.warn("[SpringRollContainer] ".concat(this.name,": ").concat(t))}}]),t}(),rv=function(t){Ja(n,t);var e=eu(n);function n(t){var r;return Wa(this,n),(r=e.call(this,t)).sendMutes=!1,r}return Ya(n,[{key:"init",value:function(t){this.sendMutes=!0}},{key:"_disableButton",value:function(t){t instanceof HTMLButtonElement&&(t.classList.remove("enabled"),t.classList.add("disabled"))}},{key:"reset",value:function(){this.sendMutes=!1}},{key:"_setMuteProp",value:function(t,e,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];Array.isArray(e)?e.forEach((function(t){return r.changeMutedState(t,n)})):this.changeMutedState(e,n),this.sendProperty(t,n,o)}},{key:"changeMutedState",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.button?t.button:t;n instanceof HTMLElement&&(n.classList.remove("unmuted"),n.classList.remove("muted"),n.classList.add(e?"muted":"unmuted"))}}]),n}(nv),ov=T,iv=Z,sv=we("match"),av=function(t){var e;return ov(t)&&(void 0!==(e=t[sv])?!!e:"RegExp"==iv(t))},uv=TypeError,lv=we("match"),cv=fs,dv=function(t){if(av(t))throw uv("The method doesn't accept regular expressions");return t},hv=wt,fv=af,pv=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[lv]=!1,"/./"[t](e)}catch(t){}}return!1},vv=Y("".indexOf);cv({target:"String",proto:!0,forced:!pv("includes")},{includes:function(t){return!!~vv(fv(hv(this)),fv(dv(t)),arguments.length>1?arguments[1]:void 0)}});var yv={exports:{}},gv={},mv=Or,bv=Dt,Sv=vu,wv=Array,kv=Math.max,Ev=Z,Bv=Br,xv=Mi.f,Pv=function(t,e,n){for(var r=bv(t),o=mv(e,r),i=mv(void 0===n?r:n,r),s=wv(kv(i-o,0)),a=0;o1?arguments[1]:void 0);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!u(this,t)}}),Sy(i,n?{get:function(t){var e=u(this,t);return e&&e.value},set:function(t,e){return a(this,0===t?0:t,e)}}:{add:function(t){return a(this,t=0===t?0:t,t)}}),_y&&by(i,"size",{configurable:!0,get:function(){return s(this).size}}),o},setStrong:function(t,e,n){var r=e+" Iterator",o=Cy(e),i=Cy(r);xy(t,e,(function(t,e){Ay(this,{type:r,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=i(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?Py("keys"==e?n.key:"values"==e?n.value:[n.key,n.value],!1):(t.target=void 0,Py(void 0,!0))}),n?"entries":"values",!n,!0),Ly(e)}};(function(t,e,n){var r=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=r?"set":"add",s=ry[t],a=s&&s.prototype,u=s,l={},c=function(t){var e=oy(a[t]);sy(a,t,"add"==t?function(t){return e(this,0===t?0:t),this}:"delete"==t?function(t){return!(o&&!hy(t))&&e(this,0===t?0:t)}:"get"==t?function(t){return o&&!hy(t)?void 0:e(this,0===t?0:t)}:"has"==t?function(t){return!(o&&!hy(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})};if(iy(t,!cy(s)||!(o||a.forEach&&!fy((function(){(new s).entries().next()})))))u=n.getConstructor(e,t,r,i),ay.enable();else if(iy(t,!0)){var d=new u,h=d[i](o?{}:-0,1)!=d,f=fy((function(){d.has(1)})),p=py((function(t){new s(t)})),v=!o&&fy((function(){for(var t=new s,e=5;e--;)t[i](e,e);return!t.has(-0)}));p||((u=e((function(t,e){ly(t,a);var n=yy(new s,t,u);return dy(e)||uy(e,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=a,a.constructor=u),(f||v)&&(c("delete"),c("has"),r&&c("get")),(v||h)&&c(i),o&&a.clear&&delete a.clear}l[t]=u,ny({global:!0,constructor:!0,forced:u!=s},l),vy(u,t),o||n.setStrong(u,t,r)})("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),Vy);var Dy=Bt,My=zr;fs({target:"Object",stat:!0,forced:U((function(){My(1)}))},{keys:function(t){return My(Dy(t))}});var Ty=fn.map;fs({target:"Array",proto:!0,forced:!bu("map")},{map:function(t){return Ty(this,t,arguments.length>1?arguments[1]:void 0)}});var Iy=mn,Ry=Y,jy=zr,Ny=Br,Ky=Ry(zo.f),Fy=Ry([].push),Gy=function(t){return function(e){for(var n,r=Ny(e),o=jy(r),i=o.length,s=0,a=[];i>s;)n=o[s++],Iy&&!Ky(r,n)||Fy(a,t?[n,r[n]]:r[n]);return a}},Uy={entries:Gy(!0),values:Gy(!1)}.values;fs({target:"Object",stat:!0},{values:function(t){return Uy(t)}});var Hy=function(t){Ja(n,t);var e=eu(n);function n(t){var r,o=t.selector,i=t.controlName,s=t.featureName,a=void 0===s?"captionStyles":s,u=t.defaultValue,l=t.pluginName;return Wa(this,n),(r=e.call(this,l)).controlName=i,r.featureName=a,r.radioElements=document.querySelectorAll(o),r.defaultValue=u,r.radioGroup={},r.radioElements.length<=0?(r.warn("".concat(r.controlName," RadioGroup found no HTMLElements with selector: ").concat(o)),tu(r)):(r.radioElements.forEach((function(t){"radio"===t.type?(t.value=t.value.toLowerCase(),r.radioGroup[t.value]=t):r.warn("".concat(r.controlName," was provided a non Radio Button element with selector: ").concat(o))})),r.radioGroup[r.defaultValue]||(r.warn("".concat(r.controlName," RadioGroup for selector: ").concat(o," does not have a radio button with value ").concat(r.defaultValue," to use as default value. Using first element as default")),r.defaultValue=r.radioElements[0].value.toLowerCase()),r.radioGroup[r.defaultValue].checked=!0,r)}return Ya(n,[{key:"hasOnly",value:function(t){for(var e in this.radioGroup)if(!t.includes(this.radioGroup[e].value))return this.warn("".concat(this.controlName," radio button value: ").concat(this.radioGroup[e].value," is not an accepted value. Skipping radio group")),!1;return!0}},{key:"hasDuplicateValues",value:function(){return this.values.length!==nu(new Set(this.values)).length}},{key:"enableRadioEvents",value:function(t){if(!(!this.radioGroup.length<=0)){var e=t;for(var n in this.radioGroup)this.radioGroup[n].addEventListener("change",e)}}},{key:"disableRadioEvents",value:function(t){if(!(!this.radioGroup.length<=0))for(var e in this.radioGroup)this.radioGroup[e].removeEventListener("change",t)}},{key:"displayRadios",value:function(t){if(this.radioGroup.length<=0&&t[this.featureName])this.warn("".concat(this.controlName," was not provided a valid input element or selector but '").concat(this.featureName,"' was included as a game feature"));else if(!(this.radioGroup.length<=0||t[this.featureName]))for(var e in this.radioGroup)this.radioGroup[e].style.display="none"}},{key:"resetState",value:function(){this.radioGroup[this.defaultValue].checked=!0}},{key:"length",get:function(){return Object.keys(this.radioGroup).length}},{key:"values",get:function(){return Object.values(this.radioGroup).map((function(t){return t.value}))}}]),n}(nv),zy=function(t){Ja(n,t);var e=eu(n);function n(t,r,o){var i,s=o.supportedValues,a=o.initialValue,u=o.controlName,l=o.featureName,c=o.radioCount;return Wa(this,n),(i=e.call(this,r)).selectors=t?t.split(","):[],i.supportedValues=s,i.initialValue=s.includes(a)?a:s[0],i.controlName=u,i.featureName=l,i.radioCount=c,i.sendAllProperties=i.sendAllProperties.bind(Za(i)),i._currentValue=i.initialValue,i.radioGroups=i.setUpRadios(i.selectors),i.radioGroupsLength=i.radioGroups.length,i}return Ya(n,[{key:"setUpRadios",value:function(t){var e=this,n=[];return t.forEach((function(t){var r=new Hy({selector:t.trim(),controlName:e.controlName,defaultValue:e.initialValue,pluginName:e.name,featureName:e.featureName});r.length===e.radioCount?r.hasOnly(e.supportedValues)&&(r.hasDuplicateValues()?e.warn("Duplicate radio button values detected (values: ".concat(r.values," ). Skipping radio group")):n.push(r)):e.warn('Selector "'.concat(t,'" did not find exactly ').concat(e.radioCount," radio buttons for ").concat(e.controlName,". Skipping selector"))})),n}},{key:"start",value:function(){this.client.on("loaded",this.sendAllProperties),this.client.on("loadDone",this.sendAllProperties)}},{key:"sendAllProperties",value:function(){this.sendProperty(this.featureName,this.property)}},{key:"currentValue",get:function(){return this._currentValue},set:function(t){if(this.supportedValues.includes(t)){this._currentValue=t;for(var e=0,n=this.radioGroups.length;e2)if(l=lg(l),43===(e=vg(l,0))||45===e){if(88===(n=vg(l,2))||120===n)return NaN}else if(48===e){switch(vg(l,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+l}for(s=(i=pg(l,2)).length,a=0;ao)return NaN;return parseInt(i,r)}return+l},gg=Qy(cg,!dg(" 0o1")||!dg("0b1")||dg("+0x1")),mg=function(t){var e,n=arguments.length<1?0:dg(function(t){var e=rg(t,"number");return"bigint"==typeof e?e:yg(e)}(t));return eg(hg,e=this)&&og((function(){ug(e)}))?tg(Object(n),this,mg):n};mg.prototype=hg,gg&&(hg.constructor=mg),Wy({global:!0,constructor:!0,wrap:!0,forced:gg},{Number:mg});gg&&function(t,e){for(var n,r=Xy?ig(e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;r.length>o;o++)Zy(e,n=r[o])&&!Zy(t,n)&&ag(t,n,sg(e,n))}(Jy[cg],dg);var bg=function(){function t(e){var n=e.slider,r=e.control,o=e.min,i=void 0===o?0:o,s=e.max,a=void 0===s?1:s,u=e.step,l=void 0===u?.1:u,c=e.defaultValue,d=void 0===c?1:c;Wa(this,t),this.min=i,this.max=a,this.step=l,this.sliderValue=d,this.control=r,this.slider=this.setUpSlider(n,r)}return Ya(t,[{key:"setUpSlider",value:function(t,e){if("string"==typeof t&&(t=document.querySelector(t)),!t||"range"!==t.type)return null;var n=ev.read(e);return t.min=this.min,t.max=this.max,t.step=this.step,(n||0===n)&&n.toString().trim().length>0?(t.value=n,this.sliderValue=n):t.value=this.sliderValue,t}},{key:"sliderRange",value:function(t){return tthis.max?this.max:t}},{key:"enableSliderEvents",value:function(t){if(this.slider){var e=t;this.slider.addEventListener("change",e),this.slider.addEventListener("input",e)}}},{key:"disableSliderEvents",value:function(t){if(this.slider){var e=t;this.slider.removeEventListener("change",e),this.slider.removeEventListener("input",e)}}},{key:"displaySlider",value:function(t){!this.slider&&t[this.control]&&console.warn("".concat(this.control," was not provided a valid input element or selector but was included as a game feature")),this.slider&&(this.slider.style.display=t[this.control]?"":"none")}},{key:"dispatchEvent",value:function(t){this.slider.dispatchEvent(t)}},{key:"value",get:function(){return this.slider.value},set:function(t){this.slider.value=t}}]),t}(),Sg=function(){function t(e){var n=e.button,r=e.onClick,o=e.channel;Wa(this,t),this.button=n instanceof HTMLElement?n:document.querySelector(n),this.onClick=r,this.channel=o,this.button&&this.button.addEventListener("click",r)}return Ya(t,[{key:"displayButton",value:function(t){this.button instanceof HTMLElement&&(this.button.style.display=t[this.channel]||"pause"===this.channel||"hints"===this.channel?"":"none")}},{key:"enableButton",value:function(){this.button&&this.button.classList.remove("disabled")}},{key:"addClass",value:function(t){this.button.className=this.button.className?this.button.className+" ".concat(t):" ".concat(t)}}]),t}(),wg=function(t){Ja(n,t);var e=eu(n);function n(t,r,o){var i,s=o.defaultValue,a=void 0===s?"0.5":s,u=o.minValue,l=void 0===u?"0":u,c=o.maxValue,d=void 0===c?"1":c,h=o.featureName;return Wa(this,n),(i=e.call(this,r)).featureName=h,i.minValue=l,i.defaultValue=a,i.maxValue=d,i._currentValue=a,i.sliders=i.setUpSliders(t),i.slidersLength=i.sliders.length,i.sendAllProperties=i.sendAllProperties.bind(Za(i)),0>=i.slidersLength?(i.warn("Plugin was not provided any valid HTML Elements"),tu(i)):i}return Ya(n,[{key:"setUpSliders",value:function(t){var e=this,n=[];return t instanceof HTMLElement?n.push(new bg({slider:t,control:this.featureName,defaultValue:this.defaultValue,minValue:this.minValue,maxValue:this.maxValue})):document.querySelectorAll(t).forEach((function(t){n.push(new bg({slider:t,control:e.featureName,defaultValue:e.defaultValue,minValue:e.minValue,maxValue:e.maxValue}))})),n}},{key:"init",value:function(){this.client.on("features",function(t){if(t.data)for(var e=0;e3&&void 0!==arguments[3]?arguments[3]:{},a=s.defaultFontSize,u=void 0===a?"medium":a,l=s.defaultColor,c=void 0===l?"default":l,d=s.defaultAlignment,h=void 0===d?"top":d;if(Wa(this,n),(i=e.call(this,"Caption-Style-Plugin")).sendAllProperties=i.sendAllProperties.bind(Za(i)),i.captionsStyles=Object.assign({},kg,ev.read(n.captionStyleKey)||{}),i.fontSizeSelectors=t?t.split(","):[],i.colorSelectors=r?r.split(","):[],i.alignmentSelectors=o?o.split(","):[],i.defaultFontSize=xg.includes(u)?u:xg[0],i.defaultColor=Pg.includes(c)?c:Pg[0],i.defaultAlignment=Lg.includes(h)?h:Lg[0],i.fontSizeRadios=[],i.colorRadios=[],i.alignmentRadios=[],i.fontSizeRadios=i.setUpFontSizeRadios(i.fontSizeSelectors),i.colorRadios=i.setUpColorRadios(i.colorSelectors),i.alignmentRadios=i.setUpAlignmentRadios(i.alignmentSelectors),i._captionsMuted=!1,i.alignmentRadiosLength=i.alignmentRadios.length,i.fontSizeRadiosLength=i.fontSizeRadios.length,i.colorRadiosLength=i.colorRadios.length,0>=i.alignmentRadiosLength+i.fontSizeRadiosLength+i.colorRadiosLength)return i.warn("Plugin was not provided any input elements"),tu(i);for(var f=0;f0&&void 0!==arguments[0]?arguments[0]:kg,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";"object"===Ha(e)?Object.assign(this.captionsStyles,e):"string"==typeof e&&(this.captionsStyles[e]=r),this.colorRadios.forEach((function(e){var n="white"===t.captionsStyles.color?"default":"inverted";e.radioGroup[n].checked=!0})),this.alignmentRadios.forEach((function(e){e.radioGroup[t.captionsStyles.align].checked=!0})),this.fontSizeRadios.forEach((function(e){e.radioGroup[t.captionsStyles.size].checked=!0})),ev.write(n.captionStyleKey,this.captionsStyles),this.client&&this.client.send(n.captionStyleKey,this.captionsStyles)}},{key:"radios",get:function(){return this.colorRadios.concat(this.alignmentRadios).concat(this.fontSizeRadios)}}],[{key:"captionStyleKey",get:function(){return"captionsStyles"}}]),n}(rv),Og=function(t){Ja(n,t);var e=eu(n);function n(t){var r;return Wa(this,n),(r=e.call(this,"Caption-Button-Plugin")).sendAllProperties=r.sendAllProperties.bind(Za(r)),r._captionsButtons=[],t instanceof HTMLElement?r._captionsButtons[0]=new Sg({button:t,onClick:r.captionsButtonClick.bind(Za(r)),channel:"captions"}):document.querySelectorAll(t).forEach((function(t){r._captionsButtons.push(new Sg({button:t,onClick:r.captionsButtonClick.bind(Za(r)),channel:"captions"}))})),r._captionsMuted=!1,r.captionsButtonLength=r._captionsButtons.length,0>=r.captionsButtonLength?(r.warn("Plugin was not provided any valid button or input elements"),tu(r)):r}return Ya(n,[{key:"init",value:function(){this.client.on("features",function(t){for(var e=0;e1&&void 0!==arguments[1])||arguments[1];Wa(this,n),(r=e.call(this,"Pause-Button-plugin"))._manageOwnVisibility=o,r._appBlurred=!1,r._containerBlurred=!1,r._focusTimer=null,r._isManualPause=!1,r._keepFocus=!1,r._paused=!1,r.iframe=null,r.focusApp=r.focusApp.bind(Za(r)),r.manageFocus=r.manageFocus.bind(Za(r)),r.onKeepFocus=r.onKeepFocus.bind(Za(r)),r.onFocus=r.onFocus.bind(Za(r));var i=r.onPauseToggle.bind(Za(r));return r.pauseDisabled=!1,r._pauseButton=[],r.pageVisibility=new Bp(r.onContainerFocus.bind(Za(r)),r.onContainerBlur.bind(Za(r))),r.pageVisibility.enabled=r.manageOwnVisibility,t instanceof HTMLElement?r._pauseButton[0]=new Sg({button:t,onClick:i,channel:n.pauseKey}):document.querySelectorAll(t).forEach((function(t){r._pauseButton.push(new Sg({button:t,onClick:i,channel:n.pauseKey}))})),r}return Ya(n,[{key:"pause",get:function(){return this._paused},set:function(t){if(t=!!t,!this.pauseDisabled){this._paused=t,this.client.send(n.pauseKey,t),this.client.trigger(t?"paused":"resumed",{paused:t});for(var e=0,r=this._pauseButton.length;e0&&void 0!==arguments[0]?arguments[0]:{},o=r.soundButtons,i=r.musicButtons,s=r.sfxButtons,a=r.voButtons,u=r.soundSliders,l=r.musicSliders,c=r.sfxSliders,d=r.voSliders;Wa(this,n),t=e.call(this,"Sound-Button-Plugin");var h=ev.read(n.soundMutedKey);if(t.sendAllProperties=t.sendAllProperties.bind(Za(t)),t._soundMuted=h||!1,t._musicMuted=!1,t._voMuted=!1,t._sfxMuted=!1,t._musicMutedByUser=!1,t._soundMutedByUser=!1,t._sfxMutedByUser=!1,t._voMutedByUser=!1,t.soundMuteEnabled=!1,t.musicMuteEnabled=!1,t.sfxMuteEnabled=!1,t.voMuteEnabled=!1,t.soundVolume=1,t.musicVolume=1,t.sfxVolume=1,t.voVolume=1,t.soundSliders=[],t.musicSliders=[],t.sfxSliders=[],t.voSliders=[],t.soundButtons=[],t.musicButtons=[],t.sfxButtons=[],t.voButtons=[],u instanceof HTMLElement?t.soundSliders[0]=new bg({slider:u,control:n.soundVolumeKey,defaultValue:t.soundVolume}):document.querySelectorAll(u).forEach((function(e){var r=new bg({slider:e,control:n.soundVolumeKey,defaultValue:t.soundVolume});r.slider&&t.soundSliders.push(r)})),l instanceof HTMLElement?t.musicSliders[0]=new bg({slider:l,control:n.musicVolumeKey,defaultValue:t.musicVolume}):document.querySelectorAll(l).forEach((function(e){var r=new bg({slider:e,control:n.musicVolumeKey,defaultValue:t.musicVolume});r.slider&&t.musicSliders.push(r)})),c instanceof HTMLElement?t.sfxSliders[0]=new bg({slider:c,control:n.sfxVolumeKey,defaultValue:t.sfxVolume}):document.querySelectorAll(c).forEach((function(e){var r=new bg({slider:e,control:n.sfxVolumeKey,defaultValue:t.sfxVolume});r.slider&&t.sfxSliders.push(r)})),d instanceof HTMLElement?t.voSliders[0]=new bg({slider:d,control:n.voVolumeKey,defaultValue:t.voVolume}):document.querySelectorAll(d).forEach((function(e){var r=new bg({slider:e,control:n.voVolumeKey,defaultValue:t.voVolume});r.slider&&t.voSliders.push(r)})),o instanceof HTMLElement?t.soundButtons[0]=new Sg({button:o,onClick:t.onSoundToggle.bind(Za(t)),channel:n.soundKey}):document.querySelectorAll(o).forEach((function(e){t.soundButtons.push(new Sg({button:e,onClick:t.onSoundToggle.bind(Za(t)),channel:n.soundKey}))})),i instanceof HTMLElement?t.musicButtons[0]=new Sg({button:i,onClick:t.onMusicToggle.bind(Za(t)),channel:"music"}):document.querySelectorAll(i).forEach((function(e){t.musicButtons.push(new Sg({button:e,onClick:t.onMusicToggle.bind(Za(t)),channel:"music"}))})),s instanceof HTMLElement?t.sfxButtons[0]=new Sg({button:s,onClick:t.onSFXToggle.bind(Za(t)),channel:"sfx"}):document.querySelectorAll(s).forEach((function(e){t.sfxButtons.push(new Sg({button:e,onClick:t.onSFXToggle.bind(Za(t)),channel:"sfx"}))})),a instanceof HTMLElement?t.voButtons[0]=new Sg({button:a,onClick:t.onVOToggle.bind(Za(t)),channel:"vo"}):document.querySelectorAll(a).forEach((function(e){t.voButtons.push(new Sg({button:e,onClick:t.onVOToggle.bind(Za(t)),channel:"vo"}))})),t.soundSlidersLength=t.soundSliders.length,t.musicSlidersLength=t.musicSliders.length,t.sfxSlidersLength=t.sfxSliders.length,t.voSlidersLength=t.voSliders.length,t.soundButtonsLength=t.soundButtons.length,t.musicButtonsLength=t.musicButtons.length,t.sfxButtonsLength=t.sfxButtons.length,t.voButtonsLength=t.voButtons.length,0>=t.soundSlidersLength+t.musicSlidersLength+t.sfxSlidersLength+t.voSlidersLength+t.soundButtonsLength+t.musicButtonsLength+t.sfxButtonsLength+t.voButtonsLength)return t.warn("Plugin was not provided any valid HTML Elements"),tu(t);for(var f=0;f3&&void 0!==arguments[3]&&arguments[3];this["_"+t]=e,this._setMuteProp(t,n,e,r)}},{key:"init",value:function(){this.client.on("features",function(t){if(t.data){this.soundMuteEnabled=!!t.data.sound,this.musicMuteEnabled=!!t.data.music,this.sfxMuteEnabled=!!t.data.sfx,this.voMuteEnabled=!!t.data.vo,this.soundVolumeEnabled=!!t.data.soundVolume,this.musicVolumeEnabled=!!t.data.musicVolume,this.sfxVolumeEnabled=!!t.data.sfxVolume,this.voVolumeEnabled=!!t.data.voVolume;for(var e=0;e1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;this.savedData=new ev,this.savedData.IDBOpen(t,e,n,r,o)}},{key:"IDBAdd",value:function(t,e,n,r){this.savedData.IDBAdd(t,e,n,r)}},{key:"IDBUpdate",value:function(t,e,n,r){this.savedData.IDBUpdate(t,e,n,r)}},{key:"IDBRemove",value:function(t,e,n){this.savedData.IDBRemove(t,e,n)}},{key:"IDBRead",value:function(t,e,n){this.savedData.IDBRead(t,e,n)}},{key:"IDBReadAll",value:function(t,e,n){this.savedData.IDBReadAll(t,e,n)}},{key:"IDBGetVersion",value:function(t,e){new ev(t).IDBGetVersion(t,e)}},{key:"IDBClose",value:function(t){this.savedData.IDBClose(t)}},{key:"IDBDeleteDB",value:function(t,e,n){new ev(t).IDBDeleteDB(t,e,n)}}],[{key:"remove",value:function(t,e){ev.remove(t),e()}},{key:"write",value:function(t,e,n){ev.write(t,e),n()}},{key:"read",value:function(t,e){e(ev.read(t))}}]),t}(),Mg=function(t){Ja(n,t);var e=eu(n);function n(){var t;return Wa(this,n),(t=e.call(this,"UserData-Plugin")).onUserDataRemove=t.onUserDataRemove.bind(Za(t)),t.onUserDataRead=t.onUserDataRead.bind(Za(t)),t.onUserDataWrite=t.onUserDataWrite.bind(Za(t)),t.onIDBAdd=t.onIDBAdd.bind(Za(t)),t.onIDBOpen=t.onIDBOpen.bind(Za(t)),t.onIDBRead=t.onIDBRead.bind(Za(t)),t.onIDBReadAll=t.onIDBReadAll.bind(Za(t)),t.onIDBRemove=t.onIDBRemove.bind(Za(t)),t.onIDBUpdate=t.onIDBUpdate.bind(Za(t)),t.onIDBUpdate=t.onIDBUpdate.bind(Za(t)),t.onIDBClose=t.onIDBClose.bind(Za(t)),t.IDBReadAll=t.onIDBReadAll.bind(Za(t)),t.onIDBGetVersion=t.onIDBGetVersion.bind(Za(t)),t.onIDBDeleteDB=t.onIDBDeleteDB.bind(Za(t)),t.savedDataHandler=null,t}return Ya(n,[{key:"init",value:function(){this.client.on("userDataRemove",this.onUserDataRemove),this.client.on("userDataRead",this.onUserDataRead),this.client.on("userDataWrite",this.onUserDataWrite),this.client.on("IDBOpen",this.onIDBOpen),this.client.on("IDBRead",this.onIDBRead),this.client.on("IDBReadAll",this.onIDBReadAll),this.client.on("IDBAdd",this.onIDBAdd),this.client.on("IDBRemove",this.onIDBRemove),this.client.on("IDBUpdate",this.onIDBUpdate),this.client.on("IDBClose",this.onIDBClose),this.client.on("IDBGetVersion",this.onIDBGetVersion),this.client.on("IDBDeleteDB",this.onIDBDeleteDB)}},{key:"onUserDataRemove",value:function(t){var e=this,n=t.data,r=t.type;Dg.remove(n,(function(){e.client.send(r)}))}},{key:"onUserDataRead",value:function(t){var e=this,n=t.data,r=t.type;Dg.read(n,(function(t){return e.client.send(r,t)}))}},{key:"onUserDataWrite",value:function(t){var e=this,n=t.type,r=t.data,o=r.name,i=r.value;Dg.write(o,i,(function(){return e.client.send(n)}))}},{key:"onIDBOpen",value:function(t){var e=this,n=t.type,r=t.data,o=r.dbName,i=r.dbVersion,s=void 0===i?null:i,a=r.additions,u=void 0===a?{}:a,l=r.deletions,c=void 0===l?{}:l;this.savedDataHandler=new Dg,this.savedDataHandler.IDBOpen(o,s,u,c,(function(t){return e.client.send(n,t)}))}},{key:"onIDBAdd",value:function(t){var e=this,n=t.type,r=t.data,o=r.storeName,i=r.value,s=r.key;this.savedDataHandler.IDBAdd(o,i,s,(function(t){return e.client.send(n,t)}))}},{key:"onIDBUpdate",value:function(t){var e=this,n=t.type,r=t.data,o=r.storeName,i=r.key,s=r.value;this.savedDataHandler.IDBUpdate(o,i,s,(function(t){return e.client.send(n,t)}))}},{key:"onIDBRemove",value:function(t){var e=this,n=t.type,r=t.data,o=r.storeName,i=r.key;this.savedDataHandler.IDBRemove(o,i,(function(t){return e.client.send(n,t)}))}},{key:"onIDBRead",value:function(t){var e=this,n=t.type,r=t.data,o=r.storeName,i=r.key;this.savedDataHandler.IDBRead(o,i,(function(t){return e.client.send(n,t)}))}},{key:"onIDBReadAll",value:function(t){var e=this,n=t.type,r=t.data,o=r.storeName,i=r.count;this.savedDataHandler.IDBReadAll(o,i,(function(t){return e.client.send(n,t)}))}},{key:"onIDBGetVersion",value:function(t){var e=this,n=t.type,r=t.data.dbName;(new Dg).IDBGetVersion(r,(function(t){return e.client.send(n,t)}))}},{key:"onIDBClose",value:function(t){var e=this,n=t.type;this.savedDataHandler.IDBClose((function(t){return e.client.send(n,t)}))}},{key:"onIDBDeleteDB",value:function(t){var e=this,n=t.type,r=t.data,o=r.dbName,i=r.options;(new Dg).IDBDeleteDB(o,i,(function(t){return e.client.send(n,t)}))}}]),n}(nv),Tg=function(t){Ja(n,t);var e=eu(n);function n(t){var r,o=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).defaultPointerSize,i=void 0===o?.5:o;Wa(this,n),r=e.call(this,t,"UISize-Pointer-Plugin",{defaultValue:i,featureName:n.pointerSizeKey});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultButtonSize,i=void 0===o?.5:o;Wa(this,n),r=e.call(this,t,"UISize-Button-Plugin",{defaultValue:i,featureName:n.buttonSizeKey});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultSensitivity,i=void 0===o?.5:o;Wa(this,n),(r=e.call(this,t,"Control-Sensitivity-Plugin",{defaultValue:i,featureName:n.controlSensitivityKey})).sendAllProperties=r.sendAllProperties.bind(Za(r));for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).customClassName,i=void 0===o?"springrollContainerKeyBinding__button":o;return Wa(this,n),(r=e.call(this,"Keyboard-Map-Plugin")).sendAllProperties=r.sendAllProperties.bind(Za(r)),r.bindKey=r.bindKey.bind(Za(r)),r.onKeyButtonClick=r.onKeyButtonClick.bind(Za(r)),r.className=i,r.keyContainers=t instanceof HTMLElement?[t]:document.querySelectorAll(t),r.keyBindings={},r.buttons=[],r.activekeyButton,r.sendAfterFetch=!1,r.canEmit=!1,r.keyContainersLength=r.keyContainers.length,r.keyContainersLength<=0?(r.warn("plugin was not provided any valid key binding container elements"),tu(r)):r}return Ya(n,[{key:"onKeyButtonClick",value:function(t){for(var e=0,n=this.buttons.length;e1&&void 0!==arguments[1]?arguments[1]:{}).defaultValue,i=void 0===o?0:o;Wa(this,n),r=e.call(this,t,"Layer-Plugin",{defaultValue:i,featureName:n.layersSliderKey});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultValue,i=void 0===o?Kg[0]:o;Wa(this,n),(r=e.call(this,t,"HUD-Layout-Plugin",{supportedValues:Kg,initialValue:i,controlName:"Hud Selector",featureName:n.hudPositionKey,radioCount:Kg.length})).sendAllProperties=r.sendAllProperties.bind(Za(r)),r.sendAfterFetch=!1,r.canEmit=!1,r.positions=[],r.radioGroupsLength<=0&&r.warn("Plugin was not provided any valid HTML elements");for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultValue,i=void 0===o?Gg[0]:o;if(Wa(this,n),(r=e.call(this,t,"Color-Filter-Plugin",{supportedValues:Gg,initialValue:i,controlName:"Color Vision Selector",featureName:n.colorVisionKey,radioCount:Gg.length})).sendAllProperties=r.sendAllProperties.bind(Za(r)),r.sendAfterFetch=!1,r.canEmit=!1,r.colors=[],r.radioGroupsLength<=0)return r.warn("Plugin was not provided any valid HTML elements"),tu(r);for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultHitAreaScale,i=void 0===o?.5:o;Wa(this,n),r=e.call(this,t,"Hit-Area-Scale-Plugin",{defaultValue:i,featureName:n.hitAreaScaleKey});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultDragThresholdScale,i=void 0===o?.5:o;Wa(this,n),r=e.call(this,t,"Drag-Threshold-Scale-Plugin",{defaultValue:i,featureName:n.dragThresholdScaleKey});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultHealth,i=void 0===o?.5:o;Wa(this,n),r=e.call(this,t,"Health-Scale-Plugin",{defaultValue:i,featureName:n.healthKey});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultObjectCount,i=void 0===o?.5:o;Wa(this,n),r=e.call(this,t,"Object-Count-Plugin",{defaultValue:i,featureName:n.objectCountKey});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultCompletionPercentage,i=void 0===o?.5:o;Wa(this,n),r=e.call(this,t,"Completion-Percentage-Plugin",{defaultValue:i,featureName:n.completionPercentageKey});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultSpeedScale,i=void 0===o?.5:o;Wa(this,n),r=e.call(this,t,"Speed-Scale-Plugin",{defaultValue:i,featureName:n.speedScaleKey});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultTimersScale,i=void 0===o?.5:o;Wa(this,n),r=e.call(this,t,"Timers-Scale-Plugin",{defaultValue:i,featureName:n.timersScaleKey});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultInputCount,i=void 0===o?.5:o;Wa(this,n),r=e.call(this,t,"Input-Count-Plugin",{defaultValue:i,featureName:n.inputCountKey});for(var s=0;s-1};function l(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function c(t){return"string"!=typeof t&&(t=String(t)),t}function d(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return r&&(e[Symbol.iterator]=function(){return e}),e}function h(t){this.map={},t instanceof h?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function f(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function p(t){return new Promise((function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}}))}function v(t){var e=new FileReader,n=p(e);return e.readAsArrayBuffer(t),n}function y(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function g(){return this.bodyUsed=!1,this._initBody=function(t){var e;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:i&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:n&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():s&&o&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=y(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s&&(ArrayBuffer.prototype.isPrototypeOf(t)||u(t))?this._bodyArrayBuffer=y(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var t=f(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var t=f(this);return t||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(v)}),this.text=function(){var t=f(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,n=p(e);return e.readAsText(t),n}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r-1?e:t}(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache)){var r=/([?&])_=[^&]*/;if(r.test(this.url))this.url=this.url.replace(r,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function S(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(o))}})),e}function w(t,e){if(!(this instanceof w))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new h(e.headers),this.url=e.url||"",this._initBody(t)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},g.call(b.prototype),g.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},w.error=function(){var t=new w(null,{status:0,statusText:""});return t.type="error",t};var k=[301,302,303,307,308];w.redirect=function(t,e){if(-1===k.indexOf(e))throw new RangeError("Invalid status code");return new w(null,{status:e,headers:{location:t}})};var E=e.DOMException;try{new E}catch(t){(E=function(t,e){this.message=t,this.name=e;var n=Error(t);this.stack=n.stack}).prototype=Object.create(Error.prototype),E.prototype.constructor=E}function B(t,n){return new Promise((function(r,i){var a=new b(t,n);if(a.signal&&a.signal.aborted)return i(new E("Aborted","AbortError"));var u=new XMLHttpRequest;function l(){u.abort()}u.onload=function(){var t,e,n={status:u.status,statusText:u.statusText,headers:(t=u.getAllResponseHeaders()||"",e=new h,t.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t})).forEach((function(t){var n=t.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();e.append(r,o)}})),e)};n.url="responseURL"in u?u.responseURL:n.headers.get("X-Request-URL");var o="response"in u?u.response:u.responseText;setTimeout((function(){r(new w(o,n))}),0)},u.onerror=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},u.ontimeout=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},u.onabort=function(){setTimeout((function(){i(new E("Aborted","AbortError"))}),0)},u.open(a.method,function(t){try{return""===t&&e.location.href?e.location.href:t}catch(e){return t}}(a.url),!0),"include"===a.credentials?u.withCredentials=!0:"omit"===a.credentials&&(u.withCredentials=!1),"responseType"in u&&(o?u.responseType="blob":s&&a.headers.get("Content-Type")&&-1!==a.headers.get("Content-Type").indexOf("application/octet-stream")&&(u.responseType="arraybuffer")),!n||"object"!=typeof n.headers||n.headers instanceof h?a.headers.forEach((function(t,e){u.setRequestHeader(e,t)})):Object.getOwnPropertyNames(n.headers).forEach((function(t){u.setRequestHeader(t,c(n.headers[t]))})),a.signal&&(a.signal.addEventListener("abort",l),u.onreadystatechange=function(){4===u.readyState&&a.signal.removeEventListener("abort",l)}),u.send(void 0===a._bodyInit?null:a._bodyInit)}))}B.polyfill=!0,e.fetch||(e.fetch=B,e.Headers=h,e.Request=b,e.Response=w);var x="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},P=function(t){return t&&t.Math==Math&&t},L=P("object"==typeof globalThis&&globalThis)||P("object"==typeof window&&window)||P("object"==typeof self&&self)||P("object"==typeof x&&x)||function(){return this}()||Function("return this")(),_={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},O="object"==typeof document&&document.all,A={all:O,IS_HTMLDDA:void 0===O&&void 0!==O},C=A.all,V=A.IS_HTMLDDA?function(t){return"function"==typeof t||t===C}:function(t){return"function"==typeof t},D=V,M=A.all,T=A.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:D(t)||t===M}:function(t){return"object"==typeof t?null!==t:D(t)},I=T,R=L.document,j=I(R)&&I(R.createElement),N=function(t){return j?R.createElement(t):{}},K=N("span").classList,F=K&&K.constructor&&K.constructor.prototype,G=F===Object.prototype?void 0:F,U=function(t){try{return!!t()}catch(t){return!0}},H=!U((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),z=H,q=Function.prototype,W=q.call,X=z&&q.bind.bind(W,W),Y=z?X:function(t){return function(){return W.apply(t,arguments)}},J=Y,$=J({}.toString),Q=J("".slice),Z=function(t){return Q($(t),8,-1)},tt=Z,et=Y,nt=function(t){if("Function"===tt(t))return et(t)},rt=String,ot=function(t){try{return rt(t)}catch(t){return"Object"}},it=V,st=ot,at=TypeError,ut=function(t){if(it(t))return t;throw at(st(t)+" is not a function")},lt=ut,ct=H,dt=nt(nt.bind),ht=function(t,e){return lt(t),void 0===e?t:ct?dt(t,e):function(){return t.apply(e,arguments)}},ft=U,pt=Z,vt=Object,yt=Y("".split),gt=ft((function(){return!vt("z").propertyIsEnumerable(0)}))?function(t){return"String"==pt(t)?yt(t,""):vt(t)}:vt,mt=function(t){return null==t},bt=mt,St=TypeError,wt=function(t){if(bt(t))throw St("Can't call method on "+t);return t},kt=wt,Et=Object,Bt=function(t){return Et(kt(t))},xt=Math.ceil,Pt=Math.floor,Lt=Math.trunc||function(t){var e=+t;return(e>0?Pt:xt)(e)},_t=Lt,Ot=function(t){var e=+t;return e!=e||0===e?0:_t(e)},At=Ot,Ct=Math.min,Vt=function(t){return t>0?Ct(At(t),9007199254740991):0},Dt=function(t){return Vt(t.length)},Mt=Z,Tt=Array.isArray||function(t){return"Array"==Mt(t)},It={exports:{}},Rt=L,jt=Object.defineProperty,Nt=function(t,e){try{jt(Rt,t,{value:e,configurable:!0,writable:!0})}catch(n){Rt[t]=e}return e},Kt=Nt,Ft="__core-js_shared__",Gt=L[Ft]||Kt(Ft,{}),Ut=Gt;(It.exports=function(t,e){return Ut[t]||(Ut[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.28.0",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.28.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Ht,zt,qt=It.exports,Wt=Bt,Xt=Y({}.hasOwnProperty),Yt=Object.hasOwn||function(t,e){return Xt(Wt(t),e)},Jt=Y,$t=0,Qt=Math.random(),Zt=Jt(1..toString),te=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Zt(++$t+Qt,36)},ee="undefined"!=typeof navigator&&String(navigator.userAgent)||"",ne=L,re=ee,oe=ne.process,ie=ne.Deno,se=oe&&oe.versions||ie&&ie.version,ae=se&&se.v8;ae&&(zt=(Ht=ae.split("."))[0]>0&&Ht[0]<4?1:+(Ht[0]+Ht[1])),!zt&&re&&(!(Ht=re.match(/Edge\/(\d+)/))||Ht[1]>=74)&&(Ht=re.match(/Chrome\/(\d+)/))&&(zt=+Ht[1]);var ue=zt,le=ue,ce=U,de=!!Object.getOwnPropertySymbols&&!ce((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&le&&le<41})),he=de&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,fe=qt,pe=Yt,ve=te,ye=de,ge=he,me=L.Symbol,be=fe("wks"),Se=ge?me.for||me:me&&me.withoutSetter||ve,we=function(t){return pe(be,t)||(be[t]=ye&&pe(me,t)?me[t]:Se("Symbol."+t)),be[t]},ke={};ke[we("toStringTag")]="z";var Ee="[object z]"===String(ke),Be=Ee,xe=V,Pe=Z,Le=we("toStringTag"),_e=Object,Oe="Arguments"==Pe(function(){return arguments}()),Ae=Be?Pe:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=_e(t),Le))?n:Oe?Pe(e):"Object"==(r=Pe(e))&&xe(e.callee)?"Arguments":r},Ce=L,Ve=V,De=function(t,e){return arguments.length<2?(n=Ce[t],Ve(n)?n:void 0):Ce[t]&&Ce[t][e];var n},Me=V,Te=Gt,Ie=Y(Function.toString);Me(Te.inspectSource)||(Te.inspectSource=function(t){return Ie(t)});var Re=Te.inspectSource,je=Y,Ne=U,Ke=V,Fe=Ae,Ge=Re,Ue=function(){},He=[],ze=De("Reflect","construct"),qe=/^\s*(?:class|function)\b/,We=je(qe.exec),Xe=!qe.exec(Ue),Ye=function(t){if(!Ke(t))return!1;try{return ze(Ue,He,t),!0}catch(t){return!1}},Je=function(t){if(!Ke(t))return!1;switch(Fe(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Xe||!!We(qe,Ge(t))}catch(t){return!0}};Je.sham=!0;var $e=!ze||Ne((function(){var t;return Ye(Ye.call)||!Ye(Object)||!Ye((function(){t=!0}))||t}))?Je:Ye,Qe=Tt,Ze=$e,tn=T,en=we("species"),nn=Array,rn=function(t){var e;return Qe(t)&&(e=t.constructor,(Ze(e)&&(e===nn||Qe(e.prototype))||tn(e)&&null===(e=e[en]))&&(e=void 0)),void 0===e?nn:e},on=function(t,e){return new(rn(t))(0===e?0:e)},sn=ht,an=gt,un=Bt,ln=Dt,cn=on,dn=Y([].push),hn=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,s=7==t,a=5==t||i;return function(u,l,c,d){for(var h,f,p=un(u),v=an(p),y=sn(l,c),g=ln(v),m=0,b=d||cn,S=e?b(u,g):n||s?b(u,0):void 0;g>m;m++)if((a||m in v)&&(f=y(h=v[m],m,p),t))if(e)S[m]=f;else if(f)switch(t){case 3:return!0;case 5:return h;case 6:return m;case 2:dn(S,h)}else switch(t){case 4:return!1;case 7:dn(S,h)}return i?-1:r||o?o:S}},fn={forEach:hn(0),map:hn(1),filter:hn(2),some:hn(3),every:hn(4),find:hn(5),findIndex:hn(6),filterReject:hn(7)},pn=U,vn=function(t,e){var n=[][t];return!!n&&pn((function(){n.call(null,e||function(){return 1},1)}))},yn=fn.forEach,gn=vn("forEach")?[].forEach:function(t){return yn(this,t,arguments.length>1?arguments[1]:void 0)},mn=!U((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),bn={},Sn=N,wn=!mn&&!U((function(){return 7!=Object.defineProperty(Sn("div"),"a",{get:function(){return 7}}).a})),kn=mn&&U((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),En=T,Bn=String,xn=TypeError,Pn=function(t){if(En(t))return t;throw xn(Bn(t)+" is not an object")},Ln=H,_n=Function.prototype.call,On=Ln?_n.bind(_n):function(){return _n.apply(_n,arguments)},An=Y({}.isPrototypeOf),Cn=De,Vn=V,Dn=An,Mn=Object,Tn=he?function(t){return"symbol"==typeof t}:function(t){var e=Cn("Symbol");return Vn(e)&&Dn(e.prototype,Mn(t))},In=ut,Rn=mt,jn=function(t,e){var n=t[e];return Rn(n)?void 0:In(n)},Nn=On,Kn=V,Fn=T,Gn=TypeError,Un=On,Hn=T,zn=Tn,qn=jn,Wn=function(t,e){var n,r;if("string"===e&&Kn(n=t.toString)&&!Fn(r=Nn(n,t)))return r;if(Kn(n=t.valueOf)&&!Fn(r=Nn(n,t)))return r;if("string"!==e&&Kn(n=t.toString)&&!Fn(r=Nn(n,t)))return r;throw Gn("Can't convert object to primitive value")},Xn=TypeError,Yn=we("toPrimitive"),Jn=function(t,e){if(!Hn(t)||zn(t))return t;var n,r=qn(t,Yn);if(r){if(void 0===e&&(e="default"),n=Un(r,t,e),!Hn(n)||zn(n))return n;throw Xn("Can't convert object to primitive value")}return void 0===e&&(e="number"),Wn(t,e)},$n=Jn,Qn=Tn,Zn=function(t){var e=$n(t,"string");return Qn(e)?e:e+""},tr=mn,er=wn,nr=kn,rr=Pn,or=Zn,ir=TypeError,sr=Object.defineProperty,ar=Object.getOwnPropertyDescriptor,ur="enumerable",lr="configurable",cr="writable";bn.f=tr?nr?function(t,e,n){if(rr(t),e=or(e),rr(n),"function"==typeof t&&"prototype"===e&&"value"in n&&cr in n&&!n[cr]){var r=ar(t,e);r&&r[cr]&&(t[e]=n.value,n={configurable:lr in n?n[lr]:r[lr],enumerable:ur in n?n[ur]:r[ur],writable:!1})}return sr(t,e,n)}:sr:function(t,e,n){if(rr(t),e=or(e),rr(n),er)try{return sr(t,e,n)}catch(t){}if("get"in n||"set"in n)throw ir("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var dr=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},hr=bn,fr=dr,pr=mn?function(t,e,n){return hr.f(t,e,fr(1,n))}:function(t,e,n){return t[e]=n,t},vr=L,yr=_,gr=G,mr=gn,br=pr,Sr=function(t){if(t&&t.forEach!==mr)try{br(t,"forEach",mr)}catch(e){t.forEach=mr}};for(var wr in yr)yr[wr]&&Sr(vr[wr]&&vr[wr].prototype);Sr(gr);var kr=gt,Er=wt,Br=function(t){return kr(Er(t))},xr={},Pr=Ot,Lr=Math.max,_r=Math.min,Or=function(t,e){var n=Pr(t);return n<0?Lr(n+e,0):_r(n,e)},Ar=Br,Cr=Or,Vr=Dt,Dr=function(t){return function(e,n,r){var o,i=Ar(e),s=Vr(i),a=Cr(r,s);if(t&&n!=n){for(;s>a;)if((o=i[a++])!=o)return!0}else for(;s>a;a++)if((t||a in i)&&i[a]===n)return t||a||0;return!t&&-1}},Mr={includes:Dr(!0),indexOf:Dr(!1)},Tr={},Ir=Yt,Rr=Br,jr=Mr.indexOf,Nr=Tr,Kr=Y([].push),Fr=function(t,e){var n,r=Rr(t),o=0,i=[];for(n in r)!Ir(Nr,n)&&Ir(r,n)&&Kr(i,n);for(;e.length>o;)Ir(r,n=e[o++])&&(~jr(i,n)||Kr(i,n));return i},Gr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ur=Fr,Hr=Gr,zr=Object.keys||function(t){return Ur(t,Hr)},qr=mn,Wr=kn,Xr=bn,Yr=Pn,Jr=Br,$r=zr;xr.f=qr&&!Wr?Object.defineProperties:function(t,e){Yr(t);for(var n,r=Jr(e),o=$r(e),i=o.length,s=0;i>s;)Xr.f(t,n=o[s++],r[n]);return t};var Qr,Zr=De("document","documentElement"),to=te,eo=qt("keys"),no=function(t){return eo[t]||(eo[t]=to(t))},ro=Pn,oo=xr,io=Gr,so=Tr,ao=Zr,uo=N,lo="prototype",co="script",ho=no("IE_PROTO"),fo=function(){},po=function(t){return"<"+co+">"+t+""},vo=function(t){t.write(po("")),t.close();var e=t.parentWindow.Object;return t=null,e},yo=function(){try{Qr=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;yo="undefined"!=typeof document?document.domain&&Qr?vo(Qr):(e=uo("iframe"),n="java"+co+":",e.style.display="none",ao.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(po("document.F=Object")),t.close(),t.F):vo(Qr);for(var r=io.length;r--;)delete yo[lo][io[r]];return yo()};so[ho]=!0;var go=Object.create||function(t,e){var n;return null!==t?(fo[lo]=ro(t),n=new fo,fo[lo]=null,n[ho]=t):n=yo(),void 0===e?n:oo.f(n,e)},mo=we,bo=go,So=bn.f,wo=mo("unscopables"),ko=Array.prototype;null==ko[wo]&&So(ko,wo,{configurable:!0,value:bo(null)});var Eo,Bo,xo,Po=function(t){ko[wo][t]=!0},Lo={},_o=V,Oo=L.WeakMap,Ao=_o(Oo)&&/native code/.test(String(Oo)),Co=L,Vo=T,Do=pr,Mo=Yt,To=Gt,Io=no,Ro=Tr,jo="Object already initialized",No=Co.TypeError,Ko=Co.WeakMap;if(Ao||To.state){var Fo=To.state||(To.state=new Ko);Fo.get=Fo.get,Fo.has=Fo.has,Fo.set=Fo.set,Eo=function(t,e){if(Fo.has(t))throw No(jo);return e.facade=t,Fo.set(t,e),e},Bo=function(t){return Fo.get(t)||{}},xo=function(t){return Fo.has(t)}}else{var Go=Io("state");Ro[Go]=!0,Eo=function(t,e){if(Mo(t,Go))throw No(jo);return e.facade=t,Do(t,Go,e),e},Bo=function(t){return Mo(t,Go)?t[Go]:{}},xo=function(t){return Mo(t,Go)}}var Uo={set:Eo,get:Bo,has:xo,enforce:function(t){return xo(t)?Bo(t):Eo(t,{})},getterFor:function(t){return function(e){var n;if(!Vo(e)||(n=Bo(e)).type!==t)throw No("Incompatible receiver, "+t+" required");return n}}},Ho={},zo={},qo={}.propertyIsEnumerable,Wo=Object.getOwnPropertyDescriptor,Xo=Wo&&!qo.call({1:2},1);zo.f=Xo?function(t){var e=Wo(this,t);return!!e&&e.enumerable}:qo;var Yo=mn,Jo=On,$o=zo,Qo=dr,Zo=Br,ti=Zn,ei=Yt,ni=wn,ri=Object.getOwnPropertyDescriptor;Ho.f=Yo?ri:function(t,e){if(t=Zo(t),e=ti(e),ni)try{return ri(t,e)}catch(t){}if(ei(t,e))return Qo(!Jo($o.f,t,e),t[e])};var oi={exports:{}},ii=mn,si=Yt,ai=Function.prototype,ui=ii&&Object.getOwnPropertyDescriptor,li=si(ai,"name"),ci={EXISTS:li,PROPER:li&&"something"===function(){}.name,CONFIGURABLE:li&&(!ii||ii&&ui(ai,"name").configurable)},di=Y,hi=U,fi=V,pi=Yt,vi=mn,yi=ci.CONFIGURABLE,gi=Re,mi=Uo.enforce,bi=Uo.get,Si=String,wi=Object.defineProperty,ki=di("".slice),Ei=di("".replace),Bi=di([].join),xi=vi&&!hi((function(){return 8!==wi((function(){}),"length",{value:8}).length})),Pi=String(String).split("String"),Li=oi.exports=function(t,e,n){"Symbol("===ki(Si(e),0,7)&&(e="["+Ei(Si(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!pi(t,"name")||yi&&t.name!==e)&&(vi?wi(t,"name",{value:e,configurable:!0}):t.name=e),xi&&n&&pi(n,"arity")&&t.length!==n.arity&&wi(t,"length",{value:n.arity});try{n&&pi(n,"constructor")&&n.constructor?vi&&wi(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=mi(t);return pi(r,"source")||(r.source=Bi(Pi,"string"==typeof e?e:"")),t};Function.prototype.toString=Li((function(){return fi(this)&&bi(this).source||gi(this)}),"toString");var _i=oi.exports,Oi=V,Ai=bn,Ci=_i,Vi=Nt,Di=function(t,e,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:e;if(Oi(n)&&Ci(n,i,r),r.global)o?t[e]=n:Vi(e,n);else{try{r.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=n:Ai.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},Mi={},Ti=Fr,Ii=Gr.concat("length","prototype");Mi.f=Object.getOwnPropertyNames||function(t){return Ti(t,Ii)};var Ri={};Ri.f=Object.getOwnPropertySymbols;var ji,Ni,Ki,Fi=De,Gi=Mi,Ui=Ri,Hi=Pn,zi=Y([].concat),qi=Fi("Reflect","ownKeys")||function(t){var e=Gi.f(Hi(t)),n=Ui.f;return n?zi(e,n(t)):e},Wi=Yt,Xi=qi,Yi=Ho,Ji=bn,$i=U,Qi=V,Zi=/#|\.prototype\./,ts=function(t,e){var n=ns[es(t)];return n==os||n!=rs&&(Qi(e)?$i(e):!!e)},es=ts.normalize=function(t){return String(t).replace(Zi,".").toLowerCase()},ns=ts.data={},rs=ts.NATIVE="N",os=ts.POLYFILL="P",is=ts,ss=L,as=Ho.f,us=pr,ls=Di,cs=Nt,ds=function(t,e,n){for(var r=Xi(e),o=Ji.f,i=Yi.f,s=0;s=e.length?(t.target=void 0,Ba(void 0,!0)):Ba("keys"==n?r:"values"==n?e[r]:[r,e[r]],!1)}),"values"),Aa=Sa.Arguments=Sa.Array;if(ba("keys"),ba("values"),ba("entries"),xa&&"values"!==Aa.name)try{ka(Aa,"name",{value:"values"})}catch(t){}var Ca=L,Va=_,Da=G,Ma=Oa,Ta=pr,Ia=we,Ra=Ia("iterator"),ja=Ia("toStringTag"),Na=Ma.values,Ka=function(t,e){if(t){if(t[Ra]!==Na)try{Ta(t,Ra,Na)}catch(e){t[Ra]=Na}if(t[ja]||Ta(t,ja,e),Va[e])for(var n in Ma)if(t[n]!==Ma[n])try{Ta(t,n,Ma[n])}catch(e){t[n]=Ma[n]}}};for(var Fa in Va)Ka(Ca[Fa]&&Ca[Fa].prototype,Fa);Ka(Da,"DOMTokenList");var Ga=L;function Ua(){Ua=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function l(t,e,n,o){var i=e&&e.prototype instanceof h?e:h,s=Object.create(i.prototype),a=new x(o||[]);return r(s,"_invoke",{value:w(t,n,a)}),s}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var d={};function h(){}function f(){}function p(){}var v={};u(v,i,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(P([])));g&&g!==e&&n.call(g,i)&&(v=g);var m=p.prototype=h.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function o(r,i,s,a){var u=c(t[r],t,i);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==typeof d&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){o("next",t,s,a)}),(function(t){o("throw",t,s,a)})):e.resolve(d).then((function(t){l.value=t,s(l)}),(function(t){return o("throw",t,s,a)}))}a(u.arg)}var i;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){o(t,n,e,r)}))}return i=i?i.then(r,r):r()}})}function w(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return L()}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var a=k(s,n);if(a){if(a===d)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=c(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function k(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,k(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=c(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function B(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function P(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var a=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(a&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),B(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;B(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:P(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function Ha(t){return Ha="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ha(t)}function za(t,e,n,r,o,i,s){try{var a=t[i](s),u=a.value}catch(t){return void n(t)}a.done?e(u):Promise.resolve(u).then(r,o)}function qa(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function s(t){za(i,r,o,s,a,"next",t)}function a(t){za(i,r,o,s,a,"throw",t)}s(void 0)}))}}function Wa(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Xa(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,i=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}var su=fs,au=Mr.indexOf,uu=vn,lu=nt([].indexOf),cu=!!lu&&1/lu([1],1,-0)<0;su({target:"Array",proto:!0,forced:cu||!uu("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return cu?lu(this,t,e)||0:au(this,t,e)}});var du=TypeError,hu=Zn,fu=bn,pu=dr,vu=function(t,e,n){var r=hu(e);r in t?fu.f(t,r,pu(0,n)):t[r]=n},yu=U,gu=ue,mu=we("species"),bu=function(t){return gu>=51||!yu((function(){var e=[];return(e.constructor={})[mu]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Su=fs,wu=U,ku=Tt,Eu=T,Bu=Bt,xu=Dt,Pu=function(t){if(t>9007199254740991)throw du("Maximum allowed index exceeded");return t},Lu=vu,_u=on,Ou=bu,Au=ue,Cu=we("isConcatSpreadable"),Vu=Au>=51||!wu((function(){var t=[];return t[Cu]=!1,t.concat()[0]!==t})),Du=function(t){if(!Eu(t))return!1;var e=t[Cu];return void 0!==e?!!e:ku(t)};Su({target:"Array",proto:!0,arity:1,forced:!Vu||!Ou("concat")},{concat:function(t){var e,n,r,o,i,s=Bu(this),a=_u(s,0),u=0;for(e=-1,r=arguments.length;eo;)for(var a,u=Gu(arguments[o++]),l=i?zu(ju(u),i(u)):ju(u),c=l.length,d=0;c>d;)a=l[d++],Mu&&!Iu(s,u,a)||(n[a]=u[a]);return n}:Uu,Wu=qu;fs({target:"Object",stat:!0,arity:2,forced:Object.assign!==Wu},{assign:Wu});var Xu=Ae,Yu=Ee?{}.toString:function(){return"[object "+Xu(this)+"]"};Ee||Di(Object.prototype,"toString",Yu,{unsafe:!0});var Ju,$u,Qu,Zu,tl="undefined"!=typeof process&&"process"==Z(process),el=_i,nl=bn,rl=function(t,e,n){return n.get&&el(n.get,e,{getter:!0}),n.set&&el(n.set,e,{setter:!0}),nl.f(t,e,n)},ol=De,il=rl,sl=mn,al=we("species"),ul=function(t){var e=ol(t);sl&&e&&!e[al]&&il(e,al,{configurable:!0,get:function(){return this}})},ll=An,cl=TypeError,dl=function(t,e){if(ll(e,t))return t;throw cl("Incorrect invocation")},hl=$e,fl=ot,pl=TypeError,vl=Pn,yl=function(t){if(hl(t))return t;throw pl(fl(t)+" is not a constructor")},gl=mt,ml=we("species"),bl=H,Sl=Function.prototype,wl=Sl.apply,kl=Sl.call,El="object"==typeof Reflect&&Reflect.apply||(bl?kl.bind(wl):function(){return kl.apply(wl,arguments)}),Bl=Y([].slice),xl=TypeError,Pl=/(?:ipad|iphone|ipod).*applewebkit/i.test(ee),Ll=L,_l=El,Ol=ht,Al=V,Cl=Yt,Vl=U,Dl=Zr,Ml=Bl,Tl=N,Il=function(t,e){if(ti;i++)if((a=g(t[i]))&&vh(wh,a))return a;return new Sh(!1)}r=yh(t,o)}for(u=h?t.next:r.next;!(l=ch(u,r)).done;){try{a=g(l.value)}catch(t){mh(r,"throw",t)}if("object"==typeof a&&a&&vh(wh,a))return a}return new Sh(!1)},Eh=we("iterator"),Bh=!1;try{var xh=0,Ph={next:function(){return{done:!!xh++}},return:function(){Bh=!0}};Ph[Eh]=function(){return this},Array.from(Ph,(function(){throw 2}))}catch(t){}var Lh=function(t,e){if(!e&&!Bh)return!1;var n=!1;try{var r={};r[Eh]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n},_h=_c,Oh=Hc.CONSTRUCTOR||!Lh((function(t){_h.all(t).then(void 0,(function(){}))})),Ah=On,Ch=ut,Vh=zc,Dh=Lc,Mh=kh;fs({target:"Promise",stat:!0,forced:Oh},{all:function(t){var e=this,n=Vh.f(e),r=n.resolve,o=n.reject,i=Dh((function(){var n=Ch(e.resolve),i=[],s=0,a=1;Mh(t,(function(t){var u=s++,l=!1;a++,Ah(n,e,t).then((function(t){l||(l=!0,i[u]=t,--a||r(i))}),o)})),--a||r(i)}));return i.error&&o(i.value),n.promise}});var Th=fs,Ih=Hc.CONSTRUCTOR,Rh=_c,jh=De,Nh=V,Kh=Di,Fh=Rh&&Rh.prototype;if(Th({target:"Promise",proto:!0,forced:Ih,real:!0},{catch:function(t){return this.then(void 0,t)}}),Nh(Rh)){var Gh=jh("Promise").prototype.catch;Fh.catch!==Gh&&Kh(Fh,"catch",Gh,{unsafe:!0})}var Uh=On,Hh=ut,zh=zc,qh=Lc,Wh=kh;fs({target:"Promise",stat:!0,forced:Oh},{race:function(t){var e=this,n=zh.f(e),r=n.reject,o=qh((function(){var o=Hh(e.resolve);Wh(t,(function(t){Uh(o,e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var Xh=On,Yh=zc;fs({target:"Promise",stat:!0,forced:Hc.CONSTRUCTOR},{reject:function(t){var e=Yh.f(this);return Xh(e.reject,void 0,t),e.promise}});var Jh=Pn,$h=T,Qh=zc,Zh=fs,tf=Hc.CONSTRUCTOR,ef=function(t,e){if(Jh(t),$h(e)&&e.constructor===t)return e;var n=Qh.f(t);return(0,n.resolve)(e),n.promise};De("Promise"),Zh({target:"Promise",stat:!0,forced:tf},{resolve:function(t){return ef(this,t)}});var nf,rf,of=Ae,sf=String,af=function(t){if("Symbol"===of(t))throw TypeError("Cannot convert a Symbol value to a string");return sf(t)},uf=Pn,lf=function(){var t=uf(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},cf=U,df=L.RegExp,hf=cf((function(){var t=df("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),ff=hf||cf((function(){return!df("a","y").sticky})),pf={BROKEN_CARET:hf||cf((function(){var t=df("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:ff,UNSUPPORTED_Y:hf},vf=U,yf=L.RegExp,gf=vf((function(){var t=yf(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),mf=U,bf=L.RegExp,Sf=mf((function(){var t=bf("(?b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$c")})),wf=On,kf=Y,Ef=af,Bf=lf,xf=pf,Pf=go,Lf=Uo.get,_f=gf,Of=Sf,Af=qt("native-string-replace",String.prototype.replace),Cf=RegExp.prototype.exec,Vf=Cf,Df=kf("".charAt),Mf=kf("".indexOf),Tf=kf("".replace),If=kf("".slice),Rf=(rf=/b*/g,wf(Cf,nf=/a/,"a"),wf(Cf,rf,"a"),0!==nf.lastIndex||0!==rf.lastIndex),jf=xf.BROKEN_CARET,Nf=void 0!==/()??/.exec("")[1];(Rf||Nf||jf||_f||Of)&&(Vf=function(t){var e,n,r,o,i,s,a,u=this,l=Lf(u),c=Ef(t),d=l.raw;if(d)return d.lastIndex=u.lastIndex,e=wf(Vf,d,c),u.lastIndex=d.lastIndex,e;var h=l.groups,f=jf&&u.sticky,p=wf(Bf,u),v=u.source,y=0,g=c;if(f&&(p=Tf(p,"y",""),-1===Mf(p,"g")&&(p+="g"),g=If(c,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==Df(c,u.lastIndex-1))&&(v="(?: "+v+")",g=" "+g,y++),n=new RegExp("^(?:"+v+")",p)),Nf&&(n=new RegExp("^"+v+"$(?!\\s)",p)),Rf&&(r=u.lastIndex),o=wf(Cf,f?n:u,g),f?o?(o.input=If(o.input,y),o[0]=If(o[0],y),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:Rf&&o&&(u.lastIndex=u.global?o.index+o[0].length:r),Nf&&o&&o.length>1&&wf(Af,o[0],n,(function(){for(i=1;i0||navigator.pointerEnabled&&navigator.maxTouchPoints>0)}},{key:"basic",value:function(){return t.canvas?t.webaudio||t.htmlAudio?null:"Browser does not support WebAudio or HTMLAudio":"Browser does not support canvas"}},{key:"test",value:function(e){var n=this.basic();if(n)return n;var r=e.features,o=e.ui,i=e.sizes;for(var s in r)if(!0===r[s]&&!t[s])return"Browser does not support "+s;if(!o.touch&&t.touch)return"Game does not support touch input";var a=Math.max(window.screen.width,window.screen.height);return!i.xsmall&&a<480?"Game doesn't support extra small screens":!i.small&&a<768?"Game doesn't support small screens":!i.medium&&a<992?"Game doesn't support medium screens":!i.large&&a<1200?"Game doesn't support large screens":!i.xlarge&&a>=1200?"Game doesn't support extra large screens":null}},{key:"info",get:function(){return"Browser Feature Detection\n\t\t\t\tCanvas support ".concat(t.canvas?"✓":"×","\n\t\t\t\tWebGL support ").concat(t.webgl?"✓":"×","\n\t\t\t\tWebAudio support ").concat(t.webAudio?"✓":"×")}}]),t}(),Ff=Y,Gf=Ot,Uf=af,Hf=wt,zf=Ff("".charAt),qf=Ff("".charCodeAt),Wf=Ff("".slice),Xf=function(t){return function(e,n){var r,o,i=Uf(Hf(e)),s=Gf(n),a=i.length;return s<0||s>=a?t?"":void 0:(r=qf(i,s))<55296||r>56319||s+1===a||(o=qf(i,s+1))<56320||o>57343?t?zf(i,s):r:t?Wf(i,s,s+2):o-56320+(r-55296<<10)+65536}},Yf={codeAt:Xf(!1),charAt:Xf(!0)}.charAt,Jf=af,$f=Uo,Qf=ya,Zf=ga,tp="String Iterator",ep=$f.set,np=$f.getterFor(tp);Qf(String,"String",(function(t){ep(this,{type:tp,string:Jf(t),index:0})}),(function(){var t,e=np(this),n=e.string,r=e.index;return r>=n.length?Zf(void 0,!0):(t=Yf(n,r),e.index+=t.length,Zf(t,!1))}));var rp=fn.filter;fs({target:"Array",proto:!0,forced:!bu("filter")},{filter:function(t){return rp(this,t,arguments.length>1?arguments[1]:void 0)}});var op=fs,ip=fn.find,sp=Po,ap="find",up=!0;function lp(t,e){return t(e={exports:{}},e.exports),e.exports}ap in[]&&Array(1)[ap]((function(){up=!1})),op({target:"Array",proto:!0,forced:up},{find:function(t){return ip(this,t,arguments.length>1?arguments[1]:void 0)}}),sp(ap);var cp=lp((function(t){function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function n(r){return"function"==typeof Symbol&&"symbol"===e(Symbol.iterator)?t.exports=n=function(t){return e(t)}:t.exports=n=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":e(t)},n(r)}t.exports=n})),dp=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")};function hp(t,e){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:0;this._listeners[t]||(this._listeners[t]=[]),e._priority=parseInt(n)||0,-1===this._listeners[t].indexOf(e)&&(this._listeners[t].push(e),this._listeners[t].length>1&&this._listeners[t].sort(this.listenerSorter))}},{key:"listenerSorter",value:function(t,e){return t._priority-e._priority}},{key:"off",value:function(t,e){if(void 0!==this._listeners[t])if(void 0!==e){var n=this._listeners[t].indexOf(e);-11&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof t&&(t={type:t,data:"object"===cp(e)&&null!==e?e:{}}),void 0!==this._listeners[t.type])for(var n=this._listeners[t.type].length-1;n>=0;n--)this._listeners[t.type][n](t)}},{key:"destroy",value:function(){this._listeners={}}}]),t}(),vp=lp((function(t){var e=function(t){var e,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function u(t,e,n,r){var o=e&&e.prototype instanceof v?e:v,i=Object.create(o.prototype),s=new L(r||[]);return i._invoke=function(t,e,n){var r=c;return function(o,i){if(r===h)throw new Error("Generator is already running");if(r===f){if("throw"===o)throw i;return O()}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var a=B(s,n);if(a){if(a===p)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===c)throw r=f,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var u=l(t,e,n);if("normal"===u.type){if(r=n.done?f:d,u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=f,n.method="throw",n.arg=u.arg)}}}(t,n,s),i}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var c="suspendedStart",d="suspendedYield",h="executing",f="completed",p={};function v(){}function y(){}function g(){}var m={};m[i]=function(){return this};var b=Object.getPrototypeOf,S=b&&b(b(_([])));S&&S!==n&&r.call(S,i)&&(m=S);var w=g.prototype=v.prototype=Object.create(m);function k(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function E(t){function e(n,o,i,s){var a=l(t[n],t,o);if("throw"!==a.type){var u=a.arg,c=u.value;return c&&"object"==typeof c&&r.call(c,"__await")?Promise.resolve(c.__await).then((function(t){e("next",t,i,s)}),(function(t){e("throw",t,i,s)})):Promise.resolve(c).then((function(t){u.value=t,i(u)}),(function(t){return e("throw",t,i,s)}))}s(a.arg)}var n;this._invoke=function(t,r){function o(){return new Promise((function(n,o){e(t,r,n,o)}))}return n=n?n.then(o,o):o()}}function B(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,B(t,n),"throw"===n.method))return p;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var o=l(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,p;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,p):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function _(t){if(t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,s=function n(){for(;++o=0;--i){var s=this.tryEntries[i],a=s.completion;if("root"===s.tryLoc)return o("end");if(s.tryLoc<=this.prev){var u=r.call(s,"catchLoc"),l=r.call(s,"finallyLoc");if(u&&l){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:_(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),p}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}})),yp=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},gp=function(t,e){return!e||"object"!==cp(e)&&"function"!=typeof e?yp(t):e},mp=lp((function(t){function e(n){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},e(n)}t.exports=e})),bp=lp((function(t){function e(n,r,o){return"undefined"!=typeof Reflect&&Reflect.get?t.exports=e=Reflect.get:t.exports=e=function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=mp(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}},e(n,r,o||n)}t.exports=e})),Sp=lp((function(t){function e(n,r){return t.exports=e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},e(n,r)}t.exports=e})),wp=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100*Math.random()|0;return dp(this,e),(t=gp(this,mp(e).call(this))).id="BELLHOP:".concat(n),t.connected=!1,t.isChild=!0,t.connecting=!1,t.debug=!1,t.origin="*",t._sendLater=[],t.iframe=null,t.receive=t.receive.bind(yp(t)),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Sp(t,e)}(e,pp),fp(e,[{key:"receive",value:function(t){if(this.target===t.source)if(this.logDebugMessage(!0,t),"connected"===t.data)this.onConnectionReceived(t.data);else{var e=t.data;if("string"==typeof e)try{e=JSON.parse(e)}catch(t){console.warn("Bellhop error: ",t)}this.connected&&"object"===cp(e)&&e.type&&this.trigger(e)}}},{key:"onConnectionReceived",value:function(t){if(this.connecting=!1,this.connected=!0,!this.isChild){if(!this.target)return;this.target.postMessage(t,this.origin)}for(var e=0;e1&&void 0!==arguments[1]?arguments[1]:"*";this.connecting||(this.disconnect(),this.connecting=!0,t instanceof HTMLIFrameElement&&(this.iframe=t),this.isChild=void 0===t,this.supported=!0,this.isChild&&(this.supported=window!=t),this.origin=e,window.addEventListener("message",this.receive),this.isChild&&(window===this.target?this.trigger("failed"):this.target.postMessage("connected",this.origin)))}},{key:"disconnect",value:function(){this.connected=!1,this.connecting=!1,this.origin=null,this.iframe=null,this.isChild=!0,this._sendLater.length=0,window.removeEventListener("message",this.receive)}},{key:"send",value:function(t){if("string"!=typeof t)throw"The event type must be a string";var e={type:t,data:arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}};this.logDebugMessage(!1,e),this.connecting?this._sendLater.push(e):this.target.postMessage(JSON.stringify(e),this.origin)}},{key:"fetch",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!this.connecting&&!this.connected)throw"No connection, please call connect() first";this.on(t,(function t(r){o&&n.off(r.type,t),e(r)})),this.send(t,r)}},{key:"respond",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this;this.on(t,(function t(o){return vp.async((function(i){for(;;)switch(i.prev=i.next){case 0:if(n&&r.off(o,t),"function"!=typeof e){i.next=10;break}return i.t0=r,i.t1=o.type,i.next=6,vp.awrap(e());case 6:i.t2=i.sent,i.t0.send.call(i.t0,i.t1,i.t2),i.next=11;break;case 10:r.send(o.type,e);case 11:case"end":return i.stop()}}))}))}},{key:"logDebugMessage",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1?arguments[1]:void 0;this.debug&&"function"==typeof this.debug?this.debug({isChild:this.isChild,received:t,message:e}):this.debug&&console.log("Bellhop Instance (".concat(this.isChild?"Child":"Parent",") ").concat(t?"Receieved":"Sent"),e)}},{key:"destroy",value:function(){bp(mp(e.prototype),"destroy",this).call(this),this.disconnect(),this._sendLater.length=0}},{key:"target",get:function(){return this.isChild?window.parent:this.iframe.contentWindow}}]),e}(),kp=function(){function t(e){var n=e.plugins,r=void 0===n?[]:n;Wa(this,t),this.client=new wp,this.preloading=!0,this.client.hidden=this.client.receive.bind(this.client),this.client.hiddenSend=this.client.send.bind(this.client),this.client.receive=function(t){this.hidden(t)}.bind(this.client),this.client.send=function(t,e){this.hiddenSend(t,e)}.bind(this.client),this.plugins=r}return Ya(t,[{key:"setupPlugins",value:function(){for(var t=this,e=[],n=function(n){if(!t.plugins[n].preload)return"continue";e.push(t.plugins[n].preload(t).catch(function(t){this.plugins[n].preloadFailed=!0,console.warn(this.plugins[n].name,"Preload Failed:",t)}.bind(t)))},r=0,o=this.plugins.length;r1&&void 0!==arguments[1]?arguments[1]:{},i=o.plugins,s=o.context,a=void 0===s?{}:s;if(Wa(this,r),(e=n.call(this,{plugins:i})).iframe=t instanceof HTMLIFrameElement?t:document.querySelector(t),e.iframe.style.backgroundColor="black",null===e.iframe)throw new Error("No iframe was found with the provided selector");return e.loaded=!1,e.loading=!1,e.release=null,e._context=a,e.onLoading=e.onLoading.bind(Za(e)),e.onLoadDone=e.onLoadDone.bind(Za(e)),e.onLoadDone=e.onLoadDone.bind(Za(e)),e.onEndGame=e.onEndGame.bind(Za(e)),e.onLocalError=e.onLocalError.bind(Za(e)),e.initClient(),e.setupPlugins(),e}return Ya(r,[{key:"onLoading",value:function(){this.client.trigger("opening")}},{key:"onLoadDone",value:function(){this.loading=!1,this.loaded=!0,this.iframe.classList.remove("loading"),this.client.trigger("opened")}},{key:"onEndGame",value:function(){this.reset()}},{key:"onLocalError",value:function(t){console.error("SpringRoll Container error: ",t,(new Error).stack)}},{key:"reset",value:function(){(this.loaded||this.loading)&&this.client.trigger("closed"),this.loaded=!1,this.loading=!1,this.iframe.setAttribute("src",""),this.iframe.classList.remove("loading")}},{key:"initClient",value:function(){this.client.on("loading",this.onLoading),this.client.on("loaded",this.onLoadDone),this.client.on("loadDone",this.onLoadDone),this.client.on("endGame",this.onEndGame),this.client.on("localError",this.onLocalError),this.client.connect(this.iframe)}},{key:"_onCloseFailed",value:function(){this.reset()}},{key:"_internalOpen",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.singlePlay,o=void 0!==r&&r,i=n.playOptions,s=void 0===i?null:i;if(this.preloading)this.client.on("preloadsFinished",(function(){e._internalOpen(t,{singlePlay:o,playOptions:s})}));else{var a={singlePlay:o,playOptions:s};this.reset(),this.loading=!0,this.initClient();var u=Kf.basic();u&&(console.error("ERROR:",u),this.client.trigger("unsupported"));var l=t;if(null!==a.playOptions){var c="playOptions="+encodeURIComponent(JSON.stringify(a.playOptions));l=-1===t.indexOf("?")?"".concat(t,"?").concat(c):"".concat(t,"&").concat(c)}this.iframe.classList.add("loading"),this.iframe.setAttribute("src",l),this.client.respond("singlePlay",o),this.client.respond("playOptions",s),this.client.trigger("open")}}},{key:"openPath",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"object"!==Ha(e)&&(console.warn("SpringRoll Container.openPath was passed a invalid options parameter. Using default parameters instead"),e={}),this._internalOpen(t,Object.assign({singlePlay:!1,playOptions:{}},e))}},{key:"openRemote",value:(e=qa(Ua().mark((function t(e){var n,r,o,i,s,a,u,l,c,d,h,f=arguments;return Ua().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=(n=f.length>1&&void 0!==f[1]?f[1]:{}).query,o=void 0===r?"":r,i=n.singlePlay,s=void 0!==i&&i,a=n.playOptions,u=void 0===a?null:a,this.release=null,t.next=4,fetch(e,{headers:{"Content-Type":"application/json"}});case 4:return l=t.sent,t.next=7,l.json();case 7:if((c=t.sent).success){t.next=10;break}throw new Error(c.error);case 10:if(d=c.data,!(h=Kf.test(d.capabilities))){t.next=15;break}throw this.client.trigger("unsupported",{error:h}),new Error(h);case 15:this.release=d,this._internalOpen(d.url+o,{singlePlay:s,playOptions:u});case 17:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"destroy",value:function(){this.reset(),this.iframe=null,this.options=null,this.release=null}},{key:"close",value:function(){this.loading||this.loaded?(this.client.trigger("close"),this.client.send("close")):this.reset()}},{key:"context",get:function(){return this._context},set:function(t){"object"===Ha(t)?this._context=t:console.error("[SpringRollContainer] Context: new context provided is not an object")}}],[{key:"version",get:function(){return"2.5.0"}}]),r}(kp),Bp=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};Wa(this,t),this._onFocus=e,this._onBlur=n,this.onFocus=function(t){this.enabled&&this._onFocus(t)}.bind(this),this.onBlur=function(t){this.enabled&&this._onBlur(t)}.bind(this),this._enabled=!1,this.enabled=!0,this.onToggle=this.onToggle.bind(this)}return Ya(t,[{key:"destroy",value:function(){this.enabled=!1,this.onToggle=null,this.onFocus=null,this.onBlur=null}},{key:"onToggle",value:function(t){this.enabled&&(document.hidden?this.onBlur(t):this.onFocus(t))}},{key:"enabled",get:function(){return this._enabled},set:function(t){this._enabled=t,document.removeEventListener("visibilitychange",this.onToggle,!1),window.removeEventListener("blur",this.onBlur,!1),window.removeEventListener("focus",this.onFocus,!1),window.removeEventListener("pagehide",this.onBlur,!1),window.removeEventListener("pageshow",this.onFocus,!1),window.removeEventListener("visibilitychange",this.onToggle,!1),this._enabled&&(document.addEventListener("visibilitychange",this.onToggle,!1),window.addEventListener("blur",this.onBlur,!1),window.addEventListener("focus",this.onFocus,!1),window.addEventListener("pagehide",this.onBlur,!1),window.addEventListener("pageshow",this.onFocus,!1),window.addEventListener("visibilitychange",this.onToggle,!1))}}]),t}(),xp=Mr.includes,Pp=Po;fs({target:"Array",proto:!0,forced:U((function(){return!Array(1).includes()}))},{includes:function(t){return xp(this,t,arguments.length>1?arguments[1]:void 0)}}),Pp("includes");var Lp="\t\n\v\f\r                 \u2028\u2029\ufeff",_p=wt,Op=af,Ap=Lp,Cp=Y("".replace),Vp=RegExp("^["+Ap+"]+"),Dp=RegExp("(^|[^"+Ap+"])["+Ap+"]+$"),Mp=function(t){return function(e){var n=Op(_p(e));return 1&t&&(n=Cp(n,Vp,"")),2&t&&(n=Cp(n,Dp,"$1")),n}},Tp={start:Mp(1),end:Mp(2),trim:Mp(3)},Ip=ci.PROPER,Rp=U,jp=Lp,Np=Tp.trim;fs({target:"String",proto:!0,forced:function(t){return Rp((function(){return!!jp[t]()||"​…᠎"!=="​…᠎"[t]()||Ip&&jp[t].name!==t}))}("trim")},{trim:function(){return Np(this)}});var Kp=On,Fp=Yt,Gp=An,Up=lf,Hp=RegExp.prototype,zp=ci.PROPER,qp=Di,Wp=Pn,Xp=af,Yp=U,Jp=function(t){var e=t.flags;return void 0!==e||"flags"in Hp||Fp(t,"flags")||!Gp(Hp,t)?e:Kp(Up,t)},$p="toString",Qp=RegExp.prototype[$p],Zp=Yp((function(){return"/a/b"!=Qp.call({source:"a",flags:"b"})})),tv=zp&&Qp.name!=$p;(Zp||tv)&&qp(RegExp.prototype,$p,(function(){var t=Wp(this);return"/"+Xp(t.source)+"/"+Xp(Jp(t))}),{unsafe:!0});var ev=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";Wa(this,t),this.db=null,this.dbName=e}return Ya(t,[{key:"IDBOpen",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=n?indexedDB.open(t,n):indexedDB.open(t);s.onsuccess=function(t){e.db=t.target.result,e.db.version==n|null==n&&i({result:"Success: IDBOpen",success:!0})},s.onerror=function(){i({result:s.error.toString(),success:!1})},s.onupgradeneeded=function(t){e.db=t.target.result,null!=r&&(r.stores&&r.stores.forEach((function(t){e.db.createObjectStore(t.storeName,t.options)})),null!=r.indexes&&r.indexes.forEach((function(t){s.transaction.objectStore(t.storeName).createIndex(t.indexName,t.keyPath,t.options)}))),null!=o&&(null!=o.indexes&&o.indexes.forEach((function(t){s.transaction.objectStore(t.storeName).deleteIndex(t.indexName)})),o.stores&&o.stores.forEach((function(t){e.db.deleteObjectStore(t.storeName)}))),i({result:"Success: IDBOpen onupgradeneeded ran",success:!0})}}},{key:"IDBDeleteDB",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=null!=e?indexedDB.deleteDatabase(t,e):indexedDB.deleteDatabase(t);r.onsuccess=function(t){n({result:"Success: Database Deleted, returned: "+t.result,success:!0})},r.onerror=function(){n({result:r.error.toString(),success:!1})}}},{key:"IDBAdd",value:function(t,e,n,r){this.db||""==this.dbName||this.IDBOpen(this.dbName);var o=this.db.transaction(t,"readwrite");o.onerror=function(){return r({result:null!=o.error?o.error.toString():"Aborted: No error given, was the record already added?",success:!1})},o.onabort=function(){return r({result:null!=o.error?o.error.toString():"Aborted: No error given, was the record already added?",success:!1})},o.oncomplete=function(){return r({result:"Success: Record Added",success:!0})},o.objectStore(t).add(e,n)}},{key:"IDBUpdate",value:function(t,e,n,r){this.db||""==this.dbName||this.IDBOpen(this.dbName);var o=this.db.transaction(t,"readwrite").objectStore(t).put(n,e);o.onsuccess=function(){r({result:"Success: Record Updated",success:!0})},o.onerror=function(){return r({result:o.error.toString(),success:!1})}}},{key:"IDBRemove",value:function(t,e,n){var r=this;this.db||""==this.dbName||this.IDBOpen(this.dbName);var o=this.db.transaction(t,"readwrite");o.onerror=function(){return n({result:r.db.error.toString(),success:!1})},o.objectStore(t).delete(e),o.oncomplete=function(){return n({result:"Removed Successfully",success:!0})}}},{key:"IDBRead",value:function(t,e,n){var r=this,o=this.db.transaction(t,"readonly"),i=o.objectStore(t);o.onerror=function(){return n({result:r.db.error.toString(),success:!1})};var s=i.get(e);s.onsuccess=function(){n({result:s.result,success:null!=s.result})}}},{key:"IDBGetIndexKeys",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},s=this.db.transaction(t,"readonly"),a=s.objectStore(t);s.onerror=function(){return i({result:n.db.error.toString(),success:!1})},(r&&o?a.index(e,r,o):r?a.index(e,r):a.index(e)).getAllKeys().onsuccess=function(t){i({result:t.result,success:!0})}}},{key:"IDBReadAll",value:function(t,e,n){var r=this.db.transaction(t,"readonly"),o=r.objectStore(t),i=null!=e?o.getAll(null,e):o.getAll();r.onerror=function(){return n({result:r.error.toString(),success:!1})},i.onsuccess=function(){n({result:i.result,success:null!=i.result})}}},{key:"IDBGetVersion",value:function(t,e){var n=window.indexedDB.open(t);n.onerror=function(){e({result:n.error.toString(),success:!1})},n.onsuccess=function(){var t=n.result;e({result:t.version,success:!0})}}},{key:"IDBClose",value:function(t){this.db&&(this.db.close(),t({result:"Success: Closed Database Connection",success:!0}))}}],[{key:"remove",value:function(t){localStorage.removeItem(t),sessionStorage.removeItem(t)}},{key:"write",value:function(t,e){return arguments.length>2&&void 0!==arguments[2]&&arguments[2]?sessionStorage.setItem(t,JSON.stringify("function"==typeof e?e():e)):localStorage.setItem(t,JSON.stringify("function"==typeof e?e():e))}},{key:"read",value:function(t){var e=localStorage.getItem(t)||sessionStorage.getItem(t);if("string"!=typeof e)return e;try{return JSON.parse(e)}catch(t){return e}}}]),t}(),nv=function(){function t(e){Wa(this,t),this.name=e,this.client=null}var e;return Ya(t,[{key:"preload",value:(e=qa(Ua().mark((function t(e){var n;return Ua().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=e.client,this.client=n;case 2:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"start",value:function(){this.client.on("loaded",this.sendAllProperties),this.client.on("loadDone",this.sendAllProperties)}},{key:"init",value:function(t){}},{key:"sendProperty",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];ev.write(t,e),n||this.client.send(t,e)}},{key:"sendAllProperties",value:function(t){}},{key:"warn",value:function(t){console.warn("[SpringRollContainer] ".concat(this.name,": ").concat(t))}}]),t}(),rv=function(t){Ja(n,t);var e=eu(n);function n(t){var r;return Wa(this,n),(r=e.call(this,t)).sendMutes=!1,r}return Ya(n,[{key:"init",value:function(t){this.sendMutes=!0}},{key:"_disableButton",value:function(t){t instanceof HTMLButtonElement&&(t.classList.remove("enabled"),t.classList.add("disabled"))}},{key:"reset",value:function(){this.sendMutes=!1}},{key:"_setMuteProp",value:function(t,e,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];console.log("_setmuteprop",t,n,o),Array.isArray(e)?e.forEach((function(t){return r.changeMutedState(t,n)})):this.changeMutedState(e,n),this.sendProperty(t,n,o)}},{key:"changeMutedState",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.button?t.button:t;n instanceof HTMLElement&&(n.classList.remove("unmuted"),n.classList.remove("muted"),n.classList.add(e?"muted":"unmuted"))}}]),n}(nv),ov=T,iv=Z,sv=we("match"),av=function(t){var e;return ov(t)&&(void 0!==(e=t[sv])?!!e:"RegExp"==iv(t))},uv=TypeError,lv=we("match"),cv=fs,dv=function(t){if(av(t))throw uv("The method doesn't accept regular expressions");return t},hv=wt,fv=af,pv=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[lv]=!1,"/./"[t](e)}catch(t){}}return!1},vv=Y("".indexOf);cv({target:"String",proto:!0,forced:!pv("includes")},{includes:function(t){return!!~vv(fv(hv(this)),fv(dv(t)),arguments.length>1?arguments[1]:void 0)}});var yv={exports:{}},gv={},mv=Or,bv=Dt,Sv=vu,wv=Array,kv=Math.max,Ev=Z,Bv=Br,xv=Mi.f,Pv=function(t,e,n){for(var r=bv(t),o=mv(e,r),i=mv(void 0===n?r:n,r),s=wv(kv(i-o,0)),a=0;o1?arguments[1]:void 0);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!u(this,t)}}),Sy(i,n?{get:function(t){var e=u(this,t);return e&&e.value},set:function(t,e){return a(this,0===t?0:t,e)}}:{add:function(t){return a(this,t=0===t?0:t,t)}}),_y&&by(i,"size",{configurable:!0,get:function(){return s(this).size}}),o},setStrong:function(t,e,n){var r=e+" Iterator",o=Cy(e),i=Cy(r);xy(t,e,(function(t,e){Ay(this,{type:r,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=i(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?Py("keys"==e?n.key:"values"==e?n.value:[n.key,n.value],!1):(t.target=void 0,Py(void 0,!0))}),n?"entries":"values",!n,!0),Ly(e)}};(function(t,e,n){var r=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=r?"set":"add",s=ry[t],a=s&&s.prototype,u=s,l={},c=function(t){var e=oy(a[t]);sy(a,t,"add"==t?function(t){return e(this,0===t?0:t),this}:"delete"==t?function(t){return!(o&&!hy(t))&&e(this,0===t?0:t)}:"get"==t?function(t){return o&&!hy(t)?void 0:e(this,0===t?0:t)}:"has"==t?function(t){return!(o&&!hy(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})};if(iy(t,!cy(s)||!(o||a.forEach&&!fy((function(){(new s).entries().next()})))))u=n.getConstructor(e,t,r,i),ay.enable();else if(iy(t,!0)){var d=new u,h=d[i](o?{}:-0,1)!=d,f=fy((function(){d.has(1)})),p=py((function(t){new s(t)})),v=!o&&fy((function(){for(var t=new s,e=5;e--;)t[i](e,e);return!t.has(-0)}));p||((u=e((function(t,e){ly(t,a);var n=yy(new s,t,u);return dy(e)||uy(e,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=a,a.constructor=u),(f||v)&&(c("delete"),c("has"),r&&c("get")),(v||h)&&c(i),o&&a.clear&&delete a.clear}l[t]=u,ny({global:!0,constructor:!0,forced:u!=s},l),vy(u,t),o||n.setStrong(u,t,r)})("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),Vy);var Dy=Bt,My=zr;fs({target:"Object",stat:!0,forced:U((function(){My(1)}))},{keys:function(t){return My(Dy(t))}});var Ty=fn.map;fs({target:"Array",proto:!0,forced:!bu("map")},{map:function(t){return Ty(this,t,arguments.length>1?arguments[1]:void 0)}});var Iy=mn,Ry=Y,jy=zr,Ny=Br,Ky=Ry(zo.f),Fy=Ry([].push),Gy=function(t){return function(e){for(var n,r=Ny(e),o=jy(r),i=o.length,s=0,a=[];i>s;)n=o[s++],Iy&&!Ky(r,n)||Fy(a,t?[n,r[n]]:r[n]);return a}},Uy={entries:Gy(!0),values:Gy(!1)}.values;fs({target:"Object",stat:!0},{values:function(t){return Uy(t)}});var Hy=function(t){Ja(n,t);var e=eu(n);function n(t){var r,o=t.selector,i=t.controlName,s=t.featureName,a=void 0===s?"captionStyles":s,u=t.defaultValue,l=t.pluginName;return Wa(this,n),(r=e.call(this,l)).controlName=i,r.featureName=a,r.radioElements=document.querySelectorAll(o),r.defaultValue=u,r.radioGroup={},r.radioElements.length<=0?(r.warn("".concat(r.controlName," RadioGroup found no HTMLElements with selector: ").concat(o)),tu(r)):(r.radioElements.forEach((function(t){"radio"===t.type?(t.value=t.value.toLowerCase(),r.radioGroup[t.value]=t):r.warn("".concat(r.controlName," was provided a non Radio Button element with selector: ").concat(o))})),r.radioGroup[r.defaultValue]||(r.warn("".concat(r.controlName," RadioGroup for selector: ").concat(o," does not have a radio button with value ").concat(r.defaultValue," to use as default value. Using first element as default")),r.defaultValue=r.radioElements[0].value.toLowerCase()),r.radioGroup[r.defaultValue].checked=!0,r)}return Ya(n,[{key:"hasOnly",value:function(t){for(var e in this.radioGroup)if(!t.includes(this.radioGroup[e].value))return this.warn("".concat(this.controlName," radio button value: ").concat(this.radioGroup[e].value," is not an accepted value. Skipping radio group")),!1;return!0}},{key:"hasDuplicateValues",value:function(){return this.values.length!==nu(new Set(this.values)).length}},{key:"enableRadioEvents",value:function(t){if(!(!this.radioGroup.length<=0)){var e=t;for(var n in this.radioGroup)this.radioGroup[n].addEventListener("change",e)}}},{key:"disableRadioEvents",value:function(t){if(!(!this.radioGroup.length<=0))for(var e in this.radioGroup)this.radioGroup[e].removeEventListener("change",t)}},{key:"displayRadios",value:function(t){if(this.radioGroup.length<=0&&t[this.featureName])this.warn("".concat(this.controlName," was not provided a valid input element or selector but '").concat(this.featureName,"' was included as a game feature"));else if(!(this.radioGroup.length<=0||t[this.featureName]))for(var e in this.radioGroup)this.radioGroup[e].style.display="none"}},{key:"resetState",value:function(){this.radioGroup[this.defaultValue].checked=!0}},{key:"length",get:function(){return Object.keys(this.radioGroup).length}},{key:"values",get:function(){return Object.values(this.radioGroup).map((function(t){return t.value}))}}]),n}(nv),zy=function(t){Ja(n,t);var e=eu(n);function n(t,r,o){var i,s=o.supportedValues,a=o.initialValue,u=o.controlName,l=o.featureName,c=o.radioCount;return Wa(this,n),(i=e.call(this,r)).selectors=t?t.split(","):[],i.supportedValues=s,i.initialValue=s.includes(a)?a:s[0],i.controlName=u,i.featureName=l,i.radioCount=c,i.sendAllProperties=i.sendAllProperties.bind(Za(i)),i._currentValue=i.initialValue,i.radioGroups=i.setUpRadios(i.selectors),i.radioGroupsLength=i.radioGroups.length,i}return Ya(n,[{key:"setUpRadios",value:function(t){var e=this,n=[];return t.forEach((function(t){var r=new Hy({selector:t.trim(),controlName:e.controlName,defaultValue:e.initialValue,pluginName:e.name,featureName:e.featureName});r.length===e.radioCount?r.hasOnly(e.supportedValues)&&(r.hasDuplicateValues()?e.warn("Duplicate radio button values detected (values: ".concat(r.values," ). Skipping radio group")):n.push(r)):e.warn('Selector "'.concat(t,'" did not find exactly ').concat(e.radioCount," radio buttons for ").concat(e.controlName,". Skipping selector"))})),n}},{key:"start",value:function(){this.client.on("loaded",this.sendAllProperties),this.client.on("loadDone",this.sendAllProperties)}},{key:"sendAllProperties",value:function(){this.sendProperty(this.featureName,this.property)}},{key:"currentValue",get:function(){return this._currentValue},set:function(t){if(this.supportedValues.includes(t)){this._currentValue=t;for(var e=0,n=this.radioGroups.length;e2)if(l=lg(l),43===(e=vg(l,0))||45===e){if(88===(n=vg(l,2))||120===n)return NaN}else if(48===e){switch(vg(l,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+l}for(s=(i=pg(l,2)).length,a=0;ao)return NaN;return parseInt(i,r)}return+l},gg=Qy(cg,!dg(" 0o1")||!dg("0b1")||dg("+0x1")),mg=function(t){var e,n=arguments.length<1?0:dg(function(t){var e=rg(t,"number");return"bigint"==typeof e?e:yg(e)}(t));return eg(hg,e=this)&&og((function(){ug(e)}))?tg(Object(n),this,mg):n};mg.prototype=hg,gg&&(hg.constructor=mg),Wy({global:!0,constructor:!0,wrap:!0,forced:gg},{Number:mg});gg&&function(t,e){for(var n,r=Xy?ig(e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;r.length>o;o++)Zy(e,n=r[o])&&!Zy(t,n)&&ag(t,n,sg(e,n))}(Jy[cg],dg);var bg=function(){function t(e){var n=e.slider,r=e.control,o=e.min,i=void 0===o?0:o,s=e.max,a=void 0===s?1:s,u=e.step,l=void 0===u?.1:u,c=e.defaultValue,d=void 0===c?1:c;Wa(this,t),this.min=i,this.max=a,this.step=l,this.sliderValue=d,this.control=r,this.slider=this.setUpSlider(n,r)}return Ya(t,[{key:"setUpSlider",value:function(t,e){if("string"==typeof t&&(t=document.querySelector(t)),!t||"range"!==t.type)return null;var n=ev.read(e);return t.min=this.min,t.max=this.max,t.step=this.step,(n||0===n)&&n.toString().trim().length>0?(t.value=n,this.sliderValue=n):t.value=this.sliderValue,t}},{key:"sliderRange",value:function(t){return tthis.max?this.max:t}},{key:"enableSliderEvents",value:function(t){if(this.slider){var e=t;this.slider.addEventListener("change",e),this.slider.addEventListener("input",e)}}},{key:"disableSliderEvents",value:function(t){if(this.slider){var e=t;this.slider.removeEventListener("change",e),this.slider.removeEventListener("input",e)}}},{key:"displaySlider",value:function(t){!this.slider&&t[this.control]&&console.warn("".concat(this.control," was not provided a valid input element or selector but was included as a game feature")),this.slider&&(this.slider.style.display=t[this.control]?"":"none")}},{key:"dispatchEvent",value:function(t){this.slider.dispatchEvent(t)}},{key:"value",get:function(){return this.slider.value},set:function(t){this.slider.value=t}}]),t}(),Sg=function(){function t(e){var n=e.button,r=e.onClick,o=e.channel;Wa(this,t),this.button=n instanceof HTMLElement?n:document.querySelector(n),this.onClick=r,this.channel=o,this.button&&this.button.addEventListener("click",r)}return Ya(t,[{key:"displayButton",value:function(t){this.button instanceof HTMLElement&&(this.button.style.display=t[this.channel]||"pause"===this.channel||"hints"===this.channel?"":"none")}},{key:"enableButton",value:function(){this.button&&this.button.classList.remove("disabled")}},{key:"addClass",value:function(t){this.button.className=this.button.className?this.button.className+" ".concat(t):" ".concat(t)}}]),t}(),wg=function(t){Ja(n,t);var e=eu(n);function n(t,r,o){var i,s=o.defaultValue,a=void 0===s?"0.5":s,u=o.minValue,l=void 0===u?"0":u,c=o.maxValue,d=void 0===c?"1":c,h=o.featureName;return Wa(this,n),(i=e.call(this,r)).featureName=h,i.minValue=l,i.defaultValue=a,i.maxValue=d,i._currentValue=a,i.sliders=i.setUpSliders(t),i.slidersLength=i.sliders.length,i.sendAllProperties=i.sendAllProperties.bind(Za(i)),0>=i.slidersLength?(i.warn("Plugin was not provided any valid HTML Elements"),tu(i)):i}return Ya(n,[{key:"setUpSliders",value:function(t){var e=this,n=[];return t instanceof HTMLElement?n.push(new bg({slider:t,control:this.featureName,defaultValue:this.defaultValue,minValue:this.minValue,maxValue:this.maxValue})):document.querySelectorAll(t).forEach((function(t){n.push(new bg({slider:t,control:e.featureName,defaultValue:e.defaultValue,minValue:e.minValue,maxValue:e.maxValue}))})),n}},{key:"init",value:function(){this.client.on("features",function(t){if(t.data)for(var e=0;e3&&void 0!==arguments[3]?arguments[3]:{},a=s.defaultFontSize,u=void 0===a?"medium":a,l=s.defaultColor,c=void 0===l?"default":l,d=s.defaultAlignment,h=void 0===d?"top":d;if(Wa(this,n),(i=e.call(this,"Caption-Style-Plugin")).sendAllProperties=i.sendAllProperties.bind(Za(i)),i.captionsStyles=Object.assign({},kg,ev.read(n.captionStyleKey)||{}),i.fontSizeSelectors=t?t.split(","):[],i.colorSelectors=r?r.split(","):[],i.alignmentSelectors=o?o.split(","):[],i.defaultFontSize=xg.includes(u)?u:xg[0],i.defaultColor=Pg.includes(c)?c:Pg[0],i.defaultAlignment=Lg.includes(h)?h:Lg[0],i.fontSizeRadios=[],i.colorRadios=[],i.alignmentRadios=[],i.fontSizeRadios=i.setUpFontSizeRadios(i.fontSizeSelectors),i.colorRadios=i.setUpColorRadios(i.colorSelectors),i.alignmentRadios=i.setUpAlignmentRadios(i.alignmentSelectors),i._captionsMuted=!1,i.alignmentRadiosLength=i.alignmentRadios.length,i.fontSizeRadiosLength=i.fontSizeRadios.length,i.colorRadiosLength=i.colorRadios.length,0>=i.alignmentRadiosLength+i.fontSizeRadiosLength+i.colorRadiosLength)return i.warn("Plugin was not provided any input elements"),tu(i);for(var f=0;f0&&void 0!==arguments[0]?arguments[0]:kg,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";"object"===Ha(e)?Object.assign(this.captionsStyles,e):"string"==typeof e&&(this.captionsStyles[e]=r),this.colorRadios.forEach((function(e){var n="white"===t.captionsStyles.color?"default":"inverted";e.radioGroup[n].checked=!0})),this.alignmentRadios.forEach((function(e){e.radioGroup[t.captionsStyles.align].checked=!0})),this.fontSizeRadios.forEach((function(e){e.radioGroup[t.captionsStyles.size].checked=!0})),ev.write(n.captionStyleKey,this.captionsStyles),this.client&&this.client.send(n.captionStyleKey,this.captionsStyles)}},{key:"radios",get:function(){return this.colorRadios.concat(this.alignmentRadios).concat(this.fontSizeRadios)}}],[{key:"captionStyleKey",get:function(){return"captionsStyles"}}]),n}(rv),Og=function(t){Ja(n,t);var e=eu(n);function n(t){var r;return Wa(this,n),(r=e.call(this,"Caption-Button-Plugin")).sendAllProperties=r.sendAllProperties.bind(Za(r)),r._captionsButtons=[],t instanceof HTMLElement?r._captionsButtons[0]=new Sg({button:t,onClick:r.captionsButtonClick.bind(Za(r)),channel:"captions"}):document.querySelectorAll(t).forEach((function(t){r._captionsButtons.push(new Sg({button:t,onClick:r.captionsButtonClick.bind(Za(r)),channel:"captions"}))})),r._captionsMuted=!1,r.captionsButtonLength=r._captionsButtons.length,0>=r.captionsButtonLength?(r.warn("Plugin was not provided any valid button or input elements"),tu(r)):r}return Ya(n,[{key:"init",value:function(){this.client.on("features",function(t){for(var e=0;e1&&void 0!==arguments[1])||arguments[1];Wa(this,n),(r=e.call(this,"Pause-Button-plugin"))._manageOwnVisibility=o,r._appBlurred=!1,r._containerBlurred=!1,r._focusTimer=null,r._isManualPause=!1,r._keepFocus=!1,r._paused=!1,r.iframe=null,r.focusApp=r.focusApp.bind(Za(r)),r.manageFocus=r.manageFocus.bind(Za(r)),r.onKeepFocus=r.onKeepFocus.bind(Za(r)),r.onFocus=r.onFocus.bind(Za(r));var i=r.onPauseToggle.bind(Za(r));return r.pauseDisabled=!1,r._pauseButton=[],r.pageVisibility=new Bp(r.onContainerFocus.bind(Za(r)),r.onContainerBlur.bind(Za(r))),r.pageVisibility.enabled=r.manageOwnVisibility,t instanceof HTMLElement?r._pauseButton[0]=new Sg({button:t,onClick:i,channel:n.pauseKey}):document.querySelectorAll(t).forEach((function(t){r._pauseButton.push(new Sg({button:t,onClick:i,channel:n.pauseKey}))})),r}return Ya(n,[{key:"pause",get:function(){return this._paused},set:function(t){if(t=!!t,!this.pauseDisabled){this._paused=t,this.client.send(n.pauseKey,t),this.client.trigger(t?"paused":"resumed",{paused:t});for(var e=0,r=this._pauseButton.length;e0&&void 0!==arguments[0]?arguments[0]:{},o=e.soundButtons,i=e.musicButtons,s=e.sfxButtons,a=e.voButtons,u=e.soundSliders,l=e.musicSliders,c=e.sfxSliders,d=e.voSliders;Wa(this,r),t=n.call(this,"Sound-Button-Plugin");var h=ev.read(r.soundMutedKey);if(t.sendAllProperties=t.sendAllProperties.bind(Za(t)),t._soundMuted=h||!1,t._musicMuted=!1,t._voMuted=!1,t._sfxMuted=!1,t._musicMutedByUser=!1,t._soundMutedByUser=!1,t._sfxMutedByUser=!1,t._voMutedByUser=!1,t.soundMutedEnabled=!1,t.musicMutedEnabled=!1,t.sfxMutedEnabled=!1,t.voMutedEnabled=!1,t.soundVolume=1,t.musicVolume=1,t.sfxVolume=1,t.voVolume=1,t.soundSliders=[],t.musicSliders=[],t.sfxSliders=[],t.voSliders=[],t.soundButtons=[],t.musicButtons=[],t.sfxButtons=[],t.voButtons=[],u instanceof HTMLElement?t.soundSliders[0]=new bg({slider:u,control:r.soundVolumeKey,defaultValue:t.soundVolume}):document.querySelectorAll(u).forEach((function(e){var n=new bg({slider:e,control:r.soundVolumeKey,defaultValue:t.soundVolume});n.slider&&t.soundSliders.push(n)})),l instanceof HTMLElement?t.musicSliders[0]=new bg({slider:l,control:r.musicVolumeKey,defaultValue:t.musicVolume}):document.querySelectorAll(l).forEach((function(e){var n=new bg({slider:e,control:r.musicVolumeKey,defaultValue:t.musicVolume});n.slider&&t.musicSliders.push(n)})),c instanceof HTMLElement?t.sfxSliders[0]=new bg({slider:c,control:r.sfxVolumeKey,defaultValue:t.sfxVolume}):document.querySelectorAll(c).forEach((function(e){var n=new bg({slider:e,control:r.sfxVolumeKey,defaultValue:t.sfxVolume});n.slider&&t.sfxSliders.push(n)})),d instanceof HTMLElement?t.voSliders[0]=new bg({slider:d,control:r.voVolumeKey,defaultValue:t.voVolume}):document.querySelectorAll(d).forEach((function(e){var n=new bg({slider:e,control:r.voVolumeKey,defaultValue:t.voVolume});n.slider&&t.voSliders.push(n)})),o instanceof HTMLElement?t.soundButtons[0]=new Sg({button:o,onClick:t.onSoundToggle.bind(Za(t)),channel:r.soundKey}):document.querySelectorAll(o).forEach((function(e){t.soundButtons.push(new Sg({button:e,onClick:t.onSoundToggle.bind(Za(t)),channel:r.soundKey}))})),i instanceof HTMLElement?t.musicButtons[0]=new Sg({button:i,onClick:t.onMusicToggle.bind(Za(t)),channel:"music"}):document.querySelectorAll(i).forEach((function(e){t.musicButtons.push(new Sg({button:e,onClick:t.onMusicToggle.bind(Za(t)),channel:"music"}))})),s instanceof HTMLElement?t.sfxButtons[0]=new Sg({button:s,onClick:t.onSFXToggle.bind(Za(t)),channel:"sfx"}):document.querySelectorAll(s).forEach((function(e){t.sfxButtons.push(new Sg({button:e,onClick:t.onSFXToggle.bind(Za(t)),channel:"sfx"}))})),a instanceof HTMLElement?t.voButtons[0]=new Sg({button:a,onClick:t.onVOToggle.bind(Za(t)),channel:"vo"}):document.querySelectorAll(a).forEach((function(e){t.voButtons.push(new Sg({button:e,onClick:t.onVOToggle.bind(Za(t)),channel:"vo"}))})),t.soundSlidersLength=t.soundSliders.length,t.musicSlidersLength=t.musicSliders.length,t.sfxSlidersLength=t.sfxSliders.length,t.voSlidersLength=t.voSliders.length,t.soundButtonsLength=t.soundButtons.length,t.musicButtonsLength=t.musicButtons.length,t.sfxButtonsLength=t.sfxButtons.length,t.voButtonsLength=t.voButtons.length,0>=t.soundSlidersLength+t.musicSlidersLength+t.sfxSlidersLength+t.voSlidersLength+t.soundButtonsLength+t.musicButtonsLength+t.sfxButtonsLength+t.voButtonsLength)return t.warn("Plugin was not provided any valid HTML Elements"),tu(t);for(var f=0;f3&&void 0!==arguments[3]&&arguments[3];this["_"+t]=e,this._setMuteProp(t,n,e,r)}},{key:"preload",value:(e=qa(Ua().mark((function t(e){var n;return Ua().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=e.client,this.client=n,this.client.on("features",function(t){if(t.data){this.soundMutedEnabled=!!t.data.sound,this.musicMutedEnabled=!!t.data.music,this.sfxMutedEnabled=!!t.data.sfx,this.voMutedEnabled=!!t.data.vo,this.soundVolumeEnabled=!!t.data.soundVolume,this.musicVolumeEnabled=!!t.data.musicVolume,this.sfxVolumeEnabled=!!t.data.sfxVolume,this.voVolumeEnabled=!!t.data.voVolume;for(var e=0;e0&&this.sendProperty(r.soundVolumeKey,this.soundVolume),this.musicVolumeEnabled&&this.musicSlidersLength>0&&this.sendProperty(r.musicVolumeKey,this.musicVolume),this.voVolumeEnabled&&this.voSlidersLength>0&&this.sendProperty(r.voVolumeKey,this.voVolume),this.sfxVolumeEnabled&&this.sfxSlidersLength>0&&this.sendProperty(r.sfxVolumeKey,this.sfxVolume),this.soundButtonsLength>0&&this.soundMutedEnabled&&(this.soundMuted||!this.soundVolumeEnabled)&&this.sendProperty(r.soundMutedKey,this.soundMuted),this.musicButtonsLength>0&&this.musicMutedEnabled&&(this.musicMuted||!this.musicVolumeEnabled)&&this.sendProperty(r.musicMutedKey,this.musicMuted),this.voButtonsLength>0&&this.voMutedEnabled&&(this.voMuted||!this.voVolumeEnabled)&&this.sendProperty(r.voMutedKey,this.voMuted),this.sfxButtonsLength>0&&this.sfxMutedEnabled&&(this.sfxMuted||!this.sfxVolumeEnabled)&&this.sendProperty(r.sfxMutedKey,this.sfxMuted)}},{key:"soundMuted",get:function(){return this._soundMuted},set:function(t){if(t!==this.soundMuted){var e=!1;this.soundVolumeEnabled&&!t&&(this.sendProperty(r.soundVolumeKey,this.soundVolume),e=!0),this.setMuteProp("soundMuted",t,this.soundButtons,e)}else this.setMuteProp("soundMuted",t,this.soundButtons,!0)}},{key:"voMuted",get:function(){return this._voMuted},set:function(t){var e=!1;this.voMuted!==t?(this.voVolumeEnabled&&!t&&(this.sendProperty(r.voVolumeKey,this.voVolume),e=!0),this.setMuteProp("voMuted",t,this.voButtons,e)):this.setMuteProp("voMuted",t,this.voButtons,!0)}},{key:"musicMuted",get:function(){return this._musicMuted},set:function(t){if(this.musicMuted!==t){var e=!1;this.musicVolumeEnabled&&!t&&(this.sendProperty(r.musicVolumeKey,this.musicVolume),e=!0),this.setMuteProp("musicMuted",t,this.musicButtons,e)}else this.setMuteProp("musicMuted",t,this.musicButtons,!0)}},{key:"sfxMuted",get:function(){return this._sfxMuted},set:function(t){if(this.sfxMuted!==t){var e=!1;this.sfxVolumeEnabled&&!t&&(this.sendProperty(r.sfxVolumeKey,this.sfxVolume),e=!0),this.setMuteProp("sfxMuted",t,this.sfxButtons,e)}else this.setMuteProp("sfxMuted",t,this.sfxButtons,!0)}},{key:"soundButton",get:function(){return this._soundButton.button}},{key:"musicButton",get:function(){return this._musicButton.button}},{key:"sfxButton",get:function(){return this._sfxButton.button}},{key:"voButton",get:function(){return this._voButton.button}}],[{key:"soundMutedKey",get:function(){return"soundMuted"}},{key:"voMutedKey",get:function(){return"voMuted"}},{key:"musicMutedKey",get:function(){return"musicMuted"}},{key:"sfxMutedKey",get:function(){return"sfxMuted"}},{key:"soundVolumeKey",get:function(){return"soundVolume"}},{key:"sfxVolumeKey",get:function(){return"sfxVolume"}},{key:"voVolumeKey",get:function(){return"voVolume"}},{key:"musicVolumeKey",get:function(){return"musicVolume"}},{key:"soundKey",get:function(){return"sound"}}]),r}(rv),Dg=function(){function t(){Wa(this,t),this.dbName,this.savedData}return Ya(t,[{key:"IDBOpen",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;this.savedData=new ev,this.savedData.IDBOpen(t,e,n,r,o)}},{key:"IDBAdd",value:function(t,e,n,r){this.savedData.IDBAdd(t,e,n,r)}},{key:"IDBUpdate",value:function(t,e,n,r){this.savedData.IDBUpdate(t,e,n,r)}},{key:"IDBRemove",value:function(t,e,n){this.savedData.IDBRemove(t,e,n)}},{key:"IDBRead",value:function(t,e,n){this.savedData.IDBRead(t,e,n)}},{key:"IDBReadAll",value:function(t,e,n){this.savedData.IDBReadAll(t,e,n)}},{key:"IDBGetVersion",value:function(t,e){new ev(t).IDBGetVersion(t,e)}},{key:"IDBClose",value:function(t){this.savedData.IDBClose(t)}},{key:"IDBDeleteDB",value:function(t,e,n){new ev(t).IDBDeleteDB(t,e,n)}}],[{key:"remove",value:function(t,e){ev.remove(t),e()}},{key:"write",value:function(t,e,n){ev.write(t,e),n()}},{key:"read",value:function(t,e){e(ev.read(t))}}]),t}(),Mg=function(t){Ja(n,t);var e=eu(n);function n(){var t;return Wa(this,n),(t=e.call(this,"UserData-Plugin")).onUserDataRemove=t.onUserDataRemove.bind(Za(t)),t.onUserDataRead=t.onUserDataRead.bind(Za(t)),t.onUserDataWrite=t.onUserDataWrite.bind(Za(t)),t.onIDBAdd=t.onIDBAdd.bind(Za(t)),t.onIDBOpen=t.onIDBOpen.bind(Za(t)),t.onIDBRead=t.onIDBRead.bind(Za(t)),t.onIDBReadAll=t.onIDBReadAll.bind(Za(t)),t.onIDBRemove=t.onIDBRemove.bind(Za(t)),t.onIDBUpdate=t.onIDBUpdate.bind(Za(t)),t.onIDBUpdate=t.onIDBUpdate.bind(Za(t)),t.onIDBClose=t.onIDBClose.bind(Za(t)),t.IDBReadAll=t.onIDBReadAll.bind(Za(t)),t.onIDBGetVersion=t.onIDBGetVersion.bind(Za(t)),t.onIDBDeleteDB=t.onIDBDeleteDB.bind(Za(t)),t.savedDataHandler=null,t}return Ya(n,[{key:"init",value:function(){this.client.on("userDataRemove",this.onUserDataRemove),this.client.on("userDataRead",this.onUserDataRead),this.client.on("userDataWrite",this.onUserDataWrite),this.client.on("IDBOpen",this.onIDBOpen),this.client.on("IDBRead",this.onIDBRead),this.client.on("IDBReadAll",this.onIDBReadAll),this.client.on("IDBAdd",this.onIDBAdd),this.client.on("IDBRemove",this.onIDBRemove),this.client.on("IDBUpdate",this.onIDBUpdate),this.client.on("IDBClose",this.onIDBClose),this.client.on("IDBGetVersion",this.onIDBGetVersion),this.client.on("IDBDeleteDB",this.onIDBDeleteDB)}},{key:"onUserDataRemove",value:function(t){var e=this,n=t.data,r=t.type;Dg.remove(n,(function(){e.client.send(r)}))}},{key:"onUserDataRead",value:function(t){var e=this,n=t.data,r=t.type;Dg.read(n,(function(t){return e.client.send(r,t)}))}},{key:"onUserDataWrite",value:function(t){var e=this,n=t.type,r=t.data,o=r.name,i=r.value;Dg.write(o,i,(function(){return e.client.send(n)}))}},{key:"onIDBOpen",value:function(t){var e=this,n=t.type,r=t.data,o=r.dbName,i=r.dbVersion,s=void 0===i?null:i,a=r.additions,u=void 0===a?{}:a,l=r.deletions,c=void 0===l?{}:l;this.savedDataHandler=new Dg,this.savedDataHandler.IDBOpen(o,s,u,c,(function(t){return e.client.send(n,t)}))}},{key:"onIDBAdd",value:function(t){var e=this,n=t.type,r=t.data,o=r.storeName,i=r.value,s=r.key;this.savedDataHandler.IDBAdd(o,i,s,(function(t){return e.client.send(n,t)}))}},{key:"onIDBUpdate",value:function(t){var e=this,n=t.type,r=t.data,o=r.storeName,i=r.key,s=r.value;this.savedDataHandler.IDBUpdate(o,i,s,(function(t){return e.client.send(n,t)}))}},{key:"onIDBRemove",value:function(t){var e=this,n=t.type,r=t.data,o=r.storeName,i=r.key;this.savedDataHandler.IDBRemove(o,i,(function(t){return e.client.send(n,t)}))}},{key:"onIDBRead",value:function(t){var e=this,n=t.type,r=t.data,o=r.storeName,i=r.key;this.savedDataHandler.IDBRead(o,i,(function(t){return e.client.send(n,t)}))}},{key:"onIDBReadAll",value:function(t){var e=this,n=t.type,r=t.data,o=r.storeName,i=r.count;this.savedDataHandler.IDBReadAll(o,i,(function(t){return e.client.send(n,t)}))}},{key:"onIDBGetVersion",value:function(t){var e=this,n=t.type,r=t.data.dbName;(new Dg).IDBGetVersion(r,(function(t){return e.client.send(n,t)}))}},{key:"onIDBClose",value:function(t){var e=this,n=t.type;this.savedDataHandler.IDBClose((function(t){return e.client.send(n,t)}))}},{key:"onIDBDeleteDB",value:function(t){var e=this,n=t.type,r=t.data,o=r.dbName,i=r.options;(new Dg).IDBDeleteDB(o,i,(function(t){return e.client.send(n,t)}))}}]),n}(nv),Tg=function(t){Ja(n,t);var e=eu(n);function n(t){var r,o=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).defaultPointerSize,i=void 0===o?.5:o;Wa(this,n),r=e.call(this,t,"UISize-Pointer-Plugin",{defaultValue:i,featureName:n.pointerSizeKey});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultButtonSize,i=void 0===o?.5:o;Wa(this,n),r=e.call(this,t,"UISize-Button-Plugin",{defaultValue:i,featureName:n.buttonSizeKey});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultSensitivity,i=void 0===o?.5:o;Wa(this,n),(r=e.call(this,t,"Control-Sensitivity-Plugin",{defaultValue:i,featureName:n.controlSensitivityKey})).sendAllProperties=r.sendAllProperties.bind(Za(r));for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).customClassName,i=void 0===o?"springrollContainerKeyBinding__button":o;return Wa(this,n),(r=e.call(this,"Keyboard-Map-Plugin")).sendAllProperties=r.sendAllProperties.bind(Za(r)),r.bindKey=r.bindKey.bind(Za(r)),r.onKeyButtonClick=r.onKeyButtonClick.bind(Za(r)),r.className=i,r.keyContainers=t instanceof HTMLElement?[t]:document.querySelectorAll(t),r.keyBindings={},r.buttons=[],r.activekeyButton,r.sendAfterFetch=!1,r.canEmit=!1,r.keyContainersLength=r.keyContainers.length,r.keyContainersLength<=0?(r.warn("plugin was not provided any valid key binding container elements"),tu(r)):r}return Ya(n,[{key:"onKeyButtonClick",value:function(t){for(var e=0,n=this.buttons.length;e1&&void 0!==arguments[1]?arguments[1]:{}).defaultValue,i=void 0===o?0:o;Wa(this,n),r=e.call(this,t,"Layer-Plugin",{defaultValue:i,featureName:n.layersSliderKey});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultValue,i=void 0===o?Kg[0]:o;Wa(this,n),(r=e.call(this,t,"HUD-Layout-Plugin",{supportedValues:Kg,initialValue:i,controlName:"Hud Selector",featureName:n.hudPositionKey,radioCount:Kg.length})).sendAllProperties=r.sendAllProperties.bind(Za(r)),r.sendAfterFetch=!1,r.canEmit=!1,r.positions=[],r.radioGroupsLength<=0&&r.warn("Plugin was not provided any valid HTML elements");for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultValue,i=void 0===o?Gg[0]:o;if(Wa(this,n),(r=e.call(this,t,"Color-Filter-Plugin",{supportedValues:Gg,initialValue:i,controlName:"Color Vision Selector",featureName:n.colorVisionKey,radioCount:Gg.length})).sendAllProperties=r.sendAllProperties.bind(Za(r)),r.sendAfterFetch=!1,r.canEmit=!1,r.colors=[],r.radioGroupsLength<=0)return r.warn("Plugin was not provided any valid HTML elements"),tu(r);for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultHitAreaScale,i=void 0===o?.5:o;Wa(this,n),r=e.call(this,t,"Hit-Area-Scale-Plugin",{defaultValue:i,featureName:n.hitAreaScaleKey});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultDragThresholdScale,i=void 0===o?.5:o;Wa(this,n),r=e.call(this,t,"Drag-Threshold-Scale-Plugin",{defaultValue:i,featureName:n.dragThresholdScaleKey});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultHealth,i=void 0===o?.5:o;Wa(this,n),r=e.call(this,t,"Health-Scale-Plugin",{defaultValue:i,featureName:n.healthKey});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultObjectCount,i=void 0===o?.5:o;Wa(this,n),r=e.call(this,t,"Object-Count-Plugin",{defaultValue:i,featureName:n.objectCountKey});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultCompletionPercentage,i=void 0===o?.5:o;Wa(this,n),r=e.call(this,t,"Completion-Percentage-Plugin",{defaultValue:i,featureName:n.completionPercentageKey});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultSpeedScale,i=void 0===o?.5:o;Wa(this,n),r=e.call(this,t,"Speed-Scale-Plugin",{defaultValue:i,featureName:n.speedScaleKey});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultTimersScale,i=void 0===o?.5:o;Wa(this,n),r=e.call(this,t,"Timers-Scale-Plugin",{defaultValue:i,featureName:n.timersScaleKey});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultInputCount,i=void 0===o?.5:o;Wa(this,n),r=e.call(this,t,"Input-Count-Plugin",{defaultValue:i,featureName:n.inputCountKey});for(var s=0;s -1\n }\n}\n\nfunction normalizeName(name) {\n if (typeof name !== 'string') {\n name = String(name)\n }\n if (/[^a-z0-9\\-#$%&'*+.^_`|~!]/i.test(name) || name === '') {\n throw new TypeError('Invalid character in header field name: \"' + name + '\"')\n }\n return name.toLowerCase()\n}\n\nfunction normalizeValue(value) {\n if (typeof value !== 'string') {\n value = String(value)\n }\n return value\n}\n\n// Build a destructive iterator for the value list\nfunction iteratorFor(items) {\n var iterator = {\n next: function() {\n var value = items.shift()\n return {done: value === undefined, value: value}\n }\n }\n\n if (support.iterable) {\n iterator[Symbol.iterator] = function() {\n return iterator\n }\n }\n\n return iterator\n}\n\nexport function Headers(headers) {\n this.map = {}\n\n if (headers instanceof Headers) {\n headers.forEach(function(value, name) {\n this.append(name, value)\n }, this)\n } else if (Array.isArray(headers)) {\n headers.forEach(function(header) {\n this.append(header[0], header[1])\n }, this)\n } else if (headers) {\n Object.getOwnPropertyNames(headers).forEach(function(name) {\n this.append(name, headers[name])\n }, this)\n }\n}\n\nHeaders.prototype.append = function(name, value) {\n name = normalizeName(name)\n value = normalizeValue(value)\n var oldValue = this.map[name]\n this.map[name] = oldValue ? oldValue + ', ' + value : value\n}\n\nHeaders.prototype['delete'] = function(name) {\n delete this.map[normalizeName(name)]\n}\n\nHeaders.prototype.get = function(name) {\n name = normalizeName(name)\n return this.has(name) ? this.map[name] : null\n}\n\nHeaders.prototype.has = function(name) {\n return this.map.hasOwnProperty(normalizeName(name))\n}\n\nHeaders.prototype.set = function(name, value) {\n this.map[normalizeName(name)] = normalizeValue(value)\n}\n\nHeaders.prototype.forEach = function(callback, thisArg) {\n for (var name in this.map) {\n if (this.map.hasOwnProperty(name)) {\n callback.call(thisArg, this.map[name], name, this)\n }\n }\n}\n\nHeaders.prototype.keys = function() {\n var items = []\n this.forEach(function(value, name) {\n items.push(name)\n })\n return iteratorFor(items)\n}\n\nHeaders.prototype.values = function() {\n var items = []\n this.forEach(function(value) {\n items.push(value)\n })\n return iteratorFor(items)\n}\n\nHeaders.prototype.entries = function() {\n var items = []\n this.forEach(function(value, name) {\n items.push([name, value])\n })\n return iteratorFor(items)\n}\n\nif (support.iterable) {\n Headers.prototype[Symbol.iterator] = Headers.prototype.entries\n}\n\nfunction consumed(body) {\n if (body.bodyUsed) {\n return Promise.reject(new TypeError('Already read'))\n }\n body.bodyUsed = true\n}\n\nfunction fileReaderReady(reader) {\n return new Promise(function(resolve, reject) {\n reader.onload = function() {\n resolve(reader.result)\n }\n reader.onerror = function() {\n reject(reader.error)\n }\n })\n}\n\nfunction readBlobAsArrayBuffer(blob) {\n var reader = new FileReader()\n var promise = fileReaderReady(reader)\n reader.readAsArrayBuffer(blob)\n return promise\n}\n\nfunction readBlobAsText(blob) {\n var reader = new FileReader()\n var promise = fileReaderReady(reader)\n reader.readAsText(blob)\n return promise\n}\n\nfunction readArrayBufferAsText(buf) {\n var view = new Uint8Array(buf)\n var chars = new Array(view.length)\n\n for (var i = 0; i < view.length; i++) {\n chars[i] = String.fromCharCode(view[i])\n }\n return chars.join('')\n}\n\nfunction bufferClone(buf) {\n if (buf.slice) {\n return buf.slice(0)\n } else {\n var view = new Uint8Array(buf.byteLength)\n view.set(new Uint8Array(buf))\n return view.buffer\n }\n}\n\nfunction Body() {\n this.bodyUsed = false\n\n this._initBody = function(body) {\n /*\n fetch-mock wraps the Response object in an ES6 Proxy to\n provide useful test harness features such as flush. However, on\n ES5 browsers without fetch or Proxy support pollyfills must be used;\n the proxy-pollyfill is unable to proxy an attribute unless it exists\n on the object before the Proxy is created. This change ensures\n Response.bodyUsed exists on the instance, while maintaining the\n semantic of setting Request.bodyUsed in the constructor before\n _initBody is called.\n */\n this.bodyUsed = this.bodyUsed\n this._bodyInit = body\n if (!body) {\n this._bodyText = ''\n } else if (typeof body === 'string') {\n this._bodyText = body\n } else if (support.blob && Blob.prototype.isPrototypeOf(body)) {\n this._bodyBlob = body\n } else if (support.formData && FormData.prototype.isPrototypeOf(body)) {\n this._bodyFormData = body\n } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {\n this._bodyText = body.toString()\n } else if (support.arrayBuffer && support.blob && isDataView(body)) {\n this._bodyArrayBuffer = bufferClone(body.buffer)\n // IE 10-11 can't handle a DataView body.\n this._bodyInit = new Blob([this._bodyArrayBuffer])\n } else if (support.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(body) || isArrayBufferView(body))) {\n this._bodyArrayBuffer = bufferClone(body)\n } else {\n this._bodyText = body = Object.prototype.toString.call(body)\n }\n\n if (!this.headers.get('content-type')) {\n if (typeof body === 'string') {\n this.headers.set('content-type', 'text/plain;charset=UTF-8')\n } else if (this._bodyBlob && this._bodyBlob.type) {\n this.headers.set('content-type', this._bodyBlob.type)\n } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {\n this.headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8')\n }\n }\n }\n\n if (support.blob) {\n this.blob = function() {\n var rejected = consumed(this)\n if (rejected) {\n return rejected\n }\n\n if (this._bodyBlob) {\n return Promise.resolve(this._bodyBlob)\n } else if (this._bodyArrayBuffer) {\n return Promise.resolve(new Blob([this._bodyArrayBuffer]))\n } else if (this._bodyFormData) {\n throw new Error('could not read FormData body as blob')\n } else {\n return Promise.resolve(new Blob([this._bodyText]))\n }\n }\n\n this.arrayBuffer = function() {\n if (this._bodyArrayBuffer) {\n var isConsumed = consumed(this)\n if (isConsumed) {\n return isConsumed\n }\n if (ArrayBuffer.isView(this._bodyArrayBuffer)) {\n return Promise.resolve(\n this._bodyArrayBuffer.buffer.slice(\n this._bodyArrayBuffer.byteOffset,\n this._bodyArrayBuffer.byteOffset + this._bodyArrayBuffer.byteLength\n )\n )\n } else {\n return Promise.resolve(this._bodyArrayBuffer)\n }\n } else {\n return this.blob().then(readBlobAsArrayBuffer)\n }\n }\n }\n\n this.text = function() {\n var rejected = consumed(this)\n if (rejected) {\n return rejected\n }\n\n if (this._bodyBlob) {\n return readBlobAsText(this._bodyBlob)\n } else if (this._bodyArrayBuffer) {\n return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer))\n } else if (this._bodyFormData) {\n throw new Error('could not read FormData body as text')\n } else {\n return Promise.resolve(this._bodyText)\n }\n }\n\n if (support.formData) {\n this.formData = function() {\n return this.text().then(decode)\n }\n }\n\n this.json = function() {\n return this.text().then(JSON.parse)\n }\n\n return this\n}\n\n// HTTP methods whose capitalization should be normalized\nvar methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT']\n\nfunction normalizeMethod(method) {\n var upcased = method.toUpperCase()\n return methods.indexOf(upcased) > -1 ? upcased : method\n}\n\nexport function Request(input, options) {\n if (!(this instanceof Request)) {\n throw new TypeError('Please use the \"new\" operator, this DOM object constructor cannot be called as a function.')\n }\n\n options = options || {}\n var body = options.body\n\n if (input instanceof Request) {\n if (input.bodyUsed) {\n throw new TypeError('Already read')\n }\n this.url = input.url\n this.credentials = input.credentials\n if (!options.headers) {\n this.headers = new Headers(input.headers)\n }\n this.method = input.method\n this.mode = input.mode\n this.signal = input.signal\n if (!body && input._bodyInit != null) {\n body = input._bodyInit\n input.bodyUsed = true\n }\n } else {\n this.url = String(input)\n }\n\n this.credentials = options.credentials || this.credentials || 'same-origin'\n if (options.headers || !this.headers) {\n this.headers = new Headers(options.headers)\n }\n this.method = normalizeMethod(options.method || this.method || 'GET')\n this.mode = options.mode || this.mode || null\n this.signal = options.signal || this.signal\n this.referrer = null\n\n if ((this.method === 'GET' || this.method === 'HEAD') && body) {\n throw new TypeError('Body not allowed for GET or HEAD requests')\n }\n this._initBody(body)\n\n if (this.method === 'GET' || this.method === 'HEAD') {\n if (options.cache === 'no-store' || options.cache === 'no-cache') {\n // Search for a '_' parameter in the query string\n var reParamSearch = /([?&])_=[^&]*/\n if (reParamSearch.test(this.url)) {\n // If it already exists then set the value with the current time\n this.url = this.url.replace(reParamSearch, '$1_=' + new Date().getTime())\n } else {\n // Otherwise add a new '_' parameter to the end with the current time\n var reQueryString = /\\?/\n this.url += (reQueryString.test(this.url) ? '&' : '?') + '_=' + new Date().getTime()\n }\n }\n }\n}\n\nRequest.prototype.clone = function() {\n return new Request(this, {body: this._bodyInit})\n}\n\nfunction decode(body) {\n var form = new FormData()\n body\n .trim()\n .split('&')\n .forEach(function(bytes) {\n if (bytes) {\n var split = bytes.split('=')\n var name = split.shift().replace(/\\+/g, ' ')\n var value = split.join('=').replace(/\\+/g, ' ')\n form.append(decodeURIComponent(name), decodeURIComponent(value))\n }\n })\n return form\n}\n\nfunction parseHeaders(rawHeaders) {\n var headers = new Headers()\n // Replace instances of \\r\\n and \\n followed by at least one space or horizontal tab with a space\n // https://tools.ietf.org/html/rfc7230#section-3.2\n var preProcessedHeaders = rawHeaders.replace(/\\r?\\n[\\t ]+/g, ' ')\n // Avoiding split via regex to work around a common IE11 bug with the core-js 3.6.0 regex polyfill\n // https://github.com/github/fetch/issues/748\n // https://github.com/zloirock/core-js/issues/751\n preProcessedHeaders\n .split('\\r')\n .map(function(header) {\n return header.indexOf('\\n') === 0 ? header.substr(1, header.length) : header\n })\n .forEach(function(line) {\n var parts = line.split(':')\n var key = parts.shift().trim()\n if (key) {\n var value = parts.join(':').trim()\n headers.append(key, value)\n }\n })\n return headers\n}\n\nBody.call(Request.prototype)\n\nexport function Response(bodyInit, options) {\n if (!(this instanceof Response)) {\n throw new TypeError('Please use the \"new\" operator, this DOM object constructor cannot be called as a function.')\n }\n if (!options) {\n options = {}\n }\n\n this.type = 'default'\n this.status = options.status === undefined ? 200 : options.status\n this.ok = this.status >= 200 && this.status < 300\n this.statusText = options.statusText === undefined ? '' : '' + options.statusText\n this.headers = new Headers(options.headers)\n this.url = options.url || ''\n this._initBody(bodyInit)\n}\n\nBody.call(Response.prototype)\n\nResponse.prototype.clone = function() {\n return new Response(this._bodyInit, {\n status: this.status,\n statusText: this.statusText,\n headers: new Headers(this.headers),\n url: this.url\n })\n}\n\nResponse.error = function() {\n var response = new Response(null, {status: 0, statusText: ''})\n response.type = 'error'\n return response\n}\n\nvar redirectStatuses = [301, 302, 303, 307, 308]\n\nResponse.redirect = function(url, status) {\n if (redirectStatuses.indexOf(status) === -1) {\n throw new RangeError('Invalid status code')\n }\n\n return new Response(null, {status: status, headers: {location: url}})\n}\n\nexport var DOMException = global.DOMException\ntry {\n new DOMException()\n} catch (err) {\n DOMException = function(message, name) {\n this.message = message\n this.name = name\n var error = Error(message)\n this.stack = error.stack\n }\n DOMException.prototype = Object.create(Error.prototype)\n DOMException.prototype.constructor = DOMException\n}\n\nexport function fetch(input, init) {\n return new Promise(function(resolve, reject) {\n var request = new Request(input, init)\n\n if (request.signal && request.signal.aborted) {\n return reject(new DOMException('Aborted', 'AbortError'))\n }\n\n var xhr = new XMLHttpRequest()\n\n function abortXhr() {\n xhr.abort()\n }\n\n xhr.onload = function() {\n var options = {\n status: xhr.status,\n statusText: xhr.statusText,\n headers: parseHeaders(xhr.getAllResponseHeaders() || '')\n }\n options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL')\n var body = 'response' in xhr ? xhr.response : xhr.responseText\n setTimeout(function() {\n resolve(new Response(body, options))\n }, 0)\n }\n\n xhr.onerror = function() {\n setTimeout(function() {\n reject(new TypeError('Network request failed'))\n }, 0)\n }\n\n xhr.ontimeout = function() {\n setTimeout(function() {\n reject(new TypeError('Network request failed'))\n }, 0)\n }\n\n xhr.onabort = function() {\n setTimeout(function() {\n reject(new DOMException('Aborted', 'AbortError'))\n }, 0)\n }\n\n function fixUrl(url) {\n try {\n return url === '' && global.location.href ? global.location.href : url\n } catch (e) {\n return url\n }\n }\n\n xhr.open(request.method, fixUrl(request.url), true)\n\n if (request.credentials === 'include') {\n xhr.withCredentials = true\n } else if (request.credentials === 'omit') {\n xhr.withCredentials = false\n }\n\n if ('responseType' in xhr) {\n if (support.blob) {\n xhr.responseType = 'blob'\n } else if (\n support.arrayBuffer &&\n request.headers.get('Content-Type') &&\n request.headers.get('Content-Type').indexOf('application/octet-stream') !== -1\n ) {\n xhr.responseType = 'arraybuffer'\n }\n }\n\n if (init && typeof init.headers === 'object' && !(init.headers instanceof Headers)) {\n Object.getOwnPropertyNames(init.headers).forEach(function(name) {\n xhr.setRequestHeader(name, normalizeValue(init.headers[name]))\n })\n } else {\n request.headers.forEach(function(value, name) {\n xhr.setRequestHeader(name, value)\n })\n }\n\n if (request.signal) {\n request.signal.addEventListener('abort', abortXhr)\n\n xhr.onreadystatechange = function() {\n // DONE (success or failure)\n if (xhr.readyState === 4) {\n request.signal.removeEventListener('abort', abortXhr)\n }\n }\n }\n\n xhr.send(typeof request._bodyInit === 'undefined' ? null : request._bodyInit)\n })\n}\n\nfetch.polyfill = true\n\nif (!global.fetch) {\n global.fetch = fetch\n global.Headers = Headers\n global.Request = Request\n global.Response = Response\n}\n","var check = function (it) {\n return it && it.Math == Math && it;\n};\n\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nmodule.exports =\n // eslint-disable-next-line es/no-global-this -- safe\n check(typeof globalThis == 'object' && globalThis) ||\n check(typeof window == 'object' && window) ||\n // eslint-disable-next-line no-restricted-globals -- safe\n check(typeof self == 'object' && self) ||\n check(typeof global == 'object' && global) ||\n // eslint-disable-next-line no-new-func -- fallback\n (function () { return this; })() || Function('return this')();\n","// iterable DOM collections\n// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods\nmodule.exports = {\n CSSRuleList: 0,\n CSSStyleDeclaration: 0,\n CSSValueList: 0,\n ClientRectList: 0,\n DOMRectList: 0,\n DOMStringList: 0,\n DOMTokenList: 1,\n DataTransferItemList: 0,\n FileList: 0,\n HTMLAllCollection: 0,\n HTMLCollection: 0,\n HTMLFormElement: 0,\n HTMLSelectElement: 0,\n MediaList: 0,\n MimeTypeArray: 0,\n NamedNodeMap: 0,\n NodeList: 1,\n PaintRequestList: 0,\n Plugin: 0,\n PluginArray: 0,\n SVGLengthList: 0,\n SVGNumberList: 0,\n SVGPathSegList: 0,\n SVGPointList: 0,\n SVGStringList: 0,\n SVGTransformList: 0,\n SourceBufferList: 0,\n StyleSheetList: 0,\n TextTrackCueList: 0,\n TextTrackList: 0,\n TouchList: 0\n};\n","var documentAll = typeof document == 'object' && document.all;\n\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot\n// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing\nvar IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;\n\nmodule.exports = {\n all: documentAll,\n IS_HTMLDDA: IS_HTMLDDA\n};\n","var $documentAll = require('../internals/document-all');\n\nvar documentAll = $documentAll.all;\n\n// `IsCallable` abstract operation\n// https://tc39.es/ecma262/#sec-iscallable\nmodule.exports = $documentAll.IS_HTMLDDA ? function (argument) {\n return typeof argument == 'function' || argument === documentAll;\n} : function (argument) {\n return typeof argument == 'function';\n};\n","var isCallable = require('../internals/is-callable');\nvar $documentAll = require('../internals/document-all');\n\nvar documentAll = $documentAll.all;\n\nmodule.exports = $documentAll.IS_HTMLDDA ? function (it) {\n return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll;\n} : function (it) {\n return typeof it == 'object' ? it !== null : isCallable(it);\n};\n","var global = require('../internals/global');\nvar isObject = require('../internals/is-object');\n\nvar document = global.document;\n// typeof document.createElement is 'object' in old IE\nvar EXISTS = isObject(document) && isObject(document.createElement);\n\nmodule.exports = function (it) {\n return EXISTS ? document.createElement(it) : {};\n};\n","// in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`\nvar documentCreateElement = require('../internals/document-create-element');\n\nvar classList = documentCreateElement('span').classList;\nvar DOMTokenListPrototype = classList && classList.constructor && classList.constructor.prototype;\n\nmodule.exports = DOMTokenListPrototype === Object.prototype ? undefined : DOMTokenListPrototype;\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (error) {\n return true;\n }\n};\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-function-prototype-bind -- safe\n var test = (function () { /* empty */ }).bind();\n // eslint-disable-next-line no-prototype-builtins -- safe\n return typeof test != 'function' || test.hasOwnProperty('prototype');\n});\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar FunctionPrototype = Function.prototype;\nvar call = FunctionPrototype.call;\nvar uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);\n\nmodule.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {\n return function () {\n return call.apply(fn, arguments);\n };\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nvar toString = uncurryThis({}.toString);\nvar stringSlice = uncurryThis(''.slice);\n\nmodule.exports = function (it) {\n return stringSlice(toString(it), 8, -1);\n};\n","var classofRaw = require('../internals/classof-raw');\nvar uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = function (fn) {\n // Nashorn bug:\n // https://github.com/zloirock/core-js/issues/1128\n // https://github.com/zloirock/core-js/issues/1130\n if (classofRaw(fn) === 'Function') return uncurryThis(fn);\n};\n","var $String = String;\n\nmodule.exports = function (argument) {\n try {\n return $String(argument);\n } catch (error) {\n return 'Object';\n }\n};\n","var isCallable = require('../internals/is-callable');\nvar tryToString = require('../internals/try-to-string');\n\nvar $TypeError = TypeError;\n\n// `Assert: IsCallable(argument) is true`\nmodule.exports = function (argument) {\n if (isCallable(argument)) return argument;\n throw $TypeError(tryToString(argument) + ' is not a function');\n};\n","var uncurryThis = require('../internals/function-uncurry-this-clause');\nvar aCallable = require('../internals/a-callable');\nvar NATIVE_BIND = require('../internals/function-bind-native');\n\nvar bind = uncurryThis(uncurryThis.bind);\n\n// optional / simple context binding\nmodule.exports = function (fn, that) {\n aCallable(fn);\n return that === undefined ? fn : NATIVE_BIND ? bind(fn, that) : function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar classof = require('../internals/classof-raw');\n\nvar $Object = Object;\nvar split = uncurryThis(''.split);\n\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\nmodule.exports = fails(function () {\n // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346\n // eslint-disable-next-line no-prototype-builtins -- safe\n return !$Object('z').propertyIsEnumerable(0);\n}) ? function (it) {\n return classof(it) == 'String' ? split(it, '') : $Object(it);\n} : $Object;\n","// we can't use just `it == null` since of `document.all` special case\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec\nmodule.exports = function (it) {\n return it === null || it === undefined;\n};\n","var isNullOrUndefined = require('../internals/is-null-or-undefined');\n\nvar $TypeError = TypeError;\n\n// `RequireObjectCoercible` abstract operation\n// https://tc39.es/ecma262/#sec-requireobjectcoercible\nmodule.exports = function (it) {\n if (isNullOrUndefined(it)) throw $TypeError(\"Can't call method on \" + it);\n return it;\n};\n","var requireObjectCoercible = require('../internals/require-object-coercible');\n\nvar $Object = Object;\n\n// `ToObject` abstract operation\n// https://tc39.es/ecma262/#sec-toobject\nmodule.exports = function (argument) {\n return $Object(requireObjectCoercible(argument));\n};\n","var ceil = Math.ceil;\nvar floor = Math.floor;\n\n// `Math.trunc` method\n// https://tc39.es/ecma262/#sec-math.trunc\n// eslint-disable-next-line es/no-math-trunc -- safe\nmodule.exports = Math.trunc || function trunc(x) {\n var n = +x;\n return (n > 0 ? floor : ceil)(n);\n};\n","var trunc = require('../internals/math-trunc');\n\n// `ToIntegerOrInfinity` abstract operation\n// https://tc39.es/ecma262/#sec-tointegerorinfinity\nmodule.exports = function (argument) {\n var number = +argument;\n // eslint-disable-next-line no-self-compare -- NaN check\n return number !== number || number === 0 ? 0 : trunc(number);\n};\n","var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar min = Math.min;\n\n// `ToLength` abstract operation\n// https://tc39.es/ecma262/#sec-tolength\nmodule.exports = function (argument) {\n return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991\n};\n","var toLength = require('../internals/to-length');\n\n// `LengthOfArrayLike` abstract operation\n// https://tc39.es/ecma262/#sec-lengthofarraylike\nmodule.exports = function (obj) {\n return toLength(obj.length);\n};\n","var classof = require('../internals/classof-raw');\n\n// `IsArray` abstract operation\n// https://tc39.es/ecma262/#sec-isarray\n// eslint-disable-next-line es/no-array-isarray -- safe\nmodule.exports = Array.isArray || function isArray(argument) {\n return classof(argument) == 'Array';\n};\n","var global = require('../internals/global');\n\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\n\nmodule.exports = function (key, value) {\n try {\n defineProperty(global, key, { value: value, configurable: true, writable: true });\n } catch (error) {\n global[key] = value;\n } return value;\n};\n","var global = require('../internals/global');\nvar defineGlobalProperty = require('../internals/define-global-property');\n\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || defineGlobalProperty(SHARED, {});\n\nmodule.exports = store;\n","var IS_PURE = require('../internals/is-pure');\nvar store = require('../internals/shared-store');\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: '3.28.0',\n mode: IS_PURE ? 'pure' : 'global',\n copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',\n license: 'https://github.com/zloirock/core-js/blob/v3.28.0/LICENSE',\n source: 'https://github.com/zloirock/core-js'\n});\n","var global = require('../internals/global');\nvar userAgent = require('../internals/engine-user-agent');\n\nvar process = global.process;\nvar Deno = global.Deno;\nvar versions = process && process.versions || Deno && Deno.version;\nvar v8 = versions && versions.v8;\nvar match, version;\n\nif (v8) {\n match = v8.split('.');\n // in old Chrome, versions of V8 isn't V8 = Chrome / 10\n // but their correct versions are not interesting for us\n version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);\n}\n\n// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`\n// so check `userAgent` even if `.v8` exists, but 0\nif (!version && userAgent) {\n match = userAgent.match(/Edge\\/(\\d+)/);\n if (!match || match[1] >= 74) {\n match = userAgent.match(/Chrome\\/(\\d+)/);\n if (match) version = +match[1];\n }\n}\n\nmodule.exports = version;\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar toObject = require('../internals/to-object');\n\nvar hasOwnProperty = uncurryThis({}.hasOwnProperty);\n\n// `HasOwnProperty` abstract operation\n// https://tc39.es/ecma262/#sec-hasownproperty\n// eslint-disable-next-line es/no-object-hasown -- safe\nmodule.exports = Object.hasOwn || function hasOwn(it, key) {\n return hasOwnProperty(toObject(it), key);\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nvar id = 0;\nvar postfix = Math.random();\nvar toString = uncurryThis(1.0.toString);\n\nmodule.exports = function (key) {\n return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);\n};\n","module.exports = typeof navigator != 'undefined' && String(navigator.userAgent) || '';\n","/* eslint-disable es/no-symbol -- required for testing */\nvar V8_VERSION = require('../internals/engine-v8-version');\nvar fails = require('../internals/fails');\n\n// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing\nmodule.exports = !!Object.getOwnPropertySymbols && !fails(function () {\n var symbol = Symbol();\n // Chrome 38 Symbol has incorrect toString conversion\n // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances\n return !String(symbol) || !(Object(symbol) instanceof Symbol) ||\n // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances\n !Symbol.sham && V8_VERSION && V8_VERSION < 41;\n});\n","/* eslint-disable es/no-symbol -- required for testing */\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\n\nmodule.exports = NATIVE_SYMBOL\n && !Symbol.sham\n && typeof Symbol.iterator == 'symbol';\n","var global = require('../internals/global');\nvar shared = require('../internals/shared');\nvar hasOwn = require('../internals/has-own-property');\nvar uid = require('../internals/uid');\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar Symbol = global.Symbol;\nvar WellKnownSymbolsStore = shared('wks');\nvar createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol['for'] || Symbol : Symbol && Symbol.withoutSetter || uid;\n\nmodule.exports = function (name) {\n if (!hasOwn(WellKnownSymbolsStore, name)) {\n WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn(Symbol, name)\n ? Symbol[name]\n : createWellKnownSymbol('Symbol.' + name);\n } return WellKnownSymbolsStore[name];\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar test = {};\n\ntest[TO_STRING_TAG] = 'z';\n\nmodule.exports = String(test) === '[object z]';\n","var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar isCallable = require('../internals/is-callable');\nvar classofRaw = require('../internals/classof-raw');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar $Object = Object;\n\n// ES3 wrong here\nvar CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function (it, key) {\n try {\n return it[key];\n } catch (error) { /* empty */ }\n};\n\n// getting tag from ES6+ `Object.prototype.toString`\nmodule.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {\n var O, tag, result;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag\n // builtinTag case\n : CORRECT_ARGUMENTS ? classofRaw(O)\n // ES3 arguments fallback\n : (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;\n};\n","var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar aFunction = function (argument) {\n return isCallable(argument) ? argument : undefined;\n};\n\nmodule.exports = function (namespace, method) {\n return arguments.length < 2 ? aFunction(global[namespace]) : global[namespace] && global[namespace][method];\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar isCallable = require('../internals/is-callable');\nvar store = require('../internals/shared-store');\n\nvar functionToString = uncurryThis(Function.toString);\n\n// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper\nif (!isCallable(store.inspectSource)) {\n store.inspectSource = function (it) {\n return functionToString(it);\n };\n}\n\nmodule.exports = store.inspectSource;\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar classof = require('../internals/classof');\nvar getBuiltIn = require('../internals/get-built-in');\nvar inspectSource = require('../internals/inspect-source');\n\nvar noop = function () { /* empty */ };\nvar empty = [];\nvar construct = getBuiltIn('Reflect', 'construct');\nvar constructorRegExp = /^\\s*(?:class|function)\\b/;\nvar exec = uncurryThis(constructorRegExp.exec);\nvar INCORRECT_TO_STRING = !constructorRegExp.exec(noop);\n\nvar isConstructorModern = function isConstructor(argument) {\n if (!isCallable(argument)) return false;\n try {\n construct(noop, empty, argument);\n return true;\n } catch (error) {\n return false;\n }\n};\n\nvar isConstructorLegacy = function isConstructor(argument) {\n if (!isCallable(argument)) return false;\n switch (classof(argument)) {\n case 'AsyncFunction':\n case 'GeneratorFunction':\n case 'AsyncGeneratorFunction': return false;\n }\n try {\n // we can't check .prototype since constructors produced by .bind haven't it\n // `Function#toString` throws on some built-it function in some legacy engines\n // (for example, `DOMQuad` and similar in FF41-)\n return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));\n } catch (error) {\n return true;\n }\n};\n\nisConstructorLegacy.sham = true;\n\n// `IsConstructor` abstract operation\n// https://tc39.es/ecma262/#sec-isconstructor\nmodule.exports = !construct || fails(function () {\n var called;\n return isConstructorModern(isConstructorModern.call)\n || !isConstructorModern(Object)\n || !isConstructorModern(function () { called = true; })\n || called;\n}) ? isConstructorLegacy : isConstructorModern;\n","var isArray = require('../internals/is-array');\nvar isConstructor = require('../internals/is-constructor');\nvar isObject = require('../internals/is-object');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar SPECIES = wellKnownSymbol('species');\nvar $Array = Array;\n\n// a part of `ArraySpeciesCreate` abstract operation\n// https://tc39.es/ecma262/#sec-arrayspeciescreate\nmodule.exports = function (originalArray) {\n var C;\n if (isArray(originalArray)) {\n C = originalArray.constructor;\n // cross-realm fallback\n if (isConstructor(C) && (C === $Array || isArray(C.prototype))) C = undefined;\n else if (isObject(C)) {\n C = C[SPECIES];\n if (C === null) C = undefined;\n }\n } return C === undefined ? $Array : C;\n};\n","var arraySpeciesConstructor = require('../internals/array-species-constructor');\n\n// `ArraySpeciesCreate` abstract operation\n// https://tc39.es/ecma262/#sec-arrayspeciescreate\nmodule.exports = function (originalArray, length) {\n return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);\n};\n","var bind = require('../internals/function-bind-context');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar IndexedObject = require('../internals/indexed-object');\nvar toObject = require('../internals/to-object');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar arraySpeciesCreate = require('../internals/array-species-create');\n\nvar push = uncurryThis([].push);\n\n// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation\nvar createMethod = function (TYPE) {\n var IS_MAP = TYPE == 1;\n var IS_FILTER = TYPE == 2;\n var IS_SOME = TYPE == 3;\n var IS_EVERY = TYPE == 4;\n var IS_FIND_INDEX = TYPE == 6;\n var IS_FILTER_REJECT = TYPE == 7;\n var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;\n return function ($this, callbackfn, that, specificCreate) {\n var O = toObject($this);\n var self = IndexedObject(O);\n var boundFunction = bind(callbackfn, that);\n var length = lengthOfArrayLike(self);\n var index = 0;\n var create = specificCreate || arraySpeciesCreate;\n var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;\n var value, result;\n for (;length > index; index++) if (NO_HOLES || index in self) {\n value = self[index];\n result = boundFunction(value, index, O);\n if (TYPE) {\n if (IS_MAP) target[index] = result; // map\n else if (result) switch (TYPE) {\n case 3: return true; // some\n case 5: return value; // find\n case 6: return index; // findIndex\n case 2: push(target, value); // filter\n } else switch (TYPE) {\n case 4: return false; // every\n case 7: push(target, value); // filterReject\n }\n }\n }\n return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.forEach` method\n // https://tc39.es/ecma262/#sec-array.prototype.foreach\n forEach: createMethod(0),\n // `Array.prototype.map` method\n // https://tc39.es/ecma262/#sec-array.prototype.map\n map: createMethod(1),\n // `Array.prototype.filter` method\n // https://tc39.es/ecma262/#sec-array.prototype.filter\n filter: createMethod(2),\n // `Array.prototype.some` method\n // https://tc39.es/ecma262/#sec-array.prototype.some\n some: createMethod(3),\n // `Array.prototype.every` method\n // https://tc39.es/ecma262/#sec-array.prototype.every\n every: createMethod(4),\n // `Array.prototype.find` method\n // https://tc39.es/ecma262/#sec-array.prototype.find\n find: createMethod(5),\n // `Array.prototype.findIndex` method\n // https://tc39.es/ecma262/#sec-array.prototype.findIndex\n findIndex: createMethod(6),\n // `Array.prototype.filterReject` method\n // https://github.com/tc39/proposal-array-filtering\n filterReject: createMethod(7)\n};\n","'use strict';\nvar fails = require('../internals/fails');\n\nmodule.exports = function (METHOD_NAME, argument) {\n var method = [][METHOD_NAME];\n return !!method && fails(function () {\n // eslint-disable-next-line no-useless-call -- required for testing\n method.call(null, argument || function () { return 1; }, 1);\n });\n};\n","'use strict';\nvar $forEach = require('../internals/array-iteration').forEach;\nvar arrayMethodIsStrict = require('../internals/array-method-is-strict');\n\nvar STRICT_METHOD = arrayMethodIsStrict('forEach');\n\n// `Array.prototype.forEach` method implementation\n// https://tc39.es/ecma262/#sec-array.prototype.foreach\nmodule.exports = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {\n return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n// eslint-disable-next-line es/no-array-prototype-foreach -- safe\n} : [].forEach;\n","var fails = require('../internals/fails');\n\n// Detect IE8's incomplete defineProperty implementation\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;\n});\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\nvar createElement = require('../internals/document-create-element');\n\n// Thanks to IE8 for its funny defineProperty\nmodule.exports = !DESCRIPTORS && !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(createElement('div'), 'a', {\n get: function () { return 7; }\n }).a != 7;\n});\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\n\n// V8 ~ Chrome 36-\n// https://bugs.chromium.org/p/v8/issues/detail?id=3334\nmodule.exports = DESCRIPTORS && fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(function () { /* empty */ }, 'prototype', {\n value: 42,\n writable: false\n }).prototype != 42;\n});\n","var isObject = require('../internals/is-object');\n\nvar $String = String;\nvar $TypeError = TypeError;\n\n// `Assert: Type(argument) is Object`\nmodule.exports = function (argument) {\n if (isObject(argument)) return argument;\n throw $TypeError($String(argument) + ' is not an object');\n};\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar call = Function.prototype.call;\n\nmodule.exports = NATIVE_BIND ? call.bind(call) : function () {\n return call.apply(call, arguments);\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = uncurryThis({}.isPrototypeOf);\n","var getBuiltIn = require('../internals/get-built-in');\nvar isCallable = require('../internals/is-callable');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar $Object = Object;\n\nmodule.exports = USE_SYMBOL_AS_UID ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n var $Symbol = getBuiltIn('Symbol');\n return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));\n};\n","var aCallable = require('../internals/a-callable');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\n\n// `GetMethod` abstract operation\n// https://tc39.es/ecma262/#sec-getmethod\nmodule.exports = function (V, P) {\n var func = V[P];\n return isNullOrUndefined(func) ? undefined : aCallable(func);\n};\n","var call = require('../internals/function-call');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\n\nvar $TypeError = TypeError;\n\n// `OrdinaryToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-ordinarytoprimitive\nmodule.exports = function (input, pref) {\n var fn, val;\n if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;\n if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n throw $TypeError(\"Can't convert object to primitive value\");\n};\n","var call = require('../internals/function-call');\nvar isObject = require('../internals/is-object');\nvar isSymbol = require('../internals/is-symbol');\nvar getMethod = require('../internals/get-method');\nvar ordinaryToPrimitive = require('../internals/ordinary-to-primitive');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar $TypeError = TypeError;\nvar TO_PRIMITIVE = wellKnownSymbol('toPrimitive');\n\n// `ToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-toprimitive\nmodule.exports = function (input, pref) {\n if (!isObject(input) || isSymbol(input)) return input;\n var exoticToPrim = getMethod(input, TO_PRIMITIVE);\n var result;\n if (exoticToPrim) {\n if (pref === undefined) pref = 'default';\n result = call(exoticToPrim, input, pref);\n if (!isObject(result) || isSymbol(result)) return result;\n throw $TypeError(\"Can't convert object to primitive value\");\n }\n if (pref === undefined) pref = 'number';\n return ordinaryToPrimitive(input, pref);\n};\n","var toPrimitive = require('../internals/to-primitive');\nvar isSymbol = require('../internals/is-symbol');\n\n// `ToPropertyKey` abstract operation\n// https://tc39.es/ecma262/#sec-topropertykey\nmodule.exports = function (argument) {\n var key = toPrimitive(argument, 'string');\n return isSymbol(key) ? key : key + '';\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\nvar V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug');\nvar anObject = require('../internals/an-object');\nvar toPropertyKey = require('../internals/to-property-key');\n\nvar $TypeError = TypeError;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar $defineProperty = Object.defineProperty;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar ENUMERABLE = 'enumerable';\nvar CONFIGURABLE = 'configurable';\nvar WRITABLE = 'writable';\n\n// `Object.defineProperty` method\n// https://tc39.es/ecma262/#sec-object.defineproperty\nexports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {\n var current = $getOwnPropertyDescriptor(O, P);\n if (current && current[WRITABLE]) {\n O[P] = Attributes.value;\n Attributes = {\n configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],\n enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],\n writable: false\n };\n }\n } return $defineProperty(O, P, Attributes);\n} : $defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return $defineProperty(O, P, Attributes);\n } catch (error) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw $TypeError('Accessors not supported');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = DESCRIPTORS ? function (object, key, value) {\n return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","var global = require('../internals/global');\nvar DOMIterables = require('../internals/dom-iterables');\nvar DOMTokenListPrototype = require('../internals/dom-token-list-prototype');\nvar forEach = require('../internals/array-for-each');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\n\nvar handlePrototype = function (CollectionPrototype) {\n // some Chrome versions have non-configurable methods on DOMTokenList\n if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try {\n createNonEnumerableProperty(CollectionPrototype, 'forEach', forEach);\n } catch (error) {\n CollectionPrototype.forEach = forEach;\n }\n};\n\nfor (var COLLECTION_NAME in DOMIterables) {\n if (DOMIterables[COLLECTION_NAME]) {\n handlePrototype(global[COLLECTION_NAME] && global[COLLECTION_NAME].prototype);\n }\n}\n\nhandlePrototype(DOMTokenListPrototype);\n","// toObject with fallback for non-array-like ES3 strings\nvar IndexedObject = require('../internals/indexed-object');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nmodule.exports = function (it) {\n return IndexedObject(requireObjectCoercible(it));\n};\n","var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar max = Math.max;\nvar min = Math.min;\n\n// Helper for a popular repeating case of the spec:\n// Let integer be ? ToInteger(index).\n// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).\nmodule.exports = function (index, length) {\n var integer = toIntegerOrInfinity(index);\n return integer < 0 ? max(integer + length, 0) : min(integer, length);\n};\n","var toIndexedObject = require('../internals/to-indexed-object');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\n\n// `Array.prototype.{ indexOf, includes }` methods implementation\nvar createMethod = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIndexedObject($this);\n var length = lengthOfArrayLike(O);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare -- NaN check\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare -- NaN check\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) {\n if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.includes` method\n // https://tc39.es/ecma262/#sec-array.prototype.includes\n includes: createMethod(true),\n // `Array.prototype.indexOf` method\n // https://tc39.es/ecma262/#sec-array.prototype.indexof\n indexOf: createMethod(false)\n};\n","module.exports = {};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar hasOwn = require('../internals/has-own-property');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar indexOf = require('../internals/array-includes').indexOf;\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar push = uncurryThis([].push);\n\nmodule.exports = function (object, names) {\n var O = toIndexedObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (hasOwn(O, key = names[i++])) {\n ~indexOf(result, key) || push(result, key);\n }\n return result;\n};\n","// IE8- don't enum bug keys\nmodule.exports = [\n 'constructor',\n 'hasOwnProperty',\n 'isPrototypeOf',\n 'propertyIsEnumerable',\n 'toLocaleString',\n 'toString',\n 'valueOf'\n];\n","var internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\n// `Object.keys` method\n// https://tc39.es/ecma262/#sec-object.keys\n// eslint-disable-next-line es/no-object-keys -- safe\nmodule.exports = Object.keys || function keys(O) {\n return internalObjectKeys(O, enumBugKeys);\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug');\nvar definePropertyModule = require('../internals/object-define-property');\nvar anObject = require('../internals/an-object');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar objectKeys = require('../internals/object-keys');\n\n// `Object.defineProperties` method\n// https://tc39.es/ecma262/#sec-object.defineproperties\n// eslint-disable-next-line es/no-object-defineproperties -- safe\nexports.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var props = toIndexedObject(Properties);\n var keys = objectKeys(Properties);\n var length = keys.length;\n var index = 0;\n var key;\n while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);\n return O;\n};\n","var getBuiltIn = require('../internals/get-built-in');\n\nmodule.exports = getBuiltIn('document', 'documentElement');\n","/* global ActiveXObject -- old IE, WSH */\nvar anObject = require('../internals/an-object');\nvar definePropertiesModule = require('../internals/object-define-properties');\nvar enumBugKeys = require('../internals/enum-bug-keys');\nvar hiddenKeys = require('../internals/hidden-keys');\nvar html = require('../internals/html');\nvar documentCreateElement = require('../internals/document-create-element');\nvar sharedKey = require('../internals/shared-key');\n\nvar GT = '>';\nvar LT = '<';\nvar PROTOTYPE = 'prototype';\nvar SCRIPT = 'script';\nvar IE_PROTO = sharedKey('IE_PROTO');\n\nvar EmptyConstructor = function () { /* empty */ };\n\nvar scriptTag = function (content) {\n return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;\n};\n\n// Create object with fake `null` prototype: use ActiveX Object with cleared prototype\nvar NullProtoObjectViaActiveX = function (activeXDocument) {\n activeXDocument.write(scriptTag(''));\n activeXDocument.close();\n var temp = activeXDocument.parentWindow.Object;\n activeXDocument = null; // avoid memory leak\n return temp;\n};\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar NullProtoObjectViaIFrame = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = documentCreateElement('iframe');\n var JS = 'java' + SCRIPT + ':';\n var iframeDocument;\n iframe.style.display = 'none';\n html.appendChild(iframe);\n // https://github.com/zloirock/core-js/issues/475\n iframe.src = String(JS);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(scriptTag('document.F=Object'));\n iframeDocument.close();\n return iframeDocument.F;\n};\n\n// Check for document.domain and active x support\n// No need to use active x approach when document.domain is not set\n// see https://github.com/es-shims/es5-shim/issues/150\n// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346\n// avoid IE GC bug\nvar activeXDocument;\nvar NullProtoObject = function () {\n try {\n activeXDocument = new ActiveXObject('htmlfile');\n } catch (error) { /* ignore */ }\n NullProtoObject = typeof document != 'undefined'\n ? document.domain && activeXDocument\n ? NullProtoObjectViaActiveX(activeXDocument) // old IE\n : NullProtoObjectViaIFrame()\n : NullProtoObjectViaActiveX(activeXDocument); // WSH\n var length = enumBugKeys.length;\n while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];\n return NullProtoObject();\n};\n\nhiddenKeys[IE_PROTO] = true;\n\n// `Object.create` method\n// https://tc39.es/ecma262/#sec-object.create\n// eslint-disable-next-line es/no-object-create -- safe\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n EmptyConstructor[PROTOTYPE] = anObject(O);\n result = new EmptyConstructor();\n EmptyConstructor[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = NullProtoObject();\n return Properties === undefined ? result : definePropertiesModule.f(result, Properties);\n};\n","var shared = require('../internals/shared');\nvar uid = require('../internals/uid');\n\nvar keys = shared('keys');\n\nmodule.exports = function (key) {\n return keys[key] || (keys[key] = uid(key));\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\nvar create = require('../internals/object-create');\nvar defineProperty = require('../internals/object-define-property').f;\n\nvar UNSCOPABLES = wellKnownSymbol('unscopables');\nvar ArrayPrototype = Array.prototype;\n\n// Array.prototype[@@unscopables]\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\nif (ArrayPrototype[UNSCOPABLES] == undefined) {\n defineProperty(ArrayPrototype, UNSCOPABLES, {\n configurable: true,\n value: create(null)\n });\n}\n\n// add a key to Array.prototype[@@unscopables]\nmodule.exports = function (key) {\n ArrayPrototype[UNSCOPABLES][key] = true;\n};\n","var NATIVE_WEAK_MAP = require('../internals/weak-map-basic-detection');\nvar global = require('../internals/global');\nvar isObject = require('../internals/is-object');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar hasOwn = require('../internals/has-own-property');\nvar shared = require('../internals/shared-store');\nvar sharedKey = require('../internals/shared-key');\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar OBJECT_ALREADY_INITIALIZED = 'Object already initialized';\nvar TypeError = global.TypeError;\nvar WeakMap = global.WeakMap;\nvar set, get, has;\n\nvar enforce = function (it) {\n return has(it) ? get(it) : set(it, {});\n};\n\nvar getterFor = function (TYPE) {\n return function (it) {\n var state;\n if (!isObject(it) || (state = get(it)).type !== TYPE) {\n throw TypeError('Incompatible receiver, ' + TYPE + ' required');\n } return state;\n };\n};\n\nif (NATIVE_WEAK_MAP || shared.state) {\n var store = shared.state || (shared.state = new WeakMap());\n /* eslint-disable no-self-assign -- prototype methods protection */\n store.get = store.get;\n store.has = store.has;\n store.set = store.set;\n /* eslint-enable no-self-assign -- prototype methods protection */\n set = function (it, metadata) {\n if (store.has(it)) throw TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n store.set(it, metadata);\n return metadata;\n };\n get = function (it) {\n return store.get(it) || {};\n };\n has = function (it) {\n return store.has(it);\n };\n} else {\n var STATE = sharedKey('state');\n hiddenKeys[STATE] = true;\n set = function (it, metadata) {\n if (hasOwn(it, STATE)) throw TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n createNonEnumerableProperty(it, STATE, metadata);\n return metadata;\n };\n get = function (it) {\n return hasOwn(it, STATE) ? it[STATE] : {};\n };\n has = function (it) {\n return hasOwn(it, STATE);\n };\n}\n\nmodule.exports = {\n set: set,\n get: get,\n has: has,\n enforce: enforce,\n getterFor: getterFor\n};\n","module.exports = {};\n","var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar WeakMap = global.WeakMap;\n\nmodule.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap));\n","'use strict';\nvar $propertyIsEnumerable = {}.propertyIsEnumerable;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Nashorn ~ JDK8 bug\nvar NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);\n\n// `Object.prototype.propertyIsEnumerable` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable\nexports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {\n var descriptor = getOwnPropertyDescriptor(this, V);\n return !!descriptor && descriptor.enumerable;\n} : $propertyIsEnumerable;\n","var DESCRIPTORS = require('../internals/descriptors');\nvar call = require('../internals/function-call');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toPropertyKey = require('../internals/to-property-key');\nvar hasOwn = require('../internals/has-own-property');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\n\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// `Object.getOwnPropertyDescriptor` method\n// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor\nexports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {\n O = toIndexedObject(O);\n P = toPropertyKey(P);\n if (IE8_DOM_DEFINE) try {\n return $getOwnPropertyDescriptor(O, P);\n } catch (error) { /* empty */ }\n if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar hasOwn = require('../internals/has-own-property');\n\nvar FunctionPrototype = Function.prototype;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;\n\nvar EXISTS = hasOwn(FunctionPrototype, 'name');\n// additional protection from minified / mangled / dropped function names\nvar PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';\nvar CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));\n\nmodule.exports = {\n EXISTS: EXISTS,\n PROPER: PROPER,\n CONFIGURABLE: CONFIGURABLE\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar hasOwn = require('../internals/has-own-property');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar CONFIGURABLE_FUNCTION_NAME = require('../internals/function-name').CONFIGURABLE;\nvar inspectSource = require('../internals/inspect-source');\nvar InternalStateModule = require('../internals/internal-state');\n\nvar enforceInternalState = InternalStateModule.enforce;\nvar getInternalState = InternalStateModule.get;\nvar $String = String;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\nvar stringSlice = uncurryThis(''.slice);\nvar replace = uncurryThis(''.replace);\nvar join = uncurryThis([].join);\n\nvar CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () {\n return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;\n});\n\nvar TEMPLATE = String(String).split('String');\n\nvar makeBuiltIn = module.exports = function (value, name, options) {\n if (stringSlice($String(name), 0, 7) === 'Symbol(') {\n name = '[' + replace($String(name), /^Symbol\\(([^)]*)\\)/, '$1') + ']';\n }\n if (options && options.getter) name = 'get ' + name;\n if (options && options.setter) name = 'set ' + name;\n if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {\n if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true });\n else value.name = name;\n }\n if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) {\n defineProperty(value, 'length', { value: options.arity });\n }\n try {\n if (options && hasOwn(options, 'constructor') && options.constructor) {\n if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });\n // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable\n } else if (value.prototype) value.prototype = undefined;\n } catch (error) { /* empty */ }\n var state = enforceInternalState(value);\n if (!hasOwn(state, 'source')) {\n state.source = join(TEMPLATE, typeof name == 'string' ? name : '');\n } return value;\n};\n\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n// eslint-disable-next-line no-extend-native -- required\nFunction.prototype.toString = makeBuiltIn(function toString() {\n return isCallable(this) && getInternalState(this).source || inspectSource(this);\n}, 'toString');\n","var isCallable = require('../internals/is-callable');\nvar definePropertyModule = require('../internals/object-define-property');\nvar makeBuiltIn = require('../internals/make-built-in');\nvar defineGlobalProperty = require('../internals/define-global-property');\n\nmodule.exports = function (O, key, value, options) {\n if (!options) options = {};\n var simple = options.enumerable;\n var name = options.name !== undefined ? options.name : key;\n if (isCallable(value)) makeBuiltIn(value, name, options);\n if (options.global) {\n if (simple) O[key] = value;\n else defineGlobalProperty(key, value);\n } else {\n try {\n if (!options.unsafe) delete O[key];\n else if (O[key]) simple = true;\n } catch (error) { /* empty */ }\n if (simple) O[key] = value;\n else definePropertyModule.f(O, key, {\n value: value,\n enumerable: false,\n configurable: !options.nonConfigurable,\n writable: !options.nonWritable\n });\n } return O;\n};\n","var internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\nvar hiddenKeys = enumBugKeys.concat('length', 'prototype');\n\n// `Object.getOwnPropertyNames` method\n// https://tc39.es/ecma262/#sec-object.getownpropertynames\n// eslint-disable-next-line es/no-object-getownpropertynames -- safe\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return internalObjectKeys(O, hiddenKeys);\n};\n","// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe\nexports.f = Object.getOwnPropertySymbols;\n","var getBuiltIn = require('../internals/get-built-in');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar anObject = require('../internals/an-object');\n\nvar concat = uncurryThis([].concat);\n\n// all object keys, includes non-enumerable and symbols\nmodule.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {\n var keys = getOwnPropertyNamesModule.f(anObject(it));\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;\n};\n","'use strict';\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\nvar create = require('../internals/object-create');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar IS_PURE = require('../internals/is-pure');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar BUGGY_SAFARI_ITERATORS = false;\n\n// `%IteratorPrototype%` object\n// https://tc39.es/ecma262/#sec-%iteratorprototype%-object\nvar IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;\n\n/* eslint-disable es/no-array-prototype-keys -- safe */\nif ([].keys) {\n arrayIterator = [].keys();\n // Safari 8 has buggy iterators w/o `next`\n if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;\n else {\n PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator));\n if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;\n }\n}\n\nvar NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype) || fails(function () {\n var test = {};\n // FF44- legacy iterators case\n return IteratorPrototype[ITERATOR].call(test) !== test;\n});\n\nif (NEW_ITERATOR_PROTOTYPE) IteratorPrototype = {};\nelse if (IS_PURE) IteratorPrototype = create(IteratorPrototype);\n\n// `%IteratorPrototype%[@@iterator]()` method\n// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator\nif (!isCallable(IteratorPrototype[ITERATOR])) {\n defineBuiltIn(IteratorPrototype, ITERATOR, function () {\n return this;\n });\n}\n\nmodule.exports = {\n IteratorPrototype: IteratorPrototype,\n BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS\n};\n","var hasOwn = require('../internals/has-own-property');\nvar ownKeys = require('../internals/own-keys');\nvar getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');\nvar definePropertyModule = require('../internals/object-define-property');\n\nmodule.exports = function (target, source, exceptions) {\n var keys = ownKeys(source);\n var defineProperty = definePropertyModule.f;\n var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {\n defineProperty(target, key, getOwnPropertyDescriptor(source, key));\n }\n }\n};\n","var fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\n\nvar replacement = /#|\\.prototype\\./;\n\nvar isForced = function (feature, detection) {\n var value = data[normalize(feature)];\n return value == POLYFILL ? true\n : value == NATIVE ? false\n : isCallable(detection) ? fails(detection)\n : !!detection;\n};\n\nvar normalize = isForced.normalize = function (string) {\n return String(string).replace(replacement, '.').toLowerCase();\n};\n\nvar data = isForced.data = {};\nvar NATIVE = isForced.NATIVE = 'N';\nvar POLYFILL = isForced.POLYFILL = 'P';\n\nmodule.exports = isForced;\n","var global = require('../internals/global');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar defineGlobalProperty = require('../internals/define-global-property');\nvar copyConstructorProperties = require('../internals/copy-constructor-properties');\nvar isForced = require('../internals/is-forced');\n\n/*\n options.target - name of the target object\n options.global - target is the global object\n options.stat - export as static methods of target\n options.proto - export as prototype methods of target\n options.real - real prototype method for the `pure` version\n options.forced - export even if the native feature is available\n options.bind - bind methods to the target, required for the `pure` version\n options.wrap - wrap constructors to preventing global pollution, required for the `pure` version\n options.unsafe - use the simple assignment of property instead of delete + defineProperty\n options.sham - add a flag to not completely full polyfills\n options.enumerable - export as enumerable property\n options.dontCallGetSet - prevent calling a getter on target\n options.name - the .name of the function if it does not match the key\n*/\nmodule.exports = function (options, source) {\n var TARGET = options.target;\n var GLOBAL = options.global;\n var STATIC = options.stat;\n var FORCED, target, key, targetProperty, sourceProperty, descriptor;\n if (GLOBAL) {\n target = global;\n } else if (STATIC) {\n target = global[TARGET] || defineGlobalProperty(TARGET, {});\n } else {\n target = (global[TARGET] || {}).prototype;\n }\n if (target) for (key in source) {\n sourceProperty = source[key];\n if (options.dontCallGetSet) {\n descriptor = getOwnPropertyDescriptor(target, key);\n targetProperty = descriptor && descriptor.value;\n } else targetProperty = target[key];\n FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);\n // contained in target\n if (!FORCED && targetProperty !== undefined) {\n if (typeof sourceProperty == typeof targetProperty) continue;\n copyConstructorProperties(sourceProperty, targetProperty);\n }\n // add a flag to not completely full polyfills\n if (options.sham || (targetProperty && targetProperty.sham)) {\n createNonEnumerableProperty(sourceProperty, 'sham', true);\n }\n defineBuiltIn(target, key, sourceProperty, options);\n }\n};\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n function F() { /* empty */ }\n F.prototype.constructor = null;\n // eslint-disable-next-line es/no-object-getprototypeof -- required for testing\n return Object.getPrototypeOf(new F()) !== F.prototype;\n});\n","var hasOwn = require('../internals/has-own-property');\nvar isCallable = require('../internals/is-callable');\nvar toObject = require('../internals/to-object');\nvar sharedKey = require('../internals/shared-key');\nvar CORRECT_PROTOTYPE_GETTER = require('../internals/correct-prototype-getter');\n\nvar IE_PROTO = sharedKey('IE_PROTO');\nvar $Object = Object;\nvar ObjectPrototype = $Object.prototype;\n\n// `Object.getPrototypeOf` method\n// https://tc39.es/ecma262/#sec-object.getprototypeof\n// eslint-disable-next-line es/no-object-getprototypeof -- safe\nmodule.exports = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {\n var object = toObject(O);\n if (hasOwn(object, IE_PROTO)) return object[IE_PROTO];\n var constructor = object.constructor;\n if (isCallable(constructor) && object instanceof constructor) {\n return constructor.prototype;\n } return object instanceof $Object ? ObjectPrototype : null;\n};\n","var defineProperty = require('../internals/object-define-property').f;\nvar hasOwn = require('../internals/has-own-property');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\n\nmodule.exports = function (target, TAG, STATIC) {\n if (target && !STATIC) target = target.prototype;\n if (target && !hasOwn(target, TO_STRING_TAG)) {\n defineProperty(target, TO_STRING_TAG, { configurable: true, value: TAG });\n }\n};\n","'use strict';\nvar IteratorPrototype = require('../internals/iterators-core').IteratorPrototype;\nvar create = require('../internals/object-create');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar Iterators = require('../internals/iterators');\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {\n var TO_STRING_TAG = NAME + ' Iterator';\n IteratorConstructor.prototype = create(IteratorPrototype, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });\n setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true);\n Iterators[TO_STRING_TAG] = returnThis;\n return IteratorConstructor;\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar aCallable = require('../internals/a-callable');\n\nmodule.exports = function (object, key, method) {\n try {\n // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\n return uncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));\n } catch (error) { /* empty */ }\n};\n","var isCallable = require('../internals/is-callable');\n\nvar $String = String;\nvar $TypeError = TypeError;\n\nmodule.exports = function (argument) {\n if (typeof argument == 'object' || isCallable(argument)) return argument;\n throw $TypeError(\"Can't set \" + $String(argument) + ' as a prototype');\n};\n","/* eslint-disable no-proto -- safe */\nvar uncurryThisAccessor = require('../internals/function-uncurry-this-accessor');\nvar anObject = require('../internals/an-object');\nvar aPossiblePrototype = require('../internals/a-possible-prototype');\n\n// `Object.setPrototypeOf` method\n// https://tc39.es/ecma262/#sec-object.setprototypeof\n// Works with __proto__ only. Old v8 can't work with null proto objects.\n// eslint-disable-next-line es/no-object-setprototypeof -- safe\nmodule.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {\n var CORRECT_SETTER = false;\n var test = {};\n var setter;\n try {\n setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');\n setter(test, []);\n CORRECT_SETTER = test instanceof Array;\n } catch (error) { /* empty */ }\n return function setPrototypeOf(O, proto) {\n anObject(O);\n aPossiblePrototype(proto);\n if (CORRECT_SETTER) setter(O, proto);\n else O.__proto__ = proto;\n return O;\n };\n}() : undefined);\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar IS_PURE = require('../internals/is-pure');\nvar FunctionName = require('../internals/function-name');\nvar isCallable = require('../internals/is-callable');\nvar createIteratorConstructor = require('../internals/iterator-create-constructor');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar Iterators = require('../internals/iterators');\nvar IteratorsCore = require('../internals/iterators-core');\n\nvar PROPER_FUNCTION_NAME = FunctionName.PROPER;\nvar CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;\nvar IteratorPrototype = IteratorsCore.IteratorPrototype;\nvar BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;\nvar ITERATOR = wellKnownSymbol('iterator');\nvar KEYS = 'keys';\nvar VALUES = 'values';\nvar ENTRIES = 'entries';\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {\n createIteratorConstructor(IteratorConstructor, NAME, next);\n\n var getIterationMethod = function (KIND) {\n if (KIND === DEFAULT && defaultIterator) return defaultIterator;\n if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];\n switch (KIND) {\n case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };\n case VALUES: return function values() { return new IteratorConstructor(this, KIND); };\n case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };\n } return function () { return new IteratorConstructor(this); };\n };\n\n var TO_STRING_TAG = NAME + ' Iterator';\n var INCORRECT_VALUES_NAME = false;\n var IterablePrototype = Iterable.prototype;\n var nativeIterator = IterablePrototype[ITERATOR]\n || IterablePrototype['@@iterator']\n || DEFAULT && IterablePrototype[DEFAULT];\n var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);\n var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;\n var CurrentIteratorPrototype, methods, KEY;\n\n // fix native\n if (anyNativeIterator) {\n CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));\n if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {\n if (!IS_PURE && getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {\n if (setPrototypeOf) {\n setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);\n } else if (!isCallable(CurrentIteratorPrototype[ITERATOR])) {\n defineBuiltIn(CurrentIteratorPrototype, ITERATOR, returnThis);\n }\n }\n // Set @@toStringTag to native iterators\n setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true);\n if (IS_PURE) Iterators[TO_STRING_TAG] = returnThis;\n }\n }\n\n // fix Array.prototype.{ values, @@iterator }.name in V8 / FF\n if (PROPER_FUNCTION_NAME && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {\n if (!IS_PURE && CONFIGURABLE_FUNCTION_NAME) {\n createNonEnumerableProperty(IterablePrototype, 'name', VALUES);\n } else {\n INCORRECT_VALUES_NAME = true;\n defaultIterator = function values() { return call(nativeIterator, this); };\n }\n }\n\n // export additional methods\n if (DEFAULT) {\n methods = {\n values: getIterationMethod(VALUES),\n keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),\n entries: getIterationMethod(ENTRIES)\n };\n if (FORCED) for (KEY in methods) {\n if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {\n defineBuiltIn(IterablePrototype, KEY, methods[KEY]);\n }\n } else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);\n }\n\n // define iterator\n if ((!IS_PURE || FORCED) && IterablePrototype[ITERATOR] !== defaultIterator) {\n defineBuiltIn(IterablePrototype, ITERATOR, defaultIterator, { name: DEFAULT });\n }\n Iterators[NAME] = defaultIterator;\n\n return methods;\n};\n","// `CreateIterResultObject` abstract operation\n// https://tc39.es/ecma262/#sec-createiterresultobject\nmodule.exports = function (value, done) {\n return { value: value, done: done };\n};\n","'use strict';\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar addToUnscopables = require('../internals/add-to-unscopables');\nvar Iterators = require('../internals/iterators');\nvar InternalStateModule = require('../internals/internal-state');\nvar defineProperty = require('../internals/object-define-property').f;\nvar defineIterator = require('../internals/iterator-define');\nvar createIterResultObject = require('../internals/create-iter-result-object');\nvar IS_PURE = require('../internals/is-pure');\nvar DESCRIPTORS = require('../internals/descriptors');\n\nvar ARRAY_ITERATOR = 'Array Iterator';\nvar setInternalState = InternalStateModule.set;\nvar getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);\n\n// `Array.prototype.entries` method\n// https://tc39.es/ecma262/#sec-array.prototype.entries\n// `Array.prototype.keys` method\n// https://tc39.es/ecma262/#sec-array.prototype.keys\n// `Array.prototype.values` method\n// https://tc39.es/ecma262/#sec-array.prototype.values\n// `Array.prototype[@@iterator]` method\n// https://tc39.es/ecma262/#sec-array.prototype-@@iterator\n// `CreateArrayIterator` internal method\n// https://tc39.es/ecma262/#sec-createarrayiterator\nmodule.exports = defineIterator(Array, 'Array', function (iterated, kind) {\n setInternalState(this, {\n type: ARRAY_ITERATOR,\n target: toIndexedObject(iterated), // target\n index: 0, // next index\n kind: kind // kind\n });\n// `%ArrayIteratorPrototype%.next` method\n// https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next\n}, function () {\n var state = getInternalState(this);\n var target = state.target;\n var kind = state.kind;\n var index = state.index++;\n if (!target || index >= target.length) {\n state.target = undefined;\n return createIterResultObject(undefined, true);\n }\n if (kind == 'keys') return createIterResultObject(index, false);\n if (kind == 'values') return createIterResultObject(target[index], false);\n return createIterResultObject([index, target[index]], false);\n}, 'values');\n\n// argumentsList[@@iterator] is %ArrayProto_values%\n// https://tc39.es/ecma262/#sec-createunmappedargumentsobject\n// https://tc39.es/ecma262/#sec-createmappedargumentsobject\nvar values = Iterators.Arguments = Iterators.Array;\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables('keys');\naddToUnscopables('values');\naddToUnscopables('entries');\n\n// V8 ~ Chrome 45- bug\nif (!IS_PURE && DESCRIPTORS && values.name !== 'values') try {\n defineProperty(values, 'name', { value: 'values' });\n} catch (error) { /* empty */ }\n","var global = require('../internals/global');\nvar DOMIterables = require('../internals/dom-iterables');\nvar DOMTokenListPrototype = require('../internals/dom-token-list-prototype');\nvar ArrayIteratorMethods = require('../modules/es.array.iterator');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar ArrayValues = ArrayIteratorMethods.values;\n\nvar handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {\n if (CollectionPrototype) {\n // some Chrome versions have non-configurable methods on DOMTokenList\n if (CollectionPrototype[ITERATOR] !== ArrayValues) try {\n createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);\n } catch (error) {\n CollectionPrototype[ITERATOR] = ArrayValues;\n }\n if (!CollectionPrototype[TO_STRING_TAG]) {\n createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);\n }\n if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {\n // some Chrome versions have non-configurable methods on DOMTokenList\n if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {\n createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);\n } catch (error) {\n CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];\n }\n }\n }\n};\n\nfor (var COLLECTION_NAME in DOMIterables) {\n handlePrototype(global[COLLECTION_NAME] && global[COLLECTION_NAME].prototype, COLLECTION_NAME);\n}\n\nhandlePrototype(DOMTokenListPrototype, 'DOMTokenList');\n","var global = require('../internals/global');\n\nmodule.exports = global;\n","'use strict';\n/* eslint-disable es/no-array-prototype-indexof -- required for testing */\nvar $ = require('../internals/export');\nvar uncurryThis = require('../internals/function-uncurry-this-clause');\nvar $indexOf = require('../internals/array-includes').indexOf;\nvar arrayMethodIsStrict = require('../internals/array-method-is-strict');\n\nvar nativeIndexOf = uncurryThis([].indexOf);\n\nvar NEGATIVE_ZERO = !!nativeIndexOf && 1 / nativeIndexOf([1], 1, -0) < 0;\nvar FORCED = NEGATIVE_ZERO || !arrayMethodIsStrict('indexOf');\n\n// `Array.prototype.indexOf` method\n// https://tc39.es/ecma262/#sec-array.prototype.indexof\n$({ target: 'Array', proto: true, forced: FORCED }, {\n indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {\n var fromIndex = arguments.length > 1 ? arguments[1] : undefined;\n return NEGATIVE_ZERO\n // convert -0 to +0\n ? nativeIndexOf(this, searchElement, fromIndex) || 0\n : $indexOf(this, searchElement, fromIndex);\n }\n});\n","var $TypeError = TypeError;\nvar MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991\n\nmodule.exports = function (it) {\n if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');\n return it;\n};\n","'use strict';\nvar toPropertyKey = require('../internals/to-property-key');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = function (object, key, value) {\n var propertyKey = toPropertyKey(key);\n if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));\n else object[propertyKey] = value;\n};\n","var fails = require('../internals/fails');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar V8_VERSION = require('../internals/engine-v8-version');\n\nvar SPECIES = wellKnownSymbol('species');\n\nmodule.exports = function (METHOD_NAME) {\n // We can't use this feature detection in V8 since it causes\n // deoptimization and serious performance degradation\n // https://github.com/zloirock/core-js/issues/677\n return V8_VERSION >= 51 || !fails(function () {\n var array = [];\n var constructor = array.constructor = {};\n constructor[SPECIES] = function () {\n return { foo: 1 };\n };\n return array[METHOD_NAME](Boolean).foo !== 1;\n });\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar fails = require('../internals/fails');\nvar isArray = require('../internals/is-array');\nvar isObject = require('../internals/is-object');\nvar toObject = require('../internals/to-object');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar doesNotExceedSafeInteger = require('../internals/does-not-exceed-safe-integer');\nvar createProperty = require('../internals/create-property');\nvar arraySpeciesCreate = require('../internals/array-species-create');\nvar arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar V8_VERSION = require('../internals/engine-v8-version');\n\nvar IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');\n\n// We can't use this feature detection in V8 since it causes\n// deoptimization and serious performance degradation\n// https://github.com/zloirock/core-js/issues/679\nvar IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () {\n var array = [];\n array[IS_CONCAT_SPREADABLE] = false;\n return array.concat()[0] !== array;\n});\n\nvar isConcatSpreadable = function (O) {\n if (!isObject(O)) return false;\n var spreadable = O[IS_CONCAT_SPREADABLE];\n return spreadable !== undefined ? !!spreadable : isArray(O);\n};\n\nvar FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport('concat');\n\n// `Array.prototype.concat` method\n// https://tc39.es/ecma262/#sec-array.prototype.concat\n// with adding support of @@isConcatSpreadable and @@species\n$({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n concat: function concat(arg) {\n var O = toObject(this);\n var A = arraySpeciesCreate(O, 0);\n var n = 0;\n var i, k, length, len, E;\n for (i = -1, length = arguments.length; i < length; i++) {\n E = i === -1 ? O : arguments[i];\n if (isConcatSpreadable(E)) {\n len = lengthOfArrayLike(E);\n doesNotExceedSafeInteger(n + len);\n for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);\n } else {\n doesNotExceedSafeInteger(n + 1);\n createProperty(A, n++, E);\n }\n }\n A.length = n;\n return A;\n }\n});\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar call = require('../internals/function-call');\nvar fails = require('../internals/fails');\nvar objectKeys = require('../internals/object-keys');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar toObject = require('../internals/to-object');\nvar IndexedObject = require('../internals/indexed-object');\n\n// eslint-disable-next-line es/no-object-assign -- safe\nvar $assign = Object.assign;\n// eslint-disable-next-line es/no-object-defineproperty -- required for testing\nvar defineProperty = Object.defineProperty;\nvar concat = uncurryThis([].concat);\n\n// `Object.assign` method\n// https://tc39.es/ecma262/#sec-object.assign\nmodule.exports = !$assign || fails(function () {\n // should have correct order of operations (Edge bug)\n if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {\n enumerable: true,\n get: function () {\n defineProperty(this, 'b', {\n value: 3,\n enumerable: false\n });\n }\n }), { b: 2 })).b !== 1) return true;\n // should work with symbols and should have deterministic property order (V8 bug)\n var A = {};\n var B = {};\n // eslint-disable-next-line es/no-symbol -- safe\n var symbol = Symbol();\n var alphabet = 'abcdefghijklmnopqrst';\n A[symbol] = 7;\n alphabet.split('').forEach(function (chr) { B[chr] = chr; });\n return $assign({}, A)[symbol] != 7 || objectKeys($assign({}, B)).join('') != alphabet;\n}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`\n var T = toObject(target);\n var argumentsLength = arguments.length;\n var index = 1;\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n var propertyIsEnumerable = propertyIsEnumerableModule.f;\n while (argumentsLength > index) {\n var S = IndexedObject(arguments[index++]);\n var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);\n var length = keys.length;\n var j = 0;\n var key;\n while (length > j) {\n key = keys[j++];\n if (!DESCRIPTORS || call(propertyIsEnumerable, S, key)) T[key] = S[key];\n }\n } return T;\n} : $assign;\n","var $ = require('../internals/export');\nvar assign = require('../internals/object-assign');\n\n// `Object.assign` method\n// https://tc39.es/ecma262/#sec-object.assign\n// eslint-disable-next-line es/no-object-assign -- required for testing\n$({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {\n assign: assign\n});\n","'use strict';\nvar TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar classof = require('../internals/classof');\n\n// `Object.prototype.toString` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.tostring\nmodule.exports = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() {\n return '[object ' + classof(this) + ']';\n};\n","var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar toString = require('../internals/object-to-string');\n\n// `Object.prototype.toString` method\n// https://tc39.es/ecma262/#sec-object.prototype.tostring\nif (!TO_STRING_TAG_SUPPORT) {\n defineBuiltIn(Object.prototype, 'toString', toString, { unsafe: true });\n}\n","var classof = require('../internals/classof-raw');\n\nmodule.exports = typeof process != 'undefined' && classof(process) == 'process';\n","var global = require('../internals/global');\nvar apply = require('../internals/function-apply');\nvar bind = require('../internals/function-bind-context');\nvar isCallable = require('../internals/is-callable');\nvar hasOwn = require('../internals/has-own-property');\nvar fails = require('../internals/fails');\nvar html = require('../internals/html');\nvar arraySlice = require('../internals/array-slice');\nvar createElement = require('../internals/document-create-element');\nvar validateArgumentsLength = require('../internals/validate-arguments-length');\nvar IS_IOS = require('../internals/engine-is-ios');\nvar IS_NODE = require('../internals/engine-is-node');\n\nvar set = global.setImmediate;\nvar clear = global.clearImmediate;\nvar process = global.process;\nvar Dispatch = global.Dispatch;\nvar Function = global.Function;\nvar MessageChannel = global.MessageChannel;\nvar String = global.String;\nvar counter = 0;\nvar queue = {};\nvar ONREADYSTATECHANGE = 'onreadystatechange';\nvar $location, defer, channel, port;\n\nfails(function () {\n // Deno throws a ReferenceError on `location` access without `--location` flag\n $location = global.location;\n});\n\nvar run = function (id) {\n if (hasOwn(queue, id)) {\n var fn = queue[id];\n delete queue[id];\n fn();\n }\n};\n\nvar runner = function (id) {\n return function () {\n run(id);\n };\n};\n\nvar eventListener = function (event) {\n run(event.data);\n};\n\nvar globalPostMessageDefer = function (id) {\n // old engines have not location.origin\n global.postMessage(String(id), $location.protocol + '//' + $location.host);\n};\n\n// Node.js 0.9+ & IE10+ has setImmediate, otherwise:\nif (!set || !clear) {\n set = function setImmediate(handler) {\n validateArgumentsLength(arguments.length, 1);\n var fn = isCallable(handler) ? handler : Function(handler);\n var args = arraySlice(arguments, 1);\n queue[++counter] = function () {\n apply(fn, undefined, args);\n };\n defer(counter);\n return counter;\n };\n clear = function clearImmediate(id) {\n delete queue[id];\n };\n // Node.js 0.8-\n if (IS_NODE) {\n defer = function (id) {\n process.nextTick(runner(id));\n };\n // Sphere (JS game engine) Dispatch API\n } else if (Dispatch && Dispatch.now) {\n defer = function (id) {\n Dispatch.now(runner(id));\n };\n // Browsers with MessageChannel, includes WebWorkers\n // except iOS - https://github.com/zloirock/core-js/issues/624\n } else if (MessageChannel && !IS_IOS) {\n channel = new MessageChannel();\n port = channel.port2;\n channel.port1.onmessage = eventListener;\n defer = bind(port.postMessage, port);\n // Browsers with postMessage, skip WebWorkers\n // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'\n } else if (\n global.addEventListener &&\n isCallable(global.postMessage) &&\n !global.importScripts &&\n $location && $location.protocol !== 'file:' &&\n !fails(globalPostMessageDefer)\n ) {\n defer = globalPostMessageDefer;\n global.addEventListener('message', eventListener, false);\n // IE8-\n } else if (ONREADYSTATECHANGE in createElement('script')) {\n defer = function (id) {\n html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {\n html.removeChild(this);\n run(id);\n };\n };\n // Rest old browsers\n } else {\n defer = function (id) {\n setTimeout(runner(id), 0);\n };\n }\n}\n\nmodule.exports = {\n set: set,\n clear: clear\n};\n","var makeBuiltIn = require('../internals/make-built-in');\nvar defineProperty = require('../internals/object-define-property');\n\nmodule.exports = function (target, name, descriptor) {\n if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });\n if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });\n return defineProperty.f(target, name, descriptor);\n};\n","'use strict';\nvar getBuiltIn = require('../internals/get-built-in');\nvar defineBuiltInAccessor = require('../internals/define-built-in-accessor');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar DESCRIPTORS = require('../internals/descriptors');\n\nvar SPECIES = wellKnownSymbol('species');\n\nmodule.exports = function (CONSTRUCTOR_NAME) {\n var Constructor = getBuiltIn(CONSTRUCTOR_NAME);\n\n if (DESCRIPTORS && Constructor && !Constructor[SPECIES]) {\n defineBuiltInAccessor(Constructor, SPECIES, {\n configurable: true,\n get: function () { return this; }\n });\n }\n};\n","var isPrototypeOf = require('../internals/object-is-prototype-of');\n\nvar $TypeError = TypeError;\n\nmodule.exports = function (it, Prototype) {\n if (isPrototypeOf(Prototype, it)) return it;\n throw $TypeError('Incorrect invocation');\n};\n","var isConstructor = require('../internals/is-constructor');\nvar tryToString = require('../internals/try-to-string');\n\nvar $TypeError = TypeError;\n\n// `Assert: IsConstructor(argument) is true`\nmodule.exports = function (argument) {\n if (isConstructor(argument)) return argument;\n throw $TypeError(tryToString(argument) + ' is not a constructor');\n};\n","var anObject = require('../internals/an-object');\nvar aConstructor = require('../internals/a-constructor');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar SPECIES = wellKnownSymbol('species');\n\n// `SpeciesConstructor` abstract operation\n// https://tc39.es/ecma262/#sec-speciesconstructor\nmodule.exports = function (O, defaultConstructor) {\n var C = anObject(O).constructor;\n var S;\n return C === undefined || isNullOrUndefined(S = anObject(C)[SPECIES]) ? defaultConstructor : aConstructor(S);\n};\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar FunctionPrototype = Function.prototype;\nvar apply = FunctionPrototype.apply;\nvar call = FunctionPrototype.call;\n\n// eslint-disable-next-line es/no-reflect -- safe\nmodule.exports = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call.bind(apply) : function () {\n return call.apply(apply, arguments);\n});\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = uncurryThis([].slice);\n","var $TypeError = TypeError;\n\nmodule.exports = function (passed, required) {\n if (passed < required) throw $TypeError('Not enough arguments');\n return passed;\n};\n","var userAgent = require('../internals/engine-user-agent');\n\n// eslint-disable-next-line redos/no-vulnerable -- safe\nmodule.exports = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent);\n","var Queue = function () {\n this.head = null;\n this.tail = null;\n};\n\nQueue.prototype = {\n add: function (item) {\n var entry = { item: item, next: null };\n var tail = this.tail;\n if (tail) tail.next = entry;\n else this.head = entry;\n this.tail = entry;\n },\n get: function () {\n var entry = this.head;\n if (entry) {\n var next = this.head = entry.next;\n if (next === null) this.tail = null;\n return entry.item;\n }\n }\n};\n\nmodule.exports = Queue;\n","var global = require('../internals/global');\nvar bind = require('../internals/function-bind-context');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar macrotask = require('../internals/task').set;\nvar Queue = require('../internals/queue');\nvar IS_IOS = require('../internals/engine-is-ios');\nvar IS_IOS_PEBBLE = require('../internals/engine-is-ios-pebble');\nvar IS_WEBOS_WEBKIT = require('../internals/engine-is-webos-webkit');\nvar IS_NODE = require('../internals/engine-is-node');\n\nvar MutationObserver = global.MutationObserver || global.WebKitMutationObserver;\nvar document = global.document;\nvar process = global.process;\nvar Promise = global.Promise;\n// Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`\nvar queueMicrotaskDescriptor = getOwnPropertyDescriptor(global, 'queueMicrotask');\nvar microtask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;\nvar notify, toggle, node, promise, then;\n\n// modern engines have queueMicrotask method\nif (!microtask) {\n var queue = new Queue();\n\n var flush = function () {\n var parent, fn;\n if (IS_NODE && (parent = process.domain)) parent.exit();\n while (fn = queue.get()) try {\n fn();\n } catch (error) {\n if (queue.head) notify();\n throw error;\n }\n if (parent) parent.enter();\n };\n\n // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339\n // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898\n if (!IS_IOS && !IS_NODE && !IS_WEBOS_WEBKIT && MutationObserver && document) {\n toggle = true;\n node = document.createTextNode('');\n new MutationObserver(flush).observe(node, { characterData: true });\n notify = function () {\n node.data = toggle = !toggle;\n };\n // environments with maybe non-completely correct, but existent Promise\n } else if (!IS_IOS_PEBBLE && Promise && Promise.resolve) {\n // Promise.resolve without an argument throws an error in LG WebOS 2\n promise = Promise.resolve(undefined);\n // workaround of WebKit ~ iOS Safari 10.1 bug\n promise.constructor = Promise;\n then = bind(promise.then, promise);\n notify = function () {\n then(flush);\n };\n // Node.js without promises\n } else if (IS_NODE) {\n notify = function () {\n process.nextTick(flush);\n };\n // for other environments - macrotask based on:\n // - setImmediate\n // - MessageChannel\n // - window.postMessage\n // - onreadystatechange\n // - setTimeout\n } else {\n // `webpack` dev server bug on IE global methods - use bind(fn, global)\n macrotask = bind(macrotask, global);\n notify = function () {\n macrotask(flush);\n };\n }\n\n microtask = function (fn) {\n if (!queue.head) notify();\n queue.add(fn);\n };\n}\n\nmodule.exports = microtask;\n","var userAgent = require('../internals/engine-user-agent');\n\nmodule.exports = /ipad|iphone|ipod/i.test(userAgent) && typeof Pebble != 'undefined';\n","var userAgent = require('../internals/engine-user-agent');\n\nmodule.exports = /web0s(?!.*chrome)/i.test(userAgent);\n","module.exports = function (exec) {\n try {\n return { error: false, value: exec() };\n } catch (error) {\n return { error: true, value: error };\n }\n};\n","var global = require('../internals/global');\n\nmodule.exports = global.Promise;\n","/* global Deno -- Deno case */\nmodule.exports = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';\n","var IS_DENO = require('../internals/engine-is-deno');\nvar IS_NODE = require('../internals/engine-is-node');\n\nmodule.exports = !IS_DENO && !IS_NODE\n && typeof window == 'object'\n && typeof document == 'object';\n","var global = require('../internals/global');\nvar NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar isCallable = require('../internals/is-callable');\nvar isForced = require('../internals/is-forced');\nvar inspectSource = require('../internals/inspect-source');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar IS_BROWSER = require('../internals/engine-is-browser');\nvar IS_DENO = require('../internals/engine-is-deno');\nvar IS_PURE = require('../internals/is-pure');\nvar V8_VERSION = require('../internals/engine-v8-version');\n\nvar NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;\nvar SPECIES = wellKnownSymbol('species');\nvar SUBCLASSING = false;\nvar NATIVE_PROMISE_REJECTION_EVENT = isCallable(global.PromiseRejectionEvent);\n\nvar FORCED_PROMISE_CONSTRUCTOR = isForced('Promise', function () {\n var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor);\n var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor);\n // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables\n // https://bugs.chromium.org/p/chromium/issues/detail?id=830565\n // We can't detect it synchronously, so just check versions\n if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;\n // We need Promise#{ catch, finally } in the pure version for preventing prototype pollution\n if (IS_PURE && !(NativePromisePrototype['catch'] && NativePromisePrototype['finally'])) return true;\n // We can't use @@species feature detection in V8 since it causes\n // deoptimization and performance degradation\n // https://github.com/zloirock/core-js/issues/679\n if (!V8_VERSION || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) {\n // Detect correctness of subclassing with @@species support\n var promise = new NativePromiseConstructor(function (resolve) { resolve(1); });\n var FakePromise = function (exec) {\n exec(function () { /* empty */ }, function () { /* empty */ });\n };\n var constructor = promise.constructor = {};\n constructor[SPECIES] = FakePromise;\n SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;\n if (!SUBCLASSING) return true;\n // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test\n } return !GLOBAL_CORE_JS_PROMISE && (IS_BROWSER || IS_DENO) && !NATIVE_PROMISE_REJECTION_EVENT;\n});\n\nmodule.exports = {\n CONSTRUCTOR: FORCED_PROMISE_CONSTRUCTOR,\n REJECTION_EVENT: NATIVE_PROMISE_REJECTION_EVENT,\n SUBCLASSING: SUBCLASSING\n};\n","'use strict';\nvar aCallable = require('../internals/a-callable');\n\nvar $TypeError = TypeError;\n\nvar PromiseCapability = function (C) {\n var resolve, reject;\n this.promise = new C(function ($$resolve, $$reject) {\n if (resolve !== undefined || reject !== undefined) throw $TypeError('Bad Promise constructor');\n resolve = $$resolve;\n reject = $$reject;\n });\n this.resolve = aCallable(resolve);\n this.reject = aCallable(reject);\n};\n\n// `NewPromiseCapability` abstract operation\n// https://tc39.es/ecma262/#sec-newpromisecapability\nmodule.exports.f = function (C) {\n return new PromiseCapability(C);\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar IS_NODE = require('../internals/engine-is-node');\nvar global = require('../internals/global');\nvar call = require('../internals/function-call');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar setSpecies = require('../internals/set-species');\nvar aCallable = require('../internals/a-callable');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\nvar anInstance = require('../internals/an-instance');\nvar speciesConstructor = require('../internals/species-constructor');\nvar task = require('../internals/task').set;\nvar microtask = require('../internals/microtask');\nvar hostReportErrors = require('../internals/host-report-errors');\nvar perform = require('../internals/perform');\nvar Queue = require('../internals/queue');\nvar InternalStateModule = require('../internals/internal-state');\nvar NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar PromiseConstructorDetection = require('../internals/promise-constructor-detection');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\n\nvar PROMISE = 'Promise';\nvar FORCED_PROMISE_CONSTRUCTOR = PromiseConstructorDetection.CONSTRUCTOR;\nvar NATIVE_PROMISE_REJECTION_EVENT = PromiseConstructorDetection.REJECTION_EVENT;\nvar NATIVE_PROMISE_SUBCLASSING = PromiseConstructorDetection.SUBCLASSING;\nvar getInternalPromiseState = InternalStateModule.getterFor(PROMISE);\nvar setInternalState = InternalStateModule.set;\nvar NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;\nvar PromiseConstructor = NativePromiseConstructor;\nvar PromisePrototype = NativePromisePrototype;\nvar TypeError = global.TypeError;\nvar document = global.document;\nvar process = global.process;\nvar newPromiseCapability = newPromiseCapabilityModule.f;\nvar newGenericPromiseCapability = newPromiseCapability;\n\nvar DISPATCH_EVENT = !!(document && document.createEvent && global.dispatchEvent);\nvar UNHANDLED_REJECTION = 'unhandledrejection';\nvar REJECTION_HANDLED = 'rejectionhandled';\nvar PENDING = 0;\nvar FULFILLED = 1;\nvar REJECTED = 2;\nvar HANDLED = 1;\nvar UNHANDLED = 2;\n\nvar Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;\n\n// helpers\nvar isThenable = function (it) {\n var then;\n return isObject(it) && isCallable(then = it.then) ? then : false;\n};\n\nvar callReaction = function (reaction, state) {\n var value = state.value;\n var ok = state.state == FULFILLED;\n var handler = ok ? reaction.ok : reaction.fail;\n var resolve = reaction.resolve;\n var reject = reaction.reject;\n var domain = reaction.domain;\n var result, then, exited;\n try {\n if (handler) {\n if (!ok) {\n if (state.rejection === UNHANDLED) onHandleUnhandled(state);\n state.rejection = HANDLED;\n }\n if (handler === true) result = value;\n else {\n if (domain) domain.enter();\n result = handler(value); // can throw\n if (domain) {\n domain.exit();\n exited = true;\n }\n }\n if (result === reaction.promise) {\n reject(TypeError('Promise-chain cycle'));\n } else if (then = isThenable(result)) {\n call(then, result, resolve, reject);\n } else resolve(result);\n } else reject(value);\n } catch (error) {\n if (domain && !exited) domain.exit();\n reject(error);\n }\n};\n\nvar notify = function (state, isReject) {\n if (state.notified) return;\n state.notified = true;\n microtask(function () {\n var reactions = state.reactions;\n var reaction;\n while (reaction = reactions.get()) {\n callReaction(reaction, state);\n }\n state.notified = false;\n if (isReject && !state.rejection) onUnhandled(state);\n });\n};\n\nvar dispatchEvent = function (name, promise, reason) {\n var event, handler;\n if (DISPATCH_EVENT) {\n event = document.createEvent('Event');\n event.promise = promise;\n event.reason = reason;\n event.initEvent(name, false, true);\n global.dispatchEvent(event);\n } else event = { promise: promise, reason: reason };\n if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global['on' + name])) handler(event);\n else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);\n};\n\nvar onUnhandled = function (state) {\n call(task, global, function () {\n var promise = state.facade;\n var value = state.value;\n var IS_UNHANDLED = isUnhandled(state);\n var result;\n if (IS_UNHANDLED) {\n result = perform(function () {\n if (IS_NODE) {\n process.emit('unhandledRejection', value, promise);\n } else dispatchEvent(UNHANDLED_REJECTION, promise, value);\n });\n // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should\n state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;\n if (result.error) throw result.value;\n }\n });\n};\n\nvar isUnhandled = function (state) {\n return state.rejection !== HANDLED && !state.parent;\n};\n\nvar onHandleUnhandled = function (state) {\n call(task, global, function () {\n var promise = state.facade;\n if (IS_NODE) {\n process.emit('rejectionHandled', promise);\n } else dispatchEvent(REJECTION_HANDLED, promise, state.value);\n });\n};\n\nvar bind = function (fn, state, unwrap) {\n return function (value) {\n fn(state, value, unwrap);\n };\n};\n\nvar internalReject = function (state, value, unwrap) {\n if (state.done) return;\n state.done = true;\n if (unwrap) state = unwrap;\n state.value = value;\n state.state = REJECTED;\n notify(state, true);\n};\n\nvar internalResolve = function (state, value, unwrap) {\n if (state.done) return;\n state.done = true;\n if (unwrap) state = unwrap;\n try {\n if (state.facade === value) throw TypeError(\"Promise can't be resolved itself\");\n var then = isThenable(value);\n if (then) {\n microtask(function () {\n var wrapper = { done: false };\n try {\n call(then, value,\n bind(internalResolve, wrapper, state),\n bind(internalReject, wrapper, state)\n );\n } catch (error) {\n internalReject(wrapper, error, state);\n }\n });\n } else {\n state.value = value;\n state.state = FULFILLED;\n notify(state, false);\n }\n } catch (error) {\n internalReject({ done: false }, error, state);\n }\n};\n\n// constructor polyfill\nif (FORCED_PROMISE_CONSTRUCTOR) {\n // 25.4.3.1 Promise(executor)\n PromiseConstructor = function Promise(executor) {\n anInstance(this, PromisePrototype);\n aCallable(executor);\n call(Internal, this);\n var state = getInternalPromiseState(this);\n try {\n executor(bind(internalResolve, state), bind(internalReject, state));\n } catch (error) {\n internalReject(state, error);\n }\n };\n\n PromisePrototype = PromiseConstructor.prototype;\n\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n Internal = function Promise(executor) {\n setInternalState(this, {\n type: PROMISE,\n done: false,\n notified: false,\n parent: false,\n reactions: new Queue(),\n rejection: false,\n state: PENDING,\n value: undefined\n });\n };\n\n // `Promise.prototype.then` method\n // https://tc39.es/ecma262/#sec-promise.prototype.then\n Internal.prototype = defineBuiltIn(PromisePrototype, 'then', function then(onFulfilled, onRejected) {\n var state = getInternalPromiseState(this);\n var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor));\n state.parent = true;\n reaction.ok = isCallable(onFulfilled) ? onFulfilled : true;\n reaction.fail = isCallable(onRejected) && onRejected;\n reaction.domain = IS_NODE ? process.domain : undefined;\n if (state.state == PENDING) state.reactions.add(reaction);\n else microtask(function () {\n callReaction(reaction, state);\n });\n return reaction.promise;\n });\n\n OwnPromiseCapability = function () {\n var promise = new Internal();\n var state = getInternalPromiseState(promise);\n this.promise = promise;\n this.resolve = bind(internalResolve, state);\n this.reject = bind(internalReject, state);\n };\n\n newPromiseCapabilityModule.f = newPromiseCapability = function (C) {\n return C === PromiseConstructor || C === PromiseWrapper\n ? new OwnPromiseCapability(C)\n : newGenericPromiseCapability(C);\n };\n\n if (!IS_PURE && isCallable(NativePromiseConstructor) && NativePromisePrototype !== Object.prototype) {\n nativeThen = NativePromisePrototype.then;\n\n if (!NATIVE_PROMISE_SUBCLASSING) {\n // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs\n defineBuiltIn(NativePromisePrototype, 'then', function then(onFulfilled, onRejected) {\n var that = this;\n return new PromiseConstructor(function (resolve, reject) {\n call(nativeThen, that, resolve, reject);\n }).then(onFulfilled, onRejected);\n // https://github.com/zloirock/core-js/issues/640\n }, { unsafe: true });\n }\n\n // make `.constructor === Promise` work for native promise-based APIs\n try {\n delete NativePromisePrototype.constructor;\n } catch (error) { /* empty */ }\n\n // make `instanceof Promise` work for native promise-based APIs\n if (setPrototypeOf) {\n setPrototypeOf(NativePromisePrototype, PromisePrototype);\n }\n }\n}\n\n$({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {\n Promise: PromiseConstructor\n});\n\nsetToStringTag(PromiseConstructor, PROMISE, false, true);\nsetSpecies(PROMISE);\n","module.exports = function (a, b) {\n try {\n // eslint-disable-next-line no-console -- safe\n arguments.length == 1 ? console.error(a) : console.error(a, b);\n } catch (error) { /* empty */ }\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\nvar Iterators = require('../internals/iterators');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar ArrayPrototype = Array.prototype;\n\n// check on default Array iterator\nmodule.exports = function (it) {\n return it !== undefined && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it);\n};\n","var classof = require('../internals/classof');\nvar getMethod = require('../internals/get-method');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar Iterators = require('../internals/iterators');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\n\nmodule.exports = function (it) {\n if (!isNullOrUndefined(it)) return getMethod(it, ITERATOR)\n || getMethod(it, '@@iterator')\n || Iterators[classof(it)];\n};\n","var call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar anObject = require('../internals/an-object');\nvar tryToString = require('../internals/try-to-string');\nvar getIteratorMethod = require('../internals/get-iterator-method');\n\nvar $TypeError = TypeError;\n\nmodule.exports = function (argument, usingIterator) {\n var iteratorMethod = arguments.length < 2 ? getIteratorMethod(argument) : usingIterator;\n if (aCallable(iteratorMethod)) return anObject(call(iteratorMethod, argument));\n throw $TypeError(tryToString(argument) + ' is not iterable');\n};\n","var call = require('../internals/function-call');\nvar anObject = require('../internals/an-object');\nvar getMethod = require('../internals/get-method');\n\nmodule.exports = function (iterator, kind, value) {\n var innerResult, innerError;\n anObject(iterator);\n try {\n innerResult = getMethod(iterator, 'return');\n if (!innerResult) {\n if (kind === 'throw') throw value;\n return value;\n }\n innerResult = call(innerResult, iterator);\n } catch (error) {\n innerError = true;\n innerResult = error;\n }\n if (kind === 'throw') throw value;\n if (innerError) throw innerResult;\n anObject(innerResult);\n return value;\n};\n","var bind = require('../internals/function-bind-context');\nvar call = require('../internals/function-call');\nvar anObject = require('../internals/an-object');\nvar tryToString = require('../internals/try-to-string');\nvar isArrayIteratorMethod = require('../internals/is-array-iterator-method');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar getIterator = require('../internals/get-iterator');\nvar getIteratorMethod = require('../internals/get-iterator-method');\nvar iteratorClose = require('../internals/iterator-close');\n\nvar $TypeError = TypeError;\n\nvar Result = function (stopped, result) {\n this.stopped = stopped;\n this.result = result;\n};\n\nvar ResultPrototype = Result.prototype;\n\nmodule.exports = function (iterable, unboundFunction, options) {\n var that = options && options.that;\n var AS_ENTRIES = !!(options && options.AS_ENTRIES);\n var IS_RECORD = !!(options && options.IS_RECORD);\n var IS_ITERATOR = !!(options && options.IS_ITERATOR);\n var INTERRUPTED = !!(options && options.INTERRUPTED);\n var fn = bind(unboundFunction, that);\n var iterator, iterFn, index, length, result, next, step;\n\n var stop = function (condition) {\n if (iterator) iteratorClose(iterator, 'normal', condition);\n return new Result(true, condition);\n };\n\n var callFn = function (value) {\n if (AS_ENTRIES) {\n anObject(value);\n return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);\n } return INTERRUPTED ? fn(value, stop) : fn(value);\n };\n\n if (IS_RECORD) {\n iterator = iterable.iterator;\n } else if (IS_ITERATOR) {\n iterator = iterable;\n } else {\n iterFn = getIteratorMethod(iterable);\n if (!iterFn) throw $TypeError(tryToString(iterable) + ' is not iterable');\n // optimisation for array iterators\n if (isArrayIteratorMethod(iterFn)) {\n for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {\n result = callFn(iterable[index]);\n if (result && isPrototypeOf(ResultPrototype, result)) return result;\n } return new Result(false);\n }\n iterator = getIterator(iterable, iterFn);\n }\n\n next = IS_RECORD ? iterable.next : iterator.next;\n while (!(step = call(next, iterator)).done) {\n try {\n result = callFn(step.value);\n } catch (error) {\n iteratorClose(iterator, 'throw', error);\n }\n if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;\n } return new Result(false);\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar SAFE_CLOSING = false;\n\ntry {\n var called = 0;\n var iteratorWithReturn = {\n next: function () {\n return { done: !!called++ };\n },\n 'return': function () {\n SAFE_CLOSING = true;\n }\n };\n iteratorWithReturn[ITERATOR] = function () {\n return this;\n };\n // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing\n Array.from(iteratorWithReturn, function () { throw 2; });\n} catch (error) { /* empty */ }\n\nmodule.exports = function (exec, SKIP_CLOSING) {\n if (!SKIP_CLOSING && !SAFE_CLOSING) return false;\n var ITERATION_SUPPORT = false;\n try {\n var object = {};\n object[ITERATOR] = function () {\n return {\n next: function () {\n return { done: ITERATION_SUPPORT = true };\n }\n };\n };\n exec(object);\n } catch (error) { /* empty */ }\n return ITERATION_SUPPORT;\n};\n","var NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration');\nvar FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR;\n\nmodule.exports = FORCED_PROMISE_CONSTRUCTOR || !checkCorrectnessOfIteration(function (iterable) {\n NativePromiseConstructor.all(iterable).then(undefined, function () { /* empty */ });\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar perform = require('../internals/perform');\nvar iterate = require('../internals/iterate');\nvar PROMISE_STATICS_INCORRECT_ITERATION = require('../internals/promise-statics-incorrect-iteration');\n\n// `Promise.all` method\n// https://tc39.es/ecma262/#sec-promise.all\n$({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {\n all: function all(iterable) {\n var C = this;\n var capability = newPromiseCapabilityModule.f(C);\n var resolve = capability.resolve;\n var reject = capability.reject;\n var result = perform(function () {\n var $promiseResolve = aCallable(C.resolve);\n var values = [];\n var counter = 0;\n var remaining = 1;\n iterate(iterable, function (promise) {\n var index = counter++;\n var alreadyCalled = false;\n remaining++;\n call($promiseResolve, C, promise).then(function (value) {\n if (alreadyCalled) return;\n alreadyCalled = true;\n values[index] = value;\n --remaining || resolve(values);\n }, reject);\n });\n --remaining || resolve(values);\n });\n if (result.error) reject(result.value);\n return capability.promise;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR;\nvar NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar getBuiltIn = require('../internals/get-built-in');\nvar isCallable = require('../internals/is-callable');\nvar defineBuiltIn = require('../internals/define-built-in');\n\nvar NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;\n\n// `Promise.prototype.catch` method\n// https://tc39.es/ecma262/#sec-promise.prototype.catch\n$({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR, real: true }, {\n 'catch': function (onRejected) {\n return this.then(undefined, onRejected);\n }\n});\n\n// makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`\nif (!IS_PURE && isCallable(NativePromiseConstructor)) {\n var method = getBuiltIn('Promise').prototype['catch'];\n if (NativePromisePrototype['catch'] !== method) {\n defineBuiltIn(NativePromisePrototype, 'catch', method, { unsafe: true });\n }\n}\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar perform = require('../internals/perform');\nvar iterate = require('../internals/iterate');\nvar PROMISE_STATICS_INCORRECT_ITERATION = require('../internals/promise-statics-incorrect-iteration');\n\n// `Promise.race` method\n// https://tc39.es/ecma262/#sec-promise.race\n$({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {\n race: function race(iterable) {\n var C = this;\n var capability = newPromiseCapabilityModule.f(C);\n var reject = capability.reject;\n var result = perform(function () {\n var $promiseResolve = aCallable(C.resolve);\n iterate(iterable, function (promise) {\n call($promiseResolve, C, promise).then(capability.resolve, reject);\n });\n });\n if (result.error) reject(result.value);\n return capability.promise;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR;\n\n// `Promise.reject` method\n// https://tc39.es/ecma262/#sec-promise.reject\n$({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {\n reject: function reject(r) {\n var capability = newPromiseCapabilityModule.f(this);\n call(capability.reject, undefined, r);\n return capability.promise;\n }\n});\n","var anObject = require('../internals/an-object');\nvar isObject = require('../internals/is-object');\nvar newPromiseCapability = require('../internals/new-promise-capability');\n\nmodule.exports = function (C, x) {\n anObject(C);\n if (isObject(x) && x.constructor === C) return x;\n var promiseCapability = newPromiseCapability.f(C);\n var resolve = promiseCapability.resolve;\n resolve(x);\n return promiseCapability.promise;\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar getBuiltIn = require('../internals/get-built-in');\nvar IS_PURE = require('../internals/is-pure');\nvar NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR;\nvar promiseResolve = require('../internals/promise-resolve');\n\nvar PromiseConstructorWrapper = getBuiltIn('Promise');\nvar CHECK_WRAPPER = IS_PURE && !FORCED_PROMISE_CONSTRUCTOR;\n\n// `Promise.resolve` method\n// https://tc39.es/ecma262/#sec-promise.resolve\n$({ target: 'Promise', stat: true, forced: IS_PURE || FORCED_PROMISE_CONSTRUCTOR }, {\n resolve: function resolve(x) {\n return promiseResolve(CHECK_WRAPPER && this === PromiseConstructorWrapper ? NativePromiseConstructor : this, x);\n }\n});\n","var classof = require('../internals/classof');\n\nvar $String = String;\n\nmodule.exports = function (argument) {\n if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');\n return $String(argument);\n};\n","'use strict';\n/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */\n/* eslint-disable regexp/no-useless-quantifier -- testing */\nvar call = require('../internals/function-call');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar toString = require('../internals/to-string');\nvar regexpFlags = require('../internals/regexp-flags');\nvar stickyHelpers = require('../internals/regexp-sticky-helpers');\nvar shared = require('../internals/shared');\nvar create = require('../internals/object-create');\nvar getInternalState = require('../internals/internal-state').get;\nvar UNSUPPORTED_DOT_ALL = require('../internals/regexp-unsupported-dot-all');\nvar UNSUPPORTED_NCG = require('../internals/regexp-unsupported-ncg');\n\nvar nativeReplace = shared('native-string-replace', String.prototype.replace);\nvar nativeExec = RegExp.prototype.exec;\nvar patchedExec = nativeExec;\nvar charAt = uncurryThis(''.charAt);\nvar indexOf = uncurryThis(''.indexOf);\nvar replace = uncurryThis(''.replace);\nvar stringSlice = uncurryThis(''.slice);\n\nvar UPDATES_LAST_INDEX_WRONG = (function () {\n var re1 = /a/;\n var re2 = /b*/g;\n call(nativeExec, re1, 'a');\n call(nativeExec, re2, 'a');\n return re1.lastIndex !== 0 || re2.lastIndex !== 0;\n})();\n\nvar UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;\n\n// nonparticipating capturing group, copied from es5-shim's String#split patch.\nvar NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;\n\nvar PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;\n\nif (PATCH) {\n patchedExec = function exec(string) {\n var re = this;\n var state = getInternalState(re);\n var str = toString(string);\n var raw = state.raw;\n var result, reCopy, lastIndex, match, i, object, group;\n\n if (raw) {\n raw.lastIndex = re.lastIndex;\n result = call(patchedExec, raw, str);\n re.lastIndex = raw.lastIndex;\n return result;\n }\n\n var groups = state.groups;\n var sticky = UNSUPPORTED_Y && re.sticky;\n var flags = call(regexpFlags, re);\n var source = re.source;\n var charsAdded = 0;\n var strCopy = str;\n\n if (sticky) {\n flags = replace(flags, 'y', '');\n if (indexOf(flags, 'g') === -1) {\n flags += 'g';\n }\n\n strCopy = stringSlice(str, re.lastIndex);\n // Support anchored sticky behavior.\n if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt(str, re.lastIndex - 1) !== '\\n')) {\n source = '(?: ' + source + ')';\n strCopy = ' ' + strCopy;\n charsAdded++;\n }\n // ^(? + rx + ) is needed, in combination with some str slicing, to\n // simulate the 'y' flag.\n reCopy = new RegExp('^(?:' + source + ')', flags);\n }\n\n if (NPCG_INCLUDED) {\n reCopy = new RegExp('^' + source + '$(?!\\\\s)', flags);\n }\n if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;\n\n match = call(nativeExec, sticky ? reCopy : re, strCopy);\n\n if (sticky) {\n if (match) {\n match.input = stringSlice(match.input, charsAdded);\n match[0] = stringSlice(match[0], charsAdded);\n match.index = re.lastIndex;\n re.lastIndex += match[0].length;\n } else re.lastIndex = 0;\n } else if (UPDATES_LAST_INDEX_WRONG && match) {\n re.lastIndex = re.global ? match.index + match[0].length : lastIndex;\n }\n if (NPCG_INCLUDED && match && match.length > 1) {\n // Fix browsers whose `exec` methods don't consistently return `undefined`\n // for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/\n call(nativeReplace, match[0], reCopy, function () {\n for (i = 1; i < arguments.length - 2; i++) {\n if (arguments[i] === undefined) match[i] = undefined;\n }\n });\n }\n\n if (match && groups) {\n match.groups = object = create(null);\n for (i = 0; i < groups.length; i++) {\n group = groups[i];\n object[group[0]] = match[group[1]];\n }\n }\n\n return match;\n };\n}\n\nmodule.exports = patchedExec;\n","'use strict';\nvar anObject = require('../internals/an-object');\n\n// `RegExp.prototype.flags` getter implementation\n// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags\nmodule.exports = function () {\n var that = anObject(this);\n var result = '';\n if (that.hasIndices) result += 'd';\n if (that.global) result += 'g';\n if (that.ignoreCase) result += 'i';\n if (that.multiline) result += 'm';\n if (that.dotAll) result += 's';\n if (that.unicode) result += 'u';\n if (that.unicodeSets) result += 'v';\n if (that.sticky) result += 'y';\n return result;\n};\n","var fails = require('../internals/fails');\nvar global = require('../internals/global');\n\n// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError\nvar $RegExp = global.RegExp;\n\nvar UNSUPPORTED_Y = fails(function () {\n var re = $RegExp('a', 'y');\n re.lastIndex = 2;\n return re.exec('abcd') != null;\n});\n\n// UC Browser bug\n// https://github.com/zloirock/core-js/issues/1008\nvar MISSED_STICKY = UNSUPPORTED_Y || fails(function () {\n return !$RegExp('a', 'y').sticky;\n});\n\nvar BROKEN_CARET = UNSUPPORTED_Y || fails(function () {\n // https://bugzilla.mozilla.org/show_bug.cgi?id=773687\n var re = $RegExp('^r', 'gy');\n re.lastIndex = 2;\n return re.exec('str') != null;\n});\n\nmodule.exports = {\n BROKEN_CARET: BROKEN_CARET,\n MISSED_STICKY: MISSED_STICKY,\n UNSUPPORTED_Y: UNSUPPORTED_Y\n};\n","var fails = require('../internals/fails');\nvar global = require('../internals/global');\n\n// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError\nvar $RegExp = global.RegExp;\n\nmodule.exports = fails(function () {\n var re = $RegExp('.', 's');\n return !(re.dotAll && re.exec('\\n') && re.flags === 's');\n});\n","var fails = require('../internals/fails');\nvar global = require('../internals/global');\n\n// babel-minify and Closure Compiler transpiles RegExp('(?b)', 'g') -> /(?b)/g and it causes SyntaxError\nvar $RegExp = global.RegExp;\n\nmodule.exports = fails(function () {\n var re = $RegExp('(?b)', 'g');\n return re.exec('b').groups.a !== 'b' ||\n 'b'.replace(re, '$c') !== 'bc';\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar exec = require('../internals/regexp-exec');\n\n// `RegExp.prototype.exec` method\n// https://tc39.es/ecma262/#sec-regexp.prototype.exec\n$({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {\n exec: exec\n});\n","/**\n * Provide feature detection\n * @class Features\n */\nexport class Features {\n /**\n * If the browser has WebGL support\n * @property {boolean} webgl\n */\n static get webgl() {\n const canvas = document.createElement('canvas');\n\n return !!(\n canvas &&\n (canvas.getContext('webgl') || canvas.getContext('experimental-webgl'))\n );\n }\n\n /**\n * If the browser has Canvas support\n * @property {boolean} canvas\n */\n static get canvas() {\n const canvas = document.createElement('canvas');\n return !!(canvas !== null && canvas.getContext && canvas.getContext('2d'));\n }\n\n /**\n * If the browser has WebAudio API support\n * @property {boolean} webaudio\n */\n static get webaudio() {\n return 'webkitAudioContext' in window || 'AudioContext' in window;\n }\n\n /**\n * If the browser has HTMLAudio support\n * @property {boolean} htmlAudio\n */\n static get htmlAudio() {\n return 'HTMLAudioElement' in window;\n }\n\n /**\n * If the browser has Web Sockets API\n * @property {boolean} websockets\n */\n static get websockets() {\n return 'WebSocket' in window || 'MozWebSocket' in window;\n }\n\n /**\n * If the browser has Geolocation API\n * @property {boolean} geolocation\n */\n static get geolocation() {\n return 'geolocation' in navigator;\n }\n\n /**\n * If the browser has Web Workers API\n * @property {boolean} webworkers\n */\n static get webworkers() {\n return 'function' === typeof Worker;\n }\n\n /**\n * If the browser has touch\n * @property {boolean} touch\n */\n static get touch() {\n return !!(\n 'ontouchstart' in window || // iOS & Android\n (navigator.msPointerEnabled && navigator.msMaxTouchPoints > 0) || // IE10\n (navigator.pointerEnabled && navigator.maxTouchPoints > 0)\n ); // IE11+\n }\n\n /**\n * Test for basic browser compatiliblity\n * @method basic\n * @static\n * @return {String} The error message, if fails\n */\n static basic() {\n if (!Features.canvas) {\n return 'Browser does not support canvas';\n } else if (!Features.webaudio && !Features.htmlAudio) {\n return 'Browser does not support WebAudio or HTMLAudio';\n }\n return null;\n }\n\n /**\n * See if the current bowser has the correct features\n * @method test\n * @static\n * @param {object} capabilities The capabilities\n * @param {object} [capabilities.features] The features\n * @param {object} [capabilities.features.webgl] WebGL required\n * @param {object} [capabilities.features.geolocation] Geolocation required\n * @param {object} [capabilities.features.webworkers] Web Workers API required\n * @param {object} [capabilities.features.webaudio] WebAudio API required\n * @param {object} [capabilities.features.websockets] WebSockets required\n * @param {object} [capabilities.sizes] The sizes\n * @param {Boolean} [capabilities.sizes.xsmall] Screens < 480\n * @param {Boolean} [capabilities.sizes.small] Screens < 768\n * @param {Boolean} [capabilities.sizes.medium] Screens < 992\n * @param {Boolean} [capabilities.sizes.large] Screens < 1200\n * @param {Boolean} [capabilities.sizes.xlarge] Screens >= 1200\n * @param {object} [capabilities.ui] The ui\n * @param {Boolean} [capabilities.ui.touch] Touch capable\n * @return {String|null} The error, or else returns null\n */\n static test(capabilities) {\n // check for basic compatibility\n const err = this.basic();\n if (err) {\n return err;\n }\n\n const features = capabilities.features;\n const ui = capabilities.ui;\n const sizes = capabilities.sizes;\n\n for (const name in features) {\n if (features[name] === true && !Features[name]) {\n // Failed built-in feature check\n return 'Browser does not support ' + name;\n }\n }\n\n // Failed negative touch requirement\n if (!ui.touch && Features.touch) {\n return 'Game does not support touch input';\n }\n\n // Check the sizes\n const size = Math.max(window.screen.width, window.screen.height);\n\n if (!sizes.xsmall && size < 480) {\n return 'Game doesn\\'t support extra small screens';\n }\n if (!sizes.small && size < 768) {\n return 'Game doesn\\'t support small screens';\n }\n if (!sizes.medium && size < 992) {\n return 'Game doesn\\'t support medium screens';\n }\n if (!sizes.large && size < 1200) {\n return 'Game doesn\\'t support large screens';\n }\n if (!sizes.xlarge && size >= 1200) {\n return 'Game doesn\\'t support extra large screens';\n }\n return null;\n }\n\n /**\n * Returns browser feature support info\n * @returns {string}\n */\n static get info() {\n return `Browser Feature Detection\n\t\t\t\tCanvas support ${Features.canvas ? '\\u2713' : '\\u00D7'}\n\t\t\t\tWebGL support ${Features.webgl ? '\\u2713' : '\\u00D7'}\n\t\t\t\tWebAudio support ${Features.webAudio ? '\\u2713' : '\\u00D7'}`;\n }\n}\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\nvar toString = require('../internals/to-string');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nvar charAt = uncurryThis(''.charAt);\nvar charCodeAt = uncurryThis(''.charCodeAt);\nvar stringSlice = uncurryThis(''.slice);\n\nvar createMethod = function (CONVERT_TO_STRING) {\n return function ($this, pos) {\n var S = toString(requireObjectCoercible($this));\n var position = toIntegerOrInfinity(pos);\n var size = S.length;\n var first, second;\n if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;\n first = charCodeAt(S, position);\n return first < 0xD800 || first > 0xDBFF || position + 1 === size\n || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF\n ? CONVERT_TO_STRING\n ? charAt(S, position)\n : first\n : CONVERT_TO_STRING\n ? stringSlice(S, position, position + 2)\n : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;\n };\n};\n\nmodule.exports = {\n // `String.prototype.codePointAt` method\n // https://tc39.es/ecma262/#sec-string.prototype.codepointat\n codeAt: createMethod(false),\n // `String.prototype.at` method\n // https://github.com/mathiasbynens/String.prototype.at\n charAt: createMethod(true)\n};\n","'use strict';\nvar charAt = require('../internals/string-multibyte').charAt;\nvar toString = require('../internals/to-string');\nvar InternalStateModule = require('../internals/internal-state');\nvar defineIterator = require('../internals/iterator-define');\nvar createIterResultObject = require('../internals/create-iter-result-object');\n\nvar STRING_ITERATOR = 'String Iterator';\nvar setInternalState = InternalStateModule.set;\nvar getInternalState = InternalStateModule.getterFor(STRING_ITERATOR);\n\n// `String.prototype[@@iterator]` method\n// https://tc39.es/ecma262/#sec-string.prototype-@@iterator\ndefineIterator(String, 'String', function (iterated) {\n setInternalState(this, {\n type: STRING_ITERATOR,\n string: toString(iterated),\n index: 0\n });\n// `%StringIteratorPrototype%.next` method\n// https://tc39.es/ecma262/#sec-%stringiteratorprototype%.next\n}, function next() {\n var state = getInternalState(this);\n var string = state.string;\n var index = state.index;\n var point;\n if (index >= string.length) return createIterResultObject(undefined, true);\n point = charAt(string, index);\n state.index += point.length;\n return createIterResultObject(point, false);\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar $filter = require('../internals/array-iteration').filter;\nvar arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');\n\nvar HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');\n\n// `Array.prototype.filter` method\n// https://tc39.es/ecma262/#sec-array.prototype.filter\n// with adding support of @@species\n$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {\n filter: function filter(callbackfn /* , thisArg */) {\n return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar $find = require('../internals/array-iteration').find;\nvar addToUnscopables = require('../internals/add-to-unscopables');\n\nvar FIND = 'find';\nvar SKIPS_HOLES = true;\n\n// Shouldn't skip holes\nif (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });\n\n// `Array.prototype.find` method\n// https://tc39.es/ecma262/#sec-array.prototype.find\n$({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {\n find: function find(callbackfn /* , that = undefined */) {\n return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables(FIND);\n","function t(t,e){return t(e={exports:{}},e.exports),e.exports}var e=t((function(t){function e(t){return(e=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t})(t)}function n(r){return\"function\"==typeof Symbol&&\"symbol\"===e(Symbol.iterator)?t.exports=n=function(t){return e(t)}:t.exports=n=function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":e(t)},n(r)}t.exports=n}));var n=function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")};function r(t,e){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:0;this._listeners[t]||(this._listeners[t]=[]),e._priority=parseInt(n)||0,-1===this._listeners[t].indexOf(e)&&(this._listeners[t].push(e),this._listeners[t].length>1&&this._listeners[t].sort(this.listenerSorter))}},{key:\"listenerSorter\",value:function(t,e){return t._priority-e._priority}},{key:\"off\",value:function(t,e){if(void 0!==this._listeners[t])if(void 0!==e){var n=this._listeners[t].indexOf(e);-11&&void 0!==arguments[1]?arguments[1]:{};if(\"string\"==typeof t&&(t={type:t,data:\"object\"===e(n)&&null!==n?n:{}}),void 0!==this._listeners[t.type])for(var r=this._listeners[t.type].length-1;r>=0;r--)this._listeners[t.type][r](t)}},{key:\"destroy\",value:function(){this._listeners={}}}]),t}(),s=t((function(t){var e=function(t){var e,n=Object.prototype,r=n.hasOwnProperty,o=\"function\"==typeof Symbol?Symbol:{},i=o.iterator||\"@@iterator\",s=o.asyncIterator||\"@@asyncIterator\",a=o.toStringTag||\"@@toStringTag\";function c(t,e,n,r){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),s=new S(r||[]);return i._invoke=function(t,e,n){var r=h;return function(o,i){if(r===f)throw new Error(\"Generator is already running\");if(r===p){if(\"throw\"===o)throw i;return P()}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var a=O(s,n);if(a){if(a===y)continue;return a}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(r===h)throw r=p,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);r=f;var c=u(t,e,n);if(\"normal\"===c.type){if(r=n.done?p:l,c.arg===y)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(r=p,n.method=\"throw\",n.arg=c.arg)}}}(t,n,s),i}function u(t,e,n){try{return{type:\"normal\",arg:t.call(e,n)}}catch(t){return{type:\"throw\",arg:t}}}t.wrap=c;var h=\"suspendedStart\",l=\"suspendedYield\",f=\"executing\",p=\"completed\",y={};function d(){}function v(){}function g(){}var m={};m[i]=function(){return this};var w=Object.getPrototypeOf,b=w&&w(w(j([])));b&&b!==n&&r.call(b,i)&&(m=b);var _=g.prototype=d.prototype=Object.create(m);function x(t){[\"next\",\"throw\",\"return\"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function L(t){function e(n,o,i,s){var a=u(t[n],t,o);if(\"throw\"!==a.type){var c=a.arg,h=c.value;return h&&\"object\"==typeof h&&r.call(h,\"__await\")?Promise.resolve(h.__await).then((function(t){e(\"next\",t,i,s)}),(function(t){e(\"throw\",t,i,s)})):Promise.resolve(h).then((function(t){c.value=t,i(c)}),(function(t){return e(\"throw\",t,i,s)}))}s(a.arg)}var n;this._invoke=function(t,r){function o(){return new Promise((function(n,o){e(t,r,n,o)}))}return n=n?n.then(o,o):o()}}function O(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,\"throw\"===n.method){if(t.iterator.return&&(n.method=\"return\",n.arg=e,O(t,n),\"throw\"===n.method))return y;n.method=\"throw\",n.arg=new TypeError(\"The iterator does not provide a 'throw' method\")}return y}var o=u(r,t.iterator,n.arg);if(\"throw\"===o.type)return n.method=\"throw\",n.arg=o.arg,n.delegate=null,y;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,\"return\"!==n.method&&(n.method=\"next\",n.arg=e),n.delegate=null,y):i:(n.method=\"throw\",n.arg=new TypeError(\"iterator result is not an object\"),n.delegate=null,y)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(E,this),this.reset(!0)}function j(t){if(t){var n=t[i];if(n)return n.call(t);if(\"function\"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,s=function n(){for(;++o=0;--i){var s=this.tryEntries[i],a=s.completion;if(\"root\"===s.tryLoc)return o(\"end\");if(s.tryLoc<=this.prev){var c=r.call(s,\"catchLoc\"),u=r.call(s,\"finallyLoc\");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,\"finallyLoc\")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if(\"throw\"===r.type){var o=r.arg;k(n)}return o}}throw new Error(\"illegal catch attempt\")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},\"next\"===this.method&&(this.arg=e),y}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function(\"r\",\"regeneratorRuntime = r\")(e)}}));var a=function(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t};var c=function(t,n){return!n||\"object\"!==e(n)&&\"function\"!=typeof n?a(t):n},u=t((function(t){function e(n){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},e(n)}t.exports=e}));var h=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=u(t)););return t},l=t((function(t){function e(n,r,o){return\"undefined\"!=typeof Reflect&&Reflect.get?t.exports=e=Reflect.get:t.exports=e=function(t,e,n){var r=h(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}},e(n,r,o||n)}t.exports=e})),f=t((function(t){function e(n,r){return t.exports=e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},e(n,r)}t.exports=e}));var p=function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)},y=function(t){function r(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100*Math.random()|0;return n(this,r),(t=c(this,u(r).call(this))).id=\"BELLHOP:\".concat(e),t.connected=!1,t.isChild=!0,t.connecting=!1,t.debug=!1,t.origin=\"*\",t._sendLater=[],t.iframe=null,t.receive=t.receive.bind(a(t)),t}return p(r,i),o(r,[{key:\"receive\",value:function(t){if(this.target===t.source)if(this.logDebugMessage(!0,t),\"connected\"===t.data)this.onConnectionReceived(t.data);else{var n=t.data;if(\"string\"==typeof n)try{n=JSON.parse(n)}catch(t){console.warn(\"Bellhop error: \",t)}this.connected&&\"object\"===e(n)&&n.type&&this.trigger(n)}}},{key:\"onConnectionReceived\",value:function(t){if(this.connecting=!1,this.connected=!0,!this.isChild){if(!this.target)return;this.target.postMessage(t,this.origin)}for(var e=0;e1&&void 0!==arguments[1]?arguments[1]:\"*\";this.connecting||(this.disconnect(),this.connecting=!0,t instanceof HTMLIFrameElement&&(this.iframe=t),this.isChild=void 0===t,this.supported=!0,this.isChild&&(this.supported=window!=t),this.origin=e,window.addEventListener(\"message\",this.receive),this.isChild&&(window===this.target?this.trigger(\"failed\"):this.target.postMessage(\"connected\",this.origin)))}},{key:\"disconnect\",value:function(){this.connected=!1,this.connecting=!1,this.origin=null,this.iframe=null,this.isChild=!0,this._sendLater.length=0,window.removeEventListener(\"message\",this.receive)}},{key:\"send\",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(\"string\"!=typeof t)throw\"The event type must be a string\";var n={type:t,data:e};this.logDebugMessage(!1,n),this.connecting?this._sendLater.push(n):this.target.postMessage(JSON.stringify(n),this.origin)}},{key:\"fetch\",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!this.connecting&&!this.connected)throw\"No connection, please call connect() first\";var i=function t(r){o&&n.off(r.type,t),e(r)};this.on(t,i),this.send(t,r)}},{key:\"respond\",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this,o=function t(o){return s.async((function(i){for(;;)switch(i.prev=i.next){case 0:if(n&&r.off(o,t),\"function\"!=typeof e){i.next=10;break}return i.t0=r,i.t1=o.type,i.next=6,s.awrap(e());case 6:i.t2=i.sent,i.t0.send.call(i.t0,i.t1,i.t2),i.next=11;break;case 10:r.send(o.type,e);case 11:case\"end\":return i.stop()}}))};this.on(t,o)}},{key:\"logDebugMessage\",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1?arguments[1]:void 0;this.debug&&\"function\"==typeof this.debug?this.debug({isChild:this.isChild,received:t,message:e}):this.debug&&console.log(\"Bellhop Instance (\".concat(this.isChild?\"Child\":\"Parent\",\") \").concat(t?\"Receieved\":\"Sent\"),e)}},{key:\"destroy\",value:function(){l(u(r.prototype),\"destroy\",this).call(this),this.disconnect(),this._sendLater.length=0}},{key:\"target\",get:function(){return this.isChild?window.parent:this.iframe.contentWindow}}]),r}();export{y as Bellhop,i as BellhopEventDispatcher};\n//# sourceMappingURL=bellhop.js.map\n","/**\n * @typedef {import('./base-plugins/BasePlugin').BasePlugin} BasePlugin\n */\nimport { Bellhop } from 'bellhop-iframe';\n/**\n *\n *\n * @export\n * @class PluginManager\n */\nexport default class PluginManager {\n /**\n *Creates an instance of PluginManager.\n * @memberof PluginManager\n */\n constructor({ plugins = [] }) {\n this.client = new Bellhop();\n this.preloading = true;\n // @ts-ignore\n this.client.hidden = this.client.receive.bind(this.client);\n // @ts-ignore\n this.client.hiddenSend = this.client.send.bind(this.client);\n this.client.receive = function (event) {\n this.hidden(event);\n }.bind(this.client);\n this.client.send = function (event, data) {\n this.hiddenSend(event, data);\n }.bind(this.client);\n\n this.plugins = plugins;\n }\n\n /**\n *\n *\n * @returns\n * @memberof PluginManager\n */\n setupPlugins() {\n const preloads = [];\n for (let i = 0, l = this.plugins.length; i < l; i++) {\n if (!this.plugins[i].preload) {\n continue;\n }\n\n preloads.push(\n this.plugins[i].preload(this).catch(function preloadFail(error) {\n this.plugins[i].preloadFailed = true;\n console.warn(this.plugins[i].name, 'Preload Failed:', error);\n }.bind(this))\n );\n }\n\n // ~wait for all preloads to resolve\n return Promise.all(preloads).then(() => {\n // Remove plugins that fail to load.\n this.plugins = this.plugins.filter(\n plugin => plugin.preloadFailed !== true\n );\n\n this.preloading = false;\n this.client.trigger('preloadsFinished');\n\n //init\n this.plugins.forEach(plugin => {\n if (!plugin.init) {\n return;\n }\n\n plugin.init(this);\n });\n\n //start\n this.plugins.forEach(plugin => {\n if (!plugin.start) {\n return;\n }\n plugin.start(this);\n });\n });\n }\n\n /**\n * Registers a plugin to be used by PluginManagers, sorting it by priority order.\n * @param {BasePlugin} plugin The plugin to register.\n */\n uses(plugin) {\n this.plugins.push(plugin);\n }\n\n /**\n * Finds a plugin by name.\n * @param {string} name The name of the plugin.\n * @returns {BasePlugin}\n */\n getPlugin(name) {\n return this.plugins.find(function (plugin) {\n return plugin.name === name;\n });\n }\n}\n","import 'whatwg-fetch';\n\nimport { Features } from './Features';\nimport PluginManager from './PluginManager';\n// @ts-ignore\nimport { version } from '../package.json';\n\n/**\n * The application container\n * @class Container\n * @property {Bellhop} client Communication layer between the container and application\n * @property {boolean} loaded Check to see if a application is loaded\n * @property {boolean} loading Check to see if a application is loading\n * @property {object} release The current release data\n * @property {HTMLIFrameElement} iframe The DOM object for the iframe\n * @static @property {string} version The current version of the library\n */\nexport class Container extends PluginManager {\n /**\n *Creates an instance of Container.\n * @param {object} config\n * @param {string | HTMLIFrameElement} iframeOrSelector\n * @param {Array | null} [config.plugins]\n * @param {object | null} [config.context={}]\n * @memberof Container\n */\n constructor(iframeOrSelector, { plugins, context = {} } = {}) {\n super({ plugins });\n\n this.iframe = iframeOrSelector instanceof HTMLIFrameElement ? iframeOrSelector : document.querySelector(iframeOrSelector);\n this.iframe.style.backgroundColor = 'black';\n\n if (null === this.iframe) {\n throw new Error('No iframe was found with the provided selector');\n }\n\n this.loaded = false;\n this.loading = false;\n this.release = null;\n\n // context object that plugins can pick up on\n this._context = context;\n\n this.onLoading = this.onLoading.bind(this);\n this.onLoadDone = this.onLoadDone.bind(this);\n this.onLoadDone = this.onLoadDone.bind(this);\n this.onEndGame = this.onEndGame.bind(this);\n this.onLocalError = this.onLocalError.bind(this);\n\n this.initClient();\n this.setupPlugins();\n }\n\n /**\n * The game is starting to load\n * @memberof Container\n */\n onLoading() {\n this.client.trigger('opening');\n }\n\n /**\n * Reset the mutes for audio and captions\n * @memberof Container\n */\n onLoadDone() {\n this.loading = false;\n this.loaded = true;\n this.iframe.classList.remove('loading');\n\n this.client.trigger('opened');\n }\n\n /**\n * The application ended and destroyed itself\n * @memberof Container\n */\n onEndGame() {\n this.reset();\n }\n /**\n * Handle the local errors\n * @method onLocalError\n * @private\n * @param {Event} $event Bellhop event\n */\n onLocalError($event) {\n console.error('SpringRoll Container error: ', $event, new Error().stack);\n }\n\n /**\n * Reset all the buttons back to their original setting\n * and clear the iframe.\n * @memberof Container\n */\n reset() {\n const wasLoaded = this.loaded || this.loading;\n\n if (wasLoaded) {\n this.client.trigger('closed');\n }\n\n // Reset state\n this.loaded = false;\n this.loading = false;\n\n // Clear the iframe src location\n this.iframe.setAttribute('src', '');\n this.iframe.classList.remove('loading');\n }\n\n /**\n * Set up communication layer between site and application.\n * May be called from subclasses if they create/destroy Bellhop instances.\n * @memberof Container\n */\n initClient() {\n //Handle bellhop events coming from the application\n this.client.on('loading', this.onLoading);\n this.client.on('loaded', this.onLoadDone);\n this.client.on('loadDone', this.onLoadDone);\n this.client.on('endGame', this.onEndGame);\n this.client.on('localError', this.onLocalError);\n // @ts-ignore\n this.client.connect(this.iframe);\n }\n\n /**\n * If there was an error when closing, reset the container\n * @memberof Container\n */\n _onCloseFailed() {\n this.reset(); // force close the app\n }\n\n /**\n * Open a application or path\n * @param {string} userPath The full path to the application to load\n * @param {object} [userOptions] The open options\n * @param {boolean} [userOptions.singlePlay=false] If we should play in single play mode\n * @param {object | null} [userOptions.playOptions=null] The optional play options\n * @memberof Container\n */\n _internalOpen(userPath, { singlePlay = false, playOptions = null } = {}) {\n if (this.preloading) {\n // const holdPath = userPath;\n // const userOptions = { singlePlay, playOptions };\n this.client.on('preloadsFinished', () => {\n this._internalOpen(userPath, { singlePlay, playOptions });\n });\n\n return;\n }\n\n const options = { singlePlay, playOptions };\n this.reset();\n\n this.loading = true;\n this.initClient();\n\n const err = Features.basic();\n if (err) {\n console.error('ERROR:', err);\n this.client.trigger('unsupported');\n }\n\n let path = userPath;\n if (null !== options.playOptions) {\n const playOptionsQueryString =\n 'playOptions=' +\n encodeURIComponent(JSON.stringify(options.playOptions));\n\n path =\n -1 === userPath.indexOf('?')\n ? `${userPath}?${playOptionsQueryString}`\n : `${userPath}&${playOptionsQueryString}`;\n }\n\n this.iframe.classList.add('loading');\n this.iframe.setAttribute('src', path);\n\n this.client.respond('singlePlay', singlePlay);\n this.client.respond('playOptions', playOptions);\n this.client.trigger('open');\n }\n\n /**\n *\n *\n * @param {string} path\n * @param {object} [options={}]\n * @memberof Container\n */\n openPath(path, options = {}) {\n // This should be deprecated, support for old function signature\n if ('object' !== typeof options) {\n console.warn(\n 'SpringRoll Container.openPath was passed a invalid options parameter. Using default parameters instead'\n );\n options = {};\n }\n\n this._internalOpen(\n path,\n Object.assign(\n {\n singlePlay: false,\n playOptions: {}\n },\n options\n )\n );\n }\n\n /**\n * Open application based on an API Call to SpringRoll Connect\n * @param {string} api\n * @param {object} options\n * @param {string} [options.query='']\n * @param {boolean} [options.singlePlay=false]\n * @param {null | object} [options.playOptions=null]\n * @returns {Promise}\n * @memberof Container\n */\n async openRemote(\n api,\n { query = '', singlePlay = false, playOptions = null } = {}\n ) {\n this.release = null;\n\n const response = await fetch(api, {\n headers: {\n 'Content-Type': 'application/json'\n }\n });\n\n const json = await response.json();\n\n // if SpringRollConnect denoted that something failed, send that error back\n if (!json.success) {\n throw new Error(json.error);\n }\n\n // If the browser doesn't support the capabilities requested by this game, also fail.\n const release = json.data;\n const error = Features.test(release.capabilities);\n if (error) {\n this.client.trigger('unsupported', { error });\n throw new Error(error);\n }\n\n // otherwise, open the game\n this.release = release;\n this._internalOpen(release.url + query, {\n singlePlay,\n playOptions\n });\n }\n\n /**\n * Destroy and don't use after this\n * @memberof Container\n */\n destroy() {\n this.reset();\n\n this.iframe = null;\n this.options = null;\n this.release = null;\n }\n\n /**\n * Tell the application to start closing\n * @memberof Container\n */\n close() {\n if (this.loading || this.loaded) {\n this.client.trigger('close');\n // Start the close\n this.client.send('close');\n } else {\n this.reset();\n }\n }\n\n /**\n * the current _context object\n * @readonly\n * @memberof Container\n * @return {object}\n */\n get context() {\n return this._context;\n }\n\n /**\n * sets _context object to new object\n * @param {object} context\n * @memberof Container\n */\n set context(newContext) {\n if (typeof newContext !== 'object') {\n console.error('[SpringRollContainer] Context: new context provided is not an object');\n return;\n }\n this._context = newContext;\n }\n\n\n\n /**\n * The current version of SpringRollContainer\n * @readonly\n * @static\n * @return {string}\n * @memberof Container\n */\n static get version() {\n return version;\n }\n}\n","/**\n * Handle the page visiblity change, if supported. Application uses one of these to\n * monitor page visibility. It is suggested that you listen to `pause`, `paused`,\n * or `resumed` events on the Application instead of using one of these yourself.\n *\n * @export\n * @class PageVisibility\n * @constructor\n * @param {Function} onFocus Callback when the page becomes visible\n * @param {Function} onBlur Callback when the page loses visibility\n */\nexport class PageVisibility {\n /**\n *Creates an instance of PageVisibility.\n * @param { function } [onFocus=function() {}]\n * @param { function } [onBlur=function() {}]\n * @memberof PageVisibility\n */\n constructor(onFocus = function() {}, onBlur = function() {}) {\n this._onFocus = onFocus;\n this._onBlur = onBlur;\n this.onFocus = function(e) {\n if (this.enabled) {\n this._onFocus(e);\n }\n }.bind(this);\n this.onBlur = function(e) {\n if (this.enabled) {\n this._onBlur(e);\n }\n }.bind(this);\n this._enabled = false;\n this.enabled = true;\n\n this.onToggle = this.onToggle.bind(this);\n }\n\n /**\n * Disable the detection\n * @memberof PageVisibility\n */\n destroy() {\n this.enabled = false;\n this.onToggle = null;\n this.onFocus = null;\n this.onBlur = null;\n }\n\n /**\n * The visibility toggle listener function\n * @param {Event} $event;\n * @memberof PageVisibility\n */\n onToggle($event) {\n if (this.enabled) {\n document.hidden ? this.onBlur($event) : this.onFocus($event);\n }\n }\n\n /**\n * If this object is enabled.\n * @returns {boolean}\n * @memberof PageVisibility\n */\n get enabled() {\n return this._enabled;\n }\n\n /**\n * Sets the state of the object\n * @memberof PageVisibility\n */\n set enabled(enable) {\n this._enabled = enable;\n\n document.removeEventListener('visibilitychange', this.onToggle, false);\n window.removeEventListener('blur', this.onBlur, false);\n window.removeEventListener('focus', this.onFocus, false);\n window.removeEventListener('pagehide', this.onBlur, false);\n window.removeEventListener('pageshow', this.onFocus, false);\n window.removeEventListener('visibilitychange', this.onToggle, false);\n\n if (this._enabled) {\n document.addEventListener('visibilitychange', this.onToggle, false);\n window.addEventListener('blur', this.onBlur, false);\n window.addEventListener('focus', this.onFocus, false);\n window.addEventListener('pagehide', this.onBlur, false);\n window.addEventListener('pageshow', this.onFocus, false);\n window.addEventListener('visibilitychange', this.onToggle, false);\n }\n }\n}\n","'use strict';\nvar $ = require('../internals/export');\nvar $includes = require('../internals/array-includes').includes;\nvar fails = require('../internals/fails');\nvar addToUnscopables = require('../internals/add-to-unscopables');\n\n// FF99+ bug\nvar BROKEN_ON_SPARSE = fails(function () {\n // eslint-disable-next-line es/no-array-prototype-includes -- detection\n return !Array(1).includes();\n});\n\n// `Array.prototype.includes` method\n// https://tc39.es/ecma262/#sec-array.prototype.includes\n$({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {\n includes: function includes(el /* , fromIndex = 0 */) {\n return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables('includes');\n","// a string of all valid unicode whitespaces\nmodule.exports = '\\u0009\\u000A\\u000B\\u000C\\u000D\\u0020\\u00A0\\u1680\\u2000\\u2001\\u2002' +\n '\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF';\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar toString = require('../internals/to-string');\nvar whitespaces = require('../internals/whitespaces');\n\nvar replace = uncurryThis(''.replace);\nvar ltrim = RegExp('^[' + whitespaces + ']+');\nvar rtrim = RegExp('(^|[^' + whitespaces + '])[' + whitespaces + ']+$');\n\n// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation\nvar createMethod = function (TYPE) {\n return function ($this) {\n var string = toString(requireObjectCoercible($this));\n if (TYPE & 1) string = replace(string, ltrim, '');\n if (TYPE & 2) string = replace(string, rtrim, '$1');\n return string;\n };\n};\n\nmodule.exports = {\n // `String.prototype.{ trimLeft, trimStart }` methods\n // https://tc39.es/ecma262/#sec-string.prototype.trimstart\n start: createMethod(1),\n // `String.prototype.{ trimRight, trimEnd }` methods\n // https://tc39.es/ecma262/#sec-string.prototype.trimend\n end: createMethod(2),\n // `String.prototype.trim` method\n // https://tc39.es/ecma262/#sec-string.prototype.trim\n trim: createMethod(3)\n};\n","var PROPER_FUNCTION_NAME = require('../internals/function-name').PROPER;\nvar fails = require('../internals/fails');\nvar whitespaces = require('../internals/whitespaces');\n\nvar non = '\\u200B\\u0085\\u180E';\n\n// check that a method works with the correct list\n// of whitespaces and has a correct name\nmodule.exports = function (METHOD_NAME) {\n return fails(function () {\n return !!whitespaces[METHOD_NAME]()\n || non[METHOD_NAME]() !== non\n || (PROPER_FUNCTION_NAME && whitespaces[METHOD_NAME].name !== METHOD_NAME);\n });\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar $trim = require('../internals/string-trim').trim;\nvar forcedStringTrimMethod = require('../internals/string-trim-forced');\n\n// `String.prototype.trim` method\n// https://tc39.es/ecma262/#sec-string.prototype.trim\n$({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {\n trim: function trim() {\n return $trim(this);\n }\n});\n","var call = require('../internals/function-call');\nvar hasOwn = require('../internals/has-own-property');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar regExpFlags = require('../internals/regexp-flags');\n\nvar RegExpPrototype = RegExp.prototype;\n\nmodule.exports = function (R) {\n var flags = R.flags;\n return flags === undefined && !('flags' in RegExpPrototype) && !hasOwn(R, 'flags') && isPrototypeOf(RegExpPrototype, R)\n ? call(regExpFlags, R) : flags;\n};\n","'use strict';\nvar PROPER_FUNCTION_NAME = require('../internals/function-name').PROPER;\nvar defineBuiltIn = require('../internals/define-built-in');\nvar anObject = require('../internals/an-object');\nvar $toString = require('../internals/to-string');\nvar fails = require('../internals/fails');\nvar getRegExpFlags = require('../internals/regexp-get-flags');\n\nvar TO_STRING = 'toString';\nvar RegExpPrototype = RegExp.prototype;\nvar nativeToString = RegExpPrototype[TO_STRING];\n\nvar NOT_GENERIC = fails(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });\n// FF44- RegExp#toString has a wrong name\nvar INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name != TO_STRING;\n\n// `RegExp.prototype.toString` method\n// https://tc39.es/ecma262/#sec-regexp.prototype.tostring\nif (NOT_GENERIC || INCORRECT_NAME) {\n defineBuiltIn(RegExp.prototype, TO_STRING, function toString() {\n var R = anObject(this);\n var pattern = $toString(R.source);\n var flags = $toString(getRegExpFlags(R));\n return '/' + pattern + '/' + flags;\n }, { unsafe: true });\n}\n","/**\n * The SavedData functions use localStorage and sessionStorage, with a cookie fallback.\n *\n * @class SavedData\n */\nexport class SavedData {\n\n /**\n * Constructor for IndexedDB work\n */\n constructor(dbName = '') {\n this.db = null;\n this.dbName = dbName;\n }\n /**\n * Remove a saved variable by name.\n * @method remove\n * @static\n * @param {String} name The name of the value to remove\n */\n static remove(name) {\n localStorage.removeItem(name);\n sessionStorage.removeItem(name);\n }\n\n /**\n * Save a variable.\n * @method write\n * @static\n * @param {string} name The name of the value to save\n * @param {string} value The value to save. This will be run through JSON.stringify().\n * @param {boolean} [tempOnly=false] If the value should be saved only in the current browser session.\n */\n static write(name, value, tempOnly = false) {\n\n return tempOnly\n ? sessionStorage.setItem(\n name,\n JSON.stringify('function' === typeof value ? value() : value)\n )\n : localStorage.setItem(\n name,\n JSON.stringify('function' === typeof value ? value() : value)\n );\n }\n\n /**\n * Read the value of a saved variable\n * @method read\n * @static\n * @param {String} name The name of the variable\n * @return {*} The value (run through `JSON.parse()`) or null if it doesn't exist\n */\n static read(name) {\n const value = localStorage.getItem(name) || sessionStorage.getItem(name);\n\n if ('string' === typeof value) {\n try {\n return JSON.parse(value);\n } catch (err) {\n return value;\n }\n } else {\n return value;\n }\n }\n\n /**\n * Open a connection with the IDB Database and optionally add or delete\n * Indexes and stores\n *\n * @param {string} dbName The name of your IndexedDB database\n * @param {string} dbVersion The version number of the database. Additions and deletions will be ignored if lower than current version number\n * @param {JSON} additions Any additions to the structure of the database\n * @param {array} additions.stores Any stores to be added into the database syntax: {storeName: '[name]', options: {[optionally add options]}}\n * @param {array} additions.indexes Any Indexes to be added to the database syntax: {storeName: '[name]', options: {[optionally add options]}}\n */\n IDBOpen( dbName, dbVersion = null, additions = {}, deletions = {}, callback ) {\n const request = dbVersion ? indexedDB.open(dbName, dbVersion) : indexedDB.open(dbName);\n\n request.onsuccess = e => {\n // Database successfully opened. This will run along with onupgradeneeded\n this.db = e.target.result;\n\n if (this.db.version == dbVersion | dbVersion == null) {\n callback({result: 'Success: IDBOpen', success: true});\n }\n };\n\n request.onerror = () => {\n callback({result: request.error.toString(), success: false});\n };\n\n // on upgrade needed fires only if the dbVersion is higher than the current version number\n request.onupgradeneeded = e => {\n // Ensure the proper database object is stored\n this.db = e.target.result;\n\n if (additions != null) {\n if (additions.stores) {\n additions.stores.forEach(store => {\n this.db.createObjectStore(store.storeName, store.options);\n });\n }\n if (additions.indexes != null) {\n additions.indexes.forEach(index => {\n // Add indexes last to avoid adding an index to a store that has yet to be created\n // Open a transaction returning a store object\n const storeObject = request.transaction.objectStore(index.storeName);\n storeObject.createIndex(index.indexName, index.keyPath, index.options);\n });\n }\n }\n\n if (deletions != null) {\n if (deletions.indexes != null) {\n // delete indexes first to avoid deleting an index to a store that has already to been deleted\n deletions.indexes.forEach((index) => {\n // Open a transaction returning a store object\n const storeObject = request.transaction.objectStore(index.storeName);\n storeObject.deleteIndex(index.indexName);\n });\n }\n if (deletions.stores) {\n deletions.stores.forEach((store) => {\n this.db.deleteObjectStore(store.storeName);\n });\n }\n }\n callback({result: 'Success: IDBOpen onupgradeneeded ran', success: true});\n };\n }\n\n /**\n * Delete a database and all records, stores, and indexes associated\n * @param {string} dbName Name of the database to delete\n * @param {object} options Optionally pass in options\n * @param {function} callback The callback to be run on success or error. One value will be passed into this function\n */\n IDBDeleteDB(dbName, options = null, callback = {}) {\n const request = options != null ? indexedDB.deleteDatabase(dbName, options): indexedDB.deleteDatabase(dbName);\n\n request.onsuccess = (e) => {\n callback({result: 'Success: Database Deleted, returned: ' + e.result, success: true});\n };\n request.onerror = () => {\n callback({result: request.error.toString(), success: false});\n };\n\n\n }\n\n /**\n * Add a record to a given store\n * @param {string} storeName The name of the store from which the record will be updated\n * @param {string} key the key of the record to be updated\n * @param {string} value The value for the record with the given key to be updated\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBAdd(storeName, value, key, callback) {\n if ( !this.db && this.dbName != '') {\n this.IDBOpen(this.dbName);\n }\n\n const tx = this.db.transaction(storeName, 'readwrite');\n tx.onerror = () => callback({result: tx.error != null ? tx.error.toString() : 'Aborted: No error given, was the record already added?', success: false});\n tx.onabort = () => callback({result: tx.error != null ? tx.error.toString() : 'Aborted: No error given, was the record already added?', success: false});\n\n tx.oncomplete = () => callback({result: 'Success: Record Added', success: true});\n const store = tx.objectStore(storeName);\n store.add(value, key);\n }\n\n /**\n * Update a record in a given store\n * @param {string} storeName The name of the store from which the record will be updated\n * @param {string} key the key of the record to be updated\n * @param {string | object} value The altered object to be updated from the given store\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBUpdate (storeName, key, value, callback) {\n if ( !this.db && this.dbName != '') {\n this.IDBOpen(this.dbName);\n }\n\n const tx = this.db.transaction(storeName, 'readwrite');\n const store = tx.objectStore(storeName);\n\n const updateRequest = store.put(value, key);\n\n updateRequest.onsuccess = () => {\n callback({result: 'Success: Record Updated', success: true});\n };\n\n updateRequest.onerror = () => callback({result: updateRequest.error.toString(), success: false});\n }\n\n /**\n * Delete a given record within a given store\n * @param {string} storeName The name of the store from which the record will be removed\n * @param {string} key the key of the record to be removed\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBRemove(storeName, key, callback) {\n if ( !this.db && this.dbName != '') {\n this.IDBOpen(this.dbName);\n }\n\n const tx = this.db.transaction(storeName, 'readwrite');\n tx.onerror = () => callback({result: this.db.error.toString(), success: false});\n const store = tx.objectStore(storeName);\n store.delete(key);\n\n tx.oncomplete = () => callback({result: 'Removed Successfully', success: true});\n\n }\n\n /**\n * Return a record from a given store with a given key\n * @param {string} storeName the name of the store to read from\n * @param {string} key The key for the record in the given store\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBRead(storeName, key, callback) {\n // Open transaction with a store\n const tx = this.db.transaction(storeName, 'readonly');\n // Get the store object from the transaction\n const store = tx.objectStore(storeName);\n\n tx.onerror = () => callback({result: this.db.error.toString(), success: false});\n\n const readRequest = store.get(key);\n\n readRequest.onsuccess = () => {\n callback({result: readRequest.result, success: readRequest.result != undefined ? true : false});\n };\n\n }\n\n /**\n * Get all keys with given index\n * @param {string} storeName the name of the store to be read from\n * @param {string} indexName the name of the index to be read from\n * @param {string} query Optionally give a keyRange of records to return\n * @param {string} count Optionally give a max limit on records to be returned\n * @param {function} callback The method to call on success or failure. A single value will be passed in as a parameter\n */\n IDBGetIndexKeys (storeName, indexName, query = null, count = null, callback = {}) {\n // Open transaction with a store\n const tx = this.db.transaction(storeName, 'readonly');\n // Get the store object from the transaction\n const store = tx.objectStore(storeName);\n\n let index;\n\n tx.onerror = () => callback({result: this.db.error.toString(), success: false});\n\n if (query && count) {\n index = store.index(indexName, query, count);\n } else if (query) {\n index = store.index(indexName, query);\n } else {\n index = store.index(indexName);\n }\n\n const getAllKeysRequest = index.getAllKeys();\n\n\n getAllKeysRequest.onsuccess = function(e) {\n callback({result : e.result, success: true});\n };\n }\n\n /**\n * Get all records from a store\n * @param {string} storeName The store to get all records from\n * @param {integer} count Optionally the count of records to return\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBReadAll(storeName, count, callback) {\n // Open transaction with a store\n const tx = this.db.transaction(storeName, 'readonly');\n // Get the store object from the transaction\n const store = tx.objectStore(storeName);\n\n const readRequest = count != null ? store.getAll(null, count) : store.getAll();\n\n // const readRequest = store.getAll();\n\n tx.onerror = () => callback({result: tx.error.toString(), success: false});\n\n\n readRequest.onsuccess = () => {\n callback({result: readRequest.result, success: readRequest.result != undefined ? true : false});\n };\n }\n\n /**\n * Get the version number of a given database. This will create a database if it doesn't exist.\n * Do not call this after opening a connection with the database\n * @param {string} dbName The name of the database for which the version will be returned\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBGetVersion(dbName, callback) {\n // Open the database\n const dBOpenRequest = window.indexedDB.open(dbName);\n\n // these two event handlers act on the database\n // being opened. successfully, or not\n dBOpenRequest.onerror = function() {\n callback({result: dBOpenRequest.error.toString(), success: false});\n };\n\n dBOpenRequest.onsuccess = function() {\n const db = dBOpenRequest.result;\n callback({result: db.version, success: true});\n };\n }\n\n /**\n * Closes the connection to the database if open\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBClose(callback) {\n if ( this.db ) {\n this.db.close();\n callback({result: 'Success: Closed Database Connection', success: true});\n }\n }\n\n}\n","/* eslint-disable no-unused-vars */\nimport { SavedData } from '../SavedData';\nimport { Container } from '../Container';\n\n/**\n *\n *\n * @export\n * @class BasePlugin\n * @property {Bellhop} client\n * @property {string} name\n */\nexport class BasePlugin {\n /**\n *Creates an instance of BasePlugin.\n * @param {string} name\n * @memberof BasePlugin\n */\n constructor(name) {\n this.name = name;\n this.client = null;\n }\n\n /**\n *\n * @param {Container} [container]\n * @memberof BasePlugin\n * @returns {Promise}\n */\n async preload({ client }) {\n this.client = client;\n }\n\n /**\n *\n * @memberof BasePlugin\n */\n start() {\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * @param {Container} [_]\n * @memberof BasePlugin\n */\n init(_) { }\n\n /**\n *\n *\n * @param {string} prop\n * @param {any} value\n * @param {Boolean} disableSend\n * @memberof BasePlugin\n */\n sendProperty(prop, value, disableSend = false) {\n SavedData.write(prop, value);\n if (disableSend) { return; }\n this.client.send(prop, value);\n }\n\n\n /**\n *\n * @param {Container} [_]\n * @memberof BasePlugin\n */\n sendAllProperties(_) { }\n\n /**\n *\n * @param {string} warningText\n * @memberof BasePlugin\n */\n warn(warningText) {\n console.warn(`[SpringRollContainer] ${this.name}: ${warningText}`);\n }\n}\n","/* eslint-disable no-unused-vars */\nimport { BasePlugin } from './BasePlugin';\nimport { Container } from '../Container';\n\n/**\n *\n *\n * @export\n * @class ButtonPlugin\n * @extends {BasePlugin}\n */\nexport class ButtonPlugin extends BasePlugin {\n /**\n *Creates an instance of ButtonPlugin.\n * @param {string} name\n *\n * @memberof ButtonPlugin\n */\n constructor(name) {\n super(name);\n this.sendMutes = false;\n }\n\n /**\n * @memberof ButtonPlugin\n * @param {Container} [container]\n */\n init(container) {\n // eslint-disable-line no-unused-vars\n this.sendMutes = true;\n }\n\n /**\n *\n * Applies the disabled class to the provided element\n * @param {HTMLButtonElement | Element} button\n * @memberof ButtonPlugin\n */\n _disableButton(button) {\n if (button instanceof HTMLButtonElement) {\n button.classList.remove('enabled');\n button.classList.add('disabled');\n }\n }\n\n /**\n *\n *\n * @memberof ButtonPlugin\n */\n reset() {\n this.sendMutes = false;\n }\n\n /**\n *\n *\n * @param {string} prop\n * @param {Element} button\n * @param {Boolean} muted\n * @param {Boolean} disableSend\n * @memberof ButtonPlugin\n */\n _setMuteProp(prop, button, muted, disableSend = false) {\n if (Array.isArray(button)) {\n button.forEach(b => this.changeMutedState(b, muted));\n } else {\n this.changeMutedState(button, muted);\n }\n\n this.sendProperty(prop, muted, disableSend);\n }\n\n /**\n *\n *\n * @param {Element} button\n * @param {Boolean} muted\n * @returns\n * @memberof ButtonPlugin\n */\n changeMutedState(button, muted = false) {\n //most times button will be a Button class rather than an HTMLElement\n //But just in case the Button ui-element is not being used\n const htmlButton = button.button ? button.button : button;\n\n if (!(htmlButton instanceof HTMLElement)) {\n return;\n }\n\n htmlButton.classList.remove('unmuted');\n htmlButton.classList.remove('muted');\n htmlButton.classList.add(muted ? 'muted' : 'unmuted');\n }\n}\n","var isObject = require('../internals/is-object');\nvar classof = require('../internals/classof-raw');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar MATCH = wellKnownSymbol('match');\n\n// `IsRegExp` abstract operation\n// https://tc39.es/ecma262/#sec-isregexp\nmodule.exports = function (it) {\n var isRegExp;\n return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof(it) == 'RegExp');\n};\n","var isRegExp = require('../internals/is-regexp');\n\nvar $TypeError = TypeError;\n\nmodule.exports = function (it) {\n if (isRegExp(it)) {\n throw $TypeError(\"The method doesn't accept regular expressions\");\n } return it;\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar MATCH = wellKnownSymbol('match');\n\nmodule.exports = function (METHOD_NAME) {\n var regexp = /./;\n try {\n '/./'[METHOD_NAME](regexp);\n } catch (error1) {\n try {\n regexp[MATCH] = false;\n return '/./'[METHOD_NAME](regexp);\n } catch (error2) { /* empty */ }\n } return false;\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar notARegExp = require('../internals/not-a-regexp');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar toString = require('../internals/to-string');\nvar correctIsRegExpLogic = require('../internals/correct-is-regexp-logic');\n\nvar stringIndexOf = uncurryThis(''.indexOf);\n\n// `String.prototype.includes` method\n// https://tc39.es/ecma262/#sec-string.prototype.includes\n$({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {\n includes: function includes(searchString /* , position = 0 */) {\n return !!~stringIndexOf(\n toString(requireObjectCoercible(this)),\n toString(notARegExp(searchString)),\n arguments.length > 1 ? arguments[1] : undefined\n );\n }\n});\n","var toAbsoluteIndex = require('../internals/to-absolute-index');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar createProperty = require('../internals/create-property');\n\nvar $Array = Array;\nvar max = Math.max;\n\nmodule.exports = function (O, start, end) {\n var length = lengthOfArrayLike(O);\n var k = toAbsoluteIndex(start, length);\n var fin = toAbsoluteIndex(end === undefined ? length : end, length);\n var result = $Array(max(fin - k, 0));\n for (var n = 0; k < fin; k++, n++) createProperty(result, n, O[k]);\n result.length = n;\n return result;\n};\n","/* eslint-disable es/no-object-getownpropertynames -- safe */\nvar classof = require('../internals/classof-raw');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar $getOwnPropertyNames = require('../internals/object-get-own-property-names').f;\nvar arraySlice = require('../internals/array-slice-simple');\n\nvar windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames\n ? Object.getOwnPropertyNames(window) : [];\n\nvar getWindowNames = function (it) {\n try {\n return $getOwnPropertyNames(it);\n } catch (error) {\n return arraySlice(windowNames);\n }\n};\n\n// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\nmodule.exports.f = function getOwnPropertyNames(it) {\n return windowNames && classof(it) == 'Window'\n ? getWindowNames(it)\n : $getOwnPropertyNames(toIndexedObject(it));\n};\n","// FF26- bug: ArrayBuffers are non-extensible, but Object.isExtensible does not report it\nvar fails = require('../internals/fails');\n\nmodule.exports = fails(function () {\n if (typeof ArrayBuffer == 'function') {\n var buffer = new ArrayBuffer(8);\n // eslint-disable-next-line es/no-object-isextensible, es/no-object-defineproperty -- safe\n if (Object.isExtensible(buffer)) Object.defineProperty(buffer, 'a', { value: 8 });\n }\n});\n","var fails = require('../internals/fails');\nvar isObject = require('../internals/is-object');\nvar classof = require('../internals/classof-raw');\nvar ARRAY_BUFFER_NON_EXTENSIBLE = require('../internals/array-buffer-non-extensible');\n\n// eslint-disable-next-line es/no-object-isextensible -- safe\nvar $isExtensible = Object.isExtensible;\nvar FAILS_ON_PRIMITIVES = fails(function () { $isExtensible(1); });\n\n// `Object.isExtensible` method\n// https://tc39.es/ecma262/#sec-object.isextensible\nmodule.exports = (FAILS_ON_PRIMITIVES || ARRAY_BUFFER_NON_EXTENSIBLE) ? function isExtensible(it) {\n if (!isObject(it)) return false;\n if (ARRAY_BUFFER_NON_EXTENSIBLE && classof(it) == 'ArrayBuffer') return false;\n return $isExtensible ? $isExtensible(it) : true;\n} : $isExtensible;\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-object-isextensible, es/no-object-preventextensions -- required for testing\n return Object.isExtensible(Object.preventExtensions({}));\n});\n","var $ = require('../internals/export');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar hiddenKeys = require('../internals/hidden-keys');\nvar isObject = require('../internals/is-object');\nvar hasOwn = require('../internals/has-own-property');\nvar defineProperty = require('../internals/object-define-property').f;\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertyNamesExternalModule = require('../internals/object-get-own-property-names-external');\nvar isExtensible = require('../internals/object-is-extensible');\nvar uid = require('../internals/uid');\nvar FREEZING = require('../internals/freezing');\n\nvar REQUIRED = false;\nvar METADATA = uid('meta');\nvar id = 0;\n\nvar setMetadata = function (it) {\n defineProperty(it, METADATA, { value: {\n objectID: 'O' + id++, // object ID\n weakData: {} // weak collections IDs\n } });\n};\n\nvar fastKey = function (it, create) {\n // return a primitive with prefix\n if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n if (!hasOwn(it, METADATA)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return 'F';\n // not necessary to add metadata\n if (!create) return 'E';\n // add missing metadata\n setMetadata(it);\n // return object ID\n } return it[METADATA].objectID;\n};\n\nvar getWeakData = function (it, create) {\n if (!hasOwn(it, METADATA)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return true;\n // not necessary to add metadata\n if (!create) return false;\n // add missing metadata\n setMetadata(it);\n // return the store of weak collections IDs\n } return it[METADATA].weakData;\n};\n\n// add metadata on freeze-family methods calling\nvar onFreeze = function (it) {\n if (FREEZING && REQUIRED && isExtensible(it) && !hasOwn(it, METADATA)) setMetadata(it);\n return it;\n};\n\nvar enable = function () {\n meta.enable = function () { /* empty */ };\n REQUIRED = true;\n var getOwnPropertyNames = getOwnPropertyNamesModule.f;\n var splice = uncurryThis([].splice);\n var test = {};\n test[METADATA] = 1;\n\n // prevent exposing of metadata key\n if (getOwnPropertyNames(test).length) {\n getOwnPropertyNamesModule.f = function (it) {\n var result = getOwnPropertyNames(it);\n for (var i = 0, length = result.length; i < length; i++) {\n if (result[i] === METADATA) {\n splice(result, i, 1);\n break;\n }\n } return result;\n };\n\n $({ target: 'Object', stat: true, forced: true }, {\n getOwnPropertyNames: getOwnPropertyNamesExternalModule.f\n });\n }\n};\n\nvar meta = module.exports = {\n enable: enable,\n fastKey: fastKey,\n getWeakData: getWeakData,\n onFreeze: onFreeze\n};\n\nhiddenKeys[METADATA] = true;\n","var isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\n\n// makes subclassing work correct for wrapped built-ins\nmodule.exports = function ($this, dummy, Wrapper) {\n var NewTarget, NewTargetPrototype;\n if (\n // it can work only with native `setPrototypeOf`\n setPrototypeOf &&\n // we haven't completely correct pre-ES6 way for getting `new.target`, so use this\n isCallable(NewTarget = dummy.constructor) &&\n NewTarget !== Wrapper &&\n isObject(NewTargetPrototype = NewTarget.prototype) &&\n NewTargetPrototype !== Wrapper.prototype\n ) setPrototypeOf($this, NewTargetPrototype);\n return $this;\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar global = require('../internals/global');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar isForced = require('../internals/is-forced');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar InternalMetadataModule = require('../internals/internal-metadata');\nvar iterate = require('../internals/iterate');\nvar anInstance = require('../internals/an-instance');\nvar isCallable = require('../internals/is-callable');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar isObject = require('../internals/is-object');\nvar fails = require('../internals/fails');\nvar checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar inheritIfRequired = require('../internals/inherit-if-required');\n\nmodule.exports = function (CONSTRUCTOR_NAME, wrapper, common) {\n var IS_MAP = CONSTRUCTOR_NAME.indexOf('Map') !== -1;\n var IS_WEAK = CONSTRUCTOR_NAME.indexOf('Weak') !== -1;\n var ADDER = IS_MAP ? 'set' : 'add';\n var NativeConstructor = global[CONSTRUCTOR_NAME];\n var NativePrototype = NativeConstructor && NativeConstructor.prototype;\n var Constructor = NativeConstructor;\n var exported = {};\n\n var fixMethod = function (KEY) {\n var uncurriedNativeMethod = uncurryThis(NativePrototype[KEY]);\n defineBuiltIn(NativePrototype, KEY,\n KEY == 'add' ? function add(value) {\n uncurriedNativeMethod(this, value === 0 ? 0 : value);\n return this;\n } : KEY == 'delete' ? function (key) {\n return IS_WEAK && !isObject(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);\n } : KEY == 'get' ? function get(key) {\n return IS_WEAK && !isObject(key) ? undefined : uncurriedNativeMethod(this, key === 0 ? 0 : key);\n } : KEY == 'has' ? function has(key) {\n return IS_WEAK && !isObject(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);\n } : function set(key, value) {\n uncurriedNativeMethod(this, key === 0 ? 0 : key, value);\n return this;\n }\n );\n };\n\n var REPLACE = isForced(\n CONSTRUCTOR_NAME,\n !isCallable(NativeConstructor) || !(IS_WEAK || NativePrototype.forEach && !fails(function () {\n new NativeConstructor().entries().next();\n }))\n );\n\n if (REPLACE) {\n // create collection constructor\n Constructor = common.getConstructor(wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER);\n InternalMetadataModule.enable();\n } else if (isForced(CONSTRUCTOR_NAME, true)) {\n var instance = new Constructor();\n // early implementations not supports chaining\n var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance;\n // V8 ~ Chromium 40- weak-collections throws on primitives, but should return false\n var THROWS_ON_PRIMITIVES = fails(function () { instance.has(1); });\n // most early implementations doesn't supports iterables, most modern - not close it correctly\n // eslint-disable-next-line no-new -- required for testing\n var ACCEPT_ITERABLES = checkCorrectnessOfIteration(function (iterable) { new NativeConstructor(iterable); });\n // for early implementations -0 and +0 not the same\n var BUGGY_ZERO = !IS_WEAK && fails(function () {\n // V8 ~ Chromium 42- fails only with 5+ elements\n var $instance = new NativeConstructor();\n var index = 5;\n while (index--) $instance[ADDER](index, index);\n return !$instance.has(-0);\n });\n\n if (!ACCEPT_ITERABLES) {\n Constructor = wrapper(function (dummy, iterable) {\n anInstance(dummy, NativePrototype);\n var that = inheritIfRequired(new NativeConstructor(), dummy, Constructor);\n if (!isNullOrUndefined(iterable)) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });\n return that;\n });\n Constructor.prototype = NativePrototype;\n NativePrototype.constructor = Constructor;\n }\n\n if (THROWS_ON_PRIMITIVES || BUGGY_ZERO) {\n fixMethod('delete');\n fixMethod('has');\n IS_MAP && fixMethod('get');\n }\n\n if (BUGGY_ZERO || HASNT_CHAINING) fixMethod(ADDER);\n\n // weak collections should not contains .clear method\n if (IS_WEAK && NativePrototype.clear) delete NativePrototype.clear;\n }\n\n exported[CONSTRUCTOR_NAME] = Constructor;\n $({ global: true, constructor: true, forced: Constructor != NativeConstructor }, exported);\n\n setToStringTag(Constructor, CONSTRUCTOR_NAME);\n\n if (!IS_WEAK) common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP);\n\n return Constructor;\n};\n","var defineBuiltIn = require('../internals/define-built-in');\n\nmodule.exports = function (target, src, options) {\n for (var key in src) defineBuiltIn(target, key, src[key], options);\n return target;\n};\n","'use strict';\nvar create = require('../internals/object-create');\nvar defineBuiltInAccessor = require('../internals/define-built-in-accessor');\nvar defineBuiltIns = require('../internals/define-built-ins');\nvar bind = require('../internals/function-bind-context');\nvar anInstance = require('../internals/an-instance');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar iterate = require('../internals/iterate');\nvar defineIterator = require('../internals/iterator-define');\nvar createIterResultObject = require('../internals/create-iter-result-object');\nvar setSpecies = require('../internals/set-species');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar fastKey = require('../internals/internal-metadata').fastKey;\nvar InternalStateModule = require('../internals/internal-state');\n\nvar setInternalState = InternalStateModule.set;\nvar internalStateGetterFor = InternalStateModule.getterFor;\n\nmodule.exports = {\n getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {\n var Constructor = wrapper(function (that, iterable) {\n anInstance(that, Prototype);\n setInternalState(that, {\n type: CONSTRUCTOR_NAME,\n index: create(null),\n first: undefined,\n last: undefined,\n size: 0\n });\n if (!DESCRIPTORS) that.size = 0;\n if (!isNullOrUndefined(iterable)) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });\n });\n\n var Prototype = Constructor.prototype;\n\n var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);\n\n var define = function (that, key, value) {\n var state = getInternalState(that);\n var entry = getEntry(that, key);\n var previous, index;\n // change existing entry\n if (entry) {\n entry.value = value;\n // create new entry\n } else {\n state.last = entry = {\n index: index = fastKey(key, true),\n key: key,\n value: value,\n previous: previous = state.last,\n next: undefined,\n removed: false\n };\n if (!state.first) state.first = entry;\n if (previous) previous.next = entry;\n if (DESCRIPTORS) state.size++;\n else that.size++;\n // add to index\n if (index !== 'F') state.index[index] = entry;\n } return that;\n };\n\n var getEntry = function (that, key) {\n var state = getInternalState(that);\n // fast case\n var index = fastKey(key);\n var entry;\n if (index !== 'F') return state.index[index];\n // frozen object case\n for (entry = state.first; entry; entry = entry.next) {\n if (entry.key == key) return entry;\n }\n };\n\n defineBuiltIns(Prototype, {\n // `{ Map, Set }.prototype.clear()` methods\n // https://tc39.es/ecma262/#sec-map.prototype.clear\n // https://tc39.es/ecma262/#sec-set.prototype.clear\n clear: function clear() {\n var that = this;\n var state = getInternalState(that);\n var data = state.index;\n var entry = state.first;\n while (entry) {\n entry.removed = true;\n if (entry.previous) entry.previous = entry.previous.next = undefined;\n delete data[entry.index];\n entry = entry.next;\n }\n state.first = state.last = undefined;\n if (DESCRIPTORS) state.size = 0;\n else that.size = 0;\n },\n // `{ Map, Set }.prototype.delete(key)` methods\n // https://tc39.es/ecma262/#sec-map.prototype.delete\n // https://tc39.es/ecma262/#sec-set.prototype.delete\n 'delete': function (key) {\n var that = this;\n var state = getInternalState(that);\n var entry = getEntry(that, key);\n if (entry) {\n var next = entry.next;\n var prev = entry.previous;\n delete state.index[entry.index];\n entry.removed = true;\n if (prev) prev.next = next;\n if (next) next.previous = prev;\n if (state.first == entry) state.first = next;\n if (state.last == entry) state.last = prev;\n if (DESCRIPTORS) state.size--;\n else that.size--;\n } return !!entry;\n },\n // `{ Map, Set }.prototype.forEach(callbackfn, thisArg = undefined)` methods\n // https://tc39.es/ecma262/#sec-map.prototype.foreach\n // https://tc39.es/ecma262/#sec-set.prototype.foreach\n forEach: function forEach(callbackfn /* , that = undefined */) {\n var state = getInternalState(this);\n var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n var entry;\n while (entry = entry ? entry.next : state.first) {\n boundFunction(entry.value, entry.key, this);\n // revert to the last existing entry\n while (entry && entry.removed) entry = entry.previous;\n }\n },\n // `{ Map, Set}.prototype.has(key)` methods\n // https://tc39.es/ecma262/#sec-map.prototype.has\n // https://tc39.es/ecma262/#sec-set.prototype.has\n has: function has(key) {\n return !!getEntry(this, key);\n }\n });\n\n defineBuiltIns(Prototype, IS_MAP ? {\n // `Map.prototype.get(key)` method\n // https://tc39.es/ecma262/#sec-map.prototype.get\n get: function get(key) {\n var entry = getEntry(this, key);\n return entry && entry.value;\n },\n // `Map.prototype.set(key, value)` method\n // https://tc39.es/ecma262/#sec-map.prototype.set\n set: function set(key, value) {\n return define(this, key === 0 ? 0 : key, value);\n }\n } : {\n // `Set.prototype.add(value)` method\n // https://tc39.es/ecma262/#sec-set.prototype.add\n add: function add(value) {\n return define(this, value = value === 0 ? 0 : value, value);\n }\n });\n if (DESCRIPTORS) defineBuiltInAccessor(Prototype, 'size', {\n configurable: true,\n get: function () {\n return getInternalState(this).size;\n }\n });\n return Constructor;\n },\n setStrong: function (Constructor, CONSTRUCTOR_NAME, IS_MAP) {\n var ITERATOR_NAME = CONSTRUCTOR_NAME + ' Iterator';\n var getInternalCollectionState = internalStateGetterFor(CONSTRUCTOR_NAME);\n var getInternalIteratorState = internalStateGetterFor(ITERATOR_NAME);\n // `{ Map, Set }.prototype.{ keys, values, entries, @@iterator }()` methods\n // https://tc39.es/ecma262/#sec-map.prototype.entries\n // https://tc39.es/ecma262/#sec-map.prototype.keys\n // https://tc39.es/ecma262/#sec-map.prototype.values\n // https://tc39.es/ecma262/#sec-map.prototype-@@iterator\n // https://tc39.es/ecma262/#sec-set.prototype.entries\n // https://tc39.es/ecma262/#sec-set.prototype.keys\n // https://tc39.es/ecma262/#sec-set.prototype.values\n // https://tc39.es/ecma262/#sec-set.prototype-@@iterator\n defineIterator(Constructor, CONSTRUCTOR_NAME, function (iterated, kind) {\n setInternalState(this, {\n type: ITERATOR_NAME,\n target: iterated,\n state: getInternalCollectionState(iterated),\n kind: kind,\n last: undefined\n });\n }, function () {\n var state = getInternalIteratorState(this);\n var kind = state.kind;\n var entry = state.last;\n // revert to the last existing entry\n while (entry && entry.removed) entry = entry.previous;\n // get next entry\n if (!state.target || !(state.last = entry = entry ? entry.next : state.state.first)) {\n // or finish the iteration\n state.target = undefined;\n return createIterResultObject(undefined, true);\n }\n // return step by kind\n if (kind == 'keys') return createIterResultObject(entry.key, false);\n if (kind == 'values') return createIterResultObject(entry.value, false);\n return createIterResultObject([entry.key, entry.value], false);\n }, IS_MAP ? 'entries' : 'values', !IS_MAP, true);\n\n // `{ Map, Set }.prototype[@@species]` accessors\n // https://tc39.es/ecma262/#sec-get-map-@@species\n // https://tc39.es/ecma262/#sec-get-set-@@species\n setSpecies(CONSTRUCTOR_NAME);\n }\n};\n","'use strict';\nvar collection = require('../internals/collection');\nvar collectionStrong = require('../internals/collection-strong');\n\n// `Set` constructor\n// https://tc39.es/ecma262/#sec-set-objects\ncollection('Set', function (init) {\n return function Set() { return init(this, arguments.length ? arguments[0] : undefined); };\n}, collectionStrong);\n","var $ = require('../internals/export');\nvar toObject = require('../internals/to-object');\nvar nativeKeys = require('../internals/object-keys');\nvar fails = require('../internals/fails');\n\nvar FAILS_ON_PRIMITIVES = fails(function () { nativeKeys(1); });\n\n// `Object.keys` method\n// https://tc39.es/ecma262/#sec-object.keys\n$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {\n keys: function keys(it) {\n return nativeKeys(toObject(it));\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar $map = require('../internals/array-iteration').map;\nvar arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');\n\nvar HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('map');\n\n// `Array.prototype.map` method\n// https://tc39.es/ecma262/#sec-array.prototype.map\n// with adding support of @@species\n$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {\n map: function map(callbackfn /* , thisArg */) {\n return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n","var DESCRIPTORS = require('../internals/descriptors');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar objectKeys = require('../internals/object-keys');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar $propertyIsEnumerable = require('../internals/object-property-is-enumerable').f;\n\nvar propertyIsEnumerable = uncurryThis($propertyIsEnumerable);\nvar push = uncurryThis([].push);\n\n// `Object.{ entries, values }` methods implementation\nvar createMethod = function (TO_ENTRIES) {\n return function (it) {\n var O = toIndexedObject(it);\n var keys = objectKeys(O);\n var length = keys.length;\n var i = 0;\n var result = [];\n var key;\n while (length > i) {\n key = keys[i++];\n if (!DESCRIPTORS || propertyIsEnumerable(O, key)) {\n push(result, TO_ENTRIES ? [key, O[key]] : O[key]);\n }\n }\n return result;\n };\n};\n\nmodule.exports = {\n // `Object.entries` method\n // https://tc39.es/ecma262/#sec-object.entries\n entries: createMethod(true),\n // `Object.values` method\n // https://tc39.es/ecma262/#sec-object.values\n values: createMethod(false)\n};\n","var $ = require('../internals/export');\nvar $values = require('../internals/object-to-array').values;\n\n// `Object.values` method\n// https://tc39.es/ecma262/#sec-object.values\n$({ target: 'Object', stat: true }, {\n values: function values(O) {\n return $values(O);\n }\n});\n","import { BasePlugin } from '../base-plugins/BasePlugin';\n\n/**\n * @export\n * @class RadioGroup\n * @property {string} controlName\n * @property {string} featureName\n * @property {string} radioElements\n * @property {string} defaultValue\n */\nexport class RadioGroup extends BasePlugin {\n /**\n * creates an instance of RadioGroup\n * @constructor\n * @param {string} selector selector string for the radio group\n * @param {string} controlName the name of the control (used for warning logging only)\n * @param {string} [featureName='captionStyles'] the feature name used by Springroll. Defaults to captionStyles\n * @param {string} defaultValue the value attribute of the radio button that should be selected by default\n * @param {string} pluginName name of the plugin that instantiated the RadioGroup. Used for logging warnings\n * @memberof RadioGroupPlugin\n */\n constructor({selector, controlName, featureName = 'captionStyles', defaultValue, pluginName}) {\n super(pluginName);\n this.controlName = controlName;\n this.featureName = featureName;\n this.radioElements = document.querySelectorAll(selector);\n this.defaultValue = defaultValue;\n\n this.radioGroup = {};\n\n if (this.radioElements.length <= 0) {\n this.warn(`${this.controlName} RadioGroup found no HTMLElements with selector: ${selector}`);\n return;\n }\n\n this.radioElements.forEach(radio => {\n if (radio.type !== 'radio') {\n this.warn(`${this.controlName} was provided a non Radio Button element with selector: ${selector}`);\n return;\n }\n radio.value = radio.value.toLowerCase();\n\n this.radioGroup[radio.value] = radio;\n });\n\n if (!this.radioGroup[this.defaultValue]) {\n this.warn(`${this.controlName} RadioGroup for selector: ${selector} does not have a radio button with value ${this.defaultValue} to use as default value. Using first element as default`);\n this.defaultValue = this.radioElements[0].value.toLowerCase();\n }\n\n this.radioGroup[this.defaultValue].checked = true;\n }\n\n /**\n * @param {string[]} valuesArray Array of acceptable values to check against the radio group.\n * @return {boolean}\n * @memberof RadioGroup\n */\n hasOnly(valuesArray) {\n\n for (const key in this.radioGroup) {\n if (!valuesArray.includes(this.radioGroup[key].value)) {\n this.warn(`${this.controlName} radio button value: ${this.radioGroup[key].value} is not an accepted value. Skipping radio group`);\n return false;\n }\n }\n\n return true;\n }\n\n /**\n * @return {boolean}\n * @memberof RadioGroup\n */\n hasDuplicateValues() {\n return this.values.length !== [...new Set(this.values)].length;\n }\n\n /**\n * Adds change listeners to the radio buttons using the given callback function\n * @memberof RadioGroup\n * @param {Function} callBack event to fire on change\n */\n enableRadioEvents(callBack) {\n if (!this.radioGroup.length <= 0) {\n return;\n }\n\n const event = callBack;\n for (const radio in this.radioGroup) {\n this.radioGroup[radio].addEventListener('change', event);\n }\n }\n\n /**\n * removes the event listeners from the RadioGroup\n * @memberof RadioGroup\n * @param {Function} callBack event to fire on change\n */\n disableRadioEvents(callBack) {\n if (!this.radioGroup.length <= 0) {\n return;\n }\n for (const radio in this.radioGroup) {\n this.radioGroup[radio].removeEventListener('change', callBack);\n }\n }\n\n /**\n * enables display of the Radio buttons if the correct feature is present in the features list\n * @memberof RadioGroup\n * @param {object} data Object containing which features are enabled\n */\n displayRadios(data) {\n if (this.radioGroup.length <= 0 && data[this.featureName]) {\n this.warn(`${this.controlName} was not provided a valid input element or selector but '${this.featureName}' was included as a game feature`);\n return;\n }\n\n if (this.radioGroup.length <= 0) {\n return;\n }\n\n if (data[this.featureName]) {\n return;\n }\n\n for (const radio in this.radioGroup) {\n this.radioGroup[radio].style.display = 'none';\n }\n }\n\n /**\n * Reset the radio button states\n * @memberof RadioGroup\n */\n resetState() {\n this.radioGroup[this.defaultValue].checked = true;\n }\n\n /**\n * @readonly\n * @returns {number}\n * @memberof RadioGroup\n */\n get length() {\n return Object.keys(this.radioGroup).length;\n }\n\n /**\n * @readonly\n * @returns {number}\n * @memberof RadioGroup\n */\n get values() {\n return Object.values(this.radioGroup).map(radio => radio.value);\n }\n}\n","import { BasePlugin } from './BasePlugin';\nimport { RadioGroup } from '../ui-elements/RadioGroup';\n\n/**\n *\n *\n * @export\n * @class RadioGroupPlugin\n */\nexport class RadioGroupPlugin extends BasePlugin {\n /**\n *\n *Creates an instance of RadioGroupPlugin.\n * @constructor\n * @memberof RadioGroupPlugin\n * @param {string} name\n */\n constructor(cssSelector, name, {supportedValues, initialValue, controlName, featureName, radioCount}) {\n super(name);\n this.selectors = cssSelector ? cssSelector.split(',') : [];\n this.supportedValues = supportedValues;\n this.initialValue = supportedValues.includes(initialValue) ? initialValue : supportedValues[0];\n this.controlName = controlName;\n this.featureName = featureName;\n this.radioCount = radioCount;\n this.sendAllProperties = this.sendAllProperties.bind(this);\n\n this._currentValue = this.initialValue;\n\n this.radioGroups = this.setUpRadios(this.selectors);\n\n this.radioGroupsLength = this.radioGroups.length;\n }\n\n /**\n * @memberof RadioGroupPlugin\n * @param {string[]} selectors the separated selector strings used to target the radio button groups\n * @returns {RadioGroup[]}\n */\n setUpRadios(selectors) {\n const radioGroups = [];\n\n selectors.forEach((selector) => {\n const radioGroup = new RadioGroup({\n selector: selector.trim(),\n controlName: this.controlName,\n defaultValue: this.initialValue,\n pluginName: this.name,\n featureName: this.featureName\n });\n\n if (radioGroup.length !== this.radioCount) {\n this.warn(`Selector \"${selector}\" did not find exactly ${this.radioCount} radio buttons for ${this.controlName}. Skipping selector`);\n return;\n }\n\n if (!radioGroup.hasOnly(this.supportedValues)) {\n return;\n }\n\n if (radioGroup.hasDuplicateValues()) {\n this.warn(`Duplicate radio button values detected (values: ${radioGroup.values} ). Skipping radio group`);\n return;\n }\n\n radioGroups.push(radioGroup);\n });\n\n return radioGroups;\n }\n\n /**\n * @memberof RadioGroupPlugin\n */\n start() {\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * Sends initial caption properties to the application\n * @memberof RadioGroupPlugin\n */\n sendAllProperties() {\n this.sendProperty(this.featureName, this.property);\n }\n\n /**\n * @memberof RadioGroupPlugin\n * @param {string} newValue\n */\n set currentValue(newValue) {\n if (!this.supportedValues.includes(newValue)) {\n return;\n }\n\n this._currentValue = newValue;\n\n for (let i = 0, l = this.radioGroups.length; i < l; i++) {\n this.radioGroups[i].radioGroup[newValue].checked = true;\n }\n }\n\n /**\n * @memberof RadioGroupPlugin\n * @return {string}\n */\n get currentValue() {\n return this._currentValue;\n }\n\n}\n","var uncurryThis = require('../internals/function-uncurry-this');\n\n// `thisNumberValue` abstract operation\n// https://tc39.es/ecma262/#sec-thisnumbervalue\nmodule.exports = uncurryThis(1.0.valueOf);\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar global = require('../internals/global');\nvar path = require('../internals/path');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar isForced = require('../internals/is-forced');\nvar hasOwn = require('../internals/has-own-property');\nvar inheritIfRequired = require('../internals/inherit-if-required');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar isSymbol = require('../internals/is-symbol');\nvar toPrimitive = require('../internals/to-primitive');\nvar fails = require('../internals/fails');\nvar getOwnPropertyNames = require('../internals/object-get-own-property-names').f;\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar defineProperty = require('../internals/object-define-property').f;\nvar thisNumberValue = require('../internals/this-number-value');\nvar trim = require('../internals/string-trim').trim;\n\nvar NUMBER = 'Number';\nvar NativeNumber = global[NUMBER];\nvar PureNumberNamespace = path[NUMBER];\nvar NumberPrototype = NativeNumber.prototype;\nvar TypeError = global.TypeError;\nvar stringSlice = uncurryThis(''.slice);\nvar charCodeAt = uncurryThis(''.charCodeAt);\n\n// `ToNumeric` abstract operation\n// https://tc39.es/ecma262/#sec-tonumeric\nvar toNumeric = function (value) {\n var primValue = toPrimitive(value, 'number');\n return typeof primValue == 'bigint' ? primValue : toNumber(primValue);\n};\n\n// `ToNumber` abstract operation\n// https://tc39.es/ecma262/#sec-tonumber\nvar toNumber = function (argument) {\n var it = toPrimitive(argument, 'number');\n var first, third, radix, maxCode, digits, length, index, code;\n if (isSymbol(it)) throw TypeError('Cannot convert a Symbol value to a number');\n if (typeof it == 'string' && it.length > 2) {\n it = trim(it);\n first = charCodeAt(it, 0);\n if (first === 43 || first === 45) {\n third = charCodeAt(it, 2);\n if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix\n } else if (first === 48) {\n switch (charCodeAt(it, 1)) {\n case 66: case 98: radix = 2; maxCode = 49; break; // fast equal of /^0b[01]+$/i\n case 79: case 111: radix = 8; maxCode = 55; break; // fast equal of /^0o[0-7]+$/i\n default: return +it;\n }\n digits = stringSlice(it, 2);\n length = digits.length;\n for (index = 0; index < length; index++) {\n code = charCodeAt(digits, index);\n // parseInt parses a string to a first unavailable symbol\n // but ToNumber should return NaN if a string contains unavailable symbols\n if (code < 48 || code > maxCode) return NaN;\n } return parseInt(digits, radix);\n }\n } return +it;\n};\n\nvar FORCED = isForced(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'));\n\nvar calledWithNew = function (dummy) {\n // includes check on 1..constructor(foo) case\n return isPrototypeOf(NumberPrototype, dummy) && fails(function () { thisNumberValue(dummy); });\n};\n\n// `Number` constructor\n// https://tc39.es/ecma262/#sec-number-constructor\nvar NumberWrapper = function Number(value) {\n var n = arguments.length < 1 ? 0 : NativeNumber(toNumeric(value));\n return calledWithNew(this) ? inheritIfRequired(Object(n), this, NumberWrapper) : n;\n};\n\nNumberWrapper.prototype = NumberPrototype;\nif (FORCED && !IS_PURE) NumberPrototype.constructor = NumberWrapper;\n\n$({ global: true, constructor: true, wrap: true, forced: FORCED }, {\n Number: NumberWrapper\n});\n\n// Use `internal/copy-constructor-properties` helper in `core-js@4`\nvar copyConstructorProperties = function (target, source) {\n for (var keys = DESCRIPTORS ? getOwnPropertyNames(source) : (\n // ES3:\n 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +\n // ES2015 (in case, if modules with ES2015 Number statics required before):\n 'EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,' +\n // ESNext\n 'fromString,range'\n ).split(','), j = 0, key; keys.length > j; j++) {\n if (hasOwn(source, key = keys[j]) && !hasOwn(target, key)) {\n defineProperty(target, key, getOwnPropertyDescriptor(source, key));\n }\n }\n};\n\nif (IS_PURE && PureNumberNamespace) copyConstructorProperties(path[NUMBER], PureNumberNamespace);\nif (FORCED || IS_PURE) copyConstructorProperties(path[NUMBER], NativeNumber);\n","import { SavedData } from '../SavedData';\n\n/**\n * @export\n * @class Slider\n */\nexport class Slider {\n /**\n *Creates an instance of Slider\n * @param {object} params\n * @param {string | HTMLInputElement} params.slider the slider element or a selector string\n * @param {string} params.control the feature that this slider controols\n * @param {number} [min=0] slider min value\n * @param {number} [max=1] slider max value\n * @param {number} [step=0.1] slider step value\n * @param {number} [defaultValue=1] slider starting value\n * @memberof SliderPlugin\n */\n constructor({\n slider,\n control,\n min = 0,\n max = 1,\n step = 0.1,\n defaultValue = 1\n }) {\n this.min = min;\n this.max = max;\n this.step = step;\n this.sliderValue = defaultValue;\n this.control = control;\n this.slider = this.setUpSlider(slider, control);\n }\n\n /**\n * @param {string | HTMLInputElement | HTMLElement} slider\n * @param {string} control The control element (sensitivity, difficulty, pointer size, etc) this slider will be controlling\n * @returns {Element | HTMLElement}\n * @memberof Slider\n */\n setUpSlider(slider, control) {\n if ('string' === typeof slider) {\n slider = document.querySelector(slider);\n }\n\n if (!slider || 'range' !== slider.type) {\n return null;\n }\n const value = SavedData.read(control);\n\n slider.min = this.min;\n slider.max = this.max;\n slider.step = this.step;\n\n if ((value || value === 0) && value.toString().trim().length > 0) {\n slider.value = value;\n this.sliderValue = value;\n } else {\n slider.value = this.sliderValue;\n }\n\n return slider;\n }\n\n /**\n * Controls the range of the slider\n * @param {number} i\n * @returns\n * @memberof Slider\n */\n sliderRange(i) {\n if (i < this.min) {\n return this.min;\n } else if (i > this.max) {\n return this.max;\n } else {\n return i;\n }\n }\n\n /**\n * Adds change and input listeners to the slider using the given callback function\n * @memberof Slider\n * @param {Function} callBack event to fire on change or input\n */\n enableSliderEvents(callBack) {\n if (!this.slider) {\n return;\n }\n\n const event = callBack;\n this.slider.addEventListener('change', event);\n this.slider.addEventListener('input', event);\n }\n\n /**\n * removes the event listeners from the given slider.\n * @memberof Slider\n * @param {Function} callBack event to fire on change or input\n */\n disableSliderEvents(callBack) {\n if (!this.slider) {\n return;\n }\n const event = callBack;\n this.slider.removeEventListener('change', event);\n this.slider.removeEventListener('input', event);\n }\n /**\n * enables display of the Slider if it is present in the features list\n * @memberof Slider\n * @param {object} data Object containing which features are enabled\n */\n displaySlider(data) {\n if (!this.slider && data[this.control]) {\n console.warn(`${this.control} was not provided a valid input element or selector but was included as a game feature`);\n }\n\n if (!this.slider) {\n return;\n }\n\n this.slider.style.display = data[this.control] ? '' : 'none';\n }\n\n /**\n * @param {Event} event the event to be fired on the slider\n * @memberof Slider\n */\n dispatchEvent(event) {\n this.slider.dispatchEvent(event);\n }\n\n /**\n * @readonly\n * @returns {string}\n * @memberof Slider\n */\n get value() {\n return this.slider.value;\n }\n\n /**\n * @memberof Slider\n */\n set value(value) {\n this.slider.value = value;\n }\n}\n","/**\n * @export\n * @class Button\n */\nexport class Button {\n /**\n *Creates an instance of Button\n * @param {object} params\n * @param {string | HTMLElement} params.button the button itself or a selector string\n * @param {Function} params.onClick the function to call when the button is clicked\n * @param {string} channel the feature this button controls\n * @memberof ButtonPlugin\n */\n constructor({ button, onClick, channel }) {\n this.button =\n button instanceof HTMLElement ? button : document.querySelector(button);\n this.onClick = onClick;\n this.channel = channel;\n\n if (this.button) {\n this.button.addEventListener('click', onClick);\n }\n }\n\n /**\n * enables display of the button if it is present in the features list\n * @memberof Button\n * @param {object} data Object containing which features are enabled\n */\n displayButton(data) {\n if (!(this.button instanceof HTMLElement)) {\n return;\n }\n\n this.button.style.display =\n data[this.channel] || this.channel === 'pause' || this.channel === 'hints'\n ? ''\n : 'none';\n }\n\n /**\n * enables display of the button\n * @memberof Button\n */\n enableButton() {\n if (!this.button) {\n return;\n }\n this.button.classList.remove('disabled');\n }\n\n /**\n * \n * @param {string} className The classname to be appended to the end of the class property\n */\n addClass(className) {\n this.button.className = this.button.className ? this.button.className + ` ${ className }` : ` ${ className }`;\n }\n}\n","import { BasePlugin } from './BasePlugin';\nimport { Slider } from '../ui-elements';\n\n/**\n *\n *\n * @export\n * @class SliderPlugin\n */\nexport class SliderPlugin extends BasePlugin {\n /**\n *\n *Creates an instance of SliderPlugin.\n * @constructor\n * @memberof SliderPlugin\n * @param {string} cssSelector\n * @param {string} name\n * @param {object} options\n * @param {string | number} [options.defaultValue='0.5']\n * @param {string | number} [options.minValue='0']\n * @param {string | number} [options.maxValue='1']\n * @param {string} [options.featureName] Springroll Core feature name that the plugin is supporting\n */\n constructor(cssSelector, name, {defaultValue = '0.5', minValue = '0', maxValue = '1', featureName }) {\n super(name);\n this.featureName = featureName;\n this.minValue = minValue;\n this.defaultValue = defaultValue;\n this.maxValue = maxValue;\n this._currentValue = defaultValue;\n this.sliders = this.setUpSliders(cssSelector);\n this.slidersLength = this.sliders.length;\n this.sendAllProperties = this.sendAllProperties.bind(this);\n\n if (0 >= this.slidersLength) {\n this.warn('Plugin was not provided any valid HTML Elements');\n return;\n }\n }\n\n /**\n * @memberof SliderPlugin\n * @param {string[]} selectors the selector strings used to target the input elements\n * @returns {Slider[]}\n */\n setUpSliders(selectors) {\n const sliders = [];\n\n if (selectors instanceof HTMLElement) {\n sliders.push(new Slider({\n slider: selectors,\n control: this.featureName,\n defaultValue: this.defaultValue,\n minValue: this.minValue,\n maxValue: this.maxValue\n }));\n } else {\n document.querySelectorAll(selectors).forEach((slider) => {\n sliders.push(new Slider({\n slider: slider,\n control: this.featureName,\n defaultValue: this.defaultValue,\n minValue: this.minValue,\n maxValue: this.maxValue\n }));\n });\n }\n\n return sliders;\n }\n\n /**\n * @memberof SliderPlugin\n */\n init() {\n this.client.on(\n 'features',\n function(features) {\n if (!features.data) {\n return;\n }\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].displaySlider(features.data);\n }\n }.bind(this)\n );\n }\n\n /**\n * @memberof SliderPlugin\n */\n start() {\n this._currentValue = this.sliders[0].value; //update current value to the saved data value set in Slider.\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * Sends initial caption properties to the application\n * @memberof SliderPlugin\n */\n sendAllProperties() {\n this.sendProperty(this.featureName, this.currentValue);\n }\n\n /**\n * @memberof SliderPlugin\n * @param {string} newValue\n */\n set currentValue(newValue) {\n\n //just use first slider to ensure the number is valid.\n this._currentValue = this.sliders[0].sliderRange(Number(newValue));\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].value = newValue;\n }\n }\n\n /**\n * @memberof SliderPlugin\n * @return {string}\n */\n get currentValue() {\n return this._currentValue;\n }\n\n}\n","import { SavedData } from '../SavedData';\nimport { ButtonPlugin } from '../base-plugins';\nimport { RadioGroup } from '../ui-elements';\n\nconst DEFAULT_CAPTIONS_STYLES = {\n size: 'medium',\n background: 'black',\n color: 'white',\n edge: 'none',\n font: 'arial',\n align: 'top'\n};\n\nconst DEFAULT_COLOR_STYLE = {color: 'white', background: 'black'};\nconst INVERTED_COLOR_STYLE = {color: 'black', background: 'white'};\nconst FONT_SIZE_VALUES = ['small', 'medium', 'large'];\nconst COLOR_VALUES = ['default', 'inverted'];\nconst ALIGN_VALUES = ['top', 'bottom'];\n\n/**\n * @export\n * @class CaptionsStylePlugin\n * @property {object} captionsStyles The collection of captions styles\n * @property {string[]} fontSizeSelectors selector strings for the radio button groups\n * @property {string[]} colorSelectors selector strings for the radio button groups\n * @property {string[]} alignmentSelectors selector strings for the radio button groups\n * @property {Object[]} fontSizeRadios array that contains each radio group\n * @property {Object[]} colorRadios array that contains each radio group\n * @property {Object[]} alignmentRadios array that contains each radio group\n * @property {number} fontSizeRadiosLength Length of the fontSizeRadios array\n * @property {number} colorRadiosLength Length of the colorRadios array\n * @property {number} alignmentRadiosLength Length of the alignmentRadios array\n * @extends {ButtonPlugin}\n */\nexport class CaptionsStylePlugin extends ButtonPlugin {\n /**\n * Creates an instance of CaptionsStylePlugin.\n * @param {string} fontSizeRadios selector string for one or more radio groups for caption font size\n * @param {string} colorRadios selector string for one or more radio groups for caption font/background colors\n * @param {string} alignmentRadios selector string for one or more radio groups for caption position\n * @param {string} [defaultFontSize='medium'] Default selected font size\n * @param {string} [defaultColor='default'] Default selected color\n * @param {string} [defaultAlignment='top'] Default selected alignment\n * @memberof CaptionsStylePlugin\n */\n constructor(fontSizeRadios, colorRadios, alignmentRadios,\n { defaultFontSize = 'medium', defaultColor = 'default', defaultAlignment = 'top' } = {}\n ) {\n super('Caption-Style-Plugin');\n this.sendAllProperties = this.sendAllProperties.bind(this);\n this.captionsStyles = Object.assign(\n {},\n DEFAULT_CAPTIONS_STYLES,\n SavedData.read(CaptionsStylePlugin.captionStyleKey) || {}\n );\n\n //split the selector strings into individual selectors.\n //Helps keep the input style consistent across plugins.\n this.fontSizeSelectors = fontSizeRadios ? fontSizeRadios.split(',') : [];\n this.colorSelectors = colorRadios ? colorRadios.split(',') : [];\n this.alignmentSelectors = alignmentRadios ? alignmentRadios.split(',') : [];\n\n this.defaultFontSize = FONT_SIZE_VALUES.includes(defaultFontSize) ? defaultFontSize : FONT_SIZE_VALUES[0];\n this.defaultColor = COLOR_VALUES.includes(defaultColor) ? defaultColor : COLOR_VALUES[0];\n this.defaultAlignment = ALIGN_VALUES.includes(defaultAlignment) ? defaultAlignment : ALIGN_VALUES[0];\n\n this.fontSizeRadios = [];\n this.colorRadios = [];\n this.alignmentRadios = [];\n\n this.fontSizeRadios = this.setUpFontSizeRadios(this.fontSizeSelectors);\n this.colorRadios = this.setUpColorRadios(this.colorSelectors);\n this.alignmentRadios = this.setUpAlignmentRadios(this.alignmentSelectors);\n\n this._captionsMuted = false;\n\n this.alignmentRadiosLength = this.alignmentRadios.length;\n this.fontSizeRadiosLength = this.fontSizeRadios.length;\n this.colorRadiosLength = this.colorRadios.length;\n\n if (0 >= (this.alignmentRadiosLength + this.fontSizeRadiosLength + this.colorRadiosLength)) {\n this.warn(\n 'Plugin was not provided any input elements'\n );\n return;\n }\n\n //set up change events\n for (let i = 0; i < this.colorRadiosLength; i++) {\n this.colorRadios[i].enableRadioEvents(this.onColorChange.bind(this));\n }\n for (let i = 0; i < this.alignmentRadiosLength; i++) {\n this.alignmentRadios[i].enableRadioEvents(this.onAlignmentChange.bind(this));\n }\n for (let i = 0; i < this.fontSizeRadiosLength; i++) {\n this.fontSizeRadios[i].enableRadioEvents(this.onFontSizeChange.bind(this));\n }\n }\n\n /**\n * @memberof CaptionsStylePlugin\n * @param {string[]} selectors the separated selector strings used to target the radio button groups\n * @returns {RadioGroup[]}\n */\n setUpFontSizeRadios(selectors) {\n const radioGroups = [];\n\n selectors.forEach((selector) => {\n const radioGroup = new RadioGroup({\n selector: selector.trim(),\n controlName: 'Font Size',\n defaultValue: this.defaultFontSize,\n pluginName: 'Caption-Button-Plugin'\n });\n\n if (radioGroup.length !== 3) {\n this.warn(`Selector \"${selector}\" did not find exactly three(3) radio buttons for caption font size. Skipping selector`);\n return;\n }\n\n if (!radioGroup.hasOnly(FONT_SIZE_VALUES)) {\n return;\n }\n\n if (radioGroup.hasDuplicateValues()) {\n this.warn(`Duplicate radio button values detected (values: ${radioGroup.values} ). Skipping radio group`);\n return;\n }\n\n radioGroups.push(radioGroup);\n });\n\n return radioGroups;\n }\n\n /**\n * @memberof CaptionsStylePlugin\n * @param {string[]} selectors the separated selector strings used to target the radio button groups\n * @returns {RadioGroup[]}\n */\n setUpColorRadios(selectors) {\n const radioGroups = [];\n\n selectors.forEach((selector) => {\n const radioGroup = new RadioGroup({\n selector: selector.trim(),\n controlName: 'Color',\n defaultValue: this.defaultColor,\n pluginName: 'Caption-Button-Plugin'\n });\n\n if (radioGroup.length !== 2) {\n this.warn(`Selector \"${selector}\" did not find exactly two(2) radio buttons for caption colors. Skipping selector`);\n return;\n }\n\n if (!radioGroup.hasOnly(COLOR_VALUES)) {\n return;\n }\n\n if (radioGroup.hasDuplicateValues()) {\n this.warn(`Duplicate radio button values detected (values: ${radioGroup.values} ). Skipping radio group`);\n return;\n }\n\n radioGroups.push(radioGroup);\n });\n\n return radioGroups;\n }\n\n /**\n * @memberof CaptionsStylePlugin\n * @param {string[]} selectors the separated selector strings used to target the radio button groups\n * @returns {RadioGroup[]}\n */\n setUpAlignmentRadios(selectors) {\n const radioGroups = [];\n\n selectors.forEach((selector) => {\n const radioGroup = new RadioGroup({\n selector: selector.trim(),\n controlName: 'Alignment',\n defaultValue: this.defaultAlignment,\n pluginName: 'Caption-Button-Plugin'\n });\n if (radioGroup.length !== 2) {\n this.warn(`Selector \"${selector}\" did not find exactly two(2) radio buttons for caption alignment. Skipping selector`);\n return;\n }\n\n if (!radioGroup.hasOnly(ALIGN_VALUES)) {\n return;\n }\n\n if (radioGroup.hasDuplicateValues()) {\n this.warn(`Duplicate radio button values detected (values: ${radioGroup.values} ). Skipping radio group`);\n return;\n }\n\n radioGroups.push(radioGroup);\n });\n\n return radioGroups;\n }\n\n /**\n * @memberof CaptionsStylePlugin\n */\n init() {\n // Handle the features request\n this.client.on(\n 'features',\n function($event) {\n\n for (const radio of this.radios) {\n radio.displayRadios($event.data);\n }\n\n }.bind(this)\n );\n\n this.client.on(\n 'caption-set-style',\n function($event) {\n this.setCaptionsStyles($event.data || {});\n }.bind(this)\n );\n }\n /**\n * @memberof CaptionsStylePlugin\n */\n start() {\n this.setCaptionsStyles(SavedData.read(CaptionsStylePlugin.captionStyleKey));\n\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * Sends initial caption properties to the application\n * @memberof CaptionsStylePlugin\n */\n sendAllProperties() {\n this.sendProperty(CaptionsStylePlugin.captionStyleKey, this.captionsStyles);\n }\n /**\n * Fired whenever the font size radios are updated\n * @param {Event} e\n * @memberof CaptionsStylePlugin\n */\n onFontSizeChange(e) {\n this.setCaptionsStyles('size', e.target.value);\n }\n\n /**\n * Fired whenever the alignment radios are updated\n * @param {Event} e\n * @memberof CaptionsStylePlugin\n */\n onAlignmentChange(e) {\n this.setCaptionsStyles('align', e.target.value);\n }\n\n /**\n * Fired whenever the color radios are updated\n * @param {Event} e\n * @memberof CaptionsStylePlugin\n */\n onColorChange(e) {\n const styles = e.target.value === 'default' ? DEFAULT_COLOR_STYLE : INVERTED_COLOR_STYLE;\n\n this.setCaptionsStyles(styles);\n }\n\n /**\n * Reset the captions styles\n * @param {Event} e\n * @memberof CaptionsStylePlugin\n */\n clearCaptionsStyles() {\n this.captionsStyles = Object.assign({}, DEFAULT_CAPTIONS_STYLES);\n this.setCaptionsStyles();\n\n for (const radio of this.radios) {\n radio.resetState();\n }\n }\n\n /**\n * Get the captions styles\n * @param {string} [prop] The optional property, values are \"size\", \"edge\", \"font\", \"background\", \"color\"\n * @return {object | string} The collection of styles, see setCaptionsStyles for more info.\n * @memberof CaptionsStylePlugin\n */\n getCaptionsStyles(prop) {\n return prop ? this.captionsStyles[prop] : this.captionsStyles;\n }\n\n /**\n * Set the captions styles\n *\n * @param {object} [styles] The style options or the name of the\n * property (e.g., \"color\", \"edge\", \"font\", \"background\", \"size\")\n * @param {string} [styles.color='white'] The text color, the default is white\n * @param {string} [styles.edge='none'] The edge style, default is none\n * @param {string} [styles.font='arial'] The font style, default is arial\n * @param {string} [styles.background='black'] The background style, black\n * @param {string} [styles.size='md'] The font style default is medium\n * @param {string} [styles.align='top'] The align style default is top of the window\n * @param {string} [value=''] If setting styles parameter as a string, this is the value of the property.\n * @memberof CaptionsStylePlugin\n */\n setCaptionsStyles(styles = DEFAULT_CAPTIONS_STYLES, value = '') {\n if (typeof styles === 'object') {\n Object.assign(this.captionsStyles, styles);\n } else if (typeof styles === 'string') {\n this.captionsStyles[styles] = value;\n }\n\n // update radios to match\n this.colorRadios.forEach((group) => {\n const style = this.captionsStyles.color === 'white' ? 'default' : 'inverted';\n group.radioGroup[style].checked = true;\n });\n this.alignmentRadios.forEach((group) => {\n group.radioGroup[this.captionsStyles.align].checked = true;\n });\n this.fontSizeRadios.forEach((group) => {\n group.radioGroup[this.captionsStyles.size].checked = true;\n });\n\n SavedData.write(CaptionsStylePlugin.captionStyleKey, this.captionsStyles);\n if (this.client) {\n this.client.send(CaptionsStylePlugin.captionStyleKey, this.captionsStyles);\n }\n }\n\n /**\n * @readonly\n * @returns {number}\n * @memberof RadioGroup\n */\n get radios() {\n return this.colorRadios\n .concat(this.alignmentRadios)\n .concat(this.fontSizeRadios);\n }\n /**\n * Get captionStyle Key\n * @readonly\n * @static\n * @memberof CaptionStyleKey\n * @returns {string}\n */\n static get captionStyleKey() {\n return 'captionsStyles';\n }\n\n}\n","import { SavedData } from '../SavedData';\nimport { ButtonPlugin } from '../base-plugins';\nimport { Button } from '../ui-elements';\n\n/**\n * @export\n * @class CaptionsTogglePlugin\n * @property {Button[]} _captionsButtons An array of caption mute buttons\n * @property {boolean} _captionsMuted True if captions are muted\n * @property {number} captionsButtonLength The length of the captionsButtons array\n * @extends {ButtonPlugin}\n */\nexport class CaptionsTogglePlugin extends ButtonPlugin {\n /**\n *Creates an instance of CaptionsTogglePlugin.\n * @param {string | HTMLElement} captionsButtons selector string for one or more captions mute buttons\n * @memberof CaptionsTogglePlugin\n */\n constructor(captionsButtons) {\n super('Caption-Button-Plugin');\n this.sendAllProperties = this.sendAllProperties.bind(this);\n\n this._captionsButtons = [];\n\n if ( captionsButtons instanceof HTMLElement ) {\n this._captionsButtons[0] = new Button({\n button: captionsButtons,\n onClick: this.captionsButtonClick.bind(this),\n channel: 'captions'\n });\n } else {\n document.querySelectorAll(captionsButtons).forEach((button) => {\n this._captionsButtons.push(new Button({\n button: button,\n onClick: this.captionsButtonClick.bind(this),\n channel: 'captions'\n }));\n });\n }\n\n this._captionsMuted = false;\n this.captionsButtonLength = this._captionsButtons.length;\n\n if (0 >= this.captionsButtonLength) {\n this.warn(\n 'Plugin was not provided any valid button or input elements'\n );\n return;\n }\n }\n\n /**\n * @memberof CaptionsTogglePlugin\n */\n init() {\n // Handle the features request\n this.client.on(\n 'features',\n function($event) {\n for (let i = 0; i < this.captionsButtonLength; i ++) {\n this._captionsButtons[i].displayButton($event.data);\n }\n\n if (null === SavedData.read(CaptionsTogglePlugin.captionsToggleKey)) {\n return;\n }\n\n this.captionsMuted = !!SavedData.read(CaptionsTogglePlugin.captionsToggleKey);\n\n }.bind(this)\n );\n }\n /**\n * @memberof CaptionsTogglePlugin\n */\n start() {\n this.captionsMuted = !!SavedData.read(CaptionsTogglePlugin.captionsToggleKey);\n\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * Sends initial caption properties to the application\n * @memberof CaptionsTogglePlugin\n */\n sendAllProperties() {\n this.sendProperty(CaptionsTogglePlugin.captionsToggleKey, this.captionsMuted);\n }\n\n /**\n * @memberof CaptionsTogglePlugin\n */\n captionsButtonClick() {\n this.captionsMuted = !this.captionsMuted;\n }\n\n /**\n * @readonly\n * @memberof CaptionsTogglePlugin\n */\n get captionsMuted() {\n return this._captionsMuted;\n }\n\n /**\n * @param {boolean} muted\n * @memberof CaptionsTogglePlugin\n */\n set captionsMuted(muted) {\n this._captionsMuted = muted;\n this._setMuteProp(\n 'captionsMuted',\n this._captionsButtons,\n this._captionsMuted\n );\n }\n\n /**\n * Get CaptionToggle Key\n * @readonly\n * @static\n * @memberof captionsToggleKey\n * @returns {string}\n */\n static get captionsToggleKey() {\n return 'captionsMuted';\n }\n}\n","import { ButtonPlugin } from '../base-plugins';\nimport { Button } from '../ui-elements';\n\n/**\n * Requests a hint or help from the game\n * @class HelpPlugin\n * @property {boolean} paused\n * @property {boolean} _helpEnabled\n * @property {boolean} onPause\n * @property {number} helpButtonsLength\n * @extends {ButtonPlugin}\n * @export\n */\nexport class HelpPlugin extends ButtonPlugin {\n /**\n * Creates an instance of HelpPlugin.\n * @param {string | HTMLElement} helpButtons The selector or HTMLElement for the button\n * @memberof HelpPlugin\n */\n constructor(helpButtons) {\n super('Help-Button-Plugin');\n\n this._helpButtons = [];\n\n if (helpButtons instanceof HTMLElement) {\n this._helpButtons[0] = new Button({\n button: helpButtons,\n onClick: this.helpButtonClick.bind(this),\n channel: 'hints' // the check to see if this feature exists is different than most so passing this ensures it'll work the same.\n });\n } else {\n document.querySelectorAll(helpButtons).forEach((button) => {\n this._helpButtons.push(\n new Button({\n button: button,\n onClick: this.helpButtonClick.bind(this),\n channel: 'hints'\n })\n );\n });\n }\n\n this.paused = false;\n this._helpEnabled = false;\n this.onPause = this.onPause.bind(this);\n this.helpButtonsLength = this._helpButtons.length;\n\n if (this.helpButtonsLength <= 0) {\n this.warn('Plugin was not provided any valid button elements');\n }\n }\n /**\n * Called when the game is either paused or resumed\n * @param {object} $event\n * @memberof HelpPlugin\n */\n onPause($event) {\n this.paused = $event.data.paused;\n // Disable the help button when paused if it's active\n if (\n this.paused &&\n this.helpEnabled\n ) {\n for (let i = 0; i < this.helpButtonsLength; i++) {\n this._helpButtons[i].button.setAttribute('data-paused', 'true');\n }\n this.helpEnabled = false;\n } else {\n for (let i = 0; i < this.helpButtonsLength; i++) {\n if (this._helpButtons[i].button.getAttribute('data-paused')) {\n this._helpButtons[i].button.setAttribute('data-paused', '');\n this.helpEnabled = true;\n }\n }\n }\n }\n\n /**\n *\n *\n * @memberof HelpPlugin\n */\n helpButtonClick() {\n if (\n !this.paused &&\n this.helpEnabled\n ) {\n this.client.send('playHelp');\n }\n }\n\n /**\n * @memberof HelpPlugin\n */\n init() {\n // Handle pause\n this.client.on('paused', this.onPause);\n\n // Handle features changed\n this.client.on(\n 'features',\n function(features) {\n this.helpEnabled = features.data.hints;\n for (let i = 0; i < this.helpButtonsLength; i++) {\n this._helpButtons[i].displayButton(features.data);\n }\n }.bind(this)\n );\n\n this.client.on(\n 'helpEnabled',\n function(event) {\n this._helpEnabled = !!event.data;\n }.bind(this)\n );\n }\n\n /**\n * @memberof HelpPlugin\n */\n get helpEnabled() {\n return this._helpEnabled;\n }\n\n /**\n * Fired when the enabled status of the help button changes\n * @function helpEnabled\n * @param {boolean} enabled If the help button is enabled\n * @memberof HelpPlugin\n */\n set helpEnabled(enabled) {\n this._helpEnabled = enabled;\n for (let i = 0; i < this.helpButtonsLength; i++) {\n this._helpButtons[i].button.classList.remove('disabled');\n this._helpButtons[i].button.classList.remove('enabled');\n this._helpButtons[i].button.classList.add(enabled ? 'enabled' : 'disabled');\n }\n\n this.client.trigger('helpEnabled');\n }\n\n /**\n * @readonly\n * @static\n * @memberof HelpPlugin\n * @returns {string}\n */\n static get helpKey() {\n return 'help';\n }\n\n}\n","import { ButtonPlugin } from '../base-plugins';\nimport { PageVisibility } from '../PageVisibility';\nimport { Button } from '../ui-elements';\n/**\n * @class Container\n * @property {object[]} sliders an array of all slider objects attached to PausePlugin\n * @extends ButtonPlugin\n */\nexport class PausePlugin extends ButtonPlugin {\n /**\n * Creates an instance of PausePlugin.\n * @param {string | HTMLElement} pauseButton selector string or HTML Element for the input(s)\n * @param {boolean} manageOwnVisibility whether the plugin should manage container's visibility or some other source will handle it\n * @memberof PausePlugin\n */\n constructor(pauseButton, manageOwnVisibility = true) {\n super('Pause-Button-plugin');\n this._manageOwnVisibility = manageOwnVisibility;\n this._appBlurred = false;\n this._containerBlurred = false;\n this._focusTimer = null;\n this._isManualPause = false;\n this._keepFocus = false;\n this._paused = false;\n this.iframe = null;\n this.focusApp = this.focusApp.bind(this);\n this.manageFocus = this.manageFocus.bind(this);\n this.onKeepFocus = this.onKeepFocus.bind(this);\n this.onFocus = this.onFocus.bind(this);\n const onPauseToggle = this.onPauseToggle.bind(this);\n\n this.pauseDisabled = false;\n this._pauseButton = [];\n\n this.pageVisibility = new PageVisibility(\n this.onContainerFocus.bind(this),\n this.onContainerBlur.bind(this)\n );\n\n this.pageVisibility.enabled = this.manageOwnVisibility;\n\n if (pauseButton instanceof HTMLElement) {\n this._pauseButton[0] = new Button({\n button: pauseButton,\n onClick: onPauseToggle,\n channel: PausePlugin.pauseKey\n });\n } else {\n document.querySelectorAll(pauseButton).forEach((button) => {\n this._pauseButton.push(new Button({\n button: button,\n onClick: onPauseToggle,\n channel: PausePlugin.pauseKey\n }));\n });\n }\n }\n\n /**\n * updates _paused and also sends the pause event to the application\n * @memberof PausePlugin\n * @param {Boolean} paused\n */\n set pause(paused) {\n paused = !!paused;\n\n if (this.pauseDisabled) {\n return;\n }\n this._paused = paused;\n\n this.client.send(PausePlugin.pauseKey, paused);\n this.client.trigger(paused ? 'paused' : 'resumed', { paused });\n\n for (let i = 0, l = this._pauseButton.length; i < l; i++) {\n this._pauseButton[i].button.classList.remove('unpaused');\n this._pauseButton[i].button.classList.remove('paused');\n this._pauseButton[i].button.classList.add(paused ? 'paused' : 'unpaused');\n }\n }\n\n /**\n * @memberof PausePlugin\n * @returns {Boolean}\n */\n get pause() {\n return this._paused;\n }\n\n /**\n * updates _manageOwnVisibility and also re-enables pageVisibility\n * @memberof PausePlugin\n * @param {Boolean} manageOwnVisibility\n */\n set manageOwnVisibility(manageOwnVisibility) {\n this._manageOwnVisibility = manageOwnVisibility;\n\n this.pageVisibility.enabled = this._manageOwnVisibility;\n }\n\n /**\n * @memberof PausePlugin\n * @returns {Boolean}\n */\n get manageOwnVisibility() {\n return this._manageOwnVisibility;\n }\n\n /**\n * forces focus onto the iframe application window\n * @memberof PausePlugin\n */\n focusApp() {\n if (!this.hasDom) {\n // We don't have a dom with a content window, fail quietly\n return;\n }\n\n this.iframe.contentWindow.focus();\n }\n\n /**\n * blurs the application iframe window\n * @memberof PausePlugin\n */\n blurApp() {\n if (!this.hasDom) {\n return;\n }\n this.iframe.contentWindow.blur();\n }\n\n /**\n * Determines what pause state should be sent, if any, on focus or blur events.\n * @method manageFocus\n * @memberof PausePlugin\n */\n manageFocus() {\n if (!this.manageOwnVisibility) {\n return;\n }\n // Unfocus on the iframe\n if (this._keepFocus) {\n this.blurApp();\n }\n\n // we only need one delayed call, at the end of any\n // sequence of rapidly-fired blur/focus events\n if (this._focusTimer) {\n clearTimeout(this._focusTimer);\n }\n\n // Delay setting of 'paused' in case we get another focus event soon.\n // Focus events are sent to the container asynchronously, and this was\n // causing rapid toggling of the pause state and related issues,\n // especially in Internet Explorer\n this._focusTimer = setTimeout(\n function () {\n this._focusTimer = null;\n // A manual pause cannot be overriden by focus events.\n // User must click the resume button.\n if (this._isManualPause) {\n return;\n }\n\n this.pause = Boolean(this._containerBlurred && this._appBlurred);\n\n // Focus on the content window when blurring the app\n // but selecting the container\n if (this._keepFocus && !this._containerBlurred && this._appBlurred) {\n this.focusApp();\n }\n }.bind(this),\n 100\n );\n }\n\n /**\n * Handle the keep focus event for the window\n * @method onKeepFocus\n * @memberof PausePlugin\n * @private\n */\n onKeepFocus($event) {\n this._keepFocus = !!$event.data;\n this.manageFocus();\n }\n\n /**\n * Handle focus events sent from iFrame children\n * @method onFocus\n * @memberof PausePlugin\n * @private\n */\n onFocus($event) {\n this._appBlurred = !$event.data;\n this.manageFocus();\n }\n\n /**\n * Handle focus events sent from container's window\n * @method onContainerFocus\n * @memberof PausePlugin\n * @private\n */\n onContainerFocus() {\n this._containerBlurred = false;\n this.manageFocus();\n }\n\n /**\n * Handle blur events sent from container's window\n * @method onContainerBlur\n * @memberof PausePlugin\n * @private\n */\n onContainerBlur() {\n //Set both container and application to blurred,\n //because some blur events are only happening on the container.\n //If container is blurred because application area was just focused,\n //the application's focus event will override the blur imminently.\n this._containerBlurred = this._appBlurred = true;\n this.manageFocus();\n }\n\n /**\n * @memberof PausePlugin\n */\n onPauseToggle() {\n this._isManualPause = !this._isManualPause;\n this.pause = !this.pause;\n }\n\n /**\n * @param {Container} container\n * @memberof PausePlugin\n */\n init({ iframe }) {\n this.iframe = iframe;\n\n this.client.on(\n 'features',\n function (features) {\n if (features.disablePause) {\n this.pauseDisabled = true;\n }\n\n for (let i = 0, l = this._pauseButton.length; i < l; i++) {\n this._pauseButton[i].displayButton(features.data);\n }\n }.bind(this)\n );\n this.client.on('focus', this.onFocus);\n this.client.on('keepFocus', this.onKeepFocus);\n\n this.pause = this._paused;\n }\n\n /**\n * Function to check if we have a dom with a contentWindow\n * @readonly\n * @returns {boolean}\n * @memberof PausePlugin\n */\n get hasDom() {\n return Boolean(null !== this.iframe && this.iframe.contentWindow);\n }\n\n /**\n * @readonly\n * @memberof PausePlugin\n * @returns {HTMLButtonElement[]}\n */\n get pauseButton() {\n const buttons = [];\n for (let i = 0, l = this._pauseButton.length; i < l; i++) {\n buttons.push(this._pauseButton[i].button);\n }\n return buttons;\n }\n\n /**\n * @readonly\n * @static\n * @memberof PausePlugin\n * @returns {string}\n */\n static get pauseKey() {\n return 'pause';\n }\n}\n","import { SavedData } from '../SavedData';\nimport { ButtonPlugin } from '../base-plugins';\nimport { Slider, Button } from '../ui-elements';\n\n/**\n * @export\n * @class SoundPlugin\n * @extends {ButtonPlugin}\n *\n */\nexport class SoundPlugin extends ButtonPlugin {\n /**\n * Creates an instance of SoundPlugin.\n * @param {string | HTMLElement} [soundButtons] selector string or HTML Element for the input(s)\n * @param {string | HTMLElement} [musicButtons] selector string or HTML Element for the input(s)\n * @param {string | HTMLElement} [voButtons] selector string or HTML Element for the input(s)\n * @param {string | HTMLElement} [sfxButtons] selector string or HTML Element for the input(s)\n * @param {string | HTMLElement} [soundSliders] selector string or HTML Element for the input(s)\n * @param {string | HTMLElement} [musicSliders] selector string or HTML Element for the input(s)\n * @param {string | HTMLElement} [sfxSliders] selector string or HTML Element for the input(s)\n * @param {string | HTMLElement} [voSliders] selector string or HTML Element for the input(s)\n * @memberof SoundPlugin\n */\n constructor({\n soundButtons,\n musicButtons,\n sfxButtons,\n voButtons,\n soundSliders,\n musicSliders,\n sfxSliders,\n voSliders\n } = {}) {\n super('Sound-Button-Plugin');\n const saved = SavedData.read(SoundPlugin.soundMutedKey);\n this.sendAllProperties = this.sendAllProperties.bind(this);\n this._soundMuted = saved ? saved : false;\n this._musicMuted = false;\n this._voMuted = false;\n this._sfxMuted = false;\n\n this._musicMutedByUser = false;\n this._soundMutedByUser = false;\n this._sfxMutedByUser = false;\n this._voMutedByUser = false;\n\n this.soundMuteEnabled = false;\n this.musicMuteEnabled = false;\n this.sfxMuteEnabled = false;\n this.voMuteEnabled = false;\n\n this.soundVolume = 1;\n this.musicVolume = 1;\n this.sfxVolume = 1;\n this.voVolume = 1;\n\n this.soundSliders = [];\n this.musicSliders = [];\n this.sfxSliders = [];\n this.voSliders = [];\n\n this.soundButtons = [];\n this.musicButtons = [];\n this.sfxButtons = [];\n this.voButtons= [];\n\n if (soundSliders instanceof HTMLElement) {\n this.soundSliders[0] = new Slider({\n slider: soundSliders,\n control: SoundPlugin.soundVolumeKey,\n defaultValue: this.soundVolume\n });\n } else {\n document.querySelectorAll(soundSliders).forEach((slider) => {\n const newSlider = new Slider({\n slider: slider,\n control: SoundPlugin.soundVolumeKey,\n defaultValue: this.soundVolume\n });\n if (newSlider.slider) {\n this.soundSliders.push(newSlider);\n }\n });\n }\n if (musicSliders instanceof HTMLElement) {\n this.musicSliders[0] = new Slider({\n slider: musicSliders,\n control: SoundPlugin.musicVolumeKey,\n defaultValue: this.musicVolume\n });\n } else {\n document.querySelectorAll(musicSliders).forEach((slider) => {\n const newSlider = new Slider({\n slider: slider,\n control: SoundPlugin.musicVolumeKey,\n defaultValue: this.musicVolume\n });\n if (newSlider.slider) {\n this.musicSliders.push(newSlider);\n }\n });\n }\n if (sfxSliders instanceof HTMLElement) {\n this.sfxSliders[0] = new Slider({\n slider: sfxSliders,\n control: SoundPlugin.sfxVolumeKey,\n defaultValue: this.sfxVolume\n });\n } else {\n document.querySelectorAll(sfxSliders).forEach((slider) => {\n const newSlider = new Slider({\n slider: slider,\n control: SoundPlugin.sfxVolumeKey,\n defaultValue: this.sfxVolume\n });\n if (newSlider.slider) {\n this.sfxSliders.push(newSlider);\n }\n });\n }\n if (voSliders instanceof HTMLElement) {\n this.voSliders[0] = new Slider({\n slider: voSliders,\n control: SoundPlugin.voVolumeKey,\n defaultValue: this.voVolume\n });\n } else {\n document.querySelectorAll(voSliders).forEach((slider) => {\n const newSlider = new Slider({\n slider: slider,\n control: SoundPlugin.voVolumeKey,\n defaultValue: this.voVolume\n });\n if (newSlider.slider) {\n this.voSliders.push(newSlider);\n }\n });\n }\n\n if ( soundButtons instanceof HTMLElement ) {\n this.soundButtons[0] = new Button({\n button: soundButtons,\n onClick: this.onSoundToggle.bind(this),\n channel: SoundPlugin.soundKey\n });\n } else {\n document.querySelectorAll(soundButtons).forEach((button) => {\n this.soundButtons.push(new Button({\n button: button,\n onClick: this.onSoundToggle.bind(this),\n channel: SoundPlugin.soundKey\n }));\n });\n }\n if ( musicButtons instanceof HTMLElement ) {\n this.musicButtons[0] = new Button({\n button: musicButtons,\n onClick: this.onMusicToggle.bind(this),\n channel: 'music'\n });\n } else {\n document.querySelectorAll(musicButtons).forEach((button) => {\n this.musicButtons.push(new Button({\n button: button,\n onClick: this.onMusicToggle.bind(this),\n channel: 'music'\n }));\n });\n }\n if ( sfxButtons instanceof HTMLElement ) {\n this.sfxButtons[0] = new Button({\n button: sfxButtons,\n onClick: this.onSFXToggle.bind(this),\n channel: 'sfx'\n });\n } else {\n document.querySelectorAll(sfxButtons).forEach((button) => {\n this.sfxButtons.push(new Button({\n button: button,\n onClick: this.onSFXToggle.bind(this),\n channel: 'sfx'\n }));\n });\n }\n if ( voButtons instanceof HTMLElement ) {\n this.voButtons[0] = new Button({\n button: voButtons,\n onClick: this.onVOToggle.bind(this),\n channel: 'vo'\n });\n } else {\n document.querySelectorAll(voButtons).forEach((button) => {\n this.voButtons.push(new Button({\n button: button,\n onClick: this.onVOToggle.bind(this),\n channel: 'vo'\n }));\n });\n }\n\n this.soundSlidersLength = this.soundSliders.length;\n this.musicSlidersLength = this.musicSliders.length;\n this.sfxSlidersLength = this.sfxSliders.length;\n this.voSlidersLength = this.voSliders.length;\n this.soundButtonsLength = this.soundButtons.length;\n this.musicButtonsLength = this.musicButtons.length;\n this.sfxButtonsLength = this.sfxButtons.length;\n this.voButtonsLength = this.voButtons.length;\n\n if (0 >= (this.soundSlidersLength + this.musicSlidersLength + this.sfxSlidersLength + this.voSlidersLength + this.soundButtonsLength + this.musicButtonsLength + this.sfxButtonsLength + this.voButtonsLength)) {\n this.warn('Plugin was not provided any valid HTML Elements');\n return;\n }\n\n for (let i = 0; i < this.soundSlidersLength; i++) {\n this.soundSliders[i].enableSliderEvents(this.onSoundVolumeChange.bind(this));\n }\n for (let i = 0; i < this.musicSlidersLength; i++) {\n this.musicSliders[i].enableSliderEvents(this.onMusicVolumeChange.bind(this));\n }\n for (let i = 0; i < this.sfxSlidersLength; i++) {\n this.sfxSliders[i].enableSliderEvents(this.onSFXVolumeChange.bind(this));\n }\n for (let i = 0; i < this.voSlidersLength; i++) {\n this.voSliders[i].enableSliderEvents(this.onVOVolumeChange.bind(this));\n }\n\n if (this.soundSliders[0] && this.soundSliders[0].slider) {\n this.soundVolume = this.soundSliders[0].value;\n }\n if (this.musicSliders[0] && this.musicSliders[0].slider) {\n this.musicVolume = this.musicSliders[0].value;\n }\n if (this.sfxSliders[0] && this.sfxSliders[0].slider) {\n this.sfxVolume = this.sfxSliders[0].value;\n }\n if (this.voSliders[0] && this.voSliders[0].slider) {\n this.voVolume = this.voSliders[0].value;\n }\n }\n\n /**\n * @memberof SoundPlugin\n * @param {Event} e\n */\n onSoundVolumeChange(e) {\n if (this.soundSlidersLength <= 0) {\n this.soundVolume = e.target.value;\n return;\n }\n this.soundVolume = this.soundSliders[0].sliderRange(\n Number(e.target.value)\n );\n this.soundMuted = !this.soundVolume;\n\n if (!this._musicMutedByUser) {\n this.musicMuted = this.soundMuted;\n }\n if (!this._sfxMutedByUser) {\n this.sfxMuted = this.soundMuted;\n }\n if (!this._voMutedByUser) {\n this.voMuted = this.soundMuted;\n }\n\n this.sendProperty(SoundPlugin.soundVolumeKey, this.soundVolume);\n\n for (let i = 0; i < this.soundSlidersLength; i++) {\n this.soundSliders[i].value = this.soundVolume;\n }\n }\n\n /**\n * @memberof SoundPlugin\n * @param {Event} e\n */\n onMusicVolumeChange(e) {\n if (this.musicSlidersLength <= 0) {\n this.musicVolume = e.target.value;\n return;\n }\n\n this.musicVolume = this.musicSliders[0].sliderRange(\n Number(e.target.value)\n );\n\n this.musicMuted = !this.musicVolume;\n if (!this.musicMuted) { this._musicMutedByUser = false; }\n this._checkSoundMute();\n this.sendProperty(SoundPlugin.musicVolumeKey, this.musicVolume);\n\n for (let i = 0; i < this.musicSlidersLength; i++) {\n this.musicSliders[i].value = this.musicVolume;\n }\n }\n\n /**\n * @memberof SoundPlugin\n * @param {Event} e\n */\n onVOVolumeChange(e) {\n if (this.voSlidersLength <= 0) {\n this.voVolume = e.target.value;\n return;\n }\n this.voVolume = this.voSliders[0].sliderRange(Number(e.target.value));\n if (!this.voMuted) { this._voMutedByUser = false; }\n this.voMuted = !this.voVolume;\n this._checkSoundMute();\n\n this.sendProperty(SoundPlugin.voVolumeKey, this.voVolume);\n for (let i = 0; i < this.voSlidersLength; i++) {\n this.voSliders[i].value = this.voVolume;\n }\n }\n\n /**\n * @memberof SoundPlugin\n * @param {Event} e\n */\n onSFXVolumeChange(e) {\n if (this.sfxSlidersLength <= 0) {\n this.sfxVolume = e.target.value;\n return;\n }\n this.sfxVolume = this.sfxSliders[0].sliderRange(Number(e.target.value));\n if (!this.sfxMuted) { this._sfxMutedByUser = false; }\n this.sfxMuted = !this.sfxVolume;\n this._checkSoundMute();\n\n this.sendProperty(SoundPlugin.sfxVolumeKey, this.sfxVolume);\n\n for (let i = 0; i < this.sfxSlidersLength; i++) {\n this.sfxSliders[i].value = this.sfxVolume;\n }\n }\n\n /**\n * @memberof SoundPlugin\n */\n onSoundToggle() {\n const muted = !this.soundMuted;\n this.soundMuted = muted;\n\n if (!this._musicMutedByUser || muted) {\n this.musicMuted = muted;\n }\n if (!this._sfxMutedByUser || muted) {\n this.sfxMuted = muted;\n }\n if (!this._voMutedByUser || muted) {\n this.voMuted = muted;\n }\n }\n\n /**\n * @memberof SoundPlugin\n */\n onMusicToggle() {\n this.musicMuted = !this.musicMuted;\n this._musicMutedByUser = this.musicMuted;\n this._checkSoundMute();\n }\n\n /**\n * @memberof SoundPlugin\n */\n onVOToggle() {\n this.voMuted = !this.voMuted;\n this._voMutedByUser = this.voMuted;\n this._checkSoundMute();\n }\n\n /**\n * @memberof SoundPlugin\n */\n onSFXToggle() {\n this.sfxMuted = !this.sfxMuted;\n this._sfxMutedByUser = this.sfxMuted;\n this._checkSoundMute();\n }\n\n /**\n * @memberof SoundPlugin\n */\n _checkSoundMute() {\n this.soundMuted = this.sfxMuted && this.voMuted && this.musicMuted;\n }\n\n /**\n * @param {string} key\n * @param {*} value\n * @param {Element} element\n * @memberof SoundPlugin\n */\n setMuteProp(key, value, element, disableSend = false) {\n this['_' + key] = value;\n this._setMuteProp(key, element, value, disableSend);\n }\n\n /**\n * @memberof SoundPlugin\n */\n init() {\n this.client.on(\n 'features',\n function(features) {\n if (!features.data) {\n return;\n }\n \n // Confirm that the mute features are supported\n this.soundMuteEnabled = !!features.data.sound;\n this.musicMuteEnabled = !!features.data.music;\n this.sfxMuteEnabled = !!features.data.sfx;\n this.voMuteEnabled = !!features.data.vo;\n \n this.soundVolumeEnabled = !!features.data.soundVolume;\n this.musicVolumeEnabled = !!features.data.musicVolume;\n this.sfxVolumeEnabled = !!features.data.sfxVolume;\n this.voVolumeEnabled = !!features.data.voVolume;\n \n for (let i = 0; i < this.soundButtonsLength; i++) {\n this.soundButtons[i].displayButton(features.data);\n }\n for (let i = 0; i < this.musicButtonsLength; i++) {\n this.musicButtons[i].displayButton(features.data);\n }\n for (let i = 0; i < this.sfxButtonsLength; i++) {\n this.sfxButtons[i].displayButton(features.data);\n }\n for (let i = 0; i < this.voButtonsLength; i++) {\n this.voButtons[i].displayButton(features.data);\n }\n for (let i = 0; i < this.soundSlidersLength; i++) {\n this.soundSliders[i].displaySlider(features.data);\n }\n for (let i = 0; i < this.musicSlidersLength; i++) {\n this.musicSliders[i].displaySlider(features.data);\n }\n for (let i = 0; i < this.sfxSlidersLength; i++) {\n this.sfxSliders[i].displaySlider(features.data);\n }\n for (let i = 0; i < this.voSlidersLength; i++) {\n this.voSliders[i].displaySlider(features.data);\n }\n }.bind(this)\n );\n }\n\n /**\n * @memberof SoundPlugin\n */\n start() {\n\n for (let i = 0; i < this.soundButtonsLength; i++) {\n this.soundButtons[i].enableButton();\n }\n for (let i = 0; i < this.musicButtonsLength; i++) {\n this.musicButtons[i].enableButton();\n }\n for (let i = 0; i < this.sfxButtonsLength; i++) {\n this.sfxButtons[i].enableButton();\n }\n for (let i = 0; i < this.voButtonsLength; i++) {\n this.voButtons[i].enableButton();\n }\n\n this.soundMuted = !!SavedData.read(SoundPlugin.soundMutedKey);\n this.musicMuted = !!SavedData.read(SoundPlugin.musicMutedKey);\n this.sfxMuted = !!SavedData.read(SoundPlugin.sfxMutedKey);\n this.voMuted = !!SavedData.read(SoundPlugin.voMutedKey);\n\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * Saves the current state of all volume properties, and then sends them to the game\n * @memberof SoundPlugin\n */\n sendAllProperties() {\n this.sendProperty(SoundPlugin.soundVolumeKey, this.soundVolume);\n this.sendProperty(SoundPlugin.musicVolumeKey, this.musicVolume);\n this.sendProperty(SoundPlugin.voVolumeKey, this.voVolume);\n this.sendProperty(SoundPlugin.sfxVolumeKey, this.sfxVolume);\n\n // to avoid the mute property overwriting the volume on startup, mutes should only send if they're true\n // or the volume channel isn't enabled\n if ( this.soundMuteEnabled && (this.soundMuted || !this.soundVolumeEnabled )) {\n this.sendProperty(SoundPlugin.soundMutedKey, this.soundMuted);\n }\n if ( this.musicMuteEnabled && (this.musicMuted || !this.musicVolumeEnabled )) {\n this.sendProperty(SoundPlugin.musicMutedKey, this.musicMuted);\n }\n if ( this.voMuteEnabled && ( this.voMuted || !this.voVolumeEnabled )) {\n this.sendProperty(SoundPlugin.voMutedKey, this.voMuted);\n }\n if ( this.sfxMuteEnabled && (this.sfxMuted || !this.sfxVolumeEnabled )) {\n this.sendProperty(SoundPlugin.sfxMutedKey, this.sfxMuted);\n }\n }\n\n /**\n * @memberof SoundPlugin\n * @param {boolean} muted\n */\n set soundMuted(muted) {\n if (muted === this.soundMuted) {\n // have to do this to make sure it gets set up properly on start up\n this.setMuteProp('soundMuted', muted, this.soundButtons, true);\n return;\n }\n\n let disableSend = false;\n // if volume is enabled and the channel is becoming unmuted we update everything but only send the volume\n if (this.soundVolumeEnabled && !muted) {\n this.sendProperty(SoundPlugin.soundVolumeKey, this.soundVolume);\n disableSend = true;\n }\n this.setMuteProp('soundMuted', muted, this.soundButtons, disableSend);\n }\n\n /**\n * @memberof SoundPlugin\n */\n get soundMuted() {\n return this._soundMuted;\n }\n\n /**\n * @memberof SoundPlugin\n * @param {boolean} muted\n */\n set voMuted(muted) {\n let disableSend = false;\n if (this.voMuted === muted) {\n // have to do this to make sure it gets set up properly on start up\n this.setMuteProp('voMuted', muted, this.voButtons, true);\n return;\n }\n if ((this.voVolumeEnabled && !muted)) {\n this.sendProperty(SoundPlugin.voVolumeKey, this.voVolume);\n disableSend = true;\n }\n this.setMuteProp('voMuted', muted, this.voButtons, disableSend);\n }\n\n /**\n * @memberof SoundPlugin\n */\n get voMuted() {\n return this._voMuted;\n }\n\n /**\n * @memberof SoundPlugin\n * @param {boolean} muted\n */\n set musicMuted(muted) {\n if (this.musicMuted === muted) {\n // have to do this to make sure it gets set up properly on start up\n this.setMuteProp('musicMuted', muted, this.musicButtons, true);\n return; \n }\n let disableSend = false;\n if (this.musicVolumeEnabled && !muted) {\n this.sendProperty(SoundPlugin.musicVolumeKey, this.musicVolume);\n disableSend = true;\n }\n\n this.setMuteProp('musicMuted', muted, this.musicButtons, disableSend);\n }\n\n /**\n * @memberof SoundPlugin\n */\n get musicMuted() {\n return this._musicMuted;\n }\n\n /**\n * @memberof SoundPlugin\n * @param {boolean} muted\n */\n set sfxMuted(muted) {\n if (this.sfxMuted === muted) {\n // have to do this to make sure it gets set up properly on start up\n this.setMuteProp('sfxMuted', muted, this.sfxButtons, true);\n return;\n }\n let disableSend = false;\n if (this.sfxVolumeEnabled && !muted) {\n this.sendProperty(SoundPlugin.sfxVolumeKey, this.sfxVolume);\n disableSend = true;\n }\n this.setMuteProp('sfxMuted', muted, this.sfxButtons, disableSend);\n }\n\n /**\n * @memberof SoundPlugin\n */\n get sfxMuted() {\n return this._sfxMuted;\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get soundMutedKey() {\n return 'soundMuted';\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get voMutedKey() {\n return 'voMuted';\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get musicMutedKey() {\n return 'musicMuted';\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get sfxMutedKey() {\n return 'sfxMuted';\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get soundVolumeKey() {\n return 'soundVolume';\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get sfxVolumeKey() {\n return 'sfxVolume';\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get voVolumeKey() {\n return 'voVolume';\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get musicVolumeKey() {\n return 'musicVolume';\n }\n\n /**\n * @readonly\n * @memberof SoundPlugin\n */\n get soundButton() {\n return this._soundButton.button;\n }\n\n /**\n * @readonly\n * @memberof SoundPlugin\n */\n get musicButton() {\n return this._musicButton.button;\n }\n /**\n * @readonly\n * @memberof SoundPlugin\n */\n get sfxButton() {\n return this._sfxButton.button;\n }\n /**\n * @readonly\n * @memberof SoundPlugin\n */\n get voButton() {\n return this._voButton.button;\n }\n\n /**\n * @readonly\n * @static\n * @memberof SpeedScalePlugin\n * @return {string}\n */\n static get soundKey() {\n return 'sound';\n }\n}\n","import { SavedData } from './SavedData';\n/**\n * Default user data handler for the {{#crossLink \"springroll.Container\"}}Container{{/crossLink}} to save data using\n * the {{#crossLink \"springroll.SavedData\"}}SavedData{{/crossLink}} class.\n * @class SavedDataHandler\n */\nexport class SavedDataHandler {\n\n /**\n * \n */\n constructor() {\n this.dbName;\n this.savedData;\n }\n \n /**\n * Remove a data setting\n * @method remove\n * @static\n * @param {String} name The name of the property\n * @param {Function} [callback] Callback when remove is complete\n */\n static remove(name, callback) {\n SavedData.remove(name);\n callback();\n }\n\n /**\n * Write a custom setting\n * @method write\n * @static\n * @param {String} name The name of the property\n * @param {*} value The value to set the property to\n * @param {Function} [callback] Callback when write is complete\n */\n static write(name, value, callback) {\n SavedData.write(name, value);\n callback();\n }\n\n /**\n * Read a custom setting\n * @method read\n * @static\n * @param {String} name The name of the property\n * @param {Function} callback Callback when read is complete, returns the value\n */\n static read(name, callback) {\n callback(SavedData.read(name));\n }\n\n // ----------------------------------------------------------------\n // IndexedDB Manipulation \n // ----------------------------------------------------------------\n\n /**\n * Open a connection with the database\n * @param {string} dbName The name of your IndexedDB database\n * @param {string} dbVersion The version number of the database\n * @param {JSON} additions Any additions to the structure of the database\n * @param {array} additions.stores Any stores to be added into the database syntax: \n * {storeName: '[name]', options: {[optionally add options]}}\n * @param {array} additions.indexes Any Indexes to be added to the database syntax: \n * {storeName: '[name]', options: {[optionally add options]}}\n */\n IDBOpen( dbName, dbVersion = null, additions = {}, deletions = {}, callback = null) {\n // persisting the savedData object to keep the connection open\n this.savedData = new SavedData();\n this.savedData.IDBOpen( dbName, dbVersion, additions, deletions, callback);\n }\n\n /**\n * Add a record to a given store\n * @param {string} storeName The name of the store from which the record will be updated\n * @param {string} key the key of the record to be updated \n * @param {*} value The value for the record with the given key to be updated\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBAdd(storeName, record, key, callback) {\n this.savedData.IDBAdd(storeName, record, key, callback);\n }\n \n /**\n * Update a record from a given store\n * @param {string} storeName The name of the store from which the record will be updated\n * @param {string} key the key of the record to be updated \n * @param {*} value The value for the record with the given key to be updated\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBUpdate(storeName, key, value, callback) {\n this.savedData.IDBUpdate(storeName, key, value, callback);\n }\n\n /**\n * Remove a record from a store\n * @param {*} storeName The name of the store from which the record will be removed\n * @param {*} key the key of the record to be removed \n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBRemove(storeName, key, callback) {\n this.savedData.IDBRemove(storeName, key, callback);\n }\n\n /**\n * Return a record from a given store with a given key\n * @param {string} storeName The name of the store to read from\n * @param {string} key The key for the record in the given store \n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBRead(storeName, key, callback) {\n this.savedData.IDBRead(storeName, key, callback);\n }\n\n /**\n * Get all records from a store\n * @param {string} storeName The store to get all records from\n * @param {integer} count Optionally the count of records to return\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBReadAll(storeName, count, callback) {\n this.savedData.IDBReadAll(storeName, count, callback);\n }\n\n /**\n * Get the version of a given database\n * @param {string} dbName The name of the database to return the version of\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBGetVersion(dbName, callback) {\n const sd = new SavedData(dbName);\n\n sd.IDBGetVersion(dbName, callback);\n }\n\n /**\n * Closes the connection to the database\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBClose(callback) {\n this.savedData.IDBClose(callback);\n }\n /**\n * Closes the connection to the database\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBDeleteDB(dbName, options, callback) {\n const sd = new SavedData(dbName);\n sd.IDBDeleteDB(dbName, options, callback);\n }\n\n}\n","import { SavedDataHandler } from '../SavedDataHandler';\nimport { BasePlugin } from '../base-plugins';\n\n/**\n * @export\n * @class UserDataPlugin\n * @extends {BasePlugin}\n * @property {SavedDataHandler} SavedDataHandler The handler to work with the savedData class\n */\nexport class UserDataPlugin extends BasePlugin {\n /**\n * Creates an instance of UserDataPlugin.\n * @memberof UserDataPlugin\n */\n constructor() {\n super('UserData-Plugin');\n this.onUserDataRemove = this.onUserDataRemove.bind(this);\n this.onUserDataRead = this.onUserDataRead.bind(this);\n this.onUserDataWrite = this.onUserDataWrite.bind(this);\n\n this.onIDBAdd = this.onIDBAdd.bind(this);\n this.onIDBOpen = this.onIDBOpen.bind(this);\n this.onIDBRead = this.onIDBRead.bind(this);\n this.onIDBReadAll = this.onIDBReadAll.bind(this);\n this.onIDBRemove = this.onIDBRemove.bind(this);\n this.onIDBUpdate = this.onIDBUpdate.bind(this);\n this.onIDBUpdate = this.onIDBUpdate.bind(this);\n this.onIDBClose = this.onIDBClose.bind(this);\n this.IDBReadAll = this.onIDBReadAll.bind(this);\n this.onIDBGetVersion = this.onIDBGetVersion.bind(this);\n this.onIDBDeleteDB = this.onIDBDeleteDB.bind(this);\n\n this.savedDataHandler = null;\n }\n\n /**\n *\n * @memberof UserDataPlugin\n */\n init() {\n this.client.on('userDataRemove', this.onUserDataRemove);\n this.client.on('userDataRead', this.onUserDataRead);\n this.client.on('userDataWrite', this.onUserDataWrite);\n\n this.client.on('IDBOpen', this.onIDBOpen);\n this.client.on('IDBRead', this.onIDBRead);\n this.client.on('IDBReadAll', this.onIDBReadAll);\n this.client.on('IDBAdd', this.onIDBAdd);\n this.client.on('IDBRemove', this.onIDBRemove);\n this.client.on('IDBUpdate', this.onIDBUpdate);\n this.client.on('IDBClose', this.onIDBClose);\n this.client.on('IDBGetVersion', this.onIDBGetVersion);\n this.client.on('IDBDeleteDB', this.onIDBDeleteDB);\n }\n\n /**\n * Handler for the userDataRemove event\n * @method onUserDataRemove\n * @private\n * @param {string} data The name of the record to be removed\n * @param {string} type The type of listener for bellhop to send to\n */\n onUserDataRemove({ data, type }) {\n SavedDataHandler.remove(data, () => {\n this.client.send(type);\n });\n }\n\n /**\n * Handler for the userDataRead event\n * @method onUserDataRead\n * @private\n * @param {string} data The name of the record to be removed\n * @param {string} type The type of listener for bellhop to send to\n */\n onUserDataRead({ data, type }) {\n SavedDataHandler.read(data, value => this.client.send(type, value));\n }\n\n /**\n * Handler for the userDataWrite event\n * @method onUserDataWrite\n * @private\n * @param {string} type The type of listener for bellhop to send to\n * @param {string} data.name The name for the record. This is what is used to read or remove the record\n * @param {object | string} data.value The data object with the data and value for the record\n */\n onUserDataWrite({type, data: { name, value } }) {\n\n SavedDataHandler.write(name, value, () => this.client.send(type));\n }\n\n // ----------------------------------------------------------------\n // IndexedDB Manipulation\n // ----------------------------------------------------------------\n\n /**\n * Open a connection with the IDB Database and optionally add or delete\n * Indexes and stores\n * @param {string} dbName The name of your IndexedDB database\n * @param {string} [dbVersion] The version number of the database\n * @param {JSON} [additions] Any additions to the structure of the database\n * @param {array} [additions.stores] Any stores to be added into the database syntax:\n * @param {string} [additions.stores.storeName] The name of the store\n * @param {object} [additions.stores.options] Optionally, the option parameter for the createStore method\n * @param {array} [additions.indexes] Any Indexes to be added to the database syntax:\n * @param {string} [additions.indexes.storeName] The name of the store\n * @param {object} [additions.indexes.options] Optionally, the option parameter for the createIndex method\n * @param {string} type The type of listener for bellhop to send to\n */\n onIDBOpen({type, data: {dbName, dbVersion = null, additions = {}, deletions = {} }}) {\n // Keep an instance open to use on open\n this.savedDataHandler = new SavedDataHandler();\n this.savedDataHandler.IDBOpen( dbName, dbVersion, additions, deletions, value => this.client.send(type, value));\n }\n\n /**\n * Add a record to a given store\n * @param {string} type The type of listener for bellhop to send to\n * @param {string} storeName The name of the store from which the record will be updated\n * @param {*} value The value for the record with the given key to be updated\n * @param {string} key the key of the record to be updated\n */\n onIDBAdd({type, data: { storeName, value, key}}) {\n this.savedDataHandler.IDBAdd(storeName, value, key, value => this.client.send(type, value));\n }\n\n /**\n * Update a record from a given store\n * @param {string} type The type of listener for bellhop to send to\n * @param {string} storeName The name of the store with the record to update\n * @param {string} key The key of the record to be updated\n * @param {*} value The record value\n */\n onIDBUpdate({type, data: { storeName, key, value}}) {\n this.savedDataHandler.IDBUpdate(storeName, key, value, value => this.client.send(type, value));\n }\n\n /**\n * Remove a record from a store\n * @param {string} type The type of listener for bellhop to send to\n * @param {string} storeName The name of the store from which the record will be removed\n * @param {*} key the key of the record to be removed\n */\n onIDBRemove({type, data: {storeName, key}}) {\n this.savedDataHandler.IDBRemove(storeName, key, value => this.client.send(type, value));\n }\n\n /**\n * Return a record from a given store with a given key\n * @param {string} storeName The name of the store to read from\n * @param {string} key The key for the record in the given store\n * @param {string} type The type of listener for bellhop to send to\n */\n onIDBRead({type, data: {storeName, key}}) {\n this.savedDataHandler.IDBRead(storeName, key, value => this.client.send(type, value));\n }\n\n /**\n * Get all records from a store\n * @param {string} storeName The store to get all records from\n * @param {integer} count Optionally the number of records to return\n * @param {string} type The type of listener for bellhop to send to\n */\n onIDBReadAll({ type, data: {storeName, count} }) {\n this.savedDataHandler.IDBReadAll(storeName, count, value => this.client.send(type, value));\n }\n\n /**\n * Get the version of a given database\n * @param {string} dbName The name of the database to return the version of\n * @param {string} type The type of listener for bellhop to send to\n */\n onIDBGetVersion({type, data: {dbName}}) {\n // Create a new instance of savedDataHandler to avoid mutating the current instance\n const sdh = new SavedDataHandler();\n sdh.IDBGetVersion(dbName, value => this.client.send(type, value));\n }\n\n /**\n * Close the connection with the database\n * @param {string} type The type of listener for bellhop to send to\n */\n onIDBClose({type}) {\n this.savedDataHandler.IDBClose(value => this.client.send(type, value));\n }\n /**\n * Close the connection with the database\n * @param type - The type of request being sent\n */\n onIDBDeleteDB({type, data: {dbName, options }}) {\n const sdh = new SavedDataHandler();\n\n\n sdh.IDBDeleteDB(dbName, options, value => this.client.send(type, value));\n }\n}","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class PointerSizePlugin\n * @extends {SliderPlugin}\n * @property {object[]} sliders an array of all slider objects attached to PointerSizePlugin\n * @extends SliderPlugin\n */\nexport class PointerSizePlugin extends SliderPlugin {\n /**\n * Creates an instance of PointerSizePlugin.\n * @param {string | HTMLElement} [pointerSliders] selector string or HTML Element for the input(s)\n * @param {number} [defaultPointerSize=0.5] The default value for the pointer size slider\n * @memberof PointerSizePlugin\n */\n constructor(pointerSliders, { defaultPointerSize = 0.5 } = {}) {\n super(pointerSliders, 'UISize-Pointer-Plugin', { defaultValue: defaultPointerSize, featureName: PointerSizePlugin.pointerSizeKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onPointerSizeChange.bind(this));\n }\n\n }\n\n /**\n * @memberof PointerSizePlugin\n * @param {Event} e\n */\n onPointerSizeChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(PointerSizePlugin.pointerSizeKey, this.currentValue);\n }\n\n\n /**\n * @readonly\n * @static\n * @memberof PointerSizePlugin\n * @return {string}\n */\n static get pointerSizeKey() {\n return 'pointerSize';\n }\n}\n","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class ButtonSizePlugin\n * @property {object[]} sliders An array of slider objects given to ButtonSizePlugin\n * @property {number} currentValue The current button size value\n * @extends {SliderPlugin}\n */\nexport class ButtonSizePlugin extends SliderPlugin {\n /**\n * Creates an instance of ButtonSizePlugin.\n * @param {string | HTMLElement} buttonSliders selector string or html element(s) for the inputs\n * @param {object} options\n * @param {number} [options.defaultButtonSize=0.5]\n * @memberof ButtonSizePlugin\n */\n constructor(buttonSliders, { defaultButtonSize = 0.5 } = {}) {\n super(buttonSliders, 'UISize-Button-Plugin', { defaultValue: defaultButtonSize, featureName: ButtonSizePlugin.buttonSizeKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onButtonSizeChange.bind(this));\n }\n }\n\n /**\n * @memberof ButtonSizePlugin\n * @param {Event} e\n */\n onButtonSizeChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(ButtonSizePlugin.buttonSizeKey, this.currentValue);\n }\n\n /**\n * Get ButtonSize Key\n * @readonly\n * @static\n * @memberof ButtonSizePlugin\n * @returns {string}\n */\n static get buttonSizeKey() {\n return 'buttonSize';\n }\n}\n","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class ControlSensitivityPlugin\n * @property {object[]} sliders an array of all slider objects attached to ControlSensitivityPlugin\n * @extends {SliderPlugin}\n */\nexport class ControlSensitivityPlugin extends SliderPlugin {\n /**\n * Creates an instance of ControlSensitivityPlugin.\n * @param {string | HTMLElement} sensitivitySliders\n * @param {number} [defaultSensitivity=0.5]\n * @memberof ControlSensitivityPlugin\n */\n constructor(sensitivitySliders, { defaultSensitivity = 0.5 } = {}) {\n super(sensitivitySliders, 'Control-Sensitivity-Plugin', {defaultValue: defaultSensitivity, featureName: ControlSensitivityPlugin.controlSensitivityKey});\n\n this.sendAllProperties = this.sendAllProperties.bind(this);\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onControlSensitivityChange.bind(this));\n }\n }\n\n /**\n * @memberof ControlSensitivityPlugin\n * @param {Event} e\n */\n onControlSensitivityChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(ControlSensitivityPlugin.controlSensitivityKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof ControlSensitivityPlugin\n * @returns {string}\n */\n static get controlSensitivityKey() {\n return 'controlSensitivity';\n }\n}\n","import { BasePlugin } from '../base-plugins';\nimport { SavedData } from '../SavedData';\n\n/**\n * @export\n * @class KeyboardMapPlugin\n * @extends {BasePlugin}\n */\nexport class KeyboardMapPlugin extends BasePlugin {\n /**\n * Creates an instance of KeyboardMapPlugin.\n * @param {string | HTMLElement} keyContainers div or similar container element that will contain the re-mappable keys\n * @param {string} [customClassName='springrollContainerKeyBinding__button'] A custom class name that will be applied to the container element\n * @memberof KeyboardMapPlugin\n */\n constructor(keyContainers, {customClassName = 'springrollContainerKeyBinding__button'} = {}) {\n super('Keyboard-Map-Plugin');\n\n this.sendAllProperties = this.sendAllProperties.bind(this);\n //Allows for removing and reading event listeners\n this.bindKey = this.bindKey.bind(this);\n this.onKeyButtonClick = this.onKeyButtonClick.bind(this);\n\n this.className = customClassName;\n\n this.keyContainers =\n keyContainers instanceof HTMLElement\n ? [keyContainers]\n : document.querySelectorAll(keyContainers);\n\n this.keyBindings = {};\n this.buttons = [];\n this.activekeyButton;\n\n this.sendAfterFetch = false;\n this.canEmit = false;\n\n this.keyContainersLength = this.keyContainers.length;\n\n if (this.keyContainersLength <= 0) {\n this.warn('plugin was not provided any valid key binding container elements');\n return;\n }\n }\n\n /**\n * @memberof KeyboardMapPlugin\n * @param {MouseEvent} e\n * Sets up a rebinding of a key once a key button is clicked.\n */\n onKeyButtonClick(e) {\n\n for (let i = 0, l = this.buttons.length; i < l; i++) {\n for (let j = 0; j < this.buttons[i].length; j++) {\n this.buttons[i][j].removeEventListener('click', this.onKeyButtonClick);\n }\n }\n this.activekeyButton = e.target;\n this.activekeyButton.textContent = 'Press Key to Map';\n document.addEventListener('keyup', this.bindKey);\n }\n\n /**\n * @memberof KeyboardMapPlugin\n * @param {KeyboardEvent} key\n * Actually updates the key binding and sends the value. Also\n * replicates the new key across the other keycontainers\n */\n bindKey(key) {\n key.preventDefault(); //prevents space bar from retriggering a keybinding when set.\n\n for (const actionName in this.keyBindings) {\n if (this.keyBindings[actionName].currentKey === key.key.toLowerCase()) {\n this.warn(`${key.key} is already bound`);\n return;\n }\n }\n\n this.activekeyButton.textContent = key.key === ' ' ? 'space' : key.key;\n for (let i = 0; i < this.buttons.length; i++) {\n for (let j = 0; j < this.buttons[i].length; j++) {\n if (this.buttons[i][j].value === this.activekeyButton.value) {\n this.buttons[i][j].textContent = this.activekeyButton.textContent;\n }\n }\n }\n\n this.keyBindings[this.activekeyButton.value].currentKey = key.key;\n\n document.removeEventListener('keyup', this.bindKey);\n for (let i = 0, l = this.buttons.length; i < l; i++) {\n for (let j = 0; j < this.buttons[i].length; j++) {\n this.buttons[i][j].addEventListener('click', this.onKeyButtonClick);\n }\n }\n\n this.sendProperty(KeyboardMapPlugin.keyBindingKey, this.keyBindings);\n }\n\n /**\n * @memberof KeyboardMapPlugin\n */\n init() {\n this.client.on(\n 'features',\n function(features) {\n if (!features.data) {\n return;\n }\n\n if (!features.data.keyBinding) {\n return;\n }\n\n const data = SavedData.read(KeyboardMapPlugin.keyBindingKey);\n\n this.client.fetch('keyBindings', result => {\n for (let j = 0; j < this.keyContainersLength; j++) {\n this.buttons[j] = [];\n\n for (let i = 0, l = result.data.length; i < l; i++) {\n let currentKey = result.data[i].defaultKey.toLowerCase();\n if (data) {\n if (data[result.data[i].actionName]) {\n currentKey = data[result.data[i].actionName].currentKey;\n }\n }\n //only needs to be set up once\n if (j === 0) {\n this.keyBindings[result.data[i].actionName] = {\n defaultKey: result.data[i].defaultKey.toLowerCase(),\n currentKey: currentKey,\n };\n }\n\n this.buttons[j][i] = document.createElement('button');\n this.buttons[j][i].classList.add(this.className);\n this.buttons[j][i].id = `keyBoardMapPlugin-${result.data[i].actionName}`;\n this.buttons[j][i].value = result.data[i].actionName;\n this.buttons[j][i].textContent = result.data[i].defaultKey;\n this.buttons[j][i].addEventListener('click', this.onKeyButtonClick);\n\n this.label = document.createElement('label');\n this.label.htmlFor = `keyBoardMapPlugin-${result.data[i].actionName}`;\n this.label.textContent = result.data[i].actionName;\n\n this.keyContainers[j].appendChild(this.label);\n this.keyContainers[j].appendChild(this.buttons[j][i]);\n }\n }\n\n this.canEmit = true;\n if (this.sendAfterFetch) {\n this.sendAllProperties();\n }\n });\n }.bind(this)\n );\n }\n\n /**\n*\n* Sends initial caption properties to the application\n* @memberof KeyboardMapPlugin\n*/\n sendAllProperties() {\n if (this.canEmit) {\n this.sendProperty(KeyboardMapPlugin.keyBindingKey, this.keyBindings);\n } else {\n this.sendAfterFetch = true;\n }\n }\n\n /**\n * @readonly\n * @static\n * @memberof KeyboardMapPlugin\n * @returns {string}\n */\n static get keyBindingKey() {\n return 'keyBinding';\n }\n}\n","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class LayersPlugin\n * @property {object[]} sliders an array of all slider objects attached to LayersPlugin\n * @extends {SliderPlugin}\n */\nexport class LayersPlugin extends SliderPlugin {\n /**\n * Creates an instance of KeyboardMapPlugin.\n * @param {string | HTMLInputElement} layersSliders selector string or HTML Element for the input(s)\n * @param {number} [defaultValue=0] The default value for the slider\n */\n constructor(layersSliders, { defaultValue = 0 } = {}) {\n super(layersSliders, 'Layer-Plugin', { defaultValue: defaultValue, featureName: LayersPlugin.layersSliderKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onLayerValueChange.bind(this));\n }\n }\n\n /**\n * @memberof LayersPlugin\n * @param {Event} e\n */\n onLayerValueChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(LayersPlugin.layersSliderKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof LayersPlugin\n * @returns {string}\n */\n static get layersSliderKey() {\n return 'removableLayers';\n }\n}\n","import { RadioGroupPlugin } from '../base-plugins';\nimport { SavedData } from '../SavedData';\n\nconst SUPPORTED_POSITIONS = ['top', 'bottom', 'left', 'right'];\n\n/**\n * @export\n * @class HUDPlugin\n * @extends {BasePlugin}\n */\nexport class HUDPlugin extends RadioGroupPlugin {\n /**\n * Creates an instance of HUDPlugin\n * @param {string} hudSelectorRadios selector string or for the input(s)\n * @param {string[]} [defaultValue='top'] default value for the HUD position\n * @memberof HUDPlugin\n */\n constructor(hudSelectorRadios, { defaultValue = SUPPORTED_POSITIONS[0] } = {}) {\n super(hudSelectorRadios, 'HUD-Layout-Plugin', {supportedValues: SUPPORTED_POSITIONS, initialValue: defaultValue, controlName: 'Hud Selector', featureName: HUDPlugin.hudPositionKey, radioCount: SUPPORTED_POSITIONS.length});\n\n this.sendAllProperties = this.sendAllProperties.bind(this);\n this.sendAfterFetch = false;\n this.canEmit = false;\n this.positions = [];\n\n if (this.radioGroupsLength <= 0) {\n this.warn('Plugin was not provided any valid HTML elements');\n }\n\n for (let i = 0; i < this.radioGroupsLength; i++) {\n this.radioGroups[i].enableRadioEvents(this.onHUDSelect.bind(this));\n }\n\n }\n\n /**\n * @memberof HUDPlugin\n * @param {Event} e\n */\n onHUDSelect(e) {\n //return if a radio button is programattically clicked when it is hidden\n if (!this.positions.includes(e.target.value)) {\n for (let i = 0; i < this.radioGroupsLength; i++) {\n this.radioGroups[i].radioGroup[this.currentValue].checked = true;\n }\n return;\n }\n\n this.currentValue = e.target.value;\n\n this.sendProperty(\n HUDPlugin.hudPositionKey,\n this.currentValue\n );\n }\n\n /**\n * @memberof HUDPlugin\n */\n init() {\n this.client.on(\n 'features',\n function(features) {\n if (!features.data || !features.data.hudPosition) {\n return;\n }\n\n if (this.radioGroupsLength <= 0) {\n return;\n }\n //get the game's reported HUD positions to build out positions array\n this.client.fetch('hudPositions', result => {\n for (let i = 0, l = result.data.length; i < l; i++) {\n if (\n !SUPPORTED_POSITIONS.includes(result.data[i].toLowerCase())\n ) {\n this.warn(`${result.data[i]} is an invalid position name`);\n continue;\n }\n\n this.positions.push(result.data[i].toLowerCase());\n }\n\n for (let i = 0; i < this.radioGroupsLength; i++) {\n //Hide any radio buttons that aren't in the game's position list.\n for (const key in this.radioGroups[i].radioGroup) {\n this.radioGroups[i].radioGroup[key].style.display = this.positions.includes(this.radioGroups[i].radioGroup[key].value) ? '' : 'none';\n }\n }\n\n this.canEmit = true;\n if (this.sendAfterFetch) {\n this.sendAllProperties();\n }\n });\n\n }.bind(this)\n );\n }\n\n /**\n * @memberof HUDPlugin\n */\n start() {\n const data = SavedData.read(HUDPlugin.hudPositionKey);\n\n if (SUPPORTED_POSITIONS.includes(data)) {\n this.currentValue = data;\n }\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * Sends initial HUD position properties to the application\n * @memberof HUDPlugin\n */\n sendAllProperties() {\n if (this.canEmit) {\n this.sendProperty(HUDPlugin.hudPositionKey, this.currentValue);\n } else {\n this.sendAfterFetch = true;\n }\n }\n\n /**\n * @static\n * @readonly\n * @memberof HUDPlugin\n * @returns {string}\n */\n static get hudPositionKey() {\n return 'hudPosition';\n }\n}\n","import { RadioGroupPlugin } from '../base-plugins';\nimport { SavedData } from '../SavedData';\n\nconst COLOR_BLIND_TYPES = [\n 'none',\n 'protanopia',\n 'deuteranopia',\n 'tritanopia',\n 'achromatopsia'\n];\n\n/**\n * @export\n * @class ColorVisionPlugin\n * @property {boolean} sendAfterFetch Whether to send the properties after fetch or not\n * @property {boolean} canEmit Whether or not the plugin can send properties\n * @property {string} colors \n * @extends {RadioGroupPlugin}\n */\nexport class ColorVisionPlugin extends RadioGroupPlugin {\n /**\n * Creates an instance of ColorVisionPlugin.\n * @param {string | HTMLElement} colorSelects\n * @param {string } [defaultValue] Default selected value\n * @memberof ColorVision\n */\n constructor(colorVisionRadios, { defaultValue = COLOR_BLIND_TYPES[0] } = {}) {\n super(colorVisionRadios, 'Color-Filter-Plugin', {supportedValues: COLOR_BLIND_TYPES, initialValue: defaultValue, controlName: 'Color Vision Selector', featureName: ColorVisionPlugin.colorVisionKey, radioCount: COLOR_BLIND_TYPES.length});\n\n this.sendAllProperties = this.sendAllProperties.bind(this);\n this.sendAfterFetch = false;\n this.canEmit = false;\n this.colors = [];\n\n if (this.radioGroupsLength <= 0) {\n this.warn('Plugin was not provided any valid HTML elements');\n return;\n }\n\n for (let i = 0; i < this.radioGroupsLength; i++) {\n this.radioGroups[i].enableRadioEvents(this.onColorChange.bind(this));\n }\n }\n\n /**\n * @memberof ColorVisionPlugin\n * @param {Event} e\n */\n onColorChange(e) {\n //return if a radio button is programmatically clicked when it is hidden from the user\n if (!this.colors.includes(e.target.value) ) {\n for (let i = 0; i < this.radioGroupsLength; i++) {\n this.radioGroups[i].radioGroup[this.currentValue].checked = true;\n }\n return;\n }\n this.currentValue = e.target.value;\n\n this.sendProperty(\n ColorVisionPlugin.colorVisionKey,\n this.currentValue\n );\n }\n\n /**\n * @memberof ColorVisionPlugin\n */\n init() {\n this.client.on(\n 'features',\n function(features) {\n if (!features.data || !features.data.colorVision) {\n return;\n }\n if (this.colorDropdownsLength <= 0) {\n return;\n }\n\n //get the game's reported colors to build out accepted filters array\n this.client.fetch('colorFilters', result => {\n for (let i = 0, l = result.data.length; i < l; i++) {\n if (\n !COLOR_BLIND_TYPES.includes(result.data[i].toLowerCase())\n ) {\n this.warn(`${result.data[i]} is an invalid color vision name`);\n continue;\n }\n this.colors.push(result.data[i].toLowerCase());\n }\n\n this.defaultValue = this.colors[0];\n\n for (let i = 0; i < this.radioGroupsLength; i++) {\n //Hide any radio buttons that aren't in the game's filter list.\n for (const key in this.radioGroups[i].radioGroup) {\n this.radioGroups[i].radioGroup[key].style.display = this.colors.includes(this.radioGroups[i].radioGroup[key].value.toLowerCase()) ? '' : 'none';\n }\n }\n\n this.canEmit = true;\n\n if (this.sendAfterFetch) {\n this.sendAllProperties();\n }\n });\n\n }.bind(this)\n );\n }\n\n /**\n * @memberof ColorVisionPlugin\n */\n start() {\n const data = SavedData.read(ColorVisionPlugin.colorVisionKey);\n\n if (COLOR_BLIND_TYPES.includes(data)) {\n this.currentValue = data;\n }\n\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n*\n* Sends initial caption properties to the application\n* @memberof ColorVisionPlugin\n*/\n sendAllProperties() {\n if (this.canEmit) {\n this.sendProperty(ColorVisionPlugin.colorVisionKey, this.currentValue);\n } else {\n this.sendAfterFetch = true;\n }\n }\n\n /**\n * Get the ColorVisionPlugin key\n * @readonly\n * @static\n * @memberof ColorVisionPlugin\n * @returns {string}\n */\n static get colorVisionKey() {\n return 'colorVision';\n }\n\n}\n","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class HitAreaScalePlugin\n * @property {object[]} sliders an array of all slider objects attached to ControlSensitivityPlugin\n * @extends {SliderPlugin}\n * \n */\nexport class HitAreaScalePlugin extends SliderPlugin {\n /**\n * Creates an instance of HitAreaScalePlugin.\n * @param {string | HTMLElement} hitAreaScaleSliders The selector or HTMLElement for the slider\n * @param {number} [defaultHitAreaScale=0.5] The default hit area scale value\n * @memberof HitAreaScalePlugin\n */\n constructor(hitAreaScaleSliders, { defaultHitAreaScale = 0.5 } = {}) {\n super(hitAreaScaleSliders, 'Hit-Area-Scale-Plugin', { defaultValue: defaultHitAreaScale, featureName: HitAreaScalePlugin.hitAreaScaleKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onHitAreaScaleChange.bind(this));\n }\n }\n\n /**\n * @memberof HitAreaScalePlugin\n * @param {Event} target\n * @param {string} control\n */\n onHitAreaScaleChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(HitAreaScalePlugin.hitAreaScaleKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof HitAreaScalePlugin\n * @returns {string}\n */\n static get hitAreaScaleKey() {\n return 'hitAreaScale';\n }\n}\n","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class DragThresholdScalePlugin\n * @extends {SliderPlugin}\n */\nexport class DragThresholdScalePlugin extends SliderPlugin {\n /**\n * Creates an instance of DragThresholdScalePlugin.\n * @param {string | HTMLElement} params.dragThresholdScaleSliders\n * @param {number} [defaultDragThresholdScale=0.5]\n * @memberof DragThresholdScalePlugin\n */\n constructor(dragThresholdScaleSliders, { defaultDragThresholdScale = 0.5 } = {}) {\n super(dragThresholdScaleSliders, 'Drag-Threshold-Scale-Plugin', { defaultValue: defaultDragThresholdScale, featureName: DragThresholdScalePlugin.dragThresholdScaleKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onDragThresholdScaleChange.bind(this));\n }\n }\n\n /**\n * @memberof DragThresholdScalePlugin\n * @param {Event} target\n * @param {string} control\n */\n onDragThresholdScaleChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(DragThresholdScalePlugin.dragThresholdScaleKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof DragThresholdScalePlugin\n * @returns {string}\n */\n static get dragThresholdScaleKey() {\n return 'dragThresholdScale';\n }\n}","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class HealthPlugin\n * @extends {SliderPlugin}\n */\nexport class HealthPlugin extends SliderPlugin {\n /**\n * Creates an instance of HealthPlugin.\n * @param {string | HTMLElement} healthSliders\n * @param {number} [defaultHealth=0.5]\n * @memberof HealthPlugin\n */\n constructor(healthSliders, {defaultHealth = 0.5 } = {}) {\n super(healthSliders, 'Health-Scale-Plugin', { defaultValue:defaultHealth, featureName: HealthPlugin.healthKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onHealthChange.bind(this));\n }\n }\n\n /**\n * @memberof HealthPlugin\n * @param {Event} e\n */\n onHealthChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(HealthPlugin.healthKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof HealthPlugin\n * @returns {string}\n */\n static get healthKey() {\n return 'health';\n }\n}","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class ObjectCountPlugin\n * @property {object[]} sliders an array of all slider objects attached to ObjectCountPlugin\n * @extends {SliderPlugin}\n */\nexport class ObjectCountPlugin extends SliderPlugin {\n /**\n * Creates an instance of ObjectCountPlugin.\n * @param {string | HTMLElement} objectCountSliders selector string or HTML Element for the input(s)\n * @param {number} [defaultObjectCount=0.5] The default value for the slider\n * @memberof ObjectCountPlugin\n */\n constructor(objectCountSliders, { defaultObjectCount = 0.5 } = {}) {\n super(objectCountSliders, 'Object-Count-Plugin', { defaultValue: defaultObjectCount, featureName: ObjectCountPlugin.objectCountKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onObjectCountChange.bind(this));\n }\n }\n\n /**\n * @memberof ObjectCountPlugin\n * @param {Event} target\n * @param {string} control\n */\n onObjectCountChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(ObjectCountPlugin.objectCountKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof ObjectCountPlugin\n * @returns {string}\n */\n static get objectCountKey() {\n return 'objectCount';\n }\n}","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class CompletionPercentagePlugin\n * @property {object[]} sliders an array of all slider objects attached to CompletePercentagePlugin\n * @extends {SliderPlugin}\n */\nexport class CompletionPercentagePlugin extends SliderPlugin {\n /**\n * Creates an instance of CompletionPercentagePlugin.\n * @param {string | HTMLElement} completionPercentageSliders The selector or HTMLSliderElement of the slider\n * @param {number} [defaultCompletionPercentage=0.5] Default selected completion percentage\n * @memberof CompletionPercentagePlugin\n */\n constructor(completionPercentageSliders, { defaultCompletionPercentage = 0.5 } = {}) {\n super(completionPercentageSliders, 'Completion-Percentage-Plugin', { defaultValue: defaultCompletionPercentage, featureName: CompletionPercentagePlugin.completionPercentageKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onCompletionPercentageChange.bind(this));\n }\n }\n\n /**\n * @memberof CompletionPercentagePlugin\n * @param {Event} e\n */\n onCompletionPercentageChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(CompletionPercentagePlugin.completionPercentageKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof CompletionPercentagePlugin\n * @returns {string}\n */\n static get completionPercentageKey() {\n return 'completionPercentage';\n }\n}","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class SpeedScalePlugin\n * @extends {SliderPlugin}\n */\nexport class SpeedScalePlugin extends SliderPlugin {\n /**\n *Creates an instance of SpeedScalePlugin.\n * @param {string | HTMLElement} speedScaleSliders selector string or HTML Element for the input(s)\n * @param {number} [defaultSpeedScale=0.5] The default value for the speed scale slider\n * @memberof SpeedScalePlugin\n */\n constructor(speedScaleSliders, { defaultSpeedScale = 0.5 } = {}) {\n super(speedScaleSliders, 'Speed-Scale-Plugin', { defaultValue: defaultSpeedScale, featureName: SpeedScalePlugin.speedScaleKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onSpeedScaleChange.bind(this));\n }\n }\n\n /**\n * @memberof SpeedScalePlugin\n * @param {Event} e\n */\n onSpeedScaleChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(SpeedScalePlugin.speedScaleKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof SpeedScalePlugin\n * @return {string}\n */\n static get speedScaleKey() {\n return 'speedScale';\n }\n}","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class TimersScalePlugin\n * @property {number} currentValue\n * @extends {SliderPlugin}\n */\nexport class TimersScalePlugin extends SliderPlugin {\n /**\n * Creates an instance of TimersScalePlugin.\n * @param {string | HTMLElement} timersScaleSliders selector string or HTML Element for the input(s)\n * @param {number} [defaultTimersScale=0.5] Default Value for the timer scale slider\n * @memberof TimersScalePlugin\n */\n constructor(timersScaleSliders, { defaultTimersScale = 0.5 } = {}) {\n super(timersScaleSliders, 'Timers-Scale-Plugin', { defaultValue: defaultTimersScale, featureName: TimersScalePlugin.timersScaleKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onTimersScaleChange.bind(this));\n }\n }\n\n /**\n * @memberof TimersScalePlugin\n * @param {Event} e\n */\n onTimersScaleChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(TimersScalePlugin.timersScaleKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof TimersScalePlugin\n * @return {string}\n */\n static get timersScaleKey() {\n return 'timersScale';\n }\n}","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class InputCountPlugin\n * @property {object[]} sliders an array of all slider objects attached to InputCountPlugin\n * @extends {SliderPlugin}\n */\nexport class InputCountPlugin extends SliderPlugin {\n /**\n * Creates an instance of InputCountPlugin.\n * @param {string | HTMLElement} inputCountSliders selector string or HTML Element for the input(s)\n * @param {number} [defaultInputCount=0.5] The default value for the slider\n * @memberof InputCountPlugin\n */\n constructor(inputCountSliders, { defaultInputCount = 0.5 } = {}) {\n super(inputCountSliders, 'Input-Count-Plugin', { defaultValue: defaultInputCount, featureName: InputCountPlugin.inputCountKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onInputCountChange.bind(this));\n }\n }\n\n /**\n * @memberof InputCountPlugin\n * @param {Event} target\n * @param {string} control\n */\n onInputCountChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(InputCountPlugin.inputCountKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof InputCountPlugin\n * @returns {string}\n */\n static get inputCountKey() {\n return 'inputCount';\n }\n}","import { ButtonPlugin } from '../base-plugins/ButtonPlugin';\nimport { Button } from '../ui-elements';\n\n/**\n * A Springroll plugin to easily set up togglable fullscreen\n */\nexport class FullScreenPlugin extends ButtonPlugin {\n \n /**\n * Creates an instance of FullscreenPlugin\n * \n * @param {string | string[]} buttonSelector The selector for the element to be made fullscreen\n */\n constructor(buttonSelector) {\n super({\n name: FullScreenPlugin.fullscreenKey\n }); \n\n this._toggleButtons = [];\n this.iFrame = null;\n\n this.sendAllProperties = this.sendAllProperties.bind(this);\n\n if (Array.isArray(buttonSelector)) {\n // If input is an array, join the selectors into one string\n buttonSelector = buttonSelector.join(', ');\n }\n\n console.log(buttonSelector);\n \n this.toggleButton = document.querySelectorAll(buttonSelector);\n\n\n this.toggleButton.forEach((button) => {\n this._toggleButtons.push(new Button({\n button: button,\n onClick: this.toggleFullScreen.bind(this),\n channel: FullScreenPlugin.fullscreenKey\n }));\n });\n \n\n document.addEventListener('fullscreenchange', () => {\n this.sendAllProperties();\n \n this._toggleButtons.forEach((button) => {\n button.button.classList.toggle('--fullScreen');\n });\n\n });\n }\n\n /**\n * @memberof FullScreenPlugin\n */\n init({ iframe }) {\n this.iFrame = iframe;\n // Handle the features request\n this.client.on(\n 'features',\n function($event) {\n for (let i = 0; i < this.fullscreenElement; i ++) {\n this._toggleButtons[i].displayButton($event.data);\n }\n\n }.bind(this)\n );\n }\n /**\n * @memberof FullScreenPlugin\n */\n start() {\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * Sends initial fullScreen properties to the application\n * @memberof FullScreenTogglePlugin\n */\n sendAllProperties() {\n this.sendProperty(FullScreenPlugin.fullscreenKey, document.fullscreenElement != null ? 'true' : 'false');\n }\n\n /**\n * Toggles fullscreen on this.iFrame. Must be from a user generated event\n */\n toggleFullScreen() {\n if (!document.fullscreenElement) {\n this.iFrame.requestFullscreen().then(() => {\n this.sendAllProperties();\n }).catch((err) => {\n console.log(err);\n });\n } else {\n document.exitFullscreen();\n this.sendAllProperties();\n }\n }\n\n /**\n * Returns true if there is a fullscreen element and false if not\n * @returns { boolean } \n */\n get isFullScreen() {\n return (document.fullscreenElement || // basic\n document.webkitIsFullscreen || //Webkit browsers\n document.mozFullScreen ) // Firefox\n != true; // Ensure boolean output\n }\n\n /** \n * @readonly\n * @static\n * @memberof FullscreenPlugin\n */\n static get fullscreenKey() {\n return 'fullScreen';\n }\n}"],"names":["global","globalThis","self","support","Symbol","Blob","e","viewClasses","isArrayBufferView","ArrayBuffer","isView","obj","indexOf","Object","prototype","toString","call","normalizeName","name","String","test","TypeError","toLowerCase","normalizeValue","value","iteratorFor","items","iterator","next","shift","done","undefined","Headers","headers","this","map","forEach","append","Array","isArray","header","getOwnPropertyNames","consumed","body","bodyUsed","Promise","reject","fileReaderReady","reader","resolve","onload","result","onerror","error","readBlobAsArrayBuffer","blob","FileReader","promise","readAsArrayBuffer","bufferClone","buf","slice","view","Uint8Array","byteLength","set","buffer","Body","_initBody","_bodyInit","_bodyText","isPrototypeOf","_bodyBlob","FormData","_bodyFormData","URLSearchParams","DataView","_bodyArrayBuffer","get","type","rejected","Error","arrayBuffer","isConsumed","byteOffset","then","text","readAsText","readBlobAsText","chars","length","i","fromCharCode","join","readArrayBufferAsText","formData","decode","json","JSON","parse","oldValue","has","hasOwnProperty","callback","thisArg","keys","push","values","entries","methods","Request","input","options","url","credentials","method","mode","signal","upcased","toUpperCase","normalizeMethod","referrer","cache","reParamSearch","replace","Date","getTime","form","trim","split","bytes","decodeURIComponent","Response","bodyInit","status","ok","statusText","clone","response","redirectStatuses","redirect","RangeError","location","DOMException","err","message","stack","create","constructor","fetch","init","request","aborted","xhr","XMLHttpRequest","abortXhr","abort","rawHeaders","getAllResponseHeaders","substr","line","parts","key","responseURL","responseText","setTimeout","ontimeout","onabort","open","href","fixUrl","withCredentials","responseType","setRequestHeader","addEventListener","onreadystatechange","readyState","removeEventListener","send","polyfill","check","it","Math","window","Function","domIterables","CSSRuleList","CSSStyleDeclaration","CSSValueList","ClientRectList","DOMRectList","DOMStringList","DOMTokenList","DataTransferItemList","FileList","HTMLAllCollection","HTMLCollection","HTMLFormElement","HTMLSelectElement","MediaList","MimeTypeArray","NamedNodeMap","NodeList","PaintRequestList","Plugin","PluginArray","SVGLengthList","SVGNumberList","SVGPathSegList","SVGPointList","SVGStringList","SVGTransformList","SourceBufferList","StyleSheetList","TextTrackCueList","TextTrackList","TouchList","documentAll","document","all","documentAll_1","IS_HTMLDDA","require$$0","isCallable","argument","require$$1","isObject","EXISTS","createElement","documentCreateElement","classList","DOMTokenListPrototype","domTokenListPrototype","fails","exec","functionBindNative","bind","NATIVE_BIND","FunctionPrototype","uncurryThisWithBind","functionUncurryThis","fn","apply","arguments","uncurryThis","stringSlice","classofRaw","functionUncurryThisClause","$String","tryToString","$TypeError","aCallable","require$$2","functionBindContext","that","classof","$Object","indexedObject","propertyIsEnumerable","isNullOrUndefined","requireObjectCoercible","toObject","ceil","floor","mathTrunc","trunc","x","n","toIntegerOrInfinity","number","min","toLength","lengthOfArrayLike","defineProperty","defineGlobalProperty","configurable","writable","SHARED","sharedStore","store","sharedModule","version","copyright","license","source","match","hasOwnProperty_1","hasOwn","id","postfix","random","uid","engineUserAgent","navigator","userAgent","process","Deno","versions","v8","engineV8Version","V8_VERSION","symbolConstructorDetection","getOwnPropertySymbols","symbol","sham","useSymbolAsUid","shared","require$$3","NATIVE_SYMBOL","require$$4","USE_SYMBOL_AS_UID","require$$5","WellKnownSymbolsStore","createWellKnownSymbol","withoutSetter","wellKnownSymbol","toStringTagSupport","TO_STRING_TAG_SUPPORT","TO_STRING_TAG","CORRECT_ARGUMENTS","O","tag","tryGet","callee","getBuiltIn","namespace","functionToString","inspectSource","noop","empty","construct","constructorRegExp","INCORRECT_TO_STRING","isConstructorModern","isConstructorLegacy","isConstructor","called","SPECIES","$Array","arraySpeciesConstructor","originalArray","C","arraySpeciesCreate","IndexedObject","createMethod","TYPE","IS_MAP","IS_FILTER","IS_SOME","IS_EVERY","IS_FIND_INDEX","IS_FILTER_REJECT","NO_HOLES","$this","callbackfn","specificCreate","boundFunction","index","target","arrayIteration","filter","some","every","find","findIndex","filterReject","arrayMethodIsStrict","METHOD_NAME","$forEach","arrayForEach","descriptors","ie8DomDefine","a","v8PrototypeDefineBug","anObject","functionCall","objectIsPrototypeOf","isSymbol","$Symbol","getMethod","V","P","func","ordinaryToPrimitive","pref","val","valueOf","TO_PRIMITIVE","toPrimitive","exoticToPrim","toPropertyKey","DESCRIPTORS","IE8_DOM_DEFINE","V8_PROTOTYPE_DEFINE_BUG","$defineProperty","$getOwnPropertyDescriptor","getOwnPropertyDescriptor","ENUMERABLE","CONFIGURABLE","WRITABLE","objectDefineProperty","f","Attributes","current","enumerable","createPropertyDescriptor","bitmap","definePropertyModule","createNonEnumerableProperty","object","DOMIterables","handlePrototype","CollectionPrototype","COLLECTION_NAME","handlePrototype$1","toIndexedObject","max","toAbsoluteIndex","integer","IS_INCLUDES","el","fromIndex","arrayIncludes","includes","hiddenKeys","objectKeysInternal","names","enumBugKeys","internalObjectKeys","objectKeys","objectDefineProperties","defineProperties","Properties","props","activeXDocument","html","sharedKey","definePropertiesModule","PROTOTYPE","SCRIPT","IE_PROTO","require$$6","EmptyConstructor","scriptTag","content","LT","NullProtoObjectViaActiveX","write","close","temp","parentWindow","NullProtoObject","ActiveXObject","iframeDocument","iframe","JS","domain","style","display","appendChild","src","contentWindow","F","objectCreate","UNSCOPABLES","ArrayPrototype","addToUnscopables","iterators","WeakMap","NATIVE_WEAK_MAP","require$$7","OBJECT_ALREADY_INITIALIZED","state","metadata","facade","STATE","internalState","enforce","getterFor","$propertyIsEnumerable","NASHORN_BUG","objectPropertyIsEnumerable","descriptor","propertyIsEnumerableModule","objectGetOwnPropertyDescriptor","getDescriptor","functionName","PROPER","CONFIGURABLE_FUNCTION_NAME","enforceInternalState","getInternalState","CONFIGURABLE_LENGTH","TEMPLATE","makeBuiltIn","makeBuiltInModule","exports","getter","setter","arity","defineBuiltIn","simple","unsafe","nonConfigurable","nonWritable","concat","objectGetOwnPropertyNames","objectGetOwnPropertySymbols","IteratorPrototype","PrototypeOfArrayIteratorPrototype","arrayIterator","getOwnPropertyNamesModule","getOwnPropertySymbolsModule","ownKeys","getOwnPropertyDescriptorModule","replacement","isForced","feature","detection","data","normalize","POLYFILL","NATIVE","string","isForced_1","copyConstructorProperties","exceptions","_export","targetProperty","sourceProperty","TARGET","GLOBAL","STATIC","stat","dontCallGetSet","forced","correctPrototypeGetter","getPrototypeOf","CORRECT_PROTOTYPE_GETTER","ObjectPrototype","objectGetPrototypeOf","ITERATOR","BUGGY_SAFARI_ITERATORS","NEW_ITERATOR_PROTOTYPE","iteratorsCore","setToStringTag","TAG","Iterators","returnThis","uncurryThisAccessor","aPossiblePrototype","objectSetPrototypeOf","setPrototypeOf","CORRECT_SETTER","proto","__proto__","$","createIteratorConstructor","IteratorConstructor","NAME","ENUMERABLE_NEXT","require$$8","require$$9","require$$10","require$$12","PROPER_FUNCTION_NAME","require$$13","require$$11","KEYS","VALUES","ENTRIES","iteratorDefine","Iterable","DEFAULT","IS_SET","FORCED","CurrentIteratorPrototype","KEY","getIterationMethod","KIND","defaultIterator","IterablePrototype","INCORRECT_VALUES_NAME","nativeIterator","anyNativeIterator","createIterResultObject","InternalStateModule","defineIterator","ARRAY_ITERATOR","setInternalState","es_array_iterator","iterated","kind","Arguments","addToUnscopables$2","ArrayIteratorMethods","ArrayValues","path","$indexOf","nativeIndexOf","NEGATIVE_ZERO","searchElement","createProperty","propertyKey","arrayMethodHasSpeciesSupport","array","foo","Boolean","doesNotExceedSafeInteger","IS_CONCAT_SPREADABLE","IS_CONCAT_SPREADABLE_SUPPORT","isConcatSpreadable","spreadable","arg","k","len","E","A","$assign","assign","objectAssign","b","B","alphabet","chr","T","argumentsLength","S","j","$location","defer","channel","port","engineIsNode","defineBuiltInAccessor","setSpecies","CONSTRUCTOR_NAME","Constructor","anInstance","Prototype","aConstructor","functionApply","Reflect","arraySlice","engineIsIos","validateArgumentsLength","passed","required","IS_IOS","IS_NODE","setImmediate","clear","clearImmediate","Dispatch","MessageChannel","counter","queue","ONREADYSTATECHANGE","run","runner","eventListener","event","globalPostMessageDefer","postMessage","protocol","host","handler","args","nextTick","now","port2","port1","onmessage","importScripts","removeChild","task","Queue","head","tail","Queue$2","add","item","entry","notify","toggle","node","engineIsIosPebble","Pebble","engineIsWebosWebkit","macrotask","IS_IOS_PEBBLE","IS_WEBOS_WEBKIT","MutationObserver","WebKitMutationObserver","queueMicrotaskDescriptor","microtask","flush","parent","exit","enter","createTextNode","observe","characterData","microtask_1","perform","promiseNativeConstructor","engineIsDeno","engineIsBrowser","NativePromiseConstructor","IS_BROWSER","IS_DENO","NativePromiseConstructor$3","SUBCLASSING","NATIVE_PROMISE_REJECTION_EVENT","PromiseRejectionEvent","FORCED_PROMISE_CONSTRUCTOR","PROMISE_CONSTRUCTOR_SOURCE","GLOBAL_CORE_JS_PROMISE","FakePromise","promiseConstructorDetection","CONSTRUCTOR","REJECTION_EVENT","PromiseCapability","$$resolve","$$reject","newPromiseCapability","Internal","OwnPromiseCapability","nativeThen","speciesConstructor","defaultConstructor","require$$14","require$$15","hostReportErrors","console","require$$17","require$$18","require$$19","require$$20","newPromiseCapabilityModule","require$$22","PROMISE","require$$21","NATIVE_PROMISE_SUBCLASSING","getInternalPromiseState","NativePromisePrototype","PromiseConstructor","PromisePrototype","newGenericPromiseCapability","DISPATCH_EVENT","createEvent","dispatchEvent","UNHANDLED_REJECTION","isThenable","callReaction","reaction","exited","fail","rejection","onHandleUnhandled","isReject","notified","reactions","onUnhandled","reason","initEvent","isUnhandled","emit","unwrap","internalReject","internalResolve","wrapper","executor","onFulfilled","onRejected","PromiseWrapper","wrap","setSpecies$1","getIteratorMethod","isArrayIteratorMethod","getIterator","usingIterator","iteratorMethod","iteratorClose","innerResult","innerError","Result","stopped","ResultPrototype","iterate","iterable","unboundFunction","iterFn","step","AS_ENTRIES","IS_RECORD","IS_ITERATOR","INTERRUPTED","stop","condition","callFn","SAFE_CLOSING","iteratorWithReturn","return","from","checkCorrectnessOfIteration","SKIP_CLOSING","ITERATION_SUPPORT","promiseStaticsIncorrectIteration","capability","$promiseResolve","remaining","alreadyCalled","real","catch","race","r","promiseResolve","promiseCapability","re1","re2","regexpFlags","hasIndices","ignoreCase","multiline","dotAll","unicode","unicodeSets","sticky","$RegExp","RegExp","UNSUPPORTED_Y","re","lastIndex","MISSED_STICKY","regexpStickyHelpers","BROKEN_CARET","regexpUnsupportedDotAll","flags","regexpUnsupportedNcg","groups","stickyHelpers","UNSUPPORTED_DOT_ALL","UNSUPPORTED_NCG","nativeReplace","nativeExec","patchedExec","charAt","UPDATES_LAST_INDEX_WRONG","NPCG_INCLUDED","reCopy","group","str","raw","charsAdded","strCopy","Features","_classCallCheck","_createClass","canvas","getContext","Worker","msPointerEnabled","msMaxTouchPoints","pointerEnabled","maxTouchPoints","webaudio","htmlAudio","capabilities","basic","features","ui","sizes","touch","size","screen","width","height","xsmall","small","medium","large","xlarge","webgl","webAudio","charCodeAt","CONVERT_TO_STRING","pos","first","second","position","codeAt","STRING_ITERATOR","point","$filter","$find","FIND","SKIPS_HOLES","addToUnscopables$1","t","PluginManager","_ref","_ref$plugins","plugins","client","Bellhop","preloading","hidden","receive","hiddenSend","_this","preloads","_loop","preload","preloadFailed","warn","l","plugin","trigger","start","Container","_PluginManager","_inherits","_openRemote","_super","_createSuper","iframeOrSelector","_ref$context","context","HTMLIFrameElement","querySelector","backgroundColor","loaded","loading","release","_context","onLoading","_assertThisInitialized","onLoadDone","onEndGame","onLocalError","initClient","setupPlugins","remove","reset","$event","setAttribute","on","connect","userPath","_this2","_ref2","_ref2$singlePlay","singlePlay","_ref2$playOptions","playOptions","_internalOpen","playOptionsQueryString","encodeURIComponent","stringify","respond","_typeof","_asyncToGenerator","_regeneratorRuntime","mark","_callee","api","_ref3","_ref3$query","query","_ref3$singlePlay","_ref3$playOptions","_args","prev","sent","success","_x","newContext","PageVisibility","onFocus","onBlur","_onFocus","_onBlur","enabled","_enabled","onToggle","enable","$includes","whitespaces","ltrim","rtrim","stringTrim","end","$trim","forcedStringTrimMethod","regExpFlags","RegExpPrototype","$toString","getRegExpFlags","R","TO_STRING","nativeToString","NOT_GENERIC","INCORRECT_NAME","SavedData","dbName","db","dbVersion","additions","deletions","indexedDB","onsuccess","onupgradeneeded","stores","createObjectStore","storeName","indexes","transaction","objectStore","createIndex","indexName","keyPath","deleteIndex","deleteObjectStore","deleteDatabase","IDBOpen","tx","oncomplete","updateRequest","put","delete","_this3","readRequest","_this4","count","getAllKeys","getAll","dBOpenRequest","localStorage","removeItem","sessionStorage","setItem","getItem","BasePlugin","_preload","sendAllProperties","_","prop","disableSend","warningText","ButtonPlugin","_BasePlugin","sendMutes","container","button","HTMLButtonElement","muted","changeMutedState","sendProperty","htmlButton","HTMLElement","MATCH","isRegExp","notARegExp","correctIsRegExpLogic","regexp","error1","error2","stringIndexOf","searchString","$getOwnPropertyNames","fin","windowNames","objectGetOwnPropertyNamesExternal","getWindowNames","arrayBufferNonExtensible","isExtensible","ARRAY_BUFFER_NON_EXTENSIBLE","$isExtensible","objectIsExtensible","freezing","preventExtensions","getOwnPropertyNamesExternalModule","FREEZING","REQUIRED","METADATA","setMetadata","objectID","weakData","meta","internalMetadataModule","splice","fastKey","getWeakData","onFreeze","inheritIfRequired","dummy","Wrapper","NewTarget","NewTargetPrototype","InternalMetadataModule","defineBuiltIns","internalStateGetterFor","collectionStrong","getConstructor","ADDER","last","define","previous","getEntry","removed","setStrong","ITERATOR_NAME","getInternalCollectionState","getInternalIteratorState","common","IS_WEAK","NativeConstructor","NativePrototype","exported","fixMethod","uncurriedNativeMethod","instance","HASNT_CHAINING","THROWS_ON_PRIMITIVES","ACCEPT_ITERABLES","BUGGY_ZERO","$instance","collection","nativeKeys","$map","TO_ENTRIES","$values","RadioGroup","selector","controlName","_ref$featureName","featureName","defaultValue","pluginName","radioElements","querySelectorAll","radioGroup","_possibleConstructorReturn","radio","checked","valuesArray","_toConsumableArray","Set","callBack","RadioGroupPlugin","cssSelector","supportedValues","initialValue","radioCount","selectors","_currentValue","radioGroups","setUpRadios","radioGroupsLength","hasOnly","hasDuplicateValues","property","newValue","thisNumberValue","require$$16","NUMBER","NativeNumber","NumberPrototype","toNumber","third","radix","maxCode","digits","code","NaN","parseInt","NumberWrapper","primValue","toNumeric","Number","Slider","slider","control","_ref$min","_ref$max","_ref$step","_ref$defaultValue","sliderValue","setUpSlider","read","Button","onClick","className","SliderPlugin","_ref$minValue","minValue","_ref$maxValue","maxValue","sliders","setUpSliders","slidersLength","displaySlider","currentValue","sliderRange","DEFAULT_CAPTIONS_STYLES","background","color","edge","font","align","DEFAULT_COLOR_STYLE","INVERTED_COLOR_STYLE","FONT_SIZE_VALUES","COLOR_VALUES","ALIGN_VALUES","CaptionsStylePlugin","_ButtonPlugin","fontSizeRadios","colorRadios","alignmentRadios","_ref$defaultFontSize","defaultFontSize","_ref$defaultColor","defaultColor","_ref$defaultAlignment","defaultAlignment","captionsStyles","captionStyleKey","fontSizeSelectors","colorSelectors","alignmentSelectors","setUpFontSizeRadios","setUpColorRadios","setUpAlignmentRadios","_captionsMuted","alignmentRadiosLength","fontSizeRadiosLength","colorRadiosLength","enableRadioEvents","onColorChange","onAlignmentChange","onFontSizeChange","_step","_iterator","_createForOfIteratorHelper","radios","s","displayRadios","setCaptionsStyles","styles","_step2","_iterator2","resetState","_this5","CaptionsTogglePlugin","captionsButtons","_captionsButtons","captionsButtonClick","captionsButtonLength","displayButton","captionsToggleKey","captionsMuted","_setMuteProp","HelpPlugin","helpButtons","_helpButtons","helpButtonClick","paused","_helpEnabled","onPause","helpButtonsLength","helpEnabled","getAttribute","hints","PausePlugin","pauseButton","manageOwnVisibility","_manageOwnVisibility","_appBlurred","_containerBlurred","_focusTimer","_isManualPause","_keepFocus","_paused","focusApp","manageFocus","onKeepFocus","onPauseToggle","pauseDisabled","_pauseButton","pageVisibility","onContainerFocus","onContainerBlur","pauseKey","hasDom","focus","blur","blurApp","clearTimeout","pause","disablePause","buttons","SoundPlugin","soundButtons","musicButtons","sfxButtons","voButtons","soundSliders","musicSliders","sfxSliders","voSliders","saved","soundMutedKey","_soundMuted","_musicMuted","_voMuted","_sfxMuted","_musicMutedByUser","_soundMutedByUser","_sfxMutedByUser","_voMutedByUser","soundMuteEnabled","musicMuteEnabled","sfxMuteEnabled","voMuteEnabled","soundVolume","musicVolume","sfxVolume","voVolume","soundVolumeKey","newSlider","musicVolumeKey","sfxVolumeKey","voVolumeKey","onSoundToggle","soundKey","onMusicToggle","onSFXToggle","onVOToggle","soundSlidersLength","musicSlidersLength","sfxSlidersLength","voSlidersLength","soundButtonsLength","musicButtonsLength","sfxButtonsLength","voButtonsLength","enableSliderEvents","onSoundVolumeChange","onMusicVolumeChange","onSFXVolumeChange","onVOVolumeChange","soundMuted","musicMuted","sfxMuted","voMuted","_checkSoundMute","element","sound","music","sfx","vo","soundVolumeEnabled","musicVolumeEnabled","sfxVolumeEnabled","voVolumeEnabled","enableButton","musicMutedKey","sfxMutedKey","voMutedKey","setMuteProp","_soundButton","_musicButton","_sfxButton","_voButton","SavedDataHandler","savedData","record","IDBAdd","IDBUpdate","IDBRemove","IDBRead","IDBReadAll","IDBGetVersion","IDBClose","IDBDeleteDB","UserDataPlugin","onUserDataRemove","onUserDataRead","onUserDataWrite","onIDBAdd","onIDBOpen","onIDBRead","onIDBReadAll","onIDBRemove","onIDBUpdate","onIDBClose","onIDBGetVersion","onIDBDeleteDB","savedDataHandler","_ref3$data","_ref4","_ref4$data","_ref4$data$dbVersion","_ref4$data$additions","_ref4$data$deletions","_ref5","_this6","_ref5$data","_ref6","_this7","_ref6$data","_ref7","_this8","_ref7$data","_ref8","_this9","_ref8$data","_ref9","_this10","_ref9$data","_ref10","_this11","_ref11","_this12","_ref12","_this13","_ref12$data","PointerSizePlugin","_SliderPlugin","pointerSliders","_ref$defaultPointerSi","defaultPointerSize","pointerSizeKey","onPointerSizeChange","ButtonSizePlugin","buttonSliders","_ref$defaultButtonSiz","defaultButtonSize","buttonSizeKey","onButtonSizeChange","ControlSensitivityPlugin","sensitivitySliders","_ref$defaultSensitivi","defaultSensitivity","controlSensitivityKey","onControlSensitivityChange","KeyboardMapPlugin","keyContainers","_ref$customClassName","customClassName","bindKey","onKeyButtonClick","keyBindings","activekeyButton","sendAfterFetch","canEmit","keyContainersLength","textContent","actionName","preventDefault","currentKey","keyBindingKey","keyBinding","defaultKey","label","htmlFor","LayersPlugin","layersSliders","layersSliderKey","onLayerValueChange","SUPPORTED_POSITIONS","HUDPlugin","_RadioGroupPlugin","hudSelectorRadios","hudPositionKey","positions","onHUDSelect","hudPosition","COLOR_BLIND_TYPES","ColorVisionPlugin","colorVisionRadios","colorVisionKey","colors","colorVision","colorDropdownsLength","HitAreaScalePlugin","hitAreaScaleSliders","_ref$defaultHitAreaSc","defaultHitAreaScale","hitAreaScaleKey","onHitAreaScaleChange","DragThresholdScalePlugin","dragThresholdScaleSliders","_ref$defaultDragThres","defaultDragThresholdScale","dragThresholdScaleKey","onDragThresholdScaleChange","HealthPlugin","healthSliders","_ref$defaultHealth","defaultHealth","healthKey","onHealthChange","ObjectCountPlugin","objectCountSliders","_ref$defaultObjectCou","defaultObjectCount","objectCountKey","onObjectCountChange","CompletionPercentagePlugin","completionPercentageSliders","_ref$defaultCompletio","defaultCompletionPercentage","completionPercentageKey","onCompletionPercentageChange","SpeedScalePlugin","speedScaleSliders","_ref$defaultSpeedScal","defaultSpeedScale","speedScaleKey","onSpeedScaleChange","TimersScalePlugin","timersScaleSliders","_ref$defaultTimersSca","defaultTimersScale","timersScaleKey","onTimersScaleChange","InputCountPlugin","inputCountSliders","_ref$defaultInputCoun","defaultInputCount","inputCountKey","onInputCountChange","FullScreenPlugin","buttonSelector","fullscreenKey","_toggleButtons","iFrame","log","toggleButton","toggleFullScreen","fullscreenElement","exitFullscreen","requestFullscreen","webkitIsFullscreen","mozFullScreen"],"mappings":"gQAAA,IAAIA,EACqB,oBAAfC,YAA8BA,YACrB,oBAATC,MAAwBA,WACb,IAAXF,GAA0BA,EAEhCG,EACY,oBAAqBH,EADjCG,EAEQ,WAAYH,GAAU,aAAcI,OAF5CD,EAIA,eAAgBH,GAChB,SAAUA,GACT,WACC,IAEE,OADA,IAAIK,MACG,CACR,CAAC,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a,KAAKg+C,OAAS5jC,EAEdpa,KAAKq2B,OAAO2C,GACV,WACA,SAASF,GACP,IAAK,IAAIr1B,EAAI,EAAGA,EAAIzD,KAAKo+C,kBAAmB36C,IAC1CzD,KAAK+9C,eAAet6C,GAAGgpC,cAAc3T,EAAO1a,KAGhD,EAAE1R,KAAK1M,MAEX,GACA,CAAAgI,IAAA,QAAA1I,MAGA,WACEU,KAAKq2B,OAAO2C,GAAG,SAAUh5B,KAAKk/B,mBAC9Bl/B,KAAKq2B,OAAO2C,GAAG,WAAYh5B,KAAKk/B,kBAClC,GAEA,CAAAl3B,IAAA,oBAAA1I,MAKA,WACEU,KAAK+/B,aAAa6d,EAAiBE,cAA6C,MAA9BtyC,SAAS4yC,kBAA4B,OAAS,QAClG,GAEA,CAAAp2C,IAAA,mBAAA1I,MAGA,WAAmB,IAAA65B,EAAAn5B,KACZwL,SAAS4yC,mBAOZ5yC,SAAS6yC,iBACTr+C,KAAKk/B,qBAPLl/B,KAAKg+C,OAAOM,oBAAoBn7C,MAAK,WACnCg2B,EAAK+F,mBACP,IAAGvO,OAAM,SAAC7pB,GACR6kB,QAAQsyB,IAAIn3C,EACd,GAKJ,GAEA,CAAAkB,IAAA,eAAApF,IAIA,WACE,OAGK,IAHG4I,SAAS4yC,mBACf5yC,SAAS+yC,oBACT/yC,SAASgzC,cAEb,IAEA,CAAA,CAAAx2C,IAAA,gBAAApF,IAKA,WACE,MAAO,YACT,KAACg7C,CAAA,EAjHmCre"} \ No newline at end of file +{"version":3,"file":"SpringRoll-Container-umd.js","sources":["../node_modules/whatwg-fetch/fetch.js","../node_modules/core-js/internals/global.js","../node_modules/core-js/internals/dom-iterables.js","../node_modules/core-js/internals/document-all.js","../node_modules/core-js/internals/is-callable.js","../node_modules/core-js/internals/is-object.js","../node_modules/core-js/internals/document-create-element.js","../node_modules/core-js/internals/dom-token-list-prototype.js","../node_modules/core-js/internals/fails.js","../node_modules/core-js/internals/function-bind-native.js","../node_modules/core-js/internals/function-uncurry-this.js","../node_modules/core-js/internals/classof-raw.js","../node_modules/core-js/internals/function-uncurry-this-clause.js","../node_modules/core-js/internals/try-to-string.js","../node_modules/core-js/internals/a-callable.js","../node_modules/core-js/internals/function-bind-context.js","../node_modules/core-js/internals/indexed-object.js","../node_modules/core-js/internals/is-null-or-undefined.js","../node_modules/core-js/internals/require-object-coercible.js","../node_modules/core-js/internals/to-object.js","../node_modules/core-js/internals/math-trunc.js","../node_modules/core-js/internals/to-integer-or-infinity.js","../node_modules/core-js/internals/to-length.js","../node_modules/core-js/internals/length-of-array-like.js","../node_modules/core-js/internals/is-array.js","../node_modules/core-js/internals/define-global-property.js","../node_modules/core-js/internals/shared-store.js","../node_modules/core-js/internals/shared.js","../node_modules/core-js/internals/engine-v8-version.js","../node_modules/core-js/internals/has-own-property.js","../node_modules/core-js/internals/uid.js","../node_modules/core-js/internals/engine-user-agent.js","../node_modules/core-js/internals/symbol-constructor-detection.js","../node_modules/core-js/internals/use-symbol-as-uid.js","../node_modules/core-js/internals/well-known-symbol.js","../node_modules/core-js/internals/to-string-tag-support.js","../node_modules/core-js/internals/classof.js","../node_modules/core-js/internals/get-built-in.js","../node_modules/core-js/internals/inspect-source.js","../node_modules/core-js/internals/is-constructor.js","../node_modules/core-js/internals/array-species-constructor.js","../node_modules/core-js/internals/array-species-create.js","../node_modules/core-js/internals/array-iteration.js","../node_modules/core-js/internals/array-method-is-strict.js","../node_modules/core-js/internals/array-for-each.js","../node_modules/core-js/internals/descriptors.js","../node_modules/core-js/internals/ie8-dom-define.js","../node_modules/core-js/internals/v8-prototype-define-bug.js","../node_modules/core-js/internals/an-object.js","../node_modules/core-js/internals/function-call.js","../node_modules/core-js/internals/object-is-prototype-of.js","../node_modules/core-js/internals/is-symbol.js","../node_modules/core-js/internals/get-method.js","../node_modules/core-js/internals/ordinary-to-primitive.js","../node_modules/core-js/internals/to-primitive.js","../node_modules/core-js/internals/to-property-key.js","../node_modules/core-js/internals/object-define-property.js","../node_modules/core-js/internals/create-property-descriptor.js","../node_modules/core-js/internals/create-non-enumerable-property.js","../node_modules/core-js/modules/web.dom-collections.for-each.js","../node_modules/core-js/internals/to-indexed-object.js","../node_modules/core-js/internals/to-absolute-index.js","../node_modules/core-js/internals/array-includes.js","../node_modules/core-js/internals/hidden-keys.js","../node_modules/core-js/internals/object-keys-internal.js","../node_modules/core-js/internals/enum-bug-keys.js","../node_modules/core-js/internals/object-keys.js","../node_modules/core-js/internals/object-define-properties.js","../node_modules/core-js/internals/html.js","../node_modules/core-js/internals/object-create.js","../node_modules/core-js/internals/shared-key.js","../node_modules/core-js/internals/add-to-unscopables.js","../node_modules/core-js/internals/internal-state.js","../node_modules/core-js/internals/iterators.js","../node_modules/core-js/internals/weak-map-basic-detection.js","../node_modules/core-js/internals/object-property-is-enumerable.js","../node_modules/core-js/internals/object-get-own-property-descriptor.js","../node_modules/core-js/internals/function-name.js","../node_modules/core-js/internals/make-built-in.js","../node_modules/core-js/internals/define-built-in.js","../node_modules/core-js/internals/object-get-own-property-names.js","../node_modules/core-js/internals/object-get-own-property-symbols.js","../node_modules/core-js/internals/own-keys.js","../node_modules/core-js/internals/iterators-core.js","../node_modules/core-js/internals/copy-constructor-properties.js","../node_modules/core-js/internals/is-forced.js","../node_modules/core-js/internals/export.js","../node_modules/core-js/internals/correct-prototype-getter.js","../node_modules/core-js/internals/object-get-prototype-of.js","../node_modules/core-js/internals/set-to-string-tag.js","../node_modules/core-js/internals/iterator-create-constructor.js","../node_modules/core-js/internals/function-uncurry-this-accessor.js","../node_modules/core-js/internals/a-possible-prototype.js","../node_modules/core-js/internals/object-set-prototype-of.js","../node_modules/core-js/internals/iterator-define.js","../node_modules/core-js/internals/create-iter-result-object.js","../node_modules/core-js/modules/es.array.iterator.js","../node_modules/core-js/modules/web.dom-collections.iterator.js","../node_modules/core-js/internals/path.js","../node_modules/core-js/modules/es.array.index-of.js","../node_modules/core-js/internals/does-not-exceed-safe-integer.js","../node_modules/core-js/internals/create-property.js","../node_modules/core-js/internals/array-method-has-species-support.js","../node_modules/core-js/modules/es.array.concat.js","../node_modules/core-js/internals/object-assign.js","../node_modules/core-js/modules/es.object.assign.js","../node_modules/core-js/internals/object-to-string.js","../node_modules/core-js/modules/es.object.to-string.js","../node_modules/core-js/internals/engine-is-node.js","../node_modules/core-js/internals/task.js","../node_modules/core-js/internals/define-built-in-accessor.js","../node_modules/core-js/internals/set-species.js","../node_modules/core-js/internals/an-instance.js","../node_modules/core-js/internals/a-constructor.js","../node_modules/core-js/internals/species-constructor.js","../node_modules/core-js/internals/function-apply.js","../node_modules/core-js/internals/array-slice.js","../node_modules/core-js/internals/validate-arguments-length.js","../node_modules/core-js/internals/engine-is-ios.js","../node_modules/core-js/internals/queue.js","../node_modules/core-js/internals/microtask.js","../node_modules/core-js/internals/engine-is-ios-pebble.js","../node_modules/core-js/internals/engine-is-webos-webkit.js","../node_modules/core-js/internals/perform.js","../node_modules/core-js/internals/promise-native-constructor.js","../node_modules/core-js/internals/engine-is-deno.js","../node_modules/core-js/internals/engine-is-browser.js","../node_modules/core-js/internals/promise-constructor-detection.js","../node_modules/core-js/internals/new-promise-capability.js","../node_modules/core-js/modules/es.promise.constructor.js","../node_modules/core-js/internals/host-report-errors.js","../node_modules/core-js/internals/is-array-iterator-method.js","../node_modules/core-js/internals/get-iterator-method.js","../node_modules/core-js/internals/get-iterator.js","../node_modules/core-js/internals/iterator-close.js","../node_modules/core-js/internals/iterate.js","../node_modules/core-js/internals/check-correctness-of-iteration.js","../node_modules/core-js/internals/promise-statics-incorrect-iteration.js","../node_modules/core-js/modules/es.promise.all.js","../node_modules/core-js/modules/es.promise.catch.js","../node_modules/core-js/modules/es.promise.race.js","../node_modules/core-js/modules/es.promise.reject.js","../node_modules/core-js/internals/promise-resolve.js","../node_modules/core-js/modules/es.promise.resolve.js","../node_modules/core-js/internals/to-string.js","../node_modules/core-js/internals/regexp-exec.js","../node_modules/core-js/internals/regexp-flags.js","../node_modules/core-js/internals/regexp-sticky-helpers.js","../node_modules/core-js/internals/regexp-unsupported-dot-all.js","../node_modules/core-js/internals/regexp-unsupported-ncg.js","../node_modules/core-js/modules/es.regexp.exec.js","../src/Features.js","../node_modules/core-js/internals/string-multibyte.js","../node_modules/core-js/modules/es.string.iterator.js","../node_modules/core-js/modules/es.array.filter.js","../node_modules/core-js/modules/es.array.find.js","../node_modules/bellhop-iframe/dist/bellhop.js","../src/PluginManager.js","../src/Container.js","../src/PageVisibility.js","../node_modules/core-js/modules/es.array.includes.js","../node_modules/core-js/internals/whitespaces.js","../node_modules/core-js/internals/string-trim.js","../node_modules/core-js/internals/string-trim-forced.js","../node_modules/core-js/modules/es.string.trim.js","../node_modules/core-js/internals/regexp-get-flags.js","../node_modules/core-js/modules/es.regexp.to-string.js","../src/SavedData.js","../src/base-plugins/BasePlugin.js","../src/base-plugins/ButtonPlugin.js","../node_modules/core-js/internals/is-regexp.js","../node_modules/core-js/internals/not-a-regexp.js","../node_modules/core-js/internals/correct-is-regexp-logic.js","../node_modules/core-js/modules/es.string.includes.js","../node_modules/core-js/internals/array-slice-simple.js","../node_modules/core-js/internals/object-get-own-property-names-external.js","../node_modules/core-js/internals/array-buffer-non-extensible.js","../node_modules/core-js/internals/object-is-extensible.js","../node_modules/core-js/internals/freezing.js","../node_modules/core-js/internals/internal-metadata.js","../node_modules/core-js/internals/inherit-if-required.js","../node_modules/core-js/internals/collection.js","../node_modules/core-js/internals/define-built-ins.js","../node_modules/core-js/internals/collection-strong.js","../node_modules/core-js/modules/es.set.constructor.js","../node_modules/core-js/modules/es.object.keys.js","../node_modules/core-js/modules/es.array.map.js","../node_modules/core-js/internals/object-to-array.js","../node_modules/core-js/modules/es.object.values.js","../src/ui-elements/RadioGroup.js","../src/base-plugins/RadioGroupPlugin.js","../node_modules/core-js/internals/this-number-value.js","../node_modules/core-js/modules/es.number.constructor.js","../src/ui-elements/Slider.js","../src/ui-elements/Button.js","../src/base-plugins/SliderPlugin.js","../src/plugins/CaptionsStylePlugin.js","../src/plugins/CaptionsTogglePlugin.js","../src/plugins/HelpPlugin.js","../src/plugins/PausePlugin.js","../src/plugins/SoundPlugin.js","../src/SavedDataHandler.js","../src/plugins/UserDataPlugin.js","../src/plugins/PointerSizePlugin.js","../src/plugins/ButtonSizePlugin.js","../src/plugins/ControlSensitivityPlugin.js","../src/plugins/KeyboardMapPlugin.js","../src/plugins/LayersPlugin.js","../src/plugins/HUDPlugin.js","../src/plugins/ColorVisionPlugin.js","../src/plugins/HitAreaScalePlugin.js","../src/plugins/DragThresholdScalePlugin.js","../src/plugins/HealthPlugin.js","../src/plugins/ObjectCountPlugin.js","../src/plugins/CompletionPercentagePlugin.js","../src/plugins/SpeedScalePlugin.js","../src/plugins/TimersScalePlugin.js","../src/plugins/InputCountPlugin.js","../src/plugins/FullScreenPlugin.js"],"sourcesContent":["var global =\n (typeof globalThis !== 'undefined' && globalThis) ||\n (typeof self !== 'undefined' && self) ||\n (typeof global !== 'undefined' && global)\n\nvar support = {\n searchParams: 'URLSearchParams' in global,\n iterable: 'Symbol' in global && 'iterator' in Symbol,\n blob:\n 'FileReader' in global &&\n 'Blob' in global &&\n (function() {\n try {\n new Blob()\n return true\n } catch (e) {\n return false\n }\n })(),\n formData: 'FormData' in global,\n arrayBuffer: 'ArrayBuffer' in global\n}\n\nfunction isDataView(obj) {\n return obj && DataView.prototype.isPrototypeOf(obj)\n}\n\nif (support.arrayBuffer) {\n var viewClasses = [\n '[object Int8Array]',\n '[object Uint8Array]',\n '[object Uint8ClampedArray]',\n '[object Int16Array]',\n '[object Uint16Array]',\n '[object Int32Array]',\n '[object Uint32Array]',\n '[object Float32Array]',\n '[object Float64Array]'\n ]\n\n var isArrayBufferView =\n ArrayBuffer.isView ||\n function(obj) {\n return obj && viewClasses.indexOf(Object.prototype.toString.call(obj)) > -1\n }\n}\n\nfunction normalizeName(name) {\n if (typeof name !== 'string') {\n name = String(name)\n }\n if (/[^a-z0-9\\-#$%&'*+.^_`|~!]/i.test(name) || name === '') {\n throw new TypeError('Invalid character in header field name: \"' + name + '\"')\n }\n return name.toLowerCase()\n}\n\nfunction normalizeValue(value) {\n if (typeof value !== 'string') {\n value = String(value)\n }\n return value\n}\n\n// Build a destructive iterator for the value list\nfunction iteratorFor(items) {\n var iterator = {\n next: function() {\n var value = items.shift()\n return {done: value === undefined, value: value}\n }\n }\n\n if (support.iterable) {\n iterator[Symbol.iterator] = function() {\n return iterator\n }\n }\n\n return iterator\n}\n\nexport function Headers(headers) {\n this.map = {}\n\n if (headers instanceof Headers) {\n headers.forEach(function(value, name) {\n this.append(name, value)\n }, this)\n } else if (Array.isArray(headers)) {\n headers.forEach(function(header) {\n this.append(header[0], header[1])\n }, this)\n } else if (headers) {\n Object.getOwnPropertyNames(headers).forEach(function(name) {\n this.append(name, headers[name])\n }, this)\n }\n}\n\nHeaders.prototype.append = function(name, value) {\n name = normalizeName(name)\n value = normalizeValue(value)\n var oldValue = this.map[name]\n this.map[name] = oldValue ? oldValue + ', ' + value : value\n}\n\nHeaders.prototype['delete'] = function(name) {\n delete this.map[normalizeName(name)]\n}\n\nHeaders.prototype.get = function(name) {\n name = normalizeName(name)\n return this.has(name) ? this.map[name] : null\n}\n\nHeaders.prototype.has = function(name) {\n return this.map.hasOwnProperty(normalizeName(name))\n}\n\nHeaders.prototype.set = function(name, value) {\n this.map[normalizeName(name)] = normalizeValue(value)\n}\n\nHeaders.prototype.forEach = function(callback, thisArg) {\n for (var name in this.map) {\n if (this.map.hasOwnProperty(name)) {\n callback.call(thisArg, this.map[name], name, this)\n }\n }\n}\n\nHeaders.prototype.keys = function() {\n var items = []\n this.forEach(function(value, name) {\n items.push(name)\n })\n return iteratorFor(items)\n}\n\nHeaders.prototype.values = function() {\n var items = []\n this.forEach(function(value) {\n items.push(value)\n })\n return iteratorFor(items)\n}\n\nHeaders.prototype.entries = function() {\n var items = []\n this.forEach(function(value, name) {\n items.push([name, value])\n })\n return iteratorFor(items)\n}\n\nif (support.iterable) {\n Headers.prototype[Symbol.iterator] = Headers.prototype.entries\n}\n\nfunction consumed(body) {\n if (body.bodyUsed) {\n return Promise.reject(new TypeError('Already read'))\n }\n body.bodyUsed = true\n}\n\nfunction fileReaderReady(reader) {\n return new Promise(function(resolve, reject) {\n reader.onload = function() {\n resolve(reader.result)\n }\n reader.onerror = function() {\n reject(reader.error)\n }\n })\n}\n\nfunction readBlobAsArrayBuffer(blob) {\n var reader = new FileReader()\n var promise = fileReaderReady(reader)\n reader.readAsArrayBuffer(blob)\n return promise\n}\n\nfunction readBlobAsText(blob) {\n var reader = new FileReader()\n var promise = fileReaderReady(reader)\n reader.readAsText(blob)\n return promise\n}\n\nfunction readArrayBufferAsText(buf) {\n var view = new Uint8Array(buf)\n var chars = new Array(view.length)\n\n for (var i = 0; i < view.length; i++) {\n chars[i] = String.fromCharCode(view[i])\n }\n return chars.join('')\n}\n\nfunction bufferClone(buf) {\n if (buf.slice) {\n return buf.slice(0)\n } else {\n var view = new Uint8Array(buf.byteLength)\n view.set(new Uint8Array(buf))\n return view.buffer\n }\n}\n\nfunction Body() {\n this.bodyUsed = false\n\n this._initBody = function(body) {\n /*\n fetch-mock wraps the Response object in an ES6 Proxy to\n provide useful test harness features such as flush. However, on\n ES5 browsers without fetch or Proxy support pollyfills must be used;\n the proxy-pollyfill is unable to proxy an attribute unless it exists\n on the object before the Proxy is created. This change ensures\n Response.bodyUsed exists on the instance, while maintaining the\n semantic of setting Request.bodyUsed in the constructor before\n _initBody is called.\n */\n this.bodyUsed = this.bodyUsed\n this._bodyInit = body\n if (!body) {\n this._bodyText = ''\n } else if (typeof body === 'string') {\n this._bodyText = body\n } else if (support.blob && Blob.prototype.isPrototypeOf(body)) {\n this._bodyBlob = body\n } else if (support.formData && FormData.prototype.isPrototypeOf(body)) {\n this._bodyFormData = body\n } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {\n this._bodyText = body.toString()\n } else if (support.arrayBuffer && support.blob && isDataView(body)) {\n this._bodyArrayBuffer = bufferClone(body.buffer)\n // IE 10-11 can't handle a DataView body.\n this._bodyInit = new Blob([this._bodyArrayBuffer])\n } else if (support.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(body) || isArrayBufferView(body))) {\n this._bodyArrayBuffer = bufferClone(body)\n } else {\n this._bodyText = body = Object.prototype.toString.call(body)\n }\n\n if (!this.headers.get('content-type')) {\n if (typeof body === 'string') {\n this.headers.set('content-type', 'text/plain;charset=UTF-8')\n } else if (this._bodyBlob && this._bodyBlob.type) {\n this.headers.set('content-type', this._bodyBlob.type)\n } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {\n this.headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8')\n }\n }\n }\n\n if (support.blob) {\n this.blob = function() {\n var rejected = consumed(this)\n if (rejected) {\n return rejected\n }\n\n if (this._bodyBlob) {\n return Promise.resolve(this._bodyBlob)\n } else if (this._bodyArrayBuffer) {\n return Promise.resolve(new Blob([this._bodyArrayBuffer]))\n } else if (this._bodyFormData) {\n throw new Error('could not read FormData body as blob')\n } else {\n return Promise.resolve(new Blob([this._bodyText]))\n }\n }\n\n this.arrayBuffer = function() {\n if (this._bodyArrayBuffer) {\n var isConsumed = consumed(this)\n if (isConsumed) {\n return isConsumed\n }\n if (ArrayBuffer.isView(this._bodyArrayBuffer)) {\n return Promise.resolve(\n this._bodyArrayBuffer.buffer.slice(\n this._bodyArrayBuffer.byteOffset,\n this._bodyArrayBuffer.byteOffset + this._bodyArrayBuffer.byteLength\n )\n )\n } else {\n return Promise.resolve(this._bodyArrayBuffer)\n }\n } else {\n return this.blob().then(readBlobAsArrayBuffer)\n }\n }\n }\n\n this.text = function() {\n var rejected = consumed(this)\n if (rejected) {\n return rejected\n }\n\n if (this._bodyBlob) {\n return readBlobAsText(this._bodyBlob)\n } else if (this._bodyArrayBuffer) {\n return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer))\n } else if (this._bodyFormData) {\n throw new Error('could not read FormData body as text')\n } else {\n return Promise.resolve(this._bodyText)\n }\n }\n\n if (support.formData) {\n this.formData = function() {\n return this.text().then(decode)\n }\n }\n\n this.json = function() {\n return this.text().then(JSON.parse)\n }\n\n return this\n}\n\n// HTTP methods whose capitalization should be normalized\nvar methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT']\n\nfunction normalizeMethod(method) {\n var upcased = method.toUpperCase()\n return methods.indexOf(upcased) > -1 ? upcased : method\n}\n\nexport function Request(input, options) {\n if (!(this instanceof Request)) {\n throw new TypeError('Please use the \"new\" operator, this DOM object constructor cannot be called as a function.')\n }\n\n options = options || {}\n var body = options.body\n\n if (input instanceof Request) {\n if (input.bodyUsed) {\n throw new TypeError('Already read')\n }\n this.url = input.url\n this.credentials = input.credentials\n if (!options.headers) {\n this.headers = new Headers(input.headers)\n }\n this.method = input.method\n this.mode = input.mode\n this.signal = input.signal\n if (!body && input._bodyInit != null) {\n body = input._bodyInit\n input.bodyUsed = true\n }\n } else {\n this.url = String(input)\n }\n\n this.credentials = options.credentials || this.credentials || 'same-origin'\n if (options.headers || !this.headers) {\n this.headers = new Headers(options.headers)\n }\n this.method = normalizeMethod(options.method || this.method || 'GET')\n this.mode = options.mode || this.mode || null\n this.signal = options.signal || this.signal\n this.referrer = null\n\n if ((this.method === 'GET' || this.method === 'HEAD') && body) {\n throw new TypeError('Body not allowed for GET or HEAD requests')\n }\n this._initBody(body)\n\n if (this.method === 'GET' || this.method === 'HEAD') {\n if (options.cache === 'no-store' || options.cache === 'no-cache') {\n // Search for a '_' parameter in the query string\n var reParamSearch = /([?&])_=[^&]*/\n if (reParamSearch.test(this.url)) {\n // If it already exists then set the value with the current time\n this.url = this.url.replace(reParamSearch, '$1_=' + new Date().getTime())\n } else {\n // Otherwise add a new '_' parameter to the end with the current time\n var reQueryString = /\\?/\n this.url += (reQueryString.test(this.url) ? '&' : '?') + '_=' + new Date().getTime()\n }\n }\n }\n}\n\nRequest.prototype.clone = function() {\n return new Request(this, {body: this._bodyInit})\n}\n\nfunction decode(body) {\n var form = new FormData()\n body\n .trim()\n .split('&')\n .forEach(function(bytes) {\n if (bytes) {\n var split = bytes.split('=')\n var name = split.shift().replace(/\\+/g, ' ')\n var value = split.join('=').replace(/\\+/g, ' ')\n form.append(decodeURIComponent(name), decodeURIComponent(value))\n }\n })\n return form\n}\n\nfunction parseHeaders(rawHeaders) {\n var headers = new Headers()\n // Replace instances of \\r\\n and \\n followed by at least one space or horizontal tab with a space\n // https://tools.ietf.org/html/rfc7230#section-3.2\n var preProcessedHeaders = rawHeaders.replace(/\\r?\\n[\\t ]+/g, ' ')\n // Avoiding split via regex to work around a common IE11 bug with the core-js 3.6.0 regex polyfill\n // https://github.com/github/fetch/issues/748\n // https://github.com/zloirock/core-js/issues/751\n preProcessedHeaders\n .split('\\r')\n .map(function(header) {\n return header.indexOf('\\n') === 0 ? header.substr(1, header.length) : header\n })\n .forEach(function(line) {\n var parts = line.split(':')\n var key = parts.shift().trim()\n if (key) {\n var value = parts.join(':').trim()\n headers.append(key, value)\n }\n })\n return headers\n}\n\nBody.call(Request.prototype)\n\nexport function Response(bodyInit, options) {\n if (!(this instanceof Response)) {\n throw new TypeError('Please use the \"new\" operator, this DOM object constructor cannot be called as a function.')\n }\n if (!options) {\n options = {}\n }\n\n this.type = 'default'\n this.status = options.status === undefined ? 200 : options.status\n this.ok = this.status >= 200 && this.status < 300\n this.statusText = options.statusText === undefined ? '' : '' + options.statusText\n this.headers = new Headers(options.headers)\n this.url = options.url || ''\n this._initBody(bodyInit)\n}\n\nBody.call(Response.prototype)\n\nResponse.prototype.clone = function() {\n return new Response(this._bodyInit, {\n status: this.status,\n statusText: this.statusText,\n headers: new Headers(this.headers),\n url: this.url\n })\n}\n\nResponse.error = function() {\n var response = new Response(null, {status: 0, statusText: ''})\n response.type = 'error'\n return response\n}\n\nvar redirectStatuses = [301, 302, 303, 307, 308]\n\nResponse.redirect = function(url, status) {\n if (redirectStatuses.indexOf(status) === -1) {\n throw new RangeError('Invalid status code')\n }\n\n return new Response(null, {status: status, headers: {location: url}})\n}\n\nexport var DOMException = global.DOMException\ntry {\n new DOMException()\n} catch (err) {\n DOMException = function(message, name) {\n this.message = message\n this.name = name\n var error = Error(message)\n this.stack = error.stack\n }\n DOMException.prototype = Object.create(Error.prototype)\n DOMException.prototype.constructor = DOMException\n}\n\nexport function fetch(input, init) {\n return new Promise(function(resolve, reject) {\n var request = new Request(input, init)\n\n if (request.signal && request.signal.aborted) {\n return reject(new DOMException('Aborted', 'AbortError'))\n }\n\n var xhr = new XMLHttpRequest()\n\n function abortXhr() {\n xhr.abort()\n }\n\n xhr.onload = function() {\n var options = {\n status: xhr.status,\n statusText: xhr.statusText,\n headers: parseHeaders(xhr.getAllResponseHeaders() || '')\n }\n options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL')\n var body = 'response' in xhr ? xhr.response : xhr.responseText\n setTimeout(function() {\n resolve(new Response(body, options))\n }, 0)\n }\n\n xhr.onerror = function() {\n setTimeout(function() {\n reject(new TypeError('Network request failed'))\n }, 0)\n }\n\n xhr.ontimeout = function() {\n setTimeout(function() {\n reject(new TypeError('Network request failed'))\n }, 0)\n }\n\n xhr.onabort = function() {\n setTimeout(function() {\n reject(new DOMException('Aborted', 'AbortError'))\n }, 0)\n }\n\n function fixUrl(url) {\n try {\n return url === '' && global.location.href ? global.location.href : url\n } catch (e) {\n return url\n }\n }\n\n xhr.open(request.method, fixUrl(request.url), true)\n\n if (request.credentials === 'include') {\n xhr.withCredentials = true\n } else if (request.credentials === 'omit') {\n xhr.withCredentials = false\n }\n\n if ('responseType' in xhr) {\n if (support.blob) {\n xhr.responseType = 'blob'\n } else if (\n support.arrayBuffer &&\n request.headers.get('Content-Type') &&\n request.headers.get('Content-Type').indexOf('application/octet-stream') !== -1\n ) {\n xhr.responseType = 'arraybuffer'\n }\n }\n\n if (init && typeof init.headers === 'object' && !(init.headers instanceof Headers)) {\n Object.getOwnPropertyNames(init.headers).forEach(function(name) {\n xhr.setRequestHeader(name, normalizeValue(init.headers[name]))\n })\n } else {\n request.headers.forEach(function(value, name) {\n xhr.setRequestHeader(name, value)\n })\n }\n\n if (request.signal) {\n request.signal.addEventListener('abort', abortXhr)\n\n xhr.onreadystatechange = function() {\n // DONE (success or failure)\n if (xhr.readyState === 4) {\n request.signal.removeEventListener('abort', abortXhr)\n }\n }\n }\n\n xhr.send(typeof request._bodyInit === 'undefined' ? null : request._bodyInit)\n })\n}\n\nfetch.polyfill = true\n\nif (!global.fetch) {\n global.fetch = fetch\n global.Headers = Headers\n global.Request = Request\n global.Response = Response\n}\n","var check = function (it) {\n return it && it.Math == Math && it;\n};\n\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nmodule.exports =\n // eslint-disable-next-line es/no-global-this -- safe\n check(typeof globalThis == 'object' && globalThis) ||\n check(typeof window == 'object' && window) ||\n // eslint-disable-next-line no-restricted-globals -- safe\n check(typeof self == 'object' && self) ||\n check(typeof global == 'object' && global) ||\n // eslint-disable-next-line no-new-func -- fallback\n (function () { return this; })() || Function('return this')();\n","// iterable DOM collections\n// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods\nmodule.exports = {\n CSSRuleList: 0,\n CSSStyleDeclaration: 0,\n CSSValueList: 0,\n ClientRectList: 0,\n DOMRectList: 0,\n DOMStringList: 0,\n DOMTokenList: 1,\n DataTransferItemList: 0,\n FileList: 0,\n HTMLAllCollection: 0,\n HTMLCollection: 0,\n HTMLFormElement: 0,\n HTMLSelectElement: 0,\n MediaList: 0,\n MimeTypeArray: 0,\n NamedNodeMap: 0,\n NodeList: 1,\n PaintRequestList: 0,\n Plugin: 0,\n PluginArray: 0,\n SVGLengthList: 0,\n SVGNumberList: 0,\n SVGPathSegList: 0,\n SVGPointList: 0,\n SVGStringList: 0,\n SVGTransformList: 0,\n SourceBufferList: 0,\n StyleSheetList: 0,\n TextTrackCueList: 0,\n TextTrackList: 0,\n TouchList: 0\n};\n","var documentAll = typeof document == 'object' && document.all;\n\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot\n// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing\nvar IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;\n\nmodule.exports = {\n all: documentAll,\n IS_HTMLDDA: IS_HTMLDDA\n};\n","var $documentAll = require('../internals/document-all');\n\nvar documentAll = $documentAll.all;\n\n// `IsCallable` abstract operation\n// https://tc39.es/ecma262/#sec-iscallable\nmodule.exports = $documentAll.IS_HTMLDDA ? function (argument) {\n return typeof argument == 'function' || argument === documentAll;\n} : function (argument) {\n return typeof argument == 'function';\n};\n","var isCallable = require('../internals/is-callable');\nvar $documentAll = require('../internals/document-all');\n\nvar documentAll = $documentAll.all;\n\nmodule.exports = $documentAll.IS_HTMLDDA ? function (it) {\n return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll;\n} : function (it) {\n return typeof it == 'object' ? it !== null : isCallable(it);\n};\n","var global = require('../internals/global');\nvar isObject = require('../internals/is-object');\n\nvar document = global.document;\n// typeof document.createElement is 'object' in old IE\nvar EXISTS = isObject(document) && isObject(document.createElement);\n\nmodule.exports = function (it) {\n return EXISTS ? document.createElement(it) : {};\n};\n","// in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`\nvar documentCreateElement = require('../internals/document-create-element');\n\nvar classList = documentCreateElement('span').classList;\nvar DOMTokenListPrototype = classList && classList.constructor && classList.constructor.prototype;\n\nmodule.exports = DOMTokenListPrototype === Object.prototype ? undefined : DOMTokenListPrototype;\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (error) {\n return true;\n }\n};\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-function-prototype-bind -- safe\n var test = (function () { /* empty */ }).bind();\n // eslint-disable-next-line no-prototype-builtins -- safe\n return typeof test != 'function' || test.hasOwnProperty('prototype');\n});\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar FunctionPrototype = Function.prototype;\nvar call = FunctionPrototype.call;\nvar uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);\n\nmodule.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {\n return function () {\n return call.apply(fn, arguments);\n };\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nvar toString = uncurryThis({}.toString);\nvar stringSlice = uncurryThis(''.slice);\n\nmodule.exports = function (it) {\n return stringSlice(toString(it), 8, -1);\n};\n","var classofRaw = require('../internals/classof-raw');\nvar uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = function (fn) {\n // Nashorn bug:\n // https://github.com/zloirock/core-js/issues/1128\n // https://github.com/zloirock/core-js/issues/1130\n if (classofRaw(fn) === 'Function') return uncurryThis(fn);\n};\n","var $String = String;\n\nmodule.exports = function (argument) {\n try {\n return $String(argument);\n } catch (error) {\n return 'Object';\n }\n};\n","var isCallable = require('../internals/is-callable');\nvar tryToString = require('../internals/try-to-string');\n\nvar $TypeError = TypeError;\n\n// `Assert: IsCallable(argument) is true`\nmodule.exports = function (argument) {\n if (isCallable(argument)) return argument;\n throw $TypeError(tryToString(argument) + ' is not a function');\n};\n","var uncurryThis = require('../internals/function-uncurry-this-clause');\nvar aCallable = require('../internals/a-callable');\nvar NATIVE_BIND = require('../internals/function-bind-native');\n\nvar bind = uncurryThis(uncurryThis.bind);\n\n// optional / simple context binding\nmodule.exports = function (fn, that) {\n aCallable(fn);\n return that === undefined ? fn : NATIVE_BIND ? bind(fn, that) : function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar classof = require('../internals/classof-raw');\n\nvar $Object = Object;\nvar split = uncurryThis(''.split);\n\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\nmodule.exports = fails(function () {\n // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346\n // eslint-disable-next-line no-prototype-builtins -- safe\n return !$Object('z').propertyIsEnumerable(0);\n}) ? function (it) {\n return classof(it) == 'String' ? split(it, '') : $Object(it);\n} : $Object;\n","// we can't use just `it == null` since of `document.all` special case\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec\nmodule.exports = function (it) {\n return it === null || it === undefined;\n};\n","var isNullOrUndefined = require('../internals/is-null-or-undefined');\n\nvar $TypeError = TypeError;\n\n// `RequireObjectCoercible` abstract operation\n// https://tc39.es/ecma262/#sec-requireobjectcoercible\nmodule.exports = function (it) {\n if (isNullOrUndefined(it)) throw $TypeError(\"Can't call method on \" + it);\n return it;\n};\n","var requireObjectCoercible = require('../internals/require-object-coercible');\n\nvar $Object = Object;\n\n// `ToObject` abstract operation\n// https://tc39.es/ecma262/#sec-toobject\nmodule.exports = function (argument) {\n return $Object(requireObjectCoercible(argument));\n};\n","var ceil = Math.ceil;\nvar floor = Math.floor;\n\n// `Math.trunc` method\n// https://tc39.es/ecma262/#sec-math.trunc\n// eslint-disable-next-line es/no-math-trunc -- safe\nmodule.exports = Math.trunc || function trunc(x) {\n var n = +x;\n return (n > 0 ? floor : ceil)(n);\n};\n","var trunc = require('../internals/math-trunc');\n\n// `ToIntegerOrInfinity` abstract operation\n// https://tc39.es/ecma262/#sec-tointegerorinfinity\nmodule.exports = function (argument) {\n var number = +argument;\n // eslint-disable-next-line no-self-compare -- NaN check\n return number !== number || number === 0 ? 0 : trunc(number);\n};\n","var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar min = Math.min;\n\n// `ToLength` abstract operation\n// https://tc39.es/ecma262/#sec-tolength\nmodule.exports = function (argument) {\n return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991\n};\n","var toLength = require('../internals/to-length');\n\n// `LengthOfArrayLike` abstract operation\n// https://tc39.es/ecma262/#sec-lengthofarraylike\nmodule.exports = function (obj) {\n return toLength(obj.length);\n};\n","var classof = require('../internals/classof-raw');\n\n// `IsArray` abstract operation\n// https://tc39.es/ecma262/#sec-isarray\n// eslint-disable-next-line es/no-array-isarray -- safe\nmodule.exports = Array.isArray || function isArray(argument) {\n return classof(argument) == 'Array';\n};\n","var global = require('../internals/global');\n\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\n\nmodule.exports = function (key, value) {\n try {\n defineProperty(global, key, { value: value, configurable: true, writable: true });\n } catch (error) {\n global[key] = value;\n } return value;\n};\n","var global = require('../internals/global');\nvar defineGlobalProperty = require('../internals/define-global-property');\n\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || defineGlobalProperty(SHARED, {});\n\nmodule.exports = store;\n","var IS_PURE = require('../internals/is-pure');\nvar store = require('../internals/shared-store');\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: '3.28.0',\n mode: IS_PURE ? 'pure' : 'global',\n copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',\n license: 'https://github.com/zloirock/core-js/blob/v3.28.0/LICENSE',\n source: 'https://github.com/zloirock/core-js'\n});\n","var global = require('../internals/global');\nvar userAgent = require('../internals/engine-user-agent');\n\nvar process = global.process;\nvar Deno = global.Deno;\nvar versions = process && process.versions || Deno && Deno.version;\nvar v8 = versions && versions.v8;\nvar match, version;\n\nif (v8) {\n match = v8.split('.');\n // in old Chrome, versions of V8 isn't V8 = Chrome / 10\n // but their correct versions are not interesting for us\n version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);\n}\n\n// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`\n// so check `userAgent` even if `.v8` exists, but 0\nif (!version && userAgent) {\n match = userAgent.match(/Edge\\/(\\d+)/);\n if (!match || match[1] >= 74) {\n match = userAgent.match(/Chrome\\/(\\d+)/);\n if (match) version = +match[1];\n }\n}\n\nmodule.exports = version;\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar toObject = require('../internals/to-object');\n\nvar hasOwnProperty = uncurryThis({}.hasOwnProperty);\n\n// `HasOwnProperty` abstract operation\n// https://tc39.es/ecma262/#sec-hasownproperty\n// eslint-disable-next-line es/no-object-hasown -- safe\nmodule.exports = Object.hasOwn || function hasOwn(it, key) {\n return hasOwnProperty(toObject(it), key);\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nvar id = 0;\nvar postfix = Math.random();\nvar toString = uncurryThis(1.0.toString);\n\nmodule.exports = function (key) {\n return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);\n};\n","module.exports = typeof navigator != 'undefined' && String(navigator.userAgent) || '';\n","/* eslint-disable es/no-symbol -- required for testing */\nvar V8_VERSION = require('../internals/engine-v8-version');\nvar fails = require('../internals/fails');\n\n// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing\nmodule.exports = !!Object.getOwnPropertySymbols && !fails(function () {\n var symbol = Symbol();\n // Chrome 38 Symbol has incorrect toString conversion\n // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances\n return !String(symbol) || !(Object(symbol) instanceof Symbol) ||\n // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances\n !Symbol.sham && V8_VERSION && V8_VERSION < 41;\n});\n","/* eslint-disable es/no-symbol -- required for testing */\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\n\nmodule.exports = NATIVE_SYMBOL\n && !Symbol.sham\n && typeof Symbol.iterator == 'symbol';\n","var global = require('../internals/global');\nvar shared = require('../internals/shared');\nvar hasOwn = require('../internals/has-own-property');\nvar uid = require('../internals/uid');\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar Symbol = global.Symbol;\nvar WellKnownSymbolsStore = shared('wks');\nvar createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol['for'] || Symbol : Symbol && Symbol.withoutSetter || uid;\n\nmodule.exports = function (name) {\n if (!hasOwn(WellKnownSymbolsStore, name)) {\n WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn(Symbol, name)\n ? Symbol[name]\n : createWellKnownSymbol('Symbol.' + name);\n } return WellKnownSymbolsStore[name];\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar test = {};\n\ntest[TO_STRING_TAG] = 'z';\n\nmodule.exports = String(test) === '[object z]';\n","var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar isCallable = require('../internals/is-callable');\nvar classofRaw = require('../internals/classof-raw');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar $Object = Object;\n\n// ES3 wrong here\nvar CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function (it, key) {\n try {\n return it[key];\n } catch (error) { /* empty */ }\n};\n\n// getting tag from ES6+ `Object.prototype.toString`\nmodule.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {\n var O, tag, result;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag\n // builtinTag case\n : CORRECT_ARGUMENTS ? classofRaw(O)\n // ES3 arguments fallback\n : (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;\n};\n","var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar aFunction = function (argument) {\n return isCallable(argument) ? argument : undefined;\n};\n\nmodule.exports = function (namespace, method) {\n return arguments.length < 2 ? aFunction(global[namespace]) : global[namespace] && global[namespace][method];\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar isCallable = require('../internals/is-callable');\nvar store = require('../internals/shared-store');\n\nvar functionToString = uncurryThis(Function.toString);\n\n// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper\nif (!isCallable(store.inspectSource)) {\n store.inspectSource = function (it) {\n return functionToString(it);\n };\n}\n\nmodule.exports = store.inspectSource;\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar classof = require('../internals/classof');\nvar getBuiltIn = require('../internals/get-built-in');\nvar inspectSource = require('../internals/inspect-source');\n\nvar noop = function () { /* empty */ };\nvar empty = [];\nvar construct = getBuiltIn('Reflect', 'construct');\nvar constructorRegExp = /^\\s*(?:class|function)\\b/;\nvar exec = uncurryThis(constructorRegExp.exec);\nvar INCORRECT_TO_STRING = !constructorRegExp.exec(noop);\n\nvar isConstructorModern = function isConstructor(argument) {\n if (!isCallable(argument)) return false;\n try {\n construct(noop, empty, argument);\n return true;\n } catch (error) {\n return false;\n }\n};\n\nvar isConstructorLegacy = function isConstructor(argument) {\n if (!isCallable(argument)) return false;\n switch (classof(argument)) {\n case 'AsyncFunction':\n case 'GeneratorFunction':\n case 'AsyncGeneratorFunction': return false;\n }\n try {\n // we can't check .prototype since constructors produced by .bind haven't it\n // `Function#toString` throws on some built-it function in some legacy engines\n // (for example, `DOMQuad` and similar in FF41-)\n return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));\n } catch (error) {\n return true;\n }\n};\n\nisConstructorLegacy.sham = true;\n\n// `IsConstructor` abstract operation\n// https://tc39.es/ecma262/#sec-isconstructor\nmodule.exports = !construct || fails(function () {\n var called;\n return isConstructorModern(isConstructorModern.call)\n || !isConstructorModern(Object)\n || !isConstructorModern(function () { called = true; })\n || called;\n}) ? isConstructorLegacy : isConstructorModern;\n","var isArray = require('../internals/is-array');\nvar isConstructor = require('../internals/is-constructor');\nvar isObject = require('../internals/is-object');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar SPECIES = wellKnownSymbol('species');\nvar $Array = Array;\n\n// a part of `ArraySpeciesCreate` abstract operation\n// https://tc39.es/ecma262/#sec-arrayspeciescreate\nmodule.exports = function (originalArray) {\n var C;\n if (isArray(originalArray)) {\n C = originalArray.constructor;\n // cross-realm fallback\n if (isConstructor(C) && (C === $Array || isArray(C.prototype))) C = undefined;\n else if (isObject(C)) {\n C = C[SPECIES];\n if (C === null) C = undefined;\n }\n } return C === undefined ? $Array : C;\n};\n","var arraySpeciesConstructor = require('../internals/array-species-constructor');\n\n// `ArraySpeciesCreate` abstract operation\n// https://tc39.es/ecma262/#sec-arrayspeciescreate\nmodule.exports = function (originalArray, length) {\n return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);\n};\n","var bind = require('../internals/function-bind-context');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar IndexedObject = require('../internals/indexed-object');\nvar toObject = require('../internals/to-object');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar arraySpeciesCreate = require('../internals/array-species-create');\n\nvar push = uncurryThis([].push);\n\n// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation\nvar createMethod = function (TYPE) {\n var IS_MAP = TYPE == 1;\n var IS_FILTER = TYPE == 2;\n var IS_SOME = TYPE == 3;\n var IS_EVERY = TYPE == 4;\n var IS_FIND_INDEX = TYPE == 6;\n var IS_FILTER_REJECT = TYPE == 7;\n var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;\n return function ($this, callbackfn, that, specificCreate) {\n var O = toObject($this);\n var self = IndexedObject(O);\n var boundFunction = bind(callbackfn, that);\n var length = lengthOfArrayLike(self);\n var index = 0;\n var create = specificCreate || arraySpeciesCreate;\n var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;\n var value, result;\n for (;length > index; index++) if (NO_HOLES || index in self) {\n value = self[index];\n result = boundFunction(value, index, O);\n if (TYPE) {\n if (IS_MAP) target[index] = result; // map\n else if (result) switch (TYPE) {\n case 3: return true; // some\n case 5: return value; // find\n case 6: return index; // findIndex\n case 2: push(target, value); // filter\n } else switch (TYPE) {\n case 4: return false; // every\n case 7: push(target, value); // filterReject\n }\n }\n }\n return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.forEach` method\n // https://tc39.es/ecma262/#sec-array.prototype.foreach\n forEach: createMethod(0),\n // `Array.prototype.map` method\n // https://tc39.es/ecma262/#sec-array.prototype.map\n map: createMethod(1),\n // `Array.prototype.filter` method\n // https://tc39.es/ecma262/#sec-array.prototype.filter\n filter: createMethod(2),\n // `Array.prototype.some` method\n // https://tc39.es/ecma262/#sec-array.prototype.some\n some: createMethod(3),\n // `Array.prototype.every` method\n // https://tc39.es/ecma262/#sec-array.prototype.every\n every: createMethod(4),\n // `Array.prototype.find` method\n // https://tc39.es/ecma262/#sec-array.prototype.find\n find: createMethod(5),\n // `Array.prototype.findIndex` method\n // https://tc39.es/ecma262/#sec-array.prototype.findIndex\n findIndex: createMethod(6),\n // `Array.prototype.filterReject` method\n // https://github.com/tc39/proposal-array-filtering\n filterReject: createMethod(7)\n};\n","'use strict';\nvar fails = require('../internals/fails');\n\nmodule.exports = function (METHOD_NAME, argument) {\n var method = [][METHOD_NAME];\n return !!method && fails(function () {\n // eslint-disable-next-line no-useless-call -- required for testing\n method.call(null, argument || function () { return 1; }, 1);\n });\n};\n","'use strict';\nvar $forEach = require('../internals/array-iteration').forEach;\nvar arrayMethodIsStrict = require('../internals/array-method-is-strict');\n\nvar STRICT_METHOD = arrayMethodIsStrict('forEach');\n\n// `Array.prototype.forEach` method implementation\n// https://tc39.es/ecma262/#sec-array.prototype.foreach\nmodule.exports = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {\n return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n// eslint-disable-next-line es/no-array-prototype-foreach -- safe\n} : [].forEach;\n","var fails = require('../internals/fails');\n\n// Detect IE8's incomplete defineProperty implementation\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;\n});\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\nvar createElement = require('../internals/document-create-element');\n\n// Thanks to IE8 for its funny defineProperty\nmodule.exports = !DESCRIPTORS && !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(createElement('div'), 'a', {\n get: function () { return 7; }\n }).a != 7;\n});\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\n\n// V8 ~ Chrome 36-\n// https://bugs.chromium.org/p/v8/issues/detail?id=3334\nmodule.exports = DESCRIPTORS && fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(function () { /* empty */ }, 'prototype', {\n value: 42,\n writable: false\n }).prototype != 42;\n});\n","var isObject = require('../internals/is-object');\n\nvar $String = String;\nvar $TypeError = TypeError;\n\n// `Assert: Type(argument) is Object`\nmodule.exports = function (argument) {\n if (isObject(argument)) return argument;\n throw $TypeError($String(argument) + ' is not an object');\n};\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar call = Function.prototype.call;\n\nmodule.exports = NATIVE_BIND ? call.bind(call) : function () {\n return call.apply(call, arguments);\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = uncurryThis({}.isPrototypeOf);\n","var getBuiltIn = require('../internals/get-built-in');\nvar isCallable = require('../internals/is-callable');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar $Object = Object;\n\nmodule.exports = USE_SYMBOL_AS_UID ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n var $Symbol = getBuiltIn('Symbol');\n return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));\n};\n","var aCallable = require('../internals/a-callable');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\n\n// `GetMethod` abstract operation\n// https://tc39.es/ecma262/#sec-getmethod\nmodule.exports = function (V, P) {\n var func = V[P];\n return isNullOrUndefined(func) ? undefined : aCallable(func);\n};\n","var call = require('../internals/function-call');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\n\nvar $TypeError = TypeError;\n\n// `OrdinaryToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-ordinarytoprimitive\nmodule.exports = function (input, pref) {\n var fn, val;\n if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;\n if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n throw $TypeError(\"Can't convert object to primitive value\");\n};\n","var call = require('../internals/function-call');\nvar isObject = require('../internals/is-object');\nvar isSymbol = require('../internals/is-symbol');\nvar getMethod = require('../internals/get-method');\nvar ordinaryToPrimitive = require('../internals/ordinary-to-primitive');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar $TypeError = TypeError;\nvar TO_PRIMITIVE = wellKnownSymbol('toPrimitive');\n\n// `ToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-toprimitive\nmodule.exports = function (input, pref) {\n if (!isObject(input) || isSymbol(input)) return input;\n var exoticToPrim = getMethod(input, TO_PRIMITIVE);\n var result;\n if (exoticToPrim) {\n if (pref === undefined) pref = 'default';\n result = call(exoticToPrim, input, pref);\n if (!isObject(result) || isSymbol(result)) return result;\n throw $TypeError(\"Can't convert object to primitive value\");\n }\n if (pref === undefined) pref = 'number';\n return ordinaryToPrimitive(input, pref);\n};\n","var toPrimitive = require('../internals/to-primitive');\nvar isSymbol = require('../internals/is-symbol');\n\n// `ToPropertyKey` abstract operation\n// https://tc39.es/ecma262/#sec-topropertykey\nmodule.exports = function (argument) {\n var key = toPrimitive(argument, 'string');\n return isSymbol(key) ? key : key + '';\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\nvar V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug');\nvar anObject = require('../internals/an-object');\nvar toPropertyKey = require('../internals/to-property-key');\n\nvar $TypeError = TypeError;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar $defineProperty = Object.defineProperty;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar ENUMERABLE = 'enumerable';\nvar CONFIGURABLE = 'configurable';\nvar WRITABLE = 'writable';\n\n// `Object.defineProperty` method\n// https://tc39.es/ecma262/#sec-object.defineproperty\nexports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {\n var current = $getOwnPropertyDescriptor(O, P);\n if (current && current[WRITABLE]) {\n O[P] = Attributes.value;\n Attributes = {\n configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],\n enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],\n writable: false\n };\n }\n } return $defineProperty(O, P, Attributes);\n} : $defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return $defineProperty(O, P, Attributes);\n } catch (error) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw $TypeError('Accessors not supported');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = DESCRIPTORS ? function (object, key, value) {\n return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","var global = require('../internals/global');\nvar DOMIterables = require('../internals/dom-iterables');\nvar DOMTokenListPrototype = require('../internals/dom-token-list-prototype');\nvar forEach = require('../internals/array-for-each');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\n\nvar handlePrototype = function (CollectionPrototype) {\n // some Chrome versions have non-configurable methods on DOMTokenList\n if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try {\n createNonEnumerableProperty(CollectionPrototype, 'forEach', forEach);\n } catch (error) {\n CollectionPrototype.forEach = forEach;\n }\n};\n\nfor (var COLLECTION_NAME in DOMIterables) {\n if (DOMIterables[COLLECTION_NAME]) {\n handlePrototype(global[COLLECTION_NAME] && global[COLLECTION_NAME].prototype);\n }\n}\n\nhandlePrototype(DOMTokenListPrototype);\n","// toObject with fallback for non-array-like ES3 strings\nvar IndexedObject = require('../internals/indexed-object');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nmodule.exports = function (it) {\n return IndexedObject(requireObjectCoercible(it));\n};\n","var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar max = Math.max;\nvar min = Math.min;\n\n// Helper for a popular repeating case of the spec:\n// Let integer be ? ToInteger(index).\n// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).\nmodule.exports = function (index, length) {\n var integer = toIntegerOrInfinity(index);\n return integer < 0 ? max(integer + length, 0) : min(integer, length);\n};\n","var toIndexedObject = require('../internals/to-indexed-object');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\n\n// `Array.prototype.{ indexOf, includes }` methods implementation\nvar createMethod = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIndexedObject($this);\n var length = lengthOfArrayLike(O);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare -- NaN check\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare -- NaN check\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) {\n if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.includes` method\n // https://tc39.es/ecma262/#sec-array.prototype.includes\n includes: createMethod(true),\n // `Array.prototype.indexOf` method\n // https://tc39.es/ecma262/#sec-array.prototype.indexof\n indexOf: createMethod(false)\n};\n","module.exports = {};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar hasOwn = require('../internals/has-own-property');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar indexOf = require('../internals/array-includes').indexOf;\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar push = uncurryThis([].push);\n\nmodule.exports = function (object, names) {\n var O = toIndexedObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (hasOwn(O, key = names[i++])) {\n ~indexOf(result, key) || push(result, key);\n }\n return result;\n};\n","// IE8- don't enum bug keys\nmodule.exports = [\n 'constructor',\n 'hasOwnProperty',\n 'isPrototypeOf',\n 'propertyIsEnumerable',\n 'toLocaleString',\n 'toString',\n 'valueOf'\n];\n","var internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\n// `Object.keys` method\n// https://tc39.es/ecma262/#sec-object.keys\n// eslint-disable-next-line es/no-object-keys -- safe\nmodule.exports = Object.keys || function keys(O) {\n return internalObjectKeys(O, enumBugKeys);\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug');\nvar definePropertyModule = require('../internals/object-define-property');\nvar anObject = require('../internals/an-object');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar objectKeys = require('../internals/object-keys');\n\n// `Object.defineProperties` method\n// https://tc39.es/ecma262/#sec-object.defineproperties\n// eslint-disable-next-line es/no-object-defineproperties -- safe\nexports.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var props = toIndexedObject(Properties);\n var keys = objectKeys(Properties);\n var length = keys.length;\n var index = 0;\n var key;\n while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);\n return O;\n};\n","var getBuiltIn = require('../internals/get-built-in');\n\nmodule.exports = getBuiltIn('document', 'documentElement');\n","/* global ActiveXObject -- old IE, WSH */\nvar anObject = require('../internals/an-object');\nvar definePropertiesModule = require('../internals/object-define-properties');\nvar enumBugKeys = require('../internals/enum-bug-keys');\nvar hiddenKeys = require('../internals/hidden-keys');\nvar html = require('../internals/html');\nvar documentCreateElement = require('../internals/document-create-element');\nvar sharedKey = require('../internals/shared-key');\n\nvar GT = '>';\nvar LT = '<';\nvar PROTOTYPE = 'prototype';\nvar SCRIPT = 'script';\nvar IE_PROTO = sharedKey('IE_PROTO');\n\nvar EmptyConstructor = function () { /* empty */ };\n\nvar scriptTag = function (content) {\n return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;\n};\n\n// Create object with fake `null` prototype: use ActiveX Object with cleared prototype\nvar NullProtoObjectViaActiveX = function (activeXDocument) {\n activeXDocument.write(scriptTag(''));\n activeXDocument.close();\n var temp = activeXDocument.parentWindow.Object;\n activeXDocument = null; // avoid memory leak\n return temp;\n};\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar NullProtoObjectViaIFrame = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = documentCreateElement('iframe');\n var JS = 'java' + SCRIPT + ':';\n var iframeDocument;\n iframe.style.display = 'none';\n html.appendChild(iframe);\n // https://github.com/zloirock/core-js/issues/475\n iframe.src = String(JS);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(scriptTag('document.F=Object'));\n iframeDocument.close();\n return iframeDocument.F;\n};\n\n// Check for document.domain and active x support\n// No need to use active x approach when document.domain is not set\n// see https://github.com/es-shims/es5-shim/issues/150\n// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346\n// avoid IE GC bug\nvar activeXDocument;\nvar NullProtoObject = function () {\n try {\n activeXDocument = new ActiveXObject('htmlfile');\n } catch (error) { /* ignore */ }\n NullProtoObject = typeof document != 'undefined'\n ? document.domain && activeXDocument\n ? NullProtoObjectViaActiveX(activeXDocument) // old IE\n : NullProtoObjectViaIFrame()\n : NullProtoObjectViaActiveX(activeXDocument); // WSH\n var length = enumBugKeys.length;\n while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];\n return NullProtoObject();\n};\n\nhiddenKeys[IE_PROTO] = true;\n\n// `Object.create` method\n// https://tc39.es/ecma262/#sec-object.create\n// eslint-disable-next-line es/no-object-create -- safe\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n EmptyConstructor[PROTOTYPE] = anObject(O);\n result = new EmptyConstructor();\n EmptyConstructor[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = NullProtoObject();\n return Properties === undefined ? result : definePropertiesModule.f(result, Properties);\n};\n","var shared = require('../internals/shared');\nvar uid = require('../internals/uid');\n\nvar keys = shared('keys');\n\nmodule.exports = function (key) {\n return keys[key] || (keys[key] = uid(key));\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\nvar create = require('../internals/object-create');\nvar defineProperty = require('../internals/object-define-property').f;\n\nvar UNSCOPABLES = wellKnownSymbol('unscopables');\nvar ArrayPrototype = Array.prototype;\n\n// Array.prototype[@@unscopables]\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\nif (ArrayPrototype[UNSCOPABLES] == undefined) {\n defineProperty(ArrayPrototype, UNSCOPABLES, {\n configurable: true,\n value: create(null)\n });\n}\n\n// add a key to Array.prototype[@@unscopables]\nmodule.exports = function (key) {\n ArrayPrototype[UNSCOPABLES][key] = true;\n};\n","var NATIVE_WEAK_MAP = require('../internals/weak-map-basic-detection');\nvar global = require('../internals/global');\nvar isObject = require('../internals/is-object');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar hasOwn = require('../internals/has-own-property');\nvar shared = require('../internals/shared-store');\nvar sharedKey = require('../internals/shared-key');\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar OBJECT_ALREADY_INITIALIZED = 'Object already initialized';\nvar TypeError = global.TypeError;\nvar WeakMap = global.WeakMap;\nvar set, get, has;\n\nvar enforce = function (it) {\n return has(it) ? get(it) : set(it, {});\n};\n\nvar getterFor = function (TYPE) {\n return function (it) {\n var state;\n if (!isObject(it) || (state = get(it)).type !== TYPE) {\n throw TypeError('Incompatible receiver, ' + TYPE + ' required');\n } return state;\n };\n};\n\nif (NATIVE_WEAK_MAP || shared.state) {\n var store = shared.state || (shared.state = new WeakMap());\n /* eslint-disable no-self-assign -- prototype methods protection */\n store.get = store.get;\n store.has = store.has;\n store.set = store.set;\n /* eslint-enable no-self-assign -- prototype methods protection */\n set = function (it, metadata) {\n if (store.has(it)) throw TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n store.set(it, metadata);\n return metadata;\n };\n get = function (it) {\n return store.get(it) || {};\n };\n has = function (it) {\n return store.has(it);\n };\n} else {\n var STATE = sharedKey('state');\n hiddenKeys[STATE] = true;\n set = function (it, metadata) {\n if (hasOwn(it, STATE)) throw TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n createNonEnumerableProperty(it, STATE, metadata);\n return metadata;\n };\n get = function (it) {\n return hasOwn(it, STATE) ? it[STATE] : {};\n };\n has = function (it) {\n return hasOwn(it, STATE);\n };\n}\n\nmodule.exports = {\n set: set,\n get: get,\n has: has,\n enforce: enforce,\n getterFor: getterFor\n};\n","module.exports = {};\n","var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar WeakMap = global.WeakMap;\n\nmodule.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap));\n","'use strict';\nvar $propertyIsEnumerable = {}.propertyIsEnumerable;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Nashorn ~ JDK8 bug\nvar NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);\n\n// `Object.prototype.propertyIsEnumerable` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable\nexports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {\n var descriptor = getOwnPropertyDescriptor(this, V);\n return !!descriptor && descriptor.enumerable;\n} : $propertyIsEnumerable;\n","var DESCRIPTORS = require('../internals/descriptors');\nvar call = require('../internals/function-call');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toPropertyKey = require('../internals/to-property-key');\nvar hasOwn = require('../internals/has-own-property');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\n\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// `Object.getOwnPropertyDescriptor` method\n// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor\nexports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {\n O = toIndexedObject(O);\n P = toPropertyKey(P);\n if (IE8_DOM_DEFINE) try {\n return $getOwnPropertyDescriptor(O, P);\n } catch (error) { /* empty */ }\n if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar hasOwn = require('../internals/has-own-property');\n\nvar FunctionPrototype = Function.prototype;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;\n\nvar EXISTS = hasOwn(FunctionPrototype, 'name');\n// additional protection from minified / mangled / dropped function names\nvar PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';\nvar CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));\n\nmodule.exports = {\n EXISTS: EXISTS,\n PROPER: PROPER,\n CONFIGURABLE: CONFIGURABLE\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar hasOwn = require('../internals/has-own-property');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar CONFIGURABLE_FUNCTION_NAME = require('../internals/function-name').CONFIGURABLE;\nvar inspectSource = require('../internals/inspect-source');\nvar InternalStateModule = require('../internals/internal-state');\n\nvar enforceInternalState = InternalStateModule.enforce;\nvar getInternalState = InternalStateModule.get;\nvar $String = String;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\nvar stringSlice = uncurryThis(''.slice);\nvar replace = uncurryThis(''.replace);\nvar join = uncurryThis([].join);\n\nvar CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () {\n return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;\n});\n\nvar TEMPLATE = String(String).split('String');\n\nvar makeBuiltIn = module.exports = function (value, name, options) {\n if (stringSlice($String(name), 0, 7) === 'Symbol(') {\n name = '[' + replace($String(name), /^Symbol\\(([^)]*)\\)/, '$1') + ']';\n }\n if (options && options.getter) name = 'get ' + name;\n if (options && options.setter) name = 'set ' + name;\n if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {\n if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true });\n else value.name = name;\n }\n if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) {\n defineProperty(value, 'length', { value: options.arity });\n }\n try {\n if (options && hasOwn(options, 'constructor') && options.constructor) {\n if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });\n // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable\n } else if (value.prototype) value.prototype = undefined;\n } catch (error) { /* empty */ }\n var state = enforceInternalState(value);\n if (!hasOwn(state, 'source')) {\n state.source = join(TEMPLATE, typeof name == 'string' ? name : '');\n } return value;\n};\n\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n// eslint-disable-next-line no-extend-native -- required\nFunction.prototype.toString = makeBuiltIn(function toString() {\n return isCallable(this) && getInternalState(this).source || inspectSource(this);\n}, 'toString');\n","var isCallable = require('../internals/is-callable');\nvar definePropertyModule = require('../internals/object-define-property');\nvar makeBuiltIn = require('../internals/make-built-in');\nvar defineGlobalProperty = require('../internals/define-global-property');\n\nmodule.exports = function (O, key, value, options) {\n if (!options) options = {};\n var simple = options.enumerable;\n var name = options.name !== undefined ? options.name : key;\n if (isCallable(value)) makeBuiltIn(value, name, options);\n if (options.global) {\n if (simple) O[key] = value;\n else defineGlobalProperty(key, value);\n } else {\n try {\n if (!options.unsafe) delete O[key];\n else if (O[key]) simple = true;\n } catch (error) { /* empty */ }\n if (simple) O[key] = value;\n else definePropertyModule.f(O, key, {\n value: value,\n enumerable: false,\n configurable: !options.nonConfigurable,\n writable: !options.nonWritable\n });\n } return O;\n};\n","var internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\nvar hiddenKeys = enumBugKeys.concat('length', 'prototype');\n\n// `Object.getOwnPropertyNames` method\n// https://tc39.es/ecma262/#sec-object.getownpropertynames\n// eslint-disable-next-line es/no-object-getownpropertynames -- safe\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return internalObjectKeys(O, hiddenKeys);\n};\n","// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe\nexports.f = Object.getOwnPropertySymbols;\n","var getBuiltIn = require('../internals/get-built-in');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar anObject = require('../internals/an-object');\n\nvar concat = uncurryThis([].concat);\n\n// all object keys, includes non-enumerable and symbols\nmodule.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {\n var keys = getOwnPropertyNamesModule.f(anObject(it));\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;\n};\n","'use strict';\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\nvar create = require('../internals/object-create');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar IS_PURE = require('../internals/is-pure');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar BUGGY_SAFARI_ITERATORS = false;\n\n// `%IteratorPrototype%` object\n// https://tc39.es/ecma262/#sec-%iteratorprototype%-object\nvar IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;\n\n/* eslint-disable es/no-array-prototype-keys -- safe */\nif ([].keys) {\n arrayIterator = [].keys();\n // Safari 8 has buggy iterators w/o `next`\n if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;\n else {\n PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator));\n if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;\n }\n}\n\nvar NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype) || fails(function () {\n var test = {};\n // FF44- legacy iterators case\n return IteratorPrototype[ITERATOR].call(test) !== test;\n});\n\nif (NEW_ITERATOR_PROTOTYPE) IteratorPrototype = {};\nelse if (IS_PURE) IteratorPrototype = create(IteratorPrototype);\n\n// `%IteratorPrototype%[@@iterator]()` method\n// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator\nif (!isCallable(IteratorPrototype[ITERATOR])) {\n defineBuiltIn(IteratorPrototype, ITERATOR, function () {\n return this;\n });\n}\n\nmodule.exports = {\n IteratorPrototype: IteratorPrototype,\n BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS\n};\n","var hasOwn = require('../internals/has-own-property');\nvar ownKeys = require('../internals/own-keys');\nvar getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');\nvar definePropertyModule = require('../internals/object-define-property');\n\nmodule.exports = function (target, source, exceptions) {\n var keys = ownKeys(source);\n var defineProperty = definePropertyModule.f;\n var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {\n defineProperty(target, key, getOwnPropertyDescriptor(source, key));\n }\n }\n};\n","var fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\n\nvar replacement = /#|\\.prototype\\./;\n\nvar isForced = function (feature, detection) {\n var value = data[normalize(feature)];\n return value == POLYFILL ? true\n : value == NATIVE ? false\n : isCallable(detection) ? fails(detection)\n : !!detection;\n};\n\nvar normalize = isForced.normalize = function (string) {\n return String(string).replace(replacement, '.').toLowerCase();\n};\n\nvar data = isForced.data = {};\nvar NATIVE = isForced.NATIVE = 'N';\nvar POLYFILL = isForced.POLYFILL = 'P';\n\nmodule.exports = isForced;\n","var global = require('../internals/global');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar defineGlobalProperty = require('../internals/define-global-property');\nvar copyConstructorProperties = require('../internals/copy-constructor-properties');\nvar isForced = require('../internals/is-forced');\n\n/*\n options.target - name of the target object\n options.global - target is the global object\n options.stat - export as static methods of target\n options.proto - export as prototype methods of target\n options.real - real prototype method for the `pure` version\n options.forced - export even if the native feature is available\n options.bind - bind methods to the target, required for the `pure` version\n options.wrap - wrap constructors to preventing global pollution, required for the `pure` version\n options.unsafe - use the simple assignment of property instead of delete + defineProperty\n options.sham - add a flag to not completely full polyfills\n options.enumerable - export as enumerable property\n options.dontCallGetSet - prevent calling a getter on target\n options.name - the .name of the function if it does not match the key\n*/\nmodule.exports = function (options, source) {\n var TARGET = options.target;\n var GLOBAL = options.global;\n var STATIC = options.stat;\n var FORCED, target, key, targetProperty, sourceProperty, descriptor;\n if (GLOBAL) {\n target = global;\n } else if (STATIC) {\n target = global[TARGET] || defineGlobalProperty(TARGET, {});\n } else {\n target = (global[TARGET] || {}).prototype;\n }\n if (target) for (key in source) {\n sourceProperty = source[key];\n if (options.dontCallGetSet) {\n descriptor = getOwnPropertyDescriptor(target, key);\n targetProperty = descriptor && descriptor.value;\n } else targetProperty = target[key];\n FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);\n // contained in target\n if (!FORCED && targetProperty !== undefined) {\n if (typeof sourceProperty == typeof targetProperty) continue;\n copyConstructorProperties(sourceProperty, targetProperty);\n }\n // add a flag to not completely full polyfills\n if (options.sham || (targetProperty && targetProperty.sham)) {\n createNonEnumerableProperty(sourceProperty, 'sham', true);\n }\n defineBuiltIn(target, key, sourceProperty, options);\n }\n};\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n function F() { /* empty */ }\n F.prototype.constructor = null;\n // eslint-disable-next-line es/no-object-getprototypeof -- required for testing\n return Object.getPrototypeOf(new F()) !== F.prototype;\n});\n","var hasOwn = require('../internals/has-own-property');\nvar isCallable = require('../internals/is-callable');\nvar toObject = require('../internals/to-object');\nvar sharedKey = require('../internals/shared-key');\nvar CORRECT_PROTOTYPE_GETTER = require('../internals/correct-prototype-getter');\n\nvar IE_PROTO = sharedKey('IE_PROTO');\nvar $Object = Object;\nvar ObjectPrototype = $Object.prototype;\n\n// `Object.getPrototypeOf` method\n// https://tc39.es/ecma262/#sec-object.getprototypeof\n// eslint-disable-next-line es/no-object-getprototypeof -- safe\nmodule.exports = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {\n var object = toObject(O);\n if (hasOwn(object, IE_PROTO)) return object[IE_PROTO];\n var constructor = object.constructor;\n if (isCallable(constructor) && object instanceof constructor) {\n return constructor.prototype;\n } return object instanceof $Object ? ObjectPrototype : null;\n};\n","var defineProperty = require('../internals/object-define-property').f;\nvar hasOwn = require('../internals/has-own-property');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\n\nmodule.exports = function (target, TAG, STATIC) {\n if (target && !STATIC) target = target.prototype;\n if (target && !hasOwn(target, TO_STRING_TAG)) {\n defineProperty(target, TO_STRING_TAG, { configurable: true, value: TAG });\n }\n};\n","'use strict';\nvar IteratorPrototype = require('../internals/iterators-core').IteratorPrototype;\nvar create = require('../internals/object-create');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar Iterators = require('../internals/iterators');\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {\n var TO_STRING_TAG = NAME + ' Iterator';\n IteratorConstructor.prototype = create(IteratorPrototype, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });\n setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true);\n Iterators[TO_STRING_TAG] = returnThis;\n return IteratorConstructor;\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar aCallable = require('../internals/a-callable');\n\nmodule.exports = function (object, key, method) {\n try {\n // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\n return uncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));\n } catch (error) { /* empty */ }\n};\n","var isCallable = require('../internals/is-callable');\n\nvar $String = String;\nvar $TypeError = TypeError;\n\nmodule.exports = function (argument) {\n if (typeof argument == 'object' || isCallable(argument)) return argument;\n throw $TypeError(\"Can't set \" + $String(argument) + ' as a prototype');\n};\n","/* eslint-disable no-proto -- safe */\nvar uncurryThisAccessor = require('../internals/function-uncurry-this-accessor');\nvar anObject = require('../internals/an-object');\nvar aPossiblePrototype = require('../internals/a-possible-prototype');\n\n// `Object.setPrototypeOf` method\n// https://tc39.es/ecma262/#sec-object.setprototypeof\n// Works with __proto__ only. Old v8 can't work with null proto objects.\n// eslint-disable-next-line es/no-object-setprototypeof -- safe\nmodule.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {\n var CORRECT_SETTER = false;\n var test = {};\n var setter;\n try {\n setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');\n setter(test, []);\n CORRECT_SETTER = test instanceof Array;\n } catch (error) { /* empty */ }\n return function setPrototypeOf(O, proto) {\n anObject(O);\n aPossiblePrototype(proto);\n if (CORRECT_SETTER) setter(O, proto);\n else O.__proto__ = proto;\n return O;\n };\n}() : undefined);\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar IS_PURE = require('../internals/is-pure');\nvar FunctionName = require('../internals/function-name');\nvar isCallable = require('../internals/is-callable');\nvar createIteratorConstructor = require('../internals/iterator-create-constructor');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar Iterators = require('../internals/iterators');\nvar IteratorsCore = require('../internals/iterators-core');\n\nvar PROPER_FUNCTION_NAME = FunctionName.PROPER;\nvar CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;\nvar IteratorPrototype = IteratorsCore.IteratorPrototype;\nvar BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;\nvar ITERATOR = wellKnownSymbol('iterator');\nvar KEYS = 'keys';\nvar VALUES = 'values';\nvar ENTRIES = 'entries';\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {\n createIteratorConstructor(IteratorConstructor, NAME, next);\n\n var getIterationMethod = function (KIND) {\n if (KIND === DEFAULT && defaultIterator) return defaultIterator;\n if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];\n switch (KIND) {\n case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };\n case VALUES: return function values() { return new IteratorConstructor(this, KIND); };\n case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };\n } return function () { return new IteratorConstructor(this); };\n };\n\n var TO_STRING_TAG = NAME + ' Iterator';\n var INCORRECT_VALUES_NAME = false;\n var IterablePrototype = Iterable.prototype;\n var nativeIterator = IterablePrototype[ITERATOR]\n || IterablePrototype['@@iterator']\n || DEFAULT && IterablePrototype[DEFAULT];\n var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);\n var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;\n var CurrentIteratorPrototype, methods, KEY;\n\n // fix native\n if (anyNativeIterator) {\n CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));\n if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {\n if (!IS_PURE && getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {\n if (setPrototypeOf) {\n setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);\n } else if (!isCallable(CurrentIteratorPrototype[ITERATOR])) {\n defineBuiltIn(CurrentIteratorPrototype, ITERATOR, returnThis);\n }\n }\n // Set @@toStringTag to native iterators\n setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true);\n if (IS_PURE) Iterators[TO_STRING_TAG] = returnThis;\n }\n }\n\n // fix Array.prototype.{ values, @@iterator }.name in V8 / FF\n if (PROPER_FUNCTION_NAME && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {\n if (!IS_PURE && CONFIGURABLE_FUNCTION_NAME) {\n createNonEnumerableProperty(IterablePrototype, 'name', VALUES);\n } else {\n INCORRECT_VALUES_NAME = true;\n defaultIterator = function values() { return call(nativeIterator, this); };\n }\n }\n\n // export additional methods\n if (DEFAULT) {\n methods = {\n values: getIterationMethod(VALUES),\n keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),\n entries: getIterationMethod(ENTRIES)\n };\n if (FORCED) for (KEY in methods) {\n if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {\n defineBuiltIn(IterablePrototype, KEY, methods[KEY]);\n }\n } else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);\n }\n\n // define iterator\n if ((!IS_PURE || FORCED) && IterablePrototype[ITERATOR] !== defaultIterator) {\n defineBuiltIn(IterablePrototype, ITERATOR, defaultIterator, { name: DEFAULT });\n }\n Iterators[NAME] = defaultIterator;\n\n return methods;\n};\n","// `CreateIterResultObject` abstract operation\n// https://tc39.es/ecma262/#sec-createiterresultobject\nmodule.exports = function (value, done) {\n return { value: value, done: done };\n};\n","'use strict';\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar addToUnscopables = require('../internals/add-to-unscopables');\nvar Iterators = require('../internals/iterators');\nvar InternalStateModule = require('../internals/internal-state');\nvar defineProperty = require('../internals/object-define-property').f;\nvar defineIterator = require('../internals/iterator-define');\nvar createIterResultObject = require('../internals/create-iter-result-object');\nvar IS_PURE = require('../internals/is-pure');\nvar DESCRIPTORS = require('../internals/descriptors');\n\nvar ARRAY_ITERATOR = 'Array Iterator';\nvar setInternalState = InternalStateModule.set;\nvar getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);\n\n// `Array.prototype.entries` method\n// https://tc39.es/ecma262/#sec-array.prototype.entries\n// `Array.prototype.keys` method\n// https://tc39.es/ecma262/#sec-array.prototype.keys\n// `Array.prototype.values` method\n// https://tc39.es/ecma262/#sec-array.prototype.values\n// `Array.prototype[@@iterator]` method\n// https://tc39.es/ecma262/#sec-array.prototype-@@iterator\n// `CreateArrayIterator` internal method\n// https://tc39.es/ecma262/#sec-createarrayiterator\nmodule.exports = defineIterator(Array, 'Array', function (iterated, kind) {\n setInternalState(this, {\n type: ARRAY_ITERATOR,\n target: toIndexedObject(iterated), // target\n index: 0, // next index\n kind: kind // kind\n });\n// `%ArrayIteratorPrototype%.next` method\n// https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next\n}, function () {\n var state = getInternalState(this);\n var target = state.target;\n var kind = state.kind;\n var index = state.index++;\n if (!target || index >= target.length) {\n state.target = undefined;\n return createIterResultObject(undefined, true);\n }\n if (kind == 'keys') return createIterResultObject(index, false);\n if (kind == 'values') return createIterResultObject(target[index], false);\n return createIterResultObject([index, target[index]], false);\n}, 'values');\n\n// argumentsList[@@iterator] is %ArrayProto_values%\n// https://tc39.es/ecma262/#sec-createunmappedargumentsobject\n// https://tc39.es/ecma262/#sec-createmappedargumentsobject\nvar values = Iterators.Arguments = Iterators.Array;\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables('keys');\naddToUnscopables('values');\naddToUnscopables('entries');\n\n// V8 ~ Chrome 45- bug\nif (!IS_PURE && DESCRIPTORS && values.name !== 'values') try {\n defineProperty(values, 'name', { value: 'values' });\n} catch (error) { /* empty */ }\n","var global = require('../internals/global');\nvar DOMIterables = require('../internals/dom-iterables');\nvar DOMTokenListPrototype = require('../internals/dom-token-list-prototype');\nvar ArrayIteratorMethods = require('../modules/es.array.iterator');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar ArrayValues = ArrayIteratorMethods.values;\n\nvar handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {\n if (CollectionPrototype) {\n // some Chrome versions have non-configurable methods on DOMTokenList\n if (CollectionPrototype[ITERATOR] !== ArrayValues) try {\n createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);\n } catch (error) {\n CollectionPrototype[ITERATOR] = ArrayValues;\n }\n if (!CollectionPrototype[TO_STRING_TAG]) {\n createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);\n }\n if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {\n // some Chrome versions have non-configurable methods on DOMTokenList\n if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {\n createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);\n } catch (error) {\n CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];\n }\n }\n }\n};\n\nfor (var COLLECTION_NAME in DOMIterables) {\n handlePrototype(global[COLLECTION_NAME] && global[COLLECTION_NAME].prototype, COLLECTION_NAME);\n}\n\nhandlePrototype(DOMTokenListPrototype, 'DOMTokenList');\n","var global = require('../internals/global');\n\nmodule.exports = global;\n","'use strict';\n/* eslint-disable es/no-array-prototype-indexof -- required for testing */\nvar $ = require('../internals/export');\nvar uncurryThis = require('../internals/function-uncurry-this-clause');\nvar $indexOf = require('../internals/array-includes').indexOf;\nvar arrayMethodIsStrict = require('../internals/array-method-is-strict');\n\nvar nativeIndexOf = uncurryThis([].indexOf);\n\nvar NEGATIVE_ZERO = !!nativeIndexOf && 1 / nativeIndexOf([1], 1, -0) < 0;\nvar FORCED = NEGATIVE_ZERO || !arrayMethodIsStrict('indexOf');\n\n// `Array.prototype.indexOf` method\n// https://tc39.es/ecma262/#sec-array.prototype.indexof\n$({ target: 'Array', proto: true, forced: FORCED }, {\n indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {\n var fromIndex = arguments.length > 1 ? arguments[1] : undefined;\n return NEGATIVE_ZERO\n // convert -0 to +0\n ? nativeIndexOf(this, searchElement, fromIndex) || 0\n : $indexOf(this, searchElement, fromIndex);\n }\n});\n","var $TypeError = TypeError;\nvar MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991\n\nmodule.exports = function (it) {\n if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');\n return it;\n};\n","'use strict';\nvar toPropertyKey = require('../internals/to-property-key');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = function (object, key, value) {\n var propertyKey = toPropertyKey(key);\n if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));\n else object[propertyKey] = value;\n};\n","var fails = require('../internals/fails');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar V8_VERSION = require('../internals/engine-v8-version');\n\nvar SPECIES = wellKnownSymbol('species');\n\nmodule.exports = function (METHOD_NAME) {\n // We can't use this feature detection in V8 since it causes\n // deoptimization and serious performance degradation\n // https://github.com/zloirock/core-js/issues/677\n return V8_VERSION >= 51 || !fails(function () {\n var array = [];\n var constructor = array.constructor = {};\n constructor[SPECIES] = function () {\n return { foo: 1 };\n };\n return array[METHOD_NAME](Boolean).foo !== 1;\n });\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar fails = require('../internals/fails');\nvar isArray = require('../internals/is-array');\nvar isObject = require('../internals/is-object');\nvar toObject = require('../internals/to-object');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar doesNotExceedSafeInteger = require('../internals/does-not-exceed-safe-integer');\nvar createProperty = require('../internals/create-property');\nvar arraySpeciesCreate = require('../internals/array-species-create');\nvar arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar V8_VERSION = require('../internals/engine-v8-version');\n\nvar IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');\n\n// We can't use this feature detection in V8 since it causes\n// deoptimization and serious performance degradation\n// https://github.com/zloirock/core-js/issues/679\nvar IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () {\n var array = [];\n array[IS_CONCAT_SPREADABLE] = false;\n return array.concat()[0] !== array;\n});\n\nvar isConcatSpreadable = function (O) {\n if (!isObject(O)) return false;\n var spreadable = O[IS_CONCAT_SPREADABLE];\n return spreadable !== undefined ? !!spreadable : isArray(O);\n};\n\nvar FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport('concat');\n\n// `Array.prototype.concat` method\n// https://tc39.es/ecma262/#sec-array.prototype.concat\n// with adding support of @@isConcatSpreadable and @@species\n$({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n concat: function concat(arg) {\n var O = toObject(this);\n var A = arraySpeciesCreate(O, 0);\n var n = 0;\n var i, k, length, len, E;\n for (i = -1, length = arguments.length; i < length; i++) {\n E = i === -1 ? O : arguments[i];\n if (isConcatSpreadable(E)) {\n len = lengthOfArrayLike(E);\n doesNotExceedSafeInteger(n + len);\n for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);\n } else {\n doesNotExceedSafeInteger(n + 1);\n createProperty(A, n++, E);\n }\n }\n A.length = n;\n return A;\n }\n});\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar call = require('../internals/function-call');\nvar fails = require('../internals/fails');\nvar objectKeys = require('../internals/object-keys');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar toObject = require('../internals/to-object');\nvar IndexedObject = require('../internals/indexed-object');\n\n// eslint-disable-next-line es/no-object-assign -- safe\nvar $assign = Object.assign;\n// eslint-disable-next-line es/no-object-defineproperty -- required for testing\nvar defineProperty = Object.defineProperty;\nvar concat = uncurryThis([].concat);\n\n// `Object.assign` method\n// https://tc39.es/ecma262/#sec-object.assign\nmodule.exports = !$assign || fails(function () {\n // should have correct order of operations (Edge bug)\n if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {\n enumerable: true,\n get: function () {\n defineProperty(this, 'b', {\n value: 3,\n enumerable: false\n });\n }\n }), { b: 2 })).b !== 1) return true;\n // should work with symbols and should have deterministic property order (V8 bug)\n var A = {};\n var B = {};\n // eslint-disable-next-line es/no-symbol -- safe\n var symbol = Symbol();\n var alphabet = 'abcdefghijklmnopqrst';\n A[symbol] = 7;\n alphabet.split('').forEach(function (chr) { B[chr] = chr; });\n return $assign({}, A)[symbol] != 7 || objectKeys($assign({}, B)).join('') != alphabet;\n}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`\n var T = toObject(target);\n var argumentsLength = arguments.length;\n var index = 1;\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n var propertyIsEnumerable = propertyIsEnumerableModule.f;\n while (argumentsLength > index) {\n var S = IndexedObject(arguments[index++]);\n var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);\n var length = keys.length;\n var j = 0;\n var key;\n while (length > j) {\n key = keys[j++];\n if (!DESCRIPTORS || call(propertyIsEnumerable, S, key)) T[key] = S[key];\n }\n } return T;\n} : $assign;\n","var $ = require('../internals/export');\nvar assign = require('../internals/object-assign');\n\n// `Object.assign` method\n// https://tc39.es/ecma262/#sec-object.assign\n// eslint-disable-next-line es/no-object-assign -- required for testing\n$({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {\n assign: assign\n});\n","'use strict';\nvar TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar classof = require('../internals/classof');\n\n// `Object.prototype.toString` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.tostring\nmodule.exports = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() {\n return '[object ' + classof(this) + ']';\n};\n","var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar toString = require('../internals/object-to-string');\n\n// `Object.prototype.toString` method\n// https://tc39.es/ecma262/#sec-object.prototype.tostring\nif (!TO_STRING_TAG_SUPPORT) {\n defineBuiltIn(Object.prototype, 'toString', toString, { unsafe: true });\n}\n","var classof = require('../internals/classof-raw');\n\nmodule.exports = typeof process != 'undefined' && classof(process) == 'process';\n","var global = require('../internals/global');\nvar apply = require('../internals/function-apply');\nvar bind = require('../internals/function-bind-context');\nvar isCallable = require('../internals/is-callable');\nvar hasOwn = require('../internals/has-own-property');\nvar fails = require('../internals/fails');\nvar html = require('../internals/html');\nvar arraySlice = require('../internals/array-slice');\nvar createElement = require('../internals/document-create-element');\nvar validateArgumentsLength = require('../internals/validate-arguments-length');\nvar IS_IOS = require('../internals/engine-is-ios');\nvar IS_NODE = require('../internals/engine-is-node');\n\nvar set = global.setImmediate;\nvar clear = global.clearImmediate;\nvar process = global.process;\nvar Dispatch = global.Dispatch;\nvar Function = global.Function;\nvar MessageChannel = global.MessageChannel;\nvar String = global.String;\nvar counter = 0;\nvar queue = {};\nvar ONREADYSTATECHANGE = 'onreadystatechange';\nvar $location, defer, channel, port;\n\nfails(function () {\n // Deno throws a ReferenceError on `location` access without `--location` flag\n $location = global.location;\n});\n\nvar run = function (id) {\n if (hasOwn(queue, id)) {\n var fn = queue[id];\n delete queue[id];\n fn();\n }\n};\n\nvar runner = function (id) {\n return function () {\n run(id);\n };\n};\n\nvar eventListener = function (event) {\n run(event.data);\n};\n\nvar globalPostMessageDefer = function (id) {\n // old engines have not location.origin\n global.postMessage(String(id), $location.protocol + '//' + $location.host);\n};\n\n// Node.js 0.9+ & IE10+ has setImmediate, otherwise:\nif (!set || !clear) {\n set = function setImmediate(handler) {\n validateArgumentsLength(arguments.length, 1);\n var fn = isCallable(handler) ? handler : Function(handler);\n var args = arraySlice(arguments, 1);\n queue[++counter] = function () {\n apply(fn, undefined, args);\n };\n defer(counter);\n return counter;\n };\n clear = function clearImmediate(id) {\n delete queue[id];\n };\n // Node.js 0.8-\n if (IS_NODE) {\n defer = function (id) {\n process.nextTick(runner(id));\n };\n // Sphere (JS game engine) Dispatch API\n } else if (Dispatch && Dispatch.now) {\n defer = function (id) {\n Dispatch.now(runner(id));\n };\n // Browsers with MessageChannel, includes WebWorkers\n // except iOS - https://github.com/zloirock/core-js/issues/624\n } else if (MessageChannel && !IS_IOS) {\n channel = new MessageChannel();\n port = channel.port2;\n channel.port1.onmessage = eventListener;\n defer = bind(port.postMessage, port);\n // Browsers with postMessage, skip WebWorkers\n // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'\n } else if (\n global.addEventListener &&\n isCallable(global.postMessage) &&\n !global.importScripts &&\n $location && $location.protocol !== 'file:' &&\n !fails(globalPostMessageDefer)\n ) {\n defer = globalPostMessageDefer;\n global.addEventListener('message', eventListener, false);\n // IE8-\n } else if (ONREADYSTATECHANGE in createElement('script')) {\n defer = function (id) {\n html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {\n html.removeChild(this);\n run(id);\n };\n };\n // Rest old browsers\n } else {\n defer = function (id) {\n setTimeout(runner(id), 0);\n };\n }\n}\n\nmodule.exports = {\n set: set,\n clear: clear\n};\n","var makeBuiltIn = require('../internals/make-built-in');\nvar defineProperty = require('../internals/object-define-property');\n\nmodule.exports = function (target, name, descriptor) {\n if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });\n if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });\n return defineProperty.f(target, name, descriptor);\n};\n","'use strict';\nvar getBuiltIn = require('../internals/get-built-in');\nvar defineBuiltInAccessor = require('../internals/define-built-in-accessor');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar DESCRIPTORS = require('../internals/descriptors');\n\nvar SPECIES = wellKnownSymbol('species');\n\nmodule.exports = function (CONSTRUCTOR_NAME) {\n var Constructor = getBuiltIn(CONSTRUCTOR_NAME);\n\n if (DESCRIPTORS && Constructor && !Constructor[SPECIES]) {\n defineBuiltInAccessor(Constructor, SPECIES, {\n configurable: true,\n get: function () { return this; }\n });\n }\n};\n","var isPrototypeOf = require('../internals/object-is-prototype-of');\n\nvar $TypeError = TypeError;\n\nmodule.exports = function (it, Prototype) {\n if (isPrototypeOf(Prototype, it)) return it;\n throw $TypeError('Incorrect invocation');\n};\n","var isConstructor = require('../internals/is-constructor');\nvar tryToString = require('../internals/try-to-string');\n\nvar $TypeError = TypeError;\n\n// `Assert: IsConstructor(argument) is true`\nmodule.exports = function (argument) {\n if (isConstructor(argument)) return argument;\n throw $TypeError(tryToString(argument) + ' is not a constructor');\n};\n","var anObject = require('../internals/an-object');\nvar aConstructor = require('../internals/a-constructor');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar SPECIES = wellKnownSymbol('species');\n\n// `SpeciesConstructor` abstract operation\n// https://tc39.es/ecma262/#sec-speciesconstructor\nmodule.exports = function (O, defaultConstructor) {\n var C = anObject(O).constructor;\n var S;\n return C === undefined || isNullOrUndefined(S = anObject(C)[SPECIES]) ? defaultConstructor : aConstructor(S);\n};\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar FunctionPrototype = Function.prototype;\nvar apply = FunctionPrototype.apply;\nvar call = FunctionPrototype.call;\n\n// eslint-disable-next-line es/no-reflect -- safe\nmodule.exports = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call.bind(apply) : function () {\n return call.apply(apply, arguments);\n});\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = uncurryThis([].slice);\n","var $TypeError = TypeError;\n\nmodule.exports = function (passed, required) {\n if (passed < required) throw $TypeError('Not enough arguments');\n return passed;\n};\n","var userAgent = require('../internals/engine-user-agent');\n\n// eslint-disable-next-line redos/no-vulnerable -- safe\nmodule.exports = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent);\n","var Queue = function () {\n this.head = null;\n this.tail = null;\n};\n\nQueue.prototype = {\n add: function (item) {\n var entry = { item: item, next: null };\n var tail = this.tail;\n if (tail) tail.next = entry;\n else this.head = entry;\n this.tail = entry;\n },\n get: function () {\n var entry = this.head;\n if (entry) {\n var next = this.head = entry.next;\n if (next === null) this.tail = null;\n return entry.item;\n }\n }\n};\n\nmodule.exports = Queue;\n","var global = require('../internals/global');\nvar bind = require('../internals/function-bind-context');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar macrotask = require('../internals/task').set;\nvar Queue = require('../internals/queue');\nvar IS_IOS = require('../internals/engine-is-ios');\nvar IS_IOS_PEBBLE = require('../internals/engine-is-ios-pebble');\nvar IS_WEBOS_WEBKIT = require('../internals/engine-is-webos-webkit');\nvar IS_NODE = require('../internals/engine-is-node');\n\nvar MutationObserver = global.MutationObserver || global.WebKitMutationObserver;\nvar document = global.document;\nvar process = global.process;\nvar Promise = global.Promise;\n// Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`\nvar queueMicrotaskDescriptor = getOwnPropertyDescriptor(global, 'queueMicrotask');\nvar microtask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;\nvar notify, toggle, node, promise, then;\n\n// modern engines have queueMicrotask method\nif (!microtask) {\n var queue = new Queue();\n\n var flush = function () {\n var parent, fn;\n if (IS_NODE && (parent = process.domain)) parent.exit();\n while (fn = queue.get()) try {\n fn();\n } catch (error) {\n if (queue.head) notify();\n throw error;\n }\n if (parent) parent.enter();\n };\n\n // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339\n // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898\n if (!IS_IOS && !IS_NODE && !IS_WEBOS_WEBKIT && MutationObserver && document) {\n toggle = true;\n node = document.createTextNode('');\n new MutationObserver(flush).observe(node, { characterData: true });\n notify = function () {\n node.data = toggle = !toggle;\n };\n // environments with maybe non-completely correct, but existent Promise\n } else if (!IS_IOS_PEBBLE && Promise && Promise.resolve) {\n // Promise.resolve without an argument throws an error in LG WebOS 2\n promise = Promise.resolve(undefined);\n // workaround of WebKit ~ iOS Safari 10.1 bug\n promise.constructor = Promise;\n then = bind(promise.then, promise);\n notify = function () {\n then(flush);\n };\n // Node.js without promises\n } else if (IS_NODE) {\n notify = function () {\n process.nextTick(flush);\n };\n // for other environments - macrotask based on:\n // - setImmediate\n // - MessageChannel\n // - window.postMessage\n // - onreadystatechange\n // - setTimeout\n } else {\n // `webpack` dev server bug on IE global methods - use bind(fn, global)\n macrotask = bind(macrotask, global);\n notify = function () {\n macrotask(flush);\n };\n }\n\n microtask = function (fn) {\n if (!queue.head) notify();\n queue.add(fn);\n };\n}\n\nmodule.exports = microtask;\n","var userAgent = require('../internals/engine-user-agent');\n\nmodule.exports = /ipad|iphone|ipod/i.test(userAgent) && typeof Pebble != 'undefined';\n","var userAgent = require('../internals/engine-user-agent');\n\nmodule.exports = /web0s(?!.*chrome)/i.test(userAgent);\n","module.exports = function (exec) {\n try {\n return { error: false, value: exec() };\n } catch (error) {\n return { error: true, value: error };\n }\n};\n","var global = require('../internals/global');\n\nmodule.exports = global.Promise;\n","/* global Deno -- Deno case */\nmodule.exports = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';\n","var IS_DENO = require('../internals/engine-is-deno');\nvar IS_NODE = require('../internals/engine-is-node');\n\nmodule.exports = !IS_DENO && !IS_NODE\n && typeof window == 'object'\n && typeof document == 'object';\n","var global = require('../internals/global');\nvar NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar isCallable = require('../internals/is-callable');\nvar isForced = require('../internals/is-forced');\nvar inspectSource = require('../internals/inspect-source');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar IS_BROWSER = require('../internals/engine-is-browser');\nvar IS_DENO = require('../internals/engine-is-deno');\nvar IS_PURE = require('../internals/is-pure');\nvar V8_VERSION = require('../internals/engine-v8-version');\n\nvar NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;\nvar SPECIES = wellKnownSymbol('species');\nvar SUBCLASSING = false;\nvar NATIVE_PROMISE_REJECTION_EVENT = isCallable(global.PromiseRejectionEvent);\n\nvar FORCED_PROMISE_CONSTRUCTOR = isForced('Promise', function () {\n var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor);\n var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor);\n // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables\n // https://bugs.chromium.org/p/chromium/issues/detail?id=830565\n // We can't detect it synchronously, so just check versions\n if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;\n // We need Promise#{ catch, finally } in the pure version for preventing prototype pollution\n if (IS_PURE && !(NativePromisePrototype['catch'] && NativePromisePrototype['finally'])) return true;\n // We can't use @@species feature detection in V8 since it causes\n // deoptimization and performance degradation\n // https://github.com/zloirock/core-js/issues/679\n if (!V8_VERSION || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) {\n // Detect correctness of subclassing with @@species support\n var promise = new NativePromiseConstructor(function (resolve) { resolve(1); });\n var FakePromise = function (exec) {\n exec(function () { /* empty */ }, function () { /* empty */ });\n };\n var constructor = promise.constructor = {};\n constructor[SPECIES] = FakePromise;\n SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;\n if (!SUBCLASSING) return true;\n // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test\n } return !GLOBAL_CORE_JS_PROMISE && (IS_BROWSER || IS_DENO) && !NATIVE_PROMISE_REJECTION_EVENT;\n});\n\nmodule.exports = {\n CONSTRUCTOR: FORCED_PROMISE_CONSTRUCTOR,\n REJECTION_EVENT: NATIVE_PROMISE_REJECTION_EVENT,\n SUBCLASSING: SUBCLASSING\n};\n","'use strict';\nvar aCallable = require('../internals/a-callable');\n\nvar $TypeError = TypeError;\n\nvar PromiseCapability = function (C) {\n var resolve, reject;\n this.promise = new C(function ($$resolve, $$reject) {\n if (resolve !== undefined || reject !== undefined) throw $TypeError('Bad Promise constructor');\n resolve = $$resolve;\n reject = $$reject;\n });\n this.resolve = aCallable(resolve);\n this.reject = aCallable(reject);\n};\n\n// `NewPromiseCapability` abstract operation\n// https://tc39.es/ecma262/#sec-newpromisecapability\nmodule.exports.f = function (C) {\n return new PromiseCapability(C);\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar IS_NODE = require('../internals/engine-is-node');\nvar global = require('../internals/global');\nvar call = require('../internals/function-call');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar setSpecies = require('../internals/set-species');\nvar aCallable = require('../internals/a-callable');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\nvar anInstance = require('../internals/an-instance');\nvar speciesConstructor = require('../internals/species-constructor');\nvar task = require('../internals/task').set;\nvar microtask = require('../internals/microtask');\nvar hostReportErrors = require('../internals/host-report-errors');\nvar perform = require('../internals/perform');\nvar Queue = require('../internals/queue');\nvar InternalStateModule = require('../internals/internal-state');\nvar NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar PromiseConstructorDetection = require('../internals/promise-constructor-detection');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\n\nvar PROMISE = 'Promise';\nvar FORCED_PROMISE_CONSTRUCTOR = PromiseConstructorDetection.CONSTRUCTOR;\nvar NATIVE_PROMISE_REJECTION_EVENT = PromiseConstructorDetection.REJECTION_EVENT;\nvar NATIVE_PROMISE_SUBCLASSING = PromiseConstructorDetection.SUBCLASSING;\nvar getInternalPromiseState = InternalStateModule.getterFor(PROMISE);\nvar setInternalState = InternalStateModule.set;\nvar NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;\nvar PromiseConstructor = NativePromiseConstructor;\nvar PromisePrototype = NativePromisePrototype;\nvar TypeError = global.TypeError;\nvar document = global.document;\nvar process = global.process;\nvar newPromiseCapability = newPromiseCapabilityModule.f;\nvar newGenericPromiseCapability = newPromiseCapability;\n\nvar DISPATCH_EVENT = !!(document && document.createEvent && global.dispatchEvent);\nvar UNHANDLED_REJECTION = 'unhandledrejection';\nvar REJECTION_HANDLED = 'rejectionhandled';\nvar PENDING = 0;\nvar FULFILLED = 1;\nvar REJECTED = 2;\nvar HANDLED = 1;\nvar UNHANDLED = 2;\n\nvar Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;\n\n// helpers\nvar isThenable = function (it) {\n var then;\n return isObject(it) && isCallable(then = it.then) ? then : false;\n};\n\nvar callReaction = function (reaction, state) {\n var value = state.value;\n var ok = state.state == FULFILLED;\n var handler = ok ? reaction.ok : reaction.fail;\n var resolve = reaction.resolve;\n var reject = reaction.reject;\n var domain = reaction.domain;\n var result, then, exited;\n try {\n if (handler) {\n if (!ok) {\n if (state.rejection === UNHANDLED) onHandleUnhandled(state);\n state.rejection = HANDLED;\n }\n if (handler === true) result = value;\n else {\n if (domain) domain.enter();\n result = handler(value); // can throw\n if (domain) {\n domain.exit();\n exited = true;\n }\n }\n if (result === reaction.promise) {\n reject(TypeError('Promise-chain cycle'));\n } else if (then = isThenable(result)) {\n call(then, result, resolve, reject);\n } else resolve(result);\n } else reject(value);\n } catch (error) {\n if (domain && !exited) domain.exit();\n reject(error);\n }\n};\n\nvar notify = function (state, isReject) {\n if (state.notified) return;\n state.notified = true;\n microtask(function () {\n var reactions = state.reactions;\n var reaction;\n while (reaction = reactions.get()) {\n callReaction(reaction, state);\n }\n state.notified = false;\n if (isReject && !state.rejection) onUnhandled(state);\n });\n};\n\nvar dispatchEvent = function (name, promise, reason) {\n var event, handler;\n if (DISPATCH_EVENT) {\n event = document.createEvent('Event');\n event.promise = promise;\n event.reason = reason;\n event.initEvent(name, false, true);\n global.dispatchEvent(event);\n } else event = { promise: promise, reason: reason };\n if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global['on' + name])) handler(event);\n else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);\n};\n\nvar onUnhandled = function (state) {\n call(task, global, function () {\n var promise = state.facade;\n var value = state.value;\n var IS_UNHANDLED = isUnhandled(state);\n var result;\n if (IS_UNHANDLED) {\n result = perform(function () {\n if (IS_NODE) {\n process.emit('unhandledRejection', value, promise);\n } else dispatchEvent(UNHANDLED_REJECTION, promise, value);\n });\n // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should\n state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;\n if (result.error) throw result.value;\n }\n });\n};\n\nvar isUnhandled = function (state) {\n return state.rejection !== HANDLED && !state.parent;\n};\n\nvar onHandleUnhandled = function (state) {\n call(task, global, function () {\n var promise = state.facade;\n if (IS_NODE) {\n process.emit('rejectionHandled', promise);\n } else dispatchEvent(REJECTION_HANDLED, promise, state.value);\n });\n};\n\nvar bind = function (fn, state, unwrap) {\n return function (value) {\n fn(state, value, unwrap);\n };\n};\n\nvar internalReject = function (state, value, unwrap) {\n if (state.done) return;\n state.done = true;\n if (unwrap) state = unwrap;\n state.value = value;\n state.state = REJECTED;\n notify(state, true);\n};\n\nvar internalResolve = function (state, value, unwrap) {\n if (state.done) return;\n state.done = true;\n if (unwrap) state = unwrap;\n try {\n if (state.facade === value) throw TypeError(\"Promise can't be resolved itself\");\n var then = isThenable(value);\n if (then) {\n microtask(function () {\n var wrapper = { done: false };\n try {\n call(then, value,\n bind(internalResolve, wrapper, state),\n bind(internalReject, wrapper, state)\n );\n } catch (error) {\n internalReject(wrapper, error, state);\n }\n });\n } else {\n state.value = value;\n state.state = FULFILLED;\n notify(state, false);\n }\n } catch (error) {\n internalReject({ done: false }, error, state);\n }\n};\n\n// constructor polyfill\nif (FORCED_PROMISE_CONSTRUCTOR) {\n // 25.4.3.1 Promise(executor)\n PromiseConstructor = function Promise(executor) {\n anInstance(this, PromisePrototype);\n aCallable(executor);\n call(Internal, this);\n var state = getInternalPromiseState(this);\n try {\n executor(bind(internalResolve, state), bind(internalReject, state));\n } catch (error) {\n internalReject(state, error);\n }\n };\n\n PromisePrototype = PromiseConstructor.prototype;\n\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n Internal = function Promise(executor) {\n setInternalState(this, {\n type: PROMISE,\n done: false,\n notified: false,\n parent: false,\n reactions: new Queue(),\n rejection: false,\n state: PENDING,\n value: undefined\n });\n };\n\n // `Promise.prototype.then` method\n // https://tc39.es/ecma262/#sec-promise.prototype.then\n Internal.prototype = defineBuiltIn(PromisePrototype, 'then', function then(onFulfilled, onRejected) {\n var state = getInternalPromiseState(this);\n var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor));\n state.parent = true;\n reaction.ok = isCallable(onFulfilled) ? onFulfilled : true;\n reaction.fail = isCallable(onRejected) && onRejected;\n reaction.domain = IS_NODE ? process.domain : undefined;\n if (state.state == PENDING) state.reactions.add(reaction);\n else microtask(function () {\n callReaction(reaction, state);\n });\n return reaction.promise;\n });\n\n OwnPromiseCapability = function () {\n var promise = new Internal();\n var state = getInternalPromiseState(promise);\n this.promise = promise;\n this.resolve = bind(internalResolve, state);\n this.reject = bind(internalReject, state);\n };\n\n newPromiseCapabilityModule.f = newPromiseCapability = function (C) {\n return C === PromiseConstructor || C === PromiseWrapper\n ? new OwnPromiseCapability(C)\n : newGenericPromiseCapability(C);\n };\n\n if (!IS_PURE && isCallable(NativePromiseConstructor) && NativePromisePrototype !== Object.prototype) {\n nativeThen = NativePromisePrototype.then;\n\n if (!NATIVE_PROMISE_SUBCLASSING) {\n // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs\n defineBuiltIn(NativePromisePrototype, 'then', function then(onFulfilled, onRejected) {\n var that = this;\n return new PromiseConstructor(function (resolve, reject) {\n call(nativeThen, that, resolve, reject);\n }).then(onFulfilled, onRejected);\n // https://github.com/zloirock/core-js/issues/640\n }, { unsafe: true });\n }\n\n // make `.constructor === Promise` work for native promise-based APIs\n try {\n delete NativePromisePrototype.constructor;\n } catch (error) { /* empty */ }\n\n // make `instanceof Promise` work for native promise-based APIs\n if (setPrototypeOf) {\n setPrototypeOf(NativePromisePrototype, PromisePrototype);\n }\n }\n}\n\n$({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {\n Promise: PromiseConstructor\n});\n\nsetToStringTag(PromiseConstructor, PROMISE, false, true);\nsetSpecies(PROMISE);\n","module.exports = function (a, b) {\n try {\n // eslint-disable-next-line no-console -- safe\n arguments.length == 1 ? console.error(a) : console.error(a, b);\n } catch (error) { /* empty */ }\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\nvar Iterators = require('../internals/iterators');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar ArrayPrototype = Array.prototype;\n\n// check on default Array iterator\nmodule.exports = function (it) {\n return it !== undefined && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it);\n};\n","var classof = require('../internals/classof');\nvar getMethod = require('../internals/get-method');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar Iterators = require('../internals/iterators');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\n\nmodule.exports = function (it) {\n if (!isNullOrUndefined(it)) return getMethod(it, ITERATOR)\n || getMethod(it, '@@iterator')\n || Iterators[classof(it)];\n};\n","var call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar anObject = require('../internals/an-object');\nvar tryToString = require('../internals/try-to-string');\nvar getIteratorMethod = require('../internals/get-iterator-method');\n\nvar $TypeError = TypeError;\n\nmodule.exports = function (argument, usingIterator) {\n var iteratorMethod = arguments.length < 2 ? getIteratorMethod(argument) : usingIterator;\n if (aCallable(iteratorMethod)) return anObject(call(iteratorMethod, argument));\n throw $TypeError(tryToString(argument) + ' is not iterable');\n};\n","var call = require('../internals/function-call');\nvar anObject = require('../internals/an-object');\nvar getMethod = require('../internals/get-method');\n\nmodule.exports = function (iterator, kind, value) {\n var innerResult, innerError;\n anObject(iterator);\n try {\n innerResult = getMethod(iterator, 'return');\n if (!innerResult) {\n if (kind === 'throw') throw value;\n return value;\n }\n innerResult = call(innerResult, iterator);\n } catch (error) {\n innerError = true;\n innerResult = error;\n }\n if (kind === 'throw') throw value;\n if (innerError) throw innerResult;\n anObject(innerResult);\n return value;\n};\n","var bind = require('../internals/function-bind-context');\nvar call = require('../internals/function-call');\nvar anObject = require('../internals/an-object');\nvar tryToString = require('../internals/try-to-string');\nvar isArrayIteratorMethod = require('../internals/is-array-iterator-method');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar getIterator = require('../internals/get-iterator');\nvar getIteratorMethod = require('../internals/get-iterator-method');\nvar iteratorClose = require('../internals/iterator-close');\n\nvar $TypeError = TypeError;\n\nvar Result = function (stopped, result) {\n this.stopped = stopped;\n this.result = result;\n};\n\nvar ResultPrototype = Result.prototype;\n\nmodule.exports = function (iterable, unboundFunction, options) {\n var that = options && options.that;\n var AS_ENTRIES = !!(options && options.AS_ENTRIES);\n var IS_RECORD = !!(options && options.IS_RECORD);\n var IS_ITERATOR = !!(options && options.IS_ITERATOR);\n var INTERRUPTED = !!(options && options.INTERRUPTED);\n var fn = bind(unboundFunction, that);\n var iterator, iterFn, index, length, result, next, step;\n\n var stop = function (condition) {\n if (iterator) iteratorClose(iterator, 'normal', condition);\n return new Result(true, condition);\n };\n\n var callFn = function (value) {\n if (AS_ENTRIES) {\n anObject(value);\n return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);\n } return INTERRUPTED ? fn(value, stop) : fn(value);\n };\n\n if (IS_RECORD) {\n iterator = iterable.iterator;\n } else if (IS_ITERATOR) {\n iterator = iterable;\n } else {\n iterFn = getIteratorMethod(iterable);\n if (!iterFn) throw $TypeError(tryToString(iterable) + ' is not iterable');\n // optimisation for array iterators\n if (isArrayIteratorMethod(iterFn)) {\n for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {\n result = callFn(iterable[index]);\n if (result && isPrototypeOf(ResultPrototype, result)) return result;\n } return new Result(false);\n }\n iterator = getIterator(iterable, iterFn);\n }\n\n next = IS_RECORD ? iterable.next : iterator.next;\n while (!(step = call(next, iterator)).done) {\n try {\n result = callFn(step.value);\n } catch (error) {\n iteratorClose(iterator, 'throw', error);\n }\n if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;\n } return new Result(false);\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar SAFE_CLOSING = false;\n\ntry {\n var called = 0;\n var iteratorWithReturn = {\n next: function () {\n return { done: !!called++ };\n },\n 'return': function () {\n SAFE_CLOSING = true;\n }\n };\n iteratorWithReturn[ITERATOR] = function () {\n return this;\n };\n // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing\n Array.from(iteratorWithReturn, function () { throw 2; });\n} catch (error) { /* empty */ }\n\nmodule.exports = function (exec, SKIP_CLOSING) {\n if (!SKIP_CLOSING && !SAFE_CLOSING) return false;\n var ITERATION_SUPPORT = false;\n try {\n var object = {};\n object[ITERATOR] = function () {\n return {\n next: function () {\n return { done: ITERATION_SUPPORT = true };\n }\n };\n };\n exec(object);\n } catch (error) { /* empty */ }\n return ITERATION_SUPPORT;\n};\n","var NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration');\nvar FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR;\n\nmodule.exports = FORCED_PROMISE_CONSTRUCTOR || !checkCorrectnessOfIteration(function (iterable) {\n NativePromiseConstructor.all(iterable).then(undefined, function () { /* empty */ });\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar perform = require('../internals/perform');\nvar iterate = require('../internals/iterate');\nvar PROMISE_STATICS_INCORRECT_ITERATION = require('../internals/promise-statics-incorrect-iteration');\n\n// `Promise.all` method\n// https://tc39.es/ecma262/#sec-promise.all\n$({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {\n all: function all(iterable) {\n var C = this;\n var capability = newPromiseCapabilityModule.f(C);\n var resolve = capability.resolve;\n var reject = capability.reject;\n var result = perform(function () {\n var $promiseResolve = aCallable(C.resolve);\n var values = [];\n var counter = 0;\n var remaining = 1;\n iterate(iterable, function (promise) {\n var index = counter++;\n var alreadyCalled = false;\n remaining++;\n call($promiseResolve, C, promise).then(function (value) {\n if (alreadyCalled) return;\n alreadyCalled = true;\n values[index] = value;\n --remaining || resolve(values);\n }, reject);\n });\n --remaining || resolve(values);\n });\n if (result.error) reject(result.value);\n return capability.promise;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR;\nvar NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar getBuiltIn = require('../internals/get-built-in');\nvar isCallable = require('../internals/is-callable');\nvar defineBuiltIn = require('../internals/define-built-in');\n\nvar NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;\n\n// `Promise.prototype.catch` method\n// https://tc39.es/ecma262/#sec-promise.prototype.catch\n$({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR, real: true }, {\n 'catch': function (onRejected) {\n return this.then(undefined, onRejected);\n }\n});\n\n// makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`\nif (!IS_PURE && isCallable(NativePromiseConstructor)) {\n var method = getBuiltIn('Promise').prototype['catch'];\n if (NativePromisePrototype['catch'] !== method) {\n defineBuiltIn(NativePromisePrototype, 'catch', method, { unsafe: true });\n }\n}\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar perform = require('../internals/perform');\nvar iterate = require('../internals/iterate');\nvar PROMISE_STATICS_INCORRECT_ITERATION = require('../internals/promise-statics-incorrect-iteration');\n\n// `Promise.race` method\n// https://tc39.es/ecma262/#sec-promise.race\n$({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {\n race: function race(iterable) {\n var C = this;\n var capability = newPromiseCapabilityModule.f(C);\n var reject = capability.reject;\n var result = perform(function () {\n var $promiseResolve = aCallable(C.resolve);\n iterate(iterable, function (promise) {\n call($promiseResolve, C, promise).then(capability.resolve, reject);\n });\n });\n if (result.error) reject(result.value);\n return capability.promise;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR;\n\n// `Promise.reject` method\n// https://tc39.es/ecma262/#sec-promise.reject\n$({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {\n reject: function reject(r) {\n var capability = newPromiseCapabilityModule.f(this);\n call(capability.reject, undefined, r);\n return capability.promise;\n }\n});\n","var anObject = require('../internals/an-object');\nvar isObject = require('../internals/is-object');\nvar newPromiseCapability = require('../internals/new-promise-capability');\n\nmodule.exports = function (C, x) {\n anObject(C);\n if (isObject(x) && x.constructor === C) return x;\n var promiseCapability = newPromiseCapability.f(C);\n var resolve = promiseCapability.resolve;\n resolve(x);\n return promiseCapability.promise;\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar getBuiltIn = require('../internals/get-built-in');\nvar IS_PURE = require('../internals/is-pure');\nvar NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR;\nvar promiseResolve = require('../internals/promise-resolve');\n\nvar PromiseConstructorWrapper = getBuiltIn('Promise');\nvar CHECK_WRAPPER = IS_PURE && !FORCED_PROMISE_CONSTRUCTOR;\n\n// `Promise.resolve` method\n// https://tc39.es/ecma262/#sec-promise.resolve\n$({ target: 'Promise', stat: true, forced: IS_PURE || FORCED_PROMISE_CONSTRUCTOR }, {\n resolve: function resolve(x) {\n return promiseResolve(CHECK_WRAPPER && this === PromiseConstructorWrapper ? NativePromiseConstructor : this, x);\n }\n});\n","var classof = require('../internals/classof');\n\nvar $String = String;\n\nmodule.exports = function (argument) {\n if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');\n return $String(argument);\n};\n","'use strict';\n/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */\n/* eslint-disable regexp/no-useless-quantifier -- testing */\nvar call = require('../internals/function-call');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar toString = require('../internals/to-string');\nvar regexpFlags = require('../internals/regexp-flags');\nvar stickyHelpers = require('../internals/regexp-sticky-helpers');\nvar shared = require('../internals/shared');\nvar create = require('../internals/object-create');\nvar getInternalState = require('../internals/internal-state').get;\nvar UNSUPPORTED_DOT_ALL = require('../internals/regexp-unsupported-dot-all');\nvar UNSUPPORTED_NCG = require('../internals/regexp-unsupported-ncg');\n\nvar nativeReplace = shared('native-string-replace', String.prototype.replace);\nvar nativeExec = RegExp.prototype.exec;\nvar patchedExec = nativeExec;\nvar charAt = uncurryThis(''.charAt);\nvar indexOf = uncurryThis(''.indexOf);\nvar replace = uncurryThis(''.replace);\nvar stringSlice = uncurryThis(''.slice);\n\nvar UPDATES_LAST_INDEX_WRONG = (function () {\n var re1 = /a/;\n var re2 = /b*/g;\n call(nativeExec, re1, 'a');\n call(nativeExec, re2, 'a');\n return re1.lastIndex !== 0 || re2.lastIndex !== 0;\n})();\n\nvar UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;\n\n// nonparticipating capturing group, copied from es5-shim's String#split patch.\nvar NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;\n\nvar PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;\n\nif (PATCH) {\n patchedExec = function exec(string) {\n var re = this;\n var state = getInternalState(re);\n var str = toString(string);\n var raw = state.raw;\n var result, reCopy, lastIndex, match, i, object, group;\n\n if (raw) {\n raw.lastIndex = re.lastIndex;\n result = call(patchedExec, raw, str);\n re.lastIndex = raw.lastIndex;\n return result;\n }\n\n var groups = state.groups;\n var sticky = UNSUPPORTED_Y && re.sticky;\n var flags = call(regexpFlags, re);\n var source = re.source;\n var charsAdded = 0;\n var strCopy = str;\n\n if (sticky) {\n flags = replace(flags, 'y', '');\n if (indexOf(flags, 'g') === -1) {\n flags += 'g';\n }\n\n strCopy = stringSlice(str, re.lastIndex);\n // Support anchored sticky behavior.\n if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt(str, re.lastIndex - 1) !== '\\n')) {\n source = '(?: ' + source + ')';\n strCopy = ' ' + strCopy;\n charsAdded++;\n }\n // ^(? + rx + ) is needed, in combination with some str slicing, to\n // simulate the 'y' flag.\n reCopy = new RegExp('^(?:' + source + ')', flags);\n }\n\n if (NPCG_INCLUDED) {\n reCopy = new RegExp('^' + source + '$(?!\\\\s)', flags);\n }\n if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;\n\n match = call(nativeExec, sticky ? reCopy : re, strCopy);\n\n if (sticky) {\n if (match) {\n match.input = stringSlice(match.input, charsAdded);\n match[0] = stringSlice(match[0], charsAdded);\n match.index = re.lastIndex;\n re.lastIndex += match[0].length;\n } else re.lastIndex = 0;\n } else if (UPDATES_LAST_INDEX_WRONG && match) {\n re.lastIndex = re.global ? match.index + match[0].length : lastIndex;\n }\n if (NPCG_INCLUDED && match && match.length > 1) {\n // Fix browsers whose `exec` methods don't consistently return `undefined`\n // for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/\n call(nativeReplace, match[0], reCopy, function () {\n for (i = 1; i < arguments.length - 2; i++) {\n if (arguments[i] === undefined) match[i] = undefined;\n }\n });\n }\n\n if (match && groups) {\n match.groups = object = create(null);\n for (i = 0; i < groups.length; i++) {\n group = groups[i];\n object[group[0]] = match[group[1]];\n }\n }\n\n return match;\n };\n}\n\nmodule.exports = patchedExec;\n","'use strict';\nvar anObject = require('../internals/an-object');\n\n// `RegExp.prototype.flags` getter implementation\n// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags\nmodule.exports = function () {\n var that = anObject(this);\n var result = '';\n if (that.hasIndices) result += 'd';\n if (that.global) result += 'g';\n if (that.ignoreCase) result += 'i';\n if (that.multiline) result += 'm';\n if (that.dotAll) result += 's';\n if (that.unicode) result += 'u';\n if (that.unicodeSets) result += 'v';\n if (that.sticky) result += 'y';\n return result;\n};\n","var fails = require('../internals/fails');\nvar global = require('../internals/global');\n\n// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError\nvar $RegExp = global.RegExp;\n\nvar UNSUPPORTED_Y = fails(function () {\n var re = $RegExp('a', 'y');\n re.lastIndex = 2;\n return re.exec('abcd') != null;\n});\n\n// UC Browser bug\n// https://github.com/zloirock/core-js/issues/1008\nvar MISSED_STICKY = UNSUPPORTED_Y || fails(function () {\n return !$RegExp('a', 'y').sticky;\n});\n\nvar BROKEN_CARET = UNSUPPORTED_Y || fails(function () {\n // https://bugzilla.mozilla.org/show_bug.cgi?id=773687\n var re = $RegExp('^r', 'gy');\n re.lastIndex = 2;\n return re.exec('str') != null;\n});\n\nmodule.exports = {\n BROKEN_CARET: BROKEN_CARET,\n MISSED_STICKY: MISSED_STICKY,\n UNSUPPORTED_Y: UNSUPPORTED_Y\n};\n","var fails = require('../internals/fails');\nvar global = require('../internals/global');\n\n// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError\nvar $RegExp = global.RegExp;\n\nmodule.exports = fails(function () {\n var re = $RegExp('.', 's');\n return !(re.dotAll && re.exec('\\n') && re.flags === 's');\n});\n","var fails = require('../internals/fails');\nvar global = require('../internals/global');\n\n// babel-minify and Closure Compiler transpiles RegExp('(?b)', 'g') -> /(?b)/g and it causes SyntaxError\nvar $RegExp = global.RegExp;\n\nmodule.exports = fails(function () {\n var re = $RegExp('(?b)', 'g');\n return re.exec('b').groups.a !== 'b' ||\n 'b'.replace(re, '$c') !== 'bc';\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar exec = require('../internals/regexp-exec');\n\n// `RegExp.prototype.exec` method\n// https://tc39.es/ecma262/#sec-regexp.prototype.exec\n$({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {\n exec: exec\n});\n","/**\n * Provide feature detection\n * @class Features\n */\nexport class Features {\n /**\n * If the browser has WebGL support\n * @property {boolean} webgl\n */\n static get webgl() {\n const canvas = document.createElement('canvas');\n\n return !!(\n canvas &&\n (canvas.getContext('webgl') || canvas.getContext('experimental-webgl'))\n );\n }\n\n /**\n * If the browser has Canvas support\n * @property {boolean} canvas\n */\n static get canvas() {\n const canvas = document.createElement('canvas');\n return !!(canvas !== null && canvas.getContext && canvas.getContext('2d'));\n }\n\n /**\n * If the browser has WebAudio API support\n * @property {boolean} webaudio\n */\n static get webaudio() {\n return 'webkitAudioContext' in window || 'AudioContext' in window;\n }\n\n /**\n * If the browser has HTMLAudio support\n * @property {boolean} htmlAudio\n */\n static get htmlAudio() {\n return 'HTMLAudioElement' in window;\n }\n\n /**\n * If the browser has Web Sockets API\n * @property {boolean} websockets\n */\n static get websockets() {\n return 'WebSocket' in window || 'MozWebSocket' in window;\n }\n\n /**\n * If the browser has Geolocation API\n * @property {boolean} geolocation\n */\n static get geolocation() {\n return 'geolocation' in navigator;\n }\n\n /**\n * If the browser has Web Workers API\n * @property {boolean} webworkers\n */\n static get webworkers() {\n return 'function' === typeof Worker;\n }\n\n /**\n * If the browser has touch\n * @property {boolean} touch\n */\n static get touch() {\n return !!(\n 'ontouchstart' in window || // iOS & Android\n (navigator.msPointerEnabled && navigator.msMaxTouchPoints > 0) || // IE10\n (navigator.pointerEnabled && navigator.maxTouchPoints > 0)\n ); // IE11+\n }\n\n /**\n * Test for basic browser compatiliblity\n * @method basic\n * @static\n * @return {String} The error message, if fails\n */\n static basic() {\n if (!Features.canvas) {\n return 'Browser does not support canvas';\n } else if (!Features.webaudio && !Features.htmlAudio) {\n return 'Browser does not support WebAudio or HTMLAudio';\n }\n return null;\n }\n\n /**\n * See if the current bowser has the correct features\n * @method test\n * @static\n * @param {object} capabilities The capabilities\n * @param {object} [capabilities.features] The features\n * @param {object} [capabilities.features.webgl] WebGL required\n * @param {object} [capabilities.features.geolocation] Geolocation required\n * @param {object} [capabilities.features.webworkers] Web Workers API required\n * @param {object} [capabilities.features.webaudio] WebAudio API required\n * @param {object} [capabilities.features.websockets] WebSockets required\n * @param {object} [capabilities.sizes] The sizes\n * @param {Boolean} [capabilities.sizes.xsmall] Screens < 480\n * @param {Boolean} [capabilities.sizes.small] Screens < 768\n * @param {Boolean} [capabilities.sizes.medium] Screens < 992\n * @param {Boolean} [capabilities.sizes.large] Screens < 1200\n * @param {Boolean} [capabilities.sizes.xlarge] Screens >= 1200\n * @param {object} [capabilities.ui] The ui\n * @param {Boolean} [capabilities.ui.touch] Touch capable\n * @return {String|null} The error, or else returns null\n */\n static test(capabilities) {\n // check for basic compatibility\n const err = this.basic();\n if (err) {\n return err;\n }\n\n const features = capabilities.features;\n const ui = capabilities.ui;\n const sizes = capabilities.sizes;\n\n for (const name in features) {\n if (features[name] === true && !Features[name]) {\n // Failed built-in feature check\n return 'Browser does not support ' + name;\n }\n }\n\n // Failed negative touch requirement\n if (!ui.touch && Features.touch) {\n return 'Game does not support touch input';\n }\n\n // Check the sizes\n const size = Math.max(window.screen.width, window.screen.height);\n\n if (!sizes.xsmall && size < 480) {\n return 'Game doesn\\'t support extra small screens';\n }\n if (!sizes.small && size < 768) {\n return 'Game doesn\\'t support small screens';\n }\n if (!sizes.medium && size < 992) {\n return 'Game doesn\\'t support medium screens';\n }\n if (!sizes.large && size < 1200) {\n return 'Game doesn\\'t support large screens';\n }\n if (!sizes.xlarge && size >= 1200) {\n return 'Game doesn\\'t support extra large screens';\n }\n return null;\n }\n\n /**\n * Returns browser feature support info\n * @returns {string}\n */\n static get info() {\n return `Browser Feature Detection\n\t\t\t\tCanvas support ${Features.canvas ? '\\u2713' : '\\u00D7'}\n\t\t\t\tWebGL support ${Features.webgl ? '\\u2713' : '\\u00D7'}\n\t\t\t\tWebAudio support ${Features.webAudio ? '\\u2713' : '\\u00D7'}`;\n }\n}\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\nvar toString = require('../internals/to-string');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nvar charAt = uncurryThis(''.charAt);\nvar charCodeAt = uncurryThis(''.charCodeAt);\nvar stringSlice = uncurryThis(''.slice);\n\nvar createMethod = function (CONVERT_TO_STRING) {\n return function ($this, pos) {\n var S = toString(requireObjectCoercible($this));\n var position = toIntegerOrInfinity(pos);\n var size = S.length;\n var first, second;\n if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;\n first = charCodeAt(S, position);\n return first < 0xD800 || first > 0xDBFF || position + 1 === size\n || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF\n ? CONVERT_TO_STRING\n ? charAt(S, position)\n : first\n : CONVERT_TO_STRING\n ? stringSlice(S, position, position + 2)\n : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;\n };\n};\n\nmodule.exports = {\n // `String.prototype.codePointAt` method\n // https://tc39.es/ecma262/#sec-string.prototype.codepointat\n codeAt: createMethod(false),\n // `String.prototype.at` method\n // https://github.com/mathiasbynens/String.prototype.at\n charAt: createMethod(true)\n};\n","'use strict';\nvar charAt = require('../internals/string-multibyte').charAt;\nvar toString = require('../internals/to-string');\nvar InternalStateModule = require('../internals/internal-state');\nvar defineIterator = require('../internals/iterator-define');\nvar createIterResultObject = require('../internals/create-iter-result-object');\n\nvar STRING_ITERATOR = 'String Iterator';\nvar setInternalState = InternalStateModule.set;\nvar getInternalState = InternalStateModule.getterFor(STRING_ITERATOR);\n\n// `String.prototype[@@iterator]` method\n// https://tc39.es/ecma262/#sec-string.prototype-@@iterator\ndefineIterator(String, 'String', function (iterated) {\n setInternalState(this, {\n type: STRING_ITERATOR,\n string: toString(iterated),\n index: 0\n });\n// `%StringIteratorPrototype%.next` method\n// https://tc39.es/ecma262/#sec-%stringiteratorprototype%.next\n}, function next() {\n var state = getInternalState(this);\n var string = state.string;\n var index = state.index;\n var point;\n if (index >= string.length) return createIterResultObject(undefined, true);\n point = charAt(string, index);\n state.index += point.length;\n return createIterResultObject(point, false);\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar $filter = require('../internals/array-iteration').filter;\nvar arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');\n\nvar HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');\n\n// `Array.prototype.filter` method\n// https://tc39.es/ecma262/#sec-array.prototype.filter\n// with adding support of @@species\n$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {\n filter: function filter(callbackfn /* , thisArg */) {\n return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar $find = require('../internals/array-iteration').find;\nvar addToUnscopables = require('../internals/add-to-unscopables');\n\nvar FIND = 'find';\nvar SKIPS_HOLES = true;\n\n// Shouldn't skip holes\nif (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });\n\n// `Array.prototype.find` method\n// https://tc39.es/ecma262/#sec-array.prototype.find\n$({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {\n find: function find(callbackfn /* , that = undefined */) {\n return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables(FIND);\n","function t(t,e){return t(e={exports:{}},e.exports),e.exports}var e=t((function(t){function e(t){return(e=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t})(t)}function n(r){return\"function\"==typeof Symbol&&\"symbol\"===e(Symbol.iterator)?t.exports=n=function(t){return e(t)}:t.exports=n=function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":e(t)},n(r)}t.exports=n}));var n=function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")};function r(t,e){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:0;this._listeners[t]||(this._listeners[t]=[]),e._priority=parseInt(n)||0,-1===this._listeners[t].indexOf(e)&&(this._listeners[t].push(e),this._listeners[t].length>1&&this._listeners[t].sort(this.listenerSorter))}},{key:\"listenerSorter\",value:function(t,e){return t._priority-e._priority}},{key:\"off\",value:function(t,e){if(void 0!==this._listeners[t])if(void 0!==e){var n=this._listeners[t].indexOf(e);-11&&void 0!==arguments[1]?arguments[1]:{};if(\"string\"==typeof t&&(t={type:t,data:\"object\"===e(n)&&null!==n?n:{}}),void 0!==this._listeners[t.type])for(var r=this._listeners[t.type].length-1;r>=0;r--)this._listeners[t.type][r](t)}},{key:\"destroy\",value:function(){this._listeners={}}}]),t}(),s=t((function(t){var e=function(t){var e,n=Object.prototype,r=n.hasOwnProperty,o=\"function\"==typeof Symbol?Symbol:{},i=o.iterator||\"@@iterator\",s=o.asyncIterator||\"@@asyncIterator\",a=o.toStringTag||\"@@toStringTag\";function c(t,e,n,r){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),s=new S(r||[]);return i._invoke=function(t,e,n){var r=h;return function(o,i){if(r===f)throw new Error(\"Generator is already running\");if(r===p){if(\"throw\"===o)throw i;return P()}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var a=O(s,n);if(a){if(a===y)continue;return a}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(r===h)throw r=p,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);r=f;var c=u(t,e,n);if(\"normal\"===c.type){if(r=n.done?p:l,c.arg===y)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(r=p,n.method=\"throw\",n.arg=c.arg)}}}(t,n,s),i}function u(t,e,n){try{return{type:\"normal\",arg:t.call(e,n)}}catch(t){return{type:\"throw\",arg:t}}}t.wrap=c;var h=\"suspendedStart\",l=\"suspendedYield\",f=\"executing\",p=\"completed\",y={};function d(){}function v(){}function g(){}var m={};m[i]=function(){return this};var w=Object.getPrototypeOf,b=w&&w(w(j([])));b&&b!==n&&r.call(b,i)&&(m=b);var _=g.prototype=d.prototype=Object.create(m);function x(t){[\"next\",\"throw\",\"return\"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function L(t){function e(n,o,i,s){var a=u(t[n],t,o);if(\"throw\"!==a.type){var c=a.arg,h=c.value;return h&&\"object\"==typeof h&&r.call(h,\"__await\")?Promise.resolve(h.__await).then((function(t){e(\"next\",t,i,s)}),(function(t){e(\"throw\",t,i,s)})):Promise.resolve(h).then((function(t){c.value=t,i(c)}),(function(t){return e(\"throw\",t,i,s)}))}s(a.arg)}var n;this._invoke=function(t,r){function o(){return new Promise((function(n,o){e(t,r,n,o)}))}return n=n?n.then(o,o):o()}}function O(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,\"throw\"===n.method){if(t.iterator.return&&(n.method=\"return\",n.arg=e,O(t,n),\"throw\"===n.method))return y;n.method=\"throw\",n.arg=new TypeError(\"The iterator does not provide a 'throw' method\")}return y}var o=u(r,t.iterator,n.arg);if(\"throw\"===o.type)return n.method=\"throw\",n.arg=o.arg,n.delegate=null,y;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,\"return\"!==n.method&&(n.method=\"next\",n.arg=e),n.delegate=null,y):i:(n.method=\"throw\",n.arg=new TypeError(\"iterator result is not an object\"),n.delegate=null,y)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(E,this),this.reset(!0)}function j(t){if(t){var n=t[i];if(n)return n.call(t);if(\"function\"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,s=function n(){for(;++o=0;--i){var s=this.tryEntries[i],a=s.completion;if(\"root\"===s.tryLoc)return o(\"end\");if(s.tryLoc<=this.prev){var c=r.call(s,\"catchLoc\"),u=r.call(s,\"finallyLoc\");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,\"finallyLoc\")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if(\"throw\"===r.type){var o=r.arg;k(n)}return o}}throw new Error(\"illegal catch attempt\")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},\"next\"===this.method&&(this.arg=e),y}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function(\"r\",\"regeneratorRuntime = r\")(e)}}));var a=function(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t};var c=function(t,n){return!n||\"object\"!==e(n)&&\"function\"!=typeof n?a(t):n},u=t((function(t){function e(n){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},e(n)}t.exports=e}));var h=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=u(t)););return t},l=t((function(t){function e(n,r,o){return\"undefined\"!=typeof Reflect&&Reflect.get?t.exports=e=Reflect.get:t.exports=e=function(t,e,n){var r=h(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}},e(n,r,o||n)}t.exports=e})),f=t((function(t){function e(n,r){return t.exports=e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},e(n,r)}t.exports=e}));var p=function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)},y=function(t){function r(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100*Math.random()|0;return n(this,r),(t=c(this,u(r).call(this))).id=\"BELLHOP:\".concat(e),t.connected=!1,t.isChild=!0,t.connecting=!1,t.debug=!1,t.origin=\"*\",t._sendLater=[],t.iframe=null,t.receive=t.receive.bind(a(t)),t}return p(r,i),o(r,[{key:\"receive\",value:function(t){if(this.target===t.source)if(this.logDebugMessage(!0,t),\"connected\"===t.data)this.onConnectionReceived(t.data);else{var n=t.data;if(\"string\"==typeof n)try{n=JSON.parse(n)}catch(t){console.warn(\"Bellhop error: \",t)}this.connected&&\"object\"===e(n)&&n.type&&this.trigger(n)}}},{key:\"onConnectionReceived\",value:function(t){if(this.connecting=!1,this.connected=!0,!this.isChild){if(!this.target)return;this.target.postMessage(t,this.origin)}for(var e=0;e1&&void 0!==arguments[1]?arguments[1]:\"*\";this.connecting||(this.disconnect(),this.connecting=!0,t instanceof HTMLIFrameElement&&(this.iframe=t),this.isChild=void 0===t,this.supported=!0,this.isChild&&(this.supported=window!=t),this.origin=e,window.addEventListener(\"message\",this.receive),this.isChild&&(window===this.target?this.trigger(\"failed\"):this.target.postMessage(\"connected\",this.origin)))}},{key:\"disconnect\",value:function(){this.connected=!1,this.connecting=!1,this.origin=null,this.iframe=null,this.isChild=!0,this._sendLater.length=0,window.removeEventListener(\"message\",this.receive)}},{key:\"send\",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(\"string\"!=typeof t)throw\"The event type must be a string\";var n={type:t,data:e};this.logDebugMessage(!1,n),this.connecting?this._sendLater.push(n):this.target.postMessage(JSON.stringify(n),this.origin)}},{key:\"fetch\",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!this.connecting&&!this.connected)throw\"No connection, please call connect() first\";var i=function t(r){o&&n.off(r.type,t),e(r)};this.on(t,i),this.send(t,r)}},{key:\"respond\",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this,o=function t(o){return s.async((function(i){for(;;)switch(i.prev=i.next){case 0:if(n&&r.off(o,t),\"function\"!=typeof e){i.next=10;break}return i.t0=r,i.t1=o.type,i.next=6,s.awrap(e());case 6:i.t2=i.sent,i.t0.send.call(i.t0,i.t1,i.t2),i.next=11;break;case 10:r.send(o.type,e);case 11:case\"end\":return i.stop()}}))};this.on(t,o)}},{key:\"logDebugMessage\",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1?arguments[1]:void 0;this.debug&&\"function\"==typeof this.debug?this.debug({isChild:this.isChild,received:t,message:e}):this.debug&&console.log(\"Bellhop Instance (\".concat(this.isChild?\"Child\":\"Parent\",\") \").concat(t?\"Receieved\":\"Sent\"),e)}},{key:\"destroy\",value:function(){l(u(r.prototype),\"destroy\",this).call(this),this.disconnect(),this._sendLater.length=0}},{key:\"target\",get:function(){return this.isChild?window.parent:this.iframe.contentWindow}}]),r}();export{y as Bellhop,i as BellhopEventDispatcher};\n//# sourceMappingURL=bellhop.js.map\n","/**\n * @typedef {import('./base-plugins/BasePlugin').BasePlugin} BasePlugin\n */\nimport { Bellhop } from 'bellhop-iframe';\n/**\n *\n *\n * @export\n * @class PluginManager\n */\nexport default class PluginManager {\n /**\n *Creates an instance of PluginManager.\n * @memberof PluginManager\n */\n constructor({ plugins = [] }) {\n this.client = new Bellhop();\n this.preloading = true;\n // @ts-ignore\n this.client.hidden = this.client.receive.bind(this.client);\n // @ts-ignore\n this.client.hiddenSend = this.client.send.bind(this.client);\n this.client.receive = function (event) {\n this.hidden(event);\n }.bind(this.client);\n this.client.send = function (event, data) {\n this.hiddenSend(event, data);\n }.bind(this.client);\n\n this.plugins = plugins;\n }\n\n /**\n *\n *\n * @returns\n * @memberof PluginManager\n */\n setupPlugins() {\n const preloads = [];\n for (let i = 0, l = this.plugins.length; i < l; i++) {\n if (!this.plugins[i].preload) {\n continue;\n }\n\n preloads.push(\n this.plugins[i].preload(this).catch(function preloadFail(error) {\n this.plugins[i].preloadFailed = true;\n console.warn(this.plugins[i].name, 'Preload Failed:', error);\n }.bind(this))\n );\n }\n\n // ~wait for all preloads to resolve\n return Promise.all(preloads).then(() => {\n // Remove plugins that fail to load.\n this.plugins = this.plugins.filter(\n plugin => plugin.preloadFailed !== true\n );\n\n this.preloading = false;\n this.client.trigger('preloadsFinished');\n\n //init\n this.plugins.forEach(plugin => {\n if (!plugin.init) {\n return;\n }\n\n plugin.init(this);\n });\n\n //start\n this.plugins.forEach(plugin => {\n if (!plugin.start) {\n return;\n }\n plugin.start(this);\n });\n });\n }\n\n /**\n * Registers a plugin to be used by PluginManagers, sorting it by priority order.\n * @param {BasePlugin} plugin The plugin to register.\n */\n uses(plugin) {\n this.plugins.push(plugin);\n }\n\n /**\n * Finds a plugin by name.\n * @param {string} name The name of the plugin.\n * @returns {BasePlugin}\n */\n getPlugin(name) {\n return this.plugins.find(function (plugin) {\n return plugin.name === name;\n });\n }\n}\n","import 'whatwg-fetch';\n\nimport { Features } from './Features';\nimport PluginManager from './PluginManager';\n// @ts-ignore\nimport { version } from '../package.json';\n\n/**\n * The application container\n * @class Container\n * @property {Bellhop} client Communication layer between the container and application\n * @property {boolean} loaded Check to see if a application is loaded\n * @property {boolean} loading Check to see if a application is loading\n * @property {object} release The current release data\n * @property {HTMLIFrameElement} iframe The DOM object for the iframe\n * @static @property {string} version The current version of the library\n */\nexport class Container extends PluginManager {\n /**\n *Creates an instance of Container.\n * @param {object} config\n * @param {string | HTMLIFrameElement} iframeOrSelector\n * @param {Array | null} [config.plugins]\n * @param {object | null} [config.context={}]\n * @memberof Container\n */\n constructor(iframeOrSelector, { plugins, context = {} } = {}) {\n super({ plugins });\n\n this.iframe = iframeOrSelector instanceof HTMLIFrameElement ? iframeOrSelector : document.querySelector(iframeOrSelector);\n this.iframe.style.backgroundColor = 'black';\n\n if (null === this.iframe) {\n throw new Error('No iframe was found with the provided selector');\n }\n\n this.loaded = false;\n this.loading = false;\n this.release = null;\n\n // context object that plugins can pick up on\n this._context = context;\n\n this.onLoading = this.onLoading.bind(this);\n this.onLoadDone = this.onLoadDone.bind(this);\n this.onLoadDone = this.onLoadDone.bind(this);\n this.onEndGame = this.onEndGame.bind(this);\n this.onLocalError = this.onLocalError.bind(this);\n\n this.initClient();\n this.setupPlugins();\n }\n\n /**\n * The game is starting to load\n * @memberof Container\n */\n onLoading() {\n this.client.trigger('opening');\n }\n\n /**\n * Reset the mutes for audio and captions\n * @memberof Container\n */\n onLoadDone() {\n this.loading = false;\n this.loaded = true;\n this.iframe.classList.remove('loading');\n\n this.client.trigger('opened');\n }\n\n /**\n * The application ended and destroyed itself\n * @memberof Container\n */\n onEndGame() {\n this.reset();\n }\n /**\n * Handle the local errors\n * @method onLocalError\n * @private\n * @param {Event} $event Bellhop event\n */\n onLocalError($event) {\n console.error('SpringRoll Container error: ', $event, new Error().stack);\n }\n\n /**\n * Reset all the buttons back to their original setting\n * and clear the iframe.\n * @memberof Container\n */\n reset() {\n const wasLoaded = this.loaded || this.loading;\n\n if (wasLoaded) {\n this.client.trigger('closed');\n }\n\n // Reset state\n this.loaded = false;\n this.loading = false;\n\n // Clear the iframe src location\n this.iframe.setAttribute('src', '');\n this.iframe.classList.remove('loading');\n }\n\n /**\n * Set up communication layer between site and application.\n * May be called from subclasses if they create/destroy Bellhop instances.\n * @memberof Container\n */\n initClient() {\n //Handle bellhop events coming from the application\n this.client.on('loading', this.onLoading);\n this.client.on('loaded', this.onLoadDone);\n this.client.on('loadDone', this.onLoadDone);\n this.client.on('endGame', this.onEndGame);\n this.client.on('localError', this.onLocalError);\n // @ts-ignore\n this.client.connect(this.iframe);\n }\n\n /**\n * If there was an error when closing, reset the container\n * @memberof Container\n */\n _onCloseFailed() {\n this.reset(); // force close the app\n }\n\n /**\n * Open a application or path\n * @param {string} userPath The full path to the application to load\n * @param {object} [userOptions] The open options\n * @param {boolean} [userOptions.singlePlay=false] If we should play in single play mode\n * @param {object | null} [userOptions.playOptions=null] The optional play options\n * @memberof Container\n */\n _internalOpen(userPath, { singlePlay = false, playOptions = null } = {}) {\n // If plugin preloads are still going wait for them to finish before opening the Application\n if (this.preloading) {\n this.client.on('preloadsFinished', () => {\n this._internalOpen(userPath, { singlePlay, playOptions });\n });\n\n return;\n }\n\n const options = { singlePlay, playOptions };\n this.reset();\n\n this.loading = true;\n this.initClient();\n\n const err = Features.basic();\n if (err) {\n console.error('ERROR:', err);\n this.client.trigger('unsupported');\n }\n\n let path = userPath;\n if (null !== options.playOptions) {\n const playOptionsQueryString =\n 'playOptions=' +\n encodeURIComponent(JSON.stringify(options.playOptions));\n\n path =\n -1 === userPath.indexOf('?')\n ? `${userPath}?${playOptionsQueryString}`\n : `${userPath}&${playOptionsQueryString}`;\n }\n\n this.iframe.classList.add('loading');\n this.iframe.setAttribute('src', path);\n\n this.client.respond('singlePlay', singlePlay);\n this.client.respond('playOptions', playOptions);\n this.client.trigger('open');\n }\n\n /**\n *\n *\n * @param {string} path\n * @param {object} [options={}]\n * @memberof Container\n */\n openPath(path, options = {}) {\n // This should be deprecated, support for old function signature\n if ('object' !== typeof options) {\n console.warn(\n 'SpringRoll Container.openPath was passed a invalid options parameter. Using default parameters instead'\n );\n options = {};\n }\n\n this._internalOpen(\n path,\n Object.assign(\n {\n singlePlay: false,\n playOptions: {}\n },\n options\n )\n );\n }\n\n /**\n * Open application based on an API Call to SpringRoll Connect\n * @param {string} api\n * @param {object} options\n * @param {string} [options.query='']\n * @param {boolean} [options.singlePlay=false]\n * @param {null | object} [options.playOptions=null]\n * @returns {Promise}\n * @memberof Container\n */\n async openRemote(\n api,\n { query = '', singlePlay = false, playOptions = null } = {}\n ) {\n this.release = null;\n\n const response = await fetch(api, {\n headers: {\n 'Content-Type': 'application/json'\n }\n });\n\n const json = await response.json();\n\n // if SpringRollConnect denoted that something failed, send that error back\n if (!json.success) {\n throw new Error(json.error);\n }\n\n // If the browser doesn't support the capabilities requested by this game, also fail.\n const release = json.data;\n const error = Features.test(release.capabilities);\n if (error) {\n this.client.trigger('unsupported', { error });\n throw new Error(error);\n }\n\n // otherwise, open the game\n this.release = release;\n this._internalOpen(release.url + query, {\n singlePlay,\n playOptions\n });\n }\n\n /**\n * Destroy and don't use after this\n * @memberof Container\n */\n destroy() {\n this.reset();\n\n this.iframe = null;\n this.options = null;\n this.release = null;\n }\n\n /**\n * Tell the application to start closing\n * @memberof Container\n */\n close() {\n if (this.loading || this.loaded) {\n this.client.trigger('close');\n // Start the close\n this.client.send('close');\n } else {\n this.reset();\n }\n }\n\n /**\n * the current _context object\n * @readonly\n * @memberof Container\n * @return {object}\n */\n get context() {\n return this._context;\n }\n\n /**\n * sets _context object to new object\n * @param {object} context\n * @memberof Container\n */\n set context(newContext) {\n if (typeof newContext !== 'object') {\n console.error('[SpringRollContainer] Context: new context provided is not an object');\n return;\n }\n this._context = newContext;\n }\n\n\n\n /**\n * The current version of SpringRollContainer\n * @readonly\n * @static\n * @return {string}\n * @memberof Container\n */\n static get version() {\n return version;\n }\n}\n","/**\n * Handle the page visiblity change, if supported. Application uses one of these to\n * monitor page visibility. It is suggested that you listen to `pause`, `paused`,\n * or `resumed` events on the Application instead of using one of these yourself.\n *\n * @export\n * @class PageVisibility\n * @constructor\n * @param {Function} onFocus Callback when the page becomes visible\n * @param {Function} onBlur Callback when the page loses visibility\n */\nexport class PageVisibility {\n /**\n *Creates an instance of PageVisibility.\n * @param { function } [onFocus=function() {}]\n * @param { function } [onBlur=function() {}]\n * @memberof PageVisibility\n */\n constructor(onFocus = function() {}, onBlur = function() {}) {\n this._onFocus = onFocus;\n this._onBlur = onBlur;\n this.onFocus = function(e) {\n if (this.enabled) {\n this._onFocus(e);\n }\n }.bind(this);\n this.onBlur = function(e) {\n if (this.enabled) {\n this._onBlur(e);\n }\n }.bind(this);\n this._enabled = false;\n this.enabled = true;\n\n this.onToggle = this.onToggle.bind(this);\n }\n\n /**\n * Disable the detection\n * @memberof PageVisibility\n */\n destroy() {\n this.enabled = false;\n this.onToggle = null;\n this.onFocus = null;\n this.onBlur = null;\n }\n\n /**\n * The visibility toggle listener function\n * @param {Event} $event;\n * @memberof PageVisibility\n */\n onToggle($event) {\n if (this.enabled) {\n document.hidden ? this.onBlur($event) : this.onFocus($event);\n }\n }\n\n /**\n * If this object is enabled.\n * @returns {boolean}\n * @memberof PageVisibility\n */\n get enabled() {\n return this._enabled;\n }\n\n /**\n * Sets the state of the object\n * @memberof PageVisibility\n */\n set enabled(enable) {\n this._enabled = enable;\n\n document.removeEventListener('visibilitychange', this.onToggle, false);\n window.removeEventListener('blur', this.onBlur, false);\n window.removeEventListener('focus', this.onFocus, false);\n window.removeEventListener('pagehide', this.onBlur, false);\n window.removeEventListener('pageshow', this.onFocus, false);\n window.removeEventListener('visibilitychange', this.onToggle, false);\n\n if (this._enabled) {\n document.addEventListener('visibilitychange', this.onToggle, false);\n window.addEventListener('blur', this.onBlur, false);\n window.addEventListener('focus', this.onFocus, false);\n window.addEventListener('pagehide', this.onBlur, false);\n window.addEventListener('pageshow', this.onFocus, false);\n window.addEventListener('visibilitychange', this.onToggle, false);\n }\n }\n}\n","'use strict';\nvar $ = require('../internals/export');\nvar $includes = require('../internals/array-includes').includes;\nvar fails = require('../internals/fails');\nvar addToUnscopables = require('../internals/add-to-unscopables');\n\n// FF99+ bug\nvar BROKEN_ON_SPARSE = fails(function () {\n // eslint-disable-next-line es/no-array-prototype-includes -- detection\n return !Array(1).includes();\n});\n\n// `Array.prototype.includes` method\n// https://tc39.es/ecma262/#sec-array.prototype.includes\n$({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {\n includes: function includes(el /* , fromIndex = 0 */) {\n return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables('includes');\n","// a string of all valid unicode whitespaces\nmodule.exports = '\\u0009\\u000A\\u000B\\u000C\\u000D\\u0020\\u00A0\\u1680\\u2000\\u2001\\u2002' +\n '\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF';\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar toString = require('../internals/to-string');\nvar whitespaces = require('../internals/whitespaces');\n\nvar replace = uncurryThis(''.replace);\nvar ltrim = RegExp('^[' + whitespaces + ']+');\nvar rtrim = RegExp('(^|[^' + whitespaces + '])[' + whitespaces + ']+$');\n\n// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation\nvar createMethod = function (TYPE) {\n return function ($this) {\n var string = toString(requireObjectCoercible($this));\n if (TYPE & 1) string = replace(string, ltrim, '');\n if (TYPE & 2) string = replace(string, rtrim, '$1');\n return string;\n };\n};\n\nmodule.exports = {\n // `String.prototype.{ trimLeft, trimStart }` methods\n // https://tc39.es/ecma262/#sec-string.prototype.trimstart\n start: createMethod(1),\n // `String.prototype.{ trimRight, trimEnd }` methods\n // https://tc39.es/ecma262/#sec-string.prototype.trimend\n end: createMethod(2),\n // `String.prototype.trim` method\n // https://tc39.es/ecma262/#sec-string.prototype.trim\n trim: createMethod(3)\n};\n","var PROPER_FUNCTION_NAME = require('../internals/function-name').PROPER;\nvar fails = require('../internals/fails');\nvar whitespaces = require('../internals/whitespaces');\n\nvar non = '\\u200B\\u0085\\u180E';\n\n// check that a method works with the correct list\n// of whitespaces and has a correct name\nmodule.exports = function (METHOD_NAME) {\n return fails(function () {\n return !!whitespaces[METHOD_NAME]()\n || non[METHOD_NAME]() !== non\n || (PROPER_FUNCTION_NAME && whitespaces[METHOD_NAME].name !== METHOD_NAME);\n });\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar $trim = require('../internals/string-trim').trim;\nvar forcedStringTrimMethod = require('../internals/string-trim-forced');\n\n// `String.prototype.trim` method\n// https://tc39.es/ecma262/#sec-string.prototype.trim\n$({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {\n trim: function trim() {\n return $trim(this);\n }\n});\n","var call = require('../internals/function-call');\nvar hasOwn = require('../internals/has-own-property');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar regExpFlags = require('../internals/regexp-flags');\n\nvar RegExpPrototype = RegExp.prototype;\n\nmodule.exports = function (R) {\n var flags = R.flags;\n return flags === undefined && !('flags' in RegExpPrototype) && !hasOwn(R, 'flags') && isPrototypeOf(RegExpPrototype, R)\n ? call(regExpFlags, R) : flags;\n};\n","'use strict';\nvar PROPER_FUNCTION_NAME = require('../internals/function-name').PROPER;\nvar defineBuiltIn = require('../internals/define-built-in');\nvar anObject = require('../internals/an-object');\nvar $toString = require('../internals/to-string');\nvar fails = require('../internals/fails');\nvar getRegExpFlags = require('../internals/regexp-get-flags');\n\nvar TO_STRING = 'toString';\nvar RegExpPrototype = RegExp.prototype;\nvar nativeToString = RegExpPrototype[TO_STRING];\n\nvar NOT_GENERIC = fails(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });\n// FF44- RegExp#toString has a wrong name\nvar INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name != TO_STRING;\n\n// `RegExp.prototype.toString` method\n// https://tc39.es/ecma262/#sec-regexp.prototype.tostring\nif (NOT_GENERIC || INCORRECT_NAME) {\n defineBuiltIn(RegExp.prototype, TO_STRING, function toString() {\n var R = anObject(this);\n var pattern = $toString(R.source);\n var flags = $toString(getRegExpFlags(R));\n return '/' + pattern + '/' + flags;\n }, { unsafe: true });\n}\n","/**\n * The SavedData functions use localStorage and sessionStorage, with a cookie fallback.\n *\n * @class SavedData\n */\nexport class SavedData {\n\n /**\n * Constructor for IndexedDB work\n */\n constructor(dbName = '') {\n this.db = null;\n this.dbName = dbName;\n }\n /**\n * Remove a saved variable by name.\n * @method remove\n * @static\n * @param {String} name The name of the value to remove\n */\n static remove(name) {\n localStorage.removeItem(name);\n sessionStorage.removeItem(name);\n }\n\n /**\n * Save a variable.\n * @method write\n * @static\n * @param {string} name The name of the value to save\n * @param {string} value The value to save. This will be run through JSON.stringify().\n * @param {boolean} [tempOnly=false] If the value should be saved only in the current browser session.\n */\n static write(name, value, tempOnly = false) {\n\n return tempOnly\n ? sessionStorage.setItem(\n name,\n JSON.stringify('function' === typeof value ? value() : value)\n )\n : localStorage.setItem(\n name,\n JSON.stringify('function' === typeof value ? value() : value)\n );\n }\n\n /**\n * Read the value of a saved variable\n * @method read\n * @static\n * @param {String} name The name of the variable\n * @return {*} The value (run through `JSON.parse()`) or null if it doesn't exist\n */\n static read(name) {\n const value = localStorage.getItem(name) || sessionStorage.getItem(name);\n\n if ('string' === typeof value) {\n try {\n return JSON.parse(value);\n } catch (err) {\n return value;\n }\n } else {\n return value;\n }\n }\n\n /**\n * Open a connection with the IDB Database and optionally add or delete\n * Indexes and stores\n *\n * @param {string} dbName The name of your IndexedDB database\n * @param {string} dbVersion The version number of the database. Additions and deletions will be ignored if lower than current version number\n * @param {JSON} additions Any additions to the structure of the database\n * @param {array} additions.stores Any stores to be added into the database syntax: {storeName: '[name]', options: {[optionally add options]}}\n * @param {array} additions.indexes Any Indexes to be added to the database syntax: {storeName: '[name]', options: {[optionally add options]}}\n */\n IDBOpen( dbName, dbVersion = null, additions = {}, deletions = {}, callback ) {\n const request = dbVersion ? indexedDB.open(dbName, dbVersion) : indexedDB.open(dbName);\n\n request.onsuccess = e => {\n // Database successfully opened. This will run along with onupgradeneeded\n this.db = e.target.result;\n\n if (this.db.version == dbVersion | dbVersion == null) {\n callback({result: 'Success: IDBOpen', success: true});\n }\n };\n\n request.onerror = () => {\n callback({result: request.error.toString(), success: false});\n };\n\n // on upgrade needed fires only if the dbVersion is higher than the current version number\n request.onupgradeneeded = e => {\n // Ensure the proper database object is stored\n this.db = e.target.result;\n\n if (additions != null) {\n if (additions.stores) {\n additions.stores.forEach(store => {\n this.db.createObjectStore(store.storeName, store.options);\n });\n }\n if (additions.indexes != null) {\n additions.indexes.forEach(index => {\n // Add indexes last to avoid adding an index to a store that has yet to be created\n // Open a transaction returning a store object\n const storeObject = request.transaction.objectStore(index.storeName);\n storeObject.createIndex(index.indexName, index.keyPath, index.options);\n });\n }\n }\n\n if (deletions != null) {\n if (deletions.indexes != null) {\n // delete indexes first to avoid deleting an index to a store that has already to been deleted\n deletions.indexes.forEach((index) => {\n // Open a transaction returning a store object\n const storeObject = request.transaction.objectStore(index.storeName);\n storeObject.deleteIndex(index.indexName);\n });\n }\n if (deletions.stores) {\n deletions.stores.forEach((store) => {\n this.db.deleteObjectStore(store.storeName);\n });\n }\n }\n callback({result: 'Success: IDBOpen onupgradeneeded ran', success: true});\n };\n }\n\n /**\n * Delete a database and all records, stores, and indexes associated\n * @param {string} dbName Name of the database to delete\n * @param {object} options Optionally pass in options\n * @param {function} callback The callback to be run on success or error. One value will be passed into this function\n */\n IDBDeleteDB(dbName, options = null, callback = {}) {\n const request = options != null ? indexedDB.deleteDatabase(dbName, options): indexedDB.deleteDatabase(dbName);\n\n request.onsuccess = (e) => {\n callback({result: 'Success: Database Deleted, returned: ' + e.result, success: true});\n };\n request.onerror = () => {\n callback({result: request.error.toString(), success: false});\n };\n\n\n }\n\n /**\n * Add a record to a given store\n * @param {string} storeName The name of the store from which the record will be updated\n * @param {string} key the key of the record to be updated\n * @param {string} value The value for the record with the given key to be updated\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBAdd(storeName, value, key, callback) {\n if ( !this.db && this.dbName != '') {\n this.IDBOpen(this.dbName);\n }\n\n const tx = this.db.transaction(storeName, 'readwrite');\n tx.onerror = () => callback({result: tx.error != null ? tx.error.toString() : 'Aborted: No error given, was the record already added?', success: false});\n tx.onabort = () => callback({result: tx.error != null ? tx.error.toString() : 'Aborted: No error given, was the record already added?', success: false});\n\n tx.oncomplete = () => callback({result: 'Success: Record Added', success: true});\n const store = tx.objectStore(storeName);\n store.add(value, key);\n }\n\n /**\n * Update a record in a given store\n * @param {string} storeName The name of the store from which the record will be updated\n * @param {string} key the key of the record to be updated\n * @param {string | object} value The altered object to be updated from the given store\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBUpdate (storeName, key, value, callback) {\n if ( !this.db && this.dbName != '') {\n this.IDBOpen(this.dbName);\n }\n\n const tx = this.db.transaction(storeName, 'readwrite');\n const store = tx.objectStore(storeName);\n\n const updateRequest = store.put(value, key);\n\n updateRequest.onsuccess = () => {\n callback({result: 'Success: Record Updated', success: true});\n };\n\n updateRequest.onerror = () => callback({result: updateRequest.error.toString(), success: false});\n }\n\n /**\n * Delete a given record within a given store\n * @param {string} storeName The name of the store from which the record will be removed\n * @param {string} key the key of the record to be removed\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBRemove(storeName, key, callback) {\n if ( !this.db && this.dbName != '') {\n this.IDBOpen(this.dbName);\n }\n\n const tx = this.db.transaction(storeName, 'readwrite');\n tx.onerror = () => callback({result: this.db.error.toString(), success: false});\n const store = tx.objectStore(storeName);\n store.delete(key);\n\n tx.oncomplete = () => callback({result: 'Removed Successfully', success: true});\n\n }\n\n /**\n * Return a record from a given store with a given key\n * @param {string} storeName the name of the store to read from\n * @param {string} key The key for the record in the given store\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBRead(storeName, key, callback) {\n // Open transaction with a store\n const tx = this.db.transaction(storeName, 'readonly');\n // Get the store object from the transaction\n const store = tx.objectStore(storeName);\n\n tx.onerror = () => callback({result: this.db.error.toString(), success: false});\n\n const readRequest = store.get(key);\n\n readRequest.onsuccess = () => {\n callback({result: readRequest.result, success: readRequest.result != undefined ? true : false});\n };\n\n }\n\n /**\n * Get all keys with given index\n * @param {string} storeName the name of the store to be read from\n * @param {string} indexName the name of the index to be read from\n * @param {string} query Optionally give a keyRange of records to return\n * @param {string} count Optionally give a max limit on records to be returned\n * @param {function} callback The method to call on success or failure. A single value will be passed in as a parameter\n */\n IDBGetIndexKeys (storeName, indexName, query = null, count = null, callback = {}) {\n // Open transaction with a store\n const tx = this.db.transaction(storeName, 'readonly');\n // Get the store object from the transaction\n const store = tx.objectStore(storeName);\n\n let index;\n\n tx.onerror = () => callback({result: this.db.error.toString(), success: false});\n\n if (query && count) {\n index = store.index(indexName, query, count);\n } else if (query) {\n index = store.index(indexName, query);\n } else {\n index = store.index(indexName);\n }\n\n const getAllKeysRequest = index.getAllKeys();\n\n\n getAllKeysRequest.onsuccess = function(e) {\n callback({result : e.result, success: true});\n };\n }\n\n /**\n * Get all records from a store\n * @param {string} storeName The store to get all records from\n * @param {integer} count Optionally the count of records to return\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBReadAll(storeName, count, callback) {\n // Open transaction with a store\n const tx = this.db.transaction(storeName, 'readonly');\n // Get the store object from the transaction\n const store = tx.objectStore(storeName);\n\n const readRequest = count != null ? store.getAll(null, count) : store.getAll();\n\n // const readRequest = store.getAll();\n\n tx.onerror = () => callback({result: tx.error.toString(), success: false});\n\n\n readRequest.onsuccess = () => {\n callback({result: readRequest.result, success: readRequest.result != undefined ? true : false});\n };\n }\n\n /**\n * Get the version number of a given database. This will create a database if it doesn't exist.\n * Do not call this after opening a connection with the database\n * @param {string} dbName The name of the database for which the version will be returned\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBGetVersion(dbName, callback) {\n // Open the database\n const dBOpenRequest = window.indexedDB.open(dbName);\n\n // these two event handlers act on the database\n // being opened. successfully, or not\n dBOpenRequest.onerror = function() {\n callback({result: dBOpenRequest.error.toString(), success: false});\n };\n\n dBOpenRequest.onsuccess = function() {\n const db = dBOpenRequest.result;\n callback({result: db.version, success: true});\n };\n }\n\n /**\n * Closes the connection to the database if open\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBClose(callback) {\n if ( this.db ) {\n this.db.close();\n callback({result: 'Success: Closed Database Connection', success: true});\n }\n }\n\n}\n","/* eslint-disable no-unused-vars */\nimport { SavedData } from '../SavedData';\nimport { Container } from '../Container';\n\n/**\n *\n *\n * @export\n * @class BasePlugin\n * @property {Bellhop} client\n * @property {string} name\n */\nexport class BasePlugin {\n /**\n *Creates an instance of BasePlugin.\n * @param {string} name\n * @memberof BasePlugin\n */\n constructor(name) {\n this.name = name;\n this.client = null;\n }\n\n /**\n *\n * @param {Container} [container]\n * @memberof BasePlugin\n * @returns {Promise}\n */\n async preload({ client }) {\n this.client = client;\n }\n\n /**\n *\n * @memberof BasePlugin\n */\n start() {\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * @param {Container} [_]\n * @memberof BasePlugin\n */\n init(_) { }\n\n /**\n *\n *\n * @param {string} prop\n * @param {any} value\n * @param {Boolean} disableSend\n * @memberof BasePlugin\n */\n sendProperty(prop, value, disableSend = false) {\n SavedData.write(prop, value);\n if (disableSend) { return; }\n this.client.send(prop, value);\n }\n\n\n /**\n *\n * @param {Container} [_]\n * @memberof BasePlugin\n */\n sendAllProperties(_) { }\n\n /**\n *\n * @param {string} warningText\n * @memberof BasePlugin\n */\n warn(warningText) {\n console.warn(`[SpringRollContainer] ${this.name}: ${warningText}`);\n }\n}\n","/* eslint-disable no-unused-vars */\nimport { BasePlugin } from './BasePlugin';\nimport { Container } from '../Container';\n\n/**\n *\n *\n * @export\n * @class ButtonPlugin\n * @extends {BasePlugin}\n */\nexport class ButtonPlugin extends BasePlugin {\n /**\n *Creates an instance of ButtonPlugin.\n * @param {string} name\n *\n * @memberof ButtonPlugin\n */\n constructor(name) {\n super(name);\n this.sendMutes = false;\n }\n\n /**\n * @memberof ButtonPlugin\n * @param {Container} [container]\n */\n init(container) {\n // eslint-disable-line no-unused-vars\n this.sendMutes = true;\n }\n\n /**\n *\n * Applies the disabled class to the provided element\n * @param {HTMLButtonElement | Element} button\n * @memberof ButtonPlugin\n */\n _disableButton(button) {\n if (button instanceof HTMLButtonElement) {\n button.classList.remove('enabled');\n button.classList.add('disabled');\n }\n }\n\n /**\n *\n *\n * @memberof ButtonPlugin\n */\n reset() {\n this.sendMutes = false;\n }\n\n /**\n *\n *\n * @param {string} prop\n * @param {Element} button\n * @param {Boolean} muted\n * @param {Boolean} disableSend\n * @memberof ButtonPlugin\n */\n _setMuteProp(prop, button, muted, disableSend = false) {\n console.log('_setmuteprop', prop, muted, disableSend);\n if (Array.isArray(button)) {\n button.forEach(b => this.changeMutedState(b, muted));\n } else {\n this.changeMutedState(button, muted);\n }\n\n this.sendProperty(prop, muted, disableSend);\n }\n\n /**\n *\n *\n * @param {Element} button\n * @param {Boolean} muted\n * @returns\n * @memberof ButtonPlugin\n */\n changeMutedState(button, muted = false) {\n //most times button will be a Button class rather than an HTMLElement\n //But just in case the Button ui-element is not being used\n const htmlButton = button.button ? button.button : button;\n\n if (!(htmlButton instanceof HTMLElement)) {\n return;\n }\n\n htmlButton.classList.remove('unmuted');\n htmlButton.classList.remove('muted');\n htmlButton.classList.add(muted ? 'muted' : 'unmuted');\n }\n}\n","var isObject = require('../internals/is-object');\nvar classof = require('../internals/classof-raw');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar MATCH = wellKnownSymbol('match');\n\n// `IsRegExp` abstract operation\n// https://tc39.es/ecma262/#sec-isregexp\nmodule.exports = function (it) {\n var isRegExp;\n return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof(it) == 'RegExp');\n};\n","var isRegExp = require('../internals/is-regexp');\n\nvar $TypeError = TypeError;\n\nmodule.exports = function (it) {\n if (isRegExp(it)) {\n throw $TypeError(\"The method doesn't accept regular expressions\");\n } return it;\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar MATCH = wellKnownSymbol('match');\n\nmodule.exports = function (METHOD_NAME) {\n var regexp = /./;\n try {\n '/./'[METHOD_NAME](regexp);\n } catch (error1) {\n try {\n regexp[MATCH] = false;\n return '/./'[METHOD_NAME](regexp);\n } catch (error2) { /* empty */ }\n } return false;\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar notARegExp = require('../internals/not-a-regexp');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar toString = require('../internals/to-string');\nvar correctIsRegExpLogic = require('../internals/correct-is-regexp-logic');\n\nvar stringIndexOf = uncurryThis(''.indexOf);\n\n// `String.prototype.includes` method\n// https://tc39.es/ecma262/#sec-string.prototype.includes\n$({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {\n includes: function includes(searchString /* , position = 0 */) {\n return !!~stringIndexOf(\n toString(requireObjectCoercible(this)),\n toString(notARegExp(searchString)),\n arguments.length > 1 ? arguments[1] : undefined\n );\n }\n});\n","var toAbsoluteIndex = require('../internals/to-absolute-index');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar createProperty = require('../internals/create-property');\n\nvar $Array = Array;\nvar max = Math.max;\n\nmodule.exports = function (O, start, end) {\n var length = lengthOfArrayLike(O);\n var k = toAbsoluteIndex(start, length);\n var fin = toAbsoluteIndex(end === undefined ? length : end, length);\n var result = $Array(max(fin - k, 0));\n for (var n = 0; k < fin; k++, n++) createProperty(result, n, O[k]);\n result.length = n;\n return result;\n};\n","/* eslint-disable es/no-object-getownpropertynames -- safe */\nvar classof = require('../internals/classof-raw');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar $getOwnPropertyNames = require('../internals/object-get-own-property-names').f;\nvar arraySlice = require('../internals/array-slice-simple');\n\nvar windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames\n ? Object.getOwnPropertyNames(window) : [];\n\nvar getWindowNames = function (it) {\n try {\n return $getOwnPropertyNames(it);\n } catch (error) {\n return arraySlice(windowNames);\n }\n};\n\n// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\nmodule.exports.f = function getOwnPropertyNames(it) {\n return windowNames && classof(it) == 'Window'\n ? getWindowNames(it)\n : $getOwnPropertyNames(toIndexedObject(it));\n};\n","// FF26- bug: ArrayBuffers are non-extensible, but Object.isExtensible does not report it\nvar fails = require('../internals/fails');\n\nmodule.exports = fails(function () {\n if (typeof ArrayBuffer == 'function') {\n var buffer = new ArrayBuffer(8);\n // eslint-disable-next-line es/no-object-isextensible, es/no-object-defineproperty -- safe\n if (Object.isExtensible(buffer)) Object.defineProperty(buffer, 'a', { value: 8 });\n }\n});\n","var fails = require('../internals/fails');\nvar isObject = require('../internals/is-object');\nvar classof = require('../internals/classof-raw');\nvar ARRAY_BUFFER_NON_EXTENSIBLE = require('../internals/array-buffer-non-extensible');\n\n// eslint-disable-next-line es/no-object-isextensible -- safe\nvar $isExtensible = Object.isExtensible;\nvar FAILS_ON_PRIMITIVES = fails(function () { $isExtensible(1); });\n\n// `Object.isExtensible` method\n// https://tc39.es/ecma262/#sec-object.isextensible\nmodule.exports = (FAILS_ON_PRIMITIVES || ARRAY_BUFFER_NON_EXTENSIBLE) ? function isExtensible(it) {\n if (!isObject(it)) return false;\n if (ARRAY_BUFFER_NON_EXTENSIBLE && classof(it) == 'ArrayBuffer') return false;\n return $isExtensible ? $isExtensible(it) : true;\n} : $isExtensible;\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-object-isextensible, es/no-object-preventextensions -- required for testing\n return Object.isExtensible(Object.preventExtensions({}));\n});\n","var $ = require('../internals/export');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar hiddenKeys = require('../internals/hidden-keys');\nvar isObject = require('../internals/is-object');\nvar hasOwn = require('../internals/has-own-property');\nvar defineProperty = require('../internals/object-define-property').f;\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertyNamesExternalModule = require('../internals/object-get-own-property-names-external');\nvar isExtensible = require('../internals/object-is-extensible');\nvar uid = require('../internals/uid');\nvar FREEZING = require('../internals/freezing');\n\nvar REQUIRED = false;\nvar METADATA = uid('meta');\nvar id = 0;\n\nvar setMetadata = function (it) {\n defineProperty(it, METADATA, { value: {\n objectID: 'O' + id++, // object ID\n weakData: {} // weak collections IDs\n } });\n};\n\nvar fastKey = function (it, create) {\n // return a primitive with prefix\n if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n if (!hasOwn(it, METADATA)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return 'F';\n // not necessary to add metadata\n if (!create) return 'E';\n // add missing metadata\n setMetadata(it);\n // return object ID\n } return it[METADATA].objectID;\n};\n\nvar getWeakData = function (it, create) {\n if (!hasOwn(it, METADATA)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return true;\n // not necessary to add metadata\n if (!create) return false;\n // add missing metadata\n setMetadata(it);\n // return the store of weak collections IDs\n } return it[METADATA].weakData;\n};\n\n// add metadata on freeze-family methods calling\nvar onFreeze = function (it) {\n if (FREEZING && REQUIRED && isExtensible(it) && !hasOwn(it, METADATA)) setMetadata(it);\n return it;\n};\n\nvar enable = function () {\n meta.enable = function () { /* empty */ };\n REQUIRED = true;\n var getOwnPropertyNames = getOwnPropertyNamesModule.f;\n var splice = uncurryThis([].splice);\n var test = {};\n test[METADATA] = 1;\n\n // prevent exposing of metadata key\n if (getOwnPropertyNames(test).length) {\n getOwnPropertyNamesModule.f = function (it) {\n var result = getOwnPropertyNames(it);\n for (var i = 0, length = result.length; i < length; i++) {\n if (result[i] === METADATA) {\n splice(result, i, 1);\n break;\n }\n } return result;\n };\n\n $({ target: 'Object', stat: true, forced: true }, {\n getOwnPropertyNames: getOwnPropertyNamesExternalModule.f\n });\n }\n};\n\nvar meta = module.exports = {\n enable: enable,\n fastKey: fastKey,\n getWeakData: getWeakData,\n onFreeze: onFreeze\n};\n\nhiddenKeys[METADATA] = true;\n","var isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\n\n// makes subclassing work correct for wrapped built-ins\nmodule.exports = function ($this, dummy, Wrapper) {\n var NewTarget, NewTargetPrototype;\n if (\n // it can work only with native `setPrototypeOf`\n setPrototypeOf &&\n // we haven't completely correct pre-ES6 way for getting `new.target`, so use this\n isCallable(NewTarget = dummy.constructor) &&\n NewTarget !== Wrapper &&\n isObject(NewTargetPrototype = NewTarget.prototype) &&\n NewTargetPrototype !== Wrapper.prototype\n ) setPrototypeOf($this, NewTargetPrototype);\n return $this;\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar global = require('../internals/global');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar isForced = require('../internals/is-forced');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar InternalMetadataModule = require('../internals/internal-metadata');\nvar iterate = require('../internals/iterate');\nvar anInstance = require('../internals/an-instance');\nvar isCallable = require('../internals/is-callable');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar isObject = require('../internals/is-object');\nvar fails = require('../internals/fails');\nvar checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar inheritIfRequired = require('../internals/inherit-if-required');\n\nmodule.exports = function (CONSTRUCTOR_NAME, wrapper, common) {\n var IS_MAP = CONSTRUCTOR_NAME.indexOf('Map') !== -1;\n var IS_WEAK = CONSTRUCTOR_NAME.indexOf('Weak') !== -1;\n var ADDER = IS_MAP ? 'set' : 'add';\n var NativeConstructor = global[CONSTRUCTOR_NAME];\n var NativePrototype = NativeConstructor && NativeConstructor.prototype;\n var Constructor = NativeConstructor;\n var exported = {};\n\n var fixMethod = function (KEY) {\n var uncurriedNativeMethod = uncurryThis(NativePrototype[KEY]);\n defineBuiltIn(NativePrototype, KEY,\n KEY == 'add' ? function add(value) {\n uncurriedNativeMethod(this, value === 0 ? 0 : value);\n return this;\n } : KEY == 'delete' ? function (key) {\n return IS_WEAK && !isObject(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);\n } : KEY == 'get' ? function get(key) {\n return IS_WEAK && !isObject(key) ? undefined : uncurriedNativeMethod(this, key === 0 ? 0 : key);\n } : KEY == 'has' ? function has(key) {\n return IS_WEAK && !isObject(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);\n } : function set(key, value) {\n uncurriedNativeMethod(this, key === 0 ? 0 : key, value);\n return this;\n }\n );\n };\n\n var REPLACE = isForced(\n CONSTRUCTOR_NAME,\n !isCallable(NativeConstructor) || !(IS_WEAK || NativePrototype.forEach && !fails(function () {\n new NativeConstructor().entries().next();\n }))\n );\n\n if (REPLACE) {\n // create collection constructor\n Constructor = common.getConstructor(wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER);\n InternalMetadataModule.enable();\n } else if (isForced(CONSTRUCTOR_NAME, true)) {\n var instance = new Constructor();\n // early implementations not supports chaining\n var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance;\n // V8 ~ Chromium 40- weak-collections throws on primitives, but should return false\n var THROWS_ON_PRIMITIVES = fails(function () { instance.has(1); });\n // most early implementations doesn't supports iterables, most modern - not close it correctly\n // eslint-disable-next-line no-new -- required for testing\n var ACCEPT_ITERABLES = checkCorrectnessOfIteration(function (iterable) { new NativeConstructor(iterable); });\n // for early implementations -0 and +0 not the same\n var BUGGY_ZERO = !IS_WEAK && fails(function () {\n // V8 ~ Chromium 42- fails only with 5+ elements\n var $instance = new NativeConstructor();\n var index = 5;\n while (index--) $instance[ADDER](index, index);\n return !$instance.has(-0);\n });\n\n if (!ACCEPT_ITERABLES) {\n Constructor = wrapper(function (dummy, iterable) {\n anInstance(dummy, NativePrototype);\n var that = inheritIfRequired(new NativeConstructor(), dummy, Constructor);\n if (!isNullOrUndefined(iterable)) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });\n return that;\n });\n Constructor.prototype = NativePrototype;\n NativePrototype.constructor = Constructor;\n }\n\n if (THROWS_ON_PRIMITIVES || BUGGY_ZERO) {\n fixMethod('delete');\n fixMethod('has');\n IS_MAP && fixMethod('get');\n }\n\n if (BUGGY_ZERO || HASNT_CHAINING) fixMethod(ADDER);\n\n // weak collections should not contains .clear method\n if (IS_WEAK && NativePrototype.clear) delete NativePrototype.clear;\n }\n\n exported[CONSTRUCTOR_NAME] = Constructor;\n $({ global: true, constructor: true, forced: Constructor != NativeConstructor }, exported);\n\n setToStringTag(Constructor, CONSTRUCTOR_NAME);\n\n if (!IS_WEAK) common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP);\n\n return Constructor;\n};\n","var defineBuiltIn = require('../internals/define-built-in');\n\nmodule.exports = function (target, src, options) {\n for (var key in src) defineBuiltIn(target, key, src[key], options);\n return target;\n};\n","'use strict';\nvar create = require('../internals/object-create');\nvar defineBuiltInAccessor = require('../internals/define-built-in-accessor');\nvar defineBuiltIns = require('../internals/define-built-ins');\nvar bind = require('../internals/function-bind-context');\nvar anInstance = require('../internals/an-instance');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar iterate = require('../internals/iterate');\nvar defineIterator = require('../internals/iterator-define');\nvar createIterResultObject = require('../internals/create-iter-result-object');\nvar setSpecies = require('../internals/set-species');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar fastKey = require('../internals/internal-metadata').fastKey;\nvar InternalStateModule = require('../internals/internal-state');\n\nvar setInternalState = InternalStateModule.set;\nvar internalStateGetterFor = InternalStateModule.getterFor;\n\nmodule.exports = {\n getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {\n var Constructor = wrapper(function (that, iterable) {\n anInstance(that, Prototype);\n setInternalState(that, {\n type: CONSTRUCTOR_NAME,\n index: create(null),\n first: undefined,\n last: undefined,\n size: 0\n });\n if (!DESCRIPTORS) that.size = 0;\n if (!isNullOrUndefined(iterable)) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });\n });\n\n var Prototype = Constructor.prototype;\n\n var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);\n\n var define = function (that, key, value) {\n var state = getInternalState(that);\n var entry = getEntry(that, key);\n var previous, index;\n // change existing entry\n if (entry) {\n entry.value = value;\n // create new entry\n } else {\n state.last = entry = {\n index: index = fastKey(key, true),\n key: key,\n value: value,\n previous: previous = state.last,\n next: undefined,\n removed: false\n };\n if (!state.first) state.first = entry;\n if (previous) previous.next = entry;\n if (DESCRIPTORS) state.size++;\n else that.size++;\n // add to index\n if (index !== 'F') state.index[index] = entry;\n } return that;\n };\n\n var getEntry = function (that, key) {\n var state = getInternalState(that);\n // fast case\n var index = fastKey(key);\n var entry;\n if (index !== 'F') return state.index[index];\n // frozen object case\n for (entry = state.first; entry; entry = entry.next) {\n if (entry.key == key) return entry;\n }\n };\n\n defineBuiltIns(Prototype, {\n // `{ Map, Set }.prototype.clear()` methods\n // https://tc39.es/ecma262/#sec-map.prototype.clear\n // https://tc39.es/ecma262/#sec-set.prototype.clear\n clear: function clear() {\n var that = this;\n var state = getInternalState(that);\n var data = state.index;\n var entry = state.first;\n while (entry) {\n entry.removed = true;\n if (entry.previous) entry.previous = entry.previous.next = undefined;\n delete data[entry.index];\n entry = entry.next;\n }\n state.first = state.last = undefined;\n if (DESCRIPTORS) state.size = 0;\n else that.size = 0;\n },\n // `{ Map, Set }.prototype.delete(key)` methods\n // https://tc39.es/ecma262/#sec-map.prototype.delete\n // https://tc39.es/ecma262/#sec-set.prototype.delete\n 'delete': function (key) {\n var that = this;\n var state = getInternalState(that);\n var entry = getEntry(that, key);\n if (entry) {\n var next = entry.next;\n var prev = entry.previous;\n delete state.index[entry.index];\n entry.removed = true;\n if (prev) prev.next = next;\n if (next) next.previous = prev;\n if (state.first == entry) state.first = next;\n if (state.last == entry) state.last = prev;\n if (DESCRIPTORS) state.size--;\n else that.size--;\n } return !!entry;\n },\n // `{ Map, Set }.prototype.forEach(callbackfn, thisArg = undefined)` methods\n // https://tc39.es/ecma262/#sec-map.prototype.foreach\n // https://tc39.es/ecma262/#sec-set.prototype.foreach\n forEach: function forEach(callbackfn /* , that = undefined */) {\n var state = getInternalState(this);\n var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n var entry;\n while (entry = entry ? entry.next : state.first) {\n boundFunction(entry.value, entry.key, this);\n // revert to the last existing entry\n while (entry && entry.removed) entry = entry.previous;\n }\n },\n // `{ Map, Set}.prototype.has(key)` methods\n // https://tc39.es/ecma262/#sec-map.prototype.has\n // https://tc39.es/ecma262/#sec-set.prototype.has\n has: function has(key) {\n return !!getEntry(this, key);\n }\n });\n\n defineBuiltIns(Prototype, IS_MAP ? {\n // `Map.prototype.get(key)` method\n // https://tc39.es/ecma262/#sec-map.prototype.get\n get: function get(key) {\n var entry = getEntry(this, key);\n return entry && entry.value;\n },\n // `Map.prototype.set(key, value)` method\n // https://tc39.es/ecma262/#sec-map.prototype.set\n set: function set(key, value) {\n return define(this, key === 0 ? 0 : key, value);\n }\n } : {\n // `Set.prototype.add(value)` method\n // https://tc39.es/ecma262/#sec-set.prototype.add\n add: function add(value) {\n return define(this, value = value === 0 ? 0 : value, value);\n }\n });\n if (DESCRIPTORS) defineBuiltInAccessor(Prototype, 'size', {\n configurable: true,\n get: function () {\n return getInternalState(this).size;\n }\n });\n return Constructor;\n },\n setStrong: function (Constructor, CONSTRUCTOR_NAME, IS_MAP) {\n var ITERATOR_NAME = CONSTRUCTOR_NAME + ' Iterator';\n var getInternalCollectionState = internalStateGetterFor(CONSTRUCTOR_NAME);\n var getInternalIteratorState = internalStateGetterFor(ITERATOR_NAME);\n // `{ Map, Set }.prototype.{ keys, values, entries, @@iterator }()` methods\n // https://tc39.es/ecma262/#sec-map.prototype.entries\n // https://tc39.es/ecma262/#sec-map.prototype.keys\n // https://tc39.es/ecma262/#sec-map.prototype.values\n // https://tc39.es/ecma262/#sec-map.prototype-@@iterator\n // https://tc39.es/ecma262/#sec-set.prototype.entries\n // https://tc39.es/ecma262/#sec-set.prototype.keys\n // https://tc39.es/ecma262/#sec-set.prototype.values\n // https://tc39.es/ecma262/#sec-set.prototype-@@iterator\n defineIterator(Constructor, CONSTRUCTOR_NAME, function (iterated, kind) {\n setInternalState(this, {\n type: ITERATOR_NAME,\n target: iterated,\n state: getInternalCollectionState(iterated),\n kind: kind,\n last: undefined\n });\n }, function () {\n var state = getInternalIteratorState(this);\n var kind = state.kind;\n var entry = state.last;\n // revert to the last existing entry\n while (entry && entry.removed) entry = entry.previous;\n // get next entry\n if (!state.target || !(state.last = entry = entry ? entry.next : state.state.first)) {\n // or finish the iteration\n state.target = undefined;\n return createIterResultObject(undefined, true);\n }\n // return step by kind\n if (kind == 'keys') return createIterResultObject(entry.key, false);\n if (kind == 'values') return createIterResultObject(entry.value, false);\n return createIterResultObject([entry.key, entry.value], false);\n }, IS_MAP ? 'entries' : 'values', !IS_MAP, true);\n\n // `{ Map, Set }.prototype[@@species]` accessors\n // https://tc39.es/ecma262/#sec-get-map-@@species\n // https://tc39.es/ecma262/#sec-get-set-@@species\n setSpecies(CONSTRUCTOR_NAME);\n }\n};\n","'use strict';\nvar collection = require('../internals/collection');\nvar collectionStrong = require('../internals/collection-strong');\n\n// `Set` constructor\n// https://tc39.es/ecma262/#sec-set-objects\ncollection('Set', function (init) {\n return function Set() { return init(this, arguments.length ? arguments[0] : undefined); };\n}, collectionStrong);\n","var $ = require('../internals/export');\nvar toObject = require('../internals/to-object');\nvar nativeKeys = require('../internals/object-keys');\nvar fails = require('../internals/fails');\n\nvar FAILS_ON_PRIMITIVES = fails(function () { nativeKeys(1); });\n\n// `Object.keys` method\n// https://tc39.es/ecma262/#sec-object.keys\n$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {\n keys: function keys(it) {\n return nativeKeys(toObject(it));\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar $map = require('../internals/array-iteration').map;\nvar arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');\n\nvar HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('map');\n\n// `Array.prototype.map` method\n// https://tc39.es/ecma262/#sec-array.prototype.map\n// with adding support of @@species\n$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {\n map: function map(callbackfn /* , thisArg */) {\n return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n","var DESCRIPTORS = require('../internals/descriptors');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar objectKeys = require('../internals/object-keys');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar $propertyIsEnumerable = require('../internals/object-property-is-enumerable').f;\n\nvar propertyIsEnumerable = uncurryThis($propertyIsEnumerable);\nvar push = uncurryThis([].push);\n\n// `Object.{ entries, values }` methods implementation\nvar createMethod = function (TO_ENTRIES) {\n return function (it) {\n var O = toIndexedObject(it);\n var keys = objectKeys(O);\n var length = keys.length;\n var i = 0;\n var result = [];\n var key;\n while (length > i) {\n key = keys[i++];\n if (!DESCRIPTORS || propertyIsEnumerable(O, key)) {\n push(result, TO_ENTRIES ? [key, O[key]] : O[key]);\n }\n }\n return result;\n };\n};\n\nmodule.exports = {\n // `Object.entries` method\n // https://tc39.es/ecma262/#sec-object.entries\n entries: createMethod(true),\n // `Object.values` method\n // https://tc39.es/ecma262/#sec-object.values\n values: createMethod(false)\n};\n","var $ = require('../internals/export');\nvar $values = require('../internals/object-to-array').values;\n\n// `Object.values` method\n// https://tc39.es/ecma262/#sec-object.values\n$({ target: 'Object', stat: true }, {\n values: function values(O) {\n return $values(O);\n }\n});\n","import { BasePlugin } from '../base-plugins/BasePlugin';\n\n/**\n * @export\n * @class RadioGroup\n * @property {string} controlName\n * @property {string} featureName\n * @property {string} radioElements\n * @property {string} defaultValue\n */\nexport class RadioGroup extends BasePlugin {\n /**\n * creates an instance of RadioGroup\n * @constructor\n * @param {string} selector selector string for the radio group\n * @param {string} controlName the name of the control (used for warning logging only)\n * @param {string} [featureName='captionStyles'] the feature name used by Springroll. Defaults to captionStyles\n * @param {string} defaultValue the value attribute of the radio button that should be selected by default\n * @param {string} pluginName name of the plugin that instantiated the RadioGroup. Used for logging warnings\n * @memberof RadioGroupPlugin\n */\n constructor({selector, controlName, featureName = 'captionStyles', defaultValue, pluginName}) {\n super(pluginName);\n this.controlName = controlName;\n this.featureName = featureName;\n this.radioElements = document.querySelectorAll(selector);\n this.defaultValue = defaultValue;\n\n this.radioGroup = {};\n\n if (this.radioElements.length <= 0) {\n this.warn(`${this.controlName} RadioGroup found no HTMLElements with selector: ${selector}`);\n return;\n }\n\n this.radioElements.forEach(radio => {\n if (radio.type !== 'radio') {\n this.warn(`${this.controlName} was provided a non Radio Button element with selector: ${selector}`);\n return;\n }\n radio.value = radio.value.toLowerCase();\n\n this.radioGroup[radio.value] = radio;\n });\n\n if (!this.radioGroup[this.defaultValue]) {\n this.warn(`${this.controlName} RadioGroup for selector: ${selector} does not have a radio button with value ${this.defaultValue} to use as default value. Using first element as default`);\n this.defaultValue = this.radioElements[0].value.toLowerCase();\n }\n\n this.radioGroup[this.defaultValue].checked = true;\n }\n\n /**\n * @param {string[]} valuesArray Array of acceptable values to check against the radio group.\n * @return {boolean}\n * @memberof RadioGroup\n */\n hasOnly(valuesArray) {\n\n for (const key in this.radioGroup) {\n if (!valuesArray.includes(this.radioGroup[key].value)) {\n this.warn(`${this.controlName} radio button value: ${this.radioGroup[key].value} is not an accepted value. Skipping radio group`);\n return false;\n }\n }\n\n return true;\n }\n\n /**\n * @return {boolean}\n * @memberof RadioGroup\n */\n hasDuplicateValues() {\n return this.values.length !== [...new Set(this.values)].length;\n }\n\n /**\n * Adds change listeners to the radio buttons using the given callback function\n * @memberof RadioGroup\n * @param {Function} callBack event to fire on change\n */\n enableRadioEvents(callBack) {\n if (!this.radioGroup.length <= 0) {\n return;\n }\n\n const event = callBack;\n for (const radio in this.radioGroup) {\n this.radioGroup[radio].addEventListener('change', event);\n }\n }\n\n /**\n * removes the event listeners from the RadioGroup\n * @memberof RadioGroup\n * @param {Function} callBack event to fire on change\n */\n disableRadioEvents(callBack) {\n if (!this.radioGroup.length <= 0) {\n return;\n }\n for (const radio in this.radioGroup) {\n this.radioGroup[radio].removeEventListener('change', callBack);\n }\n }\n\n /**\n * enables display of the Radio buttons if the correct feature is present in the features list\n * @memberof RadioGroup\n * @param {object} data Object containing which features are enabled\n */\n displayRadios(data) {\n if (this.radioGroup.length <= 0 && data[this.featureName]) {\n this.warn(`${this.controlName} was not provided a valid input element or selector but '${this.featureName}' was included as a game feature`);\n return;\n }\n\n if (this.radioGroup.length <= 0) {\n return;\n }\n\n if (data[this.featureName]) {\n return;\n }\n\n for (const radio in this.radioGroup) {\n this.radioGroup[radio].style.display = 'none';\n }\n }\n\n /**\n * Reset the radio button states\n * @memberof RadioGroup\n */\n resetState() {\n this.radioGroup[this.defaultValue].checked = true;\n }\n\n /**\n * @readonly\n * @returns {number}\n * @memberof RadioGroup\n */\n get length() {\n return Object.keys(this.radioGroup).length;\n }\n\n /**\n * @readonly\n * @returns {number}\n * @memberof RadioGroup\n */\n get values() {\n return Object.values(this.radioGroup).map(radio => radio.value);\n }\n}\n","import { BasePlugin } from './BasePlugin';\nimport { RadioGroup } from '../ui-elements/RadioGroup';\n\n/**\n *\n *\n * @export\n * @class RadioGroupPlugin\n */\nexport class RadioGroupPlugin extends BasePlugin {\n /**\n *\n *Creates an instance of RadioGroupPlugin.\n * @constructor\n * @memberof RadioGroupPlugin\n * @param {string} name\n */\n constructor(cssSelector, name, {supportedValues, initialValue, controlName, featureName, radioCount}) {\n super(name);\n this.selectors = cssSelector ? cssSelector.split(',') : [];\n this.supportedValues = supportedValues;\n this.initialValue = supportedValues.includes(initialValue) ? initialValue : supportedValues[0];\n this.controlName = controlName;\n this.featureName = featureName;\n this.radioCount = radioCount;\n this.sendAllProperties = this.sendAllProperties.bind(this);\n\n this._currentValue = this.initialValue;\n\n this.radioGroups = this.setUpRadios(this.selectors);\n\n this.radioGroupsLength = this.radioGroups.length;\n }\n\n /**\n * @memberof RadioGroupPlugin\n * @param {string[]} selectors the separated selector strings used to target the radio button groups\n * @returns {RadioGroup[]}\n */\n setUpRadios(selectors) {\n const radioGroups = [];\n\n selectors.forEach((selector) => {\n const radioGroup = new RadioGroup({\n selector: selector.trim(),\n controlName: this.controlName,\n defaultValue: this.initialValue,\n pluginName: this.name,\n featureName: this.featureName\n });\n\n if (radioGroup.length !== this.radioCount) {\n this.warn(`Selector \"${selector}\" did not find exactly ${this.radioCount} radio buttons for ${this.controlName}. Skipping selector`);\n return;\n }\n\n if (!radioGroup.hasOnly(this.supportedValues)) {\n return;\n }\n\n if (radioGroup.hasDuplicateValues()) {\n this.warn(`Duplicate radio button values detected (values: ${radioGroup.values} ). Skipping radio group`);\n return;\n }\n\n radioGroups.push(radioGroup);\n });\n\n return radioGroups;\n }\n\n /**\n * @memberof RadioGroupPlugin\n */\n start() {\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * Sends initial caption properties to the application\n * @memberof RadioGroupPlugin\n */\n sendAllProperties() {\n this.sendProperty(this.featureName, this.property);\n }\n\n /**\n * @memberof RadioGroupPlugin\n * @param {string} newValue\n */\n set currentValue(newValue) {\n if (!this.supportedValues.includes(newValue)) {\n return;\n }\n\n this._currentValue = newValue;\n\n for (let i = 0, l = this.radioGroups.length; i < l; i++) {\n this.radioGroups[i].radioGroup[newValue].checked = true;\n }\n }\n\n /**\n * @memberof RadioGroupPlugin\n * @return {string}\n */\n get currentValue() {\n return this._currentValue;\n }\n\n}\n","var uncurryThis = require('../internals/function-uncurry-this');\n\n// `thisNumberValue` abstract operation\n// https://tc39.es/ecma262/#sec-thisnumbervalue\nmodule.exports = uncurryThis(1.0.valueOf);\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar global = require('../internals/global');\nvar path = require('../internals/path');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar isForced = require('../internals/is-forced');\nvar hasOwn = require('../internals/has-own-property');\nvar inheritIfRequired = require('../internals/inherit-if-required');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar isSymbol = require('../internals/is-symbol');\nvar toPrimitive = require('../internals/to-primitive');\nvar fails = require('../internals/fails');\nvar getOwnPropertyNames = require('../internals/object-get-own-property-names').f;\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar defineProperty = require('../internals/object-define-property').f;\nvar thisNumberValue = require('../internals/this-number-value');\nvar trim = require('../internals/string-trim').trim;\n\nvar NUMBER = 'Number';\nvar NativeNumber = global[NUMBER];\nvar PureNumberNamespace = path[NUMBER];\nvar NumberPrototype = NativeNumber.prototype;\nvar TypeError = global.TypeError;\nvar stringSlice = uncurryThis(''.slice);\nvar charCodeAt = uncurryThis(''.charCodeAt);\n\n// `ToNumeric` abstract operation\n// https://tc39.es/ecma262/#sec-tonumeric\nvar toNumeric = function (value) {\n var primValue = toPrimitive(value, 'number');\n return typeof primValue == 'bigint' ? primValue : toNumber(primValue);\n};\n\n// `ToNumber` abstract operation\n// https://tc39.es/ecma262/#sec-tonumber\nvar toNumber = function (argument) {\n var it = toPrimitive(argument, 'number');\n var first, third, radix, maxCode, digits, length, index, code;\n if (isSymbol(it)) throw TypeError('Cannot convert a Symbol value to a number');\n if (typeof it == 'string' && it.length > 2) {\n it = trim(it);\n first = charCodeAt(it, 0);\n if (first === 43 || first === 45) {\n third = charCodeAt(it, 2);\n if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix\n } else if (first === 48) {\n switch (charCodeAt(it, 1)) {\n case 66: case 98: radix = 2; maxCode = 49; break; // fast equal of /^0b[01]+$/i\n case 79: case 111: radix = 8; maxCode = 55; break; // fast equal of /^0o[0-7]+$/i\n default: return +it;\n }\n digits = stringSlice(it, 2);\n length = digits.length;\n for (index = 0; index < length; index++) {\n code = charCodeAt(digits, index);\n // parseInt parses a string to a first unavailable symbol\n // but ToNumber should return NaN if a string contains unavailable symbols\n if (code < 48 || code > maxCode) return NaN;\n } return parseInt(digits, radix);\n }\n } return +it;\n};\n\nvar FORCED = isForced(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'));\n\nvar calledWithNew = function (dummy) {\n // includes check on 1..constructor(foo) case\n return isPrototypeOf(NumberPrototype, dummy) && fails(function () { thisNumberValue(dummy); });\n};\n\n// `Number` constructor\n// https://tc39.es/ecma262/#sec-number-constructor\nvar NumberWrapper = function Number(value) {\n var n = arguments.length < 1 ? 0 : NativeNumber(toNumeric(value));\n return calledWithNew(this) ? inheritIfRequired(Object(n), this, NumberWrapper) : n;\n};\n\nNumberWrapper.prototype = NumberPrototype;\nif (FORCED && !IS_PURE) NumberPrototype.constructor = NumberWrapper;\n\n$({ global: true, constructor: true, wrap: true, forced: FORCED }, {\n Number: NumberWrapper\n});\n\n// Use `internal/copy-constructor-properties` helper in `core-js@4`\nvar copyConstructorProperties = function (target, source) {\n for (var keys = DESCRIPTORS ? getOwnPropertyNames(source) : (\n // ES3:\n 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +\n // ES2015 (in case, if modules with ES2015 Number statics required before):\n 'EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,' +\n // ESNext\n 'fromString,range'\n ).split(','), j = 0, key; keys.length > j; j++) {\n if (hasOwn(source, key = keys[j]) && !hasOwn(target, key)) {\n defineProperty(target, key, getOwnPropertyDescriptor(source, key));\n }\n }\n};\n\nif (IS_PURE && PureNumberNamespace) copyConstructorProperties(path[NUMBER], PureNumberNamespace);\nif (FORCED || IS_PURE) copyConstructorProperties(path[NUMBER], NativeNumber);\n","import { SavedData } from '../SavedData';\n\n/**\n * @export\n * @class Slider\n */\nexport class Slider {\n /**\n *Creates an instance of Slider\n * @param {object} params\n * @param {string | HTMLInputElement} params.slider the slider element or a selector string\n * @param {string} params.control the feature that this slider controols\n * @param {number} [min=0] slider min value\n * @param {number} [max=1] slider max value\n * @param {number} [step=0.1] slider step value\n * @param {number} [defaultValue=1] slider starting value\n * @memberof SliderPlugin\n */\n constructor({\n slider,\n control,\n min = 0,\n max = 1,\n step = 0.1,\n defaultValue = 1\n }) {\n this.min = min;\n this.max = max;\n this.step = step;\n this.sliderValue = defaultValue;\n this.control = control;\n this.slider = this.setUpSlider(slider, control);\n }\n\n /**\n * @param {string | HTMLInputElement | HTMLElement} slider\n * @param {string} control The control element (sensitivity, difficulty, pointer size, etc) this slider will be controlling\n * @returns {Element | HTMLElement}\n * @memberof Slider\n */\n setUpSlider(slider, control) {\n if ('string' === typeof slider) {\n slider = document.querySelector(slider);\n }\n\n if (!slider || 'range' !== slider.type) {\n return null;\n }\n const value = SavedData.read(control);\n\n slider.min = this.min;\n slider.max = this.max;\n slider.step = this.step;\n\n if ((value || value === 0) && value.toString().trim().length > 0) {\n slider.value = value;\n this.sliderValue = value;\n } else {\n slider.value = this.sliderValue;\n }\n\n return slider;\n }\n\n /**\n * Controls the range of the slider\n * @param {number} i\n * @returns\n * @memberof Slider\n */\n sliderRange(i) {\n if (i < this.min) {\n return this.min;\n } else if (i > this.max) {\n return this.max;\n } else {\n return i;\n }\n }\n\n /**\n * Adds change and input listeners to the slider using the given callback function\n * @memberof Slider\n * @param {Function} callBack event to fire on change or input\n */\n enableSliderEvents(callBack) {\n if (!this.slider) {\n return;\n }\n\n const event = callBack;\n this.slider.addEventListener('change', event);\n this.slider.addEventListener('input', event);\n }\n\n /**\n * removes the event listeners from the given slider.\n * @memberof Slider\n * @param {Function} callBack event to fire on change or input\n */\n disableSliderEvents(callBack) {\n if (!this.slider) {\n return;\n }\n const event = callBack;\n this.slider.removeEventListener('change', event);\n this.slider.removeEventListener('input', event);\n }\n /**\n * enables display of the Slider if it is present in the features list\n * @memberof Slider\n * @param {object} data Object containing which features are enabled\n */\n displaySlider(data) {\n if (!this.slider && data[this.control]) {\n console.warn(`${this.control} was not provided a valid input element or selector but was included as a game feature`);\n }\n\n if (!this.slider) {\n return;\n }\n\n this.slider.style.display = data[this.control] ? '' : 'none';\n }\n\n /**\n * @param {Event} event the event to be fired on the slider\n * @memberof Slider\n */\n dispatchEvent(event) {\n this.slider.dispatchEvent(event);\n }\n\n /**\n * @readonly\n * @returns {string}\n * @memberof Slider\n */\n get value() {\n return this.slider.value;\n }\n\n /**\n * @memberof Slider\n */\n set value(value) {\n this.slider.value = value;\n }\n}\n","/**\n * @export\n * @class Button\n */\nexport class Button {\n /**\n *Creates an instance of Button\n * @param {object} params\n * @param {string | HTMLElement} params.button the button itself or a selector string\n * @param {Function} params.onClick the function to call when the button is clicked\n * @param {string} channel the feature this button controls\n * @memberof ButtonPlugin\n */\n constructor({ button, onClick, channel }) {\n this.button =\n button instanceof HTMLElement ? button : document.querySelector(button);\n this.onClick = onClick;\n this.channel = channel;\n\n if (this.button) {\n this.button.addEventListener('click', onClick);\n }\n }\n\n /**\n * enables display of the button if it is present in the features list\n * @memberof Button\n * @param {object} data Object containing which features are enabled\n */\n displayButton(data) {\n if (!(this.button instanceof HTMLElement)) {\n return;\n }\n\n this.button.style.display =\n data[this.channel] || this.channel === 'pause' || this.channel === 'hints'\n ? ''\n : 'none';\n }\n\n /**\n * enables display of the button\n * @memberof Button\n */\n enableButton() {\n if (!this.button) {\n return;\n }\n this.button.classList.remove('disabled');\n }\n\n /**\n * \n * @param {string} className The classname to be appended to the end of the class property\n */\n addClass(className) {\n this.button.className = this.button.className ? this.button.className + ` ${ className }` : ` ${ className }`;\n }\n}\n","import { BasePlugin } from './BasePlugin';\nimport { Slider } from '../ui-elements';\n\n/**\n *\n *\n * @export\n * @class SliderPlugin\n */\nexport class SliderPlugin extends BasePlugin {\n /**\n *\n *Creates an instance of SliderPlugin.\n * @constructor\n * @memberof SliderPlugin\n * @param {string} cssSelector\n * @param {string} name\n * @param {object} options\n * @param {string | number} [options.defaultValue='0.5']\n * @param {string | number} [options.minValue='0']\n * @param {string | number} [options.maxValue='1']\n * @param {string} [options.featureName] Springroll Core feature name that the plugin is supporting\n */\n constructor(cssSelector, name, {defaultValue = '0.5', minValue = '0', maxValue = '1', featureName }) {\n super(name);\n this.featureName = featureName;\n this.minValue = minValue;\n this.defaultValue = defaultValue;\n this.maxValue = maxValue;\n this._currentValue = defaultValue;\n this.sliders = this.setUpSliders(cssSelector);\n this.slidersLength = this.sliders.length;\n this.sendAllProperties = this.sendAllProperties.bind(this);\n\n if (0 >= this.slidersLength) {\n this.warn('Plugin was not provided any valid HTML Elements');\n return;\n }\n }\n\n /**\n * @memberof SliderPlugin\n * @param {string[]} selectors the selector strings used to target the input elements\n * @returns {Slider[]}\n */\n setUpSliders(selectors) {\n const sliders = [];\n\n if (selectors instanceof HTMLElement) {\n sliders.push(new Slider({\n slider: selectors,\n control: this.featureName,\n defaultValue: this.defaultValue,\n minValue: this.minValue,\n maxValue: this.maxValue\n }));\n } else {\n document.querySelectorAll(selectors).forEach((slider) => {\n sliders.push(new Slider({\n slider: slider,\n control: this.featureName,\n defaultValue: this.defaultValue,\n minValue: this.minValue,\n maxValue: this.maxValue\n }));\n });\n }\n\n return sliders;\n }\n\n /**\n * @memberof SliderPlugin\n */\n init() {\n this.client.on(\n 'features',\n function(features) {\n if (!features.data) {\n return;\n }\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].displaySlider(features.data);\n }\n }.bind(this)\n );\n }\n\n /**\n * @memberof SliderPlugin\n */\n start() {\n this._currentValue = this.sliders[0].value; //update current value to the saved data value set in Slider.\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * Sends initial caption properties to the application\n * @memberof SliderPlugin\n */\n sendAllProperties() {\n this.sendProperty(this.featureName, this.currentValue);\n }\n\n /**\n * @memberof SliderPlugin\n * @param {string} newValue\n */\n set currentValue(newValue) {\n\n //just use first slider to ensure the number is valid.\n this._currentValue = this.sliders[0].sliderRange(Number(newValue));\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].value = newValue;\n }\n }\n\n /**\n * @memberof SliderPlugin\n * @return {string}\n */\n get currentValue() {\n return this._currentValue;\n }\n\n}\n","import { SavedData } from '../SavedData';\nimport { ButtonPlugin } from '../base-plugins';\nimport { RadioGroup } from '../ui-elements';\n\nconst DEFAULT_CAPTIONS_STYLES = {\n size: 'medium',\n background: 'black',\n color: 'white',\n edge: 'none',\n font: 'arial',\n align: 'top'\n};\n\nconst DEFAULT_COLOR_STYLE = {color: 'white', background: 'black'};\nconst INVERTED_COLOR_STYLE = {color: 'black', background: 'white'};\nconst FONT_SIZE_VALUES = ['small', 'medium', 'large'];\nconst COLOR_VALUES = ['default', 'inverted'];\nconst ALIGN_VALUES = ['top', 'bottom'];\n\n/**\n * @export\n * @class CaptionsStylePlugin\n * @property {object} captionsStyles The collection of captions styles\n * @property {string[]} fontSizeSelectors selector strings for the radio button groups\n * @property {string[]} colorSelectors selector strings for the radio button groups\n * @property {string[]} alignmentSelectors selector strings for the radio button groups\n * @property {Object[]} fontSizeRadios array that contains each radio group\n * @property {Object[]} colorRadios array that contains each radio group\n * @property {Object[]} alignmentRadios array that contains each radio group\n * @property {number} fontSizeRadiosLength Length of the fontSizeRadios array\n * @property {number} colorRadiosLength Length of the colorRadios array\n * @property {number} alignmentRadiosLength Length of the alignmentRadios array\n * @extends {ButtonPlugin}\n */\nexport class CaptionsStylePlugin extends ButtonPlugin {\n /**\n * Creates an instance of CaptionsStylePlugin.\n * @param {string} fontSizeRadios selector string for one or more radio groups for caption font size\n * @param {string} colorRadios selector string for one or more radio groups for caption font/background colors\n * @param {string} alignmentRadios selector string for one or more radio groups for caption position\n * @param {string} [defaultFontSize='medium'] Default selected font size\n * @param {string} [defaultColor='default'] Default selected color\n * @param {string} [defaultAlignment='top'] Default selected alignment\n * @memberof CaptionsStylePlugin\n */\n constructor(fontSizeRadios, colorRadios, alignmentRadios,\n { defaultFontSize = 'medium', defaultColor = 'default', defaultAlignment = 'top' } = {}\n ) {\n super('Caption-Style-Plugin');\n this.sendAllProperties = this.sendAllProperties.bind(this);\n this.captionsStyles = Object.assign(\n {},\n DEFAULT_CAPTIONS_STYLES,\n SavedData.read(CaptionsStylePlugin.captionStyleKey) || {}\n );\n\n //split the selector strings into individual selectors.\n //Helps keep the input style consistent across plugins.\n this.fontSizeSelectors = fontSizeRadios ? fontSizeRadios.split(',') : [];\n this.colorSelectors = colorRadios ? colorRadios.split(',') : [];\n this.alignmentSelectors = alignmentRadios ? alignmentRadios.split(',') : [];\n\n this.defaultFontSize = FONT_SIZE_VALUES.includes(defaultFontSize) ? defaultFontSize : FONT_SIZE_VALUES[0];\n this.defaultColor = COLOR_VALUES.includes(defaultColor) ? defaultColor : COLOR_VALUES[0];\n this.defaultAlignment = ALIGN_VALUES.includes(defaultAlignment) ? defaultAlignment : ALIGN_VALUES[0];\n\n this.fontSizeRadios = [];\n this.colorRadios = [];\n this.alignmentRadios = [];\n\n this.fontSizeRadios = this.setUpFontSizeRadios(this.fontSizeSelectors);\n this.colorRadios = this.setUpColorRadios(this.colorSelectors);\n this.alignmentRadios = this.setUpAlignmentRadios(this.alignmentSelectors);\n\n this._captionsMuted = false;\n\n this.alignmentRadiosLength = this.alignmentRadios.length;\n this.fontSizeRadiosLength = this.fontSizeRadios.length;\n this.colorRadiosLength = this.colorRadios.length;\n\n if (0 >= (this.alignmentRadiosLength + this.fontSizeRadiosLength + this.colorRadiosLength)) {\n this.warn(\n 'Plugin was not provided any input elements'\n );\n return;\n }\n\n //set up change events\n for (let i = 0; i < this.colorRadiosLength; i++) {\n this.colorRadios[i].enableRadioEvents(this.onColorChange.bind(this));\n }\n for (let i = 0; i < this.alignmentRadiosLength; i++) {\n this.alignmentRadios[i].enableRadioEvents(this.onAlignmentChange.bind(this));\n }\n for (let i = 0; i < this.fontSizeRadiosLength; i++) {\n this.fontSizeRadios[i].enableRadioEvents(this.onFontSizeChange.bind(this));\n }\n }\n\n /**\n * @memberof CaptionsStylePlugin\n * @param {string[]} selectors the separated selector strings used to target the radio button groups\n * @returns {RadioGroup[]}\n */\n setUpFontSizeRadios(selectors) {\n const radioGroups = [];\n\n selectors.forEach((selector) => {\n const radioGroup = new RadioGroup({\n selector: selector.trim(),\n controlName: 'Font Size',\n defaultValue: this.defaultFontSize,\n pluginName: 'Caption-Button-Plugin'\n });\n\n if (radioGroup.length !== 3) {\n this.warn(`Selector \"${selector}\" did not find exactly three(3) radio buttons for caption font size. Skipping selector`);\n return;\n }\n\n if (!radioGroup.hasOnly(FONT_SIZE_VALUES)) {\n return;\n }\n\n if (radioGroup.hasDuplicateValues()) {\n this.warn(`Duplicate radio button values detected (values: ${radioGroup.values} ). Skipping radio group`);\n return;\n }\n\n radioGroups.push(radioGroup);\n });\n\n return radioGroups;\n }\n\n /**\n * @memberof CaptionsStylePlugin\n * @param {string[]} selectors the separated selector strings used to target the radio button groups\n * @returns {RadioGroup[]}\n */\n setUpColorRadios(selectors) {\n const radioGroups = [];\n\n selectors.forEach((selector) => {\n const radioGroup = new RadioGroup({\n selector: selector.trim(),\n controlName: 'Color',\n defaultValue: this.defaultColor,\n pluginName: 'Caption-Button-Plugin'\n });\n\n if (radioGroup.length !== 2) {\n this.warn(`Selector \"${selector}\" did not find exactly two(2) radio buttons for caption colors. Skipping selector`);\n return;\n }\n\n if (!radioGroup.hasOnly(COLOR_VALUES)) {\n return;\n }\n\n if (radioGroup.hasDuplicateValues()) {\n this.warn(`Duplicate radio button values detected (values: ${radioGroup.values} ). Skipping radio group`);\n return;\n }\n\n radioGroups.push(radioGroup);\n });\n\n return radioGroups;\n }\n\n /**\n * @memberof CaptionsStylePlugin\n * @param {string[]} selectors the separated selector strings used to target the radio button groups\n * @returns {RadioGroup[]}\n */\n setUpAlignmentRadios(selectors) {\n const radioGroups = [];\n\n selectors.forEach((selector) => {\n const radioGroup = new RadioGroup({\n selector: selector.trim(),\n controlName: 'Alignment',\n defaultValue: this.defaultAlignment,\n pluginName: 'Caption-Button-Plugin'\n });\n if (radioGroup.length !== 2) {\n this.warn(`Selector \"${selector}\" did not find exactly two(2) radio buttons for caption alignment. Skipping selector`);\n return;\n }\n\n if (!radioGroup.hasOnly(ALIGN_VALUES)) {\n return;\n }\n\n if (radioGroup.hasDuplicateValues()) {\n this.warn(`Duplicate radio button values detected (values: ${radioGroup.values} ). Skipping radio group`);\n return;\n }\n\n radioGroups.push(radioGroup);\n });\n\n return radioGroups;\n }\n\n /**\n * @memberof CaptionsStylePlugin\n */\n init() {\n // Handle the features request\n this.client.on(\n 'features',\n function($event) {\n\n for (const radio of this.radios) {\n radio.displayRadios($event.data);\n }\n\n }.bind(this)\n );\n\n this.client.on(\n 'caption-set-style',\n function($event) {\n this.setCaptionsStyles($event.data || {});\n }.bind(this)\n );\n }\n /**\n * @memberof CaptionsStylePlugin\n */\n start() {\n this.setCaptionsStyles(SavedData.read(CaptionsStylePlugin.captionStyleKey));\n\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * Sends initial caption properties to the application\n * @memberof CaptionsStylePlugin\n */\n sendAllProperties() {\n this.sendProperty(CaptionsStylePlugin.captionStyleKey, this.captionsStyles);\n }\n /**\n * Fired whenever the font size radios are updated\n * @param {Event} e\n * @memberof CaptionsStylePlugin\n */\n onFontSizeChange(e) {\n this.setCaptionsStyles('size', e.target.value);\n }\n\n /**\n * Fired whenever the alignment radios are updated\n * @param {Event} e\n * @memberof CaptionsStylePlugin\n */\n onAlignmentChange(e) {\n this.setCaptionsStyles('align', e.target.value);\n }\n\n /**\n * Fired whenever the color radios are updated\n * @param {Event} e\n * @memberof CaptionsStylePlugin\n */\n onColorChange(e) {\n const styles = e.target.value === 'default' ? DEFAULT_COLOR_STYLE : INVERTED_COLOR_STYLE;\n\n this.setCaptionsStyles(styles);\n }\n\n /**\n * Reset the captions styles\n * @param {Event} e\n * @memberof CaptionsStylePlugin\n */\n clearCaptionsStyles() {\n this.captionsStyles = Object.assign({}, DEFAULT_CAPTIONS_STYLES);\n this.setCaptionsStyles();\n\n for (const radio of this.radios) {\n radio.resetState();\n }\n }\n\n /**\n * Get the captions styles\n * @param {string} [prop] The optional property, values are \"size\", \"edge\", \"font\", \"background\", \"color\"\n * @return {object | string} The collection of styles, see setCaptionsStyles for more info.\n * @memberof CaptionsStylePlugin\n */\n getCaptionsStyles(prop) {\n return prop ? this.captionsStyles[prop] : this.captionsStyles;\n }\n\n /**\n * Set the captions styles\n *\n * @param {object} [styles] The style options or the name of the\n * property (e.g., \"color\", \"edge\", \"font\", \"background\", \"size\")\n * @param {string} [styles.color='white'] The text color, the default is white\n * @param {string} [styles.edge='none'] The edge style, default is none\n * @param {string} [styles.font='arial'] The font style, default is arial\n * @param {string} [styles.background='black'] The background style, black\n * @param {string} [styles.size='md'] The font style default is medium\n * @param {string} [styles.align='top'] The align style default is top of the window\n * @param {string} [value=''] If setting styles parameter as a string, this is the value of the property.\n * @memberof CaptionsStylePlugin\n */\n setCaptionsStyles(styles = DEFAULT_CAPTIONS_STYLES, value = '') {\n if (typeof styles === 'object') {\n Object.assign(this.captionsStyles, styles);\n } else if (typeof styles === 'string') {\n this.captionsStyles[styles] = value;\n }\n\n // update radios to match\n this.colorRadios.forEach((group) => {\n const style = this.captionsStyles.color === 'white' ? 'default' : 'inverted';\n group.radioGroup[style].checked = true;\n });\n this.alignmentRadios.forEach((group) => {\n group.radioGroup[this.captionsStyles.align].checked = true;\n });\n this.fontSizeRadios.forEach((group) => {\n group.radioGroup[this.captionsStyles.size].checked = true;\n });\n\n SavedData.write(CaptionsStylePlugin.captionStyleKey, this.captionsStyles);\n if (this.client) {\n this.client.send(CaptionsStylePlugin.captionStyleKey, this.captionsStyles);\n }\n }\n\n /**\n * @readonly\n * @returns {number}\n * @memberof RadioGroup\n */\n get radios() {\n return this.colorRadios\n .concat(this.alignmentRadios)\n .concat(this.fontSizeRadios);\n }\n /**\n * Get captionStyle Key\n * @readonly\n * @static\n * @memberof CaptionStyleKey\n * @returns {string}\n */\n static get captionStyleKey() {\n return 'captionsStyles';\n }\n\n}\n","import { SavedData } from '../SavedData';\nimport { ButtonPlugin } from '../base-plugins';\nimport { Button } from '../ui-elements';\n\n/**\n * @export\n * @class CaptionsTogglePlugin\n * @property {Button[]} _captionsButtons An array of caption mute buttons\n * @property {boolean} _captionsMuted True if captions are muted\n * @property {number} captionsButtonLength The length of the captionsButtons array\n * @extends {ButtonPlugin}\n */\nexport class CaptionsTogglePlugin extends ButtonPlugin {\n /**\n *Creates an instance of CaptionsTogglePlugin.\n * @param {string | HTMLElement} captionsButtons selector string for one or more captions mute buttons\n * @memberof CaptionsTogglePlugin\n */\n constructor(captionsButtons) {\n super('Caption-Button-Plugin');\n this.sendAllProperties = this.sendAllProperties.bind(this);\n\n this._captionsButtons = [];\n\n if ( captionsButtons instanceof HTMLElement ) {\n this._captionsButtons[0] = new Button({\n button: captionsButtons,\n onClick: this.captionsButtonClick.bind(this),\n channel: 'captions'\n });\n } else {\n document.querySelectorAll(captionsButtons).forEach((button) => {\n this._captionsButtons.push(new Button({\n button: button,\n onClick: this.captionsButtonClick.bind(this),\n channel: 'captions'\n }));\n });\n }\n\n this._captionsMuted = false;\n this.captionsButtonLength = this._captionsButtons.length;\n\n if (0 >= this.captionsButtonLength) {\n this.warn(\n 'Plugin was not provided any valid button or input elements'\n );\n return;\n }\n }\n\n /**\n * @memberof CaptionsTogglePlugin\n */\n init() {\n // Handle the features request\n this.client.on(\n 'features',\n function($event) {\n for (let i = 0; i < this.captionsButtonLength; i ++) {\n this._captionsButtons[i].displayButton($event.data);\n }\n\n if (null === SavedData.read(CaptionsTogglePlugin.captionsToggleKey)) {\n return;\n }\n\n const captionsMuted = !!SavedData.read(CaptionsTogglePlugin.captionsToggleKey);\n\n this.setMuteProp('captionsMuted', captionsMuted, this._captionsButtons, true);\n\n }.bind(this)\n );\n }\n /**\n * @memberof CaptionsTogglePlugin\n */\n start() {\n for (let i = 0; i < this.captionsButtonsLength; i++) {\n this.captionsButtons[i].enableButton();\n }\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * Sends initial caption properties to the application\n * @memberof CaptionsTogglePlugin\n */\n sendAllProperties() {\n this.sendProperty(CaptionsTogglePlugin.captionsToggleKey, this.captionsMuted);\n }\n\n /**\n * @memberof CaptionsTogglePlugin\n */\n captionsButtonClick() {\n this.captionsMuted = !this.captionsMuted;\n }\n\n /**\n * @readonly\n * @memberof CaptionsTogglePlugin\n */\n get captionsMuted() {\n return this._captionsMuted;\n }\n\n /**\n * @param {boolean} muted\n * @memberof CaptionsTogglePlugin\n */\n set captionsMuted(muted) {\n this._captionsMuted = muted;\n this._setMuteProp(\n 'captionsMuted',\n this._captionsButtons,\n this._captionsMuted\n );\n }\n\n /**\n * Get CaptionToggle Key\n * @readonly\n * @static\n * @memberof captionsToggleKey\n * @returns {string}\n */\n static get captionsToggleKey() {\n return 'captionsMuted';\n }\n}\n","import { ButtonPlugin } from '../base-plugins';\nimport { Button } from '../ui-elements';\n\n/**\n * Requests a hint or help from the game\n * @class HelpPlugin\n * @property {boolean} paused\n * @property {boolean} _helpEnabled\n * @property {boolean} onPause\n * @property {number} helpButtonsLength\n * @extends {ButtonPlugin}\n * @export\n */\nexport class HelpPlugin extends ButtonPlugin {\n /**\n * Creates an instance of HelpPlugin.\n * @param {string | HTMLElement} helpButtons The selector or HTMLElement for the button\n * @memberof HelpPlugin\n */\n constructor(helpButtons) {\n super('Help-Button-Plugin');\n\n this._helpButtons = [];\n\n if (helpButtons instanceof HTMLElement) {\n this._helpButtons[0] = new Button({\n button: helpButtons,\n onClick: this.helpButtonClick.bind(this),\n channel: 'hints' // the check to see if this feature exists is different than most so passing this ensures it'll work the same.\n });\n } else {\n document.querySelectorAll(helpButtons).forEach((button) => {\n this._helpButtons.push(\n new Button({\n button: button,\n onClick: this.helpButtonClick.bind(this),\n channel: 'hints'\n })\n );\n });\n }\n\n this.paused = false;\n this._helpEnabled = false;\n this.onPause = this.onPause.bind(this);\n this.helpButtonsLength = this._helpButtons.length;\n\n if (this.helpButtonsLength <= 0) {\n this.warn('Plugin was not provided any valid button elements');\n }\n }\n /**\n * Called when the game is either paused or resumed\n * @param {object} $event\n * @memberof HelpPlugin\n */\n onPause($event) {\n this.paused = $event.data.paused;\n // Disable the help button when paused if it's active\n if (\n this.paused &&\n this.helpEnabled\n ) {\n for (let i = 0; i < this.helpButtonsLength; i++) {\n this._helpButtons[i].button.setAttribute('data-paused', 'true');\n }\n this.helpEnabled = false;\n } else {\n for (let i = 0; i < this.helpButtonsLength; i++) {\n if (this._helpButtons[i].button.getAttribute('data-paused')) {\n this._helpButtons[i].button.setAttribute('data-paused', '');\n this.helpEnabled = true;\n }\n }\n }\n }\n\n /**\n *\n *\n * @memberof HelpPlugin\n */\n helpButtonClick() {\n if (\n !this.paused &&\n this.helpEnabled\n ) {\n this.client.send('playHelp');\n }\n }\n\n /**\n * @memberof HelpPlugin\n */\n init() {\n // Handle pause\n this.client.on('paused', this.onPause);\n\n // Handle features changed\n this.client.on(\n 'features',\n function(features) {\n this.helpEnabled = features.data.hints;\n for (let i = 0; i < this.helpButtonsLength; i++) {\n this._helpButtons[i].displayButton(features.data);\n }\n }.bind(this)\n );\n\n this.client.on(\n 'helpEnabled',\n function(event) {\n this._helpEnabled = !!event.data;\n }.bind(this)\n );\n }\n\n /**\n * @memberof HelpPlugin\n */\n get helpEnabled() {\n return this._helpEnabled;\n }\n\n /**\n * Fired when the enabled status of the help button changes\n * @function helpEnabled\n * @param {boolean} enabled If the help button is enabled\n * @memberof HelpPlugin\n */\n set helpEnabled(enabled) {\n this._helpEnabled = enabled;\n for (let i = 0; i < this.helpButtonsLength; i++) {\n this._helpButtons[i].button.classList.remove('disabled');\n this._helpButtons[i].button.classList.remove('enabled');\n this._helpButtons[i].button.classList.add(enabled ? 'enabled' : 'disabled');\n }\n\n this.client.trigger('helpEnabled');\n }\n\n /**\n * @readonly\n * @static\n * @memberof HelpPlugin\n * @returns {string}\n */\n static get helpKey() {\n return 'help';\n }\n\n}\n","import { ButtonPlugin } from '../base-plugins';\nimport { PageVisibility } from '../PageVisibility';\nimport { Button } from '../ui-elements';\n/**\n * @class Container\n * @property {object[]} sliders an array of all slider objects attached to PausePlugin\n * @extends ButtonPlugin\n */\nexport class PausePlugin extends ButtonPlugin {\n /**\n * Creates an instance of PausePlugin.\n * @param {string | HTMLElement} pauseButton selector string or HTML Element for the input(s)\n * @param {boolean} manageOwnVisibility whether the plugin should manage container's visibility or some other source will handle it\n * @memberof PausePlugin\n */\n constructor(pauseButton, manageOwnVisibility = true) {\n super('Pause-Button-plugin');\n this._manageOwnVisibility = manageOwnVisibility;\n this._appBlurred = false;\n this._containerBlurred = false;\n this._focusTimer = null;\n this._isManualPause = false;\n this._keepFocus = false;\n this._paused = false;\n this.iframe = null;\n this.focusApp = this.focusApp.bind(this);\n this.manageFocus = this.manageFocus.bind(this);\n this.onKeepFocus = this.onKeepFocus.bind(this);\n this.onFocus = this.onFocus.bind(this);\n const onPauseToggle = this.onPauseToggle.bind(this);\n\n this.pauseDisabled = false;\n this._pauseButton = [];\n\n this.pageVisibility = new PageVisibility(\n this.onContainerFocus.bind(this),\n this.onContainerBlur.bind(this)\n );\n\n this.pageVisibility.enabled = this.manageOwnVisibility;\n\n if (pauseButton instanceof HTMLElement) {\n this._pauseButton[0] = new Button({\n button: pauseButton,\n onClick: onPauseToggle,\n channel: PausePlugin.pauseKey\n });\n } else {\n document.querySelectorAll(pauseButton).forEach((button) => {\n this._pauseButton.push(new Button({\n button: button,\n onClick: onPauseToggle,\n channel: PausePlugin.pauseKey\n }));\n });\n }\n }\n\n /**\n * updates _paused and also sends the pause event to the application\n * @memberof PausePlugin\n * @param {Boolean} paused\n */\n set pause(paused) {\n paused = !!paused;\n\n if (this.pauseDisabled) {\n return;\n }\n this._paused = paused;\n\n this.client.send(PausePlugin.pauseKey, paused);\n this.client.trigger(paused ? 'paused' : 'resumed', { paused });\n\n for (let i = 0, l = this._pauseButton.length; i < l; i++) {\n this._pauseButton[i].button.classList.remove('unpaused');\n this._pauseButton[i].button.classList.remove('paused');\n this._pauseButton[i].button.classList.add(paused ? 'paused' : 'unpaused');\n }\n }\n\n /**\n * @memberof PausePlugin\n * @returns {Boolean}\n */\n get pause() {\n return this._paused;\n }\n\n /**\n * updates _manageOwnVisibility and also re-enables pageVisibility\n * @memberof PausePlugin\n * @param {Boolean} manageOwnVisibility\n */\n set manageOwnVisibility(manageOwnVisibility) {\n this._manageOwnVisibility = manageOwnVisibility;\n\n this.pageVisibility.enabled = this._manageOwnVisibility;\n }\n\n /**\n * @memberof PausePlugin\n * @returns {Boolean}\n */\n get manageOwnVisibility() {\n return this._manageOwnVisibility;\n }\n\n /**\n * forces focus onto the iframe application window\n * @memberof PausePlugin\n */\n focusApp() {\n if (!this.hasDom) {\n // We don't have a dom with a content window, fail quietly\n return;\n }\n\n this.iframe.contentWindow.focus();\n }\n\n /**\n * blurs the application iframe window\n * @memberof PausePlugin\n */\n blurApp() {\n if (!this.hasDom) {\n return;\n }\n this.iframe.contentWindow.blur();\n }\n\n /**\n * Determines what pause state should be sent, if any, on focus or blur events.\n * @method manageFocus\n * @memberof PausePlugin\n */\n manageFocus() {\n if (!this.manageOwnVisibility) {\n return;\n }\n // Unfocus on the iframe\n if (this._keepFocus) {\n this.blurApp();\n }\n\n // we only need one delayed call, at the end of any\n // sequence of rapidly-fired blur/focus events\n if (this._focusTimer) {\n clearTimeout(this._focusTimer);\n }\n\n // Delay setting of 'paused' in case we get another focus event soon.\n // Focus events are sent to the container asynchronously, and this was\n // causing rapid toggling of the pause state and related issues,\n // especially in Internet Explorer\n this._focusTimer = setTimeout(\n function () {\n this._focusTimer = null;\n // A manual pause cannot be overriden by focus events.\n // User must click the resume button.\n if (this._isManualPause) {\n return;\n }\n\n this.pause = Boolean(this._containerBlurred && this._appBlurred);\n\n // Focus on the content window when blurring the app\n // but selecting the container\n if (this._keepFocus && !this._containerBlurred && this._appBlurred) {\n this.focusApp();\n }\n }.bind(this),\n 100\n );\n }\n\n /**\n * Handle the keep focus event for the window\n * @method onKeepFocus\n * @memberof PausePlugin\n * @private\n */\n onKeepFocus($event) {\n this._keepFocus = !!$event.data;\n this.manageFocus();\n }\n\n /**\n * Handle focus events sent from iFrame children\n * @method onFocus\n * @memberof PausePlugin\n * @private\n */\n onFocus($event) {\n this._appBlurred = !$event.data;\n this.manageFocus();\n }\n\n /**\n * Handle focus events sent from container's window\n * @method onContainerFocus\n * @memberof PausePlugin\n * @private\n */\n onContainerFocus() {\n this._containerBlurred = false;\n this.manageFocus();\n }\n\n /**\n * Handle blur events sent from container's window\n * @method onContainerBlur\n * @memberof PausePlugin\n * @private\n */\n onContainerBlur() {\n //Set both container and application to blurred,\n //because some blur events are only happening on the container.\n //If container is blurred because application area was just focused,\n //the application's focus event will override the blur imminently.\n this._containerBlurred = this._appBlurred = true;\n this.manageFocus();\n }\n\n /**\n * @memberof PausePlugin\n */\n onPauseToggle() {\n this._isManualPause = !this._isManualPause;\n this.pause = !this.pause;\n }\n\n /**\n * @param {Container} container\n * @memberof PausePlugin\n */\n init({ iframe }) {\n this.iframe = iframe;\n\n this.client.on(\n 'features',\n function (features) {\n if (features.disablePause) {\n this.pauseDisabled = true;\n }\n\n for (let i = 0, l = this._pauseButton.length; i < l; i++) {\n this._pauseButton[i].displayButton(features.data);\n }\n }.bind(this)\n );\n this.client.on('focus', this.onFocus);\n this.client.on('keepFocus', this.onKeepFocus);\n\n this.pause = this._paused;\n }\n\n /**\n * Function to check if we have a dom with a contentWindow\n * @readonly\n * @returns {boolean}\n * @memberof PausePlugin\n */\n get hasDom() {\n return Boolean(null !== this.iframe && this.iframe.contentWindow);\n }\n\n /**\n * @readonly\n * @memberof PausePlugin\n * @returns {HTMLButtonElement[]}\n */\n get pauseButton() {\n const buttons = [];\n for (let i = 0, l = this._pauseButton.length; i < l; i++) {\n buttons.push(this._pauseButton[i].button);\n }\n return buttons;\n }\n\n /**\n * @readonly\n * @static\n * @memberof PausePlugin\n * @returns {string}\n */\n static get pauseKey() {\n return 'pause';\n }\n}\n","import { SavedData } from '../SavedData';\nimport { ButtonPlugin } from '../base-plugins';\nimport { Slider, Button } from '../ui-elements';\n\n/**\n * @export\n * @class SoundPlugin\n * @extends {ButtonPlugin}\n *\n */\nexport class SoundPlugin extends ButtonPlugin {\n /**\n * Creates an instance of SoundPlugin.\n * @param {string | HTMLElement} [soundButtons] selector string or HTML Element for the input(s)\n * @param {string | HTMLElement} [musicButtons] selector string or HTML Element for the input(s)\n * @param {string | HTMLElement} [voButtons] selector string or HTML Element for the input(s)\n * @param {string | HTMLElement} [sfxButtons] selector string or HTML Element for the input(s)\n * @param {string | HTMLElement} [soundSliders] selector string or HTML Element for the input(s)\n * @param {string | HTMLElement} [musicSliders] selector string or HTML Element for the input(s)\n * @param {string | HTMLElement} [sfxSliders] selector string or HTML Element for the input(s)\n * @param {string | HTMLElement} [voSliders] selector string or HTML Element for the input(s)\n * @memberof SoundPlugin\n */\n constructor({\n soundButtons,\n musicButtons,\n sfxButtons,\n voButtons,\n soundSliders,\n musicSliders,\n sfxSliders,\n voSliders\n } = {}) {\n super('Sound-Button-Plugin');\n const saved = SavedData.read(SoundPlugin.soundMutedKey);\n this.sendAllProperties = this.sendAllProperties.bind(this);\n this._soundMuted = saved ? saved : false;\n this._musicMuted = false;\n this._voMuted = false;\n this._sfxMuted = false;\n\n this._musicMutedByUser = false;\n this._soundMutedByUser = false;\n this._sfxMutedByUser = false;\n this._voMutedByUser = false;\n\n this.soundMutedEnabled = false;\n this.musicMutedEnabled = false;\n this.sfxMutedEnabled = false;\n this.voMutedEnabled = false;\n\n this.soundVolume = 1;\n this.musicVolume = 1;\n this.sfxVolume = 1;\n this.voVolume = 1;\n\n this.soundSliders = [];\n this.musicSliders = [];\n this.sfxSliders = [];\n this.voSliders = [];\n\n this.soundButtons = [];\n this.musicButtons = [];\n this.sfxButtons = [];\n this.voButtons= [];\n\n if (soundSliders instanceof HTMLElement) {\n this.soundSliders[0] = new Slider({\n slider: soundSliders,\n control: SoundPlugin.soundVolumeKey,\n defaultValue: this.soundVolume\n });\n } else {\n document.querySelectorAll(soundSliders).forEach((slider) => {\n const newSlider = new Slider({\n slider: slider,\n control: SoundPlugin.soundVolumeKey,\n defaultValue: this.soundVolume\n });\n if (newSlider.slider) {\n this.soundSliders.push(newSlider);\n }\n });\n }\n if (musicSliders instanceof HTMLElement) {\n this.musicSliders[0] = new Slider({\n slider: musicSliders,\n control: SoundPlugin.musicVolumeKey,\n defaultValue: this.musicVolume\n });\n } else {\n document.querySelectorAll(musicSliders).forEach((slider) => {\n const newSlider = new Slider({\n slider: slider,\n control: SoundPlugin.musicVolumeKey,\n defaultValue: this.musicVolume\n });\n if (newSlider.slider) {\n this.musicSliders.push(newSlider);\n }\n });\n }\n if (sfxSliders instanceof HTMLElement) {\n this.sfxSliders[0] = new Slider({\n slider: sfxSliders,\n control: SoundPlugin.sfxVolumeKey,\n defaultValue: this.sfxVolume\n });\n } else {\n document.querySelectorAll(sfxSliders).forEach((slider) => {\n const newSlider = new Slider({\n slider: slider,\n control: SoundPlugin.sfxVolumeKey,\n defaultValue: this.sfxVolume\n });\n if (newSlider.slider) {\n this.sfxSliders.push(newSlider);\n }\n });\n }\n if (voSliders instanceof HTMLElement) {\n this.voSliders[0] = new Slider({\n slider: voSliders,\n control: SoundPlugin.voVolumeKey,\n defaultValue: this.voVolume\n });\n } else {\n document.querySelectorAll(voSliders).forEach((slider) => {\n const newSlider = new Slider({\n slider: slider,\n control: SoundPlugin.voVolumeKey,\n defaultValue: this.voVolume\n });\n if (newSlider.slider) {\n this.voSliders.push(newSlider);\n }\n });\n }\n\n if ( soundButtons instanceof HTMLElement ) {\n this.soundButtons[0] = new Button({\n button: soundButtons,\n onClick: this.onSoundToggle.bind(this),\n channel: SoundPlugin.soundKey\n });\n } else {\n document.querySelectorAll(soundButtons).forEach((button) => {\n this.soundButtons.push(new Button({\n button: button,\n onClick: this.onSoundToggle.bind(this),\n channel: SoundPlugin.soundKey\n }));\n });\n }\n if ( musicButtons instanceof HTMLElement ) {\n this.musicButtons[0] = new Button({\n button: musicButtons,\n onClick: this.onMusicToggle.bind(this),\n channel: 'music'\n });\n } else {\n document.querySelectorAll(musicButtons).forEach((button) => {\n this.musicButtons.push(new Button({\n button: button,\n onClick: this.onMusicToggle.bind(this),\n channel: 'music'\n }));\n });\n }\n if ( sfxButtons instanceof HTMLElement ) {\n this.sfxButtons[0] = new Button({\n button: sfxButtons,\n onClick: this.onSFXToggle.bind(this),\n channel: 'sfx'\n });\n } else {\n document.querySelectorAll(sfxButtons).forEach((button) => {\n this.sfxButtons.push(new Button({\n button: button,\n onClick: this.onSFXToggle.bind(this),\n channel: 'sfx'\n }));\n });\n }\n if ( voButtons instanceof HTMLElement ) {\n this.voButtons[0] = new Button({\n button: voButtons,\n onClick: this.onVOToggle.bind(this),\n channel: 'vo'\n });\n } else {\n document.querySelectorAll(voButtons).forEach((button) => {\n this.voButtons.push(new Button({\n button: button,\n onClick: this.onVOToggle.bind(this),\n channel: 'vo'\n }));\n });\n }\n\n this.soundSlidersLength = this.soundSliders.length;\n this.musicSlidersLength = this.musicSliders.length;\n this.sfxSlidersLength = this.sfxSliders.length;\n this.voSlidersLength = this.voSliders.length;\n this.soundButtonsLength = this.soundButtons.length;\n this.musicButtonsLength = this.musicButtons.length;\n this.sfxButtonsLength = this.sfxButtons.length;\n this.voButtonsLength = this.voButtons.length;\n\n if (0 >= (this.soundSlidersLength + this.musicSlidersLength + this.sfxSlidersLength + this.voSlidersLength + this.soundButtonsLength + this.musicButtonsLength + this.sfxButtonsLength + this.voButtonsLength)) {\n this.warn('Plugin was not provided any valid HTML Elements');\n return;\n }\n\n for (let i = 0; i < this.soundSlidersLength; i++) {\n this.soundSliders[i].enableSliderEvents(this.onSoundVolumeChange.bind(this));\n }\n for (let i = 0; i < this.musicSlidersLength; i++) {\n this.musicSliders[i].enableSliderEvents(this.onMusicVolumeChange.bind(this));\n }\n for (let i = 0; i < this.sfxSlidersLength; i++) {\n this.sfxSliders[i].enableSliderEvents(this.onSFXVolumeChange.bind(this));\n }\n for (let i = 0; i < this.voSlidersLength; i++) {\n this.voSliders[i].enableSliderEvents(this.onVOVolumeChange.bind(this));\n }\n\n if (this.soundSliders[0] && this.soundSliders[0].slider) {\n this.soundVolume = this.soundSliders[0].value;\n }\n if (this.musicSliders[0] && this.musicSliders[0].slider) {\n this.musicVolume = this.musicSliders[0].value;\n }\n if (this.sfxSliders[0] && this.sfxSliders[0].slider) {\n this.sfxVolume = this.sfxSliders[0].value;\n }\n if (this.voSliders[0] && this.voSliders[0].slider) {\n this.voVolume = this.voSliders[0].value;\n }\n }\n\n /**\n * @memberof SoundPlugin\n * @param {Event} e\n */\n onSoundVolumeChange(e) {\n if (this.soundSlidersLength <= 0) {\n this.soundVolume = e.target.value;\n return;\n }\n this.soundVolume = this.soundSliders[0].sliderRange(\n Number(e.target.value)\n );\n this.soundMuted = !this.soundVolume;\n\n if (!this._musicMutedByUser) {\n this.musicMuted = this.soundMuted;\n }\n if (!this._sfxMutedByUser) {\n this.sfxMuted = this.soundMuted;\n }\n if (!this._voMutedByUser) {\n this.voMuted = this.soundMuted;\n }\n\n this.sendProperty(SoundPlugin.soundVolumeKey, this.soundVolume);\n\n for (let i = 0; i < this.soundSlidersLength; i++) {\n this.soundSliders[i].value = this.soundVolume;\n }\n }\n\n /**\n * @memberof SoundPlugin\n * @param {Event} e\n */\n onMusicVolumeChange(e) {\n if (this.musicSlidersLength <= 0) {\n this.musicVolume = e.target.value;\n return;\n }\n\n this.musicVolume = this.musicSliders[0].sliderRange(\n Number(e.target.value)\n );\n\n this.musicMuted = !this.musicVolume;\n if (!this.musicMuted) { this._musicMutedByUser = false; }\n this._checkSoundMute();\n this.sendProperty(SoundPlugin.musicVolumeKey, this.musicVolume);\n\n for (let i = 0; i < this.musicSlidersLength; i++) {\n this.musicSliders[i].value = this.musicVolume;\n }\n }\n\n /**\n * @memberof SoundPlugin\n * @param {Event} e\n */\n onVOVolumeChange(e) {\n if (this.voSlidersLength <= 0) {\n this.voVolume = e.target.value;\n return;\n }\n this.voVolume = this.voSliders[0].sliderRange(Number(e.target.value));\n if (!this.voMuted) { this._voMutedByUser = false; }\n this.voMuted = !this.voVolume;\n this._checkSoundMute();\n\n this.sendProperty(SoundPlugin.voVolumeKey, this.voVolume);\n for (let i = 0; i < this.voSlidersLength; i++) {\n this.voSliders[i].value = this.voVolume;\n }\n }\n\n /**\n * @memberof SoundPlugin\n * @param {Event} e\n */\n onSFXVolumeChange(e) {\n if (this.sfxSlidersLength <= 0) {\n this.sfxVolume = e.target.value;\n return;\n }\n this.sfxVolume = this.sfxSliders[0].sliderRange(Number(e.target.value));\n if (!this.sfxMuted) { this._sfxMutedByUser = false; }\n this.sfxMuted = !this.sfxVolume;\n this._checkSoundMute();\n\n this.sendProperty(SoundPlugin.sfxVolumeKey, this.sfxVolume);\n\n for (let i = 0; i < this.sfxSlidersLength; i++) {\n this.sfxSliders[i].value = this.sfxVolume;\n }\n }\n\n /**\n * @memberof SoundPlugin\n */\n onSoundToggle() {\n const muted = !this.soundMuted;\n this.soundMuted = muted;\n\n if (!this._musicMutedByUser || muted) {\n this.musicMuted = muted;\n }\n if (!this._sfxMutedByUser || muted) {\n this.sfxMuted = muted;\n }\n if (!this._voMutedByUser || muted) {\n this.voMuted = muted;\n }\n }\n\n /**\n * @memberof SoundPlugin\n */\n onMusicToggle() {\n this.musicMuted = !this.musicMuted;\n this._musicMutedByUser = this.musicMuted;\n this._checkSoundMute();\n }\n\n /**\n * @memberof SoundPlugin\n */\n onVOToggle() {\n this.voMuted = !this.voMuted;\n this._voMutedByUser = this.voMuted;\n this._checkSoundMute();\n }\n\n /**\n * @memberof SoundPlugin\n */\n onSFXToggle() {\n this.sfxMuted = !this.sfxMuted;\n this._sfxMutedByUser = this.sfxMuted;\n this._checkSoundMute();\n }\n\n /**\n * @memberof SoundPlugin\n */\n _checkSoundMute() {\n this.soundMuted = this.sfxMuted && this.voMuted && this.musicMuted;\n }\n\n /**\n * @param {string} key\n * @param {*} value\n * @param {Element} element\n * @memberof SoundPlugin\n */\n setMuteProp(key, value, element, disableSend = false) {\n this['_' + key] = value;\n this._setMuteProp(key, element, value, disableSend);\n }\n\n /**\n * @memberof SoundPlugin\n */\n async preload({ client }) {\n this.client = client;\n this.client.on(\n 'features',\n function(features) {\n if (!features.data) {\n return;\n }\n \n // Confirm that the mute features are supported\n this.soundMutedEnabled = !!features.data.sound;\n this.musicMutedEnabled = !!features.data.music;\n this.sfxMutedEnabled = !!features.data.sfx;\n this.voMutedEnabled = !!features.data.vo;\n \n this.soundVolumeEnabled = !!features.data.soundVolume;\n this.musicVolumeEnabled = !!features.data.musicVolume;\n this.sfxVolumeEnabled = !!features.data.sfxVolume;\n this.voVolumeEnabled = !!features.data.voVolume;\n \n for (let i = 0; i < this.soundButtonsLength; i++) {\n this.soundButtons[i].displayButton(features.data);\n }\n for (let i = 0; i < this.musicButtonsLength; i++) {\n this.musicButtons[i].displayButton(features.data);\n }\n for (let i = 0; i < this.sfxButtonsLength; i++) {\n this.sfxButtons[i].displayButton(features.data);\n }\n for (let i = 0; i < this.voButtonsLength; i++) {\n this.voButtons[i].displayButton(features.data);\n }\n for (let i = 0; i < this.soundSlidersLength; i++) {\n this.soundSliders[i].displaySlider(features.data);\n }\n for (let i = 0; i < this.musicSlidersLength; i++) {\n this.musicSliders[i].displaySlider(features.data);\n }\n for (let i = 0; i < this.sfxSlidersLength; i++) {\n this.sfxSliders[i].displaySlider(features.data);\n }\n for (let i = 0; i < this.voSlidersLength; i++) {\n this.voSliders[i].displaySlider(features.data);\n }\n\n const soundMuted = !!SavedData.read(SoundPlugin.soundMutedKey);\n const musicMuted = !!SavedData.read(SoundPlugin.musicMutedKey);\n const sfxMuted = !!SavedData.read(SoundPlugin.sfxMutedKey);\n const voMuted = !!SavedData.read(SoundPlugin.voMutedKey);\n\n // set the property in case buttons exist but disable the send here\n // properties will be sent in sendAllProperties\n this.setMuteProp('soundMuted', soundMuted, this.soundButtons, true);\n this.setMuteProp('musicMuted', musicMuted, this.musicButtons, true);\n this.setMuteProp('sfxMuted', sfxMuted, this.sfxButtons, true);\n this.setMuteProp('voMuted', voMuted, this.voButtons, true);\n }.bind(this)\n );\n }\n\n /**\n * @memberof SoundPlugin\n */\n start() {\n for (let i = 0; i < this.soundButtonsLength; i++) {\n this.soundButtons[i].enableButton();\n }\n for (let i = 0; i < this.musicButtonsLength; i++) {\n this.musicButtons[i].enableButton();\n }\n for (let i = 0; i < this.sfxButtonsLength; i++) {\n this.sfxButtons[i].enableButton();\n }\n for (let i = 0; i < this.voButtonsLength; i++) {\n this.voButtons[i].enableButton();\n }\n\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * Saves the current state of all volume properties, and then sends them to the game\n * @memberof SoundPlugin\n */\n sendAllProperties() {\n\n if ( this.soundVolumeEnabled && this.soundSlidersLength > 0 ) {\n this.sendProperty(SoundPlugin.soundVolumeKey, this.soundVolume);\n }\n if ( this.musicVolumeEnabled && this.musicSlidersLength > 0 ) {\n this.sendProperty(SoundPlugin.musicVolumeKey, this.musicVolume);\n }\n if ( this.voVolumeEnabled && this.voSlidersLength > 0 ) {\n this.sendProperty(SoundPlugin.voVolumeKey, this.voVolume);\n }\n if ( this.sfxVolumeEnabled && this.sfxSlidersLength > 0 ) {\n this.sendProperty(SoundPlugin.sfxVolumeKey, this.sfxVolume);\n }\n\n // to avoid the mute property overwriting the volume on startup, mutes should only send if they're true\n // or the volume channel isn't enabled\n if ( (this.soundButtonsLength > 0 && this.soundMutedEnabled) && (this.soundMuted || !this.soundVolumeEnabled )) {\n this.sendProperty(SoundPlugin.soundMutedKey, this.soundMuted);\n }\n if ( (this.musicButtonsLength > 0 && this.musicMutedEnabled) && (this.musicMuted || !this.musicVolumeEnabled )) {\n this.sendProperty(SoundPlugin.musicMutedKey, this.musicMuted);\n }\n if ( (this.voButtonsLength > 0 && this.voMutedEnabled) && ( this.voMuted || !this.voVolumeEnabled )) {\n this.sendProperty(SoundPlugin.voMutedKey, this.voMuted);\n }\n if ( (this.sfxButtonsLength > 0 && this.sfxMutedEnabled) && (this.sfxMuted || !this.sfxVolumeEnabled )) {\n this.sendProperty(SoundPlugin.sfxMutedKey, this.sfxMuted);\n }\n }\n\n /**\n * @memberof SoundPlugin\n * @param {boolean} muted\n */\n set soundMuted(muted) {\n if (muted === this.soundMuted) {\n // have to do this to make sure it gets set up properly on start up\n this.setMuteProp('soundMuted', muted, this.soundButtons, true);\n return;\n }\n\n let disableSend = false;\n // if volume is enabled and the channel is becoming unmuted we update everything but only send the volume\n if (this.soundVolumeEnabled && !muted) {\n this.sendProperty(SoundPlugin.soundVolumeKey, this.soundVolume);\n disableSend = true;\n }\n this.setMuteProp('soundMuted', muted, this.soundButtons, disableSend);\n }\n\n /**\n * @memberof SoundPlugin\n */\n get soundMuted() {\n return this._soundMuted;\n }\n\n /**\n * @memberof SoundPlugin\n * @param {boolean} muted\n */\n set voMuted(muted) {\n let disableSend = false;\n if (this.voMuted === muted) {\n // have to do this to make sure it gets set up properly on start up\n this.setMuteProp('voMuted', muted, this.voButtons, true);\n return;\n }\n if ((this.voVolumeEnabled && !muted)) {\n this.sendProperty(SoundPlugin.voVolumeKey, this.voVolume);\n disableSend = true;\n }\n this.setMuteProp('voMuted', muted, this.voButtons, disableSend);\n }\n\n /**\n * @memberof SoundPlugin\n */\n get voMuted() {\n return this._voMuted;\n }\n\n /**\n * @memberof SoundPlugin\n * @param {boolean} muted\n */\n set musicMuted(muted) {\n if (this.musicMuted === muted) {\n // have to do this to make sure it gets set up properly on start up\n this.setMuteProp('musicMuted', muted, this.musicButtons, true);\n return; \n }\n let disableSend = false;\n if (this.musicVolumeEnabled && !muted) {\n this.sendProperty(SoundPlugin.musicVolumeKey, this.musicVolume);\n disableSend = true;\n }\n\n this.setMuteProp('musicMuted', muted, this.musicButtons, disableSend);\n }\n\n /**\n * @memberof SoundPlugin\n */\n get musicMuted() {\n return this._musicMuted;\n }\n\n /**\n * @memberof SoundPlugin\n * @param {boolean} muted\n */\n set sfxMuted(muted) {\n if (this.sfxMuted === muted) {\n // have to do this to make sure it gets set up properly on start up\n this.setMuteProp('sfxMuted', muted, this.sfxButtons, true);\n return;\n }\n let disableSend = false;\n if (this.sfxVolumeEnabled && !muted) {\n this.sendProperty(SoundPlugin.sfxVolumeKey, this.sfxVolume);\n disableSend = true;\n }\n this.setMuteProp('sfxMuted', muted, this.sfxButtons, disableSend);\n }\n\n /**\n * @memberof SoundPlugin\n */\n get sfxMuted() {\n return this._sfxMuted;\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get soundMutedKey() {\n return 'soundMuted';\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get voMutedKey() {\n return 'voMuted';\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get musicMutedKey() {\n return 'musicMuted';\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get sfxMutedKey() {\n return 'sfxMuted';\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get soundVolumeKey() {\n return 'soundVolume';\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get sfxVolumeKey() {\n return 'sfxVolume';\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get voVolumeKey() {\n return 'voVolume';\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get musicVolumeKey() {\n return 'musicVolume';\n }\n\n /**\n * @readonly\n * @memberof SoundPlugin\n */\n get soundButton() {\n return this._soundButton.button;\n }\n\n /**\n * @readonly\n * @memberof SoundPlugin\n */\n get musicButton() {\n return this._musicButton.button;\n }\n /**\n * @readonly\n * @memberof SoundPlugin\n */\n get sfxButton() {\n return this._sfxButton.button;\n }\n /**\n * @readonly\n * @memberof SoundPlugin\n */\n get voButton() {\n return this._voButton.button;\n }\n\n /**\n * @readonly\n * @static\n * @memberof SpeedScalePlugin\n * @return {string}\n */\n static get soundKey() {\n return 'sound';\n }\n}\n","import { SavedData } from './SavedData';\n/**\n * Default user data handler for the {{#crossLink \"springroll.Container\"}}Container{{/crossLink}} to save data using\n * the {{#crossLink \"springroll.SavedData\"}}SavedData{{/crossLink}} class.\n * @class SavedDataHandler\n */\nexport class SavedDataHandler {\n\n /**\n * \n */\n constructor() {\n this.dbName;\n this.savedData;\n }\n \n /**\n * Remove a data setting\n * @method remove\n * @static\n * @param {String} name The name of the property\n * @param {Function} [callback] Callback when remove is complete\n */\n static remove(name, callback) {\n SavedData.remove(name);\n callback();\n }\n\n /**\n * Write a custom setting\n * @method write\n * @static\n * @param {String} name The name of the property\n * @param {*} value The value to set the property to\n * @param {Function} [callback] Callback when write is complete\n */\n static write(name, value, callback) {\n SavedData.write(name, value);\n callback();\n }\n\n /**\n * Read a custom setting\n * @method read\n * @static\n * @param {String} name The name of the property\n * @param {Function} callback Callback when read is complete, returns the value\n */\n static read(name, callback) {\n callback(SavedData.read(name));\n }\n\n // ----------------------------------------------------------------\n // IndexedDB Manipulation \n // ----------------------------------------------------------------\n\n /**\n * Open a connection with the database\n * @param {string} dbName The name of your IndexedDB database\n * @param {string} dbVersion The version number of the database\n * @param {JSON} additions Any additions to the structure of the database\n * @param {array} additions.stores Any stores to be added into the database syntax: \n * {storeName: '[name]', options: {[optionally add options]}}\n * @param {array} additions.indexes Any Indexes to be added to the database syntax: \n * {storeName: '[name]', options: {[optionally add options]}}\n */\n IDBOpen( dbName, dbVersion = null, additions = {}, deletions = {}, callback = null) {\n // persisting the savedData object to keep the connection open\n this.savedData = new SavedData();\n this.savedData.IDBOpen( dbName, dbVersion, additions, deletions, callback);\n }\n\n /**\n * Add a record to a given store\n * @param {string} storeName The name of the store from which the record will be updated\n * @param {string} key the key of the record to be updated \n * @param {*} value The value for the record with the given key to be updated\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBAdd(storeName, record, key, callback) {\n this.savedData.IDBAdd(storeName, record, key, callback);\n }\n \n /**\n * Update a record from a given store\n * @param {string} storeName The name of the store from which the record will be updated\n * @param {string} key the key of the record to be updated \n * @param {*} value The value for the record with the given key to be updated\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBUpdate(storeName, key, value, callback) {\n this.savedData.IDBUpdate(storeName, key, value, callback);\n }\n\n /**\n * Remove a record from a store\n * @param {*} storeName The name of the store from which the record will be removed\n * @param {*} key the key of the record to be removed \n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBRemove(storeName, key, callback) {\n this.savedData.IDBRemove(storeName, key, callback);\n }\n\n /**\n * Return a record from a given store with a given key\n * @param {string} storeName The name of the store to read from\n * @param {string} key The key for the record in the given store \n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBRead(storeName, key, callback) {\n this.savedData.IDBRead(storeName, key, callback);\n }\n\n /**\n * Get all records from a store\n * @param {string} storeName The store to get all records from\n * @param {integer} count Optionally the count of records to return\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBReadAll(storeName, count, callback) {\n this.savedData.IDBReadAll(storeName, count, callback);\n }\n\n /**\n * Get the version of a given database\n * @param {string} dbName The name of the database to return the version of\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBGetVersion(dbName, callback) {\n const sd = new SavedData(dbName);\n\n sd.IDBGetVersion(dbName, callback);\n }\n\n /**\n * Closes the connection to the database\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBClose(callback) {\n this.savedData.IDBClose(callback);\n }\n /**\n * Closes the connection to the database\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBDeleteDB(dbName, options, callback) {\n const sd = new SavedData(dbName);\n sd.IDBDeleteDB(dbName, options, callback);\n }\n\n}\n","import { SavedDataHandler } from '../SavedDataHandler';\nimport { BasePlugin } from '../base-plugins';\n\n/**\n * @export\n * @class UserDataPlugin\n * @extends {BasePlugin}\n * @property {SavedDataHandler} SavedDataHandler The handler to work with the savedData class\n */\nexport class UserDataPlugin extends BasePlugin {\n /**\n * Creates an instance of UserDataPlugin.\n * @memberof UserDataPlugin\n */\n constructor() {\n super('UserData-Plugin');\n this.onUserDataRemove = this.onUserDataRemove.bind(this);\n this.onUserDataRead = this.onUserDataRead.bind(this);\n this.onUserDataWrite = this.onUserDataWrite.bind(this);\n\n this.onIDBAdd = this.onIDBAdd.bind(this);\n this.onIDBOpen = this.onIDBOpen.bind(this);\n this.onIDBRead = this.onIDBRead.bind(this);\n this.onIDBReadAll = this.onIDBReadAll.bind(this);\n this.onIDBRemove = this.onIDBRemove.bind(this);\n this.onIDBUpdate = this.onIDBUpdate.bind(this);\n this.onIDBUpdate = this.onIDBUpdate.bind(this);\n this.onIDBClose = this.onIDBClose.bind(this);\n this.IDBReadAll = this.onIDBReadAll.bind(this);\n this.onIDBGetVersion = this.onIDBGetVersion.bind(this);\n this.onIDBDeleteDB = this.onIDBDeleteDB.bind(this);\n\n this.savedDataHandler = null;\n }\n\n /**\n *\n * @memberof UserDataPlugin\n */\n init() {\n this.client.on('userDataRemove', this.onUserDataRemove);\n this.client.on('userDataRead', this.onUserDataRead);\n this.client.on('userDataWrite', this.onUserDataWrite);\n\n this.client.on('IDBOpen', this.onIDBOpen);\n this.client.on('IDBRead', this.onIDBRead);\n this.client.on('IDBReadAll', this.onIDBReadAll);\n this.client.on('IDBAdd', this.onIDBAdd);\n this.client.on('IDBRemove', this.onIDBRemove);\n this.client.on('IDBUpdate', this.onIDBUpdate);\n this.client.on('IDBClose', this.onIDBClose);\n this.client.on('IDBGetVersion', this.onIDBGetVersion);\n this.client.on('IDBDeleteDB', this.onIDBDeleteDB);\n }\n\n /**\n * Handler for the userDataRemove event\n * @method onUserDataRemove\n * @private\n * @param {string} data The name of the record to be removed\n * @param {string} type The type of listener for bellhop to send to\n */\n onUserDataRemove({ data, type }) {\n SavedDataHandler.remove(data, () => {\n this.client.send(type);\n });\n }\n\n /**\n * Handler for the userDataRead event\n * @method onUserDataRead\n * @private\n * @param {string} data The name of the record to be removed\n * @param {string} type The type of listener for bellhop to send to\n */\n onUserDataRead({ data, type }) {\n SavedDataHandler.read(data, value => this.client.send(type, value));\n }\n\n /**\n * Handler for the userDataWrite event\n * @method onUserDataWrite\n * @private\n * @param {string} type The type of listener for bellhop to send to\n * @param {string} data.name The name for the record. This is what is used to read or remove the record\n * @param {object | string} data.value The data object with the data and value for the record\n */\n onUserDataWrite({type, data: { name, value } }) {\n\n SavedDataHandler.write(name, value, () => this.client.send(type));\n }\n\n // ----------------------------------------------------------------\n // IndexedDB Manipulation\n // ----------------------------------------------------------------\n\n /**\n * Open a connection with the IDB Database and optionally add or delete\n * Indexes and stores\n * @param {string} dbName The name of your IndexedDB database\n * @param {string} [dbVersion] The version number of the database\n * @param {JSON} [additions] Any additions to the structure of the database\n * @param {array} [additions.stores] Any stores to be added into the database syntax:\n * @param {string} [additions.stores.storeName] The name of the store\n * @param {object} [additions.stores.options] Optionally, the option parameter for the createStore method\n * @param {array} [additions.indexes] Any Indexes to be added to the database syntax:\n * @param {string} [additions.indexes.storeName] The name of the store\n * @param {object} [additions.indexes.options] Optionally, the option parameter for the createIndex method\n * @param {string} type The type of listener for bellhop to send to\n */\n onIDBOpen({type, data: {dbName, dbVersion = null, additions = {}, deletions = {} }}) {\n // Keep an instance open to use on open\n this.savedDataHandler = new SavedDataHandler();\n this.savedDataHandler.IDBOpen( dbName, dbVersion, additions, deletions, value => this.client.send(type, value));\n }\n\n /**\n * Add a record to a given store\n * @param {string} type The type of listener for bellhop to send to\n * @param {string} storeName The name of the store from which the record will be updated\n * @param {*} value The value for the record with the given key to be updated\n * @param {string} key the key of the record to be updated\n */\n onIDBAdd({type, data: { storeName, value, key}}) {\n this.savedDataHandler.IDBAdd(storeName, value, key, value => this.client.send(type, value));\n }\n\n /**\n * Update a record from a given store\n * @param {string} type The type of listener for bellhop to send to\n * @param {string} storeName The name of the store with the record to update\n * @param {string} key The key of the record to be updated\n * @param {*} value The record value\n */\n onIDBUpdate({type, data: { storeName, key, value}}) {\n this.savedDataHandler.IDBUpdate(storeName, key, value, value => this.client.send(type, value));\n }\n\n /**\n * Remove a record from a store\n * @param {string} type The type of listener for bellhop to send to\n * @param {string} storeName The name of the store from which the record will be removed\n * @param {*} key the key of the record to be removed\n */\n onIDBRemove({type, data: {storeName, key}}) {\n this.savedDataHandler.IDBRemove(storeName, key, value => this.client.send(type, value));\n }\n\n /**\n * Return a record from a given store with a given key\n * @param {string} storeName The name of the store to read from\n * @param {string} key The key for the record in the given store\n * @param {string} type The type of listener for bellhop to send to\n */\n onIDBRead({type, data: {storeName, key}}) {\n this.savedDataHandler.IDBRead(storeName, key, value => this.client.send(type, value));\n }\n\n /**\n * Get all records from a store\n * @param {string} storeName The store to get all records from\n * @param {integer} count Optionally the number of records to return\n * @param {string} type The type of listener for bellhop to send to\n */\n onIDBReadAll({ type, data: {storeName, count} }) {\n this.savedDataHandler.IDBReadAll(storeName, count, value => this.client.send(type, value));\n }\n\n /**\n * Get the version of a given database\n * @param {string} dbName The name of the database to return the version of\n * @param {string} type The type of listener for bellhop to send to\n */\n onIDBGetVersion({type, data: {dbName}}) {\n // Create a new instance of savedDataHandler to avoid mutating the current instance\n const sdh = new SavedDataHandler();\n sdh.IDBGetVersion(dbName, value => this.client.send(type, value));\n }\n\n /**\n * Close the connection with the database\n * @param {string} type The type of listener for bellhop to send to\n */\n onIDBClose({type}) {\n this.savedDataHandler.IDBClose(value => this.client.send(type, value));\n }\n /**\n * Close the connection with the database\n * @param type - The type of request being sent\n */\n onIDBDeleteDB({type, data: {dbName, options }}) {\n const sdh = new SavedDataHandler();\n\n\n sdh.IDBDeleteDB(dbName, options, value => this.client.send(type, value));\n }\n}","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class PointerSizePlugin\n * @extends {SliderPlugin}\n * @property {object[]} sliders an array of all slider objects attached to PointerSizePlugin\n * @extends SliderPlugin\n */\nexport class PointerSizePlugin extends SliderPlugin {\n /**\n * Creates an instance of PointerSizePlugin.\n * @param {string | HTMLElement} [pointerSliders] selector string or HTML Element for the input(s)\n * @param {number} [defaultPointerSize=0.5] The default value for the pointer size slider\n * @memberof PointerSizePlugin\n */\n constructor(pointerSliders, { defaultPointerSize = 0.5 } = {}) {\n super(pointerSliders, 'UISize-Pointer-Plugin', { defaultValue: defaultPointerSize, featureName: PointerSizePlugin.pointerSizeKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onPointerSizeChange.bind(this));\n }\n\n }\n\n /**\n * @memberof PointerSizePlugin\n * @param {Event} e\n */\n onPointerSizeChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(PointerSizePlugin.pointerSizeKey, this.currentValue);\n }\n\n\n /**\n * @readonly\n * @static\n * @memberof PointerSizePlugin\n * @return {string}\n */\n static get pointerSizeKey() {\n return 'pointerSize';\n }\n}\n","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class ButtonSizePlugin\n * @property {object[]} sliders An array of slider objects given to ButtonSizePlugin\n * @property {number} currentValue The current button size value\n * @extends {SliderPlugin}\n */\nexport class ButtonSizePlugin extends SliderPlugin {\n /**\n * Creates an instance of ButtonSizePlugin.\n * @param {string | HTMLElement} buttonSliders selector string or html element(s) for the inputs\n * @param {object} options\n * @param {number} [options.defaultButtonSize=0.5]\n * @memberof ButtonSizePlugin\n */\n constructor(buttonSliders, { defaultButtonSize = 0.5 } = {}) {\n super(buttonSliders, 'UISize-Button-Plugin', { defaultValue: defaultButtonSize, featureName: ButtonSizePlugin.buttonSizeKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onButtonSizeChange.bind(this));\n }\n }\n\n /**\n * @memberof ButtonSizePlugin\n * @param {Event} e\n */\n onButtonSizeChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(ButtonSizePlugin.buttonSizeKey, this.currentValue);\n }\n\n /**\n * Get ButtonSize Key\n * @readonly\n * @static\n * @memberof ButtonSizePlugin\n * @returns {string}\n */\n static get buttonSizeKey() {\n return 'buttonSize';\n }\n}\n","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class ControlSensitivityPlugin\n * @property {object[]} sliders an array of all slider objects attached to ControlSensitivityPlugin\n * @extends {SliderPlugin}\n */\nexport class ControlSensitivityPlugin extends SliderPlugin {\n /**\n * Creates an instance of ControlSensitivityPlugin.\n * @param {string | HTMLElement} sensitivitySliders\n * @param {number} [defaultSensitivity=0.5]\n * @memberof ControlSensitivityPlugin\n */\n constructor(sensitivitySliders, { defaultSensitivity = 0.5 } = {}) {\n super(sensitivitySliders, 'Control-Sensitivity-Plugin', {defaultValue: defaultSensitivity, featureName: ControlSensitivityPlugin.controlSensitivityKey});\n\n this.sendAllProperties = this.sendAllProperties.bind(this);\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onControlSensitivityChange.bind(this));\n }\n }\n\n /**\n * @memberof ControlSensitivityPlugin\n * @param {Event} e\n */\n onControlSensitivityChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(ControlSensitivityPlugin.controlSensitivityKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof ControlSensitivityPlugin\n * @returns {string}\n */\n static get controlSensitivityKey() {\n return 'controlSensitivity';\n }\n}\n","import { BasePlugin } from '../base-plugins';\nimport { SavedData } from '../SavedData';\n\n/**\n * @export\n * @class KeyboardMapPlugin\n * @extends {BasePlugin}\n */\nexport class KeyboardMapPlugin extends BasePlugin {\n /**\n * Creates an instance of KeyboardMapPlugin.\n * @param {string | HTMLElement} keyContainers div or similar container element that will contain the re-mappable keys\n * @param {string} [customClassName='springrollContainerKeyBinding__button'] A custom class name that will be applied to the container element\n * @memberof KeyboardMapPlugin\n */\n constructor(keyContainers, {customClassName = 'springrollContainerKeyBinding__button'} = {}) {\n super('Keyboard-Map-Plugin');\n\n this.sendAllProperties = this.sendAllProperties.bind(this);\n //Allows for removing and reading event listeners\n this.bindKey = this.bindKey.bind(this);\n this.onKeyButtonClick = this.onKeyButtonClick.bind(this);\n\n this.className = customClassName;\n\n this.keyContainers =\n keyContainers instanceof HTMLElement\n ? [keyContainers]\n : document.querySelectorAll(keyContainers);\n\n this.keyBindings = {};\n this.buttons = [];\n this.activekeyButton;\n\n this.sendAfterFetch = false;\n this.canEmit = false;\n\n this.keyContainersLength = this.keyContainers.length;\n\n if (this.keyContainersLength <= 0) {\n this.warn('plugin was not provided any valid key binding container elements');\n return;\n }\n }\n\n /**\n * @memberof KeyboardMapPlugin\n * @param {MouseEvent} e\n * Sets up a rebinding of a key once a key button is clicked.\n */\n onKeyButtonClick(e) {\n\n for (let i = 0, l = this.buttons.length; i < l; i++) {\n for (let j = 0; j < this.buttons[i].length; j++) {\n this.buttons[i][j].removeEventListener('click', this.onKeyButtonClick);\n }\n }\n this.activekeyButton = e.target;\n this.activekeyButton.textContent = 'Press Key to Map';\n document.addEventListener('keyup', this.bindKey);\n }\n\n /**\n * @memberof KeyboardMapPlugin\n * @param {KeyboardEvent} key\n * Actually updates the key binding and sends the value. Also\n * replicates the new key across the other keycontainers\n */\n bindKey(key) {\n key.preventDefault(); //prevents space bar from retriggering a keybinding when set.\n\n for (const actionName in this.keyBindings) {\n if (this.keyBindings[actionName].currentKey === key.key.toLowerCase()) {\n this.warn(`${key.key} is already bound`);\n return;\n }\n }\n\n this.activekeyButton.textContent = key.key === ' ' ? 'space' : key.key;\n for (let i = 0; i < this.buttons.length; i++) {\n for (let j = 0; j < this.buttons[i].length; j++) {\n if (this.buttons[i][j].value === this.activekeyButton.value) {\n this.buttons[i][j].textContent = this.activekeyButton.textContent;\n }\n }\n }\n\n this.keyBindings[this.activekeyButton.value].currentKey = key.key;\n\n document.removeEventListener('keyup', this.bindKey);\n for (let i = 0, l = this.buttons.length; i < l; i++) {\n for (let j = 0; j < this.buttons[i].length; j++) {\n this.buttons[i][j].addEventListener('click', this.onKeyButtonClick);\n }\n }\n\n this.sendProperty(KeyboardMapPlugin.keyBindingKey, this.keyBindings);\n }\n\n /**\n * @memberof KeyboardMapPlugin\n */\n init() {\n this.client.on(\n 'features',\n function(features) {\n if (!features.data) {\n return;\n }\n\n if (!features.data.keyBinding) {\n return;\n }\n\n const data = SavedData.read(KeyboardMapPlugin.keyBindingKey);\n\n this.client.fetch('keyBindings', result => {\n for (let j = 0; j < this.keyContainersLength; j++) {\n this.buttons[j] = [];\n\n for (let i = 0, l = result.data.length; i < l; i++) {\n let currentKey = result.data[i].defaultKey.toLowerCase();\n if (data) {\n if (data[result.data[i].actionName]) {\n currentKey = data[result.data[i].actionName].currentKey;\n }\n }\n //only needs to be set up once\n if (j === 0) {\n this.keyBindings[result.data[i].actionName] = {\n defaultKey: result.data[i].defaultKey.toLowerCase(),\n currentKey: currentKey,\n };\n }\n\n this.buttons[j][i] = document.createElement('button');\n this.buttons[j][i].classList.add(this.className);\n this.buttons[j][i].id = `keyBoardMapPlugin-${result.data[i].actionName}`;\n this.buttons[j][i].value = result.data[i].actionName;\n this.buttons[j][i].textContent = result.data[i].defaultKey;\n this.buttons[j][i].addEventListener('click', this.onKeyButtonClick);\n\n this.label = document.createElement('label');\n this.label.htmlFor = `keyBoardMapPlugin-${result.data[i].actionName}`;\n this.label.textContent = result.data[i].actionName;\n\n this.keyContainers[j].appendChild(this.label);\n this.keyContainers[j].appendChild(this.buttons[j][i]);\n }\n }\n\n this.canEmit = true;\n if (this.sendAfterFetch) {\n this.sendAllProperties();\n }\n });\n }.bind(this)\n );\n }\n\n /**\n*\n* Sends initial caption properties to the application\n* @memberof KeyboardMapPlugin\n*/\n sendAllProperties() {\n if (this.canEmit) {\n this.sendProperty(KeyboardMapPlugin.keyBindingKey, this.keyBindings);\n } else {\n this.sendAfterFetch = true;\n }\n }\n\n /**\n * @readonly\n * @static\n * @memberof KeyboardMapPlugin\n * @returns {string}\n */\n static get keyBindingKey() {\n return 'keyBinding';\n }\n}\n","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class LayersPlugin\n * @property {object[]} sliders an array of all slider objects attached to LayersPlugin\n * @extends {SliderPlugin}\n */\nexport class LayersPlugin extends SliderPlugin {\n /**\n * Creates an instance of KeyboardMapPlugin.\n * @param {string | HTMLInputElement} layersSliders selector string or HTML Element for the input(s)\n * @param {number} [defaultValue=0] The default value for the slider\n */\n constructor(layersSliders, { defaultValue = 0 } = {}) {\n super(layersSliders, 'Layer-Plugin', { defaultValue: defaultValue, featureName: LayersPlugin.layersSliderKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onLayerValueChange.bind(this));\n }\n }\n\n /**\n * @memberof LayersPlugin\n * @param {Event} e\n */\n onLayerValueChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(LayersPlugin.layersSliderKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof LayersPlugin\n * @returns {string}\n */\n static get layersSliderKey() {\n return 'removableLayers';\n }\n}\n","import { RadioGroupPlugin } from '../base-plugins';\nimport { SavedData } from '../SavedData';\n\nconst SUPPORTED_POSITIONS = ['top', 'bottom', 'left', 'right'];\n\n/**\n * @export\n * @class HUDPlugin\n * @extends {BasePlugin}\n */\nexport class HUDPlugin extends RadioGroupPlugin {\n /**\n * Creates an instance of HUDPlugin\n * @param {string} hudSelectorRadios selector string or for the input(s)\n * @param {string[]} [defaultValue='top'] default value for the HUD position\n * @memberof HUDPlugin\n */\n constructor(hudSelectorRadios, { defaultValue = SUPPORTED_POSITIONS[0] } = {}) {\n super(hudSelectorRadios, 'HUD-Layout-Plugin', {supportedValues: SUPPORTED_POSITIONS, initialValue: defaultValue, controlName: 'Hud Selector', featureName: HUDPlugin.hudPositionKey, radioCount: SUPPORTED_POSITIONS.length});\n\n this.sendAllProperties = this.sendAllProperties.bind(this);\n this.sendAfterFetch = false;\n this.canEmit = false;\n this.positions = [];\n\n if (this.radioGroupsLength <= 0) {\n this.warn('Plugin was not provided any valid HTML elements');\n }\n\n for (let i = 0; i < this.radioGroupsLength; i++) {\n this.radioGroups[i].enableRadioEvents(this.onHUDSelect.bind(this));\n }\n\n }\n\n /**\n * @memberof HUDPlugin\n * @param {Event} e\n */\n onHUDSelect(e) {\n //return if a radio button is programattically clicked when it is hidden\n if (!this.positions.includes(e.target.value)) {\n for (let i = 0; i < this.radioGroupsLength; i++) {\n this.radioGroups[i].radioGroup[this.currentValue].checked = true;\n }\n return;\n }\n\n this.currentValue = e.target.value;\n\n this.sendProperty(\n HUDPlugin.hudPositionKey,\n this.currentValue\n );\n }\n\n /**\n * @memberof HUDPlugin\n */\n init() {\n this.client.on(\n 'features',\n function(features) {\n if (!features.data || !features.data.hudPosition) {\n return;\n }\n\n if (this.radioGroupsLength <= 0) {\n return;\n }\n //get the game's reported HUD positions to build out positions array\n this.client.fetch('hudPositions', result => {\n for (let i = 0, l = result.data.length; i < l; i++) {\n if (\n !SUPPORTED_POSITIONS.includes(result.data[i].toLowerCase())\n ) {\n this.warn(`${result.data[i]} is an invalid position name`);\n continue;\n }\n\n this.positions.push(result.data[i].toLowerCase());\n }\n\n for (let i = 0; i < this.radioGroupsLength; i++) {\n //Hide any radio buttons that aren't in the game's position list.\n for (const key in this.radioGroups[i].radioGroup) {\n this.radioGroups[i].radioGroup[key].style.display = this.positions.includes(this.radioGroups[i].radioGroup[key].value) ? '' : 'none';\n }\n }\n\n this.canEmit = true;\n if (this.sendAfterFetch) {\n this.sendAllProperties();\n }\n });\n\n }.bind(this)\n );\n }\n\n /**\n * @memberof HUDPlugin\n */\n start() {\n const data = SavedData.read(HUDPlugin.hudPositionKey);\n\n if (SUPPORTED_POSITIONS.includes(data)) {\n this.currentValue = data;\n }\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * Sends initial HUD position properties to the application\n * @memberof HUDPlugin\n */\n sendAllProperties() {\n if (this.canEmit) {\n this.sendProperty(HUDPlugin.hudPositionKey, this.currentValue);\n } else {\n this.sendAfterFetch = true;\n }\n }\n\n /**\n * @static\n * @readonly\n * @memberof HUDPlugin\n * @returns {string}\n */\n static get hudPositionKey() {\n return 'hudPosition';\n }\n}\n","import { RadioGroupPlugin } from '../base-plugins';\nimport { SavedData } from '../SavedData';\n\nconst COLOR_BLIND_TYPES = [\n 'none',\n 'protanopia',\n 'deuteranopia',\n 'tritanopia',\n 'achromatopsia'\n];\n\n/**\n * @export\n * @class ColorVisionPlugin\n * @property {boolean} sendAfterFetch Whether to send the properties after fetch or not\n * @property {boolean} canEmit Whether or not the plugin can send properties\n * @property {string} colors \n * @extends {RadioGroupPlugin}\n */\nexport class ColorVisionPlugin extends RadioGroupPlugin {\n /**\n * Creates an instance of ColorVisionPlugin.\n * @param {string | HTMLElement} colorSelects\n * @param {string } [defaultValue] Default selected value\n * @memberof ColorVision\n */\n constructor(colorVisionRadios, { defaultValue = COLOR_BLIND_TYPES[0] } = {}) {\n super(colorVisionRadios, 'Color-Filter-Plugin', {supportedValues: COLOR_BLIND_TYPES, initialValue: defaultValue, controlName: 'Color Vision Selector', featureName: ColorVisionPlugin.colorVisionKey, radioCount: COLOR_BLIND_TYPES.length});\n\n this.sendAllProperties = this.sendAllProperties.bind(this);\n this.sendAfterFetch = false;\n this.canEmit = false;\n this.colors = [];\n\n if (this.radioGroupsLength <= 0) {\n this.warn('Plugin was not provided any valid HTML elements');\n return;\n }\n\n for (let i = 0; i < this.radioGroupsLength; i++) {\n this.radioGroups[i].enableRadioEvents(this.onColorChange.bind(this));\n }\n }\n\n /**\n * @memberof ColorVisionPlugin\n * @param {Event} e\n */\n onColorChange(e) {\n //return if a radio button is programmatically clicked when it is hidden from the user\n if (!this.colors.includes(e.target.value) ) {\n for (let i = 0; i < this.radioGroupsLength; i++) {\n this.radioGroups[i].radioGroup[this.currentValue].checked = true;\n }\n return;\n }\n this.currentValue = e.target.value;\n\n this.sendProperty(\n ColorVisionPlugin.colorVisionKey,\n this.currentValue\n );\n }\n\n /**\n * @memberof ColorVisionPlugin\n */\n init() {\n this.client.on(\n 'features',\n function(features) {\n if (!features.data || !features.data.colorVision) {\n return;\n }\n if (this.colorDropdownsLength <= 0) {\n return;\n }\n\n //get the game's reported colors to build out accepted filters array\n this.client.fetch('colorFilters', result => {\n for (let i = 0, l = result.data.length; i < l; i++) {\n if (\n !COLOR_BLIND_TYPES.includes(result.data[i].toLowerCase())\n ) {\n this.warn(`${result.data[i]} is an invalid color vision name`);\n continue;\n }\n this.colors.push(result.data[i].toLowerCase());\n }\n\n this.defaultValue = this.colors[0];\n\n for (let i = 0; i < this.radioGroupsLength; i++) {\n //Hide any radio buttons that aren't in the game's filter list.\n for (const key in this.radioGroups[i].radioGroup) {\n this.radioGroups[i].radioGroup[key].style.display = this.colors.includes(this.radioGroups[i].radioGroup[key].value.toLowerCase()) ? '' : 'none';\n }\n }\n\n this.canEmit = true;\n\n if (this.sendAfterFetch) {\n this.sendAllProperties();\n }\n });\n\n }.bind(this)\n );\n }\n\n /**\n * @memberof ColorVisionPlugin\n */\n start() {\n const data = SavedData.read(ColorVisionPlugin.colorVisionKey);\n\n if (COLOR_BLIND_TYPES.includes(data)) {\n this.currentValue = data;\n }\n\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n*\n* Sends initial caption properties to the application\n* @memberof ColorVisionPlugin\n*/\n sendAllProperties() {\n if (this.canEmit) {\n this.sendProperty(ColorVisionPlugin.colorVisionKey, this.currentValue);\n } else {\n this.sendAfterFetch = true;\n }\n }\n\n /**\n * Get the ColorVisionPlugin key\n * @readonly\n * @static\n * @memberof ColorVisionPlugin\n * @returns {string}\n */\n static get colorVisionKey() {\n return 'colorVision';\n }\n\n}\n","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class HitAreaScalePlugin\n * @property {object[]} sliders an array of all slider objects attached to ControlSensitivityPlugin\n * @extends {SliderPlugin}\n * \n */\nexport class HitAreaScalePlugin extends SliderPlugin {\n /**\n * Creates an instance of HitAreaScalePlugin.\n * @param {string | HTMLElement} hitAreaScaleSliders The selector or HTMLElement for the slider\n * @param {number} [defaultHitAreaScale=0.5] The default hit area scale value\n * @memberof HitAreaScalePlugin\n */\n constructor(hitAreaScaleSliders, { defaultHitAreaScale = 0.5 } = {}) {\n super(hitAreaScaleSliders, 'Hit-Area-Scale-Plugin', { defaultValue: defaultHitAreaScale, featureName: HitAreaScalePlugin.hitAreaScaleKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onHitAreaScaleChange.bind(this));\n }\n }\n\n /**\n * @memberof HitAreaScalePlugin\n * @param {Event} target\n * @param {string} control\n */\n onHitAreaScaleChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(HitAreaScalePlugin.hitAreaScaleKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof HitAreaScalePlugin\n * @returns {string}\n */\n static get hitAreaScaleKey() {\n return 'hitAreaScale';\n }\n}\n","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class DragThresholdScalePlugin\n * @extends {SliderPlugin}\n */\nexport class DragThresholdScalePlugin extends SliderPlugin {\n /**\n * Creates an instance of DragThresholdScalePlugin.\n * @param {string | HTMLElement} params.dragThresholdScaleSliders\n * @param {number} [defaultDragThresholdScale=0.5]\n * @memberof DragThresholdScalePlugin\n */\n constructor(dragThresholdScaleSliders, { defaultDragThresholdScale = 0.5 } = {}) {\n super(dragThresholdScaleSliders, 'Drag-Threshold-Scale-Plugin', { defaultValue: defaultDragThresholdScale, featureName: DragThresholdScalePlugin.dragThresholdScaleKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onDragThresholdScaleChange.bind(this));\n }\n }\n\n /**\n * @memberof DragThresholdScalePlugin\n * @param {Event} target\n * @param {string} control\n */\n onDragThresholdScaleChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(DragThresholdScalePlugin.dragThresholdScaleKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof DragThresholdScalePlugin\n * @returns {string}\n */\n static get dragThresholdScaleKey() {\n return 'dragThresholdScale';\n }\n}","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class HealthPlugin\n * @extends {SliderPlugin}\n */\nexport class HealthPlugin extends SliderPlugin {\n /**\n * Creates an instance of HealthPlugin.\n * @param {string | HTMLElement} healthSliders\n * @param {number} [defaultHealth=0.5]\n * @memberof HealthPlugin\n */\n constructor(healthSliders, {defaultHealth = 0.5 } = {}) {\n super(healthSliders, 'Health-Scale-Plugin', { defaultValue:defaultHealth, featureName: HealthPlugin.healthKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onHealthChange.bind(this));\n }\n }\n\n /**\n * @memberof HealthPlugin\n * @param {Event} e\n */\n onHealthChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(HealthPlugin.healthKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof HealthPlugin\n * @returns {string}\n */\n static get healthKey() {\n return 'health';\n }\n}","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class ObjectCountPlugin\n * @property {object[]} sliders an array of all slider objects attached to ObjectCountPlugin\n * @extends {SliderPlugin}\n */\nexport class ObjectCountPlugin extends SliderPlugin {\n /**\n * Creates an instance of ObjectCountPlugin.\n * @param {string | HTMLElement} objectCountSliders selector string or HTML Element for the input(s)\n * @param {number} [defaultObjectCount=0.5] The default value for the slider\n * @memberof ObjectCountPlugin\n */\n constructor(objectCountSliders, { defaultObjectCount = 0.5 } = {}) {\n super(objectCountSliders, 'Object-Count-Plugin', { defaultValue: defaultObjectCount, featureName: ObjectCountPlugin.objectCountKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onObjectCountChange.bind(this));\n }\n }\n\n /**\n * @memberof ObjectCountPlugin\n * @param {Event} target\n * @param {string} control\n */\n onObjectCountChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(ObjectCountPlugin.objectCountKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof ObjectCountPlugin\n * @returns {string}\n */\n static get objectCountKey() {\n return 'objectCount';\n }\n}","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class CompletionPercentagePlugin\n * @property {object[]} sliders an array of all slider objects attached to CompletePercentagePlugin\n * @extends {SliderPlugin}\n */\nexport class CompletionPercentagePlugin extends SliderPlugin {\n /**\n * Creates an instance of CompletionPercentagePlugin.\n * @param {string | HTMLElement} completionPercentageSliders The selector or HTMLSliderElement of the slider\n * @param {number} [defaultCompletionPercentage=0.5] Default selected completion percentage\n * @memberof CompletionPercentagePlugin\n */\n constructor(completionPercentageSliders, { defaultCompletionPercentage = 0.5 } = {}) {\n super(completionPercentageSliders, 'Completion-Percentage-Plugin', { defaultValue: defaultCompletionPercentage, featureName: CompletionPercentagePlugin.completionPercentageKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onCompletionPercentageChange.bind(this));\n }\n }\n\n /**\n * @memberof CompletionPercentagePlugin\n * @param {Event} e\n */\n onCompletionPercentageChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(CompletionPercentagePlugin.completionPercentageKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof CompletionPercentagePlugin\n * @returns {string}\n */\n static get completionPercentageKey() {\n return 'completionPercentage';\n }\n}","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class SpeedScalePlugin\n * @extends {SliderPlugin}\n */\nexport class SpeedScalePlugin extends SliderPlugin {\n /**\n *Creates an instance of SpeedScalePlugin.\n * @param {string | HTMLElement} speedScaleSliders selector string or HTML Element for the input(s)\n * @param {number} [defaultSpeedScale=0.5] The default value for the speed scale slider\n * @memberof SpeedScalePlugin\n */\n constructor(speedScaleSliders, { defaultSpeedScale = 0.5 } = {}) {\n super(speedScaleSliders, 'Speed-Scale-Plugin', { defaultValue: defaultSpeedScale, featureName: SpeedScalePlugin.speedScaleKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onSpeedScaleChange.bind(this));\n }\n }\n\n /**\n * @memberof SpeedScalePlugin\n * @param {Event} e\n */\n onSpeedScaleChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(SpeedScalePlugin.speedScaleKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof SpeedScalePlugin\n * @return {string}\n */\n static get speedScaleKey() {\n return 'speedScale';\n }\n}","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class TimersScalePlugin\n * @property {number} currentValue\n * @extends {SliderPlugin}\n */\nexport class TimersScalePlugin extends SliderPlugin {\n /**\n * Creates an instance of TimersScalePlugin.\n * @param {string | HTMLElement} timersScaleSliders selector string or HTML Element for the input(s)\n * @param {number} [defaultTimersScale=0.5] Default Value for the timer scale slider\n * @memberof TimersScalePlugin\n */\n constructor(timersScaleSliders, { defaultTimersScale = 0.5 } = {}) {\n super(timersScaleSliders, 'Timers-Scale-Plugin', { defaultValue: defaultTimersScale, featureName: TimersScalePlugin.timersScaleKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onTimersScaleChange.bind(this));\n }\n }\n\n /**\n * @memberof TimersScalePlugin\n * @param {Event} e\n */\n onTimersScaleChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(TimersScalePlugin.timersScaleKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof TimersScalePlugin\n * @return {string}\n */\n static get timersScaleKey() {\n return 'timersScale';\n }\n}","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class InputCountPlugin\n * @property {object[]} sliders an array of all slider objects attached to InputCountPlugin\n * @extends {SliderPlugin}\n */\nexport class InputCountPlugin extends SliderPlugin {\n /**\n * Creates an instance of InputCountPlugin.\n * @param {string | HTMLElement} inputCountSliders selector string or HTML Element for the input(s)\n * @param {number} [defaultInputCount=0.5] The default value for the slider\n * @memberof InputCountPlugin\n */\n constructor(inputCountSliders, { defaultInputCount = 0.5 } = {}) {\n super(inputCountSliders, 'Input-Count-Plugin', { defaultValue: defaultInputCount, featureName: InputCountPlugin.inputCountKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onInputCountChange.bind(this));\n }\n }\n\n /**\n * @memberof InputCountPlugin\n * @param {Event} target\n * @param {string} control\n */\n onInputCountChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(InputCountPlugin.inputCountKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof InputCountPlugin\n * @returns {string}\n */\n static get inputCountKey() {\n return 'inputCount';\n }\n}","import { ButtonPlugin } from '../base-plugins/ButtonPlugin';\nimport { Button } from '../ui-elements';\n\n/**\n * A Springroll plugin to easily set up togglable fullscreen\n */\nexport class FullScreenPlugin extends ButtonPlugin {\n \n /**\n * Creates an instance of FullscreenPlugin\n * \n * @param {string | string[]} buttonSelector The selector for the element to be made fullscreen\n */\n constructor(buttonSelector) {\n super({\n name: FullScreenPlugin.fullscreenKey\n }); \n\n this._toggleButtons = [];\n this.iFrame = null;\n\n this.sendAllProperties = this.sendAllProperties.bind(this);\n\n if (Array.isArray(buttonSelector)) {\n // If input is an array, join the selectors into one string\n buttonSelector = buttonSelector.join(', ');\n }\n\n console.log(buttonSelector);\n \n this.toggleButton = document.querySelectorAll(buttonSelector);\n\n\n this.toggleButton.forEach((button) => {\n this._toggleButtons.push(new Button({\n button: button,\n onClick: this.toggleFullScreen.bind(this),\n channel: FullScreenPlugin.fullscreenKey\n }));\n });\n \n\n document.addEventListener('fullscreenchange', () => {\n this.sendAllProperties();\n \n this._toggleButtons.forEach((button) => {\n button.button.classList.toggle('--fullScreen');\n });\n\n });\n }\n\n /**\n * @memberof FullScreenPlugin\n */\n init({ iframe }) {\n this.iFrame = iframe;\n // Handle the features request\n this.client.on(\n 'features',\n function($event) {\n for (let i = 0; i < this.fullscreenElement; i ++) {\n this._toggleButtons[i].displayButton($event.data);\n }\n\n }.bind(this)\n );\n }\n /**\n * @memberof FullScreenPlugin\n */\n start() {\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * Sends initial fullScreen properties to the application\n * @memberof FullScreenTogglePlugin\n */\n sendAllProperties() {\n this.sendProperty(FullScreenPlugin.fullscreenKey, document.fullscreenElement != null ? 'true' : 'false');\n }\n\n /**\n * Toggles fullscreen on this.iFrame. Must be from a user generated event\n */\n toggleFullScreen() {\n if (!document.fullscreenElement) {\n this.iFrame.requestFullscreen().then(() => {\n this.sendAllProperties();\n }).catch((err) => {\n console.log(err);\n });\n } else {\n document.exitFullscreen();\n this.sendAllProperties();\n }\n }\n\n /**\n * Returns true if there is a fullscreen element and false if not\n * @returns { boolean } \n */\n get isFullScreen() {\n return (document.fullscreenElement || // basic\n document.webkitIsFullscreen || //Webkit browsers\n document.mozFullScreen ) // Firefox\n != true; // Ensure boolean output\n }\n\n /** \n * @readonly\n * @static\n * @memberof FullscreenPlugin\n */\n static get fullscreenKey() {\n return 'fullScreen';\n }\n}"],"names":["global","globalThis","self","support","Symbol","Blob","e","viewClasses","isArrayBufferView","ArrayBuffer","isView","obj","indexOf","Object","prototype","toString","call","normalizeName","name","String","test","TypeError","toLowerCase","normalizeValue","value","iteratorFor","items","iterator","next","shift","done","undefined","Headers","headers","this","map","forEach","append","Array","isArray","header","getOwnPropertyNames","consumed","body","bodyUsed","Promise","reject","fileReaderReady","reader","resolve","onload","result","onerror","error","readBlobAsArrayBuffer","blob","FileReader","promise","readAsArrayBuffer","bufferClone","buf","slice","view","Uint8Array","byteLength","set","buffer","Body","_initBody","_bodyInit","_bodyText","isPrototypeOf","_bodyBlob","FormData","_bodyFormData","URLSearchParams","DataView","_bodyArrayBuffer","get","type","rejected","Error","arrayBuffer","isConsumed","byteOffset","then","text","readAsText","readBlobAsText","chars","length","i","fromCharCode","join","readArrayBufferAsText","formData","decode","json","JSON","parse","oldValue","has","hasOwnProperty","callback","thisArg","keys","push","values","entries","methods","Request","input","options","url","credentials","method","mode","signal","upcased","toUpperCase","normalizeMethod","referrer","cache","reParamSearch","replace","Date","getTime","form","trim","split","bytes","decodeURIComponent","Response","bodyInit","status","ok","statusText","clone","response","redirectStatuses","redirect","RangeError","location","DOMException","err","message","stack","create","constructor","fetch","init","request","aborted","xhr","XMLHttpRequest","abortXhr","abort","rawHeaders","getAllResponseHeaders","substr","line","parts","key","responseURL","responseText","setTimeout","ontimeout","onabort","open","href","fixUrl","withCredentials","responseType","setRequestHeader","addEventListener","onreadystatechange","readyState","removeEventListener","send","polyfill","check","it","Math","window","Function","domIterables","CSSRuleList","CSSStyleDeclaration","CSSValueList","ClientRectList","DOMRectList","DOMStringList","DOMTokenList","DataTransferItemList","FileList","HTMLAllCollection","HTMLCollection","HTMLFormElement","HTMLSelectElement","MediaList","MimeTypeArray","NamedNodeMap","NodeList","PaintRequestList","Plugin","PluginArray","SVGLengthList","SVGNumberList","SVGPathSegList","SVGPointList","SVGStringList","SVGTransformList","SourceBufferList","StyleSheetList","TextTrackCueList","TextTrackList","TouchList","documentAll","document","all","documentAll_1","IS_HTMLDDA","require$$0","isCallable","argument","require$$1","isObject","EXISTS","createElement","documentCreateElement","classList","DOMTokenListPrototype","domTokenListPrototype","fails","exec","functionBindNative","bind","NATIVE_BIND","FunctionPrototype","uncurryThisWithBind","functionUncurryThis","fn","apply","arguments","uncurryThis","stringSlice","classofRaw","functionUncurryThisClause","$String","tryToString","$TypeError","aCallable","require$$2","functionBindContext","that","classof","$Object","indexedObject","propertyIsEnumerable","isNullOrUndefined","requireObjectCoercible","toObject","ceil","floor","mathTrunc","trunc","x","n","toIntegerOrInfinity","number","min","toLength","lengthOfArrayLike","defineProperty","defineGlobalProperty","configurable","writable","SHARED","sharedStore","store","sharedModule","version","copyright","license","source","match","hasOwnProperty_1","hasOwn","id","postfix","random","uid","engineUserAgent","navigator","userAgent","process","Deno","versions","v8","engineV8Version","V8_VERSION","symbolConstructorDetection","getOwnPropertySymbols","symbol","sham","useSymbolAsUid","shared","require$$3","NATIVE_SYMBOL","require$$4","USE_SYMBOL_AS_UID","require$$5","WellKnownSymbolsStore","createWellKnownSymbol","withoutSetter","wellKnownSymbol","toStringTagSupport","TO_STRING_TAG_SUPPORT","TO_STRING_TAG","CORRECT_ARGUMENTS","O","tag","tryGet","callee","getBuiltIn","namespace","functionToString","inspectSource","noop","empty","construct","constructorRegExp","INCORRECT_TO_STRING","isConstructorModern","isConstructorLegacy","isConstructor","called","SPECIES","$Array","arraySpeciesConstructor","originalArray","C","arraySpeciesCreate","IndexedObject","createMethod","TYPE","IS_MAP","IS_FILTER","IS_SOME","IS_EVERY","IS_FIND_INDEX","IS_FILTER_REJECT","NO_HOLES","$this","callbackfn","specificCreate","boundFunction","index","target","arrayIteration","filter","some","every","find","findIndex","filterReject","arrayMethodIsStrict","METHOD_NAME","$forEach","arrayForEach","descriptors","ie8DomDefine","a","v8PrototypeDefineBug","anObject","functionCall","objectIsPrototypeOf","isSymbol","$Symbol","getMethod","V","P","func","ordinaryToPrimitive","pref","val","valueOf","TO_PRIMITIVE","toPrimitive","exoticToPrim","toPropertyKey","DESCRIPTORS","IE8_DOM_DEFINE","V8_PROTOTYPE_DEFINE_BUG","$defineProperty","$getOwnPropertyDescriptor","getOwnPropertyDescriptor","ENUMERABLE","CONFIGURABLE","WRITABLE","objectDefineProperty","f","Attributes","current","enumerable","createPropertyDescriptor","bitmap","definePropertyModule","createNonEnumerableProperty","object","DOMIterables","handlePrototype","CollectionPrototype","COLLECTION_NAME","handlePrototype$1","toIndexedObject","max","toAbsoluteIndex","integer","IS_INCLUDES","el","fromIndex","arrayIncludes","includes","hiddenKeys","objectKeysInternal","names","enumBugKeys","internalObjectKeys","objectKeys","objectDefineProperties","defineProperties","Properties","props","activeXDocument","html","sharedKey","definePropertiesModule","PROTOTYPE","SCRIPT","IE_PROTO","require$$6","EmptyConstructor","scriptTag","content","LT","NullProtoObjectViaActiveX","write","close","temp","parentWindow","NullProtoObject","ActiveXObject","iframeDocument","iframe","JS","domain","style","display","appendChild","src","contentWindow","F","objectCreate","UNSCOPABLES","ArrayPrototype","addToUnscopables","iterators","WeakMap","NATIVE_WEAK_MAP","require$$7","OBJECT_ALREADY_INITIALIZED","state","metadata","facade","STATE","internalState","enforce","getterFor","$propertyIsEnumerable","NASHORN_BUG","objectPropertyIsEnumerable","descriptor","propertyIsEnumerableModule","objectGetOwnPropertyDescriptor","getDescriptor","functionName","PROPER","CONFIGURABLE_FUNCTION_NAME","enforceInternalState","getInternalState","CONFIGURABLE_LENGTH","TEMPLATE","makeBuiltIn","makeBuiltInModule","exports","getter","setter","arity","defineBuiltIn","simple","unsafe","nonConfigurable","nonWritable","concat","objectGetOwnPropertyNames","objectGetOwnPropertySymbols","IteratorPrototype","PrototypeOfArrayIteratorPrototype","arrayIterator","getOwnPropertyNamesModule","getOwnPropertySymbolsModule","ownKeys","getOwnPropertyDescriptorModule","replacement","isForced","feature","detection","data","normalize","POLYFILL","NATIVE","string","isForced_1","copyConstructorProperties","exceptions","_export","targetProperty","sourceProperty","TARGET","GLOBAL","STATIC","stat","dontCallGetSet","forced","correctPrototypeGetter","getPrototypeOf","CORRECT_PROTOTYPE_GETTER","ObjectPrototype","objectGetPrototypeOf","ITERATOR","BUGGY_SAFARI_ITERATORS","NEW_ITERATOR_PROTOTYPE","iteratorsCore","setToStringTag","TAG","Iterators","returnThis","uncurryThisAccessor","aPossiblePrototype","objectSetPrototypeOf","setPrototypeOf","CORRECT_SETTER","proto","__proto__","$","createIteratorConstructor","IteratorConstructor","NAME","ENUMERABLE_NEXT","require$$8","require$$9","require$$10","require$$12","PROPER_FUNCTION_NAME","require$$13","require$$11","KEYS","VALUES","ENTRIES","iteratorDefine","Iterable","DEFAULT","IS_SET","FORCED","CurrentIteratorPrototype","KEY","getIterationMethod","KIND","defaultIterator","IterablePrototype","INCORRECT_VALUES_NAME","nativeIterator","anyNativeIterator","createIterResultObject","InternalStateModule","defineIterator","ARRAY_ITERATOR","setInternalState","es_array_iterator","iterated","kind","Arguments","addToUnscopables$2","ArrayIteratorMethods","ArrayValues","path","$indexOf","nativeIndexOf","NEGATIVE_ZERO","searchElement","createProperty","propertyKey","arrayMethodHasSpeciesSupport","array","foo","Boolean","doesNotExceedSafeInteger","IS_CONCAT_SPREADABLE","IS_CONCAT_SPREADABLE_SUPPORT","isConcatSpreadable","spreadable","arg","k","len","E","A","$assign","assign","objectAssign","b","B","alphabet","chr","T","argumentsLength","S","j","$location","defer","channel","port","engineIsNode","defineBuiltInAccessor","setSpecies","CONSTRUCTOR_NAME","Constructor","anInstance","Prototype","aConstructor","functionApply","Reflect","arraySlice","engineIsIos","validateArgumentsLength","passed","required","IS_IOS","IS_NODE","setImmediate","clear","clearImmediate","Dispatch","MessageChannel","counter","queue","ONREADYSTATECHANGE","run","runner","eventListener","event","globalPostMessageDefer","postMessage","protocol","host","handler","args","nextTick","now","port2","port1","onmessage","importScripts","removeChild","task","Queue","head","tail","Queue$2","add","item","entry","notify","toggle","node","engineIsIosPebble","Pebble","engineIsWebosWebkit","macrotask","IS_IOS_PEBBLE","IS_WEBOS_WEBKIT","MutationObserver","WebKitMutationObserver","queueMicrotaskDescriptor","microtask","flush","parent","exit","enter","createTextNode","observe","characterData","microtask_1","perform","promiseNativeConstructor","engineIsDeno","engineIsBrowser","NativePromiseConstructor","IS_BROWSER","IS_DENO","NativePromiseConstructor$3","SUBCLASSING","NATIVE_PROMISE_REJECTION_EVENT","PromiseRejectionEvent","FORCED_PROMISE_CONSTRUCTOR","PROMISE_CONSTRUCTOR_SOURCE","GLOBAL_CORE_JS_PROMISE","FakePromise","promiseConstructorDetection","CONSTRUCTOR","REJECTION_EVENT","PromiseCapability","$$resolve","$$reject","newPromiseCapability","Internal","OwnPromiseCapability","nativeThen","speciesConstructor","defaultConstructor","require$$14","require$$15","hostReportErrors","console","require$$17","require$$18","require$$19","require$$20","newPromiseCapabilityModule","require$$22","PROMISE","require$$21","NATIVE_PROMISE_SUBCLASSING","getInternalPromiseState","NativePromisePrototype","PromiseConstructor","PromisePrototype","newGenericPromiseCapability","DISPATCH_EVENT","createEvent","dispatchEvent","UNHANDLED_REJECTION","isThenable","callReaction","reaction","exited","fail","rejection","onHandleUnhandled","isReject","notified","reactions","onUnhandled","reason","initEvent","isUnhandled","emit","unwrap","internalReject","internalResolve","wrapper","executor","onFulfilled","onRejected","PromiseWrapper","wrap","setSpecies$1","getIteratorMethod","isArrayIteratorMethod","getIterator","usingIterator","iteratorMethod","iteratorClose","innerResult","innerError","Result","stopped","ResultPrototype","iterate","iterable","unboundFunction","iterFn","step","AS_ENTRIES","IS_RECORD","IS_ITERATOR","INTERRUPTED","stop","condition","callFn","SAFE_CLOSING","iteratorWithReturn","return","from","checkCorrectnessOfIteration","SKIP_CLOSING","ITERATION_SUPPORT","promiseStaticsIncorrectIteration","capability","$promiseResolve","remaining","alreadyCalled","real","catch","race","r","promiseResolve","promiseCapability","re1","re2","regexpFlags","hasIndices","ignoreCase","multiline","dotAll","unicode","unicodeSets","sticky","$RegExp","RegExp","UNSUPPORTED_Y","re","lastIndex","MISSED_STICKY","regexpStickyHelpers","BROKEN_CARET","regexpUnsupportedDotAll","flags","regexpUnsupportedNcg","groups","stickyHelpers","UNSUPPORTED_DOT_ALL","UNSUPPORTED_NCG","nativeReplace","nativeExec","patchedExec","charAt","UPDATES_LAST_INDEX_WRONG","NPCG_INCLUDED","reCopy","group","str","raw","charsAdded","strCopy","Features","_classCallCheck","_createClass","canvas","getContext","Worker","msPointerEnabled","msMaxTouchPoints","pointerEnabled","maxTouchPoints","webaudio","htmlAudio","capabilities","basic","features","ui","sizes","touch","size","screen","width","height","xsmall","small","medium","large","xlarge","webgl","webAudio","charCodeAt","CONVERT_TO_STRING","pos","first","second","position","codeAt","STRING_ITERATOR","point","$filter","$find","FIND","SKIPS_HOLES","addToUnscopables$1","t","PluginManager","_ref","_ref$plugins","plugins","client","Bellhop","preloading","hidden","receive","hiddenSend","_this","preloads","_loop","preload","preloadFailed","warn","l","plugin","trigger","start","Container","_PluginManager","_inherits","_openRemote","_super","_createSuper","iframeOrSelector","_ref$context","context","HTMLIFrameElement","querySelector","backgroundColor","loaded","loading","release","_context","onLoading","_assertThisInitialized","onLoadDone","onEndGame","onLocalError","initClient","setupPlugins","remove","reset","$event","setAttribute","on","connect","userPath","_this2","_ref2","_ref2$singlePlay","singlePlay","_ref2$playOptions","playOptions","_internalOpen","playOptionsQueryString","encodeURIComponent","stringify","respond","_typeof","_asyncToGenerator","_regeneratorRuntime","mark","_callee","api","_ref3","_ref3$query","query","_ref3$singlePlay","_ref3$playOptions","_args","prev","sent","success","_x","newContext","PageVisibility","onFocus","onBlur","_onFocus","_onBlur","enabled","_enabled","onToggle","enable","$includes","whitespaces","ltrim","rtrim","stringTrim","end","$trim","forcedStringTrimMethod","regExpFlags","RegExpPrototype","$toString","getRegExpFlags","R","TO_STRING","nativeToString","NOT_GENERIC","INCORRECT_NAME","SavedData","dbName","db","dbVersion","additions","deletions","indexedDB","onsuccess","onupgradeneeded","stores","createObjectStore","storeName","indexes","transaction","objectStore","createIndex","indexName","keyPath","deleteIndex","deleteObjectStore","deleteDatabase","IDBOpen","tx","oncomplete","updateRequest","put","delete","_this3","readRequest","_this4","count","getAllKeys","getAll","dBOpenRequest","localStorage","removeItem","sessionStorage","setItem","getItem","BasePlugin","_preload","sendAllProperties","_","prop","disableSend","warningText","ButtonPlugin","_BasePlugin","sendMutes","container","button","HTMLButtonElement","muted","log","changeMutedState","sendProperty","htmlButton","HTMLElement","MATCH","isRegExp","notARegExp","correctIsRegExpLogic","regexp","error1","error2","stringIndexOf","searchString","$getOwnPropertyNames","fin","windowNames","objectGetOwnPropertyNamesExternal","getWindowNames","arrayBufferNonExtensible","isExtensible","ARRAY_BUFFER_NON_EXTENSIBLE","$isExtensible","objectIsExtensible","freezing","preventExtensions","getOwnPropertyNamesExternalModule","FREEZING","REQUIRED","METADATA","setMetadata","objectID","weakData","meta","internalMetadataModule","splice","fastKey","getWeakData","onFreeze","inheritIfRequired","dummy","Wrapper","NewTarget","NewTargetPrototype","InternalMetadataModule","defineBuiltIns","internalStateGetterFor","collectionStrong","getConstructor","ADDER","last","define","previous","getEntry","removed","setStrong","ITERATOR_NAME","getInternalCollectionState","getInternalIteratorState","common","IS_WEAK","NativeConstructor","NativePrototype","exported","fixMethod","uncurriedNativeMethod","instance","HASNT_CHAINING","THROWS_ON_PRIMITIVES","ACCEPT_ITERABLES","BUGGY_ZERO","$instance","collection","nativeKeys","$map","TO_ENTRIES","$values","RadioGroup","selector","controlName","_ref$featureName","featureName","defaultValue","pluginName","radioElements","querySelectorAll","radioGroup","_possibleConstructorReturn","radio","checked","valuesArray","_toConsumableArray","Set","callBack","RadioGroupPlugin","cssSelector","supportedValues","initialValue","radioCount","selectors","_currentValue","radioGroups","setUpRadios","radioGroupsLength","hasOnly","hasDuplicateValues","property","newValue","thisNumberValue","require$$16","NUMBER","NativeNumber","NumberPrototype","toNumber","third","radix","maxCode","digits","code","NaN","parseInt","NumberWrapper","primValue","toNumeric","Number","Slider","slider","control","_ref$min","_ref$max","_ref$step","_ref$defaultValue","sliderValue","setUpSlider","read","Button","onClick","className","SliderPlugin","_ref$minValue","minValue","_ref$maxValue","maxValue","sliders","setUpSliders","slidersLength","displaySlider","currentValue","sliderRange","DEFAULT_CAPTIONS_STYLES","background","color","edge","font","align","DEFAULT_COLOR_STYLE","INVERTED_COLOR_STYLE","FONT_SIZE_VALUES","COLOR_VALUES","ALIGN_VALUES","CaptionsStylePlugin","_ButtonPlugin","fontSizeRadios","colorRadios","alignmentRadios","_ref$defaultFontSize","defaultFontSize","_ref$defaultColor","defaultColor","_ref$defaultAlignment","defaultAlignment","captionsStyles","captionStyleKey","fontSizeSelectors","colorSelectors","alignmentSelectors","setUpFontSizeRadios","setUpColorRadios","setUpAlignmentRadios","_captionsMuted","alignmentRadiosLength","fontSizeRadiosLength","colorRadiosLength","enableRadioEvents","onColorChange","onAlignmentChange","onFontSizeChange","_step","_iterator","_createForOfIteratorHelper","radios","s","displayRadios","setCaptionsStyles","styles","_step2","_iterator2","resetState","_this5","CaptionsTogglePlugin","captionsButtons","_captionsButtons","captionsButtonClick","captionsButtonLength","displayButton","captionsToggleKey","captionsMuted","setMuteProp","captionsButtonsLength","enableButton","_setMuteProp","HelpPlugin","helpButtons","_helpButtons","helpButtonClick","paused","_helpEnabled","onPause","helpButtonsLength","helpEnabled","getAttribute","hints","PausePlugin","pauseButton","manageOwnVisibility","_manageOwnVisibility","_appBlurred","_containerBlurred","_focusTimer","_isManualPause","_keepFocus","_paused","focusApp","manageFocus","onKeepFocus","onPauseToggle","pauseDisabled","_pauseButton","pageVisibility","onContainerFocus","onContainerBlur","pauseKey","hasDom","focus","blur","blurApp","clearTimeout","pause","disablePause","buttons","SoundPlugin","soundButtons","musicButtons","sfxButtons","voButtons","soundSliders","musicSliders","sfxSliders","voSliders","saved","soundMutedKey","_soundMuted","_musicMuted","_voMuted","_sfxMuted","_musicMutedByUser","_soundMutedByUser","_sfxMutedByUser","_voMutedByUser","soundMutedEnabled","musicMutedEnabled","sfxMutedEnabled","voMutedEnabled","soundVolume","musicVolume","sfxVolume","voVolume","soundVolumeKey","newSlider","musicVolumeKey","sfxVolumeKey","voVolumeKey","onSoundToggle","soundKey","onMusicToggle","onSFXToggle","onVOToggle","soundSlidersLength","musicSlidersLength","sfxSlidersLength","voSlidersLength","soundButtonsLength","musicButtonsLength","sfxButtonsLength","voButtonsLength","enableSliderEvents","onSoundVolumeChange","onMusicVolumeChange","onSFXVolumeChange","onVOVolumeChange","soundMuted","musicMuted","sfxMuted","voMuted","_checkSoundMute","element","sound","music","sfx","vo","soundVolumeEnabled","musicVolumeEnabled","sfxVolumeEnabled","voVolumeEnabled","musicMutedKey","sfxMutedKey","voMutedKey","_soundButton","_musicButton","_sfxButton","_voButton","SavedDataHandler","savedData","record","IDBAdd","IDBUpdate","IDBRemove","IDBRead","IDBReadAll","IDBGetVersion","IDBClose","IDBDeleteDB","UserDataPlugin","onUserDataRemove","onUserDataRead","onUserDataWrite","onIDBAdd","onIDBOpen","onIDBRead","onIDBReadAll","onIDBRemove","onIDBUpdate","onIDBClose","onIDBGetVersion","onIDBDeleteDB","savedDataHandler","_ref3$data","_ref4","_ref4$data","_ref4$data$dbVersion","_ref4$data$additions","_ref4$data$deletions","_ref5","_this6","_ref5$data","_ref6","_this7","_ref6$data","_ref7","_this8","_ref7$data","_ref8","_this9","_ref8$data","_ref9","_this10","_ref9$data","_ref10","_this11","_ref11","_this12","_ref12","_this13","_ref12$data","PointerSizePlugin","_SliderPlugin","pointerSliders","_ref$defaultPointerSi","defaultPointerSize","pointerSizeKey","onPointerSizeChange","ButtonSizePlugin","buttonSliders","_ref$defaultButtonSiz","defaultButtonSize","buttonSizeKey","onButtonSizeChange","ControlSensitivityPlugin","sensitivitySliders","_ref$defaultSensitivi","defaultSensitivity","controlSensitivityKey","onControlSensitivityChange","KeyboardMapPlugin","keyContainers","_ref$customClassName","customClassName","bindKey","onKeyButtonClick","keyBindings","activekeyButton","sendAfterFetch","canEmit","keyContainersLength","textContent","actionName","preventDefault","currentKey","keyBindingKey","keyBinding","defaultKey","label","htmlFor","LayersPlugin","layersSliders","layersSliderKey","onLayerValueChange","SUPPORTED_POSITIONS","HUDPlugin","_RadioGroupPlugin","hudSelectorRadios","hudPositionKey","positions","onHUDSelect","hudPosition","COLOR_BLIND_TYPES","ColorVisionPlugin","colorVisionRadios","colorVisionKey","colors","colorVision","colorDropdownsLength","HitAreaScalePlugin","hitAreaScaleSliders","_ref$defaultHitAreaSc","defaultHitAreaScale","hitAreaScaleKey","onHitAreaScaleChange","DragThresholdScalePlugin","dragThresholdScaleSliders","_ref$defaultDragThres","defaultDragThresholdScale","dragThresholdScaleKey","onDragThresholdScaleChange","HealthPlugin","healthSliders","_ref$defaultHealth","defaultHealth","healthKey","onHealthChange","ObjectCountPlugin","objectCountSliders","_ref$defaultObjectCou","defaultObjectCount","objectCountKey","onObjectCountChange","CompletionPercentagePlugin","completionPercentageSliders","_ref$defaultCompletio","defaultCompletionPercentage","completionPercentageKey","onCompletionPercentageChange","SpeedScalePlugin","speedScaleSliders","_ref$defaultSpeedScal","defaultSpeedScale","speedScaleKey","onSpeedScaleChange","TimersScalePlugin","timersScaleSliders","_ref$defaultTimersSca","defaultTimersScale","timersScaleKey","onTimersScaleChange","InputCountPlugin","inputCountSliders","_ref$defaultInputCoun","defaultInputCount","inputCountKey","onInputCountChange","FullScreenPlugin","buttonSelector","fullscreenKey","_toggleButtons","iFrame","toggleButton","toggleFullScreen","fullscreenElement","exitFullscreen","requestFullscreen","webkitIsFullscreen","mozFullScreen"],"mappings":"gQAAA,IAAIA,EACqB,oBAAfC,YAA8BA,YACrB,oBAATC,MAAwBA,WACb,IAAXF,GAA0BA,EAEhCG,EACY,oBAAqBH,EADjCG,EAEQ,WAAYH,GAAU,aAAcI,OAF5CD,EAIA,eAAgBH,GAChB,SAAUA,GACT,WACC,IAEE,OADA,IAAIK,MACG,CACR,CAAC,MAAOC,GACP,OAAO,CACT,CACF,CAPC,GANDH,EAcQ,aAAcH,EAdtBG,EAeW,gBAAiBH,EAOhC,GAAIG,EACF,IAAII,EAAc,CAChB,qBACA,sBACA,6BACA,sBACA,uBACA,sBACA,uBACA,wBACA,yBAGEC,EACFC,YAAYC,QACZ,SAASC,GACP,OAAOA,GAAOJ,EAAYK,QAAQC,OAAOC,UAAUC,SAASC,KAAKL,KAAS,GAIhF,SAASM,EAAcC,GAIrB,GAHoB,iBAATA,IACTA,EAAOC,OAAOD,IAEZ,6BAA6BE,KAAKF,IAAkB,KAATA,EAC7C,MAAM,IAAIG,UAAU,4CAA8CH,EAAO,KAE3E,OAAOA,EAAKI,aACd,CAEA,SAASC,EAAeC,GAItB,MAHqB,iBAAVA,IACTA,EAAQL,OAAOK,IAEVA,CACT,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C,oBACThzC,SAASizC,cAEb,IAEA,CAAA,CAAAz2C,IAAA,gBAAApF,IAKA,WACE,MAAO,YACT,KAACk7C,CAAA,EAjHmCve"} \ No newline at end of file diff --git a/dist/index.js b/dist/index.js index 0783019..1e31779 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,2 +1,2 @@ -var t="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==t&&t,e="URLSearchParams"in t,n="Symbol"in t&&"iterator"in Symbol,r="FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),o="FormData"in t,i="ArrayBuffer"in t;if(i)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],a=ArrayBuffer.isView||function(t){return t&&s.indexOf(Object.prototype.toString.call(t))>-1};function u(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function l(t){return"string"!=typeof t&&(t=String(t)),t}function c(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return n&&(e[Symbol.iterator]=function(){return e}),e}function d(t){this.map={},t instanceof d?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function h(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function f(t){return new Promise((function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}}))}function p(t){var e=new FileReader,n=f(e);return e.readAsArrayBuffer(t),n}function v(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(t){var n;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:r&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:e&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():i&&r&&((n=t)&&DataView.prototype.isPrototypeOf(n))?(this._bodyArrayBuffer=v(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i&&(ArrayBuffer.prototype.isPrototypeOf(t)||a(t))?this._bodyArrayBuffer=v(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):e&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},r&&(this.blob=function(){var t=h(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var t=h(this);return t||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(p)}),this.text=function(){var t=h(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,n=f(e);return e.readAsText(t),n}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r-1?e:t}(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache)){var r=/([?&])_=[^&]*/;if(r.test(this.url))this.url=this.url.replace(r,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function b(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(o))}})),e}function S(t,e){if(!(this instanceof S))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new d(e.headers),this.url=e.url||"",this._initBody(t)}m.prototype.clone=function(){return new m(this,{body:this._bodyInit})},y.call(m.prototype),y.call(S.prototype),S.prototype.clone=function(){return new S(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},S.error=function(){var t=new S(null,{status:0,statusText:""});return t.type="error",t};var w=[301,302,303,307,308];S.redirect=function(t,e){if(-1===w.indexOf(e))throw new RangeError("Invalid status code");return new S(null,{status:e,headers:{location:t}})};var k=t.DOMException;try{new k}catch(t){(k=function(t,e){this.message=t,this.name=e;var n=Error(t);this.stack=n.stack}).prototype=Object.create(Error.prototype),k.prototype.constructor=k}function E(e,n){return new Promise((function(o,s){var a=new m(e,n);if(a.signal&&a.signal.aborted)return s(new k("Aborted","AbortError"));var u=new XMLHttpRequest;function c(){u.abort()}u.onload=function(){var t,e,n={status:u.status,statusText:u.statusText,headers:(t=u.getAllResponseHeaders()||"",e=new d,t.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t})).forEach((function(t){var n=t.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();e.append(r,o)}})),e)};n.url="responseURL"in u?u.responseURL:n.headers.get("X-Request-URL");var r="response"in u?u.response:u.responseText;setTimeout((function(){o(new S(r,n))}),0)},u.onerror=function(){setTimeout((function(){s(new TypeError("Network request failed"))}),0)},u.ontimeout=function(){setTimeout((function(){s(new TypeError("Network request failed"))}),0)},u.onabort=function(){setTimeout((function(){s(new k("Aborted","AbortError"))}),0)},u.open(a.method,function(e){try{return""===e&&t.location.href?t.location.href:e}catch(t){return e}}(a.url),!0),"include"===a.credentials?u.withCredentials=!0:"omit"===a.credentials&&(u.withCredentials=!1),"responseType"in u&&(r?u.responseType="blob":i&&a.headers.get("Content-Type")&&-1!==a.headers.get("Content-Type").indexOf("application/octet-stream")&&(u.responseType="arraybuffer")),!n||"object"!=typeof n.headers||n.headers instanceof d?a.headers.forEach((function(t,e){u.setRequestHeader(e,t)})):Object.getOwnPropertyNames(n.headers).forEach((function(t){u.setRequestHeader(t,l(n.headers[t]))})),a.signal&&(a.signal.addEventListener("abort",c),u.onreadystatechange=function(){4===u.readyState&&a.signal.removeEventListener("abort",c)}),u.send(void 0===a._bodyInit?null:a._bodyInit)}))}E.polyfill=!0,t.fetch||(t.fetch=E,t.Headers=d,t.Request=m,t.Response=S);var x="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},B=function(t){return t&&t.Math==Math&&t},P=B("object"==typeof globalThis&&globalThis)||B("object"==typeof window&&window)||B("object"==typeof self&&self)||B("object"==typeof x&&x)||function(){return this}()||Function("return this")(),L={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},_="object"==typeof document&&document.all,O={all:_,IS_HTMLDDA:void 0===_&&void 0!==_},A=O.all,V=O.IS_HTMLDDA?function(t){return"function"==typeof t||t===A}:function(t){return"function"==typeof t},C=V,D=O.all,M=O.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:C(t)||t===D}:function(t){return"object"==typeof t?null!==t:C(t)},T=M,I=P.document,R=T(I)&&T(I.createElement),j=function(t){return R?I.createElement(t):{}},N=j("span").classList,K=N&&N.constructor&&N.constructor.prototype,F=K===Object.prototype?void 0:K,G=function(t){try{return!!t()}catch(t){return!0}},U=!G((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),H=U,z=Function.prototype,q=z.call,W=H&&z.bind.bind(q,q),X=H?W:function(t){return function(){return q.apply(t,arguments)}},Y=X,J=Y({}.toString),$=Y("".slice),Q=function(t){return $(J(t),8,-1)},Z=Q,tt=X,et=function(t){if("Function"===Z(t))return tt(t)},nt=String,rt=function(t){try{return nt(t)}catch(t){return"Object"}},ot=V,it=rt,st=TypeError,at=function(t){if(ot(t))return t;throw st(it(t)+" is not a function")},ut=at,lt=U,ct=et(et.bind),dt=function(t,e){return ut(t),void 0===e?t:lt?ct(t,e):function(){return t.apply(e,arguments)}},ht=G,ft=Q,pt=Object,vt=X("".split),yt=ht((function(){return!pt("z").propertyIsEnumerable(0)}))?function(t){return"String"==ft(t)?vt(t,""):pt(t)}:pt,gt=function(t){return null==t},mt=gt,bt=TypeError,St=function(t){if(mt(t))throw bt("Can't call method on "+t);return t},wt=St,kt=Object,Et=function(t){return kt(wt(t))},xt=Math.ceil,Bt=Math.floor,Pt=Math.trunc||function(t){var e=+t;return(e>0?Bt:xt)(e)},Lt=Pt,_t=function(t){var e=+t;return e!=e||0===e?0:Lt(e)},Ot=_t,At=Math.min,Vt=function(t){return t>0?At(Ot(t),9007199254740991):0},Ct=function(t){return Vt(t.length)},Dt=Q,Mt=Array.isArray||function(t){return"Array"==Dt(t)},Tt={exports:{}},It=P,Rt=Object.defineProperty,jt=function(t,e){try{Rt(It,t,{value:e,configurable:!0,writable:!0})}catch(n){It[t]=e}return e},Nt=jt,Kt="__core-js_shared__",Ft=P[Kt]||Nt(Kt,{}),Gt=Ft;(Tt.exports=function(t,e){return Gt[t]||(Gt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.28.0",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.28.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Ut,Ht,zt=Tt.exports,qt=Et,Wt=X({}.hasOwnProperty),Xt=Object.hasOwn||function(t,e){return Wt(qt(t),e)},Yt=X,Jt=0,$t=Math.random(),Qt=Yt(1..toString),Zt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Qt(++Jt+$t,36)},te="undefined"!=typeof navigator&&String(navigator.userAgent)||"",ee=P,ne=te,re=ee.process,oe=ee.Deno,ie=re&&re.versions||oe&&oe.version,se=ie&&ie.v8;se&&(Ht=(Ut=se.split("."))[0]>0&&Ut[0]<4?1:+(Ut[0]+Ut[1])),!Ht&&ne&&(!(Ut=ne.match(/Edge\/(\d+)/))||Ut[1]>=74)&&(Ut=ne.match(/Chrome\/(\d+)/))&&(Ht=+Ut[1]);var ae=Ht,ue=ae,le=G,ce=!!Object.getOwnPropertySymbols&&!le((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&ue&&ue<41})),de=ce&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,he=zt,fe=Xt,pe=Zt,ve=ce,ye=de,ge=P.Symbol,me=he("wks"),be=ye?ge.for||ge:ge&&ge.withoutSetter||pe,Se=function(t){return fe(me,t)||(me[t]=ve&&fe(ge,t)?ge[t]:be("Symbol."+t)),me[t]},we={};we[Se("toStringTag")]="z";var ke="[object z]"===String(we),Ee=ke,xe=V,Be=Q,Pe=Se("toStringTag"),Le=Object,_e="Arguments"==Be(function(){return arguments}()),Oe=Ee?Be:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Le(t),Pe))?n:_e?Be(e):"Object"==(r=Be(e))&&xe(e.callee)?"Arguments":r},Ae=P,Ve=V,Ce=function(t,e){return arguments.length<2?(n=Ae[t],Ve(n)?n:void 0):Ae[t]&&Ae[t][e];var n},De=V,Me=Ft,Te=X(Function.toString);De(Me.inspectSource)||(Me.inspectSource=function(t){return Te(t)});var Ie=Me.inspectSource,Re=X,je=G,Ne=V,Ke=Oe,Fe=Ie,Ge=function(){},Ue=[],He=Ce("Reflect","construct"),ze=/^\s*(?:class|function)\b/,qe=Re(ze.exec),We=!ze.exec(Ge),Xe=function(t){if(!Ne(t))return!1;try{return He(Ge,Ue,t),!0}catch(t){return!1}},Ye=function(t){if(!Ne(t))return!1;switch(Ke(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return We||!!qe(ze,Fe(t))}catch(t){return!0}};Ye.sham=!0;var Je=!He||je((function(){var t;return Xe(Xe.call)||!Xe(Object)||!Xe((function(){t=!0}))||t}))?Ye:Xe,$e=Mt,Qe=Je,Ze=M,tn=Se("species"),en=Array,nn=function(t){var e;return $e(t)&&(e=t.constructor,(Qe(e)&&(e===en||$e(e.prototype))||Ze(e)&&null===(e=e[tn]))&&(e=void 0)),void 0===e?en:e},rn=function(t,e){return new(nn(t))(0===e?0:e)},on=dt,sn=yt,an=Et,un=Ct,ln=rn,cn=X([].push),dn=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,s=7==t,a=5==t||i;return function(u,l,c,d){for(var h,f,p=an(u),v=sn(p),y=on(l,c),g=un(v),m=0,b=d||ln,S=e?b(u,g):n||s?b(u,0):void 0;g>m;m++)if((a||m in v)&&(f=y(h=v[m],m,p),t))if(e)S[m]=f;else if(f)switch(t){case 3:return!0;case 5:return h;case 6:return m;case 2:cn(S,h)}else switch(t){case 4:return!1;case 7:cn(S,h)}return i?-1:r||o?o:S}},hn={forEach:dn(0),map:dn(1),filter:dn(2),some:dn(3),every:dn(4),find:dn(5),findIndex:dn(6),filterReject:dn(7)},fn=G,pn=function(t,e){var n=[][t];return!!n&&fn((function(){n.call(null,e||function(){return 1},1)}))},vn=hn.forEach,yn=pn("forEach")?[].forEach:function(t){return vn(this,t,arguments.length>1?arguments[1]:void 0)},gn=!G((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),mn={},bn=j,Sn=!gn&&!G((function(){return 7!=Object.defineProperty(bn("div"),"a",{get:function(){return 7}}).a})),wn=gn&&G((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),kn=M,En=String,xn=TypeError,Bn=function(t){if(kn(t))return t;throw xn(En(t)+" is not an object")},Pn=U,Ln=Function.prototype.call,_n=Pn?Ln.bind(Ln):function(){return Ln.apply(Ln,arguments)},On=X({}.isPrototypeOf),An=Ce,Vn=V,Cn=On,Dn=Object,Mn=de?function(t){return"symbol"==typeof t}:function(t){var e=An("Symbol");return Vn(e)&&Cn(e.prototype,Dn(t))},Tn=at,In=gt,Rn=function(t,e){var n=t[e];return In(n)?void 0:Tn(n)},jn=_n,Nn=V,Kn=M,Fn=TypeError,Gn=_n,Un=M,Hn=Mn,zn=Rn,qn=function(t,e){var n,r;if("string"===e&&Nn(n=t.toString)&&!Kn(r=jn(n,t)))return r;if(Nn(n=t.valueOf)&&!Kn(r=jn(n,t)))return r;if("string"!==e&&Nn(n=t.toString)&&!Kn(r=jn(n,t)))return r;throw Fn("Can't convert object to primitive value")},Wn=TypeError,Xn=Se("toPrimitive"),Yn=function(t,e){if(!Un(t)||Hn(t))return t;var n,r=zn(t,Xn);if(r){if(void 0===e&&(e="default"),n=Gn(r,t,e),!Un(n)||Hn(n))return n;throw Wn("Can't convert object to primitive value")}return void 0===e&&(e="number"),qn(t,e)},Jn=Yn,$n=Mn,Qn=function(t){var e=Jn(t,"string");return $n(e)?e:e+""},Zn=gn,tr=Sn,er=wn,nr=Bn,rr=Qn,or=TypeError,ir=Object.defineProperty,sr=Object.getOwnPropertyDescriptor,ar="enumerable",ur="configurable",lr="writable";mn.f=Zn?er?function(t,e,n){if(nr(t),e=rr(e),nr(n),"function"==typeof t&&"prototype"===e&&"value"in n&&lr in n&&!n[lr]){var r=sr(t,e);r&&r[lr]&&(t[e]=n.value,n={configurable:ur in n?n[ur]:r[ur],enumerable:ar in n?n[ar]:r[ar],writable:!1})}return ir(t,e,n)}:ir:function(t,e,n){if(nr(t),e=rr(e),nr(n),tr)try{return ir(t,e,n)}catch(t){}if("get"in n||"set"in n)throw or("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var cr=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},dr=mn,hr=cr,fr=gn?function(t,e,n){return dr.f(t,e,hr(1,n))}:function(t,e,n){return t[e]=n,t},pr=P,vr=L,yr=F,gr=yn,mr=fr,br=function(t){if(t&&t.forEach!==gr)try{mr(t,"forEach",gr)}catch(e){t.forEach=gr}};for(var Sr in vr)vr[Sr]&&br(pr[Sr]&&pr[Sr].prototype);br(yr);var wr=yt,kr=St,Er=function(t){return wr(kr(t))},xr={},Br=_t,Pr=Math.max,Lr=Math.min,_r=function(t,e){var n=Br(t);return n<0?Pr(n+e,0):Lr(n,e)},Or=Er,Ar=_r,Vr=Ct,Cr=function(t){return function(e,n,r){var o,i=Or(e),s=Vr(i),a=Ar(r,s);if(t&&n!=n){for(;s>a;)if((o=i[a++])!=o)return!0}else for(;s>a;a++)if((t||a in i)&&i[a]===n)return t||a||0;return!t&&-1}},Dr={includes:Cr(!0),indexOf:Cr(!1)},Mr={},Tr=Xt,Ir=Er,Rr=Dr.indexOf,jr=Mr,Nr=X([].push),Kr=function(t,e){var n,r=Ir(t),o=0,i=[];for(n in r)!Tr(jr,n)&&Tr(r,n)&&Nr(i,n);for(;e.length>o;)Tr(r,n=e[o++])&&(~Rr(i,n)||Nr(i,n));return i},Fr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Gr=Kr,Ur=Fr,Hr=Object.keys||function(t){return Gr(t,Ur)},zr=gn,qr=wn,Wr=mn,Xr=Bn,Yr=Er,Jr=Hr;xr.f=zr&&!qr?Object.defineProperties:function(t,e){Xr(t);for(var n,r=Yr(e),o=Jr(e),i=o.length,s=0;i>s;)Wr.f(t,n=o[s++],r[n]);return t};var $r,Qr=Ce("document","documentElement"),Zr=Zt,to=zt("keys"),eo=function(t){return to[t]||(to[t]=Zr(t))},no=Bn,ro=xr,oo=Fr,io=Mr,so=Qr,ao=j,uo="prototype",lo="script",co=eo("IE_PROTO"),ho=function(){},fo=function(t){return"<"+lo+">"+t+""},po=function(t){t.write(fo("")),t.close();var e=t.parentWindow.Object;return t=null,e},vo=function(){try{$r=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;vo="undefined"!=typeof document?document.domain&&$r?po($r):(e=ao("iframe"),n="java"+lo+":",e.style.display="none",so.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(fo("document.F=Object")),t.close(),t.F):po($r);for(var r=oo.length;r--;)delete vo[uo][oo[r]];return vo()};io[co]=!0;var yo=Object.create||function(t,e){var n;return null!==t?(ho[uo]=no(t),n=new ho,ho[uo]=null,n[co]=t):n=vo(),void 0===e?n:ro.f(n,e)},go=Se,mo=yo,bo=mn.f,So=go("unscopables"),wo=Array.prototype;null==wo[So]&&bo(wo,So,{configurable:!0,value:mo(null)});var ko,Eo,xo,Bo=function(t){wo[So][t]=!0},Po={},Lo=V,_o=P.WeakMap,Oo=Lo(_o)&&/native code/.test(String(_o)),Ao=P,Vo=M,Co=fr,Do=Xt,Mo=Ft,To=eo,Io=Mr,Ro="Object already initialized",jo=Ao.TypeError,No=Ao.WeakMap;if(Oo||Mo.state){var Ko=Mo.state||(Mo.state=new No);Ko.get=Ko.get,Ko.has=Ko.has,Ko.set=Ko.set,ko=function(t,e){if(Ko.has(t))throw jo(Ro);return e.facade=t,Ko.set(t,e),e},Eo=function(t){return Ko.get(t)||{}},xo=function(t){return Ko.has(t)}}else{var Fo=To("state");Io[Fo]=!0,ko=function(t,e){if(Do(t,Fo))throw jo(Ro);return e.facade=t,Co(t,Fo,e),e},Eo=function(t){return Do(t,Fo)?t[Fo]:{}},xo=function(t){return Do(t,Fo)}}var Go={set:ko,get:Eo,has:xo,enforce:function(t){return xo(t)?Eo(t):ko(t,{})},getterFor:function(t){return function(e){var n;if(!Vo(e)||(n=Eo(e)).type!==t)throw jo("Incompatible receiver, "+t+" required");return n}}},Uo={},Ho={},zo={}.propertyIsEnumerable,qo=Object.getOwnPropertyDescriptor,Wo=qo&&!zo.call({1:2},1);Ho.f=Wo?function(t){var e=qo(this,t);return!!e&&e.enumerable}:zo;var Xo=gn,Yo=_n,Jo=Ho,$o=cr,Qo=Er,Zo=Qn,ti=Xt,ei=Sn,ni=Object.getOwnPropertyDescriptor;Uo.f=Xo?ni:function(t,e){if(t=Qo(t),e=Zo(e),ei)try{return ni(t,e)}catch(t){}if(ti(t,e))return $o(!Yo(Jo.f,t,e),t[e])};var ri={exports:{}},oi=gn,ii=Xt,si=Function.prototype,ai=oi&&Object.getOwnPropertyDescriptor,ui=ii(si,"name"),li={EXISTS:ui,PROPER:ui&&"something"===function(){}.name,CONFIGURABLE:ui&&(!oi||oi&&ai(si,"name").configurable)},ci=X,di=G,hi=V,fi=Xt,pi=gn,vi=li.CONFIGURABLE,yi=Ie,gi=Go.enforce,mi=Go.get,bi=String,Si=Object.defineProperty,wi=ci("".slice),ki=ci("".replace),Ei=ci([].join),xi=pi&&!di((function(){return 8!==Si((function(){}),"length",{value:8}).length})),Bi=String(String).split("String"),Pi=ri.exports=function(t,e,n){"Symbol("===wi(bi(e),0,7)&&(e="["+ki(bi(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!fi(t,"name")||vi&&t.name!==e)&&(pi?Si(t,"name",{value:e,configurable:!0}):t.name=e),xi&&n&&fi(n,"arity")&&t.length!==n.arity&&Si(t,"length",{value:n.arity});try{n&&fi(n,"constructor")&&n.constructor?pi&&Si(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=gi(t);return fi(r,"source")||(r.source=Ei(Bi,"string"==typeof e?e:"")),t};Function.prototype.toString=Pi((function(){return hi(this)&&mi(this).source||yi(this)}),"toString");var Li=ri.exports,_i=V,Oi=mn,Ai=Li,Vi=jt,Ci=function(t,e,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:e;if(_i(n)&&Ai(n,i,r),r.global)o?t[e]=n:Vi(e,n);else{try{r.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=n:Oi.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},Di={},Mi=Kr,Ti=Fr.concat("length","prototype");Di.f=Object.getOwnPropertyNames||function(t){return Mi(t,Ti)};var Ii={};Ii.f=Object.getOwnPropertySymbols;var Ri,ji,Ni,Ki=Ce,Fi=Di,Gi=Ii,Ui=Bn,Hi=X([].concat),zi=Ki("Reflect","ownKeys")||function(t){var e=Fi.f(Ui(t)),n=Gi.f;return n?Hi(e,n(t)):e},qi=Xt,Wi=zi,Xi=Uo,Yi=mn,Ji=G,$i=V,Qi=/#|\.prototype\./,Zi=function(t,e){var n=es[ts(t)];return n==rs||n!=ns&&($i(e)?Ji(e):!!e)},ts=Zi.normalize=function(t){return String(t).replace(Qi,".").toLowerCase()},es=Zi.data={},ns=Zi.NATIVE="N",rs=Zi.POLYFILL="P",os=Zi,is=P,ss=Uo.f,as=fr,us=Ci,ls=jt,cs=function(t,e,n){for(var r=Wi(e),o=Yi.f,i=Xi.f,s=0;s=e.length?(t.target=void 0,Ea(void 0,!0)):Ea("keys"==n?r:"values"==n?e[r]:[r,e[r]],!1)}),"values"),Oa=ba.Arguments=ba.Array;if(ma("keys"),ma("values"),ma("entries"),xa&&"values"!==Oa.name)try{wa(Oa,"name",{value:"values"})}catch(t){}var Aa=P,Va=L,Ca=F,Da=_a,Ma=fr,Ta=Se,Ia=Ta("iterator"),Ra=Ta("toStringTag"),ja=Da.values,Na=function(t,e){if(t){if(t[Ia]!==ja)try{Ma(t,Ia,ja)}catch(e){t[Ia]=ja}if(t[Ra]||Ma(t,Ra,e),Va[e])for(var n in Da)if(t[n]!==Da[n])try{Ma(t,n,Da[n])}catch(e){t[n]=Da[n]}}};for(var Ka in Va)Na(Aa[Ka]&&Aa[Ka].prototype,Ka);Na(Ca,"DOMTokenList");var Fa=P;function Ga(){Ga=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function l(t,e,n,o){var i=e&&e.prototype instanceof h?e:h,s=Object.create(i.prototype),a=new B(o||[]);return r(s,"_invoke",{value:w(t,n,a)}),s}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var d={};function h(){}function f(){}function p(){}var v={};u(v,i,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(P([])));g&&g!==e&&n.call(g,i)&&(v=g);var m=p.prototype=h.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function o(r,i,s,a){var u=c(t[r],t,i);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==typeof d&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){o("next",t,s,a)}),(function(t){o("throw",t,s,a)})):e.resolve(d).then((function(t){l.value=t,s(l)}),(function(t){return o("throw",t,s,a)}))}a(u.arg)}var i;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){o(t,n,e,r)}))}return i=i?i.then(r,r):r()}})}function w(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return L()}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var a=k(s,n);if(a){if(a===d)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=c(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function k(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,k(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=c(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function B(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function P(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var a=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(a&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:P(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function Ua(t){return Ua="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ua(t)}function Ha(t,e,n,r,o,i,s){try{var a=t[i](s),u=a.value}catch(t){return void n(t)}a.done?e(u):Promise.resolve(u).then(r,o)}function za(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function s(t){Ha(i,r,o,s,a,"next",t)}function a(t){Ha(i,r,o,s,a,"throw",t)}s(void 0)}))}}function qa(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Wa(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,i=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}var iu=hs,su=Dr.indexOf,au=pn,uu=et([].indexOf),lu=!!uu&&1/uu([1],1,-0)<0;iu({target:"Array",proto:!0,forced:lu||!au("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return lu?uu(this,t,e)||0:su(this,t,e)}});var cu=TypeError,du=Qn,hu=mn,fu=cr,pu=function(t,e,n){var r=du(e);r in t?hu.f(t,r,fu(0,n)):t[r]=n},vu=G,yu=ae,gu=Se("species"),mu=function(t){return yu>=51||!vu((function(){var e=[];return(e.constructor={})[gu]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},bu=hs,Su=G,wu=Mt,ku=M,Eu=Et,xu=Ct,Bu=function(t){if(t>9007199254740991)throw cu("Maximum allowed index exceeded");return t},Pu=pu,Lu=rn,_u=mu,Ou=ae,Au=Se("isConcatSpreadable"),Vu=Ou>=51||!Su((function(){var t=[];return t[Au]=!1,t.concat()[0]!==t})),Cu=function(t){if(!ku(t))return!1;var e=t[Au];return void 0!==e?!!e:wu(t)};bu({target:"Array",proto:!0,arity:1,forced:!Vu||!_u("concat")},{concat:function(t){var e,n,r,o,i,s=Eu(this),a=Lu(s,0),u=0;for(e=-1,r=arguments.length;eo;)for(var a,u=Fu(arguments[o++]),l=i?Hu(Ru(u),i(u)):Ru(u),c=l.length,d=0;c>d;)a=l[d++],Du&&!Tu(s,u,a)||(n[a]=u[a]);return n}:Gu,qu=zu;hs({target:"Object",stat:!0,arity:2,forced:Object.assign!==qu},{assign:qu});var Wu=Oe,Xu=ke?{}.toString:function(){return"[object "+Wu(this)+"]"};ke||Ci(Object.prototype,"toString",Xu,{unsafe:!0});var Yu,Ju,$u,Qu,Zu="undefined"!=typeof process&&"process"==Q(process),tl=Li,el=mn,nl=function(t,e,n){return n.get&&tl(n.get,e,{getter:!0}),n.set&&tl(n.set,e,{setter:!0}),el.f(t,e,n)},rl=Ce,ol=nl,il=gn,sl=Se("species"),al=function(t){var e=rl(t);il&&e&&!e[sl]&&ol(e,sl,{configurable:!0,get:function(){return this}})},ul=On,ll=TypeError,cl=function(t,e){if(ul(e,t))return t;throw ll("Incorrect invocation")},dl=Je,hl=rt,fl=TypeError,pl=Bn,vl=function(t){if(dl(t))return t;throw fl(hl(t)+" is not a constructor")},yl=gt,gl=Se("species"),ml=U,bl=Function.prototype,Sl=bl.apply,wl=bl.call,kl="object"==typeof Reflect&&Reflect.apply||(ml?wl.bind(Sl):function(){return wl.apply(Sl,arguments)}),El=X([].slice),xl=TypeError,Bl=/(?:ipad|iphone|ipod).*applewebkit/i.test(te),Pl=P,Ll=kl,_l=dt,Ol=V,Al=Xt,Vl=G,Cl=Qr,Dl=El,Ml=j,Tl=function(t,e){if(ti;i++)if((a=g(t[i]))&&ph(Sh,a))return a;return new bh(!1)}r=vh(t,o)}for(u=h?t.next:r.next;!(l=lh(u,r)).done;){try{a=g(l.value)}catch(t){gh(r,"throw",t)}if("object"==typeof a&&a&&ph(Sh,a))return a}return new bh(!1)},kh=Se("iterator"),Eh=!1;try{var xh=0,Bh={next:function(){return{done:!!xh++}},return:function(){Eh=!0}};Bh[kh]=function(){return this},Array.from(Bh,(function(){throw 2}))}catch(t){}var Ph=function(t,e){if(!e&&!Eh)return!1;var n=!1;try{var r={};r[kh]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n},Lh=Lc,_h=Uc.CONSTRUCTOR||!Ph((function(t){Lh.all(t).then(void 0,(function(){}))})),Oh=_n,Ah=at,Vh=Hc,Ch=Pc,Dh=wh;hs({target:"Promise",stat:!0,forced:_h},{all:function(t){var e=this,n=Vh.f(e),r=n.resolve,o=n.reject,i=Ch((function(){var n=Ah(e.resolve),i=[],s=0,a=1;Dh(t,(function(t){var u=s++,l=!1;a++,Oh(n,e,t).then((function(t){l||(l=!0,i[u]=t,--a||r(i))}),o)})),--a||r(i)}));return i.error&&o(i.value),n.promise}});var Mh=hs,Th=Uc.CONSTRUCTOR,Ih=Lc,Rh=Ce,jh=V,Nh=Ci,Kh=Ih&&Ih.prototype;if(Mh({target:"Promise",proto:!0,forced:Th,real:!0},{catch:function(t){return this.then(void 0,t)}}),jh(Ih)){var Fh=Rh("Promise").prototype.catch;Kh.catch!==Fh&&Nh(Kh,"catch",Fh,{unsafe:!0})}var Gh=_n,Uh=at,Hh=Hc,zh=Pc,qh=wh;hs({target:"Promise",stat:!0,forced:_h},{race:function(t){var e=this,n=Hh.f(e),r=n.reject,o=zh((function(){var o=Uh(e.resolve);qh(t,(function(t){Gh(o,e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var Wh=_n,Xh=Hc;hs({target:"Promise",stat:!0,forced:Uc.CONSTRUCTOR},{reject:function(t){var e=Xh.f(this);return Wh(e.reject,void 0,t),e.promise}});var Yh=Bn,Jh=M,$h=Hc,Qh=hs,Zh=Uc.CONSTRUCTOR,tf=function(t,e){if(Yh(t),Jh(e)&&e.constructor===t)return e;var n=$h.f(t);return(0,n.resolve)(e),n.promise};Ce("Promise"),Qh({target:"Promise",stat:!0,forced:Zh},{resolve:function(t){return tf(this,t)}});var ef,nf,rf=Oe,of=String,sf=function(t){if("Symbol"===rf(t))throw TypeError("Cannot convert a Symbol value to a string");return of(t)},af=Bn,uf=function(){var t=af(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},lf=G,cf=P.RegExp,df=lf((function(){var t=cf("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),hf=df||lf((function(){return!cf("a","y").sticky})),ff={BROKEN_CARET:df||lf((function(){var t=cf("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:hf,UNSUPPORTED_Y:df},pf=G,vf=P.RegExp,yf=pf((function(){var t=vf(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),gf=G,mf=P.RegExp,bf=gf((function(){var t=mf("(?b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$c")})),Sf=_n,wf=X,kf=sf,Ef=uf,xf=ff,Bf=yo,Pf=Go.get,Lf=yf,_f=bf,Of=zt("native-string-replace",String.prototype.replace),Af=RegExp.prototype.exec,Vf=Af,Cf=wf("".charAt),Df=wf("".indexOf),Mf=wf("".replace),Tf=wf("".slice),If=(nf=/b*/g,Sf(Af,ef=/a/,"a"),Sf(Af,nf,"a"),0!==ef.lastIndex||0!==nf.lastIndex),Rf=xf.BROKEN_CARET,jf=void 0!==/()??/.exec("")[1];(If||jf||Rf||Lf||_f)&&(Vf=function(t){var e,n,r,o,i,s,a,u=this,l=Pf(u),c=kf(t),d=l.raw;if(d)return d.lastIndex=u.lastIndex,e=Sf(Vf,d,c),u.lastIndex=d.lastIndex,e;var h=l.groups,f=Rf&&u.sticky,p=Sf(Ef,u),v=u.source,y=0,g=c;if(f&&(p=Mf(p,"y",""),-1===Df(p,"g")&&(p+="g"),g=Tf(c,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==Cf(c,u.lastIndex-1))&&(v="(?: "+v+")",g=" "+g,y++),n=new RegExp("^(?:"+v+")",p)),jf&&(n=new RegExp("^"+v+"$(?!\\s)",p)),If&&(r=u.lastIndex),o=Sf(Af,f?n:u,g),f?o?(o.input=Tf(o.input,y),o[0]=Tf(o[0],y),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:If&&o&&(u.lastIndex=u.global?o.index+o[0].length:r),jf&&o&&o.length>1&&Sf(Of,o[0],n,(function(){for(i=1;i0||navigator.pointerEnabled&&navigator.maxTouchPoints>0)}},{key:"basic",value:function(){return t.canvas?t.webaudio||t.htmlAudio?null:"Browser does not support WebAudio or HTMLAudio":"Browser does not support canvas"}},{key:"test",value:function(e){var n=this.basic();if(n)return n;var r=e.features,o=e.ui,i=e.sizes;for(var s in r)if(!0===r[s]&&!t[s])return"Browser does not support "+s;if(!o.touch&&t.touch)return"Game does not support touch input";var a=Math.max(window.screen.width,window.screen.height);return!i.xsmall&&a<480?"Game doesn't support extra small screens":!i.small&&a<768?"Game doesn't support small screens":!i.medium&&a<992?"Game doesn't support medium screens":!i.large&&a<1200?"Game doesn't support large screens":!i.xlarge&&a>=1200?"Game doesn't support extra large screens":null}},{key:"info",get:function(){return"Browser Feature Detection\n\t\t\t\tCanvas support ".concat(t.canvas?"✓":"×","\n\t\t\t\tWebGL support ").concat(t.webgl?"✓":"×","\n\t\t\t\tWebAudio support ").concat(t.webAudio?"✓":"×")}}]),t}(),Kf=X,Ff=_t,Gf=sf,Uf=St,Hf=Kf("".charAt),zf=Kf("".charCodeAt),qf=Kf("".slice),Wf=function(t){return function(e,n){var r,o,i=Gf(Uf(e)),s=Ff(n),a=i.length;return s<0||s>=a?t?"":void 0:(r=zf(i,s))<55296||r>56319||s+1===a||(o=zf(i,s+1))<56320||o>57343?t?Hf(i,s):r:t?qf(i,s,s+2):o-56320+(r-55296<<10)+65536}},Xf={codeAt:Wf(!1),charAt:Wf(!0)}.charAt,Yf=sf,Jf=Go,$f=va,Qf=ya,Zf="String Iterator",tp=Jf.set,ep=Jf.getterFor(Zf);$f(String,"String",(function(t){tp(this,{type:Zf,string:Yf(t),index:0})}),(function(){var t,e=ep(this),n=e.string,r=e.index;return r>=n.length?Qf(void 0,!0):(t=Xf(n,r),e.index+=t.length,Qf(t,!1))}));var np=hn.filter;hs({target:"Array",proto:!0,forced:!mu("filter")},{filter:function(t){return np(this,t,arguments.length>1?arguments[1]:void 0)}});var rp=hs,op=hn.find,ip=Bo,sp="find",ap=!0;function up(t,e){return t(e={exports:{}},e.exports),e.exports}sp in[]&&Array(1)[sp]((function(){ap=!1})),rp({target:"Array",proto:!0,forced:ap},{find:function(t){return op(this,t,arguments.length>1?arguments[1]:void 0)}}),ip(sp);var lp=up((function(t){function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function n(r){return"function"==typeof Symbol&&"symbol"===e(Symbol.iterator)?t.exports=n=function(t){return e(t)}:t.exports=n=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":e(t)},n(r)}t.exports=n})),cp=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")};function dp(t,e){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:0;this._listeners[t]||(this._listeners[t]=[]),e._priority=parseInt(n)||0,-1===this._listeners[t].indexOf(e)&&(this._listeners[t].push(e),this._listeners[t].length>1&&this._listeners[t].sort(this.listenerSorter))}},{key:"listenerSorter",value:function(t,e){return t._priority-e._priority}},{key:"off",value:function(t,e){if(void 0!==this._listeners[t])if(void 0!==e){var n=this._listeners[t].indexOf(e);-11&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof t&&(t={type:t,data:"object"===lp(e)&&null!==e?e:{}}),void 0!==this._listeners[t.type])for(var n=this._listeners[t.type].length-1;n>=0;n--)this._listeners[t.type][n](t)}},{key:"destroy",value:function(){this._listeners={}}}]),t}(),pp=up((function(t){var e=function(t){var e,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function u(t,e,n,r){var o=e&&e.prototype instanceof v?e:v,i=Object.create(o.prototype),s=new L(r||[]);return i._invoke=function(t,e,n){var r=c;return function(o,i){if(r===h)throw new Error("Generator is already running");if(r===f){if("throw"===o)throw i;return O()}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var a=x(s,n);if(a){if(a===p)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===c)throw r=f,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var u=l(t,e,n);if("normal"===u.type){if(r=n.done?f:d,u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=f,n.method="throw",n.arg=u.arg)}}}(t,n,s),i}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var c="suspendedStart",d="suspendedYield",h="executing",f="completed",p={};function v(){}function y(){}function g(){}var m={};m[i]=function(){return this};var b=Object.getPrototypeOf,S=b&&b(b(_([])));S&&S!==n&&r.call(S,i)&&(m=S);var w=g.prototype=v.prototype=Object.create(m);function k(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function E(t){function e(n,o,i,s){var a=l(t[n],t,o);if("throw"!==a.type){var u=a.arg,c=u.value;return c&&"object"==typeof c&&r.call(c,"__await")?Promise.resolve(c.__await).then((function(t){e("next",t,i,s)}),(function(t){e("throw",t,i,s)})):Promise.resolve(c).then((function(t){u.value=t,i(u)}),(function(t){return e("throw",t,i,s)}))}s(a.arg)}var n;this._invoke=function(t,r){function o(){return new Promise((function(n,o){e(t,r,n,o)}))}return n=n?n.then(o,o):o()}}function x(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,x(t,n),"throw"===n.method))return p;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var o=l(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,p;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,p):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}function B(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(B,this),this.reset(!0)}function _(t){if(t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,s=function n(){for(;++o=0;--i){var s=this.tryEntries[i],a=s.completion;if("root"===s.tryLoc)return o("end");if(s.tryLoc<=this.prev){var u=r.call(s,"catchLoc"),l=r.call(s,"finallyLoc");if(u&&l){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:_(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),p}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}})),vp=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},yp=function(t,e){return!e||"object"!==lp(e)&&"function"!=typeof e?vp(t):e},gp=up((function(t){function e(n){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},e(n)}t.exports=e})),mp=up((function(t){function e(n,r,o){return"undefined"!=typeof Reflect&&Reflect.get?t.exports=e=Reflect.get:t.exports=e=function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=gp(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}},e(n,r,o||n)}t.exports=e})),bp=up((function(t){function e(n,r){return t.exports=e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},e(n,r)}t.exports=e})),Sp=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100*Math.random()|0;return cp(this,e),(t=yp(this,gp(e).call(this))).id="BELLHOP:".concat(n),t.connected=!1,t.isChild=!0,t.connecting=!1,t.debug=!1,t.origin="*",t._sendLater=[],t.iframe=null,t.receive=t.receive.bind(vp(t)),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&bp(t,e)}(e,fp),hp(e,[{key:"receive",value:function(t){if(this.target===t.source)if(this.logDebugMessage(!0,t),"connected"===t.data)this.onConnectionReceived(t.data);else{var e=t.data;if("string"==typeof e)try{e=JSON.parse(e)}catch(t){console.warn("Bellhop error: ",t)}this.connected&&"object"===lp(e)&&e.type&&this.trigger(e)}}},{key:"onConnectionReceived",value:function(t){if(this.connecting=!1,this.connected=!0,!this.isChild){if(!this.target)return;this.target.postMessage(t,this.origin)}for(var e=0;e1&&void 0!==arguments[1]?arguments[1]:"*";this.connecting||(this.disconnect(),this.connecting=!0,t instanceof HTMLIFrameElement&&(this.iframe=t),this.isChild=void 0===t,this.supported=!0,this.isChild&&(this.supported=window!=t),this.origin=e,window.addEventListener("message",this.receive),this.isChild&&(window===this.target?this.trigger("failed"):this.target.postMessage("connected",this.origin)))}},{key:"disconnect",value:function(){this.connected=!1,this.connecting=!1,this.origin=null,this.iframe=null,this.isChild=!0,this._sendLater.length=0,window.removeEventListener("message",this.receive)}},{key:"send",value:function(t){if("string"!=typeof t)throw"The event type must be a string";var e={type:t,data:arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}};this.logDebugMessage(!1,e),this.connecting?this._sendLater.push(e):this.target.postMessage(JSON.stringify(e),this.origin)}},{key:"fetch",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!this.connecting&&!this.connected)throw"No connection, please call connect() first";this.on(t,(function t(r){o&&n.off(r.type,t),e(r)})),this.send(t,r)}},{key:"respond",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this;this.on(t,(function t(o){return pp.async((function(i){for(;;)switch(i.prev=i.next){case 0:if(n&&r.off(o,t),"function"!=typeof e){i.next=10;break}return i.t0=r,i.t1=o.type,i.next=6,pp.awrap(e());case 6:i.t2=i.sent,i.t0.send.call(i.t0,i.t1,i.t2),i.next=11;break;case 10:r.send(o.type,e);case 11:case"end":return i.stop()}}))}))}},{key:"logDebugMessage",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1?arguments[1]:void 0;this.debug&&"function"==typeof this.debug?this.debug({isChild:this.isChild,received:t,message:e}):this.debug&&console.log("Bellhop Instance (".concat(this.isChild?"Child":"Parent",") ").concat(t?"Receieved":"Sent"),e)}},{key:"destroy",value:function(){mp(gp(e.prototype),"destroy",this).call(this),this.disconnect(),this._sendLater.length=0}},{key:"target",get:function(){return this.isChild?window.parent:this.iframe.contentWindow}}]),e}(),wp=function(){function t(e){var n=e.plugins,r=void 0===n?[]:n;qa(this,t),this.client=new Sp,this.preloading=!0,this.client.hidden=this.client.receive.bind(this.client),this.client.hiddenSend=this.client.send.bind(this.client),this.client.receive=function(t){this.hidden(t)}.bind(this.client),this.client.send=function(t,e){this.hiddenSend(t,e)}.bind(this.client),this.plugins=r}return Xa(t,[{key:"setupPlugins",value:function(){for(var t=this,e=[],n=function(n){if(!t.plugins[n].preload)return"continue";e.push(t.plugins[n].preload(t).catch(function(t){this.plugins[n].preloadFailed=!0,console.warn(this.plugins[n].name,"Preload Failed:",t)}.bind(t)))},r=0,o=this.plugins.length;r1&&void 0!==arguments[1]?arguments[1]:{},i=o.plugins,s=o.context,a=void 0===s?{}:s;if(qa(this,r),(e=n.call(this,{plugins:i})).iframe=t instanceof HTMLIFrameElement?t:document.querySelector(t),e.iframe.style.backgroundColor="black",null===e.iframe)throw new Error("No iframe was found with the provided selector");return e.loaded=!1,e.loading=!1,e.release=null,e._context=a,e.onLoading=e.onLoading.bind(Qa(e)),e.onLoadDone=e.onLoadDone.bind(Qa(e)),e.onLoadDone=e.onLoadDone.bind(Qa(e)),e.onEndGame=e.onEndGame.bind(Qa(e)),e.onLocalError=e.onLocalError.bind(Qa(e)),e.initClient(),e.setupPlugins(),e}return Xa(r,[{key:"onLoading",value:function(){this.client.trigger("opening")}},{key:"onLoadDone",value:function(){this.loading=!1,this.loaded=!0,this.iframe.classList.remove("loading"),this.client.trigger("opened")}},{key:"onEndGame",value:function(){this.reset()}},{key:"onLocalError",value:function(t){console.error("SpringRoll Container error: ",t,(new Error).stack)}},{key:"reset",value:function(){(this.loaded||this.loading)&&this.client.trigger("closed"),this.loaded=!1,this.loading=!1,this.iframe.setAttribute("src",""),this.iframe.classList.remove("loading")}},{key:"initClient",value:function(){this.client.on("loading",this.onLoading),this.client.on("loaded",this.onLoadDone),this.client.on("loadDone",this.onLoadDone),this.client.on("endGame",this.onEndGame),this.client.on("localError",this.onLocalError),this.client.connect(this.iframe)}},{key:"_onCloseFailed",value:function(){this.reset()}},{key:"_internalOpen",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.singlePlay,o=void 0!==r&&r,i=n.playOptions,s=void 0===i?null:i;if(this.preloading)this.client.on("preloadsFinished",(function(){e._internalOpen(t,{singlePlay:o,playOptions:s})}));else{var a={singlePlay:o,playOptions:s};this.reset(),this.loading=!0,this.initClient();var u=Nf.basic();u&&(console.error("ERROR:",u),this.client.trigger("unsupported"));var l=t;if(null!==a.playOptions){var c="playOptions="+encodeURIComponent(JSON.stringify(a.playOptions));l=-1===t.indexOf("?")?"".concat(t,"?").concat(c):"".concat(t,"&").concat(c)}this.iframe.classList.add("loading"),this.iframe.setAttribute("src",l),this.client.respond("singlePlay",o),this.client.respond("playOptions",s),this.client.trigger("open")}}},{key:"openPath",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"object"!==Ua(e)&&(console.warn("SpringRoll Container.openPath was passed a invalid options parameter. Using default parameters instead"),e={}),this._internalOpen(t,Object.assign({singlePlay:!1,playOptions:{}},e))}},{key:"openRemote",value:(e=za(Ga().mark((function t(e){var n,r,o,i,s,a,u,l,c,d,h,f=arguments;return Ga().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=(n=f.length>1&&void 0!==f[1]?f[1]:{}).query,o=void 0===r?"":r,i=n.singlePlay,s=void 0!==i&&i,a=n.playOptions,u=void 0===a?null:a,this.release=null,t.next=4,fetch(e,{headers:{"Content-Type":"application/json"}});case 4:return l=t.sent,t.next=7,l.json();case 7:if((c=t.sent).success){t.next=10;break}throw new Error(c.error);case 10:if(d=c.data,!(h=Nf.test(d.capabilities))){t.next=15;break}throw this.client.trigger("unsupported",{error:h}),new Error(h);case 15:this.release=d,this._internalOpen(d.url+o,{singlePlay:s,playOptions:u});case 17:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"destroy",value:function(){this.reset(),this.iframe=null,this.options=null,this.release=null}},{key:"close",value:function(){this.loading||this.loaded?(this.client.trigger("close"),this.client.send("close")):this.reset()}},{key:"context",get:function(){return this._context},set:function(t){"object"===Ua(t)?this._context=t:console.error("[SpringRollContainer] Context: new context provided is not an object")}}],[{key:"version",get:function(){return"2.4.6"}}]),r}(),Ep=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};qa(this,t),this._onFocus=e,this._onBlur=n,this.onFocus=function(t){this.enabled&&this._onFocus(t)}.bind(this),this.onBlur=function(t){this.enabled&&this._onBlur(t)}.bind(this),this._enabled=!1,this.enabled=!0,this.onToggle=this.onToggle.bind(this)}return Xa(t,[{key:"destroy",value:function(){this.enabled=!1,this.onToggle=null,this.onFocus=null,this.onBlur=null}},{key:"onToggle",value:function(t){this.enabled&&(document.hidden?this.onBlur(t):this.onFocus(t))}},{key:"enabled",get:function(){return this._enabled},set:function(t){this._enabled=t,document.removeEventListener("visibilitychange",this.onToggle,!1),window.removeEventListener("blur",this.onBlur,!1),window.removeEventListener("focus",this.onFocus,!1),window.removeEventListener("pagehide",this.onBlur,!1),window.removeEventListener("pageshow",this.onFocus,!1),window.removeEventListener("visibilitychange",this.onToggle,!1),this._enabled&&(document.addEventListener("visibilitychange",this.onToggle,!1),window.addEventListener("blur",this.onBlur,!1),window.addEventListener("focus",this.onFocus,!1),window.addEventListener("pagehide",this.onBlur,!1),window.addEventListener("pageshow",this.onFocus,!1),window.addEventListener("visibilitychange",this.onToggle,!1))}}]),t}(),xp=Dr.includes,Bp=Bo;hs({target:"Array",proto:!0,forced:G((function(){return!Array(1).includes()}))},{includes:function(t){return xp(this,t,arguments.length>1?arguments[1]:void 0)}}),Bp("includes");var Pp="\t\n\v\f\r                 \u2028\u2029\ufeff",Lp=St,_p=sf,Op=Pp,Ap=X("".replace),Vp=RegExp("^["+Op+"]+"),Cp=RegExp("(^|[^"+Op+"])["+Op+"]+$"),Dp=function(t){return function(e){var n=_p(Lp(e));return 1&t&&(n=Ap(n,Vp,"")),2&t&&(n=Ap(n,Cp,"$1")),n}},Mp={start:Dp(1),end:Dp(2),trim:Dp(3)},Tp=li.PROPER,Ip=G,Rp=Pp,jp=Mp.trim;hs({target:"String",proto:!0,forced:function(t){return Ip((function(){return!!Rp[t]()||"​…᠎"!=="​…᠎"[t]()||Tp&&Rp[t].name!==t}))}("trim")},{trim:function(){return jp(this)}});var Np=_n,Kp=Xt,Fp=On,Gp=uf,Up=RegExp.prototype,Hp=li.PROPER,zp=Ci,qp=Bn,Wp=sf,Xp=G,Yp=function(t){var e=t.flags;return void 0!==e||"flags"in Up||Kp(t,"flags")||!Fp(Up,t)?e:Np(Gp,t)},Jp="toString",$p=RegExp.prototype[Jp],Qp=Xp((function(){return"/a/b"!=$p.call({source:"a",flags:"b"})})),Zp=Hp&&$p.name!=Jp;(Qp||Zp)&&zp(RegExp.prototype,Jp,(function(){var t=qp(this);return"/"+Wp(t.source)+"/"+Wp(Yp(t))}),{unsafe:!0});var tv=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";qa(this,t),this.db=null,this.dbName=e}return Xa(t,[{key:"IDBOpen",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=n?indexedDB.open(t,n):indexedDB.open(t);s.onsuccess=function(t){e.db=t.target.result,e.db.version==n|null==n&&i({result:"Success: IDBOpen",success:!0})},s.onerror=function(){i({result:s.error.toString(),success:!1})},s.onupgradeneeded=function(t){e.db=t.target.result,null!=r&&(r.stores&&r.stores.forEach((function(t){e.db.createObjectStore(t.storeName,t.options)})),null!=r.indexes&&r.indexes.forEach((function(t){s.transaction.objectStore(t.storeName).createIndex(t.indexName,t.keyPath,t.options)}))),null!=o&&(null!=o.indexes&&o.indexes.forEach((function(t){s.transaction.objectStore(t.storeName).deleteIndex(t.indexName)})),o.stores&&o.stores.forEach((function(t){e.db.deleteObjectStore(t.storeName)}))),i({result:"Success: IDBOpen onupgradeneeded ran",success:!0})}}},{key:"IDBDeleteDB",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=null!=e?indexedDB.deleteDatabase(t,e):indexedDB.deleteDatabase(t);r.onsuccess=function(t){n({result:"Success: Database Deleted, returned: "+t.result,success:!0})},r.onerror=function(){n({result:r.error.toString(),success:!1})}}},{key:"IDBAdd",value:function(t,e,n,r){this.db||""==this.dbName||this.IDBOpen(this.dbName);var o=this.db.transaction(t,"readwrite");o.onerror=function(){return r({result:null!=o.error?o.error.toString():"Aborted: No error given, was the record already added?",success:!1})},o.onabort=function(){return r({result:null!=o.error?o.error.toString():"Aborted: No error given, was the record already added?",success:!1})},o.oncomplete=function(){return r({result:"Success: Record Added",success:!0})},o.objectStore(t).add(e,n)}},{key:"IDBUpdate",value:function(t,e,n,r){this.db||""==this.dbName||this.IDBOpen(this.dbName);var o=this.db.transaction(t,"readwrite").objectStore(t).put(n,e);o.onsuccess=function(){r({result:"Success: Record Updated",success:!0})},o.onerror=function(){return r({result:o.error.toString(),success:!1})}}},{key:"IDBRemove",value:function(t,e,n){var r=this;this.db||""==this.dbName||this.IDBOpen(this.dbName);var o=this.db.transaction(t,"readwrite");o.onerror=function(){return n({result:r.db.error.toString(),success:!1})},o.objectStore(t).delete(e),o.oncomplete=function(){return n({result:"Removed Successfully",success:!0})}}},{key:"IDBRead",value:function(t,e,n){var r=this,o=this.db.transaction(t,"readonly"),i=o.objectStore(t);o.onerror=function(){return n({result:r.db.error.toString(),success:!1})};var s=i.get(e);s.onsuccess=function(){n({result:s.result,success:null!=s.result})}}},{key:"IDBGetIndexKeys",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},s=this.db.transaction(t,"readonly"),a=s.objectStore(t);s.onerror=function(){return i({result:n.db.error.toString(),success:!1})},(r&&o?a.index(e,r,o):r?a.index(e,r):a.index(e)).getAllKeys().onsuccess=function(t){i({result:t.result,success:!0})}}},{key:"IDBReadAll",value:function(t,e,n){var r=this.db.transaction(t,"readonly"),o=r.objectStore(t),i=null!=e?o.getAll(null,e):o.getAll();r.onerror=function(){return n({result:r.error.toString(),success:!1})},i.onsuccess=function(){n({result:i.result,success:null!=i.result})}}},{key:"IDBGetVersion",value:function(t,e){var n=window.indexedDB.open(t);n.onerror=function(){e({result:n.error.toString(),success:!1})},n.onsuccess=function(){var t=n.result;e({result:t.version,success:!0})}}},{key:"IDBClose",value:function(t){this.db&&(this.db.close(),t({result:"Success: Closed Database Connection",success:!0}))}}],[{key:"remove",value:function(t){localStorage.removeItem(t),sessionStorage.removeItem(t)}},{key:"write",value:function(t,e){return arguments.length>2&&void 0!==arguments[2]&&arguments[2]?sessionStorage.setItem(t,JSON.stringify("function"==typeof e?e():e)):localStorage.setItem(t,JSON.stringify("function"==typeof e?e():e))}},{key:"read",value:function(t){var e=localStorage.getItem(t)||sessionStorage.getItem(t);if("string"!=typeof e)return e;try{return JSON.parse(e)}catch(t){return e}}}]),t}(),ev=function(){function t(e){qa(this,t),this.name=e,this.client=null}var e;return Xa(t,[{key:"preload",value:(e=za(Ga().mark((function t(e){var n;return Ga().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=e.client,this.client=n;case 2:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"start",value:function(){this.client.on("loaded",this.sendAllProperties),this.client.on("loadDone",this.sendAllProperties)}},{key:"init",value:function(t){}},{key:"sendProperty",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];tv.write(t,e),n||this.client.send(t,e)}},{key:"sendAllProperties",value:function(t){}},{key:"warn",value:function(t){console.warn("[SpringRollContainer] ".concat(this.name,": ").concat(t))}}]),t}(),nv=function(t){Ya(n,ev);var e=tu(n);function n(t){var r;return qa(this,n),(r=e.call(this,t)).sendMutes=!1,r}return Xa(n,[{key:"init",value:function(t){this.sendMutes=!0}},{key:"_disableButton",value:function(t){t instanceof HTMLButtonElement&&(t.classList.remove("enabled"),t.classList.add("disabled"))}},{key:"reset",value:function(){this.sendMutes=!1}},{key:"_setMuteProp",value:function(t,e,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];Array.isArray(e)?e.forEach((function(t){return r.changeMutedState(t,n)})):this.changeMutedState(e,n),this.sendProperty(t,n,o)}},{key:"changeMutedState",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.button?t.button:t;n instanceof HTMLElement&&(n.classList.remove("unmuted"),n.classList.remove("muted"),n.classList.add(e?"muted":"unmuted"))}}]),n}(),rv=M,ov=Q,iv=Se("match"),sv=function(t){var e;return rv(t)&&(void 0!==(e=t[iv])?!!e:"RegExp"==ov(t))},av=TypeError,uv=Se("match"),lv=hs,cv=function(t){if(sv(t))throw av("The method doesn't accept regular expressions");return t},dv=St,hv=sf,fv=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[uv]=!1,"/./"[t](e)}catch(t){}}return!1},pv=X("".indexOf);lv({target:"String",proto:!0,forced:!fv("includes")},{includes:function(t){return!!~pv(hv(dv(this)),hv(cv(t)),arguments.length>1?arguments[1]:void 0)}});var vv={exports:{}},yv={},gv=_r,mv=Ct,bv=pu,Sv=Array,wv=Math.max,kv=Q,Ev=Er,xv=Di.f,Bv=function(t,e,n){for(var r=mv(t),o=gv(e,r),i=gv(void 0===n?r:n,r),s=Sv(wv(i-o,0)),a=0;o1?arguments[1]:void 0);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!u(this,t)}}),by(i,n?{get:function(t){var e=u(this,t);return e&&e.value},set:function(t,e){return a(this,0===t?0:t,e)}}:{add:function(t){return a(this,t=0===t?0:t,t)}}),Ly&&my(i,"size",{configurable:!0,get:function(){return s(this).size}}),o},setStrong:function(t,e,n){var r=e+" Iterator",o=Ay(e),i=Ay(r);xy(t,e,(function(t,e){Oy(this,{type:r,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=i(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?By("keys"==e?n.key:"values"==e?n.value:[n.key,n.value],!1):(t.target=void 0,By(void 0,!0))}),n?"entries":"values",!n,!0),Py(e)}};(function(t,e,n){var r=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=r?"set":"add",s=ny[t],a=s&&s.prototype,u=s,l={},c=function(t){var e=ry(a[t]);iy(a,t,"add"==t?function(t){return e(this,0===t?0:t),this}:"delete"==t?function(t){return!(o&&!dy(t))&&e(this,0===t?0:t)}:"get"==t?function(t){return o&&!dy(t)?void 0:e(this,0===t?0:t)}:"has"==t?function(t){return!(o&&!dy(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})};if(oy(t,!ly(s)||!(o||a.forEach&&!hy((function(){(new s).entries().next()})))))u=n.getConstructor(e,t,r,i),sy.enable();else if(oy(t,!0)){var d=new u,h=d[i](o?{}:-0,1)!=d,f=hy((function(){d.has(1)})),p=fy((function(t){new s(t)})),v=!o&&hy((function(){for(var t=new s,e=5;e--;)t[i](e,e);return!t.has(-0)}));p||((u=e((function(t,e){uy(t,a);var n=vy(new s,t,u);return cy(e)||ay(e,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=a,a.constructor=u),(f||v)&&(c("delete"),c("has"),r&&c("get")),(v||h)&&c(i),o&&a.clear&&delete a.clear}l[t]=u,ey({global:!0,constructor:!0,forced:u!=s},l),py(u,t),o||n.setStrong(u,t,r)})("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),Vy);var Cy=Et,Dy=Hr;hs({target:"Object",stat:!0,forced:G((function(){Dy(1)}))},{keys:function(t){return Dy(Cy(t))}});var My=hn.map;hs({target:"Array",proto:!0,forced:!mu("map")},{map:function(t){return My(this,t,arguments.length>1?arguments[1]:void 0)}});var Ty=gn,Iy=X,Ry=Hr,jy=Er,Ny=Iy(Ho.f),Ky=Iy([].push),Fy=function(t){return function(e){for(var n,r=jy(e),o=Ry(r),i=o.length,s=0,a=[];i>s;)n=o[s++],Ty&&!Ny(r,n)||Ky(a,t?[n,r[n]]:r[n]);return a}},Gy={entries:Fy(!0),values:Fy(!1)}.values;hs({target:"Object",stat:!0},{values:function(t){return Gy(t)}});var Uy=function(t){Ya(n,ev);var e=tu(n);function n(t){var r,o=t.selector,i=t.controlName,s=t.featureName,a=void 0===s?"captionStyles":s,u=t.defaultValue,l=t.pluginName;return qa(this,n),(r=e.call(this,l)).controlName=i,r.featureName=a,r.radioElements=document.querySelectorAll(o),r.defaultValue=u,r.radioGroup={},r.radioElements.length<=0?(r.warn("".concat(r.controlName," RadioGroup found no HTMLElements with selector: ").concat(o)),Za(r)):(r.radioElements.forEach((function(t){"radio"===t.type?(t.value=t.value.toLowerCase(),r.radioGroup[t.value]=t):r.warn("".concat(r.controlName," was provided a non Radio Button element with selector: ").concat(o))})),r.radioGroup[r.defaultValue]||(r.warn("".concat(r.controlName," RadioGroup for selector: ").concat(o," does not have a radio button with value ").concat(r.defaultValue," to use as default value. Using first element as default")),r.defaultValue=r.radioElements[0].value.toLowerCase()),r.radioGroup[r.defaultValue].checked=!0,r)}return Xa(n,[{key:"hasOnly",value:function(t){for(var e in this.radioGroup)if(!t.includes(this.radioGroup[e].value))return this.warn("".concat(this.controlName," radio button value: ").concat(this.radioGroup[e].value," is not an accepted value. Skipping radio group")),!1;return!0}},{key:"hasDuplicateValues",value:function(){return this.values.length!==eu(new Set(this.values)).length}},{key:"enableRadioEvents",value:function(t){if(!(!this.radioGroup.length<=0)){var e=t;for(var n in this.radioGroup)this.radioGroup[n].addEventListener("change",e)}}},{key:"disableRadioEvents",value:function(t){if(!(!this.radioGroup.length<=0))for(var e in this.radioGroup)this.radioGroup[e].removeEventListener("change",t)}},{key:"displayRadios",value:function(t){if(this.radioGroup.length<=0&&t[this.featureName])this.warn("".concat(this.controlName," was not provided a valid input element or selector but '").concat(this.featureName,"' was included as a game feature"));else if(!(this.radioGroup.length<=0||t[this.featureName]))for(var e in this.radioGroup)this.radioGroup[e].style.display="none"}},{key:"resetState",value:function(){this.radioGroup[this.defaultValue].checked=!0}},{key:"length",get:function(){return Object.keys(this.radioGroup).length}},{key:"values",get:function(){return Object.values(this.radioGroup).map((function(t){return t.value}))}}]),n}(),Hy=function(t){Ya(n,ev);var e=tu(n);function n(t,r,o){var i,s=o.supportedValues,a=o.initialValue,u=o.controlName,l=o.featureName,c=o.radioCount;return qa(this,n),(i=e.call(this,r)).selectors=t?t.split(","):[],i.supportedValues=s,i.initialValue=s.includes(a)?a:s[0],i.controlName=u,i.featureName=l,i.radioCount=c,i.sendAllProperties=i.sendAllProperties.bind(Qa(i)),i._currentValue=i.initialValue,i.radioGroups=i.setUpRadios(i.selectors),i.radioGroupsLength=i.radioGroups.length,i}return Xa(n,[{key:"setUpRadios",value:function(t){var e=this,n=[];return t.forEach((function(t){var r=new Uy({selector:t.trim(),controlName:e.controlName,defaultValue:e.initialValue,pluginName:e.name,featureName:e.featureName});r.length===e.radioCount?r.hasOnly(e.supportedValues)&&(r.hasDuplicateValues()?e.warn("Duplicate radio button values detected (values: ".concat(r.values," ). Skipping radio group")):n.push(r)):e.warn('Selector "'.concat(t,'" did not find exactly ').concat(e.radioCount," radio buttons for ").concat(e.controlName,". Skipping selector"))})),n}},{key:"start",value:function(){this.client.on("loaded",this.sendAllProperties),this.client.on("loadDone",this.sendAllProperties)}},{key:"sendAllProperties",value:function(){this.sendProperty(this.featureName,this.property)}},{key:"currentValue",get:function(){return this._currentValue},set:function(t){if(this.supportedValues.includes(t)){this._currentValue=t;for(var e=0,n=this.radioGroups.length;e2)if(l=ug(l),43===(e=pg(l,0))||45===e){if(88===(n=pg(l,2))||120===n)return NaN}else if(48===e){switch(pg(l,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+l}for(s=(i=fg(l,2)).length,a=0;ao)return NaN;return parseInt(i,r)}return+l},yg=$y(lg,!cg(" 0o1")||!cg("0b1")||cg("+0x1")),gg=function(t){var e,n=arguments.length<1?0:cg(function(t){var e=ng(t,"number");return"bigint"==typeof e?e:vg(e)}(t));return tg(dg,e=this)&&rg((function(){ag(e)}))?Zy(Object(n),this,gg):n};gg.prototype=dg,yg&&(dg.constructor=gg),qy({global:!0,constructor:!0,wrap:!0,forced:yg},{Number:gg});yg&&function(t,e){for(var n,r=Wy?og(e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;r.length>o;o++)Qy(e,n=r[o])&&!Qy(t,n)&&sg(t,n,ig(e,n))}(Yy[lg],cg);var mg=function(){function t(e){var n=e.slider,r=e.control,o=e.min,i=void 0===o?0:o,s=e.max,a=void 0===s?1:s,u=e.step,l=void 0===u?.1:u,c=e.defaultValue,d=void 0===c?1:c;qa(this,t),this.min=i,this.max=a,this.step=l,this.sliderValue=d,this.control=r,this.slider=this.setUpSlider(n,r)}return Xa(t,[{key:"setUpSlider",value:function(t,e){if("string"==typeof t&&(t=document.querySelector(t)),!t||"range"!==t.type)return null;var n=tv.read(e);return t.min=this.min,t.max=this.max,t.step=this.step,(n||0===n)&&n.toString().trim().length>0?(t.value=n,this.sliderValue=n):t.value=this.sliderValue,t}},{key:"sliderRange",value:function(t){return tthis.max?this.max:t}},{key:"enableSliderEvents",value:function(t){if(this.slider){var e=t;this.slider.addEventListener("change",e),this.slider.addEventListener("input",e)}}},{key:"disableSliderEvents",value:function(t){if(this.slider){var e=t;this.slider.removeEventListener("change",e),this.slider.removeEventListener("input",e)}}},{key:"displaySlider",value:function(t){!this.slider&&t[this.control]&&console.warn("".concat(this.control," was not provided a valid input element or selector but was included as a game feature")),this.slider&&(this.slider.style.display=t[this.control]?"":"none")}},{key:"dispatchEvent",value:function(t){this.slider.dispatchEvent(t)}},{key:"value",get:function(){return this.slider.value},set:function(t){this.slider.value=t}}]),t}(),bg=function(){function t(e){var n=e.button,r=e.onClick,o=e.channel;qa(this,t),this.button=n instanceof HTMLElement?n:document.querySelector(n),this.onClick=r,this.channel=o,this.button&&this.button.addEventListener("click",r)}return Xa(t,[{key:"displayButton",value:function(t){this.button instanceof HTMLElement&&(this.button.style.display=t[this.channel]||"pause"===this.channel||"hints"===this.channel?"":"none")}},{key:"enableButton",value:function(){this.button&&this.button.classList.remove("disabled")}},{key:"addClass",value:function(t){this.button.className=this.button.className?this.button.className+" ".concat(t):" ".concat(t)}}]),t}(),Sg=function(t){Ya(n,ev);var e=tu(n);function n(t,r,o){var i,s=o.defaultValue,a=void 0===s?"0.5":s,u=o.minValue,l=void 0===u?"0":u,c=o.maxValue,d=void 0===c?"1":c,h=o.featureName;return qa(this,n),(i=e.call(this,r)).featureName=h,i.minValue=l,i.defaultValue=a,i.maxValue=d,i._currentValue=a,i.sliders=i.setUpSliders(t),i.slidersLength=i.sliders.length,i.sendAllProperties=i.sendAllProperties.bind(Qa(i)),0>=i.slidersLength?(i.warn("Plugin was not provided any valid HTML Elements"),Za(i)):i}return Xa(n,[{key:"setUpSliders",value:function(t){var e=this,n=[];return t instanceof HTMLElement?n.push(new mg({slider:t,control:this.featureName,defaultValue:this.defaultValue,minValue:this.minValue,maxValue:this.maxValue})):document.querySelectorAll(t).forEach((function(t){n.push(new mg({slider:t,control:e.featureName,defaultValue:e.defaultValue,minValue:e.minValue,maxValue:e.maxValue}))})),n}},{key:"init",value:function(){this.client.on("features",function(t){if(t.data)for(var e=0;e3&&void 0!==arguments[3]?arguments[3]:{},a=s.defaultFontSize,u=void 0===a?"medium":a,l=s.defaultColor,c=void 0===l?"default":l,d=s.defaultAlignment,h=void 0===d?"top":d;if(qa(this,n),(i=e.call(this,"Caption-Style-Plugin")).sendAllProperties=i.sendAllProperties.bind(Qa(i)),i.captionsStyles=Object.assign({},wg,tv.read(n.captionStyleKey)||{}),i.fontSizeSelectors=t?t.split(","):[],i.colorSelectors=r?r.split(","):[],i.alignmentSelectors=o?o.split(","):[],i.defaultFontSize=xg.includes(u)?u:xg[0],i.defaultColor=Bg.includes(c)?c:Bg[0],i.defaultAlignment=Pg.includes(h)?h:Pg[0],i.fontSizeRadios=[],i.colorRadios=[],i.alignmentRadios=[],i.fontSizeRadios=i.setUpFontSizeRadios(i.fontSizeSelectors),i.colorRadios=i.setUpColorRadios(i.colorSelectors),i.alignmentRadios=i.setUpAlignmentRadios(i.alignmentSelectors),i._captionsMuted=!1,i.alignmentRadiosLength=i.alignmentRadios.length,i.fontSizeRadiosLength=i.fontSizeRadios.length,i.colorRadiosLength=i.colorRadios.length,0>=i.alignmentRadiosLength+i.fontSizeRadiosLength+i.colorRadiosLength)return i.warn("Plugin was not provided any input elements"),Za(i);for(var f=0;f0&&void 0!==arguments[0]?arguments[0]:wg,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";"object"===Ua(e)?Object.assign(this.captionsStyles,e):"string"==typeof e&&(this.captionsStyles[e]=r),this.colorRadios.forEach((function(e){var n="white"===t.captionsStyles.color?"default":"inverted";e.radioGroup[n].checked=!0})),this.alignmentRadios.forEach((function(e){e.radioGroup[t.captionsStyles.align].checked=!0})),this.fontSizeRadios.forEach((function(e){e.radioGroup[t.captionsStyles.size].checked=!0})),tv.write(n.captionStyleKey,this.captionsStyles),this.client&&this.client.send(n.captionStyleKey,this.captionsStyles)}},{key:"radios",get:function(){return this.colorRadios.concat(this.alignmentRadios).concat(this.fontSizeRadios)}}],[{key:"captionStyleKey",get:function(){return"captionsStyles"}}]),n}(),_g=function(t){Ya(n,nv);var e=tu(n);function n(t){var r;return qa(this,n),(r=e.call(this,"Caption-Button-Plugin")).sendAllProperties=r.sendAllProperties.bind(Qa(r)),r._captionsButtons=[],t instanceof HTMLElement?r._captionsButtons[0]=new bg({button:t,onClick:r.captionsButtonClick.bind(Qa(r)),channel:"captions"}):document.querySelectorAll(t).forEach((function(t){r._captionsButtons.push(new bg({button:t,onClick:r.captionsButtonClick.bind(Qa(r)),channel:"captions"}))})),r._captionsMuted=!1,r.captionsButtonLength=r._captionsButtons.length,0>=r.captionsButtonLength?(r.warn("Plugin was not provided any valid button or input elements"),Za(r)):r}return Xa(n,[{key:"init",value:function(){this.client.on("features",function(t){for(var e=0;e1&&void 0!==arguments[1])||arguments[1];qa(this,n),(r=e.call(this,"Pause-Button-plugin"))._manageOwnVisibility=o,r._appBlurred=!1,r._containerBlurred=!1,r._focusTimer=null,r._isManualPause=!1,r._keepFocus=!1,r._paused=!1,r.iframe=null,r.focusApp=r.focusApp.bind(Qa(r)),r.manageFocus=r.manageFocus.bind(Qa(r)),r.onKeepFocus=r.onKeepFocus.bind(Qa(r)),r.onFocus=r.onFocus.bind(Qa(r));var i=r.onPauseToggle.bind(Qa(r));return r.pauseDisabled=!1,r._pauseButton=[],r.pageVisibility=new Ep(r.onContainerFocus.bind(Qa(r)),r.onContainerBlur.bind(Qa(r))),r.pageVisibility.enabled=r.manageOwnVisibility,t instanceof HTMLElement?r._pauseButton[0]=new bg({button:t,onClick:i,channel:n.pauseKey}):document.querySelectorAll(t).forEach((function(t){r._pauseButton.push(new bg({button:t,onClick:i,channel:n.pauseKey}))})),r}return Xa(n,[{key:"pause",get:function(){return this._paused},set:function(t){if(t=!!t,!this.pauseDisabled){this._paused=t,this.client.send(n.pauseKey,t),this.client.trigger(t?"paused":"resumed",{paused:t});for(var e=0,r=this._pauseButton.length;e0&&void 0!==arguments[0]?arguments[0]:{},o=r.soundButtons,i=r.musicButtons,s=r.sfxButtons,a=r.voButtons,u=r.soundSliders,l=r.musicSliders,c=r.sfxSliders,d=r.voSliders;qa(this,n),t=e.call(this,"Sound-Button-Plugin");var h=tv.read(n.soundMutedKey);if(t.sendAllProperties=t.sendAllProperties.bind(Qa(t)),t._soundMuted=h||!1,t._musicMuted=!1,t._voMuted=!1,t._sfxMuted=!1,t._musicMutedByUser=!1,t._soundMutedByUser=!1,t._sfxMutedByUser=!1,t._voMutedByUser=!1,t.soundMuteEnabled=!1,t.musicMuteEnabled=!1,t.sfxMuteEnabled=!1,t.voMuteEnabled=!1,t.soundVolume=1,t.musicVolume=1,t.sfxVolume=1,t.voVolume=1,t.soundSliders=[],t.musicSliders=[],t.sfxSliders=[],t.voSliders=[],t.soundButtons=[],t.musicButtons=[],t.sfxButtons=[],t.voButtons=[],u instanceof HTMLElement?t.soundSliders[0]=new mg({slider:u,control:n.soundVolumeKey,defaultValue:t.soundVolume}):document.querySelectorAll(u).forEach((function(e){var r=new mg({slider:e,control:n.soundVolumeKey,defaultValue:t.soundVolume});r.slider&&t.soundSliders.push(r)})),l instanceof HTMLElement?t.musicSliders[0]=new mg({slider:l,control:n.musicVolumeKey,defaultValue:t.musicVolume}):document.querySelectorAll(l).forEach((function(e){var r=new mg({slider:e,control:n.musicVolumeKey,defaultValue:t.musicVolume});r.slider&&t.musicSliders.push(r)})),c instanceof HTMLElement?t.sfxSliders[0]=new mg({slider:c,control:n.sfxVolumeKey,defaultValue:t.sfxVolume}):document.querySelectorAll(c).forEach((function(e){var r=new mg({slider:e,control:n.sfxVolumeKey,defaultValue:t.sfxVolume});r.slider&&t.sfxSliders.push(r)})),d instanceof HTMLElement?t.voSliders[0]=new mg({slider:d,control:n.voVolumeKey,defaultValue:t.voVolume}):document.querySelectorAll(d).forEach((function(e){var r=new mg({slider:e,control:n.voVolumeKey,defaultValue:t.voVolume});r.slider&&t.voSliders.push(r)})),o instanceof HTMLElement?t.soundButtons[0]=new bg({button:o,onClick:t.onSoundToggle.bind(Qa(t)),channel:n.soundKey}):document.querySelectorAll(o).forEach((function(e){t.soundButtons.push(new bg({button:e,onClick:t.onSoundToggle.bind(Qa(t)),channel:n.soundKey}))})),i instanceof HTMLElement?t.musicButtons[0]=new bg({button:i,onClick:t.onMusicToggle.bind(Qa(t)),channel:"music"}):document.querySelectorAll(i).forEach((function(e){t.musicButtons.push(new bg({button:e,onClick:t.onMusicToggle.bind(Qa(t)),channel:"music"}))})),s instanceof HTMLElement?t.sfxButtons[0]=new bg({button:s,onClick:t.onSFXToggle.bind(Qa(t)),channel:"sfx"}):document.querySelectorAll(s).forEach((function(e){t.sfxButtons.push(new bg({button:e,onClick:t.onSFXToggle.bind(Qa(t)),channel:"sfx"}))})),a instanceof HTMLElement?t.voButtons[0]=new bg({button:a,onClick:t.onVOToggle.bind(Qa(t)),channel:"vo"}):document.querySelectorAll(a).forEach((function(e){t.voButtons.push(new bg({button:e,onClick:t.onVOToggle.bind(Qa(t)),channel:"vo"}))})),t.soundSlidersLength=t.soundSliders.length,t.musicSlidersLength=t.musicSliders.length,t.sfxSlidersLength=t.sfxSliders.length,t.voSlidersLength=t.voSliders.length,t.soundButtonsLength=t.soundButtons.length,t.musicButtonsLength=t.musicButtons.length,t.sfxButtonsLength=t.sfxButtons.length,t.voButtonsLength=t.voButtons.length,0>=t.soundSlidersLength+t.musicSlidersLength+t.sfxSlidersLength+t.voSlidersLength+t.soundButtonsLength+t.musicButtonsLength+t.sfxButtonsLength+t.voButtonsLength)return t.warn("Plugin was not provided any valid HTML Elements"),Za(t);for(var f=0;f3&&void 0!==arguments[3]&&arguments[3];this["_"+t]=e,this._setMuteProp(t,n,e,r)}},{key:"init",value:function(){this.client.on("features",function(t){if(t.data){this.soundMuteEnabled=!!t.data.sound,this.musicMuteEnabled=!!t.data.music,this.sfxMuteEnabled=!!t.data.sfx,this.voMuteEnabled=!!t.data.vo,this.soundVolumeEnabled=!!t.data.soundVolume,this.musicVolumeEnabled=!!t.data.musicVolume,this.sfxVolumeEnabled=!!t.data.sfxVolume,this.voVolumeEnabled=!!t.data.voVolume;for(var e=0;e1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;this.savedData=new tv,this.savedData.IDBOpen(t,e,n,r,o)}},{key:"IDBAdd",value:function(t,e,n,r){this.savedData.IDBAdd(t,e,n,r)}},{key:"IDBUpdate",value:function(t,e,n,r){this.savedData.IDBUpdate(t,e,n,r)}},{key:"IDBRemove",value:function(t,e,n){this.savedData.IDBRemove(t,e,n)}},{key:"IDBRead",value:function(t,e,n){this.savedData.IDBRead(t,e,n)}},{key:"IDBReadAll",value:function(t,e,n){this.savedData.IDBReadAll(t,e,n)}},{key:"IDBGetVersion",value:function(t,e){new tv(t).IDBGetVersion(t,e)}},{key:"IDBClose",value:function(t){this.savedData.IDBClose(t)}},{key:"IDBDeleteDB",value:function(t,e,n){new tv(t).IDBDeleteDB(t,e,n)}}],[{key:"remove",value:function(t,e){tv.remove(t),e()}},{key:"write",value:function(t,e,n){tv.write(t,e),n()}},{key:"read",value:function(t,e){e(tv.read(t))}}]),t}(),Dg=function(t){Ya(n,ev);var e=tu(n);function n(){var t;return qa(this,n),(t=e.call(this,"UserData-Plugin")).onUserDataRemove=t.onUserDataRemove.bind(Qa(t)),t.onUserDataRead=t.onUserDataRead.bind(Qa(t)),t.onUserDataWrite=t.onUserDataWrite.bind(Qa(t)),t.onIDBAdd=t.onIDBAdd.bind(Qa(t)),t.onIDBOpen=t.onIDBOpen.bind(Qa(t)),t.onIDBRead=t.onIDBRead.bind(Qa(t)),t.onIDBReadAll=t.onIDBReadAll.bind(Qa(t)),t.onIDBRemove=t.onIDBRemove.bind(Qa(t)),t.onIDBUpdate=t.onIDBUpdate.bind(Qa(t)),t.onIDBUpdate=t.onIDBUpdate.bind(Qa(t)),t.onIDBClose=t.onIDBClose.bind(Qa(t)),t.IDBReadAll=t.onIDBReadAll.bind(Qa(t)),t.onIDBGetVersion=t.onIDBGetVersion.bind(Qa(t)),t.onIDBDeleteDB=t.onIDBDeleteDB.bind(Qa(t)),t.savedDataHandler=null,t}return Xa(n,[{key:"init",value:function(){this.client.on("userDataRemove",this.onUserDataRemove),this.client.on("userDataRead",this.onUserDataRead),this.client.on("userDataWrite",this.onUserDataWrite),this.client.on("IDBOpen",this.onIDBOpen),this.client.on("IDBRead",this.onIDBRead),this.client.on("IDBReadAll",this.onIDBReadAll),this.client.on("IDBAdd",this.onIDBAdd),this.client.on("IDBRemove",this.onIDBRemove),this.client.on("IDBUpdate",this.onIDBUpdate),this.client.on("IDBClose",this.onIDBClose),this.client.on("IDBGetVersion",this.onIDBGetVersion),this.client.on("IDBDeleteDB",this.onIDBDeleteDB)}},{key:"onUserDataRemove",value:function(t){var e=this,n=t.data,r=t.type;Cg.remove(n,(function(){e.client.send(r)}))}},{key:"onUserDataRead",value:function(t){var e=this,n=t.data,r=t.type;Cg.read(n,(function(t){return e.client.send(r,t)}))}},{key:"onUserDataWrite",value:function(t){var e=this,n=t.type,r=t.data,o=r.name,i=r.value;Cg.write(o,i,(function(){return e.client.send(n)}))}},{key:"onIDBOpen",value:function(t){var e=this,n=t.type,r=t.data,o=r.dbName,i=r.dbVersion,s=void 0===i?null:i,a=r.additions,u=void 0===a?{}:a,l=r.deletions,c=void 0===l?{}:l;this.savedDataHandler=new Cg,this.savedDataHandler.IDBOpen(o,s,u,c,(function(t){return e.client.send(n,t)}))}},{key:"onIDBAdd",value:function(t){var e=this,n=t.type,r=t.data,o=r.storeName,i=r.value,s=r.key;this.savedDataHandler.IDBAdd(o,i,s,(function(t){return e.client.send(n,t)}))}},{key:"onIDBUpdate",value:function(t){var e=this,n=t.type,r=t.data,o=r.storeName,i=r.key,s=r.value;this.savedDataHandler.IDBUpdate(o,i,s,(function(t){return e.client.send(n,t)}))}},{key:"onIDBRemove",value:function(t){var e=this,n=t.type,r=t.data,o=r.storeName,i=r.key;this.savedDataHandler.IDBRemove(o,i,(function(t){return e.client.send(n,t)}))}},{key:"onIDBRead",value:function(t){var e=this,n=t.type,r=t.data,o=r.storeName,i=r.key;this.savedDataHandler.IDBRead(o,i,(function(t){return e.client.send(n,t)}))}},{key:"onIDBReadAll",value:function(t){var e=this,n=t.type,r=t.data,o=r.storeName,i=r.count;this.savedDataHandler.IDBReadAll(o,i,(function(t){return e.client.send(n,t)}))}},{key:"onIDBGetVersion",value:function(t){var e=this,n=t.type,r=t.data.dbName;(new Cg).IDBGetVersion(r,(function(t){return e.client.send(n,t)}))}},{key:"onIDBClose",value:function(t){var e=this,n=t.type;this.savedDataHandler.IDBClose((function(t){return e.client.send(n,t)}))}},{key:"onIDBDeleteDB",value:function(t){var e=this,n=t.type,r=t.data,o=r.dbName,i=r.options;(new Cg).IDBDeleteDB(o,i,(function(t){return e.client.send(n,t)}))}}]),n}(),Mg=function(t){Ya(n,Sg);var e=tu(n);function n(t){var r,o=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).defaultPointerSize,i=void 0===o?.5:o;qa(this,n),r=e.call(this,t,"UISize-Pointer-Plugin",{defaultValue:i,featureName:n.pointerSizeKey});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultButtonSize,i=void 0===o?.5:o;qa(this,n),r=e.call(this,t,"UISize-Button-Plugin",{defaultValue:i,featureName:n.buttonSizeKey});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultSensitivity,i=void 0===o?.5:o;qa(this,n),(r=e.call(this,t,"Control-Sensitivity-Plugin",{defaultValue:i,featureName:n.controlSensitivityKey})).sendAllProperties=r.sendAllProperties.bind(Qa(r));for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).customClassName,i=void 0===o?"springrollContainerKeyBinding__button":o;return qa(this,n),(r=e.call(this,"Keyboard-Map-Plugin")).sendAllProperties=r.sendAllProperties.bind(Qa(r)),r.bindKey=r.bindKey.bind(Qa(r)),r.onKeyButtonClick=r.onKeyButtonClick.bind(Qa(r)),r.className=i,r.keyContainers=t instanceof HTMLElement?[t]:document.querySelectorAll(t),r.keyBindings={},r.buttons=[],r.activekeyButton,r.sendAfterFetch=!1,r.canEmit=!1,r.keyContainersLength=r.keyContainers.length,r.keyContainersLength<=0?(r.warn("plugin was not provided any valid key binding container elements"),Za(r)):r}return Xa(n,[{key:"onKeyButtonClick",value:function(t){for(var e=0,n=this.buttons.length;e1&&void 0!==arguments[1]?arguments[1]:{}).defaultValue,i=void 0===o?0:o;qa(this,n),r=e.call(this,t,"Layer-Plugin",{defaultValue:i,featureName:n.layersSliderKey});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultValue,i=void 0===o?Ng[0]:o;qa(this,n),(r=e.call(this,t,"HUD-Layout-Plugin",{supportedValues:Ng,initialValue:i,controlName:"Hud Selector",featureName:n.hudPositionKey,radioCount:Ng.length})).sendAllProperties=r.sendAllProperties.bind(Qa(r)),r.sendAfterFetch=!1,r.canEmit=!1,r.positions=[],r.radioGroupsLength<=0&&r.warn("Plugin was not provided any valid HTML elements");for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultValue,i=void 0===o?Fg[0]:o;if(qa(this,n),(r=e.call(this,t,"Color-Filter-Plugin",{supportedValues:Fg,initialValue:i,controlName:"Color Vision Selector",featureName:n.colorVisionKey,radioCount:Fg.length})).sendAllProperties=r.sendAllProperties.bind(Qa(r)),r.sendAfterFetch=!1,r.canEmit=!1,r.colors=[],r.radioGroupsLength<=0)return r.warn("Plugin was not provided any valid HTML elements"),Za(r);for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultHitAreaScale,i=void 0===o?.5:o;qa(this,n),r=e.call(this,t,"Hit-Area-Scale-Plugin",{defaultValue:i,featureName:n.hitAreaScaleKey});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultDragThresholdScale,i=void 0===o?.5:o;qa(this,n),r=e.call(this,t,"Drag-Threshold-Scale-Plugin",{defaultValue:i,featureName:n.dragThresholdScaleKey});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultHealth,i=void 0===o?.5:o;qa(this,n),r=e.call(this,t,"Health-Scale-Plugin",{defaultValue:i,featureName:n.healthKey});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultObjectCount,i=void 0===o?.5:o;qa(this,n),r=e.call(this,t,"Object-Count-Plugin",{defaultValue:i,featureName:n.objectCountKey});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultCompletionPercentage,i=void 0===o?.5:o;qa(this,n),r=e.call(this,t,"Completion-Percentage-Plugin",{defaultValue:i,featureName:n.completionPercentageKey});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultSpeedScale,i=void 0===o?.5:o;qa(this,n),r=e.call(this,t,"Speed-Scale-Plugin",{defaultValue:i,featureName:n.speedScaleKey});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultTimersScale,i=void 0===o?.5:o;qa(this,n),r=e.call(this,t,"Timers-Scale-Plugin",{defaultValue:i,featureName:n.timersScaleKey});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultInputCount,i=void 0===o?.5:o;qa(this,n),r=e.call(this,t,"Input-Count-Plugin",{defaultValue:i,featureName:n.inputCountKey});for(var s=0;s-1};function u(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function l(t){return"string"!=typeof t&&(t=String(t)),t}function c(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return n&&(e[Symbol.iterator]=function(){return e}),e}function d(t){this.map={},t instanceof d?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function h(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function f(t){return new Promise((function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}}))}function p(t){var e=new FileReader,n=f(e);return e.readAsArrayBuffer(t),n}function v(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(t){var n;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:r&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:e&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():i&&r&&((n=t)&&DataView.prototype.isPrototypeOf(n))?(this._bodyArrayBuffer=v(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i&&(ArrayBuffer.prototype.isPrototypeOf(t)||a(t))?this._bodyArrayBuffer=v(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):e&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},r&&(this.blob=function(){var t=h(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var t=h(this);return t||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(p)}),this.text=function(){var t=h(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,n=f(e);return e.readAsText(t),n}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r-1?e:t}(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache)){var r=/([?&])_=[^&]*/;if(r.test(this.url))this.url=this.url.replace(r,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function b(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(o))}})),e}function S(t,e){if(!(this instanceof S))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new d(e.headers),this.url=e.url||"",this._initBody(t)}m.prototype.clone=function(){return new m(this,{body:this._bodyInit})},y.call(m.prototype),y.call(S.prototype),S.prototype.clone=function(){return new S(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},S.error=function(){var t=new S(null,{status:0,statusText:""});return t.type="error",t};var w=[301,302,303,307,308];S.redirect=function(t,e){if(-1===w.indexOf(e))throw new RangeError("Invalid status code");return new S(null,{status:e,headers:{location:t}})};var k=t.DOMException;try{new k}catch(t){(k=function(t,e){this.message=t,this.name=e;var n=Error(t);this.stack=n.stack}).prototype=Object.create(Error.prototype),k.prototype.constructor=k}function E(e,n){return new Promise((function(o,s){var a=new m(e,n);if(a.signal&&a.signal.aborted)return s(new k("Aborted","AbortError"));var u=new XMLHttpRequest;function c(){u.abort()}u.onload=function(){var t,e,n={status:u.status,statusText:u.statusText,headers:(t=u.getAllResponseHeaders()||"",e=new d,t.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t})).forEach((function(t){var n=t.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();e.append(r,o)}})),e)};n.url="responseURL"in u?u.responseURL:n.headers.get("X-Request-URL");var r="response"in u?u.response:u.responseText;setTimeout((function(){o(new S(r,n))}),0)},u.onerror=function(){setTimeout((function(){s(new TypeError("Network request failed"))}),0)},u.ontimeout=function(){setTimeout((function(){s(new TypeError("Network request failed"))}),0)},u.onabort=function(){setTimeout((function(){s(new k("Aborted","AbortError"))}),0)},u.open(a.method,function(e){try{return""===e&&t.location.href?t.location.href:e}catch(t){return e}}(a.url),!0),"include"===a.credentials?u.withCredentials=!0:"omit"===a.credentials&&(u.withCredentials=!1),"responseType"in u&&(r?u.responseType="blob":i&&a.headers.get("Content-Type")&&-1!==a.headers.get("Content-Type").indexOf("application/octet-stream")&&(u.responseType="arraybuffer")),!n||"object"!=typeof n.headers||n.headers instanceof d?a.headers.forEach((function(t,e){u.setRequestHeader(e,t)})):Object.getOwnPropertyNames(n.headers).forEach((function(t){u.setRequestHeader(t,l(n.headers[t]))})),a.signal&&(a.signal.addEventListener("abort",c),u.onreadystatechange=function(){4===u.readyState&&a.signal.removeEventListener("abort",c)}),u.send(void 0===a._bodyInit?null:a._bodyInit)}))}E.polyfill=!0,t.fetch||(t.fetch=E,t.Headers=d,t.Request=m,t.Response=S);var B="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},x=function(t){return t&&t.Math==Math&&t},P=x("object"==typeof globalThis&&globalThis)||x("object"==typeof window&&window)||x("object"==typeof self&&self)||x("object"==typeof B&&B)||function(){return this}()||Function("return this")(),L={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},_="object"==typeof document&&document.all,O={all:_,IS_HTMLDDA:void 0===_&&void 0!==_},A=O.all,V=O.IS_HTMLDDA?function(t){return"function"==typeof t||t===A}:function(t){return"function"==typeof t},C=V,D=O.all,M=O.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:C(t)||t===D}:function(t){return"object"==typeof t?null!==t:C(t)},T=M,I=P.document,R=T(I)&&T(I.createElement),j=function(t){return R?I.createElement(t):{}},N=j("span").classList,K=N&&N.constructor&&N.constructor.prototype,F=K===Object.prototype?void 0:K,G=function(t){try{return!!t()}catch(t){return!0}},U=!G((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),H=U,z=Function.prototype,q=z.call,W=H&&z.bind.bind(q,q),X=H?W:function(t){return function(){return q.apply(t,arguments)}},Y=X,J=Y({}.toString),$=Y("".slice),Q=function(t){return $(J(t),8,-1)},Z=Q,tt=X,et=function(t){if("Function"===Z(t))return tt(t)},nt=String,rt=function(t){try{return nt(t)}catch(t){return"Object"}},ot=V,it=rt,st=TypeError,at=function(t){if(ot(t))return t;throw st(it(t)+" is not a function")},ut=at,lt=U,ct=et(et.bind),dt=function(t,e){return ut(t),void 0===e?t:lt?ct(t,e):function(){return t.apply(e,arguments)}},ht=G,ft=Q,pt=Object,vt=X("".split),yt=ht((function(){return!pt("z").propertyIsEnumerable(0)}))?function(t){return"String"==ft(t)?vt(t,""):pt(t)}:pt,gt=function(t){return null==t},mt=gt,bt=TypeError,St=function(t){if(mt(t))throw bt("Can't call method on "+t);return t},wt=St,kt=Object,Et=function(t){return kt(wt(t))},Bt=Math.ceil,xt=Math.floor,Pt=Math.trunc||function(t){var e=+t;return(e>0?xt:Bt)(e)},Lt=Pt,_t=function(t){var e=+t;return e!=e||0===e?0:Lt(e)},Ot=_t,At=Math.min,Vt=function(t){return t>0?At(Ot(t),9007199254740991):0},Ct=function(t){return Vt(t.length)},Dt=Q,Mt=Array.isArray||function(t){return"Array"==Dt(t)},Tt={exports:{}},It=P,Rt=Object.defineProperty,jt=function(t,e){try{Rt(It,t,{value:e,configurable:!0,writable:!0})}catch(n){It[t]=e}return e},Nt=jt,Kt="__core-js_shared__",Ft=P[Kt]||Nt(Kt,{}),Gt=Ft;(Tt.exports=function(t,e){return Gt[t]||(Gt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.28.0",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.28.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Ut,Ht,zt=Tt.exports,qt=Et,Wt=X({}.hasOwnProperty),Xt=Object.hasOwn||function(t,e){return Wt(qt(t),e)},Yt=X,Jt=0,$t=Math.random(),Qt=Yt(1..toString),Zt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Qt(++Jt+$t,36)},te="undefined"!=typeof navigator&&String(navigator.userAgent)||"",ee=P,ne=te,re=ee.process,oe=ee.Deno,ie=re&&re.versions||oe&&oe.version,se=ie&&ie.v8;se&&(Ht=(Ut=se.split("."))[0]>0&&Ut[0]<4?1:+(Ut[0]+Ut[1])),!Ht&&ne&&(!(Ut=ne.match(/Edge\/(\d+)/))||Ut[1]>=74)&&(Ut=ne.match(/Chrome\/(\d+)/))&&(Ht=+Ut[1]);var ae=Ht,ue=ae,le=G,ce=!!Object.getOwnPropertySymbols&&!le((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&ue&&ue<41})),de=ce&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,he=zt,fe=Xt,pe=Zt,ve=ce,ye=de,ge=P.Symbol,me=he("wks"),be=ye?ge.for||ge:ge&&ge.withoutSetter||pe,Se=function(t){return fe(me,t)||(me[t]=ve&&fe(ge,t)?ge[t]:be("Symbol."+t)),me[t]},we={};we[Se("toStringTag")]="z";var ke="[object z]"===String(we),Ee=ke,Be=V,xe=Q,Pe=Se("toStringTag"),Le=Object,_e="Arguments"==xe(function(){return arguments}()),Oe=Ee?xe:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Le(t),Pe))?n:_e?xe(e):"Object"==(r=xe(e))&&Be(e.callee)?"Arguments":r},Ae=P,Ve=V,Ce=function(t,e){return arguments.length<2?(n=Ae[t],Ve(n)?n:void 0):Ae[t]&&Ae[t][e];var n},De=V,Me=Ft,Te=X(Function.toString);De(Me.inspectSource)||(Me.inspectSource=function(t){return Te(t)});var Ie=Me.inspectSource,Re=X,je=G,Ne=V,Ke=Oe,Fe=Ie,Ge=function(){},Ue=[],He=Ce("Reflect","construct"),ze=/^\s*(?:class|function)\b/,qe=Re(ze.exec),We=!ze.exec(Ge),Xe=function(t){if(!Ne(t))return!1;try{return He(Ge,Ue,t),!0}catch(t){return!1}},Ye=function(t){if(!Ne(t))return!1;switch(Ke(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return We||!!qe(ze,Fe(t))}catch(t){return!0}};Ye.sham=!0;var Je=!He||je((function(){var t;return Xe(Xe.call)||!Xe(Object)||!Xe((function(){t=!0}))||t}))?Ye:Xe,$e=Mt,Qe=Je,Ze=M,tn=Se("species"),en=Array,nn=function(t){var e;return $e(t)&&(e=t.constructor,(Qe(e)&&(e===en||$e(e.prototype))||Ze(e)&&null===(e=e[tn]))&&(e=void 0)),void 0===e?en:e},rn=function(t,e){return new(nn(t))(0===e?0:e)},on=dt,sn=yt,an=Et,un=Ct,ln=rn,cn=X([].push),dn=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,s=7==t,a=5==t||i;return function(u,l,c,d){for(var h,f,p=an(u),v=sn(p),y=on(l,c),g=un(v),m=0,b=d||ln,S=e?b(u,g):n||s?b(u,0):void 0;g>m;m++)if((a||m in v)&&(f=y(h=v[m],m,p),t))if(e)S[m]=f;else if(f)switch(t){case 3:return!0;case 5:return h;case 6:return m;case 2:cn(S,h)}else switch(t){case 4:return!1;case 7:cn(S,h)}return i?-1:r||o?o:S}},hn={forEach:dn(0),map:dn(1),filter:dn(2),some:dn(3),every:dn(4),find:dn(5),findIndex:dn(6),filterReject:dn(7)},fn=G,pn=function(t,e){var n=[][t];return!!n&&fn((function(){n.call(null,e||function(){return 1},1)}))},vn=hn.forEach,yn=pn("forEach")?[].forEach:function(t){return vn(this,t,arguments.length>1?arguments[1]:void 0)},gn=!G((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),mn={},bn=j,Sn=!gn&&!G((function(){return 7!=Object.defineProperty(bn("div"),"a",{get:function(){return 7}}).a})),wn=gn&&G((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),kn=M,En=String,Bn=TypeError,xn=function(t){if(kn(t))return t;throw Bn(En(t)+" is not an object")},Pn=U,Ln=Function.prototype.call,_n=Pn?Ln.bind(Ln):function(){return Ln.apply(Ln,arguments)},On=X({}.isPrototypeOf),An=Ce,Vn=V,Cn=On,Dn=Object,Mn=de?function(t){return"symbol"==typeof t}:function(t){var e=An("Symbol");return Vn(e)&&Cn(e.prototype,Dn(t))},Tn=at,In=gt,Rn=function(t,e){var n=t[e];return In(n)?void 0:Tn(n)},jn=_n,Nn=V,Kn=M,Fn=TypeError,Gn=_n,Un=M,Hn=Mn,zn=Rn,qn=function(t,e){var n,r;if("string"===e&&Nn(n=t.toString)&&!Kn(r=jn(n,t)))return r;if(Nn(n=t.valueOf)&&!Kn(r=jn(n,t)))return r;if("string"!==e&&Nn(n=t.toString)&&!Kn(r=jn(n,t)))return r;throw Fn("Can't convert object to primitive value")},Wn=TypeError,Xn=Se("toPrimitive"),Yn=function(t,e){if(!Un(t)||Hn(t))return t;var n,r=zn(t,Xn);if(r){if(void 0===e&&(e="default"),n=Gn(r,t,e),!Un(n)||Hn(n))return n;throw Wn("Can't convert object to primitive value")}return void 0===e&&(e="number"),qn(t,e)},Jn=Yn,$n=Mn,Qn=function(t){var e=Jn(t,"string");return $n(e)?e:e+""},Zn=gn,tr=Sn,er=wn,nr=xn,rr=Qn,or=TypeError,ir=Object.defineProperty,sr=Object.getOwnPropertyDescriptor,ar="enumerable",ur="configurable",lr="writable";mn.f=Zn?er?function(t,e,n){if(nr(t),e=rr(e),nr(n),"function"==typeof t&&"prototype"===e&&"value"in n&&lr in n&&!n[lr]){var r=sr(t,e);r&&r[lr]&&(t[e]=n.value,n={configurable:ur in n?n[ur]:r[ur],enumerable:ar in n?n[ar]:r[ar],writable:!1})}return ir(t,e,n)}:ir:function(t,e,n){if(nr(t),e=rr(e),nr(n),tr)try{return ir(t,e,n)}catch(t){}if("get"in n||"set"in n)throw or("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var cr=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},dr=mn,hr=cr,fr=gn?function(t,e,n){return dr.f(t,e,hr(1,n))}:function(t,e,n){return t[e]=n,t},pr=P,vr=L,yr=F,gr=yn,mr=fr,br=function(t){if(t&&t.forEach!==gr)try{mr(t,"forEach",gr)}catch(e){t.forEach=gr}};for(var Sr in vr)vr[Sr]&&br(pr[Sr]&&pr[Sr].prototype);br(yr);var wr=yt,kr=St,Er=function(t){return wr(kr(t))},Br={},xr=_t,Pr=Math.max,Lr=Math.min,_r=function(t,e){var n=xr(t);return n<0?Pr(n+e,0):Lr(n,e)},Or=Er,Ar=_r,Vr=Ct,Cr=function(t){return function(e,n,r){var o,i=Or(e),s=Vr(i),a=Ar(r,s);if(t&&n!=n){for(;s>a;)if((o=i[a++])!=o)return!0}else for(;s>a;a++)if((t||a in i)&&i[a]===n)return t||a||0;return!t&&-1}},Dr={includes:Cr(!0),indexOf:Cr(!1)},Mr={},Tr=Xt,Ir=Er,Rr=Dr.indexOf,jr=Mr,Nr=X([].push),Kr=function(t,e){var n,r=Ir(t),o=0,i=[];for(n in r)!Tr(jr,n)&&Tr(r,n)&&Nr(i,n);for(;e.length>o;)Tr(r,n=e[o++])&&(~Rr(i,n)||Nr(i,n));return i},Fr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Gr=Kr,Ur=Fr,Hr=Object.keys||function(t){return Gr(t,Ur)},zr=gn,qr=wn,Wr=mn,Xr=xn,Yr=Er,Jr=Hr;Br.f=zr&&!qr?Object.defineProperties:function(t,e){Xr(t);for(var n,r=Yr(e),o=Jr(e),i=o.length,s=0;i>s;)Wr.f(t,n=o[s++],r[n]);return t};var $r,Qr=Ce("document","documentElement"),Zr=Zt,to=zt("keys"),eo=function(t){return to[t]||(to[t]=Zr(t))},no=xn,ro=Br,oo=Fr,io=Mr,so=Qr,ao=j,uo="prototype",lo="script",co=eo("IE_PROTO"),ho=function(){},fo=function(t){return"<"+lo+">"+t+""},po=function(t){t.write(fo("")),t.close();var e=t.parentWindow.Object;return t=null,e},vo=function(){try{$r=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;vo="undefined"!=typeof document?document.domain&&$r?po($r):(e=ao("iframe"),n="java"+lo+":",e.style.display="none",so.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(fo("document.F=Object")),t.close(),t.F):po($r);for(var r=oo.length;r--;)delete vo[uo][oo[r]];return vo()};io[co]=!0;var yo=Object.create||function(t,e){var n;return null!==t?(ho[uo]=no(t),n=new ho,ho[uo]=null,n[co]=t):n=vo(),void 0===e?n:ro.f(n,e)},go=Se,mo=yo,bo=mn.f,So=go("unscopables"),wo=Array.prototype;null==wo[So]&&bo(wo,So,{configurable:!0,value:mo(null)});var ko,Eo,Bo,xo=function(t){wo[So][t]=!0},Po={},Lo=V,_o=P.WeakMap,Oo=Lo(_o)&&/native code/.test(String(_o)),Ao=P,Vo=M,Co=fr,Do=Xt,Mo=Ft,To=eo,Io=Mr,Ro="Object already initialized",jo=Ao.TypeError,No=Ao.WeakMap;if(Oo||Mo.state){var Ko=Mo.state||(Mo.state=new No);Ko.get=Ko.get,Ko.has=Ko.has,Ko.set=Ko.set,ko=function(t,e){if(Ko.has(t))throw jo(Ro);return e.facade=t,Ko.set(t,e),e},Eo=function(t){return Ko.get(t)||{}},Bo=function(t){return Ko.has(t)}}else{var Fo=To("state");Io[Fo]=!0,ko=function(t,e){if(Do(t,Fo))throw jo(Ro);return e.facade=t,Co(t,Fo,e),e},Eo=function(t){return Do(t,Fo)?t[Fo]:{}},Bo=function(t){return Do(t,Fo)}}var Go={set:ko,get:Eo,has:Bo,enforce:function(t){return Bo(t)?Eo(t):ko(t,{})},getterFor:function(t){return function(e){var n;if(!Vo(e)||(n=Eo(e)).type!==t)throw jo("Incompatible receiver, "+t+" required");return n}}},Uo={},Ho={},zo={}.propertyIsEnumerable,qo=Object.getOwnPropertyDescriptor,Wo=qo&&!zo.call({1:2},1);Ho.f=Wo?function(t){var e=qo(this,t);return!!e&&e.enumerable}:zo;var Xo=gn,Yo=_n,Jo=Ho,$o=cr,Qo=Er,Zo=Qn,ti=Xt,ei=Sn,ni=Object.getOwnPropertyDescriptor;Uo.f=Xo?ni:function(t,e){if(t=Qo(t),e=Zo(e),ei)try{return ni(t,e)}catch(t){}if(ti(t,e))return $o(!Yo(Jo.f,t,e),t[e])};var ri={exports:{}},oi=gn,ii=Xt,si=Function.prototype,ai=oi&&Object.getOwnPropertyDescriptor,ui=ii(si,"name"),li={EXISTS:ui,PROPER:ui&&"something"===function(){}.name,CONFIGURABLE:ui&&(!oi||oi&&ai(si,"name").configurable)},ci=X,di=G,hi=V,fi=Xt,pi=gn,vi=li.CONFIGURABLE,yi=Ie,gi=Go.enforce,mi=Go.get,bi=String,Si=Object.defineProperty,wi=ci("".slice),ki=ci("".replace),Ei=ci([].join),Bi=pi&&!di((function(){return 8!==Si((function(){}),"length",{value:8}).length})),xi=String(String).split("String"),Pi=ri.exports=function(t,e,n){"Symbol("===wi(bi(e),0,7)&&(e="["+ki(bi(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!fi(t,"name")||vi&&t.name!==e)&&(pi?Si(t,"name",{value:e,configurable:!0}):t.name=e),Bi&&n&&fi(n,"arity")&&t.length!==n.arity&&Si(t,"length",{value:n.arity});try{n&&fi(n,"constructor")&&n.constructor?pi&&Si(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=gi(t);return fi(r,"source")||(r.source=Ei(xi,"string"==typeof e?e:"")),t};Function.prototype.toString=Pi((function(){return hi(this)&&mi(this).source||yi(this)}),"toString");var Li=ri.exports,_i=V,Oi=mn,Ai=Li,Vi=jt,Ci=function(t,e,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:e;if(_i(n)&&Ai(n,i,r),r.global)o?t[e]=n:Vi(e,n);else{try{r.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=n:Oi.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},Di={},Mi=Kr,Ti=Fr.concat("length","prototype");Di.f=Object.getOwnPropertyNames||function(t){return Mi(t,Ti)};var Ii={};Ii.f=Object.getOwnPropertySymbols;var Ri,ji,Ni,Ki=Ce,Fi=Di,Gi=Ii,Ui=xn,Hi=X([].concat),zi=Ki("Reflect","ownKeys")||function(t){var e=Fi.f(Ui(t)),n=Gi.f;return n?Hi(e,n(t)):e},qi=Xt,Wi=zi,Xi=Uo,Yi=mn,Ji=G,$i=V,Qi=/#|\.prototype\./,Zi=function(t,e){var n=es[ts(t)];return n==rs||n!=ns&&($i(e)?Ji(e):!!e)},ts=Zi.normalize=function(t){return String(t).replace(Qi,".").toLowerCase()},es=Zi.data={},ns=Zi.NATIVE="N",rs=Zi.POLYFILL="P",os=Zi,is=P,ss=Uo.f,as=fr,us=Ci,ls=jt,cs=function(t,e,n){for(var r=Wi(e),o=Yi.f,i=Xi.f,s=0;s=e.length?(t.target=void 0,Ea(void 0,!0)):Ea("keys"==n?r:"values"==n?e[r]:[r,e[r]],!1)}),"values"),Oa=ba.Arguments=ba.Array;if(ma("keys"),ma("values"),ma("entries"),Ba&&"values"!==Oa.name)try{wa(Oa,"name",{value:"values"})}catch(t){}var Aa=P,Va=L,Ca=F,Da=_a,Ma=fr,Ta=Se,Ia=Ta("iterator"),Ra=Ta("toStringTag"),ja=Da.values,Na=function(t,e){if(t){if(t[Ia]!==ja)try{Ma(t,Ia,ja)}catch(e){t[Ia]=ja}if(t[Ra]||Ma(t,Ra,e),Va[e])for(var n in Da)if(t[n]!==Da[n])try{Ma(t,n,Da[n])}catch(e){t[n]=Da[n]}}};for(var Ka in Va)Na(Aa[Ka]&&Aa[Ka].prototype,Ka);Na(Ca,"DOMTokenList");var Fa=P;function Ga(){Ga=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function l(t,e,n,o){var i=e&&e.prototype instanceof h?e:h,s=Object.create(i.prototype),a=new x(o||[]);return r(s,"_invoke",{value:w(t,n,a)}),s}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var d={};function h(){}function f(){}function p(){}var v={};u(v,i,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(P([])));g&&g!==e&&n.call(g,i)&&(v=g);var m=p.prototype=h.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function o(r,i,s,a){var u=c(t[r],t,i);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==typeof d&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){o("next",t,s,a)}),(function(t){o("throw",t,s,a)})):e.resolve(d).then((function(t){l.value=t,s(l)}),(function(t){return o("throw",t,s,a)}))}a(u.arg)}var i;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){o(t,n,e,r)}))}return i=i?i.then(r,r):r()}})}function w(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return L()}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var a=k(s,n);if(a){if(a===d)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=c(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function k(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,k(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=c(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function B(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function P(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var a=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(a&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),B(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;B(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:P(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function Ua(t){return Ua="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ua(t)}function Ha(t,e,n,r,o,i,s){try{var a=t[i](s),u=a.value}catch(t){return void n(t)}a.done?e(u):Promise.resolve(u).then(r,o)}function za(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function s(t){Ha(i,r,o,s,a,"next",t)}function a(t){Ha(i,r,o,s,a,"throw",t)}s(void 0)}))}}function qa(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Wa(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,i=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}var iu=hs,su=Dr.indexOf,au=pn,uu=et([].indexOf),lu=!!uu&&1/uu([1],1,-0)<0;iu({target:"Array",proto:!0,forced:lu||!au("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return lu?uu(this,t,e)||0:su(this,t,e)}});var cu=TypeError,du=Qn,hu=mn,fu=cr,pu=function(t,e,n){var r=du(e);r in t?hu.f(t,r,fu(0,n)):t[r]=n},vu=G,yu=ae,gu=Se("species"),mu=function(t){return yu>=51||!vu((function(){var e=[];return(e.constructor={})[gu]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},bu=hs,Su=G,wu=Mt,ku=M,Eu=Et,Bu=Ct,xu=function(t){if(t>9007199254740991)throw cu("Maximum allowed index exceeded");return t},Pu=pu,Lu=rn,_u=mu,Ou=ae,Au=Se("isConcatSpreadable"),Vu=Ou>=51||!Su((function(){var t=[];return t[Au]=!1,t.concat()[0]!==t})),Cu=function(t){if(!ku(t))return!1;var e=t[Au];return void 0!==e?!!e:wu(t)};bu({target:"Array",proto:!0,arity:1,forced:!Vu||!_u("concat")},{concat:function(t){var e,n,r,o,i,s=Eu(this),a=Lu(s,0),u=0;for(e=-1,r=arguments.length;eo;)for(var a,u=Fu(arguments[o++]),l=i?Hu(Ru(u),i(u)):Ru(u),c=l.length,d=0;c>d;)a=l[d++],Du&&!Tu(s,u,a)||(n[a]=u[a]);return n}:Gu,qu=zu;hs({target:"Object",stat:!0,arity:2,forced:Object.assign!==qu},{assign:qu});var Wu=Oe,Xu=ke?{}.toString:function(){return"[object "+Wu(this)+"]"};ke||Ci(Object.prototype,"toString",Xu,{unsafe:!0});var Yu,Ju,$u,Qu,Zu="undefined"!=typeof process&&"process"==Q(process),tl=Li,el=mn,nl=function(t,e,n){return n.get&&tl(n.get,e,{getter:!0}),n.set&&tl(n.set,e,{setter:!0}),el.f(t,e,n)},rl=Ce,ol=nl,il=gn,sl=Se("species"),al=function(t){var e=rl(t);il&&e&&!e[sl]&&ol(e,sl,{configurable:!0,get:function(){return this}})},ul=On,ll=TypeError,cl=function(t,e){if(ul(e,t))return t;throw ll("Incorrect invocation")},dl=Je,hl=rt,fl=TypeError,pl=xn,vl=function(t){if(dl(t))return t;throw fl(hl(t)+" is not a constructor")},yl=gt,gl=Se("species"),ml=U,bl=Function.prototype,Sl=bl.apply,wl=bl.call,kl="object"==typeof Reflect&&Reflect.apply||(ml?wl.bind(Sl):function(){return wl.apply(Sl,arguments)}),El=X([].slice),Bl=TypeError,xl=/(?:ipad|iphone|ipod).*applewebkit/i.test(te),Pl=P,Ll=kl,_l=dt,Ol=V,Al=Xt,Vl=G,Cl=Qr,Dl=El,Ml=j,Tl=function(t,e){if(ti;i++)if((a=g(t[i]))&&ph(Sh,a))return a;return new bh(!1)}r=vh(t,o)}for(u=h?t.next:r.next;!(l=lh(u,r)).done;){try{a=g(l.value)}catch(t){gh(r,"throw",t)}if("object"==typeof a&&a&&ph(Sh,a))return a}return new bh(!1)},kh=Se("iterator"),Eh=!1;try{var Bh=0,xh={next:function(){return{done:!!Bh++}},return:function(){Eh=!0}};xh[kh]=function(){return this},Array.from(xh,(function(){throw 2}))}catch(t){}var Ph=function(t,e){if(!e&&!Eh)return!1;var n=!1;try{var r={};r[kh]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n},Lh=Lc,_h=Uc.CONSTRUCTOR||!Ph((function(t){Lh.all(t).then(void 0,(function(){}))})),Oh=_n,Ah=at,Vh=Hc,Ch=Pc,Dh=wh;hs({target:"Promise",stat:!0,forced:_h},{all:function(t){var e=this,n=Vh.f(e),r=n.resolve,o=n.reject,i=Ch((function(){var n=Ah(e.resolve),i=[],s=0,a=1;Dh(t,(function(t){var u=s++,l=!1;a++,Oh(n,e,t).then((function(t){l||(l=!0,i[u]=t,--a||r(i))}),o)})),--a||r(i)}));return i.error&&o(i.value),n.promise}});var Mh=hs,Th=Uc.CONSTRUCTOR,Ih=Lc,Rh=Ce,jh=V,Nh=Ci,Kh=Ih&&Ih.prototype;if(Mh({target:"Promise",proto:!0,forced:Th,real:!0},{catch:function(t){return this.then(void 0,t)}}),jh(Ih)){var Fh=Rh("Promise").prototype.catch;Kh.catch!==Fh&&Nh(Kh,"catch",Fh,{unsafe:!0})}var Gh=_n,Uh=at,Hh=Hc,zh=Pc,qh=wh;hs({target:"Promise",stat:!0,forced:_h},{race:function(t){var e=this,n=Hh.f(e),r=n.reject,o=zh((function(){var o=Uh(e.resolve);qh(t,(function(t){Gh(o,e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var Wh=_n,Xh=Hc;hs({target:"Promise",stat:!0,forced:Uc.CONSTRUCTOR},{reject:function(t){var e=Xh.f(this);return Wh(e.reject,void 0,t),e.promise}});var Yh=xn,Jh=M,$h=Hc,Qh=hs,Zh=Uc.CONSTRUCTOR,tf=function(t,e){if(Yh(t),Jh(e)&&e.constructor===t)return e;var n=$h.f(t);return(0,n.resolve)(e),n.promise};Ce("Promise"),Qh({target:"Promise",stat:!0,forced:Zh},{resolve:function(t){return tf(this,t)}});var ef,nf,rf=Oe,of=String,sf=function(t){if("Symbol"===rf(t))throw TypeError("Cannot convert a Symbol value to a string");return of(t)},af=xn,uf=function(){var t=af(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},lf=G,cf=P.RegExp,df=lf((function(){var t=cf("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),hf=df||lf((function(){return!cf("a","y").sticky})),ff={BROKEN_CARET:df||lf((function(){var t=cf("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:hf,UNSUPPORTED_Y:df},pf=G,vf=P.RegExp,yf=pf((function(){var t=vf(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),gf=G,mf=P.RegExp,bf=gf((function(){var t=mf("(?b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$c")})),Sf=_n,wf=X,kf=sf,Ef=uf,Bf=ff,xf=yo,Pf=Go.get,Lf=yf,_f=bf,Of=zt("native-string-replace",String.prototype.replace),Af=RegExp.prototype.exec,Vf=Af,Cf=wf("".charAt),Df=wf("".indexOf),Mf=wf("".replace),Tf=wf("".slice),If=(nf=/b*/g,Sf(Af,ef=/a/,"a"),Sf(Af,nf,"a"),0!==ef.lastIndex||0!==nf.lastIndex),Rf=Bf.BROKEN_CARET,jf=void 0!==/()??/.exec("")[1];(If||jf||Rf||Lf||_f)&&(Vf=function(t){var e,n,r,o,i,s,a,u=this,l=Pf(u),c=kf(t),d=l.raw;if(d)return d.lastIndex=u.lastIndex,e=Sf(Vf,d,c),u.lastIndex=d.lastIndex,e;var h=l.groups,f=Rf&&u.sticky,p=Sf(Ef,u),v=u.source,y=0,g=c;if(f&&(p=Mf(p,"y",""),-1===Df(p,"g")&&(p+="g"),g=Tf(c,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==Cf(c,u.lastIndex-1))&&(v="(?: "+v+")",g=" "+g,y++),n=new RegExp("^(?:"+v+")",p)),jf&&(n=new RegExp("^"+v+"$(?!\\s)",p)),If&&(r=u.lastIndex),o=Sf(Af,f?n:u,g),f?o?(o.input=Tf(o.input,y),o[0]=Tf(o[0],y),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:If&&o&&(u.lastIndex=u.global?o.index+o[0].length:r),jf&&o&&o.length>1&&Sf(Of,o[0],n,(function(){for(i=1;i0||navigator.pointerEnabled&&navigator.maxTouchPoints>0)}},{key:"basic",value:function(){return t.canvas?t.webaudio||t.htmlAudio?null:"Browser does not support WebAudio or HTMLAudio":"Browser does not support canvas"}},{key:"test",value:function(e){var n=this.basic();if(n)return n;var r=e.features,o=e.ui,i=e.sizes;for(var s in r)if(!0===r[s]&&!t[s])return"Browser does not support "+s;if(!o.touch&&t.touch)return"Game does not support touch input";var a=Math.max(window.screen.width,window.screen.height);return!i.xsmall&&a<480?"Game doesn't support extra small screens":!i.small&&a<768?"Game doesn't support small screens":!i.medium&&a<992?"Game doesn't support medium screens":!i.large&&a<1200?"Game doesn't support large screens":!i.xlarge&&a>=1200?"Game doesn't support extra large screens":null}},{key:"info",get:function(){return"Browser Feature Detection\n\t\t\t\tCanvas support ".concat(t.canvas?"✓":"×","\n\t\t\t\tWebGL support ").concat(t.webgl?"✓":"×","\n\t\t\t\tWebAudio support ").concat(t.webAudio?"✓":"×")}}]),t}(),Kf=X,Ff=_t,Gf=sf,Uf=St,Hf=Kf("".charAt),zf=Kf("".charCodeAt),qf=Kf("".slice),Wf=function(t){return function(e,n){var r,o,i=Gf(Uf(e)),s=Ff(n),a=i.length;return s<0||s>=a?t?"":void 0:(r=zf(i,s))<55296||r>56319||s+1===a||(o=zf(i,s+1))<56320||o>57343?t?Hf(i,s):r:t?qf(i,s,s+2):o-56320+(r-55296<<10)+65536}},Xf={codeAt:Wf(!1),charAt:Wf(!0)}.charAt,Yf=sf,Jf=Go,$f=va,Qf=ya,Zf="String Iterator",tp=Jf.set,ep=Jf.getterFor(Zf);$f(String,"String",(function(t){tp(this,{type:Zf,string:Yf(t),index:0})}),(function(){var t,e=ep(this),n=e.string,r=e.index;return r>=n.length?Qf(void 0,!0):(t=Xf(n,r),e.index+=t.length,Qf(t,!1))}));var np=hn.filter;hs({target:"Array",proto:!0,forced:!mu("filter")},{filter:function(t){return np(this,t,arguments.length>1?arguments[1]:void 0)}});var rp=hs,op=hn.find,ip=xo,sp="find",ap=!0;function up(t,e){return t(e={exports:{}},e.exports),e.exports}sp in[]&&Array(1)[sp]((function(){ap=!1})),rp({target:"Array",proto:!0,forced:ap},{find:function(t){return op(this,t,arguments.length>1?arguments[1]:void 0)}}),ip(sp);var lp=up((function(t){function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function n(r){return"function"==typeof Symbol&&"symbol"===e(Symbol.iterator)?t.exports=n=function(t){return e(t)}:t.exports=n=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":e(t)},n(r)}t.exports=n})),cp=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")};function dp(t,e){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:0;this._listeners[t]||(this._listeners[t]=[]),e._priority=parseInt(n)||0,-1===this._listeners[t].indexOf(e)&&(this._listeners[t].push(e),this._listeners[t].length>1&&this._listeners[t].sort(this.listenerSorter))}},{key:"listenerSorter",value:function(t,e){return t._priority-e._priority}},{key:"off",value:function(t,e){if(void 0!==this._listeners[t])if(void 0!==e){var n=this._listeners[t].indexOf(e);-11&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof t&&(t={type:t,data:"object"===lp(e)&&null!==e?e:{}}),void 0!==this._listeners[t.type])for(var n=this._listeners[t.type].length-1;n>=0;n--)this._listeners[t.type][n](t)}},{key:"destroy",value:function(){this._listeners={}}}]),t}(),pp=up((function(t){var e=function(t){var e,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function u(t,e,n,r){var o=e&&e.prototype instanceof v?e:v,i=Object.create(o.prototype),s=new L(r||[]);return i._invoke=function(t,e,n){var r=c;return function(o,i){if(r===h)throw new Error("Generator is already running");if(r===f){if("throw"===o)throw i;return O()}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var a=B(s,n);if(a){if(a===p)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===c)throw r=f,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var u=l(t,e,n);if("normal"===u.type){if(r=n.done?f:d,u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=f,n.method="throw",n.arg=u.arg)}}}(t,n,s),i}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var c="suspendedStart",d="suspendedYield",h="executing",f="completed",p={};function v(){}function y(){}function g(){}var m={};m[i]=function(){return this};var b=Object.getPrototypeOf,S=b&&b(b(_([])));S&&S!==n&&r.call(S,i)&&(m=S);var w=g.prototype=v.prototype=Object.create(m);function k(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function E(t){function e(n,o,i,s){var a=l(t[n],t,o);if("throw"!==a.type){var u=a.arg,c=u.value;return c&&"object"==typeof c&&r.call(c,"__await")?Promise.resolve(c.__await).then((function(t){e("next",t,i,s)}),(function(t){e("throw",t,i,s)})):Promise.resolve(c).then((function(t){u.value=t,i(u)}),(function(t){return e("throw",t,i,s)}))}s(a.arg)}var n;this._invoke=function(t,r){function o(){return new Promise((function(n,o){e(t,r,n,o)}))}return n=n?n.then(o,o):o()}}function B(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,B(t,n),"throw"===n.method))return p;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var o=l(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,p;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,p):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function _(t){if(t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,s=function n(){for(;++o=0;--i){var s=this.tryEntries[i],a=s.completion;if("root"===s.tryLoc)return o("end");if(s.tryLoc<=this.prev){var u=r.call(s,"catchLoc"),l=r.call(s,"finallyLoc");if(u&&l){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:_(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),p}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}})),vp=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},yp=function(t,e){return!e||"object"!==lp(e)&&"function"!=typeof e?vp(t):e},gp=up((function(t){function e(n){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},e(n)}t.exports=e})),mp=up((function(t){function e(n,r,o){return"undefined"!=typeof Reflect&&Reflect.get?t.exports=e=Reflect.get:t.exports=e=function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=gp(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}},e(n,r,o||n)}t.exports=e})),bp=up((function(t){function e(n,r){return t.exports=e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},e(n,r)}t.exports=e})),Sp=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100*Math.random()|0;return cp(this,e),(t=yp(this,gp(e).call(this))).id="BELLHOP:".concat(n),t.connected=!1,t.isChild=!0,t.connecting=!1,t.debug=!1,t.origin="*",t._sendLater=[],t.iframe=null,t.receive=t.receive.bind(vp(t)),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&bp(t,e)}(e,fp),hp(e,[{key:"receive",value:function(t){if(this.target===t.source)if(this.logDebugMessage(!0,t),"connected"===t.data)this.onConnectionReceived(t.data);else{var e=t.data;if("string"==typeof e)try{e=JSON.parse(e)}catch(t){console.warn("Bellhop error: ",t)}this.connected&&"object"===lp(e)&&e.type&&this.trigger(e)}}},{key:"onConnectionReceived",value:function(t){if(this.connecting=!1,this.connected=!0,!this.isChild){if(!this.target)return;this.target.postMessage(t,this.origin)}for(var e=0;e1&&void 0!==arguments[1]?arguments[1]:"*";this.connecting||(this.disconnect(),this.connecting=!0,t instanceof HTMLIFrameElement&&(this.iframe=t),this.isChild=void 0===t,this.supported=!0,this.isChild&&(this.supported=window!=t),this.origin=e,window.addEventListener("message",this.receive),this.isChild&&(window===this.target?this.trigger("failed"):this.target.postMessage("connected",this.origin)))}},{key:"disconnect",value:function(){this.connected=!1,this.connecting=!1,this.origin=null,this.iframe=null,this.isChild=!0,this._sendLater.length=0,window.removeEventListener("message",this.receive)}},{key:"send",value:function(t){if("string"!=typeof t)throw"The event type must be a string";var e={type:t,data:arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}};this.logDebugMessage(!1,e),this.connecting?this._sendLater.push(e):this.target.postMessage(JSON.stringify(e),this.origin)}},{key:"fetch",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!this.connecting&&!this.connected)throw"No connection, please call connect() first";this.on(t,(function t(r){o&&n.off(r.type,t),e(r)})),this.send(t,r)}},{key:"respond",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this;this.on(t,(function t(o){return pp.async((function(i){for(;;)switch(i.prev=i.next){case 0:if(n&&r.off(o,t),"function"!=typeof e){i.next=10;break}return i.t0=r,i.t1=o.type,i.next=6,pp.awrap(e());case 6:i.t2=i.sent,i.t0.send.call(i.t0,i.t1,i.t2),i.next=11;break;case 10:r.send(o.type,e);case 11:case"end":return i.stop()}}))}))}},{key:"logDebugMessage",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1?arguments[1]:void 0;this.debug&&"function"==typeof this.debug?this.debug({isChild:this.isChild,received:t,message:e}):this.debug&&console.log("Bellhop Instance (".concat(this.isChild?"Child":"Parent",") ").concat(t?"Receieved":"Sent"),e)}},{key:"destroy",value:function(){mp(gp(e.prototype),"destroy",this).call(this),this.disconnect(),this._sendLater.length=0}},{key:"target",get:function(){return this.isChild?window.parent:this.iframe.contentWindow}}]),e}(),wp=function(){function t(e){var n=e.plugins,r=void 0===n?[]:n;qa(this,t),this.client=new Sp,this.preloading=!0,this.client.hidden=this.client.receive.bind(this.client),this.client.hiddenSend=this.client.send.bind(this.client),this.client.receive=function(t){this.hidden(t)}.bind(this.client),this.client.send=function(t,e){this.hiddenSend(t,e)}.bind(this.client),this.plugins=r}return Xa(t,[{key:"setupPlugins",value:function(){for(var t=this,e=[],n=function(n){if(!t.plugins[n].preload)return"continue";e.push(t.plugins[n].preload(t).catch(function(t){this.plugins[n].preloadFailed=!0,console.warn(this.plugins[n].name,"Preload Failed:",t)}.bind(t)))},r=0,o=this.plugins.length;r1&&void 0!==arguments[1]?arguments[1]:{},i=o.plugins,s=o.context,a=void 0===s?{}:s;if(qa(this,r),(e=n.call(this,{plugins:i})).iframe=t instanceof HTMLIFrameElement?t:document.querySelector(t),e.iframe.style.backgroundColor="black",null===e.iframe)throw new Error("No iframe was found with the provided selector");return e.loaded=!1,e.loading=!1,e.release=null,e._context=a,e.onLoading=e.onLoading.bind(Qa(e)),e.onLoadDone=e.onLoadDone.bind(Qa(e)),e.onLoadDone=e.onLoadDone.bind(Qa(e)),e.onEndGame=e.onEndGame.bind(Qa(e)),e.onLocalError=e.onLocalError.bind(Qa(e)),e.initClient(),e.setupPlugins(),e}return Xa(r,[{key:"onLoading",value:function(){this.client.trigger("opening")}},{key:"onLoadDone",value:function(){this.loading=!1,this.loaded=!0,this.iframe.classList.remove("loading"),this.client.trigger("opened")}},{key:"onEndGame",value:function(){this.reset()}},{key:"onLocalError",value:function(t){console.error("SpringRoll Container error: ",t,(new Error).stack)}},{key:"reset",value:function(){(this.loaded||this.loading)&&this.client.trigger("closed"),this.loaded=!1,this.loading=!1,this.iframe.setAttribute("src",""),this.iframe.classList.remove("loading")}},{key:"initClient",value:function(){this.client.on("loading",this.onLoading),this.client.on("loaded",this.onLoadDone),this.client.on("loadDone",this.onLoadDone),this.client.on("endGame",this.onEndGame),this.client.on("localError",this.onLocalError),this.client.connect(this.iframe)}},{key:"_onCloseFailed",value:function(){this.reset()}},{key:"_internalOpen",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.singlePlay,o=void 0!==r&&r,i=n.playOptions,s=void 0===i?null:i;if(this.preloading)this.client.on("preloadsFinished",(function(){e._internalOpen(t,{singlePlay:o,playOptions:s})}));else{var a={singlePlay:o,playOptions:s};this.reset(),this.loading=!0,this.initClient();var u=Nf.basic();u&&(console.error("ERROR:",u),this.client.trigger("unsupported"));var l=t;if(null!==a.playOptions){var c="playOptions="+encodeURIComponent(JSON.stringify(a.playOptions));l=-1===t.indexOf("?")?"".concat(t,"?").concat(c):"".concat(t,"&").concat(c)}this.iframe.classList.add("loading"),this.iframe.setAttribute("src",l),this.client.respond("singlePlay",o),this.client.respond("playOptions",s),this.client.trigger("open")}}},{key:"openPath",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"object"!==Ua(e)&&(console.warn("SpringRoll Container.openPath was passed a invalid options parameter. Using default parameters instead"),e={}),this._internalOpen(t,Object.assign({singlePlay:!1,playOptions:{}},e))}},{key:"openRemote",value:(e=za(Ga().mark((function t(e){var n,r,o,i,s,a,u,l,c,d,h,f=arguments;return Ga().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=(n=f.length>1&&void 0!==f[1]?f[1]:{}).query,o=void 0===r?"":r,i=n.singlePlay,s=void 0!==i&&i,a=n.playOptions,u=void 0===a?null:a,this.release=null,t.next=4,fetch(e,{headers:{"Content-Type":"application/json"}});case 4:return l=t.sent,t.next=7,l.json();case 7:if((c=t.sent).success){t.next=10;break}throw new Error(c.error);case 10:if(d=c.data,!(h=Nf.test(d.capabilities))){t.next=15;break}throw this.client.trigger("unsupported",{error:h}),new Error(h);case 15:this.release=d,this._internalOpen(d.url+o,{singlePlay:s,playOptions:u});case 17:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"destroy",value:function(){this.reset(),this.iframe=null,this.options=null,this.release=null}},{key:"close",value:function(){this.loading||this.loaded?(this.client.trigger("close"),this.client.send("close")):this.reset()}},{key:"context",get:function(){return this._context},set:function(t){"object"===Ua(t)?this._context=t:console.error("[SpringRollContainer] Context: new context provided is not an object")}}],[{key:"version",get:function(){return"2.5.0"}}]),r}(),Ep=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};qa(this,t),this._onFocus=e,this._onBlur=n,this.onFocus=function(t){this.enabled&&this._onFocus(t)}.bind(this),this.onBlur=function(t){this.enabled&&this._onBlur(t)}.bind(this),this._enabled=!1,this.enabled=!0,this.onToggle=this.onToggle.bind(this)}return Xa(t,[{key:"destroy",value:function(){this.enabled=!1,this.onToggle=null,this.onFocus=null,this.onBlur=null}},{key:"onToggle",value:function(t){this.enabled&&(document.hidden?this.onBlur(t):this.onFocus(t))}},{key:"enabled",get:function(){return this._enabled},set:function(t){this._enabled=t,document.removeEventListener("visibilitychange",this.onToggle,!1),window.removeEventListener("blur",this.onBlur,!1),window.removeEventListener("focus",this.onFocus,!1),window.removeEventListener("pagehide",this.onBlur,!1),window.removeEventListener("pageshow",this.onFocus,!1),window.removeEventListener("visibilitychange",this.onToggle,!1),this._enabled&&(document.addEventListener("visibilitychange",this.onToggle,!1),window.addEventListener("blur",this.onBlur,!1),window.addEventListener("focus",this.onFocus,!1),window.addEventListener("pagehide",this.onBlur,!1),window.addEventListener("pageshow",this.onFocus,!1),window.addEventListener("visibilitychange",this.onToggle,!1))}}]),t}(),Bp=Dr.includes,xp=xo;hs({target:"Array",proto:!0,forced:G((function(){return!Array(1).includes()}))},{includes:function(t){return Bp(this,t,arguments.length>1?arguments[1]:void 0)}}),xp("includes");var Pp="\t\n\v\f\r                 \u2028\u2029\ufeff",Lp=St,_p=sf,Op=Pp,Ap=X("".replace),Vp=RegExp("^["+Op+"]+"),Cp=RegExp("(^|[^"+Op+"])["+Op+"]+$"),Dp=function(t){return function(e){var n=_p(Lp(e));return 1&t&&(n=Ap(n,Vp,"")),2&t&&(n=Ap(n,Cp,"$1")),n}},Mp={start:Dp(1),end:Dp(2),trim:Dp(3)},Tp=li.PROPER,Ip=G,Rp=Pp,jp=Mp.trim;hs({target:"String",proto:!0,forced:function(t){return Ip((function(){return!!Rp[t]()||"​…᠎"!=="​…᠎"[t]()||Tp&&Rp[t].name!==t}))}("trim")},{trim:function(){return jp(this)}});var Np=_n,Kp=Xt,Fp=On,Gp=uf,Up=RegExp.prototype,Hp=li.PROPER,zp=Ci,qp=xn,Wp=sf,Xp=G,Yp=function(t){var e=t.flags;return void 0!==e||"flags"in Up||Kp(t,"flags")||!Fp(Up,t)?e:Np(Gp,t)},Jp="toString",$p=RegExp.prototype[Jp],Qp=Xp((function(){return"/a/b"!=$p.call({source:"a",flags:"b"})})),Zp=Hp&&$p.name!=Jp;(Qp||Zp)&&zp(RegExp.prototype,Jp,(function(){var t=qp(this);return"/"+Wp(t.source)+"/"+Wp(Yp(t))}),{unsafe:!0});var tv=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";qa(this,t),this.db=null,this.dbName=e}return Xa(t,[{key:"IDBOpen",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=n?indexedDB.open(t,n):indexedDB.open(t);s.onsuccess=function(t){e.db=t.target.result,e.db.version==n|null==n&&i({result:"Success: IDBOpen",success:!0})},s.onerror=function(){i({result:s.error.toString(),success:!1})},s.onupgradeneeded=function(t){e.db=t.target.result,null!=r&&(r.stores&&r.stores.forEach((function(t){e.db.createObjectStore(t.storeName,t.options)})),null!=r.indexes&&r.indexes.forEach((function(t){s.transaction.objectStore(t.storeName).createIndex(t.indexName,t.keyPath,t.options)}))),null!=o&&(null!=o.indexes&&o.indexes.forEach((function(t){s.transaction.objectStore(t.storeName).deleteIndex(t.indexName)})),o.stores&&o.stores.forEach((function(t){e.db.deleteObjectStore(t.storeName)}))),i({result:"Success: IDBOpen onupgradeneeded ran",success:!0})}}},{key:"IDBDeleteDB",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=null!=e?indexedDB.deleteDatabase(t,e):indexedDB.deleteDatabase(t);r.onsuccess=function(t){n({result:"Success: Database Deleted, returned: "+t.result,success:!0})},r.onerror=function(){n({result:r.error.toString(),success:!1})}}},{key:"IDBAdd",value:function(t,e,n,r){this.db||""==this.dbName||this.IDBOpen(this.dbName);var o=this.db.transaction(t,"readwrite");o.onerror=function(){return r({result:null!=o.error?o.error.toString():"Aborted: No error given, was the record already added?",success:!1})},o.onabort=function(){return r({result:null!=o.error?o.error.toString():"Aborted: No error given, was the record already added?",success:!1})},o.oncomplete=function(){return r({result:"Success: Record Added",success:!0})},o.objectStore(t).add(e,n)}},{key:"IDBUpdate",value:function(t,e,n,r){this.db||""==this.dbName||this.IDBOpen(this.dbName);var o=this.db.transaction(t,"readwrite").objectStore(t).put(n,e);o.onsuccess=function(){r({result:"Success: Record Updated",success:!0})},o.onerror=function(){return r({result:o.error.toString(),success:!1})}}},{key:"IDBRemove",value:function(t,e,n){var r=this;this.db||""==this.dbName||this.IDBOpen(this.dbName);var o=this.db.transaction(t,"readwrite");o.onerror=function(){return n({result:r.db.error.toString(),success:!1})},o.objectStore(t).delete(e),o.oncomplete=function(){return n({result:"Removed Successfully",success:!0})}}},{key:"IDBRead",value:function(t,e,n){var r=this,o=this.db.transaction(t,"readonly"),i=o.objectStore(t);o.onerror=function(){return n({result:r.db.error.toString(),success:!1})};var s=i.get(e);s.onsuccess=function(){n({result:s.result,success:null!=s.result})}}},{key:"IDBGetIndexKeys",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},s=this.db.transaction(t,"readonly"),a=s.objectStore(t);s.onerror=function(){return i({result:n.db.error.toString(),success:!1})},(r&&o?a.index(e,r,o):r?a.index(e,r):a.index(e)).getAllKeys().onsuccess=function(t){i({result:t.result,success:!0})}}},{key:"IDBReadAll",value:function(t,e,n){var r=this.db.transaction(t,"readonly"),o=r.objectStore(t),i=null!=e?o.getAll(null,e):o.getAll();r.onerror=function(){return n({result:r.error.toString(),success:!1})},i.onsuccess=function(){n({result:i.result,success:null!=i.result})}}},{key:"IDBGetVersion",value:function(t,e){var n=window.indexedDB.open(t);n.onerror=function(){e({result:n.error.toString(),success:!1})},n.onsuccess=function(){var t=n.result;e({result:t.version,success:!0})}}},{key:"IDBClose",value:function(t){this.db&&(this.db.close(),t({result:"Success: Closed Database Connection",success:!0}))}}],[{key:"remove",value:function(t){localStorage.removeItem(t),sessionStorage.removeItem(t)}},{key:"write",value:function(t,e){return arguments.length>2&&void 0!==arguments[2]&&arguments[2]?sessionStorage.setItem(t,JSON.stringify("function"==typeof e?e():e)):localStorage.setItem(t,JSON.stringify("function"==typeof e?e():e))}},{key:"read",value:function(t){var e=localStorage.getItem(t)||sessionStorage.getItem(t);if("string"!=typeof e)return e;try{return JSON.parse(e)}catch(t){return e}}}]),t}(),ev=function(){function t(e){qa(this,t),this.name=e,this.client=null}var e;return Xa(t,[{key:"preload",value:(e=za(Ga().mark((function t(e){var n;return Ga().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=e.client,this.client=n;case 2:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"start",value:function(){this.client.on("loaded",this.sendAllProperties),this.client.on("loadDone",this.sendAllProperties)}},{key:"init",value:function(t){}},{key:"sendProperty",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];tv.write(t,e),n||this.client.send(t,e)}},{key:"sendAllProperties",value:function(t){}},{key:"warn",value:function(t){console.warn("[SpringRollContainer] ".concat(this.name,": ").concat(t))}}]),t}(),nv=function(t){Ya(n,ev);var e=tu(n);function n(t){var r;return qa(this,n),(r=e.call(this,t)).sendMutes=!1,r}return Xa(n,[{key:"init",value:function(t){this.sendMutes=!0}},{key:"_disableButton",value:function(t){t instanceof HTMLButtonElement&&(t.classList.remove("enabled"),t.classList.add("disabled"))}},{key:"reset",value:function(){this.sendMutes=!1}},{key:"_setMuteProp",value:function(t,e,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];console.log("_setmuteprop",t,n,o),Array.isArray(e)?e.forEach((function(t){return r.changeMutedState(t,n)})):this.changeMutedState(e,n),this.sendProperty(t,n,o)}},{key:"changeMutedState",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.button?t.button:t;n instanceof HTMLElement&&(n.classList.remove("unmuted"),n.classList.remove("muted"),n.classList.add(e?"muted":"unmuted"))}}]),n}(),rv=M,ov=Q,iv=Se("match"),sv=function(t){var e;return rv(t)&&(void 0!==(e=t[iv])?!!e:"RegExp"==ov(t))},av=TypeError,uv=Se("match"),lv=hs,cv=function(t){if(sv(t))throw av("The method doesn't accept regular expressions");return t},dv=St,hv=sf,fv=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[uv]=!1,"/./"[t](e)}catch(t){}}return!1},pv=X("".indexOf);lv({target:"String",proto:!0,forced:!fv("includes")},{includes:function(t){return!!~pv(hv(dv(this)),hv(cv(t)),arguments.length>1?arguments[1]:void 0)}});var vv={exports:{}},yv={},gv=_r,mv=Ct,bv=pu,Sv=Array,wv=Math.max,kv=Q,Ev=Er,Bv=Di.f,xv=function(t,e,n){for(var r=mv(t),o=gv(e,r),i=gv(void 0===n?r:n,r),s=Sv(wv(i-o,0)),a=0;o1?arguments[1]:void 0);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!u(this,t)}}),by(i,n?{get:function(t){var e=u(this,t);return e&&e.value},set:function(t,e){return a(this,0===t?0:t,e)}}:{add:function(t){return a(this,t=0===t?0:t,t)}}),Ly&&my(i,"size",{configurable:!0,get:function(){return s(this).size}}),o},setStrong:function(t,e,n){var r=e+" Iterator",o=Ay(e),i=Ay(r);By(t,e,(function(t,e){Oy(this,{type:r,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=i(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?xy("keys"==e?n.key:"values"==e?n.value:[n.key,n.value],!1):(t.target=void 0,xy(void 0,!0))}),n?"entries":"values",!n,!0),Py(e)}};(function(t,e,n){var r=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=r?"set":"add",s=ny[t],a=s&&s.prototype,u=s,l={},c=function(t){var e=ry(a[t]);iy(a,t,"add"==t?function(t){return e(this,0===t?0:t),this}:"delete"==t?function(t){return!(o&&!dy(t))&&e(this,0===t?0:t)}:"get"==t?function(t){return o&&!dy(t)?void 0:e(this,0===t?0:t)}:"has"==t?function(t){return!(o&&!dy(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})};if(oy(t,!ly(s)||!(o||a.forEach&&!hy((function(){(new s).entries().next()})))))u=n.getConstructor(e,t,r,i),sy.enable();else if(oy(t,!0)){var d=new u,h=d[i](o?{}:-0,1)!=d,f=hy((function(){d.has(1)})),p=fy((function(t){new s(t)})),v=!o&&hy((function(){for(var t=new s,e=5;e--;)t[i](e,e);return!t.has(-0)}));p||((u=e((function(t,e){uy(t,a);var n=vy(new s,t,u);return cy(e)||ay(e,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=a,a.constructor=u),(f||v)&&(c("delete"),c("has"),r&&c("get")),(v||h)&&c(i),o&&a.clear&&delete a.clear}l[t]=u,ey({global:!0,constructor:!0,forced:u!=s},l),py(u,t),o||n.setStrong(u,t,r)})("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),Vy);var Cy=Et,Dy=Hr;hs({target:"Object",stat:!0,forced:G((function(){Dy(1)}))},{keys:function(t){return Dy(Cy(t))}});var My=hn.map;hs({target:"Array",proto:!0,forced:!mu("map")},{map:function(t){return My(this,t,arguments.length>1?arguments[1]:void 0)}});var Ty=gn,Iy=X,Ry=Hr,jy=Er,Ny=Iy(Ho.f),Ky=Iy([].push),Fy=function(t){return function(e){for(var n,r=jy(e),o=Ry(r),i=o.length,s=0,a=[];i>s;)n=o[s++],Ty&&!Ny(r,n)||Ky(a,t?[n,r[n]]:r[n]);return a}},Gy={entries:Fy(!0),values:Fy(!1)}.values;hs({target:"Object",stat:!0},{values:function(t){return Gy(t)}});var Uy=function(t){Ya(n,ev);var e=tu(n);function n(t){var r,o=t.selector,i=t.controlName,s=t.featureName,a=void 0===s?"captionStyles":s,u=t.defaultValue,l=t.pluginName;return qa(this,n),(r=e.call(this,l)).controlName=i,r.featureName=a,r.radioElements=document.querySelectorAll(o),r.defaultValue=u,r.radioGroup={},r.radioElements.length<=0?(r.warn("".concat(r.controlName," RadioGroup found no HTMLElements with selector: ").concat(o)),Za(r)):(r.radioElements.forEach((function(t){"radio"===t.type?(t.value=t.value.toLowerCase(),r.radioGroup[t.value]=t):r.warn("".concat(r.controlName," was provided a non Radio Button element with selector: ").concat(o))})),r.radioGroup[r.defaultValue]||(r.warn("".concat(r.controlName," RadioGroup for selector: ").concat(o," does not have a radio button with value ").concat(r.defaultValue," to use as default value. Using first element as default")),r.defaultValue=r.radioElements[0].value.toLowerCase()),r.radioGroup[r.defaultValue].checked=!0,r)}return Xa(n,[{key:"hasOnly",value:function(t){for(var e in this.radioGroup)if(!t.includes(this.radioGroup[e].value))return this.warn("".concat(this.controlName," radio button value: ").concat(this.radioGroup[e].value," is not an accepted value. Skipping radio group")),!1;return!0}},{key:"hasDuplicateValues",value:function(){return this.values.length!==eu(new Set(this.values)).length}},{key:"enableRadioEvents",value:function(t){if(!(!this.radioGroup.length<=0)){var e=t;for(var n in this.radioGroup)this.radioGroup[n].addEventListener("change",e)}}},{key:"disableRadioEvents",value:function(t){if(!(!this.radioGroup.length<=0))for(var e in this.radioGroup)this.radioGroup[e].removeEventListener("change",t)}},{key:"displayRadios",value:function(t){if(this.radioGroup.length<=0&&t[this.featureName])this.warn("".concat(this.controlName," was not provided a valid input element or selector but '").concat(this.featureName,"' was included as a game feature"));else if(!(this.radioGroup.length<=0||t[this.featureName]))for(var e in this.radioGroup)this.radioGroup[e].style.display="none"}},{key:"resetState",value:function(){this.radioGroup[this.defaultValue].checked=!0}},{key:"length",get:function(){return Object.keys(this.radioGroup).length}},{key:"values",get:function(){return Object.values(this.radioGroup).map((function(t){return t.value}))}}]),n}(),Hy=function(t){Ya(n,ev);var e=tu(n);function n(t,r,o){var i,s=o.supportedValues,a=o.initialValue,u=o.controlName,l=o.featureName,c=o.radioCount;return qa(this,n),(i=e.call(this,r)).selectors=t?t.split(","):[],i.supportedValues=s,i.initialValue=s.includes(a)?a:s[0],i.controlName=u,i.featureName=l,i.radioCount=c,i.sendAllProperties=i.sendAllProperties.bind(Qa(i)),i._currentValue=i.initialValue,i.radioGroups=i.setUpRadios(i.selectors),i.radioGroupsLength=i.radioGroups.length,i}return Xa(n,[{key:"setUpRadios",value:function(t){var e=this,n=[];return t.forEach((function(t){var r=new Uy({selector:t.trim(),controlName:e.controlName,defaultValue:e.initialValue,pluginName:e.name,featureName:e.featureName});r.length===e.radioCount?r.hasOnly(e.supportedValues)&&(r.hasDuplicateValues()?e.warn("Duplicate radio button values detected (values: ".concat(r.values," ). Skipping radio group")):n.push(r)):e.warn('Selector "'.concat(t,'" did not find exactly ').concat(e.radioCount," radio buttons for ").concat(e.controlName,". Skipping selector"))})),n}},{key:"start",value:function(){this.client.on("loaded",this.sendAllProperties),this.client.on("loadDone",this.sendAllProperties)}},{key:"sendAllProperties",value:function(){this.sendProperty(this.featureName,this.property)}},{key:"currentValue",get:function(){return this._currentValue},set:function(t){if(this.supportedValues.includes(t)){this._currentValue=t;for(var e=0,n=this.radioGroups.length;e2)if(l=ug(l),43===(e=pg(l,0))||45===e){if(88===(n=pg(l,2))||120===n)return NaN}else if(48===e){switch(pg(l,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+l}for(s=(i=fg(l,2)).length,a=0;ao)return NaN;return parseInt(i,r)}return+l},yg=$y(lg,!cg(" 0o1")||!cg("0b1")||cg("+0x1")),gg=function(t){var e,n=arguments.length<1?0:cg(function(t){var e=ng(t,"number");return"bigint"==typeof e?e:vg(e)}(t));return tg(dg,e=this)&&rg((function(){ag(e)}))?Zy(Object(n),this,gg):n};gg.prototype=dg,yg&&(dg.constructor=gg),qy({global:!0,constructor:!0,wrap:!0,forced:yg},{Number:gg});yg&&function(t,e){for(var n,r=Wy?og(e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;r.length>o;o++)Qy(e,n=r[o])&&!Qy(t,n)&&sg(t,n,ig(e,n))}(Yy[lg],cg);var mg=function(){function t(e){var n=e.slider,r=e.control,o=e.min,i=void 0===o?0:o,s=e.max,a=void 0===s?1:s,u=e.step,l=void 0===u?.1:u,c=e.defaultValue,d=void 0===c?1:c;qa(this,t),this.min=i,this.max=a,this.step=l,this.sliderValue=d,this.control=r,this.slider=this.setUpSlider(n,r)}return Xa(t,[{key:"setUpSlider",value:function(t,e){if("string"==typeof t&&(t=document.querySelector(t)),!t||"range"!==t.type)return null;var n=tv.read(e);return t.min=this.min,t.max=this.max,t.step=this.step,(n||0===n)&&n.toString().trim().length>0?(t.value=n,this.sliderValue=n):t.value=this.sliderValue,t}},{key:"sliderRange",value:function(t){return tthis.max?this.max:t}},{key:"enableSliderEvents",value:function(t){if(this.slider){var e=t;this.slider.addEventListener("change",e),this.slider.addEventListener("input",e)}}},{key:"disableSliderEvents",value:function(t){if(this.slider){var e=t;this.slider.removeEventListener("change",e),this.slider.removeEventListener("input",e)}}},{key:"displaySlider",value:function(t){!this.slider&&t[this.control]&&console.warn("".concat(this.control," was not provided a valid input element or selector but was included as a game feature")),this.slider&&(this.slider.style.display=t[this.control]?"":"none")}},{key:"dispatchEvent",value:function(t){this.slider.dispatchEvent(t)}},{key:"value",get:function(){return this.slider.value},set:function(t){this.slider.value=t}}]),t}(),bg=function(){function t(e){var n=e.button,r=e.onClick,o=e.channel;qa(this,t),this.button=n instanceof HTMLElement?n:document.querySelector(n),this.onClick=r,this.channel=o,this.button&&this.button.addEventListener("click",r)}return Xa(t,[{key:"displayButton",value:function(t){this.button instanceof HTMLElement&&(this.button.style.display=t[this.channel]||"pause"===this.channel||"hints"===this.channel?"":"none")}},{key:"enableButton",value:function(){this.button&&this.button.classList.remove("disabled")}},{key:"addClass",value:function(t){this.button.className=this.button.className?this.button.className+" ".concat(t):" ".concat(t)}}]),t}(),Sg=function(t){Ya(n,ev);var e=tu(n);function n(t,r,o){var i,s=o.defaultValue,a=void 0===s?"0.5":s,u=o.minValue,l=void 0===u?"0":u,c=o.maxValue,d=void 0===c?"1":c,h=o.featureName;return qa(this,n),(i=e.call(this,r)).featureName=h,i.minValue=l,i.defaultValue=a,i.maxValue=d,i._currentValue=a,i.sliders=i.setUpSliders(t),i.slidersLength=i.sliders.length,i.sendAllProperties=i.sendAllProperties.bind(Qa(i)),0>=i.slidersLength?(i.warn("Plugin was not provided any valid HTML Elements"),Za(i)):i}return Xa(n,[{key:"setUpSliders",value:function(t){var e=this,n=[];return t instanceof HTMLElement?n.push(new mg({slider:t,control:this.featureName,defaultValue:this.defaultValue,minValue:this.minValue,maxValue:this.maxValue})):document.querySelectorAll(t).forEach((function(t){n.push(new mg({slider:t,control:e.featureName,defaultValue:e.defaultValue,minValue:e.minValue,maxValue:e.maxValue}))})),n}},{key:"init",value:function(){this.client.on("features",function(t){if(t.data)for(var e=0;e3&&void 0!==arguments[3]?arguments[3]:{},a=s.defaultFontSize,u=void 0===a?"medium":a,l=s.defaultColor,c=void 0===l?"default":l,d=s.defaultAlignment,h=void 0===d?"top":d;if(qa(this,n),(i=e.call(this,"Caption-Style-Plugin")).sendAllProperties=i.sendAllProperties.bind(Qa(i)),i.captionsStyles=Object.assign({},wg,tv.read(n.captionStyleKey)||{}),i.fontSizeSelectors=t?t.split(","):[],i.colorSelectors=r?r.split(","):[],i.alignmentSelectors=o?o.split(","):[],i.defaultFontSize=Bg.includes(u)?u:Bg[0],i.defaultColor=xg.includes(c)?c:xg[0],i.defaultAlignment=Pg.includes(h)?h:Pg[0],i.fontSizeRadios=[],i.colorRadios=[],i.alignmentRadios=[],i.fontSizeRadios=i.setUpFontSizeRadios(i.fontSizeSelectors),i.colorRadios=i.setUpColorRadios(i.colorSelectors),i.alignmentRadios=i.setUpAlignmentRadios(i.alignmentSelectors),i._captionsMuted=!1,i.alignmentRadiosLength=i.alignmentRadios.length,i.fontSizeRadiosLength=i.fontSizeRadios.length,i.colorRadiosLength=i.colorRadios.length,0>=i.alignmentRadiosLength+i.fontSizeRadiosLength+i.colorRadiosLength)return i.warn("Plugin was not provided any input elements"),Za(i);for(var f=0;f0&&void 0!==arguments[0]?arguments[0]:wg,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";"object"===Ua(e)?Object.assign(this.captionsStyles,e):"string"==typeof e&&(this.captionsStyles[e]=r),this.colorRadios.forEach((function(e){var n="white"===t.captionsStyles.color?"default":"inverted";e.radioGroup[n].checked=!0})),this.alignmentRadios.forEach((function(e){e.radioGroup[t.captionsStyles.align].checked=!0})),this.fontSizeRadios.forEach((function(e){e.radioGroup[t.captionsStyles.size].checked=!0})),tv.write(n.captionStyleKey,this.captionsStyles),this.client&&this.client.send(n.captionStyleKey,this.captionsStyles)}},{key:"radios",get:function(){return this.colorRadios.concat(this.alignmentRadios).concat(this.fontSizeRadios)}}],[{key:"captionStyleKey",get:function(){return"captionsStyles"}}]),n}(),_g=function(t){Ya(n,nv);var e=tu(n);function n(t){var r;return qa(this,n),(r=e.call(this,"Caption-Button-Plugin")).sendAllProperties=r.sendAllProperties.bind(Qa(r)),r._captionsButtons=[],t instanceof HTMLElement?r._captionsButtons[0]=new bg({button:t,onClick:r.captionsButtonClick.bind(Qa(r)),channel:"captions"}):document.querySelectorAll(t).forEach((function(t){r._captionsButtons.push(new bg({button:t,onClick:r.captionsButtonClick.bind(Qa(r)),channel:"captions"}))})),r._captionsMuted=!1,r.captionsButtonLength=r._captionsButtons.length,0>=r.captionsButtonLength?(r.warn("Plugin was not provided any valid button or input elements"),Za(r)):r}return Xa(n,[{key:"init",value:function(){this.client.on("features",function(t){for(var e=0;e1&&void 0!==arguments[1])||arguments[1];qa(this,n),(r=e.call(this,"Pause-Button-plugin"))._manageOwnVisibility=o,r._appBlurred=!1,r._containerBlurred=!1,r._focusTimer=null,r._isManualPause=!1,r._keepFocus=!1,r._paused=!1,r.iframe=null,r.focusApp=r.focusApp.bind(Qa(r)),r.manageFocus=r.manageFocus.bind(Qa(r)),r.onKeepFocus=r.onKeepFocus.bind(Qa(r)),r.onFocus=r.onFocus.bind(Qa(r));var i=r.onPauseToggle.bind(Qa(r));return r.pauseDisabled=!1,r._pauseButton=[],r.pageVisibility=new Ep(r.onContainerFocus.bind(Qa(r)),r.onContainerBlur.bind(Qa(r))),r.pageVisibility.enabled=r.manageOwnVisibility,t instanceof HTMLElement?r._pauseButton[0]=new bg({button:t,onClick:i,channel:n.pauseKey}):document.querySelectorAll(t).forEach((function(t){r._pauseButton.push(new bg({button:t,onClick:i,channel:n.pauseKey}))})),r}return Xa(n,[{key:"pause",get:function(){return this._paused},set:function(t){if(t=!!t,!this.pauseDisabled){this._paused=t,this.client.send(n.pauseKey,t),this.client.trigger(t?"paused":"resumed",{paused:t});for(var e=0,r=this._pauseButton.length;e0&&void 0!==arguments[0]?arguments[0]:{},o=e.soundButtons,i=e.musicButtons,s=e.sfxButtons,a=e.voButtons,u=e.soundSliders,l=e.musicSliders,c=e.sfxSliders,d=e.voSliders;qa(this,r),t=n.call(this,"Sound-Button-Plugin");var h=tv.read(r.soundMutedKey);if(t.sendAllProperties=t.sendAllProperties.bind(Qa(t)),t._soundMuted=h||!1,t._musicMuted=!1,t._voMuted=!1,t._sfxMuted=!1,t._musicMutedByUser=!1,t._soundMutedByUser=!1,t._sfxMutedByUser=!1,t._voMutedByUser=!1,t.soundMutedEnabled=!1,t.musicMutedEnabled=!1,t.sfxMutedEnabled=!1,t.voMutedEnabled=!1,t.soundVolume=1,t.musicVolume=1,t.sfxVolume=1,t.voVolume=1,t.soundSliders=[],t.musicSliders=[],t.sfxSliders=[],t.voSliders=[],t.soundButtons=[],t.musicButtons=[],t.sfxButtons=[],t.voButtons=[],u instanceof HTMLElement?t.soundSliders[0]=new mg({slider:u,control:r.soundVolumeKey,defaultValue:t.soundVolume}):document.querySelectorAll(u).forEach((function(e){var n=new mg({slider:e,control:r.soundVolumeKey,defaultValue:t.soundVolume});n.slider&&t.soundSliders.push(n)})),l instanceof HTMLElement?t.musicSliders[0]=new mg({slider:l,control:r.musicVolumeKey,defaultValue:t.musicVolume}):document.querySelectorAll(l).forEach((function(e){var n=new mg({slider:e,control:r.musicVolumeKey,defaultValue:t.musicVolume});n.slider&&t.musicSliders.push(n)})),c instanceof HTMLElement?t.sfxSliders[0]=new mg({slider:c,control:r.sfxVolumeKey,defaultValue:t.sfxVolume}):document.querySelectorAll(c).forEach((function(e){var n=new mg({slider:e,control:r.sfxVolumeKey,defaultValue:t.sfxVolume});n.slider&&t.sfxSliders.push(n)})),d instanceof HTMLElement?t.voSliders[0]=new mg({slider:d,control:r.voVolumeKey,defaultValue:t.voVolume}):document.querySelectorAll(d).forEach((function(e){var n=new mg({slider:e,control:r.voVolumeKey,defaultValue:t.voVolume});n.slider&&t.voSliders.push(n)})),o instanceof HTMLElement?t.soundButtons[0]=new bg({button:o,onClick:t.onSoundToggle.bind(Qa(t)),channel:r.soundKey}):document.querySelectorAll(o).forEach((function(e){t.soundButtons.push(new bg({button:e,onClick:t.onSoundToggle.bind(Qa(t)),channel:r.soundKey}))})),i instanceof HTMLElement?t.musicButtons[0]=new bg({button:i,onClick:t.onMusicToggle.bind(Qa(t)),channel:"music"}):document.querySelectorAll(i).forEach((function(e){t.musicButtons.push(new bg({button:e,onClick:t.onMusicToggle.bind(Qa(t)),channel:"music"}))})),s instanceof HTMLElement?t.sfxButtons[0]=new bg({button:s,onClick:t.onSFXToggle.bind(Qa(t)),channel:"sfx"}):document.querySelectorAll(s).forEach((function(e){t.sfxButtons.push(new bg({button:e,onClick:t.onSFXToggle.bind(Qa(t)),channel:"sfx"}))})),a instanceof HTMLElement?t.voButtons[0]=new bg({button:a,onClick:t.onVOToggle.bind(Qa(t)),channel:"vo"}):document.querySelectorAll(a).forEach((function(e){t.voButtons.push(new bg({button:e,onClick:t.onVOToggle.bind(Qa(t)),channel:"vo"}))})),t.soundSlidersLength=t.soundSliders.length,t.musicSlidersLength=t.musicSliders.length,t.sfxSlidersLength=t.sfxSliders.length,t.voSlidersLength=t.voSliders.length,t.soundButtonsLength=t.soundButtons.length,t.musicButtonsLength=t.musicButtons.length,t.sfxButtonsLength=t.sfxButtons.length,t.voButtonsLength=t.voButtons.length,0>=t.soundSlidersLength+t.musicSlidersLength+t.sfxSlidersLength+t.voSlidersLength+t.soundButtonsLength+t.musicButtonsLength+t.sfxButtonsLength+t.voButtonsLength)return t.warn("Plugin was not provided any valid HTML Elements"),Za(t);for(var f=0;f3&&void 0!==arguments[3]&&arguments[3];this["_"+t]=e,this._setMuteProp(t,n,e,r)}},{key:"preload",value:(e=za(Ga().mark((function t(e){var n;return Ga().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=e.client,this.client=n,this.client.on("features",function(t){if(t.data){this.soundMutedEnabled=!!t.data.sound,this.musicMutedEnabled=!!t.data.music,this.sfxMutedEnabled=!!t.data.sfx,this.voMutedEnabled=!!t.data.vo,this.soundVolumeEnabled=!!t.data.soundVolume,this.musicVolumeEnabled=!!t.data.musicVolume,this.sfxVolumeEnabled=!!t.data.sfxVolume,this.voVolumeEnabled=!!t.data.voVolume;for(var e=0;e0&&this.sendProperty(r.soundVolumeKey,this.soundVolume),this.musicVolumeEnabled&&this.musicSlidersLength>0&&this.sendProperty(r.musicVolumeKey,this.musicVolume),this.voVolumeEnabled&&this.voSlidersLength>0&&this.sendProperty(r.voVolumeKey,this.voVolume),this.sfxVolumeEnabled&&this.sfxSlidersLength>0&&this.sendProperty(r.sfxVolumeKey,this.sfxVolume),this.soundButtonsLength>0&&this.soundMutedEnabled&&(this.soundMuted||!this.soundVolumeEnabled)&&this.sendProperty(r.soundMutedKey,this.soundMuted),this.musicButtonsLength>0&&this.musicMutedEnabled&&(this.musicMuted||!this.musicVolumeEnabled)&&this.sendProperty(r.musicMutedKey,this.musicMuted),this.voButtonsLength>0&&this.voMutedEnabled&&(this.voMuted||!this.voVolumeEnabled)&&this.sendProperty(r.voMutedKey,this.voMuted),this.sfxButtonsLength>0&&this.sfxMutedEnabled&&(this.sfxMuted||!this.sfxVolumeEnabled)&&this.sendProperty(r.sfxMutedKey,this.sfxMuted)}},{key:"soundMuted",get:function(){return this._soundMuted},set:function(t){if(t!==this.soundMuted){var e=!1;this.soundVolumeEnabled&&!t&&(this.sendProperty(r.soundVolumeKey,this.soundVolume),e=!0),this.setMuteProp("soundMuted",t,this.soundButtons,e)}else this.setMuteProp("soundMuted",t,this.soundButtons,!0)}},{key:"voMuted",get:function(){return this._voMuted},set:function(t){var e=!1;this.voMuted!==t?(this.voVolumeEnabled&&!t&&(this.sendProperty(r.voVolumeKey,this.voVolume),e=!0),this.setMuteProp("voMuted",t,this.voButtons,e)):this.setMuteProp("voMuted",t,this.voButtons,!0)}},{key:"musicMuted",get:function(){return this._musicMuted},set:function(t){if(this.musicMuted!==t){var e=!1;this.musicVolumeEnabled&&!t&&(this.sendProperty(r.musicVolumeKey,this.musicVolume),e=!0),this.setMuteProp("musicMuted",t,this.musicButtons,e)}else this.setMuteProp("musicMuted",t,this.musicButtons,!0)}},{key:"sfxMuted",get:function(){return this._sfxMuted},set:function(t){if(this.sfxMuted!==t){var e=!1;this.sfxVolumeEnabled&&!t&&(this.sendProperty(r.sfxVolumeKey,this.sfxVolume),e=!0),this.setMuteProp("sfxMuted",t,this.sfxButtons,e)}else this.setMuteProp("sfxMuted",t,this.sfxButtons,!0)}},{key:"soundButton",get:function(){return this._soundButton.button}},{key:"musicButton",get:function(){return this._musicButton.button}},{key:"sfxButton",get:function(){return this._sfxButton.button}},{key:"voButton",get:function(){return this._voButton.button}}],[{key:"soundMutedKey",get:function(){return"soundMuted"}},{key:"voMutedKey",get:function(){return"voMuted"}},{key:"musicMutedKey",get:function(){return"musicMuted"}},{key:"sfxMutedKey",get:function(){return"sfxMuted"}},{key:"soundVolumeKey",get:function(){return"soundVolume"}},{key:"sfxVolumeKey",get:function(){return"sfxVolume"}},{key:"voVolumeKey",get:function(){return"voVolume"}},{key:"musicVolumeKey",get:function(){return"musicVolume"}},{key:"soundKey",get:function(){return"sound"}}]),r}(),Cg=function(){function t(){qa(this,t),this.dbName,this.savedData}return Xa(t,[{key:"IDBOpen",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;this.savedData=new tv,this.savedData.IDBOpen(t,e,n,r,o)}},{key:"IDBAdd",value:function(t,e,n,r){this.savedData.IDBAdd(t,e,n,r)}},{key:"IDBUpdate",value:function(t,e,n,r){this.savedData.IDBUpdate(t,e,n,r)}},{key:"IDBRemove",value:function(t,e,n){this.savedData.IDBRemove(t,e,n)}},{key:"IDBRead",value:function(t,e,n){this.savedData.IDBRead(t,e,n)}},{key:"IDBReadAll",value:function(t,e,n){this.savedData.IDBReadAll(t,e,n)}},{key:"IDBGetVersion",value:function(t,e){new tv(t).IDBGetVersion(t,e)}},{key:"IDBClose",value:function(t){this.savedData.IDBClose(t)}},{key:"IDBDeleteDB",value:function(t,e,n){new tv(t).IDBDeleteDB(t,e,n)}}],[{key:"remove",value:function(t,e){tv.remove(t),e()}},{key:"write",value:function(t,e,n){tv.write(t,e),n()}},{key:"read",value:function(t,e){e(tv.read(t))}}]),t}(),Dg=function(t){Ya(n,ev);var e=tu(n);function n(){var t;return qa(this,n),(t=e.call(this,"UserData-Plugin")).onUserDataRemove=t.onUserDataRemove.bind(Qa(t)),t.onUserDataRead=t.onUserDataRead.bind(Qa(t)),t.onUserDataWrite=t.onUserDataWrite.bind(Qa(t)),t.onIDBAdd=t.onIDBAdd.bind(Qa(t)),t.onIDBOpen=t.onIDBOpen.bind(Qa(t)),t.onIDBRead=t.onIDBRead.bind(Qa(t)),t.onIDBReadAll=t.onIDBReadAll.bind(Qa(t)),t.onIDBRemove=t.onIDBRemove.bind(Qa(t)),t.onIDBUpdate=t.onIDBUpdate.bind(Qa(t)),t.onIDBUpdate=t.onIDBUpdate.bind(Qa(t)),t.onIDBClose=t.onIDBClose.bind(Qa(t)),t.IDBReadAll=t.onIDBReadAll.bind(Qa(t)),t.onIDBGetVersion=t.onIDBGetVersion.bind(Qa(t)),t.onIDBDeleteDB=t.onIDBDeleteDB.bind(Qa(t)),t.savedDataHandler=null,t}return Xa(n,[{key:"init",value:function(){this.client.on("userDataRemove",this.onUserDataRemove),this.client.on("userDataRead",this.onUserDataRead),this.client.on("userDataWrite",this.onUserDataWrite),this.client.on("IDBOpen",this.onIDBOpen),this.client.on("IDBRead",this.onIDBRead),this.client.on("IDBReadAll",this.onIDBReadAll),this.client.on("IDBAdd",this.onIDBAdd),this.client.on("IDBRemove",this.onIDBRemove),this.client.on("IDBUpdate",this.onIDBUpdate),this.client.on("IDBClose",this.onIDBClose),this.client.on("IDBGetVersion",this.onIDBGetVersion),this.client.on("IDBDeleteDB",this.onIDBDeleteDB)}},{key:"onUserDataRemove",value:function(t){var e=this,n=t.data,r=t.type;Cg.remove(n,(function(){e.client.send(r)}))}},{key:"onUserDataRead",value:function(t){var e=this,n=t.data,r=t.type;Cg.read(n,(function(t){return e.client.send(r,t)}))}},{key:"onUserDataWrite",value:function(t){var e=this,n=t.type,r=t.data,o=r.name,i=r.value;Cg.write(o,i,(function(){return e.client.send(n)}))}},{key:"onIDBOpen",value:function(t){var e=this,n=t.type,r=t.data,o=r.dbName,i=r.dbVersion,s=void 0===i?null:i,a=r.additions,u=void 0===a?{}:a,l=r.deletions,c=void 0===l?{}:l;this.savedDataHandler=new Cg,this.savedDataHandler.IDBOpen(o,s,u,c,(function(t){return e.client.send(n,t)}))}},{key:"onIDBAdd",value:function(t){var e=this,n=t.type,r=t.data,o=r.storeName,i=r.value,s=r.key;this.savedDataHandler.IDBAdd(o,i,s,(function(t){return e.client.send(n,t)}))}},{key:"onIDBUpdate",value:function(t){var e=this,n=t.type,r=t.data,o=r.storeName,i=r.key,s=r.value;this.savedDataHandler.IDBUpdate(o,i,s,(function(t){return e.client.send(n,t)}))}},{key:"onIDBRemove",value:function(t){var e=this,n=t.type,r=t.data,o=r.storeName,i=r.key;this.savedDataHandler.IDBRemove(o,i,(function(t){return e.client.send(n,t)}))}},{key:"onIDBRead",value:function(t){var e=this,n=t.type,r=t.data,o=r.storeName,i=r.key;this.savedDataHandler.IDBRead(o,i,(function(t){return e.client.send(n,t)}))}},{key:"onIDBReadAll",value:function(t){var e=this,n=t.type,r=t.data,o=r.storeName,i=r.count;this.savedDataHandler.IDBReadAll(o,i,(function(t){return e.client.send(n,t)}))}},{key:"onIDBGetVersion",value:function(t){var e=this,n=t.type,r=t.data.dbName;(new Cg).IDBGetVersion(r,(function(t){return e.client.send(n,t)}))}},{key:"onIDBClose",value:function(t){var e=this,n=t.type;this.savedDataHandler.IDBClose((function(t){return e.client.send(n,t)}))}},{key:"onIDBDeleteDB",value:function(t){var e=this,n=t.type,r=t.data,o=r.dbName,i=r.options;(new Cg).IDBDeleteDB(o,i,(function(t){return e.client.send(n,t)}))}}]),n}(),Mg=function(t){Ya(n,Sg);var e=tu(n);function n(t){var r,o=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).defaultPointerSize,i=void 0===o?.5:o;qa(this,n),r=e.call(this,t,"UISize-Pointer-Plugin",{defaultValue:i,featureName:n.pointerSizeKey});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultButtonSize,i=void 0===o?.5:o;qa(this,n),r=e.call(this,t,"UISize-Button-Plugin",{defaultValue:i,featureName:n.buttonSizeKey});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultSensitivity,i=void 0===o?.5:o;qa(this,n),(r=e.call(this,t,"Control-Sensitivity-Plugin",{defaultValue:i,featureName:n.controlSensitivityKey})).sendAllProperties=r.sendAllProperties.bind(Qa(r));for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).customClassName,i=void 0===o?"springrollContainerKeyBinding__button":o;return qa(this,n),(r=e.call(this,"Keyboard-Map-Plugin")).sendAllProperties=r.sendAllProperties.bind(Qa(r)),r.bindKey=r.bindKey.bind(Qa(r)),r.onKeyButtonClick=r.onKeyButtonClick.bind(Qa(r)),r.className=i,r.keyContainers=t instanceof HTMLElement?[t]:document.querySelectorAll(t),r.keyBindings={},r.buttons=[],r.activekeyButton,r.sendAfterFetch=!1,r.canEmit=!1,r.keyContainersLength=r.keyContainers.length,r.keyContainersLength<=0?(r.warn("plugin was not provided any valid key binding container elements"),Za(r)):r}return Xa(n,[{key:"onKeyButtonClick",value:function(t){for(var e=0,n=this.buttons.length;e1&&void 0!==arguments[1]?arguments[1]:{}).defaultValue,i=void 0===o?0:o;qa(this,n),r=e.call(this,t,"Layer-Plugin",{defaultValue:i,featureName:n.layersSliderKey});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultValue,i=void 0===o?Ng[0]:o;qa(this,n),(r=e.call(this,t,"HUD-Layout-Plugin",{supportedValues:Ng,initialValue:i,controlName:"Hud Selector",featureName:n.hudPositionKey,radioCount:Ng.length})).sendAllProperties=r.sendAllProperties.bind(Qa(r)),r.sendAfterFetch=!1,r.canEmit=!1,r.positions=[],r.radioGroupsLength<=0&&r.warn("Plugin was not provided any valid HTML elements");for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultValue,i=void 0===o?Fg[0]:o;if(qa(this,n),(r=e.call(this,t,"Color-Filter-Plugin",{supportedValues:Fg,initialValue:i,controlName:"Color Vision Selector",featureName:n.colorVisionKey,radioCount:Fg.length})).sendAllProperties=r.sendAllProperties.bind(Qa(r)),r.sendAfterFetch=!1,r.canEmit=!1,r.colors=[],r.radioGroupsLength<=0)return r.warn("Plugin was not provided any valid HTML elements"),Za(r);for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultHitAreaScale,i=void 0===o?.5:o;qa(this,n),r=e.call(this,t,"Hit-Area-Scale-Plugin",{defaultValue:i,featureName:n.hitAreaScaleKey});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultDragThresholdScale,i=void 0===o?.5:o;qa(this,n),r=e.call(this,t,"Drag-Threshold-Scale-Plugin",{defaultValue:i,featureName:n.dragThresholdScaleKey});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultHealth,i=void 0===o?.5:o;qa(this,n),r=e.call(this,t,"Health-Scale-Plugin",{defaultValue:i,featureName:n.healthKey});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultObjectCount,i=void 0===o?.5:o;qa(this,n),r=e.call(this,t,"Object-Count-Plugin",{defaultValue:i,featureName:n.objectCountKey});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultCompletionPercentage,i=void 0===o?.5:o;qa(this,n),r=e.call(this,t,"Completion-Percentage-Plugin",{defaultValue:i,featureName:n.completionPercentageKey});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultSpeedScale,i=void 0===o?.5:o;qa(this,n),r=e.call(this,t,"Speed-Scale-Plugin",{defaultValue:i,featureName:n.speedScaleKey});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultTimersScale,i=void 0===o?.5:o;qa(this,n),r=e.call(this,t,"Timers-Scale-Plugin",{defaultValue:i,featureName:n.timersScaleKey});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultInputCount,i=void 0===o?.5:o;qa(this,n),r=e.call(this,t,"Input-Count-Plugin",{defaultValue:i,featureName:n.inputCountKey});for(var s=0;s -1\n }\n}\n\nfunction normalizeName(name) {\n if (typeof name !== 'string') {\n name = String(name)\n }\n if (/[^a-z0-9\\-#$%&'*+.^_`|~!]/i.test(name) || name === '') {\n throw new TypeError('Invalid character in header field name: \"' + name + '\"')\n }\n return name.toLowerCase()\n}\n\nfunction normalizeValue(value) {\n if (typeof value !== 'string') {\n value = String(value)\n }\n return value\n}\n\n// Build a destructive iterator for the value list\nfunction iteratorFor(items) {\n var iterator = {\n next: function() {\n var value = items.shift()\n return {done: value === undefined, value: value}\n }\n }\n\n if (support.iterable) {\n iterator[Symbol.iterator] = function() {\n return iterator\n }\n }\n\n return iterator\n}\n\nexport function Headers(headers) {\n this.map = {}\n\n if (headers instanceof Headers) {\n headers.forEach(function(value, name) {\n this.append(name, value)\n }, this)\n } else if (Array.isArray(headers)) {\n headers.forEach(function(header) {\n this.append(header[0], header[1])\n }, this)\n } else if (headers) {\n Object.getOwnPropertyNames(headers).forEach(function(name) {\n this.append(name, headers[name])\n }, this)\n }\n}\n\nHeaders.prototype.append = function(name, value) {\n name = normalizeName(name)\n value = normalizeValue(value)\n var oldValue = this.map[name]\n this.map[name] = oldValue ? oldValue + ', ' + value : value\n}\n\nHeaders.prototype['delete'] = function(name) {\n delete this.map[normalizeName(name)]\n}\n\nHeaders.prototype.get = function(name) {\n name = normalizeName(name)\n return this.has(name) ? this.map[name] : null\n}\n\nHeaders.prototype.has = function(name) {\n return this.map.hasOwnProperty(normalizeName(name))\n}\n\nHeaders.prototype.set = function(name, value) {\n this.map[normalizeName(name)] = normalizeValue(value)\n}\n\nHeaders.prototype.forEach = function(callback, thisArg) {\n for (var name in this.map) {\n if (this.map.hasOwnProperty(name)) {\n callback.call(thisArg, this.map[name], name, this)\n }\n }\n}\n\nHeaders.prototype.keys = function() {\n var items = []\n this.forEach(function(value, name) {\n items.push(name)\n })\n return iteratorFor(items)\n}\n\nHeaders.prototype.values = function() {\n var items = []\n this.forEach(function(value) {\n items.push(value)\n })\n return iteratorFor(items)\n}\n\nHeaders.prototype.entries = function() {\n var items = []\n this.forEach(function(value, name) {\n items.push([name, value])\n })\n return iteratorFor(items)\n}\n\nif (support.iterable) {\n Headers.prototype[Symbol.iterator] = Headers.prototype.entries\n}\n\nfunction consumed(body) {\n if (body.bodyUsed) {\n return Promise.reject(new TypeError('Already read'))\n }\n body.bodyUsed = true\n}\n\nfunction fileReaderReady(reader) {\n return new Promise(function(resolve, reject) {\n reader.onload = function() {\n resolve(reader.result)\n }\n reader.onerror = function() {\n reject(reader.error)\n }\n })\n}\n\nfunction readBlobAsArrayBuffer(blob) {\n var reader = new FileReader()\n var promise = fileReaderReady(reader)\n reader.readAsArrayBuffer(blob)\n return promise\n}\n\nfunction readBlobAsText(blob) {\n var reader = new FileReader()\n var promise = fileReaderReady(reader)\n reader.readAsText(blob)\n return promise\n}\n\nfunction readArrayBufferAsText(buf) {\n var view = new Uint8Array(buf)\n var chars = new Array(view.length)\n\n for (var i = 0; i < view.length; i++) {\n chars[i] = String.fromCharCode(view[i])\n }\n return chars.join('')\n}\n\nfunction bufferClone(buf) {\n if (buf.slice) {\n return buf.slice(0)\n } else {\n var view = new Uint8Array(buf.byteLength)\n view.set(new Uint8Array(buf))\n return view.buffer\n }\n}\n\nfunction Body() {\n this.bodyUsed = false\n\n this._initBody = function(body) {\n /*\n fetch-mock wraps the Response object in an ES6 Proxy to\n provide useful test harness features such as flush. However, on\n ES5 browsers without fetch or Proxy support pollyfills must be used;\n the proxy-pollyfill is unable to proxy an attribute unless it exists\n on the object before the Proxy is created. This change ensures\n Response.bodyUsed exists on the instance, while maintaining the\n semantic of setting Request.bodyUsed in the constructor before\n _initBody is called.\n */\n this.bodyUsed = this.bodyUsed\n this._bodyInit = body\n if (!body) {\n this._bodyText = ''\n } else if (typeof body === 'string') {\n this._bodyText = body\n } else if (support.blob && Blob.prototype.isPrototypeOf(body)) {\n this._bodyBlob = body\n } else if (support.formData && FormData.prototype.isPrototypeOf(body)) {\n this._bodyFormData = body\n } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {\n this._bodyText = body.toString()\n } else if (support.arrayBuffer && support.blob && isDataView(body)) {\n this._bodyArrayBuffer = bufferClone(body.buffer)\n // IE 10-11 can't handle a DataView body.\n this._bodyInit = new Blob([this._bodyArrayBuffer])\n } else if (support.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(body) || isArrayBufferView(body))) {\n this._bodyArrayBuffer = bufferClone(body)\n } else {\n this._bodyText = body = Object.prototype.toString.call(body)\n }\n\n if (!this.headers.get('content-type')) {\n if (typeof body === 'string') {\n this.headers.set('content-type', 'text/plain;charset=UTF-8')\n } else if (this._bodyBlob && this._bodyBlob.type) {\n this.headers.set('content-type', this._bodyBlob.type)\n } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {\n this.headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8')\n }\n }\n }\n\n if (support.blob) {\n this.blob = function() {\n var rejected = consumed(this)\n if (rejected) {\n return rejected\n }\n\n if (this._bodyBlob) {\n return Promise.resolve(this._bodyBlob)\n } else if (this._bodyArrayBuffer) {\n return Promise.resolve(new Blob([this._bodyArrayBuffer]))\n } else if (this._bodyFormData) {\n throw new Error('could not read FormData body as blob')\n } else {\n return Promise.resolve(new Blob([this._bodyText]))\n }\n }\n\n this.arrayBuffer = function() {\n if (this._bodyArrayBuffer) {\n var isConsumed = consumed(this)\n if (isConsumed) {\n return isConsumed\n }\n if (ArrayBuffer.isView(this._bodyArrayBuffer)) {\n return Promise.resolve(\n this._bodyArrayBuffer.buffer.slice(\n this._bodyArrayBuffer.byteOffset,\n this._bodyArrayBuffer.byteOffset + this._bodyArrayBuffer.byteLength\n )\n )\n } else {\n return Promise.resolve(this._bodyArrayBuffer)\n }\n } else {\n return this.blob().then(readBlobAsArrayBuffer)\n }\n }\n }\n\n this.text = function() {\n var rejected = consumed(this)\n if (rejected) {\n return rejected\n }\n\n if (this._bodyBlob) {\n return readBlobAsText(this._bodyBlob)\n } else if (this._bodyArrayBuffer) {\n return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer))\n } else if (this._bodyFormData) {\n throw new Error('could not read FormData body as text')\n } else {\n return Promise.resolve(this._bodyText)\n }\n }\n\n if (support.formData) {\n this.formData = function() {\n return this.text().then(decode)\n }\n }\n\n this.json = function() {\n return this.text().then(JSON.parse)\n }\n\n return this\n}\n\n// HTTP methods whose capitalization should be normalized\nvar methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT']\n\nfunction normalizeMethod(method) {\n var upcased = method.toUpperCase()\n return methods.indexOf(upcased) > -1 ? upcased : method\n}\n\nexport function Request(input, options) {\n if (!(this instanceof Request)) {\n throw new TypeError('Please use the \"new\" operator, this DOM object constructor cannot be called as a function.')\n }\n\n options = options || {}\n var body = options.body\n\n if (input instanceof Request) {\n if (input.bodyUsed) {\n throw new TypeError('Already read')\n }\n this.url = input.url\n this.credentials = input.credentials\n if (!options.headers) {\n this.headers = new Headers(input.headers)\n }\n this.method = input.method\n this.mode = input.mode\n this.signal = input.signal\n if (!body && input._bodyInit != null) {\n body = input._bodyInit\n input.bodyUsed = true\n }\n } else {\n this.url = String(input)\n }\n\n this.credentials = options.credentials || this.credentials || 'same-origin'\n if (options.headers || !this.headers) {\n this.headers = new Headers(options.headers)\n }\n this.method = normalizeMethod(options.method || this.method || 'GET')\n this.mode = options.mode || this.mode || null\n this.signal = options.signal || this.signal\n this.referrer = null\n\n if ((this.method === 'GET' || this.method === 'HEAD') && body) {\n throw new TypeError('Body not allowed for GET or HEAD requests')\n }\n this._initBody(body)\n\n if (this.method === 'GET' || this.method === 'HEAD') {\n if (options.cache === 'no-store' || options.cache === 'no-cache') {\n // Search for a '_' parameter in the query string\n var reParamSearch = /([?&])_=[^&]*/\n if (reParamSearch.test(this.url)) {\n // If it already exists then set the value with the current time\n this.url = this.url.replace(reParamSearch, '$1_=' + new Date().getTime())\n } else {\n // Otherwise add a new '_' parameter to the end with the current time\n var reQueryString = /\\?/\n this.url += (reQueryString.test(this.url) ? '&' : '?') + '_=' + new Date().getTime()\n }\n }\n }\n}\n\nRequest.prototype.clone = function() {\n return new Request(this, {body: this._bodyInit})\n}\n\nfunction decode(body) {\n var form = new FormData()\n body\n .trim()\n .split('&')\n .forEach(function(bytes) {\n if (bytes) {\n var split = bytes.split('=')\n var name = split.shift().replace(/\\+/g, ' ')\n var value = split.join('=').replace(/\\+/g, ' ')\n form.append(decodeURIComponent(name), decodeURIComponent(value))\n }\n })\n return form\n}\n\nfunction parseHeaders(rawHeaders) {\n var headers = new Headers()\n // Replace instances of \\r\\n and \\n followed by at least one space or horizontal tab with a space\n // https://tools.ietf.org/html/rfc7230#section-3.2\n var preProcessedHeaders = rawHeaders.replace(/\\r?\\n[\\t ]+/g, ' ')\n // Avoiding split via regex to work around a common IE11 bug with the core-js 3.6.0 regex polyfill\n // https://github.com/github/fetch/issues/748\n // https://github.com/zloirock/core-js/issues/751\n preProcessedHeaders\n .split('\\r')\n .map(function(header) {\n return header.indexOf('\\n') === 0 ? header.substr(1, header.length) : header\n })\n .forEach(function(line) {\n var parts = line.split(':')\n var key = parts.shift().trim()\n if (key) {\n var value = parts.join(':').trim()\n headers.append(key, value)\n }\n })\n return headers\n}\n\nBody.call(Request.prototype)\n\nexport function Response(bodyInit, options) {\n if (!(this instanceof Response)) {\n throw new TypeError('Please use the \"new\" operator, this DOM object constructor cannot be called as a function.')\n }\n if (!options) {\n options = {}\n }\n\n this.type = 'default'\n this.status = options.status === undefined ? 200 : options.status\n this.ok = this.status >= 200 && this.status < 300\n this.statusText = options.statusText === undefined ? '' : '' + options.statusText\n this.headers = new Headers(options.headers)\n this.url = options.url || ''\n this._initBody(bodyInit)\n}\n\nBody.call(Response.prototype)\n\nResponse.prototype.clone = function() {\n return new Response(this._bodyInit, {\n status: this.status,\n statusText: this.statusText,\n headers: new Headers(this.headers),\n url: this.url\n })\n}\n\nResponse.error = function() {\n var response = new Response(null, {status: 0, statusText: ''})\n response.type = 'error'\n return response\n}\n\nvar redirectStatuses = [301, 302, 303, 307, 308]\n\nResponse.redirect = function(url, status) {\n if (redirectStatuses.indexOf(status) === -1) {\n throw new RangeError('Invalid status code')\n }\n\n return new Response(null, {status: status, headers: {location: url}})\n}\n\nexport var DOMException = global.DOMException\ntry {\n new DOMException()\n} catch (err) {\n DOMException = function(message, name) {\n this.message = message\n this.name = name\n var error = Error(message)\n this.stack = error.stack\n }\n DOMException.prototype = Object.create(Error.prototype)\n DOMException.prototype.constructor = DOMException\n}\n\nexport function fetch(input, init) {\n return new Promise(function(resolve, reject) {\n var request = new Request(input, init)\n\n if (request.signal && request.signal.aborted) {\n return reject(new DOMException('Aborted', 'AbortError'))\n }\n\n var xhr = new XMLHttpRequest()\n\n function abortXhr() {\n xhr.abort()\n }\n\n xhr.onload = function() {\n var options = {\n status: xhr.status,\n statusText: xhr.statusText,\n headers: parseHeaders(xhr.getAllResponseHeaders() || '')\n }\n options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL')\n var body = 'response' in xhr ? xhr.response : xhr.responseText\n setTimeout(function() {\n resolve(new Response(body, options))\n }, 0)\n }\n\n xhr.onerror = function() {\n setTimeout(function() {\n reject(new TypeError('Network request failed'))\n }, 0)\n }\n\n xhr.ontimeout = function() {\n setTimeout(function() {\n reject(new TypeError('Network request failed'))\n }, 0)\n }\n\n xhr.onabort = function() {\n setTimeout(function() {\n reject(new DOMException('Aborted', 'AbortError'))\n }, 0)\n }\n\n function fixUrl(url) {\n try {\n return url === '' && global.location.href ? global.location.href : url\n } catch (e) {\n return url\n }\n }\n\n xhr.open(request.method, fixUrl(request.url), true)\n\n if (request.credentials === 'include') {\n xhr.withCredentials = true\n } else if (request.credentials === 'omit') {\n xhr.withCredentials = false\n }\n\n if ('responseType' in xhr) {\n if (support.blob) {\n xhr.responseType = 'blob'\n } else if (\n support.arrayBuffer &&\n request.headers.get('Content-Type') &&\n request.headers.get('Content-Type').indexOf('application/octet-stream') !== -1\n ) {\n xhr.responseType = 'arraybuffer'\n }\n }\n\n if (init && typeof init.headers === 'object' && !(init.headers instanceof Headers)) {\n Object.getOwnPropertyNames(init.headers).forEach(function(name) {\n xhr.setRequestHeader(name, normalizeValue(init.headers[name]))\n })\n } else {\n request.headers.forEach(function(value, name) {\n xhr.setRequestHeader(name, value)\n })\n }\n\n if (request.signal) {\n request.signal.addEventListener('abort', abortXhr)\n\n xhr.onreadystatechange = function() {\n // DONE (success or failure)\n if (xhr.readyState === 4) {\n request.signal.removeEventListener('abort', abortXhr)\n }\n }\n }\n\n xhr.send(typeof request._bodyInit === 'undefined' ? null : request._bodyInit)\n })\n}\n\nfetch.polyfill = true\n\nif (!global.fetch) {\n global.fetch = fetch\n global.Headers = Headers\n global.Request = Request\n global.Response = Response\n}\n","var check = function (it) {\n return it && it.Math == Math && it;\n};\n\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nmodule.exports =\n // eslint-disable-next-line es/no-global-this -- safe\n check(typeof globalThis == 'object' && globalThis) ||\n check(typeof window == 'object' && window) ||\n // eslint-disable-next-line no-restricted-globals -- safe\n check(typeof self == 'object' && self) ||\n check(typeof global == 'object' && global) ||\n // eslint-disable-next-line no-new-func -- fallback\n (function () { return this; })() || Function('return this')();\n","// iterable DOM collections\n// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods\nmodule.exports = {\n CSSRuleList: 0,\n CSSStyleDeclaration: 0,\n CSSValueList: 0,\n ClientRectList: 0,\n DOMRectList: 0,\n DOMStringList: 0,\n DOMTokenList: 1,\n DataTransferItemList: 0,\n FileList: 0,\n HTMLAllCollection: 0,\n HTMLCollection: 0,\n HTMLFormElement: 0,\n HTMLSelectElement: 0,\n MediaList: 0,\n MimeTypeArray: 0,\n NamedNodeMap: 0,\n NodeList: 1,\n PaintRequestList: 0,\n Plugin: 0,\n PluginArray: 0,\n SVGLengthList: 0,\n SVGNumberList: 0,\n SVGPathSegList: 0,\n SVGPointList: 0,\n SVGStringList: 0,\n SVGTransformList: 0,\n SourceBufferList: 0,\n StyleSheetList: 0,\n TextTrackCueList: 0,\n TextTrackList: 0,\n TouchList: 0\n};\n","var documentAll = typeof document == 'object' && document.all;\n\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot\n// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing\nvar IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;\n\nmodule.exports = {\n all: documentAll,\n IS_HTMLDDA: IS_HTMLDDA\n};\n","var $documentAll = require('../internals/document-all');\n\nvar documentAll = $documentAll.all;\n\n// `IsCallable` abstract operation\n// https://tc39.es/ecma262/#sec-iscallable\nmodule.exports = $documentAll.IS_HTMLDDA ? function (argument) {\n return typeof argument == 'function' || argument === documentAll;\n} : function (argument) {\n return typeof argument == 'function';\n};\n","var isCallable = require('../internals/is-callable');\nvar $documentAll = require('../internals/document-all');\n\nvar documentAll = $documentAll.all;\n\nmodule.exports = $documentAll.IS_HTMLDDA ? function (it) {\n return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll;\n} : function (it) {\n return typeof it == 'object' ? it !== null : isCallable(it);\n};\n","var global = require('../internals/global');\nvar isObject = require('../internals/is-object');\n\nvar document = global.document;\n// typeof document.createElement is 'object' in old IE\nvar EXISTS = isObject(document) && isObject(document.createElement);\n\nmodule.exports = function (it) {\n return EXISTS ? document.createElement(it) : {};\n};\n","// in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`\nvar documentCreateElement = require('../internals/document-create-element');\n\nvar classList = documentCreateElement('span').classList;\nvar DOMTokenListPrototype = classList && classList.constructor && classList.constructor.prototype;\n\nmodule.exports = DOMTokenListPrototype === Object.prototype ? undefined : DOMTokenListPrototype;\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (error) {\n return true;\n }\n};\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-function-prototype-bind -- safe\n var test = (function () { /* empty */ }).bind();\n // eslint-disable-next-line no-prototype-builtins -- safe\n return typeof test != 'function' || test.hasOwnProperty('prototype');\n});\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar FunctionPrototype = Function.prototype;\nvar call = FunctionPrototype.call;\nvar uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);\n\nmodule.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {\n return function () {\n return call.apply(fn, arguments);\n };\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nvar toString = uncurryThis({}.toString);\nvar stringSlice = uncurryThis(''.slice);\n\nmodule.exports = function (it) {\n return stringSlice(toString(it), 8, -1);\n};\n","var classofRaw = require('../internals/classof-raw');\nvar uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = function (fn) {\n // Nashorn bug:\n // https://github.com/zloirock/core-js/issues/1128\n // https://github.com/zloirock/core-js/issues/1130\n if (classofRaw(fn) === 'Function') return uncurryThis(fn);\n};\n","var $String = String;\n\nmodule.exports = function (argument) {\n try {\n return $String(argument);\n } catch (error) {\n return 'Object';\n }\n};\n","var isCallable = require('../internals/is-callable');\nvar tryToString = require('../internals/try-to-string');\n\nvar $TypeError = TypeError;\n\n// `Assert: IsCallable(argument) is true`\nmodule.exports = function (argument) {\n if (isCallable(argument)) return argument;\n throw $TypeError(tryToString(argument) + ' is not a function');\n};\n","var uncurryThis = require('../internals/function-uncurry-this-clause');\nvar aCallable = require('../internals/a-callable');\nvar NATIVE_BIND = require('../internals/function-bind-native');\n\nvar bind = uncurryThis(uncurryThis.bind);\n\n// optional / simple context binding\nmodule.exports = function (fn, that) {\n aCallable(fn);\n return that === undefined ? fn : NATIVE_BIND ? bind(fn, that) : function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar classof = require('../internals/classof-raw');\n\nvar $Object = Object;\nvar split = uncurryThis(''.split);\n\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\nmodule.exports = fails(function () {\n // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346\n // eslint-disable-next-line no-prototype-builtins -- safe\n return !$Object('z').propertyIsEnumerable(0);\n}) ? function (it) {\n return classof(it) == 'String' ? split(it, '') : $Object(it);\n} : $Object;\n","// we can't use just `it == null` since of `document.all` special case\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec\nmodule.exports = function (it) {\n return it === null || it === undefined;\n};\n","var isNullOrUndefined = require('../internals/is-null-or-undefined');\n\nvar $TypeError = TypeError;\n\n// `RequireObjectCoercible` abstract operation\n// https://tc39.es/ecma262/#sec-requireobjectcoercible\nmodule.exports = function (it) {\n if (isNullOrUndefined(it)) throw $TypeError(\"Can't call method on \" + it);\n return it;\n};\n","var requireObjectCoercible = require('../internals/require-object-coercible');\n\nvar $Object = Object;\n\n// `ToObject` abstract operation\n// https://tc39.es/ecma262/#sec-toobject\nmodule.exports = function (argument) {\n return $Object(requireObjectCoercible(argument));\n};\n","var ceil = Math.ceil;\nvar floor = Math.floor;\n\n// `Math.trunc` method\n// https://tc39.es/ecma262/#sec-math.trunc\n// eslint-disable-next-line es/no-math-trunc -- safe\nmodule.exports = Math.trunc || function trunc(x) {\n var n = +x;\n return (n > 0 ? floor : ceil)(n);\n};\n","var trunc = require('../internals/math-trunc');\n\n// `ToIntegerOrInfinity` abstract operation\n// https://tc39.es/ecma262/#sec-tointegerorinfinity\nmodule.exports = function (argument) {\n var number = +argument;\n // eslint-disable-next-line no-self-compare -- NaN check\n return number !== number || number === 0 ? 0 : trunc(number);\n};\n","var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar min = Math.min;\n\n// `ToLength` abstract operation\n// https://tc39.es/ecma262/#sec-tolength\nmodule.exports = function (argument) {\n return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991\n};\n","var toLength = require('../internals/to-length');\n\n// `LengthOfArrayLike` abstract operation\n// https://tc39.es/ecma262/#sec-lengthofarraylike\nmodule.exports = function (obj) {\n return toLength(obj.length);\n};\n","var classof = require('../internals/classof-raw');\n\n// `IsArray` abstract operation\n// https://tc39.es/ecma262/#sec-isarray\n// eslint-disable-next-line es/no-array-isarray -- safe\nmodule.exports = Array.isArray || function isArray(argument) {\n return classof(argument) == 'Array';\n};\n","var global = require('../internals/global');\n\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\n\nmodule.exports = function (key, value) {\n try {\n defineProperty(global, key, { value: value, configurable: true, writable: true });\n } catch (error) {\n global[key] = value;\n } return value;\n};\n","var global = require('../internals/global');\nvar defineGlobalProperty = require('../internals/define-global-property');\n\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || defineGlobalProperty(SHARED, {});\n\nmodule.exports = store;\n","var IS_PURE = require('../internals/is-pure');\nvar store = require('../internals/shared-store');\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: '3.28.0',\n mode: IS_PURE ? 'pure' : 'global',\n copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',\n license: 'https://github.com/zloirock/core-js/blob/v3.28.0/LICENSE',\n source: 'https://github.com/zloirock/core-js'\n});\n","var global = require('../internals/global');\nvar userAgent = require('../internals/engine-user-agent');\n\nvar process = global.process;\nvar Deno = global.Deno;\nvar versions = process && process.versions || Deno && Deno.version;\nvar v8 = versions && versions.v8;\nvar match, version;\n\nif (v8) {\n match = v8.split('.');\n // in old Chrome, versions of V8 isn't V8 = Chrome / 10\n // but their correct versions are not interesting for us\n version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);\n}\n\n// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`\n// so check `userAgent` even if `.v8` exists, but 0\nif (!version && userAgent) {\n match = userAgent.match(/Edge\\/(\\d+)/);\n if (!match || match[1] >= 74) {\n match = userAgent.match(/Chrome\\/(\\d+)/);\n if (match) version = +match[1];\n }\n}\n\nmodule.exports = version;\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar toObject = require('../internals/to-object');\n\nvar hasOwnProperty = uncurryThis({}.hasOwnProperty);\n\n// `HasOwnProperty` abstract operation\n// https://tc39.es/ecma262/#sec-hasownproperty\n// eslint-disable-next-line es/no-object-hasown -- safe\nmodule.exports = Object.hasOwn || function hasOwn(it, key) {\n return hasOwnProperty(toObject(it), key);\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nvar id = 0;\nvar postfix = Math.random();\nvar toString = uncurryThis(1.0.toString);\n\nmodule.exports = function (key) {\n return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);\n};\n","module.exports = typeof navigator != 'undefined' && String(navigator.userAgent) || '';\n","/* eslint-disable es/no-symbol -- required for testing */\nvar V8_VERSION = require('../internals/engine-v8-version');\nvar fails = require('../internals/fails');\n\n// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing\nmodule.exports = !!Object.getOwnPropertySymbols && !fails(function () {\n var symbol = Symbol();\n // Chrome 38 Symbol has incorrect toString conversion\n // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances\n return !String(symbol) || !(Object(symbol) instanceof Symbol) ||\n // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances\n !Symbol.sham && V8_VERSION && V8_VERSION < 41;\n});\n","/* eslint-disable es/no-symbol -- required for testing */\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\n\nmodule.exports = NATIVE_SYMBOL\n && !Symbol.sham\n && typeof Symbol.iterator == 'symbol';\n","var global = require('../internals/global');\nvar shared = require('../internals/shared');\nvar hasOwn = require('../internals/has-own-property');\nvar uid = require('../internals/uid');\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar Symbol = global.Symbol;\nvar WellKnownSymbolsStore = shared('wks');\nvar createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol['for'] || Symbol : Symbol && Symbol.withoutSetter || uid;\n\nmodule.exports = function (name) {\n if (!hasOwn(WellKnownSymbolsStore, name)) {\n WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn(Symbol, name)\n ? Symbol[name]\n : createWellKnownSymbol('Symbol.' + name);\n } return WellKnownSymbolsStore[name];\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar test = {};\n\ntest[TO_STRING_TAG] = 'z';\n\nmodule.exports = String(test) === '[object z]';\n","var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar isCallable = require('../internals/is-callable');\nvar classofRaw = require('../internals/classof-raw');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar $Object = Object;\n\n// ES3 wrong here\nvar CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function (it, key) {\n try {\n return it[key];\n } catch (error) { /* empty */ }\n};\n\n// getting tag from ES6+ `Object.prototype.toString`\nmodule.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {\n var O, tag, result;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag\n // builtinTag case\n : CORRECT_ARGUMENTS ? classofRaw(O)\n // ES3 arguments fallback\n : (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;\n};\n","var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar aFunction = function (argument) {\n return isCallable(argument) ? argument : undefined;\n};\n\nmodule.exports = function (namespace, method) {\n return arguments.length < 2 ? aFunction(global[namespace]) : global[namespace] && global[namespace][method];\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar isCallable = require('../internals/is-callable');\nvar store = require('../internals/shared-store');\n\nvar functionToString = uncurryThis(Function.toString);\n\n// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper\nif (!isCallable(store.inspectSource)) {\n store.inspectSource = function (it) {\n return functionToString(it);\n };\n}\n\nmodule.exports = store.inspectSource;\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar classof = require('../internals/classof');\nvar getBuiltIn = require('../internals/get-built-in');\nvar inspectSource = require('../internals/inspect-source');\n\nvar noop = function () { /* empty */ };\nvar empty = [];\nvar construct = getBuiltIn('Reflect', 'construct');\nvar constructorRegExp = /^\\s*(?:class|function)\\b/;\nvar exec = uncurryThis(constructorRegExp.exec);\nvar INCORRECT_TO_STRING = !constructorRegExp.exec(noop);\n\nvar isConstructorModern = function isConstructor(argument) {\n if (!isCallable(argument)) return false;\n try {\n construct(noop, empty, argument);\n return true;\n } catch (error) {\n return false;\n }\n};\n\nvar isConstructorLegacy = function isConstructor(argument) {\n if (!isCallable(argument)) return false;\n switch (classof(argument)) {\n case 'AsyncFunction':\n case 'GeneratorFunction':\n case 'AsyncGeneratorFunction': return false;\n }\n try {\n // we can't check .prototype since constructors produced by .bind haven't it\n // `Function#toString` throws on some built-it function in some legacy engines\n // (for example, `DOMQuad` and similar in FF41-)\n return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));\n } catch (error) {\n return true;\n }\n};\n\nisConstructorLegacy.sham = true;\n\n// `IsConstructor` abstract operation\n// https://tc39.es/ecma262/#sec-isconstructor\nmodule.exports = !construct || fails(function () {\n var called;\n return isConstructorModern(isConstructorModern.call)\n || !isConstructorModern(Object)\n || !isConstructorModern(function () { called = true; })\n || called;\n}) ? isConstructorLegacy : isConstructorModern;\n","var isArray = require('../internals/is-array');\nvar isConstructor = require('../internals/is-constructor');\nvar isObject = require('../internals/is-object');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar SPECIES = wellKnownSymbol('species');\nvar $Array = Array;\n\n// a part of `ArraySpeciesCreate` abstract operation\n// https://tc39.es/ecma262/#sec-arrayspeciescreate\nmodule.exports = function (originalArray) {\n var C;\n if (isArray(originalArray)) {\n C = originalArray.constructor;\n // cross-realm fallback\n if (isConstructor(C) && (C === $Array || isArray(C.prototype))) C = undefined;\n else if (isObject(C)) {\n C = C[SPECIES];\n if (C === null) C = undefined;\n }\n } return C === undefined ? $Array : C;\n};\n","var arraySpeciesConstructor = require('../internals/array-species-constructor');\n\n// `ArraySpeciesCreate` abstract operation\n// https://tc39.es/ecma262/#sec-arrayspeciescreate\nmodule.exports = function (originalArray, length) {\n return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);\n};\n","var bind = require('../internals/function-bind-context');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar IndexedObject = require('../internals/indexed-object');\nvar toObject = require('../internals/to-object');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar arraySpeciesCreate = require('../internals/array-species-create');\n\nvar push = uncurryThis([].push);\n\n// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation\nvar createMethod = function (TYPE) {\n var IS_MAP = TYPE == 1;\n var IS_FILTER = TYPE == 2;\n var IS_SOME = TYPE == 3;\n var IS_EVERY = TYPE == 4;\n var IS_FIND_INDEX = TYPE == 6;\n var IS_FILTER_REJECT = TYPE == 7;\n var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;\n return function ($this, callbackfn, that, specificCreate) {\n var O = toObject($this);\n var self = IndexedObject(O);\n var boundFunction = bind(callbackfn, that);\n var length = lengthOfArrayLike(self);\n var index = 0;\n var create = specificCreate || arraySpeciesCreate;\n var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;\n var value, result;\n for (;length > index; index++) if (NO_HOLES || index in self) {\n value = self[index];\n result = boundFunction(value, index, O);\n if (TYPE) {\n if (IS_MAP) target[index] = result; // map\n else if (result) switch (TYPE) {\n case 3: return true; // some\n case 5: return value; // find\n case 6: return index; // findIndex\n case 2: push(target, value); // filter\n } else switch (TYPE) {\n case 4: return false; // every\n case 7: push(target, value); // filterReject\n }\n }\n }\n return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.forEach` method\n // https://tc39.es/ecma262/#sec-array.prototype.foreach\n forEach: createMethod(0),\n // `Array.prototype.map` method\n // https://tc39.es/ecma262/#sec-array.prototype.map\n map: createMethod(1),\n // `Array.prototype.filter` method\n // https://tc39.es/ecma262/#sec-array.prototype.filter\n filter: createMethod(2),\n // `Array.prototype.some` method\n // https://tc39.es/ecma262/#sec-array.prototype.some\n some: createMethod(3),\n // `Array.prototype.every` method\n // https://tc39.es/ecma262/#sec-array.prototype.every\n every: createMethod(4),\n // `Array.prototype.find` method\n // https://tc39.es/ecma262/#sec-array.prototype.find\n find: createMethod(5),\n // `Array.prototype.findIndex` method\n // https://tc39.es/ecma262/#sec-array.prototype.findIndex\n findIndex: createMethod(6),\n // `Array.prototype.filterReject` method\n // https://github.com/tc39/proposal-array-filtering\n filterReject: createMethod(7)\n};\n","'use strict';\nvar fails = require('../internals/fails');\n\nmodule.exports = function (METHOD_NAME, argument) {\n var method = [][METHOD_NAME];\n return !!method && fails(function () {\n // eslint-disable-next-line no-useless-call -- required for testing\n method.call(null, argument || function () { return 1; }, 1);\n });\n};\n","'use strict';\nvar $forEach = require('../internals/array-iteration').forEach;\nvar arrayMethodIsStrict = require('../internals/array-method-is-strict');\n\nvar STRICT_METHOD = arrayMethodIsStrict('forEach');\n\n// `Array.prototype.forEach` method implementation\n// https://tc39.es/ecma262/#sec-array.prototype.foreach\nmodule.exports = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {\n return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n// eslint-disable-next-line es/no-array-prototype-foreach -- safe\n} : [].forEach;\n","var fails = require('../internals/fails');\n\n// Detect IE8's incomplete defineProperty implementation\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;\n});\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\nvar createElement = require('../internals/document-create-element');\n\n// Thanks to IE8 for its funny defineProperty\nmodule.exports = !DESCRIPTORS && !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(createElement('div'), 'a', {\n get: function () { return 7; }\n }).a != 7;\n});\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\n\n// V8 ~ Chrome 36-\n// https://bugs.chromium.org/p/v8/issues/detail?id=3334\nmodule.exports = DESCRIPTORS && fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(function () { /* empty */ }, 'prototype', {\n value: 42,\n writable: false\n }).prototype != 42;\n});\n","var isObject = require('../internals/is-object');\n\nvar $String = String;\nvar $TypeError = TypeError;\n\n// `Assert: Type(argument) is Object`\nmodule.exports = function (argument) {\n if (isObject(argument)) return argument;\n throw $TypeError($String(argument) + ' is not an object');\n};\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar call = Function.prototype.call;\n\nmodule.exports = NATIVE_BIND ? call.bind(call) : function () {\n return call.apply(call, arguments);\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = uncurryThis({}.isPrototypeOf);\n","var getBuiltIn = require('../internals/get-built-in');\nvar isCallable = require('../internals/is-callable');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar $Object = Object;\n\nmodule.exports = USE_SYMBOL_AS_UID ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n var $Symbol = getBuiltIn('Symbol');\n return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));\n};\n","var aCallable = require('../internals/a-callable');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\n\n// `GetMethod` abstract operation\n// https://tc39.es/ecma262/#sec-getmethod\nmodule.exports = function (V, P) {\n var func = V[P];\n return isNullOrUndefined(func) ? undefined : aCallable(func);\n};\n","var call = require('../internals/function-call');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\n\nvar $TypeError = TypeError;\n\n// `OrdinaryToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-ordinarytoprimitive\nmodule.exports = function (input, pref) {\n var fn, val;\n if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;\n if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n throw $TypeError(\"Can't convert object to primitive value\");\n};\n","var call = require('../internals/function-call');\nvar isObject = require('../internals/is-object');\nvar isSymbol = require('../internals/is-symbol');\nvar getMethod = require('../internals/get-method');\nvar ordinaryToPrimitive = require('../internals/ordinary-to-primitive');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar $TypeError = TypeError;\nvar TO_PRIMITIVE = wellKnownSymbol('toPrimitive');\n\n// `ToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-toprimitive\nmodule.exports = function (input, pref) {\n if (!isObject(input) || isSymbol(input)) return input;\n var exoticToPrim = getMethod(input, TO_PRIMITIVE);\n var result;\n if (exoticToPrim) {\n if (pref === undefined) pref = 'default';\n result = call(exoticToPrim, input, pref);\n if (!isObject(result) || isSymbol(result)) return result;\n throw $TypeError(\"Can't convert object to primitive value\");\n }\n if (pref === undefined) pref = 'number';\n return ordinaryToPrimitive(input, pref);\n};\n","var toPrimitive = require('../internals/to-primitive');\nvar isSymbol = require('../internals/is-symbol');\n\n// `ToPropertyKey` abstract operation\n// https://tc39.es/ecma262/#sec-topropertykey\nmodule.exports = function (argument) {\n var key = toPrimitive(argument, 'string');\n return isSymbol(key) ? key : key + '';\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\nvar V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug');\nvar anObject = require('../internals/an-object');\nvar toPropertyKey = require('../internals/to-property-key');\n\nvar $TypeError = TypeError;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar $defineProperty = Object.defineProperty;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar ENUMERABLE = 'enumerable';\nvar CONFIGURABLE = 'configurable';\nvar WRITABLE = 'writable';\n\n// `Object.defineProperty` method\n// https://tc39.es/ecma262/#sec-object.defineproperty\nexports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {\n var current = $getOwnPropertyDescriptor(O, P);\n if (current && current[WRITABLE]) {\n O[P] = Attributes.value;\n Attributes = {\n configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],\n enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],\n writable: false\n };\n }\n } return $defineProperty(O, P, Attributes);\n} : $defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return $defineProperty(O, P, Attributes);\n } catch (error) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw $TypeError('Accessors not supported');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = DESCRIPTORS ? function (object, key, value) {\n return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","var global = require('../internals/global');\nvar DOMIterables = require('../internals/dom-iterables');\nvar DOMTokenListPrototype = require('../internals/dom-token-list-prototype');\nvar forEach = require('../internals/array-for-each');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\n\nvar handlePrototype = function (CollectionPrototype) {\n // some Chrome versions have non-configurable methods on DOMTokenList\n if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try {\n createNonEnumerableProperty(CollectionPrototype, 'forEach', forEach);\n } catch (error) {\n CollectionPrototype.forEach = forEach;\n }\n};\n\nfor (var COLLECTION_NAME in DOMIterables) {\n if (DOMIterables[COLLECTION_NAME]) {\n handlePrototype(global[COLLECTION_NAME] && global[COLLECTION_NAME].prototype);\n }\n}\n\nhandlePrototype(DOMTokenListPrototype);\n","// toObject with fallback for non-array-like ES3 strings\nvar IndexedObject = require('../internals/indexed-object');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nmodule.exports = function (it) {\n return IndexedObject(requireObjectCoercible(it));\n};\n","var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar max = Math.max;\nvar min = Math.min;\n\n// Helper for a popular repeating case of the spec:\n// Let integer be ? ToInteger(index).\n// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).\nmodule.exports = function (index, length) {\n var integer = toIntegerOrInfinity(index);\n return integer < 0 ? max(integer + length, 0) : min(integer, length);\n};\n","var toIndexedObject = require('../internals/to-indexed-object');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\n\n// `Array.prototype.{ indexOf, includes }` methods implementation\nvar createMethod = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIndexedObject($this);\n var length = lengthOfArrayLike(O);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare -- NaN check\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare -- NaN check\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) {\n if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.includes` method\n // https://tc39.es/ecma262/#sec-array.prototype.includes\n includes: createMethod(true),\n // `Array.prototype.indexOf` method\n // https://tc39.es/ecma262/#sec-array.prototype.indexof\n indexOf: createMethod(false)\n};\n","module.exports = {};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar hasOwn = require('../internals/has-own-property');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar indexOf = require('../internals/array-includes').indexOf;\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar push = uncurryThis([].push);\n\nmodule.exports = function (object, names) {\n var O = toIndexedObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (hasOwn(O, key = names[i++])) {\n ~indexOf(result, key) || push(result, key);\n }\n return result;\n};\n","// IE8- don't enum bug keys\nmodule.exports = [\n 'constructor',\n 'hasOwnProperty',\n 'isPrototypeOf',\n 'propertyIsEnumerable',\n 'toLocaleString',\n 'toString',\n 'valueOf'\n];\n","var internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\n// `Object.keys` method\n// https://tc39.es/ecma262/#sec-object.keys\n// eslint-disable-next-line es/no-object-keys -- safe\nmodule.exports = Object.keys || function keys(O) {\n return internalObjectKeys(O, enumBugKeys);\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug');\nvar definePropertyModule = require('../internals/object-define-property');\nvar anObject = require('../internals/an-object');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar objectKeys = require('../internals/object-keys');\n\n// `Object.defineProperties` method\n// https://tc39.es/ecma262/#sec-object.defineproperties\n// eslint-disable-next-line es/no-object-defineproperties -- safe\nexports.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var props = toIndexedObject(Properties);\n var keys = objectKeys(Properties);\n var length = keys.length;\n var index = 0;\n var key;\n while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);\n return O;\n};\n","var getBuiltIn = require('../internals/get-built-in');\n\nmodule.exports = getBuiltIn('document', 'documentElement');\n","/* global ActiveXObject -- old IE, WSH */\nvar anObject = require('../internals/an-object');\nvar definePropertiesModule = require('../internals/object-define-properties');\nvar enumBugKeys = require('../internals/enum-bug-keys');\nvar hiddenKeys = require('../internals/hidden-keys');\nvar html = require('../internals/html');\nvar documentCreateElement = require('../internals/document-create-element');\nvar sharedKey = require('../internals/shared-key');\n\nvar GT = '>';\nvar LT = '<';\nvar PROTOTYPE = 'prototype';\nvar SCRIPT = 'script';\nvar IE_PROTO = sharedKey('IE_PROTO');\n\nvar EmptyConstructor = function () { /* empty */ };\n\nvar scriptTag = function (content) {\n return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;\n};\n\n// Create object with fake `null` prototype: use ActiveX Object with cleared prototype\nvar NullProtoObjectViaActiveX = function (activeXDocument) {\n activeXDocument.write(scriptTag(''));\n activeXDocument.close();\n var temp = activeXDocument.parentWindow.Object;\n activeXDocument = null; // avoid memory leak\n return temp;\n};\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar NullProtoObjectViaIFrame = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = documentCreateElement('iframe');\n var JS = 'java' + SCRIPT + ':';\n var iframeDocument;\n iframe.style.display = 'none';\n html.appendChild(iframe);\n // https://github.com/zloirock/core-js/issues/475\n iframe.src = String(JS);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(scriptTag('document.F=Object'));\n iframeDocument.close();\n return iframeDocument.F;\n};\n\n// Check for document.domain and active x support\n// No need to use active x approach when document.domain is not set\n// see https://github.com/es-shims/es5-shim/issues/150\n// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346\n// avoid IE GC bug\nvar activeXDocument;\nvar NullProtoObject = function () {\n try {\n activeXDocument = new ActiveXObject('htmlfile');\n } catch (error) { /* ignore */ }\n NullProtoObject = typeof document != 'undefined'\n ? document.domain && activeXDocument\n ? NullProtoObjectViaActiveX(activeXDocument) // old IE\n : NullProtoObjectViaIFrame()\n : NullProtoObjectViaActiveX(activeXDocument); // WSH\n var length = enumBugKeys.length;\n while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];\n return NullProtoObject();\n};\n\nhiddenKeys[IE_PROTO] = true;\n\n// `Object.create` method\n// https://tc39.es/ecma262/#sec-object.create\n// eslint-disable-next-line es/no-object-create -- safe\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n EmptyConstructor[PROTOTYPE] = anObject(O);\n result = new EmptyConstructor();\n EmptyConstructor[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = NullProtoObject();\n return Properties === undefined ? result : definePropertiesModule.f(result, Properties);\n};\n","var shared = require('../internals/shared');\nvar uid = require('../internals/uid');\n\nvar keys = shared('keys');\n\nmodule.exports = function (key) {\n return keys[key] || (keys[key] = uid(key));\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\nvar create = require('../internals/object-create');\nvar defineProperty = require('../internals/object-define-property').f;\n\nvar UNSCOPABLES = wellKnownSymbol('unscopables');\nvar ArrayPrototype = Array.prototype;\n\n// Array.prototype[@@unscopables]\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\nif (ArrayPrototype[UNSCOPABLES] == undefined) {\n defineProperty(ArrayPrototype, UNSCOPABLES, {\n configurable: true,\n value: create(null)\n });\n}\n\n// add a key to Array.prototype[@@unscopables]\nmodule.exports = function (key) {\n ArrayPrototype[UNSCOPABLES][key] = true;\n};\n","var NATIVE_WEAK_MAP = require('../internals/weak-map-basic-detection');\nvar global = require('../internals/global');\nvar isObject = require('../internals/is-object');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar hasOwn = require('../internals/has-own-property');\nvar shared = require('../internals/shared-store');\nvar sharedKey = require('../internals/shared-key');\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar OBJECT_ALREADY_INITIALIZED = 'Object already initialized';\nvar TypeError = global.TypeError;\nvar WeakMap = global.WeakMap;\nvar set, get, has;\n\nvar enforce = function (it) {\n return has(it) ? get(it) : set(it, {});\n};\n\nvar getterFor = function (TYPE) {\n return function (it) {\n var state;\n if (!isObject(it) || (state = get(it)).type !== TYPE) {\n throw TypeError('Incompatible receiver, ' + TYPE + ' required');\n } return state;\n };\n};\n\nif (NATIVE_WEAK_MAP || shared.state) {\n var store = shared.state || (shared.state = new WeakMap());\n /* eslint-disable no-self-assign -- prototype methods protection */\n store.get = store.get;\n store.has = store.has;\n store.set = store.set;\n /* eslint-enable no-self-assign -- prototype methods protection */\n set = function (it, metadata) {\n if (store.has(it)) throw TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n store.set(it, metadata);\n return metadata;\n };\n get = function (it) {\n return store.get(it) || {};\n };\n has = function (it) {\n return store.has(it);\n };\n} else {\n var STATE = sharedKey('state');\n hiddenKeys[STATE] = true;\n set = function (it, metadata) {\n if (hasOwn(it, STATE)) throw TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n createNonEnumerableProperty(it, STATE, metadata);\n return metadata;\n };\n get = function (it) {\n return hasOwn(it, STATE) ? it[STATE] : {};\n };\n has = function (it) {\n return hasOwn(it, STATE);\n };\n}\n\nmodule.exports = {\n set: set,\n get: get,\n has: has,\n enforce: enforce,\n getterFor: getterFor\n};\n","module.exports = {};\n","var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar WeakMap = global.WeakMap;\n\nmodule.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap));\n","'use strict';\nvar $propertyIsEnumerable = {}.propertyIsEnumerable;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Nashorn ~ JDK8 bug\nvar NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);\n\n// `Object.prototype.propertyIsEnumerable` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable\nexports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {\n var descriptor = getOwnPropertyDescriptor(this, V);\n return !!descriptor && descriptor.enumerable;\n} : $propertyIsEnumerable;\n","var DESCRIPTORS = require('../internals/descriptors');\nvar call = require('../internals/function-call');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toPropertyKey = require('../internals/to-property-key');\nvar hasOwn = require('../internals/has-own-property');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\n\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// `Object.getOwnPropertyDescriptor` method\n// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor\nexports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {\n O = toIndexedObject(O);\n P = toPropertyKey(P);\n if (IE8_DOM_DEFINE) try {\n return $getOwnPropertyDescriptor(O, P);\n } catch (error) { /* empty */ }\n if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar hasOwn = require('../internals/has-own-property');\n\nvar FunctionPrototype = Function.prototype;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;\n\nvar EXISTS = hasOwn(FunctionPrototype, 'name');\n// additional protection from minified / mangled / dropped function names\nvar PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';\nvar CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));\n\nmodule.exports = {\n EXISTS: EXISTS,\n PROPER: PROPER,\n CONFIGURABLE: CONFIGURABLE\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar hasOwn = require('../internals/has-own-property');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar CONFIGURABLE_FUNCTION_NAME = require('../internals/function-name').CONFIGURABLE;\nvar inspectSource = require('../internals/inspect-source');\nvar InternalStateModule = require('../internals/internal-state');\n\nvar enforceInternalState = InternalStateModule.enforce;\nvar getInternalState = InternalStateModule.get;\nvar $String = String;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\nvar stringSlice = uncurryThis(''.slice);\nvar replace = uncurryThis(''.replace);\nvar join = uncurryThis([].join);\n\nvar CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () {\n return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;\n});\n\nvar TEMPLATE = String(String).split('String');\n\nvar makeBuiltIn = module.exports = function (value, name, options) {\n if (stringSlice($String(name), 0, 7) === 'Symbol(') {\n name = '[' + replace($String(name), /^Symbol\\(([^)]*)\\)/, '$1') + ']';\n }\n if (options && options.getter) name = 'get ' + name;\n if (options && options.setter) name = 'set ' + name;\n if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {\n if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true });\n else value.name = name;\n }\n if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) {\n defineProperty(value, 'length', { value: options.arity });\n }\n try {\n if (options && hasOwn(options, 'constructor') && options.constructor) {\n if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });\n // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable\n } else if (value.prototype) value.prototype = undefined;\n } catch (error) { /* empty */ }\n var state = enforceInternalState(value);\n if (!hasOwn(state, 'source')) {\n state.source = join(TEMPLATE, typeof name == 'string' ? name : '');\n } return value;\n};\n\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n// eslint-disable-next-line no-extend-native -- required\nFunction.prototype.toString = makeBuiltIn(function toString() {\n return isCallable(this) && getInternalState(this).source || inspectSource(this);\n}, 'toString');\n","var isCallable = require('../internals/is-callable');\nvar definePropertyModule = require('../internals/object-define-property');\nvar makeBuiltIn = require('../internals/make-built-in');\nvar defineGlobalProperty = require('../internals/define-global-property');\n\nmodule.exports = function (O, key, value, options) {\n if (!options) options = {};\n var simple = options.enumerable;\n var name = options.name !== undefined ? options.name : key;\n if (isCallable(value)) makeBuiltIn(value, name, options);\n if (options.global) {\n if (simple) O[key] = value;\n else defineGlobalProperty(key, value);\n } else {\n try {\n if (!options.unsafe) delete O[key];\n else if (O[key]) simple = true;\n } catch (error) { /* empty */ }\n if (simple) O[key] = value;\n else definePropertyModule.f(O, key, {\n value: value,\n enumerable: false,\n configurable: !options.nonConfigurable,\n writable: !options.nonWritable\n });\n } return O;\n};\n","var internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\nvar hiddenKeys = enumBugKeys.concat('length', 'prototype');\n\n// `Object.getOwnPropertyNames` method\n// https://tc39.es/ecma262/#sec-object.getownpropertynames\n// eslint-disable-next-line es/no-object-getownpropertynames -- safe\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return internalObjectKeys(O, hiddenKeys);\n};\n","// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe\nexports.f = Object.getOwnPropertySymbols;\n","var getBuiltIn = require('../internals/get-built-in');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar anObject = require('../internals/an-object');\n\nvar concat = uncurryThis([].concat);\n\n// all object keys, includes non-enumerable and symbols\nmodule.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {\n var keys = getOwnPropertyNamesModule.f(anObject(it));\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;\n};\n","'use strict';\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\nvar create = require('../internals/object-create');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar IS_PURE = require('../internals/is-pure');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar BUGGY_SAFARI_ITERATORS = false;\n\n// `%IteratorPrototype%` object\n// https://tc39.es/ecma262/#sec-%iteratorprototype%-object\nvar IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;\n\n/* eslint-disable es/no-array-prototype-keys -- safe */\nif ([].keys) {\n arrayIterator = [].keys();\n // Safari 8 has buggy iterators w/o `next`\n if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;\n else {\n PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator));\n if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;\n }\n}\n\nvar NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype) || fails(function () {\n var test = {};\n // FF44- legacy iterators case\n return IteratorPrototype[ITERATOR].call(test) !== test;\n});\n\nif (NEW_ITERATOR_PROTOTYPE) IteratorPrototype = {};\nelse if (IS_PURE) IteratorPrototype = create(IteratorPrototype);\n\n// `%IteratorPrototype%[@@iterator]()` method\n// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator\nif (!isCallable(IteratorPrototype[ITERATOR])) {\n defineBuiltIn(IteratorPrototype, ITERATOR, function () {\n return this;\n });\n}\n\nmodule.exports = {\n IteratorPrototype: IteratorPrototype,\n BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS\n};\n","var hasOwn = require('../internals/has-own-property');\nvar ownKeys = require('../internals/own-keys');\nvar getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');\nvar definePropertyModule = require('../internals/object-define-property');\n\nmodule.exports = function (target, source, exceptions) {\n var keys = ownKeys(source);\n var defineProperty = definePropertyModule.f;\n var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {\n defineProperty(target, key, getOwnPropertyDescriptor(source, key));\n }\n }\n};\n","var fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\n\nvar replacement = /#|\\.prototype\\./;\n\nvar isForced = function (feature, detection) {\n var value = data[normalize(feature)];\n return value == POLYFILL ? true\n : value == NATIVE ? false\n : isCallable(detection) ? fails(detection)\n : !!detection;\n};\n\nvar normalize = isForced.normalize = function (string) {\n return String(string).replace(replacement, '.').toLowerCase();\n};\n\nvar data = isForced.data = {};\nvar NATIVE = isForced.NATIVE = 'N';\nvar POLYFILL = isForced.POLYFILL = 'P';\n\nmodule.exports = isForced;\n","var global = require('../internals/global');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar defineGlobalProperty = require('../internals/define-global-property');\nvar copyConstructorProperties = require('../internals/copy-constructor-properties');\nvar isForced = require('../internals/is-forced');\n\n/*\n options.target - name of the target object\n options.global - target is the global object\n options.stat - export as static methods of target\n options.proto - export as prototype methods of target\n options.real - real prototype method for the `pure` version\n options.forced - export even if the native feature is available\n options.bind - bind methods to the target, required for the `pure` version\n options.wrap - wrap constructors to preventing global pollution, required for the `pure` version\n options.unsafe - use the simple assignment of property instead of delete + defineProperty\n options.sham - add a flag to not completely full polyfills\n options.enumerable - export as enumerable property\n options.dontCallGetSet - prevent calling a getter on target\n options.name - the .name of the function if it does not match the key\n*/\nmodule.exports = function (options, source) {\n var TARGET = options.target;\n var GLOBAL = options.global;\n var STATIC = options.stat;\n var FORCED, target, key, targetProperty, sourceProperty, descriptor;\n if (GLOBAL) {\n target = global;\n } else if (STATIC) {\n target = global[TARGET] || defineGlobalProperty(TARGET, {});\n } else {\n target = (global[TARGET] || {}).prototype;\n }\n if (target) for (key in source) {\n sourceProperty = source[key];\n if (options.dontCallGetSet) {\n descriptor = getOwnPropertyDescriptor(target, key);\n targetProperty = descriptor && descriptor.value;\n } else targetProperty = target[key];\n FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);\n // contained in target\n if (!FORCED && targetProperty !== undefined) {\n if (typeof sourceProperty == typeof targetProperty) continue;\n copyConstructorProperties(sourceProperty, targetProperty);\n }\n // add a flag to not completely full polyfills\n if (options.sham || (targetProperty && targetProperty.sham)) {\n createNonEnumerableProperty(sourceProperty, 'sham', true);\n }\n defineBuiltIn(target, key, sourceProperty, options);\n }\n};\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n function F() { /* empty */ }\n F.prototype.constructor = null;\n // eslint-disable-next-line es/no-object-getprototypeof -- required for testing\n return Object.getPrototypeOf(new F()) !== F.prototype;\n});\n","var hasOwn = require('../internals/has-own-property');\nvar isCallable = require('../internals/is-callable');\nvar toObject = require('../internals/to-object');\nvar sharedKey = require('../internals/shared-key');\nvar CORRECT_PROTOTYPE_GETTER = require('../internals/correct-prototype-getter');\n\nvar IE_PROTO = sharedKey('IE_PROTO');\nvar $Object = Object;\nvar ObjectPrototype = $Object.prototype;\n\n// `Object.getPrototypeOf` method\n// https://tc39.es/ecma262/#sec-object.getprototypeof\n// eslint-disable-next-line es/no-object-getprototypeof -- safe\nmodule.exports = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {\n var object = toObject(O);\n if (hasOwn(object, IE_PROTO)) return object[IE_PROTO];\n var constructor = object.constructor;\n if (isCallable(constructor) && object instanceof constructor) {\n return constructor.prototype;\n } return object instanceof $Object ? ObjectPrototype : null;\n};\n","var defineProperty = require('../internals/object-define-property').f;\nvar hasOwn = require('../internals/has-own-property');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\n\nmodule.exports = function (target, TAG, STATIC) {\n if (target && !STATIC) target = target.prototype;\n if (target && !hasOwn(target, TO_STRING_TAG)) {\n defineProperty(target, TO_STRING_TAG, { configurable: true, value: TAG });\n }\n};\n","'use strict';\nvar IteratorPrototype = require('../internals/iterators-core').IteratorPrototype;\nvar create = require('../internals/object-create');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar Iterators = require('../internals/iterators');\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {\n var TO_STRING_TAG = NAME + ' Iterator';\n IteratorConstructor.prototype = create(IteratorPrototype, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });\n setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true);\n Iterators[TO_STRING_TAG] = returnThis;\n return IteratorConstructor;\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar aCallable = require('../internals/a-callable');\n\nmodule.exports = function (object, key, method) {\n try {\n // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\n return uncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));\n } catch (error) { /* empty */ }\n};\n","var isCallable = require('../internals/is-callable');\n\nvar $String = String;\nvar $TypeError = TypeError;\n\nmodule.exports = function (argument) {\n if (typeof argument == 'object' || isCallable(argument)) return argument;\n throw $TypeError(\"Can't set \" + $String(argument) + ' as a prototype');\n};\n","/* eslint-disable no-proto -- safe */\nvar uncurryThisAccessor = require('../internals/function-uncurry-this-accessor');\nvar anObject = require('../internals/an-object');\nvar aPossiblePrototype = require('../internals/a-possible-prototype');\n\n// `Object.setPrototypeOf` method\n// https://tc39.es/ecma262/#sec-object.setprototypeof\n// Works with __proto__ only. Old v8 can't work with null proto objects.\n// eslint-disable-next-line es/no-object-setprototypeof -- safe\nmodule.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {\n var CORRECT_SETTER = false;\n var test = {};\n var setter;\n try {\n setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');\n setter(test, []);\n CORRECT_SETTER = test instanceof Array;\n } catch (error) { /* empty */ }\n return function setPrototypeOf(O, proto) {\n anObject(O);\n aPossiblePrototype(proto);\n if (CORRECT_SETTER) setter(O, proto);\n else O.__proto__ = proto;\n return O;\n };\n}() : undefined);\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar IS_PURE = require('../internals/is-pure');\nvar FunctionName = require('../internals/function-name');\nvar isCallable = require('../internals/is-callable');\nvar createIteratorConstructor = require('../internals/iterator-create-constructor');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar Iterators = require('../internals/iterators');\nvar IteratorsCore = require('../internals/iterators-core');\n\nvar PROPER_FUNCTION_NAME = FunctionName.PROPER;\nvar CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;\nvar IteratorPrototype = IteratorsCore.IteratorPrototype;\nvar BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;\nvar ITERATOR = wellKnownSymbol('iterator');\nvar KEYS = 'keys';\nvar VALUES = 'values';\nvar ENTRIES = 'entries';\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {\n createIteratorConstructor(IteratorConstructor, NAME, next);\n\n var getIterationMethod = function (KIND) {\n if (KIND === DEFAULT && defaultIterator) return defaultIterator;\n if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];\n switch (KIND) {\n case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };\n case VALUES: return function values() { return new IteratorConstructor(this, KIND); };\n case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };\n } return function () { return new IteratorConstructor(this); };\n };\n\n var TO_STRING_TAG = NAME + ' Iterator';\n var INCORRECT_VALUES_NAME = false;\n var IterablePrototype = Iterable.prototype;\n var nativeIterator = IterablePrototype[ITERATOR]\n || IterablePrototype['@@iterator']\n || DEFAULT && IterablePrototype[DEFAULT];\n var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);\n var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;\n var CurrentIteratorPrototype, methods, KEY;\n\n // fix native\n if (anyNativeIterator) {\n CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));\n if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {\n if (!IS_PURE && getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {\n if (setPrototypeOf) {\n setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);\n } else if (!isCallable(CurrentIteratorPrototype[ITERATOR])) {\n defineBuiltIn(CurrentIteratorPrototype, ITERATOR, returnThis);\n }\n }\n // Set @@toStringTag to native iterators\n setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true);\n if (IS_PURE) Iterators[TO_STRING_TAG] = returnThis;\n }\n }\n\n // fix Array.prototype.{ values, @@iterator }.name in V8 / FF\n if (PROPER_FUNCTION_NAME && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {\n if (!IS_PURE && CONFIGURABLE_FUNCTION_NAME) {\n createNonEnumerableProperty(IterablePrototype, 'name', VALUES);\n } else {\n INCORRECT_VALUES_NAME = true;\n defaultIterator = function values() { return call(nativeIterator, this); };\n }\n }\n\n // export additional methods\n if (DEFAULT) {\n methods = {\n values: getIterationMethod(VALUES),\n keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),\n entries: getIterationMethod(ENTRIES)\n };\n if (FORCED) for (KEY in methods) {\n if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {\n defineBuiltIn(IterablePrototype, KEY, methods[KEY]);\n }\n } else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);\n }\n\n // define iterator\n if ((!IS_PURE || FORCED) && IterablePrototype[ITERATOR] !== defaultIterator) {\n defineBuiltIn(IterablePrototype, ITERATOR, defaultIterator, { name: DEFAULT });\n }\n Iterators[NAME] = defaultIterator;\n\n return methods;\n};\n","// `CreateIterResultObject` abstract operation\n// https://tc39.es/ecma262/#sec-createiterresultobject\nmodule.exports = function (value, done) {\n return { value: value, done: done };\n};\n","'use strict';\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar addToUnscopables = require('../internals/add-to-unscopables');\nvar Iterators = require('../internals/iterators');\nvar InternalStateModule = require('../internals/internal-state');\nvar defineProperty = require('../internals/object-define-property').f;\nvar defineIterator = require('../internals/iterator-define');\nvar createIterResultObject = require('../internals/create-iter-result-object');\nvar IS_PURE = require('../internals/is-pure');\nvar DESCRIPTORS = require('../internals/descriptors');\n\nvar ARRAY_ITERATOR = 'Array Iterator';\nvar setInternalState = InternalStateModule.set;\nvar getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);\n\n// `Array.prototype.entries` method\n// https://tc39.es/ecma262/#sec-array.prototype.entries\n// `Array.prototype.keys` method\n// https://tc39.es/ecma262/#sec-array.prototype.keys\n// `Array.prototype.values` method\n// https://tc39.es/ecma262/#sec-array.prototype.values\n// `Array.prototype[@@iterator]` method\n// https://tc39.es/ecma262/#sec-array.prototype-@@iterator\n// `CreateArrayIterator` internal method\n// https://tc39.es/ecma262/#sec-createarrayiterator\nmodule.exports = defineIterator(Array, 'Array', function (iterated, kind) {\n setInternalState(this, {\n type: ARRAY_ITERATOR,\n target: toIndexedObject(iterated), // target\n index: 0, // next index\n kind: kind // kind\n });\n// `%ArrayIteratorPrototype%.next` method\n// https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next\n}, function () {\n var state = getInternalState(this);\n var target = state.target;\n var kind = state.kind;\n var index = state.index++;\n if (!target || index >= target.length) {\n state.target = undefined;\n return createIterResultObject(undefined, true);\n }\n if (kind == 'keys') return createIterResultObject(index, false);\n if (kind == 'values') return createIterResultObject(target[index], false);\n return createIterResultObject([index, target[index]], false);\n}, 'values');\n\n// argumentsList[@@iterator] is %ArrayProto_values%\n// https://tc39.es/ecma262/#sec-createunmappedargumentsobject\n// https://tc39.es/ecma262/#sec-createmappedargumentsobject\nvar values = Iterators.Arguments = Iterators.Array;\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables('keys');\naddToUnscopables('values');\naddToUnscopables('entries');\n\n// V8 ~ Chrome 45- bug\nif (!IS_PURE && DESCRIPTORS && values.name !== 'values') try {\n defineProperty(values, 'name', { value: 'values' });\n} catch (error) { /* empty */ }\n","var global = require('../internals/global');\nvar DOMIterables = require('../internals/dom-iterables');\nvar DOMTokenListPrototype = require('../internals/dom-token-list-prototype');\nvar ArrayIteratorMethods = require('../modules/es.array.iterator');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar ArrayValues = ArrayIteratorMethods.values;\n\nvar handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {\n if (CollectionPrototype) {\n // some Chrome versions have non-configurable methods on DOMTokenList\n if (CollectionPrototype[ITERATOR] !== ArrayValues) try {\n createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);\n } catch (error) {\n CollectionPrototype[ITERATOR] = ArrayValues;\n }\n if (!CollectionPrototype[TO_STRING_TAG]) {\n createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);\n }\n if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {\n // some Chrome versions have non-configurable methods on DOMTokenList\n if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {\n createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);\n } catch (error) {\n CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];\n }\n }\n }\n};\n\nfor (var COLLECTION_NAME in DOMIterables) {\n handlePrototype(global[COLLECTION_NAME] && global[COLLECTION_NAME].prototype, COLLECTION_NAME);\n}\n\nhandlePrototype(DOMTokenListPrototype, 'DOMTokenList');\n","var global = require('../internals/global');\n\nmodule.exports = global;\n","'use strict';\n/* eslint-disable es/no-array-prototype-indexof -- required for testing */\nvar $ = require('../internals/export');\nvar uncurryThis = require('../internals/function-uncurry-this-clause');\nvar $indexOf = require('../internals/array-includes').indexOf;\nvar arrayMethodIsStrict = require('../internals/array-method-is-strict');\n\nvar nativeIndexOf = uncurryThis([].indexOf);\n\nvar NEGATIVE_ZERO = !!nativeIndexOf && 1 / nativeIndexOf([1], 1, -0) < 0;\nvar FORCED = NEGATIVE_ZERO || !arrayMethodIsStrict('indexOf');\n\n// `Array.prototype.indexOf` method\n// https://tc39.es/ecma262/#sec-array.prototype.indexof\n$({ target: 'Array', proto: true, forced: FORCED }, {\n indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {\n var fromIndex = arguments.length > 1 ? arguments[1] : undefined;\n return NEGATIVE_ZERO\n // convert -0 to +0\n ? nativeIndexOf(this, searchElement, fromIndex) || 0\n : $indexOf(this, searchElement, fromIndex);\n }\n});\n","var $TypeError = TypeError;\nvar MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991\n\nmodule.exports = function (it) {\n if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');\n return it;\n};\n","'use strict';\nvar toPropertyKey = require('../internals/to-property-key');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = function (object, key, value) {\n var propertyKey = toPropertyKey(key);\n if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));\n else object[propertyKey] = value;\n};\n","var fails = require('../internals/fails');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar V8_VERSION = require('../internals/engine-v8-version');\n\nvar SPECIES = wellKnownSymbol('species');\n\nmodule.exports = function (METHOD_NAME) {\n // We can't use this feature detection in V8 since it causes\n // deoptimization and serious performance degradation\n // https://github.com/zloirock/core-js/issues/677\n return V8_VERSION >= 51 || !fails(function () {\n var array = [];\n var constructor = array.constructor = {};\n constructor[SPECIES] = function () {\n return { foo: 1 };\n };\n return array[METHOD_NAME](Boolean).foo !== 1;\n });\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar fails = require('../internals/fails');\nvar isArray = require('../internals/is-array');\nvar isObject = require('../internals/is-object');\nvar toObject = require('../internals/to-object');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar doesNotExceedSafeInteger = require('../internals/does-not-exceed-safe-integer');\nvar createProperty = require('../internals/create-property');\nvar arraySpeciesCreate = require('../internals/array-species-create');\nvar arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar V8_VERSION = require('../internals/engine-v8-version');\n\nvar IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');\n\n// We can't use this feature detection in V8 since it causes\n// deoptimization and serious performance degradation\n// https://github.com/zloirock/core-js/issues/679\nvar IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () {\n var array = [];\n array[IS_CONCAT_SPREADABLE] = false;\n return array.concat()[0] !== array;\n});\n\nvar isConcatSpreadable = function (O) {\n if (!isObject(O)) return false;\n var spreadable = O[IS_CONCAT_SPREADABLE];\n return spreadable !== undefined ? !!spreadable : isArray(O);\n};\n\nvar FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport('concat');\n\n// `Array.prototype.concat` method\n// https://tc39.es/ecma262/#sec-array.prototype.concat\n// with adding support of @@isConcatSpreadable and @@species\n$({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n concat: function concat(arg) {\n var O = toObject(this);\n var A = arraySpeciesCreate(O, 0);\n var n = 0;\n var i, k, length, len, E;\n for (i = -1, length = arguments.length; i < length; i++) {\n E = i === -1 ? O : arguments[i];\n if (isConcatSpreadable(E)) {\n len = lengthOfArrayLike(E);\n doesNotExceedSafeInteger(n + len);\n for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);\n } else {\n doesNotExceedSafeInteger(n + 1);\n createProperty(A, n++, E);\n }\n }\n A.length = n;\n return A;\n }\n});\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar call = require('../internals/function-call');\nvar fails = require('../internals/fails');\nvar objectKeys = require('../internals/object-keys');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar toObject = require('../internals/to-object');\nvar IndexedObject = require('../internals/indexed-object');\n\n// eslint-disable-next-line es/no-object-assign -- safe\nvar $assign = Object.assign;\n// eslint-disable-next-line es/no-object-defineproperty -- required for testing\nvar defineProperty = Object.defineProperty;\nvar concat = uncurryThis([].concat);\n\n// `Object.assign` method\n// https://tc39.es/ecma262/#sec-object.assign\nmodule.exports = !$assign || fails(function () {\n // should have correct order of operations (Edge bug)\n if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {\n enumerable: true,\n get: function () {\n defineProperty(this, 'b', {\n value: 3,\n enumerable: false\n });\n }\n }), { b: 2 })).b !== 1) return true;\n // should work with symbols and should have deterministic property order (V8 bug)\n var A = {};\n var B = {};\n // eslint-disable-next-line es/no-symbol -- safe\n var symbol = Symbol();\n var alphabet = 'abcdefghijklmnopqrst';\n A[symbol] = 7;\n alphabet.split('').forEach(function (chr) { B[chr] = chr; });\n return $assign({}, A)[symbol] != 7 || objectKeys($assign({}, B)).join('') != alphabet;\n}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`\n var T = toObject(target);\n var argumentsLength = arguments.length;\n var index = 1;\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n var propertyIsEnumerable = propertyIsEnumerableModule.f;\n while (argumentsLength > index) {\n var S = IndexedObject(arguments[index++]);\n var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);\n var length = keys.length;\n var j = 0;\n var key;\n while (length > j) {\n key = keys[j++];\n if (!DESCRIPTORS || call(propertyIsEnumerable, S, key)) T[key] = S[key];\n }\n } return T;\n} : $assign;\n","var $ = require('../internals/export');\nvar assign = require('../internals/object-assign');\n\n// `Object.assign` method\n// https://tc39.es/ecma262/#sec-object.assign\n// eslint-disable-next-line es/no-object-assign -- required for testing\n$({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {\n assign: assign\n});\n","'use strict';\nvar TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar classof = require('../internals/classof');\n\n// `Object.prototype.toString` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.tostring\nmodule.exports = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() {\n return '[object ' + classof(this) + ']';\n};\n","var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar toString = require('../internals/object-to-string');\n\n// `Object.prototype.toString` method\n// https://tc39.es/ecma262/#sec-object.prototype.tostring\nif (!TO_STRING_TAG_SUPPORT) {\n defineBuiltIn(Object.prototype, 'toString', toString, { unsafe: true });\n}\n","var classof = require('../internals/classof-raw');\n\nmodule.exports = typeof process != 'undefined' && classof(process) == 'process';\n","var global = require('../internals/global');\nvar apply = require('../internals/function-apply');\nvar bind = require('../internals/function-bind-context');\nvar isCallable = require('../internals/is-callable');\nvar hasOwn = require('../internals/has-own-property');\nvar fails = require('../internals/fails');\nvar html = require('../internals/html');\nvar arraySlice = require('../internals/array-slice');\nvar createElement = require('../internals/document-create-element');\nvar validateArgumentsLength = require('../internals/validate-arguments-length');\nvar IS_IOS = require('../internals/engine-is-ios');\nvar IS_NODE = require('../internals/engine-is-node');\n\nvar set = global.setImmediate;\nvar clear = global.clearImmediate;\nvar process = global.process;\nvar Dispatch = global.Dispatch;\nvar Function = global.Function;\nvar MessageChannel = global.MessageChannel;\nvar String = global.String;\nvar counter = 0;\nvar queue = {};\nvar ONREADYSTATECHANGE = 'onreadystatechange';\nvar $location, defer, channel, port;\n\nfails(function () {\n // Deno throws a ReferenceError on `location` access without `--location` flag\n $location = global.location;\n});\n\nvar run = function (id) {\n if (hasOwn(queue, id)) {\n var fn = queue[id];\n delete queue[id];\n fn();\n }\n};\n\nvar runner = function (id) {\n return function () {\n run(id);\n };\n};\n\nvar eventListener = function (event) {\n run(event.data);\n};\n\nvar globalPostMessageDefer = function (id) {\n // old engines have not location.origin\n global.postMessage(String(id), $location.protocol + '//' + $location.host);\n};\n\n// Node.js 0.9+ & IE10+ has setImmediate, otherwise:\nif (!set || !clear) {\n set = function setImmediate(handler) {\n validateArgumentsLength(arguments.length, 1);\n var fn = isCallable(handler) ? handler : Function(handler);\n var args = arraySlice(arguments, 1);\n queue[++counter] = function () {\n apply(fn, undefined, args);\n };\n defer(counter);\n return counter;\n };\n clear = function clearImmediate(id) {\n delete queue[id];\n };\n // Node.js 0.8-\n if (IS_NODE) {\n defer = function (id) {\n process.nextTick(runner(id));\n };\n // Sphere (JS game engine) Dispatch API\n } else if (Dispatch && Dispatch.now) {\n defer = function (id) {\n Dispatch.now(runner(id));\n };\n // Browsers with MessageChannel, includes WebWorkers\n // except iOS - https://github.com/zloirock/core-js/issues/624\n } else if (MessageChannel && !IS_IOS) {\n channel = new MessageChannel();\n port = channel.port2;\n channel.port1.onmessage = eventListener;\n defer = bind(port.postMessage, port);\n // Browsers with postMessage, skip WebWorkers\n // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'\n } else if (\n global.addEventListener &&\n isCallable(global.postMessage) &&\n !global.importScripts &&\n $location && $location.protocol !== 'file:' &&\n !fails(globalPostMessageDefer)\n ) {\n defer = globalPostMessageDefer;\n global.addEventListener('message', eventListener, false);\n // IE8-\n } else if (ONREADYSTATECHANGE in createElement('script')) {\n defer = function (id) {\n html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {\n html.removeChild(this);\n run(id);\n };\n };\n // Rest old browsers\n } else {\n defer = function (id) {\n setTimeout(runner(id), 0);\n };\n }\n}\n\nmodule.exports = {\n set: set,\n clear: clear\n};\n","var makeBuiltIn = require('../internals/make-built-in');\nvar defineProperty = require('../internals/object-define-property');\n\nmodule.exports = function (target, name, descriptor) {\n if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });\n if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });\n return defineProperty.f(target, name, descriptor);\n};\n","'use strict';\nvar getBuiltIn = require('../internals/get-built-in');\nvar defineBuiltInAccessor = require('../internals/define-built-in-accessor');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar DESCRIPTORS = require('../internals/descriptors');\n\nvar SPECIES = wellKnownSymbol('species');\n\nmodule.exports = function (CONSTRUCTOR_NAME) {\n var Constructor = getBuiltIn(CONSTRUCTOR_NAME);\n\n if (DESCRIPTORS && Constructor && !Constructor[SPECIES]) {\n defineBuiltInAccessor(Constructor, SPECIES, {\n configurable: true,\n get: function () { return this; }\n });\n }\n};\n","var isPrototypeOf = require('../internals/object-is-prototype-of');\n\nvar $TypeError = TypeError;\n\nmodule.exports = function (it, Prototype) {\n if (isPrototypeOf(Prototype, it)) return it;\n throw $TypeError('Incorrect invocation');\n};\n","var isConstructor = require('../internals/is-constructor');\nvar tryToString = require('../internals/try-to-string');\n\nvar $TypeError = TypeError;\n\n// `Assert: IsConstructor(argument) is true`\nmodule.exports = function (argument) {\n if (isConstructor(argument)) return argument;\n throw $TypeError(tryToString(argument) + ' is not a constructor');\n};\n","var anObject = require('../internals/an-object');\nvar aConstructor = require('../internals/a-constructor');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar SPECIES = wellKnownSymbol('species');\n\n// `SpeciesConstructor` abstract operation\n// https://tc39.es/ecma262/#sec-speciesconstructor\nmodule.exports = function (O, defaultConstructor) {\n var C = anObject(O).constructor;\n var S;\n return C === undefined || isNullOrUndefined(S = anObject(C)[SPECIES]) ? defaultConstructor : aConstructor(S);\n};\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar FunctionPrototype = Function.prototype;\nvar apply = FunctionPrototype.apply;\nvar call = FunctionPrototype.call;\n\n// eslint-disable-next-line es/no-reflect -- safe\nmodule.exports = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call.bind(apply) : function () {\n return call.apply(apply, arguments);\n});\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = uncurryThis([].slice);\n","var $TypeError = TypeError;\n\nmodule.exports = function (passed, required) {\n if (passed < required) throw $TypeError('Not enough arguments');\n return passed;\n};\n","var userAgent = require('../internals/engine-user-agent');\n\n// eslint-disable-next-line redos/no-vulnerable -- safe\nmodule.exports = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent);\n","var Queue = function () {\n this.head = null;\n this.tail = null;\n};\n\nQueue.prototype = {\n add: function (item) {\n var entry = { item: item, next: null };\n var tail = this.tail;\n if (tail) tail.next = entry;\n else this.head = entry;\n this.tail = entry;\n },\n get: function () {\n var entry = this.head;\n if (entry) {\n var next = this.head = entry.next;\n if (next === null) this.tail = null;\n return entry.item;\n }\n }\n};\n\nmodule.exports = Queue;\n","var global = require('../internals/global');\nvar bind = require('../internals/function-bind-context');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar macrotask = require('../internals/task').set;\nvar Queue = require('../internals/queue');\nvar IS_IOS = require('../internals/engine-is-ios');\nvar IS_IOS_PEBBLE = require('../internals/engine-is-ios-pebble');\nvar IS_WEBOS_WEBKIT = require('../internals/engine-is-webos-webkit');\nvar IS_NODE = require('../internals/engine-is-node');\n\nvar MutationObserver = global.MutationObserver || global.WebKitMutationObserver;\nvar document = global.document;\nvar process = global.process;\nvar Promise = global.Promise;\n// Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`\nvar queueMicrotaskDescriptor = getOwnPropertyDescriptor(global, 'queueMicrotask');\nvar microtask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;\nvar notify, toggle, node, promise, then;\n\n// modern engines have queueMicrotask method\nif (!microtask) {\n var queue = new Queue();\n\n var flush = function () {\n var parent, fn;\n if (IS_NODE && (parent = process.domain)) parent.exit();\n while (fn = queue.get()) try {\n fn();\n } catch (error) {\n if (queue.head) notify();\n throw error;\n }\n if (parent) parent.enter();\n };\n\n // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339\n // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898\n if (!IS_IOS && !IS_NODE && !IS_WEBOS_WEBKIT && MutationObserver && document) {\n toggle = true;\n node = document.createTextNode('');\n new MutationObserver(flush).observe(node, { characterData: true });\n notify = function () {\n node.data = toggle = !toggle;\n };\n // environments with maybe non-completely correct, but existent Promise\n } else if (!IS_IOS_PEBBLE && Promise && Promise.resolve) {\n // Promise.resolve without an argument throws an error in LG WebOS 2\n promise = Promise.resolve(undefined);\n // workaround of WebKit ~ iOS Safari 10.1 bug\n promise.constructor = Promise;\n then = bind(promise.then, promise);\n notify = function () {\n then(flush);\n };\n // Node.js without promises\n } else if (IS_NODE) {\n notify = function () {\n process.nextTick(flush);\n };\n // for other environments - macrotask based on:\n // - setImmediate\n // - MessageChannel\n // - window.postMessage\n // - onreadystatechange\n // - setTimeout\n } else {\n // `webpack` dev server bug on IE global methods - use bind(fn, global)\n macrotask = bind(macrotask, global);\n notify = function () {\n macrotask(flush);\n };\n }\n\n microtask = function (fn) {\n if (!queue.head) notify();\n queue.add(fn);\n };\n}\n\nmodule.exports = microtask;\n","var userAgent = require('../internals/engine-user-agent');\n\nmodule.exports = /ipad|iphone|ipod/i.test(userAgent) && typeof Pebble != 'undefined';\n","var userAgent = require('../internals/engine-user-agent');\n\nmodule.exports = /web0s(?!.*chrome)/i.test(userAgent);\n","module.exports = function (exec) {\n try {\n return { error: false, value: exec() };\n } catch (error) {\n return { error: true, value: error };\n }\n};\n","var global = require('../internals/global');\n\nmodule.exports = global.Promise;\n","/* global Deno -- Deno case */\nmodule.exports = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';\n","var IS_DENO = require('../internals/engine-is-deno');\nvar IS_NODE = require('../internals/engine-is-node');\n\nmodule.exports = !IS_DENO && !IS_NODE\n && typeof window == 'object'\n && typeof document == 'object';\n","var global = require('../internals/global');\nvar NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar isCallable = require('../internals/is-callable');\nvar isForced = require('../internals/is-forced');\nvar inspectSource = require('../internals/inspect-source');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar IS_BROWSER = require('../internals/engine-is-browser');\nvar IS_DENO = require('../internals/engine-is-deno');\nvar IS_PURE = require('../internals/is-pure');\nvar V8_VERSION = require('../internals/engine-v8-version');\n\nvar NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;\nvar SPECIES = wellKnownSymbol('species');\nvar SUBCLASSING = false;\nvar NATIVE_PROMISE_REJECTION_EVENT = isCallable(global.PromiseRejectionEvent);\n\nvar FORCED_PROMISE_CONSTRUCTOR = isForced('Promise', function () {\n var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor);\n var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor);\n // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables\n // https://bugs.chromium.org/p/chromium/issues/detail?id=830565\n // We can't detect it synchronously, so just check versions\n if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;\n // We need Promise#{ catch, finally } in the pure version for preventing prototype pollution\n if (IS_PURE && !(NativePromisePrototype['catch'] && NativePromisePrototype['finally'])) return true;\n // We can't use @@species feature detection in V8 since it causes\n // deoptimization and performance degradation\n // https://github.com/zloirock/core-js/issues/679\n if (!V8_VERSION || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) {\n // Detect correctness of subclassing with @@species support\n var promise = new NativePromiseConstructor(function (resolve) { resolve(1); });\n var FakePromise = function (exec) {\n exec(function () { /* empty */ }, function () { /* empty */ });\n };\n var constructor = promise.constructor = {};\n constructor[SPECIES] = FakePromise;\n SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;\n if (!SUBCLASSING) return true;\n // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test\n } return !GLOBAL_CORE_JS_PROMISE && (IS_BROWSER || IS_DENO) && !NATIVE_PROMISE_REJECTION_EVENT;\n});\n\nmodule.exports = {\n CONSTRUCTOR: FORCED_PROMISE_CONSTRUCTOR,\n REJECTION_EVENT: NATIVE_PROMISE_REJECTION_EVENT,\n SUBCLASSING: SUBCLASSING\n};\n","'use strict';\nvar aCallable = require('../internals/a-callable');\n\nvar $TypeError = TypeError;\n\nvar PromiseCapability = function (C) {\n var resolve, reject;\n this.promise = new C(function ($$resolve, $$reject) {\n if (resolve !== undefined || reject !== undefined) throw $TypeError('Bad Promise constructor');\n resolve = $$resolve;\n reject = $$reject;\n });\n this.resolve = aCallable(resolve);\n this.reject = aCallable(reject);\n};\n\n// `NewPromiseCapability` abstract operation\n// https://tc39.es/ecma262/#sec-newpromisecapability\nmodule.exports.f = function (C) {\n return new PromiseCapability(C);\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar IS_NODE = require('../internals/engine-is-node');\nvar global = require('../internals/global');\nvar call = require('../internals/function-call');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar setSpecies = require('../internals/set-species');\nvar aCallable = require('../internals/a-callable');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\nvar anInstance = require('../internals/an-instance');\nvar speciesConstructor = require('../internals/species-constructor');\nvar task = require('../internals/task').set;\nvar microtask = require('../internals/microtask');\nvar hostReportErrors = require('../internals/host-report-errors');\nvar perform = require('../internals/perform');\nvar Queue = require('../internals/queue');\nvar InternalStateModule = require('../internals/internal-state');\nvar NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar PromiseConstructorDetection = require('../internals/promise-constructor-detection');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\n\nvar PROMISE = 'Promise';\nvar FORCED_PROMISE_CONSTRUCTOR = PromiseConstructorDetection.CONSTRUCTOR;\nvar NATIVE_PROMISE_REJECTION_EVENT = PromiseConstructorDetection.REJECTION_EVENT;\nvar NATIVE_PROMISE_SUBCLASSING = PromiseConstructorDetection.SUBCLASSING;\nvar getInternalPromiseState = InternalStateModule.getterFor(PROMISE);\nvar setInternalState = InternalStateModule.set;\nvar NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;\nvar PromiseConstructor = NativePromiseConstructor;\nvar PromisePrototype = NativePromisePrototype;\nvar TypeError = global.TypeError;\nvar document = global.document;\nvar process = global.process;\nvar newPromiseCapability = newPromiseCapabilityModule.f;\nvar newGenericPromiseCapability = newPromiseCapability;\n\nvar DISPATCH_EVENT = !!(document && document.createEvent && global.dispatchEvent);\nvar UNHANDLED_REJECTION = 'unhandledrejection';\nvar REJECTION_HANDLED = 'rejectionhandled';\nvar PENDING = 0;\nvar FULFILLED = 1;\nvar REJECTED = 2;\nvar HANDLED = 1;\nvar UNHANDLED = 2;\n\nvar Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;\n\n// helpers\nvar isThenable = function (it) {\n var then;\n return isObject(it) && isCallable(then = it.then) ? then : false;\n};\n\nvar callReaction = function (reaction, state) {\n var value = state.value;\n var ok = state.state == FULFILLED;\n var handler = ok ? reaction.ok : reaction.fail;\n var resolve = reaction.resolve;\n var reject = reaction.reject;\n var domain = reaction.domain;\n var result, then, exited;\n try {\n if (handler) {\n if (!ok) {\n if (state.rejection === UNHANDLED) onHandleUnhandled(state);\n state.rejection = HANDLED;\n }\n if (handler === true) result = value;\n else {\n if (domain) domain.enter();\n result = handler(value); // can throw\n if (domain) {\n domain.exit();\n exited = true;\n }\n }\n if (result === reaction.promise) {\n reject(TypeError('Promise-chain cycle'));\n } else if (then = isThenable(result)) {\n call(then, result, resolve, reject);\n } else resolve(result);\n } else reject(value);\n } catch (error) {\n if (domain && !exited) domain.exit();\n reject(error);\n }\n};\n\nvar notify = function (state, isReject) {\n if (state.notified) return;\n state.notified = true;\n microtask(function () {\n var reactions = state.reactions;\n var reaction;\n while (reaction = reactions.get()) {\n callReaction(reaction, state);\n }\n state.notified = false;\n if (isReject && !state.rejection) onUnhandled(state);\n });\n};\n\nvar dispatchEvent = function (name, promise, reason) {\n var event, handler;\n if (DISPATCH_EVENT) {\n event = document.createEvent('Event');\n event.promise = promise;\n event.reason = reason;\n event.initEvent(name, false, true);\n global.dispatchEvent(event);\n } else event = { promise: promise, reason: reason };\n if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global['on' + name])) handler(event);\n else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);\n};\n\nvar onUnhandled = function (state) {\n call(task, global, function () {\n var promise = state.facade;\n var value = state.value;\n var IS_UNHANDLED = isUnhandled(state);\n var result;\n if (IS_UNHANDLED) {\n result = perform(function () {\n if (IS_NODE) {\n process.emit('unhandledRejection', value, promise);\n } else dispatchEvent(UNHANDLED_REJECTION, promise, value);\n });\n // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should\n state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;\n if (result.error) throw result.value;\n }\n });\n};\n\nvar isUnhandled = function (state) {\n return state.rejection !== HANDLED && !state.parent;\n};\n\nvar onHandleUnhandled = function (state) {\n call(task, global, function () {\n var promise = state.facade;\n if (IS_NODE) {\n process.emit('rejectionHandled', promise);\n } else dispatchEvent(REJECTION_HANDLED, promise, state.value);\n });\n};\n\nvar bind = function (fn, state, unwrap) {\n return function (value) {\n fn(state, value, unwrap);\n };\n};\n\nvar internalReject = function (state, value, unwrap) {\n if (state.done) return;\n state.done = true;\n if (unwrap) state = unwrap;\n state.value = value;\n state.state = REJECTED;\n notify(state, true);\n};\n\nvar internalResolve = function (state, value, unwrap) {\n if (state.done) return;\n state.done = true;\n if (unwrap) state = unwrap;\n try {\n if (state.facade === value) throw TypeError(\"Promise can't be resolved itself\");\n var then = isThenable(value);\n if (then) {\n microtask(function () {\n var wrapper = { done: false };\n try {\n call(then, value,\n bind(internalResolve, wrapper, state),\n bind(internalReject, wrapper, state)\n );\n } catch (error) {\n internalReject(wrapper, error, state);\n }\n });\n } else {\n state.value = value;\n state.state = FULFILLED;\n notify(state, false);\n }\n } catch (error) {\n internalReject({ done: false }, error, state);\n }\n};\n\n// constructor polyfill\nif (FORCED_PROMISE_CONSTRUCTOR) {\n // 25.4.3.1 Promise(executor)\n PromiseConstructor = function Promise(executor) {\n anInstance(this, PromisePrototype);\n aCallable(executor);\n call(Internal, this);\n var state = getInternalPromiseState(this);\n try {\n executor(bind(internalResolve, state), bind(internalReject, state));\n } catch (error) {\n internalReject(state, error);\n }\n };\n\n PromisePrototype = PromiseConstructor.prototype;\n\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n Internal = function Promise(executor) {\n setInternalState(this, {\n type: PROMISE,\n done: false,\n notified: false,\n parent: false,\n reactions: new Queue(),\n rejection: false,\n state: PENDING,\n value: undefined\n });\n };\n\n // `Promise.prototype.then` method\n // https://tc39.es/ecma262/#sec-promise.prototype.then\n Internal.prototype = defineBuiltIn(PromisePrototype, 'then', function then(onFulfilled, onRejected) {\n var state = getInternalPromiseState(this);\n var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor));\n state.parent = true;\n reaction.ok = isCallable(onFulfilled) ? onFulfilled : true;\n reaction.fail = isCallable(onRejected) && onRejected;\n reaction.domain = IS_NODE ? process.domain : undefined;\n if (state.state == PENDING) state.reactions.add(reaction);\n else microtask(function () {\n callReaction(reaction, state);\n });\n return reaction.promise;\n });\n\n OwnPromiseCapability = function () {\n var promise = new Internal();\n var state = getInternalPromiseState(promise);\n this.promise = promise;\n this.resolve = bind(internalResolve, state);\n this.reject = bind(internalReject, state);\n };\n\n newPromiseCapabilityModule.f = newPromiseCapability = function (C) {\n return C === PromiseConstructor || C === PromiseWrapper\n ? new OwnPromiseCapability(C)\n : newGenericPromiseCapability(C);\n };\n\n if (!IS_PURE && isCallable(NativePromiseConstructor) && NativePromisePrototype !== Object.prototype) {\n nativeThen = NativePromisePrototype.then;\n\n if (!NATIVE_PROMISE_SUBCLASSING) {\n // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs\n defineBuiltIn(NativePromisePrototype, 'then', function then(onFulfilled, onRejected) {\n var that = this;\n return new PromiseConstructor(function (resolve, reject) {\n call(nativeThen, that, resolve, reject);\n }).then(onFulfilled, onRejected);\n // https://github.com/zloirock/core-js/issues/640\n }, { unsafe: true });\n }\n\n // make `.constructor === Promise` work for native promise-based APIs\n try {\n delete NativePromisePrototype.constructor;\n } catch (error) { /* empty */ }\n\n // make `instanceof Promise` work for native promise-based APIs\n if (setPrototypeOf) {\n setPrototypeOf(NativePromisePrototype, PromisePrototype);\n }\n }\n}\n\n$({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {\n Promise: PromiseConstructor\n});\n\nsetToStringTag(PromiseConstructor, PROMISE, false, true);\nsetSpecies(PROMISE);\n","module.exports = function (a, b) {\n try {\n // eslint-disable-next-line no-console -- safe\n arguments.length == 1 ? console.error(a) : console.error(a, b);\n } catch (error) { /* empty */ }\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\nvar Iterators = require('../internals/iterators');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar ArrayPrototype = Array.prototype;\n\n// check on default Array iterator\nmodule.exports = function (it) {\n return it !== undefined && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it);\n};\n","var classof = require('../internals/classof');\nvar getMethod = require('../internals/get-method');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar Iterators = require('../internals/iterators');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\n\nmodule.exports = function (it) {\n if (!isNullOrUndefined(it)) return getMethod(it, ITERATOR)\n || getMethod(it, '@@iterator')\n || Iterators[classof(it)];\n};\n","var call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar anObject = require('../internals/an-object');\nvar tryToString = require('../internals/try-to-string');\nvar getIteratorMethod = require('../internals/get-iterator-method');\n\nvar $TypeError = TypeError;\n\nmodule.exports = function (argument, usingIterator) {\n var iteratorMethod = arguments.length < 2 ? getIteratorMethod(argument) : usingIterator;\n if (aCallable(iteratorMethod)) return anObject(call(iteratorMethod, argument));\n throw $TypeError(tryToString(argument) + ' is not iterable');\n};\n","var call = require('../internals/function-call');\nvar anObject = require('../internals/an-object');\nvar getMethod = require('../internals/get-method');\n\nmodule.exports = function (iterator, kind, value) {\n var innerResult, innerError;\n anObject(iterator);\n try {\n innerResult = getMethod(iterator, 'return');\n if (!innerResult) {\n if (kind === 'throw') throw value;\n return value;\n }\n innerResult = call(innerResult, iterator);\n } catch (error) {\n innerError = true;\n innerResult = error;\n }\n if (kind === 'throw') throw value;\n if (innerError) throw innerResult;\n anObject(innerResult);\n return value;\n};\n","var bind = require('../internals/function-bind-context');\nvar call = require('../internals/function-call');\nvar anObject = require('../internals/an-object');\nvar tryToString = require('../internals/try-to-string');\nvar isArrayIteratorMethod = require('../internals/is-array-iterator-method');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar getIterator = require('../internals/get-iterator');\nvar getIteratorMethod = require('../internals/get-iterator-method');\nvar iteratorClose = require('../internals/iterator-close');\n\nvar $TypeError = TypeError;\n\nvar Result = function (stopped, result) {\n this.stopped = stopped;\n this.result = result;\n};\n\nvar ResultPrototype = Result.prototype;\n\nmodule.exports = function (iterable, unboundFunction, options) {\n var that = options && options.that;\n var AS_ENTRIES = !!(options && options.AS_ENTRIES);\n var IS_RECORD = !!(options && options.IS_RECORD);\n var IS_ITERATOR = !!(options && options.IS_ITERATOR);\n var INTERRUPTED = !!(options && options.INTERRUPTED);\n var fn = bind(unboundFunction, that);\n var iterator, iterFn, index, length, result, next, step;\n\n var stop = function (condition) {\n if (iterator) iteratorClose(iterator, 'normal', condition);\n return new Result(true, condition);\n };\n\n var callFn = function (value) {\n if (AS_ENTRIES) {\n anObject(value);\n return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);\n } return INTERRUPTED ? fn(value, stop) : fn(value);\n };\n\n if (IS_RECORD) {\n iterator = iterable.iterator;\n } else if (IS_ITERATOR) {\n iterator = iterable;\n } else {\n iterFn = getIteratorMethod(iterable);\n if (!iterFn) throw $TypeError(tryToString(iterable) + ' is not iterable');\n // optimisation for array iterators\n if (isArrayIteratorMethod(iterFn)) {\n for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {\n result = callFn(iterable[index]);\n if (result && isPrototypeOf(ResultPrototype, result)) return result;\n } return new Result(false);\n }\n iterator = getIterator(iterable, iterFn);\n }\n\n next = IS_RECORD ? iterable.next : iterator.next;\n while (!(step = call(next, iterator)).done) {\n try {\n result = callFn(step.value);\n } catch (error) {\n iteratorClose(iterator, 'throw', error);\n }\n if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;\n } return new Result(false);\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar SAFE_CLOSING = false;\n\ntry {\n var called = 0;\n var iteratorWithReturn = {\n next: function () {\n return { done: !!called++ };\n },\n 'return': function () {\n SAFE_CLOSING = true;\n }\n };\n iteratorWithReturn[ITERATOR] = function () {\n return this;\n };\n // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing\n Array.from(iteratorWithReturn, function () { throw 2; });\n} catch (error) { /* empty */ }\n\nmodule.exports = function (exec, SKIP_CLOSING) {\n if (!SKIP_CLOSING && !SAFE_CLOSING) return false;\n var ITERATION_SUPPORT = false;\n try {\n var object = {};\n object[ITERATOR] = function () {\n return {\n next: function () {\n return { done: ITERATION_SUPPORT = true };\n }\n };\n };\n exec(object);\n } catch (error) { /* empty */ }\n return ITERATION_SUPPORT;\n};\n","var NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration');\nvar FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR;\n\nmodule.exports = FORCED_PROMISE_CONSTRUCTOR || !checkCorrectnessOfIteration(function (iterable) {\n NativePromiseConstructor.all(iterable).then(undefined, function () { /* empty */ });\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar perform = require('../internals/perform');\nvar iterate = require('../internals/iterate');\nvar PROMISE_STATICS_INCORRECT_ITERATION = require('../internals/promise-statics-incorrect-iteration');\n\n// `Promise.all` method\n// https://tc39.es/ecma262/#sec-promise.all\n$({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {\n all: function all(iterable) {\n var C = this;\n var capability = newPromiseCapabilityModule.f(C);\n var resolve = capability.resolve;\n var reject = capability.reject;\n var result = perform(function () {\n var $promiseResolve = aCallable(C.resolve);\n var values = [];\n var counter = 0;\n var remaining = 1;\n iterate(iterable, function (promise) {\n var index = counter++;\n var alreadyCalled = false;\n remaining++;\n call($promiseResolve, C, promise).then(function (value) {\n if (alreadyCalled) return;\n alreadyCalled = true;\n values[index] = value;\n --remaining || resolve(values);\n }, reject);\n });\n --remaining || resolve(values);\n });\n if (result.error) reject(result.value);\n return capability.promise;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR;\nvar NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar getBuiltIn = require('../internals/get-built-in');\nvar isCallable = require('../internals/is-callable');\nvar defineBuiltIn = require('../internals/define-built-in');\n\nvar NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;\n\n// `Promise.prototype.catch` method\n// https://tc39.es/ecma262/#sec-promise.prototype.catch\n$({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR, real: true }, {\n 'catch': function (onRejected) {\n return this.then(undefined, onRejected);\n }\n});\n\n// makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`\nif (!IS_PURE && isCallable(NativePromiseConstructor)) {\n var method = getBuiltIn('Promise').prototype['catch'];\n if (NativePromisePrototype['catch'] !== method) {\n defineBuiltIn(NativePromisePrototype, 'catch', method, { unsafe: true });\n }\n}\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar perform = require('../internals/perform');\nvar iterate = require('../internals/iterate');\nvar PROMISE_STATICS_INCORRECT_ITERATION = require('../internals/promise-statics-incorrect-iteration');\n\n// `Promise.race` method\n// https://tc39.es/ecma262/#sec-promise.race\n$({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {\n race: function race(iterable) {\n var C = this;\n var capability = newPromiseCapabilityModule.f(C);\n var reject = capability.reject;\n var result = perform(function () {\n var $promiseResolve = aCallable(C.resolve);\n iterate(iterable, function (promise) {\n call($promiseResolve, C, promise).then(capability.resolve, reject);\n });\n });\n if (result.error) reject(result.value);\n return capability.promise;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR;\n\n// `Promise.reject` method\n// https://tc39.es/ecma262/#sec-promise.reject\n$({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {\n reject: function reject(r) {\n var capability = newPromiseCapabilityModule.f(this);\n call(capability.reject, undefined, r);\n return capability.promise;\n }\n});\n","var anObject = require('../internals/an-object');\nvar isObject = require('../internals/is-object');\nvar newPromiseCapability = require('../internals/new-promise-capability');\n\nmodule.exports = function (C, x) {\n anObject(C);\n if (isObject(x) && x.constructor === C) return x;\n var promiseCapability = newPromiseCapability.f(C);\n var resolve = promiseCapability.resolve;\n resolve(x);\n return promiseCapability.promise;\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar getBuiltIn = require('../internals/get-built-in');\nvar IS_PURE = require('../internals/is-pure');\nvar NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR;\nvar promiseResolve = require('../internals/promise-resolve');\n\nvar PromiseConstructorWrapper = getBuiltIn('Promise');\nvar CHECK_WRAPPER = IS_PURE && !FORCED_PROMISE_CONSTRUCTOR;\n\n// `Promise.resolve` method\n// https://tc39.es/ecma262/#sec-promise.resolve\n$({ target: 'Promise', stat: true, forced: IS_PURE || FORCED_PROMISE_CONSTRUCTOR }, {\n resolve: function resolve(x) {\n return promiseResolve(CHECK_WRAPPER && this === PromiseConstructorWrapper ? NativePromiseConstructor : this, x);\n }\n});\n","var classof = require('../internals/classof');\n\nvar $String = String;\n\nmodule.exports = function (argument) {\n if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');\n return $String(argument);\n};\n","'use strict';\n/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */\n/* eslint-disable regexp/no-useless-quantifier -- testing */\nvar call = require('../internals/function-call');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar toString = require('../internals/to-string');\nvar regexpFlags = require('../internals/regexp-flags');\nvar stickyHelpers = require('../internals/regexp-sticky-helpers');\nvar shared = require('../internals/shared');\nvar create = require('../internals/object-create');\nvar getInternalState = require('../internals/internal-state').get;\nvar UNSUPPORTED_DOT_ALL = require('../internals/regexp-unsupported-dot-all');\nvar UNSUPPORTED_NCG = require('../internals/regexp-unsupported-ncg');\n\nvar nativeReplace = shared('native-string-replace', String.prototype.replace);\nvar nativeExec = RegExp.prototype.exec;\nvar patchedExec = nativeExec;\nvar charAt = uncurryThis(''.charAt);\nvar indexOf = uncurryThis(''.indexOf);\nvar replace = uncurryThis(''.replace);\nvar stringSlice = uncurryThis(''.slice);\n\nvar UPDATES_LAST_INDEX_WRONG = (function () {\n var re1 = /a/;\n var re2 = /b*/g;\n call(nativeExec, re1, 'a');\n call(nativeExec, re2, 'a');\n return re1.lastIndex !== 0 || re2.lastIndex !== 0;\n})();\n\nvar UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;\n\n// nonparticipating capturing group, copied from es5-shim's String#split patch.\nvar NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;\n\nvar PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;\n\nif (PATCH) {\n patchedExec = function exec(string) {\n var re = this;\n var state = getInternalState(re);\n var str = toString(string);\n var raw = state.raw;\n var result, reCopy, lastIndex, match, i, object, group;\n\n if (raw) {\n raw.lastIndex = re.lastIndex;\n result = call(patchedExec, raw, str);\n re.lastIndex = raw.lastIndex;\n return result;\n }\n\n var groups = state.groups;\n var sticky = UNSUPPORTED_Y && re.sticky;\n var flags = call(regexpFlags, re);\n var source = re.source;\n var charsAdded = 0;\n var strCopy = str;\n\n if (sticky) {\n flags = replace(flags, 'y', '');\n if (indexOf(flags, 'g') === -1) {\n flags += 'g';\n }\n\n strCopy = stringSlice(str, re.lastIndex);\n // Support anchored sticky behavior.\n if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt(str, re.lastIndex - 1) !== '\\n')) {\n source = '(?: ' + source + ')';\n strCopy = ' ' + strCopy;\n charsAdded++;\n }\n // ^(? + rx + ) is needed, in combination with some str slicing, to\n // simulate the 'y' flag.\n reCopy = new RegExp('^(?:' + source + ')', flags);\n }\n\n if (NPCG_INCLUDED) {\n reCopy = new RegExp('^' + source + '$(?!\\\\s)', flags);\n }\n if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;\n\n match = call(nativeExec, sticky ? reCopy : re, strCopy);\n\n if (sticky) {\n if (match) {\n match.input = stringSlice(match.input, charsAdded);\n match[0] = stringSlice(match[0], charsAdded);\n match.index = re.lastIndex;\n re.lastIndex += match[0].length;\n } else re.lastIndex = 0;\n } else if (UPDATES_LAST_INDEX_WRONG && match) {\n re.lastIndex = re.global ? match.index + match[0].length : lastIndex;\n }\n if (NPCG_INCLUDED && match && match.length > 1) {\n // Fix browsers whose `exec` methods don't consistently return `undefined`\n // for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/\n call(nativeReplace, match[0], reCopy, function () {\n for (i = 1; i < arguments.length - 2; i++) {\n if (arguments[i] === undefined) match[i] = undefined;\n }\n });\n }\n\n if (match && groups) {\n match.groups = object = create(null);\n for (i = 0; i < groups.length; i++) {\n group = groups[i];\n object[group[0]] = match[group[1]];\n }\n }\n\n return match;\n };\n}\n\nmodule.exports = patchedExec;\n","'use strict';\nvar anObject = require('../internals/an-object');\n\n// `RegExp.prototype.flags` getter implementation\n// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags\nmodule.exports = function () {\n var that = anObject(this);\n var result = '';\n if (that.hasIndices) result += 'd';\n if (that.global) result += 'g';\n if (that.ignoreCase) result += 'i';\n if (that.multiline) result += 'm';\n if (that.dotAll) result += 's';\n if (that.unicode) result += 'u';\n if (that.unicodeSets) result += 'v';\n if (that.sticky) result += 'y';\n return result;\n};\n","var fails = require('../internals/fails');\nvar global = require('../internals/global');\n\n// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError\nvar $RegExp = global.RegExp;\n\nvar UNSUPPORTED_Y = fails(function () {\n var re = $RegExp('a', 'y');\n re.lastIndex = 2;\n return re.exec('abcd') != null;\n});\n\n// UC Browser bug\n// https://github.com/zloirock/core-js/issues/1008\nvar MISSED_STICKY = UNSUPPORTED_Y || fails(function () {\n return !$RegExp('a', 'y').sticky;\n});\n\nvar BROKEN_CARET = UNSUPPORTED_Y || fails(function () {\n // https://bugzilla.mozilla.org/show_bug.cgi?id=773687\n var re = $RegExp('^r', 'gy');\n re.lastIndex = 2;\n return re.exec('str') != null;\n});\n\nmodule.exports = {\n BROKEN_CARET: BROKEN_CARET,\n MISSED_STICKY: MISSED_STICKY,\n UNSUPPORTED_Y: UNSUPPORTED_Y\n};\n","var fails = require('../internals/fails');\nvar global = require('../internals/global');\n\n// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError\nvar $RegExp = global.RegExp;\n\nmodule.exports = fails(function () {\n var re = $RegExp('.', 's');\n return !(re.dotAll && re.exec('\\n') && re.flags === 's');\n});\n","var fails = require('../internals/fails');\nvar global = require('../internals/global');\n\n// babel-minify and Closure Compiler transpiles RegExp('(?b)', 'g') -> /(?b)/g and it causes SyntaxError\nvar $RegExp = global.RegExp;\n\nmodule.exports = fails(function () {\n var re = $RegExp('(?b)', 'g');\n return re.exec('b').groups.a !== 'b' ||\n 'b'.replace(re, '$c') !== 'bc';\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar exec = require('../internals/regexp-exec');\n\n// `RegExp.prototype.exec` method\n// https://tc39.es/ecma262/#sec-regexp.prototype.exec\n$({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {\n exec: exec\n});\n","/**\n * Provide feature detection\n * @class Features\n */\nexport class Features {\n /**\n * If the browser has WebGL support\n * @property {boolean} webgl\n */\n static get webgl() {\n const canvas = document.createElement('canvas');\n\n return !!(\n canvas &&\n (canvas.getContext('webgl') || canvas.getContext('experimental-webgl'))\n );\n }\n\n /**\n * If the browser has Canvas support\n * @property {boolean} canvas\n */\n static get canvas() {\n const canvas = document.createElement('canvas');\n return !!(canvas !== null && canvas.getContext && canvas.getContext('2d'));\n }\n\n /**\n * If the browser has WebAudio API support\n * @property {boolean} webaudio\n */\n static get webaudio() {\n return 'webkitAudioContext' in window || 'AudioContext' in window;\n }\n\n /**\n * If the browser has HTMLAudio support\n * @property {boolean} htmlAudio\n */\n static get htmlAudio() {\n return 'HTMLAudioElement' in window;\n }\n\n /**\n * If the browser has Web Sockets API\n * @property {boolean} websockets\n */\n static get websockets() {\n return 'WebSocket' in window || 'MozWebSocket' in window;\n }\n\n /**\n * If the browser has Geolocation API\n * @property {boolean} geolocation\n */\n static get geolocation() {\n return 'geolocation' in navigator;\n }\n\n /**\n * If the browser has Web Workers API\n * @property {boolean} webworkers\n */\n static get webworkers() {\n return 'function' === typeof Worker;\n }\n\n /**\n * If the browser has touch\n * @property {boolean} touch\n */\n static get touch() {\n return !!(\n 'ontouchstart' in window || // iOS & Android\n (navigator.msPointerEnabled && navigator.msMaxTouchPoints > 0) || // IE10\n (navigator.pointerEnabled && navigator.maxTouchPoints > 0)\n ); // IE11+\n }\n\n /**\n * Test for basic browser compatiliblity\n * @method basic\n * @static\n * @return {String} The error message, if fails\n */\n static basic() {\n if (!Features.canvas) {\n return 'Browser does not support canvas';\n } else if (!Features.webaudio && !Features.htmlAudio) {\n return 'Browser does not support WebAudio or HTMLAudio';\n }\n return null;\n }\n\n /**\n * See if the current bowser has the correct features\n * @method test\n * @static\n * @param {object} capabilities The capabilities\n * @param {object} [capabilities.features] The features\n * @param {object} [capabilities.features.webgl] WebGL required\n * @param {object} [capabilities.features.geolocation] Geolocation required\n * @param {object} [capabilities.features.webworkers] Web Workers API required\n * @param {object} [capabilities.features.webaudio] WebAudio API required\n * @param {object} [capabilities.features.websockets] WebSockets required\n * @param {object} [capabilities.sizes] The sizes\n * @param {Boolean} [capabilities.sizes.xsmall] Screens < 480\n * @param {Boolean} [capabilities.sizes.small] Screens < 768\n * @param {Boolean} [capabilities.sizes.medium] Screens < 992\n * @param {Boolean} [capabilities.sizes.large] Screens < 1200\n * @param {Boolean} [capabilities.sizes.xlarge] Screens >= 1200\n * @param {object} [capabilities.ui] The ui\n * @param {Boolean} [capabilities.ui.touch] Touch capable\n * @return {String|null} The error, or else returns null\n */\n static test(capabilities) {\n // check for basic compatibility\n const err = this.basic();\n if (err) {\n return err;\n }\n\n const features = capabilities.features;\n const ui = capabilities.ui;\n const sizes = capabilities.sizes;\n\n for (const name in features) {\n if (features[name] === true && !Features[name]) {\n // Failed built-in feature check\n return 'Browser does not support ' + name;\n }\n }\n\n // Failed negative touch requirement\n if (!ui.touch && Features.touch) {\n return 'Game does not support touch input';\n }\n\n // Check the sizes\n const size = Math.max(window.screen.width, window.screen.height);\n\n if (!sizes.xsmall && size < 480) {\n return 'Game doesn\\'t support extra small screens';\n }\n if (!sizes.small && size < 768) {\n return 'Game doesn\\'t support small screens';\n }\n if (!sizes.medium && size < 992) {\n return 'Game doesn\\'t support medium screens';\n }\n if (!sizes.large && size < 1200) {\n return 'Game doesn\\'t support large screens';\n }\n if (!sizes.xlarge && size >= 1200) {\n return 'Game doesn\\'t support extra large screens';\n }\n return null;\n }\n\n /**\n * Returns browser feature support info\n * @returns {string}\n */\n static get info() {\n return `Browser Feature Detection\n\t\t\t\tCanvas support ${Features.canvas ? '\\u2713' : '\\u00D7'}\n\t\t\t\tWebGL support ${Features.webgl ? '\\u2713' : '\\u00D7'}\n\t\t\t\tWebAudio support ${Features.webAudio ? '\\u2713' : '\\u00D7'}`;\n }\n}\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\nvar toString = require('../internals/to-string');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nvar charAt = uncurryThis(''.charAt);\nvar charCodeAt = uncurryThis(''.charCodeAt);\nvar stringSlice = uncurryThis(''.slice);\n\nvar createMethod = function (CONVERT_TO_STRING) {\n return function ($this, pos) {\n var S = toString(requireObjectCoercible($this));\n var position = toIntegerOrInfinity(pos);\n var size = S.length;\n var first, second;\n if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;\n first = charCodeAt(S, position);\n return first < 0xD800 || first > 0xDBFF || position + 1 === size\n || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF\n ? CONVERT_TO_STRING\n ? charAt(S, position)\n : first\n : CONVERT_TO_STRING\n ? stringSlice(S, position, position + 2)\n : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;\n };\n};\n\nmodule.exports = {\n // `String.prototype.codePointAt` method\n // https://tc39.es/ecma262/#sec-string.prototype.codepointat\n codeAt: createMethod(false),\n // `String.prototype.at` method\n // https://github.com/mathiasbynens/String.prototype.at\n charAt: createMethod(true)\n};\n","'use strict';\nvar charAt = require('../internals/string-multibyte').charAt;\nvar toString = require('../internals/to-string');\nvar InternalStateModule = require('../internals/internal-state');\nvar defineIterator = require('../internals/iterator-define');\nvar createIterResultObject = require('../internals/create-iter-result-object');\n\nvar STRING_ITERATOR = 'String Iterator';\nvar setInternalState = InternalStateModule.set;\nvar getInternalState = InternalStateModule.getterFor(STRING_ITERATOR);\n\n// `String.prototype[@@iterator]` method\n// https://tc39.es/ecma262/#sec-string.prototype-@@iterator\ndefineIterator(String, 'String', function (iterated) {\n setInternalState(this, {\n type: STRING_ITERATOR,\n string: toString(iterated),\n index: 0\n });\n// `%StringIteratorPrototype%.next` method\n// https://tc39.es/ecma262/#sec-%stringiteratorprototype%.next\n}, function next() {\n var state = getInternalState(this);\n var string = state.string;\n var index = state.index;\n var point;\n if (index >= string.length) return createIterResultObject(undefined, true);\n point = charAt(string, index);\n state.index += point.length;\n return createIterResultObject(point, false);\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar $filter = require('../internals/array-iteration').filter;\nvar arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');\n\nvar HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');\n\n// `Array.prototype.filter` method\n// https://tc39.es/ecma262/#sec-array.prototype.filter\n// with adding support of @@species\n$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {\n filter: function filter(callbackfn /* , thisArg */) {\n return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar $find = require('../internals/array-iteration').find;\nvar addToUnscopables = require('../internals/add-to-unscopables');\n\nvar FIND = 'find';\nvar SKIPS_HOLES = true;\n\n// Shouldn't skip holes\nif (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });\n\n// `Array.prototype.find` method\n// https://tc39.es/ecma262/#sec-array.prototype.find\n$({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {\n find: function find(callbackfn /* , that = undefined */) {\n return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables(FIND);\n","function t(t,e){return t(e={exports:{}},e.exports),e.exports}var e=t((function(t){function e(t){return(e=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t})(t)}function n(r){return\"function\"==typeof Symbol&&\"symbol\"===e(Symbol.iterator)?t.exports=n=function(t){return e(t)}:t.exports=n=function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":e(t)},n(r)}t.exports=n}));var n=function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")};function r(t,e){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:0;this._listeners[t]||(this._listeners[t]=[]),e._priority=parseInt(n)||0,-1===this._listeners[t].indexOf(e)&&(this._listeners[t].push(e),this._listeners[t].length>1&&this._listeners[t].sort(this.listenerSorter))}},{key:\"listenerSorter\",value:function(t,e){return t._priority-e._priority}},{key:\"off\",value:function(t,e){if(void 0!==this._listeners[t])if(void 0!==e){var n=this._listeners[t].indexOf(e);-11&&void 0!==arguments[1]?arguments[1]:{};if(\"string\"==typeof t&&(t={type:t,data:\"object\"===e(n)&&null!==n?n:{}}),void 0!==this._listeners[t.type])for(var r=this._listeners[t.type].length-1;r>=0;r--)this._listeners[t.type][r](t)}},{key:\"destroy\",value:function(){this._listeners={}}}]),t}(),s=t((function(t){var e=function(t){var e,n=Object.prototype,r=n.hasOwnProperty,o=\"function\"==typeof Symbol?Symbol:{},i=o.iterator||\"@@iterator\",s=o.asyncIterator||\"@@asyncIterator\",a=o.toStringTag||\"@@toStringTag\";function c(t,e,n,r){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),s=new S(r||[]);return i._invoke=function(t,e,n){var r=h;return function(o,i){if(r===f)throw new Error(\"Generator is already running\");if(r===p){if(\"throw\"===o)throw i;return P()}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var a=O(s,n);if(a){if(a===y)continue;return a}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(r===h)throw r=p,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);r=f;var c=u(t,e,n);if(\"normal\"===c.type){if(r=n.done?p:l,c.arg===y)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(r=p,n.method=\"throw\",n.arg=c.arg)}}}(t,n,s),i}function u(t,e,n){try{return{type:\"normal\",arg:t.call(e,n)}}catch(t){return{type:\"throw\",arg:t}}}t.wrap=c;var h=\"suspendedStart\",l=\"suspendedYield\",f=\"executing\",p=\"completed\",y={};function d(){}function v(){}function g(){}var m={};m[i]=function(){return this};var w=Object.getPrototypeOf,b=w&&w(w(j([])));b&&b!==n&&r.call(b,i)&&(m=b);var _=g.prototype=d.prototype=Object.create(m);function x(t){[\"next\",\"throw\",\"return\"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function L(t){function e(n,o,i,s){var a=u(t[n],t,o);if(\"throw\"!==a.type){var c=a.arg,h=c.value;return h&&\"object\"==typeof h&&r.call(h,\"__await\")?Promise.resolve(h.__await).then((function(t){e(\"next\",t,i,s)}),(function(t){e(\"throw\",t,i,s)})):Promise.resolve(h).then((function(t){c.value=t,i(c)}),(function(t){return e(\"throw\",t,i,s)}))}s(a.arg)}var n;this._invoke=function(t,r){function o(){return new Promise((function(n,o){e(t,r,n,o)}))}return n=n?n.then(o,o):o()}}function O(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,\"throw\"===n.method){if(t.iterator.return&&(n.method=\"return\",n.arg=e,O(t,n),\"throw\"===n.method))return y;n.method=\"throw\",n.arg=new TypeError(\"The iterator does not provide a 'throw' method\")}return y}var o=u(r,t.iterator,n.arg);if(\"throw\"===o.type)return n.method=\"throw\",n.arg=o.arg,n.delegate=null,y;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,\"return\"!==n.method&&(n.method=\"next\",n.arg=e),n.delegate=null,y):i:(n.method=\"throw\",n.arg=new TypeError(\"iterator result is not an object\"),n.delegate=null,y)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(E,this),this.reset(!0)}function j(t){if(t){var n=t[i];if(n)return n.call(t);if(\"function\"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,s=function n(){for(;++o=0;--i){var s=this.tryEntries[i],a=s.completion;if(\"root\"===s.tryLoc)return o(\"end\");if(s.tryLoc<=this.prev){var c=r.call(s,\"catchLoc\"),u=r.call(s,\"finallyLoc\");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,\"finallyLoc\")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if(\"throw\"===r.type){var o=r.arg;k(n)}return o}}throw new Error(\"illegal catch attempt\")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},\"next\"===this.method&&(this.arg=e),y}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function(\"r\",\"regeneratorRuntime = r\")(e)}}));var a=function(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t};var c=function(t,n){return!n||\"object\"!==e(n)&&\"function\"!=typeof n?a(t):n},u=t((function(t){function e(n){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},e(n)}t.exports=e}));var h=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=u(t)););return t},l=t((function(t){function e(n,r,o){return\"undefined\"!=typeof Reflect&&Reflect.get?t.exports=e=Reflect.get:t.exports=e=function(t,e,n){var r=h(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}},e(n,r,o||n)}t.exports=e})),f=t((function(t){function e(n,r){return t.exports=e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},e(n,r)}t.exports=e}));var p=function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)},y=function(t){function r(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100*Math.random()|0;return n(this,r),(t=c(this,u(r).call(this))).id=\"BELLHOP:\".concat(e),t.connected=!1,t.isChild=!0,t.connecting=!1,t.debug=!1,t.origin=\"*\",t._sendLater=[],t.iframe=null,t.receive=t.receive.bind(a(t)),t}return p(r,i),o(r,[{key:\"receive\",value:function(t){if(this.target===t.source)if(this.logDebugMessage(!0,t),\"connected\"===t.data)this.onConnectionReceived(t.data);else{var n=t.data;if(\"string\"==typeof n)try{n=JSON.parse(n)}catch(t){console.warn(\"Bellhop error: \",t)}this.connected&&\"object\"===e(n)&&n.type&&this.trigger(n)}}},{key:\"onConnectionReceived\",value:function(t){if(this.connecting=!1,this.connected=!0,!this.isChild){if(!this.target)return;this.target.postMessage(t,this.origin)}for(var e=0;e1&&void 0!==arguments[1]?arguments[1]:\"*\";this.connecting||(this.disconnect(),this.connecting=!0,t instanceof HTMLIFrameElement&&(this.iframe=t),this.isChild=void 0===t,this.supported=!0,this.isChild&&(this.supported=window!=t),this.origin=e,window.addEventListener(\"message\",this.receive),this.isChild&&(window===this.target?this.trigger(\"failed\"):this.target.postMessage(\"connected\",this.origin)))}},{key:\"disconnect\",value:function(){this.connected=!1,this.connecting=!1,this.origin=null,this.iframe=null,this.isChild=!0,this._sendLater.length=0,window.removeEventListener(\"message\",this.receive)}},{key:\"send\",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(\"string\"!=typeof t)throw\"The event type must be a string\";var n={type:t,data:e};this.logDebugMessage(!1,n),this.connecting?this._sendLater.push(n):this.target.postMessage(JSON.stringify(n),this.origin)}},{key:\"fetch\",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!this.connecting&&!this.connected)throw\"No connection, please call connect() first\";var i=function t(r){o&&n.off(r.type,t),e(r)};this.on(t,i),this.send(t,r)}},{key:\"respond\",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this,o=function t(o){return s.async((function(i){for(;;)switch(i.prev=i.next){case 0:if(n&&r.off(o,t),\"function\"!=typeof e){i.next=10;break}return i.t0=r,i.t1=o.type,i.next=6,s.awrap(e());case 6:i.t2=i.sent,i.t0.send.call(i.t0,i.t1,i.t2),i.next=11;break;case 10:r.send(o.type,e);case 11:case\"end\":return i.stop()}}))};this.on(t,o)}},{key:\"logDebugMessage\",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1?arguments[1]:void 0;this.debug&&\"function\"==typeof this.debug?this.debug({isChild:this.isChild,received:t,message:e}):this.debug&&console.log(\"Bellhop Instance (\".concat(this.isChild?\"Child\":\"Parent\",\") \").concat(t?\"Receieved\":\"Sent\"),e)}},{key:\"destroy\",value:function(){l(u(r.prototype),\"destroy\",this).call(this),this.disconnect(),this._sendLater.length=0}},{key:\"target\",get:function(){return this.isChild?window.parent:this.iframe.contentWindow}}]),r}();export{y as Bellhop,i as BellhopEventDispatcher};\n//# sourceMappingURL=bellhop.js.map\n","/**\n * @typedef {import('./base-plugins/BasePlugin').BasePlugin} BasePlugin\n */\nimport { Bellhop } from 'bellhop-iframe';\n/**\n *\n *\n * @export\n * @class PluginManager\n */\nexport default class PluginManager {\n /**\n *Creates an instance of PluginManager.\n * @memberof PluginManager\n */\n constructor({ plugins = [] }) {\n this.client = new Bellhop();\n this.preloading = true;\n // @ts-ignore\n this.client.hidden = this.client.receive.bind(this.client);\n // @ts-ignore\n this.client.hiddenSend = this.client.send.bind(this.client);\n this.client.receive = function (event) {\n this.hidden(event);\n }.bind(this.client);\n this.client.send = function (event, data) {\n this.hiddenSend(event, data);\n }.bind(this.client);\n\n this.plugins = plugins;\n }\n\n /**\n *\n *\n * @returns\n * @memberof PluginManager\n */\n setupPlugins() {\n const preloads = [];\n for (let i = 0, l = this.plugins.length; i < l; i++) {\n if (!this.plugins[i].preload) {\n continue;\n }\n\n preloads.push(\n this.plugins[i].preload(this).catch(function preloadFail(error) {\n this.plugins[i].preloadFailed = true;\n console.warn(this.plugins[i].name, 'Preload Failed:', error);\n }.bind(this))\n );\n }\n\n // ~wait for all preloads to resolve\n return Promise.all(preloads).then(() => {\n // Remove plugins that fail to load.\n this.plugins = this.plugins.filter(\n plugin => plugin.preloadFailed !== true\n );\n\n this.preloading = false;\n this.client.trigger('preloadsFinished');\n\n //init\n this.plugins.forEach(plugin => {\n if (!plugin.init) {\n return;\n }\n\n plugin.init(this);\n });\n\n //start\n this.plugins.forEach(plugin => {\n if (!plugin.start) {\n return;\n }\n plugin.start(this);\n });\n });\n }\n\n /**\n * Registers a plugin to be used by PluginManagers, sorting it by priority order.\n * @param {BasePlugin} plugin The plugin to register.\n */\n uses(plugin) {\n this.plugins.push(plugin);\n }\n\n /**\n * Finds a plugin by name.\n * @param {string} name The name of the plugin.\n * @returns {BasePlugin}\n */\n getPlugin(name) {\n return this.plugins.find(function (plugin) {\n return plugin.name === name;\n });\n }\n}\n","import 'whatwg-fetch';\n\nimport { Features } from './Features';\nimport PluginManager from './PluginManager';\n// @ts-ignore\nimport { version } from '../package.json';\n\n/**\n * The application container\n * @class Container\n * @property {Bellhop} client Communication layer between the container and application\n * @property {boolean} loaded Check to see if a application is loaded\n * @property {boolean} loading Check to see if a application is loading\n * @property {object} release The current release data\n * @property {HTMLIFrameElement} iframe The DOM object for the iframe\n * @static @property {string} version The current version of the library\n */\nexport class Container extends PluginManager {\n /**\n *Creates an instance of Container.\n * @param {object} config\n * @param {string | HTMLIFrameElement} iframeOrSelector\n * @param {Array | null} [config.plugins]\n * @param {object | null} [config.context={}]\n * @memberof Container\n */\n constructor(iframeOrSelector, { plugins, context = {} } = {}) {\n super({ plugins });\n\n this.iframe = iframeOrSelector instanceof HTMLIFrameElement ? iframeOrSelector : document.querySelector(iframeOrSelector);\n this.iframe.style.backgroundColor = 'black';\n\n if (null === this.iframe) {\n throw new Error('No iframe was found with the provided selector');\n }\n\n this.loaded = false;\n this.loading = false;\n this.release = null;\n\n // context object that plugins can pick up on\n this._context = context;\n\n this.onLoading = this.onLoading.bind(this);\n this.onLoadDone = this.onLoadDone.bind(this);\n this.onLoadDone = this.onLoadDone.bind(this);\n this.onEndGame = this.onEndGame.bind(this);\n this.onLocalError = this.onLocalError.bind(this);\n\n this.initClient();\n this.setupPlugins();\n }\n\n /**\n * The game is starting to load\n * @memberof Container\n */\n onLoading() {\n this.client.trigger('opening');\n }\n\n /**\n * Reset the mutes for audio and captions\n * @memberof Container\n */\n onLoadDone() {\n this.loading = false;\n this.loaded = true;\n this.iframe.classList.remove('loading');\n\n this.client.trigger('opened');\n }\n\n /**\n * The application ended and destroyed itself\n * @memberof Container\n */\n onEndGame() {\n this.reset();\n }\n /**\n * Handle the local errors\n * @method onLocalError\n * @private\n * @param {Event} $event Bellhop event\n */\n onLocalError($event) {\n console.error('SpringRoll Container error: ', $event, new Error().stack);\n }\n\n /**\n * Reset all the buttons back to their original setting\n * and clear the iframe.\n * @memberof Container\n */\n reset() {\n const wasLoaded = this.loaded || this.loading;\n\n if (wasLoaded) {\n this.client.trigger('closed');\n }\n\n // Reset state\n this.loaded = false;\n this.loading = false;\n\n // Clear the iframe src location\n this.iframe.setAttribute('src', '');\n this.iframe.classList.remove('loading');\n }\n\n /**\n * Set up communication layer between site and application.\n * May be called from subclasses if they create/destroy Bellhop instances.\n * @memberof Container\n */\n initClient() {\n //Handle bellhop events coming from the application\n this.client.on('loading', this.onLoading);\n this.client.on('loaded', this.onLoadDone);\n this.client.on('loadDone', this.onLoadDone);\n this.client.on('endGame', this.onEndGame);\n this.client.on('localError', this.onLocalError);\n // @ts-ignore\n this.client.connect(this.iframe);\n }\n\n /**\n * If there was an error when closing, reset the container\n * @memberof Container\n */\n _onCloseFailed() {\n this.reset(); // force close the app\n }\n\n /**\n * Open a application or path\n * @param {string} userPath The full path to the application to load\n * @param {object} [userOptions] The open options\n * @param {boolean} [userOptions.singlePlay=false] If we should play in single play mode\n * @param {object | null} [userOptions.playOptions=null] The optional play options\n * @memberof Container\n */\n _internalOpen(userPath, { singlePlay = false, playOptions = null } = {}) {\n if (this.preloading) {\n // const holdPath = userPath;\n // const userOptions = { singlePlay, playOptions };\n this.client.on('preloadsFinished', () => {\n this._internalOpen(userPath, { singlePlay, playOptions });\n });\n\n return;\n }\n\n const options = { singlePlay, playOptions };\n this.reset();\n\n this.loading = true;\n this.initClient();\n\n const err = Features.basic();\n if (err) {\n console.error('ERROR:', err);\n this.client.trigger('unsupported');\n }\n\n let path = userPath;\n if (null !== options.playOptions) {\n const playOptionsQueryString =\n 'playOptions=' +\n encodeURIComponent(JSON.stringify(options.playOptions));\n\n path =\n -1 === userPath.indexOf('?')\n ? `${userPath}?${playOptionsQueryString}`\n : `${userPath}&${playOptionsQueryString}`;\n }\n\n this.iframe.classList.add('loading');\n this.iframe.setAttribute('src', path);\n\n this.client.respond('singlePlay', singlePlay);\n this.client.respond('playOptions', playOptions);\n this.client.trigger('open');\n }\n\n /**\n *\n *\n * @param {string} path\n * @param {object} [options={}]\n * @memberof Container\n */\n openPath(path, options = {}) {\n // This should be deprecated, support for old function signature\n if ('object' !== typeof options) {\n console.warn(\n 'SpringRoll Container.openPath was passed a invalid options parameter. Using default parameters instead'\n );\n options = {};\n }\n\n this._internalOpen(\n path,\n Object.assign(\n {\n singlePlay: false,\n playOptions: {}\n },\n options\n )\n );\n }\n\n /**\n * Open application based on an API Call to SpringRoll Connect\n * @param {string} api\n * @param {object} options\n * @param {string} [options.query='']\n * @param {boolean} [options.singlePlay=false]\n * @param {null | object} [options.playOptions=null]\n * @returns {Promise}\n * @memberof Container\n */\n async openRemote(\n api,\n { query = '', singlePlay = false, playOptions = null } = {}\n ) {\n this.release = null;\n\n const response = await fetch(api, {\n headers: {\n 'Content-Type': 'application/json'\n }\n });\n\n const json = await response.json();\n\n // if SpringRollConnect denoted that something failed, send that error back\n if (!json.success) {\n throw new Error(json.error);\n }\n\n // If the browser doesn't support the capabilities requested by this game, also fail.\n const release = json.data;\n const error = Features.test(release.capabilities);\n if (error) {\n this.client.trigger('unsupported', { error });\n throw new Error(error);\n }\n\n // otherwise, open the game\n this.release = release;\n this._internalOpen(release.url + query, {\n singlePlay,\n playOptions\n });\n }\n\n /**\n * Destroy and don't use after this\n * @memberof Container\n */\n destroy() {\n this.reset();\n\n this.iframe = null;\n this.options = null;\n this.release = null;\n }\n\n /**\n * Tell the application to start closing\n * @memberof Container\n */\n close() {\n if (this.loading || this.loaded) {\n this.client.trigger('close');\n // Start the close\n this.client.send('close');\n } else {\n this.reset();\n }\n }\n\n /**\n * the current _context object\n * @readonly\n * @memberof Container\n * @return {object}\n */\n get context() {\n return this._context;\n }\n\n /**\n * sets _context object to new object\n * @param {object} context\n * @memberof Container\n */\n set context(newContext) {\n if (typeof newContext !== 'object') {\n console.error('[SpringRollContainer] Context: new context provided is not an object');\n return;\n }\n this._context = newContext;\n }\n\n\n\n /**\n * The current version of SpringRollContainer\n * @readonly\n * @static\n * @return {string}\n * @memberof Container\n */\n static get version() {\n return version;\n }\n}\n","/**\n * Handle the page visiblity change, if supported. Application uses one of these to\n * monitor page visibility. It is suggested that you listen to `pause`, `paused`,\n * or `resumed` events on the Application instead of using one of these yourself.\n *\n * @export\n * @class PageVisibility\n * @constructor\n * @param {Function} onFocus Callback when the page becomes visible\n * @param {Function} onBlur Callback when the page loses visibility\n */\nexport class PageVisibility {\n /**\n *Creates an instance of PageVisibility.\n * @param { function } [onFocus=function() {}]\n * @param { function } [onBlur=function() {}]\n * @memberof PageVisibility\n */\n constructor(onFocus = function() {}, onBlur = function() {}) {\n this._onFocus = onFocus;\n this._onBlur = onBlur;\n this.onFocus = function(e) {\n if (this.enabled) {\n this._onFocus(e);\n }\n }.bind(this);\n this.onBlur = function(e) {\n if (this.enabled) {\n this._onBlur(e);\n }\n }.bind(this);\n this._enabled = false;\n this.enabled = true;\n\n this.onToggle = this.onToggle.bind(this);\n }\n\n /**\n * Disable the detection\n * @memberof PageVisibility\n */\n destroy() {\n this.enabled = false;\n this.onToggle = null;\n this.onFocus = null;\n this.onBlur = null;\n }\n\n /**\n * The visibility toggle listener function\n * @param {Event} $event;\n * @memberof PageVisibility\n */\n onToggle($event) {\n if (this.enabled) {\n document.hidden ? this.onBlur($event) : this.onFocus($event);\n }\n }\n\n /**\n * If this object is enabled.\n * @returns {boolean}\n * @memberof PageVisibility\n */\n get enabled() {\n return this._enabled;\n }\n\n /**\n * Sets the state of the object\n * @memberof PageVisibility\n */\n set enabled(enable) {\n this._enabled = enable;\n\n document.removeEventListener('visibilitychange', this.onToggle, false);\n window.removeEventListener('blur', this.onBlur, false);\n window.removeEventListener('focus', this.onFocus, false);\n window.removeEventListener('pagehide', this.onBlur, false);\n window.removeEventListener('pageshow', this.onFocus, false);\n window.removeEventListener('visibilitychange', this.onToggle, false);\n\n if (this._enabled) {\n document.addEventListener('visibilitychange', this.onToggle, false);\n window.addEventListener('blur', this.onBlur, false);\n window.addEventListener('focus', this.onFocus, false);\n window.addEventListener('pagehide', this.onBlur, false);\n window.addEventListener('pageshow', this.onFocus, false);\n window.addEventListener('visibilitychange', this.onToggle, false);\n }\n }\n}\n","'use strict';\nvar $ = require('../internals/export');\nvar $includes = require('../internals/array-includes').includes;\nvar fails = require('../internals/fails');\nvar addToUnscopables = require('../internals/add-to-unscopables');\n\n// FF99+ bug\nvar BROKEN_ON_SPARSE = fails(function () {\n // eslint-disable-next-line es/no-array-prototype-includes -- detection\n return !Array(1).includes();\n});\n\n// `Array.prototype.includes` method\n// https://tc39.es/ecma262/#sec-array.prototype.includes\n$({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {\n includes: function includes(el /* , fromIndex = 0 */) {\n return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables('includes');\n","// a string of all valid unicode whitespaces\nmodule.exports = '\\u0009\\u000A\\u000B\\u000C\\u000D\\u0020\\u00A0\\u1680\\u2000\\u2001\\u2002' +\n '\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF';\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar toString = require('../internals/to-string');\nvar whitespaces = require('../internals/whitespaces');\n\nvar replace = uncurryThis(''.replace);\nvar ltrim = RegExp('^[' + whitespaces + ']+');\nvar rtrim = RegExp('(^|[^' + whitespaces + '])[' + whitespaces + ']+$');\n\n// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation\nvar createMethod = function (TYPE) {\n return function ($this) {\n var string = toString(requireObjectCoercible($this));\n if (TYPE & 1) string = replace(string, ltrim, '');\n if (TYPE & 2) string = replace(string, rtrim, '$1');\n return string;\n };\n};\n\nmodule.exports = {\n // `String.prototype.{ trimLeft, trimStart }` methods\n // https://tc39.es/ecma262/#sec-string.prototype.trimstart\n start: createMethod(1),\n // `String.prototype.{ trimRight, trimEnd }` methods\n // https://tc39.es/ecma262/#sec-string.prototype.trimend\n end: createMethod(2),\n // `String.prototype.trim` method\n // https://tc39.es/ecma262/#sec-string.prototype.trim\n trim: createMethod(3)\n};\n","var PROPER_FUNCTION_NAME = require('../internals/function-name').PROPER;\nvar fails = require('../internals/fails');\nvar whitespaces = require('../internals/whitespaces');\n\nvar non = '\\u200B\\u0085\\u180E';\n\n// check that a method works with the correct list\n// of whitespaces and has a correct name\nmodule.exports = function (METHOD_NAME) {\n return fails(function () {\n return !!whitespaces[METHOD_NAME]()\n || non[METHOD_NAME]() !== non\n || (PROPER_FUNCTION_NAME && whitespaces[METHOD_NAME].name !== METHOD_NAME);\n });\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar $trim = require('../internals/string-trim').trim;\nvar forcedStringTrimMethod = require('../internals/string-trim-forced');\n\n// `String.prototype.trim` method\n// https://tc39.es/ecma262/#sec-string.prototype.trim\n$({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {\n trim: function trim() {\n return $trim(this);\n }\n});\n","var call = require('../internals/function-call');\nvar hasOwn = require('../internals/has-own-property');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar regExpFlags = require('../internals/regexp-flags');\n\nvar RegExpPrototype = RegExp.prototype;\n\nmodule.exports = function (R) {\n var flags = R.flags;\n return flags === undefined && !('flags' in RegExpPrototype) && !hasOwn(R, 'flags') && isPrototypeOf(RegExpPrototype, R)\n ? call(regExpFlags, R) : flags;\n};\n","'use strict';\nvar PROPER_FUNCTION_NAME = require('../internals/function-name').PROPER;\nvar defineBuiltIn = require('../internals/define-built-in');\nvar anObject = require('../internals/an-object');\nvar $toString = require('../internals/to-string');\nvar fails = require('../internals/fails');\nvar getRegExpFlags = require('../internals/regexp-get-flags');\n\nvar TO_STRING = 'toString';\nvar RegExpPrototype = RegExp.prototype;\nvar nativeToString = RegExpPrototype[TO_STRING];\n\nvar NOT_GENERIC = fails(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });\n// FF44- RegExp#toString has a wrong name\nvar INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name != TO_STRING;\n\n// `RegExp.prototype.toString` method\n// https://tc39.es/ecma262/#sec-regexp.prototype.tostring\nif (NOT_GENERIC || INCORRECT_NAME) {\n defineBuiltIn(RegExp.prototype, TO_STRING, function toString() {\n var R = anObject(this);\n var pattern = $toString(R.source);\n var flags = $toString(getRegExpFlags(R));\n return '/' + pattern + '/' + flags;\n }, { unsafe: true });\n}\n","/**\n * The SavedData functions use localStorage and sessionStorage, with a cookie fallback.\n *\n * @class SavedData\n */\nexport class SavedData {\n\n /**\n * Constructor for IndexedDB work\n */\n constructor(dbName = '') {\n this.db = null;\n this.dbName = dbName;\n }\n /**\n * Remove a saved variable by name.\n * @method remove\n * @static\n * @param {String} name The name of the value to remove\n */\n static remove(name) {\n localStorage.removeItem(name);\n sessionStorage.removeItem(name);\n }\n\n /**\n * Save a variable.\n * @method write\n * @static\n * @param {string} name The name of the value to save\n * @param {string} value The value to save. This will be run through JSON.stringify().\n * @param {boolean} [tempOnly=false] If the value should be saved only in the current browser session.\n */\n static write(name, value, tempOnly = false) {\n\n return tempOnly\n ? sessionStorage.setItem(\n name,\n JSON.stringify('function' === typeof value ? value() : value)\n )\n : localStorage.setItem(\n name,\n JSON.stringify('function' === typeof value ? value() : value)\n );\n }\n\n /**\n * Read the value of a saved variable\n * @method read\n * @static\n * @param {String} name The name of the variable\n * @return {*} The value (run through `JSON.parse()`) or null if it doesn't exist\n */\n static read(name) {\n const value = localStorage.getItem(name) || sessionStorage.getItem(name);\n\n if ('string' === typeof value) {\n try {\n return JSON.parse(value);\n } catch (err) {\n return value;\n }\n } else {\n return value;\n }\n }\n\n /**\n * Open a connection with the IDB Database and optionally add or delete\n * Indexes and stores\n *\n * @param {string} dbName The name of your IndexedDB database\n * @param {string} dbVersion The version number of the database. Additions and deletions will be ignored if lower than current version number\n * @param {JSON} additions Any additions to the structure of the database\n * @param {array} additions.stores Any stores to be added into the database syntax: {storeName: '[name]', options: {[optionally add options]}}\n * @param {array} additions.indexes Any Indexes to be added to the database syntax: {storeName: '[name]', options: {[optionally add options]}}\n */\n IDBOpen( dbName, dbVersion = null, additions = {}, deletions = {}, callback ) {\n const request = dbVersion ? indexedDB.open(dbName, dbVersion) : indexedDB.open(dbName);\n\n request.onsuccess = e => {\n // Database successfully opened. This will run along with onupgradeneeded\n this.db = e.target.result;\n\n if (this.db.version == dbVersion | dbVersion == null) {\n callback({result: 'Success: IDBOpen', success: true});\n }\n };\n\n request.onerror = () => {\n callback({result: request.error.toString(), success: false});\n };\n\n // on upgrade needed fires only if the dbVersion is higher than the current version number\n request.onupgradeneeded = e => {\n // Ensure the proper database object is stored\n this.db = e.target.result;\n\n if (additions != null) {\n if (additions.stores) {\n additions.stores.forEach(store => {\n this.db.createObjectStore(store.storeName, store.options);\n });\n }\n if (additions.indexes != null) {\n additions.indexes.forEach(index => {\n // Add indexes last to avoid adding an index to a store that has yet to be created\n // Open a transaction returning a store object\n const storeObject = request.transaction.objectStore(index.storeName);\n storeObject.createIndex(index.indexName, index.keyPath, index.options);\n });\n }\n }\n\n if (deletions != null) {\n if (deletions.indexes != null) {\n // delete indexes first to avoid deleting an index to a store that has already to been deleted\n deletions.indexes.forEach((index) => {\n // Open a transaction returning a store object\n const storeObject = request.transaction.objectStore(index.storeName);\n storeObject.deleteIndex(index.indexName);\n });\n }\n if (deletions.stores) {\n deletions.stores.forEach((store) => {\n this.db.deleteObjectStore(store.storeName);\n });\n }\n }\n callback({result: 'Success: IDBOpen onupgradeneeded ran', success: true});\n };\n }\n\n /**\n * Delete a database and all records, stores, and indexes associated\n * @param {string} dbName Name of the database to delete\n * @param {object} options Optionally pass in options\n * @param {function} callback The callback to be run on success or error. One value will be passed into this function\n */\n IDBDeleteDB(dbName, options = null, callback = {}) {\n const request = options != null ? indexedDB.deleteDatabase(dbName, options): indexedDB.deleteDatabase(dbName);\n\n request.onsuccess = (e) => {\n callback({result: 'Success: Database Deleted, returned: ' + e.result, success: true});\n };\n request.onerror = () => {\n callback({result: request.error.toString(), success: false});\n };\n\n\n }\n\n /**\n * Add a record to a given store\n * @param {string} storeName The name of the store from which the record will be updated\n * @param {string} key the key of the record to be updated\n * @param {string} value The value for the record with the given key to be updated\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBAdd(storeName, value, key, callback) {\n if ( !this.db && this.dbName != '') {\n this.IDBOpen(this.dbName);\n }\n\n const tx = this.db.transaction(storeName, 'readwrite');\n tx.onerror = () => callback({result: tx.error != null ? tx.error.toString() : 'Aborted: No error given, was the record already added?', success: false});\n tx.onabort = () => callback({result: tx.error != null ? tx.error.toString() : 'Aborted: No error given, was the record already added?', success: false});\n\n tx.oncomplete = () => callback({result: 'Success: Record Added', success: true});\n const store = tx.objectStore(storeName);\n store.add(value, key);\n }\n\n /**\n * Update a record in a given store\n * @param {string} storeName The name of the store from which the record will be updated\n * @param {string} key the key of the record to be updated\n * @param {string | object} value The altered object to be updated from the given store\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBUpdate (storeName, key, value, callback) {\n if ( !this.db && this.dbName != '') {\n this.IDBOpen(this.dbName);\n }\n\n const tx = this.db.transaction(storeName, 'readwrite');\n const store = tx.objectStore(storeName);\n\n const updateRequest = store.put(value, key);\n\n updateRequest.onsuccess = () => {\n callback({result: 'Success: Record Updated', success: true});\n };\n\n updateRequest.onerror = () => callback({result: updateRequest.error.toString(), success: false});\n }\n\n /**\n * Delete a given record within a given store\n * @param {string} storeName The name of the store from which the record will be removed\n * @param {string} key the key of the record to be removed\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBRemove(storeName, key, callback) {\n if ( !this.db && this.dbName != '') {\n this.IDBOpen(this.dbName);\n }\n\n const tx = this.db.transaction(storeName, 'readwrite');\n tx.onerror = () => callback({result: this.db.error.toString(), success: false});\n const store = tx.objectStore(storeName);\n store.delete(key);\n\n tx.oncomplete = () => callback({result: 'Removed Successfully', success: true});\n\n }\n\n /**\n * Return a record from a given store with a given key\n * @param {string} storeName the name of the store to read from\n * @param {string} key The key for the record in the given store\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBRead(storeName, key, callback) {\n // Open transaction with a store\n const tx = this.db.transaction(storeName, 'readonly');\n // Get the store object from the transaction\n const store = tx.objectStore(storeName);\n\n tx.onerror = () => callback({result: this.db.error.toString(), success: false});\n\n const readRequest = store.get(key);\n\n readRequest.onsuccess = () => {\n callback({result: readRequest.result, success: readRequest.result != undefined ? true : false});\n };\n\n }\n\n /**\n * Get all keys with given index\n * @param {string} storeName the name of the store to be read from\n * @param {string} indexName the name of the index to be read from\n * @param {string} query Optionally give a keyRange of records to return\n * @param {string} count Optionally give a max limit on records to be returned\n * @param {function} callback The method to call on success or failure. A single value will be passed in as a parameter\n */\n IDBGetIndexKeys (storeName, indexName, query = null, count = null, callback = {}) {\n // Open transaction with a store\n const tx = this.db.transaction(storeName, 'readonly');\n // Get the store object from the transaction\n const store = tx.objectStore(storeName);\n\n let index;\n\n tx.onerror = () => callback({result: this.db.error.toString(), success: false});\n\n if (query && count) {\n index = store.index(indexName, query, count);\n } else if (query) {\n index = store.index(indexName, query);\n } else {\n index = store.index(indexName);\n }\n\n const getAllKeysRequest = index.getAllKeys();\n\n\n getAllKeysRequest.onsuccess = function(e) {\n callback({result : e.result, success: true});\n };\n }\n\n /**\n * Get all records from a store\n * @param {string} storeName The store to get all records from\n * @param {integer} count Optionally the count of records to return\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBReadAll(storeName, count, callback) {\n // Open transaction with a store\n const tx = this.db.transaction(storeName, 'readonly');\n // Get the store object from the transaction\n const store = tx.objectStore(storeName);\n\n const readRequest = count != null ? store.getAll(null, count) : store.getAll();\n\n // const readRequest = store.getAll();\n\n tx.onerror = () => callback({result: tx.error.toString(), success: false});\n\n\n readRequest.onsuccess = () => {\n callback({result: readRequest.result, success: readRequest.result != undefined ? true : false});\n };\n }\n\n /**\n * Get the version number of a given database. This will create a database if it doesn't exist.\n * Do not call this after opening a connection with the database\n * @param {string} dbName The name of the database for which the version will be returned\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBGetVersion(dbName, callback) {\n // Open the database\n const dBOpenRequest = window.indexedDB.open(dbName);\n\n // these two event handlers act on the database\n // being opened. successfully, or not\n dBOpenRequest.onerror = function() {\n callback({result: dBOpenRequest.error.toString(), success: false});\n };\n\n dBOpenRequest.onsuccess = function() {\n const db = dBOpenRequest.result;\n callback({result: db.version, success: true});\n };\n }\n\n /**\n * Closes the connection to the database if open\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBClose(callback) {\n if ( this.db ) {\n this.db.close();\n callback({result: 'Success: Closed Database Connection', success: true});\n }\n }\n\n}\n","/* eslint-disable no-unused-vars */\nimport { SavedData } from '../SavedData';\nimport { Container } from '../Container';\n\n/**\n *\n *\n * @export\n * @class BasePlugin\n * @property {Bellhop} client\n * @property {string} name\n */\nexport class BasePlugin {\n /**\n *Creates an instance of BasePlugin.\n * @param {string} name\n * @memberof BasePlugin\n */\n constructor(name) {\n this.name = name;\n this.client = null;\n }\n\n /**\n *\n * @param {Container} [container]\n * @memberof BasePlugin\n * @returns {Promise}\n */\n async preload({ client }) {\n this.client = client;\n }\n\n /**\n *\n * @memberof BasePlugin\n */\n start() {\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * @param {Container} [_]\n * @memberof BasePlugin\n */\n init(_) { }\n\n /**\n *\n *\n * @param {string} prop\n * @param {any} value\n * @param {Boolean} disableSend\n * @memberof BasePlugin\n */\n sendProperty(prop, value, disableSend = false) {\n SavedData.write(prop, value);\n if (disableSend) { return; }\n this.client.send(prop, value);\n }\n\n\n /**\n *\n * @param {Container} [_]\n * @memberof BasePlugin\n */\n sendAllProperties(_) { }\n\n /**\n *\n * @param {string} warningText\n * @memberof BasePlugin\n */\n warn(warningText) {\n console.warn(`[SpringRollContainer] ${this.name}: ${warningText}`);\n }\n}\n","/* eslint-disable no-unused-vars */\nimport { BasePlugin } from './BasePlugin';\nimport { Container } from '../Container';\n\n/**\n *\n *\n * @export\n * @class ButtonPlugin\n * @extends {BasePlugin}\n */\nexport class ButtonPlugin extends BasePlugin {\n /**\n *Creates an instance of ButtonPlugin.\n * @param {string} name\n *\n * @memberof ButtonPlugin\n */\n constructor(name) {\n super(name);\n this.sendMutes = false;\n }\n\n /**\n * @memberof ButtonPlugin\n * @param {Container} [container]\n */\n init(container) {\n // eslint-disable-line no-unused-vars\n this.sendMutes = true;\n }\n\n /**\n *\n * Applies the disabled class to the provided element\n * @param {HTMLButtonElement | Element} button\n * @memberof ButtonPlugin\n */\n _disableButton(button) {\n if (button instanceof HTMLButtonElement) {\n button.classList.remove('enabled');\n button.classList.add('disabled');\n }\n }\n\n /**\n *\n *\n * @memberof ButtonPlugin\n */\n reset() {\n this.sendMutes = false;\n }\n\n /**\n *\n *\n * @param {string} prop\n * @param {Element} button\n * @param {Boolean} muted\n * @param {Boolean} disableSend\n * @memberof ButtonPlugin\n */\n _setMuteProp(prop, button, muted, disableSend = false) {\n if (Array.isArray(button)) {\n button.forEach(b => this.changeMutedState(b, muted));\n } else {\n this.changeMutedState(button, muted);\n }\n\n this.sendProperty(prop, muted, disableSend);\n }\n\n /**\n *\n *\n * @param {Element} button\n * @param {Boolean} muted\n * @returns\n * @memberof ButtonPlugin\n */\n changeMutedState(button, muted = false) {\n //most times button will be a Button class rather than an HTMLElement\n //But just in case the Button ui-element is not being used\n const htmlButton = button.button ? button.button : button;\n\n if (!(htmlButton instanceof HTMLElement)) {\n return;\n }\n\n htmlButton.classList.remove('unmuted');\n htmlButton.classList.remove('muted');\n htmlButton.classList.add(muted ? 'muted' : 'unmuted');\n }\n}\n","var isObject = require('../internals/is-object');\nvar classof = require('../internals/classof-raw');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar MATCH = wellKnownSymbol('match');\n\n// `IsRegExp` abstract operation\n// https://tc39.es/ecma262/#sec-isregexp\nmodule.exports = function (it) {\n var isRegExp;\n return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof(it) == 'RegExp');\n};\n","var isRegExp = require('../internals/is-regexp');\n\nvar $TypeError = TypeError;\n\nmodule.exports = function (it) {\n if (isRegExp(it)) {\n throw $TypeError(\"The method doesn't accept regular expressions\");\n } return it;\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar MATCH = wellKnownSymbol('match');\n\nmodule.exports = function (METHOD_NAME) {\n var regexp = /./;\n try {\n '/./'[METHOD_NAME](regexp);\n } catch (error1) {\n try {\n regexp[MATCH] = false;\n return '/./'[METHOD_NAME](regexp);\n } catch (error2) { /* empty */ }\n } return false;\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar notARegExp = require('../internals/not-a-regexp');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar toString = require('../internals/to-string');\nvar correctIsRegExpLogic = require('../internals/correct-is-regexp-logic');\n\nvar stringIndexOf = uncurryThis(''.indexOf);\n\n// `String.prototype.includes` method\n// https://tc39.es/ecma262/#sec-string.prototype.includes\n$({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {\n includes: function includes(searchString /* , position = 0 */) {\n return !!~stringIndexOf(\n toString(requireObjectCoercible(this)),\n toString(notARegExp(searchString)),\n arguments.length > 1 ? arguments[1] : undefined\n );\n }\n});\n","var toAbsoluteIndex = require('../internals/to-absolute-index');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar createProperty = require('../internals/create-property');\n\nvar $Array = Array;\nvar max = Math.max;\n\nmodule.exports = function (O, start, end) {\n var length = lengthOfArrayLike(O);\n var k = toAbsoluteIndex(start, length);\n var fin = toAbsoluteIndex(end === undefined ? length : end, length);\n var result = $Array(max(fin - k, 0));\n for (var n = 0; k < fin; k++, n++) createProperty(result, n, O[k]);\n result.length = n;\n return result;\n};\n","/* eslint-disable es/no-object-getownpropertynames -- safe */\nvar classof = require('../internals/classof-raw');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar $getOwnPropertyNames = require('../internals/object-get-own-property-names').f;\nvar arraySlice = require('../internals/array-slice-simple');\n\nvar windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames\n ? Object.getOwnPropertyNames(window) : [];\n\nvar getWindowNames = function (it) {\n try {\n return $getOwnPropertyNames(it);\n } catch (error) {\n return arraySlice(windowNames);\n }\n};\n\n// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\nmodule.exports.f = function getOwnPropertyNames(it) {\n return windowNames && classof(it) == 'Window'\n ? getWindowNames(it)\n : $getOwnPropertyNames(toIndexedObject(it));\n};\n","// FF26- bug: ArrayBuffers are non-extensible, but Object.isExtensible does not report it\nvar fails = require('../internals/fails');\n\nmodule.exports = fails(function () {\n if (typeof ArrayBuffer == 'function') {\n var buffer = new ArrayBuffer(8);\n // eslint-disable-next-line es/no-object-isextensible, es/no-object-defineproperty -- safe\n if (Object.isExtensible(buffer)) Object.defineProperty(buffer, 'a', { value: 8 });\n }\n});\n","var fails = require('../internals/fails');\nvar isObject = require('../internals/is-object');\nvar classof = require('../internals/classof-raw');\nvar ARRAY_BUFFER_NON_EXTENSIBLE = require('../internals/array-buffer-non-extensible');\n\n// eslint-disable-next-line es/no-object-isextensible -- safe\nvar $isExtensible = Object.isExtensible;\nvar FAILS_ON_PRIMITIVES = fails(function () { $isExtensible(1); });\n\n// `Object.isExtensible` method\n// https://tc39.es/ecma262/#sec-object.isextensible\nmodule.exports = (FAILS_ON_PRIMITIVES || ARRAY_BUFFER_NON_EXTENSIBLE) ? function isExtensible(it) {\n if (!isObject(it)) return false;\n if (ARRAY_BUFFER_NON_EXTENSIBLE && classof(it) == 'ArrayBuffer') return false;\n return $isExtensible ? $isExtensible(it) : true;\n} : $isExtensible;\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-object-isextensible, es/no-object-preventextensions -- required for testing\n return Object.isExtensible(Object.preventExtensions({}));\n});\n","var $ = require('../internals/export');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar hiddenKeys = require('../internals/hidden-keys');\nvar isObject = require('../internals/is-object');\nvar hasOwn = require('../internals/has-own-property');\nvar defineProperty = require('../internals/object-define-property').f;\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertyNamesExternalModule = require('../internals/object-get-own-property-names-external');\nvar isExtensible = require('../internals/object-is-extensible');\nvar uid = require('../internals/uid');\nvar FREEZING = require('../internals/freezing');\n\nvar REQUIRED = false;\nvar METADATA = uid('meta');\nvar id = 0;\n\nvar setMetadata = function (it) {\n defineProperty(it, METADATA, { value: {\n objectID: 'O' + id++, // object ID\n weakData: {} // weak collections IDs\n } });\n};\n\nvar fastKey = function (it, create) {\n // return a primitive with prefix\n if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n if (!hasOwn(it, METADATA)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return 'F';\n // not necessary to add metadata\n if (!create) return 'E';\n // add missing metadata\n setMetadata(it);\n // return object ID\n } return it[METADATA].objectID;\n};\n\nvar getWeakData = function (it, create) {\n if (!hasOwn(it, METADATA)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return true;\n // not necessary to add metadata\n if (!create) return false;\n // add missing metadata\n setMetadata(it);\n // return the store of weak collections IDs\n } return it[METADATA].weakData;\n};\n\n// add metadata on freeze-family methods calling\nvar onFreeze = function (it) {\n if (FREEZING && REQUIRED && isExtensible(it) && !hasOwn(it, METADATA)) setMetadata(it);\n return it;\n};\n\nvar enable = function () {\n meta.enable = function () { /* empty */ };\n REQUIRED = true;\n var getOwnPropertyNames = getOwnPropertyNamesModule.f;\n var splice = uncurryThis([].splice);\n var test = {};\n test[METADATA] = 1;\n\n // prevent exposing of metadata key\n if (getOwnPropertyNames(test).length) {\n getOwnPropertyNamesModule.f = function (it) {\n var result = getOwnPropertyNames(it);\n for (var i = 0, length = result.length; i < length; i++) {\n if (result[i] === METADATA) {\n splice(result, i, 1);\n break;\n }\n } return result;\n };\n\n $({ target: 'Object', stat: true, forced: true }, {\n getOwnPropertyNames: getOwnPropertyNamesExternalModule.f\n });\n }\n};\n\nvar meta = module.exports = {\n enable: enable,\n fastKey: fastKey,\n getWeakData: getWeakData,\n onFreeze: onFreeze\n};\n\nhiddenKeys[METADATA] = true;\n","var isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\n\n// makes subclassing work correct for wrapped built-ins\nmodule.exports = function ($this, dummy, Wrapper) {\n var NewTarget, NewTargetPrototype;\n if (\n // it can work only with native `setPrototypeOf`\n setPrototypeOf &&\n // we haven't completely correct pre-ES6 way for getting `new.target`, so use this\n isCallable(NewTarget = dummy.constructor) &&\n NewTarget !== Wrapper &&\n isObject(NewTargetPrototype = NewTarget.prototype) &&\n NewTargetPrototype !== Wrapper.prototype\n ) setPrototypeOf($this, NewTargetPrototype);\n return $this;\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar global = require('../internals/global');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar isForced = require('../internals/is-forced');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar InternalMetadataModule = require('../internals/internal-metadata');\nvar iterate = require('../internals/iterate');\nvar anInstance = require('../internals/an-instance');\nvar isCallable = require('../internals/is-callable');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar isObject = require('../internals/is-object');\nvar fails = require('../internals/fails');\nvar checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar inheritIfRequired = require('../internals/inherit-if-required');\n\nmodule.exports = function (CONSTRUCTOR_NAME, wrapper, common) {\n var IS_MAP = CONSTRUCTOR_NAME.indexOf('Map') !== -1;\n var IS_WEAK = CONSTRUCTOR_NAME.indexOf('Weak') !== -1;\n var ADDER = IS_MAP ? 'set' : 'add';\n var NativeConstructor = global[CONSTRUCTOR_NAME];\n var NativePrototype = NativeConstructor && NativeConstructor.prototype;\n var Constructor = NativeConstructor;\n var exported = {};\n\n var fixMethod = function (KEY) {\n var uncurriedNativeMethod = uncurryThis(NativePrototype[KEY]);\n defineBuiltIn(NativePrototype, KEY,\n KEY == 'add' ? function add(value) {\n uncurriedNativeMethod(this, value === 0 ? 0 : value);\n return this;\n } : KEY == 'delete' ? function (key) {\n return IS_WEAK && !isObject(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);\n } : KEY == 'get' ? function get(key) {\n return IS_WEAK && !isObject(key) ? undefined : uncurriedNativeMethod(this, key === 0 ? 0 : key);\n } : KEY == 'has' ? function has(key) {\n return IS_WEAK && !isObject(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);\n } : function set(key, value) {\n uncurriedNativeMethod(this, key === 0 ? 0 : key, value);\n return this;\n }\n );\n };\n\n var REPLACE = isForced(\n CONSTRUCTOR_NAME,\n !isCallable(NativeConstructor) || !(IS_WEAK || NativePrototype.forEach && !fails(function () {\n new NativeConstructor().entries().next();\n }))\n );\n\n if (REPLACE) {\n // create collection constructor\n Constructor = common.getConstructor(wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER);\n InternalMetadataModule.enable();\n } else if (isForced(CONSTRUCTOR_NAME, true)) {\n var instance = new Constructor();\n // early implementations not supports chaining\n var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance;\n // V8 ~ Chromium 40- weak-collections throws on primitives, but should return false\n var THROWS_ON_PRIMITIVES = fails(function () { instance.has(1); });\n // most early implementations doesn't supports iterables, most modern - not close it correctly\n // eslint-disable-next-line no-new -- required for testing\n var ACCEPT_ITERABLES = checkCorrectnessOfIteration(function (iterable) { new NativeConstructor(iterable); });\n // for early implementations -0 and +0 not the same\n var BUGGY_ZERO = !IS_WEAK && fails(function () {\n // V8 ~ Chromium 42- fails only with 5+ elements\n var $instance = new NativeConstructor();\n var index = 5;\n while (index--) $instance[ADDER](index, index);\n return !$instance.has(-0);\n });\n\n if (!ACCEPT_ITERABLES) {\n Constructor = wrapper(function (dummy, iterable) {\n anInstance(dummy, NativePrototype);\n var that = inheritIfRequired(new NativeConstructor(), dummy, Constructor);\n if (!isNullOrUndefined(iterable)) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });\n return that;\n });\n Constructor.prototype = NativePrototype;\n NativePrototype.constructor = Constructor;\n }\n\n if (THROWS_ON_PRIMITIVES || BUGGY_ZERO) {\n fixMethod('delete');\n fixMethod('has');\n IS_MAP && fixMethod('get');\n }\n\n if (BUGGY_ZERO || HASNT_CHAINING) fixMethod(ADDER);\n\n // weak collections should not contains .clear method\n if (IS_WEAK && NativePrototype.clear) delete NativePrototype.clear;\n }\n\n exported[CONSTRUCTOR_NAME] = Constructor;\n $({ global: true, constructor: true, forced: Constructor != NativeConstructor }, exported);\n\n setToStringTag(Constructor, CONSTRUCTOR_NAME);\n\n if (!IS_WEAK) common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP);\n\n return Constructor;\n};\n","var defineBuiltIn = require('../internals/define-built-in');\n\nmodule.exports = function (target, src, options) {\n for (var key in src) defineBuiltIn(target, key, src[key], options);\n return target;\n};\n","'use strict';\nvar create = require('../internals/object-create');\nvar defineBuiltInAccessor = require('../internals/define-built-in-accessor');\nvar defineBuiltIns = require('../internals/define-built-ins');\nvar bind = require('../internals/function-bind-context');\nvar anInstance = require('../internals/an-instance');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar iterate = require('../internals/iterate');\nvar defineIterator = require('../internals/iterator-define');\nvar createIterResultObject = require('../internals/create-iter-result-object');\nvar setSpecies = require('../internals/set-species');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar fastKey = require('../internals/internal-metadata').fastKey;\nvar InternalStateModule = require('../internals/internal-state');\n\nvar setInternalState = InternalStateModule.set;\nvar internalStateGetterFor = InternalStateModule.getterFor;\n\nmodule.exports = {\n getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {\n var Constructor = wrapper(function (that, iterable) {\n anInstance(that, Prototype);\n setInternalState(that, {\n type: CONSTRUCTOR_NAME,\n index: create(null),\n first: undefined,\n last: undefined,\n size: 0\n });\n if (!DESCRIPTORS) that.size = 0;\n if (!isNullOrUndefined(iterable)) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });\n });\n\n var Prototype = Constructor.prototype;\n\n var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);\n\n var define = function (that, key, value) {\n var state = getInternalState(that);\n var entry = getEntry(that, key);\n var previous, index;\n // change existing entry\n if (entry) {\n entry.value = value;\n // create new entry\n } else {\n state.last = entry = {\n index: index = fastKey(key, true),\n key: key,\n value: value,\n previous: previous = state.last,\n next: undefined,\n removed: false\n };\n if (!state.first) state.first = entry;\n if (previous) previous.next = entry;\n if (DESCRIPTORS) state.size++;\n else that.size++;\n // add to index\n if (index !== 'F') state.index[index] = entry;\n } return that;\n };\n\n var getEntry = function (that, key) {\n var state = getInternalState(that);\n // fast case\n var index = fastKey(key);\n var entry;\n if (index !== 'F') return state.index[index];\n // frozen object case\n for (entry = state.first; entry; entry = entry.next) {\n if (entry.key == key) return entry;\n }\n };\n\n defineBuiltIns(Prototype, {\n // `{ Map, Set }.prototype.clear()` methods\n // https://tc39.es/ecma262/#sec-map.prototype.clear\n // https://tc39.es/ecma262/#sec-set.prototype.clear\n clear: function clear() {\n var that = this;\n var state = getInternalState(that);\n var data = state.index;\n var entry = state.first;\n while (entry) {\n entry.removed = true;\n if (entry.previous) entry.previous = entry.previous.next = undefined;\n delete data[entry.index];\n entry = entry.next;\n }\n state.first = state.last = undefined;\n if (DESCRIPTORS) state.size = 0;\n else that.size = 0;\n },\n // `{ Map, Set }.prototype.delete(key)` methods\n // https://tc39.es/ecma262/#sec-map.prototype.delete\n // https://tc39.es/ecma262/#sec-set.prototype.delete\n 'delete': function (key) {\n var that = this;\n var state = getInternalState(that);\n var entry = getEntry(that, key);\n if (entry) {\n var next = entry.next;\n var prev = entry.previous;\n delete state.index[entry.index];\n entry.removed = true;\n if (prev) prev.next = next;\n if (next) next.previous = prev;\n if (state.first == entry) state.first = next;\n if (state.last == entry) state.last = prev;\n if (DESCRIPTORS) state.size--;\n else that.size--;\n } return !!entry;\n },\n // `{ Map, Set }.prototype.forEach(callbackfn, thisArg = undefined)` methods\n // https://tc39.es/ecma262/#sec-map.prototype.foreach\n // https://tc39.es/ecma262/#sec-set.prototype.foreach\n forEach: function forEach(callbackfn /* , that = undefined */) {\n var state = getInternalState(this);\n var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n var entry;\n while (entry = entry ? entry.next : state.first) {\n boundFunction(entry.value, entry.key, this);\n // revert to the last existing entry\n while (entry && entry.removed) entry = entry.previous;\n }\n },\n // `{ Map, Set}.prototype.has(key)` methods\n // https://tc39.es/ecma262/#sec-map.prototype.has\n // https://tc39.es/ecma262/#sec-set.prototype.has\n has: function has(key) {\n return !!getEntry(this, key);\n }\n });\n\n defineBuiltIns(Prototype, IS_MAP ? {\n // `Map.prototype.get(key)` method\n // https://tc39.es/ecma262/#sec-map.prototype.get\n get: function get(key) {\n var entry = getEntry(this, key);\n return entry && entry.value;\n },\n // `Map.prototype.set(key, value)` method\n // https://tc39.es/ecma262/#sec-map.prototype.set\n set: function set(key, value) {\n return define(this, key === 0 ? 0 : key, value);\n }\n } : {\n // `Set.prototype.add(value)` method\n // https://tc39.es/ecma262/#sec-set.prototype.add\n add: function add(value) {\n return define(this, value = value === 0 ? 0 : value, value);\n }\n });\n if (DESCRIPTORS) defineBuiltInAccessor(Prototype, 'size', {\n configurable: true,\n get: function () {\n return getInternalState(this).size;\n }\n });\n return Constructor;\n },\n setStrong: function (Constructor, CONSTRUCTOR_NAME, IS_MAP) {\n var ITERATOR_NAME = CONSTRUCTOR_NAME + ' Iterator';\n var getInternalCollectionState = internalStateGetterFor(CONSTRUCTOR_NAME);\n var getInternalIteratorState = internalStateGetterFor(ITERATOR_NAME);\n // `{ Map, Set }.prototype.{ keys, values, entries, @@iterator }()` methods\n // https://tc39.es/ecma262/#sec-map.prototype.entries\n // https://tc39.es/ecma262/#sec-map.prototype.keys\n // https://tc39.es/ecma262/#sec-map.prototype.values\n // https://tc39.es/ecma262/#sec-map.prototype-@@iterator\n // https://tc39.es/ecma262/#sec-set.prototype.entries\n // https://tc39.es/ecma262/#sec-set.prototype.keys\n // https://tc39.es/ecma262/#sec-set.prototype.values\n // https://tc39.es/ecma262/#sec-set.prototype-@@iterator\n defineIterator(Constructor, CONSTRUCTOR_NAME, function (iterated, kind) {\n setInternalState(this, {\n type: ITERATOR_NAME,\n target: iterated,\n state: getInternalCollectionState(iterated),\n kind: kind,\n last: undefined\n });\n }, function () {\n var state = getInternalIteratorState(this);\n var kind = state.kind;\n var entry = state.last;\n // revert to the last existing entry\n while (entry && entry.removed) entry = entry.previous;\n // get next entry\n if (!state.target || !(state.last = entry = entry ? entry.next : state.state.first)) {\n // or finish the iteration\n state.target = undefined;\n return createIterResultObject(undefined, true);\n }\n // return step by kind\n if (kind == 'keys') return createIterResultObject(entry.key, false);\n if (kind == 'values') return createIterResultObject(entry.value, false);\n return createIterResultObject([entry.key, entry.value], false);\n }, IS_MAP ? 'entries' : 'values', !IS_MAP, true);\n\n // `{ Map, Set }.prototype[@@species]` accessors\n // https://tc39.es/ecma262/#sec-get-map-@@species\n // https://tc39.es/ecma262/#sec-get-set-@@species\n setSpecies(CONSTRUCTOR_NAME);\n }\n};\n","'use strict';\nvar collection = require('../internals/collection');\nvar collectionStrong = require('../internals/collection-strong');\n\n// `Set` constructor\n// https://tc39.es/ecma262/#sec-set-objects\ncollection('Set', function (init) {\n return function Set() { return init(this, arguments.length ? arguments[0] : undefined); };\n}, collectionStrong);\n","var $ = require('../internals/export');\nvar toObject = require('../internals/to-object');\nvar nativeKeys = require('../internals/object-keys');\nvar fails = require('../internals/fails');\n\nvar FAILS_ON_PRIMITIVES = fails(function () { nativeKeys(1); });\n\n// `Object.keys` method\n// https://tc39.es/ecma262/#sec-object.keys\n$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {\n keys: function keys(it) {\n return nativeKeys(toObject(it));\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar $map = require('../internals/array-iteration').map;\nvar arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');\n\nvar HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('map');\n\n// `Array.prototype.map` method\n// https://tc39.es/ecma262/#sec-array.prototype.map\n// with adding support of @@species\n$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {\n map: function map(callbackfn /* , thisArg */) {\n return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n","var DESCRIPTORS = require('../internals/descriptors');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar objectKeys = require('../internals/object-keys');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar $propertyIsEnumerable = require('../internals/object-property-is-enumerable').f;\n\nvar propertyIsEnumerable = uncurryThis($propertyIsEnumerable);\nvar push = uncurryThis([].push);\n\n// `Object.{ entries, values }` methods implementation\nvar createMethod = function (TO_ENTRIES) {\n return function (it) {\n var O = toIndexedObject(it);\n var keys = objectKeys(O);\n var length = keys.length;\n var i = 0;\n var result = [];\n var key;\n while (length > i) {\n key = keys[i++];\n if (!DESCRIPTORS || propertyIsEnumerable(O, key)) {\n push(result, TO_ENTRIES ? [key, O[key]] : O[key]);\n }\n }\n return result;\n };\n};\n\nmodule.exports = {\n // `Object.entries` method\n // https://tc39.es/ecma262/#sec-object.entries\n entries: createMethod(true),\n // `Object.values` method\n // https://tc39.es/ecma262/#sec-object.values\n values: createMethod(false)\n};\n","var $ = require('../internals/export');\nvar $values = require('../internals/object-to-array').values;\n\n// `Object.values` method\n// https://tc39.es/ecma262/#sec-object.values\n$({ target: 'Object', stat: true }, {\n values: function values(O) {\n return $values(O);\n }\n});\n","import { BasePlugin } from '../base-plugins/BasePlugin';\n\n/**\n * @export\n * @class RadioGroup\n * @property {string} controlName\n * @property {string} featureName\n * @property {string} radioElements\n * @property {string} defaultValue\n */\nexport class RadioGroup extends BasePlugin {\n /**\n * creates an instance of RadioGroup\n * @constructor\n * @param {string} selector selector string for the radio group\n * @param {string} controlName the name of the control (used for warning logging only)\n * @param {string} [featureName='captionStyles'] the feature name used by Springroll. Defaults to captionStyles\n * @param {string} defaultValue the value attribute of the radio button that should be selected by default\n * @param {string} pluginName name of the plugin that instantiated the RadioGroup. Used for logging warnings\n * @memberof RadioGroupPlugin\n */\n constructor({selector, controlName, featureName = 'captionStyles', defaultValue, pluginName}) {\n super(pluginName);\n this.controlName = controlName;\n this.featureName = featureName;\n this.radioElements = document.querySelectorAll(selector);\n this.defaultValue = defaultValue;\n\n this.radioGroup = {};\n\n if (this.radioElements.length <= 0) {\n this.warn(`${this.controlName} RadioGroup found no HTMLElements with selector: ${selector}`);\n return;\n }\n\n this.radioElements.forEach(radio => {\n if (radio.type !== 'radio') {\n this.warn(`${this.controlName} was provided a non Radio Button element with selector: ${selector}`);\n return;\n }\n radio.value = radio.value.toLowerCase();\n\n this.radioGroup[radio.value] = radio;\n });\n\n if (!this.radioGroup[this.defaultValue]) {\n this.warn(`${this.controlName} RadioGroup for selector: ${selector} does not have a radio button with value ${this.defaultValue} to use as default value. Using first element as default`);\n this.defaultValue = this.radioElements[0].value.toLowerCase();\n }\n\n this.radioGroup[this.defaultValue].checked = true;\n }\n\n /**\n * @param {string[]} valuesArray Array of acceptable values to check against the radio group.\n * @return {boolean}\n * @memberof RadioGroup\n */\n hasOnly(valuesArray) {\n\n for (const key in this.radioGroup) {\n if (!valuesArray.includes(this.radioGroup[key].value)) {\n this.warn(`${this.controlName} radio button value: ${this.radioGroup[key].value} is not an accepted value. Skipping radio group`);\n return false;\n }\n }\n\n return true;\n }\n\n /**\n * @return {boolean}\n * @memberof RadioGroup\n */\n hasDuplicateValues() {\n return this.values.length !== [...new Set(this.values)].length;\n }\n\n /**\n * Adds change listeners to the radio buttons using the given callback function\n * @memberof RadioGroup\n * @param {Function} callBack event to fire on change\n */\n enableRadioEvents(callBack) {\n if (!this.radioGroup.length <= 0) {\n return;\n }\n\n const event = callBack;\n for (const radio in this.radioGroup) {\n this.radioGroup[radio].addEventListener('change', event);\n }\n }\n\n /**\n * removes the event listeners from the RadioGroup\n * @memberof RadioGroup\n * @param {Function} callBack event to fire on change\n */\n disableRadioEvents(callBack) {\n if (!this.radioGroup.length <= 0) {\n return;\n }\n for (const radio in this.radioGroup) {\n this.radioGroup[radio].removeEventListener('change', callBack);\n }\n }\n\n /**\n * enables display of the Radio buttons if the correct feature is present in the features list\n * @memberof RadioGroup\n * @param {object} data Object containing which features are enabled\n */\n displayRadios(data) {\n if (this.radioGroup.length <= 0 && data[this.featureName]) {\n this.warn(`${this.controlName} was not provided a valid input element or selector but '${this.featureName}' was included as a game feature`);\n return;\n }\n\n if (this.radioGroup.length <= 0) {\n return;\n }\n\n if (data[this.featureName]) {\n return;\n }\n\n for (const radio in this.radioGroup) {\n this.radioGroup[radio].style.display = 'none';\n }\n }\n\n /**\n * Reset the radio button states\n * @memberof RadioGroup\n */\n resetState() {\n this.radioGroup[this.defaultValue].checked = true;\n }\n\n /**\n * @readonly\n * @returns {number}\n * @memberof RadioGroup\n */\n get length() {\n return Object.keys(this.radioGroup).length;\n }\n\n /**\n * @readonly\n * @returns {number}\n * @memberof RadioGroup\n */\n get values() {\n return Object.values(this.radioGroup).map(radio => radio.value);\n }\n}\n","import { BasePlugin } from './BasePlugin';\nimport { RadioGroup } from '../ui-elements/RadioGroup';\n\n/**\n *\n *\n * @export\n * @class RadioGroupPlugin\n */\nexport class RadioGroupPlugin extends BasePlugin {\n /**\n *\n *Creates an instance of RadioGroupPlugin.\n * @constructor\n * @memberof RadioGroupPlugin\n * @param {string} name\n */\n constructor(cssSelector, name, {supportedValues, initialValue, controlName, featureName, radioCount}) {\n super(name);\n this.selectors = cssSelector ? cssSelector.split(',') : [];\n this.supportedValues = supportedValues;\n this.initialValue = supportedValues.includes(initialValue) ? initialValue : supportedValues[0];\n this.controlName = controlName;\n this.featureName = featureName;\n this.radioCount = radioCount;\n this.sendAllProperties = this.sendAllProperties.bind(this);\n\n this._currentValue = this.initialValue;\n\n this.radioGroups = this.setUpRadios(this.selectors);\n\n this.radioGroupsLength = this.radioGroups.length;\n }\n\n /**\n * @memberof RadioGroupPlugin\n * @param {string[]} selectors the separated selector strings used to target the radio button groups\n * @returns {RadioGroup[]}\n */\n setUpRadios(selectors) {\n const radioGroups = [];\n\n selectors.forEach((selector) => {\n const radioGroup = new RadioGroup({\n selector: selector.trim(),\n controlName: this.controlName,\n defaultValue: this.initialValue,\n pluginName: this.name,\n featureName: this.featureName\n });\n\n if (radioGroup.length !== this.radioCount) {\n this.warn(`Selector \"${selector}\" did not find exactly ${this.radioCount} radio buttons for ${this.controlName}. Skipping selector`);\n return;\n }\n\n if (!radioGroup.hasOnly(this.supportedValues)) {\n return;\n }\n\n if (radioGroup.hasDuplicateValues()) {\n this.warn(`Duplicate radio button values detected (values: ${radioGroup.values} ). Skipping radio group`);\n return;\n }\n\n radioGroups.push(radioGroup);\n });\n\n return radioGroups;\n }\n\n /**\n * @memberof RadioGroupPlugin\n */\n start() {\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * Sends initial caption properties to the application\n * @memberof RadioGroupPlugin\n */\n sendAllProperties() {\n this.sendProperty(this.featureName, this.property);\n }\n\n /**\n * @memberof RadioGroupPlugin\n * @param {string} newValue\n */\n set currentValue(newValue) {\n if (!this.supportedValues.includes(newValue)) {\n return;\n }\n\n this._currentValue = newValue;\n\n for (let i = 0, l = this.radioGroups.length; i < l; i++) {\n this.radioGroups[i].radioGroup[newValue].checked = true;\n }\n }\n\n /**\n * @memberof RadioGroupPlugin\n * @return {string}\n */\n get currentValue() {\n return this._currentValue;\n }\n\n}\n","var uncurryThis = require('../internals/function-uncurry-this');\n\n// `thisNumberValue` abstract operation\n// https://tc39.es/ecma262/#sec-thisnumbervalue\nmodule.exports = uncurryThis(1.0.valueOf);\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar global = require('../internals/global');\nvar path = require('../internals/path');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar isForced = require('../internals/is-forced');\nvar hasOwn = require('../internals/has-own-property');\nvar inheritIfRequired = require('../internals/inherit-if-required');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar isSymbol = require('../internals/is-symbol');\nvar toPrimitive = require('../internals/to-primitive');\nvar fails = require('../internals/fails');\nvar getOwnPropertyNames = require('../internals/object-get-own-property-names').f;\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar defineProperty = require('../internals/object-define-property').f;\nvar thisNumberValue = require('../internals/this-number-value');\nvar trim = require('../internals/string-trim').trim;\n\nvar NUMBER = 'Number';\nvar NativeNumber = global[NUMBER];\nvar PureNumberNamespace = path[NUMBER];\nvar NumberPrototype = NativeNumber.prototype;\nvar TypeError = global.TypeError;\nvar stringSlice = uncurryThis(''.slice);\nvar charCodeAt = uncurryThis(''.charCodeAt);\n\n// `ToNumeric` abstract operation\n// https://tc39.es/ecma262/#sec-tonumeric\nvar toNumeric = function (value) {\n var primValue = toPrimitive(value, 'number');\n return typeof primValue == 'bigint' ? primValue : toNumber(primValue);\n};\n\n// `ToNumber` abstract operation\n// https://tc39.es/ecma262/#sec-tonumber\nvar toNumber = function (argument) {\n var it = toPrimitive(argument, 'number');\n var first, third, radix, maxCode, digits, length, index, code;\n if (isSymbol(it)) throw TypeError('Cannot convert a Symbol value to a number');\n if (typeof it == 'string' && it.length > 2) {\n it = trim(it);\n first = charCodeAt(it, 0);\n if (first === 43 || first === 45) {\n third = charCodeAt(it, 2);\n if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix\n } else if (first === 48) {\n switch (charCodeAt(it, 1)) {\n case 66: case 98: radix = 2; maxCode = 49; break; // fast equal of /^0b[01]+$/i\n case 79: case 111: radix = 8; maxCode = 55; break; // fast equal of /^0o[0-7]+$/i\n default: return +it;\n }\n digits = stringSlice(it, 2);\n length = digits.length;\n for (index = 0; index < length; index++) {\n code = charCodeAt(digits, index);\n // parseInt parses a string to a first unavailable symbol\n // but ToNumber should return NaN if a string contains unavailable symbols\n if (code < 48 || code > maxCode) return NaN;\n } return parseInt(digits, radix);\n }\n } return +it;\n};\n\nvar FORCED = isForced(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'));\n\nvar calledWithNew = function (dummy) {\n // includes check on 1..constructor(foo) case\n return isPrototypeOf(NumberPrototype, dummy) && fails(function () { thisNumberValue(dummy); });\n};\n\n// `Number` constructor\n// https://tc39.es/ecma262/#sec-number-constructor\nvar NumberWrapper = function Number(value) {\n var n = arguments.length < 1 ? 0 : NativeNumber(toNumeric(value));\n return calledWithNew(this) ? inheritIfRequired(Object(n), this, NumberWrapper) : n;\n};\n\nNumberWrapper.prototype = NumberPrototype;\nif (FORCED && !IS_PURE) NumberPrototype.constructor = NumberWrapper;\n\n$({ global: true, constructor: true, wrap: true, forced: FORCED }, {\n Number: NumberWrapper\n});\n\n// Use `internal/copy-constructor-properties` helper in `core-js@4`\nvar copyConstructorProperties = function (target, source) {\n for (var keys = DESCRIPTORS ? getOwnPropertyNames(source) : (\n // ES3:\n 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +\n // ES2015 (in case, if modules with ES2015 Number statics required before):\n 'EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,' +\n // ESNext\n 'fromString,range'\n ).split(','), j = 0, key; keys.length > j; j++) {\n if (hasOwn(source, key = keys[j]) && !hasOwn(target, key)) {\n defineProperty(target, key, getOwnPropertyDescriptor(source, key));\n }\n }\n};\n\nif (IS_PURE && PureNumberNamespace) copyConstructorProperties(path[NUMBER], PureNumberNamespace);\nif (FORCED || IS_PURE) copyConstructorProperties(path[NUMBER], NativeNumber);\n","import { SavedData } from '../SavedData';\n\n/**\n * @export\n * @class Slider\n */\nexport class Slider {\n /**\n *Creates an instance of Slider\n * @param {object} params\n * @param {string | HTMLInputElement} params.slider the slider element or a selector string\n * @param {string} params.control the feature that this slider controols\n * @param {number} [min=0] slider min value\n * @param {number} [max=1] slider max value\n * @param {number} [step=0.1] slider step value\n * @param {number} [defaultValue=1] slider starting value\n * @memberof SliderPlugin\n */\n constructor({\n slider,\n control,\n min = 0,\n max = 1,\n step = 0.1,\n defaultValue = 1\n }) {\n this.min = min;\n this.max = max;\n this.step = step;\n this.sliderValue = defaultValue;\n this.control = control;\n this.slider = this.setUpSlider(slider, control);\n }\n\n /**\n * @param {string | HTMLInputElement | HTMLElement} slider\n * @param {string} control The control element (sensitivity, difficulty, pointer size, etc) this slider will be controlling\n * @returns {Element | HTMLElement}\n * @memberof Slider\n */\n setUpSlider(slider, control) {\n if ('string' === typeof slider) {\n slider = document.querySelector(slider);\n }\n\n if (!slider || 'range' !== slider.type) {\n return null;\n }\n const value = SavedData.read(control);\n\n slider.min = this.min;\n slider.max = this.max;\n slider.step = this.step;\n\n if ((value || value === 0) && value.toString().trim().length > 0) {\n slider.value = value;\n this.sliderValue = value;\n } else {\n slider.value = this.sliderValue;\n }\n\n return slider;\n }\n\n /**\n * Controls the range of the slider\n * @param {number} i\n * @returns\n * @memberof Slider\n */\n sliderRange(i) {\n if (i < this.min) {\n return this.min;\n } else if (i > this.max) {\n return this.max;\n } else {\n return i;\n }\n }\n\n /**\n * Adds change and input listeners to the slider using the given callback function\n * @memberof Slider\n * @param {Function} callBack event to fire on change or input\n */\n enableSliderEvents(callBack) {\n if (!this.slider) {\n return;\n }\n\n const event = callBack;\n this.slider.addEventListener('change', event);\n this.slider.addEventListener('input', event);\n }\n\n /**\n * removes the event listeners from the given slider.\n * @memberof Slider\n * @param {Function} callBack event to fire on change or input\n */\n disableSliderEvents(callBack) {\n if (!this.slider) {\n return;\n }\n const event = callBack;\n this.slider.removeEventListener('change', event);\n this.slider.removeEventListener('input', event);\n }\n /**\n * enables display of the Slider if it is present in the features list\n * @memberof Slider\n * @param {object} data Object containing which features are enabled\n */\n displaySlider(data) {\n if (!this.slider && data[this.control]) {\n console.warn(`${this.control} was not provided a valid input element or selector but was included as a game feature`);\n }\n\n if (!this.slider) {\n return;\n }\n\n this.slider.style.display = data[this.control] ? '' : 'none';\n }\n\n /**\n * @param {Event} event the event to be fired on the slider\n * @memberof Slider\n */\n dispatchEvent(event) {\n this.slider.dispatchEvent(event);\n }\n\n /**\n * @readonly\n * @returns {string}\n * @memberof Slider\n */\n get value() {\n return this.slider.value;\n }\n\n /**\n * @memberof Slider\n */\n set value(value) {\n this.slider.value = value;\n }\n}\n","/**\n * @export\n * @class Button\n */\nexport class Button {\n /**\n *Creates an instance of Button\n * @param {object} params\n * @param {string | HTMLElement} params.button the button itself or a selector string\n * @param {Function} params.onClick the function to call when the button is clicked\n * @param {string} channel the feature this button controls\n * @memberof ButtonPlugin\n */\n constructor({ button, onClick, channel }) {\n this.button =\n button instanceof HTMLElement ? button : document.querySelector(button);\n this.onClick = onClick;\n this.channel = channel;\n\n if (this.button) {\n this.button.addEventListener('click', onClick);\n }\n }\n\n /**\n * enables display of the button if it is present in the features list\n * @memberof Button\n * @param {object} data Object containing which features are enabled\n */\n displayButton(data) {\n if (!(this.button instanceof HTMLElement)) {\n return;\n }\n\n this.button.style.display =\n data[this.channel] || this.channel === 'pause' || this.channel === 'hints'\n ? ''\n : 'none';\n }\n\n /**\n * enables display of the button\n * @memberof Button\n */\n enableButton() {\n if (!this.button) {\n return;\n }\n this.button.classList.remove('disabled');\n }\n\n /**\n * \n * @param {string} className The classname to be appended to the end of the class property\n */\n addClass(className) {\n this.button.className = this.button.className ? this.button.className + ` ${ className }` : ` ${ className }`;\n }\n}\n","import { BasePlugin } from './BasePlugin';\nimport { Slider } from '../ui-elements';\n\n/**\n *\n *\n * @export\n * @class SliderPlugin\n */\nexport class SliderPlugin extends BasePlugin {\n /**\n *\n *Creates an instance of SliderPlugin.\n * @constructor\n * @memberof SliderPlugin\n * @param {string} cssSelector\n * @param {string} name\n * @param {object} options\n * @param {string | number} [options.defaultValue='0.5']\n * @param {string | number} [options.minValue='0']\n * @param {string | number} [options.maxValue='1']\n * @param {string} [options.featureName] Springroll Core feature name that the plugin is supporting\n */\n constructor(cssSelector, name, {defaultValue = '0.5', minValue = '0', maxValue = '1', featureName }) {\n super(name);\n this.featureName = featureName;\n this.minValue = minValue;\n this.defaultValue = defaultValue;\n this.maxValue = maxValue;\n this._currentValue = defaultValue;\n this.sliders = this.setUpSliders(cssSelector);\n this.slidersLength = this.sliders.length;\n this.sendAllProperties = this.sendAllProperties.bind(this);\n\n if (0 >= this.slidersLength) {\n this.warn('Plugin was not provided any valid HTML Elements');\n return;\n }\n }\n\n /**\n * @memberof SliderPlugin\n * @param {string[]} selectors the selector strings used to target the input elements\n * @returns {Slider[]}\n */\n setUpSliders(selectors) {\n const sliders = [];\n\n if (selectors instanceof HTMLElement) {\n sliders.push(new Slider({\n slider: selectors,\n control: this.featureName,\n defaultValue: this.defaultValue,\n minValue: this.minValue,\n maxValue: this.maxValue\n }));\n } else {\n document.querySelectorAll(selectors).forEach((slider) => {\n sliders.push(new Slider({\n slider: slider,\n control: this.featureName,\n defaultValue: this.defaultValue,\n minValue: this.minValue,\n maxValue: this.maxValue\n }));\n });\n }\n\n return sliders;\n }\n\n /**\n * @memberof SliderPlugin\n */\n init() {\n this.client.on(\n 'features',\n function(features) {\n if (!features.data) {\n return;\n }\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].displaySlider(features.data);\n }\n }.bind(this)\n );\n }\n\n /**\n * @memberof SliderPlugin\n */\n start() {\n this._currentValue = this.sliders[0].value; //update current value to the saved data value set in Slider.\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * Sends initial caption properties to the application\n * @memberof SliderPlugin\n */\n sendAllProperties() {\n this.sendProperty(this.featureName, this.currentValue);\n }\n\n /**\n * @memberof SliderPlugin\n * @param {string} newValue\n */\n set currentValue(newValue) {\n\n //just use first slider to ensure the number is valid.\n this._currentValue = this.sliders[0].sliderRange(Number(newValue));\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].value = newValue;\n }\n }\n\n /**\n * @memberof SliderPlugin\n * @return {string}\n */\n get currentValue() {\n return this._currentValue;\n }\n\n}\n","import { SavedData } from '../SavedData';\nimport { ButtonPlugin } from '../base-plugins';\nimport { RadioGroup } from '../ui-elements';\n\nconst DEFAULT_CAPTIONS_STYLES = {\n size: 'medium',\n background: 'black',\n color: 'white',\n edge: 'none',\n font: 'arial',\n align: 'top'\n};\n\nconst DEFAULT_COLOR_STYLE = {color: 'white', background: 'black'};\nconst INVERTED_COLOR_STYLE = {color: 'black', background: 'white'};\nconst FONT_SIZE_VALUES = ['small', 'medium', 'large'];\nconst COLOR_VALUES = ['default', 'inverted'];\nconst ALIGN_VALUES = ['top', 'bottom'];\n\n/**\n * @export\n * @class CaptionsStylePlugin\n * @property {object} captionsStyles The collection of captions styles\n * @property {string[]} fontSizeSelectors selector strings for the radio button groups\n * @property {string[]} colorSelectors selector strings for the radio button groups\n * @property {string[]} alignmentSelectors selector strings for the radio button groups\n * @property {Object[]} fontSizeRadios array that contains each radio group\n * @property {Object[]} colorRadios array that contains each radio group\n * @property {Object[]} alignmentRadios array that contains each radio group\n * @property {number} fontSizeRadiosLength Length of the fontSizeRadios array\n * @property {number} colorRadiosLength Length of the colorRadios array\n * @property {number} alignmentRadiosLength Length of the alignmentRadios array\n * @extends {ButtonPlugin}\n */\nexport class CaptionsStylePlugin extends ButtonPlugin {\n /**\n * Creates an instance of CaptionsStylePlugin.\n * @param {string} fontSizeRadios selector string for one or more radio groups for caption font size\n * @param {string} colorRadios selector string for one or more radio groups for caption font/background colors\n * @param {string} alignmentRadios selector string for one or more radio groups for caption position\n * @param {string} [defaultFontSize='medium'] Default selected font size\n * @param {string} [defaultColor='default'] Default selected color\n * @param {string} [defaultAlignment='top'] Default selected alignment\n * @memberof CaptionsStylePlugin\n */\n constructor(fontSizeRadios, colorRadios, alignmentRadios,\n { defaultFontSize = 'medium', defaultColor = 'default', defaultAlignment = 'top' } = {}\n ) {\n super('Caption-Style-Plugin');\n this.sendAllProperties = this.sendAllProperties.bind(this);\n this.captionsStyles = Object.assign(\n {},\n DEFAULT_CAPTIONS_STYLES,\n SavedData.read(CaptionsStylePlugin.captionStyleKey) || {}\n );\n\n //split the selector strings into individual selectors.\n //Helps keep the input style consistent across plugins.\n this.fontSizeSelectors = fontSizeRadios ? fontSizeRadios.split(',') : [];\n this.colorSelectors = colorRadios ? colorRadios.split(',') : [];\n this.alignmentSelectors = alignmentRadios ? alignmentRadios.split(',') : [];\n\n this.defaultFontSize = FONT_SIZE_VALUES.includes(defaultFontSize) ? defaultFontSize : FONT_SIZE_VALUES[0];\n this.defaultColor = COLOR_VALUES.includes(defaultColor) ? defaultColor : COLOR_VALUES[0];\n this.defaultAlignment = ALIGN_VALUES.includes(defaultAlignment) ? defaultAlignment : ALIGN_VALUES[0];\n\n this.fontSizeRadios = [];\n this.colorRadios = [];\n this.alignmentRadios = [];\n\n this.fontSizeRadios = this.setUpFontSizeRadios(this.fontSizeSelectors);\n this.colorRadios = this.setUpColorRadios(this.colorSelectors);\n this.alignmentRadios = this.setUpAlignmentRadios(this.alignmentSelectors);\n\n this._captionsMuted = false;\n\n this.alignmentRadiosLength = this.alignmentRadios.length;\n this.fontSizeRadiosLength = this.fontSizeRadios.length;\n this.colorRadiosLength = this.colorRadios.length;\n\n if (0 >= (this.alignmentRadiosLength + this.fontSizeRadiosLength + this.colorRadiosLength)) {\n this.warn(\n 'Plugin was not provided any input elements'\n );\n return;\n }\n\n //set up change events\n for (let i = 0; i < this.colorRadiosLength; i++) {\n this.colorRadios[i].enableRadioEvents(this.onColorChange.bind(this));\n }\n for (let i = 0; i < this.alignmentRadiosLength; i++) {\n this.alignmentRadios[i].enableRadioEvents(this.onAlignmentChange.bind(this));\n }\n for (let i = 0; i < this.fontSizeRadiosLength; i++) {\n this.fontSizeRadios[i].enableRadioEvents(this.onFontSizeChange.bind(this));\n }\n }\n\n /**\n * @memberof CaptionsStylePlugin\n * @param {string[]} selectors the separated selector strings used to target the radio button groups\n * @returns {RadioGroup[]}\n */\n setUpFontSizeRadios(selectors) {\n const radioGroups = [];\n\n selectors.forEach((selector) => {\n const radioGroup = new RadioGroup({\n selector: selector.trim(),\n controlName: 'Font Size',\n defaultValue: this.defaultFontSize,\n pluginName: 'Caption-Button-Plugin'\n });\n\n if (radioGroup.length !== 3) {\n this.warn(`Selector \"${selector}\" did not find exactly three(3) radio buttons for caption font size. Skipping selector`);\n return;\n }\n\n if (!radioGroup.hasOnly(FONT_SIZE_VALUES)) {\n return;\n }\n\n if (radioGroup.hasDuplicateValues()) {\n this.warn(`Duplicate radio button values detected (values: ${radioGroup.values} ). Skipping radio group`);\n return;\n }\n\n radioGroups.push(radioGroup);\n });\n\n return radioGroups;\n }\n\n /**\n * @memberof CaptionsStylePlugin\n * @param {string[]} selectors the separated selector strings used to target the radio button groups\n * @returns {RadioGroup[]}\n */\n setUpColorRadios(selectors) {\n const radioGroups = [];\n\n selectors.forEach((selector) => {\n const radioGroup = new RadioGroup({\n selector: selector.trim(),\n controlName: 'Color',\n defaultValue: this.defaultColor,\n pluginName: 'Caption-Button-Plugin'\n });\n\n if (radioGroup.length !== 2) {\n this.warn(`Selector \"${selector}\" did not find exactly two(2) radio buttons for caption colors. Skipping selector`);\n return;\n }\n\n if (!radioGroup.hasOnly(COLOR_VALUES)) {\n return;\n }\n\n if (radioGroup.hasDuplicateValues()) {\n this.warn(`Duplicate radio button values detected (values: ${radioGroup.values} ). Skipping radio group`);\n return;\n }\n\n radioGroups.push(radioGroup);\n });\n\n return radioGroups;\n }\n\n /**\n * @memberof CaptionsStylePlugin\n * @param {string[]} selectors the separated selector strings used to target the radio button groups\n * @returns {RadioGroup[]}\n */\n setUpAlignmentRadios(selectors) {\n const radioGroups = [];\n\n selectors.forEach((selector) => {\n const radioGroup = new RadioGroup({\n selector: selector.trim(),\n controlName: 'Alignment',\n defaultValue: this.defaultAlignment,\n pluginName: 'Caption-Button-Plugin'\n });\n if (radioGroup.length !== 2) {\n this.warn(`Selector \"${selector}\" did not find exactly two(2) radio buttons for caption alignment. Skipping selector`);\n return;\n }\n\n if (!radioGroup.hasOnly(ALIGN_VALUES)) {\n return;\n }\n\n if (radioGroup.hasDuplicateValues()) {\n this.warn(`Duplicate radio button values detected (values: ${radioGroup.values} ). Skipping radio group`);\n return;\n }\n\n radioGroups.push(radioGroup);\n });\n\n return radioGroups;\n }\n\n /**\n * @memberof CaptionsStylePlugin\n */\n init() {\n // Handle the features request\n this.client.on(\n 'features',\n function($event) {\n\n for (const radio of this.radios) {\n radio.displayRadios($event.data);\n }\n\n }.bind(this)\n );\n\n this.client.on(\n 'caption-set-style',\n function($event) {\n this.setCaptionsStyles($event.data || {});\n }.bind(this)\n );\n }\n /**\n * @memberof CaptionsStylePlugin\n */\n start() {\n this.setCaptionsStyles(SavedData.read(CaptionsStylePlugin.captionStyleKey));\n\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * Sends initial caption properties to the application\n * @memberof CaptionsStylePlugin\n */\n sendAllProperties() {\n this.sendProperty(CaptionsStylePlugin.captionStyleKey, this.captionsStyles);\n }\n /**\n * Fired whenever the font size radios are updated\n * @param {Event} e\n * @memberof CaptionsStylePlugin\n */\n onFontSizeChange(e) {\n this.setCaptionsStyles('size', e.target.value);\n }\n\n /**\n * Fired whenever the alignment radios are updated\n * @param {Event} e\n * @memberof CaptionsStylePlugin\n */\n onAlignmentChange(e) {\n this.setCaptionsStyles('align', e.target.value);\n }\n\n /**\n * Fired whenever the color radios are updated\n * @param {Event} e\n * @memberof CaptionsStylePlugin\n */\n onColorChange(e) {\n const styles = e.target.value === 'default' ? DEFAULT_COLOR_STYLE : INVERTED_COLOR_STYLE;\n\n this.setCaptionsStyles(styles);\n }\n\n /**\n * Reset the captions styles\n * @param {Event} e\n * @memberof CaptionsStylePlugin\n */\n clearCaptionsStyles() {\n this.captionsStyles = Object.assign({}, DEFAULT_CAPTIONS_STYLES);\n this.setCaptionsStyles();\n\n for (const radio of this.radios) {\n radio.resetState();\n }\n }\n\n /**\n * Get the captions styles\n * @param {string} [prop] The optional property, values are \"size\", \"edge\", \"font\", \"background\", \"color\"\n * @return {object | string} The collection of styles, see setCaptionsStyles for more info.\n * @memberof CaptionsStylePlugin\n */\n getCaptionsStyles(prop) {\n return prop ? this.captionsStyles[prop] : this.captionsStyles;\n }\n\n /**\n * Set the captions styles\n *\n * @param {object} [styles] The style options or the name of the\n * property (e.g., \"color\", \"edge\", \"font\", \"background\", \"size\")\n * @param {string} [styles.color='white'] The text color, the default is white\n * @param {string} [styles.edge='none'] The edge style, default is none\n * @param {string} [styles.font='arial'] The font style, default is arial\n * @param {string} [styles.background='black'] The background style, black\n * @param {string} [styles.size='md'] The font style default is medium\n * @param {string} [styles.align='top'] The align style default is top of the window\n * @param {string} [value=''] If setting styles parameter as a string, this is the value of the property.\n * @memberof CaptionsStylePlugin\n */\n setCaptionsStyles(styles = DEFAULT_CAPTIONS_STYLES, value = '') {\n if (typeof styles === 'object') {\n Object.assign(this.captionsStyles, styles);\n } else if (typeof styles === 'string') {\n this.captionsStyles[styles] = value;\n }\n\n // update radios to match\n this.colorRadios.forEach((group) => {\n const style = this.captionsStyles.color === 'white' ? 'default' : 'inverted';\n group.radioGroup[style].checked = true;\n });\n this.alignmentRadios.forEach((group) => {\n group.radioGroup[this.captionsStyles.align].checked = true;\n });\n this.fontSizeRadios.forEach((group) => {\n group.radioGroup[this.captionsStyles.size].checked = true;\n });\n\n SavedData.write(CaptionsStylePlugin.captionStyleKey, this.captionsStyles);\n if (this.client) {\n this.client.send(CaptionsStylePlugin.captionStyleKey, this.captionsStyles);\n }\n }\n\n /**\n * @readonly\n * @returns {number}\n * @memberof RadioGroup\n */\n get radios() {\n return this.colorRadios\n .concat(this.alignmentRadios)\n .concat(this.fontSizeRadios);\n }\n /**\n * Get captionStyle Key\n * @readonly\n * @static\n * @memberof CaptionStyleKey\n * @returns {string}\n */\n static get captionStyleKey() {\n return 'captionsStyles';\n }\n\n}\n","import { SavedData } from '../SavedData';\nimport { ButtonPlugin } from '../base-plugins';\nimport { Button } from '../ui-elements';\n\n/**\n * @export\n * @class CaptionsTogglePlugin\n * @property {Button[]} _captionsButtons An array of caption mute buttons\n * @property {boolean} _captionsMuted True if captions are muted\n * @property {number} captionsButtonLength The length of the captionsButtons array\n * @extends {ButtonPlugin}\n */\nexport class CaptionsTogglePlugin extends ButtonPlugin {\n /**\n *Creates an instance of CaptionsTogglePlugin.\n * @param {string | HTMLElement} captionsButtons selector string for one or more captions mute buttons\n * @memberof CaptionsTogglePlugin\n */\n constructor(captionsButtons) {\n super('Caption-Button-Plugin');\n this.sendAllProperties = this.sendAllProperties.bind(this);\n\n this._captionsButtons = [];\n\n if ( captionsButtons instanceof HTMLElement ) {\n this._captionsButtons[0] = new Button({\n button: captionsButtons,\n onClick: this.captionsButtonClick.bind(this),\n channel: 'captions'\n });\n } else {\n document.querySelectorAll(captionsButtons).forEach((button) => {\n this._captionsButtons.push(new Button({\n button: button,\n onClick: this.captionsButtonClick.bind(this),\n channel: 'captions'\n }));\n });\n }\n\n this._captionsMuted = false;\n this.captionsButtonLength = this._captionsButtons.length;\n\n if (0 >= this.captionsButtonLength) {\n this.warn(\n 'Plugin was not provided any valid button or input elements'\n );\n return;\n }\n }\n\n /**\n * @memberof CaptionsTogglePlugin\n */\n init() {\n // Handle the features request\n this.client.on(\n 'features',\n function($event) {\n for (let i = 0; i < this.captionsButtonLength; i ++) {\n this._captionsButtons[i].displayButton($event.data);\n }\n\n if (null === SavedData.read(CaptionsTogglePlugin.captionsToggleKey)) {\n return;\n }\n\n this.captionsMuted = !!SavedData.read(CaptionsTogglePlugin.captionsToggleKey);\n\n }.bind(this)\n );\n }\n /**\n * @memberof CaptionsTogglePlugin\n */\n start() {\n this.captionsMuted = !!SavedData.read(CaptionsTogglePlugin.captionsToggleKey);\n\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * Sends initial caption properties to the application\n * @memberof CaptionsTogglePlugin\n */\n sendAllProperties() {\n this.sendProperty(CaptionsTogglePlugin.captionsToggleKey, this.captionsMuted);\n }\n\n /**\n * @memberof CaptionsTogglePlugin\n */\n captionsButtonClick() {\n this.captionsMuted = !this.captionsMuted;\n }\n\n /**\n * @readonly\n * @memberof CaptionsTogglePlugin\n */\n get captionsMuted() {\n return this._captionsMuted;\n }\n\n /**\n * @param {boolean} muted\n * @memberof CaptionsTogglePlugin\n */\n set captionsMuted(muted) {\n this._captionsMuted = muted;\n this._setMuteProp(\n 'captionsMuted',\n this._captionsButtons,\n this._captionsMuted\n );\n }\n\n /**\n * Get CaptionToggle Key\n * @readonly\n * @static\n * @memberof captionsToggleKey\n * @returns {string}\n */\n static get captionsToggleKey() {\n return 'captionsMuted';\n }\n}\n","import { ButtonPlugin } from '../base-plugins';\nimport { Button } from '../ui-elements';\n\n/**\n * Requests a hint or help from the game\n * @class HelpPlugin\n * @property {boolean} paused\n * @property {boolean} _helpEnabled\n * @property {boolean} onPause\n * @property {number} helpButtonsLength\n * @extends {ButtonPlugin}\n * @export\n */\nexport class HelpPlugin extends ButtonPlugin {\n /**\n * Creates an instance of HelpPlugin.\n * @param {string | HTMLElement} helpButtons The selector or HTMLElement for the button\n * @memberof HelpPlugin\n */\n constructor(helpButtons) {\n super('Help-Button-Plugin');\n\n this._helpButtons = [];\n\n if (helpButtons instanceof HTMLElement) {\n this._helpButtons[0] = new Button({\n button: helpButtons,\n onClick: this.helpButtonClick.bind(this),\n channel: 'hints' // the check to see if this feature exists is different than most so passing this ensures it'll work the same.\n });\n } else {\n document.querySelectorAll(helpButtons).forEach((button) => {\n this._helpButtons.push(\n new Button({\n button: button,\n onClick: this.helpButtonClick.bind(this),\n channel: 'hints'\n })\n );\n });\n }\n\n this.paused = false;\n this._helpEnabled = false;\n this.onPause = this.onPause.bind(this);\n this.helpButtonsLength = this._helpButtons.length;\n\n if (this.helpButtonsLength <= 0) {\n this.warn('Plugin was not provided any valid button elements');\n }\n }\n /**\n * Called when the game is either paused or resumed\n * @param {object} $event\n * @memberof HelpPlugin\n */\n onPause($event) {\n this.paused = $event.data.paused;\n // Disable the help button when paused if it's active\n if (\n this.paused &&\n this.helpEnabled\n ) {\n for (let i = 0; i < this.helpButtonsLength; i++) {\n this._helpButtons[i].button.setAttribute('data-paused', 'true');\n }\n this.helpEnabled = false;\n } else {\n for (let i = 0; i < this.helpButtonsLength; i++) {\n if (this._helpButtons[i].button.getAttribute('data-paused')) {\n this._helpButtons[i].button.setAttribute('data-paused', '');\n this.helpEnabled = true;\n }\n }\n }\n }\n\n /**\n *\n *\n * @memberof HelpPlugin\n */\n helpButtonClick() {\n if (\n !this.paused &&\n this.helpEnabled\n ) {\n this.client.send('playHelp');\n }\n }\n\n /**\n * @memberof HelpPlugin\n */\n init() {\n // Handle pause\n this.client.on('paused', this.onPause);\n\n // Handle features changed\n this.client.on(\n 'features',\n function(features) {\n this.helpEnabled = features.data.hints;\n for (let i = 0; i < this.helpButtonsLength; i++) {\n this._helpButtons[i].displayButton(features.data);\n }\n }.bind(this)\n );\n\n this.client.on(\n 'helpEnabled',\n function(event) {\n this._helpEnabled = !!event.data;\n }.bind(this)\n );\n }\n\n /**\n * @memberof HelpPlugin\n */\n get helpEnabled() {\n return this._helpEnabled;\n }\n\n /**\n * Fired when the enabled status of the help button changes\n * @function helpEnabled\n * @param {boolean} enabled If the help button is enabled\n * @memberof HelpPlugin\n */\n set helpEnabled(enabled) {\n this._helpEnabled = enabled;\n for (let i = 0; i < this.helpButtonsLength; i++) {\n this._helpButtons[i].button.classList.remove('disabled');\n this._helpButtons[i].button.classList.remove('enabled');\n this._helpButtons[i].button.classList.add(enabled ? 'enabled' : 'disabled');\n }\n\n this.client.trigger('helpEnabled');\n }\n\n /**\n * @readonly\n * @static\n * @memberof HelpPlugin\n * @returns {string}\n */\n static get helpKey() {\n return 'help';\n }\n\n}\n","import { ButtonPlugin } from '../base-plugins';\nimport { PageVisibility } from '../PageVisibility';\nimport { Button } from '../ui-elements';\n/**\n * @class Container\n * @property {object[]} sliders an array of all slider objects attached to PausePlugin\n * @extends ButtonPlugin\n */\nexport class PausePlugin extends ButtonPlugin {\n /**\n * Creates an instance of PausePlugin.\n * @param {string | HTMLElement} pauseButton selector string or HTML Element for the input(s)\n * @param {boolean} manageOwnVisibility whether the plugin should manage container's visibility or some other source will handle it\n * @memberof PausePlugin\n */\n constructor(pauseButton, manageOwnVisibility = true) {\n super('Pause-Button-plugin');\n this._manageOwnVisibility = manageOwnVisibility;\n this._appBlurred = false;\n this._containerBlurred = false;\n this._focusTimer = null;\n this._isManualPause = false;\n this._keepFocus = false;\n this._paused = false;\n this.iframe = null;\n this.focusApp = this.focusApp.bind(this);\n this.manageFocus = this.manageFocus.bind(this);\n this.onKeepFocus = this.onKeepFocus.bind(this);\n this.onFocus = this.onFocus.bind(this);\n const onPauseToggle = this.onPauseToggle.bind(this);\n\n this.pauseDisabled = false;\n this._pauseButton = [];\n\n this.pageVisibility = new PageVisibility(\n this.onContainerFocus.bind(this),\n this.onContainerBlur.bind(this)\n );\n\n this.pageVisibility.enabled = this.manageOwnVisibility;\n\n if (pauseButton instanceof HTMLElement) {\n this._pauseButton[0] = new Button({\n button: pauseButton,\n onClick: onPauseToggle,\n channel: PausePlugin.pauseKey\n });\n } else {\n document.querySelectorAll(pauseButton).forEach((button) => {\n this._pauseButton.push(new Button({\n button: button,\n onClick: onPauseToggle,\n channel: PausePlugin.pauseKey\n }));\n });\n }\n }\n\n /**\n * updates _paused and also sends the pause event to the application\n * @memberof PausePlugin\n * @param {Boolean} paused\n */\n set pause(paused) {\n paused = !!paused;\n\n if (this.pauseDisabled) {\n return;\n }\n this._paused = paused;\n\n this.client.send(PausePlugin.pauseKey, paused);\n this.client.trigger(paused ? 'paused' : 'resumed', { paused });\n\n for (let i = 0, l = this._pauseButton.length; i < l; i++) {\n this._pauseButton[i].button.classList.remove('unpaused');\n this._pauseButton[i].button.classList.remove('paused');\n this._pauseButton[i].button.classList.add(paused ? 'paused' : 'unpaused');\n }\n }\n\n /**\n * @memberof PausePlugin\n * @returns {Boolean}\n */\n get pause() {\n return this._paused;\n }\n\n /**\n * updates _manageOwnVisibility and also re-enables pageVisibility\n * @memberof PausePlugin\n * @param {Boolean} manageOwnVisibility\n */\n set manageOwnVisibility(manageOwnVisibility) {\n this._manageOwnVisibility = manageOwnVisibility;\n\n this.pageVisibility.enabled = this._manageOwnVisibility;\n }\n\n /**\n * @memberof PausePlugin\n * @returns {Boolean}\n */\n get manageOwnVisibility() {\n return this._manageOwnVisibility;\n }\n\n /**\n * forces focus onto the iframe application window\n * @memberof PausePlugin\n */\n focusApp() {\n if (!this.hasDom) {\n // We don't have a dom with a content window, fail quietly\n return;\n }\n\n this.iframe.contentWindow.focus();\n }\n\n /**\n * blurs the application iframe window\n * @memberof PausePlugin\n */\n blurApp() {\n if (!this.hasDom) {\n return;\n }\n this.iframe.contentWindow.blur();\n }\n\n /**\n * Determines what pause state should be sent, if any, on focus or blur events.\n * @method manageFocus\n * @memberof PausePlugin\n */\n manageFocus() {\n if (!this.manageOwnVisibility) {\n return;\n }\n // Unfocus on the iframe\n if (this._keepFocus) {\n this.blurApp();\n }\n\n // we only need one delayed call, at the end of any\n // sequence of rapidly-fired blur/focus events\n if (this._focusTimer) {\n clearTimeout(this._focusTimer);\n }\n\n // Delay setting of 'paused' in case we get another focus event soon.\n // Focus events are sent to the container asynchronously, and this was\n // causing rapid toggling of the pause state and related issues,\n // especially in Internet Explorer\n this._focusTimer = setTimeout(\n function () {\n this._focusTimer = null;\n // A manual pause cannot be overriden by focus events.\n // User must click the resume button.\n if (this._isManualPause) {\n return;\n }\n\n this.pause = Boolean(this._containerBlurred && this._appBlurred);\n\n // Focus on the content window when blurring the app\n // but selecting the container\n if (this._keepFocus && !this._containerBlurred && this._appBlurred) {\n this.focusApp();\n }\n }.bind(this),\n 100\n );\n }\n\n /**\n * Handle the keep focus event for the window\n * @method onKeepFocus\n * @memberof PausePlugin\n * @private\n */\n onKeepFocus($event) {\n this._keepFocus = !!$event.data;\n this.manageFocus();\n }\n\n /**\n * Handle focus events sent from iFrame children\n * @method onFocus\n * @memberof PausePlugin\n * @private\n */\n onFocus($event) {\n this._appBlurred = !$event.data;\n this.manageFocus();\n }\n\n /**\n * Handle focus events sent from container's window\n * @method onContainerFocus\n * @memberof PausePlugin\n * @private\n */\n onContainerFocus() {\n this._containerBlurred = false;\n this.manageFocus();\n }\n\n /**\n * Handle blur events sent from container's window\n * @method onContainerBlur\n * @memberof PausePlugin\n * @private\n */\n onContainerBlur() {\n //Set both container and application to blurred,\n //because some blur events are only happening on the container.\n //If container is blurred because application area was just focused,\n //the application's focus event will override the blur imminently.\n this._containerBlurred = this._appBlurred = true;\n this.manageFocus();\n }\n\n /**\n * @memberof PausePlugin\n */\n onPauseToggle() {\n this._isManualPause = !this._isManualPause;\n this.pause = !this.pause;\n }\n\n /**\n * @param {Container} container\n * @memberof PausePlugin\n */\n init({ iframe }) {\n this.iframe = iframe;\n\n this.client.on(\n 'features',\n function (features) {\n if (features.disablePause) {\n this.pauseDisabled = true;\n }\n\n for (let i = 0, l = this._pauseButton.length; i < l; i++) {\n this._pauseButton[i].displayButton(features.data);\n }\n }.bind(this)\n );\n this.client.on('focus', this.onFocus);\n this.client.on('keepFocus', this.onKeepFocus);\n\n this.pause = this._paused;\n }\n\n /**\n * Function to check if we have a dom with a contentWindow\n * @readonly\n * @returns {boolean}\n * @memberof PausePlugin\n */\n get hasDom() {\n return Boolean(null !== this.iframe && this.iframe.contentWindow);\n }\n\n /**\n * @readonly\n * @memberof PausePlugin\n * @returns {HTMLButtonElement[]}\n */\n get pauseButton() {\n const buttons = [];\n for (let i = 0, l = this._pauseButton.length; i < l; i++) {\n buttons.push(this._pauseButton[i].button);\n }\n return buttons;\n }\n\n /**\n * @readonly\n * @static\n * @memberof PausePlugin\n * @returns {string}\n */\n static get pauseKey() {\n return 'pause';\n }\n}\n","import { SavedData } from '../SavedData';\nimport { ButtonPlugin } from '../base-plugins';\nimport { Slider, Button } from '../ui-elements';\n\n/**\n * @export\n * @class SoundPlugin\n * @extends {ButtonPlugin}\n *\n */\nexport class SoundPlugin extends ButtonPlugin {\n /**\n * Creates an instance of SoundPlugin.\n * @param {string | HTMLElement} [soundButtons] selector string or HTML Element for the input(s)\n * @param {string | HTMLElement} [musicButtons] selector string or HTML Element for the input(s)\n * @param {string | HTMLElement} [voButtons] selector string or HTML Element for the input(s)\n * @param {string | HTMLElement} [sfxButtons] selector string or HTML Element for the input(s)\n * @param {string | HTMLElement} [soundSliders] selector string or HTML Element for the input(s)\n * @param {string | HTMLElement} [musicSliders] selector string or HTML Element for the input(s)\n * @param {string | HTMLElement} [sfxSliders] selector string or HTML Element for the input(s)\n * @param {string | HTMLElement} [voSliders] selector string or HTML Element for the input(s)\n * @memberof SoundPlugin\n */\n constructor({\n soundButtons,\n musicButtons,\n sfxButtons,\n voButtons,\n soundSliders,\n musicSliders,\n sfxSliders,\n voSliders\n } = {}) {\n super('Sound-Button-Plugin');\n const saved = SavedData.read(SoundPlugin.soundMutedKey);\n this.sendAllProperties = this.sendAllProperties.bind(this);\n this._soundMuted = saved ? saved : false;\n this._musicMuted = false;\n this._voMuted = false;\n this._sfxMuted = false;\n\n this._musicMutedByUser = false;\n this._soundMutedByUser = false;\n this._sfxMutedByUser = false;\n this._voMutedByUser = false;\n\n this.soundMuteEnabled = false;\n this.musicMuteEnabled = false;\n this.sfxMuteEnabled = false;\n this.voMuteEnabled = false;\n\n this.soundVolume = 1;\n this.musicVolume = 1;\n this.sfxVolume = 1;\n this.voVolume = 1;\n\n this.soundSliders = [];\n this.musicSliders = [];\n this.sfxSliders = [];\n this.voSliders = [];\n\n this.soundButtons = [];\n this.musicButtons = [];\n this.sfxButtons = [];\n this.voButtons= [];\n\n if (soundSliders instanceof HTMLElement) {\n this.soundSliders[0] = new Slider({\n slider: soundSliders,\n control: SoundPlugin.soundVolumeKey,\n defaultValue: this.soundVolume\n });\n } else {\n document.querySelectorAll(soundSliders).forEach((slider) => {\n const newSlider = new Slider({\n slider: slider,\n control: SoundPlugin.soundVolumeKey,\n defaultValue: this.soundVolume\n });\n if (newSlider.slider) {\n this.soundSliders.push(newSlider);\n }\n });\n }\n if (musicSliders instanceof HTMLElement) {\n this.musicSliders[0] = new Slider({\n slider: musicSliders,\n control: SoundPlugin.musicVolumeKey,\n defaultValue: this.musicVolume\n });\n } else {\n document.querySelectorAll(musicSliders).forEach((slider) => {\n const newSlider = new Slider({\n slider: slider,\n control: SoundPlugin.musicVolumeKey,\n defaultValue: this.musicVolume\n });\n if (newSlider.slider) {\n this.musicSliders.push(newSlider);\n }\n });\n }\n if (sfxSliders instanceof HTMLElement) {\n this.sfxSliders[0] = new Slider({\n slider: sfxSliders,\n control: SoundPlugin.sfxVolumeKey,\n defaultValue: this.sfxVolume\n });\n } else {\n document.querySelectorAll(sfxSliders).forEach((slider) => {\n const newSlider = new Slider({\n slider: slider,\n control: SoundPlugin.sfxVolumeKey,\n defaultValue: this.sfxVolume\n });\n if (newSlider.slider) {\n this.sfxSliders.push(newSlider);\n }\n });\n }\n if (voSliders instanceof HTMLElement) {\n this.voSliders[0] = new Slider({\n slider: voSliders,\n control: SoundPlugin.voVolumeKey,\n defaultValue: this.voVolume\n });\n } else {\n document.querySelectorAll(voSliders).forEach((slider) => {\n const newSlider = new Slider({\n slider: slider,\n control: SoundPlugin.voVolumeKey,\n defaultValue: this.voVolume\n });\n if (newSlider.slider) {\n this.voSliders.push(newSlider);\n }\n });\n }\n\n if ( soundButtons instanceof HTMLElement ) {\n this.soundButtons[0] = new Button({\n button: soundButtons,\n onClick: this.onSoundToggle.bind(this),\n channel: SoundPlugin.soundKey\n });\n } else {\n document.querySelectorAll(soundButtons).forEach((button) => {\n this.soundButtons.push(new Button({\n button: button,\n onClick: this.onSoundToggle.bind(this),\n channel: SoundPlugin.soundKey\n }));\n });\n }\n if ( musicButtons instanceof HTMLElement ) {\n this.musicButtons[0] = new Button({\n button: musicButtons,\n onClick: this.onMusicToggle.bind(this),\n channel: 'music'\n });\n } else {\n document.querySelectorAll(musicButtons).forEach((button) => {\n this.musicButtons.push(new Button({\n button: button,\n onClick: this.onMusicToggle.bind(this),\n channel: 'music'\n }));\n });\n }\n if ( sfxButtons instanceof HTMLElement ) {\n this.sfxButtons[0] = new Button({\n button: sfxButtons,\n onClick: this.onSFXToggle.bind(this),\n channel: 'sfx'\n });\n } else {\n document.querySelectorAll(sfxButtons).forEach((button) => {\n this.sfxButtons.push(new Button({\n button: button,\n onClick: this.onSFXToggle.bind(this),\n channel: 'sfx'\n }));\n });\n }\n if ( voButtons instanceof HTMLElement ) {\n this.voButtons[0] = new Button({\n button: voButtons,\n onClick: this.onVOToggle.bind(this),\n channel: 'vo'\n });\n } else {\n document.querySelectorAll(voButtons).forEach((button) => {\n this.voButtons.push(new Button({\n button: button,\n onClick: this.onVOToggle.bind(this),\n channel: 'vo'\n }));\n });\n }\n\n this.soundSlidersLength = this.soundSliders.length;\n this.musicSlidersLength = this.musicSliders.length;\n this.sfxSlidersLength = this.sfxSliders.length;\n this.voSlidersLength = this.voSliders.length;\n this.soundButtonsLength = this.soundButtons.length;\n this.musicButtonsLength = this.musicButtons.length;\n this.sfxButtonsLength = this.sfxButtons.length;\n this.voButtonsLength = this.voButtons.length;\n\n if (0 >= (this.soundSlidersLength + this.musicSlidersLength + this.sfxSlidersLength + this.voSlidersLength + this.soundButtonsLength + this.musicButtonsLength + this.sfxButtonsLength + this.voButtonsLength)) {\n this.warn('Plugin was not provided any valid HTML Elements');\n return;\n }\n\n for (let i = 0; i < this.soundSlidersLength; i++) {\n this.soundSliders[i].enableSliderEvents(this.onSoundVolumeChange.bind(this));\n }\n for (let i = 0; i < this.musicSlidersLength; i++) {\n this.musicSliders[i].enableSliderEvents(this.onMusicVolumeChange.bind(this));\n }\n for (let i = 0; i < this.sfxSlidersLength; i++) {\n this.sfxSliders[i].enableSliderEvents(this.onSFXVolumeChange.bind(this));\n }\n for (let i = 0; i < this.voSlidersLength; i++) {\n this.voSliders[i].enableSliderEvents(this.onVOVolumeChange.bind(this));\n }\n\n if (this.soundSliders[0] && this.soundSliders[0].slider) {\n this.soundVolume = this.soundSliders[0].value;\n }\n if (this.musicSliders[0] && this.musicSliders[0].slider) {\n this.musicVolume = this.musicSliders[0].value;\n }\n if (this.sfxSliders[0] && this.sfxSliders[0].slider) {\n this.sfxVolume = this.sfxSliders[0].value;\n }\n if (this.voSliders[0] && this.voSliders[0].slider) {\n this.voVolume = this.voSliders[0].value;\n }\n }\n\n /**\n * @memberof SoundPlugin\n * @param {Event} e\n */\n onSoundVolumeChange(e) {\n if (this.soundSlidersLength <= 0) {\n this.soundVolume = e.target.value;\n return;\n }\n this.soundVolume = this.soundSliders[0].sliderRange(\n Number(e.target.value)\n );\n this.soundMuted = !this.soundVolume;\n\n if (!this._musicMutedByUser) {\n this.musicMuted = this.soundMuted;\n }\n if (!this._sfxMutedByUser) {\n this.sfxMuted = this.soundMuted;\n }\n if (!this._voMutedByUser) {\n this.voMuted = this.soundMuted;\n }\n\n this.sendProperty(SoundPlugin.soundVolumeKey, this.soundVolume);\n\n for (let i = 0; i < this.soundSlidersLength; i++) {\n this.soundSliders[i].value = this.soundVolume;\n }\n }\n\n /**\n * @memberof SoundPlugin\n * @param {Event} e\n */\n onMusicVolumeChange(e) {\n if (this.musicSlidersLength <= 0) {\n this.musicVolume = e.target.value;\n return;\n }\n\n this.musicVolume = this.musicSliders[0].sliderRange(\n Number(e.target.value)\n );\n\n this.musicMuted = !this.musicVolume;\n if (!this.musicMuted) { this._musicMutedByUser = false; }\n this._checkSoundMute();\n this.sendProperty(SoundPlugin.musicVolumeKey, this.musicVolume);\n\n for (let i = 0; i < this.musicSlidersLength; i++) {\n this.musicSliders[i].value = this.musicVolume;\n }\n }\n\n /**\n * @memberof SoundPlugin\n * @param {Event} e\n */\n onVOVolumeChange(e) {\n if (this.voSlidersLength <= 0) {\n this.voVolume = e.target.value;\n return;\n }\n this.voVolume = this.voSliders[0].sliderRange(Number(e.target.value));\n if (!this.voMuted) { this._voMutedByUser = false; }\n this.voMuted = !this.voVolume;\n this._checkSoundMute();\n\n this.sendProperty(SoundPlugin.voVolumeKey, this.voVolume);\n for (let i = 0; i < this.voSlidersLength; i++) {\n this.voSliders[i].value = this.voVolume;\n }\n }\n\n /**\n * @memberof SoundPlugin\n * @param {Event} e\n */\n onSFXVolumeChange(e) {\n if (this.sfxSlidersLength <= 0) {\n this.sfxVolume = e.target.value;\n return;\n }\n this.sfxVolume = this.sfxSliders[0].sliderRange(Number(e.target.value));\n if (!this.sfxMuted) { this._sfxMutedByUser = false; }\n this.sfxMuted = !this.sfxVolume;\n this._checkSoundMute();\n\n this.sendProperty(SoundPlugin.sfxVolumeKey, this.sfxVolume);\n\n for (let i = 0; i < this.sfxSlidersLength; i++) {\n this.sfxSliders[i].value = this.sfxVolume;\n }\n }\n\n /**\n * @memberof SoundPlugin\n */\n onSoundToggle() {\n const muted = !this.soundMuted;\n this.soundMuted = muted;\n\n if (!this._musicMutedByUser || muted) {\n this.musicMuted = muted;\n }\n if (!this._sfxMutedByUser || muted) {\n this.sfxMuted = muted;\n }\n if (!this._voMutedByUser || muted) {\n this.voMuted = muted;\n }\n }\n\n /**\n * @memberof SoundPlugin\n */\n onMusicToggle() {\n this.musicMuted = !this.musicMuted;\n this._musicMutedByUser = this.musicMuted;\n this._checkSoundMute();\n }\n\n /**\n * @memberof SoundPlugin\n */\n onVOToggle() {\n this.voMuted = !this.voMuted;\n this._voMutedByUser = this.voMuted;\n this._checkSoundMute();\n }\n\n /**\n * @memberof SoundPlugin\n */\n onSFXToggle() {\n this.sfxMuted = !this.sfxMuted;\n this._sfxMutedByUser = this.sfxMuted;\n this._checkSoundMute();\n }\n\n /**\n * @memberof SoundPlugin\n */\n _checkSoundMute() {\n this.soundMuted = this.sfxMuted && this.voMuted && this.musicMuted;\n }\n\n /**\n * @param {string} key\n * @param {*} value\n * @param {Element} element\n * @memberof SoundPlugin\n */\n setMuteProp(key, value, element, disableSend = false) {\n this['_' + key] = value;\n this._setMuteProp(key, element, value, disableSend);\n }\n\n /**\n * @memberof SoundPlugin\n */\n init() {\n this.client.on(\n 'features',\n function(features) {\n if (!features.data) {\n return;\n }\n \n // Confirm that the mute features are supported\n this.soundMuteEnabled = !!features.data.sound;\n this.musicMuteEnabled = !!features.data.music;\n this.sfxMuteEnabled = !!features.data.sfx;\n this.voMuteEnabled = !!features.data.vo;\n \n this.soundVolumeEnabled = !!features.data.soundVolume;\n this.musicVolumeEnabled = !!features.data.musicVolume;\n this.sfxVolumeEnabled = !!features.data.sfxVolume;\n this.voVolumeEnabled = !!features.data.voVolume;\n \n for (let i = 0; i < this.soundButtonsLength; i++) {\n this.soundButtons[i].displayButton(features.data);\n }\n for (let i = 0; i < this.musicButtonsLength; i++) {\n this.musicButtons[i].displayButton(features.data);\n }\n for (let i = 0; i < this.sfxButtonsLength; i++) {\n this.sfxButtons[i].displayButton(features.data);\n }\n for (let i = 0; i < this.voButtonsLength; i++) {\n this.voButtons[i].displayButton(features.data);\n }\n for (let i = 0; i < this.soundSlidersLength; i++) {\n this.soundSliders[i].displaySlider(features.data);\n }\n for (let i = 0; i < this.musicSlidersLength; i++) {\n this.musicSliders[i].displaySlider(features.data);\n }\n for (let i = 0; i < this.sfxSlidersLength; i++) {\n this.sfxSliders[i].displaySlider(features.data);\n }\n for (let i = 0; i < this.voSlidersLength; i++) {\n this.voSliders[i].displaySlider(features.data);\n }\n }.bind(this)\n );\n }\n\n /**\n * @memberof SoundPlugin\n */\n start() {\n\n for (let i = 0; i < this.soundButtonsLength; i++) {\n this.soundButtons[i].enableButton();\n }\n for (let i = 0; i < this.musicButtonsLength; i++) {\n this.musicButtons[i].enableButton();\n }\n for (let i = 0; i < this.sfxButtonsLength; i++) {\n this.sfxButtons[i].enableButton();\n }\n for (let i = 0; i < this.voButtonsLength; i++) {\n this.voButtons[i].enableButton();\n }\n\n this.soundMuted = !!SavedData.read(SoundPlugin.soundMutedKey);\n this.musicMuted = !!SavedData.read(SoundPlugin.musicMutedKey);\n this.sfxMuted = !!SavedData.read(SoundPlugin.sfxMutedKey);\n this.voMuted = !!SavedData.read(SoundPlugin.voMutedKey);\n\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * Saves the current state of all volume properties, and then sends them to the game\n * @memberof SoundPlugin\n */\n sendAllProperties() {\n this.sendProperty(SoundPlugin.soundVolumeKey, this.soundVolume);\n this.sendProperty(SoundPlugin.musicVolumeKey, this.musicVolume);\n this.sendProperty(SoundPlugin.voVolumeKey, this.voVolume);\n this.sendProperty(SoundPlugin.sfxVolumeKey, this.sfxVolume);\n\n // to avoid the mute property overwriting the volume on startup, mutes should only send if they're true\n // or the volume channel isn't enabled\n if ( this.soundMuteEnabled && (this.soundMuted || !this.soundVolumeEnabled )) {\n this.sendProperty(SoundPlugin.soundMutedKey, this.soundMuted);\n }\n if ( this.musicMuteEnabled && (this.musicMuted || !this.musicVolumeEnabled )) {\n this.sendProperty(SoundPlugin.musicMutedKey, this.musicMuted);\n }\n if ( this.voMuteEnabled && ( this.voMuted || !this.voVolumeEnabled )) {\n this.sendProperty(SoundPlugin.voMutedKey, this.voMuted);\n }\n if ( this.sfxMuteEnabled && (this.sfxMuted || !this.sfxVolumeEnabled )) {\n this.sendProperty(SoundPlugin.sfxMutedKey, this.sfxMuted);\n }\n }\n\n /**\n * @memberof SoundPlugin\n * @param {boolean} muted\n */\n set soundMuted(muted) {\n if (muted === this.soundMuted) {\n // have to do this to make sure it gets set up properly on start up\n this.setMuteProp('soundMuted', muted, this.soundButtons, true);\n return;\n }\n\n let disableSend = false;\n // if volume is enabled and the channel is becoming unmuted we update everything but only send the volume\n if (this.soundVolumeEnabled && !muted) {\n this.sendProperty(SoundPlugin.soundVolumeKey, this.soundVolume);\n disableSend = true;\n }\n this.setMuteProp('soundMuted', muted, this.soundButtons, disableSend);\n }\n\n /**\n * @memberof SoundPlugin\n */\n get soundMuted() {\n return this._soundMuted;\n }\n\n /**\n * @memberof SoundPlugin\n * @param {boolean} muted\n */\n set voMuted(muted) {\n let disableSend = false;\n if (this.voMuted === muted) {\n // have to do this to make sure it gets set up properly on start up\n this.setMuteProp('voMuted', muted, this.voButtons, true);\n return;\n }\n if ((this.voVolumeEnabled && !muted)) {\n this.sendProperty(SoundPlugin.voVolumeKey, this.voVolume);\n disableSend = true;\n }\n this.setMuteProp('voMuted', muted, this.voButtons, disableSend);\n }\n\n /**\n * @memberof SoundPlugin\n */\n get voMuted() {\n return this._voMuted;\n }\n\n /**\n * @memberof SoundPlugin\n * @param {boolean} muted\n */\n set musicMuted(muted) {\n if (this.musicMuted === muted) {\n // have to do this to make sure it gets set up properly on start up\n this.setMuteProp('musicMuted', muted, this.musicButtons, true);\n return; \n }\n let disableSend = false;\n if (this.musicVolumeEnabled && !muted) {\n this.sendProperty(SoundPlugin.musicVolumeKey, this.musicVolume);\n disableSend = true;\n }\n\n this.setMuteProp('musicMuted', muted, this.musicButtons, disableSend);\n }\n\n /**\n * @memberof SoundPlugin\n */\n get musicMuted() {\n return this._musicMuted;\n }\n\n /**\n * @memberof SoundPlugin\n * @param {boolean} muted\n */\n set sfxMuted(muted) {\n if (this.sfxMuted === muted) {\n // have to do this to make sure it gets set up properly on start up\n this.setMuteProp('sfxMuted', muted, this.sfxButtons, true);\n return;\n }\n let disableSend = false;\n if (this.sfxVolumeEnabled && !muted) {\n this.sendProperty(SoundPlugin.sfxVolumeKey, this.sfxVolume);\n disableSend = true;\n }\n this.setMuteProp('sfxMuted', muted, this.sfxButtons, disableSend);\n }\n\n /**\n * @memberof SoundPlugin\n */\n get sfxMuted() {\n return this._sfxMuted;\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get soundMutedKey() {\n return 'soundMuted';\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get voMutedKey() {\n return 'voMuted';\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get musicMutedKey() {\n return 'musicMuted';\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get sfxMutedKey() {\n return 'sfxMuted';\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get soundVolumeKey() {\n return 'soundVolume';\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get sfxVolumeKey() {\n return 'sfxVolume';\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get voVolumeKey() {\n return 'voVolume';\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get musicVolumeKey() {\n return 'musicVolume';\n }\n\n /**\n * @readonly\n * @memberof SoundPlugin\n */\n get soundButton() {\n return this._soundButton.button;\n }\n\n /**\n * @readonly\n * @memberof SoundPlugin\n */\n get musicButton() {\n return this._musicButton.button;\n }\n /**\n * @readonly\n * @memberof SoundPlugin\n */\n get sfxButton() {\n return this._sfxButton.button;\n }\n /**\n * @readonly\n * @memberof SoundPlugin\n */\n get voButton() {\n return this._voButton.button;\n }\n\n /**\n * @readonly\n * @static\n * @memberof SpeedScalePlugin\n * @return {string}\n */\n static get soundKey() {\n return 'sound';\n }\n}\n","import { SavedData } from './SavedData';\n/**\n * Default user data handler for the {{#crossLink \"springroll.Container\"}}Container{{/crossLink}} to save data using\n * the {{#crossLink \"springroll.SavedData\"}}SavedData{{/crossLink}} class.\n * @class SavedDataHandler\n */\nexport class SavedDataHandler {\n\n /**\n * \n */\n constructor() {\n this.dbName;\n this.savedData;\n }\n \n /**\n * Remove a data setting\n * @method remove\n * @static\n * @param {String} name The name of the property\n * @param {Function} [callback] Callback when remove is complete\n */\n static remove(name, callback) {\n SavedData.remove(name);\n callback();\n }\n\n /**\n * Write a custom setting\n * @method write\n * @static\n * @param {String} name The name of the property\n * @param {*} value The value to set the property to\n * @param {Function} [callback] Callback when write is complete\n */\n static write(name, value, callback) {\n SavedData.write(name, value);\n callback();\n }\n\n /**\n * Read a custom setting\n * @method read\n * @static\n * @param {String} name The name of the property\n * @param {Function} callback Callback when read is complete, returns the value\n */\n static read(name, callback) {\n callback(SavedData.read(name));\n }\n\n // ----------------------------------------------------------------\n // IndexedDB Manipulation \n // ----------------------------------------------------------------\n\n /**\n * Open a connection with the database\n * @param {string} dbName The name of your IndexedDB database\n * @param {string} dbVersion The version number of the database\n * @param {JSON} additions Any additions to the structure of the database\n * @param {array} additions.stores Any stores to be added into the database syntax: \n * {storeName: '[name]', options: {[optionally add options]}}\n * @param {array} additions.indexes Any Indexes to be added to the database syntax: \n * {storeName: '[name]', options: {[optionally add options]}}\n */\n IDBOpen( dbName, dbVersion = null, additions = {}, deletions = {}, callback = null) {\n // persisting the savedData object to keep the connection open\n this.savedData = new SavedData();\n this.savedData.IDBOpen( dbName, dbVersion, additions, deletions, callback);\n }\n\n /**\n * Add a record to a given store\n * @param {string} storeName The name of the store from which the record will be updated\n * @param {string} key the key of the record to be updated \n * @param {*} value The value for the record with the given key to be updated\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBAdd(storeName, record, key, callback) {\n this.savedData.IDBAdd(storeName, record, key, callback);\n }\n \n /**\n * Update a record from a given store\n * @param {string} storeName The name of the store from which the record will be updated\n * @param {string} key the key of the record to be updated \n * @param {*} value The value for the record with the given key to be updated\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBUpdate(storeName, key, value, callback) {\n this.savedData.IDBUpdate(storeName, key, value, callback);\n }\n\n /**\n * Remove a record from a store\n * @param {*} storeName The name of the store from which the record will be removed\n * @param {*} key the key of the record to be removed \n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBRemove(storeName, key, callback) {\n this.savedData.IDBRemove(storeName, key, callback);\n }\n\n /**\n * Return a record from a given store with a given key\n * @param {string} storeName The name of the store to read from\n * @param {string} key The key for the record in the given store \n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBRead(storeName, key, callback) {\n this.savedData.IDBRead(storeName, key, callback);\n }\n\n /**\n * Get all records from a store\n * @param {string} storeName The store to get all records from\n * @param {integer} count Optionally the count of records to return\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBReadAll(storeName, count, callback) {\n this.savedData.IDBReadAll(storeName, count, callback);\n }\n\n /**\n * Get the version of a given database\n * @param {string} dbName The name of the database to return the version of\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBGetVersion(dbName, callback) {\n const sd = new SavedData(dbName);\n\n sd.IDBGetVersion(dbName, callback);\n }\n\n /**\n * Closes the connection to the database\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBClose(callback) {\n this.savedData.IDBClose(callback);\n }\n /**\n * Closes the connection to the database\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBDeleteDB(dbName, options, callback) {\n const sd = new SavedData(dbName);\n sd.IDBDeleteDB(dbName, options, callback);\n }\n\n}\n","import { SavedDataHandler } from '../SavedDataHandler';\nimport { BasePlugin } from '../base-plugins';\n\n/**\n * @export\n * @class UserDataPlugin\n * @extends {BasePlugin}\n * @property {SavedDataHandler} SavedDataHandler The handler to work with the savedData class\n */\nexport class UserDataPlugin extends BasePlugin {\n /**\n * Creates an instance of UserDataPlugin.\n * @memberof UserDataPlugin\n */\n constructor() {\n super('UserData-Plugin');\n this.onUserDataRemove = this.onUserDataRemove.bind(this);\n this.onUserDataRead = this.onUserDataRead.bind(this);\n this.onUserDataWrite = this.onUserDataWrite.bind(this);\n\n this.onIDBAdd = this.onIDBAdd.bind(this);\n this.onIDBOpen = this.onIDBOpen.bind(this);\n this.onIDBRead = this.onIDBRead.bind(this);\n this.onIDBReadAll = this.onIDBReadAll.bind(this);\n this.onIDBRemove = this.onIDBRemove.bind(this);\n this.onIDBUpdate = this.onIDBUpdate.bind(this);\n this.onIDBUpdate = this.onIDBUpdate.bind(this);\n this.onIDBClose = this.onIDBClose.bind(this);\n this.IDBReadAll = this.onIDBReadAll.bind(this);\n this.onIDBGetVersion = this.onIDBGetVersion.bind(this);\n this.onIDBDeleteDB = this.onIDBDeleteDB.bind(this);\n\n this.savedDataHandler = null;\n }\n\n /**\n *\n * @memberof UserDataPlugin\n */\n init() {\n this.client.on('userDataRemove', this.onUserDataRemove);\n this.client.on('userDataRead', this.onUserDataRead);\n this.client.on('userDataWrite', this.onUserDataWrite);\n\n this.client.on('IDBOpen', this.onIDBOpen);\n this.client.on('IDBRead', this.onIDBRead);\n this.client.on('IDBReadAll', this.onIDBReadAll);\n this.client.on('IDBAdd', this.onIDBAdd);\n this.client.on('IDBRemove', this.onIDBRemove);\n this.client.on('IDBUpdate', this.onIDBUpdate);\n this.client.on('IDBClose', this.onIDBClose);\n this.client.on('IDBGetVersion', this.onIDBGetVersion);\n this.client.on('IDBDeleteDB', this.onIDBDeleteDB);\n }\n\n /**\n * Handler for the userDataRemove event\n * @method onUserDataRemove\n * @private\n * @param {string} data The name of the record to be removed\n * @param {string} type The type of listener for bellhop to send to\n */\n onUserDataRemove({ data, type }) {\n SavedDataHandler.remove(data, () => {\n this.client.send(type);\n });\n }\n\n /**\n * Handler for the userDataRead event\n * @method onUserDataRead\n * @private\n * @param {string} data The name of the record to be removed\n * @param {string} type The type of listener for bellhop to send to\n */\n onUserDataRead({ data, type }) {\n SavedDataHandler.read(data, value => this.client.send(type, value));\n }\n\n /**\n * Handler for the userDataWrite event\n * @method onUserDataWrite\n * @private\n * @param {string} type The type of listener for bellhop to send to\n * @param {string} data.name The name for the record. This is what is used to read or remove the record\n * @param {object | string} data.value The data object with the data and value for the record\n */\n onUserDataWrite({type, data: { name, value } }) {\n\n SavedDataHandler.write(name, value, () => this.client.send(type));\n }\n\n // ----------------------------------------------------------------\n // IndexedDB Manipulation\n // ----------------------------------------------------------------\n\n /**\n * Open a connection with the IDB Database and optionally add or delete\n * Indexes and stores\n * @param {string} dbName The name of your IndexedDB database\n * @param {string} [dbVersion] The version number of the database\n * @param {JSON} [additions] Any additions to the structure of the database\n * @param {array} [additions.stores] Any stores to be added into the database syntax:\n * @param {string} [additions.stores.storeName] The name of the store\n * @param {object} [additions.stores.options] Optionally, the option parameter for the createStore method\n * @param {array} [additions.indexes] Any Indexes to be added to the database syntax:\n * @param {string} [additions.indexes.storeName] The name of the store\n * @param {object} [additions.indexes.options] Optionally, the option parameter for the createIndex method\n * @param {string} type The type of listener for bellhop to send to\n */\n onIDBOpen({type, data: {dbName, dbVersion = null, additions = {}, deletions = {} }}) {\n // Keep an instance open to use on open\n this.savedDataHandler = new SavedDataHandler();\n this.savedDataHandler.IDBOpen( dbName, dbVersion, additions, deletions, value => this.client.send(type, value));\n }\n\n /**\n * Add a record to a given store\n * @param {string} type The type of listener for bellhop to send to\n * @param {string} storeName The name of the store from which the record will be updated\n * @param {*} value The value for the record with the given key to be updated\n * @param {string} key the key of the record to be updated\n */\n onIDBAdd({type, data: { storeName, value, key}}) {\n this.savedDataHandler.IDBAdd(storeName, value, key, value => this.client.send(type, value));\n }\n\n /**\n * Update a record from a given store\n * @param {string} type The type of listener for bellhop to send to\n * @param {string} storeName The name of the store with the record to update\n * @param {string} key The key of the record to be updated\n * @param {*} value The record value\n */\n onIDBUpdate({type, data: { storeName, key, value}}) {\n this.savedDataHandler.IDBUpdate(storeName, key, value, value => this.client.send(type, value));\n }\n\n /**\n * Remove a record from a store\n * @param {string} type The type of listener for bellhop to send to\n * @param {string} storeName The name of the store from which the record will be removed\n * @param {*} key the key of the record to be removed\n */\n onIDBRemove({type, data: {storeName, key}}) {\n this.savedDataHandler.IDBRemove(storeName, key, value => this.client.send(type, value));\n }\n\n /**\n * Return a record from a given store with a given key\n * @param {string} storeName The name of the store to read from\n * @param {string} key The key for the record in the given store\n * @param {string} type The type of listener for bellhop to send to\n */\n onIDBRead({type, data: {storeName, key}}) {\n this.savedDataHandler.IDBRead(storeName, key, value => this.client.send(type, value));\n }\n\n /**\n * Get all records from a store\n * @param {string} storeName The store to get all records from\n * @param {integer} count Optionally the number of records to return\n * @param {string} type The type of listener for bellhop to send to\n */\n onIDBReadAll({ type, data: {storeName, count} }) {\n this.savedDataHandler.IDBReadAll(storeName, count, value => this.client.send(type, value));\n }\n\n /**\n * Get the version of a given database\n * @param {string} dbName The name of the database to return the version of\n * @param {string} type The type of listener for bellhop to send to\n */\n onIDBGetVersion({type, data: {dbName}}) {\n // Create a new instance of savedDataHandler to avoid mutating the current instance\n const sdh = new SavedDataHandler();\n sdh.IDBGetVersion(dbName, value => this.client.send(type, value));\n }\n\n /**\n * Close the connection with the database\n * @param {string} type The type of listener for bellhop to send to\n */\n onIDBClose({type}) {\n this.savedDataHandler.IDBClose(value => this.client.send(type, value));\n }\n /**\n * Close the connection with the database\n * @param type - The type of request being sent\n */\n onIDBDeleteDB({type, data: {dbName, options }}) {\n const sdh = new SavedDataHandler();\n\n\n sdh.IDBDeleteDB(dbName, options, value => this.client.send(type, value));\n }\n}","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class PointerSizePlugin\n * @extends {SliderPlugin}\n * @property {object[]} sliders an array of all slider objects attached to PointerSizePlugin\n * @extends SliderPlugin\n */\nexport class PointerSizePlugin extends SliderPlugin {\n /**\n * Creates an instance of PointerSizePlugin.\n * @param {string | HTMLElement} [pointerSliders] selector string or HTML Element for the input(s)\n * @param {number} [defaultPointerSize=0.5] The default value for the pointer size slider\n * @memberof PointerSizePlugin\n */\n constructor(pointerSliders, { defaultPointerSize = 0.5 } = {}) {\n super(pointerSliders, 'UISize-Pointer-Plugin', { defaultValue: defaultPointerSize, featureName: PointerSizePlugin.pointerSizeKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onPointerSizeChange.bind(this));\n }\n\n }\n\n /**\n * @memberof PointerSizePlugin\n * @param {Event} e\n */\n onPointerSizeChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(PointerSizePlugin.pointerSizeKey, this.currentValue);\n }\n\n\n /**\n * @readonly\n * @static\n * @memberof PointerSizePlugin\n * @return {string}\n */\n static get pointerSizeKey() {\n return 'pointerSize';\n }\n}\n","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class ButtonSizePlugin\n * @property {object[]} sliders An array of slider objects given to ButtonSizePlugin\n * @property {number} currentValue The current button size value\n * @extends {SliderPlugin}\n */\nexport class ButtonSizePlugin extends SliderPlugin {\n /**\n * Creates an instance of ButtonSizePlugin.\n * @param {string | HTMLElement} buttonSliders selector string or html element(s) for the inputs\n * @param {object} options\n * @param {number} [options.defaultButtonSize=0.5]\n * @memberof ButtonSizePlugin\n */\n constructor(buttonSliders, { defaultButtonSize = 0.5 } = {}) {\n super(buttonSliders, 'UISize-Button-Plugin', { defaultValue: defaultButtonSize, featureName: ButtonSizePlugin.buttonSizeKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onButtonSizeChange.bind(this));\n }\n }\n\n /**\n * @memberof ButtonSizePlugin\n * @param {Event} e\n */\n onButtonSizeChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(ButtonSizePlugin.buttonSizeKey, this.currentValue);\n }\n\n /**\n * Get ButtonSize Key\n * @readonly\n * @static\n * @memberof ButtonSizePlugin\n * @returns {string}\n */\n static get buttonSizeKey() {\n return 'buttonSize';\n }\n}\n","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class ControlSensitivityPlugin\n * @property {object[]} sliders an array of all slider objects attached to ControlSensitivityPlugin\n * @extends {SliderPlugin}\n */\nexport class ControlSensitivityPlugin extends SliderPlugin {\n /**\n * Creates an instance of ControlSensitivityPlugin.\n * @param {string | HTMLElement} sensitivitySliders\n * @param {number} [defaultSensitivity=0.5]\n * @memberof ControlSensitivityPlugin\n */\n constructor(sensitivitySliders, { defaultSensitivity = 0.5 } = {}) {\n super(sensitivitySliders, 'Control-Sensitivity-Plugin', {defaultValue: defaultSensitivity, featureName: ControlSensitivityPlugin.controlSensitivityKey});\n\n this.sendAllProperties = this.sendAllProperties.bind(this);\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onControlSensitivityChange.bind(this));\n }\n }\n\n /**\n * @memberof ControlSensitivityPlugin\n * @param {Event} e\n */\n onControlSensitivityChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(ControlSensitivityPlugin.controlSensitivityKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof ControlSensitivityPlugin\n * @returns {string}\n */\n static get controlSensitivityKey() {\n return 'controlSensitivity';\n }\n}\n","import { BasePlugin } from '../base-plugins';\nimport { SavedData } from '../SavedData';\n\n/**\n * @export\n * @class KeyboardMapPlugin\n * @extends {BasePlugin}\n */\nexport class KeyboardMapPlugin extends BasePlugin {\n /**\n * Creates an instance of KeyboardMapPlugin.\n * @param {string | HTMLElement} keyContainers div or similar container element that will contain the re-mappable keys\n * @param {string} [customClassName='springrollContainerKeyBinding__button'] A custom class name that will be applied to the container element\n * @memberof KeyboardMapPlugin\n */\n constructor(keyContainers, {customClassName = 'springrollContainerKeyBinding__button'} = {}) {\n super('Keyboard-Map-Plugin');\n\n this.sendAllProperties = this.sendAllProperties.bind(this);\n //Allows for removing and reading event listeners\n this.bindKey = this.bindKey.bind(this);\n this.onKeyButtonClick = this.onKeyButtonClick.bind(this);\n\n this.className = customClassName;\n\n this.keyContainers =\n keyContainers instanceof HTMLElement\n ? [keyContainers]\n : document.querySelectorAll(keyContainers);\n\n this.keyBindings = {};\n this.buttons = [];\n this.activekeyButton;\n\n this.sendAfterFetch = false;\n this.canEmit = false;\n\n this.keyContainersLength = this.keyContainers.length;\n\n if (this.keyContainersLength <= 0) {\n this.warn('plugin was not provided any valid key binding container elements');\n return;\n }\n }\n\n /**\n * @memberof KeyboardMapPlugin\n * @param {MouseEvent} e\n * Sets up a rebinding of a key once a key button is clicked.\n */\n onKeyButtonClick(e) {\n\n for (let i = 0, l = this.buttons.length; i < l; i++) {\n for (let j = 0; j < this.buttons[i].length; j++) {\n this.buttons[i][j].removeEventListener('click', this.onKeyButtonClick);\n }\n }\n this.activekeyButton = e.target;\n this.activekeyButton.textContent = 'Press Key to Map';\n document.addEventListener('keyup', this.bindKey);\n }\n\n /**\n * @memberof KeyboardMapPlugin\n * @param {KeyboardEvent} key\n * Actually updates the key binding and sends the value. Also\n * replicates the new key across the other keycontainers\n */\n bindKey(key) {\n key.preventDefault(); //prevents space bar from retriggering a keybinding when set.\n\n for (const actionName in this.keyBindings) {\n if (this.keyBindings[actionName].currentKey === key.key.toLowerCase()) {\n this.warn(`${key.key} is already bound`);\n return;\n }\n }\n\n this.activekeyButton.textContent = key.key === ' ' ? 'space' : key.key;\n for (let i = 0; i < this.buttons.length; i++) {\n for (let j = 0; j < this.buttons[i].length; j++) {\n if (this.buttons[i][j].value === this.activekeyButton.value) {\n this.buttons[i][j].textContent = this.activekeyButton.textContent;\n }\n }\n }\n\n this.keyBindings[this.activekeyButton.value].currentKey = key.key;\n\n document.removeEventListener('keyup', this.bindKey);\n for (let i = 0, l = this.buttons.length; i < l; i++) {\n for (let j = 0; j < this.buttons[i].length; j++) {\n this.buttons[i][j].addEventListener('click', this.onKeyButtonClick);\n }\n }\n\n this.sendProperty(KeyboardMapPlugin.keyBindingKey, this.keyBindings);\n }\n\n /**\n * @memberof KeyboardMapPlugin\n */\n init() {\n this.client.on(\n 'features',\n function(features) {\n if (!features.data) {\n return;\n }\n\n if (!features.data.keyBinding) {\n return;\n }\n\n const data = SavedData.read(KeyboardMapPlugin.keyBindingKey);\n\n this.client.fetch('keyBindings', result => {\n for (let j = 0; j < this.keyContainersLength; j++) {\n this.buttons[j] = [];\n\n for (let i = 0, l = result.data.length; i < l; i++) {\n let currentKey = result.data[i].defaultKey.toLowerCase();\n if (data) {\n if (data[result.data[i].actionName]) {\n currentKey = data[result.data[i].actionName].currentKey;\n }\n }\n //only needs to be set up once\n if (j === 0) {\n this.keyBindings[result.data[i].actionName] = {\n defaultKey: result.data[i].defaultKey.toLowerCase(),\n currentKey: currentKey,\n };\n }\n\n this.buttons[j][i] = document.createElement('button');\n this.buttons[j][i].classList.add(this.className);\n this.buttons[j][i].id = `keyBoardMapPlugin-${result.data[i].actionName}`;\n this.buttons[j][i].value = result.data[i].actionName;\n this.buttons[j][i].textContent = result.data[i].defaultKey;\n this.buttons[j][i].addEventListener('click', this.onKeyButtonClick);\n\n this.label = document.createElement('label');\n this.label.htmlFor = `keyBoardMapPlugin-${result.data[i].actionName}`;\n this.label.textContent = result.data[i].actionName;\n\n this.keyContainers[j].appendChild(this.label);\n this.keyContainers[j].appendChild(this.buttons[j][i]);\n }\n }\n\n this.canEmit = true;\n if (this.sendAfterFetch) {\n this.sendAllProperties();\n }\n });\n }.bind(this)\n );\n }\n\n /**\n*\n* Sends initial caption properties to the application\n* @memberof KeyboardMapPlugin\n*/\n sendAllProperties() {\n if (this.canEmit) {\n this.sendProperty(KeyboardMapPlugin.keyBindingKey, this.keyBindings);\n } else {\n this.sendAfterFetch = true;\n }\n }\n\n /**\n * @readonly\n * @static\n * @memberof KeyboardMapPlugin\n * @returns {string}\n */\n static get keyBindingKey() {\n return 'keyBinding';\n }\n}\n","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class LayersPlugin\n * @property {object[]} sliders an array of all slider objects attached to LayersPlugin\n * @extends {SliderPlugin}\n */\nexport class LayersPlugin extends SliderPlugin {\n /**\n * Creates an instance of KeyboardMapPlugin.\n * @param {string | HTMLInputElement} layersSliders selector string or HTML Element for the input(s)\n * @param {number} [defaultValue=0] The default value for the slider\n */\n constructor(layersSliders, { defaultValue = 0 } = {}) {\n super(layersSliders, 'Layer-Plugin', { defaultValue: defaultValue, featureName: LayersPlugin.layersSliderKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onLayerValueChange.bind(this));\n }\n }\n\n /**\n * @memberof LayersPlugin\n * @param {Event} e\n */\n onLayerValueChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(LayersPlugin.layersSliderKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof LayersPlugin\n * @returns {string}\n */\n static get layersSliderKey() {\n return 'removableLayers';\n }\n}\n","import { RadioGroupPlugin } from '../base-plugins';\nimport { SavedData } from '../SavedData';\n\nconst SUPPORTED_POSITIONS = ['top', 'bottom', 'left', 'right'];\n\n/**\n * @export\n * @class HUDPlugin\n * @extends {BasePlugin}\n */\nexport class HUDPlugin extends RadioGroupPlugin {\n /**\n * Creates an instance of HUDPlugin\n * @param {string} hudSelectorRadios selector string or for the input(s)\n * @param {string[]} [defaultValue='top'] default value for the HUD position\n * @memberof HUDPlugin\n */\n constructor(hudSelectorRadios, { defaultValue = SUPPORTED_POSITIONS[0] } = {}) {\n super(hudSelectorRadios, 'HUD-Layout-Plugin', {supportedValues: SUPPORTED_POSITIONS, initialValue: defaultValue, controlName: 'Hud Selector', featureName: HUDPlugin.hudPositionKey, radioCount: SUPPORTED_POSITIONS.length});\n\n this.sendAllProperties = this.sendAllProperties.bind(this);\n this.sendAfterFetch = false;\n this.canEmit = false;\n this.positions = [];\n\n if (this.radioGroupsLength <= 0) {\n this.warn('Plugin was not provided any valid HTML elements');\n }\n\n for (let i = 0; i < this.radioGroupsLength; i++) {\n this.radioGroups[i].enableRadioEvents(this.onHUDSelect.bind(this));\n }\n\n }\n\n /**\n * @memberof HUDPlugin\n * @param {Event} e\n */\n onHUDSelect(e) {\n //return if a radio button is programattically clicked when it is hidden\n if (!this.positions.includes(e.target.value)) {\n for (let i = 0; i < this.radioGroupsLength; i++) {\n this.radioGroups[i].radioGroup[this.currentValue].checked = true;\n }\n return;\n }\n\n this.currentValue = e.target.value;\n\n this.sendProperty(\n HUDPlugin.hudPositionKey,\n this.currentValue\n );\n }\n\n /**\n * @memberof HUDPlugin\n */\n init() {\n this.client.on(\n 'features',\n function(features) {\n if (!features.data || !features.data.hudPosition) {\n return;\n }\n\n if (this.radioGroupsLength <= 0) {\n return;\n }\n //get the game's reported HUD positions to build out positions array\n this.client.fetch('hudPositions', result => {\n for (let i = 0, l = result.data.length; i < l; i++) {\n if (\n !SUPPORTED_POSITIONS.includes(result.data[i].toLowerCase())\n ) {\n this.warn(`${result.data[i]} is an invalid position name`);\n continue;\n }\n\n this.positions.push(result.data[i].toLowerCase());\n }\n\n for (let i = 0; i < this.radioGroupsLength; i++) {\n //Hide any radio buttons that aren't in the game's position list.\n for (const key in this.radioGroups[i].radioGroup) {\n this.radioGroups[i].radioGroup[key].style.display = this.positions.includes(this.radioGroups[i].radioGroup[key].value) ? '' : 'none';\n }\n }\n\n this.canEmit = true;\n if (this.sendAfterFetch) {\n this.sendAllProperties();\n }\n });\n\n }.bind(this)\n );\n }\n\n /**\n * @memberof HUDPlugin\n */\n start() {\n const data = SavedData.read(HUDPlugin.hudPositionKey);\n\n if (SUPPORTED_POSITIONS.includes(data)) {\n this.currentValue = data;\n }\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * Sends initial HUD position properties to the application\n * @memberof HUDPlugin\n */\n sendAllProperties() {\n if (this.canEmit) {\n this.sendProperty(HUDPlugin.hudPositionKey, this.currentValue);\n } else {\n this.sendAfterFetch = true;\n }\n }\n\n /**\n * @static\n * @readonly\n * @memberof HUDPlugin\n * @returns {string}\n */\n static get hudPositionKey() {\n return 'hudPosition';\n }\n}\n","import { RadioGroupPlugin } from '../base-plugins';\nimport { SavedData } from '../SavedData';\n\nconst COLOR_BLIND_TYPES = [\n 'none',\n 'protanopia',\n 'deuteranopia',\n 'tritanopia',\n 'achromatopsia'\n];\n\n/**\n * @export\n * @class ColorVisionPlugin\n * @property {boolean} sendAfterFetch Whether to send the properties after fetch or not\n * @property {boolean} canEmit Whether or not the plugin can send properties\n * @property {string} colors \n * @extends {RadioGroupPlugin}\n */\nexport class ColorVisionPlugin extends RadioGroupPlugin {\n /**\n * Creates an instance of ColorVisionPlugin.\n * @param {string | HTMLElement} colorSelects\n * @param {string } [defaultValue] Default selected value\n * @memberof ColorVision\n */\n constructor(colorVisionRadios, { defaultValue = COLOR_BLIND_TYPES[0] } = {}) {\n super(colorVisionRadios, 'Color-Filter-Plugin', {supportedValues: COLOR_BLIND_TYPES, initialValue: defaultValue, controlName: 'Color Vision Selector', featureName: ColorVisionPlugin.colorVisionKey, radioCount: COLOR_BLIND_TYPES.length});\n\n this.sendAllProperties = this.sendAllProperties.bind(this);\n this.sendAfterFetch = false;\n this.canEmit = false;\n this.colors = [];\n\n if (this.radioGroupsLength <= 0) {\n this.warn('Plugin was not provided any valid HTML elements');\n return;\n }\n\n for (let i = 0; i < this.radioGroupsLength; i++) {\n this.radioGroups[i].enableRadioEvents(this.onColorChange.bind(this));\n }\n }\n\n /**\n * @memberof ColorVisionPlugin\n * @param {Event} e\n */\n onColorChange(e) {\n //return if a radio button is programmatically clicked when it is hidden from the user\n if (!this.colors.includes(e.target.value) ) {\n for (let i = 0; i < this.radioGroupsLength; i++) {\n this.radioGroups[i].radioGroup[this.currentValue].checked = true;\n }\n return;\n }\n this.currentValue = e.target.value;\n\n this.sendProperty(\n ColorVisionPlugin.colorVisionKey,\n this.currentValue\n );\n }\n\n /**\n * @memberof ColorVisionPlugin\n */\n init() {\n this.client.on(\n 'features',\n function(features) {\n if (!features.data || !features.data.colorVision) {\n return;\n }\n if (this.colorDropdownsLength <= 0) {\n return;\n }\n\n //get the game's reported colors to build out accepted filters array\n this.client.fetch('colorFilters', result => {\n for (let i = 0, l = result.data.length; i < l; i++) {\n if (\n !COLOR_BLIND_TYPES.includes(result.data[i].toLowerCase())\n ) {\n this.warn(`${result.data[i]} is an invalid color vision name`);\n continue;\n }\n this.colors.push(result.data[i].toLowerCase());\n }\n\n this.defaultValue = this.colors[0];\n\n for (let i = 0; i < this.radioGroupsLength; i++) {\n //Hide any radio buttons that aren't in the game's filter list.\n for (const key in this.radioGroups[i].radioGroup) {\n this.radioGroups[i].radioGroup[key].style.display = this.colors.includes(this.radioGroups[i].radioGroup[key].value.toLowerCase()) ? '' : 'none';\n }\n }\n\n this.canEmit = true;\n\n if (this.sendAfterFetch) {\n this.sendAllProperties();\n }\n });\n\n }.bind(this)\n );\n }\n\n /**\n * @memberof ColorVisionPlugin\n */\n start() {\n const data = SavedData.read(ColorVisionPlugin.colorVisionKey);\n\n if (COLOR_BLIND_TYPES.includes(data)) {\n this.currentValue = data;\n }\n\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n*\n* Sends initial caption properties to the application\n* @memberof ColorVisionPlugin\n*/\n sendAllProperties() {\n if (this.canEmit) {\n this.sendProperty(ColorVisionPlugin.colorVisionKey, this.currentValue);\n } else {\n this.sendAfterFetch = true;\n }\n }\n\n /**\n * Get the ColorVisionPlugin key\n * @readonly\n * @static\n * @memberof ColorVisionPlugin\n * @returns {string}\n */\n static get colorVisionKey() {\n return 'colorVision';\n }\n\n}\n","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class HitAreaScalePlugin\n * @property {object[]} sliders an array of all slider objects attached to ControlSensitivityPlugin\n * @extends {SliderPlugin}\n * \n */\nexport class HitAreaScalePlugin extends SliderPlugin {\n /**\n * Creates an instance of HitAreaScalePlugin.\n * @param {string | HTMLElement} hitAreaScaleSliders The selector or HTMLElement for the slider\n * @param {number} [defaultHitAreaScale=0.5] The default hit area scale value\n * @memberof HitAreaScalePlugin\n */\n constructor(hitAreaScaleSliders, { defaultHitAreaScale = 0.5 } = {}) {\n super(hitAreaScaleSliders, 'Hit-Area-Scale-Plugin', { defaultValue: defaultHitAreaScale, featureName: HitAreaScalePlugin.hitAreaScaleKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onHitAreaScaleChange.bind(this));\n }\n }\n\n /**\n * @memberof HitAreaScalePlugin\n * @param {Event} target\n * @param {string} control\n */\n onHitAreaScaleChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(HitAreaScalePlugin.hitAreaScaleKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof HitAreaScalePlugin\n * @returns {string}\n */\n static get hitAreaScaleKey() {\n return 'hitAreaScale';\n }\n}\n","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class DragThresholdScalePlugin\n * @extends {SliderPlugin}\n */\nexport class DragThresholdScalePlugin extends SliderPlugin {\n /**\n * Creates an instance of DragThresholdScalePlugin.\n * @param {string | HTMLElement} params.dragThresholdScaleSliders\n * @param {number} [defaultDragThresholdScale=0.5]\n * @memberof DragThresholdScalePlugin\n */\n constructor(dragThresholdScaleSliders, { defaultDragThresholdScale = 0.5 } = {}) {\n super(dragThresholdScaleSliders, 'Drag-Threshold-Scale-Plugin', { defaultValue: defaultDragThresholdScale, featureName: DragThresholdScalePlugin.dragThresholdScaleKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onDragThresholdScaleChange.bind(this));\n }\n }\n\n /**\n * @memberof DragThresholdScalePlugin\n * @param {Event} target\n * @param {string} control\n */\n onDragThresholdScaleChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(DragThresholdScalePlugin.dragThresholdScaleKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof DragThresholdScalePlugin\n * @returns {string}\n */\n static get dragThresholdScaleKey() {\n return 'dragThresholdScale';\n }\n}","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class HealthPlugin\n * @extends {SliderPlugin}\n */\nexport class HealthPlugin extends SliderPlugin {\n /**\n * Creates an instance of HealthPlugin.\n * @param {string | HTMLElement} healthSliders\n * @param {number} [defaultHealth=0.5]\n * @memberof HealthPlugin\n */\n constructor(healthSliders, {defaultHealth = 0.5 } = {}) {\n super(healthSliders, 'Health-Scale-Plugin', { defaultValue:defaultHealth, featureName: HealthPlugin.healthKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onHealthChange.bind(this));\n }\n }\n\n /**\n * @memberof HealthPlugin\n * @param {Event} e\n */\n onHealthChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(HealthPlugin.healthKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof HealthPlugin\n * @returns {string}\n */\n static get healthKey() {\n return 'health';\n }\n}","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class ObjectCountPlugin\n * @property {object[]} sliders an array of all slider objects attached to ObjectCountPlugin\n * @extends {SliderPlugin}\n */\nexport class ObjectCountPlugin extends SliderPlugin {\n /**\n * Creates an instance of ObjectCountPlugin.\n * @param {string | HTMLElement} objectCountSliders selector string or HTML Element for the input(s)\n * @param {number} [defaultObjectCount=0.5] The default value for the slider\n * @memberof ObjectCountPlugin\n */\n constructor(objectCountSliders, { defaultObjectCount = 0.5 } = {}) {\n super(objectCountSliders, 'Object-Count-Plugin', { defaultValue: defaultObjectCount, featureName: ObjectCountPlugin.objectCountKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onObjectCountChange.bind(this));\n }\n }\n\n /**\n * @memberof ObjectCountPlugin\n * @param {Event} target\n * @param {string} control\n */\n onObjectCountChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(ObjectCountPlugin.objectCountKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof ObjectCountPlugin\n * @returns {string}\n */\n static get objectCountKey() {\n return 'objectCount';\n }\n}","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class CompletionPercentagePlugin\n * @property {object[]} sliders an array of all slider objects attached to CompletePercentagePlugin\n * @extends {SliderPlugin}\n */\nexport class CompletionPercentagePlugin extends SliderPlugin {\n /**\n * Creates an instance of CompletionPercentagePlugin.\n * @param {string | HTMLElement} completionPercentageSliders The selector or HTMLSliderElement of the slider\n * @param {number} [defaultCompletionPercentage=0.5] Default selected completion percentage\n * @memberof CompletionPercentagePlugin\n */\n constructor(completionPercentageSliders, { defaultCompletionPercentage = 0.5 } = {}) {\n super(completionPercentageSliders, 'Completion-Percentage-Plugin', { defaultValue: defaultCompletionPercentage, featureName: CompletionPercentagePlugin.completionPercentageKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onCompletionPercentageChange.bind(this));\n }\n }\n\n /**\n * @memberof CompletionPercentagePlugin\n * @param {Event} e\n */\n onCompletionPercentageChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(CompletionPercentagePlugin.completionPercentageKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof CompletionPercentagePlugin\n * @returns {string}\n */\n static get completionPercentageKey() {\n return 'completionPercentage';\n }\n}","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class SpeedScalePlugin\n * @extends {SliderPlugin}\n */\nexport class SpeedScalePlugin extends SliderPlugin {\n /**\n *Creates an instance of SpeedScalePlugin.\n * @param {string | HTMLElement} speedScaleSliders selector string or HTML Element for the input(s)\n * @param {number} [defaultSpeedScale=0.5] The default value for the speed scale slider\n * @memberof SpeedScalePlugin\n */\n constructor(speedScaleSliders, { defaultSpeedScale = 0.5 } = {}) {\n super(speedScaleSliders, 'Speed-Scale-Plugin', { defaultValue: defaultSpeedScale, featureName: SpeedScalePlugin.speedScaleKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onSpeedScaleChange.bind(this));\n }\n }\n\n /**\n * @memberof SpeedScalePlugin\n * @param {Event} e\n */\n onSpeedScaleChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(SpeedScalePlugin.speedScaleKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof SpeedScalePlugin\n * @return {string}\n */\n static get speedScaleKey() {\n return 'speedScale';\n }\n}","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class TimersScalePlugin\n * @property {number} currentValue\n * @extends {SliderPlugin}\n */\nexport class TimersScalePlugin extends SliderPlugin {\n /**\n * Creates an instance of TimersScalePlugin.\n * @param {string | HTMLElement} timersScaleSliders selector string or HTML Element for the input(s)\n * @param {number} [defaultTimersScale=0.5] Default Value for the timer scale slider\n * @memberof TimersScalePlugin\n */\n constructor(timersScaleSliders, { defaultTimersScale = 0.5 } = {}) {\n super(timersScaleSliders, 'Timers-Scale-Plugin', { defaultValue: defaultTimersScale, featureName: TimersScalePlugin.timersScaleKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onTimersScaleChange.bind(this));\n }\n }\n\n /**\n * @memberof TimersScalePlugin\n * @param {Event} e\n */\n onTimersScaleChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(TimersScalePlugin.timersScaleKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof TimersScalePlugin\n * @return {string}\n */\n static get timersScaleKey() {\n return 'timersScale';\n }\n}","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class InputCountPlugin\n * @property {object[]} sliders an array of all slider objects attached to InputCountPlugin\n * @extends {SliderPlugin}\n */\nexport class InputCountPlugin extends SliderPlugin {\n /**\n * Creates an instance of InputCountPlugin.\n * @param {string | HTMLElement} inputCountSliders selector string or HTML Element for the input(s)\n * @param {number} [defaultInputCount=0.5] The default value for the slider\n * @memberof InputCountPlugin\n */\n constructor(inputCountSliders, { defaultInputCount = 0.5 } = {}) {\n super(inputCountSliders, 'Input-Count-Plugin', { defaultValue: defaultInputCount, featureName: InputCountPlugin.inputCountKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onInputCountChange.bind(this));\n }\n }\n\n /**\n * @memberof InputCountPlugin\n * @param {Event} target\n * @param {string} control\n */\n onInputCountChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(InputCountPlugin.inputCountKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof InputCountPlugin\n * @returns {string}\n */\n static get inputCountKey() {\n return 'inputCount';\n }\n}","import { ButtonPlugin } from '../base-plugins/ButtonPlugin';\nimport { Button } from '../ui-elements';\n\n/**\n * A Springroll plugin to easily set up togglable fullscreen\n */\nexport class FullScreenPlugin extends ButtonPlugin {\n \n /**\n * Creates an instance of FullscreenPlugin\n * \n * @param {string | string[]} buttonSelector The selector for the element to be made fullscreen\n */\n constructor(buttonSelector) {\n super({\n name: FullScreenPlugin.fullscreenKey\n }); \n\n this._toggleButtons = [];\n this.iFrame = null;\n\n this.sendAllProperties = this.sendAllProperties.bind(this);\n\n if (Array.isArray(buttonSelector)) {\n // If input is an array, join the selectors into one string\n buttonSelector = buttonSelector.join(', ');\n }\n\n console.log(buttonSelector);\n \n this.toggleButton = document.querySelectorAll(buttonSelector);\n\n\n this.toggleButton.forEach((button) => {\n this._toggleButtons.push(new Button({\n button: button,\n onClick: this.toggleFullScreen.bind(this),\n channel: FullScreenPlugin.fullscreenKey\n }));\n });\n \n\n document.addEventListener('fullscreenchange', () => {\n this.sendAllProperties();\n \n this._toggleButtons.forEach((button) => {\n button.button.classList.toggle('--fullScreen');\n });\n\n });\n }\n\n /**\n * @memberof FullScreenPlugin\n */\n init({ iframe }) {\n this.iFrame = iframe;\n // Handle the features request\n this.client.on(\n 'features',\n function($event) {\n for (let i = 0; i < this.fullscreenElement; i ++) {\n this._toggleButtons[i].displayButton($event.data);\n }\n\n }.bind(this)\n );\n }\n /**\n * @memberof FullScreenPlugin\n */\n start() {\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * Sends initial fullScreen properties to the application\n * @memberof FullScreenTogglePlugin\n */\n sendAllProperties() {\n this.sendProperty(FullScreenPlugin.fullscreenKey, document.fullscreenElement != null ? 'true' : 'false');\n }\n\n /**\n * Toggles fullscreen on this.iFrame. Must be from a user generated event\n */\n toggleFullScreen() {\n if (!document.fullscreenElement) {\n this.iFrame.requestFullscreen().then(() => {\n this.sendAllProperties();\n }).catch((err) => {\n console.log(err);\n });\n } else {\n document.exitFullscreen();\n this.sendAllProperties();\n }\n }\n\n /**\n * Returns true if there is a fullscreen element and false if not\n * @returns { boolean } \n */\n get isFullScreen() {\n return (document.fullscreenElement || // basic\n document.webkitIsFullscreen || //Webkit browsers\n document.mozFullScreen ) // Firefox\n != true; // Ensure boolean output\n }\n\n /** \n * @readonly\n * @static\n * @memberof FullscreenPlugin\n */\n static get fullscreenKey() {\n return 'fullScreen';\n }\n}"],"names":["global","globalThis","self","support","Symbol","Blob","e","viewClasses","isArrayBufferView","ArrayBuffer","isView","obj","indexOf","Object","prototype","toString","call","normalizeName","name","String","test","TypeError","toLowerCase","normalizeValue","value","iteratorFor","items","iterator","next","shift","done","undefined","Headers","headers","this","map","forEach","append","Array","isArray","header","getOwnPropertyNames","consumed","body","bodyUsed","Promise","reject","fileReaderReady","reader","resolve","onload","result","onerror","error","readBlobAsArrayBuffer","blob","FileReader","promise","readAsArrayBuffer","bufferClone","buf","slice","view","Uint8Array","byteLength","set","buffer","Body","_initBody","_bodyInit","_bodyText","isPrototypeOf","_bodyBlob","FormData","_bodyFormData","URLSearchParams","DataView","_bodyArrayBuffer","get","type","rejected","Error","arrayBuffer","isConsumed","byteOffset","then","text","readAsText","readBlobAsText","chars","length","i","fromCharCode","join","readArrayBufferAsText","formData","decode","json","JSON","parse","oldValue","has","hasOwnProperty","callback","thisArg","keys","push","values","entries","methods","Request","input","options","url","credentials","method","mode","signal","upcased","toUpperCase","normalizeMethod","referrer","cache","reParamSearch","replace","Date","getTime","form","trim","split","bytes","decodeURIComponent","Response","bodyInit","status","ok","statusText","clone","response","redirectStatuses","redirect","RangeError","location","DOMException","err","message","stack","create","constructor","fetch","init","request","aborted","xhr","XMLHttpRequest","abortXhr","abort","rawHeaders","getAllResponseHeaders","substr","line","parts","key","responseURL","responseText","setTimeout","ontimeout","onabort","open","href","fixUrl","withCredentials","responseType","setRequestHeader","addEventListener","onreadystatechange","readyState","removeEventListener","send","polyfill","check","it","Math","window","Function","domIterables","CSSRuleList","CSSStyleDeclaration","CSSValueList","ClientRectList","DOMRectList","DOMStringList","DOMTokenList","DataTransferItemList","FileList","HTMLAllCollection","HTMLCollection","HTMLFormElement","HTMLSelectElement","MediaList","MimeTypeArray","NamedNodeMap","NodeList","PaintRequestList","Plugin","PluginArray","SVGLengthList","SVGNumberList","SVGPathSegList","SVGPointList","SVGStringList","SVGTransformList","SourceBufferList","StyleSheetList","TextTrackCueList","TextTrackList","TouchList","documentAll","document","all","documentAll_1","IS_HTMLDDA","require$$0","isCallable","argument","require$$1","isObject","EXISTS","createElement","documentCreateElement","classList","DOMTokenListPrototype","domTokenListPrototype","fails","exec","functionBindNative","bind","NATIVE_BIND","FunctionPrototype","uncurryThisWithBind","functionUncurryThis","fn","apply","arguments","uncurryThis","stringSlice","classofRaw","functionUncurryThisClause","$String","tryToString","$TypeError","aCallable","require$$2","functionBindContext","that","classof","$Object","indexedObject","propertyIsEnumerable","isNullOrUndefined","requireObjectCoercible","toObject","ceil","floor","mathTrunc","trunc","x","n","toIntegerOrInfinity","number","min","toLength","lengthOfArrayLike","defineProperty","defineGlobalProperty","configurable","writable","SHARED","sharedStore","store","sharedModule","version","copyright","license","source","match","hasOwnProperty_1","hasOwn","id","postfix","random","uid","engineUserAgent","navigator","userAgent","process","Deno","versions","v8","engineV8Version","V8_VERSION","symbolConstructorDetection","getOwnPropertySymbols","symbol","sham","useSymbolAsUid","shared","require$$3","NATIVE_SYMBOL","require$$4","USE_SYMBOL_AS_UID","require$$5","WellKnownSymbolsStore","createWellKnownSymbol","withoutSetter","wellKnownSymbol","toStringTagSupport","TO_STRING_TAG_SUPPORT","TO_STRING_TAG","CORRECT_ARGUMENTS","O","tag","tryGet","callee","getBuiltIn","namespace","functionToString","inspectSource","noop","empty","construct","constructorRegExp","INCORRECT_TO_STRING","isConstructorModern","isConstructorLegacy","isConstructor","called","SPECIES","$Array","arraySpeciesConstructor","originalArray","C","arraySpeciesCreate","IndexedObject","createMethod","TYPE","IS_MAP","IS_FILTER","IS_SOME","IS_EVERY","IS_FIND_INDEX","IS_FILTER_REJECT","NO_HOLES","$this","callbackfn","specificCreate","boundFunction","index","target","arrayIteration","filter","some","every","find","findIndex","filterReject","arrayMethodIsStrict","METHOD_NAME","$forEach","arrayForEach","descriptors","ie8DomDefine","a","v8PrototypeDefineBug","anObject","functionCall","objectIsPrototypeOf","isSymbol","$Symbol","getMethod","V","P","func","ordinaryToPrimitive","pref","val","valueOf","TO_PRIMITIVE","toPrimitive","exoticToPrim","toPropertyKey","DESCRIPTORS","IE8_DOM_DEFINE","V8_PROTOTYPE_DEFINE_BUG","$defineProperty","$getOwnPropertyDescriptor","getOwnPropertyDescriptor","ENUMERABLE","CONFIGURABLE","WRITABLE","objectDefineProperty","f","Attributes","current","enumerable","createPropertyDescriptor","bitmap","definePropertyModule","createNonEnumerableProperty","object","DOMIterables","handlePrototype","CollectionPrototype","COLLECTION_NAME","toIndexedObject","max","toAbsoluteIndex","integer","IS_INCLUDES","el","fromIndex","arrayIncludes","includes","hiddenKeys","objectKeysInternal","names","enumBugKeys","internalObjectKeys","objectKeys","objectDefineProperties","defineProperties","Properties","props","activeXDocument","html","sharedKey","definePropertiesModule","PROTOTYPE","SCRIPT","IE_PROTO","require$$6","EmptyConstructor","scriptTag","content","LT","NullProtoObjectViaActiveX","write","close","temp","parentWindow","NullProtoObject","ActiveXObject","iframeDocument","iframe","JS","domain","style","display","appendChild","src","contentWindow","F","objectCreate","UNSCOPABLES","ArrayPrototype","addToUnscopables","iterators","WeakMap","NATIVE_WEAK_MAP","require$$7","OBJECT_ALREADY_INITIALIZED","state","metadata","facade","STATE","internalState","enforce","getterFor","$propertyIsEnumerable","NASHORN_BUG","objectPropertyIsEnumerable","descriptor","propertyIsEnumerableModule","objectGetOwnPropertyDescriptor","getDescriptor","functionName","PROPER","CONFIGURABLE_FUNCTION_NAME","enforceInternalState","getInternalState","CONFIGURABLE_LENGTH","TEMPLATE","makeBuiltIn","makeBuiltInModule","exports","getter","setter","arity","defineBuiltIn","simple","unsafe","nonConfigurable","nonWritable","concat","objectGetOwnPropertyNames","objectGetOwnPropertySymbols","IteratorPrototype","PrototypeOfArrayIteratorPrototype","arrayIterator","getOwnPropertyNamesModule","getOwnPropertySymbolsModule","ownKeys","getOwnPropertyDescriptorModule","replacement","isForced","feature","detection","data","normalize","POLYFILL","NATIVE","string","isForced_1","copyConstructorProperties","exceptions","_export","targetProperty","sourceProperty","TARGET","GLOBAL","STATIC","stat","dontCallGetSet","forced","correctPrototypeGetter","getPrototypeOf","CORRECT_PROTOTYPE_GETTER","ObjectPrototype","objectGetPrototypeOf","ITERATOR","BUGGY_SAFARI_ITERATORS","NEW_ITERATOR_PROTOTYPE","iteratorsCore","setToStringTag","TAG","Iterators","returnThis","uncurryThisAccessor","aPossiblePrototype","objectSetPrototypeOf","setPrototypeOf","CORRECT_SETTER","proto","__proto__","$","createIteratorConstructor","IteratorConstructor","NAME","ENUMERABLE_NEXT","require$$8","require$$9","require$$10","require$$12","PROPER_FUNCTION_NAME","require$$13","require$$11","KEYS","VALUES","ENTRIES","iteratorDefine","Iterable","DEFAULT","IS_SET","FORCED","CurrentIteratorPrototype","KEY","getIterationMethod","KIND","defaultIterator","IterablePrototype","INCORRECT_VALUES_NAME","nativeIterator","anyNativeIterator","createIterResultObject","InternalStateModule","defineIterator","ARRAY_ITERATOR","setInternalState","es_array_iterator","iterated","kind","Arguments","ArrayIteratorMethods","ArrayValues","path","$indexOf","nativeIndexOf","NEGATIVE_ZERO","searchElement","createProperty","propertyKey","arrayMethodHasSpeciesSupport","array","foo","Boolean","doesNotExceedSafeInteger","IS_CONCAT_SPREADABLE","IS_CONCAT_SPREADABLE_SUPPORT","isConcatSpreadable","spreadable","arg","k","len","E","A","$assign","assign","objectAssign","b","B","alphabet","chr","T","argumentsLength","S","j","$location","defer","channel","port","engineIsNode","defineBuiltInAccessor","setSpecies","CONSTRUCTOR_NAME","Constructor","anInstance","Prototype","aConstructor","functionApply","Reflect","arraySlice","engineIsIos","validateArgumentsLength","passed","required","IS_IOS","IS_NODE","setImmediate","clear","clearImmediate","Dispatch","MessageChannel","counter","queue","ONREADYSTATECHANGE","run","runner","eventListener","event","globalPostMessageDefer","postMessage","protocol","host","handler","args","nextTick","now","port2","port1","onmessage","importScripts","removeChild","task","Queue","head","tail","add","item","entry","notify","toggle","node","engineIsIosPebble","Pebble","engineIsWebosWebkit","macrotask","IS_IOS_PEBBLE","IS_WEBOS_WEBKIT","MutationObserver","WebKitMutationObserver","queueMicrotaskDescriptor","microtask","flush","parent","exit","enter","createTextNode","observe","characterData","microtask_1","perform","promiseNativeConstructor","engineIsDeno","engineIsBrowser","NativePromiseConstructor","IS_BROWSER","IS_DENO","SUBCLASSING","NATIVE_PROMISE_REJECTION_EVENT","PromiseRejectionEvent","FORCED_PROMISE_CONSTRUCTOR","PROMISE_CONSTRUCTOR_SOURCE","GLOBAL_CORE_JS_PROMISE","FakePromise","promiseConstructorDetection","CONSTRUCTOR","REJECTION_EVENT","PromiseCapability","$$resolve","$$reject","newPromiseCapability","Internal","OwnPromiseCapability","nativeThen","speciesConstructor","defaultConstructor","require$$14","require$$15","hostReportErrors","console","require$$17","require$$18","require$$19","require$$20","newPromiseCapabilityModule","require$$22","PROMISE","require$$21","NATIVE_PROMISE_SUBCLASSING","getInternalPromiseState","NativePromisePrototype","PromiseConstructor","PromisePrototype","newGenericPromiseCapability","DISPATCH_EVENT","createEvent","dispatchEvent","UNHANDLED_REJECTION","isThenable","callReaction","reaction","exited","fail","rejection","onHandleUnhandled","isReject","notified","reactions","onUnhandled","reason","initEvent","isUnhandled","emit","unwrap","internalReject","internalResolve","wrapper","executor","onFulfilled","onRejected","PromiseWrapper","wrap","getIteratorMethod","isArrayIteratorMethod","getIterator","usingIterator","iteratorMethod","iteratorClose","innerResult","innerError","Result","stopped","ResultPrototype","iterate","iterable","unboundFunction","iterFn","step","AS_ENTRIES","IS_RECORD","IS_ITERATOR","INTERRUPTED","stop","condition","callFn","SAFE_CLOSING","iteratorWithReturn","return","from","checkCorrectnessOfIteration","SKIP_CLOSING","ITERATION_SUPPORT","promiseStaticsIncorrectIteration","capability","$promiseResolve","remaining","alreadyCalled","real","catch","race","r","promiseResolve","promiseCapability","re1","re2","regexpFlags","hasIndices","ignoreCase","multiline","dotAll","unicode","unicodeSets","sticky","$RegExp","RegExp","UNSUPPORTED_Y","re","lastIndex","MISSED_STICKY","regexpStickyHelpers","BROKEN_CARET","regexpUnsupportedDotAll","flags","regexpUnsupportedNcg","groups","stickyHelpers","UNSUPPORTED_DOT_ALL","UNSUPPORTED_NCG","nativeReplace","nativeExec","patchedExec","charAt","UPDATES_LAST_INDEX_WRONG","NPCG_INCLUDED","reCopy","group","str","raw","charsAdded","strCopy","Features","_classCallCheck","_createClass","canvas","getContext","Worker","msPointerEnabled","msMaxTouchPoints","pointerEnabled","maxTouchPoints","webaudio","htmlAudio","capabilities","basic","features","ui","sizes","touch","size","screen","width","height","xsmall","small","medium","large","xlarge","webgl","webAudio","charCodeAt","CONVERT_TO_STRING","pos","first","second","position","codeAt","STRING_ITERATOR","point","$filter","$find","FIND","SKIPS_HOLES","t","PluginManager","_ref","_ref$plugins","plugins","client","Bellhop","preloading","hidden","receive","hiddenSend","_this","preloads","_loop","preload","preloadFailed","warn","l","plugin","trigger","start","Container","_PluginManager","_inherits","_openRemote","_super","_createSuper","iframeOrSelector","_ref$context","context","HTMLIFrameElement","querySelector","backgroundColor","loaded","loading","release","_context","onLoading","_assertThisInitialized","onLoadDone","onEndGame","onLocalError","initClient","setupPlugins","remove","reset","$event","setAttribute","on","connect","userPath","_this2","_ref2","_ref2$singlePlay","singlePlay","_ref2$playOptions","playOptions","_internalOpen","playOptionsQueryString","encodeURIComponent","stringify","respond","_typeof","_asyncToGenerator","_regeneratorRuntime","mark","_callee","api","_ref3","_ref3$query","query","_ref3$singlePlay","_ref3$playOptions","_args","prev","sent","success","_x","newContext","PageVisibility","onFocus","onBlur","_onFocus","_onBlur","enabled","_enabled","onToggle","enable","$includes","whitespaces","ltrim","rtrim","stringTrim","end","$trim","forcedStringTrimMethod","regExpFlags","RegExpPrototype","$toString","getRegExpFlags","R","TO_STRING","nativeToString","NOT_GENERIC","INCORRECT_NAME","SavedData","dbName","db","dbVersion","additions","deletions","indexedDB","onsuccess","onupgradeneeded","stores","createObjectStore","storeName","indexes","transaction","objectStore","createIndex","indexName","keyPath","deleteIndex","deleteObjectStore","deleteDatabase","IDBOpen","tx","oncomplete","updateRequest","put","delete","_this3","readRequest","_this4","count","getAllKeys","getAll","dBOpenRequest","localStorage","removeItem","sessionStorage","setItem","getItem","BasePlugin","_preload","sendAllProperties","_","prop","disableSend","warningText","ButtonPlugin","_BasePlugin","sendMutes","container","button","HTMLButtonElement","muted","changeMutedState","sendProperty","htmlButton","HTMLElement","MATCH","isRegExp","notARegExp","correctIsRegExpLogic","regexp","error1","error2","stringIndexOf","searchString","$getOwnPropertyNames","fin","windowNames","objectGetOwnPropertyNamesExternal","getWindowNames","arrayBufferNonExtensible","isExtensible","ARRAY_BUFFER_NON_EXTENSIBLE","$isExtensible","objectIsExtensible","freezing","preventExtensions","getOwnPropertyNamesExternalModule","FREEZING","REQUIRED","METADATA","setMetadata","objectID","weakData","meta","internalMetadataModule","splice","fastKey","getWeakData","onFreeze","inheritIfRequired","dummy","Wrapper","NewTarget","NewTargetPrototype","InternalMetadataModule","defineBuiltIns","internalStateGetterFor","collectionStrong","getConstructor","ADDER","last","define","previous","getEntry","removed","setStrong","ITERATOR_NAME","getInternalCollectionState","getInternalIteratorState","common","IS_WEAK","NativeConstructor","NativePrototype","exported","fixMethod","uncurriedNativeMethod","instance","HASNT_CHAINING","THROWS_ON_PRIMITIVES","ACCEPT_ITERABLES","BUGGY_ZERO","$instance","collection","nativeKeys","$map","TO_ENTRIES","$values","RadioGroup","selector","controlName","_ref$featureName","featureName","defaultValue","pluginName","radioElements","querySelectorAll","radioGroup","_possibleConstructorReturn","radio","checked","valuesArray","_toConsumableArray","Set","callBack","RadioGroupPlugin","cssSelector","supportedValues","initialValue","radioCount","selectors","_currentValue","radioGroups","setUpRadios","radioGroupsLength","hasOnly","hasDuplicateValues","property","newValue","thisNumberValue","require$$16","NUMBER","NativeNumber","NumberPrototype","toNumber","third","radix","maxCode","digits","code","NaN","parseInt","NumberWrapper","primValue","toNumeric","Number","Slider","slider","control","_ref$min","_ref$max","_ref$step","_ref$defaultValue","sliderValue","setUpSlider","read","Button","onClick","className","SliderPlugin","_ref$minValue","minValue","_ref$maxValue","maxValue","sliders","setUpSliders","slidersLength","displaySlider","currentValue","sliderRange","DEFAULT_CAPTIONS_STYLES","background","color","edge","font","align","DEFAULT_COLOR_STYLE","INVERTED_COLOR_STYLE","FONT_SIZE_VALUES","COLOR_VALUES","ALIGN_VALUES","CaptionsStylePlugin","_ButtonPlugin","fontSizeRadios","colorRadios","alignmentRadios","_ref$defaultFontSize","defaultFontSize","_ref$defaultColor","defaultColor","_ref$defaultAlignment","defaultAlignment","captionsStyles","captionStyleKey","fontSizeSelectors","colorSelectors","alignmentSelectors","setUpFontSizeRadios","setUpColorRadios","setUpAlignmentRadios","_captionsMuted","alignmentRadiosLength","fontSizeRadiosLength","colorRadiosLength","enableRadioEvents","onColorChange","onAlignmentChange","onFontSizeChange","_step","_iterator","_createForOfIteratorHelper","radios","s","displayRadios","setCaptionsStyles","styles","_step2","_iterator2","resetState","_this5","CaptionsTogglePlugin","captionsButtons","_captionsButtons","captionsButtonClick","captionsButtonLength","displayButton","captionsToggleKey","captionsMuted","_setMuteProp","HelpPlugin","helpButtons","_helpButtons","helpButtonClick","paused","_helpEnabled","onPause","helpButtonsLength","helpEnabled","getAttribute","hints","PausePlugin","pauseButton","manageOwnVisibility","_manageOwnVisibility","_appBlurred","_containerBlurred","_focusTimer","_isManualPause","_keepFocus","_paused","focusApp","manageFocus","onKeepFocus","onPauseToggle","pauseDisabled","_pauseButton","pageVisibility","onContainerFocus","onContainerBlur","pauseKey","hasDom","focus","blur","blurApp","clearTimeout","pause","disablePause","buttons","SoundPlugin","soundButtons","musicButtons","sfxButtons","voButtons","soundSliders","musicSliders","sfxSliders","voSliders","saved","soundMutedKey","_soundMuted","_musicMuted","_voMuted","_sfxMuted","_musicMutedByUser","_soundMutedByUser","_sfxMutedByUser","_voMutedByUser","soundMuteEnabled","musicMuteEnabled","sfxMuteEnabled","voMuteEnabled","soundVolume","musicVolume","sfxVolume","voVolume","soundVolumeKey","newSlider","musicVolumeKey","sfxVolumeKey","voVolumeKey","onSoundToggle","soundKey","onMusicToggle","onSFXToggle","onVOToggle","soundSlidersLength","musicSlidersLength","sfxSlidersLength","voSlidersLength","soundButtonsLength","musicButtonsLength","sfxButtonsLength","voButtonsLength","enableSliderEvents","onSoundVolumeChange","onMusicVolumeChange","onSFXVolumeChange","onVOVolumeChange","soundMuted","musicMuted","sfxMuted","voMuted","_checkSoundMute","element","sound","music","sfx","vo","soundVolumeEnabled","musicVolumeEnabled","sfxVolumeEnabled","voVolumeEnabled","enableButton","musicMutedKey","sfxMutedKey","voMutedKey","setMuteProp","_soundButton","_musicButton","_sfxButton","_voButton","SavedDataHandler","savedData","record","IDBAdd","IDBUpdate","IDBRemove","IDBRead","IDBReadAll","IDBGetVersion","IDBClose","IDBDeleteDB","UserDataPlugin","onUserDataRemove","onUserDataRead","onUserDataWrite","onIDBAdd","onIDBOpen","onIDBRead","onIDBReadAll","onIDBRemove","onIDBUpdate","onIDBClose","onIDBGetVersion","onIDBDeleteDB","savedDataHandler","_ref3$data","_ref4","_ref4$data","_ref4$data$dbVersion","_ref4$data$additions","_ref4$data$deletions","_ref5","_this6","_ref5$data","_ref6","_this7","_ref6$data","_ref7","_this8","_ref7$data","_ref8","_this9","_ref8$data","_ref9","_this10","_ref9$data","_ref10","_this11","_ref11","_this12","_ref12","_this13","_ref12$data","PointerSizePlugin","_SliderPlugin","pointerSliders","_ref$defaultPointerSi","defaultPointerSize","pointerSizeKey","onPointerSizeChange","ButtonSizePlugin","buttonSliders","_ref$defaultButtonSiz","defaultButtonSize","buttonSizeKey","onButtonSizeChange","ControlSensitivityPlugin","sensitivitySliders","_ref$defaultSensitivi","defaultSensitivity","controlSensitivityKey","onControlSensitivityChange","KeyboardMapPlugin","keyContainers","_ref$customClassName","customClassName","bindKey","onKeyButtonClick","keyBindings","activekeyButton","sendAfterFetch","canEmit","keyContainersLength","textContent","actionName","preventDefault","currentKey","keyBindingKey","keyBinding","defaultKey","label","htmlFor","LayersPlugin","layersSliders","layersSliderKey","onLayerValueChange","SUPPORTED_POSITIONS","HUDPlugin","_RadioGroupPlugin","hudSelectorRadios","hudPositionKey","positions","onHUDSelect","hudPosition","COLOR_BLIND_TYPES","ColorVisionPlugin","colorVisionRadios","colorVisionKey","colors","colorVision","colorDropdownsLength","HitAreaScalePlugin","hitAreaScaleSliders","_ref$defaultHitAreaSc","defaultHitAreaScale","hitAreaScaleKey","onHitAreaScaleChange","DragThresholdScalePlugin","dragThresholdScaleSliders","_ref$defaultDragThres","defaultDragThresholdScale","dragThresholdScaleKey","onDragThresholdScaleChange","HealthPlugin","healthSliders","_ref$defaultHealth","defaultHealth","healthKey","onHealthChange","ObjectCountPlugin","objectCountSliders","_ref$defaultObjectCou","defaultObjectCount","objectCountKey","onObjectCountChange","CompletionPercentagePlugin","completionPercentageSliders","_ref$defaultCompletio","defaultCompletionPercentage","completionPercentageKey","onCompletionPercentageChange","SpeedScalePlugin","speedScaleSliders","_ref$defaultSpeedScal","defaultSpeedScale","speedScaleKey","onSpeedScaleChange","TimersScalePlugin","timersScaleSliders","_ref$defaultTimersSca","defaultTimersScale","timersScaleKey","onTimersScaleChange","InputCountPlugin","inputCountSliders","_ref$defaultInputCoun","defaultInputCount","inputCountKey","onInputCountChange","FullScreenPlugin","buttonSelector","fullscreenKey","_toggleButtons","iFrame","log","toggleButton","toggleFullScreen","fullscreenElement","exitFullscreen","requestFullscreen","webkitIsFullscreen","mozFullScreen"],"mappings":"AAAA,IAAIA,EACqB,oBAAfC,YAA8BA,YACrB,oBAATC,MAAwBA,WACb,IAAXF,GAA0BA,EAEhCG,EACY,oBAAqBH,EADjCG,EAEQ,WAAYH,GAAU,aAAcI,OAF5CD,EAIA,eAAgBH,GAChB,SAAUA,GACT,WACC,IAEE,OADA,IAAIK,MACG,CACR,CAAC,MAAOC,GACP,OAAO,CACT,CACF,CAPC,GANDH,EAcQ,aAAcH,EAdtBG,EAeW,gBAAiBH,EAOhC,GAAIG,EACF,IAAII,EAAc,CAChB,qBACA,sBACA,6BACA,sBACA,uBACA,sBACA,uBACA,wBACA,yBAGEC,EACFC,YAAYC,QACZ,SAASC,GACP,OAAOA,GAAOJ,EAAYK,QAAQC,OAAOC,UAAUC,SAASC,KAAKL,KAAS,GAIhF,SAASM,EAAcC,GAIrB,GAHoB,iBAATA,IACTA,EAAOC,OAAOD,IAEZ,6BAA6BE,KAAKF,IAAkB,KAATA,EAC7C,MAAM,IAAIG,UAAU,4CAA8CH,EAAO,KAE3E,OAAOA,EAAKI,aACd,CAEA,SAASC,EAAeC,GAItB,MAHqB,iBAAVA,IACTA,EAAQL,OAAOK,IAEVA,CACT,CAGA,SAASC,EAAYC,GACnB,IAAIC,EAAW,CACbC,KAAM,WACJ,IAAIJ,EAAQE,EAAMG,QAClB,MAAO,CAACC,UAAgBC,IAAVP,EAAqBA,MAAOA,EAC5C,GASF,OANIrB,IACFwB,EAASvB,OAAOuB,UAAY,WAC1B,OAAOA,IAIJA,CACT,CAEO,SAASK,EAAQC,GACtBC,KAAKC,IAAM,GAEPF,aAAmBD,EACrBC,EAAQG,SAAQ,SAASZ,EAAON,GAC9BgB,KAAKG,OAAOnB,EAAMM,EACnB,GAAEU,MACMI,MAAMC,QAAQN,GACvBA,EAAQG,SAAQ,SAASI,GACvBN,KAAKG,OAAOG,EAAO,GAAIA,EAA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gI,IAAA,QAAA1I,MAGA,WACEU,KAAK+1B,OAAO2C,GAAG,SAAU14B,KAAK4+B,mBAC9B5+B,KAAK+1B,OAAO2C,GAAG,WAAY14B,KAAK4+B,kBAClC,GAEA,CAAA52B,IAAA,oBAAA1I,MAKA,WACEU,KAAKy/B,aAAa6d,EAAiBE,cAA6C,MAA9BhyC,SAASsyC,kBAA4B,OAAS,QAClG,GAEA,CAAA91C,IAAA,mBAAA1I,MAGA,WAAmB,IAAAu5B,EAAA74B,KACZwL,SAASsyC,mBAOZtyC,SAASuyC,iBACT/9C,KAAK4+B,qBAPL5+B,KAAK09C,OAAOM,oBAAoB76C,MAAK,WACnC01B,EAAK+F,mBACP,IAAGtO,OAAM,SAACxpB,GACRykB,QAAQoyB,IAAI72C,EACd,GAKJ,GAEA,CAAAkB,IAAA,eAAApF,IAIA,WACE,OAGK,IAHG4I,SAASsyC,mBACftyC,SAASyyC,oBACTzyC,SAAS0yC,cAEb,IAEA,CAAA,CAAAl2C,IAAA,gBAAApF,IAKA,WACE,MAAO,YACT,KAAC06C,CAAA"} \ No newline at end of file +{"version":3,"file":"index.js","sources":["../node_modules/whatwg-fetch/fetch.js","../node_modules/core-js/internals/global.js","../node_modules/core-js/internals/dom-iterables.js","../node_modules/core-js/internals/document-all.js","../node_modules/core-js/internals/is-callable.js","../node_modules/core-js/internals/is-object.js","../node_modules/core-js/internals/document-create-element.js","../node_modules/core-js/internals/dom-token-list-prototype.js","../node_modules/core-js/internals/fails.js","../node_modules/core-js/internals/function-bind-native.js","../node_modules/core-js/internals/function-uncurry-this.js","../node_modules/core-js/internals/classof-raw.js","../node_modules/core-js/internals/function-uncurry-this-clause.js","../node_modules/core-js/internals/try-to-string.js","../node_modules/core-js/internals/a-callable.js","../node_modules/core-js/internals/function-bind-context.js","../node_modules/core-js/internals/indexed-object.js","../node_modules/core-js/internals/is-null-or-undefined.js","../node_modules/core-js/internals/require-object-coercible.js","../node_modules/core-js/internals/to-object.js","../node_modules/core-js/internals/math-trunc.js","../node_modules/core-js/internals/to-integer-or-infinity.js","../node_modules/core-js/internals/to-length.js","../node_modules/core-js/internals/length-of-array-like.js","../node_modules/core-js/internals/is-array.js","../node_modules/core-js/internals/define-global-property.js","../node_modules/core-js/internals/shared-store.js","../node_modules/core-js/internals/shared.js","../node_modules/core-js/internals/engine-v8-version.js","../node_modules/core-js/internals/has-own-property.js","../node_modules/core-js/internals/uid.js","../node_modules/core-js/internals/engine-user-agent.js","../node_modules/core-js/internals/symbol-constructor-detection.js","../node_modules/core-js/internals/use-symbol-as-uid.js","../node_modules/core-js/internals/well-known-symbol.js","../node_modules/core-js/internals/to-string-tag-support.js","../node_modules/core-js/internals/classof.js","../node_modules/core-js/internals/get-built-in.js","../node_modules/core-js/internals/inspect-source.js","../node_modules/core-js/internals/is-constructor.js","../node_modules/core-js/internals/array-species-constructor.js","../node_modules/core-js/internals/array-species-create.js","../node_modules/core-js/internals/array-iteration.js","../node_modules/core-js/internals/array-method-is-strict.js","../node_modules/core-js/internals/array-for-each.js","../node_modules/core-js/internals/descriptors.js","../node_modules/core-js/internals/ie8-dom-define.js","../node_modules/core-js/internals/v8-prototype-define-bug.js","../node_modules/core-js/internals/an-object.js","../node_modules/core-js/internals/function-call.js","../node_modules/core-js/internals/object-is-prototype-of.js","../node_modules/core-js/internals/is-symbol.js","../node_modules/core-js/internals/get-method.js","../node_modules/core-js/internals/ordinary-to-primitive.js","../node_modules/core-js/internals/to-primitive.js","../node_modules/core-js/internals/to-property-key.js","../node_modules/core-js/internals/object-define-property.js","../node_modules/core-js/internals/create-property-descriptor.js","../node_modules/core-js/internals/create-non-enumerable-property.js","../node_modules/core-js/modules/web.dom-collections.for-each.js","../node_modules/core-js/internals/to-indexed-object.js","../node_modules/core-js/internals/to-absolute-index.js","../node_modules/core-js/internals/array-includes.js","../node_modules/core-js/internals/hidden-keys.js","../node_modules/core-js/internals/object-keys-internal.js","../node_modules/core-js/internals/enum-bug-keys.js","../node_modules/core-js/internals/object-keys.js","../node_modules/core-js/internals/object-define-properties.js","../node_modules/core-js/internals/html.js","../node_modules/core-js/internals/object-create.js","../node_modules/core-js/internals/shared-key.js","../node_modules/core-js/internals/add-to-unscopables.js","../node_modules/core-js/internals/internal-state.js","../node_modules/core-js/internals/iterators.js","../node_modules/core-js/internals/weak-map-basic-detection.js","../node_modules/core-js/internals/object-property-is-enumerable.js","../node_modules/core-js/internals/object-get-own-property-descriptor.js","../node_modules/core-js/internals/function-name.js","../node_modules/core-js/internals/make-built-in.js","../node_modules/core-js/internals/define-built-in.js","../node_modules/core-js/internals/object-get-own-property-names.js","../node_modules/core-js/internals/object-get-own-property-symbols.js","../node_modules/core-js/internals/own-keys.js","../node_modules/core-js/internals/iterators-core.js","../node_modules/core-js/internals/copy-constructor-properties.js","../node_modules/core-js/internals/is-forced.js","../node_modules/core-js/internals/export.js","../node_modules/core-js/internals/correct-prototype-getter.js","../node_modules/core-js/internals/object-get-prototype-of.js","../node_modules/core-js/internals/set-to-string-tag.js","../node_modules/core-js/internals/iterator-create-constructor.js","../node_modules/core-js/internals/function-uncurry-this-accessor.js","../node_modules/core-js/internals/a-possible-prototype.js","../node_modules/core-js/internals/object-set-prototype-of.js","../node_modules/core-js/internals/iterator-define.js","../node_modules/core-js/internals/create-iter-result-object.js","../node_modules/core-js/modules/es.array.iterator.js","../node_modules/core-js/modules/web.dom-collections.iterator.js","../node_modules/core-js/internals/path.js","../node_modules/core-js/modules/es.array.index-of.js","../node_modules/core-js/internals/does-not-exceed-safe-integer.js","../node_modules/core-js/internals/create-property.js","../node_modules/core-js/internals/array-method-has-species-support.js","../node_modules/core-js/modules/es.array.concat.js","../node_modules/core-js/internals/object-assign.js","../node_modules/core-js/modules/es.object.assign.js","../node_modules/core-js/internals/object-to-string.js","../node_modules/core-js/modules/es.object.to-string.js","../node_modules/core-js/internals/engine-is-node.js","../node_modules/core-js/internals/task.js","../node_modules/core-js/internals/define-built-in-accessor.js","../node_modules/core-js/internals/set-species.js","../node_modules/core-js/internals/an-instance.js","../node_modules/core-js/internals/a-constructor.js","../node_modules/core-js/internals/species-constructor.js","../node_modules/core-js/internals/function-apply.js","../node_modules/core-js/internals/array-slice.js","../node_modules/core-js/internals/validate-arguments-length.js","../node_modules/core-js/internals/engine-is-ios.js","../node_modules/core-js/internals/queue.js","../node_modules/core-js/internals/microtask.js","../node_modules/core-js/internals/engine-is-ios-pebble.js","../node_modules/core-js/internals/engine-is-webos-webkit.js","../node_modules/core-js/internals/perform.js","../node_modules/core-js/internals/promise-native-constructor.js","../node_modules/core-js/internals/engine-is-deno.js","../node_modules/core-js/internals/engine-is-browser.js","../node_modules/core-js/internals/promise-constructor-detection.js","../node_modules/core-js/internals/new-promise-capability.js","../node_modules/core-js/modules/es.promise.constructor.js","../node_modules/core-js/internals/host-report-errors.js","../node_modules/core-js/internals/is-array-iterator-method.js","../node_modules/core-js/internals/get-iterator-method.js","../node_modules/core-js/internals/get-iterator.js","../node_modules/core-js/internals/iterator-close.js","../node_modules/core-js/internals/iterate.js","../node_modules/core-js/internals/check-correctness-of-iteration.js","../node_modules/core-js/internals/promise-statics-incorrect-iteration.js","../node_modules/core-js/modules/es.promise.all.js","../node_modules/core-js/modules/es.promise.catch.js","../node_modules/core-js/modules/es.promise.race.js","../node_modules/core-js/modules/es.promise.reject.js","../node_modules/core-js/internals/promise-resolve.js","../node_modules/core-js/modules/es.promise.resolve.js","../node_modules/core-js/internals/to-string.js","../node_modules/core-js/internals/regexp-exec.js","../node_modules/core-js/internals/regexp-flags.js","../node_modules/core-js/internals/regexp-sticky-helpers.js","../node_modules/core-js/internals/regexp-unsupported-dot-all.js","../node_modules/core-js/internals/regexp-unsupported-ncg.js","../node_modules/core-js/modules/es.regexp.exec.js","../src/Features.js","../node_modules/core-js/internals/string-multibyte.js","../node_modules/core-js/modules/es.string.iterator.js","../node_modules/core-js/modules/es.array.filter.js","../node_modules/core-js/modules/es.array.find.js","../node_modules/bellhop-iframe/dist/bellhop.js","../src/PluginManager.js","../src/Container.js","../src/PageVisibility.js","../node_modules/core-js/modules/es.array.includes.js","../node_modules/core-js/internals/whitespaces.js","../node_modules/core-js/internals/string-trim.js","../node_modules/core-js/internals/string-trim-forced.js","../node_modules/core-js/modules/es.string.trim.js","../node_modules/core-js/internals/regexp-get-flags.js","../node_modules/core-js/modules/es.regexp.to-string.js","../src/SavedData.js","../src/base-plugins/BasePlugin.js","../src/base-plugins/ButtonPlugin.js","../node_modules/core-js/internals/is-regexp.js","../node_modules/core-js/internals/not-a-regexp.js","../node_modules/core-js/internals/correct-is-regexp-logic.js","../node_modules/core-js/modules/es.string.includes.js","../node_modules/core-js/internals/array-slice-simple.js","../node_modules/core-js/internals/object-get-own-property-names-external.js","../node_modules/core-js/internals/array-buffer-non-extensible.js","../node_modules/core-js/internals/object-is-extensible.js","../node_modules/core-js/internals/freezing.js","../node_modules/core-js/internals/internal-metadata.js","../node_modules/core-js/internals/inherit-if-required.js","../node_modules/core-js/internals/collection.js","../node_modules/core-js/internals/define-built-ins.js","../node_modules/core-js/internals/collection-strong.js","../node_modules/core-js/modules/es.set.constructor.js","../node_modules/core-js/modules/es.object.keys.js","../node_modules/core-js/modules/es.array.map.js","../node_modules/core-js/internals/object-to-array.js","../node_modules/core-js/modules/es.object.values.js","../src/ui-elements/RadioGroup.js","../src/base-plugins/RadioGroupPlugin.js","../node_modules/core-js/internals/this-number-value.js","../node_modules/core-js/modules/es.number.constructor.js","../src/ui-elements/Slider.js","../src/ui-elements/Button.js","../src/base-plugins/SliderPlugin.js","../src/plugins/CaptionsStylePlugin.js","../src/plugins/CaptionsTogglePlugin.js","../src/plugins/HelpPlugin.js","../src/plugins/PausePlugin.js","../src/plugins/SoundPlugin.js","../src/SavedDataHandler.js","../src/plugins/UserDataPlugin.js","../src/plugins/PointerSizePlugin.js","../src/plugins/ButtonSizePlugin.js","../src/plugins/ControlSensitivityPlugin.js","../src/plugins/KeyboardMapPlugin.js","../src/plugins/LayersPlugin.js","../src/plugins/HUDPlugin.js","../src/plugins/ColorVisionPlugin.js","../src/plugins/HitAreaScalePlugin.js","../src/plugins/DragThresholdScalePlugin.js","../src/plugins/HealthPlugin.js","../src/plugins/ObjectCountPlugin.js","../src/plugins/CompletionPercentagePlugin.js","../src/plugins/SpeedScalePlugin.js","../src/plugins/TimersScalePlugin.js","../src/plugins/InputCountPlugin.js","../src/plugins/FullScreenPlugin.js"],"sourcesContent":["var global =\n (typeof globalThis !== 'undefined' && globalThis) ||\n (typeof self !== 'undefined' && self) ||\n (typeof global !== 'undefined' && global)\n\nvar support = {\n searchParams: 'URLSearchParams' in global,\n iterable: 'Symbol' in global && 'iterator' in Symbol,\n blob:\n 'FileReader' in global &&\n 'Blob' in global &&\n (function() {\n try {\n new Blob()\n return true\n } catch (e) {\n return false\n }\n })(),\n formData: 'FormData' in global,\n arrayBuffer: 'ArrayBuffer' in global\n}\n\nfunction isDataView(obj) {\n return obj && DataView.prototype.isPrototypeOf(obj)\n}\n\nif (support.arrayBuffer) {\n var viewClasses = [\n '[object Int8Array]',\n '[object Uint8Array]',\n '[object Uint8ClampedArray]',\n '[object Int16Array]',\n '[object Uint16Array]',\n '[object Int32Array]',\n '[object Uint32Array]',\n '[object Float32Array]',\n '[object Float64Array]'\n ]\n\n var isArrayBufferView =\n ArrayBuffer.isView ||\n function(obj) {\n return obj && viewClasses.indexOf(Object.prototype.toString.call(obj)) > -1\n }\n}\n\nfunction normalizeName(name) {\n if (typeof name !== 'string') {\n name = String(name)\n }\n if (/[^a-z0-9\\-#$%&'*+.^_`|~!]/i.test(name) || name === '') {\n throw new TypeError('Invalid character in header field name: \"' + name + '\"')\n }\n return name.toLowerCase()\n}\n\nfunction normalizeValue(value) {\n if (typeof value !== 'string') {\n value = String(value)\n }\n return value\n}\n\n// Build a destructive iterator for the value list\nfunction iteratorFor(items) {\n var iterator = {\n next: function() {\n var value = items.shift()\n return {done: value === undefined, value: value}\n }\n }\n\n if (support.iterable) {\n iterator[Symbol.iterator] = function() {\n return iterator\n }\n }\n\n return iterator\n}\n\nexport function Headers(headers) {\n this.map = {}\n\n if (headers instanceof Headers) {\n headers.forEach(function(value, name) {\n this.append(name, value)\n }, this)\n } else if (Array.isArray(headers)) {\n headers.forEach(function(header) {\n this.append(header[0], header[1])\n }, this)\n } else if (headers) {\n Object.getOwnPropertyNames(headers).forEach(function(name) {\n this.append(name, headers[name])\n }, this)\n }\n}\n\nHeaders.prototype.append = function(name, value) {\n name = normalizeName(name)\n value = normalizeValue(value)\n var oldValue = this.map[name]\n this.map[name] = oldValue ? oldValue + ', ' + value : value\n}\n\nHeaders.prototype['delete'] = function(name) {\n delete this.map[normalizeName(name)]\n}\n\nHeaders.prototype.get = function(name) {\n name = normalizeName(name)\n return this.has(name) ? this.map[name] : null\n}\n\nHeaders.prototype.has = function(name) {\n return this.map.hasOwnProperty(normalizeName(name))\n}\n\nHeaders.prototype.set = function(name, value) {\n this.map[normalizeName(name)] = normalizeValue(value)\n}\n\nHeaders.prototype.forEach = function(callback, thisArg) {\n for (var name in this.map) {\n if (this.map.hasOwnProperty(name)) {\n callback.call(thisArg, this.map[name], name, this)\n }\n }\n}\n\nHeaders.prototype.keys = function() {\n var items = []\n this.forEach(function(value, name) {\n items.push(name)\n })\n return iteratorFor(items)\n}\n\nHeaders.prototype.values = function() {\n var items = []\n this.forEach(function(value) {\n items.push(value)\n })\n return iteratorFor(items)\n}\n\nHeaders.prototype.entries = function() {\n var items = []\n this.forEach(function(value, name) {\n items.push([name, value])\n })\n return iteratorFor(items)\n}\n\nif (support.iterable) {\n Headers.prototype[Symbol.iterator] = Headers.prototype.entries\n}\n\nfunction consumed(body) {\n if (body.bodyUsed) {\n return Promise.reject(new TypeError('Already read'))\n }\n body.bodyUsed = true\n}\n\nfunction fileReaderReady(reader) {\n return new Promise(function(resolve, reject) {\n reader.onload = function() {\n resolve(reader.result)\n }\n reader.onerror = function() {\n reject(reader.error)\n }\n })\n}\n\nfunction readBlobAsArrayBuffer(blob) {\n var reader = new FileReader()\n var promise = fileReaderReady(reader)\n reader.readAsArrayBuffer(blob)\n return promise\n}\n\nfunction readBlobAsText(blob) {\n var reader = new FileReader()\n var promise = fileReaderReady(reader)\n reader.readAsText(blob)\n return promise\n}\n\nfunction readArrayBufferAsText(buf) {\n var view = new Uint8Array(buf)\n var chars = new Array(view.length)\n\n for (var i = 0; i < view.length; i++) {\n chars[i] = String.fromCharCode(view[i])\n }\n return chars.join('')\n}\n\nfunction bufferClone(buf) {\n if (buf.slice) {\n return buf.slice(0)\n } else {\n var view = new Uint8Array(buf.byteLength)\n view.set(new Uint8Array(buf))\n return view.buffer\n }\n}\n\nfunction Body() {\n this.bodyUsed = false\n\n this._initBody = function(body) {\n /*\n fetch-mock wraps the Response object in an ES6 Proxy to\n provide useful test harness features such as flush. However, on\n ES5 browsers without fetch or Proxy support pollyfills must be used;\n the proxy-pollyfill is unable to proxy an attribute unless it exists\n on the object before the Proxy is created. This change ensures\n Response.bodyUsed exists on the instance, while maintaining the\n semantic of setting Request.bodyUsed in the constructor before\n _initBody is called.\n */\n this.bodyUsed = this.bodyUsed\n this._bodyInit = body\n if (!body) {\n this._bodyText = ''\n } else if (typeof body === 'string') {\n this._bodyText = body\n } else if (support.blob && Blob.prototype.isPrototypeOf(body)) {\n this._bodyBlob = body\n } else if (support.formData && FormData.prototype.isPrototypeOf(body)) {\n this._bodyFormData = body\n } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {\n this._bodyText = body.toString()\n } else if (support.arrayBuffer && support.blob && isDataView(body)) {\n this._bodyArrayBuffer = bufferClone(body.buffer)\n // IE 10-11 can't handle a DataView body.\n this._bodyInit = new Blob([this._bodyArrayBuffer])\n } else if (support.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(body) || isArrayBufferView(body))) {\n this._bodyArrayBuffer = bufferClone(body)\n } else {\n this._bodyText = body = Object.prototype.toString.call(body)\n }\n\n if (!this.headers.get('content-type')) {\n if (typeof body === 'string') {\n this.headers.set('content-type', 'text/plain;charset=UTF-8')\n } else if (this._bodyBlob && this._bodyBlob.type) {\n this.headers.set('content-type', this._bodyBlob.type)\n } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {\n this.headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8')\n }\n }\n }\n\n if (support.blob) {\n this.blob = function() {\n var rejected = consumed(this)\n if (rejected) {\n return rejected\n }\n\n if (this._bodyBlob) {\n return Promise.resolve(this._bodyBlob)\n } else if (this._bodyArrayBuffer) {\n return Promise.resolve(new Blob([this._bodyArrayBuffer]))\n } else if (this._bodyFormData) {\n throw new Error('could not read FormData body as blob')\n } else {\n return Promise.resolve(new Blob([this._bodyText]))\n }\n }\n\n this.arrayBuffer = function() {\n if (this._bodyArrayBuffer) {\n var isConsumed = consumed(this)\n if (isConsumed) {\n return isConsumed\n }\n if (ArrayBuffer.isView(this._bodyArrayBuffer)) {\n return Promise.resolve(\n this._bodyArrayBuffer.buffer.slice(\n this._bodyArrayBuffer.byteOffset,\n this._bodyArrayBuffer.byteOffset + this._bodyArrayBuffer.byteLength\n )\n )\n } else {\n return Promise.resolve(this._bodyArrayBuffer)\n }\n } else {\n return this.blob().then(readBlobAsArrayBuffer)\n }\n }\n }\n\n this.text = function() {\n var rejected = consumed(this)\n if (rejected) {\n return rejected\n }\n\n if (this._bodyBlob) {\n return readBlobAsText(this._bodyBlob)\n } else if (this._bodyArrayBuffer) {\n return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer))\n } else if (this._bodyFormData) {\n throw new Error('could not read FormData body as text')\n } else {\n return Promise.resolve(this._bodyText)\n }\n }\n\n if (support.formData) {\n this.formData = function() {\n return this.text().then(decode)\n }\n }\n\n this.json = function() {\n return this.text().then(JSON.parse)\n }\n\n return this\n}\n\n// HTTP methods whose capitalization should be normalized\nvar methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT']\n\nfunction normalizeMethod(method) {\n var upcased = method.toUpperCase()\n return methods.indexOf(upcased) > -1 ? upcased : method\n}\n\nexport function Request(input, options) {\n if (!(this instanceof Request)) {\n throw new TypeError('Please use the \"new\" operator, this DOM object constructor cannot be called as a function.')\n }\n\n options = options || {}\n var body = options.body\n\n if (input instanceof Request) {\n if (input.bodyUsed) {\n throw new TypeError('Already read')\n }\n this.url = input.url\n this.credentials = input.credentials\n if (!options.headers) {\n this.headers = new Headers(input.headers)\n }\n this.method = input.method\n this.mode = input.mode\n this.signal = input.signal\n if (!body && input._bodyInit != null) {\n body = input._bodyInit\n input.bodyUsed = true\n }\n } else {\n this.url = String(input)\n }\n\n this.credentials = options.credentials || this.credentials || 'same-origin'\n if (options.headers || !this.headers) {\n this.headers = new Headers(options.headers)\n }\n this.method = normalizeMethod(options.method || this.method || 'GET')\n this.mode = options.mode || this.mode || null\n this.signal = options.signal || this.signal\n this.referrer = null\n\n if ((this.method === 'GET' || this.method === 'HEAD') && body) {\n throw new TypeError('Body not allowed for GET or HEAD requests')\n }\n this._initBody(body)\n\n if (this.method === 'GET' || this.method === 'HEAD') {\n if (options.cache === 'no-store' || options.cache === 'no-cache') {\n // Search for a '_' parameter in the query string\n var reParamSearch = /([?&])_=[^&]*/\n if (reParamSearch.test(this.url)) {\n // If it already exists then set the value with the current time\n this.url = this.url.replace(reParamSearch, '$1_=' + new Date().getTime())\n } else {\n // Otherwise add a new '_' parameter to the end with the current time\n var reQueryString = /\\?/\n this.url += (reQueryString.test(this.url) ? '&' : '?') + '_=' + new Date().getTime()\n }\n }\n }\n}\n\nRequest.prototype.clone = function() {\n return new Request(this, {body: this._bodyInit})\n}\n\nfunction decode(body) {\n var form = new FormData()\n body\n .trim()\n .split('&')\n .forEach(function(bytes) {\n if (bytes) {\n var split = bytes.split('=')\n var name = split.shift().replace(/\\+/g, ' ')\n var value = split.join('=').replace(/\\+/g, ' ')\n form.append(decodeURIComponent(name), decodeURIComponent(value))\n }\n })\n return form\n}\n\nfunction parseHeaders(rawHeaders) {\n var headers = new Headers()\n // Replace instances of \\r\\n and \\n followed by at least one space or horizontal tab with a space\n // https://tools.ietf.org/html/rfc7230#section-3.2\n var preProcessedHeaders = rawHeaders.replace(/\\r?\\n[\\t ]+/g, ' ')\n // Avoiding split via regex to work around a common IE11 bug with the core-js 3.6.0 regex polyfill\n // https://github.com/github/fetch/issues/748\n // https://github.com/zloirock/core-js/issues/751\n preProcessedHeaders\n .split('\\r')\n .map(function(header) {\n return header.indexOf('\\n') === 0 ? header.substr(1, header.length) : header\n })\n .forEach(function(line) {\n var parts = line.split(':')\n var key = parts.shift().trim()\n if (key) {\n var value = parts.join(':').trim()\n headers.append(key, value)\n }\n })\n return headers\n}\n\nBody.call(Request.prototype)\n\nexport function Response(bodyInit, options) {\n if (!(this instanceof Response)) {\n throw new TypeError('Please use the \"new\" operator, this DOM object constructor cannot be called as a function.')\n }\n if (!options) {\n options = {}\n }\n\n this.type = 'default'\n this.status = options.status === undefined ? 200 : options.status\n this.ok = this.status >= 200 && this.status < 300\n this.statusText = options.statusText === undefined ? '' : '' + options.statusText\n this.headers = new Headers(options.headers)\n this.url = options.url || ''\n this._initBody(bodyInit)\n}\n\nBody.call(Response.prototype)\n\nResponse.prototype.clone = function() {\n return new Response(this._bodyInit, {\n status: this.status,\n statusText: this.statusText,\n headers: new Headers(this.headers),\n url: this.url\n })\n}\n\nResponse.error = function() {\n var response = new Response(null, {status: 0, statusText: ''})\n response.type = 'error'\n return response\n}\n\nvar redirectStatuses = [301, 302, 303, 307, 308]\n\nResponse.redirect = function(url, status) {\n if (redirectStatuses.indexOf(status) === -1) {\n throw new RangeError('Invalid status code')\n }\n\n return new Response(null, {status: status, headers: {location: url}})\n}\n\nexport var DOMException = global.DOMException\ntry {\n new DOMException()\n} catch (err) {\n DOMException = function(message, name) {\n this.message = message\n this.name = name\n var error = Error(message)\n this.stack = error.stack\n }\n DOMException.prototype = Object.create(Error.prototype)\n DOMException.prototype.constructor = DOMException\n}\n\nexport function fetch(input, init) {\n return new Promise(function(resolve, reject) {\n var request = new Request(input, init)\n\n if (request.signal && request.signal.aborted) {\n return reject(new DOMException('Aborted', 'AbortError'))\n }\n\n var xhr = new XMLHttpRequest()\n\n function abortXhr() {\n xhr.abort()\n }\n\n xhr.onload = function() {\n var options = {\n status: xhr.status,\n statusText: xhr.statusText,\n headers: parseHeaders(xhr.getAllResponseHeaders() || '')\n }\n options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL')\n var body = 'response' in xhr ? xhr.response : xhr.responseText\n setTimeout(function() {\n resolve(new Response(body, options))\n }, 0)\n }\n\n xhr.onerror = function() {\n setTimeout(function() {\n reject(new TypeError('Network request failed'))\n }, 0)\n }\n\n xhr.ontimeout = function() {\n setTimeout(function() {\n reject(new TypeError('Network request failed'))\n }, 0)\n }\n\n xhr.onabort = function() {\n setTimeout(function() {\n reject(new DOMException('Aborted', 'AbortError'))\n }, 0)\n }\n\n function fixUrl(url) {\n try {\n return url === '' && global.location.href ? global.location.href : url\n } catch (e) {\n return url\n }\n }\n\n xhr.open(request.method, fixUrl(request.url), true)\n\n if (request.credentials === 'include') {\n xhr.withCredentials = true\n } else if (request.credentials === 'omit') {\n xhr.withCredentials = false\n }\n\n if ('responseType' in xhr) {\n if (support.blob) {\n xhr.responseType = 'blob'\n } else if (\n support.arrayBuffer &&\n request.headers.get('Content-Type') &&\n request.headers.get('Content-Type').indexOf('application/octet-stream') !== -1\n ) {\n xhr.responseType = 'arraybuffer'\n }\n }\n\n if (init && typeof init.headers === 'object' && !(init.headers instanceof Headers)) {\n Object.getOwnPropertyNames(init.headers).forEach(function(name) {\n xhr.setRequestHeader(name, normalizeValue(init.headers[name]))\n })\n } else {\n request.headers.forEach(function(value, name) {\n xhr.setRequestHeader(name, value)\n })\n }\n\n if (request.signal) {\n request.signal.addEventListener('abort', abortXhr)\n\n xhr.onreadystatechange = function() {\n // DONE (success or failure)\n if (xhr.readyState === 4) {\n request.signal.removeEventListener('abort', abortXhr)\n }\n }\n }\n\n xhr.send(typeof request._bodyInit === 'undefined' ? null : request._bodyInit)\n })\n}\n\nfetch.polyfill = true\n\nif (!global.fetch) {\n global.fetch = fetch\n global.Headers = Headers\n global.Request = Request\n global.Response = Response\n}\n","var check = function (it) {\n return it && it.Math == Math && it;\n};\n\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nmodule.exports =\n // eslint-disable-next-line es/no-global-this -- safe\n check(typeof globalThis == 'object' && globalThis) ||\n check(typeof window == 'object' && window) ||\n // eslint-disable-next-line no-restricted-globals -- safe\n check(typeof self == 'object' && self) ||\n check(typeof global == 'object' && global) ||\n // eslint-disable-next-line no-new-func -- fallback\n (function () { return this; })() || Function('return this')();\n","// iterable DOM collections\n// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods\nmodule.exports = {\n CSSRuleList: 0,\n CSSStyleDeclaration: 0,\n CSSValueList: 0,\n ClientRectList: 0,\n DOMRectList: 0,\n DOMStringList: 0,\n DOMTokenList: 1,\n DataTransferItemList: 0,\n FileList: 0,\n HTMLAllCollection: 0,\n HTMLCollection: 0,\n HTMLFormElement: 0,\n HTMLSelectElement: 0,\n MediaList: 0,\n MimeTypeArray: 0,\n NamedNodeMap: 0,\n NodeList: 1,\n PaintRequestList: 0,\n Plugin: 0,\n PluginArray: 0,\n SVGLengthList: 0,\n SVGNumberList: 0,\n SVGPathSegList: 0,\n SVGPointList: 0,\n SVGStringList: 0,\n SVGTransformList: 0,\n SourceBufferList: 0,\n StyleSheetList: 0,\n TextTrackCueList: 0,\n TextTrackList: 0,\n TouchList: 0\n};\n","var documentAll = typeof document == 'object' && document.all;\n\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot\n// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing\nvar IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;\n\nmodule.exports = {\n all: documentAll,\n IS_HTMLDDA: IS_HTMLDDA\n};\n","var $documentAll = require('../internals/document-all');\n\nvar documentAll = $documentAll.all;\n\n// `IsCallable` abstract operation\n// https://tc39.es/ecma262/#sec-iscallable\nmodule.exports = $documentAll.IS_HTMLDDA ? function (argument) {\n return typeof argument == 'function' || argument === documentAll;\n} : function (argument) {\n return typeof argument == 'function';\n};\n","var isCallable = require('../internals/is-callable');\nvar $documentAll = require('../internals/document-all');\n\nvar documentAll = $documentAll.all;\n\nmodule.exports = $documentAll.IS_HTMLDDA ? function (it) {\n return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll;\n} : function (it) {\n return typeof it == 'object' ? it !== null : isCallable(it);\n};\n","var global = require('../internals/global');\nvar isObject = require('../internals/is-object');\n\nvar document = global.document;\n// typeof document.createElement is 'object' in old IE\nvar EXISTS = isObject(document) && isObject(document.createElement);\n\nmodule.exports = function (it) {\n return EXISTS ? document.createElement(it) : {};\n};\n","// in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`\nvar documentCreateElement = require('../internals/document-create-element');\n\nvar classList = documentCreateElement('span').classList;\nvar DOMTokenListPrototype = classList && classList.constructor && classList.constructor.prototype;\n\nmodule.exports = DOMTokenListPrototype === Object.prototype ? undefined : DOMTokenListPrototype;\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (error) {\n return true;\n }\n};\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-function-prototype-bind -- safe\n var test = (function () { /* empty */ }).bind();\n // eslint-disable-next-line no-prototype-builtins -- safe\n return typeof test != 'function' || test.hasOwnProperty('prototype');\n});\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar FunctionPrototype = Function.prototype;\nvar call = FunctionPrototype.call;\nvar uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);\n\nmodule.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {\n return function () {\n return call.apply(fn, arguments);\n };\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nvar toString = uncurryThis({}.toString);\nvar stringSlice = uncurryThis(''.slice);\n\nmodule.exports = function (it) {\n return stringSlice(toString(it), 8, -1);\n};\n","var classofRaw = require('../internals/classof-raw');\nvar uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = function (fn) {\n // Nashorn bug:\n // https://github.com/zloirock/core-js/issues/1128\n // https://github.com/zloirock/core-js/issues/1130\n if (classofRaw(fn) === 'Function') return uncurryThis(fn);\n};\n","var $String = String;\n\nmodule.exports = function (argument) {\n try {\n return $String(argument);\n } catch (error) {\n return 'Object';\n }\n};\n","var isCallable = require('../internals/is-callable');\nvar tryToString = require('../internals/try-to-string');\n\nvar $TypeError = TypeError;\n\n// `Assert: IsCallable(argument) is true`\nmodule.exports = function (argument) {\n if (isCallable(argument)) return argument;\n throw $TypeError(tryToString(argument) + ' is not a function');\n};\n","var uncurryThis = require('../internals/function-uncurry-this-clause');\nvar aCallable = require('../internals/a-callable');\nvar NATIVE_BIND = require('../internals/function-bind-native');\n\nvar bind = uncurryThis(uncurryThis.bind);\n\n// optional / simple context binding\nmodule.exports = function (fn, that) {\n aCallable(fn);\n return that === undefined ? fn : NATIVE_BIND ? bind(fn, that) : function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar classof = require('../internals/classof-raw');\n\nvar $Object = Object;\nvar split = uncurryThis(''.split);\n\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\nmodule.exports = fails(function () {\n // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346\n // eslint-disable-next-line no-prototype-builtins -- safe\n return !$Object('z').propertyIsEnumerable(0);\n}) ? function (it) {\n return classof(it) == 'String' ? split(it, '') : $Object(it);\n} : $Object;\n","// we can't use just `it == null` since of `document.all` special case\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec\nmodule.exports = function (it) {\n return it === null || it === undefined;\n};\n","var isNullOrUndefined = require('../internals/is-null-or-undefined');\n\nvar $TypeError = TypeError;\n\n// `RequireObjectCoercible` abstract operation\n// https://tc39.es/ecma262/#sec-requireobjectcoercible\nmodule.exports = function (it) {\n if (isNullOrUndefined(it)) throw $TypeError(\"Can't call method on \" + it);\n return it;\n};\n","var requireObjectCoercible = require('../internals/require-object-coercible');\n\nvar $Object = Object;\n\n// `ToObject` abstract operation\n// https://tc39.es/ecma262/#sec-toobject\nmodule.exports = function (argument) {\n return $Object(requireObjectCoercible(argument));\n};\n","var ceil = Math.ceil;\nvar floor = Math.floor;\n\n// `Math.trunc` method\n// https://tc39.es/ecma262/#sec-math.trunc\n// eslint-disable-next-line es/no-math-trunc -- safe\nmodule.exports = Math.trunc || function trunc(x) {\n var n = +x;\n return (n > 0 ? floor : ceil)(n);\n};\n","var trunc = require('../internals/math-trunc');\n\n// `ToIntegerOrInfinity` abstract operation\n// https://tc39.es/ecma262/#sec-tointegerorinfinity\nmodule.exports = function (argument) {\n var number = +argument;\n // eslint-disable-next-line no-self-compare -- NaN check\n return number !== number || number === 0 ? 0 : trunc(number);\n};\n","var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar min = Math.min;\n\n// `ToLength` abstract operation\n// https://tc39.es/ecma262/#sec-tolength\nmodule.exports = function (argument) {\n return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991\n};\n","var toLength = require('../internals/to-length');\n\n// `LengthOfArrayLike` abstract operation\n// https://tc39.es/ecma262/#sec-lengthofarraylike\nmodule.exports = function (obj) {\n return toLength(obj.length);\n};\n","var classof = require('../internals/classof-raw');\n\n// `IsArray` abstract operation\n// https://tc39.es/ecma262/#sec-isarray\n// eslint-disable-next-line es/no-array-isarray -- safe\nmodule.exports = Array.isArray || function isArray(argument) {\n return classof(argument) == 'Array';\n};\n","var global = require('../internals/global');\n\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\n\nmodule.exports = function (key, value) {\n try {\n defineProperty(global, key, { value: value, configurable: true, writable: true });\n } catch (error) {\n global[key] = value;\n } return value;\n};\n","var global = require('../internals/global');\nvar defineGlobalProperty = require('../internals/define-global-property');\n\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || defineGlobalProperty(SHARED, {});\n\nmodule.exports = store;\n","var IS_PURE = require('../internals/is-pure');\nvar store = require('../internals/shared-store');\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: '3.28.0',\n mode: IS_PURE ? 'pure' : 'global',\n copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',\n license: 'https://github.com/zloirock/core-js/blob/v3.28.0/LICENSE',\n source: 'https://github.com/zloirock/core-js'\n});\n","var global = require('../internals/global');\nvar userAgent = require('../internals/engine-user-agent');\n\nvar process = global.process;\nvar Deno = global.Deno;\nvar versions = process && process.versions || Deno && Deno.version;\nvar v8 = versions && versions.v8;\nvar match, version;\n\nif (v8) {\n match = v8.split('.');\n // in old Chrome, versions of V8 isn't V8 = Chrome / 10\n // but their correct versions are not interesting for us\n version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);\n}\n\n// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`\n// so check `userAgent` even if `.v8` exists, but 0\nif (!version && userAgent) {\n match = userAgent.match(/Edge\\/(\\d+)/);\n if (!match || match[1] >= 74) {\n match = userAgent.match(/Chrome\\/(\\d+)/);\n if (match) version = +match[1];\n }\n}\n\nmodule.exports = version;\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar toObject = require('../internals/to-object');\n\nvar hasOwnProperty = uncurryThis({}.hasOwnProperty);\n\n// `HasOwnProperty` abstract operation\n// https://tc39.es/ecma262/#sec-hasownproperty\n// eslint-disable-next-line es/no-object-hasown -- safe\nmodule.exports = Object.hasOwn || function hasOwn(it, key) {\n return hasOwnProperty(toObject(it), key);\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nvar id = 0;\nvar postfix = Math.random();\nvar toString = uncurryThis(1.0.toString);\n\nmodule.exports = function (key) {\n return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);\n};\n","module.exports = typeof navigator != 'undefined' && String(navigator.userAgent) || '';\n","/* eslint-disable es/no-symbol -- required for testing */\nvar V8_VERSION = require('../internals/engine-v8-version');\nvar fails = require('../internals/fails');\n\n// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing\nmodule.exports = !!Object.getOwnPropertySymbols && !fails(function () {\n var symbol = Symbol();\n // Chrome 38 Symbol has incorrect toString conversion\n // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances\n return !String(symbol) || !(Object(symbol) instanceof Symbol) ||\n // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances\n !Symbol.sham && V8_VERSION && V8_VERSION < 41;\n});\n","/* eslint-disable es/no-symbol -- required for testing */\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\n\nmodule.exports = NATIVE_SYMBOL\n && !Symbol.sham\n && typeof Symbol.iterator == 'symbol';\n","var global = require('../internals/global');\nvar shared = require('../internals/shared');\nvar hasOwn = require('../internals/has-own-property');\nvar uid = require('../internals/uid');\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar Symbol = global.Symbol;\nvar WellKnownSymbolsStore = shared('wks');\nvar createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol['for'] || Symbol : Symbol && Symbol.withoutSetter || uid;\n\nmodule.exports = function (name) {\n if (!hasOwn(WellKnownSymbolsStore, name)) {\n WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn(Symbol, name)\n ? Symbol[name]\n : createWellKnownSymbol('Symbol.' + name);\n } return WellKnownSymbolsStore[name];\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar test = {};\n\ntest[TO_STRING_TAG] = 'z';\n\nmodule.exports = String(test) === '[object z]';\n","var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar isCallable = require('../internals/is-callable');\nvar classofRaw = require('../internals/classof-raw');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar $Object = Object;\n\n// ES3 wrong here\nvar CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function (it, key) {\n try {\n return it[key];\n } catch (error) { /* empty */ }\n};\n\n// getting tag from ES6+ `Object.prototype.toString`\nmodule.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {\n var O, tag, result;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag\n // builtinTag case\n : CORRECT_ARGUMENTS ? classofRaw(O)\n // ES3 arguments fallback\n : (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;\n};\n","var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar aFunction = function (argument) {\n return isCallable(argument) ? argument : undefined;\n};\n\nmodule.exports = function (namespace, method) {\n return arguments.length < 2 ? aFunction(global[namespace]) : global[namespace] && global[namespace][method];\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar isCallable = require('../internals/is-callable');\nvar store = require('../internals/shared-store');\n\nvar functionToString = uncurryThis(Function.toString);\n\n// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper\nif (!isCallable(store.inspectSource)) {\n store.inspectSource = function (it) {\n return functionToString(it);\n };\n}\n\nmodule.exports = store.inspectSource;\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar classof = require('../internals/classof');\nvar getBuiltIn = require('../internals/get-built-in');\nvar inspectSource = require('../internals/inspect-source');\n\nvar noop = function () { /* empty */ };\nvar empty = [];\nvar construct = getBuiltIn('Reflect', 'construct');\nvar constructorRegExp = /^\\s*(?:class|function)\\b/;\nvar exec = uncurryThis(constructorRegExp.exec);\nvar INCORRECT_TO_STRING = !constructorRegExp.exec(noop);\n\nvar isConstructorModern = function isConstructor(argument) {\n if (!isCallable(argument)) return false;\n try {\n construct(noop, empty, argument);\n return true;\n } catch (error) {\n return false;\n }\n};\n\nvar isConstructorLegacy = function isConstructor(argument) {\n if (!isCallable(argument)) return false;\n switch (classof(argument)) {\n case 'AsyncFunction':\n case 'GeneratorFunction':\n case 'AsyncGeneratorFunction': return false;\n }\n try {\n // we can't check .prototype since constructors produced by .bind haven't it\n // `Function#toString` throws on some built-it function in some legacy engines\n // (for example, `DOMQuad` and similar in FF41-)\n return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));\n } catch (error) {\n return true;\n }\n};\n\nisConstructorLegacy.sham = true;\n\n// `IsConstructor` abstract operation\n// https://tc39.es/ecma262/#sec-isconstructor\nmodule.exports = !construct || fails(function () {\n var called;\n return isConstructorModern(isConstructorModern.call)\n || !isConstructorModern(Object)\n || !isConstructorModern(function () { called = true; })\n || called;\n}) ? isConstructorLegacy : isConstructorModern;\n","var isArray = require('../internals/is-array');\nvar isConstructor = require('../internals/is-constructor');\nvar isObject = require('../internals/is-object');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar SPECIES = wellKnownSymbol('species');\nvar $Array = Array;\n\n// a part of `ArraySpeciesCreate` abstract operation\n// https://tc39.es/ecma262/#sec-arrayspeciescreate\nmodule.exports = function (originalArray) {\n var C;\n if (isArray(originalArray)) {\n C = originalArray.constructor;\n // cross-realm fallback\n if (isConstructor(C) && (C === $Array || isArray(C.prototype))) C = undefined;\n else if (isObject(C)) {\n C = C[SPECIES];\n if (C === null) C = undefined;\n }\n } return C === undefined ? $Array : C;\n};\n","var arraySpeciesConstructor = require('../internals/array-species-constructor');\n\n// `ArraySpeciesCreate` abstract operation\n// https://tc39.es/ecma262/#sec-arrayspeciescreate\nmodule.exports = function (originalArray, length) {\n return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);\n};\n","var bind = require('../internals/function-bind-context');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar IndexedObject = require('../internals/indexed-object');\nvar toObject = require('../internals/to-object');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar arraySpeciesCreate = require('../internals/array-species-create');\n\nvar push = uncurryThis([].push);\n\n// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation\nvar createMethod = function (TYPE) {\n var IS_MAP = TYPE == 1;\n var IS_FILTER = TYPE == 2;\n var IS_SOME = TYPE == 3;\n var IS_EVERY = TYPE == 4;\n var IS_FIND_INDEX = TYPE == 6;\n var IS_FILTER_REJECT = TYPE == 7;\n var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;\n return function ($this, callbackfn, that, specificCreate) {\n var O = toObject($this);\n var self = IndexedObject(O);\n var boundFunction = bind(callbackfn, that);\n var length = lengthOfArrayLike(self);\n var index = 0;\n var create = specificCreate || arraySpeciesCreate;\n var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;\n var value, result;\n for (;length > index; index++) if (NO_HOLES || index in self) {\n value = self[index];\n result = boundFunction(value, index, O);\n if (TYPE) {\n if (IS_MAP) target[index] = result; // map\n else if (result) switch (TYPE) {\n case 3: return true; // some\n case 5: return value; // find\n case 6: return index; // findIndex\n case 2: push(target, value); // filter\n } else switch (TYPE) {\n case 4: return false; // every\n case 7: push(target, value); // filterReject\n }\n }\n }\n return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.forEach` method\n // https://tc39.es/ecma262/#sec-array.prototype.foreach\n forEach: createMethod(0),\n // `Array.prototype.map` method\n // https://tc39.es/ecma262/#sec-array.prototype.map\n map: createMethod(1),\n // `Array.prototype.filter` method\n // https://tc39.es/ecma262/#sec-array.prototype.filter\n filter: createMethod(2),\n // `Array.prototype.some` method\n // https://tc39.es/ecma262/#sec-array.prototype.some\n some: createMethod(3),\n // `Array.prototype.every` method\n // https://tc39.es/ecma262/#sec-array.prototype.every\n every: createMethod(4),\n // `Array.prototype.find` method\n // https://tc39.es/ecma262/#sec-array.prototype.find\n find: createMethod(5),\n // `Array.prototype.findIndex` method\n // https://tc39.es/ecma262/#sec-array.prototype.findIndex\n findIndex: createMethod(6),\n // `Array.prototype.filterReject` method\n // https://github.com/tc39/proposal-array-filtering\n filterReject: createMethod(7)\n};\n","'use strict';\nvar fails = require('../internals/fails');\n\nmodule.exports = function (METHOD_NAME, argument) {\n var method = [][METHOD_NAME];\n return !!method && fails(function () {\n // eslint-disable-next-line no-useless-call -- required for testing\n method.call(null, argument || function () { return 1; }, 1);\n });\n};\n","'use strict';\nvar $forEach = require('../internals/array-iteration').forEach;\nvar arrayMethodIsStrict = require('../internals/array-method-is-strict');\n\nvar STRICT_METHOD = arrayMethodIsStrict('forEach');\n\n// `Array.prototype.forEach` method implementation\n// https://tc39.es/ecma262/#sec-array.prototype.foreach\nmodule.exports = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {\n return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n// eslint-disable-next-line es/no-array-prototype-foreach -- safe\n} : [].forEach;\n","var fails = require('../internals/fails');\n\n// Detect IE8's incomplete defineProperty implementation\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;\n});\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\nvar createElement = require('../internals/document-create-element');\n\n// Thanks to IE8 for its funny defineProperty\nmodule.exports = !DESCRIPTORS && !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(createElement('div'), 'a', {\n get: function () { return 7; }\n }).a != 7;\n});\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\n\n// V8 ~ Chrome 36-\n// https://bugs.chromium.org/p/v8/issues/detail?id=3334\nmodule.exports = DESCRIPTORS && fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(function () { /* empty */ }, 'prototype', {\n value: 42,\n writable: false\n }).prototype != 42;\n});\n","var isObject = require('../internals/is-object');\n\nvar $String = String;\nvar $TypeError = TypeError;\n\n// `Assert: Type(argument) is Object`\nmodule.exports = function (argument) {\n if (isObject(argument)) return argument;\n throw $TypeError($String(argument) + ' is not an object');\n};\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar call = Function.prototype.call;\n\nmodule.exports = NATIVE_BIND ? call.bind(call) : function () {\n return call.apply(call, arguments);\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = uncurryThis({}.isPrototypeOf);\n","var getBuiltIn = require('../internals/get-built-in');\nvar isCallable = require('../internals/is-callable');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar $Object = Object;\n\nmodule.exports = USE_SYMBOL_AS_UID ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n var $Symbol = getBuiltIn('Symbol');\n return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));\n};\n","var aCallable = require('../internals/a-callable');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\n\n// `GetMethod` abstract operation\n// https://tc39.es/ecma262/#sec-getmethod\nmodule.exports = function (V, P) {\n var func = V[P];\n return isNullOrUndefined(func) ? undefined : aCallable(func);\n};\n","var call = require('../internals/function-call');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\n\nvar $TypeError = TypeError;\n\n// `OrdinaryToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-ordinarytoprimitive\nmodule.exports = function (input, pref) {\n var fn, val;\n if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;\n if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n throw $TypeError(\"Can't convert object to primitive value\");\n};\n","var call = require('../internals/function-call');\nvar isObject = require('../internals/is-object');\nvar isSymbol = require('../internals/is-symbol');\nvar getMethod = require('../internals/get-method');\nvar ordinaryToPrimitive = require('../internals/ordinary-to-primitive');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar $TypeError = TypeError;\nvar TO_PRIMITIVE = wellKnownSymbol('toPrimitive');\n\n// `ToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-toprimitive\nmodule.exports = function (input, pref) {\n if (!isObject(input) || isSymbol(input)) return input;\n var exoticToPrim = getMethod(input, TO_PRIMITIVE);\n var result;\n if (exoticToPrim) {\n if (pref === undefined) pref = 'default';\n result = call(exoticToPrim, input, pref);\n if (!isObject(result) || isSymbol(result)) return result;\n throw $TypeError(\"Can't convert object to primitive value\");\n }\n if (pref === undefined) pref = 'number';\n return ordinaryToPrimitive(input, pref);\n};\n","var toPrimitive = require('../internals/to-primitive');\nvar isSymbol = require('../internals/is-symbol');\n\n// `ToPropertyKey` abstract operation\n// https://tc39.es/ecma262/#sec-topropertykey\nmodule.exports = function (argument) {\n var key = toPrimitive(argument, 'string');\n return isSymbol(key) ? key : key + '';\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\nvar V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug');\nvar anObject = require('../internals/an-object');\nvar toPropertyKey = require('../internals/to-property-key');\n\nvar $TypeError = TypeError;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar $defineProperty = Object.defineProperty;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar ENUMERABLE = 'enumerable';\nvar CONFIGURABLE = 'configurable';\nvar WRITABLE = 'writable';\n\n// `Object.defineProperty` method\n// https://tc39.es/ecma262/#sec-object.defineproperty\nexports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {\n var current = $getOwnPropertyDescriptor(O, P);\n if (current && current[WRITABLE]) {\n O[P] = Attributes.value;\n Attributes = {\n configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],\n enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],\n writable: false\n };\n }\n } return $defineProperty(O, P, Attributes);\n} : $defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return $defineProperty(O, P, Attributes);\n } catch (error) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw $TypeError('Accessors not supported');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = DESCRIPTORS ? function (object, key, value) {\n return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","var global = require('../internals/global');\nvar DOMIterables = require('../internals/dom-iterables');\nvar DOMTokenListPrototype = require('../internals/dom-token-list-prototype');\nvar forEach = require('../internals/array-for-each');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\n\nvar handlePrototype = function (CollectionPrototype) {\n // some Chrome versions have non-configurable methods on DOMTokenList\n if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try {\n createNonEnumerableProperty(CollectionPrototype, 'forEach', forEach);\n } catch (error) {\n CollectionPrototype.forEach = forEach;\n }\n};\n\nfor (var COLLECTION_NAME in DOMIterables) {\n if (DOMIterables[COLLECTION_NAME]) {\n handlePrototype(global[COLLECTION_NAME] && global[COLLECTION_NAME].prototype);\n }\n}\n\nhandlePrototype(DOMTokenListPrototype);\n","// toObject with fallback for non-array-like ES3 strings\nvar IndexedObject = require('../internals/indexed-object');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nmodule.exports = function (it) {\n return IndexedObject(requireObjectCoercible(it));\n};\n","var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar max = Math.max;\nvar min = Math.min;\n\n// Helper for a popular repeating case of the spec:\n// Let integer be ? ToInteger(index).\n// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).\nmodule.exports = function (index, length) {\n var integer = toIntegerOrInfinity(index);\n return integer < 0 ? max(integer + length, 0) : min(integer, length);\n};\n","var toIndexedObject = require('../internals/to-indexed-object');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\n\n// `Array.prototype.{ indexOf, includes }` methods implementation\nvar createMethod = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIndexedObject($this);\n var length = lengthOfArrayLike(O);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare -- NaN check\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare -- NaN check\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) {\n if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.includes` method\n // https://tc39.es/ecma262/#sec-array.prototype.includes\n includes: createMethod(true),\n // `Array.prototype.indexOf` method\n // https://tc39.es/ecma262/#sec-array.prototype.indexof\n indexOf: createMethod(false)\n};\n","module.exports = {};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar hasOwn = require('../internals/has-own-property');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar indexOf = require('../internals/array-includes').indexOf;\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar push = uncurryThis([].push);\n\nmodule.exports = function (object, names) {\n var O = toIndexedObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (hasOwn(O, key = names[i++])) {\n ~indexOf(result, key) || push(result, key);\n }\n return result;\n};\n","// IE8- don't enum bug keys\nmodule.exports = [\n 'constructor',\n 'hasOwnProperty',\n 'isPrototypeOf',\n 'propertyIsEnumerable',\n 'toLocaleString',\n 'toString',\n 'valueOf'\n];\n","var internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\n// `Object.keys` method\n// https://tc39.es/ecma262/#sec-object.keys\n// eslint-disable-next-line es/no-object-keys -- safe\nmodule.exports = Object.keys || function keys(O) {\n return internalObjectKeys(O, enumBugKeys);\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug');\nvar definePropertyModule = require('../internals/object-define-property');\nvar anObject = require('../internals/an-object');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar objectKeys = require('../internals/object-keys');\n\n// `Object.defineProperties` method\n// https://tc39.es/ecma262/#sec-object.defineproperties\n// eslint-disable-next-line es/no-object-defineproperties -- safe\nexports.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var props = toIndexedObject(Properties);\n var keys = objectKeys(Properties);\n var length = keys.length;\n var index = 0;\n var key;\n while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);\n return O;\n};\n","var getBuiltIn = require('../internals/get-built-in');\n\nmodule.exports = getBuiltIn('document', 'documentElement');\n","/* global ActiveXObject -- old IE, WSH */\nvar anObject = require('../internals/an-object');\nvar definePropertiesModule = require('../internals/object-define-properties');\nvar enumBugKeys = require('../internals/enum-bug-keys');\nvar hiddenKeys = require('../internals/hidden-keys');\nvar html = require('../internals/html');\nvar documentCreateElement = require('../internals/document-create-element');\nvar sharedKey = require('../internals/shared-key');\n\nvar GT = '>';\nvar LT = '<';\nvar PROTOTYPE = 'prototype';\nvar SCRIPT = 'script';\nvar IE_PROTO = sharedKey('IE_PROTO');\n\nvar EmptyConstructor = function () { /* empty */ };\n\nvar scriptTag = function (content) {\n return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;\n};\n\n// Create object with fake `null` prototype: use ActiveX Object with cleared prototype\nvar NullProtoObjectViaActiveX = function (activeXDocument) {\n activeXDocument.write(scriptTag(''));\n activeXDocument.close();\n var temp = activeXDocument.parentWindow.Object;\n activeXDocument = null; // avoid memory leak\n return temp;\n};\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar NullProtoObjectViaIFrame = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = documentCreateElement('iframe');\n var JS = 'java' + SCRIPT + ':';\n var iframeDocument;\n iframe.style.display = 'none';\n html.appendChild(iframe);\n // https://github.com/zloirock/core-js/issues/475\n iframe.src = String(JS);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(scriptTag('document.F=Object'));\n iframeDocument.close();\n return iframeDocument.F;\n};\n\n// Check for document.domain and active x support\n// No need to use active x approach when document.domain is not set\n// see https://github.com/es-shims/es5-shim/issues/150\n// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346\n// avoid IE GC bug\nvar activeXDocument;\nvar NullProtoObject = function () {\n try {\n activeXDocument = new ActiveXObject('htmlfile');\n } catch (error) { /* ignore */ }\n NullProtoObject = typeof document != 'undefined'\n ? document.domain && activeXDocument\n ? NullProtoObjectViaActiveX(activeXDocument) // old IE\n : NullProtoObjectViaIFrame()\n : NullProtoObjectViaActiveX(activeXDocument); // WSH\n var length = enumBugKeys.length;\n while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];\n return NullProtoObject();\n};\n\nhiddenKeys[IE_PROTO] = true;\n\n// `Object.create` method\n// https://tc39.es/ecma262/#sec-object.create\n// eslint-disable-next-line es/no-object-create -- safe\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n EmptyConstructor[PROTOTYPE] = anObject(O);\n result = new EmptyConstructor();\n EmptyConstructor[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = NullProtoObject();\n return Properties === undefined ? result : definePropertiesModule.f(result, Properties);\n};\n","var shared = require('../internals/shared');\nvar uid = require('../internals/uid');\n\nvar keys = shared('keys');\n\nmodule.exports = function (key) {\n return keys[key] || (keys[key] = uid(key));\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\nvar create = require('../internals/object-create');\nvar defineProperty = require('../internals/object-define-property').f;\n\nvar UNSCOPABLES = wellKnownSymbol('unscopables');\nvar ArrayPrototype = Array.prototype;\n\n// Array.prototype[@@unscopables]\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\nif (ArrayPrototype[UNSCOPABLES] == undefined) {\n defineProperty(ArrayPrototype, UNSCOPABLES, {\n configurable: true,\n value: create(null)\n });\n}\n\n// add a key to Array.prototype[@@unscopables]\nmodule.exports = function (key) {\n ArrayPrototype[UNSCOPABLES][key] = true;\n};\n","var NATIVE_WEAK_MAP = require('../internals/weak-map-basic-detection');\nvar global = require('../internals/global');\nvar isObject = require('../internals/is-object');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar hasOwn = require('../internals/has-own-property');\nvar shared = require('../internals/shared-store');\nvar sharedKey = require('../internals/shared-key');\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar OBJECT_ALREADY_INITIALIZED = 'Object already initialized';\nvar TypeError = global.TypeError;\nvar WeakMap = global.WeakMap;\nvar set, get, has;\n\nvar enforce = function (it) {\n return has(it) ? get(it) : set(it, {});\n};\n\nvar getterFor = function (TYPE) {\n return function (it) {\n var state;\n if (!isObject(it) || (state = get(it)).type !== TYPE) {\n throw TypeError('Incompatible receiver, ' + TYPE + ' required');\n } return state;\n };\n};\n\nif (NATIVE_WEAK_MAP || shared.state) {\n var store = shared.state || (shared.state = new WeakMap());\n /* eslint-disable no-self-assign -- prototype methods protection */\n store.get = store.get;\n store.has = store.has;\n store.set = store.set;\n /* eslint-enable no-self-assign -- prototype methods protection */\n set = function (it, metadata) {\n if (store.has(it)) throw TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n store.set(it, metadata);\n return metadata;\n };\n get = function (it) {\n return store.get(it) || {};\n };\n has = function (it) {\n return store.has(it);\n };\n} else {\n var STATE = sharedKey('state');\n hiddenKeys[STATE] = true;\n set = function (it, metadata) {\n if (hasOwn(it, STATE)) throw TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n createNonEnumerableProperty(it, STATE, metadata);\n return metadata;\n };\n get = function (it) {\n return hasOwn(it, STATE) ? it[STATE] : {};\n };\n has = function (it) {\n return hasOwn(it, STATE);\n };\n}\n\nmodule.exports = {\n set: set,\n get: get,\n has: has,\n enforce: enforce,\n getterFor: getterFor\n};\n","module.exports = {};\n","var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar WeakMap = global.WeakMap;\n\nmodule.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap));\n","'use strict';\nvar $propertyIsEnumerable = {}.propertyIsEnumerable;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Nashorn ~ JDK8 bug\nvar NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);\n\n// `Object.prototype.propertyIsEnumerable` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable\nexports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {\n var descriptor = getOwnPropertyDescriptor(this, V);\n return !!descriptor && descriptor.enumerable;\n} : $propertyIsEnumerable;\n","var DESCRIPTORS = require('../internals/descriptors');\nvar call = require('../internals/function-call');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toPropertyKey = require('../internals/to-property-key');\nvar hasOwn = require('../internals/has-own-property');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\n\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// `Object.getOwnPropertyDescriptor` method\n// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor\nexports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {\n O = toIndexedObject(O);\n P = toPropertyKey(P);\n if (IE8_DOM_DEFINE) try {\n return $getOwnPropertyDescriptor(O, P);\n } catch (error) { /* empty */ }\n if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar hasOwn = require('../internals/has-own-property');\n\nvar FunctionPrototype = Function.prototype;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;\n\nvar EXISTS = hasOwn(FunctionPrototype, 'name');\n// additional protection from minified / mangled / dropped function names\nvar PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';\nvar CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));\n\nmodule.exports = {\n EXISTS: EXISTS,\n PROPER: PROPER,\n CONFIGURABLE: CONFIGURABLE\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar hasOwn = require('../internals/has-own-property');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar CONFIGURABLE_FUNCTION_NAME = require('../internals/function-name').CONFIGURABLE;\nvar inspectSource = require('../internals/inspect-source');\nvar InternalStateModule = require('../internals/internal-state');\n\nvar enforceInternalState = InternalStateModule.enforce;\nvar getInternalState = InternalStateModule.get;\nvar $String = String;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\nvar stringSlice = uncurryThis(''.slice);\nvar replace = uncurryThis(''.replace);\nvar join = uncurryThis([].join);\n\nvar CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () {\n return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;\n});\n\nvar TEMPLATE = String(String).split('String');\n\nvar makeBuiltIn = module.exports = function (value, name, options) {\n if (stringSlice($String(name), 0, 7) === 'Symbol(') {\n name = '[' + replace($String(name), /^Symbol\\(([^)]*)\\)/, '$1') + ']';\n }\n if (options && options.getter) name = 'get ' + name;\n if (options && options.setter) name = 'set ' + name;\n if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {\n if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true });\n else value.name = name;\n }\n if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) {\n defineProperty(value, 'length', { value: options.arity });\n }\n try {\n if (options && hasOwn(options, 'constructor') && options.constructor) {\n if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });\n // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable\n } else if (value.prototype) value.prototype = undefined;\n } catch (error) { /* empty */ }\n var state = enforceInternalState(value);\n if (!hasOwn(state, 'source')) {\n state.source = join(TEMPLATE, typeof name == 'string' ? name : '');\n } return value;\n};\n\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n// eslint-disable-next-line no-extend-native -- required\nFunction.prototype.toString = makeBuiltIn(function toString() {\n return isCallable(this) && getInternalState(this).source || inspectSource(this);\n}, 'toString');\n","var isCallable = require('../internals/is-callable');\nvar definePropertyModule = require('../internals/object-define-property');\nvar makeBuiltIn = require('../internals/make-built-in');\nvar defineGlobalProperty = require('../internals/define-global-property');\n\nmodule.exports = function (O, key, value, options) {\n if (!options) options = {};\n var simple = options.enumerable;\n var name = options.name !== undefined ? options.name : key;\n if (isCallable(value)) makeBuiltIn(value, name, options);\n if (options.global) {\n if (simple) O[key] = value;\n else defineGlobalProperty(key, value);\n } else {\n try {\n if (!options.unsafe) delete O[key];\n else if (O[key]) simple = true;\n } catch (error) { /* empty */ }\n if (simple) O[key] = value;\n else definePropertyModule.f(O, key, {\n value: value,\n enumerable: false,\n configurable: !options.nonConfigurable,\n writable: !options.nonWritable\n });\n } return O;\n};\n","var internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\nvar hiddenKeys = enumBugKeys.concat('length', 'prototype');\n\n// `Object.getOwnPropertyNames` method\n// https://tc39.es/ecma262/#sec-object.getownpropertynames\n// eslint-disable-next-line es/no-object-getownpropertynames -- safe\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return internalObjectKeys(O, hiddenKeys);\n};\n","// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe\nexports.f = Object.getOwnPropertySymbols;\n","var getBuiltIn = require('../internals/get-built-in');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar anObject = require('../internals/an-object');\n\nvar concat = uncurryThis([].concat);\n\n// all object keys, includes non-enumerable and symbols\nmodule.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {\n var keys = getOwnPropertyNamesModule.f(anObject(it));\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;\n};\n","'use strict';\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\nvar create = require('../internals/object-create');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar IS_PURE = require('../internals/is-pure');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar BUGGY_SAFARI_ITERATORS = false;\n\n// `%IteratorPrototype%` object\n// https://tc39.es/ecma262/#sec-%iteratorprototype%-object\nvar IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;\n\n/* eslint-disable es/no-array-prototype-keys -- safe */\nif ([].keys) {\n arrayIterator = [].keys();\n // Safari 8 has buggy iterators w/o `next`\n if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;\n else {\n PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator));\n if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;\n }\n}\n\nvar NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype) || fails(function () {\n var test = {};\n // FF44- legacy iterators case\n return IteratorPrototype[ITERATOR].call(test) !== test;\n});\n\nif (NEW_ITERATOR_PROTOTYPE) IteratorPrototype = {};\nelse if (IS_PURE) IteratorPrototype = create(IteratorPrototype);\n\n// `%IteratorPrototype%[@@iterator]()` method\n// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator\nif (!isCallable(IteratorPrototype[ITERATOR])) {\n defineBuiltIn(IteratorPrototype, ITERATOR, function () {\n return this;\n });\n}\n\nmodule.exports = {\n IteratorPrototype: IteratorPrototype,\n BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS\n};\n","var hasOwn = require('../internals/has-own-property');\nvar ownKeys = require('../internals/own-keys');\nvar getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');\nvar definePropertyModule = require('../internals/object-define-property');\n\nmodule.exports = function (target, source, exceptions) {\n var keys = ownKeys(source);\n var defineProperty = definePropertyModule.f;\n var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {\n defineProperty(target, key, getOwnPropertyDescriptor(source, key));\n }\n }\n};\n","var fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\n\nvar replacement = /#|\\.prototype\\./;\n\nvar isForced = function (feature, detection) {\n var value = data[normalize(feature)];\n return value == POLYFILL ? true\n : value == NATIVE ? false\n : isCallable(detection) ? fails(detection)\n : !!detection;\n};\n\nvar normalize = isForced.normalize = function (string) {\n return String(string).replace(replacement, '.').toLowerCase();\n};\n\nvar data = isForced.data = {};\nvar NATIVE = isForced.NATIVE = 'N';\nvar POLYFILL = isForced.POLYFILL = 'P';\n\nmodule.exports = isForced;\n","var global = require('../internals/global');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar defineGlobalProperty = require('../internals/define-global-property');\nvar copyConstructorProperties = require('../internals/copy-constructor-properties');\nvar isForced = require('../internals/is-forced');\n\n/*\n options.target - name of the target object\n options.global - target is the global object\n options.stat - export as static methods of target\n options.proto - export as prototype methods of target\n options.real - real prototype method for the `pure` version\n options.forced - export even if the native feature is available\n options.bind - bind methods to the target, required for the `pure` version\n options.wrap - wrap constructors to preventing global pollution, required for the `pure` version\n options.unsafe - use the simple assignment of property instead of delete + defineProperty\n options.sham - add a flag to not completely full polyfills\n options.enumerable - export as enumerable property\n options.dontCallGetSet - prevent calling a getter on target\n options.name - the .name of the function if it does not match the key\n*/\nmodule.exports = function (options, source) {\n var TARGET = options.target;\n var GLOBAL = options.global;\n var STATIC = options.stat;\n var FORCED, target, key, targetProperty, sourceProperty, descriptor;\n if (GLOBAL) {\n target = global;\n } else if (STATIC) {\n target = global[TARGET] || defineGlobalProperty(TARGET, {});\n } else {\n target = (global[TARGET] || {}).prototype;\n }\n if (target) for (key in source) {\n sourceProperty = source[key];\n if (options.dontCallGetSet) {\n descriptor = getOwnPropertyDescriptor(target, key);\n targetProperty = descriptor && descriptor.value;\n } else targetProperty = target[key];\n FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);\n // contained in target\n if (!FORCED && targetProperty !== undefined) {\n if (typeof sourceProperty == typeof targetProperty) continue;\n copyConstructorProperties(sourceProperty, targetProperty);\n }\n // add a flag to not completely full polyfills\n if (options.sham || (targetProperty && targetProperty.sham)) {\n createNonEnumerableProperty(sourceProperty, 'sham', true);\n }\n defineBuiltIn(target, key, sourceProperty, options);\n }\n};\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n function F() { /* empty */ }\n F.prototype.constructor = null;\n // eslint-disable-next-line es/no-object-getprototypeof -- required for testing\n return Object.getPrototypeOf(new F()) !== F.prototype;\n});\n","var hasOwn = require('../internals/has-own-property');\nvar isCallable = require('../internals/is-callable');\nvar toObject = require('../internals/to-object');\nvar sharedKey = require('../internals/shared-key');\nvar CORRECT_PROTOTYPE_GETTER = require('../internals/correct-prototype-getter');\n\nvar IE_PROTO = sharedKey('IE_PROTO');\nvar $Object = Object;\nvar ObjectPrototype = $Object.prototype;\n\n// `Object.getPrototypeOf` method\n// https://tc39.es/ecma262/#sec-object.getprototypeof\n// eslint-disable-next-line es/no-object-getprototypeof -- safe\nmodule.exports = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {\n var object = toObject(O);\n if (hasOwn(object, IE_PROTO)) return object[IE_PROTO];\n var constructor = object.constructor;\n if (isCallable(constructor) && object instanceof constructor) {\n return constructor.prototype;\n } return object instanceof $Object ? ObjectPrototype : null;\n};\n","var defineProperty = require('../internals/object-define-property').f;\nvar hasOwn = require('../internals/has-own-property');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\n\nmodule.exports = function (target, TAG, STATIC) {\n if (target && !STATIC) target = target.prototype;\n if (target && !hasOwn(target, TO_STRING_TAG)) {\n defineProperty(target, TO_STRING_TAG, { configurable: true, value: TAG });\n }\n};\n","'use strict';\nvar IteratorPrototype = require('../internals/iterators-core').IteratorPrototype;\nvar create = require('../internals/object-create');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar Iterators = require('../internals/iterators');\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {\n var TO_STRING_TAG = NAME + ' Iterator';\n IteratorConstructor.prototype = create(IteratorPrototype, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });\n setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true);\n Iterators[TO_STRING_TAG] = returnThis;\n return IteratorConstructor;\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar aCallable = require('../internals/a-callable');\n\nmodule.exports = function (object, key, method) {\n try {\n // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\n return uncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));\n } catch (error) { /* empty */ }\n};\n","var isCallable = require('../internals/is-callable');\n\nvar $String = String;\nvar $TypeError = TypeError;\n\nmodule.exports = function (argument) {\n if (typeof argument == 'object' || isCallable(argument)) return argument;\n throw $TypeError(\"Can't set \" + $String(argument) + ' as a prototype');\n};\n","/* eslint-disable no-proto -- safe */\nvar uncurryThisAccessor = require('../internals/function-uncurry-this-accessor');\nvar anObject = require('../internals/an-object');\nvar aPossiblePrototype = require('../internals/a-possible-prototype');\n\n// `Object.setPrototypeOf` method\n// https://tc39.es/ecma262/#sec-object.setprototypeof\n// Works with __proto__ only. Old v8 can't work with null proto objects.\n// eslint-disable-next-line es/no-object-setprototypeof -- safe\nmodule.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {\n var CORRECT_SETTER = false;\n var test = {};\n var setter;\n try {\n setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');\n setter(test, []);\n CORRECT_SETTER = test instanceof Array;\n } catch (error) { /* empty */ }\n return function setPrototypeOf(O, proto) {\n anObject(O);\n aPossiblePrototype(proto);\n if (CORRECT_SETTER) setter(O, proto);\n else O.__proto__ = proto;\n return O;\n };\n}() : undefined);\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar IS_PURE = require('../internals/is-pure');\nvar FunctionName = require('../internals/function-name');\nvar isCallable = require('../internals/is-callable');\nvar createIteratorConstructor = require('../internals/iterator-create-constructor');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar Iterators = require('../internals/iterators');\nvar IteratorsCore = require('../internals/iterators-core');\n\nvar PROPER_FUNCTION_NAME = FunctionName.PROPER;\nvar CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;\nvar IteratorPrototype = IteratorsCore.IteratorPrototype;\nvar BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;\nvar ITERATOR = wellKnownSymbol('iterator');\nvar KEYS = 'keys';\nvar VALUES = 'values';\nvar ENTRIES = 'entries';\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {\n createIteratorConstructor(IteratorConstructor, NAME, next);\n\n var getIterationMethod = function (KIND) {\n if (KIND === DEFAULT && defaultIterator) return defaultIterator;\n if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];\n switch (KIND) {\n case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };\n case VALUES: return function values() { return new IteratorConstructor(this, KIND); };\n case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };\n } return function () { return new IteratorConstructor(this); };\n };\n\n var TO_STRING_TAG = NAME + ' Iterator';\n var INCORRECT_VALUES_NAME = false;\n var IterablePrototype = Iterable.prototype;\n var nativeIterator = IterablePrototype[ITERATOR]\n || IterablePrototype['@@iterator']\n || DEFAULT && IterablePrototype[DEFAULT];\n var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);\n var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;\n var CurrentIteratorPrototype, methods, KEY;\n\n // fix native\n if (anyNativeIterator) {\n CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));\n if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {\n if (!IS_PURE && getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {\n if (setPrototypeOf) {\n setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);\n } else if (!isCallable(CurrentIteratorPrototype[ITERATOR])) {\n defineBuiltIn(CurrentIteratorPrototype, ITERATOR, returnThis);\n }\n }\n // Set @@toStringTag to native iterators\n setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true);\n if (IS_PURE) Iterators[TO_STRING_TAG] = returnThis;\n }\n }\n\n // fix Array.prototype.{ values, @@iterator }.name in V8 / FF\n if (PROPER_FUNCTION_NAME && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {\n if (!IS_PURE && CONFIGURABLE_FUNCTION_NAME) {\n createNonEnumerableProperty(IterablePrototype, 'name', VALUES);\n } else {\n INCORRECT_VALUES_NAME = true;\n defaultIterator = function values() { return call(nativeIterator, this); };\n }\n }\n\n // export additional methods\n if (DEFAULT) {\n methods = {\n values: getIterationMethod(VALUES),\n keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),\n entries: getIterationMethod(ENTRIES)\n };\n if (FORCED) for (KEY in methods) {\n if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {\n defineBuiltIn(IterablePrototype, KEY, methods[KEY]);\n }\n } else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);\n }\n\n // define iterator\n if ((!IS_PURE || FORCED) && IterablePrototype[ITERATOR] !== defaultIterator) {\n defineBuiltIn(IterablePrototype, ITERATOR, defaultIterator, { name: DEFAULT });\n }\n Iterators[NAME] = defaultIterator;\n\n return methods;\n};\n","// `CreateIterResultObject` abstract operation\n// https://tc39.es/ecma262/#sec-createiterresultobject\nmodule.exports = function (value, done) {\n return { value: value, done: done };\n};\n","'use strict';\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar addToUnscopables = require('../internals/add-to-unscopables');\nvar Iterators = require('../internals/iterators');\nvar InternalStateModule = require('../internals/internal-state');\nvar defineProperty = require('../internals/object-define-property').f;\nvar defineIterator = require('../internals/iterator-define');\nvar createIterResultObject = require('../internals/create-iter-result-object');\nvar IS_PURE = require('../internals/is-pure');\nvar DESCRIPTORS = require('../internals/descriptors');\n\nvar ARRAY_ITERATOR = 'Array Iterator';\nvar setInternalState = InternalStateModule.set;\nvar getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);\n\n// `Array.prototype.entries` method\n// https://tc39.es/ecma262/#sec-array.prototype.entries\n// `Array.prototype.keys` method\n// https://tc39.es/ecma262/#sec-array.prototype.keys\n// `Array.prototype.values` method\n// https://tc39.es/ecma262/#sec-array.prototype.values\n// `Array.prototype[@@iterator]` method\n// https://tc39.es/ecma262/#sec-array.prototype-@@iterator\n// `CreateArrayIterator` internal method\n// https://tc39.es/ecma262/#sec-createarrayiterator\nmodule.exports = defineIterator(Array, 'Array', function (iterated, kind) {\n setInternalState(this, {\n type: ARRAY_ITERATOR,\n target: toIndexedObject(iterated), // target\n index: 0, // next index\n kind: kind // kind\n });\n// `%ArrayIteratorPrototype%.next` method\n// https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next\n}, function () {\n var state = getInternalState(this);\n var target = state.target;\n var kind = state.kind;\n var index = state.index++;\n if (!target || index >= target.length) {\n state.target = undefined;\n return createIterResultObject(undefined, true);\n }\n if (kind == 'keys') return createIterResultObject(index, false);\n if (kind == 'values') return createIterResultObject(target[index], false);\n return createIterResultObject([index, target[index]], false);\n}, 'values');\n\n// argumentsList[@@iterator] is %ArrayProto_values%\n// https://tc39.es/ecma262/#sec-createunmappedargumentsobject\n// https://tc39.es/ecma262/#sec-createmappedargumentsobject\nvar values = Iterators.Arguments = Iterators.Array;\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables('keys');\naddToUnscopables('values');\naddToUnscopables('entries');\n\n// V8 ~ Chrome 45- bug\nif (!IS_PURE && DESCRIPTORS && values.name !== 'values') try {\n defineProperty(values, 'name', { value: 'values' });\n} catch (error) { /* empty */ }\n","var global = require('../internals/global');\nvar DOMIterables = require('../internals/dom-iterables');\nvar DOMTokenListPrototype = require('../internals/dom-token-list-prototype');\nvar ArrayIteratorMethods = require('../modules/es.array.iterator');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar ArrayValues = ArrayIteratorMethods.values;\n\nvar handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {\n if (CollectionPrototype) {\n // some Chrome versions have non-configurable methods on DOMTokenList\n if (CollectionPrototype[ITERATOR] !== ArrayValues) try {\n createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);\n } catch (error) {\n CollectionPrototype[ITERATOR] = ArrayValues;\n }\n if (!CollectionPrototype[TO_STRING_TAG]) {\n createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);\n }\n if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {\n // some Chrome versions have non-configurable methods on DOMTokenList\n if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {\n createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);\n } catch (error) {\n CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];\n }\n }\n }\n};\n\nfor (var COLLECTION_NAME in DOMIterables) {\n handlePrototype(global[COLLECTION_NAME] && global[COLLECTION_NAME].prototype, COLLECTION_NAME);\n}\n\nhandlePrototype(DOMTokenListPrototype, 'DOMTokenList');\n","var global = require('../internals/global');\n\nmodule.exports = global;\n","'use strict';\n/* eslint-disable es/no-array-prototype-indexof -- required for testing */\nvar $ = require('../internals/export');\nvar uncurryThis = require('../internals/function-uncurry-this-clause');\nvar $indexOf = require('../internals/array-includes').indexOf;\nvar arrayMethodIsStrict = require('../internals/array-method-is-strict');\n\nvar nativeIndexOf = uncurryThis([].indexOf);\n\nvar NEGATIVE_ZERO = !!nativeIndexOf && 1 / nativeIndexOf([1], 1, -0) < 0;\nvar FORCED = NEGATIVE_ZERO || !arrayMethodIsStrict('indexOf');\n\n// `Array.prototype.indexOf` method\n// https://tc39.es/ecma262/#sec-array.prototype.indexof\n$({ target: 'Array', proto: true, forced: FORCED }, {\n indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {\n var fromIndex = arguments.length > 1 ? arguments[1] : undefined;\n return NEGATIVE_ZERO\n // convert -0 to +0\n ? nativeIndexOf(this, searchElement, fromIndex) || 0\n : $indexOf(this, searchElement, fromIndex);\n }\n});\n","var $TypeError = TypeError;\nvar MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991\n\nmodule.exports = function (it) {\n if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');\n return it;\n};\n","'use strict';\nvar toPropertyKey = require('../internals/to-property-key');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = function (object, key, value) {\n var propertyKey = toPropertyKey(key);\n if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));\n else object[propertyKey] = value;\n};\n","var fails = require('../internals/fails');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar V8_VERSION = require('../internals/engine-v8-version');\n\nvar SPECIES = wellKnownSymbol('species');\n\nmodule.exports = function (METHOD_NAME) {\n // We can't use this feature detection in V8 since it causes\n // deoptimization and serious performance degradation\n // https://github.com/zloirock/core-js/issues/677\n return V8_VERSION >= 51 || !fails(function () {\n var array = [];\n var constructor = array.constructor = {};\n constructor[SPECIES] = function () {\n return { foo: 1 };\n };\n return array[METHOD_NAME](Boolean).foo !== 1;\n });\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar fails = require('../internals/fails');\nvar isArray = require('../internals/is-array');\nvar isObject = require('../internals/is-object');\nvar toObject = require('../internals/to-object');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar doesNotExceedSafeInteger = require('../internals/does-not-exceed-safe-integer');\nvar createProperty = require('../internals/create-property');\nvar arraySpeciesCreate = require('../internals/array-species-create');\nvar arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar V8_VERSION = require('../internals/engine-v8-version');\n\nvar IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');\n\n// We can't use this feature detection in V8 since it causes\n// deoptimization and serious performance degradation\n// https://github.com/zloirock/core-js/issues/679\nvar IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () {\n var array = [];\n array[IS_CONCAT_SPREADABLE] = false;\n return array.concat()[0] !== array;\n});\n\nvar isConcatSpreadable = function (O) {\n if (!isObject(O)) return false;\n var spreadable = O[IS_CONCAT_SPREADABLE];\n return spreadable !== undefined ? !!spreadable : isArray(O);\n};\n\nvar FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport('concat');\n\n// `Array.prototype.concat` method\n// https://tc39.es/ecma262/#sec-array.prototype.concat\n// with adding support of @@isConcatSpreadable and @@species\n$({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n concat: function concat(arg) {\n var O = toObject(this);\n var A = arraySpeciesCreate(O, 0);\n var n = 0;\n var i, k, length, len, E;\n for (i = -1, length = arguments.length; i < length; i++) {\n E = i === -1 ? O : arguments[i];\n if (isConcatSpreadable(E)) {\n len = lengthOfArrayLike(E);\n doesNotExceedSafeInteger(n + len);\n for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);\n } else {\n doesNotExceedSafeInteger(n + 1);\n createProperty(A, n++, E);\n }\n }\n A.length = n;\n return A;\n }\n});\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar call = require('../internals/function-call');\nvar fails = require('../internals/fails');\nvar objectKeys = require('../internals/object-keys');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar toObject = require('../internals/to-object');\nvar IndexedObject = require('../internals/indexed-object');\n\n// eslint-disable-next-line es/no-object-assign -- safe\nvar $assign = Object.assign;\n// eslint-disable-next-line es/no-object-defineproperty -- required for testing\nvar defineProperty = Object.defineProperty;\nvar concat = uncurryThis([].concat);\n\n// `Object.assign` method\n// https://tc39.es/ecma262/#sec-object.assign\nmodule.exports = !$assign || fails(function () {\n // should have correct order of operations (Edge bug)\n if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {\n enumerable: true,\n get: function () {\n defineProperty(this, 'b', {\n value: 3,\n enumerable: false\n });\n }\n }), { b: 2 })).b !== 1) return true;\n // should work with symbols and should have deterministic property order (V8 bug)\n var A = {};\n var B = {};\n // eslint-disable-next-line es/no-symbol -- safe\n var symbol = Symbol();\n var alphabet = 'abcdefghijklmnopqrst';\n A[symbol] = 7;\n alphabet.split('').forEach(function (chr) { B[chr] = chr; });\n return $assign({}, A)[symbol] != 7 || objectKeys($assign({}, B)).join('') != alphabet;\n}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`\n var T = toObject(target);\n var argumentsLength = arguments.length;\n var index = 1;\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n var propertyIsEnumerable = propertyIsEnumerableModule.f;\n while (argumentsLength > index) {\n var S = IndexedObject(arguments[index++]);\n var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);\n var length = keys.length;\n var j = 0;\n var key;\n while (length > j) {\n key = keys[j++];\n if (!DESCRIPTORS || call(propertyIsEnumerable, S, key)) T[key] = S[key];\n }\n } return T;\n} : $assign;\n","var $ = require('../internals/export');\nvar assign = require('../internals/object-assign');\n\n// `Object.assign` method\n// https://tc39.es/ecma262/#sec-object.assign\n// eslint-disable-next-line es/no-object-assign -- required for testing\n$({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {\n assign: assign\n});\n","'use strict';\nvar TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar classof = require('../internals/classof');\n\n// `Object.prototype.toString` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.tostring\nmodule.exports = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() {\n return '[object ' + classof(this) + ']';\n};\n","var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar toString = require('../internals/object-to-string');\n\n// `Object.prototype.toString` method\n// https://tc39.es/ecma262/#sec-object.prototype.tostring\nif (!TO_STRING_TAG_SUPPORT) {\n defineBuiltIn(Object.prototype, 'toString', toString, { unsafe: true });\n}\n","var classof = require('../internals/classof-raw');\n\nmodule.exports = typeof process != 'undefined' && classof(process) == 'process';\n","var global = require('../internals/global');\nvar apply = require('../internals/function-apply');\nvar bind = require('../internals/function-bind-context');\nvar isCallable = require('../internals/is-callable');\nvar hasOwn = require('../internals/has-own-property');\nvar fails = require('../internals/fails');\nvar html = require('../internals/html');\nvar arraySlice = require('../internals/array-slice');\nvar createElement = require('../internals/document-create-element');\nvar validateArgumentsLength = require('../internals/validate-arguments-length');\nvar IS_IOS = require('../internals/engine-is-ios');\nvar IS_NODE = require('../internals/engine-is-node');\n\nvar set = global.setImmediate;\nvar clear = global.clearImmediate;\nvar process = global.process;\nvar Dispatch = global.Dispatch;\nvar Function = global.Function;\nvar MessageChannel = global.MessageChannel;\nvar String = global.String;\nvar counter = 0;\nvar queue = {};\nvar ONREADYSTATECHANGE = 'onreadystatechange';\nvar $location, defer, channel, port;\n\nfails(function () {\n // Deno throws a ReferenceError on `location` access without `--location` flag\n $location = global.location;\n});\n\nvar run = function (id) {\n if (hasOwn(queue, id)) {\n var fn = queue[id];\n delete queue[id];\n fn();\n }\n};\n\nvar runner = function (id) {\n return function () {\n run(id);\n };\n};\n\nvar eventListener = function (event) {\n run(event.data);\n};\n\nvar globalPostMessageDefer = function (id) {\n // old engines have not location.origin\n global.postMessage(String(id), $location.protocol + '//' + $location.host);\n};\n\n// Node.js 0.9+ & IE10+ has setImmediate, otherwise:\nif (!set || !clear) {\n set = function setImmediate(handler) {\n validateArgumentsLength(arguments.length, 1);\n var fn = isCallable(handler) ? handler : Function(handler);\n var args = arraySlice(arguments, 1);\n queue[++counter] = function () {\n apply(fn, undefined, args);\n };\n defer(counter);\n return counter;\n };\n clear = function clearImmediate(id) {\n delete queue[id];\n };\n // Node.js 0.8-\n if (IS_NODE) {\n defer = function (id) {\n process.nextTick(runner(id));\n };\n // Sphere (JS game engine) Dispatch API\n } else if (Dispatch && Dispatch.now) {\n defer = function (id) {\n Dispatch.now(runner(id));\n };\n // Browsers with MessageChannel, includes WebWorkers\n // except iOS - https://github.com/zloirock/core-js/issues/624\n } else if (MessageChannel && !IS_IOS) {\n channel = new MessageChannel();\n port = channel.port2;\n channel.port1.onmessage = eventListener;\n defer = bind(port.postMessage, port);\n // Browsers with postMessage, skip WebWorkers\n // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'\n } else if (\n global.addEventListener &&\n isCallable(global.postMessage) &&\n !global.importScripts &&\n $location && $location.protocol !== 'file:' &&\n !fails(globalPostMessageDefer)\n ) {\n defer = globalPostMessageDefer;\n global.addEventListener('message', eventListener, false);\n // IE8-\n } else if (ONREADYSTATECHANGE in createElement('script')) {\n defer = function (id) {\n html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {\n html.removeChild(this);\n run(id);\n };\n };\n // Rest old browsers\n } else {\n defer = function (id) {\n setTimeout(runner(id), 0);\n };\n }\n}\n\nmodule.exports = {\n set: set,\n clear: clear\n};\n","var makeBuiltIn = require('../internals/make-built-in');\nvar defineProperty = require('../internals/object-define-property');\n\nmodule.exports = function (target, name, descriptor) {\n if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });\n if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });\n return defineProperty.f(target, name, descriptor);\n};\n","'use strict';\nvar getBuiltIn = require('../internals/get-built-in');\nvar defineBuiltInAccessor = require('../internals/define-built-in-accessor');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar DESCRIPTORS = require('../internals/descriptors');\n\nvar SPECIES = wellKnownSymbol('species');\n\nmodule.exports = function (CONSTRUCTOR_NAME) {\n var Constructor = getBuiltIn(CONSTRUCTOR_NAME);\n\n if (DESCRIPTORS && Constructor && !Constructor[SPECIES]) {\n defineBuiltInAccessor(Constructor, SPECIES, {\n configurable: true,\n get: function () { return this; }\n });\n }\n};\n","var isPrototypeOf = require('../internals/object-is-prototype-of');\n\nvar $TypeError = TypeError;\n\nmodule.exports = function (it, Prototype) {\n if (isPrototypeOf(Prototype, it)) return it;\n throw $TypeError('Incorrect invocation');\n};\n","var isConstructor = require('../internals/is-constructor');\nvar tryToString = require('../internals/try-to-string');\n\nvar $TypeError = TypeError;\n\n// `Assert: IsConstructor(argument) is true`\nmodule.exports = function (argument) {\n if (isConstructor(argument)) return argument;\n throw $TypeError(tryToString(argument) + ' is not a constructor');\n};\n","var anObject = require('../internals/an-object');\nvar aConstructor = require('../internals/a-constructor');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar SPECIES = wellKnownSymbol('species');\n\n// `SpeciesConstructor` abstract operation\n// https://tc39.es/ecma262/#sec-speciesconstructor\nmodule.exports = function (O, defaultConstructor) {\n var C = anObject(O).constructor;\n var S;\n return C === undefined || isNullOrUndefined(S = anObject(C)[SPECIES]) ? defaultConstructor : aConstructor(S);\n};\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar FunctionPrototype = Function.prototype;\nvar apply = FunctionPrototype.apply;\nvar call = FunctionPrototype.call;\n\n// eslint-disable-next-line es/no-reflect -- safe\nmodule.exports = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call.bind(apply) : function () {\n return call.apply(apply, arguments);\n});\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = uncurryThis([].slice);\n","var $TypeError = TypeError;\n\nmodule.exports = function (passed, required) {\n if (passed < required) throw $TypeError('Not enough arguments');\n return passed;\n};\n","var userAgent = require('../internals/engine-user-agent');\n\n// eslint-disable-next-line redos/no-vulnerable -- safe\nmodule.exports = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent);\n","var Queue = function () {\n this.head = null;\n this.tail = null;\n};\n\nQueue.prototype = {\n add: function (item) {\n var entry = { item: item, next: null };\n var tail = this.tail;\n if (tail) tail.next = entry;\n else this.head = entry;\n this.tail = entry;\n },\n get: function () {\n var entry = this.head;\n if (entry) {\n var next = this.head = entry.next;\n if (next === null) this.tail = null;\n return entry.item;\n }\n }\n};\n\nmodule.exports = Queue;\n","var global = require('../internals/global');\nvar bind = require('../internals/function-bind-context');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar macrotask = require('../internals/task').set;\nvar Queue = require('../internals/queue');\nvar IS_IOS = require('../internals/engine-is-ios');\nvar IS_IOS_PEBBLE = require('../internals/engine-is-ios-pebble');\nvar IS_WEBOS_WEBKIT = require('../internals/engine-is-webos-webkit');\nvar IS_NODE = require('../internals/engine-is-node');\n\nvar MutationObserver = global.MutationObserver || global.WebKitMutationObserver;\nvar document = global.document;\nvar process = global.process;\nvar Promise = global.Promise;\n// Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`\nvar queueMicrotaskDescriptor = getOwnPropertyDescriptor(global, 'queueMicrotask');\nvar microtask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;\nvar notify, toggle, node, promise, then;\n\n// modern engines have queueMicrotask method\nif (!microtask) {\n var queue = new Queue();\n\n var flush = function () {\n var parent, fn;\n if (IS_NODE && (parent = process.domain)) parent.exit();\n while (fn = queue.get()) try {\n fn();\n } catch (error) {\n if (queue.head) notify();\n throw error;\n }\n if (parent) parent.enter();\n };\n\n // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339\n // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898\n if (!IS_IOS && !IS_NODE && !IS_WEBOS_WEBKIT && MutationObserver && document) {\n toggle = true;\n node = document.createTextNode('');\n new MutationObserver(flush).observe(node, { characterData: true });\n notify = function () {\n node.data = toggle = !toggle;\n };\n // environments with maybe non-completely correct, but existent Promise\n } else if (!IS_IOS_PEBBLE && Promise && Promise.resolve) {\n // Promise.resolve without an argument throws an error in LG WebOS 2\n promise = Promise.resolve(undefined);\n // workaround of WebKit ~ iOS Safari 10.1 bug\n promise.constructor = Promise;\n then = bind(promise.then, promise);\n notify = function () {\n then(flush);\n };\n // Node.js without promises\n } else if (IS_NODE) {\n notify = function () {\n process.nextTick(flush);\n };\n // for other environments - macrotask based on:\n // - setImmediate\n // - MessageChannel\n // - window.postMessage\n // - onreadystatechange\n // - setTimeout\n } else {\n // `webpack` dev server bug on IE global methods - use bind(fn, global)\n macrotask = bind(macrotask, global);\n notify = function () {\n macrotask(flush);\n };\n }\n\n microtask = function (fn) {\n if (!queue.head) notify();\n queue.add(fn);\n };\n}\n\nmodule.exports = microtask;\n","var userAgent = require('../internals/engine-user-agent');\n\nmodule.exports = /ipad|iphone|ipod/i.test(userAgent) && typeof Pebble != 'undefined';\n","var userAgent = require('../internals/engine-user-agent');\n\nmodule.exports = /web0s(?!.*chrome)/i.test(userAgent);\n","module.exports = function (exec) {\n try {\n return { error: false, value: exec() };\n } catch (error) {\n return { error: true, value: error };\n }\n};\n","var global = require('../internals/global');\n\nmodule.exports = global.Promise;\n","/* global Deno -- Deno case */\nmodule.exports = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';\n","var IS_DENO = require('../internals/engine-is-deno');\nvar IS_NODE = require('../internals/engine-is-node');\n\nmodule.exports = !IS_DENO && !IS_NODE\n && typeof window == 'object'\n && typeof document == 'object';\n","var global = require('../internals/global');\nvar NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar isCallable = require('../internals/is-callable');\nvar isForced = require('../internals/is-forced');\nvar inspectSource = require('../internals/inspect-source');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar IS_BROWSER = require('../internals/engine-is-browser');\nvar IS_DENO = require('../internals/engine-is-deno');\nvar IS_PURE = require('../internals/is-pure');\nvar V8_VERSION = require('../internals/engine-v8-version');\n\nvar NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;\nvar SPECIES = wellKnownSymbol('species');\nvar SUBCLASSING = false;\nvar NATIVE_PROMISE_REJECTION_EVENT = isCallable(global.PromiseRejectionEvent);\n\nvar FORCED_PROMISE_CONSTRUCTOR = isForced('Promise', function () {\n var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor);\n var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor);\n // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables\n // https://bugs.chromium.org/p/chromium/issues/detail?id=830565\n // We can't detect it synchronously, so just check versions\n if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;\n // We need Promise#{ catch, finally } in the pure version for preventing prototype pollution\n if (IS_PURE && !(NativePromisePrototype['catch'] && NativePromisePrototype['finally'])) return true;\n // We can't use @@species feature detection in V8 since it causes\n // deoptimization and performance degradation\n // https://github.com/zloirock/core-js/issues/679\n if (!V8_VERSION || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) {\n // Detect correctness of subclassing with @@species support\n var promise = new NativePromiseConstructor(function (resolve) { resolve(1); });\n var FakePromise = function (exec) {\n exec(function () { /* empty */ }, function () { /* empty */ });\n };\n var constructor = promise.constructor = {};\n constructor[SPECIES] = FakePromise;\n SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;\n if (!SUBCLASSING) return true;\n // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test\n } return !GLOBAL_CORE_JS_PROMISE && (IS_BROWSER || IS_DENO) && !NATIVE_PROMISE_REJECTION_EVENT;\n});\n\nmodule.exports = {\n CONSTRUCTOR: FORCED_PROMISE_CONSTRUCTOR,\n REJECTION_EVENT: NATIVE_PROMISE_REJECTION_EVENT,\n SUBCLASSING: SUBCLASSING\n};\n","'use strict';\nvar aCallable = require('../internals/a-callable');\n\nvar $TypeError = TypeError;\n\nvar PromiseCapability = function (C) {\n var resolve, reject;\n this.promise = new C(function ($$resolve, $$reject) {\n if (resolve !== undefined || reject !== undefined) throw $TypeError('Bad Promise constructor');\n resolve = $$resolve;\n reject = $$reject;\n });\n this.resolve = aCallable(resolve);\n this.reject = aCallable(reject);\n};\n\n// `NewPromiseCapability` abstract operation\n// https://tc39.es/ecma262/#sec-newpromisecapability\nmodule.exports.f = function (C) {\n return new PromiseCapability(C);\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar IS_NODE = require('../internals/engine-is-node');\nvar global = require('../internals/global');\nvar call = require('../internals/function-call');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar setSpecies = require('../internals/set-species');\nvar aCallable = require('../internals/a-callable');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\nvar anInstance = require('../internals/an-instance');\nvar speciesConstructor = require('../internals/species-constructor');\nvar task = require('../internals/task').set;\nvar microtask = require('../internals/microtask');\nvar hostReportErrors = require('../internals/host-report-errors');\nvar perform = require('../internals/perform');\nvar Queue = require('../internals/queue');\nvar InternalStateModule = require('../internals/internal-state');\nvar NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar PromiseConstructorDetection = require('../internals/promise-constructor-detection');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\n\nvar PROMISE = 'Promise';\nvar FORCED_PROMISE_CONSTRUCTOR = PromiseConstructorDetection.CONSTRUCTOR;\nvar NATIVE_PROMISE_REJECTION_EVENT = PromiseConstructorDetection.REJECTION_EVENT;\nvar NATIVE_PROMISE_SUBCLASSING = PromiseConstructorDetection.SUBCLASSING;\nvar getInternalPromiseState = InternalStateModule.getterFor(PROMISE);\nvar setInternalState = InternalStateModule.set;\nvar NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;\nvar PromiseConstructor = NativePromiseConstructor;\nvar PromisePrototype = NativePromisePrototype;\nvar TypeError = global.TypeError;\nvar document = global.document;\nvar process = global.process;\nvar newPromiseCapability = newPromiseCapabilityModule.f;\nvar newGenericPromiseCapability = newPromiseCapability;\n\nvar DISPATCH_EVENT = !!(document && document.createEvent && global.dispatchEvent);\nvar UNHANDLED_REJECTION = 'unhandledrejection';\nvar REJECTION_HANDLED = 'rejectionhandled';\nvar PENDING = 0;\nvar FULFILLED = 1;\nvar REJECTED = 2;\nvar HANDLED = 1;\nvar UNHANDLED = 2;\n\nvar Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;\n\n// helpers\nvar isThenable = function (it) {\n var then;\n return isObject(it) && isCallable(then = it.then) ? then : false;\n};\n\nvar callReaction = function (reaction, state) {\n var value = state.value;\n var ok = state.state == FULFILLED;\n var handler = ok ? reaction.ok : reaction.fail;\n var resolve = reaction.resolve;\n var reject = reaction.reject;\n var domain = reaction.domain;\n var result, then, exited;\n try {\n if (handler) {\n if (!ok) {\n if (state.rejection === UNHANDLED) onHandleUnhandled(state);\n state.rejection = HANDLED;\n }\n if (handler === true) result = value;\n else {\n if (domain) domain.enter();\n result = handler(value); // can throw\n if (domain) {\n domain.exit();\n exited = true;\n }\n }\n if (result === reaction.promise) {\n reject(TypeError('Promise-chain cycle'));\n } else if (then = isThenable(result)) {\n call(then, result, resolve, reject);\n } else resolve(result);\n } else reject(value);\n } catch (error) {\n if (domain && !exited) domain.exit();\n reject(error);\n }\n};\n\nvar notify = function (state, isReject) {\n if (state.notified) return;\n state.notified = true;\n microtask(function () {\n var reactions = state.reactions;\n var reaction;\n while (reaction = reactions.get()) {\n callReaction(reaction, state);\n }\n state.notified = false;\n if (isReject && !state.rejection) onUnhandled(state);\n });\n};\n\nvar dispatchEvent = function (name, promise, reason) {\n var event, handler;\n if (DISPATCH_EVENT) {\n event = document.createEvent('Event');\n event.promise = promise;\n event.reason = reason;\n event.initEvent(name, false, true);\n global.dispatchEvent(event);\n } else event = { promise: promise, reason: reason };\n if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global['on' + name])) handler(event);\n else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);\n};\n\nvar onUnhandled = function (state) {\n call(task, global, function () {\n var promise = state.facade;\n var value = state.value;\n var IS_UNHANDLED = isUnhandled(state);\n var result;\n if (IS_UNHANDLED) {\n result = perform(function () {\n if (IS_NODE) {\n process.emit('unhandledRejection', value, promise);\n } else dispatchEvent(UNHANDLED_REJECTION, promise, value);\n });\n // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should\n state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;\n if (result.error) throw result.value;\n }\n });\n};\n\nvar isUnhandled = function (state) {\n return state.rejection !== HANDLED && !state.parent;\n};\n\nvar onHandleUnhandled = function (state) {\n call(task, global, function () {\n var promise = state.facade;\n if (IS_NODE) {\n process.emit('rejectionHandled', promise);\n } else dispatchEvent(REJECTION_HANDLED, promise, state.value);\n });\n};\n\nvar bind = function (fn, state, unwrap) {\n return function (value) {\n fn(state, value, unwrap);\n };\n};\n\nvar internalReject = function (state, value, unwrap) {\n if (state.done) return;\n state.done = true;\n if (unwrap) state = unwrap;\n state.value = value;\n state.state = REJECTED;\n notify(state, true);\n};\n\nvar internalResolve = function (state, value, unwrap) {\n if (state.done) return;\n state.done = true;\n if (unwrap) state = unwrap;\n try {\n if (state.facade === value) throw TypeError(\"Promise can't be resolved itself\");\n var then = isThenable(value);\n if (then) {\n microtask(function () {\n var wrapper = { done: false };\n try {\n call(then, value,\n bind(internalResolve, wrapper, state),\n bind(internalReject, wrapper, state)\n );\n } catch (error) {\n internalReject(wrapper, error, state);\n }\n });\n } else {\n state.value = value;\n state.state = FULFILLED;\n notify(state, false);\n }\n } catch (error) {\n internalReject({ done: false }, error, state);\n }\n};\n\n// constructor polyfill\nif (FORCED_PROMISE_CONSTRUCTOR) {\n // 25.4.3.1 Promise(executor)\n PromiseConstructor = function Promise(executor) {\n anInstance(this, PromisePrototype);\n aCallable(executor);\n call(Internal, this);\n var state = getInternalPromiseState(this);\n try {\n executor(bind(internalResolve, state), bind(internalReject, state));\n } catch (error) {\n internalReject(state, error);\n }\n };\n\n PromisePrototype = PromiseConstructor.prototype;\n\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n Internal = function Promise(executor) {\n setInternalState(this, {\n type: PROMISE,\n done: false,\n notified: false,\n parent: false,\n reactions: new Queue(),\n rejection: false,\n state: PENDING,\n value: undefined\n });\n };\n\n // `Promise.prototype.then` method\n // https://tc39.es/ecma262/#sec-promise.prototype.then\n Internal.prototype = defineBuiltIn(PromisePrototype, 'then', function then(onFulfilled, onRejected) {\n var state = getInternalPromiseState(this);\n var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor));\n state.parent = true;\n reaction.ok = isCallable(onFulfilled) ? onFulfilled : true;\n reaction.fail = isCallable(onRejected) && onRejected;\n reaction.domain = IS_NODE ? process.domain : undefined;\n if (state.state == PENDING) state.reactions.add(reaction);\n else microtask(function () {\n callReaction(reaction, state);\n });\n return reaction.promise;\n });\n\n OwnPromiseCapability = function () {\n var promise = new Internal();\n var state = getInternalPromiseState(promise);\n this.promise = promise;\n this.resolve = bind(internalResolve, state);\n this.reject = bind(internalReject, state);\n };\n\n newPromiseCapabilityModule.f = newPromiseCapability = function (C) {\n return C === PromiseConstructor || C === PromiseWrapper\n ? new OwnPromiseCapability(C)\n : newGenericPromiseCapability(C);\n };\n\n if (!IS_PURE && isCallable(NativePromiseConstructor) && NativePromisePrototype !== Object.prototype) {\n nativeThen = NativePromisePrototype.then;\n\n if (!NATIVE_PROMISE_SUBCLASSING) {\n // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs\n defineBuiltIn(NativePromisePrototype, 'then', function then(onFulfilled, onRejected) {\n var that = this;\n return new PromiseConstructor(function (resolve, reject) {\n call(nativeThen, that, resolve, reject);\n }).then(onFulfilled, onRejected);\n // https://github.com/zloirock/core-js/issues/640\n }, { unsafe: true });\n }\n\n // make `.constructor === Promise` work for native promise-based APIs\n try {\n delete NativePromisePrototype.constructor;\n } catch (error) { /* empty */ }\n\n // make `instanceof Promise` work for native promise-based APIs\n if (setPrototypeOf) {\n setPrototypeOf(NativePromisePrototype, PromisePrototype);\n }\n }\n}\n\n$({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {\n Promise: PromiseConstructor\n});\n\nsetToStringTag(PromiseConstructor, PROMISE, false, true);\nsetSpecies(PROMISE);\n","module.exports = function (a, b) {\n try {\n // eslint-disable-next-line no-console -- safe\n arguments.length == 1 ? console.error(a) : console.error(a, b);\n } catch (error) { /* empty */ }\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\nvar Iterators = require('../internals/iterators');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar ArrayPrototype = Array.prototype;\n\n// check on default Array iterator\nmodule.exports = function (it) {\n return it !== undefined && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it);\n};\n","var classof = require('../internals/classof');\nvar getMethod = require('../internals/get-method');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar Iterators = require('../internals/iterators');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\n\nmodule.exports = function (it) {\n if (!isNullOrUndefined(it)) return getMethod(it, ITERATOR)\n || getMethod(it, '@@iterator')\n || Iterators[classof(it)];\n};\n","var call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar anObject = require('../internals/an-object');\nvar tryToString = require('../internals/try-to-string');\nvar getIteratorMethod = require('../internals/get-iterator-method');\n\nvar $TypeError = TypeError;\n\nmodule.exports = function (argument, usingIterator) {\n var iteratorMethod = arguments.length < 2 ? getIteratorMethod(argument) : usingIterator;\n if (aCallable(iteratorMethod)) return anObject(call(iteratorMethod, argument));\n throw $TypeError(tryToString(argument) + ' is not iterable');\n};\n","var call = require('../internals/function-call');\nvar anObject = require('../internals/an-object');\nvar getMethod = require('../internals/get-method');\n\nmodule.exports = function (iterator, kind, value) {\n var innerResult, innerError;\n anObject(iterator);\n try {\n innerResult = getMethod(iterator, 'return');\n if (!innerResult) {\n if (kind === 'throw') throw value;\n return value;\n }\n innerResult = call(innerResult, iterator);\n } catch (error) {\n innerError = true;\n innerResult = error;\n }\n if (kind === 'throw') throw value;\n if (innerError) throw innerResult;\n anObject(innerResult);\n return value;\n};\n","var bind = require('../internals/function-bind-context');\nvar call = require('../internals/function-call');\nvar anObject = require('../internals/an-object');\nvar tryToString = require('../internals/try-to-string');\nvar isArrayIteratorMethod = require('../internals/is-array-iterator-method');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar getIterator = require('../internals/get-iterator');\nvar getIteratorMethod = require('../internals/get-iterator-method');\nvar iteratorClose = require('../internals/iterator-close');\n\nvar $TypeError = TypeError;\n\nvar Result = function (stopped, result) {\n this.stopped = stopped;\n this.result = result;\n};\n\nvar ResultPrototype = Result.prototype;\n\nmodule.exports = function (iterable, unboundFunction, options) {\n var that = options && options.that;\n var AS_ENTRIES = !!(options && options.AS_ENTRIES);\n var IS_RECORD = !!(options && options.IS_RECORD);\n var IS_ITERATOR = !!(options && options.IS_ITERATOR);\n var INTERRUPTED = !!(options && options.INTERRUPTED);\n var fn = bind(unboundFunction, that);\n var iterator, iterFn, index, length, result, next, step;\n\n var stop = function (condition) {\n if (iterator) iteratorClose(iterator, 'normal', condition);\n return new Result(true, condition);\n };\n\n var callFn = function (value) {\n if (AS_ENTRIES) {\n anObject(value);\n return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);\n } return INTERRUPTED ? fn(value, stop) : fn(value);\n };\n\n if (IS_RECORD) {\n iterator = iterable.iterator;\n } else if (IS_ITERATOR) {\n iterator = iterable;\n } else {\n iterFn = getIteratorMethod(iterable);\n if (!iterFn) throw $TypeError(tryToString(iterable) + ' is not iterable');\n // optimisation for array iterators\n if (isArrayIteratorMethod(iterFn)) {\n for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {\n result = callFn(iterable[index]);\n if (result && isPrototypeOf(ResultPrototype, result)) return result;\n } return new Result(false);\n }\n iterator = getIterator(iterable, iterFn);\n }\n\n next = IS_RECORD ? iterable.next : iterator.next;\n while (!(step = call(next, iterator)).done) {\n try {\n result = callFn(step.value);\n } catch (error) {\n iteratorClose(iterator, 'throw', error);\n }\n if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;\n } return new Result(false);\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar SAFE_CLOSING = false;\n\ntry {\n var called = 0;\n var iteratorWithReturn = {\n next: function () {\n return { done: !!called++ };\n },\n 'return': function () {\n SAFE_CLOSING = true;\n }\n };\n iteratorWithReturn[ITERATOR] = function () {\n return this;\n };\n // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing\n Array.from(iteratorWithReturn, function () { throw 2; });\n} catch (error) { /* empty */ }\n\nmodule.exports = function (exec, SKIP_CLOSING) {\n if (!SKIP_CLOSING && !SAFE_CLOSING) return false;\n var ITERATION_SUPPORT = false;\n try {\n var object = {};\n object[ITERATOR] = function () {\n return {\n next: function () {\n return { done: ITERATION_SUPPORT = true };\n }\n };\n };\n exec(object);\n } catch (error) { /* empty */ }\n return ITERATION_SUPPORT;\n};\n","var NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration');\nvar FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR;\n\nmodule.exports = FORCED_PROMISE_CONSTRUCTOR || !checkCorrectnessOfIteration(function (iterable) {\n NativePromiseConstructor.all(iterable).then(undefined, function () { /* empty */ });\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar perform = require('../internals/perform');\nvar iterate = require('../internals/iterate');\nvar PROMISE_STATICS_INCORRECT_ITERATION = require('../internals/promise-statics-incorrect-iteration');\n\n// `Promise.all` method\n// https://tc39.es/ecma262/#sec-promise.all\n$({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {\n all: function all(iterable) {\n var C = this;\n var capability = newPromiseCapabilityModule.f(C);\n var resolve = capability.resolve;\n var reject = capability.reject;\n var result = perform(function () {\n var $promiseResolve = aCallable(C.resolve);\n var values = [];\n var counter = 0;\n var remaining = 1;\n iterate(iterable, function (promise) {\n var index = counter++;\n var alreadyCalled = false;\n remaining++;\n call($promiseResolve, C, promise).then(function (value) {\n if (alreadyCalled) return;\n alreadyCalled = true;\n values[index] = value;\n --remaining || resolve(values);\n }, reject);\n });\n --remaining || resolve(values);\n });\n if (result.error) reject(result.value);\n return capability.promise;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR;\nvar NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar getBuiltIn = require('../internals/get-built-in');\nvar isCallable = require('../internals/is-callable');\nvar defineBuiltIn = require('../internals/define-built-in');\n\nvar NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;\n\n// `Promise.prototype.catch` method\n// https://tc39.es/ecma262/#sec-promise.prototype.catch\n$({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR, real: true }, {\n 'catch': function (onRejected) {\n return this.then(undefined, onRejected);\n }\n});\n\n// makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`\nif (!IS_PURE && isCallable(NativePromiseConstructor)) {\n var method = getBuiltIn('Promise').prototype['catch'];\n if (NativePromisePrototype['catch'] !== method) {\n defineBuiltIn(NativePromisePrototype, 'catch', method, { unsafe: true });\n }\n}\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar perform = require('../internals/perform');\nvar iterate = require('../internals/iterate');\nvar PROMISE_STATICS_INCORRECT_ITERATION = require('../internals/promise-statics-incorrect-iteration');\n\n// `Promise.race` method\n// https://tc39.es/ecma262/#sec-promise.race\n$({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {\n race: function race(iterable) {\n var C = this;\n var capability = newPromiseCapabilityModule.f(C);\n var reject = capability.reject;\n var result = perform(function () {\n var $promiseResolve = aCallable(C.resolve);\n iterate(iterable, function (promise) {\n call($promiseResolve, C, promise).then(capability.resolve, reject);\n });\n });\n if (result.error) reject(result.value);\n return capability.promise;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR;\n\n// `Promise.reject` method\n// https://tc39.es/ecma262/#sec-promise.reject\n$({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {\n reject: function reject(r) {\n var capability = newPromiseCapabilityModule.f(this);\n call(capability.reject, undefined, r);\n return capability.promise;\n }\n});\n","var anObject = require('../internals/an-object');\nvar isObject = require('../internals/is-object');\nvar newPromiseCapability = require('../internals/new-promise-capability');\n\nmodule.exports = function (C, x) {\n anObject(C);\n if (isObject(x) && x.constructor === C) return x;\n var promiseCapability = newPromiseCapability.f(C);\n var resolve = promiseCapability.resolve;\n resolve(x);\n return promiseCapability.promise;\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar getBuiltIn = require('../internals/get-built-in');\nvar IS_PURE = require('../internals/is-pure');\nvar NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR;\nvar promiseResolve = require('../internals/promise-resolve');\n\nvar PromiseConstructorWrapper = getBuiltIn('Promise');\nvar CHECK_WRAPPER = IS_PURE && !FORCED_PROMISE_CONSTRUCTOR;\n\n// `Promise.resolve` method\n// https://tc39.es/ecma262/#sec-promise.resolve\n$({ target: 'Promise', stat: true, forced: IS_PURE || FORCED_PROMISE_CONSTRUCTOR }, {\n resolve: function resolve(x) {\n return promiseResolve(CHECK_WRAPPER && this === PromiseConstructorWrapper ? NativePromiseConstructor : this, x);\n }\n});\n","var classof = require('../internals/classof');\n\nvar $String = String;\n\nmodule.exports = function (argument) {\n if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');\n return $String(argument);\n};\n","'use strict';\n/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */\n/* eslint-disable regexp/no-useless-quantifier -- testing */\nvar call = require('../internals/function-call');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar toString = require('../internals/to-string');\nvar regexpFlags = require('../internals/regexp-flags');\nvar stickyHelpers = require('../internals/regexp-sticky-helpers');\nvar shared = require('../internals/shared');\nvar create = require('../internals/object-create');\nvar getInternalState = require('../internals/internal-state').get;\nvar UNSUPPORTED_DOT_ALL = require('../internals/regexp-unsupported-dot-all');\nvar UNSUPPORTED_NCG = require('../internals/regexp-unsupported-ncg');\n\nvar nativeReplace = shared('native-string-replace', String.prototype.replace);\nvar nativeExec = RegExp.prototype.exec;\nvar patchedExec = nativeExec;\nvar charAt = uncurryThis(''.charAt);\nvar indexOf = uncurryThis(''.indexOf);\nvar replace = uncurryThis(''.replace);\nvar stringSlice = uncurryThis(''.slice);\n\nvar UPDATES_LAST_INDEX_WRONG = (function () {\n var re1 = /a/;\n var re2 = /b*/g;\n call(nativeExec, re1, 'a');\n call(nativeExec, re2, 'a');\n return re1.lastIndex !== 0 || re2.lastIndex !== 0;\n})();\n\nvar UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;\n\n// nonparticipating capturing group, copied from es5-shim's String#split patch.\nvar NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;\n\nvar PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;\n\nif (PATCH) {\n patchedExec = function exec(string) {\n var re = this;\n var state = getInternalState(re);\n var str = toString(string);\n var raw = state.raw;\n var result, reCopy, lastIndex, match, i, object, group;\n\n if (raw) {\n raw.lastIndex = re.lastIndex;\n result = call(patchedExec, raw, str);\n re.lastIndex = raw.lastIndex;\n return result;\n }\n\n var groups = state.groups;\n var sticky = UNSUPPORTED_Y && re.sticky;\n var flags = call(regexpFlags, re);\n var source = re.source;\n var charsAdded = 0;\n var strCopy = str;\n\n if (sticky) {\n flags = replace(flags, 'y', '');\n if (indexOf(flags, 'g') === -1) {\n flags += 'g';\n }\n\n strCopy = stringSlice(str, re.lastIndex);\n // Support anchored sticky behavior.\n if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt(str, re.lastIndex - 1) !== '\\n')) {\n source = '(?: ' + source + ')';\n strCopy = ' ' + strCopy;\n charsAdded++;\n }\n // ^(? + rx + ) is needed, in combination with some str slicing, to\n // simulate the 'y' flag.\n reCopy = new RegExp('^(?:' + source + ')', flags);\n }\n\n if (NPCG_INCLUDED) {\n reCopy = new RegExp('^' + source + '$(?!\\\\s)', flags);\n }\n if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;\n\n match = call(nativeExec, sticky ? reCopy : re, strCopy);\n\n if (sticky) {\n if (match) {\n match.input = stringSlice(match.input, charsAdded);\n match[0] = stringSlice(match[0], charsAdded);\n match.index = re.lastIndex;\n re.lastIndex += match[0].length;\n } else re.lastIndex = 0;\n } else if (UPDATES_LAST_INDEX_WRONG && match) {\n re.lastIndex = re.global ? match.index + match[0].length : lastIndex;\n }\n if (NPCG_INCLUDED && match && match.length > 1) {\n // Fix browsers whose `exec` methods don't consistently return `undefined`\n // for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/\n call(nativeReplace, match[0], reCopy, function () {\n for (i = 1; i < arguments.length - 2; i++) {\n if (arguments[i] === undefined) match[i] = undefined;\n }\n });\n }\n\n if (match && groups) {\n match.groups = object = create(null);\n for (i = 0; i < groups.length; i++) {\n group = groups[i];\n object[group[0]] = match[group[1]];\n }\n }\n\n return match;\n };\n}\n\nmodule.exports = patchedExec;\n","'use strict';\nvar anObject = require('../internals/an-object');\n\n// `RegExp.prototype.flags` getter implementation\n// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags\nmodule.exports = function () {\n var that = anObject(this);\n var result = '';\n if (that.hasIndices) result += 'd';\n if (that.global) result += 'g';\n if (that.ignoreCase) result += 'i';\n if (that.multiline) result += 'm';\n if (that.dotAll) result += 's';\n if (that.unicode) result += 'u';\n if (that.unicodeSets) result += 'v';\n if (that.sticky) result += 'y';\n return result;\n};\n","var fails = require('../internals/fails');\nvar global = require('../internals/global');\n\n// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError\nvar $RegExp = global.RegExp;\n\nvar UNSUPPORTED_Y = fails(function () {\n var re = $RegExp('a', 'y');\n re.lastIndex = 2;\n return re.exec('abcd') != null;\n});\n\n// UC Browser bug\n// https://github.com/zloirock/core-js/issues/1008\nvar MISSED_STICKY = UNSUPPORTED_Y || fails(function () {\n return !$RegExp('a', 'y').sticky;\n});\n\nvar BROKEN_CARET = UNSUPPORTED_Y || fails(function () {\n // https://bugzilla.mozilla.org/show_bug.cgi?id=773687\n var re = $RegExp('^r', 'gy');\n re.lastIndex = 2;\n return re.exec('str') != null;\n});\n\nmodule.exports = {\n BROKEN_CARET: BROKEN_CARET,\n MISSED_STICKY: MISSED_STICKY,\n UNSUPPORTED_Y: UNSUPPORTED_Y\n};\n","var fails = require('../internals/fails');\nvar global = require('../internals/global');\n\n// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError\nvar $RegExp = global.RegExp;\n\nmodule.exports = fails(function () {\n var re = $RegExp('.', 's');\n return !(re.dotAll && re.exec('\\n') && re.flags === 's');\n});\n","var fails = require('../internals/fails');\nvar global = require('../internals/global');\n\n// babel-minify and Closure Compiler transpiles RegExp('(?b)', 'g') -> /(?b)/g and it causes SyntaxError\nvar $RegExp = global.RegExp;\n\nmodule.exports = fails(function () {\n var re = $RegExp('(?b)', 'g');\n return re.exec('b').groups.a !== 'b' ||\n 'b'.replace(re, '$c') !== 'bc';\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar exec = require('../internals/regexp-exec');\n\n// `RegExp.prototype.exec` method\n// https://tc39.es/ecma262/#sec-regexp.prototype.exec\n$({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {\n exec: exec\n});\n","/**\n * Provide feature detection\n * @class Features\n */\nexport class Features {\n /**\n * If the browser has WebGL support\n * @property {boolean} webgl\n */\n static get webgl() {\n const canvas = document.createElement('canvas');\n\n return !!(\n canvas &&\n (canvas.getContext('webgl') || canvas.getContext('experimental-webgl'))\n );\n }\n\n /**\n * If the browser has Canvas support\n * @property {boolean} canvas\n */\n static get canvas() {\n const canvas = document.createElement('canvas');\n return !!(canvas !== null && canvas.getContext && canvas.getContext('2d'));\n }\n\n /**\n * If the browser has WebAudio API support\n * @property {boolean} webaudio\n */\n static get webaudio() {\n return 'webkitAudioContext' in window || 'AudioContext' in window;\n }\n\n /**\n * If the browser has HTMLAudio support\n * @property {boolean} htmlAudio\n */\n static get htmlAudio() {\n return 'HTMLAudioElement' in window;\n }\n\n /**\n * If the browser has Web Sockets API\n * @property {boolean} websockets\n */\n static get websockets() {\n return 'WebSocket' in window || 'MozWebSocket' in window;\n }\n\n /**\n * If the browser has Geolocation API\n * @property {boolean} geolocation\n */\n static get geolocation() {\n return 'geolocation' in navigator;\n }\n\n /**\n * If the browser has Web Workers API\n * @property {boolean} webworkers\n */\n static get webworkers() {\n return 'function' === typeof Worker;\n }\n\n /**\n * If the browser has touch\n * @property {boolean} touch\n */\n static get touch() {\n return !!(\n 'ontouchstart' in window || // iOS & Android\n (navigator.msPointerEnabled && navigator.msMaxTouchPoints > 0) || // IE10\n (navigator.pointerEnabled && navigator.maxTouchPoints > 0)\n ); // IE11+\n }\n\n /**\n * Test for basic browser compatiliblity\n * @method basic\n * @static\n * @return {String} The error message, if fails\n */\n static basic() {\n if (!Features.canvas) {\n return 'Browser does not support canvas';\n } else if (!Features.webaudio && !Features.htmlAudio) {\n return 'Browser does not support WebAudio or HTMLAudio';\n }\n return null;\n }\n\n /**\n * See if the current bowser has the correct features\n * @method test\n * @static\n * @param {object} capabilities The capabilities\n * @param {object} [capabilities.features] The features\n * @param {object} [capabilities.features.webgl] WebGL required\n * @param {object} [capabilities.features.geolocation] Geolocation required\n * @param {object} [capabilities.features.webworkers] Web Workers API required\n * @param {object} [capabilities.features.webaudio] WebAudio API required\n * @param {object} [capabilities.features.websockets] WebSockets required\n * @param {object} [capabilities.sizes] The sizes\n * @param {Boolean} [capabilities.sizes.xsmall] Screens < 480\n * @param {Boolean} [capabilities.sizes.small] Screens < 768\n * @param {Boolean} [capabilities.sizes.medium] Screens < 992\n * @param {Boolean} [capabilities.sizes.large] Screens < 1200\n * @param {Boolean} [capabilities.sizes.xlarge] Screens >= 1200\n * @param {object} [capabilities.ui] The ui\n * @param {Boolean} [capabilities.ui.touch] Touch capable\n * @return {String|null} The error, or else returns null\n */\n static test(capabilities) {\n // check for basic compatibility\n const err = this.basic();\n if (err) {\n return err;\n }\n\n const features = capabilities.features;\n const ui = capabilities.ui;\n const sizes = capabilities.sizes;\n\n for (const name in features) {\n if (features[name] === true && !Features[name]) {\n // Failed built-in feature check\n return 'Browser does not support ' + name;\n }\n }\n\n // Failed negative touch requirement\n if (!ui.touch && Features.touch) {\n return 'Game does not support touch input';\n }\n\n // Check the sizes\n const size = Math.max(window.screen.width, window.screen.height);\n\n if (!sizes.xsmall && size < 480) {\n return 'Game doesn\\'t support extra small screens';\n }\n if (!sizes.small && size < 768) {\n return 'Game doesn\\'t support small screens';\n }\n if (!sizes.medium && size < 992) {\n return 'Game doesn\\'t support medium screens';\n }\n if (!sizes.large && size < 1200) {\n return 'Game doesn\\'t support large screens';\n }\n if (!sizes.xlarge && size >= 1200) {\n return 'Game doesn\\'t support extra large screens';\n }\n return null;\n }\n\n /**\n * Returns browser feature support info\n * @returns {string}\n */\n static get info() {\n return `Browser Feature Detection\n\t\t\t\tCanvas support ${Features.canvas ? '\\u2713' : '\\u00D7'}\n\t\t\t\tWebGL support ${Features.webgl ? '\\u2713' : '\\u00D7'}\n\t\t\t\tWebAudio support ${Features.webAudio ? '\\u2713' : '\\u00D7'}`;\n }\n}\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\nvar toString = require('../internals/to-string');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nvar charAt = uncurryThis(''.charAt);\nvar charCodeAt = uncurryThis(''.charCodeAt);\nvar stringSlice = uncurryThis(''.slice);\n\nvar createMethod = function (CONVERT_TO_STRING) {\n return function ($this, pos) {\n var S = toString(requireObjectCoercible($this));\n var position = toIntegerOrInfinity(pos);\n var size = S.length;\n var first, second;\n if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;\n first = charCodeAt(S, position);\n return first < 0xD800 || first > 0xDBFF || position + 1 === size\n || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF\n ? CONVERT_TO_STRING\n ? charAt(S, position)\n : first\n : CONVERT_TO_STRING\n ? stringSlice(S, position, position + 2)\n : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;\n };\n};\n\nmodule.exports = {\n // `String.prototype.codePointAt` method\n // https://tc39.es/ecma262/#sec-string.prototype.codepointat\n codeAt: createMethod(false),\n // `String.prototype.at` method\n // https://github.com/mathiasbynens/String.prototype.at\n charAt: createMethod(true)\n};\n","'use strict';\nvar charAt = require('../internals/string-multibyte').charAt;\nvar toString = require('../internals/to-string');\nvar InternalStateModule = require('../internals/internal-state');\nvar defineIterator = require('../internals/iterator-define');\nvar createIterResultObject = require('../internals/create-iter-result-object');\n\nvar STRING_ITERATOR = 'String Iterator';\nvar setInternalState = InternalStateModule.set;\nvar getInternalState = InternalStateModule.getterFor(STRING_ITERATOR);\n\n// `String.prototype[@@iterator]` method\n// https://tc39.es/ecma262/#sec-string.prototype-@@iterator\ndefineIterator(String, 'String', function (iterated) {\n setInternalState(this, {\n type: STRING_ITERATOR,\n string: toString(iterated),\n index: 0\n });\n// `%StringIteratorPrototype%.next` method\n// https://tc39.es/ecma262/#sec-%stringiteratorprototype%.next\n}, function next() {\n var state = getInternalState(this);\n var string = state.string;\n var index = state.index;\n var point;\n if (index >= string.length) return createIterResultObject(undefined, true);\n point = charAt(string, index);\n state.index += point.length;\n return createIterResultObject(point, false);\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar $filter = require('../internals/array-iteration').filter;\nvar arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');\n\nvar HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');\n\n// `Array.prototype.filter` method\n// https://tc39.es/ecma262/#sec-array.prototype.filter\n// with adding support of @@species\n$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {\n filter: function filter(callbackfn /* , thisArg */) {\n return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar $find = require('../internals/array-iteration').find;\nvar addToUnscopables = require('../internals/add-to-unscopables');\n\nvar FIND = 'find';\nvar SKIPS_HOLES = true;\n\n// Shouldn't skip holes\nif (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });\n\n// `Array.prototype.find` method\n// https://tc39.es/ecma262/#sec-array.prototype.find\n$({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {\n find: function find(callbackfn /* , that = undefined */) {\n return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables(FIND);\n","function t(t,e){return t(e={exports:{}},e.exports),e.exports}var e=t((function(t){function e(t){return(e=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t})(t)}function n(r){return\"function\"==typeof Symbol&&\"symbol\"===e(Symbol.iterator)?t.exports=n=function(t){return e(t)}:t.exports=n=function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":e(t)},n(r)}t.exports=n}));var n=function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")};function r(t,e){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:0;this._listeners[t]||(this._listeners[t]=[]),e._priority=parseInt(n)||0,-1===this._listeners[t].indexOf(e)&&(this._listeners[t].push(e),this._listeners[t].length>1&&this._listeners[t].sort(this.listenerSorter))}},{key:\"listenerSorter\",value:function(t,e){return t._priority-e._priority}},{key:\"off\",value:function(t,e){if(void 0!==this._listeners[t])if(void 0!==e){var n=this._listeners[t].indexOf(e);-11&&void 0!==arguments[1]?arguments[1]:{};if(\"string\"==typeof t&&(t={type:t,data:\"object\"===e(n)&&null!==n?n:{}}),void 0!==this._listeners[t.type])for(var r=this._listeners[t.type].length-1;r>=0;r--)this._listeners[t.type][r](t)}},{key:\"destroy\",value:function(){this._listeners={}}}]),t}(),s=t((function(t){var e=function(t){var e,n=Object.prototype,r=n.hasOwnProperty,o=\"function\"==typeof Symbol?Symbol:{},i=o.iterator||\"@@iterator\",s=o.asyncIterator||\"@@asyncIterator\",a=o.toStringTag||\"@@toStringTag\";function c(t,e,n,r){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),s=new S(r||[]);return i._invoke=function(t,e,n){var r=h;return function(o,i){if(r===f)throw new Error(\"Generator is already running\");if(r===p){if(\"throw\"===o)throw i;return P()}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var a=O(s,n);if(a){if(a===y)continue;return a}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(r===h)throw r=p,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);r=f;var c=u(t,e,n);if(\"normal\"===c.type){if(r=n.done?p:l,c.arg===y)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(r=p,n.method=\"throw\",n.arg=c.arg)}}}(t,n,s),i}function u(t,e,n){try{return{type:\"normal\",arg:t.call(e,n)}}catch(t){return{type:\"throw\",arg:t}}}t.wrap=c;var h=\"suspendedStart\",l=\"suspendedYield\",f=\"executing\",p=\"completed\",y={};function d(){}function v(){}function g(){}var m={};m[i]=function(){return this};var w=Object.getPrototypeOf,b=w&&w(w(j([])));b&&b!==n&&r.call(b,i)&&(m=b);var _=g.prototype=d.prototype=Object.create(m);function x(t){[\"next\",\"throw\",\"return\"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function L(t){function e(n,o,i,s){var a=u(t[n],t,o);if(\"throw\"!==a.type){var c=a.arg,h=c.value;return h&&\"object\"==typeof h&&r.call(h,\"__await\")?Promise.resolve(h.__await).then((function(t){e(\"next\",t,i,s)}),(function(t){e(\"throw\",t,i,s)})):Promise.resolve(h).then((function(t){c.value=t,i(c)}),(function(t){return e(\"throw\",t,i,s)}))}s(a.arg)}var n;this._invoke=function(t,r){function o(){return new Promise((function(n,o){e(t,r,n,o)}))}return n=n?n.then(o,o):o()}}function O(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,\"throw\"===n.method){if(t.iterator.return&&(n.method=\"return\",n.arg=e,O(t,n),\"throw\"===n.method))return y;n.method=\"throw\",n.arg=new TypeError(\"The iterator does not provide a 'throw' method\")}return y}var o=u(r,t.iterator,n.arg);if(\"throw\"===o.type)return n.method=\"throw\",n.arg=o.arg,n.delegate=null,y;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,\"return\"!==n.method&&(n.method=\"next\",n.arg=e),n.delegate=null,y):i:(n.method=\"throw\",n.arg=new TypeError(\"iterator result is not an object\"),n.delegate=null,y)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(E,this),this.reset(!0)}function j(t){if(t){var n=t[i];if(n)return n.call(t);if(\"function\"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,s=function n(){for(;++o=0;--i){var s=this.tryEntries[i],a=s.completion;if(\"root\"===s.tryLoc)return o(\"end\");if(s.tryLoc<=this.prev){var c=r.call(s,\"catchLoc\"),u=r.call(s,\"finallyLoc\");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,\"finallyLoc\")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if(\"throw\"===r.type){var o=r.arg;k(n)}return o}}throw new Error(\"illegal catch attempt\")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},\"next\"===this.method&&(this.arg=e),y}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function(\"r\",\"regeneratorRuntime = r\")(e)}}));var a=function(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t};var c=function(t,n){return!n||\"object\"!==e(n)&&\"function\"!=typeof n?a(t):n},u=t((function(t){function e(n){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},e(n)}t.exports=e}));var h=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=u(t)););return t},l=t((function(t){function e(n,r,o){return\"undefined\"!=typeof Reflect&&Reflect.get?t.exports=e=Reflect.get:t.exports=e=function(t,e,n){var r=h(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}},e(n,r,o||n)}t.exports=e})),f=t((function(t){function e(n,r){return t.exports=e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},e(n,r)}t.exports=e}));var p=function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)},y=function(t){function r(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100*Math.random()|0;return n(this,r),(t=c(this,u(r).call(this))).id=\"BELLHOP:\".concat(e),t.connected=!1,t.isChild=!0,t.connecting=!1,t.debug=!1,t.origin=\"*\",t._sendLater=[],t.iframe=null,t.receive=t.receive.bind(a(t)),t}return p(r,i),o(r,[{key:\"receive\",value:function(t){if(this.target===t.source)if(this.logDebugMessage(!0,t),\"connected\"===t.data)this.onConnectionReceived(t.data);else{var n=t.data;if(\"string\"==typeof n)try{n=JSON.parse(n)}catch(t){console.warn(\"Bellhop error: \",t)}this.connected&&\"object\"===e(n)&&n.type&&this.trigger(n)}}},{key:\"onConnectionReceived\",value:function(t){if(this.connecting=!1,this.connected=!0,!this.isChild){if(!this.target)return;this.target.postMessage(t,this.origin)}for(var e=0;e1&&void 0!==arguments[1]?arguments[1]:\"*\";this.connecting||(this.disconnect(),this.connecting=!0,t instanceof HTMLIFrameElement&&(this.iframe=t),this.isChild=void 0===t,this.supported=!0,this.isChild&&(this.supported=window!=t),this.origin=e,window.addEventListener(\"message\",this.receive),this.isChild&&(window===this.target?this.trigger(\"failed\"):this.target.postMessage(\"connected\",this.origin)))}},{key:\"disconnect\",value:function(){this.connected=!1,this.connecting=!1,this.origin=null,this.iframe=null,this.isChild=!0,this._sendLater.length=0,window.removeEventListener(\"message\",this.receive)}},{key:\"send\",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(\"string\"!=typeof t)throw\"The event type must be a string\";var n={type:t,data:e};this.logDebugMessage(!1,n),this.connecting?this._sendLater.push(n):this.target.postMessage(JSON.stringify(n),this.origin)}},{key:\"fetch\",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!this.connecting&&!this.connected)throw\"No connection, please call connect() first\";var i=function t(r){o&&n.off(r.type,t),e(r)};this.on(t,i),this.send(t,r)}},{key:\"respond\",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this,o=function t(o){return s.async((function(i){for(;;)switch(i.prev=i.next){case 0:if(n&&r.off(o,t),\"function\"!=typeof e){i.next=10;break}return i.t0=r,i.t1=o.type,i.next=6,s.awrap(e());case 6:i.t2=i.sent,i.t0.send.call(i.t0,i.t1,i.t2),i.next=11;break;case 10:r.send(o.type,e);case 11:case\"end\":return i.stop()}}))};this.on(t,o)}},{key:\"logDebugMessage\",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1?arguments[1]:void 0;this.debug&&\"function\"==typeof this.debug?this.debug({isChild:this.isChild,received:t,message:e}):this.debug&&console.log(\"Bellhop Instance (\".concat(this.isChild?\"Child\":\"Parent\",\") \").concat(t?\"Receieved\":\"Sent\"),e)}},{key:\"destroy\",value:function(){l(u(r.prototype),\"destroy\",this).call(this),this.disconnect(),this._sendLater.length=0}},{key:\"target\",get:function(){return this.isChild?window.parent:this.iframe.contentWindow}}]),r}();export{y as Bellhop,i as BellhopEventDispatcher};\n//# sourceMappingURL=bellhop.js.map\n","/**\n * @typedef {import('./base-plugins/BasePlugin').BasePlugin} BasePlugin\n */\nimport { Bellhop } from 'bellhop-iframe';\n/**\n *\n *\n * @export\n * @class PluginManager\n */\nexport default class PluginManager {\n /**\n *Creates an instance of PluginManager.\n * @memberof PluginManager\n */\n constructor({ plugins = [] }) {\n this.client = new Bellhop();\n this.preloading = true;\n // @ts-ignore\n this.client.hidden = this.client.receive.bind(this.client);\n // @ts-ignore\n this.client.hiddenSend = this.client.send.bind(this.client);\n this.client.receive = function (event) {\n this.hidden(event);\n }.bind(this.client);\n this.client.send = function (event, data) {\n this.hiddenSend(event, data);\n }.bind(this.client);\n\n this.plugins = plugins;\n }\n\n /**\n *\n *\n * @returns\n * @memberof PluginManager\n */\n setupPlugins() {\n const preloads = [];\n for (let i = 0, l = this.plugins.length; i < l; i++) {\n if (!this.plugins[i].preload) {\n continue;\n }\n\n preloads.push(\n this.plugins[i].preload(this).catch(function preloadFail(error) {\n this.plugins[i].preloadFailed = true;\n console.warn(this.plugins[i].name, 'Preload Failed:', error);\n }.bind(this))\n );\n }\n\n // ~wait for all preloads to resolve\n return Promise.all(preloads).then(() => {\n // Remove plugins that fail to load.\n this.plugins = this.plugins.filter(\n plugin => plugin.preloadFailed !== true\n );\n\n this.preloading = false;\n this.client.trigger('preloadsFinished');\n\n //init\n this.plugins.forEach(plugin => {\n if (!plugin.init) {\n return;\n }\n\n plugin.init(this);\n });\n\n //start\n this.plugins.forEach(plugin => {\n if (!plugin.start) {\n return;\n }\n plugin.start(this);\n });\n });\n }\n\n /**\n * Registers a plugin to be used by PluginManagers, sorting it by priority order.\n * @param {BasePlugin} plugin The plugin to register.\n */\n uses(plugin) {\n this.plugins.push(plugin);\n }\n\n /**\n * Finds a plugin by name.\n * @param {string} name The name of the plugin.\n * @returns {BasePlugin}\n */\n getPlugin(name) {\n return this.plugins.find(function (plugin) {\n return plugin.name === name;\n });\n }\n}\n","import 'whatwg-fetch';\n\nimport { Features } from './Features';\nimport PluginManager from './PluginManager';\n// @ts-ignore\nimport { version } from '../package.json';\n\n/**\n * The application container\n * @class Container\n * @property {Bellhop} client Communication layer between the container and application\n * @property {boolean} loaded Check to see if a application is loaded\n * @property {boolean} loading Check to see if a application is loading\n * @property {object} release The current release data\n * @property {HTMLIFrameElement} iframe The DOM object for the iframe\n * @static @property {string} version The current version of the library\n */\nexport class Container extends PluginManager {\n /**\n *Creates an instance of Container.\n * @param {object} config\n * @param {string | HTMLIFrameElement} iframeOrSelector\n * @param {Array | null} [config.plugins]\n * @param {object | null} [config.context={}]\n * @memberof Container\n */\n constructor(iframeOrSelector, { plugins, context = {} } = {}) {\n super({ plugins });\n\n this.iframe = iframeOrSelector instanceof HTMLIFrameElement ? iframeOrSelector : document.querySelector(iframeOrSelector);\n this.iframe.style.backgroundColor = 'black';\n\n if (null === this.iframe) {\n throw new Error('No iframe was found with the provided selector');\n }\n\n this.loaded = false;\n this.loading = false;\n this.release = null;\n\n // context object that plugins can pick up on\n this._context = context;\n\n this.onLoading = this.onLoading.bind(this);\n this.onLoadDone = this.onLoadDone.bind(this);\n this.onLoadDone = this.onLoadDone.bind(this);\n this.onEndGame = this.onEndGame.bind(this);\n this.onLocalError = this.onLocalError.bind(this);\n\n this.initClient();\n this.setupPlugins();\n }\n\n /**\n * The game is starting to load\n * @memberof Container\n */\n onLoading() {\n this.client.trigger('opening');\n }\n\n /**\n * Reset the mutes for audio and captions\n * @memberof Container\n */\n onLoadDone() {\n this.loading = false;\n this.loaded = true;\n this.iframe.classList.remove('loading');\n\n this.client.trigger('opened');\n }\n\n /**\n * The application ended and destroyed itself\n * @memberof Container\n */\n onEndGame() {\n this.reset();\n }\n /**\n * Handle the local errors\n * @method onLocalError\n * @private\n * @param {Event} $event Bellhop event\n */\n onLocalError($event) {\n console.error('SpringRoll Container error: ', $event, new Error().stack);\n }\n\n /**\n * Reset all the buttons back to their original setting\n * and clear the iframe.\n * @memberof Container\n */\n reset() {\n const wasLoaded = this.loaded || this.loading;\n\n if (wasLoaded) {\n this.client.trigger('closed');\n }\n\n // Reset state\n this.loaded = false;\n this.loading = false;\n\n // Clear the iframe src location\n this.iframe.setAttribute('src', '');\n this.iframe.classList.remove('loading');\n }\n\n /**\n * Set up communication layer between site and application.\n * May be called from subclasses if they create/destroy Bellhop instances.\n * @memberof Container\n */\n initClient() {\n //Handle bellhop events coming from the application\n this.client.on('loading', this.onLoading);\n this.client.on('loaded', this.onLoadDone);\n this.client.on('loadDone', this.onLoadDone);\n this.client.on('endGame', this.onEndGame);\n this.client.on('localError', this.onLocalError);\n // @ts-ignore\n this.client.connect(this.iframe);\n }\n\n /**\n * If there was an error when closing, reset the container\n * @memberof Container\n */\n _onCloseFailed() {\n this.reset(); // force close the app\n }\n\n /**\n * Open a application or path\n * @param {string} userPath The full path to the application to load\n * @param {object} [userOptions] The open options\n * @param {boolean} [userOptions.singlePlay=false] If we should play in single play mode\n * @param {object | null} [userOptions.playOptions=null] The optional play options\n * @memberof Container\n */\n _internalOpen(userPath, { singlePlay = false, playOptions = null } = {}) {\n // If plugin preloads are still going wait for them to finish before opening the Application\n if (this.preloading) {\n this.client.on('preloadsFinished', () => {\n this._internalOpen(userPath, { singlePlay, playOptions });\n });\n\n return;\n }\n\n const options = { singlePlay, playOptions };\n this.reset();\n\n this.loading = true;\n this.initClient();\n\n const err = Features.basic();\n if (err) {\n console.error('ERROR:', err);\n this.client.trigger('unsupported');\n }\n\n let path = userPath;\n if (null !== options.playOptions) {\n const playOptionsQueryString =\n 'playOptions=' +\n encodeURIComponent(JSON.stringify(options.playOptions));\n\n path =\n -1 === userPath.indexOf('?')\n ? `${userPath}?${playOptionsQueryString}`\n : `${userPath}&${playOptionsQueryString}`;\n }\n\n this.iframe.classList.add('loading');\n this.iframe.setAttribute('src', path);\n\n this.client.respond('singlePlay', singlePlay);\n this.client.respond('playOptions', playOptions);\n this.client.trigger('open');\n }\n\n /**\n *\n *\n * @param {string} path\n * @param {object} [options={}]\n * @memberof Container\n */\n openPath(path, options = {}) {\n // This should be deprecated, support for old function signature\n if ('object' !== typeof options) {\n console.warn(\n 'SpringRoll Container.openPath was passed a invalid options parameter. Using default parameters instead'\n );\n options = {};\n }\n\n this._internalOpen(\n path,\n Object.assign(\n {\n singlePlay: false,\n playOptions: {}\n },\n options\n )\n );\n }\n\n /**\n * Open application based on an API Call to SpringRoll Connect\n * @param {string} api\n * @param {object} options\n * @param {string} [options.query='']\n * @param {boolean} [options.singlePlay=false]\n * @param {null | object} [options.playOptions=null]\n * @returns {Promise}\n * @memberof Container\n */\n async openRemote(\n api,\n { query = '', singlePlay = false, playOptions = null } = {}\n ) {\n this.release = null;\n\n const response = await fetch(api, {\n headers: {\n 'Content-Type': 'application/json'\n }\n });\n\n const json = await response.json();\n\n // if SpringRollConnect denoted that something failed, send that error back\n if (!json.success) {\n throw new Error(json.error);\n }\n\n // If the browser doesn't support the capabilities requested by this game, also fail.\n const release = json.data;\n const error = Features.test(release.capabilities);\n if (error) {\n this.client.trigger('unsupported', { error });\n throw new Error(error);\n }\n\n // otherwise, open the game\n this.release = release;\n this._internalOpen(release.url + query, {\n singlePlay,\n playOptions\n });\n }\n\n /**\n * Destroy and don't use after this\n * @memberof Container\n */\n destroy() {\n this.reset();\n\n this.iframe = null;\n this.options = null;\n this.release = null;\n }\n\n /**\n * Tell the application to start closing\n * @memberof Container\n */\n close() {\n if (this.loading || this.loaded) {\n this.client.trigger('close');\n // Start the close\n this.client.send('close');\n } else {\n this.reset();\n }\n }\n\n /**\n * the current _context object\n * @readonly\n * @memberof Container\n * @return {object}\n */\n get context() {\n return this._context;\n }\n\n /**\n * sets _context object to new object\n * @param {object} context\n * @memberof Container\n */\n set context(newContext) {\n if (typeof newContext !== 'object') {\n console.error('[SpringRollContainer] Context: new context provided is not an object');\n return;\n }\n this._context = newContext;\n }\n\n\n\n /**\n * The current version of SpringRollContainer\n * @readonly\n * @static\n * @return {string}\n * @memberof Container\n */\n static get version() {\n return version;\n }\n}\n","/**\n * Handle the page visiblity change, if supported. Application uses one of these to\n * monitor page visibility. It is suggested that you listen to `pause`, `paused`,\n * or `resumed` events on the Application instead of using one of these yourself.\n *\n * @export\n * @class PageVisibility\n * @constructor\n * @param {Function} onFocus Callback when the page becomes visible\n * @param {Function} onBlur Callback when the page loses visibility\n */\nexport class PageVisibility {\n /**\n *Creates an instance of PageVisibility.\n * @param { function } [onFocus=function() {}]\n * @param { function } [onBlur=function() {}]\n * @memberof PageVisibility\n */\n constructor(onFocus = function() {}, onBlur = function() {}) {\n this._onFocus = onFocus;\n this._onBlur = onBlur;\n this.onFocus = function(e) {\n if (this.enabled) {\n this._onFocus(e);\n }\n }.bind(this);\n this.onBlur = function(e) {\n if (this.enabled) {\n this._onBlur(e);\n }\n }.bind(this);\n this._enabled = false;\n this.enabled = true;\n\n this.onToggle = this.onToggle.bind(this);\n }\n\n /**\n * Disable the detection\n * @memberof PageVisibility\n */\n destroy() {\n this.enabled = false;\n this.onToggle = null;\n this.onFocus = null;\n this.onBlur = null;\n }\n\n /**\n * The visibility toggle listener function\n * @param {Event} $event;\n * @memberof PageVisibility\n */\n onToggle($event) {\n if (this.enabled) {\n document.hidden ? this.onBlur($event) : this.onFocus($event);\n }\n }\n\n /**\n * If this object is enabled.\n * @returns {boolean}\n * @memberof PageVisibility\n */\n get enabled() {\n return this._enabled;\n }\n\n /**\n * Sets the state of the object\n * @memberof PageVisibility\n */\n set enabled(enable) {\n this._enabled = enable;\n\n document.removeEventListener('visibilitychange', this.onToggle, false);\n window.removeEventListener('blur', this.onBlur, false);\n window.removeEventListener('focus', this.onFocus, false);\n window.removeEventListener('pagehide', this.onBlur, false);\n window.removeEventListener('pageshow', this.onFocus, false);\n window.removeEventListener('visibilitychange', this.onToggle, false);\n\n if (this._enabled) {\n document.addEventListener('visibilitychange', this.onToggle, false);\n window.addEventListener('blur', this.onBlur, false);\n window.addEventListener('focus', this.onFocus, false);\n window.addEventListener('pagehide', this.onBlur, false);\n window.addEventListener('pageshow', this.onFocus, false);\n window.addEventListener('visibilitychange', this.onToggle, false);\n }\n }\n}\n","'use strict';\nvar $ = require('../internals/export');\nvar $includes = require('../internals/array-includes').includes;\nvar fails = require('../internals/fails');\nvar addToUnscopables = require('../internals/add-to-unscopables');\n\n// FF99+ bug\nvar BROKEN_ON_SPARSE = fails(function () {\n // eslint-disable-next-line es/no-array-prototype-includes -- detection\n return !Array(1).includes();\n});\n\n// `Array.prototype.includes` method\n// https://tc39.es/ecma262/#sec-array.prototype.includes\n$({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {\n includes: function includes(el /* , fromIndex = 0 */) {\n return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables('includes');\n","// a string of all valid unicode whitespaces\nmodule.exports = '\\u0009\\u000A\\u000B\\u000C\\u000D\\u0020\\u00A0\\u1680\\u2000\\u2001\\u2002' +\n '\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF';\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar toString = require('../internals/to-string');\nvar whitespaces = require('../internals/whitespaces');\n\nvar replace = uncurryThis(''.replace);\nvar ltrim = RegExp('^[' + whitespaces + ']+');\nvar rtrim = RegExp('(^|[^' + whitespaces + '])[' + whitespaces + ']+$');\n\n// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation\nvar createMethod = function (TYPE) {\n return function ($this) {\n var string = toString(requireObjectCoercible($this));\n if (TYPE & 1) string = replace(string, ltrim, '');\n if (TYPE & 2) string = replace(string, rtrim, '$1');\n return string;\n };\n};\n\nmodule.exports = {\n // `String.prototype.{ trimLeft, trimStart }` methods\n // https://tc39.es/ecma262/#sec-string.prototype.trimstart\n start: createMethod(1),\n // `String.prototype.{ trimRight, trimEnd }` methods\n // https://tc39.es/ecma262/#sec-string.prototype.trimend\n end: createMethod(2),\n // `String.prototype.trim` method\n // https://tc39.es/ecma262/#sec-string.prototype.trim\n trim: createMethod(3)\n};\n","var PROPER_FUNCTION_NAME = require('../internals/function-name').PROPER;\nvar fails = require('../internals/fails');\nvar whitespaces = require('../internals/whitespaces');\n\nvar non = '\\u200B\\u0085\\u180E';\n\n// check that a method works with the correct list\n// of whitespaces and has a correct name\nmodule.exports = function (METHOD_NAME) {\n return fails(function () {\n return !!whitespaces[METHOD_NAME]()\n || non[METHOD_NAME]() !== non\n || (PROPER_FUNCTION_NAME && whitespaces[METHOD_NAME].name !== METHOD_NAME);\n });\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar $trim = require('../internals/string-trim').trim;\nvar forcedStringTrimMethod = require('../internals/string-trim-forced');\n\n// `String.prototype.trim` method\n// https://tc39.es/ecma262/#sec-string.prototype.trim\n$({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {\n trim: function trim() {\n return $trim(this);\n }\n});\n","var call = require('../internals/function-call');\nvar hasOwn = require('../internals/has-own-property');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar regExpFlags = require('../internals/regexp-flags');\n\nvar RegExpPrototype = RegExp.prototype;\n\nmodule.exports = function (R) {\n var flags = R.flags;\n return flags === undefined && !('flags' in RegExpPrototype) && !hasOwn(R, 'flags') && isPrototypeOf(RegExpPrototype, R)\n ? call(regExpFlags, R) : flags;\n};\n","'use strict';\nvar PROPER_FUNCTION_NAME = require('../internals/function-name').PROPER;\nvar defineBuiltIn = require('../internals/define-built-in');\nvar anObject = require('../internals/an-object');\nvar $toString = require('../internals/to-string');\nvar fails = require('../internals/fails');\nvar getRegExpFlags = require('../internals/regexp-get-flags');\n\nvar TO_STRING = 'toString';\nvar RegExpPrototype = RegExp.prototype;\nvar nativeToString = RegExpPrototype[TO_STRING];\n\nvar NOT_GENERIC = fails(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });\n// FF44- RegExp#toString has a wrong name\nvar INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name != TO_STRING;\n\n// `RegExp.prototype.toString` method\n// https://tc39.es/ecma262/#sec-regexp.prototype.tostring\nif (NOT_GENERIC || INCORRECT_NAME) {\n defineBuiltIn(RegExp.prototype, TO_STRING, function toString() {\n var R = anObject(this);\n var pattern = $toString(R.source);\n var flags = $toString(getRegExpFlags(R));\n return '/' + pattern + '/' + flags;\n }, { unsafe: true });\n}\n","/**\n * The SavedData functions use localStorage and sessionStorage, with a cookie fallback.\n *\n * @class SavedData\n */\nexport class SavedData {\n\n /**\n * Constructor for IndexedDB work\n */\n constructor(dbName = '') {\n this.db = null;\n this.dbName = dbName;\n }\n /**\n * Remove a saved variable by name.\n * @method remove\n * @static\n * @param {String} name The name of the value to remove\n */\n static remove(name) {\n localStorage.removeItem(name);\n sessionStorage.removeItem(name);\n }\n\n /**\n * Save a variable.\n * @method write\n * @static\n * @param {string} name The name of the value to save\n * @param {string} value The value to save. This will be run through JSON.stringify().\n * @param {boolean} [tempOnly=false] If the value should be saved only in the current browser session.\n */\n static write(name, value, tempOnly = false) {\n\n return tempOnly\n ? sessionStorage.setItem(\n name,\n JSON.stringify('function' === typeof value ? value() : value)\n )\n : localStorage.setItem(\n name,\n JSON.stringify('function' === typeof value ? value() : value)\n );\n }\n\n /**\n * Read the value of a saved variable\n * @method read\n * @static\n * @param {String} name The name of the variable\n * @return {*} The value (run through `JSON.parse()`) or null if it doesn't exist\n */\n static read(name) {\n const value = localStorage.getItem(name) || sessionStorage.getItem(name);\n\n if ('string' === typeof value) {\n try {\n return JSON.parse(value);\n } catch (err) {\n return value;\n }\n } else {\n return value;\n }\n }\n\n /**\n * Open a connection with the IDB Database and optionally add or delete\n * Indexes and stores\n *\n * @param {string} dbName The name of your IndexedDB database\n * @param {string} dbVersion The version number of the database. Additions and deletions will be ignored if lower than current version number\n * @param {JSON} additions Any additions to the structure of the database\n * @param {array} additions.stores Any stores to be added into the database syntax: {storeName: '[name]', options: {[optionally add options]}}\n * @param {array} additions.indexes Any Indexes to be added to the database syntax: {storeName: '[name]', options: {[optionally add options]}}\n */\n IDBOpen( dbName, dbVersion = null, additions = {}, deletions = {}, callback ) {\n const request = dbVersion ? indexedDB.open(dbName, dbVersion) : indexedDB.open(dbName);\n\n request.onsuccess = e => {\n // Database successfully opened. This will run along with onupgradeneeded\n this.db = e.target.result;\n\n if (this.db.version == dbVersion | dbVersion == null) {\n callback({result: 'Success: IDBOpen', success: true});\n }\n };\n\n request.onerror = () => {\n callback({result: request.error.toString(), success: false});\n };\n\n // on upgrade needed fires only if the dbVersion is higher than the current version number\n request.onupgradeneeded = e => {\n // Ensure the proper database object is stored\n this.db = e.target.result;\n\n if (additions != null) {\n if (additions.stores) {\n additions.stores.forEach(store => {\n this.db.createObjectStore(store.storeName, store.options);\n });\n }\n if (additions.indexes != null) {\n additions.indexes.forEach(index => {\n // Add indexes last to avoid adding an index to a store that has yet to be created\n // Open a transaction returning a store object\n const storeObject = request.transaction.objectStore(index.storeName);\n storeObject.createIndex(index.indexName, index.keyPath, index.options);\n });\n }\n }\n\n if (deletions != null) {\n if (deletions.indexes != null) {\n // delete indexes first to avoid deleting an index to a store that has already to been deleted\n deletions.indexes.forEach((index) => {\n // Open a transaction returning a store object\n const storeObject = request.transaction.objectStore(index.storeName);\n storeObject.deleteIndex(index.indexName);\n });\n }\n if (deletions.stores) {\n deletions.stores.forEach((store) => {\n this.db.deleteObjectStore(store.storeName);\n });\n }\n }\n callback({result: 'Success: IDBOpen onupgradeneeded ran', success: true});\n };\n }\n\n /**\n * Delete a database and all records, stores, and indexes associated\n * @param {string} dbName Name of the database to delete\n * @param {object} options Optionally pass in options\n * @param {function} callback The callback to be run on success or error. One value will be passed into this function\n */\n IDBDeleteDB(dbName, options = null, callback = {}) {\n const request = options != null ? indexedDB.deleteDatabase(dbName, options): indexedDB.deleteDatabase(dbName);\n\n request.onsuccess = (e) => {\n callback({result: 'Success: Database Deleted, returned: ' + e.result, success: true});\n };\n request.onerror = () => {\n callback({result: request.error.toString(), success: false});\n };\n\n\n }\n\n /**\n * Add a record to a given store\n * @param {string} storeName The name of the store from which the record will be updated\n * @param {string} key the key of the record to be updated\n * @param {string} value The value for the record with the given key to be updated\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBAdd(storeName, value, key, callback) {\n if ( !this.db && this.dbName != '') {\n this.IDBOpen(this.dbName);\n }\n\n const tx = this.db.transaction(storeName, 'readwrite');\n tx.onerror = () => callback({result: tx.error != null ? tx.error.toString() : 'Aborted: No error given, was the record already added?', success: false});\n tx.onabort = () => callback({result: tx.error != null ? tx.error.toString() : 'Aborted: No error given, was the record already added?', success: false});\n\n tx.oncomplete = () => callback({result: 'Success: Record Added', success: true});\n const store = tx.objectStore(storeName);\n store.add(value, key);\n }\n\n /**\n * Update a record in a given store\n * @param {string} storeName The name of the store from which the record will be updated\n * @param {string} key the key of the record to be updated\n * @param {string | object} value The altered object to be updated from the given store\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBUpdate (storeName, key, value, callback) {\n if ( !this.db && this.dbName != '') {\n this.IDBOpen(this.dbName);\n }\n\n const tx = this.db.transaction(storeName, 'readwrite');\n const store = tx.objectStore(storeName);\n\n const updateRequest = store.put(value, key);\n\n updateRequest.onsuccess = () => {\n callback({result: 'Success: Record Updated', success: true});\n };\n\n updateRequest.onerror = () => callback({result: updateRequest.error.toString(), success: false});\n }\n\n /**\n * Delete a given record within a given store\n * @param {string} storeName The name of the store from which the record will be removed\n * @param {string} key the key of the record to be removed\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBRemove(storeName, key, callback) {\n if ( !this.db && this.dbName != '') {\n this.IDBOpen(this.dbName);\n }\n\n const tx = this.db.transaction(storeName, 'readwrite');\n tx.onerror = () => callback({result: this.db.error.toString(), success: false});\n const store = tx.objectStore(storeName);\n store.delete(key);\n\n tx.oncomplete = () => callback({result: 'Removed Successfully', success: true});\n\n }\n\n /**\n * Return a record from a given store with a given key\n * @param {string} storeName the name of the store to read from\n * @param {string} key The key for the record in the given store\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBRead(storeName, key, callback) {\n // Open transaction with a store\n const tx = this.db.transaction(storeName, 'readonly');\n // Get the store object from the transaction\n const store = tx.objectStore(storeName);\n\n tx.onerror = () => callback({result: this.db.error.toString(), success: false});\n\n const readRequest = store.get(key);\n\n readRequest.onsuccess = () => {\n callback({result: readRequest.result, success: readRequest.result != undefined ? true : false});\n };\n\n }\n\n /**\n * Get all keys with given index\n * @param {string} storeName the name of the store to be read from\n * @param {string} indexName the name of the index to be read from\n * @param {string} query Optionally give a keyRange of records to return\n * @param {string} count Optionally give a max limit on records to be returned\n * @param {function} callback The method to call on success or failure. A single value will be passed in as a parameter\n */\n IDBGetIndexKeys (storeName, indexName, query = null, count = null, callback = {}) {\n // Open transaction with a store\n const tx = this.db.transaction(storeName, 'readonly');\n // Get the store object from the transaction\n const store = tx.objectStore(storeName);\n\n let index;\n\n tx.onerror = () => callback({result: this.db.error.toString(), success: false});\n\n if (query && count) {\n index = store.index(indexName, query, count);\n } else if (query) {\n index = store.index(indexName, query);\n } else {\n index = store.index(indexName);\n }\n\n const getAllKeysRequest = index.getAllKeys();\n\n\n getAllKeysRequest.onsuccess = function(e) {\n callback({result : e.result, success: true});\n };\n }\n\n /**\n * Get all records from a store\n * @param {string} storeName The store to get all records from\n * @param {integer} count Optionally the count of records to return\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBReadAll(storeName, count, callback) {\n // Open transaction with a store\n const tx = this.db.transaction(storeName, 'readonly');\n // Get the store object from the transaction\n const store = tx.objectStore(storeName);\n\n const readRequest = count != null ? store.getAll(null, count) : store.getAll();\n\n // const readRequest = store.getAll();\n\n tx.onerror = () => callback({result: tx.error.toString(), success: false});\n\n\n readRequest.onsuccess = () => {\n callback({result: readRequest.result, success: readRequest.result != undefined ? true : false});\n };\n }\n\n /**\n * Get the version number of a given database. This will create a database if it doesn't exist.\n * Do not call this after opening a connection with the database\n * @param {string} dbName The name of the database for which the version will be returned\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBGetVersion(dbName, callback) {\n // Open the database\n const dBOpenRequest = window.indexedDB.open(dbName);\n\n // these two event handlers act on the database\n // being opened. successfully, or not\n dBOpenRequest.onerror = function() {\n callback({result: dBOpenRequest.error.toString(), success: false});\n };\n\n dBOpenRequest.onsuccess = function() {\n const db = dBOpenRequest.result;\n callback({result: db.version, success: true});\n };\n }\n\n /**\n * Closes the connection to the database if open\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBClose(callback) {\n if ( this.db ) {\n this.db.close();\n callback({result: 'Success: Closed Database Connection', success: true});\n }\n }\n\n}\n","/* eslint-disable no-unused-vars */\nimport { SavedData } from '../SavedData';\nimport { Container } from '../Container';\n\n/**\n *\n *\n * @export\n * @class BasePlugin\n * @property {Bellhop} client\n * @property {string} name\n */\nexport class BasePlugin {\n /**\n *Creates an instance of BasePlugin.\n * @param {string} name\n * @memberof BasePlugin\n */\n constructor(name) {\n this.name = name;\n this.client = null;\n }\n\n /**\n *\n * @param {Container} [container]\n * @memberof BasePlugin\n * @returns {Promise}\n */\n async preload({ client }) {\n this.client = client;\n }\n\n /**\n *\n * @memberof BasePlugin\n */\n start() {\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * @param {Container} [_]\n * @memberof BasePlugin\n */\n init(_) { }\n\n /**\n *\n *\n * @param {string} prop\n * @param {any} value\n * @param {Boolean} disableSend\n * @memberof BasePlugin\n */\n sendProperty(prop, value, disableSend = false) {\n SavedData.write(prop, value);\n if (disableSend) { return; }\n this.client.send(prop, value);\n }\n\n\n /**\n *\n * @param {Container} [_]\n * @memberof BasePlugin\n */\n sendAllProperties(_) { }\n\n /**\n *\n * @param {string} warningText\n * @memberof BasePlugin\n */\n warn(warningText) {\n console.warn(`[SpringRollContainer] ${this.name}: ${warningText}`);\n }\n}\n","/* eslint-disable no-unused-vars */\nimport { BasePlugin } from './BasePlugin';\nimport { Container } from '../Container';\n\n/**\n *\n *\n * @export\n * @class ButtonPlugin\n * @extends {BasePlugin}\n */\nexport class ButtonPlugin extends BasePlugin {\n /**\n *Creates an instance of ButtonPlugin.\n * @param {string} name\n *\n * @memberof ButtonPlugin\n */\n constructor(name) {\n super(name);\n this.sendMutes = false;\n }\n\n /**\n * @memberof ButtonPlugin\n * @param {Container} [container]\n */\n init(container) {\n // eslint-disable-line no-unused-vars\n this.sendMutes = true;\n }\n\n /**\n *\n * Applies the disabled class to the provided element\n * @param {HTMLButtonElement | Element} button\n * @memberof ButtonPlugin\n */\n _disableButton(button) {\n if (button instanceof HTMLButtonElement) {\n button.classList.remove('enabled');\n button.classList.add('disabled');\n }\n }\n\n /**\n *\n *\n * @memberof ButtonPlugin\n */\n reset() {\n this.sendMutes = false;\n }\n\n /**\n *\n *\n * @param {string} prop\n * @param {Element} button\n * @param {Boolean} muted\n * @param {Boolean} disableSend\n * @memberof ButtonPlugin\n */\n _setMuteProp(prop, button, muted, disableSend = false) {\n console.log('_setmuteprop', prop, muted, disableSend);\n if (Array.isArray(button)) {\n button.forEach(b => this.changeMutedState(b, muted));\n } else {\n this.changeMutedState(button, muted);\n }\n\n this.sendProperty(prop, muted, disableSend);\n }\n\n /**\n *\n *\n * @param {Element} button\n * @param {Boolean} muted\n * @returns\n * @memberof ButtonPlugin\n */\n changeMutedState(button, muted = false) {\n //most times button will be a Button class rather than an HTMLElement\n //But just in case the Button ui-element is not being used\n const htmlButton = button.button ? button.button : button;\n\n if (!(htmlButton instanceof HTMLElement)) {\n return;\n }\n\n htmlButton.classList.remove('unmuted');\n htmlButton.classList.remove('muted');\n htmlButton.classList.add(muted ? 'muted' : 'unmuted');\n }\n}\n","var isObject = require('../internals/is-object');\nvar classof = require('../internals/classof-raw');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar MATCH = wellKnownSymbol('match');\n\n// `IsRegExp` abstract operation\n// https://tc39.es/ecma262/#sec-isregexp\nmodule.exports = function (it) {\n var isRegExp;\n return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof(it) == 'RegExp');\n};\n","var isRegExp = require('../internals/is-regexp');\n\nvar $TypeError = TypeError;\n\nmodule.exports = function (it) {\n if (isRegExp(it)) {\n throw $TypeError(\"The method doesn't accept regular expressions\");\n } return it;\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar MATCH = wellKnownSymbol('match');\n\nmodule.exports = function (METHOD_NAME) {\n var regexp = /./;\n try {\n '/./'[METHOD_NAME](regexp);\n } catch (error1) {\n try {\n regexp[MATCH] = false;\n return '/./'[METHOD_NAME](regexp);\n } catch (error2) { /* empty */ }\n } return false;\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar notARegExp = require('../internals/not-a-regexp');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar toString = require('../internals/to-string');\nvar correctIsRegExpLogic = require('../internals/correct-is-regexp-logic');\n\nvar stringIndexOf = uncurryThis(''.indexOf);\n\n// `String.prototype.includes` method\n// https://tc39.es/ecma262/#sec-string.prototype.includes\n$({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {\n includes: function includes(searchString /* , position = 0 */) {\n return !!~stringIndexOf(\n toString(requireObjectCoercible(this)),\n toString(notARegExp(searchString)),\n arguments.length > 1 ? arguments[1] : undefined\n );\n }\n});\n","var toAbsoluteIndex = require('../internals/to-absolute-index');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar createProperty = require('../internals/create-property');\n\nvar $Array = Array;\nvar max = Math.max;\n\nmodule.exports = function (O, start, end) {\n var length = lengthOfArrayLike(O);\n var k = toAbsoluteIndex(start, length);\n var fin = toAbsoluteIndex(end === undefined ? length : end, length);\n var result = $Array(max(fin - k, 0));\n for (var n = 0; k < fin; k++, n++) createProperty(result, n, O[k]);\n result.length = n;\n return result;\n};\n","/* eslint-disable es/no-object-getownpropertynames -- safe */\nvar classof = require('../internals/classof-raw');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar $getOwnPropertyNames = require('../internals/object-get-own-property-names').f;\nvar arraySlice = require('../internals/array-slice-simple');\n\nvar windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames\n ? Object.getOwnPropertyNames(window) : [];\n\nvar getWindowNames = function (it) {\n try {\n return $getOwnPropertyNames(it);\n } catch (error) {\n return arraySlice(windowNames);\n }\n};\n\n// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\nmodule.exports.f = function getOwnPropertyNames(it) {\n return windowNames && classof(it) == 'Window'\n ? getWindowNames(it)\n : $getOwnPropertyNames(toIndexedObject(it));\n};\n","// FF26- bug: ArrayBuffers are non-extensible, but Object.isExtensible does not report it\nvar fails = require('../internals/fails');\n\nmodule.exports = fails(function () {\n if (typeof ArrayBuffer == 'function') {\n var buffer = new ArrayBuffer(8);\n // eslint-disable-next-line es/no-object-isextensible, es/no-object-defineproperty -- safe\n if (Object.isExtensible(buffer)) Object.defineProperty(buffer, 'a', { value: 8 });\n }\n});\n","var fails = require('../internals/fails');\nvar isObject = require('../internals/is-object');\nvar classof = require('../internals/classof-raw');\nvar ARRAY_BUFFER_NON_EXTENSIBLE = require('../internals/array-buffer-non-extensible');\n\n// eslint-disable-next-line es/no-object-isextensible -- safe\nvar $isExtensible = Object.isExtensible;\nvar FAILS_ON_PRIMITIVES = fails(function () { $isExtensible(1); });\n\n// `Object.isExtensible` method\n// https://tc39.es/ecma262/#sec-object.isextensible\nmodule.exports = (FAILS_ON_PRIMITIVES || ARRAY_BUFFER_NON_EXTENSIBLE) ? function isExtensible(it) {\n if (!isObject(it)) return false;\n if (ARRAY_BUFFER_NON_EXTENSIBLE && classof(it) == 'ArrayBuffer') return false;\n return $isExtensible ? $isExtensible(it) : true;\n} : $isExtensible;\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-object-isextensible, es/no-object-preventextensions -- required for testing\n return Object.isExtensible(Object.preventExtensions({}));\n});\n","var $ = require('../internals/export');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar hiddenKeys = require('../internals/hidden-keys');\nvar isObject = require('../internals/is-object');\nvar hasOwn = require('../internals/has-own-property');\nvar defineProperty = require('../internals/object-define-property').f;\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertyNamesExternalModule = require('../internals/object-get-own-property-names-external');\nvar isExtensible = require('../internals/object-is-extensible');\nvar uid = require('../internals/uid');\nvar FREEZING = require('../internals/freezing');\n\nvar REQUIRED = false;\nvar METADATA = uid('meta');\nvar id = 0;\n\nvar setMetadata = function (it) {\n defineProperty(it, METADATA, { value: {\n objectID: 'O' + id++, // object ID\n weakData: {} // weak collections IDs\n } });\n};\n\nvar fastKey = function (it, create) {\n // return a primitive with prefix\n if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n if (!hasOwn(it, METADATA)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return 'F';\n // not necessary to add metadata\n if (!create) return 'E';\n // add missing metadata\n setMetadata(it);\n // return object ID\n } return it[METADATA].objectID;\n};\n\nvar getWeakData = function (it, create) {\n if (!hasOwn(it, METADATA)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return true;\n // not necessary to add metadata\n if (!create) return false;\n // add missing metadata\n setMetadata(it);\n // return the store of weak collections IDs\n } return it[METADATA].weakData;\n};\n\n// add metadata on freeze-family methods calling\nvar onFreeze = function (it) {\n if (FREEZING && REQUIRED && isExtensible(it) && !hasOwn(it, METADATA)) setMetadata(it);\n return it;\n};\n\nvar enable = function () {\n meta.enable = function () { /* empty */ };\n REQUIRED = true;\n var getOwnPropertyNames = getOwnPropertyNamesModule.f;\n var splice = uncurryThis([].splice);\n var test = {};\n test[METADATA] = 1;\n\n // prevent exposing of metadata key\n if (getOwnPropertyNames(test).length) {\n getOwnPropertyNamesModule.f = function (it) {\n var result = getOwnPropertyNames(it);\n for (var i = 0, length = result.length; i < length; i++) {\n if (result[i] === METADATA) {\n splice(result, i, 1);\n break;\n }\n } return result;\n };\n\n $({ target: 'Object', stat: true, forced: true }, {\n getOwnPropertyNames: getOwnPropertyNamesExternalModule.f\n });\n }\n};\n\nvar meta = module.exports = {\n enable: enable,\n fastKey: fastKey,\n getWeakData: getWeakData,\n onFreeze: onFreeze\n};\n\nhiddenKeys[METADATA] = true;\n","var isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\n\n// makes subclassing work correct for wrapped built-ins\nmodule.exports = function ($this, dummy, Wrapper) {\n var NewTarget, NewTargetPrototype;\n if (\n // it can work only with native `setPrototypeOf`\n setPrototypeOf &&\n // we haven't completely correct pre-ES6 way for getting `new.target`, so use this\n isCallable(NewTarget = dummy.constructor) &&\n NewTarget !== Wrapper &&\n isObject(NewTargetPrototype = NewTarget.prototype) &&\n NewTargetPrototype !== Wrapper.prototype\n ) setPrototypeOf($this, NewTargetPrototype);\n return $this;\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar global = require('../internals/global');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar isForced = require('../internals/is-forced');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar InternalMetadataModule = require('../internals/internal-metadata');\nvar iterate = require('../internals/iterate');\nvar anInstance = require('../internals/an-instance');\nvar isCallable = require('../internals/is-callable');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar isObject = require('../internals/is-object');\nvar fails = require('../internals/fails');\nvar checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar inheritIfRequired = require('../internals/inherit-if-required');\n\nmodule.exports = function (CONSTRUCTOR_NAME, wrapper, common) {\n var IS_MAP = CONSTRUCTOR_NAME.indexOf('Map') !== -1;\n var IS_WEAK = CONSTRUCTOR_NAME.indexOf('Weak') !== -1;\n var ADDER = IS_MAP ? 'set' : 'add';\n var NativeConstructor = global[CONSTRUCTOR_NAME];\n var NativePrototype = NativeConstructor && NativeConstructor.prototype;\n var Constructor = NativeConstructor;\n var exported = {};\n\n var fixMethod = function (KEY) {\n var uncurriedNativeMethod = uncurryThis(NativePrototype[KEY]);\n defineBuiltIn(NativePrototype, KEY,\n KEY == 'add' ? function add(value) {\n uncurriedNativeMethod(this, value === 0 ? 0 : value);\n return this;\n } : KEY == 'delete' ? function (key) {\n return IS_WEAK && !isObject(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);\n } : KEY == 'get' ? function get(key) {\n return IS_WEAK && !isObject(key) ? undefined : uncurriedNativeMethod(this, key === 0 ? 0 : key);\n } : KEY == 'has' ? function has(key) {\n return IS_WEAK && !isObject(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);\n } : function set(key, value) {\n uncurriedNativeMethod(this, key === 0 ? 0 : key, value);\n return this;\n }\n );\n };\n\n var REPLACE = isForced(\n CONSTRUCTOR_NAME,\n !isCallable(NativeConstructor) || !(IS_WEAK || NativePrototype.forEach && !fails(function () {\n new NativeConstructor().entries().next();\n }))\n );\n\n if (REPLACE) {\n // create collection constructor\n Constructor = common.getConstructor(wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER);\n InternalMetadataModule.enable();\n } else if (isForced(CONSTRUCTOR_NAME, true)) {\n var instance = new Constructor();\n // early implementations not supports chaining\n var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance;\n // V8 ~ Chromium 40- weak-collections throws on primitives, but should return false\n var THROWS_ON_PRIMITIVES = fails(function () { instance.has(1); });\n // most early implementations doesn't supports iterables, most modern - not close it correctly\n // eslint-disable-next-line no-new -- required for testing\n var ACCEPT_ITERABLES = checkCorrectnessOfIteration(function (iterable) { new NativeConstructor(iterable); });\n // for early implementations -0 and +0 not the same\n var BUGGY_ZERO = !IS_WEAK && fails(function () {\n // V8 ~ Chromium 42- fails only with 5+ elements\n var $instance = new NativeConstructor();\n var index = 5;\n while (index--) $instance[ADDER](index, index);\n return !$instance.has(-0);\n });\n\n if (!ACCEPT_ITERABLES) {\n Constructor = wrapper(function (dummy, iterable) {\n anInstance(dummy, NativePrototype);\n var that = inheritIfRequired(new NativeConstructor(), dummy, Constructor);\n if (!isNullOrUndefined(iterable)) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });\n return that;\n });\n Constructor.prototype = NativePrototype;\n NativePrototype.constructor = Constructor;\n }\n\n if (THROWS_ON_PRIMITIVES || BUGGY_ZERO) {\n fixMethod('delete');\n fixMethod('has');\n IS_MAP && fixMethod('get');\n }\n\n if (BUGGY_ZERO || HASNT_CHAINING) fixMethod(ADDER);\n\n // weak collections should not contains .clear method\n if (IS_WEAK && NativePrototype.clear) delete NativePrototype.clear;\n }\n\n exported[CONSTRUCTOR_NAME] = Constructor;\n $({ global: true, constructor: true, forced: Constructor != NativeConstructor }, exported);\n\n setToStringTag(Constructor, CONSTRUCTOR_NAME);\n\n if (!IS_WEAK) common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP);\n\n return Constructor;\n};\n","var defineBuiltIn = require('../internals/define-built-in');\n\nmodule.exports = function (target, src, options) {\n for (var key in src) defineBuiltIn(target, key, src[key], options);\n return target;\n};\n","'use strict';\nvar create = require('../internals/object-create');\nvar defineBuiltInAccessor = require('../internals/define-built-in-accessor');\nvar defineBuiltIns = require('../internals/define-built-ins');\nvar bind = require('../internals/function-bind-context');\nvar anInstance = require('../internals/an-instance');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar iterate = require('../internals/iterate');\nvar defineIterator = require('../internals/iterator-define');\nvar createIterResultObject = require('../internals/create-iter-result-object');\nvar setSpecies = require('../internals/set-species');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar fastKey = require('../internals/internal-metadata').fastKey;\nvar InternalStateModule = require('../internals/internal-state');\n\nvar setInternalState = InternalStateModule.set;\nvar internalStateGetterFor = InternalStateModule.getterFor;\n\nmodule.exports = {\n getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {\n var Constructor = wrapper(function (that, iterable) {\n anInstance(that, Prototype);\n setInternalState(that, {\n type: CONSTRUCTOR_NAME,\n index: create(null),\n first: undefined,\n last: undefined,\n size: 0\n });\n if (!DESCRIPTORS) that.size = 0;\n if (!isNullOrUndefined(iterable)) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });\n });\n\n var Prototype = Constructor.prototype;\n\n var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);\n\n var define = function (that, key, value) {\n var state = getInternalState(that);\n var entry = getEntry(that, key);\n var previous, index;\n // change existing entry\n if (entry) {\n entry.value = value;\n // create new entry\n } else {\n state.last = entry = {\n index: index = fastKey(key, true),\n key: key,\n value: value,\n previous: previous = state.last,\n next: undefined,\n removed: false\n };\n if (!state.first) state.first = entry;\n if (previous) previous.next = entry;\n if (DESCRIPTORS) state.size++;\n else that.size++;\n // add to index\n if (index !== 'F') state.index[index] = entry;\n } return that;\n };\n\n var getEntry = function (that, key) {\n var state = getInternalState(that);\n // fast case\n var index = fastKey(key);\n var entry;\n if (index !== 'F') return state.index[index];\n // frozen object case\n for (entry = state.first; entry; entry = entry.next) {\n if (entry.key == key) return entry;\n }\n };\n\n defineBuiltIns(Prototype, {\n // `{ Map, Set }.prototype.clear()` methods\n // https://tc39.es/ecma262/#sec-map.prototype.clear\n // https://tc39.es/ecma262/#sec-set.prototype.clear\n clear: function clear() {\n var that = this;\n var state = getInternalState(that);\n var data = state.index;\n var entry = state.first;\n while (entry) {\n entry.removed = true;\n if (entry.previous) entry.previous = entry.previous.next = undefined;\n delete data[entry.index];\n entry = entry.next;\n }\n state.first = state.last = undefined;\n if (DESCRIPTORS) state.size = 0;\n else that.size = 0;\n },\n // `{ Map, Set }.prototype.delete(key)` methods\n // https://tc39.es/ecma262/#sec-map.prototype.delete\n // https://tc39.es/ecma262/#sec-set.prototype.delete\n 'delete': function (key) {\n var that = this;\n var state = getInternalState(that);\n var entry = getEntry(that, key);\n if (entry) {\n var next = entry.next;\n var prev = entry.previous;\n delete state.index[entry.index];\n entry.removed = true;\n if (prev) prev.next = next;\n if (next) next.previous = prev;\n if (state.first == entry) state.first = next;\n if (state.last == entry) state.last = prev;\n if (DESCRIPTORS) state.size--;\n else that.size--;\n } return !!entry;\n },\n // `{ Map, Set }.prototype.forEach(callbackfn, thisArg = undefined)` methods\n // https://tc39.es/ecma262/#sec-map.prototype.foreach\n // https://tc39.es/ecma262/#sec-set.prototype.foreach\n forEach: function forEach(callbackfn /* , that = undefined */) {\n var state = getInternalState(this);\n var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n var entry;\n while (entry = entry ? entry.next : state.first) {\n boundFunction(entry.value, entry.key, this);\n // revert to the last existing entry\n while (entry && entry.removed) entry = entry.previous;\n }\n },\n // `{ Map, Set}.prototype.has(key)` methods\n // https://tc39.es/ecma262/#sec-map.prototype.has\n // https://tc39.es/ecma262/#sec-set.prototype.has\n has: function has(key) {\n return !!getEntry(this, key);\n }\n });\n\n defineBuiltIns(Prototype, IS_MAP ? {\n // `Map.prototype.get(key)` method\n // https://tc39.es/ecma262/#sec-map.prototype.get\n get: function get(key) {\n var entry = getEntry(this, key);\n return entry && entry.value;\n },\n // `Map.prototype.set(key, value)` method\n // https://tc39.es/ecma262/#sec-map.prototype.set\n set: function set(key, value) {\n return define(this, key === 0 ? 0 : key, value);\n }\n } : {\n // `Set.prototype.add(value)` method\n // https://tc39.es/ecma262/#sec-set.prototype.add\n add: function add(value) {\n return define(this, value = value === 0 ? 0 : value, value);\n }\n });\n if (DESCRIPTORS) defineBuiltInAccessor(Prototype, 'size', {\n configurable: true,\n get: function () {\n return getInternalState(this).size;\n }\n });\n return Constructor;\n },\n setStrong: function (Constructor, CONSTRUCTOR_NAME, IS_MAP) {\n var ITERATOR_NAME = CONSTRUCTOR_NAME + ' Iterator';\n var getInternalCollectionState = internalStateGetterFor(CONSTRUCTOR_NAME);\n var getInternalIteratorState = internalStateGetterFor(ITERATOR_NAME);\n // `{ Map, Set }.prototype.{ keys, values, entries, @@iterator }()` methods\n // https://tc39.es/ecma262/#sec-map.prototype.entries\n // https://tc39.es/ecma262/#sec-map.prototype.keys\n // https://tc39.es/ecma262/#sec-map.prototype.values\n // https://tc39.es/ecma262/#sec-map.prototype-@@iterator\n // https://tc39.es/ecma262/#sec-set.prototype.entries\n // https://tc39.es/ecma262/#sec-set.prototype.keys\n // https://tc39.es/ecma262/#sec-set.prototype.values\n // https://tc39.es/ecma262/#sec-set.prototype-@@iterator\n defineIterator(Constructor, CONSTRUCTOR_NAME, function (iterated, kind) {\n setInternalState(this, {\n type: ITERATOR_NAME,\n target: iterated,\n state: getInternalCollectionState(iterated),\n kind: kind,\n last: undefined\n });\n }, function () {\n var state = getInternalIteratorState(this);\n var kind = state.kind;\n var entry = state.last;\n // revert to the last existing entry\n while (entry && entry.removed) entry = entry.previous;\n // get next entry\n if (!state.target || !(state.last = entry = entry ? entry.next : state.state.first)) {\n // or finish the iteration\n state.target = undefined;\n return createIterResultObject(undefined, true);\n }\n // return step by kind\n if (kind == 'keys') return createIterResultObject(entry.key, false);\n if (kind == 'values') return createIterResultObject(entry.value, false);\n return createIterResultObject([entry.key, entry.value], false);\n }, IS_MAP ? 'entries' : 'values', !IS_MAP, true);\n\n // `{ Map, Set }.prototype[@@species]` accessors\n // https://tc39.es/ecma262/#sec-get-map-@@species\n // https://tc39.es/ecma262/#sec-get-set-@@species\n setSpecies(CONSTRUCTOR_NAME);\n }\n};\n","'use strict';\nvar collection = require('../internals/collection');\nvar collectionStrong = require('../internals/collection-strong');\n\n// `Set` constructor\n// https://tc39.es/ecma262/#sec-set-objects\ncollection('Set', function (init) {\n return function Set() { return init(this, arguments.length ? arguments[0] : undefined); };\n}, collectionStrong);\n","var $ = require('../internals/export');\nvar toObject = require('../internals/to-object');\nvar nativeKeys = require('../internals/object-keys');\nvar fails = require('../internals/fails');\n\nvar FAILS_ON_PRIMITIVES = fails(function () { nativeKeys(1); });\n\n// `Object.keys` method\n// https://tc39.es/ecma262/#sec-object.keys\n$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {\n keys: function keys(it) {\n return nativeKeys(toObject(it));\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar $map = require('../internals/array-iteration').map;\nvar arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');\n\nvar HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('map');\n\n// `Array.prototype.map` method\n// https://tc39.es/ecma262/#sec-array.prototype.map\n// with adding support of @@species\n$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {\n map: function map(callbackfn /* , thisArg */) {\n return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n","var DESCRIPTORS = require('../internals/descriptors');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar objectKeys = require('../internals/object-keys');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar $propertyIsEnumerable = require('../internals/object-property-is-enumerable').f;\n\nvar propertyIsEnumerable = uncurryThis($propertyIsEnumerable);\nvar push = uncurryThis([].push);\n\n// `Object.{ entries, values }` methods implementation\nvar createMethod = function (TO_ENTRIES) {\n return function (it) {\n var O = toIndexedObject(it);\n var keys = objectKeys(O);\n var length = keys.length;\n var i = 0;\n var result = [];\n var key;\n while (length > i) {\n key = keys[i++];\n if (!DESCRIPTORS || propertyIsEnumerable(O, key)) {\n push(result, TO_ENTRIES ? [key, O[key]] : O[key]);\n }\n }\n return result;\n };\n};\n\nmodule.exports = {\n // `Object.entries` method\n // https://tc39.es/ecma262/#sec-object.entries\n entries: createMethod(true),\n // `Object.values` method\n // https://tc39.es/ecma262/#sec-object.values\n values: createMethod(false)\n};\n","var $ = require('../internals/export');\nvar $values = require('../internals/object-to-array').values;\n\n// `Object.values` method\n// https://tc39.es/ecma262/#sec-object.values\n$({ target: 'Object', stat: true }, {\n values: function values(O) {\n return $values(O);\n }\n});\n","import { BasePlugin } from '../base-plugins/BasePlugin';\n\n/**\n * @export\n * @class RadioGroup\n * @property {string} controlName\n * @property {string} featureName\n * @property {string} radioElements\n * @property {string} defaultValue\n */\nexport class RadioGroup extends BasePlugin {\n /**\n * creates an instance of RadioGroup\n * @constructor\n * @param {string} selector selector string for the radio group\n * @param {string} controlName the name of the control (used for warning logging only)\n * @param {string} [featureName='captionStyles'] the feature name used by Springroll. Defaults to captionStyles\n * @param {string} defaultValue the value attribute of the radio button that should be selected by default\n * @param {string} pluginName name of the plugin that instantiated the RadioGroup. Used for logging warnings\n * @memberof RadioGroupPlugin\n */\n constructor({selector, controlName, featureName = 'captionStyles', defaultValue, pluginName}) {\n super(pluginName);\n this.controlName = controlName;\n this.featureName = featureName;\n this.radioElements = document.querySelectorAll(selector);\n this.defaultValue = defaultValue;\n\n this.radioGroup = {};\n\n if (this.radioElements.length <= 0) {\n this.warn(`${this.controlName} RadioGroup found no HTMLElements with selector: ${selector}`);\n return;\n }\n\n this.radioElements.forEach(radio => {\n if (radio.type !== 'radio') {\n this.warn(`${this.controlName} was provided a non Radio Button element with selector: ${selector}`);\n return;\n }\n radio.value = radio.value.toLowerCase();\n\n this.radioGroup[radio.value] = radio;\n });\n\n if (!this.radioGroup[this.defaultValue]) {\n this.warn(`${this.controlName} RadioGroup for selector: ${selector} does not have a radio button with value ${this.defaultValue} to use as default value. Using first element as default`);\n this.defaultValue = this.radioElements[0].value.toLowerCase();\n }\n\n this.radioGroup[this.defaultValue].checked = true;\n }\n\n /**\n * @param {string[]} valuesArray Array of acceptable values to check against the radio group.\n * @return {boolean}\n * @memberof RadioGroup\n */\n hasOnly(valuesArray) {\n\n for (const key in this.radioGroup) {\n if (!valuesArray.includes(this.radioGroup[key].value)) {\n this.warn(`${this.controlName} radio button value: ${this.radioGroup[key].value} is not an accepted value. Skipping radio group`);\n return false;\n }\n }\n\n return true;\n }\n\n /**\n * @return {boolean}\n * @memberof RadioGroup\n */\n hasDuplicateValues() {\n return this.values.length !== [...new Set(this.values)].length;\n }\n\n /**\n * Adds change listeners to the radio buttons using the given callback function\n * @memberof RadioGroup\n * @param {Function} callBack event to fire on change\n */\n enableRadioEvents(callBack) {\n if (!this.radioGroup.length <= 0) {\n return;\n }\n\n const event = callBack;\n for (const radio in this.radioGroup) {\n this.radioGroup[radio].addEventListener('change', event);\n }\n }\n\n /**\n * removes the event listeners from the RadioGroup\n * @memberof RadioGroup\n * @param {Function} callBack event to fire on change\n */\n disableRadioEvents(callBack) {\n if (!this.radioGroup.length <= 0) {\n return;\n }\n for (const radio in this.radioGroup) {\n this.radioGroup[radio].removeEventListener('change', callBack);\n }\n }\n\n /**\n * enables display of the Radio buttons if the correct feature is present in the features list\n * @memberof RadioGroup\n * @param {object} data Object containing which features are enabled\n */\n displayRadios(data) {\n if (this.radioGroup.length <= 0 && data[this.featureName]) {\n this.warn(`${this.controlName} was not provided a valid input element or selector but '${this.featureName}' was included as a game feature`);\n return;\n }\n\n if (this.radioGroup.length <= 0) {\n return;\n }\n\n if (data[this.featureName]) {\n return;\n }\n\n for (const radio in this.radioGroup) {\n this.radioGroup[radio].style.display = 'none';\n }\n }\n\n /**\n * Reset the radio button states\n * @memberof RadioGroup\n */\n resetState() {\n this.radioGroup[this.defaultValue].checked = true;\n }\n\n /**\n * @readonly\n * @returns {number}\n * @memberof RadioGroup\n */\n get length() {\n return Object.keys(this.radioGroup).length;\n }\n\n /**\n * @readonly\n * @returns {number}\n * @memberof RadioGroup\n */\n get values() {\n return Object.values(this.radioGroup).map(radio => radio.value);\n }\n}\n","import { BasePlugin } from './BasePlugin';\nimport { RadioGroup } from '../ui-elements/RadioGroup';\n\n/**\n *\n *\n * @export\n * @class RadioGroupPlugin\n */\nexport class RadioGroupPlugin extends BasePlugin {\n /**\n *\n *Creates an instance of RadioGroupPlugin.\n * @constructor\n * @memberof RadioGroupPlugin\n * @param {string} name\n */\n constructor(cssSelector, name, {supportedValues, initialValue, controlName, featureName, radioCount}) {\n super(name);\n this.selectors = cssSelector ? cssSelector.split(',') : [];\n this.supportedValues = supportedValues;\n this.initialValue = supportedValues.includes(initialValue) ? initialValue : supportedValues[0];\n this.controlName = controlName;\n this.featureName = featureName;\n this.radioCount = radioCount;\n this.sendAllProperties = this.sendAllProperties.bind(this);\n\n this._currentValue = this.initialValue;\n\n this.radioGroups = this.setUpRadios(this.selectors);\n\n this.radioGroupsLength = this.radioGroups.length;\n }\n\n /**\n * @memberof RadioGroupPlugin\n * @param {string[]} selectors the separated selector strings used to target the radio button groups\n * @returns {RadioGroup[]}\n */\n setUpRadios(selectors) {\n const radioGroups = [];\n\n selectors.forEach((selector) => {\n const radioGroup = new RadioGroup({\n selector: selector.trim(),\n controlName: this.controlName,\n defaultValue: this.initialValue,\n pluginName: this.name,\n featureName: this.featureName\n });\n\n if (radioGroup.length !== this.radioCount) {\n this.warn(`Selector \"${selector}\" did not find exactly ${this.radioCount} radio buttons for ${this.controlName}. Skipping selector`);\n return;\n }\n\n if (!radioGroup.hasOnly(this.supportedValues)) {\n return;\n }\n\n if (radioGroup.hasDuplicateValues()) {\n this.warn(`Duplicate radio button values detected (values: ${radioGroup.values} ). Skipping radio group`);\n return;\n }\n\n radioGroups.push(radioGroup);\n });\n\n return radioGroups;\n }\n\n /**\n * @memberof RadioGroupPlugin\n */\n start() {\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * Sends initial caption properties to the application\n * @memberof RadioGroupPlugin\n */\n sendAllProperties() {\n this.sendProperty(this.featureName, this.property);\n }\n\n /**\n * @memberof RadioGroupPlugin\n * @param {string} newValue\n */\n set currentValue(newValue) {\n if (!this.supportedValues.includes(newValue)) {\n return;\n }\n\n this._currentValue = newValue;\n\n for (let i = 0, l = this.radioGroups.length; i < l; i++) {\n this.radioGroups[i].radioGroup[newValue].checked = true;\n }\n }\n\n /**\n * @memberof RadioGroupPlugin\n * @return {string}\n */\n get currentValue() {\n return this._currentValue;\n }\n\n}\n","var uncurryThis = require('../internals/function-uncurry-this');\n\n// `thisNumberValue` abstract operation\n// https://tc39.es/ecma262/#sec-thisnumbervalue\nmodule.exports = uncurryThis(1.0.valueOf);\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar global = require('../internals/global');\nvar path = require('../internals/path');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar isForced = require('../internals/is-forced');\nvar hasOwn = require('../internals/has-own-property');\nvar inheritIfRequired = require('../internals/inherit-if-required');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar isSymbol = require('../internals/is-symbol');\nvar toPrimitive = require('../internals/to-primitive');\nvar fails = require('../internals/fails');\nvar getOwnPropertyNames = require('../internals/object-get-own-property-names').f;\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar defineProperty = require('../internals/object-define-property').f;\nvar thisNumberValue = require('../internals/this-number-value');\nvar trim = require('../internals/string-trim').trim;\n\nvar NUMBER = 'Number';\nvar NativeNumber = global[NUMBER];\nvar PureNumberNamespace = path[NUMBER];\nvar NumberPrototype = NativeNumber.prototype;\nvar TypeError = global.TypeError;\nvar stringSlice = uncurryThis(''.slice);\nvar charCodeAt = uncurryThis(''.charCodeAt);\n\n// `ToNumeric` abstract operation\n// https://tc39.es/ecma262/#sec-tonumeric\nvar toNumeric = function (value) {\n var primValue = toPrimitive(value, 'number');\n return typeof primValue == 'bigint' ? primValue : toNumber(primValue);\n};\n\n// `ToNumber` abstract operation\n// https://tc39.es/ecma262/#sec-tonumber\nvar toNumber = function (argument) {\n var it = toPrimitive(argument, 'number');\n var first, third, radix, maxCode, digits, length, index, code;\n if (isSymbol(it)) throw TypeError('Cannot convert a Symbol value to a number');\n if (typeof it == 'string' && it.length > 2) {\n it = trim(it);\n first = charCodeAt(it, 0);\n if (first === 43 || first === 45) {\n third = charCodeAt(it, 2);\n if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix\n } else if (first === 48) {\n switch (charCodeAt(it, 1)) {\n case 66: case 98: radix = 2; maxCode = 49; break; // fast equal of /^0b[01]+$/i\n case 79: case 111: radix = 8; maxCode = 55; break; // fast equal of /^0o[0-7]+$/i\n default: return +it;\n }\n digits = stringSlice(it, 2);\n length = digits.length;\n for (index = 0; index < length; index++) {\n code = charCodeAt(digits, index);\n // parseInt parses a string to a first unavailable symbol\n // but ToNumber should return NaN if a string contains unavailable symbols\n if (code < 48 || code > maxCode) return NaN;\n } return parseInt(digits, radix);\n }\n } return +it;\n};\n\nvar FORCED = isForced(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'));\n\nvar calledWithNew = function (dummy) {\n // includes check on 1..constructor(foo) case\n return isPrototypeOf(NumberPrototype, dummy) && fails(function () { thisNumberValue(dummy); });\n};\n\n// `Number` constructor\n// https://tc39.es/ecma262/#sec-number-constructor\nvar NumberWrapper = function Number(value) {\n var n = arguments.length < 1 ? 0 : NativeNumber(toNumeric(value));\n return calledWithNew(this) ? inheritIfRequired(Object(n), this, NumberWrapper) : n;\n};\n\nNumberWrapper.prototype = NumberPrototype;\nif (FORCED && !IS_PURE) NumberPrototype.constructor = NumberWrapper;\n\n$({ global: true, constructor: true, wrap: true, forced: FORCED }, {\n Number: NumberWrapper\n});\n\n// Use `internal/copy-constructor-properties` helper in `core-js@4`\nvar copyConstructorProperties = function (target, source) {\n for (var keys = DESCRIPTORS ? getOwnPropertyNames(source) : (\n // ES3:\n 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +\n // ES2015 (in case, if modules with ES2015 Number statics required before):\n 'EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,' +\n // ESNext\n 'fromString,range'\n ).split(','), j = 0, key; keys.length > j; j++) {\n if (hasOwn(source, key = keys[j]) && !hasOwn(target, key)) {\n defineProperty(target, key, getOwnPropertyDescriptor(source, key));\n }\n }\n};\n\nif (IS_PURE && PureNumberNamespace) copyConstructorProperties(path[NUMBER], PureNumberNamespace);\nif (FORCED || IS_PURE) copyConstructorProperties(path[NUMBER], NativeNumber);\n","import { SavedData } from '../SavedData';\n\n/**\n * @export\n * @class Slider\n */\nexport class Slider {\n /**\n *Creates an instance of Slider\n * @param {object} params\n * @param {string | HTMLInputElement} params.slider the slider element or a selector string\n * @param {string} params.control the feature that this slider controols\n * @param {number} [min=0] slider min value\n * @param {number} [max=1] slider max value\n * @param {number} [step=0.1] slider step value\n * @param {number} [defaultValue=1] slider starting value\n * @memberof SliderPlugin\n */\n constructor({\n slider,\n control,\n min = 0,\n max = 1,\n step = 0.1,\n defaultValue = 1\n }) {\n this.min = min;\n this.max = max;\n this.step = step;\n this.sliderValue = defaultValue;\n this.control = control;\n this.slider = this.setUpSlider(slider, control);\n }\n\n /**\n * @param {string | HTMLInputElement | HTMLElement} slider\n * @param {string} control The control element (sensitivity, difficulty, pointer size, etc) this slider will be controlling\n * @returns {Element | HTMLElement}\n * @memberof Slider\n */\n setUpSlider(slider, control) {\n if ('string' === typeof slider) {\n slider = document.querySelector(slider);\n }\n\n if (!slider || 'range' !== slider.type) {\n return null;\n }\n const value = SavedData.read(control);\n\n slider.min = this.min;\n slider.max = this.max;\n slider.step = this.step;\n\n if ((value || value === 0) && value.toString().trim().length > 0) {\n slider.value = value;\n this.sliderValue = value;\n } else {\n slider.value = this.sliderValue;\n }\n\n return slider;\n }\n\n /**\n * Controls the range of the slider\n * @param {number} i\n * @returns\n * @memberof Slider\n */\n sliderRange(i) {\n if (i < this.min) {\n return this.min;\n } else if (i > this.max) {\n return this.max;\n } else {\n return i;\n }\n }\n\n /**\n * Adds change and input listeners to the slider using the given callback function\n * @memberof Slider\n * @param {Function} callBack event to fire on change or input\n */\n enableSliderEvents(callBack) {\n if (!this.slider) {\n return;\n }\n\n const event = callBack;\n this.slider.addEventListener('change', event);\n this.slider.addEventListener('input', event);\n }\n\n /**\n * removes the event listeners from the given slider.\n * @memberof Slider\n * @param {Function} callBack event to fire on change or input\n */\n disableSliderEvents(callBack) {\n if (!this.slider) {\n return;\n }\n const event = callBack;\n this.slider.removeEventListener('change', event);\n this.slider.removeEventListener('input', event);\n }\n /**\n * enables display of the Slider if it is present in the features list\n * @memberof Slider\n * @param {object} data Object containing which features are enabled\n */\n displaySlider(data) {\n if (!this.slider && data[this.control]) {\n console.warn(`${this.control} was not provided a valid input element or selector but was included as a game feature`);\n }\n\n if (!this.slider) {\n return;\n }\n\n this.slider.style.display = data[this.control] ? '' : 'none';\n }\n\n /**\n * @param {Event} event the event to be fired on the slider\n * @memberof Slider\n */\n dispatchEvent(event) {\n this.slider.dispatchEvent(event);\n }\n\n /**\n * @readonly\n * @returns {string}\n * @memberof Slider\n */\n get value() {\n return this.slider.value;\n }\n\n /**\n * @memberof Slider\n */\n set value(value) {\n this.slider.value = value;\n }\n}\n","/**\n * @export\n * @class Button\n */\nexport class Button {\n /**\n *Creates an instance of Button\n * @param {object} params\n * @param {string | HTMLElement} params.button the button itself or a selector string\n * @param {Function} params.onClick the function to call when the button is clicked\n * @param {string} channel the feature this button controls\n * @memberof ButtonPlugin\n */\n constructor({ button, onClick, channel }) {\n this.button =\n button instanceof HTMLElement ? button : document.querySelector(button);\n this.onClick = onClick;\n this.channel = channel;\n\n if (this.button) {\n this.button.addEventListener('click', onClick);\n }\n }\n\n /**\n * enables display of the button if it is present in the features list\n * @memberof Button\n * @param {object} data Object containing which features are enabled\n */\n displayButton(data) {\n if (!(this.button instanceof HTMLElement)) {\n return;\n }\n\n this.button.style.display =\n data[this.channel] || this.channel === 'pause' || this.channel === 'hints'\n ? ''\n : 'none';\n }\n\n /**\n * enables display of the button\n * @memberof Button\n */\n enableButton() {\n if (!this.button) {\n return;\n }\n this.button.classList.remove('disabled');\n }\n\n /**\n * \n * @param {string} className The classname to be appended to the end of the class property\n */\n addClass(className) {\n this.button.className = this.button.className ? this.button.className + ` ${ className }` : ` ${ className }`;\n }\n}\n","import { BasePlugin } from './BasePlugin';\nimport { Slider } from '../ui-elements';\n\n/**\n *\n *\n * @export\n * @class SliderPlugin\n */\nexport class SliderPlugin extends BasePlugin {\n /**\n *\n *Creates an instance of SliderPlugin.\n * @constructor\n * @memberof SliderPlugin\n * @param {string} cssSelector\n * @param {string} name\n * @param {object} options\n * @param {string | number} [options.defaultValue='0.5']\n * @param {string | number} [options.minValue='0']\n * @param {string | number} [options.maxValue='1']\n * @param {string} [options.featureName] Springroll Core feature name that the plugin is supporting\n */\n constructor(cssSelector, name, {defaultValue = '0.5', minValue = '0', maxValue = '1', featureName }) {\n super(name);\n this.featureName = featureName;\n this.minValue = minValue;\n this.defaultValue = defaultValue;\n this.maxValue = maxValue;\n this._currentValue = defaultValue;\n this.sliders = this.setUpSliders(cssSelector);\n this.slidersLength = this.sliders.length;\n this.sendAllProperties = this.sendAllProperties.bind(this);\n\n if (0 >= this.slidersLength) {\n this.warn('Plugin was not provided any valid HTML Elements');\n return;\n }\n }\n\n /**\n * @memberof SliderPlugin\n * @param {string[]} selectors the selector strings used to target the input elements\n * @returns {Slider[]}\n */\n setUpSliders(selectors) {\n const sliders = [];\n\n if (selectors instanceof HTMLElement) {\n sliders.push(new Slider({\n slider: selectors,\n control: this.featureName,\n defaultValue: this.defaultValue,\n minValue: this.minValue,\n maxValue: this.maxValue\n }));\n } else {\n document.querySelectorAll(selectors).forEach((slider) => {\n sliders.push(new Slider({\n slider: slider,\n control: this.featureName,\n defaultValue: this.defaultValue,\n minValue: this.minValue,\n maxValue: this.maxValue\n }));\n });\n }\n\n return sliders;\n }\n\n /**\n * @memberof SliderPlugin\n */\n init() {\n this.client.on(\n 'features',\n function(features) {\n if (!features.data) {\n return;\n }\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].displaySlider(features.data);\n }\n }.bind(this)\n );\n }\n\n /**\n * @memberof SliderPlugin\n */\n start() {\n this._currentValue = this.sliders[0].value; //update current value to the saved data value set in Slider.\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * Sends initial caption properties to the application\n * @memberof SliderPlugin\n */\n sendAllProperties() {\n this.sendProperty(this.featureName, this.currentValue);\n }\n\n /**\n * @memberof SliderPlugin\n * @param {string} newValue\n */\n set currentValue(newValue) {\n\n //just use first slider to ensure the number is valid.\n this._currentValue = this.sliders[0].sliderRange(Number(newValue));\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].value = newValue;\n }\n }\n\n /**\n * @memberof SliderPlugin\n * @return {string}\n */\n get currentValue() {\n return this._currentValue;\n }\n\n}\n","import { SavedData } from '../SavedData';\nimport { ButtonPlugin } from '../base-plugins';\nimport { RadioGroup } from '../ui-elements';\n\nconst DEFAULT_CAPTIONS_STYLES = {\n size: 'medium',\n background: 'black',\n color: 'white',\n edge: 'none',\n font: 'arial',\n align: 'top'\n};\n\nconst DEFAULT_COLOR_STYLE = {color: 'white', background: 'black'};\nconst INVERTED_COLOR_STYLE = {color: 'black', background: 'white'};\nconst FONT_SIZE_VALUES = ['small', 'medium', 'large'];\nconst COLOR_VALUES = ['default', 'inverted'];\nconst ALIGN_VALUES = ['top', 'bottom'];\n\n/**\n * @export\n * @class CaptionsStylePlugin\n * @property {object} captionsStyles The collection of captions styles\n * @property {string[]} fontSizeSelectors selector strings for the radio button groups\n * @property {string[]} colorSelectors selector strings for the radio button groups\n * @property {string[]} alignmentSelectors selector strings for the radio button groups\n * @property {Object[]} fontSizeRadios array that contains each radio group\n * @property {Object[]} colorRadios array that contains each radio group\n * @property {Object[]} alignmentRadios array that contains each radio group\n * @property {number} fontSizeRadiosLength Length of the fontSizeRadios array\n * @property {number} colorRadiosLength Length of the colorRadios array\n * @property {number} alignmentRadiosLength Length of the alignmentRadios array\n * @extends {ButtonPlugin}\n */\nexport class CaptionsStylePlugin extends ButtonPlugin {\n /**\n * Creates an instance of CaptionsStylePlugin.\n * @param {string} fontSizeRadios selector string for one or more radio groups for caption font size\n * @param {string} colorRadios selector string for one or more radio groups for caption font/background colors\n * @param {string} alignmentRadios selector string for one or more radio groups for caption position\n * @param {string} [defaultFontSize='medium'] Default selected font size\n * @param {string} [defaultColor='default'] Default selected color\n * @param {string} [defaultAlignment='top'] Default selected alignment\n * @memberof CaptionsStylePlugin\n */\n constructor(fontSizeRadios, colorRadios, alignmentRadios,\n { defaultFontSize = 'medium', defaultColor = 'default', defaultAlignment = 'top' } = {}\n ) {\n super('Caption-Style-Plugin');\n this.sendAllProperties = this.sendAllProperties.bind(this);\n this.captionsStyles = Object.assign(\n {},\n DEFAULT_CAPTIONS_STYLES,\n SavedData.read(CaptionsStylePlugin.captionStyleKey) || {}\n );\n\n //split the selector strings into individual selectors.\n //Helps keep the input style consistent across plugins.\n this.fontSizeSelectors = fontSizeRadios ? fontSizeRadios.split(',') : [];\n this.colorSelectors = colorRadios ? colorRadios.split(',') : [];\n this.alignmentSelectors = alignmentRadios ? alignmentRadios.split(',') : [];\n\n this.defaultFontSize = FONT_SIZE_VALUES.includes(defaultFontSize) ? defaultFontSize : FONT_SIZE_VALUES[0];\n this.defaultColor = COLOR_VALUES.includes(defaultColor) ? defaultColor : COLOR_VALUES[0];\n this.defaultAlignment = ALIGN_VALUES.includes(defaultAlignment) ? defaultAlignment : ALIGN_VALUES[0];\n\n this.fontSizeRadios = [];\n this.colorRadios = [];\n this.alignmentRadios = [];\n\n this.fontSizeRadios = this.setUpFontSizeRadios(this.fontSizeSelectors);\n this.colorRadios = this.setUpColorRadios(this.colorSelectors);\n this.alignmentRadios = this.setUpAlignmentRadios(this.alignmentSelectors);\n\n this._captionsMuted = false;\n\n this.alignmentRadiosLength = this.alignmentRadios.length;\n this.fontSizeRadiosLength = this.fontSizeRadios.length;\n this.colorRadiosLength = this.colorRadios.length;\n\n if (0 >= (this.alignmentRadiosLength + this.fontSizeRadiosLength + this.colorRadiosLength)) {\n this.warn(\n 'Plugin was not provided any input elements'\n );\n return;\n }\n\n //set up change events\n for (let i = 0; i < this.colorRadiosLength; i++) {\n this.colorRadios[i].enableRadioEvents(this.onColorChange.bind(this));\n }\n for (let i = 0; i < this.alignmentRadiosLength; i++) {\n this.alignmentRadios[i].enableRadioEvents(this.onAlignmentChange.bind(this));\n }\n for (let i = 0; i < this.fontSizeRadiosLength; i++) {\n this.fontSizeRadios[i].enableRadioEvents(this.onFontSizeChange.bind(this));\n }\n }\n\n /**\n * @memberof CaptionsStylePlugin\n * @param {string[]} selectors the separated selector strings used to target the radio button groups\n * @returns {RadioGroup[]}\n */\n setUpFontSizeRadios(selectors) {\n const radioGroups = [];\n\n selectors.forEach((selector) => {\n const radioGroup = new RadioGroup({\n selector: selector.trim(),\n controlName: 'Font Size',\n defaultValue: this.defaultFontSize,\n pluginName: 'Caption-Button-Plugin'\n });\n\n if (radioGroup.length !== 3) {\n this.warn(`Selector \"${selector}\" did not find exactly three(3) radio buttons for caption font size. Skipping selector`);\n return;\n }\n\n if (!radioGroup.hasOnly(FONT_SIZE_VALUES)) {\n return;\n }\n\n if (radioGroup.hasDuplicateValues()) {\n this.warn(`Duplicate radio button values detected (values: ${radioGroup.values} ). Skipping radio group`);\n return;\n }\n\n radioGroups.push(radioGroup);\n });\n\n return radioGroups;\n }\n\n /**\n * @memberof CaptionsStylePlugin\n * @param {string[]} selectors the separated selector strings used to target the radio button groups\n * @returns {RadioGroup[]}\n */\n setUpColorRadios(selectors) {\n const radioGroups = [];\n\n selectors.forEach((selector) => {\n const radioGroup = new RadioGroup({\n selector: selector.trim(),\n controlName: 'Color',\n defaultValue: this.defaultColor,\n pluginName: 'Caption-Button-Plugin'\n });\n\n if (radioGroup.length !== 2) {\n this.warn(`Selector \"${selector}\" did not find exactly two(2) radio buttons for caption colors. Skipping selector`);\n return;\n }\n\n if (!radioGroup.hasOnly(COLOR_VALUES)) {\n return;\n }\n\n if (radioGroup.hasDuplicateValues()) {\n this.warn(`Duplicate radio button values detected (values: ${radioGroup.values} ). Skipping radio group`);\n return;\n }\n\n radioGroups.push(radioGroup);\n });\n\n return radioGroups;\n }\n\n /**\n * @memberof CaptionsStylePlugin\n * @param {string[]} selectors the separated selector strings used to target the radio button groups\n * @returns {RadioGroup[]}\n */\n setUpAlignmentRadios(selectors) {\n const radioGroups = [];\n\n selectors.forEach((selector) => {\n const radioGroup = new RadioGroup({\n selector: selector.trim(),\n controlName: 'Alignment',\n defaultValue: this.defaultAlignment,\n pluginName: 'Caption-Button-Plugin'\n });\n if (radioGroup.length !== 2) {\n this.warn(`Selector \"${selector}\" did not find exactly two(2) radio buttons for caption alignment. Skipping selector`);\n return;\n }\n\n if (!radioGroup.hasOnly(ALIGN_VALUES)) {\n return;\n }\n\n if (radioGroup.hasDuplicateValues()) {\n this.warn(`Duplicate radio button values detected (values: ${radioGroup.values} ). Skipping radio group`);\n return;\n }\n\n radioGroups.push(radioGroup);\n });\n\n return radioGroups;\n }\n\n /**\n * @memberof CaptionsStylePlugin\n */\n init() {\n // Handle the features request\n this.client.on(\n 'features',\n function($event) {\n\n for (const radio of this.radios) {\n radio.displayRadios($event.data);\n }\n\n }.bind(this)\n );\n\n this.client.on(\n 'caption-set-style',\n function($event) {\n this.setCaptionsStyles($event.data || {});\n }.bind(this)\n );\n }\n /**\n * @memberof CaptionsStylePlugin\n */\n start() {\n this.setCaptionsStyles(SavedData.read(CaptionsStylePlugin.captionStyleKey));\n\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * Sends initial caption properties to the application\n * @memberof CaptionsStylePlugin\n */\n sendAllProperties() {\n this.sendProperty(CaptionsStylePlugin.captionStyleKey, this.captionsStyles);\n }\n /**\n * Fired whenever the font size radios are updated\n * @param {Event} e\n * @memberof CaptionsStylePlugin\n */\n onFontSizeChange(e) {\n this.setCaptionsStyles('size', e.target.value);\n }\n\n /**\n * Fired whenever the alignment radios are updated\n * @param {Event} e\n * @memberof CaptionsStylePlugin\n */\n onAlignmentChange(e) {\n this.setCaptionsStyles('align', e.target.value);\n }\n\n /**\n * Fired whenever the color radios are updated\n * @param {Event} e\n * @memberof CaptionsStylePlugin\n */\n onColorChange(e) {\n const styles = e.target.value === 'default' ? DEFAULT_COLOR_STYLE : INVERTED_COLOR_STYLE;\n\n this.setCaptionsStyles(styles);\n }\n\n /**\n * Reset the captions styles\n * @param {Event} e\n * @memberof CaptionsStylePlugin\n */\n clearCaptionsStyles() {\n this.captionsStyles = Object.assign({}, DEFAULT_CAPTIONS_STYLES);\n this.setCaptionsStyles();\n\n for (const radio of this.radios) {\n radio.resetState();\n }\n }\n\n /**\n * Get the captions styles\n * @param {string} [prop] The optional property, values are \"size\", \"edge\", \"font\", \"background\", \"color\"\n * @return {object | string} The collection of styles, see setCaptionsStyles for more info.\n * @memberof CaptionsStylePlugin\n */\n getCaptionsStyles(prop) {\n return prop ? this.captionsStyles[prop] : this.captionsStyles;\n }\n\n /**\n * Set the captions styles\n *\n * @param {object} [styles] The style options or the name of the\n * property (e.g., \"color\", \"edge\", \"font\", \"background\", \"size\")\n * @param {string} [styles.color='white'] The text color, the default is white\n * @param {string} [styles.edge='none'] The edge style, default is none\n * @param {string} [styles.font='arial'] The font style, default is arial\n * @param {string} [styles.background='black'] The background style, black\n * @param {string} [styles.size='md'] The font style default is medium\n * @param {string} [styles.align='top'] The align style default is top of the window\n * @param {string} [value=''] If setting styles parameter as a string, this is the value of the property.\n * @memberof CaptionsStylePlugin\n */\n setCaptionsStyles(styles = DEFAULT_CAPTIONS_STYLES, value = '') {\n if (typeof styles === 'object') {\n Object.assign(this.captionsStyles, styles);\n } else if (typeof styles === 'string') {\n this.captionsStyles[styles] = value;\n }\n\n // update radios to match\n this.colorRadios.forEach((group) => {\n const style = this.captionsStyles.color === 'white' ? 'default' : 'inverted';\n group.radioGroup[style].checked = true;\n });\n this.alignmentRadios.forEach((group) => {\n group.radioGroup[this.captionsStyles.align].checked = true;\n });\n this.fontSizeRadios.forEach((group) => {\n group.radioGroup[this.captionsStyles.size].checked = true;\n });\n\n SavedData.write(CaptionsStylePlugin.captionStyleKey, this.captionsStyles);\n if (this.client) {\n this.client.send(CaptionsStylePlugin.captionStyleKey, this.captionsStyles);\n }\n }\n\n /**\n * @readonly\n * @returns {number}\n * @memberof RadioGroup\n */\n get radios() {\n return this.colorRadios\n .concat(this.alignmentRadios)\n .concat(this.fontSizeRadios);\n }\n /**\n * Get captionStyle Key\n * @readonly\n * @static\n * @memberof CaptionStyleKey\n * @returns {string}\n */\n static get captionStyleKey() {\n return 'captionsStyles';\n }\n\n}\n","import { SavedData } from '../SavedData';\nimport { ButtonPlugin } from '../base-plugins';\nimport { Button } from '../ui-elements';\n\n/**\n * @export\n * @class CaptionsTogglePlugin\n * @property {Button[]} _captionsButtons An array of caption mute buttons\n * @property {boolean} _captionsMuted True if captions are muted\n * @property {number} captionsButtonLength The length of the captionsButtons array\n * @extends {ButtonPlugin}\n */\nexport class CaptionsTogglePlugin extends ButtonPlugin {\n /**\n *Creates an instance of CaptionsTogglePlugin.\n * @param {string | HTMLElement} captionsButtons selector string for one or more captions mute buttons\n * @memberof CaptionsTogglePlugin\n */\n constructor(captionsButtons) {\n super('Caption-Button-Plugin');\n this.sendAllProperties = this.sendAllProperties.bind(this);\n\n this._captionsButtons = [];\n\n if ( captionsButtons instanceof HTMLElement ) {\n this._captionsButtons[0] = new Button({\n button: captionsButtons,\n onClick: this.captionsButtonClick.bind(this),\n channel: 'captions'\n });\n } else {\n document.querySelectorAll(captionsButtons).forEach((button) => {\n this._captionsButtons.push(new Button({\n button: button,\n onClick: this.captionsButtonClick.bind(this),\n channel: 'captions'\n }));\n });\n }\n\n this._captionsMuted = false;\n this.captionsButtonLength = this._captionsButtons.length;\n\n if (0 >= this.captionsButtonLength) {\n this.warn(\n 'Plugin was not provided any valid button or input elements'\n );\n return;\n }\n }\n\n /**\n * @memberof CaptionsTogglePlugin\n */\n init() {\n // Handle the features request\n this.client.on(\n 'features',\n function($event) {\n for (let i = 0; i < this.captionsButtonLength; i ++) {\n this._captionsButtons[i].displayButton($event.data);\n }\n\n if (null === SavedData.read(CaptionsTogglePlugin.captionsToggleKey)) {\n return;\n }\n\n const captionsMuted = !!SavedData.read(CaptionsTogglePlugin.captionsToggleKey);\n\n this.setMuteProp('captionsMuted', captionsMuted, this._captionsButtons, true);\n\n }.bind(this)\n );\n }\n /**\n * @memberof CaptionsTogglePlugin\n */\n start() {\n for (let i = 0; i < this.captionsButtonsLength; i++) {\n this.captionsButtons[i].enableButton();\n }\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * Sends initial caption properties to the application\n * @memberof CaptionsTogglePlugin\n */\n sendAllProperties() {\n this.sendProperty(CaptionsTogglePlugin.captionsToggleKey, this.captionsMuted);\n }\n\n /**\n * @memberof CaptionsTogglePlugin\n */\n captionsButtonClick() {\n this.captionsMuted = !this.captionsMuted;\n }\n\n /**\n * @readonly\n * @memberof CaptionsTogglePlugin\n */\n get captionsMuted() {\n return this._captionsMuted;\n }\n\n /**\n * @param {boolean} muted\n * @memberof CaptionsTogglePlugin\n */\n set captionsMuted(muted) {\n this._captionsMuted = muted;\n this._setMuteProp(\n 'captionsMuted',\n this._captionsButtons,\n this._captionsMuted\n );\n }\n\n /**\n * Get CaptionToggle Key\n * @readonly\n * @static\n * @memberof captionsToggleKey\n * @returns {string}\n */\n static get captionsToggleKey() {\n return 'captionsMuted';\n }\n}\n","import { ButtonPlugin } from '../base-plugins';\nimport { Button } from '../ui-elements';\n\n/**\n * Requests a hint or help from the game\n * @class HelpPlugin\n * @property {boolean} paused\n * @property {boolean} _helpEnabled\n * @property {boolean} onPause\n * @property {number} helpButtonsLength\n * @extends {ButtonPlugin}\n * @export\n */\nexport class HelpPlugin extends ButtonPlugin {\n /**\n * Creates an instance of HelpPlugin.\n * @param {string | HTMLElement} helpButtons The selector or HTMLElement for the button\n * @memberof HelpPlugin\n */\n constructor(helpButtons) {\n super('Help-Button-Plugin');\n\n this._helpButtons = [];\n\n if (helpButtons instanceof HTMLElement) {\n this._helpButtons[0] = new Button({\n button: helpButtons,\n onClick: this.helpButtonClick.bind(this),\n channel: 'hints' // the check to see if this feature exists is different than most so passing this ensures it'll work the same.\n });\n } else {\n document.querySelectorAll(helpButtons).forEach((button) => {\n this._helpButtons.push(\n new Button({\n button: button,\n onClick: this.helpButtonClick.bind(this),\n channel: 'hints'\n })\n );\n });\n }\n\n this.paused = false;\n this._helpEnabled = false;\n this.onPause = this.onPause.bind(this);\n this.helpButtonsLength = this._helpButtons.length;\n\n if (this.helpButtonsLength <= 0) {\n this.warn('Plugin was not provided any valid button elements');\n }\n }\n /**\n * Called when the game is either paused or resumed\n * @param {object} $event\n * @memberof HelpPlugin\n */\n onPause($event) {\n this.paused = $event.data.paused;\n // Disable the help button when paused if it's active\n if (\n this.paused &&\n this.helpEnabled\n ) {\n for (let i = 0; i < this.helpButtonsLength; i++) {\n this._helpButtons[i].button.setAttribute('data-paused', 'true');\n }\n this.helpEnabled = false;\n } else {\n for (let i = 0; i < this.helpButtonsLength; i++) {\n if (this._helpButtons[i].button.getAttribute('data-paused')) {\n this._helpButtons[i].button.setAttribute('data-paused', '');\n this.helpEnabled = true;\n }\n }\n }\n }\n\n /**\n *\n *\n * @memberof HelpPlugin\n */\n helpButtonClick() {\n if (\n !this.paused &&\n this.helpEnabled\n ) {\n this.client.send('playHelp');\n }\n }\n\n /**\n * @memberof HelpPlugin\n */\n init() {\n // Handle pause\n this.client.on('paused', this.onPause);\n\n // Handle features changed\n this.client.on(\n 'features',\n function(features) {\n this.helpEnabled = features.data.hints;\n for (let i = 0; i < this.helpButtonsLength; i++) {\n this._helpButtons[i].displayButton(features.data);\n }\n }.bind(this)\n );\n\n this.client.on(\n 'helpEnabled',\n function(event) {\n this._helpEnabled = !!event.data;\n }.bind(this)\n );\n }\n\n /**\n * @memberof HelpPlugin\n */\n get helpEnabled() {\n return this._helpEnabled;\n }\n\n /**\n * Fired when the enabled status of the help button changes\n * @function helpEnabled\n * @param {boolean} enabled If the help button is enabled\n * @memberof HelpPlugin\n */\n set helpEnabled(enabled) {\n this._helpEnabled = enabled;\n for (let i = 0; i < this.helpButtonsLength; i++) {\n this._helpButtons[i].button.classList.remove('disabled');\n this._helpButtons[i].button.classList.remove('enabled');\n this._helpButtons[i].button.classList.add(enabled ? 'enabled' : 'disabled');\n }\n\n this.client.trigger('helpEnabled');\n }\n\n /**\n * @readonly\n * @static\n * @memberof HelpPlugin\n * @returns {string}\n */\n static get helpKey() {\n return 'help';\n }\n\n}\n","import { ButtonPlugin } from '../base-plugins';\nimport { PageVisibility } from '../PageVisibility';\nimport { Button } from '../ui-elements';\n/**\n * @class Container\n * @property {object[]} sliders an array of all slider objects attached to PausePlugin\n * @extends ButtonPlugin\n */\nexport class PausePlugin extends ButtonPlugin {\n /**\n * Creates an instance of PausePlugin.\n * @param {string | HTMLElement} pauseButton selector string or HTML Element for the input(s)\n * @param {boolean} manageOwnVisibility whether the plugin should manage container's visibility or some other source will handle it\n * @memberof PausePlugin\n */\n constructor(pauseButton, manageOwnVisibility = true) {\n super('Pause-Button-plugin');\n this._manageOwnVisibility = manageOwnVisibility;\n this._appBlurred = false;\n this._containerBlurred = false;\n this._focusTimer = null;\n this._isManualPause = false;\n this._keepFocus = false;\n this._paused = false;\n this.iframe = null;\n this.focusApp = this.focusApp.bind(this);\n this.manageFocus = this.manageFocus.bind(this);\n this.onKeepFocus = this.onKeepFocus.bind(this);\n this.onFocus = this.onFocus.bind(this);\n const onPauseToggle = this.onPauseToggle.bind(this);\n\n this.pauseDisabled = false;\n this._pauseButton = [];\n\n this.pageVisibility = new PageVisibility(\n this.onContainerFocus.bind(this),\n this.onContainerBlur.bind(this)\n );\n\n this.pageVisibility.enabled = this.manageOwnVisibility;\n\n if (pauseButton instanceof HTMLElement) {\n this._pauseButton[0] = new Button({\n button: pauseButton,\n onClick: onPauseToggle,\n channel: PausePlugin.pauseKey\n });\n } else {\n document.querySelectorAll(pauseButton).forEach((button) => {\n this._pauseButton.push(new Button({\n button: button,\n onClick: onPauseToggle,\n channel: PausePlugin.pauseKey\n }));\n });\n }\n }\n\n /**\n * updates _paused and also sends the pause event to the application\n * @memberof PausePlugin\n * @param {Boolean} paused\n */\n set pause(paused) {\n paused = !!paused;\n\n if (this.pauseDisabled) {\n return;\n }\n this._paused = paused;\n\n this.client.send(PausePlugin.pauseKey, paused);\n this.client.trigger(paused ? 'paused' : 'resumed', { paused });\n\n for (let i = 0, l = this._pauseButton.length; i < l; i++) {\n this._pauseButton[i].button.classList.remove('unpaused');\n this._pauseButton[i].button.classList.remove('paused');\n this._pauseButton[i].button.classList.add(paused ? 'paused' : 'unpaused');\n }\n }\n\n /**\n * @memberof PausePlugin\n * @returns {Boolean}\n */\n get pause() {\n return this._paused;\n }\n\n /**\n * updates _manageOwnVisibility and also re-enables pageVisibility\n * @memberof PausePlugin\n * @param {Boolean} manageOwnVisibility\n */\n set manageOwnVisibility(manageOwnVisibility) {\n this._manageOwnVisibility = manageOwnVisibility;\n\n this.pageVisibility.enabled = this._manageOwnVisibility;\n }\n\n /**\n * @memberof PausePlugin\n * @returns {Boolean}\n */\n get manageOwnVisibility() {\n return this._manageOwnVisibility;\n }\n\n /**\n * forces focus onto the iframe application window\n * @memberof PausePlugin\n */\n focusApp() {\n if (!this.hasDom) {\n // We don't have a dom with a content window, fail quietly\n return;\n }\n\n this.iframe.contentWindow.focus();\n }\n\n /**\n * blurs the application iframe window\n * @memberof PausePlugin\n */\n blurApp() {\n if (!this.hasDom) {\n return;\n }\n this.iframe.contentWindow.blur();\n }\n\n /**\n * Determines what pause state should be sent, if any, on focus or blur events.\n * @method manageFocus\n * @memberof PausePlugin\n */\n manageFocus() {\n if (!this.manageOwnVisibility) {\n return;\n }\n // Unfocus on the iframe\n if (this._keepFocus) {\n this.blurApp();\n }\n\n // we only need one delayed call, at the end of any\n // sequence of rapidly-fired blur/focus events\n if (this._focusTimer) {\n clearTimeout(this._focusTimer);\n }\n\n // Delay setting of 'paused' in case we get another focus event soon.\n // Focus events are sent to the container asynchronously, and this was\n // causing rapid toggling of the pause state and related issues,\n // especially in Internet Explorer\n this._focusTimer = setTimeout(\n function () {\n this._focusTimer = null;\n // A manual pause cannot be overriden by focus events.\n // User must click the resume button.\n if (this._isManualPause) {\n return;\n }\n\n this.pause = Boolean(this._containerBlurred && this._appBlurred);\n\n // Focus on the content window when blurring the app\n // but selecting the container\n if (this._keepFocus && !this._containerBlurred && this._appBlurred) {\n this.focusApp();\n }\n }.bind(this),\n 100\n );\n }\n\n /**\n * Handle the keep focus event for the window\n * @method onKeepFocus\n * @memberof PausePlugin\n * @private\n */\n onKeepFocus($event) {\n this._keepFocus = !!$event.data;\n this.manageFocus();\n }\n\n /**\n * Handle focus events sent from iFrame children\n * @method onFocus\n * @memberof PausePlugin\n * @private\n */\n onFocus($event) {\n this._appBlurred = !$event.data;\n this.manageFocus();\n }\n\n /**\n * Handle focus events sent from container's window\n * @method onContainerFocus\n * @memberof PausePlugin\n * @private\n */\n onContainerFocus() {\n this._containerBlurred = false;\n this.manageFocus();\n }\n\n /**\n * Handle blur events sent from container's window\n * @method onContainerBlur\n * @memberof PausePlugin\n * @private\n */\n onContainerBlur() {\n //Set both container and application to blurred,\n //because some blur events are only happening on the container.\n //If container is blurred because application area was just focused,\n //the application's focus event will override the blur imminently.\n this._containerBlurred = this._appBlurred = true;\n this.manageFocus();\n }\n\n /**\n * @memberof PausePlugin\n */\n onPauseToggle() {\n this._isManualPause = !this._isManualPause;\n this.pause = !this.pause;\n }\n\n /**\n * @param {Container} container\n * @memberof PausePlugin\n */\n init({ iframe }) {\n this.iframe = iframe;\n\n this.client.on(\n 'features',\n function (features) {\n if (features.disablePause) {\n this.pauseDisabled = true;\n }\n\n for (let i = 0, l = this._pauseButton.length; i < l; i++) {\n this._pauseButton[i].displayButton(features.data);\n }\n }.bind(this)\n );\n this.client.on('focus', this.onFocus);\n this.client.on('keepFocus', this.onKeepFocus);\n\n this.pause = this._paused;\n }\n\n /**\n * Function to check if we have a dom with a contentWindow\n * @readonly\n * @returns {boolean}\n * @memberof PausePlugin\n */\n get hasDom() {\n return Boolean(null !== this.iframe && this.iframe.contentWindow);\n }\n\n /**\n * @readonly\n * @memberof PausePlugin\n * @returns {HTMLButtonElement[]}\n */\n get pauseButton() {\n const buttons = [];\n for (let i = 0, l = this._pauseButton.length; i < l; i++) {\n buttons.push(this._pauseButton[i].button);\n }\n return buttons;\n }\n\n /**\n * @readonly\n * @static\n * @memberof PausePlugin\n * @returns {string}\n */\n static get pauseKey() {\n return 'pause';\n }\n}\n","import { SavedData } from '../SavedData';\nimport { ButtonPlugin } from '../base-plugins';\nimport { Slider, Button } from '../ui-elements';\n\n/**\n * @export\n * @class SoundPlugin\n * @extends {ButtonPlugin}\n *\n */\nexport class SoundPlugin extends ButtonPlugin {\n /**\n * Creates an instance of SoundPlugin.\n * @param {string | HTMLElement} [soundButtons] selector string or HTML Element for the input(s)\n * @param {string | HTMLElement} [musicButtons] selector string or HTML Element for the input(s)\n * @param {string | HTMLElement} [voButtons] selector string or HTML Element for the input(s)\n * @param {string | HTMLElement} [sfxButtons] selector string or HTML Element for the input(s)\n * @param {string | HTMLElement} [soundSliders] selector string or HTML Element for the input(s)\n * @param {string | HTMLElement} [musicSliders] selector string or HTML Element for the input(s)\n * @param {string | HTMLElement} [sfxSliders] selector string or HTML Element for the input(s)\n * @param {string | HTMLElement} [voSliders] selector string or HTML Element for the input(s)\n * @memberof SoundPlugin\n */\n constructor({\n soundButtons,\n musicButtons,\n sfxButtons,\n voButtons,\n soundSliders,\n musicSliders,\n sfxSliders,\n voSliders\n } = {}) {\n super('Sound-Button-Plugin');\n const saved = SavedData.read(SoundPlugin.soundMutedKey);\n this.sendAllProperties = this.sendAllProperties.bind(this);\n this._soundMuted = saved ? saved : false;\n this._musicMuted = false;\n this._voMuted = false;\n this._sfxMuted = false;\n\n this._musicMutedByUser = false;\n this._soundMutedByUser = false;\n this._sfxMutedByUser = false;\n this._voMutedByUser = false;\n\n this.soundMutedEnabled = false;\n this.musicMutedEnabled = false;\n this.sfxMutedEnabled = false;\n this.voMutedEnabled = false;\n\n this.soundVolume = 1;\n this.musicVolume = 1;\n this.sfxVolume = 1;\n this.voVolume = 1;\n\n this.soundSliders = [];\n this.musicSliders = [];\n this.sfxSliders = [];\n this.voSliders = [];\n\n this.soundButtons = [];\n this.musicButtons = [];\n this.sfxButtons = [];\n this.voButtons= [];\n\n if (soundSliders instanceof HTMLElement) {\n this.soundSliders[0] = new Slider({\n slider: soundSliders,\n control: SoundPlugin.soundVolumeKey,\n defaultValue: this.soundVolume\n });\n } else {\n document.querySelectorAll(soundSliders).forEach((slider) => {\n const newSlider = new Slider({\n slider: slider,\n control: SoundPlugin.soundVolumeKey,\n defaultValue: this.soundVolume\n });\n if (newSlider.slider) {\n this.soundSliders.push(newSlider);\n }\n });\n }\n if (musicSliders instanceof HTMLElement) {\n this.musicSliders[0] = new Slider({\n slider: musicSliders,\n control: SoundPlugin.musicVolumeKey,\n defaultValue: this.musicVolume\n });\n } else {\n document.querySelectorAll(musicSliders).forEach((slider) => {\n const newSlider = new Slider({\n slider: slider,\n control: SoundPlugin.musicVolumeKey,\n defaultValue: this.musicVolume\n });\n if (newSlider.slider) {\n this.musicSliders.push(newSlider);\n }\n });\n }\n if (sfxSliders instanceof HTMLElement) {\n this.sfxSliders[0] = new Slider({\n slider: sfxSliders,\n control: SoundPlugin.sfxVolumeKey,\n defaultValue: this.sfxVolume\n });\n } else {\n document.querySelectorAll(sfxSliders).forEach((slider) => {\n const newSlider = new Slider({\n slider: slider,\n control: SoundPlugin.sfxVolumeKey,\n defaultValue: this.sfxVolume\n });\n if (newSlider.slider) {\n this.sfxSliders.push(newSlider);\n }\n });\n }\n if (voSliders instanceof HTMLElement) {\n this.voSliders[0] = new Slider({\n slider: voSliders,\n control: SoundPlugin.voVolumeKey,\n defaultValue: this.voVolume\n });\n } else {\n document.querySelectorAll(voSliders).forEach((slider) => {\n const newSlider = new Slider({\n slider: slider,\n control: SoundPlugin.voVolumeKey,\n defaultValue: this.voVolume\n });\n if (newSlider.slider) {\n this.voSliders.push(newSlider);\n }\n });\n }\n\n if ( soundButtons instanceof HTMLElement ) {\n this.soundButtons[0] = new Button({\n button: soundButtons,\n onClick: this.onSoundToggle.bind(this),\n channel: SoundPlugin.soundKey\n });\n } else {\n document.querySelectorAll(soundButtons).forEach((button) => {\n this.soundButtons.push(new Button({\n button: button,\n onClick: this.onSoundToggle.bind(this),\n channel: SoundPlugin.soundKey\n }));\n });\n }\n if ( musicButtons instanceof HTMLElement ) {\n this.musicButtons[0] = new Button({\n button: musicButtons,\n onClick: this.onMusicToggle.bind(this),\n channel: 'music'\n });\n } else {\n document.querySelectorAll(musicButtons).forEach((button) => {\n this.musicButtons.push(new Button({\n button: button,\n onClick: this.onMusicToggle.bind(this),\n channel: 'music'\n }));\n });\n }\n if ( sfxButtons instanceof HTMLElement ) {\n this.sfxButtons[0] = new Button({\n button: sfxButtons,\n onClick: this.onSFXToggle.bind(this),\n channel: 'sfx'\n });\n } else {\n document.querySelectorAll(sfxButtons).forEach((button) => {\n this.sfxButtons.push(new Button({\n button: button,\n onClick: this.onSFXToggle.bind(this),\n channel: 'sfx'\n }));\n });\n }\n if ( voButtons instanceof HTMLElement ) {\n this.voButtons[0] = new Button({\n button: voButtons,\n onClick: this.onVOToggle.bind(this),\n channel: 'vo'\n });\n } else {\n document.querySelectorAll(voButtons).forEach((button) => {\n this.voButtons.push(new Button({\n button: button,\n onClick: this.onVOToggle.bind(this),\n channel: 'vo'\n }));\n });\n }\n\n this.soundSlidersLength = this.soundSliders.length;\n this.musicSlidersLength = this.musicSliders.length;\n this.sfxSlidersLength = this.sfxSliders.length;\n this.voSlidersLength = this.voSliders.length;\n this.soundButtonsLength = this.soundButtons.length;\n this.musicButtonsLength = this.musicButtons.length;\n this.sfxButtonsLength = this.sfxButtons.length;\n this.voButtonsLength = this.voButtons.length;\n\n if (0 >= (this.soundSlidersLength + this.musicSlidersLength + this.sfxSlidersLength + this.voSlidersLength + this.soundButtonsLength + this.musicButtonsLength + this.sfxButtonsLength + this.voButtonsLength)) {\n this.warn('Plugin was not provided any valid HTML Elements');\n return;\n }\n\n for (let i = 0; i < this.soundSlidersLength; i++) {\n this.soundSliders[i].enableSliderEvents(this.onSoundVolumeChange.bind(this));\n }\n for (let i = 0; i < this.musicSlidersLength; i++) {\n this.musicSliders[i].enableSliderEvents(this.onMusicVolumeChange.bind(this));\n }\n for (let i = 0; i < this.sfxSlidersLength; i++) {\n this.sfxSliders[i].enableSliderEvents(this.onSFXVolumeChange.bind(this));\n }\n for (let i = 0; i < this.voSlidersLength; i++) {\n this.voSliders[i].enableSliderEvents(this.onVOVolumeChange.bind(this));\n }\n\n if (this.soundSliders[0] && this.soundSliders[0].slider) {\n this.soundVolume = this.soundSliders[0].value;\n }\n if (this.musicSliders[0] && this.musicSliders[0].slider) {\n this.musicVolume = this.musicSliders[0].value;\n }\n if (this.sfxSliders[0] && this.sfxSliders[0].slider) {\n this.sfxVolume = this.sfxSliders[0].value;\n }\n if (this.voSliders[0] && this.voSliders[0].slider) {\n this.voVolume = this.voSliders[0].value;\n }\n }\n\n /**\n * @memberof SoundPlugin\n * @param {Event} e\n */\n onSoundVolumeChange(e) {\n if (this.soundSlidersLength <= 0) {\n this.soundVolume = e.target.value;\n return;\n }\n this.soundVolume = this.soundSliders[0].sliderRange(\n Number(e.target.value)\n );\n this.soundMuted = !this.soundVolume;\n\n if (!this._musicMutedByUser) {\n this.musicMuted = this.soundMuted;\n }\n if (!this._sfxMutedByUser) {\n this.sfxMuted = this.soundMuted;\n }\n if (!this._voMutedByUser) {\n this.voMuted = this.soundMuted;\n }\n\n this.sendProperty(SoundPlugin.soundVolumeKey, this.soundVolume);\n\n for (let i = 0; i < this.soundSlidersLength; i++) {\n this.soundSliders[i].value = this.soundVolume;\n }\n }\n\n /**\n * @memberof SoundPlugin\n * @param {Event} e\n */\n onMusicVolumeChange(e) {\n if (this.musicSlidersLength <= 0) {\n this.musicVolume = e.target.value;\n return;\n }\n\n this.musicVolume = this.musicSliders[0].sliderRange(\n Number(e.target.value)\n );\n\n this.musicMuted = !this.musicVolume;\n if (!this.musicMuted) { this._musicMutedByUser = false; }\n this._checkSoundMute();\n this.sendProperty(SoundPlugin.musicVolumeKey, this.musicVolume);\n\n for (let i = 0; i < this.musicSlidersLength; i++) {\n this.musicSliders[i].value = this.musicVolume;\n }\n }\n\n /**\n * @memberof SoundPlugin\n * @param {Event} e\n */\n onVOVolumeChange(e) {\n if (this.voSlidersLength <= 0) {\n this.voVolume = e.target.value;\n return;\n }\n this.voVolume = this.voSliders[0].sliderRange(Number(e.target.value));\n if (!this.voMuted) { this._voMutedByUser = false; }\n this.voMuted = !this.voVolume;\n this._checkSoundMute();\n\n this.sendProperty(SoundPlugin.voVolumeKey, this.voVolume);\n for (let i = 0; i < this.voSlidersLength; i++) {\n this.voSliders[i].value = this.voVolume;\n }\n }\n\n /**\n * @memberof SoundPlugin\n * @param {Event} e\n */\n onSFXVolumeChange(e) {\n if (this.sfxSlidersLength <= 0) {\n this.sfxVolume = e.target.value;\n return;\n }\n this.sfxVolume = this.sfxSliders[0].sliderRange(Number(e.target.value));\n if (!this.sfxMuted) { this._sfxMutedByUser = false; }\n this.sfxMuted = !this.sfxVolume;\n this._checkSoundMute();\n\n this.sendProperty(SoundPlugin.sfxVolumeKey, this.sfxVolume);\n\n for (let i = 0; i < this.sfxSlidersLength; i++) {\n this.sfxSliders[i].value = this.sfxVolume;\n }\n }\n\n /**\n * @memberof SoundPlugin\n */\n onSoundToggle() {\n const muted = !this.soundMuted;\n this.soundMuted = muted;\n\n if (!this._musicMutedByUser || muted) {\n this.musicMuted = muted;\n }\n if (!this._sfxMutedByUser || muted) {\n this.sfxMuted = muted;\n }\n if (!this._voMutedByUser || muted) {\n this.voMuted = muted;\n }\n }\n\n /**\n * @memberof SoundPlugin\n */\n onMusicToggle() {\n this.musicMuted = !this.musicMuted;\n this._musicMutedByUser = this.musicMuted;\n this._checkSoundMute();\n }\n\n /**\n * @memberof SoundPlugin\n */\n onVOToggle() {\n this.voMuted = !this.voMuted;\n this._voMutedByUser = this.voMuted;\n this._checkSoundMute();\n }\n\n /**\n * @memberof SoundPlugin\n */\n onSFXToggle() {\n this.sfxMuted = !this.sfxMuted;\n this._sfxMutedByUser = this.sfxMuted;\n this._checkSoundMute();\n }\n\n /**\n * @memberof SoundPlugin\n */\n _checkSoundMute() {\n this.soundMuted = this.sfxMuted && this.voMuted && this.musicMuted;\n }\n\n /**\n * @param {string} key\n * @param {*} value\n * @param {Element} element\n * @memberof SoundPlugin\n */\n setMuteProp(key, value, element, disableSend = false) {\n this['_' + key] = value;\n this._setMuteProp(key, element, value, disableSend);\n }\n\n /**\n * @memberof SoundPlugin\n */\n async preload({ client }) {\n this.client = client;\n this.client.on(\n 'features',\n function(features) {\n if (!features.data) {\n return;\n }\n \n // Confirm that the mute features are supported\n this.soundMutedEnabled = !!features.data.sound;\n this.musicMutedEnabled = !!features.data.music;\n this.sfxMutedEnabled = !!features.data.sfx;\n this.voMutedEnabled = !!features.data.vo;\n \n this.soundVolumeEnabled = !!features.data.soundVolume;\n this.musicVolumeEnabled = !!features.data.musicVolume;\n this.sfxVolumeEnabled = !!features.data.sfxVolume;\n this.voVolumeEnabled = !!features.data.voVolume;\n \n for (let i = 0; i < this.soundButtonsLength; i++) {\n this.soundButtons[i].displayButton(features.data);\n }\n for (let i = 0; i < this.musicButtonsLength; i++) {\n this.musicButtons[i].displayButton(features.data);\n }\n for (let i = 0; i < this.sfxButtonsLength; i++) {\n this.sfxButtons[i].displayButton(features.data);\n }\n for (let i = 0; i < this.voButtonsLength; i++) {\n this.voButtons[i].displayButton(features.data);\n }\n for (let i = 0; i < this.soundSlidersLength; i++) {\n this.soundSliders[i].displaySlider(features.data);\n }\n for (let i = 0; i < this.musicSlidersLength; i++) {\n this.musicSliders[i].displaySlider(features.data);\n }\n for (let i = 0; i < this.sfxSlidersLength; i++) {\n this.sfxSliders[i].displaySlider(features.data);\n }\n for (let i = 0; i < this.voSlidersLength; i++) {\n this.voSliders[i].displaySlider(features.data);\n }\n\n const soundMuted = !!SavedData.read(SoundPlugin.soundMutedKey);\n const musicMuted = !!SavedData.read(SoundPlugin.musicMutedKey);\n const sfxMuted = !!SavedData.read(SoundPlugin.sfxMutedKey);\n const voMuted = !!SavedData.read(SoundPlugin.voMutedKey);\n\n // set the property in case buttons exist but disable the send here\n // properties will be sent in sendAllProperties\n this.setMuteProp('soundMuted', soundMuted, this.soundButtons, true);\n this.setMuteProp('musicMuted', musicMuted, this.musicButtons, true);\n this.setMuteProp('sfxMuted', sfxMuted, this.sfxButtons, true);\n this.setMuteProp('voMuted', voMuted, this.voButtons, true);\n }.bind(this)\n );\n }\n\n /**\n * @memberof SoundPlugin\n */\n start() {\n for (let i = 0; i < this.soundButtonsLength; i++) {\n this.soundButtons[i].enableButton();\n }\n for (let i = 0; i < this.musicButtonsLength; i++) {\n this.musicButtons[i].enableButton();\n }\n for (let i = 0; i < this.sfxButtonsLength; i++) {\n this.sfxButtons[i].enableButton();\n }\n for (let i = 0; i < this.voButtonsLength; i++) {\n this.voButtons[i].enableButton();\n }\n\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * Saves the current state of all volume properties, and then sends them to the game\n * @memberof SoundPlugin\n */\n sendAllProperties() {\n\n if ( this.soundVolumeEnabled && this.soundSlidersLength > 0 ) {\n this.sendProperty(SoundPlugin.soundVolumeKey, this.soundVolume);\n }\n if ( this.musicVolumeEnabled && this.musicSlidersLength > 0 ) {\n this.sendProperty(SoundPlugin.musicVolumeKey, this.musicVolume);\n }\n if ( this.voVolumeEnabled && this.voSlidersLength > 0 ) {\n this.sendProperty(SoundPlugin.voVolumeKey, this.voVolume);\n }\n if ( this.sfxVolumeEnabled && this.sfxSlidersLength > 0 ) {\n this.sendProperty(SoundPlugin.sfxVolumeKey, this.sfxVolume);\n }\n\n // to avoid the mute property overwriting the volume on startup, mutes should only send if they're true\n // or the volume channel isn't enabled\n if ( (this.soundButtonsLength > 0 && this.soundMutedEnabled) && (this.soundMuted || !this.soundVolumeEnabled )) {\n this.sendProperty(SoundPlugin.soundMutedKey, this.soundMuted);\n }\n if ( (this.musicButtonsLength > 0 && this.musicMutedEnabled) && (this.musicMuted || !this.musicVolumeEnabled )) {\n this.sendProperty(SoundPlugin.musicMutedKey, this.musicMuted);\n }\n if ( (this.voButtonsLength > 0 && this.voMutedEnabled) && ( this.voMuted || !this.voVolumeEnabled )) {\n this.sendProperty(SoundPlugin.voMutedKey, this.voMuted);\n }\n if ( (this.sfxButtonsLength > 0 && this.sfxMutedEnabled) && (this.sfxMuted || !this.sfxVolumeEnabled )) {\n this.sendProperty(SoundPlugin.sfxMutedKey, this.sfxMuted);\n }\n }\n\n /**\n * @memberof SoundPlugin\n * @param {boolean} muted\n */\n set soundMuted(muted) {\n if (muted === this.soundMuted) {\n // have to do this to make sure it gets set up properly on start up\n this.setMuteProp('soundMuted', muted, this.soundButtons, true);\n return;\n }\n\n let disableSend = false;\n // if volume is enabled and the channel is becoming unmuted we update everything but only send the volume\n if (this.soundVolumeEnabled && !muted) {\n this.sendProperty(SoundPlugin.soundVolumeKey, this.soundVolume);\n disableSend = true;\n }\n this.setMuteProp('soundMuted', muted, this.soundButtons, disableSend);\n }\n\n /**\n * @memberof SoundPlugin\n */\n get soundMuted() {\n return this._soundMuted;\n }\n\n /**\n * @memberof SoundPlugin\n * @param {boolean} muted\n */\n set voMuted(muted) {\n let disableSend = false;\n if (this.voMuted === muted) {\n // have to do this to make sure it gets set up properly on start up\n this.setMuteProp('voMuted', muted, this.voButtons, true);\n return;\n }\n if ((this.voVolumeEnabled && !muted)) {\n this.sendProperty(SoundPlugin.voVolumeKey, this.voVolume);\n disableSend = true;\n }\n this.setMuteProp('voMuted', muted, this.voButtons, disableSend);\n }\n\n /**\n * @memberof SoundPlugin\n */\n get voMuted() {\n return this._voMuted;\n }\n\n /**\n * @memberof SoundPlugin\n * @param {boolean} muted\n */\n set musicMuted(muted) {\n if (this.musicMuted === muted) {\n // have to do this to make sure it gets set up properly on start up\n this.setMuteProp('musicMuted', muted, this.musicButtons, true);\n return; \n }\n let disableSend = false;\n if (this.musicVolumeEnabled && !muted) {\n this.sendProperty(SoundPlugin.musicVolumeKey, this.musicVolume);\n disableSend = true;\n }\n\n this.setMuteProp('musicMuted', muted, this.musicButtons, disableSend);\n }\n\n /**\n * @memberof SoundPlugin\n */\n get musicMuted() {\n return this._musicMuted;\n }\n\n /**\n * @memberof SoundPlugin\n * @param {boolean} muted\n */\n set sfxMuted(muted) {\n if (this.sfxMuted === muted) {\n // have to do this to make sure it gets set up properly on start up\n this.setMuteProp('sfxMuted', muted, this.sfxButtons, true);\n return;\n }\n let disableSend = false;\n if (this.sfxVolumeEnabled && !muted) {\n this.sendProperty(SoundPlugin.sfxVolumeKey, this.sfxVolume);\n disableSend = true;\n }\n this.setMuteProp('sfxMuted', muted, this.sfxButtons, disableSend);\n }\n\n /**\n * @memberof SoundPlugin\n */\n get sfxMuted() {\n return this._sfxMuted;\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get soundMutedKey() {\n return 'soundMuted';\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get voMutedKey() {\n return 'voMuted';\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get musicMutedKey() {\n return 'musicMuted';\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get sfxMutedKey() {\n return 'sfxMuted';\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get soundVolumeKey() {\n return 'soundVolume';\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get sfxVolumeKey() {\n return 'sfxVolume';\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get voVolumeKey() {\n return 'voVolume';\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get musicVolumeKey() {\n return 'musicVolume';\n }\n\n /**\n * @readonly\n * @memberof SoundPlugin\n */\n get soundButton() {\n return this._soundButton.button;\n }\n\n /**\n * @readonly\n * @memberof SoundPlugin\n */\n get musicButton() {\n return this._musicButton.button;\n }\n /**\n * @readonly\n * @memberof SoundPlugin\n */\n get sfxButton() {\n return this._sfxButton.button;\n }\n /**\n * @readonly\n * @memberof SoundPlugin\n */\n get voButton() {\n return this._voButton.button;\n }\n\n /**\n * @readonly\n * @static\n * @memberof SpeedScalePlugin\n * @return {string}\n */\n static get soundKey() {\n return 'sound';\n }\n}\n","import { SavedData } from './SavedData';\n/**\n * Default user data handler for the {{#crossLink \"springroll.Container\"}}Container{{/crossLink}} to save data using\n * the {{#crossLink \"springroll.SavedData\"}}SavedData{{/crossLink}} class.\n * @class SavedDataHandler\n */\nexport class SavedDataHandler {\n\n /**\n * \n */\n constructor() {\n this.dbName;\n this.savedData;\n }\n \n /**\n * Remove a data setting\n * @method remove\n * @static\n * @param {String} name The name of the property\n * @param {Function} [callback] Callback when remove is complete\n */\n static remove(name, callback) {\n SavedData.remove(name);\n callback();\n }\n\n /**\n * Write a custom setting\n * @method write\n * @static\n * @param {String} name The name of the property\n * @param {*} value The value to set the property to\n * @param {Function} [callback] Callback when write is complete\n */\n static write(name, value, callback) {\n SavedData.write(name, value);\n callback();\n }\n\n /**\n * Read a custom setting\n * @method read\n * @static\n * @param {String} name The name of the property\n * @param {Function} callback Callback when read is complete, returns the value\n */\n static read(name, callback) {\n callback(SavedData.read(name));\n }\n\n // ----------------------------------------------------------------\n // IndexedDB Manipulation \n // ----------------------------------------------------------------\n\n /**\n * Open a connection with the database\n * @param {string} dbName The name of your IndexedDB database\n * @param {string} dbVersion The version number of the database\n * @param {JSON} additions Any additions to the structure of the database\n * @param {array} additions.stores Any stores to be added into the database syntax: \n * {storeName: '[name]', options: {[optionally add options]}}\n * @param {array} additions.indexes Any Indexes to be added to the database syntax: \n * {storeName: '[name]', options: {[optionally add options]}}\n */\n IDBOpen( dbName, dbVersion = null, additions = {}, deletions = {}, callback = null) {\n // persisting the savedData object to keep the connection open\n this.savedData = new SavedData();\n this.savedData.IDBOpen( dbName, dbVersion, additions, deletions, callback);\n }\n\n /**\n * Add a record to a given store\n * @param {string} storeName The name of the store from which the record will be updated\n * @param {string} key the key of the record to be updated \n * @param {*} value The value for the record with the given key to be updated\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBAdd(storeName, record, key, callback) {\n this.savedData.IDBAdd(storeName, record, key, callback);\n }\n \n /**\n * Update a record from a given store\n * @param {string} storeName The name of the store from which the record will be updated\n * @param {string} key the key of the record to be updated \n * @param {*} value The value for the record with the given key to be updated\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBUpdate(storeName, key, value, callback) {\n this.savedData.IDBUpdate(storeName, key, value, callback);\n }\n\n /**\n * Remove a record from a store\n * @param {*} storeName The name of the store from which the record will be removed\n * @param {*} key the key of the record to be removed \n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBRemove(storeName, key, callback) {\n this.savedData.IDBRemove(storeName, key, callback);\n }\n\n /**\n * Return a record from a given store with a given key\n * @param {string} storeName The name of the store to read from\n * @param {string} key The key for the record in the given store \n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBRead(storeName, key, callback) {\n this.savedData.IDBRead(storeName, key, callback);\n }\n\n /**\n * Get all records from a store\n * @param {string} storeName The store to get all records from\n * @param {integer} count Optionally the count of records to return\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBReadAll(storeName, count, callback) {\n this.savedData.IDBReadAll(storeName, count, callback);\n }\n\n /**\n * Get the version of a given database\n * @param {string} dbName The name of the database to return the version of\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBGetVersion(dbName, callback) {\n const sd = new SavedData(dbName);\n\n sd.IDBGetVersion(dbName, callback);\n }\n\n /**\n * Closes the connection to the database\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBClose(callback) {\n this.savedData.IDBClose(callback);\n }\n /**\n * Closes the connection to the database\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBDeleteDB(dbName, options, callback) {\n const sd = new SavedData(dbName);\n sd.IDBDeleteDB(dbName, options, callback);\n }\n\n}\n","import { SavedDataHandler } from '../SavedDataHandler';\nimport { BasePlugin } from '../base-plugins';\n\n/**\n * @export\n * @class UserDataPlugin\n * @extends {BasePlugin}\n * @property {SavedDataHandler} SavedDataHandler The handler to work with the savedData class\n */\nexport class UserDataPlugin extends BasePlugin {\n /**\n * Creates an instance of UserDataPlugin.\n * @memberof UserDataPlugin\n */\n constructor() {\n super('UserData-Plugin');\n this.onUserDataRemove = this.onUserDataRemove.bind(this);\n this.onUserDataRead = this.onUserDataRead.bind(this);\n this.onUserDataWrite = this.onUserDataWrite.bind(this);\n\n this.onIDBAdd = this.onIDBAdd.bind(this);\n this.onIDBOpen = this.onIDBOpen.bind(this);\n this.onIDBRead = this.onIDBRead.bind(this);\n this.onIDBReadAll = this.onIDBReadAll.bind(this);\n this.onIDBRemove = this.onIDBRemove.bind(this);\n this.onIDBUpdate = this.onIDBUpdate.bind(this);\n this.onIDBUpdate = this.onIDBUpdate.bind(this);\n this.onIDBClose = this.onIDBClose.bind(this);\n this.IDBReadAll = this.onIDBReadAll.bind(this);\n this.onIDBGetVersion = this.onIDBGetVersion.bind(this);\n this.onIDBDeleteDB = this.onIDBDeleteDB.bind(this);\n\n this.savedDataHandler = null;\n }\n\n /**\n *\n * @memberof UserDataPlugin\n */\n init() {\n this.client.on('userDataRemove', this.onUserDataRemove);\n this.client.on('userDataRead', this.onUserDataRead);\n this.client.on('userDataWrite', this.onUserDataWrite);\n\n this.client.on('IDBOpen', this.onIDBOpen);\n this.client.on('IDBRead', this.onIDBRead);\n this.client.on('IDBReadAll', this.onIDBReadAll);\n this.client.on('IDBAdd', this.onIDBAdd);\n this.client.on('IDBRemove', this.onIDBRemove);\n this.client.on('IDBUpdate', this.onIDBUpdate);\n this.client.on('IDBClose', this.onIDBClose);\n this.client.on('IDBGetVersion', this.onIDBGetVersion);\n this.client.on('IDBDeleteDB', this.onIDBDeleteDB);\n }\n\n /**\n * Handler for the userDataRemove event\n * @method onUserDataRemove\n * @private\n * @param {string} data The name of the record to be removed\n * @param {string} type The type of listener for bellhop to send to\n */\n onUserDataRemove({ data, type }) {\n SavedDataHandler.remove(data, () => {\n this.client.send(type);\n });\n }\n\n /**\n * Handler for the userDataRead event\n * @method onUserDataRead\n * @private\n * @param {string} data The name of the record to be removed\n * @param {string} type The type of listener for bellhop to send to\n */\n onUserDataRead({ data, type }) {\n SavedDataHandler.read(data, value => this.client.send(type, value));\n }\n\n /**\n * Handler for the userDataWrite event\n * @method onUserDataWrite\n * @private\n * @param {string} type The type of listener for bellhop to send to\n * @param {string} data.name The name for the record. This is what is used to read or remove the record\n * @param {object | string} data.value The data object with the data and value for the record\n */\n onUserDataWrite({type, data: { name, value } }) {\n\n SavedDataHandler.write(name, value, () => this.client.send(type));\n }\n\n // ----------------------------------------------------------------\n // IndexedDB Manipulation\n // ----------------------------------------------------------------\n\n /**\n * Open a connection with the IDB Database and optionally add or delete\n * Indexes and stores\n * @param {string} dbName The name of your IndexedDB database\n * @param {string} [dbVersion] The version number of the database\n * @param {JSON} [additions] Any additions to the structure of the database\n * @param {array} [additions.stores] Any stores to be added into the database syntax:\n * @param {string} [additions.stores.storeName] The name of the store\n * @param {object} [additions.stores.options] Optionally, the option parameter for the createStore method\n * @param {array} [additions.indexes] Any Indexes to be added to the database syntax:\n * @param {string} [additions.indexes.storeName] The name of the store\n * @param {object} [additions.indexes.options] Optionally, the option parameter for the createIndex method\n * @param {string} type The type of listener for bellhop to send to\n */\n onIDBOpen({type, data: {dbName, dbVersion = null, additions = {}, deletions = {} }}) {\n // Keep an instance open to use on open\n this.savedDataHandler = new SavedDataHandler();\n this.savedDataHandler.IDBOpen( dbName, dbVersion, additions, deletions, value => this.client.send(type, value));\n }\n\n /**\n * Add a record to a given store\n * @param {string} type The type of listener for bellhop to send to\n * @param {string} storeName The name of the store from which the record will be updated\n * @param {*} value The value for the record with the given key to be updated\n * @param {string} key the key of the record to be updated\n */\n onIDBAdd({type, data: { storeName, value, key}}) {\n this.savedDataHandler.IDBAdd(storeName, value, key, value => this.client.send(type, value));\n }\n\n /**\n * Update a record from a given store\n * @param {string} type The type of listener for bellhop to send to\n * @param {string} storeName The name of the store with the record to update\n * @param {string} key The key of the record to be updated\n * @param {*} value The record value\n */\n onIDBUpdate({type, data: { storeName, key, value}}) {\n this.savedDataHandler.IDBUpdate(storeName, key, value, value => this.client.send(type, value));\n }\n\n /**\n * Remove a record from a store\n * @param {string} type The type of listener for bellhop to send to\n * @param {string} storeName The name of the store from which the record will be removed\n * @param {*} key the key of the record to be removed\n */\n onIDBRemove({type, data: {storeName, key}}) {\n this.savedDataHandler.IDBRemove(storeName, key, value => this.client.send(type, value));\n }\n\n /**\n * Return a record from a given store with a given key\n * @param {string} storeName The name of the store to read from\n * @param {string} key The key for the record in the given store\n * @param {string} type The type of listener for bellhop to send to\n */\n onIDBRead({type, data: {storeName, key}}) {\n this.savedDataHandler.IDBRead(storeName, key, value => this.client.send(type, value));\n }\n\n /**\n * Get all records from a store\n * @param {string} storeName The store to get all records from\n * @param {integer} count Optionally the number of records to return\n * @param {string} type The type of listener for bellhop to send to\n */\n onIDBReadAll({ type, data: {storeName, count} }) {\n this.savedDataHandler.IDBReadAll(storeName, count, value => this.client.send(type, value));\n }\n\n /**\n * Get the version of a given database\n * @param {string} dbName The name of the database to return the version of\n * @param {string} type The type of listener for bellhop to send to\n */\n onIDBGetVersion({type, data: {dbName}}) {\n // Create a new instance of savedDataHandler to avoid mutating the current instance\n const sdh = new SavedDataHandler();\n sdh.IDBGetVersion(dbName, value => this.client.send(type, value));\n }\n\n /**\n * Close the connection with the database\n * @param {string} type The type of listener for bellhop to send to\n */\n onIDBClose({type}) {\n this.savedDataHandler.IDBClose(value => this.client.send(type, value));\n }\n /**\n * Close the connection with the database\n * @param type - The type of request being sent\n */\n onIDBDeleteDB({type, data: {dbName, options }}) {\n const sdh = new SavedDataHandler();\n\n\n sdh.IDBDeleteDB(dbName, options, value => this.client.send(type, value));\n }\n}","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class PointerSizePlugin\n * @extends {SliderPlugin}\n * @property {object[]} sliders an array of all slider objects attached to PointerSizePlugin\n * @extends SliderPlugin\n */\nexport class PointerSizePlugin extends SliderPlugin {\n /**\n * Creates an instance of PointerSizePlugin.\n * @param {string | HTMLElement} [pointerSliders] selector string or HTML Element for the input(s)\n * @param {number} [defaultPointerSize=0.5] The default value for the pointer size slider\n * @memberof PointerSizePlugin\n */\n constructor(pointerSliders, { defaultPointerSize = 0.5 } = {}) {\n super(pointerSliders, 'UISize-Pointer-Plugin', { defaultValue: defaultPointerSize, featureName: PointerSizePlugin.pointerSizeKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onPointerSizeChange.bind(this));\n }\n\n }\n\n /**\n * @memberof PointerSizePlugin\n * @param {Event} e\n */\n onPointerSizeChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(PointerSizePlugin.pointerSizeKey, this.currentValue);\n }\n\n\n /**\n * @readonly\n * @static\n * @memberof PointerSizePlugin\n * @return {string}\n */\n static get pointerSizeKey() {\n return 'pointerSize';\n }\n}\n","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class ButtonSizePlugin\n * @property {object[]} sliders An array of slider objects given to ButtonSizePlugin\n * @property {number} currentValue The current button size value\n * @extends {SliderPlugin}\n */\nexport class ButtonSizePlugin extends SliderPlugin {\n /**\n * Creates an instance of ButtonSizePlugin.\n * @param {string | HTMLElement} buttonSliders selector string or html element(s) for the inputs\n * @param {object} options\n * @param {number} [options.defaultButtonSize=0.5]\n * @memberof ButtonSizePlugin\n */\n constructor(buttonSliders, { defaultButtonSize = 0.5 } = {}) {\n super(buttonSliders, 'UISize-Button-Plugin', { defaultValue: defaultButtonSize, featureName: ButtonSizePlugin.buttonSizeKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onButtonSizeChange.bind(this));\n }\n }\n\n /**\n * @memberof ButtonSizePlugin\n * @param {Event} e\n */\n onButtonSizeChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(ButtonSizePlugin.buttonSizeKey, this.currentValue);\n }\n\n /**\n * Get ButtonSize Key\n * @readonly\n * @static\n * @memberof ButtonSizePlugin\n * @returns {string}\n */\n static get buttonSizeKey() {\n return 'buttonSize';\n }\n}\n","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class ControlSensitivityPlugin\n * @property {object[]} sliders an array of all slider objects attached to ControlSensitivityPlugin\n * @extends {SliderPlugin}\n */\nexport class ControlSensitivityPlugin extends SliderPlugin {\n /**\n * Creates an instance of ControlSensitivityPlugin.\n * @param {string | HTMLElement} sensitivitySliders\n * @param {number} [defaultSensitivity=0.5]\n * @memberof ControlSensitivityPlugin\n */\n constructor(sensitivitySliders, { defaultSensitivity = 0.5 } = {}) {\n super(sensitivitySliders, 'Control-Sensitivity-Plugin', {defaultValue: defaultSensitivity, featureName: ControlSensitivityPlugin.controlSensitivityKey});\n\n this.sendAllProperties = this.sendAllProperties.bind(this);\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onControlSensitivityChange.bind(this));\n }\n }\n\n /**\n * @memberof ControlSensitivityPlugin\n * @param {Event} e\n */\n onControlSensitivityChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(ControlSensitivityPlugin.controlSensitivityKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof ControlSensitivityPlugin\n * @returns {string}\n */\n static get controlSensitivityKey() {\n return 'controlSensitivity';\n }\n}\n","import { BasePlugin } from '../base-plugins';\nimport { SavedData } from '../SavedData';\n\n/**\n * @export\n * @class KeyboardMapPlugin\n * @extends {BasePlugin}\n */\nexport class KeyboardMapPlugin extends BasePlugin {\n /**\n * Creates an instance of KeyboardMapPlugin.\n * @param {string | HTMLElement} keyContainers div or similar container element that will contain the re-mappable keys\n * @param {string} [customClassName='springrollContainerKeyBinding__button'] A custom class name that will be applied to the container element\n * @memberof KeyboardMapPlugin\n */\n constructor(keyContainers, {customClassName = 'springrollContainerKeyBinding__button'} = {}) {\n super('Keyboard-Map-Plugin');\n\n this.sendAllProperties = this.sendAllProperties.bind(this);\n //Allows for removing and reading event listeners\n this.bindKey = this.bindKey.bind(this);\n this.onKeyButtonClick = this.onKeyButtonClick.bind(this);\n\n this.className = customClassName;\n\n this.keyContainers =\n keyContainers instanceof HTMLElement\n ? [keyContainers]\n : document.querySelectorAll(keyContainers);\n\n this.keyBindings = {};\n this.buttons = [];\n this.activekeyButton;\n\n this.sendAfterFetch = false;\n this.canEmit = false;\n\n this.keyContainersLength = this.keyContainers.length;\n\n if (this.keyContainersLength <= 0) {\n this.warn('plugin was not provided any valid key binding container elements');\n return;\n }\n }\n\n /**\n * @memberof KeyboardMapPlugin\n * @param {MouseEvent} e\n * Sets up a rebinding of a key once a key button is clicked.\n */\n onKeyButtonClick(e) {\n\n for (let i = 0, l = this.buttons.length; i < l; i++) {\n for (let j = 0; j < this.buttons[i].length; j++) {\n this.buttons[i][j].removeEventListener('click', this.onKeyButtonClick);\n }\n }\n this.activekeyButton = e.target;\n this.activekeyButton.textContent = 'Press Key to Map';\n document.addEventListener('keyup', this.bindKey);\n }\n\n /**\n * @memberof KeyboardMapPlugin\n * @param {KeyboardEvent} key\n * Actually updates the key binding and sends the value. Also\n * replicates the new key across the other keycontainers\n */\n bindKey(key) {\n key.preventDefault(); //prevents space bar from retriggering a keybinding when set.\n\n for (const actionName in this.keyBindings) {\n if (this.keyBindings[actionName].currentKey === key.key.toLowerCase()) {\n this.warn(`${key.key} is already bound`);\n return;\n }\n }\n\n this.activekeyButton.textContent = key.key === ' ' ? 'space' : key.key;\n for (let i = 0; i < this.buttons.length; i++) {\n for (let j = 0; j < this.buttons[i].length; j++) {\n if (this.buttons[i][j].value === this.activekeyButton.value) {\n this.buttons[i][j].textContent = this.activekeyButton.textContent;\n }\n }\n }\n\n this.keyBindings[this.activekeyButton.value].currentKey = key.key;\n\n document.removeEventListener('keyup', this.bindKey);\n for (let i = 0, l = this.buttons.length; i < l; i++) {\n for (let j = 0; j < this.buttons[i].length; j++) {\n this.buttons[i][j].addEventListener('click', this.onKeyButtonClick);\n }\n }\n\n this.sendProperty(KeyboardMapPlugin.keyBindingKey, this.keyBindings);\n }\n\n /**\n * @memberof KeyboardMapPlugin\n */\n init() {\n this.client.on(\n 'features',\n function(features) {\n if (!features.data) {\n return;\n }\n\n if (!features.data.keyBinding) {\n return;\n }\n\n const data = SavedData.read(KeyboardMapPlugin.keyBindingKey);\n\n this.client.fetch('keyBindings', result => {\n for (let j = 0; j < this.keyContainersLength; j++) {\n this.buttons[j] = [];\n\n for (let i = 0, l = result.data.length; i < l; i++) {\n let currentKey = result.data[i].defaultKey.toLowerCase();\n if (data) {\n if (data[result.data[i].actionName]) {\n currentKey = data[result.data[i].actionName].currentKey;\n }\n }\n //only needs to be set up once\n if (j === 0) {\n this.keyBindings[result.data[i].actionName] = {\n defaultKey: result.data[i].defaultKey.toLowerCase(),\n currentKey: currentKey,\n };\n }\n\n this.buttons[j][i] = document.createElement('button');\n this.buttons[j][i].classList.add(this.className);\n this.buttons[j][i].id = `keyBoardMapPlugin-${result.data[i].actionName}`;\n this.buttons[j][i].value = result.data[i].actionName;\n this.buttons[j][i].textContent = result.data[i].defaultKey;\n this.buttons[j][i].addEventListener('click', this.onKeyButtonClick);\n\n this.label = document.createElement('label');\n this.label.htmlFor = `keyBoardMapPlugin-${result.data[i].actionName}`;\n this.label.textContent = result.data[i].actionName;\n\n this.keyContainers[j].appendChild(this.label);\n this.keyContainers[j].appendChild(this.buttons[j][i]);\n }\n }\n\n this.canEmit = true;\n if (this.sendAfterFetch) {\n this.sendAllProperties();\n }\n });\n }.bind(this)\n );\n }\n\n /**\n*\n* Sends initial caption properties to the application\n* @memberof KeyboardMapPlugin\n*/\n sendAllProperties() {\n if (this.canEmit) {\n this.sendProperty(KeyboardMapPlugin.keyBindingKey, this.keyBindings);\n } else {\n this.sendAfterFetch = true;\n }\n }\n\n /**\n * @readonly\n * @static\n * @memberof KeyboardMapPlugin\n * @returns {string}\n */\n static get keyBindingKey() {\n return 'keyBinding';\n }\n}\n","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class LayersPlugin\n * @property {object[]} sliders an array of all slider objects attached to LayersPlugin\n * @extends {SliderPlugin}\n */\nexport class LayersPlugin extends SliderPlugin {\n /**\n * Creates an instance of KeyboardMapPlugin.\n * @param {string | HTMLInputElement} layersSliders selector string or HTML Element for the input(s)\n * @param {number} [defaultValue=0] The default value for the slider\n */\n constructor(layersSliders, { defaultValue = 0 } = {}) {\n super(layersSliders, 'Layer-Plugin', { defaultValue: defaultValue, featureName: LayersPlugin.layersSliderKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onLayerValueChange.bind(this));\n }\n }\n\n /**\n * @memberof LayersPlugin\n * @param {Event} e\n */\n onLayerValueChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(LayersPlugin.layersSliderKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof LayersPlugin\n * @returns {string}\n */\n static get layersSliderKey() {\n return 'removableLayers';\n }\n}\n","import { RadioGroupPlugin } from '../base-plugins';\nimport { SavedData } from '../SavedData';\n\nconst SUPPORTED_POSITIONS = ['top', 'bottom', 'left', 'right'];\n\n/**\n * @export\n * @class HUDPlugin\n * @extends {BasePlugin}\n */\nexport class HUDPlugin extends RadioGroupPlugin {\n /**\n * Creates an instance of HUDPlugin\n * @param {string} hudSelectorRadios selector string or for the input(s)\n * @param {string[]} [defaultValue='top'] default value for the HUD position\n * @memberof HUDPlugin\n */\n constructor(hudSelectorRadios, { defaultValue = SUPPORTED_POSITIONS[0] } = {}) {\n super(hudSelectorRadios, 'HUD-Layout-Plugin', {supportedValues: SUPPORTED_POSITIONS, initialValue: defaultValue, controlName: 'Hud Selector', featureName: HUDPlugin.hudPositionKey, radioCount: SUPPORTED_POSITIONS.length});\n\n this.sendAllProperties = this.sendAllProperties.bind(this);\n this.sendAfterFetch = false;\n this.canEmit = false;\n this.positions = [];\n\n if (this.radioGroupsLength <= 0) {\n this.warn('Plugin was not provided any valid HTML elements');\n }\n\n for (let i = 0; i < this.radioGroupsLength; i++) {\n this.radioGroups[i].enableRadioEvents(this.onHUDSelect.bind(this));\n }\n\n }\n\n /**\n * @memberof HUDPlugin\n * @param {Event} e\n */\n onHUDSelect(e) {\n //return if a radio button is programattically clicked when it is hidden\n if (!this.positions.includes(e.target.value)) {\n for (let i = 0; i < this.radioGroupsLength; i++) {\n this.radioGroups[i].radioGroup[this.currentValue].checked = true;\n }\n return;\n }\n\n this.currentValue = e.target.value;\n\n this.sendProperty(\n HUDPlugin.hudPositionKey,\n this.currentValue\n );\n }\n\n /**\n * @memberof HUDPlugin\n */\n init() {\n this.client.on(\n 'features',\n function(features) {\n if (!features.data || !features.data.hudPosition) {\n return;\n }\n\n if (this.radioGroupsLength <= 0) {\n return;\n }\n //get the game's reported HUD positions to build out positions array\n this.client.fetch('hudPositions', result => {\n for (let i = 0, l = result.data.length; i < l; i++) {\n if (\n !SUPPORTED_POSITIONS.includes(result.data[i].toLowerCase())\n ) {\n this.warn(`${result.data[i]} is an invalid position name`);\n continue;\n }\n\n this.positions.push(result.data[i].toLowerCase());\n }\n\n for (let i = 0; i < this.radioGroupsLength; i++) {\n //Hide any radio buttons that aren't in the game's position list.\n for (const key in this.radioGroups[i].radioGroup) {\n this.radioGroups[i].radioGroup[key].style.display = this.positions.includes(this.radioGroups[i].radioGroup[key].value) ? '' : 'none';\n }\n }\n\n this.canEmit = true;\n if (this.sendAfterFetch) {\n this.sendAllProperties();\n }\n });\n\n }.bind(this)\n );\n }\n\n /**\n * @memberof HUDPlugin\n */\n start() {\n const data = SavedData.read(HUDPlugin.hudPositionKey);\n\n if (SUPPORTED_POSITIONS.includes(data)) {\n this.currentValue = data;\n }\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * Sends initial HUD position properties to the application\n * @memberof HUDPlugin\n */\n sendAllProperties() {\n if (this.canEmit) {\n this.sendProperty(HUDPlugin.hudPositionKey, this.currentValue);\n } else {\n this.sendAfterFetch = true;\n }\n }\n\n /**\n * @static\n * @readonly\n * @memberof HUDPlugin\n * @returns {string}\n */\n static get hudPositionKey() {\n return 'hudPosition';\n }\n}\n","import { RadioGroupPlugin } from '../base-plugins';\nimport { SavedData } from '../SavedData';\n\nconst COLOR_BLIND_TYPES = [\n 'none',\n 'protanopia',\n 'deuteranopia',\n 'tritanopia',\n 'achromatopsia'\n];\n\n/**\n * @export\n * @class ColorVisionPlugin\n * @property {boolean} sendAfterFetch Whether to send the properties after fetch or not\n * @property {boolean} canEmit Whether or not the plugin can send properties\n * @property {string} colors \n * @extends {RadioGroupPlugin}\n */\nexport class ColorVisionPlugin extends RadioGroupPlugin {\n /**\n * Creates an instance of ColorVisionPlugin.\n * @param {string | HTMLElement} colorSelects\n * @param {string } [defaultValue] Default selected value\n * @memberof ColorVision\n */\n constructor(colorVisionRadios, { defaultValue = COLOR_BLIND_TYPES[0] } = {}) {\n super(colorVisionRadios, 'Color-Filter-Plugin', {supportedValues: COLOR_BLIND_TYPES, initialValue: defaultValue, controlName: 'Color Vision Selector', featureName: ColorVisionPlugin.colorVisionKey, radioCount: COLOR_BLIND_TYPES.length});\n\n this.sendAllProperties = this.sendAllProperties.bind(this);\n this.sendAfterFetch = false;\n this.canEmit = false;\n this.colors = [];\n\n if (this.radioGroupsLength <= 0) {\n this.warn('Plugin was not provided any valid HTML elements');\n return;\n }\n\n for (let i = 0; i < this.radioGroupsLength; i++) {\n this.radioGroups[i].enableRadioEvents(this.onColorChange.bind(this));\n }\n }\n\n /**\n * @memberof ColorVisionPlugin\n * @param {Event} e\n */\n onColorChange(e) {\n //return if a radio button is programmatically clicked when it is hidden from the user\n if (!this.colors.includes(e.target.value) ) {\n for (let i = 0; i < this.radioGroupsLength; i++) {\n this.radioGroups[i].radioGroup[this.currentValue].checked = true;\n }\n return;\n }\n this.currentValue = e.target.value;\n\n this.sendProperty(\n ColorVisionPlugin.colorVisionKey,\n this.currentValue\n );\n }\n\n /**\n * @memberof ColorVisionPlugin\n */\n init() {\n this.client.on(\n 'features',\n function(features) {\n if (!features.data || !features.data.colorVision) {\n return;\n }\n if (this.colorDropdownsLength <= 0) {\n return;\n }\n\n //get the game's reported colors to build out accepted filters array\n this.client.fetch('colorFilters', result => {\n for (let i = 0, l = result.data.length; i < l; i++) {\n if (\n !COLOR_BLIND_TYPES.includes(result.data[i].toLowerCase())\n ) {\n this.warn(`${result.data[i]} is an invalid color vision name`);\n continue;\n }\n this.colors.push(result.data[i].toLowerCase());\n }\n\n this.defaultValue = this.colors[0];\n\n for (let i = 0; i < this.radioGroupsLength; i++) {\n //Hide any radio buttons that aren't in the game's filter list.\n for (const key in this.radioGroups[i].radioGroup) {\n this.radioGroups[i].radioGroup[key].style.display = this.colors.includes(this.radioGroups[i].radioGroup[key].value.toLowerCase()) ? '' : 'none';\n }\n }\n\n this.canEmit = true;\n\n if (this.sendAfterFetch) {\n this.sendAllProperties();\n }\n });\n\n }.bind(this)\n );\n }\n\n /**\n * @memberof ColorVisionPlugin\n */\n start() {\n const data = SavedData.read(ColorVisionPlugin.colorVisionKey);\n\n if (COLOR_BLIND_TYPES.includes(data)) {\n this.currentValue = data;\n }\n\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n*\n* Sends initial caption properties to the application\n* @memberof ColorVisionPlugin\n*/\n sendAllProperties() {\n if (this.canEmit) {\n this.sendProperty(ColorVisionPlugin.colorVisionKey, this.currentValue);\n } else {\n this.sendAfterFetch = true;\n }\n }\n\n /**\n * Get the ColorVisionPlugin key\n * @readonly\n * @static\n * @memberof ColorVisionPlugin\n * @returns {string}\n */\n static get colorVisionKey() {\n return 'colorVision';\n }\n\n}\n","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class HitAreaScalePlugin\n * @property {object[]} sliders an array of all slider objects attached to ControlSensitivityPlugin\n * @extends {SliderPlugin}\n * \n */\nexport class HitAreaScalePlugin extends SliderPlugin {\n /**\n * Creates an instance of HitAreaScalePlugin.\n * @param {string | HTMLElement} hitAreaScaleSliders The selector or HTMLElement for the slider\n * @param {number} [defaultHitAreaScale=0.5] The default hit area scale value\n * @memberof HitAreaScalePlugin\n */\n constructor(hitAreaScaleSliders, { defaultHitAreaScale = 0.5 } = {}) {\n super(hitAreaScaleSliders, 'Hit-Area-Scale-Plugin', { defaultValue: defaultHitAreaScale, featureName: HitAreaScalePlugin.hitAreaScaleKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onHitAreaScaleChange.bind(this));\n }\n }\n\n /**\n * @memberof HitAreaScalePlugin\n * @param {Event} target\n * @param {string} control\n */\n onHitAreaScaleChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(HitAreaScalePlugin.hitAreaScaleKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof HitAreaScalePlugin\n * @returns {string}\n */\n static get hitAreaScaleKey() {\n return 'hitAreaScale';\n }\n}\n","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class DragThresholdScalePlugin\n * @extends {SliderPlugin}\n */\nexport class DragThresholdScalePlugin extends SliderPlugin {\n /**\n * Creates an instance of DragThresholdScalePlugin.\n * @param {string | HTMLElement} params.dragThresholdScaleSliders\n * @param {number} [defaultDragThresholdScale=0.5]\n * @memberof DragThresholdScalePlugin\n */\n constructor(dragThresholdScaleSliders, { defaultDragThresholdScale = 0.5 } = {}) {\n super(dragThresholdScaleSliders, 'Drag-Threshold-Scale-Plugin', { defaultValue: defaultDragThresholdScale, featureName: DragThresholdScalePlugin.dragThresholdScaleKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onDragThresholdScaleChange.bind(this));\n }\n }\n\n /**\n * @memberof DragThresholdScalePlugin\n * @param {Event} target\n * @param {string} control\n */\n onDragThresholdScaleChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(DragThresholdScalePlugin.dragThresholdScaleKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof DragThresholdScalePlugin\n * @returns {string}\n */\n static get dragThresholdScaleKey() {\n return 'dragThresholdScale';\n }\n}","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class HealthPlugin\n * @extends {SliderPlugin}\n */\nexport class HealthPlugin extends SliderPlugin {\n /**\n * Creates an instance of HealthPlugin.\n * @param {string | HTMLElement} healthSliders\n * @param {number} [defaultHealth=0.5]\n * @memberof HealthPlugin\n */\n constructor(healthSliders, {defaultHealth = 0.5 } = {}) {\n super(healthSliders, 'Health-Scale-Plugin', { defaultValue:defaultHealth, featureName: HealthPlugin.healthKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onHealthChange.bind(this));\n }\n }\n\n /**\n * @memberof HealthPlugin\n * @param {Event} e\n */\n onHealthChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(HealthPlugin.healthKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof HealthPlugin\n * @returns {string}\n */\n static get healthKey() {\n return 'health';\n }\n}","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class ObjectCountPlugin\n * @property {object[]} sliders an array of all slider objects attached to ObjectCountPlugin\n * @extends {SliderPlugin}\n */\nexport class ObjectCountPlugin extends SliderPlugin {\n /**\n * Creates an instance of ObjectCountPlugin.\n * @param {string | HTMLElement} objectCountSliders selector string or HTML Element for the input(s)\n * @param {number} [defaultObjectCount=0.5] The default value for the slider\n * @memberof ObjectCountPlugin\n */\n constructor(objectCountSliders, { defaultObjectCount = 0.5 } = {}) {\n super(objectCountSliders, 'Object-Count-Plugin', { defaultValue: defaultObjectCount, featureName: ObjectCountPlugin.objectCountKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onObjectCountChange.bind(this));\n }\n }\n\n /**\n * @memberof ObjectCountPlugin\n * @param {Event} target\n * @param {string} control\n */\n onObjectCountChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(ObjectCountPlugin.objectCountKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof ObjectCountPlugin\n * @returns {string}\n */\n static get objectCountKey() {\n return 'objectCount';\n }\n}","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class CompletionPercentagePlugin\n * @property {object[]} sliders an array of all slider objects attached to CompletePercentagePlugin\n * @extends {SliderPlugin}\n */\nexport class CompletionPercentagePlugin extends SliderPlugin {\n /**\n * Creates an instance of CompletionPercentagePlugin.\n * @param {string | HTMLElement} completionPercentageSliders The selector or HTMLSliderElement of the slider\n * @param {number} [defaultCompletionPercentage=0.5] Default selected completion percentage\n * @memberof CompletionPercentagePlugin\n */\n constructor(completionPercentageSliders, { defaultCompletionPercentage = 0.5 } = {}) {\n super(completionPercentageSliders, 'Completion-Percentage-Plugin', { defaultValue: defaultCompletionPercentage, featureName: CompletionPercentagePlugin.completionPercentageKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onCompletionPercentageChange.bind(this));\n }\n }\n\n /**\n * @memberof CompletionPercentagePlugin\n * @param {Event} e\n */\n onCompletionPercentageChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(CompletionPercentagePlugin.completionPercentageKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof CompletionPercentagePlugin\n * @returns {string}\n */\n static get completionPercentageKey() {\n return 'completionPercentage';\n }\n}","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class SpeedScalePlugin\n * @extends {SliderPlugin}\n */\nexport class SpeedScalePlugin extends SliderPlugin {\n /**\n *Creates an instance of SpeedScalePlugin.\n * @param {string | HTMLElement} speedScaleSliders selector string or HTML Element for the input(s)\n * @param {number} [defaultSpeedScale=0.5] The default value for the speed scale slider\n * @memberof SpeedScalePlugin\n */\n constructor(speedScaleSliders, { defaultSpeedScale = 0.5 } = {}) {\n super(speedScaleSliders, 'Speed-Scale-Plugin', { defaultValue: defaultSpeedScale, featureName: SpeedScalePlugin.speedScaleKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onSpeedScaleChange.bind(this));\n }\n }\n\n /**\n * @memberof SpeedScalePlugin\n * @param {Event} e\n */\n onSpeedScaleChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(SpeedScalePlugin.speedScaleKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof SpeedScalePlugin\n * @return {string}\n */\n static get speedScaleKey() {\n return 'speedScale';\n }\n}","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class TimersScalePlugin\n * @property {number} currentValue\n * @extends {SliderPlugin}\n */\nexport class TimersScalePlugin extends SliderPlugin {\n /**\n * Creates an instance of TimersScalePlugin.\n * @param {string | HTMLElement} timersScaleSliders selector string or HTML Element for the input(s)\n * @param {number} [defaultTimersScale=0.5] Default Value for the timer scale slider\n * @memberof TimersScalePlugin\n */\n constructor(timersScaleSliders, { defaultTimersScale = 0.5 } = {}) {\n super(timersScaleSliders, 'Timers-Scale-Plugin', { defaultValue: defaultTimersScale, featureName: TimersScalePlugin.timersScaleKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onTimersScaleChange.bind(this));\n }\n }\n\n /**\n * @memberof TimersScalePlugin\n * @param {Event} e\n */\n onTimersScaleChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(TimersScalePlugin.timersScaleKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof TimersScalePlugin\n * @return {string}\n */\n static get timersScaleKey() {\n return 'timersScale';\n }\n}","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class InputCountPlugin\n * @property {object[]} sliders an array of all slider objects attached to InputCountPlugin\n * @extends {SliderPlugin}\n */\nexport class InputCountPlugin extends SliderPlugin {\n /**\n * Creates an instance of InputCountPlugin.\n * @param {string | HTMLElement} inputCountSliders selector string or HTML Element for the input(s)\n * @param {number} [defaultInputCount=0.5] The default value for the slider\n * @memberof InputCountPlugin\n */\n constructor(inputCountSliders, { defaultInputCount = 0.5 } = {}) {\n super(inputCountSliders, 'Input-Count-Plugin', { defaultValue: defaultInputCount, featureName: InputCountPlugin.inputCountKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onInputCountChange.bind(this));\n }\n }\n\n /**\n * @memberof InputCountPlugin\n * @param {Event} target\n * @param {string} control\n */\n onInputCountChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(InputCountPlugin.inputCountKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof InputCountPlugin\n * @returns {string}\n */\n static get inputCountKey() {\n return 'inputCount';\n }\n}","import { ButtonPlugin } from '../base-plugins/ButtonPlugin';\nimport { Button } from '../ui-elements';\n\n/**\n * A Springroll plugin to easily set up togglable fullscreen\n */\nexport class FullScreenPlugin extends ButtonPlugin {\n \n /**\n * Creates an instance of FullscreenPlugin\n * \n * @param {string | string[]} buttonSelector The selector for the element to be made fullscreen\n */\n constructor(buttonSelector) {\n super({\n name: FullScreenPlugin.fullscreenKey\n }); \n\n this._toggleButtons = [];\n this.iFrame = null;\n\n this.sendAllProperties = this.sendAllProperties.bind(this);\n\n if (Array.isArray(buttonSelector)) {\n // If input is an array, join the selectors into one string\n buttonSelector = buttonSelector.join(', ');\n }\n\n console.log(buttonSelector);\n \n this.toggleButton = document.querySelectorAll(buttonSelector);\n\n\n this.toggleButton.forEach((button) => {\n this._toggleButtons.push(new Button({\n button: button,\n onClick: this.toggleFullScreen.bind(this),\n channel: FullScreenPlugin.fullscreenKey\n }));\n });\n \n\n document.addEventListener('fullscreenchange', () => {\n this.sendAllProperties();\n \n this._toggleButtons.forEach((button) => {\n button.button.classList.toggle('--fullScreen');\n });\n\n });\n }\n\n /**\n * @memberof FullScreenPlugin\n */\n init({ iframe }) {\n this.iFrame = iframe;\n // Handle the features request\n this.client.on(\n 'features',\n function($event) {\n for (let i = 0; i < this.fullscreenElement; i ++) {\n this._toggleButtons[i].displayButton($event.data);\n }\n\n }.bind(this)\n );\n }\n /**\n * @memberof FullScreenPlugin\n */\n start() {\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * Sends initial fullScreen properties to the application\n * @memberof FullScreenTogglePlugin\n */\n sendAllProperties() {\n this.sendProperty(FullScreenPlugin.fullscreenKey, document.fullscreenElement != null ? 'true' : 'false');\n }\n\n /**\n * Toggles fullscreen on this.iFrame. Must be from a user generated event\n */\n toggleFullScreen() {\n if (!document.fullscreenElement) {\n this.iFrame.requestFullscreen().then(() => {\n this.sendAllProperties();\n }).catch((err) => {\n console.log(err);\n });\n } else {\n document.exitFullscreen();\n this.sendAllProperties();\n }\n }\n\n /**\n * Returns true if there is a fullscreen element and false if not\n * @returns { boolean } \n */\n get isFullScreen() {\n return (document.fullscreenElement || // basic\n document.webkitIsFullscreen || //Webkit browsers\n document.mozFullScreen ) // Firefox\n != true; // Ensure boolean output\n }\n\n /** \n * @readonly\n * @static\n * @memberof FullscreenPlugin\n */\n static get fullscreenKey() {\n return 'fullScreen';\n }\n}"],"names":["global","globalThis","self","support","Symbol","Blob","e","viewClasses","isArrayBufferView","ArrayBuffer","isView","obj","indexOf","Object","prototype","toString","call","normalizeName","name","String","test","TypeError","toLowerCase","normalizeValue","value","iteratorFor","items","iterator","next","shift","done","undefined","Headers","headers","this","map","forEach","append","Array","isArray","header","getOwnPropertyNames","consumed","body","bodyUsed","Promise","reject","fileReaderReady","reader","resolve","onload","result","onerror","error","readBlobAsArrayBuffer","blob","FileReader","promise","readAsArrayBuffer","bufferClone","buf","slice","view","Uint8Array","byteLength","set","buffer","Body","_initBody","_bodyInit","_bodyText","isPrototypeOf","_bodyBlob","FormData","_bodyFormData","URLSearchParams","DataView","_bodyArrayBuffer","get","type","rejected","Error","arrayBuffer","isConsumed","byteOffset","then","text","readAsText","readBlobAsText","chars","length","i","fromCharCode","join","readArrayBufferAsText","formData","decode","json","JSON","parse","oldValue","has","hasOwnProperty","callback","thisArg","keys","push","values","entries","methods","Request","input","options","url","credentials","method","mode","signal","upcased","toUpperCase","normalizeMethod","referrer","cache","reParamSearch","replace","Date","getTime","form","trim","split","bytes","decodeURIComponent","Response","bodyInit","status","ok","statusText","clone","response","redirectStatuses","redirect","RangeError","location","DOMException","err","message","stack","create","constructor","fetch","init","request","aborted","xhr","XMLHttpRequest","abortXhr","abort","rawHeaders","getAllResponseHeaders","substr","line","parts","key","responseURL","responseText","setTimeout","ontimeout","onabort","open","href","fixUrl","withCredentials","responseType","setRequestHeader","addEventListener","onreadystatechange","readyState","removeEventListener","send","polyfill","check","it","Math","window","Function","domIterables","CSSRuleList","CSSStyleDeclaration","CSSValueList","ClientRectList","DOMRectList","DOMStringList","DOMTokenList","DataTransferItemList","FileList","HTMLAllCollection","HTMLCollection","HTMLFormElement","HTMLSelectElement","MediaList","MimeTypeArray","NamedNodeMap","NodeList","PaintRequestList","Plugin","PluginArray","SVGLengthList","SVGNumberList","SVGPathSegList","SVGPointList","SVGStringList","SVGTransformList","SourceBufferList","StyleSheetList","TextTrackCueList","TextTrackList","TouchList","documentAll","document","all","documentAll_1","IS_HTMLDDA","require$$0","isCallable","argument","require$$1","isObject","EXISTS","createElement","documentCreateElement","classList","DOMTokenListPrototype","domTokenListPrototype","fails","exec","functionBindNative","bind","NATIVE_BIND","FunctionPrototype","uncurryThisWithBind","functionUncurryThis","fn","apply","arguments","uncurryThis","stringSlice","classofRaw","functionUncurryThisClause","$String","tryToString","$TypeError","aCallable","require$$2","functionBindContext","that","classof","$Object","indexedObject","propertyIsEnumerable","isNullOrUndefined","requireObjectCoercible","toObject","ceil","floor","mathTrunc","trunc","x","n","toIntegerOrInfinity","number","min","toLength","lengthOfArrayLike","defineProperty","defineGlobalProperty","configurable","writable","SHARED","sharedStore","store","sharedModule","version","copyright","license","source","match","hasOwnProperty_1","hasOwn","id","postfix","random","uid","engineUserAgent","navigator","userAgent","process","Deno","versions","v8","engineV8Version","V8_VERSION","symbolConstructorDetection","getOwnPropertySymbols","symbol","sham","useSymbolAsUid","shared","require$$3","NATIVE_SYMBOL","require$$4","USE_SYMBOL_AS_UID","require$$5","WellKnownSymbolsStore","createWellKnownSymbol","withoutSetter","wellKnownSymbol","toStringTagSupport","TO_STRING_TAG_SUPPORT","TO_STRING_TAG","CORRECT_ARGUMENTS","O","tag","tryGet","callee","getBuiltIn","namespace","functionToString","inspectSource","noop","empty","construct","constructorRegExp","INCORRECT_TO_STRING","isConstructorModern","isConstructorLegacy","isConstructor","called","SPECIES","$Array","arraySpeciesConstructor","originalArray","C","arraySpeciesCreate","IndexedObject","createMethod","TYPE","IS_MAP","IS_FILTER","IS_SOME","IS_EVERY","IS_FIND_INDEX","IS_FILTER_REJECT","NO_HOLES","$this","callbackfn","specificCreate","boundFunction","index","target","arrayIteration","filter","some","every","find","findIndex","filterReject","arrayMethodIsStrict","METHOD_NAME","$forEach","arrayForEach","descriptors","ie8DomDefine","a","v8PrototypeDefineBug","anObject","functionCall","objectIsPrototypeOf","isSymbol","$Symbol","getMethod","V","P","func","ordinaryToPrimitive","pref","val","valueOf","TO_PRIMITIVE","toPrimitive","exoticToPrim","toPropertyKey","DESCRIPTORS","IE8_DOM_DEFINE","V8_PROTOTYPE_DEFINE_BUG","$defineProperty","$getOwnPropertyDescriptor","getOwnPropertyDescriptor","ENUMERABLE","CONFIGURABLE","WRITABLE","objectDefineProperty","f","Attributes","current","enumerable","createPropertyDescriptor","bitmap","definePropertyModule","createNonEnumerableProperty","object","DOMIterables","handlePrototype","CollectionPrototype","COLLECTION_NAME","toIndexedObject","max","toAbsoluteIndex","integer","IS_INCLUDES","el","fromIndex","arrayIncludes","includes","hiddenKeys","objectKeysInternal","names","enumBugKeys","internalObjectKeys","objectKeys","objectDefineProperties","defineProperties","Properties","props","activeXDocument","html","sharedKey","definePropertiesModule","PROTOTYPE","SCRIPT","IE_PROTO","require$$6","EmptyConstructor","scriptTag","content","LT","NullProtoObjectViaActiveX","write","close","temp","parentWindow","NullProtoObject","ActiveXObject","iframeDocument","iframe","JS","domain","style","display","appendChild","src","contentWindow","F","objectCreate","UNSCOPABLES","ArrayPrototype","addToUnscopables","iterators","WeakMap","NATIVE_WEAK_MAP","require$$7","OBJECT_ALREADY_INITIALIZED","state","metadata","facade","STATE","internalState","enforce","getterFor","$propertyIsEnumerable","NASHORN_BUG","objectPropertyIsEnumerable","descriptor","propertyIsEnumerableModule","objectGetOwnPropertyDescriptor","getDescriptor","functionName","PROPER","CONFIGURABLE_FUNCTION_NAME","enforceInternalState","getInternalState","CONFIGURABLE_LENGTH","TEMPLATE","makeBuiltIn","makeBuiltInModule","exports","getter","setter","arity","defineBuiltIn","simple","unsafe","nonConfigurable","nonWritable","concat","objectGetOwnPropertyNames","objectGetOwnPropertySymbols","IteratorPrototype","PrototypeOfArrayIteratorPrototype","arrayIterator","getOwnPropertyNamesModule","getOwnPropertySymbolsModule","ownKeys","getOwnPropertyDescriptorModule","replacement","isForced","feature","detection","data","normalize","POLYFILL","NATIVE","string","isForced_1","copyConstructorProperties","exceptions","_export","targetProperty","sourceProperty","TARGET","GLOBAL","STATIC","stat","dontCallGetSet","forced","correctPrototypeGetter","getPrototypeOf","CORRECT_PROTOTYPE_GETTER","ObjectPrototype","objectGetPrototypeOf","ITERATOR","BUGGY_SAFARI_ITERATORS","NEW_ITERATOR_PROTOTYPE","iteratorsCore","setToStringTag","TAG","Iterators","returnThis","uncurryThisAccessor","aPossiblePrototype","objectSetPrototypeOf","setPrototypeOf","CORRECT_SETTER","proto","__proto__","$","createIteratorConstructor","IteratorConstructor","NAME","ENUMERABLE_NEXT","require$$8","require$$9","require$$10","require$$12","PROPER_FUNCTION_NAME","require$$13","require$$11","KEYS","VALUES","ENTRIES","iteratorDefine","Iterable","DEFAULT","IS_SET","FORCED","CurrentIteratorPrototype","KEY","getIterationMethod","KIND","defaultIterator","IterablePrototype","INCORRECT_VALUES_NAME","nativeIterator","anyNativeIterator","createIterResultObject","InternalStateModule","defineIterator","ARRAY_ITERATOR","setInternalState","es_array_iterator","iterated","kind","Arguments","ArrayIteratorMethods","ArrayValues","path","$indexOf","nativeIndexOf","NEGATIVE_ZERO","searchElement","createProperty","propertyKey","arrayMethodHasSpeciesSupport","array","foo","Boolean","doesNotExceedSafeInteger","IS_CONCAT_SPREADABLE","IS_CONCAT_SPREADABLE_SUPPORT","isConcatSpreadable","spreadable","arg","k","len","E","A","$assign","assign","objectAssign","b","B","alphabet","chr","T","argumentsLength","S","j","$location","defer","channel","port","engineIsNode","defineBuiltInAccessor","setSpecies","CONSTRUCTOR_NAME","Constructor","anInstance","Prototype","aConstructor","functionApply","Reflect","arraySlice","engineIsIos","validateArgumentsLength","passed","required","IS_IOS","IS_NODE","setImmediate","clear","clearImmediate","Dispatch","MessageChannel","counter","queue","ONREADYSTATECHANGE","run","runner","eventListener","event","globalPostMessageDefer","postMessage","protocol","host","handler","args","nextTick","now","port2","port1","onmessage","importScripts","removeChild","task","Queue","head","tail","add","item","entry","notify","toggle","node","engineIsIosPebble","Pebble","engineIsWebosWebkit","macrotask","IS_IOS_PEBBLE","IS_WEBOS_WEBKIT","MutationObserver","WebKitMutationObserver","queueMicrotaskDescriptor","microtask","flush","parent","exit","enter","createTextNode","observe","characterData","microtask_1","perform","promiseNativeConstructor","engineIsDeno","engineIsBrowser","NativePromiseConstructor","IS_BROWSER","IS_DENO","SUBCLASSING","NATIVE_PROMISE_REJECTION_EVENT","PromiseRejectionEvent","FORCED_PROMISE_CONSTRUCTOR","PROMISE_CONSTRUCTOR_SOURCE","GLOBAL_CORE_JS_PROMISE","FakePromise","promiseConstructorDetection","CONSTRUCTOR","REJECTION_EVENT","PromiseCapability","$$resolve","$$reject","newPromiseCapability","Internal","OwnPromiseCapability","nativeThen","speciesConstructor","defaultConstructor","require$$14","require$$15","hostReportErrors","console","require$$17","require$$18","require$$19","require$$20","newPromiseCapabilityModule","require$$22","PROMISE","require$$21","NATIVE_PROMISE_SUBCLASSING","getInternalPromiseState","NativePromisePrototype","PromiseConstructor","PromisePrototype","newGenericPromiseCapability","DISPATCH_EVENT","createEvent","dispatchEvent","UNHANDLED_REJECTION","isThenable","callReaction","reaction","exited","fail","rejection","onHandleUnhandled","isReject","notified","reactions","onUnhandled","reason","initEvent","isUnhandled","emit","unwrap","internalReject","internalResolve","wrapper","executor","onFulfilled","onRejected","PromiseWrapper","wrap","getIteratorMethod","isArrayIteratorMethod","getIterator","usingIterator","iteratorMethod","iteratorClose","innerResult","innerError","Result","stopped","ResultPrototype","iterate","iterable","unboundFunction","iterFn","step","AS_ENTRIES","IS_RECORD","IS_ITERATOR","INTERRUPTED","stop","condition","callFn","SAFE_CLOSING","iteratorWithReturn","return","from","checkCorrectnessOfIteration","SKIP_CLOSING","ITERATION_SUPPORT","promiseStaticsIncorrectIteration","capability","$promiseResolve","remaining","alreadyCalled","real","catch","race","r","promiseResolve","promiseCapability","re1","re2","regexpFlags","hasIndices","ignoreCase","multiline","dotAll","unicode","unicodeSets","sticky","$RegExp","RegExp","UNSUPPORTED_Y","re","lastIndex","MISSED_STICKY","regexpStickyHelpers","BROKEN_CARET","regexpUnsupportedDotAll","flags","regexpUnsupportedNcg","groups","stickyHelpers","UNSUPPORTED_DOT_ALL","UNSUPPORTED_NCG","nativeReplace","nativeExec","patchedExec","charAt","UPDATES_LAST_INDEX_WRONG","NPCG_INCLUDED","reCopy","group","str","raw","charsAdded","strCopy","Features","_classCallCheck","_createClass","canvas","getContext","Worker","msPointerEnabled","msMaxTouchPoints","pointerEnabled","maxTouchPoints","webaudio","htmlAudio","capabilities","basic","features","ui","sizes","touch","size","screen","width","height","xsmall","small","medium","large","xlarge","webgl","webAudio","charCodeAt","CONVERT_TO_STRING","pos","first","second","position","codeAt","STRING_ITERATOR","point","$filter","$find","FIND","SKIPS_HOLES","t","PluginManager","_ref","_ref$plugins","plugins","client","Bellhop","preloading","hidden","receive","hiddenSend","_this","preloads","_loop","preload","preloadFailed","warn","l","plugin","trigger","start","Container","_PluginManager","_inherits","_openRemote","_super","_createSuper","iframeOrSelector","_ref$context","context","HTMLIFrameElement","querySelector","backgroundColor","loaded","loading","release","_context","onLoading","_assertThisInitialized","onLoadDone","onEndGame","onLocalError","initClient","setupPlugins","remove","reset","$event","setAttribute","on","connect","userPath","_this2","_ref2","_ref2$singlePlay","singlePlay","_ref2$playOptions","playOptions","_internalOpen","playOptionsQueryString","encodeURIComponent","stringify","respond","_typeof","_asyncToGenerator","_regeneratorRuntime","mark","_callee","api","_ref3","_ref3$query","query","_ref3$singlePlay","_ref3$playOptions","_args","prev","sent","success","_x","newContext","PageVisibility","onFocus","onBlur","_onFocus","_onBlur","enabled","_enabled","onToggle","enable","$includes","whitespaces","ltrim","rtrim","stringTrim","end","$trim","forcedStringTrimMethod","regExpFlags","RegExpPrototype","$toString","getRegExpFlags","R","TO_STRING","nativeToString","NOT_GENERIC","INCORRECT_NAME","SavedData","dbName","db","dbVersion","additions","deletions","indexedDB","onsuccess","onupgradeneeded","stores","createObjectStore","storeName","indexes","transaction","objectStore","createIndex","indexName","keyPath","deleteIndex","deleteObjectStore","deleteDatabase","IDBOpen","tx","oncomplete","updateRequest","put","delete","_this3","readRequest","_this4","count","getAllKeys","getAll","dBOpenRequest","localStorage","removeItem","sessionStorage","setItem","getItem","BasePlugin","_preload","sendAllProperties","_","prop","disableSend","warningText","ButtonPlugin","_BasePlugin","sendMutes","container","button","HTMLButtonElement","muted","log","changeMutedState","sendProperty","htmlButton","HTMLElement","MATCH","isRegExp","notARegExp","correctIsRegExpLogic","regexp","error1","error2","stringIndexOf","searchString","$getOwnPropertyNames","fin","windowNames","objectGetOwnPropertyNamesExternal","getWindowNames","arrayBufferNonExtensible","isExtensible","ARRAY_BUFFER_NON_EXTENSIBLE","$isExtensible","objectIsExtensible","freezing","preventExtensions","getOwnPropertyNamesExternalModule","FREEZING","REQUIRED","METADATA","setMetadata","objectID","weakData","meta","internalMetadataModule","splice","fastKey","getWeakData","onFreeze","inheritIfRequired","dummy","Wrapper","NewTarget","NewTargetPrototype","InternalMetadataModule","defineBuiltIns","internalStateGetterFor","collectionStrong","getConstructor","ADDER","last","define","previous","getEntry","removed","setStrong","ITERATOR_NAME","getInternalCollectionState","getInternalIteratorState","common","IS_WEAK","NativeConstructor","NativePrototype","exported","fixMethod","uncurriedNativeMethod","instance","HASNT_CHAINING","THROWS_ON_PRIMITIVES","ACCEPT_ITERABLES","BUGGY_ZERO","$instance","collection","nativeKeys","$map","TO_ENTRIES","$values","RadioGroup","selector","controlName","_ref$featureName","featureName","defaultValue","pluginName","radioElements","querySelectorAll","radioGroup","_possibleConstructorReturn","radio","checked","valuesArray","_toConsumableArray","Set","callBack","RadioGroupPlugin","cssSelector","supportedValues","initialValue","radioCount","selectors","_currentValue","radioGroups","setUpRadios","radioGroupsLength","hasOnly","hasDuplicateValues","property","newValue","thisNumberValue","require$$16","NUMBER","NativeNumber","NumberPrototype","toNumber","third","radix","maxCode","digits","code","NaN","parseInt","NumberWrapper","primValue","toNumeric","Number","Slider","slider","control","_ref$min","_ref$max","_ref$step","_ref$defaultValue","sliderValue","setUpSlider","read","Button","onClick","className","SliderPlugin","_ref$minValue","minValue","_ref$maxValue","maxValue","sliders","setUpSliders","slidersLength","displaySlider","currentValue","sliderRange","DEFAULT_CAPTIONS_STYLES","background","color","edge","font","align","DEFAULT_COLOR_STYLE","INVERTED_COLOR_STYLE","FONT_SIZE_VALUES","COLOR_VALUES","ALIGN_VALUES","CaptionsStylePlugin","_ButtonPlugin","fontSizeRadios","colorRadios","alignmentRadios","_ref$defaultFontSize","defaultFontSize","_ref$defaultColor","defaultColor","_ref$defaultAlignment","defaultAlignment","captionsStyles","captionStyleKey","fontSizeSelectors","colorSelectors","alignmentSelectors","setUpFontSizeRadios","setUpColorRadios","setUpAlignmentRadios","_captionsMuted","alignmentRadiosLength","fontSizeRadiosLength","colorRadiosLength","enableRadioEvents","onColorChange","onAlignmentChange","onFontSizeChange","_step","_iterator","_createForOfIteratorHelper","radios","s","displayRadios","setCaptionsStyles","styles","_step2","_iterator2","resetState","_this5","CaptionsTogglePlugin","captionsButtons","_captionsButtons","captionsButtonClick","captionsButtonLength","displayButton","captionsToggleKey","captionsMuted","setMuteProp","captionsButtonsLength","enableButton","_setMuteProp","HelpPlugin","helpButtons","_helpButtons","helpButtonClick","paused","_helpEnabled","onPause","helpButtonsLength","helpEnabled","getAttribute","hints","PausePlugin","pauseButton","manageOwnVisibility","_manageOwnVisibility","_appBlurred","_containerBlurred","_focusTimer","_isManualPause","_keepFocus","_paused","focusApp","manageFocus","onKeepFocus","onPauseToggle","pauseDisabled","_pauseButton","pageVisibility","onContainerFocus","onContainerBlur","pauseKey","hasDom","focus","blur","blurApp","clearTimeout","pause","disablePause","buttons","SoundPlugin","soundButtons","musicButtons","sfxButtons","voButtons","soundSliders","musicSliders","sfxSliders","voSliders","saved","soundMutedKey","_soundMuted","_musicMuted","_voMuted","_sfxMuted","_musicMutedByUser","_soundMutedByUser","_sfxMutedByUser","_voMutedByUser","soundMutedEnabled","musicMutedEnabled","sfxMutedEnabled","voMutedEnabled","soundVolume","musicVolume","sfxVolume","voVolume","soundVolumeKey","newSlider","musicVolumeKey","sfxVolumeKey","voVolumeKey","onSoundToggle","soundKey","onMusicToggle","onSFXToggle","onVOToggle","soundSlidersLength","musicSlidersLength","sfxSlidersLength","voSlidersLength","soundButtonsLength","musicButtonsLength","sfxButtonsLength","voButtonsLength","enableSliderEvents","onSoundVolumeChange","onMusicVolumeChange","onSFXVolumeChange","onVOVolumeChange","soundMuted","musicMuted","sfxMuted","voMuted","_checkSoundMute","element","sound","music","sfx","vo","soundVolumeEnabled","musicVolumeEnabled","sfxVolumeEnabled","voVolumeEnabled","musicMutedKey","sfxMutedKey","voMutedKey","_soundButton","_musicButton","_sfxButton","_voButton","SavedDataHandler","savedData","record","IDBAdd","IDBUpdate","IDBRemove","IDBRead","IDBReadAll","IDBGetVersion","IDBClose","IDBDeleteDB","UserDataPlugin","onUserDataRemove","onUserDataRead","onUserDataWrite","onIDBAdd","onIDBOpen","onIDBRead","onIDBReadAll","onIDBRemove","onIDBUpdate","onIDBClose","onIDBGetVersion","onIDBDeleteDB","savedDataHandler","_ref3$data","_ref4","_ref4$data","_ref4$data$dbVersion","_ref4$data$additions","_ref4$data$deletions","_ref5","_this6","_ref5$data","_ref6","_this7","_ref6$data","_ref7","_this8","_ref7$data","_ref8","_this9","_ref8$data","_ref9","_this10","_ref9$data","_ref10","_this11","_ref11","_this12","_ref12","_this13","_ref12$data","PointerSizePlugin","_SliderPlugin","pointerSliders","_ref$defaultPointerSi","defaultPointerSize","pointerSizeKey","onPointerSizeChange","ButtonSizePlugin","buttonSliders","_ref$defaultButtonSiz","defaultButtonSize","buttonSizeKey","onButtonSizeChange","ControlSensitivityPlugin","sensitivitySliders","_ref$defaultSensitivi","defaultSensitivity","controlSensitivityKey","onControlSensitivityChange","KeyboardMapPlugin","keyContainers","_ref$customClassName","customClassName","bindKey","onKeyButtonClick","keyBindings","activekeyButton","sendAfterFetch","canEmit","keyContainersLength","textContent","actionName","preventDefault","currentKey","keyBindingKey","keyBinding","defaultKey","label","htmlFor","LayersPlugin","layersSliders","layersSliderKey","onLayerValueChange","SUPPORTED_POSITIONS","HUDPlugin","_RadioGroupPlugin","hudSelectorRadios","hudPositionKey","positions","onHUDSelect","hudPosition","COLOR_BLIND_TYPES","ColorVisionPlugin","colorVisionRadios","colorVisionKey","colors","colorVision","colorDropdownsLength","HitAreaScalePlugin","hitAreaScaleSliders","_ref$defaultHitAreaSc","defaultHitAreaScale","hitAreaScaleKey","onHitAreaScaleChange","DragThresholdScalePlugin","dragThresholdScaleSliders","_ref$defaultDragThres","defaultDragThresholdScale","dragThresholdScaleKey","onDragThresholdScaleChange","HealthPlugin","healthSliders","_ref$defaultHealth","defaultHealth","healthKey","onHealthChange","ObjectCountPlugin","objectCountSliders","_ref$defaultObjectCou","defaultObjectCount","objectCountKey","onObjectCountChange","CompletionPercentagePlugin","completionPercentageSliders","_ref$defaultCompletio","defaultCompletionPercentage","completionPercentageKey","onCompletionPercentageChange","SpeedScalePlugin","speedScaleSliders","_ref$defaultSpeedScal","defaultSpeedScale","speedScaleKey","onSpeedScaleChange","TimersScalePlugin","timersScaleSliders","_ref$defaultTimersSca","defaultTimersScale","timersScaleKey","onTimersScaleChange","InputCountPlugin","inputCountSliders","_ref$defaultInputCoun","defaultInputCount","inputCountKey","onInputCountChange","FullScreenPlugin","buttonSelector","fullscreenKey","_toggleButtons","iFrame","toggleButton","toggleFullScreen","fullscreenElement","exitFullscreen","requestFullscreen","webkitIsFullscreen","mozFullScreen"],"mappings":"AAAA,IAAIA,EACqB,oBAAfC,YAA8BA,YACrB,oBAATC,MAAwBA,WACb,IAAXF,GAA0BA,EAEhCG,EACY,oBAAqBH,EADjCG,EAEQ,WAAYH,GAAU,aAAcI,OAF5CD,EAIA,eAAgBH,GAChB,SAAUA,GACT,WACC,IAEE,OADA,IAAIK,MACG,CACR,CAAC,MAAOC,GACP,OAAO,CACT,CACF,CAPC,GANDH,EAcQ,aAAcH,EAdtBG,EAeW,gBAAiBH,EAOhC,GAAIG,EACF,IAAII,EAAc,CAChB,qBACA,sBACA,6BACA,sBACA,uBACA,sBACA,uBACA,wBACA,yBAGEC,EACFC,YAAYC,QACZ,SAASC,GACP,OAAOA,GAAOJ,EAAYK,QAAQC,OAAOC,UAAUC,SAASC,KAAKL,KAAS,GAIhF,SAASM,EAAcC,GAIrB,GAHoB,iBAATA,IACTA,EAAOC,OAAOD,IAEZ,6BAA6BE,KAAKF,IAAkB,KAATA,EAC7C,MAAM,IAAIG,UAAU,4CAA8CH,EAAO,KAE3E,OAAOA,EAAKI,aACd,CAEA,SAASC,EAAeC,GAItB,MAHqB,iBAAVA,IACTA,EAAQL,OAAOK,IAEVA,CACT,CAGA,SAASC,EAAYC,GACnB,IAAIC,EAAW,CACbC,KAAM,WACJ,IAAIJ,EAAQE,EAAMG,QAClB,MAAO,CAACC,UAAgBC,IAAVP,EAAqBA,MAAOA,EAC5C,GASF,OANIrB,IACFwB,EAASvB,OAAOuB,UAAY,WAC1B,OAAOA,IAIJA,CACT,CAEO,SAASK,EAAQC,GACtBC,KAAKC,IAAM,GAEPF,aAAmBD,EACrBC,EAAQG,SAAQ,SAASZ,EAAON,GAC9BgB,KAAKG,OAAOnB,EAAMM,EACnB,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AKA,WACEU,KAAK0/B,aAAa8d,EAAiBE,cAA6C,MAA9BlyC,SAASuyC,kBAA4B,OAAS,QAClG,GAEA,CAAA/1C,IAAA,mBAAA1I,MAGA,WAAmB,IAAAu5B,EAAA74B,KACZwL,SAASuyC,mBAOZvyC,SAASwyC,iBACTh+C,KAAK4+B,qBAPL5+B,KAAK49C,OAAOK,oBAAoB96C,MAAK,WACnC01B,EAAK+F,mBACP,IAAGtO,OAAM,SAACxpB,GACRykB,QAAQiU,IAAI14B,EACd,GAKJ,GAEA,CAAAkB,IAAA,eAAApF,IAIA,WACE,OAGK,IAHG4I,SAASuyC,mBACfvyC,SAAS0yC,oBACT1yC,SAAS2yC,cAEb,IAEA,CAAA,CAAAn2C,IAAA,gBAAApF,IAKA,WACE,MAAO,YACT,KAAC46C,CAAA"} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index a6f6564..ed833ee 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,7692 +1,8 @@ { "name": "springroll-container", - "version": "2.4.6", - "lockfileVersion": 2, + "version": "2.5.0", + "lockfileVersion": 1, "requires": true, - "packages": { - "": { - "name": "springroll-container", - "version": "2.4.6", - "license": "MIT", - "dependencies": { - "@babel/polyfill": "^7.4.3", - "bellhop-iframe": "^3.2.0", - "core-js": "^3.6.5", - "http-proxy": "^1.18.1", - "webpack": "^5.88.2", - "whatwg-fetch": "^3.0.0" - }, - "devDependencies": { - "@babel/core": "^7.4.3", - "@babel/preset-env": "^7.4.3", - "@rollup/plugin-babel": "^6.0.3", - "@rollup/plugin-commonjs": "^24.0.1", - "@rollup/plugin-eslint": "^9.0.3", - "@rollup/plugin-json": "^6.0.0", - "@rollup/plugin-node-resolve": "^15.0.1", - "@rollup/plugin-terser": "^0.4.0", - "babel-loader": "^8.0.5", - "chai": "^4.2.0", - "dotenv": "^7.0.0", - "eslint": "^8.43.0", - "eslint-plugin-import": "^2.17.2", - "eslint-plugin-node": "^8.0.1", - "eslint-plugin-prettier": "^3.0.1", - "karma": "^6.3.17", - "karma-babel-preprocessor": "^8.0.0", - "karma-browserstack-launcher": "^1.5.1", - "karma-chai": "^0.1.0", - "karma-chrome-launcher": "^2.2.0", - "karma-cli": "^2.0.0", - "karma-es6-shim": "^1.0.0", - "karma-firefox-launcher": "^1.1.0", - "karma-html": "^1.0.5", - "karma-mocha": "^2.0.1", - "karma-requirejs": "^1.1.0", - "karma-rollup-preprocessor": "^7.0.5", - "karma-webpack": "^5.0.0", - "mocha": "^10.2.0", - "platform": "^1.3.5", - "requirejs": "^2.3.6", - "rollup": "3.17.2", - "sinon": "^7.5.0" - } - }, - "node_modules/@aashutoshrathi/word-wrap": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz", - "integrity": "sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/@ampproject/remapping": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.0.tgz", - "integrity": "sha512-qRmjj8nj9qmLTQXXmaR1cck3UXSRMPrbsLJAasZpF+t3riI71BXed5ebIOYwQntykeZuhjsdweEc9BxH5Jc26w==", - "dev": true, - "dependencies": { - "@jridgewell/gen-mapping": "^0.1.0", - "@jridgewell/trace-mapping": "^0.3.9" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/code-frame": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.18.6.tgz", - "integrity": "sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q==", - "dev": true, - "dependencies": { - "@babel/highlight": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/compat-data": { - "version": "7.21.0", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.21.0.tgz", - "integrity": "sha512-gMuZsmsgxk/ENC3O/fRw5QY8A9/uxQbbCEypnLIiYYc/qVJtEV7ouxC3EllIIwNzMqAQee5tanFabWsUOutS7g==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/core": { - "version": "7.21.0", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.21.0.tgz", - "integrity": "sha512-PuxUbxcW6ZYe656yL3EAhpy7qXKq0DmYsrJLpbB8XrsCP9Nm+XCg9XFMb5vIDliPD7+U/+M+QJlH17XOcB7eXA==", - "dev": true, - "dependencies": { - "@ampproject/remapping": "^2.2.0", - "@babel/code-frame": "^7.18.6", - "@babel/generator": "^7.21.0", - "@babel/helper-compilation-targets": "^7.20.7", - "@babel/helper-module-transforms": "^7.21.0", - "@babel/helpers": "^7.21.0", - "@babel/parser": "^7.21.0", - "@babel/template": "^7.20.7", - "@babel/traverse": "^7.21.0", - "@babel/types": "^7.21.0", - "convert-source-map": "^1.7.0", - "debug": "^4.1.0", - "gensync": "^1.0.0-beta.2", - "json5": "^2.2.2", - "semver": "^6.3.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/babel" - } - }, - "node_modules/@babel/generator": { - "version": "7.21.1", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.21.1.tgz", - "integrity": "sha512-1lT45bAYlQhFn/BHivJs43AiW2rg3/UbLyShGfF3C0KmHvO5fSghWd5kBJy30kpRRucGzXStvnnCFniCR2kXAA==", - "dev": true, - "dependencies": { - "@babel/types": "^7.21.0", - "@jridgewell/gen-mapping": "^0.3.2", - "@jridgewell/trace-mapping": "^0.3.17", - "jsesc": "^2.5.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/generator/node_modules/@jridgewell/gen-mapping": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", - "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==", - "dev": true, - "dependencies": { - "@jridgewell/set-array": "^1.0.1", - "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.9" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/helper-annotate-as-pure": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.18.6.tgz", - "integrity": "sha512-duORpUiYrEpzKIop6iNbjnwKLAKnJ47csTyRACyEmWj0QdUrm5aqNJGHSSEQSUAvNW0ojX0dOmK9dZduvkfeXA==", - "dev": true, - "dependencies": { - "@babel/types": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-builder-binary-assignment-operator-visitor": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.18.9.tgz", - "integrity": "sha512-yFQ0YCHoIqarl8BCRwBL8ulYUaZpz3bNsA7oFepAzee+8/+ImtADXNOmO5vJvsPff3qi+hvpkY/NYBTrBQgdNw==", - "dev": true, - "dependencies": { - "@babel/helper-explode-assignable-expression": "^7.18.6", - "@babel/types": "^7.18.9" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-compilation-targets": { - "version": "7.20.7", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.20.7.tgz", - "integrity": "sha512-4tGORmfQcrc+bvrjb5y3dG9Mx1IOZjsHqQVUz7XCNHO+iTmqxWnVg3KRygjGmpRLJGdQSKuvFinbIb0CnZwHAQ==", - "dev": true, - "dependencies": { - "@babel/compat-data": "^7.20.5", - "@babel/helper-validator-option": "^7.18.6", - "browserslist": "^4.21.3", - "lru-cache": "^5.1.1", - "semver": "^6.3.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-create-class-features-plugin": { - "version": "7.21.0", - "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.21.0.tgz", - "integrity": "sha512-Q8wNiMIdwsv5la5SPxNYzzkPnjgC0Sy0i7jLkVOCdllu/xcVNkr3TeZzbHBJrj+XXRqzX5uCyCoV9eu6xUG7KQ==", - "dev": true, - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-environment-visitor": "^7.18.9", - "@babel/helper-function-name": "^7.21.0", - "@babel/helper-member-expression-to-functions": "^7.21.0", - "@babel/helper-optimise-call-expression": "^7.18.6", - "@babel/helper-replace-supers": "^7.20.7", - "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0", - "@babel/helper-split-export-declaration": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-create-regexp-features-plugin": { - "version": "7.21.0", - "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.21.0.tgz", - "integrity": "sha512-N+LaFW/auRSWdx7SHD/HiARwXQju1vXTW4fKr4u5SgBUTm51OKEjKgj+cs00ggW3kEvNqwErnlwuq7Y3xBe4eg==", - "dev": true, - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "regexpu-core": "^5.3.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-define-polyfill-provider": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.3.3.tgz", - "integrity": "sha512-z5aQKU4IzbqCC1XH0nAqfsFLMVSo22SBKUc0BxGrLkolTdPTructy0ToNnlO2zA4j9Q/7pjMZf0DSY+DSTYzww==", - "dev": true, - "dependencies": { - "@babel/helper-compilation-targets": "^7.17.7", - "@babel/helper-plugin-utils": "^7.16.7", - "debug": "^4.1.1", - "lodash.debounce": "^4.0.8", - "resolve": "^1.14.2", - "semver": "^6.1.2" - }, - "peerDependencies": { - "@babel/core": "^7.4.0-0" - } - }, - "node_modules/@babel/helper-environment-visitor": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.18.9.tgz", - "integrity": "sha512-3r/aACDJ3fhQ/EVgFy0hpj8oHyHpQc+LPtJoY9SzTThAsStm4Ptegq92vqKoE3vD706ZVFWITnMnxucw+S9Ipg==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-explode-assignable-expression": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.18.6.tgz", - "integrity": "sha512-eyAYAsQmB80jNfg4baAtLeWAQHfHFiR483rzFK+BhETlGZaQC9bsfrugfXDCbRHLQbIA7U5NxhhOxN7p/dWIcg==", - "dev": true, - "dependencies": { - "@babel/types": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-function-name": { - "version": "7.21.0", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.21.0.tgz", - "integrity": "sha512-HfK1aMRanKHpxemaY2gqBmL04iAPOPRj7DxtNbiDOrJK+gdwkiNRVpCpUJYbUT+aZyemKN8brqTOxzCaG6ExRg==", - "dev": true, - "dependencies": { - "@babel/template": "^7.20.7", - "@babel/types": "^7.21.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-hoist-variables": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz", - "integrity": "sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q==", - "dev": true, - "dependencies": { - "@babel/types": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-member-expression-to-functions": { - "version": "7.21.0", - "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.21.0.tgz", - "integrity": "sha512-Muu8cdZwNN6mRRNG6lAYErJ5X3bRevgYR2O8wN0yn7jJSnGDu6eG59RfT29JHxGUovyfrh6Pj0XzmR7drNVL3Q==", - "dev": true, - "dependencies": { - "@babel/types": "^7.21.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-imports": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.18.6.tgz", - "integrity": "sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA==", - "dev": true, - "dependencies": { - "@babel/types": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-transforms": { - "version": "7.21.0", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.21.0.tgz", - "integrity": "sha512-eD/JQ21IG2i1FraJnTMbUarAUkA7G988ofehG5MDCRXaUU91rEBJuCeSoou2Sk1y4RbLYXzqEg1QLwEmRU4qcQ==", - "dev": true, - "dependencies": { - "@babel/helper-environment-visitor": "^7.18.9", - "@babel/helper-module-imports": "^7.18.6", - "@babel/helper-simple-access": "^7.20.2", - "@babel/helper-split-export-declaration": "^7.18.6", - "@babel/helper-validator-identifier": "^7.19.1", - "@babel/template": "^7.20.7", - "@babel/traverse": "^7.21.0", - "@babel/types": "^7.21.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-optimise-call-expression": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.18.6.tgz", - "integrity": "sha512-HP59oD9/fEHQkdcbgFCnbmgH5vIQTJbxh2yf+CdM89/glUNnuzr87Q8GIjGEnOktTROemO0Pe0iPAYbqZuOUiA==", - "dev": true, - "dependencies": { - "@babel/types": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-plugin-utils": { - "version": "7.20.2", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.20.2.tgz", - "integrity": "sha512-8RvlJG2mj4huQ4pZ+rU9lqKi9ZKiRmuvGuM2HlWmkmgOhbs6zEAw6IEiJ5cQqGbDzGZOhwuOQNtZMi/ENLjZoQ==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-remap-async-to-generator": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.18.9.tgz", - "integrity": "sha512-dI7q50YKd8BAv3VEfgg7PS7yD3Rtbi2J1XMXaalXO0W0164hYLnh8zpjRS0mte9MfVp/tltvr/cfdXPvJr1opA==", - "dev": true, - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-environment-visitor": "^7.18.9", - "@babel/helper-wrap-function": "^7.18.9", - "@babel/types": "^7.18.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-replace-supers": { - "version": "7.20.7", - "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.20.7.tgz", - "integrity": "sha512-vujDMtB6LVfNW13jhlCrp48QNslK6JXi7lQG736HVbHz/mbf4Dc7tIRh1Xf5C0rF7BP8iiSxGMCmY6Ci1ven3A==", - "dev": true, - "dependencies": { - "@babel/helper-environment-visitor": "^7.18.9", - "@babel/helper-member-expression-to-functions": "^7.20.7", - "@babel/helper-optimise-call-expression": "^7.18.6", - "@babel/template": "^7.20.7", - "@babel/traverse": "^7.20.7", - "@babel/types": "^7.20.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-simple-access": { - "version": "7.20.2", - "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.20.2.tgz", - "integrity": "sha512-+0woI/WPq59IrqDYbVGfshjT5Dmk/nnbdpcF8SnMhhXObpTq2KNBdLFRFrkVdbDOyUmHBCxzm5FHV1rACIkIbA==", - "dev": true, - "dependencies": { - "@babel/types": "^7.20.2" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-skip-transparent-expression-wrappers": { - "version": "7.20.0", - "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.20.0.tgz", - "integrity": "sha512-5y1JYeNKfvnT8sZcK9DVRtpTbGiomYIHviSP3OQWmDPU3DeH4a1ZlT/N2lyQ5P8egjcRaT/Y9aNqUxK0WsnIIg==", - "dev": true, - "dependencies": { - "@babel/types": "^7.20.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-split-export-declaration": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz", - "integrity": "sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA==", - "dev": true, - "dependencies": { - "@babel/types": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-string-parser": { - "version": "7.19.4", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.19.4.tgz", - "integrity": "sha512-nHtDoQcuqFmwYNYPz3Rah5ph2p8PFeFCsZk9A/48dPc/rGocJ5J3hAAZ7pb76VWX3fZKu+uEr/FhH5jLx7umrw==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-validator-identifier": { - "version": "7.19.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz", - "integrity": "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-validator-option": { - "version": "7.21.0", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.21.0.tgz", - "integrity": "sha512-rmL/B8/f0mKS2baE9ZpyTcTavvEuWhTTW8amjzXNvYG4AwBsqTLikfXsEofsJEfKHf+HQVQbFOHy6o+4cnC/fQ==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-wrap-function": { - "version": "7.20.5", - "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.20.5.tgz", - "integrity": "sha512-bYMxIWK5mh+TgXGVqAtnu5Yn1un+v8DDZtqyzKRLUzrh70Eal2O3aZ7aPYiMADO4uKlkzOiRiZ6GX5q3qxvW9Q==", - "dev": true, - "dependencies": { - "@babel/helper-function-name": "^7.19.0", - "@babel/template": "^7.18.10", - "@babel/traverse": "^7.20.5", - "@babel/types": "^7.20.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helpers": { - "version": "7.21.0", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.21.0.tgz", - "integrity": "sha512-XXve0CBtOW0pd7MRzzmoyuSj0e3SEzj8pgyFxnTT1NJZL38BD1MK7yYrm8yefRPIDvNNe14xR4FdbHwpInD4rA==", - "dev": true, - "dependencies": { - "@babel/template": "^7.20.7", - "@babel/traverse": "^7.21.0", - "@babel/types": "^7.21.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/highlight": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz", - "integrity": "sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==", - "dev": true, - "dependencies": { - "@babel/helper-validator-identifier": "^7.18.6", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/parser": { - "version": "7.21.1", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.21.1.tgz", - "integrity": "sha512-JzhBFpkuhBNYUY7qs+wTzNmyCWUHEaAFpQQD2YfU1rPL38/L43Wvid0fFkiOCnHvsGncRZgEPyGnltABLcVDTg==", - "dev": true, - "bin": { - "parser": "bin/babel-parser.js" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.18.6.tgz", - "integrity": "sha512-Dgxsyg54Fx1d4Nge8UnvTrED63vrwOdPmyvPzlNN/boaliRP54pm3pGzZD1SJUwrBA+Cs/xdG8kXX6Mn/RfISQ==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": { - "version": "7.20.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.20.7.tgz", - "integrity": "sha512-sbr9+wNE5aXMBBFBICk01tt7sBf2Oc9ikRFEcem/ZORup9IMUdNhW7/wVLEbbtlWOsEubJet46mHAL2C8+2jKQ==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.20.2", - "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0", - "@babel/plugin-proposal-optional-chaining": "^7.20.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.13.0" - } - }, - "node_modules/@babel/plugin-proposal-async-generator-functions": { - "version": "7.20.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.20.7.tgz", - "integrity": "sha512-xMbiLsn/8RK7Wq7VeVytytS2L6qE69bXPB10YCmMdDZbKF4okCqY74pI/jJQ/8U0b/F6NrT2+14b8/P9/3AMGA==", - "dev": true, - "dependencies": { - "@babel/helper-environment-visitor": "^7.18.9", - "@babel/helper-plugin-utils": "^7.20.2", - "@babel/helper-remap-async-to-generator": "^7.18.9", - "@babel/plugin-syntax-async-generators": "^7.8.4" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-proposal-class-properties": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.18.6.tgz", - "integrity": "sha512-cumfXOF0+nzZrrN8Rf0t7M+tF6sZc7vhQwYQck9q1/5w2OExlD+b4v4RpMJFaV1Z7WcDRgO6FqvxqxGlwo+RHQ==", - "dev": true, - "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-proposal-class-static-block": { - "version": "7.21.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-static-block/-/plugin-proposal-class-static-block-7.21.0.tgz", - "integrity": "sha512-XP5G9MWNUskFuP30IfFSEFB0Z6HzLIUcjYM4bYOPHXl7eiJ9HFv8tWj6TXTN5QODiEhDZAeI4hLok2iHFFV4hw==", - "dev": true, - "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.21.0", - "@babel/helper-plugin-utils": "^7.20.2", - "@babel/plugin-syntax-class-static-block": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.12.0" - } - }, - "node_modules/@babel/plugin-proposal-dynamic-import": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.18.6.tgz", - "integrity": "sha512-1auuwmK+Rz13SJj36R+jqFPMJWyKEDd7lLSdOj4oJK0UTgGueSAtkrCvz9ewmgyU/P941Rv2fQwZJN8s6QruXw==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6", - "@babel/plugin-syntax-dynamic-import": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-proposal-export-namespace-from": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-export-namespace-from/-/plugin-proposal-export-namespace-from-7.18.9.tgz", - "integrity": "sha512-k1NtHyOMvlDDFeb9G5PhUXuGj8m/wiwojgQVEhJ/fsVsMCpLyOP4h0uGEjYJKrRI+EVPlb5Jk+Gt9P97lOGwtA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.18.9", - "@babel/plugin-syntax-export-namespace-from": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-proposal-json-strings": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.18.6.tgz", - "integrity": "sha512-lr1peyn9kOdbYc0xr0OdHTZ5FMqS6Di+H0Fz2I/JwMzGmzJETNeOFq2pBySw6X/KFL5EWDjlJuMsUGRFb8fQgQ==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6", - "@babel/plugin-syntax-json-strings": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-proposal-logical-assignment-operators": { - "version": "7.20.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-logical-assignment-operators/-/plugin-proposal-logical-assignment-operators-7.20.7.tgz", - "integrity": "sha512-y7C7cZgpMIjWlKE5T7eJwp+tnRYM89HmRvWM5EQuB5BoHEONjmQ8lSNmBUwOyy/GFRsohJED51YBF79hE1djug==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.20.2", - "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-proposal-nullish-coalescing-operator": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.18.6.tgz", - "integrity": "sha512-wQxQzxYeJqHcfppzBDnm1yAY0jSRkUXR2z8RePZYrKwMKgMlE8+Z6LUno+bd6LvbGh8Gltvy74+9pIYkr+XkKA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-proposal-numeric-separator": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.18.6.tgz", - "integrity": "sha512-ozlZFogPqoLm8WBr5Z8UckIoE4YQ5KESVcNudyXOR8uqIkliTEgJ3RoketfG6pmzLdeZF0H/wjE9/cCEitBl7Q==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6", - "@babel/plugin-syntax-numeric-separator": "^7.10.4" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-proposal-object-rest-spread": { - "version": "7.20.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.20.7.tgz", - "integrity": "sha512-d2S98yCiLxDVmBmE8UjGcfPvNEUbA1U5q5WxaWFUGRzJSVAZqm5W6MbPct0jxnegUZ0niLeNX+IOzEs7wYg9Dg==", - "dev": true, - "dependencies": { - "@babel/compat-data": "^7.20.5", - "@babel/helper-compilation-targets": "^7.20.7", - "@babel/helper-plugin-utils": "^7.20.2", - "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-transform-parameters": "^7.20.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-proposal-optional-catch-binding": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.18.6.tgz", - "integrity": "sha512-Q40HEhs9DJQyaZfUjjn6vE8Cv4GmMHCYuMGIWUnlxH6400VGxOuwWsPt4FxXxJkC/5eOzgn0z21M9gMT4MOhbw==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6", - "@babel/plugin-syntax-optional-catch-binding": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-proposal-optional-chaining": { - "version": "7.21.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.21.0.tgz", - "integrity": "sha512-p4zeefM72gpmEe2fkUr/OnOXpWEf8nAgk7ZYVqqfFiyIG7oFfVZcCrU64hWn5xp4tQ9LkV4bTIa5rD0KANpKNA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.20.2", - "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0", - "@babel/plugin-syntax-optional-chaining": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-proposal-private-methods": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-methods/-/plugin-proposal-private-methods-7.18.6.tgz", - "integrity": "sha512-nutsvktDItsNn4rpGItSNV2sz1XwS+nfU0Rg8aCx3W3NOKVzdMjJRu0O5OkgDp3ZGICSTbgRpxZoWsxoKRvbeA==", - "dev": true, - "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-proposal-private-property-in-object": { - "version": "7.21.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0.tgz", - "integrity": "sha512-ha4zfehbJjc5MmXBlHec1igel5TJXXLDDRbuJ4+XT2TJcyD9/V1919BA8gMvsdHcNMBy4WBUBiRb3nw/EQUtBw==", - "dev": true, - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-create-class-features-plugin": "^7.21.0", - "@babel/helper-plugin-utils": "^7.20.2", - "@babel/plugin-syntax-private-property-in-object": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-proposal-unicode-property-regex": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.18.6.tgz", - "integrity": "sha512-2BShG/d5yoZyXZfVePH91urL5wTG6ASZU9M4o03lKK8u8UW1y08OMttBSOADTcJrnPMpvDXRG3G8fyLh4ovs8w==", - "dev": true, - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=4" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-async-generators": { - "version": "7.8.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", - "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-class-properties": { - "version": "7.12.13", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", - "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.12.13" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-class-static-block": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz", - "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-dynamic-import": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz", - "integrity": "sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-export-namespace-from": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz", - "integrity": "sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.3" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-import-assertions": { - "version": "7.20.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.20.0.tgz", - "integrity": "sha512-IUh1vakzNoWalR8ch/areW7qFopR2AEw03JlG7BbrDqmQ4X3q9uuipQwSGrUn7oGiemKjtSLDhNtQHzMHr1JdQ==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.19.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-json-strings": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", - "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-logical-assignment-operators": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", - "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.10.4" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", - "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-numeric-separator": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", - "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.10.4" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-object-rest-spread": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", - "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-optional-catch-binding": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", - "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-optional-chaining": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", - "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-private-property-in-object": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz", - "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-top-level-await": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", - "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-arrow-functions": { - "version": "7.20.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.20.7.tgz", - "integrity": "sha512-3poA5E7dzDomxj9WXWwuD6A5F3kc7VXwIJO+E+J8qtDtS+pXPAhrgEyh+9GBwBgPq1Z+bB+/JD60lp5jsN7JPQ==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.20.2" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-async-to-generator": { - "version": "7.20.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.20.7.tgz", - "integrity": "sha512-Uo5gwHPT9vgnSXQxqGtpdufUiWp96gk7yiP4Mp5bm1QMkEmLXBO7PAGYbKoJ6DhAwiNkcHFBol/x5zZZkL/t0Q==", - "dev": true, - "dependencies": { - "@babel/helper-module-imports": "^7.18.6", - "@babel/helper-plugin-utils": "^7.20.2", - "@babel/helper-remap-async-to-generator": "^7.18.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-block-scoped-functions": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.18.6.tgz", - "integrity": "sha512-ExUcOqpPWnliRcPqves5HJcJOvHvIIWfuS4sroBUenPuMdmW+SMHDakmtS7qOo13sVppmUijqeTv7qqGsvURpQ==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-block-scoping": { - "version": "7.21.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.21.0.tgz", - "integrity": "sha512-Mdrbunoh9SxwFZapeHVrwFmri16+oYotcZysSzhNIVDwIAb1UV+kvnxULSYq9J3/q5MDG+4X6w8QVgD1zhBXNQ==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.20.2" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-classes": { - "version": "7.21.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.21.0.tgz", - "integrity": "sha512-RZhbYTCEUAe6ntPehC4hlslPWosNHDox+vAs4On/mCLRLfoDVHf6hVEd7kuxr1RnHwJmxFfUM3cZiZRmPxJPXQ==", - "dev": true, - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-compilation-targets": "^7.20.7", - "@babel/helper-environment-visitor": "^7.18.9", - "@babel/helper-function-name": "^7.21.0", - "@babel/helper-optimise-call-expression": "^7.18.6", - "@babel/helper-plugin-utils": "^7.20.2", - "@babel/helper-replace-supers": "^7.20.7", - "@babel/helper-split-export-declaration": "^7.18.6", - "globals": "^11.1.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-computed-properties": { - "version": "7.20.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.20.7.tgz", - "integrity": "sha512-Lz7MvBK6DTjElHAmfu6bfANzKcxpyNPeYBGEafyA6E5HtRpjpZwU+u7Qrgz/2OR0z+5TvKYbPdphfSaAcZBrYQ==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.20.2", - "@babel/template": "^7.20.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-destructuring": { - "version": "7.20.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.20.7.tgz", - "integrity": "sha512-Xwg403sRrZb81IVB79ZPqNQME23yhugYVqgTxAhT99h485F4f+GMELFhhOsscDUB7HCswepKeCKLn/GZvUKoBA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.20.2" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-dotall-regex": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.18.6.tgz", - "integrity": "sha512-6S3jpun1eEbAxq7TdjLotAsl4WpQI9DxfkycRcKrjhQYzU87qpXdknpBg/e+TdcMehqGnLFi7tnFUBR02Vq6wg==", - "dev": true, - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-duplicate-keys": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.18.9.tgz", - "integrity": "sha512-d2bmXCtZXYc59/0SanQKbiWINadaJXqtvIQIzd4+hNwkWBgyCd5F/2t1kXoUdvPMrxzPvhK6EMQRROxsue+mfw==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.18.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-exponentiation-operator": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.18.6.tgz", - "integrity": "sha512-wzEtc0+2c88FVR34aQmiz56dxEkxr2g8DQb/KfaFa1JYXOFVsbhvAonFN6PwVWj++fKmku8NP80plJ5Et4wqHw==", - "dev": true, - "dependencies": { - "@babel/helper-builder-binary-assignment-operator-visitor": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-for-of": { - "version": "7.21.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.21.0.tgz", - "integrity": "sha512-LlUYlydgDkKpIY7mcBWvyPPmMcOphEyYA27Ef4xpbh1IiDNLr0kZsos2nf92vz3IccvJI25QUwp86Eo5s6HmBQ==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.20.2" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-function-name": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.18.9.tgz", - "integrity": "sha512-WvIBoRPaJQ5yVHzcnJFor7oS5Ls0PYixlTYE63lCj2RtdQEl15M68FXQlxnG6wdraJIXRdR7KI+hQ7q/9QjrCQ==", - "dev": true, - "dependencies": { - "@babel/helper-compilation-targets": "^7.18.9", - "@babel/helper-function-name": "^7.18.9", - "@babel/helper-plugin-utils": "^7.18.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-literals": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.18.9.tgz", - "integrity": "sha512-IFQDSRoTPnrAIrI5zoZv73IFeZu2dhu6irxQjY9rNjTT53VmKg9fenjvoiOWOkJ6mm4jKVPtdMzBY98Fp4Z4cg==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.18.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-member-expression-literals": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.18.6.tgz", - "integrity": "sha512-qSF1ihLGO3q+/g48k85tUjD033C29TNTVB2paCwZPVmOsjn9pClvYYrM2VeJpBY2bcNkuny0YUyTNRyRxJ54KA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-modules-amd": { - "version": "7.20.11", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.20.11.tgz", - "integrity": "sha512-NuzCt5IIYOW0O30UvqktzHYR2ud5bOWbY0yaxWZ6G+aFzOMJvrs5YHNikrbdaT15+KNO31nPOy5Fim3ku6Zb5g==", - "dev": true, - "dependencies": { - "@babel/helper-module-transforms": "^7.20.11", - "@babel/helper-plugin-utils": "^7.20.2" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-modules-commonjs": { - "version": "7.20.11", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.20.11.tgz", - "integrity": "sha512-S8e1f7WQ7cimJQ51JkAaDrEtohVEitXjgCGAS2N8S31Y42E+kWwfSz83LYz57QdBm7q9diARVqanIaH2oVgQnw==", - "dev": true, - "dependencies": { - "@babel/helper-module-transforms": "^7.20.11", - "@babel/helper-plugin-utils": "^7.20.2", - "@babel/helper-simple-access": "^7.20.2" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-modules-systemjs": { - "version": "7.20.11", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.20.11.tgz", - "integrity": "sha512-vVu5g9BPQKSFEmvt2TA4Da5N+QVS66EX21d8uoOihC+OCpUoGvzVsXeqFdtAEfVa5BILAeFt+U7yVmLbQnAJmw==", - "dev": true, - "dependencies": { - "@babel/helper-hoist-variables": "^7.18.6", - "@babel/helper-module-transforms": "^7.20.11", - "@babel/helper-plugin-utils": "^7.20.2", - "@babel/helper-validator-identifier": "^7.19.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-modules-umd": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.18.6.tgz", - "integrity": "sha512-dcegErExVeXcRqNtkRU/z8WlBLnvD4MRnHgNs3MytRO1Mn1sHRyhbcpYbVMGclAqOjdW+9cfkdZno9dFdfKLfQ==", - "dev": true, - "dependencies": { - "@babel/helper-module-transforms": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-named-capturing-groups-regex": { - "version": "7.20.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.20.5.tgz", - "integrity": "sha512-mOW4tTzi5iTLnw+78iEq3gr8Aoq4WNRGpmSlrogqaiCBoR1HFhpU4JkpQFOHfeYx3ReVIFWOQJS4aZBRvuZ6mA==", - "dev": true, - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.20.5", - "@babel/helper-plugin-utils": "^7.20.2" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-transform-new-target": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.18.6.tgz", - "integrity": "sha512-DjwFA/9Iu3Z+vrAn+8pBUGcjhxKguSMlsFqeCKbhb9BAV756v0krzVK04CRDi/4aqmk8BsHb4a/gFcaA5joXRw==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-object-super": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.18.6.tgz", - "integrity": "sha512-uvGz6zk+pZoS1aTZrOvrbj6Pp/kK2mp45t2B+bTDre2UgsZZ8EZLSJtUg7m/no0zOJUWgFONpB7Zv9W2tSaFlA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6", - "@babel/helper-replace-supers": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-parameters": { - "version": "7.20.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.20.7.tgz", - "integrity": "sha512-WiWBIkeHKVOSYPO0pWkxGPfKeWrCJyD3NJ53+Lrp/QMSZbsVPovrVl2aWZ19D/LTVnaDv5Ap7GJ/B2CTOZdrfA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.20.2" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-property-literals": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.18.6.tgz", - "integrity": "sha512-cYcs6qlgafTud3PAzrrRNbQtfpQ8+y/+M5tKmksS9+M1ckbH6kzY8MrexEM9mcA6JDsukE19iIRvAyYl463sMg==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-regenerator": { - "version": "7.20.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.20.5.tgz", - "integrity": "sha512-kW/oO7HPBtntbsahzQ0qSE3tFvkFwnbozz3NWFhLGqH75vLEg+sCGngLlhVkePlCs3Jv0dBBHDzCHxNiFAQKCQ==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.20.2", - "regenerator-transform": "^0.15.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-reserved-words": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.18.6.tgz", - "integrity": "sha512-oX/4MyMoypzHjFrT1CdivfKZ+XvIPMFXwwxHp/r0Ddy2Vuomt4HDFGmft1TAY2yiTKiNSsh3kjBAzcM8kSdsjA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-shorthand-properties": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.18.6.tgz", - "integrity": "sha512-eCLXXJqv8okzg86ywZJbRn19YJHU4XUa55oz2wbHhaQVn/MM+XhukiT7SYqp/7o00dg52Rj51Ny+Ecw4oyoygw==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-spread": { - "version": "7.20.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.20.7.tgz", - "integrity": "sha512-ewBbHQ+1U/VnH1fxltbJqDeWBU1oNLG8Dj11uIv3xVf7nrQu0bPGe5Rf716r7K5Qz+SqtAOVswoVunoiBtGhxw==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.20.2", - "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-sticky-regex": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.18.6.tgz", - "integrity": "sha512-kfiDrDQ+PBsQDO85yj1icueWMfGfJFKN1KCkndygtu/C9+XUfydLC8Iv5UYJqRwy4zk8EcplRxEOeLyjq1gm6Q==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-template-literals": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.18.9.tgz", - "integrity": "sha512-S8cOWfT82gTezpYOiVaGHrCbhlHgKhQt8XH5ES46P2XWmX92yisoZywf5km75wv5sYcXDUCLMmMxOLCtthDgMA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.18.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-typeof-symbol": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.18.9.tgz", - "integrity": "sha512-SRfwTtF11G2aemAZWivL7PD+C9z52v9EvMqH9BuYbabyPuKUvSWks3oCg6041pT925L4zVFqaVBeECwsmlguEw==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.18.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-unicode-escapes": { - "version": "7.18.10", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.18.10.tgz", - "integrity": "sha512-kKAdAI+YzPgGY/ftStBFXTI1LZFju38rYThnfMykS+IXy8BVx+res7s2fxf1l8I35DV2T97ezo6+SGrXz6B3iQ==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.18.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-unicode-regex": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.18.6.tgz", - "integrity": "sha512-gE7A6Lt7YLnNOL3Pb9BNeZvi+d8l7tcRrG4+pwJjK9hD2xX4mEvjlQW60G9EEmfXVYRPv9VRQcyegIVHCql/AA==", - "dev": true, - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/polyfill": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/polyfill/-/polyfill-7.12.1.tgz", - "integrity": "sha512-X0pi0V6gxLi6lFZpGmeNa4zxtwEmCs42isWLNjZZDE0Y8yVfgu0T2OAHlzBbdYlqbW/YXVvoBHpATEM+goCj8g==", - "deprecated": "🚨 This package has been deprecated in favor of separate inclusion of a polyfill and regenerator-runtime (when needed). See the @babel/polyfill docs (https://babeljs.io/docs/en/babel-polyfill) for more information.", - "dependencies": { - "core-js": "^2.6.5", - "regenerator-runtime": "^0.13.4" - } - }, - "node_modules/@babel/polyfill/node_modules/core-js": { - "version": "2.6.12", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.12.tgz", - "integrity": "sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ==", - "deprecated": "core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.", - "hasInstallScript": true - }, - "node_modules/@babel/preset-env": { - "version": "7.20.2", - "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.20.2.tgz", - "integrity": "sha512-1G0efQEWR1EHkKvKHqbG+IN/QdgwfByUpM5V5QroDzGV2t3S/WXNQd693cHiHTlCFMpr9B6FkPFXDA2lQcKoDg==", - "dev": true, - "dependencies": { - "@babel/compat-data": "^7.20.1", - "@babel/helper-compilation-targets": "^7.20.0", - "@babel/helper-plugin-utils": "^7.20.2", - "@babel/helper-validator-option": "^7.18.6", - "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.18.6", - "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.18.9", - "@babel/plugin-proposal-async-generator-functions": "^7.20.1", - "@babel/plugin-proposal-class-properties": "^7.18.6", - "@babel/plugin-proposal-class-static-block": "^7.18.6", - "@babel/plugin-proposal-dynamic-import": "^7.18.6", - "@babel/plugin-proposal-export-namespace-from": "^7.18.9", - "@babel/plugin-proposal-json-strings": "^7.18.6", - "@babel/plugin-proposal-logical-assignment-operators": "^7.18.9", - "@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6", - "@babel/plugin-proposal-numeric-separator": "^7.18.6", - "@babel/plugin-proposal-object-rest-spread": "^7.20.2", - "@babel/plugin-proposal-optional-catch-binding": "^7.18.6", - "@babel/plugin-proposal-optional-chaining": "^7.18.9", - "@babel/plugin-proposal-private-methods": "^7.18.6", - "@babel/plugin-proposal-private-property-in-object": "^7.18.6", - "@babel/plugin-proposal-unicode-property-regex": "^7.18.6", - "@babel/plugin-syntax-async-generators": "^7.8.4", - "@babel/plugin-syntax-class-properties": "^7.12.13", - "@babel/plugin-syntax-class-static-block": "^7.14.5", - "@babel/plugin-syntax-dynamic-import": "^7.8.3", - "@babel/plugin-syntax-export-namespace-from": "^7.8.3", - "@babel/plugin-syntax-import-assertions": "^7.20.0", - "@babel/plugin-syntax-json-strings": "^7.8.3", - "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", - "@babel/plugin-syntax-numeric-separator": "^7.10.4", - "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", - "@babel/plugin-syntax-optional-chaining": "^7.8.3", - "@babel/plugin-syntax-private-property-in-object": "^7.14.5", - "@babel/plugin-syntax-top-level-await": "^7.14.5", - "@babel/plugin-transform-arrow-functions": "^7.18.6", - "@babel/plugin-transform-async-to-generator": "^7.18.6", - "@babel/plugin-transform-block-scoped-functions": "^7.18.6", - "@babel/plugin-transform-block-scoping": "^7.20.2", - "@babel/plugin-transform-classes": "^7.20.2", - "@babel/plugin-transform-computed-properties": "^7.18.9", - "@babel/plugin-transform-destructuring": "^7.20.2", - "@babel/plugin-transform-dotall-regex": "^7.18.6", - "@babel/plugin-transform-duplicate-keys": "^7.18.9", - "@babel/plugin-transform-exponentiation-operator": "^7.18.6", - "@babel/plugin-transform-for-of": "^7.18.8", - "@babel/plugin-transform-function-name": "^7.18.9", - "@babel/plugin-transform-literals": "^7.18.9", - "@babel/plugin-transform-member-expression-literals": "^7.18.6", - "@babel/plugin-transform-modules-amd": "^7.19.6", - "@babel/plugin-transform-modules-commonjs": "^7.19.6", - "@babel/plugin-transform-modules-systemjs": "^7.19.6", - "@babel/plugin-transform-modules-umd": "^7.18.6", - "@babel/plugin-transform-named-capturing-groups-regex": "^7.19.1", - "@babel/plugin-transform-new-target": "^7.18.6", - "@babel/plugin-transform-object-super": "^7.18.6", - "@babel/plugin-transform-parameters": "^7.20.1", - "@babel/plugin-transform-property-literals": "^7.18.6", - "@babel/plugin-transform-regenerator": "^7.18.6", - "@babel/plugin-transform-reserved-words": "^7.18.6", - "@babel/plugin-transform-shorthand-properties": "^7.18.6", - "@babel/plugin-transform-spread": "^7.19.0", - "@babel/plugin-transform-sticky-regex": "^7.18.6", - "@babel/plugin-transform-template-literals": "^7.18.9", - "@babel/plugin-transform-typeof-symbol": "^7.18.9", - "@babel/plugin-transform-unicode-escapes": "^7.18.10", - "@babel/plugin-transform-unicode-regex": "^7.18.6", - "@babel/preset-modules": "^0.1.5", - "@babel/types": "^7.20.2", - "babel-plugin-polyfill-corejs2": "^0.3.3", - "babel-plugin-polyfill-corejs3": "^0.6.0", - "babel-plugin-polyfill-regenerator": "^0.4.1", - "core-js-compat": "^3.25.1", - "semver": "^6.3.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/preset-modules": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.5.tgz", - "integrity": "sha512-A57th6YRG7oR3cq/yt/Y84MvGgE0eJG2F1JLhKuyG+jFxEgrd/HAMJatiFtmOiZurz+0DkrvbheCLaV5f2JfjA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.0.0", - "@babel/plugin-proposal-unicode-property-regex": "^7.4.4", - "@babel/plugin-transform-dotall-regex": "^7.4.4", - "@babel/types": "^7.4.4", - "esutils": "^2.0.2" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/regjsgen": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/@babel/regjsgen/-/regjsgen-0.8.0.tgz", - "integrity": "sha512-x/rqGMdzj+fWZvCOYForTghzbtqPDZ5gPwaoNGHdgDfF2QA/XZbCBp4Moo5scrkAMPhB7z26XM/AaHuIJdgauA==", - "dev": true - }, - "node_modules/@babel/runtime": { - "version": "7.21.0", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.21.0.tgz", - "integrity": "sha512-xwII0//EObnq89Ji5AKYQaRYiW/nZ3llSv29d49IuxPhKbtJoLP+9QUUZ4nVragQVtaVGeZrpB+ZtG/Pdy/POw==", - "dev": true, - "dependencies": { - "regenerator-runtime": "^0.13.11" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/template": { - "version": "7.20.7", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.20.7.tgz", - "integrity": "sha512-8SegXApWe6VoNw0r9JHpSteLKTpTiLZ4rMlGIm9JQ18KiCtyQiAMEazujAHrUS5flrcqYZa75ukev3P6QmUwUw==", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.18.6", - "@babel/parser": "^7.20.7", - "@babel/types": "^7.20.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/traverse": { - "version": "7.21.0", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.21.0.tgz", - "integrity": "sha512-Xdt2P1H4LKTO8ApPfnO1KmzYMFpp7D/EinoXzLYN/cHcBNrVCAkAtGUcXnHXrl/VGktureU6fkQrHSBE2URfoA==", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.18.6", - "@babel/generator": "^7.21.0", - "@babel/helper-environment-visitor": "^7.18.9", - "@babel/helper-function-name": "^7.21.0", - "@babel/helper-hoist-variables": "^7.18.6", - "@babel/helper-split-export-declaration": "^7.18.6", - "@babel/parser": "^7.21.0", - "@babel/types": "^7.21.0", - "debug": "^4.1.0", - "globals": "^11.1.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/types": { - "version": "7.21.0", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.21.0.tgz", - "integrity": "sha512-uR7NWq2VNFnDi7EYqiRz2Jv/VQIu38tu64Zy8TX2nQFQ6etJ9V/Rr2msW8BS132mum2rL645qpDrLtAJtVpuow==", - "dev": true, - "dependencies": { - "@babel/helper-string-parser": "^7.19.4", - "@babel/helper-validator-identifier": "^7.19.1", - "to-fast-properties": "^2.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@colors/colors": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/@colors/colors/-/colors-1.5.0.tgz", - "integrity": "sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==", - "dev": true, - "engines": { - "node": ">=0.1.90" - } - }, - "node_modules/@eslint-community/eslint-utils": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", - "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", - "dev": true, - "dependencies": { - "eslint-visitor-keys": "^3.3.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" - } - }, - "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": { - "version": "3.4.1", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz", - "integrity": "sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==", - "dev": true, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/@eslint-community/regexpp": { - "version": "4.5.1", - "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.5.1.tgz", - "integrity": "sha512-Z5ba73P98O1KUYCCJTUeVpja9RcGoMdncZ6T49FCUl2lN38JtCJ+3WgIDBv0AuY4WChU5PmtJmOCTlN6FZTFKQ==", - "dev": true, - "engines": { - "node": "^12.0.0 || ^14.0.0 || >=16.0.0" - } - }, - "node_modules/@eslint/eslintrc": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.0.3.tgz", - "integrity": "sha512-+5gy6OQfk+xx3q0d6jGZZC3f3KzAkXc/IanVxd1is/VIIziRqqt3ongQz0FiTUXqTk0c7aDB3OaFuKnuSoJicQ==", - "dev": true, - "dependencies": { - "ajv": "^6.12.4", - "debug": "^4.3.2", - "espree": "^9.5.2", - "globals": "^13.19.0", - "ignore": "^5.2.0", - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.0", - "minimatch": "^3.1.2", - "strip-json-comments": "^3.1.1" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/@eslint/eslintrc/node_modules/globals": { - "version": "13.20.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", - "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", - "dev": true, - "dependencies": { - "type-fest": "^0.20.2" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@eslint/js": { - "version": "8.43.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.43.0.tgz", - "integrity": "sha512-s2UHCoiXfxMvmfzqoN+vrQ84ahUSYde9qNO1MdxmoEhyHWsfmwOpFlwYV+ePJEVc7gFnATGUi376WowX1N7tFg==", - "dev": true, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - } - }, - "node_modules/@humanwhocodes/config-array": { - "version": "0.11.10", - "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.10.tgz", - "integrity": "sha512-KVVjQmNUepDVGXNuoRRdmmEjruj0KfiGSbS8LVc12LMsWDQzRXJ0qdhN8L8uUigKpfEHRhlaQFY0ib1tnUbNeQ==", - "dev": true, - "dependencies": { - "@humanwhocodes/object-schema": "^1.2.1", - "debug": "^4.1.1", - "minimatch": "^3.0.5" - }, - "engines": { - "node": ">=10.10.0" - } - }, - "node_modules/@humanwhocodes/module-importer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", - "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", - "dev": true, - "engines": { - "node": ">=12.22" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - } - }, - "node_modules/@humanwhocodes/object-schema": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", - "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", - "dev": true - }, - "node_modules/@jridgewell/gen-mapping": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.1.1.tgz", - "integrity": "sha512-sQXCasFk+U8lWYEe66WxRDOE9PjVz4vSM51fTu3Hw+ClTpUSQb718772vH3pyS5pShp6lvQM7SxgIDXXXmOX7w==", - "dev": true, - "dependencies": { - "@jridgewell/set-array": "^1.0.0", - "@jridgewell/sourcemap-codec": "^1.4.10" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/resolve-uri": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", - "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==", - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/set-array": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", - "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/source-map": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.3.tgz", - "integrity": "sha512-b+fsZXeLYi9fEULmfBrhxn4IrPlINf8fiNarzTof004v3lFdntdwa9PF7vFJqm3mg7s+ScJMxXaE3Acp1irZcg==", - "dependencies": { - "@jridgewell/gen-mapping": "^0.3.0", - "@jridgewell/trace-mapping": "^0.3.9" - } - }, - "node_modules/@jridgewell/source-map/node_modules/@jridgewell/gen-mapping": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", - "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", - "dependencies": { - "@jridgewell/set-array": "^1.0.1", - "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.9" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.4.14", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", - "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==" - }, - "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.17", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.17.tgz", - "integrity": "sha512-MCNzAp77qzKca9+W/+I0+sEpaUnZoeasnghNeVc41VZCEKaCH73Vq3BZZ/SzWIgrqE4H4ceI+p+b6C0mHf9T4g==", - "dependencies": { - "@jridgewell/resolve-uri": "3.1.0", - "@jridgewell/sourcemap-codec": "1.4.14" - } - }, - "node_modules/@nodelib/fs.scandir": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", - "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", - "dev": true, - "dependencies": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.stat": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", - "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", - "dev": true, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.walk": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", - "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", - "dev": true, - "dependencies": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@rollup/plugin-babel": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/@rollup/plugin-babel/-/plugin-babel-6.0.3.tgz", - "integrity": "sha512-fKImZKppa1A/gX73eg4JGo+8kQr/q1HBQaCGKECZ0v4YBBv3lFqi14+7xyApECzvkLTHCifx+7ntcrvtBIRcpg==", - "dev": true, - "dependencies": { - "@babel/helper-module-imports": "^7.18.6", - "@rollup/pluginutils": "^5.0.1" - }, - "engines": { - "node": ">=14.0.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0", - "@types/babel__core": "^7.1.9", - "rollup": "^1.20.0||^2.0.0||^3.0.0" - }, - "peerDependenciesMeta": { - "@types/babel__core": { - "optional": true - }, - "rollup": { - "optional": true - } - } - }, - "node_modules/@rollup/plugin-commonjs": { - "version": "24.1.0", - "resolved": "https://registry.npmjs.org/@rollup/plugin-commonjs/-/plugin-commonjs-24.1.0.tgz", - "integrity": "sha512-eSL45hjhCWI0jCCXcNtLVqM5N1JlBGvlFfY0m6oOYnLCJ6N0qEXoZql4sY2MOUArzhH4SA/qBpTxvvZp2Sc+DQ==", - "dev": true, - "dependencies": { - "@rollup/pluginutils": "^5.0.1", - "commondir": "^1.0.1", - "estree-walker": "^2.0.2", - "glob": "^8.0.3", - "is-reference": "1.2.1", - "magic-string": "^0.27.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "peerDependencies": { - "rollup": "^2.68.0||^3.0.0" - }, - "peerDependenciesMeta": { - "rollup": { - "optional": true - } - } - }, - "node_modules/@rollup/plugin-commonjs/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/@rollup/plugin-commonjs/node_modules/glob": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz", - "integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==", - "dev": true, - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^5.0.1", - "once": "^1.3.0" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/@rollup/plugin-commonjs/node_modules/magic-string": { - "version": "0.27.0", - "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.27.0.tgz", - "integrity": "sha512-8UnnX2PeRAPZuN12svgR9j7M1uWMovg/CEnIwIG0LFkXSJJe4PdfUGiTGl8V9bsBHFUtfVINcSyYxd7q+kx9fA==", - "dev": true, - "dependencies": { - "@jridgewell/sourcemap-codec": "^1.4.13" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/@rollup/plugin-commonjs/node_modules/minimatch": { - "version": "5.1.6", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", - "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", - "dev": true, - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@rollup/plugin-eslint": { - "version": "9.0.4", - "resolved": "https://registry.npmjs.org/@rollup/plugin-eslint/-/plugin-eslint-9.0.4.tgz", - "integrity": "sha512-JtXb8RFMsRB6pMsVAo7qR3wopb7XT7XlxnqQQk/5zdrhmCOgF/OoKBYWLzK0yaUXNfRZeuly9VLt6VgXIBrvkw==", - "dev": true, - "dependencies": { - "@rollup/pluginutils": "^5.0.1", - "eslint": "^8.24.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "peerDependencies": { - "rollup": "^1.20.0||^2.0.0||^3.0.0" - }, - "peerDependenciesMeta": { - "rollup": { - "optional": true - } - } - }, - "node_modules/@rollup/plugin-json": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/@rollup/plugin-json/-/plugin-json-6.0.0.tgz", - "integrity": "sha512-i/4C5Jrdr1XUarRhVu27EEwjt4GObltD7c+MkCIpO2QIbojw8MUs+CCTqOphQi3Qtg1FLmYt+l+6YeoIf51J7w==", - "dev": true, - "dependencies": { - "@rollup/pluginutils": "^5.0.1" - }, - "engines": { - "node": ">=14.0.0" - }, - "peerDependencies": { - "rollup": "^1.20.0||^2.0.0||^3.0.0" - }, - "peerDependenciesMeta": { - "rollup": { - "optional": true - } - } - }, - "node_modules/@rollup/plugin-node-resolve": { - "version": "15.1.0", - "resolved": "https://registry.npmjs.org/@rollup/plugin-node-resolve/-/plugin-node-resolve-15.1.0.tgz", - "integrity": "sha512-xeZHCgsiZ9pzYVgAo9580eCGqwh/XCEUM9q6iQfGNocjgkufHAqC3exA+45URvhiYV8sBF9RlBai650eNs7AsA==", - "dev": true, - "dependencies": { - "@rollup/pluginutils": "^5.0.1", - "@types/resolve": "1.20.2", - "deepmerge": "^4.2.2", - "is-builtin-module": "^3.2.1", - "is-module": "^1.0.0", - "resolve": "^1.22.1" - }, - "engines": { - "node": ">=14.0.0" - }, - "peerDependencies": { - "rollup": "^2.78.0||^3.0.0" - }, - "peerDependenciesMeta": { - "rollup": { - "optional": true - } - } - }, - "node_modules/@rollup/plugin-terser": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/@rollup/plugin-terser/-/plugin-terser-0.4.3.tgz", - "integrity": "sha512-EF0oejTMtkyhrkwCdg0HJ0IpkcaVg1MMSf2olHb2Jp+1mnLM04OhjpJWGma4HobiDTF0WCyViWuvadyE9ch2XA==", - "dev": true, - "dependencies": { - "serialize-javascript": "^6.0.1", - "smob": "^1.0.0", - "terser": "^5.17.4" - }, - "engines": { - "node": ">=14.0.0" - }, - "peerDependencies": { - "rollup": "^2.x || ^3.x" - }, - "peerDependenciesMeta": { - "rollup": { - "optional": true - } - } - }, - "node_modules/@rollup/plugin-terser/node_modules/serialize-javascript": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.1.tgz", - "integrity": "sha512-owoXEFjWRllis8/M1Q+Cw5k8ZH40e3zhp/ovX+Xr/vi1qj6QesbyXXViFbpNvWvPNAD62SutwEXavefrLJWj7w==", - "dev": true, - "dependencies": { - "randombytes": "^2.1.0" - } - }, - "node_modules/@rollup/pluginutils": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-5.0.2.tgz", - "integrity": "sha512-pTd9rIsP92h+B6wWwFbW8RkZv4hiR/xKsqre4SIuAOaOEQRxi0lqLke9k2/7WegC85GgUs9pjmOjCUi3In4vwA==", - "dev": true, - "dependencies": { - "@types/estree": "^1.0.0", - "estree-walker": "^2.0.2", - "picomatch": "^2.3.1" - }, - "engines": { - "node": ">=14.0.0" - }, - "peerDependencies": { - "rollup": "^1.20.0||^2.0.0||^3.0.0" - }, - "peerDependenciesMeta": { - "rollup": { - "optional": true - } - } - }, - "node_modules/@sinonjs/commons": { - "version": "1.8.6", - "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.8.6.tgz", - "integrity": "sha512-Ky+XkAkqPZSm3NLBeUng77EBQl3cmeJhITaGHdYH8kjVB+aun3S4XBRti2zt17mtt0mIUDiNxYeoJm6drVvBJQ==", - "dev": true, - "dependencies": { - "type-detect": "4.0.8" - } - }, - "node_modules/@sinonjs/formatio": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/@sinonjs/formatio/-/formatio-3.2.2.tgz", - "integrity": "sha512-B8SEsgd8gArBLMD6zpRw3juQ2FVSsmdd7qlevyDqzS9WTCtvF55/gAL+h6gue8ZvPYcdiPdvueM/qm//9XzyTQ==", - "dev": true, - "dependencies": { - "@sinonjs/commons": "^1", - "@sinonjs/samsam": "^3.1.0" - } - }, - "node_modules/@sinonjs/samsam": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/@sinonjs/samsam/-/samsam-3.3.3.tgz", - "integrity": "sha512-bKCMKZvWIjYD0BLGnNrxVuw4dkWCYsLqFOUWw8VgKF/+5Y+mE7LfHWPIYoDXowH+3a9LsWDMo0uAP8YDosPvHQ==", - "dev": true, - "dependencies": { - "@sinonjs/commons": "^1.3.0", - "array-from": "^2.1.1", - "lodash": "^4.17.15" - } - }, - "node_modules/@sinonjs/text-encoding": { - "version": "0.7.2", - "resolved": "https://registry.npmjs.org/@sinonjs/text-encoding/-/text-encoding-0.7.2.tgz", - "integrity": "sha512-sXXKG+uL9IrKqViTtao2Ws6dy0znu9sOaP1di/jKGW1M6VssO8vlpXCQcpZ+jisQ1tTFAC5Jo/EOzFbggBagFQ==", - "dev": true - }, - "node_modules/@socket.io/component-emitter": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@socket.io/component-emitter/-/component-emitter-3.1.0.tgz", - "integrity": "sha512-+9jVqKhRSpsc591z5vX+X5Yyw+he/HCB4iQ/RYxw35CEPaY1gnsNE43nf9n9AaYjAQrTiI/mOwKUKdUs9vf7Xg==", - "dev": true - }, - "node_modules/@types/cookie": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/@types/cookie/-/cookie-0.4.1.tgz", - "integrity": "sha512-XW/Aa8APYr6jSVVA1y/DEIZX0/GMKLEVekNG727R8cs56ahETkRAy/3DR7+fJyh7oUgGwNQaRfXCun0+KbWY7Q==", - "dev": true - }, - "node_modules/@types/cors": { - "version": "2.8.13", - "resolved": "https://registry.npmjs.org/@types/cors/-/cors-2.8.13.tgz", - "integrity": "sha512-RG8AStHlUiV5ysZQKq97copd2UmVYw3/pRMLefISZ3S1hK104Cwm7iLQ3fTKx+lsUH2CE8FlLaYeEA2LSeqYUA==", - "dev": true, - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/eslint": { - "version": "8.40.2", - "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.40.2.tgz", - "integrity": "sha512-PRVjQ4Eh9z9pmmtaq8nTjZjQwKFk7YIHIud3lRoKRBgUQjgjRmoGxxGEPXQkF+lH7QkHJRNr5F4aBgYCW0lqpQ==", - "dependencies": { - "@types/estree": "*", - "@types/json-schema": "*" - } - }, - "node_modules/@types/eslint-scope": { - "version": "3.7.4", - "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.4.tgz", - "integrity": "sha512-9K4zoImiZc3HlIp6AVUDE4CWYx22a+lhSZMYNpbjW04+YF0KWj4pJXnEMjdnFTiQibFFmElcsasJXDbdI/EPhA==", - "dependencies": { - "@types/eslint": "*", - "@types/estree": "*" - } - }, - "node_modules/@types/estree": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.1.tgz", - "integrity": "sha512-LG4opVs2ANWZ1TJoKc937iMmNstM/d0ae1vNbnBvBhqCSezgVUOzcLCqbI5elV8Vy6WKwKjaqR+zO9VKirBBCA==" - }, - "node_modules/@types/json-schema": { - "version": "7.0.11", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz", - "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==" - }, - "node_modules/@types/json5": { - "version": "0.0.29", - "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", - "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", - "dev": true - }, - "node_modules/@types/node": { - "version": "18.14.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.14.0.tgz", - "integrity": "sha512-5EWrvLmglK+imbCJY0+INViFWUHg1AHel1sq4ZVSfdcNqGy9Edv3UB9IIzzg+xPaUcAgZYcfVs2fBcwDeZzU0A==" - }, - "node_modules/@types/resolve": { - "version": "1.20.2", - "resolved": "https://registry.npmjs.org/@types/resolve/-/resolve-1.20.2.tgz", - "integrity": "sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q==", - "dev": true - }, - "node_modules/@webassemblyjs/ast": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.6.tgz", - "integrity": "sha512-IN1xI7PwOvLPgjcf180gC1bqn3q/QaOCwYUahIOhbYUu8KA/3tw2RT/T0Gidi1l7Hhj5D/INhJxiICObqpMu4Q==", - "dependencies": { - "@webassemblyjs/helper-numbers": "1.11.6", - "@webassemblyjs/helper-wasm-bytecode": "1.11.6" - } - }, - "node_modules/@webassemblyjs/floating-point-hex-parser": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.6.tgz", - "integrity": "sha512-ejAj9hfRJ2XMsNHk/v6Fu2dGS+i4UaXBXGemOfQ/JfQ6mdQg/WXtwleQRLLS4OvfDhv8rYnVwH27YJLMyYsxhw==" - }, - "node_modules/@webassemblyjs/helper-api-error": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.6.tgz", - "integrity": "sha512-o0YkoP4pVu4rN8aTJgAyj9hC2Sv5UlkzCHhxqWj8butaLvnpdc2jOwh4ewE6CX0txSfLn/UYaV/pheS2Txg//Q==" - }, - "node_modules/@webassemblyjs/helper-buffer": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.6.tgz", - "integrity": "sha512-z3nFzdcp1mb8nEOFFk8DrYLpHvhKC3grJD2ardfKOzmbmJvEf/tPIqCY+sNcwZIY8ZD7IkB2l7/pqhUhqm7hLA==" - }, - "node_modules/@webassemblyjs/helper-numbers": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.6.tgz", - "integrity": "sha512-vUIhZ8LZoIWHBohiEObxVm6hwP034jwmc9kuq5GdHZH0wiLVLIPcMCdpJzG4C11cHoQ25TFIQj9kaVADVX7N3g==", - "dependencies": { - "@webassemblyjs/floating-point-hex-parser": "1.11.6", - "@webassemblyjs/helper-api-error": "1.11.6", - "@xtuc/long": "4.2.2" - } - }, - "node_modules/@webassemblyjs/helper-wasm-bytecode": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.6.tgz", - "integrity": "sha512-sFFHKwcmBprO9e7Icf0+gddyWYDViL8bpPjJJl0WHxCdETktXdmtWLGVzoHbqUcY4Be1LkNfwTmXOJUFZYSJdA==" - }, - "node_modules/@webassemblyjs/helper-wasm-section": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.6.tgz", - "integrity": "sha512-LPpZbSOwTpEC2cgn4hTydySy1Ke+XEu+ETXuoyvuyezHO3Kjdu90KK95Sh9xTbmjrCsUwvWwCOQQNta37VrS9g==", - "dependencies": { - "@webassemblyjs/ast": "1.11.6", - "@webassemblyjs/helper-buffer": "1.11.6", - "@webassemblyjs/helper-wasm-bytecode": "1.11.6", - "@webassemblyjs/wasm-gen": "1.11.6" - } - }, - "node_modules/@webassemblyjs/ieee754": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.6.tgz", - "integrity": "sha512-LM4p2csPNvbij6U1f19v6WR56QZ8JcHg3QIJTlSwzFcmx6WSORicYj6I63f9yU1kEUtrpG+kjkiIAkevHpDXrg==", - "dependencies": { - "@xtuc/ieee754": "^1.2.0" - } - }, - "node_modules/@webassemblyjs/leb128": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.6.tgz", - "integrity": "sha512-m7a0FhE67DQXgouf1tbN5XQcdWoNgaAuoULHIfGFIEVKA6tu/edls6XnIlkmS6FrXAquJRPni3ZZKjw6FSPjPQ==", - "dependencies": { - "@xtuc/long": "4.2.2" - } - }, - "node_modules/@webassemblyjs/utf8": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.6.tgz", - "integrity": "sha512-vtXf2wTQ3+up9Zsg8sa2yWiQpzSsMyXj0qViVP6xKGCUT8p8YJ6HqI7l5eCnWx1T/FYdsv07HQs2wTFbbof/RA==" - }, - "node_modules/@webassemblyjs/wasm-edit": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.6.tgz", - "integrity": "sha512-Ybn2I6fnfIGuCR+Faaz7YcvtBKxvoLV3Lebn1tM4o/IAJzmi9AWYIPWpyBfU8cC+JxAO57bk4+zdsTjJR+VTOw==", - "dependencies": { - "@webassemblyjs/ast": "1.11.6", - "@webassemblyjs/helper-buffer": "1.11.6", - "@webassemblyjs/helper-wasm-bytecode": "1.11.6", - "@webassemblyjs/helper-wasm-section": "1.11.6", - "@webassemblyjs/wasm-gen": "1.11.6", - "@webassemblyjs/wasm-opt": "1.11.6", - "@webassemblyjs/wasm-parser": "1.11.6", - "@webassemblyjs/wast-printer": "1.11.6" - } - }, - "node_modules/@webassemblyjs/wasm-gen": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.6.tgz", - "integrity": "sha512-3XOqkZP/y6B4F0PBAXvI1/bky7GryoogUtfwExeP/v7Nzwo1QLcq5oQmpKlftZLbT+ERUOAZVQjuNVak6UXjPA==", - "dependencies": { - "@webassemblyjs/ast": "1.11.6", - "@webassemblyjs/helper-wasm-bytecode": "1.11.6", - "@webassemblyjs/ieee754": "1.11.6", - "@webassemblyjs/leb128": "1.11.6", - "@webassemblyjs/utf8": "1.11.6" - } - }, - "node_modules/@webassemblyjs/wasm-opt": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.6.tgz", - "integrity": "sha512-cOrKuLRE7PCe6AsOVl7WasYf3wbSo4CeOk6PkrjS7g57MFfVUF9u6ysQBBODX0LdgSvQqRiGz3CXvIDKcPNy4g==", - "dependencies": { - "@webassemblyjs/ast": "1.11.6", - "@webassemblyjs/helper-buffer": "1.11.6", - "@webassemblyjs/wasm-gen": "1.11.6", - "@webassemblyjs/wasm-parser": "1.11.6" - } - }, - "node_modules/@webassemblyjs/wasm-parser": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.6.tgz", - "integrity": "sha512-6ZwPeGzMJM3Dqp3hCsLgESxBGtT/OeCvCZ4TA1JUPYgmhAx38tTPR9JaKy0S5H3evQpO/h2uWs2j6Yc/fjkpTQ==", - "dependencies": { - "@webassemblyjs/ast": "1.11.6", - "@webassemblyjs/helper-api-error": "1.11.6", - "@webassemblyjs/helper-wasm-bytecode": "1.11.6", - "@webassemblyjs/ieee754": "1.11.6", - "@webassemblyjs/leb128": "1.11.6", - "@webassemblyjs/utf8": "1.11.6" - } - }, - "node_modules/@webassemblyjs/wast-printer": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.11.6.tgz", - "integrity": "sha512-JM7AhRcE+yW2GWYaKeHL5vt4xqee5N2WcezptmgyhNS+ScggqcT1OtXykhAb13Sn5Yas0j2uv9tHgrjwvzAP4A==", - "dependencies": { - "@webassemblyjs/ast": "1.11.6", - "@xtuc/long": "4.2.2" - } - }, - "node_modules/@xtuc/ieee754": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", - "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==" - }, - "node_modules/@xtuc/long": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", - "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==" - }, - "node_modules/accepts": { - "version": "1.3.8", - "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", - "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", - "dev": true, - "dependencies": { - "mime-types": "~2.1.34", - "negotiator": "0.6.3" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/acorn": { - "version": "8.9.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.9.0.tgz", - "integrity": "sha512-jaVNAFBHNLXspO543WnNNPZFRtavh3skAkITqD0/2aeMkKZTN+254PyhwxFYrk3vQ1xfY+2wbesJMs/JC8/PwQ==", - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/acorn-import-assertions": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.9.0.tgz", - "integrity": "sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA==", - "peerDependencies": { - "acorn": "^8" - } - }, - "node_modules/acorn-jsx": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", - "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "dev": true, - "peerDependencies": { - "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" - } - }, - "node_modules/agent-base": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-4.3.0.tgz", - "integrity": "sha512-salcGninV0nPrwpGNn4VTXBb1SOuXQBiqbrNXoeizJsHrsL6ERFM2Ne3JUSBWRE6aeNJI2ROP/WEEIDUiDe3cg==", - "dev": true, - "dependencies": { - "es6-promisify": "^5.0.0" - }, - "engines": { - "node": ">= 4.0.0" - } - }, - "node_modules/ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/ajv-keywords": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", - "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", - "peerDependencies": { - "ajv": "^6.9.1" - } - }, - "node_modules/ansi-colors": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz", - "integrity": "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/anymatch": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", - "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", - "dev": true, - "dependencies": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true - }, - "node_modules/array-from": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/array-from/-/array-from-2.1.1.tgz", - "integrity": "sha512-GQTc6Uupx1FCavi5mPzBvVT7nEOeWMmUA9P95wpfpW1XwMSKs+KaymD5C2Up7KAUKg/mYwbsUYzdZWcoajlNZg==", - "dev": true - }, - "node_modules/array-includes": { - "version": "3.1.6", - "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.6.tgz", - "integrity": "sha512-sgTbLvL6cNnw24FnbaDyjmvddQ2ML8arZsgaJhoABMoplz/4QRhtrYS+alr1BUM1Bwp6dhx8vVCBSLG+StwOFw==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "get-intrinsic": "^1.1.3", - "is-string": "^1.0.7" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/array.prototype.flat": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.1.tgz", - "integrity": "sha512-roTU0KWIOmJ4DRLmwKd19Otg0/mT3qPNt0Qb3GWW8iObuZXxrjB/pzn0R3hqpRSWg4HCwqx+0vwOnWnvlOyeIA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "es-shim-unscopables": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/array.prototype.flatmap": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.1.tgz", - "integrity": "sha512-8UGn9O1FDVvMNB0UlLv4voxRMze7+FpHyF5mSMRjWHUMlpoDViniy05870VlxhfgTnLbpuwTzvD76MTtWxB/mQ==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "es-shim-unscopables": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/assertion-error": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz", - "integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==", - "dev": true, - "engines": { - "node": "*" - } - }, - "node_modules/available-typed-arrays": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz", - "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/babel-loader": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-8.3.0.tgz", - "integrity": "sha512-H8SvsMF+m9t15HNLMipppzkC+Y2Yq+v3SonZyU70RBL/h1gxPkH08Ot8pEE9Z4Kd+czyWJClmFS8qzIP9OZ04Q==", - "dev": true, - "dependencies": { - "find-cache-dir": "^3.3.1", - "loader-utils": "^2.0.0", - "make-dir": "^3.1.0", - "schema-utils": "^2.6.5" - }, - "engines": { - "node": ">= 8.9" - }, - "peerDependencies": { - "@babel/core": "^7.0.0", - "webpack": ">=2" - } - }, - "node_modules/babel-plugin-polyfill-corejs2": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.3.3.tgz", - "integrity": "sha512-8hOdmFYFSZhqg2C/JgLUQ+t52o5nirNwaWM2B9LWteozwIvM14VSwdsCAUET10qT+kmySAlseadmfeeSWFCy+Q==", - "dev": true, - "dependencies": { - "@babel/compat-data": "^7.17.7", - "@babel/helper-define-polyfill-provider": "^0.3.3", - "semver": "^6.1.1" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/babel-plugin-polyfill-corejs3": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.6.0.tgz", - "integrity": "sha512-+eHqR6OPcBhJOGgsIar7xoAB1GcSwVUA3XjAd7HJNzOXT4wv6/H7KIdA/Nc60cvUlDbKApmqNvD1B1bzOt4nyA==", - "dev": true, - "dependencies": { - "@babel/helper-define-polyfill-provider": "^0.3.3", - "core-js-compat": "^3.25.1" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/babel-plugin-polyfill-regenerator": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.4.1.tgz", - "integrity": "sha512-NtQGmyQDXjQqQ+IzRkBVwEOz9lQ4zxAQZgoAYEtU9dJjnl1Oc98qnN7jcp+bE7O7aYzVpavXE3/VKXNzUbh7aw==", - "dev": true, - "dependencies": { - "@babel/helper-define-polyfill-provider": "^0.3.3" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true - }, - "node_modules/base64id": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/base64id/-/base64id-2.0.0.tgz", - "integrity": "sha512-lGe34o6EHj9y3Kts9R4ZYs/Gr+6N7MCaMlIFA3F1R2O5/m7K06AxfSeO5530PEERE6/WyEg3lsuyw4GHlPZHog==", - "dev": true, - "engines": { - "node": "^4.5.0 || >= 5.9" - } - }, - "node_modules/bellhop-iframe": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/bellhop-iframe/-/bellhop-iframe-3.3.0.tgz", - "integrity": "sha512-wdRejGsdZmv/amIYkFhshmLhnIjrpLP6cNBMl6d9QduGD2IYDx7L56p+BkkZhx0i7jOSQq1febL4QnIC2jmYTg==" - }, - "node_modules/big.js": { - "version": "5.2.2", - "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", - "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==", - "dev": true, - "engines": { - "node": "*" - } - }, - "node_modules/binary-extensions": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", - "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/body-parser": { - "version": "1.20.1", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.1.tgz", - "integrity": "sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw==", - "dev": true, - "dependencies": { - "bytes": "3.1.2", - "content-type": "~1.0.4", - "debug": "2.6.9", - "depd": "2.0.0", - "destroy": "1.2.0", - "http-errors": "2.0.0", - "iconv-lite": "0.4.24", - "on-finished": "2.4.1", - "qs": "6.11.0", - "raw-body": "2.5.1", - "type-is": "~1.6.18", - "unpipe": "1.0.0" - }, - "engines": { - "node": ">= 0.8", - "npm": "1.2.8000 || >= 1.4.16" - } - }, - "node_modules/body-parser/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/body-parser/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true - }, - "node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", - "dev": true, - "dependencies": { - "fill-range": "^7.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/browser-stdout": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", - "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==", - "dev": true - }, - "node_modules/browserslist": { - "version": "4.21.5", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.5.tgz", - "integrity": "sha512-tUkiguQGW7S3IhB7N+c2MV/HZPSCPAAiYBZXLsBhFB/PCy6ZKKsZrmBayHV9fdGV/ARIfJ14NkxKzRDjvp7L6w==", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - } - ], - "dependencies": { - "caniuse-lite": "^1.0.30001449", - "electron-to-chromium": "^1.4.284", - "node-releases": "^2.0.8", - "update-browserslist-db": "^1.0.10" - }, - "bin": { - "browserslist": "cli.js" - }, - "engines": { - "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" - } - }, - "node_modules/browserstack": { - "version": "1.5.3", - "resolved": "https://registry.npmjs.org/browserstack/-/browserstack-1.5.3.tgz", - "integrity": "sha512-AO+mECXsW4QcqC9bxwM29O7qWa7bJT94uBFzeb5brylIQwawuEziwq20dPYbins95GlWzOawgyDNdjYAo32EKg==", - "dev": true, - "dependencies": { - "https-proxy-agent": "^2.2.1" - } - }, - "node_modules/browserstack-local": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/browserstack-local/-/browserstack-local-1.5.1.tgz", - "integrity": "sha512-T/wxyWDzvBHbDvl7fZKpFU7mYze6nrUkBhNy+d+8bXBqgQX10HTYvajIGO0wb49oGSLCPM0CMZTV/s7e6LF0sA==", - "dev": true, - "dependencies": { - "agent-base": "^6.0.2", - "https-proxy-agent": "^5.0.1", - "is-running": "^2.1.0", - "ps-tree": "=1.2.0", - "temp-fs": "^0.9.9" - } - }, - "node_modules/browserstack-local/node_modules/agent-base": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", - "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", - "dev": true, - "dependencies": { - "debug": "4" - }, - "engines": { - "node": ">= 6.0.0" - } - }, - "node_modules/browserstack-local/node_modules/https-proxy-agent": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", - "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", - "dev": true, - "dependencies": { - "agent-base": "6", - "debug": "4" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/buffer-from": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", - "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==" - }, - "node_modules/builtin-modules": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-3.3.0.tgz", - "integrity": "sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==", - "dev": true, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/bytes": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", - "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", - "dev": true, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/call-bind": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", - "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", - "dev": true, - "dependencies": { - "function-bind": "^1.1.1", - "get-intrinsic": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/camelcase": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", - "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/caniuse-lite": { - "version": "1.0.30001457", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001457.tgz", - "integrity": "sha512-SDIV6bgE1aVbK6XyxdURbUE89zY7+k1BBBaOwYwkNCglXlel/E7mELiHC64HQ+W0xSKlqWhV9Wh7iHxUjMs4fA==", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/caniuse-lite" - } - ] - }, - "node_modules/chai": { - "version": "4.3.7", - "resolved": "https://registry.npmjs.org/chai/-/chai-4.3.7.tgz", - "integrity": "sha512-HLnAzZ2iupm25PlN0xFreAlBA5zaBSv3og0DdeGA4Ar6h6rJ3A0rolRUKJhSF2V10GZKDgWF/VmAEsNWjCRB+A==", - "dev": true, - "dependencies": { - "assertion-error": "^1.1.0", - "check-error": "^1.0.2", - "deep-eql": "^4.1.2", - "get-func-name": "^2.0.0", - "loupe": "^2.3.1", - "pathval": "^1.1.1", - "type-detect": "^4.0.5" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/check-error": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.2.tgz", - "integrity": "sha512-BrgHpW9NURQgzoNyjfq0Wu6VFO6D7IZEmJNdtgNqpzGG8RuNFHt2jQxWlAs4HMe119chBnv+34syEZtc6IhLtA==", - "dev": true, - "engines": { - "node": "*" - } - }, - "node_modules/chokidar": { - "version": "3.5.3", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", - "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", - "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "dependencies": { - "anymatch": "~3.1.2", - "braces": "~3.0.2", - "glob-parent": "~5.1.2", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.6.0" - }, - "engines": { - "node": ">= 8.10.0" - }, - "optionalDependencies": { - "fsevents": "~2.3.2" - } - }, - "node_modules/chrome-trace-event": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz", - "integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==", - "engines": { - "node": ">=6.0" - } - }, - "node_modules/cliui": { - "version": "7.0.4", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", - "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", - "dev": true, - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^7.0.0" - } - }, - "node_modules/cliui/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "node_modules/cliui/node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/cliui/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, - "dependencies": { - "color-name": "1.1.3" - } - }, - "node_modules/color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", - "dev": true - }, - "node_modules/commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" - }, - "node_modules/commondir": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", - "integrity": "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==", - "dev": true - }, - "node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "dev": true - }, - "node_modules/connect": { - "version": "3.7.0", - "resolved": "https://registry.npmjs.org/connect/-/connect-3.7.0.tgz", - "integrity": "sha512-ZqRXc+tZukToSNmh5C2iWMSoV3X1YUcPbqEM4DkEG5tNQXrQUZCNVGGv3IuicnkMtPfGf3Xtp8WCXs295iQ1pQ==", - "dev": true, - "dependencies": { - "debug": "2.6.9", - "finalhandler": "1.1.2", - "parseurl": "~1.3.3", - "utils-merge": "1.0.1" - }, - "engines": { - "node": ">= 0.10.0" - } - }, - "node_modules/connect/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/connect/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true - }, - "node_modules/content-type": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", - "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/convert-source-map": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", - "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==", - "dev": true - }, - "node_modules/cookie": { - "version": "0.4.2", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.2.tgz", - "integrity": "sha512-aSWTXFzaKWkvHO1Ny/s+ePFpvKsPnjc551iI41v3ny/ow6tBG5Vd+FuqGNhh1LxOmVzOlGUriIlOaokOvhaStA==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/core-js": { - "version": "3.28.0", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.28.0.tgz", - "integrity": "sha512-GiZn9D4Z/rSYvTeg1ljAIsEqFm0LaN9gVtwDCrKL80zHtS31p9BAjmTxVqTQDMpwlMolJZOFntUG2uwyj7DAqw==", - "hasInstallScript": true, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/core-js" - } - }, - "node_modules/core-js-compat": { - "version": "3.28.0", - "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.28.0.tgz", - "integrity": "sha512-myzPgE7QodMg4nnd3K1TDoES/nADRStM8Gpz0D6nhkwbmwEnE0ZGJgoWsvQ722FR8D7xS0n0LV556RcEicjTyg==", - "dev": true, - "dependencies": { - "browserslist": "^4.21.5" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/core-js" - } - }, - "node_modules/cors": { - "version": "2.8.5", - "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz", - "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==", - "dev": true, - "dependencies": { - "object-assign": "^4", - "vary": "^1" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", - "dev": true, - "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/cross-spawn/node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/custom-event": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/custom-event/-/custom-event-1.0.1.tgz", - "integrity": "sha512-GAj5FOq0Hd+RsCGVJxZuKaIDXDf3h6GQoNEjFgbLLI/trgtavwUbSnZ5pVfg27DVCaWjIohryS0JFwIJyT2cMg==", - "dev": true - }, - "node_modules/date-format": { - "version": "4.0.14", - "resolved": "https://registry.npmjs.org/date-format/-/date-format-4.0.14.tgz", - "integrity": "sha512-39BOQLs9ZjKh0/patS9nrT8wc3ioX3/eA/zgbKNopnF2wCqJEoxywwwElATYvRsXdnOxA/OQeQoFZ3rFjVajhg==", - "dev": true, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/debounce": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/debounce/-/debounce-1.2.1.tgz", - "integrity": "sha512-XRRe6Glud4rd/ZGQfiV1ruXSfbvfJedlV9Y6zOlP+2K04vBYiJEte6stfFkCP03aMnY5tsipamumUjL14fofug==", - "dev": true - }, - "node_modules/debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", - "dev": true, - "dependencies": { - "ms": "2.1.2" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/decamelize": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-4.0.0.tgz", - "integrity": "sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/deep-eql": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-4.1.3.tgz", - "integrity": "sha512-WaEtAOpRA1MQ0eohqZjpGD8zdI0Ovsm8mmFhaDN8dvDZzyoUMcYDnf5Y6iu7HTXxf8JDS23qWa4a+hKCDyOPzw==", - "dev": true, - "dependencies": { - "type-detect": "^4.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "dev": true - }, - "node_modules/deepmerge": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.0.tgz", - "integrity": "sha512-z2wJZXrmeHdvYJp/Ux55wIjqo81G5Bp4c+oELTW+7ar6SogWHajt5a9gO3s3IDaGSAXjDk0vlQKN3rms8ab3og==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/define-properties": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.0.tgz", - "integrity": "sha512-xvqAVKGfT1+UAvPwKTVw/njhdQ8ZhXK4lI0bCIuCMrp2up9nPnaDftrLtmpTazqd1o+UY4zgzU+avtMbDP+ldA==", - "dev": true, - "dependencies": { - "has-property-descriptors": "^1.0.0", - "object-keys": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/depd": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", - "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", - "dev": true, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/destroy": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", - "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", - "dev": true, - "engines": { - "node": ">= 0.8", - "npm": "1.2.8000 || >= 1.4.16" - } - }, - "node_modules/di": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/di/-/di-0.0.1.tgz", - "integrity": "sha512-uJaamHkagcZtHPqCIHZxnFrXlunQXgBOsZSUOWwFw31QJCAbyTBoHMW75YOTur5ZNx8pIeAKgf6GWIgaqqiLhA==", - "dev": true - }, - "node_modules/diff": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/diff/-/diff-5.0.0.tgz", - "integrity": "sha512-/VTCrvm5Z0JGty/BWHljh+BAiw3IK+2j87NGMu8Nwc/f48WoDAC395uomO9ZD117ZOBaHmkX1oyLvkVM/aIT3w==", - "dev": true, - "engines": { - "node": ">=0.3.1" - } - }, - "node_modules/doctrine": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", - "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", - "dev": true, - "dependencies": { - "esutils": "^2.0.2" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/dom-serialize": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/dom-serialize/-/dom-serialize-2.2.1.tgz", - "integrity": "sha512-Yra4DbvoW7/Z6LBN560ZwXMjoNOSAN2wRsKFGc4iBeso+mpIA6qj1vfdf9HpMaKAqG6wXTy+1SYEzmNpKXOSsQ==", - "dev": true, - "dependencies": { - "custom-event": "~1.0.0", - "ent": "~2.2.0", - "extend": "^3.0.0", - "void-elements": "^2.0.0" - } - }, - "node_modules/dotenv": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-7.0.0.tgz", - "integrity": "sha512-M3NhsLbV1i6HuGzBUH8vXrtxOk+tWmzWKDMbAVSUp3Zsjm7ywFeuwrUXhmhQyRK1q5B5GGy7hcXPbj3bnfZg2g==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/duplexer": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz", - "integrity": "sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==", - "dev": true - }, - "node_modules/ee-first": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", - "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==", - "dev": true - }, - "node_modules/electron-to-chromium": { - "version": "1.4.304", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.304.tgz", - "integrity": "sha512-6c8M+ojPgDIXN2NyfGn8oHASXYnayj+gSEnGeLMKb9zjsySeVB/j7KkNAAG9yDcv8gNlhvFg5REa1N/kQU6pgA==" - }, - "node_modules/emojis-list": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-3.0.0.tgz", - "integrity": "sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==", - "dev": true, - "engines": { - "node": ">= 4" - } - }, - "node_modules/encodeurl": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", - "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", - "dev": true, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/engine.io": { - "version": "6.4.2", - "resolved": "https://registry.npmjs.org/engine.io/-/engine.io-6.4.2.tgz", - "integrity": "sha512-FKn/3oMiJjrOEOeUub2WCox6JhxBXq/Zn3fZOMCBxKnNYtsdKjxhl7yR3fZhM9PV+rdE75SU5SYMc+2PGzo+Tg==", - "dev": true, - "dependencies": { - "@types/cookie": "^0.4.1", - "@types/cors": "^2.8.12", - "@types/node": ">=10.0.0", - "accepts": "~1.3.4", - "base64id": "2.0.0", - "cookie": "~0.4.1", - "cors": "~2.8.5", - "debug": "~4.3.1", - "engine.io-parser": "~5.0.3", - "ws": "~8.11.0" - }, - "engines": { - "node": ">=10.0.0" - } - }, - "node_modules/engine.io-parser": { - "version": "5.0.6", - "resolved": "https://registry.npmjs.org/engine.io-parser/-/engine.io-parser-5.0.6.tgz", - "integrity": "sha512-tjuoZDMAdEhVnSFleYPCtdL2GXwVTGtNjoeJd9IhIG3C1xs9uwxqRNEu5WpnDZCaozwVlK/nuQhpodhXSIMaxw==", - "dev": true, - "engines": { - "node": ">=10.0.0" - } - }, - "node_modules/enhanced-resolve": { - "version": "5.15.0", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.15.0.tgz", - "integrity": "sha512-LXYT42KJ7lpIKECr2mAXIaMldcNCh/7E0KBKOu4KSfkHmP+mZmSs+8V5gBAqisWBy0OO4W5Oyys0GO1Y8KtdKg==", - "dependencies": { - "graceful-fs": "^4.2.4", - "tapable": "^2.2.0" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/ent": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/ent/-/ent-2.2.0.tgz", - "integrity": "sha512-GHrMyVZQWvTIdDtpiEXdHZnFQKzeO09apj8Cbl4pKWy4i0Oprcq17usfDt5aO63swf0JOeMWjWQE/LzgSRuWpA==", - "dev": true - }, - "node_modules/es-abstract": { - "version": "1.21.1", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.21.1.tgz", - "integrity": "sha512-QudMsPOz86xYz/1dG1OuGBKOELjCh99IIWHLzy5znUB6j8xG2yMA7bfTV86VSqKF+Y/H08vQPR+9jyXpuC6hfg==", - "dev": true, - "dependencies": { - "available-typed-arrays": "^1.0.5", - "call-bind": "^1.0.2", - "es-set-tostringtag": "^2.0.1", - "es-to-primitive": "^1.2.1", - "function-bind": "^1.1.1", - "function.prototype.name": "^1.1.5", - "get-intrinsic": "^1.1.3", - "get-symbol-description": "^1.0.0", - "globalthis": "^1.0.3", - "gopd": "^1.0.1", - "has": "^1.0.3", - "has-property-descriptors": "^1.0.0", - "has-proto": "^1.0.1", - "has-symbols": "^1.0.3", - "internal-slot": "^1.0.4", - "is-array-buffer": "^3.0.1", - "is-callable": "^1.2.7", - "is-negative-zero": "^2.0.2", - "is-regex": "^1.1.4", - "is-shared-array-buffer": "^1.0.2", - "is-string": "^1.0.7", - "is-typed-array": "^1.1.10", - "is-weakref": "^1.0.2", - "object-inspect": "^1.12.2", - "object-keys": "^1.1.1", - "object.assign": "^4.1.4", - "regexp.prototype.flags": "^1.4.3", - "safe-regex-test": "^1.0.0", - "string.prototype.trimend": "^1.0.6", - "string.prototype.trimstart": "^1.0.6", - "typed-array-length": "^1.0.4", - "unbox-primitive": "^1.0.2", - "which-typed-array": "^1.1.9" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/es-module-lexer": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.3.0.tgz", - "integrity": "sha512-vZK7T0N2CBmBOixhmjdqx2gWVbFZ4DXZ/NyRMZVlJXPa7CyFS+/a4QQsDGDQy9ZfEzxFuNEsMLeQJnKP2p5/JA==" - }, - "node_modules/es-set-tostringtag": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.1.tgz", - "integrity": "sha512-g3OMbtlwY3QewlqAiMLI47KywjWZoEytKr8pf6iTC8uJq5bIAH52Z9pnQ8pVL6whrCto53JZDuUIsifGeLorTg==", - "dev": true, - "dependencies": { - "get-intrinsic": "^1.1.3", - "has": "^1.0.3", - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-shim-unscopables": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.0.tgz", - "integrity": "sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w==", - "dev": true, - "dependencies": { - "has": "^1.0.3" - } - }, - "node_modules/es-to-primitive": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", - "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", - "dev": true, - "dependencies": { - "is-callable": "^1.1.4", - "is-date-object": "^1.0.1", - "is-symbol": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/es5-shim": { - "version": "4.5.15", - "resolved": "https://registry.npmjs.org/es5-shim/-/es5-shim-4.5.15.tgz", - "integrity": "sha512-FYpuxEjMeDvU4rulKqFdukQyZSTpzhg4ScQHrAosrlVpR6GFyaw14f74yn2+4BugniIS0Frpg7TvwZocU4ZMTw==", - "dev": true, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/es6-promise": { - "version": "4.2.8", - "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.8.tgz", - "integrity": "sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w==", - "dev": true - }, - "node_modules/es6-promisify": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/es6-promisify/-/es6-promisify-5.0.0.tgz", - "integrity": "sha512-C+d6UdsYDk0lMebHNR4S2NybQMMngAOnOwYBQjTOiv0MkoJMP0Myw2mgpDLBcpfCmRLxyFqYhS/CfOENq4SJhQ==", - "dev": true, - "dependencies": { - "es6-promise": "^4.0.3" - } - }, - "node_modules/es6-shim": { - "version": "0.35.7", - "resolved": "https://registry.npmjs.org/es6-shim/-/es6-shim-0.35.7.tgz", - "integrity": "sha512-baZkUfTDSx7X69+NA8imbvGrsPfqH0MX7ADdIDjqwsI8lkTgLIiD2QWrUCSGsUQ0YMnSCA/4pNgSyXdnLHWf3A==", - "dev": true - }, - "node_modules/escalade": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", - "engines": { - "node": ">=6" - } - }, - "node_modules/escape-html": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", - "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==", - "dev": true - }, - "node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "dev": true, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/eslint": { - "version": "8.43.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.43.0.tgz", - "integrity": "sha512-aaCpf2JqqKesMFGgmRPessmVKjcGXqdlAYLLC3THM8t5nBRZRQ+st5WM/hoJXkdioEXLLbXgclUpM0TXo5HX5Q==", - "dev": true, - "dependencies": { - "@eslint-community/eslint-utils": "^4.2.0", - "@eslint-community/regexpp": "^4.4.0", - "@eslint/eslintrc": "^2.0.3", - "@eslint/js": "8.43.0", - "@humanwhocodes/config-array": "^0.11.10", - "@humanwhocodes/module-importer": "^1.0.1", - "@nodelib/fs.walk": "^1.2.8", - "ajv": "^6.10.0", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.2", - "debug": "^4.3.2", - "doctrine": "^3.0.0", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^7.2.0", - "eslint-visitor-keys": "^3.4.1", - "espree": "^9.5.2", - "esquery": "^1.4.2", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^6.0.1", - "find-up": "^5.0.0", - "glob-parent": "^6.0.2", - "globals": "^13.19.0", - "graphemer": "^1.4.0", - "ignore": "^5.2.0", - "import-fresh": "^3.0.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "is-path-inside": "^3.0.3", - "js-yaml": "^4.1.0", - "json-stable-stringify-without-jsonify": "^1.0.1", - "levn": "^0.4.1", - "lodash.merge": "^4.6.2", - "minimatch": "^3.1.2", - "natural-compare": "^1.4.0", - "optionator": "^0.9.1", - "strip-ansi": "^6.0.1", - "strip-json-comments": "^3.1.0", - "text-table": "^0.2.0" - }, - "bin": { - "eslint": "bin/eslint.js" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint-import-resolver-node": { - "version": "0.3.7", - "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.7.tgz", - "integrity": "sha512-gozW2blMLJCeFpBwugLTGyvVjNoeo1knonXAcatC6bjPBZitotxdWf7Gimr25N4c0AAOo4eOUfaG82IJPDpqCA==", - "dev": true, - "dependencies": { - "debug": "^3.2.7", - "is-core-module": "^2.11.0", - "resolve": "^1.22.1" - } - }, - "node_modules/eslint-import-resolver-node/node_modules/debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, - "dependencies": { - "ms": "^2.1.1" - } - }, - "node_modules/eslint-module-utils": { - "version": "2.7.4", - "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.7.4.tgz", - "integrity": "sha512-j4GT+rqzCoRKHwURX7pddtIPGySnX9Si/cgMI5ztrcqOPtk5dDEeZ34CQVPphnqkJytlc97Vuk05Um2mJ3gEQA==", - "dev": true, - "dependencies": { - "debug": "^3.2.7" - }, - "engines": { - "node": ">=4" - }, - "peerDependenciesMeta": { - "eslint": { - "optional": true - } - } - }, - "node_modules/eslint-module-utils/node_modules/debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, - "dependencies": { - "ms": "^2.1.1" - } - }, - "node_modules/eslint-plugin-es": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-es/-/eslint-plugin-es-1.4.1.tgz", - "integrity": "sha512-5fa/gR2yR3NxQf+UXkeLeP8FBBl6tSgdrAz1+cF84v1FMM4twGwQoqTnn+QxFLcPOrF4pdKEJKDB/q9GoyJrCA==", - "dev": true, - "dependencies": { - "eslint-utils": "^1.4.2", - "regexpp": "^2.0.1" - }, - "engines": { - "node": ">=6.5.0" - }, - "peerDependencies": { - "eslint": ">=4.19.1" - } - }, - "node_modules/eslint-plugin-import": { - "version": "2.27.5", - "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.27.5.tgz", - "integrity": "sha512-LmEt3GVofgiGuiE+ORpnvP+kAm3h6MLZJ4Q5HCyHADofsb4VzXFsRiWj3c0OFiV+3DWFh0qg3v9gcPlfc3zRow==", - "dev": true, - "dependencies": { - "array-includes": "^3.1.6", - "array.prototype.flat": "^1.3.1", - "array.prototype.flatmap": "^1.3.1", - "debug": "^3.2.7", - "doctrine": "^2.1.0", - "eslint-import-resolver-node": "^0.3.7", - "eslint-module-utils": "^2.7.4", - "has": "^1.0.3", - "is-core-module": "^2.11.0", - "is-glob": "^4.0.3", - "minimatch": "^3.1.2", - "object.values": "^1.1.6", - "resolve": "^1.22.1", - "semver": "^6.3.0", - "tsconfig-paths": "^3.14.1" - }, - "engines": { - "node": ">=4" - }, - "peerDependencies": { - "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8" - } - }, - "node_modules/eslint-plugin-import/node_modules/debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, - "dependencies": { - "ms": "^2.1.1" - } - }, - "node_modules/eslint-plugin-import/node_modules/doctrine": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", - "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", - "dev": true, - "dependencies": { - "esutils": "^2.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/eslint-plugin-node": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-node/-/eslint-plugin-node-8.0.1.tgz", - "integrity": "sha512-ZjOjbjEi6jd82rIpFSgagv4CHWzG9xsQAVp1ZPlhRnnYxcTgENUVBvhYmkQ7GvT1QFijUSo69RaiOJKhMu6i8w==", - "dev": true, - "dependencies": { - "eslint-plugin-es": "^1.3.1", - "eslint-utils": "^1.3.1", - "ignore": "^5.0.2", - "minimatch": "^3.0.4", - "resolve": "^1.8.1", - "semver": "^5.5.0" - }, - "engines": { - "node": ">=6" - }, - "peerDependencies": { - "eslint": ">=4.19.1" - } - }, - "node_modules/eslint-plugin-node/node_modules/semver": { - "version": "5.7.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", - "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", - "dev": true, - "bin": { - "semver": "bin/semver" - } - }, - "node_modules/eslint-plugin-prettier": { - "version": "3.4.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-3.4.1.tgz", - "integrity": "sha512-htg25EUYUeIhKHXjOinK4BgCcDwtLHjqaxCDsMy5nbnUMkKFvIhMVCp+5GFUXQ4Nr8lBsPqtGAqBenbpFqAA2g==", - "dev": true, - "dependencies": { - "prettier-linter-helpers": "^1.0.0" - }, - "engines": { - "node": ">=6.0.0" - }, - "peerDependencies": { - "eslint": ">=5.0.0", - "prettier": ">=1.13.0" - }, - "peerDependenciesMeta": { - "eslint-config-prettier": { - "optional": true - } - } - }, - "node_modules/eslint-scope": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.0.tgz", - "integrity": "sha512-DYj5deGlHBfMt15J7rdtyKNq/Nqlv5KfU4iodrQ019XESsRnwXH9KAE0y3cwtUHDo2ob7CypAnCqefh6vioWRw==", - "dev": true, - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint-utils": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-1.4.3.tgz", - "integrity": "sha512-fbBN5W2xdY45KulGXmLHZ3c3FHfVYmKg0IrAKGOkT/464PQsx2UeIzfz1RmEci+KLm1bBaAzZAh8+/E+XAeZ8Q==", - "dev": true, - "dependencies": { - "eslint-visitor-keys": "^1.1.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/eslint-visitor-keys": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", - "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/eslint/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/eslint/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/eslint/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/eslint/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/eslint/node_modules/escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint/node_modules/eslint-visitor-keys": { - "version": "3.4.1", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz", - "integrity": "sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==", - "dev": true, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint/node_modules/find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", - "dev": true, - "dependencies": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint/node_modules/glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", - "dev": true, - "dependencies": { - "is-glob": "^4.0.3" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/eslint/node_modules/globals": { - "version": "13.20.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", - "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", - "dev": true, - "dependencies": { - "type-fest": "^0.20.2" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/eslint/node_modules/locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "dev": true, - "dependencies": { - "p-locate": "^5.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint/node_modules/p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "dependencies": { - "yocto-queue": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint/node_modules/p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", - "dev": true, - "dependencies": { - "p-limit": "^3.0.2" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/espree": { - "version": "9.5.2", - "resolved": "https://registry.npmjs.org/espree/-/espree-9.5.2.tgz", - "integrity": "sha512-7OASN1Wma5fum5SrNhFMAMJxOUAbhyfQ8dQ//PJaJbNw0URTPWqIghHWt1MmAANKhHZIYOHruW4Kw4ruUWOdGw==", - "dev": true, - "dependencies": { - "acorn": "^8.8.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^3.4.1" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/espree/node_modules/eslint-visitor-keys": { - "version": "3.4.1", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz", - "integrity": "sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==", - "dev": true, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/esquery": { - "version": "1.4.2", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.4.2.tgz", - "integrity": "sha512-JVSoLdTlTDkmjFmab7H/9SL9qGSyjElT3myyKp7krqjVFQCDLmj1QFaCLRFBszBKI0XVZaiiXvuPIX3ZwHe1Ng==", - "dev": true, - "dependencies": { - "estraverse": "^5.1.0" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", - "dependencies": { - "estraverse": "^5.2.0" - }, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "engines": { - "node": ">=4.0" - } - }, - "node_modules/estree-walker": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", - "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", - "dev": true - }, - "node_modules/esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/event-stream": { - "version": "3.3.4", - "resolved": "https://registry.npmjs.org/event-stream/-/event-stream-3.3.4.tgz", - "integrity": "sha512-QHpkERcGsR0T7Qm3HNJSyXKEEj8AHNxkY3PK8TS2KJvQ7NiSHe3DDpwVKKtoYprL/AreyzFBeIkBIWChAqn60g==", - "dev": true, - "dependencies": { - "duplexer": "~0.1.1", - "from": "~0", - "map-stream": "~0.1.0", - "pause-stream": "0.0.11", - "split": "0.3", - "stream-combiner": "~0.0.4", - "through": "~2.3.1" - } - }, - "node_modules/eventemitter3": { - "version": "4.0.7", - "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz", - "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==" - }, - "node_modules/events": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", - "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", - "engines": { - "node": ">=0.8.x" - } - }, - "node_modules/extend": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", - "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", - "dev": true - }, - "node_modules/fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" - }, - "node_modules/fast-diff": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.2.0.tgz", - "integrity": "sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w==", - "dev": true - }, - "node_modules/fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" - }, - "node_modules/fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", - "dev": true - }, - "node_modules/fastq": { - "version": "1.15.0", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", - "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", - "dev": true, - "dependencies": { - "reusify": "^1.0.4" - } - }, - "node_modules/file-entry-cache": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", - "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", - "dev": true, - "dependencies": { - "flat-cache": "^3.0.4" - }, - "engines": { - "node": "^10.12.0 || >=12.0.0" - } - }, - "node_modules/fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", - "dev": true, - "dependencies": { - "to-regex-range": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/finalhandler": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.2.tgz", - "integrity": "sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA==", - "dev": true, - "dependencies": { - "debug": "2.6.9", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "on-finished": "~2.3.0", - "parseurl": "~1.3.3", - "statuses": "~1.5.0", - "unpipe": "~1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/finalhandler/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/finalhandler/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true - }, - "node_modules/finalhandler/node_modules/on-finished": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", - "integrity": "sha512-ikqdkGAAyf/X/gPhXGvfgAytDZtDbr+bkNUJ0N9h5MI/dmdgCs3l6hoHrcUv41sRKew3jIwrp4qQDXiK99Utww==", - "dev": true, - "dependencies": { - "ee-first": "1.1.1" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/finalhandler/node_modules/statuses": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", - "integrity": "sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/find-cache-dir": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.3.2.tgz", - "integrity": "sha512-wXZV5emFEjrridIgED11OoUKLxiYjAcqot/NJdAkOhlJ+vGzwhOAfcG5OX1jP+S0PcjEn8bdMJv+g2jwQ3Onig==", - "dev": true, - "dependencies": { - "commondir": "^1.0.1", - "make-dir": "^3.0.2", - "pkg-dir": "^4.1.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/avajs/find-cache-dir?sponsor=1" - } - }, - "node_modules/find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/flat": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz", - "integrity": "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==", - "dev": true, - "bin": { - "flat": "cli.js" - } - }, - "node_modules/flat-cache": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", - "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", - "dev": true, - "dependencies": { - "flatted": "^3.1.0", - "rimraf": "^3.0.2" - }, - "engines": { - "node": "^10.12.0 || >=12.0.0" - } - }, - "node_modules/flatted": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz", - "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==", - "dev": true - }, - "node_modules/follow-redirects": { - "version": "1.15.2", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz", - "integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==", - "funding": [ - { - "type": "individual", - "url": "https://github.com/sponsors/RubenVerborgh" - } - ], - "engines": { - "node": ">=4.0" - }, - "peerDependenciesMeta": { - "debug": { - "optional": true - } - } - }, - "node_modules/for-each": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", - "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", - "dev": true, - "dependencies": { - "is-callable": "^1.1.3" - } - }, - "node_modules/from": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/from/-/from-0.1.7.tgz", - "integrity": "sha512-twe20eF1OxVxp/ML/kq2p1uc6KvFK/+vs8WjEbeKmV2He22MKm7YF2ANIt+EOqhJ5L3K/SuuPhk0hWQDjOM23g==", - "dev": true - }, - "node_modules/fs-access": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/fs-access/-/fs-access-1.0.1.tgz", - "integrity": "sha512-05cXDIwNbFaoFWaz5gNHlUTbH5whiss/hr/ibzPd4MH3cR4w0ZKeIPiVdbyJurg3O5r/Bjpvn9KOb1/rPMf3nA==", - "dev": true, - "dependencies": { - "null-check": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/fs-extra": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", - "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", - "dev": true, - "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^4.0.0", - "universalify": "^0.1.0" - }, - "engines": { - "node": ">=6 <7 || >=8" - } - }, - "node_modules/fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", - "dev": true - }, - "node_modules/fsevents": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", - "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", - "dev": true, - "hasInstallScript": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, - "node_modules/function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", - "dev": true - }, - "node_modules/function.prototype.name": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.5.tgz", - "integrity": "sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "es-abstract": "^1.19.0", - "functions-have-names": "^1.2.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/functions-have-names": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", - "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/gensync": { - "version": "1.0.0-beta.2", - "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", - "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/get-caller-file": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", - "dev": true, - "engines": { - "node": "6.* || 8.* || >= 10.*" - } - }, - "node_modules/get-func-name": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.2.tgz", - "integrity": "sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==", - "dev": true, - "engines": { - "node": "*" - } - }, - "node_modules/get-intrinsic": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.0.tgz", - "integrity": "sha512-L049y6nFOuom5wGyRc3/gdTLO94dySVKRACj1RmJZBQXlbTMhtNIgkWkUHq+jYmZvKf14EW1EoJnnjbmoHij0Q==", - "dev": true, - "dependencies": { - "function-bind": "^1.1.1", - "has": "^1.0.3", - "has-symbols": "^1.0.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/get-symbol-description": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", - "integrity": "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/glob": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "dev": true, - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/glob-to-regexp": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", - "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==" - }, - "node_modules/globals": { - "version": "11.12.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", - "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/globalthis": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz", - "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==", - "dev": true, - "dependencies": { - "define-properties": "^1.1.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/gopd": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", - "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", - "dev": true, - "dependencies": { - "get-intrinsic": "^1.1.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/graceful-fs": { - "version": "4.2.10", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", - "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==" - }, - "node_modules/graphemer": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", - "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", - "dev": true - }, - "node_modules/has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "dev": true, - "dependencies": { - "function-bind": "^1.1.1" - }, - "engines": { - "node": ">= 0.4.0" - } - }, - "node_modules/has-bigints": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", - "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/has-property-descriptors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz", - "integrity": "sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==", - "dev": true, - "dependencies": { - "get-intrinsic": "^1.1.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz", - "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-symbols": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", - "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-tostringtag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", - "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", - "dev": true, - "dependencies": { - "has-symbols": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/he": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", - "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", - "dev": true, - "bin": { - "he": "bin/he" - } - }, - "node_modules/http-errors": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", - "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", - "dev": true, - "dependencies": { - "depd": "2.0.0", - "inherits": "2.0.4", - "setprototypeof": "1.2.0", - "statuses": "2.0.1", - "toidentifier": "1.0.1" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/http-proxy": { - "version": "1.18.1", - "resolved": "https://registry.npmjs.org/http-proxy/-/http-proxy-1.18.1.tgz", - "integrity": "sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ==", - "dependencies": { - "eventemitter3": "^4.0.0", - "follow-redirects": "^1.0.0", - "requires-port": "^1.0.0" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/https-proxy-agent": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-2.2.4.tgz", - "integrity": "sha512-OmvfoQ53WLjtA9HeYP9RNrWMJzzAz1JGaSFr1nijg0PVR1JaD/xbJq1mdEIIlxGpXp9eSe/O2LgU9DJmTPd0Eg==", - "dev": true, - "dependencies": { - "agent-base": "^4.3.0", - "debug": "^3.1.0" - }, - "engines": { - "node": ">= 4.5.0" - } - }, - "node_modules/https-proxy-agent/node_modules/debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, - "dependencies": { - "ms": "^2.1.1" - } - }, - "node_modules/iconv-lite": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "dev": true, - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/ignore": { - "version": "5.2.4", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", - "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", - "dev": true, - "engines": { - "node": ">= 4" - } - }, - "node_modules/import-fresh": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", - "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", - "dev": true, - "dependencies": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", - "dev": true, - "engines": { - "node": ">=0.8.19" - } - }, - "node_modules/inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", - "dev": true, - "dependencies": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true - }, - "node_modules/internal-slot": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.5.tgz", - "integrity": "sha512-Y+R5hJrzs52QCG2laLn4udYVnxsfny9CpOhNhUvk/SSSVyF6T27FzRbF0sroPidSu3X8oEAkOn2K804mjpt6UQ==", - "dev": true, - "dependencies": { - "get-intrinsic": "^1.2.0", - "has": "^1.0.3", - "side-channel": "^1.0.4" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/is-array-buffer": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.1.tgz", - "integrity": "sha512-ASfLknmY8Xa2XtB4wmbz13Wu202baeA18cJBCeCy0wXUHZF0IPyVEXqKEcd+t2fNSLLL1vC6k7lxZEojNbISXQ==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.3", - "is-typed-array": "^1.1.10" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-bigint": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", - "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", - "dev": true, - "dependencies": { - "has-bigints": "^1.0.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-binary-path": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", - "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", - "dev": true, - "dependencies": { - "binary-extensions": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/is-boolean-object": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", - "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-builtin-module": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/is-builtin-module/-/is-builtin-module-3.2.1.tgz", - "integrity": "sha512-BSLE3HnV2syZ0FK0iMA/yUGplUeMmNz4AW5fnTunbCIqZi4vG3WjJT9FHMy5D69xmAYBHXQhJdALdpwVxV501A==", - "dev": true, - "dependencies": { - "builtin-modules": "^3.3.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-callable": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", - "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-core-module": { - "version": "2.11.0", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.11.0.tgz", - "integrity": "sha512-RRjxlvLDkD1YJwDbroBHMb+cukurkDWNyHx7D3oNB5x9rb5ogcksMC5wHCadcXoo67gVr/+3GFySh3134zi6rw==", - "dev": true, - "dependencies": { - "has": "^1.0.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-date-object": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", - "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", - "dev": true, - "dependencies": { - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-docker": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", - "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", - "dev": true, - "bin": { - "is-docker": "cli.js" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "dev": true, - "dependencies": { - "is-extglob": "^2.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-module": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-module/-/is-module-1.0.0.tgz", - "integrity": "sha512-51ypPSPCoTEIN9dy5Oy+h4pShgJmPCygKfyRCISBI+JoWT/2oJvK8QPxmwv7b/p239jXrm9M1mlQbyKJ5A152g==", - "dev": true - }, - "node_modules/is-negative-zero": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", - "integrity": "sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true, - "engines": { - "node": ">=0.12.0" - } - }, - "node_modules/is-number-object": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", - "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", - "dev": true, - "dependencies": { - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-path-inside": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", - "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/is-plain-obj": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz", - "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/is-reference": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/is-reference/-/is-reference-1.2.1.tgz", - "integrity": "sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ==", - "dev": true, - "dependencies": { - "@types/estree": "*" - } - }, - "node_modules/is-regex": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", - "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-running": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-running/-/is-running-2.1.0.tgz", - "integrity": "sha512-mjJd3PujZMl7j+D395WTIO5tU5RIDBfVSRtRR4VOJou3H66E38UjbjvDGh3slJzPuolsb+yQFqwHNNdyp5jg3w==", - "dev": true - }, - "node_modules/is-shared-array-buffer": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", - "integrity": "sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-string": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", - "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", - "dev": true, - "dependencies": { - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-symbol": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", - "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", - "dev": true, - "dependencies": { - "has-symbols": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-typed-array": { - "version": "1.1.10", - "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.10.tgz", - "integrity": "sha512-PJqgEHiWZvMpaFZ3uTc8kHPM4+4ADTlDniuQL7cU/UDA0Ql7F70yGfHph3cLNe+c9toaigv+DFzTJKhc2CtO6A==", - "dev": true, - "dependencies": { - "available-typed-arrays": "^1.0.5", - "call-bind": "^1.0.2", - "for-each": "^0.3.3", - "gopd": "^1.0.1", - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-unicode-supported": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz", - "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-weakref": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", - "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-wsl": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", - "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", - "dev": true, - "dependencies": { - "is-docker": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==", - "dev": true - }, - "node_modules/isbinaryfile": { - "version": "4.0.10", - "resolved": "https://registry.npmjs.org/isbinaryfile/-/isbinaryfile-4.0.10.tgz", - "integrity": "sha512-iHrqe5shvBUcFbmZq9zOQHBoeOhZJu6RQGrDpBgenUm/Am+F3JM2MgQj+rK3Z601fzrL5gLZWtAPH2OBaSVcyw==", - "dev": true, - "engines": { - "node": ">= 8.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/gjtorikian/" - } - }, - "node_modules/isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true - }, - "node_modules/js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true - }, - "node_modules/js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "dev": true, - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/jsesc": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", - "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", - "dev": true, - "bin": { - "jsesc": "bin/jsesc" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/json-parse-even-better-errors": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", - "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==" - }, - "node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" - }, - "node_modules/json-stable-stringify-without-jsonify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", - "dev": true - }, - "node_modules/json5": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", - "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", - "dev": true, - "bin": { - "json5": "lib/cli.js" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/jsonfile": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", - "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", - "dev": true, - "optionalDependencies": { - "graceful-fs": "^4.1.6" - } - }, - "node_modules/just-extend": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/just-extend/-/just-extend-4.2.1.tgz", - "integrity": "sha512-g3UB796vUFIY90VIv/WX3L2c8CS2MdWUww3CNrYmqza1Fg0DURc2K/O4YrnklBdQarSJ/y8JnJYDGc+1iumQjg==", - "dev": true - }, - "node_modules/karma": { - "version": "6.4.1", - "resolved": "https://registry.npmjs.org/karma/-/karma-6.4.1.tgz", - "integrity": "sha512-Cj57NKOskK7wtFWSlMvZf459iX+kpYIPXmkNUzP2WAFcA7nhr/ALn5R7sw3w+1udFDcpMx/tuB8d5amgm3ijaA==", - "dev": true, - "dependencies": { - "@colors/colors": "1.5.0", - "body-parser": "^1.19.0", - "braces": "^3.0.2", - "chokidar": "^3.5.1", - "connect": "^3.7.0", - "di": "^0.0.1", - "dom-serialize": "^2.2.1", - "glob": "^7.1.7", - "graceful-fs": "^4.2.6", - "http-proxy": "^1.18.1", - "isbinaryfile": "^4.0.8", - "lodash": "^4.17.21", - "log4js": "^6.4.1", - "mime": "^2.5.2", - "minimatch": "^3.0.4", - "mkdirp": "^0.5.5", - "qjobs": "^1.2.0", - "range-parser": "^1.2.1", - "rimraf": "^3.0.2", - "socket.io": "^4.4.1", - "source-map": "^0.6.1", - "tmp": "^0.2.1", - "ua-parser-js": "^0.7.30", - "yargs": "^16.1.1" - }, - "bin": { - "karma": "bin/karma" - }, - "engines": { - "node": ">= 10" - } - }, - "node_modules/karma-babel-preprocessor": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/karma-babel-preprocessor/-/karma-babel-preprocessor-8.0.2.tgz", - "integrity": "sha512-6ZUnHwaK2EyhgxbgeSJW6n6WZUYSEdekHIV/qDUnPgMkVzQBHEvd07d2mTL5AQjV8uTUgH6XslhaPrp+fHWH2A==", - "dev": true, - "engines": { - "node": ">=6" - }, - "peerDependencies": { - "@babel/core": "7" - } - }, - "node_modules/karma-browserstack-launcher": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/karma-browserstack-launcher/-/karma-browserstack-launcher-1.6.0.tgz", - "integrity": "sha512-Y/UWPdHZkHIVH2To4GWHCTzmrsB6H7PBWy6pw+TWz5sr4HW2mcE+Uj6qWgoVNxvQU1Pfn5LQQzI6EQ65p8QbiQ==", - "dev": true, - "dependencies": { - "browserstack": "~1.5.1", - "browserstack-local": "^1.3.7", - "q": "~1.5.0" - }, - "peerDependencies": { - "karma": ">=0.9" - } - }, - "node_modules/karma-chai": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/karma-chai/-/karma-chai-0.1.0.tgz", - "integrity": "sha512-mqKCkHwzPMhgTYca10S90aCEX9+HjVjjrBFAsw36Zj7BlQNbokXXCAe6Ji04VUMsxcY5RLP7YphpfO06XOubdg==", - "dev": true, - "peerDependencies": { - "chai": "*", - "karma": ">=0.10.9" - } - }, - "node_modules/karma-chrome-launcher": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/karma-chrome-launcher/-/karma-chrome-launcher-2.2.0.tgz", - "integrity": "sha512-uf/ZVpAabDBPvdPdveyk1EPgbnloPvFFGgmRhYLTDH7gEB4nZdSBk8yTU47w1g/drLSx5uMOkjKk7IWKfWg/+w==", - "dev": true, - "dependencies": { - "fs-access": "^1.0.0", - "which": "^1.2.1" - } - }, - "node_modules/karma-cli": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/karma-cli/-/karma-cli-2.0.0.tgz", - "integrity": "sha512-1Kb28UILg1ZsfqQmeELbPzuEb5C6GZJfVIk0qOr8LNYQuYWmAaqP16WpbpKEjhejDrDYyYOwwJXSZO6u7q5Pvw==", - "dev": true, - "dependencies": { - "resolve": "^1.3.3" - }, - "bin": { - "karma": "bin/karma" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/karma-es6-shim": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/karma-es6-shim/-/karma-es6-shim-1.0.0.tgz", - "integrity": "sha512-G2AiltA80A/MLgANB57m2LOPf4e0MiqiwbEm7NsuELpSQ4vvwcsGHlEYFhW7E86AUH56Rf5v3lo1ro+Sx1KjkQ==", - "dev": true, - "dependencies": { - "es5-shim": "~4.5.8", - "es6-shim": "~0.35.0" - } - }, - "node_modules/karma-firefox-launcher": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/karma-firefox-launcher/-/karma-firefox-launcher-1.3.0.tgz", - "integrity": "sha512-Fi7xPhwrRgr+94BnHX0F5dCl1miIW4RHnzjIGxF8GaIEp7rNqX7LSi7ok63VXs3PS/5MQaQMhGxw+bvD+pibBQ==", - "dev": true, - "dependencies": { - "is-wsl": "^2.1.0" - } - }, - "node_modules/karma-html": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/karma-html/-/karma-html-1.0.5.tgz", - "integrity": "sha512-KiMO08O7BEAYGpzEK5wO7ocvA3bqAv4ehaltKNB//SYEhC0ODocFI2vkb92WJoxHacpOjXy7/CvbRsBNEPqEKA==", - "dev": true, - "dependencies": { - "glob": "^7.1.2" - } - }, - "node_modules/karma-mocha": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/karma-mocha/-/karma-mocha-2.0.1.tgz", - "integrity": "sha512-Tzd5HBjm8his2OA4bouAsATYEpZrp9vC7z5E5j4C5Of5Rrs1jY67RAwXNcVmd/Bnk1wgvQRou0zGVLey44G4tQ==", - "dev": true, - "dependencies": { - "minimist": "^1.2.3" - } - }, - "node_modules/karma-requirejs": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/karma-requirejs/-/karma-requirejs-1.1.0.tgz", - "integrity": "sha512-MHTOYKdwwJBkvYid0TaYvBzOnFH3TDtzo6ie5E4o9SaUSXXsfMRLa/whUz6efVIgTxj1xnKYasNn/XwEgJeB/Q==", - "dev": true, - "peerDependencies": { - "karma": ">=0.9", - "requirejs": "^2.1.0" - } - }, - "node_modules/karma-rollup-preprocessor": { - "version": "7.0.8", - "resolved": "https://registry.npmjs.org/karma-rollup-preprocessor/-/karma-rollup-preprocessor-7.0.8.tgz", - "integrity": "sha512-WiuBCS9qsatJuR17dghiTARBZ7LF+ml+eb7qJXhw7IbsdY0lTWELDRQC/93J9i6636CsAXVBL3VJF4WtaFLZzA==", - "dev": true, - "dependencies": { - "chokidar": "^3.3.1", - "debounce": "^1.2.0" - }, - "engines": { - "node": ">= 8.0.0" - }, - "peerDependencies": { - "rollup": ">= 1.0.0" - } - }, - "node_modules/karma-webpack": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/karma-webpack/-/karma-webpack-5.0.0.tgz", - "integrity": "sha512-+54i/cd3/piZuP3dr54+NcFeKOPnys5QeM1IY+0SPASwrtHsliXUiCL50iW+K9WWA7RvamC4macvvQ86l3KtaA==", - "dev": true, - "dependencies": { - "glob": "^7.1.3", - "minimatch": "^3.0.4", - "webpack-merge": "^4.1.5" - }, - "engines": { - "node": ">= 6" - }, - "peerDependencies": { - "webpack": "^5.0.0" - } - }, - "node_modules/karma/node_modules/tmp": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.1.tgz", - "integrity": "sha512-76SUhtfqR2Ijn+xllcI5P1oyannHNHByD80W1q447gU3mp9G9PSpGdWmjUOHRDPiHYacIk66W7ubDTuPF3BEtQ==", - "dev": true, - "dependencies": { - "rimraf": "^3.0.0" - }, - "engines": { - "node": ">=8.17.0" - } - }, - "node_modules/levn": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", - "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", - "dev": true, - "dependencies": { - "prelude-ls": "^1.2.1", - "type-check": "~0.4.0" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/loader-runner": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.0.tgz", - "integrity": "sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==", - "engines": { - "node": ">=6.11.5" - } - }, - "node_modules/loader-utils": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz", - "integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==", - "dev": true, - "dependencies": { - "big.js": "^5.2.2", - "emojis-list": "^3.0.0", - "json5": "^2.1.2" - }, - "engines": { - "node": ">=8.9.0" - } - }, - "node_modules/locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "dependencies": { - "p-locate": "^4.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/lodash": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", - "dev": true - }, - "node_modules/lodash.debounce": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", - "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==", - "dev": true - }, - "node_modules/lodash.merge": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", - "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", - "dev": true - }, - "node_modules/log-symbols": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", - "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==", - "dev": true, - "dependencies": { - "chalk": "^4.1.0", - "is-unicode-supported": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/log-symbols/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/log-symbols/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/log-symbols/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/log-symbols/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/log-symbols/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/log-symbols/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/log4js": { - "version": "6.8.0", - "resolved": "https://registry.npmjs.org/log4js/-/log4js-6.8.0.tgz", - "integrity": "sha512-g+V8gZyurIexrOvWQ+AcZsIvuK/lBnx2argejZxL4gVZ4Hq02kUYH6WZOnqxgBml+zzQZYdaEoTN84B6Hzm8Fg==", - "dev": true, - "dependencies": { - "date-format": "^4.0.14", - "debug": "^4.3.4", - "flatted": "^3.2.7", - "rfdc": "^1.3.0", - "streamroller": "^3.1.5" - }, - "engines": { - "node": ">=8.0" - } - }, - "node_modules/lolex": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/lolex/-/lolex-4.2.0.tgz", - "integrity": "sha512-gKO5uExCXvSm6zbF562EvM+rd1kQDnB9AZBbiQVzf1ZmdDpxUSvpnAaVOP83N/31mRK8Ml8/VE8DMvsAZQ+7wg==", - "dev": true - }, - "node_modules/loupe": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/loupe/-/loupe-2.3.6.tgz", - "integrity": "sha512-RaPMZKiMy8/JruncMU5Bt6na1eftNoo++R4Y+N2FrxkDVTrGvcyzFTsaGif4QTeKESheMGegbhw6iUAq+5A8zA==", - "dev": true, - "dependencies": { - "get-func-name": "^2.0.0" - } - }, - "node_modules/lru-cache": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", - "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", - "dev": true, - "dependencies": { - "yallist": "^3.0.2" - } - }, - "node_modules/make-dir": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", - "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", - "dev": true, - "dependencies": { - "semver": "^6.0.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/map-stream": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/map-stream/-/map-stream-0.1.0.tgz", - "integrity": "sha512-CkYQrPYZfWnu/DAmVCpTSX/xHpKZ80eKh2lAkyA6AJTef6bW+6JpbQZN5rofum7da+SyN1bi5ctTm+lTfcCW3g==", - "dev": true - }, - "node_modules/media-typer": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", - "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/merge-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", - "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==" - }, - "node_modules/mime": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/mime/-/mime-2.6.0.tgz", - "integrity": "sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==", - "dev": true, - "bin": { - "mime": "cli.js" - }, - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "dependencies": { - "mime-db": "1.52.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/minimist": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", - "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/mkdirp": { - "version": "0.5.6", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", - "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", - "dev": true, - "dependencies": { - "minimist": "^1.2.6" - }, - "bin": { - "mkdirp": "bin/cmd.js" - } - }, - "node_modules/mocha": { - "version": "10.2.0", - "resolved": "https://registry.npmjs.org/mocha/-/mocha-10.2.0.tgz", - "integrity": "sha512-IDY7fl/BecMwFHzoqF2sg/SHHANeBoMMXFlS9r0OXKDssYE1M5O43wUY/9BVPeIvfH2zmEbBfseqN9gBQZzXkg==", - "dev": true, - "dependencies": { - "ansi-colors": "4.1.1", - "browser-stdout": "1.3.1", - "chokidar": "3.5.3", - "debug": "4.3.4", - "diff": "5.0.0", - "escape-string-regexp": "4.0.0", - "find-up": "5.0.0", - "glob": "7.2.0", - "he": "1.2.0", - "js-yaml": "4.1.0", - "log-symbols": "4.1.0", - "minimatch": "5.0.1", - "ms": "2.1.3", - "nanoid": "3.3.3", - "serialize-javascript": "6.0.0", - "strip-json-comments": "3.1.1", - "supports-color": "8.1.1", - "workerpool": "6.2.1", - "yargs": "16.2.0", - "yargs-parser": "20.2.4", - "yargs-unparser": "2.0.0" - }, - "bin": { - "_mocha": "bin/_mocha", - "mocha": "bin/mocha.js" - }, - "engines": { - "node": ">= 14.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/mochajs" - } - }, - "node_modules/mocha/node_modules/escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/mocha/node_modules/find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", - "dev": true, - "dependencies": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/mocha/node_modules/glob": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz", - "integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==", - "dev": true, - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/mocha/node_modules/glob/node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/mocha/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/mocha/node_modules/locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "dev": true, - "dependencies": { - "p-locate": "^5.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/mocha/node_modules/minimatch": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.0.1.tgz", - "integrity": "sha512-nLDxIFRyhDblz3qMuq+SoRZED4+miJ/G+tdDrjkkkRnjAsBexeGpgjLEQ0blJy7rHhR2b93rhQY4SvyWu9v03g==", - "dev": true, - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/mocha/node_modules/minimatch/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/mocha/node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true - }, - "node_modules/mocha/node_modules/p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "dependencies": { - "yocto-queue": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/mocha/node_modules/p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", - "dev": true, - "dependencies": { - "p-limit": "^3.0.2" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/mocha/node_modules/supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/supports-color?sponsor=1" - } - }, - "node_modules/mocha/node_modules/yargs-parser": { - "version": "20.2.4", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.4.tgz", - "integrity": "sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA==", - "dev": true, - "engines": { - "node": ">=10" - } - }, - "node_modules/ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "dev": true - }, - "node_modules/nanoid": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.3.tgz", - "integrity": "sha512-p1sjXuopFs0xg+fPASzQ28agW1oHD7xDsd9Xkf3T15H3c/cifrFHVwrh74PdoklAPi+i7MdRsE47vm2r6JoB+w==", - "dev": true, - "bin": { - "nanoid": "bin/nanoid.cjs" - }, - "engines": { - "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" - } - }, - "node_modules/natural-compare": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", - "dev": true - }, - "node_modules/negotiator": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", - "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/neo-async": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", - "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==" - }, - "node_modules/nise": { - "version": "1.5.3", - "resolved": "https://registry.npmjs.org/nise/-/nise-1.5.3.tgz", - "integrity": "sha512-Ymbac/94xeIrMf59REBPOv0thr+CJVFMhrlAkW/gjCIE58BGQdCj0x7KRCb3yz+Ga2Rz3E9XXSvUyyxqqhjQAQ==", - "dev": true, - "dependencies": { - "@sinonjs/formatio": "^3.2.1", - "@sinonjs/text-encoding": "^0.7.1", - "just-extend": "^4.0.2", - "lolex": "^5.0.1", - "path-to-regexp": "^1.7.0" - } - }, - "node_modules/nise/node_modules/lolex": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/lolex/-/lolex-5.1.2.tgz", - "integrity": "sha512-h4hmjAvHTmd+25JSwrtTIuwbKdwg5NzZVRMLn9saij4SZaepCrTCxPr35H/3bjwfMJtN+t3CX8672UIkglz28A==", - "dev": true, - "dependencies": { - "@sinonjs/commons": "^1.7.0" - } - }, - "node_modules/node-releases": { - "version": "2.0.10", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.10.tgz", - "integrity": "sha512-5GFldHPXVG/YZmFzJvKK2zDSzPKhEp0+ZR5SVaoSag9fsL5YgHbUHDfnG5494ISANDcK4KwPXAx2xqVEydmd7w==" - }, - "node_modules/normalize-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/null-check": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/null-check/-/null-check-1.0.0.tgz", - "integrity": "sha512-j8ZNHg19TyIQOWCGeeQJBuu6xZYIEurf8M1Qsfd8mFrGEfIZytbw18YjKWg+LcO25NowXGZXZpKAx+Ui3TFfDw==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/object-inspect": { - "version": "1.12.3", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.3.tgz", - "integrity": "sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/object-keys": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", - "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", - "dev": true, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/object.assign": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.4.tgz", - "integrity": "sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "has-symbols": "^1.0.3", - "object-keys": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/object.values": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.6.tgz", - "integrity": "sha512-FVVTkD1vENCsAcwNs9k6jea2uHC/X0+JcjG8YA60FN5CMaJmG95wT9jek/xX9nornqGRrBkKtzuAu2wuHpKqvw==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/on-finished": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", - "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", - "dev": true, - "dependencies": { - "ee-first": "1.1.1" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "dev": true, - "dependencies": { - "wrappy": "1" - } - }, - "node_modules/optionator": { - "version": "0.9.3", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz", - "integrity": "sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==", - "dev": true, - "dependencies": { - "@aashutoshrathi/word-wrap": "^1.2.3", - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "dependencies": { - "p-limit": "^2.2.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/p-try": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/parent-module": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", - "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", - "dev": true, - "dependencies": { - "callsites": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/parseurl": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", - "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", - "dev": true, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/path-parse": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", - "dev": true - }, - "node_modules/path-to-regexp": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-1.8.0.tgz", - "integrity": "sha512-n43JRhlUKUAlibEJhPeir1ncUID16QnEjNpwzNdO3Lm4ywrBpBZ5oLD0I6br9evr1Y9JTqwRtAh7JLoOzAQdVA==", - "dev": true, - "dependencies": { - "isarray": "0.0.1" - } - }, - "node_modules/pathval": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.1.tgz", - "integrity": "sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==", - "dev": true, - "engines": { - "node": "*" - } - }, - "node_modules/pause-stream": { - "version": "0.0.11", - "resolved": "https://registry.npmjs.org/pause-stream/-/pause-stream-0.0.11.tgz", - "integrity": "sha512-e3FBlXLmN/D1S+zHzanP4E/4Z60oFAa3O051qt1pxa7DEJWKAyil6upYVXCWadEnuoqa4Pkc9oUx9zsxYeRv8A==", - "dev": true, - "dependencies": { - "through": "~2.3" - } - }, - "node_modules/picocolors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" - }, - "node_modules/picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "dev": true, - "engines": { - "node": ">=8.6" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/pkg-dir": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", - "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", - "dev": true, - "dependencies": { - "find-up": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/platform": { - "version": "1.3.6", - "resolved": "https://registry.npmjs.org/platform/-/platform-1.3.6.tgz", - "integrity": "sha512-fnWVljUchTro6RiCFvCXBbNhJc2NijN7oIQxbwsyL0buWJPG85v81ehlHI9fXrJsMNgTofEoWIQeClKpgxFLrg==", - "dev": true - }, - "node_modules/prelude-ls": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", - "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", - "dev": true, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/prettier": { - "version": "2.8.8", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", - "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==", - "dev": true, - "peer": true, - "bin": { - "prettier": "bin-prettier.js" - }, - "engines": { - "node": ">=10.13.0" - }, - "funding": { - "url": "https://github.com/prettier/prettier?sponsor=1" - } - }, - "node_modules/prettier-linter-helpers": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", - "integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==", - "dev": true, - "dependencies": { - "fast-diff": "^1.1.2" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/ps-tree": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/ps-tree/-/ps-tree-1.2.0.tgz", - "integrity": "sha512-0VnamPPYHl4uaU/nSFeZZpR21QAWRz+sRv4iW9+v/GS/J5U5iZB5BNN6J0RMoOvdx2gWM2+ZFMIm58q24e4UYA==", - "dev": true, - "dependencies": { - "event-stream": "=3.3.4" - }, - "bin": { - "ps-tree": "bin/ps-tree.js" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/punycode": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", - "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", - "engines": { - "node": ">=6" - } - }, - "node_modules/q": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz", - "integrity": "sha512-kV/CThkXo6xyFEZUugw/+pIOywXcDbFYgSct5cT3gqlbkBE1SJdwy6UQoZvodiWF/ckQLZyDE/Bu1M6gVu5lVw==", - "dev": true, - "engines": { - "node": ">=0.6.0", - "teleport": ">=0.2.0" - } - }, - "node_modules/qjobs": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/qjobs/-/qjobs-1.2.0.tgz", - "integrity": "sha512-8YOJEHtxpySA3fFDyCRxA+UUV+fA+rTWnuWvylOK/NCjhY+b4ocCtmu8TtsWb+mYeU+GCHf/S66KZF/AsteKHg==", - "dev": true, - "engines": { - "node": ">=0.9" - } - }, - "node_modules/qs": { - "version": "6.11.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", - "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", - "dev": true, - "dependencies": { - "side-channel": "^1.0.4" - }, - "engines": { - "node": ">=0.6" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/queue-microtask": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", - "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/randombytes": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", - "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", - "dependencies": { - "safe-buffer": "^5.1.0" - } - }, - "node_modules/range-parser": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", - "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/raw-body": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.1.tgz", - "integrity": "sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==", - "dev": true, - "dependencies": { - "bytes": "3.1.2", - "http-errors": "2.0.0", - "iconv-lite": "0.4.24", - "unpipe": "1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/readdirp": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", - "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", - "dev": true, - "dependencies": { - "picomatch": "^2.2.1" - }, - "engines": { - "node": ">=8.10.0" - } - }, - "node_modules/regenerate": { - "version": "1.4.2", - "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz", - "integrity": "sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==", - "dev": true - }, - "node_modules/regenerate-unicode-properties": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-10.1.0.tgz", - "integrity": "sha512-d1VudCLoIGitcU/hEg2QqvyGZQmdC0Lf8BqdOMXGFSvJP4bNV1+XqbPQeHHLD51Jh4QJJ225dlIFvY4Ly6MXmQ==", - "dev": true, - "dependencies": { - "regenerate": "^1.4.2" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/regenerator-runtime": { - "version": "0.13.11", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz", - "integrity": "sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==" - }, - "node_modules/regenerator-transform": { - "version": "0.15.1", - "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.15.1.tgz", - "integrity": "sha512-knzmNAcuyxV+gQCufkYcvOqX/qIIfHLv0u5x79kRxuGojfYVky1f15TzZEu2Avte8QGepvUNTnLskf8E6X6Vyg==", - "dev": true, - "dependencies": { - "@babel/runtime": "^7.8.4" - } - }, - "node_modules/regexp.prototype.flags": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.4.3.tgz", - "integrity": "sha512-fjggEOO3slI6Wvgjwflkc4NFRCTZAu5CnNfBd5qOMYhWdn67nJBBu34/TkD++eeFmd8C9r9jfXJ27+nSiRkSUA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "functions-have-names": "^1.2.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/regexpp": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-2.0.1.tgz", - "integrity": "sha512-lv0M6+TkDVniA3aD1Eg0DVpfU/booSu7Eev3TDO/mZKHBfVjgCGTV4t4buppESEYDtkArYFOxTJWv6S5C+iaNw==", - "dev": true, - "engines": { - "node": ">=6.5.0" - } - }, - "node_modules/regexpu-core": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-5.3.1.tgz", - "integrity": "sha512-nCOzW2V/X15XpLsK2rlgdwrysrBq+AauCn+omItIz4R1pIcmeot5zvjdmOBRLzEH/CkC6IxMJVmxDe3QcMuNVQ==", - "dev": true, - "dependencies": { - "@babel/regjsgen": "^0.8.0", - "regenerate": "^1.4.2", - "regenerate-unicode-properties": "^10.1.0", - "regjsparser": "^0.9.1", - "unicode-match-property-ecmascript": "^2.0.0", - "unicode-match-property-value-ecmascript": "^2.1.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/regjsparser": { - "version": "0.9.1", - "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.9.1.tgz", - "integrity": "sha512-dQUtn90WanSNl+7mQKcXAgZxvUe7Z0SqXlgzv0za4LwiUhyzBC58yQO3liFoUgu8GiJVInAhJjkj1N0EtQ5nkQ==", - "dev": true, - "dependencies": { - "jsesc": "~0.5.0" - }, - "bin": { - "regjsparser": "bin/parser" - } - }, - "node_modules/regjsparser/node_modules/jsesc": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", - "integrity": "sha512-uZz5UnB7u4T9LvwmFqXii7pZSouaRPorGs5who1Ip7VO0wxanFvBL7GkM6dTHlgX+jhBApRetaWpnDabOeTcnA==", - "dev": true, - "bin": { - "jsesc": "bin/jsesc" - } - }, - "node_modules/require-directory": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/requirejs": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/requirejs/-/requirejs-2.3.6.tgz", - "integrity": "sha512-ipEzlWQe6RK3jkzikgCupiTbTvm4S0/CAU5GlgptkN5SO6F3u0UD0K18wy6ErDqiCyP4J4YYe1HuAShvsxePLg==", - "dev": true, - "bin": { - "r_js": "bin/r.js", - "r.js": "bin/r.js" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/requires-port": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", - "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==" - }, - "node_modules/resolve": { - "version": "1.22.1", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", - "integrity": "sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==", - "dev": true, - "dependencies": { - "is-core-module": "^2.9.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - }, - "bin": { - "resolve": "bin/resolve" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/reusify": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", - "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", - "dev": true, - "engines": { - "iojs": ">=1.0.0", - "node": ">=0.10.0" - } - }, - "node_modules/rfdc": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/rfdc/-/rfdc-1.3.0.tgz", - "integrity": "sha512-V2hovdzFbOi77/WajaSMXk2OLm+xNIeQdMMuB7icj7bk6zi2F8GGAxigcnDFpJHbNyNcgyJDiP+8nOrY5cZGrA==", - "dev": true - }, - "node_modules/rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "dev": true, - "dependencies": { - "glob": "^7.1.3" - }, - "bin": { - "rimraf": "bin.js" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/rollup": { - "version": "3.17.2", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-3.17.2.tgz", - "integrity": "sha512-qMNZdlQPCkWodrAZ3qnJtvCAl4vpQ8q77uEujVCCbC/6CLB7Lcmvjq7HyiOSnf4fxTT9XgsE36oLHJBH49xjqA==", - "dev": true, - "bin": { - "rollup": "dist/bin/rollup" - }, - "engines": { - "node": ">=14.18.0", - "npm": ">=8.0.0" - }, - "optionalDependencies": { - "fsevents": "~2.3.2" - } - }, - "node_modules/run-parallel": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", - "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "queue-microtask": "^1.2.2" - } - }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/safe-regex-test": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.0.tgz", - "integrity": "sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.3", - "is-regex": "^1.1.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "dev": true - }, - "node_modules/schema-utils": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-2.7.1.tgz", - "integrity": "sha512-SHiNtMOUGWBQJwzISiVYKu82GiV4QYGePp3odlY1tuKO7gPtphAT5R/py0fA6xtbgLL/RvtJZnU9b8s0F1q0Xg==", - "dev": true, - "dependencies": { - "@types/json-schema": "^7.0.5", - "ajv": "^6.12.4", - "ajv-keywords": "^3.5.2" - }, - "engines": { - "node": ">= 8.9.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, - "node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/serialize-javascript": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz", - "integrity": "sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag==", - "dev": true, - "dependencies": { - "randombytes": "^2.1.0" - } - }, - "node_modules/setprototypeof": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", - "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", - "dev": true - }, - "node_modules/shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, - "dependencies": { - "shebang-regex": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/side-channel": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", - "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.0", - "get-intrinsic": "^1.0.2", - "object-inspect": "^1.9.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/sinon": { - "version": "7.5.0", - "resolved": "https://registry.npmjs.org/sinon/-/sinon-7.5.0.tgz", - "integrity": "sha512-AoD0oJWerp0/rY9czP/D6hDTTUYGpObhZjMpd7Cl/A6+j0xBE+ayL/ldfggkBXUs0IkvIiM1ljM8+WkOc5k78Q==", - "dev": true, - "dependencies": { - "@sinonjs/commons": "^1.4.0", - "@sinonjs/formatio": "^3.2.1", - "@sinonjs/samsam": "^3.3.3", - "diff": "^3.5.0", - "lolex": "^4.2.0", - "nise": "^1.5.2", - "supports-color": "^5.5.0" - } - }, - "node_modules/sinon/node_modules/diff": { - "version": "3.5.0", - "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz", - "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==", - "dev": true, - "engines": { - "node": ">=0.3.1" - } - }, - "node_modules/smob": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/smob/-/smob-1.4.0.tgz", - "integrity": "sha512-MqR3fVulhjWuRNSMydnTlweu38UhQ0HXM4buStD/S3mc/BzX3CuM9OmhyQpmtYCvoYdl5ris6TI0ZqH355Ymqg==", - "dev": true - }, - "node_modules/socket.io": { - "version": "4.6.1", - "resolved": "https://registry.npmjs.org/socket.io/-/socket.io-4.6.1.tgz", - "integrity": "sha512-KMcaAi4l/8+xEjkRICl6ak8ySoxsYG+gG6/XfRCPJPQ/haCRIJBTL4wIl8YCsmtaBovcAXGLOShyVWQ/FG8GZA==", - "dev": true, - "dependencies": { - "accepts": "~1.3.4", - "base64id": "~2.0.0", - "debug": "~4.3.2", - "engine.io": "~6.4.1", - "socket.io-adapter": "~2.5.2", - "socket.io-parser": "~4.2.1" - }, - "engines": { - "node": ">=10.0.0" - } - }, - "node_modules/socket.io-adapter": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/socket.io-adapter/-/socket.io-adapter-2.5.2.tgz", - "integrity": "sha512-87C3LO/NOMc+eMcpcxUBebGjkpMDkNBS9tf7KJqcDsmL936EChtVva71Dw2q4tQcuVC+hAUy4an2NO/sYXmwRA==", - "dev": true, - "dependencies": { - "ws": "~8.11.0" - } - }, - "node_modules/socket.io-parser": { - "version": "4.2.4", - "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-4.2.4.tgz", - "integrity": "sha512-/GbIKmo8ioc+NIWIhwdecY0ge+qVBSMdgxGygevmdHj24bsfgtCmcUUcQ5ZzcylGFHsN3k4HB4Cgkl96KVnuew==", - "dev": true, - "dependencies": { - "@socket.io/component-emitter": "~3.1.0", - "debug": "~4.3.1" - }, - "engines": { - "node": ">=10.0.0" - } - }, - "node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/source-map-support": { - "version": "0.5.21", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", - "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", - "dependencies": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - } - }, - "node_modules/split": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/split/-/split-0.3.3.tgz", - "integrity": "sha512-wD2AeVmxXRBoX44wAycgjVpMhvbwdI2aZjCkvfNcH1YqHQvJVa1duWc73OyVGJUc05fhFaTZeQ/PYsrmyH0JVA==", - "dev": true, - "dependencies": { - "through": "2" - }, - "engines": { - "node": "*" - } - }, - "node_modules/statuses": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", - "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", - "dev": true, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/stream-combiner": { - "version": "0.0.4", - "resolved": "https://registry.npmjs.org/stream-combiner/-/stream-combiner-0.0.4.tgz", - "integrity": "sha512-rT00SPnTVyRsaSz5zgSPma/aHSOic5U1prhYdRy5HS2kTZviFpmDgzilbtsJsxiroqACmayynDN/9VzIbX5DOw==", - "dev": true, - "dependencies": { - "duplexer": "~0.1.1" - } - }, - "node_modules/streamroller": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/streamroller/-/streamroller-3.1.5.tgz", - "integrity": "sha512-KFxaM7XT+irxvdqSP1LGLgNWbYN7ay5owZ3r/8t77p+EtSUAfUgtl7be3xtqtOmGUl9K9YPO2ca8133RlTjvKw==", - "dev": true, - "dependencies": { - "date-format": "^4.0.14", - "debug": "^4.3.4", - "fs-extra": "^8.1.0" - }, - "engines": { - "node": ">=8.0" - } - }, - "node_modules/string.prototype.trimend": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.6.tgz", - "integrity": "sha512-JySq+4mrPf9EsDBEDYMOb/lM7XQLulwg5R/m1r0PXEFqrV0qHvl58sdTilSXtKOflCsK2E8jxf+GKC0T07RWwQ==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/string.prototype.trimstart": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.6.tgz", - "integrity": "sha512-omqjMDaY92pbn5HOX7f9IccLA+U1tA9GvtU4JrodiXFfYB7jPzzHpRzpglLAjtUV6bB557zwClJezTqnAiYnQA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-bom": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/supports-preserve-symlinks-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", - "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/tapable": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", - "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", - "engines": { - "node": ">=6" - } - }, - "node_modules/temp-fs": { - "version": "0.9.9", - "resolved": "https://registry.npmjs.org/temp-fs/-/temp-fs-0.9.9.tgz", - "integrity": "sha512-WfecDCR1xC9b0nsrzSaxPf3ZuWeWLUWblW4vlDQAa1biQaKHiImHnJfeQocQe/hXKMcolRzgkcVX/7kK4zoWbw==", - "dev": true, - "dependencies": { - "rimraf": "~2.5.2" - }, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/temp-fs/node_modules/rimraf": { - "version": "2.5.4", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.5.4.tgz", - "integrity": "sha512-Lw7SHMjssciQb/rRz7JyPIy9+bbUshEucPoLRvWqy09vC5zQixl8Uet+Zl+SROBB/JMWHJRdCk1qdxNWHNMvlQ==", - "dev": true, - "dependencies": { - "glob": "^7.0.5" - }, - "bin": { - "rimraf": "bin.js" - } - }, - "node_modules/terser": { - "version": "5.18.2", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.18.2.tgz", - "integrity": "sha512-Ah19JS86ypbJzTzvUCX7KOsEIhDaRONungA4aYBjEP3JZRf4ocuDzTg4QWZnPn9DEMiMYGJPiSOy7aykoCc70w==", - "dependencies": { - "@jridgewell/source-map": "^0.3.3", - "acorn": "^8.8.2", - "commander": "^2.20.0", - "source-map-support": "~0.5.20" - }, - "bin": { - "terser": "bin/terser" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/terser-webpack-plugin": { - "version": "5.3.9", - "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.9.tgz", - "integrity": "sha512-ZuXsqE07EcggTWQjXUj+Aot/OMcD0bMKGgF63f7UxYcu5/AJF53aIpK1YoP5xR9l6s/Hy2b+t1AM0bLNPRuhwA==", - "dependencies": { - "@jridgewell/trace-mapping": "^0.3.17", - "jest-worker": "^27.4.5", - "schema-utils": "^3.1.1", - "serialize-javascript": "^6.0.1", - "terser": "^5.16.8" - }, - "engines": { - "node": ">= 10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "^5.1.0" - }, - "peerDependenciesMeta": { - "@swc/core": { - "optional": true - }, - "esbuild": { - "optional": true - }, - "uglify-js": { - "optional": true - } - } - }, - "node_modules/terser-webpack-plugin/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/terser-webpack-plugin/node_modules/jest-worker": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", - "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", - "dependencies": { - "@types/node": "*", - "merge-stream": "^2.0.0", - "supports-color": "^8.0.0" - }, - "engines": { - "node": ">= 10.13.0" - } - }, - "node_modules/terser-webpack-plugin/node_modules/schema-utils": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz", - "integrity": "sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==", - "dependencies": { - "@types/json-schema": "^7.0.8", - "ajv": "^6.12.5", - "ajv-keywords": "^3.5.2" - }, - "engines": { - "node": ">= 10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, - "node_modules/terser-webpack-plugin/node_modules/serialize-javascript": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.1.tgz", - "integrity": "sha512-owoXEFjWRllis8/M1Q+Cw5k8ZH40e3zhp/ovX+Xr/vi1qj6QesbyXXViFbpNvWvPNAD62SutwEXavefrLJWj7w==", - "dependencies": { - "randombytes": "^2.1.0" - } - }, - "node_modules/terser-webpack-plugin/node_modules/supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/supports-color?sponsor=1" - } - }, - "node_modules/text-table": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", - "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", - "dev": true - }, - "node_modules/through": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", - "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==", - "dev": true - }, - "node_modules/to-fast-properties": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", - "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dev": true, - "dependencies": { - "is-number": "^7.0.0" - }, - "engines": { - "node": ">=8.0" - } - }, - "node_modules/toidentifier": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", - "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", - "dev": true, - "engines": { - "node": ">=0.6" - } - }, - "node_modules/tsconfig-paths": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.1.tgz", - "integrity": "sha512-fxDhWnFSLt3VuTwtvJt5fpwxBHg5AdKWMsgcPOOIilyjymcYVZoCQF8fvFRezCNfblEXmi+PcM1eYHeOAgXCOQ==", - "dev": true, - "dependencies": { - "@types/json5": "^0.0.29", - "json5": "^1.0.1", - "minimist": "^1.2.6", - "strip-bom": "^3.0.0" - } - }, - "node_modules/tsconfig-paths/node_modules/json5": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", - "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", - "dev": true, - "dependencies": { - "minimist": "^1.2.0" - }, - "bin": { - "json5": "lib/cli.js" - } - }, - "node_modules/type-check": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", - "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", - "dev": true, - "dependencies": { - "prelude-ls": "^1.2.1" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/type-detect": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", - "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/type-is": { - "version": "1.6.18", - "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", - "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", - "dev": true, - "dependencies": { - "media-typer": "0.3.0", - "mime-types": "~2.1.24" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/typed-array-length": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.4.tgz", - "integrity": "sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "for-each": "^0.3.3", - "is-typed-array": "^1.1.9" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/ua-parser-js": { - "version": "0.7.33", - "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-0.7.33.tgz", - "integrity": "sha512-s8ax/CeZdK9R/56Sui0WM6y9OFREJarMRHqLB2EwkovemBxNQ+Bqu8GAsUnVcXKgphb++ghr/B2BZx4mahujPw==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/ua-parser-js" - }, - { - "type": "paypal", - "url": "https://paypal.me/faisalman" - } - ], - "engines": { - "node": "*" - } - }, - "node_modules/unbox-primitive": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", - "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "has-bigints": "^1.0.2", - "has-symbols": "^1.0.3", - "which-boxed-primitive": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/unicode-canonical-property-names-ecmascript": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz", - "integrity": "sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/unicode-match-property-ecmascript": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz", - "integrity": "sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==", - "dev": true, - "dependencies": { - "unicode-canonical-property-names-ecmascript": "^2.0.0", - "unicode-property-aliases-ecmascript": "^2.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/unicode-match-property-value-ecmascript": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.1.0.tgz", - "integrity": "sha512-qxkjQt6qjg/mYscYMC0XKRn3Rh0wFPlfxB0xkt9CfyTvpX1Ra0+rAmdX2QyAobptSEvuy4RtpPRui6XkV+8wjA==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/unicode-property-aliases-ecmascript": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.1.0.tgz", - "integrity": "sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/universalify": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", - "dev": true, - "engines": { - "node": ">= 4.0.0" - } - }, - "node_modules/unpipe": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", - "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", - "dev": true, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/update-browserslist-db": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.10.tgz", - "integrity": "sha512-OztqDenkfFkbSG+tRxBeAnCVPckDBcvibKd35yDONx6OU8N7sqgwc7rCbkJ/WcYtVRZ4ba68d6byhC21GFh7sQ==", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - } - ], - "dependencies": { - "escalade": "^3.1.1", - "picocolors": "^1.0.0" - }, - "bin": { - "browserslist-lint": "cli.js" - }, - "peerDependencies": { - "browserslist": ">= 4.21.0" - } - }, - "node_modules/uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "dependencies": { - "punycode": "^2.1.0" - } - }, - "node_modules/utils-merge": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", - "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", - "dev": true, - "engines": { - "node": ">= 0.4.0" - } - }, - "node_modules/vary": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", - "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", - "dev": true, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/void-elements": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/void-elements/-/void-elements-2.0.1.tgz", - "integrity": "sha512-qZKX4RnBzH2ugr8Lxa7x+0V6XD9Sb/ouARtiasEQCHB1EVU4NXtmHsDDrx1dO4ne5fc3J6EW05BP1Dl0z0iung==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/watchpack": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz", - "integrity": "sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg==", - "dependencies": { - "glob-to-regexp": "^0.4.1", - "graceful-fs": "^4.1.2" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/webpack": { - "version": "5.88.2", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.88.2.tgz", - "integrity": "sha512-JmcgNZ1iKj+aiR0OvTYtWQqJwq37Pf683dY9bVORwVbUrDhLhdn/PlO2sHsFHPkj7sHNQF3JwaAkp49V+Sq1tQ==", - "dependencies": { - "@types/eslint-scope": "^3.7.3", - "@types/estree": "^1.0.0", - "@webassemblyjs/ast": "^1.11.5", - "@webassemblyjs/wasm-edit": "^1.11.5", - "@webassemblyjs/wasm-parser": "^1.11.5", - "acorn": "^8.7.1", - "acorn-import-assertions": "^1.9.0", - "browserslist": "^4.14.5", - "chrome-trace-event": "^1.0.2", - "enhanced-resolve": "^5.15.0", - "es-module-lexer": "^1.2.1", - "eslint-scope": "5.1.1", - "events": "^3.2.0", - "glob-to-regexp": "^0.4.1", - "graceful-fs": "^4.2.9", - "json-parse-even-better-errors": "^2.3.1", - "loader-runner": "^4.2.0", - "mime-types": "^2.1.27", - "neo-async": "^2.6.2", - "schema-utils": "^3.2.0", - "tapable": "^2.1.1", - "terser-webpack-plugin": "^5.3.7", - "watchpack": "^2.4.0", - "webpack-sources": "^3.2.3" - }, - "bin": { - "webpack": "bin/webpack.js" - }, - "engines": { - "node": ">=10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependenciesMeta": { - "webpack-cli": { - "optional": true - } - } - }, - "node_modules/webpack-merge": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/webpack-merge/-/webpack-merge-4.2.2.tgz", - "integrity": "sha512-TUE1UGoTX2Cd42j3krGYqObZbOD+xF7u28WB7tfUordytSjbWTIjK/8V0amkBfTYN4/pB/GIDlJZZ657BGG19g==", - "dev": true, - "dependencies": { - "lodash": "^4.17.15" - } - }, - "node_modules/webpack-sources": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz", - "integrity": "sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==", - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/webpack/node_modules/eslint-scope": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", - "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^4.1.1" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/webpack/node_modules/estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", - "engines": { - "node": ">=4.0" - } - }, - "node_modules/webpack/node_modules/schema-utils": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz", - "integrity": "sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==", - "dependencies": { - "@types/json-schema": "^7.0.8", - "ajv": "^6.12.5", - "ajv-keywords": "^3.5.2" - }, - "engines": { - "node": ">= 10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, - "node_modules/whatwg-fetch": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-3.6.2.tgz", - "integrity": "sha512-bJlen0FcuU/0EMLrdbJ7zOnW6ITZLrZMIarMUVmdKtsGvZna8vxKYaexICWPfZ8qwf9fzNq+UEIZrnSaApt6RA==" - }, - "node_modules/which": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", - "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", - "dev": true, - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "which": "bin/which" - } - }, - "node_modules/which-boxed-primitive": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", - "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", - "dev": true, - "dependencies": { - "is-bigint": "^1.0.1", - "is-boolean-object": "^1.1.0", - "is-number-object": "^1.0.4", - "is-string": "^1.0.5", - "is-symbol": "^1.0.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/which-typed-array": { - "version": "1.1.9", - "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.9.tgz", - "integrity": "sha512-w9c4xkx6mPidwp7180ckYWfMmvxpjlZuIudNtDf4N/tTAUB8VJbX25qZoAsrtGuYNnGw3pa0AXgbGKRB8/EceA==", - "dev": true, - "dependencies": { - "available-typed-arrays": "^1.0.5", - "call-bind": "^1.0.2", - "for-each": "^0.3.3", - "gopd": "^1.0.1", - "has-tostringtag": "^1.0.0", - "is-typed-array": "^1.1.10" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/workerpool": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.2.1.tgz", - "integrity": "sha512-ILEIE97kDZvF9Wb9f6h5aXK4swSlKGUcOEGiIYb2OOu/IrDU9iwj0fD//SsA6E5ibwJxpEvhullJY4Sl4GcpAw==", - "dev": true - }, - "node_modules/wrap-ansi": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/wrap-ansi/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/wrap-ansi/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/wrap-ansi/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/wrap-ansi/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "node_modules/wrap-ansi/node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/wrap-ansi/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", - "dev": true - }, - "node_modules/ws": { - "version": "8.11.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.11.0.tgz", - "integrity": "sha512-HPG3wQd9sNQoT9xHyNCXoDUa+Xw/VevmY9FoHyQ+g+rrMn4j6FB4np7Z0OhdTgjx6MgQLK7jwSy1YecU1+4Asg==", - "dev": true, - "engines": { - "node": ">=10.0.0" - }, - "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": "^5.0.2" - }, - "peerDependenciesMeta": { - "bufferutil": { - "optional": true - }, - "utf-8-validate": { - "optional": true - } - } - }, - "node_modules/y18n": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", - "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", - "dev": true, - "engines": { - "node": ">=10" - } - }, - "node_modules/yallist": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", - "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", - "dev": true - }, - "node_modules/yargs": { - "version": "16.2.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", - "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", - "dev": true, - "dependencies": { - "cliui": "^7.0.2", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.0", - "y18n": "^5.0.5", - "yargs-parser": "^20.2.2" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/yargs-parser": { - "version": "20.2.9", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", - "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", - "dev": true, - "engines": { - "node": ">=10" - } - }, - "node_modules/yargs-unparser": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-2.0.0.tgz", - "integrity": "sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA==", - "dev": true, - "dependencies": { - "camelcase": "^6.0.0", - "decamelize": "^4.0.0", - "flat": "^5.0.2", - "is-plain-obj": "^2.1.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/yargs/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "node_modules/yargs/node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/yargs/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - } - }, "dependencies": { "@aashutoshrathi/word-wrap": { "version": "1.2.6", @@ -9389,15 +1705,13 @@ "acorn-import-assertions": { "version": "1.9.0", "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.9.0.tgz", - "integrity": "sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA==", - "requires": {} + "integrity": "sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA==" }, "acorn-jsx": { "version": "5.3.2", "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "dev": true, - "requires": {} + "dev": true }, "agent-base": { "version": "4.3.0", @@ -9422,8 +1736,7 @@ "ajv-keywords": { "version": "3.5.2", "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", - "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", - "requires": {} + "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==" }, "ansi-colors": { "version": "4.1.1", @@ -11487,8 +3800,7 @@ "version": "8.0.2", "resolved": "https://registry.npmjs.org/karma-babel-preprocessor/-/karma-babel-preprocessor-8.0.2.tgz", "integrity": "sha512-6ZUnHwaK2EyhgxbgeSJW6n6WZUYSEdekHIV/qDUnPgMkVzQBHEvd07d2mTL5AQjV8uTUgH6XslhaPrp+fHWH2A==", - "dev": true, - "requires": {} + "dev": true }, "karma-browserstack-launcher": { "version": "1.6.0", @@ -11505,8 +3817,7 @@ "version": "0.1.0", "resolved": "https://registry.npmjs.org/karma-chai/-/karma-chai-0.1.0.tgz", "integrity": "sha512-mqKCkHwzPMhgTYca10S90aCEX9+HjVjjrBFAsw36Zj7BlQNbokXXCAe6Ji04VUMsxcY5RLP7YphpfO06XOubdg==", - "dev": true, - "requires": {} + "dev": true }, "karma-chrome-launcher": { "version": "2.2.0", @@ -11568,8 +3879,7 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/karma-requirejs/-/karma-requirejs-1.1.0.tgz", "integrity": "sha512-MHTOYKdwwJBkvYid0TaYvBzOnFH3TDtzo6ie5E4o9SaUSXXsfMRLa/whUz6efVIgTxj1xnKYasNn/XwEgJeB/Q==", - "dev": true, - "requires": {} + "dev": true }, "karma-rollup-preprocessor": { "version": "7.0.8", @@ -12220,13 +4530,6 @@ "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", "dev": true }, - "prettier": { - "version": "2.8.8", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", - "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==", - "dev": true, - "peer": true - }, "prettier-linter-helpers": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", @@ -13190,8 +5493,7 @@ "version": "8.11.0", "resolved": "https://registry.npmjs.org/ws/-/ws-8.11.0.tgz", "integrity": "sha512-HPG3wQd9sNQoT9xHyNCXoDUa+Xw/VevmY9FoHyQ+g+rrMn4j6FB4np7Z0OhdTgjx6MgQLK7jwSy1YecU1+4Asg==", - "dev": true, - "requires": {} + "dev": true }, "y18n": { "version": "5.0.8", diff --git a/package.json b/package.json index ca915b1..964efbd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "springroll-container", - "version": "2.4.6", + "version": "2.5.0", "description": "The iframe controller for interacting with SpringRoll applications", "main": "./dist/index.js", "license": "MIT", diff --git a/src/base-plugins/ButtonPlugin.js b/src/base-plugins/ButtonPlugin.js index 2afa25a..05f08b1 100644 --- a/src/base-plugins/ButtonPlugin.js +++ b/src/base-plugins/ButtonPlugin.js @@ -62,6 +62,7 @@ export class ButtonPlugin extends BasePlugin { * @memberof ButtonPlugin */ _setMuteProp(prop, button, muted, disableSend = false) { + console.log('_setmuteprop', prop, muted, disableSend); if (Array.isArray(button)) { button.forEach(b => this.changeMutedState(b, muted)); } else { diff --git a/src/plugins/CaptionsTogglePlugin.js b/src/plugins/CaptionsTogglePlugin.js index 808e2d3..076d16c 100644 --- a/src/plugins/CaptionsTogglePlugin.js +++ b/src/plugins/CaptionsTogglePlugin.js @@ -65,7 +65,9 @@ export class CaptionsTogglePlugin extends ButtonPlugin { return; } - this.captionsMuted = !!SavedData.read(CaptionsTogglePlugin.captionsToggleKey); + const captionsMuted = !!SavedData.read(CaptionsTogglePlugin.captionsToggleKey); + + this.setMuteProp('captionsMuted', captionsMuted, this._captionsButtons, true); }.bind(this) ); @@ -74,8 +76,9 @@ export class CaptionsTogglePlugin extends ButtonPlugin { * @memberof CaptionsTogglePlugin */ start() { - this.captionsMuted = !!SavedData.read(CaptionsTogglePlugin.captionsToggleKey); - + for (let i = 0; i < this.captionsButtonsLength; i++) { + this.captionsButtons[i].enableButton(); + } this.client.on('loaded', this.sendAllProperties); this.client.on('loadDone', this.sendAllProperties); } diff --git a/src/plugins/SoundPlugin.js b/src/plugins/SoundPlugin.js index 660deb5..a01a44e 100644 --- a/src/plugins/SoundPlugin.js +++ b/src/plugins/SoundPlugin.js @@ -44,10 +44,10 @@ export class SoundPlugin extends ButtonPlugin { this._sfxMutedByUser = false; this._voMutedByUser = false; - this.soundMuteEnabled = false; - this.musicMuteEnabled = false; - this.sfxMuteEnabled = false; - this.voMuteEnabled = false; + this.soundMutedEnabled = false; + this.musicMutedEnabled = false; + this.sfxMutedEnabled = false; + this.voMutedEnabled = false; this.soundVolume = 1; this.musicVolume = 1; @@ -401,7 +401,8 @@ export class SoundPlugin extends ButtonPlugin { /** * @memberof SoundPlugin */ - init() { + async preload({ client }) { + this.client = client; this.client.on( 'features', function(features) { @@ -410,10 +411,10 @@ export class SoundPlugin extends ButtonPlugin { } // Confirm that the mute features are supported - this.soundMuteEnabled = !!features.data.sound; - this.musicMuteEnabled = !!features.data.music; - this.sfxMuteEnabled = !!features.data.sfx; - this.voMuteEnabled = !!features.data.vo; + this.soundMutedEnabled = !!features.data.sound; + this.musicMutedEnabled = !!features.data.music; + this.sfxMutedEnabled = !!features.data.sfx; + this.voMutedEnabled = !!features.data.vo; this.soundVolumeEnabled = !!features.data.soundVolume; this.musicVolumeEnabled = !!features.data.musicVolume; @@ -444,6 +445,18 @@ export class SoundPlugin extends ButtonPlugin { for (let i = 0; i < this.voSlidersLength; i++) { this.voSliders[i].displaySlider(features.data); } + + const soundMuted = !!SavedData.read(SoundPlugin.soundMutedKey); + const musicMuted = !!SavedData.read(SoundPlugin.musicMutedKey); + const sfxMuted = !!SavedData.read(SoundPlugin.sfxMutedKey); + const voMuted = !!SavedData.read(SoundPlugin.voMutedKey); + + // set the property in case buttons exist but disable the send here + // properties will be sent in sendAllProperties + this.setMuteProp('soundMuted', soundMuted, this.soundButtons, true); + this.setMuteProp('musicMuted', musicMuted, this.musicButtons, true); + this.setMuteProp('sfxMuted', sfxMuted, this.sfxButtons, true); + this.setMuteProp('voMuted', voMuted, this.voButtons, true); }.bind(this) ); } @@ -452,7 +465,6 @@ export class SoundPlugin extends ButtonPlugin { * @memberof SoundPlugin */ start() { - for (let i = 0; i < this.soundButtonsLength; i++) { this.soundButtons[i].enableButton(); } @@ -466,11 +478,6 @@ export class SoundPlugin extends ButtonPlugin { this.voButtons[i].enableButton(); } - this.soundMuted = !!SavedData.read(SoundPlugin.soundMutedKey); - this.musicMuted = !!SavedData.read(SoundPlugin.musicMutedKey); - this.sfxMuted = !!SavedData.read(SoundPlugin.sfxMutedKey); - this.voMuted = !!SavedData.read(SoundPlugin.voMutedKey); - this.client.on('loaded', this.sendAllProperties); this.client.on('loadDone', this.sendAllProperties); } @@ -481,23 +488,32 @@ export class SoundPlugin extends ButtonPlugin { * @memberof SoundPlugin */ sendAllProperties() { - this.sendProperty(SoundPlugin.soundVolumeKey, this.soundVolume); - this.sendProperty(SoundPlugin.musicVolumeKey, this.musicVolume); - this.sendProperty(SoundPlugin.voVolumeKey, this.voVolume); - this.sendProperty(SoundPlugin.sfxVolumeKey, this.sfxVolume); + + if ( this.soundVolumeEnabled && this.soundSlidersLength > 0 ) { + this.sendProperty(SoundPlugin.soundVolumeKey, this.soundVolume); + } + if ( this.musicVolumeEnabled && this.musicSlidersLength > 0 ) { + this.sendProperty(SoundPlugin.musicVolumeKey, this.musicVolume); + } + if ( this.voVolumeEnabled && this.voSlidersLength > 0 ) { + this.sendProperty(SoundPlugin.voVolumeKey, this.voVolume); + } + if ( this.sfxVolumeEnabled && this.sfxSlidersLength > 0 ) { + this.sendProperty(SoundPlugin.sfxVolumeKey, this.sfxVolume); + } // to avoid the mute property overwriting the volume on startup, mutes should only send if they're true // or the volume channel isn't enabled - if ( this.soundMuteEnabled && (this.soundMuted || !this.soundVolumeEnabled )) { + if ( (this.soundButtonsLength > 0 && this.soundMutedEnabled) && (this.soundMuted || !this.soundVolumeEnabled )) { this.sendProperty(SoundPlugin.soundMutedKey, this.soundMuted); } - if ( this.musicMuteEnabled && (this.musicMuted || !this.musicVolumeEnabled )) { + if ( (this.musicButtonsLength > 0 && this.musicMutedEnabled) && (this.musicMuted || !this.musicVolumeEnabled )) { this.sendProperty(SoundPlugin.musicMutedKey, this.musicMuted); } - if ( this.voMuteEnabled && ( this.voMuted || !this.voVolumeEnabled )) { + if ( (this.voButtonsLength > 0 && this.voMutedEnabled) && ( this.voMuted || !this.voVolumeEnabled )) { this.sendProperty(SoundPlugin.voMutedKey, this.voMuted); } - if ( this.sfxMuteEnabled && (this.sfxMuted || !this.sfxVolumeEnabled )) { + if ( (this.sfxButtonsLength > 0 && this.sfxMutedEnabled) && (this.sfxMuted || !this.sfxVolumeEnabled )) { this.sendProperty(SoundPlugin.sfxMutedKey, this.sfxMuted); } }