/*! Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one or more contributor license agreements. * Licensed under the Elastic License 2.0; you may not use this file except in compliance with the Elastic License 2.0. */ (window.securitySolution_bundle_jsonpfunction=window.securitySolution_bundle_jsonpfunction||[]).push([[8],{1059:function(e,t,n){"use strict";n.d(t,"a",(function(){return y})),n.d(t,"b",(function(){return m}));var r=n(2),i=n.n(r),s=n(4),c=n(214),a=n(108),o=n(102),l=n(5);const u=l.i18n.translate("xpack.securitySolution.containers.detectionEngine.alerts.readListsPrivileges.errorDescription",{defaultMessage:"Failed to retrieve lists privileges"}),d=l.i18n.translate("xpack.securitySolution.containers.detectionEngine.alerts.detectionEnginePrivileges.errorFetching",{defaultMessage:"Failed to retreive detection engine privileges"});var p=n(141),f=n(239);var g=n(8),b=n(17),h=n(700),O=n(1070);const y=Object(r.createContext)({listPrivileges:{loading:!1,error:void 0,result:void 0},detectionEnginePrivileges:{loading:!1,error:void 0,result:void 0},endpointPrivileges:{loading:!0,...Object(h.b)()},kibanaSecuritySolutionsPrivileges:{crud:!1,read:!1}}),m=({kibanaCapabilities:e,children:t})=>{const n=!0===e[s.tc].crud,l=!0===e[s.tc].show,[m,j]=Object(r.useState)({crud:n,read:l}),E=((e=!0)=>{const t=Object(o.i)(),{lists:n}=Object(o.j)().services,{start:i,...s}=Object(c.l)(),{addError:l}=Object(a.a)(),d=Object(r.useRef)(new AbortController);return Object(r.useEffect)((()=>{const{loading:r,result:c,error:a}=s;!e||!n||r||c||a||(d.current.abort(),d.current=new AbortController,i({http:t,signal:d.current.signal}))}),[t,n,i,s,e]),Object(r.useEffect)((()=>()=>{d.current.abort()}),[]),Object(r.useEffect)((()=>{const e=s.error;null!=e&&l(e,{title:u})}),[l,s.error]),{loading:s.loading,error:s.error,result:s.result}})(l),x=((e=!0)=>{const{start:t,...n}=Object(p.a)(Object(p.d)(f.i)),{addError:i}=Object(a.a)(),s=Object(r.useRef)(new AbortController);return Object(r.useEffect)((()=>{const{loading:r,result:i,error:c}=n;!e||r||i||c||(s.current.abort(),s.current=new AbortController,t({signal:s.current.signal}))}),[t,n,e]),Object(r.useEffect)((()=>()=>{s.current.abort()}),[]),Object(r.useEffect)((()=>{const e=n.error;null!=e&&i(e,{title:d})}),[i,n.error]),n})(l),S=(()=>{var e,t;const n=Object(p.b)(),i=Object(o.f)(),s=Object(o.j)().services.fleet,c=null===(e=Object(O.b)())||void 0===e?void 0:e.fleet,a=null!==(t=null==s?void 0:s.authz)&&void 0!==t?t:null==c?void 0:c.authz,l=Object(b.b)(),[u,d]=Object(r.useState)(!1),[f,y]=Object(r.useState)([]),m=Object(r.useMemo)((()=>{const e=!u||!i;return Object.freeze({loading:e,...e||!a||Object(g.isEmpty)(i)?Object(h.b)():Object(h.a)(l,a,f)})}),[u,i,a,l,f]);return Object(r.useEffect)((()=>{(async()=>{i&&n()&&(y(null==i?void 0:i.roles),d(!0))})()}),[n,i]),m})();return Object(r.useEffect)((()=>{j((e=>e.read!==l||e.crud!==n?{read:l,crud:n}:e))}),[n,l]),i.a.createElement(y.Provider,{value:{listPrivileges:E,detectionEnginePrivileges:x,endpointPrivileges:S,kibanaSecuritySolutionsPrivileges:m}},t)}},107:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(2);const i=e=>Object(r.useCallback)(((t="")=>{if(e)return`${e}${t?`-${t}`:""}`}),[e])},1070:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var r=n(2);const i=n.n(r).a.createContext(void 0),s=()=>Object(r.useContext)(i)},1152:function(e,t,n){"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))},1153:function(e,t,n){"use strict";var r="%[a-f0-9]{2}",i=new RegExp("("+r+")|([^%]+?)","gi"),s=new RegExp("("+r+")+","gi");function c(e,t){try{return[decodeURIComponent(e.join(""))]}catch(e){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],c(n),c(r))}function a(e){try{return decodeURIComponent(e)}catch(r){for(var t=e.match(i)||[],n=1;n{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const n=e.indexOf(t);return-1===n?[e]:[e.slice(0,n),e.slice(n+t.length)]}},126:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(2),i=n(1059);const s=()=>Object(r.useContext)(i.a)},141:function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return o}));var r=n(2);const i=()=>{const e=Object(r.useRef)(!1),t=Object(r.useCallback)((()=>e.current),[]),n=Object(r.useCallback)((()=>{e.current=!1}),[]);return Object(r.useEffect)((()=>(e.current=!0,n)),[n]),t},s=e=>{const t=i(),[n,s]=Object(r.useState)(!1),[c,a]=Object(r.useState)(),[o,l]=Object(r.useState)();return{error:c,loading:n,result:o,start:Object(r.useCallback)(((...n)=>{s(!0),l(void 0),a(void 0),e(...n).then((e=>t()&&l(e))).catch((e=>t()&&a(e))).finally((()=>t()&&s(!1)))}),[e,t])}};function c(e,t){switch(t.type){case"setResult":return{...e,result:t.result,loading:!1};case"setError":return{...e,error:t.error,loading:!1};case"load":return{loading:!0,result:void 0,error:void 0}}}const a=e=>{const t=i(),n=Object(r.useRef)(),[s,a]=Object(r.useReducer)(c,{loading:!1,error:void 0,result:void 0}),o=Object(r.useCallback)(((...r)=>{n.current&&n.current.unsubscribe(),a({type:"load"}),n.current=e(...r).subscribe((e=>{t()&&a({type:"setResult",result:e})}),(e=>{t()&&a({type:"setError",error:e})}))}),[e,t]);return Object(r.useEffect)((()=>()=>{n.current&&n.current.unsubscribe()}),[]),{result:s.result,error:s.error,loading:s.loading,start:o}},o=e=>t=>{const n=null!=t.signal?t.signal:(new AbortController).signal;return e({...t,signal:n})}},156:function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return f})),n.d(t,"u",(function(){return g})),n.d(t,"v",(function(){return b})),n.d(t,"l",(function(){return h})),n.d(t,"j",(function(){return O})),n.d(t,"m",(function(){return y})),n.d(t,"k",(function(){return m})),n.d(t,"d",(function(){return j})),n.d(t,"e",(function(){return E})),n.d(t,"h",(function(){return x})),n.d(t,"p",(function(){return S})),n.d(t,"q",(function(){return v})),n.d(t,"g",(function(){return w})),n.d(t,"n",(function(){return _})),n.d(t,"o",(function(){return T})),n.d(t,"r",(function(){return I})),n.d(t,"f",(function(){return A})),n.d(t,"i",(function(){return C})),n.d(t,"s",(function(){return L})),n.d(t,"t",(function(){return P})),n.d(t,"c",(function(){return R}));var r=n(970),i=n(324),s=n(421),c=n(120),a=n(163),o=n(538),l=n(512);const u=async e=>Object(o.pipe)(await e(),Object(l.fold)((e=>Promise.reject(e)),(e=>Promise.resolve(e)))),d=e=>e instanceof Error?e:new Error(String(e)),p=async({http:e,list:t,signal:n})=>Object(i.flow)((()=>Object(r.tryCatch)((()=>(async({http:e,list:t,signal:n})=>e.fetch(a.t,{body:JSON.stringify(t),method:"POST",signal:n}))({http:e,list:t,signal:n})),d)),Object(r.chain)((e=>Object(r.fromEither)(Object(s.c)(c.o,e)))),Object(i.flow)(u))(),f=async({http:e,listItem:t,signal:n})=>Object(i.flow)((()=>Object(r.tryCatch)((()=>(async({http:e,listItem:t,signal:n})=>e.fetch(a.q,{body:JSON.stringify(t),method:"POST",signal:n}))({http:e,listItem:t,signal:n})),d)),Object(r.chain)((e=>Object(r.fromEither)(Object(s.c)(c.n,e)))),Object(i.flow)(u))(),g=async({http:e,list:t,signal:n})=>Object(i.flow)((()=>Object(r.tryCatch)((()=>(async({http:e,list:t,signal:n})=>e.fetch(a.t,{body:JSON.stringify(t),method:"PUT",signal:n}))({http:e,list:t,signal:n})),d)),Object(r.chain)((e=>Object(r.fromEither)(Object(s.c)(c.o,e)))),Object(i.flow)(u))(),b=async({http:e,listItem:t,signal:n})=>Object(i.flow)((()=>Object(r.tryCatch)((()=>(async({http:e,listItem:t,signal:n})=>e.fetch(a.q,{body:JSON.stringify(t),method:"PUT",signal:n}))({http:e,listItem:t,signal:n})),d)),Object(r.chain)((e=>Object(r.fromEither)(Object(s.c)(c.n,e)))),Object(i.flow)(u))(),h=async({filters:e,http:t,namespaceTypes:n,pagination:o,signal:l,sort:p})=>Object(i.flow)((()=>Object(r.tryCatch)((()=>(async({http:e,filters:t,namespaceTypes:n,pagination:r,signal:i,sort:s})=>{const c={filter:t||void 0,namespace_type:n,page:r.page?`${r.page}`:"1",per_page:r.perPage?`${r.perPage}`:"20",sort_field:null!=s&&s.field?null==s?void 0:s.field:"exception-list.created_at",sort_order:null!=s&&s.order?null==s?void 0:s.order:"desc"};return e.fetch(`${a.t}/_find`,{method:"GET",query:c,signal:i})})({filters:e,http:t,namespaceTypes:n,pagination:o,signal:l,sort:p})),d)),Object(r.chain)((e=>Object(r.fromEither)(Object(s.c)(c.t,e)))),Object(i.flow)(u))(),O=async({http:e,id:t,namespaceType:n,signal:o})=>Object(i.flow)((()=>Object(r.tryCatch)((()=>(async({http:e,id:t,namespaceType:n,signal:r})=>e.fetch(a.t,{method:"GET",query:{id:t,namespace_type:n},signal:r}))({http:e,id:t,namespaceType:n,signal:o})),d)),Object(r.chain)((e=>Object(r.fromEither)(Object(s.c)(c.o,e)))),Object(i.flow)(u))(),y=async({filter:e,http:t,listIds:n,namespaceTypes:o,pagination:l,search:p,signal:f})=>Object(i.flow)((()=>Object(r.tryCatch)((()=>(async({http:e,listIds:t,namespaceTypes:n,filter:r,pagination:i,search:s,signal:c})=>{const o={list_id:t.join(","),namespace_type:n.join(","),page:i.page?`${i.page}`:"1",per_page:i.perPage?`${i.perPage}`:"20",search:s,sort_field:"exception-list.created_at",sort_order:"desc",filter:r};return e.fetch(`${a.q}/_find`,{method:"GET",query:o,signal:c})})({filter:e,http:t,listIds:n,namespaceTypes:o,pagination:l,search:p,signal:f})),d)),Object(r.chain)((e=>Object(r.fromEither)(Object(s.c)(c.s,e)))),Object(i.flow)(u))(),m=async({http:e,id:t,namespaceType:n,signal:o})=>Object(i.flow)((()=>Object(r.tryCatch)((()=>(async({http:e,id:t,namespaceType:n,signal:r})=>e.fetch(a.q,{method:"GET",query:{id:t,namespace_type:n},signal:r}))({http:e,id:t,namespaceType:n,signal:o})),d)),Object(r.chain)((e=>Object(r.fromEither)(Object(s.c)(c.n,e)))),Object(i.flow)(u))(),j=async({http:e,id:t,namespaceType:n,signal:o})=>Object(i.flow)((()=>Object(r.tryCatch)((()=>(async({http:e,id:t,namespaceType:n,signal:r})=>e.fetch(a.t,{method:"DELETE",query:{id:t,namespace_type:n},signal:r}))({http:e,id:t,namespaceType:n,signal:o})),d)),Object(r.chain)((e=>Object(r.fromEither)(Object(s.c)(c.o,e)))),Object(i.flow)(u))(),E=async({http:e,id:t,namespaceType:n,signal:o})=>Object(i.flow)((()=>Object(r.tryCatch)((()=>(async({http:e,id:t,namespaceType:n,signal:r})=>e.fetch(a.q,{method:"DELETE",query:{id:t,namespace_type:n},signal:r}))({http:e,id:t,namespaceType:n,signal:o})),d)),Object(r.chain)((e=>Object(r.fromEither)(Object(s.c)(c.n,e)))),Object(i.flow)(u))(),x=async({http:e,id:t,includeExpiredExceptions:n,listId:r,namespaceType:i,signal:s})=>e.fetch(`${a.t}/_export`,{method:"POST",query:{id:t,list_id:r,namespace_type:i,include_expired_exceptions:n},signal:s}),S=async({alias:e,chunkSize:t,exceptionListIds:n,excludeExceptions:r,http:i,signal:s})=>i.fetch(a.p,{method:"POST",body:JSON.stringify({exception_list_ids:n,type:"exception_list_ids",alias:e,exclude_exceptions:r,chunk_size:t}),signal:s}),v=async({exceptions:e,alias:t,excludeExceptions:n,http:r,chunkSize:i,signal:s})=>r.fetch(a.p,{method:"POST",body:JSON.stringify({exceptions:e,type:"exception_items",alias:t,exclude_exceptions:n,chunk_size:i}),signal:s}),w=async({http:e,includeExpiredExceptions:t,listId:n,namespaceType:r,signal:i})=>e.fetch(`${a.t}/_duplicate`,{method:"POST",query:{list_id:n,namespace_type:r,include_expired_exceptions:t},signal:i}),_=async({cursor:e,http:t,pageIndex:n,pageSize:l,signal:p,sortField:f,sortOrder:g})=>Object(o.pipe)({cursor:null!=e?e.toString():void 0,page:null!=n?n.toString():void 0,per_page:null!=l?l.toString():void 0,sort_field:null!=f?f.toString():void 0,sort_order:g},(e=>Object(r.fromEither)(Object(s.c)(c.r,e))),Object(r.chain)((e=>Object(r.tryCatch)((()=>(async({http:e,cursor:t,page:n,per_page:r,signal:i,sort_field:s,sort_order:c})=>e.fetch(`${a.z}/_find`,{method:"GET",query:{cursor:t,page:n,per_page:r,sort_field:s,sort_order:c},signal:i}))({http:t,signal:p,...e})),d))),Object(r.chain)((e=>Object(r.fromEither)(Object(s.c)(c.u,e)))),Object(i.flow)(u)),T=async({cursor:e,http:t,pageIndex:n,pageSize:l,signal:p})=>Object(o.pipe)({cursor:null!=e?e.toString():void 0,page:null!=n?n.toString():void 0,per_page:null!=l?l.toString():void 0},(e=>Object(r.fromEither)(Object(s.c)(c.r,e))),Object(r.chain)((e=>Object(r.tryCatch)((()=>(async({http:e,cursor:t,page:n,per_page:r,signal:i})=>e.fetch(`${a.u}`,{method:"GET",query:{cursor:t,page:n,per_page:r},signal:i}))({http:t,signal:p,...e})),d))),Object(r.chain)((e=>Object(r.fromEither)(Object(s.c)(c.v,e)))),Object(i.flow)(u)),I=async({file:e,http:t,listId:n,type:i,signal:l})=>Object(o.pipe)({list_id:n,type:i},(e=>Object(r.fromEither)(Object(s.c)(c.w,e))),Object(r.chain)((t=>Object(o.pipe)(Object(r.fromEither)(Object(s.c)(c.x,{file:e})),Object(r.map)((e=>({...e,...t})))))),Object(r.chain)((e=>Object(r.tryCatch)((()=>(async({file:e,http:t,list_id:n,type:r,signal:i})=>{const s=new FormData;return s.append("file",e),t.fetch(`${a.x}/_import`,{body:s,headers:{"Content-Type":void 0},method:"POST",query:{list_id:n,type:r},signal:i})})({http:t,signal:l,...e})),d))),Object(r.chain)((e=>Object(r.fromEither)(Object(s.c)(c.A,e)))),u),A=async({deleteReferences:e,http:t,id:n,ignoreReferences:l,signal:p})=>Object(o.pipe)({deleteReferences:e,id:n,ignoreReferences:l},(e=>Object(r.fromEither)(Object(s.c)(c.j,e))),Object(r.chain)((e=>Object(r.tryCatch)((()=>(async({deleteReferences:e=!1,http:t,id:n,ignoreReferences:r=!1,signal:i})=>t.fetch(a.z,{method:"DELETE",query:{deleteReferences:e,id:n,ignoreReferences:r},signal:i}))({http:t,signal:p,...e})),d))),Object(r.chain)((e=>Object(r.fromEither)(Object(s.c)(c.A,e)))),Object(i.flow)(u)),C=async({http:e,listId:t,signal:n})=>Object(o.pipe)({list_id:t},(e=>Object(r.fromEither)(Object(s.c)(c.q,e))),Object(r.chain)((t=>Object(r.tryCatch)((()=>(async({http:e,list_id:t,signal:n})=>e.fetch(`${a.x}/_export`,{method:"POST",query:{list_id:t},signal:n}))({http:e,signal:n,...t})),d))),Object(i.flow)(u)),L=async({http:e,signal:t})=>Object(i.flow)((()=>Object(r.tryCatch)((()=>(async({http:e,signal:t})=>e.fetch(a.w,{method:"GET",signal:t}))({http:e,signal:t})),d)),Object(r.chain)((e=>Object(r.fromEither)(Object(s.c)(c.z,e)))),Object(i.flow)(u))(),P=async({http:e,signal:t})=>e.fetch(a.y,{method:"GET",signal:t}),R=async({http:e,signal:t})=>Object(i.flow)((()=>Object(r.tryCatch)((()=>(async({http:e,signal:t})=>e.fetch(a.w,{method:"POST",signal:t}))({http:e,signal:t})),d)),Object(r.chain)((e=>Object(r.fromEither)(Object(s.c)(c.e,e)))),Object(i.flow)(u))()},174:function(e,t,n){"use strict";n.d(t,"d",(function(){return i})),n.d(t,"g",(function(){return s})),n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return l})),n.d(t,"e",(function(){return u})),n.d(t,"f",(function(){return d}));var r=n(47);const i=e=>null!=e.id?e:{...e,id:Object(r.v4)()},s=e=>{const t=e;if(null!=t.id){const{id:e,...n}=t;return n}return e};var c=n(5);let a,o,l;c.i18n.translate("utils.filename.wildcardWarning",{defaultMessage:"Using wildcards in file paths can impact Endpoint performance"}),c.i18n.translate("utils.filename.pathWarning",{defaultMessage:"Path may be formed incorrectly; verify value"}),function(e){e.HASH="process.hash.*",e.PATH="process.executable.caseless",e.SIGNER="process.Ext.code_signature"}(a||(a={})),function(e){e.HASH=".hash.",e.EXECUTABLE=".executable.caseless",e.PATH=".path",e.SIGNER=".Ext.code_signature"}(o||(o={})),function(e){e.LINUX="linux",e.MAC="macos",e.WINDOWS="windows"}(l||(l={}));const u=({os:e,type:t,value:n})=>{const r=e===l.WINDOWS?"\\":"/",i=n.split(r).pop();if(i)return"wildcard"!==t||1===(i.split("*").length||i.split("?").length)},d=({os:e,field:t,type:n,value:r})=>!["process.executable.caseless","file.path","file.path.text"].includes(t)||("wildcard"===n?e===l.WINDOWS?f(r):g(r):p({value:r,os:e})),p=({os:e,value:t})=>e===l.WINDOWS?/^[a-z]:(?:|\\\\[^<>:"'/\\|?*]+\\[^<>:"'/\\|?*]+|%\w+%|)[\\](?:[^<>:"'/\\|?*]+[\\/])*([^<>:"'/\\|?*])+$/i.test(t):/^(\/|(\/[\w\-]+)+|\/[\w\-]+\.[\w]+|(\/[\w-]+)+\/[\w\-]+\.[\w]+)$/i.test(t),f=e=>{const t=e[0],n=e.slice(-1),r=e.trim(),i=/\//.test(r);return 0!==e.length&&!(i||r.length!==e.length||"^"===t||"\\"===n||!b({path:e,isWindowsPath:!0}))},g=e=>{const t=e[0],n=e.slice(-1),r=e.trim();return 0!==e.length&&!(r.length!==e.length||"/"!==t||"/"===n||e.length>1024==1||!0===e.includes("//")||!b({path:e,isWindowsPath:!1}))},b=({path:e,isWindowsPath:t})=>{for(const n of e.split(t?"\\":"/"))if(!0===/[\*|\?]+/.test(n))return!0;return!1}},185:function(e,t,n){"use strict";let r,i,s,c,a,o,l;n.d(t,"e",(function(){return r})),n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return c})),n.d(t,"f",(function(){return a})),n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return l})),function(e){e.windows="windows",e.mac="mac",e.linux="linux"}(r||(r={})),function(e){e.is="is",e.matches="matches"}(i||(i={})),function(e){e.enrolled="enrolled",e.unenrolled="unenrolled"}(s||(s={})),function(e){e.UNHEALTHY="unhealthy",e.HEALTHY="healthy",e.OFFLINE="offline",e.UPDATING="updating",e.INACTIVE="inactive",e.UNENROLLED="unenrolled"}(c||(c={})),function(e){e.detect="detect",e.prevent="prevent",e.off="off"}(a||(a={})),function(e){e.success="success",e.failure="failure",e.warning="warning",e.unsupported="unsupported"}(o||(o={})),function(e){e.ENROLLED_AT="enrolled_at",e.HOSTNAME="metadata.host.hostname",e.HOST_STATUS="host_status",e.POLICY_NAME="metadata.Endpoint.policy.applied.name",e.POLICY_STATUS="metadata.Endpoint.policy.applied.status",e.HOST_OS_NAME="metadata.host.os.name",e.HOST_IP="metadata.host.ip",e.AGENT_VERSION="metadata.agent.version",e.LAST_SEEN="last_checkin"}(l||(l={}))},195:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(42);const i=e=>Object(r.isEmpty)(e)?"":`${null!=e&&e.startsWith("?")?e:`?${e}`}`},210:function(e,t,n){"use strict";n.d(t,"q",(function(){return s})),n.d(t,"o",(function(){return c})),n.d(t,"p",(function(){return a})),n.d(t,"g",(function(){return l})),n.d(t,"f",(function(){return u})),n.d(t,"b",(function(){return b})),n.d(t,"a",(function(){return h})),n.d(t,"h",(function(){return S})),n.d(t,"i",(function(){return v})),n.d(t,"m",(function(){return x})),n.d(t,"n",(function(){return w})),n.d(t,"c",(function(){return I})),n.d(t,"k",(function(){return A})),n.d(t,"l",(function(){return C})),n.d(t,"d",(function(){return L})),n.d(t,"e",(function(){return P})),n.d(t,"j",(function(){return N}));var r=n(5),i=n(120);const s={message:r.i18n.translate("lists.exceptions.isOperatorLabel",{defaultMessage:"is"}),operator:i.c.INCLUDED,type:i.d.MATCH,value:"is"},c={message:r.i18n.translate("lists.exceptions.isNotOperatorLabel",{defaultMessage:"is not"}),operator:i.c.EXCLUDED,type:i.d.MATCH,value:"is_not"},a={message:r.i18n.translate("lists.exceptions.isOneOfOperatorLabel",{defaultMessage:"is one of"}),operator:i.c.INCLUDED,type:i.d.MATCH_ANY,value:"is_one_of"},o={message:r.i18n.translate("lists.exceptions.isNotOneOfOperatorLabel",{defaultMessage:"is not one of"}),operator:i.c.EXCLUDED,type:i.d.MATCH_ANY,value:"is_not_one_of"},l={message:r.i18n.translate("lists.exceptions.existsOperatorLabel",{defaultMessage:"exists"}),operator:i.c.INCLUDED,type:i.d.EXISTS,value:"exists"},u={message:r.i18n.translate("lists.exceptions.doesNotExistOperatorLabel",{defaultMessage:"does not exist"}),operator:i.c.EXCLUDED,type:i.d.EXISTS,value:"does_not_exist"},d={message:r.i18n.translate("lists.exceptions.isInListOperatorLabel",{defaultMessage:"is in list"}),operator:i.c.INCLUDED,type:i.d.LIST,value:"is_in_list"},p={message:r.i18n.translate("lists.exceptions.isNotInListOperatorLabel",{defaultMessage:"is not in list"}),operator:i.c.EXCLUDED,type:i.d.LIST,value:"is_not_in_list"},f={message:r.i18n.translate("lists.exceptions.matchesOperatorLabel",{defaultMessage:"matches"}),operator:i.c.INCLUDED,type:i.d.WILDCARD,value:"matches"},g={message:r.i18n.translate("lists.exceptions.doesNotMatchOperatorLabel",{defaultMessage:"does not match"}),operator:i.c.EXCLUDED,type:i.d.WILDCARD,value:"does_not_match"},b=[s,c,a,o,f],h=[s,c,a,o,l,u,d,p,f,g];var O=n(163);const y=O.r,m=O.s;var j=n(8),E=n(42);const x=({namespaceType:e})=>e.map((e=>(({namespaceType:e})=>"agnostic"===e?m:y)({namespaceType:e}))),S=({filters:e,namespaceTypes:t,hideLists:n})=>{const r=x({namespaceType:t}),i=((e,t)=>Object.keys(e).map((n=>{const r=Object(E.get)(n,e);return Object(j.isArray)(r)||null!=r&&""!==r.trim()?`(${t.map((e=>{const t="name"===n?"name.text":"types"===n?"type":n;return Object(j.isArray)(r)?r.map((n=>`${e}.attributes.${t}:${n}`)).join(" OR "):`${e}.attributes.${t}:${r}`})).join(" OR ")})`:null})).filter((e=>null!=e)).join(" AND "))(e,r);return[i,...n.map((e=>`(${r.map((t=>`not ${t}.attributes.list_id: ${e}*`)).join(" AND ")})`))].filter((e=>""!==e.trim())).join(" AND ")},v=({lists:e,showDetection:t,showEndpoint:n})=>e.filter((e=>t?"detection"===e.type:!n||"endpoint"===e.type)).reduce(((e,{listId:t,namespaceType:n})=>({ids:[...e.ids,t],namespaces:[...e.namespaces,n]})),{ids:[],namespaces:[]}),w=e=>e.filter((({type:e})=>"list"===e)).length>0;var _=n(47),T=n(174);n(421),n(49),n(374);const I=e=>e.map((e=>"nested"===e.type?Object(T.d)({...e,entries:e.entries.map((e=>Object(T.d)(e)))}):Object(T.d)(e))),A=({listId:e,namespaceType:t,name:n})=>({comments:[],description:"Exception list item",entries:I([{field:"",operator:"included",type:"match",value:""}]),item_id:void 0,list_id:e,meta:{temporaryUuid:Object(_.v4)()},name:n,namespace_type:t,tags:[],type:"simple"}),C=e=>{switch(e.type){case"match":return i.d.MATCH;case"match_any":return i.d.MATCH_ANY;case"wildcard":return i.d.WILDCARD;case"list":return i.d.LIST;default:return i.d.EXISTS}},L=e=>{const t=(new Date).toISOString();return e.map((e=>`${e}.attributes.expire_time > "${t}" OR NOT ${e}.attributes.expire_time: *`)).join(",")},P=e=>{const t=(new Date).toISOString();return e.map((e=>`${e}.attributes.expire_time <= "${t}"`)).join(",")},R=e=>{let t=e.match(/.ds-(.*?)-[0-9]{4}\.[0-9]{2}\.[0-9]{2}-[0-9]{6}/);return t&&2===t.length?t[1]:(t=e.match(/.siem-(.*?)-[0-9]{6}/),t&&2===t.length?`.siem-${t[1]}`:e)},N=e=>{if(!e.conflictDescriptions)return null;const t=[];for(const[n,r]of Object.entries(e.conflictDescriptions)){const e=[],i={};r.forEach((e=>{const t=R(e);i[t]||(i[t]=0),i[t]++}));for(const[t,n]of Object.entries(i))e.push({name:t,count:n});e.sort(((e,t)=>t.count-e.count)),t.push({type:n,totalIndexCount:r.length,groupedIndices:e})}return t}},214:function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return p})),n.d(t,"d",(function(){return b})),n.d(t,"e",(function(){return O})),n.d(t,"f",(function(){return m})),n.d(t,"g",(function(){return x})),n.d(t,"h",(function(){return v})),n.d(t,"i",(function(){return _})),n.d(t,"j",(function(){return I})),n.d(t,"k",(function(){return C})),n.d(t,"l",(function(){return P}));var r=n(324),i=n(174);const s=e=>Object(r.flow)(c)(e),c=e=>{const t=e.entries.map((e=>"nested"===e.type?Object(i.d)({...e,entries:e.entries.map((e=>Object(i.d)(e)))}):Object(i.d)(e)));return{...e,entries:t}},a=e=>{const{entries:t}=e,n=t.map((e=>"nested"===e.type?Object(i.g)({...e,entries:e.entries.map((e=>Object(i.g)(e)))}):Object(i.g)(e)));return{...e,entries:n}},o=e=>{const{comments:t}=e;if(!t||!t.length)return e;const n=t.map((({comment:e,id:t})=>({comment:e,id:t})));return{...e,comments:n}};var l=n(2),u=n(156),d=n(210);const p=e=>Object(l.useMemo)((()=>({async addExceptionListItem({listItem:t}){const n=new AbortController,i=(s=t,Object(r.flow)(a)(s));var s;return u.b({http:e,listItem:i,signal:n.signal})},async deleteExceptionItem({id:t,namespaceType:n,onSuccess:r,onError:i}){const s=new AbortController;try{await u.e({http:e,id:t,namespaceType:n,signal:s.signal}),r()}catch(e){i(e)}},async deleteExceptionList({id:t,namespaceType:n,onSuccess:r,onError:i}){const s=new AbortController;try{await u.d({http:e,id:t,namespaceType:n,signal:s.signal}),r()}catch(e){i(e)}},async duplicateExceptionList({includeExpiredExceptions:t,listId:n,namespaceType:r,onError:i,onSuccess:s}){const c=new AbortController;try{s(await u.g({http:e,includeExpiredExceptions:t,listId:n,namespaceType:r,signal:c.signal}))}catch(e){i(e)}},async exportExceptionList({id:t,includeExpiredExceptions:n,listId:r,namespaceType:i,onError:s,onSuccess:c}){const a=new AbortController;try{c(await u.h({http:e,id:t,includeExpiredExceptions:n,listId:r,namespaceType:i,signal:a.signal}))}catch(e){s(e)}},async getExceptionItem({id:t,namespaceType:n,onSuccess:r,onError:i}){const c=new AbortController;try{r(s(await u.k({http:e,id:t,namespaceType:n,signal:c.signal})))}catch(e){i(e)}},async getExceptionList({id:t,namespaceType:n,onSuccess:r,onError:i}){const s=new AbortController;try{r(await u.j({http:e,id:t,namespaceType:n,signal:s.signal}))}catch(e){i(e)}},async getExceptionListsItems({lists:t,filter:n,pagination:r,showDetectionsListsOnly:i,showEndpointListsOnly:c,onSuccess:a,onError:o}){const l=new AbortController,{ids:p,namespaces:f}=Object(d.i)({lists:t,showDetection:i,showEndpoint:c});try{if(p.length>0&&f.length>0){const{data:t,page:i,per_page:c,total:o}=await u.m({filter:n,http:e,listIds:p,namespaceTypes:f,pagination:r,signal:l.signal});a({exceptions:t.map((e=>s(e))),pagination:{page:i,perPage:c,total:o}})}else a({exceptions:[],pagination:{page:0,perPage:null!=r.perPage?r.perPage:0,total:0}})}catch(e){o(e)}},async getExceptionFilterFromIds({exceptionListIds:t,chunkSize:n,alias:r,excludeExceptions:i,onSuccess:s,onError:c}){const a=new AbortController;try{const{filter:c}=await u.p({http:e,exceptionListIds:t,signal:a.signal,chunkSize:n,alias:r,excludeExceptions:i});s(c)}catch(e){c(e)}},async getExceptionFilterFromExceptions({exceptions:t,chunkSize:n,alias:r,excludeExceptions:i,onSuccess:s,onError:c}){const a=new AbortController;try{const{filter:c}=await u.q({http:e,exceptions:t,signal:a.signal,chunkSize:n,alias:r,excludeExceptions:i});s(c)}catch(e){c(e)}},async updateExceptionListItem({listItem:t}){const n=new AbortController,i=(s=t,Object(r.flow)(o,a)(s));var s;return u.v({http:e,listItem:i,signal:n.signal})}})),[e]);var f=n(141);const g=Object(f.d)(u.c),b=()=>Object(f.a)(g),h=e=>JSON.stringify(e),O=({pageIndex:e,pageSize:t})=>{const[n,r]=Object(l.useState)({}),i=Object(l.useCallback)((i=>{r({...n,[h({pageIndex:e+1,pageSize:t})]:i})}),[e,t]);let s;for(let r=e;r>=0&&(s=n[h({pageIndex:r,pageSize:t})],!s);r--);return[s,i]},y=Object(f.d)(u.f),m=()=>Object(f.a)(y),j={page:1,perPage:20,total:0},E={field:"created_at",order:"desc"},x=({errorMessage:e,http:t,initialPagination:n=j,filterOptions:r={},namespaceTypes:i,notifications:s,hideLists:c=[],initialSort:a=E})=>{const[o,p]=Object(l.useState)([]),[f,g]=Object(l.useState)(n),[b,h]=Object(l.useState)(a),[O,y]=Object(l.useState)(!0),m=Object(l.useRef)(),x=Object(l.useMemo)((()=>i.join(",")),[i]),S=Object(l.useMemo)((()=>Object(d.h)({filters:r,namespaceTypes:i,hideLists:c})),[i,r,c]),v=Object(l.useCallback)((async()=>{try{y(!0),m.current=new AbortController;const{page:e,per_page:n,total:r,data:i}=await Object(u.l)({filters:S,http:t,namespaceTypes:x,pagination:{page:f.page,perPage:f.perPage},sort:b,signal:m.current.signal});g({page:e,perPage:n,total:r}),p(i),y(!1)}catch(t){"AbortError"!==t.name&&(s.toasts.addError(t,{title:e}),p([]),g(j),y(!1))}}),[e,S,t,x,s.toasts,f.page,f.perPage,b]);return Object(l.useEffect)((()=>(v(),()=>{var e;null===(e=m.current)||void 0===e||e.abort()})),[v]),[O,o,f,g,v,b,h]},S=(Object(f.d)(u.i),Object(f.d)(u.n)),v=()=>Object(f.a)(S),w=Object(f.d)(u.o),_=()=>Object(f.a)(w),T=Object(f.d)(u.r),I=()=>Object(f.a)(T),A=Object(f.d)(u.s),C=()=>Object(f.a)(A),L=Object(f.d)(u.t),P=()=>Object(f.a)(L)},215:function(e,t,n){"use strict";n.d(t,"z",(function(){return s})),n.d(t,"A",(function(){return c})),n.d(t,"B",(function(){return a})),n.d(t,"u",(function(){return o})),n.d(t,"q",(function(){return u})),n.d(t,"p",(function(){return d})),n.d(t,"t",(function(){return p})),n.d(t,"g",(function(){return f})),n.d(t,"v",(function(){return g})),n.d(t,"f",(function(){return b})),n.d(t,"r",(function(){return h})),n.d(t,"x",(function(){return O})),n.d(t,"o",(function(){return y})),n.d(t,"s",(function(){return m})),n.d(t,"w",(function(){return j})),n.d(t,"n",(function(){return E})),n.d(t,"m",(function(){return x})),n.d(t,"y",(function(){return S})),n.d(t,"e",(function(){return v})),n.d(t,"c",(function(){return w})),n.d(t,"b",(function(){return _})),n.d(t,"a",(function(){return T})),n.d(t,"d",(function(){return I})),n.d(t,"i",(function(){return A})),n.d(t,"h",(function(){return C})),n.d(t,"j",(function(){return L})),n.d(t,"k",(function(){return P})),n.d(t,"l",(function(){return R}));var r=n(65),i=n(185);const s="logs-endpoint.events.*",c="metrics-endpoint.metadata_current_*",a="endpoint.metadata_current-default",o=".metrics-endpoint.metadata_united_default",l=(Object(r.getFileMetadataIndexName)("endpoint"),Object(r.getFileDataIndexName)("endpoint"),"/api/endpoint"),u=`${l}/metadata`,d=`${u}/{id}`,p=`${l}/metadata/transforms`,f=`${l}/policy_response`,g=`${l}/suggestions/{suggestion_type}`,b=`${l}/action`,h=`${b}/isolate`,O=`${b}/unisolate`,y=`${b}/running_procs`,m=`${b}/kill_process`,j=`${b}/suspend_process`,E=`${b}/get_file`,x=`${b}/execute`,S=`${b}/upload`,v=`${l}/action_status`,w=`${b}/{action_id}`,_=`${b}/{action_id}/file/{file_id}`,T=`${b}/{action_id}/file/{file_id}/download`,I=`${b}/state`,A=i.a.ENROLLED_AT,C="desc",L={ES_CONNECTION_ERROR:-272,OUTPUT_SERVER_ERROR:-273},P="endpointFields",R="endpointSearchStrategy"},239:function(e,t,n){"use strict";n.d(t,"e",(function(){return l})),n.d(t,"k",(function(){return u})),n.d(t,"j",(function(){return d})),n.d(t,"h",(function(){return p})),n.d(t,"a",(function(){return f})),n.d(t,"i",(function(){return g})),n.d(t,"d",(function(){return b})),n.d(t,"b",(function(){return h})),n.d(t,"c",(function(){return O})),n.d(t,"f",(function(){return y})),n.d(t,"g",(function(){return m}));var r=n(63),i=n(4),s=n(215),c=n(102),a=n(759),o=n(706);const l=async({query:e,signal:t})=>c.b.get().http.fetch(i.db,{method:"POST",body:JSON.stringify(e),signal:t}),u=async({query:e,status:t,signal:n})=>c.b.get().http.fetch(i.ib,{method:"POST",body:JSON.stringify({conflicts:"proceed",status:t,query:e}),signal:n}),d=async({signalIds:e,status:t,signal:n})=>c.b.get().http.fetch(i.ib,{method:"POST",body:JSON.stringify({status:t,signal_ids:e}),signal:n}),p=async({signal:e})=>c.b.get().http.fetch(i.bb,{method:"GET",signal:e}),f=async({signal:e})=>c.b.get().http.fetch(i.Z,{method:"GET",signal:e}),g=async({signal:e})=>c.b.get().http.fetch(i.cb,{method:"GET",signal:e}),b=async({signal:e})=>c.b.get().http.fetch(i.bb,{method:"POST",signal:e}),h=async({endpointId:e,comment:t="",caseIds:n})=>Object(a.a)({endpoint_ids:[e],comment:t,case_ids:n}),O=async({endpointId:e,comment:t="",caseIds:n})=>Object(a.b)({endpoint_ids:[e],comment:t,case_ids:n}),y=async({alertId:e,owner:t})=>c.b.get().http.fetch(Object(r.getCasesFromAlertsUrl)(e),{method:"get",query:{...t.length>0?{owner:t}:{}}}),m=async({agentId:e,signal:t})=>c.b.get().http.fetch(Object(o.a)(s.p,{id:e}),{method:"GET",signal:t,version:"2023-10-31"})},478:function(e,t,n){"use strict";const r=n(1152),i=n(1153),s=n(1154);function c(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function a(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function o(e,t){return t.decode?i(e):e}function l(e){return Array.isArray(e)?e.sort():"object"==typeof e?l(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function u(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function d(e){const t=(e=u(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function p(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function f(e,t){c((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const i="string"==typeof n&&n.split("").indexOf(e.arrayFormatSeparator)>-1?n.split(e.arrayFormatSeparator).map((t=>o(t,e))):null===n?n:o(n,e);r[t]=i};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const i of e.split("&")){let[e,c]=s(t.decode?i.replace(/\+/g," "):i,"=");c=void 0===c?null:["comma","separator"].includes(t.arrayFormat)?c:o(c,t),n(o(e,t),c,r)}for(const e of Object.keys(r)){const n=r[e];if("object"==typeof n&&null!==n)for(const e of Object.keys(n))n[e]=p(n[e],t);else r[e]=p(n,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce(((e,t)=>{const n=r[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=l(n):e[t]=n,e}),Object.create(null))}t.extract=d,t.parse=f,t.stringify=(e,t)=>{if(!e)return"";c((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const n=n=>t.skipNull&&null==e[n]||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const i=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[a(t,e),"[",i,"]"].join("")]:[...n,[a(t,e),"[",a(i,e),"]=",a(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[a(t,e),"[]"].join("")]:[...n,[a(t,e),"[]=",a(r,e)].join("")];case"comma":case"separator":return t=>(n,r)=>null==r||0===r.length?n:0===n.length?[[a(t,e),"=",a(r,e)].join("")]:[[n,a(r,e)].join(e.arrayFormatSeparator)];default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,a(t,e)]:[...n,[a(t,e),"=",a(r,e)].join("")]}}(t),i={};for(const t of Object.keys(e))n(t)||(i[t]=e[t]);const s=Object.keys(i);return!1!==t.sort&&s.sort(t.sort),s.map((n=>{const i=e[n];return void 0===i?"":null===i?a(n,t):Array.isArray(i)?i.reduce(r(n),[]).join("&"):a(n,t)+"="+a(i,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[n,r]=s(e,"#");return Object.assign({url:n.split("?")[0]||"",query:f(d(e),t)},t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:o(r,t)}:{})},t.stringifyUrl=(e,n)=>{n=Object.assign({encode:!0,strict:!0},n);const r=u(e.url).split("?")[0]||"",i=t.extract(e.url),s=t.parse(i,{sort:!1}),c=Object.assign(s,e.query);let o=t.stringify(c,n);o&&(o=`?${o}`);let l=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(l=`#${a(e.fragmentIdentifier,n)}`),`${r}${o}${l}`}},700:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return c}));var r=n(8),i=n(493);function s(e,t){var n,r,i;return null!==(n=null===(r=e.packagePrivileges)||void 0===r||null===(i=r.endpoint)||void 0===i?void 0:i.actions[t].executePackageAction)&&void 0!==n&&n}const c=(e,t,n=[])=>{var c;const a=e.isPlatinumPlus(),o=e.isEnterprise(),l=n.includes("superuser"),u=s(t,"writeSecuritySolution"),d=s(t,"readSecuritySolution"),p=s(t,"writeEndpointList"),f=s(t,"readEndpointList"),g=s(t,"writePolicyManagement"),b=s(t,"readPolicyManagement"),h=s(t,"writeActionsLogManagement"),O=s(t,"readActionsLogManagement"),y=s(t,"writeHostIsolation"),m=s(t,"writeHostIsolationRelease"),j=s(t,"writeProcessOperations"),E=s(t,"writeTrustedApplications"),x=s(t,"readTrustedApplications"),S=s(t,"writeHostIsolationExceptions"),v=s(t,"readHostIsolationExceptions"),w=s(t,"accessHostIsolationExceptions"),_=s(t,"deleteHostIsolationExceptions"),T=s(t,"writeBlocklist"),I=s(t,"readBlocklist"),A=s(t,"writeEventFilters"),C=s(t,"readEventFilters"),L=s(t,"writeFileOperations"),P=s(t,"writeExecuteOperations"),R={canWriteSecuritySolution:u,canReadSecuritySolution:d,canAccessFleet:null!==(c=null==t?void 0:t.fleet.all)&&void 0!==c&&c,canAccessEndpointManagement:l,canCreateArtifactsByPolicy:a,canWriteEndpointList:p,canReadEndpointList:f,canWritePolicyManagement:g,canReadPolicyManagement:b,canWriteActionsLogManagement:h,canReadActionsLogManagement:O&&o,canAccessEndpointActionsLogManagement:O&&a,canIsolateHost:y&&a,canUnIsolateHost:m,canKillProcess:j&&o,canSuspendProcess:j&&o,canGetRunningProcesses:j&&o,canAccessResponseConsole:!1,canWriteExecuteOperations:P&&o,canWriteFileOperations:L&&o,canWriteTrustedApplications:E,canReadTrustedApplications:x,canWriteHostIsolationExceptions:S&&a,canAccessHostIsolationExceptions:w&&a,canReadHostIsolationExceptions:v,canDeleteHostIsolationExceptions:_,canWriteBlocklist:T,canReadBlocklist:I,canWriteEventFilters:A,canReadEventFilters:C};return R.canAccessResponseConsole=o&&Object.values(Object(r.omit)(i.g,"release")).some((e=>R[e])),R},a=()=>({canWriteSecuritySolution:!1,canReadSecuritySolution:!1,canAccessFleet:!1,canAccessEndpointActionsLogManagement:!1,canAccessEndpointManagement:!1,canCreateArtifactsByPolicy:!1,canWriteEndpointList:!1,canReadEndpointList:!1,canWritePolicyManagement:!1,canReadPolicyManagement:!1,canWriteActionsLogManagement:!1,canReadActionsLogManagement:!1,canIsolateHost:!1,canUnIsolateHost:!1,canKillProcess:!1,canSuspendProcess:!1,canGetRunningProcesses:!1,canAccessResponseConsole:!1,canWriteFileOperations:!1,canWriteExecuteOperations:!1,canWriteTrustedApplications:!1,canReadTrustedApplications:!1,canWriteHostIsolationExceptions:!1,canAccessHostIsolationExceptions:!1,canReadHostIsolationExceptions:!1,canDeleteHostIsolationExceptions:!1,canWriteBlocklist:!1,canReadBlocklist:!1,canWriteEventFilters:!1,canReadEventFilters:!1})},706:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=(e,t)=>Object.keys(t).reduce(((e,n)=>e.replace(new RegExp(`\\{${n}\\}`,"g"),String(t[n]))),e)},759:function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return c}));var r=n(102),i=n(215);const s=async e=>r.b.get().http.post(i.r,{body:JSON.stringify(e),version:"2023-10-31"}),c=async e=>r.b.get().http.post(i.x,{body:JSON.stringify(e),version:"2023-10-31"})}}]);