@zklogic/draw.io
Version:
Draw.IO - Graph Editor integration in Angular-cli
1 lines • 12.6 kB
JavaScript
mxIsElectron||"http:"===location.protocol||function(){var r="default-src 'self'; script-src %script-src% 'self' https://viewer.diagrams.net https://storage.googleapis.com https://apis.google.com https://*.pusher.com 'sha256-r/ILW7KMSJxeo9EYqCTzZyCT0PZ9gHN1BLgki7vpR+A=' 'sha256-5DtSB5mj34lxcEf+HFWbBLEF49xxJaKnWGDWa/utwQA=' 'sha256-8HtpzsH4zj5+RKfTWMxPmWJKBu0OYbn+WuPrLbVky+g=' 'sha256-vS/MxlVD7nbY7AnV+0t1Ap338uF7vrcs7y23KjERhKc=' ; ",s="'sha256-JjkxVHHCCVO0nllPD6hU8bBYSlsikA8TM/o3fhr0bas=' 'sha256-VTG4NbRCx30lYCdLPlgZTrdTopzcdviOjAbS7nk+KbI=' 'sha256-mbkyvR7KVIpvb+DU65TAGUt3LYuyF2kUg8Ktoee8eY4=' 'sha256-7kY8ozVqKLIIBwZ24dhdmZkM26PsOlZmEi72RhmZKoM=' 'sha256-01chdey79TzZe4ihnvvUXXI5y8MklIcKH+vzDdQvsuU=' 'sha256-fGbXK7EYpvNRPca81zPnqJHi2y+34KSgAcZv8mhaSzI=' 'sha256-3hENQqEWUBxdkmJp2kQ2+G0F8NVGzFAVkW5vWDo7ONk=' 'sha256-Z4u/cxrZPHjN20CIXZHTKr+VlqVxrWG8cbbeC2zmPqI=' 'sha256-LDMABiyg2T48kuAV9ouqNCSEqf2OkUdlZK9D9CeZHBs=' 'sha256-XQfwbaSNgLzro3IzkwT0uZLAiBvZzajo0QZx7oW158E=' 'sha256-++XCePvZXKdegIqkwtbudr16Jx87KFh4t/t7UxsbHpw=' 'sha256-v9NOL6IswMbY7zpRZjxkYujhuGRVvZtp1c1MfdnToB4=' 'sha256-5xtuTr9UuyJoTQ76CNLzvSJjS7onwfq73B2rLWCl3aE=' 'sha256-W21B506Ri8aGW3T87iawssPz71NvvbYZfBfzDbBSArU=' 'sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=' 'sha256-nzHi23DROym7G011m6y0DyDd9mvQL2hSJ0Gy3g2T/5Q=' 'sha256-76P1PZLzT12kfw2hkrLn5vu/cWZgcOYuSYU3RT3rXKA=' 'unsafe-hashes'; ",a=r+"connect-src %connect-src% 'self' https://*.draw.io https://*.diagrams.net https://*.googleapis.com wss://*.pusher.com https://*.pusher.com https://api.github.com https://raw.githubusercontent.com https://gitlab.com https://graph.microsoft.com https://*.sharepoint.com https://*.1drv.com https://api.onedrive.com https://dl.dropboxusercontent.com https://*.google.com https://fonts.gstatic.com https://fonts.googleapis.com; img-src * data: blob:; media-src * data:; font-src * about:; frame-src %frame-src% 'self' https://viewer.diagrams.net https://www.draw.io https://*.google.com; style-src %style-src% 'self' https://fonts.googleapis.com "+("1"==urlParams["safe-style-src"]?s:"'unsafe-inline'; ")+"form-action 'none';base-uri 'none';child-src 'none';object-src 'none';",i=a.replace(/%script-src%/g,"https://www.dropbox.com https://api.trello.com https://devhost.jgraph.com 'unsafe-eval'").replace(/%connect-src%/g,"https://*.dropboxapi.com https://trello.com https://api.trello.com").replace(/%style-src%/g,"https://devhost.jgraph.com").replace(/%frame-src%/g,"").replace(/ /g," ");if(mxmeta(null,i,"Content-Security-Policy"),"1"==urlParams["print-csp"]){console.log("Content-Security-Policy");var e=a.replace(/%script-src%/g,"https://www.dropbox.com https://api.trello.com").replace(/%connect-src%/g,"https://*.dropboxapi.com https://api.trello.com").replace(/%frame-src%/g,"").replace(/%style-src%/g,"").replace(/ /g," ")+" frame-ancestors 'self' https://teams.microsoft.com;";console.log("app.diagrams.net:",e);var t=r.replace(/%script-src%/g,"")+"connect-src 'self' https://*.diagrams.net https://*.googleapis.com wss://*.pusher.com https://*.pusher.com https://*.google.com https://fonts.gstatic.com https://fonts.googleapis.com; img-src * data: blob:; media-src * data:; font-src * about:; frame-src 'self' https://viewer.diagrams.net https://*.google.com; style-src 'self' https://fonts.googleapis.com "+s+" object-src 'none';frame-src 'none';worker-src https://se.diagrams.net/service-worker.js;";console.log("se.diagrams.net:",t);var l=a.replace(/%script-src%/g,"https://aui-cdn.atlassian.com https://connect-cdn.atl-paas.net https://ajax.googleapis.com https://cdnjs.cloudflare.com").replace(/%frame-src%/g,"https://www.lucidchart.com https://app.lucidchart.com https://lucid.app blob:").replace(/%style-src%/g,"https://aui-cdn.atlassian.com https://*.atlassian.net").replace(/%connect-src%/g,"").replace(/ /g," ");console.log("ac.draw.io:",l);var d=a.replace(/%script-src%/g,"https://connect-cdn.atl-paas.net").replace(/%frame-src%/g,"blob:").replace(/%style-src%/g,"https://aui-cdn.atlassian.com https://*.atlassian.net").replace(/%connect-src%/g,"https://api.atlassian.com https://api.media.atlassian.com").replace(/ /g," ");console.log("aj.draw.io:",d),console.log("import.diagrams.net:","default-src 'self'; worker-src blob:; img-src 'self' blob: data: https://www.lucidchart.com https://app.lucidchart.com https://lucid.app; style-src 'self' 'unsafe-inline'; frame-src https://www.lucidchart.com https://app.lucidchart.com https://lucid.app;"),console.log("Development:",i),console.log("Header Worker:","let securityHeaders =",JSON.stringify({online:{"Content-Security-Policy":e,"Permissions-Policy":"microphone=()"},se:{"Content-Security-Policy":t,"Permissions-Policy":"microphone=()","Access-Control-Allow-Origin":"https://se.diagrams.net"},teams:{"Content-Security-Policy":e.replace(/ 'sha256-[^']+'/g,""),"Permissions-Policy":"microphone=()"},jira:{"Content-Security-Policy":d,"Permissions-Policy":"microphone=()"},conf:{"Content-Security-Policy":l,"Permissions-Policy":"microphone=()"}},null,4))}}(),mxscript(drawDevUrl+"js/cryptojs/aes.min.js"),mxscript(drawDevUrl+"js/spin/spin.min.js"),mxscript(drawDevUrl+"js/deflate/pako.min.js"),mxscript(drawDevUrl+"js/deflate/base64.js"),mxscript(drawDevUrl+"js/jscolor/jscolor.js"),mxscript(drawDevUrl+"js/sanitizer/sanitizer.min.js"),mxscript(drawDevUrl+"js/croppie/croppie.min.js"),mxscript(drawDevUrl+"js/rough/rough.min.js"),mxscript(geBasePath+"/Editor.js"),mxscript(geBasePath+"/EditorUi.js"),mxscript(geBasePath+"/Sidebar.js"),mxscript(geBasePath+"/Graph.js"),mxscript(geBasePath+"/Format.js"),mxscript(geBasePath+"/Shapes.js"),mxscript(geBasePath+"/Actions.js"),mxscript(geBasePath+"/Menus.js"),mxscript(geBasePath+"/Toolbar.js"),mxscript(geBasePath+"/Dialogs.js"),mxscript(drawDevUrl+"js/diagramly/sidebar/Sidebar.js"),mxscript(drawDevUrl+"js/diagramly/sidebar/Sidebar-ActiveDirectory.js"),mxscript(drawDevUrl+"js/diagramly/sidebar/Sidebar-Advanced.js"),mxscript(drawDevUrl+"js/diagramly/sidebar/Sidebar-AlliedTelesis.js"),mxscript(drawDevUrl+"js/diagramly/sidebar/Sidebar-Android.js"),mxscript(drawDevUrl+"js/diagramly/sidebar/Sidebar-ArchiMate.js"),mxscript(drawDevUrl+"js/diagramly/sidebar/Sidebar-ArchiMate3.js"),mxscript(drawDevUrl+"js/diagramly/sidebar/Sidebar-Arrows2.js"),mxscript(drawDevUrl+"js/diagramly/sidebar/Sidebar-Atlassian.js"),mxscript(drawDevUrl+"js/diagramly/sidebar/Sidebar-AWS.js"),mxscript(drawDevUrl+"js/diagramly/sidebar/Sidebar-AWS3.js"),mxscript(drawDevUrl+"js/diagramly/sidebar/Sidebar-AWS3D.js"),mxscript(drawDevUrl+"js/diagramly/sidebar/Sidebar-AWS4.js"),mxscript(drawDevUrl+"js/diagramly/sidebar/Sidebar-AWS4b.js"),mxscript(drawDevUrl+"js/diagramly/sidebar/Sidebar-Azure.js"),mxscript(drawDevUrl+"js/diagramly/sidebar/Sidebar-Azure2.js"),mxscript(drawDevUrl+"js/diagramly/sidebar/Sidebar-Basic.js"),mxscript(drawDevUrl+"js/diagramly/sidebar/Sidebar-Bootstrap.js"),mxscript(drawDevUrl+"js/diagramly/sidebar/Sidebar-BPMN.js"),mxscript(drawDevUrl+"js/diagramly/sidebar/Sidebar-C4.js"),mxscript(drawDevUrl+"js/diagramly/sidebar/Sidebar-Cabinet.js"),mxscript(drawDevUrl+"js/diagramly/sidebar/Sidebar-Cisco.js"),mxscript(drawDevUrl+"js/diagramly/sidebar/Sidebar-Cisco19.js"),mxscript(drawDevUrl+"js/diagramly/sidebar/Sidebar-CiscoSafe.js"),mxscript(drawDevUrl+"js/diagramly/sidebar/Sidebar-Citrix.js"),mxscript(drawDevUrl+"js/diagramly/sidebar/Sidebar-Cumulus.js"),mxscript(drawDevUrl+"js/diagramly/sidebar/Sidebar-DFD.js"),mxscript(drawDevUrl+"js/diagramly/sidebar/Sidebar-EIP.js"),mxscript(drawDevUrl+"js/diagramly/sidebar/Sidebar-Electrical.js"),mxscript(drawDevUrl+"js/diagramly/sidebar/Sidebar-ER.js"),mxscript(drawDevUrl+"js/diagramly/sidebar/Sidebar-Floorplan.js"),mxscript(drawDevUrl+"js/diagramly/sidebar/Sidebar-Flowchart.js"),mxscript(drawDevUrl+"js/diagramly/sidebar/Sidebar-FluidPower.js"),mxscript(drawDevUrl+"js/diagramly/sidebar/Sidebar-GCP.js"),mxscript(drawDevUrl+"js/diagramly/sidebar/Sidebar-GCP2.js"),mxscript(drawDevUrl+"js/diagramly/sidebar/Sidebar-GCPIcons.js"),mxscript(drawDevUrl+"js/diagramly/sidebar/Sidebar-Gmdl.js"),mxscript(drawDevUrl+"js/diagramly/sidebar/Sidebar-IBM.js"),mxscript(drawDevUrl+"js/diagramly/sidebar/Sidebar-Infographic.js"),mxscript(drawDevUrl+"js/diagramly/sidebar/Sidebar-Ios.js"),mxscript(drawDevUrl+"js/diagramly/sidebar/Sidebar-Ios7.js"),mxscript(drawDevUrl+"js/diagramly/sidebar/Sidebar-Kubernetes.js"),mxscript(drawDevUrl+"js/diagramly/sidebar/Sidebar-LeanMapping.js"),mxscript(drawDevUrl+"js/diagramly/sidebar/Sidebar-Mockup.js"),mxscript(drawDevUrl+"js/diagramly/sidebar/Sidebar-MSCAE.js"),mxscript(drawDevUrl+"js/diagramly/sidebar/Sidebar-Network.js"),mxscript(drawDevUrl+"js/diagramly/sidebar/Sidebar-Office.js"),mxscript(drawDevUrl+"js/diagramly/sidebar/Sidebar-PID.js"),mxscript(drawDevUrl+"js/diagramly/sidebar/Sidebar-Rack.js"),mxscript(drawDevUrl+"js/diagramly/sidebar/Sidebar-Signs.js"),mxscript(drawDevUrl+"js/diagramly/sidebar/Sidebar-Sitemap.js"),mxscript(drawDevUrl+"js/diagramly/sidebar/Sidebar-Sysml.js"),mxscript(drawDevUrl+"js/diagramly/sidebar/Sidebar-ThreatModeling.js"),mxscript(drawDevUrl+"js/diagramly/sidebar/Sidebar-UML25.js"),mxscript(drawDevUrl+"js/diagramly/sidebar/Sidebar-Veeam.js"),mxscript(drawDevUrl+"js/diagramly/sidebar/Sidebar-Veeam2.js"),mxscript(drawDevUrl+"js/diagramly/sidebar/Sidebar-VVD.js"),mxscript(drawDevUrl+"js/diagramly/sidebar/Sidebar-WebIcons.js"),mxscript(drawDevUrl+"js/diagramly/util/mxJsCanvas.js"),mxscript(drawDevUrl+"js/diagramly/util/mxAsyncCanvas.js"),mxscript(drawDevUrl+"js/diagramly/DrawioFile.js"),mxscript(drawDevUrl+"js/diagramly/LocalFile.js"),mxscript(drawDevUrl+"js/diagramly/LocalLibrary.js"),mxscript(drawDevUrl+"js/diagramly/StorageFile.js"),mxscript(drawDevUrl+"js/diagramly/StorageLibrary.js"),mxscript(drawDevUrl+"js/diagramly/RemoteFile.js"),mxscript(drawDevUrl+"js/diagramly/RemoteLibrary.js"),mxscript(drawDevUrl+"js/diagramly/EmbedFile.js"),mxscript(drawDevUrl+"js/diagramly/Dialogs.js"),mxscript(drawDevUrl+"js/diagramly/Editor.js"),mxscript(drawDevUrl+"js/diagramly/EditorUi.js"),mxscript(drawDevUrl+"js/diagramly/DiffSync.js"),mxscript(drawDevUrl+"js/diagramly/Settings.js"),mxscript(drawDevUrl+"js/diagramly/DrawioFileSync.js"),mxscript(drawDevUrl+"js/diagramly/DrawioComment.js"),mxscript(drawDevUrl+"js/diagramly/DriveComment.js"),mxscript(drawDevUrl+"js/diagramly/DrawioClient.js"),mxscript(drawDevUrl+"js/diagramly/DrawioUser.js"),mxscript(drawDevUrl+"js/diagramly/UrlLibrary.js"),mxscript(drawDevUrl+"js/diagramly/DriveFile.js"),mxscript(drawDevUrl+"js/diagramly/DriveLibrary.js"),mxscript(drawDevUrl+"js/diagramly/DriveClient.js"),mxscript(drawDevUrl+"js/diagramly/DropboxFile.js"),mxscript(drawDevUrl+"js/diagramly/DropboxLibrary.js"),mxscript(drawDevUrl+"js/diagramly/DropboxClient.js"),mxscript(drawDevUrl+"js/diagramly/GitHubFile.js"),mxscript(drawDevUrl+"js/diagramly/GitHubLibrary.js"),mxscript(drawDevUrl+"js/diagramly/GitHubClient.js"),mxscript(drawDevUrl+"js/diagramly/OneDriveFile.js"),mxscript(drawDevUrl+"js/diagramly/OneDriveLibrary.js"),mxscript(drawDevUrl+"js/diagramly/OneDriveClient.js"),mxscript(drawDevUrl+"js/onedrive/mxODPicker.js"),mxscript(drawDevUrl+"js/diagramly/TrelloFile.js"),mxscript(drawDevUrl+"js/diagramly/TrelloLibrary.js"),mxscript(drawDevUrl+"js/diagramly/TrelloClient.js"),mxscript(drawDevUrl+"js/diagramly/GitLabFile.js"),mxscript(drawDevUrl+"js/diagramly/GitLabLibrary.js"),mxscript(drawDevUrl+"js/diagramly/GitLabClient.js"),mxscript(drawDevUrl+"js/diagramly/NotionFile.js"),mxscript(drawDevUrl+"js/diagramly/NotionLibrary.js"),mxscript(drawDevUrl+"js/diagramly/NotionClient.js"),mxscript(drawDevUrl+"js/diagramly/App.js"),mxscript(drawDevUrl+"js/diagramly/Menus.js"),mxscript(drawDevUrl+"js/diagramly/Pages.js"),mxscript(drawDevUrl+"js/diagramly/Trees.js"),mxscript(drawDevUrl+"js/diagramly/Minimal.js"),mxscript(drawDevUrl+"js/diagramly/DistanceGuides.js"),mxscript(drawDevUrl+"js/diagramly/mxRuler.js"),mxscript(drawDevUrl+"js/diagramly/mxFreehand.js"),mxscript(drawDevUrl+"js/diagramly/DevTools.js"),mxscript(drawDevUrl+"js/diagramly/vsdx/VsdxExport.js"),mxscript(drawDevUrl+"js/diagramly/vsdx/mxVsdxCanvas2D.js"),mxscript(drawDevUrl+"js/diagramly/vsdx/bmpDecoder.js"),mxscript(drawDevUrl+"js/diagramly/vsdx/importer.js"),mxscript(drawDevUrl+"js/jszip/jszip.min.js"),mxscript(drawDevUrl+"js/diagramly/graphml/mxGraphMlCodec.js"),mxscript(drawDevUrl+"js/diagramly/P2PCollab.js"),"1"==urlParams.orgChartDev&&(mxscript(drawDevUrl+"js/orgchart/bridge.min.js"),mxscript(drawDevUrl+"js/orgchart/bridge.collections.min.js"),mxscript(drawDevUrl+"js/orgchart/OrgChart.Layout.min.js"),mxscript(drawDevUrl+"js/orgchart/mxOrgChartLayout.js"));