UNPKG

rox-browser

Version:

Rollout.io ROX JS SDK Client

1 lines 88.8 kB
((t,e)=>{"object"==typeof exports&&"object"==typeof module?module.exports=e(require("axios")):"function"==typeof define&&define.amd?define(["axios"],e):"object"==typeof exports?exports.Rox=e(require("axios")):t.Rox=e(t.axios)})(globalThis,t=>{var e={5:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},9:function(t,e,r){t.exports=(t=>{var e=Math,r=t,i=(n=r.lib).WordArray,s=n.Hasher,n=r.algo,o=[],a=[];function u(t){return 4294967296*(t-(0|t))|0}for(var h=2,l=0;l<64;)(t=>{for(var r=e.sqrt(t),i=2;i<=r;i++)if(!(t%i))return;return 1})(h)&&(l<8&&(o[l]=u(e.pow(h,.5))),a[l]=u(e.pow(h,1/3)),l++),h++;var c=[];return n=n.SHA256=s.extend({_doReset:function(){this._hash=new i.init(o.slice(0))},_doProcessBlock:function(t,e){for(var r=this._hash.words,i=r[0],s=r[1],n=r[2],o=r[3],u=r[4],h=r[5],l=r[6],p=r[7],d=0;d<64;d++){c[d]=d<16?0|t[e+d]:(((f=c[d-15])<<25|f>>>7)^(f<<14|f>>>18)^f>>>3)+c[d-7]+(((f=c[d-2])<<15|f>>>17)^(f<<13|f>>>19)^f>>>10)+c[d-16];var f=i&s^i&n^s&n,g=p+((u<<26|u>>>6)^(u<<21|u>>>11)^(u<<7|u>>>25))+(u&h^~u&l)+a[d]+c[d];p=l,l=h,h=u,u=o+g|0,o=n,n=s,s=i,i=g+(((i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22))+f)|0}r[0]=r[0]+i|0,r[1]=r[1]+s|0,r[2]=r[2]+n|0,r[3]=r[3]+o|0,r[4]=r[4]+u|0,r[5]=r[5]+h|0,r[6]=r[6]+l|0,r[7]=r[7]+p|0},_doFinalize:function(){var t=this._data,r=t.words,i=8*this._nDataBytes,s=8*t.sigBytes;return r[s>>>5]|=128<<24-s%32,r[14+(64+s>>>9<<4)]=e.floor(i/4294967296),r[15+(64+s>>>9<<4)]=i,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var t=s.clone.call(this);return t._hash=this._hash.clone(),t}}),r.SHA256=s._createHelper(n),r.HmacSHA256=s._createHmacHelper(n),t.SHA256})(r(21))},21:function(t,e){var r,i,s,n,o,a,u,h,l,c,p;function d(){}t.exports=(r=Math,i=Object.create||function(t){return d.prototype=t,t=new d,d.prototype=null,t},s=(t={}).lib={},n=s.Base={extend:function(t){var e=i(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),(e.init.prototype=e).$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},o=s.WordArray=n.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:4*t.length},toString:function(t){return(t||u).stringify(this)},concat:function(t){var e=this.words,r=t.words,i=this.sigBytes,s=t.sigBytes;if(this.clamp(),i%4)for(var n=0;n<s;n++){var o=r[n>>>2]>>>24-n%4*8&255;e[i+n>>>2]|=o<<24-(i+n)%4*8}else for(n=0;n<s;n+=4)e[i+n>>>2]=r[n>>>2];return this.sigBytes+=s,this},clamp:function(){var t=this.words,e=this.sigBytes;t[e>>>2]&=4294967295<<32-e%4*8,t.length=r.ceil(e/4)},clone:function(){var t=n.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],i=0;i<t;i+=4){var s=(t=>{var e=987654321,i=4294967295;return function(){return((((e=36969*(65535&e)+(e>>16)&i)<<16)+(t=18e3*(65535&t)+(t>>16)&i)&i)/4294967296+.5)*(.5<r.random()?1:-1)}})(4294967296*(n||r.random())),n=987654071*s();e.push(4294967296*s()|0)}return new o.init(e,t)}}),a=t.enc={},u=a.Hex={stringify:function(t){for(var e=t.words,r=t.sigBytes,i=[],s=0;s<r;s++){var n=e[s>>>2]>>>24-s%4*8&255;i.push((n>>>4).toString(16)),i.push((15&n).toString(16))}return i.join("")},parse:function(t){for(var e=t.length,r=[],i=0;i<e;i+=2)r[i>>>3]|=parseInt(t.substr(i,2),16)<<24-i%8*4;return new o.init(r,e/2)}},h=a.Latin1={stringify:function(t){for(var e=t.words,r=t.sigBytes,i=[],s=0;s<r;s++){var n=e[s>>>2]>>>24-s%4*8&255;i.push(String.fromCharCode(n))}return i.join("")},parse:function(t){for(var e=t.length,r=[],i=0;i<e;i++)r[i>>>2]|=(255&t.charCodeAt(i))<<24-i%4*8;return new o.init(r,e)}},l=a.Utf8={stringify:function(t){try{return decodeURIComponent(escape(h.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return h.parse(unescape(encodeURIComponent(t)))}},c=s.BufferedBlockAlgorithm=n.extend({reset:function(){this._data=new o.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=l.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(t){var e=this._data,i=e.words,s=e.sigBytes,n=this.blockSize,a=s/(4*n),u=(t?r.ceil(a):r.max((0|a)-this._minBufferSize,0))*n;if(t=r.min(4*u,s),u){for(var h=0;h<u;h+=n)this._doProcessBlock(i,h);var l=i.splice(0,u);e.sigBytes-=t}return new o.init(l,t)},clone:function(){var t=n.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),s.Hasher=c.extend({cfg:n.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){c.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,r){return new t.init(r).finalize(e)}},_createHmacHelper:function(t){return function(e,r){return new p.HMAC.init(t,r).finalize(e)}}}),p=t.algo={},t)},131:(t,e,r)=>{var i=r(403),s=r(580),n=r(187),o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,u=/^0o[0-7]+$/i,h=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(n(t))return NaN;if(s(t)&&(e="function"==typeof t.valueOf?t.valueOf():t,t=s(e)?e+"":e),"string"!=typeof t)return 0===t?t:+t;t=i(t);var e=a.test(t);return e||u.test(t)?h(t.slice(2),e?2:8):o.test(t)?NaN:+t}},150:(t,e,r)=>{function i(t,e){t.constructor==String?t=(e&&"binary"===e.encoding?a:n).stringToBytes(t):o(t)?t=Array.prototype.slice.call(t,0):Array.isArray(t)||t.constructor===Uint8Array||(t=t.toString());for(var r=s.bytesToWords(t),u=(e=8*t.length,1732584193),h=-271733879,l=-1732584194,c=271733878,p=0;p<r.length;p++)r[p]=16711935&(r[p]<<8|r[p]>>>24)|4278255360&(r[p]<<24|r[p]>>>8);r[e>>>5]|=128<<e%32,r[14+(64+e>>>9<<4)]=e;var d=i._ff,f=i._gg,g=i._hh,m=i._ii;for(p=0;p<r.length;p+=16){var y=u,v=h,_=l,b=c;u=d(u,h,l,c,r[p+0],7,-680876936),c=d(c,u,h,l,r[p+1],12,-389564586),l=d(l,c,u,h,r[p+2],17,606105819),h=d(h,l,c,u,r[p+3],22,-1044525330),u=d(u,h,l,c,r[p+4],7,-176418897),c=d(c,u,h,l,r[p+5],12,1200080426),l=d(l,c,u,h,r[p+6],17,-1473231341),h=d(h,l,c,u,r[p+7],22,-45705983),u=d(u,h,l,c,r[p+8],7,1770035416),c=d(c,u,h,l,r[p+9],12,-1958414417),l=d(l,c,u,h,r[p+10],17,-42063),h=d(h,l,c,u,r[p+11],22,-1990404162),u=d(u,h,l,c,r[p+12],7,1804603682),c=d(c,u,h,l,r[p+13],12,-40341101),l=d(l,c,u,h,r[p+14],17,-1502002290),u=f(u,h=d(h,l,c,u,r[p+15],22,1236535329),l,c,r[p+1],5,-165796510),c=f(c,u,h,l,r[p+6],9,-1069501632),l=f(l,c,u,h,r[p+11],14,643717713),h=f(h,l,c,u,r[p+0],20,-373897302),u=f(u,h,l,c,r[p+5],5,-701558691),c=f(c,u,h,l,r[p+10],9,38016083),l=f(l,c,u,h,r[p+15],14,-660478335),h=f(h,l,c,u,r[p+4],20,-405537848),u=f(u,h,l,c,r[p+9],5,568446438),c=f(c,u,h,l,r[p+14],9,-1019803690),l=f(l,c,u,h,r[p+3],14,-187363961),h=f(h,l,c,u,r[p+8],20,1163531501),u=f(u,h,l,c,r[p+13],5,-1444681467),c=f(c,u,h,l,r[p+2],9,-51403784),l=f(l,c,u,h,r[p+7],14,1735328473),u=g(u,h=f(h,l,c,u,r[p+12],20,-1926607734),l,c,r[p+5],4,-378558),c=g(c,u,h,l,r[p+8],11,-2022574463),l=g(l,c,u,h,r[p+11],16,1839030562),h=g(h,l,c,u,r[p+14],23,-35309556),u=g(u,h,l,c,r[p+1],4,-1530992060),c=g(c,u,h,l,r[p+4],11,1272893353),l=g(l,c,u,h,r[p+7],16,-155497632),h=g(h,l,c,u,r[p+10],23,-1094730640),u=g(u,h,l,c,r[p+13],4,681279174),c=g(c,u,h,l,r[p+0],11,-358537222),l=g(l,c,u,h,r[p+3],16,-722521979),h=g(h,l,c,u,r[p+6],23,76029189),u=g(u,h,l,c,r[p+9],4,-640364487),c=g(c,u,h,l,r[p+12],11,-421815835),l=g(l,c,u,h,r[p+15],16,530742520),u=m(u,h=g(h,l,c,u,r[p+2],23,-995338651),l,c,r[p+0],6,-198630844),c=m(c,u,h,l,r[p+7],10,1126891415),l=m(l,c,u,h,r[p+14],15,-1416354905),h=m(h,l,c,u,r[p+5],21,-57434055),u=m(u,h,l,c,r[p+12],6,1700485571),c=m(c,u,h,l,r[p+3],10,-1894986606),l=m(l,c,u,h,r[p+10],15,-1051523),h=m(h,l,c,u,r[p+1],21,-2054922799),u=m(u,h,l,c,r[p+8],6,1873313359),c=m(c,u,h,l,r[p+15],10,-30611744),l=m(l,c,u,h,r[p+6],15,-1560198380),h=m(h,l,c,u,r[p+13],21,1309151649),u=m(u,h,l,c,r[p+4],6,-145523070),c=m(c,u,h,l,r[p+11],10,-1120210379),l=m(l,c,u,h,r[p+2],15,718787259),h=m(h,l,c,u,r[p+9],21,-343485551),u=u+y>>>0,h=h+v>>>0,l=l+_>>>0,c=c+b>>>0}return s.endian([u,h,l,c])}var s=r(242),n=r(934).utf8,o=r(703),a=r(934).bin;i._ff=function(t,e,r,i,s,n,o){return((t=t+(e&r|~e&i)+(s>>>0)+o)<<n|t>>>32-n)+e},i._gg=function(t,e,r,i,s,n,o){return((t=t+(e&i|r&~i)+(s>>>0)+o)<<n|t>>>32-n)+e},i._hh=function(t,e,r,i,s,n,o){return((t=t+(e^r^i)+(s>>>0)+o)<<n|t>>>32-n)+e},i._ii=function(t,e,r,i,s,n,o){return((t=t+(r^(e|~i))+(s>>>0)+o)<<n|t>>>32-n)+e},i._blocksize=16,i._digestsize=16,t.exports=function(t,e){if(null==t)throw new Error("Illegal argument "+t);return t=s.wordsToBytes(i(t,e)),e&&e.asBytes?t:e&&e.asString?a.bytesToString(t):s.bytesToHex(t)}},157:t=>{for(var e=[],r=0;r<256;++r)e[r]=(r+256).toString(16).substr(1);t.exports=function(t,r){return r=r||0,e[t[r++]]+e[t[r++]]+e[t[r++]]+e[t[r++]]+"-"+e[t[r++]]+e[t[r++]]+"-"+e[t[r++]]+e[t[r++]]+"-"+e[t[r++]]+e[t[r++]]+"-"+e[t[r++]]+e[t[r++]]+e[t[r++]]+e[t[r++]]+e[t[r++]]+e[t[r]]}},187:(t,e,r)=>{var i=r(379),s=r(547);t.exports=function(t){return"symbol"==typeof t||s(t)&&"[object Symbol]"==i(t)}},242:t=>{var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(t,e){return t<<e|t>>>32-e},rotr:function(t,e){return t<<32-e|t>>>e},endian:function(t){if(t.constructor==Number)return 16711935&r.rotl(t,8)|4278255360&r.rotl(t,24);for(var e=0;e<t.length;e++)t[e]=r.endian(t[e]);return t},randomBytes:function(t){for(var e=[];0<t;t--)e.push(Math.floor(256*Math.random()));return e},bytesToWords:function(t){for(var e=[],r=0,i=0;r<t.length;r++,i+=8)e[i>>>5]|=t[r]<<24-i%32;return e},wordsToBytes:function(t){for(var e=[],r=0;r<32*t.length;r+=8)e.push(t[r>>>5]>>>24-r%32&255);return e},bytesToHex:function(t){for(var e=[],r=0;r<t.length;r++)e.push((t[r]>>>4).toString(16)),e.push((15&t[r]).toString(16));return e.join("")},hexToBytes:function(t){for(var e=[],r=0;r<t.length;r+=2)e.push(parseInt(t.substr(r,2),16));return e},bytesToBase64:function(t){for(var r=[],i=0;i<t.length;i+=3)for(var s=t[i]<<16|t[i+1]<<8|t[i+2],n=0;n<4;n++)8*i+6*n<=8*t.length?r.push(e.charAt(s>>>6*(3-n)&63)):r.push("=");return r.join("")},base64ToBytes:function(t){t=t.replace(/[^A-Z0-9+\/]/gi,"");for(var r=[],i=0,s=0;i<t.length;s=++i%4)0!=s&&r.push((e.indexOf(t.charAt(i-1))&Math.pow(2,-2*s+8)-1)<<2*s|e.indexOf(t.charAt(i))>>>6-2*s);return r}};t.exports=r},379:(t,e,r)=>{var i=r(650),s=r(870),n=r(5),o=i?i.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":(o&&o in Object(t)?s:n)(t)}},396:t=>{var e,r,i,s="undefined"!=typeof window&&(window.crypto||window.msCrypto);s&&s.getRandomValues&&(e=new Uint8Array(16),r=function(){return s.getRandomValues(e),e}),r||(i=new Array(16),r=function(){for(var t,e=0;e<16;e++)!(3&e)&&(t=4294967296*Math.random()),i[e]=t>>>((3&e)<<3)&255;return i}),t.exports=r},403:(t,e,r)=>{var i=r(945),s=/^\s+/;t.exports=function(t){return t&&t.slice(0,i(t)+1).replace(s,"")}},495:(t,e,r)=>{var i=r(942);t.exports=function(){return i.Date.now()}},496:(t,e,r)=>{var i=r(396),s=r(157);t.exports=function(t,e,r){var n=e&&r||0,o=("string"==typeof t&&(e="binary"==t?new Array(16):null,t=null),(t=t||{}).random||(t.rng||i)());if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e)for(var a=0;a<16;++a)e[n+a]=o[a];return e||s(o)}},547:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},580:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},650:(t,e,r)=>{r=r(942).Symbol,t.exports=r},703:t=>{function e(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}t.exports=function(t){return null!=t&&(e(t)||"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&e(t.slice(0,0))||!!t._isBuffer)}},742:e=>{e.exports=t},784:(t,e,r)=>{var i=r(580),s=r(495),n=r(131),o=Math.max,a=Math.min;t.exports=function(t,e,r){var u,h,l,c,p,d,f=0,g=!1,m=!1,y=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function v(e){var r=u,i=h;return u=h=void 0,f=e,c=t.apply(i,r)}function _(t){var r=t-d;return void 0===d||e<=r||r<0||m&&l<=t-f}function b(){var t,r=s();if(_(r))return E(r);p=setTimeout(b,(t=e-(r-d),m?a(t,l-(r-f)):t))}function E(t){return p=void 0,y&&u?v(t):(u=h=void 0,c)}function x(){var t=s(),r=_(t);if(u=arguments,h=this,d=t,r){if(void 0===p)return f=t=d,p=setTimeout(b,e),g?v(t):c;if(m)return clearTimeout(p),p=setTimeout(b,e),v(d)}return void 0===p&&(p=setTimeout(b,e)),c}return e=n(e)||0,i(r)&&(g=!!r.leading,l=(m="maxWait"in r)?o(n(r.maxWait)||0,e):l,y="trailing"in r?!!r.trailing:y),x.cancel=function(){void 0!==p&&clearTimeout(p),u=d=h=p=void(f=0)},x.flush=function(){return void 0===p?c:E(s())},x}},814:function(t,e){function r(t){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(t)}function i(t,e){return t&e}function s(t,e){return t|e}function n(t,e){return t^e}function o(t,e){return t&~e}f.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return this.toRadix(t);e=2}var i,s=(1<<e)-1,n=!1,o="",a=this.t,u=this.DB-a*this.DB%e;if(0<a--)for(u<this.DB&&0<(i=this[a]>>u)&&(n=!0,o=r(i));0<=a;)u<e?(i=(this[a]&(1<<u)-1)<<e-u,i|=this[--a]>>(u+=this.DB-e)):(i=this[a]>>(u-=e)&s,u<=0&&(u+=this.DB,--a)),(n=0<i||n)&&(o+=r(i));return n?o:"0"},f.prototype.negate=function(){var t=g();return f.ZERO.subTo(this,t),t},f.prototype.abs=function(){return this.s<0?this.negate():this},f.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var r=this.t;if(0!=(e=r-t.t))return this.s<0?-e:e;for(;0<=--r;)if(0!=(e=this[r]-t[r]))return e;return 0},f.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+x(this[this.t-1]^this.s&this.DM)},f.prototype.mod=function(t){var e=g();return this.abs().divRemTo(t,null,e),this.s<0&&0<e.compareTo(f.ZERO)&&t.subTo(e,e),e},f.prototype.modPowInt=function(t,e){return e=new(t<256||e.isEven()?h:l)(e),this.exp(t,e)},f.prototype.clone=function(){var t=g();return this.copyTo(t),t},f.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},f.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},f.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},f.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},f.prototype.equals=function(t){return 0==this.compareTo(t)},f.prototype.min=function(t){return this.compareTo(t)<0?this:t},f.prototype.max=function(t){return 0<this.compareTo(t)?this:t},f.prototype.and=function(t){var e=g();return this.bitwiseTo(t,i,e),e},f.prototype.or=function(t){var e=g();return this.bitwiseTo(t,s,e),e},f.prototype.xor=function(t){var e=g();return this.bitwiseTo(t,n,e),e},f.prototype.shiftLeft=function(t){var e=g();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},f.prototype.bitCount=function(){for(var t=0,e=this.s&this.DM,r=0;r<this.t;++r)t+=(t=>{for(var e=0;0!=t;)t&=t-1,++e;return e})(this[r]^e);return t},f.prototype.testBit=function(t){var e=Math.floor(t/this.DB);return e>=this.t?0!=this.s:!!(this[e]&1<<t%this.DB)},f.prototype.setBit=function(t){return this.changeBit(t,s)},f.prototype.clearBit=function(t){return this.changeBit(t,o)},f.prototype.flipBit=function(t){return this.changeBit(t,n)},f.prototype.subtract=function(t){var e=g();return this.subTo(t,e),e},f.prototype.multiply=function(t){var e=g();return this.multiplyTo(t,e),e},f.prototype.divide=function(t){var e=g();return this.divRemTo(t,e,null),e},f.prototype.remainder=function(t){var e=g();return this.divRemTo(t,null,e),e},f.prototype.divideAndRemainder=function(t){var e=g(),r=g();return this.divRemTo(t,e,r),[e,r]},f.prototype.pow=function(t){return this.exp(t,new u)},f.prototype.copyTo=function(t){for(var e=this.t-1;0<=e;--e)t[e]=this[e];t.t=this.t,t.s=this.s},f.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,0<t?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},f.prototype.fromString=function(t,e){var r;if(16==e)r=4;else if(8==e)r=3;else if(256==e)r=8;else if(2==e)r=1;else if(32==e)r=5;else{if(4!=e)return void this.fromRadix(t,e);r=2}this.t=0,this.s=0;for(var i=t.length,s=!1,n=0;0<=--i;){var o=8==r?255&+t[i]:b(t,i);o<0?"-"==t.charAt(i)&&(s=!0):(s=!1,0==n?this[this.t++]=o:n+r>this.DB?(this[this.t-1]|=(o&(1<<this.DB-n)-1)<<n,this[this.t++]=o>>this.DB-n):this[this.t-1]|=o<<n,(n+=r)>=this.DB&&(n-=this.DB))}8==r&&!!(128&+t[0])&&(this.s=-1,0<n)&&(this[this.t-1]|=(1<<this.DB-n)-1<<n),this.clamp(),s&&f.ZERO.subTo(this,this)},f.prototype.clamp=function(){for(var t=this.s&this.DM;0<this.t&&this[this.t-1]==t;)--this.t},f.prototype.dlShiftTo=function(t,e){for(var r=this.t-1;0<=r;--r)e[r+t]=this[r];for(r=t-1;0<=r;--r)e[r]=0;e.t=this.t+t,e.s=this.s},f.prototype.drShiftTo=function(t,e){for(var r=t;r<this.t;++r)e[r-t]=this[r];e.t=Math.max(this.t-t,0),e.s=this.s},f.prototype.lShiftTo=function(t,e){for(var r=t%this.DB,i=this.DB-r,s=(1<<i)-1,n=Math.floor(t/this.DB),o=this.s<<r&this.DM,a=this.t-1;0<=a;--a)e[a+n+1]=this[a]>>i|o,o=(this[a]&s)<<r;for(a=n-1;0<=a;--a)e[a]=0;e[n]=o,e.t=this.t+n+1,e.s=this.s,e.clamp()},f.prototype.rShiftTo=function(t,e){e.s=this.s;var r=Math.floor(t/this.DB);if(r>=this.t)e.t=0;else{var i=t%this.DB,s=this.DB-i,n=(1<<i)-1;e[0]=this[r]>>i;for(var o=r+1;o<this.t;++o)e[o-r-1]|=(this[o]&n)<<s,e[o-r]=this[o]>>i;0<i&&(e[this.t-r-1]|=(this.s&n)<<s),e.t=this.t-r,e.clamp()}},f.prototype.subTo=function(t,e){for(var r=0,i=0,s=Math.min(t.t,this.t);r<s;)i+=this[r]-t[r],e[r++]=i&this.DM,i>>=this.DB;if(t.t<this.t){for(i-=t.s;r<this.t;)i+=this[r],e[r++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;r<t.t;)i-=t[r],e[r++]=i&this.DM,i>>=this.DB;i-=t.s}e.s=i<0?-1:0,i<-1?e[r++]=this.DV+i:0<i&&(e[r++]=i),e.t=r,e.clamp()},f.prototype.multiplyTo=function(t,e){var r=this.abs(),i=t.abs(),s=r.t;for(e.t=s+i.t;0<=--s;)e[s]=0;for(s=0;s<i.t;++s)e[s+r.t]=r.am(0,i[s],e,s,0,r.t);e.s=0,e.clamp(),this.s!=t.s&&f.ZERO.subTo(e,e)},f.prototype.squareTo=function(t){for(var e=this.abs(),r=t.t=2*e.t;0<=--r;)t[r]=0;for(r=0;r<e.t-1;++r){var i=e.am(r,e[r],t,2*r,0,1);(t[r+e.t]+=e.am(r+1,2*e[r],t,2*r+1,i,e.t-r-1))>=e.DV&&(t[r+e.t]-=e.DV,t[r+e.t+1]=1)}0<t.t&&(t[t.t-1]+=e.am(r,e[r],t,2*r,0,1)),t.s=0,t.clamp()},f.prototype.divRemTo=function(t,e,r){if(!((h=t.abs()).t<=0)){var i=this.abs();if(i.t<h.t)null!=e&&e.fromInt(0),null!=r&&this.copyTo(r);else{null==r&&(r=g());var s=g(),n=this.s,o=(t=t.s,this.DB-x(h[h.t-1])),a=(0<o?(h.lShiftTo(o,s),i.lShiftTo(o,r)):(h.copyTo(s),i.copyTo(r)),s.t),u=s[a-1];if(0!=u){var h=u*(1<<this.F1)+(1<a?s[a-2]>>this.F2:0),l=this.FV/h,c=(1<<this.F1)/h,p=1<<this.F2,d=r.t,m=d-a,y=null==e?g():e;for(s.dlShiftTo(m,y),0<=r.compareTo(y)&&(r[r.t++]=1,r.subTo(y,r)),f.ONE.dlShiftTo(a,y),y.subTo(s,s);s.t<a;)s[s.t++]=0;for(;0<=--m;){var v=r[--d]==u?this.DM:Math.floor(r[d]*l+(r[d-1]+p)*c);if((r[d]+=s.am(0,v,r,m,0,a))<v)for(s.dlShiftTo(m,y),r.subTo(y,r);r[d]<--v;)r.subTo(y,r)}null!=e&&(r.drShiftTo(a,e),n!=t)&&f.ZERO.subTo(e,e),r.t=a,r.clamp(),0<o&&r.rShiftTo(o,r),n<0&&f.ZERO.subTo(r,r)}}}},f.prototype.invDigit=function(){var t,e;return this.t<1||!(1&(t=this[0]))?0:0<(e=(e=(e=(e=(e=3&t)*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)?this.DV-e:-e},f.prototype.isEven=function(){return 0==(0<this.t?1&this[0]:this.s)},f.prototype.exp=function(t,e){if(4294967295<t||t<1)return f.ONE;var r,i=g(),s=g(),n=e.convert(this),o=x(t)-1;for(n.copyTo(i);0<=--o;)e.sqrTo(i,s),0<(t&1<<o)?e.mulTo(s,n,i):(r=i,i=s,s=r);return e.revert(i)},f.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},f.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||36<t)return"0";var e=this.chunkSize(t),r=Math.pow(t,e),i=E(r),s=g(),n=g(),o="";for(this.divRemTo(i,s,n);0<s.signum();)o=(r+n.intValue()).toString(t).substr(1)+o,s.divRemTo(i,s,n);return n.intValue().toString(t)+o},f.prototype.fromRadix=function(t,e){this.fromInt(0);for(var r=this.chunkSize(e=null==e?10:e),i=Math.pow(e,r),s=!1,n=0,o=0,a=0;a<t.length;++a){var u=b(t,a);u<0?"-"==t.charAt(a)&&0==this.signum()&&(s=!0):(o=e*o+u,++n>=r&&(this.dMultiply(i),this.dAddOffset(o,0),o=n=0))}0<n&&(this.dMultiply(Math.pow(e,n)),this.dAddOffset(o,0)),s&&f.ZERO.subTo(this,this)},f.prototype.bitwiseTo=function(t,e,r){for(var i,s=Math.min(t.t,this.t),n=0;n<s;++n)r[n]=e(this[n],t[n]);if(t.t<this.t){for(i=t.s&this.DM,n=s;n<this.t;++n)r[n]=e(this[n],i);r.t=this.t}else{for(i=this.s&this.DM,n=s;n<t.t;++n)r[n]=e(i,t[n]);r.t=t.t}r.s=e(this.s,t.s),r.clamp()},f.prototype.changeBit=function(t,e){return t=f.ONE.shiftLeft(t),this.bitwiseTo(t,e,t),t},f.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},f.prototype.dAddOffset=function(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},f.prototype.multiplyLowerTo=function(t,e,r){var i=Math.min(this.t+t.t,e);for(r.s=0,r.t=i;0<i;)r[--i]=0;for(var s=r.t-this.t;i<s;++i)r[i+this.t]=this.am(0,t[i],r,i,0,this.t);for(s=Math.min(t.t,e);i<s;++i)this.am(0,t[i],r,i,0,e-i);r.clamp()},f.prototype.multiplyUpperTo=function(t,e,r){var i=r.t=this.t+t.t- --e;for(r.s=0;0<=--i;)r[i]=0;for(i=Math.max(e-this.t,0);i<t.t;++i)r[this.t+i-e]=this.am(e-i,t[i],r,0,0,this.t+i-e);r.clamp(),r.drShiftTo(1,r)},f.prototype.square=function(){var t=g();return this.squareTo(t),t};var a=f,u=(d.prototype.convert=function(t){return t},d.prototype.revert=function(t){return t},d.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r)},d.prototype.sqrTo=function(t,e){t.squareTo(e)},d),h=(p.prototype.convert=function(t){return t.s<0||0<=t.compareTo(this.m)?t.mod(this.m):t},p.prototype.revert=function(t){return t},p.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},p.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},p.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},p),l=(c.prototype.convert=function(t){var e=g();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&0<e.compareTo(a.ZERO)&&this.m.subTo(e,e),e},c.prototype.revert=function(t){var e=g();return t.copyTo(e),this.reduce(e),e},c.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var r=32767&t[e],i=r*this.mpl+((r*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(t[r=e+this.m.t]+=this.m.am(0,i,t,e,0,this.m.t);t[r]>=t.DV;)t[r]-=t.DV,t[++r]++}t.clamp(),t.drShiftTo(this.m.t,t),0<=t.compareTo(this.m)&&t.subTo(this.m,t)},c.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},c.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},c);function c(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}function p(t){this.m=t}function d(){}function f(t,e,r){null!=t&&"number"!=typeof t&&(null==e&&"string"!=typeof t?this.fromString(t,256):this.fromString(t,e))}function g(){return new a(null)}function m(t,e){return new a(t,e)}O="Microsoft Internet Explorer"==navigator.appName?(a.prototype.am=function(t,e,r,i,s,n){for(var o=32767&e,a=e>>15;0<=--n;){var u=32767&this[t],h=this[t++]>>15,l=a*u+h*o;s=((u=o*u+((32767&l)<<15)+r[i]+(1073741823&s))>>>30)+(l>>>15)+a*h+(s>>>30),r[i++]=1073741823&u}return s},30):"Netscape"!=navigator.appName?(a.prototype.am=function(t,e,r,i,s,n){for(;0<=--n;){var o=e*this[t++]+r[i]+s;s=Math.floor(o/67108864),r[i++]=67108863&o}return s},26):(a.prototype.am=function(t,e,r,i,s,n){for(var o=16383&e,a=e>>14;0<=--n;){var u=16383&this[t],h=this[t++]>>14,l=a*u+h*o;s=((u=o*u+((16383&l)<<14)+r[i]+s)>>28)+(l>>14)+a*h,r[i++]=268435455&u}return s},28),a.prototype.DB=O,a.prototype.DM=(1<<O)-1,a.prototype.DV=1<<O,a.prototype.FV=Math.pow(2,52),a.prototype.F1=52-O,a.prototype.F2=2*O-52;for(var y=[],v="0".charCodeAt(0),_=0;_<=9;++_)y[v++]=_;for(v="a".charCodeAt(0),_=10;_<36;++_)y[v++]=_;for(v="A".charCodeAt(0),_=10;_<36;++_)y[v++]=_;function b(t,e){return null==(t=y[t.charCodeAt(e)])?-1:t}function E(t){var e=g();return e.fromInt(t),e}function x(t){var e,r=1;return 0!=(e=t>>>16)&&(t=e,r+=16),0!=(e=t>>8)&&(t=e,r+=8),0!=(e=t>>4)&&(t=e,r+=4),0!=(e=t>>2)&&(t=e,r+=2),0!=(e=t>>1)&&(t=e,r+=1),r}a.ZERO=E(0),a.ONE=E(1),N.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)},N.prototype.setPublic=function(t,e){null!=t&&null!=e&&0<t.length&&0<e.length?(this.n=m(t,16),this.e=parseInt(e,16)):console.error("Invalid RSA public key")},N.prototype.verify=function(t,e,r){return e=m(e,16),null==(e=this.doPublic(e))?null:(t=>{for(var e in T)if(T.hasOwnProperty(e)){var r=(e=T[e]).length;if(t.substr(0,r)==e)return t.substr(r)}return t})(e.toString(16).replace(/^1f+00/,""))==r(t).toString()};var w=N,T={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"},O=(S.prototype.verify=function(t,e,i){try{return this.getKey().verify(t,(t=>{for(var e="",i=0,s=0,n=0;n<t.length&&"="!=t.charAt(n);++n){var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(t.charAt(n));o<0||(i=0==i?(e+=r(o>>2),s=3&o,1):1==i?(e+=r(s<<2|o>>4),s=15&o,2):2==i?(e=(e+=r(s))+r(o>>2),s=3&o,3):(e=(e+=r(s<<2|o>>4))+r(15&o),0))}return 1==i&&(e+=r(s<<2)),e})(e),i)}catch(t){return!1}},S.prototype.getKey=function(t){return this.key||(this.key=new w),this.key},S.version="3.0.0-rc.1",S);function S(t){this.key=null}function N(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}e.JSEncrypt=O,e.default=O,Object.defineProperty(e,"__esModule",{value:!0})},834:function(t,e){var r;void 0!==(e="function"==typeof(r=function(){var t,e,r="lscache-",i="-cacheexpiration",s=6e4,n=_(s),o="",a=!1;function u(){var e="__lscachetest__";if(void 0===t){try{if(!localStorage)return!1}catch(e){return!1}try{d(e,"__lscachetest__"),f(e),t=!0}catch(e){t=!(!h(e)||!localStorage.length)}}return t}function h(t){return t&&("QUOTA_EXCEEDED_ERR"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name||"QuotaExceededError"===t.name)}function l(){return e=void 0===e?null!=window.JSON:e}function c(){return Math.floor((new Date).getTime()/s)}function p(t){return localStorage.getItem(r+o+t)}function d(t,e){localStorage.removeItem(r+o+t),localStorage.setItem(r+o+t,e)}function f(t){localStorage.removeItem(r+o+t)}function g(t){for(var e,s=new RegExp("^"+r+o.replace(/[[\]{}()*+?.\\^$|]/g,"\\$&")+"(.*)"),n=[],a=0;a<localStorage.length;a++)(e=(e=(e=localStorage.key(a))&&e.match(s))&&e[1])&&e.indexOf(i)<0&&n.push(e);for(a=0;a<n.length;a++)t(n[a],n[a]+i)}function m(t){var e=t+i;f(t),f(e)}function y(t){var e=t+i,r=p(e);return r&&(r=parseInt(r,10),c()>=r)&&(f(t),f(e),1)}function v(t,e){a&&"console"in window&&"function"==typeof window.console.warn&&(window.console.warn("lscache - "+t),e)&&window.console.warn("lscache - The error was: "+e.message)}function _(t){return Math.floor(864e13/t)}return{set:function(t,e,r){if(!u())return!1;if(!l())return!1;try{e=JSON.stringify(e)}catch(r){return!1}try{d(t,e)}catch(r){if(!h(r))return v("Could not add item with key '"+t+"'",r),!1;for(var s,o=[],a=(g(function(t,e){e=(e=p(e))?parseInt(e,10):n,o.push({key:t,size:(p(t)||"").length,expiration:e})}),o.sort(function(t,e){return e.expiration-t.expiration}),(e||"").length);o.length&&0<a;)v("Cache is full, removing item with key '"+(s=o.pop()).key+"'"),m(s.key),a-=s.size;try{d(t,e)}catch(r){return v("Could not add item with key '"+t+"', perhaps it's too big?",r),!1}}return r?d(t+i,(c()+r).toString(10)):f(t+i),!0},get:function(t){if(!u())return null;if(y(t))return null;if(!(t=p(t))||!l())return t;try{return JSON.parse(t)}catch(e){return t}},remove:function(t){u()&&m(t)},supported:u,flush:function(){u()&&g(function(t){m(t)})},flushExpired:function(){u()&&g(function(t){y(t)})},setBucket:function(t){o=t},resetBucket:function(){o=""},getExpiryMilliseconds:function(){return s},setExpiryMilliseconds:function(t){n=_(s=t)},enableWarnings:function(t){a=t}}})?r.apply(e,[]):r)&&(t.exports=e)},870:(t,e,r)=>{r=r(650);var i=Object.prototype,s=i.hasOwnProperty,n=i.toString,o=r?r.toStringTag:void 0;t.exports=function(t){var e=s.call(t,o),r=t[o];try{var i=!(t[o]=void 0)}catch(t){}var a=n.call(t);return i&&(e?t[o]=r:delete t[o]),a}},934:t=>{var e={utf8:{stringToBytes:function(t){return e.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(e.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var e=[],r=0;r<t.length;r++)e.push(255&t.charCodeAt(r));return e},bytesToString:function(t){for(var e=[],r=0;r<t.length;r++)e.push(String.fromCharCode(t[r]));return e.join("")}}};t.exports=e},942:(t,e,r)=>{r=r(967);var i="object"==typeof self&&self&&self.Object===Object&&self;r=r||i||Function("return this")(),t.exports=r},945:t=>{var e=/\s/;t.exports=function(t){for(var r=t.length;r--&&e.test(t.charAt(r)););return r}},967:t=>{var e="object"==typeof window&&window&&window.Object===Object&&window;t.exports=e}},r={};function i(t){var s=r[t];return void 0===s&&(s=r[t]={exports:{}},e[t].call(s.exports,s,s.exports,i)),s.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var r in e)i.o(e,r)&&!i.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var s={};{(i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})})(s),i.d(s,{Flag:()=>Dr,RoxErrorTrigger:()=>U,RoxFetcherStatus:()=>k,RoxFlag:()=>Dr,RoxFlagFreezeLevel:()=>N,RoxNumber:()=>Ar,RoxOverridesPosition:()=>L,RoxString:()=>Nr,default:()=>_i,dynamicApi:()=>bi,flags:()=>Ei,overrides:()=>u});var n={},o=(i.r(n),i.d(n,{and:()=>Lt,b64d:()=>fe,concat:()=>de,eq:()=>Vt,flagValue:()=>ae,gt:()=>$t,gte:()=>Yt,ifThen:()=>Ht,inArray:()=>ce,isInPercentage:()=>ne,isInPercentageRange:()=>oe,isInTargetGroup:()=>ue,isTargetGroupPaired:()=>he,isUndefined:()=>kt,lt:()=>Kt,lte:()=>Gt,match:()=>Xt,md5:()=>pe,mergeSeed:()=>se,ne:()=>Bt,not:()=>zt,now:()=>Ut,numeq:()=>Jt,numne:()=>Wt,operatorsWithContext:()=>ge,or:()=>jt,property:()=>le,semverEq:()=>re,semverGt:()=>te,semverGte:()=>ee,semverLt:()=>Zt,semverLte:()=>Qt,semverNe:()=>ie,tsToNum:()=>qt}),{}),a=(i.r(o),i.d(o,{fL:()=>Se,Zn:()=>Xe,Y3:()=>Ne,WB:()=>Re}),{}),u=(i.r(a),i.d(a,{B:()=>Ee}),{}),h=(i.r(u),i.d(u,{clearAllOverrides:()=>M,clearOverride:()=>F,getOriginalValue:()=>function(t){if(t)return(t=St.flagWithName(t))?t._originalValue():null;throw new Error("Missing name")},getOverride:()=>function(t=null){if(t)return wr[t];throw new Error("Missing name")},hasOverride:()=>function(t=null){return void 0!==t&&void 0!==wr[t]},setOverride:()=>C}),{});i.r(h),i.d(h,{iI:()=>St});let z={debug:0,info:1,warn:2,error:3},H="error",K=new class{constructor(){this.debug=(t,...e)=>{z[H]<=z.debug&&console&&console.log(t,...e)},this.info=(t,...e)=>{z[H]<=z.info&&console&&console.info(t,...e)},this.warn=(t,...e)=>{z[H]<=z.warn&&console&&console.warn(t,...e)},this.error=(t,...e)=>{console&&console.error(t,...e)},this.setVerboseMode=t=>{"verbose"===t?(H="debug",this.debug("Active verbose mode")):H="error"},this.setLogger=t=>{K=t}}},G=K,q="function"==typeof Buffer,$="function"==typeof TextDecoder?new TextDecoder:void 0,W="function"==typeof TextEncoder?new TextEncoder:void 0,J=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),Y=(t=>{let e={};return t.forEach((t,r)=>e[t]=r),e})(J),X=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Z=String.fromCharCode.bind(String),Q="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):t=>new Uint8Array(Array.prototype.slice.call(t,0)),tt=t=>t.replace(/[^A-Za-z0-9\+\/]/g,""),et="function"==typeof btoa?t=>btoa(t):q?t=>Buffer.from(t,"binary").toString("base64"):t=>{let e,r,i,s,n="",o=t.length%3;for(let o=0;o<t.length;){if(255<(r=t.charCodeAt(o++))||255<(i=t.charCodeAt(o++))||255<(s=t.charCodeAt(o++)))throw new TypeError("invalid character found");e=r<<16|i<<8|s,n+=J[e>>18&63]+J[e>>12&63]+J[e>>6&63]+J[63&e]}return o?n.slice(0,o-3)+"===".substring(o):n},rt=q?t=>Buffer.from(t).toString("base64"):t=>{var e=[];for(let r=0,i=t.length;r<i;r+=4096)e.push(Z.apply(null,t.subarray(r,r+4096)));return et(e.join(""))},it=t=>{var e;return t.length<2?(e=t.charCodeAt(0))<128?t:e<2048?Z(192|e>>>6)+Z(128|63&e):Z(224|e>>>12&15)+Z(128|e>>>6&63)+Z(128|63&e):(e=65536+1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320),Z(240|e>>>18&7)+Z(128|e>>>12&63)+Z(128|e>>>6&63)+Z(128|63&e))},st=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,nt=t=>t.replace(st,it),ot=q?t=>Buffer.from(t,"utf8").toString("base64"):W?t=>rt(W.encode(t)):t=>et(nt(t)),at=(t,e=!1)=>e?ot(t).replace(/=/g,"").replace(/[+\/]/g,t=>"+"==t?"-":"_"):ot(t),ut=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,ht=t=>{switch(t.length){case 4:var e=((7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3))-65536;return Z(55296+(e>>>10))+Z(56320+(1023&e));case 3:return Z((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return Z((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},lt=t=>t.replace(ut,ht),ct="function"==typeof atob?t=>atob(tt(t)):q?t=>Buffer.from(t,"base64").toString("binary"):t=>{if(t=t.replace(/\s+/g,""),!X.test(t))throw new TypeError("malformed base64.");t+="==".slice(2-(3&t.length));var e,r,i,s=[];for(let n=0;n<t.length;)e=Y[t.charAt(n++)]<<18|Y[t.charAt(n++)]<<12|(r=Y[t.charAt(n++)])<<6|(i=Y[t.charAt(n++)]),s.push(64===r?Z(e>>16&255):64===i?Z(e>>16&255,e>>8&255):Z(e>>16&255,e>>8&255,255&e));return s.join("")},pt=q?t=>Q(Buffer.from(t,"base64")):t=>Q(ct(t).split("").map(t=>t.charCodeAt(0))),dt=q?t=>Buffer.from(t,"base64").toString("utf8"):$?t=>$.decode(pt(t)):t=>lt(ct(t)),ft=t=>dt(tt(t.replace(/[-_]/g,t=>"-"==t?"+":"/"))),gt="roxTargetUrl",mt="roxAuth";class yt{constructor(t){this._proxyUrl="",this._proxyAuthHeader="",this._proxySettings=!1,t&&(this._proxySettings=Object.assign({},t),this._proxyUrl=this._proxySettings.protocol+"://"+this._proxySettings.host+(this._proxySettings.port?":"+this._proxySettings.port:""),this._proxySettings.auth)&&this._proxySettings.auth.username&&this._proxySettings.auth.password&&(this._proxyAuthHeader="Basic "+at(this._proxySettings.auth.username+":"+this._proxySettings.auth.password),this._proxyAuthHeaderEncoded=encodeURIComponent(this._proxyAuthHeader))}applyProxyToRequest(t){var e;this._proxySettings&&(t.options=t.options?Object.assign({},t.options):{},(e=t.options).params=e.params||{},e.params[gt]=t.url,this._proxyAuthHeader&&(e.params[mt]=this._proxyAuthHeader),t.url=this._proxyUrl)}applyProxyToSseRequest(t){this._proxySettings&&(t.url=`${this._proxyUrl}?${gt}=`+encodeURIComponent(t.url),this._proxyAuthHeaderEncoded)&&(t.url=`${t.url}&${mt}=`+this._proxyAuthHeaderEncoded)}get proxyUrl(){return this._proxyUrl}}let vt="x-api.rollout.io",_t=new yt,bt=t=>{var e={API_HOST:e="eu"==t?"eu-"+vt:"x-api.rollout.io",CD_API_ENDPOINT:`https://${e}/device/get_configuration`,CD_S3_ENDPOINT:"https://conf.rollout.io/",SS_API_ENDPOINT:`https://${e}/device/update_state_store/`,SS_S3_ENDPOINT:"https://statestore.rollout.io/",CLIENT_DATA_CACHE_KEY:"client_data",NOTIFICATIONS_ENDPOINT:"https://push.rollout.io/sse",ANALYTICS_ENDPOINT:"https://analytic.rollout.io",ERROR_REPORTER:void 0};return"platform"==t&&(e.API_HOST="api.cloudbees.io",e.CD_API_ENDPOINT="https://api.cloudbees.io/device/get_configuration",e.CD_S3_ENDPOINT="https://rox-conf.cloudbees.io/",e.SS_API_ENDPOINT="https://api.cloudbees.io/device/update_state_store/",e.SS_S3_ENDPOINT="https://rox-state.cloudbees.io/",e.ANALYTICS_ENDPOINT="https://fm-analytics.cloudbees.io",e.NOTIFICATIONS_ENDPOINT="https://sdk-notification-service.cloudbees.io/sse"),e},Et=Object.assign({},bt()),xt={get:t=>Et[t],set:(t,e)=>{Et[t]=e},setActive:function(t){Et=Object.assign({},t)},setProxy:function(t){_t=new yt(t)},getProxy:()=>_t,setHosting:function(t){"eu"===t&&(Et=Object.assign({},bt("eu-"))),"platform"===t&&(Et=Object.assign({},bt(t)))},setSelfManagedMode:function(t){var e,r,i,s;Et=Object.assign({},bt(),(({analyticsURL:t,serverURL:e,pushUpdateURL:r,configurationURL:i,stateURL:s}=t),{CD_API_ENDPOINT:e+"/device/get_configuration",SS_API_ENDPOINT:e+"/device/update_state_store/",CLIENT_DATA_CACHE_KEY:"client_data",ANALYTICS_ENDPOINT:t,NOTIFICATIONS_ENDPOINT:r+"/sse",CD_S3_ENDPOINT:i,SS_S3_ENDPOINT:s,ERROR_REPORTER:void 0}))},setErrorReporter:function(t){Et.ERROR_REPORTER=t},getErrorReporter:()=>Et.ERROR_REPORTER};class wt{constructor(t,e,r,i){var{distinct_id:s,app_release:n,platform:o,api_version:a,lib_version:u}=e=e.getProperties();e=((t,e)=>{var r={};for(s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(r[s]=t[s]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,s=Object.getOwnPropertySymbols(t);i<s.length;i++)e.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(t,s[i])&&(r[s[i]]=t[s[i]]);return r})(e,["distinct_id","app_release","platform","api_version","lib_version"]),this.device=e,this.header={apiKey:"abbf3bd9c6e80eb1e8c0566c35b08748",notifier:{name:"Rollout JavaScript SDK",version:u,url:"undefined"!=typeof window&&window.location&&window.location.href||void 0}},this.networkOptions=r,this.networkSender=i,this.user={distinct_id:s,app_release:n,app_key:t,platform:o},this.app={api_version:a,lib_version:u}}error(t,e){return this._notify("error",t,e)}_notify(t,e,r){return t={payloadVersion:4,exceptions:[],app:this.app,user:this.user,device:this.device,metaData:{data:{message:e,exception:r.toString()}},severity:t},r instanceof Error?(t.exceptions.push({errorClass:r.name,message:e+"\n"+r.message,stacktrace:r.stack||""}),t.groupingHash=r.fileName):t.exceptions.push({errorClass:"Error",message:e,stacktrace:[]}),this._send([t])}_send(t){t=Object.assign({events:t},this.header),G.debug("Sending bugsnag error report."),t={url:"https://notify.bugsnag.com",data:t,options:this.networkOptions},xt.getProxy().applyProxyToRequest(t);try{this.networkSender.post(t.url,t.data,t.options).then(()=>{G.debug("Successfully sent error report.")}).catch(t=>{G.debug("Failed to send error report",t)})}catch(t){G.debug("Failed to send error report.",t)}}}class Tt{constructor(t,e){this.flagRepo=t,this.experimentsRepo=e}prepareFlagsWithExperiments(){var t=this.experimentsRepo.experiments||[];G.debug("Set experiments "+JSON.stringify(t));let e=[];t.forEach(t=>{t&&t.flags.forEach(r=>{(r=r&&this.flagRepo.flagWithName(r.name))&&(e.push(r),this.connectExperimentToFlag(r,t.deploymentConfiguration.condition))})}),this.flagRepo.flags.forEach(t=>{e.some(e=>e===t)||this.connectExperimentToFlag(t,void 0)})}setAddedFlag(t){var e=this.experimentsRepo.experimentForFlag(t);e&&this.connectExperimentToFlag(t,e.deploymentConfiguration.condition)}connectExperimentToFlag(t,e){t.condition=e}}let Ot=new class{constructor(){this.map={}}setExperiments(t){this.map={},(t=t||[]).forEach(function(t){this.map[t.identifier]=t},this)}experimentWithName(t){return this.map[t]}get experiments(){return Object.keys(this.map).map(t=>this.map[t])}experimentForFlagName(t){return this.experiments.find(e=>e.flags&&e.flags.some(e=>e.name===t))}experimentForFlag(t){return this.experimentForFlagName(t.name)}},St=new class{constructor(){this.map={}}addFlag(t,e){e.name=t,this.map[t]=e,new Tt(this,Ot).setAddedFlag(e)}flagWithName(t){return this.map[t]}get flags(){return Object.keys(this.map).map(t=>this.map[t])}get items(){return this.flags}};class Nt{constructor(t,e,r){this._string=t,this._delimiters=e,this._returnDelim=r,this._position=0}countTokens(){let t=0,e=!1;for(let r=this._position,i=this._string.length;r<i;r++)-1!=this._delimiters.indexOf(this._string.charAt(r))?(this._returnDelim&&t++,e&&(t++,e=!1)):e=!0;return e&&t++,t}hasMoreElements(){return this.hasMoreTokens()}hasMoreTokens(){if(this._delimiters){var t=this._string.length;if(this._position<t){if(this._returnDelim)return!0;for(let e=this._position;e<t;e++)if(-1==this._delimiters.indexOf(this._string.charAt(e)))return!0}}return!1}nextElement(){return this.nextToken()}nextToken(){if(this._delimiters){let t=this._position,e=this._string.length;if(t<e){if(this._returnDelim){if(-1!=this._delimiters.indexOf(this._string.charAt(this._position)))return this._string.charAt(this._position++);for(this._position++;this._position<e;this._position++)if(-1!=this._delimiters.indexOf(this._string.charAt(this._position)))return this._string.substr(t,this._position-t);return this._string.substr(t)}for(;t<e&&-1!=this._delimiters.indexOf(this._string.charAt(this._position));)t++;if((this._position=t)<e){for(this._position++;this._position<e;this._position++)if(-1!=this._delimiters.indexOf(this._string.charAt(this._position)))return this._string.substr(t,this._position-t);return this._string.substr(t)}}}}nextTokenWithDelimiters(t){return this._delimiters=t,this.nextToken()}}let Rt=new class{constructor(){this.map={}}addTargetGroup(t){this.map[t.identifier]=t}setTargetGroups(t){this.map={},(t=t||[]).forEach(function(t){this.map[t.identifier]=t},this)}targetGroupWithName(t){return this.map[t]}get targetGroups(){return Object.keys(this.map).map(t=>this.map[t])}},Pt=new class{constructor(){this.store=new Map}has(t){return this.store.has(t.name)}get(t){return this.store.get(t)}set(t){this.store.set(t.name,t)}setIfNotExists(t){this.has(t)||this.set(t)}clear(){this.store.clear()}get items(){return Array.from(this.store.values())}},At=i(150);var l=i.n(At);let Dt=(t,e)=>e?e[t]:void 0,It=Dt,Ct={DYNAMIC_PROPERTIES_RULE:"DYNAMIC_PROPERTIES_RULE",CONFIGURATION_FETCHED_HANDLER:"CONFIGURATION_FETCHED_HANDLER",IMPRESSION_HANDLER:"IMPRESSION_HANDLER",CUSTOM_PROPERTY_GENERATOR:"CUSTOM_PROPERTY_GENERATOR"},Ft=new class{invoke(t,e){if(this.userUnhandledErrorHandler)try{this.userUnhandledErrorHandler(t,e)}catch(t){G.error("User Unhandled Error Handler itself threw an exception. original exception:"+e,t)}else G.error("User Unhandled Error Occured, no fallback handler was set, exception ignored.",e)}setHandler(t){t instanceof Function?this.userUnhandledErrorHandler=t:G.warn("UserspaceUnhandledErrorHandler must be a function. default will be used.")}};function c(t,e,r={zeroExtend:!0,lexicographical:!0}){let i=r&&r.lexicographical,s=r&&r.zeroExtend,n=t.split("."),o=e.split(".");function a(t){return(i?/[0-9A-Za-z_-]+$/:/^\d+$/).test(t)}if(!n.every(a)||!o.every(a))return NaN;if(s){for(;n.length<o.length;)n.push("0");for(;o.length<n.length;)o.push("0")}i||(n=n.map(Number),o=o.map(Number));for(let t=0;t<n.length;++t){if(o.length==t)return 1;if(n[t]!=o[t])return n[t]>o[t]?1:-1}return n.length!=o.length?-1:0}let Mt=t=>((255&(t=l()(t,{asBytes:!0}))[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24)>>>0)/(Math.pow(2,32)-1),kt=t=>void 0===t,Ut=()=>Date.now(),Lt=(t,e)=>t&&e,jt=(t,e)=>t||e,Bt=(t,e)=>(!kt(t)&&t)!==(!kt(e)&&e),Vt=(t,e)=>(!kt(t)&&t)===(!kt(e)&&e),zt=t=>!t,Ht=(t,e,r)=>t?e:r,Kt=(t,e)=>!kt(t)&&!kt(e)&&!("number"!=typeof t&&(t=Number(t),isNaN(t))||"number"!=typeof e&&(e=Number(e),isNaN(e)))&&t<e,Gt=(t,e)=>!kt(t)&&!kt(e)&&!("number"!=typeof t&&(t=Number(t),isNaN(t))||"number"!=typeof e&&(e=Number(e),isNaN(e)))&&t<=e,qt=t=>!kt(t)&&t instanceof Date?t.getTime()/1e3:void 0,$t=(t,e)=>!kt(t)&&!kt(e)&&!("number"!=typeof t&&(t=Number(t),isNaN(t))||"number"!=typeof e&&(e=Number(e),isNaN(e)))&&e<t,Wt=(t,e)=>!kt(t)&&!kt(e)&&!("number"!=typeof t&&(t=Number(t),isNaN(t))||"number"!=typeof e&&(e=Number(e),isNaN(e))||t===e),Jt=(t,e)=>!kt(t)&&!kt(e)&&!("number"!=typeof t&&(t=Number(t),isNaN(t))||"number"!=typeof e&&(e=Number(e),isNaN(e))||t!==e),Yt=(t,e)=>!kt(t)&&!kt(e)&&!("number"!=typeof t&&(t=Number(t),isNaN(t))||"number"!=typeof e&&(e=Number(e),isNaN(e)))&&e<=t,Xt=(t,e,r)=>!!new RegExp(e,r).exec(t),Zt=(t,e)=>!kt(t)&&!kt(e)&&"string"==typeof t&&"string"==typeof e&&c(t,e,{zeroExtend:!0})<0,Qt=(t,e)=>!kt(t)&&!kt(e)&&"string"==typeof t&&"string"==typeof e&&c(t,e,{zeroExtend:!0})<=0,te=(t,e)=>!kt(t)&&!kt(e)&&"string"==typeof t&&"string"==typeof e&&0<c(t,e,{zeroExtend:!0}),ee=(t,e)=>!kt(t)&&!kt(e)&&"string"==typeof t&&"string"==typeof e&&0<=c(t,e,{zeroExtend:!0}),re=(t,e)=>!kt(t)&&!kt(e)&&"string"==typeof t&&"string"==typeof e&&0==c(t,e),ie=(t,e)=>!kt(t)&&!kt(e)&&"string"==typeof t&&"string"==typeof e&&0!=c(t,e),se=(t,e)=>t+"."+e,ne=(t,e)=>Mt(e)<=t,oe=(t,e,r)=>t<=(r=Mt(r))&&r<=e,ae=(t,e={},r={})=>{var i,s=St.flagWithName(t);return s?(i=Object.assign({},r),s.getInternalValue(i,e),i.isPeek||i.result.isOverride||i.result.isFreezed||s._flagImpression(i.result.value,i.result.usedContext),i.result.value):(s=Ot.experimentForFlagName(t))&&s.deploymentConfiguration&&(new Ee).evaluateExpression(s.deploymentConfiguration.condition,r,e)||"false"},ue=(t,e={},r={})=>!!(t=Rt.targetGroupWithName(t))&&(new Ee).evaluateExpression(t.condition,r,e),he=()=>!1,le=(t,e={})=>{var r=Pt.get(t);if(r)return r.getValue(e);{let i,s=It;if(s)if(s._isUserDefined)try{i=s(t,e)}catch(r){throw r.isUserError=!0,r.trigger=Ct.DYNAMIC_PROPERTIES_RULE,r}else i=s(t,e);return i}},ce=(t,e)=>!!e&&e.includes(t),pe=t=>{if("string"==typeof t)return l()(t)},de=(t,e)=>{if("string"==typeof t&&"string"==typeof e)return""+t+e},fe=t=>{if("string"==typeof t)return decodeURIComponent(ft(t))},ge=[ue,ae,le],me=Object.keys(n),ye='{}[]():, \t\r\n"',ve="operator",_e="operand";class be{constructor(){this.tokenArray=[],this.arrayAccumulator=void 0,this.dictionaryAccumulator=void 0,this.dictKey=void 0}_stringToRoxx(t){return me.includes(t)?{type:ve,value:t}:"true"==t?{type:_e,value:!0}:"false"==t?{type:_e,value:!1}:"undefined"==t?{type:_e,value:void 0}:'"'==t.charAt(0)&&'"'==t.charAt(t.length-1)?{type:_e,value:t.substr(1,t.length-2)}:isNaN(t)?{type:"UNKNOWN"}:{type:_e,value:+t}}push(t){this.dictionaryAccumulator&&!this.dictKey?this.dictKey=t.value:this.dictionaryAccumulator&&this.dictKey?(this.dictionaryAccumulator[this.dictKey]=t.value,this.dictKey=void 0):this.arrayAccumulator?this.arrayAccumulator.push(t.value):this.tokenArray.push(t)}tokenize(t){this.tokenArray=[],this.arrayAccumulator=void 0,this.dictionaryAccumulator=void 0;let e,r,i=ye,s=t.replace('\\"',"\\RO_Q"),n=new Nt(s,i,!0);for(;n.hasMoreTokens();)switch(r=e,e=n.nextTokenWithDelimiters(i)){case"{":this.dictionaryAccumulator={};break;case"}":this.tokenArray.push({type:_e,value:this.dictionaryAccumulator}),this.dictionaryAccumulator=void 0;break;case"[":this.arrayAccumulator=[];break;case"]":this.tokenArray.push({type:_e,value:this.arrayAccumulator}),this.arrayAccumulator=void 0;break;case'"':'"'==r&&this.push({type:_e,value:""}),i='"'==i?ye:'"';break;default:'"'==i?this.push({type:_e,value:e.replace("\\RO_Q",'\\"')}):-1==ye.indexOf(e)&&this.push(this._stringToRoxx(e))}return this.tokenArray}}class Ee{constructor(t){this._tokenizer=new be,this._cache=t||{}}_argsArrayForOperator(t,e){var r=[],i=t.length;for(let t=0;t<i;t++){var s=e.pop();r.push(s)}return r}_modifyArgsHook({operator:t,args:e,context:r,callContext:i}){let s=e;return r&&ge.includes(t)&&(s=[...e,r]),i?[...s,i]:s}compileExpression(t){let e=this._cache[t];return e||(e=this._tokenizer.tokenize(t).reverse(),this._cache[t]=e),e}evaluateExpression(t,e={},r={},i){let s,o,a=[],u=this.compileExpression(t),h=u.length;try{for(let t=0;t<h;t++){var l=u[t];if(l.type==_e)a.push(l.value);else{if(l.type!=ve){a.push(void 0);break}var c=n[l.value],p=this._argsArrayForOperator(c,a),d=(p=this._modifyArgsHook({operator:c,args:p,context:r,callContext:e}),c.apply(this,p)),f=(a.push(d),`${l.value}(${JSON.stringify(p)}) => `+d);i&&i.push(f),G.debug("Roxx: "+f)}}o=a.pop()}catch(e){var g="Uh oh! An error occurred during Roxx evaluation. "+t;e.isUserError?Ft.invoke(e.trigger,e):null!=(s=xt.getErrorReporter())&&s.error(g,e),G.error(g,e),o=!1}finally{return o}}}let xe=!1,we={"rox.internal.pushUpdates":"true","rox.internal.considerThrottleInPush":"false","rox.internal.throttleFetchInSeconds":"0","rox.internal.analytics":"true"};function p(t){return"boolean"==typeof(t=d(t))?t:"true"===t}function d(t){return xe&&Object.prototype.hasOwnProperty.call(we,t)?we[t]:(t=Ot.experimentForFlagName(t))&&t.deploymentConfiguration?(new Ee).evaluateExpression(t.deploymentConfiguration.condition):""}let Te=null,Oe=null,Se={frozenOrCalc:"frozenValueOrOneTimeEval",oneTimeCalc:"oneTimeEval",default:"useFrozen"},Ne={boolean:"boolean",number:"number",string:"string"};class Re{constructor(t,e,r){if(this._type=r,r=this._validateDefault(t),Array.isArray(e))this._validateOptions(e),this._options=e.map(t=>t.toString());else{if(null!=e)throw new Error("RoxStringBase wrong variations type");this._options=[]}-1===this._options.indexOf(r)&&this._options.push(r),this._value=this._defaultValue=r,this._frozen=!1,this._freezable=!0}_validateDefault(t){if(typeof t!==this._type)throw new Error(`RoxStringBase default value must be of ${this._type} type. Received '${t}'`);return t.toString()}_validateOptions(t){var e=new Error(`RoxStringBase options must be a non-empty array of ${this._type}. Received '${t}'`);if(!t.every(t=>typeof t===this._type))throw e}get defaultValue(){return this._defaultValue}get overridenValue(){if(this.overrider.hasOverride(this.name))return this.overrider.getOverride(this.name)}get overrider(){throw new Error("Not implemented")}getInternalValue(t,e){throw Error("not implemented")}get externalType(){switch(this._type){case Ne.boolean:return Boolean.name;case Ne.number:return Number.name;default:return Ne.string,String.name}}set name(t){this._name=t}get name(){return this._name}_getNameDetails(){var t;if(this.name)return{name:(t=this.name.split(".")).pop(),namespace:t.join(".")||"default"}}dump(){var t={type:Se.frozenOrCalc};return this.getInternalValue(t),{name:this.name,type:this._type,nameDetails:this._getNameDet