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]="47d53c4f-c39b-c73c-f041-a22f12ee006d")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,483254,e=>{"use strict";var t=e.i(283599),a=e.i(462651),r=e.i(148014),n=e.i(344105);try{var s=window;s._sentryModuleMetadata=s._sentryModuleMetadata||{},s._sentryModuleMetadata[(new s.Error).stack]=Object.assign({},s._sentryModuleMetadata[(new s.Error).stack],{"_sentryBundlerPluginAppKey:sentry-app-cloudsmith-key-prod-2025":!0})}catch(e){}let o=async({flags:e,workspace:t,accessToken:a,clientHeaders:s})=>{let o=new URLSearchParams({flags:e.join(",")});return await (0,n.apiFetcher)(`/orgs/${t}/feature-flags/check/?${o.toString()}`,(0,r.jwtAuthHeader)(a),{clientHeaders:s})};try{var i=window;i._sentryModuleMetadata=i._sentryModuleMetadata||{},i._sentryModuleMetadata[(new i.Error).stack]=Object.assign({},i._sentryModuleMetadata[(new i.Error).stack],{"_sentryBundlerPluginAppKey:sentry-app-cloudsmith-key-prod-2025":!0})}catch(e){}e.s(["useFlags",0,({accessToken:e,workspace:r,flags:n,enabled:s=!0})=>{let{data:i,error:c,isLoading:l}=(0,t.default)(s&&e&&r?["flags",e,r,...n]:null,async()=>(0,a.dataOrThrow)(await o({flags:n,workspace:r,accessToken:e})),{revalidateOnFocus:!1,revalidateIfStale:!1});return{data:i,isLoading:l,error:c}}],483254)},337714,e=>{"use strict";try{var t=window;t._sentryModuleMetadata=t._sentryModuleMetadata||{},t._sentryModuleMetadata[(new t.Error).stack]=Object.assign({},t._sentryModuleMetadata[(new t.Error).stack],{"_sentryBundlerPluginAppKey:sentry-app-cloudsmith-key-prod-2025":!0})}catch(e){}e.s(["flags",0,{bulk_actions:"bulk_actions",connected_repositories:"connected_repositories",enable_saml:"enable_saml",enable_policy_simulation:"enable_policy_simulation",extended_sync_pipeline:"extended_sync_pipeline",huggingface_upstream:"huggingface_upstream",index_controls:"index_controls",metadata_search:"metadata_search",no_package_license:"license_compliance_enabled",observability_client_logs:"observability_client_logs",package_format_huggingface:"package_format_huggingface",package_format_nix:"package_format_nix",package_summary_endpoint:"package_summary_endpoint",private_broadcasts:"private_broadcasts",ui_kv_metadata:"ui_kv_metadata",ui_osv_vulnerabilities:"ui_osv_vulnerabilities",ui_package_status_updates:"ui_package_status_updates",ui_webapp_saml:"ui_webapp_saml",upstream_trust:"upstream_trust",ui_llm_policy_generator:"ui_llm_policy_generator",user_token_policy:"user_token_policy"}])},551744,e=>{"use strict";e.i(959187);var t=e.i(462651);try{var a=window;a._sentryModuleMetadata=a._sentryModuleMetadata||{},a._sentryModuleMetadata[(new a.Error).stack]=Object.assign({},a._sentryModuleMetadata[(new a.Error).stack],{"_sentryBundlerPluginAppKey:sentry-app-cloudsmith-key-prod-2025":!0})}catch(e){}let r=e=>`${e.name}-${e.args.join("-")}`,n=new WeakMap,s=(e,t)=>{let a=(e=>{let t=n?.get(e);if(t)return t;let a=new Map;for(let t of e){let e=r(t);a.set(e,t)}return n?.set(e,a),a})(t),s=r(e);return a.get(s)||null};e.s(["createPermission",0,e=>t=>e(t),"findPermission",0,s,"isPermissibleWithResolvedPermissions",0,(e,t,a=()=>{})=>{let r=s(e,t);return r?!!r&&r.permissible:(a(e),!1)},"isValidPermission",0,e=>"object"==typeof e&&e&&e.name&&e.args,"mergePermissions",0,(e,t)=>{let a=new Map;for(let t of e)a.set(r(t),t);let n=!1;for(let e of t){let t=r(e),s=a.get(t);s&&s.permissible===e.permissible||(n=!0),a.set(t,e)}return n?[...a.values()]:e},"permissionKey",0,r,"permissionsFromResult",0,e=>(0,t.dataOrFallback)(e,{permissions:[]}).permissions.map(e=>({...e,permissible:e.permissible??!1}))])},217942,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(745009),n=e.i(675752),s=e.i(154387),o=e.i(551744);try{var i=window;i._sentryModuleMetadata=i._sentryModuleMetadata||{},i._sentryModuleMetadata[(new i.Error).stack]=Object.assign({},i._sentryModuleMetadata[(new i.Error).stack],{"_sentryBundlerPluginAppKey:sentry-app-cloudsmith-key-prod-2025":!0})}catch(e){}let c=(0,a.createContext)({permissions:[],mounted:!1}),l=()=>(0,a.useContext)(c),d=({children:e,permissions:r=[]}
2)=>{let{user:i}=(0,s.useAuth)(),d=(0,a.useRef)([]),u=(0,a.useRef)(null),p=(0,a.useRef)(new Set),[y,m]=(0,a.useState)(r),{mounted:h,addPermissions:g}=l(),_=(0,a.useCallback)(e=>{m(t=>(0,o.mergePermissions)(t,e))},[]);(0,a.useEffect)(()=>()=>{null!==u.current&&(clearTimeout(u.current),u.current=null),d.current=[],p.current.clear()},[]);let w=(0,a.useCallback)(async()=>{let e=d.current;if(d.current=[],u.current=null,0!==e.length)try{let t=await (0,n.fetchPermissions)({permissions:e,accessToken:i.accessToken,clientHeaders:null});_((0,o.permissionsFromResult)(t))}finally{e.forEach(e=>p.current.delete((0,o.permissionKey)(e)))}},[i.accessToken,_]),f=(0,a.useCallback)(e=>{if(!(0,o.isValidPermission)(e))return;let t=(0,o.permissionKey)(e);p.current.has(t)||(p.current.add(t),d.current.push(e),null!==u.current&&clearTimeout(u.current),u.current=setTimeout(w,50))},[w]),M=(0,a.useCallback)(e=>(0,o.findPermission)(e,y),[y]),v=(0,a.useCallback)(e=>(0,o.isPermissibleWithResolvedPermissions)(e,y,f),[y,f]);return((0,a.useEffect)(()=>{h&&g(r)},[h,g,r]),h)?e:(0,t.jsx)(c.Provider,{value:{loadPermission:f,findPermission:M,addPermissions:_,isPermissible:v,mounted:!0},children:e})};d.propTypes={children:r.default.node.isRequired,permissions:r.default.arrayOf(r.default.shape({name:r.default.string.isRequired,permissible:r.default.bool.isRequired}))},e.s(["default",0,d,"usePermissions",0,l])},122285,e=>{"use strict";var t=e.i(843476),a=e.i(271645);try{var r=window;r._sentryModuleMetadata=r._sentryModuleMetadata||{},r._sentryModuleMetadata[(new r.Error).stack]=Object.assign({},r._sentryModuleMetadata[(new r.Error).stack],{"_sentryBundlerPluginAppKey:sentry-app-cloudsmith-key-prod-2025":!0})}catch(e){}let n=(0,a.createContext)(void 0);e.s(["default",0,({children:e})=>{let[r,s]=(0,a.useState)([]),o=(0,a.useMemo)(()=>r.filter(e=>e.active),[r]);return(0,t.jsxs)(n.Provider,{value:{dispatchAction:e=>{let t=Date.now().toString();s(a=>[...a.filter(e=>e.active),{action:e,active:!0,uid:t}])}},children:[e,o.map(({action:e,uid:r})=>(0,t.jsx)(a.default.Fragment,{children:e({isActive:!0,close:()=>{s(e=>e.map(e=>e.uid===r?{...e,active:!1}:e))}})},r))]})},"useDispatchAction",0,()=>{let e=(0,a.useContext)(n);if(!e)throw Error("useDispatchAction must be used within a DispatchActionProvider");return e}])},283102,e=>{"use strict";try{var t=window;t._sentryModuleMetadata=t._sentryModuleMetadata||{},t._sentryModuleMetadata[(new t.Error).stack]=Object.assign({},t._sentryModuleMetadata[(new t.Error).stack],{"_sentryBundlerPluginAppKey:sentry-app-cloudsmith-key-prod-2025":!0})}catch(e){}e.s(["CURRENT_WORKSPACE",0,"csm-current-workspace","PREFERENCES_KEY",0,"csm-preferences","SAML_WORKSPACE",0,"csm-saml-workspace","SEARCH_HISTORY",0,"csm-search-history","UI_THEME",0,"csm-ui-theme","UTM_PARAMS",0,"utm-params"])},877824,e=>{"use strict";try{var t=window;t._sentryModuleMetadata=t._sentryModuleMetadata||{},t._sentryModuleMetadata[(new t.Error).stack]=Object.assign({},t._sentryModuleMetadata[(new t.Error).stack],{"_sentryBundlerPluginAppKey:sentry-app-cloudsmith-key-prod-2025":!0})}catch(e){}e.s(["CHANGELOG_URL",0,"https://cloudsmith.com/changelog","CONTACT_URL",0,"https://cloudsmith.com/company/contact-us","DOCS_API_URL",0,"https://docs.cloudsmith.com/api","DOCS_CLI_URL",0,"https://docs.cloudsmith.com/developer-tools/cli","DOCS_URL",0,"https://docs.cloudsmith.com","ENTITLEMENT_TOKENS_HELP_URL",0,"https://docs.cloudsmith.com/software-distribution/entitlement-tokens","EPM_HELP_URL",0,"https://docs.cloudsmith.com/supply-chain-security/policy-as-code","GUIDES_URL",0,"https://docs.cloudsmith.com/guides","INDIVIDUAL_PRIVACY_POLICY_URL",0,"https://cloudsmith.com/privacy-policy","INDIVIDUAL_TERMS_OF_SERVICE_URL",0,"https://cloudsmith.com/terms-conditions","LOG_EXPORT_DOCS_URL",0,"https://docs.cloudsmith.com/logs-and-observability/client-logs","MARKDOWN_CHEATSHEET_URL",0,"https://www.markdownguide.org/cheat-sheet/","OG_ARRAY_DOCS_URL",0,"https://ogp.me/#array","OG_TYPES_DOCS_URL",0,"https://ogp.me/#types","OPEN_SOURCE_PROJECT_URL",0,"https://docs.cloudsmith.com/resources/open-source-hosting-policy","PRICING_URL",0,"https://cloudsmith.com/pricing","SEARCH_PACKAGES_HELP_URL",0,"https://docs.cloudsmith.com/artifact-management/search-filter-sort-packages","STATUS_URL",0,"https://status.cloudsmith.com","TEMPLATE_VARIABLES_DOCS_URL",0,"https://docs.cloudsmith.com/software-distribution/broadcasts/broadcasts-customization","TWITTER_CARDS_DOCS_URL",0,"https://developer.x.com/en/docs/x-for-websites/cards/overview/abouts-cards","WEBHOOKS_HELP_URL",0,"https://docs.cloudsmith.com/developer-tools/webhooks"])},782628,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(745009);e.i(564159);var n=e.i(587562),s=e.i(877824);try{var o=window;o._sentryModuleMetadata=o._sentryModuleMetadata||{},o._sentryModuleMetadata[(new o.Error).stack]=Object.assign({},o._sentryModuleMetadata[(new o.Error).stack],{"_sentryBundlerPluginAppKey:sentry-app-cloudsmith-key-prod-2025":!0})}catch(e){}let i=(0,a.createContext)(),c=({children:e})=>{let[r,o]=(0,a.useState)(!1),[c,l]=(0,a.useState)(!1),[d,u]=(0,a.useState)(0),p=(0,a.useRef)(!1),{sendToastNotification:y}=(0,n.useToastNotification)();return(0,a.useEffect)(()=>
2{if(!r||!window.zE||p.current)return;window.zE("messenger:on","unreadMessages",e=>{u(e)});let e=()=>l(!0),t=()=>l(!1);return window.zE("messenger:on","open",e),window.zE("messenger:on","close",t),p.current=!0,()=>{try{window.zE("messenger:off","unreadMessages"),window.zE("messenger:off","open",e),window.zE("messenger:off","close",t)}catch(e){}p.current=!1}},[r]),(0,t.jsx)(i.Provider,{value:{isZendeskLoaded:r,isZendeskOpen:c,unreadCount:d,handleZendeskLoaded:()=>{o(!0),document.body.setAttribute("data-chat-widget",!0)},handleZendeskFailure:()=>{o(!1),y({title:"Zendesk Issue",message:"Failed to log in to Zendesk",type:"error"})},openZendesk:()=>{r&&void 0!==window.zE?(window.zE("messenger","open"),l(!0)):window.open(s.CONTACT_URL,"_blank")},closeZendesk:function(){r&&window.zE&&(l(!1),window.zE("messenger","close"))}},children:e})};c.propTypes={children:r.default.node.isRequired},e.s(["ThirdPartyScriptsProvider",0,c,"default",0,c,"useThirdPartyScripts",0,()=>(0,a.useContext)(i)])},155487,e=>{"use strict";var t=e.i(271645),a=e.i(313027);try{var r="u">typeof window?window:e.g;r._sentryModuleMetadata=r._sentryModuleMetadata||{},r._sentryModuleMetadata[(new r.Error).stack]=Object.assign({},r._sentryModuleMetadata[(new r.Error).stack],{"_sentryBundlerPluginAppKey:sentry-app-cloudsmith-key-prod-2025":!0})}catch(e){}var n={notify(){},get:()=>[]},s="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement,o="u">typeof navigator&&"ReactNative"===navigator.product,i=s||o?t.useLayoutEffect:t.useEffect;function c(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}var l=Symbol.for("react-redux-context"),d="u">typeof globalThis?globalThis:{},u=function(){if(!t.createContext)return{};let e=d[l]??=new Map,a=e.get(t.createContext);return a||(a=t.createContext(null),e.set(t.createContext,a)),a}();function p(e=u){return function(){return t.useContext(e)}}var y=p();function m(e=u){let t=e===u?y:p(e),a=()=>{let{store:e}=t();return e};return Object.assign(a,{withTypes:()=>a}),a}var h=m(),g=function(e=u){let t=e===u?h:m(e),a=()=>t().dispatch;return Object.assign(a,{withTypes:()=>a}),a}(),_=(e,t)=>e===t,w=function(e=u){let r=e===u?y:p(e),n=(e,n={})=>{let{equalityFn:s=_}="function"==typeof n?{equalityFn:n}:n,{store:o,subscription:i,getServerState:c}=r();t.useRef(!0);let l=t.useCallback({[e.name]:t=>e(t)}[e.name],[e]),d=(0,a.useSyncExternalStoreWithSelector)(i.addNestedSub,o.getState,c||o.getState,l,s);return t.useDebugValue(d),d};return Object.assign(n,{withTypes:()=>n}),n}();e.s(["Provider",0,function(e){let{children:a,context:r,serverState:s,store:o}=e,c=t.useMemo(()=>{let e=function(e){let t,a=n,r=0,s=!1;function o(){l.onStateChange&&l.onStateChange()}function i(){if(r++,!t){let r,n;t=e.subscribe(o),r=null,n=null,a={clear(){r=null,n=null},notify(){let e=r;for(;e;)e.callback(),e=e.next},get(){let e=[],t=r;for(;t;)e.push(t),t=t.next;return e},subscribe(e){let t=!0,a=n={callback:e,next:null,prev:n};return a.prev?a.prev.next=a:r=a,function(){t&&null!==r&&(t=!1,a.next?a.next.prev=a.prev:n=a.prev,a.prev?a.prev.next=a.next:r=a.next)}}}}}function c(){r--,t&&0===r&&(t(),t=void 0,a.clear(),a=n)}let l={addNestedSub:function(e){i();let t=a.subscribe(e),r=!1;return()=>{r||(r=!0,t(),c())}},notifyNestedSubs:function(){a.notify()},handleChangeWrapper:o,isSubscribed:function(){return s},trySubscribe:function(){s||(s=!0,i())},tryUnsubscribe:function(){s&&(s=!1,c())},getListeners:()=>a};return l}(o);return{store:o,subscription:e,getServerState:s?()=>s:void 0}},[o,s]),l=t.useMemo(()=>o.getState(),[o]);i(()=>{let{subscription:e}=c;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),l!==o.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[c,l]);let d=r||u;return t.createElement(d.Provider,{value:c},a)},"ReactReduxContext",0,u,"batch",0,function(e){e()},"shallowEqual",0,function(e,t){if(c(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;let a=Object.keys(e),r=Object.keys(t);if(a.length!==r.length)return!1;for(let r=0;r<a.length;r++)if(!Object.prototype.hasOwnProperty.call(t,a[r])||!c(e[a[r]],t[a[r]]))return!1;return!0},"useDispatch",0,g,"useSelector",0,w,"useStore",0,h])},620191,e=>{"use strict";var t=e.i(164645),a=e.i(283102);try{var r=window;r._sentryModuleMetadata=r._sentryModuleMetadata||{},r._sentryModuleMetadata[(new r.Error).stack]=Object.assign({},r._sentryModuleMetadata[(new r.Error).stack],{"_sentryBundlerPluginAppKey:sentry-app-cloudsmith-key-prod-2025":!0})}catch(e){}let n={theme:localStorage.getItem(a.UI_THEME)||"system"},s=(0,t.createSlice)({name:"theming",initialState:n,reducers:{setTheme:(e,t)=>
2{e.theme=t.payload}}}),{setTheme:o}=s.actions,i=s.reducer;e.s(["default",0,i,"setTheme",0,o])},511474,e=>{"use strict";var t=e.i(271645);try{var a="u">typeof window?window:e.g;a._sentryModuleMetadata=a._sentryModuleMetadata||{},a._sentryModuleMetadata[(new a.Error).stack]=Object.assign({},a._sentryModuleMetadata[(new a.Error).stack],{"_sentryBundlerPluginAppKey:sentry-app-cloudsmith-key-prod-2025":!0})}catch(e){}var r={303:"Multiple adapter contexts detected. This might happen in monorepos.",404:"nuqs requires an adapter to work with your framework.",409:"Multiple versions of the library are loaded. This may lead to unexpected behavior. Currently using `%s`, but `%s` (via the %s adapter) was about to load on top.",414:"Max safe URL length exceeded. Some browsers may not be able to accept this URL. Consider limiting the amount of state stored in the URL.",429:"URL update rate-limited by the browser. Consider increasing `throttleMs` for key(s) `%s`. %O",500:"Empty search params cache. Search params can't be accessed in Layouts.",501:"Search params cache already populated. Have you called `parse` twice?"};function n(e){return`[nuqs] ${r[e]} 3 See https://err.47ng.com/NUQS-${e}`}var s=function(){try{if("u"<typeof localStorage)return!1;let e="nuqs-localStorage-test";localStorage.setItem(e,e);let t=localStorage.getItem(e)===e;if(localStorage.removeItem(e),!t)return!1}catch(e){return console.error("[nuqs]: debug mode is disabled (localStorage unavailable).",e),!1}return(localStorage.getItem("debug")??"").includes("nuqs")}(),o=(0,t.createContext)({useAdapter(){throw Error(n(404))}});o.displayName="NuqsAdapterContext",s&&"u">typeof window&&(window.__NuqsAdapterContext&&window.__NuqsAdapterContext!==o&&console.error(n(303)),window.__NuqsAdapterContext=o),e.s(["createAdapterProvider",0,function(e){return({children:a,...r})=>(0,t.createElement)(o.Provider,{...r,value:{useAdapter:e}},a)},"debug",0,function(e,...t){if(!s)return;let a=function(e,...t){return e.replace(/%[sfdO]/g,e=>{let a=t.shift();return"%O"===e&&a?JSON.stringify(a).replace(/"([^"]+)":/g,"$1:"):String(a)})}(e,...t);performance.mark(a);try{console.log(e,...t)}catch(e){console.log(a)}},"error",0,n,"renderQueryString",0,function(e){if(0===e.size)return"";let t=[];for(let[a,r]of e.entries()){let e=a.replace(/#/g,"%23").replace(/&/g,"%26").replace(/\+/g,"%2B").replace(/=/g,"%3D").replace(/\?/g,"%3F");t.push(`${e}=${r.replace(/%/g,"%25").replace(/\+/g,"%2B").replace(/ /g,"+").replace(/#/g,"%23").replace(/&/g,"%26").replace(/"/g,"%22").replace(/'/g,"%27").replace(/`/g,"%60").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/[\x00-\x1F]/g,e=>encodeURIComponent(e))}`)}return"?"+t.join("&")},"useAdapter",0,function(){let e=(0,t.useContext)(o);if(!("useAdapter"in e))throw Error(n(404));return e.useAdapter()},"warn",0,function(e,...t){s&&console.warn(e,...t)}])},194700,e=>{"use strict";var t=e.i(148014),a=e.i(344105),r=e.i(462651),n=e.i(280440),s=e.i(195640);try{var o=window;o._sentryModuleMetadata=o._sentryModuleMetadata||{},o._sentryModuleMetadata[(new o.Error).stack]=Object.assign({},o._sentryModuleMetadata[(new o.Error).stack],{"_sentryBundlerPluginAppKey:sentry-app-cloudsmith-key-prod-2025":!0})}catch(e){}let i=async({accessToken:e,currentPassword:r,newPassword:n,confirmNewPassword:s})=>await (0,a.apiFetcher)("/user/password/",(0,t.jwtAuthHeader)(e),{method:"PUT",body:JSON.stringify({new_password:n,current_password:r,confirm_new_password:s})}),c=async({accessToken:e})=>await (0,a.apiFetcher)("/user/totp/enable/",(0,t.jwtAuthHeader)(e),{method:"POST"}),l=async({accessToken:e,token:r})=>await (0,a.apiFetcher)("/user/totp/disable/",(0,t.jwtAuthHeader)(e),{method:"POST",body:JSON.stringify({token:r}),ignoreOutput:!0}),d=async({accessToken:e,token:r})=>await (0,a.apiFetcher)("/user/totp/confirm/",(0,t.jwtAuthHeader)(e),{method:"POST",body:JSON.stringify({token:r}),ignoreOutput:!0}),u=async({accessToken:e})=>await (0,a.apiFetcher)("/user/totp/backup/enable/",(0,t.jwtAuthHeader)(e),{method:"POST"}),p=async({accessToken:e})=>await (0,a.apiFetcher)("/user/totp/backup/disable/",(0,t.jwtAuthHeader)(e),{method:"POST",ignoreOutput:!0}),y=async({accessToken:e,subscribe_all:r})=>await (0,a.apiFetcher)("/user/profile/",(0,t.jwtAuthHeader)(e),{method:"PATCH",body:JSON.stringify({subscribe_all:r,subscribe_blog:r,subscribe_newsletter:r})}),m=async({accessToken:e,email:r})=>await (0,a.apiFetcher)("/user/emails/",(0,t.jwtAuthHeader)(e),{method:"POST",body:JSON.stringify({email:r})}),h=async({accessToken:e,identifier:r})=>await (0,a.apiFetcher)(`/user/emails/${r}/`,(0,t.jwtAuthHeader)(e),{method:"DELETE",ignoreOutput:!0}),g=async({accessToken:e,identifier:r})=>await (0,a.apiFetcher)(`/user/emails/${r}/`,(0,t.jwtAuthHeader)(e),{method:"PUT",body:JSON.stringify({primary:!0})}),_=async({accessToken:e,identifier:r})=>await (0,a.apiFetcher)(`/user/emails/${r}/resend-confirmation/`,(0,t.jwtAuthHeader)(e),{method:"POST",ignoreOutput:!0}),w=async({accessToken:e,...r})=>await (0,a.apiFetcher)("/user/profile/",(0,t.jwtAuthHeader)(e),{method:"PATCH",body:JSON.stringify(r)}),f=async({accessToken:e,slug:r})=>await (0,a.apiFetcher)("/user/slug/",(0,t.jwtAuthHeader)(e),{method:"PATCH",body:JSON.stringify({slug:r})}),M=async({accessToken:e})=>await (0,a.apiFetcher)("/user/delete/",(0,t.jwtAuthHeader)(e),{method:"POST",ignoreOutput:!0}),v=async({accessToken:e,address:r})=>await (0,a.apiFetcher)("/user/token/restrictions/",(0,t.jwtAuthHeader)(e),{method:"POST",body:JSON.stringify({cidr:r})}),b=async({accessToken:e,identifier:r})=>await (0,a.apiFetcher)(`/user/token/restrictions/${r}/`,(0,t.jwtAuthHeader)(e),{method:"DELETE",ignoreOutput:!0}),E=async({accessToken:e,identifier:r,address:n})=>await (0,a.apiFetcher)(`/user/token/restrictions/${r}/`,(0,t.jwtAuthHeader)(e),{method:"PUT",body:JSON.stringify({cidr:n})}),P=async({accessToken:e,...r})=>await (0,a.apiFetcher)("/user/additional-onboarding-actions/",(0,t.jwtAuthHeader)(e),{method:"PATCH",body:JSON.stringify(r)}),C=async()=>await (0,a.apiFetcher)("/api/update-session/",{},{method:"POST",headers:(0,t.csrfTokenHeader)((0,n.getCsrfTokenFromMeta)())},null),k=async({accessToken:e,slug:n,page:o,pageSize:i,clientHeaders:c})=>{let l=null!=o&&null!=i,d=l?`?${new URLSearchParams({page:o,page_size:i}).toString()}`:"",u=await (0,a.apiFetcher)(`/orgs/${d}`,(0,t.jwtAuthHeader)(e),{clientHeaders:c});return await (0,r.withData)(u,async t=>{let a=l?t.items:t,o=(0,r.flattenResults)(await Promise.all(a.map(t=>(0,s.fetchMember)({accessToken:e,slugPerm:n,workspace:t.slug,clientHeaders:c}).then(e=>({...e,data:e.data?{...e.data,workspace:t.slug}:e.data})))),{strict:!1}),i=a.map(e=>
3{let t=o.data.find(t=>t?.workspace===e.slug);return{...e,role:t?.role}});return(0,r.fromData)(l?{items:i,pagination:t.pagination}:i)})},A=async({accessToken:e,clientHeaders:n})=>{let s=await (0,a.apiFetcher)("/user/invites",(0,t.jwtAuthHeader)(e),{clientHeaders:n});return(0,r.withData)(s,e=>(0,r.fromData)(e.results))},S=async({accessToken:e,slugPerm:r,workspace:n})=>await (0,a.apiFetcher)(`/orgs/${n}/members/${r}/`,(0,t.jwtAuthHeader)(e),{method:"DELETE",ignoreOutput:!0}),O=async({accessToken:e,clientHeaders:r})=>await (0,a.apiFetcher)("/user/default-org/",(0,t.jwtAuthHeader)(e),{clientHeaders:r}),T=async({accessToken:e,workspaceSlug:r})=>await (0,a.apiFetcher)("/user/default-org/",(0,t.jwtAuthHeader)(e),{method:"PATCH",body:JSON.stringify({org_slug:r})}),R=async({accessToken:e,inviteId:r})=>await (0,a.apiFetcher)(`/user/invites/${r}/accept/`,(0,t.jwtAuthHeader)(e),{method:"POST",ignoreOutput:!0}),L=async({accessToken:e,inviteId:r})=>await (0,a.apiFetcher)(`/user/invites/${r}/reject/`,(0,t.jwtAuthHeader)(e),{method:"POST",ignoreOutput:!0}),I=async({accessToken:e})=>await (0,a.apiFetcher)("/client-ip/check/",(0,t.jwtAuthHeader)(e),{}),U=async({accessToken:e})=>await (0,a.apiFetcher)("/api/logout-other-sessions/",{},{method:"POST",headers:(0,t.csrfTokenHeader)((0,n.getCsrfTokenFromMeta)()),body:JSON.stringify({accessToken:e})},null),D=async({accessToken:e})=>await (0,a.apiFetcher)("/user/tokens/",(0,t.jwtAuthHeader)(e),{method:"POST"}),F=async({accessToken:e,slugPerm:r})=>await (0,a.apiFetcher)(`/user/tokens/${r}/refresh/`,(0,t.jwtAuthHeader)(e),{method:"PUT"}),x=async({email:e})=>await (0,a.apiFetcher)("/api/reset-request/",{},{method:"POST",headers:(0,t.csrfTokenHeader)((0,n.getCsrfTokenFromMeta)()),body:JSON.stringify({email:e})},null),j=async({key:e,password:r})=>await (0,a.apiFetcher)("/api/reset-password/",{},{method:"POST",headers:(0,t.csrfTokenHeader)((0,n.getCsrfTokenFromMeta)()),body:JSON.stringify({key:e,password:r})},null);e.s(["acceptWorkspaceInvite",0,R,"addEmailForCurrentUser",0,m,"addRestrictionForCurrentUser",0,v,"confirmTotpForCurrentUser",0,d,"createPersonalApiKey",0,D,"deleteCurrentUser",0,M,"deleteEmailForCurrentUser",0,h,"deleteRestrictionForCurrentUser",0,b,"disableBackupCodesForCurrentUser",0,p,"disableTotpForCurrentUser",0,l,"editRestrictionForCurrentUser",0,E,"enableBackupCodesForCurrentUser",0,u,"enableTotpForCurrentUser",0,c,"fetchDefaultWorkspace",0,O,"fetchMemberships",0,k,"fetchUserInvites",0,A,"getLocalIPAddress",0,I,"leaveWorkspace",0,S,"logoutOtherSessions",0,U,"rejectWorkspaceInvite",0,L,"renameSlugForCurrentUser",0,f,"requestPasswordReset",0,x,"resendVerificationEmailForCurrentUser",0,_,"resetPassword",0,j,"rotatePersonalApiKey",0,F,"setDefaultWorkspace",0,T,"setPrimaryEmailForCurrentUser",0,g,"updateMarketingPreferencesForUser",0,y,"updateOnboardingActions",0,P,"updatePasswordForCurrentUser",0,i,"updateProfileForCurrentUser",0,w,"updateSessionForCurrentUser",0,C])},764502,e=>{"use strict";var t=e.i(843476),a=e.i(271645);try{var r=window;r._sentryModuleMetadata=r._sentryModuleMetadata||{},r._sentryModuleMetadata[(new r.Error).stack]=Object.assign({},r._sentryModuleMetadata[(new r.Error).stack],{"_sentryBundlerPluginAppKey:sentry-app-cloudsmith-key-prod-2025":!0})}catch(e){}let n=(0,a.createContext)(void 0);e.s(["TimezoneProvider",0,({children:e,isLocal:r})=>{let[s,o]=(0,a.useState)(r??!1);return(0,t.jsx)(n.Provider,{value:{isLocalTime:s,toggleTimezone:()=>o(e=>!e)},children:e})},"useTimezone",0,()=>{let e=(0,a.useContext)(n);if(!e)throw Error("useTimezone must be used within TimezoneProvider");return e}])},95854,e=>{"use strict";var t=e.i(164645);try{var a=window;a._sentryModuleMetadata=a._sentryModuleMetadata||{},a._sentryModuleMetadata[(new a.Error).stack]=Object.assign({},a._sentryModuleMetadata[(new a.Error).stack],{"_sentryBundlerPluginAppKey:sentry-app-cloudsmith-key-prod-2025":!0})}catch(e){}let r=(0,t.createSlice)({name:"onboarding",initialState:{popoverOpen:!1,tourStepIndex:0,context:{}},reducers:{setPopoverOpen(e,t){e.popoverOpen=t.payload},setActiveCategoryId(e,t){t.payload!==e.activeCategoryId&&(e.activeStepId=void 0,e.activeCategoryId=t.payload)},setActiveStepId(e,t){e.activeStepId=t.payload},setTourStepId(e,t){e.tourStepId=t.payload,e.tourStepIndex=0},setTourStepIndex(e,t){e.tourStepIndex=t.payload},setOnboardingContext(e,t){e.context=t.payload}}}),{setPopoverOpen:n,setActiveCategoryId:s,setActiveStepId:o,setTourStepId:i,setTourStepIndex:c,setOnboardingContext:l}=r.actions,d=r.reducer;e.s(["default",0,d,"setActiveCategoryId",0,s,"setActiveStepId",0,o,"setOnboardingContext",0,l,"setPopoverOpen",0,n,"setTourStepId",0,i,"setTourStepIndex",0,c])},345570,e=>{"use strict";e.i(95854);try{var t=window;t._sentryModuleMetadata=t._sentryModuleMetadata||{},t._sentryModuleMetadata[(new t.Error).stack]=Object.assign({},t._sentryModuleMetadata[(new t.Error).stack],{"_sentryBundlerPluginAppKey:sentry-app-cloudsmith-key-prod-2025":!0})}catch(e){}e.s([])},185172,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(745009);try{var n=window;n._sentryModuleMetadata=n._sentryModuleMetadata||{},n._sentryModuleMetadata[(new n.Error).stack]=Object.assign({},n._sentryModuleMetadata[(new n.Error).stack],{"_sentryBundlerPluginAppKey:sentry-app-cloudsmith-key-prod-2025":!0})}catch(e){}let s=(0,a.createContext)(),o=({children:e})=>{let[r,n]=(0,a.useState)(!1);return(0,t.jsx)(s.Provider,{value:{isMainMenuOpen:r,setIsMainMenuOpen:n,openMainMenu:()=>n(!0),closeMainMenu:()=>n(!1)},children:e})};o.propTypes={isMainMenuOpen:r.default.bool,setIsMainMenuOpen:r.default.func,openMainMenu:r.default.func,closeMainMenu:r.default.func},e.s(["MainMenuProvider",0,o,"default",0,o,"useMainMenu",0,()=>(0,a.useContext)(s)])},643134,e=>{"use strict";var t=e.i(148014),a=e.i(344105),r=e.i(462651);try{var n=window;n._sentryModuleMetadata=n._sentryModuleMetadata||{},n._sentryModuleMetadata[(new n.Error).stack]=Object.assign({},n._sentryModuleMetadata[(new n.Error).stack],{"_sentryBundlerPluginAppKey:sentry-app-cloudsmith-key-prod-2025":!0})}catch(e){}let s=[{id:"exact-allowlist-exemption",iconIndex:6,rego:'# METADATA\n# title: Exact allowlist exemption\n# description: Match packages that are explicitly allowlisted by format, name, and version.\npackage cloudsmith\n\ndefault match := false\n\npkg := input.v0.package\n\nallowlist := {\n "python:example-lib:1.2.3",\n "npm:example-ui:4.5.6",\n}\n\nformat_name_version := sprintf("%s:%s:%s", [pkg.format, pkg.name, pkg.version]
3)\n\nmatch if format_name_version in allowlist\n\nreason contains sprintf("Matched by allowlist: %s", [format_name_version]) if match\n',name:"Exact allowlist exemption",description:"Match packages that are explicitly allowlisted by format, name, and version",category:"",tags:[],visibility:{docs:!1,webapp:!0},version:"1.0.0",author:"Cloudsmith"},{id:"blocklist",iconIndex:5,rego:'# METADATA\n# title: Blocklist\n# description: Match packages that are blocklisted by format and name, or by format, name, and version.\npackage cloudsmith\n\ndefault match := false\n\npkg := input.v0.package\n\nblocklist := {\n "npm:compromised-ui",\n "python:malicious-lib:0.1.0",\n}\n\nformat_name := sprintf("%s:%s", [pkg.format, pkg.name])\nformat_name_version := sprintf("%s:%s:%s", [pkg.format, pkg.name, pkg.version])\n\nmatched contains format_name if format_name in blocklist\nmatched contains format_name_version if format_name_version in blocklist\n\nmatch if count(matched) > 0\n\nreason contains sprintf("Matched by blocklist: %v", [matched]) if match\n',name:"Blocklist",description:"Match packages that are blocklisted by format and name, or by format, name, and version",category:"",tags:[],visibility:{docs:!1,webapp:!0},version:"1.0.0",author:"Cloudsmith"},{id:"high-risk-vulnerabilities",iconIndex:2,rego:'# METADATA\n# title: High-risk vulnerabilities\n# description: Match packages with high-severity vulnerabilities (CVSS >= 7.0) when fixes are available\npackage cloudsmith\n\ndefault match := false\n\ncvss_threshold := 7.0\n\nignored_ids := {} # e.g. {"CVE-2021-9999"}\n\nids(v) := {v.id} | {a | some a in v.aliases}\n\nvulnerabilities[id] contains v if {\n some v in input.v0.osv\n some id in (ids(v) | {u | some u in v.upstream})\n}\n\nscores(records) := {s.numerical_score |\n some v in records\n some s in v.severity\n} | {s.numerical_score |\n some v in records\n some a in v.affected\n some s in a.severity\n}\n\nhas_fix(records) if {\n some v in records\n v.affected[_].ranges[_].events[_].fixed\n}\n\nignored_record(v) if {\n some id in ids(v)\n id in ignored_ids\n}\n\nignored_record(v) if {\n count(v.upstream) > 0\n every u in v.upstream { u in ignored_ids }\n}\n\nignored(records) if {\n some v in records\n ignored_record(v)\n}\n\nmatching_scores contains score if {\n some records in vulnerabilities\n has_fix(records)\n not ignored(records)\n some score in scores(records)\n score >= cvss_threshold\n}\n\nmatch if count(matching_scores) > 0\n\nreason contains msg if {\n match\n msg := sprintf("Vulnerability at CVSS %.1f with fix available, threshold %.1f", [max(matching_scores), cvss_threshold])\n}\n',name:"High-risk vulnerabilities",description:"Match packages with high-severity vulnerabilities (CVSS >= 7.0) when fixes are available",category:"",tags:[],visibility:{docs:!1,webapp:!0},version:"1.0.0",author:"Cloudsmith"},{id:"copyleft-licenses",iconIndex:7,rego:'# METADATA\n# title: Copyleft licenses\n# description: Match packages whose declared license, or any SBOM component license, is copyleft.\npackage cloudsmith\n\ndefault match := false\n\npkg := input.v0.package\n\ncopyleft := {\n # GNU General Public License (GPL)\n "GPL-1.0-only",\n "GPL-1.0-or-later",\n "GPL-2.0",\n "GPL-2.0-only",\n "GPL-2.0-or-later",\n "GPL-3.0",\n "GPL-3.0-only",\n "GPL-3.0-or-later",\n # GNU Lesser General Public License (LGPL)\n "LGPL-2.0",\n "LGPL-2.0-only",\n "LGPL-2.0-or-later",\n "LGPL-2.1",\n "LGPL-2.1-only",\n "LGPL-2.1-or-later",\n "LGPL-3.0",\n "LGPL-3.0-only",\n "LGPL-3.0-or-later",\n # GNU Affero General Public License (AGPL)\n "AGPL-1.0",\n "AGPL-1.0-only",\n "AGPL-1.0-or-later",\n "AGPL-3.0",\n "AGPL-3.0-only",\n "AGPL-3.0-or-later",\n # GNU Free Documentation License (GFDL)\n "GFDL-1.1-only",\n "GFDL-1.1-or-later",\n "GFDL-1.2-only",\n "GFDL-1.2-or-later",\n "GFDL-1.3-only",\n "GFDL-1.3-or-later",\n # Mozilla Public License (MPL)\n "MPL-1.0",\n "MPL-1.1",\n "MPL-2.0",\n # Common Development and Distribution License (CDDL)\n "CDDL-1.0",\n "CDDL-1.1",\n # Eclipse Public License (EPL)\n "EPL-1.0",\n "EPL-2.0",\n # Open Software License (OSL)\n "OSL-1.0",\n "OSL-2.0",\n "OSL-3.0",\n # Creative
3Commons Share Alike (CC-BY-SA)\n "CC-BY-SA-1.0",\n "CC-BY-SA-2.0",\n "CC-BY-SA-2.5",\n "CC-BY-SA-3.0",\n "CC-BY-SA-4.0",\n # Other\n "QPL-1.0",\n "Sleepycat",\n "SSPL-1.0",\n "copyleft-next-0.3.0",\n}\n\nlicense := pkg.license.oss_license.spdx_identifier\n\ncopyleft_found contains license if license in copyleft\n\ncopyleft_found contains entry.license.id if {\n some component in input.v0.sbom.components\n some entry in component.licenses\n entry.license.id in copyleft\n}\n\nmatch if count(copyleft_found) > 0\n\nreason contains sprintf("Copyleft licenses detected: %v", [copyleft_found]) if match\n',name:"Copyleft licenses",description:"Match packages whose declared license, or any SBOM component license, is copyleft",category:"",tags:[],visibility:{docs:!1,webapp:!0},version:"1.0.0",author:"Cloudsmith"},{id:"malware",iconIndex:9,rego:'# METADATA\n# title: Malware\n# description: Match packages with detected malware vulnerabilities\npackage cloudsmith\n\ndefault match := false\n\nmalicious(vulnerability) if startswith(vulnerability.id, "MAL-")\nmalicious(vulnerability) if "CWE-506" in vulnerability.database_specific.cwe_ids\n\nmatch if {\n some vulnerability in input.v0.osv\n malicious(vulnerability)\n}\n\nreason contains "Package contains malware" if match\n',name:"Malware",description:"Match packages with detected malware vulnerabilities",category:"",tags:[],visibility:{docs:!1,webapp:!0},version:"1.0.0",author:"Cloudsmith"}];try{var o=window;o._sentryModuleMetadata=o._sentryModuleMetadata||{},o._sentryModuleMetadata[(new o.Error).stack]=Object.assign({},o._sentryModuleMetadata[(new o.Error).stack],{"_sentryBundlerPluginAppKey:sentry-app-cloudsmith-key-prod-2025":!0})}catch(e){}let i=async({accessToken:e,workspace:n,page:s,pageSize:o,sort:i,query:c,fetchStats:l=!1,clientHeaders:d})=>{let u=null!=s&&null!=o,p=`${i||""}`,y=new URLSearchParams({...c&&{query:c},...p&&{sort:p},...u&&{page:s},...u&&{page_size:o}}),m=await (0,a.apiFetcher)(`/v2/workspaces/${encodeURIComponent(n)}/policies?${y.toString()}`,(0,t.jwtAuthHeader)(e),{resultIsPaginated:u,clientHeaders:d});return l?await (0,r.withData)(m,async s=>{let o=(0,r.flattenResults)(await Promise.all(s.items.results.map(r=>(0,a.apiFetcher)(`/v2/workspaces/${encodeURIComponent(n)}/policies/${encodeURIComponent(r.slug_perm)}/actions/?page=1&page_size=1`,(0,t.jwtAuthHeader)(e),{resultIsPaginated:u,clientHeaders:d}))),{strict:!0});return(0,r.fromData)({items:{results:s.items.results.map((e,t)=>({...e,action_count:o?.data?.[t]?.pagination?.itemCount??0,match_count:null}))},pagination:s.pagination})}):m},c=async({accessToken:e,workspace:r,name:n,description:s,rego:o,enabled:i,is_terminal:c,precedence:l,clientHeaders:d})=>await (0,a.apiFetcher)(`/v2/workspaces/${encodeURIComponent(r)}/policies/`,(0,t.jwtAuthHeader)(e),{method:"POST",body:JSON.stringify({name:n,description:s,rego:o,enabled:i,is_terminal:c,precedence:l}),clientHeaders:d}),l=async({workspace:e,accessToken:r,policy:n,clientHeaders:s,signal:o})=>await (0,a.apiFetcher)(`/v2/workspaces/${encodeURIComponent(e)}/policies/${encodeURIComponent(n)}/`,(0,t.jwtAuthHeader)(r),{clientHeaders:s,signal:o}),d=async({accessToken:e,workspace:r,policy:n,clientHeaders:s,...o})=>await (0,a.apiFetcher)(`/v2/workspaces/${encodeURIComponent(r)}/policies/${encodeURIComponent(n)}/`,(0,t.jwtAuthHeader)(e),{method:"PATCH",body:JSON.stringify(o),clientHeaders:s}),u=async({accessToken:e,workspace:r,rego:n,signal:s,clientHeaders:o})=>await (0,a.apiFetcher)(`/v2/workspaces/${encodeURIComponent(r)}/policies/validate/`,(0,t.jwtAuthHeader)(e),{method:"POST",body:JSON.stringify({rego:n}),signal:s,clientHeaders:o}),p=async({accessToken:e,workspace:r,policy:n,isEnabled:s})=>await (0,a.apiFetcher)(`/v2/workspaces/${encodeURIComponent(r)}/policies/${encodeURIComponent(n)}/`,(0,t.jwtAuthHeader)(e),{method:"PATCH",body:JSON.stringify({enabled:s})}),y=async({accessToken:e,workspace:r,policy:n})=>await (0,a.apiFetcher)(`/v2/workspaces/${encodeURIComponent(r)}/policies/${encodeURIComponent(n)}/`,(0,t.jwtAuthHeader)(e),{method:"DELETE",ignoreOutput:!0}),m=async({accessToken:e,workspace:r,policy:n,page:s,pageSize:o,clientHeaders:i})=>{let c=null!=s&&null!=o,l=new URLSearchParams({...c&&{page:s},...c&&{page_size:o}});
3return await (0,a.apiFetcher)(`/v2/workspaces/${encodeURIComponent(r)}/policies/${encodeURIComponent(n)}/actions/?${l.toString()}`,(0,t.jwtAuthHeader)(e),{resultIsPaginated:c,clientHeaders:i})},h=async({accessToken:e,workspace:r,policy:n,...s})=>await (0,a.apiFetcher)(`/v2/workspaces/${encodeURIComponent(r)}/policies/${encodeURIComponent(n)}/actions/`,(0,t.jwtAuthHeader)(e),{method:"POST",body:JSON.stringify(s)}),g=async({accessToken:e,workspace:r,policy:n,action:s,...o})=>await (0,a.apiFetcher)(`/v2/workspaces/${encodeURIComponent(r)}/policies/${encodeURIComponent(n)}/actions/${encodeURIComponent(s)}/`,(0,t.jwtAuthHeader)(e),{method:"PUT",body:JSON.stringify(o)}),_=async({accessToken:e,workspace:r,policy:n,action:s})=>await (0,a.apiFetcher)(`/v2/workspaces/${encodeURIComponent(r)}/policies/${encodeURIComponent(n)}/actions/${encodeURIComponent(s)}/`,(0,t.jwtAuthHeader)(e),{method:"DELETE",ignoreOutput:!0}),w=async({accessToken:e,workspace:r,policy:n,rego:s,packages:o,signal:i})=>await (0,a.apiFetcher)(`/v2/workspaces/${encodeURIComponent(r)}/policies/simulate/`,(0,t.jwtAuthHeader)(e),{method:"POST",body:JSON.stringify({policy:n,rego:s,packages:o}),signal:i}),f=async({accessToken:e,workspace:r,clientHeaders:n,match:s,page:o,pageSize:i,policy:c,sort:l,createdAfter:d})=>{let u=null!=o&&null!=i,p=new URLSearchParams({...null!=s&&{match:s},...u&&{page:o},...u&&{page_size:i},...c&&{policy_slug_perm:c},...l&&{sort:l},...d&&{created_after:d}});return await (0,a.apiFetcher)(`/v2/workspaces/${encodeURIComponent(r)}/policies/decision-logs-v1/?${p.toString()}`,(0,t.jwtAuthHeader)(e),{resultIsPaginated:u,clientHeaders:n})},M=async({accessToken:e,workspace:r,decisionLogId:n,clientHeaders:s})=>await (0,a.apiFetcher)(`/v2/workspaces/${encodeURIComponent(r)}/policies/decision-logs-v1/${encodeURIComponent(n)}/`,(0,t.jwtAuthHeader)(e),{clientHeaders:s}),v=async()=>(0,r.fromData)(s);e.s(["changeEnablePolicy",0,p,"createActionForPolicy",0,h,"createPolicy",0,c,"deleteActionForPolicy",0,_,"deletePolicy",0,y,"fetchPolicy",0,l,"fetchPolicyDecisionLog",0,M,"fetchPolicyTemplates",0,v,"patchPolicy",0,d,"searchActionsForPolicy",0,m,"searchPolicies",0,i,"searchPolicyDecisionLogs",0,f,"simulateDraftPolicy",0,w,"updateActionForPolicy",0,g,"validatePolicy",0,u],643134)},135922,e=>{"use strict";var t=e.i(740462);try{var a=window;a._sentryModuleMetadata=a._sentryModuleMetadata||{},a._sentryModuleMetadata[(new a.Error).stack]=Object.assign({},a._sentryModuleMetadata[(new a.Error).stack],{"_sentryBundlerPluginAppKey:sentry-app-cloudsmith-key-prod-2025":!0})}catch(e){}let r={NAME:"name",VERSION:"version",CREATED_AT:"created_at",UPDATED_AT:"updated_at",PRECEDENCE:"precedence",ENABLED:"enabled"},n=r.PRECEDENCE,s={PRECEDENCE:"precedence",NAME:"name",ACTION_COUNT:"actionCount",MATCH_COUNT:"matchCount",CREATED:"created",ACTIONS:"actions"};e.s(["COOLDOWN_DEFAULT_DAYS",0,"3","COOLDOWN_POLICY_FORMATS",0,[{name:"cargo",slug:"cargo"},{name:"conda",slug:"conda"},{name:"docker",slug:"docker"},{name:"npm",slug:"npm"},{name:"python",slug:"python"},{name:"go",slug:"go"},{name:"nuget",slug:"nuget"},{name:"maven",slug:"maven"}],"COOLDOWN_REPO_SELECTION",0,{ALL:"All",INCLUDE:"include",EXCLUDE:"exclude"},"EDIT_POLICY_MODE",0,{POLICY_BUILDER:"policy_builder",POLICY_CODE:"policy_code",POLICY_ACTIONS:"policy_actions"},"MAX_ACTION_FOR_POLICY_COUNT",0,10,"MAX_POLICY_DESCRIPTION_CHARS",0,250,"MAX_POLICY_NAME_CHARS",0,100,"MAX_TEMPLATE_RETRIES",0,9,"PACKAGE_STATE",0,{AVAILABLE:"available",DELETED:"deleted",QUARANTINED:"quarantined"},"POLICY_ACTION_TYPE",0,{SETPACKAGESTATE:"SetPackageState",ADDPACKAGETAGS:"AddPackageTags",REMOVEPACKAGETAGS:"RemovePackageTags"},"POLICY_LIST_COLUMNS",0,s,"POLICY_SORT_OPTIONS",0,r,"STARTER_POLICY_REGO",0,"# Policy namespace\r\npackage cloudsmith\r\n\r\n# Default match rule\r\ndefault match := false","TEMPLATE_IDS",0,{COOLDOWN:"cooldown-period"},"buildPolicySchema",0,function({t:e}){return[{name:s.PRECEDENCE,label:(0,t.upCase)(e("policies:precedence")),defaultVisible:!0,defaultOrder:0,fixedWidth:150,canHide:!1,canReorder:!1},{name:s.NAME,label:(0,t.upCase)(e("policies:policyName")),defaultVisible:!0,defaultOrder:1,minWidth:300,canHide:!1,canReorder:!1},{name:s.ACTION_COUNT,label:(0,t.upCase)(e("policies:actions")),defaultVisible:!0,defaultOrder:2,fixedWidth:140,canHide:!0,canReorder:!0},{name:s.MATCH_COUNT,label:(0,t.upCase)(e("policies:decisionLogs")),defaultVisible:!0,defaultOrder:3,fixedWidth:160,canHide:!0,canReorder:!0},{name:s.CREATED,label:(0,t.upCase)(e("policies:created")),defaultVisible:!0,defaultOrder:4,fixedWidth:160,canHide:!0,canReorder:!0},{name:s.ACTIONS,defaultVisible:!0,defaultOrder:5,fixedWidth:160,canHide:!1,canReorder:!1,sticky:!0}]},"decisionLogsDefaultSort",0,"-ended_at","policyDefaultSort",0,n])},989509,e=>{"use strict";var t=e.i(164645);try{var a=window;a._sentryModuleMetadata=a._sentryModuleMetadata||{},a._sentryModuleMetadata[(new a.Error).stack]=Object.assign({},a._sentryModuleMetadata[(new a.Error).stack],{"_sentryBundlerPluginAppKey:sentry-app-cloudsmith-key-prod-2025":!0})}catch(e){}let r=(e,t)=>e[t]??={},n=(0,t.createSlice)({name:"policyCode",initialState:{},reducers:{setPolicyRego:(e,t)=>
3{let{policySlug:a,regoCode:n}=t.payload,s=r(e,a),o=s.initialPolicyRego??"";s.policyRego=n,s.isPolicyRegoDirty=n!==o,s.apiErrorRego=null,s.evalErrorDetail=null},setEvalErrorDetail:(e,t)=>{let{policySlug:a,detail:n,rego:s}=t.payload,o=r(e,a);(void 0===s||void 0===o.policyRego||o.policyRego===s)&&(o.evalErrorDetail=n)},markPolicyRegoClean:(e,t)=>{let{policySlug:a}=t.payload;e[a]&&(e[a].isPolicyRegoDirty=!1,e[a].initialPolicyRego=e[a].policyRego)},startPublishing:(e,t)=>{r(e,t.payload.policySlug).isPublishing=!0},finishPublishing:(e,t)=>{let{policySlug:a}=t.payload;e[a]&&(e[a].isPublishing=!1)},setCooldownFormValidation:(e,t)=>{let{policySlug:a,isValid:n}=t.payload;r(e,a).isCooldownFormValid=n},initPolicyRego:(e,t)=>{let{policySlug:a,regoCode:n}=t.payload,s=r(e,a);s.policyRego=n,s.initialPolicyRego=n,s.isPolicyRegoDirty=!1,s.apiErrorRego=null,s.evalErrorDetail=null},setApiErrorRego:(e,t)=>{let{policySlug:a,errors:n}=t.payload;r(e,a).apiErrorRego=n},clearApiErrorRego:(e,t)=>{let{policySlug:a}=t.payload;e[a]&&(e[a].apiErrorRego=null)}}}),{clearApiErrorRego:s,finishPublishing:o,initPolicyRego:i,markPolicyRegoClean:c,setApiErrorRego:l,setCooldownFormValidation:d,setEvalErrorDetail:u,setPolicyRego:p,startPublishing:y}=n.actions,m=n.reducer;e.s(["clearApiErrorRego",0,s,"default",0,m,"finishPublishing",0,o,"initPolicyRego",0,i,"markPolicyRegoClean",0,c,"selectPolicyCode",0,(e,t)=>e.policyCode[t],"setApiErrorRego",0,l,"setCooldownFormValidation",0,d,"setEvalErrorDetail",0,u,"setPolicyRego",0,p,"startPublishing",0,y])},100805,e=>{"use strict";var t=e.i(164645),a=e.i(135922);try{var r=window;r._sentryModuleMetadata=r._sentryModuleMetadata||{},r._sentryModuleMetadata[(new r.Error).stack]=Object.assign({},r._sentryModuleMetadata[(new r.Error).stack],{"_sentryBundlerPluginAppKey:sentry-app-cloudsmith-key-prod-2025":!0})}catch(e){}let n=(0,t.createSlice)({name:"policyEdit",initialState:{},reducers:{setEditMode:(e,t)=>{let{policySlug:r,mode:n}=t.payload;e[r]||(e[r]={editMode:a.EDIT_POLICY_MODE.POLICY_BUILDER,isBuilderDisabled:!1}),e[r].editMode=n},disableBuilderMode:(e,t)=>
3{let{policySlug:a}=t.payload;e[a]&&(e[a].isBuilderDisabled=!0)}}}),{disableBuilderMode:s,setEditMode:o}=n.actions,i=n.reducer;e.s(["default",0,i,"disableBuilderMode",0,s,"setEditMode",0,o])},317808,e=>{"use strict";let t;try{var a="u">typeof window?window:e.g;a._sentryModuleMetadata=a._sentryModuleMetadata||{},a._sentryModuleMetadata[(new a.Error).stack]=Object.assign({},a._sentryModuleMetadata[(new a.Error).stack],{"_sentryBundlerPluginAppKey:sentry-app-cloudsmith-key-prod-2025":!0})}catch(e){}function r(e){let a;return t||(t=new Map),t.has(e)?a=t.get(e):(a={records_count:0,segments_count:0,segments_total_raw_size:0},t.set(e,a),t.size>1e3&&function(){if(!t)return;let e=t.keys().next().value;e&&t.delete(e)}()),a}e.s(["addRecord",0,function(e){r(e).records_count+=1},"addSegment",0,function(e){r(e).segments_count+=1},"addWroteData",0,function(e,t){r(e).segments_total_raw_size+=t},"getReplayStats",0,function(e){return null==t?void 0:t.get(e)},"getSegmentsCount",0,function(e){return r(e).segments_count}])},159055,421227,e=>{"use strict";var t=e.i(998279);try{var a="u">typeof window?window:e.g;a._sentryModuleMetadata=a._sentryModuleMetadata||{},a._sentryModuleMetadata[(new a.Error).stack]=Object.assign({},a._sentryModuleMetadata[(new a.Error).stack],{"_sentryBundlerPluginAppKey:sentry-app-cloudsmith-key-prod-2025":!0})}catch(e){}function r(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)e[r]=a[r]}return e}var n=function e(t,a){function n(e,n,s){if("u">typeof document){"number"==typeof(s=r({},a,s)).expires&&(s.expires=new Date(Date.now()+864e5*s.expires)),s.expires&&(s.expires=s.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var i in s)s[i]&&(o+="; "+i,!0!==s[i]&&(o+="="+s[i].split(";")[0]));return document.cookie=e+"="+t.write(n,e)+o}}return Object.create({set:n,get:function(e){if("u">typeof document&&(!arguments.length||e)){for(var a=document.cookie?document.cookie.split("; "):[],r={},n=0;n<a.length;n++){var s=a[n].split("="),o=s.slice(1).join("=");try{var i=decodeURIComponent(s[0]);if(r[i]=t.read(o,i),e===i)break}catch(e){}}return e?r[e]:r}},remove:function(e,t){n(e,"",r({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,r({},this.attributes,t))},withConverter:function(t){return e(r({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(a)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});try{var s=window;s._sentryModuleMetadata=s._sentryModuleMetadata||{},s._sentryModuleMetadata[(new s.Error).stack]=Object.assign({},s._sentryModuleMetadata[(new s.Error).stack],{"_sentryBundlerPluginAppKey:sentry-app-cloudsmith-key-prod-2025":!0})}catch(e){}let o=()=>{let e=n.get(t.TOKEN_EXP_COOKIE_NAME);if(!e)return null;let a=parseInt(e,10);return isNaN(a)?null:a};e.s(["getTokenExpiry",0,o,"isAccessTokenValid",0,()=>{let e=o();return null!=e&&e>Math.floor(Date.now()/1e3)+t.TOKEN_EXPIRY_BUFFER_SECONDS}],421227);try{var i=window;i._sentryModuleMetadata=i._sentryModuleMetadata||{},i._sentryModuleMetadata[(new i.Error).stack]=Object.assign({},i._sentryModuleMetadata[(new i.Error).stack],{"_sentryBundlerPluginAppKey:sentry-app-cloudsmith-key-prod-2025":!0})}catch(e){}e.s(["isRelativePath",0,e=>{try{return new URL(e,window.location.origin).origin===window.location.origin&&e.startsWith("/")}catch{return!1}},"isSessionAboutToExpire",0,()=>{let e=o();return null!=e&&1e3*e-Date.now()<t.REFRESH_TOKEN_THRESHOLD}],159055)},96612,207072,30305,e=>{"use strict";var t=e.i(421227);e.i(998279);try{var a=window;a._sentryModuleMetadata=a._sentryModuleMetadata||{},a._sentryModuleMetadata[(new a.Error).stack]=Object.assign({},a._sentryModuleMetadata[(new a.Error).stack],{"_sentryBundlerPluginAppKey:sentry-app-cloudsmith-key-prod-2025":!0})}catch(e){}let r=new Set,n=()=>{r.forEach(e=>e())};e.s(["notifyListeners",0,n,"subscribe",0,e=>(r.add(e),()=>{r.delete(e)})],207072);var s=e.i(675752);try{var o=window;o._sentryModuleMetadata=o._sentryModuleMetadata||{},o._sentryModuleMetadata[(new o.Error).stack]=Object.assign({},o._sentryModuleMetadata[(new o.Error).stack],{"_sentryBundlerPluginAppKey:sentry-app-cloudsmith-key-prod-2025":!0})}catch(e){}let i="cloudsmith-token-refresh",c="u">typeof navigator&&"locks"in navigator,l=async()=>{try{let e=await (0,s.refreshUserSession)({});if(e.data?.success)return n(),{success:!0};let t=e.error?.status;return{success:!1,isAuthError:401===t||403===t,status:t}}catch{return{success:!1,isAuthError:!1}}},d=()=>(0,t.isAccessTokenValid)()?Promise.resolve({success:!0}):l(),u=async()=>{let e=await navigator.locks.request(i,{ifAvailable:!0},async e=>e?d():null);return null!==e?e:navigator.locks.request(i,d)},p=null;e.s(["refresh",0,()=>p||(p=(c?u():l()).finally(()=>{p=null}))],30305);try{var y=window;y._sentryModuleMetadata=y._sentryModuleMetadata||{},y._sentryModuleMetadata[(new y.Error).stack]=Object.assign({},y._sentryModuleMetadata[(new y.Error).stack],{"_sentryBundlerPluginAppKey:sentry-app-cloudsmith-key-prod-2025":!0})}catch(e){}e.s([],96612)}]); 4 5//# debugId=47d53c4f-c39b-c73c-f041-a22f12ee006d 6//# sourceMappingURL=0dov09q512o~9.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.