@hackler/react-sdk 11.6.0 → 11.7.0
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/config.d.ts +1 -1
- 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/config.d.ts
CHANGED
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(f){"use strict";var U,e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t={},j=(f.setUserId=void 0,f.removeUserId=void 0,f.getUserId=void 0,f.Version=void 0,f.Variation=void 0,f.TargetingType=void 0,f.TargetRule=void 0,f.TargetMatch=void 0,f.TargetKey=void 0,f.TargetCondition=void 0,f.TargetAction=void 0,f.Target=void 0,f.TARGET_KEY_TYPES=void 0,f.TARGET_ACTION_TYPES=void 0,f.Slot=void 0,f.Segment=void 0,f.SEGMENT_TYPES=void 0,f.RemoteConfigTargetRule=void 0,f.RemoteConfigParameterValue=void 0,f.RemoteConfigParameter=void 0,f.RemoteConfigDecision=void 0,f.ParameterConfiguration=void 0,f.MetaVersion=void 0,f.MATCH_VALUE_TYPES=void 0,f.MATCH_TYPES=void 0,f.MATCH_OPERATORS=void 0,f.Logger=void 0,f.IdentifiersBuilder=void 0,f.IdentifierType=void 0,f.FeatureFlagDecision=void 0,f.Experiment=void 0,f.EventType=void 0,f.EmptyParameterConfig=void 0,f.EmptyHackleRemoteConfig=void 0,f.DecisionReason=void 0,f.Decision=void 0,f.CoreVersion=void 0,f.ContainerGroup=void 0,f.Container=void 0,f.Bucket=void 0,Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){return(j=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 L(e,t){function r(){this.constructor=e}j(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var F=function(){return(F=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function V(n,o){var i,a,s,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[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(i)throw new TypeError("Generator is already executing.");for(;u;)try{if(i=1,a&&(s=2&t[0]?a.return:t[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,t[1])).done)return s;switch(a=0,(t=s?[2&t[0],s.value]:t)[0]){case 0:case 1:s=t;break;case 4:return u.label++,{value:t[1],done:!1};case 5:u.label++,a=t[1],t=[0];continue;case 7:t=u.ops.pop(),u.trys.pop();continue;default:if(!((s=0<(s=u.trys).length&&s[s.length-1])||6!==t[0]&&2!==t[0])){u=0;continue}if(3===t[0]&&(!s||t[1]>s[0]&&t[1]<s[3])){u.label=t[1];break}if(6===t[0]&&u.label<s[1]){u.label=s[1],s=t;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(t);break}s[2]&&u.ops.pop(),u.trys.pop();continue}t=o.call(n,u)}catch(e){t=[6,e],a=0}finally{i=s=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}}q.setLogLevel=function(e){this.logLevel=e=void 0===e?3:e},q._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)K.log(e,r,t.message,t);else try{K.log(e,r,t)}catch(e){}},q.logLevel=3,q.log={error:function(e){1<=q.logLevel&&q._log("ERROR",e)},warn:function(e){2<=q.logLevel&&q._log("WARN",e)},info:function(e){3<=q.logLevel&&q._log("INFO",e)},debug:function(e){4<=q.logLevel&&q._log("DEBUG",e)}};var H=q,K=(B.log=function(e,t,r,n){try{console.log("%c[".concat(e,"] Hackle: ").concat(r),"color: ".concat(t))}catch(e){}},B),z=[0,8,16,32,64,128,256,512],G=H.log;function B(){}function q(){}function $(e,t){for(var r in t)t.hasOwnProperty(r)&&e.setRequestHeader(r,t[r])}function X(e,t,r,n){this.id=e,this.key=t,this.isDropped=r,this.parameterConfigurationId=n}function Y(e,t,r){this.seed=e,this.slotSize=t,this.slots=r}function W(e,t){this.id=e,this.key=t}function J(e){this.conditions=e}function Z(e,t){this.key=e,this.match=t}function Q(e,t){this.type=e,this.name=t}function ee(e,t,r,n){this.type=e,this.operator=t,this.valueType=r,this.values=n}function te(e,t,r){this.type=e,this.variationId=t,this.bucketId=r}function re(e,t){this.target=e,this.action=t}function ne(e,t,r,n){this.id=e,this.key=t,this.type=r,this.targets=n}function oe(e,t){this.id=e,this.experiments=t}function ie(e,t,r,n,o,i){this.id=e,this.key=t,this.type=r,this.identifierType=n,this.targetRules=o,this.defaultValue=i}function ae(e,t,r,n,o){this.key=e,this.name=t,this.target=r,this.bucketId=n,this.value=o}function se(e,t){this.id=e,this.rawValue=t}var ue={getRequest:function(n,o){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"),$(r,o),r.send()})}},postRequest:function(e,t,r,n){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(o)},o.setRequestHeader("content-type","application/json"),$(o,r),o.send(t)},sendBeacon:function(e,t,r,n){var o=!1;(o="undefined"!=typeof window?window&&window.navigator&&window.navigator.sendBeacon&&!0:o)?(o=JSON.stringify(t),(t=new URLSearchParams).append("sdkName",r["X-HACKLE-SDK-NAME"]),t.append("sdkVersion",r["X-HACKLE-SDK-VERSION"]),t.append("data",o),window.navigator.sendBeacon(e,t)):G.error("Does not support sendBeacon"),n()}},s=(xe.isNotNullOrUndefined=function(e){return null!=e},xe.isNullOrUndefined=function(e){return null==e},xe.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},xe),ce=H.log,le=(Ie.of=function(e,t){return new Ie(e,t)},Ie),fe=(ke.of=function(e,t,r){return new ke(e,t,r=void 0===r?new he:r)},ke.prototype.get=function(e,t){switch(typeof t){case"string":case"number":case"boolean":return this.config.get(e,t);default:return t}},ke),pe=(Se.on=function(e,t){return new Se(!0,e,t=void 0===t?new he:t)},Se.off=function(e,t){return new Se(!1,e,t=void 0===t?new he:t)},Se.prototype.get=function(e,t){switch(typeof t){case"string":case"number":case"boolean":return this.config.get(e,t);default:return t}},Se),de=(Ae.prototype.get=function(e,t){return t},Ae),he=(Ne.prototype.get=function(e,t){return t},Ne),u=(r.SDK_NOT_READY="SDK_NOT_READY",r.EXCEPTION="EXCEPTION",r.INVALID_INPUT="INVALID_INPUT",r.EXPERIMENT_NOT_FOUND="EXPERIMENT_NOT_FOUND",r.EXPERIMENT_DRAFT="EXPERIMENT_DRAFT",r.EXPERIMENT_PAUSED="EXPERIMENT_PAUSED",r.EXPERIMENT_COMPLETED="EXPERIMENT_COMPLETED",r.OVERRIDDEN="OVERRIDDEN",r.TRAFFIC_NOT_ALLOCATED="TRAFFIC_NOT_ALLOCATED",r.NOT_IN_MUTUAL_EXCLUSION_EXPERIMENT="NOT_IN_MUTUAL_EXCLUSION_EXPERIMENT",r.IDENTIFIER_NOT_FOUND="IDENTIFIER_NOT_FOUND",r.VARIATION_DROPPED="VARIATION_DROPPED",r.TRAFFIC_ALLOCATED="TRAFFIC_ALLOCATED",r.NOT_IN_EXPERIMENT_TARGET="NOT_IN_EXPERIMENT_TARGET",r.FEATURE_FLAG_NOT_FOUND="FEATURE_FLAG_NOT_FOUND",r.FEATURE_FLAG_INACTIVE="FEATURE_FLAG_INACTIVE",r.INDIVIDUAL_TARGET_MATCH="INDIVIDUAL_TARGET_MATCH",r.TARGET_RULE_MATCH="TARGET_RULE_MATCH",r.DEFAULT_RULE="DEFAULT_RULE",r.REMOTE_CONFIG_PARAMETER_NOT_FOUND="REMOTE_CONFIG_PARAMETER_NOT_FOUND",r.TYPE_MISMATCH="TYPE_MISMATCH",r),ye=(Ce.prototype._winnerVariationOrNull=function(){if(this._winnerVariationId)return this._getVariationByIdOrNull(this._winnerVariationId)},Ce.prototype._getVariationByIdOrNull=function(t){return this.variations.find(function(e){return e.id===t})},Ce.prototype._getVariationByKeyOrNull=function(t){return this.variations.find(function(e){return e.key===t})},Ce),ve=(_e.prototype.contains=function(e){return this.startInclusive<=e&&e<this.endExclusive},_e),me=(Oe.ID="$id",Oe.USER="$userId",Oe.DEVICE="$deviceId",Oe),ge=(Re.prototype.addIdentifiers=function(e){for(var t in e)this.add(t,e[t]);return this},Re.prototype.add=function(e,t){return t&&this._isValid(e,t)?this.identifiers[e]=t:ce.warn("Invalid user identifier [type=".concat(e,", value=").concat(t,"]")),this},Re.prototype._isValid=function(e,t){return!(!e||"string"!=typeof e||128<e.length||!t||"string"!=typeof t||512<t.length)},Re.prototype.build=function(){return this.identifiers},Re),we=(Te.prototype.getGroupOrNull=function(t){return this.groups.find(function(e){return e.id===t})},Te),Ee=(be.prototype.get=function(e,t){e=this.parameters.get(e);return!s.isNullOrUndefined(e)&&(s.isNullOrUndefined(t)||typeof e==typeof t)?e:t},be);function be(e,t){this.id=e,this.parameters=t}function Te(e,t,r){this.id=e,this.bucketId=t,this.groups=r}function Re(){this.identifiers={}}function Oe(){}function _e(e,t,r){this.startInclusive=e,this.endExclusive=t,this.variationId=r}function Ce(e,t,r,n,o,i,a,s,u,c,l,f,p,d){this.id=e,this.key=t,this.type=r,this.identifierType=n,this.status=o,this.version=i,this.variations=a,this.userOverrides=s,this.segmentOverrides=u,this.targetAudiences=c,this.targetRules=l,this.defaultRule=f,this.containerId=p,this._winnerVariationId=d}function r(){}function Ne(){}function Ae(){}function Se(e,t,r){this.isOn=e,this.reason=t,this.config=r}function ke(e,t,r){this.variation=e,this.reason=t,this.config=r}function Ie(e,t){this.value=e,this.reason=t}function xe(){}ft.tryParse=function(e){var t,r,n,o,e=ft.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,o=e[4],e=e[5],new ft(new je(parseInt(t,10),parseInt(r,10),parseInt(n,10)),Le.parse(o),Le.parse(e))},ft.prototype.compareTo=function(e){return this.coreVersion.compareTo(e.coreVersion)||this.prerelease.compareTo(e.prerelease)},ft.prototype.isEqualTo=function(e){return 0===this.compareTo(e)},ft.prototype.isGreaterThan=function(e){return 0<this.compareTo(e)},ft.prototype.isGreaterThanOrEqualTo=function(e){return 0<=this.compareTo(e)},ft.prototype.isLessThan=function(e){return this.compareTo(e)<0},ft.prototype.isLessThanOrEqualTo=function(e){return this.compareTo(e)<=0},ft.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 Pe,De,Me,Ue=ft,je=(lt.prototype.compareTo=function(e){return this.major-e.major||this.minor-e.minor||this.patch-e.patch},lt),Le=(ct.parse=function(e){return e?new ct(e.split(".")):ct.EMPTY},ct.prototype.isEmpty=function(){return 0===this.identifiers.length},ct.prototype.isNotEmpty=function(){return!this.isEmpty()},ct.prototype.compareTo=function(e){return this.isEmpty()&&e.isEmpty()?0:this.isEmpty()&&e.isNotEmpty()?1:this.isNotEmpty()&&e.isEmpty()?-1:this.compareIdentifiers(e)},ct.prototype.compareIdentifiers=function(e){for(var t=Math.min(this.identifiers.length,e.identifiers.length),r=0;r<t;r++){var n=ct.compareIdentifiers(this.identifiers[r],e.identifiers[r]);if(0!==n)return n}return this.identifiers.length-e.identifiers.length},ct.compareIdentifiers=function(e,t){return ct.numericIdentifierRegExp.test(e)&&ct.numericIdentifierRegExp.test(t)?+e-+t:e===t?0:e<t?-1:1},ct.EMPTY=new ct([]),ct.numericIdentifierRegExp=/^(0|[1-9]\d*)$/,ct),Fe=["MATCH","NOT_MATCH"],Ve=["STRING","NUMBER","BOOLEAN","VERSION","JSON"],He=["IN","CONTAINS","STARTS_WITH","ENDS_WITH","GT","GTE","LT","LTE"],Ke=["VARIATION","BUCKET"],ze=["USER_ID","USER_PROPERTY","HACKLE_PROPERTY","SEGMENT"],Ge=["USER_ID","USER_PROPERTY"],Be=(ut.prototype.supports=function(e){return this.supportedKeyTypes.includes(e)},ut.IDENTIFIER=new ut("SEGMENT"),ut.PROPERTY=new ut("SEGMENT","USER_PROPERTY","HACKLE_PROPERTY"),ut.SEGMENT=new ut("USER_ID","USER_PROPERTY","HACKLE_PROPERTY"),ut),qe=H.log,$e=(st.prototype.get=function(e,t){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 t}},st.prototype._get=function(e,t,r){try{return s.isNullOrUndefined(this.hackleUser)?le.of(r,u.INVALID_INPUT):s.isNullOrUndefined(e)?(qe.error("parameterKey must not be empty"),le.of(r,u.INVALID_INPUT)):this.hackleInternalClient._remoteConfig(e,this.hackleUser,t,r)}catch(t){return qe.error("Unexpected exception while deciding remote config parameter[".concat(e,"]. Returning default value. : ").concat(t)),le.of(r,u.EXCEPTION)}},st),Xe=H.log,Ye=(at.prototype.variation=function(e,t,r){return this.variationDetail(e,t,r).variation},at.prototype.variationDetail=function(e,t,r){r=r||"A";try{var n=this.hackleUserResolver.resolveOrNull(t);return n?this.hackleInternalClient._experiment(e,n,r):fe.of(r,u.INVALID_INPUT)}catch(t){return Xe.error("Unexpected exception while deciding variation for experiment[".concat(e,"]. Returning default variation[").concat(r,"] : ").concat(t)),fe.of(r,u.EXCEPTION)}},at.prototype.isFeatureOn=function(e,t){return this.featureFlagDetail(e,t).isOn},at.prototype.featureFlagDetail=function(e,t){try{var r=this.hackleUserResolver.resolveOrNull(t);return r?this.hackleInternalClient._featureFlag(e,r):pe.off(u.INVALID_INPUT)}catch(t){return Xe.error('"Unexpected exception while deciding feature flag['.concat(e,"]. Returning default value[false] : ").concat(t)),pe.off(u.EXCEPTION)}},at.prototype.track=function(e,t){Xe.debug("track event : ".concat(JSON.stringify(e)));e=this._convertEvent(e),t=this.hackleUserResolver.resolveOrNull(t);t&&this.hackleInternalClient._track(e,t)},at.prototype.trackPageView=function(e){Xe.debug("tracking page view");e=this.hackleUserResolver.resolveOrNull(null==e?void 0:e.user);e&&this.hackleInternalClient._track({key:"$page_view"},e)},at.prototype.remoteConfig=function(e){e=this.hackleUserResolver.resolveOrNull(e);return s.isNullOrUndefined(e)?new de:new $e(this.hackleInternalClient,e)},at.prototype.onReady=function(e,t){this.hackleInternalClient._onReady(e,t=void 0===t?3e3:t)},at.prototype.onInitialized=function(e){return this.hackleInternalClient._onInitialized({timeout:null==e?void 0:e.timeout})},at.prototype.close=function(){Xe.debug("Hackle Client is closing"),this.hackleInternalClient._close()},at.prototype._convertEvent=function(e){return"string"==typeof e?{key:e}:e},at),We=(it.filteredProperties=function(r){var n=this;return Object.keys(r).filter(function(e){return n.validProperty(e,r[e])}).reduce(function(e,t){return F(F({},e),((e={})[t]=n.filteredPropertiesValue(t,r[t]),e))},{})},it.filteredPropertiesValue=function(e,t){return!e.startsWith(it.SYSTEM_PROPERTY_KEY_PREFIX)&&"string"==typeof t&&1024<t.length?t.slice(0,1024):t},it.validProperty=function(e,t){return!!e&&"string"==typeof e&&!(128<e.length)&&("string"==typeof t||"boolean"==typeof t||"number"==typeof t&&!isNaN(t)&&isFinite(t))},it.SYSTEM_PROPERTY_KEY_PREFIX="$",it),Je=(ot.exposure=function(e,t,r){return new Ze((new Date).getTime(),t,e,r.variationId,r.variationKey,r.reason,this.exposureProperties(r))},ot.exposureProperties=function(e){return s.isNotNullOrUndefined(e.config)?{$parameterConfigurationId:e.config.id}:{}},ot.track=function(e,t,r){return new Qe((new Date).getTime(),r,e,t)},ot.remoteConfig=function(e,t,r){return new et((new Date).getTime(),t,e,r)},ot.isExposure=function(e){return void 0!==e.experiment},ot.isTrack=function(e){return void 0!==e.eventType},ot.isRemoteConfig=function(e){return void 0!==e.remoteConfigParameter},ot),Ze=(L(nt,Me=Je),nt.prototype.toDto=function(){return{timestamp:this.timestamp,userId:this.user.identifiers[me.ID],identifiers:this.user.identifiers,userProperties:We.filteredProperties(this.user.properties),hackleProperties:We.filteredProperties(this.user.hackleProperties),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}},nt),Qe=(L(rt,De=Je),rt.prototype.toDto=function(){return{timestamp:this.timestamp,userId:this.user.identifiers[me.ID],identifiers:this.user.identifiers,userProperties:We.filteredProperties(this.user.properties),hackleProperties:We.filteredProperties(this.user.hackleProperties),eventTypeId:this.eventType.id,eventTypeKey:this.eventType.key,value:this.event.value||0,properties:We.filteredProperties(this.event.properties||{})}},rt),et=(L(tt,Pe=Je),tt.prototype.toDto=function(){return{timestamp:this.timestamp,userId:this.user.identifiers[me.ID],identifiers:this.user.identifiers,userProperties:We.filteredProperties(this.user.properties),hackleProperties:We.filteredProperties(this.user.hackleProperties),parameterId:this.remoteConfigParameter.id,parameterKey:this.remoteConfigParameter.key,parameterType:this.remoteConfigParameter.type,valueId:this.evaluation.valueId,decisionReason:this.evaluation.reason.toString(),properties:We.filteredProperties(this.evaluation.properties)}},tt);function tt(e,t,r,n){e=Pe.call(this,e,t)||this;return e.remoteConfigParameter=r,e.evaluation=n,e}function rt(e,t,r,n){e=De.call(this,e,t)||this;return e.eventType=r,e.event=n,e}function nt(e,t,r,n,o,i,a){e=Me.call(this,e,t)||this;return e.experiment=r,e.variationId=n,e.variationKey=o,e.decisionReason=i,e.properties=a,e}function ot(e,t){this.timestamp=e,this.user=t}function it(){}function at(e,t){this.hackleInternalClient=e,this.hackleUserResolver=t}function st(e,t){this.hackleInternalClient=e,this.hackleUser=t}function ut(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.supportedKeyTypes=e}function ct(e){this.identifiers=e}function lt(e,t,r){this.major=e,this.minor=t,this.patch=r}function ft(e,t,r){this.coreVersion=e,this.prerelease=t,this.build=r}function pt(e){var t=new Array,r=new Array,n=new Array;return e.forEach(function(e){Je.isExposure(e)?t.push(e.toDto()):Je.isTrack(e)?r.push(e.toDto()):Je.isRemoteConfig(e)&&n.push(e.toDto())}),{exposureEvents:t,trackEvents:r,remoteConfigEvents:n}}Ct.prototype.dispatch=function(e,t){var r={},e=(r["X-HACKLE-SDK-KEY"]=this.sdkKey,r["X-HACKLE-SDK-NAME"]=this.headers["X-HACKLE-SDK-NAME"],r["X-HACKLE-SDK-VERSION"]=this.headers["X-HACKLE-SDK-VERSION"],r["X-HACKLE-SDK-TIME"]=(new Date).getTime().toString(),pt(e));this.httpRequest.postRequest(this.dispatchUrl,e,r,t)},Ct.prototype.dispatchXhrOrBeacon=function(e,t){var r,n;this.useBeacon?((r={})["X-HACKLE-SDK-KEY"]=this.sdkKey,r["X-HACKLE-SDK-NAME"]=this.headers["X-HACKLE-SDK-NAME"],r["X-HACKLE-SDK-VERSION"]=this.headers["X-HACKLE-SDK-VERSION"],r["X-HACKLE-SDK-TIME"]=(new Date).getTime().toString(),n=pt(e),this.httpRequest.sendBeacon(this.beaconDispatchUrl,n,r,t)):this.dispatch(e,t)};var dt,ht=Ct,l=(_t.mapNotNullOrUndefined=function(e,t){for(var r=Array(),n=0,o=e;n<o.length;n++){var i=t(o[n]);s.isNotNullOrUndefined(i)&&r.push(i)}return r},_t.associateTo=function(e,t,r){for(var n=0,o=e;n<o.length;n++){var i=r(o[n]);t.set(i[0],i[1])}return t},_t.associate=function(e,t){return this.associateTo(e,new Map,t)},_t.associateBy=function(e,t){return this.associate(e,function(e){return[t(e),e]})},_t),yt=H.log,vt=(y.prototype.getExperimentOrNull=function(e){return this.experiments.get(e)},y.prototype.getFeatureFlagOrNull=function(e){return this.featureFlags.get(e)},y.prototype.getBucketOrNull=function(e){return this.buckets.get(e)},y.prototype.getEventTypeOrNull=function(e){return this.eventTypes.get(e)},y.prototype.getSegmentOrNull=function(e){return this.segments.get(e)},y.prototype.getContainerOrNull=function(e){return this.containers.get(e)},y.prototype.getParameterConfigurationOrNull=function(e){return this.parameterConfigurations.get(e)},y.prototype.getRemoteConfigParameterOrNull=function(e){return this.remoteConfigParameters.get(e)},y.from=function(e){var t=this,r=l.associate(e.buckets,function(e){return[e.id,t.toBucket(e)]});return new y(l.associateBy(l.mapNotNullOrUndefined(e.experiments,function(e){return t.toExperimentOrNull("AB_TEST",e)}),function(e){return e.key}),l.associateBy(l.mapNotNullOrUndefined(e.featureFlags,function(e){return t.toExperimentOrNull("FEATURE_FLAG",e)}),function(e){return e.key}),r,l.associate(e.events,function(e){return[e.key,new W(e.id,e.key)]}),l.associateBy(l.mapNotNullOrUndefined(e.segments,function(e){return t.toSegmentOrNull(e)}),function(e){return e.key}),l.associate(e.containers,function(e){return[e.id,t.toContainer(e)]}),l.associate(e.parameterConfigurations,function(e){return[e.id,t.toParameterConfiguration(e)]}),l.associateBy(l.mapNotNullOrUndefined(e.remoteConfigParameters,function(e){return t.toRemoteConfigParameterOrNull(e)}),function(e){return e.key}))},y.toBucket=function(e){return new Y(e.seed,e.slotSize,e.slots.map(function(e){var t=e.startInclusive,r=e.endExclusive,e=e.variationId;return new ve(t,r,e)}))},y.toExperimentOrNull=function(e,t){var r=this,n=this.experimentStatusOrNull(t.execution.status),o=t.variations.map(function(e){return new X(e.id,e.key,"DROPPED"===e.status,e.parameterConfigurationId)}),i=l.associate(t.execution.userOverrides,function(e){return[e.userId,e.variationId]}),a=l.mapNotNullOrUndefined(t.execution.segmentOverrides,function(e){return r.toTargetRuleOrNull(e,Be.IDENTIFIER)}),s=l.mapNotNullOrUndefined(t.execution.targetAudiences,function(e){return r.toTargetOrNull(e,Be.PROPERTY)}),u=l.mapNotNullOrUndefined(t.execution.targetRules,function(e){return r.toTargetRuleOrNull(e,Be.PROPERTY)}),c=this.toTargetActionOrNull(t.execution.defaultRule);return n&&c&&new ye(t.id,t.key,e,t.identifierType,n,t.version,o,i,a,s,u,c,t.containerId,t.winnerVariationId)},y.experimentStatusOrNull=function(e){switch(e){case"READY":return"DRAFT";case"RUNNING":return"RUNNING";case"PAUSED":return"PAUSED";case"STOPPED":return"COMPLETED";default:return void yt.debug("Unsupported status [".concat(e,"]"))}},y.toTargetRuleOrNull=function(e,t){t=this.toTargetOrNull(e.target,t),e=this.toTargetActionOrNull(e.action);return t&&e&&new re(t,e)},y.toTargetActionOrNull=function(e){var t=this.parseOrNull(Ke,e.type);return t&&new te(t,e.variationId,e.bucketId)},y.toTargetOrNull=function(e,t){var r=this,e=l.mapNotNullOrUndefined(e.conditions,function(e){return r.toConditionOrNull(e,t)});return new J(e)},y.toConditionOrNull=function(e,t){var r=this.toTargetKeyOrNull(e.key);if(r&&t.supports(r.type))return(t=this.toTargetMatchOrNull(e.match))&&new Z(r,t)},y.toTargetKeyOrNull=function(e){var t=this.parseOrNull(ze,e.type);return t&&new Q(t,e.name)},y.toTargetMatchOrNull=function(e){var t=this.parseOrNull(Fe,e.type),r=this.parseOrNull(He,e.operator),n=this.parseOrNull(Ve,e.valueType);return t&&r&&n&&new ee(t,r,n,e.values)},y.toSegmentOrNull=function(e){var t=this,r=this.parseOrNull(Ge,e.type);return r&&new ne(e.id,e.key,r,l.mapNotNullOrUndefined(e.targets,function(e){return t.toTargetOrNull(e,Be.SEGMENT)}))},y.toContainer=function(e){var t=this;return new we(e.id,e.bucketId,e.groups.map(function(e){return t.toContainerGroup(e)}))},y.toContainerGroup=function(e){return new oe(e.id,e.experiments)},y.toParameterConfiguration=function(e){return new Ee(e.id,l.associate(e.parameters,function(e){return[e.key,e.value]}))},y.toRemoteConfigParameterOrNull=function(e){var t=this,r=this.parseOrNull(Ve,e.type),n=l.mapNotNullOrUndefined(e.targetRules,function(e){return t.toRemoteConfigTargetRuleOrNull(e,Be.PROPERTY)}),o=this.toRemoteConfigParameterValueOrNull(e.defaultValue);return r&&new ie(e.id,e.key,r,e.identifierType,n,o)},y.toRemoteConfigTargetRuleOrNull=function(e,t){t=this.toTargetOrNull(e.target,t);return t&&new ae(e.key,e.name,t,e.bucketId,this.toRemoteConfigParameterValueOrNull(e.value))},y.toRemoteConfigParameterValueOrNull=function(e){return new se(e.id,e.value)},y.parseOrNull=function(e,t){e=e.find(function(e){return e===t});return e||yt.debug("Unsupported type [".concat(t,"]. Please use the latest version of sdk.")),e},y),mt=(Ot.prototype.onReady=function(){return this.readyPromise},Ot.prototype.start=function(){this.isStarted||(this.isStarted=!0,this.errorRetryController.reset(),this.fetch())},Ot.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()},Ot.prototype.get=function(){return this.workspace},Ot.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)},Ot.prototype.fetch=function(){var e,t=this;(e={})["X-HACKLE-SDK-KEY"]=this.sdkKey,e["X-HACKLE-SDK-TIME"]=(new Date).getTime().toString(),e["X-HACKLE-SDK-NAME"]=this.headers["X-HACKLE-SDK-NAME"],e["X-HACKLE-SDK-VERSION"]=this.headers["X-HACKLE-SDK-VERSION"];function r(){t.onRequestComplete()}this.currentRequest=this.httpRequest.getRequest(this.fetchUrl,e);this.currentRequest.responsePromise.then(function(e){t.onRequestResolved(e)},function(e){t.onRequestRejected(e)}).then(r,r),0<this.updateInterval&&this.scheduleNextUpdate()},Ot.prototype.onRequestComplete=function(){this.isStarted&&(this.currentRequest=null,this.syncOnCurrentRequestComplete&&this.fetch(),this.syncOnCurrentRequestComplete=!1)},Ot.prototype.onRequestResolved=function(e){if(this.isStarted){if(void 0!==e.statusCode&&200<=e.statusCode&&e.statusCode<400)this.errorRetryController.reset();else{if(401===e.statusCode||403===e.statusCode)return void this.readyPromiseRejecter(new Error("Invalid key provided."));this.errorRetryController.countError()}e.body&&(e=JSON.parse(e.body),this.workspace=vt.from(e),this.readyPromiseResolver())}},Ot.prototype.onRequestRejected=function(e){this.isStarted&&(this.errorRetryController.countError(),console.error("Error fetching data",e))},Ot.prototype.close=function(){this.stop()},Ot),gt=(Rt.prototype.getDelay=function(){return 0===this.errorCount?0:1e3*z[Math.min(z.length-1,this.errorCount)]+Math.round(1e3*Math.random())},Rt.prototype.countError=function(){this.errorCount<z.length-1&&this.errorCount++},Rt.prototype.reset=function(){this.errorCount=0},Rt),n="model",o="name",i="type",a="vendor",c="version",p="mobile",d="tablet",wt=(h.parse=function(e){return{browser:h.getBrowser(e),cpu:h.getCPU(e),device:h.getDevice(e),engine:h.getEngine(e),os:h.getOS(e)}},h.getBrowser=function(e){var t={name:void 0,version:void 0,major:void 0};return h.mapper.rgx.call(t,e,h.regexes.browser),t.major=h.util.major(t.version),t},h.getCPU=function(e){var t={architecture:void 0};return h.mapper.rgx.call(t,e,h.regexes.cpu),t},h.getDevice=function(e){var t={model:void 0,type:void 0,vendor:void 0};return h.mapper.rgx.call(t,e,h.regexes.device),t},h.getEngine=function(e){var t={name:void 0,version:void 0};return h.mapper.rgx.call(t,e,h.regexes.os),t},h.getOS=function(e){var t={name:void 0,version:void 0};return h.mapper.rgx.call(t,e,h.regexes.os),t},h.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,"")}},h.regexes={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[o,c],[/(opios)[\/\s]+([\w\.]+)/i],[[o,"Opera Mini"],c],[/\s(opr)\/([\w\.]+)/i],[[o,"Opera"],c],[/(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,c],[/(konqueror)\/([\w\.]+)/i],[[o,"Konqueror"],c],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[o,"IE"],c],[/(edge|edgios|edga|edg)\/((\d+)?[\w\.]+)/i],[[o,"Edge"],c],[/(yabrowser)\/([\w\.]+)/i],[[o,"Yandex"],c],[/(Avast)\/([\w\.]+)/i],[[o,"Avast Secure Browser"],c],[/(AVG)\/([\w\.]+)/i],[[o,"AVG Secure Browser"],c],[/(puffin)\/([\w\.]+)/i],[[o,"Puffin"],c],[/(focus)\/([\w\.]+)/i],[[o,"Firefox Focus"],c],[/(opt)\/([\w\.]+)/i],[[o,"Opera Touch"],c],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[o,"UCBrowser"],c],[/(comodo_dragon)\/([\w\.]+)/i],[[o,/_/g," "],c],[/(windowswechat qbcore)\/([\w\.]+)/i],[[o,"WeChat(Win) Desktop"],c],[/(micromessenger)\/([\w\.]+)/i],[[o,"WeChat"],c],[/(brave)\/([\w\.]+)/i],[[o,"Brave"],c],[/(whale)\/([\w\.]+)/i],[[o,"Whale"],c],[/(qqbrowserlite)\/([\w\.]+)/i],[o,c],[/(QQ)\/([\d\.]+)/i],[o,c],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[o,c],[/(baiduboxapp)[\/\s]?([\w\.]+)/i],[o,c],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[o,c],[/(MetaSr)[\/\s]?([\w\.]+)/i],[o],[/(LBBROWSER)/i],[o],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[c,[o,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[c,[o,"Facebook"]],[/safari\s(line)\/([\w\.]+)/i,/android.+(line)\/([\w\.]+)\/iab/i],[o,c],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[c,[o,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[o,/(.+)/,"$1 WebView"],c],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[o,/(.+(?:g|us))(.+)/,"$1 $2"],c],[/((?:android.+)crmo|crios)\/([\w\.]+)/i,/android.+(chrome)\/([\w\.]+)\s+(?:mobile\s?safari)/i],[[o,"Chrome Mobile"],c],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[c,[o,"Android Browser"]],[/(sailfishbrowser)\/([\w\.]+)/i],[[o,"Sailfish Browser"],c],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[o,c],[/(dolfin)\/([\w\.]+)/i],[[o,"Dolphin"],c],[/(qihu|qhbrowser|qihoobrowser|360browser)/i],[[o,"360 Browser"]],[/(coast)\/([\w\.]+)/i],[[o,"Opera Coast"],c],[/fxios\/([\w\.-]+)/i],[c,[o,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[c,[o,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[c,o],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[o,"GSA"],c],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[o,[c,(h.mapper={rgx:function(e,t){for(var r,n,o,i,a,s=0;s<t.length&&!i;){for(var u=t[s],c=t[s+1],l=r=0;l<u.length&&!i;)if(i=u[l++].exec(e))for(n=0;n<c.length;n++)a=i[++r],"object"==typeof(o=c[n])&&0<o.length?2==o.length?"function"==typeof o[1]?this[o[0]]=o[1].call(this,a):this[o[0]]=o[1]:3==o.length?"function"!=typeof o[1]||o[1].exec&&o[1].test?this[o[0]]=a?a.replace(o[1],o[2]):void 0:this[o[0]]=a?o[1].call(this,a,o[2]):void 0:4==o.length&&(this[o[0]]=a?o[3].call(this,a.replace(o[1],o[2])):void 0):this[o]=a||void 0;s+=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(h.util.has(t[r][n],e))return"?"===r?void 0:r}else if(h.util.has(t[r],e))return"?"===r?void 0:r;return e}}).str,(h.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,c],[/(navigator|netscape)\/([\w\.-]+)/i],[[o,"Netscape"],c],[/(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,c]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[["architecture","amd64"]],[/(ia32(?=;))/i],[["architecture",h.util.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[["architecture","ia32"]],[/windows\s(ce|mobile);\sppc;/i],[["architecture","arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[["architecture",/ower/,"",h.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",h.util.lowerize]]],device:[[/\((ipad|playbook);[\w\s\),;-]+(rim|apple)/i],[n,a,[i,d]],[/applecoremedia\/[\w\.]+ \((ipad)/],[n,[a,"Apple"],[i,d]],[/(apple\s{0,1}tv)/i],[[n,"Apple TV"],[a,"Apple"],[i,"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],[a,n,[i,d]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[n,[a,"Amazon"],[i,d]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[n,h.mapper.str,h.maps.device.amazon.model],[a,"Amazon"],[i,p]],[/android.+aft([bms])\sbuild/i],[n,[a,"Amazon"],[i,"smarttv"]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[n,a,[i,p]],[/\((ip[honed|\s\w*]+);/i],[n,[a,"Apple"],[i,p]],[/(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],[a,n,[i,p]],[/\(bb10;\s(\w+)/i],[n,[a,"BlackBerry"],[i,p]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone|p00c)/i],[n,[a,"Asus"],[i,d]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[a,"Sony"],[n,"Xperia Tablet"],[i,d]],[/android.+\s([c-g]\d{4}|so[-l]\w+)(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[n,[a,"Sony"],[i,p]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[a,n,[i,"console"]],[/android.+;\s(shield)\sbuild/i],[n,[a,"Nvidia"],[i,"console"]],[/(playstation\s[34portablevi]+)/i],[n,[a,"Sony"],[i,"console"]],[/(sprint\s(\w+))/i],[[a,h.mapper.str,h.maps.device.sprint.vendor],[n,h.mapper.str,h.maps.device.sprint.model],[i,p]],[/(htc)[;_\s-]+([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[a,[n,/_/g," "],[i,p]],[/(nexus\s9)/i],[n,[a,"HTC"],[i,d]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p|vog-l29|ane-lx1|eml-l29)/i],[n,[a,"Huawei"],[i,p]],[/android.+(bah2?-a?[lw]\d{2})/i],[n,[a,"Huawei"],[i,d]],[/(microsoft);\s(lumia[\s\w]+)/i],[a,n,[i,p]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[n,[a,"Microsoft"],[i,"console"]],[/(kin\.[onetw]{3})/i],[[n,/\./g," "],[a,"Microsoft"],[i,p]],[/\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],[n,[a,"Motorola"],[i,p]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[n,[a,"Motorola"],[i,d]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[a,h.util.trim],[n,h.util.trim],[i,"smarttv"]],[/hbbtv.+maple;(\d+)/i],[[n,/^/,"SmartTV"],[a,"Samsung"],[i,"smarttv"]],[/\(dtv[\);].+(aquos)/i],[n,[a,"Sharp"],[i,"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],[[a,"Samsung"],n,[i,d]],[/smart-tv.+(samsung)/i],[a,[i,"smarttv"],n],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i,/sec-((sgh\w+))/i],[[a,"Samsung"],n,[i,p]],[/sie-(\w*)/i],[n,[a,"Siemens"],[i,p]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[a,"Nokia"],n,[i,p]],[/android[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[n,[a,"Acer"],[i,d]],[/android.+([vl]k\-?\d{3})\s+build/i],[n,[a,"LG"],[i,d]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[a,"LG"],n,[i,d]],[/(lg) netcast\.tv/i],[a,n,[i,"smarttv"]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[n,[a,"LG"],[i,p]],[/(lenovo)\s?(s(?:5000|6000)(?:[\w-]+)|tab(?:[\s\w]+))/i],[a,n,[i,d]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[n,[a,"Lenovo"],[i,d]],[/(lenovo)[_\s-]?([\w-]+)/i],[a,n,[i,p]],[/linux;.+((jolla));/i],[a,n,[i,p]],[/((pebble))app\/[\d\.]+\s/i],[a,n,[i,"wearable"]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[a,n,[i,p]],[/crkey/i],[[n,"Chromecast"],[a,"Google"],[i,"smarttv"]],[/android.+;\s(glass)\s\d/i],[n,[a,"Google"],[i,"wearable"]],[/android.+;\s(pixel c)[\s)]/i],[n,[a,"Google"],[i,d]],[/android.+;\s(pixel( [23])?( xl)?)[\s)]/i],[n,[a,"Google"],[i,p]],[/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],[[n,/_/g," "],[a,"Xiaomi"],[i,p]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i],[[n,/_/g," "],[a,"Xiaomi"],[i,d]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[n,[a,"Meizu"],[i,p]],[/(mz)-([\w-]{2,})/i],[[a,"Meizu"],n,[i,p]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})[\s)]/i],[n,[a,"OnePlus"],[i,p]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[n,[a,"RCA"],[i,d]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[n,[a,"Dell"],[i,d]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[n,[a,"Verizon"],[i,d]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[a,"Barnes & Noble"],n,[i,d]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[n,[a,"NuVision"],[i,d]],[/android.+;\s(k88)\sbuild/i],[n,[a,"ZTE"],[i,d]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[n,[a,"Swiss"],[i,p]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[n,[a,"Swiss"],[i,d]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[n,[a,"Zeki"],[i,d]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[a,"Dragon Touch"],n,[i,d]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[n,[a,"Insignia"],[i,d]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[n,[a,"NextBook"],[i,d]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[a,"Voice"],n,[i,p]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[a,"LvTel"],n,[i,p]],[/android.+;\s(PH-1)\s/i],[n,[a,"Essential"],[i,p]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[n,[a,"Envizen"],[i,d]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[a,n,[i,d]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[n,[a,"MachSpeed"],[i,d]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[a,n,[i,d]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[n,[a,"Rotor"],[i,d]],[/android.+(KS(.+))\s+build/i],[n,[a,"Amazon"],[i,d]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[a,n,[i,d]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[i,h.util.lowerize],a,n],[/[\s\/\(](smart-?tv)[;\)]/i],[[i,"smarttv"]],[/(android[\w\.\s\-]{0,9});.+build/i],[n,[a,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[c,[o,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[c,[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,c],[/rv\:([\w\.]{1,9}).+(gecko)/i],[c,o]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[o,c],[/(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,h.mapper.str,h.maps.os.windows],[c,h.mapper.str,h.maps.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[o,"Windows"],[c,h.mapper.str,h.maps.os.windows.version]],[/\((bb)(10);/i],[[o,"BlackBerry"],c],[/(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,c],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[o,"Symbian"],c],[/\((series40);/i],[o],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[o,"Firefox OS"],c],[/(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"],c],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[o,"Chromium OS"],c],[/(sunos)\s?([\w\.\d]*)/i],[[o,"Solaris"],c],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[[o,"Linux"],c],[/(iphone)(?:.*os\s*([\w]*)\slike\smac|;\sopera)/i],[[o,"iPhone"],[c,/_/g,"."]],[/(ipad)(?:.*os\s*([\w]*)\slike\smac|;\sopera)/i],[[o,"iPad"],[c,/_/g,"."]],[/(haiku)\s(\w+)/i],[o,c],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[c,/_/g,"."],[o,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[o,"Mac"],[c,/_/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,c]]},h),Et=(Tt.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=wt.parse(t.navigator.userAgent),n=r.browser,o=r.os,r=r.device,i=r.type?"mobile"===r.type?"Mobile":"ETC":"Web",a=(t.location.protocol||"").replace(":",""),s=t.screen,u="";try{u=Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){}return{platform:i||"",browserName:n.name||"",browserMajorVersion:n.major||"",browserVersion:n.version||"",osName:o.name||"",osVersion:o.version||"",deviceModel:r.model||"",deviceType:r.type||"",deviceVendor:r.vendor||"",language:(null==(i=t.navigator.languages)?void 0:i[0])||"",userAgent:t.navigator.userAgent||"",pagePath:t.location.pathname||"",pageTitle:t.document.title||"",host:t.location.host||"",protocol:a,referrer:t.document.referrer||"",queryParameter:t.location.search||"",screenWidth:s.width||"",screenHeight:s.height||"",timeZone:u||""}},Tt),bt=new Uint8Array(16);function Tt(){}function h(){}function Rt(){this.errorCount=0}function Ot(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 gt,this.currentRequest=null,this.syncOnCurrentRequestComplete=!1,this.isReadyPromiseSettled=!1}function y(e,t,r,n,o,i,a,s){this.experiments=e,this.featureFlags=t,this.buckets=r,this.eventTypes=n,this.segments=o,this.containers=i,this.parameterConfigurations=a,this.remoteConfigParameters=s}function _t(){}function Ct(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 Nt(){if(dt=dt||"undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto))return dt(bt);throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported")}var At=/^(?:[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 St(e){return"string"==typeof e&&At.test(e)}for(var kt=[],It=0;It<256;++It)kt.push((It+256).toString(16).substr(1));function xt(e,t){t=1<arguments.length&&void 0!==t?t:0,e=(kt[e[t+0]]+kt[e[t+1]]+kt[e[t+2]]+kt[e[t+3]]+"-"+kt[e[t+4]]+kt[e[t+5]]+"-"+kt[e[t+6]]+kt[e[t+7]]+"-"+kt[e[t+8]]+kt[e[t+9]]+"-"+kt[e[t+10]]+kt[e[t+11]]+kt[e[t+12]]+kt[e[t+13]]+kt[e[t+14]]+kt[e[t+15]]).toLowerCase();if(St(e))return e;throw TypeError("Stringified UUID is invalid")}function Pt(){try{0}catch(e){}}Pt(),Pt();jt.prototype.resolveOrNull=function(e){e=this._resolveUser(e);return this._resolveHackleUserOrNull(e)},jt.prototype.resolveAnonymousUser=function(){return{identifiers:{},properties:{},hackleProperties:this._getHackleProperties()}},jt.prototype._resolveUser=function(e){return e?"string"==typeof e?{id:e}:e:{id:Lt()}},jt.prototype._resolveHackleUserOrNull=function(e){var t=new ge,t=(t.addIdentifiers(e.identifiers||{}),e.id&&t.add(me.ID,e.id),e.userId&&t.add(me.USER,e.userId),t.add(me.DEVICE,e.deviceId||Lt()),t.build());if(0!==Object.keys(t).length)return{identifiers:t,properties:e.properties||{},hackleProperties:this._getHackleProperties()}},jt.prototype._getHackleProperties=function(){var e;return(e="undefined"!=typeof window?Et.generate(window):e)||{}};var Dt=jt,Mt=(Ut.initialize=function(){zt.get("_hackle_hid")||Ht()},Ut.reInitialize=function(){Ht()},Ut);function Ut(){}function jt(){Mt.initialize()}function Lt(){var e=zt.get("_hackle_id");return e||zt.get("_hackle_hid")||Ht()}function Ft(e){zt.set("_hackle_id",e,3650,!0)}function Vt(){zt.remove("_hackle_id",!0)}function Ht(){var e=function(e,t,r){var n=(e=e||{}).random||(e.rng||Nt)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var o=0;o<16;++o)t[r+o]=n[o];return t}return xt(n)}();return zt.set("_hackle_hid",e,3650,!0),e}function Kt(e){return e&&e.Math==Math&&e}function v(e){try{return!!e()}catch(e){return!0}}qt.get=function(e){for(var t=e+"=",r=document.cookie.split(";"),n=0;n<r.length;n++){for(var o=r[n];" "==o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(t))return decodeURIComponent(o.substring(t.length,o.length))}return null},qt.set=function(e,t,r,n,o,i){var a="",s="",u="",r=(n&&(a=(n=qt.extractDomain(document.location.hostname))?"; domain=."+n:""),r&&((n=new Date).setTime(n.getTime()+24*r*60*60*1e3),s="; expires="+n.toUTCString()),i&&(o=!0,u="; SameSite=None"),o&&(u+="; secure"),e+"="+encodeURIComponent(t)+s+"; path=/"+a+u);return document.cookie=r},qt.remove=function(e,t){qt.set(e,"",-1,t,!1,!1)},qt.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]:""};var zt=qt,p="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},d=Kt("object"==typeof globalThis&&globalThis)||Kt("object"==typeof window&&window)||Kt("object"==typeof self&&self)||Kt("object"==typeof p&&p)||function(){return this}()||Function("return this")(),i={},n=!v(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),a=!v(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),Gt=Function.prototype.call,o=a?Gt.bind(Gt):function(){return Gt.apply(Gt,arguments)},c={},e={}.propertyIsEnumerable,Bt=Object.getOwnPropertyDescriptor,p=Bt&&!e.call({1:2},1);function qt(){}c.f=p?function(e){e=Bt(this,e);return!!e&&e.enumerable}:e;function $t(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}function Xt(e){return fr(lr(e),8,-1)}function Yt(e){if(null==e)throw yr("Can't call method on "+e);return e}function Wt(e){return vr(mr(e))}function m(e){return"function"==typeof e}function Jt(e){return"object"==typeof e?null!==e:gr(e)}function Zt(e,t){return arguments.length<2?(r=wr[e],Er(r)?r:void 0):wr[e]&&wr[e][t];var r}function Qt(e){try{return Ar(e)}catch(e){return"Object"}}function er(e){if(Sr(e))return e;throw Ir(kr(e)+" is not a function")}function tr(e,t){return null==(e=e[t])?void 0:xr(e)}function rr(t,r){try{Lr(jr,t,{value:r,configurable:!0,writable:!0})}catch(e){jr[t]=r}return r}function g(e){return Kr(Hr(e))}function nr(e){return"Symbol("+(void 0===e?"":e)+")_"+Yr(++$r+Xr,36)}function w(e){var t;return Wr(en,e)&&(Zr||"string"==typeof en[e])||(t="Symbol."+e,Zr&&Wr(tn,e)?en[e]=tn[e]:en[e]=(Qr&&rn?rn:nn)(t)),en[e]}function or(e){return e=function(e,t){if(!an(e)||sn(e))return e;var r=un(e,fn);if(r){if(r=on(r,e,t=void 0===t?"default":t),!an(r)||sn(r))return r;throw ln("Can't convert object to primitive value")}return cn(e,t=void 0===t?"number":t)}(e,"string"),pn(e)?e:e+""}function ir(e){return hn?dn.createElement(e):{}}function ar(e){if(On(e))return e;throw Cn(_n(e)+" is not an object")}var p=a,e=Function.prototype,sr=e.bind,ur=e.call,cr=p&&sr.bind(ur,ur),e=p?function(e){return e&&cr(e)}:function(e){return e&&function(){return ur.apply(e,arguments)}},sr=e,lr=sr({}.toString),fr=sr("".slice),p=v,pr=Xt,dr=Object,hr=e("".split),sr=p(function(){return!dr("z").propertyIsEnumerable(0)})?function(e){return"String"==pr(e)?hr(e,""):dr(e)}:dr,yr=TypeError,vr=sr,mr=Yt,gr=m,wr=d,Er=m,p=e({}.isPrototypeOf),br=Zt("navigator","userAgent")||"",E=br,b=d.process,T=d.Deno,b=b&&b.versions||T&&T.version,T=b&&b.v8,b=Nr=!(Nr=T?0<(R=T.split("."))[0]&&R[0]<4?1:+(R[0]+R[1]):Nr)&&E&&(!(R=E.match(/Edge\/(\d+)/))||74<=R[1])&&(R=E.match(/Chrome\/(\d+)/))?+R[1]:Nr,Tr=b,T=v,E=!!Object.getOwnPropertySymbols&&!T(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Tr&&Tr<41}),R=E&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Rr=Zt,Or=m,_r=p,Cr=Object,Nr=R?function(e){return"symbol"==typeof e}:function(e){var t=Rr("Symbol");return Or(t)&&_r(t.prototype,Cr(e))},Ar=String,Sr=m,kr=Qt,Ir=TypeError,xr=er,Pr=o,Dr=m,Mr=Jt,Ur=TypeError,T={exports:{}},jr=d,Lr=Object.defineProperty,Fr=rr,Fr=d["__core-js_shared__"]||Fr("__core-js_shared__",{}),Vr=Fr,Hr=((T.exports=function(e,t){return Vr[e]||(Vr[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"}),Yt),Kr=Object,zr=g,Gr=e({}.hasOwnProperty),Br=Object.hasOwn||function(e,t){return Gr(zr(e),t)},qr=e,$r=0,Xr=Math.random(),Yr=qr(1..toString),qr=d,O=T.exports,Wr=Br,Jr=nr,Zr=E,Qr=R,en=O("wks"),tn=qr.Symbol,rn=tn&&tn.for,nn=Qr?tn:tn&&tn.withoutSetter||Jr,on=o,an=Jt,sn=Nr,un=tr,cn=function(e,t){var r,n;if("string"===t&&Dr(r=e.toString)&&!Mr(n=Pr(r,e)))return n;if(Dr(r=e.valueOf)&&!Mr(n=Pr(r,e)))return n;if("string"!==t&&Dr(r=e.toString)&&!Mr(n=Pr(r,e)))return n;throw Ur("Can't convert object to primitive value")},ln=TypeError,fn=w("toPrimitive"),pn=Nr,E=Jt,dn=d.document,hn=E(dn)&&E(dn.createElement),yn=ir,R=!n&&!v(function(){return 7!=Object.defineProperty(yn("div"),"a",{get:function(){return 7}}).a}),vn=o,mn=c,gn=$t,wn=Wt,En=or,bn=Br,Tn=R,Rn=Object.getOwnPropertyDescriptor,O=(i.f=n?Rn:function(e,t){if(e=wn(e),t=En(t),Tn)try{return Rn(e,t)}catch(e){}if(bn(e,t))return gn(!vn(mn.f,e,t),e[t])},{}),qr=n&&v(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),On=Jt,_n=String,Cn=TypeError,Nn=R,An=ar,Sn=or,kn=TypeError,In=Object.defineProperty,xn=Object.getOwnPropertyDescriptor,Pn=(O.f=n?qr?function(e,t,r){var n;return An(e),t=Sn(t),An(r),"function"==typeof e&&"prototype"===t&&"value"in r&&"writable"in r&&!r.writable&&(n=xn(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}),In(e,t,r)}:In:function(e,t,r){if(An(e),t=Sn(t),An(r),Nn)try{return In(e,t,r)}catch(e){}if("get"in r||"set"in r)throw kn("Accessors not supported");return"value"in r&&(e[t]=r.value),e},O),Dn=$t,Jr=n?function(e,t,r){return Pn.f(e,t,Dn(1,r))}:function(e,t,r){return e[t]=r,e},Nr={exports:{}},E=n,c=Br,R=Function.prototype,_=E&&Object.getOwnPropertyDescriptor,c=c(R,"name"),c={EXISTS:c,PROPER:c&&"something"===function(){}.name,CONFIGURABLE:c&&(!E||_(R,"name").configurable)},E=m,_=Fr,Mn=e(Function.toString);E(_.inspectSource)||(_.inspectSource=function(e){return Mn(e)});function Un(e){return eo[e]||(eo[e]=Qn(e))}function jn(e,t,r,n){var o=(n=n||{}).enumerable,i=void 0!==n.name?n.name:t;if(go(r)&&Eo(r,i,n),n.global)o?e[t]=r:bo(t,r);else{try{n.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=r:wo.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e}function Ln(e){return(e=+e)!=e||0==e?0:Oo(e)}function Fn(e,t){return(e=_o(e))<0?Co(e+t,0):No(e,t)}function C(e){return 0<(e=e.length)?So(Ao(e),9007199254740991):0}function Vn(s){return function(e,t,r){var n,o=ko(e),i=xo(o),a=Io(r,i);if(s&&t!=t){for(;a<i;)if((n=o[a++])!=n)return!0}else for(;a<i;a++)if((s||a in o)&&o[a]===t)return s||a||0;return!s&&-1}}function Hn(e,t){var r,n=Do(e),o=0,i=[];for(r in n)!Po(Uo,r)&&Po(n,r)&&jo(i,r);for(;t.length>o;)!Po(n,r=t[o++])||~Mo(i,r)||jo(i,r);return i}function Kn(e,t,r){for(var n=Bo(t),o=$o.f,i=qo.f,a=0;a<n.length;a++){var s=n[a];Go(e,s)||r&&Go(r,s)||o(e,s,i(t,s))}}function zn(e,t){return(e=Zo[Jo(e)])==ei||e!=Qo&&(Yo(t)?Xo(t):!!t)}function N(e,t){var r,n,o,i,a=e.target,s=e.global,u=e.stat;if(r=s?ti:u?ti[a]||ii(a,{}):(ti[a]||{}).prototype)for(n in t){if(o=t[n],i=e.dontCallGetSet?(i=ri(r,n))&&i.value:r[n],!si(s?n:a+(u?".":"#")+n,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;ai(o,i)}(e.sham||i&&i.sham)&&ni(o,"sham",!0),oi(r,n,o,e)}}var Gn,Bn,qn,$n,Xn,Yn,Wn,Jn,R=_.inspectSource,E=m,_=R,Zn=d.WeakMap,E=E(Zn)&&/native code/.test(_(Zn)),_=T.exports,Qn=nr,eo=_("keys"),Zn={},T=e,to=Jt,ro=Jr,no=Br,_=Fr,A=Un,oo=Zn,io=d.TypeError,ao=d.WeakMap,E=(Wn=E||_.state?(Gn=_.state||(_.state=new ao),Bn=T(Gn.get),qn=T(Gn.has),$n=T(Gn.set),Xn=function(e,t){if(qn(Gn,e))throw new io("Object already initialized");return t.facade=e,$n(Gn,e,t),t},Yn=function(e){return Bn(Gn,e)||{}},function(e){return qn(Gn,e)}):(oo[Jn=A("state")]=!0,Xn=function(e,t){if(no(e,Jn))throw new io("Object already initialized");return t.facade=e,ro(e,Jn,t),t},Yn=function(e){return no(e,Jn)?e[Jn]:{}},function(e){return no(e,Jn)}),{set:Xn,get:Yn,has:Wn,enforce:function(e){return Wn(e)?Yn(e):Xn(e,{})},getterFor:function(t){return function(e){if(to(e)&&(e=Yn(e)).type===t)return e;throw io("Incompatible receiver, "+t+" required")}}}),_=v,so=m,uo=Br,co=n,lo=c.CONFIGURABLE,fo=R,po=E.enforce,ho=E.get,yo=Object.defineProperty,vo=co&&!_(function(){return 8!==yo(function(){},"length",{value:8}).length}),mo=String(String).split("String"),ao=Nr.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),(!uo(e,"name")||lo&&e.name!==t)&&(co?yo(e,"name",{value:t,configurable:!0}):e.name=t),vo&&r&&uo(r,"arity")&&e.length!==r.arity&&yo(e,"length",{value:r.arity});try{r&&uo(r,"constructor")&&r.constructor?co&&yo(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}r=po(e);return uo(r,"source")||(r.source=mo.join("string"==typeof t?t:"")),e},go=(Function.prototype.toString=ao(function(){return so(this)&&ho(this).source||fo(this)},"toString"),m),wo=O,Eo=Nr.exports,bo=rr,T={},To=Math.ceil,Ro=Math.floor,Oo=Math.trunc||function(e){e=+e;return(0<e?Ro:To)(e)},_o=Ln,Co=Math.max,No=Math.min,Ao=Ln,So=Math.min,ko=Wt,Io=Fn,xo=C,oo={includes:Vn(!0),indexOf:Vn(!1)},Po=Br,Do=Wt,Mo=oo.indexOf,Uo=Zn,jo=e([].push),A=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Lo=Hn,Fo=A.concat("length","prototype"),_=(T.f=Object.getOwnPropertyNames||function(e){return Lo(e,Fo)},{}),ao=(_.f=Object.getOwnPropertySymbols,Zt),Vo=T,Ho=_,Ko=ar,zo=e([].concat),_=ao("Reflect","ownKeys")||function(e){var t=Vo.f(Ko(e)),r=Ho.f;return r?zo(t,r(e)):t},Go=Br,Bo=_,qo=i,$o=O,Xo=v,Yo=m,Wo=/#|\.prototype\./,Jo=zn.normalize=function(e){return String(e).replace(Wo,".").toLowerCase()},Zo=zn.data={},Qo=zn.NATIVE="N",ei=zn.POLYFILL="P",ao=zn,ti=d,ri=i.f,ni=Jr,oi=jn,ii=rr,ai=Kn,si=ao,_=!v(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),ui=Br,ci=m,li=g,fi=Un("IE_PROTO"),pi=Object,di=pi.prototype,_=_?pi.getPrototypeOf:function(e){e=li(e);if(ui(e,fi))return e[fi];var t=e.constructor;return ci(t)&&e instanceof t?t.prototype:e instanceof pi?di:null},hi=m,yi=String,vi=TypeError,mi=e,gi=ar,wi=Object.setPrototypeOf||("__proto__"in{}?function(){var r,n=!1,e={};try{(r=mi(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),n=e instanceof Array}catch(r){}return function(e,t){return gi(e),function(e){if("object"==typeof e||hi(e))return;throw vi("Can't set "+yi(e)+" as a prototype")}(t),n?r(e,t):e.__proto__=t,e}}():void 0),Ei={},bi=Hn,Ti=A,S=Object.keys||function(e){return bi(e,Ti)},Ri=O,Oi=ar,_i=Wt,Ci=S;Ei.f=n&&!qr?Object.defineProperties:function(e,t){Oi(e);for(var r,n=_i(t),o=Ci(t),i=o.length,a=0;a<i;)Ri.f(e,r=o[a++],n[r]);return e};function Ni(){}function Ai(e){e.write(Bi("")),e.close();var t=e.parentWindow.Object;return e=null,t}function Si(e,t){return Qi(e),void 0===t?e:ea?ta(e,t):function(){return e.apply(t,arguments)}}function ki(e){return void 0!==e&&(ra.Array===e||oa[na]===e)}function Ii(e){if(null!=e)return fa(e,da)||fa(e,"@@iterator")||pa[la(e)]}function xi(e,t){if(t=arguments.length<2?ga(e):t,ya(t))return va(ha(t,e));throw wa(ma(e)+" is not iterable")}function Pi(e,t,r){var n,o;ba(e);try{if(!(n=Ta(e,"return"))){if("throw"===t)throw r;return r}n=Ea(n,e)}catch(e){o=!0,n=e}if("throw"===t)throw r;if(o)throw n;return ba(n),r}function Di(e,t){this.stopped=e,this.result=t}function Mi(e,t,r){function n(e){return i&&xa(i,"normal",e),new Di(!0,e)}function o(e){return p?(_a(e),y?v(e[0],e[1],n):v(e[0],e[1])):y?v(e,n):v(e)}var i,a,s,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=Ra(t,f);if(d)i=e.iterator;else if(h)i=e;else{if(!(r=Ia(e)))throw Pa(Ca(e)+" is not iterable");if(Na(r)){for(a=0,s=Aa(e);a<s;a++)if((u=o(e[a]))&&Sa(Da,u))return u;return new Di(!1)}i=ka(e,r)}for(c=(d?e:i).next;!(l=Oa(c,i)).done;){try{u=o(l.value)}catch(e){xa(i,"throw",e)}if("object"==typeof u&&u&&Sa(Da,u))return u}return new Di(!1)}function Ui(e){if("Symbol"===Ma(e))throw TypeError("Cannot convert a Symbol value to a string");return Ua(e)}function ji(e,t){var r,n=2<arguments.length?arguments[2]:void 0,o=Va(Za,this);return Ka?r=Ka(new Wa,o?Ha(this):Za):(r=o?this:Ga(Za),Ba(r,Ya,"Error")),void 0!==t&&Ba(r,"message",function(e,t){return void 0===e?arguments.length<2?"":t:ja(e)}(t)),Xa&&Ba(r,"stack",function(e,t){if(Wi&&"string"==typeof e&&!$i.prepareStackTrace)for(;t--;)e=Xi(e,Yi,"");return e}(r.stack,1)),o=r,Ji(t=n)&&"cause"in t&&Zi(o,"cause",t.cause),$a(e,Ja,{that:n=[]}),Ba(r,"errors",n),r}var Li,S=Zt("document","documentElement"),Fi=ar,Vi=Ei,Hi=A,qr=Zn,Ki=S,zi=ir,Gi=Un("IE_PROTO"),Bi=function(e){return"<script>"+e+"<\/script>"},qi=function(){try{Li=new ActiveXObject("htmlfile")}catch(e){}var e,t;qi="undefined"==typeof document||document.domain&&Li?Ai(Li):((t=zi("iframe")).style.display="none",Ki.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Bi("document.F=Object")),e.close(),e.F);for(var r=Hi.length;r--;)delete qi.prototype[Hi[r]];return qi()},Ei=(qr[Gi]=!0,Object.create||function(e,t){var r;return null!==e?(Ni.prototype=Fi(e),r=new Ni,Ni.prototype=null,r[Gi]=e):r=qi(),void 0===t?r:Vi.f(r,t)}),$i=Error,Xi=e("".replace),A=String($i("zxcasd").stack),Yi=/\n\s*at [^:]*:[^\n]*/,Wi=Yi.test(A),Ji=Jt,Zi=Jr,Qi=er,ea=a,ta=e(e.bind),qr={},ra=qr,na=w("iterator"),oa=Array.prototype,A={},A=(A[w("toStringTag")]="z","[object z]"===String(A)),k=A,ia=m,aa=Xt,sa=w("toStringTag"),ua=Object,ca="Arguments"==aa(function(){return arguments}()),k=k?aa: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=ua(e),sa))?t:ca?aa(e):"Object"==(t=aa(e))&&ia(e.callee)?"Arguments":t},la=k,fa=tr,pa=qr,da=w("iterator"),ha=o,ya=er,va=ar,ma=Qt,ga=Ii,wa=TypeError,Ea=o,ba=ar,Ta=tr,Ra=Si,Oa=o,_a=ar,Ca=Qt,Na=ki,Aa=C,Sa=p,ka=xi,Ia=Ii,xa=Pi,Pa=TypeError,Da=Di.prototype,Ma=k,Ua=String,ja=Ui,La=$t,I=!v(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",La(1,7)),7!==e.stack)}),Fa=N,Va=p,Ha=_,Ka=wi,za=Kn,Ga=Ei,Ba=Jr,qa=$t,$a=Mi,Xa=I,Ya=w("toStringTag"),Wa=Error,Ja=[].push,Za=(Ka?Ka(ji,Wa):za(ji,Wa,{name:!0}),ji.prototype=Ga(Wa.prototype,{constructor:qa(1,ji),message:qa(1,""),name:qa(1,"AggregateError")})),I=(Fa({global:!0,constructor:!0,arity:2},{AggregateError:ji}),w),za=Ei,qa=O.f,Qa=I("unscopables"),es=Array.prototype;null==es[Qa]&&qa(es,Qa,{configurable:!0,value:za(null)});function x(e){es[Qa][e]=!0}var ts,Fa=v,I=m,qa=_,za=jn,rs=w("iterator"),P=!1;[].keys&&("next"in(as=[].keys())?(qa=qa(qa(as)))!==Object.prototype&&(ts=qa):P=!0);function ns(e,t,r){(e=e&&!r?e.prototype:e)&&!us(e,cs)&&ss(e,cs,{configurable:!0,value:t})}function os(){return this}function is(e,t,r,n,o,i,a){var s=r,u=t,c=void 0;function l(e){if(e===o&&v)return v;if(!As&&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",s.prototype=fs(ls,{next:ps(+!c,n)}),ds(s,u,!1),hs[u]=ys;var f,p,c=t+" Iterator",d=!1,h=e.prototype,y=h[Ss]||h["@@iterator"]||o&&h[o],v=!As&&y||l(o);if((n="Array"==t&&h.entries||y)&&(s=ws(n.call(new e)))!==Object.prototype&&s.next&&(ws(s)!==Ns&&(Es?Es(s,Ns):gs(s[Ss])||Rs(s,Ss,os)),bs(s,c,!0)),_s&&"values"==o&&y&&"values"!==y.name&&(Cs?Ts(h,"name","values"):(d=!0,v=function(){return ms(y,this)})),o)if(f={values:l("values"),keys:i?v:l("keys"),entries:l("entries")},a)for(p in f)!As&&!d&&p in h||Rs(h,p,f[p]);else vs({target:t,proto:!0,forced:As||d},f);return h[Ss]!==v&&Rs(h,Ss,v,{name:o}),Os[t]=v,f}I((ts=null==ts||Fa(function(){var e={};return ts[rs].call(e)!==e})?{}:ts)[rs])||za(ts,rs,function(){return this});var as={IteratorPrototype:ts,BUGGY_SAFARI_ITERATORS:P},ss=O.f,us=Br,cs=w("toStringTag"),ls=as.IteratorPrototype,fs=Ei,ps=$t,ds=ns,hs=qr,ys=function(){return this},vs=N,ms=o,gs=m,ws=_,Es=wi,bs=ns,Ts=Jr,Rs=jn,Os=qr,_s=c.PROPER,Cs=c.CONFIGURABLE,Ns=as.IteratorPrototype,As=as.BUGGY_SAFARI_ITERATORS,Ss=w("iterator"),ks=Wt,qa=x,I=qr,Fa=E,za=O.f,P=is,c=n,Is=Fa.set,xs=Fa.getterFor("Array Iterator"),as=P(Array,"Array",function(e,t){Is(this,{type:"Array Iterator",target:ks(e),index:0,kind:t})},function(){var e=xs(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"),qr=I.Arguments=I.Array;if(qa("keys"),qa("values"),qa("entries"),c&&"values"!==qr.name)try{za(qr,"name",{value:"values"})}catch(j){}function Ps(e){var e=Fs(e),t=Vs.f;Hs&&e&&!e[Ks]&&t(e,Ks,{configurable:!0,get:function(){return this}})}function Ds(e,t){if(zs(t,e))return e;throw Gs("Incorrect invocation")}function Ms(){}function Us(e){if(!Bs(e))return!1;try{return Ys(Ms,Xs,e),!0}catch(e){return!1}}function js(e){if(!Bs(e))return!1;switch(qs(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Zs||!!Js(Ws,$s(e))}catch(e){return!0}}var Ls=k,Fa=(A||jn(Object.prototype,"toString",A?{}.toString:function(){return"[object "+Ls(this)+"]"},{unsafe:!0}),"process"==Xt(d.process)),Fs=Zt,Vs=O,Hs=n,Ks=w("species"),zs=p,Gs=TypeError,P=e,I=v,Bs=m,qs=k,$s=R,Xs=[],Ys=Zt("Reflect","construct"),Ws=/^\s*(?:class|function)\b/,Js=P(Ws.exec),Zs=!Ws.exec(Ms);js.sham=!0;function Qs(e,t){var r,e=iu(e).constructor;if(void 0===e||null==(r=iu(e)[au]))return t;if(ru(e=r))return e;throw ou(nu(e)+" is not a constructor")}var eu,tu,qa=!Ys||I(function(){var e;return Us(Us.call)||!Us(Object)||!Us(function(){e=!0})||e})?js:Us,ru=qa,nu=Qt,ou=TypeError,iu=ar,au=w("species"),c=Function.prototype,su=c.apply,uu=c.call,za="object"==typeof Reflect&&Reflect.apply||(a?uu.bind(su):function(){return uu.apply(su,arguments)}),qr=e([].slice),cu=TypeError,A=/(?:ipad|iphone|ipod).*applewebkit/i.test(br),lu=d,fu=za,p=Si,pu=m,du=Br,k=v,hu=S,yu=qr,vu=ir,P=A,I=Fa,c=lu.setImmediate,a=lu.clearImmediate,mu=lu.process,gu=lu.Dispatch,wu=lu.Function,S=lu.MessageChannel,Eu=lu.String,bu=0,Tu={};try{eu=lu.location}catch(j){}function Ru(e){return function(){Cu(e)}}function Ou(e){Cu(e.data)}function _u(e){lu.postMessage(Eu(e),eu.protocol+"//"+eu.host)}var Cu=function(e){var t;du(Tu,e)&&(t=Tu[e],delete Tu[e],t())};c&&a||(c=function(e){var t=arguments.length,r=1;if(t<r)throw cu("Not enough arguments");var n=pu(e)?e:wu(e),o=yu(arguments,1);return Tu[++bu]=function(){fu(n,void 0,o)},tu(bu),bu},a=function(e){delete Tu[e]},I?tu=function(e){mu.nextTick(Ru(e))}:gu&&gu.now?tu=function(e){gu.now(Ru(e))}:S&&!P?(P=(I=new S).port2,I.port1.onmessage=Ou,tu=p(P.postMessage,P)):lu.addEventListener&&pu(lu.postMessage)&&!lu.importScripts&&eu&&"file:"!==eu.protocol&&!k(_u)?(tu=_u,lu.addEventListener("message",Ou,!1)):tu="onreadystatechange"in vu("script")?function(e){hu.appendChild(vu("script")).onreadystatechange=function(){hu.removeChild(this),Cu(e)}}:function(e){setTimeout(Ru(e),0)});function Nu(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}function Au(){this.head=null,this.tail=null}function Su(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=Wu(r),this.reject=Wu(n)}var ku,Iu,xu,Pu,Du,Mu,Uu,S={set:c,clear:a},I=d,p=/ipad|iphone|ipod/i.test(br)&&void 0!==I.Pebble,P=/web0s(?!.*chrome)/i.test(br),k=d,c=Si,a=i.f,ju=S.set,I=A,i=p,A=P,Lu=Fa,p=k.MutationObserver||k.WebKitMutationObserver,P=k.document,Fu=k.process,Vu=k.Promise,a=a(k,"queueMicrotask"),a=a&&a.value,A=(a||(ku=function(){var e,t;for(Lu&&(e=Fu.domain)&&e.exit();Iu;){t=Iu.fn,Iu=Iu.next;try{t()}catch(e){throw Iu?Pu():xu=void 0,e}}xu=void 0,e&&e.enter()},Pu=I||Lu||A||!p||!P?!i&&Vu&&Vu.resolve?((I=Vu.resolve(void 0)).constructor=Vu,Uu=c(I.then,I),function(){Uu(ku)}):Lu?function(){Fu.nextTick(ku)}:(ju=c(ju,k),function(){ju(ku)}):(Du=!0,Mu=P.createTextNode(""),new p(ku).observe(Mu,{characterData:!0}),function(){Mu.data=Du=!Du})),a||function(e){e={fn:e,next:void 0};xu&&(xu.next=e),Iu||(Iu=e,Pu()),xu=e}),Hu=d,i=(Au.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}},Au),Vu=d.Promise,I="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,c=!I&&!Fa&&"object"==typeof window&&"object"==typeof document,k=d,Ku=Vu,P=m,p=ao,zu=R,a=w,Gu=c,Bu=I,qu=b,$u=(Ku&&Ku.prototype,a("species")),Xu=!1,Yu=P(k.PromiseRejectionEvent),R={CONSTRUCTOR:p("Promise",function(){var e=zu(Ku),t=e!==String(Ku);if(!t&&66===qu)return!0;if(!qu||qu<51||!/native code/.test(e)){var e=new Ku(function(e){e(1)}),r=function(e){e(function(){},function(){})};if((e.constructor={})[$u]=r,!(Xu=e.then(function(){})instanceof r))return!0}return!t&&(Gu||Bu)&&!Yu}),REJECTION_EVENT:Yu,SUBCLASSING:Xu},c={},Wu=er;c.f=function(e){return new Su(e)};function Ju(e,t){var r,n,o,i,a=t.value,s=1==t.state,u=s?e.ok:e.fail,c=e.resolve,l=e.reject,f=e.domain;try{u?(s||(2===t.rejection&&(i=t,nc(cc,rc,function(){var e=i.facade;tc?Tc.emit("rejectionHandled",e):Ac("rejectionhandled",e,i.value)})),t.rejection=1),!0===u?r=a:(f&&f.enter(),r=u(a),f&&(f.exit(),o=!0)),r===e.promise?l(Ec("Promise-chain cycle")):(n=Cc(r))?nc(n,r,c,l):c(r)):l(a)}catch(e){f&&!o&&f.exit(),l(e)}}var Zu,Qu,ec,I=N,tc=Fa,rc=d,nc=o,a=jn,P=wi,k=ns,p=Ps,oc=er,ic=m,ac=Jt,sc=Ds,uc=Qs,cc=S.set,lc=A,fc=Nu,pc=i,S=E,A=Vu,i=c,dc=R.CONSTRUCTOR,hc=R.REJECTION_EVENT,yc=R.SUBCLASSING,vc=S.getterFor("Promise"),mc=S.set,S=A&&A.prototype,gc=A,wc=S,Ec=rc.TypeError,bc=rc.document,Tc=rc.process,Rc=i.f,Oc=Rc,_c=!!(bc&&bc.createEvent&&rc.dispatchEvent),Cc=function(e){var t;return!(!ac(e)||!ic(t=e.then))&&t},Nc=function(r,o){r.notified||(r.notified=!0,lc(function(){for(var e,n,t=r.reactions;e=t.get();)Ju(e,r);r.notified=!1,o&&!r.rejection&&(n=r,nc(cc,rc,function(){var e,t=n.facade,r=n.value;if(Sc(n)&&(e=fc(function(){tc?Tc.emit("unhandledRejection",r,t):Ac("unhandledrejection",t,r)}),n.rejection=tc||Sc(n)?2:1,e.error))throw e.value}))}))},Ac=function(e,t,r){var n;_c?((n=bc.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),rc.dispatchEvent(n)):n={promise:t,reason:r},!hc&&(t=rc["on"+e])?t(n):"unhandledrejection"===e&&function(e,t){var r=Hu.console;r&&r.error&&(1==arguments.length?r.error(e):r.error(e,t))}("Unhandled promise rejection",r)},Sc=function(e){return 1!==e.rejection&&!e.parent},kc=function(t,r,n){return function(e){t(r,e,n)}},Ic=function(e,t,r){e.done||(e.done=!0,(e=r?r:e).value=t,e.state=2,Nc(e,!0))},xc=function(r,e,t){if(!r.done){r.done=!0,t&&(r=t);try{if(r.facade===e)throw Ec("Promise can't be resolved itself");var n=Cc(e);n?lc(function(){var t={done:!1};try{nc(n,e,kc(xc,t,r),kc(Ic,t,r))}catch(e){Ic(t,e,r)}}):(r.value=e,r.state=1,Nc(r,!1))}catch(e){Ic({done:!1},e,r)}}};if(dc&&(wc=(gc=function(e){sc(this,wc),oc(e),nc(Zu,this);var t=vc(this);try{e(kc(xc,t),kc(Ic,t))}catch(e){Ic(t,e)}}).prototype,(Zu=function(e){mc(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new pc,rejection:!1,state:0,value:void 0})}).prototype=a(wc,"then",function(e,t){var r=vc(this),n=Rc(uc(this,gc));return r.parent=!0,n.ok=!ic(e)||e,n.fail=ic(t)&&t,n.domain=tc?Tc.domain:void 0,0==r.state?r.reactions.add(n):lc(function(){Ju(n,r)}),n.promise}),Qu=function(){var e=new Zu,t=vc(e);this.promise=e,this.resolve=kc(xc,t),this.reject=kc(Ic,t)},i.f=Rc=function(e){return e===gc||void 0===e?new Qu:Oc(e)},ic(A)&&S!==Object.prototype)){ec=S.then,yc||a(S,"then",function(e,t){var r=this;return new gc(function(e,t){nc(ec,r,e,t)}).then(e,t)},{unsafe:!0});try{delete S.constructor}catch(j){}P&&P(S,wc)}I({global:!0,constructor:!0,wrap:!0,forced:dc},{Promise:gc}),k(gc,"Promise",!1),p("Promise");var Pc=w("iterator"),Dc=!1;try{var Mc=0,Uc={next:function(){return{done:!!Mc++}},return:function(){Dc=!0}};Uc[Pc]=function(){return this},Array.from(Uc,function(){throw 2})}catch(j){}function jc(e,t){if(!t&&!Dc)return!1;var r=!1;try{var n={};n[Pc]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r}function Lc(e,t){return tl(e),rl(t)&&t.constructor===e?t:((0,(e=nl.f(e)).resolve)(t),e.promise)}function Fc(o){return function(e,t){var r,e=Tl(Rl(e)),t=bl(t),n=e.length;return t<0||n<=t?o?"":void 0:(r=_l(e,t))<55296||56319<r||t+1===n||(n=_l(e,t+1))<56320||57343<n?o?Ol(e,t):r:o?Cl(e,t,t+2):n-56320+(r-55296<<10)+65536}}function Vc(e,t){if(e){if(e[Ml]!==jl)try{Dl(e,Ml,jl)}catch(t){e[Ml]=jl}if(e[Ul]||Dl(e,Ul,t),xl[t])for(var r in Pl)if(e[r]!==Pl[r])try{Dl(e,r,Pl[r])}catch(t){e[r]=Pl[r]}}}var Hc,Kc=Vu,i=R.CONSTRUCTOR||!jc(function(e){Kc.all(e).then(void 0,function(){})}),zc=o,Gc=er,Bc=c,qc=Nu,$c=Mi,A=(N({target:"Promise",stat:!0,forced:i},{all:function(e){var s=this,t=Bc.f(s),u=t.resolve,c=t.reject,r=qc(function(){var n=Gc(s.resolve),o=[],i=0,a=1;$c(e,function(e){var t=i++,r=!1;a++,zc(n,s,e).then(function(e){r||(r=!0,o[t]=e,--a||u(o))},c)}),--a||u(o)});return r.error&&c(r.value),t.promise}}),N),yc=Vu,a=Zt,P=m,S=jn,I=yc&&yc.prototype,Xc=(A({target:"Promise",proto:!0,forced:R.CONSTRUCTOR,real:!0},{catch:function(e){return this.then(void 0,e)}}),P(yc)&&(dc=a("Promise").prototype.catch,I.catch!==dc&&S(I,"catch",dc,{unsafe:!0})),o),Yc=er,Wc=c,Jc=Nu,Zc=Mi,Qc=(N({target:"Promise",stat:!0,forced:i},{race:function(e){var r=this,n=Wc.f(r),o=n.reject,t=Jc(function(){var t=Yc(r.resolve);Zc(e,function(e){Xc(t,r,e).then(n.resolve,o)})});return t.error&&o(t.value),n.promise}}),o),el=c,tl=(N({target:"Promise",stat:!0,forced:R.CONSTRUCTOR},{reject:function(e){var t=el.f(this);return Qc(t.reject,void 0,e),t.promise}}),ar),rl=Jt,nl=c,k=N,p=R.CONSTRUCTOR,ol=Lc,il=(Zt("Promise"),k({target:"Promise",stat:!0,forced:p},{resolve:function(e){return ol(this,e)}}),o),al=er,sl=c,ul=Nu,cl=Mi,ll=(N({target:"Promise",stat:!0},{allSettled:function(e){var s=this,t=sl.f(s),u=t.resolve,r=t.reject,n=ul(function(){var n=al(s.resolve),o=[],i=0,a=1;cl(e,function(e){var t=i++,r=!1;a++,il(n,s,e).then(function(e){r||(r=!0,o[t]={status:"fulfilled",value:e},--a||u(o))},function(e){r||(r=!0,o[t]={status:"rejected",reason:e},--a||u(o))})}),--a||u(o)});return n.error&&r(n.value),t.promise}}),o),fl=er,pl=Zt,dl=c,hl=Nu,yl=Mi,Uc=(N({target:"Promise",stat:!0},{any:function(e){var u=this,c=pl("AggregateError"),t=dl.f(u),l=t.resolve,f=t.reject,r=hl(function(){var n=fl(u.resolve),o=[],i=0,a=1,s=!1;yl(e,function(e){var t=i++,r=!1;a++,ll(n,u,e).then(function(e){r||s||(s=!0,l(e))},function(e){r||s||(r=!0,o[t]=e,--a||f(new c(o,"No one promise resolved")))})}),--a||f(new c(o,"No one promise resolved"))});return r.error&&f(r.value),t.promise}}),N),A=Vu,P=v,vl=Zt,ml=m,gl=Qs,wl=Lc,yc=jn,El=A&&A.prototype,S=(Uc({target:"Promise",proto:!0,real:!0,forced:!!A&&P(function(){El.finally.call({then:function(){}},function(){})})},{finally:function(t){var r=gl(this,vl("Promise")),e=ml(t);return this.then(e?function(e){return wl(r,t()).then(function(){return e})}:t,e?function(e){return wl(r,t()).then(function(){throw e})}:t)}}),ml(A)&&(a=vl("Promise").prototype.finally,El.finally!==a&&yc(El,"finally",a,{unsafe:!0})),e),bl=Ln,Tl=Ui,Rl=Yt,Ol=S("".charAt),_l=S("".charCodeAt),Cl=S("".slice),Nl=(Fc(!1),Fc(!0)),Al=Ui,I=E,dc=is,Sl=I.set,kl=I.getterFor("String Iterator"),i=(dc(String,"String",function(e){Sl(this,{type:"String Iterator",string:Al(e),index:0})},function(){var e=kl(this),t=e.string,r=e.index;return r>=t.length?{value:void 0,done:!0}:(t=Nl(t,r),e.index+=t.length,{value:t,done:!1})}),d),R=(i.Promise,ir("span").classList),k=R&&R.constructor&&R.constructor.prototype,p=k===Object.prototype?void 0:k,Il=d,xl={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},Vu=p,Pl=as,Dl=Jr,Uc=w,Ml=Uc("iterator"),Ul=Uc("toStringTag"),jl=Pl.values;for(Hc in xl)Vc(Il[Hc]&&Il[Hc].prototype,Hc);Vc(Vu,"DOMTokenList");function Ll(e,t,r){(t=lf(t))in e?ff.f(e,t,pf(0,r)):e[t]=r}function Fl(e){if(9007199254740991<e)throw kf("Maximum allowed index exceeded");return e}function Vl(e,t){return If(e=e)&&(r=e.constructor,(xf(r)&&(r===Mf||If(r.prototype))||Pf(r)&&null===(r=r[Df]))&&(r=void 0)),new(void 0===r?Mf:r)(0===t?0:t);var r}function Hl(t){return 51<=jf||!Uf(function(){var e=[];return(e.constructor={})[Lf]=function(){return{foo:1}},1!==e[t](Boolean).foo})}function Kl(e,t){if(!delete e[t])throw Xf("Cannot delete property "+$f(t)+" of "+$f(e))}function zl(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 o,i,a=rp(e),s=tp(a),u=ep(t,r),c=np(s),l=0,t=n||op,f=d?t(e,c):h||g?t(e,0):void 0;l<c;l++)if((w||l in s)&&(i=u(o=s[l],l,a),p))if(d)f[l]=i;else if(i)switch(p){case 3:return!0;case 5:return o;case 6:return l;case 2:ip(f,o)}else switch(p){case 4:return!1;case 7:ip(f,o)}return m?-1:y||v?v:f}}function Gl(e,t){var r=[][e];return!!r&&ap(function(){r.call(null,t||function(){return 1},1)})}function Bl(u){var c=1==u;return function(e,t,r){for(var n,o=gp(e),i=mp(o),a=vp(t,r),s=wp(i);0<s--;)if(a(n=i[s],s,o))switch(u){case 0:return n;case 1:return s}return c?-1:void 0}}function ql(e,t,r,n,o,i,a,s){for(var u,c,l=o,f=0,p=!!a&&_p(a,s);f<n;)f in r&&(u=p?p(r[f],f,t):r[f],0<i&&Tp(u)?(c=Rp(u),l=ql(e,t,u,c,l,i-1)-1):(Op(l+1),e[l]=u),l++),f++;return l}function $l(c){return function(e,t,r,n){ed(t);var o=td(e),i=rd(o),a=nd(o),s=c?a-1:0,u=c?-1:1;if(r<2)for(;;){if(s in i){n=i[s],s+=u;break}if(s+=u,c?s<0:a<=s)throw od("Reduce of empty array with no initial value")}for(;c?0<=s:s<a;s+=u)s in i&&(n=t(n,i[s],s,o));return n}}function Xl(e,t,r){for(var n=Td(e),o=bd(t,n),i=bd(void 0===r?n:r,n),a=Od(_d(i-o,0)),s=0;o<i;o++,s++)Rd(a,s,e[o]);return a.length=s,a}function Yl(e,t){var r=e.length,n=Nd(r/2);if(r<8){for(var o,i,a=e,s=t,u=a.length,c=1;c<u;){for(o=a[i=c];i&&0<s(a[i-1],o);)a[i]=a[--i];i!==c++&&(a[i]=o)}return a}for(var l=e,f=Yl(Cd(e,0,n),t),p=Yl(Cd(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 Wl(e){yh(e,bh,{value:{objectID:"O"+Th++,weakData:{}}})}function Jl(e,t,r){for(var n in t)xh(e,n,t[n],r);return e}var Zl,Ql,ef,tf,rf,nf,of,af=c,sf=Nu,uf=(N({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=af.f(this),e=sf(e);return(e.error?t.reject:t.resolve)(e.value),t.promise}}),ar),cf=Pi,lf=or,ff=O,pf=$t,df=Si,hf=o,yf=g,vf=ki,mf=qa,gf=C,wf=Ll,Ef=xi,bf=Ii,Tf=Array,Rf=(N({target:"Array",stat:!0,forced:!jc(function(e){Array.from(e)})},{from:function(e){var t=yf(e),e=mf(this),r=arguments.length,n=1<r?arguments[1]:void 0,o=void 0!==n;o&&(n=df(n,2<r?arguments[2]:void 0));var i,a,s,u,c,l,r=bf(t),f=0;if(!r||this===Tf&&vf(r))for(i=gf(t),a=e?new this(i):Tf(i);f<i;f++)l=o?n(t[f],f):t[f],wf(a,f,l);else for(c=(u=Ef(t,r)).next,a=e?new this:[];!(s=hf(c,u)).done;f++)l=o?function(e,t,r,n){try{return n?t(uf(r)[0],r[1]):t(r)}catch(t){cf(e,"throw",t)}}(u,n,[s.value,f],!0):s.value,wf(a,f,l);return a.length=f,a}}),Xt),P=Array.isArray||function(e){return"Array"==Rf(e)},Of=(N({target:"Array",stat:!0},{isArray:P}),qa),_f=Ll,Cf=Array,Nf=(N({target:"Array",stat:!0,forced:v(function(){function e(){}return!(Cf.of.call(e)instanceof e)})},{of:function(){for(var e=0,t=arguments.length,r=new(Of(this)?this:Cf)(t);e<t;)_f(r,e,arguments[e++]);return r.length=t,r}}),g),Af=C,Sf=Ln,A=x,kf=(N({target:"Array",proto:!0},{at:function(e){var t=Nf(this),r=Af(t),e=Sf(e),e=0<=e?e:r+e;return e<0||r<=e?void 0:t[e]}}),A("at"),TypeError),If=P,xf=qa,Pf=Jt,Df=w("species"),Mf=Array,Uf=v,jf=b,Lf=w("species"),yc=N,a=v,Ff=P,Vf=Jt,Hf=g,Kf=C,zf=Fl,Gf=Ll,Bf=Vl,S=Hl,I=b,qf=w("isConcatSpreadable"),dc=51<=I||!a(function(){var e=[];return e[qf]=!1,e.concat()[0]!==e}),R=S("concat"),$f=(yc({target:"Array",proto:!0,arity:1,forced:!dc||!R},{concat:function(e){for(var t,r,n,o=Hf(this),i=Bf(o,0),a=0,s=-1,u=arguments.length;s<u;s++)if(function(e){if(!Vf(e))return!1;var t=e[qf];return void 0!==t?!!t:Ff(e)}(n=-1===s?o:arguments[s]))for(r=Kf(n),zf(a+r),t=0;t<r;t++,a++)t in n&&Gf(i,a,n[t]);else zf(a+1),Gf(i,a++,n);return i.length=a,i}}),Qt),Xf=TypeError,Yf=g,Wf=Fn,Jf=C,Zf=Kl,Qf=Math.min,k=x,ep=(N({target:"Array",proto:!0},{copyWithin:[].copyWithin||function(e,t){var r=Yf(this),n=Jf(r),o=Wf(e,n),i=Wf(t,n),e=2<arguments.length?arguments[2]:void 0,a=Qf((void 0===e?n:Wf(e,n))-i,n-o),s=1;for(i<o&&o<i+a&&(s=-1,i+=a-1,o+=a-1);0<a--;)i in r?r[o]=r[i]:Zf(r,o),o+=s,i+=s;return r}}),k("copyWithin"),Si),tp=sr,rp=g,np=C,op=Vl,ip=e([].push),p={forEach:zl(0),map:zl(1),filter:zl(2),some:zl(3),every:zl(4),find:zl(5),findIndex:zl(6),filterReject:zl(7)},ap=v,sp=p.every,up=(N({target:"Array",proto:!0,forced:!Gl("every")},{every:function(e){return sp(this,e,1<arguments.length?arguments[1]:void 0)}}),g),cp=Fn,lp=C,as=x,fp=(N({target:"Array",proto:!0},{fill:function(e){for(var t=up(this),r=lp(t),n=arguments.length,o=cp(1<n?arguments[1]:void 0,r),n=2<n?arguments[2]:void 0,i=void 0===n?r:cp(n,r);o<i;)t[o++]=e;return t}}),as("fill"),p.filter),Jr=(N({target:"Array",proto:!0,forced:!Hl("filter")},{filter:function(e){return fp(this,e,1<arguments.length?arguments[1]:void 0)}}),N),pp=p.find,Uc=x,dp=!0,Vu=("find"in[]&&Array(1).find(function(){dp=!1}),Jr({target:"Array",proto:!0,forced:dp},{find:function(e){return pp(this,e,1<arguments.length?arguments[1]:void 0)}}),Uc("find"),N),hp=p.findIndex,c=x,yp=!0,vp=("findIndex"in[]&&Array(1).findIndex(function(){yp=!1}),Vu({target:"Array",proto:!0,forced:yp},{findIndex:function(e){return hp(this,e,1<arguments.length?arguments[1]:void 0)}}),c("findIndex"),Si),mp=sr,gp=g,wp=C,A={findLast:Bl(0),findLastIndex:Bl(1)},Ep=A.findLast,I=x,bp=(N({target:"Array",proto:!0},{findLast:function(e){return Ep(this,e,1<arguments.length?arguments[1]:void 0)}}),I("findLast"),A.findLastIndex),a=x,Tp=(N({target:"Array",proto:!0},{findLastIndex:function(e){return bp(this,e,1<arguments.length?arguments[1]:void 0)}}),a("findLastIndex"),P),Rp=C,Op=Fl,_p=Si,S=ql,Cp=S,Np=g,Ap=C,Sp=Ln,kp=Vl,Ip=(N({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=Np(this),r=Ap(t),n=kp(t,0);return n.length=Cp(n,t,t,r,0,void 0===e?1:Sp(e)),n}}),S),xp=er,Pp=g,Dp=C,Mp=Vl,Up=(N({target:"Array",proto:!0},{flatMap:function(e){var t,r=Pp(this),n=Dp(r);return xp(e),(t=Mp(r,0)).length=Ip(t,r,r,n,0,1,e,1<arguments.length?arguments[1]:void 0),t}}),p.forEach),yc=Gl("forEach")?[].forEach:function(e){return Up(this,e,1<arguments.length?arguments[1]:void 0)},jp=(N({target:"Array",proto:!0,forced:[].forEach!=yc},{forEach:yc}),oo.includes),dc=x,R=(N({target:"Array",proto:!0,forced:v(function(){return!Array(1).includes()})},{includes:function(e){return jp(this,e,1<arguments.length?arguments[1]:void 0)}}),dc("includes"),N),Lp=oo.indexOf,k=Gl,Fp=e([].indexOf),Vp=!!Fp&&1/Fp([1],1,-0)<0,as=k("indexOf"),Jr=(R({target:"Array",proto:!0,forced:Vp||!as},{indexOf:function(e){var t=1<arguments.length?arguments[1]:void 0;return Vp?Fp(this,e,t)||0:Lp(this,e,t)}}),N),Uc=sr,Hp=Wt,Vu=Gl,Kp=e([].join),c=Uc!=Object,I=Vu("join",","),zp=(Jr({target:"Array",proto:!0,forced:c||!I},{join:function(e){return Kp(Hp(this),void 0===e?",":e)}}),za),Gp=Wt,Bp=Ln,qp=C,A=Gl,$p=Math.min,Xp=[].lastIndexOf,Yp=!!Xp&&1/[1].lastIndexOf(1,-0)<0,a=A("lastIndexOf"),S=Yp||!a?function(e){if(Yp)return zp(Xp,this,arguments)||0;var t=Gp(this),r=qp(t),n=r-1;for((n=1<arguments.length?$p(n,Bp(arguments[1])):n)<0&&(n=r+n);0<=n;n--)if(n in t&&t[n]===e)return n||0;return-1}:Xp,Wp=(N({target:"Array",proto:!0,forced:S!==[].lastIndexOf},{lastIndexOf:S}),p.map),yc=(N({target:"Array",proto:!0,forced:!Hl("map")},{map:function(e){return Wp(this,e,1<arguments.length?arguments[1]:void 0)}}),N),Jp=g,Zp=C,Qp=Fl,dc=v(function(){return 4294967297!==[].push.call({length:4294967296},1)}),oo=!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}(),ed=(yc({target:"Array",proto:!0,arity:1,forced:dc||oo},{push:function(e){var t=Jp(this),r=Zp(t),n=arguments.length;Qp(r+n);for(var o=0;o<n;o++)t[r]=arguments[o],r++;return t.length=r}}),er),td=g,rd=sr,nd=C,od=TypeError,k={left:$l(!1),right:$l(!0)},id=k.left,R=b,as=Fa,ad=(N({target:"Array",proto:!0,forced:!Gl("reduce")||!as&&79<R&&R<83},{reduce:function(e){var t=arguments.length;return id(this,e,t,1<t?arguments[1]:void 0)}}),k.right),Uc=b,Vu=Fa,Jr=(N({target:"Array",proto:!0,forced:!Gl("reduceRight")||!Vu&&79<Uc&&Uc<83},{reduceRight:function(e){return ad(this,e,arguments.length,1<arguments.length?arguments[1]:void 0)}}),N),sd=P,ud=e([].reverse),c=[1,2],I=(Jr({target:"Array",proto:!0,forced:String(c)===String(c.reverse())},{reverse:function(){return sd(this)&&(this.length=this.length),ud(this)}}),N),cd=P,ld=qa,fd=Jt,pd=Fn,dd=C,hd=Wt,yd=Ll,za=w,vd=qr,A=Hl("slice"),md=za("species"),gd=Array,wd=Math.max,Ed=(I({target:"Array",proto:!0,forced:!A},{slice:function(e,t){var r,n,o,i=hd(this),a=dd(i),s=pd(e,a),u=pd(void 0===t?a:t,a);if(cd(i)&&(r=i.constructor,(r=ld(r)&&(r===gd||cd(r.prototype))||fd(r)&&null===(r=r[md])?void 0:r)===gd||void 0===r))return vd(i,s,u);for(n=new(void 0===r?gd:r)(wd(u-s,0)),o=0;s<u;s++,o++)s in i&&yd(n,o,i[s]);return n.length=o,n}}),p.some),bd=(N({target:"Array",proto:!0,forced:!Gl("some")},{some:function(e){return Ed(this,e,1<arguments.length?arguments[1]:void 0)}}),Fn),Td=C,Rd=Ll,Od=Array,_d=Math.max,Cd=Xl,Nd=Math.floor,a=Yl,S=br.match(/firefox\/(\d+)/i),yc=!!S&&+S[1],dc=/MSIE|Trident/.test(br),oo=br.match(/AppleWebKit\/(\d+)\./),as=!!oo&&+oo[1],R=N,k=e,Ad=er,Sd=g,kd=C,Id=Kl,xd=Ui,Fa=v,Pd=a,Vu=Gl,Dd=yc,Md=dc,Ud=b,jd=as,Ld=[],Fd=k(Ld.sort),Vd=k(Ld.push),Uc=Fa(function(){Ld.sort(void 0)}),Jr=Fa(function(){Ld.sort(null)}),c=Vu("sort"),Hd=!Fa(function(){if(Ud)return Ud<70;if(!(Dd&&3<Dd)){if(Md)return!0;if(jd)return jd<603;for(var e,t,r,n="",o=65;o<76;o++){switch(e=String.fromCharCode(o),o){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++)Ld.push({k:e+r,v:t})}for(Ld.sort(function(e,t){return t.v-e.v}),r=0;r<Ld.length;r++)e=Ld[r].k.charAt(0),n.charAt(n.length-1)!==e&&(n+=e);return"DGBEFHACIJK"!==n}}),qr=(R({target:"Array",proto:!0,forced:Uc||!Jr||!c||!Hd},{sort:function(e){void 0!==e&&Ad(e);var t=Sd(this);if(Hd)return void 0===e?Fd(t):Fd(t,e);for(var r,n,o=[],i=kd(t),a=0;a<i;a++)a in t&&Vd(o,t[a]);for(Pd(o,(n=e,function(e,t){return void 0===t?-1:void 0===e?1:void 0!==n?+n(e,t)||0:xd(e)>xd(t)?1:-1})),r=o.length,a=0;a<r;)t[a]=o[a++];for(;a<i;)Id(t,a++);return t}}),Ps("Array"),N),Kd=g,zd=Fn,Gd=Ln,Bd=C,qd=Fl,$d=Vl,Xd=Ll,Yd=Kl,za=Hl("splice"),Wd=Math.max,Jd=Math.min,I=(qr({target:"Array",proto:!0,forced:!za},{splice:function(e,t){var r,n,o,i,a,s,u=Kd(this),c=Bd(u),l=zd(e,c),e=arguments.length;for(0===e?r=n=0:n=1===e?(r=0,c-l):(r=e-2,Jd(Wd(Gd(t),0),c-l)),qd(c+r-n),o=$d(u,n),i=0;i<n;i++)(a=l+i)in u&&Xd(o,i,u[a]);if(r<(o.length=n)){for(i=l;i<c-n;i++)s=i+r,(a=i+n)in u?u[s]=u[a]:Yd(u,s);for(i=c;c-n+r<i;i--)Yd(u,i-1)}else if(n<r)for(i=c-n;l<i;i--)s=i+r-1,(a=i+n-1)in u?u[s]=u[a]:Yd(u,s);for(i=0;i<r;i++)u[i+l]=arguments[i+2];return u.length=c-n+r,o}}),x("flat"),x("flatMap"),N),Zd=g,Qd=C,eh=Kl,th=Fl,A=1!==[].unshift(0),S=!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}}(),br=(I({target:"Array",proto:!0,arity:1,forced:A||S},{unshift:function(e){var t=Zd(this),r=Qd(t),n=arguments.length;if(n){th(r+n);for(var o=r;o--;){var i=o+n;o in t?t[i]=t[o]:eh(t,i)}for(var a=0;a<n;a++)t[a]=arguments[a]}return t.length=r+n}}),i.Array,{exports:{}}),oo={},rh=Xt,nh=Wt,oh=T.f,ih=Xl,ah="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=(oo.f=function(e){if(!ah||"Window"!=rh(e))return oh(nh(e));var t=e;try{return oh(t)}catch(t){return ih(ah)}},v(function(){var e;"function"==typeof ArrayBuffer&&(e=new ArrayBuffer(8),Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8}))})),yc=v,sh=Jt,uh=Xt,ch=a,lh=Object.isExtensible,dc=yc(function(){lh(1)})||ch?function(e){return!!sh(e)&&(!ch||"ArrayBuffer"!=uh(e))&&(!lh||lh(e))}:lh,b=!v(function(){return Object.isExtensible(Object.preventExtensions({}))}),fh=N,ph=e,as=Zn,dh=Jt,hh=Br,yh=O.f,vh=T,mh=oo,gh=dc,wh=b,Eh=!1,bh=nr("meta"),Th=0,Rh=br.exports={enable:function(){Rh.enable=function(){},Eh=!0;var o=vh.f,i=ph([].splice),e={};e[bh]=1,o(e).length&&(vh.f=function(e){for(var t=o(e),r=0,n=t.length;r<n;r++)if(t[r]===bh){i(t,r,1);break}return t},fh({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:mh.f}))},fastKey:function(e,t){if(!dh(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!hh(e,bh)){if(!gh(e))return"F";if(!t)return"E";Wl(e)}return e[bh].objectID},getWeakData:function(e,t){if(!hh(e,bh)){if(!gh(e))return!0;if(!t)return!1;Wl(e)}return e[bh].weakData},onFreeze:function(e){return wh&&Eh&&gh(e)&&!hh(e,bh)&&Wl(e),e}},Oh=(as[bh]=!0,m),_h=Jt,Ch=wi,k=N,Vu=d,Nh=e,Fa=ao,Ah=jn,R=br.exports,Sh=Mi,kh=Ds,Uc=m,Ih=Jt,Jr=v,c=jc,qr=ns,xh=jn,Ph=O.f,Dh=Ei,Mh=Jl,Uh=Si,jh=Ds,Lh=Mi,Fh=is,Vh=Ps,Hh=n,Kh=br.exports.fastKey,zh=E.set,Gh=E.getterFor;function Bh(e){var r=Nh(nf[e]);Ah(nf,e,"add"==e?function(e){return r(this,0===e?0:e),this}:"delete"==e?function(e){return!(ef&&!Ih(e))&&r(this,0===e?0:e)}:"get"==e?function(e){return ef&&!Ih(e)?void 0:r(this,0===e?0:e)}:"has"==e?function(e){return!(ef&&!Ih(e))&&r(this,0===e?0:e)}:function(e,t){return r(this,0===e?0:e,t),this})}za=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},I={getConstructor:function(e,r,n,o){function i(e,t,r){var n,o=u(e),i=a(e,t);return i?i.value=r:(o.last=i={index:n=Kh(t,!0),key:t,value:r,previous:t=o.last,next:void 0,removed:!1},o.first||(o.first=i),t&&(t.next=i),Hh?o.size++:e.size++,"F"!==n&&(o.index[n]=i)),e}function a(e,t){var r,e=u(e),n=Kh(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){jh(e,s),zh(e,{type:r,index:Dh(null),first:void 0,last:void 0,size:0}),Hh||(e.size=0),null!=t&&Lh(t,e[o],{that:e,AS_ENTRIES:n})}),s=e.prototype,u=Gh(r);return Mh(s,{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,Hh?e.size=0:this.size=0},delete:function(e){var t,r,n=u(this),e=a(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),Hh?n.size--:this.size--),!!e},forEach:function(e){for(var t,r=u(this),n=Uh(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!!a(this,e)}}),Mh(s,n?{get:function(e){e=a(this,e);return e&&e.value},set:function(e,t){return i(this,0===e?0:e,t)}}:{add:function(e){return i(this,e=0===e?0:e,e)}}),Hh&&Ph(s,"size",{get:function(){return u(this).size}}),e},setStrong:function(e,t,r){var n=t+" Iterator",o=Gh(t),i=Gh(n);Fh(e,t,function(e,t){zh(this,{type:n,target:e,state:o(e),kind:t,last:void 0})},function(){for(var e=i(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),Vh(t)}},Ql=-1!==(A="Map").indexOf("Map"),ef=-1!==A.indexOf("Weak"),tf=Ql?"set":"add",rf=Vu.Map,nf=rf&&rf.prototype,S={},Fa(A,!Uc(of=rf)||!(ef||nf.forEach&&!Jr(function(){(new rf).entries().next()})))?(of=I.getConstructor(za,A,Ql,tf),R.enable()):Fa(A,!0)&&(i=(Zl=new of)[tf](ef?{}:-0,1)!=Zl,a=Jr(function(){Zl.has(1)}),yc=c(function(e){new rf(e)}),Zn=!ef&&Jr(function(){for(var e=new rf,t=5;t--;)e[tf](t,t);return!e.has(-0)}),yc||(((of=za(function(e,t){kh(e,nf);r=new rf,e=e,n=of,Ch&&Oh(e=e.constructor)&&e!==n&&_h(e=e.prototype)&&e!==n.prototype&&Ch(r,e);var r,n=r;return null!=t&&Sh(t,n[tf],{that:n,AS_ENTRIES:Ql}),n})).prototype=nf).constructor=of),(a||Zn)&&(Bh("delete"),Bh("has"),Ql&&Bh("get")),(Zn||i)&&Bh(tf),ef&&nf.clear&&delete nf.clear),S.Map=of,k({global:!0,constructor:!0,forced:of!=rf},S),qr(of,A),ef||I.setStrong(of,A,Ql);function qh(e,t){for(var r=0,n=Wh(t),o=new e(n);r<n;)o[r]=t[r++];return o}function $h(e,t,r,n){for(var o,i,a,s=Qh(e),u=Zh(s),c=Jh(t,r),l=ry(null),f=ty(u),p=0;p<f;p++)a=u[p],(i=ey(c(a,p,s)))in l?iy(l[i],a):l[i]=[a];if(n&&(o=n(s))!==oy)for(i in l)l[i]=ny(o,l[i]);return l}function Xh(e){for(var t,r,n=ly(this),o=cy(n),i=uy(e,1<arguments.length?arguments[1]:void 0),a=new py,s=fy(o),u=0;u<s;u++)t=i(r=o[u],u,n),hy(a,t)?vy(dy(a,t),r):yy(a,t,[r]);return a}function Yh(e){return Ey[e].prototype}var Wh=C,Jh=Si,Zh=sr,Qh=g,ey=or,ty=C,ry=Ei,ny=qh,oy=Array,iy=e([].push),ay=$h,Br=x,sy=(N({target:"Array",proto:!0},{group:function(e){return ay(this,e,1<arguments.length?arguments[1]:void 0)}}),Br("group"),$h),T=x,uy=(N({target:"Array",proto:!0,forced:!Gl("groupBy")},{groupBy:function(e){return sy(this,e,1<arguments.length?arguments[1]:void 0)}}),T("groupBy"),Si),oo=e,cy=sr,ly=g,fy=C,py=Zt("Map"),dc=py.prototype,dy=oo(dc.get),hy=oo(dc.has),yy=oo(dc.set),vy=oo([].push),b=x,as=Xh,wi=(N({target:"Array",proto:!0,name:"groupToMap",forced:!Gl("groupByToMap")},{groupByToMap:as}),b("groupByToMap"),x),my=(N({target:"Array",proto:!0},{groupToMap:Xh}),wi("groupToMap"),C),gy=Wt,ao=x,wy=Array,Ey=(N({target:"Array",proto:!0},{toReversed:function(){for(var e=gy(this),t=wy,r=my(e),n=new t(r),o=0;o<r;o++)n[o]=e[r-o-1];return n}}),ao("toReversed"),d),br=N,by=er,Ty=Wt,Ry=qh,Vu=x,Oy=Array,_y=e(Yh("Array").sort),Fa=(br({target:"Array",proto:!0},{toSorted:function(e){void 0!==e&&by(e);var t=Ty(this),t=Ry(Oy,t);return _y(t,e)}}),Vu("toSorted"),N),c=x,Cy=Fl,Ny=C,Ay=Fn,Sy=Wt,ky=Ln,Iy=Array,xy=Math.max,Py=Math.min,Dy=(Fa({target:"Array",proto:!0},{toSpliced:function(e,t){var r,n,o,i,a=Sy(this),s=Ny(a),u=Ay(e,s),e=arguments.length,c=0;for(0===e?r=n=0:n=1===e?(r=0,s-u):(r=e-2,Py(xy(ky(t),0),s-u)),o=Cy(s+r-n),i=Iy(o);c<u;c++)i[c]=a[c];for(;c<u+r;c++)i[c]=arguments[c-u+2];for(;c<o;c++)i[c]=a[c+n-r];return i}}),c("toSpliced"),C),My=Ln,Uy=RangeError,jy=Wt,Ly=Array;N({target:"Array",proto:!0},{with:function(e,t){var r=jy(this),n=Ly,o=t,i=Dy(r),a=(e=My(e))<0?i+e:e;if(i<=a||a<0)throw Uy("Incorrect index");for(var s=new n(i),u=0;u<i;u++)s[u]=u===a?o:r[u];return s}});Jr=d,yc=Fr,za=m,a=_,Zn=jn,i=w("asyncIterator"),k=Jr.AsyncIterator,S=yc.AsyncIteratorPrototype;if(S)im=S;else if(za(k))im=k.prototype;else if(yc.USE_FUNCTION_CONSTRUCTOR||Jr.USE_FUNCTION_CONSTRUCTOR)try{om=a(a(a(Function("return async function*(){}()")()))),a(om)===Object.prototype&&(im=om)}catch(j){}za((im=im||{})[i])||Zn(im,i,function(){return this});function Fy(e,t,r){var n=e.done;Xy.resolve(e.value).then(function(e){t({done:n,value:e})},r)}function Vy(e){Yy(this,{type:"AsyncFromSyncIterator",iterator:qy(e),next:e.next})}function Hy(e,t,r,n){try{var o=sv(e,"return");if(o)return av("Promise").resolve(iv(o,e)).then(function(){t(r)},function(e){n(e)})}catch(e){return n(e)}t(r)}function Ky(e){var p=0==e,d=1==e,h=2==e,y=3==e;return function(e,a,s){var e={iterator:e,next:nv(ov(e).next)},u=pv("Promise"),c=e.iterator,t=e.next,l=0,f=void 0!==a;return!f&&p||cv(a),new u(function(r,n){var o=function(e){Hy(c,n,e,n)},i=function(){try{if(p&&f)try{fv(l)}catch(e){o(e)}u.resolve(lv(uv(t,c))).then(function(e){try{if(lv(e).done)p?(s.length=l,r(s)):r(!y&&(h||void 0));else{var t=e.value;try{f?u.resolve(p?a(t,l):a(t)).then(function(e){if(d)i();else if(h)e?i():Hy(c,r,!1,n);else if(p)try{s[l++]=e,i()}catch(e){o(e)}else e?Hy(c,r,y||t,n):i()},o):(s[l++]=t,i())}catch(e){o(e)}}}catch(e){n(e)}},n)}catch(e){n(e)}};i()})}}function zy(e,t){if(!Nv||!Cv(e)||!Nv(e))return!1;for(var r,n=0,o=e.length;n<o;)if(!("string"==typeof(r=e[n++])||t&&void 0===r))return!1;return 0!==o}function Gy(e,t,r){r.get&&Av(r.get,t,{getter:!0}),r.set&&Av(r.set,t,{setter:!0}),Sv.f(e,t,r)}var By=o,qy=ar,qr=Ei,$y=tr,I=Jl,A=E,Br=im,Xy=Zt("Promise"),Yy=A.set,Wy=A.getterFor("AsyncFromSyncIterator"),T=(Vy.prototype=I(qr(Br),{next:function(){var n=Wy(this);return new Xy(function(e,t){var r=qy(By(n.next,n.iterator));Fy(r,e,t)})},return:function(){var n=Wy(this).iterator;return new Xy(function(e,t){var r=$y(n,"return");if(void 0===r)return e({done:!0,value:void 0});r=qy(By(r,n));Fy(r,e,t)})}}),Vy),Jy=o,Zy=T,Qy=ar,ev=xi,tv=tr,rv=w("asyncIterator"),nv=er,ov=ar,iv=o,av=Zt,sv=tr,uv=o,cv=er,lv=ar,fv=Fl,pv=Zt,sr={toArray:Ky(0),forEach:Ky(1),every:Ky(2),some:Ky(3),find:Ky(4)},dv=Si,hv=g,yv=qa,vv=xi,mv=Ii,gv=tr,dc=Yh,wv=Zt,Ev=T,bv=sr.toArray,Tv=w("asyncIterator"),Rv=dc("Array").values,Ov=(N({target:"Array",stat:!0,forced:!0},{fromAsync:function(i){var a=this,e=arguments.length,s=1<e?arguments[1]:void 0,u=2<e?arguments[2]:void 0;return new(wv("Promise"))(function(e){var t=hv(i),r=(void 0!==s&&(s=dv(s,u)),gv(t,Tv)),n=r?void 0:mv(t)||Rv,o=yv(a)?new a:[],r=r?function(e,t){t=arguments.length<2?tv(e,rv):t;return t?Qy(Jy(t,e)):new Zy(ev(e))}(t,r):new Ev(vv(t,n));e(bv(r,s,o))})}}),p.filterReject),oo=x,_v=(N({target:"Array",proto:!0,forced:!0},{filterOut:function(e){return Ov(this,e,1<arguments.length?arguments[1]:void 0)}}),oo("filterOut"),p.filterReject),as=x,b=(N({target:"Array",proto:!0,forced:!0},{filterReject:function(e){return _v(this,e,1<arguments.length?arguments[1]:void 0)}}),as("filterReject"),N),Cv=P,Nv=Object.isFrozen,Av=(b({target:"Array",stat:!0,sham:!0,forced:!0},{isTemplateObject:function(e){if(!zy(e,!0))return!1;var t=e.raw;return t.length===e.length&&zy(t,!1)}}),Nr.exports),Sv=O,wi=x,kv=g,Iv=C,ao=(n&&(Gy(Array.prototype,"lastItem",{configurable:!0,get:function(){var e=kv(this),t=Iv(e);return 0==t?void 0:e[t-1]},set:function(e){var t=kv(this),r=Iv(t);return t[0==r?0:r-1]=e}}),wi("lastItem")),x),xv=g,Pv=C,br=(n&&(Gy(Array.prototype,"lastIndex",{configurable:!0,get:function(){var e=xv(this),e=Pv(e);return 0==e?0:e-1}}),ao("lastIndex")),e),Dv=er,Mv=C,Uv=g,jv=Vl,Lv=Zt("Map"),Vu=Lv.prototype,Fv=br(Vu.forEach),Vv=br(Vu.has),Hv=br(Vu.set),Kv=br([].push),Fa=x;N({target:"Array",proto:!0,forced:!0},{uniqueBy:function(e){for(var t,r,n=Uv(this),o=Mv(n),i=jv(n,0),a=new Lv,s=null!=e?Dv(e):function(e){return e},u=0;u<o;u++)r=s(t=n[u]),Vv(a,r)||Hv(a,r,t);return Fv(a,function(e){Kv(i,e)}),i}}),Fa("uniqueBy");Ng.prototype.start=function(){this.timeoutId=setTimeout(this.callback,this.timeout)},Ng.prototype.refresh=function(){this.stop(),this.start()},Ng.prototype.stop=function(){this.timeoutId&&clearTimeout(this.timeoutId)};var zv,Gv=Ng,Bv=(Cg.prototype.start=function(){this.started=!0},Cg.prototype.stop=function(){this.started=!1;var e=this.sink(this.buffer,!0);return this.buffer=[],this.timer.stop(),e},Cg.prototype.enqueue=function(e){this.started&&(0===this.buffer.length&&this.timer.refresh(),this.buffer.push(e),this.buffer.length>=this.maxQueueSize&&this.flush())},Cg.prototype.flush=function(){this.sink(this.buffer),this.buffer=[],this.timer.stop()},Cg.prototype.close=function(){this.stop()},Cg),qv=(_g.prototype.drainQueue=function(t,r){var n=this;return new Promise(function(e){0!==t.length?r?n.eventDispatcher.dispatchXhrOrBeacon(t,function(){e()}):n.eventDispatcher.dispatch(t,function(){e()}):e()})},_g.prototype.process=function(e){this.queue.enqueue(e)},_g.prototype.start=function(){return e=this,u=function(){return V(this,function(e){return this.queue.start(),[2]})},new(s=(s=a=void 0)||Promise)(function(r,t){function n(e){try{i(u.next(e))}catch(e){t(e)}}function o(e){try{i(u.throw(e))}catch(e){t(e)}}function i(e){var t;e.done?r(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(n,o)}i((u=u.apply(e,a||[])).next())});var e,a,s,u},_g.prototype.stop=function(){try{this.queue.close()}catch(e){}return Promise.resolve()},_g.prototype.flush=function(){this.queue.flush()},_g.prototype.close=function(){this.stop()},_g),$v=(Og.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]})},Og),Xv=(Rg.prototype.process=function(e){this.exposureEventDedupDeterminer.isDedupTarget(e)||this.delegate.process(e)},Rg.prototype.close=function(){this.delegate.close()},Rg.prototype.flush=function(){this.delegate.flush()},Rg.prototype.start=function(){return this.delegate.start()},Rg),Yv=(Tg.prototype.isDedupTarget=function(e){if(-1===this.exposureEventDedupIntervalMillis)return!1;if(!Je.isExposure(e))return!1;$v.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)},Tg),Wv=(bg.toEvent=function(e){var t;return{key:bg.EVENT_KEY,properties:{level:bg.LEVEL_ERROR,type:e.name,message:null!=(t=e.message)?t:"",$stacktrace:bg._stacktrace(e)}}},bg._stacktrace=function(e){return s.isNullOrUndefined(e.stack)?"":e.stack.split("\n").slice(0,bg.STACK_TRACK_LIMIT).join("\n")},bg.EVENT_KEY="$trace",bg.LEVEL_ERROR="error",bg.STACK_TRACK_LIMIT=30,bg),Jv=H.log,Zv=(Eg.prototype._experiment=function(e,t,r){if(!e)return Jv.error("experimentKey must not be empty"),fe.of(r,u.INVALID_INPUT);var n=this.workspaceFetcher.get();if(!n)return Jv.warn("SDK not ready."),fe.of(r,u.SDK_NOT_READY);e=n.getExperimentOrNull(e);if(!e)return Jv.warn("Experiment does not exist."),fe.of(r,u.EXPERIMENT_NOT_FOUND);n=this.evaluator.evaluate(n,e,t,r),this.eventProcessor.process(Je.exposure(e,t,n)),e=null!=(r=n.config)?r:new he;return fe.of(n.variationKey,n.reason,e)},Eg.prototype._featureFlag=function(e,t){if(!e)return Jv.error("featureKey must not be empty"),pe.off(u.INVALID_INPUT);var r=this.workspaceFetcher.get();if(!r)return Jv.warn("SDK not ready."),pe.off(u.SDK_NOT_READY);var e=r.getFeatureFlagOrNull(e);if(!e)return Jv.warn("FeatureFlag does not exist."),pe.off(u.FEATURE_FLAG_NOT_FOUND);r=this.evaluator.evaluate(r,e,t,"A"),this.eventProcessor.process(Je.exposure(e,t,r)),t=null!=(e=r.config)?e:new he;return"A"===r.variationKey?pe.off(r.reason,t):pe.on(r.reason,t)},Eg.prototype._track=function(e,t){var r;e?"object"==typeof e?"object"!=typeof e||e.key&&"string"==typeof e.key?(r=(null==(r=this.workspaceFetcher.get())?void 0:r.getEventTypeOrNull(e.key))||new W(0,e.key),this.eventProcessor.process(Je.track(r,e,t))):Jv.warn("Event key must be not null. or event key must be string type."):Jv.warn("Event must be event type."):Jv.warn("event must not be null.")},Eg.prototype._trackException=function(e,t){this.errorDedupDeterminer.isDedupTarget(e)||(e=Wv.toEvent(e),this._flush(),this._track(e,t),this._flush())},Eg.prototype._flush=function(){this.eventProcessor.flush()},Eg.prototype._remoteConfig=function(e,t,r,n){var o=this.workspaceFetcher.get();if(s.isNullOrUndefined(o))return Jv.warn("SDK not ready."),le.of(n,u.SDK_NOT_READY);e=o.getRemoteConfigParameterOrNull(e);if(s.isNullOrUndefined(e))return Jv.warn("Remote config parameter does not exist."),le.of(n,u.REMOTE_CONFIG_PARAMETER_NOT_FOUND);o=this.evaluator.remoteConfigEvaluate(o,e,t,r,n);return this.eventProcessor.process(Je.remoteConfig(e,t,o)),le.of(o.value,o.reason)},Eg.prototype._onReady=function(e,t){this._onInitialized({timeout:t=void 0===t?3e3:t}).then(function(){return e()})},Eg.prototype._onInitialized=function(e){var t,e=e.timeout,e=void 0===e?3e3:e,r=(Jv.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?Jv.debug("HackleClient onInitialized Success"):e.error instanceof Error?Jv.error("HackleClient onInitialized Failed. ".concat(e.error.message)):Jv.error("HackleClient onInitialized Failed. ".concat(e.error)),Promise.resolve({success:e.success})})},Eg.prototype._close=function(){this.workspaceFetcher.close(),this.eventProcessor.close()},Eg),Qv=(wg.prototype.isDedupTarget=function(e){return!!this._isSameError(e,this.previous)||(this.previous=e,!1)},wg.prototype._isSameError=function(e,t){return!s.isNullOrUndefined(t)&&e.name===t.name&&e.message===t.message&&e.stack===t.stack},wg),em=(gg.of=function(e,t,r,n){t=t._getVariationByKeyOrNull(r);return s.isNotNullOrUndefined(t)?gg.withVariation(e,t,n):new gg(void 0,r,n,void 0)},gg.withVariation=function(e,t,r){e=this.config(e,t);return new gg(t.id,t.key,r,e)},gg.config=function(e,t){if(!s.isNullOrUndefined(t.parameterConfigurationId))return s.requiredNotNullOrUndefined(e.getParameterConfigurationOrNull(t.parameterConfigurationId),function(){return"ParameterConfiguration[".concat(t.parameterConfigurationId,"]")})},gg),tm=(mg.withRemoteConfigParameterValue=function(e,t,r,n,o){var i=null;switch(r){case"STRING":"string"==typeof e.rawValue&&(i=e.rawValue);break;case"NUMBER":"number"==typeof e.rawValue&&(i=e.rawValue);break;case"BOOLEAN":"boolean"==typeof e.rawValue&&(i=e.rawValue)}return s.isNotNullOrUndefined(i)?(o.returnValue=i,new mg(e.id,i,t,o)):new mg(void 0,o.returnValue=n,u.TYPE_MISMATCH,o)},mg),rm=(vg.prototype.evaluate=function(e,t,r,n){return this.evaluationFlowFactory.getFlow(t.type).evaluate(e,t,r,n)},vg.prototype.remoteConfigEvaluate=function(e,t,r,n,o){var i={};if(i.requestValueType=n,i.requestDefaultValue=o,s.isNullOrUndefined(r.identifiers[t.identifierType]))return new tm(void 0,o,u.IDENTIFIER_NOT_FOUND,i);e=this.evaluationFlowFactory.getRemoteConfigParameterTargetRuleDeterminer().determineTargetRuleOrNull(e,t,r);return e?(i.targetRuleKey=e.key,i.targetRuleName=e.name,tm.withRemoteConfigParameterValue(e.value,u.TARGET_RULE_MATCH,n,o,i)):tm.withRemoteConfigParameterValue(t.defaultValue,u.DEFAULT_RULE,n,o,i)},vg),nm=(yg.prototype.matches=function(e,t,r){var n=this;return e.conditions.every(function(e){return n._matches(e,t,r)})},yg.prototype._matches=function(e,t,r){return this.conditionMatcherFactory.getMatcher(e.key.type).matches(e,t,r)},yg),c=(hg.prototype.matches=function(t,e){var r=this.valueMatcherFactory.getMatcher(e.valueType),n=this.operatorMatcherFactory.getMatcher(e.operator),o=e.values.some(function(e){return r.matches(n,t,e)});return this._matches(e.type,o)},hg.prototype._matches=function(e,t){switch(e){case"MATCH":return t;case"NOT_MATCH":return!t}},hg),d=(dg.prototype.booleanMatches=function(e,t){return e===t},dg.prototype.numberMatches=function(e,t){return e===t},dg.prototype.stringMatches=function(e,t){return e===t},dg.prototype.versionMatches=function(e,t){return e.isEqualTo(t)},dg),Fr=(pg.prototype.booleanMatches=function(e,t){return!1},pg.prototype.numberMatches=function(e,t){return!1},pg.prototype.stringMatches=function(e,t){return e.includes(t)},pg.prototype.versionMatches=function(e,t){return!1},pg),_=(fg.prototype.booleanMatches=function(e,t){return!1},fg.prototype.numberMatches=function(e,t){return!1},fg.prototype.stringMatches=function(e,t){return e.startsWith(t)},fg.prototype.versionMatches=function(e,t){return!1},fg),S=(lg.prototype.booleanMatches=function(e,t){return!1},lg.prototype.numberMatches=function(e,t){return!1},lg.prototype.stringMatches=function(e,t){return e.endsWith(t)},lg.prototype.versionMatches=function(e,t){return!1},lg),k=(cg.prototype.booleanMatches=function(e,t){return!1},cg.prototype.numberMatches=function(e,t){return t<e},cg.prototype.stringMatches=function(e,t){return!1},cg.prototype.versionMatches=function(e,t){return e.isGreaterThan(t)},cg),yc=(ug.prototype.booleanMatches=function(e,t){return!1},ug.prototype.numberMatches=function(e,t){return t<=e},ug.prototype.stringMatches=function(e,t){return!1},ug.prototype.versionMatches=function(e,t){return e.isGreaterThanOrEqualTo(t)},ug),Jr=(sg.prototype.booleanMatches=function(e,t){return!1},sg.prototype.numberMatches=function(e,t){return e<t},sg.prototype.stringMatches=function(e,t){return!1},sg.prototype.versionMatches=function(e,t){return e.isLessThan(t)},sg),a=(ag.prototype.booleanMatches=function(e,t){return!1},ag.prototype.numberMatches=function(e,t){return e<=t},ag.prototype.stringMatches=function(e,t){return!1},ag.prototype.versionMatches=function(e,t){return e.isLessThanOrEqualTo(t)},ag),om=(ig.prototype.getMatcher=function(e){switch(e){case"IN":return ig.IN_MATCHER;case"CONTAINS":return ig.CONTAINS_MATCHER;case"STARTS_WITH":return ig.STARTS_WITH_MATCHER;case"ENDS_WITH":return ig.ENDS_WITH_MATCHER;case"GT":return ig.GT_MATCHER;case"GTE":return ig.GTE_MATCHER;case"LT":return ig.LT_MATCHER;case"LTE":return ig.LTE_MATCHER}},ig.IN_MATCHER=new d,ig.CONTAINS_MATCHER=new Fr,ig.STARTS_WITH_MATCHER=new _,ig.ENDS_WITH_MATCHER=new S,ig.GT_MATCHER=new k,ig.GTE_MATCHER=new yc,ig.LT_MATCHER=new Jr,ig.LTE_MATCHER=new a,ig),za=(og.prototype.matches=function(e,t,r){return"string"==typeof t&&"string"==typeof r&&e.stringMatches(t,r)},og),Zn=(ng.prototype.matches=function(e,t,r){return"number"==typeof t&&"number"==typeof r&&e.numberMatches(t,r)},ng),i=(rg.prototype.matches=function(e,t,r){return"boolean"==typeof t&&"boolean"==typeof r&&e.booleanMatches(t,r)},rg),Ei=(tg.prototype.matches=function(e,t,r){t=Ue.tryParse(t),r=Ue.tryParse(r);return!(!t||!r)&&e.versionMatches(t,r)},tg),E=(eg.prototype.getMatcher=function(e){switch(e){case"STRING":case"JSON":return eg.STRING_MATCHER;case"NUMBER":return eg.NUMBER_MATCHER;case"BOOLEAN":return eg.BOOLEAN_MATCHER;case"VERSION":return eg.VERSION_MATCHER}},eg.STRING_MATCHER=new za,eg.NUMBER_MATCHER=new Zn,eg.BOOLEAN_MATCHER=new i,eg.VERSION_MATCHER=new Ei,eg),im=(Qm.prototype.matches=function(e,t,r){r=this.userValueResolver.resolveOrNull(r,e.key);return!s.isNullOrUndefined(r)&&this.valueOperatorMatcher.matches(r,e.match)},Qm),A=(Zm.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,"]"))}},Zm),I=(Jm.prototype.matches=function(e,t,r){var n=this;if("SEGMENT"!=e.key.type)throw new Error("Unsupported TargetKeyType [".concat(e.key.type,"]"));var o=e.match.values.some(function(e){return n._matches(e,t,r)});switch(e.match.type){case"MATCH":return o;case"NOT_MATCH":return!o}},Jm.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,"]"))},Jm),qr=(Wm.prototype.matches=function(e,t,r){var n=this;return e.targets.some(function(e){return n._matches(e,t,r)})},Wm.prototype._matches=function(e,t,r){var n=this;return e.conditions.every(function(e){return n.userConditionMatcher.matches(e,t,r)})},Wm),am=(Ym.prototype.getMatcher=function(e){switch(e){case"USER_ID":case"USER_PROPERTY":case"HACKLE_PROPERTY":return Ym.USER_CONDITION_MATCHER;case"SEGMENT":return Ym.SEGMENT_CONDITION_MATCHER}},Ym.USER_CONDITION_MATCHER=new im(new A,new c(new E,new om)),Ym.SEGMENT_CONDITION_MATCHER=new I(new qr(Ym.USER_CONDITION_MATCHER)),Ym),sm=(Xm.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)}},Xm.prototype._resolveVariation=function(e,t){return t._getVariationByIdOrNull(e.variationId)},Xm.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)}},Xm),um={murmurhash3_x86_32:function(e,t,r,n){for(var o,i=3432918353,a=461845907,s=-4&(n=void 0===n?e.length:n),u=t,c=0;c<s;c+=4)o=255&e.charCodeAt(c)|(255&e.charCodeAt(c+1))<<8|(255&e.charCodeAt(c+2))<<16|(255&e.charCodeAt(c+3))<<24,o=(131071&(o=this.mul32(o,i)))<<15|o>>>17,u=5*((524287&(u^=o=this.mul32(o,a)))<<13|u>>>19)+3864292196|0;switch(o=0,n%4){case 3:o=(255&e.charCodeAt(2+s))<<16;case 2:o|=(255&e.charCodeAt(1+s))<<8;case 1:o|=255&e.charCodeAt(s),o=(131071&(o=this.mul32(o,i)))<<15|o>>>17,u^=o=this.mul32(o,a)}return u=this.mul32(u=(u^=n)^u>>>16,2246822507),(u=this.mul32(u^=u>>>13,3266489909))^u>>>16},mul32:function(e,t){var r=65535&t;return((t-r)*e|0)+(r*e|0)|0}},cm=($m.prototype.bucketing=function(e,t){var r=this.calculateSlotNumber(e.seed,e.slotSize,t);return e.slots.find(function(e){return e.contains(r)})},$m.prototype.calculateSlotNumber=function(e,t,r){r=um.murmurhash3_x86_32(r,e);return Math.abs(r)%Math.abs(t)},$m),lm=(qm.prototype.evaluate=function(e,t,r,n){return this.flowEvaluator&&this.nextFlow?this.flowEvaluator.evaluate(e,t,r,n,this.nextFlow):em.of(e,t,n,u.TRAFFIC_NOT_ALLOCATED)},qm.of=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=new qm,n=0,o=e.reverse();n<o.length;n++)r=new qm(o[n],r);return r},qm),fm=(Bm.prototype.evaluate=function(e,t,r,n,o){var i=this.overrideResolver.resolveOrNull(e,t,r);if(!i)return o.evaluate(e,t,r,n);switch(t.type){case"AB_TEST":return em.withVariation(e,i,u.OVERRIDDEN);case"FEATURE_FLAG":return em.withVariation(e,i,u.INDIVIDUAL_TARGET_MATCH)}},Bm),pm=(Gm.prototype.evaluate=function(e,t,r,n,o){return"DRAFT"===t.status?em.of(e,t,n,u.EXPERIMENT_DRAFT):o.evaluate(e,t,r,n)},Gm),dm=(zm.prototype.evaluate=function(e,t,r,n,o){if("PAUSED"!==t.status)return o.evaluate(e,t,r,n);switch(t.type){case"AB_TEST":return em.of(e,t,n,u.EXPERIMENT_PAUSED);case"FEATURE_FLAG":return em.of(e,t,n,u.FEATURE_FLAG_INACTIVE)}},zm),hm=(Km.prototype.evaluate=function(e,t,r,n,o){if("COMPLETED"!==t.status)return o.evaluate(e,t,r,n);o=t._winnerVariationOrNull();if(o)return em.withVariation(e,o,u.EXPERIMENT_COMPLETED);throw new Error("winner variation [".concat(t.id,"]"))},Km),ym=(Hm.prototype.evaluate=function(e,t,r,n,o){if("AB_TEST"!==t.type)throw new Error("experiment type must be AB_TEST [".concat(t.id,"]"));return this.experimentTargetDeterminer.isUserInExperimentTarget(e,t,r)?o.evaluate(e,t,r,n):em.of(e,t,n,u.NOT_IN_EXPERIMENT_TARGET)},Hm),vm=(Vm.prototype.evaluate=function(e,t,r,n,o){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?em.of(e,t,n,u.VARIATION_DROPPED):em.withVariation(e,r,u.TRAFFIC_ALLOCATED):em.of(e,t,n,u.TRAFFIC_NOT_ALLOCATED)},Vm),mm=(Fm.prototype.evaluate=function(e,t,r,n,o){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 o.evaluate(e,t,r,n);var i=this.targetRuleDeterminer.determineTargetRuleOrNull(e,t,r);if(!i)return o.evaluate(e,t,r,n);o=this.actionResolver.resolveOrNull(i.action,e,t,r);if(o)return em.withVariation(e,o,u.TARGET_RULE_MATCH);throw new Error("FeatureFlag must decide the Variation [".concat(t.id,"]"))},Fm),gm=(Lm.prototype.evaluate=function(e,t,r,n,o){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 em.of(e,t,n,u.DEFAULT_RULE);n=this.actionResolver.resolveOrNull(t.defaultRule,e,t,r);if(n)return em.withVariation(e,n,u.DEFAULT_RULE);throw new Error("FeatureFlag must decide the Variation [".concat(t.id,"]"))},Lm),wm=(jm.prototype.evaluate=function(e,t,r,n,o){var i=t.containerId;if(!i)return o.evaluate(e,t,r,n);var a=e.getContainerOrNull(i);if(!a)throw new Error("container[".concat(i,"]"));i=e.getBucketOrNull(a.bucketId);if(i)return this.containerResolver.isUserInContainerGroup(a,i,t,r)?o.evaluate(e,t,r,n):em.of(e,t,n,u.NOT_IN_MUTUAL_EXCLUSION_EXPERIMENT);throw new Error("bucket[".concat(a.bucketId,"]"))},jm),Em=(Um.prototype.evaluate=function(e,t,r,n,o){return r.identifiers[t.identifierType]?o.evaluate(e,t,r,n):em.of(e,t,n,u.IDENTIFIER_NOT_FOUND)},Um),bm=(Mm.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)})},Mm),Tm=(Dm.prototype.determineTargetRuleOrNull=function(t,e,r){var n=this;return e.targetRules.find(function(e){return n.targetMatcher.matches(e.target,t,r)})},Dm),Rm=(Pm.prototype.resolveOrNull=function(e,t,r){return this._resolveUserOverride(t,r)||this._resolveSegmentOverride(e,t,r)},Pm.prototype._resolveUserOverride=function(e,t){t=t.identifiers[e.identifierType];if(t){t=e.userOverrides.get(t);if(t)return e._getVariationByIdOrNull(t)}},Pm.prototype._resolveSegmentOverride=function(t,e,r){var n=this,o=e.segmentOverrides.find(function(e){return n.targetMatcher.matches(e.target,t,r)});if(o)return this.actionResolver.resolveOrNull(o.action,t,e,r)},Pm),Om=(xm.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,"]"))},xm),_m=(Im.prototype.determineTargetRuleOrNull=function(t,r,n){var o=this;return r.targetRules.find(function(e){return o.matches(e,t,r,n)})},Im.prototype.matches=function(e,t,r,n){if(!this.targetMatcher.matches(e.target,t,n))return!1;n=n.identifiers[r.identifierType];if(s.isNullOrUndefined(n))return!1;r=t.getBucketOrNull(e.bucketId);if(s.isNullOrUndefined(r))throw new Error("bucket[".concat(e.bucketId,"]"));return s.isNotNullOrUndefined(this.bucketer.bucketing(r,n))},Im),Cm=(km.prototype.getFlow=function(e){switch(e){case"AB_TEST":return this.abTestFlow;case"FEATURE_FLAG":return this.featureFlagFlow}},km.prototype.getRemoteConfigParameterTargetRuleDeterminer=function(){return this.remoteConfigParameterTargetRuleDeterminer},km),Nm=(Sm.prototype.install=function(e,t){this._install("onerror",e,t),this._install("onunhandledrejection",e,t)},Sm.prototype._install=function(e,t,r){e in this._installed||((0,this._installations[e])(t,r),this._installed.push(e))},Sm),Am=null;function Sm(){this._installed=[],this._installations={onerror:Ag,onunhandledrejection:Sg}}function km(){var e=new cm,t=new nm(new am),r=new sm(e),n=new Rm(t,r),o=new Om(e);this.abTestFlow=lm.of(new fm(n),new Em,new wm(o),new ym(new bm(t)),new pm,new dm,new hm,new vm(r)),this.featureFlagFlow=lm.of(new pm,new dm,new hm,new fm(n),new Em,new mm(new Tm(t),r),new gm(r)),this.remoteConfigParameterTargetRuleDeterminer=new _m(t,e)}function Im(e,t){this.targetMatcher=e,this.bucketer=t}function xm(e){this.bucketer=e}function Pm(e,t){this.targetMatcher=e,this.actionResolver=t}function Dm(e){this.targetMatcher=e}function Mm(e){this.targetMatcher=e}function Um(){}function jm(e){this.containerResolver=e}function Lm(e){this.actionResolver=e}function Fm(e,t){this.targetRuleDeterminer=e,this.actionResolver=t}function Vm(e){this.actionResolver=e}function Hm(e){this.experimentTargetDeterminer=e}function Km(){}function zm(){}function Gm(){}function Bm(e){this.overrideResolver=e}function qm(e,t){void 0===t&&(t=void 0),this.flowEvaluator=e=void 0===e?void 0:e,this.nextFlow=t}function $m(){}function Xm(e){this.bucketer=e}function Ym(){}function Wm(e){this.userConditionMatcher=e}function Jm(e){this.segmentMatcher=e}function Zm(){}function Qm(e,t){this.userValueResolver=e,this.valueOperatorMatcher=t}function eg(){}function tg(){}function rg(){}function ng(){}function og(){}function ig(){}function ag(){}function sg(){}function ug(){}function cg(){}function lg(){}function fg(){}function pg(){}function dg(){}function hg(e,t){this.valueMatcherFactory=e,this.operatorMatcherFactory=t}function yg(e){this.conditionMatcherFactory=e}function vg(e){this.evaluationFlowFactory=e}function mg(e,t,r,n){this.valueId=e,this.value=t,this.reason=r,this.properties=n}function gg(e,t,r,n){this.variationId=e,this.variationKey=t,this.reason=r,this.config=n}function wg(){}function Eg(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 bg(){}function Tg(e){this.cache=new Map,this.exposureEventDedupIntervalMillis=e}function Rg(e,t){this.delegate=e,this.exposureEventDedupDeterminer=t}function Og(){}function _g(e,t,r){this.eventDispatcher=e,this.flushInterval=r,this.queue=new Bv(this.drainQueue.bind(this),t,r)}function Cg(e,t,r){this.buffer=[],this.sink=e,this.maxQueueSize=t,this.timer=new Gv({callback:this.flush.bind(this),timeout:r}),this.started=!1}function Ng(e){var t=e.timeout,e=e.callback;this.timeout=Math.max(t,0),this.callback=e}function Ag(i,a){Am=window.onerror,window.onerror=function(e,t,r,n,o){s.isNotNullOrUndefined(o)&&i._trackException(o,a.resolveAnonymousUser()),Am&&Am.apply(this,arguments)}}function Sg(r,n){zv=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.resolveAnonymousUser()),zv&&zv.apply(this,arguments)}}var kg=H.log,Ig=null,xg={debug:!1,log_disabled:!1,auto_track_page_view:!1,pollingIntervalMillis:-1,exposureEventDedupIntervalMillis:-1,SDK_NAME_HEADER:"javascript-sdk_browser",SDK_VERSION_HEADER:"11.6.0"};function Pg(e,t){t=F(F({},xg),t);if(t.log_disabled?H.setLogLevel(0):t.debug&&H.setLogLevel(4),kg.debug("sdkKey : "+e),e||kg.error("SDK Key must not be null"),Ig)return kg.debug("use already exists hackleClient"),Ig;var r=!1,r=("undefined"!=typeof window&&(r=window&&window.navigator&&window.navigator.sendBeacon&&!0)&&kg.debug("support sendBeacon API"),new ht(e,ue,{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:((r={})["X-HACKLE-SDK-NAME"]=t.SDK_NAME_HEADER,r["X-HACKLE-SDK-VERSION"]=t.SDK_VERSION_HEADER,r)})),n=-1,n=(void 0!==t.pollingIntervalMillis&&"number"==typeof t.pollingIntervalMillis&&0<t.pollingIntervalMillis&&(n=Math.max(t.pollingIntervalMillis,3e4)),new mt(e,ue,{fetchUrl:"".concat("https://client-sdk.hackle.io/api/v2/w/").concat(e).concat("/w"),updateInterval:n,headers:((e={})["X-HACKLE-SDK-NAME"]=t.SDK_NAME_HEADER,e["X-HACKLE-SDK-VERSION"]=t.SDK_VERSION_HEADER,e)})),e=-1;void 0!==t.exposureEventDedupIntervalMillis&&"number"==typeof t.exposureEventDedupIntervalMillis&&-1!==t.exposureEventDedupIntervalMillis&&(e=t.exposureEventDedupIntervalMillis<1e3||36e5<t.exposureEventDedupIntervalMillis?(kg.warn("Exposure event dedup interval is outside allowed range[1_000ms..3_600_000ms]. Setting to default value[no dedup]."),-1):t.exposureEventDedupIntervalMillis);var o,i,r=new qv(r,100,500),e=new Yv(e),r=new Xv(r,e),e=new Zv(n,r,new rm(new Cm),new Qv),n=new Dt,a=new Ye(e,n);return Ig=a,t.auto_track_page_view&&(i=function(){return o.trackPageView({user:{id:Lt()}})},(o=a).onReady(function(){function t(e){if("function"==typeof window.Event)return new Event(e);var t=!1,r=!1,n=void 0,o=document.createEvent("CustomEvent");return o.initCustomEvent(e,t,r,n),o}i();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)kg.error(e);else try{kg.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)kg.error(e);else try{kg.error(e)}catch(e){}}}),window.addEventListener("popstate",function(){try{window.dispatchEvent(t("locationchange"))}catch(e){if(e instanceof Error)kg.error(e);else try{kg.error(e)}catch(e){}}}),window.addEventListener("locationchange",function(){try{i()}catch(e){if(e instanceof Error)kg.error(e);else try{kg.error(e)}catch(e){}}})}catch(t){if(t instanceof Error)kg.error(t);else try{kg.error(t)}catch(t){}}var r,n})),(new Nm).install(e,n),window.addEventListener("onpagehide"in window?"pagehide":"unload",function(){Vt(),a.close()}),a}var Br={createInstance:Pg,getUserId:Lt,setUserId:Ft,removeUserId:Vt,Logger:H},Dg=(f.Bucket=t.Bucket=Y,f.Container=t.Container=we,f.ContainerGroup=t.ContainerGroup=oe,f.CoreVersion=t.CoreVersion=je,f.Decision=t.Decision=fe,f.DecisionReason=t.DecisionReason=u,f.EmptyHackleRemoteConfig=t.EmptyHackleRemoteConfig=de,f.EmptyParameterConfig=t.EmptyParameterConfig=he,f.EventType=t.EventType=W,f.Experiment=t.Experiment=ye,f.FeatureFlagDecision=t.FeatureFlagDecision=pe,f.IdentifierType=t.IdentifierType=me,f.IdentifiersBuilder=t.IdentifiersBuilder=ge,f.Logger=t.Logger=H,f.MATCH_OPERATORS=t.MATCH_OPERATORS=He,f.MATCH_TYPES=t.MATCH_TYPES=Fe,f.MATCH_VALUE_TYPES=t.MATCH_VALUE_TYPES=Ve,f.MetaVersion=t.MetaVersion=Le,f.ParameterConfiguration=t.ParameterConfiguration=Ee,f.RemoteConfigDecision=t.RemoteConfigDecision=le,f.RemoteConfigParameter=t.RemoteConfigParameter=ie,f.RemoteConfigParameterValue=t.RemoteConfigParameterValue=se,f.RemoteConfigTargetRule=t.RemoteConfigTargetRule=ae,f.SEGMENT_TYPES=t.SEGMENT_TYPES=Ge,f.Segment=t.Segment=ne,f.Slot=t.Slot=ve,f.TARGET_ACTION_TYPES=t.TARGET_ACTION_TYPES=Ke,f.TARGET_KEY_TYPES=t.TARGET_KEY_TYPES=ze,f.Target=t.Target=J,f.TargetAction=t.TargetAction=te,f.TargetCondition=t.TargetCondition=Z,f.TargetKey=t.TargetKey=Q,f.TargetMatch=t.TargetMatch=ee,f.TargetRule=t.TargetRule=re,f.TargetingType=t.TargetingType=Be,f.Variation=t.Variation=X,f.Version=t.Version=Ue,U=t.createInstance=Pg,t.default=Br,f.getUserId=t.getUserId=Lt,f.removeUserId=t.removeUserId=Vt,f.setUserId=t.setUserId=Ft,function(){return(Dg=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)});function Mg(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}jg.prototype.variation=function(e,t,r){return this.client.variation(e,t,r)},jg.prototype.variationDetail=function(e,t,r){return this.client.variationDetail(e,t,r)},jg.prototype.isFeatureOn=function(e,t){return this.client.isFeatureOn(e,t)},jg.prototype.featureFlagDetail=function(e,t){return this.client.featureFlagDetail(e,t)},jg.prototype.track=function(e,t){this.client.track(e,t)},jg.prototype.trackPageView=function(e){this.client.trackPageView(e)},jg.prototype.remoteConfig=function(e){return this.client.remoteConfig(e)},jg.prototype.onReady=function(e,t){this.client.onReady(e,t)},jg.prototype.onInitialized=function(e){return this.client.onInitialized(e)};var Ug=jg;function jg(e,t){this.client=U(e,Dg(Dg({},t),{SDK_NAME_HEADER:"react-sdk",SDK_VERSION_HEADER:"11.6.0"}))}var D={exports:{}},o={},Lg=Object.getOwnPropertySymbols,Fg=Object.prototype.hasOwnProperty,Vg=Object.prototype.propertyIsEnumerable;var qa=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),o=1;o<arguments.length;o++){for(var i in r=Object(arguments[o]))Fg.call(r,i)&&(n[i]=r[i]);if(Lg)for(var a=Lg(r),s=0;s<a.length;s++)Vg.call(r,a[s])&&(n[a[s]]=r[a[s]])}return n},Hg=qa,T="function"==typeof Symbol&&Symbol.for,Kg=T?Symbol.for("react.element"):60103,zg=T?Symbol.for("react.portal"):60106,sr=T?Symbol.for("react.fragment"):60107,dc=T?Symbol.for("react.strict_mode"):60108,oo=T?Symbol.for("react.profiler"):60114,Gg=T?Symbol.for("react.provider"):60109,Bg=T?Symbol.for("react.context"):60110,qg=T?Symbol.for("react.forward_ref"):60112,p=T?Symbol.for("react.suspense"):60113,$g=T?Symbol.for("react.memo"):60115,Xg=T?Symbol.for("react.lazy"):60116,Yg="function"==typeof Symbol&&Symbol.iterator;function Wg(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 Jg={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Zg={};function Qg(e,t,r){this.props=e,this.context=t,this.refs=Zg,this.updater=r||Jg}function e0(){}function t0(e,t,r){this.props=e,this.context=t,this.refs=Zg,this.updater=r||Jg}Qg.prototype.isReactComponent={},Qg.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(Wg(85));this.updater.enqueueSetState(this,e,t,"setState")},Qg.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},e0.prototype=Qg.prototype;var as=t0.prototype=new e0,r0=(as.constructor=t0,Hg(as,Qg.prototype),as.isPureReactComponent=!0,{current:null}),n0=Object.prototype.hasOwnProperty,o0={key:!0,ref:!0,__self:!0,__source:!0};function i0(e,t,r){var n,o={},i=null,a=null;if(null!=t)for(n in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(i=""+t.key),t)n0.call(t,n)&&!o0.hasOwnProperty(n)&&(o[n]=t[n]);var s=arguments.length-2;if(1===s)o.children=r;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(n in s=e.defaultProps)void 0===o[n]&&(o[n]=s[n]);return{$$typeof:Kg,type:e,key:i,ref:a,props:o,_owner:r0.current}}function a0(e){return"object"==typeof e&&null!==e&&e.$$typeof===Kg}var s0=/\/+/g,u0=[];function c0(e,t,r,n){var o;return u0.length?((o=u0.pop()).result=e,o.keyPrefix=t,o.func=r,o.context=n,o.count=0,o):{result:e,keyPrefix:t,func:r,context:n,count:0}}function l0(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,u0.length<10&&u0.push(e)}function f0(e,t,r){return null==e?0:function e(t,r,n,o){var i=!1;if(null===(t="undefined"!=(s=typeof t)&&"boolean"!==s?t:null))i=!0;else switch(s){case"string":case"number":i=!0;break;case"object":switch(t.$$typeof){case Kg:case zg:i=!0}}if(i)return n(o,t,""===r?"."+p0(t,0):r),1;if(i=0,r=""===r?".":r+":",Array.isArray(t))for(var a=0;a<t.length;a++){var s,u=r+p0(s=t[a],a);i+=e(s,u,n,o)}else if("function"==typeof(u=null!==t&&"object"==typeof t&&"function"==typeof(u=Yg&&t[Yg]||t["@@iterator"])?u:null))for(t=u.call(t),a=0;!(s=t.next()).done;)i+=e(s=s.value,u=r+p0(s,a++),n,o);else if("object"===s)throw n=""+t,Error(Wg(31,"[object Object]"===n?"object with keys {"+Object.keys(t).join(", ")+"}":n,""));return i}(e,"",t,r)}function p0(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 d0(e,t){e.func.call(e.context,t,e.count++)}function h0(e,t,r){var n=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?y0(e,n,r,function(e){return e}):null!=e&&(a0(e)&&(t=o+(!(o=e).key||t&&t.key===e.key?"":(""+e.key).replace(s0,"$&/")+"/")+r,e={$$typeof:Kg,type:o.type,key:t,ref:o.ref,props:o.props,_owner:o._owner}),n.push(e))}function y0(e,t,r,n,o){var i="";f0(e,h0,t=c0(t,i=null!=r?(""+r).replace(s0,"$&/")+"/":i,n,o)),l0(t)}var v0={current:null};function m0(){var e=v0.current;if(null===e)throw Error(Wg(321));return e}var g0,w0,E0,P={ReactCurrentDispatcher:v0,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:r0,IsSomeRendererActing:{current:!1},assign:Hg},b=(o.Children={map:function(e,t,r){if(null==e)return e;var n=[];return y0(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;f0(e,d0,t=c0(null,null,t,r)),l0(t)},count:function(e){return f0(e,function(){return null},null)},toArray:function(e){var t=[];return y0(e,t,null,function(e){return e}),t},only:function(e){if(a0(e))return e;throw Error(Wg(143))}},o.Component=Qg,o.Fragment=sr,o.Profiler=oo,o.PureComponent=t0,o.StrictMode=dc,o.Suspense=p,o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P,o.cloneElement=function(e,t,r){if(null==e)throw Error(Wg(267,e));var n=Hg({},e.props),o=e.key,i=e.ref,a=e._owner;if(null!=t)for(s in void 0!==t.ref&&(i=t.ref,a=r0.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps&&(u=e.type.defaultProps),t)n0.call(t,s)&&!o0.hasOwnProperty(s)&&(n[s]=(void 0===t[s]&&void 0!==u?u:t)[s]);var s=arguments.length-2;if(1===s)n.children=r;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];n.children=u}return{$$typeof:Kg,type:e.type,key:o,ref:i,props:n,_owner:a}},o.createContext=function(e,t){return(e={$$typeof:Bg,_calculateChangedBits:t=void 0===t?null:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:Gg,_context:e},e.Consumer=e},o.createElement=i0,o.createFactory=function(e){var t=i0.bind(null,e);return t.type=e,t},o.createRef=function(){return{current:null}},o.forwardRef=function(e){return{$$typeof:qg,render:e}},o.isValidElement=a0,o.lazy=function(e){return{$$typeof:Xg,_ctor:e,_status:-1,_result:null}},o.memo=function(e,t){return{$$typeof:$g,type:e,compare:void 0===t?null:t}},o.useCallback=function(e,t){return m0().useCallback(e,t)},o.useContext=function(e,t){return m0().useContext(e,t)},o.useDebugValue=function(){},o.useEffect=function(e,t){return m0().useEffect(e,t)},o.useImperativeHandle=function(e,t,r){return m0().useImperativeHandle(e,t,r)},o.useLayoutEffect=function(e,t){return m0().useLayoutEffect(e,t)},o.useMemo=function(e,t){return m0().useMemo(e,t)},o.useReducer=function(e,t,r){return m0().useReducer(e,t,r)},o.useRef=function(e){return m0().useRef(e)},o.useState=function(e){return m0().useState(e)},o.version="16.14.0",{}),Nr=Function.call.bind(Object.prototype.hasOwnProperty),b0=function(){};function T0(e,t,r,n,o){if("production"!==production)for(var i in e)if(E0(e,i)){var a,s;try{if("function"!=typeof e[i])throw(s=Error((n||"React class")+": "+r+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.")).name="Invariant Violation",s;a=e[i](t,i,n,r,null,g0)}catch(e){a=e}!a||a instanceof Error||b0((n||"React class")+": type specification of "+r+" `"+i+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof a+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),a instanceof Error&&!(a.message in w0)&&(w0[a.message]=!0,i=o?o():"",b0("Failed "+r+" type: "+a.message+(null!=i?i:"")))}}if("production"!==production&&(g0="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",w0={},E0=Nr,b0=function(e){e="Warning: "+e;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(e){}}),T0.resetWarningCache=function(){"production"!==production&&(w0={})},"production"!==production){var R0=qa,O0=T0,O="function"==typeof Symbol&&Symbol.for,_0=O?Symbol.for("react.element"):60103,C0=O?Symbol.for("react.portal"):60106,N0=O?Symbol.for("react.fragment"):60107,A0=O?Symbol.for("react.strict_mode"):60108,S0=O?Symbol.for("react.profiler"):60114,k0=O?Symbol.for("react.provider"):60109,I0=O?Symbol.for("react.context"):60110,x0=O?Symbol.for("react.concurrent_mode"):60111,P0=O?Symbol.for("react.forward_ref"):60112,D0=O?Symbol.for("react.suspense"):60113,M0=O?Symbol.for("react.suspense_list"):60120,U0=O?Symbol.for("react.memo"):60115,j0=O?Symbol.for("react.lazy"):60116,L0=O?Symbol.for("react.block"):60121,F0=O?Symbol.for("react.fundamental"):60117,V0=O?Symbol.for("react.responder"):60118,H0=O?Symbol.for("react.scope"):60119,K0="function"==typeof Symbol&&Symbol.iterator,z0="@@iterator";function G0(e){if(null===e||"object"!=typeof e)return null;e=K0&&e[K0]||e[z0];return"function"==typeof e?e:null}var B0={current:null},q0={current:null},$0=/^(.*)[\\\/]/,X0=1;function Y0(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 N0:return"Fragment";case C0:return"Portal";case S0:return"Profiler";case A0:return"StrictMode";case D0:return"Suspense";case M0:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case I0:return"Context.Consumer";case k0:return"Context.Provider";case P0:return t=e.render,r="ForwardRef",t=t.displayName||t.name||"",e.displayName||(""!==t?r+"("+t+")":r);case U0:return Y0(e.type);case L0:return Y0(e.render);case j0:r=(t=e)._status===X0?t._result:null;if(r)return Y0(r)}var t,r;return null}var W0={},J0=null;function Z0(e){J0=e}W0.getCurrentStack=null,W0.getStackAddendum=function(){var e,t,r,n,o,i="",a=(J0&&(e=Y0(J0.type),r=J0._owner,i+=(e=e,t=J0._source,r=r&&Y0(r.type),o="",t?(n=(a=t.fileName).replace($0,""),o=" (at "+(n=/^index\./.test(n)&&(a=a.match($0))&&(a=a[1])?a.replace($0,"")+"/"+n:n)+":"+t.lineNumber+")"):r&&(o=" (created by "+r+")"),"\n in "+(e||"Unknown")+o)),W0.getCurrentStack);return a&&(i+=a()||""),i};var Q0={ReactCurrentDispatcher:B0,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:q0,IsSomeRendererActing:{current:!1},assign:R0};function ew(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];tw("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];tw("error",e,r)}function tw(e,t,r){0<r.length&&"string"==typeof r[r.length-1]&&0===r[r.length-1].indexOf("\n in")||""!==(n=Q0.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 o=0,i="Warning: "+t.replace(/%s/g,function(){return r[o++]});throw new Error(i)}catch(e){}}R0(Q0,{ReactDebugCurrentFrame:W0,ReactComponentTreeHook:{}});var rw={};function nw(e,t){var e=e.constructor,e=e&&(e.displayName||e.name)||"ReactClass",r=e+"."+t;rw[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),rw[r]=!0)}var ow={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,r){nw(e,"forceUpdate")},enqueueReplaceState:function(e,t,r,n){nw(e,"replaceState")},enqueueSetState:function(e,t,r,n){nw(e,"setState")}},iw={};function aw(e,t,r){this.props=e,this.context=t,this.refs=iw,this.updater=r||ow}Object.freeze(iw),aw.prototype.isReactComponent={},aw.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")},aw.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var sw,uw={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(sw in uw)uw.hasOwnProperty(sw)&&!function(e,t){Object.defineProperty(aw.prototype,e,{get:function(){ew("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})}(sw,uw[sw]);function cw(){}function lw(e,t,r){this.props=e,this.context=t,this.refs=iw,this.updater=r||ow}cw.prototype=aw.prototype,(O=lw.prototype=new cw).constructor=lw,R0(O,aw.prototype),O.isPureReactComponent=!0;var fw,pw,dw=Object.prototype.hasOwnProperty,hw={key:!0,ref:!0,__self:!0,__source:!0};function yw(e){if(dw.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return}return void 0!==e.ref}function vw(e){if(dw.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return}return void 0!==e.key}var mw={},gw=function(e,t,r,n,o,i,a){e={$$typeof:_0,type:e,key:t,ref:r,props:a,_owner:i,_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:o}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e};function ww(e,t,r){var n,o={},i=null,a=null,s=null,u=null;if(null!=t)for(n in yw(t)&&(a=t.ref,"string"==typeof(c=t).ref&&q0.current&&c.__self&&q0.current.stateNode!==c.__self&&(f=Y0(q0.current.type),mw[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',Y0(q0.current.type),c.ref),mw[f]=!0))),vw(t)&&(i=""+t.key),s=void 0===t.__self?null:t.__self,u=void 0===t.__source?null:t.__source,t)dw.call(t,n)&&!hw.hasOwnProperty(n)&&(o[n]=t[n]);var c,l,f,p,d=arguments.length-2;if(1==d)o.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),o.children=h}if(e&&e.defaultProps){var v=e.defaultProps;for(n in v)void 0===o[n]&&(o[n]=v[n])}function m(){pw||(pw=!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(){fw||(fw=!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(i||a)&&(c="function"==typeof e?e.displayName||e.name||"Unknown":e,i&&(f=o,p=c,g.isReactWarning=!0,Object.defineProperty(f,"key",{get:g,configurable:!0})),a&&(r=o,l=c,m.isReactWarning=!0,Object.defineProperty(r,"ref",{get:m,configurable:!0}))),gw(e,i,a,s,u,q0.current,o)}function Ew(e){return"object"==typeof e&&null!==e&&e.$$typeof===_0}var bw=".",Tw=":",Rw=!1,Ow=/\/+/g;function _w(e){return(""+e).replace(Ow,"$&/")}var Cw=10,Nw=[];function Aw(e,t,r,n){var o;return Nw.length?((o=Nw.pop()).result=e,o.keyPrefix=t,o.func=r,o.context=n,o.count=0,o):{result:e,keyPrefix:t,func:r,context:n,count:0}}function Sw(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,Nw.length<Cw&&Nw.push(e)}function kw(e,t,r){return null==e?0:function e(t,r,n,o){var i,a=typeof t,s=!1;if(null===(t="undefined"!=a&&"boolean"!=a?t:null))s=!0;else switch(a){case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case _0:case C0:s=!0}}if(s)return n(o,t,""===r?bw+Iw(t,0):r),1;var u=0,c=""===r?bw:r+Tw;if(Array.isArray(t))for(var l=0;l<t.length;l++)u+=e(i=t[l],c+Iw(i,l),n,o);else if("function"==typeof(r=G0(t))){r===t.entries&&(Rw||ew("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."),Rw=!0);for(var f,p=r.call(t),d=0;!(f=p.next()).done;)u+=e(i=f.value,c+Iw(i,d++),n,o)}else if("object"==a)throw r="",r=" If you meant to render a collection of children, use an array instead."+W0.getStackAddendum(),a=""+t,Error("Objects are not valid as a React child (found: "+("[object Object]"==a?"object with keys {"+Object.keys(t).join(", ")+"}":a)+")."+r);return u}(e,"",t,r)}function Iw(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 xw(e,t,r){var n=e.func,o=e.context;n.call(o,t,e.count++)}function Pw(e,t,r){var n=e.result,o=e.keyPrefix,i=e.func,a=e.context,i=i.call(a,t,e.count++);Array.isArray(i)?Dw(i,n,r,function(e){return e}):null!=i&&(Ew(i)&&(e=o+(!(a=i).key||t&&t.key===i.key?"":_w(i.key)+"/")+r,i=gw(a.type,e,a.ref,a._self,a._source,a._owner,a.props)),n.push(i))}function Dw(e,t,r,n,o){var i="",t=Aw(t,i=null!=r?_w(r)+"/":i,n,o);kw(e,Pw,t),Sw(t)}function Mw(e){return"string"==typeof e||"function"==typeof e||e===N0||e===x0||e===S0||e===A0||e===D0||e===M0||"object"==typeof e&&null!==e&&(e.$$typeof===j0||e.$$typeof===U0||e.$$typeof===k0||e.$$typeof===I0||e.$$typeof===P0||e.$$typeof===F0||e.$$typeof===V0||e.$$typeof===H0||e.$$typeof===L0)}function Uw(){var e=B0.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 jw(){if(q0.current){var e=Y0(q0.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}var Lw=!1,Fw={};function Vw(e,t){var r;e._store&&!e._store.validated&&null==e.key&&(e._store.validated=!0,t=t,(r=jw())||(t="string"==typeof t?t:t.displayName||t.name)&&(r="\n\nCheck the top-level render call using <"+t+">."),Fw[t=r]||(Fw[t]=!0,r="",e&&e._owner&&e._owner!==q0.current&&(r=" It was passed a child from "+Y0(e._owner.type)+"."),Z0(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),Z0(null)))}function Hw(e,t){if("object"==typeof e)if(Array.isArray(e))for(var r=0;r<e.length;r++){var n=e[r];Ew(n)&&Vw(n,t)}else if(Ew(e))e._store&&(e._store.validated=!0);else if(e){var o=G0(e);if("function"==typeof o&&o!==e.entries)for(var i,a=o.call(e);!(i=a.next()).done;)Ew(i.value)&&Vw(i.value,t)}}function Kw(e){var t=e.type;if(null!=t&&"string"!=typeof t){var r,n=Y0(t);if("function"==typeof t)r=t.propTypes;else{if("object"!=typeof t||t.$$typeof!==P0&&t.$$typeof!==U0)return;r=t.propTypes}r?(Z0(e),O0(r,e.props,"prop",n,W0.getStackAddendum),Z0(null)):void 0===t.PropTypes||Lw||(Lw=!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 zw(e,t,r){var n,o=Mw(e),t=(o||(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+".":"")||jw(),null===e?a="null":Array.isArray(e)?a="array":void 0!==e&&e.$$typeof===_0?(a="<"+(Y0(e.type)||"Unknown")+" />",n=" Did you accidentally export a JSX literal instead of a component?"):a=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",a,n)),ww.apply(this,arguments));if(null==t)return t;if(o)for(var i=2;i<arguments.length;i++)Hw(arguments[i],e);if(e===N0){var a=t;Z0(a);for(var s=Object.keys(a.props),u=0;u<s.length;u++){var c=s[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!==a.ref&&M("Invalid attribute `ref` supplied to `React.Fragment`."),Z0(null)}else Kw(t);return t}var Gw=!1;try{var Bw=Object.freeze({}),qw=new Map([[Bw,null]]),$w=new Set([Bw]);qw.set(0,0),$w.add(0)}catch(e){}function Xw(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,o,i=R0({},e.props),a=e.key,s=e.ref,u=e._self,c=e._source,l=e._owner;if(null!=t)for(n in yw(t)&&(s=t.ref,l=q0.current),vw(t)&&(a=""+t.key),e.type&&e.type.defaultProps&&(o=e.type.defaultProps),t)dw.call(t,n)&&!hw.hasOwnProperty(n)&&(void 0===t[n]&&void 0!==o?i[n]=o[n]:i[n]=t[n]);var f=arguments.length-2;if(1==f)i.children=r;else if(1<f){for(var p=Array(f),d=0;d<f;d++)p[d]=arguments[d+2];i.children=p}return gw(e.type,a,s,u,c,l,i)}.apply(this,arguments),o=2;o<arguments.length;o++)Hw(arguments[o],n.type);return Kw(n),n}function Yw(e){var t=zw.bind(null,e);return t.type=e,Gw||(Gw=!0,ew("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 ew("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t}O=zw,b.Children={map:function(e,t,r){if(null==e)return e;var n=[];return Dw(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;t=Aw(null,null,t,r),kw(e,xw,t),Sw(t)},count:function(e){return kw(e,function(){return null},null)},toArray:function(e){var t=[];return Dw(e,t,null,function(e){return e}),t},only:function(e){if(Ew(e))return e;throw Error("React.Children.only expected to receive a single React element child.")}},b.Component=aw,b.Fragment=N0,b.Profiler=S0,b.PureComponent=lw,b.StrictMode=A0,b.Suspense=D0,b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Q0,b.cloneElement=Xw,b.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:I0,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},n=!(r.Provider={$$typeof:k0,_context:r}),o=!1,t={$$typeof:I0,_context:r,_calculateChangedBits:r._calculateChangedBits};return Object.defineProperties(t,{Provider:{get:function(){return o||(o=!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},b.createElement=O,b.createFactory=Yw,b.createRef=function(){var e={current:null};return Object.seal(e),e},b.forwardRef=function(e){return null!=e&&e.$$typeof===U0?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:P0,render:e}},b.isValidElement=Ew,b.lazy=function(e){var t,r,n={$$typeof:j0,_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},b.memo=function(e,t){return Mw(e)||M("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e),{$$typeof:U0,type:e,compare:void 0===t?null:t}},b.useCallback=function(e,t){return Uw().useCallback(e,t)},b.useContext=function(e,t){var r,n=Uw();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)},b.useDebugValue=function(e,t){return Uw().useDebugValue(e,t)},b.useEffect=function(e,t){return Uw().useEffect(e,t)},b.useImperativeHandle=function(e,t,r){return Uw().useImperativeHandle(e,t,r)},b.useLayoutEffect=function(e,t){return Uw().useLayoutEffect(e,t)},b.useMemo=function(e,t){return Uw().useMemo(e,t)},b.useReducer=function(e,t,r){return Uw().useReducer(e,t,r)},b.useRef=function(e){return Uw().useRef(e)},b.useState=function(e){return Uw().useState(e)},b.version="16.14.0"}"production"===production?D.exports=o:D.exports=b;var Ww=D.exports,Jw=D.exports.createContext({hackle:void 0,user:void 0,initialized:!1}),wi=Jw.Consumer,Zw=Jw.Provider;var Qw=f.Logger.log;function eE(e,t){e=tE(e,t=void 0===t?"A":t);return{isLoading:e.isLoading,variation:e.decision.variation}}function tE(e,t){void 0===t&&(t="A");var r=D.exports.useContext(Jw),n=r.hackle,o=r.user,i=r.initialized,a=D.exports.useCallback(function(){return i?(null==n?void 0:n.variationDetail(e,o))||f.Decision.of(t,f.DecisionReason.EXCEPTION):f.Decision.of(t,f.DecisionReason.SDK_NOT_READY)},[t,e,o,n,i]),r=Mg(D.exports.useState(function(){return n?a():(Qw.error("HackleClient is not existed"),f.Decision.of(t,f.DecisionReason.EXCEPTION))}),2),s=r[0],r=r[1],u={key:e,user:o,initialized:i},c=Mg(D.exports.useState(u),2),l=c[0],c=c[1];return oE(l,u)||(c(u),r(a())),{isLoading:!i,decision:s}}function rE(e){e=nE(e);return{isLoading:e.isLoading,isOn:e.decision.isOn}}function nE(e){var t=D.exports.useContext(Jw),r=t.hackle,n=t.user,o=t.initialized,i=D.exports.useCallback(function(){return o?(null==r?void 0:r.featureFlagDetail(e,n))||f.FeatureFlagDecision.off(f.DecisionReason.EXCEPTION):f.FeatureFlagDecision.off(f.DecisionReason.SDK_NOT_READY)},[e,n,r,o]),t=Mg(D.exports.useState(function(){return r?i():(Qw.error("HackleClient is not existed"),f.FeatureFlagDecision.off(f.DecisionReason.EXCEPTION))}),2),a=t[0],t=t[1],s={key:e,user:n,initialized:o},u=Mg(D.exports.useState(s),2),c=u[0],u=u[1];return oE(c,s)||(u(s),t(i())),{isLoading:!o,decision:a}}function oE(e,t){var r,n,o;return e.initialized===t.initialized&&e.key===t.key&&(null==(r=e.user)?void 0:r.id)===(null==(r=t.user)?void 0:r.id)&&(e=null==(r=e.user)?void 0:r.properties,t=null==(r=t.user)?void 0:r.properties,n=iE(e),o=iE(t),e=Object.keys(n),t=Object.keys(o),e.length===t.length&&e.every(function(e){return e in o&&n[e]===o[e]}))}function iE(e){return"object"==typeof e&&null!==e?e:{}}function aE(e){var t,r=e.experimentKey,e=e.children,n=(r=eE(r)).isLoading,o=r.variation;return n?null:e&&"function"==typeof e?e(o):(D.exports.Children.forEach(e,function(e){D.exports.isValidElement(e)&&(e.props.variation?o===e.props.variation&&(t=e):e.props.default&&(t=e))}),t?D.exports.cloneElement(t,{variation:o}):null)}function sE(e){return e.variation,e=e.children,D.exports.createElement(D.exports.Fragment,null,e)}function uE(e){var t=(r=rE(e.featureKey)).isLoading,r=r.isOn;return t?null:Ww.createElement(Ww.Fragment,null,e.children(r))}f.HackleContext=Jw,f.HackleContextConsumer=wi,f.HackleContextProvider=Zw,f.HackleExperiment=aE,f.HackleFeature=uE,f.HackleProvider=function(e){var t=e.hackleClient,r=e.user,n=void 0===(o=e.timeout)?3e3:o,o=void 0!==(o=e.supportSSR)&&o,e=e.children,i=Mg(D.exports.useState({hackle:t,user:r,initialized:!1}),2),a=i[0],s=i[1];return D.exports.useEffect(function(){s(function(e){return Dg(Dg({},e),{user:r})})},[r]),D.exports.useEffect(function(){t.onInitialized({timeout:n}).then(function(){s(function(e){return Dg(Dg({},e),{initialized:!0})})},function(){s(function(e){return Dg(Dg({},e),{initialized:!0})})}).catch(function(){s(function(e){return Dg(Dg({},e),{initialized:!0})})})},[t]),o||a.initialized?Ww.createElement(Zw,{value:a},e):null},f.HackleVariation=sE,f.createInstance=function(e,t){return new Ug(e,t)},f.useFeature=function(e){var t=(n=D.exports.useContext(Jw)).hackle,r=n.user,n=n.initialized,o=D.exports.useCallback(function(){return(null==t?void 0:t.isFeatureOn(e,r))||!1},[e,r,t,n]),i=(a=Mg(D.exports.useState(function(){return t?o():("undefined"!=typeof window&&Qw.error("HackleClient is not existed"),!1)}),2))[0],a=a[1],n={key:e,user:r,initialized:n},s=(u=Mg(D.exports.useState(n),2))[0],u=u[1];return oE(s,n)||(u(n),a(o())),i},f.useFeatureFlagDetail=function(e){var t=(n=D.exports.useContext(Jw)).hackle,r=n.user,n=n.initialized,o=D.exports.useCallback(function(){return(null==t?void 0:t.featureFlagDetail(e,r))||f.FeatureFlagDecision.off(f.DecisionReason.EXCEPTION)},[e,r,t,n]),i=(a=Mg(D.exports.useState(function(){return t?o():("undefined"!=typeof window&&Qw.error("HackleClient is not existed"),f.FeatureFlagDecision.off(f.DecisionReason.EXCEPTION))}),2))[0],a=a[1],n={key:e,user:r,initialized:n},s=(u=Mg(D.exports.useState(n),2))[0],u=u[1];return oE(s,n)||(u(n),a(o())),i},f.useLoadableFeature=rE,f.useLoadableFeatureDetail=nE,f.useLoadableRemoteConfig=function(){var e=(i=D.exports.useContext(Jw)).hackle,t=i.user,r=i.initialized,n=D.exports.useCallback(function(){return r&&(null==e?void 0:e.remoteConfig(t))||new f.EmptyHackleRemoteConfig},[t,e,r]),o=(i=Mg(D.exports.useState(function(){return e||Qw.error("HackleClient is not existed"),n()}),2))[0],i=i[1],a={user:t,initialized:r},s=(u=Mg(D.exports.useState(a),2))[0],u=u[1];return oE(s,a)||(u(a),i(n())),{isLoading:!r,remoteConfig:o}},f.useLoadableVariation=eE,f.useLoadableVariationDetail=tE,f.useRemoteConfig=function(){var e=(r=D.exports.useContext(Jw)).hackle,t=r.user,r=r.initialized,n=D.exports.useCallback(function(){return(null==e?void 0:e.remoteConfig(t))||new f.EmptyHackleRemoteConfig},[t,e,r]),o=(i=Mg(D.exports.useState(function(){return e||Qw.error("HackleClient is not existed"),n()}),2))[0],i=i[1],r={user:t,initialized:r},a=(s=Mg(D.exports.useState(r),2))[0],s=s[1];return oE(a,r)||(s(r),i(n())),o},f.useTrack=function(){var e=D.exports.useContext(Jw),t=e.hackle,r=e.user;return t?function(e){return null==t?void 0:t.track(e,r)}:(Qw.error("HackleClient is not existed"),function(){})},f.useVariation=function(e,t){void 0===t&&(t="A");var r=(s=D.exports.useContext(Jw)).hackle,n=s.user,o=s.initialized,i=D.exports.useCallback(function(){return o&&(null==r?void 0:r.variation(e,n))||t},[t,e,n,r,o]),a=(s=Mg(D.exports.useState(function(){return r?i():("undefined"!=typeof window&&Qw.error("HackleClient is not existed"),t)}),2))[0],s=s[1],u={key:e,user:n,initialized:o},c=(l=Mg(D.exports.useState(u),2))[0],l=l[1];return oE(c,u)||(l(u),s(i())),a},f.useVariationDetail=function(e,t){void 0===t&&(t="A");var r=(o=D.exports.useContext(Jw)).hackle,n=o.user,o=o.initialized,i=D.exports.useCallback(function(){return(null==r?void 0:r.variationDetail(e,n))||f.Decision.of(t,f.DecisionReason.EXCEPTION)},[t,e,n,r,o]),a=(s=Mg(D.exports.useState(function(){return r?i():("undefined"!=typeof window&&Qw.error("HackleClient is not existed"),f.Decision.of(t,f.DecisionReason.EXCEPTION))}),2))[0],s=s[1],o={key:e,user:n,initialized:o},u=(c=Mg(D.exports.useState(o),2))[0],c=c[1];return oE(u,o)||(c(o),s(i())),a},Object.defineProperty(f,"__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(f){"use strict";var U,e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t={},j=(f.setUserId=void 0,f.removeUserId=void 0,f.getUserId=void 0,f.Version=void 0,f.Variation=void 0,f.TargetingType=void 0,f.TargetRule=void 0,f.TargetMatch=void 0,f.TargetKey=void 0,f.TargetCondition=void 0,f.TargetAction=void 0,f.Target=void 0,f.TARGET_KEY_TYPES=void 0,f.TARGET_ACTION_TYPES=void 0,f.Slot=void 0,f.Segment=void 0,f.SEGMENT_TYPES=void 0,f.RemoteConfigTargetRule=void 0,f.RemoteConfigParameterValue=void 0,f.RemoteConfigParameter=void 0,f.RemoteConfigDecision=void 0,f.ParameterConfiguration=void 0,f.MetaVersion=void 0,f.MATCH_VALUE_TYPES=void 0,f.MATCH_TYPES=void 0,f.MATCH_OPERATORS=void 0,f.Logger=void 0,f.IdentifiersBuilder=void 0,f.IdentifierType=void 0,f.FeatureFlagDecision=void 0,f.Experiment=void 0,f.EventType=void 0,f.EmptyParameterConfig=void 0,f.EmptyHackleRemoteConfig=void 0,f.DecisionReason=void 0,f.Decision=void 0,f.CoreVersion=void 0,f.ContainerGroup=void 0,f.Container=void 0,f.Bucket=void 0,Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){return(j=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 L(e,t){function r(){this.constructor=e}j(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var F=function(){return(F=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function V(e,a,s,u){return new(s=s||Promise)(function(r,t){function n(e){try{i(u.next(e))}catch(e){t(e)}}function o(e){try{i(u.throw(e))}catch(e){t(e)}}function i(e){var t;e.done?r(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(n,o)}i((u=u.apply(e,a||[])).next())})}function H(n,o){var i,a,s,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[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(i)throw new TypeError("Generator is already executing.");for(;u;)try{if(i=1,a&&(s=2&t[0]?a.return:t[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,t[1])).done)return s;switch(a=0,(t=s?[2&t[0],s.value]:t)[0]){case 0:case 1:s=t;break;case 4:return u.label++,{value:t[1],done:!1};case 5:u.label++,a=t[1],t=[0];continue;case 7:t=u.ops.pop(),u.trys.pop();continue;default:if(!((s=0<(s=u.trys).length&&s[s.length-1])||6!==t[0]&&2!==t[0])){u=0;continue}if(3===t[0]&&(!s||t[1]>s[0]&&t[1]<s[3])){u.label=t[1];break}if(6===t[0]&&u.label<s[1]){u.label=s[1],s=t;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(t);break}s[2]&&u.ops.pop(),u.trys.pop();continue}t=o.call(n,u)}catch(e){t=[6,e],a=0}finally{i=s=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}}$.setLogLevel=function(e){this.logLevel=e=void 0===e?3:e},$._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)z.log(e,r,t.message,t);else try{z.log(e,r,t)}catch(e){}},$.logLevel=3,$.log={error:function(e){1<=$.logLevel&&$._log("ERROR",e)},warn:function(e){2<=$.logLevel&&$._log("WARN",e)},info:function(e){3<=$.logLevel&&$._log("INFO",e)},debug:function(e){4<=$.logLevel&&$._log("DEBUG",e)}};var K=$,z=(q.log=function(e,t,r,n){try{console.log("%c[".concat(e,"] Hackle: ").concat(r),"color: ".concat(t))}catch(e){}},q),G=[0,8,16,32,64,128,256,512],B=K.log;function q(){}function $(){}function X(e,t){for(var r in t)t.hasOwnProperty(r)&&e.setRequestHeader(r,t[r])}function Y(e,t,r,n){this.id=e,this.key=t,this.isDropped=r,this.parameterConfigurationId=n}function W(e,t,r){this.seed=e,this.slotSize=t,this.slots=r}function J(e,t){this.id=e,this.key=t}function Z(e){this.conditions=e}function Q(e,t){this.key=e,this.match=t}function ee(e,t){this.type=e,this.name=t}function te(e,t,r,n){this.type=e,this.operator=t,this.valueType=r,this.values=n}function re(e,t,r){this.type=e,this.variationId=t,this.bucketId=r}function ne(e,t){this.target=e,this.action=t}function oe(e,t,r,n){this.id=e,this.key=t,this.type=r,this.targets=n}function ie(e,t){this.id=e,this.experiments=t}function ae(e,t,r,n,o,i){this.id=e,this.key=t,this.type=r,this.identifierType=n,this.targetRules=o,this.defaultValue=i}function se(e,t,r,n,o){this.key=e,this.name=t,this.target=r,this.bucketId=n,this.value=o}function ue(e,t){this.id=e,this.rawValue=t}var ce={getRequest:function(n,o){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"),X(r,o),r.send()})}},postRequest:function(e,t,r,n,o){var t=JSON.stringify(t),i=new XMLHttpRequest;i.open("POST",e),i.onreadystatechange=function(){i.readyState===i.DONE&&(200<=i.status&&i.status<400?n({statusCode:i.status}):o&&o({statusCode:i.status}))},i.setRequestHeader("content-type","application/json"),X(i,r),i.send(t)},sendBeacon:function(e,t,r,n,o){var i=!1;(i="undefined"!=typeof window?window&&window.navigator&&window.navigator.sendBeacon&&!0:i)?(i=JSON.stringify(t),(t=new URLSearchParams).append("sdkName",r["X-HACKLE-SDK-NAME"]),t.append("sdkVersion",r["X-HACKLE-SDK-VERSION"]),t.append("data",i),window.navigator.sendBeacon(e,t),n()):(B.error("Does not support sendBeacon"),o())}},s=(Pe.isNotNullOrUndefined=function(e){return null!=e},Pe.isNullOrUndefined=function(e){return null==e},Pe.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},Pe),le=K.log,fe=(xe.of=function(e,t){return new xe(e,t)},xe),pe=(ke.of=function(e,t,r){return new ke(e,t,r=void 0===r?new ye:r)},ke.prototype.get=function(e,t){switch(typeof t){case"string":case"number":case"boolean":return this.config.get(e,t);default:return t}},ke),de=(Ie.on=function(e,t){return new Ie(!0,e,t=void 0===t?new ye:t)},Ie.off=function(e,t){return new Ie(!1,e,t=void 0===t?new ye:t)},Ie.prototype.get=function(e,t){switch(typeof t){case"string":case"number":case"boolean":return this.config.get(e,t);default:return t}},Ie),he=(Ae.prototype.get=function(e,t){return t},Ae),ye=(Ne.prototype.get=function(e,t){return t},Ne),u=(r.SDK_NOT_READY="SDK_NOT_READY",r.EXCEPTION="EXCEPTION",r.INVALID_INPUT="INVALID_INPUT",r.EXPERIMENT_NOT_FOUND="EXPERIMENT_NOT_FOUND",r.EXPERIMENT_DRAFT="EXPERIMENT_DRAFT",r.EXPERIMENT_PAUSED="EXPERIMENT_PAUSED",r.EXPERIMENT_COMPLETED="EXPERIMENT_COMPLETED",r.OVERRIDDEN="OVERRIDDEN",r.TRAFFIC_NOT_ALLOCATED="TRAFFIC_NOT_ALLOCATED",r.NOT_IN_MUTUAL_EXCLUSION_EXPERIMENT="NOT_IN_MUTUAL_EXCLUSION_EXPERIMENT",r.IDENTIFIER_NOT_FOUND="IDENTIFIER_NOT_FOUND",r.VARIATION_DROPPED="VARIATION_DROPPED",r.TRAFFIC_ALLOCATED="TRAFFIC_ALLOCATED",r.NOT_IN_EXPERIMENT_TARGET="NOT_IN_EXPERIMENT_TARGET",r.FEATURE_FLAG_NOT_FOUND="FEATURE_FLAG_NOT_FOUND",r.FEATURE_FLAG_INACTIVE="FEATURE_FLAG_INACTIVE",r.INDIVIDUAL_TARGET_MATCH="INDIVIDUAL_TARGET_MATCH",r.TARGET_RULE_MATCH="TARGET_RULE_MATCH",r.DEFAULT_RULE="DEFAULT_RULE",r.REMOTE_CONFIG_PARAMETER_NOT_FOUND="REMOTE_CONFIG_PARAMETER_NOT_FOUND",r.TYPE_MISMATCH="TYPE_MISMATCH",r),ve=(Se.prototype._winnerVariationOrNull=function(){if(this._winnerVariationId)return this._getVariationByIdOrNull(this._winnerVariationId)},Se.prototype._getVariationByIdOrNull=function(t){return this.variations.find(function(e){return e.id===t})},Se.prototype._getVariationByKeyOrNull=function(t){return this.variations.find(function(e){return e.key===t})},Se),me=(Ce.prototype.contains=function(e){return this.startInclusive<=e&&e<this.endExclusive},Ce),ge=(_e.ID="$id",_e.USER="$userId",_e.DEVICE="$deviceId",_e),we=(Oe.prototype.addIdentifiers=function(e){for(var t in e)this.add(t,e[t]);return this},Oe.prototype.add=function(e,t){return t&&this._isValid(e,t)?this.identifiers[e]=t:le.warn("Invalid user identifier [type=".concat(e,", value=").concat(t,"]")),this},Oe.prototype._isValid=function(e,t){return!(!e||"string"!=typeof e||128<e.length||!t||"string"!=typeof t||512<t.length)},Oe.prototype.build=function(){return this.identifiers},Oe),Ee=(Re.prototype.getGroupOrNull=function(t){return this.groups.find(function(e){return e.id===t})},Re),be=(Te.prototype.get=function(e,t){e=this.parameters.get(e);return!s.isNullOrUndefined(e)&&(s.isNullOrUndefined(t)||typeof e==typeof t)?e:t},Te);function Te(e,t){this.id=e,this.parameters=t}function Re(e,t,r){this.id=e,this.bucketId=t,this.groups=r}function Oe(){this.identifiers={}}function _e(){}function Ce(e,t,r){this.startInclusive=e,this.endExclusive=t,this.variationId=r}function Se(e,t,r,n,o,i,a,s,u,c,l,f,p,d){this.id=e,this.key=t,this.type=r,this.identifierType=n,this.status=o,this.version=i,this.variations=a,this.userOverrides=s,this.segmentOverrides=u,this.targetAudiences=c,this.targetRules=l,this.defaultRule=f,this.containerId=p,this._winnerVariationId=d}function r(){}function Ne(){}function Ae(){}function Ie(e,t,r){this.isOn=e,this.reason=t,this.config=r}function ke(e,t,r){this.variation=e,this.reason=t,this.config=r}function xe(e,t){this.value=e,this.reason=t}function Pe(){}tt.tryParse=function(e){var t,r,n,o,e=tt.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,o=e[4],e=e[5],new tt(new Ue(parseInt(t,10),parseInt(r,10),parseInt(n,10)),je.parse(o),je.parse(e))},tt.prototype.compareTo=function(e){return this.coreVersion.compareTo(e.coreVersion)||this.prerelease.compareTo(e.prerelease)},tt.prototype.isEqualTo=function(e){return 0===this.compareTo(e)},tt.prototype.isGreaterThan=function(e){return 0<this.compareTo(e)},tt.prototype.isGreaterThanOrEqualTo=function(e){return 0<=this.compareTo(e)},tt.prototype.isLessThan=function(e){return this.compareTo(e)<0},tt.prototype.isLessThanOrEqualTo=function(e){return this.compareTo(e)<=0},tt.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 De,Me=tt,Ue=(et.prototype.compareTo=function(e){return this.major-e.major||this.minor-e.minor||this.patch-e.patch},et),je=(Qe.parse=function(e){return e?new Qe(e.split(".")):Qe.EMPTY},Qe.prototype.isEmpty=function(){return 0===this.identifiers.length},Qe.prototype.isNotEmpty=function(){return!this.isEmpty()},Qe.prototype.compareTo=function(e){return this.isEmpty()&&e.isEmpty()?0:this.isEmpty()&&e.isNotEmpty()?1:this.isNotEmpty()&&e.isEmpty()?-1:this.compareIdentifiers(e)},Qe.prototype.compareIdentifiers=function(e){for(var t=Math.min(this.identifiers.length,e.identifiers.length),r=0;r<t;r++){var n=Qe.compareIdentifiers(this.identifiers[r],e.identifiers[r]);if(0!==n)return n}return this.identifiers.length-e.identifiers.length},Qe.compareIdentifiers=function(e,t){return Qe.numericIdentifierRegExp.test(e)&&Qe.numericIdentifierRegExp.test(t)?+e-+t:e===t?0:e<t?-1:1},Qe.EMPTY=new Qe([]),Qe.numericIdentifierRegExp=/^(0|[1-9]\d*)$/,Qe),Le=["MATCH","NOT_MATCH"],Fe=["STRING","NUMBER","BOOLEAN","VERSION","JSON"],Ve=["IN","CONTAINS","STARTS_WITH","ENDS_WITH","GT","GTE","LT","LTE"],He=["VARIATION","BUCKET"],Ke=["USER_ID","USER_PROPERTY","HACKLE_PROPERTY","SEGMENT"],ze=["USER_ID","USER_PROPERTY"],Ge=(Ze.prototype.supports=function(e){return this.supportedKeyTypes.includes(e)},Ze.IDENTIFIER=new Ze("SEGMENT"),Ze.PROPERTY=new Ze("SEGMENT","USER_PROPERTY","HACKLE_PROPERTY"),Ze.SEGMENT=new Ze("USER_ID","USER_PROPERTY","HACKLE_PROPERTY"),Ze),Be=K.log,qe=(Je.prototype.get=function(e,t){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 t}},Je.prototype._get=function(e,t,r){try{return s.isNullOrUndefined(this.hackleUser)?fe.of(r,u.INVALID_INPUT):s.isNullOrUndefined(e)?(Be.error("parameterKey must not be empty"),fe.of(r,u.INVALID_INPUT)):this.hackleInternalClient._remoteConfig(e,this.hackleUser,t,r)}catch(t){return Be.error("Unexpected exception while deciding remote config parameter[".concat(e,"]. Returning default value. : ").concat(t)),fe.of(r,u.EXCEPTION)}},Je),$e=K.log,Xe=(We.prototype.variation=function(e,t,r){return this.variationDetail(e,t,r).variation},We.prototype.variationDetail=function(e,t,r){r=r||"A";try{var n=this.hackleUserResolver.resolveOrNull(t);return n?this.hackleInternalClient._experiment(e,n,r):pe.of(r,u.INVALID_INPUT)}catch(t){return $e.error("Unexpected exception while deciding variation for experiment[".concat(e,"]. Returning default variation[").concat(r,"] : ").concat(t)),pe.of(r,u.EXCEPTION)}},We.prototype.isFeatureOn=function(e,t){return this.featureFlagDetail(e,t).isOn},We.prototype.featureFlagDetail=function(e,t){try{var r=this.hackleUserResolver.resolveOrNull(t);return r?this.hackleInternalClient._featureFlag(e,r):de.off(u.INVALID_INPUT)}catch(t){return $e.error('"Unexpected exception while deciding feature flag['.concat(e,"]. Returning default value[false] : ").concat(t)),de.off(u.EXCEPTION)}},We.prototype.track=function(e,t){$e.debug("track event : ".concat(JSON.stringify(e)));e=this._convertEvent(e),t=this.hackleUserResolver.resolveOrNull(t);t&&this.hackleInternalClient._track(e,t)},We.prototype.trackPageView=function(e){$e.debug("tracking page view");e=this.hackleUserResolver.resolveOrNull(null==e?void 0:e.user);e&&this.hackleInternalClient._track({key:"$page_view"},e)},We.prototype.remoteConfig=function(e){e=this.hackleUserResolver.resolveOrNull(e);return s.isNullOrUndefined(e)?new he:new qe(this.hackleInternalClient,e)},We.prototype.onReady=function(e,t){this.hackleInternalClient._onReady(e,t=void 0===t?3e3:t)},We.prototype.onInitialized=function(e){return this.hackleInternalClient._onInitialized({timeout:null==e?void 0:e.timeout})},We.prototype.close=function(){$e.debug("Hackle Client is closing"),this.hackleInternalClient._close()},We.prototype._convertEvent=function(e){return"string"==typeof e?{key:e}:e},We),Ye=new Uint8Array(16);function We(e,t){this.hackleInternalClient=e,this.hackleUserResolver=t}function Je(e,t){this.hackleInternalClient=e,this.hackleUser=t}function Ze(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.supportedKeyTypes=e}function Qe(e){this.identifiers=e}function et(e,t,r){this.major=e,this.minor=t,this.patch=r}function tt(e,t,r){this.coreVersion=e,this.prerelease=t,this.build=r}function rt(){if(De=De||"undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto))return De(Ye);throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported")}var nt=/^(?:[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 ot(e){return"string"==typeof e&&nt.test(e)}for(var it=[],at=0;at<256;++at)it.push((at+256).toString(16).substr(1));function st(e,t){t=1<arguments.length&&void 0!==t?t:0,e=(it[e[t+0]]+it[e[t+1]]+it[e[t+2]]+it[e[t+3]]+"-"+it[e[t+4]]+it[e[t+5]]+"-"+it[e[t+6]]+it[e[t+7]]+"-"+it[e[t+8]]+it[e[t+9]]+"-"+it[e[t+10]]+it[e[t+11]]+it[e[t+12]]+it[e[t+13]]+it[e[t+14]]+it[e[t+15]]).toLowerCase();if(ot(e))return e;throw TypeError("Stringified UUID is invalid")}function ut(){try{0}catch(e){}}function ct(e,t,r){var n=(e=e||{}).random||(e.rng||rt)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var o=0;o<16;++o)t[r+o]=n[o];return t}return st(n)}ut(),ut();Tt.filteredProperties=function(r){var n=this;return Object.keys(r).filter(function(e){return n.validProperty(e,r[e])}).reduce(function(e,t){return F(F({},e),((e={})[t]=n.filteredPropertiesValue(t,r[t]),e))},{})},Tt.filteredPropertiesValue=function(e,t){return!e.startsWith(Tt.SYSTEM_PROPERTY_KEY_PREFIX)&&"string"==typeof t&&1024<t.length?t.slice(0,1024):t},Tt.validProperty=function(e,t){return!!e&&"string"==typeof e&&!(128<e.length)&&("string"==typeof t||"boolean"==typeof t||"number"==typeof t&&!isNaN(t)&&isFinite(t))},Tt.SYSTEM_PROPERTY_KEY_PREFIX="$";var lt,ft,pt,dt=Tt,ht=(bt.exposure=function(e,t,r){return new yt((new Date).getTime(),t,e,r.variationId,r.variationKey,r.reason,this.exposureProperties(r))},bt.exposureProperties=function(e){return s.isNotNullOrUndefined(e.config)?{$parameterConfigurationId:e.config.id}:{}},bt.track=function(e,t,r){return new vt((new Date).getTime(),r,e,t)},bt.remoteConfig=function(e,t,r){return new mt((new Date).getTime(),t,e,r)},bt.isExposure=function(e){return void 0!==e.experiment},bt.isTrack=function(e){return void 0!==e.eventType},bt.isRemoteConfig=function(e){return void 0!==e.remoteConfigParameter},bt.isExposureDto=function(e){return"experimentId"in e&&void 0!==e.experimentId},bt.isTrackDto=function(e){return"eventTypeId"in e&&void 0!==e.eventTypeId},bt.isRemoteConfigDto=function(e){return"parameterId"in e&&void 0!==e.parameterId},bt.prototype.toDto=function(){return{insertId:this.insertId,timestamp:this.timestamp,userId:this.user.identifiers[ge.ID],identifiers:this.user.identifiers,userProperties:dt.filteredProperties(this.user.properties),hackleProperties:dt.filteredProperties(this.user.hackleProperties)}},bt),yt=(L(Et,pt=ht),Et.prototype.toDto=function(){return F(F({},pt.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})},Et),vt=(L(wt,ft=ht),wt.prototype.toDto=function(){return F(F({},ft.prototype.toDto.call(this)),{eventTypeId:this.eventType.id,eventTypeKey:this.eventType.key,value:this.event.value||0,properties:dt.filteredProperties(this.event.properties||{})})},wt),mt=(L(gt,lt=ht),gt.prototype.toDto=function(){return F(F({},lt.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:dt.filteredProperties(this.evaluation.properties)})},gt);function gt(e,t,r,n){e=lt.call(this,e,t)||this;return e.remoteConfigParameter=r,e.evaluation=n,e}function wt(e,t,r,n){e=ft.call(this,e,t)||this;return e.eventType=r,e.event=n,e}function Et(e,t,r,n,o,i,a){e=pt.call(this,e,t)||this;return e.experiment=r,e.variationId=n,e.variationKey=o,e.decisionReason=i,e.properties=a,e}function bt(e,t,r){void 0===r&&(r=ct()),this.timestamp=e,this.user=t,this.insertId=r}function Tt(){}function Rt(e){var t=new Array,r=new Array,n=new Array;return e.forEach(function(e){e instanceof ht?ht.isExposure(e)?t.push(e.toDto()):ht.isTrack(e)?r.push(e.toDto()):ht.isRemoteConfig(e)&&n.push(e.toDto()):ht.isExposureDto(e)?t.push(e):ht.isTrackDto(e)?r.push(e):ht.isRemoteConfigDto(e)&&n.push(e)}),{exposureEvents:t,trackEvents:r,remoteConfigEvents:n}}Ft.prototype.dispatch=function(e,t,r){var n={},e=(n["X-HACKLE-SDK-KEY"]=this.sdkKey,n["X-HACKLE-SDK-NAME"]=this.headers["X-HACKLE-SDK-NAME"],n["X-HACKLE-SDK-VERSION"]=this.headers["X-HACKLE-SDK-VERSION"],n["X-HACKLE-SDK-TIME"]=(new Date).getTime().toString(),Rt(e));this.httpRequest.postRequest(this.dispatchUrl,e,n,t,r)},Ft.prototype.dispatchXhrOrBeacon=function(e,t,r){var n,o;this.useBeacon?((n={})["X-HACKLE-SDK-KEY"]=this.sdkKey,n["X-HACKLE-SDK-NAME"]=this.headers["X-HACKLE-SDK-NAME"],n["X-HACKLE-SDK-VERSION"]=this.headers["X-HACKLE-SDK-VERSION"],n["X-HACKLE-SDK-TIME"]=(new Date).getTime().toString(),o=Rt(e),this.httpRequest.sendBeacon(this.beaconDispatchUrl,o,n,t,r)):this.dispatch(e,t,r)};var Ot=Ft,l=(Lt.mapNotNullOrUndefined=function(e,t){for(var r=Array(),n=0,o=e;n<o.length;n++){var i=t(o[n]);s.isNotNullOrUndefined(i)&&r.push(i)}return r},Lt.associateTo=function(e,t,r){for(var n=0,o=e;n<o.length;n++){var i=r(o[n]);t.set(i[0],i[1])}return t},Lt.associate=function(e,t){return this.associateTo(e,new Map,t)},Lt.associateBy=function(e,t){return this.associate(e,function(e){return[t(e),e]})},Lt),_t=K.log,Ct=(y.prototype.getExperimentOrNull=function(e){return this.experiments.get(e)},y.prototype.getFeatureFlagOrNull=function(e){return this.featureFlags.get(e)},y.prototype.getBucketOrNull=function(e){return this.buckets.get(e)},y.prototype.getEventTypeOrNull=function(e){return this.eventTypes.get(e)},y.prototype.getSegmentOrNull=function(e){return this.segments.get(e)},y.prototype.getContainerOrNull=function(e){return this.containers.get(e)},y.prototype.getParameterConfigurationOrNull=function(e){return this.parameterConfigurations.get(e)},y.prototype.getRemoteConfigParameterOrNull=function(e){return this.remoteConfigParameters.get(e)},y.from=function(e){var t=this,r=l.associate(e.buckets,function(e){return[e.id,t.toBucket(e)]});return new y(l.associateBy(l.mapNotNullOrUndefined(e.experiments,function(e){return t.toExperimentOrNull("AB_TEST",e)}),function(e){return e.key}),l.associateBy(l.mapNotNullOrUndefined(e.featureFlags,function(e){return t.toExperimentOrNull("FEATURE_FLAG",e)}),function(e){return e.key}),r,l.associate(e.events,function(e){return[e.key,new J(e.id,e.key)]}),l.associateBy(l.mapNotNullOrUndefined(e.segments,function(e){return t.toSegmentOrNull(e)}),function(e){return e.key}),l.associate(e.containers,function(e){return[e.id,t.toContainer(e)]}),l.associate(e.parameterConfigurations,function(e){return[e.id,t.toParameterConfiguration(e)]}),l.associateBy(l.mapNotNullOrUndefined(e.remoteConfigParameters,function(e){return t.toRemoteConfigParameterOrNull(e)}),function(e){return e.key}))},y.toBucket=function(e){return new W(e.seed,e.slotSize,e.slots.map(function(e){var t=e.startInclusive,r=e.endExclusive,e=e.variationId;return new me(t,r,e)}))},y.toExperimentOrNull=function(e,t){var r=this,n=this.experimentStatusOrNull(t.execution.status),o=t.variations.map(function(e){return new Y(e.id,e.key,"DROPPED"===e.status,e.parameterConfigurationId)}),i=l.associate(t.execution.userOverrides,function(e){return[e.userId,e.variationId]}),a=l.mapNotNullOrUndefined(t.execution.segmentOverrides,function(e){return r.toTargetRuleOrNull(e,Ge.IDENTIFIER)}),s=l.mapNotNullOrUndefined(t.execution.targetAudiences,function(e){return r.toTargetOrNull(e,Ge.PROPERTY)}),u=l.mapNotNullOrUndefined(t.execution.targetRules,function(e){return r.toTargetRuleOrNull(e,Ge.PROPERTY)}),c=this.toTargetActionOrNull(t.execution.defaultRule);return n&&c&&new ve(t.id,t.key,e,t.identifierType,n,t.version,o,i,a,s,u,c,t.containerId,t.winnerVariationId)},y.experimentStatusOrNull=function(e){switch(e){case"READY":return"DRAFT";case"RUNNING":return"RUNNING";case"PAUSED":return"PAUSED";case"STOPPED":return"COMPLETED";default:return void _t.debug("Unsupported status [".concat(e,"]"))}},y.toTargetRuleOrNull=function(e,t){t=this.toTargetOrNull(e.target,t),e=this.toTargetActionOrNull(e.action);return t&&e&&new ne(t,e)},y.toTargetActionOrNull=function(e){var t=this.parseOrNull(He,e.type);return t&&new re(t,e.variationId,e.bucketId)},y.toTargetOrNull=function(e,t){var r=this,e=l.mapNotNullOrUndefined(e.conditions,function(e){return r.toConditionOrNull(e,t)});return new Z(e)},y.toConditionOrNull=function(e,t){var r=this.toTargetKeyOrNull(e.key);if(r&&t.supports(r.type))return(t=this.toTargetMatchOrNull(e.match))&&new Q(r,t)},y.toTargetKeyOrNull=function(e){var t=this.parseOrNull(Ke,e.type);return t&&new ee(t,e.name)},y.toTargetMatchOrNull=function(e){var t=this.parseOrNull(Le,e.type),r=this.parseOrNull(Ve,e.operator),n=this.parseOrNull(Fe,e.valueType);return t&&r&&n&&new te(t,r,n,e.values)},y.toSegmentOrNull=function(e){var t=this,r=this.parseOrNull(ze,e.type);return r&&new oe(e.id,e.key,r,l.mapNotNullOrUndefined(e.targets,function(e){return t.toTargetOrNull(e,Ge.SEGMENT)}))},y.toContainer=function(e){var t=this;return new Ee(e.id,e.bucketId,e.groups.map(function(e){return t.toContainerGroup(e)}))},y.toContainerGroup=function(e){return new ie(e.id,e.experiments)},y.toParameterConfiguration=function(e){return new be(e.id,l.associate(e.parameters,function(e){return[e.key,e.value]}))},y.toRemoteConfigParameterOrNull=function(e){var t=this,r=this.parseOrNull(Fe,e.type),n=l.mapNotNullOrUndefined(e.targetRules,function(e){return t.toRemoteConfigTargetRuleOrNull(e,Ge.PROPERTY)}),o=this.toRemoteConfigParameterValueOrNull(e.defaultValue);return r&&new ae(e.id,e.key,r,e.identifierType,n,o)},y.toRemoteConfigTargetRuleOrNull=function(e,t){t=this.toTargetOrNull(e.target,t);return t&&new se(e.key,e.name,t,e.bucketId,this.toRemoteConfigParameterValueOrNull(e.value))},y.toRemoteConfigParameterValueOrNull=function(e){return new ue(e.id,e.value)},y.parseOrNull=function(e,t){e=e.find(function(e){return e===t});return e||_t.debug("Unsupported type [".concat(t,"]. Please use the latest version of sdk.")),e},y),St=(jt.prototype.onReady=function(){return this.readyPromise},jt.prototype.start=function(){this.isStarted||(this.isStarted=!0,this.errorRetryController.reset(),this.fetch())},jt.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()},jt.prototype.get=function(){return this.workspace},jt.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)},jt.prototype.fetch=function(){var e,t=this;(e={})["X-HACKLE-SDK-KEY"]=this.sdkKey,e["X-HACKLE-SDK-TIME"]=(new Date).getTime().toString(),e["X-HACKLE-SDK-NAME"]=this.headers["X-HACKLE-SDK-NAME"],e["X-HACKLE-SDK-VERSION"]=this.headers["X-HACKLE-SDK-VERSION"];function r(){t.onRequestComplete()}this.currentRequest=this.httpRequest.getRequest(this.fetchUrl,e);this.currentRequest.responsePromise.then(function(e){t.onRequestResolved(e)},function(e){t.onRequestRejected(e)}).then(r,r),0<this.updateInterval&&this.scheduleNextUpdate()},jt.prototype.onRequestComplete=function(){this.isStarted&&(this.currentRequest=null,this.syncOnCurrentRequestComplete&&this.fetch(),this.syncOnCurrentRequestComplete=!1)},jt.prototype.onRequestResolved=function(e){if(this.isStarted){if(void 0!==e.statusCode&&200<=e.statusCode&&e.statusCode<400)this.errorRetryController.reset();else{if(401===e.statusCode||403===e.statusCode)return void this.readyPromiseRejecter(new Error("Invalid key provided."));this.errorRetryController.countError()}e.body&&(e=JSON.parse(e.body),this.workspace=Ct.from(e),this.readyPromiseResolver())}},jt.prototype.onRequestRejected=function(e){this.isStarted&&(this.errorRetryController.countError(),console.error("Error fetching data",e))},jt.prototype.close=function(){this.stop()},jt),Nt=(Ut.prototype.getDelay=function(){return 0===this.errorCount?0:1e3*G[Math.min(G.length-1,this.errorCount)]+Math.round(1e3*Math.random())},Ut.prototype.countError=function(){this.errorCount<G.length-1&&this.errorCount++},Ut.prototype.reset=function(){this.errorCount=0},Ut),n="model",o="name",i="type",a="vendor",c="version",p="mobile",d="tablet",At=(h.parse=function(e){return{browser:h.getBrowser(e),cpu:h.getCPU(e),device:h.getDevice(e),engine:h.getEngine(e),os:h.getOS(e)}},h.getBrowser=function(e){var t={name:void 0,version:void 0,major:void 0};return h.mapper.rgx.call(t,e,h.regexes.browser),t.major=h.util.major(t.version),t},h.getCPU=function(e){var t={architecture:void 0};return h.mapper.rgx.call(t,e,h.regexes.cpu),t},h.getDevice=function(e){var t={model:void 0,type:void 0,vendor:void 0};return h.mapper.rgx.call(t,e,h.regexes.device),t},h.getEngine=function(e){var t={name:void 0,version:void 0};return h.mapper.rgx.call(t,e,h.regexes.os),t},h.getOS=function(e){var t={name:void 0,version:void 0};return h.mapper.rgx.call(t,e,h.regexes.os),t},h.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,"")}},h.regexes={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[o,c],[/(opios)[\/\s]+([\w\.]+)/i],[[o,"Opera Mini"],c],[/\s(opr)\/([\w\.]+)/i],[[o,"Opera"],c],[/(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,c],[/(konqueror)\/([\w\.]+)/i],[[o,"Konqueror"],c],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[o,"IE"],c],[/(edge|edgios|edga|edg)\/((\d+)?[\w\.]+)/i],[[o,"Edge"],c],[/(yabrowser)\/([\w\.]+)/i],[[o,"Yandex"],c],[/(Avast)\/([\w\.]+)/i],[[o,"Avast Secure Browser"],c],[/(AVG)\/([\w\.]+)/i],[[o,"AVG Secure Browser"],c],[/(puffin)\/([\w\.]+)/i],[[o,"Puffin"],c],[/(focus)\/([\w\.]+)/i],[[o,"Firefox Focus"],c],[/(opt)\/([\w\.]+)/i],[[o,"Opera Touch"],c],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[o,"UCBrowser"],c],[/(comodo_dragon)\/([\w\.]+)/i],[[o,/_/g," "],c],[/(windowswechat qbcore)\/([\w\.]+)/i],[[o,"WeChat(Win) Desktop"],c],[/(micromessenger)\/([\w\.]+)/i],[[o,"WeChat"],c],[/(brave)\/([\w\.]+)/i],[[o,"Brave"],c],[/(whale)\/([\w\.]+)/i],[[o,"Whale"],c],[/(qqbrowserlite)\/([\w\.]+)/i],[o,c],[/(QQ)\/([\d\.]+)/i],[o,c],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[o,c],[/(baiduboxapp)[\/\s]?([\w\.]+)/i],[o,c],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[o,c],[/(MetaSr)[\/\s]?([\w\.]+)/i],[o],[/(LBBROWSER)/i],[o],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[c,[o,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[c,[o,"Facebook"]],[/safari\s(line)\/([\w\.]+)/i,/android.+(line)\/([\w\.]+)\/iab/i],[o,c],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[c,[o,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[o,/(.+)/,"$1 WebView"],c],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[o,/(.+(?:g|us))(.+)/,"$1 $2"],c],[/((?:android.+)crmo|crios)\/([\w\.]+)/i,/android.+(chrome)\/([\w\.]+)\s+(?:mobile\s?safari)/i],[[o,"Chrome Mobile"],c],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[c,[o,"Android Browser"]],[/(sailfishbrowser)\/([\w\.]+)/i],[[o,"Sailfish Browser"],c],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[o,c],[/(dolfin)\/([\w\.]+)/i],[[o,"Dolphin"],c],[/(qihu|qhbrowser|qihoobrowser|360browser)/i],[[o,"360 Browser"]],[/(coast)\/([\w\.]+)/i],[[o,"Opera Coast"],c],[/fxios\/([\w\.-]+)/i],[c,[o,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[c,[o,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[c,o],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[o,"GSA"],c],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[o,[c,(h.mapper={rgx:function(e,t){for(var r,n,o,i,a,s=0;s<t.length&&!i;){for(var u=t[s],c=t[s+1],l=r=0;l<u.length&&!i;)if(i=u[l++].exec(e))for(n=0;n<c.length;n++)a=i[++r],"object"==typeof(o=c[n])&&0<o.length?2==o.length?"function"==typeof o[1]?this[o[0]]=o[1].call(this,a):this[o[0]]=o[1]:3==o.length?"function"!=typeof o[1]||o[1].exec&&o[1].test?this[o[0]]=a?a.replace(o[1],o[2]):void 0:this[o[0]]=a?o[1].call(this,a,o[2]):void 0:4==o.length&&(this[o[0]]=a?o[3].call(this,a.replace(o[1],o[2])):void 0):this[o]=a||void 0;s+=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(h.util.has(t[r][n],e))return"?"===r?void 0:r}else if(h.util.has(t[r],e))return"?"===r?void 0:r;return e}}).str,(h.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,c],[/(navigator|netscape)\/([\w\.-]+)/i],[[o,"Netscape"],c],[/(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,c]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[["architecture","amd64"]],[/(ia32(?=;))/i],[["architecture",h.util.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[["architecture","ia32"]],[/windows\s(ce|mobile);\sppc;/i],[["architecture","arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[["architecture",/ower/,"",h.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",h.util.lowerize]]],device:[[/\((ipad|playbook);[\w\s\),;-]+(rim|apple)/i],[n,a,[i,d]],[/applecoremedia\/[\w\.]+ \((ipad)/],[n,[a,"Apple"],[i,d]],[/(apple\s{0,1}tv)/i],[[n,"Apple TV"],[a,"Apple"],[i,"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],[a,n,[i,d]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[n,[a,"Amazon"],[i,d]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[n,h.mapper.str,h.maps.device.amazon.model],[a,"Amazon"],[i,p]],[/android.+aft([bms])\sbuild/i],[n,[a,"Amazon"],[i,"smarttv"]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[n,a,[i,p]],[/\((ip[honed|\s\w*]+);/i],[n,[a,"Apple"],[i,p]],[/(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],[a,n,[i,p]],[/\(bb10;\s(\w+)/i],[n,[a,"BlackBerry"],[i,p]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone|p00c)/i],[n,[a,"Asus"],[i,d]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[a,"Sony"],[n,"Xperia Tablet"],[i,d]],[/android.+\s([c-g]\d{4}|so[-l]\w+)(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[n,[a,"Sony"],[i,p]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[a,n,[i,"console"]],[/android.+;\s(shield)\sbuild/i],[n,[a,"Nvidia"],[i,"console"]],[/(playstation\s[34portablevi]+)/i],[n,[a,"Sony"],[i,"console"]],[/(sprint\s(\w+))/i],[[a,h.mapper.str,h.maps.device.sprint.vendor],[n,h.mapper.str,h.maps.device.sprint.model],[i,p]],[/(htc)[;_\s-]+([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[a,[n,/_/g," "],[i,p]],[/(nexus\s9)/i],[n,[a,"HTC"],[i,d]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p|vog-l29|ane-lx1|eml-l29)/i],[n,[a,"Huawei"],[i,p]],[/android.+(bah2?-a?[lw]\d{2})/i],[n,[a,"Huawei"],[i,d]],[/(microsoft);\s(lumia[\s\w]+)/i],[a,n,[i,p]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[n,[a,"Microsoft"],[i,"console"]],[/(kin\.[onetw]{3})/i],[[n,/\./g," "],[a,"Microsoft"],[i,p]],[/\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],[n,[a,"Motorola"],[i,p]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[n,[a,"Motorola"],[i,d]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[a,h.util.trim],[n,h.util.trim],[i,"smarttv"]],[/hbbtv.+maple;(\d+)/i],[[n,/^/,"SmartTV"],[a,"Samsung"],[i,"smarttv"]],[/\(dtv[\);].+(aquos)/i],[n,[a,"Sharp"],[i,"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],[[a,"Samsung"],n,[i,d]],[/smart-tv.+(samsung)/i],[a,[i,"smarttv"],n],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i,/sec-((sgh\w+))/i],[[a,"Samsung"],n,[i,p]],[/sie-(\w*)/i],[n,[a,"Siemens"],[i,p]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[a,"Nokia"],n,[i,p]],[/android[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[n,[a,"Acer"],[i,d]],[/android.+([vl]k\-?\d{3})\s+build/i],[n,[a,"LG"],[i,d]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[a,"LG"],n,[i,d]],[/(lg) netcast\.tv/i],[a,n,[i,"smarttv"]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[n,[a,"LG"],[i,p]],[/(lenovo)\s?(s(?:5000|6000)(?:[\w-]+)|tab(?:[\s\w]+))/i],[a,n,[i,d]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[n,[a,"Lenovo"],[i,d]],[/(lenovo)[_\s-]?([\w-]+)/i],[a,n,[i,p]],[/linux;.+((jolla));/i],[a,n,[i,p]],[/((pebble))app\/[\d\.]+\s/i],[a,n,[i,"wearable"]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[a,n,[i,p]],[/crkey/i],[[n,"Chromecast"],[a,"Google"],[i,"smarttv"]],[/android.+;\s(glass)\s\d/i],[n,[a,"Google"],[i,"wearable"]],[/android.+;\s(pixel c)[\s)]/i],[n,[a,"Google"],[i,d]],[/android.+;\s(pixel( [23])?( xl)?)[\s)]/i],[n,[a,"Google"],[i,p]],[/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],[[n,/_/g," "],[a,"Xiaomi"],[i,p]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i],[[n,/_/g," "],[a,"Xiaomi"],[i,d]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[n,[a,"Meizu"],[i,p]],[/(mz)-([\w-]{2,})/i],[[a,"Meizu"],n,[i,p]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})[\s)]/i],[n,[a,"OnePlus"],[i,p]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[n,[a,"RCA"],[i,d]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[n,[a,"Dell"],[i,d]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[n,[a,"Verizon"],[i,d]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[a,"Barnes & Noble"],n,[i,d]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[n,[a,"NuVision"],[i,d]],[/android.+;\s(k88)\sbuild/i],[n,[a,"ZTE"],[i,d]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[n,[a,"Swiss"],[i,p]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[n,[a,"Swiss"],[i,d]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[n,[a,"Zeki"],[i,d]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[a,"Dragon Touch"],n,[i,d]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[n,[a,"Insignia"],[i,d]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[n,[a,"NextBook"],[i,d]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[a,"Voice"],n,[i,p]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[a,"LvTel"],n,[i,p]],[/android.+;\s(PH-1)\s/i],[n,[a,"Essential"],[i,p]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[n,[a,"Envizen"],[i,d]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[a,n,[i,d]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[n,[a,"MachSpeed"],[i,d]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[a,n,[i,d]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[n,[a,"Rotor"],[i,d]],[/android.+(KS(.+))\s+build/i],[n,[a,"Amazon"],[i,d]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[a,n,[i,d]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[i,h.util.lowerize],a,n],[/[\s\/\(](smart-?tv)[;\)]/i],[[i,"smarttv"]],[/(android[\w\.\s\-]{0,9});.+build/i],[n,[a,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[c,[o,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[c,[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,c],[/rv\:([\w\.]{1,9}).+(gecko)/i],[c,o]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[o,c],[/(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,h.mapper.str,h.maps.os.windows],[c,h.mapper.str,h.maps.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[o,"Windows"],[c,h.mapper.str,h.maps.os.windows.version]],[/\((bb)(10);/i],[[o,"BlackBerry"],c],[/(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,c],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[o,"Symbian"],c],[/\((series40);/i],[o],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[o,"Firefox OS"],c],[/(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"],c],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[o,"Chromium OS"],c],[/(sunos)\s?([\w\.\d]*)/i],[[o,"Solaris"],c],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[[o,"Linux"],c],[/(iphone)(?:.*os\s*([\w]*)\slike\smac|;\sopera)/i],[[o,"iPhone"],[c,/_/g,"."]],[/(ipad)(?:.*os\s*([\w]*)\slike\smac|;\sopera)/i],[[o,"iPad"],[c,/_/g,"."]],[/(haiku)\s(\w+)/i],[o,c],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[c,/_/g,"."],[o,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[o,"Mac"],[c,/_/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,c]]},h),It=(Mt.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=At.parse(t.navigator.userAgent),n=r.browser,o=r.os,r=r.device,i=r.type?"mobile"===r.type?"Mobile":"ETC":"Web",a=(t.location.protocol||"").replace(":",""),s=t.screen,u="";try{u=Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){}return{platform:i||"",browserName:n.name||"",browserMajorVersion:n.major||"",browserVersion:n.version||"",osName:o.name||"",osVersion:o.version||"",deviceModel:r.model||"",deviceType:r.type||"",deviceVendor:r.vendor||"",language:(null==(i=t.navigator.languages)?void 0:i[0])||"",userAgent:t.navigator.userAgent||"",pagePath:t.location.pathname||"",pageTitle:t.document.title||"",host:t.location.host||"",protocol:a,referrer:t.document.referrer||"",queryParameter:t.location.search||"",screenWidth:s.width||"",screenHeight:s.height||"",timeZone:u||""}},Mt),kt=(Dt.prototype.resolveOrNull=function(e){e=this._resolveUser(e);return this._resolveHackleUserOrNull(e)},Dt.prototype.resolveAnonymousUser=function(){return{identifiers:{},properties:{},hackleProperties:this._getHackleProperties()}},Dt.prototype._resolveUser=function(e){return e?"string"==typeof e?{id:e}:e:{id:Vt()}},Dt.prototype._resolveHackleUserOrNull=function(e){var t=new we,t=(t.addIdentifiers(e.identifiers||{}),e.id&&t.add(ge.ID,e.id),e.userId&&t.add(ge.USER,e.userId),t.add(ge.DEVICE,e.deviceId||Vt()),t.build());if(0!==Object.keys(t).length)return{identifiers:t,properties:e.properties||{},hackleProperties:this._getHackleProperties()}},Dt.prototype._getHackleProperties=function(){var e;return(e="undefined"!=typeof window?It.generate(window):e)||{}},Dt),xt=(Pt.initialize=function(){Bt.get("_hackle_hid")||zt()},Pt.reInitialize=function(){zt()},Pt);function Pt(){}function Dt(){xt.initialize()}function Mt(){}function h(){}function Ut(){this.errorCount=0}function jt(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 Nt,this.currentRequest=null,this.syncOnCurrentRequestComplete=!1,this.isReadyPromiseSettled=!1}function y(e,t,r,n,o,i,a,s){this.experiments=e,this.featureFlags=t,this.buckets=r,this.eventTypes=n,this.segments=o,this.containers=i,this.parameterConfigurations=a,this.remoteConfigParameters=s}function Lt(){}function Ft(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 Vt(){var e=Bt.get("_hackle_id");return e||Bt.get("_hackle_hid")||zt()}function Ht(e){Bt.set("_hackle_id",e,3650,!0)}function Kt(){Bt.remove("_hackle_id",!0)}function zt(){var e=ct();return Bt.set("_hackle_hid",e,3650,!0),e}function Gt(e){return e&&e.Math==Math&&e}function v(e){try{return!!e()}catch(e){return!0}}Xt.get=function(e){for(var t=e+"=",r=document.cookie.split(";"),n=0;n<r.length;n++){for(var o=r[n];" "==o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(t))return decodeURIComponent(o.substring(t.length,o.length))}return null},Xt.set=function(e,t,r,n,o,i){var a="",s="",u="",r=(n&&(a=(n=Xt.extractDomain(document.location.hostname))?"; domain=."+n:""),r&&((n=new Date).setTime(n.getTime()+24*r*60*60*1e3),s="; expires="+n.toUTCString()),i&&(o=!0,u="; SameSite=None"),o&&(u+="; secure"),e+"="+encodeURIComponent(t)+s+"; path=/"+a+u);return document.cookie=r},Xt.remove=function(e,t){Xt.set(e,"",-1,t,!1,!1)},Xt.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]:""};var Bt=Xt,p="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},d=Gt("object"==typeof globalThis&&globalThis)||Gt("object"==typeof window&&window)||Gt("object"==typeof self&&self)||Gt("object"==typeof p&&p)||function(){return this}()||Function("return this")(),i={},n=!v(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),a=!v(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),qt=Function.prototype.call,o=a?qt.bind(qt):function(){return qt.apply(qt,arguments)},c={},e={}.propertyIsEnumerable,$t=Object.getOwnPropertyDescriptor,p=$t&&!e.call({1:2},1);function Xt(){}c.f=p?function(e){e=$t(this,e);return!!e&&e.enumerable}:e;function Yt(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}function Wt(e){return dr(pr(e),8,-1)}function Jt(e){if(null==e)throw mr("Can't call method on "+e);return e}function Zt(e){return gr(wr(e))}function m(e){return"function"==typeof e}function Qt(e){return"object"==typeof e?null!==e:Er(e)}function er(e,t){return arguments.length<2?(r=br[e],Tr(r)?r:void 0):br[e]&&br[e][t];var r}function tr(e){try{return Ir(e)}catch(e){return"Object"}}function rr(e){if(kr(e))return e;throw Pr(xr(e)+" is not a function")}function nr(e,t){return null==(e=e[t])?void 0:Dr(e)}function or(t,r){try{Vr(Fr,t,{value:r,configurable:!0,writable:!0})}catch(e){Fr[t]=r}return r}function g(e){return Gr(zr(e))}function ir(e){return"Symbol("+(void 0===e?"":e)+")_"+Jr(++Yr+Wr,36)}function w(e){var t;return Qr(nn,e)&&(tn||"string"==typeof nn[e])||(t="Symbol."+e,tn&&Qr(on,e)?nn[e]=on[e]:nn[e]=(rn&&an?an:sn)(t)),nn[e]}function ar(e){return e=function(e,t){if(!cn(e)||ln(e))return e;var r=fn(e,hn);if(r){if(r=un(r,e,t=void 0===t?"default":t),!cn(r)||ln(r))return r;throw dn("Can't convert object to primitive value")}return pn(e,t=void 0===t?"number":t)}(e,"string"),yn(e)?e:e+""}function sr(e){return mn?vn.createElement(e):{}}function ur(e){if(Sn(e))return e;throw An(Nn(e)+" is not an object")}var p=a,e=Function.prototype,cr=e.bind,lr=e.call,fr=p&&cr.bind(lr,lr),e=p?function(e){return e&&fr(e)}:function(e){return e&&function(){return lr.apply(e,arguments)}},cr=e,pr=cr({}.toString),dr=cr("".slice),p=v,hr=Wt,yr=Object,vr=e("".split),cr=p(function(){return!yr("z").propertyIsEnumerable(0)})?function(e){return"String"==hr(e)?vr(e,""):yr(e)}:yr,mr=TypeError,gr=cr,wr=Jt,Er=m,br=d,Tr=m,p=e({}.isPrototypeOf),Rr=er("navigator","userAgent")||"",E=Rr,Or=d.process,b=d.Deno,Or=Or&&Or.versions||b&&b.version,b=Or&&Or.v8,Or=R=!(R=b?0<(T=b.split("."))[0]&&T[0]<4?1:+(T[0]+T[1]):R)&&E&&(!(T=E.match(/Edge\/(\d+)/))||74<=T[1])&&(T=E.match(/Chrome\/(\d+)/))?+T[1]:R,_r=Or,b=v,E=!!Object.getOwnPropertySymbols&&!b(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&_r&&_r<41}),T=E&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Cr=er,Sr=m,Nr=p,Ar=Object,R=T?function(e){return"symbol"==typeof e}:function(e){var t=Cr("Symbol");return Sr(t)&&Nr(t.prototype,Ar(e))},Ir=String,kr=m,xr=tr,Pr=TypeError,Dr=rr,Mr=o,Ur=m,jr=Qt,Lr=TypeError,b={exports:{}},Fr=d,Vr=Object.defineProperty,Hr=or,Hr=d["__core-js_shared__"]||Hr("__core-js_shared__",{}),Kr=Hr,zr=((b.exports=function(e,t){return Kr[e]||(Kr[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"}),Jt),Gr=Object,Br=g,qr=e({}.hasOwnProperty),$r=Object.hasOwn||function(e,t){return qr(Br(e),t)},Xr=e,Yr=0,Wr=Math.random(),Jr=Xr(1..toString),Xr=d,Zr=b.exports,Qr=$r,en=ir,tn=E,rn=T,nn=Zr("wks"),on=Xr.Symbol,an=on&&on.for,sn=rn?on:on&&on.withoutSetter||en,un=o,cn=Qt,ln=R,fn=nr,pn=function(e,t){var r,n;if("string"===t&&Ur(r=e.toString)&&!jr(n=Mr(r,e)))return n;if(Ur(r=e.valueOf)&&!jr(n=Mr(r,e)))return n;if("string"!==t&&Ur(r=e.toString)&&!jr(n=Mr(r,e)))return n;throw Lr("Can't convert object to primitive value")},dn=TypeError,hn=w("toPrimitive"),yn=R,E=Qt,vn=d.document,mn=E(vn)&&E(vn.createElement),gn=sr,T=!n&&!v(function(){return 7!=Object.defineProperty(gn("div"),"a",{get:function(){return 7}}).a}),wn=o,En=c,bn=Yt,Tn=Zt,Rn=ar,On=$r,_n=T,Cn=Object.getOwnPropertyDescriptor,Zr=(i.f=n?Cn:function(e,t){if(e=Tn(e),t=Rn(t),_n)try{return Cn(e,t)}catch(e){}if(On(e,t))return bn(!wn(En.f,e,t),e[t])},{}),Xr=n&&v(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),Sn=Qt,Nn=String,An=TypeError,In=T,kn=ur,xn=ar,Pn=TypeError,Dn=Object.defineProperty,Mn=Object.getOwnPropertyDescriptor,Un=(Zr.f=n?Xr?function(e,t,r){var n;return kn(e),t=xn(t),kn(r),"function"==typeof e&&"prototype"===t&&"value"in r&&"writable"in r&&!r.writable&&(n=Mn(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}),Dn(e,t,r)}:Dn:function(e,t,r){if(kn(e),t=xn(t),kn(r),In)try{return Dn(e,t,r)}catch(e){}if("get"in r||"set"in r)throw Pn("Accessors not supported");return"value"in r&&(e[t]=r.value),e},Zr),jn=Yt,en=n?function(e,t,r){return Un.f(e,t,jn(1,r))}:function(e,t,r){return e[t]=r,e},R={exports:{}},E=n,c=$r,T=Function.prototype,O=E&&Object.getOwnPropertyDescriptor,c=c(T,"name"),c={EXISTS:c,PROPER:c&&"something"===function(){}.name,CONFIGURABLE:c&&(!E||O(T,"name").configurable)},E=m,O=Hr,Ln=e(Function.toString);E(O.inspectSource)||(O.inspectSource=function(e){return Ln(e)});function Fn(e){return no[e]||(no[e]=ro(e))}function Vn(e,t,r,n){var o=(n=n||{}).enumerable,i=void 0!==n.name?n.name:t;if(bo(r)&&Ro(r,i,n),n.global)o?e[t]=r:Oo(t,r);else{try{n.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=r:To.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e}function Hn(e){return(e=+e)!=e||0==e?0:So(e)}function Kn(e,t){return(e=No(e))<0?Ao(e+t,0):Io(e,t)}function _(e){return 0<(e=e.length)?xo(ko(e),9007199254740991):0}function zn(s){return function(e,t,r){var n,o=Po(e),i=Mo(o),a=Do(r,i);if(s&&t!=t){for(;a<i;)if((n=o[a++])!=n)return!0}else for(;a<i;a++)if((s||a in o)&&o[a]===t)return s||a||0;return!s&&-1}}function Gn(e,t){var r,n=jo(e),o=0,i=[];for(r in n)!Uo(Fo,r)&&Uo(n,r)&&Vo(i,r);for(;t.length>o;)!Uo(n,r=t[o++])||~Lo(i,r)||Vo(i,r);return i}function Bn(e,t,r){for(var n=Xo(t),o=Wo.f,i=Yo.f,a=0;a<n.length;a++){var s=n[a];$o(e,s)||r&&$o(r,s)||o(e,s,i(t,s))}}function qn(e,t){return(e=ti[ei(e)])==ni||e!=ri&&(Zo(t)?Jo(t):!!t)}function C(e,t){var r,n,o,i,a=e.target,s=e.global,u=e.stat;if(r=s?oi:u?oi[a]||ui(a,{}):(oi[a]||{}).prototype)for(n in t){if(o=t[n],i=e.dontCallGetSet?(i=ii(r,n))&&i.value:r[n],!li(s?n:a+(u?".":"#")+n,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;ci(o,i)}(e.sham||i&&i.sham)&&ai(o,"sham",!0),si(r,n,o,e)}}var $n,Xn,Yn,Wn,Jn,Zn,Qn,eo,T=O.inspectSource,E=m,O=T,to=d.WeakMap,E=E(to)&&/native code/.test(O(to)),O=b.exports,ro=ir,no=O("keys"),to={},b=e,oo=Qt,io=en,ao=$r,O=Hr,S=Fn,so=to,uo=d.TypeError,co=d.WeakMap,E=(Qn=E||O.state?($n=O.state||(O.state=new co),Xn=b($n.get),Yn=b($n.has),Wn=b($n.set),Jn=function(e,t){if(Yn($n,e))throw new uo("Object already initialized");return t.facade=e,Wn($n,e,t),t},Zn=function(e){return Xn($n,e)||{}},function(e){return Yn($n,e)}):(so[eo=S("state")]=!0,Jn=function(e,t){if(ao(e,eo))throw new uo("Object already initialized");return t.facade=e,io(e,eo,t),t},Zn=function(e){return ao(e,eo)?e[eo]:{}},function(e){return ao(e,eo)}),{set:Jn,get:Zn,has:Qn,enforce:function(e){return Qn(e)?Zn(e):Jn(e,{})},getterFor:function(t){return function(e){if(oo(e)&&(e=Zn(e)).type===t)return e;throw uo("Incompatible receiver, "+t+" required")}}}),O=v,lo=m,fo=$r,po=n,ho=c.CONFIGURABLE,yo=T,vo=E.enforce,mo=E.get,go=Object.defineProperty,wo=po&&!O(function(){return 8!==go(function(){},"length",{value:8}).length}),Eo=String(String).split("String"),co=R.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")||ho&&e.name!==t)&&(po?go(e,"name",{value:t,configurable:!0}):e.name=t),wo&&r&&fo(r,"arity")&&e.length!==r.arity&&go(e,"length",{value:r.arity});try{r&&fo(r,"constructor")&&r.constructor?po&&go(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}r=vo(e);return fo(r,"source")||(r.source=Eo.join("string"==typeof t?t:"")),e},bo=(Function.prototype.toString=co(function(){return lo(this)&&mo(this).source||yo(this)},"toString"),m),To=Zr,Ro=R.exports,Oo=or,b={},_o=Math.ceil,Co=Math.floor,So=Math.trunc||function(e){e=+e;return(0<e?Co:_o)(e)},No=Hn,Ao=Math.max,Io=Math.min,ko=Hn,xo=Math.min,Po=Zt,Do=Kn,Mo=_,so={includes:zn(!0),indexOf:zn(!1)},Uo=$r,jo=Zt,Lo=so.indexOf,Fo=to,Vo=e([].push),S=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ho=Gn,Ko=S.concat("length","prototype"),O=(b.f=Object.getOwnPropertyNames||function(e){return Ho(e,Ko)},{}),co=(O.f=Object.getOwnPropertySymbols,er),zo=b,Go=O,Bo=ur,qo=e([].concat),O=co("Reflect","ownKeys")||function(e){var t=zo.f(Bo(e)),r=Go.f;return r?qo(t,r(e)):t},$o=$r,Xo=O,Yo=i,Wo=Zr,Jo=v,Zo=m,Qo=/#|\.prototype\./,ei=qn.normalize=function(e){return String(e).replace(Qo,".").toLowerCase()},ti=qn.data={},ri=qn.NATIVE="N",ni=qn.POLYFILL="P",co=qn,oi=d,ii=i.f,ai=en,si=Vn,ui=or,ci=Bn,li=co,O=!v(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),fi=$r,pi=m,di=g,hi=Fn("IE_PROTO"),yi=Object,vi=yi.prototype,O=O?yi.getPrototypeOf:function(e){e=di(e);if(fi(e,hi))return e[hi];var t=e.constructor;return pi(t)&&e instanceof t?t.prototype:e instanceof yi?vi:null},mi=m,gi=String,wi=TypeError,Ei=e,bi=ur,Ti=Object.setPrototypeOf||("__proto__"in{}?function(){var r,n=!1,e={};try{(r=Ei(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),n=e instanceof Array}catch(r){}return function(e,t){return bi(e),function(e){if("object"==typeof e||mi(e))return;throw wi("Can't set "+gi(e)+" as a prototype")}(t),n?r(e,t):e.__proto__=t,e}}():void 0),Ri={},Oi=Gn,_i=S,N=Object.keys||function(e){return Oi(e,_i)},Ci=Zr,Si=ur,Ni=Zt,Ai=N;Ri.f=n&&!Xr?Object.defineProperties:function(e,t){Si(e);for(var r,n=Ni(t),o=Ai(t),i=o.length,a=0;a<i;)Ci.f(e,r=o[a++],n[r]);return e};function Ii(){}function ki(e){e.write(Xi("")),e.close();var t=e.parentWindow.Object;return e=null,t}function xi(e,t){return ra(e),void 0===t?e:na?oa(e,t):function(){return e.apply(t,arguments)}}function Pi(e){return void 0!==e&&(ia.Array===e||sa[aa]===e)}function Di(e){if(null!=e)return ha(e,va)||ha(e,"@@iterator")||ya[da(e)]}function Mi(e,t){if(t=arguments.length<2?ba(e):t,ga(t))return wa(ma(t,e));throw Ta(Ea(e)+" is not iterable")}function Ui(e,t,r){var n,o;Oa(e);try{if(!(n=_a(e,"return"))){if("throw"===t)throw r;return r}n=Ra(n,e)}catch(e){o=!0,n=e}if("throw"===t)throw r;if(o)throw n;return Oa(n),r}function ji(e,t){this.stopped=e,this.result=t}function Li(e,t,r){function n(e){return i&&Ma(i,"normal",e),new ji(!0,e)}function o(e){return p?(Na(e),y?v(e[0],e[1],n):v(e[0],e[1])):y?v(e,n):v(e)}var i,a,s,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=Ca(t,f);if(d)i=e.iterator;else if(h)i=e;else{if(!(r=Da(e)))throw Ua(Aa(e)+" is not iterable");if(Ia(r)){for(a=0,s=ka(e);a<s;a++)if((u=o(e[a]))&&xa(ja,u))return u;return new ji(!1)}i=Pa(e,r)}for(c=(d?e:i).next;!(l=Sa(c,i)).done;){try{u=o(l.value)}catch(e){Ma(i,"throw",e)}if("object"==typeof u&&u&&xa(ja,u))return u}return new ji(!1)}function Fi(e){if("Symbol"===La(e))throw TypeError("Cannot convert a Symbol value to a string");return Fa(e)}function Vi(e,t){var r,n=2<arguments.length?arguments[2]:void 0,o=za(es,this);return Ba?r=Ba(new Za,o?Ga(this):es):(r=o?this:$a(es),Xa(r,Ja,"Error")),void 0!==t&&Xa(r,"message",function(e,t){return void 0===e?arguments.length<2?"":t:Va(e)}(t)),Wa&&Xa(r,"stack",function(e,t){if(Qi&&"string"==typeof e&&!Wi.prepareStackTrace)for(;t--;)e=Ji(e,Zi,"");return e}(r.stack,1)),o=r,ea(t=n)&&"cause"in t&&ta(o,"cause",t.cause),Ya(e,Qa,{that:n=[]}),Xa(r,"errors",n),r}var Hi,N=er("document","documentElement"),Ki=ur,zi=Ri,Gi=S,Xr=to,Bi=N,qi=sr,$i=Fn("IE_PROTO"),Xi=function(e){return"<script>"+e+"<\/script>"},Yi=function(){try{Hi=new ActiveXObject("htmlfile")}catch(e){}var e,t;Yi="undefined"==typeof document||document.domain&&Hi?ki(Hi):((t=qi("iframe")).style.display="none",Bi.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Xi("document.F=Object")),e.close(),e.F);for(var r=Gi.length;r--;)delete Yi.prototype[Gi[r]];return Yi()},Ri=(Xr[$i]=!0,Object.create||function(e,t){var r;return null!==e?(Ii.prototype=Ki(e),r=new Ii,Ii.prototype=null,r[$i]=e):r=Yi(),void 0===t?r:zi.f(r,t)}),Wi=Error,Ji=e("".replace),S=String(Wi("zxcasd").stack),Zi=/\n\s*at [^:]*:[^\n]*/,Qi=Zi.test(S),ea=Qt,ta=en,ra=rr,na=a,oa=e(e.bind),Xr={},ia=Xr,aa=w("iterator"),sa=Array.prototype,S={},S=(S[w("toStringTag")]="z","[object z]"===String(S)),A=S,ua=m,ca=Wt,la=w("toStringTag"),fa=Object,pa="Arguments"==ca(function(){return arguments}()),A=A?ca: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=fa(e),la))?t:pa?ca(e):"Object"==(t=ca(e))&&ua(e.callee)?"Arguments":t},da=A,ha=nr,ya=Xr,va=w("iterator"),ma=o,ga=rr,wa=ur,Ea=tr,ba=Di,Ta=TypeError,Ra=o,Oa=ur,_a=nr,Ca=xi,Sa=o,Na=ur,Aa=tr,Ia=Pi,ka=_,xa=p,Pa=Mi,Da=Di,Ma=Ui,Ua=TypeError,ja=ji.prototype,La=A,Fa=String,Va=Fi,Ha=Yt,I=!v(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Ha(1,7)),7!==e.stack)}),Ka=C,za=p,Ga=O,Ba=Ti,qa=Bn,$a=Ri,Xa=en,k=Yt,Ya=Li,Wa=I,Ja=w("toStringTag"),Za=Error,Qa=[].push,es=(Ba?Ba(Vi,Za):qa(Vi,Za,{name:!0}),Vi.prototype=$a(Za.prototype,{constructor:k(1,Vi),message:k(1,""),name:k(1,"AggregateError")})),I=(Ka({global:!0,constructor:!0,arity:2},{AggregateError:Vi}),w),qa=Ri,k=Zr.f,ts=I("unscopables"),rs=Array.prototype;null==rs[ts]&&k(rs,ts,{configurable:!0,value:qa(null)});function x(e){rs[ts][e]=!0}var ns,Ka=v,I=m,k=O,qa=Vn,os=w("iterator"),P=!1;[].keys&&("next"in(us=[].keys())?(k=k(k(us)))!==Object.prototype&&(ns=k):P=!0);function is(e,t,r){(e=e&&!r?e.prototype:e)&&!ls(e,fs)&&cs(e,fs,{configurable:!0,value:t})}function as(){return this}function ss(e,t,r,n,o,i,a){var s=r,u=t,c=void 0;function l(e){if(e===o&&v)return v;if(!Is&&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",s.prototype=ds(ps,{next:hs(+!c,n)}),ys(s,u,!1),vs[u]=ms;var f,p,c=t+" Iterator",d=!1,h=e.prototype,y=h[ks]||h["@@iterator"]||o&&h[o],v=!Is&&y||l(o);if((n="Array"==t&&h.entries||y)&&(s=bs(n.call(new e)))!==Object.prototype&&s.next&&(bs(s)!==As&&(Ts?Ts(s,As):Es(s[ks])||_s(s,ks,as)),Rs(s,c,!0)),Ss&&"values"==o&&y&&"values"!==y.name&&(Ns?Os(h,"name","values"):(d=!0,v=function(){return ws(y,this)})),o)if(f={values:l("values"),keys:i?v:l("keys"),entries:l("entries")},a)for(p in f)!Is&&!d&&p in h||_s(h,p,f[p]);else gs({target:t,proto:!0,forced:Is||d},f);return h[ks]!==v&&_s(h,ks,v,{name:o}),Cs[t]=v,f}I((ns=null==ns||Ka(function(){var e={};return ns[os].call(e)!==e})?{}:ns)[os])||qa(ns,os,function(){return this});var us={IteratorPrototype:ns,BUGGY_SAFARI_ITERATORS:P},cs=Zr.f,ls=$r,fs=w("toStringTag"),ps=us.IteratorPrototype,ds=Ri,hs=Yt,ys=is,vs=Xr,ms=function(){return this},gs=C,ws=o,Es=m,bs=O,Ts=Ti,Rs=is,Os=en,_s=Vn,Cs=Xr,Ss=c.PROPER,Ns=c.CONFIGURABLE,As=us.IteratorPrototype,Is=us.BUGGY_SAFARI_ITERATORS,ks=w("iterator"),xs=Zt,k=x,I=Xr,Ka=E,qa=Zr.f,P=ss,c=n,Ps=Ka.set,Ds=Ka.getterFor("Array Iterator"),us=P(Array,"Array",function(e,t){Ps(this,{type:"Array Iterator",target:xs(e),index:0,kind:t})},function(){var e=Ds(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"),Xr=I.Arguments=I.Array;if(k("keys"),k("values"),k("entries"),c&&"values"!==Xr.name)try{qa(Xr,"name",{value:"values"})}catch(Xg){}function Ms(e){var e=Hs(e),t=Ks.f;zs&&e&&!e[Gs]&&t(e,Gs,{configurable:!0,get:function(){return this}})}function Us(e,t){if(Bs(t,e))return e;throw qs("Incorrect invocation")}function js(){}function Ls(e){if(!$s(e))return!1;try{return Js(js,Ws,e),!0}catch(e){return!1}}function Fs(e){if(!$s(e))return!1;switch(Xs(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return eu||!!Qs(Zs,Ys(e))}catch(e){return!0}}var Vs=A,Ka=(S||Vn(Object.prototype,"toString",S?{}.toString:function(){return"[object "+Vs(this)+"]"},{unsafe:!0}),"process"==Wt(d.process)),Hs=er,Ks=Zr,zs=n,Gs=w("species"),Bs=p,qs=TypeError,P=e,I=v,$s=m,Xs=A,Ys=T,Ws=[],Js=er("Reflect","construct"),Zs=/^\s*(?:class|function)\b/,Qs=P(Zs.exec),eu=!Zs.exec(js);Fs.sham=!0;function tu(e,t){var r,e=su(e).constructor;if(void 0===e||null==(r=su(e)[uu]))return t;if(ou(e=r))return e;throw au(iu(e)+" is not a constructor")}var ru,nu,k=!Js||I(function(){var e;return Ls(Ls.call)||!Ls(Object)||!Ls(function(){e=!0})||e})?Fs:Ls,ou=k,iu=tr,au=TypeError,su=ur,uu=w("species"),c=Function.prototype,cu=c.apply,lu=c.call,qa="object"==typeof Reflect&&Reflect.apply||(a?lu.bind(cu):function(){return lu.apply(cu,arguments)}),Xr=e([].slice),fu=TypeError,S=/(?:ipad|iphone|ipod).*applewebkit/i.test(Rr),pu=d,du=qa,p=xi,hu=m,yu=$r,A=v,vu=N,mu=Xr,gu=sr,P=S,I=Ka,c=pu.setImmediate,a=pu.clearImmediate,wu=pu.process,Eu=pu.Dispatch,bu=pu.Function,N=pu.MessageChannel,Tu=pu.String,Ru=0,Ou={};try{ru=pu.location}catch(Xg){}function _u(e){return function(){Nu(e)}}function Cu(e){Nu(e.data)}function Su(e){pu.postMessage(Tu(e),ru.protocol+"//"+ru.host)}var Nu=function(e){var t;yu(Ou,e)&&(t=Ou[e],delete Ou[e],t())};c&&a||(c=function(e){var t=arguments.length,r=1;if(t<r)throw fu("Not enough arguments");var n=hu(e)?e:bu(e),o=mu(arguments,1);return Ou[++Ru]=function(){du(n,void 0,o)},nu(Ru),Ru},a=function(e){delete Ou[e]},I?nu=function(e){wu.nextTick(_u(e))}:Eu&&Eu.now?nu=function(e){Eu.now(_u(e))}:N&&!P?(P=(I=new N).port2,I.port1.onmessage=Cu,nu=p(P.postMessage,P)):pu.addEventListener&&hu(pu.postMessage)&&!pu.importScripts&&ru&&"file:"!==ru.protocol&&!A(Su)?(nu=Su,pu.addEventListener("message",Cu,!1)):nu="onreadystatechange"in gu("script")?function(e){vu.appendChild(gu("script")).onreadystatechange=function(){vu.removeChild(this),Nu(e)}}:function(e){setTimeout(_u(e),0)});function Au(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}function Iu(){this.head=null,this.tail=null}function ku(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=Zu(r),this.reject=Zu(n)}var xu,Pu,Du,Mu,Uu,ju,Lu,N={set:c,clear:a},I=d,p=/ipad|iphone|ipod/i.test(Rr)&&void 0!==I.Pebble,P=/web0s(?!.*chrome)/i.test(Rr),A=d,c=xi,a=i.f,Fu=N.set,I=S,i=p,S=P,Vu=Ka,p=A.MutationObserver||A.WebKitMutationObserver,P=A.document,Hu=A.process,Ku=A.Promise,a=a(A,"queueMicrotask"),a=a&&a.value,S=(a||(xu=function(){var e,t;for(Vu&&(e=Hu.domain)&&e.exit();Pu;){t=Pu.fn,Pu=Pu.next;try{t()}catch(e){throw Pu?Mu():Du=void 0,e}}Du=void 0,e&&e.enter()},Mu=I||Vu||S||!p||!P?!i&&Ku&&Ku.resolve?((I=Ku.resolve(void 0)).constructor=Ku,Lu=c(I.then,I),function(){Lu(xu)}):Vu?function(){Hu.nextTick(xu)}:(Fu=c(Fu,A),function(){Fu(xu)}):(Uu=!0,ju=P.createTextNode(""),new p(xu).observe(ju,{characterData:!0}),function(){ju.data=Uu=!Uu})),a||function(e){e={fn:e,next:void 0};Du&&(Du.next=e),Pu||(Pu=e,Mu()),Du=e}),zu=d,i=(Iu.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}},Iu),Ku=d.Promise,I="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,c=!I&&!Ka&&"object"==typeof window&&"object"==typeof document,A=d,Gu=Ku,P=m,p=co,Bu=T,a=w,qu=c,$u=I,Xu=Or,Yu=(Gu&&Gu.prototype,a("species")),Wu=!1,Ju=P(A.PromiseRejectionEvent),T={CONSTRUCTOR:p("Promise",function(){var e=Bu(Gu),t=e!==String(Gu);if(!t&&66===Xu)return!0;if(!Xu||Xu<51||!/native code/.test(e)){var e=new Gu(function(e){e(1)}),r=function(e){e(function(){},function(){})};if((e.constructor={})[Yu]=r,!(Wu=e.then(function(){})instanceof r))return!0}return!t&&(qu||$u)&&!Ju}),REJECTION_EVENT:Ju,SUBCLASSING:Wu},c={},Zu=rr;c.f=function(e){return new ku(e)};function Qu(e,t){var r,n,o,i,a=t.value,s=1==t.state,u=s?e.ok:e.fail,c=e.resolve,l=e.reject,f=e.domain;try{u?(s||(2===t.rejection&&(i=t,ic(fc,oc,function(){var e=i.facade;nc?Oc.emit("rejectionHandled",e):Ic("rejectionhandled",e,i.value)})),t.rejection=1),!0===u?r=a:(f&&f.enter(),r=u(a),f&&(f.exit(),o=!0)),r===e.promise?l(Tc("Promise-chain cycle")):(n=Nc(r))?ic(n,r,c,l):c(r)):l(a)}catch(e){f&&!o&&f.exit(),l(e)}}var ec,tc,rc,I=C,nc=Ka,oc=d,ic=o,a=Vn,P=Ti,A=is,p=Ms,ac=rr,sc=m,uc=Qt,cc=Us,lc=tu,fc=N.set,pc=S,dc=Au,hc=i,N=E,S=Ku,i=c,yc=T.CONSTRUCTOR,vc=T.REJECTION_EVENT,mc=T.SUBCLASSING,gc=N.getterFor("Promise"),wc=N.set,N=S&&S.prototype,Ec=S,bc=N,Tc=oc.TypeError,Rc=oc.document,Oc=oc.process,_c=i.f,Cc=_c,Sc=!!(Rc&&Rc.createEvent&&oc.dispatchEvent),Nc=function(e){var t;return!(!uc(e)||!sc(t=e.then))&&t},Ac=function(r,o){r.notified||(r.notified=!0,pc(function(){for(var e,n,t=r.reactions;e=t.get();)Qu(e,r);r.notified=!1,o&&!r.rejection&&(n=r,ic(fc,oc,function(){var e,t=n.facade,r=n.value;if(kc(n)&&(e=dc(function(){nc?Oc.emit("unhandledRejection",r,t):Ic("unhandledrejection",t,r)}),n.rejection=nc||kc(n)?2:1,e.error))throw e.value}))}))},Ic=function(e,t,r){var n;Sc?((n=Rc.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),oc.dispatchEvent(n)):n={promise:t,reason:r},!vc&&(t=oc["on"+e])?t(n):"unhandledrejection"===e&&function(e,t){var r=zu.console;r&&r.error&&(1==arguments.length?r.error(e):r.error(e,t))}("Unhandled promise rejection",r)},kc=function(e){return 1!==e.rejection&&!e.parent},xc=function(t,r,n){return function(e){t(r,e,n)}},Pc=function(e,t,r){e.done||(e.done=!0,(e=r?r:e).value=t,e.state=2,Ac(e,!0))},Dc=function(r,e,t){if(!r.done){r.done=!0,t&&(r=t);try{if(r.facade===e)throw Tc("Promise can't be resolved itself");var n=Nc(e);n?pc(function(){var t={done:!1};try{ic(n,e,xc(Dc,t,r),xc(Pc,t,r))}catch(e){Pc(t,e,r)}}):(r.value=e,r.state=1,Ac(r,!1))}catch(e){Pc({done:!1},e,r)}}};if(yc&&(bc=(Ec=function(e){cc(this,bc),ac(e),ic(ec,this);var t=gc(this);try{e(xc(Dc,t),xc(Pc,t))}catch(e){Pc(t,e)}}).prototype,(ec=function(e){wc(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new hc,rejection:!1,state:0,value:void 0})}).prototype=a(bc,"then",function(e,t){var r=gc(this),n=_c(lc(this,Ec));return r.parent=!0,n.ok=!sc(e)||e,n.fail=sc(t)&&t,n.domain=nc?Oc.domain:void 0,0==r.state?r.reactions.add(n):pc(function(){Qu(n,r)}),n.promise}),tc=function(){var e=new ec,t=gc(e);this.promise=e,this.resolve=xc(Dc,t),this.reject=xc(Pc,t)},i.f=_c=function(e){return e===Ec||void 0===e?new tc:Cc(e)},sc(S)&&N!==Object.prototype)){rc=N.then,mc||a(N,"then",function(e,t){var r=this;return new Ec(function(e,t){ic(rc,r,e,t)}).then(e,t)},{unsafe:!0});try{delete N.constructor}catch(Xg){}P&&P(N,bc)}I({global:!0,constructor:!0,wrap:!0,forced:yc},{Promise:Ec}),A(Ec,"Promise",!1),p("Promise");var Mc=w("iterator"),Uc=!1;try{var jc=0,Lc={next:function(){return{done:!!jc++}},return:function(){Uc=!0}};Lc[Mc]=function(){return this},Array.from(Lc,function(){throw 2})}catch(Xg){}function Fc(e,t){if(!t&&!Uc)return!1;var r=!1;try{var n={};n[Mc]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r}function Vc(e,t){return nl(e),ol(t)&&t.constructor===e?t:((0,(e=il.f(e)).resolve)(t),e.promise)}function Hc(o){return function(e,t){var r,e=Ol(_l(e)),t=Rl(t),n=e.length;return t<0||n<=t?o?"":void 0:(r=Sl(e,t))<55296||56319<r||t+1===n||(n=Sl(e,t+1))<56320||57343<n?o?Cl(e,t):r:o?Nl(e,t,t+2):n-56320+(r-55296<<10)+65536}}function Kc(e,t){if(e){if(e[jl]!==Fl)try{Ul(e,jl,Fl)}catch(t){e[jl]=Fl}if(e[Ll]||Ul(e,Ll,t),Dl[t])for(var r in Ml)if(e[r]!==Ml[r])try{Ul(e,r,Ml[r])}catch(t){e[r]=Ml[r]}}}var zc,Gc=Ku,i=T.CONSTRUCTOR||!Fc(function(e){Gc.all(e).then(void 0,function(){})}),Bc=o,qc=rr,$c=c,Xc=Au,Yc=Li,S=(C({target:"Promise",stat:!0,forced:i},{all:function(e){var s=this,t=$c.f(s),u=t.resolve,c=t.reject,r=Xc(function(){var n=qc(s.resolve),o=[],i=0,a=1;Yc(e,function(e){var t=i++,r=!1;a++,Bc(n,s,e).then(function(e){r||(r=!0,o[t]=e,--a||u(o))},c)}),--a||u(o)});return r.error&&c(r.value),t.promise}}),C),mc=Ku,a=er,P=m,N=Vn,I=mc&&mc.prototype,Wc=(S({target:"Promise",proto:!0,forced:T.CONSTRUCTOR,real:!0},{catch:function(e){return this.then(void 0,e)}}),P(mc)&&(yc=a("Promise").prototype.catch,I.catch!==yc&&N(I,"catch",yc,{unsafe:!0})),o),Jc=rr,Zc=c,Qc=Au,el=Li,tl=(C({target:"Promise",stat:!0,forced:i},{race:function(e){var r=this,n=Zc.f(r),o=n.reject,t=Qc(function(){var t=Jc(r.resolve);el(e,function(e){Wc(t,r,e).then(n.resolve,o)})});return t.error&&o(t.value),n.promise}}),o),rl=c,nl=(C({target:"Promise",stat:!0,forced:T.CONSTRUCTOR},{reject:function(e){var t=rl.f(this);return tl(t.reject,void 0,e),t.promise}}),ur),ol=Qt,il=c,A=C,p=T.CONSTRUCTOR,al=Vc,sl=(er("Promise"),A({target:"Promise",stat:!0,forced:p},{resolve:function(e){return al(this,e)}}),o),ul=rr,cl=c,ll=Au,fl=Li,pl=(C({target:"Promise",stat:!0},{allSettled:function(e){var s=this,t=cl.f(s),u=t.resolve,r=t.reject,n=ll(function(){var n=ul(s.resolve),o=[],i=0,a=1;fl(e,function(e){var t=i++,r=!1;a++,sl(n,s,e).then(function(e){r||(r=!0,o[t]={status:"fulfilled",value:e},--a||u(o))},function(e){r||(r=!0,o[t]={status:"rejected",reason:e},--a||u(o))})}),--a||u(o)});return n.error&&r(n.value),t.promise}}),o),dl=rr,hl=er,yl=c,vl=Au,ml=Li,Lc=(C({target:"Promise",stat:!0},{any:function(e){var u=this,c=hl("AggregateError"),t=yl.f(u),l=t.resolve,f=t.reject,r=vl(function(){var n=dl(u.resolve),o=[],i=0,a=1,s=!1;ml(e,function(e){var t=i++,r=!1;a++,pl(n,u,e).then(function(e){r||s||(s=!0,l(e))},function(e){r||s||(r=!0,o[t]=e,--a||f(new c(o,"No one promise resolved")))})}),--a||f(new c(o,"No one promise resolved"))});return r.error&&f(r.value),t.promise}}),C),S=Ku,P=v,gl=er,wl=m,El=tu,bl=Vc,mc=Vn,Tl=S&&S.prototype,N=(Lc({target:"Promise",proto:!0,real:!0,forced:!!S&&P(function(){Tl.finally.call({then:function(){}},function(){})})},{finally:function(t){var r=El(this,gl("Promise")),e=wl(t);return this.then(e?function(e){return bl(r,t()).then(function(){return e})}:t,e?function(e){return bl(r,t()).then(function(){throw e})}:t)}}),wl(S)&&(a=gl("Promise").prototype.finally,Tl.finally!==a&&mc(Tl,"finally",a,{unsafe:!0})),e),Rl=Hn,Ol=Fi,_l=Jt,Cl=N("".charAt),Sl=N("".charCodeAt),Nl=N("".slice),Al=(Hc(!1),Hc(!0)),Il=Fi,I=E,yc=ss,kl=I.set,xl=I.getterFor("String Iterator"),i=(yc(String,"String",function(e){kl(this,{type:"String Iterator",string:Il(e),index:0})},function(){var e=xl(this),t=e.string,r=e.index;return r>=t.length?{value:void 0,done:!0}:(t=Al(t,r),e.index+=t.length,{value:t,done:!1})}),d),T=(i.Promise,sr("span").classList),A=T&&T.constructor&&T.constructor.prototype,p=A===Object.prototype?void 0:A,Pl=d,Dl={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},Ku=p,Ml=us,Ul=en,Lc=w,jl=Lc("iterator"),Ll=Lc("toStringTag"),Fl=Ml.values;for(zc in Dl)Kc(Pl[zc]&&Pl[zc].prototype,zc);Kc(Ku,"DOMTokenList");function Vl(e,t,r){(t=pf(t))in e?df.f(e,t,hf(0,r)):e[t]=r}function Hl(e){if(9007199254740991<e)throw xf("Maximum allowed index exceeded");return e}function Kl(e,t){return Pf(e=e)&&(r=e.constructor,(Df(r)&&(r===jf||Pf(r.prototype))||Mf(r)&&null===(r=r[Uf]))&&(r=void 0)),new(void 0===r?jf:r)(0===t?0:t);var r}function zl(t){return 51<=Ff||!Lf(function(){var e=[];return(e.constructor={})[Vf]=function(){return{foo:1}},1!==e[t](Boolean).foo})}function Gl(e,t){if(!delete e[t])throw Wf("Cannot delete property "+Yf(t)+" of "+Yf(e))}function Bl(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 o,i,a=op(e),s=np(a),u=rp(t,r),c=ip(s),l=0,t=n||ap,f=d?t(e,c):h||g?t(e,0):void 0;l<c;l++)if((w||l in s)&&(i=u(o=s[l],l,a),p))if(d)f[l]=i;else if(i)switch(p){case 3:return!0;case 5:return o;case 6:return l;case 2:sp(f,o)}else switch(p){case 4:return!1;case 7:sp(f,o)}return m?-1:y||v?v:f}}function ql(e,t){var r=[][e];return!!r&&up(function(){r.call(null,t||function(){return 1},1)})}function $l(u){var c=1==u;return function(e,t,r){for(var n,o=Ep(e),i=wp(o),a=gp(t,r),s=bp(i);0<s--;)if(a(n=i[s],s,o))switch(u){case 0:return n;case 1:return s}return c?-1:void 0}}function Xl(e,t,r,n,o,i,a,s){for(var u,c,l=o,f=0,p=!!a&&Sp(a,s);f<n;)f in r&&(u=p?p(r[f],f,t):r[f],0<i&&Op(u)?(c=_p(u),l=Xl(e,t,u,c,l,i-1)-1):(Cp(l+1),e[l]=u),l++),f++;return l}function Yl(c){return function(e,t,r,n){rd(t);var o=nd(e),i=od(o),a=id(o),s=c?a-1:0,u=c?-1:1;if(r<2)for(;;){if(s in i){n=i[s],s+=u;break}if(s+=u,c?s<0:a<=s)throw ad("Reduce of empty array with no initial value")}for(;c?0<=s:s<a;s+=u)s in i&&(n=t(n,i[s],s,o));return n}}function Wl(e,t,r){for(var n=Od(e),o=Rd(t,n),i=Rd(void 0===r?n:r,n),a=Cd(Sd(i-o,0)),s=0;o<i;o++,s++)_d(a,s,e[o]);return a.length=s,a}function Jl(e,t){var r=e.length,n=Ad(r/2);if(r<8){for(var o,i,a=e,s=t,u=a.length,c=1;c<u;){for(o=a[i=c];i&&0<s(a[i-1],o);)a[i]=a[--i];i!==c++&&(a[i]=o)}return a}for(var l=e,f=Jl(Nd(e,0,n),t),p=Jl(Nd(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 Zl(e){mh(e,Rh,{value:{objectID:"O"+Oh++,weakData:{}}})}function Ql(e,t,r){for(var n in t)Dh(e,n,t[n],r);return e}var ef,tf,rf,nf,of,af,sf,uf=c,cf=Au,lf=(C({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=uf.f(this),e=cf(e);return(e.error?t.reject:t.resolve)(e.value),t.promise}}),ur),ff=Ui,pf=ar,df=Zr,hf=Yt,yf=xi,vf=o,mf=g,gf=Pi,wf=k,Ef=_,bf=Vl,Tf=Mi,Rf=Di,Of=Array,_f=(C({target:"Array",stat:!0,forced:!Fc(function(e){Array.from(e)})},{from:function(e){var t=mf(e),e=wf(this),r=arguments.length,n=1<r?arguments[1]:void 0,o=void 0!==n;o&&(n=yf(n,2<r?arguments[2]:void 0));var i,a,s,u,c,l,r=Rf(t),f=0;if(!r||this===Of&&gf(r))for(i=Ef(t),a=e?new this(i):Of(i);f<i;f++)l=o?n(t[f],f):t[f],bf(a,f,l);else for(c=(u=Tf(t,r)).next,a=e?new this:[];!(s=vf(c,u)).done;f++)l=o?function(e,t,r,n){try{return n?t(lf(r)[0],r[1]):t(r)}catch(t){ff(e,"throw",t)}}(u,n,[s.value,f],!0):s.value,bf(a,f,l);return a.length=f,a}}),Wt),P=Array.isArray||function(e){return"Array"==_f(e)},Cf=(C({target:"Array",stat:!0},{isArray:P}),k),Sf=Vl,Nf=Array,Af=(C({target:"Array",stat:!0,forced:v(function(){function e(){}return!(Nf.of.call(e)instanceof e)})},{of:function(){for(var e=0,t=arguments.length,r=new(Cf(this)?this:Nf)(t);e<t;)Sf(r,e,arguments[e++]);return r.length=t,r}}),g),If=_,kf=Hn,S=x,xf=(C({target:"Array",proto:!0},{at:function(e){var t=Af(this),r=If(t),e=kf(e),e=0<=e?e:r+e;return e<0||r<=e?void 0:t[e]}}),S("at"),TypeError),Pf=P,Df=k,Mf=Qt,Uf=w("species"),jf=Array,Lf=v,Ff=Or,Vf=w("species"),mc=C,a=v,Hf=P,Kf=Qt,zf=g,Gf=_,Bf=Hl,qf=Vl,$f=Kl,N=zl,I=Or,Xf=w("isConcatSpreadable"),yc=51<=I||!a(function(){var e=[];return e[Xf]=!1,e.concat()[0]!==e}),T=N("concat"),Yf=(mc({target:"Array",proto:!0,arity:1,forced:!yc||!T},{concat:function(e){for(var t,r,n,o=zf(this),i=$f(o,0),a=0,s=-1,u=arguments.length;s<u;s++)if(function(e){if(!Kf(e))return!1;var t=e[Xf];return void 0!==t?!!t:Hf(e)}(n=-1===s?o:arguments[s]))for(r=Gf(n),Bf(a+r),t=0;t<r;t++,a++)t in n&&qf(i,a,n[t]);else Bf(a+1),qf(i,a++,n);return i.length=a,i}}),tr),Wf=TypeError,Jf=g,Zf=Kn,Qf=_,ep=Gl,tp=Math.min,A=x,rp=(C({target:"Array",proto:!0},{copyWithin:[].copyWithin||function(e,t){var r=Jf(this),n=Qf(r),o=Zf(e,n),i=Zf(t,n),e=2<arguments.length?arguments[2]:void 0,a=tp((void 0===e?n:Zf(e,n))-i,n-o),s=1;for(i<o&&o<i+a&&(s=-1,i+=a-1,o+=a-1);0<a--;)i in r?r[o]=r[i]:ep(r,o),o+=s,i+=s;return r}}),A("copyWithin"),xi),np=cr,op=g,ip=_,ap=Kl,sp=e([].push),p={forEach:Bl(0),map:Bl(1),filter:Bl(2),some:Bl(3),every:Bl(4),find:Bl(5),findIndex:Bl(6),filterReject:Bl(7)},up=v,cp=p.every,lp=(C({target:"Array",proto:!0,forced:!ql("every")},{every:function(e){return cp(this,e,1<arguments.length?arguments[1]:void 0)}}),g),fp=Kn,pp=_,us=x,dp=(C({target:"Array",proto:!0},{fill:function(e){for(var t=lp(this),r=pp(t),n=arguments.length,o=fp(1<n?arguments[1]:void 0,r),n=2<n?arguments[2]:void 0,i=void 0===n?r:fp(n,r);o<i;)t[o++]=e;return t}}),us("fill"),p.filter),en=(C({target:"Array",proto:!0,forced:!zl("filter")},{filter:function(e){return dp(this,e,1<arguments.length?arguments[1]:void 0)}}),C),hp=p.find,Lc=x,yp=!0,Ku=("find"in[]&&Array(1).find(function(){yp=!1}),en({target:"Array",proto:!0,forced:yp},{find:function(e){return hp(this,e,1<arguments.length?arguments[1]:void 0)}}),Lc("find"),C),vp=p.findIndex,c=x,mp=!0,gp=("findIndex"in[]&&Array(1).findIndex(function(){mp=!1}),Ku({target:"Array",proto:!0,forced:mp},{findIndex:function(e){return vp(this,e,1<arguments.length?arguments[1]:void 0)}}),c("findIndex"),xi),wp=cr,Ep=g,bp=_,S={findLast:$l(0),findLastIndex:$l(1)},Tp=S.findLast,I=x,Rp=(C({target:"Array",proto:!0},{findLast:function(e){return Tp(this,e,1<arguments.length?arguments[1]:void 0)}}),I("findLast"),S.findLastIndex),a=x,Op=(C({target:"Array",proto:!0},{findLastIndex:function(e){return Rp(this,e,1<arguments.length?arguments[1]:void 0)}}),a("findLastIndex"),P),_p=_,Cp=Hl,Sp=xi,N=Xl,Np=N,Ap=g,Ip=_,kp=Hn,xp=Kl,Pp=(C({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=Ap(this),r=Ip(t),n=xp(t,0);return n.length=Np(n,t,t,r,0,void 0===e?1:kp(e)),n}}),N),Dp=rr,Mp=g,Up=_,jp=Kl,Lp=(C({target:"Array",proto:!0},{flatMap:function(e){var t,r=Mp(this),n=Up(r);return Dp(e),(t=jp(r,0)).length=Pp(t,r,r,n,0,1,e,1<arguments.length?arguments[1]:void 0),t}}),p.forEach),mc=ql("forEach")?[].forEach:function(e){return Lp(this,e,1<arguments.length?arguments[1]:void 0)},Fp=(C({target:"Array",proto:!0,forced:[].forEach!=mc},{forEach:mc}),so.includes),yc=x,T=(C({target:"Array",proto:!0,forced:v(function(){return!Array(1).includes()})},{includes:function(e){return Fp(this,e,1<arguments.length?arguments[1]:void 0)}}),yc("includes"),C),Vp=so.indexOf,A=ql,Hp=e([].indexOf),Kp=!!Hp&&1/Hp([1],1,-0)<0,us=A("indexOf"),en=(T({target:"Array",proto:!0,forced:Kp||!us},{indexOf:function(e){var t=1<arguments.length?arguments[1]:void 0;return Kp?Hp(this,e,t)||0:Vp(this,e,t)}}),C),Lc=cr,zp=Zt,Ku=ql,Gp=e([].join),c=Lc!=Object,I=Ku("join",","),Bp=(en({target:"Array",proto:!0,forced:c||!I},{join:function(e){return Gp(zp(this),void 0===e?",":e)}}),qa),qp=Zt,$p=Hn,Xp=_,S=ql,Yp=Math.min,Wp=[].lastIndexOf,Jp=!!Wp&&1/[1].lastIndexOf(1,-0)<0,a=S("lastIndexOf"),N=Jp||!a?function(e){if(Jp)return Bp(Wp,this,arguments)||0;var t=qp(this),r=Xp(t),n=r-1;for((n=1<arguments.length?Yp(n,$p(arguments[1])):n)<0&&(n=r+n);0<=n;n--)if(n in t&&t[n]===e)return n||0;return-1}:Wp,Zp=(C({target:"Array",proto:!0,forced:N!==[].lastIndexOf},{lastIndexOf:N}),p.map),mc=(C({target:"Array",proto:!0,forced:!zl("map")},{map:function(e){return Zp(this,e,1<arguments.length?arguments[1]:void 0)}}),C),Qp=g,ed=_,td=Hl,yc=v(function(){return 4294967297!==[].push.call({length:4294967296},1)}),so=!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}(),rd=(mc({target:"Array",proto:!0,arity:1,forced:yc||so},{push:function(e){var t=Qp(this),r=ed(t),n=arguments.length;td(r+n);for(var o=0;o<n;o++)t[r]=arguments[o],r++;return t.length=r}}),rr),nd=g,od=cr,id=_,ad=TypeError,A={left:Yl(!1),right:Yl(!0)},sd=A.left,T=Or,us=Ka,ud=(C({target:"Array",proto:!0,forced:!ql("reduce")||!us&&79<T&&T<83},{reduce:function(e){var t=arguments.length;return sd(this,e,t,1<t?arguments[1]:void 0)}}),A.right),Lc=Or,Ku=Ka,en=(C({target:"Array",proto:!0,forced:!ql("reduceRight")||!Ku&&79<Lc&&Lc<83},{reduceRight:function(e){return ud(this,e,arguments.length,1<arguments.length?arguments[1]:void 0)}}),C),cd=P,ld=e([].reverse),c=[1,2],I=(en({target:"Array",proto:!0,forced:String(c)===String(c.reverse())},{reverse:function(){return cd(this)&&(this.length=this.length),ld(this)}}),C),fd=P,pd=k,dd=Qt,hd=Kn,yd=_,vd=Zt,md=Vl,qa=w,gd=Xr,S=zl("slice"),wd=qa("species"),Ed=Array,bd=Math.max,Td=(I({target:"Array",proto:!0,forced:!S},{slice:function(e,t){var r,n,o,i=vd(this),a=yd(i),s=hd(e,a),u=hd(void 0===t?a:t,a);if(fd(i)&&(r=i.constructor,(r=pd(r)&&(r===Ed||fd(r.prototype))||dd(r)&&null===(r=r[wd])?void 0:r)===Ed||void 0===r))return gd(i,s,u);for(n=new(void 0===r?Ed:r)(bd(u-s,0)),o=0;s<u;s++,o++)s in i&&md(n,o,i[s]);return n.length=o,n}}),p.some),Rd=(C({target:"Array",proto:!0,forced:!ql("some")},{some:function(e){return Td(this,e,1<arguments.length?arguments[1]:void 0)}}),Kn),Od=_,_d=Vl,Cd=Array,Sd=Math.max,Nd=Wl,Ad=Math.floor,a=Jl,N=Rr.match(/firefox\/(\d+)/i),mc=!!N&&+N[1],yc=/MSIE|Trident/.test(Rr),so=Rr.match(/AppleWebKit\/(\d+)\./),us=!!so&&+so[1],T=C,A=e,Id=rr,kd=g,xd=_,Pd=Gl,Dd=Fi,Ka=v,Md=a,Ku=ql,Ud=mc,jd=yc,Ld=Or,Fd=us,Vd=[],Hd=A(Vd.sort),Kd=A(Vd.push),Lc=Ka(function(){Vd.sort(void 0)}),en=Ka(function(){Vd.sort(null)}),c=Ku("sort"),zd=!Ka(function(){if(Ld)return Ld<70;if(!(Ud&&3<Ud)){if(jd)return!0;if(Fd)return Fd<603;for(var e,t,r,n="",o=65;o<76;o++){switch(e=String.fromCharCode(o),o){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++)Vd.push({k:e+r,v:t})}for(Vd.sort(function(e,t){return t.v-e.v}),r=0;r<Vd.length;r++)e=Vd[r].k.charAt(0),n.charAt(n.length-1)!==e&&(n+=e);return"DGBEFHACIJK"!==n}}),Xr=(T({target:"Array",proto:!0,forced:Lc||!en||!c||!zd},{sort:function(e){void 0!==e&&Id(e);var t=kd(this);if(zd)return void 0===e?Hd(t):Hd(t,e);for(var r,n,o=[],i=xd(t),a=0;a<i;a++)a in t&&Kd(o,t[a]);for(Md(o,(n=e,function(e,t){return void 0===t?-1:void 0===e?1:void 0!==n?+n(e,t)||0:Dd(e)>Dd(t)?1:-1})),r=o.length,a=0;a<r;)t[a]=o[a++];for(;a<i;)Pd(t,a++);return t}}),Ms("Array"),C),Gd=g,Bd=Kn,qd=Hn,$d=_,Xd=Hl,Yd=Kl,Wd=Vl,Jd=Gl,qa=zl("splice"),Zd=Math.max,Qd=Math.min,I=(Xr({target:"Array",proto:!0,forced:!qa},{splice:function(e,t){var r,n,o,i,a,s,u=Gd(this),c=$d(u),l=Bd(e,c),e=arguments.length;for(0===e?r=n=0:n=1===e?(r=0,c-l):(r=e-2,Qd(Zd(qd(t),0),c-l)),Xd(c+r-n),o=Yd(u,n),i=0;i<n;i++)(a=l+i)in u&&Wd(o,i,u[a]);if(r<(o.length=n)){for(i=l;i<c-n;i++)s=i+r,(a=i+n)in u?u[s]=u[a]:Jd(u,s);for(i=c;c-n+r<i;i--)Jd(u,i-1)}else if(n<r)for(i=c-n;l<i;i--)s=i+r-1,(a=i+n-1)in u?u[s]=u[a]:Jd(u,s);for(i=0;i<r;i++)u[i+l]=arguments[i+2];return u.length=c-n+r,o}}),x("flat"),x("flatMap"),C),eh=g,th=_,rh=Gl,nh=Hl,S=1!==[].unshift(0),N=!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}}(),Rr=(I({target:"Array",proto:!0,arity:1,forced:S||N},{unshift:function(e){var t=eh(this),r=th(t),n=arguments.length;if(n){nh(r+n);for(var o=r;o--;){var i=o+n;o in t?t[i]=t[o]:rh(t,i)}for(var a=0;a<n;a++)t[a]=arguments[a]}return t.length=r+n}}),i.Array,{exports:{}}),so={},oh=Wt,ih=Zt,ah=b.f,sh=Wl,uh="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=(so.f=function(e){if(!uh||"Window"!=oh(e))return ah(ih(e));var t=e;try{return ah(t)}catch(t){return sh(uh)}},v(function(){var e;"function"==typeof ArrayBuffer&&(e=new ArrayBuffer(8),Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8}))})),mc=v,ch=Qt,lh=Wt,fh=a,ph=Object.isExtensible,yc=mc(function(){ph(1)})||fh?function(e){return!!ch(e)&&(!fh||"ArrayBuffer"!=lh(e))&&(!ph||ph(e))}:ph,Or=!v(function(){return Object.isExtensible(Object.preventExtensions({}))}),dh=C,hh=e,us=to,yh=Qt,vh=$r,mh=Zr.f,gh=b,wh=so,Eh=yc,bh=Or,Th=!1,Rh=ir("meta"),Oh=0,_h=Rr.exports={enable:function(){_h.enable=function(){},Th=!0;var o=gh.f,i=hh([].splice),e={};e[Rh]=1,o(e).length&&(gh.f=function(e){for(var t=o(e),r=0,n=t.length;r<n;r++)if(t[r]===Rh){i(t,r,1);break}return t},dh({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:wh.f}))},fastKey:function(e,t){if(!yh(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!vh(e,Rh)){if(!Eh(e))return"F";if(!t)return"E";Zl(e)}return e[Rh].objectID},getWeakData:function(e,t){if(!vh(e,Rh)){if(!Eh(e))return!0;if(!t)return!1;Zl(e)}return e[Rh].weakData},onFreeze:function(e){return bh&&Th&&Eh(e)&&!vh(e,Rh)&&Zl(e),e}},Ch=(us[Rh]=!0,m),Sh=Qt,Nh=Ti,A=C,Ku=d,Ah=e,Ka=co,Ih=Vn,T=Rr.exports,kh=Li,xh=Us,Lc=m,Ph=Qt,en=v,c=Fc,Xr=is,Dh=Vn,Mh=Zr.f,Uh=Ri,jh=Ql,Lh=xi,Fh=Us,Vh=Li,Hh=ss,Kh=Ms,zh=n,Gh=Rr.exports.fastKey,Bh=E.set,qh=E.getterFor;function $h(e){var r=Ah(af[e]);Ih(af,e,"add"==e?function(e){return r(this,0===e?0:e),this}:"delete"==e?function(e){return!(rf&&!Ph(e))&&r(this,0===e?0:e)}:"get"==e?function(e){return rf&&!Ph(e)?void 0:r(this,0===e?0:e)}:"has"==e?function(e){return!(rf&&!Ph(e))&&r(this,0===e?0:e)}:function(e,t){return r(this,0===e?0:e,t),this})}qa=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},I={getConstructor:function(e,r,n,o){function i(e,t,r){var n,o=u(e),i=a(e,t);return i?i.value=r:(o.last=i={index:n=Gh(t,!0),key:t,value:r,previous:t=o.last,next:void 0,removed:!1},o.first||(o.first=i),t&&(t.next=i),zh?o.size++:e.size++,"F"!==n&&(o.index[n]=i)),e}function a(e,t){var r,e=u(e),n=Gh(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){Fh(e,s),Bh(e,{type:r,index:Uh(null),first:void 0,last:void 0,size:0}),zh||(e.size=0),null!=t&&Vh(t,e[o],{that:e,AS_ENTRIES:n})}),s=e.prototype,u=qh(r);return jh(s,{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,zh?e.size=0:this.size=0},delete:function(e){var t,r,n=u(this),e=a(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),zh?n.size--:this.size--),!!e},forEach:function(e){for(var t,r=u(this),n=Lh(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!!a(this,e)}}),jh(s,n?{get:function(e){e=a(this,e);return e&&e.value},set:function(e,t){return i(this,0===e?0:e,t)}}:{add:function(e){return i(this,e=0===e?0:e,e)}}),zh&&Mh(s,"size",{get:function(){return u(this).size}}),e},setStrong:function(e,t,r){var n=t+" Iterator",o=qh(t),i=qh(n);Hh(e,t,function(e,t){Bh(this,{type:n,target:e,state:o(e),kind:t,last:void 0})},function(){for(var e=i(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),Kh(t)}},tf=-1!==(S="Map").indexOf("Map"),rf=-1!==S.indexOf("Weak"),nf=tf?"set":"add",of=Ku.Map,af=of&&of.prototype,N={},Ka(S,!Lc(sf=of)||!(rf||af.forEach&&!en(function(){(new of).entries().next()})))?(sf=I.getConstructor(qa,S,tf,nf),T.enable()):Ka(S,!0)&&(i=(ef=new sf)[nf](rf?{}:-0,1)!=ef,a=en(function(){ef.has(1)}),mc=c(function(e){new of(e)}),to=!rf&&en(function(){for(var e=new of,t=5;t--;)e[nf](t,t);return!e.has(-0)}),mc||(((sf=qa(function(e,t){xh(e,af);r=new of,e=e,n=sf,Nh&&Ch(e=e.constructor)&&e!==n&&Sh(e=e.prototype)&&e!==n.prototype&&Nh(r,e);var r,n=r;return null!=t&&kh(t,n[nf],{that:n,AS_ENTRIES:tf}),n})).prototype=af).constructor=sf),(a||to)&&($h("delete"),$h("has"),tf&&$h("get")),(to||i)&&$h(nf),rf&&af.clear&&delete af.clear),N.Map=sf,A({global:!0,constructor:!0,forced:sf!=of},N),Xr(sf,S),rf||I.setStrong(sf,S,tf);function Xh(e,t){for(var r=0,n=Zh(t),o=new e(n);r<n;)o[r]=t[r++];return o}function Yh(e,t,r,n){for(var o,i,a,s=ty(e),u=ey(s),c=Qh(t,r),l=oy(null),f=ny(u),p=0;p<f;p++)a=u[p],(i=ry(c(a,p,s)))in l?sy(l[i],a):l[i]=[a];if(n&&(o=n(s))!==ay)for(i in l)l[i]=iy(o,l[i]);return l}function Wh(e){for(var t,r,n=py(this),o=fy(n),i=ly(e,1<arguments.length?arguments[1]:void 0),a=new hy,s=dy(o),u=0;u<s;u++)t=i(r=o[u],u,n),vy(a,t)?gy(yy(a,t),r):my(a,t,[r]);return a}function Jh(e){return Ty[e].prototype}var Zh=_,Qh=xi,ey=cr,ty=g,ry=ar,ny=_,oy=Ri,iy=Xh,ay=Array,sy=e([].push),uy=Yh,$r=x,cy=(C({target:"Array",proto:!0},{group:function(e){return uy(this,e,1<arguments.length?arguments[1]:void 0)}}),$r("group"),Yh),b=x,ly=(C({target:"Array",proto:!0,forced:!ql("groupBy")},{groupBy:function(e){return cy(this,e,1<arguments.length?arguments[1]:void 0)}}),b("groupBy"),xi),so=e,fy=cr,py=g,dy=_,hy=er("Map"),yc=hy.prototype,yy=so(yc.get),vy=so(yc.has),my=so(yc.set),gy=so([].push),Or=x,us=Wh,Ti=(C({target:"Array",proto:!0,name:"groupToMap",forced:!ql("groupByToMap")},{groupByToMap:us}),Or("groupByToMap"),x),wy=(C({target:"Array",proto:!0},{groupToMap:Wh}),Ti("groupToMap"),_),Ey=Zt,co=x,by=Array,Ty=(C({target:"Array",proto:!0},{toReversed:function(){for(var e=Ey(this),t=by,r=wy(e),n=new t(r),o=0;o<r;o++)n[o]=e[r-o-1];return n}}),co("toReversed"),d),Rr=C,Ry=rr,Oy=Zt,_y=Xh,Ku=x,Cy=Array,Sy=e(Jh("Array").sort),Ka=(Rr({target:"Array",proto:!0},{toSorted:function(e){void 0!==e&&Ry(e);var t=Oy(this),t=_y(Cy,t);return Sy(t,e)}}),Ku("toSorted"),C),c=x,Ny=Hl,Ay=_,Iy=Kn,ky=Zt,xy=Hn,Py=Array,Dy=Math.max,My=Math.min,Uy=(Ka({target:"Array",proto:!0},{toSpliced:function(e,t){var r,n,o,i,a=ky(this),s=Ay(a),u=Iy(e,s),e=arguments.length,c=0;for(0===e?r=n=0:n=1===e?(r=0,s-u):(r=e-2,My(Dy(xy(t),0),s-u)),o=Ny(s+r-n),i=Py(o);c<u;c++)i[c]=a[c];for(;c<u+r;c++)i[c]=arguments[c-u+2];for(;c<o;c++)i[c]=a[c+n-r];return i}}),c("toSpliced"),_),jy=Hn,Ly=RangeError,Fy=Zt,Vy=Array;C({target:"Array",proto:!0},{with:function(e,t){var r=Fy(this),n=Vy,o=t,i=Uy(r),a=(e=jy(e))<0?i+e:e;if(i<=a||a<0)throw Ly("Incorrect index");for(var s=new n(i),u=0;u<i;u++)s[u]=u===a?o:r[u];return s}});en=d,mc=Hr,qa=m,a=O,to=Vn,i=w("asyncIterator"),A=en.AsyncIterator,N=mc.AsyncIteratorPrototype;if(N)sm=N;else if(qa(A))sm=A.prototype;else if(mc.USE_FUNCTION_CONSTRUCTOR||en.USE_FUNCTION_CONSTRUCTOR)try{am=a(a(a(Function("return async function*(){}()")()))),a(am)===Object.prototype&&(sm=am)}catch(Xg){}qa((sm=sm||{})[i])||to(sm,i,function(){return this});function Hy(e,t,r){var n=e.done;Wy.resolve(e.value).then(function(e){t({done:n,value:e})},r)}function Ky(e){Jy(this,{type:"AsyncFromSyncIterator",iterator:Xy(e),next:e.next})}function zy(e,t,r,n){try{var o=cv(e,"return");if(o)return uv("Promise").resolve(sv(o,e)).then(function(){t(r)},function(e){n(e)})}catch(e){return n(e)}t(r)}function Gy(e){var p=0==e,d=1==e,h=2==e,y=3==e;return function(e,a,s){var e={iterator:e,next:iv(av(e).next)},u=hv("Promise"),c=e.iterator,t=e.next,l=0,f=void 0!==a;return!f&&p||fv(a),new u(function(r,n){var o=function(e){zy(c,n,e,n)},i=function(){try{if(p&&f)try{dv(l)}catch(e){o(e)}u.resolve(pv(lv(t,c))).then(function(e){try{if(pv(e).done)p?(s.length=l,r(s)):r(!y&&(h||void 0));else{var t=e.value;try{f?u.resolve(p?a(t,l):a(t)).then(function(e){if(d)i();else if(h)e?i():zy(c,r,!1,n);else if(p)try{s[l++]=e,i()}catch(e){o(e)}else e?zy(c,r,y||t,n):i()},o):(s[l++]=t,i())}catch(e){o(e)}}}catch(e){n(e)}},n)}catch(e){n(e)}};i()})}}function By(e,t){if(!Av||!Nv(e)||!Av(e))return!1;for(var r,n=0,o=e.length;n<o;)if(!("string"==typeof(r=e[n++])||t&&void 0===r))return!1;return 0!==o}function qy(e,t,r){r.get&&Iv(r.get,t,{getter:!0}),r.set&&Iv(r.set,t,{setter:!0}),kv.f(e,t,r)}var $y=o,Xy=ur,Xr=Ri,Yy=nr,I=Ql,S=E,$r=sm,Wy=er("Promise"),Jy=S.set,Zy=S.getterFor("AsyncFromSyncIterator"),b=(Ky.prototype=I(Xr($r),{next:function(){var n=Zy(this);return new Wy(function(e,t){var r=Xy($y(n.next,n.iterator));Hy(r,e,t)})},return:function(){var n=Zy(this).iterator;return new Wy(function(e,t){var r=Yy(n,"return");if(void 0===r)return e({done:!0,value:void 0});r=Xy($y(r,n));Hy(r,e,t)})}}),Ky),Qy=o,ev=b,tv=ur,rv=Mi,nv=nr,ov=w("asyncIterator"),iv=rr,av=ur,sv=o,uv=er,cv=nr,lv=o,fv=rr,pv=ur,dv=Hl,hv=er,cr={toArray:Gy(0),forEach:Gy(1),every:Gy(2),some:Gy(3),find:Gy(4)},yv=xi,vv=g,mv=k,gv=Mi,wv=Di,Ev=nr,yc=Jh,bv=er,Tv=b,Rv=cr.toArray,Ov=w("asyncIterator"),_v=yc("Array").values,Cv=(C({target:"Array",stat:!0,forced:!0},{fromAsync:function(i){var a=this,e=arguments.length,s=1<e?arguments[1]:void 0,u=2<e?arguments[2]:void 0;return new(bv("Promise"))(function(e){var t=vv(i),r=(void 0!==s&&(s=yv(s,u)),Ev(t,Ov)),n=r?void 0:wv(t)||_v,o=mv(a)?new a:[],r=r?function(e,t){t=arguments.length<2?nv(e,ov):t;return t?tv(Qy(t,e)):new ev(rv(e))}(t,r):new Tv(gv(t,n));e(Rv(r,s,o))})}}),p.filterReject),so=x,Sv=(C({target:"Array",proto:!0,forced:!0},{filterOut:function(e){return Cv(this,e,1<arguments.length?arguments[1]:void 0)}}),so("filterOut"),p.filterReject),us=x,Or=(C({target:"Array",proto:!0,forced:!0},{filterReject:function(e){return Sv(this,e,1<arguments.length?arguments[1]:void 0)}}),us("filterReject"),C),Nv=P,Av=Object.isFrozen,Iv=(Or({target:"Array",stat:!0,sham:!0,forced:!0},{isTemplateObject:function(e){if(!By(e,!0))return!1;var t=e.raw;return t.length===e.length&&By(t,!1)}}),R.exports),kv=Zr,Ti=x,xv=g,Pv=_,co=(n&&(qy(Array.prototype,"lastItem",{configurable:!0,get:function(){var e=xv(this),t=Pv(e);return 0==t?void 0:e[t-1]},set:function(e){var t=xv(this),r=Pv(t);return t[0==r?0:r-1]=e}}),Ti("lastItem")),x),Dv=g,Mv=_,Rr=(n&&(qy(Array.prototype,"lastIndex",{configurable:!0,get:function(){var e=Dv(this),e=Mv(e);return 0==e?0:e-1}}),co("lastIndex")),e),Uv=rr,jv=_,Lv=g,Fv=Kl,Vv=er("Map"),Ku=Vv.prototype,Hv=Rr(Ku.forEach),Kv=Rr(Ku.has),zv=Rr(Ku.set),Gv=Rr([].push),Ka=x;C({target:"Array",proto:!0,forced:!0},{uniqueBy:function(e){for(var t,r,n=Lv(this),o=jv(n),i=Fv(n,0),a=new Vv,s=null!=e?Uv(e):function(e){return e},u=0;u<o;u++)r=s(t=n[u]),Kv(a,r)||zv(a,r,t);return Hv(a,function(e){Gv(i,e)}),i}}),Ka("uniqueBy");Ag.prototype.start=function(){this.timeoutId=setTimeout(this.callback,this.timeout)},Ag.prototype.refresh=function(){this.stop(),this.start()},Ag.prototype.stop=function(){this.timeoutId&&clearTimeout(this.timeoutId)};var Bv,qv=Ag,$v=(Ng.prototype.start=function(){this.started=!0},Ng.prototype.stop=function(){this.started=!1;var e=this.sink(this.buffer,!0);return this.buffer=[],this.timer.stop(),e},Ng.prototype.enqueue=function(e){this.started&&(0===this.buffer.length&&this.timer.refresh(),this.buffer.push(e),this.buffer.length>=this.maxQueueSize&&this.flush())},Ng.prototype.flush=function(){this.sink(this.buffer),this.buffer=[],this.timer.stop()},Ng.prototype.close=function(){this.stop()},Ng),Xv=(Sg.prototype.isClientError=function(e){return!!(e&&400<=e.statusCode&&e.statusCode<500)},Sg.prototype.drainRepository=function(i){var e=this;return new Promise(function(o){return V(e,void 0,void 0,function(){var t,r,n=this;return H(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?i?this.eventDispatcher.dispatchXhrOrBeacon(t,function(){var e;o(null==(e=n.repository)?void 0:e.delete(t))},function(e){n.isClientError(e)?o(null==(e=n.repository)?void 0:e.delete(t)):o()}):this.eventDispatcher.dispatch(t,function(){var e;o(null==(e=n.repository)?void 0:e.delete(t))},function(e){n.isClientError(e)?o(null==(e=n.repository)?void 0:e.delete(t)):o()}):o(),[2]}})})})},Sg.prototype.drainQueue=function(o,i){var e=this,a=o.map(function(e){return e.toDto()});return new Promise(function(n){return V(e,void 0,void 0,function(){var t,r=this;return H(this,function(e){return 0===o.length?n():i?(null!=(t=this.repository)&&t.add(a),this.eventDispatcher.dispatchXhrOrBeacon(o,function(){var e;n(null==(e=r.repository)?void 0:e.delete(a))},function(e){r.isClientError(e)?n(null==(e=r.repository)?void 0:e.delete(a)):n()})):this.eventDispatcher.dispatch(o,function(){n()},function(e){r.isClientError(e)?n():n(null==(e=r.repository)?void 0:e.add(a))}),[2]})})})},Sg.prototype.process=function(e){this.queue.enqueue(e)},Sg.prototype.start=function(){return V(this,void 0,void 0,function(){return H(this,function(e){return this.queue.start(),[2]})})},Sg.prototype.stop=function(){try{this.queue.close()}catch(e){}return Promise.resolve()},Sg.prototype.flush=function(){this.queue.flush()},Sg.prototype.close=function(){this.stop()},Sg),Yv=(Cg.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]})},Cg),Wv=(_g.prototype.process=function(e){this.exposureEventDedupDeterminer.isDedupTarget(e)||this.delegate.process(e)},_g.prototype.close=function(){this.delegate.close()},_g.prototype.flush=function(){this.delegate.flush()},_g.prototype.start=function(){return this.delegate.start()},_g),Jv=(Og.prototype.isDedupTarget=function(e){if(-1===this.exposureEventDedupIntervalMillis)return!1;if(!ht.isExposure(e))return!1;Yv.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)},Og),Zv=(Rg.toEvent=function(e){var t;return{key:Rg.EVENT_KEY,properties:{level:Rg.LEVEL_ERROR,type:e.name,message:null!=(t=e.message)?t:"",$stacktrace:Rg._stacktrace(e)}}},Rg._stacktrace=function(e){return s.isNullOrUndefined(e.stack)?"":e.stack.split("\n").slice(0,Rg.STACK_TRACK_LIMIT).join("\n")},Rg.EVENT_KEY="$trace",Rg.LEVEL_ERROR="error",Rg.STACK_TRACK_LIMIT=30,Rg),Qv=K.log,em=(Tg.prototype._experiment=function(e,t,r){if(!e)return Qv.error("experimentKey must not be empty"),pe.of(r,u.INVALID_INPUT);var n=this.workspaceFetcher.get();if(!n)return Qv.warn("SDK not ready."),pe.of(r,u.SDK_NOT_READY);e=n.getExperimentOrNull(e);if(!e)return Qv.warn("Experiment does not exist."),pe.of(r,u.EXPERIMENT_NOT_FOUND);n=this.evaluator.evaluate(n,e,t,r),this.eventProcessor.process(ht.exposure(e,t,n)),e=null!=(r=n.config)?r:new ye;return pe.of(n.variationKey,n.reason,e)},Tg.prototype._featureFlag=function(e,t){if(!e)return Qv.error("featureKey must not be empty"),de.off(u.INVALID_INPUT);var r=this.workspaceFetcher.get();if(!r)return Qv.warn("SDK not ready."),de.off(u.SDK_NOT_READY);var e=r.getFeatureFlagOrNull(e);if(!e)return Qv.warn("FeatureFlag does not exist."),de.off(u.FEATURE_FLAG_NOT_FOUND);r=this.evaluator.evaluate(r,e,t,"A"),this.eventProcessor.process(ht.exposure(e,t,r)),t=null!=(e=r.config)?e:new ye;return"A"===r.variationKey?de.off(r.reason,t):de.on(r.reason,t)},Tg.prototype._track=function(e,t){var r;e?"object"==typeof e?"object"!=typeof e||e.key&&"string"==typeof e.key?(r=(null==(r=this.workspaceFetcher.get())?void 0:r.getEventTypeOrNull(e.key))||new J(0,e.key),this.eventProcessor.process(ht.track(r,e,t))):Qv.warn("Event key must be not null. or event key must be string type."):Qv.warn("Event must be event type."):Qv.warn("event must not be null.")},Tg.prototype._trackException=function(e,t){this.errorDedupDeterminer.isDedupTarget(e)||(e=Zv.toEvent(e),this._flush(),this._track(e,t),this._flush())},Tg.prototype._flush=function(){this.eventProcessor.flush()},Tg.prototype._remoteConfig=function(e,t,r,n){var o=this.workspaceFetcher.get();if(s.isNullOrUndefined(o))return Qv.warn("SDK not ready."),fe.of(n,u.SDK_NOT_READY);e=o.getRemoteConfigParameterOrNull(e);if(s.isNullOrUndefined(e))return Qv.warn("Remote config parameter does not exist."),fe.of(n,u.REMOTE_CONFIG_PARAMETER_NOT_FOUND);o=this.evaluator.remoteConfigEvaluate(o,e,t,r,n);return this.eventProcessor.process(ht.remoteConfig(e,t,o)),fe.of(o.value,o.reason)},Tg.prototype._onReady=function(e,t){this._onInitialized({timeout:t=void 0===t?3e3:t}).then(function(){return e()})},Tg.prototype._onInitialized=function(e){var t,e=e.timeout,e=void 0===e?3e3:e,r=(Qv.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?Qv.debug("HackleClient onInitialized Success"):e.error instanceof Error?Qv.error("HackleClient onInitialized Failed. ".concat(e.error.message)):Qv.error("HackleClient onInitialized Failed. ".concat(e.error)),Promise.resolve({success:e.success})})},Tg.prototype._close=function(){this.workspaceFetcher.close(),this.eventProcessor.close()},Tg),tm=(bg.prototype.isDedupTarget=function(e){return!!this._isSameError(e,this.previous)||(this.previous=e,!1)},bg.prototype._isSameError=function(e,t){return!s.isNullOrUndefined(t)&&e.name===t.name&&e.message===t.message&&e.stack===t.stack},bg),rm=(Eg.of=function(e,t,r,n){t=t._getVariationByKeyOrNull(r);return s.isNotNullOrUndefined(t)?Eg.withVariation(e,t,n):new Eg(void 0,r,n,void 0)},Eg.withVariation=function(e,t,r){e=this.config(e,t);return new Eg(t.id,t.key,r,e)},Eg.config=function(e,t){if(!s.isNullOrUndefined(t.parameterConfigurationId))return s.requiredNotNullOrUndefined(e.getParameterConfigurationOrNull(t.parameterConfigurationId),function(){return"ParameterConfiguration[".concat(t.parameterConfigurationId,"]")})},Eg),nm=(wg.withRemoteConfigParameterValue=function(e,t,r,n,o){var i=null;switch(r){case"STRING":"string"==typeof e.rawValue&&(i=e.rawValue);break;case"NUMBER":"number"==typeof e.rawValue&&(i=e.rawValue);break;case"BOOLEAN":"boolean"==typeof e.rawValue&&(i=e.rawValue)}return s.isNotNullOrUndefined(i)?(o.returnValue=i,new wg(e.id,i,t,o)):new wg(void 0,o.returnValue=n,u.TYPE_MISMATCH,o)},wg),om=(gg.prototype.evaluate=function(e,t,r,n){return this.evaluationFlowFactory.getFlow(t.type).evaluate(e,t,r,n)},gg.prototype.remoteConfigEvaluate=function(e,t,r,n,o){var i={};if(i.requestValueType=n,i.requestDefaultValue=o,s.isNullOrUndefined(r.identifiers[t.identifierType]))return new nm(void 0,o,u.IDENTIFIER_NOT_FOUND,i);e=this.evaluationFlowFactory.getRemoteConfigParameterTargetRuleDeterminer().determineTargetRuleOrNull(e,t,r);return e?(i.targetRuleKey=e.key,i.targetRuleName=e.name,nm.withRemoteConfigParameterValue(e.value,u.TARGET_RULE_MATCH,n,o,i)):nm.withRemoteConfigParameterValue(t.defaultValue,u.DEFAULT_RULE,n,o,i)},gg),im=(mg.prototype.matches=function(e,t,r){var n=this;return e.conditions.every(function(e){return n._matches(e,t,r)})},mg.prototype._matches=function(e,t,r){return this.conditionMatcherFactory.getMatcher(e.key.type).matches(e,t,r)},mg),c=(vg.prototype.matches=function(t,e){var r=this.valueMatcherFactory.getMatcher(e.valueType),n=this.operatorMatcherFactory.getMatcher(e.operator),o=e.values.some(function(e){return r.matches(n,t,e)});return this._matches(e.type,o)},vg.prototype._matches=function(e,t){switch(e){case"MATCH":return t;case"NOT_MATCH":return!t}},vg),d=(yg.prototype.booleanMatches=function(e,t){return e===t},yg.prototype.numberMatches=function(e,t){return e===t},yg.prototype.stringMatches=function(e,t){return e===t},yg.prototype.versionMatches=function(e,t){return e.isEqualTo(t)},yg),Hr=(hg.prototype.booleanMatches=function(e,t){return!1},hg.prototype.numberMatches=function(e,t){return!1},hg.prototype.stringMatches=function(e,t){return e.includes(t)},hg.prototype.versionMatches=function(e,t){return!1},hg),O=(dg.prototype.booleanMatches=function(e,t){return!1},dg.prototype.numberMatches=function(e,t){return!1},dg.prototype.stringMatches=function(e,t){return e.startsWith(t)},dg.prototype.versionMatches=function(e,t){return!1},dg),N=(pg.prototype.booleanMatches=function(e,t){return!1},pg.prototype.numberMatches=function(e,t){return!1},pg.prototype.stringMatches=function(e,t){return e.endsWith(t)},pg.prototype.versionMatches=function(e,t){return!1},pg),A=(fg.prototype.booleanMatches=function(e,t){return!1},fg.prototype.numberMatches=function(e,t){return t<e},fg.prototype.stringMatches=function(e,t){return!1},fg.prototype.versionMatches=function(e,t){return e.isGreaterThan(t)},fg),mc=(lg.prototype.booleanMatches=function(e,t){return!1},lg.prototype.numberMatches=function(e,t){return t<=e},lg.prototype.stringMatches=function(e,t){return!1},lg.prototype.versionMatches=function(e,t){return e.isGreaterThanOrEqualTo(t)},lg),en=(cg.prototype.booleanMatches=function(e,t){return!1},cg.prototype.numberMatches=function(e,t){return e<t},cg.prototype.stringMatches=function(e,t){return!1},cg.prototype.versionMatches=function(e,t){return e.isLessThan(t)},cg),a=(ug.prototype.booleanMatches=function(e,t){return!1},ug.prototype.numberMatches=function(e,t){return e<=t},ug.prototype.stringMatches=function(e,t){return!1},ug.prototype.versionMatches=function(e,t){return e.isLessThanOrEqualTo(t)},ug),am=(sg.prototype.getMatcher=function(e){switch(e){case"IN":return sg.IN_MATCHER;case"CONTAINS":return sg.CONTAINS_MATCHER;case"STARTS_WITH":return sg.STARTS_WITH_MATCHER;case"ENDS_WITH":return sg.ENDS_WITH_MATCHER;case"GT":return sg.GT_MATCHER;case"GTE":return sg.GTE_MATCHER;case"LT":return sg.LT_MATCHER;case"LTE":return sg.LTE_MATCHER}},sg.IN_MATCHER=new d,sg.CONTAINS_MATCHER=new Hr,sg.STARTS_WITH_MATCHER=new O,sg.ENDS_WITH_MATCHER=new N,sg.GT_MATCHER=new A,sg.GTE_MATCHER=new mc,sg.LT_MATCHER=new en,sg.LTE_MATCHER=new a,sg),qa=(ag.prototype.matches=function(e,t,r){return"string"==typeof t&&"string"==typeof r&&e.stringMatches(t,r)},ag),to=(ig.prototype.matches=function(e,t,r){return"number"==typeof t&&"number"==typeof r&&e.numberMatches(t,r)},ig),i=(og.prototype.matches=function(e,t,r){return"boolean"==typeof t&&"boolean"==typeof r&&e.booleanMatches(t,r)},og),Ri=(ng.prototype.matches=function(e,t,r){t=Me.tryParse(t),r=Me.tryParse(r);return!(!t||!r)&&e.versionMatches(t,r)},ng),E=(rg.prototype.getMatcher=function(e){switch(e){case"STRING":case"JSON":return rg.STRING_MATCHER;case"NUMBER":return rg.NUMBER_MATCHER;case"BOOLEAN":return rg.BOOLEAN_MATCHER;case"VERSION":return rg.VERSION_MATCHER}},rg.STRING_MATCHER=new qa,rg.NUMBER_MATCHER=new to,rg.BOOLEAN_MATCHER=new i,rg.VERSION_MATCHER=new Ri,rg),sm=(tg.prototype.matches=function(e,t,r){r=this.userValueResolver.resolveOrNull(r,e.key);return!s.isNullOrUndefined(r)&&this.valueOperatorMatcher.matches(r,e.match)},tg),S=(eg.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,"]"))}},eg),I=(Qm.prototype.matches=function(e,t,r){var n=this;if("SEGMENT"!=e.key.type)throw new Error("Unsupported TargetKeyType [".concat(e.key.type,"]"));var o=e.match.values.some(function(e){return n._matches(e,t,r)});switch(e.match.type){case"MATCH":return o;case"NOT_MATCH":return!o}},Qm.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,"]"))},Qm),Xr=(Zm.prototype.matches=function(e,t,r){var n=this;return e.targets.some(function(e){return n._matches(e,t,r)})},Zm.prototype._matches=function(e,t,r){var n=this;return e.conditions.every(function(e){return n.userConditionMatcher.matches(e,t,r)})},Zm),um=(Jm.prototype.getMatcher=function(e){switch(e){case"USER_ID":case"USER_PROPERTY":case"HACKLE_PROPERTY":return Jm.USER_CONDITION_MATCHER;case"SEGMENT":return Jm.SEGMENT_CONDITION_MATCHER}},Jm.USER_CONDITION_MATCHER=new sm(new S,new c(new E,new am)),Jm.SEGMENT_CONDITION_MATCHER=new I(new Xr(Jm.USER_CONDITION_MATCHER)),Jm),cm=(Wm.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)}},Wm.prototype._resolveVariation=function(e,t){return t._getVariationByIdOrNull(e.variationId)},Wm.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)}},Wm),lm={murmurhash3_x86_32:function(e,t,r,n){for(var o,i=3432918353,a=461845907,s=-4&(n=void 0===n?e.length:n),u=t,c=0;c<s;c+=4)o=255&e.charCodeAt(c)|(255&e.charCodeAt(c+1))<<8|(255&e.charCodeAt(c+2))<<16|(255&e.charCodeAt(c+3))<<24,o=(131071&(o=this.mul32(o,i)))<<15|o>>>17,u=5*((524287&(u^=o=this.mul32(o,a)))<<13|u>>>19)+3864292196|0;switch(o=0,n%4){case 3:o=(255&e.charCodeAt(2+s))<<16;case 2:o|=(255&e.charCodeAt(1+s))<<8;case 1:o|=255&e.charCodeAt(s),o=(131071&(o=this.mul32(o,i)))<<15|o>>>17,u^=o=this.mul32(o,a)}return u=this.mul32(u=(u^=n)^u>>>16,2246822507),(u=this.mul32(u^=u>>>13,3266489909))^u>>>16},mul32:function(e,t){var r=65535&t;return((t-r)*e|0)+(r*e|0)|0}},fm=(Ym.prototype.bucketing=function(e,t){var r=this.calculateSlotNumber(e.seed,e.slotSize,t);return e.slots.find(function(e){return e.contains(r)})},Ym.prototype.calculateSlotNumber=function(e,t,r){r=lm.murmurhash3_x86_32(r,e);return Math.abs(r)%Math.abs(t)},Ym),pm=(Xm.prototype.evaluate=function(e,t,r,n){return this.flowEvaluator&&this.nextFlow?this.flowEvaluator.evaluate(e,t,r,n,this.nextFlow):rm.of(e,t,n,u.TRAFFIC_NOT_ALLOCATED)},Xm.of=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=new Xm,n=0,o=e.reverse();n<o.length;n++)r=new Xm(o[n],r);return r},Xm),dm=($m.prototype.evaluate=function(e,t,r,n,o){var i=this.overrideResolver.resolveOrNull(e,t,r);if(!i)return o.evaluate(e,t,r,n);switch(t.type){case"AB_TEST":return rm.withVariation(e,i,u.OVERRIDDEN);case"FEATURE_FLAG":return rm.withVariation(e,i,u.INDIVIDUAL_TARGET_MATCH)}},$m),hm=(qm.prototype.evaluate=function(e,t,r,n,o){return"DRAFT"===t.status?rm.of(e,t,n,u.EXPERIMENT_DRAFT):o.evaluate(e,t,r,n)},qm),ym=(Bm.prototype.evaluate=function(e,t,r,n,o){if("PAUSED"!==t.status)return o.evaluate(e,t,r,n);switch(t.type){case"AB_TEST":return rm.of(e,t,n,u.EXPERIMENT_PAUSED);case"FEATURE_FLAG":return rm.of(e,t,n,u.FEATURE_FLAG_INACTIVE)}},Bm),vm=(Gm.prototype.evaluate=function(e,t,r,n,o){if("COMPLETED"!==t.status)return o.evaluate(e,t,r,n);o=t._winnerVariationOrNull();if(o)return rm.withVariation(e,o,u.EXPERIMENT_COMPLETED);throw new Error("winner variation [".concat(t.id,"]"))},Gm),mm=(zm.prototype.evaluate=function(e,t,r,n,o){if("AB_TEST"!==t.type)throw new Error("experiment type must be AB_TEST [".concat(t.id,"]"));return this.experimentTargetDeterminer.isUserInExperimentTarget(e,t,r)?o.evaluate(e,t,r,n):rm.of(e,t,n,u.NOT_IN_EXPERIMENT_TARGET)},zm),gm=(Km.prototype.evaluate=function(e,t,r,n,o){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?rm.of(e,t,n,u.VARIATION_DROPPED):rm.withVariation(e,r,u.TRAFFIC_ALLOCATED):rm.of(e,t,n,u.TRAFFIC_NOT_ALLOCATED)},Km),wm=(Hm.prototype.evaluate=function(e,t,r,n,o){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 o.evaluate(e,t,r,n);var i=this.targetRuleDeterminer.determineTargetRuleOrNull(e,t,r);if(!i)return o.evaluate(e,t,r,n);o=this.actionResolver.resolveOrNull(i.action,e,t,r);if(o)return rm.withVariation(e,o,u.TARGET_RULE_MATCH);throw new Error("FeatureFlag must decide the Variation [".concat(t.id,"]"))},Hm),Em=(Vm.prototype.evaluate=function(e,t,r,n,o){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 rm.of(e,t,n,u.DEFAULT_RULE);n=this.actionResolver.resolveOrNull(t.defaultRule,e,t,r);if(n)return rm.withVariation(e,n,u.DEFAULT_RULE);throw new Error("FeatureFlag must decide the Variation [".concat(t.id,"]"))},Vm),bm=(Fm.prototype.evaluate=function(e,t,r,n,o){var i=t.containerId;if(!i)return o.evaluate(e,t,r,n);var a=e.getContainerOrNull(i);if(!a)throw new Error("container[".concat(i,"]"));i=e.getBucketOrNull(a.bucketId);if(i)return this.containerResolver.isUserInContainerGroup(a,i,t,r)?o.evaluate(e,t,r,n):rm.of(e,t,n,u.NOT_IN_MUTUAL_EXCLUSION_EXPERIMENT);throw new Error("bucket[".concat(a.bucketId,"]"))},Fm),Tm=(Lm.prototype.evaluate=function(e,t,r,n,o){return r.identifiers[t.identifierType]?o.evaluate(e,t,r,n):rm.of(e,t,n,u.IDENTIFIER_NOT_FOUND)},Lm),Rm=(jm.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)})},jm),Om=(Um.prototype.determineTargetRuleOrNull=function(t,e,r){var n=this;return e.targetRules.find(function(e){return n.targetMatcher.matches(e.target,t,r)})},Um),_m=(Mm.prototype.resolveOrNull=function(e,t,r){return this._resolveUserOverride(t,r)||this._resolveSegmentOverride(e,t,r)},Mm.prototype._resolveUserOverride=function(e,t){t=t.identifiers[e.identifierType];if(t){t=e.userOverrides.get(t);if(t)return e._getVariationByIdOrNull(t)}},Mm.prototype._resolveSegmentOverride=function(t,e,r){var n=this,o=e.segmentOverrides.find(function(e){return n.targetMatcher.matches(e.target,t,r)});if(o)return this.actionResolver.resolveOrNull(o.action,t,e,r)},Mm),Cm=(Dm.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,"]"))},Dm),Sm=(Pm.prototype.determineTargetRuleOrNull=function(t,r,n){var o=this;return r.targetRules.find(function(e){return o.matches(e,t,r,n)})},Pm.prototype.matches=function(e,t,r,n){if(!this.targetMatcher.matches(e.target,t,n))return!1;n=n.identifiers[r.identifierType];if(s.isNullOrUndefined(n))return!1;r=t.getBucketOrNull(e.bucketId);if(s.isNullOrUndefined(r))throw new Error("bucket[".concat(e.bucketId,"]"));return s.isNotNullOrUndefined(this.bucketer.bucketing(r,n))},Pm),Nm=(xm.prototype.getFlow=function(e){switch(e){case"AB_TEST":return this.abTestFlow;case"FEATURE_FLAG":return this.featureFlagFlow}},xm.prototype.getRemoteConfigParameterTargetRuleDeterminer=function(){return this.remoteConfigParameterTargetRuleDeterminer},xm),Am=(km.prototype.install=function(e,t){this._install("onerror",e,t),this._install("onunhandledrejection",e,t)},km.prototype._install=function(e,t,r){e in this._installed||((0,this._installations[e])(t,r),this._installed.push(e))},km),Im=null;function km(){this._installed=[],this._installations={onerror:Ig,onunhandledrejection:kg}}function xm(){var e=new fm,t=new im(new um),r=new cm(e),n=new _m(t,r),o=new Cm(e);this.abTestFlow=pm.of(new dm(n),new Tm,new bm(o),new mm(new Rm(t)),new hm,new ym,new vm,new gm(r)),this.featureFlagFlow=pm.of(new hm,new ym,new vm,new dm(n),new Tm,new wm(new Om(t),r),new Em(r)),this.remoteConfigParameterTargetRuleDeterminer=new Sm(t,e)}function Pm(e,t){this.targetMatcher=e,this.bucketer=t}function Dm(e){this.bucketer=e}function Mm(e,t){this.targetMatcher=e,this.actionResolver=t}function Um(e){this.targetMatcher=e}function jm(e){this.targetMatcher=e}function Lm(){}function Fm(e){this.containerResolver=e}function Vm(e){this.actionResolver=e}function Hm(e,t){this.targetRuleDeterminer=e,this.actionResolver=t}function Km(e){this.actionResolver=e}function zm(e){this.experimentTargetDeterminer=e}function Gm(){}function Bm(){}function qm(){}function $m(e){this.overrideResolver=e}function Xm(e,t){void 0===t&&(t=void 0),this.flowEvaluator=e=void 0===e?void 0:e,this.nextFlow=t}function Ym(){}function Wm(e){this.bucketer=e}function Jm(){}function Zm(e){this.userConditionMatcher=e}function Qm(e){this.segmentMatcher=e}function eg(){}function tg(e,t){this.userValueResolver=e,this.valueOperatorMatcher=t}function rg(){}function ng(){}function og(){}function ig(){}function ag(){}function sg(){}function ug(){}function cg(){}function lg(){}function fg(){}function pg(){}function dg(){}function hg(){}function yg(){}function vg(e,t){this.valueMatcherFactory=e,this.operatorMatcherFactory=t}function mg(e){this.conditionMatcherFactory=e}function gg(e){this.evaluationFlowFactory=e}function wg(e,t,r,n){this.valueId=e,this.value=t,this.reason=r,this.properties=n}function Eg(e,t,r,n){this.variationId=e,this.variationKey=t,this.reason=r,this.config=n}function bg(){}function Tg(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 Rg(){}function Og(e){this.cache=new Map,this.exposureEventDedupIntervalMillis=e}function _g(e,t){this.delegate=e,this.exposureEventDedupDeterminer=t}function Cg(){}function Sg(e,t,r,n){void 0===n&&(n=null),this.eventDispatcher=e,this.flushInterval=r,this.queue=new $v(this.drainQueue.bind(this),t,r),this.repository=n}function Ng(e,t,r){this.buffer=[],this.sink=e,this.maxQueueSize=t,this.timer=new qv({callback:this.flush.bind(this),timeout:r}),this.started=!1}function Ag(e){var t=e.timeout,e=e.callback;this.timeout=Math.max(t,0),this.callback=e}function Ig(i,a){Im=window.onerror,window.onerror=function(e,t,r,n,o){s.isNotNullOrUndefined(o)&&i._trackException(o,a.resolveAnonymousUser()),Im&&Im.apply(this,arguments)}}function kg(r,n){Bv=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.resolveAnonymousUser()),Bv&&Bv.apply(this,arguments)}}Ug.prototype.read=function(){var r=this;return new Promise(function(e){var t=r.storage.getItem(r.storageKey);t&&e(JSON.parse(t)),e([])})},Ug.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()})},Ug.prototype.add=function(t){var r=this;return this.read().then(function(e){return r.save(e.concat(t).slice(-r.maxSize))})},Ug.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)})},Ug.prototype.clear=function(){var t=this;return new Promise(function(e){localStorage.removeItem(t.storageKey),e()})};var xg=Ug,Pg=K.log,Dg=null,Mg={debug:!1,log_disabled:!1,auto_track_page_view:!1,pollingIntervalMillis:-1,exposureEventDedupIntervalMillis:-1,SDK_NAME_HEADER:"javascript-sdk_browser",SDK_VERSION_HEADER:"11.7.0"};function Ug(e,t,r){this.storage=e,this.storageKey=t,this.maxSize=r}function jg(e,t){t=F(F({},Mg),t);if(t.log_disabled?K.setLogLevel(0):t.debug&&K.setLogLevel(4),Pg.debug("sdkKey : "+e),e||Pg.error("SDK Key must not be null"),Dg)return Pg.debug("use already exists hackleClient"),Dg;var r=!1,r=("undefined"!=typeof window&&(r=window&&window.navigator&&window.navigator.sendBeacon&&!0)&&Pg.debug("support sendBeacon API"),new Ot(e,ce,{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:((r={})["X-HACKLE-SDK-NAME"]=t.SDK_NAME_HEADER,r["X-HACKLE-SDK-VERSION"]=t.SDK_VERSION_HEADER,r)})),n=-1,n=(void 0!==t.pollingIntervalMillis&&"number"==typeof t.pollingIntervalMillis&&0<t.pollingIntervalMillis&&(n=Math.max(t.pollingIntervalMillis,3e4)),new St(e,ce,{fetchUrl:"".concat("https://client-sdk.hackle.io/api/v2/w/").concat(e).concat("/w"),updateInterval:n,headers:((n={})["X-HACKLE-SDK-NAME"]=t.SDK_NAME_HEADER,n["X-HACKLE-SDK-VERSION"]=t.SDK_VERSION_HEADER,n)})),o=-1;void 0!==t.exposureEventDedupIntervalMillis&&"number"==typeof t.exposureEventDedupIntervalMillis&&-1!==t.exposureEventDedupIntervalMillis&&(o=t.exposureEventDedupIntervalMillis<1e3||36e5<t.exposureEventDedupIntervalMillis?(Pg.warn("Exposure event dedup interval is outside allowed range[1_000ms..3_600_000ms]. Setting to default value[no dedup]."),-1):t.exposureEventDedupIntervalMillis);function i(){u.drainRepository()}var a,s,e=new xg(window.localStorage,"".concat("hackle-repository-storage","_").concat(e),100),u=new Xv(r,100,500,e),r=new Jv(o),e=new Wv(u,r),o=new em(n,e,new om(new Nm),new tm),r=new kt,c=new Xe(o,r);Dg=c,t.auto_track_page_view&&(s=function(){return a.trackPageView({user:{id:Vt()}})},(a=c).onReady(function(){function t(e){if("function"==typeof window.Event)return new Event(e);var t=!1,r=!1,n=void 0,o=document.createEvent("CustomEvent");return o.initCustomEvent(e,t,r,n),o}s();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)Pg.error(e);else try{Pg.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)Pg.error(e);else try{Pg.error(e)}catch(e){}}}),window.addEventListener("popstate",function(){try{window.dispatchEvent(t("locationchange"))}catch(e){if(e instanceof Error)Pg.error(e);else try{Pg.error(e)}catch(e){}}}),window.addEventListener("locationchange",function(){try{s()}catch(e){if(e instanceof Error)Pg.error(e);else try{Pg.error(e)}catch(e){}}})}catch(t){if(t instanceof Error)Pg.error(t);else try{Pg.error(t)}catch(t){}}var r,n})),(new Am).install(o,r);return document.addEventListener("visibilitychange",function(){document.hidden||i()}),window.addEventListener("pageshow",i),window.addEventListener("onpagehide"in window?"pagehide":"unload",function(){Kt(),c.close()}),c}var $r={createInstance:jg,getUserId:Vt,setUserId:Ht,removeUserId:Kt,Logger:K},Lg=(f.Bucket=t.Bucket=W,f.Container=t.Container=Ee,f.ContainerGroup=t.ContainerGroup=ie,f.CoreVersion=t.CoreVersion=Ue,f.Decision=t.Decision=pe,f.DecisionReason=t.DecisionReason=u,f.EmptyHackleRemoteConfig=t.EmptyHackleRemoteConfig=he,f.EmptyParameterConfig=t.EmptyParameterConfig=ye,f.EventType=t.EventType=J,f.Experiment=t.Experiment=ve,f.FeatureFlagDecision=t.FeatureFlagDecision=de,f.IdentifierType=t.IdentifierType=ge,f.IdentifiersBuilder=t.IdentifiersBuilder=we,f.Logger=t.Logger=K,f.MATCH_OPERATORS=t.MATCH_OPERATORS=Ve,f.MATCH_TYPES=t.MATCH_TYPES=Le,f.MATCH_VALUE_TYPES=t.MATCH_VALUE_TYPES=Fe,f.MetaVersion=t.MetaVersion=je,f.ParameterConfiguration=t.ParameterConfiguration=be,f.RemoteConfigDecision=t.RemoteConfigDecision=fe,f.RemoteConfigParameter=t.RemoteConfigParameter=ae,f.RemoteConfigParameterValue=t.RemoteConfigParameterValue=ue,f.RemoteConfigTargetRule=t.RemoteConfigTargetRule=se,f.SEGMENT_TYPES=t.SEGMENT_TYPES=ze,f.Segment=t.Segment=oe,f.Slot=t.Slot=me,f.TARGET_ACTION_TYPES=t.TARGET_ACTION_TYPES=He,f.TARGET_KEY_TYPES=t.TARGET_KEY_TYPES=Ke,f.Target=t.Target=Z,f.TargetAction=t.TargetAction=re,f.TargetCondition=t.TargetCondition=Q,f.TargetKey=t.TargetKey=ee,f.TargetMatch=t.TargetMatch=te,f.TargetRule=t.TargetRule=ne,f.TargetingType=t.TargetingType=Ge,f.Variation=t.Variation=Y,f.Version=t.Version=Me,U=t.createInstance=jg,t.default=$r,f.getUserId=t.getUserId=Vt,f.removeUserId=t.removeUserId=Kt,f.setUserId=t.setUserId=Ht,function(){return(Lg=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)});function Fg(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}Hg.prototype.variation=function(e,t,r){return this.client.variation(e,t,r)},Hg.prototype.variationDetail=function(e,t,r){return this.client.variationDetail(e,t,r)},Hg.prototype.isFeatureOn=function(e,t){return this.client.isFeatureOn(e,t)},Hg.prototype.featureFlagDetail=function(e,t){return this.client.featureFlagDetail(e,t)},Hg.prototype.track=function(e,t){this.client.track(e,t)},Hg.prototype.trackPageView=function(e){this.client.trackPageView(e)},Hg.prototype.remoteConfig=function(e){return this.client.remoteConfig(e)},Hg.prototype.onReady=function(e,t){this.client.onReady(e,t)},Hg.prototype.onInitialized=function(e){return this.client.onInitialized(e)};var Vg=Hg;function Hg(e,t){this.client=U(e,Lg(Lg({},t),{SDK_NAME_HEADER:"react-sdk",SDK_VERSION_HEADER:"11.7.0"}))}var D={exports:{}},o={},Kg=Object.getOwnPropertySymbols,zg=Object.prototype.hasOwnProperty,Gg=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),o=1;o<arguments.length;o++){for(var i in r=Object(arguments[o]))zg.call(r,i)&&(n[i]=r[i]);if(Kg)for(var a=Kg(r),s=0;s<a.length;s++)Gg.call(r,a[s])&&(n[a[s]]=r[a[s]])}return n},Bg=k,b="function"==typeof Symbol&&Symbol.for,qg=b?Symbol.for("react.element"):60103,$g=b?Symbol.for("react.portal"):60106,cr=b?Symbol.for("react.fragment"):60107,Xg=b?Symbol.for("react.strict_mode"):60108,yc=b?Symbol.for("react.profiler"):60114,Yg=b?Symbol.for("react.provider"):60109,Wg=b?Symbol.for("react.context"):60110,Jg=b?Symbol.for("react.forward_ref"):60112,so=b?Symbol.for("react.suspense"):60113,Zg=b?Symbol.for("react.memo"):60115,Qg=b?Symbol.for("react.lazy"):60116,e0="function"==typeof Symbol&&Symbol.iterator;function t0(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 r0={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},n0={};function o0(e,t,r){this.props=e,this.context=t,this.refs=n0,this.updater=r||r0}function i0(){}function a0(e,t,r){this.props=e,this.context=t,this.refs=n0,this.updater=r||r0}o0.prototype.isReactComponent={},o0.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(t0(85));this.updater.enqueueSetState(this,e,t,"setState")},o0.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},i0.prototype=o0.prototype;var p=a0.prototype=new i0,s0=(p.constructor=a0,Bg(p,o0.prototype),p.isPureReactComponent=!0,{current:null}),u0=Object.prototype.hasOwnProperty,c0={key:!0,ref:!0,__self:!0,__source:!0};function l0(e,t,r){var n,o={},i=null,a=null;if(null!=t)for(n in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(i=""+t.key),t)u0.call(t,n)&&!c0.hasOwnProperty(n)&&(o[n]=t[n]);var s=arguments.length-2;if(1===s)o.children=r;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(n in s=e.defaultProps)void 0===o[n]&&(o[n]=s[n]);return{$$typeof:qg,type:e,key:i,ref:a,props:o,_owner:s0.current}}function f0(e){return"object"==typeof e&&null!==e&&e.$$typeof===qg}var p0=/\/+/g,d0=[];function h0(e,t,r,n){var o;return d0.length?((o=d0.pop()).result=e,o.keyPrefix=t,o.func=r,o.context=n,o.count=0,o):{result:e,keyPrefix:t,func:r,context:n,count:0}}function y0(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,d0.length<10&&d0.push(e)}function v0(e,t,r){return null==e?0:function e(t,r,n,o){var i=!1;if(null===(t="undefined"!=(s=typeof t)&&"boolean"!==s?t:null))i=!0;else switch(s){case"string":case"number":i=!0;break;case"object":switch(t.$$typeof){case qg:case $g:i=!0}}if(i)return n(o,t,""===r?"."+m0(t,0):r),1;if(i=0,r=""===r?".":r+":",Array.isArray(t))for(var a=0;a<t.length;a++){var s,u=r+m0(s=t[a],a);i+=e(s,u,n,o)}else if("function"==typeof(u=null!==t&&"object"==typeof t&&"function"==typeof(u=e0&&t[e0]||t["@@iterator"])?u:null))for(t=u.call(t),a=0;!(s=t.next()).done;)i+=e(s=s.value,u=r+m0(s,a++),n,o);else if("object"===s)throw n=""+t,Error(t0(31,"[object Object]"===n?"object with keys {"+Object.keys(t).join(", ")+"}":n,""));return i}(e,"",t,r)}function m0(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 g0(e,t){e.func.call(e.context,t,e.count++)}function w0(e,t,r){var n=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?E0(e,n,r,function(e){return e}):null!=e&&(f0(e)&&(t=o+(!(o=e).key||t&&t.key===e.key?"":(""+e.key).replace(p0,"$&/")+"/")+r,e={$$typeof:qg,type:o.type,key:t,ref:o.ref,props:o.props,_owner:o._owner}),n.push(e))}function E0(e,t,r,n,o){var i="";v0(e,w0,t=h0(t,i=null!=r?(""+r).replace(p0,"$&/")+"/":i,n,o)),y0(t)}var b0={current:null};function T0(){var e=b0.current;if(null===e)throw Error(t0(321));return e}var R0,O0,_0,us={ReactCurrentDispatcher:b0,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:s0,IsSomeRendererActing:{current:!1},assign:Bg},P=(o.Children={map:function(e,t,r){if(null==e)return e;var n=[];return E0(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;v0(e,g0,t=h0(null,null,t,r)),y0(t)},count:function(e){return v0(e,function(){return null},null)},toArray:function(e){var t=[];return E0(e,t,null,function(e){return e}),t},only:function(e){if(f0(e))return e;throw Error(t0(143))}},o.Component=o0,o.Fragment=cr,o.Profiler=yc,o.PureComponent=a0,o.StrictMode=Xg,o.Suspense=so,o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=us,o.cloneElement=function(e,t,r){if(null==e)throw Error(t0(267,e));var n=Bg({},e.props),o=e.key,i=e.ref,a=e._owner;if(null!=t)for(s in void 0!==t.ref&&(i=t.ref,a=s0.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps&&(u=e.type.defaultProps),t)u0.call(t,s)&&!c0.hasOwnProperty(s)&&(n[s]=(void 0===t[s]&&void 0!==u?u:t)[s]);var s=arguments.length-2;if(1===s)n.children=r;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];n.children=u}return{$$typeof:qg,type:e.type,key:o,ref:i,props:n,_owner:a}},o.createContext=function(e,t){return(e={$$typeof:Wg,_calculateChangedBits:t=void 0===t?null:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:Yg,_context:e},e.Consumer=e},o.createElement=l0,o.createFactory=function(e){var t=l0.bind(null,e);return t.type=e,t},o.createRef=function(){return{current:null}},o.forwardRef=function(e){return{$$typeof:Jg,render:e}},o.isValidElement=f0,o.lazy=function(e){return{$$typeof:Qg,_ctor:e,_status:-1,_result:null}},o.memo=function(e,t){return{$$typeof:Zg,type:e,compare:void 0===t?null:t}},o.useCallback=function(e,t){return T0().useCallback(e,t)},o.useContext=function(e,t){return T0().useContext(e,t)},o.useDebugValue=function(){},o.useEffect=function(e,t){return T0().useEffect(e,t)},o.useImperativeHandle=function(e,t,r){return T0().useImperativeHandle(e,t,r)},o.useLayoutEffect=function(e,t){return T0().useLayoutEffect(e,t)},o.useMemo=function(e,t){return T0().useMemo(e,t)},o.useReducer=function(e,t,r){return T0().useReducer(e,t,r)},o.useRef=function(e){return T0().useRef(e)},o.useState=function(e){return T0().useState(e)},o.version="16.14.0",{}),Or=Function.call.bind(Object.prototype.hasOwnProperty),C0=function(){};function S0(e,t,r,n,o){if("production"!==production)for(var i in e)if(_0(e,i)){var a,s;try{if("function"!=typeof e[i])throw(s=Error((n||"React class")+": "+r+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.")).name="Invariant Violation",s;a=e[i](t,i,n,r,null,R0)}catch(e){a=e}!a||a instanceof Error||C0((n||"React class")+": type specification of "+r+" `"+i+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof a+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),a instanceof Error&&!(a.message in O0)&&(O0[a.message]=!0,i=o?o():"",C0("Failed "+r+" type: "+a.message+(null!=i?i:"")))}}if("production"!==production&&(R0="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",O0={},_0=Or,C0=function(e){e="Warning: "+e;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(e){}}),S0.resetWarningCache=function(){"production"!==production&&(O0={})},"production"!==production){var N0=k,A0=S0,R="function"==typeof Symbol&&Symbol.for,I0=R?Symbol.for("react.element"):60103,k0=R?Symbol.for("react.portal"):60106,x0=R?Symbol.for("react.fragment"):60107,P0=R?Symbol.for("react.strict_mode"):60108,D0=R?Symbol.for("react.profiler"):60114,M0=R?Symbol.for("react.provider"):60109,U0=R?Symbol.for("react.context"):60110,j0=R?Symbol.for("react.concurrent_mode"):60111,L0=R?Symbol.for("react.forward_ref"):60112,F0=R?Symbol.for("react.suspense"):60113,V0=R?Symbol.for("react.suspense_list"):60120,H0=R?Symbol.for("react.memo"):60115,K0=R?Symbol.for("react.lazy"):60116,z0=R?Symbol.for("react.block"):60121,G0=R?Symbol.for("react.fundamental"):60117,B0=R?Symbol.for("react.responder"):60118,q0=R?Symbol.for("react.scope"):60119,$0="function"==typeof Symbol&&Symbol.iterator,X0="@@iterator";function Y0(e){if(null===e||"object"!=typeof e)return null;e=$0&&e[$0]||e[X0];return"function"==typeof e?e:null}var W0={current:null},J0={current:null},Z0=/^(.*)[\\\/]/,Q0=1;function ew(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 x0:return"Fragment";case k0:return"Portal";case D0:return"Profiler";case P0:return"StrictMode";case F0:return"Suspense";case V0:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case U0:return"Context.Consumer";case M0:return"Context.Provider";case L0:return t=e.render,r="ForwardRef",t=t.displayName||t.name||"",e.displayName||(""!==t?r+"("+t+")":r);case H0:return ew(e.type);case z0:return ew(e.render);case K0:r=(t=e)._status===Q0?t._result:null;if(r)return ew(r)}var t,r;return null}var tw={},rw=null;function nw(e){rw=e}tw.getCurrentStack=null,tw.getStackAddendum=function(){var e,t,r,n,o,i="",a=(rw&&(e=ew(rw.type),r=rw._owner,i+=(e=e,t=rw._source,r=r&&ew(r.type),o="",t?(n=(a=t.fileName).replace(Z0,""),o=" (at "+(n=/^index\./.test(n)&&(a=a.match(Z0))&&(a=a[1])?a.replace(Z0,"")+"/"+n:n)+":"+t.lineNumber+")"):r&&(o=" (created by "+r+")"),"\n in "+(e||"Unknown")+o)),tw.getCurrentStack);return a&&(i+=a()||""),i};var ow={ReactCurrentDispatcher:W0,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:J0,IsSomeRendererActing:{current:!1},assign:N0};function iw(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];aw("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];aw("error",e,r)}function aw(e,t,r){0<r.length&&"string"==typeof r[r.length-1]&&0===r[r.length-1].indexOf("\n in")||""!==(n=ow.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 o=0,i="Warning: "+t.replace(/%s/g,function(){return r[o++]});throw new Error(i)}catch(e){}}N0(ow,{ReactDebugCurrentFrame:tw,ReactComponentTreeHook:{}});var sw={};function uw(e,t){var e=e.constructor,e=e&&(e.displayName||e.name)||"ReactClass",r=e+"."+t;sw[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),sw[r]=!0)}var cw={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,r){uw(e,"forceUpdate")},enqueueReplaceState:function(e,t,r,n){uw(e,"replaceState")},enqueueSetState:function(e,t,r,n){uw(e,"setState")}},lw={};function fw(e,t,r){this.props=e,this.context=t,this.refs=lw,this.updater=r||cw}Object.freeze(lw),fw.prototype.isReactComponent={},fw.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")},fw.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var pw,dw={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(pw in dw)dw.hasOwnProperty(pw)&&!function(e,t){Object.defineProperty(fw.prototype,e,{get:function(){iw("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})}(pw,dw[pw]);function hw(){}function yw(e,t,r){this.props=e,this.context=t,this.refs=lw,this.updater=r||cw}hw.prototype=fw.prototype,(R=yw.prototype=new hw).constructor=yw,N0(R,fw.prototype),R.isPureReactComponent=!0;var vw,mw,gw=Object.prototype.hasOwnProperty,ww={key:!0,ref:!0,__self:!0,__source:!0};function Ew(e){if(gw.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return}return void 0!==e.ref}function bw(e){if(gw.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return}return void 0!==e.key}var Tw={},Rw=function(e,t,r,n,o,i,a){e={$$typeof:I0,type:e,key:t,ref:r,props:a,_owner:i,_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:o}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e};function Ow(e,t,r){var n,o={},i=null,a=null,s=null,u=null;if(null!=t)for(n in Ew(t)&&(a=t.ref,"string"==typeof(c=t).ref&&J0.current&&c.__self&&J0.current.stateNode!==c.__self&&(f=ew(J0.current.type),Tw[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',ew(J0.current.type),c.ref),Tw[f]=!0))),bw(t)&&(i=""+t.key),s=void 0===t.__self?null:t.__self,u=void 0===t.__source?null:t.__source,t)gw.call(t,n)&&!ww.hasOwnProperty(n)&&(o[n]=t[n]);var c,l,f,p,d=arguments.length-2;if(1==d)o.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),o.children=h}if(e&&e.defaultProps){var v=e.defaultProps;for(n in v)void 0===o[n]&&(o[n]=v[n])}function m(){mw||(mw=!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(){vw||(vw=!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(i||a)&&(c="function"==typeof e?e.displayName||e.name||"Unknown":e,i&&(f=o,p=c,g.isReactWarning=!0,Object.defineProperty(f,"key",{get:g,configurable:!0})),a&&(r=o,l=c,m.isReactWarning=!0,Object.defineProperty(r,"ref",{get:m,configurable:!0}))),Rw(e,i,a,s,u,J0.current,o)}function _w(e){return"object"==typeof e&&null!==e&&e.$$typeof===I0}var Cw=".",Sw=":",Nw=!1,Aw=/\/+/g;function Iw(e){return(""+e).replace(Aw,"$&/")}var kw=10,xw=[];function Pw(e,t,r,n){var o;return xw.length?((o=xw.pop()).result=e,o.keyPrefix=t,o.func=r,o.context=n,o.count=0,o):{result:e,keyPrefix:t,func:r,context:n,count:0}}function Dw(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,xw.length<kw&&xw.push(e)}function Mw(e,t,r){return null==e?0:function e(t,r,n,o){var i,a=typeof t,s=!1;if(null===(t="undefined"!=a&&"boolean"!=a?t:null))s=!0;else switch(a){case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case I0:case k0:s=!0}}if(s)return n(o,t,""===r?Cw+Uw(t,0):r),1;var u=0,c=""===r?Cw:r+Sw;if(Array.isArray(t))for(var l=0;l<t.length;l++)u+=e(i=t[l],c+Uw(i,l),n,o);else if("function"==typeof(r=Y0(t))){r===t.entries&&(Nw||iw("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."),Nw=!0);for(var f,p=r.call(t),d=0;!(f=p.next()).done;)u+=e(i=f.value,c+Uw(i,d++),n,o)}else if("object"==a)throw r="",r=" If you meant to render a collection of children, use an array instead."+tw.getStackAddendum(),a=""+t,Error("Objects are not valid as a React child (found: "+("[object Object]"==a?"object with keys {"+Object.keys(t).join(", ")+"}":a)+")."+r);return u}(e,"",t,r)}function Uw(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 jw(e,t,r){var n=e.func,o=e.context;n.call(o,t,e.count++)}function Lw(e,t,r){var n=e.result,o=e.keyPrefix,i=e.func,a=e.context,i=i.call(a,t,e.count++);Array.isArray(i)?Fw(i,n,r,function(e){return e}):null!=i&&(_w(i)&&(e=o+(!(a=i).key||t&&t.key===i.key?"":Iw(i.key)+"/")+r,i=Rw(a.type,e,a.ref,a._self,a._source,a._owner,a.props)),n.push(i))}function Fw(e,t,r,n,o){var i="",t=Pw(t,i=null!=r?Iw(r)+"/":i,n,o);Mw(e,Lw,t),Dw(t)}function Vw(e){return"string"==typeof e||"function"==typeof e||e===x0||e===j0||e===D0||e===P0||e===F0||e===V0||"object"==typeof e&&null!==e&&(e.$$typeof===K0||e.$$typeof===H0||e.$$typeof===M0||e.$$typeof===U0||e.$$typeof===L0||e.$$typeof===G0||e.$$typeof===B0||e.$$typeof===q0||e.$$typeof===z0)}function Hw(){var e=W0.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 Kw(){if(J0.current){var e=ew(J0.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}var zw=!1,Gw={};function Bw(e,t){var r;e._store&&!e._store.validated&&null==e.key&&(e._store.validated=!0,t=t,(r=Kw())||(t="string"==typeof t?t:t.displayName||t.name)&&(r="\n\nCheck the top-level render call using <"+t+">."),Gw[t=r]||(Gw[t]=!0,r="",e&&e._owner&&e._owner!==J0.current&&(r=" It was passed a child from "+ew(e._owner.type)+"."),nw(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),nw(null)))}function qw(e,t){if("object"==typeof e)if(Array.isArray(e))for(var r=0;r<e.length;r++){var n=e[r];_w(n)&&Bw(n,t)}else if(_w(e))e._store&&(e._store.validated=!0);else if(e){var o=Y0(e);if("function"==typeof o&&o!==e.entries)for(var i,a=o.call(e);!(i=a.next()).done;)_w(i.value)&&Bw(i.value,t)}}function $w(e){var t=e.type;if(null!=t&&"string"!=typeof t){var r,n=ew(t);if("function"==typeof t)r=t.propTypes;else{if("object"!=typeof t||t.$$typeof!==L0&&t.$$typeof!==H0)return;r=t.propTypes}r?(nw(e),A0(r,e.props,"prop",n,tw.getStackAddendum),nw(null)):void 0===t.PropTypes||zw||(zw=!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 Xw(e,t,r){var n,o=Vw(e),t=(o||(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+".":"")||Kw(),null===e?a="null":Array.isArray(e)?a="array":void 0!==e&&e.$$typeof===I0?(a="<"+(ew(e.type)||"Unknown")+" />",n=" Did you accidentally export a JSX literal instead of a component?"):a=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",a,n)),Ow.apply(this,arguments));if(null==t)return t;if(o)for(var i=2;i<arguments.length;i++)qw(arguments[i],e);if(e===x0){var a=t;nw(a);for(var s=Object.keys(a.props),u=0;u<s.length;u++){var c=s[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!==a.ref&&M("Invalid attribute `ref` supplied to `React.Fragment`."),nw(null)}else $w(t);return t}var Yw=!1;try{var Ww=Object.freeze({}),Jw=new Map([[Ww,null]]),Zw=new Set([Ww]);Jw.set(0,0),Zw.add(0)}catch(e){}function Qw(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,o,i=N0({},e.props),a=e.key,s=e.ref,u=e._self,c=e._source,l=e._owner;if(null!=t)for(n in Ew(t)&&(s=t.ref,l=J0.current),bw(t)&&(a=""+t.key),e.type&&e.type.defaultProps&&(o=e.type.defaultProps),t)gw.call(t,n)&&!ww.hasOwnProperty(n)&&(void 0===t[n]&&void 0!==o?i[n]=o[n]:i[n]=t[n]);var f=arguments.length-2;if(1==f)i.children=r;else if(1<f){for(var p=Array(f),d=0;d<f;d++)p[d]=arguments[d+2];i.children=p}return Rw(e.type,a,s,u,c,l,i)}.apply(this,arguments),o=2;o<arguments.length;o++)qw(arguments[o],n.type);return $w(n),n}function eE(e){var t=Xw.bind(null,e);return t.type=e,Yw||(Yw=!0,iw("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 iw("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t}R=Xw,P.Children={map:function(e,t,r){if(null==e)return e;var n=[];return Fw(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;t=Pw(null,null,t,r),Mw(e,jw,t),Dw(t)},count:function(e){return Mw(e,function(){return null},null)},toArray:function(e){var t=[];return Fw(e,t,null,function(e){return e}),t},only:function(e){if(_w(e))return e;throw Error("React.Children.only expected to receive a single React element child.")}},P.Component=fw,P.Fragment=x0,P.Profiler=D0,P.PureComponent=yw,P.StrictMode=P0,P.Suspense=F0,P.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ow,P.cloneElement=Qw,P.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:U0,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},n=!(r.Provider={$$typeof:M0,_context:r}),o=!1,t={$$typeof:U0,_context:r,_calculateChangedBits:r._calculateChangedBits};return Object.defineProperties(t,{Provider:{get:function(){return o||(o=!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},P.createElement=R,P.createFactory=eE,P.createRef=function(){var e={current:null};return Object.seal(e),e},P.forwardRef=function(e){return null!=e&&e.$$typeof===H0?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:L0,render:e}},P.isValidElement=_w,P.lazy=function(e){var t,r,n={$$typeof:K0,_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},P.memo=function(e,t){return Vw(e)||M("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e),{$$typeof:H0,type:e,compare:void 0===t?null:t}},P.useCallback=function(e,t){return Hw().useCallback(e,t)},P.useContext=function(e,t){var r,n=Hw();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)},P.useDebugValue=function(e,t){return Hw().useDebugValue(e,t)},P.useEffect=function(e,t){return Hw().useEffect(e,t)},P.useImperativeHandle=function(e,t,r){return Hw().useImperativeHandle(e,t,r)},P.useLayoutEffect=function(e,t){return Hw().useLayoutEffect(e,t)},P.useMemo=function(e,t){return Hw().useMemo(e,t)},P.useReducer=function(e,t,r){return Hw().useReducer(e,t,r)},P.useRef=function(e){return Hw().useRef(e)},P.useState=function(e){return Hw().useState(e)},P.version="16.14.0"}"production"===production?D.exports=o:D.exports=P;var tE=D.exports,rE=D.exports.createContext({hackle:void 0,user:void 0,initialized:!1}),Zr=rE.Consumer,nE=rE.Provider;var oE=f.Logger.log;function iE(e,t){e=aE(e,t=void 0===t?"A":t);return{isLoading:e.isLoading,variation:e.decision.variation}}function aE(e,t){void 0===t&&(t="A");var r=D.exports.useContext(rE),n=r.hackle,o=r.user,i=r.initialized,a=D.exports.useCallback(function(){return i?(null==n?void 0:n.variationDetail(e,o))||f.Decision.of(t,f.DecisionReason.EXCEPTION):f.Decision.of(t,f.DecisionReason.SDK_NOT_READY)},[t,e,o,n,i]),r=Fg(D.exports.useState(function(){return n?a():(oE.error("HackleClient is not existed"),f.Decision.of(t,f.DecisionReason.EXCEPTION))}),2),s=r[0],r=r[1],u={key:e,user:o,initialized:i},c=Fg(D.exports.useState(u),2),l=c[0],c=c[1];return cE(l,u)||(c(u),r(a())),{isLoading:!i,decision:s}}function sE(e){e=uE(e);return{isLoading:e.isLoading,isOn:e.decision.isOn}}function uE(e){var t=D.exports.useContext(rE),r=t.hackle,n=t.user,o=t.initialized,i=D.exports.useCallback(function(){return o?(null==r?void 0:r.featureFlagDetail(e,n))||f.FeatureFlagDecision.off(f.DecisionReason.EXCEPTION):f.FeatureFlagDecision.off(f.DecisionReason.SDK_NOT_READY)},[e,n,r,o]),t=Fg(D.exports.useState(function(){return r?i():(oE.error("HackleClient is not existed"),f.FeatureFlagDecision.off(f.DecisionReason.EXCEPTION))}),2),a=t[0],t=t[1],s={key:e,user:n,initialized:o},u=Fg(D.exports.useState(s),2),c=u[0],u=u[1];return cE(c,s)||(u(s),t(i())),{isLoading:!o,decision:a}}function cE(e,t){var r,n,o;return e.initialized===t.initialized&&e.key===t.key&&(null==(r=e.user)?void 0:r.id)===(null==(r=t.user)?void 0:r.id)&&(e=null==(r=e.user)?void 0:r.properties,t=null==(r=t.user)?void 0:r.properties,n=lE(e),o=lE(t),e=Object.keys(n),t=Object.keys(o),e.length===t.length&&e.every(function(e){return e in o&&n[e]===o[e]}))}function lE(e){return"object"==typeof e&&null!==e?e:{}}function fE(e){var t,r=e.experimentKey,e=e.children,n=(r=iE(r)).isLoading,o=r.variation;return n?null:e&&"function"==typeof e?e(o):(D.exports.Children.forEach(e,function(e){D.exports.isValidElement(e)&&(e.props.variation?o===e.props.variation&&(t=e):e.props.default&&(t=e))}),t?D.exports.cloneElement(t,{variation:o}):null)}function pE(e){return e.variation,e=e.children,D.exports.createElement(D.exports.Fragment,null,e)}function dE(e){var t=(r=sE(e.featureKey)).isLoading,r=r.isOn;return t?null:tE.createElement(tE.Fragment,null,e.children(r))}f.HackleContext=rE,f.HackleContextConsumer=Zr,f.HackleContextProvider=nE,f.HackleExperiment=fE,f.HackleFeature=dE,f.HackleProvider=function(e){var t=e.hackleClient,r=e.user,n=void 0===(o=e.timeout)?3e3:o,o=void 0!==(o=e.supportSSR)&&o,e=e.children,i=Fg(D.exports.useState({hackle:t,user:r,initialized:!1}),2),a=i[0],s=i[1];return D.exports.useEffect(function(){s(function(e){return Lg(Lg({},e),{user:r})})},[r]),D.exports.useEffect(function(){t.onInitialized({timeout:n}).then(function(){s(function(e){return Lg(Lg({},e),{initialized:!0})})},function(){s(function(e){return Lg(Lg({},e),{initialized:!0})})}).catch(function(){s(function(e){return Lg(Lg({},e),{initialized:!0})})})},[t]),o||a.initialized?tE.createElement(nE,{value:a},e):null},f.HackleVariation=pE,f.createInstance=function(e,t){return new Vg(e,t)},f.useFeature=function(e){var t=(n=D.exports.useContext(rE)).hackle,r=n.user,n=n.initialized,o=D.exports.useCallback(function(){return(null==t?void 0:t.isFeatureOn(e,r))||!1},[e,r,t,n]),i=(a=Fg(D.exports.useState(function(){return t?o():("undefined"!=typeof window&&oE.error("HackleClient is not existed"),!1)}),2))[0],a=a[1],n={key:e,user:r,initialized:n},s=(u=Fg(D.exports.useState(n),2))[0],u=u[1];return cE(s,n)||(u(n),a(o())),i},f.useFeatureFlagDetail=function(e){var t=(n=D.exports.useContext(rE)).hackle,r=n.user,n=n.initialized,o=D.exports.useCallback(function(){return(null==t?void 0:t.featureFlagDetail(e,r))||f.FeatureFlagDecision.off(f.DecisionReason.EXCEPTION)},[e,r,t,n]),i=(a=Fg(D.exports.useState(function(){return t?o():("undefined"!=typeof window&&oE.error("HackleClient is not existed"),f.FeatureFlagDecision.off(f.DecisionReason.EXCEPTION))}),2))[0],a=a[1],n={key:e,user:r,initialized:n},s=(u=Fg(D.exports.useState(n),2))[0],u=u[1];return cE(s,n)||(u(n),a(o())),i},f.useLoadableFeature=sE,f.useLoadableFeatureDetail=uE,f.useLoadableRemoteConfig=function(){var e=(i=D.exports.useContext(rE)).hackle,t=i.user,r=i.initialized,n=D.exports.useCallback(function(){return r&&(null==e?void 0:e.remoteConfig(t))||new f.EmptyHackleRemoteConfig},[t,e,r]),o=(i=Fg(D.exports.useState(function(){return e||oE.error("HackleClient is not existed"),n()}),2))[0],i=i[1],a={user:t,initialized:r},s=(u=Fg(D.exports.useState(a),2))[0],u=u[1];return cE(s,a)||(u(a),i(n())),{isLoading:!r,remoteConfig:o}},f.useLoadableVariation=iE,f.useLoadableVariationDetail=aE,f.useRemoteConfig=function(){var e=(r=D.exports.useContext(rE)).hackle,t=r.user,r=r.initialized,n=D.exports.useCallback(function(){return(null==e?void 0:e.remoteConfig(t))||new f.EmptyHackleRemoteConfig},[t,e,r]),o=(i=Fg(D.exports.useState(function(){return e||oE.error("HackleClient is not existed"),n()}),2))[0],i=i[1],r={user:t,initialized:r},a=(s=Fg(D.exports.useState(r),2))[0],s=s[1];return cE(a,r)||(s(r),i(n())),o},f.useTrack=function(){var e=D.exports.useContext(rE),t=e.hackle,r=e.user;return t?function(e){return null==t?void 0:t.track(e,r)}:(oE.error("HackleClient is not existed"),function(){})},f.useVariation=function(e,t){void 0===t&&(t="A");var r=(s=D.exports.useContext(rE)).hackle,n=s.user,o=s.initialized,i=D.exports.useCallback(function(){return o&&(null==r?void 0:r.variation(e,n))||t},[t,e,n,r,o]),a=(s=Fg(D.exports.useState(function(){return r?i():("undefined"!=typeof window&&oE.error("HackleClient is not existed"),t)}),2))[0],s=s[1],u={key:e,user:n,initialized:o},c=(l=Fg(D.exports.useState(u),2))[0],l=l[1];return cE(c,u)||(l(u),s(i())),a},f.useVariationDetail=function(e,t){void 0===t&&(t="A");var r=(o=D.exports.useContext(rE)).hackle,n=o.user,o=o.initialized,i=D.exports.useCallback(function(){return(null==r?void 0:r.variationDetail(e,n))||f.Decision.of(t,f.DecisionReason.EXCEPTION)},[t,e,n,r,o]),a=(s=Fg(D.exports.useState(function(){return r?i():("undefined"!=typeof window&&oE.error("HackleClient is not existed"),f.Decision.of(t,f.DecisionReason.EXCEPTION))}),2))[0],s=s[1],o={key:e,user:n,initialized:o},u=(c=Fg(D.exports.useState(o),2))[0],c=c[1];return cE(u,o)||(c(o),s(i())),a},Object.defineProperty(f,"__esModule",{value:!0})});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hackler/react-sdk",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.7.0",
|
|
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.
|
|
42
|
+
"@hackler/javascript-sdk": "11.7.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"react": ">=16.8.0"
|