Language: JavaScript
Label: safe
CWE: CWE-79 \u2014 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.

Code:
}finally{e.getModel().endUpdate()}t&&(e.setSelectionCell(k),e.scrollCellToVisible(k))}};m=mxUtils.button(mxResources.get("preview"),function(){c(G,S,!1)});m.className="geBtn";K.appendChild(m);m=mxUtils.button(mxResources.get("apply"),function(){c(b.editor.graph,f,!0)});m.className="geBtn gePrimaryBtn";K.appendChild(m);b.editor.cancelFirst||K.appendChild(u);F.appendChild(K);D.appendChild(F);v.appendChild(D);this.container=v},CustomDialog=function(b,f,m,d,u,v,D,F,K,M,G,S){var J=document.createElement("div");
J.appendChild(f);var c=document.createElement("div");c.style.marginTop=null!=S?S:"30px";c.style.textAlign="center";null!=D&&c.appendChild(D);b.isOffline()||null==v||(f=mxUtils.button(mxResources.get("help"),function(){b.openLink(v)}),f.className="geBtn",c.appendChild(f));K=mxUtils.button(K||mxResources.get("cancel"),function(){b.hideDialog();null!=d&&d()});K.className="geBtn";F&&(K.style.display="none");b.editor.cancelFirst&&c.appendChild(K);u=mxUtils.button(u||mxResources.get("ok"),mxUtils.bind(this,
function(){M||b.hideDialog(null,null,this.container);if(null!=m){var e=m();if("string"===typeof e){b.showError(mxResources.get("error"),e);return}}M&&b.hideDialog(null,null,this.container)}));c.appendChild(u);u.className="geBtn gePrimaryBtn";b.editor.cancelFirst||c.appendChild(K);if(null!=G)for(F=0;F<G.length;F++)(function(e,k,q){e=mxUtils.button(e,function(p){k(p)});null!=q&&e.setAttribute("title",q);e.className="geBtn";c.appendChild(e)})(G[F][0],G[F][1],G[F][2]);J.appendChild(c);this.cancelBtn=
K;this.okButton=u;this.container=J},TemplatesDialog=function(b,f,m,d,u,v,D,F,K,M,G,S,J,c,e){function k(ia){wa.innerText=ia;wa.style.display="block";setTimeout(function(){wa.style.display="none"},4E3)}function q(){null!=y&&(y.style.fontWeight="normal",y.style.textDecoration="none",H=y,y=null)}function p(ia,aa,la,ma,oa,ha,ja){if(-1<ia.className.indexOf("geTempDlgRadioBtnActive"))return!1;ia.className+=" geTempDlgRadioBtnActive";L.querySelector(".geTempDlgRadioBtn[data-id="+ma+"]").className="geTempDlgRadioBtn "+