"use strict";
/*
 * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
 * This devtool is neither made for production nor for readable output files.
 * It uses "eval()" calls to create a separate source file in the browser devtools.
 * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
 * or disable the default devtool with "devtool: false".
 * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
 */
(self["webpackChunk_mdts_frontend"] = self["webpackChunk_mdts_frontend"] || []).push([["node_modules_mermaid_dist_chunks_mermaid_core_sizeCapture-X5ZJPWSS_mjs"],{

/***/ "./node_modules/mermaid/dist/chunks/mermaid.core/sizeCapture-X5ZJPWSS.mjs"
/*!********************************************************************************!*\
  !*** ./node_modules/mermaid/dist/chunks/mermaid.core/sizeCapture-X5ZJPWSS.mjs ***!
  \********************************************************************************/
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   captureNodeSizes: () => (/* binding */ captureNodeSizes),\n/* harmony export */   shouldCaptureSizes: () => (/* binding */ shouldCaptureSizes)\n/* harmony export */ });\n/* harmony import */ var _chunk_Y2CYZVJY_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-Y2CYZVJY.mjs */ \"./node_modules/mermaid/dist/chunks/mermaid.core/chunk-Y2CYZVJY.mjs\");\n\n\n// src/rendering-util/layout-algorithms/ddlt/captureContract.ts\nvar DDLT_SIZE_CAPTURE_VERSION = 1;\n\n// src/rendering-util/layout-algorithms/ddlt/sizeCapture.ts\nfunction getCaptureGlobal() {\n  if (typeof globalThis === \"undefined\") {\n    return void 0;\n  }\n  return globalThis;\n}\n;(0,_chunk_Y2CYZVJY_mjs__WEBPACK_IMPORTED_MODULE_0__.__name)(getCaptureGlobal, \"getCaptureGlobal\");\nfunction shouldCaptureSizes() {\n  return Boolean(getCaptureGlobal()?.mermaidCaptureSizes);\n}\n;(0,_chunk_Y2CYZVJY_mjs__WEBPACK_IMPORTED_MODULE_0__.__name)(shouldCaptureSizes, \"shouldCaptureSizes\");\nfunction capturedFromLocation() {\n  if (typeof location === \"undefined\") {\n    return \"browser-dev\";\n  }\n  return `${location.pathname}${location.search}`;\n}\n;(0,_chunk_Y2CYZVJY_mjs__WEBPACK_IMPORTED_MODULE_0__.__name)(capturedFromLocation, \"capturedFromLocation\");\nfunction emitCapturedSizes(captured, element) {\n  const g = getCaptureGlobal();\n  if (!g) {\n    return;\n  }\n  const domNode = element.node();\n  const ownerSvg = (domNode && \"ownerSVGElement\" in domNode ? domNode.ownerSVGElement : null) ?? domNode;\n  const svgId = ownerSvg?.id ?? \"(unknown)\";\n  g.mermaidCapturedSizes ??= [];\n  const entry = { svgId, sizes: captured };\n  g.mermaidCapturedSizes.push(entry);\n  g.mermaidLastCapturedSizes = entry;\n}\n;(0,_chunk_Y2CYZVJY_mjs__WEBPACK_IMPORTED_MODULE_0__.__name)(emitCapturedSizes, \"emitCapturedSizes\");\nfunction captureNodeSizes(element, data4Layout) {\n  const nodes = [];\n  for (const node of data4Layout.nodes) {\n    if (node.isGroup) {\n      continue;\n    }\n    nodes.push({ id: node.id, width: node.width ?? 0, height: node.height ?? 0 });\n  }\n  if (nodes.length === 0) {\n    return;\n  }\n  emitCapturedSizes(\n    {\n      metadata: {\n        captureVersion: DDLT_SIZE_CAPTURE_VERSION,\n        capturedAt: (/* @__PURE__ */ new Date()).toISOString(),\n        capturedFrom: capturedFromLocation()\n      },\n      nodes\n    },\n    element\n  );\n}\n;(0,_chunk_Y2CYZVJY_mjs__WEBPACK_IMPORTED_MODULE_0__.__name)(captureNodeSizes, \"captureNodeSizes\");\n\n\n\n//# sourceURL=webpack://@mdts/frontend/./node_modules/mermaid/dist/chunks/mermaid.core/sizeCapture-X5ZJPWSS.mjs?\n}");

/***/ }

}]);