@hackler/react-sdk 11.13.0 → 11.13.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.es.js +1 -1
- package/lib/index.js +1 -1
- package/lib/index.umd.js +1 -1
- package/package.json +2 -2
package/lib/index.es.js
CHANGED
package/lib/index.js
CHANGED
package/lib/index.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).hackleReactSDK={})}(this,function(l){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function D(r){if(r.__esModule)return r;var n=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(r).forEach(function(e){var t=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(n,e,t.get?t:{enumerable:!0,get:function(){return r[e]}})}),n}var L,t={},F=new Uint8Array(16);function j(){if(L=L||"undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto))return L(F);throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported")}var V=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function H(e){return"string"==typeof e&&V.test(e)}for(var z,K,B=[],G=0;G<256;++G)B.push((G+256).toString(16).substr(1));function q(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,e=(B[e[t+0]]+B[e[t+1]]+B[e[t+2]]+B[e[t+3]]+"-"+B[e[t+4]]+B[e[t+5]]+"-"+B[e[t+6]]+B[e[t+7]]+"-"+B[e[t+8]]+B[e[t+9]]+"-"+B[e[t+10]]+B[e[t+11]]+B[e[t+12]]+B[e[t+13]]+B[e[t+14]]+B[e[t+15]]).toLowerCase();if(H(e))return e;throw TypeError("Stringified UUID is invalid")}var $=0,Y=0;function X(e){if(!H(e))throw TypeError("Invalid UUID");var t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r}function W(e,s,a){function t(e,t,r,n){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}(e)),16!==(t="string"==typeof t?X(t):t).length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var i=new Uint8Array(16+e.length);if(i.set(t),i.set(e,t.length),(i=a(i))[6]=15&i[6]|s,i[8]=63&i[8]|128,r){n=n||0;for(var o=0;o<16;++o)r[n+o]=i[o];return r}return q(i)}try{t.name=e}catch(e){}return t.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",t.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",t}function J(e){return 14+(e+64>>>9<<4)+1}function Q(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function Z(e,t,r,n,i,o){return Q((t=Q(Q(t,e),Q(n,o)))<<i|t>>>32-i,r)}function ee(e,t,r,n,i,o,s){return Z(t&r|~t&n,e,t,i,o,s)}function te(e,t,r,n,i,o,s){return Z(t&n|r&~n,e,t,i,o,s)}function re(e,t,r,n,i,o,s){return Z(t^r^n,e,t,i,o,s)}function ne(e,t,r,n,i,o,s){return Z(r^(t|~n),e,t,i,o,s)}var r=W("v3",48,function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}for(var n=function(e,t){e[t>>5]|=128<<t%32,e[J(t)-1]=t;for(var r=1732584193,n=-271733879,i=-1732584194,o=271733878,s=0;s<e.length;s+=16){var a=r,u=n,c=i,l=o;r=ee(r,n,i,o,e[s],7,-680876936),o=ee(o,r,n,i,e[s+1],12,-389564586),i=ee(i,o,r,n,e[s+2],17,606105819),n=ee(n,i,o,r,e[s+3],22,-1044525330),r=ee(r,n,i,o,e[s+4],7,-176418897),o=ee(o,r,n,i,e[s+5],12,1200080426),i=ee(i,o,r,n,e[s+6],17,-1473231341),n=ee(n,i,o,r,e[s+7],22,-45705983),r=ee(r,n,i,o,e[s+8],7,1770035416),o=ee(o,r,n,i,e[s+9],12,-1958414417),i=ee(i,o,r,n,e[s+10],17,-42063),n=ee(n,i,o,r,e[s+11],22,-1990404162),r=ee(r,n,i,o,e[s+12],7,1804603682),o=ee(o,r,n,i,e[s+13],12,-40341101),i=ee(i,o,r,n,e[s+14],17,-1502002290),n=ee(n,i,o,r,e[s+15],22,1236535329),r=te(r,n,i,o,e[s+1],5,-165796510),o=te(o,r,n,i,e[s+6],9,-1069501632),i=te(i,o,r,n,e[s+11],14,643717713),n=te(n,i,o,r,e[s],20,-373897302),r=te(r,n,i,o,e[s+5],5,-701558691),o=te(o,r,n,i,e[s+10],9,38016083),i=te(i,o,r,n,e[s+15],14,-660478335),n=te(n,i,o,r,e[s+4],20,-405537848),r=te(r,n,i,o,e[s+9],5,568446438),o=te(o,r,n,i,e[s+14],9,-1019803690),i=te(i,o,r,n,e[s+3],14,-187363961),n=te(n,i,o,r,e[s+8],20,1163531501),r=te(r,n,i,o,e[s+13],5,-1444681467),o=te(o,r,n,i,e[s+2],9,-51403784),i=te(i,o,r,n,e[s+7],14,1735328473),n=te(n,i,o,r,e[s+12],20,-1926607734),r=re(r,n,i,o,e[s+5],4,-378558),o=re(o,r,n,i,e[s+8],11,-2022574463),i=re(i,o,r,n,e[s+11],16,1839030562),n=re(n,i,o,r,e[s+14],23,-35309556),r=re(r,n,i,o,e[s+1],4,-1530992060),o=re(o,r,n,i,e[s+4],11,1272893353),i=re(i,o,r,n,e[s+7],16,-155497632),n=re(n,i,o,r,e[s+10],23,-1094730640),r=re(r,n,i,o,e[s+13],4,681279174),o=re(o,r,n,i,e[s],11,-358537222),i=re(i,o,r,n,e[s+3],16,-722521979),n=re(n,i,o,r,e[s+6],23,76029189),r=re(r,n,i,o,e[s+9],4,-640364487),o=re(o,r,n,i,e[s+12],11,-421815835),i=re(i,o,r,n,e[s+15],16,530742520),n=re(n,i,o,r,e[s+2],23,-995338651),r=ne(r,n,i,o,e[s],6,-198630844),o=ne(o,r,n,i,e[s+7],10,1126891415),i=ne(i,o,r,n,e[s+14],15,-1416354905),n=ne(n,i,o,r,e[s+5],21,-57434055),r=ne(r,n,i,o,e[s+12],6,1700485571),o=ne(o,r,n,i,e[s+3],10,-1894986606),i=ne(i,o,r,n,e[s+10],15,-1051523),n=ne(n,i,o,r,e[s+1],21,-2054922799),r=ne(r,n,i,o,e[s+8],6,1873313359),o=ne(o,r,n,i,e[s+15],10,-30611744),i=ne(i,o,r,n,e[s+6],15,-1560198380),n=ne(n,i,o,r,e[s+13],21,1309151649),r=ne(r,n,i,o,e[s+4],6,-145523070),o=ne(o,r,n,i,e[s+11],10,-1120210379),i=ne(i,o,r,n,e[s+2],15,718787259),n=ne(n,i,o,r,e[s+9],21,-343485551),r=Q(r,a),n=Q(n,u),i=Q(i,c),o=Q(o,l)}return[r,n,i,o]}(function(e){if(0===e.length)return[];for(var t=8*e.length,r=new Uint32Array(J(t)),n=0;n<t;n+=8)r[n>>5]|=(255&e[n/8])<<n%32;return r}(e),8*e.length),i=[],o=32*n.length,s="0123456789abcdef",a=0;a<o;a+=8){var u=n[a>>5]>>>a%32&255,u=parseInt(s.charAt(u>>>4&15)+s.charAt(15&u),16);i.push(u)}return i});function ie(e,t){return e<<t|e>>>32-t}var oe=W("v5",80,function(e){var t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var n=unescape(encodeURIComponent(e));e=[];for(var i=0;i<n.length;++i)e.push(n.charCodeAt(i))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var o=e.length/4+2,s=Math.ceil(o/16),a=new Array(s),u=0;u<s;++u){for(var c=new Uint32Array(16),l=0;l<16;++l)c[l]=e[64*u+4*l]<<24|e[64*u+4*l+1]<<16|e[64*u+4*l+2]<<8|e[64*u+4*l+3];a[u]=c}a[s-1][14]=8*(e.length-1)/Math.pow(2,32),a[s-1][14]=Math.floor(a[s-1][14]),a[s-1][15]=8*(e.length-1)&4294967295;for(var f=0;f<s;++f){for(var p=new Uint32Array(80),d=0;d<16;++d)p[d]=a[f][d];for(var h=16;h<80;++h)p[h]=ie(p[h-3]^p[h-8]^p[h-14]^p[h-16],1);for(var y=r[0],v=r[1],m=r[2],g=r[3],w=r[4],E=0;E<80;++E)var T=Math.floor(E/20),T=ie(y,5)+function(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:return t^r^n;case 2:return t&r^t&n^r&n;case 3:return t^r^n}}(T,v,m,g)+w+t[T]+p[E]>>>0,w=g,g=m,m=ie(v,30)>>>0,v=y,y=T;r[0]=r[0]+y>>>0,r[1]=r[1]+v>>>0,r[2]=r[2]+m>>>0,r[3]=r[3]+g>>>0,r[4]=r[4]+w>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]});var se,r=D(Object.freeze({__proto__:null,v1:function(e,t,r){var n=t&&r||0,i=t||new Array(16),o=(e=e||{}).node||z,r=void 0!==e.clockseq?e.clockseq:K,s=(null!=o&&null!=r||(s=e.random||(e.rng||j)(),null==o&&(o=z=[1|s[0],s[1],s[2],s[3],s[4],s[5]]),null==r&&(r=K=16383&(s[6]<<8|s[7]))),void 0!==e.msecs?e.msecs:Date.now()),a=void 0!==e.nsecs?e.nsecs:Y+1,u=s-$+(a-Y)/1e4;if(u<0&&void 0===e.clockseq&&(r=r+1&16383),1e4<=(a=(u<0||$<s)&&void 0===e.nsecs?0:a))throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");$=s,K=r,u=(1e4*(268435455&(s+=122192928e5))+(Y=a))%4294967296,i[n++]=u>>>24&255,i[n++]=u>>>16&255,i[n++]=u>>>8&255,i[n++]=255&u,e=s/4294967296*1e4&268435455,i[n++]=e>>>8&255,i[n++]=255&e,i[n++]=e>>>24&15|16,i[n++]=e>>>16&255,i[n++]=r>>>8|128,i[n++]=255&r;for(var c=0;c<6;++c)i[n+c]=o[c];return t||q(i)},v3:r,v4:function(e,t,r){var n=(e=e||{}).random||(e.rng||j)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var i=0;i<16;++i)t[r+i]=n[i];return t}return q(n)},v5:oe,NIL:"00000000-0000-0000-0000-000000000000",version:function(e){if(H(e))return parseInt(e.substr(14,1),16);throw TypeError("Invalid UUID")},validate:H,stringify:q,parse:X})),ae=(l.setUserId=void 0,l.sanitizeUser=void 0,l.removeUserId=void 0,l.getUserId=void 0,l.Version=void 0,l.Variation=void 0,l.TargetingType=void 0,l.TargetRule=void 0,l.TargetMatch=void 0,l.TargetKey=void 0,l.TargetCondition=void 0,l.TargetAction=void 0,l.Target=void 0,l.TARGET_KEY_TYPES=void 0,l.TARGET_ACTION_TYPES=void 0,l.Slot=void 0,l.Segment=void 0,l.SEGMENT_TYPES=void 0,l.RemoteConfigTargetRule=void 0,l.RemoteConfigParameterValue=void 0,l.RemoteConfigParameter=void 0,l.RemoteConfigDecision=void 0,l.ParameterConfiguration=void 0,l.MetaVersion=void 0,l.MATCH_VALUE_TYPES=void 0,l.MATCH_TYPES=void 0,l.MATCH_OPERATORS=void 0,l.Logger=void 0,l.IdentifiersBuilder=void 0,l.IdentifierType=void 0,l.FeatureFlagDecision=void 0,l.Experiment=void 0,l.EventType=void 0,l.EmptyParameterConfig=void 0,l.EmptyHackleRemoteConfig=void 0,l.DecisionReason=void 0,l.Decision=void 0,l.CoreVersion=void 0,l.ContainerGroup=void 0,l.Container=void 0,l.Bucket=void 0,Object.defineProperty(t,"__esModule",{value:!0}),r),ue=function(e,t){return(ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function ce(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}ue(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var h=function(){return(h=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function le(e,s,a,u){return new(a=a||Promise)(function(r,t){function n(e){try{o(u.next(e))}catch(e){t(e)}}function i(e){try{o(u.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?r(e.value):((t=e.value)instanceof a?t:new a(function(e){e(t)})).then(n,i)}o((u=u.apply(e,s||[])).next())})}function fe(n,i){var o,s,a,u={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(r){return function(e){var t=[r,e];if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,s&&(a=2&t[0]?s.return:t[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,t[1])).done)return a;switch(s=0,(t=a?[2&t[0],a.value]:t)[0]){case 0:case 1:a=t;break;case 4:return u.label++,{value:t[1],done:!1};case 5:u.label++,s=t[1],t=[0];continue;case 7:t=u.ops.pop(),u.trys.pop();continue;default:if(!((a=0<(a=u.trys).length&&a[a.length-1])||6!==t[0]&&2!==t[0])){u=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){u.label=t[1];break}if(6===t[0]&&u.label<a[1]){u.label=a[1],a=t;break}if(a&&u.label<a[2]){u.label=a[2],u.ops.push(t);break}a[2]&&u.ops.pop(),u.trys.pop();continue}t=i.call(n,u)}catch(e){t=[6,e],s=0}finally{o=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}}Te.isNotNullOrUndefined=function(e){return null!=e},Te.isNullOrUndefined=function(e){return null==e},Te.requiredNotNullOrUndefined=function(e,t){if(void 0===t&&(t=function(){return"Required value is null or undefined"}),this.isNullOrUndefined(e))throw new Error(t());return e};var a=Te,f=(Ee.mapNotNullOrUndefined=function(e,t){for(var r=Array(),n=0,i=e;n<i.length;n++){var o=t(i[n]);a.isNotNullOrUndefined(o)&&r.push(o)}return r},Ee.associateTo=function(e,t,r){for(var n=0,i=e;n<i.length;n++){var o=r(i[n]);t.set(o[0],o[1])}return t},Ee.associate=function(e,t){return this.associateTo(e,new Map,t)},Ee.associateBy=function(e,t){return this.associate(e,function(e){return[t(e),e]})},Ee.chunked=function(e,t){for(var r=[],n=e.slice();n.length;)r.push(n.splice(0,t));return r},Ee),pe={DISABLE:0,ERROR:1,WARN:2,INFO:3,DEBUG:4},de=(we.setLogLevel=function(e){this.logLevel=e=void 0===e?pe.INFO:e},we.initCounter=function(t){this.counters=f.associate(Object.keys(pe),function(e){return[e,t(e)]})},we._log=function(e,t){var r;switch(e){case"WARN":r="orange";break;case"ERROR":r="red";break;default:r="#AAAAAA"}if(t instanceof Error)he.log(e,r,t.message,t);else try{he.log(e,r,t)}catch(e){}},we.increment=function(e){var t;null!=(t=null==(t=we.counters)?void 0:t.get(e))&&t.increment()},we.logLevel=pe.INFO,we.log={error:function(e){pe.ERROR<=we.logLevel&&(we._log("ERROR",e),we.increment("ERROR"))},warn:function(e){pe.WARN<=we.logLevel&&(we._log("WARN",e),we.increment("WARN"))},info:function(e){pe.INFO<=we.logLevel&&(we._log("INFO",e),we.increment("INFO"))},debug:function(e){pe.DEBUG<=we.logLevel&&(we._log("DEBUG",e),we.increment("DEBUG"))}},we),he=(ge.log=function(e,t,r,n){try{console.log("%c[".concat(e,"] Hackle: ").concat(r),"color: ".concat(t))}catch(e){}},ge),ye="X-HACKLE-SDK-NAME",ve=[0,8,16,32,64,128,256,512],me=de.log;function ge(){}function we(){}function Ee(){}function Te(){}function be(e,t){for(var r in t)t.hasOwnProperty(r)&&e.setRequestHeader(r,t[r])}function _e(e,t,r,n){this.id=e,this.key=t,this.isDropped=r,this.parameterConfigurationId=n}function Oe(e,t,r){this.seed=e,this.slotSize=t,this.slots=r}function Re(e,t){this.id=e,this.key=t}function Ie(e){var t,r={};return r.id=null!=(t=Ve.sanitizeValue(e.id))?t:void 0,r.userId=null!=(t=Ve.sanitizeValue(e.userId))?t:void 0,r.deviceId=null!=(t=Ve.sanitizeValue(e.deviceId))?t:void 0,"object"==typeof e.properties&&(r.properties=ze.sanitize(e.properties)),"object"==typeof e.identifiers&&(r.identifiers=Ve.sanitize(e.identifiers)),Boolean(r.id||r.userId||r.deviceId||r.identifiers&&0<Object.keys(r.identifiers).length)?r:null}function Se(e){this.conditions=e}function Ce(e,t){this.key=e,this.match=t}function Ne(e,t){this.type=e,this.name=t}function Ae(e,t,r,n){this.type=e,this.operator=t,this.valueType=r,this.values=n}function ke(e,t,r){this.type=e,this.variationId=t,this.bucketId=r}function xe(e,t){this.target=e,this.action=t}function Pe(e,t,r,n){this.id=e,this.key=t,this.type=r,this.targets=n}function Ue(e,t){this.id=e,this.experiments=t}function Me(e,t,r,n,i,o){this.id=e,this.key=t,this.type=r,this.identifierType=n,this.targetRules=i,this.defaultValue=o}function De(e,t,r,n,i){this.key=e,this.name=t,this.target=r,this.bucketId=n,this.value=i}function Le(e,t){this.id=e,this.rawValue=t}var Fe={getRequest:function(n,i){return{abort:function(){},responsePromise:new Promise(function(e,t){var r=new XMLHttpRequest;r.open("GET",n),r.onreadystatechange=function(){r.readyState===r.DONE&&(0===r.status?t(new Error("Request error")):e({statusCode:r.status,body:r.responseText}))},r.onerror=function(){t()},r.setRequestHeader("content-type","application/json"),be(r,i),r.send()})}},postRequest:function(e,t,r,n,i){var t=JSON.stringify(t),o=new XMLHttpRequest;o.open("POST",e),o.onreadystatechange=function(){o.readyState===o.DONE&&(200<=o.status&&o.status<400?n({statusCode:o.status}):i&&i({statusCode:o.status}))},o.setRequestHeader("content-type","application/json"),be(o,r),o.send(t)},sendBeacon:function(e,t,r,n,i){var o=!1;if(o="undefined"!=typeof window?window&&window.navigator&&window.navigator.sendBeacon&&!0:o){o=JSON.stringify(t),t=new URLSearchParams;if(t.append("sdkName",r[ye]),t.append("sdkVersion",r["X-HACKLE-SDK-VERSION"]),t.append("sdkKey",r["X-HACKLE-SDK-KEY"]),t.append("data",o),!window.navigator.sendBeacon(e,t))return me.error("sendBeacon failed to queue request."),void i();n()}else me.error("Does not support sendBeacon"),i()}},je=de.log,Ve=(pt.isEquals=function(t,r){if(null==r)return!1;var e=Object.keys(t);return e.length===Object.keys(r).length&&e.every(function(e){return t[e]===r[e]})},pt.sanitize=function(e){var t={};if(a.isNullOrUndefined(e))return t;for(var r=0,n=Object.entries(e);r<n.length;r++){var i=n[r],o=i[0],i=i[1];this.isValidType(o)?(i=this.sanitizeValue(i),a.isNullOrUndefined(i)?je.debug("Invalid identifier value. The identifier type value be a string of 512 characters or less. [".concat(o,"]")):t[o]=i):je.debug("Invalid identifier type. The identifier type must be a string of 128 characters or less. [".concat(o,"]"))}return t},pt.isValidType=function(e){return!a.isNullOrUndefined(e)&&"string"==typeof e&&0<e.length&&e.length<=this.MAX_IDENTIFIER_TYPE_LENGTH},pt.sanitizeValue=function(e){return"string"==typeof e&&0<e.length&&e.length<=this.MAX_IDENTIFIER_VALUE_LENGTH?e:"number"==typeof e?e.toString():null},pt.MAX_IDENTIFIER_TYPE_LENGTH=128,pt.MAX_IDENTIFIER_VALUE_LENGTH=512,pt),He=de.log,ze=(ft.sanitize=function(e){var t={};if(a.isNullOrUndefined(e))return t;for(var r=0,n=Object.entries(e);r<n.length;r++){var i,o=n[r],s=o[0],o=o[1];if(Object.keys(t).length>=this.MAX_PROPERTIES_COUNT){He.debug("The number of properties cannot exceed 128. Drops excess properties. [".concat(s,", ").concat(o,"]"));break}this.isValidKey(s)?(i=this.sanitizeValue(s,o),a.isNullOrUndefined(i)?He.debug("Invalid property value. The property value mus be 'string(..1024)', 'number', 'boolean', or 'array' type. [".concat(o,"]")):t[s]=i):He.debug("Invalid property key. The property key must be a string of 128 characters or less. [".concat(s,"]"))}return t},ft.isValidProperty=function(e,t){return this.isValidKey(e)&&this.isValidValue(t)},ft.isValidKey=function(e){return a.isNotNullOrUndefined(e)&&"string"==typeof e&&0<e.length&&e.length<=this.MAX_PROPERTY_KEY_LENGTH},ft.sanitizeValue=function(e,t){var r=this;return e.startsWith(this.SYSTEM_PROPERTY_KEY_PREFIX)?t:this.isValidValue(t)?Array.isArray(t)?t.filter(function(e){return r.isValidElement(e)}):t:null},ft.isValidValue=function(e){return!a.isNullOrUndefined(e)&&("string"==typeof e?e.length<=this.MAX_PROPERTY_VALUE_LENGTH:"number"==typeof e?!isNaN(e)&&isFinite(e):"boolean"==typeof e||Array.isArray(e))},ft.isValidElement=function(e){return!a.isNullOrUndefined(e)&&("string"==typeof e?0<e.length&&e.length<=this.MAX_PROPERTY_VALUE_LENGTH:"number"==typeof e)},ft.SYSTEM_PROPERTY_KEY_PREFIX="$",ft.MAX_PROPERTIES_COUNT=128,ft.MAX_PROPERTY_KEY_LENGTH=128,ft.MAX_PROPERTY_VALUE_LENGTH=1024,ft),Ke=de.log,Be=(lt.of=function(e,t){return new lt(e,t)},lt),Ge=(ct.of=function(e,t,r){return new ct(e,t,r=void 0===r?new $e:r)},ct.prototype.get=function(e,t){return this.config.get(e,t)},ct),qe=(ut.on=function(e,t){return new ut(!0,e,t=void 0===t?new $e:t)},ut.off=function(e,t){return new ut(!1,e,t=void 0===t?new $e:t)},ut.prototype.get=function(e,t){return this.config.get(e,t)},ut),oe=(at.prototype.get=function(e,t){return t},at),$e=(st.prototype.get=function(e,t){return t},st),u=(n.SDK_NOT_READY="SDK_NOT_READY",n.EXCEPTION="EXCEPTION",n.INVALID_INPUT="INVALID_INPUT",n.EXPERIMENT_NOT_FOUND="EXPERIMENT_NOT_FOUND",n.EXPERIMENT_DRAFT="EXPERIMENT_DRAFT",n.EXPERIMENT_PAUSED="EXPERIMENT_PAUSED",n.EXPERIMENT_COMPLETED="EXPERIMENT_COMPLETED",n.OVERRIDDEN="OVERRIDDEN",n.TRAFFIC_NOT_ALLOCATED="TRAFFIC_NOT_ALLOCATED",n.NOT_IN_MUTUAL_EXCLUSION_EXPERIMENT="NOT_IN_MUTUAL_EXCLUSION_EXPERIMENT",n.IDENTIFIER_NOT_FOUND="IDENTIFIER_NOT_FOUND",n.VARIATION_DROPPED="VARIATION_DROPPED",n.TRAFFIC_ALLOCATED="TRAFFIC_ALLOCATED",n.NOT_IN_EXPERIMENT_TARGET="NOT_IN_EXPERIMENT_TARGET",n.FEATURE_FLAG_NOT_FOUND="FEATURE_FLAG_NOT_FOUND",n.FEATURE_FLAG_INACTIVE="FEATURE_FLAG_INACTIVE",n.INDIVIDUAL_TARGET_MATCH="INDIVIDUAL_TARGET_MATCH",n.TARGET_RULE_MATCH="TARGET_RULE_MATCH",n.DEFAULT_RULE="DEFAULT_RULE",n.REMOTE_CONFIG_PARAMETER_NOT_FOUND="REMOTE_CONFIG_PARAMETER_NOT_FOUND",n.TYPE_MISMATCH="TYPE_MISMATCH",n),Ye=(ot.prototype._winnerVariationOrNull=function(){if(this._winnerVariationId)return this._getVariationByIdOrNull(this._winnerVariationId)},ot.prototype._getVariationByIdOrNull=function(t){return this.variations.find(function(e){return e.id===t})},ot.prototype._getVariationByKeyOrNull=function(t){return this.variations.find(function(e){return e.key===t})},ot),Xe=(it.prototype.contains=function(e){return this.startInclusive<=e&&e<this.endExclusive},it),We=(nt.ID="$id",nt.USER="$userId",nt.DEVICE="$deviceId",nt.SESSION="$sessionId",nt.HACKLE_DEVICE="$hackleDeviceId",nt),Je=(rt.prototype.addIdentifiers=function(e){for(var t in e)this.add(t,e[t]);return this},rt.prototype.add=function(e,t){var r=Ve.sanitizeValue(t);return Ve.isValidType(e)&&r?this.identifiers[e]=t:Ke.warn("Invalid user identifier [type=".concat(e,", value=").concat(t,"]")),this},rt.prototype.build=function(){return this.identifiers},rt),Qe=(tt.prototype.getGroupOrNull=function(t){return this.groups.find(function(e){return e.id===t})},tt),Ze=(et.prototype.get=function(e,t){e=this.parameters.get(e);return!a.isNullOrUndefined(e)&&(a.isNullOrUndefined(t)||typeof e==typeof t)?e:t},et);function et(e,t){this.id=e,this.parameters=t}function tt(e,t,r){this.id=e,this.bucketId=t,this.groups=r}function rt(){this.identifiers={}}function nt(){}function it(e,t,r){this.startInclusive=e,this.endExclusive=t,this.variationId=r}function ot(e,t,r,n,i,o,s,a,u,c,l,f,p,d){this.id=e,this.key=t,this.type=r,this.identifierType=n,this.status=i,this.version=o,this.variations=s,this.userOverrides=a,this.segmentOverrides=u,this.targetAudiences=c,this.targetRules=l,this.defaultRule=f,this.containerId=p,this._winnerVariationId=d}function n(){}function st(){}function at(){}function ut(e,t,r){this.isOn=e,this.reason=t,this.config=r}function ct(e,t,r){this.variation=e,this.reason=t,this.config=r}function lt(e,t){this.value=e,this.reason=t}function ft(){}function pt(){}xt.tryParse=function(e){var t,r,n,i,e=xt.regExp.exec(e);if(e)return e[0],t=e[1],r=void 0===(r=e[2])?"0":r,n=void 0===(n=e[3])?"0":n,i=e[4],e=e[5],new xt(new ht(parseInt(t,10),parseInt(r,10),parseInt(n,10)),yt.parse(i),yt.parse(e))},xt.prototype.compareTo=function(e){return this.coreVersion.compareTo(e.coreVersion)||this.prerelease.compareTo(e.prerelease)},xt.prototype.isEqualTo=function(e){return 0===this.compareTo(e)},xt.prototype.isGreaterThan=function(e){return 0<this.compareTo(e)},xt.prototype.isGreaterThanOrEqualTo=function(e){return 0<=this.compareTo(e)},xt.prototype.isLessThan=function(e){return this.compareTo(e)<0},xt.prototype.isLessThanOrEqualTo=function(e){return this.compareTo(e)<=0},xt.regExp=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*))?(?:\.(0|[1-9]\d*))?(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;var dt=xt,ht=(kt.prototype.compareTo=function(e){return this.major-e.major||this.minor-e.minor||this.patch-e.patch},kt),yt=(At.parse=function(e){return e?new At(e.split(".")):At.EMPTY},At.prototype.isEmpty=function(){return 0===this.identifiers.length},At.prototype.isNotEmpty=function(){return!this.isEmpty()},At.prototype.compareTo=function(e){return this.isEmpty()&&e.isEmpty()?0:this.isEmpty()&&e.isNotEmpty()?1:this.isNotEmpty()&&e.isEmpty()?-1:this.compareIdentifiers(e)},At.prototype.compareIdentifiers=function(e){for(var t=Math.min(this.identifiers.length,e.identifiers.length),r=0;r<t;r++){var n=At.compareIdentifiers(this.identifiers[r],e.identifiers[r]);if(0!==n)return n}return this.identifiers.length-e.identifiers.length},At.compareIdentifiers=function(e,t){return At.numericIdentifierRegExp.test(e)&&At.numericIdentifierRegExp.test(t)?+e-+t:e===t?0:e<t?-1:1},At.EMPTY=new At([]),At.numericIdentifierRegExp=/^(0|[1-9]\d*)$/,At),vt=["MATCH","NOT_MATCH"],mt=["STRING","NUMBER","BOOLEAN","VERSION","JSON","NULL","UNKNOWN"],gt=["IN","CONTAINS","STARTS_WITH","ENDS_WITH","GT","GTE","LT","LTE"],wt=["VARIATION","BUCKET"],Et=["USER_ID","USER_PROPERTY","HACKLE_PROPERTY","SEGMENT"],Tt=["USER_ID","USER_PROPERTY"],bt=(Nt.prototype.supports=function(e){return this.supportedKeyTypes.includes(e)},Nt.IDENTIFIER=new Nt("SEGMENT"),Nt.PROPERTY=new Nt("SEGMENT","USER_PROPERTY","HACKLE_PROPERTY"),Nt.SEGMENT=new Nt("USER_ID","USER_PROPERTY","HACKLE_PROPERTY"),Nt),_t=(i.nanosToUnit=function(e,t){switch(t){case"microseconds":return e/(i.C1/i.C0);case"milliseconds":return e/(i.C2/i.C0);case"seconds":return e/(i.C3/i.C0);default:return e}},i.microsToUnit=function(e,t){switch(t){case"nanoseconds":return e*(i.C1/i.C0);case"milliseconds":return e/(i.C2/i.C1);case"seconds":return e/(i.C3/i.C1);default:return e}},i.millisToUnit=function(e,t){switch(t){case"nanoseconds":return e*(i.C2/i.C0);case"microseconds":return e*(i.C2/i.C1);case"seconds":return e/(i.C3/i.C2);default:return e}},i.secondsToUnit=function(e,t){switch(t){case"nanoseconds":return e*(i.C3/i.C0);case"microseconds":return e*(i.C3/i.C1);case"milliseconds":return e*(i.C3/i.C2);default:return e}},i.C3=1e3*(i.C2=1e3*(i.C1=1e3*(i.C0=1))),i.converter={nanoseconds:i.nanosToUnit,microseconds:i.microsToUnit,milliseconds:i.millisToUnit,seconds:i.secondsToUnit},i),r=(Ct.prototype.tick=function(){return"undefined"!=typeof performance?1e3*performance.now():"undefined"!=typeof process&&process.hrtime?(1e9*(e=process.hrtime())[0]+e[1])/1e3:1e3*Date.now();var e},Ct.prototype.currentMillis=function(){return Date.now()},Ct),Ot=(St.prototype.tags=function(e){var r=this;return Object.entries(e).forEach(function(e){var t=e[0],e=e[1];r._tags[t]=e}),this},St.prototype.tag=function(e,t){return this._tags[e]=t,this},St.prototype.register=function(e){return e.registerTimer({name:this.name,tags:this._tags,type:"TIMER"})},St),Rt=(It.start=function(e){return new It(e=void 0===e?It.defaultClock:e)},It.prototype.stop=function(e){var t=this._clock.tick()-this.startTime;e.record(t,"microseconds")},It.defaultClock=new r,It);function It(e){this._clock=e,this.startTime=this._clock.tick()}function St(e){this.name=e,this._tags={},this.name=e}function Ct(){}function i(){}function Nt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.supportedKeyTypes=e}function At(e){this.identifiers=e}function kt(e,t,r){this.major=e,this.minor=t,this.patch=r}function xt(e,t,r){this.coreVersion=e,this.prerelease=t,this.build=r}Ut.prototype.tags=function(e){var r=this;return Object.entries(e).forEach(function(e){var t=e[0],e=e[1];r._tags[t]=e}),this},Ut.prototype.tag=function(e,t){return this._tags[e]=t,this},Ut.prototype.register=function(e){return e.registerCounter({name:this.name,tags:this._tags,type:"COUNTER"})};var Pt=Ut;function Ut(e){this.name=e,this._tags={}}Object.defineProperty(Dt.prototype,"value",{get:function(){return this.valueSupplier()},enumerable:!1,configurable:!0});var Mt=Dt;function Dt(e,t){this.valueSupplier=t,this.field=e}function Lt(e,t){return e.name===t.name&&Ve.isEquals(e.tags,t.tags)}qt.prototype.count=function(){return this.counterValue},qt.prototype.increment=function(e){this.counterValue+=null!=e?e:1},qt.prototype.measure=function(){return[new Mt("count",this.count.bind(this))]};var Ft,jt=qt,Vt=(Gt.prototype.flush=function(){var e=this.currentCounter;return this.currentCounter=new jt(this.id),e},Gt.prototype.count=function(){return this.currentCounter.count()},Gt.prototype.increment=function(e){this.currentCounter.increment(e)},Gt.prototype.measure=function(){return[new Mt("count",this.count.bind(this))]},Gt),Ht=(Bt.prototype.values=function(){return Array.from(this.data.values())},Bt.prototype.keys=function(){return Array.from(this.data.keys())},Bt.prototype.get=function(t){var r=this,e=this.keys().find(function(e){return r.compareFn(e,t)});return e?this.data.get(e):void 0},Bt.prototype.has=function(e){return void 0!==this.get(e)},Bt.prototype.add=function(e,t){t=(t=t)||e;return this.data.set(e,t),this},Bt.prototype.delete=function(e){var t;if(this.has(e))return t=this.get(e),this.data.delete(e),t},Bt.prototype.forEach=function(e){this.data.forEach(e)},Bt.prototype.entries=function(){return Array.from(this.data.entries())},Bt),r=(Object.defineProperty(Kt.prototype,"metrics",{get:function(){return Array.from(this._metrics.values())},enumerable:!1,configurable:!0}),Kt.prototype.registerCounter=function(e){return this.registerMetricIfNecessary(e,this.createCounter.bind(this))},Kt.prototype.registerTimer=function(e){return this.registerMetricIfNecessary(e,this.createTimer.bind(this))},Kt.prototype.counter=function(e,t){return void 0===t&&(t={}),new Pt(e).tags(t).register(this)},Kt.prototype.timer=function(e,t){return void 0===t&&(t={}),new Ot(e).tags(t).register(this)},Kt.prototype.registerMetricIfNecessary=function(e,t){return this.getOrCreateMetric(e,t)},Kt.prototype.getOrCreateMetric=function(e,t){var r,n=this._metrics.get(e);return n?r=n:(r=t(e),this._metrics.add(e,r)),r},Kt.prototype.close=function(){},Kt),o=(ce(zt,Ft=r),zt.prototype.start=function(){var e=this;void 0===this.currentIntervalId&&(this.currentIntervalId=setInterval(function(){e.publish()},this.pushIntervalMillis),de.log.info("PushMetricRegistry started. Publish metrics every ".concat(this.pushIntervalMillis,"ms.")))},zt.prototype.stop=function(){void 0!==this.currentIntervalId&&(clearInterval(this.currentIntervalId),this.currentIntervalId=void 0,this.publish(),de.log.info("PushMetricRegistry stopped."))},zt.prototype.close=function(){this.stop()},zt);function zt(e){var t=Ft.call(this)||this;return t.pushIntervalMillis=e,t.currentIntervalId=void 0,t.pushIntervalMillis=e,t}function Kt(){this.id=ae.v4(),this.name="MetricRegistry",this._metrics=new Ht(Lt)}function Bt(e){this.compareFn=e,this.data=new Map,this.compareFn=e,this.data=new Map}function Gt(e){this.id=e,this.currentCounter=new jt(e)}function qt(e){this.counterValue=0,this.id=e}rr.prototype.count=function(){return this._count},rr.prototype.totalTime=function(e){return _t.nanosToUnit(this._total,e)},rr.prototype.max=function(e){return _t.nanosToUnit(this._max,e)},rr.prototype.mean=function(e){return 0===this.count()?0:this.totalTime(e)/this.count()},rr.prototype.record=function(e,t){e<0||(t=_t.converter[t](e,"nanoseconds"),this._count=this.count()+1,this._total+=t,this._max=Math.max(t,this._max))},rr.prototype.measure=function(){var e=this;return[new Mt("count",this.count.bind(this)),new Mt("total",function(){return e.totalTime("milliseconds")}),new Mt("max",function(){return e.max("milliseconds")}),new Mt("mean",function(){return e.mean("milliseconds")})]};var $t,Yt=rr,Xt=(tr.prototype.flush=function(){var e=this.currentTimer;return this.currentTimer=new Yt(this.id),e},tr.prototype.count=function(){return this.currentTimer.count()},tr.prototype.totalTime=function(e){return this.currentTimer.totalTime(e)},tr.prototype.max=function(e){return this.currentTimer.max(e)},tr.prototype.record=function(e,t){this.currentTimer.record(e,t)},tr.prototype.mean=function(e){return 0===this.count()?0:this.totalTime(e)/this.count()},tr.prototype.measure=function(){var e=this;return[new Mt("count",this.count.bind(this)),new Mt("total",function(){return e.totalTime("milliseconds")}),new Mt("max",function(){return e.max("milliseconds")}),new Mt("mean",function(){return e.mean("milliseconds")})]},tr),o=(ce(er,$t=o),er.prototype.createCounter=function(e){return new Vt(e)},er.prototype.createTimer=function(e){return new Xt(e)},er.prototype.publish=function(){var e=this.metrics.reduce(function(e,t){return void 0!==t.flush&&"function"==typeof t.flush?e.concat(t.flush()):e},[]);this.flushMetrics(e)},er.prototype.close=function(){$t.prototype.close.call(this)},er),Wt=(Zt.prototype.count=function(){return 0},Zt.prototype.increment=function(e){},Zt.prototype.measure=function(){return[new Mt("count",this.count.bind(this))]},Zt),Jt=(Object.defineProperty(Qt.prototype,"counters",{get:function(){return Array.from(this._counters.values())},enumerable:!1,configurable:!0}),Qt.prototype.add=function(e){this._counters.add(e,e.registerCounter(this.id))},Qt.prototype.count=function(){return(this.counters[0]||this.noopCounter).count()},Qt.prototype.increment=function(t){this.counters.forEach(function(e){e.increment(t)})},Qt.prototype.measure=function(){return[new Mt("count",this.count.bind(this))]},Qt);function Qt(e){this._counters=new Ht(function(e,t){return e.id===t.id}),this.id=e,this.noopCounter=new Wt(e)}function Zt(e){this.id=e}function er(e){return $t.call(this,e)||this}function tr(e){this.id=e,this.currentTimer=new Yt(e)}function rr(e){this._count=0,this._total=0,this._max=0,this.id=e}Pr.prototype.measure=function(){var e=this;return[new Mt("count",this.count.bind(this)),new Mt("total",function(){return e.totalTime("milliseconds")}),new Mt("max",function(){return e.max("milliseconds")}),new Mt("mean",function(){return e.mean("milliseconds")})]},Pr.prototype.count=function(){return 0},Pr.prototype.totalTime=function(e){return 0},Pr.prototype.max=function(e){return 0},Pr.prototype.mean=function(e){return 0},Pr.prototype.record=function(e,t){};var nr,ir,or,sr,ar,ur=Pr,cr=(Object.defineProperty(xr.prototype,"firstTimer",{get:function(){return this.timers[0]||this.noopTimer},enumerable:!1,configurable:!0}),xr.prototype.totalTime=function(e){return this.firstTimer.totalTime(e)},xr.prototype.max=function(e){return this.firstTimer.max(e)},xr.prototype.mean=function(e){return this.firstTimer.mean(e)},xr.prototype.record=function(t,r){this.timers.forEach(function(e){e.record(t,r)})},Object.defineProperty(xr.prototype,"timers",{get:function(){return Array.from(this._timers.values())},enumerable:!1,configurable:!0}),xr.prototype.add=function(e){this._timers.add(e,e.registerTimer(this.id))},xr.prototype.count=function(){return this.firstTimer.count()},xr.prototype.measure=function(){var e=this;return[new Mt("count",this.count.bind(this)),new Mt("total",function(){return e.totalTime("milliseconds")}),new Mt("max",function(){return e.max("milliseconds")}),new Mt("mean",function(){return e.mean("milliseconds")})]},xr),r=(ce(kr,ar=r),kr.prototype.createCounter=function(e){e=new Jt(e);return this.addRegistry(e),e},kr.prototype.createTimer=function(e){e=new cr(e);return this.addRegistry(e),e},kr.prototype.addRegistry=function(t){this.registries.forEach(function(e){return t.add(e)})},kr.prototype.add=function(t){t instanceof kr||this.registries.has(t)||(this.registries.add(t),this.metrics.forEach(function(e){void 0!==e.add&&"function"==typeof e.add&&e.add(t)}))},kr.prototype.close=function(){this.registries.forEach(function(e){e.close()})},kr),lr=(Ar.counter=function(e,t){return Ar.globalRegistry.counter(e,t)},Ar.timer=function(e,t){return Ar.globalRegistry.timer(e,t)},Ar.addRegistry=function(e){Ar.globalRegistry.add(e),de.log.info("MetricRegistry added ".concat(e.name))},Ar.globalRegistry=new r,Ar),fr=(ce(Nr,sr=o),Nr.prototype.flushMetrics=function(e){var t=this;f.chunked(e.filter(this.isDispatchTarget.bind(this)),100).forEach(function(e){t.dispatch(e)})},Nr.prototype.isDispatchTarget=function(e){return!("COUNTER"!==e.id.type&&"TIMER"!==e.id.type)&&0<e.count()},Nr.prototype.dispatch=function(e){this.useBeacon&&this.shouldUseBeacon?this.httpClient.sendBeacon(this.monitoringEndPoint,this.batch(e),this.httpHeader,function(){de.log.info("Beacon called.")}):this.httpClient.postRequest(this.monitoringEndPoint,this.batch(e),this.httpHeader,function(){},function(){de.log.error("Failed to flushing metrics.")})},Nr.prototype.batch=function(e){return{metrics:e.map(function(e){return{name:e.id.name,type:e.id.type,tags:e.id.tags,measurements:Object.fromEntries(f.associate(e.measure(),function(e){return[e.field,e.value]}))}})}},Nr.prototype.createCounter=function(e){return new Vt(e)},Nr.prototype.createTimer=function(e){return new Xt(e)},Nr.prototype.close=function(){this.shouldUseBeacon=!0,sr.prototype.close.call(this)},Nr),pr=(Cr.experiment=function(e,t,r){t=lr.timer("experiment.decision",{key:String(t),variation:r.variation,reason:String(r.reason)});e.stop(t)},Cr.featureFlag=function(e,t,r){t=lr.timer("feature.flag.decision",{key:String(t),on:String(r.isOn),reason:String(r.reason)});e.stop(t)},Cr.remoteConfig=function(e,t,r){t=lr.timer("remote.config.decision",{key:String(t),reason:String(r.reason)});e.stop(t)},Cr),dr=(Sr.record=function(e,t,r){e=lr.timer("api.call",{operation:e,success:String(r)});t.stop(e)},Sr),hr=de.log,yr=(Ir.prototype.get=function(e,t){if(a.isNullOrUndefined(t))return this._get(e,"NULL",t).value;switch(typeof t){case"string":return this._get(e,"STRING",t).value;case"number":return this._get(e,"NUMBER",t).value;case"boolean":return this._get(e,"BOOLEAN",t).value;default:return this._get(e,"UNKNOWN",t).value}},Ir.prototype._get=function(r,n,i){var e=Rt.start(),t=function(e){try{if(a.isNullOrUndefined(r))return Be.of(i,u.INVALID_INPUT);var t=e.hackleUserResolver.resolveCurrentUser();return e.client._remoteConfig(r,t,n,i)}catch(e){return hr.error("Unexpected exception while deciding remote config parameter[".concat(r,"]. Returning default value. : ").concat(e)),Be.of(i,u.EXCEPTION)}}(this);return pr.remoteConfig(e,r,t),t},Ir),s=de.log,vr=(Rr.prototype.getSessionId=function(){return this.sessionManager.sessionId},Rr.prototype.getUser=function(){return this.userManager.currentUser},Rr.prototype.setUser=function(e){try{var t=Ie(e);if(!t)return void s.warn("invalid user");this.userManager.setUser(t)}catch(e){s.error("Unexpected exception while set user: ".concat(e))}},Rr.prototype.setUserId=function(e){try{void 0===e&&this.userManager.setUserId(void 0);var t=Ve.sanitizeValue(e);if(!t)return void s.warn("Invalid userId. [userId=".concat(e,"]"));this.userManager.setUserId(t)}catch(e){s.error("Unexpected exception while set userId: ".concat(e))}},Rr.prototype.setDeviceId=function(e){try{if(!Ve.sanitizeValue(e))return void s.warn("Invalid deviceId. [deviceId=".concat(e,"]"));this.userManager.setDeviceId(e)}catch(e){s.error("Unexpected exception while set deviceId: ".concat(e))}},Rr.prototype.setUserProperty=function(e,t){try{if(!ze.isValidKey(e))return void s.warn("Invalid property key. [key=".concat(e,"]"));if(!ze.isValidValue(t))return void s.warn("Invalid property value. [key=".concat(t,"]"));this.userManager.setUserProperty(e,t)}catch(e){s.error("Unexpected exception while set userProperty: ".concat(e))}},Rr.prototype.setUserProperties=function(e){try{var t=ze.sanitize(e);this.userManager.setUserProperties(t)}catch(e){s.error("Unexpected exception while set userProperties: ".concat(e))}},Rr.prototype.resetUser=function(){try{this.userManager.resetUser()}catch(e){s.error("Unexpected exception while reset user: ".concat(e))}},Rr.prototype.variation=function(e,t,r){return this.variationDetail(e,t,r).variation},Rr.prototype.variationDetail=function(n,i,e){var o=e||"A",e=Rt.start(),t=function(e){try{var t=e.userManager.resolveCurrentOrNull(i);if(!t)return s.warn("invalid user"),Ge.of(o,u.INVALID_INPUT);var r=e.hackleUserResolver.resolve(t);return e.hackleInternalClient._experiment(n,r,o)}catch(e){return s.error("Unexpected exception while deciding variation for experiment[".concat(n,"]. Returning default variation[").concat(o,"] : ").concat(e)),Ge.of(o,u.EXCEPTION)}}(this);return pr.experiment(e,n,t),t},Rr.prototype.isFeatureOn=function(e,t){return this.featureFlagDetail(e,t).isOn},Rr.prototype.featureFlagDetail=function(n,i){var e=Rt.start(),t=function(e){try{var t=e.userManager.resolveCurrentOrNull(i);if(!t)return s.warn("invalid user"),qe.off(u.INVALID_INPUT);var r=e.hackleUserResolver.resolve(t);return e.hackleInternalClient._featureFlag(n,r)}catch(e){return s.error("Unexpected exception while deciding feature flag[".concat(n,"]. Returning default value[false] : ").concat(e)),qe.off(u.EXCEPTION)}}(this);return pr.featureFlag(e,n,t),t},Rr.prototype.track=function(e,t){try{s.debug("track event : ".concat(JSON.stringify(e)));var r=this._convertEvent(e),n=this.userManager.resolveCurrentOrNull(t);if(!n)return void s.warn("invalid user");var i=this.hackleUserResolver.resolve(n);this.hackleInternalClient._track(r,i)}catch(e){s.error("Unexpected exception while tracking event: $t")}},Rr.prototype.trackPageView=function(e){s.debug("tracking page view");var t=this.hackleUserResolver.resolve(this.userManager.currentUser);this.hackleInternalClient._track({key:"$page_view"},t)},Rr.prototype.remoteConfig=function(e){return new yr(this.hackleInternalClient,this.userManager,this.hackleUserResolver,e)},Rr.prototype.onReady=function(e,t){this.hackleInternalClient._onReady(e,t=void 0===t?3e3:t)},Rr.prototype.onInitialized=function(e){return this.hackleInternalClient._onInitialized({timeout:null==e?void 0:e.timeout})},Rr.prototype.close=function(){s.debug("Hackle Client is closing"),this.hackleInternalClient._close()},Rr.prototype._convertEvent=function(e){return"string"==typeof e?{key:e}:e},Rr.prototype.showUserExplorer=function(){var e;null!=(e=this.devTools)&&e.userExplorer?(s.info("UserExplorer opened."),lr.counter("user.explorer.show",{}).increment(),this.devTools.manager.userExplorer(this.devTools.userExplorer)):s.error("UserExplorer is not provided")},Rr.prototype.hideUserExplorer=function(){this.devTools?this.devTools.manager.close():s.warn("There is no active HackleDevtools.")},Rr),mr=(Or.exposure=function(e,t,r){return new gr((new Date).getTime(),t,e,r.variationId,r.variationKey,r.reason,this.exposureProperties(r))},Or.exposureProperties=function(e){return a.isNotNullOrUndefined(e.config)?{$parameterConfigurationId:e.config.id}:{}},Or.track=function(e,t,r,n){return new wr(n,r,e,t)},Or.remoteConfig=function(e,t,r){return new Er((new Date).getTime(),t,e,r)},Or.isExposure=function(e){return void 0!==e.experiment},Or.isTrack=function(e){return void 0!==e.eventType},Or.isRemoteConfig=function(e){return void 0!==e.remoteConfigParameter},Or.isExposureDto=function(e){return"experimentId"in e&&void 0!==e.experimentId},Or.isTrackDto=function(e){return"eventTypeId"in e&&void 0!==e.eventTypeId},Or.isRemoteConfigDto=function(e){return"parameterId"in e&&void 0!==e.parameterId},Or.prototype.toDto=function(){return{insertId:this.insertId,timestamp:this.timestamp,userId:this.user.identifiers[We.ID],identifiers:this.user.identifiers,userProperties:ze.sanitize(this.user.properties),hackleProperties:ze.sanitize(this.user.hackleProperties)}},Or),gr=(ce(_r,or=mr),_r.prototype.copyWithUser=function(e){return new _r(this.timestamp,e,this.experiment,this.variationId,this.variationKey,this.decisionReason,this.properties,this.insertId)},_r.prototype.toDto=function(){return h(h({},or.prototype.toDto.call(this)),{experimentId:this.experiment.id,experimentKey:this.experiment.key,experimentType:this.experiment.type,experimentVersion:this.experiment.version,variationId:this.variationId,variationKey:this.variationKey,decisionReason:this.decisionReason.toString(),properties:this.properties})},_r),wr=(ce(br,ir=mr),br.prototype.copyWithUser=function(e){return new br(this.timestamp,e,this.eventType,this.event,this.insertId)},br.prototype.toDto=function(){return h(h({},ir.prototype.toDto.call(this)),{eventTypeId:this.eventType.id,eventTypeKey:this.eventType.key,value:this.event.value||0,properties:ze.sanitize(this.event.properties)})},br),Er=(ce(Tr,nr=mr),Tr.prototype.copyWithUser=function(e){return new Tr(this.timestamp,e,this.remoteConfigParameter,this.evaluation,this.insertId)},Tr.prototype.toDto=function(){return h(h({},nr.prototype.toDto.call(this)),{parameterId:this.remoteConfigParameter.id,parameterKey:this.remoteConfigParameter.key,parameterType:this.remoteConfigParameter.type,valueId:this.evaluation.valueId,decisionReason:this.evaluation.reason.toString(),properties:ze.sanitize(this.evaluation.properties)})},Tr);function Tr(e,t,r,n,i){e=nr.call(this,e,t,i)||this;return e.remoteConfigParameter=r,e.evaluation=n,e}function br(e,t,r,n,i){e=ir.call(this,e,t,i)||this;return e.eventType=r,e.event=n,e}function _r(e,t,r,n,i,o,s,a){e=or.call(this,e,t,a)||this;return e.experiment=r,e.variationId=n,e.variationKey=i,e.decisionReason=o,e.properties=s,e}function Or(e,t,r){void 0===r&&(r=ae.v4()),this.timestamp=e,this.user=t,this.insertId=r}function Rr(e,t,r,n,i){this.hackleInternalClient=e,this.hackleUserResolver=t,this.sessionManager=r,this.userManager=n,this.devTools=i}function Ir(e,t,r,n){this.client=e,this.userManager=t,this.hackleUserResolver=r,this.user=n}function Sr(){}function Cr(){}function Nr(e,t,r,n,i){t=sr.call(this,t)||this;return t.monitoringBaseUrl=e,t.httpClient=r,t.httpHeader=n,t.useBeacon=i,t.monitoringEndPoint="".concat(t.monitoringBaseUrl,"/metrics"),t.shouldUseBeacon=!1,t.start(),t.monitoringBaseUrl=e,t}function Ar(){}function kr(){var e=null!==ar&&ar.apply(this,arguments)||this;return e.registries=new Ht(function(e,t){return e.id===t.id}),e}function xr(e){this._timers=new Ht(function(e,t){return e.id===t.id}),this.id=e,this.noopTimer=new ur(e)}function Pr(e){this.id=e}function Ur(e){var t=new Array,r=new Array,n=new Array;return e.forEach(function(e){e instanceof mr?mr.isExposure(e)?t.push(e.toDto()):mr.isTrack(e)?r.push(e.toDto()):mr.isRemoteConfig(e)&&n.push(e.toDto()):mr.isExposureDto(e)?t.push(e):mr.isTrackDto(e)?r.push(e):mr.isRemoteConfigDto(e)&&n.push(e)}),{exposureEvents:t,trackEvents:r,remoteConfigEvents:n}}Zr.prototype.dispatch=function(e,t,r){var n={},e=(n["X-HACKLE-SDK-KEY"]=this.sdkKey,n[ye]=this.headers[ye],n["X-HACKLE-SDK-VERSION"]=this.headers["X-HACKLE-SDK-VERSION"],n["X-HACKLE-SDK-TIME"]=(new Date).getTime().toString(),Ur(e)),i=Rt.start();this.httpRequest.postRequest(this.dispatchUrl,e,n,function(e){t(e),dr.record("post.events",i,!0)},function(e){null!=r&&r(e),dr.record("post.events",i,!1)})},Zr.prototype.dispatchXhrOrBeacon=function(e,t,r){var n,i,o;this.useBeacon?((n={})["X-HACKLE-SDK-KEY"]=this.sdkKey,n[ye]=this.headers[ye],n["X-HACKLE-SDK-VERSION"]=this.headers["X-HACKLE-SDK-VERSION"],n["X-HACKLE-SDK-TIME"]=(new Date).getTime().toString(),i=Ur(e),o=Rt.start(),this.httpRequest.sendBeacon(this.beaconDispatchUrl,i,n,function(e){t(e),dr.record("post.events",o,!0)},function(e){null!=r&&r(e),dr.record("post.events",o,!1)})):this.dispatch(e,t,r)};var Mr=Zr,Dr=de.log,Lr=(g.prototype.getExperiments=function(){return Array.from(this.experiments.values())},g.prototype.getExperimentOrNull=function(e){return this.experiments.get(e)},g.prototype.getFeatureFlags=function(){return Array.from(this.featureFlags.values())},g.prototype.getFeatureFlagOrNull=function(e){return this.featureFlags.get(e)},g.prototype.getBucketOrNull=function(e){return this.buckets.get(e)},g.prototype.getEventTypeOrNull=function(e){return this.eventTypes.get(e)},g.prototype.getSegmentOrNull=function(e){return this.segments.get(e)},g.prototype.getContainerOrNull=function(e){return this.containers.get(e)},g.prototype.getParameterConfigurationOrNull=function(e){return this.parameterConfigurations.get(e)},g.prototype.getRemoteConfigParameterOrNull=function(e){return this.remoteConfigParameters.get(e)},g.from=function(e){var t=this,r=f.associate(e.buckets,function(e){return[e.id,t.toBucket(e)]});return new g(f.associateBy(f.mapNotNullOrUndefined(e.experiments,function(e){return t.toExperimentOrNull("AB_TEST",e)}),function(e){return e.key}),f.associateBy(f.mapNotNullOrUndefined(e.featureFlags,function(e){return t.toExperimentOrNull("FEATURE_FLAG",e)}),function(e){return e.key}),r,f.associate(e.events,function(e){return[e.key,new Re(e.id,e.key)]}),f.associateBy(f.mapNotNullOrUndefined(e.segments,function(e){return t.toSegmentOrNull(e)}),function(e){return e.key}),f.associate(e.containers,function(e){return[e.id,t.toContainer(e)]}),f.associate(e.parameterConfigurations,function(e){return[e.id,t.toParameterConfiguration(e)]}),f.associateBy(f.mapNotNullOrUndefined(e.remoteConfigParameters,function(e){return t.toRemoteConfigParameterOrNull(e)}),function(e){return e.key}))},g.toBucket=function(e){return new Oe(e.seed,e.slotSize,e.slots.map(function(e){var t=e.startInclusive,r=e.endExclusive,e=e.variationId;return new Xe(t,r,e)}))},g.toExperimentOrNull=function(e,t){var r=this,n=this.experimentStatusOrNull(t.execution.status),i=t.variations.map(function(e){return new _e(e.id,e.key,"DROPPED"===e.status,e.parameterConfigurationId)}),o=f.associate(t.execution.userOverrides,function(e){return[e.userId,e.variationId]}),s=f.mapNotNullOrUndefined(t.execution.segmentOverrides,function(e){return r.toTargetRuleOrNull(e,bt.IDENTIFIER)}),a=f.mapNotNullOrUndefined(t.execution.targetAudiences,function(e){return r.toTargetOrNull(e,bt.PROPERTY)}),u=f.mapNotNullOrUndefined(t.execution.targetRules,function(e){return r.toTargetRuleOrNull(e,bt.PROPERTY)}),c=this.toTargetActionOrNull(t.execution.defaultRule);return n&&c&&new Ye(t.id,t.key,e,t.identifierType,n,t.version,i,o,s,a,u,c,t.containerId,t.winnerVariationId)},g.experimentStatusOrNull=function(e){switch(e){case"READY":return"DRAFT";case"RUNNING":return"RUNNING";case"PAUSED":return"PAUSED";case"STOPPED":return"COMPLETED";default:return void Dr.debug("Unsupported status [".concat(e,"]"))}},g.toTargetRuleOrNull=function(e,t){t=this.toTargetOrNull(e.target,t),e=this.toTargetActionOrNull(e.action);return t&&e&&new xe(t,e)},g.toTargetActionOrNull=function(e){var t=this.parseOrNull(wt,e.type);return t&&new ke(t,e.variationId,e.bucketId)},g.toTargetOrNull=function(e,t){var r=this,e=f.mapNotNullOrUndefined(e.conditions,function(e){return r.toConditionOrNull(e,t)});return new Se(e)},g.toConditionOrNull=function(e,t){var r=this.toTargetKeyOrNull(e.key);if(r&&t.supports(r.type))return(t=this.toTargetMatchOrNull(e.match))&&new Ce(r,t)},g.toTargetKeyOrNull=function(e){var t=this.parseOrNull(Et,e.type);return t&&new Ne(t,e.name)},g.toTargetMatchOrNull=function(e){var t=this.parseOrNull(vt,e.type),r=this.parseOrNull(gt,e.operator),n=this.parseOrNull(mt,e.valueType);return t&&r&&n&&new Ae(t,r,n,e.values)},g.toSegmentOrNull=function(e){var t=this,r=this.parseOrNull(Tt,e.type);return r&&new Pe(e.id,e.key,r,f.mapNotNullOrUndefined(e.targets,function(e){return t.toTargetOrNull(e,bt.SEGMENT)}))},g.toContainer=function(e){var t=this;return new Qe(e.id,e.bucketId,e.groups.map(function(e){return t.toContainerGroup(e)}))},g.toContainerGroup=function(e){return new Ue(e.id,e.experiments)},g.toParameterConfiguration=function(e){return new Ze(e.id,f.associate(e.parameters,function(e){return[e.key,e.value]}))},g.toRemoteConfigParameterOrNull=function(e){var t=this,r=this.parseOrNull(mt,e.type),n=f.mapNotNullOrUndefined(e.targetRules,function(e){return t.toRemoteConfigTargetRuleOrNull(e,bt.PROPERTY)}),i=this.toRemoteConfigParameterValueOrNull(e.defaultValue);return r&&new Me(e.id,e.key,r,e.identifierType,n,i)},g.toRemoteConfigTargetRuleOrNull=function(e,t){t=this.toTargetOrNull(e.target,t);return t&&new De(e.key,e.name,t,e.bucketId,this.toRemoteConfigParameterValueOrNull(e.value))},g.toRemoteConfigParameterValueOrNull=function(e){return new Le(e.id,e.value)},g.parseOrNull=function(e,t){e=e.find(function(e){return e===t});return e||Dr.debug("Unsupported type [".concat(t,"]. Please use the latest version of sdk.")),e},g),Fr=(Qr.prototype.onReady=function(){return this.readyPromise},Qr.prototype.start=function(){this.isStarted||(this.isStarted=!0,this.errorRetryController.reset(),this.fetch())},Qr.prototype.stop=function(){return this.isStarted=!1,this.currentTimeout&&(clearTimeout(this.currentTimeout),this.currentTimeout=null),this.currentRequest&&(this.currentRequest.abort(),this.currentRequest=null),Promise.resolve()},Qr.prototype.get=function(){return this.workspace},Qr.prototype.scheduleNextUpdate=function(){var e=this,t=this.errorRetryController.getDelay(),t=Math.max(t,this.updateInterval);this.currentTimeout=setTimeout(function(){e.currentRequest?e.syncOnCurrentRequestComplete=!0:e.fetch()},t)},Qr.prototype.fetch=function(){function t(e){e=e.isSuccess,dr.record("get.workspace",i,e)}function e(){n.onRequestComplete()}var r,n=this,i=((r={})["X-HACKLE-SDK-KEY"]=this.sdkKey,r["X-HACKLE-SDK-TIME"]=(new Date).getTime().toString(),r[ye]=this.headers[ye],r["X-HACKLE-SDK-VERSION"]=this.headers["X-HACKLE-SDK-VERSION"],Rt.start());this.currentRequest=this.httpRequest.getRequest(this.fetchUrl,r);null!=(r=this.currentRequest)&&r.responsePromise.then(function(e){n.onRequestResolved(e,t)},function(e){n.onRequestRejected(e,t)}).then(e,e),0<this.updateInterval&&this.scheduleNextUpdate()},Qr.prototype.onRequestComplete=function(){this.isStarted&&(this.currentRequest=null,this.syncOnCurrentRequestComplete&&this.fetch(),this.syncOnCurrentRequestComplete=!1)},Qr.prototype.onRequestResolved=function(e,t){if(this.isStarted){if(void 0!==e.statusCode&&200<=e.statusCode&&e.statusCode<400)this.errorRetryController.reset(),t({isSuccess:!0});else{if(t({isSuccess:!1}),401===e.statusCode||403===e.statusCode)return void this.readyPromiseRejecter(new Error("Invalid key provided."));this.errorRetryController.countError()}e.body&&(t=JSON.parse(e.body),this.workspace=Lr.from(t),this.readyPromiseResolver())}},Qr.prototype.onRequestRejected=function(e,t){this.isStarted&&(t({isSuccess:!1}),this.errorRetryController.countError(),console.error("Error fetching data",e))},Qr.prototype.close=function(){this.stop()},Qr),jr=(Jr.prototype.getDelay=function(){return 0===this.errorCount?0:1e3*ve[Math.min(ve.length-1,this.errorCount)]+Math.round(1e3*Math.random())},Jr.prototype.countError=function(){this.errorCount<ve.length-1&&this.errorCount++},Jr.prototype.reset=function(){this.errorCount=0},Jr),r="model",o="name",c="type",p="vendor",d="version",y="mobile",v="tablet",Vr=(m.parse=function(e){return{browser:m.getBrowser(e),cpu:m.getCPU(e),device:m.getDevice(e),engine:m.getEngine(e),os:m.getOS(e)}},m.getBrowser=function(e){var t={name:void 0,version:void 0,major:void 0};return m.mapper.rgx.call(t,e,m.regexes.browser),t.major=m.util.major(t.version),t},m.getCPU=function(e){var t={architecture:void 0};return m.mapper.rgx.call(t,e,m.regexes.cpu),t},m.getDevice=function(e){var t={model:void 0,type:void 0,vendor:void 0};return m.mapper.rgx.call(t,e,m.regexes.device),t},m.getEngine=function(e){var t={name:void 0,version:void 0};return m.mapper.rgx.call(t,e,m.regexes.os),t},m.getOS=function(e){var t={name:void 0,version:void 0};return m.mapper.rgx.call(t,e,m.regexes.os),t},m.util={extend:function(e,t){var r,n={};for(r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n},has:function(e,t){return"string"==typeof e&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return"string"==typeof e?e.replace(/[^\d\.]/g,"").split(".")[0]:void 0},trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},m.regexes={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[o,d],[/(opios)[\/\s]+([\w\.]+)/i],[[o,"Opera Mini"],d],[/\s(opr)\/([\w\.]+)/i],[[o,"Opera"],d],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i,/(avant\s|iemobile|slim)(?:browser)?[\/\s]?([\w\.]*)/i,/(bidubrowser|baidubrowser)[\/\s]?([\w\.]+)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]*)/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon)\/([\w\.-]+)/i],[o,d],[/(konqueror)\/([\w\.]+)/i],[[o,"Konqueror"],d],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[o,"IE"],d],[/(edge|edgios|edga|edg)\/((\d+)?[\w\.]+)/i],[[o,"Edge"],d],[/(yabrowser)\/([\w\.]+)/i],[[o,"Yandex"],d],[/(Avast)\/([\w\.]+)/i],[[o,"Avast Secure Browser"],d],[/(AVG)\/([\w\.]+)/i],[[o,"AVG Secure Browser"],d],[/(puffin)\/([\w\.]+)/i],[[o,"Puffin"],d],[/(focus)\/([\w\.]+)/i],[[o,"Firefox Focus"],d],[/(opt)\/([\w\.]+)/i],[[o,"Opera Touch"],d],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[o,"UCBrowser"],d],[/(comodo_dragon)\/([\w\.]+)/i],[[o,/_/g," "],d],[/(windowswechat qbcore)\/([\w\.]+)/i],[[o,"WeChat(Win) Desktop"],d],[/(micromessenger)\/([\w\.]+)/i],[[o,"WeChat"],d],[/(brave)\/([\w\.]+)/i],[[o,"Brave"],d],[/(whale)\/([\w\.]+)/i],[[o,"Whale"],d],[/(qqbrowserlite)\/([\w\.]+)/i],[o,d],[/(QQ)\/([\d\.]+)/i],[o,d],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[o,d],[/(baiduboxapp)[\/\s]?([\w\.]+)/i],[o,d],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[o,d],[/(MetaSr)[\/\s]?([\w\.]+)/i],[o],[/(LBBROWSER)/i],[o],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[d,[o,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[d,[o,"Facebook"]],[/safari\s(line)\/([\w\.]+)/i,/android.+(line)\/([\w\.]+)\/iab/i],[o,d],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[d,[o,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[o,/(.+)/,"$1 WebView"],d],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[o,/(.+(?:g|us))(.+)/,"$1 $2"],d],[/((?:android.+)crmo|crios)\/([\w\.]+)/i,/android.+(chrome)\/([\w\.]+)\s+(?:mobile\s?safari)/i],[[o,"Chrome Mobile"],d],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[d,[o,"Android Browser"]],[/(sailfishbrowser)\/([\w\.]+)/i],[[o,"Sailfish Browser"],d],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[o,d],[/(dolfin)\/([\w\.]+)/i],[[o,"Dolphin"],d],[/(qihu|qhbrowser|qihoobrowser|360browser)/i],[[o,"360 Browser"]],[/(coast)\/([\w\.]+)/i],[[o,"Opera Coast"],d],[/fxios\/([\w\.-]+)/i],[d,[o,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[d,[o,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[d,o],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[o,"GSA"],d],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[o,[d,(m.mapper={rgx:function(e,t){for(var r,n,i,o,s,a=0;a<t.length&&!o;){for(var u=t[a],c=t[a+1],l=r=0;l<u.length&&!o;)if(o=u[l++].exec(e))for(n=0;n<c.length;n++)s=o[++r],"object"==typeof(i=c[n])&&0<i.length?2==i.length?"function"==typeof i[1]?this[i[0]]=i[1].call(this,s):this[i[0]]=i[1]:3==i.length?"function"!=typeof i[1]||i[1].exec&&i[1].test?this[i[0]]=s?s.replace(i[1],i[2]):void 0:this[i[0]]=s?i[1].call(this,s,i[2]):void 0:4==i.length&&(this[i[0]]=s?i[3].call(this,s.replace(i[1],i[2])):void 0):this[i]=s||void 0;a+=2}},str:function(e,t){for(var r in t)if("object"==typeof t[r]&&0<t[r].length){for(var n=0;n<t[r].length;n++)if(m.util.has(t[r][n],e))return"?"===r?void 0:r}else if(m.util.has(t[r],e))return"?"===r?void 0:r;return e}}).str,(m.maps={browser:{oldsafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}}},device:{amazon:{model:{"Fire Phone":["SD","KF"]}},sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"}}}}).browser.oldsafari.version]],[/(webkit|khtml)\/([\w\.]+)/i],[o,d],[/(navigator|netscape)\/([\w\.-]+)/i],[[o,"Netscape"],d],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)/i,/(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]*)/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[o,d]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[["architecture","amd64"]],[/(ia32(?=;))/i],[["architecture",m.util.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[["architecture","ia32"]],[/windows\s(ce|mobile);\sppc;/i],[["architecture","arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[["architecture",/ower/,"",m.util.lowerize]],[/(sun4\w)[;\)]/i],[["architecture","sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+[;l]))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[["architecture",m.util.lowerize]]],device:[[/\((ipad|playbook);[\w\s\),;-]+(rim|apple)/i],[r,p,[c,v]],[/applecoremedia\/[\w\.]+ \((ipad)/],[r,[p,"Apple"],[c,v]],[/(apple\s{0,1}tv)/i],[[r,"Apple TV"],[p,"Apple"],[c,"smarttv"]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[p,r,[c,v]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[r,[p,"Amazon"],[c,v]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[r,m.mapper.str,m.maps.device.amazon.model],[p,"Amazon"],[c,y]],[/android.+aft([bms])\sbuild/i],[r,[p,"Amazon"],[c,"smarttv"]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[r,p,[c,y]],[/\((ip[honed|\s\w*]+);/i],[r,[p,"Apple"],[c,y]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[p,r,[c,y]],[/\(bb10;\s(\w+)/i],[r,[p,"BlackBerry"],[c,y]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone|p00c)/i],[r,[p,"Asus"],[c,v]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[p,"Sony"],[r,"Xperia Tablet"],[c,v]],[/android.+\s([c-g]\d{4}|so[-l]\w+)(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[r,[p,"Sony"],[c,y]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[p,r,[c,"console"]],[/android.+;\s(shield)\sbuild/i],[r,[p,"Nvidia"],[c,"console"]],[/(playstation\s[34portablevi]+)/i],[r,[p,"Sony"],[c,"console"]],[/(sprint\s(\w+))/i],[[p,m.mapper.str,m.maps.device.sprint.vendor],[r,m.mapper.str,m.maps.device.sprint.model],[c,y]],[/(htc)[;_\s-]+([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[p,[r,/_/g," "],[c,y]],[/(nexus\s9)/i],[r,[p,"HTC"],[c,v]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p|vog-l29|ane-lx1|eml-l29)/i],[r,[p,"Huawei"],[c,y]],[/android.+(bah2?-a?[lw]\d{2})/i],[r,[p,"Huawei"],[c,v]],[/(microsoft);\s(lumia[\s\w]+)/i],[p,r,[c,y]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[r,[p,"Microsoft"],[c,"console"]],[/(kin\.[onetw]{3})/i],[[r,/\./g," "],[p,"Microsoft"],[c,y]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)[\w\s]+build\//i,/mot[\s-]?(\w*)/i,/(XT\d{3,4}) build\//i,/(nexus\s6)/i],[r,[p,"Motorola"],[c,y]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[r,[p,"Motorola"],[c,v]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[p,m.util.trim],[r,m.util.trim],[c,"smarttv"]],[/hbbtv.+maple;(\d+)/i],[[r,/^/,"SmartTV"],[p,"Samsung"],[c,"smarttv"]],[/\(dtv[\);].+(aquos)/i],[r,[p,"Sharp"],[c,"smarttv"]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[p,"Samsung"],r,[c,v]],[/smart-tv.+(samsung)/i],[p,[c,"smarttv"],r],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i,/sec-((sgh\w+))/i],[[p,"Samsung"],r,[c,y]],[/sie-(\w*)/i],[r,[p,"Siemens"],[c,y]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[p,"Nokia"],r,[c,y]],[/android[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[r,[p,"Acer"],[c,v]],[/android.+([vl]k\-?\d{3})\s+build/i],[r,[p,"LG"],[c,v]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[p,"LG"],r,[c,v]],[/(lg) netcast\.tv/i],[p,r,[c,"smarttv"]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[r,[p,"LG"],[c,y]],[/(lenovo)\s?(s(?:5000|6000)(?:[\w-]+)|tab(?:[\s\w]+))/i],[p,r,[c,v]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[r,[p,"Lenovo"],[c,v]],[/(lenovo)[_\s-]?([\w-]+)/i],[p,r,[c,y]],[/linux;.+((jolla));/i],[p,r,[c,y]],[/((pebble))app\/[\d\.]+\s/i],[p,r,[c,"wearable"]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[p,r,[c,y]],[/crkey/i],[[r,"Chromecast"],[p,"Google"],[c,"smarttv"]],[/android.+;\s(glass)\s\d/i],[r,[p,"Google"],[c,"wearable"]],[/android.+;\s(pixel c)[\s)]/i],[r,[p,"Google"],[c,v]],[/android.+;\s(pixel( [23])?( xl)?)[\s)]/i],[r,[p,"Google"],[c,y]],[/android.+;\s(\w+)\s+build\/hm\1/i,/android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i,/android.+(mi[\s\-_]*(?:a\d|one|one[\s_]plus|note lte)?[\s_]*(?:\d?\w?)[\s_]*(?:plus)?)\s+build/i,/android.+(redmi[\s\-_]*(?:note)?(?:[\s_]*[\w\s]+))\s+build/i],[[r,/_/g," "],[p,"Xiaomi"],[c,y]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i],[[r,/_/g," "],[p,"Xiaomi"],[c,v]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[r,[p,"Meizu"],[c,y]],[/(mz)-([\w-]{2,})/i],[[p,"Meizu"],r,[c,y]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})[\s)]/i],[r,[p,"OnePlus"],[c,y]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[r,[p,"RCA"],[c,v]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[r,[p,"Dell"],[c,v]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[r,[p,"Verizon"],[c,v]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[p,"Barnes & Noble"],r,[c,v]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[r,[p,"NuVision"],[c,v]],[/android.+;\s(k88)\sbuild/i],[r,[p,"ZTE"],[c,v]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[r,[p,"Swiss"],[c,y]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[r,[p,"Swiss"],[c,v]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[r,[p,"Zeki"],[c,v]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[p,"Dragon Touch"],r,[c,v]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[r,[p,"Insignia"],[c,v]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[r,[p,"NextBook"],[c,v]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[p,"Voice"],r,[c,y]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[p,"LvTel"],r,[c,y]],[/android.+;\s(PH-1)\s/i],[r,[p,"Essential"],[c,y]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[r,[p,"Envizen"],[c,v]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[p,r,[c,v]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[r,[p,"MachSpeed"],[c,v]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[p,r,[c,v]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[r,[p,"Rotor"],[c,v]],[/android.+(KS(.+))\s+build/i],[r,[p,"Amazon"],[c,v]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[p,r,[c,v]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[c,m.util.lowerize],p,r],[/[\s\/\(](smart-?tv)[;\)]/i],[[c,"smarttv"]],[/(android[\w\.\s\-]{0,9});.+build/i],[r,[p,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[d,[o,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[d,[o,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[o,d],[/rv\:([\w\.]{1,9}).+(gecko)/i],[d,o]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[o,d],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[[o,m.mapper.str,m.maps.os.windows],[d,m.mapper.str,m.maps.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[o,"Windows"],[d,m.mapper.str,m.maps.os.windows.version]],[/\((bb)(10);/i],[[o,"BlackBerry"],d],[/(blackberry)\w*\/?([\w\.]*)/i,/(tizen|kaios)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|sailfish|contiki)[\/\s-]?([\w\.]*)/i],[o,d],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[o,"Symbian"],d],[/\((series40);/i],[o],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[o,"Firefox OS"],d],[/(nintendo|playstation)\s([wids34portablevu]+)/i,/(mint)[\/\s\(]?(\w*)/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?(?!chrom)([\w\.-]*)/i,/(hurd|linux)\s?([\w\.]*)/i,/(gnu)\s?([\w\.]*)/i],[[o,"Linux"],d],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[o,"Chromium OS"],d],[/(sunos)\s?([\w\.\d]*)/i],[[o,"Solaris"],d],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[[o,"Linux"],d],[/(iphone)(?:.*os\s*([\w]*)\slike\smac|;\sopera)/i],[[o,"iPhone"],[d,/_/g,"."]],[/(ipad)(?:.*os\s*([\w]*)\slike\smac|;\sopera)/i],[[o,"iPad"],[d,/_/g,"."]],[/(haiku)\s(\w+)/i],[o,d],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[d,/_/g,"."],[o,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[o,"Mac"],[d,/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]*)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms|fuchsia)/i,/(unix)\s?([\w\.]*)/i],[o,d]]},m),Hr=(Wr.generate=function(e){t=void 0===e?{navigator:{userAgent:"",vendor:"",languages:[]},document:{location:t={hostname:"",pathname:"",host:"",search:"",protocol:""},title:""},location:t,screen:{width:"",height:""}}:e;var t,r=Vr.parse(t.navigator.userAgent),n=r.browser,i=r.os,r=r.device,o=r.type?"mobile"===r.type?"Mobile":"ETC":"Web",s=(t.location.protocol||"").replace(":",""),a=t.screen,u="";try{u=Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){}return{platform:o||"",browserName:n.name||"",browserMajorVersion:n.major||"",browserVersion:n.version||"",osName:i.name||"",osVersion:i.version||"",deviceModel:r.model||"",deviceType:r.type||"",deviceVendor:r.vendor||"",language:(null==(o=t.navigator.languages)?void 0:o[0])||"",userAgent:t.navigator.userAgent||"",pagePath:t.location.pathname||"",pageTitle:t.document.title||"",host:t.location.host||"",protocol:s,referrer:t.document.referrer||"",queryParameter:t.location.search||"",screenWidth:a.width||"",screenHeight:a.height||"",timeZone:u||""}},Wr),zr=(Xr.extractDomain=function(e){var t=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,r=e.split("."),r=r[r.length-1],r=((4<r.length||"com"===r||"org"===r)&&(t=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i),e.match(t));return r?r[0]:""},Xr.prototype.getItem=function(e){for(var t=e+"=",r=document.cookie.split(";"),n=0;n<r.length;n++){for(var i=r[n];" "==i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return decodeURIComponent(i.substring(t.length,i.length))}return null},Xr.prototype.getAllItem=function(e){var t=document.cookie.split("; ").map(function(e){return e.split("=")}),r=null==e?void 0:e.keyPrefix;return r?t.filter(function(e){var t=e[0];return e[1],t.startsWith(r)}):t},Xr.prototype.setItem=function(e,t,r){var r=h(h({},this.options),r),n=r.isSecure,i="",o="",s="",a=(r.isCrossSubdomain&&(i=(a=Xr.extractDomain(document.location.hostname))?"; domain=."+a:""),r.days&&((a=new Date).setTime(a.getTime()+24*r.days*60*60*1e3),o="; expires="+a.toUTCString()),r.isCrossSite&&(n=!0,s="; SameSite=None"),n&&(s+="; secure"),e+"="+encodeURIComponent(t)+o+"; path=/"+i+s);return document.cookie=a},Xr.prototype.removeItem=function(e,t){this.setItem(e,"",h(h({},t),{days:-1}))},new Xr({days:3650,isCrossSubdomain:!0})),Kr=(Yr.prototype.getQueryParam=function(e){return this.getQueryParams(function(){return!0})[e]||""},Yr.prototype.getQueryParams=function(e){for(var t={},r=0,n=this.search.substring(1).split("&");r<n.length;r++){var i=n[r].split("="),o=i[0],i=i[1];e(o,i)&&(t[o]=decodeURIComponent(i))}return t},Yr),Br=($r.prototype.resolve=function(e){var t=en(),t=(new Je).addIdentifiers(e.identifiers||{}).add(We.ID,e.id||t).add(We.DEVICE,e.deviceId||t).add(We.HACKLE_DEVICE,t);return a.isNotNullOrUndefined(e.userId)&&t.add(We.USER,e.userId),{identifiers:t.build(),properties:this._userProperties(e.properties),hackleProperties:this._getHackleProperties()}},$r.prototype.resolveCurrentUser=function(){return this.resolve(this.userManager.currentUser)},$r.prototype._userProperties=function(e){void 0===e&&(e={});var t,r={};return"undefined"!=typeof window&&(t=new Kr(window.location.search),r=h(h({},t.getQueryParams(function(e){return e.startsWith("utm_")})),t.getQueryParams(function(e){return["gclid","fbclid"].includes(e)}))),h(h({},r),e)},$r.prototype._getHackleProperties=function(){var e;return(e="undefined"!=typeof window?Hr.generate(window):e)||{}},$r),Gr=(qr.initialize=function(){zr.getItem("_hackle_hid")||nn()},qr.reInitialize=function(){nn()},qr);function qr(){}function $r(e){this.userManager=e,Gr.initialize()}function Yr(e){this.search=e}function Xr(e){this.options=e=void 0===e?{days:0,isCrossSubdomain:!1,isSecure:!1,isCrossSite:!1}:e}function Wr(){}function m(){}function Jr(){this.errorCount=0}function Qr(e,t,r){var n=this;this.workspace=null,this.sdkKey=e,this.httpRequest=t,this.isStarted=!1,this.updateInterval=r.updateInterval,this.fetchUrl=r.fetchUrl,this.headers=r.headers,this.readyPromiseResolver=function(){},this.readyPromiseRejecter=function(){},this.readyPromise=new Promise(function(e,t){n.readyPromiseResolver=e,n.readyPromiseRejecter=t}),this.currentTimeout=null,this.errorRetryController=new jr,this.currentRequest=null,this.syncOnCurrentRequestComplete=!1,this.isReadyPromiseSettled=!1}function g(e,t,r,n,i,o,s,a){this.experiments=e,this.featureFlags=t,this.buckets=r,this.eventTypes=n,this.segments=i,this.containers=o,this.parameterConfigurations=s,this.remoteConfigParameters=a}function Zr(e,t,r){this.sdkKey=e,this.httpRequest=t,this.headers=r.headers,this.dispatchUrl=r.dispatchUrl,this.beaconDispatchUrl=r.beaconDispatchUrl||"",this.useBeacon=r.useBeacon||!1}function en(){var e=zr.getItem("_hackle_id");return e||zr.getItem("_hackle_hid")||nn()}function tn(e){zr.setItem("_hackle_id",e)}function rn(){zr.removeItem("_hackle_id")}function nn(){var e=ae.v4();return zr.setItem("_hackle_hid",e),e}function on(e){return e&&e.Math==Math&&e}function w(e){try{return!!e()}catch(e){return!0}}var y="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},v=on("object"==typeof globalThis&&globalThis)||on("object"==typeof window&&window)||on("object"==typeof self&&self)||on("object"==typeof y&&y)||function(){return this}()||Function("return this")(),c={},r=!w(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),p=!w(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),sn=Function.prototype.call,o=p?sn.bind(sn):function(){return sn.apply(sn,arguments)},d={},e={}.propertyIsEnumerable,an=Object.getOwnPropertyDescriptor,y=an&&!e.call({1:2},1);d.f=y?function(e){e=an(this,e);return!!e&&e.enumerable}:e;function un(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}function cn(e){return Cn(Sn(e),8,-1)}function ln(e){if(null==e)throw xn("Can't call method on "+e);return e}function fn(e){return Pn(Un(e))}function E(e){return"function"==typeof e}function pn(e){return"object"==typeof e?null!==e:Mn(e)}function dn(e,t){return arguments.length<2?(r=Dn[e],Ln(r)?r:void 0):Dn[e]&&Dn[e][t];var r}function hn(e){try{return qn(e)}catch(e){return"Object"}}function yn(e){if($n(e))return e;throw Xn(Yn(e)+" is not a function")}function vn(e,t){return null==(e=e[t])?void 0:Wn(e)}function mn(t,r){try{ri(ti,t,{value:r,configurable:!0,writable:!0})}catch(e){ti[t]=r}return r}function gn(e){return si(oi(e))}function wn(e){return"Symbol("+(void 0===e?"":e)+")_"+di(++fi+pi,36)}function En(e){var t;return yi(wi,e)&&(mi||"string"==typeof wi[e])||(t="Symbol."+e,mi&&yi(Ei,e)?wi[e]=Ei[e]:wi[e]=(gi&&Ti?Ti:bi)(t)),wi[e]}function Tn(e){return e=function(e,t){if(!Oi(e)||Ri(e))return e;var r=Ii(e,Ni);if(r){if(r=_i(r,e,t=void 0===t?"default":t),!Oi(r)||Ri(r))return r;throw Ci("Can't convert object to primitive value")}return Si(e,t=void 0===t?"number":t)}(e,"string"),Ai(e)?e:e+""}function bn(e){return xi?ki.createElement(e):{}}function _n(e){if(zi(e))return e;throw Bi(Ki(e)+" is not an object")}var y=p,e=Function.prototype,On=e.bind,Rn=e.call,In=y&&On.bind(Rn,Rn),e=y?function(e){return e&&In(e)}:function(e){return e&&function(){return Rn.apply(e,arguments)}},On=e,Sn=On({}.toString),Cn=On("".slice),y=w,Nn=cn,An=Object,kn=e("".split),On=y(function(){return!An("z").propertyIsEnumerable(0)})?function(e){return"String"==Nn(e)?kn(e,""):An(e)}:An,xn=TypeError,Pn=On,Un=ln,Mn=E,Dn=v,Ln=E,y=e({}.isPrototypeOf),Fn=dn("navigator","userAgent")||"",jn=Fn,Vn=v.process,T=v.Deno,Vn=Vn&&Vn.versions||T&&T.version,T=Vn&&Vn.v8,Vn=_=!(_=T?0<(b=T.split("."))[0]&&b[0]<4?1:+(b[0]+b[1]):_)&&jn&&(!(b=jn.match(/Edge\/(\d+)/))||74<=b[1])&&(b=jn.match(/Chrome\/(\d+)/))?+b[1]:_,Hn=Vn,T=w,jn=!!Object.getOwnPropertySymbols&&!T(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Hn&&Hn<41}),b=jn&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,zn=dn,Kn=E,Bn=y,Gn=Object,_=b?function(e){return"symbol"==typeof e}:function(e){var t=zn("Symbol");return Kn(t)&&Bn(t.prototype,Gn(e))},qn=String,$n=E,Yn=hn,Xn=TypeError,Wn=yn,Jn=o,Qn=E,Zn=pn,ei=TypeError,T={exports:{}},ti=v,ri=Object.defineProperty,ni=mn,ni=v["__core-js_shared__"]||ni("__core-js_shared__",{}),ii=ni,oi=((T.exports=function(e,t){return ii[e]||(ii[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.24.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"}),ln),si=Object,ai=gn,ui=e({}.hasOwnProperty),ci=Object.hasOwn||function(e,t){return ui(ai(e),t)},li=e,fi=0,pi=Math.random(),di=li(1..toString),li=v,hi=T.exports,yi=ci,vi=wn,mi=jn,gi=b,wi=hi("wks"),Ei=li.Symbol,Ti=Ei&&Ei.for,bi=gi?Ei:Ei&&Ei.withoutSetter||vi,_i=o,Oi=pn,Ri=_,Ii=vn,Si=function(e,t){var r,n;if("string"===t&&Qn(r=e.toString)&&!Zn(n=Jn(r,e)))return n;if(Qn(r=e.valueOf)&&!Zn(n=Jn(r,e)))return n;if("string"!==t&&Qn(r=e.toString)&&!Zn(n=Jn(r,e)))return n;throw ei("Can't convert object to primitive value")},Ci=TypeError,Ni=En("toPrimitive"),Ai=_,jn=pn,ki=v.document,xi=jn(ki)&&jn(ki.createElement),Pi=bn,b=!r&&!w(function(){return 7!=Object.defineProperty(Pi("div"),"a",{get:function(){return 7}}).a}),Ui=o,Mi=d,Di=un,Li=fn,Fi=Tn,ji=ci,Vi=b,Hi=Object.getOwnPropertyDescriptor,hi=(c.f=r?Hi:function(e,t){if(e=Li(e),t=Fi(t),Vi)try{return Hi(e,t)}catch(e){}if(ji(e,t))return Di(!Ui(Mi.f,e,t),e[t])},{}),li=r&&w(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),zi=pn,Ki=String,Bi=TypeError,Gi=b,qi=_n,$i=Tn,Yi=TypeError,Xi=Object.defineProperty,Wi=Object.getOwnPropertyDescriptor,Ji=(hi.f=r?li?function(e,t,r){var n;return qi(e),t=$i(t),qi(r),"function"==typeof e&&"prototype"===t&&"value"in r&&"writable"in r&&!r.writable&&(n=Wi(e,t))&&n.writable&&(e[t]=r.value,r={configurable:("configurable"in r?r:n).configurable,enumerable:("enumerable"in r?r:n).enumerable,writable:!1}),Xi(e,t,r)}:Xi:function(e,t,r){if(qi(e),t=$i(t),qi(r),Gi)try{return Xi(e,t,r)}catch(e){}if("get"in r||"set"in r)throw Yi("Accessors not supported");return"value"in r&&(e[t]=r.value),e},hi),Qi=un,vi=r?function(e,t,r){return Ji.f(e,t,Qi(1,r))}:function(e,t,r){return e[t]=r,e},_={exports:{}},jn=r,d=ci,b=Function.prototype,Zi=jn&&Object.getOwnPropertyDescriptor,d=d(b,"name"),d={EXISTS:d,PROPER:d&&"something"===function(){}.name,CONFIGURABLE:d&&(!jn||Zi(b,"name").configurable)},jn=E,Zi=ni,eo=e(Function.toString);jn(Zi.inspectSource)||(Zi.inspectSource=function(e){return eo(e)});function to(e){return Eo[e]||(Eo[e]=wo(e))}function ro(e,t,r,n){var i=(n=n||{}).enumerable,o=void 0!==n.name?n.name:t;if(Lo(r)&&jo(r,o,n),n.global)i?e[t]=r:Vo(t,r);else{try{n.unsafe?e[t]&&(i=!0):delete e[t]}catch(e){}i?e[t]=r:Fo.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e}function no(e){return(e=+e)!=e||0==e?0:Ko(e)}function io(e,t){return(e=Bo(e))<0?Go(e+t,0):qo(e,t)}function O(e){return 0<(e=e.length)?Yo($o(e),9007199254740991):0}function oo(a){return function(e,t,r){var n,i=Xo(e),o=Jo(i),s=Wo(r,o);if(a&&t!=t){for(;s<o;)if((n=i[s++])!=n)return!0}else for(;s<o;s++)if((a||s in i)&&i[s]===t)return a||s||0;return!a&&-1}}function so(e,t){var r,n=Zo(e),i=0,o=[];for(r in n)!Qo(ts,r)&&Qo(n,r)&&rs(o,r);for(;t.length>i;)!Qo(n,r=t[i++])||~es(o,r)||rs(o,r);return o}function ao(e,t,r){for(var n=ls(t),i=ps.f,o=fs.f,s=0;s<n.length;s++){var a=n[s];cs(e,a)||r&&cs(r,a)||i(e,a,o(t,a))}}function uo(e,t){return(e=ms[vs(e)])==ws||e!=gs&&(hs(t)?ds(t):!!t)}function R(e,t){var r,n,i,o,s=e.target,a=e.global,u=e.stat;if(r=a?Es:u?Es[s]||Os(s,{}):(Es[s]||{}).prototype)for(n in t){if(i=t[n],o=e.dontCallGetSet?(o=Ts(r,n))&&o.value:r[n],!Is(a?n:s+(u?".":"#")+n,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Rs(i,o)}(e.sham||o&&o.sham)&&bs(i,"sham",!0),_s(r,n,i,e)}}var co,lo,fo,po,ho,yo,vo,mo,b=Zi.inspectSource,jn=E,Zi=b,go=v.WeakMap,jn=jn(go)&&/native code/.test(Zi(go)),Zi=T.exports,wo=wn,Eo=Zi("keys"),go={},T=e,To=pn,bo=vi,_o=ci,Zi=ni,I=to,Oo=go,Ro=v.TypeError,Io=v.WeakMap,jn=(vo=jn||Zi.state?(co=Zi.state||(Zi.state=new Io),lo=T(co.get),fo=T(co.has),po=T(co.set),ho=function(e,t){if(fo(co,e))throw new Ro("Object already initialized");return t.facade=e,po(co,e,t),t},yo=function(e){return lo(co,e)||{}},function(e){return fo(co,e)}):(Oo[mo=I("state")]=!0,ho=function(e,t){if(_o(e,mo))throw new Ro("Object already initialized");return t.facade=e,bo(e,mo,t),t},yo=function(e){return _o(e,mo)?e[mo]:{}},function(e){return _o(e,mo)}),{set:ho,get:yo,has:vo,enforce:function(e){return vo(e)?yo(e):ho(e,{})},getterFor:function(t){return function(e){if(To(e)&&(e=yo(e)).type===t)return e;throw Ro("Incompatible receiver, "+t+" required")}}}),Zi=w,So=E,Co=ci,No=r,Ao=d.CONFIGURABLE,ko=b,xo=jn.enforce,Po=jn.get,Uo=Object.defineProperty,Mo=No&&!Zi(function(){return 8!==Uo(function(){},"length",{value:8}).length}),Do=String(String).split("String"),Io=_.exports=function(e,t,r){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!Co(e,"name")||Ao&&e.name!==t)&&(No?Uo(e,"name",{value:t,configurable:!0}):e.name=t),Mo&&r&&Co(r,"arity")&&e.length!==r.arity&&Uo(e,"length",{value:r.arity});try{r&&Co(r,"constructor")&&r.constructor?No&&Uo(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}r=xo(e);return Co(r,"source")||(r.source=Do.join("string"==typeof t?t:"")),e},Lo=(Function.prototype.toString=Io(function(){return So(this)&&Po(this).source||ko(this)},"toString"),E),Fo=hi,jo=_.exports,Vo=mn,T={},Ho=Math.ceil,zo=Math.floor,Ko=Math.trunc||function(e){e=+e;return(0<e?zo:Ho)(e)},Bo=no,Go=Math.max,qo=Math.min,$o=no,Yo=Math.min,Xo=fn,Wo=io,Jo=O,Oo={includes:oo(!0),indexOf:oo(!1)},Qo=ci,Zo=fn,es=Oo.indexOf,ts=go,rs=e([].push),I=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ns=so,is=I.concat("length","prototype"),Zi=(T.f=Object.getOwnPropertyNames||function(e){return ns(e,is)},{}),Io=(Zi.f=Object.getOwnPropertySymbols,dn),os=T,ss=Zi,as=_n,us=e([].concat),Zi=Io("Reflect","ownKeys")||function(e){var t=os.f(as(e)),r=ss.f;return r?us(t,r(e)):t},cs=ci,ls=Zi,fs=c,ps=hi,ds=w,hs=E,ys=/#|\.prototype\./,vs=uo.normalize=function(e){return String(e).replace(ys,".").toLowerCase()},ms=uo.data={},gs=uo.NATIVE="N",ws=uo.POLYFILL="P",Io=uo,Es=v,Ts=c.f,bs=vi,_s=ro,Os=mn,Rs=ao,Is=Io,Zi=!w(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),Ss=ci,Cs=E,Ns=gn,As=to("IE_PROTO"),ks=Object,xs=ks.prototype,Zi=Zi?ks.getPrototypeOf:function(e){e=Ns(e);if(Ss(e,As))return e[As];var t=e.constructor;return Cs(t)&&e instanceof t?t.prototype:e instanceof ks?xs:null},Ps=E,Us=String,Ms=TypeError,Ds=e,Ls=_n,S=Object.setPrototypeOf||("__proto__"in{}?function(){var r,n=!1,e={};try{(r=Ds(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),n=e instanceof Array}catch(r){}return function(e,t){return Ls(e),function(e){if("object"==typeof e||Ps(e))return;throw Ms("Can't set "+Us(e)+" as a prototype")}(t),n?r(e,t):e.__proto__=t,e}}():void 0),Fs={},js=so,Vs=I,C=Object.keys||function(e){return js(e,Vs)},Hs=hi,zs=_n,Ks=fn,Bs=C;Fs.f=r&&!li?Object.defineProperties:function(e,t){zs(e);for(var r,n=Ks(t),i=Bs(t),o=i.length,s=0;s<o;)Hs.f(e,r=i[s++],n[r]);return e};function Gs(){}function qs(e){e.write(ca("")),e.close();var t=e.parentWindow.Object;return e=null,t}function $s(e,t){return ma(e),void 0===t?e:ga?wa(e,t):function(){return e.apply(t,arguments)}}function Ys(e){return void 0!==e&&(Ea.Array===e||ba[Ta]===e)}function Xs(e){if(null!=e)return Na(e,ka)||Na(e,"@@iterator")||Aa[Ca(e)]}function Ws(e,t){if(t=arguments.length<2?Da(e):t,Pa(t))return Ua(xa(t,e));throw La(Ma(e)+" is not iterable")}function Js(e,t,r){var n,i;ja(e);try{if(!(n=Va(e,"return"))){if("throw"===t)throw r;return r}n=Fa(n,e)}catch(e){i=!0,n=e}if("throw"===t)throw r;if(i)throw n;return ja(n),r}function Qs(e,t){this.stopped=e,this.result=t}function Zs(e,t,r){function n(e){return o&&Wa(o,"normal",e),new Qs(!0,e)}function i(e){return p?(Ka(e),y?v(e[0],e[1],n):v(e[0],e[1])):y?v(e,n):v(e)}var o,s,a,u,c,l,f=r&&r.that,p=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_RECORD),h=!(!r||!r.IS_ITERATOR),y=!(!r||!r.INTERRUPTED),v=Ha(t,f);if(d)o=e.iterator;else if(h)o=e;else{if(!(r=Xa(e)))throw Ja(Ba(e)+" is not iterable");if(Ga(r)){for(s=0,a=qa(e);s<a;s++)if((u=i(e[s]))&&$a(Qa,u))return u;return new Qs(!1)}o=Ya(e,r)}for(c=(d?e:o).next;!(l=za(c,o)).done;){try{u=i(l.value)}catch(e){Wa(o,"throw",e)}if("object"==typeof u&&u&&$a(Qa,u))return u}return new Qs(!1)}function ea(e){if("Symbol"===Za(e))throw TypeError("Cannot convert a Symbol value to a string");return eu(e)}function ta(e,t){var r,n=2<arguments.length?arguments[2]:void 0,i=iu(vu,this);return su?r=su(new hu,i?ou(this):vu):(r=i?this:uu(vu),cu(r,du,"Error")),void 0!==t&&cu(r,"message",function(e,t){return void 0===e?arguments.length<2?"":t:tu(e)}(t)),pu&&cu(r,"stack",function(e,t){if(ha&&"string"==typeof e&&!fa.prepareStackTrace)for(;t--;)e=pa(e,da,"");return e}(r.stack,1)),i=r,ya(t=n)&&"cause"in t&&va(i,"cause",t.cause),fu(e,yu,{that:n=[]}),cu(r,"errors",n),r}var ra,C=dn("document","documentElement"),na=_n,ia=Fs,oa=I,li=go,sa=C,aa=bn,ua=to("IE_PROTO"),ca=function(e){return"<script>"+e+"<\/script>"},la=function(){try{ra=new ActiveXObject("htmlfile")}catch(e){}var e,t;la="undefined"==typeof document||document.domain&&ra?qs(ra):((t=aa("iframe")).style.display="none",sa.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(ca("document.F=Object")),e.close(),e.F);for(var r=oa.length;r--;)delete la.prototype[oa[r]];return la()},Fs=(li[ua]=!0,Object.create||function(e,t){var r;return null!==e?(Gs.prototype=na(e),r=new Gs,Gs.prototype=null,r[ua]=e):r=la(),void 0===t?r:ia.f(r,t)}),fa=Error,pa=e("".replace),I=String(fa("zxcasd").stack),da=/\n\s*at [^:]*:[^\n]*/,ha=da.test(I),ya=pn,va=vi,ma=yn,ga=p,wa=e(e.bind),li={},Ea=li,Ta=En("iterator"),ba=Array.prototype,I={},I=(I[En("toStringTag")]="z","[object z]"===String(I)),N=I,_a=E,Oa=cn,Ra=En("toStringTag"),Ia=Object,Sa="Arguments"==Oa(function(){return arguments}()),N=N?Oa:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=function(e,t){try{return e[t]}catch(e){}}(e=Ia(e),Ra))?t:Sa?Oa(e):"Object"==(t=Oa(e))&&_a(e.callee)?"Arguments":t},Ca=N,Na=vn,Aa=li,ka=En("iterator"),xa=o,Pa=yn,Ua=_n,Ma=hn,Da=Xs,La=TypeError,Fa=o,ja=_n,Va=vn,Ha=$s,za=o,Ka=_n,Ba=hn,Ga=Ys,qa=O,$a=y,Ya=Ws,Xa=Xs,Wa=Js,Ja=TypeError,Qa=Qs.prototype,Za=N,eu=String,tu=ea,ru=un,A=!w(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",ru(1,7)),7!==e.stack)}),nu=R,iu=y,ou=Zi,su=S,au=ao,uu=Fs,cu=vi,lu=un,fu=Zs,pu=A,du=En("toStringTag"),hu=Error,yu=[].push,vu=(su?su(ta,hu):au(ta,hu,{name:!0}),ta.prototype=uu(hu.prototype,{constructor:lu(1,ta),message:lu(1,""),name:lu(1,"AggregateError")})),A=(nu({global:!0,constructor:!0,arity:2},{AggregateError:ta}),En),au=Fs,lu=hi.f,mu=A("unscopables"),gu=Array.prototype;null==gu[mu]&&lu(gu,mu,{configurable:!0,value:au(null)});function k(e){gu[mu][e]=!0}var wu,nu=w,A=E,lu=Zi,au=ro,Eu=En("iterator"),x=!1;[].keys&&("next"in(Ou=[].keys())?(lu=lu(lu(Ou)))!==Object.prototype&&(wu=lu):x=!0);function Tu(e,t,r){(e=e&&!r?e.prototype:e)&&!Iu(e,Su)&&Ru(e,Su,{configurable:!0,value:t})}function bu(){return this}function _u(e,t,r,n,i,o,s){var a=r,u=t,c=void 0;function l(e){if(e===i&&v)return v;if(!qu&&e in h)return h[e];switch(e){case"keys":case"values":case"entries":return function(){return new r(this,e)}}return function(){return new r(this)}}u+=" Iterator",a.prototype=Nu(Cu,{next:Au(+!c,n)}),ku(a,u,!1),xu[u]=Pu;var f,p,c=t+" Iterator",d=!1,h=e.prototype,y=h[$u]||h["@@iterator"]||i&&h[i],v=!qu&&y||l(i);if((n="Array"==t&&h.entries||y)&&(a=Lu(n.call(new e)))!==Object.prototype&&a.next&&(Lu(a)!==Gu&&(Fu?Fu(a,Gu):Du(a[$u])||Hu(a,$u,bu)),ju(a,c,!0)),Ku&&"values"==i&&y&&"values"!==y.name&&(Bu?Vu(h,"name","values"):(d=!0,v=function(){return Mu(y,this)})),i)if(f={values:l("values"),keys:o?v:l("keys"),entries:l("entries")},s)for(p in f)!qu&&!d&&p in h||Hu(h,p,f[p]);else Uu({target:t,proto:!0,forced:qu||d},f);return h[$u]!==v&&Hu(h,$u,v,{name:i}),zu[t]=v,f}A((wu=null==wu||nu(function(){var e={};return wu[Eu].call(e)!==e})?{}:wu)[Eu])||au(wu,Eu,function(){return this});var Ou={IteratorPrototype:wu,BUGGY_SAFARI_ITERATORS:x},Ru=hi.f,Iu=ci,Su=En("toStringTag"),Cu=Ou.IteratorPrototype,Nu=Fs,Au=un,ku=Tu,xu=li,Pu=function(){return this},Uu=R,Mu=o,Du=E,Lu=Zi,Fu=S,ju=Tu,Vu=vi,Hu=ro,zu=li,Ku=d.PROPER,Bu=d.CONFIGURABLE,Gu=Ou.IteratorPrototype,qu=Ou.BUGGY_SAFARI_ITERATORS,$u=En("iterator"),Yu=fn,lu=k,A=li,nu=jn,au=hi.f,x=_u,d=r,Xu=nu.set,Wu=nu.getterFor("Array Iterator"),Ou=x(Array,"Array",function(e,t){Xu(this,{type:"Array Iterator",target:Yu(e),index:0,kind:t})},function(){var e=Wu(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?{value:e.target=void 0,done:!0}:"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values"),li=A.Arguments=A.Array;if(lu("keys"),lu("values"),lu("entries"),d&&"values"!==li.name)try{au(li,"name",{value:"values"})}catch(Nw){}function Ju(e){var e=nc(e),t=ic.f;oc&&e&&!e[sc]&&t(e,sc,{configurable:!0,get:function(){return this}})}function Qu(e,t){if(ac(t,e))return e;throw uc("Incorrect invocation")}function Zu(){}function ec(e){if(!cc(e))return!1;try{return dc(Zu,pc,e),!0}catch(e){return!1}}function tc(e){if(!cc(e))return!1;switch(lc(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return vc||!!yc(hc,fc(e))}catch(e){return!0}}var rc=N,nu=(I||ro(Object.prototype,"toString",I?{}.toString:function(){return"[object "+rc(this)+"]"},{unsafe:!0}),"process"==cn(v.process)),nc=dn,ic=hi,oc=r,sc=En("species"),ac=y,uc=TypeError,x=e,A=w,cc=E,lc=N,fc=b,pc=[],dc=dn("Reflect","construct"),hc=/^\s*(?:class|function)\b/,yc=x(hc.exec),vc=!hc.exec(Zu);tc.sham=!0;function mc(e,t){var r,e=_c(e).constructor;if(void 0===e||null==(r=_c(e)[Oc]))return t;if(Ec(e=r))return e;throw bc(Tc(e)+" is not a constructor")}var gc,wc,lu=!dc||A(function(){var e;return ec(ec.call)||!ec(Object)||!ec(function(){e=!0})||e})?tc:ec,Ec=lu,Tc=hn,bc=TypeError,_c=_n,Oc=En("species"),d=Function.prototype,Rc=d.apply,Ic=d.call,au="object"==typeof Reflect&&Reflect.apply||(p?Ic.bind(Rc):function(){return Ic.apply(Rc,arguments)}),li=e([].slice),Sc=TypeError,I=/(?:ipad|iphone|ipod).*applewebkit/i.test(Fn),Cc=v,Nc=au,y=$s,Ac=E,kc=ci,N=w,xc=C,Pc=li,Uc=bn,x=I,A=nu,d=Cc.setImmediate,p=Cc.clearImmediate,Mc=Cc.process,Dc=Cc.Dispatch,Lc=Cc.Function,C=Cc.MessageChannel,Fc=Cc.String,jc=0,Vc={};try{gc=Cc.location}catch(Nw){}function Hc(e){return function(){Bc(e)}}function zc(e){Bc(e.data)}function Kc(e){Cc.postMessage(Fc(e),gc.protocol+"//"+gc.host)}var Bc=function(e){var t;kc(Vc,e)&&(t=Vc[e],delete Vc[e],t())};d&&p||(d=function(e){var t=arguments.length,r=1;if(t<r)throw Sc("Not enough arguments");var n=Ac(e)?e:Lc(e),i=Pc(arguments,1);return Vc[++jc]=function(){Nc(n,void 0,i)},wc(jc),jc},p=function(e){delete Vc[e]},A?wc=function(e){Mc.nextTick(Hc(e))}:Dc&&Dc.now?wc=function(e){Dc.now(Hc(e))}:C&&!x?(x=(A=new C).port2,A.port1.onmessage=zc,wc=y(x.postMessage,x)):Cc.addEventListener&&Ac(Cc.postMessage)&&!Cc.importScripts&&gc&&"file:"!==gc.protocol&&!N(Kc)?(wc=Kc,Cc.addEventListener("message",zc,!1)):wc="onreadystatechange"in Uc("script")?function(e){xc.appendChild(Uc("script")).onreadystatechange=function(){xc.removeChild(this),Bc(e)}}:function(e){setTimeout(Hc(e),0)});function Gc(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}function qc(){this.head=null,this.tail=null}function $c(e){var r,n;this.promise=new e(function(e,t){if(void 0!==r||void 0!==n)throw TypeError("Bad Promise constructor");r=e,n=t}),this.resolve=hl(r),this.reject=hl(n)}var Yc,Xc,Wc,Jc,Qc,Zc,el,C={set:d,clear:p},A=v,y=/ipad|iphone|ipod/i.test(Fn)&&void 0!==A.Pebble,x=/web0s(?!.*chrome)/i.test(Fn),N=v,d=$s,p=c.f,tl=C.set,A=I,c=y,I=x,rl=nu,y=N.MutationObserver||N.WebKitMutationObserver,x=N.document,nl=N.process,il=N.Promise,p=p(N,"queueMicrotask"),p=p&&p.value,I=(p||(Yc=function(){var e,t;for(rl&&(e=nl.domain)&&e.exit();Xc;){t=Xc.fn,Xc=Xc.next;try{t()}catch(e){throw Xc?Jc():Wc=void 0,e}}Wc=void 0,e&&e.enter()},Jc=A||rl||I||!y||!x?!c&&il&&il.resolve?((A=il.resolve(void 0)).constructor=il,el=d(A.then,A),function(){el(Yc)}):rl?function(){nl.nextTick(Yc)}:(tl=d(tl,N),function(){tl(Yc)}):(Qc=!0,Zc=x.createTextNode(""),new y(Yc).observe(Zc,{characterData:!0}),function(){Zc.data=Qc=!Qc})),p||function(e){e={fn:e,next:void 0};Wc&&(Wc.next=e),Xc||(Xc=e,Jc()),Wc=e}),ol=v,c=(qc.prototype={add:function(e){e={item:e,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}},qc),il=v.Promise,A="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,d=!A&&!nu&&"object"==typeof window&&"object"==typeof document,N=v,sl=il,x=E,y=Io,al=b,p=En,ul=d,cl=A,ll=Vn,fl=(sl&&sl.prototype,p("species")),pl=!1,dl=x(N.PromiseRejectionEvent),b={CONSTRUCTOR:y("Promise",function(){var e=al(sl),t=e!==String(sl);if(!t&&66===ll)return!0;if(!ll||ll<51||!/native code/.test(e)){var e=new sl(function(e){e(1)}),r=function(e){e(function(){},function(){})};if((e.constructor={})[fl]=r,!(pl=e.then(function(){})instanceof r))return!0}return!t&&(ul||cl)&&!dl}),REJECTION_EVENT:dl,SUBCLASSING:pl},d={},hl=yn;d.f=function(e){return new $c(e)};function yl(e,t){var r,n,i,o,s=t.value,a=1==t.state,u=a?e.ok:e.fail,c=e.resolve,l=e.reject,f=e.domain;try{u?(a||(2===t.rejection&&(o=t,Tl(Sl,El,function(){var e=o.facade;wl?jl.emit("rejectionHandled",e):Gl("rejectionhandled",e,o.value)})),t.rejection=1),!0===u?r=s:(f&&f.enter(),r=u(s),f&&(f.exit(),i=!0)),r===e.promise?l(Ll("Promise-chain cycle")):(n=Kl(r))?Tl(n,r,c,l):c(r)):l(s)}catch(e){f&&!i&&f.exit(),l(e)}}var vl,ml,gl,A=R,wl=nu,El=v,Tl=o,p=ro,x=S,N=Tu,y=Ju,bl=yn,_l=E,Ol=pn,Rl=Qu,Il=mc,Sl=C.set,Cl=I,Nl=Gc,Al=c,C=jn,I=il,c=d,P=b.CONSTRUCTOR,kl=b.REJECTION_EVENT,xl=b.SUBCLASSING,Pl=C.getterFor("Promise"),Ul=C.set,C=I&&I.prototype,Ml=I,Dl=C,Ll=El.TypeError,Fl=El.document,jl=El.process,Vl=c.f,Hl=Vl,zl=!!(Fl&&Fl.createEvent&&El.dispatchEvent),Kl=function(e){var t;return!(!Ol(e)||!_l(t=e.then))&&t},Bl=function(r,i){r.notified||(r.notified=!0,Cl(function(){for(var e,n,t=r.reactions;e=t.get();)yl(e,r);r.notified=!1,i&&!r.rejection&&(n=r,Tl(Sl,El,function(){var e,t=n.facade,r=n.value;if(ql(n)&&(e=Nl(function(){wl?jl.emit("unhandledRejection",r,t):Gl("unhandledrejection",t,r)}),n.rejection=wl||ql(n)?2:1,e.error))throw e.value}))}))},Gl=function(e,t,r){var n;zl?((n=Fl.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),El.dispatchEvent(n)):n={promise:t,reason:r},!kl&&(t=El["on"+e])?t(n):"unhandledrejection"===e&&function(e,t){var r=ol.console;r&&r.error&&(1==arguments.length?r.error(e):r.error(e,t))}("Unhandled promise rejection",r)},ql=function(e){return 1!==e.rejection&&!e.parent},$l=function(t,r,n){return function(e){t(r,e,n)}},Yl=function(e,t,r){e.done||(e.done=!0,(e=r?r:e).value=t,e.state=2,Bl(e,!0))},Xl=function(r,e,t){if(!r.done){r.done=!0,t&&(r=t);try{if(r.facade===e)throw Ll("Promise can't be resolved itself");var n=Kl(e);n?Cl(function(){var t={done:!1};try{Tl(n,e,$l(Xl,t,r),$l(Yl,t,r))}catch(e){Yl(t,e,r)}}):(r.value=e,r.state=1,Bl(r,!1))}catch(e){Yl({done:!1},e,r)}}};if(P&&(Dl=(Ml=function(e){Rl(this,Dl),bl(e),Tl(vl,this);var t=Pl(this);try{e($l(Xl,t),$l(Yl,t))}catch(e){Yl(t,e)}}).prototype,(vl=function(e){Ul(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new Al,rejection:!1,state:0,value:void 0})}).prototype=p(Dl,"then",function(e,t){var r=Pl(this),n=Vl(Il(this,Ml));return r.parent=!0,n.ok=!_l(e)||e,n.fail=_l(t)&&t,n.domain=wl?jl.domain:void 0,0==r.state?r.reactions.add(n):Cl(function(){yl(n,r)}),n.promise}),ml=function(){var e=new vl,t=Pl(e);this.promise=e,this.resolve=$l(Xl,t),this.reject=$l(Yl,t)},c.f=Vl=function(e){return e===Ml||void 0===e?new ml:Hl(e)},_l(I)&&C!==Object.prototype)){gl=C.then,xl||p(C,"then",function(e,t){var r=this;return new Ml(function(e,t){Tl(gl,r,e,t)}).then(e,t)},{unsafe:!0});try{delete C.constructor}catch(Nw){}x&&x(C,Dl)}A({global:!0,constructor:!0,wrap:!0,forced:P},{Promise:Ml}),N(Ml,"Promise",!1),y("Promise");var Wl=En("iterator"),Jl=!1;try{var Ql=0,Zl={next:function(){return{done:!!Ql++}},return:function(){Jl=!0}};Zl[Wl]=function(){return this},Array.from(Zl,function(){throw 2})}catch(Nw){}function ef(e,t){if(!t&&!Jl)return!1;var r=!1;try{var n={};n[Wl]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r}function tf(e,t){return wf(e),Ef(t)&&t.constructor===e?t:((0,(e=Tf.f(e)).resolve)(t),e.promise)}function rf(i){return function(e,t){var r,e=Vf(Hf(e)),t=jf(t),n=e.length;return t<0||n<=t?i?"":void 0:(r=Kf(e,t))<55296||56319<r||t+1===n||(n=Kf(e,t+1))<56320||57343<n?i?zf(e,t):r:i?Bf(e,t,t+2):n-56320+(r-55296<<10)+65536}}function nf(e,t){if(e){if(e[Zf]!==tp)try{Qf(e,Zf,tp)}catch(t){e[Zf]=tp}if(e[ep]||Qf(e,ep,t),Wf[t])for(var r in Jf)if(e[r]!==Jf[r])try{Qf(e,r,Jf[r])}catch(t){e[r]=Jf[r]}}}var of,sf=il,c=b.CONSTRUCTOR||!ef(function(e){sf.all(e).then(void 0,function(){})}),af=o,uf=yn,cf=d,lf=Gc,ff=Zs,I=(R({target:"Promise",stat:!0,forced:c},{all:function(e){var a=this,t=cf.f(a),u=t.resolve,c=t.reject,r=lf(function(){var n=uf(a.resolve),i=[],o=0,s=1;ff(e,function(e){var t=o++,r=!1;s++,af(n,a,e).then(function(e){r||(r=!0,i[t]=e,--s||u(i))},c)}),--s||u(i)});return r.error&&c(r.value),t.promise}}),R),xl=il,p=dn,x=E,C=ro,A=xl&&xl.prototype,pf=(I({target:"Promise",proto:!0,forced:b.CONSTRUCTOR,real:!0},{catch:function(e){return this.then(void 0,e)}}),x(xl)&&(P=p("Promise").prototype.catch,A.catch!==P&&C(A,"catch",P,{unsafe:!0})),o),df=yn,hf=d,yf=Gc,vf=Zs,mf=(R({target:"Promise",stat:!0,forced:c},{race:function(e){var r=this,n=hf.f(r),i=n.reject,t=yf(function(){var t=df(r.resolve);vf(e,function(e){pf(t,r,e).then(n.resolve,i)})});return t.error&&i(t.value),n.promise}}),o),gf=d,wf=(R({target:"Promise",stat:!0,forced:b.CONSTRUCTOR},{reject:function(e){var t=gf.f(this);return mf(t.reject,void 0,e),t.promise}}),_n),Ef=pn,Tf=d,N=R,y=b.CONSTRUCTOR,bf=tf,_f=(dn("Promise"),N({target:"Promise",stat:!0,forced:y},{resolve:function(e){return bf(this,e)}}),o),Of=yn,Rf=d,If=Gc,Sf=Zs,Cf=(R({target:"Promise",stat:!0},{allSettled:function(e){var a=this,t=Rf.f(a),u=t.resolve,r=t.reject,n=If(function(){var n=Of(a.resolve),i=[],o=0,s=1;Sf(e,function(e){var t=o++,r=!1;s++,_f(n,a,e).then(function(e){r||(r=!0,i[t]={status:"fulfilled",value:e},--s||u(i))},function(e){r||(r=!0,i[t]={status:"rejected",reason:e},--s||u(i))})}),--s||u(i)});return n.error&&r(n.value),t.promise}}),o),Nf=yn,Af=dn,kf=d,xf=Gc,Pf=Zs,Zl=(R({target:"Promise",stat:!0},{any:function(e){var u=this,c=Af("AggregateError"),t=kf.f(u),l=t.resolve,f=t.reject,r=xf(function(){var n=Nf(u.resolve),i=[],o=0,s=1,a=!1;Pf(e,function(e){var t=o++,r=!1;s++,Cf(n,u,e).then(function(e){r||a||(a=!0,l(e))},function(e){r||a||(r=!0,i[t]=e,--s||f(new c(i,"No one promise resolved")))})}),--s||f(new c(i,"No one promise resolved"))});return r.error&&f(r.value),t.promise}}),R),I=il,x=w,Uf=dn,Mf=E,Df=mc,Lf=tf,xl=ro,Ff=I&&I.prototype,C=(Zl({target:"Promise",proto:!0,real:!0,forced:!!I&&x(function(){Ff.finally.call({then:function(){}},function(){})})},{finally:function(t){var r=Df(this,Uf("Promise")),e=Mf(t);return this.then(e?function(e){return Lf(r,t()).then(function(){return e})}:t,e?function(e){return Lf(r,t()).then(function(){throw e})}:t)}}),Mf(I)&&(p=Uf("Promise").prototype.finally,Ff.finally!==p&&xl(Ff,"finally",p,{unsafe:!0})),e),jf=no,Vf=ea,Hf=ln,zf=C("".charAt),Kf=C("".charCodeAt),Bf=C("".slice),Gf=(rf(!1),rf(!0)),qf=ea,A=jn,P=_u,$f=A.set,Yf=A.getterFor("String Iterator"),c=(P(String,"String",function(e){$f(this,{type:"String Iterator",string:qf(e),index:0})},function(){var e=Yf(this),t=e.string,r=e.index;return r>=t.length?{value:void 0,done:!0}:(t=Gf(t,r),e.index+=t.length,{value:t,done:!1})}),v),b=(c.Promise,bn("span").classList),N=b&&b.constructor&&b.constructor.prototype,y=N===Object.prototype?void 0:N,Xf=v,Wf={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},il=y,Jf=Ou,Qf=vi,Zl=En,Zf=Zl("iterator"),ep=Zl("toStringTag"),tp=Jf.values;for(of in Wf)nf(Xf[of]&&Xf[of].prototype,of);nf(il,"DOMTokenList");function rp(e,t,r){(t=Sp(t))in e?Cp.f(e,t,Np(0,r)):e[t]=r}function np(e){if(9007199254740991<e)throw $p("Maximum allowed index exceeded");return e}function ip(e,t){return Yp(e=e)&&(r=e.constructor,(Xp(r)&&(r===Qp||Yp(r.prototype))||Wp(r)&&null===(r=r[Jp]))&&(r=void 0)),new(void 0===r?Qp:r)(0===t?0:t);var r}function op(t){return 51<=ed||!Zp(function(){var e=[];return(e.constructor={})[td]=function(){return{foo:1}},1!==e[t](Boolean).foo})}function sp(e,t){if(!delete e[t])throw fd("Cannot delete property "+ld(t)+" of "+ld(e))}function ap(p){var d=1==p,h=2==p,y=3==p,v=4==p,m=6==p,g=7==p,w=5==p||m;return function(e,t,r,n){for(var i,o,s=wd(e),a=gd(s),u=md(t,r),c=Ed(a),l=0,t=n||Td,f=d?t(e,c):h||g?t(e,0):void 0;l<c;l++)if((w||l in a)&&(o=u(i=a[l],l,s),p))if(d)f[l]=o;else if(o)switch(p){case 3:return!0;case 5:return i;case 6:return l;case 2:bd(f,i)}else switch(p){case 4:return!1;case 7:bd(f,i)}return m?-1:y||v?v:f}}function up(e,t){var r=[][e];return!!r&&_d(function(){r.call(null,t||function(){return 1},1)})}function cp(u){var c=1==u;return function(e,t,r){for(var n,i=Md(e),o=Ud(i),s=Pd(t,r),a=Dd(o);0<a--;)if(s(n=o[a],a,i))switch(u){case 0:return n;case 1:return a}return c?-1:void 0}}function lp(e,t,r,n,i,o,s,a){for(var u,c,l=i,f=0,p=!!s&&zd(s,a);f<n;)f in r&&(u=p?p(r[f],f,t):r[f],0<o&&jd(u)?(c=Vd(u),l=lp(e,t,u,c,l,o-1)-1):(Hd(l+1),e[l]=u),l++),f++;return l}function fp(c){return function(e,t,r,n){mh(t);var i=gh(e),o=wh(i),s=Eh(i),a=c?s-1:0,u=c?-1:1;if(r<2)for(;;){if(a in o){n=o[a],a+=u;break}if(a+=u,c?a<0:s<=a)throw Th("Reduce of empty array with no initial value")}for(;c?0<=a:a<s;a+=u)a in o&&(n=t(n,o[a],a,i));return n}}function pp(e,t,r){for(var n=jh(e),i=Fh(t,n),o=Fh(void 0===r?n:r,n),s=Hh(zh(o-i,0)),a=0;i<o;i++,a++)Vh(s,a,e[i]);return s.length=a,s}function dp(e,t){var r=e.length,n=Bh(r/2);if(r<8){for(var i,o,s=e,a=t,u=s.length,c=1;c<u;){for(i=s[o=c];o&&0<a(s[o-1],i);)s[o]=s[--o];o!==c++&&(s[o]=i)}return s}for(var l=e,f=dp(Kh(e,0,n),t),p=dp(Kh(e,n),t),d=t,h=f.length,y=p.length,v=0,m=0;v<h||m<y;)l[v+m]=v<h&&m<y?d(f[v],p[m])<=0?f[v++]:p[m++]:v<h?f[v++]:p[m++];return l}function hp(e){xy(e,Fy,{value:{objectID:"O"+jy++,weakData:{}}})}function yp(e,t,r){for(var n in t)Xy(e,n,t[n],r);return e}var vp,mp,gp,wp,Ep,Tp,bp,_p=d,Op=Gc,Rp=(R({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=_p.f(this),e=Op(e);return(e.error?t.reject:t.resolve)(e.value),t.promise}}),_n),Ip=Js,Sp=Tn,Cp=hi,Np=un,Ap=$s,kp=o,xp=gn,Pp=Ys,Up=lu,Mp=O,Dp=rp,Lp=Ws,Fp=Xs,jp=Array,Vp=(R({target:"Array",stat:!0,forced:!ef(function(e){Array.from(e)})},{from:function(e){var t=xp(e),e=Up(this),r=arguments.length,n=1<r?arguments[1]:void 0,i=void 0!==n;i&&(n=Ap(n,2<r?arguments[2]:void 0));var o,s,a,u,c,l,r=Fp(t),f=0;if(!r||this===jp&&Pp(r))for(o=Mp(t),s=e?new this(o):jp(o);f<o;f++)l=i?n(t[f],f):t[f],Dp(s,f,l);else for(c=(u=Lp(t,r)).next,s=e?new this:[];!(a=kp(c,u)).done;f++)l=i?function(e,t,r,n){try{return n?t(Rp(r)[0],r[1]):t(r)}catch(t){Ip(e,"throw",t)}}(u,n,[a.value,f],!0):a.value,Dp(s,f,l);return s.length=f,s}}),cn),x=Array.isArray||function(e){return"Array"==Vp(e)},Hp=(R({target:"Array",stat:!0},{isArray:x}),lu),zp=rp,Kp=Array,Bp=(R({target:"Array",stat:!0,forced:w(function(){function e(){}return!(Kp.of.call(e)instanceof e)})},{of:function(){for(var e=0,t=arguments.length,r=new(Hp(this)?this:Kp)(t);e<t;)zp(r,e,arguments[e++]);return r.length=t,r}}),gn),Gp=O,qp=no,I=k,$p=(R({target:"Array",proto:!0},{at:function(e){var t=Bp(this),r=Gp(t),e=qp(e),e=0<=e?e:r+e;return e<0||r<=e?void 0:t[e]}}),I("at"),TypeError),Yp=x,Xp=lu,Wp=pn,Jp=En("species"),Qp=Array,Zp=w,ed=Vn,td=En("species"),xl=R,p=w,rd=x,nd=pn,id=gn,od=O,sd=np,ad=rp,ud=ip,C=op,A=Vn,cd=En("isConcatSpreadable"),P=51<=A||!p(function(){var e=[];return e[cd]=!1,e.concat()[0]!==e}),b=C("concat"),ld=(xl({target:"Array",proto:!0,arity:1,forced:!P||!b},{concat:function(e){for(var t,r,n,i=id(this),o=ud(i,0),s=0,a=-1,u=arguments.length;a<u;a++)if(function(e){if(!nd(e))return!1;var t=e[cd];return void 0!==t?!!t:rd(e)}(n=-1===a?i:arguments[a]))for(r=od(n),sd(s+r),t=0;t<r;t++,s++)t in n&&ad(o,s,n[t]);else sd(s+1),ad(o,s++,n);return o.length=s,o}}),hn),fd=TypeError,pd=gn,dd=io,hd=O,yd=sp,vd=Math.min,N=k,md=(R({target:"Array",proto:!0},{copyWithin:[].copyWithin||function(e,t){var r=pd(this),n=hd(r),i=dd(e,n),o=dd(t,n),e=2<arguments.length?arguments[2]:void 0,s=vd((void 0===e?n:dd(e,n))-o,n-i),a=1;for(o<i&&i<o+s&&(a=-1,o+=s-1,i+=s-1);0<s--;)o in r?r[i]=r[o]:yd(r,i),i+=a,o+=a;return r}}),N("copyWithin"),$s),gd=On,wd=gn,Ed=O,Td=ip,bd=e([].push),y={forEach:ap(0),map:ap(1),filter:ap(2),some:ap(3),every:ap(4),find:ap(5),findIndex:ap(6),filterReject:ap(7)},_d=w,Od=y.every,Rd=(R({target:"Array",proto:!0,forced:!up("every")},{every:function(e){return Od(this,e,1<arguments.length?arguments[1]:void 0)}}),gn),Id=io,Sd=O,Ou=k,Cd=(R({target:"Array",proto:!0},{fill:function(e){for(var t=Rd(this),r=Sd(t),n=arguments.length,i=Id(1<n?arguments[1]:void 0,r),n=2<n?arguments[2]:void 0,o=void 0===n?r:Id(n,r);i<o;)t[i++]=e;return t}}),Ou("fill"),y.filter),vi=(R({target:"Array",proto:!0,forced:!op("filter")},{filter:function(e){return Cd(this,e,1<arguments.length?arguments[1]:void 0)}}),R),Nd=y.find,Zl=k,Ad=!0,il=("find"in[]&&Array(1).find(function(){Ad=!1}),vi({target:"Array",proto:!0,forced:Ad},{find:function(e){return Nd(this,e,1<arguments.length?arguments[1]:void 0)}}),Zl("find"),R),kd=y.findIndex,d=k,xd=!0,Pd=("findIndex"in[]&&Array(1).findIndex(function(){xd=!1}),il({target:"Array",proto:!0,forced:xd},{findIndex:function(e){return kd(this,e,1<arguments.length?arguments[1]:void 0)}}),d("findIndex"),$s),Ud=On,Md=gn,Dd=O,I={findLast:cp(0),findLastIndex:cp(1)},Ld=I.findLast,A=k,Fd=(R({target:"Array",proto:!0},{findLast:function(e){return Ld(this,e,1<arguments.length?arguments[1]:void 0)}}),A("findLast"),I.findLastIndex),p=k,jd=(R({target:"Array",proto:!0},{findLastIndex:function(e){return Fd(this,e,1<arguments.length?arguments[1]:void 0)}}),p("findLastIndex"),x),Vd=O,Hd=np,zd=$s,C=lp,Kd=C,Bd=gn,Gd=O,qd=no,$d=ip,Yd=(R({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=Bd(this),r=Gd(t),n=$d(t,0);return n.length=Kd(n,t,t,r,0,void 0===e?1:qd(e)),n}}),C),Xd=yn,Wd=gn,Jd=O,Qd=ip,Zd=(R({target:"Array",proto:!0},{flatMap:function(e){var t,r=Wd(this),n=Jd(r);return Xd(e),(t=Qd(r,0)).length=Yd(t,r,r,n,0,1,e,1<arguments.length?arguments[1]:void 0),t}}),y.forEach),xl=up("forEach")?[].forEach:function(e){return Zd(this,e,1<arguments.length?arguments[1]:void 0)},eh=(R({target:"Array",proto:!0,forced:[].forEach!=xl},{forEach:xl}),Oo.includes),P=k,b=(R({target:"Array",proto:!0,forced:w(function(){return!Array(1).includes()})},{includes:function(e){return eh(this,e,1<arguments.length?arguments[1]:void 0)}}),P("includes"),R),th=Oo.indexOf,N=up,rh=e([].indexOf),nh=!!rh&&1/rh([1],1,-0)<0,Ou=N("indexOf"),vi=(b({target:"Array",proto:!0,forced:nh||!Ou},{indexOf:function(e){var t=1<arguments.length?arguments[1]:void 0;return nh?rh(this,e,t)||0:th(this,e,t)}}),R),Zl=On,ih=fn,il=up,oh=e([].join),d=Zl!=Object,A=il("join",","),sh=(vi({target:"Array",proto:!0,forced:d||!A},{join:function(e){return oh(ih(this),void 0===e?",":e)}}),au),ah=fn,uh=no,ch=O,I=up,lh=Math.min,fh=[].lastIndexOf,ph=!!fh&&1/[1].lastIndexOf(1,-0)<0,p=I("lastIndexOf"),C=ph||!p?function(e){if(ph)return sh(fh,this,arguments)||0;var t=ah(this),r=ch(t),n=r-1;for((n=1<arguments.length?lh(n,uh(arguments[1])):n)<0&&(n=r+n);0<=n;n--)if(n in t&&t[n]===e)return n||0;return-1}:fh,dh=(R({target:"Array",proto:!0,forced:C!==[].lastIndexOf},{lastIndexOf:C}),y.map),xl=(R({target:"Array",proto:!0,forced:!op("map")},{map:function(e){return dh(this,e,1<arguments.length?arguments[1]:void 0)}}),R),hh=gn,yh=O,vh=np,P=w(function(){return 4294967297!==[].push.call({length:4294967296},1)}),Oo=!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}(),mh=(xl({target:"Array",proto:!0,arity:1,forced:P||Oo},{push:function(e){var t=hh(this),r=yh(t),n=arguments.length;vh(r+n);for(var i=0;i<n;i++)t[r]=arguments[i],r++;return t.length=r}}),yn),gh=gn,wh=On,Eh=O,Th=TypeError,N={left:fp(!1),right:fp(!0)},bh=N.left,b=Vn,Ou=nu,_h=(R({target:"Array",proto:!0,forced:!up("reduce")||!Ou&&79<b&&b<83},{reduce:function(e){var t=arguments.length;return bh(this,e,t,1<t?arguments[1]:void 0)}}),N.right),Zl=Vn,il=nu,vi=(R({target:"Array",proto:!0,forced:!up("reduceRight")||!il&&79<Zl&&Zl<83},{reduceRight:function(e){return _h(this,e,arguments.length,1<arguments.length?arguments[1]:void 0)}}),R),Oh=x,Rh=e([].reverse),d=[1,2],A=(vi({target:"Array",proto:!0,forced:String(d)===String(d.reverse())},{reverse:function(){return Oh(this)&&(this.length=this.length),Rh(this)}}),R),Ih=x,Sh=lu,Ch=pn,Nh=io,Ah=O,kh=fn,xh=rp,au=En,Ph=li,I=op("slice"),Uh=au("species"),Mh=Array,Dh=Math.max,Lh=(A({target:"Array",proto:!0,forced:!I},{slice:function(e,t){var r,n,i,o=kh(this),s=Ah(o),a=Nh(e,s),u=Nh(void 0===t?s:t,s);if(Ih(o)&&(r=o.constructor,(r=Sh(r)&&(r===Mh||Ih(r.prototype))||Ch(r)&&null===(r=r[Uh])?void 0:r)===Mh||void 0===r))return Ph(o,a,u);for(n=new(void 0===r?Mh:r)(Dh(u-a,0)),i=0;a<u;a++,i++)a in o&&xh(n,i,o[a]);return n.length=i,n}}),y.some),Fh=(R({target:"Array",proto:!0,forced:!up("some")},{some:function(e){return Lh(this,e,1<arguments.length?arguments[1]:void 0)}}),io),jh=O,Vh=rp,Hh=Array,zh=Math.max,Kh=pp,Bh=Math.floor,p=dp,C=Fn.match(/firefox\/(\d+)/i),xl=!!C&&+C[1],P=/MSIE|Trident/.test(Fn),Oo=Fn.match(/AppleWebKit\/(\d+)\./),Ou=!!Oo&&+Oo[1],b=R,N=e,Gh=yn,qh=gn,$h=O,Yh=sp,Xh=ea,nu=w,Wh=p,il=up,Jh=xl,Qh=P,Zh=Vn,ey=Ou,ty=[],ry=N(ty.sort),ny=N(ty.push),Zl=nu(function(){ty.sort(void 0)}),vi=nu(function(){ty.sort(null)}),d=il("sort"),iy=!nu(function(){if(Zh)return Zh<70;if(!(Jh&&3<Jh)){if(Qh)return!0;if(ey)return ey<603;for(var e,t,r,n="",i=65;i<76;i++){switch(e=String.fromCharCode(i),i){case 66:case 69:case 70:case 72:t=3;break;case 68:case 71:t=4;break;default:t=2}for(r=0;r<47;r++)ty.push({k:e+r,v:t})}for(ty.sort(function(e,t){return t.v-e.v}),r=0;r<ty.length;r++)e=ty[r].k.charAt(0),n.charAt(n.length-1)!==e&&(n+=e);return"DGBEFHACIJK"!==n}}),li=(b({target:"Array",proto:!0,forced:Zl||!vi||!d||!iy},{sort:function(e){void 0!==e&&Gh(e);var t=qh(this);if(iy)return void 0===e?ry(t):ry(t,e);for(var r,n,i=[],o=$h(t),s=0;s<o;s++)s in t&&ny(i,t[s]);for(Wh(i,(n=e,function(e,t){return void 0===t?-1:void 0===e?1:void 0!==n?+n(e,t)||0:Xh(e)>Xh(t)?1:-1})),r=i.length,s=0;s<r;)t[s]=i[s++];for(;s<o;)Yh(t,s++);return t}}),Ju("Array"),R),oy=gn,sy=io,ay=no,uy=O,cy=np,ly=ip,fy=rp,py=sp,au=op("splice"),dy=Math.max,hy=Math.min,A=(li({target:"Array",proto:!0,forced:!au},{splice:function(e,t){var r,n,i,o,s,a,u=oy(this),c=uy(u),l=sy(e,c),e=arguments.length;for(0===e?r=n=0:n=1===e?(r=0,c-l):(r=e-2,hy(dy(ay(t),0),c-l)),cy(c+r-n),i=ly(u,n),o=0;o<n;o++)(s=l+o)in u&&fy(i,o,u[s]);if(r<(i.length=n)){for(o=l;o<c-n;o++)a=o+r,(s=o+n)in u?u[a]=u[s]:py(u,a);for(o=c;c-n+r<o;o--)py(u,o-1)}else if(n<r)for(o=c-n;l<o;o--)a=o+r-1,(s=o+n-1)in u?u[a]=u[s]:py(u,a);for(o=0;o<r;o++)u[o+l]=arguments[o+2];return u.length=c-n+r,i}}),k("flat"),k("flatMap"),R),yy=gn,vy=O,my=sp,gy=np,I=1!==[].unshift(0),C=!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}}(),Fn=(A({target:"Array",proto:!0,arity:1,forced:I||C},{unshift:function(e){var t=yy(this),r=vy(t),n=arguments.length;if(n){gy(r+n);for(var i=r;i--;){var o=i+n;i in t?t[o]=t[i]:my(t,o)}for(var s=0;s<n;s++)t[s]=arguments[s]}return t.length=r+n}}),c.Array,{exports:{}}),Oo={},wy=cn,Ey=fn,Ty=T.f,by=pp,_y="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],p=(Oo.f=function(e){if(!_y||"Window"!=wy(e))return Ty(Ey(e));var t=e;try{return Ty(t)}catch(t){return by(_y)}},w(function(){var e;"function"==typeof ArrayBuffer&&(e=new ArrayBuffer(8),Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8}))})),xl=w,Oy=pn,Ry=cn,Iy=p,Sy=Object.isExtensible,P=xl(function(){Sy(1)})||Iy?function(e){return!!Oy(e)&&(!Iy||"ArrayBuffer"!=Ry(e))&&(!Sy||Sy(e))}:Sy,Vn=!w(function(){return Object.isExtensible(Object.preventExtensions({}))}),Cy=R,Ny=e,Ou=go,Ay=pn,ky=ci,xy=hi.f,Py=T,Uy=Oo,My=P,Dy=Vn,Ly=!1,Fy=wn("meta"),jy=0,Vy=Fn.exports={enable:function(){Vy.enable=function(){},Ly=!0;var i=Py.f,o=Ny([].splice),e={};e[Fy]=1,i(e).length&&(Py.f=function(e){for(var t=i(e),r=0,n=t.length;r<n;r++)if(t[r]===Fy){o(t,r,1);break}return t},Cy({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Uy.f}))},fastKey:function(e,t){if(!Ay(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!ky(e,Fy)){if(!My(e))return"F";if(!t)return"E";hp(e)}return e[Fy].objectID},getWeakData:function(e,t){if(!ky(e,Fy)){if(!My(e))return!0;if(!t)return!1;hp(e)}return e[Fy].weakData},onFreeze:function(e){return Dy&&Ly&&My(e)&&!ky(e,Fy)&&hp(e),e}},Hy=(Ou[Fy]=!0,E),zy=pn,Ky=S,N=R,il=v,By=e,nu=Io,Gy=ro,b=Fn.exports,qy=Zs,$y=Qu,Zl=E,Yy=pn,vi=w,d=ef,li=Tu,Xy=ro,Wy=hi.f,Jy=Fs,Qy=yp,Zy=$s,ev=Qu,tv=Zs,rv=_u,nv=Ju,iv=r,ov=Fn.exports.fastKey,sv=jn.set,av=jn.getterFor;function uv(e){var r=By(Tp[e]);Gy(Tp,e,"add"==e?function(e){return r(this,0===e?0:e),this}:"delete"==e?function(e){return!(gp&&!Yy(e))&&r(this,0===e?0:e)}:"get"==e?function(e){return gp&&!Yy(e)?void 0:r(this,0===e?0:e)}:"has"==e?function(e){return!(gp&&!Yy(e))&&r(this,0===e?0:e)}:function(e,t){return r(this,0===e?0:e,t),this})}au=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},A={getConstructor:function(e,r,n,i){function o(e,t,r){var n,i=u(e),o=s(e,t);return o?o.value=r:(i.last=o={index:n=ov(t,!0),key:t,value:r,previous:t=i.last,next:void 0,removed:!1},i.first||(i.first=o),t&&(t.next=o),iv?i.size++:e.size++,"F"!==n&&(i.index[n]=o)),e}function s(e,t){var r,e=u(e),n=ov(t);if("F"!==n)return e.index[n];for(r=e.first;r;r=r.next)if(r.key==t)return r}var e=e(function(e,t){ev(e,a),sv(e,{type:r,index:Jy(null),first:void 0,last:void 0,size:0}),iv||(e.size=0),null!=t&&tv(t,e[i],{that:e,AS_ENTRIES:n})}),a=e.prototype,u=av(r);return Qy(a,{clear:function(){for(var e=u(this),t=e.index,r=e.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete t[r.index],r=r.next;e.first=e.last=void 0,iv?e.size=0:this.size=0},delete:function(e){var t,r,n=u(this),e=s(this,e);return e&&(t=e.next,r=e.previous,delete n.index[e.index],e.removed=!0,r&&(r.next=t),t&&(t.previous=r),n.first==e&&(n.first=t),n.last==e&&(n.last=r),iv?n.size--:this.size--),!!e},forEach:function(e){for(var t,r=u(this),n=Zy(e,1<arguments.length?arguments[1]:void 0);t=t?t.next:r.first;)for(n(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!s(this,e)}}),Qy(a,n?{get:function(e){e=s(this,e);return e&&e.value},set:function(e,t){return o(this,0===e?0:e,t)}}:{add:function(e){return o(this,e=0===e?0:e,e)}}),iv&&Wy(a,"size",{get:function(){return u(this).size}}),e},setStrong:function(e,t,r){var n=t+" Iterator",i=av(t),o=av(n);rv(e,t,function(e,t){sv(this,{type:n,target:e,state:i(e),kind:t,last:void 0})},function(){for(var e=o(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?"keys"==t?{value:r.key,done:!1}:"values"==t?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:{value:e.target=void 0,done:!0}},r?"entries":"values",!r,!0),nv(t)}},mp=-1!==(I="Map").indexOf("Map"),gp=-1!==I.indexOf("Weak"),wp=mp?"set":"add",Ep=il.Map,Tp=Ep&&Ep.prototype,C={},nu(I,!Zl(bp=Ep)||!(gp||Tp.forEach&&!vi(function(){(new Ep).entries().next()})))?(bp=A.getConstructor(au,I,mp,wp),b.enable()):nu(I,!0)&&(c=(vp=new bp)[wp](gp?{}:-0,1)!=vp,p=vi(function(){vp.has(1)}),xl=d(function(e){new Ep(e)}),go=!gp&&vi(function(){for(var e=new Ep,t=5;t--;)e[wp](t,t);return!e.has(-0)}),xl||(((bp=au(function(e,t){$y(e,Tp);r=new Ep,e=e,n=bp,Ky&&Hy(e=e.constructor)&&e!==n&&zy(e=e.prototype)&&e!==n.prototype&&Ky(r,e);var r,n=r;return null!=t&&qy(t,n[wp],{that:n,AS_ENTRIES:mp}),n})).prototype=Tp).constructor=bp),(p||go)&&(uv("delete"),uv("has"),mp&&uv("get")),(go||c)&&uv(wp),gp&&Tp.clear&&delete Tp.clear),C.Map=bp,N({global:!0,constructor:!0,forced:bp!=Ep},C),li(bp,I),gp||A.setStrong(bp,I,mp);function cv(e,t){for(var r=0,n=dv(t),i=new e(n);r<n;)i[r]=t[r++];return i}function lv(e,t,r,n){for(var i,o,s,a=vv(e),u=yv(a),c=hv(t,r),l=wv(null),f=gv(u),p=0;p<f;p++)s=u[p],(o=mv(c(s,p,a)))in l?bv(l[o],s):l[o]=[s];if(n&&(i=n(a))!==Tv)for(o in l)l[o]=Ev(i,l[o]);return l}function fv(e){for(var t,r,n=Sv(this),i=Iv(n),o=Rv(e,1<arguments.length?arguments[1]:void 0),s=new Nv,a=Cv(i),u=0;u<a;u++)t=o(r=i[u],u,n),kv(s,t)?Pv(Av(s,t),r):xv(s,t,[r]);return s}function pv(e){return Lv[e].prototype}var dv=O,hv=$s,yv=On,vv=gn,mv=Tn,gv=O,wv=Fs,Ev=cv,Tv=Array,bv=e([].push),_v=lv,ci=k,Ov=(R({target:"Array",proto:!0},{group:function(e){return _v(this,e,1<arguments.length?arguments[1]:void 0)}}),ci("group"),lv),T=k,Rv=(R({target:"Array",proto:!0,forced:!up("groupBy")},{groupBy:function(e){return Ov(this,e,1<arguments.length?arguments[1]:void 0)}}),T("groupBy"),$s),Oo=e,Iv=On,Sv=gn,Cv=O,Nv=dn("Map"),P=Nv.prototype,Av=Oo(P.get),kv=Oo(P.has),xv=Oo(P.set),Pv=Oo([].push),Vn=k,Ou=fv,S=(R({target:"Array",proto:!0,name:"groupToMap",forced:!up("groupByToMap")},{groupByToMap:Ou}),Vn("groupByToMap"),k),Uv=(R({target:"Array",proto:!0},{groupToMap:fv}),S("groupToMap"),O),Mv=fn,Io=k,Dv=Array,Lv=(R({target:"Array",proto:!0},{toReversed:function(){for(var e=Mv(this),t=Dv,r=Uv(e),n=new t(r),i=0;i<r;i++)n[i]=e[r-i-1];return n}}),Io("toReversed"),v),Fn=R,Fv=yn,jv=fn,Vv=cv,il=k,Hv=Array,zv=e(pv("Array").sort),nu=(Fn({target:"Array",proto:!0},{toSorted:function(e){void 0!==e&&Fv(e);var t=jv(this),t=Vv(Hv,t);return zv(t,e)}}),il("toSorted"),R),d=k,Kv=np,Bv=O,Gv=io,qv=fn,$v=no,Yv=Array,Xv=Math.max,Wv=Math.min,Jv=(nu({target:"Array",proto:!0},{toSpliced:function(e,t){var r,n,i,o,s=qv(this),a=Bv(s),u=Gv(e,a),e=arguments.length,c=0;for(0===e?r=n=0:n=1===e?(r=0,a-u):(r=e-2,Wv(Xv($v(t),0),a-u)),i=Kv(a+r-n),o=Yv(i);c<u;c++)o[c]=s[c];for(;c<u+r;c++)o[c]=arguments[c-u+2];for(;c<i;c++)o[c]=s[c+n-r];return o}}),d("toSpliced"),O),Qv=no,Zv=RangeError,em=fn,tm=Array;R({target:"Array",proto:!0},{with:function(e,t){var r=em(this),n=tm,i=t,o=Jv(r),s=(e=Qv(e))<0?o+e:e;if(o<=s||s<0)throw Zv("Incorrect index");for(var a=new n(o),u=0;u<o;u++)a[u]=u===s?i:r[u];return a}});vi=v,xl=ni,au=E,p=Zi,go=ro,c=En("asyncIterator"),N=vi.AsyncIterator,C=xl.AsyncIteratorPrototype;if(C)bg=C;else if(au(N))bg=N.prototype;else if(xl.USE_FUNCTION_CONSTRUCTOR||vi.USE_FUNCTION_CONSTRUCTOR)try{Tg=p(p(p(Function("return async function*(){}()")()))),p(Tg)===Object.prototype&&(bg=Tg)}catch(Nw){}au((bg=bg||{})[c])||go(bg,c,function(){return this});function rm(e,t,r){var n=e.done;fm.resolve(e.value).then(function(e){t({done:n,value:e})},r)}function nm(e){pm(this,{type:"AsyncFromSyncIterator",iterator:cm(e),next:e.next})}function im(e,t,r,n){try{var i=Om(e,"return");if(i)return _m("Promise").resolve(bm(i,e)).then(function(){t(r)},function(e){n(e)})}catch(e){return n(e)}t(r)}function om(e){var p=0==e,d=1==e,h=2==e,y=3==e;return function(e,s,a){var e={iterator:e,next:Em(Tm(e).next)},u=Nm("Promise"),c=e.iterator,t=e.next,l=0,f=void 0!==s;return!f&&p||Im(s),new u(function(r,n){var i=function(e){im(c,n,e,n)},o=function(){try{if(p&&f)try{Cm(l)}catch(e){i(e)}u.resolve(Sm(Rm(t,c))).then(function(e){try{if(Sm(e).done)p?(a.length=l,r(a)):r(!y&&(h||void 0));else{var t=e.value;try{f?u.resolve(p?s(t,l):s(t)).then(function(e){if(d)o();else if(h)e?o():im(c,r,!1,n);else if(p)try{a[l++]=e,o()}catch(e){i(e)}else e?im(c,r,y||t,n):o()},i):(a[l++]=t,o())}catch(e){i(e)}}}catch(e){n(e)}},n)}catch(e){n(e)}};o()})}}function sm(e,t){if(!Bm||!Km(e)||!Bm(e))return!1;for(var r,n=0,i=e.length;n<i;)if(!("string"==typeof(r=e[n++])||t&&void 0===r))return!1;return 0!==i}function am(e,t,r){r.get&&Gm(r.get,t,{getter:!0}),r.set&&Gm(r.set,t,{setter:!0}),qm.f(e,t,r)}var um=o,cm=_n,li=Fs,lm=vn,A=yp,I=jn,ci=bg,fm=dn("Promise"),pm=I.set,dm=I.getterFor("AsyncFromSyncIterator"),T=(nm.prototype=A(li(ci),{next:function(){var n=dm(this);return new fm(function(e,t){var r=cm(um(n.next,n.iterator));rm(r,e,t)})},return:function(){var n=dm(this).iterator;return new fm(function(e,t){var r=lm(n,"return");if(void 0===r)return e({done:!0,value:void 0});r=cm(um(r,n));rm(r,e,t)})}}),nm),hm=o,ym=T,vm=_n,mm=Ws,gm=vn,wm=En("asyncIterator"),Em=yn,Tm=_n,bm=o,_m=dn,Om=vn,Rm=o,Im=yn,Sm=_n,Cm=np,Nm=dn,On={toArray:om(0),forEach:om(1),every:om(2),some:om(3),find:om(4)},Am=$s,km=gn,xm=lu,Pm=Ws,Um=Xs,Mm=vn,P=pv,Dm=dn,Lm=T,Fm=On.toArray,jm=En("asyncIterator"),Vm=P("Array").values,Hm=(R({target:"Array",stat:!0,forced:!0},{fromAsync:function(o){var s=this,e=arguments.length,a=1<e?arguments[1]:void 0,u=2<e?arguments[2]:void 0;return new(Dm("Promise"))(function(e){var t=km(o),r=(void 0!==a&&(a=Am(a,u)),Mm(t,jm)),n=r?void 0:Um(t)||Vm,i=xm(s)?new s:[],r=r?function(e,t){t=arguments.length<2?gm(e,wm):t;return t?vm(hm(t,e)):new ym(mm(e))}(t,r):new Lm(Pm(t,n));e(Fm(r,a,i))})}}),y.filterReject),Oo=k,zm=(R({target:"Array",proto:!0,forced:!0},{filterOut:function(e){return Hm(this,e,1<arguments.length?arguments[1]:void 0)}}),Oo("filterOut"),y.filterReject),Ou=k,Vn=(R({target:"Array",proto:!0,forced:!0},{filterReject:function(e){return zm(this,e,1<arguments.length?arguments[1]:void 0)}}),Ou("filterReject"),R),Km=x,Bm=Object.isFrozen,Gm=(Vn({target:"Array",stat:!0,sham:!0,forced:!0},{isTemplateObject:function(e){if(!sm(e,!0))return!1;var t=e.raw;return t.length===e.length&&sm(t,!1)}}),_.exports),qm=hi,S=k,$m=gn,Ym=O,Io=(r&&(am(Array.prototype,"lastItem",{configurable:!0,get:function(){var e=$m(this),t=Ym(e);return 0==t?void 0:e[t-1]},set:function(e){var t=$m(this),r=Ym(t);return t[0==r?0:r-1]=e}}),S("lastItem")),k),Xm=gn,Wm=O,Fn=(r&&(am(Array.prototype,"lastIndex",{configurable:!0,get:function(){var e=Xm(this),e=Wm(e);return 0==e?0:e-1}}),Io("lastIndex")),e),Jm=yn,Qm=O,Zm=gn,eg=ip,tg=dn("Map"),il=tg.prototype,rg=Fn(il.forEach),ng=Fn(il.has),ig=Fn(il.set),og=Fn([].push),nu=k;R({target:"Array",proto:!0,forced:!0},{uniqueBy:function(e){for(var t,r,n=Zm(this),i=Qm(n),o=eg(n,0),s=new tg,a=null!=e?Jm(e):function(e){return e},u=0;u<i;u++)r=a(t=n[u]),ng(s,r)||ig(s,r,t);return rg(s,function(e){og(o,e)}),o}}),nu("uniqueBy");function sg(e,t,r,n){this.valueId=e,this.value=t,this.reason=r,this.properties=n}B0.prototype.start=function(){this.timeoutId=setTimeout(this.callback,this.timeout)},B0.prototype.refresh=function(){this.stop(),this.start()},B0.prototype.stop=function(){this.timeoutId&&clearTimeout(this.timeoutId)};var ag,ug=B0,cg=(K0.prototype.start=function(){this.started=!0},K0.prototype.stop=function(){this.started=!1;var e=this.sink(this.buffer,!0);return this.buffer=[],this.timer.stop(),e},K0.prototype.enqueue=function(e){this.started&&(0===this.buffer.length&&this.timer.refresh(),this.buffer.push(e),this.buffer.length>=this.maxQueueSize&&this.flush())},K0.prototype.flush=function(){this.sink(this.buffer),this.buffer=[],this.timer.stop()},K0.prototype.close=function(){this.stop()},K0),lg=(z0.prototype.isClientError=function(e){return!!(e&&400<=e.statusCode&&e.statusCode<500)},z0.prototype.drainRepository=function(o){var e=this;return new Promise(function(i){return le(e,void 0,void 0,function(){var t,r,n=this;return fe(this,function(e){switch(e.label){case 0:return[4,null==(r=this.repository)?void 0:r.read()];case 1:return(t=e.sent())&&0!==t.length?o?this.eventDispatcher.dispatchXhrOrBeacon(t,function(){var e;i(null==(e=n.repository)?void 0:e.delete(t))},function(e){n.isClientError(e)?i(null==(e=n.repository)?void 0:e.delete(t)):i()}):this.eventDispatcher.dispatch(t,function(){var e;i(null==(e=n.repository)?void 0:e.delete(t))},function(e){n.isClientError(e)?i(null==(e=n.repository)?void 0:e.delete(t)):i()}):i(),[2]}})})})},z0.prototype.drainQueue=function(i,o){var e=this,s=i.map(function(e){return e.toDto()});return new Promise(function(n){return le(e,void 0,void 0,function(){var t,r=this;return fe(this,function(e){return 0===i.length?n():o?(null!=(t=this.repository)&&t.add(s),this.eventDispatcher.dispatchXhrOrBeacon(i,function(){var e;n(null==(e=r.repository)?void 0:e.delete(s))},function(e){r.isClientError(e)?n(null==(e=r.repository)?void 0:e.delete(s)):n()})):this.eventDispatcher.dispatch(i,function(){n()},function(e){r.isClientError(e)?n():n(null==(e=r.repository)?void 0:e.add(s))}),[2]})})})},z0.prototype.process=function(e){this.queue.enqueue(e)},z0.prototype.start=function(){return le(this,void 0,void 0,function(){return fe(this,function(e){return this.queue.start(),[2]})})},z0.prototype.stop=function(){try{this.queue.close()}catch(e){}return Promise.resolve()},z0.prototype.flush=function(){this.queue.flush()},z0.prototype.close=function(){this.stop()},z0),fg=(H0.isSessionEvent=function(e){return!!mr.isTrack(e)&&(e.event.key===H0.SESSION_START_EVENT_NAME||e.event.key===H0.SESSION_END_EVENT_NAME)},H0.prototype.onSessionStarted=function(e,t,r){this.track(H0.SESSION_START_EVENT_NAME,e,t,r)},H0.prototype.onSessionEnded=function(e,t,r){this.track(H0.SESSION_END_EVENT_NAME,e,t,r)},H0.prototype.track=function(e,t,r,n){e={key:e,properties:{sessionId:t}},r=this.hackleUserResolver.resolve(r),r=this.decorateSession(r,t);this.hackleInternalClient._track(e,r,n)},H0.prototype.decorateSession=function(e,t){t=(new Je).add(We.SESSION,t).addIdentifiers(e.identifiers).build();return h(h({},e),{identifiers:t})},H0.SESSION_START_EVENT_NAME="$session_start",H0.SESSION_END_EVENT_NAME="$session_end",H0),pg=(V0.prototype.process=function(e){var t;fg.isSessionEvent(e)||this.sessionManager.startNewSessionIfNeeded(this.userManager.currentUser,e.timestamp),this.exposureEventDedupDeterminer.isDedupTarget(e)||(e=e,t=null===(t=this.sessionManager).currentSessionId||e.user.identifiers[We.SESSION]?e:e.copyWithUser(h(h({},e.user),{identifiers:h(h({},e.user.identifiers),((e={})[We.SESSION]=t.sessionId,e))})),this.delegate.process(t))},V0.prototype.close=function(){this.delegate.close()},V0.prototype.flush=function(){this.delegate.flush()},V0.prototype.start=function(){return this.delegate.start()},V0),dg=(j0.prototype.isDedupTarget=function(e){if(-1===this.exposureEventDedupIntervalMillis)return!1;if(!mr.isExposure(e))return!1;Ve.isEquals(e.user.identifiers,null==(t=this.currentUser)?void 0:t.identifiers)||(this.currentUser=e.user,this.cache=new Map);var t=[e.experiment.id,e.variationId,e.variationKey,e.decisionReason].join("-"),e=(new Date).getTime(),r=this.cache.get(t);return void 0!==r&&e-r<=this.exposureEventDedupIntervalMillis||(this.cache.set(t,e),!1)},j0),hg=(F0.toEvent=function(e){var t;return{key:F0.EVENT_KEY,properties:{level:F0.LEVEL_ERROR,type:e.name,message:null!=(t=e.message)?t:"",$stacktrace:F0._stacktrace(e)}}},F0._stacktrace=function(e){return a.isNullOrUndefined(e.stack)?"":e.stack.split("\n").slice(0,F0.STACK_TRACK_LIMIT).join("\n")},F0.EVENT_KEY="$trace",F0.LEVEL_ERROR="error",F0.STACK_TRACK_LIMIT=30,F0),yg=de.log,vg=(L0.prototype._experiment=function(e,t,r){if(!e)return yg.error("experimentKey must not be empty"),Ge.of(r,u.INVALID_INPUT);var n=this.workspaceFetcher.get();if(!n)return yg.warn("SDK not ready."),Ge.of(r,u.SDK_NOT_READY);e=n.getExperimentOrNull(e);if(!e)return yg.warn("Experiment does not exist."),Ge.of(r,u.EXPERIMENT_NOT_FOUND);n=this.evaluator.evaluate(n,e,t,r),this.eventProcessor.process(mr.exposure(e,t,n)),e=null!=(r=n.config)?r:new $e;return Ge.of(n.variationKey,n.reason,e)},L0.prototype._experiments=function(n){var i=this,o=new Ht(function(e,t){return e.id===t.id}),s=this.workspaceFetcher.get();return s&&s.getExperiments().forEach(function(e){var t=i.evaluator.evaluate(s,e,n,"A"),r=null!=(r=t.config)?r:new $e,t=Ge.of(t.variationKey,t.reason,r);o.add(e,t)}),o},L0.prototype._featureFlag=function(e,t){if(!e)return yg.error("featureKey must not be empty"),qe.off(u.INVALID_INPUT);var r=this.workspaceFetcher.get();if(!r)return yg.warn("SDK not ready."),qe.off(u.SDK_NOT_READY);var e=r.getFeatureFlagOrNull(e);if(!e)return yg.warn("FeatureFlag does not exist."),qe.off(u.FEATURE_FLAG_NOT_FOUND);r=this.evaluator.evaluate(r,e,t,"A"),this.eventProcessor.process(mr.exposure(e,t,r)),t=null!=(e=r.config)?e:new $e;return"A"===r.variationKey?qe.off(r.reason,t):qe.on(r.reason,t)},L0.prototype._featureFlags=function(n){var i=this,o=new Ht(function(e,t){return e.id===t.id}),s=this.workspaceFetcher.get();return s&&s.getFeatureFlags().forEach(function(e){var t=i.evaluator.evaluate(s,e,n,"A"),r=null!=(r=t.config)?r:new $e,t="A"===t.variationKey?qe.off(t.reason,r):qe.on(t.reason,r);o.add(e,t)}),o},L0.prototype._track=function(e,t,r){var n;void 0===r&&(r=(new Date).getTime()),e?"object"==typeof e?"object"!=typeof e||e.key&&"string"==typeof e.key?(n=(null==(n=this.workspaceFetcher.get())?void 0:n.getEventTypeOrNull(e.key))||new Re(0,e.key),this.eventProcessor.process(mr.track(n,e,t,r))):yg.warn("Event key must be not null. or event key must be string type."):yg.warn("Event must be event type."):yg.warn("event must not be null.")},L0.prototype._trackException=function(e,t){this.errorDedupDeterminer.isDedupTarget(e)||(e=hg.toEvent(e),this._flush(),this._track(e,t),this._flush())},L0.prototype._flush=function(){this.eventProcessor.flush()},L0.prototype._remoteConfig=function(e,t,r,n){var i=this.workspaceFetcher.get();if(a.isNullOrUndefined(i))return yg.warn("SDK not ready."),Be.of(n,u.SDK_NOT_READY);e=i.getRemoteConfigParameterOrNull(e);if(a.isNullOrUndefined(e))return yg.warn("Remote config parameter does not exist."),Be.of(n,u.REMOTE_CONFIG_PARAMETER_NOT_FOUND);i=this.evaluator.remoteConfigEvaluate(i,e,t,r,n);return this.eventProcessor.process(mr.remoteConfig(e,t,i)),Be.of(i.value,i.reason)},L0.prototype._onReady=function(e,t){this._onInitialized({timeout:t=void 0===t?3e3:t}).then(function(){return e()})},L0.prototype._onInitialized=function(e){var t,e=e.timeout,e=void 0===e?3e3:e,r=(yg.debug("Start HackleClient initializing"),new Promise(function(e){t=e})),n=setTimeout(function(){t({success:!1})},e);return this.readyPromise.then(function(){clearTimeout(n),t({success:!0})},function(e){clearTimeout(n),t({success:!1,error:e})}),Promise.race([this.readyPromise,r]).then(function(e){return e.success?yg.debug("HackleClient onInitialized Success"):e.error instanceof Error?yg.error("HackleClient onInitialized Failed. ".concat(e.error.message)):yg.error("HackleClient onInitialized Failed. ".concat(e.error)),Promise.resolve({success:e.success})})},L0.prototype._close=function(){this.workspaceFetcher.close(),this.eventProcessor.close()},L0),mg=(D0.prototype.isDedupTarget=function(e){return!!this._isSameError(e,this.previous)||(this.previous=e,!1)},D0.prototype._isSameError=function(e,t){return!a.isNullOrUndefined(t)&&e.name===t.name&&e.message===t.message&&e.stack===t.stack},D0),gg=(M0.of=function(e,t,r,n){t=t._getVariationByKeyOrNull(r);return a.isNotNullOrUndefined(t)?M0.withVariation(e,t,n):new M0(void 0,r,n,void 0)},M0.withVariation=function(e,t,r){e=this.config(e,t);return new M0(t.id,t.key,r,e)},M0.config=function(e,t){if(!a.isNullOrUndefined(t.parameterConfigurationId))return a.requiredNotNullOrUndefined(e.getParameterConfigurationOrNull(t.parameterConfigurationId),function(){return"ParameterConfiguration[".concat(t.parameterConfigurationId,"]")})},M0),wg=(U0.prototype.evaluate=function(e,t,r,n){return this.evaluationFlowFactory.getFlow(t.type).evaluate(e,t,r,n)},U0.prototype.remoteConfigEvaluate=function(e,t,r,n,i){var o={};if(o.requestValueType=n,o.requestDefaultValue=i,a.isNullOrUndefined(r.identifiers[t.identifierType]))return new sg(void 0,i,u.IDENTIFIER_NOT_FOUND,o);e=this.evaluationFlowFactory.getRemoteConfigParameterTargetRuleDeterminer().determineTargetRuleOrNull(e,t,r);return e?(o.targetRuleKey=e.key,o.targetRuleName=e.name,this.getRemoteConfigEvaluationWithTypeCheck(e.value,u.TARGET_RULE_MATCH,n,i,o)):this.getRemoteConfigEvaluationWithTypeCheck(t.defaultValue,u.DEFAULT_RULE,n,i,o)},U0.prototype.getRemoteConfigEvaluationWithTypeCheck=function(e,t,r,n,i){return"UNKNOWN"===r||"NULL"!==r&&typeof n!=typeof e.rawValue?(i.returnValue=n,new sg(void 0,n,u.TYPE_MISMATCH,i)):(i.returnValue=e.rawValue,new sg(e.id,e.rawValue,t,i))},U0),Eg=(P0.prototype.matches=function(e,t,r){var n=this;return e.conditions.every(function(e){return n._matches(e,t,r)})},P0.prototype._matches=function(e,t,r){return this.conditionMatcherFactory.getMatcher(e.key.type).matches(e,t,r)},P0),d=(x0.prototype.matches=function(e,t){var r=this.valueMatcherFactory.getMatcher(t.valueType),n=this.operatorMatcherFactory.getMatcher(t.operator),e=this.userValueMatches(e,t,r,n);return this.typeMatches(t.type,e)},x0.prototype.userValueMatches=function(e,t,r,n){return Array.isArray(e)?this.arrayMatches(e,t,r,n):this.singleMatches(e,t,r,n)},x0.prototype.singleMatches=function(t,e,r,n){return e.values.some(function(e){return r.matches(n,t,e)})},x0.prototype.arrayMatches=function(e,t,r,n){var i=this;return e.some(function(e){return i.singleMatches(e,t,r,n)})},x0.prototype.typeMatches=function(e,t){switch(e){case"MATCH":return t;case"NOT_MATCH":return!t}},x0),v=(k0.prototype.booleanMatches=function(e,t){return e===t},k0.prototype.numberMatches=function(e,t){return e===t},k0.prototype.stringMatches=function(e,t){return e===t},k0.prototype.versionMatches=function(e,t){return e.isEqualTo(t)},k0),ni=(A0.prototype.booleanMatches=function(e,t){return!1},A0.prototype.numberMatches=function(e,t){return!1},A0.prototype.stringMatches=function(e,t){return e.includes(t)},A0.prototype.versionMatches=function(e,t){return!1},A0),Zi=(N0.prototype.booleanMatches=function(e,t){return!1},N0.prototype.numberMatches=function(e,t){return!1},N0.prototype.stringMatches=function(e,t){return e.startsWith(t)},N0.prototype.versionMatches=function(e,t){return!1},N0),C=(C0.prototype.booleanMatches=function(e,t){return!1},C0.prototype.numberMatches=function(e,t){return!1},C0.prototype.stringMatches=function(e,t){return e.endsWith(t)},C0.prototype.versionMatches=function(e,t){return!1},C0),N=(S0.prototype.booleanMatches=function(e,t){return!1},S0.prototype.numberMatches=function(e,t){return t<e},S0.prototype.stringMatches=function(e,t){return t<e},S0.prototype.versionMatches=function(e,t){return e.isGreaterThan(t)},S0),xl=(I0.prototype.booleanMatches=function(e,t){return!1},I0.prototype.numberMatches=function(e,t){return t<=e},I0.prototype.stringMatches=function(e,t){return t<=e},I0.prototype.versionMatches=function(e,t){return e.isGreaterThanOrEqualTo(t)},I0),vi=(R0.prototype.booleanMatches=function(e,t){return!1},R0.prototype.numberMatches=function(e,t){return e<t},R0.prototype.stringMatches=function(e,t){return e<t},R0.prototype.versionMatches=function(e,t){return e.isLessThan(t)},R0),p=(O0.prototype.booleanMatches=function(e,t){return!1},O0.prototype.numberMatches=function(e,t){return e<=t},O0.prototype.stringMatches=function(e,t){return e<=t},O0.prototype.versionMatches=function(e,t){return e.isLessThanOrEqualTo(t)},O0),Tg=(_0.prototype.getMatcher=function(e){switch(e){case"IN":return _0.IN_MATCHER;case"CONTAINS":return _0.CONTAINS_MATCHER;case"STARTS_WITH":return _0.STARTS_WITH_MATCHER;case"ENDS_WITH":return _0.ENDS_WITH_MATCHER;case"GT":return _0.GT_MATCHER;case"GTE":return _0.GTE_MATCHER;case"LT":return _0.LT_MATCHER;case"LTE":return _0.LTE_MATCHER}},_0.IN_MATCHER=new v,_0.CONTAINS_MATCHER=new ni,_0.STARTS_WITH_MATCHER=new Zi,_0.ENDS_WITH_MATCHER=new C,_0.GT_MATCHER=new N,_0.GTE_MATCHER=new xl,_0.LT_MATCHER=new vi,_0.LTE_MATCHER=new p,_0),au=(b0.prototype.matches=function(e,t,r){t=this.asString(t),r=this.asString(r);return!a.isNullOrUndefined(t)&&!a.isNullOrUndefined(r)&&e.stringMatches(t,r)},b0.prototype.asString=function(e){return"string"==typeof e?e:"number"==typeof e?e.toString():null},b0),go=(T0.prototype.matches=function(e,t,r){t=this.asNumber(t),r=this.asNumber(r);return!a.isNullOrUndefined(t)&&!a.isNullOrUndefined(r)&&e.numberMatches(t,r)},T0.prototype.asNumber=function(e){return"number"==typeof e?e:"string"==typeof e?(e=Number(e),isNaN(e)?null:e):null},T0),c=(E0.prototype.matches=function(e,t,r){return"boolean"==typeof t&&"boolean"==typeof r&&e.booleanMatches(t,r)},E0),Fs=(w0.prototype.matches=function(e,t,r){t=dt.tryParse(t),r=dt.tryParse(r);return!(!t||!r)&&e.versionMatches(t,r)},w0),jn=(g0.prototype.matches=function(e,t,r){return!1},g0),bg=(m0.prototype.getMatcher=function(e){switch(e){case"STRING":case"JSON":return m0.STRING_MATCHER;case"NUMBER":return m0.NUMBER_MATCHER;case"BOOLEAN":return m0.BOOLEAN_MATCHER;case"VERSION":return m0.VERSION_MATCHER;case"NULL":case"UNKNOWN":return m0.NULL_MATCHER}},m0.STRING_MATCHER=new au,m0.NUMBER_MATCHER=new go,m0.BOOLEAN_MATCHER=new c,m0.VERSION_MATCHER=new Fs,m0.NULL_MATCHER=new jn,m0),I=(v0.prototype.matches=function(e,t,r){r=this.userValueResolver.resolveOrNull(r,e.key);return!a.isNullOrUndefined(r)&&this.valueOperatorMatcher.matches(r,e.match)},v0),A=(y0.prototype.resolveOrNull=function(e,t){switch(t.type){case"USER_ID":return e.identifiers[t.name];case"USER_PROPERTY":return e.properties[t.name];case"HACKLE_PROPERTY":return e.hackleProperties[t.name];case"SEGMENT":throw new Error("Unsupported TargetKeyType [".concat(t.type,"]"))}},y0),li=(h0.prototype.matches=function(e,t,r){var n=this;if("SEGMENT"!=e.key.type)throw new Error("Unsupported TargetKeyType [".concat(e.key.type,"]"));var i=e.match.values.some(function(e){return n._matches(e,t,r)});switch(e.match.type){case"MATCH":return i;case"NOT_MATCH":return!i}},h0.prototype._matches=function(e,t,r){if("string"!=typeof e)throw new Error("SegmentKey[".concat(e,"]"));var n=t.getSegmentOrNull(e);if(n)return this.segmentMatcher.matches(n,t,r);throw new Error("Segment[".concat(e,"]"))},h0),ci=(d0.prototype.matches=function(e,t,r){var n=this;return e.targets.some(function(e){return n._matches(e,t,r)})},d0.prototype._matches=function(e,t,r){var n=this;return e.conditions.every(function(e){return n.userConditionMatcher.matches(e,t,r)})},d0),_g=(p0.prototype.getMatcher=function(e){switch(e){case"USER_ID":case"USER_PROPERTY":case"HACKLE_PROPERTY":return p0.USER_CONDITION_MATCHER;case"SEGMENT":return p0.SEGMENT_CONDITION_MATCHER}},p0.USER_CONDITION_MATCHER=new I(new A,new d(new bg,new Tg)),p0.SEGMENT_CONDITION_MATCHER=new li(new ci(p0.USER_CONDITION_MATCHER)),p0),Og=(f0.prototype.resolveOrNull=function(e,t,r,n){switch(e.type){case"VARIATION":return this._resolveVariation(e,r);case"BUCKET":return this._resolveBucket(e,t,r,n)}},f0.prototype._resolveVariation=function(e,t){return t._getVariationByIdOrNull(e.variationId)},f0.prototype._resolveBucket=function(e,t,r,n){t=t.getBucketOrNull(e.bucketId),e=n.identifiers[r.identifierType];if(e){n=this.bucketer.bucketing(t,e);if(n)return r._getVariationByIdOrNull(n.variationId)}},f0),Rg={murmurhash3_x86_32:function(e,t,r,n){for(var i,o=-4&(n=void 0===n?e.length:n),s=t,a=0;a<o;a+=4)i=255&e.charCodeAt(a)|(255&e.charCodeAt(a+1))<<8|(255&e.charCodeAt(a+2))<<16|(255&e.charCodeAt(a+3))<<24,i=(131071&(i=this.mul32(i,3432918353)))<<15|i>>>17,s=5*((524287&(s^=i=this.mul32(i,461845907)))<<13|s>>>19)+3864292196|0;switch(i=0,n%4){case 3:i=(255&e.charCodeAt(2+o))<<16;case 2:i|=(255&e.charCodeAt(1+o))<<8;case 1:i|=255&e.charCodeAt(o),i=(131071&(i=this.mul32(i,3432918353)))<<15|i>>>17,s^=i=this.mul32(i,461845907)}return s=this.mul32(s=(s^=n)^s>>>16,2246822507),(s=this.mul32(s^=s>>>13,3266489909))^s>>>16},mul32:function(e,t){var r=65535&t;return((t-r)*e|0)+(r*e|0)|0}},Ig=(l0.prototype.bucketing=function(e,t){var r=this.calculateSlotNumber(e.seed,e.slotSize,t);return e.slots.find(function(e){return e.contains(r)})},l0.prototype.calculateSlotNumber=function(e,t,r){r=Rg.murmurhash3_x86_32(r,e);return Math.abs(r)%Math.abs(t)},l0),Sg=(c0.prototype.evaluate=function(e,t,r,n){return this.flowEvaluator&&this.nextFlow?this.flowEvaluator.evaluate(e,t,r,n,this.nextFlow):gg.of(e,t,n,u.TRAFFIC_NOT_ALLOCATED)},c0.of=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=new c0,n=0,i=e.reverse();n<i.length;n++)r=new c0(i[n],r);return r},c0),Cg=(u0.prototype.evaluate=function(e,t,r,n,i){var o=this.overrideResolver.resolveOrNull(e,t,r);if(!o)return i.evaluate(e,t,r,n);switch(t.type){case"AB_TEST":return gg.withVariation(e,o,u.OVERRIDDEN);case"FEATURE_FLAG":return gg.withVariation(e,o,u.INDIVIDUAL_TARGET_MATCH)}},u0),Ng=(a0.prototype.evaluate=function(e,t,r,n,i){return"DRAFT"===t.status?gg.of(e,t,n,u.EXPERIMENT_DRAFT):i.evaluate(e,t,r,n)},a0),Ag=(s0.prototype.evaluate=function(e,t,r,n,i){if("PAUSED"!==t.status)return i.evaluate(e,t,r,n);switch(t.type){case"AB_TEST":return gg.of(e,t,n,u.EXPERIMENT_PAUSED);case"FEATURE_FLAG":return gg.of(e,t,n,u.FEATURE_FLAG_INACTIVE)}},s0),kg=(o0.prototype.evaluate=function(e,t,r,n,i){if("COMPLETED"!==t.status)return i.evaluate(e,t,r,n);i=t._winnerVariationOrNull();if(i)return gg.withVariation(e,i,u.EXPERIMENT_COMPLETED);throw new Error("winner variation [".concat(t.id,"]"))},o0),xg=(i0.prototype.evaluate=function(e,t,r,n,i){if("AB_TEST"!==t.type)throw new Error("experiment type must be AB_TEST [".concat(t.id,"]"));return this.experimentTargetDeterminer.isUserInExperimentTarget(e,t,r)?i.evaluate(e,t,r,n):gg.of(e,t,n,u.NOT_IN_EXPERIMENT_TARGET)},i0),Pg=(n0.prototype.evaluate=function(e,t,r,n,i){if("RUNNING"!==t.status)throw new Error("experiment status must be RUNNING [".concat(t.id,"]"));if("AB_TEST"!==t.type)throw new Error("experiment type must be AB_TEST [".concat(t.id,"]"));r=this.actionResolver.resolveOrNull(t.defaultRule,e,t,r);return r?r.isDropped?gg.of(e,t,n,u.VARIATION_DROPPED):gg.withVariation(e,r,u.TRAFFIC_ALLOCATED):gg.of(e,t,n,u.TRAFFIC_NOT_ALLOCATED)},n0),Ug=(r0.prototype.evaluate=function(e,t,r,n,i){if("RUNNING"!==t.status)throw new Error("experiment status must be RUNNING [".concat(t.id,"]"));if("FEATURE_FLAG"!==t.type)throw new Error("experiment type must be FEATURE_FLAG [".concat(t.id,"]"));if(!r.identifiers[t.identifierType])return i.evaluate(e,t,r,n);var o=this.targetRuleDeterminer.determineTargetRuleOrNull(e,t,r);if(!o)return i.evaluate(e,t,r,n);i=this.actionResolver.resolveOrNull(o.action,e,t,r);if(i)return gg.withVariation(e,i,u.TARGET_RULE_MATCH);throw new Error("FeatureFlag must decide the Variation [".concat(t.id,"]"))},r0),Mg=(t0.prototype.evaluate=function(e,t,r,n,i){if("RUNNING"!==t.status)throw new Error("experiment status must be RUNNING [".concat(t.id,"]"));if("FEATURE_FLAG"!==t.type)throw new Error("experiment type must be FEATURE_FLAG [".concat(t.id,"]"));if(!r.identifiers[t.identifierType])return gg.of(e,t,n,u.DEFAULT_RULE);n=this.actionResolver.resolveOrNull(t.defaultRule,e,t,r);if(n)return gg.withVariation(e,n,u.DEFAULT_RULE);throw new Error("FeatureFlag must decide the Variation [".concat(t.id,"]"))},t0),Dg=(e0.prototype.evaluate=function(e,t,r,n,i){var o=t.containerId;if(!o)return i.evaluate(e,t,r,n);var s=e.getContainerOrNull(o);if(!s)throw new Error("container[".concat(o,"]"));o=e.getBucketOrNull(s.bucketId);if(o)return this.containerResolver.isUserInContainerGroup(s,o,t,r)?i.evaluate(e,t,r,n):gg.of(e,t,n,u.NOT_IN_MUTUAL_EXCLUSION_EXPERIMENT);throw new Error("bucket[".concat(s.bucketId,"]"))},e0),Lg=(Zg.prototype.evaluate=function(e,t,r,n,i){return r.identifiers[t.identifierType]?i.evaluate(e,t,r,n):gg.of(e,t,n,u.IDENTIFIER_NOT_FOUND)},Zg),Fg=(Qg.prototype.isUserInExperimentTarget=function(t,e,r){var n=this;return 0===e.targetAudiences.length||e.targetAudiences.some(function(e){return n.targetMatcher.matches(e,t,r)})},Qg),jg=(Jg.prototype.determineTargetRuleOrNull=function(t,e,r){var n=this;return e.targetRules.find(function(e){return n.targetMatcher.matches(e.target,t,r)})},Jg),Vg=(Wg.prototype.resolveOrNull=function(e,t,r){var n;return null!=(n=null!=(n=this.resolveManualOverride(t,r))?n:this._resolveUserOverride(t,r))?n:this._resolveSegmentOverride(e,t,r)},Wg.prototype.resolveManualOverride=function(e,t){return this.manualOverrideStorage.getVariation(e,t)},Wg.prototype._resolveUserOverride=function(e,t){t=t.identifiers[e.identifierType];if(t){t=e.userOverrides.get(t);if(t)return e._getVariationByIdOrNull(t)}},Wg.prototype._resolveSegmentOverride=function(t,e,r){var n=this,i=e.segmentOverrides.find(function(e){return n.targetMatcher.matches(e.target,t,r)});if(i)return this.actionResolver.resolveOrNull(i.action,t,e,r)},Wg),Hg=(Xg.prototype.isUserInContainerGroup=function(e,t,r,n){n=n.identifiers[r.identifierType];if(!n)return!1;t=this.bucketer.bucketing(t,n);if(!t)return!1;n=e.getGroupOrNull(t.variationId);if(n)return n.experiments.includes(r.id);throw new Error("ContainerGroup[".concat(t.variationId,"]"))},Xg),zg=(Yg.prototype.determineTargetRuleOrNull=function(t,r,n){var i=this;return r.targetRules.find(function(e){return i.matches(e,t,r,n)})},Yg.prototype.matches=function(e,t,r,n){if(!this.targetMatcher.matches(e.target,t,n))return!1;n=n.identifiers[r.identifierType];if(a.isNullOrUndefined(n))return!1;r=t.getBucketOrNull(e.bucketId);if(a.isNullOrUndefined(r))throw new Error("bucket[".concat(e.bucketId,"]"));return a.isNotNullOrUndefined(this.bucketer.bucketing(r,n))},Yg),Kg=($g.prototype.getFlow=function(e){switch(e){case"AB_TEST":return this.abTestFlow;case"FEATURE_FLAG":return this.featureFlagFlow}},$g.prototype.getRemoteConfigParameterTargetRuleDeterminer=function(){return this.remoteConfigParameterTargetRuleDeterminer},$g),Bg=(qg.prototype.install=function(e,t){this._install("onerror",e,t),this._install("onunhandledrejection",e,t)},qg.prototype._install=function(e,t,r){e in this._installed||((0,this._installations[e])(t,r),this._installed.push(e))},qg),Gg=null;function qg(){this._installed=[],this._installations={onerror:G0,onunhandledrejection:q0}}function $g(e){var t=new Ig,r=new Eg(new _g),n=new Og(t),e=new Vg(e,r,n),i=new Hg(t);this.abTestFlow=Sg.of(new Cg(e),new Lg,new Dg(i),new xg(new Fg(r)),new Ng,new Ag,new kg,new Pg(n)),this.featureFlagFlow=Sg.of(new Ng,new Ag,new kg,new Cg(e),new Lg,new Ug(new jg(r),n),new Mg(n)),this.remoteConfigParameterTargetRuleDeterminer=new zg(r,t)}function Yg(e,t){this.targetMatcher=e,this.bucketer=t}function Xg(e){this.bucketer=e}function Wg(e,t,r){this.manualOverrideStorage=e,this.targetMatcher=t,this.actionResolver=r}function Jg(e){this.targetMatcher=e}function Qg(e){this.targetMatcher=e}function Zg(){}function e0(e){this.containerResolver=e}function t0(e){this.actionResolver=e}function r0(e,t){this.targetRuleDeterminer=e,this.actionResolver=t}function n0(e){this.actionResolver=e}function i0(e){this.experimentTargetDeterminer=e}function o0(){}function s0(){}function a0(){}function u0(e){this.overrideResolver=e}function c0(e,t){void 0===t&&(t=void 0),this.flowEvaluator=e=void 0===e?void 0:e,this.nextFlow=t}function l0(){}function f0(e){this.bucketer=e}function p0(){}function d0(e){this.userConditionMatcher=e}function h0(e){this.segmentMatcher=e}function y0(){}function v0(e,t){this.userValueResolver=e,this.valueOperatorMatcher=t}function m0(){}function g0(){}function w0(){}function E0(){}function T0(){}function b0(){}function _0(){}function O0(){}function R0(){}function I0(){}function S0(){}function C0(){}function N0(){}function A0(){}function k0(){}function x0(e,t){this.valueMatcherFactory=e,this.operatorMatcherFactory=t}function P0(e){this.conditionMatcherFactory=e}function U0(e){this.evaluationFlowFactory=e}function M0(e,t,r,n){this.variationId=e,this.variationKey=t,this.reason=r,this.config=n}function D0(){}function L0(e,t,r,n){this.workspaceFetcher=e,this.eventProcessor=t,this.evaluator=r,this.errorDedupDeterminer=n,this.workspaceFetcher.start(),this.eventProcessor.start(),this.readyPromise=this.workspaceFetcher.onReady().then(function(){return{success:!0}},function(e){return{success:!1,error:e}})}function F0(){}function j0(e){this.cache=new Map,this.exposureEventDedupIntervalMillis=e}function V0(e,t,r,n){this.delegate=e,this.exposureEventDedupDeterminer=t,this.sessionManager=r,this.userManager=n}function H0(e,t){this.hackleUserResolver=e,this.hackleInternalClient=t}function z0(e,t,r,n){void 0===n&&(n=null),this.eventDispatcher=e,this.flushInterval=r,this.queue=new cg(this.drainQueue.bind(this),t,r),this.repository=n}function K0(e,t,r){this.buffer=[],this.sink=e,this.maxQueueSize=t,this.timer=new ug({callback:this.flush.bind(this),timeout:r}),this.started=!1}function B0(e){var t=e.timeout,e=e.callback;this.timeout=Math.max(t,0),this.callback=e}function G0(o,s){Gg=window.onerror,window.onerror=function(e,t,r,n,i){a.isNotNullOrUndefined(i)&&o._trackException(i,s.resolveCurrentUser()),Gg&&Gg.apply(this,arguments)}}function q0(r,n){ag=window.onunhandledrejection,window.onunhandledrejection=function(e){var t;try{"reason"in e?t=e.reason:"detail"in e&&"reason"in e.detail&&(t=e.detail.reason)}catch(e){}t instanceof Error&&r._trackException(t,n.resolveCurrentUser()),ag&&ag.apply(this,arguments)}}function $0(e,t){return e.userId===t.userId&&e.deviceId===t.deviceId}pw.prototype.read=function(){var r=this;return new Promise(function(e){var t=r.storage.getItem(r.storageKey);t&&e(JSON.parse(t)),e([])})},pw.prototype.save=function(r){var n=this;return 0===r.length?this.clear():new Promise(function(e){var t=JSON.stringify(r.slice(-n.maxSize));n.storage.setItem(n.storageKey,t),e()})},pw.prototype.add=function(t){var r=this;return this.read().then(function(e){return r.save(e.concat(t).slice(-r.maxSize))})},pw.prototype.delete=function(r){var t=this;return this.read().then(function(e){e=e.filter(function(t){return r.findIndex(function(e){return e.insertId===t.insertId})<0});return t.save(e)})},pw.prototype.clear=function(){var t=this;return new Promise(function(e){localStorage.removeItem(t.storageKey),e()})};var Y0=pw,X0=(fw.prototype.addListener=function(e){this.userListeners.push(e)},fw.prototype.initialize=function(){var e=this.storage.getItem("_hackle_did")||this.hackleDeviceId,t=this.storage.getItem("_hackle_uid")||void 0;this._currentUser={deviceId:e,userId:t}},Object.defineProperty(fw.prototype,"currentUser",{get:function(){return this._currentUser},enumerable:!1,configurable:!0}),fw.prototype.resolveCurrentOrNull=function(e){if(void 0===e)return this.currentUser;if("string"==typeof e)return this.setUser({id:e});e=Ie(e);return e?this.setUser(e):null},fw.prototype.setUser=function(e){var t=this._currentUser,r=$0(r=t,e=e)?h(h({},e),{properties:h(h({},r.properties),e.properties)}):e;return this._currentUser=r,$0(t,r)||(this.changeUser(t,r,(new Date).getTime()),this.saveUser(r)),r},fw.prototype.setUserId=function(e){e=h(h({},this._currentUser),{userId:e});return this.setUser(e)},fw.prototype.setDeviceId=function(e){e=h(h({},this._currentUser),{deviceId:e});return this.setUser(e)},fw.prototype.setUserProperty=function(e,t){var r,e=h(h({},this._currentUser),{properties:h(h({},this._currentUser.properties),((r={})[e]=t,r))});return this.setUser(e)},fw.prototype.setUserProperties=function(e){e=h(h({},this._currentUser),{properties:h(h({},this._currentUser.properties),e)});return this.setUser(e)},fw.prototype.resetUser=function(){return this.setUser(this.defaultUser)},fw.prototype.changeUser=function(t,r,n){this.userListeners.forEach(function(e){e.onUserUpdated(t,r,n)})},fw.prototype.saveUser=function(e){a.isNotNullOrUndefined(e.deviceId)?this.storage.setItem("_hackle_did",e.deviceId):this.storage.removeItem("_hackle_did"),a.isNotNullOrUndefined(e.userId)?this.storage.setItem("_hackle_uid",e.userId):this.storage.removeItem("_hackle_uid")},fw),W0=(Object.defineProperty(lw.prototype,"currentSessionId",{get:function(){return this._currentSessionId},enumerable:!1,configurable:!0}),Object.defineProperty(lw.prototype,"sessionId",{get:function(){var e;return null!=(e=this._currentSessionId)?e:lw.EMPTY_SESSION_ID},enumerable:!1,configurable:!0}),Object.defineProperty(lw.prototype,"lastEventTime",{get:function(){return this._lastEventTime},enumerable:!1,configurable:!0}),lw.prototype.addListener=function(e){this.sessionListeners.push(e)},lw.prototype.startNewSession=function(e,t){return this.endSession(e),this.newSession(e,t)},lw.prototype.startNewSessionIfNeeded=function(e,t){var r=this._lastEventTime;return null!==r&&null!==this._currentSessionId&&t-r<this.sessionTimeoutMillis?(this.updateLastEventTime(t),this._currentSessionId):this.startNewSession(e,t)},lw.prototype.updateLastEventTime=function(e){this._lastEventTime=e,this.storage.setItem("_hackle_last_event_ts","".concat(e))},lw.prototype.endSession=function(t){var r=this._currentSessionId,n=this._lastEventTime;null!==r&&null!==n&&this.sessionListeners.forEach(function(e){return e.onSessionEnded(r,t,n)})},lw.prototype.newSession=function(t,r){var n="".concat(r,".").concat(ae.v4().slice(0,8));return this.saveSession(n),this.updateLastEventTime(r),this.sessionListeners.forEach(function(e){e.onSessionStarted(n,t,r)}),n},lw.prototype.saveSession=function(e){this._currentSessionId=e,this.storage.setItem("_hackle_session_id",e)},lw.prototype.loadSession=function(){this._currentSessionId=this.storage.getItem("_hackle_session_id")},lw.prototype.loadLastEventTime=function(){var e=this.storage.getItem("_hackle_last_event_ts");null!==e&&0<(e=Number.parseFloat(e))&&(this._lastEventTime=e)},lw.prototype.onUserUpdated=function(e,t,r){this.endSession(e),this.newSession(t,r)},lw.EMPTY_SESSION_ID="0.ffffffff",lw),J0=(cw.postfix=function(e,t){return new cw(e,function(e){return"".concat(e).concat(t)})},cw.prototype.getItem=function(e){return this.delegate.getItem(this.transform(e))},cw.prototype.removeItem=function(e){this.delegate.removeItem(this.transform(e))},cw.prototype.setItem=function(e,t){this.delegate.setItem(this.transform(e),t)},cw),Q0=(uw.prototype.isEqualItem=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},uw.prototype.getRemainListSize=function(){try{return this.maxLength-JSON.stringify(this.getList()).length}catch(e){return 0}},uw.prototype.isAddableItem=function(e){try{return this.getRemainListSize()>JSON.stringify(e).length}catch(e){return!1}},uw.prototype.getVictimIndex=function(e){var t=this.getRemainListSize();try{var r=JSON.stringify(e),n=this.getList(),i=0;return n.findIndex(function(e){return(i+=JSON.stringify(e).length)+t>=r.length})}catch(e){return-1}},uw.prototype.getList=function(){try{var e=this.delegate.getItem(this.listKey);if(!e)return[];var t=JSON.parse(e);return Array.isArray(t)?t:[]}catch(e){return[]}},uw.prototype.entries=function(){return this.getList().map(Object.entries)},uw.prototype.setItem=function(e,t){var r;try{this.removeItem(e);var n=this.getList(),i=((r={})[e]=t,r);if(!this.isAddableItem(i)){var o=this.getVictimIndex(i);if(o<0)return;n=n.slice(o+1)}var s=JSON.stringify(n.concat(i));this.delegate.setItem(this.listKey,s)}catch(e){}},uw.prototype.getItem=function(t){var r=this,e=this.getList().find(function(e){return r.isEqualItem(e,t)});if(e&&e[t])return e[t]},uw.prototype.removeItem=function(t){var r=this,e=this.getList();try{var n=e.filter(function(e){return!r.isEqualItem(e,t)}),i=JSON.stringify(n);this.delegate.setItem(this.listKey,i)}catch(t){}},uw.prototype.clear=function(){this.delegate.removeItem(this.listKey)},uw),Z0=(aw.prototype.getVariation=function(e,t){if(0!==this.storages.length)for(var r=0,n=this.storages;r<n.length;r++){var i=n[r].getVariation(e,t);if(void 0!==i)return i}},aw),ew=(sw.prototype.getVariation=function(e,t){var r=this.get(e);if(r)return e._getVariationByIdOrNull(r)},sw.prototype.get=function(e){var e=this.listStorage.getItem(e.id.toString());return null!=(e=Number(e))?e:void 0},sw.prototype.getAll=function(){var r=new Map;return this.listStorage.entries().forEach(function(e){var e=e[0],t=e[0],e=e[1],t=Number(t),e=Number(e);0===t||Number.isNaN(t)||0===e||Number.isNaN(e)||r.set(t,e)}),r},sw.prototype.set=function(e,t){this.listStorage.setItem(e.id.toString(),t.toString())},sw.prototype.remove=function(e){this.listStorage.removeItem(e.id.toString())},sw.prototype.clear=function(){this.listStorage.clear()},sw),tw=(ow.prototype.currentUser=function(){var e=this.userManager.currentUser;return this.userResolver.resolve(e)},ow.prototype.getAbTestDecisions=function(){return this.internalClient._experiments(this.currentUser()).entries()},ow.prototype.getAbTestOverrides=function(){return this.abOverrideStorage.getAll()},ow.prototype.setAbTestOverride=function(e,t){this.abOverrideStorage.set(e,t),this.increment("AB_TEST","set")},ow.prototype.resetAbTestOverride=function(e){this.abOverrideStorage.remove(e),this.increment("AB_TEST","reset")},ow.prototype.resetAllAbTestOverride=function(){this.abOverrideStorage.clear(),this.increment("AB_TEST","reset.all")},ow.prototype.getFeatureFlagDecisions=function(){return this.internalClient._featureFlags(this.currentUser()).entries()},ow.prototype.getFeatureFlagOverrides=function(){return this.ffOverrideStorage.getAll()},ow.prototype.setFeatureFlagOverride=function(e,t){this.ffOverrideStorage.set(e,t),this.increment("FEATURE_FLAG","set")},ow.prototype.resetFeatureFlagOverride=function(e){this.ffOverrideStorage.remove(e),this.increment("FEATURE_FLAG","reset")},ow.prototype.resetAllFeatureFlagOverride=function(){this.ffOverrideStorage.clear(),this.increment("FEATURE_FLAG","reset.all")},ow.prototype.increment=function(e,t){lr.counter("experiment.manual.override",{"experiment.type":e,operation:t}).increment()},ow),rw=de.log,nw=null,iw={debug:!1,log_disabled:!1,auto_track_page_view:!0,pollingIntervalMillis:-1,exposureEventDedupIntervalMillis:-1,sessionTimeoutMillis:18e5,autoOpenDevTool:!1,SDK_NAME_HEADER:"javascript-sdk_browser",SDK_VERSION_HEADER:"11.13.0"};function ow(e,t,r,n,i){this.internalClient=e,this.userManager=t,this.userResolver=r,this.abOverrideStorage=n,this.ffOverrideStorage=i}function sw(e){this.listStorage=e}function aw(e){this.storages=e}function uw(e,t,r){void 0===r&&(r=4096);var n=this;this.delegate=e,this.listKey=t,this.encodedListCharLen=6,this.resolveMaxLength=function(e){e-=n.encodedListCharLen;return e<0?0:e},this.maxLength=this.resolveMaxLength(r)}function cw(e,t){this.delegate=e,this.transform=t}function lw(e,t){this.sessionTimeoutMillis=e,this.storage=t,this.sessionListeners=[],this._currentSessionId=null,this._lastEventTime=null,this.loadSession(),this.loadLastEventTime()}function fw(e,t){this.storage=e,this.hackleDeviceId=t,this.userListeners=[],this.defaultUser={deviceId:this.hackleDeviceId},this._currentUser=this.defaultUser,this.initialize()}function pw(e,t,r){this.storage=e,this.storageKey=t,this.maxSize=r}function dw(e,t){t=h(h({},iw),t);if(de.initCounter(function(e){return lr.counter("log",{level:e})}),t.log_disabled?de.setLogLevel(pe.DISABLE):t.debug&&de.setLogLevel(pe.DEBUG),rw.debug("sdkKey : "+e),e||rw.error("SDK Key must not be null"),nw)return rw.debug("use already exists hackleClient"),nw;var r=!1,n=("undefined"!=typeof window&&(r=window&&window.navigator&&window.navigator.sendBeacon&&!0)&&rw.debug("support sendBeacon API"),new Mr(e,Fe,{dispatchUrl:"https://event.hackle.io/api/v2/w/events",beaconDispatchUrl:"".concat("https://event.hackle.io/api/v2/w/").concat(e).concat("/events"),useBeacon:r,headers:((n={})[ye]=t.SDK_NAME_HEADER,n["X-HACKLE-SDK-VERSION"]=t.SDK_VERSION_HEADER,n)})),i=-1,i=(void 0!==t.pollingIntervalMillis&&"number"==typeof t.pollingIntervalMillis&&0<t.pollingIntervalMillis&&(i=Math.max(t.pollingIntervalMillis,3e4)),new Fr(e,Fe,{fetchUrl:"".concat("https://client-sdk.hackle.io/api/v2/w/").concat(e).concat("/w"),updateInterval:i,headers:((i={})[ye]=t.SDK_NAME_HEADER,i["X-HACKLE-SDK-VERSION"]=t.SDK_VERSION_HEADER,i)})),o=-1,s=(void 0!==t.exposureEventDedupIntervalMillis&&"number"==typeof t.exposureEventDedupIntervalMillis&&-1!==t.exposureEventDedupIntervalMillis&&(o=t.exposureEventDedupIntervalMillis<1e3||36e5<t.exposureEventDedupIntervalMillis?(rw.warn("Exposure event dedup interval is outside allowed range[1_000ms..3_600_000ms]. Setting to default value[no dedup]."),-1):t.exposureEventDedupIntervalMillis),new Y0(window.localStorage,"".concat("hackle-repository-storage","_").concat(e),100)),a=new X0(J0.postfix(zr,"_".concat(e)),en()),u=new W0(t.sessionTimeoutMillis,J0.postfix(zr,"_".concat(e.slice(8))));a.addListener(u);function c(){p.drainRepository()}var l,f,p=new lg(n,100,500,s),n=new dg(o),s=new pg(p,n,u,a),o=new ew(new Q0(zr,"".concat("hackle-manual-override_ab","_").concat(e.slice(0,8)))),n=new ew(new Q0(zr,"".concat("hackle-manual-override_ff","_").concat(e.slice(0,8)))),i=new vg(i,s,new wg(new Kg(new Z0([o,n]))),new mg),s=new Br(a),o=new tw(i,a,s,o,n),n=(null==(n=t.devTool)?void 0:n.userExplorer)&&"function"==typeof(null==(n=t.devTool)?void 0:n.userExplorer),n=t.devTool&&n?{manager:t.devTool,userExplorer:o}:void 0,d=new vr(i,s,u,a,n),o=new fg(s,i),o=(u.addListener(o),nw=d,t.auto_track_page_view&&(f=function(){return l.trackPageView({user:{id:en()}})},(l=d).onReady(function(){function t(e){if("function"==typeof window.Event)return new Event(e);var t=!1,r=!1,n=void 0,i=document.createEvent("CustomEvent");return i.initCustomEvent(e,t,r,n),i}f();try{history.pushState=(n=history.pushState,function(){try{var e=n.apply(this,arguments);return window.dispatchEvent(t("locationchange")),e}catch(e){if(e instanceof Error)rw.error(e);else try{rw.error(e)}catch(e){}}}),history.replaceState=(r=history.replaceState,function(){try{var e=r.apply(this,arguments);return window.dispatchEvent(t("locationchange")),e}catch(e){if(e instanceof Error)rw.error(e);else try{rw.error(e)}catch(e){}}}),window.addEventListener("popstate",function(){try{window.dispatchEvent(t("locationchange"))}catch(e){if(e instanceof Error)rw.error(e);else try{rw.error(e)}catch(e){}}}),window.addEventListener("locationchange",function(){try{f()}catch(e){if(e instanceof Error)rw.error(e);else try{rw.error(e)}catch(e){}}})}catch(t){if(t instanceof Error)rw.error(t);else try{rw.error(t)}catch(t){}}var r,n})),t.autoOpenDevTool&&(t.devTool?d.showUserExplorer():rw.error("DevTool is not provided")),(new Bg).install(i,s),new fr("https://monitoring.hackle.io",6e4,Fe,((n={})[ye]=t.SDK_NAME_HEADER,n["X-HACKLE-SDK-VERSION"]=t.SDK_VERSION_HEADER,n["X-HACKLE-SDK-KEY"]=e,n),r));return document.addEventListener("visibilitychange",function(){document.hidden||c()}),window.addEventListener("pageshow",c),window.addEventListener("onpagehide"in window?"pagehide":"unload",function(){rn(),u.updateLastEventTime((new Date).getTime()),d.close(),lr.globalRegistry.close()}),lr.addRegistry(o),d.onReady(function(){u.startNewSessionIfNeeded(a.currentUser,(new Date).getTime())}),d}var o={createInstance:dw,getUserId:en,setUserId:tn,removeUserId:rn,Logger:de},hw=(l.Bucket=t.Bucket=Oe,l.Container=t.Container=Qe,l.ContainerGroup=t.ContainerGroup=Ue,l.CoreVersion=t.CoreVersion=ht,l.Decision=t.Decision=Ge,l.DecisionReason=t.DecisionReason=u,l.EmptyHackleRemoteConfig=t.EmptyHackleRemoteConfig=oe,l.EmptyParameterConfig=t.EmptyParameterConfig=$e,l.EventType=t.EventType=Re,l.Experiment=t.Experiment=Ye,l.FeatureFlagDecision=t.FeatureFlagDecision=qe,l.IdentifierType=t.IdentifierType=We,l.IdentifiersBuilder=t.IdentifiersBuilder=Je,l.Logger=t.Logger=de,l.MATCH_OPERATORS=t.MATCH_OPERATORS=gt,l.MATCH_TYPES=t.MATCH_TYPES=vt,l.MATCH_VALUE_TYPES=t.MATCH_VALUE_TYPES=mt,l.MetaVersion=t.MetaVersion=yt,l.ParameterConfiguration=t.ParameterConfiguration=Ze,l.RemoteConfigDecision=t.RemoteConfigDecision=Be,l.RemoteConfigParameter=t.RemoteConfigParameter=Me,l.RemoteConfigParameterValue=t.RemoteConfigParameterValue=Le,l.RemoteConfigTargetRule=t.RemoteConfigTargetRule=De,l.SEGMENT_TYPES=t.SEGMENT_TYPES=Tt,l.Segment=t.Segment=Pe,l.Slot=t.Slot=Xe,l.TARGET_ACTION_TYPES=t.TARGET_ACTION_TYPES=wt,l.TARGET_KEY_TYPES=t.TARGET_KEY_TYPES=Et,l.Target=t.Target=Se,l.TargetAction=t.TargetAction=ke,l.TargetCondition=t.TargetCondition=Ce,l.TargetKey=t.TargetKey=Ne,l.TargetMatch=t.TargetMatch=Ae,l.TargetRule=t.TargetRule=xe,l.TargetingType=t.TargetingType=bt,l.Variation=t.Variation=_e,l.Version=t.Version=dt,se=t.createInstance=dw,t.default=o,l.getUserId=t.getUserId=en,l.removeUserId=t.removeUserId=rn,l.sanitizeUser=t.sanitizeUser=Ie,l.setUserId=t.setUserId=tn,function(e,t){return(hw=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)});var yw=function(){return(yw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function vw(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||0<t--)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}mw.prototype.on=function(e,t){this.listeners[e]=(this.listeners[e]||[]).concat(t)},mw.prototype.off=function(e,t){this.listeners[e]=(this.listeners[e]||[]).filter(function(e){return e!==t})},mw.prototype.emit=function(e,t){(this.listeners[e]||[]).forEach(function(e){e(t)})};lu=mw;function mw(){this.listeners={}}ww.arePropertiesEqual=function(e,t){var r=ww.coerceUnknownToProperties(e),n=ww.coerceUnknownToProperties(t),e=Object.keys(r),t=Object.keys(n);return e.length===t.length&&e.every(function(e){return e in n&&r[e]===n[e]})},ww.coerceUnknownToProperties=function(e){return"object"==typeof e&&null!==e?e:{}};var gw=ww;function ww(){}Tw.isUserEqual=function(e,t){return(null==e?void 0:e.id)===(null==t?void 0:t.id)&&(null==e?void 0:e.deviceId)===(null==t?void 0:t.deviceId)&&(null==e?void 0:e.userId)===(null==t?void 0:t.userId)&&gw.arePropertiesEqual(null==e?void 0:e.properties,null==t?void 0:t.properties)&&gw.arePropertiesEqual(null==e?void 0:e.identifiers,null==t?void 0:t.identifiers)};var Ew=Tw;function Tw(){}var bw=function(n){var e=i,t=n;if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}function i(e,t){var r=n.call(this)||this;return r._currentUser=null,r.client=se(e,yw(yw({},t),{SDK_NAME_HEADER:"react-sdk",SDK_VERSION_HEADER:"11.13.0"})),null!=t&&t.devTool&&null!=t&&t.autoOpenDevTool&&r.showUserExplorer(),r}return hw(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r),i.prototype.getUser=function(){return this.client.getUser()},i.prototype.setUser=function(e){this.client.setUser(e),this.emitUpdatedUser(this.getUser())},i.prototype.setUserId=function(e){this.client.setUserId(e),this.emitUpdatedUser(this.getUser())},i.prototype.setDeviceId=function(e){this.client.setDeviceId(e),this.emitUpdatedUser(this.getUser())},i.prototype.setUserProperty=function(e,t){this.client.setUserProperty(e,t),this.emitUpdatedUser(this.getUser())},i.prototype.resetUser=function(){this.client.resetUser(),this.emitUpdatedUser(this.getUser())},i.prototype.variation=function(e,t,r){return this.client.variation(e,t||void 0,r)},i.prototype.variationDetail=function(e,t,r){return this.client.variationDetail(e,t||void 0,r)},i.prototype.isFeatureOn=function(e,t){return this.client.isFeatureOn(e,t||void 0)},i.prototype.featureFlagDetail=function(e,t){return this.client.featureFlagDetail(e,t||void 0)},i.prototype.track=function(e,t){this.client.track(e,t||void 0)},i.prototype.trackPageView=function(e){this.client.trackPageView(yw(yw({},e),{user:(null==e?void 0:e.user)||void 0}))},i.prototype.remoteConfig=function(e){return this.client.remoteConfig(e||void 0)},i.prototype.onReady=function(e,t){this.client.onReady(e,t)},i.prototype.onInitialized=function(e){return this.client.onInitialized(e)},i.prototype.emitUpdatedUser=function(e){Ew.isUserEqual(this._currentUser,e)||this.emit("user-updated",e),this._currentUser=e},i.prototype.showUserExplorer=function(){this.client.showUserExplorer()},i.prototype.hideUserExplorer=function(){this.client.hideUserExplorer()},i}(lu);var U={exports:{}},T={},_w=Object.getOwnPropertySymbols,Ow=Object.prototype.hasOwnProperty,Rw=Object.prototype.propertyIsEnumerable;var On=function(){try{if(!Object.assign)return;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(e){n[e]=e}),"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},n)).join("")?void 0:1}catch(e){return}}()?Object.assign:function(e,t){for(var r,n=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),i=1;i<arguments.length;i++){for(var o in r=Object(arguments[i]))Ow.call(r,o)&&(n[o]=r[o]);if(_w)for(var s=_w(r),a=0;a<s.length;a++)Rw.call(r,s[a])&&(n[s[a]]=r[s[a]])}return n},Iw=On,P="function"==typeof Symbol&&Symbol.for,Sw=P?Symbol.for("react.element"):60103,Cw=P?Symbol.for("react.portal"):60106,Oo=P?Symbol.for("react.fragment"):60107,Nw=P?Symbol.for("react.strict_mode"):60108,y=P?Symbol.for("react.profiler"):60114,Aw=P?Symbol.for("react.provider"):60109,kw=P?Symbol.for("react.context"):60110,xw=P?Symbol.for("react.forward_ref"):60112,Ou=P?Symbol.for("react.suspense"):60113,Pw=P?Symbol.for("react.memo"):60115,Uw=P?Symbol.for("react.lazy"):60116,Mw="function"==typeof Symbol&&Symbol.iterator;function Dw(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Lw={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Fw={};function jw(e,t,r){this.props=e,this.context=t,this.refs=Fw,this.updater=r||Lw}function Vw(){}function Hw(e,t,r){this.props=e,this.context=t,this.refs=Fw,this.updater=r||Lw}jw.prototype.isReactComponent={},jw.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(Dw(85));this.updater.enqueueSetState(this,e,t,"setState")},jw.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},Vw.prototype=jw.prototype;var x=Hw.prototype=new Vw,zw=(x.constructor=Hw,Iw(x,jw.prototype),x.isPureReactComponent=!0,{current:null}),Kw=Object.prototype.hasOwnProperty,Bw={key:!0,ref:!0,__self:!0,__source:!0};function Gw(e,t,r){var n,i={},o=null,s=null;if(null!=t)for(n in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(o=""+t.key),t)Kw.call(t,n)&&!Bw.hasOwnProperty(n)&&(i[n]=t[n]);var a=arguments.length-2;if(1===a)i.children=r;else if(1<a){for(var u=Array(a),c=0;c<a;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(n in a=e.defaultProps)void 0===i[n]&&(i[n]=a[n]);return{$$typeof:Sw,type:e,key:o,ref:s,props:i,_owner:zw.current}}function qw(e){return"object"==typeof e&&null!==e&&e.$$typeof===Sw}var $w=/\/+/g,Yw=[];function Xw(e,t,r,n){var i;return Yw.length?((i=Yw.pop()).result=e,i.keyPrefix=t,i.func=r,i.context=n,i.count=0,i):{result:e,keyPrefix:t,func:r,context:n,count:0}}function Ww(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,Yw.length<10&&Yw.push(e)}function Jw(e,t,r){return null==e?0:function e(t,r,n,i){var o=!1;if(null===(t="undefined"!=(a=typeof t)&&"boolean"!==a?t:null))o=!0;else switch(a){case"string":case"number":o=!0;break;case"object":switch(t.$$typeof){case Sw:case Cw:o=!0}}if(o)return n(i,t,""===r?"."+Qw(t,0):r),1;if(o=0,r=""===r?".":r+":",Array.isArray(t))for(var s=0;s<t.length;s++){var a,u=r+Qw(a=t[s],s);o+=e(a,u,n,i)}else if("function"==typeof(u=null!==t&&"object"==typeof t&&"function"==typeof(u=Mw&&t[Mw]||t["@@iterator"])?u:null))for(t=u.call(t),s=0;!(a=t.next()).done;)o+=e(a=a.value,u=r+Qw(a,s++),n,i);else if("object"===a)throw n=""+t,Error(Dw(31,"[object Object]"===n?"object with keys {"+Object.keys(t).join(", ")+"}":n,""));return o}(e,"",t,r)}function Qw(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(e=e.key,r={"=":"=0",":":"=2"},"$"+(""+e).replace(/[=:]/g,function(e){return r[e]})):t.toString(36);var r}function Zw(e,t){e.func.call(e.context,t,e.count++)}function eE(e,t,r){var n=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?tE(e,n,r,function(e){return e}):null!=e&&(qw(e)&&(t=i+(!(i=e).key||t&&t.key===e.key?"":(""+e.key).replace($w,"$&/")+"/")+r,e={$$typeof:Sw,type:i.type,key:t,ref:i.ref,props:i.props,_owner:i._owner}),n.push(e))}function tE(e,t,r,n,i){var o="";Jw(e,eE,t=Xw(t,o=null!=r?(""+r).replace($w,"$&/")+"/":o,n,i)),Ww(t)}var rE={current:null};function nE(){var e=rE.current;if(null===e)throw Error(Dw(321));return e}var iE,oE,sE,Vn={ReactCurrentDispatcher:rE,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:zw,IsSomeRendererActing:{current:!1},assign:Iw},_=(T.Children={map:function(e,t,r){if(null==e)return e;var n=[];return tE(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;Jw(e,Zw,t=Xw(null,null,t,r)),Ww(t)},count:function(e){return Jw(e,function(){return null},null)},toArray:function(e){var t=[];return tE(e,t,null,function(e){return e}),t},only:function(e){if(qw(e))return e;throw Error(Dw(143))}},T.Component=jw,T.Fragment=Oo,T.Profiler=y,T.PureComponent=Hw,T.StrictMode=Nw,T.Suspense=Ou,T.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Vn,T.cloneElement=function(e,t,r){if(null==e)throw Error(Dw(267,e));var n=Iw({},e.props),i=e.key,o=e.ref,s=e._owner;if(null!=t)for(a in void 0!==t.ref&&(o=t.ref,s=zw.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps&&(u=e.type.defaultProps),t)Kw.call(t,a)&&!Bw.hasOwnProperty(a)&&(n[a]=(void 0===t[a]&&void 0!==u?u:t)[a]);var a=arguments.length-2;if(1===a)n.children=r;else if(1<a){for(var u=Array(a),c=0;c<a;c++)u[c]=arguments[c+2];n.children=u}return{$$typeof:Sw,type:e.type,key:i,ref:o,props:n,_owner:s}},T.createContext=function(e,t){return(e={$$typeof:kw,_calculateChangedBits:t=void 0===t?null:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:Aw,_context:e},e.Consumer=e},T.createElement=Gw,T.createFactory=function(e){var t=Gw.bind(null,e);return t.type=e,t},T.createRef=function(){return{current:null}},T.forwardRef=function(e){return{$$typeof:xw,render:e}},T.isValidElement=qw,T.lazy=function(e){return{$$typeof:Uw,_ctor:e,_status:-1,_result:null}},T.memo=function(e,t){return{$$typeof:Pw,type:e,compare:void 0===t?null:t}},T.useCallback=function(e,t){return nE().useCallback(e,t)},T.useContext=function(e,t){return nE().useContext(e,t)},T.useDebugValue=function(){},T.useEffect=function(e,t){return nE().useEffect(e,t)},T.useImperativeHandle=function(e,t,r){return nE().useImperativeHandle(e,t,r)},T.useLayoutEffect=function(e,t){return nE().useLayoutEffect(e,t)},T.useMemo=function(e,t){return nE().useMemo(e,t)},T.useReducer=function(e,t,r){return nE().useReducer(e,t,r)},T.useRef=function(e){return nE().useRef(e)},T.useState=function(e){return nE().useState(e)},T.version="16.14.0",{}),hi=Function.call.bind(Object.prototype.hasOwnProperty),aE=function(){};function uE(e,t,r,n,i){if("production"!==production)for(var o in e)if(sE(e,o)){var s,a;try{if("function"!=typeof e[o])throw(a=Error((n||"React class")+": "+r+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.")).name="Invariant Violation",a;s=e[o](t,o,n,r,null,iE)}catch(e){s=e}!s||s instanceof Error||aE((n||"React class")+": type specification of "+r+" `"+o+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof s+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),s instanceof Error&&!(s.message in oE)&&(oE[s.message]=!0,o=i?i():"",aE("Failed "+r+" type: "+s.message+(null!=o?o:"")))}}if("production"!==production&&(iE="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",oE={},sE=hi,aE=function(e){e="Warning: "+e;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(e){}}),uE.resetWarningCache=function(){"production"!==production&&(oE={})},"production"!==production){var cE=On,lE=uE,S="function"==typeof Symbol&&Symbol.for,fE=S?Symbol.for("react.element"):60103,pE=S?Symbol.for("react.portal"):60106,dE=S?Symbol.for("react.fragment"):60107,hE=S?Symbol.for("react.strict_mode"):60108,yE=S?Symbol.for("react.profiler"):60114,vE=S?Symbol.for("react.provider"):60109,mE=S?Symbol.for("react.context"):60110,gE=S?Symbol.for("react.concurrent_mode"):60111,wE=S?Symbol.for("react.forward_ref"):60112,EE=S?Symbol.for("react.suspense"):60113,TE=S?Symbol.for("react.suspense_list"):60120,bE=S?Symbol.for("react.memo"):60115,_E=S?Symbol.for("react.lazy"):60116,OE=S?Symbol.for("react.block"):60121,RE=S?Symbol.for("react.fundamental"):60117,IE=S?Symbol.for("react.responder"):60118,SE=S?Symbol.for("react.scope"):60119,CE="function"==typeof Symbol&&Symbol.iterator,NE="@@iterator";function AE(e){if(null===e||"object"!=typeof e)return null;e=CE&&e[CE]||e[NE];return"function"==typeof e?e:null}var kE={current:null},xE={current:null},PE=/^(.*)[\\\/]/,UE=1;function ME(e){if(null==e)return null;if("number"==typeof e.tag&&M("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case dE:return"Fragment";case pE:return"Portal";case yE:return"Profiler";case hE:return"StrictMode";case EE:return"Suspense";case TE:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case mE:return"Context.Consumer";case vE:return"Context.Provider";case wE:return t=e.render,r="ForwardRef",t=t.displayName||t.name||"",e.displayName||(""!==t?r+"("+t+")":r);case bE:return ME(e.type);case OE:return ME(e.render);case _E:r=(t=e)._status===UE?t._result:null;if(r)return ME(r)}var t,r;return null}var DE={},LE=null;function FE(e){LE=e}DE.getCurrentStack=null,DE.getStackAddendum=function(){var e,t,r,n,i,o="",s=(LE&&(e=ME(LE.type),r=LE._owner,o+=(e=e,t=LE._source,r=r&&ME(r.type),i="",t?(n=(s=t.fileName).replace(PE,""),i=" (at "+(n=/^index\./.test(n)&&(s=s.match(PE))&&(s=s[1])?s.replace(PE,"")+"/"+n:n)+":"+t.lineNumber+")"):r&&(i=" (created by "+r+")"),"\n in "+(e||"Unknown")+i)),DE.getCurrentStack);return s&&(o+=s()||""),o};var jE={ReactCurrentDispatcher:kE,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:xE,IsSomeRendererActing:{current:!1},assign:cE};function VE(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];HE("warn",e,r)}function M(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];HE("error",e,r)}function HE(e,t,r){0<r.length&&"string"==typeof r[r.length-1]&&0===r[r.length-1].indexOf("\n in")||""!==(n=jE.ReactDebugCurrentFrame.getStackAddendum())&&(t+="%s",r=r.concat([n]));var n=r.map(function(e){return""+e});n.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,n);try{var i=0,o="Warning: "+t.replace(/%s/g,function(){return r[i++]});throw new Error(o)}catch(e){}}cE(jE,{ReactDebugCurrentFrame:DE,ReactComponentTreeHook:{}});var zE={};function KE(e,t){var e=e.constructor,e=e&&(e.displayName||e.name)||"ReactClass",r=e+"."+t;zE[r]||(M("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,e),zE[r]=!0)}var BE={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,r){KE(e,"forceUpdate")},enqueueReplaceState:function(e,t,r,n){KE(e,"replaceState")},enqueueSetState:function(e,t,r,n){KE(e,"setState")}},GE={};function qE(e,t,r){this.props=e,this.context=t,this.refs=GE,this.updater=r||BE}Object.freeze(GE),qE.prototype.isReactComponent={},qE.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},qE.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var $E,YE={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for($E in YE)YE.hasOwnProperty($E)&&!function(e,t){Object.defineProperty(qE.prototype,e,{get:function(){VE("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})}($E,YE[$E]);function XE(){}function WE(e,t,r){this.props=e,this.context=t,this.refs=GE,this.updater=r||BE}XE.prototype=qE.prototype,(S=WE.prototype=new XE).constructor=WE,cE(S,qE.prototype),S.isPureReactComponent=!0;var JE,QE,ZE=Object.prototype.hasOwnProperty,e1={key:!0,ref:!0,__self:!0,__source:!0};function t1(e){if(ZE.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return}return void 0!==e.ref}function r1(e){if(ZE.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return}return void 0!==e.key}var n1={},i1=function(e,t,r,n,i,o,s){e={$$typeof:fE,type:e,key:t,ref:r,props:s,_owner:o,_store:{}};return Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(e,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(e,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e};function o1(e,t,r){var n,i={},o=null,s=null,a=null,u=null;if(null!=t)for(n in t1(t)&&(s=t.ref,"string"==typeof(c=t).ref&&xE.current&&c.__self&&xE.current.stateNode!==c.__self&&(f=ME(xE.current.type),n1[f]||(M('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://fb.me/react-strict-mode-string-ref',ME(xE.current.type),c.ref),n1[f]=!0))),r1(t)&&(o=""+t.key),a=void 0===t.__self?null:t.__self,u=void 0===t.__source?null:t.__source,t)ZE.call(t,n)&&!e1.hasOwnProperty(n)&&(i[n]=t[n]);var c,l,f,p,d=arguments.length-2;if(1==d)i.children=r;else if(1<d){for(var h=Array(d),y=0;y<d;y++)h[y]=arguments[y+2];Object.freeze&&Object.freeze(h),i.children=h}if(e&&e.defaultProps){var v=e.defaultProps;for(n in v)void 0===i[n]&&(i[n]=v[n])}function m(){QE||(QE=!0,M("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",l))}function g(){JE||(JE=!0,M("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",p))}return(o||s)&&(c="function"==typeof e?e.displayName||e.name||"Unknown":e,o&&(f=i,p=c,g.isReactWarning=!0,Object.defineProperty(f,"key",{get:g,configurable:!0})),s&&(r=i,l=c,m.isReactWarning=!0,Object.defineProperty(r,"ref",{get:m,configurable:!0}))),i1(e,o,s,a,u,xE.current,i)}function s1(e){return"object"==typeof e&&null!==e&&e.$$typeof===fE}var a1=".",u1=":",c1=!1,l1=/\/+/g;function f1(e){return(""+e).replace(l1,"$&/")}var p1=10,d1=[];function h1(e,t,r,n){var i;return d1.length?((i=d1.pop()).result=e,i.keyPrefix=t,i.func=r,i.context=n,i.count=0,i):{result:e,keyPrefix:t,func:r,context:n,count:0}}function y1(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,d1.length<p1&&d1.push(e)}function v1(e,t,r){return null==e?0:function e(t,r,n,i){var o,s=typeof t,a=!1;if(null===(t="undefined"!=s&&"boolean"!=s?t:null))a=!0;else switch(s){case"string":case"number":a=!0;break;case"object":switch(t.$$typeof){case fE:case pE:a=!0}}if(a)return n(i,t,""===r?a1+m1(t,0):r),1;var u=0,c=""===r?a1:r+u1;if(Array.isArray(t))for(var l=0;l<t.length;l++)u+=e(o=t[l],c+m1(o,l),n,i);else if("function"==typeof(r=AE(t))){r===t.entries&&(c1||VE("Using Maps as children is deprecated and will be removed in a future major release. Consider converting children to an array of keyed ReactElements instead."),c1=!0);for(var f,p=r.call(t),d=0;!(f=p.next()).done;)u+=e(o=f.value,c+m1(o,d++),n,i)}else if("object"==s)throw r="",r=" If you meant to render a collection of children, use an array instead."+DE.getStackAddendum(),s=""+t,Error("Objects are not valid as a React child (found: "+("[object Object]"==s?"object with keys {"+Object.keys(t).join(", ")+"}":s)+")."+r);return u}(e,"",t,r)}function m1(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(e=e.key,r={"=":"=0",":":"=2"},"$"+(""+e).replace(/[=:]/g,function(e){return r[e]})):t.toString(36);var r}function g1(e,t,r){var n=e.func,i=e.context;n.call(i,t,e.count++)}function w1(e,t,r){var n=e.result,i=e.keyPrefix,o=e.func,s=e.context,o=o.call(s,t,e.count++);Array.isArray(o)?E1(o,n,r,function(e){return e}):null!=o&&(s1(o)&&(e=i+(!(s=o).key||t&&t.key===o.key?"":f1(o.key)+"/")+r,o=i1(s.type,e,s.ref,s._self,s._source,s._owner,s.props)),n.push(o))}function E1(e,t,r,n,i){var o="",t=h1(t,o=null!=r?f1(r)+"/":o,n,i);v1(e,w1,t),y1(t)}function T1(e){return"string"==typeof e||"function"==typeof e||e===dE||e===gE||e===yE||e===hE||e===EE||e===TE||"object"==typeof e&&null!==e&&(e.$$typeof===_E||e.$$typeof===bE||e.$$typeof===vE||e.$$typeof===mE||e.$$typeof===wE||e.$$typeof===RE||e.$$typeof===IE||e.$$typeof===SE||e.$$typeof===OE)}function b1(){var e=kE.current;if(null===e)throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.");return e}function _1(){if(xE.current){var e=ME(xE.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}var O1=!1,R1={};function I1(e,t){var r;e._store&&!e._store.validated&&null==e.key&&(e._store.validated=!0,t=t,(r=_1())||(t="string"==typeof t?t:t.displayName||t.name)&&(r="\n\nCheck the top-level render call using <"+t+">."),R1[t=r]||(R1[t]=!0,r="",e&&e._owner&&e._owner!==xE.current&&(r=" It was passed a child from "+ME(e._owner.type)+"."),FE(e),M('Each child in a list should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.',t,r),FE(null)))}function S1(e,t){if("object"==typeof e)if(Array.isArray(e))for(var r=0;r<e.length;r++){var n=e[r];s1(n)&&I1(n,t)}else if(s1(e))e._store&&(e._store.validated=!0);else if(e){var i=AE(e);if("function"==typeof i&&i!==e.entries)for(var o,s=i.call(e);!(o=s.next()).done;)s1(o.value)&&I1(o.value,t)}}function C1(e){var t=e.type;if(null!=t&&"string"!=typeof t){var r,n=ME(t);if("function"==typeof t)r=t.propTypes;else{if("object"!=typeof t||t.$$typeof!==wE&&t.$$typeof!==bE)return;r=t.propTypes}r?(FE(e),lE(r,e.props,"prop",n,DE.getStackAddendum),FE(null)):void 0===t.PropTypes||O1||(O1=!0,M("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",n||"Unknown")),"function"!=typeof t.getDefaultProps||t.getDefaultProps.isReactClassApproved||M("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function N1(e,t,r){var n,i=T1(e),t=(i||(n="",(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(n+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),n+=(null!=(t=t)&&void 0!==(t=t.__source)?"\n\nCheck your code at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+".":"")||_1(),null===e?s="null":Array.isArray(e)?s="array":void 0!==e&&e.$$typeof===fE?(s="<"+(ME(e.type)||"Unknown")+" />",n=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,M("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,n)),o1.apply(this,arguments));if(null==t)return t;if(i)for(var o=2;o<arguments.length;o++)S1(arguments[o],e);if(e===dE){var s=t;FE(s);for(var a=Object.keys(s.props),u=0;u<a.length;u++){var c=a[u];if("children"!==c&&"key"!==c){M("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",c);break}}null!==s.ref&&M("Invalid attribute `ref` supplied to `React.Fragment`."),FE(null)}else C1(t);return t}var A1=!1;try{var k1=Object.freeze({}),x1=new Map([[k1,null]]),P1=new Set([k1]);x1.set(0,0),P1.add(0)}catch(e){}function U1(e,t,r){for(var n=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n,i,o=cE({},e.props),s=e.key,a=e.ref,u=e._self,c=e._source,l=e._owner;if(null!=t)for(n in t1(t)&&(a=t.ref,l=xE.current),r1(t)&&(s=""+t.key),e.type&&e.type.defaultProps&&(i=e.type.defaultProps),t)ZE.call(t,n)&&!e1.hasOwnProperty(n)&&(void 0===t[n]&&void 0!==i?o[n]=i[n]:o[n]=t[n]);var f=arguments.length-2;if(1==f)o.children=r;else if(1<f){for(var p=Array(f),d=0;d<f;d++)p[d]=arguments[d+2];o.children=p}return i1(e.type,s,a,u,c,l,o)}.apply(this,arguments),i=2;i<arguments.length;i++)S1(arguments[i],n.type);return C1(n),n}function M1(e){var t=N1.bind(null,e);return t.type=e,A1||(A1=!0,VE("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(t,"type",{enumerable:!1,get:function(){return VE("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t}S=N1,_.Children={map:function(e,t,r){if(null==e)return e;var n=[];return E1(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;t=h1(null,null,t,r),v1(e,g1,t),y1(t)},count:function(e){return v1(e,function(){return null},null)},toArray:function(e){var t=[];return E1(e,t,null,function(e){return e}),t},only:function(e){if(s1(e))return e;throw Error("React.Children.only expected to receive a single React element child.")}},_.Component=qE,_.Fragment=dE,_.Profiler=yE,_.PureComponent=WE,_.StrictMode=hE,_.Suspense=EE,_.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=jE,_.cloneElement=U1,_.createContext=function(e,t){void 0===t?t=null:null!==t&&"function"!=typeof t&&M("createContext: Expected the optional second argument to be a function. Instead received: %s",t);var r={$$typeof:mE,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},n=!(r.Provider={$$typeof:vE,_context:r}),i=!1,t={$$typeof:mE,_context:r,_calculateChangedBits:r._calculateChangedBits};return Object.defineProperties(t,{Provider:{get:function(){return i||(i=!0,M("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),r.Provider},set:function(e){r.Provider=e}},_currentValue:{get:function(){return r._currentValue},set:function(e){r._currentValue=e}},_currentValue2:{get:function(){return r._currentValue2},set:function(e){r._currentValue2=e}},_threadCount:{get:function(){return r._threadCount},set:function(e){r._threadCount=e}},Consumer:{get:function(){return n||(n=!0,M("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),r.Consumer}}}),r.Consumer=t,r._currentRenderer=null,r._currentRenderer2=null,r},_.createElement=S,_.createFactory=M1,_.createRef=function(){var e={current:null};return Object.seal(e),e},_.forwardRef=function(e){return null!=e&&e.$$typeof===bE?M("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?M("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&M("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null==e||null==e.defaultProps&&null==e.propTypes||M("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"),{$$typeof:wE,render:e}},_.isValidElement=s1,_.lazy=function(e){var t,r,n={$$typeof:_E,_ctor:e,_status:-1,_result:null};return Object.defineProperties(n,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){M("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),t=e,Object.defineProperty(n,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return r},set:function(e){M("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),r=e,Object.defineProperty(n,"propTypes",{enumerable:!0})}}}),n},_.memo=function(e,t){return T1(e)||M("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e),{$$typeof:bE,type:e,compare:void 0===t?null:t}},_.useCallback=function(e,t){return b1().useCallback(e,t)},_.useContext=function(e,t){var r,n=b1();return void 0!==t&&M("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",t,"number"==typeof t&&Array.isArray(arguments[2])?"\n\nDid you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://fb.me/rules-of-hooks":""),void 0!==e._context&&((r=e._context).Consumer===e?M("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):r.Provider===e&&M("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")),n.useContext(e,t)},_.useDebugValue=function(e,t){return b1().useDebugValue(e,t)},_.useEffect=function(e,t){return b1().useEffect(e,t)},_.useImperativeHandle=function(e,t,r){return b1().useImperativeHandle(e,t,r)},_.useLayoutEffect=function(e,t){return b1().useLayoutEffect(e,t)},_.useMemo=function(e,t){return b1().useMemo(e,t)},_.useReducer=function(e,t,r){return b1().useReducer(e,t,r)},_.useRef=function(e){return b1().useRef(e)},_.useState=function(e){return b1().useState(e)},_.version="16.14.0"}"production"===production?U.exports=T:U.exports=_;var D1=U.exports,L1=U.exports.createContext({hackle:void 0,userVersion:0,initialized:!1}),r=L1.Consumer,F1=L1.Provider;var j1=l.Logger.log;function V1(e,t){e=H1(e,t=void 0===t?"A":t);return{isLoading:e.isLoading,variation:e.decision.variation}}function H1(e,t){void 0===t&&(t="A");var r=U.exports.useContext(L1),n=r.hackle,i=r.userVersion,o=r.initialized,s=U.exports.useCallback(function(){return o?(null==n?void 0:n.variationDetail(e))||l.Decision.of(t,l.DecisionReason.EXCEPTION):l.Decision.of(t,l.DecisionReason.SDK_NOT_READY)},[t,e,n,o]),r=vw(U.exports.useState(function(){return n?s():(j1.error("HackleClient is not existed"),l.Decision.of(t,l.DecisionReason.EXCEPTION))}),2),a=r[0],r=r[1],i={key:e,userVersion:i,initialized:o},u=vw(U.exports.useState(i),2),c=u[0],u=u[1];return B1(c,i)||(u(i),r(s())),{isLoading:!o,decision:a}}function z1(e){e=K1(e);return{isLoading:e.isLoading,isOn:e.decision.isOn}}function K1(e){var t=U.exports.useContext(L1),r=t.hackle,n=t.userVersion,i=t.initialized,o=U.exports.useCallback(function(){return i?(null==r?void 0:r.featureFlagDetail(e))||l.FeatureFlagDecision.off(l.DecisionReason.EXCEPTION):l.FeatureFlagDecision.off(l.DecisionReason.SDK_NOT_READY)},[e,r,i]),t=vw(U.exports.useState(function(){return r?o():(j1.error("HackleClient is not existed"),l.FeatureFlagDecision.off(l.DecisionReason.EXCEPTION))}),2),s=t[0],t=t[1],n={key:e,userVersion:n,initialized:i},a=vw(U.exports.useState(n),2),u=a[0],a=a[1];return B1(u,n)||(a(n),t(o())),{isLoading:!i,decision:s}}function B1(e,t){return e.initialized===t.initialized&&e.key===t.key&&e.userVersion===t.userVersion}function G1(e){var t,r=e.experimentKey,e=e.children,n=(r=V1(r)).isLoading,i=r.variation;return n?null:e&&"function"==typeof e?e(i):(U.exports.Children.forEach(e,function(e){U.exports.isValidElement(e)&&(e.props.variation?i===e.props.variation&&(t=e):e.props.default&&(t=e))}),t?U.exports.cloneElement(t,{variation:i}):null)}function q1(e){return e.variation,e=e.children,U.exports.createElement(U.exports.Fragment,null,e)}function $1(e){var t=(r=z1(e.featureKey)).isLoading,r=r.isOn;return t?null:D1.createElement(D1.Fragment,null,e.children(r))}l.HackleContext=L1,l.HackleContextConsumer=r,l.HackleContextProvider=F1,l.HackleExperiment=G1,l.HackleFeature=$1,l.HackleProvider=function(e){var t=e.hackleClient,r=e.user,n=void 0===(i=e.timeout)?3e3:i,i=void 0!==(i=e.supportSSR)&&i,e=e.children,o=vw(U.exports.useState({hackle:t,initialized:!1,userVersion:0}),2),s=o[0],a=o[1];return U.exports.useEffect(function(){null!=r&&t.setUser(r)},[r]),U.exports.useEffect(function(){function e(){a(function(e){return yw(yw({},e),{userVersion:e.userVersion+1})})}return t.on("user-updated",e),function(){t.off("user-updated",e)}},[t]),U.exports.useEffect(function(){t.onInitialized({timeout:n}).then(function(){a(function(e){return yw(yw({},e),{initialized:!0})})},function(){a(function(e){return yw(yw({},e),{initialized:!0})})}).catch(function(){a(function(e){return yw(yw({},e),{initialized:!0})})})},[t]),i||s.initialized?D1.createElement(F1,{value:s},e):null},l.HackleVariation=q1,l.createInstance=function(e,t){return new bw(e,t)},l.useFeature=function(e){var t=(n=U.exports.useContext(L1)).hackle,r=n.userVersion,n=n.initialized,i=U.exports.useCallback(function(){return(null==t?void 0:t.isFeatureOn(e))||!1},[e,t,n]),o=(s=vw(U.exports.useState(function(){return t?i():("undefined"!=typeof window&&j1.error("HackleClient is not existed"),!1)}),2))[0],s=s[1],r={key:e,userVersion:r,initialized:n},a=(n=vw(U.exports.useState(r),2))[0],n=n[1];return B1(a,r)||(n(r),s(i())),o},l.useFeatureFlagDetail=function(e){var t=(n=U.exports.useContext(L1)).hackle,r=n.userVersion,n=n.initialized,i=U.exports.useCallback(function(){return(null==t?void 0:t.featureFlagDetail(e))||l.FeatureFlagDecision.off(l.DecisionReason.EXCEPTION)},[e,t,n]),o=(s=vw(U.exports.useState(function(){return t?i():("undefined"!=typeof window&&j1.error("HackleClient is not existed"),l.FeatureFlagDecision.off(l.DecisionReason.EXCEPTION))}),2))[0],s=s[1],r={key:e,userVersion:r,initialized:n},a=(n=vw(U.exports.useState(r),2))[0],n=n[1];return B1(a,r)||(n(r),s(i())),o},l.useLoadableFeature=z1,l.useLoadableFeatureDetail=K1,l.useLoadableRemoteConfig=function(){var e=(o=U.exports.useContext(L1)).hackle,t=o.userVersion,r=o.initialized,n=U.exports.useCallback(function(){return r&&(null==e?void 0:e.remoteConfig())||new l.EmptyHackleRemoteConfig},[e,r]),i=(o=vw(U.exports.useState(function(){return e||j1.error("HackleClient is not existed"),n()}),2))[0],o=o[1],t={userVersion:t,initialized:r},s=(a=vw(U.exports.useState(t),2))[0],a=a[1];return B1(s,t)||(a(t),o(n())),{isLoading:!r,remoteConfig:i}},l.useLoadableVariation=V1,l.useLoadableVariationDetail=H1,l.useRemoteConfig=function(){var e=(r=U.exports.useContext(L1)).hackle,t=r.userVersion,r=r.initialized,n=U.exports.useCallback(function(){return(null==e?void 0:e.remoteConfig())||new l.EmptyHackleRemoteConfig},[e,r]),i=(o=vw(U.exports.useState(function(){return e||j1.error("HackleClient is not existed"),n()}),2))[0],o=o[1],t={userVersion:t,initialized:r},s=(r=vw(U.exports.useState(t),2))[0],r=r[1];return B1(s,t)||(r(t),o(n())),i},l.useTrack=function(){var t=U.exports.useContext(L1).hackle;return t?function(e){return null==t?void 0:t.track(e)}:(j1.error("HackleClient is not existed"),function(){})},l.useVariation=function(e,t){void 0===t&&(t="A");var r=(a=U.exports.useContext(L1)).hackle,n=a.userVersion,i=a.initialized,o=U.exports.useCallback(function(){return i&&(null==r?void 0:r.variation(e))||t},[t,e,r,i]),s=(a=vw(U.exports.useState(function(){return r?o():("undefined"!=typeof window&&j1.error("HackleClient is not existed"),t)}),2))[0],a=a[1],n={key:e,userVersion:n,initialized:i},u=(c=vw(U.exports.useState(n),2))[0],c=c[1];return B1(u,n)||(c(n),a(o())),s},l.useVariationDetail=function(e,t){void 0===t&&(t="A");var r=(i=U.exports.useContext(L1)).hackle,n=i.userVersion,i=i.initialized,o=U.exports.useCallback(function(){return(null==r?void 0:r.variationDetail(e))||l.Decision.of(t,l.DecisionReason.EXCEPTION)},[t,e,r,i]),s=(a=vw(U.exports.useState(function(){return r?o():("undefined"!=typeof window&&j1.error("HackleClient is not existed"),l.Decision.of(t,l.DecisionReason.EXCEPTION))}),2))[0],a=a[1],n={key:e,userVersion:n,initialized:i},u=(i=vw(U.exports.useState(n),2))[0],i=i[1];return B1(u,n)||(i(n),a(o())),s},Object.defineProperty(l,"__esModule",{value:!0})});
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).hackleReactSDK={})}(this,function(l){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function D(r){if(r.__esModule)return r;var n=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(r).forEach(function(e){var t=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(n,e,t.get?t:{enumerable:!0,get:function(){return r[e]}})}),n}var L,t={},F=new Uint8Array(16);function j(){if(L=L||"undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto))return L(F);throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported")}var V=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function H(e){return"string"==typeof e&&V.test(e)}for(var z,B,G=[],K=0;K<256;++K)G.push((K+256).toString(16).substr(1));function q(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,e=(G[e[t+0]]+G[e[t+1]]+G[e[t+2]]+G[e[t+3]]+"-"+G[e[t+4]]+G[e[t+5]]+"-"+G[e[t+6]]+G[e[t+7]]+"-"+G[e[t+8]]+G[e[t+9]]+"-"+G[e[t+10]]+G[e[t+11]]+G[e[t+12]]+G[e[t+13]]+G[e[t+14]]+G[e[t+15]]).toLowerCase();if(H(e))return e;throw TypeError("Stringified UUID is invalid")}var $=0,Y=0;function X(e){if(!H(e))throw TypeError("Invalid UUID");var t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r}function W(e,s,a){function t(e,t,r,n){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}(e)),16!==(t="string"==typeof t?X(t):t).length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var i=new Uint8Array(16+e.length);if(i.set(t),i.set(e,t.length),(i=a(i))[6]=15&i[6]|s,i[8]=63&i[8]|128,r){n=n||0;for(var o=0;o<16;++o)r[n+o]=i[o];return r}return q(i)}try{t.name=e}catch(e){}return t.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",t.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",t}function J(e){return 14+(e+64>>>9<<4)+1}function Q(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function Z(e,t,r,n,i,o){return Q((t=Q(Q(t,e),Q(n,o)))<<i|t>>>32-i,r)}function ee(e,t,r,n,i,o,s){return Z(t&r|~t&n,e,t,i,o,s)}function te(e,t,r,n,i,o,s){return Z(t&n|r&~n,e,t,i,o,s)}function re(e,t,r,n,i,o,s){return Z(t^r^n,e,t,i,o,s)}function ne(e,t,r,n,i,o,s){return Z(r^(t|~n),e,t,i,o,s)}var r=W("v3",48,function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}for(var n=function(e,t){e[t>>5]|=128<<t%32,e[J(t)-1]=t;for(var r=1732584193,n=-271733879,i=-1732584194,o=271733878,s=0;s<e.length;s+=16){var a=r,u=n,c=i,l=o;r=ee(r,n,i,o,e[s],7,-680876936),o=ee(o,r,n,i,e[s+1],12,-389564586),i=ee(i,o,r,n,e[s+2],17,606105819),n=ee(n,i,o,r,e[s+3],22,-1044525330),r=ee(r,n,i,o,e[s+4],7,-176418897),o=ee(o,r,n,i,e[s+5],12,1200080426),i=ee(i,o,r,n,e[s+6],17,-1473231341),n=ee(n,i,o,r,e[s+7],22,-45705983),r=ee(r,n,i,o,e[s+8],7,1770035416),o=ee(o,r,n,i,e[s+9],12,-1958414417),i=ee(i,o,r,n,e[s+10],17,-42063),n=ee(n,i,o,r,e[s+11],22,-1990404162),r=ee(r,n,i,o,e[s+12],7,1804603682),o=ee(o,r,n,i,e[s+13],12,-40341101),i=ee(i,o,r,n,e[s+14],17,-1502002290),n=ee(n,i,o,r,e[s+15],22,1236535329),r=te(r,n,i,o,e[s+1],5,-165796510),o=te(o,r,n,i,e[s+6],9,-1069501632),i=te(i,o,r,n,e[s+11],14,643717713),n=te(n,i,o,r,e[s],20,-373897302),r=te(r,n,i,o,e[s+5],5,-701558691),o=te(o,r,n,i,e[s+10],9,38016083),i=te(i,o,r,n,e[s+15],14,-660478335),n=te(n,i,o,r,e[s+4],20,-405537848),r=te(r,n,i,o,e[s+9],5,568446438),o=te(o,r,n,i,e[s+14],9,-1019803690),i=te(i,o,r,n,e[s+3],14,-187363961),n=te(n,i,o,r,e[s+8],20,1163531501),r=te(r,n,i,o,e[s+13],5,-1444681467),o=te(o,r,n,i,e[s+2],9,-51403784),i=te(i,o,r,n,e[s+7],14,1735328473),n=te(n,i,o,r,e[s+12],20,-1926607734),r=re(r,n,i,o,e[s+5],4,-378558),o=re(o,r,n,i,e[s+8],11,-2022574463),i=re(i,o,r,n,e[s+11],16,1839030562),n=re(n,i,o,r,e[s+14],23,-35309556),r=re(r,n,i,o,e[s+1],4,-1530992060),o=re(o,r,n,i,e[s+4],11,1272893353),i=re(i,o,r,n,e[s+7],16,-155497632),n=re(n,i,o,r,e[s+10],23,-1094730640),r=re(r,n,i,o,e[s+13],4,681279174),o=re(o,r,n,i,e[s],11,-358537222),i=re(i,o,r,n,e[s+3],16,-722521979),n=re(n,i,o,r,e[s+6],23,76029189),r=re(r,n,i,o,e[s+9],4,-640364487),o=re(o,r,n,i,e[s+12],11,-421815835),i=re(i,o,r,n,e[s+15],16,530742520),n=re(n,i,o,r,e[s+2],23,-995338651),r=ne(r,n,i,o,e[s],6,-198630844),o=ne(o,r,n,i,e[s+7],10,1126891415),i=ne(i,o,r,n,e[s+14],15,-1416354905),n=ne(n,i,o,r,e[s+5],21,-57434055),r=ne(r,n,i,o,e[s+12],6,1700485571),o=ne(o,r,n,i,e[s+3],10,-1894986606),i=ne(i,o,r,n,e[s+10],15,-1051523),n=ne(n,i,o,r,e[s+1],21,-2054922799),r=ne(r,n,i,o,e[s+8],6,1873313359),o=ne(o,r,n,i,e[s+15],10,-30611744),i=ne(i,o,r,n,e[s+6],15,-1560198380),n=ne(n,i,o,r,e[s+13],21,1309151649),r=ne(r,n,i,o,e[s+4],6,-145523070),o=ne(o,r,n,i,e[s+11],10,-1120210379),i=ne(i,o,r,n,e[s+2],15,718787259),n=ne(n,i,o,r,e[s+9],21,-343485551),r=Q(r,a),n=Q(n,u),i=Q(i,c),o=Q(o,l)}return[r,n,i,o]}(function(e){if(0===e.length)return[];for(var t=8*e.length,r=new Uint32Array(J(t)),n=0;n<t;n+=8)r[n>>5]|=(255&e[n/8])<<n%32;return r}(e),8*e.length),i=[],o=32*n.length,s="0123456789abcdef",a=0;a<o;a+=8){var u=n[a>>5]>>>a%32&255,u=parseInt(s.charAt(u>>>4&15)+s.charAt(15&u),16);i.push(u)}return i});function ie(e,t){return e<<t|e>>>32-t}var oe=W("v5",80,function(e){var t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var n=unescape(encodeURIComponent(e));e=[];for(var i=0;i<n.length;++i)e.push(n.charCodeAt(i))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var o=e.length/4+2,s=Math.ceil(o/16),a=new Array(s),u=0;u<s;++u){for(var c=new Uint32Array(16),l=0;l<16;++l)c[l]=e[64*u+4*l]<<24|e[64*u+4*l+1]<<16|e[64*u+4*l+2]<<8|e[64*u+4*l+3];a[u]=c}a[s-1][14]=8*(e.length-1)/Math.pow(2,32),a[s-1][14]=Math.floor(a[s-1][14]),a[s-1][15]=8*(e.length-1)&4294967295;for(var f=0;f<s;++f){for(var p=new Uint32Array(80),d=0;d<16;++d)p[d]=a[f][d];for(var h=16;h<80;++h)p[h]=ie(p[h-3]^p[h-8]^p[h-14]^p[h-16],1);for(var y=r[0],v=r[1],g=r[2],m=r[3],w=r[4],E=0;E<80;++E)var T=Math.floor(E/20),T=ie(y,5)+function(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:return t^r^n;case 2:return t&r^t&n^r&n;case 3:return t^r^n}}(T,v,g,m)+w+t[T]+p[E]>>>0,w=m,m=g,g=ie(v,30)>>>0,v=y,y=T;r[0]=r[0]+y>>>0,r[1]=r[1]+v>>>0,r[2]=r[2]+g>>>0,r[3]=r[3]+m>>>0,r[4]=r[4]+w>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]});var se,r=D(Object.freeze({__proto__:null,v1:function(e,t,r){var n=t&&r||0,i=t||new Array(16),o=(e=e||{}).node||z,r=void 0!==e.clockseq?e.clockseq:B,s=(null!=o&&null!=r||(s=e.random||(e.rng||j)(),null==o&&(o=z=[1|s[0],s[1],s[2],s[3],s[4],s[5]]),null==r&&(r=B=16383&(s[6]<<8|s[7]))),void 0!==e.msecs?e.msecs:Date.now()),a=void 0!==e.nsecs?e.nsecs:Y+1,u=s-$+(a-Y)/1e4;if(u<0&&void 0===e.clockseq&&(r=r+1&16383),1e4<=(a=(u<0||$<s)&&void 0===e.nsecs?0:a))throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");$=s,B=r,u=(1e4*(268435455&(s+=122192928e5))+(Y=a))%4294967296,i[n++]=u>>>24&255,i[n++]=u>>>16&255,i[n++]=u>>>8&255,i[n++]=255&u,e=s/4294967296*1e4&268435455,i[n++]=e>>>8&255,i[n++]=255&e,i[n++]=e>>>24&15|16,i[n++]=e>>>16&255,i[n++]=r>>>8|128,i[n++]=255&r;for(var c=0;c<6;++c)i[n+c]=o[c];return t||q(i)},v3:r,v4:function(e,t,r){var n=(e=e||{}).random||(e.rng||j)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var i=0;i<16;++i)t[r+i]=n[i];return t}return q(n)},v5:oe,NIL:"00000000-0000-0000-0000-000000000000",version:function(e){if(H(e))return parseInt(e.substr(14,1),16);throw TypeError("Invalid UUID")},validate:H,stringify:q,parse:X})),ae=(l.setUserId=void 0,l.sanitizeUser=void 0,l.removeUserId=void 0,l.getUserId=void 0,l.Version=void 0,l.Variation=void 0,l.TargetingType=void 0,l.TargetRule=void 0,l.TargetMatch=void 0,l.TargetKey=void 0,l.TargetCondition=void 0,l.TargetAction=void 0,l.Target=void 0,l.TARGET_KEY_TYPES=void 0,l.TARGET_ACTION_TYPES=void 0,l.Slot=void 0,l.Segment=void 0,l.SEGMENT_TYPES=void 0,l.RemoteConfigTargetRule=void 0,l.RemoteConfigParameterValue=void 0,l.RemoteConfigParameter=void 0,l.RemoteConfigDecision=void 0,l.ParameterConfiguration=void 0,l.MetaVersion=void 0,l.MATCH_VALUE_TYPES=void 0,l.MATCH_TYPES=void 0,l.MATCH_OPERATORS=void 0,l.Logger=void 0,l.IdentifiersBuilder=void 0,l.IdentifierType=void 0,l.FeatureFlagDecision=void 0,l.Experiment=void 0,l.EventType=void 0,l.EmptyParameterConfig=void 0,l.EmptyHackleRemoteConfig=void 0,l.DecisionReason=void 0,l.Decision=void 0,l.CoreVersion=void 0,l.ContainerGroup=void 0,l.Container=void 0,l.Bucket=void 0,Object.defineProperty(t,"__esModule",{value:!0}),r),ue=function(e,t){return(ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function ce(e,t){function r(){this.constructor=e}ue(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var h=function(){return(h=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function le(e,s,a,u){return new(a=a||Promise)(function(r,t){function n(e){try{o(u.next(e))}catch(e){t(e)}}function i(e){try{o(u.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?r(e.value):((t=e.value)instanceof a?t:new a(function(e){e(t)})).then(n,i)}o((u=u.apply(e,s||[])).next())})}function fe(n,i){var o,s,a,u={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(r){return function(e){var t=[r,e];if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,s&&(a=2&t[0]?s.return:t[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,t[1])).done)return a;switch(s=0,(t=a?[2&t[0],a.value]:t)[0]){case 0:case 1:a=t;break;case 4:return u.label++,{value:t[1],done:!1};case 5:u.label++,s=t[1],t=[0];continue;case 7:t=u.ops.pop(),u.trys.pop();continue;default:if(!((a=0<(a=u.trys).length&&a[a.length-1])||6!==t[0]&&2!==t[0])){u=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){u.label=t[1];break}if(6===t[0]&&u.label<a[1]){u.label=a[1],a=t;break}if(a&&u.label<a[2]){u.label=a[2],u.ops.push(t);break}a[2]&&u.ops.pop(),u.trys.pop();continue}t=i.call(n,u)}catch(e){t=[6,e],s=0}finally{o=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}}Ae.isNotNullOrUndefined=function(e){return null!=e},Ae.isNullOrUndefined=function(e){return null==e},Ae.requiredNotNullOrUndefined=function(e,t){if(void 0===t&&(t=function(){return"Required value is null or undefined"}),this.isNullOrUndefined(e))throw new Error(t());return e};var a=Ae,f=(Ce.mapNotNullOrUndefined=function(e,t){for(var r=Array(),n=0,i=e;n<i.length;n++){var o=t(i[n]);a.isNotNullOrUndefined(o)&&r.push(o)}return r},Ce.associateTo=function(e,t,r){for(var n=0,i=e;n<i.length;n++){var o=r(i[n]);t.set(o[0],o[1])}return t},Ce.associate=function(e,t){return this.associateTo(e,new Map,t)},Ce.associateBy=function(e,t){return this.associate(e,function(e){return[t(e),e]})},Ce.chunked=function(e,t){for(var r=[],n=e.slice();n.length;)r.push(n.splice(0,t));return r},Ce),pe={DISABLE:0,ERROR:1,WARN:2,INFO:3,DEBUG:4},de=(Ne.setLogLevel=function(e){this.logLevel=e=void 0===e?pe.INFO:e},Ne.initCounter=function(t){this.counters=f.associate(Object.keys(pe),function(e){return[e,t(e)]})},Ne._log=function(e,t){var r;switch(e){case"WARN":r="orange";break;case"ERROR":r="red";break;default:r="#AAAAAA"}if(t instanceof Error)he.log(e,r,t.message,t);else try{he.log(e,r,t)}catch(e){}},Ne.increment=function(e){var t;null!=(t=null==(t=Ne.counters)?void 0:t.get(e))&&t.increment()},Ne.logLevel=pe.INFO,Ne.log={error:function(e){pe.ERROR<=Ne.logLevel&&(Ne._log("ERROR",e),Ne.increment("ERROR"))},warn:function(e){pe.WARN<=Ne.logLevel&&(Ne._log("WARN",e),Ne.increment("WARN"))},info:function(e){pe.INFO<=Ne.logLevel&&(Ne._log("INFO",e),Ne.increment("INFO"))},debug:function(e){pe.DEBUG<=Ne.logLevel&&(Ne._log("DEBUG",e),Ne.increment("DEBUG"))}},Ne),he=(Se.log=function(e,t,r,n){try{console.log("%c[".concat(e,"] Hackle: ").concat(r),"color: ".concat(t))}catch(e){}},Se),ye="X-HACKLE-SDK-KEY",ve="X-HACKLE-SDK-NAME",ge="X-HACKLE-SDK-VERSION",me="X-HACKLE-SDK-TIME",we=[0,8,16,32,64,128,256,512],Ee="_hackle_hid",Te="_hackle_id",be="_hackle_session_id",_e="_hackle_last_event_ts",Oe="_hackle_uid",Re="_hackle_did",Ie=de.log;function Se(){}function Ne(){}function Ce(){}function Ae(){}function ke(e,t){for(var r in t)t.hasOwnProperty(r)&&e.setRequestHeader(r,t[r])}function xe(e,t,r,n){this.id=e,this.key=t,this.isDropped=r,this.parameterConfigurationId=n}function Pe(e,t,r){this.seed=e,this.slotSize=t,this.slots=r}function Ue(e,t){this.id=e,this.key=t}function Me(e){var t,r={};return r.id=null!=(t=Xe.sanitizeValue(e.id))?t:void 0,r.userId=null!=(t=Xe.sanitizeValue(e.userId))?t:void 0,r.deviceId=null!=(t=Xe.sanitizeValue(e.deviceId))?t:void 0,"object"==typeof e.properties&&(r.properties=Je.sanitize(e.properties)),"object"==typeof e.identifiers&&(r.identifiers=Xe.sanitize(e.identifiers)),Boolean(r.id||r.userId||r.deviceId||r.identifiers&&0<Object.keys(r.identifiers).length)?r:null}function De(e){this.conditions=e}function Le(e,t){this.key=e,this.match=t}function Fe(e,t){this.type=e,this.name=t}function je(e,t,r,n){this.type=e,this.operator=t,this.valueType=r,this.values=n}function Ve(e,t,r){this.type=e,this.variationId=t,this.bucketId=r}function He(e,t){this.target=e,this.action=t}function ze(e,t,r,n){this.id=e,this.key=t,this.type=r,this.targets=n}function Be(e,t){this.id=e,this.experiments=t}function Ge(e,t,r,n,i,o){this.id=e,this.key=t,this.type=r,this.identifierType=n,this.targetRules=i,this.defaultValue=o}function Ke(e,t,r,n,i){this.key=e,this.name=t,this.target=r,this.bucketId=n,this.value=i}function qe(e,t){this.id=e,this.rawValue=t}var $e={getRequest:function(n,i){return{abort:function(){},responsePromise:new Promise(function(e,t){var r=new XMLHttpRequest;r.open("GET",n),r.onreadystatechange=function(){r.readyState===r.DONE&&(0===r.status?t(new Error("Request error")):e({statusCode:r.status,body:r.responseText}))},r.onerror=function(){t()},r.setRequestHeader("content-type","application/json"),ke(r,i),r.send()})}},postRequest:function(e,t,r,n,i){var t=JSON.stringify(t),o=new XMLHttpRequest;o.open("POST",e),o.onreadystatechange=function(){o.readyState===o.DONE&&(200<=o.status&&o.status<400?n({statusCode:o.status}):i&&i({statusCode:o.status}))},o.setRequestHeader("content-type","application/json"),ke(o,r),o.send(t)},sendBeacon:function(e,t,r,n,i){var o=!1;if(o="undefined"!=typeof window?window&&window.navigator&&window.navigator.sendBeacon&&!0:o){o=JSON.stringify(t),t=new URLSearchParams;if(t.append("sdkName",r[ve]),t.append("sdkVersion",r[ge]),t.append("sdkKey",r[ye]),t.append("data",o),!window.navigator.sendBeacon(e,t))return Ie.error("sendBeacon failed to queue request."),void i();n()}else Ie.error("Does not support sendBeacon"),i()}},Ye=de.log,Xe=(bt.isEquals=function(t,r){if(null==r)return!1;var e=Object.keys(t);return e.length===Object.keys(r).length&&e.every(function(e){return t[e]===r[e]})},bt.sanitize=function(e){var t={};if(a.isNullOrUndefined(e))return t;for(var r=0,n=Object.entries(e);r<n.length;r++){var i=n[r],o=i[0],i=i[1];this.isValidType(o)?(i=this.sanitizeValue(i),a.isNullOrUndefined(i)?Ye.debug("Invalid identifier value. The identifier type value be a string of 512 characters or less. [".concat(o,"]")):t[o]=i):Ye.debug("Invalid identifier type. The identifier type must be a string of 128 characters or less. [".concat(o,"]"))}return t},bt.isValidType=function(e){return!a.isNullOrUndefined(e)&&"string"==typeof e&&0<e.length&&e.length<=this.MAX_IDENTIFIER_TYPE_LENGTH},bt.sanitizeValue=function(e){return"string"==typeof e&&0<e.length&&e.length<=this.MAX_IDENTIFIER_VALUE_LENGTH?e:"number"==typeof e?e.toString():null},bt.MAX_IDENTIFIER_TYPE_LENGTH=128,bt.MAX_IDENTIFIER_VALUE_LENGTH=512,bt),We=de.log,Je=(Tt.sanitize=function(e){var t={};if(a.isNullOrUndefined(e))return t;for(var r=0,n=Object.entries(e);r<n.length;r++){var i,o=n[r],s=o[0],o=o[1];if(Object.keys(t).length>=this.MAX_PROPERTIES_COUNT){We.debug("The number of properties cannot exceed 128. Drops excess properties. [".concat(s,", ").concat(o,"]"));break}this.isValidKey(s)?(i=this.sanitizeValue(s,o),a.isNullOrUndefined(i)?We.debug("Invalid property value. The property value mus be 'string(..1024)', 'number', 'boolean', or 'array' type. [".concat(o,"]")):t[s]=i):We.debug("Invalid property key. The property key must be a string of 128 characters or less. [".concat(s,"]"))}return t},Tt.isValidProperty=function(e,t){return this.isValidKey(e)&&this.isValidValue(t)},Tt.isValidKey=function(e){return a.isNotNullOrUndefined(e)&&"string"==typeof e&&0<e.length&&e.length<=this.MAX_PROPERTY_KEY_LENGTH},Tt.sanitizeValue=function(e,t){var r=this;return e.startsWith(this.SYSTEM_PROPERTY_KEY_PREFIX)?t:this.isValidValue(t)?Array.isArray(t)?t.filter(function(e){return r.isValidElement(e)}):t:null},Tt.isValidValue=function(e){return!a.isNullOrUndefined(e)&&("string"==typeof e?e.length<=this.MAX_PROPERTY_VALUE_LENGTH:"number"==typeof e?!isNaN(e)&&isFinite(e):"boolean"==typeof e||Array.isArray(e))},Tt.isValidElement=function(e){return!a.isNullOrUndefined(e)&&("string"==typeof e?0<e.length&&e.length<=this.MAX_PROPERTY_VALUE_LENGTH:"number"==typeof e)},Tt.SYSTEM_PROPERTY_KEY_PREFIX="$",Tt.MAX_PROPERTIES_COUNT=128,Tt.MAX_PROPERTY_KEY_LENGTH=128,Tt.MAX_PROPERTY_VALUE_LENGTH=1024,Tt),Qe=de.log,Ze=(Et.of=function(e,t){return new Et(e,t)},Et),et=(wt.of=function(e,t,r){return new wt(e,t,r=void 0===r?new rt:r)},wt.prototype.get=function(e,t){return this.config.get(e,t)},wt),tt=(mt.on=function(e,t){return new mt(!0,e,t=void 0===t?new rt:t)},mt.off=function(e,t){return new mt(!1,e,t=void 0===t?new rt:t)},mt.prototype.get=function(e,t){return this.config.get(e,t)},mt),oe=(gt.prototype.get=function(e,t){return t},gt),rt=(vt.prototype.get=function(e,t){return t},vt),u=(yt.SDK_NOT_READY="SDK_NOT_READY",yt.EXCEPTION="EXCEPTION",yt.INVALID_INPUT="INVALID_INPUT",yt.EXPERIMENT_NOT_FOUND="EXPERIMENT_NOT_FOUND",yt.EXPERIMENT_DRAFT="EXPERIMENT_DRAFT",yt.EXPERIMENT_PAUSED="EXPERIMENT_PAUSED",yt.EXPERIMENT_COMPLETED="EXPERIMENT_COMPLETED",yt.OVERRIDDEN="OVERRIDDEN",yt.TRAFFIC_NOT_ALLOCATED="TRAFFIC_NOT_ALLOCATED",yt.NOT_IN_MUTUAL_EXCLUSION_EXPERIMENT="NOT_IN_MUTUAL_EXCLUSION_EXPERIMENT",yt.IDENTIFIER_NOT_FOUND="IDENTIFIER_NOT_FOUND",yt.VARIATION_DROPPED="VARIATION_DROPPED",yt.TRAFFIC_ALLOCATED="TRAFFIC_ALLOCATED",yt.NOT_IN_EXPERIMENT_TARGET="NOT_IN_EXPERIMENT_TARGET",yt.FEATURE_FLAG_NOT_FOUND="FEATURE_FLAG_NOT_FOUND",yt.FEATURE_FLAG_INACTIVE="FEATURE_FLAG_INACTIVE",yt.INDIVIDUAL_TARGET_MATCH="INDIVIDUAL_TARGET_MATCH",yt.TARGET_RULE_MATCH="TARGET_RULE_MATCH",yt.DEFAULT_RULE="DEFAULT_RULE",yt.REMOTE_CONFIG_PARAMETER_NOT_FOUND="REMOTE_CONFIG_PARAMETER_NOT_FOUND",yt.TYPE_MISMATCH="TYPE_MISMATCH",yt),nt=(ht.prototype._winnerVariationOrNull=function(){if(this._winnerVariationId)return this._getVariationByIdOrNull(this._winnerVariationId)},ht.prototype._getVariationByIdOrNull=function(t){return this.variations.find(function(e){return e.id===t})},ht.prototype._getVariationByKeyOrNull=function(t){return this.variations.find(function(e){return e.key===t})},ht),it=(dt.prototype.contains=function(e){return this.startInclusive<=e&&e<this.endExclusive},dt),ot=(pt.ID="$id",pt.USER="$userId",pt.DEVICE="$deviceId",pt.SESSION="$sessionId",pt.HACKLE_DEVICE="$hackleDeviceId",pt),st=(ft.prototype.addIdentifiers=function(e){for(var t in e)this.add(t,e[t]);return this},ft.prototype.add=function(e,t){var r=Xe.sanitizeValue(t);return Xe.isValidType(e)&&r?this.identifiers[e]=t:Qe.warn("Invalid user identifier [type=".concat(e,", value=").concat(t,"]")),this},ft.prototype.build=function(){return this.identifiers},ft),at=(lt.prototype.getGroupOrNull=function(t){return this.groups.find(function(e){return e.id===t})},lt),ut=(ct.prototype.get=function(e,t){e=this.parameters.get(e);return!a.isNullOrUndefined(e)&&(a.isNullOrUndefined(t)||typeof e==typeof t)?e:t},ct);function ct(e,t){this.id=e,this.parameters=t}function lt(e,t,r){this.id=e,this.bucketId=t,this.groups=r}function ft(){this.identifiers={}}function pt(){}function dt(e,t,r){this.startInclusive=e,this.endExclusive=t,this.variationId=r}function ht(e,t,r,n,i,o,s,a,u,c,l,f,p,d){this.id=e,this.key=t,this.type=r,this.identifierType=n,this.status=i,this.version=o,this.variations=s,this.userOverrides=a,this.segmentOverrides=u,this.targetAudiences=c,this.targetRules=l,this.defaultRule=f,this.containerId=p,this._winnerVariationId=d}function yt(){}function vt(){}function gt(){}function mt(e,t,r){this.isOn=e,this.reason=t,this.config=r}function wt(e,t,r){this.variation=e,this.reason=t,this.config=r}function Et(e,t){this.value=e,this.reason=t}function Tt(){}function bt(){}zt.tryParse=function(e){var t,r,n,i,e=zt.regExp.exec(e);if(e)return e[0],t=e[1],r=void 0===(r=e[2])?"0":r,n=void 0===(n=e[3])?"0":n,i=e[4],e=e[5],new zt(new Ot(parseInt(t,10),parseInt(r,10),parseInt(n,10)),Rt.parse(i),Rt.parse(e))},zt.prototype.compareTo=function(e){return this.coreVersion.compareTo(e.coreVersion)||this.prerelease.compareTo(e.prerelease)},zt.prototype.isEqualTo=function(e){return 0===this.compareTo(e)},zt.prototype.isGreaterThan=function(e){return 0<this.compareTo(e)},zt.prototype.isGreaterThanOrEqualTo=function(e){return 0<=this.compareTo(e)},zt.prototype.isLessThan=function(e){return this.compareTo(e)<0},zt.prototype.isLessThanOrEqualTo=function(e){return this.compareTo(e)<=0},zt.regExp=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*))?(?:\.(0|[1-9]\d*))?(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;var _t=zt,Ot=(Ht.prototype.compareTo=function(e){return this.major-e.major||this.minor-e.minor||this.patch-e.patch},Ht),Rt=(Vt.parse=function(e){return e?new Vt(e.split(".")):Vt.EMPTY},Vt.prototype.isEmpty=function(){return 0===this.identifiers.length},Vt.prototype.isNotEmpty=function(){return!this.isEmpty()},Vt.prototype.compareTo=function(e){return this.isEmpty()&&e.isEmpty()?0:this.isEmpty()&&e.isNotEmpty()?1:this.isNotEmpty()&&e.isEmpty()?-1:this.compareIdentifiers(e)},Vt.prototype.compareIdentifiers=function(e){for(var t=Math.min(this.identifiers.length,e.identifiers.length),r=0;r<t;r++){var n=Vt.compareIdentifiers(this.identifiers[r],e.identifiers[r]);if(0!==n)return n}return this.identifiers.length-e.identifiers.length},Vt.compareIdentifiers=function(e,t){return Vt.numericIdentifierRegExp.test(e)&&Vt.numericIdentifierRegExp.test(t)?+e-+t:e===t?0:e<t?-1:1},Vt.EMPTY=new Vt([]),Vt.numericIdentifierRegExp=/^(0|[1-9]\d*)$/,Vt),It=["MATCH","NOT_MATCH"],St=["STRING","NUMBER","BOOLEAN","VERSION","JSON","NULL","UNKNOWN"],Nt=["IN","CONTAINS","STARTS_WITH","ENDS_WITH","GT","GTE","LT","LTE"],Ct=["VARIATION","BUCKET"],At=["USER_ID","USER_PROPERTY","HACKLE_PROPERTY","SEGMENT"],kt=["USER_ID","USER_PROPERTY"],xt=(jt.prototype.supports=function(e){return this.supportedKeyTypes.includes(e)},jt.IDENTIFIER=new jt("SEGMENT"),jt.PROPERTY=new jt("SEGMENT","USER_PROPERTY","HACKLE_PROPERTY"),jt.SEGMENT=new jt("USER_ID","USER_PROPERTY","HACKLE_PROPERTY"),jt),Pt=(n.nanosToUnit=function(e,t){switch(t){case"microseconds":return e/(n.C1/n.C0);case"milliseconds":return e/(n.C2/n.C0);case"seconds":return e/(n.C3/n.C0);default:return e}},n.microsToUnit=function(e,t){switch(t){case"nanoseconds":return e*(n.C1/n.C0);case"milliseconds":return e/(n.C2/n.C1);case"seconds":return e/(n.C3/n.C1);default:return e}},n.millisToUnit=function(e,t){switch(t){case"nanoseconds":return e*(n.C2/n.C0);case"microseconds":return e*(n.C2/n.C1);case"seconds":return e/(n.C3/n.C2);default:return e}},n.secondsToUnit=function(e,t){switch(t){case"nanoseconds":return e*(n.C3/n.C0);case"microseconds":return e*(n.C3/n.C1);case"milliseconds":return e*(n.C3/n.C2);default:return e}},n.C3=1e3*(n.C2=1e3*(n.C1=1e3*(n.C0=1))),n.converter={nanoseconds:n.nanosToUnit,microseconds:n.microsToUnit,milliseconds:n.millisToUnit,seconds:n.secondsToUnit},n),r=(Ft.prototype.tick=function(){return 1e3*Date.now()},Ft.prototype.currentMillis=function(){return Date.now()},Ft),Ut=(Lt.prototype.tags=function(e){var r=this;return Object.entries(e).forEach(function(e){var t=e[0],e=e[1];r._tags[t]=e}),this},Lt.prototype.tag=function(e,t){return this._tags[e]=t,this},Lt.prototype.register=function(e){return e.registerTimer({name:this.name,tags:this._tags,type:"TIMER"})},Lt),Mt=(Dt.start=function(e){return new Dt(e=void 0===e?Dt.defaultClock:e)},Dt.prototype.stop=function(e){var t=this._clock.tick()-this.startTime;e.record(t,"microseconds")},Dt.defaultClock=new r,Dt);function Dt(e){this._clock=e,this.startTime=this._clock.tick()}function Lt(e){this.name=e,this._tags={},this.name=e}function Ft(){}function n(){}function jt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.supportedKeyTypes=e}function Vt(e){this.identifiers=e}function Ht(e,t,r){this.major=e,this.minor=t,this.patch=r}function zt(e,t,r){this.coreVersion=e,this.prerelease=t,this.build=r}Gt.prototype.tags=function(e){var r=this;return Object.entries(e).forEach(function(e){var t=e[0],e=e[1];r._tags[t]=e}),this},Gt.prototype.tag=function(e,t){return this._tags[e]=t,this},Gt.prototype.register=function(e){return e.registerCounter({name:this.name,tags:this._tags,type:"COUNTER"})};var Bt=Gt;function Gt(e){this.name=e,this._tags={}}Object.defineProperty(qt.prototype,"value",{get:function(){return this.valueSupplier()},enumerable:!1,configurable:!0});var Kt=qt;function qt(e,t){this.valueSupplier=t,this.field=e}function $t(e,t){return e.name===t.name&&Xe.isEquals(e.tags,t.tags)}rr.prototype.count=function(){return this.counterValue},rr.prototype.increment=function(e){this.counterValue+=null!=e?e:1},rr.prototype.measure=function(){return[new Kt("count",this.count.bind(this))]};var Yt,Xt=rr,Wt=(tr.prototype.flush=function(){var e=this.currentCounter;return this.currentCounter=new Xt(this.id),e},tr.prototype.count=function(){return this.currentCounter.count()},tr.prototype.increment=function(e){this.currentCounter.increment(e)},tr.prototype.measure=function(){return[new Kt("count",this.count.bind(this))]},tr),Jt=(er.prototype.values=function(){return Array.from(this.data.values())},er.prototype.keys=function(){return Array.from(this.data.keys())},er.prototype.get=function(t){var r=this,e=this.keys().find(function(e){return r.compareFn(e,t)});return e?this.data.get(e):void 0},er.prototype.has=function(e){return void 0!==this.get(e)},er.prototype.add=function(e,t){t=(t=t)||e;return this.data.set(e,t),this},er.prototype.delete=function(e){var t;if(this.has(e))return t=this.get(e),this.data.delete(e),t},er.prototype.forEach=function(e){this.data.forEach(e)},er.prototype.entries=function(){return Array.from(this.data.entries())},er),r=(Object.defineProperty(Zt.prototype,"metrics",{get:function(){return Array.from(this._metrics.values())},enumerable:!1,configurable:!0}),Zt.prototype.registerCounter=function(e){return this.registerMetricIfNecessary(e,this.createCounter.bind(this))},Zt.prototype.registerTimer=function(e){return this.registerMetricIfNecessary(e,this.createTimer.bind(this))},Zt.prototype.counter=function(e,t){return void 0===t&&(t={}),new Bt(e).tags(t).register(this)},Zt.prototype.timer=function(e,t){return void 0===t&&(t={}),new Ut(e).tags(t).register(this)},Zt.prototype.registerMetricIfNecessary=function(e,t){return this.getOrCreateMetric(e,t)},Zt.prototype.getOrCreateMetric=function(e,t){var r,n=this._metrics.get(e);return n?r=n:(r=t(e),this._metrics.add(e,r)),r},Zt.prototype.close=function(){},Zt),i=(ce(Qt,Yt=r),Qt.prototype.start=function(){var e=this;void 0===this.currentIntervalId&&(this.currentIntervalId=setInterval(function(){e.publish()},this.pushIntervalMillis),de.log.debug("PushMetricRegistry started. Publish metrics every ".concat(this.pushIntervalMillis,"ms.")))},Qt.prototype.stop=function(){void 0!==this.currentIntervalId&&(clearInterval(this.currentIntervalId),this.currentIntervalId=void 0,this.publish(),de.log.debug("PushMetricRegistry stopped."))},Qt.prototype.close=function(){this.stop()},Qt);function Qt(e){var t=Yt.call(this)||this;return t.pushIntervalMillis=e,t.currentIntervalId=void 0,t.pushIntervalMillis=e,t}function Zt(){this.id=ae.v4(),this.name="MetricRegistry",this._metrics=new Jt($t)}function er(e){this.compareFn=e,this.data=new Map,this.compareFn=e,this.data=new Map}function tr(e){this.id=e,this.currentCounter=new Xt(e)}function rr(e){this.counterValue=0,this.id=e}pr.prototype.count=function(){return this._count},pr.prototype.totalTime=function(e){return Pt.nanosToUnit(this._total,e)},pr.prototype.max=function(e){return Pt.nanosToUnit(this._max,e)},pr.prototype.mean=function(e){return 0===this.count()?0:this.totalTime(e)/this.count()},pr.prototype.record=function(e,t){e<0||(t=Pt.converter[t](e,"nanoseconds"),this._count=this.count()+1,this._total+=t,this._max=Math.max(t,this._max))},pr.prototype.measure=function(){var e=this;return[new Kt("count",this.count.bind(this)),new Kt("total",function(){return e.totalTime("milliseconds")}),new Kt("max",function(){return e.max("milliseconds")}),new Kt("mean",function(){return e.mean("milliseconds")})]};var nr,ir=pr,or=(fr.prototype.flush=function(){var e=this.currentTimer;return this.currentTimer=new ir(this.id),e},fr.prototype.count=function(){return this.currentTimer.count()},fr.prototype.totalTime=function(e){return this.currentTimer.totalTime(e)},fr.prototype.max=function(e){return this.currentTimer.max(e)},fr.prototype.record=function(e,t){this.currentTimer.record(e,t)},fr.prototype.mean=function(e){return 0===this.count()?0:this.totalTime(e)/this.count()},fr.prototype.measure=function(){var e=this;return[new Kt("count",this.count.bind(this)),new Kt("total",function(){return e.totalTime("milliseconds")}),new Kt("max",function(){return e.max("milliseconds")}),new Kt("mean",function(){return e.mean("milliseconds")})]},fr),i=(ce(lr,nr=i),lr.prototype.createCounter=function(e){return new Wt(e)},lr.prototype.createTimer=function(e){return new or(e)},lr.prototype.publish=function(){var e=this.metrics.reduce(function(e,t){return void 0!==t.flush&&"function"==typeof t.flush?e.concat(t.flush()):e},[]);this.flushMetrics(e)},lr.prototype.close=function(){nr.prototype.close.call(this)},lr),sr=(cr.prototype.count=function(){return 0},cr.prototype.increment=function(e){},cr.prototype.measure=function(){return[new Kt("count",this.count.bind(this))]},cr),ar=(Object.defineProperty(ur.prototype,"counters",{get:function(){return Array.from(this._counters.values())},enumerable:!1,configurable:!0}),ur.prototype.add=function(e){this._counters.add(e,e.registerCounter(this.id))},ur.prototype.count=function(){return(this.counters[0]||this.noopCounter).count()},ur.prototype.increment=function(t){this.counters.forEach(function(e){e.increment(t)})},ur.prototype.measure=function(){return[new Kt("count",this.count.bind(this))]},ur);function ur(e){this._counters=new Jt(function(e,t){return e.id===t.id}),this.id=e,this.noopCounter=new sr(e)}function cr(e){this.id=e}function lr(e){return nr.call(this,e)||this}function fr(e){this.id=e,this.currentTimer=new ir(e)}function pr(e){this._count=0,this._total=0,this._max=0,this.id=e}Br.prototype.measure=function(){var e=this;return[new Kt("count",this.count.bind(this)),new Kt("total",function(){return e.totalTime("milliseconds")}),new Kt("max",function(){return e.max("milliseconds")}),new Kt("mean",function(){return e.mean("milliseconds")})]},Br.prototype.count=function(){return 0},Br.prototype.totalTime=function(e){return 0},Br.prototype.max=function(e){return 0},Br.prototype.mean=function(e){return 0},Br.prototype.record=function(e,t){};var dr,hr,yr,vr,gr,mr=Br,wr=(Object.defineProperty(zr.prototype,"firstTimer",{get:function(){return this.timers[0]||this.noopTimer},enumerable:!1,configurable:!0}),zr.prototype.totalTime=function(e){return this.firstTimer.totalTime(e)},zr.prototype.max=function(e){return this.firstTimer.max(e)},zr.prototype.mean=function(e){return this.firstTimer.mean(e)},zr.prototype.record=function(t,r){this.timers.forEach(function(e){e.record(t,r)})},Object.defineProperty(zr.prototype,"timers",{get:function(){return Array.from(this._timers.values())},enumerable:!1,configurable:!0}),zr.prototype.add=function(e){this._timers.add(e,e.registerTimer(this.id))},zr.prototype.count=function(){return this.firstTimer.count()},zr.prototype.measure=function(){var e=this;return[new Kt("count",this.count.bind(this)),new Kt("total",function(){return e.totalTime("milliseconds")}),new Kt("max",function(){return e.max("milliseconds")}),new Kt("mean",function(){return e.mean("milliseconds")})]},zr),r=(ce(Hr,gr=r),Hr.prototype.createCounter=function(e){e=new ar(e);return this.addRegistry(e),e},Hr.prototype.createTimer=function(e){e=new wr(e);return this.addRegistry(e),e},Hr.prototype.addRegistry=function(t){this.registries.forEach(function(e){return t.add(e)})},Hr.prototype.add=function(t){t instanceof Hr||this.registries.has(t)||(this.registries.add(t),this.metrics.forEach(function(e){void 0!==e.add&&"function"==typeof e.add&&e.add(t)}))},Hr.prototype.close=function(){this.registries.forEach(function(e){e.close()})},Hr),Er=(Vr.counter=function(e,t){return Vr.globalRegistry.counter(e,t)},Vr.timer=function(e,t){return Vr.globalRegistry.timer(e,t)},Vr.addRegistry=function(e){Vr.globalRegistry.add(e),de.log.debug("MetricRegistry added ".concat(e.name))},Vr.globalRegistry=new r,Vr),Tr=(ce(jr,vr=i),jr.prototype.flushMetrics=function(e){var t=this;f.chunked(e.filter(this.isDispatchTarget.bind(this)),100).forEach(function(e){t.dispatch(e)})},jr.prototype.isDispatchTarget=function(e){return!("COUNTER"!==e.id.type&&"TIMER"!==e.id.type)&&0<e.count()},jr.prototype.dispatch=function(e){this.useBeacon&&this.shouldUseBeacon?this.httpClient.sendBeacon(this.monitoringEndPoint,this.batch(e),this.httpHeader,function(){de.log.debug("Beacon called.")}):this.httpClient.postRequest(this.monitoringEndPoint,this.batch(e),this.httpHeader,function(){},function(){de.log.debug("Failed to flushing metrics.")})},jr.prototype.batch=function(e){return{metrics:e.map(function(e){return{name:e.id.name,type:e.id.type,tags:e.id.tags,measurements:Object.fromEntries(f.associate(e.measure(),function(e){return[e.field,e.value]}))}})}},jr.prototype.createCounter=function(e){return new Wt(e)},jr.prototype.createTimer=function(e){return new or(e)},jr.prototype.close=function(){this.shouldUseBeacon=!0,vr.prototype.close.call(this)},jr),br=(Fr.experiment=function(e,t,r){t=Er.timer("experiment.decision",{key:String(t),variation:r.variation,reason:String(r.reason)});e.stop(t)},Fr.featureFlag=function(e,t,r){t=Er.timer("feature.flag.decision",{key:String(t),on:String(r.isOn),reason:String(r.reason)});e.stop(t)},Fr.remoteConfig=function(e,t,r){t=Er.timer("remote.config.decision",{key:String(t),reason:String(r.reason)});e.stop(t)},Fr),_r=(Lr.record=function(e,t,r){e=Er.timer("api.call",{operation:e,success:String(r)});t.stop(e)},Lr),Or=de.log,Rr=(Dr.prototype.get=function(e,t){if(a.isNullOrUndefined(t))return this._get(e,"NULL",t).value;switch(typeof t){case"string":return this._get(e,"STRING",t).value;case"number":return this._get(e,"NUMBER",t).value;case"boolean":return this._get(e,"BOOLEAN",t).value;default:return this._get(e,"UNKNOWN",t).value}},Dr.prototype._get=function(r,n,i){var e=Mt.start(),t=function(e){try{if(a.isNullOrUndefined(r))return Ze.of(i,u.INVALID_INPUT);var t=e.hackleUserResolver.resolveCurrentUser();return e.client._remoteConfig(r,t,n,i)}catch(e){return Or.error("Unexpected exception while deciding remote config parameter[".concat(r,"]. Returning default value. : ").concat(e)),Ze.of(i,u.EXCEPTION)}}(this);return br.remoteConfig(e,r,t),t},Dr),s=de.log,Ir=(Mr.prototype.getSessionId=function(){return this.sessionManager.sessionId},Mr.prototype.getUser=function(){return this.userManager.currentUser},Mr.prototype.setUser=function(e){try{var t=Me(e);if(!t)return void s.warn("invalid user");this.userManager.setUser(t)}catch(e){s.error("Unexpected exception while set user: ".concat(e))}},Mr.prototype.setUserId=function(e){try{void 0===e&&this.userManager.setUserId(void 0);var t=Xe.sanitizeValue(e);if(!t)return void s.warn("Invalid userId. [userId=".concat(e,"]"));this.userManager.setUserId(t)}catch(e){s.error("Unexpected exception while set userId: ".concat(e))}},Mr.prototype.setDeviceId=function(e){try{if(!Xe.sanitizeValue(e))return void s.warn("Invalid deviceId. [deviceId=".concat(e,"]"));this.userManager.setDeviceId(e)}catch(e){s.error("Unexpected exception while set deviceId: ".concat(e))}},Mr.prototype.setUserProperty=function(e,t){try{if(!Je.isValidKey(e))return void s.warn("Invalid property key. [key=".concat(e,"]"));if(!Je.isValidValue(t))return void s.warn("Invalid property value. [key=".concat(t,"]"));this.userManager.setUserProperty(e,t)}catch(e){s.error("Unexpected exception while set userProperty: ".concat(e))}},Mr.prototype.setUserProperties=function(e){try{var t=Je.sanitize(e);this.userManager.setUserProperties(t)}catch(e){s.error("Unexpected exception while set userProperties: ".concat(e))}},Mr.prototype.resetUser=function(){try{this.userManager.resetUser()}catch(e){s.error("Unexpected exception while reset user: ".concat(e))}},Mr.prototype.variation=function(e,t,r){return this.variationDetail(e,t,r).variation},Mr.prototype.variationDetail=function(n,i,e){var o=e||"A",e=Mt.start(),t=function(e){try{var t=e.userManager.resolveCurrentOrNull(i);if(!t)return s.warn("invalid user"),et.of(o,u.INVALID_INPUT);var r=e.hackleUserResolver.resolve(t);return e.hackleInternalClient._experiment(n,r,o)}catch(e){return s.error("Unexpected exception while deciding variation for experiment[".concat(n,"]. Returning default variation[").concat(o,"] : ").concat(e)),et.of(o,u.EXCEPTION)}}(this);return br.experiment(e,n,t),t},Mr.prototype.isFeatureOn=function(e,t){return this.featureFlagDetail(e,t).isOn},Mr.prototype.featureFlagDetail=function(n,i){var e=Mt.start(),t=function(e){try{var t=e.userManager.resolveCurrentOrNull(i);if(!t)return s.warn("invalid user"),tt.off(u.INVALID_INPUT);var r=e.hackleUserResolver.resolve(t);return e.hackleInternalClient._featureFlag(n,r)}catch(e){return s.error("Unexpected exception while deciding feature flag[".concat(n,"]. Returning default value[false] : ").concat(e)),tt.off(u.EXCEPTION)}}(this);return br.featureFlag(e,n,t),t},Mr.prototype.track=function(e,t){try{s.debug("track event : ".concat(JSON.stringify(e)));var r=this._convertEvent(e),n=this.userManager.resolveCurrentOrNull(t);if(!n)return void s.warn("invalid user");var i=this.hackleUserResolver.resolve(n);this.hackleInternalClient._track(r,i)}catch(e){s.error("Unexpected exception while tracking event: $t")}},Mr.prototype.trackPageView=function(e){s.debug("tracking page view");var t=this.hackleUserResolver.resolve(this.userManager.currentUser);this.hackleInternalClient._track({key:"$page_view"},t)},Mr.prototype.remoteConfig=function(e){return new Rr(this.hackleInternalClient,this.userManager,this.hackleUserResolver,e)},Mr.prototype.onReady=function(e,t){this.hackleInternalClient._onReady(e,t=void 0===t?3e3:t)},Mr.prototype.onInitialized=function(e){return this.hackleInternalClient._onInitialized({timeout:null==e?void 0:e.timeout})},Mr.prototype.close=function(){s.debug("Hackle Client is closing"),this.hackleInternalClient._close()},Mr.prototype._convertEvent=function(e){return"string"==typeof e?{key:e}:e},Mr.prototype.showUserExplorer=function(){var e;null!=(e=this.devTools)&&e.userExplorer?(s.debug("UserExplorer opened."),Er.counter("user.explorer.show",{}).increment(),this.devTools.manager.userExplorer(this.devTools.userExplorer)):s.error("UserExplorer is not provided")},Mr.prototype.hideUserExplorer=function(){this.devTools?this.devTools.manager.close():s.warn("There is no active HackleDevtools.")},Mr),Sr=(Ur.exposure=function(e,t,r){return new Nr((new Date).getTime(),t,e,r.variationId,r.variationKey,r.reason,this.exposureProperties(r))},Ur.exposureProperties=function(e){return a.isNotNullOrUndefined(e.config)?{$parameterConfigurationId:e.config.id}:{}},Ur.track=function(e,t,r,n){return new Cr(n,r,e,t)},Ur.remoteConfig=function(e,t,r){return new Ar((new Date).getTime(),t,e,r)},Ur.isExposure=function(e){return void 0!==e.experiment},Ur.isTrack=function(e){return void 0!==e.eventType},Ur.isRemoteConfig=function(e){return void 0!==e.remoteConfigParameter},Ur.isExposureDto=function(e){return"experimentId"in e&&void 0!==e.experimentId},Ur.isTrackDto=function(e){return"eventTypeId"in e&&void 0!==e.eventTypeId},Ur.isRemoteConfigDto=function(e){return"parameterId"in e&&void 0!==e.parameterId},Ur.prototype.toDto=function(){return{insertId:this.insertId,timestamp:this.timestamp,userId:this.user.identifiers[ot.ID],identifiers:this.user.identifiers,userProperties:Je.sanitize(this.user.properties),hackleProperties:Je.sanitize(this.user.hackleProperties)}},Ur),Nr=(ce(Pr,yr=Sr),Pr.prototype.copyWithUser=function(e){return new Pr(this.timestamp,e,this.experiment,this.variationId,this.variationKey,this.decisionReason,this.properties,this.insertId)},Pr.prototype.toDto=function(){return h(h({},yr.prototype.toDto.call(this)),{experimentId:this.experiment.id,experimentKey:this.experiment.key,experimentType:this.experiment.type,experimentVersion:this.experiment.version,variationId:this.variationId,variationKey:this.variationKey,decisionReason:this.decisionReason.toString(),properties:this.properties})},Pr),Cr=(ce(xr,hr=Sr),xr.prototype.copyWithUser=function(e){return new xr(this.timestamp,e,this.eventType,this.event,this.insertId)},xr.prototype.toDto=function(){return h(h({},hr.prototype.toDto.call(this)),{eventTypeId:this.eventType.id,eventTypeKey:this.eventType.key,value:this.event.value||0,properties:Je.sanitize(this.event.properties)})},xr),Ar=(ce(kr,dr=Sr),kr.prototype.copyWithUser=function(e){return new kr(this.timestamp,e,this.remoteConfigParameter,this.evaluation,this.insertId)},kr.prototype.toDto=function(){return h(h({},dr.prototype.toDto.call(this)),{parameterId:this.remoteConfigParameter.id,parameterKey:this.remoteConfigParameter.key,parameterType:this.remoteConfigParameter.type,valueId:this.evaluation.valueId,decisionReason:this.evaluation.reason.toString(),properties:Je.sanitize(this.evaluation.properties)})},kr);function kr(e,t,r,n,i){e=dr.call(this,e,t,i)||this;return e.remoteConfigParameter=r,e.evaluation=n,e}function xr(e,t,r,n,i){e=hr.call(this,e,t,i)||this;return e.eventType=r,e.event=n,e}function Pr(e,t,r,n,i,o,s,a){e=yr.call(this,e,t,a)||this;return e.experiment=r,e.variationId=n,e.variationKey=i,e.decisionReason=o,e.properties=s,e}function Ur(e,t,r){void 0===r&&(r=ae.v4()),this.timestamp=e,this.user=t,this.insertId=r}function Mr(e,t,r,n,i){this.hackleInternalClient=e,this.hackleUserResolver=t,this.sessionManager=r,this.userManager=n,this.devTools=i}function Dr(e,t,r,n){this.client=e,this.userManager=t,this.hackleUserResolver=r,this.user=n}function Lr(){}function Fr(){}function jr(e,t,r,n,i){t=vr.call(this,t)||this;return t.monitoringBaseUrl=e,t.httpClient=r,t.httpHeader=n,t.useBeacon=i,t.monitoringEndPoint="".concat(t.monitoringBaseUrl,"/metrics"),t.shouldUseBeacon=!1,t.start(),t.monitoringBaseUrl=e,t}function Vr(){}function Hr(){var e=null!==gr&&gr.apply(this,arguments)||this;return e.registries=new Jt(function(e,t){return e.id===t.id}),e}function zr(e){this._timers=new Jt(function(e,t){return e.id===t.id}),this.id=e,this.noopTimer=new mr(e)}function Br(e){this.id=e}function Gr(e){var t=new Array,r=new Array,n=new Array;return e.forEach(function(e){e instanceof Sr?Sr.isExposure(e)?t.push(e.toDto()):Sr.isTrack(e)?r.push(e.toDto()):Sr.isRemoteConfig(e)&&n.push(e.toDto()):Sr.isExposureDto(e)?t.push(e):Sr.isTrackDto(e)?r.push(e):Sr.isRemoteConfigDto(e)&&n.push(e)}),{exposureEvents:t,trackEvents:r,remoteConfigEvents:n}}fn.prototype.dispatch=function(e,t,r){var n={},e=(n[ye]=this.sdkKey,n[ve]=this.headers[ve],n[ge]=this.headers[ge],n[me]=(new Date).getTime().toString(),Gr(e)),i=Mt.start();this.httpRequest.postRequest(this.dispatchUrl,e,n,function(e){t(e),_r.record("post.events",i,!0)},function(e){null!=r&&r(e),_r.record("post.events",i,!1)})},fn.prototype.dispatchXhrOrBeacon=function(e,t,r){var n,i,o;this.useBeacon?((n={})[ye]=this.sdkKey,n[ve]=this.headers[ve],n[ge]=this.headers[ge],n[me]=(new Date).getTime().toString(),i=Gr(e),o=Mt.start(),this.httpRequest.sendBeacon(this.beaconDispatchUrl,i,n,function(e){t(e),_r.record("post.events",o,!0)},function(e){null!=r&&r(e),_r.record("post.events",o,!1)})):this.dispatch(e,t,r)};var Kr=fn,qr=de.log,$r=(E.prototype.getExperiments=function(){return Array.from(this.experiments.values())},E.prototype.getExperimentOrNull=function(e){return this.experiments.get(e)},E.prototype.getFeatureFlags=function(){return Array.from(this.featureFlags.values())},E.prototype.getFeatureFlagOrNull=function(e){return this.featureFlags.get(e)},E.prototype.getBucketOrNull=function(e){return this.buckets.get(e)},E.prototype.getEventTypeOrNull=function(e){return this.eventTypes.get(e)},E.prototype.getSegmentOrNull=function(e){return this.segments.get(e)},E.prototype.getContainerOrNull=function(e){return this.containers.get(e)},E.prototype.getParameterConfigurationOrNull=function(e){return this.parameterConfigurations.get(e)},E.prototype.getRemoteConfigParameterOrNull=function(e){return this.remoteConfigParameters.get(e)},E.from=function(e){var t=this,r=f.associate(e.buckets,function(e){return[e.id,t.toBucket(e)]});return new E(f.associateBy(f.mapNotNullOrUndefined(e.experiments,function(e){return t.toExperimentOrNull("AB_TEST",e)}),function(e){return e.key}),f.associateBy(f.mapNotNullOrUndefined(e.featureFlags,function(e){return t.toExperimentOrNull("FEATURE_FLAG",e)}),function(e){return e.key}),r,f.associate(e.events,function(e){return[e.key,new Ue(e.id,e.key)]}),f.associateBy(f.mapNotNullOrUndefined(e.segments,function(e){return t.toSegmentOrNull(e)}),function(e){return e.key}),f.associate(e.containers,function(e){return[e.id,t.toContainer(e)]}),f.associate(e.parameterConfigurations,function(e){return[e.id,t.toParameterConfiguration(e)]}),f.associateBy(f.mapNotNullOrUndefined(e.remoteConfigParameters,function(e){return t.toRemoteConfigParameterOrNull(e)}),function(e){return e.key}))},E.toBucket=function(e){return new Pe(e.seed,e.slotSize,e.slots.map(function(e){var t=e.startInclusive,r=e.endExclusive,e=e.variationId;return new it(t,r,e)}))},E.toExperimentOrNull=function(e,t){var r=this,n=this.experimentStatusOrNull(t.execution.status),i=t.variations.map(function(e){return new xe(e.id,e.key,"DROPPED"===e.status,e.parameterConfigurationId)}),o=f.associate(t.execution.userOverrides,function(e){return[e.userId,e.variationId]}),s=f.mapNotNullOrUndefined(t.execution.segmentOverrides,function(e){return r.toTargetRuleOrNull(e,xt.IDENTIFIER)}),a=f.mapNotNullOrUndefined(t.execution.targetAudiences,function(e){return r.toTargetOrNull(e,xt.PROPERTY)}),u=f.mapNotNullOrUndefined(t.execution.targetRules,function(e){return r.toTargetRuleOrNull(e,xt.PROPERTY)}),c=this.toTargetActionOrNull(t.execution.defaultRule);return n&&c&&new nt(t.id,t.key,e,t.identifierType,n,t.version,i,o,s,a,u,c,t.containerId,t.winnerVariationId)},E.experimentStatusOrNull=function(e){switch(e){case"READY":return"DRAFT";case"RUNNING":return"RUNNING";case"PAUSED":return"PAUSED";case"STOPPED":return"COMPLETED";default:return void qr.debug("Unsupported status [".concat(e,"]"))}},E.toTargetRuleOrNull=function(e,t){t=this.toTargetOrNull(e.target,t),e=this.toTargetActionOrNull(e.action);return t&&e&&new He(t,e)},E.toTargetActionOrNull=function(e){var t=this.parseOrNull(Ct,e.type);return t&&new Ve(t,e.variationId,e.bucketId)},E.toTargetOrNull=function(e,t){var r=this,e=f.mapNotNullOrUndefined(e.conditions,function(e){return r.toConditionOrNull(e,t)});return new De(e)},E.toConditionOrNull=function(e,t){var r=this.toTargetKeyOrNull(e.key);if(r&&t.supports(r.type))return(t=this.toTargetMatchOrNull(e.match))&&new Le(r,t)},E.toTargetKeyOrNull=function(e){var t=this.parseOrNull(At,e.type);return t&&new Fe(t,e.name)},E.toTargetMatchOrNull=function(e){var t=this.parseOrNull(It,e.type),r=this.parseOrNull(Nt,e.operator),n=this.parseOrNull(St,e.valueType);return t&&r&&n&&new je(t,r,n,e.values)},E.toSegmentOrNull=function(e){var t=this,r=this.parseOrNull(kt,e.type);return r&&new ze(e.id,e.key,r,f.mapNotNullOrUndefined(e.targets,function(e){return t.toTargetOrNull(e,xt.SEGMENT)}))},E.toContainer=function(e){var t=this;return new at(e.id,e.bucketId,e.groups.map(function(e){return t.toContainerGroup(e)}))},E.toContainerGroup=function(e){return new Be(e.id,e.experiments)},E.toParameterConfiguration=function(e){return new ut(e.id,f.associate(e.parameters,function(e){return[e.key,e.value]}))},E.toRemoteConfigParameterOrNull=function(e){var t=this,r=this.parseOrNull(St,e.type),n=f.mapNotNullOrUndefined(e.targetRules,function(e){return t.toRemoteConfigTargetRuleOrNull(e,xt.PROPERTY)}),i=this.toRemoteConfigParameterValueOrNull(e.defaultValue);return r&&new Ge(e.id,e.key,r,e.identifierType,n,i)},E.toRemoteConfigTargetRuleOrNull=function(e,t){t=this.toTargetOrNull(e.target,t);return t&&new Ke(e.key,e.name,t,e.bucketId,this.toRemoteConfigParameterValueOrNull(e.value))},E.toRemoteConfigParameterValueOrNull=function(e){return new qe(e.id,e.value)},E.parseOrNull=function(e,t){e=e.find(function(e){return e===t});return e||qr.debug("Unsupported type [".concat(t,"]. Please use the latest version of sdk.")),e},E),Yr=(ln.prototype.onReady=function(){return this.readyPromise},ln.prototype.start=function(){this.isStarted||(this.isStarted=!0,this.errorRetryController.reset(),this.fetch())},ln.prototype.stop=function(){return this.isStarted=!1,this.currentTimeout&&(clearTimeout(this.currentTimeout),this.currentTimeout=null),this.currentRequest&&(this.currentRequest.abort(),this.currentRequest=null),Promise.resolve()},ln.prototype.get=function(){return this.workspace},ln.prototype.scheduleNextUpdate=function(){var e=this,t=this.errorRetryController.getDelay(),t=Math.max(t,this.updateInterval);this.currentTimeout=setTimeout(function(){e.currentRequest?e.syncOnCurrentRequestComplete=!0:e.fetch()},t)},ln.prototype.fetch=function(){function t(e){e=e.isSuccess,_r.record("get.workspace",i,e)}function e(){n.onRequestComplete()}var r,n=this,i=((r={})[ye]=this.sdkKey,r[me]=(new Date).getTime().toString(),r[ve]=this.headers[ve],r[ge]=this.headers[ge],Mt.start());this.currentRequest=this.httpRequest.getRequest(this.fetchUrl,r);null!=(r=this.currentRequest)&&r.responsePromise.then(function(e){n.onRequestResolved(e,t)},function(e){n.onRequestRejected(e,t)}).then(e,e),0<this.updateInterval&&this.scheduleNextUpdate()},ln.prototype.onRequestComplete=function(){this.isStarted&&(this.currentRequest=null,this.syncOnCurrentRequestComplete&&this.fetch(),this.syncOnCurrentRequestComplete=!1)},ln.prototype.onRequestResolved=function(e,t){if(this.isStarted){if(void 0!==e.statusCode&&200<=e.statusCode&&e.statusCode<400)this.errorRetryController.reset(),t({isSuccess:!0});else{if(t({isSuccess:!1}),401===e.statusCode||403===e.statusCode)return void this.readyPromiseRejecter(new Error("Invalid key provided."));this.errorRetryController.countError()}e.body&&(t=JSON.parse(e.body),this.workspace=$r.from(t),this.readyPromiseResolver())}},ln.prototype.onRequestRejected=function(e,t){this.isStarted&&(t({isSuccess:!1}),this.errorRetryController.countError(),console.error("Error fetching data",e))},ln.prototype.close=function(){this.stop()},ln),Xr=(cn.prototype.getDelay=function(){return 0===this.errorCount?0:1e3*we[Math.min(we.length-1,this.errorCount)]+Math.round(1e3*Math.random())},cn.prototype.countError=function(){this.errorCount<we.length-1&&this.errorCount++},cn.prototype.reset=function(){this.errorCount=0},cn),r="model",i="name",o="type",c="vendor",p="version",d="architecture",y="console",v="mobile",g="tablet",m="smarttv",Wr="wearable",Jr=(w.parse=function(e){return{browser:w.getBrowser(e),cpu:w.getCPU(e),device:w.getDevice(e),engine:w.getEngine(e),os:w.getOS(e)}},w.getBrowser=function(e){var t={name:void 0,version:void 0,major:void 0};return w.mapper.rgx.call(t,e,w.regexes.browser),t.major=w.util.major(t.version),t},w.getCPU=function(e){var t={architecture:void 0};return w.mapper.rgx.call(t,e,w.regexes.cpu),t},w.getDevice=function(e){var t={model:void 0,type:void 0,vendor:void 0};return w.mapper.rgx.call(t,e,w.regexes.device),t},w.getEngine=function(e){var t={name:void 0,version:void 0};return w.mapper.rgx.call(t,e,w.regexes.os),t},w.getOS=function(e){var t={name:void 0,version:void 0};return w.mapper.rgx.call(t,e,w.regexes.os),t},w.util={extend:function(e,t){var r,n={};for(r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n},has:function(e,t){return"string"==typeof e&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return"string"==typeof e?e.replace(/[^\d\.]/g,"").split(".")[0]:void 0},trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},w.regexes={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[i,p],[/(opios)[\/\s]+([\w\.]+)/i],[[i,"Opera Mini"],p],[/\s(opr)\/([\w\.]+)/i],[[i,"Opera"],p],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i,/(avant\s|iemobile|slim)(?:browser)?[\/\s]?([\w\.]*)/i,/(bidubrowser|baidubrowser)[\/\s]?([\w\.]+)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]*)/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon)\/([\w\.-]+)/i],[i,p],[/(konqueror)\/([\w\.]+)/i],[[i,"Konqueror"],p],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[i,"IE"],p],[/(edge|edgios|edga|edg)\/((\d+)?[\w\.]+)/i],[[i,"Edge"],p],[/(yabrowser)\/([\w\.]+)/i],[[i,"Yandex"],p],[/(Avast)\/([\w\.]+)/i],[[i,"Avast Secure Browser"],p],[/(AVG)\/([\w\.]+)/i],[[i,"AVG Secure Browser"],p],[/(puffin)\/([\w\.]+)/i],[[i,"Puffin"],p],[/(focus)\/([\w\.]+)/i],[[i,"Firefox Focus"],p],[/(opt)\/([\w\.]+)/i],[[i,"Opera Touch"],p],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[i,"UCBrowser"],p],[/(comodo_dragon)\/([\w\.]+)/i],[[i,/_/g," "],p],[/(windowswechat qbcore)\/([\w\.]+)/i],[[i,"WeChat(Win) Desktop"],p],[/(micromessenger)\/([\w\.]+)/i],[[i,"WeChat"],p],[/(brave)\/([\w\.]+)/i],[[i,"Brave"],p],[/(whale)\/([\w\.]+)/i],[[i,"Whale"],p],[/(qqbrowserlite)\/([\w\.]+)/i],[i,p],[/(QQ)\/([\d\.]+)/i],[i,p],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[i,p],[/(baiduboxapp)[\/\s]?([\w\.]+)/i],[i,p],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[i,p],[/(MetaSr)[\/\s]?([\w\.]+)/i],[i],[/(LBBROWSER)/i],[i],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[p,[i,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[p,[i,"Facebook"]],[/safari\s(line)\/([\w\.]+)/i,/android.+(line)\/([\w\.]+)\/iab/i],[i,p],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[p,[i,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[i,/(.+)/,"$1 WebView"],p],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[i,/(.+(?:g|us))(.+)/,"$1 $2"],p],[/((?:android.+)crmo|crios)\/([\w\.]+)/i,/android.+(chrome)\/([\w\.]+)\s+(?:mobile\s?safari)/i],[[i,"Chrome Mobile"],p],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[p,[i,"Android Browser"]],[/(sailfishbrowser)\/([\w\.]+)/i],[[i,"Sailfish Browser"],p],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[i,p],[/(dolfin)\/([\w\.]+)/i],[[i,"Dolphin"],p],[/(qihu|qhbrowser|qihoobrowser|360browser)/i],[[i,"360 Browser"]],[/(coast)\/([\w\.]+)/i],[[i,"Opera Coast"],p],[/fxios\/([\w\.-]+)/i],[p,[i,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[p,[i,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[p,i],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[i,"GSA"],p],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[i,[p,(w.mapper={rgx:function(e,t){for(var r,n,i,o,s,a=0;a<t.length&&!o;){for(var u=t[a],c=t[a+1],l=r=0;l<u.length&&!o;)if(o=u[l++].exec(e))for(n=0;n<c.length;n++)s=o[++r],"object"==typeof(i=c[n])&&0<i.length?2==i.length?"function"==typeof i[1]?this[i[0]]=i[1].call(this,s):this[i[0]]=i[1]:3==i.length?"function"!=typeof i[1]||i[1].exec&&i[1].test?this[i[0]]=s?s.replace(i[1],i[2]):void 0:this[i[0]]=s?i[1].call(this,s,i[2]):void 0:4==i.length&&(this[i[0]]=s?i[3].call(this,s.replace(i[1],i[2])):void 0):this[i]=s||void 0;a+=2}},str:function(e,t){for(var r in t)if("object"==typeof t[r]&&0<t[r].length){for(var n=0;n<t[r].length;n++)if(w.util.has(t[r][n],e))return"?"===r?void 0:r}else if(w.util.has(t[r],e))return"?"===r?void 0:r;return e}}).str,(w.maps={browser:{oldsafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}}},device:{amazon:{model:{"Fire Phone":["SD","KF"]}},sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"}}}}).browser.oldsafari.version]],[/(webkit|khtml)\/([\w\.]+)/i],[i,p],[/(navigator|netscape)\/([\w\.-]+)/i],[[i,"Netscape"],p],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)/i,/(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]*)/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[i,p]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[[d,"amd64"]],[/(ia32(?=;))/i],[[d,w.util.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[[d,"ia32"]],[/windows\s(ce|mobile);\sppc;/i],[[d,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[[d,/ower/,"",w.util.lowerize]],[/(sun4\w)[;\)]/i],[[d,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+[;l]))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[[d,w.util.lowerize]]],device:[[/\((ipad|playbook);[\w\s\),;-]+(rim|apple)/i],[r,c,[o,g]],[/applecoremedia\/[\w\.]+ \((ipad)/],[r,[c,"Apple"],[o,g]],[/(apple\s{0,1}tv)/i],[[r,"Apple TV"],[c,"Apple"],[o,m]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[c,r,[o,g]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[r,[c,"Amazon"],[o,g]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[r,w.mapper.str,w.maps.device.amazon.model],[c,"Amazon"],[o,v]],[/android.+aft([bms])\sbuild/i],[r,[c,"Amazon"],[o,m]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[r,c,[o,v]],[/\((ip[honed|\s\w*]+);/i],[r,[c,"Apple"],[o,v]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[c,r,[o,v]],[/\(bb10;\s(\w+)/i],[r,[c,"BlackBerry"],[o,v]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone|p00c)/i],[r,[c,"Asus"],[o,g]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[c,"Sony"],[r,"Xperia Tablet"],[o,g]],[/android.+\s([c-g]\d{4}|so[-l]\w+)(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[r,[c,"Sony"],[o,v]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[c,r,[o,y]],[/android.+;\s(shield)\sbuild/i],[r,[c,"Nvidia"],[o,y]],[/(playstation\s[34portablevi]+)/i],[r,[c,"Sony"],[o,y]],[/(sprint\s(\w+))/i],[[c,w.mapper.str,w.maps.device.sprint.vendor],[r,w.mapper.str,w.maps.device.sprint.model],[o,v]],[/(htc)[;_\s-]+([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[c,[r,/_/g," "],[o,v]],[/(nexus\s9)/i],[r,[c,"HTC"],[o,g]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p|vog-l29|ane-lx1|eml-l29)/i],[r,[c,"Huawei"],[o,v]],[/android.+(bah2?-a?[lw]\d{2})/i],[r,[c,"Huawei"],[o,g]],[/(microsoft);\s(lumia[\s\w]+)/i],[c,r,[o,v]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[r,[c,"Microsoft"],[o,y]],[/(kin\.[onetw]{3})/i],[[r,/\./g," "],[c,"Microsoft"],[o,v]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)[\w\s]+build\//i,/mot[\s-]?(\w*)/i,/(XT\d{3,4}) build\//i,/(nexus\s6)/i],[r,[c,"Motorola"],[o,v]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[r,[c,"Motorola"],[o,g]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[c,w.util.trim],[r,w.util.trim],[o,m]],[/hbbtv.+maple;(\d+)/i],[[r,/^/,"SmartTV"],[c,"Samsung"],[o,m]],[/\(dtv[\);].+(aquos)/i],[r,[c,"Sharp"],[o,m]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[c,"Samsung"],r,[o,g]],[/smart-tv.+(samsung)/i],[c,[o,m],r],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i,/sec-((sgh\w+))/i],[[c,"Samsung"],r,[o,v]],[/sie-(\w*)/i],[r,[c,"Siemens"],[o,v]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[c,"Nokia"],r,[o,v]],[/android[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[r,[c,"Acer"],[o,g]],[/android.+([vl]k\-?\d{3})\s+build/i],[r,[c,"LG"],[o,g]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[c,"LG"],r,[o,g]],[/(lg) netcast\.tv/i],[c,r,[o,m]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[r,[c,"LG"],[o,v]],[/(lenovo)\s?(s(?:5000|6000)(?:[\w-]+)|tab(?:[\s\w]+))/i],[c,r,[o,g]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[r,[c,"Lenovo"],[o,g]],[/(lenovo)[_\s-]?([\w-]+)/i],[c,r,[o,v]],[/linux;.+((jolla));/i],[c,r,[o,v]],[/((pebble))app\/[\d\.]+\s/i],[c,r,[o,Wr]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[c,r,[o,v]],[/crkey/i],[[r,"Chromecast"],[c,"Google"],[o,m]],[/android.+;\s(glass)\s\d/i],[r,[c,"Google"],[o,Wr]],[/android.+;\s(pixel c)[\s)]/i],[r,[c,"Google"],[o,g]],[/android.+;\s(pixel( [23])?( xl)?)[\s)]/i],[r,[c,"Google"],[o,v]],[/android.+;\s(\w+)\s+build\/hm\1/i,/android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i,/android.+(mi[\s\-_]*(?:a\d|one|one[\s_]plus|note lte)?[\s_]*(?:\d?\w?)[\s_]*(?:plus)?)\s+build/i,/android.+(redmi[\s\-_]*(?:note)?(?:[\s_]*[\w\s]+))\s+build/i],[[r,/_/g," "],[c,"Xiaomi"],[o,v]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i],[[r,/_/g," "],[c,"Xiaomi"],[o,g]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[r,[c,"Meizu"],[o,v]],[/(mz)-([\w-]{2,})/i],[[c,"Meizu"],r,[o,v]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})[\s)]/i],[r,[c,"OnePlus"],[o,v]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[r,[c,"RCA"],[o,g]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[r,[c,"Dell"],[o,g]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[r,[c,"Verizon"],[o,g]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[c,"Barnes & Noble"],r,[o,g]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[r,[c,"NuVision"],[o,g]],[/android.+;\s(k88)\sbuild/i],[r,[c,"ZTE"],[o,g]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[r,[c,"Swiss"],[o,v]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[r,[c,"Swiss"],[o,g]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[r,[c,"Zeki"],[o,g]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[c,"Dragon Touch"],r,[o,g]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[r,[c,"Insignia"],[o,g]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[r,[c,"NextBook"],[o,g]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[c,"Voice"],r,[o,v]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[c,"LvTel"],r,[o,v]],[/android.+;\s(PH-1)\s/i],[r,[c,"Essential"],[o,v]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[r,[c,"Envizen"],[o,g]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[c,r,[o,g]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[r,[c,"MachSpeed"],[o,g]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[c,r,[o,g]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[r,[c,"Rotor"],[o,g]],[/android.+(KS(.+))\s+build/i],[r,[c,"Amazon"],[o,g]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[c,r,[o,g]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[o,w.util.lowerize],c,r],[/[\s\/\(](smart-?tv)[;\)]/i],[[o,m]],[/(android[\w\.\s\-]{0,9});.+build/i],[r,[c,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[p,[i,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[i,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[i,p],[/rv\:([\w\.]{1,9}).+(gecko)/i],[p,i]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[i,p],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[[i,w.mapper.str,w.maps.os.windows],[p,w.mapper.str,w.maps.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[i,"Windows"],[p,w.mapper.str,w.maps.os.windows.version]],[/\((bb)(10);/i],[[i,"BlackBerry"],p],[/(blackberry)\w*\/?([\w\.]*)/i,/(tizen|kaios)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|sailfish|contiki)[\/\s-]?([\w\.]*)/i],[i,p],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[i,"Symbian"],p],[/\((series40);/i],[i],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[i,"Firefox OS"],p],[/(nintendo|playstation)\s([wids34portablevu]+)/i,/(mint)[\/\s\(]?(\w*)/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?(?!chrom)([\w\.-]*)/i,/(hurd|linux)\s?([\w\.]*)/i,/(gnu)\s?([\w\.]*)/i],[[i,"Linux"],p],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[i,"Chromium OS"],p],[/(sunos)\s?([\w\.\d]*)/i],[[i,"Solaris"],p],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[[i,"Linux"],p],[/(iphone)(?:.*os\s*([\w]*)\slike\smac|;\sopera)/i],[[i,"iPhone"],[p,/_/g,"."]],[/(ipad)(?:.*os\s*([\w]*)\slike\smac|;\sopera)/i],[[i,"iPad"],[p,/_/g,"."]],[/(haiku)\s(\w+)/i],[i,p],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[p,/_/g,"."],[i,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[i,"Mac"],[p,/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]*)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms|fuchsia)/i,/(unix)\s?([\w\.]*)/i],[i,p]]},w),Qr=(un.generate=function(e){t=void 0===e?{navigator:{userAgent:"",vendor:"",languages:[]},document:{location:t={hostname:"",pathname:"",host:"",search:"",protocol:""},title:""},location:t,screen:{width:"",height:""}}:e;var t,r=Jr.parse(t.navigator.userAgent),n=r.browser,i=r.os,r=r.device,o=r.type?"mobile"===r.type?"Mobile":"ETC":"Web",s=(t.location.protocol||"").replace(":",""),a=t.screen,u="";try{u=Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){}return{platform:o||"",browserName:n.name||"",browserMajorVersion:n.major||"",browserVersion:n.version||"",osName:i.name||"",osVersion:i.version||"",deviceModel:r.model||"",deviceType:r.type||"",deviceVendor:r.vendor||"",language:(null==(o=t.navigator.languages)?void 0:o[0])||"",userAgent:t.navigator.userAgent||"",pagePath:t.location.pathname||"",pageTitle:t.document.title||"",host:t.location.host||"",protocol:s,referrer:t.document.referrer||"",queryParameter:t.location.search||"",screenWidth:a.width||"",screenHeight:a.height||"",timeZone:u||""}},un),Zr=(an.extractDomain=function(e){var t=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,r=e.split("."),r=r[r.length-1],r=((4<r.length||"com"===r||"org"===r)&&(t=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i),e.match(t));return r?r[0]:""},an.prototype.getItem=function(e){for(var t=e+"=",r=document.cookie.split(";"),n=0;n<r.length;n++){for(var i=r[n];" "==i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return decodeURIComponent(i.substring(t.length,i.length))}return null},an.prototype.getAllItem=function(e){var t=document.cookie.split("; ").map(function(e){return e.split("=")}),r=null==e?void 0:e.keyPrefix;return r?t.filter(function(e){var t=e[0];return e[1],t.startsWith(r)}):t},an.prototype.setItem=function(e,t,r){var r=h(h({},this.options),r),n=r.isSecure,i="",o="",s="",a=(r.isCrossSubdomain&&(i=(a=an.extractDomain(document.location.hostname))?"; domain=."+a:""),r.days&&((a=new Date).setTime(a.getTime()+24*r.days*60*60*1e3),o="; expires="+a.toUTCString()),r.isCrossSite&&(n=!0,s="; SameSite=None"),n&&(s+="; secure"),e+"="+encodeURIComponent(t)+o+"; path=/"+i+s);return document.cookie=a},an.prototype.removeItem=function(e,t){this.setItem(e,"",h(h({},t),{days:-1}))},new an({days:3650,isCrossSubdomain:!0})),en=(sn.prototype.getQueryParam=function(e){return this.getQueryParams(function(){return!0})[e]||""},sn.prototype.getQueryParams=function(e){for(var t={},r=0,n=this.search.substring(1).split("&");r<n.length;r++){var i=n[r].split("="),o=i[0],i=i[1];e(o,i)&&(t[o]=decodeURIComponent(i))}return t},sn),tn=(on.prototype.resolve=function(e){var t=pn(),t=(new st).addIdentifiers(e.identifiers||{}).add(ot.ID,e.id||t).add(ot.DEVICE,e.deviceId||t).add(ot.HACKLE_DEVICE,t);return a.isNotNullOrUndefined(e.userId)&&t.add(ot.USER,e.userId),{identifiers:t.build(),properties:this._userProperties(e.properties),hackleProperties:this._getHackleProperties()}},on.prototype.resolveCurrentUser=function(){return this.resolve(this.userManager.currentUser)},on.prototype._userProperties=function(e){void 0===e&&(e={});var t,r={};return"undefined"!=typeof window&&(t=new en(window.location.search),r=h(h({},t.getQueryParams(function(e){return e.startsWith("utm_")})),t.getQueryParams(function(e){return["gclid","fbclid"].includes(e)}))),h(h({},r),e)},on.prototype._getHackleProperties=function(){var e;return(e="undefined"!=typeof window?Qr.generate(window):e)||{}},on),rn=(nn.initialize=function(){Zr.getItem(Ee)||yn()},nn.reInitialize=function(){yn()},nn);function nn(){}function on(e){this.userManager=e,rn.initialize()}function sn(e){this.search=e}function an(e){this.options=e=void 0===e?{days:0,isCrossSubdomain:!1,isSecure:!1,isCrossSite:!1}:e}function un(){}function w(){}function cn(){this.errorCount=0}function ln(e,t,r){var n=this;this.workspace=null,this.sdkKey=e,this.httpRequest=t,this.isStarted=!1,this.updateInterval=r.updateInterval,this.fetchUrl=r.fetchUrl,this.headers=r.headers,this.readyPromiseResolver=function(){},this.readyPromiseRejecter=function(){},this.readyPromise=new Promise(function(e,t){n.readyPromiseResolver=e,n.readyPromiseRejecter=t}),this.currentTimeout=null,this.errorRetryController=new Xr,this.currentRequest=null,this.syncOnCurrentRequestComplete=!1,this.isReadyPromiseSettled=!1}function E(e,t,r,n,i,o,s,a){this.experiments=e,this.featureFlags=t,this.buckets=r,this.eventTypes=n,this.segments=i,this.containers=o,this.parameterConfigurations=s,this.remoteConfigParameters=a}function fn(e,t,r){this.sdkKey=e,this.httpRequest=t,this.headers=r.headers,this.dispatchUrl=r.dispatchUrl,this.beaconDispatchUrl=r.beaconDispatchUrl||"",this.useBeacon=r.useBeacon||!1}function pn(){var e=Zr.getItem(Te);return e||Zr.getItem(Ee)||yn()}function dn(e){Zr.setItem(Te,e)}function hn(){Zr.removeItem(Te)}function yn(){var e=ae.v4();return Zr.setItem(Ee,e),e}function vn(e){return e&&e.Math==Math&&e}function T(e){try{return!!e()}catch(e){return!0}}var d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},y=vn("object"==typeof globalThis&&globalThis)||vn("object"==typeof window&&window)||vn("object"==typeof self&&self)||vn("object"==typeof d&&d)||function(){return this}()||Function("return this")(),Wr={},v=!T(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),g=!T(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),gn=Function.prototype.call,o=g?gn.bind(gn):function(){return gn.apply(gn,arguments)},m={},r={}.propertyIsEnumerable,mn=Object.getOwnPropertyDescriptor,c=mn&&!r.call({1:2},1);m.f=c?function(e){e=mn(this,e);return!!e&&e.enumerable}:r;function wn(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}function En(e){return Fn(Ln(e),8,-1)}function Tn(e){if(null==e)throw zn("Can't call method on "+e);return e}function bn(e){return Bn(Gn(e))}function b(e){return"function"==typeof e}function _n(e){return"object"==typeof e?null!==e:Kn(e)}function On(e,t){return arguments.length<2?(r=qn[e],$n(r)?r:void 0):qn[e]&&qn[e][t];var r}function Rn(e){try{return ei(e)}catch(e){return"Object"}}function In(e){if(ti(e))return e;throw ni(ri(e)+" is not a function")}function Sn(e,t){return null==(e=e[t])?void 0:ii(e)}function Nn(t,r){try{li(ci,t,{value:r,configurable:!0,writable:!0})}catch(e){ci[t]=r}return r}function Cn(e){return yi(hi(e))}function An(e){return"Symbol("+(void 0===e?"":e)+")_"+Ti(++wi+Ei,36)}function kn(e){var t;return _i(Si,e)&&(Ri||"string"==typeof Si[e])||(t="Symbol."+e,Ri&&_i(Ni,e)?Si[e]=Ni[e]:Si[e]=(Ii&&Ci?Ci:Ai)(t)),Si[e]}function xn(e){return e=function(e,t){if(!xi(e)||Pi(e))return e;var r=Ui(e,Li);if(r){if(r=ki(r,e,t=void 0===t?"default":t),!xi(r)||Pi(r))return r;throw Di("Can't convert object to primitive value")}return Mi(e,t=void 0===t?"number":t)}(e,"string"),Fi(e)?e:e+""}function Pn(e){return Vi?ji.createElement(e):{}}function Un(e){if(Wi(e))return e;throw Qi(Ji(e)+" is not an object")}var i=g,p=Function.prototype,e=p.bind,Mn=p.call,Dn=i&&e.bind(Mn,Mn),d=i?function(e){return e&&Dn(e)}:function(e){return e&&function(){return Mn.apply(e,arguments)}},c=d,Ln=c({}.toString),Fn=c("".slice),r=T,jn=En,Vn=Object,Hn=d("".split),p=r(function(){return!Vn("z").propertyIsEnumerable(0)})?function(e){return"String"==jn(e)?Hn(e,""):Vn(e)}:Vn,zn=TypeError,Bn=p,Gn=Tn,Kn=b,qn=y,$n=b,e=d({}.isPrototypeOf),i=On("navigator","userAgent")||"",c=i,r=y.process,Yn=y.Deno,r=r&&r.versions||Yn&&Yn.version,Yn=r&&r.v8,r=O=!(O=Yn?0<(_=Yn.split("."))[0]&&_[0]<4?1:+(_[0]+_[1]):O)&&c&&(!(_=c.match(/Edge\/(\d+)/))||74<=_[1])&&(_=c.match(/Chrome\/(\d+)/))?+_[1]:O,Xn=r,Yn=T,c=!!Object.getOwnPropertySymbols&&!Yn(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Xn&&Xn<41}),_=c&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Wn=On,Jn=b,Qn=e,Zn=Object,O=_?function(e){return"symbol"==typeof e}:function(e){var t=Wn("Symbol");return Jn(t)&&Qn(t.prototype,Zn(e))},ei=String,ti=b,ri=Rn,ni=TypeError,ii=In,oi=o,si=b,ai=_n,ui=TypeError,Yn={exports:{}},ci=y,li=Object.defineProperty,fi=Nn,pi="__core-js_shared__",fi=y[pi]||fi(pi,{}),di=fi,hi=((Yn.exports=function(e,t){return di[e]||(di[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.24.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"}),Tn),yi=Object,vi=Cn,gi=d({}.hasOwnProperty),pi=Object.hasOwn||function(e,t){return gi(vi(e),t)},mi=d,wi=0,Ei=Math.random(),Ti=mi(1..toString),mi=y,bi=Yn.exports,_i=pi,Oi=An,Ri=c,Ii=_,Si=bi("wks"),Ni=mi.Symbol,Ci=Ni&&Ni.for,Ai=Ii?Ni:Ni&&Ni.withoutSetter||Oi,ki=o,xi=_n,Pi=O,Ui=Sn,Mi=function(e,t){var r,n;if("string"===t&&si(r=e.toString)&&!ai(n=oi(r,e)))return n;if(si(r=e.valueOf)&&!ai(n=oi(r,e)))return n;if("string"!==t&&si(r=e.toString)&&!ai(n=oi(r,e)))return n;throw ui("Can't convert object to primitive value")},Di=TypeError,Li=kn("toPrimitive"),Fi=O,c=_n,ji=y.document,Vi=c(ji)&&c(ji.createElement),Hi=Pn,_=!v&&!T(function(){return 7!=Object.defineProperty(Hi("div"),"a",{get:function(){return 7}}).a}),zi=o,Bi=m,Gi=wn,Ki=bn,qi=xn,$i=pi,Yi=_,Xi=Object.getOwnPropertyDescriptor,bi=(Wr.f=v?Xi:function(e,t){if(e=Ki(e),t=qi(t),Yi)try{return Xi(e,t)}catch(e){}if($i(e,t))return Gi(!zi(Bi.f,e,t),e[t])},{}),mi=v&&T(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),Wi=_n,Ji=String,Qi=TypeError,Zi=_,eo=Un,to=xn,ro=TypeError,no=Object.defineProperty,io=Object.getOwnPropertyDescriptor,oo="enumerable",so="configurable",ao="writable",uo=(bi.f=v?mi?function(e,t,r){var n;return eo(e),t=to(t),eo(r),"function"==typeof e&&"prototype"===t&&"value"in r&&ao in r&&!r[ao]&&(n=io(e,t))&&n[ao]&&(e[t]=r.value,r={configurable:(so in r?r:n)[so],enumerable:(oo in r?r:n)[oo],writable:!1}),no(e,t,r)}:no:function(e,t,r){if(eo(e),t=to(t),eo(r),Zi)try{return no(e,t,r)}catch(e){}if("get"in r||"set"in r)throw ro("Accessors not supported");return"value"in r&&(e[t]=r.value),e},bi),co=wn,Oi=v?function(e,t,r){return uo.f(e,t,co(1,r))}:function(e,t,r){return e[t]=r,e},O={exports:{}},c=v,m=pi,_=Function.prototype,lo=c&&Object.getOwnPropertyDescriptor,m=m(_,"name"),m={EXISTS:m,PROPER:m&&"something"===function(){}.name,CONFIGURABLE:m&&(!c||lo(_,"name").configurable)},c=b,lo=fi,fo=d(Function.toString);c(lo.inspectSource)||(lo.inspectSource=function(e){return fo(e)});function po(e){return ko[e]||(ko[e]=Ao(e))}function ho(e,t,r,n){var i=(n=n||{}).enumerable,o=void 0!==n.name?n.name:t;if($o(r)&&Xo(r,o,n),n.global)i?e[t]=r:Wo(t,r);else{try{n.unsafe?e[t]&&(i=!0):delete e[t]}catch(e){}i?e[t]=r:Yo.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e}function yo(e){return(e=+e)!=e||0==e?0:Zo(e)}function vo(e,t){return(e=es(e))<0?ts(e+t,0):rs(e,t)}function R(e){return 0<(e=e.length)?is(ns(e),9007199254740991):0}function go(a){return function(e,t,r){var n,i=os(e),o=as(i),s=ss(r,o);if(a&&t!=t){for(;s<o;)if((n=i[s++])!=n)return!0}else for(;s<o;s++)if((a||s in i)&&i[s]===t)return a||s||0;return!a&&-1}}function mo(e,t){var r,n=cs(e),i=0,o=[];for(r in n)!us(fs,r)&&us(n,r)&&ps(o,r);for(;t.length>i;)!us(n,r=t[i++])||~ls(o,r)||ps(o,r);return o}function wo(e,t,r){for(var n=Es(t),i=bs.f,o=Ts.f,s=0;s<n.length;s++){var a=n[s];ws(e,a)||r&&ws(r,a)||i(e,a,o(t,a))}}function Eo(e,t){return(e=Ss[Is(e)])==Cs||e!=Ns&&(Os(t)?_s(t):!!t)}function I(e,t){var r,n,i,o,s=e.target,a=e.global,u=e.stat;if(r=a?As:u?As[s]||Us(s,{}):(As[s]||{}).prototype)for(n in t){if(i=t[n],o=e.dontCallGetSet?(o=ks(r,n))&&o.value:r[n],!Ds(a?n:s+(u?".":"#")+n,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Ms(i,o)}(e.sham||o&&o.sham)&&xs(i,"sham",!0),Ps(r,n,i,e)}}var To,bo,_o,Oo,Ro,Io,So,No,_=lo.inspectSource,c=b,lo=_,Co=y.WeakMap,c=c(Co)&&/native code/.test(lo(Co)),lo=Yn.exports,Ao=An,ko=lo("keys"),Co={},Yn=d,xo=_n,Po=Oi,Uo=pi,lo=fi,S=po,N=Co,Mo="Object already initialized",Do=y.TypeError,C=y.WeakMap,c=(So=c||lo.state?(To=lo.state||(lo.state=new C),bo=Yn(To.get),_o=Yn(To.has),Oo=Yn(To.set),Ro=function(e,t){if(_o(To,e))throw new Do(Mo);return t.facade=e,Oo(To,e,t),t},Io=function(e){return bo(To,e)||{}},function(e){return _o(To,e)}):(N[No=S("state")]=!0,Ro=function(e,t){if(Uo(e,No))throw new Do(Mo);return t.facade=e,Po(e,No,t),t},Io=function(e){return Uo(e,No)?e[No]:{}},function(e){return Uo(e,No)}),{set:Ro,get:Io,has:So,enforce:function(e){return So(e)?Io(e):Ro(e,{})},getterFor:function(t){return function(e){if(xo(e)&&(e=Io(e)).type===t)return e;throw Do("Incompatible receiver, "+t+" required")}}}),lo=T,Lo=b,Fo=pi,jo=v,Vo=m.CONFIGURABLE,Ho=_,zo=c.enforce,Bo=c.get,Go=Object.defineProperty,Ko=jo&&!lo(function(){return 8!==Go(function(){},"length",{value:8}).length}),qo=String(String).split("String"),C=O.exports=function(e,t,r){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!Fo(e,"name")||Vo&&e.name!==t)&&(jo?Go(e,"name",{value:t,configurable:!0}):e.name=t),Ko&&r&&Fo(r,"arity")&&e.length!==r.arity&&Go(e,"length",{value:r.arity});try{r&&Fo(r,"constructor")&&r.constructor?jo&&Go(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}r=zo(e);return Fo(r,"source")||(r.source=qo.join("string"==typeof t?t:"")),e},$o=(Function.prototype.toString=C(function(){return Lo(this)&&Bo(this).source||Ho(this)},"toString"),b),Yo=bi,Xo=O.exports,Wo=Nn,Yn={},Jo=Math.ceil,Qo=Math.floor,Zo=Math.trunc||function(e){e=+e;return(0<e?Qo:Jo)(e)},es=yo,ts=Math.max,rs=Math.min,ns=yo,is=Math.min,os=bn,ss=vo,as=R,N={includes:go(!0),indexOf:go(!1)},us=pi,cs=bn,ls=N.indexOf,fs=Co,ps=d([].push),S=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ds=mo,hs=S.concat("length","prototype"),lo=(Yn.f=Object.getOwnPropertyNames||function(e){return ds(e,hs)},{}),C=(lo.f=Object.getOwnPropertySymbols,On),ys=Yn,vs=lo,gs=Un,ms=d([].concat),lo=C("Reflect","ownKeys")||function(e){var t=ys.f(gs(e)),r=vs.f;return r?ms(t,r(e)):t},ws=pi,Es=lo,Ts=Wr,bs=bi,_s=T,Os=b,Rs=/#|\.prototype\./,Is=Eo.normalize=function(e){return String(e).replace(Rs,".").toLowerCase()},Ss=Eo.data={},Ns=Eo.NATIVE="N",Cs=Eo.POLYFILL="P",C=Eo,As=y,ks=Wr.f,xs=Oi,Ps=ho,Us=Nn,Ms=wo,Ds=C,lo=!T(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),Ls=pi,Fs=b,js=Cn,Vs=po("IE_PROTO"),Hs=Object,zs=Hs.prototype,lo=lo?Hs.getPrototypeOf:function(e){e=js(e);if(Ls(e,Vs))return e[Vs];var t=e.constructor;return Fs(t)&&e instanceof t?t.prototype:e instanceof Hs?zs:null},Bs=b,Gs=String,Ks=TypeError,qs=d,$s=Un,Ys=Object.setPrototypeOf||("__proto__"in{}?function(){var r,n=!1,e={};try{(r=qs(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),n=e instanceof Array}catch(r){}return function(e,t){return $s(e),function(e){if("object"==typeof e||Bs(e))return;throw Ks("Can't set "+Gs(e)+" as a prototype")}(t),n?r(e,t):e.__proto__=t,e}}():void 0),Xs={},Ws=mo,Js=S,A=Object.keys||function(e){return Ws(e,Js)},Qs=bi,Zs=Un,ea=bn,ta=A;Xs.f=v&&!mi?Object.defineProperties:function(e,t){Zs(e);for(var r,n=ea(t),i=ta(t),o=i.length,s=0;s<o;)Qs.f(e,r=i[s++],n[r]);return e};function ra(){}function na(e){e.write(ba("")),e.close();var t=e.parentWindow.Object;return e=null,t}function ia(e,t){return Aa(e),void 0===t?e:ka?xa(e,t):function(){return e.apply(t,arguments)}}function oa(e){return void 0!==e&&(Pa.Array===e||Ma[Ua]===e)}function sa(e){if(null!=e)return za(e,Ga)||za(e,"@@iterator")||Ba[Ha(e)]}function aa(e,t){if(t=arguments.length<2?Xa(e):t,qa(t))return $a(Ka(t,e));throw Wa(Ya(e)+" is not iterable")}function ua(e,t,r){var n,i;Qa(e);try{if(!(n=Za(e,"return"))){if("throw"===t)throw r;return r}n=Ja(n,e)}catch(e){i=!0,n=e}if("throw"===t)throw r;if(i)throw n;return Qa(n),r}function ca(e,t){this.stopped=e,this.result=t}function la(e,t,r){function n(e){return o&&cu(o,"normal",e),new ca(!0,e)}function i(e){return p?(ru(e),y?v(e[0],e[1],n):v(e[0],e[1])):y?v(e,n):v(e)}var o,s,a,u,c,l,f=r&&r.that,p=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_RECORD),h=!(!r||!r.IS_ITERATOR),y=!(!r||!r.INTERRUPTED),v=eu(t,f);if(d)o=e.iterator;else if(h)o=e;else{if(!(r=uu(e)))throw lu(nu(e)+" is not iterable");if(iu(r)){for(s=0,a=ou(e);s<a;s++)if((u=i(e[s]))&&su(fu,u))return u;return new ca(!1)}o=au(e,r)}for(c=(d?e:o).next;!(l=tu(c,o)).done;){try{u=i(l.value)}catch(e){cu(o,"throw",e)}if("object"==typeof u&&u&&su(fu,u))return u}return new ca(!1)}function fa(e){if("Symbol"===pu(e))throw TypeError("Cannot convert a Symbol value to a string");return du(e)}function pa(e,t){var r,n=2<arguments.length?arguments[2]:void 0,i=gu(Cu,this);return wu?r=wu(new Su,i?mu(this):Cu):(r=i?this:Tu(Cu),bu(r,Iu,"Error")),void 0!==t&&bu(r,"message",function(e,t){return void 0===e?arguments.length<2?"":t:hu(e)}(t)),Ru&&bu(r,"stack",function(e,t){if(Sa&&"string"==typeof e&&!Oa.prepareStackTrace)for(;t--;)e=Ra(e,Ia,"");return e}(r.stack,1)),i=r,Na(t=n)&&"cause"in t&&Ca(i,"cause",t.cause),Ou(e,Nu,{that:n=[]}),bu(r,"errors",n),r}var da,A=On("document","documentElement"),ha=Un,ya=Xs,va=S,mi=Co,ga=A,ma=Pn,wa="prototype",Ea="script",Ta=po("IE_PROTO"),ba=function(e){return"<"+Ea+">"+e+"</"+Ea+">"},_a=function(){try{da=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;_a="undefined"==typeof document||document.domain&&da?na(da):(t=ma("iframe"),r="java"+Ea+":",t.style.display="none",ga.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(ba("document.F=Object")),e.close(),e.F);for(var n=va.length;n--;)delete _a[wa][va[n]];return _a()},Xs=(mi[Ta]=!0,Object.create||function(e,t){var r;return null!==e?(ra[wa]=ha(e),r=new ra,ra[wa]=null,r[Ta]=e):r=_a(),void 0===t?r:ya.f(r,t)}),Oa=Error,Ra=d("".replace),S=String(Oa("zxcasd").stack),Ia=/\n\s*at [^:]*:[^\n]*/,Sa=Ia.test(S),Na=_n,Ca=Oi,Aa=In,ka=g,xa=d(d.bind),mi={},Pa=mi,Ua=kn("iterator"),Ma=Array.prototype,S={},S=(S[kn("toStringTag")]="z","[object z]"===String(S)),k=S,Da=b,La=En,Fa=kn("toStringTag"),ja=Object,Va="Arguments"==La(function(){return arguments}()),k=k?La:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=function(e,t){try{return e[t]}catch(e){}}(e=ja(e),Fa))?t:Va?La(e):"Object"==(t=La(e))&&Da(e.callee)?"Arguments":t},Ha=k,za=Sn,Ba=mi,Ga=kn("iterator"),Ka=o,qa=In,$a=Un,Ya=Rn,Xa=sa,Wa=TypeError,Ja=o,Qa=Un,Za=Sn,eu=ia,tu=o,ru=Un,nu=Rn,iu=oa,ou=R,su=e,au=aa,uu=sa,cu=ua,lu=TypeError,fu=ca.prototype,pu=k,du=String,hu=fa,yu=wn,x=!T(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",yu(1,7)),7!==e.stack)}),vu=I,gu=e,mu=lo,wu=Ys,Eu=wo,Tu=Xs,bu=Oi,_u=wn,Ou=la,Ru=x,Iu=kn("toStringTag"),Su=Error,Nu=[].push,Cu=(wu?wu(pa,Su):Eu(pa,Su,{name:!0}),pa.prototype=Tu(Su.prototype,{constructor:_u(1,pa),message:_u(1,""),name:_u(1,"AggregateError")})),x=(vu({global:!0,constructor:!0,arity:2},{AggregateError:pa}),kn),Eu=Xs,_u=bi.f,Au=x("unscopables"),ku=Array.prototype;null==ku[Au]&&_u(ku,Au,{configurable:!0,value:Eu(null)});function xu(e){ku[Au][e]=!0}var Pu,vu=T,x=b,_u=lo,Eu=ho,Uu=kn("iterator"),P=!1;[].keys&&("next"in(Fu=[].keys())?(_u=_u(_u(Fu)))!==Object.prototype&&(Pu=_u):P=!0);function Mu(e,t,r){(e=e&&!r?e.prototype:e)&&!Vu(e,Hu)&&ju(e,Hu,{configurable:!0,value:t})}function Du(){return this}function Lu(e,t,r,n,i,o,s){var a=r,u=t,c=void 0;function l(e){if(e===i&&v)return v;if(!sc&&e in h)return h[e];switch(e){case"keys":case uc:case cc:return function(){return new r(this,e)}}return function(){return new r(this)}}u+=" Iterator",a.prototype=Bu(zu,{next:Gu(+!c,n)}),Ku(a,u,!1),qu[u]=$u;var f,p,c=t+" Iterator",d=!1,h=e.prototype,y=h[ac]||h["@@iterator"]||i&&h[i],v=!sc&&y||l(i);if((n="Array"==t&&h.entries||y)&&(a=Ju(n.call(new e)))!==Object.prototype&&a.next&&(Ju(a)!==oc&&(Qu?Qu(a,oc):Wu(a[ac])||tc(a,ac,Du)),Zu(a,c,!0)),nc&&i==uc&&y&&y.name!==uc&&(ic?ec(h,"name",uc):(d=!0,v=function(){return Xu(y,this)})),i)if(f={values:l(uc),keys:o?v:l("keys"),entries:l(cc)},s)for(p in f)!sc&&!d&&p in h||tc(h,p,f[p]);else Yu({target:t,proto:!0,forced:sc||d},f);return h[ac]!==v&&tc(h,ac,v,{name:i}),rc[t]=v,f}x((Pu=null==Pu||vu(function(){var e={};return Pu[Uu].call(e)!==e})?{}:Pu)[Uu])||Eu(Pu,Uu,function(){return this});var Fu={IteratorPrototype:Pu,BUGGY_SAFARI_ITERATORS:P},ju=bi.f,Vu=pi,Hu=kn("toStringTag"),zu=Fu.IteratorPrototype,Bu=Xs,Gu=wn,Ku=Mu,qu=mi,$u=function(){return this},Yu=I,Xu=o,Wu=b,Ju=lo,Qu=Ys,Zu=Mu,ec=Oi,tc=ho,rc=mi,nc=m.PROPER,ic=m.CONFIGURABLE,oc=Fu.IteratorPrototype,sc=Fu.BUGGY_SAFARI_ITERATORS,ac=kn("iterator"),uc="values",cc="entries",lc=bn,_u=xu,x=mi,vu=c,Eu=bi.f,P=Lu,m=v,fc="Array Iterator",pc=vu.set,dc=vu.getterFor(fc),Fu=P(Array,"Array",function(e,t){pc(this,{type:fc,target:lc(e),index:0,kind:t})},function(){var e=dc(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?{value:e.target=void 0,done:!0}:"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values"),mi=x.Arguments=x.Array;if(_u("keys"),_u("values"),_u("entries"),m&&"values"!==mi.name)try{Eu(mi,"name",{value:"values"})}catch(Zw){}function hc(e){var e=Ec(e),t=Tc.f;bc&&e&&!e[_c]&&t(e,_c,{configurable:!0,get:function(){return this}})}function yc(e,t){if(Oc(t,e))return e;throw Rc("Incorrect invocation")}function vc(){}function gc(e){if(!Ic(e))return!1;try{return Ac(vc,Cc,e),!0}catch(e){return!1}}function mc(e){if(!Ic(e))return!1;switch(Sc(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Pc||!!xc(kc,Nc(e))}catch(e){return!0}}var wc=k,vu=(S||ho(Object.prototype,"toString",S?{}.toString:function(){return"[object "+wc(this)+"]"},{unsafe:!0}),"process"==En(y.process)),Ec=On,Tc=bi,bc=v,_c=kn("species"),Oc=e,Rc=TypeError,P=d,x=T,Ic=b,Sc=k,Nc=_,Cc=[],Ac=On("Reflect","construct"),kc=/^\s*(?:class|function)\b/,xc=P(kc.exec),Pc=!kc.exec(vc);mc.sham=!0;function Uc(e,t){var r,e=Vc(e).constructor;if(void 0===e||null==(r=Vc(e)[Hc]))return t;if(Lc(e=r))return e;throw jc(Fc(e)+" is not a constructor")}var Mc,Dc,_u=!Ac||x(function(){var e;return gc(gc.call)||!gc(Object)||!gc(function(){e=!0})||e})?mc:gc,Lc=_u,Fc=Rn,jc=TypeError,Vc=Un,Hc=kn("species"),m=Function.prototype,zc=m.apply,Bc=m.call,Eu="object"==typeof Reflect&&Reflect.apply||(g?Bc.bind(zc):function(){return Bc.apply(zc,arguments)}),mi=d([].slice),Gc=TypeError,S=/(?:ipad|iphone|ipod).*applewebkit/i.test(i),Kc=y,qc=Eu,e=ia,$c=b,Yc=pi,k=T,Xc=A,Wc=mi,Jc=Pn,P=S,x=vu,m=Kc.setImmediate,g=Kc.clearImmediate,Qc=Kc.process,Zc=Kc.Dispatch,el=Kc.Function,A=Kc.MessageChannel,tl=Kc.String,rl=0,nl={},il="onreadystatechange";try{Mc=Kc.location}catch(Zw){}function ol(e){return function(){ul(e)}}function sl(e){ul(e.data)}function al(e){Kc.postMessage(tl(e),Mc.protocol+"//"+Mc.host)}var ul=function(e){var t;Yc(nl,e)&&(t=nl[e],delete nl[e],t())};m&&g||(m=function(e){var t=arguments.length,r=1;if(t<r)throw Gc("Not enough arguments");var n=$c(e)?e:el(e),i=Wc(arguments,1);return nl[++rl]=function(){qc(n,void 0,i)},Dc(rl),rl},g=function(e){delete nl[e]},x?Dc=function(e){Qc.nextTick(ol(e))}:Zc&&Zc.now?Dc=function(e){Zc.now(ol(e))}:A&&!P?(P=(x=new A).port2,x.port1.onmessage=sl,Dc=e(P.postMessage,P)):Kc.addEventListener&&$c(Kc.postMessage)&&!Kc.importScripts&&Mc&&"file:"!==Mc.protocol&&!k(al)?(Dc=al,Kc.addEventListener("message",sl,!1)):Dc=il in Jc("script")?function(e){Xc.appendChild(Jc("script"))[il]=function(){Xc.removeChild(this),ul(e)}}:function(e){setTimeout(ol(e),0)});function cl(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}function ll(){this.head=null,this.tail=null}function fl(e){var r,n;this.promise=new e(function(e,t){if(void 0!==r||void 0!==n)throw TypeError("Bad Promise constructor");r=e,n=t}),this.resolve=xl(r),this.reject=xl(n)}var pl,dl,hl,yl,vl,gl,ml,A={set:m,clear:g},x=y,e=/ipad|iphone|ipod/i.test(i)&&void 0!==x.Pebble,P=/web0s(?!.*chrome)/i.test(i),k=y,m=ia,g=Wr.f,wl=A.set,x=S,Wr=e,S=P,El=vu,e=k.MutationObserver||k.WebKitMutationObserver,P=k.document,Tl=k.process,bl=k.Promise,g=g(k,"queueMicrotask"),g=g&&g.value,S=(g||(pl=function(){var e,t;for(El&&(e=Tl.domain)&&e.exit();dl;){t=dl.fn,dl=dl.next;try{t()}catch(e){throw dl?yl():hl=void 0,e}}hl=void 0,e&&e.enter()},yl=x||El||S||!e||!P?!Wr&&bl&&bl.resolve?((x=bl.resolve(void 0)).constructor=bl,ml=m(x.then,x),function(){ml(pl)}):El?function(){Tl.nextTick(pl)}:(wl=m(wl,k),function(){wl(pl)}):(vl=!0,gl=P.createTextNode(""),new e(pl).observe(gl,{characterData:!0}),function(){gl.data=vl=!vl})),g||function(e){e={fn:e,next:void 0};hl&&(hl.next=e),dl||(dl=e,yl()),hl=e}),_l=y,Wr=(ll.prototype={add:function(e){e={item:e,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}},ll),bl=y.Promise,x="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,m=!x&&!vu&&"object"==typeof window&&"object"==typeof document,k=y,Ol=bl,P=b,e=C,Rl=_,g=kn,Il=m,Sl=x,Nl=r,Cl=(Ol&&Ol.prototype,g("species")),Al=!1,kl=P(k.PromiseRejectionEvent),_={CONSTRUCTOR:e("Promise",function(){var e=Rl(Ol),t=e!==String(Ol);if(!t&&66===Nl)return!0;if(!Nl||Nl<51||!/native code/.test(e)){var e=new Ol(function(e){e(1)}),r=function(e){e(function(){},function(){})};if((e.constructor={})[Cl]=r,!(Al=e.then(function(){})instanceof r))return!0}return!t&&(Il||Sl)&&!kl}),REJECTION_EVENT:kl,SUBCLASSING:Al},m={},xl=In;m.f=function(e){return new fl(e)};function Pl(e,t){var r,n,i,o,s=t.value,a=1==t.state,u=a?e.ok:e.fail,c=e.resolve,l=e.reject,f=e.domain;try{u?(a||(2===t.rejection&&(o=t,jl(Kl,Fl,function(){var e=o.facade;Ll?sf.emit("rejectionHandled",e):df("rejectionhandled",e,o.value)})),t.rejection=1),!0===u?r=s:(f&&f.enter(),r=u(s),f&&(f.exit(),i=!0)),r===e.promise?l(nf("Promise-chain cycle")):(n=ff(r))?jl(n,r,c,l):c(r)):l(s)}catch(e){f&&!i&&f.exit(),l(e)}}var Ul,Ml,Dl,x=I,Ll=vu,Fl=y,jl=o,g=ho,P=Ys,k=Mu,e=hc,Vl=In,Hl=b,zl=_n,Bl=yc,Gl=Uc,Kl=A.set,ql=S,$l=cl,Yl=Wr,A=c,S=bl,Wr=m,Xl="Promise",Wl=_.CONSTRUCTOR,Jl=_.REJECTION_EVENT,Ql=_.SUBCLASSING,Zl=A.getterFor(Xl),ef=A.set,A=S&&S.prototype,tf=S,rf=A,nf=Fl.TypeError,of=Fl.document,sf=Fl.process,af=Wr.f,uf=af,cf=!!(of&&of.createEvent&&Fl.dispatchEvent),lf="unhandledrejection",ff=function(e){var t;return!(!zl(e)||!Hl(t=e.then))&&t},pf=function(r,i){r.notified||(r.notified=!0,ql(function(){for(var e,n,t=r.reactions;e=t.get();)Pl(e,r);r.notified=!1,i&&!r.rejection&&(n=r,jl(Kl,Fl,function(){var e,t=n.facade,r=n.value;if(hf(n)&&(e=$l(function(){Ll?sf.emit("unhandledRejection",r,t):df(lf,t,r)}),n.rejection=Ll||hf(n)?2:1,e.error))throw e.value}))}))},df=function(e,t,r){var n;cf?((n=of.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),Fl.dispatchEvent(n)):n={promise:t,reason:r},!Jl&&(t=Fl["on"+e])?t(n):e===lf&&function(e,t){var r=_l.console;r&&r.error&&(1==arguments.length?r.error(e):r.error(e,t))}("Unhandled promise rejection",r)},hf=function(e){return 1!==e.rejection&&!e.parent},yf=function(t,r,n){return function(e){t(r,e,n)}},vf=function(e,t,r){e.done||(e.done=!0,(e=r?r:e).value=t,e.state=2,pf(e,!0))},gf=function(r,e,t){if(!r.done){r.done=!0,t&&(r=t);try{if(r.facade===e)throw nf("Promise can't be resolved itself");var n=ff(e);n?ql(function(){var t={done:!1};try{jl(n,e,yf(gf,t,r),yf(vf,t,r))}catch(e){vf(t,e,r)}}):(r.value=e,r.state=1,pf(r,!1))}catch(e){vf({done:!1},e,r)}}};if(Wl&&(rf=(tf=function(e){Bl(this,rf),Vl(e),jl(Ul,this);var t=Zl(this);try{e(yf(gf,t),yf(vf,t))}catch(e){vf(t,e)}}).prototype,(Ul=function(e){ef(this,{type:Xl,done:!1,notified:!1,parent:!1,reactions:new Yl,rejection:!1,state:0,value:void 0})}).prototype=g(rf,"then",function(e,t){var r=Zl(this),n=af(Gl(this,tf));return r.parent=!0,n.ok=!Hl(e)||e,n.fail=Hl(t)&&t,n.domain=Ll?sf.domain:void 0,0==r.state?r.reactions.add(n):ql(function(){Pl(n,r)}),n.promise}),Ml=function(){var e=new Ul,t=Zl(e);this.promise=e,this.resolve=yf(gf,t),this.reject=yf(vf,t)},Wr.f=af=function(e){return e===tf||void 0===e?new Ml:uf(e)},Hl(S)&&A!==Object.prototype)){Dl=A.then,Ql||g(A,"then",function(e,t){var r=this;return new tf(function(e,t){jl(Dl,r,e,t)}).then(e,t)},{unsafe:!0});try{delete A.constructor}catch(Zw){}P&&P(A,rf)}x({global:!0,constructor:!0,wrap:!0,forced:Wl},{Promise:tf}),k(tf,Xl,!1),e(Xl);var mf=kn("iterator"),wf=!1;try{var Ef=0,Tf={next:function(){return{done:!!Ef++}},return:function(){wf=!0}};Tf[mf]=function(){return this},Array.from(Tf,function(){throw 2})}catch(Zw){}function bf(e,t){if(!t&&!wf)return!1;var r=!1;try{var n={};n[mf]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r}function _f(e,t){return Vf(e),Hf(t)&&t.constructor===e?t:((0,(e=zf.f(e)).resolve)(t),e.promise)}function Of(i){return function(e,t){var r,e=up(cp(e)),t=ap(t),n=e.length;return t<0||n<=t?i?"":void 0:(r=fp(e,t))<55296||56319<r||t+1===n||(n=fp(e,t+1))<56320||57343<n?i?lp(e,t):r:i?pp(e,t,t+2):n-56320+(r-55296<<10)+65536}}function Rf(e,t){if(e){if(e[bp]!==Op)try{Tp(e,bp,Op)}catch(t){e[bp]=Op}if(e[_p]||Tp(e,_p,t),wp[t])for(var r in Ep)if(e[r]!==Ep[r])try{Tp(e,r,Ep[r])}catch(t){e[r]=Ep[r]}}}var If,Sf=bl,Wr=_.CONSTRUCTOR||!bf(function(e){Sf.all(e).then(void 0,function(){})}),Nf=o,Cf=In,Af=m,kf=cl,xf=la,S=(I({target:"Promise",stat:!0,forced:Wr},{all:function(e){var a=this,t=Af.f(a),u=t.resolve,c=t.reject,r=kf(function(){var n=Cf(a.resolve),i=[],o=0,s=1;xf(e,function(e){var t=o++,r=!1;s++,Nf(n,a,e).then(function(e){r||(r=!0,i[t]=e,--s||u(i))},c)}),--s||u(i)});return r.error&&c(r.value),t.promise}}),I),Ql=bl,g=On,P=b,A=ho,x=Ql&&Ql.prototype,Pf=(S({target:"Promise",proto:!0,forced:_.CONSTRUCTOR,real:!0},{catch:function(e){return this.then(void 0,e)}}),P(Ql)&&(Wl=g("Promise").prototype.catch,x.catch!==Wl&&A(x,"catch",Wl,{unsafe:!0})),o),Uf=In,Mf=m,Df=cl,Lf=la,Ff=(I({target:"Promise",stat:!0,forced:Wr},{race:function(e){var r=this,n=Mf.f(r),i=n.reject,t=Df(function(){var t=Uf(r.resolve);Lf(e,function(e){Pf(t,r,e).then(n.resolve,i)})});return t.error&&i(t.value),n.promise}}),o),jf=m,Vf=(I({target:"Promise",stat:!0,forced:_.CONSTRUCTOR},{reject:function(e){var t=jf.f(this);return Ff(t.reject,void 0,e),t.promise}}),Un),Hf=_n,zf=m,k=I,e=_.CONSTRUCTOR,Bf=_f,Gf=(On("Promise"),k({target:"Promise",stat:!0,forced:e},{resolve:function(e){return Bf(this,e)}}),o),Kf=In,qf=m,$f=cl,Yf=la,Xf=(I({target:"Promise",stat:!0},{allSettled:function(e){var a=this,t=qf.f(a),u=t.resolve,r=t.reject,n=$f(function(){var n=Kf(a.resolve),i=[],o=0,s=1;Yf(e,function(e){var t=o++,r=!1;s++,Gf(n,a,e).then(function(e){r||(r=!0,i[t]={status:"fulfilled",value:e},--s||u(i))},function(e){r||(r=!0,i[t]={status:"rejected",reason:e},--s||u(i))})}),--s||u(i)});return n.error&&r(n.value),t.promise}}),o),Wf=In,Jf=On,Qf=m,Zf=cl,ep=la,tp="No one promise resolved",Tf=(I({target:"Promise",stat:!0},{any:function(e){var u=this,c=Jf("AggregateError"),t=Qf.f(u),l=t.resolve,f=t.reject,r=Zf(function(){var n=Wf(u.resolve),i=[],o=0,s=1,a=!1;ep(e,function(e){var t=o++,r=!1;s++,Xf(n,u,e).then(function(e){r||a||(a=!0,l(e))},function(e){r||a||(r=!0,i[t]=e,--s||f(new c(i,tp)))})}),--s||f(new c(i,tp))});return r.error&&f(r.value),t.promise}}),I),S=bl,P=T,rp=On,np=b,ip=Uc,op=_f,Ql=ho,sp=S&&S.prototype,A=(Tf({target:"Promise",proto:!0,real:!0,forced:!!S&&P(function(){sp.finally.call({then:function(){}},function(){})})},{finally:function(t){var r=ip(this,rp("Promise")),e=np(t);return this.then(e?function(e){return op(r,t()).then(function(){return e})}:t,e?function(e){return op(r,t()).then(function(){throw e})}:t)}}),np(S)&&(g=rp("Promise").prototype.finally,sp.finally!==g&&Ql(sp,"finally",g,{unsafe:!0})),d),ap=yo,up=fa,cp=Tn,lp=A("".charAt),fp=A("".charCodeAt),pp=A("".slice),dp=(Of(!1),Of(!0)),hp=fa,x=c,Wl=Lu,yp="String Iterator",vp=x.set,gp=x.getterFor(yp),Wr=(Wl(String,"String",function(e){vp(this,{type:yp,string:hp(e),index:0})},function(){var e=gp(this),t=e.string,r=e.index;return r>=t.length?{value:void 0,done:!0}:(t=dp(t,r),e.index+=t.length,{value:t,done:!1})}),y),_=(Wr.Promise,Pn("span").classList),k=_&&_.constructor&&_.constructor.prototype,e=k===Object.prototype?void 0:k,mp=y,wp={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},bl=e,Ep=Fu,Tp=Oi,Tf=kn,bp=Tf("iterator"),_p=Tf("toStringTag"),Op=Ep.values;for(If in wp)Rf(mp[If]&&mp[If].prototype,If);Rf(bl,"DOMTokenList");function Rp(e,t,r){(t=Wp(t))in e?Jp.f(e,t,Qp(0,r)):e[t]=r}function Ip(e){if(9007199254740991<e)throw vd("Maximum allowed index exceeded");return e}function Sp(e,t){return gd(e=e)&&(r=e.constructor,(md(r)&&(r===Td||gd(r.prototype))||wd(r)&&null===(r=r[Ed]))&&(r=void 0)),new(void 0===r?Td:r)(0===t?0:t);var r}function Np(t){return 51<=_d||!bd(function(){var e=[];return(e.constructor={})[Od]=function(){return{foo:1}},1!==e[t](Boolean).foo})}function Cp(e,t){if(!delete e[t])throw Ud("Cannot delete property "+Pd(t)+" of "+Pd(e))}function Ap(p){var d=1==p,h=2==p,y=3==p,v=4==p,g=6==p,m=7==p,w=5==p||g;return function(e,t,r,n){for(var i,o,s=zd(e),a=Hd(s),u=Vd(t,r),c=Bd(a),l=0,t=n||Gd,f=d?t(e,c):h||m?t(e,0):void 0;l<c;l++)if((w||l in a)&&(o=u(i=a[l],l,s),p))if(d)f[l]=o;else if(o)switch(p){case 3:return!0;case 5:return i;case 6:return l;case 2:Kd(f,i)}else switch(p){case 4:return!1;case 7:Kd(f,i)}return g?-1:y||v?v:f}}function kp(e,t){var r=[][e];return!!r&&qd(function(){r.call(null,t||function(){return 1},1)})}function xp(u){var c=1==u;return function(e,t,r){for(var n,i=ih(e),o=nh(i),s=rh(t,r),a=oh(o);0<a--;)if(s(n=o[a],a,i))switch(u){case 0:return n;case 1:return a}return c?-1:void 0}}function Pp(e,t,r,n,i,o,s,a){for(var u,c,l=i,f=0,p=!!s&&fh(s,a);f<n;)f in r&&(u=p?p(r[f],f,t):r[f],0<o&&uh(u)?(c=ch(u),l=Pp(e,t,u,c,l,o-1)-1):(lh(l+1),e[l]=u),l++),f++;return l}function Up(c){return function(e,t,r,n){Vh(t);var i=Hh(e),o=zh(i),s=Bh(i),a=c?s-1:0,u=c?-1:1;if(r<2)for(;;){if(a in o){n=o[a],a+=u;break}if(a+=u,c?a<0:s<=a)throw Gh("Reduce of empty array with no initial value")}for(;c?0<=a:a<s;a+=u)a in o&&(n=t(n,o[a],a,i));return n}}function Mp(e,t,r){for(var n=uy(e),i=ay(t,n),o=ay(void 0===r?n:r,n),s=ly(fy(o-i,0)),a=0;i<o;i++,a++)cy(s,a,e[i]);return s.length=a,s}function Dp(e,t){var r=e.length,n=dy(r/2);if(r<8){for(var i,o,s=e,a=t,u=s.length,c=1;c<u;){for(i=s[o=c];o&&0<a(s[o-1],i);)s[o]=s[--o];o!==c++&&(s[o]=i)}return s}for(var l=e,f=Dp(py(e,0,n),t),p=Dp(py(e,n),t),d=t,h=f.length,y=p.length,v=0,g=0;v<h||g<y;)l[v+g]=v<h&&g<y?d(f[v],p[g])<=0?f[v++]:p[g++]:v<h?f[v++]:p[g++];return l}function Lp(e){tv(e,av,{value:{objectID:"O"+uv++,weakData:{}}})}function Fp(e,t,r){for(var n in t)mv(e,n,t[n],r);return e}var jp,Vp,Hp,zp,Bp,Gp,Kp,qp=m,$p=cl,Yp=(I({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=qp.f(this),e=$p(e);return(e.error?t.reject:t.resolve)(e.value),t.promise}}),Un),Xp=ua,Wp=xn,Jp=bi,Qp=wn,Zp=ia,ed=o,td=Cn,rd=oa,nd=_u,id=R,od=Rp,sd=aa,ad=sa,ud=Array,cd=(I({target:"Array",stat:!0,forced:!bf(function(e){Array.from(e)})},{from:function(e){var t=td(e),e=nd(this),r=arguments.length,n=1<r?arguments[1]:void 0,i=void 0!==n;i&&(n=Zp(n,2<r?arguments[2]:void 0));var o,s,a,u,c,l,r=ad(t),f=0;if(!r||this===ud&&rd(r))for(o=id(t),s=e?new this(o):ud(o);f<o;f++)l=i?n(t[f],f):t[f],od(s,f,l);else for(c=(u=sd(t,r)).next,s=e?new this:[];!(a=ed(c,u)).done;f++)l=i?function(e,t,r,n){try{return n?t(Yp(r)[0],r[1]):t(r)}catch(t){Xp(e,"throw",t)}}(u,n,[a.value,f],!0):a.value,od(s,f,l);return s.length=f,s}}),En),P=Array.isArray||function(e){return"Array"==cd(e)},ld=(I({target:"Array",stat:!0},{isArray:P}),_u),fd=Rp,pd=Array,dd=(I({target:"Array",stat:!0,forced:T(function(){function e(){}return!(pd.of.call(e)instanceof e)})},{of:function(){for(var e=0,t=arguments.length,r=new(ld(this)?this:pd)(t);e<t;)fd(r,e,arguments[e++]);return r.length=t,r}}),Cn),hd=R,yd=yo,S=xu,vd=(I({target:"Array",proto:!0},{at:function(e){var t=dd(this),r=hd(t),e=yd(e),e=0<=e?e:r+e;return e<0||r<=e?void 0:t[e]}}),S("at"),TypeError),gd=P,md=_u,wd=_n,Ed=kn("species"),Td=Array,bd=T,_d=r,Od=kn("species"),Ql=I,g=T,Rd=P,Id=_n,Sd=Cn,Nd=R,Cd=Ip,Ad=Rp,kd=Sp,A=Np,x=r,xd=kn("isConcatSpreadable"),Wl=51<=x||!g(function(){var e=[];return e[xd]=!1,e.concat()[0]!==e}),_=A("concat"),Pd=(Ql({target:"Array",proto:!0,arity:1,forced:!Wl||!_},{concat:function(e){for(var t,r,n,i=Sd(this),o=kd(i,0),s=0,a=-1,u=arguments.length;a<u;a++)if(function(e){if(!Id(e))return!1;var t=e[xd];return void 0!==t?!!t:Rd(e)}(n=-1===a?i:arguments[a]))for(r=Nd(n),Cd(s+r),t=0;t<r;t++,s++)t in n&&Ad(o,s,n[t]);else Cd(s+1),Ad(o,s++,n);return o.length=s,o}}),Rn),Ud=TypeError,Md=Cn,Dd=vo,Ld=R,Fd=Cp,jd=Math.min,k=xu,Vd=(I({target:"Array",proto:!0},{copyWithin:[].copyWithin||function(e,t){var r=Md(this),n=Ld(r),i=Dd(e,n),o=Dd(t,n),e=2<arguments.length?arguments[2]:void 0,s=jd((void 0===e?n:Dd(e,n))-o,n-i),a=1;for(o<i&&i<o+s&&(a=-1,o+=s-1,i+=s-1);0<s--;)o in r?r[i]=r[o]:Fd(r,i),i+=a,o+=a;return r}}),k("copyWithin"),ia),Hd=p,zd=Cn,Bd=R,Gd=Sp,Kd=d([].push),e={forEach:Ap(0),map:Ap(1),filter:Ap(2),some:Ap(3),every:Ap(4),find:Ap(5),findIndex:Ap(6),filterReject:Ap(7)},qd=T,$d=e.every,Yd=(I({target:"Array",proto:!0,forced:!kp("every")},{every:function(e){return $d(this,e,1<arguments.length?arguments[1]:void 0)}}),Cn),Xd=vo,Wd=R,Fu=xu,Jd=(I({target:"Array",proto:!0},{fill:function(e){for(var t=Yd(this),r=Wd(t),n=arguments.length,i=Xd(1<n?arguments[1]:void 0,r),n=2<n?arguments[2]:void 0,o=void 0===n?r:Xd(n,r);i<o;)t[i++]=e;return t}}),Fu("fill"),e.filter),Oi=(I({target:"Array",proto:!0,forced:!Np("filter")},{filter:function(e){return Jd(this,e,1<arguments.length?arguments[1]:void 0)}}),I),Qd=e.find,Tf=xu,bl="find",Zd=!0,m=(bl in[]&&Array(1)[bl](function(){Zd=!1}),Oi({target:"Array",proto:!0,forced:Zd},{find:function(e){return Qd(this,e,1<arguments.length?arguments[1]:void 0)}}),Tf(bl),I),eh=e.findIndex,S=xu,x="findIndex",th=!0,rh=(x in[]&&Array(1)[x](function(){th=!1}),m({target:"Array",proto:!0,forced:th},{findIndex:function(e){return eh(this,e,1<arguments.length?arguments[1]:void 0)}}),S(x),ia),nh=p,ih=Cn,oh=R,g={findLast:xp(0),findLastIndex:xp(1)},sh=g.findLast,A=xu,ah=(I({target:"Array",proto:!0},{findLast:function(e){return sh(this,e,1<arguments.length?arguments[1]:void 0)}}),A("findLast"),g.findLastIndex),Ql=xu,uh=(I({target:"Array",proto:!0},{findLastIndex:function(e){return ah(this,e,1<arguments.length?arguments[1]:void 0)}}),Ql("findLastIndex"),P),ch=R,lh=Ip,fh=ia,Wl=Pp,ph=Wl,dh=Cn,hh=R,yh=yo,vh=Sp,gh=(I({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=dh(this),r=hh(t),n=vh(t,0);return n.length=ph(n,t,t,r,0,void 0===e?1:yh(e)),n}}),Wl),mh=In,wh=Cn,Eh=R,Th=Sp,bh=(I({target:"Array",proto:!0},{flatMap:function(e){var t,r=wh(this),n=Eh(r);return mh(e),(t=Th(r,0)).length=gh(t,r,r,n,0,1,e,1<arguments.length?arguments[1]:void 0),t}}),e.forEach),_=kp("forEach")?[].forEach:function(e){return bh(this,e,1<arguments.length?arguments[1]:void 0)},_h=(I({target:"Array",proto:!0,forced:[].forEach!=_},{forEach:_}),N.includes),k=xu,Fu=(I({target:"Array",proto:!0,forced:T(function(){return!Array(1).includes()})},{includes:function(e){return _h(this,e,1<arguments.length?arguments[1]:void 0)}}),k("includes"),I),Oh=N.indexOf,Oi=kp,Rh=d([].indexOf),Ih=!!Rh&&1/Rh([1],1,-0)<0,Tf=Oi("indexOf"),bl=(Fu({target:"Array",proto:!0,forced:Ih||!Tf},{indexOf:function(e){var t=1<arguments.length?arguments[1]:void 0;return Ih?Rh(this,e,t)||0:Oh(this,e,t)}}),I),m=p,Sh=bn,S=kp,Nh=d([].join),x=m!=Object,A=S("join",","),Ch=(bl({target:"Array",proto:!0,forced:x||!A},{join:function(e){return Nh(Sh(this),void 0===e?",":e)}}),Eu),Ah=bn,kh=yo,xh=R,g=kp,Ph=Math.min,Uh=[].lastIndexOf,Mh=!!Uh&&1/[1].lastIndexOf(1,-0)<0,Ql=g("lastIndexOf"),Wl=Mh||!Ql?function(e){if(Mh)return Ch(Uh,this,arguments)||0;var t=Ah(this),r=xh(t),n=r-1;for((n=1<arguments.length?Ph(n,kh(arguments[1])):n)<0&&(n=r+n);0<=n;n--)if(n in t&&t[n]===e)return n||0;return-1}:Uh,Dh=(I({target:"Array",proto:!0,forced:Wl!==[].lastIndexOf},{lastIndexOf:Wl}),e.map),_=(I({target:"Array",proto:!0,forced:!Np("map")},{map:function(e){return Dh(this,e,1<arguments.length?arguments[1]:void 0)}}),I),Lh=Cn,Fh=R,jh=Ip,k=T(function(){return 4294967297!==[].push.call({length:4294967296},1)}),N=!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}(),Vh=(_({target:"Array",proto:!0,arity:1,forced:k||N},{push:function(e){var t=Lh(this),r=Fh(t),n=arguments.length;jh(r+n);for(var i=0;i<n;i++)t[r]=arguments[i],r++;return t.length=r}}),In),Hh=Cn,zh=p,Bh=R,Gh=TypeError,Oi={left:Up(!1),right:Up(!0)},Kh=Oi.left,Fu=r,Tf=vu,qh=(I({target:"Array",proto:!0,forced:!kp("reduce")||!Tf&&79<Fu&&Fu<83},{reduce:function(e){var t=arguments.length;return Kh(this,e,t,1<t?arguments[1]:void 0)}}),Oi.right),m=r,S=vu,bl=(I({target:"Array",proto:!0,forced:!kp("reduceRight")||!S&&79<m&&m<83},{reduceRight:function(e){return qh(this,e,arguments.length,1<arguments.length?arguments[1]:void 0)}}),I),$h=P,Yh=d([].reverse),x=[1,2],A=(bl({target:"Array",proto:!0,forced:String(x)===String(x.reverse())},{reverse:function(){return $h(this)&&(this.length=this.length),Yh(this)}}),I),Xh=P,Wh=_u,Jh=_n,Qh=vo,Zh=R,ey=bn,ty=Rp,Eu=kn,ry=mi,g=Np("slice"),ny=Eu("species"),iy=Array,oy=Math.max,sy=(A({target:"Array",proto:!0,forced:!g},{slice:function(e,t){var r,n,i,o=ey(this),s=Zh(o),a=Qh(e,s),u=Qh(void 0===t?s:t,s);if(Xh(o)&&(r=o.constructor,(r=Wh(r)&&(r===iy||Xh(r.prototype))||Jh(r)&&null===(r=r[ny])?void 0:r)===iy||void 0===r))return ry(o,a,u);for(n=new(void 0===r?iy:r)(oy(u-a,0)),i=0;a<u;a++,i++)a in o&&ty(n,i,o[a]);return n.length=i,n}}),e.some),ay=(I({target:"Array",proto:!0,forced:!kp("some")},{some:function(e){return sy(this,e,1<arguments.length?arguments[1]:void 0)}}),vo),uy=R,cy=Rp,ly=Array,fy=Math.max,py=Mp,dy=Math.floor,Ql=Dp,Wl=i.match(/firefox\/(\d+)/i),_=!!Wl&&+Wl[1],k=/MSIE|Trident/.test(i),N=i.match(/AppleWebKit\/(\d+)\./),Tf=!!N&&+N[1],Fu=I,Oi=d,hy=In,yy=Cn,vy=R,gy=Cp,my=fa,vu=T,wy=Ql,S=kp,Ey=_,Ty=k,by=r,_y=Tf,Oy=[],Ry=Oi(Oy.sort),Iy=Oi(Oy.push),m=vu(function(){Oy.sort(void 0)}),bl=vu(function(){Oy.sort(null)}),x=S("sort"),Sy=!vu(function(){if(by)return by<70;if(!(Ey&&3<Ey)){if(Ty)return!0;if(_y)return _y<603;for(var e,t,r,n="",i=65;i<76;i++){switch(e=String.fromCharCode(i),i){case 66:case 69:case 70:case 72:t=3;break;case 68:case 71:t=4;break;default:t=2}for(r=0;r<47;r++)Oy.push({k:e+r,v:t})}for(Oy.sort(function(e,t){return t.v-e.v}),r=0;r<Oy.length;r++)e=Oy[r].k.charAt(0),n.charAt(n.length-1)!==e&&(n+=e);return"DGBEFHACIJK"!==n}}),mi=(Fu({target:"Array",proto:!0,forced:m||!bl||!x||!Sy},{sort:function(e){void 0!==e&&hy(e);var t=yy(this);if(Sy)return void 0===e?Ry(t):Ry(t,e);for(var r,n,i=[],o=vy(t),s=0;s<o;s++)s in t&&Iy(i,t[s]);for(wy(i,(n=e,function(e,t){return void 0===t?-1:void 0===e?1:void 0!==n?+n(e,t)||0:my(e)>my(t)?1:-1})),r=i.length,s=0;s<r;)t[s]=i[s++];for(;s<o;)gy(t,s++);return t}}),hc("Array"),I),Ny=Cn,Cy=vo,Ay=yo,ky=R,xy=Ip,Py=Sp,Uy=Rp,My=Cp,Eu=Np("splice"),Dy=Math.max,Ly=Math.min,A=(mi({target:"Array",proto:!0,forced:!Eu},{splice:function(e,t){var r,n,i,o,s,a,u=Ny(this),c=ky(u),l=Cy(e,c),e=arguments.length;for(0===e?r=n=0:n=1===e?(r=0,c-l):(r=e-2,Ly(Dy(Ay(t),0),c-l)),xy(c+r-n),i=Py(u,n),o=0;o<n;o++)(s=l+o)in u&&Uy(i,o,u[s]);if(r<(i.length=n)){for(o=l;o<c-n;o++)a=o+r,(s=o+n)in u?u[a]=u[s]:My(u,a);for(o=c;c-n+r<o;o--)My(u,o-1)}else if(n<r)for(o=c-n;l<o;o--)a=o+r-1,(s=o+n-1)in u?u[a]=u[s]:My(u,a);for(o=0;o<r;o++)u[o+l]=arguments[o+2];return u.length=c-n+r,i}}),xu("flat"),xu("flatMap"),I),Fy=Cn,jy=R,Vy=Cp,Hy=Ip,g=1!==[].unshift(0),Wl=!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}}(),i=(A({target:"Array",proto:!0,arity:1,forced:g||Wl},{unshift:function(e){var t=Fy(this),r=jy(t),n=arguments.length;if(n){Hy(r+n);for(var i=r;i--;){var o=i+n;i in t?t[o]=t[i]:Vy(t,o)}for(var s=0;s<n;s++)t[s]=arguments[s]}return t.length=r+n}}),Wr.Array,{exports:{}}),N={},zy=En,By=bn,Gy=Yn.f,Ky=Mp,qy="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Ql=(N.f=function(e){if(!qy||"Window"!=zy(e))return Gy(By(e));var t=e;try{return Gy(t)}catch(t){return Ky(qy)}},T(function(){var e;"function"==typeof ArrayBuffer&&(e=new ArrayBuffer(8),Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8}))})),_=T,$y=_n,Yy=En,Xy=Ql,Wy=Object.isExtensible,k=_(function(){Wy(1)})||Xy?function(e){return!!$y(e)&&(!Xy||"ArrayBuffer"!=Yy(e))&&(!Wy||Wy(e))}:Wy,r=!T(function(){return Object.isExtensible(Object.preventExtensions({}))}),Jy=I,Qy=d,Tf=Co,Zy=_n,ev=pi,tv=bi.f,rv=Yn,nv=N,iv=k,ov=r,sv=!1,av=An("meta"),uv=0,cv=i.exports={enable:function(){cv.enable=function(){},sv=!0;var i=rv.f,o=Qy([].splice),e={};e[av]=1,i(e).length&&(rv.f=function(e){for(var t=i(e),r=0,n=t.length;r<n;r++)if(t[r]===av){o(t,r,1);break}return t},Jy({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:nv.f}))},fastKey:function(e,t){if(!Zy(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!ev(e,av)){if(!iv(e))return"F";if(!t)return"E";Lp(e)}return e[av].objectID},getWeakData:function(e,t){if(!ev(e,av)){if(!iv(e))return!0;if(!t)return!1;Lp(e)}return e[av].weakData},onFreeze:function(e){return ov&&sv&&iv(e)&&!ev(e,av)&&Lp(e),e}},lv=(Tf[av]=!0,b),fv=_n,pv=Ys,Oi=I,S=y,dv=d,vu=C,hv=ho,Fu=i.exports,yv=la,vv=yc,m=b,gv=_n,bl=T,x=bf,mi=Mu,mv=ho,wv=bi.f,Ev=Xs,Tv=Fp,bv=ia,_v=yc,Ov=la,Rv=Lu,Iv=hc,Sv=v,Nv=i.exports.fastKey,Cv=c.set,Av=c.getterFor;function kv(e){var r=dv(Gp[e]);hv(Gp,e,"add"==e?function(e){return r(this,0===e?0:e),this}:"delete"==e?function(e){return!(Hp&&!gv(e))&&r(this,0===e?0:e)}:"get"==e?function(e){return Hp&&!gv(e)?void 0:r(this,0===e?0:e)}:"has"==e?function(e){return!(Hp&&!gv(e))&&r(this,0===e?0:e)}:function(e,t){return r(this,0===e?0:e,t),this})}Eu=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},A={getConstructor:function(e,r,n,i){function o(e,t,r){var n,i=u(e),o=s(e,t);return o?o.value=r:(i.last=o={index:n=Nv(t,!0),key:t,value:r,previous:t=i.last,next:void 0,removed:!1},i.first||(i.first=o),t&&(t.next=o),Sv?i.size++:e.size++,"F"!==n&&(i.index[n]=o)),e}function s(e,t){var r,e=u(e),n=Nv(t);if("F"!==n)return e.index[n];for(r=e.first;r;r=r.next)if(r.key==t)return r}var e=e(function(e,t){_v(e,a),Cv(e,{type:r,index:Ev(null),first:void 0,last:void 0,size:0}),Sv||(e.size=0),null!=t&&Ov(t,e[i],{that:e,AS_ENTRIES:n})}),a=e.prototype,u=Av(r);return Tv(a,{clear:function(){for(var e=u(this),t=e.index,r=e.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete t[r.index],r=r.next;e.first=e.last=void 0,Sv?e.size=0:this.size=0},delete:function(e){var t,r,n=u(this),e=s(this,e);return e&&(t=e.next,r=e.previous,delete n.index[e.index],e.removed=!0,r&&(r.next=t),t&&(t.previous=r),n.first==e&&(n.first=t),n.last==e&&(n.last=r),Sv?n.size--:this.size--),!!e},forEach:function(e){for(var t,r=u(this),n=bv(e,1<arguments.length?arguments[1]:void 0);t=t?t.next:r.first;)for(n(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!s(this,e)}}),Tv(a,n?{get:function(e){e=s(this,e);return e&&e.value},set:function(e,t){return o(this,0===e?0:e,t)}}:{add:function(e){return o(this,e=0===e?0:e,e)}}),Sv&&wv(a,"size",{get:function(){return u(this).size}}),e},setStrong:function(e,t,r){var n=t+" Iterator",i=Av(t),o=Av(n);Rv(e,t,function(e,t){Cv(this,{type:n,target:e,state:i(e),kind:t,last:void 0})},function(){for(var e=o(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?"keys"==t?{value:r.key,done:!1}:"values"==t?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:{value:e.target=void 0,done:!0}},r?"entries":"values",!r,!0),Iv(t)}},Vp=-1!==(g="Map").indexOf("Map"),Hp=-1!==g.indexOf("Weak"),zp=Vp?"set":"add",Bp=S.Map,Gp=Bp&&Bp.prototype,Wl={},vu(g,!m(Kp=Bp)||!(Hp||Gp.forEach&&!bl(function(){(new Bp).entries().next()})))?(Kp=A.getConstructor(Eu,g,Vp,zp),Fu.enable()):vu(g,!0)&&(Wr=(jp=new Kp)[zp](Hp?{}:-0,1)!=jp,Ql=bl(function(){jp.has(1)}),_=x(function(e){new Bp(e)}),Co=!Hp&&bl(function(){for(var e=new Bp,t=5;t--;)e[zp](t,t);return!e.has(-0)}),_||(((Kp=Eu(function(e,t){vv(e,Gp);r=new Bp,e=e,n=Kp,pv&&lv(e=e.constructor)&&e!==n&&fv(e=e.prototype)&&e!==n.prototype&&pv(r,e);var r,n=r;return null!=t&&yv(t,n[zp],{that:n,AS_ENTRIES:Vp}),n})).prototype=Gp).constructor=Kp),(Ql||Co)&&(kv("delete"),kv("has"),Vp&&kv("get")),(Co||Wr)&&kv(zp),Hp&&Gp.clear&&delete Gp.clear),Wl.Map=Kp,Oi({global:!0,constructor:!0,forced:Kp!=Bp},Wl),mi(Kp,g),Hp||A.setStrong(Kp,g,Vp);function xv(e,t){for(var r=0,n=Dv(t),i=new e(n);r<n;)i[r]=t[r++];return i}function Pv(e,t,r,n){for(var i,o,s,a=jv(e),u=Fv(a),c=Lv(t,r),l=zv(null),f=Hv(u),p=0;p<f;p++)s=u[p],(o=Vv(c(s,p,a)))in l?Kv(l[o],s):l[o]=[s];if(n&&(i=n(a))!==Gv)for(o in l)l[o]=Bv(i,l[o]);return l}function Uv(e){for(var t,r,n=Wv(this),i=Xv(n),o=Yv(e,1<arguments.length?arguments[1]:void 0),s=new Qv,a=Jv(i),u=0;u<a;u++)t=o(r=i[u],u,n),eg(s,t)?rg(Zv(s,t),r):tg(s,t,[r]);return s}function Mv(e){return sg[e].prototype}var Dv=R,Lv=ia,Fv=p,jv=Cn,Vv=xn,Hv=R,zv=Xs,Bv=xv,Gv=Array,Kv=d([].push),qv=Pv,pi=xu,$v=(I({target:"Array",proto:!0},{group:function(e){return qv(this,e,1<arguments.length?arguments[1]:void 0)}}),pi("group"),Pv),Yn=xu,Yv=(I({target:"Array",proto:!0,forced:!kp("groupBy")},{groupBy:function(e){return $v(this,e,1<arguments.length?arguments[1]:void 0)}}),Yn("groupBy"),ia),N=d,Xv=p,Wv=Cn,Jv=R,Qv=On("Map"),k=Qv.prototype,Zv=N(k.get),eg=N(k.has),tg=N(k.set),rg=N([].push),r=xu,Tf=Uv,Ys=(I({target:"Array",proto:!0,name:"groupToMap",forced:!kp("groupByToMap")},{groupByToMap:Tf}),r("groupByToMap"),xu),ng=(I({target:"Array",proto:!0},{groupToMap:Uv}),Ys("groupToMap"),R),ig=bn,C=xu,og=Array,sg=(I({target:"Array",proto:!0},{toReversed:function(){for(var e=ig(this),t=og,r=ng(e),n=new t(r),i=0;i<r;i++)n[i]=e[r-i-1];return n}}),C("toReversed"),y),i=I,ag=In,ug=bn,cg=xv,S=xu,lg=Array,fg=d(Mv("Array").sort),m=(i({target:"Array",proto:!0},{toSorted:function(e){void 0!==e&&ag(e);var t=ug(this),t=cg(lg,t);return fg(t,e)}}),S("toSorted"),I),vu=xu,pg=Ip,dg=R,hg=vo,yg=bn,vg=yo,gg=Array,mg=Math.max,wg=Math.min,Eg=(m({target:"Array",proto:!0},{toSpliced:function(e,t){var r,n,i,o,s=yg(this),a=dg(s),u=hg(e,a),e=arguments.length,c=0;for(0===e?r=n=0:n=1===e?(r=0,a-u):(r=e-2,wg(mg(vg(t),0),a-u)),i=pg(a+r-n),o=gg(i);c<u;c++)o[c]=s[c];for(;c<u+r;c++)o[c]=arguments[c-u+2];for(;c<i;c++)o[c]=s[c+n-r];return o}}),vu("toSpliced"),R),Tg=yo,bg=RangeError,_g=bn,Og=Array;I({target:"Array",proto:!0},{with:function(e,t){var r=_g(this),n=Og,i=t,o=Eg(r),s=(e=Tg(e))<0?o+e:e;if(o<=s||s<0)throw bg("Incorrect index");for(var a=new n(o),u=0;u<o;u++)a[u]=u===s?i:r[u];return a}});x=y,bl=fi,Eu=b,Ql=lo,Co=ho,Wr="USE_FUNCTION_CONSTRUCTOR",Oi=kn("asyncIterator"),Wl=x.AsyncIterator,mi=bl.AsyncIteratorPrototype;if(mi)qm=mi;else if(Eu(Wl))qm=Wl.prototype;else if(bl[Wr]||x[Wr])try{Km=Ql(Ql(Ql(Function("return async function*(){}()")()))),Ql(Km)===Object.prototype&&(qm=Km)}catch(Zw){}Eu((qm=qm||{})[Oi])||Co(qm,Oi,function(){return this});function Rg(e,t,r){var n=e.done;Ug.resolve(e.value).then(function(e){t({done:n,value:e})},r)}function Ig(e){Dg(this,{type:Mg,iterator:xg(e),next:e.next})}function Sg(e,t,r,n){try{var i=Yg(e,"return");if(i)return $g("Promise").resolve(qg(i,e)).then(function(){t(r)},function(e){n(e)})}catch(e){return n(e)}t(r)}function Ng(e){var p=0==e,d=1==e,h=2==e,y=3==e;return function(e,s,a){var e={iterator:e,next:Gg(Kg(e).next)},u=Zg("Promise"),c=e.iterator,t=e.next,l=0,f=void 0!==s;return!f&&p||Wg(s),new u(function(r,n){var i=function(e){Sg(c,n,e,n)},o=function(){try{if(p&&f)try{Qg(l)}catch(e){i(e)}u.resolve(Jg(Xg(t,c))).then(function(e){try{if(Jg(e).done)p?(a.length=l,r(a)):r(!y&&(h||void 0));else{var t=e.value;try{f?u.resolve(p?s(t,l):s(t)).then(function(e){if(d)o();else if(h)e?o():Sg(c,r,!1,n);else if(p)try{a[l++]=e,o()}catch(e){i(e)}else e?Sg(c,r,y||t,n):o()},i):(a[l++]=t,o())}catch(e){i(e)}}}catch(e){n(e)}},n)}catch(e){n(e)}};o()})}}function Cg(e,t){if(!hm||!dm(e)||!hm(e))return!1;for(var r,n=0,i=e.length;n<i;)if(!("string"==typeof(r=e[n++])||t&&void 0===r))return!1;return 0!==i}function Ag(e,t,r){r.get&&ym(r.get,t,{getter:!0}),r.set&&ym(r.set,t,{setter:!0}),vm.f(e,t,r)}var kg=o,xg=Un,A=Xs,Pg=Sn,g=Fp,pi=c,Yn=qm,Ug=On("Promise"),Mg="AsyncFromSyncIterator",Dg=pi.set,Lg=pi.getterFor(Mg),p=(Ig.prototype=g(A(Yn),{next:function(){var n=Lg(this);return new Ug(function(e,t){var r=xg(kg(n.next,n.iterator));Rg(r,e,t)})},return:function(){var n=Lg(this).iterator;return new Ug(function(e,t){var r=Pg(n,"return");if(void 0===r)return e({done:!0,value:void 0});r=xg(kg(r,n));Rg(r,e,t)})}}),Ig),Fg=o,jg=p,Vg=Un,Hg=aa,zg=Sn,Bg=kn("asyncIterator"),Gg=In,Kg=Un,qg=o,$g=On,Yg=Sn,Xg=o,Wg=In,Jg=Un,Qg=Ip,Zg=On,k={toArray:Ng(0),forEach:Ng(1),every:Ng(2),some:Ng(3),find:Ng(4)},em=ia,tm=Cn,rm=_u,nm=aa,im=sa,om=Sn,N=Mv,sm=On,am=p,um=k.toArray,cm=kn("asyncIterator"),lm=N("Array").values,fm=(I({target:"Array",stat:!0,forced:!0},{fromAsync:function(o){var s=this,e=arguments.length,a=1<e?arguments[1]:void 0,u=2<e?arguments[2]:void 0;return new(sm("Promise"))(function(e){var t=tm(o),r=(void 0!==a&&(a=em(a,u)),om(t,cm)),n=r?void 0:im(t)||lm,i=rm(s)?new s:[],r=r?function(e,t){t=arguments.length<2?zg(e,Bg):t;return t?Vg(Fg(t,e)):new jg(Hg(e))}(t,r):new am(nm(t,n));e(um(r,a,i))})}}),e.filterReject),Tf=xu,pm=(I({target:"Array",proto:!0,forced:!0},{filterOut:function(e){return fm(this,e,1<arguments.length?arguments[1]:void 0)}}),Tf("filterOut"),e.filterReject),r=xu,Ys=(I({target:"Array",proto:!0,forced:!0},{filterReject:function(e){return pm(this,e,1<arguments.length?arguments[1]:void 0)}}),r("filterReject"),I),dm=P,hm=Object.isFrozen,ym=(Ys({target:"Array",stat:!0,sham:!0,forced:!0},{isTemplateObject:function(e){if(!Cg(e,!0))return!1;var t=e.raw;return t.length===e.length&&Cg(t,!1)}}),O.exports),vm=bi,C=xu,gm=Cn,mm=R,i=(v&&(Ag(Array.prototype,"lastItem",{configurable:!0,get:function(){var e=gm(this),t=mm(e);return 0==t?void 0:e[t-1]},set:function(e){var t=gm(this),r=mm(t);return t[0==r?0:r-1]=e}}),C("lastItem")),xu),wm=Cn,Em=R,S=(v&&(Ag(Array.prototype,"lastIndex",{configurable:!0,get:function(){var e=wm(this),e=Em(e);return 0==e?0:e-1}}),i("lastIndex")),d),Tm=In,bm=R,_m=Cn,Om=Sp,Rm=On("Map"),m=Rm.prototype,Im=S(m.forEach),Sm=S(m.has),Nm=S(m.set),Cm=S([].push),vu=xu;I({target:"Array",proto:!0,forced:!0},{uniqueBy:function(e){for(var t,r,n=_m(this),i=bm(n),o=Om(n,0),s=new Rm,a=null!=e?Tm(e):function(e){return e},u=0;u<i;u++)r=a(t=n[u]),Sm(s,r)||Nm(s,r,t);return Im(s,function(e){Cm(o,e)}),o}}),vu("uniqueBy");function Am(e,t,r,n){this.valueId=e,this.value=t,this.reason=r,this.properties=n}hw.prototype.start=function(){this.timeoutId=setTimeout(this.callback,this.timeout)},hw.prototype.refresh=function(){this.stop(),this.start()},hw.prototype.stop=function(){this.timeoutId&&clearTimeout(this.timeoutId)};var km,xm=hw,Pm=(dw.prototype.start=function(){this.started=!0},dw.prototype.stop=function(){this.started=!1;var e=this.sink(this.buffer,!0);return this.buffer=[],this.timer.stop(),e},dw.prototype.enqueue=function(e){this.started&&(0===this.buffer.length&&this.timer.refresh(),this.buffer.push(e),this.buffer.length>=this.maxQueueSize&&this.flush())},dw.prototype.flush=function(){this.sink(this.buffer),this.buffer=[],this.timer.stop()},dw.prototype.close=function(){this.stop()},dw),Um=(pw.prototype.isClientError=function(e){return!!(e&&400<=e.statusCode&&e.statusCode<500)},pw.prototype.drainRepository=function(o){var e=this;return new Promise(function(i){return le(e,void 0,void 0,function(){var t,r,n=this;return fe(this,function(e){switch(e.label){case 0:return[4,null==(r=this.repository)?void 0:r.read()];case 1:return(t=e.sent())&&0!==t.length?o?this.eventDispatcher.dispatchXhrOrBeacon(t,function(){var e;i(null==(e=n.repository)?void 0:e.delete(t))},function(e){n.isClientError(e)?i(null==(e=n.repository)?void 0:e.delete(t)):i()}):this.eventDispatcher.dispatch(t,function(){var e;i(null==(e=n.repository)?void 0:e.delete(t))},function(e){n.isClientError(e)?i(null==(e=n.repository)?void 0:e.delete(t)):i()}):i(),[2]}})})})},pw.prototype.drainQueue=function(i,o){var e=this,s=i.map(function(e){return e.toDto()});return new Promise(function(n){return le(e,void 0,void 0,function(){var t,r=this;return fe(this,function(e){return 0===i.length?n():o?(null!=(t=this.repository)&&t.add(s),this.eventDispatcher.dispatchXhrOrBeacon(i,function(){var e;n(null==(e=r.repository)?void 0:e.delete(s))},function(e){r.isClientError(e)?n(null==(e=r.repository)?void 0:e.delete(s)):n()})):this.eventDispatcher.dispatch(i,function(){n()},function(e){r.isClientError(e)?n():n(null==(e=r.repository)?void 0:e.add(s))}),[2]})})})},pw.prototype.process=function(e){this.queue.enqueue(e)},pw.prototype.start=function(){return le(this,void 0,void 0,function(){return fe(this,function(e){return this.queue.start(),[2]})})},pw.prototype.stop=function(){try{this.queue.close()}catch(e){}return Promise.resolve()},pw.prototype.flush=function(){this.queue.flush()},pw.prototype.close=function(){this.stop()},pw),Mm=(fw.isSessionEvent=function(e){return!!Sr.isTrack(e)&&(e.event.key===fw.SESSION_START_EVENT_NAME||e.event.key===fw.SESSION_END_EVENT_NAME)},fw.prototype.onSessionStarted=function(e,t,r){this.track(fw.SESSION_START_EVENT_NAME,e,t,r)},fw.prototype.onSessionEnded=function(e,t,r){this.track(fw.SESSION_END_EVENT_NAME,e,t,r)},fw.prototype.track=function(e,t,r,n){e={key:e,properties:{sessionId:t}},r=this.hackleUserResolver.resolve(r),r=this.decorateSession(r,t);this.hackleInternalClient._track(e,r,n)},fw.prototype.decorateSession=function(e,t){t=(new st).add(ot.SESSION,t).addIdentifiers(e.identifiers).build();return h(h({},e),{identifiers:t})},fw.SESSION_START_EVENT_NAME="$session_start",fw.SESSION_END_EVENT_NAME="$session_end",fw),Dm=(lw.prototype.process=function(e){var t;Mm.isSessionEvent(e)||this.sessionManager.startNewSessionIfNeeded(this.userManager.currentUser,e.timestamp),this.exposureEventDedupDeterminer.isDedupTarget(e)||(e=e,t=null===(t=this.sessionManager).currentSessionId||e.user.identifiers[ot.SESSION]?e:e.copyWithUser(h(h({},e.user),{identifiers:h(h({},e.user.identifiers),((e={})[ot.SESSION]=t.sessionId,e))})),this.delegate.process(t))},lw.prototype.close=function(){this.delegate.close()},lw.prototype.flush=function(){this.delegate.flush()},lw.prototype.start=function(){return this.delegate.start()},lw),Lm=(cw.prototype.isDedupTarget=function(e){if(-1===this.exposureEventDedupIntervalMillis)return!1;if(!Sr.isExposure(e))return!1;Xe.isEquals(e.user.identifiers,null==(t=this.currentUser)?void 0:t.identifiers)||(this.currentUser=e.user,this.cache=new Map);var t=[e.experiment.id,e.variationId,e.variationKey,e.decisionReason].join("-"),e=(new Date).getTime(),r=this.cache.get(t);return void 0!==r&&e-r<=this.exposureEventDedupIntervalMillis||(this.cache.set(t,e),!1)},cw),Fm=(uw.toEvent=function(e){var t;return{key:uw.EVENT_KEY,properties:{level:uw.LEVEL_ERROR,type:e.name,message:null!=(t=e.message)?t:"",$stacktrace:uw._stacktrace(e)}}},uw._stacktrace=function(e){return a.isNullOrUndefined(e.stack)?"":e.stack.split("\n").slice(0,uw.STACK_TRACK_LIMIT).join("\n")},uw.EVENT_KEY="$trace",uw.LEVEL_ERROR="error",uw.STACK_TRACK_LIMIT=30,uw),jm=de.log,Vm=(aw.prototype._experiment=function(e,t,r){if(!e)return jm.error("experimentKey must not be empty"),et.of(r,u.INVALID_INPUT);var n=this.workspaceFetcher.get();if(!n)return jm.warn("SDK not ready."),et.of(r,u.SDK_NOT_READY);e=n.getExperimentOrNull(e);if(!e)return jm.warn("Experiment does not exist."),et.of(r,u.EXPERIMENT_NOT_FOUND);n=this.evaluator.evaluate(n,e,t,r),this.eventProcessor.process(Sr.exposure(e,t,n)),e=null!=(r=n.config)?r:new rt;return et.of(n.variationKey,n.reason,e)},aw.prototype._experiments=function(n){var i=this,o=new Jt(function(e,t){return e.id===t.id}),s=this.workspaceFetcher.get();return s&&s.getExperiments().forEach(function(e){var t=i.evaluator.evaluate(s,e,n,"A"),r=null!=(r=t.config)?r:new rt,t=et.of(t.variationKey,t.reason,r);o.add(e,t)}),o},aw.prototype._featureFlag=function(e,t){if(!e)return jm.error("featureKey must not be empty"),tt.off(u.INVALID_INPUT);var r=this.workspaceFetcher.get();if(!r)return jm.warn("SDK not ready."),tt.off(u.SDK_NOT_READY);var e=r.getFeatureFlagOrNull(e);if(!e)return jm.warn("FeatureFlag does not exist."),tt.off(u.FEATURE_FLAG_NOT_FOUND);r=this.evaluator.evaluate(r,e,t,"A"),this.eventProcessor.process(Sr.exposure(e,t,r)),t=null!=(e=r.config)?e:new rt;return"A"===r.variationKey?tt.off(r.reason,t):tt.on(r.reason,t)},aw.prototype._featureFlags=function(n){var i=this,o=new Jt(function(e,t){return e.id===t.id}),s=this.workspaceFetcher.get();return s&&s.getFeatureFlags().forEach(function(e){var t=i.evaluator.evaluate(s,e,n,"A"),r=null!=(r=t.config)?r:new rt,t="A"===t.variationKey?tt.off(t.reason,r):tt.on(t.reason,r);o.add(e,t)}),o},aw.prototype._track=function(e,t,r){var n;void 0===r&&(r=(new Date).getTime()),e?"object"==typeof e?"object"!=typeof e||e.key&&"string"==typeof e.key?(n=(null==(n=this.workspaceFetcher.get())?void 0:n.getEventTypeOrNull(e.key))||new Ue(0,e.key),this.eventProcessor.process(Sr.track(n,e,t,r))):jm.warn("Event key must be not null. or event key must be string type."):jm.warn("Event must be event type."):jm.warn("event must not be null.")},aw.prototype._trackException=function(e,t){this.errorDedupDeterminer.isDedupTarget(e)||(e=Fm.toEvent(e),this._flush(),this._track(e,t),this._flush())},aw.prototype._flush=function(){this.eventProcessor.flush()},aw.prototype._remoteConfig=function(e,t,r,n){var i=this.workspaceFetcher.get();if(a.isNullOrUndefined(i))return jm.warn("SDK not ready."),Ze.of(n,u.SDK_NOT_READY);e=i.getRemoteConfigParameterOrNull(e);if(a.isNullOrUndefined(e))return jm.warn("Remote config parameter does not exist."),Ze.of(n,u.REMOTE_CONFIG_PARAMETER_NOT_FOUND);i=this.evaluator.remoteConfigEvaluate(i,e,t,r,n);return this.eventProcessor.process(Sr.remoteConfig(e,t,i)),Ze.of(i.value,i.reason)},aw.prototype._onReady=function(e,t){this._onInitialized({timeout:t=void 0===t?3e3:t}).then(function(){return e()})},aw.prototype._onInitialized=function(e){var t,e=e.timeout,e=void 0===e?3e3:e,r=(jm.debug("Start HackleClient initializing"),new Promise(function(e){t=e})),n=setTimeout(function(){t({success:!1})},e);return this.readyPromise.then(function(){clearTimeout(n),t({success:!0})},function(e){clearTimeout(n),t({success:!1,error:e})}),Promise.race([this.readyPromise,r]).then(function(e){return e.success?jm.debug("HackleClient onInitialized Success"):e.error instanceof Error?jm.error("HackleClient onInitialized Failed. ".concat(e.error.message)):jm.error("HackleClient onInitialized Failed. ".concat(e.error)),Promise.resolve({success:e.success})})},aw.prototype._close=function(){this.workspaceFetcher.close(),this.eventProcessor.close()},aw),Hm=(sw.prototype.isDedupTarget=function(e){return!!this._isSameError(e,this.previous)||(this.previous=e,!1)},sw.prototype._isSameError=function(e,t){return!a.isNullOrUndefined(t)&&e.name===t.name&&e.message===t.message&&e.stack===t.stack},sw),zm=(ow.of=function(e,t,r,n){t=t._getVariationByKeyOrNull(r);return a.isNotNullOrUndefined(t)?ow.withVariation(e,t,n):new ow(void 0,r,n,void 0)},ow.withVariation=function(e,t,r){e=this.config(e,t);return new ow(t.id,t.key,r,e)},ow.config=function(e,t){if(!a.isNullOrUndefined(t.parameterConfigurationId))return a.requiredNotNullOrUndefined(e.getParameterConfigurationOrNull(t.parameterConfigurationId),function(){return"ParameterConfiguration[".concat(t.parameterConfigurationId,"]")})},ow),Bm=(iw.prototype.evaluate=function(e,t,r,n){return this.evaluationFlowFactory.getFlow(t.type).evaluate(e,t,r,n)},iw.prototype.remoteConfigEvaluate=function(e,t,r,n,i){var o={};if(o.requestValueType=n,o.requestDefaultValue=i,a.isNullOrUndefined(r.identifiers[t.identifierType]))return new Am(void 0,i,u.IDENTIFIER_NOT_FOUND,o);e=this.evaluationFlowFactory.getRemoteConfigParameterTargetRuleDeterminer().determineTargetRuleOrNull(e,t,r);return e?(o.targetRuleKey=e.key,o.targetRuleName=e.name,this.getRemoteConfigEvaluationWithTypeCheck(e.value,u.TARGET_RULE_MATCH,n,i,o)):this.getRemoteConfigEvaluationWithTypeCheck(t.defaultValue,u.DEFAULT_RULE,n,i,o)},iw.prototype.getRemoteConfigEvaluationWithTypeCheck=function(e,t,r,n,i){return"UNKNOWN"===r||"NULL"!==r&&typeof n!=typeof e.rawValue?(i.returnValue=n,new Am(void 0,n,u.TYPE_MISMATCH,i)):(i.returnValue=e.rawValue,new Am(e.id,e.rawValue,t,i))},iw),Gm=(nw.prototype.matches=function(e,t,r){var n=this;return e.conditions.every(function(e){return n._matches(e,t,r)})},nw.prototype._matches=function(e,t,r){return this.conditionMatcherFactory.getMatcher(e.key.type).matches(e,t,r)},nw),y=(rw.prototype.matches=function(e,t){var r=this.valueMatcherFactory.getMatcher(t.valueType),n=this.operatorMatcherFactory.getMatcher(t.operator),e=this.userValueMatches(e,t,r,n);return this.typeMatches(t.type,e)},rw.prototype.userValueMatches=function(e,t,r,n){return Array.isArray(e)?this.arrayMatches(e,t,r,n):this.singleMatches(e,t,r,n)},rw.prototype.singleMatches=function(t,e,r,n){return e.values.some(function(e){return r.matches(n,t,e)})},rw.prototype.arrayMatches=function(e,t,r,n){var i=this;return e.some(function(e){return i.singleMatches(e,t,r,n)})},rw.prototype.typeMatches=function(e,t){switch(e){case"MATCH":return t;case"NOT_MATCH":return!t}},rw),fi=(tw.prototype.booleanMatches=function(e,t){return e===t},tw.prototype.numberMatches=function(e,t){return e===t},tw.prototype.stringMatches=function(e,t){return e===t},tw.prototype.versionMatches=function(e,t){return e.isEqualTo(t)},tw),lo=(ew.prototype.booleanMatches=function(e,t){return!1},ew.prototype.numberMatches=function(e,t){return!1},ew.prototype.stringMatches=function(e,t){return e.includes(t)},ew.prototype.versionMatches=function(e,t){return!1},ew),mi=(Z0.prototype.booleanMatches=function(e,t){return!1},Z0.prototype.numberMatches=function(e,t){return!1},Z0.prototype.stringMatches=function(e,t){return e.startsWith(t)},Z0.prototype.versionMatches=function(e,t){return!1},Z0),Wl=(Q0.prototype.booleanMatches=function(e,t){return!1},Q0.prototype.numberMatches=function(e,t){return!1},Q0.prototype.stringMatches=function(e,t){return e.endsWith(t)},Q0.prototype.versionMatches=function(e,t){return!1},Q0),bl=(J0.prototype.booleanMatches=function(e,t){return!1},J0.prototype.numberMatches=function(e,t){return t<e},J0.prototype.stringMatches=function(e,t){return t<e},J0.prototype.versionMatches=function(e,t){return e.isGreaterThan(t)},J0),x=(W0.prototype.booleanMatches=function(e,t){return!1},W0.prototype.numberMatches=function(e,t){return t<=e},W0.prototype.stringMatches=function(e,t){return t<=e},W0.prototype.versionMatches=function(e,t){return e.isGreaterThanOrEqualTo(t)},W0),Wr=(X0.prototype.booleanMatches=function(e,t){return!1},X0.prototype.numberMatches=function(e,t){return e<t},X0.prototype.stringMatches=function(e,t){return e<t},X0.prototype.versionMatches=function(e,t){return e.isLessThan(t)},X0),Ql=(Y0.prototype.booleanMatches=function(e,t){return!1},Y0.prototype.numberMatches=function(e,t){return e<=t},Y0.prototype.stringMatches=function(e,t){return e<=t},Y0.prototype.versionMatches=function(e,t){return e.isLessThanOrEqualTo(t)},Y0),Km=($0.prototype.getMatcher=function(e){switch(e){case"IN":return $0.IN_MATCHER;case"CONTAINS":return $0.CONTAINS_MATCHER;case"STARTS_WITH":return $0.STARTS_WITH_MATCHER;case"ENDS_WITH":return $0.ENDS_WITH_MATCHER;case"GT":return $0.GT_MATCHER;case"GTE":return $0.GTE_MATCHER;case"LT":return $0.LT_MATCHER;case"LTE":return $0.LTE_MATCHER}},$0.IN_MATCHER=new fi,$0.CONTAINS_MATCHER=new lo,$0.STARTS_WITH_MATCHER=new mi,$0.ENDS_WITH_MATCHER=new Wl,$0.GT_MATCHER=new bl,$0.GTE_MATCHER=new x,$0.LT_MATCHER=new Wr,$0.LTE_MATCHER=new Ql,$0),Eu=(q0.prototype.matches=function(e,t,r){t=this.asString(t),r=this.asString(r);return!a.isNullOrUndefined(t)&&!a.isNullOrUndefined(r)&&e.stringMatches(t,r)},q0.prototype.asString=function(e){return"string"==typeof e?e:"number"==typeof e?e.toString():null},q0),Co=(K0.prototype.matches=function(e,t,r){t=this.asNumber(t),r=this.asNumber(r);return!a.isNullOrUndefined(t)&&!a.isNullOrUndefined(r)&&e.numberMatches(t,r)},K0.prototype.asNumber=function(e){return"number"==typeof e?e:"string"==typeof e?(e=Number(e),isNaN(e)?null:e):null},K0),Oi=(G0.prototype.matches=function(e,t,r){return"boolean"==typeof t&&"boolean"==typeof r&&e.booleanMatches(t,r)},G0),Xs=(B0.prototype.matches=function(e,t,r){t=_t.tryParse(t),r=_t.tryParse(r);return!(!t||!r)&&e.versionMatches(t,r)},B0),c=(z0.prototype.matches=function(e,t,r){return!1},z0),qm=(H0.prototype.getMatcher=function(e){switch(e){case"STRING":case"JSON":return H0.STRING_MATCHER;case"NUMBER":return H0.NUMBER_MATCHER;case"BOOLEAN":return H0.BOOLEAN_MATCHER;case"VERSION":return H0.VERSION_MATCHER;case"NULL":case"UNKNOWN":return H0.NULL_MATCHER}},H0.STRING_MATCHER=new Eu,H0.NUMBER_MATCHER=new Co,H0.BOOLEAN_MATCHER=new Oi,H0.VERSION_MATCHER=new Xs,H0.NULL_MATCHER=new c,H0),pi=(V0.prototype.matches=function(e,t,r){r=this.userValueResolver.resolveOrNull(r,e.key);return!a.isNullOrUndefined(r)&&this.valueOperatorMatcher.matches(r,e.match)},V0),g=(j0.prototype.resolveOrNull=function(e,t){switch(t.type){case"USER_ID":return e.identifiers[t.name];case"USER_PROPERTY":return e.properties[t.name];case"HACKLE_PROPERTY":return e.hackleProperties[t.name];case"SEGMENT":throw new Error("Unsupported TargetKeyType [".concat(t.type,"]"))}},j0),A=(F0.prototype.matches=function(e,t,r){var n=this;if("SEGMENT"!=e.key.type)throw new Error("Unsupported TargetKeyType [".concat(e.key.type,"]"));var i=e.match.values.some(function(e){return n._matches(e,t,r)});switch(e.match.type){case"MATCH":return i;case"NOT_MATCH":return!i}},F0.prototype._matches=function(e,t,r){if("string"!=typeof e)throw new Error("SegmentKey[".concat(e,"]"));var n=t.getSegmentOrNull(e);if(n)return this.segmentMatcher.matches(n,t,r);throw new Error("Segment[".concat(e,"]"))},F0),Yn=(L0.prototype.matches=function(e,t,r){var n=this;return e.targets.some(function(e){return n._matches(e,t,r)})},L0.prototype._matches=function(e,t,r){var n=this;return e.conditions.every(function(e){return n.userConditionMatcher.matches(e,t,r)})},L0),$m=(D0.prototype.getMatcher=function(e){switch(e){case"USER_ID":case"USER_PROPERTY":case"HACKLE_PROPERTY":return D0.USER_CONDITION_MATCHER;case"SEGMENT":return D0.SEGMENT_CONDITION_MATCHER}},D0.USER_CONDITION_MATCHER=new pi(new g,new y(new qm,new Km)),D0.SEGMENT_CONDITION_MATCHER=new A(new Yn(D0.USER_CONDITION_MATCHER)),D0),Ym=(M0.prototype.resolveOrNull=function(e,t,r,n){switch(e.type){case"VARIATION":return this._resolveVariation(e,r);case"BUCKET":return this._resolveBucket(e,t,r,n)}},M0.prototype._resolveVariation=function(e,t){return t._getVariationByIdOrNull(e.variationId)},M0.prototype._resolveBucket=function(e,t,r,n){t=t.getBucketOrNull(e.bucketId),e=n.identifiers[r.identifierType];if(e){n=this.bucketer.bucketing(t,e);if(n)return r._getVariationByIdOrNull(n.variationId)}},M0),Xm={murmurhash3_x86_32:function(e,t,r,n){for(var i,o=-4&(n=void 0===n?e.length:n),s=t,a=0;a<o;a+=4)i=255&e.charCodeAt(a)|(255&e.charCodeAt(a+1))<<8|(255&e.charCodeAt(a+2))<<16|(255&e.charCodeAt(a+3))<<24,i=(131071&(i=this.mul32(i,3432918353)))<<15|i>>>17,s=5*((524287&(s^=i=this.mul32(i,461845907)))<<13|s>>>19)+3864292196|0;switch(i=0,n%4){case 3:i=(255&e.charCodeAt(2+o))<<16;case 2:i|=(255&e.charCodeAt(1+o))<<8;case 1:i|=255&e.charCodeAt(o),i=(131071&(i=this.mul32(i,3432918353)))<<15|i>>>17,s^=i=this.mul32(i,461845907)}return s=this.mul32(s=(s^=n)^s>>>16,2246822507),(s=this.mul32(s^=s>>>13,3266489909))^s>>>16},mul32:function(e,t){var r=65535&t;return((t-r)*e|0)+(r*e|0)|0}},Wm=(U0.prototype.bucketing=function(e,t){var r=this.calculateSlotNumber(e.seed,e.slotSize,t);return e.slots.find(function(e){return e.contains(r)})},U0.prototype.calculateSlotNumber=function(e,t,r){r=Xm.murmurhash3_x86_32(r,e);return Math.abs(r)%Math.abs(t)},U0),Jm=(P0.prototype.evaluate=function(e,t,r,n){return this.flowEvaluator&&this.nextFlow?this.flowEvaluator.evaluate(e,t,r,n,this.nextFlow):zm.of(e,t,n,u.TRAFFIC_NOT_ALLOCATED)},P0.of=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=new P0,n=0,i=e.reverse();n<i.length;n++)r=new P0(i[n],r);return r},P0),Qm=(x0.prototype.evaluate=function(e,t,r,n,i){var o=this.overrideResolver.resolveOrNull(e,t,r);if(!o)return i.evaluate(e,t,r,n);switch(t.type){case"AB_TEST":return zm.withVariation(e,o,u.OVERRIDDEN);case"FEATURE_FLAG":return zm.withVariation(e,o,u.INDIVIDUAL_TARGET_MATCH)}},x0),Zm=(k0.prototype.evaluate=function(e,t,r,n,i){return"DRAFT"===t.status?zm.of(e,t,n,u.EXPERIMENT_DRAFT):i.evaluate(e,t,r,n)},k0),e0=(A0.prototype.evaluate=function(e,t,r,n,i){if("PAUSED"!==t.status)return i.evaluate(e,t,r,n);switch(t.type){case"AB_TEST":return zm.of(e,t,n,u.EXPERIMENT_PAUSED);case"FEATURE_FLAG":return zm.of(e,t,n,u.FEATURE_FLAG_INACTIVE)}},A0),t0=(C0.prototype.evaluate=function(e,t,r,n,i){if("COMPLETED"!==t.status)return i.evaluate(e,t,r,n);i=t._winnerVariationOrNull();if(i)return zm.withVariation(e,i,u.EXPERIMENT_COMPLETED);throw new Error("winner variation [".concat(t.id,"]"))},C0),r0=(N0.prototype.evaluate=function(e,t,r,n,i){if("AB_TEST"!==t.type)throw new Error("experiment type must be AB_TEST [".concat(t.id,"]"));return this.experimentTargetDeterminer.isUserInExperimentTarget(e,t,r)?i.evaluate(e,t,r,n):zm.of(e,t,n,u.NOT_IN_EXPERIMENT_TARGET)},N0),n0=(S0.prototype.evaluate=function(e,t,r,n,i){if("RUNNING"!==t.status)throw new Error("experiment status must be RUNNING [".concat(t.id,"]"));if("AB_TEST"!==t.type)throw new Error("experiment type must be AB_TEST [".concat(t.id,"]"));r=this.actionResolver.resolveOrNull(t.defaultRule,e,t,r);return r?r.isDropped?zm.of(e,t,n,u.VARIATION_DROPPED):zm.withVariation(e,r,u.TRAFFIC_ALLOCATED):zm.of(e,t,n,u.TRAFFIC_NOT_ALLOCATED)},S0),i0=(I0.prototype.evaluate=function(e,t,r,n,i){if("RUNNING"!==t.status)throw new Error("experiment status must be RUNNING [".concat(t.id,"]"));if("FEATURE_FLAG"!==t.type)throw new Error("experiment type must be FEATURE_FLAG [".concat(t.id,"]"));if(!r.identifiers[t.identifierType])return i.evaluate(e,t,r,n);var o=this.targetRuleDeterminer.determineTargetRuleOrNull(e,t,r);if(!o)return i.evaluate(e,t,r,n);i=this.actionResolver.resolveOrNull(o.action,e,t,r);if(i)return zm.withVariation(e,i,u.TARGET_RULE_MATCH);throw new Error("FeatureFlag must decide the Variation [".concat(t.id,"]"))},I0),o0=(R0.prototype.evaluate=function(e,t,r,n,i){if("RUNNING"!==t.status)throw new Error("experiment status must be RUNNING [".concat(t.id,"]"));if("FEATURE_FLAG"!==t.type)throw new Error("experiment type must be FEATURE_FLAG [".concat(t.id,"]"));if(!r.identifiers[t.identifierType])return zm.of(e,t,n,u.DEFAULT_RULE);n=this.actionResolver.resolveOrNull(t.defaultRule,e,t,r);if(n)return zm.withVariation(e,n,u.DEFAULT_RULE);throw new Error("FeatureFlag must decide the Variation [".concat(t.id,"]"))},R0),s0=(O0.prototype.evaluate=function(e,t,r,n,i){var o=t.containerId;if(!o)return i.evaluate(e,t,r,n);var s=e.getContainerOrNull(o);if(!s)throw new Error("container[".concat(o,"]"));o=e.getBucketOrNull(s.bucketId);if(o)return this.containerResolver.isUserInContainerGroup(s,o,t,r)?i.evaluate(e,t,r,n):zm.of(e,t,n,u.NOT_IN_MUTUAL_EXCLUSION_EXPERIMENT);throw new Error("bucket[".concat(s.bucketId,"]"))},O0),a0=(_0.prototype.evaluate=function(e,t,r,n,i){return r.identifiers[t.identifierType]?i.evaluate(e,t,r,n):zm.of(e,t,n,u.IDENTIFIER_NOT_FOUND)},_0),u0=(b0.prototype.isUserInExperimentTarget=function(t,e,r){var n=this;return 0===e.targetAudiences.length||e.targetAudiences.some(function(e){return n.targetMatcher.matches(e,t,r)})},b0),c0=(T0.prototype.determineTargetRuleOrNull=function(t,e,r){var n=this;return e.targetRules.find(function(e){return n.targetMatcher.matches(e.target,t,r)})},T0),l0=(E0.prototype.resolveOrNull=function(e,t,r){var n;return null!=(n=null!=(n=this.resolveManualOverride(t,r))?n:this._resolveUserOverride(t,r))?n:this._resolveSegmentOverride(e,t,r)},E0.prototype.resolveManualOverride=function(e,t){return this.manualOverrideStorage.getVariation(e,t)},E0.prototype._resolveUserOverride=function(e,t){t=t.identifiers[e.identifierType];if(t){t=e.userOverrides.get(t);if(t)return e._getVariationByIdOrNull(t)}},E0.prototype._resolveSegmentOverride=function(t,e,r){var n=this,i=e.segmentOverrides.find(function(e){return n.targetMatcher.matches(e.target,t,r)});if(i)return this.actionResolver.resolveOrNull(i.action,t,e,r)},E0),f0=(w0.prototype.isUserInContainerGroup=function(e,t,r,n){n=n.identifiers[r.identifierType];if(!n)return!1;t=this.bucketer.bucketing(t,n);if(!t)return!1;n=e.getGroupOrNull(t.variationId);if(n)return n.experiments.includes(r.id);throw new Error("ContainerGroup[".concat(t.variationId,"]"))},w0),p0=(m0.prototype.determineTargetRuleOrNull=function(t,r,n){var i=this;return r.targetRules.find(function(e){return i.matches(e,t,r,n)})},m0.prototype.matches=function(e,t,r,n){if(!this.targetMatcher.matches(e.target,t,n))return!1;n=n.identifiers[r.identifierType];if(a.isNullOrUndefined(n))return!1;r=t.getBucketOrNull(e.bucketId);if(a.isNullOrUndefined(r))throw new Error("bucket[".concat(e.bucketId,"]"));return a.isNotNullOrUndefined(this.bucketer.bucketing(r,n))},m0),d0=(g0.prototype.getFlow=function(e){switch(e){case"AB_TEST":return this.abTestFlow;case"FEATURE_FLAG":return this.featureFlagFlow}},g0.prototype.getRemoteConfigParameterTargetRuleDeterminer=function(){return this.remoteConfigParameterTargetRuleDeterminer},g0),h0=(v0.prototype.install=function(e,t){this._install("onerror",e,t),this._install("onunhandledrejection",e,t)},v0.prototype._install=function(e,t,r){e in this._installed||((0,this._installations[e])(t,r),this._installed.push(e))},v0),y0=null;function v0(){this._installed=[],this._installations={onerror:yw,onunhandledrejection:vw}}function g0(e){var t=new Wm,r=new Gm(new $m),n=new Ym(t),e=new l0(e,r,n),i=new f0(t);this.abTestFlow=Jm.of(new Qm(e),new a0,new s0(i),new r0(new u0(r)),new Zm,new e0,new t0,new n0(n)),this.featureFlagFlow=Jm.of(new Zm,new e0,new t0,new Qm(e),new a0,new i0(new c0(r),n),new o0(n)),this.remoteConfigParameterTargetRuleDeterminer=new p0(r,t)}function m0(e,t){this.targetMatcher=e,this.bucketer=t}function w0(e){this.bucketer=e}function E0(e,t,r){this.manualOverrideStorage=e,this.targetMatcher=t,this.actionResolver=r}function T0(e){this.targetMatcher=e}function b0(e){this.targetMatcher=e}function _0(){}function O0(e){this.containerResolver=e}function R0(e){this.actionResolver=e}function I0(e,t){this.targetRuleDeterminer=e,this.actionResolver=t}function S0(e){this.actionResolver=e}function N0(e){this.experimentTargetDeterminer=e}function C0(){}function A0(){}function k0(){}function x0(e){this.overrideResolver=e}function P0(e,t){void 0===t&&(t=void 0),this.flowEvaluator=e=void 0===e?void 0:e,this.nextFlow=t}function U0(){}function M0(e){this.bucketer=e}function D0(){}function L0(e){this.userConditionMatcher=e}function F0(e){this.segmentMatcher=e}function j0(){}function V0(e,t){this.userValueResolver=e,this.valueOperatorMatcher=t}function H0(){}function z0(){}function B0(){}function G0(){}function K0(){}function q0(){}function $0(){}function Y0(){}function X0(){}function W0(){}function J0(){}function Q0(){}function Z0(){}function ew(){}function tw(){}function rw(e,t){this.valueMatcherFactory=e,this.operatorMatcherFactory=t}function nw(e){this.conditionMatcherFactory=e}function iw(e){this.evaluationFlowFactory=e}function ow(e,t,r,n){this.variationId=e,this.variationKey=t,this.reason=r,this.config=n}function sw(){}function aw(e,t,r,n){this.workspaceFetcher=e,this.eventProcessor=t,this.evaluator=r,this.errorDedupDeterminer=n,this.workspaceFetcher.start(),this.eventProcessor.start(),this.readyPromise=this.workspaceFetcher.onReady().then(function(){return{success:!0}},function(e){return{success:!1,error:e}})}function uw(){}function cw(e){this.cache=new Map,this.exposureEventDedupIntervalMillis=e}function lw(e,t,r,n){this.delegate=e,this.exposureEventDedupDeterminer=t,this.sessionManager=r,this.userManager=n}function fw(e,t){this.hackleUserResolver=e,this.hackleInternalClient=t}function pw(e,t,r,n){void 0===n&&(n=null),this.eventDispatcher=e,this.flushInterval=r,this.queue=new Pm(this.drainQueue.bind(this),t,r),this.repository=n}function dw(e,t,r){this.buffer=[],this.sink=e,this.maxQueueSize=t,this.timer=new xm({callback:this.flush.bind(this),timeout:r}),this.started=!1}function hw(e){var t=e.timeout,e=e.callback;this.timeout=Math.max(t,0),this.callback=e}function yw(o,s){y0=window.onerror,window.onerror=function(e,t,r,n,i){a.isNotNullOrUndefined(i)&&o._trackException(i,s.resolveCurrentUser()),y0&&y0.apply(this,arguments)}}function vw(r,n){km=window.onunhandledrejection,window.onunhandledrejection=function(e){var t;try{"reason"in e?t=e.reason:"detail"in e&&"reason"in e.detail&&(t=e.detail.reason)}catch(e){}t instanceof Error&&r._trackException(t,n.resolveCurrentUser()),km&&km.apply(this,arguments)}}function gw(e,t){return e.userId===t.userId&&e.deviceId===t.deviceId}Dw.prototype.read=function(){var r=this;return new Promise(function(e){var t=r.storage.getItem(r.storageKey);t&&e(JSON.parse(t)),e([])})},Dw.prototype.save=function(r){var n=this;return 0===r.length?this.clear():new Promise(function(e){var t=JSON.stringify(r.slice(-n.maxSize));n.storage.setItem(n.storageKey,t),e()})},Dw.prototype.add=function(t){var r=this;return this.read().then(function(e){return r.save(e.concat(t).slice(-r.maxSize))})},Dw.prototype.delete=function(r){var t=this;return this.read().then(function(e){e=e.filter(function(t){return r.findIndex(function(e){return e.insertId===t.insertId})<0});return t.save(e)})},Dw.prototype.clear=function(){var t=this;return new Promise(function(e){localStorage.removeItem(t.storageKey),e()})};var mw=Dw,ww=(Mw.prototype.addListener=function(e){this.userListeners.push(e)},Mw.prototype.initialize=function(){var e=this.storage.getItem(Re)||this.hackleDeviceId,t=this.storage.getItem(Oe)||void 0;this._currentUser={deviceId:e,userId:t}},Object.defineProperty(Mw.prototype,"currentUser",{get:function(){return this._currentUser},enumerable:!1,configurable:!0}),Mw.prototype.resolveCurrentOrNull=function(e){if(void 0===e)return this.currentUser;if("string"==typeof e)return this.setUser({id:e});e=Me(e);return e?this.setUser(e):null},Mw.prototype.setUser=function(e){var t=this._currentUser,r=gw(r=t,e=e)?h(h({},e),{properties:h(h({},r.properties),e.properties)}):e;return this._currentUser=r,gw(t,r)||(this.changeUser(t,r,(new Date).getTime()),this.saveUser(r)),r},Mw.prototype.setUserId=function(e){e=h(h({},this._currentUser),{userId:e});return this.setUser(e)},Mw.prototype.setDeviceId=function(e){e=h(h({},this._currentUser),{deviceId:e});return this.setUser(e)},Mw.prototype.setUserProperty=function(e,t){var r,e=h(h({},this._currentUser),{properties:h(h({},this._currentUser.properties),((r={})[e]=t,r))});return this.setUser(e)},Mw.prototype.setUserProperties=function(e){e=h(h({},this._currentUser),{properties:h(h({},this._currentUser.properties),e)});return this.setUser(e)},Mw.prototype.resetUser=function(){return this.setUser(this.defaultUser)},Mw.prototype.changeUser=function(t,r,n){this.userListeners.forEach(function(e){e.onUserUpdated(t,r,n)})},Mw.prototype.saveUser=function(e){a.isNotNullOrUndefined(e.deviceId)?this.storage.setItem(Re,e.deviceId):this.storage.removeItem(Re),a.isNotNullOrUndefined(e.userId)?this.storage.setItem(Oe,e.userId):this.storage.removeItem(Oe)},Mw),Ew=(Object.defineProperty(Uw.prototype,"currentSessionId",{get:function(){return this._currentSessionId},enumerable:!1,configurable:!0}),Object.defineProperty(Uw.prototype,"sessionId",{get:function(){var e;return null!=(e=this._currentSessionId)?e:Uw.EMPTY_SESSION_ID},enumerable:!1,configurable:!0}),Object.defineProperty(Uw.prototype,"lastEventTime",{get:function(){return this._lastEventTime},enumerable:!1,configurable:!0}),Uw.prototype.addListener=function(e){this.sessionListeners.push(e)},Uw.prototype.startNewSession=function(e,t){return this.endSession(e),this.newSession(e,t)},Uw.prototype.startNewSessionIfNeeded=function(e,t){var r=this._lastEventTime;return null!==r&&null!==this._currentSessionId&&t-r<this.sessionTimeoutMillis?(this.updateLastEventTime(t),this._currentSessionId):this.startNewSession(e,t)},Uw.prototype.updateLastEventTime=function(e){this._lastEventTime=e,this.storage.setItem(_e,"".concat(e))},Uw.prototype.endSession=function(t){var r=this._currentSessionId,n=this._lastEventTime;null!==r&&null!==n&&this.sessionListeners.forEach(function(e){return e.onSessionEnded(r,t,n)})},Uw.prototype.newSession=function(t,r){var n="".concat(r,".").concat(ae.v4().slice(0,8));return this.saveSession(n),this.updateLastEventTime(r),this.sessionListeners.forEach(function(e){e.onSessionStarted(n,t,r)}),n},Uw.prototype.saveSession=function(e){this._currentSessionId=e,this.storage.setItem(be,e)},Uw.prototype.loadSession=function(){this._currentSessionId=this.storage.getItem(be)},Uw.prototype.loadLastEventTime=function(){var e=this.storage.getItem(_e);null!==e&&0<(e=Number.parseFloat(e))&&(this._lastEventTime=e)},Uw.prototype.onUserUpdated=function(e,t,r){this.endSession(e),this.newSession(t,r)},Uw.EMPTY_SESSION_ID="0.ffffffff",Uw),Tw=(Pw.postfix=function(e,t){return new Pw(e,function(e){return"".concat(e).concat(t)})},Pw.prototype.getItem=function(e){return this.delegate.getItem(this.transform(e))},Pw.prototype.removeItem=function(e){this.delegate.removeItem(this.transform(e))},Pw.prototype.setItem=function(e,t){this.delegate.setItem(this.transform(e),t)},Pw),bw=(xw.prototype.isEqualItem=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},xw.prototype.getRemainListSize=function(){try{return this.maxLength-JSON.stringify(this.getList()).length}catch(e){return 0}},xw.prototype.isAddableItem=function(e){try{return this.getRemainListSize()>JSON.stringify(e).length}catch(e){return!1}},xw.prototype.getVictimIndex=function(e){var t=this.getRemainListSize();try{var r=JSON.stringify(e),n=this.getList(),i=0;return n.findIndex(function(e){return(i+=JSON.stringify(e).length)+t>=r.length})}catch(e){return-1}},xw.prototype.getList=function(){try{var e=this.delegate.getItem(this.listKey);if(!e)return[];var t=JSON.parse(e);return Array.isArray(t)?t:[]}catch(e){return[]}},xw.prototype.entries=function(){return this.getList().map(Object.entries)},xw.prototype.setItem=function(e,t){var r;try{this.removeItem(e);var n=this.getList(),i=((r={})[e]=t,r);if(!this.isAddableItem(i)){var o=this.getVictimIndex(i);if(o<0)return;n=n.slice(o+1)}var s=JSON.stringify(n.concat(i));this.delegate.setItem(this.listKey,s)}catch(e){}},xw.prototype.getItem=function(t){var r=this,e=this.getList().find(function(e){return r.isEqualItem(e,t)});if(e&&e[t])return e[t]},xw.prototype.removeItem=function(t){var r=this,e=this.getList();try{var n=e.filter(function(e){return!r.isEqualItem(e,t)}),i=JSON.stringify(n);this.delegate.setItem(this.listKey,i)}catch(t){}},xw.prototype.clear=function(){this.delegate.removeItem(this.listKey)},xw),_w=(kw.prototype.getVariation=function(e,t){if(0!==this.storages.length)for(var r=0,n=this.storages;r<n.length;r++){var i=n[r].getVariation(e,t);if(void 0!==i)return i}},kw),Ow=(Aw.prototype.getVariation=function(e,t){var r=this.get(e);if(r)return e._getVariationByIdOrNull(r)},Aw.prototype.get=function(e){var e=this.listStorage.getItem(e.id.toString());return null!=(e=Number(e))?e:void 0},Aw.prototype.getAll=function(){var r=new Map;return this.listStorage.entries().forEach(function(e){var e=e[0],t=e[0],e=e[1],t=Number(t),e=Number(e);0===t||Number.isNaN(t)||0===e||Number.isNaN(e)||r.set(t,e)}),r},Aw.prototype.set=function(e,t){this.listStorage.setItem(e.id.toString(),t.toString())},Aw.prototype.remove=function(e){this.listStorage.removeItem(e.id.toString())},Aw.prototype.clear=function(){this.listStorage.clear()},Aw),Rw=(Cw.prototype.currentUser=function(){var e=this.userManager.currentUser;return this.userResolver.resolve(e)},Cw.prototype.getAbTestDecisions=function(){return this.internalClient._experiments(this.currentUser()).entries()},Cw.prototype.getAbTestOverrides=function(){return this.abOverrideStorage.getAll()},Cw.prototype.setAbTestOverride=function(e,t){this.abOverrideStorage.set(e,t),this.increment("AB_TEST","set")},Cw.prototype.resetAbTestOverride=function(e){this.abOverrideStorage.remove(e),this.increment("AB_TEST","reset")},Cw.prototype.resetAllAbTestOverride=function(){this.abOverrideStorage.clear(),this.increment("AB_TEST","reset.all")},Cw.prototype.getFeatureFlagDecisions=function(){return this.internalClient._featureFlags(this.currentUser()).entries()},Cw.prototype.getFeatureFlagOverrides=function(){return this.ffOverrideStorage.getAll()},Cw.prototype.setFeatureFlagOverride=function(e,t){this.ffOverrideStorage.set(e,t),this.increment("FEATURE_FLAG","set")},Cw.prototype.resetFeatureFlagOverride=function(e){this.ffOverrideStorage.remove(e),this.increment("FEATURE_FLAG","reset")},Cw.prototype.resetAllFeatureFlagOverride=function(){this.ffOverrideStorage.clear(),this.increment("FEATURE_FLAG","reset.all")},Cw.prototype.increment=function(e,t){Er.counter("experiment.manual.override",{"experiment.type":e,operation:t}).increment()},Cw),Iw=de.log,Sw=null,Nw={debug:!1,log_disabled:!1,auto_track_page_view:!0,pollingIntervalMillis:-1,exposureEventDedupIntervalMillis:-1,sessionTimeoutMillis:18e5,autoOpenDevTool:!1,SDK_NAME_HEADER:"javascript-sdk_browser",SDK_VERSION_HEADER:"11.13.2"};function Cw(e,t,r,n,i){this.internalClient=e,this.userManager=t,this.userResolver=r,this.abOverrideStorage=n,this.ffOverrideStorage=i}function Aw(e){this.listStorage=e}function kw(e){this.storages=e}function xw(e,t,r){void 0===r&&(r=4096);var n=this;this.delegate=e,this.listKey=t,this.encodedListCharLen=6,this.resolveMaxLength=function(e){e-=n.encodedListCharLen;return e<0?0:e},this.maxLength=this.resolveMaxLength(r)}function Pw(e,t){this.delegate=e,this.transform=t}function Uw(e,t){this.sessionTimeoutMillis=e,this.storage=t,this.sessionListeners=[],this._currentSessionId=null,this._lastEventTime=null,this.loadSession(),this.loadLastEventTime()}function Mw(e,t){this.storage=e,this.hackleDeviceId=t,this.userListeners=[],this.defaultUser={deviceId:this.hackleDeviceId},this._currentUser=this.defaultUser,this.initialize()}function Dw(e,t,r){this.storage=e,this.storageKey=t,this.maxSize=r}function Lw(e,t){t=h(h({},Nw),t);if(de.initCounter(function(e){return Er.counter("log",{level:e})}),t.log_disabled?de.setLogLevel(pe.DISABLE):t.debug&&de.setLogLevel(pe.DEBUG),Iw.debug("sdkKey : "+e),e||Iw.error("SDK Key must not be null"),Sw)return Iw.debug("use already exists hackleClient"),Sw;var r=!1,n=("undefined"!=typeof window&&(r=window&&window.navigator&&window.navigator.sendBeacon&&!0)&&Iw.debug("support sendBeacon API"),new Kr(e,$e,{dispatchUrl:"https://event.hackle.io/api/v2/w/events",beaconDispatchUrl:"".concat("https://event.hackle.io/api/v2/w/").concat(e).concat("/events"),useBeacon:r,headers:((n={})[ve]=t.SDK_NAME_HEADER,n[ge]=t.SDK_VERSION_HEADER,n)})),i=-1,i=(void 0!==t.pollingIntervalMillis&&"number"==typeof t.pollingIntervalMillis&&0<t.pollingIntervalMillis&&(i=Math.max(t.pollingIntervalMillis,3e4)),new Yr(e,$e,{fetchUrl:"".concat("https://client-sdk.hackle.io/api/v2/w/").concat(e).concat("/w"),updateInterval:i,headers:((i={})[ve]=t.SDK_NAME_HEADER,i[ge]=t.SDK_VERSION_HEADER,i)})),o=-1,s=(void 0!==t.exposureEventDedupIntervalMillis&&"number"==typeof t.exposureEventDedupIntervalMillis&&-1!==t.exposureEventDedupIntervalMillis&&(o=t.exposureEventDedupIntervalMillis<1e3||36e5<t.exposureEventDedupIntervalMillis?(Iw.warn("Exposure event dedup interval is outside allowed range[1_000ms..3_600_000ms]. Setting to default value[no dedup]."),-1):t.exposureEventDedupIntervalMillis),new mw(window.localStorage,"".concat("hackle-repository-storage","_").concat(e),100)),a=new ww(Tw.postfix(Zr,"_".concat(e)),pn()),u=new Ew(t.sessionTimeoutMillis,Tw.postfix(Zr,"_".concat(e.slice(8))));a.addListener(u);function c(){p.drainRepository()}var l,f,p=new Um(n,100,500,s),n=new Lm(o),s=new Dm(p,n,u,a),o=new Ow(new bw(Zr,"".concat("hackle-manual-override_ab","_").concat(e.slice(0,8)))),n=new Ow(new bw(Zr,"".concat("hackle-manual-override_ff","_").concat(e.slice(0,8)))),i=new Vm(i,s,new Bm(new d0(new _w([o,n]))),new Hm),s=new tn(a),o=new Rw(i,a,s,o,n),n=(null==(n=t.devTool)?void 0:n.userExplorer)&&"function"==typeof(null==(n=t.devTool)?void 0:n.userExplorer),n=t.devTool&&n?{manager:t.devTool,userExplorer:o}:void 0,d=new Ir(i,s,u,a,n),o=new Mm(s,i),o=(u.addListener(o),Sw=d,t.auto_track_page_view&&(f=function(){return l.trackPageView({user:{id:pn()}})},(l=d).onReady(function(){function t(e){if("function"==typeof window.Event)return new Event(e);var t=!1,r=!1,n=void 0,i=document.createEvent("CustomEvent");return i.initCustomEvent(e,t,r,n),i}f();try{history.pushState=(n=history.pushState,function(){try{var e=n.apply(this,arguments);return window.dispatchEvent(t("locationchange")),e}catch(e){if(e instanceof Error)Iw.error(e);else try{Iw.error(e)}catch(e){}}}),history.replaceState=(r=history.replaceState,function(){try{var e=r.apply(this,arguments);return window.dispatchEvent(t("locationchange")),e}catch(e){if(e instanceof Error)Iw.error(e);else try{Iw.error(e)}catch(e){}}}),window.addEventListener("popstate",function(){try{window.dispatchEvent(t("locationchange"))}catch(e){if(e instanceof Error)Iw.error(e);else try{Iw.error(e)}catch(e){}}}),window.addEventListener("locationchange",function(){try{f()}catch(e){if(e instanceof Error)Iw.error(e);else try{Iw.error(e)}catch(e){}}})}catch(t){if(t instanceof Error)Iw.error(t);else try{Iw.error(t)}catch(t){}}var r,n})),t.autoOpenDevTool&&(t.devTool?d.showUserExplorer():Iw.error("DevTool is not provided")),(new h0).install(i,s),new Tr("https://monitoring.hackle.io",6e4,$e,((n={})[ve]=t.SDK_NAME_HEADER,n[ge]=t.SDK_VERSION_HEADER,n[ye]=e,n),r));return document.addEventListener("visibilitychange",function(){document.hidden||c()}),window.addEventListener("pageshow",c),window.addEventListener("onpagehide"in window?"pagehide":"unload",function(){hn(),u.updateLastEventTime((new Date).getTime()),d.close(),Er.globalRegistry.close()}),Er.addRegistry(o),d.onReady(function(){u.startNewSessionIfNeeded(a.currentUser,(new Date).getTime())}),d}var o={createInstance:Lw,getUserId:pn,setUserId:dn,removeUserId:hn,Logger:de},Fw=(l.Bucket=t.Bucket=Pe,l.Container=t.Container=at,l.ContainerGroup=t.ContainerGroup=Be,l.CoreVersion=t.CoreVersion=Ot,l.Decision=t.Decision=et,l.DecisionReason=t.DecisionReason=u,l.EmptyHackleRemoteConfig=t.EmptyHackleRemoteConfig=oe,l.EmptyParameterConfig=t.EmptyParameterConfig=rt,l.EventType=t.EventType=Ue,l.Experiment=t.Experiment=nt,l.FeatureFlagDecision=t.FeatureFlagDecision=tt,l.IdentifierType=t.IdentifierType=ot,l.IdentifiersBuilder=t.IdentifiersBuilder=st,l.Logger=t.Logger=de,l.MATCH_OPERATORS=t.MATCH_OPERATORS=Nt,l.MATCH_TYPES=t.MATCH_TYPES=It,l.MATCH_VALUE_TYPES=t.MATCH_VALUE_TYPES=St,l.MetaVersion=t.MetaVersion=Rt,l.ParameterConfiguration=t.ParameterConfiguration=ut,l.RemoteConfigDecision=t.RemoteConfigDecision=Ze,l.RemoteConfigParameter=t.RemoteConfigParameter=Ge,l.RemoteConfigParameterValue=t.RemoteConfigParameterValue=qe,l.RemoteConfigTargetRule=t.RemoteConfigTargetRule=Ke,l.SEGMENT_TYPES=t.SEGMENT_TYPES=kt,l.Segment=t.Segment=ze,l.Slot=t.Slot=it,l.TARGET_ACTION_TYPES=t.TARGET_ACTION_TYPES=Ct,l.TARGET_KEY_TYPES=t.TARGET_KEY_TYPES=At,l.Target=t.Target=De,l.TargetAction=t.TargetAction=Ve,l.TargetCondition=t.TargetCondition=Le,l.TargetKey=t.TargetKey=Fe,l.TargetMatch=t.TargetMatch=je,l.TargetRule=t.TargetRule=He,l.TargetingType=t.TargetingType=xt,l.Variation=t.Variation=xe,l.Version=t.Version=_t,se=t.createInstance=Lw,t.default=o,l.getUserId=t.getUserId=pn,l.removeUserId=t.removeUserId=hn,l.sanitizeUser=t.sanitizeUser=Me,l.setUserId=t.setUserId=dn,function(e,t){return(Fw=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)});var jw=function(){return(jw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function Vw(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||0<t--)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}Hw.prototype.on=function(e,t){this.listeners[e]=(this.listeners[e]||[]).concat(t)},Hw.prototype.off=function(e,t){this.listeners[e]=(this.listeners[e]||[]).filter(function(e){return e!==t})},Hw.prototype.emit=function(e,t){(this.listeners[e]||[]).forEach(function(e){e(t)})};_u=Hw;function Hw(){this.listeners={}}Bw.arePropertiesEqual=function(e,t){var r=Bw.coerceUnknownToProperties(e),n=Bw.coerceUnknownToProperties(t),e=Object.keys(r),t=Object.keys(n);return e.length===t.length&&e.every(function(e){return e in n&&r[e]===n[e]})},Bw.coerceUnknownToProperties=function(e){return"object"==typeof e&&null!==e?e:{}};var zw=Bw;function Bw(){}Kw.isUserEqual=function(e,t){return(null==e?void 0:e.id)===(null==t?void 0:t.id)&&(null==e?void 0:e.deviceId)===(null==t?void 0:t.deviceId)&&(null==e?void 0:e.userId)===(null==t?void 0:t.userId)&&zw.arePropertiesEqual(null==e?void 0:e.properties,null==t?void 0:t.properties)&&zw.arePropertiesEqual(null==e?void 0:e.identifiers,null==t?void 0:t.identifiers)};var Gw=Kw;function Kw(){}var qw=function(n){var e=i,t=n;if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}function i(e,t){var r=n.call(this)||this;return r._currentUser=null,r.client=se(e,jw(jw({},t),{SDK_NAME_HEADER:"react-sdk",SDK_VERSION_HEADER:"11.13.2"})),null!=t&&t.devTool&&null!=t&&t.autoOpenDevTool&&r.showUserExplorer(),r}return Fw(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r),i.prototype.getUser=function(){return this.client.getUser()},i.prototype.setUser=function(e){this.client.setUser(e),this.emitUpdatedUser(this.getUser())},i.prototype.setUserId=function(e){this.client.setUserId(e),this.emitUpdatedUser(this.getUser())},i.prototype.setDeviceId=function(e){this.client.setDeviceId(e),this.emitUpdatedUser(this.getUser())},i.prototype.setUserProperty=function(e,t){this.client.setUserProperty(e,t),this.emitUpdatedUser(this.getUser())},i.prototype.resetUser=function(){this.client.resetUser(),this.emitUpdatedUser(this.getUser())},i.prototype.variation=function(e,t,r){return this.client.variation(e,t||void 0,r)},i.prototype.variationDetail=function(e,t,r){return this.client.variationDetail(e,t||void 0,r)},i.prototype.isFeatureOn=function(e,t){return this.client.isFeatureOn(e,t||void 0)},i.prototype.featureFlagDetail=function(e,t){return this.client.featureFlagDetail(e,t||void 0)},i.prototype.track=function(e,t){this.client.track(e,t||void 0)},i.prototype.trackPageView=function(e){this.client.trackPageView(jw(jw({},e),{user:(null==e?void 0:e.user)||void 0}))},i.prototype.remoteConfig=function(e){return this.client.remoteConfig(e||void 0)},i.prototype.onReady=function(e,t){this.client.onReady(e,t)},i.prototype.onInitialized=function(e){return this.client.onInitialized(e)},i.prototype.emitUpdatedUser=function(e){Gw.isUserEqual(this._currentUser,e)||this.emit("user-updated",e),this._currentUser=e},i.prototype.showUserExplorer=function(){this.client.showUserExplorer()},i.prototype.hideUserExplorer=function(){this.client.hideUserExplorer()},i}(_u);var U={exports:{}},p={},$w=Object.getOwnPropertySymbols,Yw=Object.prototype.hasOwnProperty,Xw=Object.prototype.propertyIsEnumerable;var k=function(){try{if(!Object.assign)return;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(e){n[e]=e}),"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},n)).join("")?void 0:1}catch(e){return}}()?Object.assign:function(e,t){for(var r,n=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),i=1;i<arguments.length;i++){for(var o in r=Object(arguments[i]))Yw.call(r,o)&&(n[o]=r[o]);if($w)for(var s=$w(r),a=0;a<s.length;a++)Xw.call(r,s[a])&&(n[s[a]]=r[s[a]])}return n},Ww=k,N="function"==typeof Symbol&&Symbol.for,Jw=N?Symbol.for("react.element"):60103,Qw=N?Symbol.for("react.portal"):60106,Tf=N?Symbol.for("react.fragment"):60107,Zw=N?Symbol.for("react.strict_mode"):60108,e=N?Symbol.for("react.profiler"):60114,eE=N?Symbol.for("react.provider"):60109,tE=N?Symbol.for("react.context"):60110,rE=N?Symbol.for("react.forward_ref"):60112,r=N?Symbol.for("react.suspense"):60113,nE=N?Symbol.for("react.memo"):60115,iE=N?Symbol.for("react.lazy"):60116,oE="function"==typeof Symbol&&Symbol.iterator;function sE(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var aE={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},uE={};function cE(e,t,r){this.props=e,this.context=t,this.refs=uE,this.updater=r||aE}function lE(){}function fE(e,t,r){this.props=e,this.context=t,this.refs=uE,this.updater=r||aE}cE.prototype.isReactComponent={},cE.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(sE(85));this.updater.enqueueSetState(this,e,t,"setState")},cE.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},lE.prototype=cE.prototype;var P=fE.prototype=new lE,pE=(P.constructor=fE,Ww(P,cE.prototype),P.isPureReactComponent=!0,{current:null}),dE=Object.prototype.hasOwnProperty,hE={key:!0,ref:!0,__self:!0,__source:!0};function yE(e,t,r){var n,i={},o=null,s=null;if(null!=t)for(n in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(o=""+t.key),t)dE.call(t,n)&&!hE.hasOwnProperty(n)&&(i[n]=t[n]);var a=arguments.length-2;if(1===a)i.children=r;else if(1<a){for(var u=Array(a),c=0;c<a;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(n in a=e.defaultProps)void 0===i[n]&&(i[n]=a[n]);return{$$typeof:Jw,type:e,key:o,ref:s,props:i,_owner:pE.current}}function vE(e){return"object"==typeof e&&null!==e&&e.$$typeof===Jw}var gE=/\/+/g,mE=[];function wE(e,t,r,n){var i;return mE.length?((i=mE.pop()).result=e,i.keyPrefix=t,i.func=r,i.context=n,i.count=0,i):{result:e,keyPrefix:t,func:r,context:n,count:0}}function EE(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,mE.length<10&&mE.push(e)}function TE(e,t,r){return null==e?0:function e(t,r,n,i){var o=!1;if(null===(t="undefined"!=(a=typeof t)&&"boolean"!==a?t:null))o=!0;else switch(a){case"string":case"number":o=!0;break;case"object":switch(t.$$typeof){case Jw:case Qw:o=!0}}if(o)return n(i,t,""===r?"."+bE(t,0):r),1;if(o=0,r=""===r?".":r+":",Array.isArray(t))for(var s=0;s<t.length;s++){var a,u=r+bE(a=t[s],s);o+=e(a,u,n,i)}else if("function"==typeof(u=null!==t&&"object"==typeof t&&"function"==typeof(u=oE&&t[oE]||t["@@iterator"])?u:null))for(t=u.call(t),s=0;!(a=t.next()).done;)o+=e(a=a.value,u=r+bE(a,s++),n,i);else if("object"===a)throw n=""+t,Error(sE(31,"[object Object]"===n?"object with keys {"+Object.keys(t).join(", ")+"}":n,""));return o}(e,"",t,r)}function bE(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(e=e.key,r={"=":"=0",":":"=2"},"$"+(""+e).replace(/[=:]/g,function(e){return r[e]})):t.toString(36);var r}function _E(e,t){e.func.call(e.context,t,e.count++)}function OE(e,t,r){var n=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?RE(e,n,r,function(e){return e}):null!=e&&(vE(e)&&(t=i+(!(i=e).key||t&&t.key===e.key?"":(""+e.key).replace(gE,"$&/")+"/")+r,e={$$typeof:Jw,type:i.type,key:t,ref:i.ref,props:i.props,_owner:i._owner}),n.push(e))}function RE(e,t,r,n,i){var o="";TE(e,OE,t=wE(t,o=null!=r?(""+r).replace(gE,"$&/")+"/":o,n,i)),EE(t)}var IE={current:null};function SE(){var e=IE.current;if(null===e)throw Error(sE(321));return e}var NE,CE,AE,Ys={ReactCurrentDispatcher:IE,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:pE,IsSomeRendererActing:{current:!1},assign:Ww},O=(p.Children={map:function(e,t,r){if(null==e)return e;var n=[];return RE(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;TE(e,_E,t=wE(null,null,t,r)),EE(t)},count:function(e){return TE(e,function(){return null},null)},toArray:function(e){var t=[];return RE(e,t,null,function(e){return e}),t},only:function(e){if(vE(e))return e;throw Error(sE(143))}},p.Component=cE,p.Fragment=Tf,p.Profiler=e,p.PureComponent=fE,p.StrictMode=Zw,p.Suspense=r,p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ys,p.cloneElement=function(e,t,r){if(null==e)throw Error(sE(267,e));var n=Ww({},e.props),i=e.key,o=e.ref,s=e._owner;if(null!=t)for(a in void 0!==t.ref&&(o=t.ref,s=pE.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps&&(u=e.type.defaultProps),t)dE.call(t,a)&&!hE.hasOwnProperty(a)&&(n[a]=(void 0===t[a]&&void 0!==u?u:t)[a]);var a=arguments.length-2;if(1===a)n.children=r;else if(1<a){for(var u=Array(a),c=0;c<a;c++)u[c]=arguments[c+2];n.children=u}return{$$typeof:Jw,type:e.type,key:i,ref:o,props:n,_owner:s}},p.createContext=function(e,t){return(e={$$typeof:tE,_calculateChangedBits:t=void 0===t?null:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:eE,_context:e},e.Consumer=e},p.createElement=yE,p.createFactory=function(e){var t=yE.bind(null,e);return t.type=e,t},p.createRef=function(){return{current:null}},p.forwardRef=function(e){return{$$typeof:rE,render:e}},p.isValidElement=vE,p.lazy=function(e){return{$$typeof:iE,_ctor:e,_status:-1,_result:null}},p.memo=function(e,t){return{$$typeof:nE,type:e,compare:void 0===t?null:t}},p.useCallback=function(e,t){return SE().useCallback(e,t)},p.useContext=function(e,t){return SE().useContext(e,t)},p.useDebugValue=function(){},p.useEffect=function(e,t){return SE().useEffect(e,t)},p.useImperativeHandle=function(e,t,r){return SE().useImperativeHandle(e,t,r)},p.useLayoutEffect=function(e,t){return SE().useLayoutEffect(e,t)},p.useMemo=function(e,t){return SE().useMemo(e,t)},p.useReducer=function(e,t,r){return SE().useReducer(e,t,r)},p.useRef=function(e){return SE().useRef(e)},p.useState=function(e){return SE().useState(e)},p.version="16.14.0",{}),bi=Function.call.bind(Object.prototype.hasOwnProperty),kE=function(){};function xE(e,t,r,n,i){if("production"!==production)for(var o in e)if(AE(e,o)){var s,a;try{if("function"!=typeof e[o])throw(a=Error((n||"React class")+": "+r+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.")).name="Invariant Violation",a;s=e[o](t,o,n,r,null,NE)}catch(e){s=e}!s||s instanceof Error||kE((n||"React class")+": type specification of "+r+" `"+o+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof s+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),s instanceof Error&&!(s.message in CE)&&(CE[s.message]=!0,o=i?i():"",kE("Failed "+r+" type: "+s.message+(null!=o?o:"")))}}if("production"!==production&&(NE="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",CE={},AE=bi,kE=function(e){e="Warning: "+e;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(e){}}),xE.resetWarningCache=function(){"production"!==production&&(CE={})},"production"!==production){var PE=k,UE=xE,C="function"==typeof Symbol&&Symbol.for,ME=C?Symbol.for("react.element"):60103,DE=C?Symbol.for("react.portal"):60106,LE=C?Symbol.for("react.fragment"):60107,FE=C?Symbol.for("react.strict_mode"):60108,jE=C?Symbol.for("react.profiler"):60114,VE=C?Symbol.for("react.provider"):60109,HE=C?Symbol.for("react.context"):60110,zE=C?Symbol.for("react.concurrent_mode"):60111,BE=C?Symbol.for("react.forward_ref"):60112,GE=C?Symbol.for("react.suspense"):60113,KE=C?Symbol.for("react.suspense_list"):60120,qE=C?Symbol.for("react.memo"):60115,$E=C?Symbol.for("react.lazy"):60116,YE=C?Symbol.for("react.block"):60121,XE=C?Symbol.for("react.fundamental"):60117,WE=C?Symbol.for("react.responder"):60118,JE=C?Symbol.for("react.scope"):60119,QE="function"==typeof Symbol&&Symbol.iterator,ZE="@@iterator";function e1(e){if(null===e||"object"!=typeof e)return null;e=QE&&e[QE]||e[ZE];return"function"==typeof e?e:null}var t1={current:null},r1={current:null},n1=/^(.*)[\\\/]/,i1=1;function o1(e){if(null==e)return null;if("number"==typeof e.tag&&M("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case LE:return"Fragment";case DE:return"Portal";case jE:return"Profiler";case FE:return"StrictMode";case GE:return"Suspense";case KE:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case HE:return"Context.Consumer";case VE:return"Context.Provider";case BE:return t=e.render,r="ForwardRef",t=t.displayName||t.name||"",e.displayName||(""!==t?r+"("+t+")":r);case qE:return o1(e.type);case YE:return o1(e.render);case $E:r=(t=e)._status===i1?t._result:null;if(r)return o1(r)}var t,r;return null}var s1={},a1=null;function u1(e){a1=e}s1.getCurrentStack=null,s1.getStackAddendum=function(){var e,t,r,n,i,o="",s=(a1&&(e=o1(a1.type),r=a1._owner,o+=(e=e,t=a1._source,r=r&&o1(r.type),i="",t?(n=(s=t.fileName).replace(n1,""),i=" (at "+(n=/^index\./.test(n)&&(s=s.match(n1))&&(s=s[1])?s.replace(n1,"")+"/"+n:n)+":"+t.lineNumber+")"):r&&(i=" (created by "+r+")"),"\n in "+(e||"Unknown")+i)),s1.getCurrentStack);return s&&(o+=s()||""),o};var c1={ReactCurrentDispatcher:t1,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:r1,IsSomeRendererActing:{current:!1},assign:PE};function l1(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];f1("warn",e,r)}function M(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];f1("error",e,r)}function f1(e,t,r){0<r.length&&"string"==typeof r[r.length-1]&&0===r[r.length-1].indexOf("\n in")||""!==(n=c1.ReactDebugCurrentFrame.getStackAddendum())&&(t+="%s",r=r.concat([n]));var n=r.map(function(e){return""+e});n.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,n);try{var i=0,o="Warning: "+t.replace(/%s/g,function(){return r[i++]});throw new Error(o)}catch(e){}}PE(c1,{ReactDebugCurrentFrame:s1,ReactComponentTreeHook:{}});var p1={};function d1(e,t){var e=e.constructor,e=e&&(e.displayName||e.name)||"ReactClass",r=e+"."+t;p1[r]||(M("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,e),p1[r]=!0)}var h1={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,r){d1(e,"forceUpdate")},enqueueReplaceState:function(e,t,r,n){d1(e,"replaceState")},enqueueSetState:function(e,t,r,n){d1(e,"setState")}},y1={};function v1(e,t,r){this.props=e,this.context=t,this.refs=y1,this.updater=r||h1}Object.freeze(y1),v1.prototype.isReactComponent={},v1.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v1.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var g1,m1={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(g1 in m1)m1.hasOwnProperty(g1)&&!function(e,t){Object.defineProperty(v1.prototype,e,{get:function(){l1("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})}(g1,m1[g1]);function w1(){}function E1(e,t,r){this.props=e,this.context=t,this.refs=y1,this.updater=r||h1}w1.prototype=v1.prototype,(C=E1.prototype=new w1).constructor=E1,PE(C,v1.prototype),C.isPureReactComponent=!0;var T1,b1,_1=Object.prototype.hasOwnProperty,O1={key:!0,ref:!0,__self:!0,__source:!0};function R1(e){if(_1.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return}return void 0!==e.ref}function I1(e){if(_1.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return}return void 0!==e.key}var S1={},N1=function(e,t,r,n,i,o,s){e={$$typeof:ME,type:e,key:t,ref:r,props:s,_owner:o,_store:{}};return Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(e,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(e,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e};function C1(e,t,r){var n,i={},o=null,s=null,a=null,u=null;if(null!=t)for(n in R1(t)&&(s=t.ref,"string"==typeof(c=t).ref&&r1.current&&c.__self&&r1.current.stateNode!==c.__self&&(f=o1(r1.current.type),S1[f]||(M('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://fb.me/react-strict-mode-string-ref',o1(r1.current.type),c.ref),S1[f]=!0))),I1(t)&&(o=""+t.key),a=void 0===t.__self?null:t.__self,u=void 0===t.__source?null:t.__source,t)_1.call(t,n)&&!O1.hasOwnProperty(n)&&(i[n]=t[n]);var c,l,f,p,d=arguments.length-2;if(1==d)i.children=r;else if(1<d){for(var h=Array(d),y=0;y<d;y++)h[y]=arguments[y+2];Object.freeze&&Object.freeze(h),i.children=h}if(e&&e.defaultProps){var v=e.defaultProps;for(n in v)void 0===i[n]&&(i[n]=v[n])}function g(){b1||(b1=!0,M("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",l))}function m(){T1||(T1=!0,M("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",p))}return(o||s)&&(c="function"==typeof e?e.displayName||e.name||"Unknown":e,o&&(f=i,p=c,m.isReactWarning=!0,Object.defineProperty(f,"key",{get:m,configurable:!0})),s&&(r=i,l=c,g.isReactWarning=!0,Object.defineProperty(r,"ref",{get:g,configurable:!0}))),N1(e,o,s,a,u,r1.current,i)}function A1(e){return"object"==typeof e&&null!==e&&e.$$typeof===ME}var k1=".",x1=":",P1=!1,U1=/\/+/g;function M1(e){return(""+e).replace(U1,"$&/")}var D1=10,L1=[];function F1(e,t,r,n){var i;return L1.length?((i=L1.pop()).result=e,i.keyPrefix=t,i.func=r,i.context=n,i.count=0,i):{result:e,keyPrefix:t,func:r,context:n,count:0}}function j1(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,L1.length<D1&&L1.push(e)}function V1(e,t,r){return null==e?0:function e(t,r,n,i){var o,s=typeof t,a=!1;if(null===(t="undefined"!=s&&"boolean"!=s?t:null))a=!0;else switch(s){case"string":case"number":a=!0;break;case"object":switch(t.$$typeof){case ME:case DE:a=!0}}if(a)return n(i,t,""===r?k1+H1(t,0):r),1;var u=0,c=""===r?k1:r+x1;if(Array.isArray(t))for(var l=0;l<t.length;l++)u+=e(o=t[l],c+H1(o,l),n,i);else if("function"==typeof(r=e1(t))){r===t.entries&&(P1||l1("Using Maps as children is deprecated and will be removed in a future major release. Consider converting children to an array of keyed ReactElements instead."),P1=!0);for(var f,p=r.call(t),d=0;!(f=p.next()).done;)u+=e(o=f.value,c+H1(o,d++),n,i)}else if("object"==s)throw r="",r=" If you meant to render a collection of children, use an array instead."+s1.getStackAddendum(),s=""+t,Error("Objects are not valid as a React child (found: "+("[object Object]"==s?"object with keys {"+Object.keys(t).join(", ")+"}":s)+")."+r);return u}(e,"",t,r)}function H1(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(e=e.key,r={"=":"=0",":":"=2"},"$"+(""+e).replace(/[=:]/g,function(e){return r[e]})):t.toString(36);var r}function z1(e,t,r){var n=e.func,i=e.context;n.call(i,t,e.count++)}function B1(e,t,r){var n=e.result,i=e.keyPrefix,o=e.func,s=e.context,o=o.call(s,t,e.count++);Array.isArray(o)?G1(o,n,r,function(e){return e}):null!=o&&(A1(o)&&(e=i+(!(s=o).key||t&&t.key===o.key?"":M1(o.key)+"/")+r,o=N1(s.type,e,s.ref,s._self,s._source,s._owner,s.props)),n.push(o))}function G1(e,t,r,n,i){var o="",t=F1(t,o=null!=r?M1(r)+"/":o,n,i);V1(e,B1,t),j1(t)}function K1(e){return"string"==typeof e||"function"==typeof e||e===LE||e===zE||e===jE||e===FE||e===GE||e===KE||"object"==typeof e&&null!==e&&(e.$$typeof===$E||e.$$typeof===qE||e.$$typeof===VE||e.$$typeof===HE||e.$$typeof===BE||e.$$typeof===XE||e.$$typeof===WE||e.$$typeof===JE||e.$$typeof===YE)}function q1(){var e=t1.current;if(null===e)throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.");return e}function $1(){if(r1.current){var e=o1(r1.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}var Y1=!1,X1={};function W1(e,t){var r;e._store&&!e._store.validated&&null==e.key&&(e._store.validated=!0,t=t,(r=$1())||(t="string"==typeof t?t:t.displayName||t.name)&&(r="\n\nCheck the top-level render call using <"+t+">."),X1[t=r]||(X1[t]=!0,r="",e&&e._owner&&e._owner!==r1.current&&(r=" It was passed a child from "+o1(e._owner.type)+"."),u1(e),M('Each child in a list should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.',t,r),u1(null)))}function J1(e,t){if("object"==typeof e)if(Array.isArray(e))for(var r=0;r<e.length;r++){var n=e[r];A1(n)&&W1(n,t)}else if(A1(e))e._store&&(e._store.validated=!0);else if(e){var i=e1(e);if("function"==typeof i&&i!==e.entries)for(var o,s=i.call(e);!(o=s.next()).done;)A1(o.value)&&W1(o.value,t)}}function Q1(e){var t=e.type;if(null!=t&&"string"!=typeof t){var r,n=o1(t);if("function"==typeof t)r=t.propTypes;else{if("object"!=typeof t||t.$$typeof!==BE&&t.$$typeof!==qE)return;r=t.propTypes}r?(u1(e),UE(r,e.props,"prop",n,s1.getStackAddendum),u1(null)):void 0===t.PropTypes||Y1||(Y1=!0,M("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",n||"Unknown")),"function"!=typeof t.getDefaultProps||t.getDefaultProps.isReactClassApproved||M("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Z1(e,t,r){var n,i=K1(e),t=(i||(n="",(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(n+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),n+=(null!=(t=t)&&void 0!==(t=t.__source)?"\n\nCheck your code at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+".":"")||$1(),null===e?s="null":Array.isArray(e)?s="array":void 0!==e&&e.$$typeof===ME?(s="<"+(o1(e.type)||"Unknown")+" />",n=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,M("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,n)),C1.apply(this,arguments));if(null==t)return t;if(i)for(var o=2;o<arguments.length;o++)J1(arguments[o],e);if(e===LE){var s=t;u1(s);for(var a=Object.keys(s.props),u=0;u<a.length;u++){var c=a[u];if("children"!==c&&"key"!==c){M("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",c);break}}null!==s.ref&&M("Invalid attribute `ref` supplied to `React.Fragment`."),u1(null)}else Q1(t);return t}var eT=!1;try{var tT=Object.freeze({}),rT=new Map([[tT,null]]),nT=new Set([tT]);rT.set(0,0),nT.add(0)}catch(e){}function iT(e,t,r){for(var n=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n,i,o=PE({},e.props),s=e.key,a=e.ref,u=e._self,c=e._source,l=e._owner;if(null!=t)for(n in R1(t)&&(a=t.ref,l=r1.current),I1(t)&&(s=""+t.key),e.type&&e.type.defaultProps&&(i=e.type.defaultProps),t)_1.call(t,n)&&!O1.hasOwnProperty(n)&&(void 0===t[n]&&void 0!==i?o[n]=i[n]:o[n]=t[n]);var f=arguments.length-2;if(1==f)o.children=r;else if(1<f){for(var p=Array(f),d=0;d<f;d++)p[d]=arguments[d+2];o.children=p}return N1(e.type,s,a,u,c,l,o)}.apply(this,arguments),i=2;i<arguments.length;i++)J1(arguments[i],n.type);return Q1(n),n}function oT(e){var t=Z1.bind(null,e);return t.type=e,eT||(eT=!0,l1("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(t,"type",{enumerable:!1,get:function(){return l1("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t}C=Z1,O.Children={map:function(e,t,r){if(null==e)return e;var n=[];return G1(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;t=F1(null,null,t,r),V1(e,z1,t),j1(t)},count:function(e){return V1(e,function(){return null},null)},toArray:function(e){var t=[];return G1(e,t,null,function(e){return e}),t},only:function(e){if(A1(e))return e;throw Error("React.Children.only expected to receive a single React element child.")}},O.Component=v1,O.Fragment=LE,O.Profiler=jE,O.PureComponent=E1,O.StrictMode=FE,O.Suspense=GE,O.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=c1,O.cloneElement=iT,O.createContext=function(e,t){void 0===t?t=null:null!==t&&"function"!=typeof t&&M("createContext: Expected the optional second argument to be a function. Instead received: %s",t);var r={$$typeof:HE,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},n=!(r.Provider={$$typeof:VE,_context:r}),i=!1,t={$$typeof:HE,_context:r,_calculateChangedBits:r._calculateChangedBits};return Object.defineProperties(t,{Provider:{get:function(){return i||(i=!0,M("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),r.Provider},set:function(e){r.Provider=e}},_currentValue:{get:function(){return r._currentValue},set:function(e){r._currentValue=e}},_currentValue2:{get:function(){return r._currentValue2},set:function(e){r._currentValue2=e}},_threadCount:{get:function(){return r._threadCount},set:function(e){r._threadCount=e}},Consumer:{get:function(){return n||(n=!0,M("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),r.Consumer}}}),r.Consumer=t,r._currentRenderer=null,r._currentRenderer2=null,r},O.createElement=C,O.createFactory=oT,O.createRef=function(){var e={current:null};return Object.seal(e),e},O.forwardRef=function(e){return null!=e&&e.$$typeof===qE?M("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?M("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&M("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null==e||null==e.defaultProps&&null==e.propTypes||M("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"),{$$typeof:BE,render:e}},O.isValidElement=A1,O.lazy=function(e){var t,r,n={$$typeof:$E,_ctor:e,_status:-1,_result:null};return Object.defineProperties(n,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){M("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),t=e,Object.defineProperty(n,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return r},set:function(e){M("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),r=e,Object.defineProperty(n,"propTypes",{enumerable:!0})}}}),n},O.memo=function(e,t){return K1(e)||M("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e),{$$typeof:qE,type:e,compare:void 0===t?null:t}},O.useCallback=function(e,t){return q1().useCallback(e,t)},O.useContext=function(e,t){var r,n=q1();return void 0!==t&&M("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",t,"number"==typeof t&&Array.isArray(arguments[2])?"\n\nDid you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://fb.me/rules-of-hooks":""),void 0!==e._context&&((r=e._context).Consumer===e?M("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):r.Provider===e&&M("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")),n.useContext(e,t)},O.useDebugValue=function(e,t){return q1().useDebugValue(e,t)},O.useEffect=function(e,t){return q1().useEffect(e,t)},O.useImperativeHandle=function(e,t,r){return q1().useImperativeHandle(e,t,r)},O.useLayoutEffect=function(e,t){return q1().useLayoutEffect(e,t)},O.useMemo=function(e,t){return q1().useMemo(e,t)},O.useReducer=function(e,t,r){return q1().useReducer(e,t,r)},O.useRef=function(e){return q1().useRef(e)},O.useState=function(e){return q1().useState(e)},O.version="16.14.0"}"production"===production?U.exports=p:U.exports=O;var sT=U.exports,aT=U.exports.createContext({hackle:void 0,userVersion:0,initialized:!1}),v=aT.Consumer,uT=aT.Provider;var cT=l.Logger.log;function lT(e,t){e=fT(e,t=void 0===t?"A":t);return{isLoading:e.isLoading,variation:e.decision.variation}}function fT(e,t){void 0===t&&(t="A");var r=U.exports.useContext(aT),n=r.hackle,i=r.userVersion,o=r.initialized,s=U.exports.useCallback(function(){return o?(null==n?void 0:n.variationDetail(e))||l.Decision.of(t,l.DecisionReason.EXCEPTION):l.Decision.of(t,l.DecisionReason.SDK_NOT_READY)},[t,e,n,o]),r=Vw(U.exports.useState(function(){return n?s():(cT.error("HackleClient is not existed"),l.Decision.of(t,l.DecisionReason.EXCEPTION))}),2),a=r[0],r=r[1],i={key:e,userVersion:i,initialized:o},u=Vw(U.exports.useState(i),2),c=u[0],u=u[1];return hT(c,i)||(u(i),r(s())),{isLoading:!o,decision:a}}function pT(e){e=dT(e);return{isLoading:e.isLoading,isOn:e.decision.isOn}}function dT(e){var t=U.exports.useContext(aT),r=t.hackle,n=t.userVersion,i=t.initialized,o=U.exports.useCallback(function(){return i?(null==r?void 0:r.featureFlagDetail(e))||l.FeatureFlagDecision.off(l.DecisionReason.EXCEPTION):l.FeatureFlagDecision.off(l.DecisionReason.SDK_NOT_READY)},[e,r,i]),t=Vw(U.exports.useState(function(){return r?o():(cT.error("HackleClient is not existed"),l.FeatureFlagDecision.off(l.DecisionReason.EXCEPTION))}),2),s=t[0],t=t[1],n={key:e,userVersion:n,initialized:i},a=Vw(U.exports.useState(n),2),u=a[0],a=a[1];return hT(u,n)||(a(n),t(o())),{isLoading:!i,decision:s}}function hT(e,t){return e.initialized===t.initialized&&e.key===t.key&&e.userVersion===t.userVersion}function yT(e){var t,r=e.experimentKey,e=e.children,n=(r=lT(r)).isLoading,i=r.variation;return n?null:e&&"function"==typeof e?e(i):(U.exports.Children.forEach(e,function(e){U.exports.isValidElement(e)&&(e.props.variation?i===e.props.variation&&(t=e):e.props.default&&(t=e))}),t?U.exports.cloneElement(t,{variation:i}):null)}function vT(e){return e.variation,e=e.children,U.exports.createElement(U.exports.Fragment,null,e)}function gT(e){var t=(r=pT(e.featureKey)).isLoading,r=r.isOn;return t?null:sT.createElement(sT.Fragment,null,e.children(r))}l.HackleContext=aT,l.HackleContextConsumer=v,l.HackleContextProvider=uT,l.HackleExperiment=yT,l.HackleFeature=gT,l.HackleProvider=function(e){var t=e.hackleClient,r=e.user,n=void 0===(i=e.timeout)?3e3:i,i=void 0!==(i=e.supportSSR)&&i,e=e.children,o=Vw(U.exports.useState({hackle:t,initialized:!1,userVersion:0}),2),s=o[0],a=o[1];return U.exports.useEffect(function(){null!=r&&t.setUser(r)},[r]),U.exports.useEffect(function(){function e(){a(function(e){return jw(jw({},e),{userVersion:e.userVersion+1})})}return t.on("user-updated",e),function(){t.off("user-updated",e)}},[t]),U.exports.useEffect(function(){t.onInitialized({timeout:n}).then(function(){a(function(e){return jw(jw({},e),{initialized:!0})})},function(){a(function(e){return jw(jw({},e),{initialized:!0})})}).catch(function(){a(function(e){return jw(jw({},e),{initialized:!0})})})},[t]),i||s.initialized?sT.createElement(uT,{value:s},e):null},l.HackleVariation=vT,l.createInstance=function(e,t){return new qw(e,t)},l.useFeature=function(e){var t=(n=U.exports.useContext(aT)).hackle,r=n.userVersion,n=n.initialized,i=U.exports.useCallback(function(){return(null==t?void 0:t.isFeatureOn(e))||!1},[e,t,n]),o=(s=Vw(U.exports.useState(function(){return t?i():("undefined"!=typeof window&&cT.error("HackleClient is not existed"),!1)}),2))[0],s=s[1],r={key:e,userVersion:r,initialized:n},a=(n=Vw(U.exports.useState(r),2))[0],n=n[1];return hT(a,r)||(n(r),s(i())),o},l.useFeatureFlagDetail=function(e){var t=(n=U.exports.useContext(aT)).hackle,r=n.userVersion,n=n.initialized,i=U.exports.useCallback(function(){return(null==t?void 0:t.featureFlagDetail(e))||l.FeatureFlagDecision.off(l.DecisionReason.EXCEPTION)},[e,t,n]),o=(s=Vw(U.exports.useState(function(){return t?i():("undefined"!=typeof window&&cT.error("HackleClient is not existed"),l.FeatureFlagDecision.off(l.DecisionReason.EXCEPTION))}),2))[0],s=s[1],r={key:e,userVersion:r,initialized:n},a=(n=Vw(U.exports.useState(r),2))[0],n=n[1];return hT(a,r)||(n(r),s(i())),o},l.useLoadableFeature=pT,l.useLoadableFeatureDetail=dT,l.useLoadableRemoteConfig=function(){var e=(o=U.exports.useContext(aT)).hackle,t=o.userVersion,r=o.initialized,n=U.exports.useCallback(function(){return r&&(null==e?void 0:e.remoteConfig())||new l.EmptyHackleRemoteConfig},[e,r]),i=(o=Vw(U.exports.useState(function(){return e||cT.error("HackleClient is not existed"),n()}),2))[0],o=o[1],t={userVersion:t,initialized:r},s=(a=Vw(U.exports.useState(t),2))[0],a=a[1];return hT(s,t)||(a(t),o(n())),{isLoading:!r,remoteConfig:i}},l.useLoadableVariation=lT,l.useLoadableVariationDetail=fT,l.useRemoteConfig=function(){var e=(r=U.exports.useContext(aT)).hackle,t=r.userVersion,r=r.initialized,n=U.exports.useCallback(function(){return(null==e?void 0:e.remoteConfig())||new l.EmptyHackleRemoteConfig},[e,r]),i=(o=Vw(U.exports.useState(function(){return e||cT.error("HackleClient is not existed"),n()}),2))[0],o=o[1],t={userVersion:t,initialized:r},s=(r=Vw(U.exports.useState(t),2))[0],r=r[1];return hT(s,t)||(r(t),o(n())),i},l.useTrack=function(){var t=U.exports.useContext(aT).hackle;return t?function(e){return null==t?void 0:t.track(e)}:(cT.error("HackleClient is not existed"),function(){})},l.useVariation=function(e,t){void 0===t&&(t="A");var r=(a=U.exports.useContext(aT)).hackle,n=a.userVersion,i=a.initialized,o=U.exports.useCallback(function(){return i&&(null==r?void 0:r.variation(e))||t},[t,e,r,i]),s=(a=Vw(U.exports.useState(function(){return r?o():("undefined"!=typeof window&&cT.error("HackleClient is not existed"),t)}),2))[0],a=a[1],n={key:e,userVersion:n,initialized:i},u=(c=Vw(U.exports.useState(n),2))[0],c=c[1];return hT(u,n)||(c(n),a(o())),s},l.useVariationDetail=function(e,t){void 0===t&&(t="A");var r=(i=U.exports.useContext(aT)).hackle,n=i.userVersion,i=i.initialized,o=U.exports.useCallback(function(){return(null==r?void 0:r.variationDetail(e))||l.Decision.of(t,l.DecisionReason.EXCEPTION)},[t,e,r,i]),s=(a=Vw(U.exports.useState(function(){return r?o():("undefined"!=typeof window&&cT.error("HackleClient is not existed"),l.Decision.of(t,l.DecisionReason.EXCEPTION))}),2))[0],a=a[1],n={key:e,userVersion:n,initialized:i},u=(i=Vw(U.exports.useState(n),2))[0],i=i[1];return hT(u,n)||(i(n),a(o())),s},Object.defineProperty(l,"__esModule",{value:!0})});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hackler/react-sdk",
|
|
3
|
-
"version": "11.13.
|
|
3
|
+
"version": "11.13.2",
|
|
4
4
|
"description": "React SDK for Hackle",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Hackle",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"url": "https://github.com/hackle-io/hackle-javascript-sdk/issues"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@hackler/javascript-sdk": "11.13.
|
|
42
|
+
"@hackler/javascript-sdk": "11.13.2"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"react": ">=16.8.0"
|