1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="2b06d0b3-923c-3251-73c3-503f05a70873")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,503274,545415,238437,465466,813340,e=>{"use strict";var t=e.i(883402),r=e.i(217544),n=e.i(742475),l=e.i(90398),s=e.i(552334),a=e.i(112500),o=e.i(135797),i=e.i(285562),c=e.i(522558),d=e.i(25250),u=e.i(274169),x=e.i(932767),m=e.i(490633),f=e.i(427387),h=e.i(625523),b=e.i(58974),g=e.i(260219),p=e.i(832356);let y=p.z.union([p.z.boolean(),p.z.string(),p.z.number(),p.z.tuple([]),p.z.record(p.z.unknown())]),v=p.z.object({definitions:p.z.record(p.z.object({options:p.z.array(p.z.object({value:y,label:p.z.string()})).optional().default([]),description:p.z.string().optional(),origin:p.z.string().optional()}))});function j(){return()=>{}}function N(e){let t=JSON.stringify(e);return t.length<25?t:t.slice(0,20)+"..."}function w(e){return"object"==typeof e?JSON.stringify(e,null,2):String(e)}function S(e){let t=e.trim();if(""===t)return null;if("true"===t||"false"===t)return"Boolean";if(!Number.isNaN(Number(t))&&""!==t)return"Number";if(t.startsWith("{")||t.startsWith("["))try{return JSON.parse(t),"JSON"}catch{return"Invalid JSON"}return"String"}function C(){return null}function O(e){console.error("Error setting feature overrides:",e)}var k=e.i(969577);let _=(0,n.createContext)(void 0),F=e=>{let l,s,a=(0,r.c)(12),{children:o,fetchFeaturesFunction:i,cookieName:c,cookieDomain:d,header:u,branch:x,isOpen:m,openExtension:f}=e,h=function(){let e,t,l,s,a=(0,r.c)(14),[,o]=(0,n.useReducer)(z,0),i=(0,n.useSyncExternalStore)(j,E,T),c=null===i?null:"true"===i,[d,u]=(0,n.use
2State)(null),x=d??!!c;a[0]!==c?(e=e=>u(t=>{let r=t??!!c;return"function"==typeof e?e(r):e}),a[0]=c,a[1]=e):e=a[1];let m=e;a[2]!==c||a[3]!==o?(t=()=>{u(e=>e??!!c),k.safeLocalStorage.removeItem("toolbar_visible"),o()},a[2]=c,a[3]=o,a[4]=t):t=a[4];let f=t;a[5]!==f||a[6]!==o?(l=e=>{null===e?f():(k.safeLocalStorage.setItem("toolbar_visible",e.toString()),u(e),o())},a[5]=f,a[6]=o,a[7]=l):l=a[7];let h=l;return a[8]!==f||a[9]!==x||a[10]!==c||a[11]!==m||a[12]!==h?(s={isVisible:x,setVisibilityForNow:m,permanentVisibility:c,setVisibilityPermanently:h,clearPermanentVisibility:f},a[8]=f,a[9]=x,a[10]=c,a[11]=m,a[12]=h,a[13]=s):s=a[13],s}(),b=x||null;a[0]!==d||a[1]!==c||a[2]!==i||a[3]!==u||a[4]!==m||a[5]!==f||a[6]!==b||a[7]!==h?(l={...h,isOpen:m,cookieName:c,cookieDomain:d,fetchFeaturesFunction:i,header:u,branch:b,openExtension:f},a[0]=d,a[1]=c,a[2]=i,a[3]=u,a[4]=m,a[5]=f,a[6]=b,a[7]=h,a[8]=l):l=a[8];let g=l;return a[9]!==o||a[10]!==g?(s=(0,t.jsx)(_.Provider,{value:g,children:o}),a[9]=o,a[10]=g,a[11]=s):s=a[11],s};function T(){return null}function E(){return k.safeLocalStorage.getItem("toolbar_visible")}function z(e){return e+1}let P=()=>{let e=(0,n.useContext)(_);if(void 0===e)throw new m.SentryError("useToolbar must be used within a ToolbarProvider");return e},I=(0,n.createContext)(void 0),L=({children:e})=>{let{fetchFeaturesFunction:l,cookieName:s,cookieDomain:a,isOpen:o}=P(),i=(0,n.useRef)(void 0),c=(e=>{var t;let l,s,a,o,i,c,d,u,x,m,p,y,N,w,S,k,_,F=(0,r.c)(35),{fetchFeaturesFunction:T,cookieName:E,cookieDomain:z,deferFetching:P,afterSetFeatureOverrides:I}=e,L=(0,b.useQueryClient)(),D=(t=E,(a=(0,r.c)(4))[0]!==t?(l=()=>g.default.get(t)??null,a[0]=t,a[1]=l):l=a[1],o=(0,n.useSyncExternalStore)(j,l,C),a[2]!==o?(s=o?JSON.parse(o):{},a[2]=o,a[3]=s):s=a[3],s);F[0]!==E?(i=()=>{let e=g.default.get(E);return e?JSON.parse(e):{}},F[0]=E,F[1]=i):i=F[1];let M=i;F[2]!==z||F[3]!==E?(c=e=>{g.default.set(E,JSON.stringify(e),{expires:7,domain:z})},F[2]=z,F[3]=E,F[4]=c):c=F[4];let J=c;F[5]!==z||F[6]!==E?(d=()=>{g.default.remove(E,{domain:z})},F[5]=z,F[6]=E,F[7]=d):d=F[7];let R=d;F[8]===Symbol.for("react.memo_cache_sentinel")?(u=["feature-flags"],F[8]=u):u=F[8],F[9]!==T?(x=async()=>{let e=await T();return v.parse(e)},F[9]=T,F[10]=x):x=F[10];let B=!P;F[11]!==x||F[12]!==B?(m={queryKey:u,queryFn:x,enabled:B},F[11]=x,F[12]=B,F[13]=m):m=F[13];let V=(0,f.useQuery)(m);F[14]!==V.error?(p=()=>{V.error&&console.error("Error fetching or validating data:",V.error)},y=[V.error],F[14]=V.error,F[15]=p,F[16]=y):(p=F[15],y=F[16]),(0,n.useEffect)(p,y),F[17]!==M||F[18]!==J||F[19]!==V?(N=e=>{let t=M(),{data:r}=V,n=Object.keys(r?.definitions||{}),l=Object.fromEntries(Object.entries(t).filter(e=>{let[t]=e;return!n.includes(t)})),s={...e,...l};return J(s),Promise.resolve(s)},F[17]=M,F[18]=J,F[19]=V,F[20]=N):N=F[20],F[21]!==I||F[22]!==L?(w=e=>{L.setQueryData(["feature-flags"],t=>({...t,featureOverrides:e})),I()},F[21]=I,F[22]=L,F[23]=w):w=F[23],F[24]!==N||F[25]!==w?(S={mutationFn:N,onSuccess:w,onError:O},F[24]=N,F[25]=w,F[26]=S):S=F[26];let A=(0,h.useMutation)(S);F[27]!==R||F[28]!==A?(k=()=>{R(),A.mutate({})},F[27]=R,F[28]=A,F[29]=k):k=F[29];let W=k;return F[30]!==W||F[31]!==D||F[32]!==A.mutate||F[33]!==V?(_={...V,setFeatureOverrides:A.mutate,clearFeatureOverrides:W,cookieOverrides:D},F[30]=W,F[31]=D,F[32]=A.mutate,F[33]=V,F[34]=_):_=F[34],_})({fetchFeaturesFunction:l,cookieName:s,cookieDomain:a,deferFetching:!o,afterSetFeatureOverrides:()=>{let e=Object.keys(i.current??{}),t=new URL(window.location.href),r=!1;for(let n of e)t.searchParams.has(n)&&(t.searchParams.delete(n),r=!0);r?window.location.assign(t.toString()):window.location.reload()}}),{data:d,cookieOverrides:u,setFeatureOverrides:x,clearFeatureOverrides:m}=c;i.current=d?.definitions;let[p,y]=function(e){let t,l,s=(0,r.c)(5),[a,o]=(0,n.useState)(null),i=a??e;s[0]!==e?(t=t=>o(r=>{let n=r??e;return"function"==typeof t?t(n):t}),s[0]=e,s[1]=t):t=s[1];let c=t;return s[2]!==i||s[3]!==c?(l=[i,c],s[2]=i,s[3]=c,s[4]=l):l=s[4],l}(u);return(0,t.jsx)(I.Provider,{value:{...c,handleClear:m,handleSave:()=>{x(p)},handleSelectChange:(e,t)=>
2{if(""===t)return void y(t=>{let{[e]:r,...n}=t;return n});let r=d?.definitions?.[e]?.options?.find(e=>e.label===t);void 0!==r&&y(t=>({...t,[e]:r.value}))},handleCustomValueChange:(e,t)=>{let{value:r,error:n}=function(e){let t=e.trim();if(""===t)return{value:null,error:null};if("true"===t)return{value:!0,error:null};if("false"===t)return{value:!1,error:null};let r=Number(t);if(!Number.isNaN(r)&&""!==t)return{value:r,error:null};if(t.startsWith("{")||t.startsWith("["))try{return{value:JSON.parse(t),error:null}}catch{return{value:null,error:"Invalid JSON. Check brackets and quotes."}}return{value:t,error:null}}(t);return n?{error:n}:(null===r?y(t=>{let{[e]:r,...n}=t;return n}):y(t=>({...t,[e]:r})),{error:null})},localOverrides:p},children:e})},D=()=>{let e=(0,n.useContext)(I);if(void 0===e)throw new m.SentryError("useFeatureFlagsContext must be used within a FeatureFlagsProvider");return e};e.s(["FeatureFlagsProvider",0,L,"ToolbarProvider",0,F,"useFeatureFlagsContext",0,D,"useToolbar",0,P],545415);let M=(0,n.createContext)(void 0),J=e=>{let l,s=(0,r.c)(5),{children:a,staticExtensions:o}=e;if(void 0!==(0,n.useContext)(M)){let e;return s[0]!==a?(e=(0,t.jsx)(t.Fragment,{children:a}),s[0]=a,s[1]=e):e=s[1],e}return s[2]!==a||s[3]!==o?(l=(0,t.jsx)(R,{staticExtensions:o,children:a}),s[2]=a,s[3]=o,s[4]=l):l=s[4],l},R=({children:e,staticExtensions:r=[]})=>{let l=(0,n.useRef)(new Map),[s,a]=(0,n.useState)(0),o=(0,n.useCallback)(e=>{let t=l.current.get(e.id);return l.current.set(e.id,e),!t||t.display!==e.display||t.badge!==e.badge||t.icon!==e.icon||t.label!==e.label||t.priority!==e.priority},[]),i=(0,n.useCallback)(()=>{a(e=>e+1)},[]),c=(0,n.useCallback)(e=>{l.current.delete(e)&&a(e=>e+1)},[]),d=(0,n.useMemo)(()=>[...r,...l.current.values()].sort((e,t)=>(e.priority??50)-(t.priority??50)),[r,s]),u=(0,n.useMemo)(()=>({extensions:d,storeExtension:o,notifyExtensionChanged:i,unregisterExtension:c}),[d,o,i,c]);return(0,t.jsx)(M.Provider,{value:u,children:e})};function B(){let e=(0,n.useContext)(M);if(void 0===e)throw new m.SentryError("useExtensions must be used within an ExtensionsProvider");return e.extensions}function V(e){let n,l,s,a,o,i,c,u,x=(0,r.c)(16);if(x[0]!==e){let{children:t,bgColor:r,isFirst:i,isLast:c,className:d,...u}=e;n=t,s=i,a=c,l=d,o=u,x[0]=e,x[1]=n,x[2]=l,x[3]=s,x[4]=a,x[5]=o}else n=x[1],l=x[2],s=x[3],a=x[4],o=x[5];let m=s&&a?"9999px":s?"9999px 0 0 9999px":a?"0 9999px 9999px 0":"0";x[6]!==m?(i={borderRadius:m,boxShadow:"inset 0 1px 0 rgba(255,255,255,0.25), inset 0 -1px 0 rgba(255,255,255,0.1)"},x[6]=m,x[7]=i):i=x[7];let f=!s&&"border-l-0";return x[8]!==l||x[9]!==f?(c=(0,d.cn)("flex items-center justify-center gap-2 px-3 py-2 border border-white/30 curs
2or-pointer motion-safe:transition-colors hover:bg-white/10",f,l),x[8]=l,x[9]=f,x[10]=c):c=x[10],x[11]!==n||x[12]!==o||x[13]!==i||x[14]!==c?(u=(0,t.jsx)("button",{...o,style:i,className:c,children:n}),x[11]=n,x[12]=o,x[13]=i,x[14]=c,x[15]=u):u=x[15],u}function A(e){let n,l,s,a,o=(0,r.c)(34),{item:i,bgColor:d}=e;o[0]!==i.badge||o[1]!==i.icon||o[2]!==i.renderBadge?(n=i.renderBadge??(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(c.FaIcon,{name:i.icon,className:"size-4 text-white"}),null!=i.badge&&(0,t.jsx)("span",{className:"text-xs text-white font-mono tabular-nums",children:i.badge})]}),o[0]=i.badge,o[1]=i.icon,o[2]=i.renderBadge,o[3]=n):n=o[3];let m=n,f=i.hideOnMobile?"hidden md:flex":i.showOnlyOnMobile?"flex md:hidden":void 0;if("popover"===i.display&&i.content){let e,r,n,l,s,a;return o[4]!==d||o[5]!==m||o[6]!==i.label||o[7]!==f?(e=(0,t.jsx)(u.PopoverTrigger,{asChild:!0,children:(0,t.jsx)(x.TooltipTrigger,{asChild:!0,children:(0,t.jsx)(V,{"aria-label":i.label,bgColor:d,isFirst:!1,isLast:!1,className:f,children:m})})}),o[4]=d,o[5]=m,o[6]=i.label,o[7]=f,o[8]=e):e=o[8],o[9]!==i.label?(r=(0,t.jsx)(x.TooltipContent,{side:"top",className:"text-xs",children:i.label}),o[9]=i.label,o[10]=r):r=o[10],o[11]!==e||o[12]!==r?(n=(0,t.jsxs)(x.Tooltip,{children:[e,r]}),o[11]=e,o[12]=r,o[13]=n):n=o[13],o[14]!==i.onInteractOutside?(l=i.onInteractOutside?e=>{let t=e.detail,r=t?.originalEvent?.target??e.target;r&&i.onInteractOutside(r)&&e.preventDefault()}:void 0,o[14]=i.onInteractOutside,o[15]=l):l=o[15],o[16]!==i.content||o[17]!==l?(s=(0,t.jsx)(u.PopoverContent,{side:"top",className:"w-auto",onInteractOutside:l,children:i.content}),o[16]=i.content,o[17]=l,o[18]=s):s=o[18],o[19]!==i.initialOpen||o[20]!==n||o[21]!==s?(a=(0,t.jsxs)(u.Popover,{defaultOpen:i.initialOpen,children:[n,s]}),o[19]=i.initialOpen,o[20]=n,o[21]=s,o[22]=a):a=o[22],a}return o[23]!==d||o[24]!==m||o[25]!==i.label||o[26]!==i.onClick||o[27]!==f?(l=(0,t.jsx)(x.TooltipTrigger,{asChild:!0,children:(0,t.jsx)(V,{"aria-label":i.label,onClick:i.onClick,bgColor:d,isFirst:!1,isLast:!1,className:f,children:m})}),o[23]=d,o[24]=m,o[25]=i.label,o[26]=i.onClick,o[27]=f,o[28]=l):l=o[28],o[29]!==i.label?(s=(0,t.jsx)(x.TooltipContent,{side:"top",className:"text-xs",children:i.label}),o[29]=i.label,o[30]=s):s=o[30],o[31]!==l||o[32]!==s?(a=(0,t.jsxs)(x.Tooltip,{children:[l,s]}),o[31]=l,o[32]=s,o[33]=a):a=o[33],a}function W(e){let n,l,s,a,o,i,u,x,m=(0,r.c)(16),{permanentVisibility:f,setVisibilityPermanently:h,clearPermanentVisibility:b,setVisibilityForNow:g}=e;m[0]===Symbol.for("react.memo_cache_sentinel")?(n=[{value:"auto",label:"Auto"},{value:"always",label:"Always"},{value:"hidden",label:"Hidden"}],m[0]=n):n=m[0];let p=n,y=!0===f?"always":!1===f?"hidden":"auto";m[1]!==b||m[2]!==h?(l=e=>{"always"===e?h(!0):"hidden"===e?h(!1):b()},m[1]=b,m[2]=h,m[3]=l):l=m[3];let v=l;return m[4]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsx)("p",{className:"text-sm font-medium m-0",children:"Show toolbar"}),m[4]=s):s=m[4],m[5]!==y||m[6]!==v?(a=(0,t.jsx)("div",{className:"flex rounded-md border border-gray-200 overflow-hidden",children:p.map(e=>{let r=y===e.value;return(0,t.jsx)("button",{className:(0,d.cn)("flex-1 px-3 py-1.5 text-xs font-medium cursor-pointer border-r border-gray-200 last:border-r-0 hover:opacity-90",r?"bg-gray-900 text-white":"bg-white text-gray-600"),onClick:()=>v(e.value),children:e.label},e.value)})}),m[5]=y,m[6]=v,m[7]=a):a=m[7],m[8]!==g?(o=()=>g(!1),m[8]=g,m[9]=o):o=m[9],m[10]===Symbol.for("react.memo_cache_sentinel")?(i=(0,t.jsx)(c.FaIcon,{name:"eye-slash",className:"size-3"}),m[10]=i):i=m[10],m[11]!==o?(u=(0,t.jsxs)("button",{className:"flex items-center justify-center gap-1.5 w-full text-xs px-3 py-1.5 rounded-md border border-gray-200 text-gray-500 cursor-pointer hover:bg-gray-50 motion-safe:transition-colors",onClick:o,children:[i,"Hide for this page"]}),m[11]=o,m[12]=u):u=m[12],m[13]!==a||m[14]!==u?(x=(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[s,a,u]}),m[13]=a,m[14]=u,m[15]=x):x=m[15],x}function H(e){let n,l,s,a,o,i,d=(0,r.c)(19),{hasOverrides:u,overrideCount:m,onOpen:f,isFirst:h,isLast:b,bgColor:g}=e,p=u?"toggle-on":"toggle-off";d[0]!==p?(n=(0,t.jsx)(c.FaIcon,{name:p,className:"size-4 text-white"}),d[0]=p,d[1]=n):n=d[1],d[2]!==u||d[3]!==m?(l=u&&(0,t.jsx)("span",{className:"text-xs text-white font-medium font-mono tabular-nums",children:m}),d[2]=u,d[3]=m,d[4]=l):l=d[4],d[5]!==g||d[6]!==h||d[7]!==b||d[8]!==f||d[9]!==n||d[10]!==l?(s=(0,t.jsxs)(V,{"aria-label":"Feature Flags",onClick:f,bgColor:g,isFirst:h,isLast:b,children:[n,l]}),d[5]=g,d[6]=h,d[7]=b,d[8]=f,d[9]=n,d[10]=l,d[11]=s):s=d[11];let y=s;
2if(u){let e;return d[12]!==y?(e=(0,t.jsx)(U,{children:y}),d[12]=y,d[13]=e):e=d[13],e}return d[14]!==y?(a=(0,t.jsx)(x.TooltipTrigger,{asChild:!0,children:y}),d[14]=y,d[15]=a):a=d[15],d[16]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsxs)(x.TooltipContent,{side:"top",className:"text-xs",children:["Feature Flags",(0,t.jsx)("kbd",{className:"ml-2 px-1.5 py-0.5 rounded bg-white/10 text-white/80 text-xs font-mono",children:"Ctrl+."})]}),d[16]=o):o=d[16],d[17]!==a?(i=(0,t.jsxs)(x.Tooltip,{children:[a,o]}),d[17]=a,d[18]=i):i=d[18],i}function U(e){let l,s,a,o,i,c,d,x,m=(0,r.c)(17),{children:f}=e,{cookieOverrides:h}=D(),{setVisibilityForNow:b}=P();m[0]!==h?(l=Object.keys(h),m[0]=h,m[1]=l):l=m[1];let g=l.length>0,[p,y]=(0,n.useState)(!1);m[2]!==g||m[3]!==b?(s=()=>{g&&b(!0)},m[2]=g,m[3]=b,m[4]=s):s=m[4],m[5]===Symbol.for("react.memo_cache_sentinel")?(a=[],m[5]=a):a=m[5],(0,n.useEffect)(s,a);let v=p&&g;return m[6]===Symbol.for("react.memo_cache_sentinel")?(o=()=>y(!0),i=()=>y(!1),m[6]=o,m[7]=i):(o=m[6],i=m[7]),m[8]!==f?(c=(0,t.jsx)(u.PopoverTrigger,{asChild:!0,onMouseEnter:o,onMouseLeave:i,children:f}),m[8]=f,m[9]=c):c=m[9],m[10]!==h||m[11]!==g?(d=g&&(0,t.jsx)(u.PopoverContent,{side:"top",className:"w-auto pointer-events-none p-3",onOpenAutoFocus:Y,children:(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)("p",{className:"text-xs font-medium text-gray-500 m-0 mb-0.5",children:"Active overrides"}),Object.entries(h).map(X),(0,t.jsx)("div",{className:"mt-1 pt-1.5 border-t border-gray-100",children:(0,t.jsxs)("p",{className:"text-xs text-gray-500 m-0",children:[(0,t.jsx)("kbd",{className:"px-1 py-0.5 rounded bg-gray-100 text-gray-500 text-xs font-mono",children:"Ctrl+."})," ","to toggle toolbar"]})})]})}),m[10]=h,m[11]=g,m[12]=d):d=m[12],m[13]!==v||m[14]!==c||m[15]!==d?(x=(0,t.jsxs)(u.Popover,{open:v,children:[c,d]}),m[13]=v,m[14]=c,m[15]=d,m[16]=x):x=m[16],x}function X(e){let[r,n]=e;return(0,t.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,t.jsx)("span",{className:"text-xs font-mono font-medium text-gray-900",children:r}),(0,t.jsx)("span",{className:"text-xs font-mono text-gray-500",children:N(n)})]},r)}function Y(e){return e.preventDefault()}e.s(["ExtensionsProvider",0,J,"useExtensions",0,B,"useToolbarExtension",0,function(e){let t=(0,n.useContext)(M);if(void 0===t)throw new m.SentryError("useToolbarExtension must be used within an ExtensionsProvider");let{storeExtension:r,notifyExtensionChanged:l,unregisterExtension:s}=t,a=(0,n.useRef)(e.id);a.current=e.id;let o=r(e);(0,n.useEffect)(()=>{o&&l()}),(0,n.useEffect)(()=>()=>s(a.current),[e.id,s])}],238437);let q=e=>{let l,s,a,o,i,m,f,h,b,g,p,y,v,j,N,w,S,C,O=(0,r.c)(57),{children:k,onOpen:_}=e,{isVisible:F,setVisibilityForNow:T,setVisibilityPermanently:E,clearPermanentVisibility:z,permanentVisibility:I}=P(),{cookieOverrides:L}=D();O[0]!==L?(l=Object.keys(L),O[0]=L,O[1]=l):l=O[1];let M=l.length,J=M>0,R=B(),U=R.filter(K),X=U.length>0;O[2]!==z||O[3]!==I||O[4]!==T?(s={permanentVisibility:I,clearPermanentVisibility:z,setVisibilityForNow:T},O[2]=z,O[3]=I,O[4]=T,O[5]=s):s=O[5],function(e){let t,l,s=(0,r.c)(5),{permanentVisibility:a,clearPermanentVisibility:o,setVisibilityForNow:i}=e;s[0]!==o||s[1]!==a||s[2]!==i?(t=()=>{let e=e=>{e.ctrlKey&&"."===e.key&&i(e=>(!0!==a&&o(),!e))};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},l=[a,o,i],s[0]=o,s[1]=a,s[2]=i,s[3]=t,s[4]=l):(t=s[3],l=s[4]),(0,n.useEffect)(t,l)}(s),O[6]!==z||O[7]!==I||O[8]!==T?(a={permanentVisibility:I,clearPermanentVisibility:z,setVisibilityForNow:T},O[6]=z,O[7]=I,O[8]=T,O[9]=a):a=O[9],function(e){let t,l,s=(0,r.c)(5),{permanentVisibility:a,clearPermanentVisibility:o,setVisibilityForNow:i}=e,c=(0,n.useRef)(void 0);s[0]!==o||s[1]!==a||s[2]!==i?(t=()=>{let e=()=>{c.current=setTimeout(()=>{if(i(!0),!0!==a)return o(),!0},500)},t=()=>{clearTimeout(c.current)};return window.addEventListener("touchstart",e),window.addEventListener("touchend",t),()=>{window.removeEventListener("touchstart",e),window.removeEventListener("touchend",t),clearTimeout(c.current)}},l=[a,o,i],s[0]=o,s[1]=a,s[2]=i,s[3]=t,s[4]=l):(t=s[3],l=s[4]),(0,n.useEffect)(t,l)}(a);let Y=F&&!1!==I,q=J?"rgba(21, 128, 61, 0.6)":"rgba(0, 0, 0, 0.45)",{offset:G,isDragging:Z,onPointerDown:ee,onPointerMove:et,onPointerUp:er}=function(e){let t,l,s,a,o,i=(0,r.c)(9);i[0]===Symbol.for("react.memo_cache_sentinel")?(t={x:0,y:0},i[0]=t):t=i[0];
2let[c,d]=(0,n.useState)(t),[u,x]=(0,n.useState)(!1),m=(0,n.useRef)(null),[f,h]=(0,n.useState)(e);f!==e&&(h(e),e||d({x:0,y:0})),i[1]!==c?(l=e=>{m.current={startX:e.clientX,startY:e.clientY,origX:c.x,origY:c.y},e.target.setPointerCapture(e.pointerId),x(!0)},i[1]=c,i[2]=l):l=i[2];let b=l;i[3]===Symbol.for("react.memo_cache_sentinel")?(s=e=>{m.current&&d({x:m.current.origX+(e.clientX-m.current.startX),y:m.current.origY+(e.clientY-m.current.startY)})},i[3]=s):s=i[3];let g=s;i[4]===Symbol.for("react.memo_cache_sentinel")?(a=()=>{m.current=null,x(!1)},i[4]=a):a=i[4];let p=a;return i[5]!==u||i[6]!==c||i[7]!==b?(o={offset:c,isDragging:u,onPointerDown:b,onPointerMove:g,onPointerUp:p},i[5]=u,i[6]=c,i[7]=b,i[8]=o):o=i[8],o}(Y),en=x.TooltipProvider,el=Y?`translate(calc(-50% + ${G.x}px), ${G.y}px) scale(1)`:`translate(calc(-50% + ${G.x}px), 16px) scale(0.95)`;O[10]!==q||O[11]!==el?(o={top:"auto",bottom:"16px",left:"calc(50% - var(--removed-body-scroll-bar-size, 0px) / 2)",maxWidth:"calc(100vw - 16px)",transitionTimingFunction:"cubic-bezier(0.25, 1, 0.5, 1)",backgroundColor:q,boxShadow:"0 0 0 1px rgba(255,255,255,0.2), 0 8px 32px rgba(0,0,0,0.25), inset 0 2px 12px rgba(255,255,255,0.15)",backdropFilter:"blur(20px) saturate(180%)",WebkitBackdropFilter:"blur(20px) saturate(180%)",transform:el},O[10]=q,O[11]=el,O[12]=o):o=O[12];let es=!Z&&"motion-safe:transition-[opacity,transform] duration-300",ea=Y?"opacity-100":"opacity-0 pointer-events-none";O[13]!==es||O[14]!==ea?(i=(0,d.cn)("fixed z-[9999] [[data-scroll-locked]_&]:z-40 inline-flex rounded-full overflow-hidden",es,ea),O[13]=es,O[14]=ea,O[15]=i):i=O[15],O[16]===Symbol.for("react.memo_cache_sentinel")?(m=(0,t.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 z-10 rounded-full",style:{background:"linear-gradient(to bottom, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.05) 40%, transparent 50%)",boxShadow:"inset 0 1px 1px rgba(255,255,255,0.4), inset 0 -1px 1px rgba(255,255,255,0.1)"}}),O[16]=m):m=O[16];let eo=Z?"cursor-grabbing":"cursor-grab";O[17]!==eo?(f=(0,d.cn)("flex items-center justify-center px-1.5 py-2 border border-white/30 border-r-0 touch-none select-none",eo),O[17]=eo,O[18]=f):f=O[18],O[19]===Symbol.for("react.memo_cache_sentinel")?(h={borderRadius:"9999px 0 0 9999px",boxShadow:"inset 0 1px 0 rgba(255,255,255,0.25), inset 0 -1px 0 rgba(255,255,255,0.1)"},b=(0,t.jsx)(c.FaIcon,{name:"grip-vertical",className:"size-3 text-white"}),O[19]=h,O[20]=b):(h=O[19],b=O[20]),O[21]!==ee||O[22]!==et||O[23]!==er||O[24]!==f?(g=(0,t.jsx)("div",{onPointerDown:ee,onPointerMove:et,onPointerUp:er,className:f,style:h,children:b}),O[21]=ee,O[22]=et,O[23]=er,O[24]=f,O[25]=g):g=O[25],O[26]!==q||O[27]!==J||O[28]!==_||O[29]!==M?(p=(0,t.jsx)(H,{hasOverrides:J,overrideCount:M,onOpen:_,isFirst:!1,isLast:!1,bgColor:q}),O[26]=q,O[27]=J,O[28]=_,O[29]=M,O[30]=p):p=O[30];let ei=X&&U.map(e=>(0,t.jsx)(A,{item:e,bgColor:q},e.id));return O[31]===Symbol.for("react.memo_cache_sentinel")?(y=(0,t.jsx)(c.FaIcon,{name:"eye-low-vision",className:"size-4 text-white"}),O[31]=y):y=O[31],O[32]!==q?(v=(0,t.jsx)(u.PopoverTrigger,{asChild:!0,children:(0,t.jsx)(V,{"aria-label":"Toolbar visibility",bgColor:q,isFirst:!1,isLast:!0,children:y})}),O[32]=q,O[33]=v):v=O[33],O[34]!==z||O[35]!==I||O[36]!==T||O[37]!==E?(j=(0,t.jsx)(u.PopoverContent,{side:"top",className:"w-56",children:(0,t.jsx)(W,{permanentVisibility:I,setVisibilityPermanently:E,clearPermanentVisibility:z,setVisibilityForNow:T})}),O[34]=z,O[35]=I,O[36]=T,O[37]=E,O[38]=j):j=O[38],O[39]!==v||O[40]!==j?(N=(0,t.jsxs)(u.Popover,{children:[v,j]}),O[39]=v,O[40]=j,O[41]=N):N=O[41],O[42]!==m||O[43]!==g||O[44]!==p||O[45]!==ei||O[46]!==N||O[47]!==o||O[48]!==i?(w=(0,t.jsxs)("div",{id:"staff-toolbar",style:o,className:i,children:[m,g,p,ei,N]}),O[42]=m,O[43]=g,O[44]=p,O[45]=ei,O[46]=N,O[47]=o,O[48]=i,O[49]=w):w=O[49],O[50]!==R?(S=R.filter(Q).map($),O[50]=R,O[51]=S):S=O[51],O[52]!==en||O[53]!==k||O[54]!==w||O[55]!==S?(C=(0,t.jsxs)(en,{children:[w,k,S]}),O[52]=en,O[53]=k,O[54]=w,O[55]=S,O[56]=C):C=O[56],C};function K(e){return"button"===e.display||"popover"===e.display}function Q(e){return e.modal}function $(e){return(0,t.jsx)(n.Fragment,{children:e.modal},e.id)}function G(e){let l,a,i,u,x,m,f,h,b,g,p,y,v,j,N,w,S,C,O,k,_,F,T,E,z=(0,r.c)(57),{isOpen:I,onClose:L}=e,{data:M,isLoading:J,handleSave:R,handleClear:B,localOverrides:V}=D(),{header:A,branch:W}
2=P();z[0]!==V?(l=Object.entries(V),z[0]=V,z[1]=l):l=z[1];let H=l.length,U=H>0,[X,Y]=(0,n.useState)(""),[q,K]=(0,n.useState)(!1);z[2]!==R?(a=()=>{K(!0),R()},z[2]=R,z[3]=a):a=z[3];let Q=a;z[4]!==B?(i=()=>{K(!0),B()},z[4]=B,z[5]=i):i=z[5];let $=i,G=A||"Feature Flags";z[6]!==L?(u=e=>!e&&L(),z[6]=L,z[7]=u):u=z[7],z[8]===Symbol.for("react.memo_cache_sentinel")?(x={maxHeight:"80vh"},z[8]=x):x=z[8],z[9]!==G?(m=(0,t.jsx)(s.DialogHeader,{children:(0,t.jsx)(s.DialogTitle,{className:"text-base font-semibold",children:G})}),z[9]=G,z[10]=m):m=z[10],z[11]!==W?(f=W&&(0,t.jsx)("code",{className:"text-xs text-gray-500 font-normal truncate block",children:W}),z[11]=W,z[12]=f):f=z[12],z[13]!==m||z[14]!==f?(h=(0,t.jsxs)("div",{className:"flex flex-col gap-1 min-w-0",children:[m,f]}),z[13]=m,z[14]=f,z[15]=h):h=z[15];let ee=U?"opacity-100 border-red-200 text-red-600 hover:bg-red-50":"opacity-0 pointer-events-none border-transparent";z[16]!==ee?(b=(0,d.cn)("text-xs px-2 py-1.5 rounded-md cursor-pointer flex items-center gap-1 border motion-safe:transition-all duration-200",ee),z[16]=ee,z[17]=b):b=z[17],z[18]!==H?(g=(0,t.jsx)("span",{className:"inline-flex items-center justify-center min-w-4 h-4 rounded-full bg-red-100 px-1 text-xs text-red-700 font-medium",children:H}),z[18]=H,z[19]=g):g=z[19],z[20]!==$||z[21]!==b||z[22]!==g?(p=(0,t.jsxs)("button",{className:b,onClick:$,children:["Clear",g]}),z[20]=$,z[21]=b,z[22]=g,z[23]=p):p=z[23];let er=q?"opacity-50 cursor-not-allowed bg-gray-600":U?"bg-brand-500 hover:bg-brand-600":"bg-gray-600 hover:bg-gray-700";z[24]!==er?(y=(0,d.cn)("text-sm px-3 sm:px-4 py-1.5 rounded-md cursor-pointer text-white font-medium motion-safe:transition-colors",er),z[24]=er,z[25]=y):y=z[25];let en=q?"Applying...":"Apply";return z[26]!==Q||z[27]!==q||z[28]!==y||z[29]!==en?(v=(0,t.jsx)("button",{className:y,onClick:Q,disabled:q,children:en}),z[26]=Q,z[27]=q,z[28]=y,z[29]=en,z[30]=v):v=z[30],z[31]===Symbol.for("react.memo_cache_sentinel")?(j=(0,t.jsxs)(s.DialogClose,{className:"p-1.5 rounded-md text-gray-400 hover:text-gray-600 hover:bg-gray-100 cursor-pointer motion-safe:transition-colors",children:[(0,t.jsx)(c.FaIcon,{name:"xmark",className:"size-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]}),z[31]=j):j=z[31],z[32]!==p||z[33]!==v?(N=(0,t.jsxs)("div",{className:"flex items-center gap-1.5 shrink-0",children:[p,v,j]}),z[32]=p,z[33]=v,z[34]=N):N=z[34],z[35]!==N||z[36]!==h?(w=(0,t.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[h,N]}),z[35]=N,z[36]=h,z[37]=w):w=z[37],z[38]===Symbol.for("react.memo_cache_sentinel")?(S=(0,t.jsx)(c.FaIcon,{name:"magnifying-glass",className:"absolute left-3 top-1/2 -translate-y-1/2 size-3 text-gray-400 pointer-events-none"}),z[38]=S):S=z[38],z[39]===Symbol.for("react.memo_cache_sentinel")?(C=e=>Y(e.target.value),z[39]=C):C=z[39],z[40]===Symbol.for("react.memo_cache_sentinel")?(O={paddingLeft:"2.25rem"},z[40]=O):O=z[40],z[41]!==X?(k=(0,t.jsxs)("div",{className:"relative",children:[S,(0,t.jsx)(o.Input,{placeholder:"Search flags...",value:X,onChange:C,className:"h-9 text-sm",style:O})]}),z[41]=X,z[42]=k):k=z[42],z[43]!==w||z[44]!==k?(_=(0,t.jsxs)("div",{className:"flex flex-col gap-3 px-4 sm:px-6 pt-4 sm:pt-6 pb-4 border-b border-gray-100 shrink-0",children:[w,k]}),z[43]=w,z[44]=k,z[45]=_):_=z[45],z[46]!==M||z[47]!==J||z[48]!==X?(F=(0,t.jsx)("div",{className:"flex-1 overflow-y-auto px-4 sm:px-6 pt-2 pb-4 min-h-0",children:J||!M?(0,t.jsx)(Z,{}):(0,t.jsx)(et,{searchQuery:X})}),z[46]=M,z[47]=J,z[48]=X,z[49]=F):F=z[49],z[50]!==_||z[51]!==F?(T=(0,t.jsxs)(s.DialogContent,{showCloseButton:!1,className:"flex flex-col sm:max-w-lg overflow-hidden p-0",style:x,children:[_,F]}),z[50]=_,z[51]=F,z[52]=T):T=z[52],z[53]!==I||z[54]!==T||z[55]!==u?(E=(0,t.jsx)(s.Dialog,{open:I,onOpenChange:u,children:T}),z[53]=I,z[54]=T,z[55]=u,z[56]=E):E=z[56],E}function Z(){let e,n=(0,r.c)(1);return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)("div",{className:"flex flex-col gap-4 py-4",children:["w-32","w-40","w-24","w-36"].map(ee)}),n[0]=e):e=n[0],e}function ee(e,r){return(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)(i.Skeleton,{className:(0,d.cn)("h-3.5 rounded",e)}),(0,t.jsx)(i.Skeleton,{className:"h-3 w-56 rounded"}),(0,t.jsx)(i.Skeleton,{className:"h-9 w-full rounded-md"})]},r)}function et(e){let n,l,s,a,o,i,c,d=(0,r.c)(18),{searchQuery:u}=e,{data:x,cookieOverrides:m}=D();d[0]!==x?.definitions||d[1]!==u?(l=Object.entries(n=x?.definitions||{}).filter(e=>{let[t]=e;return""===u||t.toLowerCase().includes(u.toLowerCase())}),d[0]=x?.definitions,d[1]=u,d[2]=n,d[3]=l):(n=d[2],l=d[3]);let f=l;d[4]!==m||d[5]!==n?(s=Object.entries(m).filter(e=>{let[t]=e;return!Object.hasOwnProperty.call(n,t)}),d[4]=m,d[5]=n,d[6]=s):s=d[6];let h=s;return d[7]!==f?(a=f.map(en),d[7]=f,d[8]=a):a=d[8],d[9]!==h?(o=h.length>0&&(0,t.jsxs)("div",{className:"flex flex-col gap-2 mt-4 pt-4 border-t border-gray-100",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-0.5 mb-1",children:[(0,t.jsx)("p",{className:"text-xs font-medium text-gray-900 m-0",children:"Unknown flags"}),(0,t.jsx)("p",{className:"text-xs text-gray-400 m-0",children:"These overrides don't match any defined flag"})]}),h.map(er)]}),d[9]=h,d[10]=o):o=d[10],d[11]!==f.length||d[12]!==h.length?(i=0===f.length&&0===h.length&&(0,t.jsx)("p",{className:"py-12 text-sm text-gray-400 text-center m-0",children:"No matching flags"}),d[11]=f.length,d[12]=h.length,d[13]=i):i=d[13],d[14]!==a||d[15]!==o||d[16]!==i?(c=(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[a,o,i]}),d[14]=a,d[15]=o,d[16]=i,d[17]=c):c=d[17],c}function er(e){let[r,n]=e;return(0,t.jsx)(ei,{name:r,value:n},r)}function en(e){let[r]=e;return(0,t.jsx)(el,{name:r},r)}function el(e){let l,s,o,i,c,u,x,m,f,h,b,g,p,y=(0,r.c)(51),{name:v}=e,{data:j,cookieOverrides:N,handleSelectChange:C,handleCustomValueChange:O,localOverrides:k}
2=D(),[_,F]=(0,n.useState)(!1),[T,E]=(0,n.useState)(""),[z,P]=(0,n.useState)(null);if(!j)return null;y[0]!==j.definitions||y[1]!==v?(l=j.definitions[v]||{},y[0]=j.definitions,y[1]=v,y[2]=l):l=y[2];let{origin:I,description:L,options:M}=l,J=M.length>0;y[3]!==k||y[4]!==v?(s=Object.hasOwnProperty.call(k,v),y[3]=k,y[4]=v,y[5]=s):s=y[5];let R=s;y[6]!==N||y[7]!==k||y[8]!==v?(o=Object.hasOwnProperty.call(k,v)?k[v]:N[v],y[6]=N,y[7]=k,y[8]=v,y[9]=o):o=y[9];let B=o;if(y[10]!==B||y[11]!==M){let e;y[13]!==B?(e=e=>JSON.stringify(e.value)===JSON.stringify(B),y[13]=B,y[14]=e):e=y[14],i=M.find(e),y[10]=B,y[11]=M,y[12]=i}else i=y[12];let V=i;y[15]!==B?(c=()=>{E(void 0===B?"":w(B)),P(null),F(!0)},y[15]=B,y[16]=c):c=y[16];let A=c;y[17]!==O||y[18]!==v?(u=e=>{E(e);let{error:t}=O(v,e);P(t)},y[17]=O,y[18]=v,y[19]=u):u=y[19];let W=u,H=_||!J,U=R?"bg-brand-50 ring-1 ring-brand-200":"hover:bg-gray-50";return y[20]!==U?(x=(0,d.cn)("flex flex-col gap-2 rounded-lg p-3 -mx-3 motion-safe:transition-colors duration-150",U),y[20]=U,y[21]=x):x=y[21],y[22]!==B||y[23]!==R||y[24]!==v||y[25]!==I?(m=(0,t.jsx)(ec,{origin:I,name:v,hasOverride:R,activeValue:B}),y[22]=B,y[23]=R,y[24]=v,y[25]=I,y[26]=m):m=y[26],y[27]!==A||y[28]!==J||y[29]!==H?(f=J&&(0,t.jsx)("button",{type:"button",className:"text-xs text-gray-500 hover:text-gray-700 cursor-pointer shrink-0 motion-safe:transition-colors",onClick:H?()=>F(!1):A,children:H?"presets":"custom"}),y[27]=A,y[28]=J,y[29]=H,y[30]=f):f=y[30],y[31]!==f||y[32]!==m?(h=(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[m,f]}),y[31]=f,y[32]=m,y[33]=h):h=y[33],y[34]!==L?(b=L&&(0,t.jsx)("p",{className:"m-0 text-xs text-gray-500 leading-relaxed",children:L}),y[34]=L,y[35]=b):b=y[35],y[36]!==T||y[37]!==C||y[38]!==R||y[39]!==v||y[40]!==W||y[41]!==M||y[42]!==V?.label||y[43]!==H||y[44]!==z?(g=H?(0,t.jsx)(eo,{value:T,onChange:W,error:z,hasOverride:R,detectedType:S(T)}):(0,t.jsxs)(a.Select,{value:V?.label??void 0,onValueChange:e=>C(v,e),children:[(0,t.jsx)(a.SelectTrigger,{size:"sm",className:(0,d.cn)("w-full motion-safe:transition-colors",R?"border-brand-300 bg-white":"border-gray-300"),children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:(0,d.cn)("inline-block size-2 rounded-full shrink-0",R?"bg-brand-500":"bg-gray-300")}),(0,t.jsx)(a.SelectValue,{placeholder:"Choose a value"})]})}),(0,t.jsx)(a.SelectContent,{children:M.map(es)})]}),y[36]=T,y[37]=C,y[38]=R,y[39]=v,y[40]=W,y[41]=M,y[42]=V?.label,y[43]=H,y[44]=z,y[45]=g):g=y[45],y[46]!==h||y[47]!==b||y[48]!==g||y[49]!==x?(p=(0,t.jsxs)("div",{className:x,children:[h,b,g]}),y[46]=h,y[47]=b,y[48]=g,y[49]=x,y[50]=p):p=y[50],p}function es(e){return(0,t.jsxs)(a.SelectItem,{value:e.label,children:[e.label," (",N(e.value),")"]},e.label)}e.s(["TabbedModal",0,function(e){let n,l,a,o,i,u,x,m,f,h,b,g,p=(0,r.c)(35),{isOpen:y,onClose:v,title:j,tabs:N,activeTab:w,onTabChange:S,getTabCount:C,children:O,minWidth:k,maxWidth:_}=e,F=void 0===k?"min-w-[640px]":k,T=void 0===_?"sm:max-w-6xl":_;if(p[0]!==v?(n=e=>!e&&v(),p[0]=v,p[1]=n):n=p[1],p[2]!==T||p[3]!==F?(l=(0,d.cn)("flex flex-col overflow-hidden p-0 w-auto motion-safe:transition-[width,max-width] duration-200",F,T),p[2]=T,p[3]=F,p[4]=l):l=p[4],p[5]===Symbol.for("react.memo_cache_sentinel")?(a={maxHeight:"80vh"},p[5]=a):a=p[5],p[6]!==j?(o=(0,t.jsx)(s.DialogHeader,{children:(0,t.jsx)(s.DialogTitle,{className:"text-lg font-semibold",children:j})}),p[6]=j,p[7]=o):o=p[7],p[8]===Symbol.for("react.memo_cache_sentinel")?(i=(0,t.jsxs)(s.DialogClose,{className:"p-1.5 rounded-md text-gray-500 hover:text-gray-600 hover:bg-gray-100 cursor-pointer motion-safe:transition-colors",children:[(0,t.jsx)(c.FaIcon,{name:"xmark",className:"size-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]}),p[8]=i):i=p[8],p[9]!==o?(u=(0,t.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[o,i]}),p[9]=o,p[10]=u):u=p[10],p[11]!==w||p[12]!==C||p[13]!==S||p[14]!==N){let e;p[16]!==w||p[17]!==C||p[18]!==S?(e=e=>{let r=C?.(e.id)??null;return(0,t.jsxs)("button",{onClick:()=>S(e.id),className:(0,d.cn)("flex items-center gap-1.5 px-3 py-2 text-sm font-medium cursor-pointer border-b-2 motion-safe:transition-colors -mb-px whitespace-nowrap shrink-0",w===e.id?"border-gray-900 text-gray-900":"border-transparent text-gray-600 hover:text-gray-700 hover:border-gray-300"),children:[(0,t.jsx)(c.FaIcon,{name:e.icon,className:"size-3"}),(0,t.jsx)("span",{children:e.label}),null!=r&&(0,t.jsxs)("span",{className:"text-gray-500 tabular-nums",children:["(",r,")"]})]},e.id)},p[16]=w,p[17]=C,p[18]=S,p[19]=e):e=p[19],x=N.map(e),p[11]=w,p[12]=C,p[13]=S,p[14]=N,p[15]=x}else x=p[15];return p[20]!==x?(m=(0,t.jsx)("div",{className:"flex overflow-x-auto border-b border-gray-200 -mx-4 sm:-mx-6 px-4 sm:px-6",children:x}),p[20]=x,p[21]=m):m=p[21],p[22]!==m||p[23]!==u?(f=(0,t.jsxs)("div",{className:"flex flex-col gap-3 px-4 sm:px-6 pt-4 sm:pt-6 pb-0 shrink-0",children:[u,m]}),p[22]=m,p[23]=u,p[24]=f):f=p[24],p[25]!==O?(h=(0,t.jsx)("div",{className:"flex-1 overflow-y-auto px-4 sm:px-6 py-4 min-h-0",children:O}),p[25]=O,p[26]=h):h=p[26],p[27]!==f||p[28]!==h||p[29]!==l?(b=(0,t.jsxs)(s.DialogContent,{showCloseButton:!1,"aria-describedby":void 0,className:l,style:a,children:[f,h]}),p[27]=f,p[28]=h,p[29]=l,p[30]=b):b=p[30],p[31]!==y||p[32]!==b||p[33]!==n?(g=(0,t.jsx)(s.Dialog,{open:y,onOpenChange:n,children:b}),p[31]=y,p[32]=b,p[33]=n,p[34]=g):g=p[34],g}],465466),e.s(["useSortedData",0,function(e,t,r){let[l,s]=(0,n.use
2State)(t),a=(0,n.useMemo)(()=>[...e].sort((e,t)=>{let n=r(e,t,l.column);return"asc"===l.direction?n:-n}),[e,l]);return{sort:l,setSort:s,sorted:a}}],813340);let ea={Boolean:"bg-purple-100 text-purple-700",Number:"bg-blue-100 text-blue-700",JSON:"bg-green-100 text-green-700",String:"bg-gray-100 text-gray-600","Invalid JSON":"bg-red-100 text-red-700"};function eo(e){let n,l,s,a,o,i,c,u=(0,r.c)(19),{value:x,onChange:m,error:f,hasOverride:h,detectedType:b}=e;u[0]!==b?(n=b&&(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsx)("span",{className:(0,d.cn)("text-xs font-mono px-1.5 py-0.5 rounded",ea[b]),children:b})}),u[0]=b,u[1]=n):n=u[1],u[2]!==m?(l=e=>m(e.target.value),u[2]=m,u[3]=l):l=u[3],u[4]!==x?(s=x.split("\n"),u[4]=x,u[5]=s):s=u[5];let g=Math.min(Math.max(s.length,1),8),p=f?"border-red-300 focus:ring-2 focus:ring-red-500/20":h?"border-brand-300 focus:ring-2 focus:ring-brand-500/20":"border-gray-300 focus:ring-2 focus:ring-brand-500/20";return u[6]!==p?(a=(0,d.cn)("w-full px-3 py-2 text-xs font-mono rounded-md border resize-y bg-white motion-safe:transition-colors",p),u[6]=p,u[7]=a):a=u[7],u[8]!==l||u[9]!==g||u[10
2]!==a||u[11]!==x?(o=(0,t.jsx)("textarea",{value:x,onChange:l,placeholder:'e.g. true, "hello", or {"key": "value"}',rows:g,className:a}),u[8]=l,u[9]=g,u[10]=a,u[11]=x,u[12]=o):o=u[12],u[13]!==f?(i=f&&(0,t.jsx)("p",{className:"m-0 text-xs text-red-500",children:f}),u[13]=f,u[14]=i):i=u[14],u[15]!==n||u[16]!==o||u[17]!==i?(c=(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[n,o,i]}),u[15]=n,u[16]=o,u[17]=i,u[18]=c):c=u[18],c}function ei(e){let l,s,a,o,i,c,d=(0,r.c)(18),{name:u,value:x}=e,{handleCustomValueChange:m}=D();d[0]!==x?(l=()=>w(x),d[0]=x,d[1]=l):l=d[1];let[f,h]=(0,n.useState)(l),[b,g]=(0,n.useState)(null);d[2]!==m||d[3]!==u?(s=e=>{h(e);let{error:t}=m(u,e);g(t)},d[2]=m,d[3]=u,d[4]=s):s=d[4];let p=s;return d[5]!==u||d[6]!==x?(a=(0,t.jsx)(ec,{origin:void 0,name:u,hasOverride:!0,activeValue:x}),d[5]=u,d[6]=x,d[7]=a):a=d[7],d[8]!==f?(o=S(f),d[8]=f,d[9]=o):o=d[9],d[10]!==f||d[11]!==p||d[12]!==o||d[13]!==b?(i=(0,t.jsx)(eo,{value:f,onChange:p,error:b,hasOverride:!0,detectedType:o}),d[10]=f,d[11]=p,d[12]=o,d[13]=b,d[14]=i):i=d[14],d[15]!==a||d[16]!==i?(c=(0,t.jsxs)("div",{className:"flex flex-col gap-2 rounded-lg p-3 -mx-3 bg-brand-50 ring-1 ring-brand-200",children:[a,i]}),d[15]=a,d[16]=i,d[17]=c):c=d[17],c}function ec(e){let n,s,a,o,i,u,x,m,f,h,b=(0,r.c)(28),{name:g,origin:p,hasOverride:y,activeValue:v}=e,[j,N]=(0,l.useCopyToClipboard)();b[0]!==v||b[1]!==N||b[2]!==g?(n=()=>{let e=new URL(globalThis.location.href);e.searchParams.set(g,void 0===v?"":w(v)),N(e.toString())},b[0]=v,b[1]=N,b[2]=g,b[3]=n):n=b[3];let S=n,C=y?"bg-brand-500":"bg-gray-300";b[4]!==C?(s=(0,d.cn)("inline-block size-2 rounded-full shrink-0",C),b[4]=C,b[5]=s):s=b[5],b[6]!==s?(a=(0,t.jsx)("span",{className:s}),b[6]=s,b[7]=a):a=b[7];let O=y?"text-brand-700 font-semibold":"text-gray-700";b[8]!==O?(o=(0,d.cn)("text-xs font-mono",O),b[8]=O,b[9]=o):o=b[9],b[10]!==g||b[11]!==o?(i=(0,t.jsx)("code",{className:o,children:g}),b[10]=g,b[11]=o,b[12]=i):i=b[12];let k=j?"check":"copy",_=j&&"text-green-600";return b[13]!==_?(u=(0,d.cn)("size-2.5",_),b[13]=_,b[14]=u):u=b[14],b[15]!==u||b[16]!==k?(x=(0,t.jsx)(c.FaIcon,{name:k,className:u}),b[15]=u,b[16]=k,b[17]=x):x=b[17],b[18]!==S||b[19]!==x?(m=(0,t.jsx)("button",{type:"button",onClick:S,title:"Copy as query param",className:"text-gray-400 hover:text-gray-600 cursor-pointer motion-safe:transition-colors",children:x}),b[18]=S,b[19]=x,b[20]=m):m=b[20],b[21]!==p?(f=p&&(0,t.jsx)("a",{href:p,target:"_blank",rel:"noopener noreferrer",className:"text-gray-400 hover:text-gray-600 motion-safe:transition-colors",children:(0,t.jsx)(c.FaIcon,{name:"external-link-alt",className:"size-2.5"})}),b[21]=p,b[22]=f):f=b[22],b[23]!==m||b[24]!==f||b[25]!==a||b[26]!==i?(h=(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[a,i,m,f]}),b[23]=m,b[24]=f,b[25]=a,b[26]=i,b[27]=h):h=b[27],h}e.s(["default",0,function(e){let l,s,a,o,i,c,d,u,x,m,f=(0,r.c)(23),{fetchFeaturesFn:h,cookieName:b,cookieDomain:g,header:p,branch:y,extensions:v,children:j}=e;f[0]!==v?(l=void 0===v?[]:v,f[0]=v,f[1]=l):l=f[1];let N=l,[w,S]=(0,n.useState)(!1);f[2]===Symbol.for("react.memo_cache_sentinel")?(s=()=>{let e=function(e){S(!0)};return window.addEventListener("openFeatureFlagModal",e),()=>{window.removeEventListener("openFeatureFlagModal",e)}},a=[],f[2]=s,f[3]=a):(s=f[2],a=f[3]),(0,n.useEffect)(s,a),f[4]===Symbol.for("react.memo_cache_sentinel")?(o=e=>{"feature-flags"===e&&S(!0)},f[4]=o):o=f[4];let C=o;return f[5]===Symbol.for("react.memo_cache_sentinel")?(i=()=>S(!0),f[5]=i):i=f[5],f[6]===Symbol.for("react.memo_cache_sentinel")?(c=()=>S(!1),f[6]=c):c=f[6],f[7]!==w?(d=(0,t.jsx)(q,{onOpen:i,children:(0,t.jsx)(G,{isOpen:w,onClose:c})}),f[7]=w,f[8]=d):d=f[8],f[9]!==j||f[10]!==d?(u=(0,t.jsxs)(L,{children:[j,d]}),f[9]=j,f[10]=d,f[11]=u):u=f[11],f[12]!==N||f[13]!==u?(x=(0,t.jsx)(J,{staticExtensions:N,children:u}),f[12]=N,f[13]=u,f[14]=x):x=f[14],f[15]!==y||f[16]!==g||f[17]!==b||f[18]!==h||f[19]!==p||f[20]!==w||f[21]!==x?(m=(0,t.jsx)(F,{fetchFeaturesFunction:h,cookieName:b,cookieDomain:g,header:p,branch:y,isOpen:w,openExtension:C,children:x}),f[15]=y,f[16]=g,f[17]=b,f[18]=h,f[19]=p,f[20]=w,f[21]=x,f[22]=m):m=f[22],m}],503274)}]); 3 4//# debugId=2b06d0b3-923c-3251-73c3-503f05a70873 5//# sourceMappingURL=0okt8u1xf411g.js.map
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.