performance.mark("js-parse-end:marketplace-react-3ad0e99e20879fa0.js"); "use strict";(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([["92611"],{91385(e,t,a){a.d(t,{Xq:()=>s,ai:()=>i,fN:()=>l,qA:()=>o});var r=-1/0,i=1/0;function n(e,t,a,i){for(var n=e.length,l=t.length,s=e.toLowerCase(),o=t.toLowerCase(),c=function(e){for(var t=e.length,a=Array(t),r="/",i=0;i1024)return r;var s=Array(a),o=Array(a);return n(e,t,s,o),o[a-1][l-1]}function s(e,t){var a=e.length,i=t.length,l=Array(a);if(!a||!i)return l;if(a===i){for(var s=0;s1024)return l;var o=Array(a),c=Array(a);n(e,t,o,c);for(var d=!1,s=a-1,m=i-1;s>=0;s--)for(;m>=0;m--)if(o[s][m]!==r&&(d||o[s][m]===c[s][m])){d=s&&m&&c[s][m]===o[s-1][m-1]+1,l[s]=m--;break}return l}function o(e,t){e=e.toLowerCase(),t=t.toLowerCase();for(var a=e.length,r=0,i=0;rr});function r(e){let t;if("clipboard"in navigator)return navigator.clipboard.writeText(e);let a=document.body;if(!a)return Promise.reject(Error());let r=((t=document.createElement("pre")).style.width="1px",t.style.height="1px",t.style.position="fixed",t.style.top="5px",t.textContent=e,t);return a.appendChild(r),!function(e){if("clipboard"in navigator)return navigator.clipboard.writeText(e.textContent||"");let t=getSelection();if(null==t)return Promise.reject(Error());t.removeAllRanges();let a=document.createRange();a.selectNodeContents(e),t.addRange(a),document.execCommand("copy"),t.removeAllRanges(),Promise.resolve()}(r),a.removeChild(r),Promise.resolve()}},10225(e,t,a){a.d(t,{t:()=>i});var r=a(4069);let i=({items:e,filter:t,key:a,secondaryKey:i})=>{let n=[];for(let l of e){let e=(0,r.dt)(t,a(l)),s=i?Math.max(e,(0,r.dt)(t,i(l))):e;s>r.IP&&n.push([s,l])}return n.sort(([e,t],[r,i])=>r===e?a(t).localeCompare(a(i)):r-e),n.map(([,e])=>e)}},58084(e,t,a){let r,i;function n(){if("u"s,mM:()=>n,rx:()=>l});let s="Alt+ArrowUp"},95126(e,t,a){a.d(t,{yY:()=>c});var r=a(16522),i=a(23666),n=a(19519),l=a(58084);let s=Object.freeze({});function o(e){return(0,l.rx)()?{...e,"aria-keyshortcuts":l.IX}:e}function c(){let e,t,a=(0,r.c)(4),{isServer:c}=(0,n.V)();a[0]!==c?(e=c||!(0,l.mM)(),a[0]=c,a[1]=e):e=a[1];let d=e;return a[2]!==d?(t=(e,t)=>{if(d)return s;let a=function(e,t){if("string"==typeof t.url&&t.url)return t.url;switch(e){case"user":if("userId"in t&&null!=t.userId)return(0,i.GrN)({userId:t.userId});if("login"in t&&t.login)return(0,i.dCN)({owner:t.login});return null;case"organization":if("login"in t&&t.login)return(0,i.qsO)({owner:t.login});return null;case"team":if("owner"in t&&t.owner&&"team"in t&&t.team)return(0,i.Pmq)({owner:t.owner,team:t.team});return null;case"issue":if("owner"in t&&t.owner&&"repo"in t&&t.repo&&"issueNumber"in t&&null!=t.issueNumber)return(0,i.Nbg)({owner:t.owner,repo:t.repo,issueNumber:t.issueNumber});return null;case"pull_request":if("owner"in t&&t.owner&&"repo"in t&&t.repo&&"pullRequestNumber"in t&&null!=t.pullRequestNumber)return(0,i.i9S)({owner:t.owner,repo:t.repo,pullRequestNumber:t.pullRequestNumber});return null;case"commit":if("owner"in t&&t.owner&&"repo"in t&&t.repo&&"commitish"in t&&t.commitish)return(0,i.fQd)({owner:t.owner,repo:t.repo,commitish:t.commitish});return null;case"copilot":if("botSlug"in t&&t.botSlug)return(0,i._nf)({bot_slug:t.botSlug});return null;case"repository":if("owner"in t&&t.owner&&"repo"in t&&t.repo)return(0,i.SHX)({owner:t.owner,repo:t.repo,action:"hovercard"});return null;case"discussion":if("owner"in t&&t.owner&&"repo"in t&&t.repo&&"discussionNumber"in t&&null!=t.discussionNumber)return(0,i.yIS)({owner:t.owner,repo:t.repo,discussionNumber:t.discussionNumber});return null;case"advisory":if("ghsaId"in t&&t.ghsaId)return(0,i.lEN)({ghsaId:t.ghsaId});return null;case"cwe":if("id"in t&&t.id)return(0,i.dQ4)({id:t.id});return null;case"sponsors_listing":if("login"in t&&t.login)return(0,i.xyp)({login:t.login});return null;case"achievement":if("login"in t&&t.login&&"slug"in t&&t.slug)return(0,i.HgL)({login:t.login,slug:t.slug});return null;case"tracked_in":if("owner"in t&&t.owner&&"repo"in t&&t.repo&&"issueNumber"in t&&null!=t.issueNumber)return(0,i.fJg)({owner:t.owner,repo:t.repo,issueNumber:t.issueNumber});return null;case"tracking":if("owner"in t&&t.owner&&"repo"in t&&t.repo&&"issueNumber"in t&&null!=t.issueNumber&&"id"in t&&null!=t.id)return(0,i.Z1d)({owner:t.owner,repo:t.repo,issueNumber:t.issueNumber,id:t.id});return null;case"security_alert":if("owner"in t&&t.owner&&"repo"in t&&t.repo&&"alertNumber"in t&&null!=t.alertNumber)return(0,i.Ofx)({owner:t.owner,repo:t.repo,alertNumber:t.alertNumber});return null;case"dependabot_alert":if("owner"in t&&t.owner&&"repo"in t&&t.repo&&"alertNumber"in t&&null!=t.alertNumber)return(0,i.iRo)({owner:t.owner,repo:t.repo,alertNumber:t.alertNumber});return null;case"dependency_graph_package":if("owner"in t&&t.owner&&"repo"in t&&t.repo&&"id"in t&&t.id&&"name"in t&&t.name)return(0,i.ZBO)({owner:t.owner,repo:t.repo,id:t.id,name:t.name});return null;case"project":if("projectId"in t&&null!=t.projectId)return(0,i.L$n)({projectId:t.projectId});return null;case"integration":if("id"in t&&null!=t.id)return(0,i.Ss0)({id:t.id});return null;case"profile_highlight":if("login"in t&&t.login&&"highlightType"in t&&t.highlightType)return(0,i.Hpm)({login:t.login,highlightType:t.highlightType});return null;default:return null}}(e,t);return a?function(e,t,a=!0,r){let i=function(e,t,a=!0){let r={"data-hovercard-url":e,"data-hovercard-type":t};return a?o({...r,"octo-click":"hovercard-link-click","octo-dimensions":"link_type:self"}):o(r)}(e,t,a);if(0===Object.keys(i).length)return s;if(!r)return i;let n={...i};return r.fixedPositioning&&(n["data-hovercard-fixed-positioning"]=""),void 0!==r.zIndexOverride&&(n["data-hovercard-z-index-override"]=String(r.zIndexOverride)),r.cache&&(n["data-hovercard-cache"]=r.cache),n}(a,e,t.tracking??!0,{fixedPositioning:t.fixedPositioning,zIndexOverride:t.zIndexOverride,cache:t.cache}):s},a[2]=d,a[3]=t):t=a[3],t}},26933(e,t,a){a.d(t,{X:()=>o});var r=a(74848),i=a(16522),n=a(4925),l=a(56861),s=a(24278);let o=e=>{let t,a,o,c=(0,i.c)(8),{children:d,feedbackUrl:m,className:u}=e,p=void 0===d?"Preview":d;return c[0]!==p?(t=(0,r.jsx)(n.A,{variant:"success",children:p}),c[0]=p,c[1]=t):t=c[1],c[2]!==m?(a=m?(0,r.jsx)(l.A,{feedbackUrl:m}):void 0,c[2]=m,c[3]=a):a=c[3],c[4]!==u||c[5]!==t||c[6]!==a?(o=(0,r.jsx)(s.V,{className:u,label:t,link:a}),c[4]=u,c[5]=t,c[6]=a,c[7]=o):o=c[7],o};o.displayName="BetaLabel"},56861(e,t,a){a.d(t,{A:()=>l});var r=a(74848),i=a(16522),n=a(56133);let l=e=>{let t,a=(0,i.c)(2),{feedbackUrl:l}=e;return a[0]!==l?(t=(0,r.jsx)(n.A,{className:"FeedbackLink-module__link__agJbw",href:l,inline:!0,children:"Give feedback"}),a[0]=l,a[1]=t):t=a[1],t};l.displayName="FeedbackLink"},24278(e,t,a){a.d(t,{V:()=>l});var r=a(74848),i=a(16522),n=a(46251);let l=e=>{let t,a=(0,i.c)(9),{label:l,link:s,className:o}=e;if(s){let e;return a[0]!==o||a[1]!==l||a[2]!==s?(e=(0,r.jsxs)(n.B,{direction:"horizontal",gap:"condensed",align:"baseline",className:o,children:[l," ",s]}),a[0]=o,a[1]=l,a[2]=s,a[3]=e):e=a[3],e}if(o){let e;return a[4]!==o||a[5]!==l?(e=(0,r.jsx)("span",{className:o,children:l}),a[4]=o,a[5]=l,a[6]=e):e=a[6],e}return a[7]!==l?(t=(0,r.jsx)(r.Fragment,{children:l}),a[7]=l,a[8]=t):t=a[8],t};l.displayName="LabelWithLink"},8113(e,t,a){var r=a(74848),i=a(16522);function n(e){let t,a=(0,i.c)(2);return a[0]!==e.children?(t=(0,r.jsx)(r.Fragment,{children:e.children}),a[0]=e.children,a[1]=t):t=a[1],t}n.displayName="App";var l=a(65594),s=a(67554);let o={header:"marketplace-header-module__header__tkIOj",gradient:"marketplace-header-module__gradient__kaQeJ","gradient-left":"marketplace-header-module__gradient-left__kHpNA","gradient-right":"marketplace-header-module__gradient-right__diy64","image-wrapper":"marketplace-header-module__image-wrapper__XXvLB",copilot:"marketplace-header-module__copilot__rU5D8","header-content":"marketplace-header-module__header-content__ABtMw",arrow:"marketplace-header-module__arrow__lBhk0",donut:"marketplace-header-module__donut__N3B4p",models:"marketplace-header-module__models__RF2lM",spin:"marketplace-header-module__spin__tphSh",semicircles:"marketplace-header-module__semicircles__TpICO",sparklelarge:"marketplace-header-module__sparklelarge__rgD2t",sparkle:"marketplace-header-module__sparkle__oeXeM",sparklesmall:"marketplace-header-module__sparklesmall__qrfsa",workflow:"marketplace-header-module__workflow__jsTHl","image-container-mobile":"marketplace-header-module__image-container-mobile__IVat8"};var c=a(58846),d=a(96540),m=a(54590);let u="Free trial";function p(e,t){if(!t)return[];let a=t.filter(t=>Array.isArray(t)&&t[0]===e),r=[];for(let e of a){let[,t]=e;Array.isArray(t)?r=r.concat(t):r.push(t)}return r}function h(e){return RegExp(`${e}:("([^"]+)"|\\S+)\\s?`)}function g(e,t){let a=t.includes(" ")?`"${t}"`:t;return`${e}:${a}`}function f(e,t){if(!e)return;let a=t.map(e=>e.toLowerCase()).indexOf(e.toLowerCase());if(a>=0)return t[a]}function x(e,t){if(!t)return"";if(t.trim().length<1)return t;let a=h(e),r=t,i=r.match(a);for(;i;){let e=i.index;i=(r=r.slice(0,e)+r.slice(e+i[0].length)).match(a)}return r.trim()}function y(e,t,a){for(let r of p(e,t)){let e=f(r,a);if(e)return e}}let j=[{id:"all",name:"All"},{id:"chat-completion",name:"Chat/completion"},{id:"embeddings",name:"Embeddings"}],b={"name-asc":"Alphabetical","created-desc":"Recently added","output-tokens-desc":"Output token limit","input-tokens-desc":"Input token limit",popularity:"Popularity"};function v(e){if("string"!=typeof e)return"All";let t=e.trim();return t.length<1?"All":"rag"===t.toLocaleLowerCase()?"RAG":t.charAt(0).toUpperCase()+t.slice(1)}let _="created-desc",N=(0,d.createContext)(void 0);function w(){let e=(0,d.use)(N);if(!e)throw Error("useSearchResults must be used within a SearchResultsProvider");return e}function k(e){let t,a,n=(0,i.c)(5),{children:s}=e,{searchResults:o}=(0,l.B)(),[c,m]=(0,d.useState)(o);n[0]!==c?(t={searchResults:c,setSearchResults:m},n[0]=c,n[1]=t):t=n[1];let u=t;return n[2]!==s||n[3]!==u?(a=(0,r.jsx)(N,{value:u,children:s}),n[2]=s,n[3]=u,n[4]=a):a=n[4],a}N.displayName="SearchResultsContext",k.displayName="SearchResultsProvider";let A="popularity-desc",S=(0,d.createContext)(void 0);function I(){let e=(0,d.use)(S);if(!e)throw Error("useSort must be used within a SortProvider");return e}function C({children:e}){let[t]=(0,m.ok)(),{searchResults:{parsedQuery:a}}=w(),i=(0,d.useMemo)(()=>{let e,r=t.get("query");if(r){let t=r.match(h("sort"));e=t?t[1]:void 0}if("models"===t.get("type")){var i;let t,r;return i=e,(r=y("sort",a,t=Object.keys(b)))||f(i,t)||_}switch(e){case"created-desc":return"created-desc";case"match-desc":return"match-desc";default:return A}},[]),[n,l]=(0,d.useState)(i),s="models"===t.get("type")?_:A,o=(0,d.useCallback)(()=>l(s),[s]),c=(0,d.useMemo)(()=>({sort:n,isDefaultSort:n===s,resetSort:o,setSort:l}),[s,n,o,l]);return(0,r.jsx)(S,{value:c,children:e})}S.displayName="SortContext",C.displayName="SortProvider";let L=(0,d.createContext)(void 0);function P(){let e=(0,d.use)(L);if(!e)throw Error("useCreators must be used within a CreatorsProvider");return e}function $({children:e}){let[t]=(0,m.ok)(),a=(0,d.useMemo)(()=>t.has("verification")&&"verified_creator"===t.get("verification")?"Verified creators":"All creators",[]),[i,n]=(0,d.useState)(a),l=(0,d.useMemo)(()=>({creators:i,setCreators:n}),[i,n]);return(0,r.jsx)(L,{value:l,children:e})}L.displayName="CreatorsContext",$.displayName="CreatorsProvider";var F=a(78597),B=a(97286);let T=["agents","conversation","large context","low latency","multilingual","multimodal","multipurpose","rag","reasoning","understanding"],U=[{name:"cohere",displayName:"Cohere"},{name:"core42",displayName:"Core42"},{name:"deepseek",displayName:"DeepSeek"},{name:"meta",displayName:"Meta"},{name:"microsoft",displayName:"Microsoft"},{name:"mistral-ai",displayName:"Mistral"},{name:"ai21labs",displayName:"AI21 Labs"},{name:"openai",displayName:"Azure OpenAI Service"},{name:"xai",displayName:"xAI"}];function O(){let e,t,a=(0,i.c)(4),[r]=(0,m.ok)();if(a[0]===Symbol.for("react.memo_cache_sentinel")?(e=["github-models","search-filters"],a[0]=e):e=a[0],a[1]!==r){let i;a[3]===Symbol.for("react.memo_cache_sentinel")?(i={categories:T,publishers:U},a[3]=i):i=a[3],t={queryKey:e,async queryFn(){let e=await (0,F.lS)("/models/search-filters");return e.ok?await e.json():{categories:T,publishers:U}},initialData:i,enabled:"models"===r.get("type")},a[1]=r,a[2]=t}else t=a[2];return(0,B.I)(t)}let M=(0,d.createContext)(void 0);function R(){let e=(0,d.use)(M);if(!e)throw Error("useCategory must be used within a CategoryProvider");return e}function D({children:e}){let[t]=(0,m.ok)(),{searchResults:a}=w(),{data:{categories:i}}=O(),n=(0,d.useMemo)(()=>{if("models"===t.get("type")){var e=a.parsedQuery;if(i.includes(t.get("category")||""))return t.get("category");let r=y("category",e,i);return r||null}return t.has("type")?t.get("category"):null},[i]),[l,s]=(0,d.useState)(n),o=(0,d.useMemo)(()=>({category:l,setCategory:s}),[l,s]);return(0,d.useEffect)(()=>{"All"!==l&&l||"All"===n||s(n)},[n,l]),(0,r.jsx)(M,{value:o,children:e})}M.displayName="CategoryContext",D.displayName="CategoryProvider";let z=(0,d.createContext)(void 0);function V(){let e=(0,d.use)(z);if(!e)throw Error("useSearchType must be used within a SearchTypeProvider");return e}function E(e){let t,a,n,l=(0,i.c)(7),{children:s}=e,[o]=(0,m.ok)();l[0]!==o?(t=()=>o.get("type"),l[0]=o,l[1]=t):t=l[1];let[c,u]=(0,d.useState)(t);l[2]!==c?(a={type:c,setType:u},l[2]=c,l[3]=a):a=l[3];let p=a;return l[4]!==s||l[5]!==p?(n=(0,r.jsx)(z,{value:p,children:s}),l[4]=s,l[5]=p,l[6]=n):n=l[6],n}z.displayName="SearchTypeContext",E.displayName="SearchTypeProvider";var H=a(6877);let G=(0,d.createContext)(void 0);function q(){let e=(0,d.use)(G);if(!e)throw Error("useCopilotApp must be used within a CopilotAppProvider");return e}function W(e){let t,a,n,l,s=(0,i.c)(11),{children:o}=e,c=(0,H.u)("copilot_extensions_removal_on_marketplace"),[u]=(0,m.ok)();s[0]!==c||s[1]!==u?(t=()=>c?null:u.get("copilot_app"),s[0]=c,s[1]=u,s[2]=t):t=s[2];let[p,h]=(0,d.useState)(t),g=c?null:p;s[3]!==c?(a=e=>h(c?null:e),s[3]=c,s[4]=a):a=s[4],s[5]!==g||s[6]!==a?(n={copilotApp:g,setCopilotApp:a},s[5]=g,s[6]=a,s[7]=n):n=s[7];let f=n;return s[8]!==o||s[9]!==f?(l=(0,r.jsx)(G,{value:f,children:o}),s[8]=o,s[9]=f,s[10]=l):l=s[10],l}G.displayName="CopilotAppContext",W.displayName="CopilotAppProvider";let Q=(0,d.createContext)(void 0);function X(){let e=(0,d.use)(Q);if(!e)throw Error("useModelsTask must be used within a ModelsTaskProvider");return e}function Y({children:e}){let[t]=(0,m.ok)(),{searchResults:a}=w(),i=(0,d.useMemo)(()=>{if("models"===t.get("type")){var e;let r,i;return e=a.parsedQuery,r=t.get("task")||"",(i=j.map(({id:e})=>e)).includes(r.toLowerCase())?r:y("task",e,i)??"all"}return null},[]),[n,l]=(0,d.useState)(i),s=(0,d.useMemo)(()=>({task:n,setTask:l}),[n,l]);return(0,r.jsx)(Q,{value:s,children:e})}Q.displayName="ModelsTaskContext",Y.displayName="ModelsTaskProvider";let K=(0,d.createContext)(void 0);function J(){let e=(0,d.use)(K);if(!e)throw Error("useModelsPublisher must be used within a ModelsPublisherProvider");return e}function Z({children:e}){let[t]=(0,m.ok)(),{searchResults:a}=w(),{data:{publishers:i}}=O(),n=(0,d.useMemo)(()=>"models"===t.get("type")?function(e,t,a){let r=e.get("publisher")||"";for(let e of a)if(e.toLowerCase()===r.toLowerCase())return e;for(let e of p("publisher",t)){let t=a.find(t=>e.toLowerCase()===t.toLowerCase());if(t)return t}return"All"}(t,a.parsedQuery,i.map(e=>e.name)):null,[i]),[l,s]=(0,d.useState)(n),o=(0,d.useMemo)(()=>{if("All"===l||!l)return"All";let e=i.find(e=>e.name.toLowerCase()===l.toLowerCase());return e?e.displayName:l},[l,i]),c=(0,d.useMemo)(()=>({publisher:l,publisherDisplayName:o,publishers:i,setPublisher:s}),[l,o,i,s]);return(0,d.useEffect)(()=>{"All"===l&&"All"!==n&&s(n)},[n,l]),(0,r.jsx)(K,{value:c,children:e})}K.displayName="ModelsPublisherContext",Z.displayName="ModelsPublisherProvider";let ee=(0,d.createContext)(void 0);function et(){let e=(0,d.use)(ee);if(!e)throw Error("usePage must be used within a PageProvider");return e}function ea({children:e}){let[t]=(0,m.ok)(),a=(0,d.useMemo)(()=>t.has("page")?Number(t.get("page")):1,[]),[i,n]=(0,d.useState)(a),l=(0,d.useMemo)(()=>({page:i,setPage:n}),[i,n]);return(0,r.jsx)(ee,{value:l,children:e})}ee.displayName="PageContext",ea.displayName="PageProvider";let er=(0,d.createContext)(void 0);function ei(){let e=(0,d.use)(er);if(!e)throw Error("useQuery must be used within a QueryProvider");return e}function en(e){let t,a,n,l=(0,i.c)(7),{children:s}=e,[o]=(0,m.ok)();if(l[0]!==o){let e=o.get("query");t=e?e.replace(/sort:([^ ]*)/,"").trim():"",l[0]=o,l[1]=t}else t=l[1];let c=t,[u,p]=(0,d.useState)(c||"");l[2]!==u?(a={query:u,setQuery:p},l[2]=u,l[3]=a):a=l[3];let h=a;return l[4]!==s||l[5]!==h?(n=(0,r.jsx)(er,{value:h,children:s}),l[4]=s,l[5]=h,l[6]=n):n=l[6],n}er.displayName="QueryContext",en.displayName="QueryProvider";var el=a(56341);function es(e){return e.name}let eo=(0,d.createContext)(void 0);function ec(){let e=(0,d.use)(eo);if(!e)throw Error("useFeaturedListings must be used within a FeaturedListingsProvider");return e}function ed(e){let t,a,n=(0,i.c)(5),{children:s}=e,{featured:o}=(0,l.B)(),[c,m]=(0,d.useState)(o);n[0]!==c?(t={featured:c,setFeatured:m},n[0]=c,n[1]=t):t=n[1];let u=t;return n[2]!==s||n[3]!==u?(a=(0,r.jsx)(eo,{value:u,children:s}),n[2]=s,n[3]=u,n[4]=a):a=n[4],a}eo.displayName="FeaturedListingsContext",ed.displayName="FeaturedListingsProvider";let em=(0,d.createContext)(void 0);function eu(){let e=(0,d.use)(em);if(!e)throw Error("useRecommendedListings must be used within a RecommendedListingsProvider");return e}function ep(e){let t,a,n=(0,i.c)(5),{children:s}=e,{recommended:o}=(0,l.B)(),[c,m]=(0,d.useState)(o);n[0]!==c?(t={recommended:c,setRecommended:m},n[0]=c,n[1]=t):t=n[1];let u=t;return n[2]!==s||n[3]!==u?(a=(0,r.jsx)(em,{value:u,children:s}),n[2]=s,n[3]=u,n[4]=a):a=n[4],a}em.displayName="RecommendedListingsContext",ep.displayName="RecommendedListingsProvider";var eh=a(49481);let eg=(0,d.createContext)({loading:!1,legacyOnQueryChange:()=>void 0,onQueryChange:()=>void 0,filter:"All",setFilter:()=>void 0,isSearching:!1});function ef(){return(0,d.use)(eg)}function ex({children:e}){let t=(0,d.useRef)(!0),{resetSort:a,sort:n,isDefaultSort:l}=I(),{creators:s,setCreators:o}=P(),[c]=(0,m.ok)(),{query:p,setQuery:h}=ei(),{page:g,setPage:f}=et(),x=(0,d.useMemo)(()=>c.has("filter")&&"free_trial"===c.get("filter")?u:"All",[]),[v,_]=(0,d.useState)(x),{type:N,setType:k}=V(),{category:A,setCategory:S}=R(),{task:C,setTask:L}=X(),{publisher:$,setPublisher:B}=J(),{copilotApp:T,setCopilotApp:U}=q(),M=function(){let e,t=(0,i.c)(3),{setPublisher:a}=J(),{setTask:r}=X();return t[0]!==a||t[1]!==r?(e=()=>{r("all"),a("All")},t[0]=a,t[1]=r,t[2]=e):e=t[2],e}(),{fetchSearchResults:D,isSearching:z,loading:E}=function(){let e,t,a,r=(0,i.c)(14),{searchResults:n,setSearchResults:l}=w(),{setFeatured:s}=ec(),{setRecommended:o}=eu(),{query:c}=ei(),{category:m}=R(),{type:u}=V(),{copilotApp:p}=q(),h=!!(c||m||u||p),[g,f]=(0,d.useState)(h),x=function(){let e,t=(0,i.c)(3),{type:a}=V(),r=function(){let e,t=(0,i.c)(7),{setCategory:a}=R(),{setTask:r}=X(),{setPublisher:n}=J(),{setSort:l}=I(),{data:s}=O(),{categories:o,publishers:c}=s;return t[0]!==o||t[1]!==c||t[2]!==a||t[3]!==n||t[4]!==l||t[5]!==r?(e=e=>{let t=y("category",e,o);t&&a(t);let i=y("task",e,j.map(e=>e.id));i&&r(i);let s=y("publisher",e,c.map(es));s&&n(s);let d=y("sort",e,Object.keys(b));d&&l(d)},t[0]=o,t[1]=c,t[2]=a,t[3]=n,t[4]=l,t[5]=r,t[6]=e):e=t[6],e}();return t[0]!==r||t[1]!==a?(e=e=>{"models"===a&&r(e)},t[0]=r,t[1]=a,t[2]=e):e=t[2],e}();r[0]!==n.parsedQuery?(e=n.parsedQuery?JSON.stringify(n.parsedQuery):"",r[0]=n.parsedQuery,r[1]=e):e=r[1];let v=e,[_,N]=(0,d.useState)(!1),[k,A]=(0,d.useState)(void 0);r[2]!==k||r[3]!==x||r[4]!==v||r[5]!==s||r[6]!==o||r[7]!==l||r[8]!==h?(t=async e=>{let t;if(e===k)return;N(!0);let a=await (0,F.lS)(e),r=await a.json();if(h){var i;t=r.parsedQuery,l(r),0===(i=r.total)?(0,eh.i)("No results. Try searching by different keywords."):(0,eh.i)(`${i} ${1===i?"result":"results."}`)}else{s(r.featured),o(r.recommended);let e=r.searchResults??r.results;t=e?.parsedQuery,l(e)}t&&v!==JSON.stringify(t)&&x(t),f(h),N(!1),A(e)},r[2]=k,r[3]=x,r[4]=v,r[5]=s,r[6]=o,r[7]=l,r[8]=h,r[9]=t):t=r[9];let S=t;return r[10]!==S||r[11]!==g||r[12]!==_?(a={fetchSearchResults:S,isSearching:g,loading:_},r[10]=S,r[11]=g,r[12]=_,r[13]=a):a=r[13],a}(),H=(0,d.useCallback)(e=>{f(1),_("All"),o("All creators"),"models"===N?M():k(null),a(),S(null),U(null),h(e.trim())},[M,a,S,U,o,f,h,k,N]),G=(0,d.useCallback)((e,t)=>{f(1),_("All"),o("All creators"),"models"===t&&M(),a(),h(e.trim())},[M,a,o,f,h]);(0,d.useEffect)(()=>{if(E)return;if(t.current){t.current=!1;return}let e=new URLSearchParams;(p||!l)&&(l?e.set("query",p):e.set("query",`${p} sort:${n}`.trim())),v===u&&e.set("filter","free_trial"),"Verified creators"===s&&e.set("verification","verified_creator"),1!==g&&e.set("page",g.toString()),A&&e.set("category",A),$&&"All"!==$&&e.set("publisher",$),C&&"all"!==C&&e.set("task",C),N&&e.set("type",N),T&&e.set("copilot_app",T);let a=e.toString()?`/marketplace?${e.toString()}`:"/marketplace";(0,el.bj)(a),D(a)},[D,l,p,v,E,s,n,g,A,N,$,C,T]);let W=(0,d.useMemo)(()=>({loading:E,legacyOnQueryChange:H,onQueryChange:G,filter:v,setFilter:_,task:C,setTask:L,publisher:$,setPublisher:B,type:N,setType:k,isSearching:z}),[E,H,G,v,_,C,L,$,B,N,k,z]);return(0,r.jsx)(eg,{value:W,children:e})}eg.displayName="FilterContext",ex.displayName="FilterProvider";var ey=a(9141),ej=a(18310),eb=a(38621);function ev(e){return new ej.uy({key:"category",displayName:"Category",icon:eb.TagIcon,priority:1,description:"Filter by category or tag",aliases:["tag"]},e.map((e,t)=>({value:e.slug,displayName:e.name,priority:t+1})),{filterTypes:{exclusive:!1,multiKey:!1,multiValue:!1,valueless:!1}})}let e_=new ej.uy({key:"input-modality",displayName:"Input modality",priority:1,icon:eb.InboxIcon,description:"Filter by supported input modality",aliases:[]},["audio","image","text"].map((e,t)=>({value:e,displayName:e,priority:t+1})),{filterTypes:{exclusive:!1}}),eN=new ej.uy({key:"language",displayName:"Supported language",priority:1,icon:eb.TypographyIcon,description:"Filter by supported language",aliases:[]},[{id:"af",name:"Afrikaans"},{id:"ar",name:"Arabic"},{id:"bn",name:"Bengali"},{id:"zh",name:"Chinese"},{id:"zh-cn",name:"Chinese (Simplified)"},{id:"cs",name:"Czech"},{id:"da",name:"Danish"},{id:"nl",name:"Dutch"},{id:"en",name:"English"},{id:"eo",name:"Esperanto"},{id:"et",name:"Estonian"},{id:"fi",name:"Finnish"},{id:"fr",name:"French"},{id:"de",name:"German"},{id:"el",name:"Greek"},{id:"gu",name:"Gujarati"},{id:"ha",name:"Hausa"},{id:"he",name:"Hebrew"},{id:"hi",name:"Hindi"},{id:"hu",name:"Hungarian"},{id:"is",name:"Icelandic"},{id:"id",name:"Indonesian"},{id:"it",name:"Italian"},{id:"ja",name:"Japanese"},{id:"jv",name:"Javanese"},{id:"kn",name:"Kannada"},{id:"ko",name:"Korean"},{id:"lv",name:"Latvian"},{id:"ml",name:"Malayalam"},{id:"mr",name:"Marathi"},{id:"ne",name:"Nepali"},{id:"no",name:"Norwegian"},{id:"or",name:"Odia"},{id:"ps",name:"Pashto"},{id:"fa",name:"Persian"},{id:"pl",name:"Polish"},{id:"pt-br",name:"Portuguese (Brazil)"},{id:"pt",name:"Portuguese"},{id:"pa",name:"Punjabi"},{id:"ro",name:"Romanian"},{id:"ru",name:"Russian"},{id:"es",name:"Spanish"},{id:"sw",name:"Swahili"},{id:"sv",name:"Swedish"},{id:"tl",name:"Tagalog"},{id:"ta",name:"Tamil"},{id:"te",name:"Telugu"},{id:"th",name:"Thai"},{id:"tr",name:"Turkish"},{id:"uk",name:"Ukrainian"},{id:"ur",name:"Urdu"},{id:"vi",name:"Vietnamese"},{id:"cy",name:"Welsh"},{id:"yo",name:"Yoruba"}].map(({id:e,name:t},a)=>({value:e,displayName:t,priority:a+1})),{filterTypes:{exclusive:!1}}),ew=new ej.uy({key:"license",displayName:"License",priority:1,icon:eb.LawIcon,description:"Filter by license type",aliases:[]},[{id:"custom",name:"Custom"},{id:"mit",name:"MIT"}].map(({id:e,name:t},a)=>({value:e,displayName:t,priority:a+1})),{filterTypes:{exclusive:!1,multiValue:!1}}),ek=new ej.uy({key:"output-modality",displayName:"Output modality",priority:1,icon:eb.SignOutIcon,description:"Filter by supported output modality",aliases:[]},["embeddings","text"].map((e,t)=>({value:e,displayName:e,priority:t+1})),{filterTypes:{exclusive:!1}}),eA=new ej.uy({key:"task",displayName:"Capability",priority:1,icon:eb.RocketIcon,description:"Filter by model capability",aliases:[]},j.filter(e=>"all"!==e.id).map(({id:e,name:t},a)=>({value:e,priority:a+1,displayName:t})),{filterTypes:{exclusive:!1,multiValue:!1}});var eS=a(73537),eI=a(71383);let eC=[e_,eN,ew,ek,eA];function eL(){var e;let t,a,n,s,o,c,m,u,p,f,y,j,b=(0,i.c)(32),{onQueryChange:v}=ef(),{query:_}=ei(),{copilotApp:N,setCopilotApp:w}=q(),{type:k,setType:A}=V(),{category:S,setCategory:I}=R(),C=(0,eS.G7)("copilot_extensions_removal_on_marketplace"),L=(e=_,f=[],(p=C?k:N?"copilot":k)&&f.push(g("type",p)),S&&f.push(g("category",S)),(y=e?.split(" ").pop())&&y.includes(":")&&(e+=" "),`${f.join(" ")} ${e??""}`.trimStart()),[P,$]=(0,d.useState)(L),{data:F}=O(),{categories:B,publishers:T}=F,U=function(){let e,t,a=(0,i.c)(4),{categories:r}=(0,l.B)(),{apps:n}=r;a[0]!==n?(e=ev(n),a[0]=n,a[1]=e):e=a[1];let s=e;return a[2]!==s?(t=[s],a[2]=s,a[3]=t):t=a[3],t}(),M=function(){let e,t,a=(0,i.c)(4),{categories:r}=(0,l.B)(),{actions:n}=r;a[0]!==n?(e=ev(n),a[0]=n,a[1]=e):e=a[1];let s=e;return a[2]!==s?(t=[s],a[2]=s,a[3]=t):t=a[3],t}(),D=new ej.uy({key:"type",displayName:"Listing type",icon:eb.AppsIcon,priority:1,description:"Filter by listing type"},(j=[{value:"models",description:"Models only",priority:C?1:2,icon:eb.AiModelIcon,displayName:"Models"},{value:"apps",description:"Apps only",priority:C?2:3,icon:eb.AppsIcon,displayName:"Apps"},{value:"actions",description:"Actions only",priority:C?3:4,icon:eb.PlayIcon,displayName:"Actions"}],!C?[{value:"copilot",description:"Copilot extensions only",priority:1,icon:eb.CopilotIcon,displayName:"Copilot extensions"},...j]:j),{filterTypes:{exclusive:!1,multiValue:!1,multiKey:!1,valueless:!1}});b[0]!==D?(t=[D],b[0]=D,b[1]=t):t=b[1];let z=t;if(b[2]!==M||b[3]!==U||b[4]!==z||b[5]!==B||b[6]!==T||b[7]!==k){switch(a=[...z],k){case"actions":a=a.concat(M);break;case"apps":a=a.concat(U);break;case"models":{let e,t,r=a=a.concat(eC);b[9]!==T?(e=new ej.uy({key:"publisher",displayName:"Publisher",priority:1,icon:eb.CpuIcon,description:"Filter by publisher",aliases:[]},T.map((e,t)=>({value:e.name,displayName:e.name,priority:t+1})),{filterTypes:{exclusive:!1,multiValue:!1}}),b[9]=T,b[10]=e):e=b[10],r.push(e);let i=a;b[11]!==B?(t=new ej.uy({key:"category",displayName:"Category",priority:1,icon:eb.TagIcon,description:"Filter by category or tag",aliases:["tag"]},B.map((e,t)=>({value:e,displayName:e,priority:t+1})),{filterTypes:{exclusive:!1,multiKey:!1}}),b[11]=B,b[12]=t):t=b[12],i.push(t)}}b[2]=M,b[3]=U,b[4]=z,b[5]=B,b[6]=T,b[7]=k,b[8]=a}else a=b[8];let E=a;b[13]!==C||b[14]!==v||b[15]!==I||b[16]!==w||b[17]!==A?(n=e=>{let{type:t,copilotApp:a,query:r,category:i}=function(e,t){let a=e.match(h("type")),r={type:a?.[1]||null,copilotApp:null,query:e,category:null};if(r.type){r.query=x("type",r.query);let a=e.match(h("category"));"copilot"===r.type?(t||(r.copilotApp="true"),r.type="apps",t&&(r.query=x("copilot",r.query))):a&&(r.category=a[1]||null,r.query=x("category",r.query))}return r}(e,C);A(t),w(C?null:a),I(i),v(r||"",t)},b[13]=C,b[14]=v,b[15]=I,b[16]=w,b[17]=A,b[18]=n):n=b[18];let H=n;b[19]!==$?(s=e=>{$(e)},b[19]=$,b[20]=s):s=b[20];let G=s;b[21]!==H?(o=e=>{H(e.raw)},b[21]=H,b[22]=o):o=b[22];let W=o,Q=C?"Search for apps, actions, and models":"Search for Copilot extensions, apps, actions, and models";b[23]!==Q?(c={regular:Q},b[23]=Q,b[24]=c):c=b[24];let X=(0,ey.tv)(c,"Search in GitHub Marketplace");return b[25]===Symbol.for("react.memo_cache_sentinel")?(m={disableAdvancedTextFilter:!0,groupAndKeywordSupport:!1},b[25]=m):m=b[25],b[26]!==G||b[27]!==W||b[28]!==X||b[29]!==P||b[30]!==E?(u=(0,r.jsx)(eI.dJ,{id:"marketplace-search-filter","data-testid":"marketplace-search-filter",providers:E,label:"Search Marketplace",variant:"input",filterValue:P,placeholder:X,className:"marketplace-search-field-module__search-input__aj9qR",settings:m,onChange:G,onSubmit:W}),b[26]=G,b[27]=W,b[28]=X,b[29]=P,b[30]=E,b[31]=u):u=b[31],u}function eP(){let e,t,a,n,l,s,d,m,u,p,h,g,f=(0,i.c)(20);f[0]===Symbol.for("react.memo_cache_sentinel")?(e=["models","sparklesmall","sparklelarge"],f[0]=e):e=f[0];let x=e;f[1]===Symbol.for("react.memo_cache_sentinel")?(t=["arrow","donut","semicircles","workflow"],f[1]=t):t=f[1];let y=t,j=a="night"===(0,c.A)().colorMode?"dark":"light";f[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,r.jsx)("div",{className:`${o.gradient} ${o["gradient-left"]}`}),l=(0,r.jsx)("div",{className:`${o.gradient} ${o["gradient-right"]}`}),f[2]=n,f[3]=l):(n=f[2],l=f[3]),f[4]!==j?(s=(0,r.jsxs)("div",{className:"position-absolute top-0 left-0 right-0 bottom-0 overflow-hidden",children:[n,l,(0,r.jsx)("div",{className:`${o["image-container-mobile"]} md-container-xl position-relative height-full`,children:y.map(e=>(0,r.jsx)("img",{src:`/images/modules/marketplace/header/${j}/${e}.png`,srcSet:`/images/modules/marketplace/header/${j}/${e}@2x.png 2x`,className:`position-absolute ${o[e]}`,alt:""},e))})]}),f[4]=j,f[5]=s):s=f[5],f[6]!==j?(d=x.map(e=>(0,r.jsx)("img",{src:`/images/modules/marketplace/header/${j}/${e}.png`,srcSet:`/images/modules/marketplace/header/${j}/${e}@2x.png 2x`,className:`position-absolute ${o[e]}`,alt:""},e)),f[6]=j,f[7]=d):d=f[7];let b=`/images/modules/marketplace/header/${j}/copilot.png`,v=`/images/modules/marketplace/header/${j}/copilot@2x.png 2x`;return f[8]!==b||f[9]!==v?(m=(0,r.jsx)("img",{src:b,srcSet:v,className:`tmp-m-lg-4 ${o.copilot}`,alt:""}),f[8]=b,f[9]=v,f[10]=m):m=f[10],f[11]!==d||f[12]!==m?(u=(0,r.jsxs)("div",{className:`position-relative tmp-mb-4 tmp-mb-lg-0 user-select-none ${o["image-wrapper"]}`,children:[d,m]}),f[11]=d,f[12]=m,f[13]=u):u=f[13],f[14]===Symbol.for("react.memo_cache_sentinel")?(p=(0,r.jsxs)("div",{className:`text-center text-lg-left ${o["header-content"]}`,children:[(0,r.jsx)("h1",{className:"lh-condensed text-wrap-balance",children:"Enhance your workflow with extensions"}),(0,r.jsx)("p",{className:"fgColor-muted f3",children:"Tools from the community and partners to simplify tasks and automate processes"}),(0,r.jsx)(eL,{})]}),f[14]=p):p=f[14],f[15]!==u?(h=(0,r.jsxs)("div",{className:"container-xl m-auto width-full d-flex flex-items-center flex-column flex-lg-row-reverse flex-justify-between gap-4 tmp-px-3 tmp-pl-lg-4 tmp-pr-lg-5 tmp-pl-xl-3",children:[u,p]}),f[15]=u,f[16]=h):h=f[16],f[17]!==h||f[18]!==s?(g=(0,r.jsxs)("header",{className:`mb-2 border-bottom borderColor-default d-flex flex-items-start tmp-py-5 tmp-py-lg-4 position-relative ${o.header}`,children:[s,h]}),f[17]=h,f[18]=s,f[19]=g):g=f[19],g}eL.displayName="MarketplaceSearchField",eP.displayName="MarketplaceHeader";var e$=a(32694),eF=a(21373),eB=a(26707);function eT(e){let t,a,n,l,s,o,c,d,m,u,p,h,g,f,x,y,j,b,v,_,N,w,k,A,S,I,C,L=(0,i.c)(55),{categories:P}=e,{copilotApp:$}=q(),{type:F}=V(),{category:B}=R();L[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,eS.G7)("copilot_extensions_removal_on_marketplace"),L[0]=t):t=L[0];let T=t;e:{if(F||B||$){if("apps"===F&&"true"===$){a=T?"":"copilot";break e}else if(B){a=B||"";break e}}else{a="featured";break e}a=""}let U=a;t:{if(F&&(T||!$)){if("apps"===F){n="apps";break t}else if("actions"===F){n="actions";break t}else if("models"===F){n="models";break t}}n=""}let O=n;L[1]!==U?(l="featured"===U?{"aria-current":"page"}:{},L[1]=U,L[2]=l):l=L[2],L[3]===Symbol.for("react.memo_cache_sentinel")?(s=(0,r.jsx)(e$.c.LeadingVisual,{children:(0,r.jsx)(eb.FlameIcon,{})}),L[3]=s):s=L[3],L[4]!==l?(o=(0,r.jsxs)(e$.c.Item,{href:"/marketplace",...l,children:[s,"Featured"]}),L[4]=l,L[5]=o):o=L[5],L[6]!==U?(c=T?null:(0,r.jsxs)(e$.c.Item,{href:"/marketplace?type=apps&copilot_app=true",..."copilot"===U?{"aria-current":"page"}:{},children:[(0,r.jsx)(e$.c.LeadingVisual,{children:(0,r.jsx)(eb.CopilotIcon,{})}),"Copilot"]}),L[6]=U,L[7]=c):c=L[7];let M="models"===O;L[8]===Symbol.for("react.memo_cache_sentinel")?(d=(0,r.jsx)(e$.c.LeadingVisual,{children:(0,r.jsx)(eb.AiModelIcon,{})}),L[8]=d):d=L[8];let D="models"===O?"page":void 0;L[9]===Symbol.for("react.memo_cache_sentinel")?(m=(0,r.jsx)(e$.c.LeadingVisual,{children:(0,r.jsx)(eb.ListUnorderedIcon,{})}),L[9]=m):m=L[9],L[10]!==D?(u=(0,r.jsxs)(e$.c.Item,{href:"/marketplace?type=models","aria-current":D,children:[m,"Catalog"]}),L[10]=D,L[11]=u):u=L[11],L[12]===Symbol.for("react.memo_cache_sentinel")?(p=(0,r.jsx)(e$.c.LeadingVisual,{children:(0,r.jsx)(eb.CommandPaletteIcon,{})}),L[12]=p):p=L[12],L[13]===Symbol.for("react.memo_cache_sentinel")?(h=(0,r.jsxs)(e$.c.Item,{href:"/marketplace/models",children:[p,"Playground",(0,r.jsx)(e$.c.TrailingVisual,{children:(0,r.jsx)(eb.ArrowUpRightIcon,{})})]}),L[13]=h):h=L[13],L[14]!==u?(g=(0,r.jsxs)(e$.c.SubNav,{children:[u,h]}),L[14]=u,L[15]=g):g=L[15],L[16]!==g||L[17]!==M?(f=(0,r.jsxs)(e$.c.Item,{defaultOpen:M,children:[d,"Models",g]}),L[16]=g,L[17]=M,L[18]=f):f=L[18];let z="apps"===O;L[19]===Symbol.for("react.memo_cache_sentinel")?(x=(0,r.jsx)(e$.c.LeadingVisual,{children:(0,r.jsx)(eb.AppsIcon,{})}),L[19]=x):x=L[19],L[20]!==U||L[21]!==O?(y=(0,r.jsx)(e$.c.Item,{href:"/marketplace?type=apps",..."apps"===O&&""===U?{"aria-current":"page"}:{},children:"All apps"}),L[20]=U,L[21]=O,L[22]=y):y=L[22],L[23]!==P?.apps||L[24]!==U||L[25]!==O?(j=P?.apps?.map(e=>(0,r.jsx)(e$.c.Item,{href:`/marketplace?type=apps&category=${e.slug}`,..."apps"===O&&U===e.slug?{"aria-current":"page"}:{},children:e.name},`apps-category-${e.slug}`)),L[23]=P?.apps,L[24]=U,L[25]=O,L[26]=j):j=L[26],L[27]!==y||L[28]!==j?(b=(0,r.jsxs)(e$.c.SubNav,{children:[y,j]}),L[27]=y,L[28]=j,L[29]=b):b=L[29],L[30]!==z||L[31]!==b?(v=(0,r.jsxs)(e$.c.Item,{defaultOpen:z,children:[x,"Apps",b]}),L[30]=z,L[31]=b,L[32]=v):v=L[32];let E="actions"===O;return L[33]===Symbol.for("react.memo_cache_sentinel")?(_=(0,r.jsx)(e$.c.LeadingVisual,{children:(0,r.jsx)(eb.PlayIcon,{})}),L[33]=_):_=L[33],L[34]!==U||L[35]!==O?(N=(0,r.jsx)(e$.c.Item,{href:"/marketplace?type=actions",..."actions"===O&&""===U?{"aria-current":"page"}:{},children:"All actions"}),L[34]=U,L[35]=O,L[36]=N):N=L[36],L[37]!==P?.actions||L[38]!==U||L[39]!==O?(w=P?.actions?.map(e=>(0,r.jsx)(e$.c.Item,{href:`/marketplace?type=actions&category=${e.slug}`,..."actions"===O&&U===e.slug?{"aria-current":"page"}:{},children:e.name},`actions-category-${e.slug}`)),L[37]=P?.actions,L[38]=U,L[39]=O,L[40]=w):w=L[40],L[41]!==N||L[42]!==w?(k=(0,r.jsxs)(e$.c.SubNav,{children:[N,w]}),L[41]=N,L[42]=w,L[43]=k):k=L[43],L[44]!==E||L[45]!==k?(A=(0,r.jsxs)(e$.c.Item,{defaultOpen:E,children:[_,"Actions",k]}),L[44]=E,L[45]=k,L[46]=A):A=L[46],L[47]===Symbol.for("react.memo_cache_sentinel")?(S=(0,r.jsx)(e$.c.Divider,{}),L[47]=S):S=L[47],L[48]===Symbol.for("react.memo_cache_sentinel")?(I=(0,r.jsxs)(e$.c.Item,{href:"/marketplace/new",children:[(0,r.jsx)(e$.c.LeadingVisual,{children:(0,r.jsx)(eb.PlusIcon,{})}),"Create a new extension"]}),L[48]=I):I=L[48],L[49]!==f||L[50]!==v||L[51]!==A||L[52]!==o||L[53]!==c?(C=(0,r.jsxs)(e$.c,{children:[o,c,f,v,A,S,I]}),L[49]=f,L[50]=v,L[51]=A,L[52]=o,L[53]=c,L[54]=C):C=L[54],C}function eU(e){let t,a,n,l,s,o=(0,i.c)(10),{categories:c}=e,[m,u]=(0,d.useState)(!1);o[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>u(!1),o[0]=t):t=o[0];let p=t;return o[1]!==c?(a=(0,r.jsx)("div",{className:"hide-sm hide-md overflow-hidden",children:(0,r.jsx)(eT,{categories:c})}),o[1]=c,o[2]=a):a=o[2],o[3]===Symbol.for("react.memo_cache_sentinel")?(n=(0,r.jsx)(eF.Q,{block:!0,className:"hide-lg hide-xl",onClick:()=>u(!0),children:"Menu"}),o[3]=n):n=o[3],o[4]!==c||o[5]!==m?(l=m&&(0,r.jsx)(eB.l,{title:"Menu",onClose:p,position:{narrow:"bottom"},children:(0,r.jsx)("div",{className:"marketplace-navigation-module__negative-margin__jlSoQ",children:(0,r.jsx)(eT,{categories:c})})}),o[4]=c,o[5]=m,o[6]=l):l=o[6],o[7]!==a||o[8]!==l?(s=(0,r.jsxs)(r.Fragment,{children:[a,n,l]}),o[7]=a,o[8]=l,o[9]=s):s=o[9],s}function eO(e){let t,a=(0,i.c)(2),{children:n}=e;return a[0]!==n?(t=(0,r.jsx)(k,{children:(0,r.jsx)(C,{children:(0,r.jsx)(ed,{children:(0,r.jsx)(ep,{children:(0,r.jsx)($,{children:(0,r.jsx)(D,{children:(0,r.jsx)(E,{children:(0,r.jsx)(W,{children:(0,r.jsx)(Y,{children:(0,r.jsx)(Z,{children:(0,r.jsx)(ea,{children:(0,r.jsx)(en,{children:(0,r.jsx)(ex,{children:n})})})})})})})})})})})})}),a[0]=n,a[1]=t):t=a[1],t}eT.displayName="Menu",eU.displayName="MarketplaceNavigation",eO.displayName="SearchAndFilterProviderStack";var eM=a(69538),eR=a(46249),eD=a(1761),ez=a(4925),eV=a(66743),eE=a(16497),eH=a(74073);function eG(e){let t,a,n,l=(0,i.c)(16),{listing:s,additionalDivClasses:o,additionalLogoClasses:c}=e,d=void 0===c?"":c,m="ffffff";"marketplace_listing"===s.type?m=s.bgColor:"repository_action"===s.type&&(m=s.color);let u=`flex-shrink-0 rounded-3 overflow-hidden ${eM.A["marketplace-logo"]} ${void 0===o?"":o}`,p=`#${m}`,h="ffffff"===m?"var(--fgColor-black)":"var(--fgColor-white)";return l[0]!==p||l[1]!==h?(t={backgroundColor:p,color:h},l[0]=p,l[1]=h,l[2]=t):t=l[2],l[3]!==d||l[4]!==s.dark_mode_icon||l[5]!==s.iconSvg||l[6]!==s.listingLogoUrl||l[7]!==s.logo_url||l[8]!==s.name||l[9]!==s.publisher||l[10]!==s.type?(a="marketplace_listing"===s.type?(0,r.jsx)("img",{src:s.listingLogoUrl,alt:`${s.name} logo`,className:`${eM.A["marketplace-logo-img"]} ${d}`}):"model"===s.type?(0,r.jsx)(eH.K,{logoUrl:s.logo_url,darkModeIcon:s.dark_mode_icon,publisher:s.publisher,size:24,className:`${eM.A["marketplace-model-avatar-icon"]} box-shadow-none ${d}`}):s.iconSvg?(0,r.jsx)(eE.$6,{html:s.iconSvg,className:`${eM.A["marketplace-logo-svg"]} ${d}`}):(0,r.jsx)(eb.PlayIcon,{className:`${eM.A["marketplace-logo-svg"]} ${d}`}),l[3]=d,l[4]=s.dark_mode_icon,l[5]=s.iconSvg,l[6]=s.listingLogoUrl,l[7]=s.logo_url,l[8]=s.name,l[9]=s.publisher,l[10]=s.type,l[11]=a):a=l[11],l[12]!==u||l[13]!==t||l[14]!==a?(n=(0,r.jsx)("div",{"data-testid":"logo",className:u,style:t,children:a}),l[12]=u,l[13]=t,l[14]=a,l[15]=n):n=l[15],n}eG.displayName="ListingLogo";let eq="MarketplaceItem-module__VerifiedIcon__kD7Uy";function eW(e){let t,a,n,l,s,o,c,d,u=(0,i.c)(36),{listing:p,isFeatured:h}=e,g=null;u[0]!==p.description||u[1]!==p.isVerifiedOwner||u[2]!==p.model_url||u[3]!==p.publisher||u[4]!==p.shortDescription||u[5]!==p.slug||u[6]!==p.summary||u[7]!==p.type?(l="",t=!1,a="",n="","marketplace_listing"===p.type?(g=p.shortDescription,l=`/marketplace/${p.slug}`,t=p.isVerifiedOwner):"repository_action"===p.type?(g=p.description,l=`/marketplace/actions/${p.slug}`,t=p.isVerifiedOwner):"model"===p.type&&(g=p.summary,l=p.model_url,t=!1,"AI21 Labs"===p.publisher&&(a=eM.A["marketplace-logo--jamba-div"]||"",n=eM.A["marketplace-logo--jamba-logo"]||"")),u[0]=p.description,u[1]=p.isVerifiedOwner,u[2]=p.model_url,u[3]=p.publisher,u[4]=p.shortDescription,u[5]=p.slug,u[6]=p.summary,u[7]=p.type,u[8]=t,u[9]=a,u[10]=n,u[11]=l,u[12]=g):(t=u[8],a=u[9],n=u[10],l=u[11],g=u[12]);let f="repository_action"===p.type?"Action":"model"===p.type?"Model":p.copilotApp?"Copilot":"App",x=(0,m.zy)();u[13]!==p.id||u[14]!==p.type||u[15]!==l||u[16]!==x?(s=()=>{"marketplace_listing"===p.type&&(0,eV.BI)("marketplace_listing_click",{marketplace_listing_id:p.id,source_url:x.pathname,destination_url:l})},u[13]=p.id,u[14]=p.type,u[15]=l,u[16]=x,u[17]=s):s=u[17];let y=s,j=`position-relative border rounded-2 d-flex ${eM.A["marketplace-item"]} ${h?"flex-column flex-items-center tmp-p-4":"gap-3 tmp-p-3"}`;return u[18]!==a||u[19]!==n||u[20]!==p?(o=(0,r.jsx)(eG,{listing:p,additionalDivClasses:a,additionalLogoClasses:n}),u[18]=a,u[19]=n,u[20]=p,u[21]=o):o=u[21],u[22]!==g||u[23]!==h||u[24]!==t||u[25]!==p.friendly_name||u[26]!==p.name||u[27]!==p.type||u[28]!==f||u[29]!==l||u[30]!==y?(c=h?(0,r.jsxs)("div",{className:"d-flex flex-column flex-items-center height-full width-full text-center","data-testid":"featured-item",children:[(0,r.jsxs)(eR.A,{as:"h3",className:"tmp-mt-3 d-flex f4 lh-condensed",children:[(0,r.jsx)("a",{href:l,className:`fgColor-default line-clamp-1 ${eM.A["marketplace-item-link"]}`,onClick:y,children:"model"===p.type?p.friendly_name:p.name}),t&&(0,r.jsx)(eb.VerifiedIcon,{className:eq})]}),(0,r.jsx)("p",{className:"mt-2 mb-auto height-full text-small fgColor-muted line-clamp-2",children:g}),(0,r.jsx)(ez.A,{variant:"secondary",size:"large","data-testid":"listing-type-label",className:"MarketplaceItem-module__Label__mahEy",children:f})]}):(0,r.jsxs)("div",{className:"flex-1","data-testid":"non-featured-item",style:{minWidth:0},children:[(0,r.jsxs)("div",{className:"d-flex flex-justify-between flex-items-start gap-3",children:[(0,r.jsxs)(eR.A,{as:"h3",className:"d-flex f4 lh-condensed",children:[(0,r.jsx)("a",{href:l,className:`${eM.A["marketplace-item-link"]} line-clamp-1`,onClick:y,children:"model"===p.type?p.friendly_name:p.name}),t&&(0,r.jsx)(eb.VerifiedIcon,{className:eq})]}),(0,r.jsx)(ez.A,{variant:"secondary","data-testid":"listing-type-label",children:f})]}),(0,r.jsx)("p",{className:"mt-1 mb-0 text-small fgColor-muted line-clamp-2",children:g})]}),u[22]=g,u[23]=h,u[24]=t,u[25]=p.friendly_name,u[26]=p.name,u[27]=p.type,u[28]=f,u[29]=l,u[30]=y,u[31]=c):c=u[31],u[32]!==j||u[33]!==o||u[34]!==c?(d=(0,r.jsxs)("div",{className:j,"data-testid":"marketplace-item",children:[o,c]}),u[32]=j,u[33]=o,u[34]=c,u[35]=d):d=u[35],d}eW.displayName="FeaturedItem";let eQ="marketplace-module__marketplace-content-container__NsQ4h",eX="marketplace-module__marketplace-content-container--less-padding__yAXoP";var eY=a(22216),eK=a(70944),eJ=a(20757),eZ=a(18990);function e0(){let{sort:e,setSort:t}=I();return(0,r.jsxs)(eJ.W,{children:[(0,r.jsxs)(eJ.W.Button,{children:[(0,r.jsx)("span",{className:"fgColor-muted",children:"Sort: "}),b[e]??e]}),(0,r.jsx)(eJ.W.Overlay,{width:"small",children:(0,r.jsx)(eZ.l,{selectionVariant:"single","data-testid":"creator-menu",children:Object.entries(b).map(([a,i])=>(0,r.jsx)(eZ.l.Item,{selected:a===e,onSelect:()=>t(a),children:i},a))})})]})}e0.displayName="ModelsSortMenu";var e1=a(33542);function e2(){let e,t,{publisher:a,publisherDisplayName:i,publishers:n,setPublisher:l}=J(),{task:s,setTask:o}=X(),{category:c,setCategory:d}=R(),{setPage:m}=et(),{data:{categories:u}}=O(),p=e=>{m(1),l(e)},h=e=>{m(1),d(e)},g=v(u.find(e=>e===c));return(0,r.jsxs)("div",{className:"d-flex gap-2 flex-wrap",children:[(0,r.jsxs)(eJ.W,{children:[(0,r.jsxs)(eJ.W.Button,{...(0,e1.G)("family-button"),children:[(0,r.jsx)("span",{className:"fgColor-muted",children:"Publisher:"})," ",i??a]}),(0,r.jsx)(eJ.W.Overlay,{width:"small",children:(0,r.jsxs)(eZ.l,{selectionVariant:"single",children:[(0,r.jsx)(eZ.l.Item,{selected:"All"===a||!a,onSelect:()=>p("All"),children:"All"},"All"),n.map(({displayName:e,name:t})=>(0,r.jsx)(eZ.l.Item,{selected:t.toLowerCase()===a?.toLowerCase(),onSelect:()=>p(t),children:e??t},t))]})})]}),(0,r.jsxs)(eJ.W,{children:[(0,r.jsxs)(eJ.W.Button,{"data-testid":"task-button",children:[(0,r.jsx)("span",{className:"fgColor-muted",children:"Capability:"})," ",(e=s?.toLowerCase()??"all",t=j.find(t=>t.id===e),t?.name??s)]}),(0,r.jsx)(eJ.W.Overlay,{width:"small",children:(0,r.jsx)(eZ.l,{selectionVariant:"single",children:j.map(({id:e,name:t})=>(0,r.jsx)(eZ.l.Item,{selected:e===s,onSelect:()=>{m(1),o(e)},children:t},e))})})]}),(0,r.jsxs)(eJ.W,{children:[(0,r.jsxs)(eJ.W.Button,{"data-testid":"category-button",children:[(0,r.jsx)("span",{className:"fgColor-muted",children:"Category:"})," ",g]}),(0,r.jsx)(eJ.W.Overlay,{width:"small",children:(0,r.jsxs)(eZ.l,{selectionVariant:"single",children:[(0,r.jsx)(eZ.l.Item,{selected:"All"===c||!c,onSelect:()=>h("All"),children:"All"},"All"),u.map(e=>(0,r.jsx)(eZ.l.Item,{selected:e===c||"All"===e&&!c,onSelect:()=>h(e),children:v(e)},e))]})})]}),(0,r.jsx)(e0,{})]})}function e3(){let e,t,a,n,l,s,o,c,d,m,u,p,h,g,f,x,y,j,b,v,_,N,w=(0,i.c)(45);w[0]===Symbol.for("react.memo_cache_sentinel")?(e={all:"All",free_trial:"Free trial"},w[0]=e):e=w[0];let k=e,{filter:A,setFilter:S}=ef(),{setPage:C}=et(),{type:L}=V(),{creators:$,setCreators:F}=P(),{sort:B,setSort:T}=I();w[1]===Symbol.for("react.memo_cache_sentinel")?(t=["All creators","Verified creators"],w[1]=t):t=w[1];let U=t;w[2]===Symbol.for("react.memo_cache_sentinel")?(a={"popularity-desc":"Popularity","created-desc":"Recently added","match-desc":"Best match"},w[2]=a):a=w[2];let O=a;switch(B){case"popularity-desc":n=O["popularity-desc"];break;case"created-desc":n=O["created-desc"];break;case"match-desc":n=O["match-desc"];break;default:n=""}let M=n;w[3]!==F||w[4]!==C?(l=e=>{C(1),F(e)},w[3]=F,w[4]=C,w[5]=l):l=w[5];let R=l;w[6]!==S||w[7]!==C?(s=e=>{C(1),S(e)},w[6]=S,w[7]=C,w[8]=s):s=w[8];let D=s;w[9]!==T?(o=e=>{T(e)},w[9]=T,w[10]=o):o=w[10];let z=o;if("models"===L){let e;return w[11]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsx)(e2,{}),w[11]=e):e=w[11],e}return w[12]===Symbol.for("react.memo_cache_sentinel")?(c=(0,r.jsx)("span",{className:"fgColor-muted",children:"Filter:"}),w[12]=c):c=w[12],w[13]!==A?(d=(0,r.jsxs)(eJ.W.Button,{"data-testid":"filter-button",children:[c," ",A]}),w[13]=A,w[14]=d):d=w[14],w[15]===Symbol.for("react.memo_cache_sentinel")?(m=Object.entries(k),w[15]=m):m=w[15],w[16]!==A||w[17]!==D?(u=(0,r.jsx)(eJ.W.Overlay,{width:"small",children:(0,r.jsx)(eZ.l,{selectionVariant:"single","data-testid":"filter-menu",children:m.map(e=>{let[t,a]=e;return(0,r.jsx)(eZ.l.Item,{selected:a===A,onSelect:()=>D(a),children:a},t)})})}),w[16]=A,w[17]=D,w[18]=u):u=w[18],w[19]!==u||w[20]!==d?(p=(0,r.jsxs)(eJ.W,{children:[d,u]}),w[19]=u,w[20]=d,w[21]=p):p=w[21],w[22]===Symbol.for("react.memo_cache_sentinel")?(h=(0,r.jsx)("span",{className:"fgColor-muted",children:"By:"}),w[22]=h):h=w[22],w[23]!==$?(g=(0,r.jsxs)(eJ.W.Button,{"data-testid":"creator-button",children:[h," ",$]}),w[23]=$,w[24]=g):g=w[24],w[25]!==$||w[26]!==R?(f=(0,r.jsx)(eJ.W.Overlay,{width:"small",children:(0,r.jsx)(eZ.l,{selectionVariant:"single","data-testid":"creator-menu",children:U.map(e=>(0,r.jsx)(eZ.l.Item,{selected:e===$,onSelect:()=>R(e),children:e},e))})}),w[25]=$,w[26]=R,w[27]=f):f=w[27],w[28]!==g||w[29]!==f?(x=(0,r.jsxs)(eJ.W,{children:[g,f]}),w[28]=g,w[29]=f,w[30]=x):x=w[30],w[31]===Symbol.for("react.memo_cache_sentinel")?(y=(0,r.jsx)("span",{className:"fgColor-muted",children:"Sort:"}),w[31]=y):y=w[31],w[32]!==M?(j=(0,r.jsxs)(eJ.W.Button,{"data-testid":"sort-button",children:[y," ",M]}),w[32]=M,w[33]=j):j=w[33],w[34]===Symbol.for("react.memo_cache_sentinel")?(b=Object.entries(O),w[34]=b):b=w[34],w[35]!==z||w[36]!==B?(v=(0,r.jsx)(eJ.W.Overlay,{width:"small",children:(0,r.jsx)(eZ.l,{selectionVariant:"single","data-testid":"sort-menu",children:b.map(e=>{let[t,a]=e;return(0,r.jsx)(eZ.l.Item,{selected:t===B,onSelect:()=>z(t),children:a},t)})})}),w[35]=z,w[36]=B,w[37]=v):v=w[37],w[38]!==j||w[39]!==v?(_=(0,r.jsxs)(eJ.W,{children:[j,v]}),w[38]=j,w[39]=v,w[40]=_):_=w[40],w[41]!==p||w[42]!==x||w[43]!==_?(N=(0,r.jsxs)("div",{className:"d-flex gap-2 flex-wrap",children:[p,x,_]}),w[41]=p,w[42]=x,w[43]=_,w[44]=N):N=w[44],N}e2.displayName="ModelsFilters",e3.displayName="Filters";var e4=a(56133),e5=a(73077),e6=a(26933),e7=a(69464),e8=a(53181);let e9="https://gh.io/models-feedback";function te(){let[e,t]=(0,d.useState)("recent"),a=(0,eS.G7)("lifecycle_label_name_updates"),{query:i}=ei(),{searchResults:n}=w(),{recentModels:s,popularModels:o}=(0,l.B)(),c=(0,d.useMemo)(()=>"popular"===e?o:s,[e,o,s]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"tmp-mb-4 d-flex flex-column flex-sm-row flex-justify-between flex-wrap gap-2",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h2",{className:"f2 lh-condensed",...(0,e1.G)("heading-text"),children:i?`Search results for \u{201C}${i}\u{201D}`:"Models"}),(0,r.jsx)("span",{className:"fgColor-muted",...(0,e1.G)("detail-text"),children:i?`${n.total} ${1===n.total?"result":"results"}`:(0,r.jsx)("span",{children:"Create applications with GitHub powered by AI Models. Free to use, quick personal setup, and seamless model switching to help you build AI products using the latest models."})})]}),a?(0,r.jsx)(e6.X,{feedbackUrl:e9}):(0,r.jsxs)("div",{className:"d-flex flex-items-center gap-2",children:[(0,r.jsx)(ez.A,{variant:"success",children:"Beta"}),(0,r.jsx)(e4.A,{href:e9,tabIndex:0,children:"Give feedback"})]})]}),(0,r.jsxs)("div",{className:"tmp-mb-4 d-flex flex-items-center justify-center ResultListHeader-module__nav__DIt15",children:[(0,r.jsx)("div",{className:"flex-1",children:(0,r.jsxs)(eD.O,{"aria-label":"Featured models sort order",variant:"flush",children:[(0,r.jsx)(eD.O.Item,{as:"button","aria-current":"recent"===e?"page":void 0,onSelect:()=>t("recent"),children:"Recently added"}),(0,r.jsx)(eD.O.Item,{as:"button",type:"button","aria-current":"popular"===e?"page":void 0,onSelect:()=>t("popular"),children:"Most popular"})]})}),(0,r.jsx)(e5.z,{href:(0,e8.RS)(),variant:"primary",leadingVisual:(0,r.jsx)(eb.CommandPaletteIcon,{}),tabIndex:0,children:"Try models in playground"})]}),(0,r.jsx)("div",{className:`tmp-mb-4 ${eM.A["marketplace-featured-grid"]} width-fit`,children:c.map(e=>(0,r.jsx)(e7.A,{model:e,isFeatured:!0},e.id))})]})}function tt(e){let t,a,n,l,s,o,c,d=(0,i.c)(20),{categories:m}=e,{category:u}=R(),{query:p}=ei(),{copilotApp:h}=q(),{type:g}=V(),{searchResults:f}=w();if(d[0]!==m.actions||d[1]!==m.apps){for(let e of(t=new Map,[...m.apps,...m.actions]))t.set(e.slug,e);d[0]=m.actions,d[1]=m.apps,d[2]=t}else t=d[2];let x=t;e:{if(p){a=`Search results for \u{201C}${p}\u{201D}`;break e}if(h){a="Copilot Extensions";break e}if(u){let e;d[3]!==x||d[4]!==u?(e=u?x.get(u):void 0,d[3]=x,d[4]=u,d[5]=e):e=d[5];let t=e;a=t?`${t.name} ${"actions"===g?"actions":"apps"}`:"Apps";break e}else if("actions"===g){a="Actions";break e}else if("apps"===g){a="Apps";break e}a="Search results"}let y=a;t:{if(p){n=`${f.total} ${1===f.total?"result":"results"}`;break t}if(h){n="Extend Copilot capabilities using third party tools, services, and data";break t}if(u){let e,t;d[6]!==x||d[7]!==u?(e=u?x.get(u):void 0,d[6]=x,d[7]=u,d[8]=e):e=d[8];let a=e;d[9]!==a?(t=a?(0,r.jsx)(eE.$6,{html:a.description_html}):"",d[9]=a,d[10]=t):t=d[10],n=t;break t}else if("actions"===g){n="Automate your workflow from idea to production";break t}else if("apps"===g){n="Build on your workflow with apps that integrate with GitHub";break t}n=void 0}let j=n;if("models"===g){let e;return d[11]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsx)(te,{}),d[11]=e):e=d[11],e}return d[12]===Symbol.for("react.memo_cache_sentinel")?(l=(0,e1.G)("heading-text"),d[12]=l):l=d[12],d[13]!==y?(s=(0,r.jsx)("h2",{className:"f2 lh-condensed",...l,children:y}),d[13]=y,d[14]=s):s=d[14],d[15]!==j?(o=j&&(0,r.jsx)("span",{className:"fgColor-muted",...(0,e1.G)("detail-text"),children:j}),d[15]=j,d[16]=o):o=d[16],d[17]!==s||d[18]!==o?(c=(0,r.jsx)("div",{className:"d-flex flex-column flex-sm-row flex-justify-between flex-wrap gap-2",children:(0,r.jsxs)("div",{children:[s,o]})}),d[17]=s,d[18]=o,d[19]=c):c=d[19],c}function ta(e){let t,a,n,l,s,o=(0,i.c)(13),{categories:c}=e,{searchResults:d}=w(),{page:m,setPage:u}=et();o[0]!==u?(t=(e,t)=>{e.preventDefault(),u(t)},o[0]=u,o[1]=t):t=o[1];let p=t;return o[2]!==c?(a=(0,r.jsx)(tt,{categories:c}),o[2]=c,o[3]=a):a=o[3],o[4]===Symbol.for("react.memo_cache_sentinel")?(n=(0,r.jsx)("div",{className:"tmp-mt-3",children:(0,r.jsx)(e3,{})}),o[4]=n):n=o[4],o[5]!==p||o[6]!==m||o[7]!==d.results||o[8]!==d.totalPages?(l=d.results.length>0?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:`tmp-mt-4 ${1===d.results.length?"marketplace-module__marketplace-list-grid-one__dYNBw":eM.A["marketplace-list-grid"]}`,"data-testid":"search-results",children:d.results.map(tr)}),(d.totalPages??1)>1&&(0,r.jsx)(eY.A,{pageCount:d.totalPages??1,currentPage:m,onPageChange:p,showPages:{narrow:!1}})]}):(0,r.jsx)("div",{className:"tmp-mt-4",children:(0,r.jsxs)(eK.E,{border:!0,children:[(0,r.jsx)(eK.E.Visual,{children:(0,r.jsx)(eb.SearchIcon,{size:"medium"})}),(0,r.jsx)(eK.E.Heading,{children:"No results"}),(0,r.jsx)(eK.E.Description,{children:"Try searching by different keywords."})]})}),o[5]=p,o[6]=m,o[7]=d.results,o[8]=d.totalPages,o[9]=l):l=o[9],o[10]!==a||o[11]!==l?(s=(0,r.jsxs)(r.Fragment,{children:[a,n,l]}),o[10]=a,o[11]=l,o[12]=s):s=o[12],s}function tr(e){return(0,r.jsx)(eW,{listing:e,isFeatured:!1},`${e.type}-${e.id}`)}function ti(e){let t,a,n,s,o,c=(0,i.c)(12),{payload:m}=e,{featuredModels:u}=(0,l.B)(),{isSearching:p}=ef(),{featured:h}=ec(),{recommended:g}=eu(),[f,x]=(0,d.useState)("recommended");c[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,eS.G7)("copilot_extensions_removal_on_marketplace"),c[0]=t):t=c[0];let y=t;c[1]===Symbol.for("react.memo_cache_sentinel")?(a=[],c[1]=a):a=c[1];let[j,b]=(0,d.useState)(a);return c[2]===Symbol.for("react.memo_cache_sentinel")?(n=()=>{!async function(){try{let e=await (0,F.DI)("/marketplace/recently-added");b(await e.json())}catch{b([])}}()},s=[],c[2]=n,c[3]=s):(n=c[2],s=c[3]),(0,d.useEffect)(n,s),c[4]!==f||c[5]!==h||c[6]!==u||c[7]!==p||c[8]!==m||c[9]!==j||c[10]!==g?(o=(0,r.jsx)(r.Fragment,{children:p?(0,r.jsx)(ta,{categories:m.categories}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(eR.A,{as:"h2",className:"f2",children:"Models for your every use case"}),(0,r.jsx)("span",{className:"fgColor-muted",children:"Try, test, and deploy from a wide range of model types, sizes, and specializations."}),(0,r.jsx)("div",{className:`tmp-mt-4 ${eM.A["marketplace-featured-grid"]} width-fit`,children:u.map(to)}),!y&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(eR.A,{as:"h2",className:"tmp-mt-4 f2",children:"Discover apps with Copilot extensions"}),(0,r.jsx)("span",{className:"fgColor-muted",children:"Your favorite tools now work with GitHub Copilot."})]}),(0,r.jsx)("div",{className:`tmp-mt-4 ${eM.A["marketplace-featured-grid"]} width-fit`,children:h.map(ts)}),(0,r.jsx)("div",{className:"IndexAndSearchContent-module__UnderlineNavContainer__ldWQc",children:(0,r.jsxs)(eD.O,{"aria-label":"View recommended or recent marketplace listings",children:[(0,r.jsx)(eD.O.Item,{as:"button","aria-current":"recommended"===f?"page":void 0,onSelect:e=>{e?.preventDefault(),x("recommended")},children:"Recommended"}),(0,r.jsx)(eD.O.Item,{as:"button","aria-current":"recentlyAdded"===f?"page":void 0,onSelect:e=>{e?.preventDefault(),x("recentlyAdded")},children:"Recently added"})]})}),"recommended"===f&&(0,r.jsx)("div",{className:`tmp-mt-4 ${eM.A["marketplace-list-grid"]}`,children:g.map(tl)}),"recentlyAdded"===f&&(0,r.jsx)("div",{className:`tmp-mt-4 ${eM.A["marketplace-list-grid"]}`,children:j.map(tn)})]})}),c[4]=f,c[5]=h,c[6]=u,c[7]=p,c[8]=m,c[9]=j,c[10]=g,c[11]=o):o=c[11],o}function tn(e){return(0,r.jsx)(eW,{listing:e,isFeatured:!1},`${e.type}-${e.id}`)}function tl(e){return(0,r.jsx)(eW,{listing:e,isFeatured:!1},`${e.type}-${e.id}`)}function ts(e){return(0,r.jsx)(eW,{listing:e,isFeatured:!0},`${e.type}-${e.id}`)}function to(e){return(0,r.jsx)(e7.A,{model:e,isFeatured:!0},e.id)}function tc(){let e,t,a,n,o=(0,i.c)(8),c=(0,l.B)();return o[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsx)(eP,{}),o[0]=e):e=o[0],o[1]!==c.categories?(t=(0,r.jsx)(s.M.Pane,{position:"start",children:(0,r.jsx)(eU,{categories:c.categories})}),o[1]=c.categories,o[2]=t):t=o[2],o[3]!==c?(a=(0,r.jsx)(s.M.Content,{as:"div",children:(0,r.jsx)(ti,{payload:c})}),o[3]=c,o[4]=a):a=o[4],o[5]!==t||o[6]!==a?(n=(0,r.jsxs)(eO,{children:[e,(0,r.jsx)("div",{"data-hpc":!0,children:(0,r.jsxs)(s.M,{children:[t,a]})})]}),o[5]=t,o[6]=a,o[7]=n):n=o[7],n}te.displayName="ResultListHeader",tt.displayName="ResultListHeader",ta.displayName="ResultList",ti.displayName="IndexAndSearchContent",tc.displayName="Index";var td=a(46251);let tm=e=>{let t,a,n,l,o,c,d,m=(0,i.c)(14),{header:u,body:p,sidebar:h}=e;return m[0]!==u?(t=(0,r.jsx)(s.M.Header,{children:u}),m[0]=u,m[1]=t):t=m[1],m[2]===Symbol.for("react.memo_cache_sentinel")?(a={narrow:"vertical",regular:"horizontal"},m[2]=a):a=m[2],m[3]!==p?(n=(0,r.jsx)(s.M.Content,{as:"div",children:p}),m[3]=p,m[4]=n):n=m[4],m[5]===Symbol.for("react.memo_cache_sentinel")?(l={narrow:!0,regular:!1},m[5]=l):l=m[5],m[6]!==h?(o=(0,r.jsx)(s.M.Pane,{hidden:l,className:"marketplace-module__marketplace-sidebar__pane__NuXTT",children:(0,r.jsx)(td.B,{gap:"spacious",className:"marketplace-module__marketplace-sidebar__content-wrapper__UVYo3",children:h})}),m[6]=h,m[7]=o):o=m[7],m[8]!==n||m[9]!==o?(c=(0,r.jsxs)(td.B,{justify:"end",direction:a,gap:"none",className:"width-full",children:[n,o]}),m[8]=n,m[9]=o,m[10]=c):c=m[10],m[11]!==t||m[12]!==c?(d=(0,r.jsx)("div",{className:"d-flex flex-column","data-testid":"marketplace-listing","data-hpc":!0,children:(0,r.jsxs)(s.M,{columnGap:"normal",children:[t,c]})}),m[11]=t,m[12]=c,m[13]=d):d=m[13],d};tm.displayName="ListingLayout";var tu=a(30022);function tp(e){let t,a,n,l,s,o=(0,i.c)(11),{listing:c}=e,d="";"model"===c.type?d="Models":"marketplace_listing"===c.type?d="Apps":"repository_action"===c.type&&(d="Actions"),o[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,r.jsx)(tu.A.Item,{href:"/marketplace",children:"Marketplace"}),o[0]=t):t=o[0],o[1]!==d?(a=d.toLowerCase(),o[1]=d,o[2]=a):a=o[2];let m=`/marketplace?type=${a}`;return o[3]!==m||o[4]!==d?(n=(0,r.jsx)(tu.A.Item,{href:m,children:d}),o[3]=m,o[4]=d,o[5]=n):n=o[5],o[6]!==c.name?(l=(0,r.jsx)(tu.A.Item,{className:"ws-normal",href:"#",selected:!0,children:c.name}),o[6]=c.name,o[7]=l):l=o[7],o[8]!==n||o[9]!==l?(s=(0,r.jsxs)(tu.A,{"data-testid":"breadcrumbs",children:[t,n,l]}),o[8]=n,o[9]=l,o[10]=s):s=o[10],s}function th(e){let t,a,n,l,s,o,c,d,m,u,p,h,g,f,x=(0,i.c)(37);x[0]===Symbol.for("react.memo_cache_sentinel")?(t={narrow:!0},x[0]=t):t=x[0];let y=(0,ey.tv)(t,!1),{listing:j,banner:b,listingDetails:v,loggedIn:_,additionalDetails:N,callToAction:w}=e,{name:k}=j,A="",S=!1;"repository_action"===j.type?(A="Actions",S=j.isVerifiedOwner):"marketplace_listing"===j.type&&(A=j.copilotApp?"Copilot":"App",S=j.isVerifiedOwner),x[1]!==j||x[2]!==_?(a=!_&&(0,r.jsx)(tp,{listing:j}),x[1]=j,x[2]=_,x[3]=a):a=x[3],x[4]!==b?(n=(0,r.jsx)("div",{className:"marketplace-module__marketplace-banner-container__IhyJV",children:b}),x[4]=b,x[5]=n):n=x[5],x[6]!==j?(l=(0,r.jsx)(eG,{listing:j}),x[6]=j,x[7]=l):l=x[7],x[8]!==S?(s=S&&(0,r.jsx)("div",{className:"marketplace-module__marketplace-logo__verified-icon-wrapper__FfDyh",children:(0,r.jsx)(eb.VerifiedIcon,{size:16,className:"fgColor-accent","aria-label":"Manually verified"})}),x[8]=S,x[9]=s):s=x[9],x[10]!==l||x[11]!==s?(o=(0,r.jsxs)("div",{className:"marketplace-module__marketplace-logo-wrapper__AS0lp",children:[l,s]}),x[10]=l,x[11]=s,x[12]=o):o=x[12];let I=y?"h4":"h3";return x[13]!==k||x[14]!==I?(c=(0,r.jsx)("h1",{className:I,children:k}),x[13]=k,x[14]=I,x[15]=c):c=x[15],x[16]!==A?(d=A&&(0,r.jsx)(ez.A,{variant:"secondary",className:"d-none d-md-flex","data-testid":"type-label",children:A}),x[16]=A,x[17]=d):d=x[17],x[18]!==c||x[19]!==d?(m=(0,r.jsxs)(td.B,{align:"center",direction:"horizontal",gap:"condensed",children:[c,d]}),x[18]=c,x[19]=d,x[20]=m):m=x[20],x[21]!==o||x[22]!==m?(u=(0,r.jsxs)(td.B,{align:"center",direction:"horizontal",children:[o,m]}),x[21]=o,x[22]=m,x[23]=u):u=x[23],x[24]!==v?(p=(0,r.jsx)(td.B,{className:"d-md-none",children:v}),x[24]=v,x[25]=p):p=x[25],x[26]!==N?(h=(0,r.jsx)(td.B,{className:"d-md-none width-full",children:N}),x[26]=N,x[27]=h):h=x[27],x[28]!==w||x[29]!==u||x[30]!==p||x[31]!==h?(g=(0,r.jsxs)(td.B,{justify:"space-between",className:"flex-column flex-md-row",children:[u,p,w,h]}),x[28]=w,x[29]=u,x[30]=p,x[31]=h,x[32]=g):g=x[32],x[33]!==a||x[34]!==g||x[35]!==n?(f=(0,r.jsxs)(td.B,{"data-testid":"overview-header",children:[a,n,g]}),x[33]=a,x[34]=g,x[35]=n,x[36]=f):f=x[36],f}tp.displayName="ListingBreadcrumbs",th.displayName="OverviewHeader";var tg=a(37624),tf=a(95126),tx=a(23666);function ty(e){let t,a,n,l,s,o,c,d,m,u,p=(0,i.c)(26),{app:h,sidebar:g}=e,{shortDescription:f,ownerLogin:x,ownerType:y}=h,j="Organization"===y,b="User"===y,v=(0,tf.yY)();p[0]!==g?(t=g&&(0,r.jsx)(tg.A,{title:"About",htmlTag:"h2"}),p[0]=g,p[1]=t):t=p[1],p[2]!==f?(a=f&&(0,r.jsx)("span",{children:f}),p[2]=f,p[3]=a):a=p[3],p[4]!==v||p[5]!==j||p[6]!==b||p[7]!==x?(n=x&&(0,r.jsx)("div",{className:"color-fg-muted pr-1",children:(0,r.jsxs)(r.Fragment,{children:["By ",j||b?(0,r.jsx)(e4.A,{href:(0,tx.p3r)({owner:x}),...v(j?"organization":"user",{login:x}),children:x}):(0,r.jsx)(e4.A,{href:(0,tx.p3r)({owner:x}),children:x})]})}),p[4]=v,p[5]=j,p[6]=b,p[7]=x,p[8]=n):n=p[8],p[9]===Symbol.for("react.memo_cache_sentinel")?(l=(0,r.jsx)(eb.DownloadIcon,{className:"mr-1 fgColor-muted"}),p[9]=l):l=p[9],p[10]!==h.installationCount?(s=h.installationCount.toLocaleString(),p[10]=h.installationCount,p[11]=s):s=p[11],p[12]!==s?(o=(0,r.jsxs)("span",{className:"text-bold",children:[s,"\xa0"]}),p[12]=s,p[13]=o):o=p[13];let _=1===h.installationCount?"":"s";return p[14]!==_?(c=(0,r.jsxs)("span",{className:"fgColor-muted",children:["install",_]}),p[14]=_,p[15]=c):c=p[15],p[16]!==o||p[17]!==c?(d=(0,r.jsxs)("div",{children:[l,o,c]}),p[16]=o,p[17]=c,p[18]=d):d=p[18],p[19]!==n||p[20]!==d?(m=(0,r.jsxs)(td.B,{wrap:"wrap",direction:"horizontal",gap:"condensed",children:[n,d]}),p[19]=n,p[20]=d,p[21]=m):m=p[21],p[22]!==t||p[23]!==a||p[24]!==m?(u=(0,r.jsxs)(td.B,{gap:"condensed","data-testid":"about",children:[t,a,m]}),p[22]=t,p[23]=a,p[24]=m,p[25]=u):u=p[25],u}function tj(e){return e.isRegularEmuUser?{canInstall:!1,reason:"Only enterprise administrators and organization admins can purchase applications from the marketplace."}:e.emuOwnerButNotAdmin?{canInstall:!1,reason:"Only enterprise admins are able to install paid Marketplace plans."}:{canInstall:!0,reason:null}}function tb(e,t){let a,r,n,l=(0,i.c)(8);l[0]===Symbol.for("react.memo_cache_sentinel")?(a={narrow:!0},l[0]=a):a=l[0];let s=(0,ey.tv)(a,!1);l[1]!==e||l[2]!==t?(r=!tj(e).canInstall||t.disabled,l[1]=e,l[2]=t,l[3]=r):r=l[3];let o=!!r,c=o?"install-unavailable-reason":void 0,d=s?"medium":"large";return l[4]!==o||l[5]!==c||l[6]!==d?(n={disabled:o,"aria-describedby":c,size:d},l[4]=o,l[5]=c,l[6]=d,l[7]=n):n=l[7],n}function tv(e){let t,a,n,l,s,o,c=(0,i.c)(13);c[0]!==e?({planInfo:a,...t}=e,c[0]=e,c[1]=t,c[2]=a):(t=c[1],a=c[2]);let d=tb(a,t);c[3]!==d?({disabled:n,size:l,...s}=d,c[3]=d,c[4]=n,c[5]=l,c[6]=s):(n=c[4],l=c[5],s=c[6]);let m=`width-full ${t.className?t.className:""}`,u=s["aria-describedby"];return c[7]!==t||c[8]!==n||c[9]!==l||c[10]!==m||c[11]!==u?(o=(0,r.jsx)(eF.Q,{as:"button",variant:"primary",className:m,"aria-disabled":n,"aria-describedby":u,size:l,...t,disabled:n}),c[7]=t,c[8]=n,c[9]=l,c[10]=m,c[11]=u,c[12]=o):o=c[12],o}function t_(e){let t,a,n,l,s,o,c=(0,i.c)(13);c[0]!==e?({planInfo:a,...t}=e,c[0]=e,c[1]=t,c[2]=a):(t=c[1],a=c[2]);let d=tb(a,t);c[3]!==d?({disabled:n,size:l,...s}=d,c[3]=d,c[4]=n,c[5]=l,c[6]=s):(n=c[4],l=c[5],s=c[6]);let m=`width-full ${t.className?t.className:""}`,u=s["aria-describedby"];return c[7]!==n||c[8]!==t||c[9]!==l||c[10]!==m||c[11]!==u?(o=(0,r.jsx)(e5.z,{as:"a",variant:"primary",className:m,"aria-describedby":u,size:l,"data-testid":"header-link-button",...t,disabled:n}),c[7]=n,c[8]=t,c[9]=l,c[10]=m,c[11]=u,c[12]=o):o=c[12],o}ty.displayName="About",tv.displayName="HeaderButton",t_.displayName="HeaderLinkButton";var tN=a(26316),tw=a(19519);function tk(e,t,a,r){let i,n,l=!!r&&(r===e.currentUser?.displayLogin?e.installedForViewer:e.organizations.find(e=>e.displayLogin===r)?.installedForOrg),s=r&&e.planIdByLogin[r]===t.id;return s&&l?(i=!0,n="Already installed"):s&&!l?(i=!1,n="Install"):t.directBilling?(i=!e.isBuyable,n=`Set up with ${a.name}`):t.isPaid&&t.hasFreeTrial&&(e.subscriptionItem.onFreeTrial||e.anyAccountEligibleForFreeTrial)?(i=!e.isBuyable,n=e.isBuyable||e.organizations.length>0?`Try free for ${e.freeTrialLength}`:e.viewerFreeTrialDaysLeft&&e.viewerFreeTrialDaysLeft>0?`${e.viewerFreeTrialDaysLeft} ${1===e.viewerFreeTrialDaysLeft?"day":"days"} left of free trial`:`Try free for ${e.freeTrialLength}`):t.isPaid?(i=!e.isBuyable,n="Buy with GitHub"):(i=!e.isBuyable&&!0,n="Install it for free"),{isDisabled:i,buttonText:n}}function tA(e){let t,a,n,l=(0,i.c)(17),{planInfo:s,plan:o,listing:c,account:d}=e;l[0]!==d||l[1]!==c||l[2]!==o||l[3]!==s?(t=tk(s,o,c,d),l[0]=d,l[1]=c,l[2]=o,l[3]=s,l[4]=t):t=l[4];let{isDisabled:m,buttonText:u}=t,{isBrowser:p}=(0,tw.V)();l[5]!==p?(a=p?(0,tx.pMt)({returnTo:tN.fV?.href}):void 0,l[5]=p,l[6]=a):a=l[6];let h=a;if(!s.isLoggedIn){let e;return l[7]!==u||l[8]!==m||l[9]!==h||l[10]!==s?(e=(0,r.jsx)(t_,{href:h,planInfo:s,disabled:m,children:u}),l[7]=u,l[8]=m,l[9]=h,l[10]=s,l[11]=e):e=l[11],e}let g=`marketplace_listing_id:${c.id}`;return l[12]!==u||l[13]!==m||l[14]!==s||l[15]!==g?(n=(0,r.jsx)(tv,{type:"submit",form:"plan-form",planInfo:s,disabled:m,"data-testid":"direct-install-button","data-octo-click":"marketplace-listing_order_click","data-octo-dimensions":g,children:u}),l[12]=u,l[13]=m,l[14]=s,l[15]=g,l[16]=n):n=l[16],n}function tS(e){let t,a,n=(0,i.c)(9),{planInfo:l,plan:s,listing:o,account:c}=e;n[0]!==c||n[1]!==o||n[2]!==s||n[3]!==l?(t=tk(l,s,o,c),n[0]=c,n[1]=o,n[2]=s,n[3]=l,n[4]=t):t=n[4];let{isDisabled:d,buttonText:m}=t,u=`marketplace_listing_id:${o.id}`;return n[5]!==m||n[6]!==d||n[7]!==u?(a=(0,r.jsx)(eF.Q,{variant:"primary",size:"large",form:"plan-form",disabled:d,type:"submit","data-octo-click":"marketplace-listing_order_click","data-octo-dimensions":u,children:m}),n[5]=m,n[6]=d,n[7]=u,n[8]=a):a=n[8],a}function tI(e){let t=(0,i.c)(6),{planInfo:a,plan:n,listing:l}=e;if(a.freeTrialsUsed){let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsx)("div",{children:"You\u2019ve already used a free trial for this app"}),t[0]=e):e=t[0],e}if(a.installationUrlRequirementMet)if(a.isBuyable){let e,a=n.isPaid&&" and payment information";return t[3]!==a?(e=(0,r.jsxs)("p",{className:"mt-2 mb-0 f6",children:["Next: Confirm your installation location",a]}),t[3]=a,t[4]=e):e=t[4],e}else{let e;return t[5]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsx)("p",{className:"mt-2 mb-0 f6",children:"You\u2019ve already purchased this on all of your GitHub accounts"}),t[5]=e):e=t[5],e}if(!a.userCanEditListing)return null;{let e,a=`/marketplace/${l.slug}/edit/description#naming_and_links`;return t[1]!==a?(e=(0,r.jsxs)("div",{children:["This app is not installable because it is missing"," ",(0,r.jsx)("a",{href:a,children:"an installation URL"}),"."]}),t[1]=a,t[2]=e):e=t[2],e}}tA.displayName="HeaderInstallButton",tS.displayName="InstallButton",tI.displayName="InstallHelpText";var tC=a(29207);let tL=(0,d.createContext)(null);function tP(){let e=(0,d.use)(tL);if(!e)throw Error("usePlanForm must be used within the PlanForm component");return e}function t$(e){let t,a,n,l,s=(0,i.c)(10);s[0]!==e?({children:t,...a}=e,s[0]=e,s[1]=t,s[2]=a):(t=s[1],a=s[2]);let[o,c]=(0,d.useState)(a.planInfo.orderPreview?.quantity||1),m=(0,tC.H)(`/marketplace/${a.listing.slug}/order/${a.plan.id}${a.canReinstall?"/upgrade":""}`,"post");s[3]!==m||s[4]!==a||s[5]!==o?(n={seatQuantity:o,setSeatQuantity:c,authToken:m,...a},s[3]=m,s[4]=a,s[5]=o,s[6]=n):n=s[6];let u=n;return s[7]!==t||s[8]!==u?(l=(0,r.jsx)(tL,{value:u,children:t}),s[7]=t,s[8]=u,s[9]=l):l=s[9],l}function tF(){let e,t,a,n,l=(0,i.c)(12),{planInfo:s,listing:o,canReinstall:c,skipOrderReview:d,authToken:m}=tP();return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsx)("input",{type:"hidden",name:"quantity",id:"quantity",value:"1","data-testid":"quantity"}),l[0]=e):e=l[0],l[1]!==m||l[2]!==c||l[3]!==d?(t=(d||c)&&(0,r.jsx)("input",{type:"hidden",name:"authenticity_token",value:m,"data-testid":"csrf-token"}),l[1]=m,l[2]=c,l[3]=d,l[4]=t):t=l[4],l[5]!==o||l[6]!==s||l[7]!==d?(a=d&&(0,r.jsx)(r.Fragment,{children:s.canSignEndUserAgreement&&s.endUserAgreement&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("input",{type:"hidden",name:"marketplace_listing_id",id:"marketplace_listing_id",value:o.id,"data-testid":"marketplace-listing-id"}),(0,r.jsx)("input",{type:"hidden",name:"marketplace_agreement_id",id:"marketplace_agreement_id",value:s.endUserAgreement.id,"data-testid":"marketplace-agreement-id"})]})}),l[5]=o,l[6]=s,l[7]=d,l[8]=a):a=l[8],l[9]!==t||l[10]!==a?(n=(0,r.jsxs)(r.Fragment,{children:[e,t,a]}),l[9]=t,l[10]=a,l[11]=n):n=l[11],n}tL.displayName="PlanFormContext",t$.displayName="PlanFormProvider",tF.displayName="PlanFormHiddenFields";var tB=a(7624),tT=a(38750);function tU(){let e,t,a,n,l,s,o,c=(0,i.c)(21),{planInfo:d,plan:m,seatQuantity:u,setSeatQuantity:p}=tP();if(!m.isPaid)return null;c[0]!==m.perUnit||c[1]!==m.unitName||c[2]!==u||c[3]!==p?(e=m.perUnit&&(0,r.jsxs)(tB.A,{id:"quantity",children:[(0,r.jsx)(tB.A.Label,{htmlFor:"quantity",className:"text-normal",as:"label",children:`Number of ${m.unitName}s`}),(0,r.jsx)(tT.A,{type:"number",value:u,name:"quantity",min:"0",max:"100000",onChange:e=>p(parseInt(e.target.value)),"data-testid":"seat-quantity-input",className:"PlanFormSeatsField-module__TextInput__jS9YM"})]}),c[0]=m.perUnit,c[1]=m.unitName,c[2]=u,c[3]=p,c[4]=e):e=c[4],c[5]!==m.price?(t=(0,r.jsx)("span",{className:"f2 mr-2","data-testid":"plan-form-price",children:m.price}),c[5]=m.price,c[6]=t):t=c[6],c[7]!==m.perUnit||c[8]!==m.unitName?(a=m.perUnit&&(0,r.jsxs)("span",{children:[" ",`/ ${m.unitName}`]}),c[7]=m.perUnit,c[8]=m.unitName,c[9]=a):a=c[9];let h=d.isUserBilledMonthly?" / month":" / year";return c[10]!==h?(n=(0,r.jsx)("span",{children:h}),c[10]=h,c[11]=n):n=c[11],c[12]!==a||c[13]!==n?(l=(0,r.jsxs)("span",{className:"text color-fg-muted",children:[a,n]}),c[12]=a,c[13]=n,c[14]=l):l=c[14],c[15]!==t||c[16]!==l?(s=(0,r.jsx)("div",{className:"border-bottom border-top py-2 d-flex flex-items-baseline flex-justify-between",children:(0,r.jsxs)("div",{className:"d-flex flex-items-baseline",children:[t,l]})}),c[15]=t,c[16]=l,c[17]=s):s=c[17],c[18]!==e||c[19]!==s?(o=(0,r.jsxs)(r.Fragment,{children:[e,s]}),c[18]=e,c[19]=s,c[20]=o):o=c[20],o}tU.displayName="PlanFormSeatsField";var tO=a(206),tM=a(39775);function tR(e){let t=(0,i.c)(9),{planInfo:a,account:n}=e;if(a.currentUser&&n===a.currentUser.displayLogin&&a.currentUser.image){let e;return t[0]!==a.currentUser.image?(e=(0,r.jsx)(tO.r,{square:!0,src:a.currentUser.image,"data-testid":"user-account-avatar"}),t[0]=a.currentUser.image,t[1]=e):e=t[1],e}{let e;if(t[2]!==n||t[3]!==a.organizations){let r;t[5]!==n?(r=e=>n===e.displayLogin&&e.image,t[5]=n,t[6]=r):r=t[6],e=a.organizations.find(r),t[2]=n,t[3]=a.organizations,t[4]=e}else e=t[4];let i=e;if(i&&i.image){let e;return t[7]!==i.image?(e=(0,r.jsx)(tO.r,{square:!0,src:i.image,"data-testid":"org-account-avatar"}),t[7]=i.image,t[8]=e):e=t[8],e}}return null}function tD(){let e,t,a=(0,i.c)(13),{listing:n,planInfo:l,selectedAccount:s,setSelectedAccount:o}=tP();if(a[0]!==l.currentUser||a[1]!==l.organizations){if(e=[],l.currentUser){let t;a[3]!==l.currentUser.displayLogin||a[4]!==l.currentUser.hasExtensibilityAccess||a[5]!==l.currentUser.image?(t={displayLogin:l.currentUser.displayLogin,hasExtensibilityAccess:l.currentUser.hasExtensibilityAccess,image:l.currentUser.image,label:"Personal account"},a[3]=l.currentUser.displayLogin,a[4]=l.currentUser.hasExtensibilityAccess,a[5]=l.currentUser.image,a[6]=t):t=a[6],e.push(t)}for(let t of l.organizations)e.push({displayLogin:t.displayLogin,hasExtensibilityAccess:t.hasExtensibilityAccess,image:t.image,label:t.isEnterpriseOwned?"Enterprise owned organization":"Organization"});a[0]=l.currentUser,a[1]=l.organizations,a[2]=e}else e=a[2];return a[7]!==e||a[8]!==n||a[9]!==l||a[10]!==s||a[11]!==o?(t=s&&(0,r.jsx)(r.Fragment,{children:0===l.organizations.length?(0,r.jsx)("input",{type:"hidden",name:"account",id:"account",value:s}):(0,r.jsxs)(td.B,{direction:"horizontal",gap:"condensed",align:"center",children:[(0,r.jsx)("div",{className:"text-bold",children:"Account:"}),(0,r.jsxs)(eJ.W,{children:[(0,r.jsx)(eJ.W.Button,{"aria-label":`Account: ${s}`,leadingVisual:(0,r.jsx)(tR,{planInfo:l,account:s}),children:s||"Select account"}),(0,r.jsx)(eJ.W.Overlay,{maxHeight:"large",width:"medium",className:"overflow-auto",children:(0,r.jsx)(eZ.l,{children:e.map(e=>(0,r.jsxs)(eZ.l.Item,{onSelect:()=>o(e.displayLogin),children:[(0,r.jsx)(eZ.l.LeadingVisual,{children:e.image&&(0,r.jsx)(tO.r,{square:!0,src:e.image})}),(0,r.jsxs)(td.B,{gap:"condensed",direction:"horizontal",align:"center",children:[(0,r.jsx)("div",{className:"text-bold flex-shrink-0",children:e.displayLogin}),(0,r.jsx)(tM.A,{inline:!0,title:e.label,className:"width-fit fgColor-muted text-normal text-small",children:e.label})]}),n.copilotApp&&e.hasExtensibilityAccess&&(0,r.jsx)(eZ.l.Description,{variant:"block",className:"fgColor-attention",children:"Supports Copilot extensions"})]},e.displayLogin))})})]}),s&&(0,r.jsx)("input",{type:"hidden",name:"account",id:"account",value:s})]})}),a[7]=e,a[8]=n,a[9]=l,a[10]=s,a[11]=o,a[12]=t):t=a[12],t}function tz(e){let t,a,n,l,s,o,c,d=(0,i.c)(27),{planInfo:m,listing:u,plan:p,children:h,selectedAccount:g,onAccountSelect:f}=e;e:{if(u.copilotApp&&!p.isPaid){t=!0;break e}t=p.directBilling}let x=t;d[0]!==m.currentUser?.displayLogin||d[1]!==m.installedForViewer||d[2]!==m.organizations||d[3]!==g?(a=()=>!!g&&(g===m.currentUser?.displayLogin?m.installedForViewer:m.organizations.find(e=>e.displayLogin===g)?.installedForOrg),d[0]=m.currentUser?.displayLogin,d[1]=m.installedForViewer,d[2]=m.organizations,d[3]=g,d[4]=a):a=d[4],m.currentUser?.displayLogin,d[5]!==a?(n=a(),d[5]=a,d[6]=n):n=d[6];let y=n,j=!!g&&m.planIdByLogin[g]===p.id&&!y,b=x&&g&&m.planIdByLogin[g],v=x||j?"POST":"GET",_=`/marketplace/${u.slug}/order/${p.id}${b||j?"/upgrade":""}`;return d[7]===Symbol.for("react.memo_cache_sentinel")?(l=(0,r.jsx)(tF,{}),d[7]=l):l=d[7],d[8]!==h||d[9]!==u||d[10]!==p||d[11]!==m||d[12]!==g?(s=h||(0,r.jsxs)(td.B,{gap:"normal",className:p.isPaid&&!p.perUnit?"":"tmp-pt-3",children:[(0,r.jsx)(tU,{}),(0,r.jsx)(tD,{}),(0,r.jsxs)("div",{children:[(0,r.jsx)(tS,{planInfo:m,plan:p,listing:u,account:g}),(0,r.jsx)(tI,{planInfo:m,plan:p,listing:u})]})]}),d[8]=h,d[9]=u,d[10]=p,d[11]=m,d[12]=g,d[13]=s):s=d[13],d[14]!==v||d[15]!==_||d[16]!==s?(o=(0,r.jsxs)("form",{method:v,action:_,"data-testid":"plan-form",className:"width-full",id:"plan-form",children:[l,s]}),d[14]=v,d[15]=_,d[16]=s,d[17]=o):o=d[17],d[18]!==u||d[19]!==f||d[20]!==p||d[21]!==m||d[22]!==j||d[23]!==g||d[24]!==x||d[25]!==o?(c=(0,r.jsx)(t$,{planInfo:m,listing:u,plan:p,selectedAccount:g,setSelectedAccount:f,canReinstall:j,skipOrderReview:x,children:o}),d[18]=u,d[19]=f,d[20]=p,d[21]=m,d[22]=j,d[23]=g,d[24]=x,d[25]=o,d[26]=c):c=d[26],c}tR.displayName="AccountButtonAvatar",tD.displayName="PlanFormAccountSelector",tz.displayName="PlanForm";var tV=a(45438),tE=a(36007);function tH(e){let t,a,n=(0,i.c)(12),{planInfo:l,onPlanChange:s,selectedPlanId:o}=e;if(n[0]!==s||n[1]!==l.isUserBilledMonthly||n[2]!==l.plans||n[3]!==o){let e;n[5]!==s||n[6]!==l.isUserBilledMonthly||n[7]!==l.plans.length||n[8]!==o?(e=(e,t)=>(0,r.jsxs)(td.B,{gap:"condensed",direction:"horizontal",className:t===l.plans.length-1?"tmp-pb-3":"",children:[(0,r.jsx)(tV.A,{"aria-describedby":"price-yearly",name:"plan",value:e.id,id:e.id,checked:o===e.id,onChange:()=>s(e.id)}),(0,r.jsxs)(td.B,{gap:"condensed",direction:"vertical",className:"width-full",children:[(0,r.jsx)(td.B,{gap:"condensed",direction:"horizontal",children:(0,r.jsxs)(td.B,{gap:{narrow:"none",regular:"condensed",wide:"condensed"},direction:{narrow:"vertical",regular:"horizontal",wide:"horizontal"},justify:"space-between",className:"width-full",children:[(0,r.jsxs)(td.B,{gap:"none",direction:"vertical",className:"width-full",children:[(0,r.jsxs)("label",{htmlFor:e.id,className:"text-bold",children:[e.name," ",e.isPaid&&e.hasFreeTrial&&(0,r.jsx)(ez.A,{className:"ml-1",children:"Free trial available"})]}),(0,r.jsx)(tE.A,{size:"small",className:"color-fg-muted mt-1",children:e.description})]}),(0,r.jsxs)("span",{className:"color-fg-muted flex-shrink-0","data-testid":"plan-price-info",children:[e.isPaid&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{children:e.price}),e.perUnit&&(0,r.jsxs)("span",{children:[" ",`/ ${e.unitName}`]}),(0,r.jsx)("span",{children:l.isUserBilledMonthly?" / month":" / year"})]}),!e.isPaid&&!e.directBilling&&(0,r.jsx)("span",{children:"$0"})]})]})}),o===e.id&&(e.forOrganizationsOnly||e.forUsersOnly||e.bullets.length>0)&&(0,r.jsxs)(td.B,{gap:"condensed",children:[e.forOrganizationsOnly&&(0,r.jsx)("div",{children:"For organizations only"}),e.forUsersOnly&&(0,r.jsx)("div",{children:"For users only"}),e.bullets.length>0&&(0,r.jsx)("ul",{className:"list-style-none d-flex flex-column gap-1",children:e.bullets.map(tG)})]})]})]},e.id),n[5]=s,n[6]=l.isUserBilledMonthly,n[7]=l.plans.length,n[8]=o,n[9]=e):e=n[9],t=l.plans.map(e),n[0]=s,n[1]=l.isUserBilledMonthly,n[2]=l.plans,n[3]=o,n[4]=t}else t=n[4];return n[10]!==t?(a=(0,r.jsx)(td.B,{gap:"normal",className:"border-bottom color-border-muted","data-testid":"plans-radio-group",children:t}),n[10]=t,n[11]=a):a=n[11],a}function tG(e){return(0,r.jsxs)("li",{className:"d-flex gap-2",children:[(0,r.jsx)(eb.CheckIcon,{className:"PlansRadioGroup-module__CheckIcon__XZ51p"}),(0,r.jsx)(tE.A,{as:"span",size:"small",children:e})]},e)}function tq(e){let t,a,n,l,s,o,c,m,u,p,h=(0,i.c)(34),{planInfo:g,app:f,open:x,onClose:y,selectedAccount:j,setSelectedAccount:b}=e,[v,_]=(0,d.useState)(g.selectedPlanId);h[0]===Symbol.for("react.memo_cache_sentinel")?(t=e=>{_(e)},h[0]=t):t=h[0];let N=t;if(h[1]!==g.plans||h[2]!==v){let e;h[4]!==v?(e=e=>e.id===v,h[4]=v,h[5]=e):e=h[5],a=g.plans.find(e),h[1]=g.plans,h[2]=v,h[3]=a}else a=h[3];let w=a,k=g.plans.length;if(!x||!w)return null;h[6]!==f||h[7]!==g||h[8]!==j||h[9]!==w?(n=()=>(0,r.jsx)(eB.l.Footer,{children:(0,r.jsx)(tS,{planInfo:g,plan:w,listing:f,account:j})}),h[6]=f,h[7]=g,h[8]=j,h[9]=w,h[10]=n):n=h[10];let A=k>5?"fullscreen":"bottom";h[11]!==A?(l={narrow:A,regular:"center"},h[11]=A,h[12]=l):l=h[12],h[13]!==k||h[14]!==g||h[15]!==v?(s=k>1&&(0,r.jsx)(tH,{planInfo:g,onPlanChange:N,selectedPlanId:v}),h[13]=k,h[14]=g,h[15]=v,h[16]=s):s=h[16];let S=w.isPaid&&!w.perUnit?"":"tmp-pt-3";return h[17]===Symbol.for("react.memo_cache_sentinel")?(o=(0,r.jsx)(tU,{}),c=(0,r.jsx)(tD,{}),h[17]=o,h[18]=c):(o=h[17],c=h[18]),h[19]!==S?(m=(0,r.jsxs)(td.B,{gap:"normal",className:S,children:[o,c]}),h[19]=S,h[20]=m):m=h[20],h[21]!==f||h[22]!==g||h[23]!==j||h[24]!==w||h[25]!==b||h[26]!==m?(u=(0,r.jsx)(tz,{planInfo:g,listing:f,plan:w,selectedAccount:j,onAccountSelect:b,children:m}),h[21]=f,h[22]=g,h[23]=j,h[24]=w,h[25]=b,h[26]=m,h[27]=u):u=h[27],h[28]!==y||h[29]!==u||h[30]!==n||h[31]!==l||h[32]!==s?(p=(0,r.jsxs)(eB.l,{title:"Configure your installation",onClose:y,renderFooter:n,position:l,children:[s,u]}),h[28]=y,h[29]=u,h[30]=n,h[31]=l,h[32]=s,h[33]=p):p=h[33],p}function tW(e){return e.viewerHasPurchased||e.anyOrgsPurchased?"Add":e.plans.some(e=>e.hasFreeTrial)?"Set up a free trial":"Add"}function tQ(e){let t,a,n,l,s,o,c=(0,i.c)(16),{planInfo:m,app:u,selectedAccount:p,setSelectedAccount:h}=e,[g,f]=(0,d.useState)(!1);return c[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>f(!0),c[0]=t):t=c[0],c[1]!==m?(a=tW(m),c[1]=m,c[2]=a):a=c[2],c[3]!==m||c[4]!==a?(n=(0,r.jsx)(tv,{planInfo:m,"data-testid":"dialog-button",onClick:t,children:a}),c[3]=m,c[4]=a,c[5]=n):n=c[5],c[6]===Symbol.for("react.memo_cache_sentinel")?(l=()=>f(!1),c[6]=l):l=c[6],c[7]!==u||c[8]!==m||c[9]!==p||c[10]!==h||c[11]!==g?(s=(0,r.jsx)(tq,{planInfo:m,app:u,open:g,selectedAccount:p,setSelectedAccount:h,onClose:l}),c[7]=u,c[8]=m,c[9]=p,c[10]=h,c[11]=g,c[12]=s):s=c[12],c[13]!==n||c[14]!==s?(o=(0,r.jsxs)(r.Fragment,{children:[n,s]}),c[13]=n,c[14]=s,c[15]=o):o=c[15],o}function tX(e){let t,a,n,l,s=(0,i.c)(26),{planInfo:o,app:c}=e,m=o.viewerHasPurchased&&o.viewerHasPurchasedForAllOrganizations&&o.installedForViewer,[u,p]=(0,d.useState)(o.selectedAccount||o.currentUser?.displayLogin);if(m)return null;if(!c.copilotApp){let e,t;return s[0]!==o?(e=tW(o),s[0]=o,s[1]=e):e=s[1],s[2]!==o||s[3]!==e?(t=(0,r.jsx)(t_,{planInfo:o,href:"#pricing-and-setup",className:"js-smoothscroll-anchor","data-testid":"setup-button",children:e}),s[2]=o,s[3]=e,s[4]=t):t=s[4],t}let h=o.organizations.length>0,g=o.plans.length>1;if(s[5]!==o.plans||s[6]!==o.selectedPlanId){let e;s[8]!==o.selectedPlanId?(e=e=>e.id===o.selectedPlanId,s[8]=o.selectedPlanId,s[9]=e):e=s[9],t=o.plans.find(e),s[5]=o.plans,s[6]=o.selectedPlanId,s[7]=t}else t=s[7];let f=t,x=f.isPaid;if(h||g||x){let e;return s[10]!==c||s[11]!==o||s[12]!==u?(e=(0,r.jsx)(tQ,{planInfo:o,app:c,selectedAccount:u,setSelectedAccount:p}),s[10]=c,s[11]=o,s[12]=u,s[13]=e):e=s[13],e}return s[14]===Symbol.for("react.memo_cache_sentinel")?(a=(0,r.jsx)(tD,{}),s[14]=a):a=s[14],s[15]!==c||s[16]!==o||s[17]!==u||s[18]!==f?(n=(0,r.jsx)(tA,{planInfo:o,plan:f,listing:c,account:u}),s[15]=c,s[16]=o,s[17]=u,s[18]=f,s[19]=n):n=s[19],s[20]!==c||s[21]!==o||s[22]!==u||s[23]!==f||s[24]!==n?(l=(0,r.jsxs)(tz,{planInfo:o,listing:c,plan:f,selectedAccount:u,onAccountSelect:p,children:[a,n]}),s[20]=c,s[21]=o,s[22]=u,s[23]=f,s[24]=n,s[25]=l):l=s[25],l}tH.displayName="PlansRadioGroup",tq.displayName="InstallDialog",tQ.displayName="DialogButton",tX.displayName="CallToAction";var tY=a(26108);function tK(e){let t,a,n=(0,i.c)(12),{app:l,planInfo:s,userCanEdit:o}=e,c=s.viewerHasPurchased||s.anyOrgsPurchased||s.installedForViewer||o,d=s.viewerHasPurchased||s.anyOrgsPurchased;n[0]===Symbol.for("react.memo_cache_sentinel")?(t={narrow:!0},n[0]=t):t=n[0];let m=(0,ey.tv)(t,!1);return n[1]!==d||n[2]!==l||n[3]!==m||n[4]!==s.currentUser||n[5]!==s.installedForViewer||n[6]!==s.planIdByLogin||n[7]!==s.viewerBilledOrganizations||n[8]!==s.viewerHasPurchased||n[9]!==c||n[10]!==o?(a=c&&(0,r.jsx)("div",{"data-testid":"listing-actions",children:(0,r.jsxs)(eJ.W,{children:[(0,r.jsx)(eJ.W.Anchor,{children:(0,r.jsx)(tY.K,{icon:eb.KebabHorizontalIcon,"aria-label":"More actions","data-testid":"listing-actions-button",size:m?"medium":"large"})}),(0,r.jsx)(eJ.W.Overlay,{width:"small",align:"end",children:(0,r.jsxs)(eZ.l,{children:[d&&(0,r.jsxs)(eZ.l.Group,{children:[(0,r.jsx)(eZ.l.GroupHeading,{children:"Edit current plan"}),s.viewerHasPurchased&&s.currentUser&&(0,r.jsx)(eZ.l.LinkItem,{href:`/marketplace/${l.slug}/order/${s.planIdByLogin[s.currentUser.displayLogin]}?account=${s.currentUser.displayLogin}`,children:s.currentUser.displayLogin}),s.viewerBilledOrganizations.map(e=>(0,r.jsx)(eZ.l.LinkItem,{href:`/marketplace/${l.slug}/order/${s.planIdByLogin[e]}?account=${e}`,children:e},e))]}),d&&(s.installedForViewer||o)&&(0,r.jsx)(eZ.l.Divider,{}),s.installedForViewer&&(0,r.jsxs)(eZ.l.LinkItem,{href:"/settings/installations",children:[(0,r.jsx)(eZ.l.LeadingVisual,{children:(0,r.jsx)(eb.GearIcon,{})}),"Configure account access"]}),o&&(0,r.jsxs)(eZ.l.LinkItem,{href:`/marketplace/${l.slug}/edit`,children:[(0,r.jsx)(eZ.l.LeadingVisual,{children:(0,r.jsx)(eb.PencilIcon,{})}),"Manage app listing"]})]})})]})}),n[1]=d,n[2]=l,n[3]=m,n[4]=s.currentUser,n[5]=s.installedForViewer,n[6]=s.planIdByLogin,n[7]=s.viewerBilledOrganizations,n[8]=s.viewerHasPurchased,n[9]=c,n[10]=o,n[11]=a):a=n[11],a}function tJ(e){let t,a,n,l=(0,i.c)(9),{isVerifiedOwner:s,pageType:o}=e;l[0]!==o?(t="apps"===o?{verifiedOwnerText:"GitHub has verified the publisher's identity, ownership of their domain, and compliance with ",verifiedOwnerLink:"https://docs.github.com/en/apps/github-marketplace/github-marketplace-overview/about-marketplace-badges",verifiedOwnerLinkText:"other requirements"}:"actions"===o?{verifiedOwnerText:"GitHub has manually verified the creator of the action as an official partner organization. For more info see ",verifiedOwnerLink:"https://docs.github.com/en/actions/sharing-automations/creating-actions/publishing-actions-in-github-marketplace#about-badges-in-github-marketplace",verifiedOwnerLinkText:"About badges in GitHub Marketplace"}:{verifiedOwnerText:"",verifiedOwnerLink:"",verifiedOwnerLinkText:""},l[0]=o,l[1]=t):t=l[1];let{verifiedOwnerText:c,verifiedOwnerLink:d,verifiedOwnerLinkText:m}=t;return l[2]!==s||l[3]!==d||l[4]!==m||l[5]!==c?(a=s&&(0,r.jsxs)(td.B,{gap:"condensed","data-testid":"verified-owner",children:[(0,r.jsxs)("div",{className:"d-flex flex-items-center gap-2",children:[(0,r.jsx)(tg.A,{title:"Verified",htmlTag:"h2"}),(0,r.jsx)(eb.VerifiedIcon,{size:16,className:"fgColor-accent","aria-label":"Manually verified"})]}),(0,r.jsxs)("span",{children:[c,(0,r.jsx)(e4.A,{inline:!0,href:d,children:m}),"."]})]}),l[2]=s,l[3]=d,l[4]=m,l[5]=c,l[6]=a):a=l[6],l[7]!==a?(n=(0,r.jsx)(r.Fragment,{children:a}),l[7]=a,l[8]=n):n=l[8],n}function tZ(e){let t,a=(0,i.c)(2),{isCopilotApp:n}=e;return a[0]!==n?(t=n&&(0,r.jsxs)(td.B,{gap:"condensed","data-testid":"apps-works-with",children:[(0,r.jsx)(tg.A,{title:"Works with",htmlTag:"h2"}),(0,r.jsx)("span",{children:"Copilot Chat, Copilot in the IDE"})]}),a[0]=n,a[1]=t):t=a[1],t}function t0(e){return e.length<2?e[0]||"":2===e.length?`${e[0]} and ${e[1]}`:`${e.slice(0,-1).join(", ")}, and ${e[e.length-1]}`}function t1(e){return"string"!=typeof e||0===e.length?e:e.charAt(0).toUpperCase()+e.slice(1)}function t2(e){let t,a,n,l,s,o=(0,i.c)(10),{planInfo:c,isCopilotApp:d}=e;if(o[0]!==c.plans?(t=t1(t0(c.plans.map(t3))),o[0]=c.plans,o[1]=t):t=o[1],o[2]!==c.plans.length)a=1!==c.plans.length?"plans":"plan",o[2]=c.plans.length,o[3]=a;else a=o[3];let m=`${t} ${a} available.`;return o[4]===Symbol.for("react.memo_cache_sentinel")?(n=(0,r.jsx)(tg.A,{title:"Pricing",htmlTag:"h2"}),o[4]=n):n=o[4],o[5]!==d?(l=d&&(0,r.jsxs)("span",{children:[" Requires a ",(0,r.jsx)(e4.A,{href:"https://github.com/features/copilot/plans",inline:!0,children:"GitHub Copilot license"}),"."]}),o[5]=d,o[6]=l):l=o[6],o[7]!==m||o[8]!==l?(s=(0,r.jsxs)(td.B,{gap:"condensed","data-testid":"apps-planinfo",children:[n,(0,r.jsxs)("span",{children:[m,l]})]}),o[7]=m,o[8]=l,o[9]=s):s=o[9],s}function t3(e){return e.name}function t4(e){let t,a,n=(0,i.c)(5),{tags:l,type:s}=e;return n[0]!==l||n[1]!==s?(t=l&&l.length>0&&(0,r.jsxs)(td.B,{gap:"condensed","data-testid":"tags",children:[(0,r.jsx)(tg.A,{title:"Tags",count:l.length,htmlTag:"h2"}),(0,r.jsx)(td.B,{direction:"horizontal",wrap:"wrap",children:l.map(e=>(0,r.jsx)("a",{href:`/marketplace?type=${s}&category=${e.slug}`,className:"topic-tag topic-tag-link",children:e.name.toLowerCase().trim().replace(/\s+/g,"-")},e.slug))})]}),n[0]=l,n[1]=s,n[2]=t):t=n[2],n[3]!==t?(a=(0,r.jsx)(r.Fragment,{children:t}),n[3]=t,n[4]=a):a=n[4],a}tK.displayName="HeaderActionMenu",tJ.displayName="VerifiedOwner",tZ.displayName="WorksWith",t2.displayName="PlanInfo",t4.displayName="Tags";var t5=a(77052);function t6(e){let t,a,n=(0,i.c)(4),{planInfo:l}=e;n[0]!==l?(t=tj(l),n[0]=l,n[1]=t):t=n[1];let{canInstall:s,reason:o}=t,c=l.viewerHasPurchased&&l.viewerHasPurchasedForAllOrganizations;return s||c?null:(n[2]!==o?(a=(0,r.jsx)(t5.l,{variant:"info",title:"Install unavailable",hideTitle:!0,children:(0,r.jsx)(t5.l.Description,{children:(0,r.jsx)("span",{id:"install-unavailable-reason",children:o})})}),n[2]=o,n[3]=a):a=n[3],a)}function t7(e){let t,a,n,l,s,o,c,d,m,u,p,h,g,f=(0,i.c)(39),{app:x,planInfo:y,userCanEdit:j}=e;f[0]===Symbol.for("react.memo_cache_sentinel")?(t={narrow:!0},f[0]=t):t=f[0];let b=(0,ey.tv)(t,!1),v=x.copilotApp&&b;return f[1]!==x?(a=(0,r.jsx)(ty,{app:x}),f[1]=x,f[2]=a):a=f[2],f[3]!==x.categories?(n=(0,r.jsx)(t4,{tags:x.categories,type:"apps"}),f[3]=x.categories,f[4]=n):n=f[4],f[5]!==x.isVerifiedOwner?(l=(0,r.jsx)(tJ,{isVerifiedOwner:x.isVerifiedOwner,pageType:"apps"}),f[5]=x.isVerifiedOwner,f[6]=l):l=f[6],f[7]!==x.copilotApp?(s=(0,r.jsx)(tZ,{isCopilotApp:x.copilotApp}),f[7]=x.copilotApp,f[8]=s):s=f[8],f[9]!==x.copilotApp||f[10]!==y?(o=(0,r.jsx)(t2,{planInfo:y,isCopilotApp:x.copilotApp}),f[9]=x.copilotApp,f[10]=y,f[11]=o):o=f[11],f[12]!==n||f[13]!==l||f[14]!==s||f[15]!==o?(c=(0,r.jsxs)(r.Fragment,{children:[n,l,s,o]}),f[12]=n,f[13]=l,f[14]=s,f[15]=o,f[16]=c):c=f[16],f[17]!==y||f[18]!==v?(d=v&&(0,r.jsx)(t6,{planInfo:y}),f[17]=y,f[18]=v,f[19]=d):d=f[19],f[20]!==x||f[21]!==y?(m=(0,r.jsx)(tX,{planInfo:y,app:x}),f[20]=x,f[21]=y,f[22]=m):m=f[22],f[23]!==x||f[24]!==y||f[25]!==j?(u=(0,r.jsx)(tK,{app:x,planInfo:y,userCanEdit:j}),f[23]=x,f[24]=y,f[25]=j,f[26]=u):u=f[26],f[27]!==m||f[28]!==u?(p=(0,r.jsxs)(td.B,{gap:"condensed",direction:"horizontal",className:"width-full width-md-auto marketplace-module__marketplace-cta-buttons-container__Xi4h8",children:[m,u]}),f[27]=m,f[28]=u,f[29]=p):p=f[29],f[30]!==p||f[31]!==d?(h=(0,r.jsxs)(r.Fragment,{children:[d,p]}),f[30]=p,f[31]=d,f[32]=h):h=f[32],f[33]!==x||f[34]!==y.isLoggedIn||f[35]!==a||f[36]!==h||f[37]!==c?(g=(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(th,{listing:x,loggedIn:y.isLoggedIn,listingDetails:a,additionalDetails:c,callToAction:h})}),f[33]=x,f[34]=y.isLoggedIn,f[35]=a,f[36]=h,f[37]=c,f[38]=g):g=f[38],g}function t8(e){let t,a,n=(0,i.c)(5),{screenshots:l}=e,[s,o]=(0,d.useState)(l[0]?.id);return n[0]!==s||n[1]!==l?(t=l.length>0&&(0,r.jsxs)("div",{className:"ScreenshotCarousel","data-testid":"screenshot-carousel",children:[l.map(e=>(0,r.jsxs)("div",{role:"tabpanel",className:"ScreenshotCarousel-screenshot anim-fade-in",hidden:s!==e.id,"data-testid":`screenshot-container-${e.id}`,children:[(0,r.jsx)("img",{src:e.src,width:670,alt:e.altText,className:"img-responsive","data-testid":`screenshot-${e.id}`}),e.caption&&(0,r.jsx)("div",{className:"pt-2",children:e.caption})]},e.id)),l.length>1&&(0,r.jsx)("div",{role:"tablist",className:"ScreenshotCarousel-nav",children:l.map(e=>(0,r.jsx)(t9,{screenshot:e,activeScreenshotId:s,setActiveScreenshotId:o},e.id))})]}),n[0]=s,n[1]=l,n[2]=t):t=n[2],n[3]!==t?(a=(0,r.jsx)(r.Fragment,{children:t}),n[3]=t,n[4]=a):a=n[4],a}t6.displayName="InstallUnavailableBanner",t7.displayName="Header",t8.displayName="Screenshots";let t9=e=>{let t,a,n,l,s=(0,i.c)(16),{screenshot:o,activeScreenshotId:c,setActiveScreenshotId:d}=e;s[0]!==o.id||s[1]!==d?(t=()=>{d(o.id)},s[0]=o.id,s[1]=d,s[2]=t):t=s[2];let m=t;s[3]!==o.id||s[4]!==d?(a=e=>{"Enter"===e.key&&d(o.id)},s[3]=o.id,s[4]=d,s[5]=a):a=s[5];let u=a,p=c===o.id,h=`screenshot-thumbnail-${o.id}`;return s[6]!==o.altText||s[7]!==o.src?(n=(0,r.jsx)("img",{src:o.src,width:670,alt:o.altText,className:"img-responsive"}),s[6]=o.altText,s[7]=o.src,s[8]=n):n=s[8],s[9]!==m||s[10]!==u||s[11]!==o.id||s[12]!==p||s[13]!==h||s[14]!==n?(l=(0,r.jsx)("div",{className:"ScreenshotCarousel-navitem",role:"tab",tabIndex:0,"aria-selected":p,onClick:m,onKeyDown:u,"data-testid":h,children:n},o.id),s[9]=m,s[10]=u,s[11]=o.id,s[12]=p,s[13]=h,s[14]=n,s[15]=l):l=s[15],l};t9.displayName="ScreenshotThumbnail";function ae(e){let t,a,n,l,s,o,c=(0,i.c)(11);return c[0]!==e?({title:n,children:t,...a}=e,c[0]=e,c[1]=t,c[2]=a,c[3]=n):(t=c[1],a=c[2],n=c[3]),c[4]===Symbol.for("react.memo_cache_sentinel")?(l={narrow:"condensed",regular:"normal"},c[4]=l):l=c[4],c[5]!==n?(s=(0,r.jsx)("h3",{className:"ListingBodySection-module__section-title___Exu6",children:n}),c[5]=n,c[6]=s):s=c[6],c[7]!==t||c[8]!==a||c[9]!==s?(o=(0,r.jsxs)(td.B,{gap:l,...a,children:[s,t]}),c[7]=t,c[8]=a,c[9]=s,c[10]=o):o=c[10],o}ae.displayName="ListingBodySection";let at=()=>{let e,t=(0,i.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsx)(ae,{title:"Requirements",children:(0,r.jsx)("div",{className:`${eQ} ${eX}`,children:(0,r.jsxs)("p",{className:"m-0","data-testid":"copilot-listing-requirement",children:["Copilot Extensions require an active"," ",(0,r.jsx)(e4.A,{inline:!0,href:"https://github.com/features/copilot/plans",children:"GitHub Copilot license"}),"."]})})}),t[0]=e):e=t[0],e};function aa(e){let t,a,n=(0,i.c)(11),{planInfo:l,listing:s,selectedPlan:o}=e,[c,m]=(0,d.useState)(l.selectedAccount||l.currentUser?.displayLogin);e:{let e;n[0]!==l?(e=tj(l),n[0]=l,n[1]=e):e=n[1];let{canInstall:a,reason:i}=e;if(a){if(o){let e;n[4]!==s||n[5]!==l||n[6]!==c||n[7]!==o?(e=(0,r.jsx)(tz,{planInfo:l,listing:s,plan:o,selectedAccount:c,onAccountSelect:m}),n[4]=s,n[5]=l,n[6]=c,n[7]=o,n[8]=e):e=n[8],t=e;break e}}else{let e;n[2]!==i?(e=(0,r.jsx)("div",{className:"tmp-pt-3",children:i}),n[2]=i,n[3]=e):e=n[3],t=e;break e}t=void 0}let u=t;return n[9]!==u?(a=u&&(0,r.jsx)("div",{"data-testid":"install-section",children:u}),n[9]=u,n[10]=a):a=n[10],a}at.displayName="CopilotListingRequirement",aa.displayName="InstallSection";var ar=a(62935),ai=a(49305);function an(e){let t,a=(0,i.c)(12),{planInfo:n,plan:l,listing:s}=e,o=n.endUserAgreement,[c,m]=(0,d.useState)(!1),u=`Set up with ${s.name}`;return a[0]!==o||a[1]!==c||a[2]!==u||a[3]!==s.name||a[4]!==s.privacyPolicyUrl||a[5]!==s.supportEmail||a[6]!==s.supportUrl||a[7]!==s.tosUrl||a[8]!==l||a[9]!==n.isLoggedIn||a[10]!==n.listingByGithub?(t=(0,r.jsx)(r.Fragment,{children:l&&l.directBilling&&n.isLoggedIn&&o?(0,r.jsxs)("p",{className:"text-center text-wrap-balance f6 fgColor-muted","data-testid":"terms-of-service",children:[s.tosUrl?(0,r.jsxs)(r.Fragment,{children:["By clicking \u201C",u,",\u201D you are agreeing to"," ",!o.userSignedAt&&(0,r.jsxs)(r.Fragment,{children:["the"," ",(0,r.jsx)(e4.A,{as:"button",inline:!0,onClick:()=>m(!0),children:o.name}),","]}),s.name,"\u2019s"," ",(0,r.jsx)(e4.A,{target:"_blank",rel:"noopener noreferrer",href:s.tosUrl,inline:!0,children:"Terms of Service"})," ","and the"," ",(0,r.jsx)(e4.A,{target:"_blank",rel:"noopener noreferrer",href:s.privacyPolicyUrl,inline:!0,children:"Privacy Policy"}),"."]}):(0,r.jsxs)(r.Fragment,{children:["By clicking ",u,", you agree to"," ",!o.userSignedAt&&(0,r.jsxs)(r.Fragment,{children:["the"," ",(0,r.jsx)(e4.A,{as:"button",inline:!0,onClick:()=>m(!0),children:o.name}),", and"," "]}),s.name,"\u2019s"," ",(0,r.jsx)(e4.A,{target:"_blank",rel:"noopener noreferrer",href:s.privacyPolicyUrl,inline:!0,children:"Privacy Policy"}),"."]}),o.userSignedAt&&(0,r.jsxs)(r.Fragment,{children:[" ","You previously agreed to the"," ",(0,r.jsx)(e4.A,{as:"button",inline:!0,onClick:()=>m(!0),children:o.name}),"."]}),(0,r.jsx)(ai.A,{isOpen:c,onDismiss:()=>m(!1),"aria-labelledby":"header",children:(0,r.jsxs)("div",{"data-testid":"inner",children:[(0,r.jsx)(ai.A.Header,{id:"header",children:`GitHub ${o.name} ${o.version}`}),(0,r.jsx)(eE.$6,{html:o.html,className:"tmp-p-3"}),o.userSignedAt&&(0,r.jsxs)("div",{className:"tmp-p-3 border-top",children:["You agreed to these terms ",(0,r.jsx)(ar.A,{date:new Date(o.userSignedAt)})]})]})})]}):(0,r.jsx)(r.Fragment,{children:n.listingByGithub?(0,r.jsxs)("p",{className:"text-center text-wrap-balance f6 fgColor-muted",children:[s.name," is owned and operated by GitHub"," ",s.tosUrl?(0,r.jsxs)(r.Fragment,{children:["with separate"," ",(0,r.jsx)(e4.A,{href:s.tosUrl,inline:!0,children:"terms of service"}),", ",(0,r.jsx)(e4.A,{href:s.privacyPolicyUrl,inline:!0,children:"privacy policy"}),","]}):(0,r.jsxs)(r.Fragment,{children:["with separate"," ",(0,r.jsx)(e4.A,{href:s.privacyPolicyUrl,inline:!0,children:"privacy policy"})]})," ","and"," ",s.supportEmail?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(e4.A,{href:`mailto:${s.supportEmail}`,inline:!0,children:"support contact"}),"."]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(e4.A,{href:s.supportUrl,inline:!0,children:"support documentation"}),"."]})]}):(0,r.jsxs)("p",{className:"text-center text-wrap-balance f6 fgColor-muted",children:[s.name," is provided by a third-party and is governed by"," ",s.tosUrl?(0,r.jsxs)(r.Fragment,{children:["separate"," ",(0,r.jsx)(e4.A,{href:s.tosUrl,inline:!0,children:"terms of service"}),", ",(0,r.jsx)(e4.A,{href:s.privacyPolicyUrl,inline:!0,children:"privacy policy"}),","]}):(0,r.jsxs)(r.Fragment,{children:["separate"," ",(0,r.jsx)(e4.A,{href:s.privacyPolicyUrl,inline:!0,children:"privacy policy"})]})," ","and"," ",s.supportEmail?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(e4.A,{href:`mailto:${s.supportEmail}`,inline:!0,children:"support contact"}),"."]}):(0,r.jsx)(e4.A,{href:s.supportUrl,inline:!0,children:"support documentation"})]})})}),a[0]=o,a[1]=c,a[2]=u,a[3]=s.name,a[4]=s.privacyPolicyUrl,a[5]=s.supportEmail,a[6]=s.supportUrl,a[7]=s.tosUrl,a[8]=l,a[9]=n.isLoggedIn,a[10]=n.listingByGithub,a[11]=t):t=a[11],t}function al(e){let t,a,n,l,s,o,c,m=(0,i.c)(23),{planInfo:u,listing:p}=e,[h,g]=(0,d.useState)(u.selectedPlanId);m[0]===Symbol.for("react.memo_cache_sentinel")?(t=e=>{g(e)},m[0]=t):t=m[0];let f=t;if(m[1]!==u.plans||m[2]!==h){let e;m[4]!==h?(e=e=>e.id===h,m[4]=h,m[5]=e):e=m[5],a=u.plans.find(e),m[1]=u.plans,m[2]=h,m[3]=a}else a=m[3];let x=a;return m[6]!==u||m[7]!==h?(n=(0,r.jsx)(tH,{planInfo:u,onPlanChange:f,selectedPlanId:h}),m[6]=u,m[7]=h,m[8]=n):n=m[8],m[9]!==p||m[10]!==u||m[11]!==x?(l=(0,r.jsx)(aa,{planInfo:u,listing:p,selectedPlan:x}),m[9]=p,m[10]=u,m[11]=x,m[12]=l):l=m[12],m[13]!==n||m[14]!==l?(s=(0,r.jsxs)("div",{className:`${eQ} ${eX}`,children:[n,l]}),m[13]=n,m[14]=l,m[15]=s):s=m[15],m[16]!==p||m[17]!==u||m[18]!==x?(o=(0,r.jsx)(an,{planInfo:u,plan:x,listing:p}),m[16]=p,m[17]=u,m[18]=x,m[19]=o):o=m[19],m[20]!==s||m[21]!==o?(c=(0,r.jsxs)(ae,{title:"Plans and pricing","data-testid":"pricing",id:"pricing-and-setup",children:[s,o]}),m[20]=s,m[21]=o,m[22]=c):c=m[22],c}function as(e){let t,a,n,l,s,o,c=(0,i.c)(16),{title:m,defaultOpen:u,children:p}=e,[h,g]=(0,d.useState)(u),f=(0,d.useRef)(null);c[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{g(!!f.current?.open)},c[0]=t):t=c[0];let x=t;return c[1]!==h?(a=h?(0,r.jsx)(eb.ChevronDownIcon,{size:12,className:"fgColor-muted"}):(0,r.jsx)(eb.ChevronRightIcon,{size:12,className:"fgColor-muted"}),c[1]=h,c[2]=a):a=c[2],c[3]!==m?(n=(0,r.jsx)(eR.A,{variant:"small",as:"h3",children:m}),c[3]=m,c[4]=n):n=c[4],c[5]!==a||c[6]!==n?(l=(0,r.jsxs)(td.B,{as:"summary",gap:"condensed",direction:"horizontal",align:"center",className:"cursor-pointer tmp-my-3",children:[a,n]}),c[5]=a,c[6]=n,c[7]=l):l=c[7],c[8]!==p||c[9]!==h?(s=h&&(0,r.jsx)("div",{className:"tmp-mb-3",children:p}),c[8]=p,c[9]=h,c[10]=s):s=c[10],c[11]!==h||c[12]!==l||c[13]!==s||c[14]!==m?(o=(0,r.jsxs)("details",{open:h,ref:f,onToggle:x,className:"border-top color-border-default pl-2 marketplace-module__marketplace-revealer__K7ZuG",children:[l,s]},m),c[11]=h,c[12]=l,c[13]=s,c[14]=m,c[15]=o):o=c[15],o}an.displayName="TermsOfService",al.displayName="Plans",as.displayName="Revealer";function ao(e){let t,a,n=(0,i.c)(4),{items:l}=e;return n[0]!==l?(t=l.map(ac),n[0]=l,n[1]=t):t=n[1],n[2]!==t?(a=(0,r.jsx)("dl",{className:"transparency-module__transparencyDataTable__Uaks8",children:t}),n[2]=t,n[3]=a):a=n[3],a}function ac(e){return e.value&&(0,r.jsxs)(d.Fragment,{children:[(0,r.jsx)("dt",{children:(0,r.jsx)(tE.A,{size:"small",weight:"semibold",children:e.label})}),(0,r.jsx)("dd",{children:(0,r.jsx)(tE.A,{size:"small",children:e.value})})]},e.label)}function ad(e){let t,a,n,l,s,o,c,d,m,u,p,h,g,f,x,y,j,b,v,_,N,w,k,A,S=(0,i.c)(60),{app:I}=e,{ownerSafeProfileName:C,ownerImage:L,ownerType:P,traderAddress:$,businessId:F,euTrader:B,statusUrl:T,tosUrl:U,privacyPolicyUrl:O,supportUrl:M,supportEmail:R,publisher2faRequired:D,verifiedProfileDomains:z}=I;S[0]!==L||S[1]!==C||S[2]!==P?(t=C&&(0,r.jsxs)("div",{className:"d-flex flex-items-center gap-2",children:[L&&(0,r.jsx)(tO.r,{src:L,alt:C,size:16,square:"User"!==P}),C]}),S[0]=L,S[1]=C,S[2]=P,S[3]=t):t=S[3],S[4]!==t?(a={label:"Developer",value:t},S[4]=t,S[5]=a):a=S[5],S[6]!==z?(n=z.length>0&&(0,r.jsx)(r.Fragment,{children:z.map(am)}),S[6]=z,S[7]=n):n=S[7],S[8]!==n?(l={label:"Company domain",value:n},S[8]=n,S[9]=l):l=S[9],S[10]!==$?(s=$&&(0,r.jsx)(r.Fragment,{children:$}),S[10]=$,S[11]=s):s=S[11],S[12]!==s?(o={label:"Business address",value:s},S[12]=s,S[13]=o):o=S[13],S[14]!==F?(c=F&&(0,r.jsx)(r.Fragment,{children:F}),S[14]=F,S[15]=c):c=S[15],S[16]!==c?(d={label:"Business ID",value:c},S[16]=c,S[17]=d):d=S[17],S[18]!==B?(m=B&&(0,r.jsx)(r.Fragment,{children:B}),S[18]=B,S[19]=m):m=S[19],S[20]!==m?(u={label:"EU Trader",value:m},S[20]=m,S[21]=u):u=S[21],S[22]!==T?(p=T&&(0,r.jsx)(e4.A,{href:T,rel:"nofollow",children:T}),S[22]=T,S[23]=p):p=S[23],S[24]!==p?(h={label:"Status page",value:p},S[24]=p,S[25]=h):h=S[25],S[26]!==U?(g=U&&(0,r.jsx)(e4.A,{href:U,rel:"nofollow",children:U}),S[26]=U,S[27]=g):g=S[27],S[28]!==g?(f={label:"Terms of service",value:g},S[28]=g,S[29]=f):f=S[29],S[30]!==O?(x=O&&(0,r.jsx)(e4.A,{href:O,rel:"nofollow",children:O}),S[30]=O,S[31]=x):x=S[31],S[32]!==x?(y={label:"Privacy policy",value:x},S[32]=x,S[33]=y):y=S[33],S[34]!==M?(j=M&&(0,r.jsx)(e4.A,{href:M,rel:"nofollow",children:M}),S[34]=M,S[35]=j):j=S[35],S[36]!==j?(b={label:"Support URL",value:j},S[36]=j,S[37]=b):b=S[37],S[38]!==R?(v=R&&(0,r.jsx)(e4.A,{href:`mailto:${R}`,children:R}),S[38]=R,S[39]=v):v=S[39],S[40]!==v?(_={label:"Support email",value:v},S[40]=v,S[41]=_):_=S[41],S[42]!==D?(N=D&&(0,r.jsx)(r.Fragment,{children:D}),S[42]=D,S[43]=N):N=S[43],S[44]!==N?(w={label:"Publisher 2FA Required",value:N},S[44]=N,S[45]=w):w=S[45],S[46]!==u||S[47]!==h||S[48]!==f||S[49]!==y||S[50]!==b||S[51]!==a||S[52]!==_||S[53]!==w||S[54]!==l||S[55]!==o||S[56]!==d?(k=[a,l,o,d,u,h,f,y,b,_,w],S[46]=u,S[47]=h,S[48]=f,S[49]=y,S[50]=b,S[51]=a,S[52]=_,S[53]=w,S[54]=l,S[55]=o,S[56]=d,S[57]=k):k=S[57];let V=k;return S[58]!==V?(A=(0,r.jsx)("div",{"data-testid":"publisher-info",children:(0,r.jsx)(ao,{items:V})}),S[58]=V,S[59]=A):A=S[59],A}function am(e){return(0,r.jsx)(e4.A,{href:`https://${e}`,rel:"nofollow",className:"d-block",children:e},e)}ao.displayName="TransparencyDataTable",ad.displayName="PublisherInfo";var au=a(3803);function ap(e){let t,a,n,l,s,o,c=(0,i.c)(13),{permissionsData:d}=e;c[0]!==d?(t=d.some(af),c[0]=d,c[1]=t):t=c[1];let m=t;if(c[2]!==d){let e;for(let e of(a=[],d)){let{scope:t,permissionLevel:r,values:i}=e;a.push({scope:t,permissionLevel:r,values:i,id:`${t}-${r}`})}c[4]===Symbol.for("react.memo_cache_sentinel")?(e={scope:"user",permissionLevel:"read",values:["public repositories","public organization information","public user profile data"],id:"public-read"},c[4]=e):e=c[4],a.push(e),c[2]=d,c[3]=a}else a=c[3];return c[5]===Symbol.for("react.memo_cache_sentinel")?(n=[{header:"Scope",id:"scope",renderCell:ag},{header:"Description",id:"description",renderCell:ah}],c[5]=n):n=c[5],c[6]!==a?(l=(0,r.jsx)(au.b,{data:a,columns:n}),c[6]=a,c[7]=l):l=c[7],c[8]!==m?(s=m&&(0,r.jsx)(tE.A,{size:"small",className:"fgColor-muted",children:"Repository permissions can be granted for all or selected repositories owned by the installing account."}),c[8]=m,c[9]=s):s=c[9],c[10]!==l||c[11]!==s?(o=(0,r.jsxs)(td.B,{gap:"condensed","data-testid":"permissions-info",children:[l,s]}),c[10]=l,c[11]=s,c[12]=o):o=c[12],o}function ah(e){return(0,r.jsxs)(r.Fragment,{children:["read"===e.permissionLevel?(0,r.jsx)(tE.A,{weight:"semibold",children:"Read"}):"write"===e.permissionLevel?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(tE.A,{weight:"semibold",children:"Read"}),"\xa0and\xa0",(0,r.jsx)(tE.A,{weight:"semibold",children:"write"})]}):(0,r.jsx)(tE.A,{weight:"semibold",children:"Admin"}),"single file"===e.scope?(0,r.jsxs)(r.Fragment,{children:["\xa0access to files located at\xa0",e.values.map((t,a)=>(0,r.jsxs)(d.Fragment,{children:[(0,r.jsx)("code",{children:t}),a{s("An error occurred while exporting the CSV."),n(!0)},c=async t=>{t.preventDefault(),a(!0);try{let t=await (0,F.DI)(`/marketplace/${e.slug}/transparency_report_exports`,{method:"POST",headers:{Accept:"text/csv"}});if(t.ok){let a=await t.blob(),r=document.createElement("a"),i=URL.createObjectURL(a);r.href=i,r.download=`${e.slug}-transparency-report.csv`,r.click(),r.remove(),URL.revokeObjectURL(i)}else o()}catch{o()}finally{a(!1)}};return(0,r.jsxs)(r.Fragment,{children:[i&&(0,r.jsx)(ab,{message:l,variant:"critical",onDismiss:()=>n(!1)}),(0,r.jsx)("form",{onSubmit:c,children:(0,r.jsx)(eF.Q,{loading:t,disabled:t,type:"submit",leadingVisual:eb.FileIcon,children:"Export CSV"})})]})}function a_(e){let t,a,n,l,s,o,c,d,m,u,p,h,g,f=(0,i.c)(33),{app:x,permissionsData:y}=e,{isAiHighRisk:j,llmsInUse:b,thirdPartyServices:v,repositoryVisibility:_,repositoryUrl:N,transparencyDisclosure:w,copilotApp:k}=x;f[0]!==k||f[1]!==j||f[2]!==b||f[3]!==N||f[4]!==_||f[5]!==v||f[6]!==w?(t={isAiHighRisk:j,llmsInUse:b,thirdPartyServices:v,repositoryVisibility:_,repositoryUrl:N,transparencyDisclosure:w,copilotApp:k},f[0]=k,f[1]=j,f[2]=b,f[3]=N,f[4]=_,f[5]=v,f[6]=w,f[7]=t):t=f[7];let A=t,S=Object.values(A).some(aw);f[8]!==x?(a={title:"1. Publisher",content:(0,r.jsx)(ad,{app:x}),defaultOpen:!0},f[8]=x,f[9]=a):a=f[9],f[10]!==x.listableType||f[11]!==y?(n={title:"2. Permissions",content:"Integration"===x.listableType?(0,r.jsx)(ap,{permissionsData:y}):(0,r.jsx)(ax,{}),defaultOpen:!1},f[10]=x.listableType,f[11]=y,f[12]=n):n=f[12],f[13]!==A||f[14]!==S?(l=S&&(0,r.jsx)(ay,{...A}),f[13]=A,f[14]=S,f[15]=l):l=f[15],f[16]!==l?(s={title:"3. Security & Compliance",content:l,defaultOpen:!1},f[16]=l,f[17]=s):s=f[17],f[18]!==a||f[19]!==n||f[20]!==s?(o=[a,n,s],f[18]=a,f[19]=n,f[20]=s,f[21]=o):o=f[21];let I=o;return f[22]===Symbol.for("react.memo_cache_sentinel")?(c={narrow:"vertical",regular:"horizontal"},d={narrow:"start",regular:"center"},f[22]=c,f[23]=d):(c=f[22],d=f[23]),f[24]===Symbol.for("react.memo_cache_sentinel")?(m=(0,r.jsx)(eR.A,{as:"h2",variant:"medium",children:"Transparency and security"}),f[24]=m):m=f[24],f[25]!==x?(u=(0,r.jsxs)(td.B,{className:"tmp-pb-3",gap:"condensed",direction:c,align:d,justify:"space-between",children:[m,(0,r.jsx)(av,{app:x})]}),f[25]=x,f[26]=u):u=f[26],f[27]!==I?(p=I.map(aN),f[27]=I,f[28]=p):p=f[28],f[29]===Symbol.for("react.memo_cache_sentinel")?(h=(0,r.jsx)("div",{className:"border-top color-border-muted tmp-pt-3",children:(0,r.jsxs)(tE.A,{size:"small",className:"fgColor-muted",children:["For more information on the terms of service on the GitHub Marketplace, please visit the"," ",(0,r.jsx)(e4.A,{inline:!0,href:"https://docs.github.com/en/site-policy/github-terms/github-marketplace-developer-agreement",children:"Marketplace Developer Agreement"}),"."]})}),f[29]=h):h=f[29],f[30]!==u||f[31]!==p?(g=(0,r.jsxs)("div",{"data-testid":"transparency-section",children:[u,p,h]}),f[30]=u,f[31]=p,f[32]=g):g=f[32],g}function aN(e){return e.content&&(0,r.jsx)(as,{title:e.title,defaultOpen:e.defaultOpen,children:e.content},e.title)}function aw(e){return e}function ak(e){let t,a,n,l,s=(0,i.c)(8),{linkItems:o,dangerItems:c}=e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(t={marginLeft:"-6px"},s[0]=t):t=s[0],s[1]!==o?(a=o.map(aS),s[1]=o,s[2]=a):a=s[2],s[3]!==c?(n=c&&c.map(aA),s[3]=c,s[4]=n):n=s[4],s[5]!==a||s[6]!==n?(l=(0,r.jsxs)(eZ.l,{variant:"full",style:t,children:[a,n]}),s[5]=a,s[6]=n,s[7]=l):l=s[7],l}function aA(e){let t=e.component;return e.onSelect&&(0,r.jsxs)(eZ.l.Item,{onSelect:e.onSelect,variant:"danger",children:[(0,r.jsx)(eZ.l.LeadingVisual,{children:(0,r.jsx)(t,{size:16})}),e.text]},e.text)}function aS(e){let t=e.component;return e.url&&(0,r.jsxs)(eZ.l.LinkItem,{href:e.url,children:[(0,r.jsx)(eZ.l.LeadingVisual,{children:(0,r.jsx)(t,{size:16})}),e.text,(0,r.jsx)(eZ.l.TrailingVisual,{children:e.trailingVisual})]},e.text)}function aI(e){let t,a,n,l,s,o,c,d,m,u,p,h,g=(0,i.c)(30),{app:f}=e,{isBrowser:x}=(0,tw.V)();e:{let e;if(!x){t=void 0;break e}let a=tN.fV?.origin;if(!a){t=void 0;break e}let r=`${a}/marketplace/${f.slug}`,i=`${r} (Marketplace Listing)`;g[0]!==i?(e=(0,tx.YPg)({report:i}),g[0]=i,g[1]=e):e=g[1],t=e}let y=t,j=f.supportUrl||f.supportEmail&&`mailto:${f.supportEmail}`;g[2]!==j?(a={url:j,component:eb.CommentDiscussionIcon,text:"Support"},g[2]=j,g[3]=a):a=g[3],g[4]!==f.pricingUrl?(n={url:f.pricingUrl,component:eb.TagIcon,text:"Pricing"},g[4]=f.pricingUrl,g[5]=n):n=g[5],g[6]!==f.repositoryUrl?(l={url:f.repositoryUrl,component:eb.RepoIcon,text:"Repository"},g[6]=f.repositoryUrl,g[7]=l):l=g[7],g[8]!==f.documentationUrl?(s={url:f.documentationUrl,component:eb.BookIcon,text:"Documentation"},g[8]=f.documentationUrl,g[9]=s):s=g[9],g[10]!==f.privacyPolicyUrl?(o={url:f.privacyPolicyUrl,component:eb.LawIcon,text:"Privacy Policy"},g[10]=f.privacyPolicyUrl,g[11]=o):o=g[11],g[12]!==f.tosUrl?(c={url:f.tosUrl,component:eb.LawIcon,text:"Terms of Service"},g[12]=f.tosUrl,g[13]=c):c=g[13],g[14]!==f.statusUrl?(d={url:f.statusUrl,component:eb.PulseIcon,text:"Status"},g[14]=f.statusUrl,g[15]=d):d=g[15],g[16]!==y?(m={url:y,component:eb.ReportIcon,text:"Report abuse"},g[16]=y,g[17]=m):m=g[17],g[18]!==m||g[19]!==a||g[20]!==n||g[21]!==l||g[22]!==s||g[23]!==o||g[24]!==c||g[25]!==d?(u=[a,n,l,s,o,c,d,m],g[18]=m,g[19]=a,g[20]=n,g[21]=l,g[22]=s,g[23]=o,g[24]=c,g[25]=d,g[26]=u):u=g[26];let b=u;return g[27]===Symbol.for("react.memo_cache_sentinel")?(p=(0,r.jsx)(tg.A,{title:"Resources",htmlTag:"h2"}),g[27]=p):p=g[27],g[28]!==b?(h=(0,r.jsxs)(td.B,{gap:"condensed","data-testid":"apps-resources",children:[p,(0,r.jsx)(ak,{linkItems:b})]}),g[28]=b,g[29]=h):h=g[29],h}function aC(e){let t,a=(0,i.c)(2),{supportedLanguages:n}=e;return a[0]!==n?(t=n.length?(0,r.jsxs)(td.B,{gap:"condensed","data-testid":"languages",children:[(0,r.jsx)(tg.A,{title:"Supported languages",htmlTag:"h2",count:n?.length}),(0,r.jsx)("span",{children:t0(n)})]}):null,a[0]=n,a[1]=t):t=a[1],t}function aL(e){let t,a,n,l,s,o,c,d,u,p,h,g,f,x,y,j,b,v,_,N=(0,i.c)(53),{app:w,screenshots:k,planInfo:A,supportedLanguages:S,permissionsData:I}=e;N[0]===Symbol.for("react.memo_cache_sentinel")?(t={regular:!0},N[0]=t):t=N[0];let C=(0,ey.tv)(t,!1),L=w.copilotApp&&C;if(N[1]!==A.plans||N[2]!==A.selectedPlanId){let e;N[4]!==A.selectedPlanId?(e=e=>e.id===A.selectedPlanId,N[4]=A.selectedPlanId,N[5]=e):e=N[5],a=A.plans.find(e),N[1]=A.plans,N[2]=A.selectedPlanId,N[3]=a}else a=N[3];let P=a,[$]=(0,m.ok)(),F="transparency"===$.get("tab")?"transparency":"readme";N[6]!==w.fullDescription?(n=w.fullDescription&&(0,r.jsx)(eE.$6,{className:"markdown-body",html:w.fullDescription}),N[6]=w.fullDescription,N[7]=n):n=N[7],N[8]!==w.extendedDescription?(l=w.extendedDescription&&(0,r.jsx)(eE.$6,{className:"markdown-body",html:w.extendedDescription}),N[8]=w.extendedDescription,N[9]=l):l=N[9],N[10]!==k?(s=(0,r.jsx)(t8,{screenshots:k}),N[10]=k,N[11]=s):s=N[11],N[12]!==n||N[13]!==l||N[14]!==s?(o=(0,r.jsxs)(td.B,{gap:"normal","data-testid":"readme-content",children:[n,l,s]}),N[12]=n,N[13]=l,N[14]=s,N[15]=o):o=N[15];let B=o;if("transparency"===F){let e;N[16]!==w||N[17]!==I?(e=(0,r.jsx)(a_,{app:w,permissionsData:I}),N[16]=w,N[17]=I,N[18]=e):e=N[18],c=e}else c=B;N[19]!==A||N[20]!==L?(d=L&&(0,r.jsx)(t6,{planInfo:A}),N[19]=A,N[20]=L,N[21]=d):d=N[21];let T="readme"===F?"page":void 0;N[22]!==T?(u=(0,r.jsx)(eD.O.Item,{icon:eb.BookIcon,as:m.N_,to:"?tab=readme","aria-current":T,children:"README"}),N[22]=T,N[23]=u):u=N[23];let U="transparency"===F?"page":void 0;return N[24]!==U?(p=(0,r.jsx)(eD.O.Item,{icon:eb.LogIcon,as:m.N_,to:"?tab=transparency","aria-current":U,children:"Transparency"}),N[24]=U,N[25]=p):p=N[25],N[26]!==p||N[27]!==u?(h=(0,r.jsxs)(eD.O,{"aria-label":"Select a tab",children:[u,p]}),N[26]=p,N[27]=u,N[28]=h):h=N[28],N[29]!==c?(g=(0,r.jsx)("div",{className:"marketplace-module__marketplace-content-container__content__YCmsM",children:c}),N[29]=c,N[30]=g):g=N[30],N[31]!==h||N[32]!==g?(f=(0,r.jsxs)("div",{className:`${eQ} marketplace-module__marketplace-content-container--no-padding__FUT9W`,children:[h,g]}),N[31]=h,N[32]=g,N[33]=f):f=N[33],N[34]!==w.copilotApp?(x=w.copilotApp&&(0,r.jsx)(at,{}),N[34]=w.copilotApp,N[35]=x):x=N[35],N[36]!==S?(y=(0,r.jsx)(aC,{supportedLanguages:S}),N[36]=S,N[37]=y):y=N[37],N[38]!==w?(j=(0,r.jsx)(aI,{app:w}),N[38]=w,N[39]=j):j=N[39],N[40]!==y||N[41]!==j?(b=(0,r.jsxs)(td.B,{className:"d-md-none",children:[y,j]}),N[40]=y,N[41]=j,N[42]=b):b=N[42],N[43]!==w||N[44]!==A||N[45]!==P?(v=w.copilotApp?(0,r.jsx)(an,{planInfo:A,plan:P,listing:w}):(0,r.jsx)(al,{listing:w,planInfo:A}),N[43]=w,N[44]=A,N[45]=P,N[46]=v):v=N[46],N[47]!==f||N[48]!==x||N[49]!==b||N[50]!==v||N[51]!==d?(_=(0,r.jsxs)(td.B,{gap:"spacious",children:[d,f,x,b,v]}),N[47]=f,N[48]=x,N[49]=b,N[50]=v,N[51]=d,N[52]=_):_=N[52],_}function aP(e){let t,a,n,l,s,o,c,d,m=(0,i.c)(23),{app:u,supportedLanguages:p,planInfo:h}=e;return m[0]!==u?(t=(0,r.jsx)(ty,{app:u,sidebar:!0}),m[0]=u,m[1]=t):t=m[1],m[2]!==u.isVerifiedOwner?(a=(0,r.jsx)(tJ,{isVerifiedOwner:u.isVerifiedOwner,pageType:"apps"}),m[2]=u.isVerifiedOwner,m[3]=a):a=m[3],m[4]!==u.categories?(n=(0,r.jsx)(t4,{tags:u.categories,type:"apps"}),m[4]=u.categories,m[5]=n):n=m[5],m[6]!==u.copilotApp||m[7]!==h?(l=(0,r.jsx)(t2,{planInfo:h,isCopilotApp:u.copilotApp}),m[6]=u.copilotApp,m[7]=h,m[8]=l):l=m[8],m[9]!==u.copilotApp?(s=(0,r.jsx)(tZ,{isCopilotApp:u.copilotApp}),m[9]=u.copilotApp,m[10]=s):s=m[10],m[11]!==p?(o=(0,r.jsx)(aC,{supportedLanguages:p}),m[11]=p,m[12]=o):o=m[12],m[13]!==u?(c=(0,r.jsx)(aI,{app:u}),m[13]=u,m[14]=c):c=m[14],m[15]!==t||m[16]!==a||m[17]!==n||m[18]!==l||m[19]!==s||m[20]!==o||m[21]!==c?(d=(0,r.jsxs)(r.Fragment,{children:[t,a,n,l,s,o,c]}),m[15]=t,m[16]=a,m[17]=n,m[18]=l,m[19]=s,m[20]=o,m[21]=c,m[22]=d):d=m[22],d}function a$(){let e,t,a,n,s=(0,i.c)(18),{listing:o,planInfo:c,userCanEdit:d,screenshots:m,supportedLanguages:u,permissionsData:p}=(0,l.B)();return s[0]!==o||s[1]!==c||s[2]!==d?(e=(0,r.jsx)(t7,{app:o,planInfo:c,userCanEdit:d}),s[0]=o,s[1]=c,s[2]=d,s[3]=e):e=s[3],s[4]!==o||s[5]!==p||s[6]!==c||s[7]!==m||s[8]!==u?(t=(0,r.jsx)(aL,{app:o,screenshots:m,planInfo:c,supportedLanguages:u,permissionsData:p}),s[4]=o,s[5]=p,s[6]=c,s[7]=m,s[8]=u,s[9]=t):t=s[9],s[10]!==o||s[11]!==c||s[12]!==u?(a=(0,r.jsx)(aP,{app:o,planInfo:c,supportedLanguages:u}),s[10]=o,s[11]=c,s[12]=u,s[13]=a):a=s[13],s[14]!==e||s[15]!==t||s[16]!==a?(n=(0,r.jsx)(tm,{header:e,body:t,sidebar:a}),s[14]=e,s[15]=t,s[16]=a,s[17]=n):n=s[17],n}function aF(e){let t,a,n,l,s,o,c,d,m,u,p,h,g=(0,i.c)(34),{action:f,repository:x,sidebar:y,releaseData:j}=e,{description:b,isVerifiedOwner:v}=f,{isOrganization:_,owner:N}=x,w=(0,tf.yY)(),{selectedRelease:k,latestRelease:A}=j,S=k||A;return g[0]!==y?(t=y&&(0,r.jsx)(tg.A,{title:"About",htmlTag:"h2"}),g[0]=y,g[1]=t):t=g[1],g[2]!==b?(a=b&&(0,r.jsx)("span",{children:b}),g[2]=b,g[3]=a):a=g[3],g[4]===Symbol.for("react.memo_cache_sentinel")?(n=(0,r.jsx)(eb.TagIcon,{className:"marketplace-module__marketplace-version-icon__NTluI"}),g[4]=n):n=g[4],g[5]!==S.tagName?(l=(0,r.jsx)("span",{children:S.tagName}),g[5]=S.tagName,g[6]=l):l=g[6],g[7]!==S.tagName||g[8]!==l?(s=(0,r.jsx)(tM.A,{inline:!0,title:S.tagName,maxWidth:"none",children:l}),g[7]=S.tagName,g[8]=l,g[9]=s):s=g[9],g[10]!==A.tagName||g[11]!==S.tagName?(o=S.tagName===A.tagName&&(0,r.jsx)(ez.A,{variant:"success",className:"flex-shrink-0",children:"Latest"}),g[10]=A.tagName,g[11]=S.tagName,g[12]=o):o=g[12],g[13]!==S.isPrerelease?(c=S.isPrerelease&&(0,r.jsx)(ez.A,{variant:"severe",className:"flex-shrink-0",children:"Pre-release"}),g[13]=S.isPrerelease,g[14]=c):c=g[14],g[15]!==s||g[16]!==o||g[17]!==c?(d=(0,r.jsxs)(td.B,{gap:"condensed",direction:"horizontal",children:[n,(0,r.jsx)("div",{className:"min-width-0",children:(0,r.jsxs)(td.B,{gap:"condensed",direction:"horizontal",children:[s,o,c]})})]}),g[15]=s,g[16]=o,g[17]=c,g[18]=d):d=g[18],g[19]!==w||g[20]!==_||g[21]!==N?(m=N&&(0,r.jsx)("div",{className:"color-fg-muted pr-1",children:(0,r.jsxs)(r.Fragment,{children:["By ",(0,r.jsx)(e4.A,{href:(0,tx.p3r)({owner:N}),...w(_?"organization":"user",{login:N}),children:N})]})}),g[19]=w,g[20]=_,g[21]=N,g[22]=m):m=g[22],g[23]!==v||g[24]!==y?(u=v&&!y&&(0,r.jsxs)("div",{children:[(0,r.jsx)(eb.VerifiedIcon,{size:16,className:"fgColor-accent","aria-label":"Manually verified"}),(0,r.jsx)("span",{className:"ml-2",children:"Verified creator"})]}),g[23]=v,g[24]=y,g[25]=u):u=g[25],g[26]!==m||g[27]!==u?(p=(0,r.jsxs)(td.B,{wrap:"wrap",direction:"horizontal",gap:"condensed",children:[m,u]}),g[26]=m,g[27]=u,g[28]=p):p=g[28],g[29]!==t||g[30]!==a||g[31]!==p||g[32]!==d?(h=(0,r.jsxs)(td.B,{gap:"condensed","data-testid":"about",children:[t,a,d,p]}),g[29]=t,g[30]=a,g[31]=p,g[32]=d,g[33]=h):h=g[33],h}function aB(e){let t,a,n=(0,i.c)(5),{action:l,selectedRelease:s,latestRelease:o}=e,{slug:c}=l,d=s&&s.tagName!==o.tagName;return n[0]!==d||n[1]!==c?(t=d&&c&&(0,r.jsx)(t5.l,{variant:"warning",hideTitle:!0,title:"Warning",description:(0,r.jsxs)(r.Fragment,{children:["You're viewing an older version of this GitHub Action. Do you want to see the"," ",(0,r.jsx)(e4.A,{href:(0,tx.xwZ)({slug:c}),inline:!0,children:"latest version"})," ","instead?"]})}),n[0]=d,n[1]=c,n[2]=t):t=n[2],n[3]!==t?(a=(0,r.jsx)(r.Fragment,{children:t}),n[3]=t,n[4]=a):a=n[4],a}ab.displayName="BannerPortal",av.displayName="ExportButton",a_.displayName="TransparencySection",ak.displayName="ResourceList",aI.displayName="Resources",aC.displayName="Languages",aL.displayName="Body",aP.displayName="Sidebar",a$.displayName="ShowApp",aF.displayName="About",aB.displayName="ReleaseBanner";var aT=a(47819),aU=a(45360);function aO(e){let t,a,n=(0,i.c)(9),{action:l,repository:s,isOpen:o,onClose:c,selectedRelease:d,latestRelease:m}=e,{externalUsesPathPrefix:u}=l,p=d?d.tagName:m.tagName,h=`${u}${p}`,g=`- name: ${l.name} uses: ${h}`;return n[0]!==l||n[1]!==o||n[2]!==c||n[3]!==s||n[4]!==g||n[5]!==h?(t=o&&(0,r.jsxs)(eB.l,{onClose:c,title:(0,r.jsxs)(td.B,{direction:"horizontal",align:"center",children:[(0,r.jsx)(eG,{listing:l,additionalDivClasses:eM.A["marketplace-logo--dialog"]}),(0,r.jsxs)("div",{children:[(0,r.jsx)(eR.A,{as:"h3",variant:"small",className:"lh-condensed",children:l.name}),l.description&&(0,r.jsx)(tE.A,{as:"p",size:"medium",weight:"normal",className:"color-fg-muted m-0 lh-condensed",children:l.description})]})]}),children:[(0,r.jsx)(eR.A,{as:"h2",className:"h6","data-testid":"code-snippet-dialog",children:"Installation"}),(0,r.jsxs)("p",{className:"text-small color-fg-muted",children:["Copy and paste the following snippet into your ",(0,r.jsx)("span",{className:"text-mono",children:".yml"})," file."]}),(0,r.jsxs)("div",{className:"copyable-terminal mb-2",children:[(0,r.jsx)("div",{className:"copyable-terminal-button",children:(0,r.jsx)(aU.T,{textToCopy:g,ariaLabel:"Copy to clipboard"})}),(0,r.jsxs)("pre",{className:"marketplace-module__copyable-code-snippet__XAoKG",children:[(0,r.jsxs)("p",{children:["- name: ",l.name]}),(0,r.jsxs)("p",{children:["\xa0\xa0uses: ",h]})]})]}),s.owner&&s.name&&(0,r.jsxs)(e4.A,{href:(0,tx.SHX)({owner:s.owner,repo:s.name}),className:"text-small",children:["Learn more about this action in"," ",(0,r.jsxs)("strong",{children:[s.owner,"/",s.name]})]})]}),n[0]=l,n[1]=o,n[2]=c,n[3]=s,n[4]=g,n[5]=h,n[6]=t):t=n[6],n[7]!==t?(a=(0,r.jsx)(r.Fragment,{children:t}),n[7]=t,n[8]=a):a=n[8],a}aO.displayName="CodeSnippet";var aM=a(77236);function aR(e){let t,a,n=(0,i.c)(8),{action:l,selectedRelease:s,releases:o,isOpen:c,onClose:d}=e;return n[0]!==l||n[1]!==c||n[2]!==d||n[3]!==o||n[4]!==s?(t=c&&(0,r.jsx)(eB.l,{title:"Choose a version",width:"large",onClose:d,children:(0,r.jsx)(eZ.l,{showDividers:!0,variant:"full","data-testid":"version-picker-dialog",children:o.map(e=>{let t=s&&e.tagName===s.tagName;return(0,r.jsxs)(eZ.l.LinkItem,{as:aM.N,to:`${(0,tx.xwZ)({slug:l.slug||""})}?version=${e.tagName}`,active:t,"data-testid":t?"selected-version":"",onClick:d,children:[(0,r.jsx)("span",{className:"text-semibold",children:e.tagName}),e.name&&e.name!==e.tagName&&(0,r.jsx)(eZ.l.Description,{variant:"block",children:e.name})]},e.tagName)})})}),n[0]=l,n[1]=c,n[2]=d,n[3]=o,n[4]=s,n[5]=t):t=n[5],n[6]!==t?(a=(0,r.jsx)(r.Fragment,{children:t}),n[6]=t,n[7]=a):a=n[7],a}function aD(e){let t,a,n,l,s,o,c,m,u,p=(0,i.c)(28),{releaseData:h,action:g,repository:f}=e,{selectedRelease:x,latestRelease:y,releases:j}=h,[b,v]=(0,d.useState)(!1);p[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>v(!1),p[0]=t):t=p[0];let _=t,[N,w]=(0,d.useState)(!1);p[1]===Symbol.for("react.memo_cache_sentinel")?(a=()=>w(!1),p[1]=a):a=p[1];let k=a;p[2]!==g.globalRelayId||p[3]!==b?(n=()=>{v(!b),(0,eV.BI)("marketplace.action.click",{repository_action_id:g.globalRelayId,source_url:`${window.location}`,location:"actions#show"})},p[2]=g.globalRelayId,p[3]=b,p[4]=n):n=p[4];let A=x?x.tagName:"latest version";return p[5]!==n||p[6]!==A?(l=(0,r.jsxs)(eF.Q,{variant:"primary",onClick:n,block:!0,children:["Use ",A]}),p[5]=n,p[6]=A,p[7]=l):l=p[7],p[8]!==N?(s=(0,r.jsx)(tY.K,{variant:"primary",onClick:()=>w(!N),"aria-label":"Choose a version",icon:eb.TriangleDownIcon}),p[8]=N,p[9]=s):s=p[9],p[10]!==l||p[11]!==s?(o=(0,r.jsxs)(aT.A,{className:"marketplace-module__ButtonGroup__d0YGv",children:[l,s]}),p[10]=l,p[11]=s,p[12]=o):o=p[12],p[13]!==g||p[14]!==b||p[15]!==y||p[16]!==f||p[17]!==x?(c=(0,r.jsx)(aO,{action:g,repository:f,isOpen:b,onClose:_,selectedRelease:x,latestRelease:y}),p[13]=g,p[14]=b,p[15]=y,p[16]=f,p[17]=x,p[18]=c):c=p[18],p[19]!==g||p[20]!==N||p[21]!==j||p[22]!==x?(m=(0,r.jsx)(aR,{action:g,selectedRelease:x,releases:j,isOpen:N,onClose:k}),p[19]=g,p[20]=N,p[21]=j,p[22]=x,p[23]=m):m=p[23],p[24]!==o||p[25]!==c||p[26]!==m?(u=(0,r.jsxs)(r.Fragment,{children:[o,c,m]}),p[24]=o,p[25]=c,p[26]=m,p[27]=u):u=p[27],u}aR.displayName="VersionPicker",aD.displayName="VersionButton";var az=a(7771),aV=a(60625);function aE(e){let t,a,n,l,s,o,c,m,u,p,h=(0,i.c)(32);h[0]!==e?({repository:l,action:t,loggedIn:n,starData:s,...a}=e,h[0]=e,h[1]=t,h[2]=a,h[3]=n,h[4]=l,h[5]=s):(t=h[1],a=h[2],n=h[3],l=h[4],s=h[5]);let{starredByCurrentUser:g,currentUserAbleToStar:f,currentUserEnterpriseName:x}=s,y=x?`You cannot star repositories outside of your enterprise ${x}`:"You can't star at this time",[j,b]=(0,d.useState)(t.stars),[v,_]=(0,d.useState)(g);h[6]!==l.name||h[7]!==l.owner?(o=()=>(0,F.DI)(`${(0,tx.SHX)({owner:l.owner||"",repo:l.name||""})}/star`,{method:"POST"}),h[6]=l.name,h[7]=l.owner,h[8]=o):o=h[8];let N=o;h[9]!==l.name||h[10]!==l.owner?(c=()=>(0,F.DI)(`${(0,tx.SHX)({owner:l.owner||"",repo:l.name||""})}/unstar`,{method:"POST"}),h[9]=l.name,h[10]=l.owner,h[11]=c):c=h[11];let w=c;e:{let e;if(j>=1e3){let e;h[12]!==j?(e=new Intl.NumberFormat("en-US",{notation:"compact",compactDisplay:"short",maximumFractionDigits:1}).format(j),h[12]=j,h[13]=e):e=h[13],m=e;break e}h[14]!==j?(e=j.toString(),h[14]=j,h[15]=e):e=h[15],m=e}let k=m;h[16]!==j||h[17]!==v||h[18]!==l.id||h[19]!==N||h[20]!==w?(u=async()=>{let e=v?"UNSTAR_BUTTON":"STAR_BUTTON";(0,eV.BI)("repository.click",{target:e,repository_id:l.id});let t=v?w:N;(_(!v),(await t()).ok)?v?b(j-1):b(j+1):_(v)},h[16]=j,h[17]=v,h[18]=l.id,h[19]=N,h[20]=w,h[21]=u):u=h[21];let A=u;return l.owner&&l.name&&t.slug?(h[22]!==t.slug||h[23]!==a||h[24]!==f||h[25]!==v||h[26]!==k||h[27]!==A||h[28]!==n||h[29]!==l.id||h[30]!==y?(p=n&&(f||v)?(0,r.jsxs)(eF.Q,{onClick:A,leadingVisual:v?(0,r.jsx)(eb.StarFillIcon,{className:v?"marketplace-module__starred-button-icon__eCsvE":""}):eb.StarIcon,"aria-label":v?`Unstar this repository (${k})`:`Star this repository (${k})`,"data-testid":"star-button",...a,children:[v?"Starred":"Star",(0,r.jsx)(az.A,{className:"ml-2",children:k})]}):n?(0,r.jsx)(aV.m,{text:y,children:(0,r.jsxs)(eF.Q,{inactive:!0,leadingVisual:eb.StarIcon,"data-testid":"star-button",...a,children:["Star",(0,r.jsx)(az.A,{className:"ml-2",children:k})]})}):(0,r.jsx)(aV.m,{text:"You must be signed in to star a repository",children:(0,r.jsxs)(eF.Q,{as:"a",leadingVisual:eb.StarIcon,href:`/login?return_to=${encodeURIComponent((0,tx.xwZ)({slug:t.slug||""}))}`,onClick:()=>(0,eV.BI)("authentication.click",{location_in_page:"star button",repository_id:l.id,auth_type:"LOG_IN"}),"data-testid":"star-button",...a,children:["Star",(0,r.jsx)(az.A,{className:"ml-2",children:k})]})}),h[22]=t.slug,h[23]=a,h[24]=f,h[25]=v,h[26]=k,h[27]=A,h[28]=n,h[29]=l.id,h[30]=y,h[31]=p):p=h[31],p):null}function aH(e){let t,a,n,l,s,o,c,d,m,u,p=(0,i.c)(35),{action:h,repository:g,releaseData:f,loggedIn:x,starData:y}=e,{selectedRelease:j,latestRelease:b}=f,{isVerifiedOwner:v}=h;return p[0]!==h||p[1]!==b||p[2]!==j?(t=(0,r.jsx)(aB,{selectedRelease:j,latestRelease:b,action:h}),p[0]=h,p[1]=b,p[2]=j,p[3]=t):t=p[3],p[4]!==h||p[5]!==f||p[6]!==g?(a=(0,r.jsx)(aF,{action:h,repository:g,releaseData:f}),p[4]=h,p[5]=f,p[6]=g,p[7]=a):a=p[7],p[8]!==h.categories?(n=(0,r.jsx)(t4,{tags:h.categories,type:"actions"}),p[8]=h.categories,p[9]=n):n=p[9],p[10]!==v?(l=(0,r.jsx)(tJ,{isVerifiedOwner:v,pageType:"actions"}),p[10]=v,p[11]=l):l=p[11],p[12]!==n||p[13]!==l?(s=(0,r.jsxs)(r.Fragment,{children:[n,l]}),p[12]=n,p[13]=l,p[14]=s):s=p[14],p[15]===Symbol.for("react.memo_cache_sentinel")?(o={narrow:"vertical",regular:"horizontal"},p[15]=o):o=p[15],p[16]!==h||p[17]!==x||p[18]!==g||p[19]!==y?(c=(0,r.jsx)(aE,{repository:g,action:h,loggedIn:x,starData:y}),p[16]=h,p[17]=x,p[18]=g,p[19]=y,p[20]=c):c=p[20],p[21]!==h||p[22]!==f||p[23]!==g?(d=(0,r.jsx)(aD,{releaseData:f,action:h,repository:g}),p[21]=h,p[22]=f,p[23]=g,p[24]=d):d=p[24],p[25]!==c||p[26]!==d?(m=(0,r.jsxs)(td.B,{gap:"condensed",direction:o,className:"width-full width-md-auto",children:[c,d]}),p[25]=c,p[26]=d,p[27]=m):m=p[27],p[28]!==h||p[29]!==x||p[30]!==t||p[31]!==a||p[32]!==s||p[33]!==m?(u=(0,r.jsx)(th,{listing:h,loggedIn:x,banner:t,listingDetails:a,additionalDetails:s,callToAction:m}),p[28]=h,p[29]=x,p[30]=t,p[31]=a,p[32]=s,p[33]=m,p[34]=u):u=p[34],u}function aG(e){let t,a,n=(0,i.c)(9),{repository:l}=e,{contributorsCount:s,topContributorsData:o,owner:c,name:d}=l,m=s-o.length,u=(0,tf.yY)();return n[0]!==s||n[1]!==u||n[2]!==d||n[3]!==c||n[4]!==m||n[5]!==o?(t=s>0&&c&&d&&(0,r.jsxs)(td.B,{gap:"condensed","data-testid":"contributors",children:[(0,r.jsx)(tg.A,{title:"Contributors",count:s,htmlTag:"h2",link:(0,tx.e87)({ownerLogin:c,name:d})}),(0,r.jsx)(td.B,{direction:"horizontal",gap:"condensed",wrap:"wrap",children:o.map(e=>(0,r.jsx)(e4.A,{href:(0,tx.p3r)({owner:e.displayLogin}),...u("user",{login:e.displayLogin}),children:(0,r.jsx)(tO.r,{src:e.src,alt:e.alt,size:32})},e.alt))}),m>0&&(0,r.jsxs)(e4.A,{href:(0,tx.e87)({ownerLogin:c,name:d}),children:["+ ",m," contributors"]})]}),n[0]=s,n[1]=u,n[2]=d,n[3]=c,n[4]=m,n[5]=o,n[6]=t):t=n[6],n[7]!==t?(a=(0,r.jsx)(r.Fragment,{children:t}),n[7]=t,n[8]=a):a=n[8],a}aE.displayName="StarButton",aH.displayName="Header",aG.displayName="Contributors";var aq=a(72685);function aW(e){let t,a,n,l=(0,i.c)(11),{action:s,repoAdminableByViewer:o,isDialogOpen:c,onDialogClose:m}=e,u=s.slug??"";l[0]!==u?(t=(0,tx.xwZ)({slug:u}),l[0]=u,l[1]=t):t=l[1];let p=(0,tC.H)(t,"delete"),h=(0,d.useRef)(null);l[2]!==s.globalRelayId?(a=()=>{h.current&&((0,eV.BI)("marketplace.action.delist",{repository_action_id:s.globalRelayId,source_url:`${window.location}`,location:"actions#show"}),h.current.submit())},l[2]=s.globalRelayId,l[3]=a):a=l[3];let g=a;return l[4]!==s.slug||l[5]!==p||l[6]!==c||l[7]!==m||l[8]!==g||l[9]!==o?(n=o&&s.slug&&(0,r.jsxs)("form",{ref:h,"data-turbo":"false",action:(0,tx.xwZ)({slug:s.slug}),method:"post","data-testid":"delist-form",className:"d-none",children:[(0,r.jsx)("input",{type:"hidden",name:"_method",value:"delete",autoComplete:"off","data-testid":"hidden-delete"}),(0,r.jsx)("input",{type:"hidden",name:"authenticity_token",value:p,"data-testid":"hidden-authenticity-token"}),c&&(0,r.jsx)(aq.K,{title:"Delist action?",onClose:e=>"confirm"===e?g():m(),confirmButtonContent:"Delist action",confirmButtonType:"danger",children:"Are you sure you want to delist this action from the Marketplace? Note: It will still be installable as long as the repository is public."})]}),l[4]=s.slug,l[5]=p,l[6]=c,l[7]=m,l[8]=g,l[9]=o,l[10]=n):n=l[10],n}function aQ(e){let t,a,n,l,s,o,c,m,u,p,h,g,f,x,y,j,b,v,_,N,w,k,A,S=(0,i.c)(63),{repository:I,action:C,repoAdminableByViewer:L}=e,{name:P,owner:$,hasSecurityPolicy:F,isDiscussionsActive:B,hasIssues:T,openIssuesCount:U,openPullRequestsCount:O}=I,[M,R]=(0,d.useState)(!1);S[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{R(!0)},S[0]=t):t=S[0];let D=t;S[1]===Symbol.for("react.memo_cache_sentinel")?(a=()=>{R(!1)},S[1]=a):a=S[1];let z=a;S[2]!==B||S[3]!==P||S[4]!==$?(n=B&&$&&P?(0,tx.p01)({owner:$,repo:P}):void 0,S[2]=B,S[3]=P,S[4]=$,S[5]=n):n=S[5],S[6]!==n?(l={url:n,component:eb.CommentDiscussionIcon,text:"Start a discussion"},S[6]=n,S[7]=l):l=S[7],S[8]!==T||S[9]!==P||S[10]!==$?(s=T&&$&&P?(0,tx.YQF)($,P):void 0,S[8]=T,S[9]=P,S[10]=$,S[11]=s):s=S[11],S[12]!==U?(o=(0,r.jsx)(az.A,{children:U}),S[12]=U,S[13]=o):o=S[13],S[14]!==s||S[15]!==o?(c={url:s,component:eb.IssueOpenedIcon,text:"Open an issue",trailingVisual:o},S[14]=s,S[15]=o,S[16]=c):c=S[16],S[17]!==P||S[18]!==$?(m=$&&P?(0,tx.Blz)($,P):void 0,S[17]=P,S[18]=$,S[19]=m):m=S[19],S[20]!==O?(u=(0,r.jsx)(az.A,{children:O}),S[20]=O,S[21]=u):u=S[21],S[22]!==m||S[23]!==u?(p={url:m,component:eb.GitPullRequestIcon,text:"Pull requests",trailingVisual:u},S[22]=m,S[23]=u,S[24]=p):p=S[24],S[25]!==P||S[26]!==$?(h=$&&P?(0,tx.SHX)({owner:$,repo:P}):void 0,S[25]=P,S[26]=$,S[27]=h):h=S[27],S[28]!==h?(g={url:h,component:eb.RepoIcon,text:"View source code"},S[28]=h,S[29]=g):g=S[29],S[30]!==F||S[31]!==P||S[32]!==$?(f=F&&$&&P?`${(0,tx.SHX)({owner:$,repo:P})}#security-ov-file`:void 0,S[30]=F,S[31]=P,S[32]=$,S[33]=f):f=S[33],S[34]!==f?(x={url:f,component:eb.LawIcon,text:"Security policy"},S[34]=f,S[35]=x):x=S[35];let V=`${C.name} (GitHub Action)`;S[36]!==V?(y=(0,tx.YPg)({report:V}),S[36]=V,S[37]=y):y=S[37],S[38]!==y?(j={url:y,component:eb.ReportIcon,text:"Report abuse"},S[38]=y,S[39]=j):j=S[39],S[40]!==g||S[41]!==x||S[42]!==j||S[43]!==l||S[44]!==c||S[45]!==p?(b=[l,c,p,g,x,j],S[40]=g,S[41]=x,S[42]=j,S[43]=l,S[44]=c,S[45]=p,S[46]=b):b=S[46];let E=b;S[47]!==C.slug||S[48]!==L?(v=L&&C.slug?()=>D():void 0,S[47]=C.slug,S[48]=L,S[49]=v):v=S[49],S[50]!==v?(_=[{onSelect:v,component:eb.EyeClosedIcon,text:"Delist action"}],S[50]=v,S[51]=_):_=S[51];let H=_;return S[52]===Symbol.for("react.memo_cache_sentinel")?(N=(0,r.jsx)(tg.A,{title:"Resources",htmlTag:"h2"}),S[52]=N):N=S[52],S[53]!==H||S[54]!==E?(w=(0,r.jsx)(ak,{linkItems:E,dangerItems:H}),S[53]=H,S[54]=E,S[55]=w):w=S[55],S[56]!==C||S[57]!==M||S[58]!==L?(k=(0,r.jsx)(aW,{action:C,repoAdminableByViewer:L,isDialogOpen:M,onDialogClose:z}),S[56]=C,S[57]=M,S[58]=L,S[59]=k):k=S[59],S[60]!==w||S[61]!==k?(A=(0,r.jsxs)(td.B,{gap:"condensed","data-testid":"resources",children:[N,w,k]}),S[60]=w,S[61]=k,S[62]=A):A=S[62],A}function aX(e){let t,a,n=(0,i.c)(5),{isThirdParty:l,name:s}=e;return n[0]!==l||n[1]!==s?(t=l&&s&&(0,r.jsxs)("p",{className:"note m-0","data-testid":"third-party-statement",children:[(0,r.jsx)("strong",{children:s})," is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation."]}),n[0]=l,n[1]=s,n[2]=t):t=n[2],n[3]!==t?(a=(0,r.jsx)(r.Fragment,{children:t}),n[3]=t,n[4]=a):a=n[4],a}function aY(e){let t,a,n,l,s,o,c=(0,i.c)(19),{readmeHtml:d,helpUrl:m,repository:u,action:p,repoAdminableByViewer:h}=e;return c[0]!==m||c[1]!==d?(t=d?(0,r.jsx)("div",{"data-testid":"markdown-body",className:eQ,children:(0,r.jsx)(eE.$6,{html:d,className:"markdown-body"})}):(0,r.jsxs)(eK.E,{spacious:!0,children:[(0,r.jsx)(eK.E.Heading,{children:"No description"}),(0,r.jsxs)(eK.E.Description,{children:["This GitHub Action has no README in the repository. If"," ",(0,r.jsx)("a",{className:"Link--inTextBlock",href:m,children:"one is added"}),", it will appear here."]})]}),c[0]=m,c[1]=d,c[2]=t):t=c[2],c[3]!==u?(a=(0,r.jsx)(aG,{repository:u}),c[3]=u,c[4]=a):a=c[4],c[5]!==p||c[6]!==h||c[7]!==u?(n=(0,r.jsx)(aQ,{repository:u,action:p,repoAdminableByViewer:h}),c[5]=p,c[6]=h,c[7]=u,c[8]=n):n=c[8],c[9]!==p.name||c[10]!==u.isThirdParty?(l=(0,r.jsx)("div",{className:"border-top color-border-muted tmp-pt-3",children:(0,r.jsx)(aX,{isThirdParty:u.isThirdParty,name:p.name})}),c[9]=p.name,c[10]=u.isThirdParty,c[11]=l):l=c[11],c[12]!==a||c[13]!==n||c[14]!==l?(s=(0,r.jsxs)(td.B,{className:"d-md-none",children:[a,n,l]}),c[12]=a,c[13]=n,c[14]=l,c[15]=s):s=c[15],c[16]!==t||c[17]!==s?(o=(0,r.jsxs)(td.B,{gap:"normal",children:[t,s]}),c[16]=t,c[17]=s,c[18]=o):o=c[18],o}function aK(e){let t,a,n,l,s,o,c,d=(0,i.c)(24),{action:m,repository:u,releaseData:p,repoAdminableByViewer:h}=e,{isVerifiedOwner:g,categories:f}=m,{isThirdParty:x}=u;return d[0]!==m||d[1]!==p||d[2]!==u?(t=(0,r.jsx)(aF,{action:m,repository:u,releaseData:p,sidebar:!0}),d[0]=m,d[1]=p,d[2]=u,d[3]=t):t=d[3],d[4]!==g?(a=(0,r.jsx)(tJ,{isVerifiedOwner:g,pageType:"actions"}),d[4]=g,d[5]=a):a=d[5],d[6]!==f?(n=(0,r.jsx)(t4,{tags:f,type:"actions"}),d[6]=f,d[7]=n):n=d[7],d[8]!==u?(l=(0,r.jsx)(aG,{repository:u}),d[8]=u,d[9]=l):l=d[9],d[10]!==m||d[11]!==h||d[12]!==u?(s=(0,r.jsx)(aQ,{repository:u,action:m,repoAdminableByViewer:h}),d[10]=m,d[11]=h,d[12]=u,d[13]=s):s=d[13],d[14]!==m.name||d[15]!==x?(o=(0,r.jsx)("div",{className:"border-top color-border-muted tmp-pt-4",children:(0,r.jsx)(aX,{isThirdParty:x,name:m.name})}),d[14]=m.name,d[15]=x,d[16]=o):o=d[16],d[17]!==t||d[18]!==a||d[19]!==n||d[20]!==l||d[21]!==s||d[22]!==o?(c=(0,r.jsxs)(r.Fragment,{children:[t,a,n,l,s,o]}),d[17]=t,d[18]=a,d[19]=n,d[20]=l,d[21]=s,d[22]=o,d[23]=c):c=d[23],c}function aJ(){let e,t,a,n,s=(0,i.c)(21),{action:o,readmeHtml:c,helpUrl:d,repository:m,releaseData:u,repoAdminableByViewer:p,loggedIn:h,starData:g}=(0,l.B)();return s[0]!==o||s[1]!==h||s[2]!==u||s[3]!==m||s[4]!==g?(e=(0,r.jsx)(aH,{action:o,repository:m,releaseData:u,loggedIn:h,starData:g}),s[0]=o,s[1]=h,s[2]=u,s[3]=m,s[4]=g,s[5]=e):e=s[5],s[6]!==o||s[7]!==d||s[8]!==c||s[9]!==p||s[10]!==m?(t=(0,r.jsx)(aY,{readmeHtml:c,helpUrl:d,repository:m,action:o,repoAdminableByViewer:p}),s[6]=o,s[7]=d,s[8]=c,s[9]=p,s[10]=m,s[11]=t):t=s[11],s[12]!==o||s[13]!==u||s[14]!==p||s[15]!==m?(a=(0,r.jsx)(aK,{action:o,repository:m,releaseData:u,repoAdminableByViewer:p}),s[12]=o,s[13]=u,s[14]=p,s[15]=m,s[16]=a):a=s[16],s[17]!==e||s[18]!==t||s[19]!==a?(n=(0,r.jsx)(tm,{header:e,body:t,sidebar:a}),s[17]=e,s[18]=t,s[19]=a,s[20]=n):n=s[20],n}aW.displayName="DelistForm",aQ.displayName="Resources",aX.displayName="ThirdPartyStatement",aY.displayName="Body",aK.displayName="Sidebar",aJ.displayName="ShowAction";var aZ=a(51591),a0=a(31199);(0,aZ.o)("marketplace-react",()=>({App:n,routes:[(0,a0.a)({path:"/marketplace",Component:tc}),(0,a0.a)({path:"/marketplace.html",Component:tc}),(0,a0.a)({path:"/marketplace/:slug",Component:a$}),(0,a0.a)({path:"/marketplace/actions/:slug",Component:aJ}),(0,a0.a)({path:"/marketplace/models/catalog",Component:tc})]}))},19503(e,t,a){a.d(t,{B:()=>l,J:()=>o});var r=a(74848),i=a(16522),n=a(12653);let l=c(a(36007).A),s=e=>{let t,a,n,l=(0,i.c)(6);return l[0]!==e?({ref:a,...t}=e,l[0]=e,l[1]=t,l[2]=a):(t=l[1],a=l[2]),l[3]!==t||l[4]!==a?(n=(0,r.jsx)("div",{...t,ref:a}),l[3]=t,l[4]=a,l[5]=n):n=l[5],n};s.displayName="Div";let o=c(s);function c(e){let t=t=>{let a,l,s,o=(0,i.c)(7);o[0]!==t?(a=function(e){let{html:t,domPurifyConfig:a,...r}=e,i={...a,RETURN_DOM:!1,RETURN_DOM_FRAGMENT:!1};return{sanitizedHTML:(0,n.a)(t,i),props:r}}(t),o[0]=t,o[1]=a):a=o[1];let{sanitizedHTML:c,props:d}=a;return o[2]!==c?(l={__html:c},o[2]=c,o[3]=l):l=o[3],o[4]!==d||o[5]!==l?(s=(0,r.jsx)(e,{...d,dangerouslySetInnerHTML:l}),o[4]=d,o[5]=l,o[6]=s):s=o[6],s};return t.displayName=`UnsafeHTML${e.displayName||e.name}`,t}},12653(e,t,a){a.d(t,{a:()=>i,createPurifier:()=>n,sanitizeWithPurifier:()=>l});var r=a(99418);function i(e,t){return r.A.sanitize(e,t)}function n(e){let t=(0,r.A)();return e&&e(t),t}function l(e,t,a){return t.sanitize(e,a)}},16899(e,t,a){a.d(t,{O:()=>m});var r=a(74848),i=a(16522),n=a(34164);let l={skeleton:"LoadingSkeleton-module__skeleton__euqGn",wave:"LoadingSkeleton-module__wave__huYKA",pulse:"LoadingSkeleton-module__pulse__HTUJd",rounded:"LoadingSkeleton-module__rounded__J10DA",pill:"LoadingSkeleton-module__pill__Dlvex",elliptical:"LoadingSkeleton-module__elliptical__Dkk2i",rectangular:"LoadingSkeleton-module__rectangular__clQKW",text:"LoadingSkeleton-module__text__KroMb",widthXl:"LoadingSkeleton-module__widthXl__wYADo",widthLg:"LoadingSkeleton-module__widthLg__lEjod",widthMd:"LoadingSkeleton-module__widthMd__AgUlQ",widthSm:"LoadingSkeleton-module__widthSm__cd1Ri",heightXl:"LoadingSkeleton-module__heightXl__wphW7",heightLg:"LoadingSkeleton-module__heightLg__GNzGn",heightMd:"LoadingSkeleton-module__heightMd__NhBFk",heightSm:"LoadingSkeleton-module__heightSm__YvOXy"};var s=a(28141);let o=[60,40,54,77,57,41,75,45,76,55],c={xl:l.widthXl,lg:l.widthLg,md:l.widthMd,sm:l.widthSm},d={xl:l.heightXl,lg:l.heightLg,md:l.heightMd,sm:l.heightSm};function m(e){let t,a,m,u,p,h,g,f,x,y,j,b=(0,i.c)(26);b[0]!==e?({animationStyle:u,as:p,height:a,variant:h,width:g,className:t,...m}=e,b[0]=e,b[1]=t,b[2]=a,b[3]=m,b[4]=u,b[5]=p,b[6]=h,b[7]=g):(t=b[1],a=b[2],m=b[3],u=b[4],p=b[5],h=b[6],g=b[7]);let v=void 0===u?"wave":u,_=void 0===p?"div":p,N=void 0===h?"rectangular":h;b[8]===Symbol.for("react.memo_cache_sentinel")?(f={max:o.length},b[8]=f):f=b[8];let w=(0,s.o)(f),k=g&&g in c?c[g]:void 0,A=a&&a in c?d[a]:void 0;b[9]!==a||b[10]!==A||b[11]!==w||b[12]!==g||b[13]!==k?(x={},"random"===g?x.width=`${o[w]}%`:g&&!k&&(x.width=g),a&&!A&&(x.height=a),b[9]=a,b[10]=A,b[11]=w,b[12]=g,b[13]=k,b[14]=x):x=b[14];let S="pulse"===v&&l.pulse,I=l[N];return b[15]!==t||b[16]!==A||b[17]!==S||b[18]!==I||b[19]!==k?(y=(0,n.$)(l.skeleton,S,I,k,A,t),b[15]=t,b[16]=A,b[17]=S,b[18]=I,b[19]=k,b[20]=y):y=b[20],b[21]!==_||b[22]!==x||b[23]!==m||b[24]!==y?(j=(0,r.jsx)(_,{className:y,style:x,...m}),b[21]=_,b[22]=x,b[23]=m,b[24]=y,b[25]=j):j=b[25],j}m.displayName="LoadingSkeleton"},29207(e,t,a){a.d(t,{H:()=>i});var r=a(65594);function i(e,t){let{csrf_tokens:a}=(0,r.B)();return a?.[e]?.[t]}},28141(e,t,a){a.d(t,{o:()=>n,s:()=>l});var r=a(16522),i=a(96540);function n(e){let t,a,n=(0,r.c)(6);n[0]!==e?(t=void 0===e?{}:e,n[0]=e,n[1]=t):t=n[1];let{max:l,min:s}=t,o=(0,i.useId)();return n[2]!==o||n[3]!==l||n[4]!==s?(a=function({max:e,min:t,id:a}){let r=function(e){let t=0;for(let a of e)t=(31*t+a.charCodeAt(0))%100;return t%40+40}(a);return t&&r{if(a<=0)return 0;let r=5381;for(let a of`${e}:${t}`)r=(r<<5)+r+a.charCodeAt(0)|0;return(r>>>0)%a}}},28926(e,t,a){a.d(t,{a:()=>l});let r=new Set(["children","localName","ref","style","className"]),i=new WeakMap,n=(e,t,a,r,n)=>{let l,s,o=null==n?void 0:n[t];void 0===o||a===r?null==a&&t in HTMLElement.prototype?e.removeAttribute(t):e[t]=a:(void 0===(l=i.get(e))&&i.set(e,l=new Map),s=l.get(o),void 0!==a?void 0===s?(l.set(o,s={handleEvent:a}),e.addEventListener(o,s)):s.handleEvent=a:void 0!==s&&(l.delete(o),e.removeEventListener(o,s)))};function l(e=window.React,t,a,i,s){let o,c,d;void 0===t?({tagName:c,elementClass:d,events:i,displayName:s}=e,o=e.react):(o=e,d=a,c=t);let m=o.Component,u=o.createElement,p=new Set(Object.keys(null!=i?i:{}));class h extends m{constructor(){super(...arguments),this.o=null}t(e){if(null!==this.o)for(let t in this.i)n(this.o,t,this.props[t],e?e[t]:void 0,i)}componentDidMount(){var e;this.t(),null==(e=this.o)||e.removeAttribute("defer-hydration")}componentDidUpdate(e){this.t(e)}render(){let{_$Gl:e,...t}=this.props;this.h!==e&&(this.u=t=>{null!==e&&("function"==typeof e?e(t):e.current=t),this.o=t,this.h=e}),this.i={};let a={ref:this.u};for(let[e,i]of Object.entries(t))r.has(e)?a["className"===e?"class":e]=i:p.has(e)||e in d.prototype?this.i[e]=i:a[e]=i;return a.suppressHydrationWarning=!0,u(c,a)}}h.displayName=null!=s?s:d.name;let g=o.forwardRef((e,t)=>u(h,{...e,_$Gl:t},null==e?void 0:e.children));return g.displayName=h.displayName,g}},97286(e,t,a){a.d(t,{I:()=>n});var r=a(1651),i=a(15985);function n(e,t){return(0,i.t)(e,r.$,t)}},241(e,t,a){a.d(t,{A:()=>r});let r=a(41917).A.Symbol},18348(e,t,a){a.d(t,{A:()=>m});var r=a(241),i=Object.prototype,n=i.hasOwnProperty,l=i.toString,s=r.A?r.A.toStringTag:void 0;let o=function(e){var t=n.call(e,s),a=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=l.call(e);return r&&(t?e[s]=a:delete e[s]),i};var c=Object.prototype.toString,d=r.A?r.A.toStringTag:void 0;let m=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":d&&d in Object(e)?o(e):c.call(e)}},72136(e,t,a){a.d(t,{A:()=>r});let r="object"==typeof global&&global&&global.Object===Object&&global},25353(e,t,a){a.d(t,{A:()=>i});var r=/^(?:0|[1-9]\d*)$/;let i=function(e,t){var a=typeof e;return!!(t=null==t?0x1fffffffffffff:t)&&("number"==a||"symbol"!=a&&r.test(e))&&e>-1&&e%1==0&&en});var r=a(72136),i="object"==typeof self&&self&&self.Object===Object&&self;let n=r.A||i||Function("return this")()},66984(e,t,a){a.d(t,{A:()=>r});let r=function(e,t){return e===t||e!=e&&t!=t}},38446(e,t,a){a.d(t,{A:()=>n});var r=a(89610),i=a(5254);let n=function(e){return null!=e&&(0,i.A)(e.length)&&!(0,r.A)(e)}},89610(e,t,a){a.d(t,{A:()=>n});var r=a(18348),i=a(23149);let n=function(e){if(!(0,i.A)(e))return!1;var t=(0,r.A)(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},5254(e,t,a){a.d(t,{A:()=>r});let r=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}},23149(e,t,a){a.d(t,{A:()=>r});let r=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},53098(e,t,a){a.d(t,{A:()=>r});let r=function(e){return null!=e&&"object"==typeof e}},46632(e,t,a){a.d(t,{A:()=>n});var r=a(51046);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var a=function(){var r=arguments,i=t?t.apply(this,r):r[0],n=a.cache;if(n.has(i))return n.get(i);var l=e.apply(this,r);return a.cache=n.set(i,l)||n,l};return a.cache=new(i.Cache||r.A),a}i.Cache=r.A;let n=i}},function(e){e.O(0,["13579","13726","15272","15484","28819","28839","29429","2966","32769","34646","37869","41013","46040","46287","47504","58889","59207","59299","60481","63991","68751","7053","73024","7463","7542","76015","83465","85924","87376","90225","93796","98131"],function(){return e(e.s=8113)}),e.O()}]); //# sourceMappingURL=marketplace-react-3ad0e99e20879fa0-c6f7dd58ee4e95e3.js.map