"use strict";(self.webpackChunk_dagster_io_dagit_app=self.webpackChunk_dagster_io_dagit_app||[]).push([[545],{9938:function(n,t,e){e.d(t,{Yg:function(){return f},ll:function(){return c}});var r,i,a=e(99500),o=e(47427),u=e(69131),h=e(38608),s=e(23662),d=e.n(s);function f(n){var t,e={},r=(0,o.Z)(n);try{for(r.s();!(t=r.n()).done;)for(var i=t.value,a=JSON.parse(i),u=1;u<a.length;u++){var h=a.slice(0,u),s=JSON.stringify(h);e[s]=e[s]||[],e[s].push(i)}}catch(w){r.e(w)}finally{r.f()}for(var f=0,c=Object.keys(e);f<c.length;f++){var g=c[f];e[g].length<=1&&delete e[g]}var l,v={},p={},y=(0,o.Z)(Object.keys(e).sort((function(n,t){return t.length-n.length})));try{var m=function(){var n=l.value,t=d()(e[n].map((function(n){return p[n]?p[n]:n})));if(1===t.length&&v[t[0]])return"continue";v[n]=t,v[n].forEach((function(t){return p[t]=n}))};for(y.s();!(l=y.n()).done;)m()}catch(w){y.e(w)}finally{y.f()}return v}(0,h.P)({source:function(n){return n.source},target:function(n){return n.target},x:function(n){return n.x},y:function(n){return n.y}});function c(n){return n.path.join(" / ")}var g=(0,u.Ps)(r||(r=(0,a.Z)(["\n  fragment LastRunsWarningsFragment on LatestRun {\n    stepKey\n    run {\n      id\n      status\n    }\n  }\n"])));(0,u.Ps)(i||(i=(0,a.Z)(["\n  fragment RepositoryLiveFragment on Repository {\n    id\n    name\n    location {\n      id\n      name\n    }\n    latestRunByStep {\n      __typename\n      ...LastRunsWarningsFragment\n    }\n  }\n  ","\n"])),g)},50545:function(n,t,e){e.r(t),e.d(t,{layoutAssetGraph:function(){return s},getForeignNodeDimensions:function(){return d},extendBounds:function(){return f},ASSET_NODE_ICON_WIDTH:function(){return c},ASSET_NODE_ANNOTATIONS_MAX_WIDTH:function(){return g},ASSET_NODE_NAME_MAX_LENGTH:function(){return l},getAssetNodeDimensions:function(){return v}});var r=e(47427),i=e(19065),a=e(83975),o=e(9938),u=100,h=!1,s=function(n){var t=new a.graphlib.Graph({compound:!0});t.setGraph({rankdir:"TB",marginx:u,marginy:u,nodesep:h?20:50,edgesep:10,ranksep:h?20:50}),t.setDefaultEdgeLabel((function(){return{}}));var e=function(n){return n&&n.definition.opNames.length>0};Object.values(n.nodes).filter(e).forEach((function(n){var e=v(n.definition),r=e.width,i=e.height;t.setNode(n.id,{width:h?230:r,height:i})}));var s={};Object.keys(n.downstream).forEach((function(r){Object.keys(n.downstream[r]).forEach((function(i){(e(n.nodes[i])||e(n.nodes[r]))&&(t.setEdge({v:r,w:i},{weight:1}),e(n.nodes[i])?e(n.nodes[r])||(s[r]=!0):s[i]=!0)}))})),Object.keys(s).forEach((function(n){t.setNode(n,d(n))}));for(var c=(0,o.Yg)(t.nodes()),g=0,l=Object.entries(c);g<l.length;g++){var p=(0,i.Z)(l[g],2),y=p[0],m=p[1];t.setNode(y,{});var w,_=(0,r.Z)(m);try{for(_.s();!(w=_.n()).done;){var x=w.value;t.setParent(x,y)}}catch(A){_.e(A)}finally{_.f()}}a.layout(t);var E={};t.nodes().forEach((function(n){var e=t.node(n);e&&(E[n]=e)}));var N=0,b=0,O={},k={};Object.keys(E).forEach((function(n){var e=E[n],r={x:e.x-e.width/2,y:e.y-e.height/2,width:e.width,height:e.height};if(!c[n]){O[n]={id:n,bounds:r};for(var i=t.parent(n);i;)k[i]=k[i]||{id:i,bounds:r},k[i].bounds=f(k[i].bounds,{x:r.x-u/4,y:r.y-u/4,width:r.width+u/2,height:r.height+u/2}),i=t.parent(i);N=Math.max(N,e.x+e.width/2),b=Math.max(b,e.y+e.height/2)}}));var M=[],S=[];return t.edges().forEach((function(n){var e=t.edge(n).points;k[n.v]||k[n.w]?S.push({from:e[0],fromId:n.v,to:e[e.length-1],toId:n.w}):M.push({from:e[0],fromId:n.v,to:e[e.length-1],toId:n.w})})),{nodes:O,edges:M,bundles:k,bundleEdges:S,width:N+u,height:b+u}},d=function(n){var t=JSON.parse(n);return{width:8*(0,o.ll)({path:t}).length+30,height:30}},f=function(n,t){var e=Math.min(n.x,t.x),r=Math.min(n.y,t.y);return{x:e,y:r,width:Math.max(n.x+n.width,t.x+t.width)-e,height:Math.max(n.y+n.height,t.y+t.height)-r}},c=20,g=65,l=32,v=function(n){var t=75;n.description&&(t+=25);var e=(0,o.ll)(n.assetKey),r=n.opNames[0];return r&&e!==r&&(t+=25),{width:Math.max(200,8*Math.min(l,e.length))+c+g,height:t}}}}]);
//# sourceMappingURL=545.9f0aa1c6.chunk.js.map