@canonry/canonry 7.77.2 → 7.78.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (139) hide show
  1. package/assets/agent-workspace/skills/aero/references/seo-analysis.md +13 -2
  2. package/assets/agent-workspace/skills/canonry/references/canonry-cli.md +4 -2
  3. package/assets/assets/{AgentSetupPage-BZXWC3x6.js → AgentSetupPage-BGdvyQFL.js} +4 -4
  4. package/assets/assets/{AuditHistoryPanel-DcrUuwRu.js → AuditHistoryPanel-Bb5wq-Bk.js} +1 -1
  5. package/assets/assets/{BacklinksPage-BSpHJBiy.js → BacklinksPage-i1cfxTDj.js} +1 -1
  6. package/assets/assets/{HistoryPage-0a0CK9zF.js → HistoryPage-C2NRdNrn.js} +1 -1
  7. package/assets/assets/MeasurementPropertyPage-CwPuJMBy.js +4 -0
  8. package/assets/assets/ProjectPage-Bbnbg7c9.js +11 -0
  9. package/assets/assets/{RunsPage-D0vbz1Ho.js → RunsPage-CJHJ7kHk.js} +1 -1
  10. package/assets/assets/{SettingsPage-DjRm5cmn.js → SettingsPage-r8VrtFyJ.js} +1 -1
  11. package/assets/assets/SiteHealthSection-D1oSuo9O.js +2 -0
  12. package/assets/assets/ToneBadge-CUe-WrzN.js +60 -0
  13. package/assets/assets/{TrafficPage-Z8Z_z0k9.js → TrafficPage-DY2ykwH1.js} +1 -1
  14. package/assets/assets/TrafficSourceDetailPage-D3KHgRvF.js +1 -0
  15. package/assets/assets/{account-context-zaSxLBst.js → account-context-B50QqDEA.js} +1 -1
  16. package/assets/assets/{card-COqALGzB.js → card-BE2fqwVq.js} +1 -1
  17. package/assets/assets/{extract-error-message-DKve0SNr.js → extract-error-message-xuN_xeRJ.js} +1 -1
  18. package/assets/assets/{format-helpers-DKrHlaV7.js → format-helpers-CiC6gALY.js} +1 -1
  19. package/assets/assets/{index-CKZK95pI.css → index-CHHZDc6d.css} +1 -1
  20. package/assets/assets/{index-fzqtwr6m.js → index-Dfm8z5cG.js} +23 -23
  21. package/assets/assets/{query-client-COM9uzxL.js → query-client-C5GhDMY7.js} +1 -1
  22. package/assets/assets/react-query-CmHyfYFq.js +1 -0
  23. package/assets/assets/{react-sigma_core.esm.min-e91U3Myi.js → react-sigma_core.esm.min-Bjdtl0TQ.js} +1 -1
  24. package/assets/assets/{service-BgFTYqJA.js → service-B2i_ZzWP.js} +1 -1
  25. package/assets/index.html +8 -8
  26. package/dist/{ads-5K5IQDCD.js → ads-MNMND5VH.js} +3 -3
  27. package/dist/{agent-Q4PKMBEJ.js → agent-4KNDL3D3.js} +7 -7
  28. package/dist/{agent-ask-JEPVVW2J.js → agent-ask-32RTOL2M.js} +3 -3
  29. package/dist/{agent-conversations-EHE7QEBC.js → agent-conversations-BXVWHUZC.js} +3 -3
  30. package/dist/{agent-memory-AB72YQET.js → agent-memory-7R7UVFS5.js} +3 -3
  31. package/dist/{agent-providers-NQ7HJYAQ.js → agent-providers-QGVLCCH4.js} +3 -3
  32. package/dist/{agent-transcript-PRTWIQ2A.js → agent-transcript-7Y6BJCIT.js} +3 -3
  33. package/dist/{analytics-IY3J4VZE.js → analytics-YOGEHW6J.js} +3 -3
  34. package/dist/{apply-HNOG674K.js → apply-TB3MF3PH.js} +3 -3
  35. package/dist/{backfill-TO7TPPO6.js → backfill-IRVLT6VT.js} +9 -9
  36. package/dist/{backlinks-3NY5GNT4.js → backlinks-6GTL324T.js} +3 -3
  37. package/dist/{bing-Z7W7U2CT.js → bing-OMQACSDY.js} +3 -3
  38. package/dist/{bootstrap-DXXS3LRH.js → bootstrap-WZ6YDQIG.js} +10 -10
  39. package/dist/{cdp-CKPRS6VE.js → cdp-3WBLAWOL.js} +7 -7
  40. package/dist/{chunk-G26YB6JK.js → chunk-2EWZ3DJ4.js} +3 -3
  41. package/dist/{chunk-JPOIDGGF.js → chunk-3MGM3U6V.js} +1 -1
  42. package/dist/{chunk-7JC4Z6FQ.js → chunk-3QJWOF2B.js} +4 -3
  43. package/dist/{chunk-2BDWXHYF.js → chunk-45RGH7XI.js} +3 -3
  44. package/dist/{chunk-6KPBYCPE.js → chunk-4GEEYY3N.js} +2 -2
  45. package/dist/{chunk-C3UFOS7J.js → chunk-5NBXPO4G.js} +2 -2
  46. package/dist/{chunk-RPJJOBKN.js → chunk-6ACWXQNZ.js} +3 -1
  47. package/dist/{chunk-4XVXP6VR.js → chunk-72YPSNCG.js} +2 -2
  48. package/dist/{chunk-5QR7D4RQ.js → chunk-7HB6QLX4.js} +1 -1
  49. package/dist/{chunk-EM2HAM2U.js → chunk-7HE4LAJY.js} +8 -8
  50. package/dist/{chunk-JRVKW4OO.js → chunk-7OAXEMOF.js} +26 -2
  51. package/dist/{chunk-7UVCZZQJ.js → chunk-AI44ZCMK.js} +1 -1
  52. package/dist/{chunk-LKEFPJQ2.js → chunk-BKOG3GEI.js} +4 -4
  53. package/dist/{chunk-CMS4YM5M.js → chunk-BLZCNL3B.js} +3 -3
  54. package/dist/{chunk-HD2VVIPD.js → chunk-BTMLE3EN.js} +5 -5
  55. package/dist/{chunk-CHTKK43G.js → chunk-COUM462G.js} +152 -24
  56. package/dist/{chunk-2WBT6TEJ.js → chunk-FCYGY4FT.js} +1 -1
  57. package/dist/{chunk-JMCURBZG.js → chunk-GEHRGKQT.js} +4 -4
  58. package/dist/{chunk-ORZBHCZR.js → chunk-IYMTQHPD.js} +4 -4
  59. package/dist/{chunk-XYYWKCJQ.js → chunk-JERATA5R.js} +1 -1
  60. package/dist/{chunk-AAUMUHUI.js → chunk-KF7I7FBI.js} +2 -2
  61. package/dist/{chunk-PSNTEGNY.js → chunk-KZB6HLFT.js} +1 -1
  62. package/dist/{chunk-46KV7CZU.js → chunk-LBNUTWPK.js} +2 -2
  63. package/dist/{chunk-4QHTXT4A.js → chunk-MUYTDD35.js} +40 -4
  64. package/dist/{chunk-TESDUMVK.js → chunk-O4WBYEGV.js} +1 -1
  65. package/dist/{chunk-5LKK2MCJ.js → chunk-OES6PSQK.js} +7 -7
  66. package/dist/{chunk-D5XPB7MM.js → chunk-PH4AESRE.js} +3 -1
  67. package/dist/{chunk-JEXBP7CR.js → chunk-PLLDJUG2.js} +4 -4
  68. package/dist/{chunk-FCGYYZHL.js → chunk-PM2DB3HE.js} +164 -10
  69. package/dist/{chunk-GDKMVOZI.js → chunk-PRCBHOVR.js} +146 -19
  70. package/dist/{chunk-JZ4UFSVR.js → chunk-R26CF4WT.js} +2 -2
  71. package/dist/{chunk-Z2FY6AGZ.js → chunk-TZRYVW75.js} +2 -2
  72. package/dist/{chunk-WFFZAQRG.js → chunk-UHCOJCT3.js} +371 -340
  73. package/dist/{chunk-ZXYCPRNY.js → chunk-WSWHLKKJ.js} +1 -1
  74. package/dist/{chunk-NDTU7FGL.js → chunk-WVCDUKJ2.js} +1 -1
  75. package/dist/{chunk-JSCO223C.js → chunk-ZHFE6J3A.js} +1 -1
  76. package/dist/{citations-4AV6HLUZ.js → citations-PGG7JEIN.js} +3 -3
  77. package/dist/{cli-catalog-ZVFLJXID.js → cli-catalog-KC6JYHSW.js} +3 -3
  78. package/dist/{cli-commands-NJDUBQ3R.js → cli-commands-NGXSLPIA.js} +7 -7
  79. package/dist/cli.js +13 -13
  80. package/dist/{competitor-SG4N37UD.js → competitor-B3CZOKZU.js} +3 -3
  81. package/dist/{content-EDLZAPUV.js → content-Z4XJMZB4.js} +3 -3
  82. package/dist/{dashboard-5ZFVJPHX.js → dashboard-6MMYA2GG.js} +6 -6
  83. package/dist/{demo-5CU3JDHC.js → demo-3R2SHQPO.js} +1 -1
  84. package/dist/{demo-server-43QV3UKM.js → demo-server-ISJOEJN5.js} +12 -12
  85. package/dist/{discover-7X2WMNFV.js → discover-OT3K7KQK.js} +3 -3
  86. package/dist/{discover-eval-ECOPSJJ4.js → discover-eval-DN4J4KD5.js} +3 -3
  87. package/dist/{doctor-NMFBKNYR.js → doctor-UDF6OCSR.js} +3 -3
  88. package/dist/{evidence-C52ZPRYB.js → evidence-Z364UFOD.js} +3 -3
  89. package/dist/{export-cmd-2WSEETUC.js → export-cmd-K27XN4G5.js} +3 -3
  90. package/dist/{ga-YG4O2FT5.js → ga-Q2CELDLG.js} +3 -3
  91. package/dist/{gbp-BDGV6F74.js → gbp-V2APGSIQ.js} +3 -3
  92. package/dist/{google-P2AX6CUF.js → google-WFHYA3QT.js} +4 -4
  93. package/dist/{google-marketing-XPE6CVQI.js → google-marketing-5ROIKBC7.js} +1 -1
  94. package/dist/{health-cmd-MIQT2JNL.js → health-cmd-RGFAJ4YP.js} +3 -3
  95. package/dist/{history-3XDDJDAV.js → history-RUSU66BZ.js} +3 -3
  96. package/dist/index.d.ts +208 -13
  97. package/dist/index.js +26 -26
  98. package/dist/{init-GT3QM7FC.js → init-SMBVJSP6.js} +12 -12
  99. package/dist/{insights-ZJUDCBBP.js → insights-4IFQLPS3.js} +3 -3
  100. package/dist/intelligence-service-MPNONLCW.js +16 -0
  101. package/dist/{journeys-L2CXQXRP.js → journeys-PTC2QY57.js} +3 -3
  102. package/dist/{keys-ODRGIQS7.js → keys-JASXI2SR.js} +3 -3
  103. package/dist/{keyword-LE3CAXO2.js → keyword-SK2HJXCJ.js} +3 -3
  104. package/dist/{logs-OXK43XN2.js → logs-AS5I5V2A.js} +3 -3
  105. package/dist/{mcp-6OTPCDGW.js → mcp-BQSOYHEX.js} +4 -4
  106. package/dist/mcp.js +10 -10
  107. package/dist/{measurement-plan-NXRCDUYL.js → measurement-plan-LZYYH3OD.js} +5 -5
  108. package/dist/{notify-VNNJTNC6.js → notify-JM6252F6.js} +3 -3
  109. package/dist/{organic-evidence-LYDB7IID.js → organic-evidence-L3Y6RZIH.js} +3 -3
  110. package/dist/{overview-2GPPQ6JP.js → overview-VIF2GXYW.js} +4 -4
  111. package/dist/{project-CQJPXC66.js → project-FQEPFPRD.js} +3 -3
  112. package/dist/{query-PPE4EHMY.js → query-VKRESS6B.js} +3 -3
  113. package/dist/{research-GDYZKQY2.js → research-6A6QWKN3.js} +3 -3
  114. package/dist/{results-export-OAJHDEIQ.js → results-export-VUB2ZD5B.js} +3 -3
  115. package/dist/{run-XDPDQS44.js → run-PG5GYZT7.js} +4 -4
  116. package/dist/{schedule-C6SYV54I.js → schedule-EBGOLCQZ.js} +3 -3
  117. package/dist/{search-DONTDHQK.js → search-NS4XPZRL.js} +3 -3
  118. package/dist/{serve-PJXATOSY.js → serve-J7WR3J6I.js} +27 -27
  119. package/dist/{session-PMZV27GX.js → session-FBHHWILQ.js} +14 -14
  120. package/dist/{settings-PMATG7GG.js → settings-LNCAYCDF.js} +3 -3
  121. package/dist/{skills-CYHWYN42.js → skills-DWXA55QA.js} +2 -2
  122. package/dist/{snapshot-E4GHH6DD.js → snapshot-LX7OR7SO.js} +3 -3
  123. package/dist/{src-SXB3MOP3.js → src-AQ5MHQGQ.js} +2 -2
  124. package/dist/{status-MEGXEEW6.js → status-DQ6FNWUT.js} +4 -4
  125. package/dist/{technical-aeo-GE6KOFKT.js → technical-aeo-5GU2IY6W.js} +3 -3
  126. package/dist/{telemetry-Y63F4XFX.js → telemetry-QK2GPII3.js} +4 -4
  127. package/dist/{tools-V546ALG7.js → tools-3ACR2D2V.js} +11 -11
  128. package/dist/{traffic-5ELSKXBM.js → traffic-2JFQKVAX.js} +5 -5
  129. package/dist/{users-7YK7XYWY.js → users-7OJ2RGV3.js} +3 -3
  130. package/dist/{visibility-stats-GYPUKXVS.js → visibility-stats-VR25XMMY.js} +3 -3
  131. package/dist/{wordpress-WUGJT5NN.js → wordpress-JYXTF4PL.js} +3 -3
  132. package/package.json +1 -1
  133. package/assets/assets/MeasurementPropertyPage-DbfTFN3F.js +0 -4
  134. package/assets/assets/ProjectPage-D0m-Xpp3.js +0 -9
  135. package/assets/assets/SiteHealthSection-BCdPVFEJ.js +0 -2
  136. package/assets/assets/ToneBadge-DSJSzqI6.js +0 -60
  137. package/assets/assets/TrafficSourceDetailPage-DJyDO527.js +0 -1
  138. package/assets/assets/react-query-BVRWpXWq.js +0 -1
  139. package/dist/intelligence-service-NXZYQJBH.js +0 -16
@@ -1 +1 @@
1
- import{C as e,S as t}from"./vendor-tanstack-BoP7BGaH.js";import{mt as n}from"./ToneBadge-DSJSzqI6.js";var r=6e3,i=5,a=180,o=[],s=0,c=new Set,l=new Map,u=new Map;function d(){let e=[...o];for(let t of c)t(e)}function f(e){let t=l.get(e);t&&(clearTimeout(t),l.delete(e));let n=u.get(e);n&&(clearTimeout(n),u.delete(e))}function p(e){f(e);let t=o.length;o=o.filter(t=>t.id!==e),o.length!==t&&d()}function m(e){f(e.id),l.set(e.id,setTimeout(()=>{_(e.id)},e.durationMs))}function h(e,t,n){return typeof e==`string`?{title:e,tone:t,durationMs:n}:e}function g(e,t=`negative`,n=r){let a=h(e,t,n),c={id:String(++s),title:a.title,detail:a.detail,tone:a.tone??t,durationMs:a.durationMs??n,dedupeKey:a.dedupeKey,cta:a.cta,state:`open`};if(a.dedupeKey){let e=o.find(e=>e.dedupeKey===a.dedupeKey);if(e){if((a.dedupeMode??`drop`)===`drop`)return e.id;let t={...e,title:c.title,detail:c.detail,tone:c.tone,durationMs:c.durationMs,cta:c.cta,state:`open`};return o=o.map(n=>n.id===e.id?t:n),d(),m(t),e.id}}return o.length>=i&&p(o[0].id),o=[...o,c],d(),m(c),c.id}function _(e){let t=o.find(t=>t.id===e);t&&t.state!==`closing`&&(f(e),o=o.map(t=>t.id===e?{...t,state:`closing`}:t),d(),u.set(e,setTimeout(()=>{p(e)},a)))}function v(e){return c.add(e),()=>{c.delete(e)}}function y(){return o}var b={project:`getApiV1ProjectsByName`,google:`getApiV1ProjectsByNameGoogle`,gsc:`getApiV1ProjectsByNameGoogleGsc`,bing:`getApiV1ProjectsByNameBing`,ga:`getApiV1ProjectsByNameGa`,gbp:`getApiV1ProjectsByNameGbp`,ads:`getApiV1ProjectsByNameAds`,googleAds:`getApiV1ProjectsByNameGoogleAds`,gtm:`getApiV1ProjectsByNameGtm`,conversionTracking:`getApiV1ProjectsByNameConversionTracking`,traffic:`getApiV1ProjectsByNameTraffic`,discovery:`getApiV1ProjectsByNameDiscover`,researchRuns:`getApiV1ProjectsByNameResearchRuns`,visibilityReport:`getApiV1ProjectsByNameVisibilityReport`,queryTracking:`getApiV1ProjectsByNameQueryTracking`,technicalAeo:`getApiV1ProjectsByNameTechnicalAeo`,seo:`getApiV1ProjectsByNameSeo`,runs:`getApiV1ProjectsByNameRuns`,runAdmission:`getApiV1ProjectsByNameRunAdmission`};function x(e,t,n){let r=b[t];return e.invalidateQueries({predicate:e=>{let t=e.queryKey[0];return typeof t?._id==`string`&&t._id.startsWith(r)&&(!n||t.path?.name===n.projectName&&(n.profileId===void 0||t.query?.profileId===n.profileId))}})}function S(e,t){return e.invalidateQueries({predicate:e=>{let n=e.queryKey[0];return n?.path?.name!==t||typeof n._id!=`string`?!1:n._id.startsWith(`getApiV1ProjectsByNameMeasurement`)||n._id===b.queryTracking||n._id===b.visibilityReport||n._id===`getApiV1ProjectsByNameQueries`||n._id===`getApiV1ProjectsByName`}})}var C=new Set([`getApiV1Projects`,`getApiV1Runs`,`getApiV1History`,`getApiV1NotificationsEvents`]);function w(e,t,n){if(![`POST`,`PUT`,`PATCH`,`DELETE`].includes(t.method))return;let r=new URL(t.url).pathname.match(/\/api\/v1\/(.*)$/)?.[1];if(!r||/^(?:telemetry|feedback|auth|session)(?:\/|$)/.test(r))return;let i=r.match(/^projects\/([^/]+)(?:\/(.*))?$/),a=i?i[2]??``:r;if(t.method===`POST`&&a===`seo/refresh-intents`||t.method===`POST`&&/(?:^|\/)(?:[^/]*-preview|preview(?:-[^/]+)?|test|generate)$/.test(a))return;let o=n&&typeof n==`object`?n:null;if(o?.dryRun===!0||r.endsWith(`/results/clear`)&&o?.confirm!==!0)return;let s=i?decodeURIComponent(i[1]):null,c=i?.[2]?.startsWith(`agent/`)??!1,l=new Set(s?[s]:[]),u=new Set;if(s)for(let t of e.getQueryCache().getAll()){let e=t.queryKey[0],n=t.state.data,r=e?._id===`getApiV1Projects`&&Array.isArray(n)?n:n&&typeof n==`object`&&`project`in n?[n.project]:e?._id===`getApiV1ProjectsByName`?[n]:[];for(let e of r)e&&(e.name===s||e.id===s)&&(l.add(e.name),l.add(e.id),u.add(e.id))}let d=e=>{let t=e.queryKey[0];if(c)return t?.path?.name===s&&t._id?.startsWith(`getApiV1ProjectsByNameAgent`)===!0||e.queryKey[0]===`aero-preview`&&e.queryKey[1]===s;if(t?._id?.startsWith(`getApiV1ProjectsByName`)&&t.path?.name&&l.has(t.path.name))return!0;let n=e.queryKey[0];if([`projects`,`project-dashboard-full`,`project-overview-slim`].includes(n))return u.has(e.queryKey[1]);if([`sentiment`,`gbp-section-insights`,`analytics-metrics`,`aero-preview`].includes(n))return n===`analytics-metrics`&&i?.[2]?.startsWith(`competitors`)?!1:l.has(e.queryKey[1]);if(n===`setup`)return l.has(e.queryKey[2]);let r=e.state.data;return t?._id===`getApiV1RunsById`&&!!r?.projectId&&u.has(r.projectId)},f=e=>C.has(e.queryKey[0]?._id??``),p=t.method===`POST`&&/^(?:runs|technical-aeo\/runs|discover\/run|backlinks\/extract|seo\/sync|google\/gsc\/(?:sync|inspect-sitemap)|bing\/inspect-sitemap|(?:gbp|ads|google-ads|gtm)\/sync)$/.test(a),m=e=>{let t=e.queryKey[0];return f(e)||[`getApiV1ProjectsByName`,`getApiV1ProjectsByNameOverview`,`getApiV1ProjectsByNameRuns`,`getApiV1ProjectsByNameTechnicalAeoRuns`,`getApiV1ProjectsByNameTimeline`].includes(t?._id??``)||[`getApiV1ProjectsByNameSeoOverview`,`getApiV1ProjectsByNameSeoRuns`,`getApiV1ProjectsByNameSeoStatus`].includes(t?._id??``)||e.queryKey[0]===`project-dashboard-full`&&e.queryKey[3]===`overview`||e.queryKey[0]===`project-overview-slim`},h=s?e=>d(e)&&(!p||m(e))||!c&&f(e):e=>!p||m(e);e.cancelQueries({predicate:h,type:`active`}),i&&!i[2]&&t.method===`DELETE`?(e.removeQueries({predicate:d}),e.setQueriesData({predicate:e=>e.queryKey[0]?._id===`getApiV1Projects`},e=>e?.filter(e=>!l.has(e.name)&&!l.has(e.id))),e.setQueriesData({predicate:e=>e.queryKey[0]?._id===`getApiV1Runs`},e=>e?.filter(e=>!u.has(e.projectId))),e.invalidateQueries({predicate:f})):e.invalidateQueries({predicate:h})}var T=3e5,E=18e5,D=3e4,O=6e4,k=3e4,A=2e3,j=3e4,M;function N(){let r=new t({defaultOptions:{queries:{staleTime:T,retry:1,refetchOnWindowFocus:!1}},mutationCache:new e({onError:(e,t,n,r)=>{r.meta?.skipGlobalErrorToast||g({title:e instanceof Error?e.message:`An unexpected error occurred`,tone:`negative`})}})});M?.();let i=new WeakSet,a=n.interceptors.request.use(e=>(i.add(e),e)),o=n.interceptors.response.use((e,t,n)=>(e.ok&&i.has(t)&&w(r,t,n.body),e));return M=()=>{n.interceptors.request.eject(a),n.interceptors.response.eject(o)},r}export{k as a,N as c,g as d,_ as f,A as i,x as l,v as m,O as n,E as o,y as p,j as r,D as s,T as t,S as u};
1
+ import{C as e,S as t}from"./vendor-tanstack-BoP7BGaH.js";import{mt as n}from"./ToneBadge-CUe-WrzN.js";var r=6e3,i=5,a=180,o=[],s=0,c=new Set,l=new Map,u=new Map;function d(){let e=[...o];for(let t of c)t(e)}function f(e){let t=l.get(e);t&&(clearTimeout(t),l.delete(e));let n=u.get(e);n&&(clearTimeout(n),u.delete(e))}function p(e){f(e);let t=o.length;o=o.filter(t=>t.id!==e),o.length!==t&&d()}function m(e){f(e.id),l.set(e.id,setTimeout(()=>{_(e.id)},e.durationMs))}function h(e,t,n){return typeof e==`string`?{title:e,tone:t,durationMs:n}:e}function g(e,t=`negative`,n=r){let a=h(e,t,n),c={id:String(++s),title:a.title,detail:a.detail,tone:a.tone??t,durationMs:a.durationMs??n,dedupeKey:a.dedupeKey,cta:a.cta,state:`open`};if(a.dedupeKey){let e=o.find(e=>e.dedupeKey===a.dedupeKey);if(e){if((a.dedupeMode??`drop`)===`drop`)return e.id;let t={...e,title:c.title,detail:c.detail,tone:c.tone,durationMs:c.durationMs,cta:c.cta,state:`open`};return o=o.map(n=>n.id===e.id?t:n),d(),m(t),e.id}}return o.length>=i&&p(o[0].id),o=[...o,c],d(),m(c),c.id}function _(e){let t=o.find(t=>t.id===e);t&&t.state!==`closing`&&(f(e),o=o.map(t=>t.id===e?{...t,state:`closing`}:t),d(),u.set(e,setTimeout(()=>{p(e)},a)))}function v(e){return c.add(e),()=>{c.delete(e)}}function y(){return o}var b={project:`getApiV1ProjectsByName`,google:`getApiV1ProjectsByNameGoogle`,gsc:`getApiV1ProjectsByNameGoogleGsc`,bing:`getApiV1ProjectsByNameBing`,ga:`getApiV1ProjectsByNameGa`,gbp:`getApiV1ProjectsByNameGbp`,ads:`getApiV1ProjectsByNameAds`,googleAds:`getApiV1ProjectsByNameGoogleAds`,gtm:`getApiV1ProjectsByNameGtm`,conversionTracking:`getApiV1ProjectsByNameConversionTracking`,traffic:`getApiV1ProjectsByNameTraffic`,discovery:`getApiV1ProjectsByNameDiscover`,researchRuns:`getApiV1ProjectsByNameResearchRuns`,visibilityReport:`getApiV1ProjectsByNameVisibilityReport`,queryTracking:`getApiV1ProjectsByNameQueryTracking`,technicalAeo:`getApiV1ProjectsByNameTechnicalAeo`,seo:`getApiV1ProjectsByNameSeo`,runs:`getApiV1ProjectsByNameRuns`,runAdmission:`getApiV1ProjectsByNameRunAdmission`};function x(e,t,n){let r=b[t];return e.invalidateQueries({predicate:e=>{let t=e.queryKey[0];return typeof t?._id==`string`&&t._id.startsWith(r)&&(!n||t.path?.name===n.projectName&&(n.profileId===void 0||t.query?.profileId===n.profileId))}})}function S(e,t){return e.invalidateQueries({predicate:e=>{let n=e.queryKey[0];return n?.path?.name!==t||typeof n._id!=`string`?!1:n._id.startsWith(`getApiV1ProjectsByNameMeasurement`)||n._id===b.queryTracking||n._id===b.visibilityReport||n._id===`getApiV1ProjectsByNameQueries`||n._id===`getApiV1ProjectsByName`}})}var C=new Set([`getApiV1Projects`,`getApiV1Runs`,`getApiV1History`,`getApiV1NotificationsEvents`]);function w(e,t,n){if(![`POST`,`PUT`,`PATCH`,`DELETE`].includes(t.method))return;let r=new URL(t.url).pathname.match(/\/api\/v1\/(.*)$/)?.[1];if(!r||/^(?:telemetry|feedback|auth|session)(?:\/|$)/.test(r))return;let i=r.match(/^projects\/([^/]+)(?:\/(.*))?$/),a=i?i[2]??``:r;if(t.method===`POST`&&a===`seo/refresh-intents`||t.method===`POST`&&/(?:^|\/)(?:[^/]*-preview|preview(?:-[^/]+)?|test|generate)$/.test(a))return;let o=n&&typeof n==`object`?n:null;if(o?.dryRun===!0||r.endsWith(`/results/clear`)&&o?.confirm!==!0)return;let s=i?decodeURIComponent(i[1]):null,c=i?.[2]?.startsWith(`agent/`)??!1,l=new Set(s?[s]:[]),u=new Set;if(s)for(let t of e.getQueryCache().getAll()){let e=t.queryKey[0],n=t.state.data,r=e?._id===`getApiV1Projects`&&Array.isArray(n)?n:n&&typeof n==`object`&&`project`in n?[n.project]:e?._id===`getApiV1ProjectsByName`?[n]:[];for(let e of r)e&&(e.name===s||e.id===s)&&(l.add(e.name),l.add(e.id),u.add(e.id))}let d=e=>{let t=e.queryKey[0];if(c)return t?.path?.name===s&&t._id?.startsWith(`getApiV1ProjectsByNameAgent`)===!0||e.queryKey[0]===`aero-preview`&&e.queryKey[1]===s;if(t?._id?.startsWith(`getApiV1ProjectsByName`)&&t.path?.name&&l.has(t.path.name))return!0;let n=e.queryKey[0];if([`projects`,`project-dashboard-full`,`project-overview-slim`].includes(n))return u.has(e.queryKey[1]);if([`sentiment`,`gbp-section-insights`,`analytics-metrics`,`aero-preview`].includes(n))return n===`analytics-metrics`&&i?.[2]?.startsWith(`competitors`)?!1:l.has(e.queryKey[1]);if(n===`setup`)return l.has(e.queryKey[2]);let r=e.state.data;return t?._id===`getApiV1RunsById`&&!!r?.projectId&&u.has(r.projectId)},f=e=>C.has(e.queryKey[0]?._id??``),p=t.method===`POST`&&/^(?:runs|technical-aeo\/runs|discover\/run|backlinks\/extract|seo\/sync|google\/gsc\/(?:sync|inspect-sitemap)|bing\/inspect-sitemap|(?:gbp|ads|google-ads|gtm)\/sync)$/.test(a),m=e=>{let t=e.queryKey[0];return f(e)||[`getApiV1ProjectsByName`,`getApiV1ProjectsByNameOverview`,`getApiV1ProjectsByNameRuns`,`getApiV1ProjectsByNameTechnicalAeoRuns`,`getApiV1ProjectsByNameTimeline`].includes(t?._id??``)||[`getApiV1ProjectsByNameSeoOverview`,`getApiV1ProjectsByNameSeoRuns`,`getApiV1ProjectsByNameSeoStatus`].includes(t?._id??``)||e.queryKey[0]===`project-dashboard-full`&&e.queryKey[3]===`overview`||e.queryKey[0]===`project-overview-slim`},h=s?e=>d(e)&&(!p||m(e))||!c&&f(e):e=>!p||m(e);e.cancelQueries({predicate:h,type:`active`}),i&&!i[2]&&t.method===`DELETE`?(e.removeQueries({predicate:d}),e.setQueriesData({predicate:e=>e.queryKey[0]?._id===`getApiV1Projects`},e=>e?.filter(e=>!l.has(e.name)&&!l.has(e.id))),e.setQueriesData({predicate:e=>e.queryKey[0]?._id===`getApiV1Runs`},e=>e?.filter(e=>!u.has(e.projectId))),e.invalidateQueries({predicate:f})):e.invalidateQueries({predicate:h})}var T=3e5,E=18e5,D=3e4,O=6e4,k=3e4,A=2e3,j=3e4,M;function N(){let r=new t({defaultOptions:{queries:{staleTime:T,retry:1,refetchOnWindowFocus:!1}},mutationCache:new e({onError:(e,t,n,r)=>{r.meta?.skipGlobalErrorToast||g({title:e instanceof Error?e.message:`An unexpected error occurred`,tone:`negative`})}})});M?.();let i=new WeakSet,a=n.interceptors.request.use(e=>(i.add(e),e)),o=n.interceptors.response.use((e,t,n)=>(e.ok&&i.has(t)&&w(r,t,n.body),e));return M=()=>{n.interceptors.request.eject(a),n.interceptors.response.eject(o)},r}export{k as a,N as c,g as d,_ as f,A as i,x as l,v as m,O as n,E as o,y as p,j as r,D as s,T as t,S as u};
@@ -0,0 +1 @@
1
+ import{v as e,y as t}from"./vendor-tanstack-BoP7BGaH.js";import{$a as n,$i as r,Aa as i,Ao as a,As as o,Ba as ee,Bo as te,Ca as ne,Co as re,Cs as ie,Da as ae,Do as oe,Ds as se,Ea as ce,Eo as le,Fa as ue,Fo as de,Ga as fe,Go as s,Ha as c,Ho as l,Ia as u,Io as d,Ja as f,Jo as p,Ka as m,Ko as h,La as g,Lo as _,Ma as v,Mo as y,Ms as b,Na as x,No as S,Ns as C,Oa as w,Oo as T,Os as E,Pa as D,Po as O,Qa as k,Qi as A,Ra as j,Ro as M,Sa as N,So as P,Ss as F,Ta as I,To as L,Ts as R,Ua as z,Uo as B,Va as V,Vo as pe,Wa as me,Wo as he,Xa as ge,Xo as _e,Ya as ve,Yo as ye,Za as be,Zi as xe,_a as Se,_o as Ce,aa as we,ao as Te,ba as Ee,bo as De,bs as Oe,ca as ke,co as Ae,da as je,do as Me,ea as Ne,eo as Pe,fa as Fe,fo as Ie,ga as Le,go as Re,ha as ze,ho as Be,ia as Ve,io as He,ja as Ue,jo as We,js as Ge,ka as Ke,ko as qe,ks as Je,la as Ye,lo as Xe,ma as Ze,mo as Qe,na as $e,no as et,oa as tt,oo as nt,pa as rt,po as it,qa as H,qo as at,ra as ot,ro as st,sa as ct,so as lt,ss as ut,ta as dt,to as ft,ua as pt,uo as mt,va as ht,vo as gt,wa as _t,wo as vt,ws as yt,xa as bt,xo as xt,xs as St,ya as Ct,yo as wt,za as Tt,zo as Et}from"./ToneBadge-CUe-WrzN.js";var U=(e,t,n,r)=>{let i={_id:e,baseUrl:t?.baseUrl||(t?.client??C).getConfig().baseUrl};return n&&(i._infinite=n),r&&(i.tags=r),t?.body&&(i.body=t.body),t?.headers&&(i.headers=t.headers),t?.path&&(i.path=t.path),t?.query&&(i.query=t.query),[i]},Dt=e=>U(`getApiV1ProjectsByNameSeoContext`,e),Ot=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Me({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Dt(e)}),kt=e=>U(`getApiV1ProjectsByNameSeoProfiles`,e),At=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await gt({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:kt(e)}),jt=e=>({mutationFn:async t=>{let{data:n}=await Ge({...e,...t,throwOnError:!0});return n}}),Mt=e=>U(`getApiV1ProjectsByNameSeoRuns`,e),Nt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await De({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Mt(e)}),Pt=e=>U(`getApiV1ProjectsByNameSeoRunsById`,e),Ft=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await xt({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Pt(e)}),It=e=>U(`getApiV1ProjectsByNameSeoOverview`,e),Lt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Ce({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:It(e)}),W=(e,t)=>{let n={...e[0]};return t.body&&(n.body={...e[0].body,...t.body}),t.headers&&(n.headers={...e[0].headers,...t.headers}),t.path&&(n.path={...e[0].path,...t.path}),t.query&&(n.query={...e[0].query,...t.query}),n},Rt=e=>U(`getApiV1ProjectsByNameSeoKeywordMetrics`,e),zt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Qe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Rt(e)}),Bt=e=>U(`getApiV1ProjectsByNameSeoDomainIntelligence`,e),Vt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Ie({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Bt(e)}),Ht=e=>U(`getApiV1ProjectsByNameSeoRankedKeywords`,e),Ut=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await wt({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Ht(e)}),Wt=e=>U(`getApiV1ProjectsByNameSeoCompetitors`,e),Gt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await mt({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Wt(e)}),Kt=e=>U(`getApiV1ProjectsByNameSeoKeywordGaps`,e),qt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await it({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Kt(e)}),Jt=e=>U(`getApiV1ProjectsByNameSeoMarketRankings`,e),Yt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Be({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Jt(e)}),Xt=e=>U(`getApiV1ProjectsByNameSeoMarketRankingsSummary`,e),Zt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Re({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Xt(e)}),Qt=e=>({mutationFn:async t=>{let{data:n}=await ie({...e,...t,throwOnError:!0});return n}}),$t=e=>({mutationFn:async t=>{let{data:n}=await R({...e,...t,throwOnError:!0});return n}}),en=e=>({mutationFn:async t=>{let{data:n}=await yt({...e,...t,throwOnError:!0});return n}}),G=e=>U(`getApiV1Projects`,e),tn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await dt({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:G(e)}),K=e=>U(`getApiV1ProjectsByName`,e),nn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await $e({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:K(e)}),rn=e=>U(`getApiV1ProjectsByNameMeasurementPlan`,e),an=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await f({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:rn(e)}),on=e=>U(`getApiV1ProjectsByNameMeasurementReport`,e),sn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Pe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:on(e)}),cn=e=>U(`getApiV1ProjectsByNameMeasurementSetup`,e),ln=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ft({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:cn(e)}),un=e=>U(`getApiV1ProjectsByNameMeasurementPlanDraft`,e),dn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ve({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:un(e)}),fn=e=>({mutationFn:async t=>{let{data:n}=await ut({...e,...t,throwOnError:!0});return n}}),pn=e=>U(`getApiV1ProjectsByNameMeasurementOverview`,e),mn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await H({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:pn(e)}),hn=e=>U(`getApiV1ProjectsByNameMeasurementOverview`,e,!0),gn=t=>e({queryFn:async({pageParam:e,queryKey:n,signal:r})=>{let i=W(n,typeof e==`object`?e:{query:{cursor:e}}),{data:a}=await H({...t,...i,signal:r,throwOnError:!0});return a},queryKey:hn(t)}),_n=e=>U(`getApiV1ProjectsByNameVisibilityReport`,e),vn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await te({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:_n(e)}),yn=e=>U(`getApiV1ProjectsByNameMeasurementPropertyEvidence`,e,!0),bn=t=>e({queryFn:async({pageParam:e,queryKey:n,signal:r})=>{let i=W(n,typeof e==`object`?e:{query:{cursor:e}}),{data:a}=await be({...t,...i,signal:r,throwOnError:!0});return a},queryKey:yn(t)}),xn=e=>U(`getApiV1ProjectsByNameMeasurementQuestionResult`,e),Sn=e=>t({queryFn:async({queryKey:t,signal:r})=>{let{data:i}=await n({...e,...t[0],signal:r,throwOnError:!0});return i},queryKey:xn(e)}),Cn=e=>U(`getApiV1ProjectsByNameMeasurementPropertyCompetitors`,e),wn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ge({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Cn(e)}),q=e=>U(`getApiV1ProjectsByNameMeasurementQueryTemplates`,e),Tn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await k({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:q(e)}),En=e=>({mutationFn:async t=>{let{data:n}=await o({...e,...t,throwOnError:!0});return n}}),Dn=e=>U(`getApiV1ProjectsByNameResearchRuns`,e,!0),On=t=>e({queryFn:async({pageParam:e,queryKey:n,signal:r})=>{let i=W(n,typeof e==`object`?e:{query:{cursor:e}}),{data:a}=await He({...t,...i,signal:r,throwOnError:!0});return a},queryKey:Dn(t)}),kn=e=>({mutationFn:async t=>{let{data:n}=await F({...e,...t,throwOnError:!0});return n}}),J=e=>U(`getApiV1ProjectsByNameQueryTracking`,e),An=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await st({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:J(e)}),jn=e=>({mutationFn:async t=>{let{data:n}=await St({...e,...t,throwOnError:!0});return n}}),Mn=e=>({mutationFn:async t=>{let{data:n}=await Oe({...e,...t,throwOnError:!0});return n}}),Nn=e=>U(`getApiV1ProjectsByNameResearchRunsByRunId`,e),Pn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Te({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Nn(e)}),Y=e=>U(`getApiV1ProjectsByNameQueries`,e),Fn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await et({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Y(e)}),In=e=>U(`getApiV1ProjectsByNameAnalyticsCompetitors`,e),Ln=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Ve({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:In(e)}),Rn=e=>U(`getApiV1ProjectsByNameRuns`,e),X=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await lt({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Rn(e)}),zn=e=>U(`getApiV1ProjectsByNameRunAdmission`,e),Bn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await nt({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:zn(e)}),Z=e=>U(`getApiV1Runs`,e),Vn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await pe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Z(e)}),Hn=e=>U(`getApiV1RunsById`,e),Un=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await l({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Hn(e)}),Wn=e=>U(`getApiV1ProjectsByNameHistory`,e),Gn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await m({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Wn(e)}),Kn=e=>U(`getApiV1History`,e),qn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Ne({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Kn(e)}),Jn=e=>U(`getApiV1ProjectsByNameSnapshotsDiff`,e),Yn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await P({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Jn(e)}),Xn=e=>U(`getApiV1Settings`,e),Zn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await B({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Xn(e)}),Qn=e=>U(`getApiV1ProjectsByNameSchedule`,e),$n=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Ae({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Qn(e)}),Q=e=>U(`getApiV1ProjectsByNameSchedules`,e),er=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Xe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Q(e)}),$=e=>U(`getApiV1Telemetry`,e),tr=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await he({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:$(e)}),nr=e=>({mutationFn:async t=>{let{data:n}=await b({...e,...t,throwOnError:!0});return n}}),rr=e=>U(`getApiV1CdpStatus`,e),ir=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:i}=await r({...e,...t[0],signal:n,throwOnError:!0});return i},queryKey:rr(e)}),ar=e=>U(`getApiV1ProjectsByNameGoogleAdsStatus`,e),or=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Ue({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:ar(e)}),sr=e=>({mutationFn:async t=>{let{data:n}=await at({...e,...t,throwOnError:!0});return n}}),cr=e=>U(`getApiV1ProjectsByNameGoogleAdsCustomers`,e),lr=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await w({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:cr(e)}),ur=e=>({mutationFn:async t=>{let{data:n}=await E({...e,...t,throwOnError:!0});return n}}),dr=e=>({mutationFn:async t=>{let{data:n}=await p({...e,...t,throwOnError:!0});return n}}),fr=e=>U(`getApiV1ProjectsByNameGoogleAdsPerformance`,e),pr=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Ke({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:fr(e)}),mr=e=>U(`getApiV1ProjectsByNameGoogleAdsSnapshots`,e),hr=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await i({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:mr(e)}),gr=e=>({mutationFn:async t=>{let{data:n}=await xe({...e,...t,throwOnError:!0});return n}}),_r=e=>U(`getApiV1ProjectsByNameGtmStatus`,e),vr=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await me({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:_r(e)}),yr=e=>({mutationFn:async t=>{let{data:n}=await ye({...e,...t,throwOnError:!0});return n}}),br=e=>U(`getApiV1ProjectsByNameGtmAccounts`,e),xr=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ee({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:br(e)}),Sr=e=>U(`getApiV1ProjectsByNameGtmAccountsByAccountIdContainers`,e),Cr=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await V({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Sr(e)}),wr=e=>U(`getApiV1ProjectsByNameGtmAccountsByAccountIdContainersByContainerIdWorkspaces`,e),Tr=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await c({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:wr(e)}),Er=e=>({mutationFn:async t=>{let{data:n}=await Je({...e,...t,throwOnError:!0});return n}}),Dr=e=>({mutationFn:async t=>{let{data:n}=await _e({...e,...t,throwOnError:!0});return n}}),Or=e=>U(`getApiV1ProjectsByNameGtmSnapshots`,e),kr=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await z({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Or(e)}),Ar=e=>({mutationFn:async t=>{let{data:n}=await A({...e,...t,throwOnError:!0});return n}}),jr=e=>U(`getApiV1ProjectsByNameConversionTrackingOptions`,e),Mr=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await rt({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:jr(e)}),Nr=e=>U(`getApiV1ProjectsByNameConversionTrackingContracts`,e),Pr=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await je({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Nr(e)}),Fr=e=>({mutationFn:async t=>{let{data:n}=await s({...e,...t,throwOnError:!0});return n}}),Ir=e=>U(`getApiV1ProjectsByNameConversionTrackingContractsByContractIdIntegrity`,e),Lr=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Fe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Ir(e)}),Rr=e=>U(`getApiV1ProjectsByNameGoogleConnections`,e),zr=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await v({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Rr(e)}),Br=e=>U(`getApiV1ProjectsByNameGoogleProperties`,e),Vr=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Tt({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Br(e)}),Hr=e=>U(`getApiV1ProjectsByNameGoogleGscPerformance`,e),Ur=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await g({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Hr(e)}),Wr=e=>U(`getApiV1ProjectsByNameGoogleGscPerformanceDaily`,e),Gr=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await j({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Wr(e)}),Kr=e=>U(`getApiV1ProjectsByNameGoogleGscInspections`,e),qr=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await u({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Kr(e)}),Jr=e=>U(`getApiV1ProjectsByNameGoogleGscDeindexed`,e),Yr=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ue({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Jr(e)}),Xr=e=>U(`getApiV1ProjectsByNameGoogleGscCoverage`,e),Zr=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await x({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Xr(e)}),Qr=e=>U(`getApiV1ProjectsByNameGoogleGscCoverageHistory`,e),$r=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await D({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Qr(e)}),ei=e=>U(`getApiV1ProjectsByNameGoogleGscSitemaps`,e),ti=e=>U(`getApiV1ProjectsByNameGbpLocations`,e),ni=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ne({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:ti(e)}),ri=e=>({mutationFn:async t=>{let{data:n}=await se({...e,...t,throwOnError:!0});return n}}),ii=e=>({mutationFn:async t=>{let{data:n}=await h({...e,...t,throwOnError:!0});return n}}),ai=e=>U(`getApiV1ProjectsByNameGbpKeywords`,e),oi=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await N({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:ai(e)}),si=e=>U(`getApiV1ProjectsByNameGbpPlaceActions`,e),ci=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await I({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:si(e)}),li=e=>U(`getApiV1ProjectsByNameGbpLodging`,e),ui=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await _t({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:li(e)}),di=e=>U(`getApiV1ProjectsByNameGbpPlaces`,e),fi=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ce({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:di(e)}),pi=e=>U(`getApiV1ProjectsByNameGbpSummary`,e),mi=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ae({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:pi(e)}),hi=e=>U(`getApiV1ProjectsByNameBingStatus`,e),gi=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Ye({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:hi(e)}),_i=e=>U(`getApiV1ProjectsByNameBingSites`,e),vi=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ke({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:_i(e)}),yi=e=>U(`getApiV1ProjectsByNameBingCoverage`,e),bi=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await we({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:yi(e)}),xi=e=>U(`getApiV1ProjectsByNameBingInspections`,e),Si=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await tt({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:xi(e)}),Ci=e=>U(`getApiV1ProjectsByNameBingPerformance`,e),wi=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ct({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Ci(e)}),Ti=e=>U(`getApiV1ProjectsByNameGaStatus`,e),Ei=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Ee({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Ti(e)}),Di=e=>U(`getApiV1ProjectsByNameGaSearchLandingPages`,e),Oi=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ht({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Di(e)}),ki=e=>U(`getApiV1ProjectsByNameGaTraffic`,e),Ai=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await bt({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:ki(e)}),ji=e=>U(`getApiV1ProjectsByNameGaAiReferralDaily`,e),Mi=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Le({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:ji(e)}),Ni=e=>U(`getApiV1ProjectsByNameGaOverview`,e),Pi=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Se({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Ni(e)}),Fi=e=>U(`getApiV1ProjectsByNameGaSessionHistory`,e),Ii=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Ct({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Fi(e)}),Li=e=>U(`getApiV1ProjectsByNameHealthHistory`,e),Ri=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await fe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Li(e)}),zi=e=>U(`getApiV1ProjectsByNameCitationsVisibility`,e),Bi=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await pt({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:zi(e)}),Vi=e=>U(`getApiV1ProjectsByNameTrafficSources`,e),Hi=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await _({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Vi(e)}),Ui=e=>U(`getApiV1ProjectsByNameTrafficStatus`,e),Wi=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Et({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Ui(e)}),Gi=e=>U(`getApiV1ProjectsByNameTrafficSourcesById`,e),Ki=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await M({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Gi(e)}),qi=e=>U(`getApiV1ProjectsByNameTrafficEvents`,e),Ji=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await d({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:qi(e)}),Yi=e=>U(`getApiV1ProjectsByNameDiscoverSessions`,e),Xi=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Ze({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Yi(e)}),Zi=e=>U(`getApiV1ProjectsByNameDiscoverSessionsById`,e),Qi=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ze({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Zi(e)}),$i=e=>U(`getApiV1ProjectsByNameTechnicalAeo`,e),ea=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await re({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:$i(e)}),ta=e=>U(`getApiV1ProjectsByNameTechnicalAeoPages`,e),na=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await a({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:ta(e)}),ra=e=>U(`getApiV1ProjectsByNameTechnicalAeoTrend`,e),ia=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await de({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:ra(e)}),aa=e=>U(`getApiV1ProjectsByNameTechnicalAeoCrawl`,e),oa=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await vt({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:aa(e)}),sa=e=>U(`getApiV1ProjectsByNameTechnicalAeoGraph`,e),ca=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await T({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:sa(e)}),la=e=>U(`getApiV1ProjectsByNameTechnicalAeoCrawlPagesAudit`,e),ua=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await le({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:la(e)}),da=e=>U(`getApiV1ProjectsByNameTechnicalAeoCrawlPages`,e),fa=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await L({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:da(e)}),pa=e=>U(`getApiV1ProjectsByNameTechnicalAeoCrawlPages`,e,!0),ma=t=>e({queryFn:async({pageParam:e,queryKey:n,signal:r})=>{let i=W(n,typeof e==`object`?e:{query:{cursor:e}}),{data:a}=await L({...t,...i,signal:r,throwOnError:!0});return a},queryKey:pa(t)}),ha=e=>U(`getApiV1ProjectsByNameTechnicalAeoStructure`,e,!0),ga=t=>e({queryFn:async({pageParam:e,queryKey:n,signal:r})=>{let i=W(n,typeof e==`object`?e:{query:{cursor:e}}),{data:a}=await O({...t,...i,signal:r,throwOnError:!0});return a},queryKey:ha(t)}),_a=e=>U(`getApiV1ProjectsByNameTechnicalAeoInternalLinksNeighbors`,e),va=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await qe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:_a(e)}),ya=e=>U(`getApiV1ProjectsByNameTechnicalAeoDeadLinks`,e),ba=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await oe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:ya(e)}),xa=e=>U(`getApiV1ProjectsByNameTechnicalAeoRuns`,e),Sa=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await We({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:xa(e)}),Ca=e=>U(`getApiV1ProjectsByNameTechnicalAeoRunsByRunIdProgress`,e),wa=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await S({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Ca(e)}),Ta=e=>U(`getApiV1ProjectsByNameTechnicalAeoRunsByRunIdPageHealthPreview`,e),Ea=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await y({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Ta(e)}),Da=e=>U(`getApiV1ProjectsByNameAgentProviders`,e),Oa=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ot({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Da(e)});export{an as $,G as $t,lr as A,Ft as At,Ur as B,ea as Bt,Ai as C,jt as Cn,qt as Ct,ci as D,Lt as Dt,ui as E,Zt as Et,$r as F,ma as Ft,xr as G,ga as Gt,Vr as H,Ea as Ht,Zr as I,fa as It,Ri as J,Ki as Jt,kr as K,ia as Kt,Yr as L,ba as Lt,hr as M,Yn as Mt,or as N,oa as Nt,fi as O,At as Ot,zr as P,ua as Pt,dn as Q,tn as Qt,qr as R,ca as Rt,Ei as S,En as Sn,Vt as St,ni as T,Yt as Tt,Tr as U,wa as Ut,ei as V,na as Vt,Cr as W,Sa as Wt,gn as X,Wi as Xt,Gn as Y,Hi as Yt,mn as Z,vn as Zt,Xi as _,en as _n,$n as _t,Oa as a,$ as an,sn as at,Oi as b,ur as bn,Gt as bt,Si as c,sr as cn,Fn as ct,gi as d,Dr as dn,An as dt,Un as en,wn as et,Bi as f,fn,J as ft,Qi as g,Qt as gn,X as gt,Mr as h,kn as hn,Bn as ht,qn as i,tr as in,Sn as it,pr as j,Nt as jt,mi as k,Ut as kt,wi as l,dr as ln,Y as lt,Pr as m,jn as mn,On as mt,Ar as n,Z as nn,Tn as nt,Ln as o,Fr as on,ln as ot,Lr as p,Mn as pn,Pn as pt,vr as q,Ji as qt,ir as r,Zn as rn,q as rt,bi as s,ii as sn,nn as st,gr as t,Vn as tn,bn as tt,vi as u,yr as un,K as ut,Mi as v,$t as vn,er as vt,oi as w,nr as wn,zt as wt,Ii as x,Er as xn,Ot as xt,Pi as y,ri as yn,Q as yt,Gr as z,va as zt};
@@ -1,4 +1,4 @@
1
- import{r as e,t}from"./rolldown-runtime-XKyaHtl9.js";import{ot as n}from"./vendor-lucide-BILL9eZH.js";import{c as r,l as i}from"./SiteHealthSection-BCdPVFEJ.js";var a=e(n(),1);function o(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){if(e){if(typeof e==`string`)return o(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}function c(e){if(Array.isArray(e))return e}function l(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function u(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
1
+ import{r as e,t}from"./rolldown-runtime-XKyaHtl9.js";import{ot as n}from"./vendor-lucide-BILL9eZH.js";import{c as r,l as i}from"./SiteHealthSection-D1oSuo9O.js";var a=e(n(),1);function o(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){if(e){if(typeof e==`string`)return o(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}function c(e){if(Array.isArray(e))return e}function l(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function u(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function d(e,t){return c(e)||l(e,t)||s(e,t)||u()}function f(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=s(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
3
3
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(c)throw a}}}}function p(){return Float32Array.of(1,0,0,0,1,0,0,0,1)}function m(e,t,n){return e[0]=t,e[4]=typeof n==`number`?n:t,e}function h(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=n,e[3]=-n,e[4]=r,e}function g(e,t,n){return e[6]=t,e[7]=n,e}function _(e,t){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],c=e[6],l=e[7],u=e[8],d=t[0],f=t[1],p=t[2],m=t[3],h=t[4],g=t[5],_=t[6],v=t[7],y=t[8];return e[0]=d*n+f*a+p*c,e[1]=d*r+f*o+p*l,e[2]=d*i+f*s+p*u,e[3]=m*n+h*a+g*c,e[4]=m*r+h*o+g*l,e[5]=m*i+h*s+g*u,e[6]=_*n+v*a+y*c,e[7]=_*r+v*o+y*l,e[8]=_*i+v*s+y*u,e}function v(e,t){var n=Math.cos(t),r=Math.sin(t);return{x:n*e.x+r*e.y,y:-r*e.x+n*e.y}}function y(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=e[0],i=e[1],a=e[3],o=e[4],s=e[6],c=e[7],l=t.x,u=t.y;return{x:l*r+u*a+s*n,y:l*i+u*o+c*n}}function b(e,t){var n=e.height/e.width,r=t.height/t.width;return n<1&&r>1||n>1&&r<1?1:Math.min(Math.max(r,1/r),Math.max(1/n,n))}function x(e,t,n,r,i){var a=e.angle,o=e.ratio,s=e.x,c=e.y,l=t.width,u=t.height,d=p(),f=Math.min(l,u)-2*r,v=b(t,n);return i?(_(d,g(p(),s,c)),_(d,m(p(),o)),_(d,h(p(),a)),_(d,m(p(),l/f/2/v,u/f/2/v))):(_(d,m(p(),f/l*2*v,f/u*2*v)),_(d,h(p(),-a)),_(d,m(p(),1/o)),_(d,g(p(),-s,-c))),d}function S(e,t,n){var r=y(e,{x:Math.cos(t.angle),y:Math.sin(t.angle)},0),i=r.x,a=r.y;return 1/Math.sqrt(i**2+a**2)/n.width}function C(e,t,n,r,i){return[Math.floor(t/i*r),Math.floor(e.drawingBufferHeight/i-n/i*r)]}var w={black:`#000000`,silver:`#C0C0C0`,gray:`#808080`,grey:`#808080`,white:`#FFFFFF`,maroon:`#800000`,red:`#FF0000`,purple:`#800080`,fuchsia:`#FF00FF`,green:`#008000`,lime:`#00FF00`,olive:`#808000`,yellow:`#FFFF00`,navy:`#000080`,blue:`#0000FF`,teal:`#008080`,aqua:`#00FFFF`,darkblue:`#00008B`,mediumblue:`#0000CD`,darkgreen:`#006400`,darkcyan:`#008B8B`,deepskyblue:`#00BFFF`,darkturquoise:`#00CED1`,mediumspringgreen:`#00FA9A`,springgreen:`#00FF7F`,cyan:`#00FFFF`,midnightblue:`#191970`,dodgerblue:`#1E90FF`,lightseagreen:`#20B2AA`,forestgreen:`#228B22`,seagreen:`#2E8B57`,darkslategray:`#2F4F4F`,darkslategrey:`#2F4F4F`,limegreen:`#32CD32`,mediumseagreen:`#3CB371`,turquoise:`#40E0D0`,royalblue:`#4169E1`,steelblue:`#4682B4`,darkslateblue:`#483D8B`,mediumturquoise:`#48D1CC`,indigo:`#4B0082`,darkolivegreen:`#556B2F`,cadetblue:`#5F9EA0`,cornflowerblue:`#6495ED`,rebeccapurple:`#663399`,mediumaquamarine:`#66CDAA`,dimgray:`#696969`,dimgrey:`#696969`,slateblue:`#6A5ACD`,olivedrab:`#6B8E23`,slategray:`#708090`,slategrey:`#708090`,lightslategray:`#778899`,lightslategrey:`#778899`,mediumslateblue:`#7B68EE`,lawngreen:`#7CFC00`,chartreuse:`#7FFF00`,aquamarine:`#7FFFD4`,skyblue:`#87CEEB`,lightskyblue:`#87CEFA`,blueviolet:`#8A2BE2`,darkred:`#8B0000`,darkmagenta:`#8B008B`,saddlebrown:`#8B4513`,darkseagreen:`#8FBC8F`,lightgreen:`#90EE90`,mediumpurple:`#9370DB`,darkviolet:`#9400D3`,palegreen:`#98FB98`,darkorchid:`#9932CC`,yellowgreen:`#9ACD32`,sienna:`#A0522D`,brown:`#A52A2A`,darkgray:`#A9A9A9`,darkgrey:`#A9A9A9`,lightblue:`#ADD8E6`,greenyellow:`#ADFF2F`,paleturquoise:`#AFEEEE`,lightsteelblue:`#B0C4DE`,powderblue:`#B0E0E6`,firebrick:`#B22222`,darkgoldenrod:`#B8860B`,mediumorchid:`#BA55D3`,rosybrown:`#BC8F8F`,darkkhaki:`#BDB76B`,mediumvioletred:`#C71585`,indianred:`#CD5C5C`,peru:`#CD853F`,chocolate:`#D2691E`,tan:`#D2B48C`,lightgray:`#D3D3D3`,lightgrey:`#D3D3D3`,thistle:`#D8BFD8`,orchid:`#DA70D6`,goldenrod:`#DAA520`,palevioletred:`#DB7093`,crimson:`#DC143C`,gainsboro:`#DCDCDC`,plum:`#DDA0DD`,burlywood:`#DEB887`,lightcyan:`#E0FFFF`,lavender:`#E6E6FA`,darksalmon:`#E9967A`,violet:`#EE82EE`,palegoldenrod:`#EEE8AA`,lightcoral:`#F08080`,khaki:`#F0E68C`,aliceblue:`#F0F8FF`,honeydew:`#F0FFF0`,azure:`#F0FFFF`,sandybrown:`#F4A460`,wheat:`#F5DEB3`,beige:`#F5F5DC`,whitesmoke:`#F5F5F5`,mintcream:`#F5FFFA`,ghostwhite:`#F8F8FF`,salmon:`#FA8072`,antiquewhite:`#FAEBD7`,linen:`#FAF0E6`,lightgoldenrodyellow:`#FAFAD2`,oldlace:`#FDF5E6`,magenta:`#FF00FF`,deeppink:`#FF1493`,orangered:`#FF4500`,tomato:`#FF6347`,hotpink:`#FF69B4`,coral:`#FF7F50`,darkorange:`#FF8C00`,lightsalmon:`#FFA07A`,orange:`#FFA500`,lightpink:`#FFB6C1`,pink:`#FFC0CB`,gold:`#FFD700`,peachpuff:`#FFDAB9`,navajowhite:`#FFDEAD`,moccasin:`#FFE4B5`,bisque:`#FFE4C4`,mistyrose:`#FFE4E1`,blanchedalmond:`#FFEBCD`,papayawhip:`#FFEFD5`,lavenderblush:`#FFF0F5`,seashell:`#FFF5EE`,cornsilk:`#FFF8DC`,lemonchiffon:`#FFFACD`,floralwhite:`#FFFAF0`,snow:`#FFFAFA`,lightyellow:`#FFFFE0`,ivory:`#FFFFF0`},T=new Int8Array(4),E=new Int32Array(T.buffer,0,1),D=new Float32Array(T.buffer,0,1),O=/^\s*rgba?\s*\(/,k=/^\s*rgba?\s*\(\s*([0-9]*)\s*,\s*([0-9]*)\s*,\s*([0-9]*)(?:\s*,\s*(.*)?)?\)\s*$/;function A(e){var t=0,n=0,r=0,i=1,a=e.toLowerCase();if(a===`transparent`)return{r:0,g:0,b:0,a:0};if(a in w)return A(w[a]);if(e[0]===`#`)e.length===4?(t=parseInt(e.charAt(1)+e.charAt(1),16),n=parseInt(e.charAt(2)+e.charAt(2),16),r=parseInt(e.charAt(3)+e.charAt(3),16)):(t=parseInt(e.charAt(1)+e.charAt(2),16),n=parseInt(e.charAt(3)+e.charAt(4),16),r=parseInt(e.charAt(5)+e.charAt(6),16)),e.length===9&&(i=parseInt(e.charAt(7)+e.charAt(8),16)/255);else if(O.test(e)){var o=e.match(k);o&&(t=+o[1],n=+o[2],r=+o[3],o[4]&&(i=+o[4]))}return{r:t,g:n,b:r,a:i}}function j(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=A(e),r=n.r,i=n.g,a=n.b,o=n.a;return t?[r/255*o,i/255*o,a/255*o,o]:[r/255,i/255,a/255,o]}var M={};for(var N in w)M[N]=F(w[N]),M[w[N]]=M[N];function P(e,t,n,r,i){return E[0]=r<<24|n<<16|t<<8|e,i&&(E[0]&=4278190079),D[0]}function F(e){if(e=e.toLowerCase(),M[e]!==void 0)return M[e];var t=A(e),n=t.r,r=t.g,i=t.b,a=t.a;a=a*255|0;var o=P(n,r,i,a,!0);return M[e]=o,o}function I(e,t){D[0]=F(e);var n=E[0];return t&&(n|=16777216),[n&255,n>>8&255,n>>16&255,n>>24&255]}function ee(e){var t=e>>>8&255,n=e>>>16&255,r=e>>>24&255;return((e&255)<<24|r<<16|n<<8|t)>>>0}function te(e,t,n,r){return(n<<24|t<<16|e<<8|r)>>>0}function L(e,t,n,r,i,a){var o=d(C(e,n,r,i,a),2),s=o[0],c=o[1],l=new Uint8Array(4);e.bindFramebuffer(e.FRAMEBUFFER,t),e.readPixels(s,c,1,1,e.RGBA,e.UNSIGNED_BYTE,l);var u=d(l,4);return[u[0],u[1],u[2],u[3]]}function ne(e){var t=A(e),n=t.r,r=t.g,i=t.b,a=t.a;return`vec4(${(n/255).toFixed(6)}, ${(r/255).toFixed(6)}, ${(i/255).toFixed(6)}, ${a.toFixed(6)})`}function re(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function ie(e){var t=re(e,`string`);return typeof t==`symbol`?t:t+``}function R(e,t,n){return(t=ie(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function z(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ae(Object(n),!0).forEach(function(t){R(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ae(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function B(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function oe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,ie(r.key),r)}}function V(e,t,n){return t&&oe(e.prototype,t),n&&oe(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function se(e){return se=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},se(e)}function ce(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ce=function(){return!!e})()}function le(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function ue(e,t){if(t&&(typeof t==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return le(e)}function H(e,t,n){return t=se(t),ue(e,ce()?Reflect.construct(t,n||[],se(e).constructor):t.apply(e,n))}function de(e,t){return de=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},de(e,t)}function U(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&de(e,t)}function fe(e){if(Array.isArray(e))return o(e)}function pe(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function me(){throw TypeError(`Invalid attempt to spread non-iterable instance.
4
4
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function W(e){return fe(e)||pe(e)||s(e)||me()}function G(e){"@babel/helpers - typeof";return G=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},G(e)}function he(e){return G(e)===`object`&&e!==null&&`attribute`in e}function ge(){return{name:`circle`,glsl:`
@@ -1 +1 @@
1
- import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{J as t,K as n,ot as r,q as i}from"./vendor-lucide-BILL9eZH.js";import{r as a}from"./vendor-markdown-DNTP_967.js";import{$o as o,Jo as s,Ka as c,Ko as l,Qa as u,Qo as d,Xo as f,Yo as p,Zo as m,a as h,as as g,cs as _,ds as v,es as y,fs as b,is as x,ls as S,ms as C,mt as w,os as T,ps as E,qo as D,rs as O,ss as k,ts as A,us as j,yt as M}from"./ToneBadge-DSJSzqI6.js";import{x as N}from"./format-helpers-DKrHlaV7.js";var P=e(r(),1),F=a(),I=`min-h-11 w-full rounded-md border border-default bg-surface px-3 py-2 text-label-14 text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-mono-400`,L=`flex min-h-11 w-full items-center justify-between gap-3 rounded px-2 text-left text-label-14 text-primary hover:bg-surface-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-mono-400`,R=e=>e.kind===`project`?`Whole site`:e.label,z={allMarkets:`All markets`,browse:e=>`Browse ${e}`,select:e=>`Select ${e}`,browseAll:`Browse all properties`},ee=e=>e?.kind===`group`&&e.marketKeys?.length===1?e.marketKeys[0]:void 0,B=e=>`${e} ${e===1?`property`:`properties`}`;function V({options:e,selected:r,onSelect:a,marketKey:o,label:s=`Measurement scope`,labelVisibility:c=`visible`,allowGroupSelect:l=!0}){let u=[...e].sort((e,t)=>e.label.localeCompare(t.label,void 0,{numeric:!0})||e.id.localeCompare(t.id)),[d,f]=(0,P.useState)(``),[p,m]=(0,P.useState)([]),[h,g]=(0,P.useState)(!1),_=(0,P.useRef)(null),v=(0,P.useRef)(null),y=(0,P.useId)(),b=u.filter(e=>e.kind===`group`),x=new Map(b.map(e=>[e.id,e])),S=x.get(p.at(-1)??``),C=x.get(p.at(-2)??``),w=d.trim().toLocaleLowerCase(),T=b.filter(e=>!e.parentGroupIds?.some(e=>x.has(e))),E=u.filter(e=>e.kind===`property`),D=e=>(e.parentGroupIds??[]).map(e=>x.get(e)?.label).filter(Boolean).join(` · `),O=e=>`${R(e)} ${D(e)}`.toLocaleLowerCase().includes(w),k=e=>{let t=[...e.parentGroupIds??[]],n=new Set;for(;t.length;){let e=t.pop();if(e===S?.id)return!0;n.has(e)||(n.add(e),t.push(...x.get(e)?.parentGroupIds??[]))}return!1},A=(h?[]:S?b.filter(e=>w?k(e):e.parentGroupIds?.includes(S.id)):w?b:T).filter(O),j=u.find(e=>e.kind===`market`&&e.id===(o??(r.kind===`market`?r.id:void 0))),M=S&&j&&(S.marketKeys?.includes(j.id)||j.parentGroupIds?.includes(S.id))?j.id:void 0,N=l?M??ee(S):void 0,V=(S?E.filter(e=>e.parentGroupIds?.includes(S.id)&&(!N||e.marketKeys?.includes(N))):w||h||b.length===0?E:[]).filter(O),H=u.filter(e=>e.kind!==`market`||h||!l&&!S&&!w&&b.length>0||l&&S?.marketKeys?.length===1&&!w?!1:(S?w?k(e):e.parentGroupIds?.includes(S.id):w||!e.parentGroupIds?.some(e=>x.has(e)))&&O(e)),U=S||h?[]:u.filter(e=>e.kind===`project`&&O(e));(0,P.useEffect)(()=>{let e=e=>{_.current?.open&&e.target instanceof Node&&!_.current.contains(e.target)&&(_.current.open=!1)};return document.addEventListener(`pointerdown`,e),()=>document.removeEventListener(`pointerdown`,e)},[]);let W=e=>{_.current&&(_.current.open=!1,_.current.querySelector(`summary`)?.focus());let t=l?e.kind===`property`?N:e.kind===`group`&&e.id===S?.id?M:void 0:void 0;t?a(e,t):a(e)},G=e=>{let t=[],n=x.get(e.parentGroupIds?.[0]??``);for(;n&&!t.includes(n.id)&&n.id!==e.id;)t.unshift(n.id),n=x.get(n.parentGroupIds?.[0]??``);return[...t,e.id]},K=()=>{let e=r.kind===`group`?x.get(r.id):void 0,t=x.get(j?.parentGroupIds?.[0]??``),n=(r.parentGroupIds??[]).flatMap(e=>{let t=x.get(e);return t?[G(t)]:[]}),i=n.find(e=>e.at(-1)===S?.id)??n.sort((e,t)=>t.length-e.length)[0]??[],a=t?G(t):r.marketKeys?.length?[]:i;m(e?G(e):a),g(r.kind===`property`&&a.length===0&&b.length>0),f(``)},q=e=>{m(G(e)),g(!1),f(``),v.current?.focus()},J=(e,t=R(e))=>(0,F.jsxs)(`div`,{className:`flex items-stretch`,children:[(0,F.jsxs)(`button`,{type:`button`,className:L,"aria-label":e.kind===`group`&&!l?z.browse(R(e)):z.select(R(e)),"aria-current":r.kind===e.kind&&r.id===e.id?`true`:void 0,onClick:()=>e.kind===`group`&&!l?q(e):W(e),children:[(0,F.jsxs)(`span`,{className:`min-w-0 break-words`,children:[t,w&&D(e)?(0,F.jsx)(`span`,{className:`block text-label-13 text-secondary`,children:D(e)}):null]}),(0,F.jsx)(`span`,{className:`shrink-0 text-right text-label-13 text-secondary`,children:e.kind===`market`?l?`Query context`:`Market`:e.kind===`property`?`Property`:B(e.targetCount)})]}),l&&e.kind===`group`&&e.id!==S?.id&&u.some(t=>t.parentGroupIds?.includes(e.id))?(0,F.jsx)(`button`,{type:`button`,"aria-label":z.browse(e.label),title:`Browse ${e.label}`,className:`flex min-h-11 min-w-11 items-center justify-center rounded text-secondary hover:bg-surface-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-mono-400`,onClick:()=>q(e),children:(0,F.jsx)(n,{size:18,"aria-hidden":`true`})}):null]},`${e.kind}:${e.id}`),Y=(e,t)=>t.length>0?(0,F.jsxs)(`section`,{"aria-label":e,className:`mt-2`,children:[(0,F.jsx)(`h3`,{className:`px-2 py-2 text-heading-14 text-secondary`,children:e}),t.map(e=>J(e))]}):null,X=(e,t,n)=>t.length>0?(0,F.jsxs)(`details`,{open:n,className:`mt-2 border-y border-default`,children:[(0,F.jsxs)(`summary`,{className:`min-h-11 cursor-pointer px-2 py-3 text-label-14 text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-mono-400`,children:[e,` (`,t.length,`)`]}),t.map(e=>J(e))]},`${S?.id??`root`}:${e}`):null;return(0,F.jsxs)(`div`,{className:`min-w-0`,children:[(0,F.jsx)(`span`,{id:`${y}-label`,className:c===`sr-only`?`sr-only`:`mb-1 block text-label-14-strong text-heading`,children:s}),(0,F.jsxs)(`details`,{ref:_,className:`relative`,onToggle:e=>{e.target===e.currentTarget&&e.currentTarget.open&&v.current?.focus()},onKeyDown:e=>{e.key===`Escape`&&(e.preventDefault(),e.currentTarget.open=!1,e.currentTarget.querySelector(`summary`)?.focus())},children:[(0,F.jsxs)(`summary`,{id:`${y}-value`,"aria-labelledby":`${y}-label ${y}-value`,className:`${I} visibility-scope-trigger`,onClick:()=>{_.current?.open||K()},children:[`${R(r)}${r.kind===`group`?` · ${B(r.targetCount)}`:r.kind===`property`?` · ${u.find(e=>e.kind===`market`&&e.id===o)?.label??(r.marketKeys?.length?z.allMarkets:`Property`)}`:r.kind===`market`?` · Market`:``}`,(0,F.jsx)(t,{size:16,"aria-hidden":`true`,className:`shrink-0 text-secondary`})]}),(0,F.jsxs)(`div`,{className:`visibility-scope-menu`,children:[S||h?(0,F.jsxs)(`div`,{className:`mb-2 border-b border-default pb-2`,children:[(0,F.jsx)(`button`,{type:`button`,className:L,"aria-label":`Back to ${C?.label??`all groups`}`,onClick:()=>{m(p.slice(0,-1)),g(!1),f(``),v.current?.focus()},children:(0,F.jsxs)(`span`,{className:`flex items-center gap-1`,children:[(0,F.jsx)(i,{size:16,"aria-hidden":`true`}),C?.label??`All groups`]})}),(0,F.jsx)(`p`,{className:`px-2 py-1 text-copy-14-strong text-heading`,"aria-live":`polite`,children:S?.label??`All properties`})]}):null,(0,F.jsx)(`input`,{ref:v,type:`search`,"aria-label":`Search scopes`,className:I,placeholder:S?`Search within this group`:h?`Search properties`:`Search groups or properties`,value:d,onChange:e=>f(e.target.value)}),(0,F.jsxs)(`div`,{className:`mt-2 max-h-80 overflow-y-auto`,children:[l&&S&&!w?J(S,`All properties in this group`):null,U.map(e=>J(e)),S&&!w?X(`Subgroups`,A,!0):Y(S?`Subgroups`:`Groups`,A),w?Y(`Properties`,V):X(S&&A.length>0?`All properties`:`Properties`,V,!S||A.length===0),Y(`Markets`,H),!S&&!h&&!w&&b.length>0&&E.length>0?(0,F.jsxs)(`button`,{type:`button`,className:`${L} mt-2 border-t border-default`,"aria-label":z.browseAll,onClick:()=>{g(!0),v.current?.focus()},children:[(0,F.jsx)(`span`,{children:`All properties`}),(0,F.jsx)(n,{size:18,"aria-hidden":`true`})]}):null,w&&A.length+V.length+H.length+U.length===0?(0,F.jsx)(`p`,{className:`py-3 text-copy-14 text-secondary`,children:`No matching scopes.`}):null]})]})]})]})}function H(e){let t=e[0];return!t||e.every(e=>e.mode===t.mode&&e.scope.kind===t.scope.kind&&e.scope.key===t.scope.key&&e.queryClass===t.queryClass&&e.measurement.displayedRunId===t.measurement.displayedRunId)}function U(e){return e.state===`unavailable`?{numerator:null,denominator:null,reason:e.reason}:e.numerator===void 0||e.denominator===void 0||e.denominator<=0?{numerator:null,denominator:null,reason:`not_applicable`}:{numerator:e.numerator,denominator:e.denominator,...e.unattributed===void 0?{}:{unattributed:e.unattributed},...e.unchecked===void 0?{}:{unchecked:e.unchecked}}}function W(e){return e.kind===`exact`?e.url:e.kind===`prefix`?`https://${e.host}${e.pathPrefix===`/`?``:e.pathPrefix}/*`:`https://${e.host}/*`}function G(e){return e===`assigned`?`this-property`:e===`sibling`?`another-property`:e===`ownedUnmapped`?`owned-unassigned`:e===`external`?`external`:e===`ambiguous`?`multiple-properties`:`invalid-url`}function K(e){return e===`assigned`?`positive`:e===`external`?`neutral`:e===`invalid`?`negative`:`caution`}function q(e){return`target:${e.targetKey}:${e.queryId}:${e.executionNodeKey}`}function J(e,t,n){let r=new Map;if(!t)return r;let i=new Map(e.usageEdges.map(e=>[q(e),e.targetKey])),a=new Map(e.assignments.map(e=>[`${e.targetKey}:${e.queryId}`,e.queryClass])),o=new Map(e.usageEdges.map(e=>[q(e),a.get(`${e.targetKey}:${e.queryId}`)]));for(let e of t.evidence){if(n&&o.get(e.usageEdgeId)!==n)continue;let t=i.get(e.usageEdgeId);if(!t)continue;let a=r.get(t)??[];a.push({id:`${e.observationId}:${e.expectedSlotId}:${e.usageEdgeId}:${e.sourceUrl}`,kind:G(e.classification),query:e.queryText,provider:e.provider,location:e.location,url:e.sourceUrl,tone:K(e.classification),historical:e.historical||e.bridged}),r.set(t,a)}return r}function Y(e){if(e.flags>0)return{label:`Review`,tone:`caution`};let t=[e.mentionCoverage,e.citationCoverage].filter(e=>e.state===`unavailable`).map(e=>e.reason);return t.includes(`no_completed_run`)?{label:`Not measured`,tone:`neutral`}:t.includes(`plan_v1`)?{label:`Update setup`,tone:`caution`}:t.includes(`evidence_incomplete`)?{label:`Evidence incomplete`,tone:`caution`}:t.includes(`identity_ambiguous`)?{label:N.ambiguous,tone:`caution`}:t.includes(`no_population`)?{label:`No queries`,tone:`neutral`}:t.includes(`not_applicable`)?{label:`Not applicable`,tone:`neutral`}:{label:`Complete`,tone:`positive`}}function X(e){return e===`complete`?{label:`Complete`,tone:`positive`}:e===`partial`?{label:`Partial`,tone:`caution`}:e===`queued`?{label:`Queued`,tone:`neutral`}:e===`running`?{label:`Running`,tone:`neutral`}:e===`failed`?{label:`Failed`,tone:`negative`}:{label:`Not measured`,tone:`neutral`}}function te(e){if(!e)return``;let t=new Date(e);return Number.isFinite(t.getTime())?t.toLocaleDateString(`en-US`,{month:`short`,day:`numeric`,year:`numeric`,timeZone:`UTC`}):``}function Z(e){let t=e.nextAction.count??e.flags.total;if(e.nextAction.kind===`review_flags`)return`${t} flagged ${t===1?`result needs`:`results need`} review.`;if(e.nextAction.kind===`complete_setup`)return`Finish setup.`;if(e.nextAction.kind===`republish_setup`)return`Setup update required.`;if(e.nextAction.kind===`run_measurement`)return`Ready to measure.`}function ne({overview:e,activePlan:t,report:n,reportState:r=n?`ready`:`loading`,sort:i}){if(t.plan.schemaVersion!==2||e.mode!==`active-v2`)throw Error(`The current overview requires an active version-two setup.`);if(e.scope.kind!==`all`&&e.scope.kind!==`group`)throw Error(`The current overview requires an All Properties or group scope.`);let a=t.plan,o=new Map(a.targets.map(e=>[e.stableKey,e])),s=new Map(a.querySnapshots.map(e=>[e.queryId,e.queryText])),c=new Map;for(let t of a.assignments){if(e.queryClass!==`all`&&t.queryClass!==e.queryClass)continue;let n=s.get(t.queryId);if(!n)continue;let r=c.get(t.targetKey)??new Set;r.add(n),c.set(t.targetKey,r)}let l=n?.revision===t.revision&&n.run?.id===e.measurement.displayedRunId?n:null,u=e.measurement.displayedRunId===void 0||l?`ready`:r===`error`||n!=null?`error`:`loading`,d=J(a,l,e.queryClass===`all`?void 0:e.queryClass),f=new Map;for(let e of a.groups)for(let t of e.targetKeys)f.has(t)||f.set(t,e.label);let p=e.properties.items.map(e=>{let t=o.get(e.targetKey),n=d.get(e.targetKey)??[];return{id:e.targetKey,name:e.label,mentionCoverage:U(e.mentionCoverage),citationCoverage:U(e.citationCoverage),status:Y(e),providers:e.providers?.map(e=>({provider:e.provider,mentionCoverage:U(e.mentionCoverage),citationCoverage:U(e.citationCoverage)})),market:f.get(e.targetKey),assignedQueries:[...c.get(e.targetKey)??[]],urls:t?.urlMatchers.map(W)??[],evidence:n,evidenceState:u,historical:n.some(e=>e.historical)}}),m=e.namedShareOfVoice?.entries.map(t=>({name:t.label,coverage:{numerator:t.credits,denominator:e.namedShareOfVoice.denominator}})),h=e.properties.items.flatMap(e=>e.flags>0?[{id:`property:${e.targetKey}`,property:e.label,summary:`${e.flags} ${e.flags===1?`result needs`:`results need`} review.`,tone:`caution`,count:e.flags}]:[]);return{classReporting:`available`,latestMeasurement:{status:X(e.measurement.state),completedSlots:e.measurement.completed,totalSlots:e.measurement.expected,date:te(e.measurement.completedAt),includesBridgedHistory:e.measurement.includesHistoricalData===!0},currentView:{scope:e.scope.kind===`group`?{kind:`group`,...e.scope.key?{key:e.scope.key}:{}}:{kind:`all`},queryClass:e.queryClass,aggregate:{metrics:{propertiesMentioned:U(e.metrics.propertiesMentioned),mentionCoverage:U(e.metrics.mentionCoverage),citationCoverage:U(e.metrics.citationCoverage)},properties:p,...m?{shareOfVoice:m}:{}},propertyTotal:e.properties.totalEstimate??p.length,outcomes:e.outcomes,nextCursor:e.properties.nextCursor,...i?{sort:i}:{}},availableGroups:a.groups.map(e=>({id:e.stableKey,label:e.label})),...Z(e)?{nextActionText:Z(e)}:{},flaggedResultsTotal:e.flags.total,flaggedResults:h}}function Q(){return typeof crypto<`u`&&typeof crypto.randomUUID==`function`?crypto.randomUUID():`web-${Date.now()}-${Math.random().toString(36).slice(2)}`}function $(e){return{"If-Match":e,"Idempotency-Key":Q()}}function re(e){return e instanceof h&&(e.statusCode===404||e.statusCode===409||e.statusCode===412)}function ie(e,t){return e instanceof h?t:(e instanceof Error?e.message.trim():``)||t}function ae(e){let t=`Could not calculate assignment impact.`;if(!(e instanceof h)||e.code!==`VALIDATION_ERROR`)return t;let n=e.message.trim();return e.details?.displayToOperator===!0&&n?n:t}var oe={loadSetup:e=>M(()=>u({client:w,path:{name:e}})),loadDraft:e=>M(()=>c({client:w,path:{name:e}})),createDraft:(e,t)=>M(()=>m({client:w,path:{name:e},headers:{"Idempotency-Key":Q()},body:{expectedActiveRevision:t}})),importSitemap:(e,t,n)=>M(()=>A({client:w,path:{name:e},headers:$(t),body:n})),applySitemapSelection:(e,t,n,r)=>M(()=>p({client:w,path:{name:e},headers:$(t),body:{selections:n,selectedTargetKeys:r}})),previewAssignments:(e,t)=>M(()=>O({client:w,path:{name:e},body:t})),applyAssignments:(e,t,n)=>M(()=>l({client:w,path:{name:e},headers:$(t),body:n})),replaceAssignments:(e,t,n)=>M(()=>j({client:w,path:{name:e},headers:$(t),body:n})),applyPairedAssignments:(e,t,n,r)=>M(()=>s({client:w,path:{name:e},headers:$(t),body:{pairs:n,...r?{contextOverride:r}:{}}})),previewMarketRouting:(e,t)=>M(()=>g({client:w,path:{name:e},body:t})),routeMarkets:(e,t,n)=>M(()=>v({client:w,path:{name:e},headers:$(t),body:n})),removeAssignment:(e,t,n,r)=>M(()=>k({client:w,path:{name:e},headers:$(t),body:{targetKeys:n,queryId:r}})),excludeTarget:(e,t,n)=>M(()=>y({client:w,path:{name:e},headers:$(t),body:{targetKey:n,cleanup:`assignments-and-group-memberships`}})),upsertTarget:(e,t,n)=>M(()=>C({client:w,path:{name:e},headers:$(t),body:{target:n}})),upsertGroup:(e,t,n)=>M(()=>E({client:w,path:{name:e},headers:$(t),body:{group:n}})),removeGroup:(e,t,n)=>M(()=>S({client:w,path:{name:e},headers:$(t),body:{groupKey:n}})),upsertCompetitor:(e,t,n)=>M(()=>b({client:w,path:{name:e},headers:$(t),body:n})),removeCompetitor:(e,t,n,r)=>M(()=>_({client:w,path:{name:e},headers:$(t),body:{groupKey:n,competitorKey:r}})),previewGroupMembership:(e,t)=>M(()=>x({client:w,path:{name:e},body:t})),applyGroupMembership:(e,t,n)=>M(()=>D({client:w,path:{name:e},headers:$(t),body:n})),compilePreview:e=>M(()=>f({client:w,path:{name:e}})),diffPreview:e=>M(()=>d({client:w,path:{name:e}})),publish:(e,t,n)=>M(()=>T({client:w,path:{name:e},headers:$(t),body:n})),discard:(e,t)=>M(()=>o({client:w,path:{name:e},headers:$(t)}))};export{ne as a,z as c,ie as i,V as l,ae as n,H as o,re as r,W as s,oe as t};
1
+ import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{J as t,K as n,ot as r,q as i}from"./vendor-lucide-BILL9eZH.js";import{r as a}from"./vendor-markdown-DNTP_967.js";import{$o as o,Qo as s,Ya as c,Zo as l,_s as u,a as d,as as f,cs as p,ds as m,es as h,fs as g,gs as _,hs as v,is as y,ls as b,ms as x,mt as S,ns as C,os as w,ps as T,rs as E,to as D,ts as O,us as k,vs as A,ys as j,yt as M}from"./ToneBadge-CUe-WrzN.js";import{x as N}from"./format-helpers-CiC6gALY.js";var P=e(r(),1),F=a(),I=`min-h-11 w-full rounded-md border border-default bg-surface px-3 py-2 text-label-14 text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-mono-400`,L=`flex min-h-11 w-full items-center justify-between gap-3 rounded px-2 text-left text-label-14 text-primary hover:bg-surface-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-mono-400`,R=e=>e.kind===`project`?`Whole site`:e.label,z={allMarkets:`All markets`,browse:e=>`Browse ${e}`,select:e=>`Select ${e}`,browseAll:`Browse all properties`},ee=e=>e?.kind===`group`&&e.marketKeys?.length===1?e.marketKeys[0]:void 0,B=e=>`${e} ${e===1?`property`:`properties`}`;function V({options:e,selected:r,onSelect:a,marketKey:o,label:s=`Measurement scope`,labelVisibility:c=`visible`,allowGroupSelect:l=!0}){let u=[...e].sort((e,t)=>e.label.localeCompare(t.label,void 0,{numeric:!0})||e.id.localeCompare(t.id)),[d,f]=(0,P.useState)(``),[p,m]=(0,P.useState)([]),[h,g]=(0,P.useState)(!1),_=(0,P.useRef)(null),v=(0,P.useRef)(null),y=(0,P.useId)(),b=u.filter(e=>e.kind===`group`),x=new Map(b.map(e=>[e.id,e])),S=x.get(p.at(-1)??``),C=x.get(p.at(-2)??``),w=d.trim().toLocaleLowerCase(),T=b.filter(e=>!e.parentGroupIds?.some(e=>x.has(e))),E=u.filter(e=>e.kind===`property`),D=e=>(e.parentGroupIds??[]).map(e=>x.get(e)?.label).filter(Boolean).join(` · `),O=e=>`${R(e)} ${D(e)}`.toLocaleLowerCase().includes(w),k=e=>{let t=[...e.parentGroupIds??[]],n=new Set;for(;t.length;){let e=t.pop();if(e===S?.id)return!0;n.has(e)||(n.add(e),t.push(...x.get(e)?.parentGroupIds??[]))}return!1},A=(h?[]:S?b.filter(e=>w?k(e):e.parentGroupIds?.includes(S.id)):w?b:T).filter(O),j=u.find(e=>e.kind===`market`&&e.id===(o??(r.kind===`market`?r.id:void 0))),M=S&&j&&(S.marketKeys?.includes(j.id)||j.parentGroupIds?.includes(S.id))?j.id:void 0,N=l?M??ee(S):void 0,V=(S?E.filter(e=>e.parentGroupIds?.includes(S.id)&&(!N||e.marketKeys?.includes(N))):w||h||b.length===0?E:[]).filter(O),H=u.filter(e=>e.kind!==`market`||h||!l&&!S&&!w&&b.length>0||l&&S?.marketKeys?.length===1&&!w?!1:(S?w?k(e):e.parentGroupIds?.includes(S.id):w||!e.parentGroupIds?.some(e=>x.has(e)))&&O(e)),U=S||h?[]:u.filter(e=>e.kind===`project`&&O(e));(0,P.useEffect)(()=>{let e=e=>{_.current?.open&&e.target instanceof Node&&!_.current.contains(e.target)&&(_.current.open=!1)};return document.addEventListener(`pointerdown`,e),()=>document.removeEventListener(`pointerdown`,e)},[]);let W=e=>{_.current&&(_.current.open=!1,_.current.querySelector(`summary`)?.focus());let t=l?e.kind===`property`?N:e.kind===`group`&&e.id===S?.id?M:void 0:void 0;t?a(e,t):a(e)},G=e=>{let t=[],n=x.get(e.parentGroupIds?.[0]??``);for(;n&&!t.includes(n.id)&&n.id!==e.id;)t.unshift(n.id),n=x.get(n.parentGroupIds?.[0]??``);return[...t,e.id]},K=()=>{let e=r.kind===`group`?x.get(r.id):void 0,t=x.get(j?.parentGroupIds?.[0]??``),n=(r.parentGroupIds??[]).flatMap(e=>{let t=x.get(e);return t?[G(t)]:[]}),i=n.find(e=>e.at(-1)===S?.id)??n.sort((e,t)=>t.length-e.length)[0]??[],a=t?G(t):r.marketKeys?.length?[]:i;m(e?G(e):a),g(r.kind===`property`&&a.length===0&&b.length>0),f(``)},q=e=>{m(G(e)),g(!1),f(``),v.current?.focus()},J=(e,t=R(e))=>(0,F.jsxs)(`div`,{className:`flex items-stretch`,children:[(0,F.jsxs)(`button`,{type:`button`,className:L,"aria-label":e.kind===`group`&&!l?z.browse(R(e)):z.select(R(e)),"aria-current":r.kind===e.kind&&r.id===e.id?`true`:void 0,onClick:()=>e.kind===`group`&&!l?q(e):W(e),children:[(0,F.jsxs)(`span`,{className:`min-w-0 break-words`,children:[t,w&&D(e)?(0,F.jsx)(`span`,{className:`block text-label-13 text-secondary`,children:D(e)}):null]}),(0,F.jsx)(`span`,{className:`shrink-0 text-right text-label-13 text-secondary`,children:e.kind===`market`?l?`Query context`:`Market`:e.kind===`property`?`Property`:B(e.targetCount)})]}),l&&e.kind===`group`&&e.id!==S?.id&&u.some(t=>t.parentGroupIds?.includes(e.id))?(0,F.jsx)(`button`,{type:`button`,"aria-label":z.browse(e.label),title:`Browse ${e.label}`,className:`flex min-h-11 min-w-11 items-center justify-center rounded text-secondary hover:bg-surface-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-mono-400`,onClick:()=>q(e),children:(0,F.jsx)(n,{size:18,"aria-hidden":`true`})}):null]},`${e.kind}:${e.id}`),Y=(e,t)=>t.length>0?(0,F.jsxs)(`section`,{"aria-label":e,className:`mt-2`,children:[(0,F.jsx)(`h3`,{className:`px-2 py-2 text-heading-14 text-secondary`,children:e}),t.map(e=>J(e))]}):null,X=(e,t,n)=>t.length>0?(0,F.jsxs)(`details`,{open:n,className:`mt-2 border-y border-default`,children:[(0,F.jsxs)(`summary`,{className:`min-h-11 cursor-pointer px-2 py-3 text-label-14 text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-mono-400`,children:[e,` (`,t.length,`)`]}),t.map(e=>J(e))]},`${S?.id??`root`}:${e}`):null;return(0,F.jsxs)(`div`,{className:`min-w-0`,children:[(0,F.jsx)(`span`,{id:`${y}-label`,className:c===`sr-only`?`sr-only`:`mb-1 block text-label-14-strong text-heading`,children:s}),(0,F.jsxs)(`details`,{ref:_,className:`relative`,onToggle:e=>{e.target===e.currentTarget&&e.currentTarget.open&&v.current?.focus()},onKeyDown:e=>{e.key===`Escape`&&(e.preventDefault(),e.currentTarget.open=!1,e.currentTarget.querySelector(`summary`)?.focus())},children:[(0,F.jsxs)(`summary`,{id:`${y}-value`,"aria-labelledby":`${y}-label ${y}-value`,className:`${I} visibility-scope-trigger`,onClick:()=>{_.current?.open||K()},children:[`${R(r)}${r.kind===`group`?` · ${B(r.targetCount)}`:r.kind===`property`?` · ${u.find(e=>e.kind===`market`&&e.id===o)?.label??(r.marketKeys?.length?z.allMarkets:`Property`)}`:r.kind===`market`?` · Market`:``}`,(0,F.jsx)(t,{size:16,"aria-hidden":`true`,className:`shrink-0 text-secondary`})]}),(0,F.jsxs)(`div`,{className:`visibility-scope-menu`,children:[S||h?(0,F.jsxs)(`div`,{className:`mb-2 border-b border-default pb-2`,children:[(0,F.jsx)(`button`,{type:`button`,className:L,"aria-label":`Back to ${C?.label??`all groups`}`,onClick:()=>{m(p.slice(0,-1)),g(!1),f(``),v.current?.focus()},children:(0,F.jsxs)(`span`,{className:`flex items-center gap-1`,children:[(0,F.jsx)(i,{size:16,"aria-hidden":`true`}),C?.label??`All groups`]})}),(0,F.jsx)(`p`,{className:`px-2 py-1 text-copy-14-strong text-heading`,"aria-live":`polite`,children:S?.label??`All properties`})]}):null,(0,F.jsx)(`input`,{ref:v,type:`search`,"aria-label":`Search scopes`,className:I,placeholder:S?`Search within this group`:h?`Search properties`:`Search groups or properties`,value:d,onChange:e=>f(e.target.value)}),(0,F.jsxs)(`div`,{className:`mt-2 max-h-80 overflow-y-auto`,children:[l&&S&&!w?J(S,`All properties in this group`):null,U.map(e=>J(e)),S&&!w?X(`Subgroups`,A,!0):Y(S?`Subgroups`:`Groups`,A),w?Y(`Properties`,V):X(S&&A.length>0?`All properties`:`Properties`,V,!S||A.length===0),Y(`Markets`,H),!S&&!h&&!w&&b.length>0&&E.length>0?(0,F.jsxs)(`button`,{type:`button`,className:`${L} mt-2 border-t border-default`,"aria-label":z.browseAll,onClick:()=>{g(!0),v.current?.focus()},children:[(0,F.jsx)(`span`,{children:`All properties`}),(0,F.jsx)(n,{size:18,"aria-hidden":`true`})]}):null,w&&A.length+V.length+H.length+U.length===0?(0,F.jsx)(`p`,{className:`py-3 text-copy-14 text-secondary`,children:`No matching scopes.`}):null]})]})]})]})}function H(e){let t=e[0];return!t||e.every(e=>e.mode===t.mode&&e.scope.kind===t.scope.kind&&e.scope.key===t.scope.key&&e.queryClass===t.queryClass&&e.measurement.displayedRunId===t.measurement.displayedRunId)}function U(e){return e.state===`unavailable`?{numerator:null,denominator:null,reason:e.reason}:e.numerator===void 0||e.denominator===void 0||e.denominator<=0?{numerator:null,denominator:null,reason:`not_applicable`}:{numerator:e.numerator,denominator:e.denominator,...e.unattributed===void 0?{}:{unattributed:e.unattributed},...e.unchecked===void 0?{}:{unchecked:e.unchecked}}}function W(e){return e.kind===`exact`?e.url:e.kind===`prefix`?`https://${e.host}${e.pathPrefix===`/`?``:e.pathPrefix}/*`:`https://${e.host}/*`}function G(e){return e===`assigned`?`this-property`:e===`sibling`?`another-property`:e===`ownedUnmapped`?`owned-unassigned`:e===`external`?`external`:e===`ambiguous`?`multiple-properties`:`invalid-url`}function K(e){return e===`assigned`?`positive`:e===`external`?`neutral`:e===`invalid`?`negative`:`caution`}function q(e){return`target:${e.targetKey}:${e.queryId}:${e.executionNodeKey}`}function J(e,t,n){let r=new Map;if(!t)return r;let i=new Map(e.usageEdges.map(e=>[q(e),e.targetKey])),a=new Map(e.assignments.map(e=>[`${e.targetKey}:${e.queryId}`,e.queryClass])),o=new Map(e.usageEdges.map(e=>[q(e),a.get(`${e.targetKey}:${e.queryId}`)]));for(let e of t.evidence){if(n&&o.get(e.usageEdgeId)!==n)continue;let t=i.get(e.usageEdgeId);if(!t)continue;let a=r.get(t)??[];a.push({id:`${e.observationId}:${e.expectedSlotId}:${e.usageEdgeId}:${e.sourceUrl}`,kind:G(e.classification),query:e.queryText,provider:e.provider,location:e.location,url:e.sourceUrl,tone:K(e.classification),historical:e.historical||e.bridged}),r.set(t,a)}return r}function Y(e){if(e.flags>0)return{label:`Review`,tone:`caution`};let t=[e.mentionCoverage,e.citationCoverage].filter(e=>e.state===`unavailable`).map(e=>e.reason);return t.includes(`no_completed_run`)?{label:`Not measured`,tone:`neutral`}:t.includes(`plan_v1`)?{label:`Update setup`,tone:`caution`}:t.includes(`evidence_incomplete`)?{label:`Evidence incomplete`,tone:`caution`}:t.includes(`identity_ambiguous`)?{label:N.ambiguous,tone:`caution`}:t.includes(`no_population`)?{label:`No queries`,tone:`neutral`}:t.includes(`not_applicable`)?{label:`Not applicable`,tone:`neutral`}:{label:`Complete`,tone:`positive`}}function X(e){return e===`complete`?{label:`Complete`,tone:`positive`}:e===`partial`?{label:`Partial`,tone:`caution`}:e===`queued`?{label:`Queued`,tone:`neutral`}:e===`running`?{label:`Running`,tone:`neutral`}:e===`failed`?{label:`Failed`,tone:`negative`}:{label:`Not measured`,tone:`neutral`}}function te(e){if(!e)return``;let t=new Date(e);return Number.isFinite(t.getTime())?t.toLocaleDateString(`en-US`,{month:`short`,day:`numeric`,year:`numeric`,timeZone:`UTC`}):``}function Z(e){let t=e.nextAction.count??e.flags.total;if(e.nextAction.kind===`review_flags`)return`${t} flagged ${t===1?`result needs`:`results need`} review.`;if(e.nextAction.kind===`complete_setup`)return`Finish setup.`;if(e.nextAction.kind===`republish_setup`)return`Setup update required.`;if(e.nextAction.kind===`run_measurement`)return`Ready to measure.`}function ne({overview:e,activePlan:t,report:n,reportState:r=n?`ready`:`loading`,sort:i}){if(t.plan.schemaVersion!==2||e.mode!==`active-v2`)throw Error(`The current overview requires an active version-two setup.`);if(e.scope.kind!==`all`&&e.scope.kind!==`group`)throw Error(`The current overview requires an All Properties or group scope.`);let a=t.plan,o=new Map(a.targets.map(e=>[e.stableKey,e])),s=new Map(a.querySnapshots.map(e=>[e.queryId,e.queryText])),c=new Map;for(let t of a.assignments){if(e.queryClass!==`all`&&t.queryClass!==e.queryClass)continue;let n=s.get(t.queryId);if(!n)continue;let r=c.get(t.targetKey)??new Set;r.add(n),c.set(t.targetKey,r)}let l=n?.revision===t.revision&&n.run?.id===e.measurement.displayedRunId?n:null,u=e.measurement.displayedRunId===void 0||l?`ready`:r===`error`||n!=null?`error`:`loading`,d=J(a,l,e.queryClass===`all`?void 0:e.queryClass),f=new Map;for(let e of a.groups)for(let t of e.targetKeys)f.has(t)||f.set(t,e.label);let p=e.properties.items.map(e=>{let t=o.get(e.targetKey),n=d.get(e.targetKey)??[];return{id:e.targetKey,name:e.label,mentionCoverage:U(e.mentionCoverage),citationCoverage:U(e.citationCoverage),status:Y(e),providers:e.providers?.map(e=>({provider:e.provider,mentionCoverage:U(e.mentionCoverage),citationCoverage:U(e.citationCoverage)})),market:f.get(e.targetKey),assignedQueries:[...c.get(e.targetKey)??[]],urls:t?.urlMatchers.map(W)??[],evidence:n,evidenceState:u,historical:n.some(e=>e.historical)}}),m=e.namedShareOfVoice?.entries.map(t=>({name:t.label,coverage:{numerator:t.credits,denominator:e.namedShareOfVoice.denominator}})),h=e.properties.items.flatMap(e=>e.flags>0?[{id:`property:${e.targetKey}`,property:e.label,summary:`${e.flags} ${e.flags===1?`result needs`:`results need`} review.`,tone:`caution`,count:e.flags}]:[]);return{classReporting:`available`,latestMeasurement:{status:X(e.measurement.state),completedSlots:e.measurement.completed,totalSlots:e.measurement.expected,date:te(e.measurement.completedAt),includesBridgedHistory:e.measurement.includesHistoricalData===!0},currentView:{scope:e.scope.kind===`group`?{kind:`group`,...e.scope.key?{key:e.scope.key}:{}}:{kind:`all`},queryClass:e.queryClass,aggregate:{metrics:{propertiesMentioned:U(e.metrics.propertiesMentioned),mentionCoverage:U(e.metrics.mentionCoverage),citationCoverage:U(e.metrics.citationCoverage)},properties:p,...m?{shareOfVoice:m}:{}},propertyTotal:e.properties.totalEstimate??p.length,outcomes:e.outcomes,nextCursor:e.properties.nextCursor,...i?{sort:i}:{}},availableGroups:a.groups.map(e=>({id:e.stableKey,label:e.label})),...Z(e)?{nextActionText:Z(e)}:{},flaggedResultsTotal:e.flags.total,flaggedResults:h}}function Q(){return typeof crypto<`u`&&typeof crypto.randomUUID==`function`?crypto.randomUUID():`web-${Date.now()}-${Math.random().toString(36).slice(2)}`}function $(e){return{"If-Match":e,"Idempotency-Key":Q()}}function re(e){return e instanceof d&&(e.statusCode===404||e.statusCode===409||e.statusCode===412)}function ie(e,t){return e instanceof d?t:(e instanceof Error?e.message.trim():``)||t}function ae(e){let t=`Could not calculate assignment impact.`;if(!(e instanceof d)||e.code!==`VALIDATION_ERROR`)return t;let n=e.message.trim();return e.details?.displayToOperator===!0&&n?n:t}var oe={loadSetup:e=>M(()=>D({client:S,path:{name:e}})),loadDraft:e=>M(()=>c({client:S,path:{name:e}})),createDraft:(e,t)=>M(()=>C({client:S,path:{name:e},headers:{"Idempotency-Key":Q()},body:{expectedActiveRevision:t}})),importSitemap:(e,t,n)=>M(()=>w({client:S,path:{name:e},headers:$(t),body:n})),applySitemapSelection:(e,t,n,r)=>M(()=>h({client:S,path:{name:e},headers:$(t),body:{selections:n,selectedTargetKeys:r}})),previewAssignments:(e,t)=>M(()=>p({client:S,path:{name:e},body:t})),applyAssignments:(e,t,n)=>M(()=>l({client:S,path:{name:e},headers:$(t),body:n})),replaceAssignments:(e,t,n)=>M(()=>v({client:S,path:{name:e},headers:$(t),body:n})),applyPairedAssignments:(e,t,n,r)=>M(()=>o({client:S,path:{name:e},headers:$(t),body:{pairs:n,...r?{contextOverride:r}:{}}})),previewMarketRouting:(e,t)=>M(()=>k({client:S,path:{name:e},body:t})),routeMarkets:(e,t,n)=>M(()=>_({client:S,path:{name:e},headers:$(t),body:n})),removeAssignment:(e,t,n,r)=>M(()=>g({client:S,path:{name:e},headers:$(t),body:{targetKeys:n,queryId:r}})),excludeTarget:(e,t,n)=>M(()=>f({client:S,path:{name:e},headers:$(t),body:{targetKey:n,cleanup:`assignments-and-group-memberships`}})),upsertTarget:(e,t,n)=>M(()=>j({client:S,path:{name:e},headers:$(t),body:{target:n}})),upsertGroup:(e,t,n)=>M(()=>A({client:S,path:{name:e},headers:$(t),body:{group:n}})),removeGroup:(e,t,n)=>M(()=>x({client:S,path:{name:e},headers:$(t),body:{groupKey:n}})),upsertCompetitor:(e,t,n)=>M(()=>u({client:S,path:{name:e},headers:$(t),body:n})),removeCompetitor:(e,t,n,r)=>M(()=>T({client:S,path:{name:e},headers:$(t),body:{groupKey:n,competitorKey:r}})),previewGroupMembership:(e,t)=>M(()=>b({client:S,path:{name:e},body:t})),applyGroupMembership:(e,t,n)=>M(()=>s({client:S,path:{name:e},headers:$(t),body:n})),compilePreview:e=>M(()=>O({client:S,path:{name:e}})),diffPreview:e=>M(()=>E({client:S,path:{name:e}})),publish:(e,t,n)=>M(()=>m({client:S,path:{name:e},headers:$(t),body:n})),discard:(e,t)=>M(()=>y({client:S,path:{name:e},headers:$(t)}))};export{ne as a,z as c,ie as i,V as l,ae as n,H as o,re as r,W as s,oe as t};
package/assets/index.html CHANGED
@@ -12,24 +12,24 @@
12
12
  <link rel="icon" type="image/png" sizes="32x32" href="./favicon-32.png" />
13
13
  <link rel="apple-touch-icon" href="./apple-touch-icon.png" />
14
14
  <title>Canonry</title>
15
- <script type="module" crossorigin src="./assets/index-fzqtwr6m.js"></script>
15
+ <script type="module" crossorigin src="./assets/index-Dfm8z5cG.js"></script>
16
16
  <link rel="modulepreload" crossorigin href="./assets/rolldown-runtime-XKyaHtl9.js">
17
17
  <link rel="modulepreload" crossorigin href="./assets/vendor-lucide-BILL9eZH.js">
18
18
  <link rel="modulepreload" crossorigin href="./assets/vendor-markdown-DNTP_967.js">
19
19
  <link rel="modulepreload" crossorigin href="./assets/vendor-radix-C6jOoh_7.js">
20
20
  <link rel="modulepreload" crossorigin href="./assets/vendor-recharts-PsGDYxIT.js">
21
21
  <link rel="modulepreload" crossorigin href="./assets/vendor-tanstack-BoP7BGaH.js">
22
- <link rel="modulepreload" crossorigin href="./assets/ToneBadge-DSJSzqI6.js">
23
- <link rel="modulepreload" crossorigin href="./assets/format-helpers-DKrHlaV7.js">
24
- <link rel="modulepreload" crossorigin href="./assets/account-context-zaSxLBst.js">
22
+ <link rel="modulepreload" crossorigin href="./assets/ToneBadge-CUe-WrzN.js">
23
+ <link rel="modulepreload" crossorigin href="./assets/format-helpers-CiC6gALY.js">
24
+ <link rel="modulepreload" crossorigin href="./assets/account-context-B50QqDEA.js">
25
25
  <link rel="modulepreload" crossorigin href="./assets/async-handler-Bj3TnIRw.js">
26
- <link rel="modulepreload" crossorigin href="./assets/query-client-COM9uzxL.js">
27
- <link rel="modulepreload" crossorigin href="./assets/react-query-BVRWpXWq.js">
26
+ <link rel="modulepreload" crossorigin href="./assets/query-client-C5GhDMY7.js">
27
+ <link rel="modulepreload" crossorigin href="./assets/react-query-CmHyfYFq.js">
28
28
  <link rel="modulepreload" crossorigin href="./assets/ChartPrimitives-CfjGDL5d.js">
29
29
  <link rel="modulepreload" crossorigin href="./assets/InfoTooltip-CJ3IWqBk.js">
30
- <link rel="modulepreload" crossorigin href="./assets/card-COqALGzB.js">
30
+ <link rel="modulepreload" crossorigin href="./assets/card-BE2fqwVq.js">
31
31
  <link rel="modulepreload" crossorigin href="./assets/vendor-yaml-Y43rmNgW.js">
32
- <link rel="stylesheet" crossorigin href="./assets/index-CKZK95pI.css">
32
+ <link rel="stylesheet" crossorigin href="./assets/index-CHHZDc6d.css">
33
33
  </head>
34
34
  <body>
35
35
  <script id="theme-bootstrap">
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-JRVKW4OO.js";
4
- import "./chunk-7JC4Z6FQ.js";
3
+ } from "./chunk-7OAXEMOF.js";
4
+ import "./chunk-3QJWOF2B.js";
5
5
  import {
6
6
  emitJsonl
7
7
  } from "./chunk-Z7IUAJOF.js";
@@ -31,7 +31,7 @@ import {
31
31
  describeError,
32
32
  formatMicros,
33
33
  formatPercent
34
- } from "./chunk-FCGYYZHL.js";
34
+ } from "./chunk-PM2DB3HE.js";
35
35
  import "./chunk-MLKGABMK.js";
36
36
 
37
37
  // src/commands/ads.ts
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  trackCliConnection
3
- } from "./chunk-AAUMUHUI.js";
4
- import "./chunk-JEXBP7CR.js";
5
- import "./chunk-6KPBYCPE.js";
3
+ } from "./chunk-KF7I7FBI.js";
4
+ import "./chunk-PLLDJUG2.js";
5
+ import "./chunk-4GEEYY3N.js";
6
6
  import {
7
7
  createApiClient
8
- } from "./chunk-JRVKW4OO.js";
9
- import "./chunk-7JC4Z6FQ.js";
8
+ } from "./chunk-7OAXEMOF.js";
9
+ import "./chunk-3QJWOF2B.js";
10
10
  import "./chunk-AOJU5LKX.js";
11
11
  import {
12
12
  isMachineFormat
13
13
  } from "./chunk-HGMYEDAQ.js";
14
- import "./chunk-JPOIDGGF.js";
15
- import "./chunk-FCGYYZHL.js";
14
+ import "./chunk-3MGM3U6V.js";
15
+ import "./chunk-PM2DB3HE.js";
16
16
  import "./chunk-MLKGABMK.js";
17
17
 
18
18
  // src/agent-webhook.ts
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-JRVKW4OO.js";
4
- import "./chunk-7JC4Z6FQ.js";
3
+ } from "./chunk-7OAXEMOF.js";
4
+ import "./chunk-3QJWOF2B.js";
5
5
  import "./chunk-AOJU5LKX.js";
6
6
  import {
7
7
  CliError,
@@ -9,7 +9,7 @@ import {
9
9
  isMachineFormat,
10
10
  printCliError
11
11
  } from "./chunk-HGMYEDAQ.js";
12
- import "./chunk-FCGYYZHL.js";
12
+ import "./chunk-PM2DB3HE.js";
13
13
  import "./chunk-MLKGABMK.js";
14
14
 
15
15
  // src/commands/agent-ask.ts
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-JRVKW4OO.js";
4
- import "./chunk-7JC4Z6FQ.js";
3
+ } from "./chunk-7OAXEMOF.js";
4
+ import "./chunk-3QJWOF2B.js";
5
5
  import "./chunk-AOJU5LKX.js";
6
6
  import {
7
7
  CliError,
8
8
  isMachineFormat,
9
9
  printCliError
10
10
  } from "./chunk-HGMYEDAQ.js";
11
- import "./chunk-FCGYYZHL.js";
11
+ import "./chunk-PM2DB3HE.js";
12
12
  import "./chunk-MLKGABMK.js";
13
13
 
14
14
  // src/commands/agent-conversations.ts
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-JRVKW4OO.js";
4
- import "./chunk-7JC4Z6FQ.js";
3
+ } from "./chunk-7OAXEMOF.js";
4
+ import "./chunk-3QJWOF2B.js";
5
5
  import {
6
6
  emitJsonl
7
7
  } from "./chunk-Z7IUAJOF.js";
@@ -11,7 +11,7 @@ import {
11
11
  isMachineFormat,
12
12
  printCliError
13
13
  } from "./chunk-HGMYEDAQ.js";
14
- import "./chunk-FCGYYZHL.js";
14
+ import "./chunk-PM2DB3HE.js";
15
15
  import "./chunk-MLKGABMK.js";
16
16
 
17
17
  // src/commands/agent-memory.ts
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-JRVKW4OO.js";
4
- import "./chunk-7JC4Z6FQ.js";
3
+ } from "./chunk-7OAXEMOF.js";
4
+ import "./chunk-3QJWOF2B.js";
5
5
  import {
6
6
  emitJsonl
7
7
  } from "./chunk-Z7IUAJOF.js";
@@ -10,7 +10,7 @@ import {
10
10
  CliError,
11
11
  printCliError
12
12
  } from "./chunk-HGMYEDAQ.js";
13
- import "./chunk-FCGYYZHL.js";
13
+ import "./chunk-PM2DB3HE.js";
14
14
  import "./chunk-MLKGABMK.js";
15
15
 
16
16
  // src/commands/agent-providers.ts
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-JRVKW4OO.js";
4
- import "./chunk-7JC4Z6FQ.js";
3
+ } from "./chunk-7OAXEMOF.js";
4
+ import "./chunk-3QJWOF2B.js";
5
5
  import "./chunk-AOJU5LKX.js";
6
6
  import {
7
7
  CliError,
8
8
  isMachineFormat,
9
9
  printCliError
10
10
  } from "./chunk-HGMYEDAQ.js";
11
- import "./chunk-FCGYYZHL.js";
11
+ import "./chunk-PM2DB3HE.js";
12
12
  import "./chunk-MLKGABMK.js";
13
13
 
14
14
  // src/commands/agent-transcript.ts
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-JRVKW4OO.js";
4
- import "./chunk-7JC4Z6FQ.js";
3
+ } from "./chunk-7OAXEMOF.js";
4
+ import "./chunk-3QJWOF2B.js";
5
5
  import "./chunk-AOJU5LKX.js";
6
6
  import {
7
7
  CliError,
@@ -13,7 +13,7 @@ import {
13
13
  formatPercent,
14
14
  formatSignedPointDelta,
15
15
  queryClassFilterSchema
16
- } from "./chunk-FCGYYZHL.js";
16
+ } from "./chunk-PM2DB3HE.js";
17
17
  import "./chunk-MLKGABMK.js";
18
18
 
19
19
  // src/commands/analytics.ts
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-JRVKW4OO.js";
4
- import "./chunk-7JC4Z6FQ.js";
3
+ } from "./chunk-7OAXEMOF.js";
4
+ import "./chunk-3QJWOF2B.js";
5
5
  import "./chunk-AOJU5LKX.js";
6
6
  import {
7
7
  CliError,
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk-HGMYEDAQ.js";
11
11
  import {
12
12
  describeError
13
- } from "./chunk-FCGYYZHL.js";
13
+ } from "./chunk-PM2DB3HE.js";
14
14
  import "./chunk-MLKGABMK.js";
15
15
 
16
16
  // src/commands/apply.ts
@@ -10,19 +10,19 @@ import {
10
10
  backfillSnapshotAttributionCommand,
11
11
  backfillTrafficClassificationCommand,
12
12
  replayQueryAuditLog
13
- } from "./chunk-EM2HAM2U.js";
14
- import "./chunk-C3UFOS7J.js";
15
- import "./chunk-7JC4Z6FQ.js";
13
+ } from "./chunk-7HE4LAJY.js";
14
+ import "./chunk-5NBXPO4G.js";
15
+ import "./chunk-3QJWOF2B.js";
16
16
  import "./chunk-HGMYEDAQ.js";
17
- import "./chunk-XYYWKCJQ.js";
17
+ import "./chunk-JERATA5R.js";
18
18
  import {
19
19
  backfillProjectAnswerMentions,
20
20
  backfillProjectAnswerMentionsInChunks
21
- } from "./chunk-GDKMVOZI.js";
22
- import "./chunk-TESDUMVK.js";
23
- import "./chunk-JPOIDGGF.js";
24
- import "./chunk-D5XPB7MM.js";
25
- import "./chunk-FCGYYZHL.js";
21
+ } from "./chunk-PRCBHOVR.js";
22
+ import "./chunk-O4WBYEGV.js";
23
+ import "./chunk-3MGM3U6V.js";
24
+ import "./chunk-PH4AESRE.js";
25
+ import "./chunk-PM2DB3HE.js";
26
26
  import "./chunk-MLKGABMK.js";
27
27
  export {
28
28
  activeQueriesAt,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-JRVKW4OO.js";
4
- import "./chunk-7JC4Z6FQ.js";
3
+ } from "./chunk-7OAXEMOF.js";
4
+ import "./chunk-3QJWOF2B.js";
5
5
  import {
6
6
  emitJsonl
7
7
  } from "./chunk-Z7IUAJOF.js";
@@ -17,7 +17,7 @@ import {
17
17
  backlinkSourceSchema,
18
18
  formatPercent,
19
19
  formatRunErrorOneLine
20
- } from "./chunk-FCGYYZHL.js";
20
+ } from "./chunk-PM2DB3HE.js";
21
21
  import "./chunk-MLKGABMK.js";
22
22
 
23
23
  // src/commands/backlinks.ts
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-JRVKW4OO.js";
4
- import "./chunk-7JC4Z6FQ.js";
3
+ } from "./chunk-7OAXEMOF.js";
4
+ import "./chunk-3QJWOF2B.js";
5
5
  import {
6
6
  emitJsonl
7
7
  } from "./chunk-Z7IUAJOF.js";
@@ -13,7 +13,7 @@ import {
13
13
  import {
14
14
  describeError,
15
15
  formatPercent
16
- } from "./chunk-FCGYYZHL.js";
16
+ } from "./chunk-PM2DB3HE.js";
17
17
  import "./chunk-MLKGABMK.js";
18
18
 
19
19
  // src/commands/bing.ts
@@ -1,25 +1,25 @@
1
1
  import {
2
2
  trackCliConnection
3
- } from "./chunk-AAUMUHUI.js";
3
+ } from "./chunk-KF7I7FBI.js";
4
4
  import {
5
5
  answerServiceDescriptors
6
- } from "./chunk-ZXYCPRNY.js";
6
+ } from "./chunk-WSWHLKKJ.js";
7
7
  import {
8
8
  outcomeFailure
9
- } from "./chunk-JEXBP7CR.js";
9
+ } from "./chunk-PLLDJUG2.js";
10
10
  import {
11
11
  isLoopbackBindHost
12
12
  } from "./chunk-TSENU4GG.js";
13
13
  import {
14
14
  registeredProviderNames
15
- } from "./chunk-2WBT6TEJ.js";
15
+ } from "./chunk-FCYGY4FT.js";
16
16
  import {
17
17
  isTelemetryEnabled,
18
18
  recordInstallRef
19
- } from "./chunk-6KPBYCPE.js";
19
+ } from "./chunk-4GEEYY3N.js";
20
20
  import {
21
21
  createApiClient
22
- } from "./chunk-JRVKW4OO.js";
22
+ } from "./chunk-7OAXEMOF.js";
23
23
  import {
24
24
  configExists,
25
25
  getAnswerServiceEnv,
@@ -30,7 +30,7 @@ import {
30
30
  loadConfigRaw,
31
31
  saveConfig,
32
32
  withBootstrapProviderDefaults
33
- } from "./chunk-7JC4Z6FQ.js";
33
+ } from "./chunk-3QJWOF2B.js";
34
34
  import "./chunk-AOJU5LKX.js";
35
35
  import {
36
36
  CliError,
@@ -38,17 +38,17 @@ import {
38
38
  isMachineFormat,
39
39
  systemError
40
40
  } from "./chunk-HGMYEDAQ.js";
41
- import "./chunk-JPOIDGGF.js";
41
+ import "./chunk-3MGM3U6V.js";
42
42
  import {
43
43
  apiKeys,
44
44
  createClient,
45
45
  dashboardSessions,
46
46
  migrate
47
- } from "./chunk-D5XPB7MM.js";
47
+ } from "./chunk-PH4AESRE.js";
48
48
  import {
49
49
  ProviderNames,
50
50
  ProviderReloadErrorReasons
51
- } from "./chunk-FCGYYZHL.js";
51
+ } from "./chunk-PM2DB3HE.js";
52
52
  import "./chunk-MLKGABMK.js";
53
53
 
54
54
  // src/commands/bootstrap.ts
@@ -1,26 +1,26 @@
1
1
  import {
2
2
  trackCliConnection
3
- } from "./chunk-AAUMUHUI.js";
3
+ } from "./chunk-KF7I7FBI.js";
4
4
  import {
5
5
  outcomeFailure
6
- } from "./chunk-JEXBP7CR.js";
7
- import "./chunk-6KPBYCPE.js";
6
+ } from "./chunk-PLLDJUG2.js";
7
+ import "./chunk-4GEEYY3N.js";
8
8
  import {
9
9
  createApiClient
10
- } from "./chunk-JRVKW4OO.js";
10
+ } from "./chunk-7OAXEMOF.js";
11
11
  import {
12
12
  loadConfig,
13
13
  saveConfigPatch
14
- } from "./chunk-7JC4Z6FQ.js";
14
+ } from "./chunk-3QJWOF2B.js";
15
15
  import "./chunk-AOJU5LKX.js";
16
16
  import {
17
17
  CliError,
18
18
  isMachineFormat
19
19
  } from "./chunk-HGMYEDAQ.js";
20
- import "./chunk-JPOIDGGF.js";
20
+ import "./chunk-3MGM3U6V.js";
21
21
  import {
22
22
  describeError
23
- } from "./chunk-FCGYYZHL.js";
23
+ } from "./chunk-PM2DB3HE.js";
24
24
  import "./chunk-MLKGABMK.js";
25
25
 
26
26
  // src/commands/cdp.ts
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-JRVKW4OO.js";
3
+ } from "./chunk-7OAXEMOF.js";
4
4
  import {
5
5
  emitJsonl
6
6
  } from "./chunk-Z7IUAJOF.js";
7
7
  import {
8
8
  measurementDraftOperationSchema,
9
9
  runMeasurementDraftAction
10
- } from "./chunk-5QR7D4RQ.js";
10
+ } from "./chunk-7HB6QLX4.js";
11
11
  import {
12
12
  isMachineFormat,
13
13
  systemError
@@ -37,7 +37,7 @@ import {
37
37
  unattributedAnswersLabel,
38
38
  uncheckedSourcesLabel,
39
39
  visibilityReportRequestSchema
40
- } from "./chunk-FCGYYZHL.js";
40
+ } from "./chunk-PM2DB3HE.js";
41
41
 
42
42
  // src/commands/measurement-plan.ts
43
43
  import crypto from "crypto";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  USAGE_TELEMETRY_HEADERS,
3
3
  redactLogString
4
- } from "./chunk-FCGYYZHL.js";
4
+ } from "./chunk-PM2DB3HE.js";
5
5
 
6
6
  // ../api-routes/src/request-context.ts
7
7
  import { AsyncLocalStorage } from "async_hooks";