Liferay.Loader.define("liferay!analytics-settings-web$color-convert@2.0.1/route",["module","exports","require","./conversions"],(function(n,e,t){window;{const e=t("./conversions");function deriveBFS(n){const t=function buildGraph(){const n={},t=Object.keys(e);for(let e=t.length,r=0;r<e;r++)n[t[r]]={distance:-1,parent:null};return n}(),r=[n];for(t[n].distance=0;r.length;){const n=r.pop(),o=Object.keys(e[n]);for(let e=o.length,i=0;i<e;i++){const e=o[i],s=t[e];-1===s.distance&&(s.distance=t[n].distance+1,s.parent=n,r.unshift(e))}}return t}function link(n,e){return function(t){return e(n(t))}}function wrapConversion(n,t){const r=[t[n].parent,n];let o=e[t[n].parent][n],i=t[n].parent;for(;t[i].parent;)r.unshift(t[i].parent),o=link(e[t[i].parent][i],o),i=t[i].parent;return o.conversion=r,o}n.exports=function(n){const e=deriveBFS(n),t={},r=Object.keys(e);for(let n=r.length,o=0;o<n;o++){const n=r[o];null!==e[n].parent&&(t[n]=wrapConversion(n,e))}return t}}}));
//# sourceMappingURL=route.js.map