code stringlengths 14 2.05k | label int64 0 1 | programming_language stringclasses 7 values | cwe_id stringlengths 6 14 | cwe_name stringlengths 5 98 ⌀ | description stringlengths 36 379 ⌀ | url stringlengths 36 48 ⌀ | label_name stringclasses 2 values |
|---|---|---|---|---|---|---|---|
d&&(d.opened=new Date);this.currentFile=d};EditorUi.prototype.getCurrentFile=function(){return this.currentFile};EditorUi.prototype.isExportToCanvas=function(){return this.editor.isExportToCanvas()};EditorUi.prototype.createImageDataUri=function(d,f,k,v){d=d.toDataURL("image/"+k);if(null!=d&&6<d.length)null!=f&&(d=Editor.writeGraphModelToPng(d,"tEXt","mxfile",encodeURIComponent(f))),0<v&&(d=Editor.writeGraphModelToPng(d,"pHYs","dpi",v));else throw{message:mxResources.get("unknownError")};return d}; | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
M?mxUtils.trim(M):M};Editor.addRetryToError=function(m,C){null!=m&&(m=null!=m.error?m.error:m,null==m.retry&&(m.retry=C))};Editor.mermaidToDrawio=function(m,C,M){if("function"===typeof mxMermaidToDrawio)return mxMermaidToDrawio(m,C,M)};Editor.configure=function(m){if(null!=m){Editor.config=m;Editor.configVersion=m.version;m.debug&&(urlParams.test="1");null!=m.defaultFonts&&(Menus.prototype.defaultFonts=m.defaultFonts);null!=m.presetColors&&(ColorDialog.prototype.presetColors=m.presetColors);null!= | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
if(/viewer\.diagrams\.net$/.test(window.location.hostname)||/embed\.diagrams\.net$/.test(window.location.hostname))this.editor.editBlankUrl="https://app.diagrams.net/";var H=d.editor.getEditBlankUrl;this.editor.getEditBlankUrl=function(U){U=null!=U?U:"";"1"==urlParams.dev&&(U+=(0<U.length?"&":"?")+"dev=1");return H.apply(this,arguments)};var J=f.addClickHandler;f.addClickHandler=function(U,Q,Y){var m=Q;Q=function(C,M){if(null==M){var ba=mxEvent.getSource(C);"a"==ba.nodeName.toLowerCase()&&(M=ba.getAttribute("href"))}null!=
M&&f.isCustomLink(M)&&(mxEvent.isTouchEvent(C)||!mxEvent.isPopupTrigger(C))&&f.customLinkClicked(M)&&mxEvent.consume(C);null!=m&&m(C,M)};J.call(this,U,Q,Y)};q.apply(this,arguments);mxClient.IS_SVG&&this.editor.graph.addSvgShadow(f.view.canvas.ownerSVGElement,null,!0);if(null!=this.menus){var O=Menus.prototype.addPopupMenuItems;this.menus.addPopupMenuItems=function(U,Q,Y){f.isSelectionEmpty()&&"simple"==Editor.currentTheme&&this.addMenuItems(U,["zoomIn","zoomOut","-"],null,Y);O.apply(this,arguments); | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
PrintDialog.createPrintPreview=function(b,e,g,n,y,q,E){e=new mxPrintPreview(b,e,g,n,y,q);e.title=mxResources.get("preview");e.addPageCss=!mxClient.IS_SF;e.printBackgroundImage=!0;e.autoOrigin=E;b=b.background;if(null==b||""==b||b==mxConstants.NONE)b="#ffffff";e.backgroundColor=b;var N=e.writeHead;e.writeHead=function(T){N.apply(this,arguments);T.writeln('<style type="text/css">');T.writeln("@media screen {");T.writeln(" body > div { padding:30px;box-sizing:content-box; }");T.writeln("}");T.writeln("</style>")}; | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
EditorUi.prototype.showBackgroundImageDialog=function(b,e){b=null!=b?b:mxUtils.bind(this,function(n){n=new ChangePageSetup(this,null,n);n.ignoreColor=!0;this.editor.graph.model.execute(n)});var g=mxUtils.prompt(mxResources.get("backgroundImage"),null!=e?e.src:"");null!=g&&0<g.length?(e=new Image,e.onload=function(){b(new mxImage(g,e.width,e.height),!1)},e.onerror=function(){b(null,!0);mxUtils.alert(mxResources.get("fileNotFound"))},e.src=g):b(null)}; | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
";");"elbowEdgeStyle"==this.currentEdgeStyle.edgeStyle&&null!=this.currentEdgeStyle.elbow&&(x+="elbow="+this.currentEdgeStyle.elbow+";");return x=null!=this.currentEdgeStyle.html?x+("html="+this.currentEdgeStyle.html+";"):x+"html=1;"};Graph.prototype.getPagePadding=function(){return new mxPoint(0,0)};Graph.prototype.loadStylesheet=function(){var x=null!=this.themes?this.themes[this.defaultThemeName]:mxStyleRegistry.dynamicLoading?mxUtils.load(STYLE_PATH+"/default.xml").getDocumentElement():null;null!=
x&&(new mxCodec(x.ownerDocument)).decode(x,this.getStylesheet())};Graph.prototype.createCellLookup=function(x,L){L=null!=L?L:{};for(var P=0;P<x.length;P++){var X=x[P];L[mxObjectIdentity.get(X)]=X.getId();for(var ea=this.model.getChildCount(X),la=0;la<ea;la++)this.createCellLookup([this.model.getChildAt(X,la)],L)}return L};Graph.prototype.createCellMapping=function(x,L,P){P=null!=P?P:{};for(var X in x){var ea=L[X];null==P[ea]&&(P[ea]=x[X].getId()||"")}return P};Graph.prototype.importGraphModel=function(x, | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
!1;Ra.setPosition=function(Pa,eb,jb){lb=Math.max(Graph.minTableRowHeight-Pa.height,eb.y-Pa.y-Pa.height);kb=mxEvent.isShiftDown(jb.getEvent());null!=db&&kb&&(lb=Math.min(lb,db.height-Graph.minTableRowHeight))};Ra.execute=function(Pa){if(0!=lb)X.setTableRowHeight(this.state.cell,lb,!kb);else if(!P.blockDelayedSelection){var eb=X.getCellAt(Pa.getGraphX(),Pa.getGraphY())||oa.cell;X.graphHandler.selectCellForEvent(eb,Pa)}lb=0};Ra.reset=function(){lb=0}}x.push(Ra)})(ea);for(ea=0;ea<Ua.length;ea++)mxUtils.bind(this, | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
EditorUi.prototype.hideDialog=function(b,e,g){null!=this.dialogs&&0<this.dialogs.length&&(null==g||g==this.dialog.container.firstChild)&&(g=this.dialogs.pop(),0==g.close(b,e)?this.dialogs.push(g):(this.dialog=0<this.dialogs.length?this.dialogs[this.dialogs.length-1]:null,this.editor.fireEvent(new mxEventObject("hideDialog")),null==this.dialog&&null!=this.editor.graph.container&&"hidden"!=this.editor.graph.container.style.visibility&&window.setTimeout(mxUtils.bind(this,function(){null!=this.editor&&
(this.editor.graph.isEditing()&&null!=this.editor.graph.cellEditor.textarea?this.editor.graph.cellEditor.textarea.focus():(mxUtils.clearSelection(),this.editor.graph.container.focus()))}),0)))};EditorUi.prototype.ctrlEnter=function(){var b=this.editor.graph;if(b.isEnabled())try{for(var e=b.getSelectionCells(),g=new mxDictionary,n=[],y=0;y<e.length;y++){var q=b.isTableCell(e[y])?b.model.getParent(e[y]):e[y];null==q||g.get(q)||(g.put(q,!0),n.push(q))}b.setSelectionCells(b.duplicateCells(n,!1))}catch(E){this.handleError(E)}}; | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
Sa,I,Ia),B.paintLeft(c,l,u,p,t,D,Sa,I,Ga),B.lineNWInner(c,l,u,p,t,D,Sa,I,na,Ga,Ha),B.paintLeftInner(c,l,u,p,t,D,Ya,I,na,Ia,Ha),c.close(),c.fillAndStroke());c.begin();B.paintFolds(c,l,u,p,t,D,Sa,Wa,Xa,Ya,I,Ga,Ja,Ia,Ha);c.stroke()};Na.prototype.moveNW=function(c,l,u,p,t,B,D,ha,I){"square"==D||"default"==D&&"square"==B||!I?c.moveTo(0,0):c.moveTo(0,ha)};Na.prototype.moveNE=function(c,l,u,p,t,B,D,ha,I){"square"==D||"default"==D&&"square"==B||!I?c.moveTo(p,0):c.moveTo(p-ha,0)};Na.prototype.moveSE=function(c, | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
oa))||(la=!1);la&&x.push(ea.cell)}}mxGraph.prototype.cellsRemoved.apply(this,arguments)};Graph.prototype.removeCellsAfterUngroup=function(x){for(var L=[],P=0;P<x.length;P++)this.isCellDeletable(x[P])&&this.isTransparentState(this.view.getState(x[P]))&&L.push(x[P]);x=L;mxGraph.prototype.removeCellsAfterUngroup.apply(this,arguments)};Graph.prototype.setLinkForCell=function(x,L){this.setAttributeForCell(x,"link",L)};Graph.prototype.setTooltipForCell=function(x,L){var P="tooltip";Graph.translateDiagram&& | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
EditorUi.prototype.getHashObject=function(){var d=window.location.hash,f={};if(null!=d&&0<d.length){var k=d.lastIndexOf("#");if(0<k){d=decodeURIComponent(d.substring(k+1));try{f=JSON.parse(d)}catch(v){}}}return f};EditorUi.prototype.updateHashObject=function(){if(null!=this.currentFile&&""!=this.currentFile.getHash()&&null!=this.currentPage&&0<this.getSelectedPageIndex()){var d=this.getHashObject();d.pageId=this.currentPage.getId();this.setHashObject(d)}else this.setHashObject(null)};EditorUi.prototype.setHashObject= | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
x.pointerEvents=!0;return x};Graph.prototype.getSelectedTextBlocks=function(){function x(oa){if(oa.firstChild)return oa.firstChild;for(;oa;){if(oa.nextSibling)return oa.nextSibling;oa=oa.parentNode}}function L(oa){var xa=oa.startContainer,sa=oa.endContainer;oa=oa.commonAncestorContainer;var va=[],Fa;for(Fa=xa.parentNode;Fa&&(va.push(Fa),Fa!=oa);Fa=Fa.parentNode);va.reverse();for(Fa=xa;Fa&&(va.push(Fa),Fa!=sa);Fa=x(Fa));return va}var P=[this.getSelectedElement()];if(window.getSelection){var X=window.getSelection(); | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
DrawioFile.prototype.commentsRefreshNeeded=function(){return!0};DrawioFile.prototype.commentsSaveNeeded=function(){return!1};DrawioFile.prototype.getComments=function(b,e){b([])};DrawioFile.prototype.addComment=function(b,e,g){e(Date.now())};DrawioFile.prototype.canReplyToReplies=function(){return!0};DrawioFile.prototype.canComment=function(){return!0};DrawioFile.prototype.newComment=function(b,e){return new DrawioComment(this,null,b,Date.now(),Date.now(),!1,e)};LocalFile=function(b,e,g,n,y,q){DrawioFile.call(this,b,e);this.title=g;this.mode=n?null:App.MODE_DEVICE;this.fileHandle=y;this.desc=q};mxUtils.extend(LocalFile,DrawioFile);LocalFile.prototype.isAutosave=function(){return null!=this.fileHandle&&!this.invalidFileHandle&&DrawioFile.prototype.isAutosave.apply(this,arguments)};LocalFile.prototype.isAutosaveOptional=function(){return null!=this.fileHandle};LocalFile.prototype.getMode=function(){return this.mode};LocalFile.prototype.getTitle=function(){return this.title}; | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
t),c.arcTo(I,I,0,0,1,0,t-I)):(c.moveTo(0,u),c.lineTo(p,u),c.lineTo(p,t),c.lineTo(0,t));c.close();c.fillAndStroke();c.setShadow(!1);"triangle"==mxUtils.getValue(this.style,"folderSymbol",null)&&(c.begin(),c.moveTo(p-30,u+20),c.lineTo(p-20,u+10),c.lineTo(p-10,u+20),c.close(),c.stroke())};mxCellRenderer.registerShape("folder",k);k.prototype.getLabelMargins=function(c){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var l=mxUtils.getValue(this.style,"tabHeight",15)*this.scale;if(mxUtils.getValue(this.style,
"labelInHeader",!1)){var u=mxUtils.getValue(this.style,"tabWidth",15)*this.scale;l=mxUtils.getValue(this.style,"tabHeight",15)*this.scale;var p=mxUtils.getValue(this.style,"rounded",!1),t=mxUtils.getValue(this.style,"absoluteArcSize",!1),B=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));t||(B*=Math.min(c.width,c.height));B=Math.min(B,.5*c.width,.5*(c.height-l));p||(B=0);return"left"==mxUtils.getValue(this.style,"tabPosition",this.tabPosition)?new mxRectangle(B,0,Math.min(c.width,c.width-
u),Math.min(c.height,c.height-l)):new mxRectangle(Math.min(c.width,c.width-u),0,B,Math.min(c.height,c.height-l))}return new mxRectangle(0,Math.min(c.height,l),0,0)}return null};mxUtils.extend(v,mxCylinder);v.prototype.arcSize=.1;v.prototype.paintVertexShape=function(c,l,u,p,t){c.translate(l,u);var B=mxUtils.getValue(this.style,"rounded",!1),D=mxUtils.getValue(this.style,"absoluteArcSize",!1);l=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));u=mxUtils.getValue(this.style,"umlStateConnection", | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
function(S){try{f(S.target.result)}catch(U){J({message:mxResources.get("errorLoadingFile")})}});da.readAsText(ma)}else this.doImportVisio(ma,f,J,v)}catch(S){J(S)}else try{""==ia.responseType||"text"==ia.responseType?J({message:ia.responseText}):(da=new FileReader,da.onload=function(){try{J({message:JSON.parse(da.result).Message})}catch(S){J(S)}},da.readAsText(ia.response))}catch(S){J({})}});ia.send(G)}else if(H.clear())try{this.doImportVisio(d,f,J,v)}catch(ma){J(ma)}}else J({message:mxResources.get("serviceUnavailableOrBlocked")})}); | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
EditorUi.prototype.initClipboard=function(){var b=this,e=mxClipboard.cut;mxClipboard.cut=function(q){q.cellEditor.isContentEditing()?document.execCommand("cut",!1,null):e.apply(this,arguments);b.updatePasteActionStates()};mxClipboard.copy=function(q){var E=null;if(q.cellEditor.isContentEditing())document.execCommand("copy",!1,null);else{E=E||q.getSelectionCells();E=q.getExportableCells(q.model.getTopmostCells(E));for(var N={},T=q.createCellLookup(E),F=q.cloneCells(E,null,N),K=new mxGraphModel,R=K.getChildAt(K.getRoot(),
0),W=0;W<F.length;W++){K.add(R,F[W]);var d=q.view.getState(E[W]);if(null!=d){var f=q.getCellGeometry(F[W]);null!=f&&f.relative&&!K.isEdge(E[W])&&null==T[mxObjectIdentity.get(K.getParent(E[W]))]&&(f.offset=null,f.relative=!1,f.x=d.x/d.view.scale-d.view.translate.x,f.y=d.y/d.view.scale-d.view.translate.y)}}q.updateCustomLinks(q.createCellMapping(N,T),F);mxClipboard.insertCount=1;mxClipboard.setCells(F)}b.updatePasteActionStates();return E};var g=mxClipboard.paste;mxClipboard.paste=function(q){var E=
null;q.cellEditor.isContentEditing()?document.execCommand("paste",!1,null):E=g.apply(this,arguments);b.updatePasteActionStates();return E};var n=this.editor.graph.cellEditor.startEditing;this.editor.graph.cellEditor.startEditing=function(){n.apply(this,arguments);b.updatePasteActionStates()};var y=this.editor.graph.cellEditor.stopEditing;this.editor.graph.cellEditor.stopEditing=function(q,E){y.apply(this,arguments);b.updatePasteActionStates()};this.updatePasteActionStates()}; | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
EditorUi.prototype.createLibraryDataFromImages=function(d){if(!Editor.defaultCompressed)for(var f=0;f<d.length;f++)null!=d[f].xml&&"<"!=d[f].xml.charAt(0)&&(d[f].xml=mxUtils.trim(Graph.decompress(d[f].xml)));f=mxUtils.createXmlDocument();var k=f.createElement("mxlibrary");mxUtils.setTextContent(k,JSON.stringify(d,null,2));f.appendChild(k);return mxUtils.getXml(f,"\n")};EditorUi.prototype.closeLibrary=function(d){null!=d&&(this.removeLibrarySidebar(d.getHash()),d.constructor!=LocalLibrary&&mxSettings.removeCustomLibrary(d.getHash()), | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
ja.prototype.redrawPath=function(c,l,u,p,t){c.setStrokeWidth(1);c.setFillColor(this.stroke);l=p/5;c.rect(0,0,l,t);c.fillAndStroke();c.rect(2*l,0,l,t);c.fillAndStroke();c.rect(4*l,0,l,t);c.fillAndStroke()};mxCellRenderer.registerShape("parallelMarker",ja);fa.prototype.moveTo=function(c,l){this.originalMoveTo.apply(this.canvas,arguments);this.lastX=c;this.lastY=l;this.firstX=c;this.firstY=l};fa.prototype.close=function(){null!=this.firstX&&null!=this.firstY&&(this.lineTo(this.firstX,this.firstY),this.originalClose.apply(this.canvas, | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
"crosshair";mxConnectionHandler.prototype.createEdgeState=function(x){x=this.graph.createCurrentEdgeStyle();x=this.graph.createEdge(null,null,null,null,null,x);x=new mxCellState(this.graph.view,x,this.graph.getCellStyle(x));for(var L in this.graph.currentEdgeStyle)x.style[L]=this.graph.currentEdgeStyle[L];if(null!=this.previous){var P=this.previous.style.newEdgeStyle;if(null!=P)try{var X=JSON.parse(P);for(L in X)x.style[L]=X[L]}catch(ea){}}x.style=this.graph.postProcessCellStyle(x.cell,x.style);return x}; | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
l),c.lineTo(0,I),c.lineTo(u,I),c.lineTo(u,ha+l),c.lineTo(0,ha+l),c.lineTo(0,ha),c.lineTo(u,ha),c.close());c.end()};mxCellRenderer.registerShape("module",wa);mxUtils.extend(Da,mxCylinder);Da.prototype.jettyWidth=32;Da.prototype.jettyHeight=12;Da.prototype.redrawPath=function(c,l,u,p,t,B){var D=parseFloat(mxUtils.getValue(this.style,"jettyWidth",this.jettyWidth));l=parseFloat(mxUtils.getValue(this.style,"jettyHeight",this.jettyHeight));u=D/2;D=u+D/2;var ha=.3*t-l/2,I=.7*t-l/2;B?(c.moveTo(u,ha),c.lineTo(D,
ha),c.lineTo(D,ha+l),c.lineTo(u,ha+l),c.moveTo(u,I),c.lineTo(D,I),c.lineTo(D,I+l),c.lineTo(u,I+l)):(c.moveTo(u,0),c.lineTo(p,0),c.lineTo(p,t),c.lineTo(u,t),c.lineTo(u,I+l),c.lineTo(0,I+l),c.lineTo(0,I),c.lineTo(u,I),c.lineTo(u,ha+l),c.lineTo(0,ha+l),c.lineTo(0,ha),c.lineTo(u,ha),c.close());c.end()};mxCellRenderer.registerShape("component",Da);mxUtils.extend(Ba,mxRectangleShape);Ba.prototype.paintForeground=function(c,l,u,p,t){var B=p/2,D=t/2,ha=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE, | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
EditorUi.prototype.addSplitHandler=function(b,e,g,n){function y(R){if(null!=E){var W=new mxPoint(mxEvent.getClientX(R),mxEvent.getClientY(R));n(Math.max(0,N+(e?W.x-E.x:E.y-W.y)-g));mxEvent.consume(R);N!=K()&&(T=!0,F=null)}}function q(R){y(R);E=N=null}var E=null,N=null,T=!0,F=null;mxClient.IS_POINTER&&(b.style.touchAction="none");var K=mxUtils.bind(this,function(){var R=parseInt(e?b.style.left:b.style.bottom);e||(R=R+g-this.footerHeight);return R});mxEvent.addGestureListeners(b,function(R){E=new mxPoint(mxEvent.getClientX(R), | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
function W(){mxShape.call(this)}function d(c,l,u,p){mxShape.call(this);this.bounds=c;this.fill=l;this.stroke=u;this.strokewidth=null!=p?p:1}function f(){mxActor.call(this)}function k(){mxCylinder.call(this)}function v(){mxCylinder.call(this)}function z(){mxActor.call(this)}function A(){mxActor.call(this)}function H(){mxActor.call(this)}function J(){mxActor.call(this)}function O(){mxActor.call(this)}function G(){mxActor.call(this)}function ja(){mxActor.call(this)}function fa(c,l){this.canvas=c;this.canvas.setLineJoin("round"); | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
function(x){return n.apply(this,arguments)||this.graph.isEdgeIgnored(x)};var y=mxConnectionHandler.prototype.isCreateTarget;mxConnectionHandler.prototype.isCreateTarget=function(x){return this.graph.isCloneEvent(x)!=y.apply(this,arguments)};mxConstraintHandler.prototype.createHighlightShape=function(){var x=new mxEllipse(null,this.highlightColor,this.highlightColor,0);x.opacity=mxConstants.HIGHLIGHT_OPACITY;return x};mxConnectionHandler.prototype.livePreview=!0;mxConnectionHandler.prototype.cursor= | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
Graph.prototype.replaceElement=function(x,L){L=x.ownerDocument.createElement(null!=L?L:"span");for(var P=Array.prototype.slice.call(x.attributes);attr=P.pop();)L.setAttribute(attr.nodeName,attr.nodeValue);L.innerHTML=x.innerHTML;x.parentNode.replaceChild(L,x)};Graph.prototype.processElements=function(x,L){if(null!=x){x=x.getElementsByTagName("*");for(var P=0;P<x.length;P++)L(x[P])}};Graph.prototype.updateLabelElements=function(x,L,P){x=null!=x?x:this.getSelectionCells();for(var X=document.createElement("div"), | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
DrawioFile.prototype.handleConflictError=function(b,e){var g=mxUtils.bind(this,function(){this.handleFileSuccess(!0)}),n=mxUtils.bind(this,function(E){this.handleFileError(E,!0)}),y=mxUtils.bind(this,function(){this.ui.spinner.spin(document.body,mxResources.get(this.savingSpinnerKey))&&(this.ui.editor.setStatus(""),this.save(!0,g,n,null,!0,this.constructor!=GitHubFile&&this.constructor!=GitLabFile||null==b?null:b.commitMessage))}),q=mxUtils.bind(this,function(){this.ui.spinner.spin(document.body,mxResources.get("updatingDocument"))&&
this.synchronizeFile(mxUtils.bind(this,function(){this.ui.spinner.stop();this.ui.spinner.spin(document.body,mxResources.get(this.savingSpinnerKey))&&this.save(!0,g,n,null,null,this.constructor!=GitHubFile&&this.constructor!=GitLabFile||null==b?null:b.commitMessage)}),n)});"none"==DrawioFile.SYNC?this.showCopyDialog(g,n,y):this.invalidChecksum?this.showRefreshDialog(g,n,this.getErrorMessage(b)):e?this.showConflictDialog(y,q):this.addConflictStatus(this.getErrorMessage(b),mxUtils.bind(this,function(){this.ui.editor.setStatus(mxUtils.htmlEntities(mxResources.get("updatingDocument")));
this.synchronizeFile(g,n)}))};DrawioFile.prototype.getErrorMessage=function(b){var e=null!=b?null!=b.error?b.error.message:b.message:null;null==e&&null!=b&&b.code==App.ERROR_TIMEOUT?e=mxResources.get("timeout"):"0"==e&&(e=mxResources.get("noResponse"));return e};DrawioFile.prototype.isOverdue=function(){return null!=this.ageStart&&Date.now()-this.ageStart.getTime()>=this.ui.warnInterval}; | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
function(){};EditorUi.prototype.restoreLibraries=function(){};EditorUi.prototype.saveLibrary=function(d,f,k,v,z,A,H){};EditorUi.prototype.isScratchpadEnabled=function(){return isLocalStorage||mxClient.IS_CHROMEAPP};EditorUi.prototype.toggleScratchpad=function(){this.isScratchpadEnabled()&&(null==this.scratchpad?StorageFile.getFileContent(this,".scratchpad",mxUtils.bind(this,function(d){null==d&&(d=this.emptyLibraryXml);this.loadLibrary(new StorageLibrary(this,d,".scratchpad"))})):this.closeLibrary(this.scratchpad))}; | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
Graph.prototype.selectTableRange=function(b,e){var g=!1;if(this.isTableCell(b)&&this.isTableCell(e)){var n=this.model.getParent(b),y=this.model.getParent(n),q=this.model.getParent(e);if(y==this.model.getParent(q)){b=n.getIndex(b);n=y.getIndex(n);var E=q.getIndex(e),N=y.getIndex(q);q=Math.max(n,N);e=Math.min(b,E);b=Math.max(b,E);E=[];for(n=Math.min(n,N);n<=q;n++){N=this.model.getChildAt(y,n);for(var T=e;T<=b;T++)E.push(this.model.getChildAt(N,T))}0<E.length&&(1<E.length||1<this.getSelectionCount()||
!this.isCellSelected(E[0]))&&(this.setSelectionCells(E),g=!0)}}return g}; | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
u),Math.min(c.height,c.height-l)):new mxRectangle(Math.min(c.width,c.width-u),0,B,Math.min(c.height,c.height-l))}return new mxRectangle(0,Math.min(c.height,l),0,0)}return null};mxUtils.extend(v,mxCylinder);v.prototype.arcSize=.1;v.prototype.paintVertexShape=function(c,l,u,p,t){c.translate(l,u);var B=mxUtils.getValue(this.style,"rounded",!1),D=mxUtils.getValue(this.style,"absoluteArcSize",!1);l=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));u=mxUtils.getValue(this.style,"umlStateConnection",
null);D||(l*=Math.min(p,t));l=Math.min(l,.5*p,.5*t);B||(l=0);B=0;null!=u&&(B=10);c.begin();c.moveTo(B,l);c.arcTo(l,l,0,0,1,B+l,0);c.lineTo(p-l,0);c.arcTo(l,l,0,0,1,p,l);c.lineTo(p,t-l);c.arcTo(l,l,0,0,1,p-l,t);c.lineTo(B+l,t);c.arcTo(l,l,0,0,1,B,t-l);c.close();c.fillAndStroke();c.setShadow(!1);"collapseState"==mxUtils.getValue(this.style,"umlStateSymbol",null)&&(c.roundrect(p-40,t-20,10,10,3,3),c.stroke(),c.roundrect(p-20,t-20,10,10,3,3),c.stroke(),c.begin(),c.moveTo(p-30,t-15),c.lineTo(p-20,t-15),
c.stroke());"connPointRefEntry"==u?(c.ellipse(0,.5*t-10,20,20),c.fillAndStroke()):"connPointRefExit"==u&&(c.ellipse(0,.5*t-10,20,20),c.fillAndStroke(),c.begin(),c.moveTo(5,.5*t-5),c.lineTo(15,.5*t+5),c.moveTo(15,.5*t-5),c.lineTo(5,.5*t+5),c.stroke())};v.prototype.getLabelMargins=function(c){return mxUtils.getValue(this.style,"boundedLbl",!1)&&null!=mxUtils.getValue(this.style,"umlStateConnection",null)?new mxRectangle(10*this.scale,0,0,0):null};mxCellRenderer.registerShape("umlState",v);mxUtils.extend(z, | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
TableLayout.prototype.isVertexIgnored=function(b){return!this.graph.getModel().isVertex(b)||!this.graph.isCellVisible(b)};TableLayout.prototype.getSize=function(b,e){for(var g=0,n=0;n<b.length;n++)if(!this.isVertexIgnored(b[n])){var y=this.graph.getCellGeometry(b[n]);null!=y&&(g+=e?y.width:y.height)}return g}; | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
ha),c.lineTo(D,ha+l),c.lineTo(u,ha+l),c.moveTo(u,I),c.lineTo(D,I),c.lineTo(D,I+l),c.lineTo(u,I+l)):(c.moveTo(u,0),c.lineTo(p,0),c.lineTo(p,t),c.lineTo(u,t),c.lineTo(u,I+l),c.lineTo(0,I+l),c.lineTo(0,I),c.lineTo(u,I),c.lineTo(u,ha+l),c.lineTo(0,ha+l),c.lineTo(0,ha),c.lineTo(u,ha),c.close());c.end()};mxCellRenderer.registerShape("component",Da);mxUtils.extend(Ba,mxRectangleShape);Ba.prototype.paintForeground=function(c,l,u,p,t){var B=p/2,D=t/2,ha=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,
mxConstants.LINE_ARCSIZE)/2;c.begin();this.addPoints(c,[new mxPoint(l+B,u),new mxPoint(l+p,u+D),new mxPoint(l+B,u+t),new mxPoint(l,u+D)],this.isRounded,ha,!0);c.stroke();mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("associativeEntity",Ba);mxUtils.extend(ya,mxDoubleEllipse);ya.prototype.outerStroke=!0;ya.prototype.paintVertexShape=function(c,l,u,p,t){var B=Math.min(4,Math.min(p/5,t/5));0<p&&0<t&&(c.ellipse(l+B,u+B,p-2*B,t-2*B),c.fillAndStroke());c.setShadow(!1); | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
V.onerror=function(){window.clearTimeout(ba);M&&C(Editor.svgBrokenImage.src)};V.src=m}}catch(Z){C(Editor.svgBrokenImage.src)}};Editor.prototype.convertImages=function(m,C,M,ba){null==ba&&(ba=this.createImageUrlConverter());var V=0,Z=M||{};M=mxUtils.bind(this,function(aa,ka){aa=m.getElementsByTagName(aa);for(var qa=0;qa<aa.length;qa++)mxUtils.bind(this,function(ra){try{if(null!=ra){var pa=ba.convert(ra.getAttribute(ka));if(null!=pa&&"data:"!=pa.substring(0,5)){var wa=Z[pa];null==wa?(V++,this.convertImageToDataUri(pa, | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
mxGraphHandler.prototype.shouldRemoveCellsFromParent=function(E,N,T){for(var F=0;F<N.length;F++){if(this.graph.isTableCell(N[F])||this.graph.isTableRow(N[F]))return!1;if(this.graph.getModel().isVertex(N[F])){var K=this.graph.getCellGeometry(N[F]);if(null!=K&&K.relative)return!1}}return e.apply(this,arguments)};var g=mxConnectionHandler.prototype.createMarker;mxConnectionHandler.prototype.createMarker=function(){var E=g.apply(this,arguments);E.intersects=mxUtils.bind(this,function(N,T){return this.isConnecting()?
!0:mxCellMarker.prototype.intersects.apply(E,arguments)});return E};mxGraphView.prototype.createBackgroundPageShape=function(E){return new mxRectangleShape(E,"#ffffff",this.graph.defaultPageBorderColor)};mxGraphView.prototype.getBackgroundPageBounds=function(){var E=this.getGraphBounds(),N=0<E.width?E.x/this.scale-this.translate.x:0,T=0<E.height?E.y/this.scale-this.translate.y:0,F=this.graph.pageFormat,K=this.graph.pageScale,R=F.width*K;F=F.height*K;K=Math.floor(Math.min(0,N)/R);var W=Math.floor(Math.min(0, | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
function W(){mxShape.call(this)}function d(c,l,u,p){mxShape.call(this);this.bounds=c;this.fill=l;this.stroke=u;this.strokewidth=null!=p?p:1}function f(){mxActor.call(this)}function k(){mxCylinder.call(this)}function v(){mxCylinder.call(this)}function z(){mxActor.call(this)}function A(){mxActor.call(this)}function H(){mxActor.call(this)}function J(){mxActor.call(this)}function O(){mxActor.call(this)}function G(){mxActor.call(this)}function ja(){mxActor.call(this)}function fa(c,l){this.canvas=c;this.canvas.setLineJoin("round"); | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
p,u+t/2);c.end();c.stroke()};mxCellRenderer.registerShape("sortShape",la);mxUtils.extend(oa,mxEllipse);oa.prototype.paintVertexShape=function(c,l,u,p,t){c.begin();c.moveTo(l,u);c.lineTo(l+p,u);c.lineTo(l+p/2,u+t/2);c.close();c.fillAndStroke();c.begin();c.moveTo(l,u+t);c.lineTo(l+p,u+t);c.lineTo(l+p/2,u+t/2);c.close();c.fillAndStroke()};mxCellRenderer.registerShape("collate",oa);mxUtils.extend(xa,mxEllipse);xa.prototype.paintVertexShape=function(c,l,u,p,t){var B=c.state.strokeWidth/2,D=10+2*B,ha=u+
t-D/2;c.begin();c.moveTo(l,u);c.lineTo(l,u+t);c.moveTo(l+B,ha);c.lineTo(l+B+D,ha-D/2);c.moveTo(l+B,ha);c.lineTo(l+B+D,ha+D/2);c.moveTo(l+B,ha);c.lineTo(l+p-B,ha);c.moveTo(l+p,u);c.lineTo(l+p,u+t);c.moveTo(l+p-B,ha);c.lineTo(l+p-D-B,ha-D/2);c.moveTo(l+p-B,ha);c.lineTo(l+p-D-B,ha+D/2);c.end();c.stroke()};mxCellRenderer.registerShape("dimension",xa);mxUtils.extend(sa,mxEllipse);sa.prototype.drawHidden=!0;sa.prototype.paintVertexShape=function(c,l,u,p,t){this.outline||c.setStrokeColor(null);if(null!= | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
D&&"fold"==B)&&c.lineTo(I,t-ha-I):c.lineTo(0,t-I)};Na.prototype.moveSEInner=function(c,l,u,p,t,B,D,ha,I,ua){ua?"square"==D||"default"==D&&"square"==B?c.moveTo(p-I,t-I):"rounded"==D||"default"==D&&"rounded"==B||"snip"==D||"default"==D&&"snip"==B?c.moveTo(p-I,t-ha-.5*I):("invRound"==D||"default"==D&&"invRound"==B||"fold"==D||"default"==D&&"fold"==B)&&c.moveTo(p-I,t-ha-I):c.moveTo(p-I,t)};Na.prototype.lineSEInner=function(c,l,u,p,t,B,D,ha,I,ua){ua?"square"==D||"default"==D&&"square"==B?c.lineTo(p-I, | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
this.getCurrentFile();null!=U&&ca!=U.getTitle()&&(ca=null!=U.getTitle()?U.getTitle():this.defaultFilename,f.invalidateDescendantsWithPlaceholders(f.model.getRoot()),f.view.validate())});var ia=f.labelLinkClicked;f.labelLinkClicked=function(U,Q,Y){var m=Q.getAttribute("href");if(null==m||!f.isCustomLink(m)||!mxEvent.isTouchEvent(Y)&&mxEvent.isPopupTrigger(Y))ia.apply(this,arguments);else{if(!f.isEnabled()||null!=U&&f.isCellLocked(U.cell))f.customLinkClicked(m),f.getRubberband().reset();mxEvent.consume(Y)}}; | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
function ba(){mxShape.call(this)}function V(){mxShape.call(this)}function Z(){mxRectangleShape.call(this)}function aa(){mxShape.call(this)}function ka(){mxShape.call(this)}function qa(){mxShape.call(this)}function ra(){mxShape.call(this)}function pa(){mxShape.call(this)}function wa(){mxCylinder.call(this)}function Da(){mxCylinder.call(this)}function Ba(){mxRectangleShape.call(this)}function ya(){mxDoubleEllipse.call(this)}function Oa(){mxDoubleEllipse.call(this)}function Qa(){mxArrowConnector.call(this); | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
(null!=Z||0<=mxUtils.indexOf(aa,mxUtils.hex2rgb(ka.fill)))?"solid":qa.fillStyle);ka.fillStyle=aa;return ka};m.prototype.begin=function(){this.passThrough?this.originalBegin.apply(this.canvas,arguments):this.path=[]};m.prototype.end=function(){this.passThrough&&this.originalEnd.apply(this.canvas,arguments)};m.prototype.addOp=function(){if(null!=this.path&&(this.path.push(arguments[0]),2<arguments.length))for(var Z=2;Z<arguments.length;Z+=2)this.lastX=arguments[Z-1],this.lastY=arguments[Z],this.path.push(this.canvas.format(this.lastX)),
this.path.push(this.canvas.format(this.lastY))};m.prototype.lineTo=function(Z,aa){this.passThrough?this.originalLineTo.apply(this.canvas,arguments):(this.addOp(this.lineOp,Z,aa),this.lastX=Z,this.lastY=aa)};m.prototype.moveTo=function(Z,aa){this.passThrough?this.originalMoveTo.apply(this.canvas,arguments):(this.addOp(this.moveOp,Z,aa),this.lastX=Z,this.lastY=aa,this.firstX=Z,this.firstY=aa)};m.prototype.close=function(){this.passThrough?this.originalClose.apply(this.canvas,arguments):this.addOp(this.closeOp)}; | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
mxUtils.bind(this,function(R,W,d,f){var k=this.actions.get(d);null!=k&&(d=function(){k.isEnabled()&&k.funct.apply(this,arguments)},W?f?y.bindControlShiftKey(R,d):y.bindControlKey(R,d):f?y.bindShiftKey(R,d):y.bindKey(R,d))});var F=this,K=y.escape;y.escape=function(R){K.apply(this,arguments)};y.enter=function(){};y.bindControlShiftKey(36,function(){n.exitGroup()});y.bindControlShiftKey(35,function(){n.enterGroup()});y.bindShiftKey(36,function(){n.home()});y.bindKey(35,function(){n.refresh()});y.bindAction(107, | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
mxImageShape.prototype.getImageDataUri=function(){var b=this.image;if("data:image/svg+xml;base64,"==b.substring(0,26)&&null!=this.style&&"1"==mxUtils.getValue(this.style,"clipSvg","0")){if(null==this.clippedSvg||this.clippedImage!=b)this.clippedSvg=Graph.clipSvgDataUri(b,!0),this.clippedImage=b;b=this.clippedSvg}return b};(function(){var b=mxResources.get;mxResources.get=function(e,g,n){null==n&&(n=e);return b.apply(this,[e,g,n])}})(); | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
null!=this.currentState&&S.getState()==this.currentState&&2E3<v||(null==this.currentState||"0"!=mxUtils.getValue(this.currentState.style,"outlineConnect","1"))&&A.apply(this,arguments)};var H=this.isToggleEvent;this.isToggleEvent=function(S){return H.apply(this,arguments)||!mxClient.IS_CHROMEOS&&mxEvent.isShiftDown(S)};var J=f.isForceRubberbandEvent;f.isForceRubberbandEvent=function(S){return J.apply(this,arguments)||mxClient.IS_CHROMEOS&&mxEvent.isShiftDown(S.getEvent())||mxUtils.hasScrollbars(this.graph.container)&& | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
X[xa].height)}}finally{this.getModel().endUpdate()}}}return L};Graph.prototype.isCloneEvent=function(x){return mxClient.IS_MAC&&mxEvent.isMetaDown(x)||mxEvent.isControlDown(x)};Graph.prototype.createSvgImageExport=function(){var x=new mxImageExport;x.getLinkForCellState=mxUtils.bind(this,function(L,P){return this.getLinkForCell(L.cell)});return x};Graph.prototype.parseBackgroundImage=function(x){var L=null;null!=x&&0<x.length&&(x=JSON.parse(x),L=new mxImage(x.src,x.width,x.height));return L};Graph.prototype.getBackgroundImageObject= | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
this.graph.getSelectionCells()),this.graph.graphHandler.cellWasClicked=!0,this.graph.isMouseTrigger=mxEvent.isMouseEvent(oa),this.graph.isMouseDown=!0);mxEvent.consume(oa)}),null,mxUtils.bind(this,function(oa){mxEvent.isPopupTrigger(oa)&&(this.graph.popupMenuHandler.popup(mxEvent.getClientX(oa),mxEvent.getClientY(oa),ea.cell,oa),mxEvent.consume(oa))}));P.push(la)}else P.push(null)})(this.graph.view.getState(L.getChildAt(this.state.cell,X)));return P};mxVertexHandler.prototype.destroyMoveHandles=function(){if(null!=
this.moveHandles){for(var x=0;x<this.moveHandles.length;x++)null!=this.moveHandles[x]&&this.moveHandles[x].destroy();this.moveHandles=null}};var M=mxVertexHandler.prototype.refresh;mxVertexHandler.prototype.refresh=function(){M.apply(this,arguments);this.graph.isTable(this.state.cell)&&this.graph.isCellMovable(this.state.cell)&&this.refreshMoveHandles()};var ba=mxVertexHandler.prototype.getHandlePadding;mxVertexHandler.prototype.getHandlePadding=function(){var x=new mxPoint(0,0),L=this.tolerance, | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
0)};Na.prototype.paintRight=function(c,l,u,p,t,B,D,ha,I){"square"==D||"default"==D&&"square"==B||!I?c.lineTo(p,t):c.lineTo(p,t-ha)};Na.prototype.paintLeft=function(c,l,u,p,t,B,D,ha,I){"square"==D||"default"==D&&"square"==B||!I?c.lineTo(0,0):c.lineTo(0,ha)};Na.prototype.paintSE=function(c,l,u,p,t,B,D,ha,I){if(I)if("rounded"==D||"default"==D&&"rounded"==B||"invRound"==D||"default"==D&&"invRound"==B){l=0;if("rounded"==D||"default"==D&&"rounded"==B)l=1;c.arcTo(ha,ha,0,0,l,p-ha,t)}else("snip"==D||"default"== | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
this.graph.currentTranslate,T=this.graph.currentScale;E=new mxRectangle((E.x+N.x)*T,(E.y+N.y)*T,E.width*T,E.height*T)}return E};mxGraphView.prototype.viewStateChanged=function(){this.graph.useCssTransforms?this.validate():this.revalidate();this.graph.sizeDidChange()};var e=mxGraphView.prototype.validate;mxGraphView.prototype.validate=function(E){this.graph.useCssTransforms&&(this.graph.currentScale=this.scale,this.graph.currentTranslate.x=this.translate.x,this.graph.currentTranslate.y=this.translate.y,
this.scale=1,this.translate.x=0,this.translate.y=0);e.apply(this,arguments);this.graph.useCssTransforms&&(this.graph.updateCssTransform(),this.scale=this.graph.currentScale,this.translate.x=this.graph.currentTranslate.x,this.translate.y=this.graph.currentTranslate.y)};var g=mxGraph.prototype.getCellsForGroup;Graph.prototype.getCellsForGroup=function(E){E=g.apply(this,arguments);for(var N=[],T=0;T<E.length;T++)this.isTableRow(E[T])||this.isTableCell(E[T])||N.push(E[T]);return N};var n=mxGraph.prototype.getCellsForUngroup; | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
mxCylinder);k.prototype.tabWidth=60;k.prototype.tabHeight=20;k.prototype.tabPosition="right";k.prototype.arcSize=.1;k.prototype.paintVertexShape=function(c,l,u,p,t){c.translate(l,u);l=Math.max(0,Math.min(p,parseFloat(mxUtils.getValue(this.style,"tabWidth",this.tabWidth))));u=Math.max(0,Math.min(t,parseFloat(mxUtils.getValue(this.style,"tabHeight",this.tabHeight))));var B=mxUtils.getValue(this.style,"tabPosition",this.tabPosition),D=mxUtils.getValue(this.style,"rounded",!1),ha=mxUtils.getValue(this.style,
"absoluteArcSize",!1),I=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));ha||(I*=Math.min(p,t));I=Math.min(I,.5*p,.5*(t-u));l=Math.max(l,I);l=Math.min(p-I,l);D||(I=0);c.begin();"left"==B?(c.moveTo(Math.max(I,0),u),c.lineTo(Math.max(I,0),0),c.lineTo(l,0),c.lineTo(l,u)):(c.moveTo(p-l,u),c.lineTo(p-l,0),c.lineTo(p-Math.max(I,0),0),c.lineTo(p-Math.max(I,0),u));D?(c.moveTo(0,I+u),c.arcTo(I,I,0,0,1,I,u),c.lineTo(p-I,u),c.arcTo(I,I,0,0,1,p,I+u),c.lineTo(p,t-I),c.arcTo(I,I,0,0,1,p-I,t),c.lineTo(I,
t),c.arcTo(I,I,0,0,1,0,t-I)):(c.moveTo(0,u),c.lineTo(p,u),c.lineTo(p,t),c.lineTo(0,t));c.close();c.fillAndStroke();c.setShadow(!1);"triangle"==mxUtils.getValue(this.style,"folderSymbol",null)&&(c.begin(),c.moveTo(p-30,u+20),c.lineTo(p-20,u+10),c.lineTo(p-10,u+20),c.close(),c.stroke())};mxCellRenderer.registerShape("folder",k);k.prototype.getLabelMargins=function(c){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var l=mxUtils.getValue(this.style,"tabHeight",15)*this.scale;if(mxUtils.getValue(this.style, | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
DrawioFile.prototype.commentsRefreshNeeded=function(){return!0};DrawioFile.prototype.commentsSaveNeeded=function(){return!1};DrawioFile.prototype.getComments=function(b,e){b([])};DrawioFile.prototype.addComment=function(b,e,g){e(Date.now())};DrawioFile.prototype.canReplyToReplies=function(){return!0};DrawioFile.prototype.canComment=function(){return!0};DrawioFile.prototype.newComment=function(b,e){return new DrawioComment(this,null,b,Date.now(),Date.now(),!1,e)};LocalFile=function(b,e,g,n,y,q){DrawioFile.call(this,b,e);this.title=g;this.mode=n?null:App.MODE_DEVICE;this.fileHandle=y;this.desc=q};mxUtils.extend(LocalFile,DrawioFile);LocalFile.prototype.isAutosave=function(){return null!=this.fileHandle&&!this.invalidFileHandle&&DrawioFile.prototype.isAutosave.apply(this,arguments)};LocalFile.prototype.isAutosaveOptional=function(){return null!=this.fileHandle};LocalFile.prototype.getMode=function(){return this.mode};LocalFile.prototype.getTitle=function(){return this.title}; | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
Graph.prototype.getCommonStyle=function(E){for(var N={},T=0;T<E.length;T++){var F=this.view.getState(E[T]);null!=F&&this.mergeStyle(F.style,N,0==T)}return N};Graph.prototype.mergeStyle=function(E,N,T){if(null!=E){var F={},K;for(K in E){var R=E[K];null!=R&&(F[K]=!0,null==N[K]&&T?N[K]=R:N[K]!=R&&delete N[K])}for(K in N)F[K]||delete N[K]}};Graph.prototype.getStartEditingCell=function(E,N){N=this.getCellStyle(E);N=parseInt(mxUtils.getValue(N,mxConstants.STYLE_STARTSIZE,0));this.isTable(E)&&(!this.isSwimlane(E)||
0==N)&&""==this.getLabel(E)&&0<this.model.getChildCount(E)&&(E=this.model.getChildAt(E,0),N=this.getCellStyle(E),N=parseInt(mxUtils.getValue(N,mxConstants.STYLE_STARTSIZE,0)));if(this.isTableRow(E)&&(!this.isSwimlane(E)||0==N)&&""==this.getLabel(E)&&0<this.model.getChildCount(E))for(N=0;N<this.model.getChildCount(E);N++){var T=this.model.getChildAt(E,N);if(this.isCellEditable(T)){E=T;break}}return E};Graph.prototype.copyStyle=function(E){return this.getCellStyle(E,!1)};Graph.prototype.pasteStyle= | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
t):ua&&!na?c.lineTo(0,t-I):ua?"square"==D||"default"==D&&"square"==B?c.lineTo(I,t-I):"rounded"==D||"default"==D&&"rounded"==B||"snip"==D||"default"==D&&"snip"==B?c.lineTo(I,t-ha-.5*I):c.lineTo(I,t-ha-I):c.lineTo(I,t):c.lineTo(0,t)};Na.prototype.paintSEInner=function(c,l,u,p,t,B,D,ha,I){if("rounded"==D||"default"==D&&"rounded"==B)c.arcTo(ha-.5*I,ha-.5*I,0,0,0,p-I,t-ha-.5*I);else if("invRound"==D||"default"==D&&"invRound"==B)c.arcTo(ha+I,ha+I,0,0,1,p-I,t-ha-I);else if("snip"==D||"default"==D&&"snip"==
B)c.lineTo(p-I,t-ha-.5*I);else if("fold"==D||"default"==D&&"fold"==B)c.lineTo(p-ha-I,t-ha-I),c.lineTo(p-I,t-ha-I)};Na.prototype.paintBottomInner=function(c,l,u,p,t,B,D,ha,I,ua,na){ua||na?!ua&&na?c.lineTo(p,t-I):ua&&!na?c.lineTo(p-I,t):"square"==D||"default"==D&&"square"==B||!ua?c.lineTo(p-I,t-I):"rounded"==D||"default"==D&&"rounded"==B||"snip"==D||"default"==D&&"snip"==B?c.lineTo(p-ha-.5*I,t-I):c.lineTo(p-ha-I,t-I):c.lineTo(p,t)};Na.prototype.paintSWInner=function(c,l,u,p,t,B,D,ha,I,ua){if(!ua)c.lineTo(I, | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
this.originalClose;this.canvas.fill=this.originalFill;this.canvas.stroke=this.originalStroke;this.canvas.fillAndStroke=this.originalFillAndStroke;this.canvas.begin=this.originalBegin;this.canvas.end=this.originalEnd;this.canvas.rect=this.originalRect;this.canvas.ellipse=this.originalEllipse;this.canvas.roundrect=this.originalRoundrect};mxShape.prototype.createRoughCanvas=function(Z){return new m(Z,Editor.createRoughCanvas(Z),this)};var C=mxShape.prototype.createHandJiggle;mxShape.prototype.createHandJiggle= | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
mxUtils.bind(this,fa.prototype.curveTo);this.originalArcTo=this.canvas.arcTo;this.canvas.arcTo=mxUtils.bind(this,fa.prototype.arcTo)}function ca(){mxRectangleShape.call(this)}function ia(){mxRectangleShape.call(this)}function ma(){mxActor.call(this)}function da(){mxActor.call(this)}function S(){mxActor.call(this)}function U(){mxRectangleShape.call(this)}function Q(){mxRectangleShape.call(this)}function Y(){mxCylinder.call(this)}function m(){mxShape.call(this)}function C(){mxShape.call(this)}function M(){mxEllipse.call(this)} | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
new mxRectangle(0,0,0,Math.max(0,Math.min(c.height,parseFloat(mxUtils.getValue(l.style,"size",ma.prototype.size))*l.view.scale))),l.style),l,u,p)};mxStyleRegistry.putValue("calloutPerimeter",mxPerimeter.CalloutPerimeter);mxPerimeter.ParallelogramPerimeter=function(c,l,u,p){var t="0"!=mxUtils.getValue(l.style,"fixedSize","0"),B=t?J.prototype.fixedSize:J.prototype.size;null!=l&&(B=mxUtils.getValue(l.style,"size",B));t&&(B*=l.view.scale);var D=c.x,ha=c.y,I=c.width,ua=c.height;l=null!=l?mxUtils.getValue(l.style,
mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;l==mxConstants.DIRECTION_NORTH||l==mxConstants.DIRECTION_SOUTH?(t=t?Math.max(0,Math.min(ua,B)):ua*Math.max(0,Math.min(1,B)),ha=[new mxPoint(D,ha),new mxPoint(D+I,ha+t),new mxPoint(D+I,ha+ua),new mxPoint(D,ha+ua-t),new mxPoint(D,ha)]):(t=t?Math.max(0,Math.min(.5*I,B)):I*Math.max(0,Math.min(1,B)),ha=[new mxPoint(D+t,ha),new mxPoint(D+I,ha),new mxPoint(D+I-t,ha+ua),new mxPoint(D,ha+ua),new mxPoint(D+t,ha)]);ua=c.getCenterX();
c=c.getCenterY();c=new mxPoint(ua,c);p&&(u.x<D||u.x>D+I?c.y=u.y:c.x=u.x);return mxUtils.getPerimeterPoint(ha,c,u)};mxStyleRegistry.putValue("parallelogramPerimeter",mxPerimeter.ParallelogramPerimeter);mxPerimeter.TrapezoidPerimeter=function(c,l,u,p){var t="0"!=mxUtils.getValue(l.style,"fixedSize","0"),B=t?O.prototype.fixedSize:O.prototype.size;null!=l&&(B=mxUtils.getValue(l.style,"size",B));t&&(B*=l.view.scale);var D=c.x,ha=c.y,I=c.width,ua=c.height;l=null!=l?mxUtils.getValue(l.style,mxConstants.STYLE_DIRECTION, | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
this.path.push(this.canvas.format(this.lastY))};m.prototype.lineTo=function(Z,aa){this.passThrough?this.originalLineTo.apply(this.canvas,arguments):(this.addOp(this.lineOp,Z,aa),this.lastX=Z,this.lastY=aa)};m.prototype.moveTo=function(Z,aa){this.passThrough?this.originalMoveTo.apply(this.canvas,arguments):(this.addOp(this.moveOp,Z,aa),this.lastX=Z,this.lastY=aa,this.firstX=Z,this.firstY=aa)};m.prototype.close=function(){this.passThrough?this.originalClose.apply(this.canvas,arguments):this.addOp(this.closeOp)}; | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
this.graph.isCellSelected(F);return K};mxPopupMenuHandler.prototype.getCellForPopupEvent=function(E){E=E.getCell();for(var N=this.graph.getModel(),T=N.getParent(E),F=this.graph.view.getState(T),K=this.graph.isCellSelected(E);null!=F&&(N.isVertex(T)||N.isEdge(T));){var R=this.graph.isCellSelected(T);K=K||R;if(R||!K&&(this.graph.isTableCell(E)||this.graph.isTableRow(E)))E=T;T=N.getParent(T)}return E}})();EditorUi=function(b,e,g){mxEventSource.call(this);this.destroyFunctions=[];this.editor=b||new Editor;this.container=e||document.body;var n=this,y=this.editor.graph;y.lightbox=g;var q=y.getGraphBounds;y.getGraphBounds=function(){var Q=q.apply(this,arguments),Y=this.backgroundImage;if(null!=Y&&null!=Y.width&&null!=Y.height){var m=this.view.translate,C=this.view.scale;Q=mxRectangle.fromRectangle(Q);Q.add(new mxRectangle((m.x+Y.x)*C,(m.y+Y.y)*C,Y.width*C,Y.height*C))}return Q};y.useCssTransforms&&(this.lazyZoomDelay= | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
c?c=u:c.add(u))}this.bounds=null!=c?c:new mxRectangle};b.prototype.paintVertexShape=function(c,l,u,p,t){this.paintTableLine(c,this.line,0,0)};b.prototype.paintTableLine=function(c,l,u,p){if(null!=l){var t=null;c.begin();for(var B=0;B<l.length;B++){var D=l[B];null!=D&&(null==t?c.moveTo(D.x+u,D.y+p):null!=t&&c.lineTo(D.x+u,D.y+p));t=D}c.end();c.stroke()}};b.prototype.intersectsRectangle=function(c){var l=!1;if(mxShape.prototype.intersectsRectangle.apply(this,arguments)&&null!=this.line)for(var u=null, | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
EditorUi.prototype.initCanvas=function(){var b=this.editor.graph;b.timerAutoScroll=!0;b.getPagePadding=function(){return new mxPoint(Math.max(0,Math.round((b.container.offsetWidth-34)/b.view.scale)),Math.max(0,Math.round((b.container.offsetHeight-34)/b.view.scale)))};b.view.getBackgroundPageBounds=function(){var C=this.graph.getPageLayout(),M=this.graph.getPageSize();return new mxRectangle(this.scale*(this.translate.x+C.x*M.width),this.scale*(this.translate.y+C.y*M.height),this.scale*C.width*M.width,
this.scale*C.height*M.height)};b.getPreferredPageSize=function(C,M,ba){C=this.getPageLayout();M=this.getPageSize();return new mxRectangle(0,0,C.width*M.width,C.height*M.height)};var e=null,g=this;if(this.editor.isChromelessView()){this.chromelessResize=e=mxUtils.bind(this,function(C,M,ba,V){if(null!=b.container&&!b.isViewer()){ba=null!=ba?ba:0;V=null!=V?V:0;var Z=b.pageVisible?b.view.getBackgroundPageBounds():b.getGraphBounds(),aa=mxUtils.hasScrollbars(b.container),ka=b.view.translate,qa=b.view.scale, | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
mxCellEditor.prototype.installListeners=function(x){function L(ea,la){la.originalNode=ea;ea=ea.firstChild;for(var oa=la.firstChild;null!=ea&&null!=oa;)L(ea,oa),ea=ea.nextSibling,oa=oa.nextSibling;return la}function P(ea,la){if(null!=ea)if(la.originalNode!=ea)X(ea);else for(ea=ea.firstChild,la=la.firstChild;null!=ea;){var oa=ea.nextSibling;null==la?X(ea):(P(ea,la),la=la.nextSibling);ea=oa}}function X(ea){for(var la=ea.firstChild;null!=la;){var oa=la.nextSibling;X(la);la=oa}1==ea.nodeType&&("BR"===
ea.nodeName||null!=ea.firstChild)||3==ea.nodeType&&0!=mxUtils.trim(mxUtils.getTextContent(ea)).length?(3==ea.nodeType&&mxUtils.setTextContent(ea,mxUtils.getTextContent(ea).replace(/\n|\r/g,"")),1==ea.nodeType&&(ea.removeAttribute("style"),ea.removeAttribute("class"),ea.removeAttribute("width"),ea.removeAttribute("cellpadding"),ea.removeAttribute("cellspacing"),ea.removeAttribute("border"))):ea.parentNode.removeChild(ea)}H.apply(this,arguments);7!==document.documentMode&&8!==document.documentMode&&
mxEvent.addListener(this.textarea,"paste",mxUtils.bind(this,function(ea){var la=L(this.textarea,this.textarea.cloneNode(!0));window.setTimeout(mxUtils.bind(this,function(){null!=this.textarea&&(0<=this.textarea.innerHTML.indexOf("<o:OfficeDocumentSettings>")||0<=this.textarea.innerHTML.indexOf("\x3c!--[if !mso]>")?P(this.textarea,la):Graph.removePasteFormatting(this.textarea))}),0)}))};mxCellEditor.prototype.toggleViewMode=function(){var x=this.graph.view.getState(this.editingCell);if(null!=x){var L= | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
0);l+=B;u+=B;p-=2*B;t-=2*B;0<p&&0<t&&(c.setShadow(!1),ib.apply(this,[c,l,u,p,t]))}};mxUtils.extend(Q,mxRectangleShape);Q.prototype.isHtmlAllowed=function(){return!1};Q.prototype.getLabelBounds=function(c){if(1==this.style["double"]){var l=(Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0))*this.scale;return new mxRectangle(c.x+l,c.y+l,c.width-2*l,c.height-2*l)}return c};Q.prototype.paintForeground=function(c,l,u,p,t){if(null!=this.style){if(!this.outline&&1==this.style["double"]){var B= | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
Graph.prototype.createVertexWipeAnimation=function(b,e){var g=new mxRectangle.fromRectangle(b.shape.bounds);return{execute:mxUtils.bind(this,function(n,y){null!=b.shape&&(y=n/y,e||(y=1-y),b.shape.bounds=new mxRectangle(g.x,g.y,g.width*y,g.height),b.shape.redraw(),0==n&&Graph.setOpacityForNodes(this.getNodesForCells([b.cell]),1),null!=b.text&&null!=b.text.node&&(b.text.node.style.opacity=y))}),stop:mxUtils.bind(this,function(){null!=b.shape&&(b.shape.bounds=g,b.shape.redraw(),null!=b.text&&null!=b.text.node&& | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
!0;try{this.rc.path(this.path.join(" "),Z)}catch(ka){}this.passThrough=!1}else if(null!=this.nextShape){for(var aa in Z)this.nextShape.options[aa]=Z[aa];Z.stroke!=mxConstants.NONE&&null!=Z.stroke||delete this.nextShape.options.stroke;Z.filled||delete this.nextShape.options.fill;this.passThrough=!0;this.rc.draw(this.nextShape);this.passThrough=!1}};m.prototype.stroke=function(){this.passThrough?this.originalStroke.apply(this.canvas,arguments):this.drawPath(this.getStyle(!0,!1))};m.prototype.fill=function(){this.passThrough? | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
Editor.prototype.createUndoManager=function(){var b=this.graph,e=new mxUndoManager;this.undoListener=function(n,y){e.undoableEditHappened(y.getProperty("edit"))};var g=mxUtils.bind(this,function(n,y){this.undoListener.apply(this,arguments)});b.getModel().addListener(mxEvent.UNDO,g);b.getView().addListener(mxEvent.UNDO,g);g=function(n,y){n=b.getSelectionCellsForChanges(y.getProperty("edit").changes,function(E){return!(E instanceof mxChildChange)});if(0<n.length){b.getModel();y=[];for(var q=0;q<n.length;q++)null!=
b.view.getState(n[q])&&y.push(n[q]);b.setSelectionCells(y)}};e.addListener(mxEvent.UNDO,g);e.addListener(mxEvent.REDO,g);return e};Editor.prototype.initStencilRegistry=function(){};Editor.prototype.destroy=function(){null!=this.graph&&(this.graph.destroy(),this.graph=null)};OpenFile=function(b){this.consumer=this.producer=null;this.done=b;this.args=null};OpenFile.prototype.setConsumer=function(b){this.consumer=b;this.execute()};OpenFile.prototype.setData=function(){this.args=arguments;this.execute()}; | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
m.shareCursorPosition);null!=m.showRemoteCursors&&(EditorUi.prototype.showRemoteCursors=m.showRemoteCursors);null!=m.restrictExport&&(DrawioFile.RESTRICT_EXPORT=m.restrictExport)}};Editor.isAutoDarkMode=function(m){return!m&&"auto"==urlParams.dark||Editor.isSettingsEnabled()&&"auto"==mxSettings.settings.darkMode};Editor.isSettingsEnabled=function(){return"undefined"!==typeof window.mxSettings&&(isLocalStorage||mxClient.IS_CHROMEAPP)};Editor.configureFontCss=function(m){if(null!=m){Editor.prototype.fontCss= | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
this.outerStroke&&(c.ellipse(l,u,p,t),c.stroke())};mxCellRenderer.registerShape("endState",ya);mxUtils.extend(Oa,ya);Oa.prototype.outerStroke=!1;mxCellRenderer.registerShape("startState",Oa);mxUtils.extend(Qa,mxArrowConnector);Qa.prototype.defaultWidth=4;Qa.prototype.isOpenEnded=function(){return!0};Qa.prototype.getEdgeWidth=function(){return mxUtils.getNumber(this.style,"width",this.defaultWidth)+Math.max(0,this.strokewidth-1)};Qa.prototype.isArrowRounded=function(){return this.isRounded};mxCellRenderer.registerShape("link", | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
function(){return n.apply(this,arguments)||null!=e.shapePicker||null!=e.currentMenu};var y=b.dblClick;b.dblClick=function(T,F){if(this.isEnabled())if(null!=F||null==e.sidebar||mxEvent.isShiftDown(T)||b.isCellLocked(b.getDefaultParent()))y.apply(this,arguments);else{var K=mxUtils.convertPoint(this.container,mxEvent.getClientX(T),mxEvent.getClientY(T));mxEvent.consume(T);window.setTimeout(mxUtils.bind(this,function(){e.showShapePicker(K.x,K.y)}),30)}};if(null!=this.hoverIcons){this.hoverIcons.addListener("reset", | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
function X(){mxEllipse.call(this)}function ea(){mxEllipse.call(this)}function la(){mxRhombus.call(this)}function oa(){mxEllipse.call(this)}function xa(){mxEllipse.call(this)}function sa(){mxEllipse.call(this)}function va(){mxEllipse.call(this)}function Fa(){mxActor.call(this)}function Ua(){mxActor.call(this)}function ab(){mxActor.call(this)}function Na(c,l,u,p){mxShape.call(this);this.bounds=c;this.fill=l;this.stroke=u;this.strokewidth=null!=p?p:1;this.rectStyle="square";this.size=10;this.absoluteCornerSize= | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
function Action(b,e,g,n,y){mxEventSource.call(this);this.label=b;this.funct=this.createFunction(e);this.enabled=null!=g?g:!0;this.iconCls=n;this.shortcut=y;this.visible=!0}mxUtils.extend(Action,mxEventSource);Action.prototype.createFunction=function(b){return b};Action.prototype.setEnabled=function(b){this.enabled!=b&&(this.enabled=b,this.fireEvent(new mxEventObject("stateChanged")))};Action.prototype.isEnabled=function(){return this.enabled}; | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
EditorUi.prototype.centerShapePicker=function(b,e,g,n,y){if(y==mxConstants.DIRECTION_EAST||y==mxConstants.DIRECTION_WEST)b.style.width="40px";var q=b.getBoundingClientRect();y==mxConstants.DIRECTION_NORTH?(g-=q.width/2-10,n-=q.height+6):y==mxConstants.DIRECTION_SOUTH?(g-=q.width/2-10,n+=e.height+6):y==mxConstants.DIRECTION_WEST?(g-=q.width+6,n-=q.height/2-10):y==mxConstants.DIRECTION_EAST&&(g+=e.width+6,n-=q.height/2-10);b.style.left=g+"px";b.style.top=n+"px"}; | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
mxClient.IS_FF&&mxClient.IS_WIN&&null==S.getState()&&mxEvent.isTouchEvent(S.getEvent())};var O=null;this.panningHandler.addListener(mxEvent.PAN_START,mxUtils.bind(this,function(){this.isEnabled()&&(O=this.container.style.cursor,this.container.style.cursor="move")}));this.panningHandler.addListener(mxEvent.PAN_END,mxUtils.bind(this,function(){this.isEnabled()&&(this.container.style.cursor=O)}));this.popupMenuHandler.autoExpand=!0;this.popupMenuHandler.isSelectOnPopup=function(S){return mxEvent.isMouseEvent(S.getEvent())}; | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
ma.width=ja;ma.height=fa;var da=ma.toDataURL();ia!==da&&(f=ia,J=ja,O=fa)}}}catch(S){}k(f,J,O)};EditorUi.prototype.extractGraphModelFromPng=function(d){return Editor.extractGraphModelFromPng(d)};EditorUi.prototype.loadImage=function(d,f,k){try{var v=new Image;v.onload=function(){v.width=0<v.width?v.width:120;v.height=0<v.height?v.height:120;f(v)};null!=k&&(v.onerror=k);v.src=d}catch(z){if(null!=k)k(z);else throw z;}};EditorUi.prototype.getDefaultSketchMode=function(){var d="1"==urlParams.sketch;return"0"!=
(null!=urlParams.rough?urlParams.rough:d)};var y=EditorUi.prototype.createUi;EditorUi.prototype.createUi=function(){Editor.isSettingsEnabled()&&(this.doSetSketchMode(null!=mxSettings.settings.sketchMode&&null==urlParams.rough&&null==urlParams.sketch?mxSettings.settings.sketchMode:this.getDefaultSketchMode()),null!=mxSettings.settings.sidebarTitles&&(Sidebar.prototype.sidebarTitles=mxSettings.settings.sidebarTitles),this.formatWidth=mxSettings.getFormatWidth());y.apply(this,arguments)};var q=EditorUi.prototype.init; | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
null!=d.pages&&null!=d.currentPage?mxUtils.indexOf(d.pages,d.currentPage)+1:1;return U};var fa=f.getGlobalVariable;f.getGlobalVariable=function(U){var Q=d.getCurrentFile();return"filename"==U&&null!=Q?Q.getTitle():"page"==U&&null!=d.currentPage?d.currentPage.getName():"pagenumber"==U?null!=d.currentPage&&null!=d.pages?mxUtils.indexOf(d.pages,d.currentPage)+1:1:"pagecount"==U?null!=d.pages?d.pages.length:1:fa.apply(this,arguments)};var ca=null;this.addListener("fileDescriptorChanged",function(){var U= | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
this.container.scrollTop/this.view.scale-this.view.translate.y;if(this.pageVisible){var X=this.getPageLayout(),ea=this.getPageSize();L=Math.max(L,X.x*ea.width);P=Math.max(P,X.y*ea.height)}return new mxPoint(this.snap(L+x),this.snap(P+x))};Graph.prototype.getFreeInsertPoint=function(){var x=this.view,L=this.getGraphBounds(),P=this.getInsertPoint(),X=this.snap(Math.round(Math.max(P.x,L.x/x.scale-x.translate.x+(0==L.width?2*this.gridSize:0))));x=this.snap(Math.round(Math.max(P.y,(L.y+L.height)/x.scale-
x.translate.y+2*this.gridSize)));return new mxPoint(X,x)};Graph.prototype.getCenterInsertPoint=function(x){x=null!=x?x:new mxRectangle;return mxUtils.hasScrollbars(this.container)?new mxPoint(this.snap(Math.round((this.container.scrollLeft+this.container.clientWidth/2)/this.view.scale-this.view.translate.x-x.width/2)),this.snap(Math.round((this.container.scrollTop+this.container.clientHeight/2)/this.view.scale-this.view.translate.y-x.height/2))):new mxPoint(this.snap(Math.round(this.container.clientWidth/ | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
mxVertexHandler.prototype.updateLinkHint;var Ea=mxEdgeHandler.prototype.createConstraintHandler;mxEdgeHandler.prototype.createConstraintHandler=function(){var x=Ea.apply(this,arguments);x.isEnabled=mxUtils.bind(this,function(){return this.state.view.graph.connectionHandler.isEnabled()});return x};var za=mxEdgeHandler.prototype.init;mxEdgeHandler.prototype.init=function(){za.apply(this,arguments);var x=mxUtils.bind(this,function(){null!=this.linkHint&&(this.linkHint.style.display=1==this.graph.getSelectionCount()?
"":"none");null!=this.labelShape&&(this.labelShape.node.style.display=this.graph.isEnabled()&&this.graph.getSelectionCount()<this.graph.graphHandler.maxCells?"":"none")});this.changeHandler=mxUtils.bind(this,function(X,ea){this.updateLinkHint(this.graph.getLinkForCell(this.state.cell),this.graph.getLinksForState(this.state));x();this.redrawHandles()});this.graph.getSelectionModel().addListener(mxEvent.CHANGE,this.changeHandler);this.graph.getModel().addListener(mxEvent.CHANGE,this.changeHandler);
var L=this.graph.getLinkForCell(this.state.cell),P=this.graph.getLinksForState(this.state);if(null!=L||null!=P&&0<P.length)this.updateLinkHint(L,P),this.redrawHandles()};var Va=mxConnectionHandler.prototype.init;mxConnectionHandler.prototype.init=function(){Va.apply(this,arguments);this.constraintHandler.isEnabled=mxUtils.bind(this,function(){return this.graph.connectionHandler.isEnabled()})};var La=mxVertexHandler.prototype.redrawHandles;mxVertexHandler.prototype.redrawHandles=function(){if(null!= | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
p=0;p<this.line.length&&!l;p++){var t=this.line[p];null!=t&&null!=u&&(l=mxUtils.rectangleIntersectsSegment(c,u,t));u=t}return l};mxCellRenderer.registerShape("tableLine",b);mxUtils.extend(e,mxSwimlane);e.prototype.getLabelBounds=function(c){return 0==this.getTitleSize()?mxShape.prototype.getLabelBounds.apply(this,arguments):mxSwimlane.prototype.getLabelBounds.apply(this,arguments)};e.prototype.paintVertexShape=function(c,l,u,p,t){var B=null!=this.state?this.state.view.graph.isCellCollapsed(this.state.cell):
!1,D=this.isHorizontal(),ha=this.getTitleSize();0==ha||this.outline?sa.prototype.paintVertexShape.apply(this,arguments):(mxSwimlane.prototype.paintVertexShape.apply(this,arguments),c.translate(-l,-u));B||this.outline||!(D&&ha<t||!D&&ha<p)||this.paintForeground(c,l,u,p,t)};e.prototype.paintForeground=function(c,l,u,p,t){if(null!=this.state){var B=this.flipH,D=this.flipV;if(this.direction==mxConstants.DIRECTION_NORTH||this.direction==mxConstants.DIRECTION_SOUTH){var ha=B;B=D;D=ha}c.rotate(-this.getShapeRotation(), | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
EditorUi.prototype.updateSelectionStateForCell=function(b,e,g,n){g=this.editor.graph;b.cells.push(e);if(g.getModel().isVertex(e)){b.connections=0<g.model.getEdgeCount(e);b.unlocked=b.unlocked&&!g.isCellLocked(e);b.resizable=b.resizable&&g.isCellResizable(e);b.rotatable=b.rotatable&&g.isCellRotatable(e);b.movable=b.movable&&g.isCellMovable(e)&&!g.isTableRow(e)&&!g.isTableCell(e);b.swimlane=b.swimlane||g.isSwimlane(e);b.table=b.table||g.isTable(e);b.cell=b.cell||g.isTableCell(e);b.row=b.row||g.isTableRow(e);
b.vertices.push(e);var y=g.getCellGeometry(e);if(null!=y&&(0<y.width?null==b.width?b.width=y.width:b.width!=y.width&&(b.width=""):b.containsLabel=!0,0<y.height?null==b.height?b.height=y.height:b.height!=y.height&&(b.height=""):b.containsLabel=!0,!y.relative||null!=y.offset)){var q=y.relative?y.offset.x:y.x;y=y.relative?y.offset.y:y.y;null==b.x?b.x=q:b.x!=q&&(b.x="");null==b.y?b.y=y:b.y!=y&&(b.y="")}}else g.getModel().isEdge(e)&&(b.edges.push(e),b.connections=!0,b.resizable=!1,b.rotatable=!1,b.movable=
!1);e=g.view.getState(e);null!=e&&(b.autoSize=b.autoSize||g.isAutoSizeState(e),b.glass=b.glass&&g.isGlassState(e),b.rounded=b.rounded&&g.isRoundedState(e),b.lineJumps=b.lineJumps&&g.isLineJumpState(e),b.image=b.image||g.isImageState(e),b.shadow=b.shadow&&g.isShadowState(e),b.fill=b.fill&&g.isFillState(e),b.gradient=b.fill&&g.isGradientState(e),b.stroke=b.stroke&&g.isStrokeState(e),q=mxUtils.getValue(e.style,mxConstants.STYLE_SHAPE,null),b.containsImage=b.containsImage||"image"==q,g.mergeStyle(e.style,
b.style,n))}; | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
0)};Na.prototype.paintRight=function(c,l,u,p,t,B,D,ha,I){"square"==D||"default"==D&&"square"==B||!I?c.lineTo(p,t):c.lineTo(p,t-ha)};Na.prototype.paintLeft=function(c,l,u,p,t,B,D,ha,I){"square"==D||"default"==D&&"square"==B||!I?c.lineTo(0,0):c.lineTo(0,ha)};Na.prototype.paintSE=function(c,l,u,p,t,B,D,ha,I){if(I)if("rounded"==D||"default"==D&&"rounded"==B||"invRound"==D||"default"==D&&"invRound"==B){l=0;if("rounded"==D||"default"==D&&"rounded"==B)l=1;c.arcTo(ha,ha,0,0,l,p-ha,t)}else("snip"==D||"default"==
D&&"snip"==B||"fold"==D||"default"==D&&"fold"==B)&&c.lineTo(p-ha,t);else c.lineTo(p,t)};Na.prototype.paintBottom=function(c,l,u,p,t,B,D,ha,I){"square"==D||"default"==D&&"square"==B||!I?c.lineTo(0,t):c.lineTo(ha,t)};Na.prototype.paintSW=function(c,l,u,p,t,B,D,ha,I){if(I)if("rounded"==D||"default"==D&&"rounded"==B||"invRound"==D||"default"==D&&"invRound"==B){l=0;if("rounded"==D||"default"==D&&"rounded"==B)l=1;c.arcTo(ha,ha,0,0,l,0,t-ha)}else("snip"==D||"default"==D&&"snip"==B||"fold"==D||"default"== | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
2,t/3);c.lineTo(p,t/3);c.moveTo(p/2,2*t/3);c.lineTo(0,t);c.moveTo(p/2,2*t/3);c.lineTo(p,t);c.end();c.stroke()};mxCellRenderer.registerShape("umlActor",m);mxUtils.extend(C,mxShape);C.prototype.getLabelMargins=function(c){return new mxRectangle(c.width/6,0,0,0)};C.prototype.paintBackground=function(c,l,u,p,t){c.translate(l,u);c.begin();c.moveTo(0,t/4);c.lineTo(0,3*t/4);c.end();c.stroke();c.begin();c.moveTo(0,t/2);c.lineTo(p/6,t/2);c.end();c.stroke();c.ellipse(p/6,0,5*p/6,t);c.fillAndStroke()};mxCellRenderer.registerShape("umlBoundary", | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
EditorUi.prototype.showError=function(b,e,g,n,y,q,E,N,T,F,K,R,W){b=new ErrorDialog(this,b,e,g||mxResources.get("ok"),n,y,q,E,R,N,T);e=Math.ceil(null!=e?e.length/50:1);this.showDialog(b.container,F||340,K||100+20*e,!0,!1,W);b.init()};EditorUi.prototype.showDialog=function(b,e,g,n,y,q,E,N,T,F){this.editor.graph.tooltipHandler.resetTimer();this.editor.graph.tooltipHandler.hideTooltip();null==this.dialogs&&(this.dialogs=[]);this.dialog=new Dialog(this,b,e,g,n,y,q,E,N,T,F);this.dialogs.push(this.dialog)}; | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
mxGraphView.prototype.updateFloatingTerminalPoint=function(K,R,W,d){if(null==R||null==K||"1"!=R.style.snapToPoint&&"1"!=K.style.snapToPoint)N.apply(this,arguments);else{R=this.getTerminalPort(K,R,d);var f=this.getNextPoint(K,W,d),k=this.graph.isOrthogonal(K),v=mxUtils.toRadians(Number(R.style[mxConstants.STYLE_ROTATION]||"0")),z=new mxPoint(R.getCenterX(),R.getCenterY());if(0!=v){var A=Math.cos(-v),H=Math.sin(-v);f=mxUtils.getRotatedPoint(f,A,H,z)}A=parseFloat(K.style[mxConstants.STYLE_PERIMETER_SPACING]||
0);A+=parseFloat(K.style[d?mxConstants.STYLE_SOURCE_PERIMETER_SPACING:mxConstants.STYLE_TARGET_PERIMETER_SPACING]||0);f=this.getPerimeterPoint(R,f,0==v&&k,A);0!=v&&(A=Math.cos(v),H=Math.sin(v),f=mxUtils.getRotatedPoint(f,A,H,z));K.setAbsoluteTerminalPoint(this.snapToAnchorPoint(K,R,W,d,f),d)}};mxGraphView.prototype.snapToAnchorPoint=function(K,R,W,d,f){if(null!=R&&null!=K){K=this.graph.getAllConnectionConstraints(R);d=W=null;if(null!=K)for(var k=0;k<K.length;k++){var v=this.graph.getConnectionPoint(R, | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
EditorUi.prototype.init=function(){mxStencilRegistry.allowEval=mxStencilRegistry.allowEval&&!this.isOfflineApp();var d=this,f=this.editor.graph;Graph.touchStyle&&(f.panningHandler.isPanningTrigger=function(U){var Q=U.getEvent();return null==U.getState()&&!mxEvent.isMouseEvent(Q)&&!f.freehand.isDrawing()||mxEvent.isPopupTrigger(Q)&&(null==U.getState()||mxEvent.isControlDown(Q)||mxEvent.isShiftDown(Q))});f.cellEditor.editPlantUmlData=function(U,Q,Y){var m=JSON.parse(Y);Q=new TextareaDialog(d,mxResources.get("plantUml")+ | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
function ba(){mxShape.call(this)}function V(){mxShape.call(this)}function Z(){mxRectangleShape.call(this)}function aa(){mxShape.call(this)}function ka(){mxShape.call(this)}function qa(){mxShape.call(this)}function ra(){mxShape.call(this)}function pa(){mxShape.call(this)}function wa(){mxCylinder.call(this)}function Da(){mxCylinder.call(this)}function Ba(){mxRectangleShape.call(this)}function ya(){mxDoubleEllipse.call(this)}function Oa(){mxDoubleEllipse.call(this)}function Qa(){mxArrowConnector.call(this); | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
X.setAttribute("label",x.value||"");null!=P?X.setAttribute(L,P):X.removeAttribute(L);this.model.setValue(x,X)};Graph.prototype.isTargetShape=function(x,L,P){x=mxUtils.getValue(this.getCurrentCellStyle(x),mxConstants.STYLE_SHAPE,"");for(P=0;P<L.length;P++){var X=mxUtils.getValue(this.getCurrentCellStyle(L[P]),"targetShapes","").split(",");if(0<=mxUtils.indexOf(X,x))return!0}return!1};var k=Graph.prototype.getDropTarget;Graph.prototype.getDropTarget=function(x,L,P,X){if(mxEvent.isAltDown(L))return null;
for(var ea=0;ea<x.length;ea++){var la=this.model.getParent(x[ea]);if(this.model.isEdge(la)&&0>mxUtils.indexOf(x,la))return null}la=k.apply(this,arguments);var oa=!0;for(ea=0;ea<x.length&&oa;ea++)oa=oa&&this.isTableRow(x[ea]);oa&&(this.isTableCell(la)&&(la=this.model.getParent(la)),this.isTableRow(la)&&(la=this.model.getParent(la)),this.isTable(la)||(la=null));return la};Graph.prototype.click=function(x){mxGraph.prototype.click.call(this,x);this.firstClickState=x.getState();this.firstClickSource=x.getSource()}; | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
y.popupMenuHandler.autoExpand=!0;null!=this.menus&&(y.popupMenuHandler.factoryMethod=mxUtils.bind(this,function(Q,Y,m){this.menus.createPopupMenu(Q,Y,m)}));mxEvent.addGestureListeners(document,mxUtils.bind(this,function(Q){y.popupMenuHandler.hideMenu()}));this.keyHandler=this.createKeyHandler(b);this.getKeyHandler=function(){return keyHandler};y.connectionHandler.addListener(mxEvent.CONNECT,function(Q,Y){var m=[Y.getProperty("cell")];Y.getProperty("terminalInserted")&&(m.push(Y.getProperty("terminal")), | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
N=this.getCellGeometry(E);return E};Graph.prototype.isPart=function(E){return"1"==mxUtils.getValue(this.getCurrentCellStyle(E),"part","0")||this.isTableCell(E)||this.isTableRow(E)};Graph.prototype.getCompositeParents=function(E){for(var N=new mxDictionary,T=[],F=0;F<E.length;F++){var K=this.getCompositeParent(E[F]);this.isTableCell(K)&&(K=this.graph.model.getParent(K));this.isTableRow(K)&&(K=this.graph.model.getParent(K));null==K||N.get(K)||(N.put(K,!0),T.push(K))}return T};Graph.prototype.getReferenceTerminal= | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
this.spacing=0}function Ta(){mxArrowConnector.call(this);this.spacing=0}function ta(){mxActor.call(this)}function Aa(){mxRectangleShape.call(this)}function Ea(){mxActor.call(this)}function za(){mxActor.call(this)}function Va(){mxActor.call(this)}function La(){mxActor.call(this)}function Ka(){mxActor.call(this)}function cb(){mxActor.call(this)}function Ca(){mxActor.call(this)}function Ma(){mxActor.call(this)}function x(){mxActor.call(this)}function L(){mxActor.call(this)}function P(){mxEllipse.call(this)} | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
arguments);this.lastX=c;this.lastY=l};fa.prototype.destroy=function(){this.canvas.lineTo=this.originalLineTo;this.canvas.moveTo=this.originalMoveTo;this.canvas.close=this.originalClose;this.canvas.quadTo=this.originalQuadTo;this.canvas.curveTo=this.originalCurveTo;this.canvas.arcTo=this.originalArcTo};var kb=mxShape.prototype.beforePaint;mxShape.prototype.beforePaint=function(c){kb.apply(this,arguments);null==c.handJiggle&&(c.handJiggle=this.createHandJiggle(c))};var Pa=mxShape.prototype.afterPaint; | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
40;Z.prototype.isHtmlAllowed=function(){return!1};Z.prototype.getLabelBounds=function(c){var l=Math.max(0,Math.min(c.height,parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale));return new mxRectangle(c.x,c.y,c.width,l)};Z.prototype.paintBackground=function(c,l,u,p,t){var B=Math.max(0,Math.min(t,parseFloat(mxUtils.getValue(this.style,"size",this.size)))),D=mxUtils.getValue(this.style,"participant");null==D||null==this.state?mxRectangleShape.prototype.paintBackground.call(this,c,l,
u,p,B):(D=this.state.view.graph.cellRenderer.getShape(D),null!=D&&D!=Z&&(D=new D,D.apply(this.state),c.save(),D.paintVertexShape(c,l,u,p,B),c.restore()));B<t&&(c.setDashed("1"==mxUtils.getValue(this.style,"lifelineDashed","1")),c.begin(),c.moveTo(l+p/2,u+B),c.lineTo(l+p/2,u+t),c.end(),c.stroke())};Z.prototype.paintForeground=function(c,l,u,p,t){var B=Math.max(0,Math.min(t,parseFloat(mxUtils.getValue(this.style,"size",this.size))));mxRectangleShape.prototype.paintForeground.call(this,c,l,u,p,Math.min(t, | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
!1;Z.setFillColor=Da;Z.setStrokeColor=wa;this.configurePointerEvents=pa;this.stroke=ra;this.fill=qa;Z.restore();ka&&null!=qa&&(Z.addTolerance=function(){})}ba.apply(this,arguments);Z.addTolerance=aa};var V=mxShape.prototype.paintGlassEffect;mxShape.prototype.paintGlassEffect=function(Z,aa,ka,qa,ra,pa){null!=Z.handJiggle&&Z.handJiggle.constructor==m?(Z.handJiggle.passThrough=!0,V.apply(this,arguments),Z.handJiggle.passThrough=!1):V.apply(this,arguments)}})();Editor.fastCompress=function(m){return null== | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
W,[N[T]])}}R&&this.setCellStyles(mxConstants.STYLE_PERIMETER,K,[N[T]])}}finally{this.model.endUpdate()}};Graph.prototype.isFastZoomEnabled=function(){return"nocss"!=urlParams.zoom&&!mxClient.NO_FO&&!mxClient.IS_EDGE&&!this.useCssTransforms&&(this.isCssTransformsSupported()||mxClient.IS_IOS)};Graph.prototype.isCssTransformsSupported=function(){return this.dialect==mxConstants.DIALECT_SVG&&!mxClient.NO_FO&&(!this.lightbox||!mxClient.IS_SF)};Graph.prototype.getCellAt=function(E,N,T,F,K,R){this.useCssTransforms&& | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
N.appendChild(T);q.appendChild(N);y.appendChild(q);n.appendChild(y);this.container=n};PrintDialog.printPreview=function(b){try{null!=b.wnd&&window.setTimeout(function(){b.wnd.focus();b.wnd.print();b.wnd.close()},500)}catch(e){}}; | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
la||ea))};Graph.prototype.createGroupCell=function(){var x=mxGraph.prototype.createGroupCell.apply(this,arguments);x.setStyle("group");return x};Graph.prototype.isExtendParentsOnAdd=function(x){var L=mxGraph.prototype.isExtendParentsOnAdd.apply(this,arguments);if(L&&null!=x&&null!=this.layoutManager){var P=this.model.getParent(x);null!=P&&(P=this.layoutManager.getLayout(P),null!=P&&P.constructor==mxStackLayout&&(L=!1))}return L};Graph.prototype.getPreferredSizeForCell=function(x){var L=mxGraph.prototype.getPreferredSizeForCell.apply(this, | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
4)},function(B,D){B=null!=u&&"0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?D.x-B.x:Math.max(0,Math.min(c,(D.x-B.x)/B.width*.75));this.state.style.size=B},!1,!0)];mxUtils.getValue(p.style,mxConstants.STYLE_ROUNDED,!1)&&t.push(pb(p));return t}},ob=function(){return function(c){var l=[];mxUtils.getValue(c.style,mxConstants.STYLE_ROUNDED,!1)&&l.push(pb(c));return l}},pb=function(c,l){return hb(c,[mxConstants.STYLE_ARCSIZE],function(u){var p=null!=l?l:u.height/8;if("1"==mxUtils.getValue(c.style, | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
ra(pa.responseText,"text/xml"):this.handleError({message:mxResources.get(413==pa.status?"drawingTooLarge":"invalidOrMissingFile")},mxResources.get("errorLoadingFile")))})):(this.spinner.stop(),this.showError(mxResources.get("error"),mxResources.get("notInOffline"))):ra(Y,m)}}));Q.stopPropagation();Q.preventDefault()})),mxEvent.addListener(J,"dragleave",function(Q){J.style.cursor="";J.style.backgroundColor="";Q.stopPropagation();Q.preventDefault()}));ja=ja.cloneNode(!1);ja.setAttribute("src",Editor.editImage); | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
.5),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,u-p));c.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,u-p));c.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,p));return c};ma.prototype.getConstraints=function(c,l,u){c=[];mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE);var p=Math.max(0,Math.min(u,parseFloat(mxUtils.getValue(this.style,
"size",this.size))));parseFloat(mxUtils.getValue(this.style,"position",this.position));var t=l*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position2",this.position2))));parseFloat(mxUtils.getValue(this.style,"base",this.base));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1));c.push(new mxConnectionConstraint(new mxPoint(.25,0),!1));c.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));c.push(new mxConnectionConstraint(new mxPoint(.75,0),!1));c.push(new mxConnectionConstraint(new mxPoint(1,
0),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,.5*(u-p)));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,u-p));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,u));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,u-p));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*(u-p)));l>=2*p&&c.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));return c};mxRectangleShape.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0, | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
this.spacing=0}function Ta(){mxArrowConnector.call(this);this.spacing=0}function ta(){mxActor.call(this)}function Aa(){mxRectangleShape.call(this)}function Ea(){mxActor.call(this)}function za(){mxActor.call(this)}function Va(){mxActor.call(this)}function La(){mxActor.call(this)}function Ka(){mxActor.call(this)}function cb(){mxActor.call(this)}function Ca(){mxActor.call(this)}function Ma(){mxActor.call(this)}function x(){mxActor.call(this)}function L(){mxActor.call(this)}function P(){mxEllipse.call(this)} | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
function X(){mxEllipse.call(this)}function ea(){mxEllipse.call(this)}function la(){mxRhombus.call(this)}function oa(){mxEllipse.call(this)}function xa(){mxEllipse.call(this)}function sa(){mxEllipse.call(this)}function va(){mxEllipse.call(this)}function Fa(){mxActor.call(this)}function Ua(){mxActor.call(this)}function ab(){mxActor.call(this)}function Na(c,l,u,p){mxShape.call(this);this.bounds=c;this.fill=l;this.stroke=u;this.strokewidth=null!=p?p:1;this.rectStyle="square";this.size=10;this.absoluteCornerSize= | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
J:this.emptyDiagramXml,null!=urlParams.title?decodeURIComponent(urlParams.title):this.defaultFilename,!0);H.getHash=function(){return v};this.fileLoaded(H);"csv"==d.format&&this.importCsv(J,mxUtils.bind(this,function(ca){this.editor.undoManager.clear();this.editor.setModified(!1);this.editor.setStatus("")}));if(null!=d.update){var O=null!=d.interval?parseInt(d.interval):6E4,G=null,ja=mxUtils.bind(this,function(){var ca=this.currentPage;mxUtils.post(d.update,"xml="+encodeURIComponent(mxUtils.getXml(this.editor.getGraphXml())), | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
0),!1,null,l-p,u));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t+l-p),u));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,u));return c};wa.prototype.getConstraints=function(c,l,u){l=parseFloat(mxUtils.getValue(c,"jettyWidth",wa.prototype.jettyWidth))/2;c=parseFloat(mxUtils.getValue(c,"jettyHeight",wa.prototype.jettyHeight));var p=[new mxConnectionConstraint(new mxPoint(0,0),!1,null,l),new mxConnectionConstraint(new mxPoint(.25,0),!0),new mxConnectionConstraint(new mxPoint(.5,
0),!0),new mxConnectionConstraint(new mxPoint(.75,0),!0),new mxConnectionConstraint(new mxPoint(1,0),!0),new mxConnectionConstraint(new mxPoint(1,.25),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(1,.75),!0),new mxConnectionConstraint(new mxPoint(0,1),!1,null,l),new mxConnectionConstraint(new mxPoint(.25,1),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(.75,1),!0),new mxConnectionConstraint(new mxPoint(1,1),
!0),new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,Math.min(u-.5*c,1.5*c)),new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,Math.min(u-.5*c,3.5*c))];u>5*c&&p.push(new mxConnectionConstraint(new mxPoint(0,.75),!1,null,l));u>8*c&&p.push(new mxConnectionConstraint(new mxPoint(0,.5),!1,null,l));u>15*c&&p.push(new mxConnectionConstraint(new mxPoint(0,.25),!1,null,l));return p};x.prototype.constraints=mxRectangleShape.prototype.constraints;L.prototype.constraints=mxRectangleShape.prototype.constraints; | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
Graph.prototype.getDefaultTranslate=function(b){var e=this.getPagePadding(),g=this.getPageSize();return new mxPoint(e.x-b.x*g.width,e.y-b.y*g.height)};Graph.prototype.updateMinimumSize=function(){var b=this.getPageLayout(),e=this.getPagePadding(),g=this.getPageSize(),n=Math.ceil(2*e.x+b.width*g.width);b=Math.ceil(2*e.y+b.height*g.height);if(null==this.minimumGraphSize||this.minimumGraphSize.width!=n||this.minimumGraphSize.height!=b)this.minimumGraphSize=new mxRectangle(0,0,n,b)}; | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
Graph.prototype.createCrossFunctionalSwimlane=function(b,e,g,n,y,q,E,N,T){g=null!=g?g:120;n=null!=n?n:120;E=null!=E?E:"shape=tableRow;horizontal=0;swimlaneHead=0;swimlaneBody=0;top=0;left=0;strokeColor=inherit;bottom=0;right=0;dropTarget=0;fontStyle=0;fillColor=none;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;startSize=40;collapsible=0;recursiveResize=0;expand=0;";N=null!=N?N:"swimlane;swimlaneHead=0;swimlaneBody=0;fontStyle=0;strokeColor=inherit;connectable=0;fillColor=none;startSize=40;collapsible=0;recursiveResize=0;expand=0;";
T=null!=T?T:"swimlane;swimlaneHead=0;swimlaneBody=0;fontStyle=0;connectable=0;strokeColor=inherit;fillColor=none;startSize=0;collapsible=0;recursiveResize=0;expand=0;";y=this.createVertex(null,null,null!=y?y:"",0,0,e*g,b*n,null!=q?q:"shape=table;childLayout=tableLayout;"+(null==y?"startSize=0;fillColor=none;":"startSize=40;")+"collapsible=0;recursiveResize=0;expand=0;");q=mxUtils.getValue(this.getCellStyle(y),mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE);y.geometry.width+=q;y.geometry.height+=
q;E=this.createVertex(null,null,"",0,q,e*g+q,n,E);y.insert(this.createParent(E,this.createVertex(null,null,"",q,0,g,n,N),e,g,0));return 1<b?(E.geometry.y=n+q,this.createParent(y,this.createParent(E,this.createVertex(null,null,"",q,0,g,n,T),e,g,0),b-1,0,n)):y}; | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
P.appendChild(ea);L.appendChild(P)}};Graph.prototype.updateSvgLinks=function(x,L,P){x=x.getElementsByTagName("a");for(var X=0;X<x.length;X++)if(null==x[X].getAttribute("target")){var ea=x[X].getAttribute("href");null==ea&&(ea=x[X].getAttribute("xlink:href"));null!=ea&&(null!=L&&/^https?:\/\//.test(ea)?x[X].setAttribute("target",L):P&&this.isCustomLink(ea)&&x[X].setAttribute("href","javascript:void(0);"))}};Graph.prototype.createSvgCanvas=function(x){x=new mxSvgCanvas2D(x);x.minStrokeWidth=this.cellRenderer.minSvgStrokeWidth; | 0 | JavaScript | CWE-79 | 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. | https://cwe.mitre.org/data/definitions/79.html | vulnerable |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.