@flagship.io/react-sdk 2.2.0-beta.5 → 2.2.0-beta.6
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/dist/es/FlagshipContext.js +8 -2
- package/dist/esm/FlagshipContext.js +8 -2
- package/dist/index.browser.js +1 -1
- package/dist/index.browser.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/types/FlagshipContext.d.ts +4 -4
- package/dist/types/FlagshipHooks.d.ts +6 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(()=>{var t={6968:(t,e,n)=>{(()=>{"use strict";var e={289:t=>{t.exports=n(1030)},605:t=>{t.exports=n(3685)},211:t=>{t.exports=n(5687)},786:t=>{t.exports=n(4809)}},r={};function i(t){var n=r[t];if(void 0!==n)return n.exports;var o=r[t]={exports:{}};return e[t](o,o.exports,i),o.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{i.r(o),i.d(o,{APP_VERSION_CODE:()=>Lt,APP_VERSION_NAME:()=>jt,CARRIER_NAME:()=>Pt,DEVICE_LOCALE:()=>It,DEVICE_MODEL:()=>Et,DEVICE_TYPE:()=>St,DecisionApiConfig:()=>Z,DecisionMode:()=>H,Event:()=>st,EventCategory:()=>at,FLAGSHIP_CLIENT:()=>Bt,FLAGSHIP_CONTEXT:()=>Ht,FLAGSHIP_VERSION:()=>Gt,FLAGSHIP_VISITOR:()=>Vt,Flagship:()=>ce,FlagshipStatus:()=>b,HitAbstract:()=>ct,HitType:()=>k,INTERFACE_NAME:()=>Ft,INTERNET_CONNECTION:()=>Dt,IP:()=>At,Item:()=>ut,LOCATION_CITY:()=>Ot,LOCATION_COUNTRY:()=>_t,LOCATION_LAT:()=>Ct,LOCATION_LONG:()=>Mt,LOCATION_REGION:()=>wt,LogLevel:()=>v,OS_NAME:()=>Rt,OS_VERSION_CODE:()=>Tt,OS_VERSION_NAME:()=>Nt,Page:()=>ft,Screen:()=>lt,Transaction:()=>ht,Visitor:()=>U,default:()=>se});const t=n(9293);var e=i.n(t);const r=n(8765);var a=i.n(r);n(2419);const c=n(5370);var s=i.n(c);const u=n(9548);var f=i.n(u);const l=n(3761);var h=i.n(l);n(1539),n(8674);const p=n(1239);var v,d={},g="undefined"==typeof window?i(786).default:window.fetch;if("undefined"==typeof window){var y=i(605).Agent,m=i(211).Agent;d.agent=function(t){return"http:"===t.protocol?new y({keepAlive:!0}):new m({keepAlive:!0})}}!function(t){t[t.NONE=0]="NONE",t[t.EMERGENCY=1]="EMERGENCY",t[t.ALERT=2]="ALERT",t[t.CRITICAL=3]="CRITICAL",t[t.ERROR=4]="ERROR",t[t.WARNING=5]="WARNING",t[t.NOTICE=6]="NOTICE",t[t.INFO=7]="INFO",t[t.DEBUG=8]="DEBUG",t[t.ALL=9]="ALL"}(v||(v={}));var b,k,x="TypeScript",I="https://decision.flagship.io/v2/",S="v2",E="ready",O="Key {0} must not be null. Default value is returned.",w="No modification for key {0}.",_="{0} must be a {1}",C="visitorId must not be null or empty",M="Method {0} is deactivated while SDK status is: {1}.",A="INITIALIZATION",R="UPDATE CONTEXT",N="GET MODIFICATION",T="GET MODIFICATION INFO",P="ACTIVE MODIFICATION",D="SEND HIT",j="cid",L="x-api-key",F="Content-Type",B="x-sdk-client",G="x-sdk-version",V="application/json";!function(t){t[t.NOT_READY=0]="NOT_READY",t[t.NOT_INITIALIZED=0]="NOT_INITIALIZED",t[t.STARTING=1]="STARTING",t[t.POLLING=2]="POLLING",t[t.READY_PANIC_ON=3]="READY_PANIC_ON",t[t.READY=4]="READY"}(b||(b={})),function(t){t.PAGE_VIEW="PAGEVIEW",t.PAGE="PAGEVIEW",t.SCREEN_VIEW="SCREENVIEW",t.SCREEN="SCREENVIEW",t.TRANSACTION="TRANSACTION",t.ITEM="ITEM",t.EVENT="EVENT"}(k||(k={}));var H,U=function(t){s()(n,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h()(t);if(e){var i=h()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}(n);function n(t){var n;return(n=e.call(this)).visitorDelegate=t,n.visitorDelegate.on(E,(function(t){n.emit(E,t)})),n}return a()(n,[{key:"getModificationsArray",value:function(){return this.visitorDelegate.getModificationsArray()}},{key:"visitorId",get:function(){return this.visitorDelegate.visitorId},set:function(t){this.visitorDelegate.visitorId=t}},{key:"anonymousId",get:function(){return this.visitorDelegate.anonymousId}},{key:"hasConsented",get:function(){return this.visitorDelegate.hasConsented}},{key:"setConsent",value:function(t){this.visitorDelegate.setConsent(t)}},{key:"config",get:function(){return this.visitorDelegate.config}},{key:"context",get:function(){return this.visitorDelegate.context}},{key:"modifications",get:function(){return this.visitorDelegate.modifications}},{key:"updateContext",value:function(t){this.visitorDelegate.updateContext(t)}},{key:"clearContext",value:function(){this.visitorDelegate.clearContext()}},{key:"getModification",value:function(t){return this.visitorDelegate.getModification(t)}},{key:"getModificationSync",value:function(t){return this.visitorDelegate.getModificationSync(t)}},{key:"getModifications",value:function(t,e){return this.visitorDelegate.getModifications(t,e)}},{key:"getModificationsSync",value:function(t,e){return this.visitorDelegate.getModificationsSync(t,e)}},{key:"getModificationInfo",value:function(t){return this.visitorDelegate.getModificationInfo(t)}},{key:"getModificationInfoSync",value:function(t){return this.visitorDelegate.getModificationInfoSync(t)}},{key:"synchronizeModifications",value:function(){return this.visitorDelegate.synchronizeModifications()}},{key:"activateModification",value:function(t){return this.visitorDelegate.activateModification(t)}},{key:"activateModifications",value:function(t){return this.visitorDelegate.activateModifications(t)}},{key:"sendHit",value:function(t){return this.visitorDelegate.sendHit(t)}},{key:"sendHits",value:function(t){return this.visitorDelegate.sendHits(t)}},{key:"getAllModifications",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.visitorDelegate.getAllModifications(t)}},{key:"getModificationsForCampaign",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.visitorDelegate.getModificationsForCampaign(t,e)}},{key:"authenticate",value:function(t){this.visitorDelegate.authenticate(t)}},{key:"unauthenticate",value:function(){this.visitorDelegate.unauthenticate()}}]),n}(p.EventEmitter);function K(t){for(var e=t,n=0;n<(arguments.length<=1?0:arguments.length-1);n++){var r=n+1<1||arguments.length<=n+1?void 0:arguments[n+1];e=e.replace(new RegExp("\\{".concat(n,"\\}"),"g"),r)}return e}function W(t,e,n){t&&t.logManager&&"function"==typeof t.logManager.error&&t.logLevel&&!(t.logLevel<v.ERROR)&&t.logManager.error(e,n)}function z(t,e,n){t&&t.logManager&&"function"==typeof t.logManager.info&&t.logLevel&&!(t.logLevel<v.INFO)&&t.logManager.info(e,n)}n(4916),n(5306),n(4603),n(9714),function(t){t.DECISION_API="API",t.BUCKETING="BUCKETING"}(H||(H={}));var Y=function(){function t(t){var e=t.envId,n=t.apiKey,r=t.timeout,i=t.logLevel,o=t.logManager,a=t.statusChangedCallback,c=t.fetchNow,s=t.decisionMode,u=t.enableClientCache,f=t.initialBucketing,l=t.decisionApiUrl,h=t.activateDeduplicationTime,p=t.hitDeduplicationTime;this.decisionApiUrl=l||I,this._envId=e,this._apiKey=n,this.logLevel=i||v.ALL,this.timeout=r||2,this.fetchNow=void 0===c||c,this.enableClientCache=void 0===u||u,this._decisionMode=s||H.DECISION_API,this._initialBucketing=f,this.activateDeduplicationTime=null!=h?h:2.5,this.hitDeduplicationTime=null!=p?p:2.5,o&&(this.logManager=o),this.statusChangedCallback=a}return a()(t,[{key:"initialBucketing",get:function(){return this._initialBucketing},set:function(t){this._initialBucketing=t}},{key:"enableClientCache",get:function(){return this._enableClientCache},set:function(t){this._enableClientCache=t}},{key:"onBucketingSuccess",get:function(){return this._onBucketingSuccess},set:function(t){this._onBucketingSuccess=t}},{key:"onBucketingFail",get:function(){return this._onBucketingFail},set:function(t){this._onBucketingFail=t}},{key:"onBucketingUpdated",get:function(){return this._onBucketingUpdated},set:function(t){this._onBucketingUpdated=t}},{key:"envId",get:function(){return this._envId},set:function(t){this._envId=t}},{key:"apiKey",get:function(){return this._apiKey},set:function(t){this._apiKey=t}},{key:"decisionMode",get:function(){return this._decisionMode}},{key:"timeout",get:function(){return this._timeout},set:function(t){this._timeout=t}},{key:"logLevel",get:function(){return this._logLevel},set:function(t){this._logLevel=t}},{key:"fetchNow",get:function(){return this._fetchNow},set:function(t){this._fetchNow=t}},{key:"pollingInterval",get:function(){return this._pollingInterval},set:function(t){this._pollingInterval=t}},{key:"activateDeduplicationTime",get:function(){return this._activateDeduplicationTime},set:function(t){"number"==typeof t?this._activateDeduplicationTime=t:W(this,K(_,"activateDeduplicationTime","number"),"activateDeduplicationTime")}},{key:"hitDeduplicationTime",get:function(){return this._hitDeduplicationTime},set:function(t){"number"==typeof t?this._hitDeduplicationTime=t:W(this,K(_,"hitDeduplicationTime","number"),"hitDeduplicationTime")}},{key:"statusChangedCallback",get:function(){return this._statusChangedCallback},set:function(t){"function"==typeof t?this._statusChangedCallback=t:W(this,"statusChangedCallback must be a function","statusChangedCallback")}},{key:"logManager",get:function(){return this._logManager},set:function(t){this._logManager=t}},{key:"decisionApiUrl",get:function(){return this._decisionApiUrl},set:function(t){"string"==typeof t?this._decisionApiUrl=t:W(this,K(_,"decisionApiUrl","string"),"decisionApiUrl")}}]),t}();n(7941),n(2526),n(7327),n(5003),n(4747),n(9337);const q=n(8779);var $=i.n(q);function Q(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function X(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Q(Object(n),!0).forEach((function(e){$()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Q(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Z=function(t){s()(n,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h()(t);if(e){var i=h()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}(n);function n(t){return e.call(this,X(X({},t),{},{decisionMode:H.DECISION_API}))}return n}(Y),J=function(){function t(t,e,n){this._config=t,this._decisionManager=e,this._trackingManager=n}return a()(t,[{key:"config",get:function(){return this._config},set:function(t){this._config=t}},{key:"decisionManager",get:function(){return this._decisionManager},set:function(t){this._decisionManager=t}},{key:"trackingManager",get:function(){return this._trackingManager},set:function(t){this._trackingManager=t}}]),t}();const tt=n(9591);var et=i.n(tt);const nt=n(1307);var rt=i.n(nt);n(2222),n(6992),n(1532),n(8783),n(3948);var it=function(){function t(t,e){$()(this,"_panic",!1),this._config=e,this._httpClient=t}var e;return a()(t,[{key:"config",get:function(){return this._config}},{key:"panic",set:function(t){this.updateFlagshipStatus(t?b.READY_PANIC_ON:b.READY),this._panic=t}},{key:"statusChangedCallback",value:function(t){this._statusChangedCallback=t}},{key:"updateFlagshipStatus",value:function(t){"function"==typeof this._statusChangedCallback&&this._statusChangedCallback&&this._statusChangedCallback(t)}},{key:"getModifications",value:function(t){var e=new Map;return t.forEach((function(t){var n=t.variation.modifications.value;for(var r in n){var i=n[r];e.set(r,{key:r,campaignId:t.id,variationGroupId:t.variationGroupId,variationId:t.variation.id,isReference:t.variation.reference,value:i})}})),e}},{key:"getCampaignsModificationsAsync",value:(e=et()(rt().mark((function t(e){var n=this;return rt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.getCampaignsAsync(e).then((function(t){return n.getModifications(t)})).catch((function(t){return W(n.config,t.message||t,"getCampaignsModificationsAsync"),new Map})));case 1:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"isPanic",value:function(){return this._panic}}]),t}(),ot=function(t){s()(r,t);var e,n=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h()(t);if(e){var i=h()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}(r);function r(){return n.apply(this,arguments)}return a()(r,[{key:"getCampaignsAsync",value:(e=et()(rt().mark((function t(e){var n,r,i,o,a=this;return rt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n={},$()(n,L,"".concat(this.config.apiKey)),$()(n,B,x),$()(n,G,S),$()(n,F,V),r=n,i={visitorId:e.visitorId,anonymousId:e.anonymousId,trigger_hit:!1,context:e.context},o="".concat(this.config.decisionApiUrl||I).concat(this.config.envId).concat("/campaigns","?").concat("exposeAllKeys","=true"),e.hasConsented||(o+="&".concat("sendContextEvent","=false")),t.abrupt("return",this._httpClient.postAsync(o,{headers:r,timeout:this.config.timeout,body:i}).then((function(t){a.panic=!!t.body.panic;var e=[];return t.body.campaigns&&(e=t.body.campaigns),e})).catch((function(t){return W(a.config,t.message||t,"GET CAMPAIGNS"),[]})));case 5:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})}]),r}(it);n(6699),n(2023),n(2479),n(3161),n(9653);var at,ct=function(){function t(t){var e=t.type,n=t.userIp,r=t.screenResolution,i=t.locale,o=t.sessionNumber;this.type=e,n&&(this.userIp=n),r&&(this.screenResolution=r),i&&(this.locale=i),o&&(this.sessionNumber=o),this._anonymousId=null}return a()(t,[{key:"sessionNumber",get:function(){return this._sessionNumber},set:function(t){this._sessionNumber=t}},{key:"locale",get:function(){return this._locale},set:function(t){this._locale=t}},{key:"screenResolution",get:function(){return this._screenResolution},set:function(t){this._screenResolution=t}},{key:"userIp",get:function(){return this._userIp},set:function(t){this._userIp=t}},{key:"anonymousId",get:function(){return this._anonymousId},set:function(t){this._anonymousId=t}},{key:"visitorId",get:function(){return this._visitorId},set:function(t){this._visitorId=t}},{key:"ds",get:function(){return this._ds},set:function(t){this._ds=t}},{key:"type",get:function(){return this._type},set:function(t){this._type=t}},{key:"config",get:function(){return this._config},set:function(t){this._config=t}},{key:"isNotEmptyString",value:function(t,e){return!(!t||"string"!=typeof t)||(W(this.config,K(_,e,"string"),e),!1)}},{key:"isNumeric",value:function(t,e){return!(!t||"number"!=typeof t)||(W(this.config,K(_,e,"number"),e),!1)}},{key:"isInteger",value:function(t,e){return t&&"number"==typeof t?(Number.isInteger(t)||W(this.config,K("value of {0} is not an {1}, it will be truncated to {1}",e,"integer"),e),!0):(W(this.config,K(_,e,"integer"),e),!1)}},{key:"toApiKeys",value:function(){var t,e=(t={},$()(t,"vid",this.visitorId),$()(t,"ds",this.ds),$()(t,j,"".concat(this.config.envId)),$()(t,"t",this.type),$()(t,"uip",this.userIp),$()(t,"sr",this.screenResolution),$()(t,"ul",this.locale),$()(t,"sn",this.sessionNumber),t);return this.visitorId&&this._anonymousId?(e.vid=this._anonymousId,e.cuid=this.visitorId):(e.vid=this._anonymousId||this.visitorId,e.cuid=null),e}},{key:"isReady",value:function(){return!!(this.visitorId&&this.ds&&this.config&&this.config.envId&&this.type)}}]),t}();!function(t){t.ACTION_TRACKING="Action Tracking",t.USER_ENGAGEMENT="User Engagement"}(at||(at={}));var st=function(t){s()(n,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h()(t);if(e){var i=h()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}(n);function n(t){var n;n=e.call(this,{type:k.EVENT,userIp:null==t?void 0:t.userIp,screenResolution:null==t?void 0:t.screenResolution,locale:null==t?void 0:t.locale,sessionNumber:null==t?void 0:t.sessionNumber});var r=t.category,i=t.action,o=t.label,a=t.value;return n.category=r,n.action=i,o&&(n.label=o),a&&(n.value=a),n}return a()(n,[{key:"category",get:function(){return this._category},set:function(t){Object.values(at).includes(t)?this._category=t:W(this.config,"The category value must be either EventCategory::ACTION_TRACKING or EventCategory::ACTION_TRACKING","category")}},{key:"action",get:function(){return this._action},set:function(t){this.isNotEmptyString(t,"action")&&(this._action=t)}},{key:"label",get:function(){return this._label},set:function(t){this.isNotEmptyString(t,"label")&&(this._label=t)}},{key:"value",get:function(){return this._value},set:function(t){this.isNumeric(t,"value")&&(this._value=t)}},{key:"toApiKeys",value:function(){var e=t.prototype.toApiKeys.call(this);return e.ec=this.category,e.ea=this.action,this.label&&(e.el=this.label),this.value&&(e.ev=this.value),e}},{key:"isReady",value:function(){return!!(t.prototype.isReady.call(this)&&this.category&&this.action)}},{key:"getErrorMessage",value:function(){return"event category and event action are required"}}]),n}(ct);n(3689);var ut=function(t){s()(n,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h()(t);if(e){var i=h()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}(n);function n(t){var n;n=e.call(this,{type:k.ITEM,userIp:null==t?void 0:t.userIp,screenResolution:null==t?void 0:t.screenResolution,locale:null==t?void 0:t.locale,sessionNumber:null==t?void 0:t.sessionNumber});var r=t.transactionId,i=t.productName,o=t.productSku,a=t.itemCategory,c=t.itemPrice,s=t.itemQuantity;return n.transactionId=r,n.productName=i,n.productSku=o,a&&(n.itemCategory=a),c&&(n.itemPrice=c),s&&(n.itemQuantity=s),n}return a()(n,[{key:"transactionId",get:function(){return this._transactionId},set:function(t){this.isNotEmptyString(t,"transactionId")&&(this._transactionId=t)}},{key:"productName",get:function(){return this._productName},set:function(t){this.isNotEmptyString(t,"productName")&&(this._productName=t)}},{key:"productSku",get:function(){return this._productSku},set:function(t){this.isNotEmptyString(t,"productSku")&&(this._productSku=t)}},{key:"itemPrice",get:function(){return this._itemPrice},set:function(t){this.isNumeric(t,"itemPrice")&&(this._itemPrice=t)}},{key:"itemQuantity",get:function(){return this._itemQuantity},set:function(t){this.isInteger(t,"itemQuantity")&&(this._itemQuantity=Math.trunc(t))}},{key:"itemCategory",get:function(){return this._itemCategory},set:function(t){this.isNotEmptyString(t,"itemCategory")&&(this._itemCategory=t)}},{key:"isReady",value:function(){return!!(t.prototype.isReady.call(this)&&this.transactionId&&this.productName&&this.productSku)}},{key:"toApiKeys",value:function(){var e=t.prototype.toApiKeys.call(this);return e.tid=this.transactionId,e.in=this.productName,e.ic=this.productSku,this.itemPrice&&(e.ip=this.itemPrice),this.itemQuantity&&(e.iq=this.itemQuantity),this.itemCategory&&(e.iv=this.itemCategory),e}},{key:"getErrorMessage",value:function(){return"Transaction Id, Item name and item code are required"}}]),n}(ct),ft=function(t){s()(n,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h()(t);if(e){var i=h()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}(n);function n(t){var n;return(n=e.call(this,{type:k.PAGE_VIEW,userIp:null==t?void 0:t.userIp,screenResolution:null==t?void 0:t.screenResolution,locale:null==t?void 0:t.locale,sessionNumber:null==t?void 0:t.sessionNumber})).documentLocation=null==t?void 0:t.documentLocation,n}return a()(n,[{key:"documentLocation",get:function(){return this._documentLocation},set:function(t){this.isNotEmptyString(t,"documentLocation")&&(this._documentLocation=t)}},{key:"isReady",value:function(){return!(!t.prototype.isReady.call(this)||!this.documentLocation)}},{key:"toApiKeys",value:function(){var e=t.prototype.toApiKeys.call(this);return e.dl=this.documentLocation,e}},{key:"getErrorMessage",value:function(){return"documentLocation url is required"}}]),n}(ct),lt=function(t){s()(n,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h()(t);if(e){var i=h()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}(n);function n(t){var n;return(n=e.call(this,{type:k.SCREEN_VIEW,userIp:null==t?void 0:t.userIp,screenResolution:null==t?void 0:t.screenResolution,locale:null==t?void 0:t.locale,sessionNumber:null==t?void 0:t.sessionNumber})).documentLocation=null==t?void 0:t.documentLocation,n}return a()(n,[{key:"documentLocation",get:function(){return this._documentLocation},set:function(t){this.isNotEmptyString(t,"documentLocation")&&(this._documentLocation=t)}},{key:"isReady",value:function(){return!(!t.prototype.isReady.call(this)||!this.documentLocation)}},{key:"toApiKeys",value:function(){var e=t.prototype.toApiKeys.call(this);return e.dl=this.documentLocation,e}},{key:"getErrorMessage",value:function(){return"Screen name is required"}}]),n}(ct),ht=function(t){s()(n,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h()(t);if(e){var i=h()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}(n);function n(t){var n;n=e.call(this,{type:k.TRANSACTION,userIp:null==t?void 0:t.userIp,screenResolution:null==t?void 0:t.screenResolution,locale:null==t?void 0:t.locale,sessionNumber:null==t?void 0:t.sessionNumber});var r=t.transactionId,i=t.affiliation,o=t.taxes,a=t.currency,c=t.couponCode,s=t.itemCount,u=t.shippingMethod,f=t.paymentMethod,l=t.totalRevenue,h=t.shippingCosts;return n.transactionId=r,n.affiliation=i,o&&(n.taxes=o),a&&(n.currency=a),c&&(n.couponCode=c),s&&(n.itemCount=s),u&&(n.shippingMethod=u),f&&(n.paymentMethod=f),l&&(n.totalRevenue=l),h&&(n.shippingCosts=h),n}return a()(n,[{key:"transactionId",get:function(){return this._transactionId},set:function(t){this.isNotEmptyString(t,"transactionId")&&(this._transactionId=t)}},{key:"affiliation",get:function(){return this._affiliation},set:function(t){this.isNotEmptyString(t,"affiliation")&&(this._affiliation=t)}},{key:"taxes",get:function(){return this._taxes},set:function(t){this.isNumeric(t,"taxes")&&(this._taxes=t)}},{key:"currency",get:function(){return this._currency},set:function(t){t&&"string"==typeof t&&3===t.length?this._currency=t:W(this.config,K("{0} must be a string and have exactly 3 letters","currency"),"currency")}},{key:"couponCode",get:function(){return this._couponCode},set:function(t){this.isNotEmptyString(t,"couponCode")&&(this._couponCode=t)}},{key:"itemCount",get:function(){return this._itemCount},set:function(t){this.isInteger(t,"itemCount")&&(this._itemCount=Math.trunc(t))}},{key:"shippingMethod",get:function(){return this._shippingMethod},set:function(t){this.isNotEmptyString(t,"shippingMethod")&&(this._shippingMethod=t)}},{key:"paymentMethod",get:function(){return this._paymentMethod},set:function(t){this.isNotEmptyString(t,"paymentMethod")&&(this._paymentMethod=t)}},{key:"totalRevenue",get:function(){return this._totalRevenue},set:function(t){this.isNumeric(t,"totalRevenue")&&(this._totalRevenue=t)}},{key:"shippingCosts",get:function(){return this._shippingCosts},set:function(t){this.isNumeric(t,"shippingCosts")&&(this._shippingCosts=t)}},{key:"isReady",value:function(){return!!(t.prototype.isReady.call(this)&&this.transactionId&&this.affiliation)}},{key:"toApiKeys",value:function(){var e=t.prototype.toApiKeys.call(this);return e.tid=this.transactionId,e.ta=this.affiliation,this.taxes&&(e.tt=this.taxes),this.currency&&(e.tc=this.currency),this.couponCode&&(e.tcc=this.couponCode),this.itemCount&&(e.icn=this.itemCount),this.shippingMethod&&(e.sm=this.shippingMethod),this.paymentMethod&&(e.pm=this.paymentMethod),this.totalRevenue&&(e.tr=this.totalRevenue),this.shippingCosts&&(e.ts=this.shippingCosts),e}},{key:"getErrorMessage",value:function(){return"Transaction Id and Transaction affiliation are required"}}]),n}(ct),pt=function(t){s()(o,t);var e,n,r,i=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h()(t);if(e){var i=h()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}(o);function o(){return i.apply(this,arguments)}return a()(o,[{key:"sendConsentHit",value:(r=et()(rt().mark((function t(e){var n,r,i;return rt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n={},$()(n,"t",k.EVENT),$()(n,"el","".concat(x,":").concat(e.hasConsented)),$()(n,"ea","fs_consent"),$()(n,"ec",at.USER_ENGAGEMENT),$()(n,j,this.config.envId),$()(n,"ds","APP"),r=n,e.visitorId&&e.anonymousId?(r.vid=e.anonymousId,r.cuid=e.visitorId):(r.vid=e.anonymousId||e.visitorId,r.cuid=null),i=$()({},F,V),t.next=5,this.httpClient.postAsync("https://ariane.abtasty.com",{headers:i,timeout:this.config.timeout,body:r});case 5:case"end":return t.stop()}}),t,this)}))),function(t){return r.apply(this,arguments)})},{key:"sendActive",value:(n=et()(rt().mark((function t(e,n){var r,i,o,a,c;return rt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r={},$()(r,L,"".concat(this.config.apiKey)),$()(r,B,x),$()(r,G,S),$()(r,F,V),o=r,a="".concat(I).concat("activate"),i={},$()(i,"vid",e.visitorId),$()(i,"vaid",n.variationId),$()(i,"caid",n.variationGroupId),$()(i,j,"".concat(this.config.envId)),c=i,e.visitorId&&e.anonymousId?(c.vid=e.visitorId,c.aid=e.anonymousId):(c.vid=e.anonymousId||e.visitorId,c.aid=null),t.next=6,this.httpClient.postAsync(a,{headers:o,timeout:this.config.timeout,body:c});case 6:case"end":return t.stop()}}),t,this)}))),function(t,e){return n.apply(this,arguments)})},{key:"sendHit",value:(e=et()(rt().mark((function t(e){var n;return rt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=$()({},F,V),t.next=3,this.httpClient.postAsync("https://ariane.abtasty.com",{headers:n,timeout:this.config.timeout,body:e.toApiKeys()});case 3:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})}]),o}(function(){function t(t,e){this._httpClient=t,this._config=e}return a()(t,[{key:"httpClient",get:function(){return this._httpClient}},{key:"config",get:function(){return this._config}}]),t}()),vt=function(){function t(){}return a()(t,[{key:"emergency",value:function(t,e){this.log(v.EMERGENCY,t,e)}},{key:"alert",value:function(t,e){this.log(v.ALERT,t,e)}},{key:"critical",value:function(t,e){this.log(v.CRITICAL,t,e)}},{key:"error",value:function(t,e){this.log(v.ERROR,t,e)}},{key:"warning",value:function(t,e){this.log(v.WARNING,t,e)}},{key:"notice",value:function(t,e){this.log(v.NOTICE,t,e)}},{key:"info",value:function(t,e){this.log(v.INFO,t,e)}},{key:"debug",value:function(t,e){this.log(v.DEBUG,t,e)}},{key:"log",value:function(t,e,n){var r=new Date,i=function(t){return 1===t.toString().length?"0".concat(t):t},o="[".concat(i(r.getFullYear()),"-").concat(i(r.getMonth()),"-").concat(i(r.getDay())," ").concat(i(r.getHours()),":").concat(i(r.getMinutes()),"] [").concat("Flagship SDK","] [").concat(v[t],"] [").concat(n,"] : ").concat(e);console.log(o)}}]),t}();const dt=n(353);var gt=i.n(dt);function yt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function mt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?yt(Object(n),!0).forEach((function(e){$()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):yt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}n(9720),n(1038);var bt=function(t){s()(n,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h()(t);if(e){var i=h()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}(n);function n(t){var n,r;return(r=e.call(this,mt(mt({},t),{},{decisionMode:H.BUCKETING}))).pollingInterval=null!=(n=null==t?void 0:t.pollingInterval)?n:1,r.onBucketingFail=null==t?void 0:t.onBucketingFail,r.onBucketingSuccess=null==t?void 0:t.onBucketingSuccess,r.onBucketingUpdated=null==t?void 0:t.onBucketingUpdated,r}return n}(Y);n(4723);var kt,xt=function(){function t(t){this.visitor=t}return a()(t,[{key:"configManager",get:function(){return this.visitor.configManager}},{key:"trackingManager",get:function(){return this.configManager.trackingManager}},{key:"decisionManager",get:function(){return this.configManager.decisionManager}},{key:"config",get:function(){return this.visitor.config}},{key:"updateCampaigns",value:function(t){try{this.visitor.campaigns=t,this.visitor.modifications=this.decisionManager.getModifications(t)}catch(t){W(this.config,t.message||t,"updateCampaigns")}}}]),t}(),It="sdk_deviceLanguage",St="sdk_deviceType",Et="sdk_deviceModel",Ot="sdk_city",wt="sdk_region",_t="sdk_country",Ct="sdk_lat",Mt="sdk_long",At="sdk_ip",Rt="sdk_osName",Nt="sdk_osVersionName",Tt="sdk_osVersionCode",Pt="sdk_carrierName",Dt="sdk_internetConnection",jt="sdk_versionName",Lt="sdk_versionCode",Ft="sdk_interfaceName",Bt="fs_client",Gt="fs_version",Vt="fs_users",Ht=(kt={},$()(kt,It,"string"),$()(kt,St,"string"),$()(kt,Et,"string"),$()(kt,Ot,"string"),$()(kt,wt,"string"),$()(kt,_t,"string"),$()(kt,Ct,"number"),$()(kt,Mt,"number"),$()(kt,At,"string"),$()(kt,Rt,"string"),$()(kt,Nt,"string"),$()(kt,Tt,"number"),$()(kt,Pt,"string"),$()(kt,Dt,"string"),$()(kt,jt,"string"),$()(kt,Lt,"number"),$()(kt,Ft,"string"),$()(kt,Bt,"string"),$()(kt,Gt,"string"),$()(kt,Vt,"string"),kt);function Ut(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Kt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ut(Object(n),!0).forEach((function(e){$()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ut(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Wt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h()(t);if(e){var i=h()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}var zt="property type is required and must ",Yt=function(t){s()(g,t);var n,r,i,o,c,u,f,l,h,p,v,d=Wt(g);function g(){return d.apply(this,arguments)}return a()(g,[{key:"setConsent",value:function(t){var e=this,n="setConsent";this.visitor.hasConsented=t,this.hasTrackingManager(n)&&this.trackingManager.sendConsentHit(this.visitor).catch((function(t){W(e.config,t.message||t,n)}))}},{key:"checkPredefinedContext",value:function(t,e){var n=Ht[t];if(!n)return null;var r=!1;return"string"===n?r="string"==typeof e:"number"===n&&(r="number"==typeof e),r||W(this.config,K("Predefined Context {0} must be type of {1}",t,n),R),r}},{key:"updateContextKeyValue",value:function(t,n){var r=e()(n);if("string"!=typeof t||""===t||"string"!==r&&"number"!==r&&"boolean"!==r)W(this.visitor.config,K("params {0} must be a non null String, and 'value' must be one of the following types , Number, Boolean",t),R);else if(!t.match(/^fs_/i)){var i=this.checkPredefinedContext(t,n);("boolean"!=typeof i||i)&&(this.visitor.context[t]=n)}}},{key:"updateContext",value:function(t){if(t)for(var e in t){var n=t[e];this.updateContextKeyValue(e,n)}else W(this.visitor.config,"Context must not to be null",R)}},{key:"clearContext",value:function(){this.visitor.context={}}},{key:"checkAndGetModification",value:function(t,n){var r=t.key,i=t.defaultValue,o=t.activate;if(!r||"string"!=typeof r)return W(this.config,K(O,r),N),i;var a=this.visitor.modifications.get(r);return a?"object"===e()(a.value)&&"object"===e()(i)&&Array.isArray(a.value)!==Array.isArray(i)||e()(a.value)!==e()(i)?(W(this.config,K("Modification for key {0} has a different type. Default value is returned.",r),N),a.value||!o&&!n||this.activateModification(r),i):((o||n)&&this.activateModification(r),a.value):(z(this.config,K("No modification for key {0}. Default value is returned.",r),N),i)}},{key:"getModifications",value:(v=et()(rt().mark((function t(e,n){return rt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.getModificationsSync(e,n));case 1:case"end":return t.stop()}}),t,this)}))),function(t,e){return v.apply(this,arguments)})},{key:"getModificationsSync",value:function(t,e){var n=this,r={};return t.forEach((function(t){r[t.key]=n.checkAndGetModification(t,e)})),r}},{key:"getModification",value:(p=et()(rt().mark((function t(e){return rt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.getModificationSync(e));case 1:case"end":return t.stop()}}),t,this)}))),function(t){return p.apply(this,arguments)})},{key:"getModificationSync",value:function(t){return this.checkAndGetModification(t)}},{key:"getModificationInfo",value:(h=et()(rt().mark((function t(e){return rt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.getModificationInfoSync(e));case 1:case"end":return t.stop()}}),t,this)}))),function(t){return h.apply(this,arguments)})},{key:"getModificationInfoSync",value:function(t){return t&&"string"==typeof t?this.visitor.modifications.get(t)||(W(this.visitor.config,K(w,t),T),null):(W(this.visitor.config,K(O,t),T),null)}},{key:"synchronizeModifications",value:(l=et()(rt().mark((function t(){var e;return rt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.decisionManager.getCampaignsAsync(this.visitor);case 3:e=t.sent,this.visitor.campaigns=e,this.visitor.modifications=this.decisionManager.getModifications(this.visitor.campaigns),this.visitor.emit(E),t.next=13;break;case 9:t.prev=9,t.t0=t.catch(0),this.visitor.emit(E,t.t0),W(this.config,t.t0.message||t.t0,"SYNCHRONIZED MODIFICATION");case 13:case"end":return t.stop()}}),t,this,[[0,9]])}))),function(){return l.apply(this,arguments)})},{key:"activateModification",value:(f=et()(rt().mark((function t(e){return rt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e&&"string"==typeof e){t.next=3;break}return W(this.config,K(O,e),P),t.abrupt("return");case 3:return t.abrupt("return",this.activate(e));case 4:case"end":return t.stop()}}),t,this)}))),function(t){return f.apply(this,arguments)})},{key:"activateModifications",value:(u=et()(rt().mark((function t(e){var n=this;return rt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e&&Array.isArray(e)){t.next=3;break}return W(this.config,K(O,e),P),t.abrupt("return");case 3:e.forEach((function(t){"string"==typeof t?n.activate(t):n.activate(t.key)}));case 4:case"end":return t.stop()}}),t,this)}))),function(t){return u.apply(this,arguments)})},{key:"hasTrackingManager",value:function(t){var e=this.trackingManager;return e||W(this.config,K("trackerManager must not be null."),t),!!e}},{key:"isDeDuplicated",value:function(t,e){if(0===e)return!1;var n=this.visitor.deDuplicationCache[t];return!!(n&&Date.now()-n<=1e3*e)||(this.visitor.deDuplicationCache[t]=Date.now(),this.visitor.clearDeDuplicationCache(e),!1)}},{key:"activate",value:(c=et()(rt().mark((function t(e){var n;return rt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.isDeDuplicated(e,this.config.activateDeduplicationTime)){t.next=2;break}return t.abrupt("return");case 2:if(t.prev=2,n=this.visitor.modifications.get(e)){t.next=7;break}return W(this.visitor.config,K(w,e),P),t.abrupt("return");case 7:if(this.hasTrackingManager(P)){t.next=9;break}return t.abrupt("return");case 9:return t.next=11,this.trackingManager.sendActive(this.visitor,n);case 11:t.next=16;break;case 13:t.prev=13,t.t0=t.catch(2),W(this.config,t.t0.message||t.t0,P);case 16:case"end":return t.stop()}}),t,this,[[2,13]])}))),function(t){return c.apply(this,arguments)})},{key:"sendHit",value:function(t){return this.hasTrackingManager(D)?this.prepareAndSendHit(t):Promise.resolve()}},{key:"sendHits",value:(o=et()(rt().mark((function t(e){var n=this;return rt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.hasTrackingManager(D)){t.next=2;break}return t.abrupt("return");case 2:e.forEach((function(t){return n.prepareAndSendHit(t)}));case 3:case"end":return t.stop()}}),t,this)}))),function(t){return o.apply(this,arguments)})},{key:"getHitLegacy",value:function(t){var e=null,n=Kt(Kt({},{type:{Screen:k.SCREEN_VIEW,ScreenView:k.SCREEN_VIEW,Transaction:k.TRANSACTION,Page:k.PAGE_VIEW,PageView:k.PAGE_VIEW,Item:k.ITEM,Event:k.EVENT}[t.type]}),t.data);switch(t.type.toUpperCase()){case k.EVENT:e=new st(n);break;case k.ITEM:e=new ut(n);break;case k.PAGE_VIEW:e=new ft(n);break;case k.SCREEN_VIEW:e=new lt(n);break;case k.TRANSACTION:e=new ht(t.data)}return e}},{key:"getHit",value:function(t){var e=null;switch(t.type.toUpperCase()){case k.EVENT:e=new st(t);break;case k.ITEM:e=new ut(t);break;case k.PAGE_VIEW:e=new ft(t);break;case k.SCREEN_VIEW:e=new lt(t);break;case k.TRANSACTION:e=new ht(t)}return e}},{key:"prepareAndSendHit",value:(i=et()(rt().mark((function t(e){var n,r,i,o;return rt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!(e instanceof ct)){t.next=5;break}n=e,t.next=19;break;case 5:if(!("data"in e)){t.next=14;break}if(r=e,i=this.getHitLegacy(r)){t.next=11;break}return W(this.config,zt,D),t.abrupt("return");case 11:n=i,t.next=19;break;case 14:if(o=this.getHit(e)){t.next=18;break}return W(this.config,zt,D),t.abrupt("return");case 18:n=o;case 19:if(n.visitorId=this.visitor.visitorId,n.ds="APP",n.config=this.config,n.anonymousId=this.visitor.anonymousId,!this.isDeDuplicated(JSON.stringify(n),this.config.hitDeduplicationTime)){t.next=25;break}return t.abrupt("return");case 25:if(n.isReady()){t.next=28;break}return W(this.config,n.getErrorMessage(),D),t.abrupt("return");case 28:return t.next=30,this.trackingManager.sendHit(n);case 30:t.next=35;break;case 32:t.prev=32,t.t0=t.catch(0),W(this.config,t.t0.message||t.t0,D);case 35:case"end":return t.stop()}}),t,this,[[0,32]])}))),function(t){return i.apply(this,arguments)})},{key:"getAllModifications",value:(r=et()(rt().mark((function t(){var e=this,n=arguments;return rt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n.length>0&&void 0!==n[0]&&n[0]&&this.visitor.modifications.forEach((function(t,n){e.activateModification(n)})),t.abrupt("return",{visitorId:this.visitor.visitorId,campaigns:this.visitor.campaigns});case 3:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"getModificationsForCampaign",value:(n=et()(rt().mark((function t(e){var n=this,r=arguments;return rt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r.length>1&&void 0!==r[1]&&r[1]&&this.visitor.modifications.forEach((function(t){t.campaignId===e&&n.activateModification(t.key)})),t.abrupt("return",{visitorId:this.visitor.visitorId,campaigns:this.visitor.campaigns.filter((function(t){return t.id===e}))});case 3:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})},{key:"authenticate",value:function(t){var e="authenticate";this.config.decisionMode!==H.BUCKETING?t?(this.visitor.anonymousId=this.visitor.visitorId,this.visitor.visitorId=t):W(this.config,C,e):this.logDeactivateOnBucketing(e)}},{key:"unauthenticate",value:function(){var t="unauthenticate";this.config.decisionMode!==H.BUCKETING?this.visitor.anonymousId?(this.visitor.visitorId=this.visitor.anonymousId,this.visitor.anonymousId=null):W(this.config,"Visitor is not authenticated yet",t):this.logDeactivateOnBucketing(t)}},{key:"logDeactivateOnBucketing",value:function(t){W(this.config,K("Method {0} is deactivated on Bucketing mode.",t),t)}}]),g}(xt),qt=function(t){s()(i,t);var e,n,r=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h()(t);if(e){var i=h()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}(i);function i(){return r.apply(this,arguments)}return a()(i,[{key:"synchronizeModifications",value:function(){return this.log("synchronizeModifications"),Promise.resolve()}},{key:"getModificationSync",value:function(t){return this.log("getModification"),t.defaultValue}},{key:"getModificationsSync",value:function(t,e){this.log("getModifications");var n={};return t.forEach((function(t){n[t.key]=t.defaultValue})),n}},{key:"getModificationInfoSync",value:function(t){return this.log("getModificationInfo"),null}},{key:"activateModification",value:(n=et()(rt().mark((function t(e){return rt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.log("activateModification");case 1:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})},{key:"activateModifications",value:(e=et()(rt().mark((function t(e){return rt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.log("activateModifications");case 1:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"sendHit",value:function(t){return this.log("sendHit"),Promise.resolve()}},{key:"sendHits",value:function(t){return this.log("sendHits"),Promise.resolve()}},{key:"log",value:function(t){W(this.config,K(M,t,b[b.NOT_INITIALIZED]),t)}}]),i}(Yt),$t=function(t){s()(i,t);var e,n,r=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h()(t);if(e){var i=h()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}(i);function i(){return r.apply(this,arguments)}return a()(i,[{key:"setConsent",value:function(t){this.visitor.hasConsented=t,W(this.config,K("Send consent hit is deactivated while SDK status is: {1}.",b[b.READY_PANIC_ON]),"setConsent")}},{key:"updateContext",value:function(t){this.log("updateContext")}},{key:"clearContext",value:function(){this.log("clearContext")}},{key:"getModificationSync",value:function(t){return this.log("getModification"),t.defaultValue}},{key:"getModificationsSync",value:function(t,e){this.log("getModifications");var n={};return t.forEach((function(t){n[t.key]=t.defaultValue})),n}},{key:"getModificationInfoSync",value:function(t){return this.log("getModificationInfo"),null}},{key:"activateModification",value:(n=et()(rt().mark((function t(e){return rt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.log("activateModification");case 1:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})},{key:"activateModifications",value:(e=et()(rt().mark((function t(e){return rt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.log("activateModifications");case 1:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"sendHit",value:function(t){return this.log("sendHit"),Promise.resolve()}},{key:"sendHits",value:function(t){return this.log("sendHits"),Promise.resolve()}},{key:"log",value:function(t){W(this.config,K(M,t,b[b.READY_PANIC_ON]),t)}}]),i}(Yt),Qt=function(t){s()(i,t);var e,n,r=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h()(t);if(e){var i=h()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}(i);function i(){return r.apply(this,arguments)}return a()(i,[{key:"activateModification",value:(n=et()(rt().mark((function t(e){return rt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.log("activateModification");case 1:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})},{key:"activateModifications",value:(e=et()(rt().mark((function t(e){return rt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.log("activateModifications");case 1:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"sendHit",value:function(t){return this.log("sendHit"),Promise.resolve()}},{key:"sendHits",value:function(t){return this.log("sendHits"),Promise.resolve()}},{key:"log",value:function(t){W(this.config,K("Method {0} is deactivated for visitor {1} : visitor did not consent.",t,this.visitor.visitorId),t)}}]),i}(Yt),Xt="FS_CLIENT_VISITOR",Zt=function(t){s()(n,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h()(t);if(e){var i=h()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}(n);function n(){return e.apply(this,arguments)}return a()(n,[{key:"updateContext",value:function(t){this.getStrategy().updateContext(t)}},{key:"clearContext",value:function(){this.getStrategy().clearContext()}},{key:"getModification",value:function(t){return this.getStrategy().getModification(t)}},{key:"getModificationSync",value:function(t){return this.getStrategy().getModificationSync(t)}},{key:"getModifications",value:function(t,e){return this.getStrategy().getModifications(t,e)}},{key:"getModificationsSync",value:function(t,e){return this.getStrategy().getModificationsSync(t,e)}},{key:"getModificationInfo",value:function(t){return this.getStrategy().getModificationInfo(t)}},{key:"getModificationInfoSync",value:function(t){return this.getStrategy().getModificationInfoSync(t)}},{key:"synchronizeModifications",value:function(){return this.getStrategy().synchronizeModifications()}},{key:"activateModification",value:function(t){return this.getStrategy().activateModification(t)}},{key:"activateModifications",value:function(t){return this.getStrategy().activateModifications(t)}},{key:"sendHit",value:function(t){return this.getStrategy().sendHit(t)}},{key:"sendHits",value:function(t){return this.getStrategy().sendHits(t)}},{key:"getAllModifications",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.getStrategy().getAllModifications(t)}},{key:"getModificationsForCampaign",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.getStrategy().getModificationsForCampaign(t,e)}},{key:"authenticate",value:function(t){this.getStrategy().authenticate(t),this.updateCache()}},{key:"unauthenticate",value:function(){this.getStrategy().unauthenticate(),this.updateCache()}}]),n}(function(t){s()(n,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h()(t);if(e){var i=h()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}(n);function n(t){var n,r=t.visitorId,i=t.configManager,o=t.context,a=t.isAuthenticated,c=t.hasConsented,s=t.initialModifications,u=t.initialCampaigns;(n=e.call(this))._isCleaningDeDuplicationCache=!1,n.deDuplicationCache={},n._configManager=i;var f=n.config.enableClientCache?function(){var t=null;try{t=localStorage.getItem(Xt)}catch(t){}return t?JSON.parse(t):null}():null;return n.visitorId=r||(null==f?void 0:f.visitorId)||n.createVisitorId(),n.campaigns=[],n._context={},n.updateContext(o),n._anonymousId=(null==f?void 0:f.anonymousId)||null,n.loadPredefinedContext(),c||n.setConsent(!1),n.hasConsented=null==c||c,!n._anonymousId&&a&&n.config.decisionMode===H.DECISION_API&&(n._anonymousId=n.uuidV4()),n.updateCache(),n.setInitialModifications(s),n.setInitializeCampaigns(u,!!s),n}return a()(n,[{key:"clearDeDuplicationCache",value:function(t){if(!this._isCleaningDeDuplicationCache){this._isCleaningDeDuplicationCache=!0;for(var e=0,n=Object.entries(this.deDuplicationCache);e<n.length;e++){var r=gt()(n[e],2),i=r[0],o=r[1];Date.now()-o>1e3*t&&delete this.deDuplicationCache[i]}this._isCleaningDeDuplicationCache=!1}}},{key:"getModificationsArray",value:function(){return Array.from(this._modifications,(function(t){var e=gt()(t,2);return e[0],e[1]}))}},{key:"setInitialModifications",value:function(t){var e=this;this._modifications=new Map,t&&(t instanceof Map||Array.isArray(t))&&t.forEach((function(t){e._modifications.set(t.key,t)}))}},{key:"setInitializeCampaigns",value:function(t,e){t&&Array.isArray(t)&&!e&&this.getStrategy().updateCampaigns(t)}},{key:"updateCache",value:function(){!function(t){try{localStorage.setItem(Xt,JSON.stringify(t))}catch(t){}}({visitorId:this.visitorId,anonymousId:this.anonymousId})}},{key:"loadPredefinedContext",value:function(){this.context.fs_client=x,this.context.fs_version=S,this.context.fs_users=this.visitorId}},{key:"uuidV4",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}))}},{key:"createVisitorId",value:function(){var t=new Date,e=Math.floor(89999*Math.random()+1e4),n=function(t){return 1===t.toString().length?"0".concat(t):t};return"".concat(t.getFullYear()).concat(n(t.getMonth()+1)).concat(n(t.getDate())).concat(n(t.getHours())).concat(n(t.getMinutes())).concat(e)}},{key:"visitorId",get:function(){return this._visitorId},set:function(t){t&&"string"==typeof t?this._visitorId=t:W(this.config,C,"VISITOR ID")}},{key:"hasConsented",get:function(){return this._hasConsented},set:function(t){this._hasConsented=t}},{key:"setConsent",value:function(t){this.getStrategy().setConsent(t)}},{key:"context",get:function(){return this._context},set:function(t){this._context={},this.updateContext(t)}},{key:"modifications",get:function(){return this._modifications},set:function(t){this._modifications=t}},{key:"configManager",get:function(){return this._configManager}},{key:"config",get:function(){return this.configManager.config}},{key:"campaigns",get:function(){return this._campaigns},set:function(t){this._campaigns=t}},{key:"anonymousId",get:function(){return this._anonymousId},set:function(t){this._anonymousId=t}},{key:"getStrategy",value:function(){return ce.getStatus()&&ce.getStatus()!==b.NOT_INITIALIZED?ce.getStatus()===b.READY_PANIC_ON?new $t(this):this.hasConsented?new Yt(this):new Qt(this):new qt(this)}}]),n}(p.EventEmitter));function Jt(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return te(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?te(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){c=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw o}}}}function te(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n(7042),n(8309),n(1817),n(2165),n(6755),n(7852);var ee=function(t){s()(o,t);var e,n,r,i=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h()(t);if(e){var i=h()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}(o);function o(t,e,n){var r;return(r=i.call(this,t,e))._murmurHash=n,r._isFirstPooling=!0,e.initialBucketing&&(r._bucketingContent=e.initialBucketing),r}return a()(o,[{key:"finishLoop",value:function(t){if(200===t.status&&(this._bucketingContent=t.body),t.headers&&t.headers["last-modified"]){var e=t.headers["last-modified"];this._lastModified!==e&&this.config.onBucketingUpdated&&this.config.onBucketingUpdated(new Date(e)),this._lastModified=e}this._isFirstPooling&&(this._isFirstPooling=!1,this.updateFlagshipStatus(b.READY)),"function"==typeof this.config.onBucketingSuccess&&this.config.onBucketingSuccess({status:t.status,payload:this._bucketingContent}),this._isPooling=!1}},{key:"startPolling",value:function(){var t,e=this,n=1e3*(null!=(t=this.config.pollingInterval)?t:2);z(this.config,"Bucketing polling starts","startPolling"),this.polling(),0!==n&&(this._intervalID=setInterval((function(){e.polling()}),n))}},{key:"polling",value:(r=et()(rt().mark((function t(){var e,n,r,i;return rt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this._isPooling){t.next=2;break}return t.abrupt("return");case 2:return this._isPooling=!0,this._isFirstPooling&&this.updateFlagshipStatus(b.POLLING),t.prev=4,n=K("https://cdn.flagship.io/{0}/bucketing.json",this.config.envId),e={},$()(e,L,"".concat(this.config.apiKey)),$()(e,B,x),$()(e,G,S),$()(e,F,V),r=e,this._lastModified&&(r["if-modified-since"]=this._lastModified),t.next=10,this._httpClient.getAsync(n,{headers:r});case 10:i=t.sent,this.finishLoop(i),t.next=20;break;case 14:t.prev=14,t.t0=t.catch(4),this._isPooling=!1,W(this.config,t.t0,"startPolling dd"),this._isFirstPooling&&this.updateFlagshipStatus(b.NOT_INITIALIZED),"function"==typeof this.config.onBucketingFail&&this.config.onBucketingFail(new Error(t.t0));case 20:case"end":return t.stop()}}),t,this,[[4,14]])}))),function(){return r.apply(this,arguments)})},{key:"stopPolling",value:function(){clearInterval(this._intervalID),this._isPooling=!1,z(this.config,"Bucketing polling stopped","stopPolling")}},{key:"sendContext",value:(n=et()(rt().mark((function t(e){var n,r,i,o;return rt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,r=K("https://decision.flagship.io/v2/{0}/events",this.config.envId),n={},$()(n,L,"".concat(this.config.apiKey)),$()(n,B,x),$()(n,G,S),$()(n,F,V),i=n,o={visitorId:e.visitorId,type:"CONTEXT",data:e.context},t.next=6,this._httpClient.postAsync(r,{headers:i,body:o});case 6:t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),W(this.config,t.t0.message||t.t0,"sendContext");case 11:case"end":return t.stop()}}),t,this,[[0,8]])}))),function(t){return n.apply(this,arguments)})},{key:"getCampaignsAsync",value:(e=et()(rt().mark((function t(e){var n,r=this;return rt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.sendContext(e),this._bucketingContent){t.next=3;break}return t.abrupt("return",[]);case 3:if(!this._bucketingContent.panic){t.next=6;break}return this.panic=!0,t.abrupt("return",[]);case 6:if(this.panic=!1,this._bucketingContent.campaigns){t.next=9;break}return t.abrupt("return",[]);case 9:return n=[],this._bucketingContent.campaigns.forEach((function(t){var i=r.getVisitorCampaigns(t.variationGroups,t.id,e);i&&n.push(i)})),t.abrupt("return",n);case 12:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"getVisitorCampaigns",value:function(t,e,n){var r,i=Jt(t);try{for(i.s();!(r=i.n()).done;){var o=r.value;if(this.isMatchTargeting(o,n)){var a=this.getVariation(o,n.visitorId);return a?{id:e,variation:a,variationGroupId:o.id}:null}}}catch(t){i.e(t)}finally{i.f()}return null}},{key:"getVariation",value:function(t,e){var n,r=this._murmurHash.murmurHash3Int32(t.id+e)%100,i=0,o=Jt(t.variations);try{for(o.s();!(n=o.n()).done;){var a=n.value;if(void 0!==a.allocation&&r<(i+=a.allocation))return{id:a.id,modifications:a.modifications,reference:!!a.reference}}}catch(t){o.e(t)}finally{o.f()}return null}},{key:"isMatchTargeting",value:function(t,e){var n=this;return!!(t&&t.targeting&&t.targeting.targetingGroups)&&t.targeting.targetingGroups.some((function(t){return n.checkAndTargeting(t.targetings,e)}))}},{key:"isANDListOperator",value:function(t){return["NOT_EQUALS","NOT_CONTAINS"].includes(t)}},{key:"checkAndTargeting",value:function(t,e){var n,r,i=!1,o=Jt(t);try{for(o.s();!(r=o.n()).done;){var a=r.value,c=a.key,s=a.value,u=a.operator;if("fs_all_users"!==c){if("fs_users"===c)n=e.visitorId;else{if(!(c in e.context)){i=!1;break}n=e.context[c]}if(!(i=this.testOperator(u,n,s)))break}else i=!0}}catch(t){o.e(t)}finally{o.f()}return i}},{key:"testListOperatorLoop",value:function(t,e,n,r){var i,o=r,a=Jt(n);try{for(a.s();!(i=a.n()).done;){var c=i.value;if((o=this.testOperator(t,e,c))!==r)break}}catch(t){a.e(t)}finally{a.f()}return o}},{key:"testListOperator",value:function(t,e,n){return this.isANDListOperator(t)?this.testListOperatorLoop(t,e,n,!0):this.testListOperatorLoop(t,e,n,!1)}},{key:"testOperator",value:function(t,e,n){var r;if(Array.isArray(n))return this.testListOperator(t,e,n);switch(t){case"EQUALS":r=e===n;break;case"NOT_EQUALS":r=e!==n;break;case"CONTAINS":r=e.toString().includes(n.toString());break;case"NOT_CONTAINS":r=!e.toString().includes(n.toString());break;case"GREATER_THAN":r=e>n;break;case"LOWER_THAN":r=e<n;break;case"GREATER_THAN_OR_EQUALS":r=e>=n;break;case"LOWER_THAN_OR_EQUALS":r=e<=n;break;case"STARTS_WITH":r=e.toString().startsWith(n.toString());break;case"ENDS_WITH":r=e.toString().endsWith(n.toString());break;default:r=!1}return r}}]),o}(it),ne=function(){function t(){}return a()(t,[{key:"murmurHash3Int32",value:function(t){var e,n,r,i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=3&t.length,c=t.length-a;e=o;var s=3432918353,u=461845907;for(i=0;i<c;)r=255&t.charCodeAt(i)|(255&t.charCodeAt(++i))<<8|(255&t.charCodeAt(++i))<<16|(255&t.charCodeAt(++i))<<24,++i,e=27492+(65535&(n=5*(65535&(e=(e^=r=(65535&(r=(r=(65535&r)*s+(((r>>>16)*s&65535)<<16)&4294967295)<<15|r>>>17))*u+(((r>>>16)*u&65535)<<16)&4294967295)<<13|e>>>19))+((5*(e>>>16)&65535)<<16)&4294967295))+((58964+(n>>>16)&65535)<<16);switch(r=0,a){case 3:r^=(255&t.charCodeAt(i+2))<<16;case 2:r^=(255&t.charCodeAt(i+1))<<8;case 1:e^=r=(65535&(r=(r=(65535&(r^=255&t.charCodeAt(i)))*s+(((r>>>16)*s&65535)<<16)&4294967295)<<15|r>>>17))*u+(((r>>>16)*u&65535)<<16)&4294967295}return e^=t.length,e=2246822507*(65535&(e^=e>>>16))+((2246822507*(e>>>16)&65535)<<16)&4294967295,e=3266489909*(65535&(e^=e>>>13))+((3266489909*(e>>>16)&65535)<<16)&4294967295,(e^=e>>>16)>>>0}}]),t}();n(7727);var re=i(289);function ie(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function oe(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ie(Object(n),!0).forEach((function(e){$()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ie(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var ae=function(){function t(){}var e;return a()(t,[{key:"getResponse",value:(e=et()(rt().mark((function t(e){var n,r,i;return rt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.headers.get("Content-Type"),r="application/json"===n,t.next=4,e.text();case 4:if((i=t.sent)&&r&&(i=JSON.parse(i)),e.ok){t.next=8;break}throw new Error(i||e.statusText);case 8:return t.abrupt("return",{status:e.status,body:i});case 9:case"end":return t.stop()}}),t)}))),function(t){return e.apply(this,arguments)})},{key:"getAsync",value:function(t,e){var n=new re,r=setTimeout((function(){return n.abort()}),1e3*(null!=e&&e.timeout?e.timeout:2));return g(t,oe(oe({},d),{},{method:"GET",headers:null==e?void 0:e.headers,signal:n.signal,keepalive:!0})).then(this.getResponse).catch((function(t){throw t})).finally((function(){clearInterval(r)}))}},{key:"postAsync",value:function(t,e){var n=new re,r=setTimeout((function(){return n.abort()}),e.timeout?1e3*e.timeout:2e3);return g(t,oe(oe({},d),{},{method:"POST",headers:e.headers,body:JSON.stringify(e.body),signal:n.signal,keepalive:!0})).then(this.getResponse).catch((function(t){throw t})).finally((function(){clearInterval(r)}))}}]),t}(),ce=function(){function t(){}return a()(t,[{key:"config",get:function(){return this._config}},{key:"configManager",get:function(){return this._configManger},set:function(t){this._configManger=t}},{key:"setStatus",value:function(t){var e=this.config.statusChangedCallback;if(this.config&&e&&this._status!==t)return this._status=t,void e(t);this._status=t}},{key:"getVisitor",value:function(){return this._visitorInstance}},{key:"buildConfig",value:function(t){return t instanceof Y?t:(null==t?void 0:t.decisionMode)===H.BUCKETING?new bt(t):new Z(t)}},{key:"buildDecisionManager",value:function(t,e,n){var r,i=function(e){t.setStatus(e)};if(e.decisionMode===H.BUCKETING){var o=r=new ee(n,e,new ne);r.statusChangedCallback(i),o.startPolling()}else(r=new ot(n,e)).statusChangedCallback(i);return r}},{key:"newVisitor",value:function(e,n){return t.newVisitor(e,n)}}],[{key:"getInstance",value:function(){return this._instance||(this._instance=new this),this._instance}},{key:"isReady",value:function(){var t,e,n,r,i,o=null==(t=this._instance)||null==(e=t.config)?void 0:e.apiKey,a=null==(n=this._instance)||null==(r=n.config)?void 0:r.envId,c=null==(i=this._instance)?void 0:i.configManager;return!!(this._instance&&o&&a&&c)}},{key:"getStatus",value:function(){return this.getInstance()._status}},{key:"getConfig",value:function(){return this.getInstance()._config}},{key:"getVisitor",value:function(){return this.getInstance().getVisitor()}},{key:"start",value:function(t,n,r){var i,o=this.getInstance();if((r=o.buildConfig(r)).envId=t,r.apiKey=n,o._config=r,o.setStatus(b.STARTING),r.logManager||(r.logManager=new vt),!t||!n)return o.setStatus(b.NOT_INITIALIZED),W(r,"Params 'envId' and 'apiKey' must not be null or empty.",A),null;var a=null==(i=o.configManager)?void 0:i.decisionManager;"object"===e()(a)&&a instanceof ee&&a.stopPolling();var c=new ae;a=o.buildDecisionManager(o,r,c);var s=new pt(c,r);return o.configManager?(o.configManager.config=r,o.configManager.decisionManager=a,o.configManager.trackingManager=s):o.configManager=new J(r,a,s),this.isReady()?(o._status===b.STARTING&&o.setStatus(b.READY),z(r,K("Flagship SDK (version: {0}) READY",S),A),o):(o.setStatus(b.NOT_INITIALIZED),null)}},{key:"newVisitor",value:function(t,e){if(!this.isReady())return null;var n,r,i,o,a,c,s=!1,u=!0,f="undefined"==typeof window;"string"==typeof t||null===t?(n=t,r=e||{}):(n=(null==t?void 0:t.visitorId)||null,r=(null==t?void 0:t.context)||{},s=!(null==t||!t.isAuthenticated),u=null==(a=null==t?void 0:t.hasConsented)||a,i=null==t?void 0:t.initialModifications,o=null==t?void 0:t.initialCampaigns,f=null!=(c=null==t?void 0:t.isNewInstance)?c:f);var l=new Zt({visitorId:n,context:r,isAuthenticated:s,hasConsented:u,configManager:this.getInstance().configManager,initialModifications:i,initialCampaigns:o}),h=new U(l);return this.getInstance()._visitorInstance=f?void 0:h,this.getConfig().fetchNow&&h.synchronizeModifications(),h}}]),t}();const se=ce})(),t.exports=o})()},821:(t,e,n)=>{"use strict";n.d(e,{e:()=>p,X:()=>v}),n(6992),n(1532),n(1539),n(8783),n(3948),n(4747),n(7941),n(2526),n(7327),n(5003),n(9337),n(1817),n(2165),n(7042),n(8309),n(1038);var r=n(6689),i=n.n(r),o=n(6968),a=n(4370);function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o=[],a=!0,c=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){c=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(c)throw i}}return o}}(t,e)||function(t,e){if(t){if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var h={status:{isLoading:!0,isSdkReady:!1}},p=(0,r.createContext)({state:f({},h)}),v=function(t){var e=t.children,n=t.fetchNow,s=t.envId,u=t.apiKey,l=t.decisionMode,v=t.decisionApiUrl,d=t.timeout,g=t.logLevel,y=t.statusChangedCallback,m=t.logManager,b=t.pollingInterval,k=t.visitorData,x=t.onInitStart,I=t.onInitDone,S=t.onBucketingSuccess,E=t.onBucketingFail,O=t.loadingComponent,w=t.onBucketingUpdated,_=t.onUpdate,C=t.enableClientCache,M=t.initialBucketing,A=t.initialCampaigns,R=t.initialModifications,N=t.synchronizeOnBucketingUpdated,T=t.activateDeduplicationTime,P=t.hitDeduplicationTime,D=new Map;R?R.forEach((function(t){D.set(t.key,t)})):A&&(D=(0,a.B$)(A));var j=c((0,r.useState)(f(f({},h),{},{modifications:D})),2),L=j[0],F=j[1],B=c((0,r.useState)(),2),G=B[0],V=B[1],H=(0,r.useRef)();H.current=L,(0,r.useEffect)((function(){var t;N&&(null===(t=L.visitor)||void 0===t||t.synchronizeModifications())}),[G]),(0,r.useEffect)((function(){U()}),[JSON.stringify(k)]),(0,r.useEffect)((function(){q()}),[s,u,l]);var U=function(){L.visitor&&(k.context&&(L.visitor.clearContext(),L.visitor.updateContext(k.context)),"boolean"==typeof k.hasConsented&&L.visitor.setConsent(k.hasConsented),L.visitor.anonymousId&&!k.isAuthenticated?L.visitor.unauthenticate():!L.visitor.anonymousId&&k.isAuthenticated&&L.visitor.authenticate(k.id),k.id&&(L.visitor.visitorId=k.id),L.visitor.synchronizeModifications())};function K(t){var e={isSdkReady:t.isSdkReady,isLoading:t.isLoading,isVisitorDefined:!!t.fsVisitor,lastRefresh:(new Date).toISOString()};return F((function(n){return n.status.firstInitSuccess||(e.firstInitSuccess=(new Date).toISOString()),f(f({},n),{},{visitor:t.fsVisitor,modifications:t.fsVisitor.modifications,config:o.Flagship.getConfig(),status:f(f({},n.status),e)})})),e}var W,z=function(t){if(y&&y(t),t===o.FlagshipStatus.STARTING&&x)x();else if(t===o.FlagshipStatus.READY_PANIC_ON||t===o.FlagshipStatus.READY){var e;if(I&&I(),null!==(e=H.current)&&void 0!==e&&e.visitor){var r;null===(r=H.current)||void 0===r||r.visitor.synchronizeModifications()}else{var i=o.Flagship.newVisitor({visitorId:k.id,context:k.context,isAuthenticated:k.isAuthenticated,hasConsented:k.hasConsented,initialCampaigns:A,initialModifications:R});null==i||i.on("ready",(function(t){!function(t,e){if(e)(0,a.H)(o.Flagship.getConfig(),e.message||e,"onReady");else{var n=K({fsVisitor:t,isSdkReady:!0,isLoading:!1});_&&_({fsModifications:t.modifications,config:o.Flagship.getConfig(),status:n})}}(i,t)})),!n&&i&&K({fsVisitor:i,isSdkReady:!0,isLoading:!1})}}},Y=function(t){w&&w(t),V(t)},q=function(){o.Flagship.start(s,u,{decisionMode:l,fetchNow:n,timeout:d,logLevel:g,statusChangedCallback:z,logManager:m,pollingInterval:b,onBucketingFail:E,onBucketingSuccess:S,enableClientCache:C,decisionApiUrl:v,onBucketingUpdated:Y,initialBucketing:M,activateDeduplicationTime:T,hitDeduplicationTime:P})};return i().createElement(p.Provider,{value:{state:L,setState:F}},(W=!L.visitor,L.status.isLoading&&O&&W?i().createElement(i().Fragment,null,O):i().createElement(i().Fragment,null,e)))};v.defaultProps={nodeEnv:"production",activateDeduplicationTime:10,hitDeduplicationTime:10}},9460:(t,e,n)=>{"use strict";n.d(e,{GW:()=>h,nr:()=>p,_X:()=>d,TM:()=>y,pc:()=>b,UM:()=>k,mq:()=>x,yz:()=>I}),n(5666),n(4747),n(1539),n(8674),n(1038),n(8783),n(2526),n(1817),n(2165),n(6992),n(3948),n(7042),n(8309);var r=n(6689),i=n(821),o=n(4370);function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function c(t,e,n,r,i,o,a){try{var c=t[o](a),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,i)}function s(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){c(o,r,i,a,s,"next",t)}function s(t){c(o,r,i,a,s,"throw",t)}a(void 0)}))}}function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}var f=function(t,e){return"object"===u(t)&&"object"===u(e)&&Array.isArray(t)===Array.isArray(e)||u(t)===u(e)},l=function(t){var e=t.visitor,n=t.params,r=t.activateAll,i=t.state,a=t.functionName,c=t.config;if(e)return e.getModificationsSync(n,r);var s=!i.status.isSdkReady&&!!i.modifications&&i.modifications.size>0,u={};return s?(n.forEach((function(t){var e,n=null===(e=i.modifications)||void 0===e?void 0:e.get(t.key);n&&f(null==n?void 0:n.value,t.defaultValue)?u[t.key]=n.value:u[t.key]=t.defaultValue})),u):((0,o.yN)(c,I,a),n.forEach((function(t){u[t.key]=t.defaultValue})),u)},h=function(t,e){var n=(0,r.useContext)(i.e).state,o=n.visitor,a=n.config;return l({functionName:"useFsModifications",state:n,visitor:o,config:a,params:t,activateAll:e})},p=function(t){var e,n=(0,r.useContext)(i.e).state,a=n.visitor,c=n.config;if(a)return a.getModificationSync(t);var s=null===(e=n.modifications)||void 0===e?void 0:e.get(t.key);return!n.status.isSdkReady&&s&&f(null==s?void 0:s.value,t.defaultValue)?s.value:((0,o.yN)(c,I,"useFsModifications"),t.defaultValue)},v=function(t){var e,n=t.key,r=t.visitor,i=t.state;if(r)return r.getModificationInfoSync(n);var o=null===(e=i.modifications)||void 0===e?void 0:e.get(n);return!i.status.isSdkReady&&o?o:null},d=function(t){var e=(0,r.useContext)(i.e).state,n=e.visitor;return v({key:t,state:e,visitor:n})},g=function(){var t=s(regeneratorRuntime.mark((function t(e,n,r){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,n){t.next=4;break}return S(r,e),t.abrupt("return");case 4:return t.next=6,n.synchronizeModifications();case 6:t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),(0,o.H)(r,t.t0.message||t.t0,e);case 11:case"end":return t.stop()}}),t,null,[[0,8]])})));return function(e,n,r){return t.apply(this,arguments)}}(),y=function(){var t=s(regeneratorRuntime.mark((function t(){var e,n,o,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=(0,r.useContext)(i.e),n=e.state,o=n.visitor,a=n.config,t.next=5,g("useFsSynchronizeModifications",o,a);case 5:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),m=function(){var t=s(regeneratorRuntime.mark((function t(e,n,r,i){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,r){t.next=4;break}return(0,o.yN)(i,x,n),t.abrupt("return");case 4:return t.next=6,r.activateModifications(e);case 6:t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),(0,o.yN)(i,t.t0.message||t.t0,n);case 11:case"end":return t.stop()}}),t,null,[[0,8]])})));return function(e,n,r,i){return t.apply(this,arguments)}}(),b=function(){var t=s(regeneratorRuntime.mark((function t(e){var n,o,a,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=(0,r.useContext)(i.e),o=n.state,a=o.visitor,c=o.config,t.next=5,m(e,"useFsModifications",a,c);case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),k=function(){var t=(0,r.useContext)(i.e).state,e=t.visitor,n=t.config,c=null==e?void 0:e.getModificationsArray();!t.status.isSdkReady&&t.modifications&&(c=Array.from(t.modifications,(function(t){var e,n,r=(n=2,function(t){if(Array.isArray(t))return t}(e=t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o=[],a=!0,c=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){c=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(c)throw i}}return o}}(e,n)||function(t,e){if(t){if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());return r[0],r[1]})));var u=function(){var t=s(regeneratorRuntime.mark((function t(r){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,m(r,"activateModification",e,n);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),f=function(){var t=s(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,g("synchronizeModifications",e,n);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return{updateContext:function(t){e?(e.clearContext(),e.updateContext(t)):(0,o.H)(n,x,"updateContext")},clearContext:function(){e?e.clearContext():(0,o.H)(n,x,"cleanContext")},authenticate:function(t){e?e.authenticate(t):(0,o.H)(n,x,"authenticate")},unauthenticate:function(){e?e.unauthenticate():(0,o.H)(n,x,"unauthenticate")},status:t.status,activateModification:u,synchronizeModifications:f,getModifications:function(r,i){return l({functionName:"getModifications",state:t,visitor:e,config:n,params:r,activateAll:i})},modifications:c||[],getModificationInfo:function(n){return v({key:n,state:t,visitor:e})},hit:{send:function(t){return e?e.sendHit(t):((0,o.H)(n,x,"sendHit"),Promise.resolve())},sendMultiple:function(t){return e?e.sendHits(t):((0,o.H)(n,x,"sendHits"),Promise.resolve())}}}},x="sdk not correctly initialized... Make sure fsVisitor is ready.",I="fsVisitor not initialized, returns default value",S=function(t,e){(0,o.H)(t,x,e)}},4370:(t,e,n)=>{"use strict";n.d(e,{H:()=>i,yN:()=>o,B$:()=>a}),n(6992),n(1532),n(1539),n(8783),n(3948),n(4747);var r=n(6968);function i(t,e,n){t&&t.logManager&&"function"==typeof t.logManager.error&&t.logLevel&&!(t.logLevel<r.LogLevel.ERROR)&&t.logManager.error(e,n)}function o(t,e,n){t&&t.logManager&&"function"==typeof t.logManager.warning&&t.logLevel&&!(t.logLevel<r.LogLevel.WARNING)&&t.logManager.warning(e,n)}var a=function(t){var e=new Map;return t&&Array.isArray(t)?(t.forEach((function(t){var n=t.variation.modifications.value;for(var r in n){var i=n[r];e.set(r,{key:r,campaignId:t.id,variationGroupId:t.variationGroupId,variationId:t.variation.id,isReference:t.variation.reference,value:i})}})),e):e}},9662:(t,e,n)=>{var r=n(614),i=n(6330);t.exports=function(t){if(r(t))return t;throw TypeError(i(t)+" is not a function")}},9483:(t,e,n)=>{var r=n(4411),i=n(6330);t.exports=function(t){if(r(t))return t;throw TypeError(i(t)+" is not a constructor")}},6077:(t,e,n)=>{var r=n(614);t.exports=function(t){if("object"==typeof t||r(t))return t;throw TypeError("Can't set "+String(t)+" as a prototype")}},1223:(t,e,n)=>{var r=n(5112),i=n(30),o=n(3070),a=r("unscopables"),c=Array.prototype;null==c[a]&&o.f(c,a,{configurable:!0,value:i(null)}),t.exports=function(t){c[a][t]=!0}},1530:(t,e,n)=>{"use strict";var r=n(8710).charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},5787:t=>{t.exports=function(t,e,n){if(t instanceof e)return t;throw TypeError("Incorrect "+(n?n+" ":"")+"invocation")}},9670:(t,e,n)=>{var r=n(111);t.exports=function(t){if(r(t))return t;throw TypeError(String(t)+" is not an object")}},8533:(t,e,n)=>{"use strict";var r=n(2092).forEach,i=n(9341)("forEach");t.exports=i?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},8457:(t,e,n)=>{"use strict";var r=n(9974),i=n(7908),o=n(3411),a=n(7659),c=n(4411),s=n(7466),u=n(6135),f=n(8554),l=n(1246);t.exports=function(t){var e=i(t),n=c(this),h=arguments.length,p=h>1?arguments[1]:void 0,v=void 0!==p;v&&(p=r(p,h>2?arguments[2]:void 0,2));var d,g,y,m,b,k,x=l(e),I=0;if(!x||this==Array&&a(x))for(d=s(e.length),g=n?new this(d):Array(d);d>I;I++)k=v?p(e[I],I):e[I],u(g,I,k);else for(b=(m=f(e,x)).next,g=n?new this:[];!(y=b.call(m)).done;I++)k=v?o(m,p,[y.value,I],!0):y.value,u(g,I,k);return g.length=I,g}},1318:(t,e,n)=>{var r=n(5656),i=n(7466),o=n(1400),a=function(t){return function(e,n,a){var c,s=r(e),u=i(s.length),f=o(a,u);if(t&&n!=n){for(;u>f;)if((c=s[f++])!=c)return!0}else for(;u>f;f++)if((t||f in s)&&s[f]===n)return t||f||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},2092:(t,e,n)=>{var r=n(9974),i=n(8361),o=n(7908),a=n(7466),c=n(5417),s=[].push,u=function(t){var e=1==t,n=2==t,u=3==t,f=4==t,l=6==t,h=7==t,p=5==t||l;return function(v,d,g,y){for(var m,b,k=o(v),x=i(k),I=r(d,g,3),S=a(x.length),E=0,O=y||c,w=e?O(v,S):n||h?O(v,0):void 0;S>E;E++)if((p||E in x)&&(b=I(m=x[E],E,k),t))if(e)w[E]=b;else if(b)switch(t){case 3:return!0;case 5:return m;case 6:return E;case 2:s.call(w,m)}else switch(t){case 4:return!1;case 7:s.call(w,m)}return l?-1:u||f?f:w}};t.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},1194:(t,e,n)=>{var r=n(7293),i=n(5112),o=n(7392),a=i("species");t.exports=function(t){return o>=51||!r((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},9341:(t,e,n)=>{"use strict";var r=n(7293);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){throw 1},1)}))}},7475:(t,e,n)=>{var r=n(3157),i=n(4411),o=n(111),a=n(5112)("species");t.exports=function(t){var e;return r(t)&&(e=t.constructor,(i(e)&&(e===Array||r(e.prototype))||o(e)&&null===(e=e[a]))&&(e=void 0)),void 0===e?Array:e}},5417:(t,e,n)=>{var r=n(7475);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},3411:(t,e,n)=>{var r=n(9670),i=n(9212);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){i(t,"throw",e)}}},7072:(t,e,n)=>{var r=n(5112)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},t(o)}catch(t){}return n}},4326:t=>{var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},648:(t,e,n)=>{var r=n(1694),i=n(614),o=n(4326),a=n(5112)("toStringTag"),c="Arguments"==o(function(){return arguments}());t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),a))?n:c?o(e):"Object"==(r=o(e))&&i(e.callee)?"Arguments":r}},5631:(t,e,n)=>{"use strict";var r=n(3070).f,i=n(30),o=n(2248),a=n(9974),c=n(5787),s=n(408),u=n(654),f=n(6340),l=n(9781),h=n(2423).fastKey,p=n(9909),v=p.set,d=p.getterFor;t.exports={getConstructor:function(t,e,n,u){var f=t((function(t,r){c(t,f,e),v(t,{type:e,index:i(null),first:void 0,last:void 0,size:0}),l||(t.size=0),null!=r&&s(r,t[u],{that:t,AS_ENTRIES:n})})),p=d(e),g=function(t,e,n){var r,i,o=p(t),a=y(t,e);return a?a.value=n:(o.last=a={index:i=h(e,!0),key:e,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=a),r&&(r.next=a),l?o.size++:t.size++,"F"!==i&&(o.index[i]=a)),t},y=function(t,e){var n,r=p(t),i=h(e);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==e)return n};return o(f.prototype,{clear:function(){for(var t=p(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,l?t.size=0:this.size=0},delete:function(t){var e=this,n=p(e),r=y(e,t);if(r){var i=r.next,o=r.previous;delete n.index[r.index],r.removed=!0,o&&(o.next=i),i&&(i.previous=o),n.first==r&&(n.first=i),n.last==r&&(n.last=o),l?n.size--:e.size--}return!!r},forEach:function(t){for(var e,n=p(this),r=a(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!y(this,t)}}),o(f.prototype,n?{get:function(t){var e=y(this,t);return e&&e.value},set:function(t,e){return g(this,0===t?0:t,e)}}:{add:function(t){return g(this,t=0===t?0:t,t)}}),l&&r(f.prototype,"size",{get:function(){return p(this).size}}),f},setStrong:function(t,e,n){var r=e+" Iterator",i=d(e),o=d(r);u(t,e,(function(t,e){v(this,{type:r,target:t,state:i(t),kind:e,last:void 0})}),(function(){for(var t=o(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),f(e)}}},7710:(t,e,n)=>{"use strict";var r=n(2109),i=n(7854),o=n(4705),a=n(1320),c=n(2423),s=n(408),u=n(5787),f=n(614),l=n(111),h=n(7293),p=n(7072),v=n(8003),d=n(9587);t.exports=function(t,e,n){var g=-1!==t.indexOf("Map"),y=-1!==t.indexOf("Weak"),m=g?"set":"add",b=i[t],k=b&&b.prototype,x=b,I={},S=function(t){var e=k[t];a(k,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(y&&!l(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return y&&!l(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(y&&!l(t))&&e.call(this,0===t?0:t)}:function(t,n){return e.call(this,0===t?0:t,n),this})};if(o(t,!f(b)||!(y||k.forEach&&!h((function(){(new b).entries().next()})))))x=n.getConstructor(e,t,g,m),c.enable();else if(o(t,!0)){var E=new x,O=E[m](y?{}:-0,1)!=E,w=h((function(){E.has(1)})),_=p((function(t){new b(t)})),C=!y&&h((function(){for(var t=new b,e=5;e--;)t[m](e,e);return!t.has(-0)}));_||((x=e((function(e,n){u(e,x,t);var r=d(new b,e,x);return null!=n&&s(n,r[m],{that:r,AS_ENTRIES:g}),r}))).prototype=k,k.constructor=x),(w||C)&&(S("delete"),S("has"),g&&S("get")),(C||O)&&S(m),y&&k.clear&&delete k.clear}return I[t]=x,r({global:!0,forced:x!=b},I),v(x,t),y||n.setStrong(x,t,g),x}},9920:(t,e,n)=>{var r=n(6656),i=n(3887),o=n(1236),a=n(3070);t.exports=function(t,e){for(var n=i(e),c=a.f,s=o.f,u=0;u<n.length;u++){var f=n[u];r(t,f)||c(t,f,s(e,f))}}},4964:(t,e,n)=>{var r=n(5112)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,"/./"[t](e)}catch(t){}}return!1}},8544:(t,e,n)=>{var r=n(7293);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},4994:(t,e,n)=>{"use strict";var r=n(3383).IteratorPrototype,i=n(30),o=n(9114),a=n(8003),c=n(7497),s=function(){return this};t.exports=function(t,e,n){var u=e+" Iterator";return t.prototype=i(r,{next:o(1,n)}),a(t,u,!1,!0),c[u]=s,t}},8880:(t,e,n)=>{var r=n(9781),i=n(3070),o=n(9114);t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},9114:t=>{t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},6135:(t,e,n)=>{"use strict";var r=n(4948),i=n(3070),o=n(9114);t.exports=function(t,e,n){var a=r(e);a in t?i.f(t,a,o(0,n)):t[a]=n}},654:(t,e,n)=>{"use strict";var r=n(2109),i=n(1913),o=n(6530),a=n(614),c=n(4994),s=n(9518),u=n(7674),f=n(8003),l=n(8880),h=n(1320),p=n(5112),v=n(7497),d=n(3383),g=o.PROPER,y=o.CONFIGURABLE,m=d.IteratorPrototype,b=d.BUGGY_SAFARI_ITERATORS,k=p("iterator"),x="keys",I="values",S="entries",E=function(){return this};t.exports=function(t,e,n,o,p,d,O){c(n,e,o);var w,_,C,M=function(t){if(t===p&&P)return P;if(!b&&t in N)return N[t];switch(t){case x:case I:case S:return function(){return new n(this,t)}}return function(){return new n(this)}},A=e+" Iterator",R=!1,N=t.prototype,T=N[k]||N["@@iterator"]||p&&N[p],P=!b&&T||M(p),D="Array"==e&&N.entries||T;if(D&&(w=s(D.call(new t)))!==Object.prototype&&w.next&&(i||s(w)===m||(u?u(w,m):a(w[k])||h(w,k,E)),f(w,A,!0,!0),i&&(v[A]=E)),g&&p==I&&T&&T.name!==I&&(!i&&y?l(N,"name",I):(R=!0,P=function(){return T.call(this)})),p)if(_={values:M(I),keys:d?P:M(x),entries:M(S)},O)for(C in _)(b||R||!(C in N))&&h(N,C,_[C]);else r({target:e,proto:!0,forced:b||R},_);return i&&!O||N[k]===P||h(N,k,P,{name:p}),v[e]=P,_}},7235:(t,e,n)=>{var r=n(857),i=n(6656),o=n(6061),a=n(3070).f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});i(e,t)||a(e,t,{value:o.f(t)})}},9781:(t,e,n)=>{var r=n(7293);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:(t,e,n)=>{var r=n(7854),i=n(111),o=r.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},8324:t=>{t.exports={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}},8509:(t,e,n)=>{var r=n(317)("span").classList,i=r&&r.constructor&&r.constructor.prototype;t.exports=i===Object.prototype?void 0:i},7871:t=>{t.exports="object"==typeof window},1528:(t,e,n)=>{var r=n(8113),i=n(7854);t.exports=/ipad|iphone|ipod/i.test(r)&&void 0!==i.Pebble},6833:(t,e,n)=>{var r=n(8113);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},5268:(t,e,n)=>{var r=n(4326),i=n(7854);t.exports="process"==r(i.process)},1036:(t,e,n)=>{var r=n(8113);t.exports=/web0s(?!.*chrome)/i.test(r)},8113:(t,e,n)=>{var r=n(5005);t.exports=r("navigator","userAgent")||""},7392:(t,e,n)=>{var r,i,o=n(7854),a=n(8113),c=o.process,s=o.Deno,u=c&&c.versions||s&&s.version,f=u&&u.v8;f?i=(r=f.split("."))[0]<4?1:r[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=r[1]),t.exports=i&&+i},748:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:(t,e,n)=>{var r=n(7854),i=n(1236).f,o=n(8880),a=n(1320),c=n(3505),s=n(9920),u=n(4705);t.exports=function(t,e){var n,f,l,h,p,v=t.target,d=t.global,g=t.stat;if(n=d?r:g?r[v]||c(v,{}):(r[v]||{}).prototype)for(f in e){if(h=e[f],l=t.noTargetGet?(p=i(n,f))&&p.value:n[f],!u(d?f:v+(g?".":"#")+f,t.forced)&&void 0!==l){if(typeof h==typeof l)continue;s(h,l)}(t.sham||l&&l.sham)&&o(h,"sham",!0),a(n,f,h,t)}}},7293:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},7007:(t,e,n)=>{"use strict";n(4916);var r=n(1320),i=n(2261),o=n(7293),a=n(5112),c=n(8880),s=a("species"),u=RegExp.prototype;t.exports=function(t,e,n,f){var l=a(t),h=!o((function(){var e={};return e[l]=function(){return 7},7!=""[t](e)})),p=h&&!o((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[s]=function(){return n},n.flags="",n[l]=/./[l]),n.exec=function(){return e=!0,null},n[l](""),!e}));if(!h||!p||n){var v=/./[l],d=e(l,""[t],(function(t,e,n,r,o){var a=e.exec;return a===i||a===u.exec?h&&!o?{done:!0,value:v.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}));r(String.prototype,t,d[0]),r(u,l,d[1])}f&&c(u[l],"sham",!0)}},6677:(t,e,n)=>{var r=n(7293);t.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},9974:(t,e,n)=>{var r=n(9662);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},7065:(t,e,n)=>{"use strict";var r=n(9662),i=n(111),o=[].slice,a={},c=function(t,e,n){if(!(e in a)){for(var r=[],i=0;i<e;i++)r[i]="a["+i+"]";a[e]=Function("C,a","return new C("+r.join(",")+")")}return a[e](t,n)};t.exports=Function.bind||function(t){var e=r(this),n=o.call(arguments,1),a=function(){var r=n.concat(o.call(arguments));return this instanceof a?c(e,r.length,r):e.apply(t,r)};return i(e.prototype)&&(a.prototype=e.prototype),a}},6530:(t,e,n)=>{var r=n(9781),i=n(6656),o=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,c=i(o,"name"),s=c&&"something"===function(){}.name,u=c&&(!r||r&&a(o,"name").configurable);t.exports={EXISTS:c,PROPER:s,CONFIGURABLE:u}},5005:(t,e,n)=>{var r=n(7854),i=n(614),o=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t]):r[t]&&r[t][e]}},1246:(t,e,n)=>{var r=n(648),i=n(8173),o=n(7497),a=n(5112)("iterator");t.exports=function(t){if(null!=t)return i(t,a)||i(t,"@@iterator")||o[r(t)]}},8554:(t,e,n)=>{var r=n(9662),i=n(9670),o=n(1246);t.exports=function(t,e){var n=arguments.length<2?o(t):e;if(r(n))return i(n.call(t));throw TypeError(String(t)+" is not iterable")}},8173:(t,e,n)=>{var r=n(9662);t.exports=function(t,e){var n=t[e];return null==n?void 0:r(n)}},647:(t,e,n)=>{var r=n(7908),i=Math.floor,o="".replace,a=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,s,u,f){var l=n+t.length,h=s.length,p=c;return void 0!==u&&(u=r(u),p=a),o.call(f,p,(function(r,o){var a;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,n);case"'":return e.slice(l);case"<":a=u[o.slice(1,-1)];break;default:var c=+o;if(0===c)return r;if(c>h){var f=i(c/10);return 0===f?r:f<=h?void 0===s[f-1]?o.charAt(1):s[f-1]+o.charAt(1):r}a=s[c-1]}return void 0===a?"":a}))}},7854:t=>{var e=function(t){return t&&t.Math==Math&&t};t.exports=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof global&&global)||function(){return this}()||Function("return this")()},6656:(t,e,n)=>{var r=n(7908),i={}.hasOwnProperty;t.exports=Object.hasOwn||function(t,e){return i.call(r(t),e)}},3501:t=>{t.exports={}},842:(t,e,n)=>{var r=n(7854);t.exports=function(t,e){var n=r.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}},490:(t,e,n)=>{var r=n(5005);t.exports=r("document","documentElement")},4664:(t,e,n)=>{var r=n(9781),i=n(7293),o=n(317);t.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},8361:(t,e,n)=>{var r=n(7293),i=n(4326),o="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?o.call(t,""):Object(t)}:Object},9587:(t,e,n)=>{var r=n(614),i=n(111),o=n(7674);t.exports=function(t,e,n){var a,c;return o&&r(a=e.constructor)&&a!==n&&i(c=a.prototype)&&c!==n.prototype&&o(t,c),t}},2788:(t,e,n)=>{var r=n(614),i=n(5465),o=Function.toString;r(i.inspectSource)||(i.inspectSource=function(t){return o.call(t)}),t.exports=i.inspectSource},2423:(t,e,n)=>{var r=n(2109),i=n(3501),o=n(111),a=n(6656),c=n(3070).f,s=n(8006),u=n(1156),f=n(9711),l=n(6677),h=!1,p=f("meta"),v=0,d=Object.isExtensible||function(){return!0},g=function(t){c(t,p,{value:{objectID:"O"+v++,weakData:{}}})},y=t.exports={enable:function(){y.enable=function(){},h=!0;var t=s.f,e=[].splice,n={};n[p]=1,t(n).length&&(s.f=function(n){for(var r=t(n),i=0,o=r.length;i<o;i++)if(r[i]===p){e.call(r,i,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:u.f}))},fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!a(t,p)){if(!d(t))return"F";if(!e)return"E";g(t)}return t[p].objectID},getWeakData:function(t,e){if(!a(t,p)){if(!d(t))return!0;if(!e)return!1;g(t)}return t[p].weakData},onFreeze:function(t){return l&&h&&d(t)&&!a(t,p)&&g(t),t}};i[p]=!0},9909:(t,e,n)=>{var r,i,o,a=n(8536),c=n(7854),s=n(111),u=n(8880),f=n(6656),l=n(5465),h=n(6200),p=n(3501),v="Object already initialized",d=c.WeakMap;if(a||l.state){var g=l.state||(l.state=new d),y=g.get,m=g.has,b=g.set;r=function(t,e){if(m.call(g,t))throw new TypeError(v);return e.facade=t,b.call(g,t,e),e},i=function(t){return y.call(g,t)||{}},o=function(t){return m.call(g,t)}}else{var k=h("state");p[k]=!0,r=function(t,e){if(f(t,k))throw new TypeError(v);return e.facade=t,u(t,k,e),e},i=function(t){return f(t,k)?t[k]:{}},o=function(t){return f(t,k)}}t.exports={set:r,get:i,has:o,enforce:function(t){return o(t)?i(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!s(e)||(n=i(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},7659:(t,e,n)=>{var r=n(5112),i=n(7497),o=r("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||a[o]===t)}},3157:(t,e,n)=>{var r=n(4326);t.exports=Array.isArray||function(t){return"Array"==r(t)}},614:t=>{t.exports=function(t){return"function"==typeof t}},4411:(t,e,n)=>{var r=n(7293),i=n(614),o=n(648),a=n(5005),c=n(2788),s=[],u=a("Reflect","construct"),f=/^\s*(?:class|function)\b/,l=f.exec,h=!f.exec((function(){})),p=function(t){if(!i(t))return!1;try{return u(Object,s,t),!0}catch(t){return!1}};t.exports=!u||r((function(){var t;return p(p.call)||!p(Object)||!p((function(){t=!0}))||t}))?function(t){if(!i(t))return!1;switch(o(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return h||!!l.call(f,c(t))}:p},4705:(t,e,n)=>{var r=n(7293),i=n(614),o=/#|\.prototype\./,a=function(t,e){var n=s[c(t)];return n==f||n!=u&&(i(e)?r(e):!!e)},c=a.normalize=function(t){return String(t).replace(o,".").toLowerCase()},s=a.data={},u=a.NATIVE="N",f=a.POLYFILL="P";t.exports=a},8730:(t,e,n)=>{var r=n(111),i=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&i(t)===t}},111:(t,e,n)=>{var r=n(614);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},1913:t=>{t.exports=!1},7850:(t,e,n)=>{var r=n(111),i=n(4326),o=n(5112)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},2190:(t,e,n)=>{var r=n(614),i=n(5005),o=n(3307);t.exports=o?function(t){return"symbol"==typeof t}:function(t){var e=i("Symbol");return r(e)&&Object(t)instanceof e}},408:(t,e,n)=>{var r=n(9670),i=n(7659),o=n(7466),a=n(9974),c=n(8554),s=n(1246),u=n(9212),f=function(t,e){this.stopped=t,this.result=e};t.exports=function(t,e,n){var l,h,p,v,d,g,y,m=n&&n.that,b=!(!n||!n.AS_ENTRIES),k=!(!n||!n.IS_ITERATOR),x=!(!n||!n.INTERRUPTED),I=a(e,m,1+b+x),S=function(t){return l&&u(l,"normal",t),new f(!0,t)},E=function(t){return b?(r(t),x?I(t[0],t[1],S):I(t[0],t[1])):x?I(t,S):I(t)};if(k)l=t;else{if(!(h=s(t)))throw TypeError(String(t)+" is not iterable");if(i(h)){for(p=0,v=o(t.length);v>p;p++)if((d=E(t[p]))&&d instanceof f)return d;return new f(!1)}l=c(t,h)}for(g=l.next;!(y=g.call(l)).done;){try{d=E(y.value)}catch(t){u(l,"throw",t)}if("object"==typeof d&&d&&d instanceof f)return d}return new f(!1)}},9212:(t,e,n)=>{var r=n(9670),i=n(8173);t.exports=function(t,e,n){var o,a;r(t);try{if(!(o=i(t,"return"))){if("throw"===e)throw n;return n}o=o.call(t)}catch(t){a=!0,o=t}if("throw"===e)throw n;if(a)throw o;return r(o),n}},3383:(t,e,n)=>{"use strict";var r,i,o,a=n(7293),c=n(614),s=n(30),u=n(9518),f=n(1320),l=n(5112),h=n(1913),p=l("iterator"),v=!1;[].keys&&("next"in(o=[].keys())?(i=u(u(o)))!==Object.prototype&&(r=i):v=!0),null==r||a((function(){var t={};return r[p].call(t)!==t}))?r={}:h&&(r=s(r)),c(r[p])||f(r,p,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:v}},7497:t=>{t.exports={}},5948:(t,e,n)=>{var r,i,o,a,c,s,u,f,l=n(7854),h=n(1236).f,p=n(261).set,v=n(6833),d=n(1528),g=n(1036),y=n(5268),m=l.MutationObserver||l.WebKitMutationObserver,b=l.document,k=l.process,x=l.Promise,I=h(l,"queueMicrotask"),S=I&&I.value;S||(r=function(){var t,e;for(y&&(t=k.domain)&&t.exit();i;){e=i.fn,i=i.next;try{e()}catch(t){throw i?a():o=void 0,t}}o=void 0,t&&t.enter()},v||y||g||!m||!b?!d&&x&&x.resolve?((u=x.resolve(void 0)).constructor=x,f=u.then,a=function(){f.call(u,r)}):a=y?function(){k.nextTick(r)}:function(){p.call(l,r)}:(c=!0,s=b.createTextNode(""),new m(r).observe(s,{characterData:!0}),a=function(){s.data=c=!c})),t.exports=S||function(t){var e={fn:t,next:void 0};o&&(o.next=e),i||(i=e,a()),o=e}},3366:(t,e,n)=>{var r=n(7854);t.exports=r.Promise},133:(t,e,n)=>{var r=n(7392),i=n(7293);t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},8536:(t,e,n)=>{var r=n(7854),i=n(614),o=n(2788),a=r.WeakMap;t.exports=i(a)&&/native code/.test(o(a))},8523:(t,e,n)=>{"use strict";var r=n(9662),i=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new i(t)}},3929:(t,e,n)=>{var r=n(7850);t.exports=function(t){if(r(t))throw TypeError("The method doesn't accept regular expressions");return t}},30:(t,e,n)=>{var r,i=n(9670),o=n(6048),a=n(748),c=n(3501),s=n(490),u=n(317),f=n(6200)("IE_PROTO"),l=function(){},h=function(t){return"<script>"+t+"<\/script>"},p=function(t){t.write(h("")),t.close();var e=t.parentWindow.Object;return t=null,e},v=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e;v="undefined"!=typeof document?document.domain&&r?p(r):((e=u("iframe")).style.display="none",s.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(h("document.F=Object")),t.close(),t.F):p(r);for(var n=a.length;n--;)delete v.prototype[a[n]];return v()};c[f]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(l.prototype=i(t),n=new l,l.prototype=null,n[f]=t):n=v(),void 0===e?n:o(n,e)}},6048:(t,e,n)=>{var r=n(9781),i=n(3070),o=n(9670),a=n(1956);t.exports=r?Object.defineProperties:function(t,e){o(t);for(var n,r=a(e),c=r.length,s=0;c>s;)i.f(t,n=r[s++],e[n]);return t}},3070:(t,e,n)=>{var r=n(9781),i=n(4664),o=n(9670),a=n(4948),c=Object.defineProperty;e.f=r?c:function(t,e,n){if(o(t),e=a(e),o(n),i)try{return c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},1236:(t,e,n)=>{var r=n(9781),i=n(5296),o=n(9114),a=n(5656),c=n(4948),s=n(6656),u=n(4664),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=a(t),e=c(e),u)try{return f(t,e)}catch(t){}if(s(t,e))return o(!i.f.call(t,e),t[e])}},1156:(t,e,n)=>{var r=n(5656),i=n(8006).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?function(t){try{return i(t)}catch(t){return a.slice()}}(t):i(r(t))}},8006:(t,e,n)=>{var r=n(6324),i=n(748).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},5181:(t,e)=>{e.f=Object.getOwnPropertySymbols},9518:(t,e,n)=>{var r=n(6656),i=n(614),o=n(7908),a=n(6200),c=n(8544),s=a("IE_PROTO"),u=Object.prototype;t.exports=c?Object.getPrototypeOf:function(t){var e=o(t);if(r(e,s))return e[s];var n=e.constructor;return i(n)&&e instanceof n?n.prototype:e instanceof Object?u:null}},6324:(t,e,n)=>{var r=n(6656),i=n(5656),o=n(1318).indexOf,a=n(3501);t.exports=function(t,e){var n,c=i(t),s=0,u=[];for(n in c)!r(a,n)&&r(c,n)&&u.push(n);for(;e.length>s;)r(c,n=e[s++])&&(~o(u,n)||u.push(n));return u}},1956:(t,e,n)=>{var r=n(6324),i=n(748);t.exports=Object.keys||function(t){return r(t,i)}},5296:(t,e)=>{"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);e.f=i?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},7674:(t,e,n)=>{var r=n(9670),i=n(6077);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,o){return r(n),i(o),e?t.call(n,o):n.__proto__=o,n}}():void 0)},4699:(t,e,n)=>{var r=n(9781),i=n(1956),o=n(5656),a=n(5296).f,c=function(t){return function(e){for(var n,c=o(e),s=i(c),u=s.length,f=0,l=[];u>f;)n=s[f++],r&&!a.call(c,n)||l.push(t?[n,c[n]]:c[n]);return l}};t.exports={entries:c(!0),values:c(!1)}},288:(t,e,n)=>{"use strict";var r=n(1694),i=n(648);t.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},2140:(t,e,n)=>{var r=n(614),i=n(111);t.exports=function(t,e){var n,o;if("string"===e&&r(n=t.toString)&&!i(o=n.call(t)))return o;if(r(n=t.valueOf)&&!i(o=n.call(t)))return o;if("string"!==e&&r(n=t.toString)&&!i(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},3887:(t,e,n)=>{var r=n(5005),i=n(8006),o=n(5181),a=n(9670);t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(a(t)),n=o.f;return n?e.concat(n(t)):e}},857:(t,e,n)=>{var r=n(7854);t.exports=r},2534:t=>{t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},9478:(t,e,n)=>{var r=n(9670),i=n(111),o=n(8523);t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},2248:(t,e,n)=>{var r=n(1320);t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},1320:(t,e,n)=>{var r=n(7854),i=n(614),o=n(6656),a=n(8880),c=n(3505),s=n(2788),u=n(9909),f=n(6530).CONFIGURABLE,l=u.get,h=u.enforce,p=String(String).split("String");(t.exports=function(t,e,n,s){var u,l=!!s&&!!s.unsafe,v=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,g=s&&void 0!==s.name?s.name:e;i(n)&&("Symbol("===String(g).slice(0,7)&&(g="["+String(g).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!o(n,"name")||f&&n.name!==g)&&a(n,"name",g),(u=h(n)).source||(u.source=p.join("string"==typeof g?g:""))),t!==r?(l?!d&&t[e]&&(v=!0):delete t[e],v?t[e]=n:a(t,e,n)):v?t[e]=n:c(e,n)})(Function.prototype,"toString",(function(){return i(this)&&l(this).source||s(this)}))},7651:(t,e,n)=>{var r=n(9670),i=n(614),o=n(4326),a=n(2261);t.exports=function(t,e){var n=t.exec;if(i(n)){var c=n.call(t,e);return null!==c&&r(c),c}if("RegExp"===o(t))return a.call(t,e);throw TypeError("RegExp#exec called on incompatible receiver")}},2261:(t,e,n)=>{"use strict";var r,i,o=n(1340),a=n(7066),c=n(2999),s=n(2309),u=n(30),f=n(9909).get,l=n(9441),h=n(7168),p=RegExp.prototype.exec,v=s("native-string-replace",String.prototype.replace),d=p,g=(r=/a/,i=/b*/g,p.call(r,"a"),p.call(i,"a"),0!==r.lastIndex||0!==i.lastIndex),y=c.UNSUPPORTED_Y||c.BROKEN_CARET,m=void 0!==/()??/.exec("")[1];(g||m||y||l||h)&&(d=function(t){var e,n,r,i,c,s,l,h=this,b=f(h),k=o(t),x=b.raw;if(x)return x.lastIndex=h.lastIndex,e=d.call(x,k),h.lastIndex=x.lastIndex,e;var I=b.groups,S=y&&h.sticky,E=a.call(h),O=h.source,w=0,_=k;if(S&&(-1===(E=E.replace("y","")).indexOf("g")&&(E+="g"),_=k.slice(h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\n"!==k.charAt(h.lastIndex-1))&&(O="(?: "+O+")",_=" "+_,w++),n=new RegExp("^(?:"+O+")",E)),m&&(n=new RegExp("^"+O+"$(?!\\s)",E)),g&&(r=h.lastIndex),i=p.call(S?n:h,_),S?i?(i.input=i.input.slice(w),i[0]=i[0].slice(w),i.index=h.lastIndex,h.lastIndex+=i[0].length):h.lastIndex=0:g&&i&&(h.lastIndex=h.global?i.index+i[0].length:r),m&&i&&i.length>1&&v.call(i[0],n,(function(){for(c=1;c<arguments.length-2;c++)void 0===arguments[c]&&(i[c]=void 0)})),i&&I)for(i.groups=s=u(null),c=0;c<I.length;c++)s[(l=I[c])[0]]=i[l[1]];return i}),t.exports=d},7066:(t,e,n)=>{"use strict";var r=n(9670);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},2999:(t,e,n)=>{var r=n(7293),i=n(7854).RegExp;e.UNSUPPORTED_Y=r((function(){var t=i("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),e.BROKEN_CARET=r((function(){var t=i("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},9441:(t,e,n)=>{var r=n(7293),i=n(7854).RegExp;t.exports=r((function(){var t=i(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},7168:(t,e,n)=>{var r=n(7293),i=n(7854).RegExp;t.exports=r((function(){var t=i("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},4488:t=>{t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},3505:(t,e,n)=>{var r=n(7854);t.exports=function(t,e){try{Object.defineProperty(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},6340:(t,e,n)=>{"use strict";var r=n(5005),i=n(3070),o=n(5112),a=n(9781),c=o("species");t.exports=function(t){var e=r(t),n=i.f;a&&e&&!e[c]&&n(e,c,{configurable:!0,get:function(){return this}})}},8003:(t,e,n)=>{var r=n(3070).f,i=n(6656),o=n(5112)("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},6200:(t,e,n)=>{var r=n(2309),i=n(9711),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},5465:(t,e,n)=>{var r=n(7854),i=n(3505),o="__core-js_shared__",a=r[o]||i(o,{});t.exports=a},2309:(t,e,n)=>{var r=n(1913),i=n(5465);(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.18.1",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},6707:(t,e,n)=>{var r=n(9670),i=n(9483),o=n(5112)("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||null==(n=r(a)[o])?e:i(n)}},8710:(t,e,n)=>{var r=n(9958),i=n(1340),o=n(4488),a=function(t){return function(e,n){var a,c,s=i(o(e)),u=r(n),f=s.length;return u<0||u>=f?t?"":void 0:(a=s.charCodeAt(u))<55296||a>56319||u+1===f||(c=s.charCodeAt(u+1))<56320||c>57343?t?s.charAt(u):a:t?s.slice(u,u+2):c-56320+(a-55296<<10)+65536}};t.exports={codeAt:a(!1),charAt:a(!0)}},3111:(t,e,n)=>{var r=n(4488),i=n(1340),o="["+n(1361)+"]",a=RegExp("^"+o+o+"*"),c=RegExp(o+o+"*$"),s=function(t){return function(e){var n=i(r(e));return 1&t&&(n=n.replace(a,"")),2&t&&(n=n.replace(c,"")),n}};t.exports={start:s(1),end:s(2),trim:s(3)}},261:(t,e,n)=>{var r,i,o,a,c=n(7854),s=n(614),u=n(7293),f=n(9974),l=n(490),h=n(317),p=n(6833),v=n(5268),d=c.setImmediate,g=c.clearImmediate,y=c.process,m=c.MessageChannel,b=c.Dispatch,k=0,x={};try{r=c.location}catch(t){}var I=function(t){if(x.hasOwnProperty(t)){var e=x[t];delete x[t],e()}},S=function(t){return function(){I(t)}},E=function(t){I(t.data)},O=function(t){c.postMessage(String(t),r.protocol+"//"+r.host)};d&&g||(d=function(t){for(var e=[],n=arguments.length,r=1;n>r;)e.push(arguments[r++]);return x[++k]=function(){(s(t)?t:Function(t)).apply(void 0,e)},i(k),k},g=function(t){delete x[t]},v?i=function(t){y.nextTick(S(t))}:b&&b.now?i=function(t){b.now(S(t))}:m&&!p?(a=(o=new m).port2,o.port1.onmessage=E,i=f(a.postMessage,a,1)):c.addEventListener&&s(c.postMessage)&&!c.importScripts&&r&&"file:"!==r.protocol&&!u(O)?(i=O,c.addEventListener("message",E,!1)):i="onreadystatechange"in h("script")?function(t){l.appendChild(h("script")).onreadystatechange=function(){l.removeChild(this),I(t)}}:function(t){setTimeout(S(t),0)}),t.exports={set:d,clear:g}},1400:(t,e,n)=>{var r=n(9958),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},5656:(t,e,n)=>{var r=n(8361),i=n(4488);t.exports=function(t){return r(i(t))}},9958:t=>{var e=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:e)(t)}},7466:(t,e,n)=>{var r=n(9958),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},7908:(t,e,n)=>{var r=n(4488);t.exports=function(t){return Object(r(t))}},7593:(t,e,n)=>{var r=n(111),i=n(2190),o=n(8173),a=n(2140),c=n(5112)("toPrimitive");t.exports=function(t,e){if(!r(t)||i(t))return t;var n,s=o(t,c);if(s){if(void 0===e&&(e="default"),n=s.call(t,e),!r(n)||i(n))return n;throw TypeError("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},4948:(t,e,n)=>{var r=n(7593),i=n(2190);t.exports=function(t){var e=r(t,"string");return i(e)?e:String(e)}},1694:(t,e,n)=>{var r={};r[n(5112)("toStringTag")]="z",t.exports="[object z]"===String(r)},1340:(t,e,n)=>{var r=n(648);t.exports=function(t){if("Symbol"===r(t))throw TypeError("Cannot convert a Symbol value to a string");return String(t)}},6330:t=>{t.exports=function(t){try{return String(t)}catch(t){return"Object"}}},9711:t=>{var e=0,n=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++e+n).toString(36)}},3307:(t,e,n)=>{var r=n(133);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},6061:(t,e,n)=>{var r=n(5112);e.f=r},5112:(t,e,n)=>{var r=n(7854),i=n(2309),o=n(6656),a=n(9711),c=n(133),s=n(3307),u=i("wks"),f=r.Symbol,l=s?f:f&&f.withoutSetter||a;t.exports=function(t){return o(u,t)&&(c||"string"==typeof u[t])||(c&&o(f,t)?u[t]=f[t]:u[t]=l("Symbol."+t)),u[t]}},1361:t=>{t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},2222:(t,e,n)=>{"use strict";var r=n(2109),i=n(7293),o=n(3157),a=n(111),c=n(7908),s=n(7466),u=n(6135),f=n(5417),l=n(1194),h=n(5112),p=n(7392),v=h("isConcatSpreadable"),d=9007199254740991,g="Maximum allowed index exceeded",y=p>=51||!i((function(){var t=[];return t[v]=!1,t.concat()[0]!==t})),m=l("concat"),b=function(t){if(!a(t))return!1;var e=t[v];return void 0!==e?!!e:o(t)};r({target:"Array",proto:!0,forced:!y||!m},{concat:function(t){var e,n,r,i,o,a=c(this),l=f(a,0),h=0;for(e=-1,r=arguments.length;e<r;e++)if(b(o=-1===e?a:arguments[e])){if(h+(i=s(o.length))>d)throw TypeError(g);for(n=0;n<i;n++,h++)n in o&&u(l,h,o[n])}else{if(h>=d)throw TypeError(g);u(l,h++,o)}return l.length=h,l}})},7327:(t,e,n)=>{"use strict";var r=n(2109),i=n(2092).filter;r({target:"Array",proto:!0,forced:!n(1194)("filter")},{filter:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},1038:(t,e,n)=>{var r=n(2109),i=n(8457);r({target:"Array",stat:!0,forced:!n(7072)((function(t){Array.from(t)}))},{from:i})},6699:(t,e,n)=>{"use strict";var r=n(2109),i=n(1318).includes,o=n(1223);r({target:"Array",proto:!0},{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o("includes")},6992:(t,e,n)=>{"use strict";var r=n(5656),i=n(1223),o=n(7497),a=n(9909),c=n(654),s="Array Iterator",u=a.set,f=a.getterFor(s);t.exports=c(Array,"Array",(function(t,e){u(this,{type:s,target:r(t),index:0,kind:e})}),(function(){var t=f(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},7042:(t,e,n)=>{"use strict";var r=n(2109),i=n(3157),o=n(4411),a=n(111),c=n(1400),s=n(7466),u=n(5656),f=n(6135),l=n(5112),h=n(1194)("slice"),p=l("species"),v=[].slice,d=Math.max;r({target:"Array",proto:!0,forced:!h},{slice:function(t,e){var n,r,l,h=u(this),g=s(h.length),y=c(t,g),m=c(void 0===e?g:e,g);if(i(h)&&(n=h.constructor,(o(n)&&(n===Array||i(n.prototype))||a(n)&&null===(n=n[p]))&&(n=void 0),n===Array||void 0===n))return v.call(h,y,m);for(r=new(void 0===n?Array:n)(d(m-y,0)),l=0;y<m;y++,l++)y in h&&f(r,l,h[y]);return r.length=l,r}})},8309:(t,e,n)=>{var r=n(9781),i=n(6530).EXISTS,o=n(3070).f,a=Function.prototype,c=a.toString,s=/^\s*function ([^ (]*)/;r&&!i&&o(a,"name",{configurable:!0,get:function(){try{return c.call(this).match(s)[1]}catch(t){return""}}})},1532:(t,e,n)=>{"use strict";var r=n(7710),i=n(5631);t.exports=r("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),i)},3689:(t,e,n)=>{var r=n(2109),i=Math.ceil,o=Math.floor;r({target:"Math",stat:!0},{trunc:function(t){return(t>0?o:i)(t)}})},9653:(t,e,n)=>{"use strict";var r=n(9781),i=n(7854),o=n(4705),a=n(1320),c=n(6656),s=n(4326),u=n(9587),f=n(2190),l=n(7593),h=n(7293),p=n(30),v=n(8006).f,d=n(1236).f,g=n(3070).f,y=n(3111).trim,m="Number",b=i.Number,k=b.prototype,x=s(p(k))==m,I=function(t){if(f(t))throw TypeError("Cannot convert a Symbol value to a number");var e,n,r,i,o,a,c,s,u=l(t,"number");if("string"==typeof u&&u.length>2)if(43===(e=(u=y(u)).charCodeAt(0))||45===e){if(88===(n=u.charCodeAt(2))||120===n)return NaN}else if(48===e){switch(u.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+u}for(a=(o=u.slice(2)).length,c=0;c<a;c++)if((s=o.charCodeAt(c))<48||s>i)return NaN;return parseInt(o,r)}return+u};if(o(m,!b(" 0o1")||!b("0b1")||b("+0x1"))){for(var S,E=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof E&&(x?h((function(){k.valueOf.call(n)})):s(n)!=m)?u(new b(I(e)),n,E):I(e)},O=r?v(b):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),w=0;O.length>w;w++)c(b,S=O[w])&&!c(E,S)&&g(E,S,d(b,S));E.prototype=k,k.constructor=E,a(i,m,E)}},3161:(t,e,n)=>{n(2109)({target:"Number",stat:!0},{isInteger:n(8730)})},9720:(t,e,n)=>{var r=n(2109),i=n(4699).entries;r({target:"Object",stat:!0},{entries:function(t){return i(t)}})},5003:(t,e,n)=>{var r=n(2109),i=n(7293),o=n(5656),a=n(1236).f,c=n(9781),s=i((function(){a(1)}));r({target:"Object",stat:!0,forced:!c||s,sham:!c},{getOwnPropertyDescriptor:function(t,e){return a(o(t),e)}})},9337:(t,e,n)=>{var r=n(2109),i=n(9781),o=n(3887),a=n(5656),c=n(1236),s=n(6135);r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){for(var e,n,r=a(t),i=c.f,u=o(r),f={},l=0;u.length>l;)void 0!==(n=i(r,e=u[l++]))&&s(f,e,n);return f}})},7941:(t,e,n)=>{var r=n(2109),i=n(7908),o=n(1956);r({target:"Object",stat:!0,forced:n(7293)((function(){o(1)}))},{keys:function(t){return o(i(t))}})},1539:(t,e,n)=>{var r=n(1694),i=n(1320),o=n(288);r||i(Object.prototype,"toString",o,{unsafe:!0})},2479:(t,e,n)=>{var r=n(2109),i=n(4699).values;r({target:"Object",stat:!0},{values:function(t){return i(t)}})},7727:(t,e,n)=>{"use strict";var r=n(2109),i=n(1913),o=n(3366),a=n(7293),c=n(5005),s=n(614),u=n(6707),f=n(9478),l=n(1320);if(r({target:"Promise",proto:!0,real:!0,forced:!!o&&a((function(){o.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=u(this,c("Promise")),n=s(t);return this.then(n?function(n){return f(e,t()).then((function(){return n}))}:t,n?function(n){return f(e,t()).then((function(){throw n}))}:t)}}),!i&&s(o)){var h=c("Promise").prototype.finally;o.prototype.finally!==h&&l(o.prototype,"finally",h,{unsafe:!0})}},8674:(t,e,n)=>{"use strict";var r,i,o,a,c=n(2109),s=n(1913),u=n(7854),f=n(5005),l=n(3366),h=n(1320),p=n(2248),v=n(7674),d=n(8003),g=n(6340),y=n(9662),m=n(614),b=n(111),k=n(5787),x=n(2788),I=n(408),S=n(7072),E=n(6707),O=n(261).set,w=n(5948),_=n(9478),C=n(842),M=n(8523),A=n(2534),R=n(9909),N=n(4705),T=n(5112),P=n(7871),D=n(5268),j=n(7392),L=T("species"),F="Promise",B=R.get,G=R.set,V=R.getterFor(F),H=l&&l.prototype,U=l,K=H,W=u.TypeError,z=u.document,Y=u.process,q=M.f,$=q,Q=!!(z&&z.createEvent&&u.dispatchEvent),X=m(u.PromiseRejectionEvent),Z="unhandledrejection",J=!1,tt=N(F,(function(){var t=x(U),e=t!==String(U);if(!e&&66===j)return!0;if(s&&!K.finally)return!0;if(j>=51&&/native code/.test(t))return!1;var n=new U((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};return(n.constructor={})[L]=r,!(J=n.then((function(){}))instanceof r)||!e&&P&&!X})),et=tt||!S((function(t){U.all(t).catch((function(){}))})),nt=function(t){var e;return!(!b(t)||!m(e=t.then))&&e},rt=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;w((function(){for(var r=t.value,i=1==t.state,o=0;n.length>o;){var a,c,s,u=n[o++],f=i?u.ok:u.fail,l=u.resolve,h=u.reject,p=u.domain;try{f?(i||(2===t.rejection&&ct(t),t.rejection=1),!0===f?a=r:(p&&p.enter(),a=f(r),p&&(p.exit(),s=!0)),a===u.promise?h(W("Promise-chain cycle")):(c=nt(a))?c.call(a,l,h):l(a)):h(r)}catch(t){p&&!s&&p.exit(),h(t)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&ot(t)}))}},it=function(t,e,n){var r,i;Q?((r=z.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),u.dispatchEvent(r)):r={promise:e,reason:n},!X&&(i=u["on"+t])?i(r):t===Z&&C("Unhandled promise rejection",n)},ot=function(t){O.call(u,(function(){var e,n=t.facade,r=t.value;if(at(t)&&(e=A((function(){D?Y.emit("unhandledRejection",r,n):it(Z,n,r)})),t.rejection=D||at(t)?2:1,e.error))throw e.value}))},at=function(t){return 1!==t.rejection&&!t.parent},ct=function(t){O.call(u,(function(){var e=t.facade;D?Y.emit("rejectionHandled",e):it("rejectionhandled",e,t.value)}))},st=function(t,e,n){return function(r){t(e,r,n)}},ut=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,rt(t,!0))},ft=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw W("Promise can't be resolved itself");var r=nt(e);r?w((function(){var n={done:!1};try{r.call(e,st(ft,n,t),st(ut,n,t))}catch(e){ut(n,e,t)}})):(t.value=e,t.state=1,rt(t,!1))}catch(e){ut({done:!1},e,t)}}};if(tt&&(K=(U=function(t){k(this,U,F),y(t),r.call(this);var e=B(this);try{t(st(ft,e),st(ut,e))}catch(t){ut(e,t)}}).prototype,(r=function(t){G(this,{type:F,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=p(K,{then:function(t,e){var n=V(this),r=q(E(this,U));return r.ok=!m(t)||t,r.fail=m(e)&&e,r.domain=D?Y.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&rt(n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r,e=B(t);this.promise=t,this.resolve=st(ft,e),this.reject=st(ut,e)},M.f=q=function(t){return t===U||t===o?new i(t):$(t)},!s&&m(l)&&H!==Object.prototype)){a=H.then,J||(h(H,"then",(function(t,e){var n=this;return new U((function(t,e){a.call(n,t,e)})).then(t,e)}),{unsafe:!0}),h(H,"catch",K.catch,{unsafe:!0}));try{delete H.constructor}catch(t){}v&&v(H,K)}c({global:!0,wrap:!0,forced:tt},{Promise:U}),d(U,F,!1,!0),g(F),o=f(F),c({target:F,stat:!0,forced:tt},{reject:function(t){var e=q(this);return e.reject.call(void 0,t),e.promise}}),c({target:F,stat:!0,forced:s||tt},{resolve:function(t){return _(s&&this===o?U:this,t)}}),c({target:F,stat:!0,forced:et},{all:function(t){var e=this,n=q(e),r=n.resolve,i=n.reject,o=A((function(){var n=y(e.resolve),o=[],a=0,c=1;I(t,(function(t){var s=a++,u=!1;o.push(void 0),c++,n.call(e,t).then((function(t){u||(u=!0,o[s]=t,--c||r(o))}),i)})),--c||r(o)}));return o.error&&i(o.value),n.promise},race:function(t){var e=this,n=q(e),r=n.reject,i=A((function(){var i=y(e.resolve);I(t,(function(t){i.call(e,t).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}})},2419:(t,e,n)=>{var r=n(2109),i=n(5005),o=n(9483),a=n(9670),c=n(111),s=n(30),u=n(7065),f=n(7293),l=i("Reflect","construct"),h=f((function(){function t(){}return!(l((function(){}),[],t)instanceof t)})),p=!f((function(){l((function(){}))})),v=h||p;r({target:"Reflect",stat:!0,forced:v,sham:v},{construct:function(t,e){o(t),a(e);var n=arguments.length<3?t:o(arguments[2]);if(p&&!h)return l(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return r.push.apply(r,e),new(u.apply(t,r))}var i=n.prototype,f=s(c(i)?i:Object.prototype),v=Function.apply.call(t,f,e);return c(v)?v:f}})},4603:(t,e,n)=>{var r=n(9781),i=n(7854),o=n(4705),a=n(9587),c=n(8880),s=n(3070).f,u=n(8006).f,f=n(7850),l=n(1340),h=n(7066),p=n(2999),v=n(1320),d=n(7293),g=n(6656),y=n(9909).enforce,m=n(6340),b=n(5112),k=n(9441),x=n(7168),I=b("match"),S=i.RegExp,E=S.prototype,O=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,w=/a/g,_=/a/g,C=new S(w)!==w,M=p.UNSUPPORTED_Y;if(o("RegExp",r&&(!C||M||k||x||d((function(){return _[I]=!1,S(w)!=w||S(_)==_||"/a/i"!=S(w,"i")}))))){for(var A=function(t,e){var n,r,i,o,s,u,p=this instanceof A,v=f(t),d=void 0===e,m=[],b=t;if(!p&&v&&d&&t.constructor===A)return t;if((v||t instanceof A)&&(t=t.source,d&&(e="flags"in b?b.flags:h.call(b))),t=void 0===t?"":l(t),e=void 0===e?"":l(e),b=t,k&&"dotAll"in w&&(r=!!e&&e.indexOf("s")>-1)&&(e=e.replace(/s/g,"")),n=e,M&&"sticky"in w&&(i=!!e&&e.indexOf("y")>-1)&&(e=e.replace(/y/g,"")),x&&(o=function(t){for(var e,n=t.length,r=0,i="",o=[],a={},c=!1,s=!1,u=0,f="";r<=n;r++){if("\\"===(e=t.charAt(r)))e+=t.charAt(++r);else if("]"===e)c=!1;else if(!c)switch(!0){case"["===e:c=!0;break;case"("===e:O.test(t.slice(r+1))&&(r+=2,s=!0),i+=e,u++;continue;case">"===e&&s:if(""===f||g(a,f))throw new SyntaxError("Invalid capture group name");a[f]=!0,o.push([f,u]),s=!1,f="";continue}s?f+=e:i+=e}return[i,o]}(t),t=o[0],m=o[1]),s=a(S(t,e),p?this:E,A),(r||i||m.length)&&(u=y(s),r&&(u.dotAll=!0,u.raw=A(function(t){for(var e,n=t.length,r=0,i="",o=!1;r<=n;r++)"\\"!==(e=t.charAt(r))?o||"."!==e?("["===e?o=!0:"]"===e&&(o=!1),i+=e):i+="[\\s\\S]":i+=e+t.charAt(++r);return i}(t),n)),i&&(u.sticky=!0),m.length&&(u.groups=m)),t!==b)try{c(s,"source",""===b?"(?:)":b)}catch(t){}return s},R=function(t){t in A||s(A,t,{configurable:!0,get:function(){return S[t]},set:function(e){S[t]=e}})},N=u(S),T=0;N.length>T;)R(N[T++]);E.constructor=A,A.prototype=E,v(i,"RegExp",A)}m("RegExp")},4916:(t,e,n)=>{"use strict";var r=n(2109),i=n(2261);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},9714:(t,e,n)=>{"use strict";var r=n(6530).PROPER,i=n(1320),o=n(9670),a=n(1340),c=n(7293),s=n(7066),u="toString",f=RegExp.prototype,l=f.toString,h=c((function(){return"/a/b"!=l.call({source:"a",flags:"b"})})),p=r&&l.name!=u;(h||p)&&i(RegExp.prototype,u,(function(){var t=o(this),e=a(t.source),n=t.flags;return"/"+e+"/"+a(void 0===n&&t instanceof RegExp&&!("flags"in f)?s.call(t):n)}),{unsafe:!0})},7852:(t,e,n)=>{"use strict";var r,i=n(2109),o=n(1236).f,a=n(7466),c=n(1340),s=n(3929),u=n(4488),f=n(4964),l=n(1913),h="".endsWith,p=Math.min,v=f("endsWith");i({target:"String",proto:!0,forced:!(!l&&!v&&(r=o(String.prototype,"endsWith"),r&&!r.writable)||v)},{endsWith:function(t){var e=c(u(this));s(t);var n=arguments.length>1?arguments[1]:void 0,r=a(e.length),i=void 0===n?r:p(a(n),r),o=c(t);return h?h.call(e,o,i):e.slice(i-o.length,i)===o}})},2023:(t,e,n)=>{"use strict";var r=n(2109),i=n(3929),o=n(4488),a=n(1340);r({target:"String",proto:!0,forced:!n(4964)("includes")},{includes:function(t){return!!~a(o(this)).indexOf(a(i(t)),arguments.length>1?arguments[1]:void 0)}})},8783:(t,e,n)=>{"use strict";var r=n(8710).charAt,i=n(1340),o=n(9909),a=n(654),c="String Iterator",s=o.set,u=o.getterFor(c);a(String,"String",(function(t){s(this,{type:c,string:i(t),index:0})}),(function(){var t,e=u(this),n=e.string,i=e.index;return i>=n.length?{value:void 0,done:!0}:(t=r(n,i),e.index+=t.length,{value:t,done:!1})}))},4723:(t,e,n)=>{"use strict";var r=n(7007),i=n(9670),o=n(7466),a=n(1340),c=n(4488),s=n(8173),u=n(1530),f=n(7651);r("match",(function(t,e,n){return[function(e){var n=c(this),r=null==e?void 0:s(e,t);return r?r.call(e,n):new RegExp(e)[t](a(n))},function(t){var r=i(this),c=a(t),s=n(e,r,c);if(s.done)return s.value;if(!r.global)return f(r,c);var l=r.unicode;r.lastIndex=0;for(var h,p=[],v=0;null!==(h=f(r,c));){var d=a(h[0]);p[v]=d,""===d&&(r.lastIndex=u(c,o(r.lastIndex),l)),v++}return 0===v?null:p}]}))},5306:(t,e,n)=>{"use strict";var r=n(7007),i=n(7293),o=n(9670),a=n(614),c=n(9958),s=n(7466),u=n(1340),f=n(4488),l=n(1530),h=n(8173),p=n(647),v=n(7651),d=n(5112)("replace"),g=Math.max,y=Math.min,m="$0"==="a".replace(/./,"$0"),b=!!/./[d]&&""===/./[d]("a","$0");r("replace",(function(t,e,n){var r=b?"$":"$0";return[function(t,n){var r=f(this),i=null==t?void 0:h(t,d);return i?i.call(t,r,n):e.call(u(r),t,n)},function(t,i){var f=o(this),h=u(t);if("string"==typeof i&&-1===i.indexOf(r)&&-1===i.indexOf("$<")){var d=n(e,f,h,i);if(d.done)return d.value}var m=a(i);m||(i=u(i));var b=f.global;if(b){var k=f.unicode;f.lastIndex=0}for(var x=[];;){var I=v(f,h);if(null===I)break;if(x.push(I),!b)break;""===u(I[0])&&(f.lastIndex=l(h,s(f.lastIndex),k))}for(var S,E="",O=0,w=0;w<x.length;w++){I=x[w];for(var _=u(I[0]),C=g(y(c(I.index),h.length),0),M=[],A=1;A<I.length;A++)M.push(void 0===(S=I[A])?S:String(S));var R=I.groups;if(m){var N=[_].concat(M,C,h);void 0!==R&&N.push(R);var T=u(i.apply(void 0,N))}else T=p(_,h,C,M,R,i);C>=O&&(E+=h.slice(O,C)+T,O=C+_.length)}return E+h.slice(O)}]}),!!i((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!m||b)},6755:(t,e,n)=>{"use strict";var r,i=n(2109),o=n(1236).f,a=n(7466),c=n(1340),s=n(3929),u=n(4488),f=n(4964),l=n(1913),h="".startsWith,p=Math.min,v=f("startsWith");i({target:"String",proto:!0,forced:!(!l&&!v&&(r=o(String.prototype,"startsWith"),r&&!r.writable)||v)},{startsWith:function(t){var e=c(u(this));s(t);var n=a(p(arguments.length>1?arguments[1]:void 0,e.length)),r=c(t);return h?h.call(e,r,n):e.slice(n,n+r.length)===r}})},1817:(t,e,n)=>{"use strict";var r=n(2109),i=n(9781),o=n(7854),a=n(6656),c=n(614),s=n(111),u=n(3070).f,f=n(9920),l=o.Symbol;if(i&&c(l)&&(!("description"in l.prototype)||void 0!==l().description)){var h={},p=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof p?new l(t):void 0===t?l():l(t);return""===t&&(h[e]=!0),e};f(p,l);var v=p.prototype=l.prototype;v.constructor=p;var d=v.toString,g="Symbol(test)"==String(l("test")),y=/^Symbol\((.*)\)[^)]+$/;u(v,"description",{configurable:!0,get:function(){var t=s(this)?this.valueOf():this,e=d.call(t);if(a(h,t))return"";var n=g?e.slice(7,-1):e.replace(y,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:p})}},2165:(t,e,n)=>{n(7235)("iterator")},2526:(t,e,n)=>{"use strict";var r=n(2109),i=n(7854),o=n(5005),a=n(1913),c=n(9781),s=n(133),u=n(7293),f=n(6656),l=n(3157),h=n(614),p=n(111),v=n(2190),d=n(9670),g=n(7908),y=n(5656),m=n(4948),b=n(1340),k=n(9114),x=n(30),I=n(1956),S=n(8006),E=n(1156),O=n(5181),w=n(1236),_=n(3070),C=n(5296),M=n(1320),A=n(2309),R=n(6200),N=n(3501),T=n(9711),P=n(5112),D=n(6061),j=n(7235),L=n(8003),F=n(9909),B=n(2092).forEach,G=R("hidden"),V="Symbol",H=P("toPrimitive"),U=F.set,K=F.getterFor(V),W=Object.prototype,z=i.Symbol,Y=o("JSON","stringify"),q=w.f,$=_.f,Q=E.f,X=C.f,Z=A("symbols"),J=A("op-symbols"),tt=A("string-to-symbol-registry"),et=A("symbol-to-string-registry"),nt=A("wks"),rt=i.QObject,it=!rt||!rt.prototype||!rt.prototype.findChild,ot=c&&u((function(){return 7!=x($({},"a",{get:function(){return $(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=q(W,e);r&&delete W[e],$(t,e,n),r&&t!==W&&$(W,e,r)}:$,at=function(t,e){var n=Z[t]=x(z.prototype);return U(n,{type:V,tag:t,description:e}),c||(n.description=e),n},ct=function(t,e,n){t===W&&ct(J,e,n),d(t);var r=m(e);return d(n),f(Z,r)?(n.enumerable?(f(t,G)&&t[G][r]&&(t[G][r]=!1),n=x(n,{enumerable:k(0,!1)})):(f(t,G)||$(t,G,k(1,{})),t[G][r]=!0),ot(t,r,n)):$(t,r,n)},st=function(t,e){d(t);var n=y(e),r=I(n).concat(ht(n));return B(r,(function(e){c&&!ut.call(n,e)||ct(t,e,n[e])})),t},ut=function(t){var e=m(t),n=X.call(this,e);return!(this===W&&f(Z,e)&&!f(J,e))&&(!(n||!f(this,e)||!f(Z,e)||f(this,G)&&this[G][e])||n)},ft=function(t,e){var n=y(t),r=m(e);if(n!==W||!f(Z,r)||f(J,r)){var i=q(n,r);return!i||!f(Z,r)||f(n,G)&&n[G][r]||(i.enumerable=!0),i}},lt=function(t){var e=Q(y(t)),n=[];return B(e,(function(t){f(Z,t)||f(N,t)||n.push(t)})),n},ht=function(t){var e=t===W,n=Q(e?J:y(t)),r=[];return B(n,(function(t){!f(Z,t)||e&&!f(W,t)||r.push(Z[t])})),r};if(s||(M((z=function(){if(this instanceof z)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?b(arguments[0]):void 0,e=T(t),n=function(t){this===W&&n.call(J,t),f(this,G)&&f(this[G],e)&&(this[G][e]=!1),ot(this,e,k(1,t))};return c&&it&&ot(W,e,{configurable:!0,set:n}),at(e,t)}).prototype,"toString",(function(){return K(this).tag})),M(z,"withoutSetter",(function(t){return at(T(t),t)})),C.f=ut,_.f=ct,w.f=ft,S.f=E.f=lt,O.f=ht,D.f=function(t){return at(P(t),t)},c&&($(z.prototype,"description",{configurable:!0,get:function(){return K(this).description}}),a||M(W,"propertyIsEnumerable",ut,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!s,sham:!s},{Symbol:z}),B(I(nt),(function(t){j(t)})),r({target:V,stat:!0,forced:!s},{for:function(t){var e=b(t);if(f(tt,e))return tt[e];var n=z(e);return tt[e]=n,et[n]=e,n},keyFor:function(t){if(!v(t))throw TypeError(t+" is not a symbol");if(f(et,t))return et[t]},useSetter:function(){it=!0},useSimple:function(){it=!1}}),r({target:"Object",stat:!0,forced:!s,sham:!c},{create:function(t,e){return void 0===e?x(t):st(x(t),e)},defineProperty:ct,defineProperties:st,getOwnPropertyDescriptor:ft}),r({target:"Object",stat:!0,forced:!s},{getOwnPropertyNames:lt,getOwnPropertySymbols:ht}),r({target:"Object",stat:!0,forced:u((function(){O.f(1)}))},{getOwnPropertySymbols:function(t){return O.f(g(t))}}),Y&&r({target:"JSON",stat:!0,forced:!s||u((function(){var t=z();return"[null]"!=Y([t])||"{}"!=Y({a:t})||"{}"!=Y(Object(t))}))},{stringify:function(t,e,n){for(var r,i=[t],o=1;arguments.length>o;)i.push(arguments[o++]);if(r=e,(p(e)||void 0!==t)&&!v(t))return l(e)||(e=function(t,e){if(h(r)&&(e=r.call(this,t,e)),!v(e))return e}),i[1]=e,Y.apply(null,i)}}),!z.prototype[H]){var pt=z.prototype.valueOf;M(z.prototype,H,(function(){return pt.apply(this,arguments)}))}L(z,V),N[G]=!0},4747:(t,e,n)=>{var r=n(7854),i=n(8324),o=n(8509),a=n(8533),c=n(8880),s=function(t){if(t&&t.forEach!==a)try{c(t,"forEach",a)}catch(e){t.forEach=a}};for(var u in i)i[u]&&s(r[u]&&r[u].prototype);s(o)},3948:(t,e,n)=>{var r=n(7854),i=n(8324),o=n(8509),a=n(6992),c=n(8880),s=n(5112),u=s("iterator"),f=s("toStringTag"),l=a.values,h=function(t,e){if(t){if(t[u]!==l)try{c(t,u,l)}catch(e){t[u]=l}if(t[f]||c(t,f,e),i[e])for(var n in a)if(t[n]!==a[n])try{c(t,n,a[n])}catch(e){t[n]=a[n]}}};for(var p in i)h(r[p]&&r[p].prototype,p);h(o,"DOMTokenList")},5666:t=>{var e=function(t){"use strict";var e,n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof g?e:g,o=Object.create(i.prototype),a=new C(r||[]);return o._invoke=function(t,e,n){var r=l;return function(i,o){if(r===p)throw new Error("Generator is already running");if(r===v){if("throw"===i)throw o;return A()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var c=O(a,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===l)throw r=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var s=f(t,e,n);if("normal"===s.type){if(r=n.done?v:h,s.arg===d)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r=v,n.method="throw",n.arg=s.arg)}}}(t,n,a),o}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var l="suspendedStart",h="suspendedYield",p="executing",v="completed",d={};function g(){}function y(){}function m(){}var b={};s(b,o,(function(){return this}));var k=Object.getPrototypeOf,x=k&&k(k(M([])));x&&x!==n&&r.call(x,o)&&(b=x);var I=m.prototype=g.prototype=Object.create(b);function S(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function n(i,o,a,c){var s=f(t[i],t,o);if("throw"!==s.type){var u=s.arg,l=u.value;return l&&"object"==typeof l&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(l).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,c)}))}c(s.arg)}var i;this._invoke=function(t,r){function o(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(o,o):o()}}function O(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,O(t,n),"throw"===n.method))return d;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var i=f(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,d;var o=i.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,d):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,d)}function w(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function M(t){if(t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}return{next:A}}function A(){return{value:e,done:!0}}return y.prototype=m,s(I,"constructor",m),s(m,"constructor",y),y.displayName=s(m,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,s(t,c,"GeneratorFunction")),t.prototype=Object.create(I),t},t.awrap=function(t){return{__await:t}},S(E.prototype),s(E.prototype,a,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new E(u(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(I),s(I,c,"Generator"),s(I,o,(function(){return this})),s(I,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=M,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(_),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return c.type="throw",c.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],c=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),_(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;_(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:M(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),d}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},9591:t=>{"use strict";t.exports=require("@babel/runtime/helpers/asyncToGenerator")},8765:t=>{"use strict";t.exports=require("@babel/runtime/helpers/createClass")},8779:t=>{"use strict";t.exports=require("@babel/runtime/helpers/defineProperty")},3761:t=>{"use strict";t.exports=require("@babel/runtime/helpers/getPrototypeOf")},5370:t=>{"use strict";t.exports=require("@babel/runtime/helpers/inherits")},9548:t=>{"use strict";t.exports=require("@babel/runtime/helpers/possibleConstructorReturn")},353:t=>{"use strict";t.exports=require("@babel/runtime/helpers/slicedToArray")},9293:t=>{"use strict";t.exports=require("@babel/runtime/helpers/typeof")},1307:t=>{"use strict";t.exports=require("@babel/runtime/regenerator")},1030:t=>{"use strict";t.exports=require("abort-controller")},1239:t=>{"use strict";t.exports=require("events")},4809:t=>{"use strict";t.exports=require("node-fetch")},6689:t=>{"use strict";t.exports=require("react")},3685:t=>{"use strict";t.exports=require("http")},5687:t=>{"use strict";t.exports=require("https")}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};(()=>{"use strict";n.r(r),n.d(r,{FlagshipContext:()=>t.e,FlagshipProvider:()=>t.X,noVisitorDefault:()=>o.yz,noVisitorMessage:()=>o.mq,useFlagship:()=>o.UM,useFsActivate:()=>o.pc,useFsModification:()=>o.nr,useFsModificationInfo:()=>o._X,useFsModifications:()=>o.GW,useFsSynchronizeModifications:()=>o.TM});var t=n(821),e=n(6968),i={};for(const t in e)["default","FlagshipContext","FlagshipProvider"].indexOf(t)<0&&(i[t]=()=>e[t]);n.d(r,i);var o=n(9460)})(),module.exports=r})();
|
|
1
|
+
(()=>{var t={6968:(t,e,n)=>{(()=>{"use strict";var e={289:t=>{t.exports=n(1030)},605:t=>{t.exports=n(3685)},211:t=>{t.exports=n(5687)},786:t=>{t.exports=n(4809)}},r={};function i(t){var n=r[t];if(void 0!==n)return n.exports;var o=r[t]={exports:{}};return e[t](o,o.exports,i),o.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{i.r(o),i.d(o,{APP_VERSION_CODE:()=>qt,APP_VERSION_NAME:()=>Yt,CARRIER_NAME:()=>Wt,DEVICE_LOCALE:()=>Pt,DEVICE_MODEL:()=>jt,DEVICE_TYPE:()=>Tt,DecisionApiConfig:()=>Z,DecisionMode:()=>G,Event:()=>lt,EventCategory:()=>ct,FLAGSHIP_CLIENT:()=>Jt,FLAGSHIP_CONTEXT:()=>Zt,FLAGSHIP_VERSION:()=>Qt,FLAGSHIP_VISITOR:()=>Xt,Flagship:()=>Ae,FlagshipStatus:()=>b,HitAbstract:()=>st,HitType:()=>k,INTERFACE_NAME:()=>$t,INTERNET_CONNECTION:()=>zt,IP:()=>Bt,Item:()=>vt,LOCATION_CITY:()=>Dt,LOCATION_COUNTRY:()=>Vt,LOCATION_LAT:()=>Ft,LOCATION_LONG:()=>Ht,LOCATION_REGION:()=>Lt,LogLevel:()=>v,OS_NAME:()=>Gt,OS_VERSION_CODE:()=>Kt,OS_VERSION_NAME:()=>Ut,Page:()=>yt,Screen:()=>kt,Transaction:()=>Ot,Visitor:()=>U,default:()=>Me});const t=n(9293);var e=i.n(t);const r=n(8765);var a=i.n(r);n(2419);const c=n(5370);var s=i.n(c);const u=n(9548);var f=i.n(u);const l=n(3761);var h=i.n(l);n(1539),n(8674);const p=n(1239);var v,d={},g="undefined"==typeof window?i(786).default:window.fetch;if("undefined"==typeof window){var y=i(605).Agent,m=i(211).Agent;d.agent=function(t){return"http:"===t.protocol?new y({keepAlive:!0}):new m({keepAlive:!0})}}!function(t){t[t.NONE=0]="NONE",t[t.EMERGENCY=1]="EMERGENCY",t[t.ALERT=2]="ALERT",t[t.CRITICAL=3]="CRITICAL",t[t.ERROR=4]="ERROR",t[t.WARNING=5]="WARNING",t[t.NOTICE=6]="NOTICE",t[t.INFO=7]="INFO",t[t.DEBUG=8]="DEBUG",t[t.ALL=9]="ALL"}(v||(v={}));var b,k,x="TypeScript",I="https://decision.flagship.io/v2/",O="v2",w="ready",C="Key {0} must not be null. Default value is returned.",S="No modification for key {0}.",E="{0} must be a {1}",_="visitorId must not be null or empty",A="Method {0} is deactivated while SDK status is: {1}.",M="INITIALIZATION",R="UPDATE CONTEXT",N="GET MODIFICATION",P="GET MODIFICATION INFO",T="ACTIVE MODIFICATION",j="SEND HIT",D="cid",L="x-api-key",V="Content-Type",F="x-sdk-client",H="x-sdk-version",B="application/json";!function(t){t[t.NOT_READY=0]="NOT_READY",t[t.NOT_INITIALIZED=0]="NOT_INITIALIZED",t[t.STARTING=1]="STARTING",t[t.POLLING=2]="POLLING",t[t.READY_PANIC_ON=3]="READY_PANIC_ON",t[t.READY=4]="READY"}(b||(b={})),function(t){t.PAGE_VIEW="PAGEVIEW",t.PAGE="PAGEVIEW",t.SCREEN_VIEW="SCREENVIEW",t.SCREEN="SCREENVIEW",t.TRANSACTION="TRANSACTION",t.ITEM="ITEM",t.EVENT="EVENT"}(k||(k={}));var G,U=function(t){s()(n,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h()(t);if(e){var i=h()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}(n);function n(t){var n;return(n=e.call(this)).visitorDelegate=t,n.visitorDelegate.on(w,(function(t){n.emit(w,t)})),n}return a()(n,[{key:"getModificationsArray",value:function(){return this.visitorDelegate.getModificationsArray()}},{key:"visitorId",get:function(){return this.visitorDelegate.visitorId},set:function(t){this.visitorDelegate.visitorId=t}},{key:"anonymousId",get:function(){return this.visitorDelegate.anonymousId}},{key:"hasConsented",get:function(){return this.visitorDelegate.hasConsented}},{key:"setConsent",value:function(t){this.visitorDelegate.setConsent(t)}},{key:"config",get:function(){return this.visitorDelegate.config}},{key:"context",get:function(){return this.visitorDelegate.context}},{key:"modifications",get:function(){return this.visitorDelegate.modifications}},{key:"updateContext",value:function(t){this.visitorDelegate.updateContext(t)}},{key:"clearContext",value:function(){this.visitorDelegate.clearContext()}},{key:"getModification",value:function(t){return this.visitorDelegate.getModification(t)}},{key:"getModificationSync",value:function(t){return this.visitorDelegate.getModificationSync(t)}},{key:"getModifications",value:function(t,e){return this.visitorDelegate.getModifications(t,e)}},{key:"getModificationsSync",value:function(t,e){return this.visitorDelegate.getModificationsSync(t,e)}},{key:"getModificationInfo",value:function(t){return this.visitorDelegate.getModificationInfo(t)}},{key:"getModificationInfoSync",value:function(t){return this.visitorDelegate.getModificationInfoSync(t)}},{key:"synchronizeModifications",value:function(){return this.visitorDelegate.synchronizeModifications()}},{key:"activateModification",value:function(t){return this.visitorDelegate.activateModification(t)}},{key:"activateModifications",value:function(t){return this.visitorDelegate.activateModifications(t)}},{key:"sendHit",value:function(t){return this.visitorDelegate.sendHit(t)}},{key:"sendHits",value:function(t){return this.visitorDelegate.sendHits(t)}},{key:"getAllModifications",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.visitorDelegate.getAllModifications(t)}},{key:"getModificationsForCampaign",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.visitorDelegate.getModificationsForCampaign(t,e)}},{key:"authenticate",value:function(t){this.visitorDelegate.authenticate(t)}},{key:"unauthenticate",value:function(){this.visitorDelegate.unauthenticate()}}]),n}(p.EventEmitter);function K(t){for(var e=t,n=0;n<(arguments.length<=1?0:arguments.length-1);n++){var r=n+1<1||arguments.length<=n+1?void 0:arguments[n+1];e=e.replace(new RegExp("\\{".concat(n,"\\}"),"g"),r)}return e}function W(t,e,n){t&&t.logManager&&"function"==typeof t.logManager.error&&t.logLevel&&!(t.logLevel<v.ERROR)&&t.logManager.error(e,n)}function z(t,e,n){t&&t.logManager&&"function"==typeof t.logManager.info&&t.logLevel&&!(t.logLevel<v.INFO)&&t.logManager.info(e,n)}function Y(){return"undefined"!=typeof window&&!("Deno"in window)}n(4916),n(5306),n(4603),n(9714),function(t){t.DECISION_API="API",t.BUCKETING="BUCKETING"}(G||(G={}));var q=function(){function t(t){var e=t.envId,n=t.apiKey,r=t.timeout,i=t.logLevel,o=t.logManager,a=t.statusChangedCallback,c=t.fetchNow,s=t.decisionMode,u=t.enableClientCache,f=t.initialBucketing,l=t.decisionApiUrl,h=t.activateDeduplicationTime,p=t.hitDeduplicationTime,d=t.visitorCacheImplementation,g=t.hitCacheImplementation,y=t.disableCache;this.decisionApiUrl=l||I,this._envId=e,this._apiKey=n,this.logLevel=i||v.ALL,this.timeout=r||2,this.fetchNow=void 0===c||c,this.enableClientCache=void 0===u||u,this._decisionMode=s||G.DECISION_API,this._initialBucketing=f,this.activateDeduplicationTime=null!=h?h:2.5,this.hitDeduplicationTime=null!=p?p:2.5,this.disableCache=!!y,d&&(this.visitorCacheImplementation=d),g&&(this.hitCacheImplementation=g),o&&(this.logManager=o),this.statusChangedCallback=a}return a()(t,[{key:"initialBucketing",get:function(){return this._initialBucketing},set:function(t){this._initialBucketing=t}},{key:"enableClientCache",get:function(){return this._enableClientCache},set:function(t){this._enableClientCache=t}},{key:"onBucketingSuccess",get:function(){return this._onBucketingSuccess},set:function(t){this._onBucketingSuccess=t}},{key:"onBucketingFail",get:function(){return this._onBucketingFail},set:function(t){this._onBucketingFail=t}},{key:"onBucketingUpdated",get:function(){return this._onBucketingUpdated},set:function(t){this._onBucketingUpdated=t}},{key:"envId",get:function(){return this._envId},set:function(t){this._envId=t}},{key:"apiKey",get:function(){return this._apiKey},set:function(t){this._apiKey=t}},{key:"decisionMode",get:function(){return this._decisionMode}},{key:"timeout",get:function(){return this._timeout},set:function(t){this._timeout=t}},{key:"logLevel",get:function(){return this._logLevel},set:function(t){this._logLevel=t}},{key:"fetchNow",get:function(){return this._fetchNow},set:function(t){this._fetchNow=t}},{key:"pollingInterval",get:function(){return this._pollingInterval},set:function(t){this._pollingInterval=t}},{key:"activateDeduplicationTime",get:function(){return this._activateDeduplicationTime},set:function(t){"number"==typeof t?this._activateDeduplicationTime=t:W(this,K(E,"activateDeduplicationTime","number"),"activateDeduplicationTime")}},{key:"hitDeduplicationTime",get:function(){return this._hitDeduplicationTime},set:function(t){"number"==typeof t?this._hitDeduplicationTime=t:W(this,K(E,"hitDeduplicationTime","number"),"hitDeduplicationTime")}},{key:"visitorCacheImplementation",get:function(){return this._visitorCacheImplementation},set:function(t){this._visitorCacheImplementation=t}},{key:"hitCacheImplementation",get:function(){return this._hitCacheImplementation},set:function(t){this._hitCacheImplementation=t}},{key:"disableCache",get:function(){return this._disableCache},set:function(t){this._disableCache=t}},{key:"statusChangedCallback",get:function(){return this._statusChangedCallback},set:function(t){"function"==typeof t?this._statusChangedCallback=t:W(this,"statusChangedCallback must be a function","statusChangedCallback")}},{key:"logManager",get:function(){return this._logManager},set:function(t){this._logManager=t}},{key:"decisionApiUrl",get:function(){return this._decisionApiUrl},set:function(t){"string"==typeof t?this._decisionApiUrl=t:W(this,K(E,"decisionApiUrl","string"),"decisionApiUrl")}}]),t}();n(7941),n(2526),n(7327),n(5003),n(4747),n(9337);const $=n(8779);var J=i.n($);function Q(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function X(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Q(Object(n),!0).forEach((function(e){J()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Q(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Z=function(t){s()(n,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h()(t);if(e){var i=h()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}(n);function n(t){return e.call(this,X(X({},t),{},{decisionMode:G.DECISION_API}))}return n}(q),tt=function(){function t(t,e,n){this._config=t,this._decisionManager=e,this._trackingManager=n}return a()(t,[{key:"config",get:function(){return this._config},set:function(t){this._config=t}},{key:"decisionManager",get:function(){return this._decisionManager},set:function(t){this._decisionManager=t}},{key:"trackingManager",get:function(){return this._trackingManager},set:function(t){this._trackingManager=t}}]),t}();const et=n(9591);var nt=i.n(et);const rt=n(1307);var it=i.n(rt);n(2222),n(6992),n(1532),n(8783),n(3948);var ot=function(){function t(t,e){J()(this,"_panic",!1),this._config=e,this._httpClient=t}var e;return a()(t,[{key:"config",get:function(){return this._config}},{key:"panic",set:function(t){this.updateFlagshipStatus(t?b.READY_PANIC_ON:b.READY),this._panic=t}},{key:"statusChangedCallback",value:function(t){this._statusChangedCallback=t}},{key:"updateFlagshipStatus",value:function(t){"function"==typeof this._statusChangedCallback&&this._statusChangedCallback&&this._statusChangedCallback(t)}},{key:"getModifications",value:function(t){var e=new Map;return t.forEach((function(t){var n=t.variation.modifications.value;for(var r in n){var i=n[r];e.set(r,{key:r,campaignId:t.id,variationGroupId:t.variationGroupId,variationId:t.variation.id,isReference:t.variation.reference,value:i})}})),e}},{key:"getCampaignsModificationsAsync",value:(e=nt()(it().mark((function t(e){var n=this;return it().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.getCampaignsAsync(e).then((function(t){return n.getModifications(t)})).catch((function(t){return W(n.config,t.message||t,"getCampaignsModificationsAsync"),new Map})));case 1:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"isPanic",value:function(){return this._panic}}]),t}(),at=function(t){s()(r,t);var e,n=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h()(t);if(e){var i=h()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}(r);function r(){return n.apply(this,arguments)}return a()(r,[{key:"getCampaignsAsync",value:(e=nt()(it().mark((function t(e){var n,r,i,o,a=this;return it().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n={},J()(n,L,"".concat(this.config.apiKey)),J()(n,F,x),J()(n,H,O),J()(n,V,B),r=n,i={visitorId:e.visitorId,anonymousId:e.anonymousId,trigger_hit:!1,context:e.context},o="".concat(this.config.decisionApiUrl||I).concat(this.config.envId).concat("/campaigns","?").concat("exposeAllKeys","=true"),e.hasConsented||(o+="&".concat("sendContextEvent","=false")),t.abrupt("return",this._httpClient.postAsync(o,{headers:r,timeout:this.config.timeout,body:i}).then((function(t){a.panic=!!t.body.panic;var e=[];return t.body.campaigns&&(e=t.body.campaigns),e})).catch((function(t){return W(a.config,t.message||t,"GET CAMPAIGNS"),[]})));case 5:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})}]),r}(ot);n(6699),n(2023),n(2479),n(3161),n(9653);var ct,st=function(){function t(t){var e=t.type,n=t.userIp,r=t.screenResolution,i=t.locale,o=t.sessionNumber;this.type=e,n&&(this.userIp=n),r&&(this.screenResolution=r),i&&(this.locale=i),o&&(this.sessionNumber=o),this._anonymousId=null}return a()(t,[{key:"sessionNumber",get:function(){return this._sessionNumber},set:function(t){this._sessionNumber=t}},{key:"locale",get:function(){return this._locale},set:function(t){this._locale=t}},{key:"screenResolution",get:function(){return this._screenResolution},set:function(t){this._screenResolution=t}},{key:"userIp",get:function(){return this._userIp},set:function(t){this._userIp=t}},{key:"anonymousId",get:function(){return this._anonymousId},set:function(t){this._anonymousId=t}},{key:"visitorId",get:function(){return this._visitorId},set:function(t){this._visitorId=t}},{key:"ds",get:function(){return this._ds},set:function(t){this._ds=t}},{key:"type",get:function(){return this._type},set:function(t){this._type=t}},{key:"config",get:function(){return this._config},set:function(t){this._config=t}},{key:"isNotEmptyString",value:function(t,e){return!(!t||"string"!=typeof t)||(W(this.config,K(E,e,"string"),e),!1)}},{key:"isNumeric",value:function(t,e){return!(!t||"number"!=typeof t)||(W(this.config,K(E,e,"number"),e),!1)}},{key:"isInteger",value:function(t,e){return t&&"number"==typeof t?(Number.isInteger(t)||W(this.config,K("value of {0} is not an {1}, it will be truncated to {1}",e,"integer"),e),!0):(W(this.config,K(E,e,"integer"),e),!1)}},{key:"toApiKeys",value:function(){var t,e,n=(e={},J()(e,"vid",this.visitorId),J()(e,"ds",this.ds),J()(e,D,"".concat(null==(t=this.config)?void 0:t.envId)),J()(e,"t",this.type),J()(e,"uip",this.userIp),J()(e,"sr",this.screenResolution),J()(e,"ul",this.locale),J()(e,"sn",this.sessionNumber),e);return this.visitorId&&this._anonymousId?(n.vid=this._anonymousId,n.cuid=this.visitorId):(n.vid=this._anonymousId||this.visitorId,n.cuid=null),n}},{key:"toObject",value:function(){return{visitorId:this.visitorId,ds:this.ds,type:this.type,userIp:this.userIp,screenResolution:this.screenResolution,locale:this.locale,sessionNumber:this.sessionNumber,anonymousId:this.anonymousId}}},{key:"isReady",value:function(){return!!(this.visitorId&&this.ds&&this.config&&this.config.envId&&this.type)}}]),t}();function ut(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ft(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ut(Object(n),!0).forEach((function(e){J()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ut(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}!function(t){t.ACTION_TRACKING="Action Tracking",t.USER_ENGAGEMENT="User Engagement"}(ct||(ct={}));var lt=function(t){s()(n,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h()(t);if(e){var i=h()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}(n);function n(t){var n;n=e.call(this,{type:k.EVENT,userIp:null==t?void 0:t.userIp,screenResolution:null==t?void 0:t.screenResolution,locale:null==t?void 0:t.locale,sessionNumber:null==t?void 0:t.sessionNumber});var r=t.category,i=t.action,o=t.label,a=t.value;return n.category=r,n.action=i,o&&(n.label=o),a&&(n.value=a),n}return a()(n,[{key:"category",get:function(){return this._category},set:function(t){Object.values(ct).includes(t)?this._category=t:W(this.config,"The category value must be either EventCategory::ACTION_TRACKING or EventCategory::ACTION_TRACKING","category")}},{key:"action",get:function(){return this._action},set:function(t){this.isNotEmptyString(t,"action")&&(this._action=t)}},{key:"label",get:function(){return this._label},set:function(t){this.isNotEmptyString(t,"label")&&(this._label=t)}},{key:"value",get:function(){return this._value},set:function(t){this.isNumeric(t,"value")&&(this._value=t)}},{key:"toApiKeys",value:function(){var e=t.prototype.toApiKeys.call(this);return e.ec=this.category,e.ea=this.action,this.label&&(e.el=this.label),this.value&&(e.ev=this.value),e}},{key:"toObject",value:function(){return ft(ft({},t.prototype.toObject.call(this)),{},{category:this.category,action:this.action,label:this.label,value:this.value})}},{key:"isReady",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return!(e&&!t.prototype.isReady.call(this)||!this.category||!this.action)}},{key:"getErrorMessage",value:function(){return"event category and event action are required"}}]),n}(st);function ht(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function pt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ht(Object(n),!0).forEach((function(e){J()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ht(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}n(3689);var vt=function(t){s()(n,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h()(t);if(e){var i=h()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}(n);function n(t){var n;n=e.call(this,{type:k.ITEM,userIp:null==t?void 0:t.userIp,screenResolution:null==t?void 0:t.screenResolution,locale:null==t?void 0:t.locale,sessionNumber:null==t?void 0:t.sessionNumber});var r=t.transactionId,i=t.productName,o=t.productSku,a=t.itemCategory,c=t.itemPrice,s=t.itemQuantity;return n.transactionId=r,n.productName=i,n.productSku=o,a&&(n.itemCategory=a),c&&(n.itemPrice=c),s&&(n.itemQuantity=s),n}return a()(n,[{key:"transactionId",get:function(){return this._transactionId},set:function(t){this.isNotEmptyString(t,"transactionId")&&(this._transactionId=t)}},{key:"productName",get:function(){return this._productName},set:function(t){this.isNotEmptyString(t,"productName")&&(this._productName=t)}},{key:"productSku",get:function(){return this._productSku},set:function(t){this.isNotEmptyString(t,"productSku")&&(this._productSku=t)}},{key:"itemPrice",get:function(){return this._itemPrice},set:function(t){this.isNumeric(t,"itemPrice")&&(this._itemPrice=t)}},{key:"itemQuantity",get:function(){return this._itemQuantity},set:function(t){this.isInteger(t,"itemQuantity")&&(this._itemQuantity=Math.trunc(t))}},{key:"itemCategory",get:function(){return this._itemCategory},set:function(t){this.isNotEmptyString(t,"itemCategory")&&(this._itemCategory=t)}},{key:"isReady",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return!(e&&!t.prototype.isReady.call(this)||!this.transactionId||!this.productName||!this.productSku)}},{key:"toApiKeys",value:function(){var e=t.prototype.toApiKeys.call(this);return e.tid=this.transactionId,e.in=this.productName,e.ic=this.productSku,this.itemPrice&&(e.ip=this.itemPrice),this.itemQuantity&&(e.iq=this.itemQuantity),this.itemCategory&&(e.iv=this.itemCategory),e}},{key:"toObject",value:function(){return pt(pt({},t.prototype.toObject.call(this)),{},{transactionId:this.transactionId,productName:this.productName,productSku:this.productSku,itemPrice:this.itemPrice,itemQuantity:this.itemQuantity,itemCategory:this.itemCategory})}},{key:"getErrorMessage",value:function(){return"Transaction Id, Item name and item code are required"}}]),n}(st);function dt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function gt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?dt(Object(n),!0).forEach((function(e){J()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):dt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var yt=function(t){s()(n,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h()(t);if(e){var i=h()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}(n);function n(t){var n;return(n=e.call(this,{type:k.PAGE_VIEW,userIp:null==t?void 0:t.userIp,screenResolution:null==t?void 0:t.screenResolution,locale:null==t?void 0:t.locale,sessionNumber:null==t?void 0:t.sessionNumber})).documentLocation=null==t?void 0:t.documentLocation,n}return a()(n,[{key:"documentLocation",get:function(){return this._documentLocation},set:function(t){this.isNotEmptyString(t,"documentLocation")&&(this._documentLocation=t)}},{key:"isReady",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return!(e&&!t.prototype.isReady.call(this)||!this.documentLocation)}},{key:"toApiKeys",value:function(){var e=t.prototype.toApiKeys.call(this);return e.dl=this.documentLocation,e}},{key:"toObject",value:function(){return gt(gt({},t.prototype.toObject.call(this)),{},{documentLocation:this.documentLocation})}},{key:"getErrorMessage",value:function(){return"documentLocation url is required"}}]),n}(st);function mt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function bt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?mt(Object(n),!0).forEach((function(e){J()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):mt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var kt=function(t){s()(n,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h()(t);if(e){var i=h()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}(n);function n(t){var n;return(n=e.call(this,{type:k.SCREEN_VIEW,userIp:null==t?void 0:t.userIp,screenResolution:null==t?void 0:t.screenResolution,locale:null==t?void 0:t.locale,sessionNumber:null==t?void 0:t.sessionNumber})).documentLocation=null==t?void 0:t.documentLocation,n}return a()(n,[{key:"documentLocation",get:function(){return this._documentLocation},set:function(t){this.isNotEmptyString(t,"documentLocation")&&(this._documentLocation=t)}},{key:"isReady",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return!(e&&!t.prototype.isReady.call(this)||!this.documentLocation)}},{key:"toApiKeys",value:function(){var e=t.prototype.toApiKeys.call(this);return e.dl=this.documentLocation,e}},{key:"toObject",value:function(){return bt(bt({},t.prototype.toObject.call(this)),{},{documentLocation:this.documentLocation})}},{key:"getErrorMessage",value:function(){return"Screen name is required"}}]),n}(st);function xt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function It(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?xt(Object(n),!0).forEach((function(e){J()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):xt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Ot=function(t){s()(n,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h()(t);if(e){var i=h()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}(n);function n(t){var n;n=e.call(this,{type:k.TRANSACTION,userIp:null==t?void 0:t.userIp,screenResolution:null==t?void 0:t.screenResolution,locale:null==t?void 0:t.locale,sessionNumber:null==t?void 0:t.sessionNumber});var r=t.transactionId,i=t.affiliation,o=t.taxes,a=t.currency,c=t.couponCode,s=t.itemCount,u=t.shippingMethod,f=t.paymentMethod,l=t.totalRevenue,h=t.shippingCosts;return n.transactionId=r,n.affiliation=i,o&&(n.taxes=o),a&&(n.currency=a),c&&(n.couponCode=c),s&&(n.itemCount=s),u&&(n.shippingMethod=u),f&&(n.paymentMethod=f),l&&(n.totalRevenue=l),h&&(n.shippingCosts=h),n}return a()(n,[{key:"transactionId",get:function(){return this._transactionId},set:function(t){this.isNotEmptyString(t,"transactionId")&&(this._transactionId=t)}},{key:"affiliation",get:function(){return this._affiliation},set:function(t){this.isNotEmptyString(t,"affiliation")&&(this._affiliation=t)}},{key:"taxes",get:function(){return this._taxes},set:function(t){this.isNumeric(t,"taxes")&&(this._taxes=t)}},{key:"currency",get:function(){return this._currency},set:function(t){t&&"string"==typeof t&&3===t.length?this._currency=t:W(this.config,K("{0} must be a string and have exactly 3 letters","currency"),"currency")}},{key:"couponCode",get:function(){return this._couponCode},set:function(t){this.isNotEmptyString(t,"couponCode")&&(this._couponCode=t)}},{key:"itemCount",get:function(){return this._itemCount},set:function(t){this.isInteger(t,"itemCount")&&(this._itemCount=Math.trunc(t))}},{key:"shippingMethod",get:function(){return this._shippingMethod},set:function(t){this.isNotEmptyString(t,"shippingMethod")&&(this._shippingMethod=t)}},{key:"paymentMethod",get:function(){return this._paymentMethod},set:function(t){this.isNotEmptyString(t,"paymentMethod")&&(this._paymentMethod=t)}},{key:"totalRevenue",get:function(){return this._totalRevenue},set:function(t){this.isNumeric(t,"totalRevenue")&&(this._totalRevenue=t)}},{key:"shippingCosts",get:function(){return this._shippingCosts},set:function(t){this.isNumeric(t,"shippingCosts")&&(this._shippingCosts=t)}},{key:"isReady",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return!(e&&!t.prototype.isReady.call(this)||!this.transactionId||!this.affiliation)}},{key:"toApiKeys",value:function(){var e=t.prototype.toApiKeys.call(this);return e.tid=this.transactionId,e.ta=this.affiliation,this.taxes&&(e.tt=this.taxes),this.currency&&(e.tc=this.currency),this.couponCode&&(e.tcc=this.couponCode),this.itemCount&&(e.icn=this.itemCount),this.shippingMethod&&(e.sm=this.shippingMethod),this.paymentMethod&&(e.pm=this.paymentMethod),this.totalRevenue&&(e.tr=this.totalRevenue),this.shippingCosts&&(e.ts=this.shippingCosts),e}},{key:"toObject",value:function(){return It(It({},t.prototype.toObject.call(this)),{},{transactionId:this.transactionId,affiliation:this.affiliation,taxes:this.taxes,currency:this.currency,couponCode:this.couponCode,itemCount:this.itemCount,shippingMethod:this.shippingMethod,paymentMethod:this.paymentMethod,totalRevenue:this.totalRevenue,shippingCosts:this.shippingCosts})}},{key:"getErrorMessage",value:function(){return"Transaction Id and Transaction affiliation are required"}}]),n}(st),wt=function(t){s()(o,t);var e,n,r,i=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h()(t);if(e){var i=h()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}(o);function o(){return i.apply(this,arguments)}return a()(o,[{key:"sendConsentHit",value:(r=nt()(it().mark((function t(e){var n,r,i;return it().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n={},J()(n,"t",k.EVENT),J()(n,"el","".concat(x,":").concat(e.hasConsented)),J()(n,"ea","fs_consent"),J()(n,"ec",ct.USER_ENGAGEMENT),J()(n,D,this.config.envId),J()(n,"ds","APP"),r=n,e.visitorId&&e.anonymousId?(r.vid=e.anonymousId,r.cuid=e.visitorId):(r.vid=e.anonymousId||e.visitorId,r.cuid=null),i=J()({},V,B),t.next=5,this.httpClient.postAsync("https://ariane.abtasty.com",{headers:i,timeout:this.config.timeout,body:r});case 5:case"end":return t.stop()}}),t,this)}))),function(t){return r.apply(this,arguments)})},{key:"sendActive",value:(n=nt()(it().mark((function t(e,n){var r,i,o,a,c;return it().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r={},J()(r,L,"".concat(this.config.apiKey)),J()(r,F,x),J()(r,H,O),J()(r,V,B),o=r,a="".concat(I).concat("activate"),i={},J()(i,"vid",e.visitorId),J()(i,"vaid",n.variationId),J()(i,"caid",n.variationGroupId),J()(i,D,"".concat(this.config.envId)),c=i,e.visitorId&&e.anonymousId?(c.vid=e.visitorId,c.aid=e.anonymousId):(c.vid=e.anonymousId||e.visitorId,c.aid=null),t.next=6,this.httpClient.postAsync(a,{headers:o,timeout:this.config.timeout,body:c});case 6:case"end":return t.stop()}}),t,this)}))),function(t,e){return n.apply(this,arguments)})},{key:"sendHit",value:(e=nt()(it().mark((function t(e){var n;return it().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=J()({},V,B),t.next=3,this.httpClient.postAsync("https://ariane.abtasty.com",{headers:n,timeout:this.config.timeout,body:e.toApiKeys()});case 3:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})}]),o}(function(){function t(t,e){this._httpClient=t,this._config=e}return a()(t,[{key:"httpClient",get:function(){return this._httpClient}},{key:"config",get:function(){return this._config}}]),t}()),Ct=function(){function t(){}return a()(t,[{key:"emergency",value:function(t,e){this.log(v.EMERGENCY,t,e)}},{key:"alert",value:function(t,e){this.log(v.ALERT,t,e)}},{key:"critical",value:function(t,e){this.log(v.CRITICAL,t,e)}},{key:"error",value:function(t,e){this.log(v.ERROR,t,e)}},{key:"warning",value:function(t,e){this.log(v.WARNING,t,e)}},{key:"notice",value:function(t,e){this.log(v.NOTICE,t,e)}},{key:"info",value:function(t,e){this.log(v.INFO,t,e)}},{key:"debug",value:function(t,e){this.log(v.DEBUG,t,e)}},{key:"log",value:function(t,e,n){var r=new Date,i=function(t){return 1===t.toString().length?"0".concat(t):t},o="[".concat(i(r.getFullYear()),"-").concat(i(r.getMonth()),"-").concat(i(r.getDay())," ").concat(i(r.getHours()),":").concat(i(r.getMinutes()),"] [").concat("Flagship SDK","] [").concat(v[t],"] [").concat(n,"] : ").concat(e);console.log(o)}}]),t}();const St=n(353);var Et=i.n(St);function _t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function At(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?_t(Object(n),!0).forEach((function(e){J()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_t(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}n(9720),n(1038),n(8309);var Mt=function(t){s()(n,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h()(t);if(e){var i=h()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}(n);function n(t){var n,r;return(r=e.call(this,At(At({},t),{},{decisionMode:G.BUCKETING}))).pollingInterval=null!=(n=null==t?void 0:t.pollingInterval)?n:1,r.onBucketingFail=null==t?void 0:t.onBucketingFail,r.onBucketingSuccess=null==t?void 0:t.onBucketingSuccess,r.onBucketingUpdated=null==t?void 0:t.onBucketingUpdated,r}return n}(q);n(4723),n(1249),n(2087);var Rt,Nt=function(){function t(t){this.visitor=t}return a()(t,[{key:"configManager",get:function(){return this.visitor.configManager}},{key:"trackingManager",get:function(){return this.configManager.trackingManager}},{key:"decisionManager",get:function(){return this.configManager.decisionManager}},{key:"config",get:function(){return this.visitor.config}},{key:"updateCampaigns",value:function(t){try{this.visitor.campaigns=t,this.visitor.modifications=this.decisionManager.getModifications(t)}catch(t){W(this.config,t.message||t,"updateCampaigns")}}}]),t}(),Pt="sdk_deviceLanguage",Tt="sdk_deviceType",jt="sdk_deviceModel",Dt="sdk_city",Lt="sdk_region",Vt="sdk_country",Ft="sdk_lat",Ht="sdk_long",Bt="sdk_ip",Gt="sdk_osName",Ut="sdk_osVersionName",Kt="sdk_osVersionCode",Wt="sdk_carrierName",zt="sdk_internetConnection",Yt="sdk_versionName",qt="sdk_versionCode",$t="sdk_interfaceName",Jt="fs_client",Qt="fs_version",Xt="fs_users",Zt=(Rt={},J()(Rt,Pt,"string"),J()(Rt,Tt,"string"),J()(Rt,jt,"string"),J()(Rt,Dt,"string"),J()(Rt,Lt,"string"),J()(Rt,Vt,"string"),J()(Rt,Ft,"number"),J()(Rt,Ht,"number"),J()(Rt,Bt,"string"),J()(Rt,Gt,"string"),J()(Rt,Ut,"string"),J()(Rt,Kt,"number"),J()(Rt,Wt,"string"),J()(Rt,zt,"string"),J()(Rt,Yt,"string"),J()(Rt,qt,"number"),J()(Rt,$t,"string"),J()(Rt,Jt,"string"),J()(Rt,Qt,"string"),J()(Rt,Xt,"string"),Rt);function te(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ee(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?te(Object(n),!0).forEach((function(e){J()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):te(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var ne="BATCH",re=function(t){s()(n,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h()(t);if(e){var i=h()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}(n);function n(t){var n;return(n=e.call(this,ee(ee({},t),{},{type:ne}))).hits=t.hits,n}return a()(n,[{key:"hits",get:function(){return this._hits},set:function(t){this._hits=t}},{key:"isReady",value:function(){return!!(t.prototype.isReady.call(this)&&this.hits&&this.hits.length>0&&this.hits.every((function(t){return t.isReady(!1)})))}},{key:"toApiKeys",value:function(){var e=t.prototype.toApiKeys.call(this);return e.h=this.hits.map((function(t){var e=t.toApiKeys();return delete e.vid,delete e.cid,delete e.uip,delete e.sr,delete e.ul,delete e.sn,delete e.vid,delete e.cuid,e})),e}},{key:"getErrorMessage",value:function(){return"Please check required fields"}}]),n}(st);function ie(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function oe(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ie(Object(n),!0).forEach((function(e){J()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ie(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ae(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h()(t);if(e){var i=h()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}var ce="property type is required and must ",se=function(t){s()(E,t);var n,r,i,o,c,u,f,l,h,p,v,d,g,y,m,b,x,I,O=ae(E);function E(){return O.apply(this,arguments)}return a()(E,[{key:"setConsent",value:function(t){var e=this,n="setConsent";this.visitor.hasConsented=t,t||(this.flushHits(),this.flushVisitor()),this.hasTrackingManager(n)&&this.trackingManager.sendConsentHit(this.visitor).catch((function(t){W(e.config,t.message||t,n)}))}},{key:"checkPredefinedContext",value:function(t,e){var n=Zt[t];if(!n)return null;var r=!1;return"string"===n?r="string"==typeof e:"number"===n&&(r="number"==typeof e),r||W(this.config,K("Predefined Context {0} must be type of {1}",t,n),R),r}},{key:"updateContextKeyValue",value:function(t,n){var r=e()(n);if("string"!=typeof t||""===t||"string"!==r&&"number"!==r&&"boolean"!==r)W(this.visitor.config,K("params {0} must be a non null String, and 'value' must be one of the following types , Number, Boolean",t),R);else if(!t.match(/^fs_/i)){var i=this.checkPredefinedContext(t,n);("boolean"!=typeof i||i)&&(this.visitor.context[t]=n)}}},{key:"updateContext",value:function(t){if(t)for(var e in t){var n=t[e];this.updateContextKeyValue(e,n)}else W(this.visitor.config,"Context must not to be null",R)}},{key:"clearContext",value:function(){this.visitor.context={}}},{key:"checkAndGetModification",value:function(t,n){var r=t.key,i=t.defaultValue,o=t.activate;if(!r||"string"!=typeof r)return W(this.config,K(C,r),N),i;var a=this.visitor.modifications.get(r);return a?"object"===e()(a.value)&&"object"===e()(i)&&Array.isArray(a.value)!==Array.isArray(i)||e()(a.value)!==e()(i)?(W(this.config,K("Modification for key {0} has a different type. Default value is returned.",r),N),a.value||!o&&!n||this.activateModification(r),i):((o||n)&&this.activateModification(r),a.value):(z(this.config,K("No modification for key {0}. Default value is returned.",r),N),i)}},{key:"getModifications",value:(I=nt()(it().mark((function t(e,n){return it().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.getModificationsSync(e,n));case 1:case"end":return t.stop()}}),t,this)}))),function(t,e){return I.apply(this,arguments)})},{key:"getModificationsSync",value:function(t,e){var n=this,r={};return t.forEach((function(t){r[t.key]=n.checkAndGetModification(t,e)})),r}},{key:"getModification",value:(x=nt()(it().mark((function t(e){return it().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.getModificationSync(e));case 1:case"end":return t.stop()}}),t,this)}))),function(t){return x.apply(this,arguments)})},{key:"getModificationSync",value:function(t){return this.checkAndGetModification(t)}},{key:"getModificationInfo",value:(b=nt()(it().mark((function t(e){return it().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.getModificationInfoSync(e));case 1:case"end":return t.stop()}}),t,this)}))),function(t){return b.apply(this,arguments)})},{key:"getModificationInfoSync",value:function(t){return t&&"string"==typeof t?this.visitor.modifications.get(t)||(W(this.visitor.config,K(S,t),P),null):(W(this.visitor.config,K(C,t),P),null)}},{key:"checkLookupVisitorDataV1",value:function(t){if(!t||!t.data||!t.data.visitorId)return!1;var e=t.data.campaigns;return!e||!!Array.isArray(e)&&e.every((function(t){return t.campaignId&&t.type&&t.variationGroupId&&t.variationId}))}},{key:"checKLookupVisitorData",value:function(t){return 1===t.version&&this.checkLookupVisitorDataV1(t)}},{key:"lookupVisitor",value:(m=nt()(it().mark((function t(){var e,n,r;return it().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,e=this.config.visitorCacheImplementation,!this.config.disableCache&&e&&e.lookupVisitor&&"function"==typeof e.lookupVisitor){t.next=4;break}return t.abrupt("return");case 4:if(n=e.lookupVisitor(this.visitor.visitorId)){t.next=7;break}return t.abrupt("return");case 7:if(r=n,this.checKLookupVisitorData(r)){t.next=10;break}throw new Error("JSON DATA must fit the type VisitorCacheLookupDTO");case 10:this.visitor.visitorCache=r,t.next=16;break;case 13:t.prev=13,t.t0=t.catch(0),W(this.config,t.t0.message||t.t0,"lookupVisitor");case 16:case"end":return t.stop()}}),t,this,[[0,13]])}))),function(){return m.apply(this,arguments)})},{key:"cacheVisitor",value:(y=nt()(it().mark((function t(){var e,n;return it().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,e=this.config.visitorCacheImplementation,!this.config.disableCache&&!this.decisionManager.isPanic()&&e&&e.cacheVisitor&&"function"==typeof e.cacheVisitor){t.next=4;break}return t.abrupt("return");case 4:n={version:1,data:{visitorId:this.visitor.visitorId,anonymousId:this.visitor.anonymousId,consent:this.visitor.hasConsented,context:this.visitor.context,campaigns:this.visitor.campaigns.map((function(t){return{campaignId:t.id,variationGroupId:t.variationGroupId,variationId:t.variation.id,isReference:t.variation.reference,type:t.variation.modifications.type,activated:!1,flags:t.variation.modifications.value}}))}},e.cacheVisitor(this.visitor.visitorId,n),this.visitor.visitorCache=n,t.next=12;break;case 9:t.prev=9,t.t0=t.catch(0),W(this.config,t.t0.message||t.t0,"cacheVisitor");case 12:case"end":return t.stop()}}),t,this,[[0,9]])}))),function(){return y.apply(this,arguments)})},{key:"flushVisitor",value:(g=nt()(it().mark((function t(){var e;return it().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,e=this.config.visitorCacheImplementation,!this.config.disableCache&&e&&e.cacheVisitor&&"function"==typeof e.flushVisitor){t.next=4;break}return t.abrupt("return");case 4:e.flushVisitor(this.visitor.visitorId),t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),W(this.config,t.t0.message||t.t0,"flushVisitor");case 10:case"end":return t.stop()}}),t,this,[[0,7]])}))),function(){return g.apply(this,arguments)})},{key:"fetchVisitorCampaigns",value:function(t){return t.visitorCache&&t.visitorCache.data&&t.visitorCache.data.campaigns?(this.setConsent(!!t.visitorCache.data.consent),t.updateContext(t.visitorCache.data.context||{}),t.visitorCache.data.campaigns.map((function(t){return{id:t.campaignId,variationGroupId:t.variationGroupId,variation:{id:t.variationId,reference:!!t.isReference,modifications:{type:t.type,value:t.flags}}}}))):[]}},{key:"synchronizeModifications",value:(d=nt()(it().mark((function t(){var e;return it().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.lookupVisitor();case 3:return t.next=5,this.decisionManager.getCampaignsAsync(this.visitor);case 5:(e=t.sent).length||(e=this.fetchVisitorCampaigns(this.visitor)),this.visitor.campaigns=e,this.visitor.modifications=this.decisionManager.getModifications(this.visitor.campaigns),this.cacheVisitor(),this.visitor.emit(w),t.next=17;break;case 13:t.prev=13,t.t0=t.catch(0),this.visitor.emit(w,t.t0),W(this.config,t.t0.message||t.t0,"SYNCHRONIZED MODIFICATION");case 17:case"end":return t.stop()}}),t,this,[[0,13]])}))),function(){return d.apply(this,arguments)})},{key:"activateModification",value:(v=nt()(it().mark((function t(e){return it().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e&&"string"==typeof e){t.next=3;break}return W(this.config,K(C,e),T),t.abrupt("return");case 3:return t.abrupt("return",this.activate(e));case 4:case"end":return t.stop()}}),t,this)}))),function(t){return v.apply(this,arguments)})},{key:"activateModifications",value:(p=nt()(it().mark((function t(e){var n=this;return it().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e&&Array.isArray(e)){t.next=3;break}return W(this.config,K(C,e),T),t.abrupt("return");case 3:e.forEach((function(t){"string"==typeof t?n.activate(t):n.activate(t.key)}));case 4:case"end":return t.stop()}}),t,this)}))),function(t){return p.apply(this,arguments)})},{key:"hasTrackingManager",value:function(t){var e=this.trackingManager;return e||W(this.config,K("trackerManager must not be null."),t),!!e}},{key:"isDeDuplicated",value:function(t,e){if(0===e)return!1;var n=this.visitor.deDuplicationCache[t];return!!(n&&Date.now()-n<=1e3*e)||(this.visitor.deDuplicationCache[t]=Date.now(),this.visitor.clearDeDuplicationCache(e),!1)}},{key:"sendActivate",value:(h=nt()(it().mark((function t(e){return it().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.trackingManager.sendActive(this.visitor,e);case 3:t.next=9;break;case 5:t.prev=5,t.t0=t.catch(0),W(this.config,t.t0.message||t.t0,T),this.cacheHit(e);case 9:case"end":return t.stop()}}),t,this,[[0,5]])}))),function(t){return h.apply(this,arguments)})},{key:"activate",value:(l=nt()(it().mark((function t(e){var n;return it().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.isDeDuplicated(e,this.config.activateDeduplicationTime)){t.next=2;break}return t.abrupt("return");case 2:if(n=this.visitor.modifications.get(e)){t.next=6;break}return W(this.visitor.config,K(S,e),T),t.abrupt("return");case 6:if(this.hasTrackingManager(T)){t.next=8;break}return t.abrupt("return");case 8:return t.next=10,this.sendActivate(n);case 10:case"end":return t.stop()}}),t,this)}))),function(t){return l.apply(this,arguments)})},{key:"sendHit",value:function(t){return this.hasTrackingManager(j)?this.prepareAndSendHit(t):Promise.resolve()}},{key:"sendHits",value:(f=nt()(it().mark((function t(e){var n=this;return it().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.hasTrackingManager(j)){t.next=2;break}return t.abrupt("return");case 2:e.forEach((function(t){return n.prepareAndSendHit(t)}));case 3:case"end":return t.stop()}}),t,this)}))),function(t){return f.apply(this,arguments)})},{key:"getHitLegacy",value:function(t){var e=null;if(!t||!t.type)return null;var n={type:{Screen:k.SCREEN_VIEW,ScreenView:k.SCREEN_VIEW,Transaction:k.TRANSACTION,Page:k.PAGE_VIEW,PageView:k.PAGE_VIEW,Item:k.ITEM,Event:k.EVENT}[t.type]},r=oe(oe({},n),t.data);switch(n.type.toUpperCase()){case k.EVENT:e=new lt(r);break;case k.ITEM:var i=t.data;e=new vt(oe(oe({},r),{},{productName:i.name,productSku:i.code,transactionId:i.transactionId,itemCategory:i.category,itemPrice:i.price,itemQuantity:i.quantity}));break;case k.PAGE_VIEW:e=new yt(r);break;case k.SCREEN_VIEW:e=new kt(r);break;case k.TRANSACTION:e=new Ot(t.data)}return e}},{key:"getHit",value:function(t){var e,n=this,r=null;if(!t||!t.type)return r;switch(t.type.toUpperCase()){case k.EVENT:r=new lt(t);break;case k.ITEM:r=new vt(t);break;case k.PAGE_VIEW:r=new yt(t);break;case k.SCREEN_VIEW:r=new kt(t);break;case k.TRANSACTION:r=new Ot(t);break;case ne:r=new re({hits:null==t||null==(e=t.hits)?void 0:e.map((function(t){return n.getHit(t)})).filter((function(t){return t}))})}return r}},{key:"checKLookupHitData",value:function(t){return!!(t&&1===t.version&&t.data&&t.data.type&&t.data.visitorId)||(W(this.config,"JSON DATA must fit the type HitCacheLookupDTO","lookupHits"),!1)}},{key:"lookupHits",value:(u=nt()(it().mark((function t(){var e,n,r,i,o,a,c=this;return it().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,e=this.config.hitCacheImplementation,!this.config.disableCache&&e&&"function"==typeof e.lookupHits){t.next=4;break}return t.abrupt("return");case 4:if(n=e.lookupHits(this.visitor.visitorId)){t.next=7;break}return t.abrupt("return");case 7:if(r=n,Array.isArray(r)){t.next=10;break}throw Error("JSON DATA must be an array of object");case 10:if(i=function(t){return(Date.now()-t)/1e3<=144e5},o=[{type:"BATCH",hits:[]}],a=0,r.filter((function(t){return c.checKLookupHitData(t)&&i(t.data.time)})).forEach((function(t){"ACTIVATE"!==t.data.type?JSON.stringify(o[a]).length>2500?(a++,o[a]={type:"BATCH",hits:[t.data.content]}):o[a].hits.push(t.data.content):c.sendActivate(t.data.content)})),1!==o.length||o[0].hits.length){t.next=17;break}return t.abrupt("return");case 17:this.sendHits(o),t.next=23;break;case 20:t.prev=20,t.t0=t.catch(0),W(this.config,t.t0.message||t.t0,"lookupHits");case 23:case"end":return t.stop()}}),t,this,[[0,20]])}))),function(){return u.apply(this,arguments)})},{key:"cacheHit",value:(c=nt()(it().mark((function t(e){var n,r;return it().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,n=this.config.hitCacheImplementation,!this.config.disableCache&&n&&"function"==typeof n.cacheHit){t.next=4;break}return t.abrupt("return");case 4:r={version:1,data:{visitorId:this.visitor.visitorId,anonymousId:this.visitor.anonymousId,type:e instanceof st?e.type:"ACTIVATE",content:e instanceof st?e.toObject():e,time:Date.now()}},n.cacheHit(this.visitor.visitorId,r),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),W(this.config,t.t0.message||t.t0,"cacheHit");case 11:case"end":return t.stop()}}),t,this,[[0,8]])}))),function(t){return c.apply(this,arguments)})},{key:"flushHits",value:(o=nt()(it().mark((function t(){var e;return it().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,e=this.config.hitCacheImplementation,!this.config.disableCache&&e&&"function"==typeof e.flushHits){t.next=4;break}return t.abrupt("return");case 4:e.flushHits(this.visitor.visitorId),t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),W(this.config,t.t0.message||t.t0,"flushHits");case 10:case"end":return t.stop()}}),t,this,[[0,7]])}))),function(){return o.apply(this,arguments)})},{key:"prepareAndSendHit",value:(i=nt()(it().mark((function t(e){var n,r,i,o,a,c=this;return it().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e instanceof st)){t.next=4;break}n=e,t.next=18;break;case 4:if(!("data"in e)){t.next=13;break}if(r=e,i=this.getHitLegacy(r)){t.next=10;break}return W(this.config,ce,j),t.abrupt("return");case 10:n=i,t.next=18;break;case 13:if(o=this.getHit(e)){t.next=17;break}return W(this.config,ce,j),t.abrupt("return");case 17:n=o;case 18:if(n.visitorId=this.visitor.visitorId,n.ds="APP",n.config=this.config,n.anonymousId=this.visitor.anonymousId,!this.isDeDuplicated(JSON.stringify(n),this.config.hitDeduplicationTime)){t.next=24;break}return t.abrupt("return");case 24:if(n.isReady()){t.next=27;break}return W(this.config,n.getErrorMessage(),j),t.abrupt("return");case 27:return t.prev=27,t.next=30,this.trackingManager.sendHit(n);case 30:t.next=39;break;case 32:if(t.prev=32,t.t0=t.catch(27),W(this.config,t.t0.message||t.t0,j),!(n instanceof re)){t.next=38;break}return null==(a=n.hits)||a.forEach((function(t){c.cacheHit(t)})),t.abrupt("return");case 38:this.cacheHit(n);case 39:case"end":return t.stop()}}),t,this,[[27,32]])}))),function(t){return i.apply(this,arguments)})},{key:"getAllModifications",value:(r=nt()(it().mark((function t(){var e=this,n=arguments;return it().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n.length>0&&void 0!==n[0]&&n[0]&&this.visitor.modifications.forEach((function(t,n){e.activateModification(n)})),t.abrupt("return",{visitorId:this.visitor.visitorId,campaigns:this.visitor.campaigns});case 3:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"getModificationsForCampaign",value:(n=nt()(it().mark((function t(e){var n=this,r=arguments;return it().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r.length>1&&void 0!==r[1]&&r[1]&&this.visitor.modifications.forEach((function(t){t.campaignId===e&&n.activateModification(t.key)})),t.abrupt("return",{visitorId:this.visitor.visitorId,campaigns:this.visitor.campaigns.filter((function(t){return t.id===e}))});case 3:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})},{key:"authenticate",value:function(t){var e="authenticate";this.config.decisionMode!==G.BUCKETING?t?(this.visitor.anonymousId=this.visitor.visitorId,this.visitor.visitorId=t):W(this.config,_,e):this.logDeactivateOnBucketing(e)}},{key:"unauthenticate",value:function(){var t="unauthenticate";this.config.decisionMode!==G.BUCKETING?this.visitor.anonymousId?(this.visitor.visitorId=this.visitor.anonymousId,this.visitor.anonymousId=null):W(this.config,"Visitor is not authenticated yet",t):this.logDeactivateOnBucketing(t)}},{key:"logDeactivateOnBucketing",value:function(t){W(this.config,K("Method {0} is deactivated on Bucketing mode.",t),t)}}]),E}(Nt);function ue(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h()(t);if(e){var i=h()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}var fe=function(t){s()(u,t);var e,n,r,i,o,c=ue(u);function u(){return c.apply(this,arguments)}return a()(u,[{key:"synchronizeModifications",value:function(){return this.log("synchronizeModifications"),Promise.resolve()}},{key:"getModificationSync",value:function(t){return this.log("getModification"),t.defaultValue}},{key:"getModificationsSync",value:function(t,e){this.log("getModifications");var n={};return t.forEach((function(t){n[t.key]=t.defaultValue})),n}},{key:"lookupHits",value:(o=nt()(it().mark((function t(){return it().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return o.apply(this,arguments)})},{key:"lookupVisitor",value:(i=nt()(it().mark((function t(){return it().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return i.apply(this,arguments)})},{key:"cacheVisitor",value:(r=nt()(it().mark((function t(){return it().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return r.apply(this,arguments)})},{key:"getModificationInfoSync",value:function(t){return this.log("getModificationInfo"),null}},{key:"activateModification",value:(n=nt()(it().mark((function t(e){return it().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.log("activateModification");case 1:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})},{key:"activateModifications",value:(e=nt()(it().mark((function t(e){return it().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.log("activateModifications");case 1:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"sendHit",value:function(t){return this.log("sendHit"),Promise.resolve()}},{key:"sendHits",value:function(t){return this.log("sendHits"),Promise.resolve()}},{key:"log",value:function(t){W(this.config,K(A,t,b[b.NOT_INITIALIZED]),t)}}]),u}(se);function le(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h()(t);if(e){var i=h()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}var he=function(t){s()(u,t);var e,n,r,i,o,c=le(u);function u(){return c.apply(this,arguments)}return a()(u,[{key:"setConsent",value:function(t){this.visitor.hasConsented=t,W(this.config,K("Send consent hit is deactivated while SDK status is: {1}.",b[b.READY_PANIC_ON]),"setConsent")}},{key:"updateContext",value:function(t){this.log("updateContext")}},{key:"clearContext",value:function(){this.log("clearContext")}},{key:"getModificationSync",value:function(t){return this.log("getModification"),t.defaultValue}},{key:"lookupHits",value:(o=nt()(it().mark((function t(){return it().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return o.apply(this,arguments)})},{key:"lookupVisitor",value:(i=nt()(it().mark((function t(){return it().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return i.apply(this,arguments)})},{key:"cacheVisitor",value:(r=nt()(it().mark((function t(){return it().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return r.apply(this,arguments)})},{key:"fetchVisitorCampaigns",value:function(){return[]}},{key:"getModificationsSync",value:function(t,e){this.log("getModifications");var n={};return t.forEach((function(t){n[t.key]=t.defaultValue})),n}},{key:"getModificationInfoSync",value:function(t){return this.log("getModificationInfo"),null}},{key:"activateModification",value:(n=nt()(it().mark((function t(e){return it().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.log("activateModification");case 1:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})},{key:"activateModifications",value:(e=nt()(it().mark((function t(e){return it().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.log("activateModifications");case 1:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"sendHit",value:function(t){return this.log("sendHit"),Promise.resolve()}},{key:"sendHits",value:function(t){return this.log("sendHits"),Promise.resolve()}},{key:"log",value:function(t){W(this.config,K(A,t,b[b.READY_PANIC_ON]),t)}}]),u}(se);function pe(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h()(t);if(e){var i=h()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}var ve=function(t){s()(f,t);var e,n,r,i,o,c,u=pe(f);function f(){return u.apply(this,arguments)}return a()(f,[{key:"activateModification",value:(c=nt()(it().mark((function t(e){return it().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.log("activateModification");case 1:case"end":return t.stop()}}),t,this)}))),function(t){return c.apply(this,arguments)})},{key:"activateModifications",value:(o=nt()(it().mark((function t(e){return it().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.log("activateModifications");case 1:case"end":return t.stop()}}),t,this)}))),function(t){return o.apply(this,arguments)})},{key:"lookupHits",value:(i=nt()(it().mark((function t(){return it().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return i.apply(this,arguments)})},{key:"lookupVisitor",value:(r=nt()(it().mark((function t(){return it().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return r.apply(this,arguments)})},{key:"cacheVisitor",value:(n=nt()(it().mark((function t(){return it().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return n.apply(this,arguments)})},{key:"cacheHit",value:(e=nt()(it().mark((function t(){return it().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return e.apply(this,arguments)})},{key:"fetchVisitorCampaigns",value:function(){return[]}},{key:"sendHit",value:function(t){return this.log("sendHit"),Promise.resolve()}},{key:"sendHits",value:function(t){return this.log("sendHits"),Promise.resolve()}},{key:"log",value:function(t){W(this.config,K("Method {0} is deactivated for visitor {1} : visitor did not consent.",t,this.visitor.visitorId),t)}}]),f}(se),de="FS_CLIENT_VISITOR",ge=function(t){s()(n,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h()(t);if(e){var i=h()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}(n);function n(){return e.apply(this,arguments)}return a()(n,[{key:"updateContext",value:function(t){this.getStrategy().updateContext(t)}},{key:"clearContext",value:function(){this.getStrategy().clearContext()}},{key:"getModification",value:function(t){return this.getStrategy().getModification(t)}},{key:"getModificationSync",value:function(t){return this.getStrategy().getModificationSync(t)}},{key:"getModifications",value:function(t,e){return this.getStrategy().getModifications(t,e)}},{key:"getModificationsSync",value:function(t,e){return this.getStrategy().getModificationsSync(t,e)}},{key:"getModificationInfo",value:function(t){return this.getStrategy().getModificationInfo(t)}},{key:"getModificationInfoSync",value:function(t){return this.getStrategy().getModificationInfoSync(t)}},{key:"synchronizeModifications",value:function(){return this.getStrategy().synchronizeModifications()}},{key:"activateModification",value:function(t){return this.getStrategy().activateModification(t)}},{key:"activateModifications",value:function(t){return this.getStrategy().activateModifications(t)}},{key:"sendHit",value:function(t){return this.getStrategy().sendHit(t)}},{key:"sendHits",value:function(t){return this.getStrategy().sendHits(t)}},{key:"getAllModifications",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.getStrategy().getAllModifications(t)}},{key:"getModificationsForCampaign",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.getStrategy().getModificationsForCampaign(t,e)}},{key:"authenticate",value:function(t){this.getStrategy().authenticate(t),this.updateCache()}},{key:"unauthenticate",value:function(){this.getStrategy().unauthenticate(),this.updateCache()}}]),n}(function(t){s()(n,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h()(t);if(e){var i=h()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}(n);function n(t){var n,r=t.visitorId,i=t.configManager,o=t.context,a=t.isAuthenticated,c=t.hasConsented,s=t.initialModifications,u=t.initialCampaigns;(n=e.call(this))._isCleaningDeDuplicationCache=!1,n.deDuplicationCache={},n._configManager=i;var f=n.config.enableClientCache?function(){var t=null;try{t=localStorage.getItem(de)}catch(t){}return t?JSON.parse(t):null}():null;return n.visitorId=r||(null==f?void 0:f.visitorId)||n.createVisitorId(),n.setConsent(null==c||c),n.campaigns=[],n._context={},n.updateContext(o),n._anonymousId=(null==f?void 0:f.anonymousId)||null,n.loadPredefinedContext(),!n._anonymousId&&a&&n.config.decisionMode===G.DECISION_API&&(n._anonymousId=n.uuidV4()),n.updateCache(),n.setInitialModifications(s),n.setInitializeCampaigns(u,!!s),n.getStrategy().lookupVisitor(),n.getStrategy().lookupHits(),n}return a()(n,[{key:"clearDeDuplicationCache",value:function(t){if(!this._isCleaningDeDuplicationCache){this._isCleaningDeDuplicationCache=!0;for(var e=0,n=Object.entries(this.deDuplicationCache);e<n.length;e++){var r=Et()(n[e],2),i=r[0],o=r[1];Date.now()-o>1e3*t&&delete this.deDuplicationCache[i]}this._isCleaningDeDuplicationCache=!1}}},{key:"getModificationsArray",value:function(){return Array.from(this._modifications,(function(t){var e=Et()(t,2);return e[0],e[1]}))}},{key:"setInitialModifications",value:function(t){var e=this;this._modifications=new Map,t&&(t instanceof Map||Array.isArray(t))&&t.forEach((function(t){e._modifications.set(t.key,t)}))}},{key:"setInitializeCampaigns",value:function(t,e){t&&Array.isArray(t)&&!e&&this.getStrategy().updateCampaigns(t)}},{key:"updateCache",value:function(){!function(t){try{localStorage.setItem(de,JSON.stringify(t))}catch(t){}}({visitorId:this.visitorId,anonymousId:this.anonymousId})}},{key:"loadPredefinedContext",value:function(){this.context.fs_client=x,this.context.fs_version=O,this.context.fs_users=this.visitorId}},{key:"uuidV4",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}))}},{key:"createVisitorId",value:function(){var t=new Date,e=Math.floor(89999*Math.random()+1e4),n=function(t){return 1===t.toString().length?"0".concat(t):t};return"".concat(t.getFullYear()).concat(n(t.getMonth()+1)).concat(n(t.getDate())).concat(n(t.getHours())).concat(n(t.getMinutes())).concat(e)}},{key:"visitorId",get:function(){return this._visitorId},set:function(t){t&&"string"==typeof t?this._visitorId=t:W(this.config,_,"VISITOR ID")}},{key:"hasConsented",get:function(){return this._hasConsented},set:function(t){this._hasConsented=t}},{key:"setConsent",value:function(t){this.hasConsented=t,this.getStrategy().setConsent(t)}},{key:"context",get:function(){return this._context},set:function(t){this._context={},this.updateContext(t)}},{key:"modifications",get:function(){return this._modifications},set:function(t){this._modifications=t}},{key:"configManager",get:function(){return this._configManager}},{key:"config",get:function(){return this.configManager.config}},{key:"campaigns",get:function(){return this._campaigns},set:function(t){this._campaigns=t}},{key:"anonymousId",get:function(){return this._anonymousId},set:function(t){this._anonymousId=t}},{key:"getStrategy",value:function(){var t=function(t,e){return t&&t.constructor.name===e};return Ae.getStatus()&&Ae.getStatus()!==b.NOT_INITIALIZED?Ae.getStatus()===b.READY_PANIC_ON?this._strategy=t(this._strategy,he.name)?this._strategy:new he(this):this.hasConsented?this._strategy=t(this._strategy,se.name)?this._strategy:new se(this):this._strategy=t(this._strategy,ve.name)?this._strategy:new ve(this):this._strategy=t(this._strategy,fe.name)?this._strategy:new fe(this),this._strategy}}]),n}(p.EventEmitter));function ye(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return me(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?me(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){c=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw o}}}}function me(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n(7042),n(1817),n(2165),n(9826),n(6755),n(7852);var be=function(t){s()(o,t);var e,n,r,i=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h()(t);if(e){var i=h()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}(o);function o(t,e,n){var r;return(r=i.call(this,t,e))._murmurHash=n,r._isFirstPooling=!0,e.initialBucketing&&(r._bucketingContent=e.initialBucketing),r}return a()(o,[{key:"finishLoop",value:function(t){if(200===t.status&&(this._bucketingContent=t.body),t.headers&&t.headers["last-modified"]){var e=t.headers["last-modified"];this._lastModified!==e&&this.config.onBucketingUpdated&&this.config.onBucketingUpdated(new Date(e)),this._lastModified=e}this._isFirstPooling&&(this._isFirstPooling=!1,this.updateFlagshipStatus(b.READY)),"function"==typeof this.config.onBucketingSuccess&&this.config.onBucketingSuccess({status:t.status,payload:this._bucketingContent}),this._isPooling=!1}},{key:"startPolling",value:function(){var t,e=this,n=1e3*(null!=(t=this.config.pollingInterval)?t:2);z(this.config,"Bucketing polling starts","startPolling"),this.polling(),0!==n&&(this._intervalID=setInterval((function(){e.polling()}),n))}},{key:"polling",value:(r=nt()(it().mark((function t(){var e,n,r,i;return it().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this._isPooling){t.next=2;break}return t.abrupt("return");case 2:return this._isPooling=!0,this._isFirstPooling&&this.updateFlagshipStatus(b.POLLING),t.prev=4,n=K("https://cdn.flagship.io/{0}/bucketing.json",this.config.envId),e={},J()(e,L,"".concat(this.config.apiKey)),J()(e,F,x),J()(e,H,O),J()(e,V,B),r=e,this._lastModified&&(r["if-modified-since"]=this._lastModified),t.next=10,this._httpClient.getAsync(n,{headers:r,timeout:this.config.timeout});case 10:i=t.sent,this.finishLoop(i),t.next=20;break;case 14:t.prev=14,t.t0=t.catch(4),this._isPooling=!1,W(this.config,t.t0,"startPolling"),this._isFirstPooling&&this.updateFlagshipStatus(b.NOT_INITIALIZED),"function"==typeof this.config.onBucketingFail&&this.config.onBucketingFail(new Error(t.t0));case 20:case"end":return t.stop()}}),t,this,[[4,14]])}))),function(){return r.apply(this,arguments)})},{key:"stopPolling",value:function(){clearInterval(this._intervalID),this._isPooling=!1,z(this.config,"Bucketing polling stopped","stopPolling")}},{key:"sendContext",value:(n=nt()(it().mark((function t(e){var n,r,i,o;return it().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,r=K("https://decision.flagship.io/v2/{0}/events",this.config.envId),n={},J()(n,L,"".concat(this.config.apiKey)),J()(n,F,x),J()(n,H,O),J()(n,V,B),i=n,o={visitorId:e.visitorId,type:"CONTEXT",data:e.context},t.next=6,this._httpClient.postAsync(r,{headers:i,body:o,timeout:this.config.timeout});case 6:t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),W(this.config,t.t0.message||t.t0,"sendContext");case 11:case"end":return t.stop()}}),t,this,[[0,8]])}))),function(t){return n.apply(this,arguments)})},{key:"getCampaignsAsync",value:(e=nt()(it().mark((function t(e){var n,r=this;return it().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.sendContext(e),this._bucketingContent){t.next=3;break}return t.abrupt("return",[]);case 3:if(!this._bucketingContent.panic){t.next=6;break}return this.panic=!0,t.abrupt("return",[]);case 6:if(this.panic=!1,this._bucketingContent.campaigns){t.next=9;break}return t.abrupt("return",[]);case 9:return n=[],this._bucketingContent.campaigns.forEach((function(t){var i=r.getVisitorCampaigns(t.variationGroups,t.id,e);i&&n.push(i)})),t.abrupt("return",n);case 12:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"getVisitorCampaigns",value:function(t,e,n){var r,i=ye(t);try{for(i.s();!(r=i.n()).done;){var o=r.value;if(this.isMatchTargeting(o,n)){var a=this.getVariation(o,n);return a?{id:e,variation:a,variationGroupId:o.id}:null}}}catch(t){i.e(t)}finally{i.f()}return null}},{key:"getVariation",value:function(t,e){var n,r=this._murmurHash.murmurHash3Int32(t.id+e.visitorId)%100,i=0,o=ye(t.variations);try{for(o.s();!(n=o.n()).done;){var a,c,s,u=n.value,f=null==(a=e.visitorCache)||null==(c=a.data)||null==(s=c.campaigns)?void 0:s.find((function(e){return e.variationGroupId===t.id}));if(f)return{id:f.variationId,modifications:{type:f.type,value:f.flags},reference:f.isReference};if(void 0!==u.allocation&&r<=(i+=u.allocation))return{id:u.id,modifications:u.modifications,reference:u.reference}}}catch(t){o.e(t)}finally{o.f()}return null}},{key:"isMatchTargeting",value:function(t,e){var n=this;return!!(t&&t.targeting&&t.targeting.targetingGroups)&&t.targeting.targetingGroups.some((function(t){return n.checkAndTargeting(t.targetings,e)}))}},{key:"isANDListOperator",value:function(t){return["NOT_EQUALS","NOT_CONTAINS"].includes(t)}},{key:"checkAndTargeting",value:function(t,e){var n,r,i=!1,o=ye(t);try{for(o.s();!(r=o.n()).done;){var a=r.value,c=a.key,s=a.value,u=a.operator;if("fs_all_users"!==c){if("fs_users"===c)n=e.visitorId;else{if(!(c in e.context)){i=!1;break}n=e.context[c]}if(!(i=this.testOperator(u,n,s)))break}else i=!0}}catch(t){o.e(t)}finally{o.f()}return i}},{key:"testListOperatorLoop",value:function(t,e,n,r){var i,o=r,a=ye(n);try{for(a.s();!(i=a.n()).done;){var c=i.value;if((o=this.testOperator(t,e,c))!==r)break}}catch(t){a.e(t)}finally{a.f()}return o}},{key:"testListOperator",value:function(t,e,n){return this.isANDListOperator(t)?this.testListOperatorLoop(t,e,n,!0):this.testListOperatorLoop(t,e,n,!1)}},{key:"testOperator",value:function(t,e,n){var r;if(Array.isArray(n))return this.testListOperator(t,e,n);switch(t){case"EQUALS":r=e===n;break;case"NOT_EQUALS":r=e!==n;break;case"CONTAINS":r=e.toString().includes(n.toString());break;case"NOT_CONTAINS":r=!e.toString().includes(n.toString());break;case"GREATER_THAN":r=e>n;break;case"LOWER_THAN":r=e<n;break;case"GREATER_THAN_OR_EQUALS":r=e>=n;break;case"LOWER_THAN_OR_EQUALS":r=e<=n;break;case"STARTS_WITH":r=e.toString().startsWith(n.toString());break;case"ENDS_WITH":r=e.toString().endsWith(n.toString());break;default:r=!1}return r}}]),o}(ot),ke=function(){function t(){}return a()(t,[{key:"murmurHash3Int32",value:function(t){var e,n,r,i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=3&t.length,c=t.length-a;e=o;var s=3432918353,u=461845907;for(i=0;i<c;)r=255&t.charCodeAt(i)|(255&t.charCodeAt(++i))<<8|(255&t.charCodeAt(++i))<<16|(255&t.charCodeAt(++i))<<24,++i,e=27492+(65535&(n=5*(65535&(e=(e^=r=(65535&(r=(r=(65535&r)*s+(((r>>>16)*s&65535)<<16)&4294967295)<<15|r>>>17))*u+(((r>>>16)*u&65535)<<16)&4294967295)<<13|e>>>19))+((5*(e>>>16)&65535)<<16)&4294967295))+((58964+(n>>>16)&65535)<<16);switch(r=0,a){case 3:r^=(255&t.charCodeAt(i+2))<<16;case 2:r^=(255&t.charCodeAt(i+1))<<8;case 1:e^=r=(65535&(r=(r=(65535&(r^=255&t.charCodeAt(i)))*s+(((r>>>16)*s&65535)<<16)&4294967295)<<15|r>>>17))*u+(((r>>>16)*u&65535)<<16)&4294967295}return e^=t.length,e=2246822507*(65535&(e^=e>>>16))+((2246822507*(e>>>16)&65535)<<16)&4294967295,e=3266489909*(65535&(e^=e>>>13))+((3266489909*(e>>>16)&65535)<<16)&4294967295,(e^=e>>>16)>>>0}}]),t}();n(7727);var xe=i(289);function Ie(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Oe(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ie(Object(n),!0).forEach((function(e){J()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ie(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var we=function(){function t(){}var e;return a()(t,[{key:"getResponse",value:(e=nt()(it().mark((function t(e){var n,r,i,o;return it().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.headers.get("Content-Type"),r="application/json"===n,t.next=4,e.text();case 4:if((i=t.sent)&&r&&(i=JSON.parse(i)),!(e.status>=400)){t.next=8;break}throw new Error(i||e.statusText);case 8:return o={},e.headers.forEach((function(t,e){o[e]=t})),t.abrupt("return",{status:e.status,body:i,headers:o});case 11:case"end":return t.stop()}}),t)}))),function(t){return e.apply(this,arguments)})},{key:"getAsync",value:function(t,e){var n=new xe,r=setTimeout((function(){return n.abort()}),1e3*(null!=e&&e.timeout?e.timeout:2));return g(t,Oe(Oe({},d),{},{method:"GET",headers:null==e?void 0:e.headers,signal:n.signal,keepalive:!0})).then(this.getResponse).catch((function(t){throw t})).finally((function(){clearInterval(r)}))}},{key:"postAsync",value:function(t,e){var n=new xe,r=setTimeout((function(){return n.abort()}),e.timeout?1e3*e.timeout:2e3);return g(t,Oe(Oe({},d),{},{method:"POST",headers:e.headers,body:JSON.stringify(e.body),signal:n.signal,keepalive:!0})).then(this.getResponse).catch((function(t){throw t})).finally((function(){clearInterval(r)}))}}]),t}(),Ce="FS_DEFAULT_HIT_CACHE_",Se=function(){function t(){}return a()(t,[{key:"cacheHit",value:function(t,e){var n=localStorage.getItem(Ce+t),r="";if(n){var i=n.slice(0,-1);r="".concat(i,",").concat(JSON.stringify(e),"]")}else r="[".concat(JSON.stringify(e),"]");localStorage.setItem(Ce+t,r)}},{key:"lookupHits",value:function(t){var e=localStorage.getItem(Ce+t);return localStorage.removeItem(Ce+t),e?JSON.parse(e):null}},{key:"flushHits",value:function(t){localStorage.removeItem(Ce+t)}}]),t}(),Ee="FS_VISITOR_CACHE_",_e=function(){function t(){}return a()(t,[{key:"cacheVisitor",value:function(t,e){localStorage.setItem(Ee+t,JSON.stringify(e))}},{key:"lookupVisitor",value:function(t){var e=localStorage.getItem(Ee+t);return e?JSON.parse(e):null}},{key:"flushVisitor",value:function(t){localStorage.removeItem(Ee+t)}}]),t}(),Ae=function(){function t(){}return a()(t,[{key:"config",get:function(){return this._config}},{key:"configManager",get:function(){return this._configManger},set:function(t){this._configManger=t}},{key:"setStatus",value:function(t){var e=this.config.statusChangedCallback;if(this.config&&e&&this._status!==t)return this._status=t,void e(t);this._status=t}},{key:"getVisitor",value:function(){return this._visitorInstance}},{key:"buildConfig",value:function(t){return t instanceof q?t:(null==t?void 0:t.decisionMode)===G.BUCKETING?new Mt(t):new Z(t)}},{key:"buildDecisionManager",value:function(t,e,n){var r,i=function(e){t.setStatus(e)};if(e.decisionMode===G.BUCKETING){var o=r=new be(n,e,new ke);r.statusChangedCallback(i),o.startPolling()}else(r=new at(n,e)).statusChangedCallback(i);return r}},{key:"newVisitor",value:function(e,n){return t.newVisitor(e,n)}}],[{key:"getInstance",value:function(){return this._instance||(this._instance=new this),this._instance}},{key:"isReady",value:function(){var t,e,n,r,i,o=null==(t=this._instance)||null==(e=t.config)?void 0:e.apiKey,a=null==(n=this._instance)||null==(r=n.config)?void 0:r.envId,c=null==(i=this._instance)?void 0:i.configManager;return!!(this._instance&&o&&a&&c)}},{key:"getStatus",value:function(){return this.getInstance()._status}},{key:"getConfig",value:function(){return this.getInstance()._config}},{key:"getVisitor",value:function(){return this.getInstance().getVisitor()}},{key:"start",value:function(t,n,r){var i,o=this.getInstance();if((r=o.buildConfig(r)).envId=t,r.apiKey=n,o._config=r,o.setStatus(b.STARTING),r.logManager||(r.logManager=new Ct),!t||!n)return o.setStatus(b.NOT_INITIALIZED),W(r,"Params 'envId' and 'apiKey' must not be null or empty.",M),null;var a=null==(i=o.configManager)?void 0:i.decisionManager;"object"===e()(a)&&a instanceof be&&a.stopPolling();var c=new we;a=o.buildDecisionManager(o,r,c);var s=new wt(c,r);return o.configManager?(o.configManager.config=r,o.configManager.decisionManager=a,o.configManager.trackingManager=s):o.configManager=new tt(r,a,s),!r.hitCacheImplementation&&Y()&&(r.hitCacheImplementation=new Se),!r.visitorCacheImplementation&&Y()&&(r.visitorCacheImplementation=new _e),this.isReady()?(o._status===b.STARTING&&o.setStatus(b.READY),z(r,K("Flagship SDK (version: {0}) READY",O),M),o):(o.setStatus(b.NOT_INITIALIZED),null)}},{key:"newVisitor",value:function(t,e){if(!this.isReady())return null;var n,r,i,o,a,c,s=!1,u=!0,f=!Y();"string"==typeof t||null===t?(n=t,r=e||{}):(n=(null==t?void 0:t.visitorId)||null,r=(null==t?void 0:t.context)||{},s=!(null==t||!t.isAuthenticated),u=null==(a=null==t?void 0:t.hasConsented)||a,i=null==t?void 0:t.initialModifications,o=null==t?void 0:t.initialCampaigns,f=null!=(c=null==t?void 0:t.isNewInstance)?c:f);var l=new ge({visitorId:n,context:r,isAuthenticated:s,hasConsented:u,configManager:this.getInstance().configManager,initialModifications:i,initialCampaigns:o}),h=new U(l);return this.getInstance()._visitorInstance=f?void 0:h,this.getConfig().fetchNow&&h.synchronizeModifications(),h}}]),t}();const Me=Ae})(),t.exports=o})()},821:(t,e,n)=>{"use strict";n.d(e,{e:()=>p,X:()=>v}),n(6992),n(1532),n(1539),n(8783),n(3948),n(4747),n(7941),n(2526),n(7327),n(5003),n(9337),n(1817),n(2165),n(7042),n(8309),n(1038);var r=n(6689),i=n.n(r),o=n(6968),a=n(4370);function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o=[],a=!0,c=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){c=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(c)throw i}}return o}}(t,e)||function(t,e){if(t){if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var h={status:{isLoading:!0,isSdkReady:!1}},p=(0,r.createContext)({state:f({},h)}),v=function(t){var e=t.children,n=t.fetchNow,s=t.envId,u=t.apiKey,l=t.decisionMode,v=t.decisionApiUrl,d=t.timeout,g=t.logLevel,y=t.statusChangedCallback,m=t.logManager,b=t.pollingInterval,k=t.visitorData,x=t.onInitStart,I=t.onInitDone,O=t.onBucketingSuccess,w=t.onBucketingFail,C=t.loadingComponent,S=t.onBucketingUpdated,E=t.onUpdate,_=t.enableClientCache,A=t.initialBucketing,M=t.initialCampaigns,R=t.initialModifications,N=t.synchronizeOnBucketingUpdated,P=t.activateDeduplicationTime,T=t.hitDeduplicationTime,j=t.visitorCacheImplementation,D=t.hitCacheImplementation,L=t.disableCache,V=new Map;R?R.forEach((function(t){V.set(t.key,t)})):M&&(V=(0,a.B$)(M));var F=c((0,r.useState)(f(f({},h),{},{modifications:V})),2),H=F[0],B=F[1],G=c((0,r.useState)(),2),U=G[0],K=G[1],W=(0,r.useRef)();W.current=H,(0,r.useEffect)((function(){var t;N&&(null===(t=H.visitor)||void 0===t||t.synchronizeModifications())}),[U]),(0,r.useEffect)((function(){z()}),[JSON.stringify(k)]),(0,r.useEffect)((function(){Q()}),[s,u,l]);var z=function(){H.visitor&&(k.context&&(H.visitor.clearContext(),H.visitor.updateContext(k.context)),"boolean"==typeof k.hasConsented&&H.visitor.setConsent(k.hasConsented),H.visitor.anonymousId&&!k.isAuthenticated?H.visitor.unauthenticate():!H.visitor.anonymousId&&k.isAuthenticated&&H.visitor.authenticate(k.id),k.id&&(H.visitor.visitorId=k.id),H.visitor.synchronizeModifications())};function Y(t){var e={isSdkReady:t.isSdkReady,isLoading:t.isLoading,isVisitorDefined:!!t.fsVisitor,lastRefresh:(new Date).toISOString()};return B((function(n){return n.status.firstInitSuccess||(e.firstInitSuccess=(new Date).toISOString()),f(f({},n),{},{visitor:t.fsVisitor,modifications:t.fsVisitor.modifications,config:o.Flagship.getConfig(),status:f(f({},n.status),e)})})),e}var q,$=function(t){if(y&&y(t),t===o.FlagshipStatus.STARTING&&x)x();else if(t===o.FlagshipStatus.READY_PANIC_ON||t===o.FlagshipStatus.READY){var e;if(I&&I(),null!==(e=W.current)&&void 0!==e&&e.visitor){var r;null===(r=W.current)||void 0===r||r.visitor.synchronizeModifications()}else{var i=o.Flagship.newVisitor({visitorId:k.id,context:k.context,isAuthenticated:k.isAuthenticated,hasConsented:k.hasConsented,initialCampaigns:M,initialModifications:R});null==i||i.on("ready",(function(t){!function(t,e){if(e)(0,a.H)(o.Flagship.getConfig(),e.message||e,"onReady");else{var n=Y({fsVisitor:t,isSdkReady:!0,isLoading:!1});E&&E({fsModifications:t.modifications,config:o.Flagship.getConfig(),status:n})}}(i,t)})),!n&&i&&Y({fsVisitor:i,isSdkReady:!0,isLoading:!1})}}},J=function(t){S&&S(t),K(t)},Q=function(){o.Flagship.start(s,u,{decisionMode:l,fetchNow:n,timeout:d,logLevel:g,statusChangedCallback:$,logManager:m,pollingInterval:b,onBucketingFail:w,onBucketingSuccess:O,enableClientCache:_,decisionApiUrl:v,onBucketingUpdated:J,initialBucketing:A,activateDeduplicationTime:P,hitDeduplicationTime:T,visitorCacheImplementation:j,hitCacheImplementation:D,disableCache:L})};return i().createElement(p.Provider,{value:{state:H,setState:B}},(q=!H.visitor,H.status.isLoading&&C&&q?i().createElement(i().Fragment,null,C):i().createElement(i().Fragment,null,e)))};v.defaultProps={nodeEnv:"production",activateDeduplicationTime:10,hitDeduplicationTime:10}},9460:(t,e,n)=>{"use strict";n.d(e,{GW:()=>h,nr:()=>p,_X:()=>d,TM:()=>y,pc:()=>b,UM:()=>k,mq:()=>x,yz:()=>I}),n(5666),n(4747),n(1539),n(8674),n(1038),n(8783),n(2526),n(1817),n(2165),n(6992),n(3948),n(7042),n(8309);var r=n(6689),i=n(821),o=n(4370);function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function c(t,e,n,r,i,o,a){try{var c=t[o](a),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,i)}function s(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){c(o,r,i,a,s,"next",t)}function s(t){c(o,r,i,a,s,"throw",t)}a(void 0)}))}}function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}var f=function(t,e){return"object"===u(t)&&"object"===u(e)&&Array.isArray(t)===Array.isArray(e)||u(t)===u(e)},l=function(t){var e=t.visitor,n=t.params,r=t.activateAll,i=t.state,a=t.functionName,c=t.config;if(e)return e.getModificationsSync(n,r);var s=!i.status.isSdkReady&&!!i.modifications&&i.modifications.size>0,u={};return s?(n.forEach((function(t){var e,n=null===(e=i.modifications)||void 0===e?void 0:e.get(t.key);n&&f(null==n?void 0:n.value,t.defaultValue)?u[t.key]=n.value:u[t.key]=t.defaultValue})),u):((0,o.yN)(c,I,a),n.forEach((function(t){u[t.key]=t.defaultValue})),u)},h=function(t,e){var n=(0,r.useContext)(i.e).state,o=n.visitor,a=n.config;return l({functionName:"useFsModifications",state:n,visitor:o,config:a,params:t,activateAll:e})},p=function(t){var e,n=(0,r.useContext)(i.e).state,a=n.visitor,c=n.config;if(a)return a.getModificationSync(t);var s=null===(e=n.modifications)||void 0===e?void 0:e.get(t.key);return!n.status.isSdkReady&&s&&f(null==s?void 0:s.value,t.defaultValue)?s.value:((0,o.yN)(c,I,"useFsModifications"),t.defaultValue)},v=function(t){var e,n=t.key,r=t.visitor,i=t.state;if(r)return r.getModificationInfoSync(n);var o=null===(e=i.modifications)||void 0===e?void 0:e.get(n);return!i.status.isSdkReady&&o?o:null},d=function(t){var e=(0,r.useContext)(i.e).state,n=e.visitor;return v({key:t,state:e,visitor:n})},g=function(){var t=s(regeneratorRuntime.mark((function t(e,n,r){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,n){t.next=4;break}return O(r,e),t.abrupt("return");case 4:return t.next=6,n.synchronizeModifications();case 6:t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),(0,o.H)(r,t.t0.message||t.t0,e);case 11:case"end":return t.stop()}}),t,null,[[0,8]])})));return function(e,n,r){return t.apply(this,arguments)}}(),y=function(){var t=s(regeneratorRuntime.mark((function t(){var e,n,o,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=(0,r.useContext)(i.e),n=e.state,o=n.visitor,a=n.config,t.next=5,g("useFsSynchronizeModifications",o,a);case 5:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),m=function(){var t=s(regeneratorRuntime.mark((function t(e,n,r,i){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,r){t.next=4;break}return(0,o.yN)(i,x,n),t.abrupt("return");case 4:return t.next=6,r.activateModifications(e);case 6:t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),(0,o.yN)(i,t.t0.message||t.t0,n);case 11:case"end":return t.stop()}}),t,null,[[0,8]])})));return function(e,n,r,i){return t.apply(this,arguments)}}(),b=function(){var t=s(regeneratorRuntime.mark((function t(e){var n,o,a,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=(0,r.useContext)(i.e),o=n.state,a=o.visitor,c=o.config,t.next=5,m(e,"useFsModifications",a,c);case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),k=function(){var t=(0,r.useContext)(i.e).state,e=t.visitor,n=t.config,c=null==e?void 0:e.getModificationsArray();!t.status.isSdkReady&&t.modifications&&(c=Array.from(t.modifications,(function(t){var e,n,r=(n=2,function(t){if(Array.isArray(t))return t}(e=t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o=[],a=!0,c=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){c=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(c)throw i}}return o}}(e,n)||function(t,e){if(t){if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());return r[0],r[1]})));var u=function(){var t=s(regeneratorRuntime.mark((function t(r){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,m(r,"activateModification",e,n);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),f=function(){var t=s(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,g("synchronizeModifications",e,n);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return{updateContext:function(t){e?(e.clearContext(),e.updateContext(t)):(0,o.H)(n,x,"updateContext")},clearContext:function(){e?e.clearContext():(0,o.H)(n,x,"cleanContext")},authenticate:function(t){e?e.authenticate(t):(0,o.H)(n,x,"authenticate")},unauthenticate:function(){e?e.unauthenticate():(0,o.H)(n,x,"unauthenticate")},status:t.status,activateModification:u,synchronizeModifications:f,getModifications:function(r,i){return l({functionName:"getModifications",state:t,visitor:e,config:n,params:r,activateAll:i})},modifications:c||[],getModificationInfo:function(n){return v({key:n,state:t,visitor:e})},hit:{send:function(t){return e?e.sendHit(t):((0,o.H)(n,x,"sendHit"),Promise.resolve())},sendMultiple:function(t){return e?e.sendHits(t):((0,o.H)(n,x,"sendHits"),Promise.resolve())}}}},x="sdk not correctly initialized... Make sure fsVisitor is ready.",I="fsVisitor not initialized, returns default value",O=function(t,e){(0,o.H)(t,x,e)}},4370:(t,e,n)=>{"use strict";n.d(e,{H:()=>i,yN:()=>o,B$:()=>a}),n(6992),n(1532),n(1539),n(8783),n(3948),n(4747);var r=n(6968);function i(t,e,n){t&&t.logManager&&"function"==typeof t.logManager.error&&t.logLevel&&!(t.logLevel<r.LogLevel.ERROR)&&t.logManager.error(e,n)}function o(t,e,n){t&&t.logManager&&"function"==typeof t.logManager.warning&&t.logLevel&&!(t.logLevel<r.LogLevel.WARNING)&&t.logManager.warning(e,n)}var a=function(t){var e=new Map;return t&&Array.isArray(t)?(t.forEach((function(t){var n=t.variation.modifications.value;for(var r in n){var i=n[r];e.set(r,{key:r,campaignId:t.id,variationGroupId:t.variationGroupId,variationId:t.variation.id,isReference:t.variation.reference,value:i})}})),e):e}},9662:(t,e,n)=>{var r=n(614),i=n(6330);t.exports=function(t){if(r(t))return t;throw TypeError(i(t)+" is not a function")}},9483:(t,e,n)=>{var r=n(4411),i=n(6330);t.exports=function(t){if(r(t))return t;throw TypeError(i(t)+" is not a constructor")}},6077:(t,e,n)=>{var r=n(614);t.exports=function(t){if("object"==typeof t||r(t))return t;throw TypeError("Can't set "+String(t)+" as a prototype")}},1223:(t,e,n)=>{var r=n(5112),i=n(30),o=n(3070),a=r("unscopables"),c=Array.prototype;null==c[a]&&o.f(c,a,{configurable:!0,value:i(null)}),t.exports=function(t){c[a][t]=!0}},1530:(t,e,n)=>{"use strict";var r=n(8710).charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},5787:t=>{t.exports=function(t,e,n){if(t instanceof e)return t;throw TypeError("Incorrect "+(n?n+" ":"")+"invocation")}},9670:(t,e,n)=>{var r=n(111);t.exports=function(t){if(r(t))return t;throw TypeError(String(t)+" is not an object")}},8533:(t,e,n)=>{"use strict";var r=n(2092).forEach,i=n(9341)("forEach");t.exports=i?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},8457:(t,e,n)=>{"use strict";var r=n(9974),i=n(7908),o=n(3411),a=n(7659),c=n(4411),s=n(7466),u=n(6135),f=n(8554),l=n(1246);t.exports=function(t){var e=i(t),n=c(this),h=arguments.length,p=h>1?arguments[1]:void 0,v=void 0!==p;v&&(p=r(p,h>2?arguments[2]:void 0,2));var d,g,y,m,b,k,x=l(e),I=0;if(!x||this==Array&&a(x))for(d=s(e.length),g=n?new this(d):Array(d);d>I;I++)k=v?p(e[I],I):e[I],u(g,I,k);else for(b=(m=f(e,x)).next,g=n?new this:[];!(y=b.call(m)).done;I++)k=v?o(m,p,[y.value,I],!0):y.value,u(g,I,k);return g.length=I,g}},1318:(t,e,n)=>{var r=n(5656),i=n(7466),o=n(1400),a=function(t){return function(e,n,a){var c,s=r(e),u=i(s.length),f=o(a,u);if(t&&n!=n){for(;u>f;)if((c=s[f++])!=c)return!0}else for(;u>f;f++)if((t||f in s)&&s[f]===n)return t||f||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},2092:(t,e,n)=>{var r=n(9974),i=n(8361),o=n(7908),a=n(7466),c=n(5417),s=[].push,u=function(t){var e=1==t,n=2==t,u=3==t,f=4==t,l=6==t,h=7==t,p=5==t||l;return function(v,d,g,y){for(var m,b,k=o(v),x=i(k),I=r(d,g,3),O=a(x.length),w=0,C=y||c,S=e?C(v,O):n||h?C(v,0):void 0;O>w;w++)if((p||w in x)&&(b=I(m=x[w],w,k),t))if(e)S[w]=b;else if(b)switch(t){case 3:return!0;case 5:return m;case 6:return w;case 2:s.call(S,m)}else switch(t){case 4:return!1;case 7:s.call(S,m)}return l?-1:u||f?f:S}};t.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},1194:(t,e,n)=>{var r=n(7293),i=n(5112),o=n(7392),a=i("species");t.exports=function(t){return o>=51||!r((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},9341:(t,e,n)=>{"use strict";var r=n(7293);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){throw 1},1)}))}},7475:(t,e,n)=>{var r=n(3157),i=n(4411),o=n(111),a=n(5112)("species");t.exports=function(t){var e;return r(t)&&(e=t.constructor,(i(e)&&(e===Array||r(e.prototype))||o(e)&&null===(e=e[a]))&&(e=void 0)),void 0===e?Array:e}},5417:(t,e,n)=>{var r=n(7475);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},3411:(t,e,n)=>{var r=n(9670),i=n(9212);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){i(t,"throw",e)}}},7072:(t,e,n)=>{var r=n(5112)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},t(o)}catch(t){}return n}},4326:t=>{var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},648:(t,e,n)=>{var r=n(1694),i=n(614),o=n(4326),a=n(5112)("toStringTag"),c="Arguments"==o(function(){return arguments}());t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),a))?n:c?o(e):"Object"==(r=o(e))&&i(e.callee)?"Arguments":r}},5631:(t,e,n)=>{"use strict";var r=n(3070).f,i=n(30),o=n(2248),a=n(9974),c=n(5787),s=n(408),u=n(654),f=n(6340),l=n(9781),h=n(2423).fastKey,p=n(9909),v=p.set,d=p.getterFor;t.exports={getConstructor:function(t,e,n,u){var f=t((function(t,r){c(t,f,e),v(t,{type:e,index:i(null),first:void 0,last:void 0,size:0}),l||(t.size=0),null!=r&&s(r,t[u],{that:t,AS_ENTRIES:n})})),p=d(e),g=function(t,e,n){var r,i,o=p(t),a=y(t,e);return a?a.value=n:(o.last=a={index:i=h(e,!0),key:e,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=a),r&&(r.next=a),l?o.size++:t.size++,"F"!==i&&(o.index[i]=a)),t},y=function(t,e){var n,r=p(t),i=h(e);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==e)return n};return o(f.prototype,{clear:function(){for(var t=p(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,l?t.size=0:this.size=0},delete:function(t){var e=this,n=p(e),r=y(e,t);if(r){var i=r.next,o=r.previous;delete n.index[r.index],r.removed=!0,o&&(o.next=i),i&&(i.previous=o),n.first==r&&(n.first=i),n.last==r&&(n.last=o),l?n.size--:e.size--}return!!r},forEach:function(t){for(var e,n=p(this),r=a(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!y(this,t)}}),o(f.prototype,n?{get:function(t){var e=y(this,t);return e&&e.value},set:function(t,e){return g(this,0===t?0:t,e)}}:{add:function(t){return g(this,t=0===t?0:t,t)}}),l&&r(f.prototype,"size",{get:function(){return p(this).size}}),f},setStrong:function(t,e,n){var r=e+" Iterator",i=d(e),o=d(r);u(t,e,(function(t,e){v(this,{type:r,target:t,state:i(t),kind:e,last:void 0})}),(function(){for(var t=o(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),f(e)}}},7710:(t,e,n)=>{"use strict";var r=n(2109),i=n(7854),o=n(4705),a=n(1320),c=n(2423),s=n(408),u=n(5787),f=n(614),l=n(111),h=n(7293),p=n(7072),v=n(8003),d=n(9587);t.exports=function(t,e,n){var g=-1!==t.indexOf("Map"),y=-1!==t.indexOf("Weak"),m=g?"set":"add",b=i[t],k=b&&b.prototype,x=b,I={},O=function(t){var e=k[t];a(k,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(y&&!l(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return y&&!l(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(y&&!l(t))&&e.call(this,0===t?0:t)}:function(t,n){return e.call(this,0===t?0:t,n),this})};if(o(t,!f(b)||!(y||k.forEach&&!h((function(){(new b).entries().next()})))))x=n.getConstructor(e,t,g,m),c.enable();else if(o(t,!0)){var w=new x,C=w[m](y?{}:-0,1)!=w,S=h((function(){w.has(1)})),E=p((function(t){new b(t)})),_=!y&&h((function(){for(var t=new b,e=5;e--;)t[m](e,e);return!t.has(-0)}));E||((x=e((function(e,n){u(e,x,t);var r=d(new b,e,x);return null!=n&&s(n,r[m],{that:r,AS_ENTRIES:g}),r}))).prototype=k,k.constructor=x),(S||_)&&(O("delete"),O("has"),g&&O("get")),(_||C)&&O(m),y&&k.clear&&delete k.clear}return I[t]=x,r({global:!0,forced:x!=b},I),v(x,t),y||n.setStrong(x,t,g),x}},9920:(t,e,n)=>{var r=n(6656),i=n(3887),o=n(1236),a=n(3070);t.exports=function(t,e){for(var n=i(e),c=a.f,s=o.f,u=0;u<n.length;u++){var f=n[u];r(t,f)||c(t,f,s(e,f))}}},4964:(t,e,n)=>{var r=n(5112)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,"/./"[t](e)}catch(t){}}return!1}},8544:(t,e,n)=>{var r=n(7293);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},4994:(t,e,n)=>{"use strict";var r=n(3383).IteratorPrototype,i=n(30),o=n(9114),a=n(8003),c=n(7497),s=function(){return this};t.exports=function(t,e,n){var u=e+" Iterator";return t.prototype=i(r,{next:o(1,n)}),a(t,u,!1,!0),c[u]=s,t}},8880:(t,e,n)=>{var r=n(9781),i=n(3070),o=n(9114);t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},9114:t=>{t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},6135:(t,e,n)=>{"use strict";var r=n(4948),i=n(3070),o=n(9114);t.exports=function(t,e,n){var a=r(e);a in t?i.f(t,a,o(0,n)):t[a]=n}},654:(t,e,n)=>{"use strict";var r=n(2109),i=n(1913),o=n(6530),a=n(614),c=n(4994),s=n(9518),u=n(7674),f=n(8003),l=n(8880),h=n(1320),p=n(5112),v=n(7497),d=n(3383),g=o.PROPER,y=o.CONFIGURABLE,m=d.IteratorPrototype,b=d.BUGGY_SAFARI_ITERATORS,k=p("iterator"),x="keys",I="values",O="entries",w=function(){return this};t.exports=function(t,e,n,o,p,d,C){c(n,e,o);var S,E,_,A=function(t){if(t===p&&T)return T;if(!b&&t in N)return N[t];switch(t){case x:case I:case O:return function(){return new n(this,t)}}return function(){return new n(this)}},M=e+" Iterator",R=!1,N=t.prototype,P=N[k]||N["@@iterator"]||p&&N[p],T=!b&&P||A(p),j="Array"==e&&N.entries||P;if(j&&(S=s(j.call(new t)))!==Object.prototype&&S.next&&(i||s(S)===m||(u?u(S,m):a(S[k])||h(S,k,w)),f(S,M,!0,!0),i&&(v[M]=w)),g&&p==I&&P&&P.name!==I&&(!i&&y?l(N,"name",I):(R=!0,T=function(){return P.call(this)})),p)if(E={values:A(I),keys:d?T:A(x),entries:A(O)},C)for(_ in E)(b||R||!(_ in N))&&h(N,_,E[_]);else r({target:e,proto:!0,forced:b||R},E);return i&&!C||N[k]===T||h(N,k,T,{name:p}),v[e]=T,E}},7235:(t,e,n)=>{var r=n(857),i=n(6656),o=n(6061),a=n(3070).f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});i(e,t)||a(e,t,{value:o.f(t)})}},9781:(t,e,n)=>{var r=n(7293);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:(t,e,n)=>{var r=n(7854),i=n(111),o=r.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},8324:t=>{t.exports={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}},8509:(t,e,n)=>{var r=n(317)("span").classList,i=r&&r.constructor&&r.constructor.prototype;t.exports=i===Object.prototype?void 0:i},7871:t=>{t.exports="object"==typeof window},1528:(t,e,n)=>{var r=n(8113),i=n(7854);t.exports=/ipad|iphone|ipod/i.test(r)&&void 0!==i.Pebble},6833:(t,e,n)=>{var r=n(8113);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},5268:(t,e,n)=>{var r=n(4326),i=n(7854);t.exports="process"==r(i.process)},1036:(t,e,n)=>{var r=n(8113);t.exports=/web0s(?!.*chrome)/i.test(r)},8113:(t,e,n)=>{var r=n(5005);t.exports=r("navigator","userAgent")||""},7392:(t,e,n)=>{var r,i,o=n(7854),a=n(8113),c=o.process,s=o.Deno,u=c&&c.versions||s&&s.version,f=u&&u.v8;f?i=(r=f.split("."))[0]<4?1:r[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=r[1]),t.exports=i&&+i},748:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:(t,e,n)=>{var r=n(7854),i=n(1236).f,o=n(8880),a=n(1320),c=n(3505),s=n(9920),u=n(4705);t.exports=function(t,e){var n,f,l,h,p,v=t.target,d=t.global,g=t.stat;if(n=d?r:g?r[v]||c(v,{}):(r[v]||{}).prototype)for(f in e){if(h=e[f],l=t.noTargetGet?(p=i(n,f))&&p.value:n[f],!u(d?f:v+(g?".":"#")+f,t.forced)&&void 0!==l){if(typeof h==typeof l)continue;s(h,l)}(t.sham||l&&l.sham)&&o(h,"sham",!0),a(n,f,h,t)}}},7293:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},7007:(t,e,n)=>{"use strict";n(4916);var r=n(1320),i=n(2261),o=n(7293),a=n(5112),c=n(8880),s=a("species"),u=RegExp.prototype;t.exports=function(t,e,n,f){var l=a(t),h=!o((function(){var e={};return e[l]=function(){return 7},7!=""[t](e)})),p=h&&!o((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[s]=function(){return n},n.flags="",n[l]=/./[l]),n.exec=function(){return e=!0,null},n[l](""),!e}));if(!h||!p||n){var v=/./[l],d=e(l,""[t],(function(t,e,n,r,o){var a=e.exec;return a===i||a===u.exec?h&&!o?{done:!0,value:v.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}));r(String.prototype,t,d[0]),r(u,l,d[1])}f&&c(u[l],"sham",!0)}},6677:(t,e,n)=>{var r=n(7293);t.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},9974:(t,e,n)=>{var r=n(9662);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},7065:(t,e,n)=>{"use strict";var r=n(9662),i=n(111),o=[].slice,a={},c=function(t,e,n){if(!(e in a)){for(var r=[],i=0;i<e;i++)r[i]="a["+i+"]";a[e]=Function("C,a","return new C("+r.join(",")+")")}return a[e](t,n)};t.exports=Function.bind||function(t){var e=r(this),n=o.call(arguments,1),a=function(){var r=n.concat(o.call(arguments));return this instanceof a?c(e,r.length,r):e.apply(t,r)};return i(e.prototype)&&(a.prototype=e.prototype),a}},6530:(t,e,n)=>{var r=n(9781),i=n(6656),o=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,c=i(o,"name"),s=c&&"something"===function(){}.name,u=c&&(!r||r&&a(o,"name").configurable);t.exports={EXISTS:c,PROPER:s,CONFIGURABLE:u}},5005:(t,e,n)=>{var r=n(7854),i=n(614),o=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t]):r[t]&&r[t][e]}},1246:(t,e,n)=>{var r=n(648),i=n(8173),o=n(7497),a=n(5112)("iterator");t.exports=function(t){if(null!=t)return i(t,a)||i(t,"@@iterator")||o[r(t)]}},8554:(t,e,n)=>{var r=n(9662),i=n(9670),o=n(1246);t.exports=function(t,e){var n=arguments.length<2?o(t):e;if(r(n))return i(n.call(t));throw TypeError(String(t)+" is not iterable")}},8173:(t,e,n)=>{var r=n(9662);t.exports=function(t,e){var n=t[e];return null==n?void 0:r(n)}},647:(t,e,n)=>{var r=n(7908),i=Math.floor,o="".replace,a=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,s,u,f){var l=n+t.length,h=s.length,p=c;return void 0!==u&&(u=r(u),p=a),o.call(f,p,(function(r,o){var a;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,n);case"'":return e.slice(l);case"<":a=u[o.slice(1,-1)];break;default:var c=+o;if(0===c)return r;if(c>h){var f=i(c/10);return 0===f?r:f<=h?void 0===s[f-1]?o.charAt(1):s[f-1]+o.charAt(1):r}a=s[c-1]}return void 0===a?"":a}))}},7854:t=>{var e=function(t){return t&&t.Math==Math&&t};t.exports=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof global&&global)||function(){return this}()||Function("return this")()},6656:(t,e,n)=>{var r=n(7908),i={}.hasOwnProperty;t.exports=Object.hasOwn||function(t,e){return i.call(r(t),e)}},3501:t=>{t.exports={}},842:(t,e,n)=>{var r=n(7854);t.exports=function(t,e){var n=r.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}},490:(t,e,n)=>{var r=n(5005);t.exports=r("document","documentElement")},4664:(t,e,n)=>{var r=n(9781),i=n(7293),o=n(317);t.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},8361:(t,e,n)=>{var r=n(7293),i=n(4326),o="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?o.call(t,""):Object(t)}:Object},9587:(t,e,n)=>{var r=n(614),i=n(111),o=n(7674);t.exports=function(t,e,n){var a,c;return o&&r(a=e.constructor)&&a!==n&&i(c=a.prototype)&&c!==n.prototype&&o(t,c),t}},2788:(t,e,n)=>{var r=n(614),i=n(5465),o=Function.toString;r(i.inspectSource)||(i.inspectSource=function(t){return o.call(t)}),t.exports=i.inspectSource},2423:(t,e,n)=>{var r=n(2109),i=n(3501),o=n(111),a=n(6656),c=n(3070).f,s=n(8006),u=n(1156),f=n(9711),l=n(6677),h=!1,p=f("meta"),v=0,d=Object.isExtensible||function(){return!0},g=function(t){c(t,p,{value:{objectID:"O"+v++,weakData:{}}})},y=t.exports={enable:function(){y.enable=function(){},h=!0;var t=s.f,e=[].splice,n={};n[p]=1,t(n).length&&(s.f=function(n){for(var r=t(n),i=0,o=r.length;i<o;i++)if(r[i]===p){e.call(r,i,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:u.f}))},fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!a(t,p)){if(!d(t))return"F";if(!e)return"E";g(t)}return t[p].objectID},getWeakData:function(t,e){if(!a(t,p)){if(!d(t))return!0;if(!e)return!1;g(t)}return t[p].weakData},onFreeze:function(t){return l&&h&&d(t)&&!a(t,p)&&g(t),t}};i[p]=!0},9909:(t,e,n)=>{var r,i,o,a=n(8536),c=n(7854),s=n(111),u=n(8880),f=n(6656),l=n(5465),h=n(6200),p=n(3501),v="Object already initialized",d=c.WeakMap;if(a||l.state){var g=l.state||(l.state=new d),y=g.get,m=g.has,b=g.set;r=function(t,e){if(m.call(g,t))throw new TypeError(v);return e.facade=t,b.call(g,t,e),e},i=function(t){return y.call(g,t)||{}},o=function(t){return m.call(g,t)}}else{var k=h("state");p[k]=!0,r=function(t,e){if(f(t,k))throw new TypeError(v);return e.facade=t,u(t,k,e),e},i=function(t){return f(t,k)?t[k]:{}},o=function(t){return f(t,k)}}t.exports={set:r,get:i,has:o,enforce:function(t){return o(t)?i(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!s(e)||(n=i(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},7659:(t,e,n)=>{var r=n(5112),i=n(7497),o=r("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||a[o]===t)}},3157:(t,e,n)=>{var r=n(4326);t.exports=Array.isArray||function(t){return"Array"==r(t)}},614:t=>{t.exports=function(t){return"function"==typeof t}},4411:(t,e,n)=>{var r=n(7293),i=n(614),o=n(648),a=n(5005),c=n(2788),s=[],u=a("Reflect","construct"),f=/^\s*(?:class|function)\b/,l=f.exec,h=!f.exec((function(){})),p=function(t){if(!i(t))return!1;try{return u(Object,s,t),!0}catch(t){return!1}};t.exports=!u||r((function(){var t;return p(p.call)||!p(Object)||!p((function(){t=!0}))||t}))?function(t){if(!i(t))return!1;switch(o(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return h||!!l.call(f,c(t))}:p},4705:(t,e,n)=>{var r=n(7293),i=n(614),o=/#|\.prototype\./,a=function(t,e){var n=s[c(t)];return n==f||n!=u&&(i(e)?r(e):!!e)},c=a.normalize=function(t){return String(t).replace(o,".").toLowerCase()},s=a.data={},u=a.NATIVE="N",f=a.POLYFILL="P";t.exports=a},8730:(t,e,n)=>{var r=n(111),i=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&i(t)===t}},111:(t,e,n)=>{var r=n(614);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},1913:t=>{t.exports=!1},7850:(t,e,n)=>{var r=n(111),i=n(4326),o=n(5112)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},2190:(t,e,n)=>{var r=n(614),i=n(5005),o=n(3307);t.exports=o?function(t){return"symbol"==typeof t}:function(t){var e=i("Symbol");return r(e)&&Object(t)instanceof e}},408:(t,e,n)=>{var r=n(9670),i=n(7659),o=n(7466),a=n(9974),c=n(8554),s=n(1246),u=n(9212),f=function(t,e){this.stopped=t,this.result=e};t.exports=function(t,e,n){var l,h,p,v,d,g,y,m=n&&n.that,b=!(!n||!n.AS_ENTRIES),k=!(!n||!n.IS_ITERATOR),x=!(!n||!n.INTERRUPTED),I=a(e,m,1+b+x),O=function(t){return l&&u(l,"normal",t),new f(!0,t)},w=function(t){return b?(r(t),x?I(t[0],t[1],O):I(t[0],t[1])):x?I(t,O):I(t)};if(k)l=t;else{if(!(h=s(t)))throw TypeError(String(t)+" is not iterable");if(i(h)){for(p=0,v=o(t.length);v>p;p++)if((d=w(t[p]))&&d instanceof f)return d;return new f(!1)}l=c(t,h)}for(g=l.next;!(y=g.call(l)).done;){try{d=w(y.value)}catch(t){u(l,"throw",t)}if("object"==typeof d&&d&&d instanceof f)return d}return new f(!1)}},9212:(t,e,n)=>{var r=n(9670),i=n(8173);t.exports=function(t,e,n){var o,a;r(t);try{if(!(o=i(t,"return"))){if("throw"===e)throw n;return n}o=o.call(t)}catch(t){a=!0,o=t}if("throw"===e)throw n;if(a)throw o;return r(o),n}},3383:(t,e,n)=>{"use strict";var r,i,o,a=n(7293),c=n(614),s=n(30),u=n(9518),f=n(1320),l=n(5112),h=n(1913),p=l("iterator"),v=!1;[].keys&&("next"in(o=[].keys())?(i=u(u(o)))!==Object.prototype&&(r=i):v=!0),null==r||a((function(){var t={};return r[p].call(t)!==t}))?r={}:h&&(r=s(r)),c(r[p])||f(r,p,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:v}},7497:t=>{t.exports={}},5948:(t,e,n)=>{var r,i,o,a,c,s,u,f,l=n(7854),h=n(1236).f,p=n(261).set,v=n(6833),d=n(1528),g=n(1036),y=n(5268),m=l.MutationObserver||l.WebKitMutationObserver,b=l.document,k=l.process,x=l.Promise,I=h(l,"queueMicrotask"),O=I&&I.value;O||(r=function(){var t,e;for(y&&(t=k.domain)&&t.exit();i;){e=i.fn,i=i.next;try{e()}catch(t){throw i?a():o=void 0,t}}o=void 0,t&&t.enter()},v||y||g||!m||!b?!d&&x&&x.resolve?((u=x.resolve(void 0)).constructor=x,f=u.then,a=function(){f.call(u,r)}):a=y?function(){k.nextTick(r)}:function(){p.call(l,r)}:(c=!0,s=b.createTextNode(""),new m(r).observe(s,{characterData:!0}),a=function(){s.data=c=!c})),t.exports=O||function(t){var e={fn:t,next:void 0};o&&(o.next=e),i||(i=e,a()),o=e}},3366:(t,e,n)=>{var r=n(7854);t.exports=r.Promise},133:(t,e,n)=>{var r=n(7392),i=n(7293);t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},8536:(t,e,n)=>{var r=n(7854),i=n(614),o=n(2788),a=r.WeakMap;t.exports=i(a)&&/native code/.test(o(a))},8523:(t,e,n)=>{"use strict";var r=n(9662),i=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new i(t)}},3929:(t,e,n)=>{var r=n(7850);t.exports=function(t){if(r(t))throw TypeError("The method doesn't accept regular expressions");return t}},30:(t,e,n)=>{var r,i=n(9670),o=n(6048),a=n(748),c=n(3501),s=n(490),u=n(317),f=n(6200)("IE_PROTO"),l=function(){},h=function(t){return"<script>"+t+"<\/script>"},p=function(t){t.write(h("")),t.close();var e=t.parentWindow.Object;return t=null,e},v=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e;v="undefined"!=typeof document?document.domain&&r?p(r):((e=u("iframe")).style.display="none",s.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(h("document.F=Object")),t.close(),t.F):p(r);for(var n=a.length;n--;)delete v.prototype[a[n]];return v()};c[f]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(l.prototype=i(t),n=new l,l.prototype=null,n[f]=t):n=v(),void 0===e?n:o(n,e)}},6048:(t,e,n)=>{var r=n(9781),i=n(3070),o=n(9670),a=n(1956);t.exports=r?Object.defineProperties:function(t,e){o(t);for(var n,r=a(e),c=r.length,s=0;c>s;)i.f(t,n=r[s++],e[n]);return t}},3070:(t,e,n)=>{var r=n(9781),i=n(4664),o=n(9670),a=n(4948),c=Object.defineProperty;e.f=r?c:function(t,e,n){if(o(t),e=a(e),o(n),i)try{return c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},1236:(t,e,n)=>{var r=n(9781),i=n(5296),o=n(9114),a=n(5656),c=n(4948),s=n(6656),u=n(4664),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=a(t),e=c(e),u)try{return f(t,e)}catch(t){}if(s(t,e))return o(!i.f.call(t,e),t[e])}},1156:(t,e,n)=>{var r=n(5656),i=n(8006).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?function(t){try{return i(t)}catch(t){return a.slice()}}(t):i(r(t))}},8006:(t,e,n)=>{var r=n(6324),i=n(748).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},5181:(t,e)=>{e.f=Object.getOwnPropertySymbols},9518:(t,e,n)=>{var r=n(6656),i=n(614),o=n(7908),a=n(6200),c=n(8544),s=a("IE_PROTO"),u=Object.prototype;t.exports=c?Object.getPrototypeOf:function(t){var e=o(t);if(r(e,s))return e[s];var n=e.constructor;return i(n)&&e instanceof n?n.prototype:e instanceof Object?u:null}},6324:(t,e,n)=>{var r=n(6656),i=n(5656),o=n(1318).indexOf,a=n(3501);t.exports=function(t,e){var n,c=i(t),s=0,u=[];for(n in c)!r(a,n)&&r(c,n)&&u.push(n);for(;e.length>s;)r(c,n=e[s++])&&(~o(u,n)||u.push(n));return u}},1956:(t,e,n)=>{var r=n(6324),i=n(748);t.exports=Object.keys||function(t){return r(t,i)}},5296:(t,e)=>{"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);e.f=i?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},7674:(t,e,n)=>{var r=n(9670),i=n(6077);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,o){return r(n),i(o),e?t.call(n,o):n.__proto__=o,n}}():void 0)},4699:(t,e,n)=>{var r=n(9781),i=n(1956),o=n(5656),a=n(5296).f,c=function(t){return function(e){for(var n,c=o(e),s=i(c),u=s.length,f=0,l=[];u>f;)n=s[f++],r&&!a.call(c,n)||l.push(t?[n,c[n]]:c[n]);return l}};t.exports={entries:c(!0),values:c(!1)}},288:(t,e,n)=>{"use strict";var r=n(1694),i=n(648);t.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},2140:(t,e,n)=>{var r=n(614),i=n(111);t.exports=function(t,e){var n,o;if("string"===e&&r(n=t.toString)&&!i(o=n.call(t)))return o;if(r(n=t.valueOf)&&!i(o=n.call(t)))return o;if("string"!==e&&r(n=t.toString)&&!i(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},3887:(t,e,n)=>{var r=n(5005),i=n(8006),o=n(5181),a=n(9670);t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(a(t)),n=o.f;return n?e.concat(n(t)):e}},857:(t,e,n)=>{var r=n(7854);t.exports=r},2534:t=>{t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},9478:(t,e,n)=>{var r=n(9670),i=n(111),o=n(8523);t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},2248:(t,e,n)=>{var r=n(1320);t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},1320:(t,e,n)=>{var r=n(7854),i=n(614),o=n(6656),a=n(8880),c=n(3505),s=n(2788),u=n(9909),f=n(6530).CONFIGURABLE,l=u.get,h=u.enforce,p=String(String).split("String");(t.exports=function(t,e,n,s){var u,l=!!s&&!!s.unsafe,v=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,g=s&&void 0!==s.name?s.name:e;i(n)&&("Symbol("===String(g).slice(0,7)&&(g="["+String(g).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!o(n,"name")||f&&n.name!==g)&&a(n,"name",g),(u=h(n)).source||(u.source=p.join("string"==typeof g?g:""))),t!==r?(l?!d&&t[e]&&(v=!0):delete t[e],v?t[e]=n:a(t,e,n)):v?t[e]=n:c(e,n)})(Function.prototype,"toString",(function(){return i(this)&&l(this).source||s(this)}))},7651:(t,e,n)=>{var r=n(9670),i=n(614),o=n(4326),a=n(2261);t.exports=function(t,e){var n=t.exec;if(i(n)){var c=n.call(t,e);return null!==c&&r(c),c}if("RegExp"===o(t))return a.call(t,e);throw TypeError("RegExp#exec called on incompatible receiver")}},2261:(t,e,n)=>{"use strict";var r,i,o=n(1340),a=n(7066),c=n(2999),s=n(2309),u=n(30),f=n(9909).get,l=n(9441),h=n(7168),p=RegExp.prototype.exec,v=s("native-string-replace",String.prototype.replace),d=p,g=(r=/a/,i=/b*/g,p.call(r,"a"),p.call(i,"a"),0!==r.lastIndex||0!==i.lastIndex),y=c.UNSUPPORTED_Y||c.BROKEN_CARET,m=void 0!==/()??/.exec("")[1];(g||m||y||l||h)&&(d=function(t){var e,n,r,i,c,s,l,h=this,b=f(h),k=o(t),x=b.raw;if(x)return x.lastIndex=h.lastIndex,e=d.call(x,k),h.lastIndex=x.lastIndex,e;var I=b.groups,O=y&&h.sticky,w=a.call(h),C=h.source,S=0,E=k;if(O&&(-1===(w=w.replace("y","")).indexOf("g")&&(w+="g"),E=k.slice(h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\n"!==k.charAt(h.lastIndex-1))&&(C="(?: "+C+")",E=" "+E,S++),n=new RegExp("^(?:"+C+")",w)),m&&(n=new RegExp("^"+C+"$(?!\\s)",w)),g&&(r=h.lastIndex),i=p.call(O?n:h,E),O?i?(i.input=i.input.slice(S),i[0]=i[0].slice(S),i.index=h.lastIndex,h.lastIndex+=i[0].length):h.lastIndex=0:g&&i&&(h.lastIndex=h.global?i.index+i[0].length:r),m&&i&&i.length>1&&v.call(i[0],n,(function(){for(c=1;c<arguments.length-2;c++)void 0===arguments[c]&&(i[c]=void 0)})),i&&I)for(i.groups=s=u(null),c=0;c<I.length;c++)s[(l=I[c])[0]]=i[l[1]];return i}),t.exports=d},7066:(t,e,n)=>{"use strict";var r=n(9670);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},2999:(t,e,n)=>{var r=n(7293),i=n(7854).RegExp;e.UNSUPPORTED_Y=r((function(){var t=i("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),e.BROKEN_CARET=r((function(){var t=i("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},9441:(t,e,n)=>{var r=n(7293),i=n(7854).RegExp;t.exports=r((function(){var t=i(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},7168:(t,e,n)=>{var r=n(7293),i=n(7854).RegExp;t.exports=r((function(){var t=i("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},4488:t=>{t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},3505:(t,e,n)=>{var r=n(7854);t.exports=function(t,e){try{Object.defineProperty(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},6340:(t,e,n)=>{"use strict";var r=n(5005),i=n(3070),o=n(5112),a=n(9781),c=o("species");t.exports=function(t){var e=r(t),n=i.f;a&&e&&!e[c]&&n(e,c,{configurable:!0,get:function(){return this}})}},8003:(t,e,n)=>{var r=n(3070).f,i=n(6656),o=n(5112)("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},6200:(t,e,n)=>{var r=n(2309),i=n(9711),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},5465:(t,e,n)=>{var r=n(7854),i=n(3505),o="__core-js_shared__",a=r[o]||i(o,{});t.exports=a},2309:(t,e,n)=>{var r=n(1913),i=n(5465);(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.18.1",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},6707:(t,e,n)=>{var r=n(9670),i=n(9483),o=n(5112)("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||null==(n=r(a)[o])?e:i(n)}},8710:(t,e,n)=>{var r=n(9958),i=n(1340),o=n(4488),a=function(t){return function(e,n){var a,c,s=i(o(e)),u=r(n),f=s.length;return u<0||u>=f?t?"":void 0:(a=s.charCodeAt(u))<55296||a>56319||u+1===f||(c=s.charCodeAt(u+1))<56320||c>57343?t?s.charAt(u):a:t?s.slice(u,u+2):c-56320+(a-55296<<10)+65536}};t.exports={codeAt:a(!1),charAt:a(!0)}},3111:(t,e,n)=>{var r=n(4488),i=n(1340),o="["+n(1361)+"]",a=RegExp("^"+o+o+"*"),c=RegExp(o+o+"*$"),s=function(t){return function(e){var n=i(r(e));return 1&t&&(n=n.replace(a,"")),2&t&&(n=n.replace(c,"")),n}};t.exports={start:s(1),end:s(2),trim:s(3)}},261:(t,e,n)=>{var r,i,o,a,c=n(7854),s=n(614),u=n(7293),f=n(9974),l=n(490),h=n(317),p=n(6833),v=n(5268),d=c.setImmediate,g=c.clearImmediate,y=c.process,m=c.MessageChannel,b=c.Dispatch,k=0,x={};try{r=c.location}catch(t){}var I=function(t){if(x.hasOwnProperty(t)){var e=x[t];delete x[t],e()}},O=function(t){return function(){I(t)}},w=function(t){I(t.data)},C=function(t){c.postMessage(String(t),r.protocol+"//"+r.host)};d&&g||(d=function(t){for(var e=[],n=arguments.length,r=1;n>r;)e.push(arguments[r++]);return x[++k]=function(){(s(t)?t:Function(t)).apply(void 0,e)},i(k),k},g=function(t){delete x[t]},v?i=function(t){y.nextTick(O(t))}:b&&b.now?i=function(t){b.now(O(t))}:m&&!p?(a=(o=new m).port2,o.port1.onmessage=w,i=f(a.postMessage,a,1)):c.addEventListener&&s(c.postMessage)&&!c.importScripts&&r&&"file:"!==r.protocol&&!u(C)?(i=C,c.addEventListener("message",w,!1)):i="onreadystatechange"in h("script")?function(t){l.appendChild(h("script")).onreadystatechange=function(){l.removeChild(this),I(t)}}:function(t){setTimeout(O(t),0)}),t.exports={set:d,clear:g}},1400:(t,e,n)=>{var r=n(9958),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},5656:(t,e,n)=>{var r=n(8361),i=n(4488);t.exports=function(t){return r(i(t))}},9958:t=>{var e=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:e)(t)}},7466:(t,e,n)=>{var r=n(9958),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},7908:(t,e,n)=>{var r=n(4488);t.exports=function(t){return Object(r(t))}},7593:(t,e,n)=>{var r=n(111),i=n(2190),o=n(8173),a=n(2140),c=n(5112)("toPrimitive");t.exports=function(t,e){if(!r(t)||i(t))return t;var n,s=o(t,c);if(s){if(void 0===e&&(e="default"),n=s.call(t,e),!r(n)||i(n))return n;throw TypeError("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},4948:(t,e,n)=>{var r=n(7593),i=n(2190);t.exports=function(t){var e=r(t,"string");return i(e)?e:String(e)}},1694:(t,e,n)=>{var r={};r[n(5112)("toStringTag")]="z",t.exports="[object z]"===String(r)},1340:(t,e,n)=>{var r=n(648);t.exports=function(t){if("Symbol"===r(t))throw TypeError("Cannot convert a Symbol value to a string");return String(t)}},6330:t=>{t.exports=function(t){try{return String(t)}catch(t){return"Object"}}},9711:t=>{var e=0,n=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++e+n).toString(36)}},3307:(t,e,n)=>{var r=n(133);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},6061:(t,e,n)=>{var r=n(5112);e.f=r},5112:(t,e,n)=>{var r=n(7854),i=n(2309),o=n(6656),a=n(9711),c=n(133),s=n(3307),u=i("wks"),f=r.Symbol,l=s?f:f&&f.withoutSetter||a;t.exports=function(t){return o(u,t)&&(c||"string"==typeof u[t])||(c&&o(f,t)?u[t]=f[t]:u[t]=l("Symbol."+t)),u[t]}},1361:t=>{t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},2222:(t,e,n)=>{"use strict";var r=n(2109),i=n(7293),o=n(3157),a=n(111),c=n(7908),s=n(7466),u=n(6135),f=n(5417),l=n(1194),h=n(5112),p=n(7392),v=h("isConcatSpreadable"),d=9007199254740991,g="Maximum allowed index exceeded",y=p>=51||!i((function(){var t=[];return t[v]=!1,t.concat()[0]!==t})),m=l("concat"),b=function(t){if(!a(t))return!1;var e=t[v];return void 0!==e?!!e:o(t)};r({target:"Array",proto:!0,forced:!y||!m},{concat:function(t){var e,n,r,i,o,a=c(this),l=f(a,0),h=0;for(e=-1,r=arguments.length;e<r;e++)if(b(o=-1===e?a:arguments[e])){if(h+(i=s(o.length))>d)throw TypeError(g);for(n=0;n<i;n++,h++)n in o&&u(l,h,o[n])}else{if(h>=d)throw TypeError(g);u(l,h++,o)}return l.length=h,l}})},7327:(t,e,n)=>{"use strict";var r=n(2109),i=n(2092).filter;r({target:"Array",proto:!0,forced:!n(1194)("filter")},{filter:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},9826:(t,e,n)=>{"use strict";var r=n(2109),i=n(2092).find,o=n(1223),a="find",c=!0;a in[]&&Array(1).find((function(){c=!1})),r({target:"Array",proto:!0,forced:c},{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o(a)},1038:(t,e,n)=>{var r=n(2109),i=n(8457);r({target:"Array",stat:!0,forced:!n(7072)((function(t){Array.from(t)}))},{from:i})},6699:(t,e,n)=>{"use strict";var r=n(2109),i=n(1318).includes,o=n(1223);r({target:"Array",proto:!0},{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o("includes")},6992:(t,e,n)=>{"use strict";var r=n(5656),i=n(1223),o=n(7497),a=n(9909),c=n(654),s="Array Iterator",u=a.set,f=a.getterFor(s);t.exports=c(Array,"Array",(function(t,e){u(this,{type:s,target:r(t),index:0,kind:e})}),(function(){var t=f(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},1249:(t,e,n)=>{"use strict";var r=n(2109),i=n(2092).map;r({target:"Array",proto:!0,forced:!n(1194)("map")},{map:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},7042:(t,e,n)=>{"use strict";var r=n(2109),i=n(3157),o=n(4411),a=n(111),c=n(1400),s=n(7466),u=n(5656),f=n(6135),l=n(5112),h=n(1194)("slice"),p=l("species"),v=[].slice,d=Math.max;r({target:"Array",proto:!0,forced:!h},{slice:function(t,e){var n,r,l,h=u(this),g=s(h.length),y=c(t,g),m=c(void 0===e?g:e,g);if(i(h)&&(n=h.constructor,(o(n)&&(n===Array||i(n.prototype))||a(n)&&null===(n=n[p]))&&(n=void 0),n===Array||void 0===n))return v.call(h,y,m);for(r=new(void 0===n?Array:n)(d(m-y,0)),l=0;y<m;y++,l++)y in h&&f(r,l,h[y]);return r.length=l,r}})},8309:(t,e,n)=>{var r=n(9781),i=n(6530).EXISTS,o=n(3070).f,a=Function.prototype,c=a.toString,s=/^\s*function ([^ (]*)/;r&&!i&&o(a,"name",{configurable:!0,get:function(){try{return c.call(this).match(s)[1]}catch(t){return""}}})},1532:(t,e,n)=>{"use strict";var r=n(7710),i=n(5631);t.exports=r("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),i)},3689:(t,e,n)=>{var r=n(2109),i=Math.ceil,o=Math.floor;r({target:"Math",stat:!0},{trunc:function(t){return(t>0?o:i)(t)}})},9653:(t,e,n)=>{"use strict";var r=n(9781),i=n(7854),o=n(4705),a=n(1320),c=n(6656),s=n(4326),u=n(9587),f=n(2190),l=n(7593),h=n(7293),p=n(30),v=n(8006).f,d=n(1236).f,g=n(3070).f,y=n(3111).trim,m="Number",b=i.Number,k=b.prototype,x=s(p(k))==m,I=function(t){if(f(t))throw TypeError("Cannot convert a Symbol value to a number");var e,n,r,i,o,a,c,s,u=l(t,"number");if("string"==typeof u&&u.length>2)if(43===(e=(u=y(u)).charCodeAt(0))||45===e){if(88===(n=u.charCodeAt(2))||120===n)return NaN}else if(48===e){switch(u.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+u}for(a=(o=u.slice(2)).length,c=0;c<a;c++)if((s=o.charCodeAt(c))<48||s>i)return NaN;return parseInt(o,r)}return+u};if(o(m,!b(" 0o1")||!b("0b1")||b("+0x1"))){for(var O,w=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof w&&(x?h((function(){k.valueOf.call(n)})):s(n)!=m)?u(new b(I(e)),n,w):I(e)},C=r?v(b):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),S=0;C.length>S;S++)c(b,O=C[S])&&!c(w,O)&&g(w,O,d(b,O));w.prototype=k,k.constructor=w,a(i,m,w)}},3161:(t,e,n)=>{n(2109)({target:"Number",stat:!0},{isInteger:n(8730)})},9720:(t,e,n)=>{var r=n(2109),i=n(4699).entries;r({target:"Object",stat:!0},{entries:function(t){return i(t)}})},5003:(t,e,n)=>{var r=n(2109),i=n(7293),o=n(5656),a=n(1236).f,c=n(9781),s=i((function(){a(1)}));r({target:"Object",stat:!0,forced:!c||s,sham:!c},{getOwnPropertyDescriptor:function(t,e){return a(o(t),e)}})},9337:(t,e,n)=>{var r=n(2109),i=n(9781),o=n(3887),a=n(5656),c=n(1236),s=n(6135);r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){for(var e,n,r=a(t),i=c.f,u=o(r),f={},l=0;u.length>l;)void 0!==(n=i(r,e=u[l++]))&&s(f,e,n);return f}})},7941:(t,e,n)=>{var r=n(2109),i=n(7908),o=n(1956);r({target:"Object",stat:!0,forced:n(7293)((function(){o(1)}))},{keys:function(t){return o(i(t))}})},1539:(t,e,n)=>{var r=n(1694),i=n(1320),o=n(288);r||i(Object.prototype,"toString",o,{unsafe:!0})},2479:(t,e,n)=>{var r=n(2109),i=n(4699).values;r({target:"Object",stat:!0},{values:function(t){return i(t)}})},7727:(t,e,n)=>{"use strict";var r=n(2109),i=n(1913),o=n(3366),a=n(7293),c=n(5005),s=n(614),u=n(6707),f=n(9478),l=n(1320);if(r({target:"Promise",proto:!0,real:!0,forced:!!o&&a((function(){o.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=u(this,c("Promise")),n=s(t);return this.then(n?function(n){return f(e,t()).then((function(){return n}))}:t,n?function(n){return f(e,t()).then((function(){throw n}))}:t)}}),!i&&s(o)){var h=c("Promise").prototype.finally;o.prototype.finally!==h&&l(o.prototype,"finally",h,{unsafe:!0})}},8674:(t,e,n)=>{"use strict";var r,i,o,a,c=n(2109),s=n(1913),u=n(7854),f=n(5005),l=n(3366),h=n(1320),p=n(2248),v=n(7674),d=n(8003),g=n(6340),y=n(9662),m=n(614),b=n(111),k=n(5787),x=n(2788),I=n(408),O=n(7072),w=n(6707),C=n(261).set,S=n(5948),E=n(9478),_=n(842),A=n(8523),M=n(2534),R=n(9909),N=n(4705),P=n(5112),T=n(7871),j=n(5268),D=n(7392),L=P("species"),V="Promise",F=R.get,H=R.set,B=R.getterFor(V),G=l&&l.prototype,U=l,K=G,W=u.TypeError,z=u.document,Y=u.process,q=A.f,$=q,J=!!(z&&z.createEvent&&u.dispatchEvent),Q=m(u.PromiseRejectionEvent),X="unhandledrejection",Z=!1,tt=N(V,(function(){var t=x(U),e=t!==String(U);if(!e&&66===D)return!0;if(s&&!K.finally)return!0;if(D>=51&&/native code/.test(t))return!1;var n=new U((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};return(n.constructor={})[L]=r,!(Z=n.then((function(){}))instanceof r)||!e&&T&&!Q})),et=tt||!O((function(t){U.all(t).catch((function(){}))})),nt=function(t){var e;return!(!b(t)||!m(e=t.then))&&e},rt=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;S((function(){for(var r=t.value,i=1==t.state,o=0;n.length>o;){var a,c,s,u=n[o++],f=i?u.ok:u.fail,l=u.resolve,h=u.reject,p=u.domain;try{f?(i||(2===t.rejection&&ct(t),t.rejection=1),!0===f?a=r:(p&&p.enter(),a=f(r),p&&(p.exit(),s=!0)),a===u.promise?h(W("Promise-chain cycle")):(c=nt(a))?c.call(a,l,h):l(a)):h(r)}catch(t){p&&!s&&p.exit(),h(t)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&ot(t)}))}},it=function(t,e,n){var r,i;J?((r=z.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),u.dispatchEvent(r)):r={promise:e,reason:n},!Q&&(i=u["on"+t])?i(r):t===X&&_("Unhandled promise rejection",n)},ot=function(t){C.call(u,(function(){var e,n=t.facade,r=t.value;if(at(t)&&(e=M((function(){j?Y.emit("unhandledRejection",r,n):it(X,n,r)})),t.rejection=j||at(t)?2:1,e.error))throw e.value}))},at=function(t){return 1!==t.rejection&&!t.parent},ct=function(t){C.call(u,(function(){var e=t.facade;j?Y.emit("rejectionHandled",e):it("rejectionhandled",e,t.value)}))},st=function(t,e,n){return function(r){t(e,r,n)}},ut=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,rt(t,!0))},ft=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw W("Promise can't be resolved itself");var r=nt(e);r?S((function(){var n={done:!1};try{r.call(e,st(ft,n,t),st(ut,n,t))}catch(e){ut(n,e,t)}})):(t.value=e,t.state=1,rt(t,!1))}catch(e){ut({done:!1},e,t)}}};if(tt&&(K=(U=function(t){k(this,U,V),y(t),r.call(this);var e=F(this);try{t(st(ft,e),st(ut,e))}catch(t){ut(e,t)}}).prototype,(r=function(t){H(this,{type:V,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=p(K,{then:function(t,e){var n=B(this),r=q(w(this,U));return r.ok=!m(t)||t,r.fail=m(e)&&e,r.domain=j?Y.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&rt(n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r,e=F(t);this.promise=t,this.resolve=st(ft,e),this.reject=st(ut,e)},A.f=q=function(t){return t===U||t===o?new i(t):$(t)},!s&&m(l)&&G!==Object.prototype)){a=G.then,Z||(h(G,"then",(function(t,e){var n=this;return new U((function(t,e){a.call(n,t,e)})).then(t,e)}),{unsafe:!0}),h(G,"catch",K.catch,{unsafe:!0}));try{delete G.constructor}catch(t){}v&&v(G,K)}c({global:!0,wrap:!0,forced:tt},{Promise:U}),d(U,V,!1,!0),g(V),o=f(V),c({target:V,stat:!0,forced:tt},{reject:function(t){var e=q(this);return e.reject.call(void 0,t),e.promise}}),c({target:V,stat:!0,forced:s||tt},{resolve:function(t){return E(s&&this===o?U:this,t)}}),c({target:V,stat:!0,forced:et},{all:function(t){var e=this,n=q(e),r=n.resolve,i=n.reject,o=M((function(){var n=y(e.resolve),o=[],a=0,c=1;I(t,(function(t){var s=a++,u=!1;o.push(void 0),c++,n.call(e,t).then((function(t){u||(u=!0,o[s]=t,--c||r(o))}),i)})),--c||r(o)}));return o.error&&i(o.value),n.promise},race:function(t){var e=this,n=q(e),r=n.reject,i=M((function(){var i=y(e.resolve);I(t,(function(t){i.call(e,t).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}})},2419:(t,e,n)=>{var r=n(2109),i=n(5005),o=n(9483),a=n(9670),c=n(111),s=n(30),u=n(7065),f=n(7293),l=i("Reflect","construct"),h=f((function(){function t(){}return!(l((function(){}),[],t)instanceof t)})),p=!f((function(){l((function(){}))})),v=h||p;r({target:"Reflect",stat:!0,forced:v,sham:v},{construct:function(t,e){o(t),a(e);var n=arguments.length<3?t:o(arguments[2]);if(p&&!h)return l(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return r.push.apply(r,e),new(u.apply(t,r))}var i=n.prototype,f=s(c(i)?i:Object.prototype),v=Function.apply.call(t,f,e);return c(v)?v:f}})},4603:(t,e,n)=>{var r=n(9781),i=n(7854),o=n(4705),a=n(9587),c=n(8880),s=n(3070).f,u=n(8006).f,f=n(7850),l=n(1340),h=n(7066),p=n(2999),v=n(1320),d=n(7293),g=n(6656),y=n(9909).enforce,m=n(6340),b=n(5112),k=n(9441),x=n(7168),I=b("match"),O=i.RegExp,w=O.prototype,C=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,S=/a/g,E=/a/g,_=new O(S)!==S,A=p.UNSUPPORTED_Y;if(o("RegExp",r&&(!_||A||k||x||d((function(){return E[I]=!1,O(S)!=S||O(E)==E||"/a/i"!=O(S,"i")}))))){for(var M=function(t,e){var n,r,i,o,s,u,p=this instanceof M,v=f(t),d=void 0===e,m=[],b=t;if(!p&&v&&d&&t.constructor===M)return t;if((v||t instanceof M)&&(t=t.source,d&&(e="flags"in b?b.flags:h.call(b))),t=void 0===t?"":l(t),e=void 0===e?"":l(e),b=t,k&&"dotAll"in S&&(r=!!e&&e.indexOf("s")>-1)&&(e=e.replace(/s/g,"")),n=e,A&&"sticky"in S&&(i=!!e&&e.indexOf("y")>-1)&&(e=e.replace(/y/g,"")),x&&(o=function(t){for(var e,n=t.length,r=0,i="",o=[],a={},c=!1,s=!1,u=0,f="";r<=n;r++){if("\\"===(e=t.charAt(r)))e+=t.charAt(++r);else if("]"===e)c=!1;else if(!c)switch(!0){case"["===e:c=!0;break;case"("===e:C.test(t.slice(r+1))&&(r+=2,s=!0),i+=e,u++;continue;case">"===e&&s:if(""===f||g(a,f))throw new SyntaxError("Invalid capture group name");a[f]=!0,o.push([f,u]),s=!1,f="";continue}s?f+=e:i+=e}return[i,o]}(t),t=o[0],m=o[1]),s=a(O(t,e),p?this:w,M),(r||i||m.length)&&(u=y(s),r&&(u.dotAll=!0,u.raw=M(function(t){for(var e,n=t.length,r=0,i="",o=!1;r<=n;r++)"\\"!==(e=t.charAt(r))?o||"."!==e?("["===e?o=!0:"]"===e&&(o=!1),i+=e):i+="[\\s\\S]":i+=e+t.charAt(++r);return i}(t),n)),i&&(u.sticky=!0),m.length&&(u.groups=m)),t!==b)try{c(s,"source",""===b?"(?:)":b)}catch(t){}return s},R=function(t){t in M||s(M,t,{configurable:!0,get:function(){return O[t]},set:function(e){O[t]=e}})},N=u(O),P=0;N.length>P;)R(N[P++]);w.constructor=M,M.prototype=w,v(i,"RegExp",M)}m("RegExp")},4916:(t,e,n)=>{"use strict";var r=n(2109),i=n(2261);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},2087:(t,e,n)=>{var r=n(9781),i=n(3070),o=n(7066),a=n(7293);r&&a((function(){return"sy"!==Object.getOwnPropertyDescriptor(RegExp.prototype,"flags").get.call({dotAll:!0,sticky:!0})}))&&i.f(RegExp.prototype,"flags",{configurable:!0,get:o})},9714:(t,e,n)=>{"use strict";var r=n(6530).PROPER,i=n(1320),o=n(9670),a=n(1340),c=n(7293),s=n(7066),u="toString",f=RegExp.prototype,l=f.toString,h=c((function(){return"/a/b"!=l.call({source:"a",flags:"b"})})),p=r&&l.name!=u;(h||p)&&i(RegExp.prototype,u,(function(){var t=o(this),e=a(t.source),n=t.flags;return"/"+e+"/"+a(void 0===n&&t instanceof RegExp&&!("flags"in f)?s.call(t):n)}),{unsafe:!0})},7852:(t,e,n)=>{"use strict";var r,i=n(2109),o=n(1236).f,a=n(7466),c=n(1340),s=n(3929),u=n(4488),f=n(4964),l=n(1913),h="".endsWith,p=Math.min,v=f("endsWith");i({target:"String",proto:!0,forced:!(!l&&!v&&(r=o(String.prototype,"endsWith"),r&&!r.writable)||v)},{endsWith:function(t){var e=c(u(this));s(t);var n=arguments.length>1?arguments[1]:void 0,r=a(e.length),i=void 0===n?r:p(a(n),r),o=c(t);return h?h.call(e,o,i):e.slice(i-o.length,i)===o}})},2023:(t,e,n)=>{"use strict";var r=n(2109),i=n(3929),o=n(4488),a=n(1340);r({target:"String",proto:!0,forced:!n(4964)("includes")},{includes:function(t){return!!~a(o(this)).indexOf(a(i(t)),arguments.length>1?arguments[1]:void 0)}})},8783:(t,e,n)=>{"use strict";var r=n(8710).charAt,i=n(1340),o=n(9909),a=n(654),c="String Iterator",s=o.set,u=o.getterFor(c);a(String,"String",(function(t){s(this,{type:c,string:i(t),index:0})}),(function(){var t,e=u(this),n=e.string,i=e.index;return i>=n.length?{value:void 0,done:!0}:(t=r(n,i),e.index+=t.length,{value:t,done:!1})}))},4723:(t,e,n)=>{"use strict";var r=n(7007),i=n(9670),o=n(7466),a=n(1340),c=n(4488),s=n(8173),u=n(1530),f=n(7651);r("match",(function(t,e,n){return[function(e){var n=c(this),r=null==e?void 0:s(e,t);return r?r.call(e,n):new RegExp(e)[t](a(n))},function(t){var r=i(this),c=a(t),s=n(e,r,c);if(s.done)return s.value;if(!r.global)return f(r,c);var l=r.unicode;r.lastIndex=0;for(var h,p=[],v=0;null!==(h=f(r,c));){var d=a(h[0]);p[v]=d,""===d&&(r.lastIndex=u(c,o(r.lastIndex),l)),v++}return 0===v?null:p}]}))},5306:(t,e,n)=>{"use strict";var r=n(7007),i=n(7293),o=n(9670),a=n(614),c=n(9958),s=n(7466),u=n(1340),f=n(4488),l=n(1530),h=n(8173),p=n(647),v=n(7651),d=n(5112)("replace"),g=Math.max,y=Math.min,m="$0"==="a".replace(/./,"$0"),b=!!/./[d]&&""===/./[d]("a","$0");r("replace",(function(t,e,n){var r=b?"$":"$0";return[function(t,n){var r=f(this),i=null==t?void 0:h(t,d);return i?i.call(t,r,n):e.call(u(r),t,n)},function(t,i){var f=o(this),h=u(t);if("string"==typeof i&&-1===i.indexOf(r)&&-1===i.indexOf("$<")){var d=n(e,f,h,i);if(d.done)return d.value}var m=a(i);m||(i=u(i));var b=f.global;if(b){var k=f.unicode;f.lastIndex=0}for(var x=[];;){var I=v(f,h);if(null===I)break;if(x.push(I),!b)break;""===u(I[0])&&(f.lastIndex=l(h,s(f.lastIndex),k))}for(var O,w="",C=0,S=0;S<x.length;S++){I=x[S];for(var E=u(I[0]),_=g(y(c(I.index),h.length),0),A=[],M=1;M<I.length;M++)A.push(void 0===(O=I[M])?O:String(O));var R=I.groups;if(m){var N=[E].concat(A,_,h);void 0!==R&&N.push(R);var P=u(i.apply(void 0,N))}else P=p(E,h,_,A,R,i);_>=C&&(w+=h.slice(C,_)+P,C=_+E.length)}return w+h.slice(C)}]}),!!i((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!m||b)},6755:(t,e,n)=>{"use strict";var r,i=n(2109),o=n(1236).f,a=n(7466),c=n(1340),s=n(3929),u=n(4488),f=n(4964),l=n(1913),h="".startsWith,p=Math.min,v=f("startsWith");i({target:"String",proto:!0,forced:!(!l&&!v&&(r=o(String.prototype,"startsWith"),r&&!r.writable)||v)},{startsWith:function(t){var e=c(u(this));s(t);var n=a(p(arguments.length>1?arguments[1]:void 0,e.length)),r=c(t);return h?h.call(e,r,n):e.slice(n,n+r.length)===r}})},1817:(t,e,n)=>{"use strict";var r=n(2109),i=n(9781),o=n(7854),a=n(6656),c=n(614),s=n(111),u=n(3070).f,f=n(9920),l=o.Symbol;if(i&&c(l)&&(!("description"in l.prototype)||void 0!==l().description)){var h={},p=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof p?new l(t):void 0===t?l():l(t);return""===t&&(h[e]=!0),e};f(p,l);var v=p.prototype=l.prototype;v.constructor=p;var d=v.toString,g="Symbol(test)"==String(l("test")),y=/^Symbol\((.*)\)[^)]+$/;u(v,"description",{configurable:!0,get:function(){var t=s(this)?this.valueOf():this,e=d.call(t);if(a(h,t))return"";var n=g?e.slice(7,-1):e.replace(y,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:p})}},2165:(t,e,n)=>{n(7235)("iterator")},2526:(t,e,n)=>{"use strict";var r=n(2109),i=n(7854),o=n(5005),a=n(1913),c=n(9781),s=n(133),u=n(7293),f=n(6656),l=n(3157),h=n(614),p=n(111),v=n(2190),d=n(9670),g=n(7908),y=n(5656),m=n(4948),b=n(1340),k=n(9114),x=n(30),I=n(1956),O=n(8006),w=n(1156),C=n(5181),S=n(1236),E=n(3070),_=n(5296),A=n(1320),M=n(2309),R=n(6200),N=n(3501),P=n(9711),T=n(5112),j=n(6061),D=n(7235),L=n(8003),V=n(9909),F=n(2092).forEach,H=R("hidden"),B="Symbol",G=T("toPrimitive"),U=V.set,K=V.getterFor(B),W=Object.prototype,z=i.Symbol,Y=o("JSON","stringify"),q=S.f,$=E.f,J=w.f,Q=_.f,X=M("symbols"),Z=M("op-symbols"),tt=M("string-to-symbol-registry"),et=M("symbol-to-string-registry"),nt=M("wks"),rt=i.QObject,it=!rt||!rt.prototype||!rt.prototype.findChild,ot=c&&u((function(){return 7!=x($({},"a",{get:function(){return $(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=q(W,e);r&&delete W[e],$(t,e,n),r&&t!==W&&$(W,e,r)}:$,at=function(t,e){var n=X[t]=x(z.prototype);return U(n,{type:B,tag:t,description:e}),c||(n.description=e),n},ct=function(t,e,n){t===W&&ct(Z,e,n),d(t);var r=m(e);return d(n),f(X,r)?(n.enumerable?(f(t,H)&&t[H][r]&&(t[H][r]=!1),n=x(n,{enumerable:k(0,!1)})):(f(t,H)||$(t,H,k(1,{})),t[H][r]=!0),ot(t,r,n)):$(t,r,n)},st=function(t,e){d(t);var n=y(e),r=I(n).concat(ht(n));return F(r,(function(e){c&&!ut.call(n,e)||ct(t,e,n[e])})),t},ut=function(t){var e=m(t),n=Q.call(this,e);return!(this===W&&f(X,e)&&!f(Z,e))&&(!(n||!f(this,e)||!f(X,e)||f(this,H)&&this[H][e])||n)},ft=function(t,e){var n=y(t),r=m(e);if(n!==W||!f(X,r)||f(Z,r)){var i=q(n,r);return!i||!f(X,r)||f(n,H)&&n[H][r]||(i.enumerable=!0),i}},lt=function(t){var e=J(y(t)),n=[];return F(e,(function(t){f(X,t)||f(N,t)||n.push(t)})),n},ht=function(t){var e=t===W,n=J(e?Z:y(t)),r=[];return F(n,(function(t){!f(X,t)||e&&!f(W,t)||r.push(X[t])})),r};if(s||(A((z=function(){if(this instanceof z)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?b(arguments[0]):void 0,e=P(t),n=function(t){this===W&&n.call(Z,t),f(this,H)&&f(this[H],e)&&(this[H][e]=!1),ot(this,e,k(1,t))};return c&&it&&ot(W,e,{configurable:!0,set:n}),at(e,t)}).prototype,"toString",(function(){return K(this).tag})),A(z,"withoutSetter",(function(t){return at(P(t),t)})),_.f=ut,E.f=ct,S.f=ft,O.f=w.f=lt,C.f=ht,j.f=function(t){return at(T(t),t)},c&&($(z.prototype,"description",{configurable:!0,get:function(){return K(this).description}}),a||A(W,"propertyIsEnumerable",ut,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!s,sham:!s},{Symbol:z}),F(I(nt),(function(t){D(t)})),r({target:B,stat:!0,forced:!s},{for:function(t){var e=b(t);if(f(tt,e))return tt[e];var n=z(e);return tt[e]=n,et[n]=e,n},keyFor:function(t){if(!v(t))throw TypeError(t+" is not a symbol");if(f(et,t))return et[t]},useSetter:function(){it=!0},useSimple:function(){it=!1}}),r({target:"Object",stat:!0,forced:!s,sham:!c},{create:function(t,e){return void 0===e?x(t):st(x(t),e)},defineProperty:ct,defineProperties:st,getOwnPropertyDescriptor:ft}),r({target:"Object",stat:!0,forced:!s},{getOwnPropertyNames:lt,getOwnPropertySymbols:ht}),r({target:"Object",stat:!0,forced:u((function(){C.f(1)}))},{getOwnPropertySymbols:function(t){return C.f(g(t))}}),Y&&r({target:"JSON",stat:!0,forced:!s||u((function(){var t=z();return"[null]"!=Y([t])||"{}"!=Y({a:t})||"{}"!=Y(Object(t))}))},{stringify:function(t,e,n){for(var r,i=[t],o=1;arguments.length>o;)i.push(arguments[o++]);if(r=e,(p(e)||void 0!==t)&&!v(t))return l(e)||(e=function(t,e){if(h(r)&&(e=r.call(this,t,e)),!v(e))return e}),i[1]=e,Y.apply(null,i)}}),!z.prototype[G]){var pt=z.prototype.valueOf;A(z.prototype,G,(function(){return pt.apply(this,arguments)}))}L(z,B),N[H]=!0},4747:(t,e,n)=>{var r=n(7854),i=n(8324),o=n(8509),a=n(8533),c=n(8880),s=function(t){if(t&&t.forEach!==a)try{c(t,"forEach",a)}catch(e){t.forEach=a}};for(var u in i)i[u]&&s(r[u]&&r[u].prototype);s(o)},3948:(t,e,n)=>{var r=n(7854),i=n(8324),o=n(8509),a=n(6992),c=n(8880),s=n(5112),u=s("iterator"),f=s("toStringTag"),l=a.values,h=function(t,e){if(t){if(t[u]!==l)try{c(t,u,l)}catch(e){t[u]=l}if(t[f]||c(t,f,e),i[e])for(var n in a)if(t[n]!==a[n])try{c(t,n,a[n])}catch(e){t[n]=a[n]}}};for(var p in i)h(r[p]&&r[p].prototype,p);h(o,"DOMTokenList")},5666:t=>{var e=function(t){"use strict";var e,n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof g?e:g,o=Object.create(i.prototype),a=new _(r||[]);return o._invoke=function(t,e,n){var r=l;return function(i,o){if(r===p)throw new Error("Generator is already running");if(r===v){if("throw"===i)throw o;return M()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var c=C(a,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===l)throw r=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var s=f(t,e,n);if("normal"===s.type){if(r=n.done?v:h,s.arg===d)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r=v,n.method="throw",n.arg=s.arg)}}}(t,n,a),o}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var l="suspendedStart",h="suspendedYield",p="executing",v="completed",d={};function g(){}function y(){}function m(){}var b={};s(b,o,(function(){return this}));var k=Object.getPrototypeOf,x=k&&k(k(A([])));x&&x!==n&&r.call(x,o)&&(b=x);var I=m.prototype=g.prototype=Object.create(b);function O(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function n(i,o,a,c){var s=f(t[i],t,o);if("throw"!==s.type){var u=s.arg,l=u.value;return l&&"object"==typeof l&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(l).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,c)}))}c(s.arg)}var i;this._invoke=function(t,r){function o(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(o,o):o()}}function C(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,C(t,n),"throw"===n.method))return d;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var i=f(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,d;var o=i.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,d):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,d)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function A(t){if(t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}return{next:M}}function M(){return{value:e,done:!0}}return y.prototype=m,s(I,"constructor",m),s(m,"constructor",y),y.displayName=s(m,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,s(t,c,"GeneratorFunction")),t.prototype=Object.create(I),t},t.awrap=function(t){return{__await:t}},O(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new w(u(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(I),s(I,c,"Generator"),s(I,o,(function(){return this})),s(I,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=A,_.prototype={constructor:_,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(E),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return c.type="throw",c.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],c=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),E(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:A(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),d}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},9591:t=>{"use strict";t.exports=require("@babel/runtime/helpers/asyncToGenerator")},8765:t=>{"use strict";t.exports=require("@babel/runtime/helpers/createClass")},8779:t=>{"use strict";t.exports=require("@babel/runtime/helpers/defineProperty")},3761:t=>{"use strict";t.exports=require("@babel/runtime/helpers/getPrototypeOf")},5370:t=>{"use strict";t.exports=require("@babel/runtime/helpers/inherits")},9548:t=>{"use strict";t.exports=require("@babel/runtime/helpers/possibleConstructorReturn")},353:t=>{"use strict";t.exports=require("@babel/runtime/helpers/slicedToArray")},9293:t=>{"use strict";t.exports=require("@babel/runtime/helpers/typeof")},1307:t=>{"use strict";t.exports=require("@babel/runtime/regenerator")},1030:t=>{"use strict";t.exports=require("abort-controller")},1239:t=>{"use strict";t.exports=require("events")},4809:t=>{"use strict";t.exports=require("node-fetch")},6689:t=>{"use strict";t.exports=require("react")},3685:t=>{"use strict";t.exports=require("http")},5687:t=>{"use strict";t.exports=require("https")}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};(()=>{"use strict";n.r(r),n.d(r,{FlagshipContext:()=>t.e,FlagshipProvider:()=>t.X,noVisitorDefault:()=>o.yz,noVisitorMessage:()=>o.mq,useFlagship:()=>o.UM,useFsActivate:()=>o.pc,useFsModification:()=>o.nr,useFsModificationInfo:()=>o._X,useFsModifications:()=>o.GW,useFsSynchronizeModifications:()=>o.TM});var t=n(821),e=n(6968),i={};for(const t in e)["default","FlagshipContext","FlagshipProvider"].indexOf(t)<0&&(i[t]=()=>e[t]);n.d(r,i);var o=n(9460)})(),module.exports=r})();
|
|
2
2
|
//# sourceMappingURL=index.js.map
|