1import{a as j,f as g,l as J}from"https://st-p.rmcdn1.net/c099b495/dist/c/c-YFBUGRJ6.js";import{D as N,F as K}from"https://st-p.rmcdn1.net/c099b495/dist/c/c-TT44SLAL.js";import{a as m}from"https://st-p.rmcdn1.net/c099b495/dist/c/c-QLQ7X472.js";import{a as s,d as f}from"https://st-p.rmcdn1.net/c099b495/dist/c/c-VIR7PMAX.js";function d(e){return e.is_user_in_experiment!==void 0?!0:!!(e.group_name??e.group)}function F(e,t){return e?.dynamic_configs?.[t]}function Q(e,t){let r=F(e,t);return!r||!d(r)?!1:r.group_name||r.group?!0:r.is_user_in_experiment===!0}function W(e,t){let r=F(e,t);if(!r||d(r))return!1;let a=typeof r.value=="object"&&r.value!==null&&Object.keys(r.value).length>0;return r.passed===!0||r.rule_id&&r.rule_id!=="default"||r.rule_id==="default"&&a?!0:a}function X(e,t){let r=F(t,e);if(!r)return{};let a=r.group_name??r.group,o=typeof r.value=="object"&&r.value!==null?{...r.value}:{};return a&&(o.group=a),o}function M(e,t){return typeof t=="object"&&t!==null&&typeof t.name=="string"&&t.name!==e?t.name:e}function oe(e){if(!e)return[];let t=[],r=e.feature_gates;if(r)for(let[o,n]of Object.entries(r)){if(!(typeof n=="boolean"?n:n?.value))continue;let u=M(o,n);t.push({name:u})}let a=e.dynamic_configs;if(a)for(let[o,n]of Object.entries(a))(Q(e,o)||W(e,o))&&t.push({name:M(o,n),params:X(o,e)});return t}function Y(e){let t=[],r=[],a=[],o=e.feature_gates;o&&t.push(...Object.keys(o));let n=e.dynamic_configs;if(n)for(let[u,p]of Object.entries(n))d(p)?r.push(u):a.push(u);return{gateNames:t,experimentNames:r,dynamicConfigNames:a}}function O(e,t,r){let{gateNames:a,experimentNames:o,dynamicConfigNames:n}=Y(r),u=new Set([...a,...o,...n]);return[...e.filter(p=>!u.has(p.name)),...t]}var x=s(()=>{"use strict"});function k(e){return y.add(e),()=>y.delete(e)}function se(e){y.forEach(t=>t(e))}function P(e,t){return O(e,t.statsigFlags,t.bootstrap)}var y,b=s(()=>{"use strict";x();y=new Set});function Z(e){return new Map(e.map(t=>[t.name,t.params]))}function me({features:e,children:t}){let[r,a]=(0,i.useState)(e);(0,i.useEffect)(()=>k(n=>{a(u=>P(u,n))}),[]);let o=(0,i.useMemo)(()=>({features:Z(r)}),[r]);return N(h.Provider,{value:o,children:t})}var i,h,E=s(()=>{"use strict";i=f(m());b();K();h=(0,i.createContext)(void 0)});var A=s(()=>{"use strict"});function pe(e){_.clear(),B=new Set([...e.gateNames,...e.experimentNames,...e.dynamicConfigNames??[]]),v=e.logExposure;for(let t of w)R(t);w.clear()}
1function R(e){if(!_.has(e)){if(!v){w.add(e);return}B.has(e)&&(_.add(e),v(e))}}function D(e,t){t&&R(e)}var _,B,v,w,C=s(()=>{"use strict";_=new Set,B=new Set,v=null,w=new Set});function I(e){let t=j(`rm_${e}`);if(t!==void 0)return g(t);if(typeof window>"u"||!window?.localStorage)return;let r=window.localStorage.getItem(`rm_${e}`);return r===null?void 0:g(r)}var S=s(()=>{"use strict";J()});function ee(e){let t=e?.group;return typeof t=="string"&&t.toLowerCase()==="control"}function be(e){let t=(0,c.useContext)(h),r=(0,c.useMemo)(()=>{if(!t)return[!1,{},new Map];let{features:n}=t,u=I(e);if(u!==void 0)return[u,{},n];let p=n.has(e),l=n.get(e)||{},H=typeof l.group=="string";return[p&&(!H||!ee(l)),l,n]},[e,t]),[,,a]=r,o=a.has(String(e));return(0,c.useEffect)(()=>{D(String(e),o)},[e,o]),r}var c,T=s(()=>{"use strict";c=f(m());C();S();E()});var te,$=s(()=>{"use strict";te=f(m())});var L,U=s(()=>{"use strict";L=f(m())});var V,q=s(()=>{"use strict";V=f(m())});var z,G=s(()=>{"use strict";z=f(m())});var re=s(()=>{"use strict";A();C();S();b();x();T();$();U();E();q();G()});export{pe as a,D as b,F as c,Q as d,oe as e,Y as f,se as g,me as h,be as i,re as j};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.