// Generated by orrery. Edit the diagram spec and re-render instead of editing this file.
import { type SVGProps, useId } from "react";

export default function EventDrivenDocumentProcessingOnGoogleCloud(props: SVGProps<SVGSVGElement>) {
  const uid = useId().replace(/[^A-Za-z0-9_-]/g, "");
  return (
    <svg xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" width="847" height="1313" viewBox="0 0 847 1313" role="img" aria-labelledby={`${uid}-sdw-title ${uid}-sdw-desc`} fontFamily="Inter, 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif" {...props}>
      <title id={`${uid}-sdw-title`}>
        Event-driven document processing on Google Cloud
      </title>
      <desc id={`${uid}-sdw-desc`}>
        Event-driven document processing on Google Cloud. 10 components in 2 groups. Connections: Customers to Cloud Run (HTTPS); Cloud Run to Cloud Storage (write object); Cloud Storage to Eventarc; Eventarc to Cloud Run; Cloud Run to Document AI (process document); Cloud Run to Firestore (save fields); Cloud Run to Pub/Sub (publish); Cloud Run functions to Eventarc; Eventarc to Pub/Sub.
      </desc>
      <defs>
        <symbol id={`${uid}-s1`} viewBox="0 0 24 24" overflow="visible">
          <path fill="none" stroke="#000000" strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" d="M5 7a4 4 0 1 0 8 0a4 4 0 1 0-8 0M3 21v-2a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v2m1-17.87a4 4 0 0 1 0 7.75M21 21v-2a4 4 0 0 0-3-3.85" />
        </symbol>
        <symbol id={`${uid}-s2`} viewBox="0 0 512 512" overflow="visible">
          <rect width="512" height="512" fill="none" />
          <path fill="#fbbc04" d="M144.4 272c-6.4 0-12.4-3.8-14.9-10.1l-74.1-186c-3.3-8.2.7-17.5 8.9-20.8s17.5.7 20.8 8.9l74.2 186c3.3 8.2-.7 17.5-8.9 20.8-1.9.8-3.9 1.1-5.9 1.1h-.1Z" />
          <path fill="#ea4335" d="M256 272c-6.4 0-12.4-3.8-14.9-10.1L167 75.9c-2.6-6.6-.6-14.1 5-18.5s13.4-4.5 19.2-.4l260.1 186c7.2 5.1 8.9 15.1 3.7 22.3s-15.1 8.9-22.3 3.7L216.9 114.7l54 135.3c3.3 8.2-.7 17.5-8.9 20.8-1.9.8-4 1.1-5.9 1.1h-.1Z" />
          <path fill="#34a853" d="m127.2 256-72 180c-3.3 8.2.7 17.5 8.9 20.8 3.1 1.2 4 1.1 5.9 1.1 6.3 0 12.4-3.8 14.9-10.1l74.4-186c.8-2 1.1-4 1.1-5.9h-33.2Z" />
          <path fill="#4285f4" d="M414.5 256 216.8 397.2l54.1-135.3c.8-2 1.1-4 1.1-5.9h-33.2l-72 180c-2.6 6.6-.6 14.1 5 18.5 2.9 2.3 6.4 3.4 9.9 3.4s6.5-1 9.3-3l260.4-186c4.4-3.1 6.7-8 6.7-13h-43.6Z" />
        </symbol>
        <symbol id={`${uid}-s3`} viewBox="0 0 512 512" overflow="visible">
          <rect width="512" height="512" fill="none" />
          <path fill="#34a853" d="M442 277.9H70c-8.8 0-16 7.2-16 16V442c0 8.8 7.2 16 16 16h107.2c1.5.5 3.1.7 4.8.7s3.3-.3 4.8-.7H442c8.8 0 16-7.2 16-16V293.9c0-8.8-7.2-16-16-16m-356 32h80V426H86zm340 116H198V309.8h228z" />
          <path fill="#fbbc04" d="M442 54H70c-8.8 0-16 7.2-16 16v148.8c0 8.8 7.2 16 16 16h372c8.8 0 16-7.2 16-16V70c0-8.8-7.2-16-16-16M86 86h80v116.8H86zm340 116.8H198V86h228z" />
          <path fill="#ea4335" d="M442 234.8h-16V86H54V70c0-8.8 7.2-16 16-16h372c8.8 0 16 7.2 16 16v148.8c0 8.8-7.2 16-16 16" />
          <path fill="#4285f4" d="M442 457.9h-16V309.8H54v-16c0-8.8 7.2-16 16-16h372c8.8 0 16 7.2 16 16v148.1c0 8.8-7.2 16-16 16" />
          <circle cx="349" cy="144.4" r="37" fill="#ea4335" />
          <circle cx="349" cy="367.9" r="37" fill="#4285f4" />
        </symbol>
        <symbol id={`${uid}-s4`} viewBox="0 0 512 512" overflow="visible">
          <rect width="512" height="512" fill="none" />
          <path fill="#4285f4" d="m346.683 112.611-.039-75.171c-.005-8.834-7.167-15.992-16-15.992h-.008c-8.837.004-15.997 7.172-15.992 16.008l.039 75.155H118c-17.673 0-32 14.327-32 32v111.865c0 89.085 76.262 161.562 170 161.562s170-72.477 170-161.562V144.611c0-17.673-14.327-32-32-32zM394 256.477c0 71.44-61.906 129.562-138 129.562s-138-58.121-138-129.562V144.612h276z" />
          <path fill="#9aa0a6" d="M314.644 144.611v-32H197.35l-.039-75.171c-.005-8.834-7.167-15.992-16-15.992h-.008c-8.837.004-15.997 7.172-15.992 16.008l.039 75.155H118c-17.673 0-32 14.327-32 32v111.865c0 83.959 67.741 153.155 154.007 160.841v56.679c0 8.616 6.621 16.029 15.228 16.433 9.188.432 16.772-6.889 16.772-15.982V385.17c-6.594.627-8.014.652-16 .867H256c-76.094 0-138-58.121-138-129.562V144.61z" />
        </symbol>
        <symbol id={`${uid}-s5`} viewBox="0 0 512 512" overflow="visible">
          <rect width="512" height="512" fill="none" />
          <path fill="#4285f4" d="M377.2 216.1c-4.1 0-8.2-1.6-11.3-4.7l-65.3-65.3c-3-3-4.7-7.1-4.7-11.3s1.7-8.3 4.7-11.3l65.3-65.3c3-3 7.1-4.7 11.3-4.7s8.3 1.7 11.3 4.7l65.3 65.3c6.2 6.2 6.2 16.4 0 22.6l-65.3 65.3c-3.1 3.1-7.2 4.7-11.3 4.7m-42.6-81.3 42.6 42.6 42.6-42.6-42.6-42.7z" />
          <path fill="#9aa0a6" d="M300.7 146.1c-6.2-6.2-6.2-16.4 0-22.6L366 58.2c6.2-6.2 16.4-6.2 22.6 0l53.9 54-22.6 22.6-42.6-42.7-65.3 65.3s-8.1-8.2-11.3-11.4Z" />
          <path fill="#4285f4" d="M228 458.5c-6.5 0-12.4-4-14.8-10-.2-.5-20.8-51-59.8-89.9-39.1-38.9-89.3-59.3-89.8-59.5-6.1-2.4-10-8.3-10-14.9 0-6.5 4-12.4 10-14.8.5-.2 50.5-20.6 89.8-59.7 39.2-39.1 59.6-89.6 59.8-90.1 2.4-6.1 8.3-10.1 14.9-10.1s12.5 4 14.9 10.1c.2.5 20.6 51 59.8 90.1 39.3 39.1 89.3 59.5 89.8 59.7 6.1 2.4 10 8.3 10 14.9s-4 12.4-10 14.9c-.5.2-50.9 20.8-89.8 59.5s-59.6 89.4-59.9 89.9c-2.4 6-8.3 10-14.8 10ZM105.8 284.2c19.9 11 46.5 28.3 70.1 51.7 23.7 23.5 41 50.3 52.1 70.4 11.1-20 28.5-46.9 52.1-70.4 23.5-23.4 50.2-40.6 70.1-51.7-19.9-11-46.5-28.3-70.1-51.8-23.7-23.6-41-50.4-52.1-70.4-11.1 20.1-28.4 46.8-52.1 70.4s-50.2 40.8-70.1 51.8" />
          <path fill="#9aa0a6" d="M392.5 269.3c-.5-.2-50.5-20.6-89.8-59.7l-.1-.1-22.6 22.6.2.2c23.7 23.6 50.2 40.8 70.1 51.8-20 11.1-46.6 28.3-70.1 51.7-23.6 23.5-41 50.3-52.1 70.4-11.1-20-28.4-46.7-52-70.2l-22.6 22.6c38.9 38.8 59.5 89.3 59.7 89.8 2.4 6.1 8.3 10 14.8 10s12.4-4 14.8-10c.2-.5 21-51.2 59.9-89.9s89.3-59.3 89.8-59.5c6.1-2.4 10-8.3 10-14.9s-4-12.4-10-14.9Z" />
        </symbol>
        <symbol id={`${uid}-s6`} viewBox="0 0 512 512" overflow="visible">
          <rect width="512" height="512" fill="none" />
          <path fill="#4285f4" d="M256 490c-44.2 0-85.9-11.3-117.6-31.8-33.8-21.9-52.4-51.7-52.4-84V256h32v118.2c0 21 13.4 41.3 37.8 57.1C182.3 448.5 217.9 458 256 458s73.7-9.5 100.2-26.7c24.4-15.8 37.8-36.1 37.8-57.1h32c0 32.3-18.6 62.1-52.4 84C342 478.7 300.2 490 256 490" />
          <path fill="#9aa0a6" d="M256 381c-44.2 0-85.9-11.3-117.6-31.8-33.8-21.9-52.4-51.7-52.4-84V137.9h32v127.3c0 21 13.4 41.3 37.8 57.1C182.3 339.5 217.9 349 256 349s73.7-9.5 100.2-26.7c24.4-15.8 37.8-36.1 37.8-57.1h32c0 32.3-18.6 62.1-52.4 84C342 369.7 300.2 381 256 381" />
          <path fill="#9aa0a6" d="M256 490v-32c38.1 0 73.7-9.5 100.2-26.7 24.4-15.8 37.8-36.1 37.8-57.2V256h32v118.1c0 32.3-18.6 62.1-52.4 84.1C342 478.7 300.2 490 256 490" />
          <path fill="#4285f4" d="M256 381v-32c38.1 0 73.7-9.5 100.2-26.7 24.4-15.8 37.8-36.1 37.8-57.2V137.9h32v127.2c0 32.3-18.6 62.1-52.4 84.1C342 369.7 300.2 381 256 381" />
          <path fill="#4285f4" d="M256 253.6c-44.2 0-85.9-11.3-117.6-31.8-33.8-21.9-52.4-51.7-52.4-84s18.6-62.1 52.4-84C170 33.3 211.8 22 256 22s86 11.3 117.6 31.8c33.8 21.9 52.4 51.7 52.4 84s-18.6 62.1-52.4 84c-31.6 20.5-73.4 31.8-117.6 31.8M256 54c-38.1 0-73.7 9.5-100.2 26.7-24.4 15.8-37.8 36.1-37.8 57.1s13.4 41.3 37.8 57.1c26.5 17.2 62.1 26.7 100.2 26.7s73.7-9.5 100.2-26.7c24.4-15.8 37.8-36.1 37.8-57.1s-13.4-41.3-37.8-57.1C329.7 63.5 294.1 54 256 54" />
          <path fill="#9aa0a6" d="M256 253.8v-32c38.1 0 73.7-9.5 100.2-26.7 24.4-15.8 37.8-36.2 37.8-57.2s-13.4-41.4-37.8-57.2C329.7 63.5 294.1 54 256 54V22c44.2 0 86 11.3 117.6 31.8 33.8 21.9 52.4 51.8 52.4 84.1S407.4 200 373.6 222c-31.6 20.5-73.4 31.8-117.6 31.8" />
        </symbol>
        <symbol id={`${uid}-s7`} viewBox="0 0 512 512" overflow="visible">
          <rect width="512" height="512" fill="none" />
          <path fill="#9aa0a6" d="M155.24 255.523c-11.135 0-21.995 1.79-32.254 5.226l-38.85-74.169c-4.096-7.817-13.754-10.834-21.568-6.741-7.817 4.095-10.835 13.752-6.741 21.568l38.865 74.199a103 103 0 0 0-11.037 9.569c-19.122 19.12-29.652 44.544-29.652 71.585s10.531 52.464 29.652 71.585c19.12 19.121 44.543 29.652 71.585 29.652s52.465-10.531 71.585-29.652c39.466-39.473 39.469-103.7 0-143.17-19.12-19.121-44.544-29.652-71.585-29.652m48.989 150.226c-13.086 13.086-30.484 20.292-48.989 20.292s-35.903-7.206-48.989-20.292-20.292-30.484-20.292-48.989 7.206-35.903 20.292-48.989c5-5 10.633-9.133 16.713-12.342l.119-.058.025-.015c9.796-5.141 20.752-7.877 32.132-7.877 18.506 0 35.903 7.207 48.989 20.292s20.292 30.483 20.292 48.989-7.207 35.903-20.292 48.989m251.943-95.156-38.865-74.198a103 103 0 0 0 11.038-9.57c19.122-19.12 29.652-44.544 29.652-71.585s-10.53-52.464-29.652-71.585c-19.12-19.12-44.545-29.652-71.585-29.652s-52.464 10.531-71.585 29.652c-39.472 39.472-39.472 103.698 0 143.17 19.12 19.121 44.544 29.652 71.585 29.652 11.136 0 21.995-1.79 32.255-5.226l38.85 74.169c2.854 5.45 8.413 8.567 14.167 8.567 2.499 0 5.034-.587 7.4-1.828 7.818-4.094 10.835-13.751 6.74-21.567ZM307.771 204.229c-13.084-13.086-20.292-30.483-20.292-48.989s7.207-35.903 20.292-48.989 30.484-20.292 48.989-20.292 35.903 7.206 48.989 20.292 20.292 30.484 20.292 48.989-7.206 35.903-20.292 48.989a69.5 69.5 0 0 1-16.825 12.399l-.006.003-.003.002c-9.802 5.149-20.766 7.888-32.154 7.888-18.506 0-35.903-7.207-48.989-20.292z" />
          <path fill="#4285f4" d="M356.76 54.003c-27.041 0-52.465 10.531-71.585 29.652-19.121 19.12-29.652 44.544-29.652 71.585 0 21.638 6.749 42.235 19.24 59.401l-83.135 83.135c5.337 3.522 6.499 4.277 12.601 9.995 27.879 26.118 27.012 70.965 0 97.978-13.086 13.086-30.484 20.292-48.989 20.292s-35.903-7.206-48.989-20.292l-22.596 22.596c19.12 19.121 44.544 29.652 71.585 29.652s52.465-10.531 71.585-29.652c19.121-19.12 29.652-44.544 29.652-71.585 0-21.638-6.749-42.235-19.24-59.401l83.134-83.134c-3.873-2.619-6.619-4.107-12.6-9.996-27.222-26.801-27.012-70.965 0-97.978 13.086-13.086 30.484-20.292 48.989-20.292s35.903 7.206 48.989 20.292l22.596-22.596c-19.12-19.121-44.544-29.652-71.585-29.652" />
        </symbol>
        <symbol id={`${uid}-s8`} viewBox="0 0 512 512" overflow="visible">
          <rect width="512" height="512" fill="none" data-name="standard_product_icon" />
          <path fill="#9aa0a6" d="M131.231 231.327c-8.624 0-15.615-6.991-15.615-15.615 0-77.664 63.184-140.848 140.848-140.848 50.121 0 96.865 26.977 121.989 70.403 4.319 7.465 1.769 17.017-5.696 21.336-7.463 4.318-17.018 1.769-21.336-5.696-19.561-33.809-55.947-54.812-94.958-54.812-60.443 0-109.617 49.175-109.617 109.617 0 8.624-6.991 15.615-15.615 15.615M367.043 396.54H99.846c-8.624 0-15.615-6.991-15.615-15.615s6.991-15.615 15.615-15.615h267.197c33.485 0 60.726-27.241 60.726-60.726 0-15.521-5.882-30.304-16.561-41.628-5.918-6.273-5.628-16.157.646-22.074 6.273-5.918 16.158-5.628 22.074.646C450.096 258.67 459 281.064 459 304.583c0 50.705-41.252 91.957-91.957 91.957" />
          <path fill="#4285f4" d="M287.229 177.923c-8.624 0-15.615-6.991-15.615-15.615s6.991-15.615 15.615-15.615h78.077V68.616c0-8.624 6.991-15.615 15.615-15.615s15.615 6.991 15.615 15.615v93.691c0 8.624-6.991 15.615-15.615 15.615zM162.306 459a15.56 15.56 0 0 1-11.042-4.574l-62.46-62.462c-6.099-6.098-6.098-15.985 0-22.083l62.462-62.462c6.098-6.098 15.985-6.098 22.083 0 6.099 6.098 6.099 15.985 0 22.083l-51.42 51.42 51.418 51.42c6.099 6.098 6.098 15.985 0 22.083a15.57 15.57 0 0 1-11.042 4.574h.001Zm271.622-217.473c-5.918-6.276-15.801-6.563-22.074-.644s-6.562 15.8-.644 22.073c10.678 11.321 16.559 26.104 16.559 41.627 0 33.485-27.24 60.726-60.723 60.726l-32.967-.002-.004 31.231 32.971.002c50.703 0 91.954-41.251 91.954-91.957 0-23.522-8.904-45.917-25.072-63.056m-286.075-40.688s-18.025-2.405-31.741 3.013c-.062.024-.114.049-.173.073a88.8 88.8 0 0 0-41.048 26.514A88.6 88.6 0 0 0 53 288.763v14.034c0 8.625 6.991 15.615 15.615 15.615s15.615-6.991 15.615-15.615v-14.034c0-28.386 21.158-52.826 49.218-56.851 8.044-1.154 13.767-8.247 13.376-16.205l.022.003s.248-10.096 1.007-14.873z" />
        </symbol>
      </defs>
      <rect width="847" height="1313" fill="#ffffff" />
      <text fontSize="20" fontWeight="600" fill="#000000">
        <tspan x="28" y="43.78">
          Event-driven document processing on Google Cloud
        </tspan>
      </text>
      <text fontSize="13" fill="#5f6b7a">
        <tspan x="28" y="66.18">
          Eventarc routes an upload to Cloud Run for Document AI and Firestore, then a Pub/Sub event to the notifier
        </tspan>
      </text>
      <g id={`${uid}-g-gcloud`}>
        <rect x="28" y="313" width="791" height="907" rx="6" fill="#1a73e8" stroke="#1f2124" strokeWidth="2" />
        <rect x="36" y="351" width="775" height="861" rx="4" fill="#ffffff" />
      </g>
      <g id={`${uid}-g-project`}>
        <rect x="48" y="365" width="751" height="835" rx="6" fill="#f1f3f4" stroke="#1f2124" strokeWidth="2" />
      </g>
      <g id={`${uid}-e-e1`}>
        <path d="M454 154 L454 416.25" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" />
        <path d="M449.5 408 L454 417 L458.5 408" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
      </g>
      <g id={`${uid}-e-e2`}>
        <path d="M454 475 L454 623.25" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" />
        <path d="M449.5 615 L454 624 L458.5 615" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
      </g>
      <g id={`${uid}-e-e3`}>
        <path d="M454 682 L454 745.25" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" strokeDasharray="6 4" />
        <path d="M449.5 737 L454 746 L458.5 737" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
      </g>
      <g id={`${uid}-e-e4`}>
        <path d="M454 804 L454 872.25" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" strokeDasharray="6 4" />
        <path d="M449.5 864 L454 873 L458.5 864" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
      </g>
      <g id={`${uid}-e-e5`}>
        <path d="M374 902 L228.75 902" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" />
        <path d="M237 897.5 L228 902 L237 906.5" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
      </g>
      <g id={`${uid}-e-e6`}>
        <path d="M422.25 931 L422.25 1121.25" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" />
        <path d="M417.75 1113 L422.25 1122 L426.75 1113" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
      </g>
      <g id={`${uid}-e-e7`}>
        <path d="M480 931 L480 1070 Q480 1078 488 1078 L590 1078 Q598 1078 598 1086 L598 1121.25" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" />
        <path d="M593.5 1113 L598 1122 L602.5 1113" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
      </g>
      <g id={`${uid}-e-e8`}>
        <path d="M676 931.75 L676 1000" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" strokeDasharray="6 4" />
        <path d="M680.5 940 L676 931 L671.5 940" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
      </g>
      <g id={`${uid}-e-e9`}>
        <path d="M676 1058.75 L676 1122" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" strokeDasharray="6 4" />
        <path d="M680.5 1067 L676 1058 L671.5 1067" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
      </g>
      <g id={`${uid}-el-e1`}>
        <rect x="459" y="218" width="51" height="21" rx="4" fill="#ffffff" fillOpacity="0.92" />
        <text fontSize="11.5" fill="#000000" textAnchor="middle">
          <tspan x="484.5" y="232.68">
            HTTPS
          </tspan>
        </text>
      </g>
      <g id={`${uid}-el-e2`}>
        <rect x="459" y="539" width="76" height="21" rx="4" fill="#ffffff" fillOpacity="0.92" />
        <text fontSize="11.5" fill="#000000" textAnchor="middle">
          <tspan x="497" y="553.68">
            write object
          </tspan>
        </text>
      </g>
      <g id={`${uid}-el-e5`}>
        <rect x="244" y="878" width="114" height="21" rx="4" fill="#ffffff" fillOpacity="0.92" />
        <text fontSize="11.5" fill="#000000" textAnchor="middle">
          <tspan x="301" y="892.68">
            process document
          </tspan>
        </text>
      </g>
      <g id={`${uid}-el-e6`}>
        <rect x="345.25" y="1016" width="71" height="21" rx="4" fill="#ffffff" fillOpacity="0.92" />
        <text fontSize="11.5" fill="#000000" textAnchor="middle">
          <tspan x="380.75" y="1030.68">
            save fields
          </tspan>
        </text>
      </g>
      <g id={`${uid}-el-e7`}>
        <rect x="485" y="1018.5" width="52" height="21" rx="4" fill="#ffffff" fillOpacity="0.92" />
        <text fontSize="11.5" fill="#000000" textAnchor="middle">
          <tspan x="511" y="1033.18">
            publish
          </tspan>
        </text>
      </g>
      <g id={`${uid}-gh-gcloud`}>
        <rect x="36" y="322" width="93.03" height="18.9" rx="3" fill="#1a73e8" />
        <text fontSize="13" fontWeight="600" fill="#ffffff">
          <tspan x="40" y="336.18">
            Google Cloud
          </tspan>
        </text>
      </g>
      <g id={`${uid}-gh-project`}>
        <rect x="56" y="374" width="122.08" height="18.9" rx="3" fill="#f1f3f4" />
        <text fontSize="13" fontWeight="600" fill="#202124">
          <tspan x="60" y="388.18">
            Project docs-prod
          </tspan>
        </text>
      </g>
      <g id={`${uid}-n-users`}>
        <rect x="356" y="96" width="196" height="58" rx="8" fill="#ffffff" stroke="#c6ccd4" strokeWidth="1" />
        <use href={`#${uid}-s1`} x="372" y="109" width="32" height="32" />
        <text fontSize="13" fontWeight="600" fill="#000000">
          <tspan x="416" y="121.23">
            Customers
          </tspan>
        </text>
        <text fontSize="11.5" fill="#5f6b7a">
          <tspan x="416" y="138.63">
            Web and mobile apps
          </tspan>
        </text>
      </g>
      <g id={`${uid}-n-upload`}>
        <rect x="375" y="417" width="158" height="58" rx="8" fill="#ffffff" stroke="#c6ccd4" strokeWidth="1" />
        <use href={`#${uid}-s2`} x="391" y="430" width="32" height="32" />
        <text fontSize="13" fontWeight="600" fill="#000000">
          <tspan x="435" y="442.23">
            Cloud Run
          </tspan>
        </text>
        <text fontSize="11.5" fill="#5f6b7a">
          <tspan x="435" y="459.63">
            upload service
          </tspan>
        </text>
      </g>
      <g id={`${uid}-n-bucket`}>
        <rect x="370" y="624" width="168" height="58" rx="8" fill="#ffffff" stroke="#c6ccd4" strokeWidth="1" />
        <use href={`#${uid}-s3`} x="386" y="637" width="32" height="32" />
        <text fontSize="13" fontWeight="600" fill="#000000">
          <tspan x="430" y="649.23">
            Cloud Storage
          </tspan>
        </text>
        <text fontSize="11.5" fill="#5f6b7a">
          <tspan x="430" y="666.63">
            Uploads bucket
          </tspan>
        </text>
      </g>
      <g id={`${uid}-n-on-upload`}>
        <rect x="352" y="746" width="203" height="58" rx="8" fill="#ffffff" stroke="#c6ccd4" strokeWidth="1" />
        <use href={`#${uid}-s4`} x="368" y="759" width="32" height="32" />
        <text fontSize="13" fontWeight="600" fill="#000000">
          <tspan x="412" y="771.23">
            Eventarc
          </tspan>
        </text>
        <text fontSize="11.5" fill="#5f6b7a">
          <tspan x="412" y="788.63">
            Object finalized trigger
          </tspan>
        </text>
      </g>
      <g id={`${uid}-n-docai`}>
        <rect x="68" y="873" width="160" height="58" rx="8" fill="#ffffff" stroke="#c6ccd4" strokeWidth="1" />
        <use href={`#${uid}-s5`} x="84" y="886" width="32" height="32" />
        <text fontSize="13" fontWeight="600" fill="#000000">
          <tspan x="128" y="898.23">
            Document AI
          </tspan>
        </text>
        <text fontSize="11.5" fill="#5f6b7a">
          <tspan x="128" y="915.63">
            Form parser
          </tspan>
        </text>
      </g>
      <g id={`${uid}-n-extract`}>
        <rect x="374" y="873" width="159" height="58" rx="8" fill="#ffffff" stroke="#c6ccd4" strokeWidth="1" />
        <use href={`#${uid}-s2`} x="390" y="886" width="32" height="32" />
        <text fontSize="13" fontWeight="600" fill="#000000">
          <tspan x="434" y="898.23">
            Cloud Run
          </tspan>
        </text>
        <text fontSize="11.5" fill="#5f6b7a">
          <tspan x="434" y="915.63">
            extract service
          </tspan>
        </text>
      </g>
      <g id={`${uid}-n-db`}>
        <rect x="301" y="1122" width="180" height="58" rx="8" fill="#ffffff" stroke="#c6ccd4" strokeWidth="1" />
        <use href={`#${uid}-s6`} x="317" y="1135" width="32" height="32" />
        <text fontSize="13" fontWeight="600" fill="#000000">
          <tspan x="361" y="1147.23">
            Firestore
          </tspan>
        </text>
        <text fontSize="11.5" fill="#5f6b7a">
          <tspan x="361" y="1164.63">
            Document records
          </tspan>
        </text>
      </g>
      <g id={`${uid}-n-topic`}>
        <rect x="521" y="1122" width="232" height="58" rx="8" fill="#ffffff" stroke="#c6ccd4" strokeWidth="1" />
        <use href={`#${uid}-s7`} x="537" y="1135" width="32" height="32" />
        <text fontSize="13" fontWeight="600" fill="#000000">
          <tspan x="581" y="1147.23">
            Pub/Sub
          </tspan>
        </text>
        <text fontSize="11.5" fill="#5f6b7a">
          <tspan x="581" y="1164.63">
            documents-processed topic
          </tspan>
        </text>
      </g>
      <g id={`${uid}-n-on-processed`}>
        <rect x="594" y="1000" width="164" height="58" rx="8" fill="#ffffff" stroke="#c6ccd4" strokeWidth="1" />
        <use href={`#${uid}-s4`} x="610" y="1013" width="32" height="32" />
        <text fontSize="13" fontWeight="600" fill="#000000">
          <tspan x="654" y="1025.23">
            Eventarc
          </tspan>
        </text>
        <text fontSize="11.5" fill="#5f6b7a">
          <tspan x="654" y="1042.63">
            Pub/Sub trigger
          </tspan>
        </text>
      </g>
      <g id={`${uid}-n-notify`}>
        <rect x="573" y="873" width="206" height="58" rx="8" fill="#ffffff" stroke="#c6ccd4" strokeWidth="1" />
        <use href={`#${uid}-s8`} x="589" y="886" width="32" height="32" />
        <text fontSize="13" fontWeight="600" fill="#000000">
          <tspan x="633" y="898.23">
            Cloud Run functions
          </tspan>
        </text>
        <text fontSize="11.5" fill="#5f6b7a">
          <tspan x="633" y="915.63">
            Send notification
          </tspan>
        </text>
      </g>
      <g id={`${uid}-legend`}>
        <rect x="604" y="1232" width="215" height="53" rx="6" fill="#ffffff" stroke="#c6ccd4" strokeWidth="1" />
        <path d="M614 1249.5 H642" fill="none" stroke="#545b64" strokeWidth="1.5" />
        <text fontSize="11.5" fill="#000000">
          <tspan x="650" y="1253.68">
            Requests and data
          </tspan>
        </text>
        <path d="M614 1267.5 H642" fill="none" stroke="#545b64" strokeWidth="1.5" strokeDasharray="6 4" />
        <text fontSize="11.5" fill="#000000">
          <tspan x="650" y="1271.68">
            Events delivered by Eventarc
          </tspan>
        </text>
      </g>
    </svg>
  );
}
