@flagship.io/react-sdk 5.0.2 → 5.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2080 @@
1
- (()=>{"use strict";var t={5663:(t,e,n)=>{n.d(e,{f:()=>o,g:()=>i});var r=n(2015);const o={isInitializing:!0},i=(0,r.createContext)({state:{...o}})},483:(t,e,n)=>{n.d(e,{E:()=>g,r:()=>l}),n(9479);var r=n(2015),o=n(2473);const i="flagship Visitor not initialized.";var a=n(5663),s=n(6495);function u(t,e,n){var r;return(e="symbol"==typeof(r=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e))?r:r+"")in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class c{constructor(t,e){u(this,"key",void 0),u(this,"flag",void 0);const n=e.flags;e.hasVisitorData||(0,s.JE)(o.Flagship.getConfig(),i,"GetFlag"),this.key=t,this.flag=null==n?void 0:n.get(t)}getValue(t){return this.flag?null===this.flag.value||void 0===this.flag.value?t:null==t||(0,s.N0)(this.flag.value,t)?this.flag.value:((0,s.fH)(o.Flagship.getConfig(),(0,s.nv)("Flag for key {0} has a different type. Default value is returned.",this.key),"getValue"),t):t}exists(){return!!this.flag&&!!(this.flag.campaignId&&this.flag.variationId&&this.flag.variationGroupId)}async visitorExposed(){}get metadata(){return this.flag?new o.FSFlagMetadata({campaignId:this.flag.campaignId,campaignName:this.flag.campaignName,variationGroupId:this.flag.variationGroupId,variationGroupName:this.flag.variationGroupName,variationId:this.flag.variationId,variationName:this.flag.variationName,isReference:!!this.flag.isReference,campaignType:this.flag.campaignType,slug:this.flag.slug}):o.FSFlagMetadata.Empty()}get status(){return this.exists()?o.FSFlagStatus.FETCHED:o.FSFlagStatus.NOT_FOUND}}const l=t=>{const{state:e}=(0,r.useContext)(a.g),{visitor:n}=e;return n?n.getFlag(t):new c(t,e)},f=t=>{const{updateFunction:e,functionName:n,visitor:r,config:o}=t;if(!r)return void(0,s.vV)(o,i,n);const a=(0,s.Go)(r.context);e();const u=r.context;(0,s.I0)(a,u)&&r.fetchFlags()},g=()=>{const{state:t}=(0,r.useContext)(a.g),{visitor:e,config:n}=t,u=(0,r.useCallback)((t=>{f({config:n,visitor:e,updateFunction:()=>null==e?void 0:e.updateContext(t),functionName:"updateContext"})}),[e]),l=(0,r.useCallback)((()=>{f({config:n,visitor:e,updateFunction:()=>null==e?void 0:e.clearContext(),functionName:"cleanContext"})}),[e]),g=(0,r.useCallback)((t=>{if(!e)return void(0,s.vV)(n,i,"authenticate");const r=e.visitorId;e.authenticate(t),r!==t&&e.fetchFlags()}),[e]),v=(0,r.useCallback)((()=>{if(!e)return void(0,s.vV)(n,i,"unauthenticate");const t=e.visitorId;e.unauthenticate(),t!==e.visitorId&&e.fetchFlags()}),[e]),p=(0,r.useCallback)((t=>e?Array.isArray(t)?e.sendHits(t):e.sendHit(t):((0,s.vV)(n,i,"sendHit"),Promise.resolve())),[e]),d=(0,r.useCallback)((n=>e?e.getFlag(n):new c(n,t)),[e]),h=(0,r.useCallback)((async()=>e?e.fetchFlags():((0,s.JE)(n,i,"fetchFlags"),Promise.resolve())),[e]),y=(0,r.useCallback)((t=>{e?e.setConsent(t):(0,s.JE)(n,i,"setConsent")}),[e]),m=(0,r.useCallback)((()=>o.Flagship.close()),[]),b=(0,r.useCallback)((()=>{if(!e){var n;const e=new Map;return null===(n=t.flags)||void 0===n||n.forEach(((n,r)=>{e.set(r,new c(r,t))})),new o.FSFlagCollection({flags:e})}return e.getFlags()}),[e]),S=(0,r.useCallback)((async(...t)=>{if(e)return e.collectEAIEventsAsync(...t)}),[e]);return(0,r.useMemo)((()=>({visitorId:null==e?void 0:e.visitorId,anonymousId:null==e?void 0:e.anonymousId,context:{...null==e?void 0:e.context},hasConsented:null==e?void 0:e.hasConsented,sdkStatus:o.Flagship.getStatus(),flagsStatus:null==e?void 0:e.flagsStatus,setConsent:y,updateContext:u,clearContext:l,authenticate:g,unauthenticate:v,sendHits:p,getFlag:d,fetchFlags:h,close:m,getFlags:b,collectEAIEventsAsync:S})),[e,y,u,l,g,v,p,d,h,m,b,S])}},1935:(t,e,n)=>{n.d(e,{_:()=>f});var r=n(2015),o=n.n(r),i=n(2473),a=n.n(i),s=n(5663);let u=function(t){return t.FsTriggerRendering="FS_TRIGGER_RENDERING",t}({});const c="5.0.2";var l=n(6495);function f({children:t,envId:e,apiKey:n,decisionMode:f=i.DecisionMode.DECISION_API,visitorData:g,loadingComponent:v,onSdkStatusChanged:p,onBucketingUpdated:d,initialCampaigns:h,initialFlagsData:y,fetchFlagsOnBucketingUpdated:m,hitDeduplicationTime:b=2,fetchNow:S=!0,language:x=1,sdkVersion:I=c,onFlagsStatusChanged:F,shouldSaveInstance:w,...C}){var E;const O=(0,l.FG)(y,h),[N,k]=(0,r.useState)({...s.f,flags:O,hasVisitorData:!!g}),[j,A]=(0,r.useState)(),L=(0,r.useRef)();L.current=N;const P=(0,r.useRef)(g),T=t=>{d&&d(t),A(t)},R=t=>{switch(p&&p(t),t){case i.FSSdkStatus.SDK_PANIC:case i.FSSdkStatus.SDK_INITIALIZED:D();break;case i.FSSdkStatus.SDK_NOT_INITIALIZED:k((t=>({...t,config:a().getConfig(),isInitializing:!1})))}};function M(t){k((e=>({...e,visitor:t.fsVisitor,config:a().getConfig(),isInitializing:!1,hasVisitorData:!!g})))}const D=()=>{if(!P.current)return;const t=a().newVisitor({visitorId:P.current.id,context:P.current.context,isAuthenticated:P.current.isAuthenticated,hasConsented:P.current.hasConsented,initialCampaigns:h,initialFlagsData:y,onFlagsStatusChanged:F,shouldSaveInstance:w});null==t||t.on("ready",(e=>{((t,e)=>{e&&(0,l.vV)(a().getConfig(),e.message||e,"onReady"),M({fsVisitor:t})})(t,e)})),S||M({fsVisitor:t})};(0,l.ig)((()=>{var t;m&&(null===(t=N.visitor)||void 0===t||t.fetchFlags())}),[j]),(0,l.ig)((()=>{P.current=g,function(){if(P.current&&a().getStatus()===i.FSSdkStatus.SDK_INITIALIZED){var t,e;if(!N.visitor||N.visitor.visitorId!==P.current.id&&(!P.current.isAuthenticated||P.current.isAuthenticated&&N.visitor.anonymousId))return null===(t=N.visitor)||void 0===t||t.cleanup(),void D();P.current.hasConsented!==N.visitor.hasConsented&&N.visitor.setConsent(null===(e=P.current.hasConsented)||void 0===e||e),N.visitor.updateContext(P.current.context),!N.visitor.anonymousId&&P.current.isAuthenticated&&N.visitor.authenticate(P.current.id),N.visitor.anonymousId&&!P.current.isAuthenticated&&N.visitor.unauthenticate(),N.visitor.fetchFlags()}}()}),[JSON.stringify(g)]),(0,r.useEffect)((()=>{a().start(e,n,{decisionMode:f,fetchNow:S,onSdkStatusChanged:R,onBucketingUpdated:T,hitDeduplicationTime:b,language:x,sdkVersion:I,...C})}),[e,n,f]),(0,r.useEffect)((()=>{var t,e;return null===(t=window)||void 0===t||null===(e=t.addEventListener)||void 0===e||e.call(t,u.FsTriggerRendering,G),()=>{var t,e;return null===(t=window)||void 0===t||null===(e=t.removeEventListener)||void 0===e?void 0:e.call(t,u.FsTriggerRendering,G)}}),[null===(E=N.config)||void 0===E?void 0:E.isQAModeEnabled]);const G=t=>{const{detail:e}=t;var n;e.forcedReFetchFlags?null===(n=L.current)||void 0===n||null===(n=n.visitor)||void 0===n||n.fetchFlags():k((t=>({...t,toggleForcedVariations:!t.toggleForcedVariations})))};return o().createElement(s.g.Provider,{value:{state:N,setState:k}},(()=>{const e=!N.visitor;return N.isInitializing&&v&&e&&S?o().createElement(o().Fragment,null,v):o().createElement(o().Fragment,null,t)})())}},6495:(t,e,n)=>{n.d(e,{FG:()=>p,Go:()=>d,I0:()=>h,JE:()=>u,N0:()=>f,fH:()=>s,ig:()=>l,nv:()=>g,vV:()=>a});var r=n(2015),o=n(2473),i=n.n(o);function a(t,e,n){!t||!t.logLevel||t.logLevel<o.LogLevel.ERROR||("function"==typeof t.onLog&&t.onLog(o.LogLevel.ERROR,n,e),t.logManager&&"function"==typeof t.logManager.error&&t.logManager.error(e,n))}function s(t,e,n){!t||!t.logLevel||t.logLevel<o.LogLevel.INFO||("function"==typeof t.onLog&&t.onLog(o.LogLevel.INFO,n,e),t.logManager&&"function"==typeof t.logManager.info&&t.logManager.info(e,n))}function u(t,e,n){!t||!t.logLevel||t.logLevel<o.LogLevel.WARNING||("function"==typeof t.onLog&&t.onLog(o.LogLevel.WARNING,n,e),t.logManager&&"function"==typeof t.logManager.warning&&t.logManager.warning(e,n))}const c=t=>{const e=new Map;return t&&Array.isArray(t)?(t.forEach((t=>{const n=t.variation.modifications.value;for(const r in n){const o=n[r];e.set(r,{key:r,campaignId:t.id,campaignName:t.name||"",variationGroupId:t.variationGroupId,variationGroupName:t.variationGroupName||"",variationId:t.variation.id,variationName:t.variation.name||"",isReference:t.variation.reference,slug:t.slug||"",value:o})}})),e):e};function l(t,e){const n=(0,r.useRef)(!0);(0,r.useEffect)((()=>{if(!n.current)return"function"==typeof t?t():void 0;n.current=!1}),e)}function f(t,e){return typeof t==typeof e&&("object"!=typeof t||"object"!=typeof e||Array.isArray(t)===Array.isArray(e))}function g(t,...e){let n=t;for(let t=0;t<e.length;t++){const r=e[t];n=n.replace(new RegExp(`\\{${t}\\}`,"g"),r)}return n}function v(t,e){if("string"!=typeof t)return a(e,`Invalid hex string: ${t}`,"hexToValue"),null;let n="";for(let r=0;r<t.length;r+=2){const o=t.slice(r,r+2),i=parseInt(o,16);if(isNaN(i))return a(e,`Invalid hex character: ${o}`,"hexToValue"),null;n+=String.fromCharCode(i)}try{return JSON.parse(n)}catch(t){return a(e,`Error while parsing JSON: ${null==t?void 0:t.message}`,"hexToValue"),null}}function p(t,e){let n=new Map;return Array.isArray(t)?t.forEach((t=>{var e;n.set(t.key,{key:t.key,campaignId:t.campaignId,campaignName:t.campaignName,variationGroupId:t.variationGroupId,variationGroupName:t.variationGroupName,variationId:t.variationId,variationName:t.variationName,isReference:t.isReference,campaignType:t.campaignType,slug:t.slug,value:null===(e=v(t.hex,i().getConfig()))||void 0===e?void 0:e.v})})):e&&(n=c(e)),n}function d(t){return JSON.parse(JSON.stringify(t))}function h(t,e){return JSON.stringify(t)!==JSON.stringify(e)}},2473:t=>{t.exports=require("@flagship.io/js-sdk")},2015:t=>{t.exports=require("react")},9306:(t,e,n)=>{var r=n(4901),o=n(6823),i=TypeError;t.exports=function(t){if(r(t))return t;throw new i(o(t)+" is not a function")}},8551:(t,e,n)=>{var r=n(34),o=String,i=TypeError;t.exports=function(t){if(r(t))return t;throw new i(o(t)+" is not an object")}},6699:(t,e,n)=>{var r=n(3724),o=n(4913),i=n(6980);t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},6980:t=>{t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},2106:(t,e,n)=>{var r=n(283),o=n(4913);t.exports=function(t,e,n){return n.get&&r(n.get,e,{getter:!0}),n.set&&r(n.set,e,{setter:!0}),o.f(t,e,n)}},9433:(t,e,n)=>{var r=n(4475),o=Object.defineProperty;t.exports=function(t,e){try{o(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},3724:(t,e,n)=>{var r=n(9039);t.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4055:(t,e,n)=>{var r=n(4475),o=n(34),i=r.document,a=o(i)&&o(i.createElement);t.exports=function(t){return a?i.createElement(t):{}}},9392:t=>{t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},7388:(t,e,n)=>{var r,o,i=n(4475),a=n(9392),s=i.process,u=i.Deno,c=s&&s.versions||u&&u.version,l=c&&c.v8;l&&(o=(r=l.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),t.exports=o},9039:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},616:(t,e,n)=>{var r=n(9039);t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},9565:(t,e,n)=>{var r=n(616),o=Function.prototype.call;t.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},350:(t,e,n)=>{var r=n(3724),o=n(9297),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=o(i,"name"),u=s&&"something"===function(){}.name,c=s&&(!r||r&&a(i,"name").configurable);t.exports={EXISTS:s,PROPER:u,CONFIGURABLE:c}},9504:(t,e,n)=>{var r=n(616),o=Function.prototype,i=o.call,a=r&&o.bind.bind(i,i);t.exports=r?a:function(t){return function(){return i.apply(t,arguments)}}},7751:(t,e,n)=>{var r=n(4475),o=n(4901);t.exports=function(t,e){return arguments.length<2?(n=r[t],o(n)?n:void 0):r[t]&&r[t][e];var n}},5966:(t,e,n)=>{var r=n(9306),o=n(4117);t.exports=function(t,e){var n=t[e];return o(n)?void 0:r(n)}},4475:function(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)||e("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9297:(t,e,n)=>{var r=n(9504),o=n(8981),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},421:t=>{t.exports={}},5917:(t,e,n)=>{var r=n(3724),o=n(9039),i=n(4055);t.exports=!r&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},3706:(t,e,n)=>{var r=n(9504),o=n(4901),i=n(7629),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return a(t)}),t.exports=i.inspectSource},1181:(t,e,n)=>{var r,o,i,a=n(8622),s=n(4475),u=n(34),c=n(6699),l=n(9297),f=n(7629),g=n(6119),v=n(421),p="Object already initialized",d=s.TypeError,h=s.WeakMap;if(a||f.state){var y=f.state||(f.state=new h);y.get=y.get,y.has=y.has,y.set=y.set,r=function(t,e){if(y.has(t))throw new d(p);return e.facade=t,y.set(t,e),e},o=function(t){return y.get(t)||{}},i=function(t){return y.has(t)}}else{var m=g("state");v[m]=!0,r=function(t,e){if(l(t,m))throw new d(p);return e.facade=t,c(t,m,e),e},o=function(t){return l(t,m)?t[m]:{}},i=function(t){return l(t,m)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!u(e)||(n=o(e)).type!==t)throw new d("Incompatible receiver, "+t+" required");return n}}}},4901:t=>{var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},4117:t=>{t.exports=function(t){return null==t}},34:(t,e,n)=>{var r=n(4901);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},6395:t=>{t.exports=!1},757:(t,e,n)=>{var r=n(7751),o=n(4901),i=n(1625),a=n(7040),s=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return o(e)&&i(e.prototype,s(t))}},283:(t,e,n)=>{var r=n(9504),o=n(9039),i=n(4901),a=n(9297),s=n(3724),u=n(350).CONFIGURABLE,c=n(3706),l=n(1181),f=l.enforce,g=l.get,v=String,p=Object.defineProperty,d=r("".slice),h=r("".replace),y=r([].join),m=s&&!o((function(){return 8!==p((function(){}),"length",{value:8}).length})),b=String(String).split("String"),S=t.exports=function(t,e,n){"Symbol("===d(v(e),0,7)&&(e="["+h(v(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!a(t,"name")||u&&t.name!==e)&&(s?p(t,"name",{value:e,configurable:!0}):t.name=e),m&&n&&a(n,"arity")&&t.length!==n.arity&&p(t,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&p(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=f(t);return a(r,"source")||(r.source=y(b,"string"==typeof e?e:"")),t};Function.prototype.toString=S((function(){return i(this)&&g(this).source||c(this)}),"toString")},4913:(t,e,n)=>{var r=n(3724),o=n(5917),i=n(8686),a=n(8551),s=n(6969),u=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",g="configurable",v="writable";e.f=r?i?function(t,e,n){if(a(t),e=s(e),a(n),"function"==typeof t&&"prototype"===e&&"value"in n&&v in n&&!n[v]){var r=l(t,e);r&&r[v]&&(t[e]=n.value,n={configurable:g in n?n[g]:r[g],enumerable:f in n?n[f]:r[f],writable:!1})}return c(t,e,n)}:c:function(t,e,n){if(a(t),e=s(e),a(n),o)try{return c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new u("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},1625:(t,e,n)=>{var r=n(9504);t.exports=r({}.isPrototypeOf)},4270:(t,e,n)=>{var r=n(9565),o=n(4901),i=n(34),a=TypeError;t.exports=function(t,e){var n,s;if("string"===e&&o(n=t.toString)&&!i(s=r(n,t)))return s;if(o(n=t.valueOf)&&!i(s=r(n,t)))return s;if("string"!==e&&o(n=t.toString)&&!i(s=r(n,t)))return s;throw new a("Can't convert object to primitive value")}},7979:(t,e,n)=>{var r=n(8551);t.exports=function(){var t=r(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},7750:(t,e,n)=>{var r=n(4117),o=TypeError;t.exports=function(t){if(r(t))throw new o("Can't call method on "+t);return t}},6119:(t,e,n)=>{var r=n(5745),o=n(3392),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},7629:(t,e,n)=>{var r=n(6395),o=n(4475),i=n(9433),a="__core-js_shared__",s=t.exports=o[a]||i(a,{});(s.versions||(s.versions=[])).push({version:"3.36.1",mode:r?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE",source:"https://github.com/zloirock/core-js"})},5745:(t,e,n)=>{var r=n(7629);t.exports=function(t,e){return r[t]||(r[t]=e||{})}},4495:(t,e,n)=>{var r=n(7388),o=n(9039),i=n(4475).String;t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol("symbol detection");return!i(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},8981:(t,e,n)=>{var r=n(7750),o=Object;t.exports=function(t){return o(r(t))}},2777:(t,e,n)=>{var r=n(9565),o=n(34),i=n(757),a=n(5966),s=n(4270),u=n(8227),c=TypeError,l=u("toPrimitive");t.exports=function(t,e){if(!o(t)||i(t))return t;var n,u=a(t,l);if(u){if(void 0===e&&(e="default"),n=r(u,t,e),!o(n)||i(n))return n;throw new c("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},6969:(t,e,n)=>{var r=n(2777),o=n(757);t.exports=function(t){var e=r(t,"string");return o(e)?e:e+""}},6823:t=>{var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},3392:(t,e,n)=>{var r=n(9504),o=0,i=Math.random(),a=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++o+i,36)}},7040:(t,e,n)=>{var r=n(4495);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8686:(t,e,n)=>{var r=n(3724),o=n(9039);t.exports=r&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8622:(t,e,n)=>{var r=n(4475),o=n(4901),i=r.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},8227:(t,e,n)=>{var r=n(4475),o=n(5745),i=n(9297),a=n(3392),s=n(4495),u=n(7040),c=r.Symbol,l=o("wks"),f=u?c.for||c:c&&c.withoutSetter||a;t.exports=function(t){return i(l,t)||(l[t]=s&&i(c,t)?c[t]:f("Symbol."+t)),l[t]}},9479:(t,e,n)=>{var r=n(4475),o=n(3724),i=n(2106),a=n(7979),s=n(9039),u=r.RegExp,c=u.prototype;o&&s((function(){var t=!0;try{u(".","d")}catch(e){t=!1}var e={},n="",r=t?"dgimsy":"gimsy",o=function(t,r){Object.defineProperty(e,t,{get:function(){return n+=r,!0}})},i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in t&&(i.hasIndices="d"),i)o(a,i[a]);return Object.getOwnPropertyDescriptor(c,"flags").get.call(e)!==r||n!==r}))&&i(c,"flags",{configurable:!0,get:a})}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r].call(i.exports,i,i.exports,n),i.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={};(()=>{n.r(r),n.d(r,{FlagshipProvider:()=>t._,default:()=>a,useFlagship:()=>i.E,useFsFlag:()=>i.r});var t=n(1935),e=n(2473),o={};for(const t in e)["default","FlagshipProvider"].indexOf(t)<0&&(o[t]=()=>e[t]);n.d(r,o);var i=n(483);const a=t._})(),module.exports=r})();
1
+ /******/ (() => { // webpackBootstrap
2
+ /******/ "use strict";
3
+ /******/ var __webpack_modules__ = ({
4
+
5
+ /***/ "./src/FSFlag.ts":
6
+ /*!***********************!*\
7
+ !*** ./src/FSFlag.ts ***!
8
+ \***********************/
9
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
10
+
11
+ __webpack_require__.r(__webpack_exports__);
12
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
13
+ /* harmony export */ FSFlag: () => (/* binding */ FSFlag)
14
+ /* harmony export */ });
15
+ /* harmony import */ var core_js_modules_es_regexp_flags_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.regexp.flags.js */ "./node_modules/core-js/modules/es.regexp.flags.js");
16
+ /* harmony import */ var core_js_modules_es_regexp_flags_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_flags_js__WEBPACK_IMPORTED_MODULE_0__);
17
+ /* harmony import */ var _flagship_io_js_sdk__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @flagship.io/js-sdk */ "@flagship.io/js-sdk");
18
+ /* harmony import */ var _flagship_io_js_sdk__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_flagship_io_js_sdk__WEBPACK_IMPORTED_MODULE_1__);
19
+ /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./constants */ "./src/constants.ts");
20
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils */ "./src/utils.ts");
21
+
22
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
23
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
24
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
25
+
26
+
27
+
28
+ class FSFlag {
29
+ constructor(key, state) {
30
+ _defineProperty(this, "key", void 0);
31
+ _defineProperty(this, "flag", void 0);
32
+ const flagsData = state.flags;
33
+ if (!state.hasVisitorData) {
34
+ (0,_utils__WEBPACK_IMPORTED_MODULE_2__.logWarn)(_flagship_io_js_sdk__WEBPACK_IMPORTED_MODULE_1__.Flagship.getConfig(), _constants__WEBPACK_IMPORTED_MODULE_3__.noVisitorMessage, 'GetFlag');
35
+ }
36
+ this.key = key;
37
+ this.flag = flagsData === null || flagsData === void 0 ? void 0 : flagsData.get(key);
38
+ }
39
+ getValue(defaultValue) {
40
+ if (!this.flag) {
41
+ return defaultValue;
42
+ }
43
+ if (this.flag.value === null || this.flag.value === undefined) {
44
+ return defaultValue;
45
+ }
46
+ if (defaultValue !== null && defaultValue !== undefined && !(0,_utils__WEBPACK_IMPORTED_MODULE_2__.hasSameType)(this.flag.value, defaultValue)) {
47
+ (0,_utils__WEBPACK_IMPORTED_MODULE_2__.logInfo)(_flagship_io_js_sdk__WEBPACK_IMPORTED_MODULE_1__.Flagship.getConfig(), (0,_utils__WEBPACK_IMPORTED_MODULE_2__.sprintf)(_constants__WEBPACK_IMPORTED_MODULE_3__.GET_FLAG_CAST_ERROR, this.key), 'getValue');
48
+ return defaultValue;
49
+ }
50
+ return this.flag.value;
51
+ }
52
+ exists() {
53
+ if (!this.flag) {
54
+ return false;
55
+ }
56
+ return !!(this.flag.campaignId && this.flag.variationId && this.flag.variationGroupId);
57
+ }
58
+ async visitorExposed() {
59
+ // do nothing
60
+ }
61
+ get metadata() {
62
+ if (!this.flag) {
63
+ return _flagship_io_js_sdk__WEBPACK_IMPORTED_MODULE_1__.FSFlagMetadata.Empty();
64
+ }
65
+ return new _flagship_io_js_sdk__WEBPACK_IMPORTED_MODULE_1__.FSFlagMetadata({
66
+ campaignId: this.flag.campaignId,
67
+ campaignName: this.flag.campaignName,
68
+ variationGroupId: this.flag.variationGroupId,
69
+ variationGroupName: this.flag.variationGroupName,
70
+ variationId: this.flag.variationId,
71
+ variationName: this.flag.variationName,
72
+ isReference: !!this.flag.isReference,
73
+ campaignType: this.flag.campaignType,
74
+ slug: this.flag.slug
75
+ });
76
+ }
77
+ get status() {
78
+ if (!this.exists()) {
79
+ return _flagship_io_js_sdk__WEBPACK_IMPORTED_MODULE_1__.FSFlagStatus.NOT_FOUND;
80
+ }
81
+ return _flagship_io_js_sdk__WEBPACK_IMPORTED_MODULE_1__.FSFlagStatus.FETCHED;
82
+ }
83
+ }
84
+
85
+ /***/ }),
86
+
87
+ /***/ "./src/FlagshipContext.tsx":
88
+ /*!*********************************!*\
89
+ !*** ./src/FlagshipContext.tsx ***!
90
+ \*********************************/
91
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
92
+
93
+ __webpack_require__.r(__webpack_exports__);
94
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
95
+ /* harmony export */ FlagshipContext: () => (/* binding */ FlagshipContext),
96
+ /* harmony export */ initStat: () => (/* binding */ initStat)
97
+ /* harmony export */ });
98
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
99
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
100
+ 'use client';
101
+
102
+
103
+ const initStat = {
104
+ isInitializing: true
105
+ };
106
+ const FlagshipContext = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)({
107
+ state: {
108
+ ...initStat
109
+ }
110
+ });
111
+
112
+ /***/ }),
113
+
114
+ /***/ "./src/FlagshipHooks.ts":
115
+ /*!******************************!*\
116
+ !*** ./src/FlagshipHooks.ts ***!
117
+ \******************************/
118
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
119
+
120
+ __webpack_require__.r(__webpack_exports__);
121
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
122
+ /* harmony export */ useFlagship: () => (/* binding */ useFlagship),
123
+ /* harmony export */ useFsFlag: () => (/* binding */ useFsFlag)
124
+ /* harmony export */ });
125
+ /* harmony import */ var core_js_modules_es_regexp_flags_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.regexp.flags.js */ "./node_modules/core-js/modules/es.regexp.flags.js");
126
+ /* harmony import */ var core_js_modules_es_regexp_flags_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_flags_js__WEBPACK_IMPORTED_MODULE_0__);
127
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
128
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
129
+ /* harmony import */ var _flagship_io_js_sdk__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @flagship.io/js-sdk */ "@flagship.io/js-sdk");
130
+ /* harmony import */ var _flagship_io_js_sdk__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_flagship_io_js_sdk__WEBPACK_IMPORTED_MODULE_2__);
131
+ /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./constants */ "./src/constants.ts");
132
+ /* harmony import */ var _FlagshipContext__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./FlagshipContext */ "./src/FlagshipContext.tsx");
133
+ /* harmony import */ var _FSFlag__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./FSFlag */ "./src/FSFlag.ts");
134
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./utils */ "./src/utils.ts");
135
+ 'use client';
136
+
137
+
138
+
139
+
140
+
141
+
142
+
143
+
144
+
145
+ /**
146
+ * This hook returns a flag object by its key. If no flag match the given key an empty flag will be returned.
147
+ * @param key
148
+ * @param defaultValue
149
+ * @returns
150
+ */
151
+ const useFsFlag = key => {
152
+ const {
153
+ state
154
+ } = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(_FlagshipContext__WEBPACK_IMPORTED_MODULE_3__.FlagshipContext);
155
+ const {
156
+ visitor
157
+ } = state;
158
+ if (!visitor) {
159
+ return new _FSFlag__WEBPACK_IMPORTED_MODULE_4__.FSFlag(key, state);
160
+ }
161
+ return visitor.getFlag(key);
162
+ };
163
+ const handleContextChange = param => {
164
+ const {
165
+ updateFunction,
166
+ functionName,
167
+ visitor,
168
+ config
169
+ } = param;
170
+ if (!visitor) {
171
+ (0,_utils__WEBPACK_IMPORTED_MODULE_5__.logError)(config, _constants__WEBPACK_IMPORTED_MODULE_6__.noVisitorMessage, functionName);
172
+ return;
173
+ }
174
+ const originalContextClone = (0,_utils__WEBPACK_IMPORTED_MODULE_5__.deepClone)(visitor.context);
175
+ updateFunction();
176
+ const updatedContext = visitor.context;
177
+ if ((0,_utils__WEBPACK_IMPORTED_MODULE_5__.hasContextChanged)(originalContextClone, updatedContext)) {
178
+ visitor.fetchFlags();
179
+ }
180
+ };
181
+ const useFlagship = () => {
182
+ const {
183
+ state
184
+ } = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(_FlagshipContext__WEBPACK_IMPORTED_MODULE_3__.FlagshipContext);
185
+ const {
186
+ visitor,
187
+ config
188
+ } = state;
189
+ const fsUpdateContext = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(context => {
190
+ handleContextChange({
191
+ config,
192
+ visitor,
193
+ updateFunction: () => visitor === null || visitor === void 0 ? void 0 : visitor.updateContext(context),
194
+ functionName: 'updateContext'
195
+ });
196
+ }, [visitor]);
197
+ const fsClearContext = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(() => {
198
+ handleContextChange({
199
+ config,
200
+ visitor,
201
+ updateFunction: () => visitor === null || visitor === void 0 ? void 0 : visitor.clearContext(),
202
+ functionName: 'cleanContext'
203
+ });
204
+ }, [visitor]);
205
+ const fsAuthenticate = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(visitorId => {
206
+ const functionName = 'authenticate';
207
+ if (!visitor) {
208
+ (0,_utils__WEBPACK_IMPORTED_MODULE_5__.logError)(config, _constants__WEBPACK_IMPORTED_MODULE_6__.noVisitorMessage, functionName);
209
+ return;
210
+ }
211
+ const originalVisitorId = visitor.visitorId;
212
+ visitor.authenticate(visitorId);
213
+ if (originalVisitorId !== visitorId) {
214
+ visitor.fetchFlags();
215
+ }
216
+ }, [visitor]);
217
+ const fsUnauthenticate = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(() => {
218
+ const functionName = 'unauthenticate';
219
+ if (!visitor) {
220
+ (0,_utils__WEBPACK_IMPORTED_MODULE_5__.logError)(config, _constants__WEBPACK_IMPORTED_MODULE_6__.noVisitorMessage, functionName);
221
+ return;
222
+ }
223
+ const originalVisitorId = visitor.visitorId;
224
+ visitor.unauthenticate();
225
+ if (originalVisitorId !== visitor.visitorId) {
226
+ visitor.fetchFlags();
227
+ }
228
+ }, [visitor]);
229
+ const fsSendHit = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(hit => {
230
+ const functionName = 'sendHit';
231
+ if (!visitor) {
232
+ (0,_utils__WEBPACK_IMPORTED_MODULE_5__.logError)(config, _constants__WEBPACK_IMPORTED_MODULE_6__.noVisitorMessage, functionName);
233
+ return Promise.resolve();
234
+ }
235
+ if (Array.isArray(hit)) {
236
+ return visitor.sendHits(hit);
237
+ }
238
+ return visitor.sendHit(hit);
239
+ }, [visitor]);
240
+ const getFlag = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(key => {
241
+ if (!visitor) {
242
+ return new _FSFlag__WEBPACK_IMPORTED_MODULE_4__.FSFlag(key, state);
243
+ }
244
+ return visitor.getFlag(key);
245
+ }, [visitor]);
246
+ const fetchFlags = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(async () => {
247
+ if (!visitor) {
248
+ (0,_utils__WEBPACK_IMPORTED_MODULE_5__.logWarn)(config, _constants__WEBPACK_IMPORTED_MODULE_6__.noVisitorMessage, 'fetchFlags');
249
+ return Promise.resolve();
250
+ }
251
+ return visitor.fetchFlags();
252
+ }, [visitor]);
253
+ const setConsent = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(hasConsented => {
254
+ if (!visitor) {
255
+ (0,_utils__WEBPACK_IMPORTED_MODULE_5__.logWarn)(config, _constants__WEBPACK_IMPORTED_MODULE_6__.noVisitorMessage, 'setConsent');
256
+ return;
257
+ }
258
+ visitor.setConsent(hasConsented);
259
+ }, [visitor]);
260
+ const close = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(() => {
261
+ return _flagship_io_js_sdk__WEBPACK_IMPORTED_MODULE_2__.Flagship.close();
262
+ }, []);
263
+ const getFlags = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(() => {
264
+ if (!visitor) {
265
+ var _state$flags;
266
+ const flags = new Map();
267
+ (_state$flags = state.flags) === null || _state$flags === void 0 || _state$flags.forEach((flag, key) => {
268
+ flags.set(key, new _FSFlag__WEBPACK_IMPORTED_MODULE_4__.FSFlag(key, state));
269
+ });
270
+ return new _flagship_io_js_sdk__WEBPACK_IMPORTED_MODULE_2__.FSFlagCollection({
271
+ flags
272
+ });
273
+ }
274
+ return visitor.getFlags();
275
+ }, [visitor]);
276
+ const collectEAIEventsAsync = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(async (...args) => {
277
+ if (!visitor) {
278
+ return;
279
+ }
280
+ return visitor.collectEAIEventsAsync(...args);
281
+ }, [visitor]);
282
+ return (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(() => ({
283
+ visitorId: visitor === null || visitor === void 0 ? void 0 : visitor.visitorId,
284
+ anonymousId: visitor === null || visitor === void 0 ? void 0 : visitor.anonymousId,
285
+ context: {
286
+ ...(visitor === null || visitor === void 0 ? void 0 : visitor.context)
287
+ },
288
+ hasConsented: visitor === null || visitor === void 0 ? void 0 : visitor.hasConsented,
289
+ sdkStatus: _flagship_io_js_sdk__WEBPACK_IMPORTED_MODULE_2__.Flagship.getStatus(),
290
+ flagsStatus: visitor === null || visitor === void 0 ? void 0 : visitor.flagsStatus,
291
+ setConsent,
292
+ updateContext: fsUpdateContext,
293
+ clearContext: fsClearContext,
294
+ authenticate: fsAuthenticate,
295
+ unauthenticate: fsUnauthenticate,
296
+ sendHits: fsSendHit,
297
+ getFlag,
298
+ fetchFlags,
299
+ close,
300
+ getFlags,
301
+ collectEAIEventsAsync
302
+ }), [visitor, setConsent, fsUpdateContext, fsClearContext, fsAuthenticate, fsUnauthenticate, fsSendHit, getFlag, fetchFlags, close, getFlags, collectEAIEventsAsync]);
303
+ };
304
+
305
+ /***/ }),
306
+
307
+ /***/ "./src/FlagshipProvider.tsx":
308
+ /*!**********************************!*\
309
+ !*** ./src/FlagshipProvider.tsx ***!
310
+ \**********************************/
311
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
312
+
313
+ __webpack_require__.r(__webpack_exports__);
314
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
315
+ /* harmony export */ FlagshipProvider: () => (/* binding */ FlagshipProvider)
316
+ /* harmony export */ });
317
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
318
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
319
+ /* harmony import */ var _flagship_io_js_sdk__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @flagship.io/js-sdk */ "@flagship.io/js-sdk");
320
+ /* harmony import */ var _flagship_io_js_sdk__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_flagship_io_js_sdk__WEBPACK_IMPORTED_MODULE_1__);
321
+ /* harmony import */ var _FlagshipContext__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./FlagshipContext */ "./src/FlagshipContext.tsx");
322
+ /* harmony import */ var _internalType__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./internalType */ "./src/internalType.ts");
323
+ /* harmony import */ var _sdkVersion__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./sdkVersion */ "./src/sdkVersion.ts");
324
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils */ "./src/utils.ts");
325
+ 'use client';
326
+
327
+
328
+
329
+
330
+
331
+
332
+
333
+ function FlagshipProvider({
334
+ children,
335
+ envId,
336
+ apiKey,
337
+ decisionMode = _flagship_io_js_sdk__WEBPACK_IMPORTED_MODULE_1__.DecisionMode.DECISION_API,
338
+ visitorData,
339
+ loadingComponent,
340
+ onSdkStatusChanged,
341
+ onBucketingUpdated,
342
+ initialCampaigns,
343
+ initialFlagsData,
344
+ fetchFlagsOnBucketingUpdated,
345
+ hitDeduplicationTime = 2,
346
+ fetchNow = true,
347
+ language = 1,
348
+ sdkVersion = _sdkVersion__WEBPACK_IMPORTED_MODULE_2__.version,
349
+ onFlagsStatusChanged,
350
+ shouldSaveInstance,
351
+ ...props
352
+ }) {
353
+ var _state$config;
354
+ const flags = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.extractFlagsMap)(initialFlagsData, initialCampaigns);
355
+ const [state, setState] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)({
356
+ ..._FlagshipContext__WEBPACK_IMPORTED_MODULE_4__.initStat,
357
+ flags,
358
+ hasVisitorData: !!visitorData
359
+ });
360
+ const [lastModified, setLastModified] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)();
361
+ const stateRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();
362
+ stateRef.current = state;
363
+ const visitorDataRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(visitorData);
364
+
365
+ // #region functions
366
+
367
+ const onBucketingLastModified = lastUpdate => {
368
+ if (onBucketingUpdated) {
369
+ onBucketingUpdated(lastUpdate);
370
+ }
371
+ setLastModified(lastUpdate);
372
+ };
373
+ const statusChanged = status => {
374
+ if (onSdkStatusChanged) {
375
+ onSdkStatusChanged(status);
376
+ }
377
+ switch (status) {
378
+ case _flagship_io_js_sdk__WEBPACK_IMPORTED_MODULE_1__.FSSdkStatus.SDK_PANIC:
379
+ case _flagship_io_js_sdk__WEBPACK_IMPORTED_MODULE_1__.FSSdkStatus.SDK_INITIALIZED:
380
+ createVisitor();
381
+ break;
382
+ case _flagship_io_js_sdk__WEBPACK_IMPORTED_MODULE_1__.FSSdkStatus.SDK_NOT_INITIALIZED:
383
+ setState(prev => ({
384
+ ...prev,
385
+ config: _flagship_io_js_sdk__WEBPACK_IMPORTED_MODULE_1___default().getConfig(),
386
+ isInitializing: false
387
+ }));
388
+ break;
389
+ }
390
+ };
391
+ const initSdk = () => {
392
+ _flagship_io_js_sdk__WEBPACK_IMPORTED_MODULE_1___default().start(envId, apiKey, {
393
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
394
+ decisionMode: decisionMode,
395
+ fetchNow,
396
+ onSdkStatusChanged: statusChanged,
397
+ onBucketingUpdated: onBucketingLastModified,
398
+ hitDeduplicationTime,
399
+ language,
400
+ sdkVersion,
401
+ ...props
402
+ });
403
+ };
404
+ function initializeState(param) {
405
+ setState(currentState => ({
406
+ ...currentState,
407
+ visitor: param.fsVisitor,
408
+ config: _flagship_io_js_sdk__WEBPACK_IMPORTED_MODULE_1___default().getConfig(),
409
+ isInitializing: false,
410
+ hasVisitorData: !!visitorData
411
+ }));
412
+ }
413
+
414
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
415
+ const onVisitorReady = (fsVisitor, error) => {
416
+ if (error) {
417
+ (0,_utils__WEBPACK_IMPORTED_MODULE_3__.logError)(_flagship_io_js_sdk__WEBPACK_IMPORTED_MODULE_1___default().getConfig(), error.message || error, 'onReady');
418
+ }
419
+ initializeState({
420
+ fsVisitor
421
+ });
422
+ };
423
+ const createVisitor = () => {
424
+ if (!visitorDataRef.current) {
425
+ return;
426
+ }
427
+ const fsVisitor = _flagship_io_js_sdk__WEBPACK_IMPORTED_MODULE_1___default().newVisitor({
428
+ visitorId: visitorDataRef.current.id,
429
+ context: visitorDataRef.current.context,
430
+ isAuthenticated: visitorDataRef.current.isAuthenticated,
431
+ hasConsented: visitorDataRef.current.hasConsented,
432
+ initialCampaigns,
433
+ initialFlagsData,
434
+ onFlagsStatusChanged,
435
+ shouldSaveInstance
436
+ });
437
+ fsVisitor === null || fsVisitor === void 0 || fsVisitor.on('ready', error => {
438
+ onVisitorReady(fsVisitor, error);
439
+ });
440
+ if (!fetchNow) {
441
+ initializeState({
442
+ fsVisitor
443
+ });
444
+ }
445
+ };
446
+ function updateVisitor() {
447
+ if (!visitorDataRef.current || _flagship_io_js_sdk__WEBPACK_IMPORTED_MODULE_1___default().getStatus() !== _flagship_io_js_sdk__WEBPACK_IMPORTED_MODULE_1__.FSSdkStatus.SDK_INITIALIZED) {
448
+ return;
449
+ }
450
+ if (!state.visitor || state.visitor.visitorId !== visitorDataRef.current.id && (!visitorDataRef.current.isAuthenticated || visitorDataRef.current.isAuthenticated && state.visitor.anonymousId)) {
451
+ var _state$visitor;
452
+ (_state$visitor = state.visitor) === null || _state$visitor === void 0 || _state$visitor.cleanup();
453
+ createVisitor();
454
+ return;
455
+ }
456
+ if (visitorDataRef.current.hasConsented !== state.visitor.hasConsented) {
457
+ var _visitorDataRef$curre;
458
+ state.visitor.setConsent((_visitorDataRef$curre = visitorDataRef.current.hasConsented) !== null && _visitorDataRef$curre !== void 0 ? _visitorDataRef$curre : true);
459
+ }
460
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
461
+ state.visitor.updateContext(visitorDataRef.current.context);
462
+ if (!state.visitor.anonymousId && visitorDataRef.current.isAuthenticated) {
463
+ state.visitor.authenticate(visitorDataRef.current.id);
464
+ }
465
+ if (state.visitor.anonymousId && !visitorDataRef.current.isAuthenticated) {
466
+ state.visitor.unauthenticate();
467
+ }
468
+ state.visitor.fetchFlags();
469
+ }
470
+
471
+ // #endregion
472
+
473
+ (0,_utils__WEBPACK_IMPORTED_MODULE_3__.useNonInitialEffect)(() => {
474
+ if (fetchFlagsOnBucketingUpdated) {
475
+ var _state$visitor2;
476
+ (_state$visitor2 = state.visitor) === null || _state$visitor2 === void 0 || _state$visitor2.fetchFlags();
477
+ }
478
+ }, [lastModified]);
479
+ (0,_utils__WEBPACK_IMPORTED_MODULE_3__.useNonInitialEffect)(() => {
480
+ visitorDataRef.current = visitorData;
481
+ updateVisitor();
482
+ }, [JSON.stringify(visitorData)]);
483
+ (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {
484
+ initSdk();
485
+ }, [envId, apiKey, decisionMode]);
486
+ const handleDisplay = () => {
487
+ const isFirstInit = !state.visitor;
488
+ if (state.isInitializing && loadingComponent && isFirstInit && fetchNow) {
489
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, loadingComponent);
490
+ }
491
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, children);
492
+ };
493
+ (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {
494
+ var _window, _window$addEventListe;
495
+ (_window = window) === null || _window === void 0 || (_window$addEventListe = _window.addEventListener) === null || _window$addEventListe === void 0 || _window$addEventListe.call(_window, _internalType__WEBPACK_IMPORTED_MODULE_5__.INTERNAL_EVENTS.FsTriggerRendering, onVariationsForced);
496
+ return () => {
497
+ var _window2, _window2$removeEventL;
498
+ return (_window2 = window) === null || _window2 === void 0 || (_window2$removeEventL = _window2.removeEventListener) === null || _window2$removeEventL === void 0 ? void 0 : _window2$removeEventL.call(_window2, _internalType__WEBPACK_IMPORTED_MODULE_5__.INTERNAL_EVENTS.FsTriggerRendering, onVariationsForced);
499
+ };
500
+ }, [(_state$config = state.config) === null || _state$config === void 0 ? void 0 : _state$config.isQAModeEnabled]);
501
+ const onVariationsForced = e => {
502
+ const {
503
+ detail
504
+ } = e;
505
+ if (detail.forcedReFetchFlags) {
506
+ var _stateRef$current;
507
+ (_stateRef$current = stateRef.current) === null || _stateRef$current === void 0 || (_stateRef$current = _stateRef$current.visitor) === null || _stateRef$current === void 0 || _stateRef$current.fetchFlags();
508
+ } else {
509
+ setState(state => ({
510
+ ...state,
511
+ toggleForcedVariations: !state.toggleForcedVariations
512
+ }));
513
+ }
514
+ };
515
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_FlagshipContext__WEBPACK_IMPORTED_MODULE_4__.FlagshipContext.Provider, {
516
+ value: {
517
+ state,
518
+ setState
519
+ }
520
+ }, handleDisplay());
521
+ }
522
+
523
+ /***/ }),
524
+
525
+ /***/ "./src/constants.ts":
526
+ /*!**************************!*\
527
+ !*** ./src/constants.ts ***!
528
+ \**************************/
529
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
530
+
531
+ __webpack_require__.r(__webpack_exports__);
532
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
533
+ /* harmony export */ GET_FLAG_CAST_ERROR: () => (/* binding */ GET_FLAG_CAST_ERROR),
534
+ /* harmony export */ GET_METADATA_CAST_ERROR: () => (/* binding */ GET_METADATA_CAST_ERROR),
535
+ /* harmony export */ noVisitorDefault: () => (/* binding */ noVisitorDefault),
536
+ /* harmony export */ noVisitorMessage: () => (/* binding */ noVisitorMessage)
537
+ /* harmony export */ });
538
+ const noVisitorMessage = 'flagship Visitor not initialized.';
539
+ const noVisitorDefault = 'fsVisitor not initialized, returns default value';
540
+ const GET_FLAG_CAST_ERROR = 'Flag for key {0} has a different type. Default value is returned.';
541
+ const GET_METADATA_CAST_ERROR = 'Flag for key {0} has a different type with defaultValue, an empty metadata object is returned';
542
+
543
+ /***/ }),
544
+
545
+ /***/ "./src/internalType.ts":
546
+ /*!*****************************!*\
547
+ !*** ./src/internalType.ts ***!
548
+ \*****************************/
549
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
550
+
551
+ __webpack_require__.r(__webpack_exports__);
552
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
553
+ /* harmony export */ INTERNAL_EVENTS: () => (/* binding */ INTERNAL_EVENTS)
554
+ /* harmony export */ });
555
+ let INTERNAL_EVENTS = /*#__PURE__*/function (INTERNAL_EVENTS) {
556
+ INTERNAL_EVENTS["FsTriggerRendering"] = "FS_TRIGGER_RENDERING";
557
+ return INTERNAL_EVENTS;
558
+ }({});
559
+
560
+ /***/ }),
561
+
562
+ /***/ "./src/sdkVersion.ts":
563
+ /*!***************************!*\
564
+ !*** ./src/sdkVersion.ts ***!
565
+ \***************************/
566
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
567
+
568
+ __webpack_require__.r(__webpack_exports__);
569
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
570
+ /* harmony export */ version: () => (/* binding */ version)
571
+ /* harmony export */ });
572
+ // Generated by genversion.
573
+ const version = '5.1.0';
574
+
575
+ /***/ }),
576
+
577
+ /***/ "./src/utils.ts":
578
+ /*!**********************!*\
579
+ !*** ./src/utils.ts ***!
580
+ \**********************/
581
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
582
+
583
+ __webpack_require__.r(__webpack_exports__);
584
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
585
+ /* harmony export */ deepClone: () => (/* binding */ deepClone),
586
+ /* harmony export */ extractFlagsMap: () => (/* binding */ extractFlagsMap),
587
+ /* harmony export */ getFlagsFromCampaigns: () => (/* binding */ getFlagsFromCampaigns),
588
+ /* harmony export */ hasContextChanged: () => (/* binding */ hasContextChanged),
589
+ /* harmony export */ hasSameType: () => (/* binding */ hasSameType),
590
+ /* harmony export */ hexToValue: () => (/* binding */ hexToValue),
591
+ /* harmony export */ logError: () => (/* binding */ logError),
592
+ /* harmony export */ logInfo: () => (/* binding */ logInfo),
593
+ /* harmony export */ logWarn: () => (/* binding */ logWarn),
594
+ /* harmony export */ sprintf: () => (/* binding */ sprintf),
595
+ /* harmony export */ useNonInitialEffect: () => (/* binding */ useNonInitialEffect),
596
+ /* harmony export */ uuidV4: () => (/* binding */ uuidV4)
597
+ /* harmony export */ });
598
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
599
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
600
+ /* harmony import */ var _flagship_io_js_sdk__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @flagship.io/js-sdk */ "@flagship.io/js-sdk");
601
+ /* harmony import */ var _flagship_io_js_sdk__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_flagship_io_js_sdk__WEBPACK_IMPORTED_MODULE_1__);
602
+ 'use client';
603
+
604
+
605
+
606
+ function logError(config, message, tag) {
607
+ if (!config || !config.logLevel || config.logLevel < _flagship_io_js_sdk__WEBPACK_IMPORTED_MODULE_1__.LogLevel.ERROR) {
608
+ return;
609
+ }
610
+ if (typeof config.onLog === 'function') {
611
+ config.onLog(_flagship_io_js_sdk__WEBPACK_IMPORTED_MODULE_1__.LogLevel.ERROR, tag, message);
612
+ }
613
+ if (config.logManager && typeof config.logManager.error === 'function') {
614
+ config.logManager.error(message, tag);
615
+ }
616
+ }
617
+ function logInfo(config, message, tag) {
618
+ if (!config || !config.logLevel || config.logLevel < _flagship_io_js_sdk__WEBPACK_IMPORTED_MODULE_1__.LogLevel.INFO) {
619
+ return;
620
+ }
621
+ if (typeof config.onLog === 'function') {
622
+ config.onLog(_flagship_io_js_sdk__WEBPACK_IMPORTED_MODULE_1__.LogLevel.INFO, tag, message);
623
+ }
624
+ if (config.logManager && typeof config.logManager.info === 'function') {
625
+ config.logManager.info(message, tag);
626
+ }
627
+ }
628
+ function logWarn(config, message, tag) {
629
+ if (!config || !config.logLevel || config.logLevel < _flagship_io_js_sdk__WEBPACK_IMPORTED_MODULE_1__.LogLevel.WARNING) {
630
+ return;
631
+ }
632
+ if (typeof config.onLog === 'function') {
633
+ config.onLog(_flagship_io_js_sdk__WEBPACK_IMPORTED_MODULE_1__.LogLevel.WARNING, tag, message);
634
+ }
635
+ if (config.logManager && typeof config.logManager.warning === 'function') {
636
+ config.logManager.warning(message, tag);
637
+ }
638
+ }
639
+ const getFlagsFromCampaigns = campaigns => {
640
+ const flags = new Map();
641
+ if (!campaigns || !Array.isArray(campaigns)) {
642
+ return flags;
643
+ }
644
+ campaigns.forEach(campaign => {
645
+ const object = campaign.variation.modifications.value;
646
+ for (const key in object) {
647
+ const value = object[key];
648
+ flags.set(key, {
649
+ key,
650
+ campaignId: campaign.id,
651
+ campaignName: campaign.name || '',
652
+ variationGroupId: campaign.variationGroupId,
653
+ variationGroupName: campaign.variationGroupName || '',
654
+ variationId: campaign.variation.id,
655
+ variationName: campaign.variation.name || '',
656
+ isReference: campaign.variation.reference,
657
+ slug: campaign.slug || '',
658
+ value
659
+ });
660
+ }
661
+ });
662
+ return flags;
663
+ };
664
+ function uuidV4() {
665
+ return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (char) {
666
+ const rand = Math.random() * 16 | 0;
667
+ const value = char === 'x' ? rand : rand & 0x3 | 0x8;
668
+ return value.toString(16);
669
+ });
670
+ }
671
+ function useNonInitialEffect(effect, deps) {
672
+ const initialRender = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(true);
673
+ (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {
674
+ if (initialRender.current) {
675
+ initialRender.current = false;
676
+ return;
677
+ }
678
+ if (typeof effect === 'function') {
679
+ return effect();
680
+ }
681
+ }, deps);
682
+ }
683
+ function hasSameType(flagValue, defaultValue) {
684
+ if (typeof flagValue !== typeof defaultValue) {
685
+ return false;
686
+ }
687
+ if (typeof flagValue === 'object' && typeof defaultValue === 'object' && Array.isArray(flagValue) !== Array.isArray(defaultValue)) {
688
+ return false;
689
+ }
690
+ return true;
691
+ }
692
+
693
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
694
+ function sprintf(format, ...value) {
695
+ let formatted = format;
696
+ for (let i = 0; i < value.length; i++) {
697
+ const element = value[i];
698
+ formatted = formatted.replace(new RegExp(`\\{${i}\\}`, 'g'), element);
699
+ }
700
+ return formatted;
701
+ }
702
+ function hexToValue(hex, config) {
703
+ if (typeof hex !== 'string') {
704
+ logError(config, `Invalid hex string: ${hex}`, 'hexToValue');
705
+ return null;
706
+ }
707
+ let jsonString = '';
708
+ for (let i = 0; i < hex.length; i += 2) {
709
+ const hexChar = hex.slice(i, i + 2);
710
+ const charCode = parseInt(hexChar, 16);
711
+ if (isNaN(charCode)) {
712
+ logError(config, `Invalid hex character: ${hexChar}`, 'hexToValue');
713
+ return null;
714
+ }
715
+ jsonString += String.fromCharCode(charCode);
716
+ }
717
+ try {
718
+ const value = JSON.parse(jsonString);
719
+ return value;
720
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
721
+ } catch (error) {
722
+ logError(config, `Error while parsing JSON: ${error === null || error === void 0 ? void 0 : error.message}`, 'hexToValue');
723
+ return null;
724
+ }
725
+ }
726
+ function extractFlagsMap(initialFlagsData, initialCampaigns) {
727
+ let flags = new Map();
728
+ if (Array.isArray(initialFlagsData)) {
729
+ initialFlagsData.forEach(flag => {
730
+ var _hexToValue;
731
+ flags.set(flag.key, {
732
+ key: flag.key,
733
+ campaignId: flag.campaignId,
734
+ campaignName: flag.campaignName,
735
+ variationGroupId: flag.variationGroupId,
736
+ variationGroupName: flag.variationGroupName,
737
+ variationId: flag.variationId,
738
+ variationName: flag.variationName,
739
+ isReference: flag.isReference,
740
+ campaignType: flag.campaignType,
741
+ slug: flag.slug,
742
+ value: (_hexToValue = hexToValue(flag.hex, _flagship_io_js_sdk__WEBPACK_IMPORTED_MODULE_1___default().getConfig())) === null || _hexToValue === void 0 ? void 0 : _hexToValue.v
743
+ });
744
+ });
745
+ } else if (initialCampaigns) {
746
+ flags = getFlagsFromCampaigns(initialCampaigns);
747
+ }
748
+ return flags;
749
+ }
750
+ function deepClone(obj) {
751
+ return JSON.parse(JSON.stringify(obj));
752
+ }
753
+ function hasContextChanged(original, updated) {
754
+ return JSON.stringify(original) !== JSON.stringify(updated);
755
+ }
756
+
757
+ /***/ }),
758
+
759
+ /***/ "@flagship.io/js-sdk":
760
+ /*!**************************************!*\
761
+ !*** external "@flagship.io/js-sdk" ***!
762
+ \**************************************/
763
+ /***/ ((module) => {
764
+
765
+ module.exports = require("@flagship.io/js-sdk");
766
+
767
+ /***/ }),
768
+
769
+ /***/ "react":
770
+ /*!************************!*\
771
+ !*** external "react" ***!
772
+ \************************/
773
+ /***/ ((module) => {
774
+
775
+ module.exports = require("react");
776
+
777
+ /***/ }),
778
+
779
+ /***/ "./node_modules/core-js/internals/a-callable.js":
780
+ /*!******************************************************!*\
781
+ !*** ./node_modules/core-js/internals/a-callable.js ***!
782
+ \******************************************************/
783
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
784
+
785
+
786
+ var isCallable = __webpack_require__(/*! ../internals/is-callable */ "./node_modules/core-js/internals/is-callable.js");
787
+ var tryToString = __webpack_require__(/*! ../internals/try-to-string */ "./node_modules/core-js/internals/try-to-string.js");
788
+
789
+ var $TypeError = TypeError;
790
+
791
+ // `Assert: IsCallable(argument) is true`
792
+ module.exports = function (argument) {
793
+ if (isCallable(argument)) return argument;
794
+ throw new $TypeError(tryToString(argument) + ' is not a function');
795
+ };
796
+
797
+
798
+ /***/ }),
799
+
800
+ /***/ "./node_modules/core-js/internals/an-object.js":
801
+ /*!*****************************************************!*\
802
+ !*** ./node_modules/core-js/internals/an-object.js ***!
803
+ \*****************************************************/
804
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
805
+
806
+
807
+ var isObject = __webpack_require__(/*! ../internals/is-object */ "./node_modules/core-js/internals/is-object.js");
808
+
809
+ var $String = String;
810
+ var $TypeError = TypeError;
811
+
812
+ // `Assert: Type(argument) is Object`
813
+ module.exports = function (argument) {
814
+ if (isObject(argument)) return argument;
815
+ throw new $TypeError($String(argument) + ' is not an object');
816
+ };
817
+
818
+
819
+ /***/ }),
820
+
821
+ /***/ "./node_modules/core-js/internals/create-non-enumerable-property.js":
822
+ /*!**************************************************************************!*\
823
+ !*** ./node_modules/core-js/internals/create-non-enumerable-property.js ***!
824
+ \**************************************************************************/
825
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
826
+
827
+
828
+ var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ "./node_modules/core-js/internals/descriptors.js");
829
+ var definePropertyModule = __webpack_require__(/*! ../internals/object-define-property */ "./node_modules/core-js/internals/object-define-property.js");
830
+ var createPropertyDescriptor = __webpack_require__(/*! ../internals/create-property-descriptor */ "./node_modules/core-js/internals/create-property-descriptor.js");
831
+
832
+ module.exports = DESCRIPTORS ? function (object, key, value) {
833
+ return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));
834
+ } : function (object, key, value) {
835
+ object[key] = value;
836
+ return object;
837
+ };
838
+
839
+
840
+ /***/ }),
841
+
842
+ /***/ "./node_modules/core-js/internals/create-property-descriptor.js":
843
+ /*!**********************************************************************!*\
844
+ !*** ./node_modules/core-js/internals/create-property-descriptor.js ***!
845
+ \**********************************************************************/
846
+ /***/ ((module) => {
847
+
848
+
849
+ module.exports = function (bitmap, value) {
850
+ return {
851
+ enumerable: !(bitmap & 1),
852
+ configurable: !(bitmap & 2),
853
+ writable: !(bitmap & 4),
854
+ value: value
855
+ };
856
+ };
857
+
858
+
859
+ /***/ }),
860
+
861
+ /***/ "./node_modules/core-js/internals/define-built-in-accessor.js":
862
+ /*!********************************************************************!*\
863
+ !*** ./node_modules/core-js/internals/define-built-in-accessor.js ***!
864
+ \********************************************************************/
865
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
866
+
867
+
868
+ var makeBuiltIn = __webpack_require__(/*! ../internals/make-built-in */ "./node_modules/core-js/internals/make-built-in.js");
869
+ var defineProperty = __webpack_require__(/*! ../internals/object-define-property */ "./node_modules/core-js/internals/object-define-property.js");
870
+
871
+ module.exports = function (target, name, descriptor) {
872
+ if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
873
+ if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
874
+ return defineProperty.f(target, name, descriptor);
875
+ };
876
+
877
+
878
+ /***/ }),
879
+
880
+ /***/ "./node_modules/core-js/internals/define-global-property.js":
881
+ /*!******************************************************************!*\
882
+ !*** ./node_modules/core-js/internals/define-global-property.js ***!
883
+ \******************************************************************/
884
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
885
+
886
+
887
+ var global = __webpack_require__(/*! ../internals/global */ "./node_modules/core-js/internals/global.js");
888
+
889
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
890
+ var defineProperty = Object.defineProperty;
891
+
892
+ module.exports = function (key, value) {
893
+ try {
894
+ defineProperty(global, key, { value: value, configurable: true, writable: true });
895
+ } catch (error) {
896
+ global[key] = value;
897
+ } return value;
898
+ };
899
+
900
+
901
+ /***/ }),
902
+
903
+ /***/ "./node_modules/core-js/internals/descriptors.js":
904
+ /*!*******************************************************!*\
905
+ !*** ./node_modules/core-js/internals/descriptors.js ***!
906
+ \*******************************************************/
907
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
908
+
909
+
910
+ var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js");
911
+
912
+ // Detect IE8's incomplete defineProperty implementation
913
+ module.exports = !fails(function () {
914
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
915
+ return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
916
+ });
917
+
918
+
919
+ /***/ }),
920
+
921
+ /***/ "./node_modules/core-js/internals/document-create-element.js":
922
+ /*!*******************************************************************!*\
923
+ !*** ./node_modules/core-js/internals/document-create-element.js ***!
924
+ \*******************************************************************/
925
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
926
+
927
+
928
+ var global = __webpack_require__(/*! ../internals/global */ "./node_modules/core-js/internals/global.js");
929
+ var isObject = __webpack_require__(/*! ../internals/is-object */ "./node_modules/core-js/internals/is-object.js");
930
+
931
+ var document = global.document;
932
+ // typeof document.createElement is 'object' in old IE
933
+ var EXISTS = isObject(document) && isObject(document.createElement);
934
+
935
+ module.exports = function (it) {
936
+ return EXISTS ? document.createElement(it) : {};
937
+ };
938
+
939
+
940
+ /***/ }),
941
+
942
+ /***/ "./node_modules/core-js/internals/engine-user-agent.js":
943
+ /*!*************************************************************!*\
944
+ !*** ./node_modules/core-js/internals/engine-user-agent.js ***!
945
+ \*************************************************************/
946
+ /***/ ((module) => {
947
+
948
+
949
+ module.exports = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
950
+
951
+
952
+ /***/ }),
953
+
954
+ /***/ "./node_modules/core-js/internals/engine-v8-version.js":
955
+ /*!*************************************************************!*\
956
+ !*** ./node_modules/core-js/internals/engine-v8-version.js ***!
957
+ \*************************************************************/
958
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
959
+
960
+
961
+ var global = __webpack_require__(/*! ../internals/global */ "./node_modules/core-js/internals/global.js");
962
+ var userAgent = __webpack_require__(/*! ../internals/engine-user-agent */ "./node_modules/core-js/internals/engine-user-agent.js");
963
+
964
+ var process = global.process;
965
+ var Deno = global.Deno;
966
+ var versions = process && process.versions || Deno && Deno.version;
967
+ var v8 = versions && versions.v8;
968
+ var match, version;
969
+
970
+ if (v8) {
971
+ match = v8.split('.');
972
+ // in old Chrome, versions of V8 isn't V8 = Chrome / 10
973
+ // but their correct versions are not interesting for us
974
+ version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
975
+ }
976
+
977
+ // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
978
+ // so check `userAgent` even if `.v8` exists, but 0
979
+ if (!version && userAgent) {
980
+ match = userAgent.match(/Edge\/(\d+)/);
981
+ if (!match || match[1] >= 74) {
982
+ match = userAgent.match(/Chrome\/(\d+)/);
983
+ if (match) version = +match[1];
984
+ }
985
+ }
986
+
987
+ module.exports = version;
988
+
989
+
990
+ /***/ }),
991
+
992
+ /***/ "./node_modules/core-js/internals/fails.js":
993
+ /*!*************************************************!*\
994
+ !*** ./node_modules/core-js/internals/fails.js ***!
995
+ \*************************************************/
996
+ /***/ ((module) => {
997
+
998
+
999
+ module.exports = function (exec) {
1000
+ try {
1001
+ return !!exec();
1002
+ } catch (error) {
1003
+ return true;
1004
+ }
1005
+ };
1006
+
1007
+
1008
+ /***/ }),
1009
+
1010
+ /***/ "./node_modules/core-js/internals/function-bind-native.js":
1011
+ /*!****************************************************************!*\
1012
+ !*** ./node_modules/core-js/internals/function-bind-native.js ***!
1013
+ \****************************************************************/
1014
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1015
+
1016
+
1017
+ var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js");
1018
+
1019
+ module.exports = !fails(function () {
1020
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
1021
+ var test = (function () { /* empty */ }).bind();
1022
+ // eslint-disable-next-line no-prototype-builtins -- safe
1023
+ return typeof test != 'function' || test.hasOwnProperty('prototype');
1024
+ });
1025
+
1026
+
1027
+ /***/ }),
1028
+
1029
+ /***/ "./node_modules/core-js/internals/function-call.js":
1030
+ /*!*********************************************************!*\
1031
+ !*** ./node_modules/core-js/internals/function-call.js ***!
1032
+ \*********************************************************/
1033
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1034
+
1035
+
1036
+ var NATIVE_BIND = __webpack_require__(/*! ../internals/function-bind-native */ "./node_modules/core-js/internals/function-bind-native.js");
1037
+
1038
+ var call = Function.prototype.call;
1039
+
1040
+ module.exports = NATIVE_BIND ? call.bind(call) : function () {
1041
+ return call.apply(call, arguments);
1042
+ };
1043
+
1044
+
1045
+ /***/ }),
1046
+
1047
+ /***/ "./node_modules/core-js/internals/function-name.js":
1048
+ /*!*********************************************************!*\
1049
+ !*** ./node_modules/core-js/internals/function-name.js ***!
1050
+ \*********************************************************/
1051
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1052
+
1053
+
1054
+ var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ "./node_modules/core-js/internals/descriptors.js");
1055
+ var hasOwn = __webpack_require__(/*! ../internals/has-own-property */ "./node_modules/core-js/internals/has-own-property.js");
1056
+
1057
+ var FunctionPrototype = Function.prototype;
1058
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1059
+ var getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;
1060
+
1061
+ var EXISTS = hasOwn(FunctionPrototype, 'name');
1062
+ // additional protection from minified / mangled / dropped function names
1063
+ var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
1064
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));
1065
+
1066
+ module.exports = {
1067
+ EXISTS: EXISTS,
1068
+ PROPER: PROPER,
1069
+ CONFIGURABLE: CONFIGURABLE
1070
+ };
1071
+
1072
+
1073
+ /***/ }),
1074
+
1075
+ /***/ "./node_modules/core-js/internals/function-uncurry-this.js":
1076
+ /*!*****************************************************************!*\
1077
+ !*** ./node_modules/core-js/internals/function-uncurry-this.js ***!
1078
+ \*****************************************************************/
1079
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1080
+
1081
+
1082
+ var NATIVE_BIND = __webpack_require__(/*! ../internals/function-bind-native */ "./node_modules/core-js/internals/function-bind-native.js");
1083
+
1084
+ var FunctionPrototype = Function.prototype;
1085
+ var call = FunctionPrototype.call;
1086
+ var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);
1087
+
1088
+ module.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
1089
+ return function () {
1090
+ return call.apply(fn, arguments);
1091
+ };
1092
+ };
1093
+
1094
+
1095
+ /***/ }),
1096
+
1097
+ /***/ "./node_modules/core-js/internals/get-built-in.js":
1098
+ /*!********************************************************!*\
1099
+ !*** ./node_modules/core-js/internals/get-built-in.js ***!
1100
+ \********************************************************/
1101
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1102
+
1103
+
1104
+ var global = __webpack_require__(/*! ../internals/global */ "./node_modules/core-js/internals/global.js");
1105
+ var isCallable = __webpack_require__(/*! ../internals/is-callable */ "./node_modules/core-js/internals/is-callable.js");
1106
+
1107
+ var aFunction = function (argument) {
1108
+ return isCallable(argument) ? argument : undefined;
1109
+ };
1110
+
1111
+ module.exports = function (namespace, method) {
1112
+ return arguments.length < 2 ? aFunction(global[namespace]) : global[namespace] && global[namespace][method];
1113
+ };
1114
+
1115
+
1116
+ /***/ }),
1117
+
1118
+ /***/ "./node_modules/core-js/internals/get-method.js":
1119
+ /*!******************************************************!*\
1120
+ !*** ./node_modules/core-js/internals/get-method.js ***!
1121
+ \******************************************************/
1122
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1123
+
1124
+
1125
+ var aCallable = __webpack_require__(/*! ../internals/a-callable */ "./node_modules/core-js/internals/a-callable.js");
1126
+ var isNullOrUndefined = __webpack_require__(/*! ../internals/is-null-or-undefined */ "./node_modules/core-js/internals/is-null-or-undefined.js");
1127
+
1128
+ // `GetMethod` abstract operation
1129
+ // https://tc39.es/ecma262/#sec-getmethod
1130
+ module.exports = function (V, P) {
1131
+ var func = V[P];
1132
+ return isNullOrUndefined(func) ? undefined : aCallable(func);
1133
+ };
1134
+
1135
+
1136
+ /***/ }),
1137
+
1138
+ /***/ "./node_modules/core-js/internals/global.js":
1139
+ /*!**************************************************!*\
1140
+ !*** ./node_modules/core-js/internals/global.js ***!
1141
+ \**************************************************/
1142
+ /***/ (function(module) {
1143
+
1144
+
1145
+ var check = function (it) {
1146
+ return it && it.Math === Math && it;
1147
+ };
1148
+
1149
+ // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
1150
+ module.exports =
1151
+ // eslint-disable-next-line es/no-global-this -- safe
1152
+ check(typeof globalThis == 'object' && globalThis) ||
1153
+ check(typeof window == 'object' && window) ||
1154
+ // eslint-disable-next-line no-restricted-globals -- safe
1155
+ check(typeof self == 'object' && self) ||
1156
+ check(typeof global == 'object' && global) ||
1157
+ check(typeof this == 'object' && this) ||
1158
+ // eslint-disable-next-line no-new-func -- fallback
1159
+ (function () { return this; })() || Function('return this')();
1160
+
1161
+
1162
+ /***/ }),
1163
+
1164
+ /***/ "./node_modules/core-js/internals/has-own-property.js":
1165
+ /*!************************************************************!*\
1166
+ !*** ./node_modules/core-js/internals/has-own-property.js ***!
1167
+ \************************************************************/
1168
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1169
+
1170
+
1171
+ var uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ "./node_modules/core-js/internals/function-uncurry-this.js");
1172
+ var toObject = __webpack_require__(/*! ../internals/to-object */ "./node_modules/core-js/internals/to-object.js");
1173
+
1174
+ var hasOwnProperty = uncurryThis({}.hasOwnProperty);
1175
+
1176
+ // `HasOwnProperty` abstract operation
1177
+ // https://tc39.es/ecma262/#sec-hasownproperty
1178
+ // eslint-disable-next-line es/no-object-hasown -- safe
1179
+ module.exports = Object.hasOwn || function hasOwn(it, key) {
1180
+ return hasOwnProperty(toObject(it), key);
1181
+ };
1182
+
1183
+
1184
+ /***/ }),
1185
+
1186
+ /***/ "./node_modules/core-js/internals/hidden-keys.js":
1187
+ /*!*******************************************************!*\
1188
+ !*** ./node_modules/core-js/internals/hidden-keys.js ***!
1189
+ \*******************************************************/
1190
+ /***/ ((module) => {
1191
+
1192
+
1193
+ module.exports = {};
1194
+
1195
+
1196
+ /***/ }),
1197
+
1198
+ /***/ "./node_modules/core-js/internals/ie8-dom-define.js":
1199
+ /*!**********************************************************!*\
1200
+ !*** ./node_modules/core-js/internals/ie8-dom-define.js ***!
1201
+ \**********************************************************/
1202
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1203
+
1204
+
1205
+ var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ "./node_modules/core-js/internals/descriptors.js");
1206
+ var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js");
1207
+ var createElement = __webpack_require__(/*! ../internals/document-create-element */ "./node_modules/core-js/internals/document-create-element.js");
1208
+
1209
+ // Thanks to IE8 for its funny defineProperty
1210
+ module.exports = !DESCRIPTORS && !fails(function () {
1211
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1212
+ return Object.defineProperty(createElement('div'), 'a', {
1213
+ get: function () { return 7; }
1214
+ }).a !== 7;
1215
+ });
1216
+
1217
+
1218
+ /***/ }),
1219
+
1220
+ /***/ "./node_modules/core-js/internals/inspect-source.js":
1221
+ /*!**********************************************************!*\
1222
+ !*** ./node_modules/core-js/internals/inspect-source.js ***!
1223
+ \**********************************************************/
1224
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1225
+
1226
+
1227
+ var uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ "./node_modules/core-js/internals/function-uncurry-this.js");
1228
+ var isCallable = __webpack_require__(/*! ../internals/is-callable */ "./node_modules/core-js/internals/is-callable.js");
1229
+ var store = __webpack_require__(/*! ../internals/shared-store */ "./node_modules/core-js/internals/shared-store.js");
1230
+
1231
+ var functionToString = uncurryThis(Function.toString);
1232
+
1233
+ // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
1234
+ if (!isCallable(store.inspectSource)) {
1235
+ store.inspectSource = function (it) {
1236
+ return functionToString(it);
1237
+ };
1238
+ }
1239
+
1240
+ module.exports = store.inspectSource;
1241
+
1242
+
1243
+ /***/ }),
1244
+
1245
+ /***/ "./node_modules/core-js/internals/internal-state.js":
1246
+ /*!**********************************************************!*\
1247
+ !*** ./node_modules/core-js/internals/internal-state.js ***!
1248
+ \**********************************************************/
1249
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1250
+
1251
+
1252
+ var NATIVE_WEAK_MAP = __webpack_require__(/*! ../internals/weak-map-basic-detection */ "./node_modules/core-js/internals/weak-map-basic-detection.js");
1253
+ var global = __webpack_require__(/*! ../internals/global */ "./node_modules/core-js/internals/global.js");
1254
+ var isObject = __webpack_require__(/*! ../internals/is-object */ "./node_modules/core-js/internals/is-object.js");
1255
+ var createNonEnumerableProperty = __webpack_require__(/*! ../internals/create-non-enumerable-property */ "./node_modules/core-js/internals/create-non-enumerable-property.js");
1256
+ var hasOwn = __webpack_require__(/*! ../internals/has-own-property */ "./node_modules/core-js/internals/has-own-property.js");
1257
+ var shared = __webpack_require__(/*! ../internals/shared-store */ "./node_modules/core-js/internals/shared-store.js");
1258
+ var sharedKey = __webpack_require__(/*! ../internals/shared-key */ "./node_modules/core-js/internals/shared-key.js");
1259
+ var hiddenKeys = __webpack_require__(/*! ../internals/hidden-keys */ "./node_modules/core-js/internals/hidden-keys.js");
1260
+
1261
+ var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
1262
+ var TypeError = global.TypeError;
1263
+ var WeakMap = global.WeakMap;
1264
+ var set, get, has;
1265
+
1266
+ var enforce = function (it) {
1267
+ return has(it) ? get(it) : set(it, {});
1268
+ };
1269
+
1270
+ var getterFor = function (TYPE) {
1271
+ return function (it) {
1272
+ var state;
1273
+ if (!isObject(it) || (state = get(it)).type !== TYPE) {
1274
+ throw new TypeError('Incompatible receiver, ' + TYPE + ' required');
1275
+ } return state;
1276
+ };
1277
+ };
1278
+
1279
+ if (NATIVE_WEAK_MAP || shared.state) {
1280
+ var store = shared.state || (shared.state = new WeakMap());
1281
+ /* eslint-disable no-self-assign -- prototype methods protection */
1282
+ store.get = store.get;
1283
+ store.has = store.has;
1284
+ store.set = store.set;
1285
+ /* eslint-enable no-self-assign -- prototype methods protection */
1286
+ set = function (it, metadata) {
1287
+ if (store.has(it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
1288
+ metadata.facade = it;
1289
+ store.set(it, metadata);
1290
+ return metadata;
1291
+ };
1292
+ get = function (it) {
1293
+ return store.get(it) || {};
1294
+ };
1295
+ has = function (it) {
1296
+ return store.has(it);
1297
+ };
1298
+ } else {
1299
+ var STATE = sharedKey('state');
1300
+ hiddenKeys[STATE] = true;
1301
+ set = function (it, metadata) {
1302
+ if (hasOwn(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
1303
+ metadata.facade = it;
1304
+ createNonEnumerableProperty(it, STATE, metadata);
1305
+ return metadata;
1306
+ };
1307
+ get = function (it) {
1308
+ return hasOwn(it, STATE) ? it[STATE] : {};
1309
+ };
1310
+ has = function (it) {
1311
+ return hasOwn(it, STATE);
1312
+ };
1313
+ }
1314
+
1315
+ module.exports = {
1316
+ set: set,
1317
+ get: get,
1318
+ has: has,
1319
+ enforce: enforce,
1320
+ getterFor: getterFor
1321
+ };
1322
+
1323
+
1324
+ /***/ }),
1325
+
1326
+ /***/ "./node_modules/core-js/internals/is-callable.js":
1327
+ /*!*******************************************************!*\
1328
+ !*** ./node_modules/core-js/internals/is-callable.js ***!
1329
+ \*******************************************************/
1330
+ /***/ ((module) => {
1331
+
1332
+
1333
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
1334
+ var documentAll = typeof document == 'object' && document.all;
1335
+
1336
+ // `IsCallable` abstract operation
1337
+ // https://tc39.es/ecma262/#sec-iscallable
1338
+ // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
1339
+ module.exports = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
1340
+ return typeof argument == 'function' || argument === documentAll;
1341
+ } : function (argument) {
1342
+ return typeof argument == 'function';
1343
+ };
1344
+
1345
+
1346
+ /***/ }),
1347
+
1348
+ /***/ "./node_modules/core-js/internals/is-null-or-undefined.js":
1349
+ /*!****************************************************************!*\
1350
+ !*** ./node_modules/core-js/internals/is-null-or-undefined.js ***!
1351
+ \****************************************************************/
1352
+ /***/ ((module) => {
1353
+
1354
+
1355
+ // we can't use just `it == null` since of `document.all` special case
1356
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
1357
+ module.exports = function (it) {
1358
+ return it === null || it === undefined;
1359
+ };
1360
+
1361
+
1362
+ /***/ }),
1363
+
1364
+ /***/ "./node_modules/core-js/internals/is-object.js":
1365
+ /*!*****************************************************!*\
1366
+ !*** ./node_modules/core-js/internals/is-object.js ***!
1367
+ \*****************************************************/
1368
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1369
+
1370
+
1371
+ var isCallable = __webpack_require__(/*! ../internals/is-callable */ "./node_modules/core-js/internals/is-callable.js");
1372
+
1373
+ module.exports = function (it) {
1374
+ return typeof it == 'object' ? it !== null : isCallable(it);
1375
+ };
1376
+
1377
+
1378
+ /***/ }),
1379
+
1380
+ /***/ "./node_modules/core-js/internals/is-pure.js":
1381
+ /*!***************************************************!*\
1382
+ !*** ./node_modules/core-js/internals/is-pure.js ***!
1383
+ \***************************************************/
1384
+ /***/ ((module) => {
1385
+
1386
+
1387
+ module.exports = false;
1388
+
1389
+
1390
+ /***/ }),
1391
+
1392
+ /***/ "./node_modules/core-js/internals/is-symbol.js":
1393
+ /*!*****************************************************!*\
1394
+ !*** ./node_modules/core-js/internals/is-symbol.js ***!
1395
+ \*****************************************************/
1396
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1397
+
1398
+
1399
+ var getBuiltIn = __webpack_require__(/*! ../internals/get-built-in */ "./node_modules/core-js/internals/get-built-in.js");
1400
+ var isCallable = __webpack_require__(/*! ../internals/is-callable */ "./node_modules/core-js/internals/is-callable.js");
1401
+ var isPrototypeOf = __webpack_require__(/*! ../internals/object-is-prototype-of */ "./node_modules/core-js/internals/object-is-prototype-of.js");
1402
+ var USE_SYMBOL_AS_UID = __webpack_require__(/*! ../internals/use-symbol-as-uid */ "./node_modules/core-js/internals/use-symbol-as-uid.js");
1403
+
1404
+ var $Object = Object;
1405
+
1406
+ module.exports = USE_SYMBOL_AS_UID ? function (it) {
1407
+ return typeof it == 'symbol';
1408
+ } : function (it) {
1409
+ var $Symbol = getBuiltIn('Symbol');
1410
+ return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));
1411
+ };
1412
+
1413
+
1414
+ /***/ }),
1415
+
1416
+ /***/ "./node_modules/core-js/internals/make-built-in.js":
1417
+ /*!*********************************************************!*\
1418
+ !*** ./node_modules/core-js/internals/make-built-in.js ***!
1419
+ \*********************************************************/
1420
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1421
+
1422
+
1423
+ var uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ "./node_modules/core-js/internals/function-uncurry-this.js");
1424
+ var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js");
1425
+ var isCallable = __webpack_require__(/*! ../internals/is-callable */ "./node_modules/core-js/internals/is-callable.js");
1426
+ var hasOwn = __webpack_require__(/*! ../internals/has-own-property */ "./node_modules/core-js/internals/has-own-property.js");
1427
+ var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ "./node_modules/core-js/internals/descriptors.js");
1428
+ var CONFIGURABLE_FUNCTION_NAME = (__webpack_require__(/*! ../internals/function-name */ "./node_modules/core-js/internals/function-name.js").CONFIGURABLE);
1429
+ var inspectSource = __webpack_require__(/*! ../internals/inspect-source */ "./node_modules/core-js/internals/inspect-source.js");
1430
+ var InternalStateModule = __webpack_require__(/*! ../internals/internal-state */ "./node_modules/core-js/internals/internal-state.js");
1431
+
1432
+ var enforceInternalState = InternalStateModule.enforce;
1433
+ var getInternalState = InternalStateModule.get;
1434
+ var $String = String;
1435
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
1436
+ var defineProperty = Object.defineProperty;
1437
+ var stringSlice = uncurryThis(''.slice);
1438
+ var replace = uncurryThis(''.replace);
1439
+ var join = uncurryThis([].join);
1440
+
1441
+ var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () {
1442
+ return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
1443
+ });
1444
+
1445
+ var TEMPLATE = String(String).split('String');
1446
+
1447
+ var makeBuiltIn = module.exports = function (value, name, options) {
1448
+ if (stringSlice($String(name), 0, 7) === 'Symbol(') {
1449
+ name = '[' + replace($String(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
1450
+ }
1451
+ if (options && options.getter) name = 'get ' + name;
1452
+ if (options && options.setter) name = 'set ' + name;
1453
+ if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
1454
+ if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true });
1455
+ else value.name = name;
1456
+ }
1457
+ if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) {
1458
+ defineProperty(value, 'length', { value: options.arity });
1459
+ }
1460
+ try {
1461
+ if (options && hasOwn(options, 'constructor') && options.constructor) {
1462
+ if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });
1463
+ // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
1464
+ } else if (value.prototype) value.prototype = undefined;
1465
+ } catch (error) { /* empty */ }
1466
+ var state = enforceInternalState(value);
1467
+ if (!hasOwn(state, 'source')) {
1468
+ state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
1469
+ } return value;
1470
+ };
1471
+
1472
+ // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
1473
+ // eslint-disable-next-line no-extend-native -- required
1474
+ Function.prototype.toString = makeBuiltIn(function toString() {
1475
+ return isCallable(this) && getInternalState(this).source || inspectSource(this);
1476
+ }, 'toString');
1477
+
1478
+
1479
+ /***/ }),
1480
+
1481
+ /***/ "./node_modules/core-js/internals/object-define-property.js":
1482
+ /*!******************************************************************!*\
1483
+ !*** ./node_modules/core-js/internals/object-define-property.js ***!
1484
+ \******************************************************************/
1485
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1486
+
1487
+
1488
+ var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ "./node_modules/core-js/internals/descriptors.js");
1489
+ var IE8_DOM_DEFINE = __webpack_require__(/*! ../internals/ie8-dom-define */ "./node_modules/core-js/internals/ie8-dom-define.js");
1490
+ var V8_PROTOTYPE_DEFINE_BUG = __webpack_require__(/*! ../internals/v8-prototype-define-bug */ "./node_modules/core-js/internals/v8-prototype-define-bug.js");
1491
+ var anObject = __webpack_require__(/*! ../internals/an-object */ "./node_modules/core-js/internals/an-object.js");
1492
+ var toPropertyKey = __webpack_require__(/*! ../internals/to-property-key */ "./node_modules/core-js/internals/to-property-key.js");
1493
+
1494
+ var $TypeError = TypeError;
1495
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
1496
+ var $defineProperty = Object.defineProperty;
1497
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1498
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
1499
+ var ENUMERABLE = 'enumerable';
1500
+ var CONFIGURABLE = 'configurable';
1501
+ var WRITABLE = 'writable';
1502
+
1503
+ // `Object.defineProperty` method
1504
+ // https://tc39.es/ecma262/#sec-object.defineproperty
1505
+ exports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
1506
+ anObject(O);
1507
+ P = toPropertyKey(P);
1508
+ anObject(Attributes);
1509
+ if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
1510
+ var current = $getOwnPropertyDescriptor(O, P);
1511
+ if (current && current[WRITABLE]) {
1512
+ O[P] = Attributes.value;
1513
+ Attributes = {
1514
+ configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],
1515
+ enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
1516
+ writable: false
1517
+ };
1518
+ }
1519
+ } return $defineProperty(O, P, Attributes);
1520
+ } : $defineProperty : function defineProperty(O, P, Attributes) {
1521
+ anObject(O);
1522
+ P = toPropertyKey(P);
1523
+ anObject(Attributes);
1524
+ if (IE8_DOM_DEFINE) try {
1525
+ return $defineProperty(O, P, Attributes);
1526
+ } catch (error) { /* empty */ }
1527
+ if ('get' in Attributes || 'set' in Attributes) throw new $TypeError('Accessors not supported');
1528
+ if ('value' in Attributes) O[P] = Attributes.value;
1529
+ return O;
1530
+ };
1531
+
1532
+
1533
+ /***/ }),
1534
+
1535
+ /***/ "./node_modules/core-js/internals/object-is-prototype-of.js":
1536
+ /*!******************************************************************!*\
1537
+ !*** ./node_modules/core-js/internals/object-is-prototype-of.js ***!
1538
+ \******************************************************************/
1539
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1540
+
1541
+
1542
+ var uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ "./node_modules/core-js/internals/function-uncurry-this.js");
1543
+
1544
+ module.exports = uncurryThis({}.isPrototypeOf);
1545
+
1546
+
1547
+ /***/ }),
1548
+
1549
+ /***/ "./node_modules/core-js/internals/ordinary-to-primitive.js":
1550
+ /*!*****************************************************************!*\
1551
+ !*** ./node_modules/core-js/internals/ordinary-to-primitive.js ***!
1552
+ \*****************************************************************/
1553
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1554
+
1555
+
1556
+ var call = __webpack_require__(/*! ../internals/function-call */ "./node_modules/core-js/internals/function-call.js");
1557
+ var isCallable = __webpack_require__(/*! ../internals/is-callable */ "./node_modules/core-js/internals/is-callable.js");
1558
+ var isObject = __webpack_require__(/*! ../internals/is-object */ "./node_modules/core-js/internals/is-object.js");
1559
+
1560
+ var $TypeError = TypeError;
1561
+
1562
+ // `OrdinaryToPrimitive` abstract operation
1563
+ // https://tc39.es/ecma262/#sec-ordinarytoprimitive
1564
+ module.exports = function (input, pref) {
1565
+ var fn, val;
1566
+ if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;
1567
+ if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;
1568
+ if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;
1569
+ throw new $TypeError("Can't convert object to primitive value");
1570
+ };
1571
+
1572
+
1573
+ /***/ }),
1574
+
1575
+ /***/ "./node_modules/core-js/internals/regexp-flags.js":
1576
+ /*!********************************************************!*\
1577
+ !*** ./node_modules/core-js/internals/regexp-flags.js ***!
1578
+ \********************************************************/
1579
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1580
+
1581
+
1582
+ var anObject = __webpack_require__(/*! ../internals/an-object */ "./node_modules/core-js/internals/an-object.js");
1583
+
1584
+ // `RegExp.prototype.flags` getter implementation
1585
+ // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
1586
+ module.exports = function () {
1587
+ var that = anObject(this);
1588
+ var result = '';
1589
+ if (that.hasIndices) result += 'd';
1590
+ if (that.global) result += 'g';
1591
+ if (that.ignoreCase) result += 'i';
1592
+ if (that.multiline) result += 'm';
1593
+ if (that.dotAll) result += 's';
1594
+ if (that.unicode) result += 'u';
1595
+ if (that.unicodeSets) result += 'v';
1596
+ if (that.sticky) result += 'y';
1597
+ return result;
1598
+ };
1599
+
1600
+
1601
+ /***/ }),
1602
+
1603
+ /***/ "./node_modules/core-js/internals/require-object-coercible.js":
1604
+ /*!********************************************************************!*\
1605
+ !*** ./node_modules/core-js/internals/require-object-coercible.js ***!
1606
+ \********************************************************************/
1607
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1608
+
1609
+
1610
+ var isNullOrUndefined = __webpack_require__(/*! ../internals/is-null-or-undefined */ "./node_modules/core-js/internals/is-null-or-undefined.js");
1611
+
1612
+ var $TypeError = TypeError;
1613
+
1614
+ // `RequireObjectCoercible` abstract operation
1615
+ // https://tc39.es/ecma262/#sec-requireobjectcoercible
1616
+ module.exports = function (it) {
1617
+ if (isNullOrUndefined(it)) throw new $TypeError("Can't call method on " + it);
1618
+ return it;
1619
+ };
1620
+
1621
+
1622
+ /***/ }),
1623
+
1624
+ /***/ "./node_modules/core-js/internals/shared-key.js":
1625
+ /*!******************************************************!*\
1626
+ !*** ./node_modules/core-js/internals/shared-key.js ***!
1627
+ \******************************************************/
1628
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1629
+
1630
+
1631
+ var shared = __webpack_require__(/*! ../internals/shared */ "./node_modules/core-js/internals/shared.js");
1632
+ var uid = __webpack_require__(/*! ../internals/uid */ "./node_modules/core-js/internals/uid.js");
1633
+
1634
+ var keys = shared('keys');
1635
+
1636
+ module.exports = function (key) {
1637
+ return keys[key] || (keys[key] = uid(key));
1638
+ };
1639
+
1640
+
1641
+ /***/ }),
1642
+
1643
+ /***/ "./node_modules/core-js/internals/shared-store.js":
1644
+ /*!********************************************************!*\
1645
+ !*** ./node_modules/core-js/internals/shared-store.js ***!
1646
+ \********************************************************/
1647
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1648
+
1649
+
1650
+ var IS_PURE = __webpack_require__(/*! ../internals/is-pure */ "./node_modules/core-js/internals/is-pure.js");
1651
+ var globalThis = __webpack_require__(/*! ../internals/global */ "./node_modules/core-js/internals/global.js");
1652
+ var defineGlobalProperty = __webpack_require__(/*! ../internals/define-global-property */ "./node_modules/core-js/internals/define-global-property.js");
1653
+
1654
+ var SHARED = '__core-js_shared__';
1655
+ var store = module.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {});
1656
+
1657
+ (store.versions || (store.versions = [])).push({
1658
+ version: '3.36.1',
1659
+ mode: IS_PURE ? 'pure' : 'global',
1660
+ copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
1661
+ license: 'https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE',
1662
+ source: 'https://github.com/zloirock/core-js'
1663
+ });
1664
+
1665
+
1666
+ /***/ }),
1667
+
1668
+ /***/ "./node_modules/core-js/internals/shared.js":
1669
+ /*!**************************************************!*\
1670
+ !*** ./node_modules/core-js/internals/shared.js ***!
1671
+ \**************************************************/
1672
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1673
+
1674
+
1675
+ var store = __webpack_require__(/*! ../internals/shared-store */ "./node_modules/core-js/internals/shared-store.js");
1676
+
1677
+ module.exports = function (key, value) {
1678
+ return store[key] || (store[key] = value || {});
1679
+ };
1680
+
1681
+
1682
+ /***/ }),
1683
+
1684
+ /***/ "./node_modules/core-js/internals/symbol-constructor-detection.js":
1685
+ /*!************************************************************************!*\
1686
+ !*** ./node_modules/core-js/internals/symbol-constructor-detection.js ***!
1687
+ \************************************************************************/
1688
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1689
+
1690
+
1691
+ /* eslint-disable es/no-symbol -- required for testing */
1692
+ var V8_VERSION = __webpack_require__(/*! ../internals/engine-v8-version */ "./node_modules/core-js/internals/engine-v8-version.js");
1693
+ var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js");
1694
+ var global = __webpack_require__(/*! ../internals/global */ "./node_modules/core-js/internals/global.js");
1695
+
1696
+ var $String = global.String;
1697
+
1698
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
1699
+ module.exports = !!Object.getOwnPropertySymbols && !fails(function () {
1700
+ var symbol = Symbol('symbol detection');
1701
+ // Chrome 38 Symbol has incorrect toString conversion
1702
+ // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
1703
+ // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
1704
+ // of course, fail.
1705
+ return !$String(symbol) || !(Object(symbol) instanceof Symbol) ||
1706
+ // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
1707
+ !Symbol.sham && V8_VERSION && V8_VERSION < 41;
1708
+ });
1709
+
1710
+
1711
+ /***/ }),
1712
+
1713
+ /***/ "./node_modules/core-js/internals/to-object.js":
1714
+ /*!*****************************************************!*\
1715
+ !*** ./node_modules/core-js/internals/to-object.js ***!
1716
+ \*****************************************************/
1717
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1718
+
1719
+
1720
+ var requireObjectCoercible = __webpack_require__(/*! ../internals/require-object-coercible */ "./node_modules/core-js/internals/require-object-coercible.js");
1721
+
1722
+ var $Object = Object;
1723
+
1724
+ // `ToObject` abstract operation
1725
+ // https://tc39.es/ecma262/#sec-toobject
1726
+ module.exports = function (argument) {
1727
+ return $Object(requireObjectCoercible(argument));
1728
+ };
1729
+
1730
+
1731
+ /***/ }),
1732
+
1733
+ /***/ "./node_modules/core-js/internals/to-primitive.js":
1734
+ /*!********************************************************!*\
1735
+ !*** ./node_modules/core-js/internals/to-primitive.js ***!
1736
+ \********************************************************/
1737
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1738
+
1739
+
1740
+ var call = __webpack_require__(/*! ../internals/function-call */ "./node_modules/core-js/internals/function-call.js");
1741
+ var isObject = __webpack_require__(/*! ../internals/is-object */ "./node_modules/core-js/internals/is-object.js");
1742
+ var isSymbol = __webpack_require__(/*! ../internals/is-symbol */ "./node_modules/core-js/internals/is-symbol.js");
1743
+ var getMethod = __webpack_require__(/*! ../internals/get-method */ "./node_modules/core-js/internals/get-method.js");
1744
+ var ordinaryToPrimitive = __webpack_require__(/*! ../internals/ordinary-to-primitive */ "./node_modules/core-js/internals/ordinary-to-primitive.js");
1745
+ var wellKnownSymbol = __webpack_require__(/*! ../internals/well-known-symbol */ "./node_modules/core-js/internals/well-known-symbol.js");
1746
+
1747
+ var $TypeError = TypeError;
1748
+ var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
1749
+
1750
+ // `ToPrimitive` abstract operation
1751
+ // https://tc39.es/ecma262/#sec-toprimitive
1752
+ module.exports = function (input, pref) {
1753
+ if (!isObject(input) || isSymbol(input)) return input;
1754
+ var exoticToPrim = getMethod(input, TO_PRIMITIVE);
1755
+ var result;
1756
+ if (exoticToPrim) {
1757
+ if (pref === undefined) pref = 'default';
1758
+ result = call(exoticToPrim, input, pref);
1759
+ if (!isObject(result) || isSymbol(result)) return result;
1760
+ throw new $TypeError("Can't convert object to primitive value");
1761
+ }
1762
+ if (pref === undefined) pref = 'number';
1763
+ return ordinaryToPrimitive(input, pref);
1764
+ };
1765
+
1766
+
1767
+ /***/ }),
1768
+
1769
+ /***/ "./node_modules/core-js/internals/to-property-key.js":
1770
+ /*!***********************************************************!*\
1771
+ !*** ./node_modules/core-js/internals/to-property-key.js ***!
1772
+ \***********************************************************/
1773
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1774
+
1775
+
1776
+ var toPrimitive = __webpack_require__(/*! ../internals/to-primitive */ "./node_modules/core-js/internals/to-primitive.js");
1777
+ var isSymbol = __webpack_require__(/*! ../internals/is-symbol */ "./node_modules/core-js/internals/is-symbol.js");
1778
+
1779
+ // `ToPropertyKey` abstract operation
1780
+ // https://tc39.es/ecma262/#sec-topropertykey
1781
+ module.exports = function (argument) {
1782
+ var key = toPrimitive(argument, 'string');
1783
+ return isSymbol(key) ? key : key + '';
1784
+ };
1785
+
1786
+
1787
+ /***/ }),
1788
+
1789
+ /***/ "./node_modules/core-js/internals/try-to-string.js":
1790
+ /*!*********************************************************!*\
1791
+ !*** ./node_modules/core-js/internals/try-to-string.js ***!
1792
+ \*********************************************************/
1793
+ /***/ ((module) => {
1794
+
1795
+
1796
+ var $String = String;
1797
+
1798
+ module.exports = function (argument) {
1799
+ try {
1800
+ return $String(argument);
1801
+ } catch (error) {
1802
+ return 'Object';
1803
+ }
1804
+ };
1805
+
1806
+
1807
+ /***/ }),
1808
+
1809
+ /***/ "./node_modules/core-js/internals/uid.js":
1810
+ /*!***********************************************!*\
1811
+ !*** ./node_modules/core-js/internals/uid.js ***!
1812
+ \***********************************************/
1813
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1814
+
1815
+
1816
+ var uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ "./node_modules/core-js/internals/function-uncurry-this.js");
1817
+
1818
+ var id = 0;
1819
+ var postfix = Math.random();
1820
+ var toString = uncurryThis(1.0.toString);
1821
+
1822
+ module.exports = function (key) {
1823
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
1824
+ };
1825
+
1826
+
1827
+ /***/ }),
1828
+
1829
+ /***/ "./node_modules/core-js/internals/use-symbol-as-uid.js":
1830
+ /*!*************************************************************!*\
1831
+ !*** ./node_modules/core-js/internals/use-symbol-as-uid.js ***!
1832
+ \*************************************************************/
1833
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1834
+
1835
+
1836
+ /* eslint-disable es/no-symbol -- required for testing */
1837
+ var NATIVE_SYMBOL = __webpack_require__(/*! ../internals/symbol-constructor-detection */ "./node_modules/core-js/internals/symbol-constructor-detection.js");
1838
+
1839
+ module.exports = NATIVE_SYMBOL
1840
+ && !Symbol.sham
1841
+ && typeof Symbol.iterator == 'symbol';
1842
+
1843
+
1844
+ /***/ }),
1845
+
1846
+ /***/ "./node_modules/core-js/internals/v8-prototype-define-bug.js":
1847
+ /*!*******************************************************************!*\
1848
+ !*** ./node_modules/core-js/internals/v8-prototype-define-bug.js ***!
1849
+ \*******************************************************************/
1850
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1851
+
1852
+
1853
+ var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ "./node_modules/core-js/internals/descriptors.js");
1854
+ var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js");
1855
+
1856
+ // V8 ~ Chrome 36-
1857
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3334
1858
+ module.exports = DESCRIPTORS && fails(function () {
1859
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1860
+ return Object.defineProperty(function () { /* empty */ }, 'prototype', {
1861
+ value: 42,
1862
+ writable: false
1863
+ }).prototype !== 42;
1864
+ });
1865
+
1866
+
1867
+ /***/ }),
1868
+
1869
+ /***/ "./node_modules/core-js/internals/weak-map-basic-detection.js":
1870
+ /*!********************************************************************!*\
1871
+ !*** ./node_modules/core-js/internals/weak-map-basic-detection.js ***!
1872
+ \********************************************************************/
1873
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1874
+
1875
+
1876
+ var global = __webpack_require__(/*! ../internals/global */ "./node_modules/core-js/internals/global.js");
1877
+ var isCallable = __webpack_require__(/*! ../internals/is-callable */ "./node_modules/core-js/internals/is-callable.js");
1878
+
1879
+ var WeakMap = global.WeakMap;
1880
+
1881
+ module.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap));
1882
+
1883
+
1884
+ /***/ }),
1885
+
1886
+ /***/ "./node_modules/core-js/internals/well-known-symbol.js":
1887
+ /*!*************************************************************!*\
1888
+ !*** ./node_modules/core-js/internals/well-known-symbol.js ***!
1889
+ \*************************************************************/
1890
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1891
+
1892
+
1893
+ var global = __webpack_require__(/*! ../internals/global */ "./node_modules/core-js/internals/global.js");
1894
+ var shared = __webpack_require__(/*! ../internals/shared */ "./node_modules/core-js/internals/shared.js");
1895
+ var hasOwn = __webpack_require__(/*! ../internals/has-own-property */ "./node_modules/core-js/internals/has-own-property.js");
1896
+ var uid = __webpack_require__(/*! ../internals/uid */ "./node_modules/core-js/internals/uid.js");
1897
+ var NATIVE_SYMBOL = __webpack_require__(/*! ../internals/symbol-constructor-detection */ "./node_modules/core-js/internals/symbol-constructor-detection.js");
1898
+ var USE_SYMBOL_AS_UID = __webpack_require__(/*! ../internals/use-symbol-as-uid */ "./node_modules/core-js/internals/use-symbol-as-uid.js");
1899
+
1900
+ var Symbol = global.Symbol;
1901
+ var WellKnownSymbolsStore = shared('wks');
1902
+ var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol['for'] || Symbol : Symbol && Symbol.withoutSetter || uid;
1903
+
1904
+ module.exports = function (name) {
1905
+ if (!hasOwn(WellKnownSymbolsStore, name)) {
1906
+ WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn(Symbol, name)
1907
+ ? Symbol[name]
1908
+ : createWellKnownSymbol('Symbol.' + name);
1909
+ } return WellKnownSymbolsStore[name];
1910
+ };
1911
+
1912
+
1913
+ /***/ }),
1914
+
1915
+ /***/ "./node_modules/core-js/modules/es.regexp.flags.js":
1916
+ /*!*********************************************************!*\
1917
+ !*** ./node_modules/core-js/modules/es.regexp.flags.js ***!
1918
+ \*********************************************************/
1919
+ /***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
1920
+
1921
+
1922
+ var global = __webpack_require__(/*! ../internals/global */ "./node_modules/core-js/internals/global.js");
1923
+ var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ "./node_modules/core-js/internals/descriptors.js");
1924
+ var defineBuiltInAccessor = __webpack_require__(/*! ../internals/define-built-in-accessor */ "./node_modules/core-js/internals/define-built-in-accessor.js");
1925
+ var regExpFlags = __webpack_require__(/*! ../internals/regexp-flags */ "./node_modules/core-js/internals/regexp-flags.js");
1926
+ var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js");
1927
+
1928
+ // babel-minify and Closure Compiler transpiles RegExp('.', 'd') -> /./d and it causes SyntaxError
1929
+ var RegExp = global.RegExp;
1930
+ var RegExpPrototype = RegExp.prototype;
1931
+
1932
+ var FORCED = DESCRIPTORS && fails(function () {
1933
+ var INDICES_SUPPORT = true;
1934
+ try {
1935
+ RegExp('.', 'd');
1936
+ } catch (error) {
1937
+ INDICES_SUPPORT = false;
1938
+ }
1939
+
1940
+ var O = {};
1941
+ // modern V8 bug
1942
+ var calls = '';
1943
+ var expected = INDICES_SUPPORT ? 'dgimsy' : 'gimsy';
1944
+
1945
+ var addGetter = function (key, chr) {
1946
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
1947
+ Object.defineProperty(O, key, { get: function () {
1948
+ calls += chr;
1949
+ return true;
1950
+ } });
1951
+ };
1952
+
1953
+ var pairs = {
1954
+ dotAll: 's',
1955
+ global: 'g',
1956
+ ignoreCase: 'i',
1957
+ multiline: 'm',
1958
+ sticky: 'y'
1959
+ };
1960
+
1961
+ if (INDICES_SUPPORT) pairs.hasIndices = 'd';
1962
+
1963
+ for (var key in pairs) addGetter(key, pairs[key]);
1964
+
1965
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1966
+ var result = Object.getOwnPropertyDescriptor(RegExpPrototype, 'flags').get.call(O);
1967
+
1968
+ return result !== expected || calls !== expected;
1969
+ });
1970
+
1971
+ // `RegExp.prototype.flags` getter
1972
+ // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
1973
+ if (FORCED) defineBuiltInAccessor(RegExpPrototype, 'flags', {
1974
+ configurable: true,
1975
+ get: regExpFlags
1976
+ });
1977
+
1978
+
1979
+ /***/ })
1980
+
1981
+ /******/ });
1982
+ /************************************************************************/
1983
+ /******/ // The module cache
1984
+ /******/ var __webpack_module_cache__ = {};
1985
+ /******/
1986
+ /******/ // The require function
1987
+ /******/ function __webpack_require__(moduleId) {
1988
+ /******/ // Check if module is in cache
1989
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
1990
+ /******/ if (cachedModule !== undefined) {
1991
+ /******/ return cachedModule.exports;
1992
+ /******/ }
1993
+ /******/ // Create a new module (and put it into the cache)
1994
+ /******/ var module = __webpack_module_cache__[moduleId] = {
1995
+ /******/ // no module.id needed
1996
+ /******/ // no module.loaded needed
1997
+ /******/ exports: {}
1998
+ /******/ };
1999
+ /******/
2000
+ /******/ // Execute the module function
2001
+ /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
2002
+ /******/
2003
+ /******/ // Return the exports of the module
2004
+ /******/ return module.exports;
2005
+ /******/ }
2006
+ /******/
2007
+ /************************************************************************/
2008
+ /******/ /* webpack/runtime/compat get default export */
2009
+ /******/ (() => {
2010
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
2011
+ /******/ __webpack_require__.n = (module) => {
2012
+ /******/ var getter = module && module.__esModule ?
2013
+ /******/ () => (module['default']) :
2014
+ /******/ () => (module);
2015
+ /******/ __webpack_require__.d(getter, { a: getter });
2016
+ /******/ return getter;
2017
+ /******/ };
2018
+ /******/ })();
2019
+ /******/
2020
+ /******/ /* webpack/runtime/define property getters */
2021
+ /******/ (() => {
2022
+ /******/ // define getter functions for harmony exports
2023
+ /******/ __webpack_require__.d = (exports, definition) => {
2024
+ /******/ for(var key in definition) {
2025
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
2026
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
2027
+ /******/ }
2028
+ /******/ }
2029
+ /******/ };
2030
+ /******/ })();
2031
+ /******/
2032
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
2033
+ /******/ (() => {
2034
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
2035
+ /******/ })();
2036
+ /******/
2037
+ /******/ /* webpack/runtime/make namespace object */
2038
+ /******/ (() => {
2039
+ /******/ // define __esModule on exports
2040
+ /******/ __webpack_require__.r = (exports) => {
2041
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
2042
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2043
+ /******/ }
2044
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
2045
+ /******/ };
2046
+ /******/ })();
2047
+ /******/
2048
+ /************************************************************************/
2049
+ var __webpack_exports__ = {};
2050
+ // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
2051
+ (() => {
2052
+ /*!***********************!*\
2053
+ !*** ./src/index.tsx ***!
2054
+ \***********************/
2055
+ __webpack_require__.r(__webpack_exports__);
2056
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2057
+ /* harmony export */ FlagshipProvider: () => (/* reexport safe */ _FlagshipProvider__WEBPACK_IMPORTED_MODULE_2__.FlagshipProvider),
2058
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
2059
+ /* harmony export */ useFlagship: () => (/* reexport safe */ _FlagshipHooks__WEBPACK_IMPORTED_MODULE_1__.useFlagship),
2060
+ /* harmony export */ useFsFlag: () => (/* reexport safe */ _FlagshipHooks__WEBPACK_IMPORTED_MODULE_1__.useFsFlag)
2061
+ /* harmony export */ });
2062
+ /* harmony import */ var _FlagshipProvider__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./FlagshipProvider */ "./src/FlagshipProvider.tsx");
2063
+ /* harmony import */ var _flagship_io_js_sdk__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @flagship.io/js-sdk */ "@flagship.io/js-sdk");
2064
+ /* harmony import */ var _flagship_io_js_sdk__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_flagship_io_js_sdk__WEBPACK_IMPORTED_MODULE_0__);
2065
+ /* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};
2066
+ /* harmony reexport (unknown) */ for(const __WEBPACK_IMPORT_KEY__ in _flagship_io_js_sdk__WEBPACK_IMPORTED_MODULE_0__) if(["default","FlagshipProvider"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = () => _flagship_io_js_sdk__WEBPACK_IMPORTED_MODULE_0__[__WEBPACK_IMPORT_KEY__]
2067
+ /* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
2068
+ /* harmony import */ var _FlagshipHooks__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./FlagshipHooks */ "./src/FlagshipHooks.ts");
2069
+
2070
+
2071
+
2072
+
2073
+
2074
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_FlagshipProvider__WEBPACK_IMPORTED_MODULE_2__.FlagshipProvider);
2075
+ })();
2076
+
2077
+ module.exports = __webpack_exports__;
2078
+ /******/ })()
2079
+ ;
2
2080
  //# sourceMappingURL=index.node.js.map