*** reader.min.js.orig	2016-01-15 09:58:11.862447146 +0100
--- reader.min.js	2016-01-15 15:47:38.139400076 +0100
***************
*** 1,4 ****
! var mxBasePath="//drawdotio.appspot.com/mxgraph/",mxLoadStylesheets=mxLoadResources=!1;var mxClient={VERSION:"1.11.0.0",IS_IE:0<=navigator.userAgent.indexOf("MSIE"),IS_IE6:0<=navigator.userAgent.indexOf("MSIE 6"),IS_QUIRKS:0<=navigator.userAgent.indexOf("MSIE")&&(null==document.documentMode||5==document.documentMode),VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE"),IS_OP:0<=navigator.userAgent.indexOf("Opera/"),IS_OT:0>navigator.userAgent.indexOf("Presto/2.4.")&&0>navigator.userAgent.indexOf("Presto/2.3.")&&0>navigator.userAgent.indexOf("Presto/2.2.")&&
  0>navigator.userAgent.indexOf("Presto/2.1.")&&0>navigator.userAgent.indexOf("Presto/2.0.")&&0>navigator.userAgent.indexOf("Presto/1."),IS_SF:0<=navigator.userAgent.indexOf("AppleWebKit/")&&0>navigator.userAgent.indexOf("Chrome/"),IS_GC:0<=navigator.userAgent.indexOf("Chrome/"),IS_MT:0<=navigator.userAgent.indexOf("Firefox/")&&0>navigator.userAgent.indexOf("Firefox/1.")&&0>navigator.userAgent.indexOf("Firefox/2.")||0<=navigator.userAgent.indexOf("Iceweasel/")&&0>navigator.userAgent.indexOf("Iceweasel/1.")&&
  0>navigator.userAgent.indexOf("Iceweasel/2.")||0<=navigator.userAgent.indexOf("SeaMonkey/")&&0>navigator.userAgent.indexOf("SeaMonkey/1.")||0<=navigator.userAgent.indexOf("Iceape/")&&0>navigator.userAgent.indexOf("Iceape/1."),IS_SVG:0<=navigator.userAgent.indexOf("Firefox/")||0<=navigator.userAgent.indexOf("Iceweasel/")||0<=navigator.userAgent.indexOf("Seamonkey/")||0<=navigator.userAgent.indexOf("Iceape/")||0<=navigator.userAgent.indexOf("Galeon/")||0<=navigator.userAgent.indexOf("Epiphany/")||0<=
  navigator.userAgent.indexOf("AppleWebKit/")||0<=navigator.userAgent.indexOf("Gecko/")||0<=navigator.userAgent.indexOf("Opera/"),NO_FO:0<=navigator.userAgent.indexOf("Firefox/1.")||0<=navigator.userAgent.indexOf("Iceweasel/1.")||0<=navigator.userAgent.indexOf("Firefox/2.")||0<=navigator.userAgent.indexOf("Iceweasel/2.")||0<=navigator.userAgent.indexOf("SeaMonkey/1.")||0<=navigator.userAgent.indexOf("Iceape/1.")||0<=navigator.userAgent.indexOf("Camino/1.")||0<=navigator.userAgent.indexOf("Epiphany/2.")||
--- 1,5 ----
! var mxDrawIoPath="/xwiki/bin/download/Diagram/DiagramSheet/draw.io.zip/",SHAPES_PATH=mxDrawIoPath+"shapes",STENCIL_PATH=mxDrawIoPath+"stencils";
! var mxBasePath=mxDrawIoPath+"mxgraph/",mxLoadStylesheets=mxLoadResources=!1;var mxClient={VERSION:"1.11.0.0",IS_IE:0<=navigator.userAgent.indexOf("MSIE"),IS_IE6:0<=navigator.userAgent.indexOf("MSIE 6"),IS_QUIRKS:0<=navigator.userAgent.indexOf("MSIE")&&(null==document.documentMode||5==document.documentMode),VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE"),IS_OP:0<=navigator.userAgent.indexOf("Opera/"),IS_OT:0>navigator.userAgent.indexOf("Presto/2.4.")&&0>navigator.userAgent.indexOf("Presto/2.3.")&&0>navigator.userAgent.indexOf("Presto/2.2.")&&
  0>navigator.userAgent.indexOf("Presto/2.1.")&&0>navigator.userAgent.indexOf("Presto/2.0.")&&0>navigator.userAgent.indexOf("Presto/1."),IS_SF:0<=navigator.userAgent.indexOf("AppleWebKit/")&&0>navigator.userAgent.indexOf("Chrome/"),IS_GC:0<=navigator.userAgent.indexOf("Chrome/"),IS_MT:0<=navigator.userAgent.indexOf("Firefox/")&&0>navigator.userAgent.indexOf("Firefox/1.")&&0>navigator.userAgent.indexOf("Firefox/2.")||0<=navigator.userAgent.indexOf("Iceweasel/")&&0>navigator.userAgent.indexOf("Iceweasel/1.")&&
  0>navigator.userAgent.indexOf("Iceweasel/2.")||0<=navigator.userAgent.indexOf("SeaMonkey/")&&0>navigator.userAgent.indexOf("SeaMonkey/1.")||0<=navigator.userAgent.indexOf("Iceape/")&&0>navigator.userAgent.indexOf("Iceape/1."),IS_SVG:0<=navigator.userAgent.indexOf("Firefox/")||0<=navigator.userAgent.indexOf("Iceweasel/")||0<=navigator.userAgent.indexOf("Seamonkey/")||0<=navigator.userAgent.indexOf("Iceape/")||0<=navigator.userAgent.indexOf("Galeon/")||0<=navigator.userAgent.indexOf("Epiphany/")||0<=
  navigator.userAgent.indexOf("AppleWebKit/")||0<=navigator.userAgent.indexOf("Gecko/")||0<=navigator.userAgent.indexOf("Opera/"),NO_FO:0<=navigator.userAgent.indexOf("Firefox/1.")||0<=navigator.userAgent.indexOf("Iceweasel/1.")||0<=navigator.userAgent.indexOf("Firefox/2.")||0<=navigator.userAgent.indexOf("Iceweasel/2.")||0<=navigator.userAgent.indexOf("SeaMonkey/1.")||0<=navigator.userAgent.indexOf("Iceape/1.")||0<=navigator.userAgent.indexOf("Camino/1.")||0<=navigator.userAgent.indexOf("Epiphany/2.")||
***************
*** 17,23 ****
  "BackCompat"){var f=mxLog.window.getElement(),a=function(){mxLog.textarea.style.height=Math.max(0,f.offsetHeight-70)+"px"};mxLog.window.addListener(mxEvent.RESIZE_END,a);mxLog.window.addListener(mxEvent.MAXIMIZE,a);mxLog.window.addListener(mxEvent.NORMALIZE,a);mxLog.textarea.style.height="92px"}}},info:function(){mxLog.writeln(mxUtils.toString(navigator))},addButton:function(a,b){var c=document.createElement("button");mxUtils.write(c,a);mxEvent.addListener(c,"click",b);mxLog.td.appendChild(c)},isVisible:function(){return mxLog.window!=
  null?mxLog.window.isVisible():false},show:function(){mxLog.setVisible(true)},setVisible:function(a){mxLog.window==null&&mxLog.init();mxLog.window!=null&&mxLog.window.setVisible(a)},enter:function(a){if(mxLog.TRACE){mxLog.writeln("Entering "+a);return(new Date).getTime()}},leave:function(a,b){if(mxLog.TRACE){var c=b!=0?" ("+((new Date).getTime()-b)+" ms)":"";mxLog.writeln("Leaving "+a+c)}},debug:function(){mxLog.DEBUG&&mxLog.writeln.apply(this,arguments)},warn:function(){mxLog.WARN&&mxLog.writeln.apply(this,
  arguments)},write:function(){for(var a="",b=0;b<arguments.length;b++){a=a+arguments[b];b<arguments.length-1&&(a=a+" ")}if(mxLog.textarea!=null){mxLog.textarea.value=mxLog.textarea.value+a;if(navigator.userAgent.indexOf("Presto/2.5")>=0){mxLog.textarea.style.visibility="hidden";mxLog.textarea.style.visibility="visible"}mxLog.textarea.scrollTop=mxLog.textarea.scrollHeight}else mxLog.buffer=mxLog.buffer+a},writeln:function(){for(var a="",b=0;b<arguments.length;b++){a=a+arguments[b];b<arguments.length-
! 1&&(a=a+" ")}mxLog.write(a+"\n")}},mxObjectIdentity={FIELD_NAME:"mxObjectId",counter:0,get:function(a){if(typeof a=="object"&&a[mxObjectIdentity.FIELD_NAME]==null){var b=mxUtils.getFunctionName(a.constructor);a[mxObjectIdentity.FIELD_NAME]=b+"#"+mxObjectIdentity.counter++}return a[mxObjectIdentity.FIELD_NAME]},clear:function(a){typeof a=="object"&&delete a[mxObjectIdentity.FIELD_NAME]}};function mxDictionary(){this.clear()}mxDictionary.prototype.map=null;
  mxDictionary.prototype.clear=function(){this.map={}};mxDictionary.prototype.get=function(a){return this.map[mxObjectIdentity.get(a)]};mxDictionary.prototype.put=function(a,b){var c=mxObjectIdentity.get(a),d=this.map[c];this.map[c]=b;return d};mxDictionary.prototype.remove=function(a){var a=mxObjectIdentity.get(a),b=this.map[a];delete this.map[a];return b};mxDictionary.prototype.getKeys=function(){var a=[],b;for(b in this.map)a.push(b);return a};
  mxDictionary.prototype.getValues=function(){var a=[],b;for(b in this.map)a.push(this.map[b]);return a};mxDictionary.prototype.visit=function(a){for(var b in this.map)a(b,this.map[b])};
  var mxResources={resources:[],extension:mxResourceExtension,resourcesEncoded:!1,loadDefaultBundle:!0,loadSpecialBundle:!0,isLanguageSupported:function(a){return mxClient.languages!=null?mxUtils.indexOf(mxClient.languages,a)>=0:true},getDefaultBundle:function(a,b){return mxResources.loadDefaultBundle||!mxResources.isLanguageSupported(b)?a+mxResources.extension:null},getSpecialBundle:function(a,b){if(mxClient.languages==null||!this.isLanguageSupported(b)){var c=b.indexOf("-");c>0&&(b=b.substring(0,
--- 18,33 ----
  "BackCompat"){var f=mxLog.window.getElement(),a=function(){mxLog.textarea.style.height=Math.max(0,f.offsetHeight-70)+"px"};mxLog.window.addListener(mxEvent.RESIZE_END,a);mxLog.window.addListener(mxEvent.MAXIMIZE,a);mxLog.window.addListener(mxEvent.NORMALIZE,a);mxLog.textarea.style.height="92px"}}},info:function(){mxLog.writeln(mxUtils.toString(navigator))},addButton:function(a,b){var c=document.createElement("button");mxUtils.write(c,a);mxEvent.addListener(c,"click",b);mxLog.td.appendChild(c)},isVisible:function(){return mxLog.window!=
  null?mxLog.window.isVisible():false},show:function(){mxLog.setVisible(true)},setVisible:function(a){mxLog.window==null&&mxLog.init();mxLog.window!=null&&mxLog.window.setVisible(a)},enter:function(a){if(mxLog.TRACE){mxLog.writeln("Entering "+a);return(new Date).getTime()}},leave:function(a,b){if(mxLog.TRACE){var c=b!=0?" ("+((new Date).getTime()-b)+" ms)":"";mxLog.writeln("Leaving "+a+c)}},debug:function(){mxLog.DEBUG&&mxLog.writeln.apply(this,arguments)},warn:function(){mxLog.WARN&&mxLog.writeln.apply(this,
  arguments)},write:function(){for(var a="",b=0;b<arguments.length;b++){a=a+arguments[b];b<arguments.length-1&&(a=a+" ")}if(mxLog.textarea!=null){mxLog.textarea.value=mxLog.textarea.value+a;if(navigator.userAgent.indexOf("Presto/2.5")>=0){mxLog.textarea.style.visibility="hidden";mxLog.textarea.style.visibility="visible"}mxLog.textarea.scrollTop=mxLog.textarea.scrollHeight}else mxLog.buffer=mxLog.buffer+a},writeln:function(){for(var a="",b=0;b<arguments.length;b++){a=a+arguments[b];b<arguments.length-
! 1&&(a=a+" ")}mxLog.write(a+"\n")}},mxObjectIdentity={FIELD_NAME:"mxObjectId",counter:0,get:function(a){if(typeof a=="object"&&a[mxObjectIdentity.FIELD_NAME]==null){var b=mxUtils.getFunctionName(a.constructor);a[mxObjectIdentity.FIELD_NAME]=b+"#"+mxObjectIdentity.counter++}return a[mxObjectIdentity.FIELD_NAME]},clear:function(a){typeof a=="object"&&delete a[mxObjectIdentity.FIELD_NAME]}};
! function mxXmlRequest(a,b,c,d,e,f){this.url=a;this.params=b;this.method=c||"POST";this.async=null!=d?d:!0;this.username=e;this.password=f}mxXmlRequest.prototype.url=null;mxXmlRequest.prototype.params=null;mxXmlRequest.prototype.method=null;mxXmlRequest.prototype.async=null;mxXmlRequest.prototype.binary=!1;mxXmlRequest.prototype.username=null;mxXmlRequest.prototype.password=null;
! mxXmlRequest.prototype.request=null;mxXmlRequest.prototype.isBinary=function(){return this.binary};mxXmlRequest.prototype.setBinary=function(a){this.binary=a};mxXmlRequest.prototype.getText=function(){return this.request.responseTe
! xt};mxXmlRequest.prototype.isReady=function(){return 4==this.request.readyState};
! mxXmlRequest.prototype.getDocumentElement=function(){var a=this.getXml();return null!=a?a.documentElement:null};mxXmlRequest.prototype.getXml=function(){var a=this.request.responseXML;if(9<=document.documentMode||null==a||null==a.documentElement)a=mxUtils.parseXml(this.request.responseText);return a};mxXmlRequest.prototype.getText=function(){return this.request.responseText};
! mxXmlRequest.prototype.getStatus=function(){return this.request.status};mxXmlRequest.prototype.create=function(){if(window.XMLHttpRequest)return function(){var a=new XMLHttpRequest;this.isBinary()&&a.overrideMimeType&&a.overrideMimeType("text/plain; charset=x-user-defined");return a};if("undefined"!=typeof ActiveXObject)return function(){return new ActiveXObject("Microsoft.XMLHTTP")}}();
! mxXmlRequest.prototype.send=function(a){this.request=this.create();null!=this.request&&(null!=a&&(this.request.onreadystatechange=mxUtils.bind(this,function(){this.isReady()&&(a(this),this.onreadystatechaange=null)})),this.request.open(this.method,this.url,this.async,this.username,this.password),this.setRequestHeaders(this.request,this.params),this.request.send(this.params))};
! mxXmlRequest.prototype.setRequestHeaders=function(a,b){null!=b&&a.setRequestHeader("Content-Type","application/x-www-form-urlencoded")};mxXmlRequest.prototype.simulate=function(a,b){var a=a||document,c=null;a==document&&(c=window.onbeforeunload,window.onbeforeunload=null);var d=a.createElement("form");d.setAttribute("method",this.method);
! d.setAttribute("action",this.url);null!=b&&d.setAttribute("target",b);d.style.display="none";d.style.visibility="hidden";for(var e=0<this.params.indexOf("&")?this.params.split("&"):this.params.split(),f=0;f<e.length;f++){var g=e[f].indexOf("=");if(0<g){var h=e[f].substring(0,g),i=e[f].substring(g+1),g=a.createElement("textarea");g.setAttribute("name",h);i=i.replace(/\n/g,"&#xa;");h=a.createTextNode(i);
! g.appendChild(h);d.appendChild(g)}}a.body.appendChild(d);d.submit();a.body.removeChild(d);null!=c&&(window.onbeforeunload=c)};function mxDictionary(){this.clear()}mxDictionary.prototype.map=null;
  mxDictionary.prototype.clear=function(){this.map={}};mxDictionary.prototype.get=function(a){return this.map[mxObjectIdentity.get(a)]};mxDictionary.prototype.put=function(a,b){var c=mxObjectIdentity.get(a),d=this.map[c];this.map[c]=b;return d};mxDictionary.prototype.remove=function(a){var a=mxObjectIdentity.get(a),b=this.map[a];delete this.map[a];return b};mxDictionary.prototype.getKeys=function(){var a=[],b;for(b in this.map)a.push(b);return a};
  mxDictionary.prototype.getValues=function(){var a=[],b;for(b in this.map)a.push(this.map[b]);return a};mxDictionary.prototype.visit=function(a){for(var b in this.map)a(b,this.map[b])};
  var mxResources={resources:[],extension:mxResourceExtension,resourcesEncoded:!1,loadDefaultBundle:!0,loadSpecialBundle:!0,isLanguageSupported:function(a){return mxClient.languages!=null?mxUtils.indexOf(mxClient.languages,a)>=0:true},getDefaultBundle:function(a,b){return mxResources.loadDefaultBundle||!mxResources.isLanguageSupported(b)?a+mxResources.extension:null},getSpecialBundle:function(a,b){if(mxClient.languages==null||!this.isLanguageSupported(b)){var c=b.indexOf("-");c>0&&(b=b.substring(0,
***************
*** 968,975 ****
  e=new H(l,19,19,null,null,o);if(0!=e.status)return-1;n=e.root;o=e.m;g=i+k;for(d=f=0;d<g;)if(u(o),h=n.list[w(o)],e=h.b,v(e),e=h.n,16>e)l[d++]=f=e;else if(16==e){u(2);e=3+w(2);v(2);if(d+e>g)return-1;for(;0<e--;)l[d++]=f}else{17==e?(u(3),e=3+w(3),v(3)):(u(7),e=11+w(7),v(7));if(d+e>g)return-1;for(;0<e--;)l[d++]=0;f=0}o=9;e=new H(l,i,257,t,y,o);0==o&&(e.status=1);if(0!=e.status)return-1;n=e.root;o=e.m;for(d=0;d<k;d++)l[d]=l[d+i];q=6;e=new H(l,k,0,z,C,q);m=e.root;q=e.m;return 0==q&&257<i||0!=e.status?-1:
  G(a,b,c)},J=function(p,r,s){var B,E;for(B=0;B<s&&!(k&&-1==h);){if(0<i){if(0!=h)for(;0<i&&B<s;)i--,l&=32767,b&=32767,p[r+B++]=a[b++]=a[l++];else{for(;0<i&&B<s;)i--,b&=32767,u(8),p[r+B++]=a[b++]=w(8),v(8);0==i&&(h=-1)}if(B==s)break}if(-1==h){if(k)break;u(1);0!=w(1)&&(k=!0);v(1);u(2);h=w(2);v(2);n=null;i=0}switch(h){case 0:E=p;var A=r+B,J=s-B,D=void 0,D=g&7;v(D);u(16);D=w(16);v(16);u(16);if(D!=(~f&65535))E=-1;else{v(16);i=D;for(D=0;0<i&&D<J;)i--,b&=32767,u(8),E[A+D++]=a[b++]=w(8),v(8);0==i&&(h=-1);E=
  D}break;case 1:if(null!=n)E=G(p,r+B,s-B);else a:{E=p;A=r+B;J=s-B;if(null==c){for(var x=void 0,D=Array(288),x=void 0,x=0;144>x;x++)D[x]=8;for(;256>x;x++)D[x]=9;for(;280>x;x++)D[x]=7;for(;288>x;x++)D[x]=8;e=7;x=new H(D,288,257,t,y,e);if(0!=x.status){alert("HufBuild error: "+x.status);E=-1;break a}c=x.root;e=x.m;for(x=0;30>x;x++)D[x]=5;zip_fixed_bd=5;x=new H(D,30,0,z,C,zip_fixed_bd);if(1<x.status){c=null;alert("HufBuild error: "+x.status);E=-1;break a}d=x.root;zip_fixed_bd=x.m}n=c;m=d;o=e;q=zip_fixed_bd;
! E=G(E,A,J)}break;case 2:E=null!=n?G(p,r+B,s-B):K(p,r+B,s-B);break;default:E=-1}if(-1==E)return k?0:-1;B+=E}return B};window.RawDeflate||(RawDeflate={});RawDeflate.inflate=function(c){var d;null==a&&(a=Array(65536));g=f=b=0;h=-1;k=!1;i=l=0;n=null;p=c;r=0;for(var e=Array(1024),m=[];0<(c=J(e,0,e.length));){var o=Array(c);for(d=0;d<c;d++)o[d]=String.fromCharCode(e[d]);m[m.length]=o.join("")}p=null;return m.join("")}})();(function(a,b,c){mxStencilRegistry.parseStencilSet=function(a,b,c){var c=null!=c?c:!0,d=a.documentElement,a=d.firstChild,e="",d=d.getAttribute("name");for(null!=d&&(e=d+".");null!=a;){if(a.nodeType==mxConstants.NODETYPE_ELEMENT&&(d=a.getAttribute("name"),null!=d)){var f=a.getAttribute("w"),m=a.getAttribute("h"),f=null==f?80:parseInt(f,10),m=null==m?80:parseInt(m,10),e=e.toLowerCase(),o=d.replace(/ /g,"_");c&&mxStencilRegistry.addStencil(e+o.toLowerCase(),new mxStencil(a));null!=b&&b(e,o,d,f,m)}a=
! a.nextSibling}};mxConstants.SHADOWCOLOR="#d0d0d0";mxGraph.prototype.isHtmlLabel=function(a){var b=this.view.getState(a);return"1"==(null!=b?b.style:this.getCellStyle(a)).html};var d=mxGraph.prototype.convertValueToString;mxGraph.prototype.convertValueToString=function(a){return null!=a.value&&"object"==typeof a.value?a.value.getAttribute("label"):d.apply(this,arguments)};mxGraph.prototype.getLinkForCell=function(a){return null!=a.value&&"object"==typeof a.value?a.value.getAttribute("link"):null};
  mxGraph.prototype.getImageFromBundles=function(a){return null!=a?("http://"!=a.substring(0,7)&&("https://"!=a.substring(0,8)&&"data:image"!=a.substring(0,10))&&("/"==a.charAt(0)&&(a=a.substring(1,a.length)),a="http://drawdotio.appspot.com/"+a),a):null};if(null!=b)for(var e=0;e<b.length;e++){var f=mxUtils.parseXml(b[e]);mxStencilRegistry.parseStencilSet(f)}null!=c&&eval(c);mxClient.IS_TOUCH&&(mxPanningHandler.prototype.isPanningTrigger=function(){return!0});(function(){if(mxClient.isBrowserSupported())for(var b=
  document.getElementsByTagName("*"),c=0;c<b.length;c++)b[c].className.toString().indexOf("mxgraph")>=0&&function(d){try{for(var e=d.firstChild;e!=null&&e.nodeType!=mxConstants.NODETYPE_ELEMENT;)e=e.nextSibling;var f=e.innerHTML,f=f.substring(0,16)=="&lt;mxGraphModel"?f.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;gt;/g,"&gt;").replace(/&amp;lt;/g,"&lt;").replace(/&amp;quot;/g,"&quot;").replace(/&#xa;/g,"\n"):f.substring(0,15)=="%3CmxGraphModel"?decodeURIComponent(f):decodeURIComponent(RawDeflate.inflate(Base64.decode(f,
  true))),n=mxUtils.parseXml(f);if(n.documentElement!=null&&n.documentElement.nodeName=="mxGraphModel"){var m=new mxCodec(n),o=n.documentElement;d.innerHTML="";var q=new mxGraph(d);q.resetViewOnRootChange=false;q.setTooltips(false);q.setEnabled(false);if(a!=null){var p=mxUtils.parseXml(a);(new mxCodec(p)).decode(p.documentElement,q.getStylesheet())}if(o.getAttribute("pan")!="0"){q.panningHandler.useLeftButtonForPanning=true;q.panningHandler.ignoreCell=true;d.style.cursor="move";q.setPanning(true)}else d.style.cursor=
--- 978,987 ----
  e=new H(l,19,19,null,null,o);if(0!=e.status)return-1;n=e.root;o=e.m;g=i+k;for(d=f=0;d<g;)if(u(o),h=n.list[w(o)],e=h.b,v(e),e=h.n,16>e)l[d++]=f=e;else if(16==e){u(2);e=3+w(2);v(2);if(d+e>g)return-1;for(;0<e--;)l[d++]=f}else{17==e?(u(3),e=3+w(3),v(3)):(u(7),e=11+w(7),v(7));if(d+e>g)return-1;for(;0<e--;)l[d++]=0;f=0}o=9;e=new H(l,i,257,t,y,o);0==o&&(e.status=1);if(0!=e.status)return-1;n=e.root;o=e.m;for(d=0;d<k;d++)l[d]=l[d+i];q=6;e=new H(l,k,0,z,C,q);m=e.root;q=e.m;return 0==q&&257<i||0!=e.status?-1:
  G(a,b,c)},J=function(p,r,s){var B,E;for(B=0;B<s&&!(k&&-1==h);){if(0<i){if(0!=h)for(;0<i&&B<s;)i--,l&=32767,b&=32767,p[r+B++]=a[b++]=a[l++];else{for(;0<i&&B<s;)i--,b&=32767,u(8),p[r+B++]=a[b++]=w(8),v(8);0==i&&(h=-1)}if(B==s)break}if(-1==h){if(k)break;u(1);0!=w(1)&&(k=!0);v(1);u(2);h=w(2);v(2);n=null;i=0}switch(h){case 0:E=p;var A=r+B,J=s-B,D=void 0,D=g&7;v(D);u(16);D=w(16);v(16);u(16);if(D!=(~f&65535))E=-1;else{v(16);i=D;for(D=0;0<i&&D<J;)i--,b&=32767,u(8),E[A+D++]=a[b++]=w(8),v(8);0==i&&(h=-1);E=
  D}break;case 1:if(null!=n)E=G(p,r+B,s-B);else a:{E=p;A=r+B;J=s-B;if(null==c){for(var x=void 0,D=Array(288),x=void 0,x=0;144>x;x++)D[x]=8;for(;256>x;x++)D[x]=9;for(;280>x;x++)D[x]=7;for(;288>x;x++)D[x]=8;e=7;x=new H(D,288,257,t,y,e);if(0!=x.status){alert("HufBuild error: "+x.status);E=-1;break a}c=x.root;e=x.m;for(x=0;30>x;x++)D[x]=5;zip_fixed_bd=5;x=new H(D,30,0,z,C,zip_fixed_bd);if(1<x.status){c=null;alert("HufBuild error: "+x.status);E=-1;break a}d=x.root;zip_fixed_bd=x.m}n=c;m=d;o=e;q=zip_fixed_bd;
! E=G(E,A,J)}break;case 2:E=null!=n?G(p,r+B,s-B):K(p,r+B,s-B);break;default:E=-1}if(-1==E)return k?0:-1;B+=E}return B};window.RawDeflate||(RawDeflate={});RawDeflate.inflate=function(c){var d;null==a&&(a=Array(65536));g=f=b=0;h=-1;k=!1;i=l=0;n=null;p=c;r=0;for(var e=Array(1024),m=[];0<(c=J(e,0,e.length));){var o=Array(c);for(d=0;d<c;d++)o[d]=String.fromCharCode(e[d]);m[m.length]=o.join("")}p=null;return m.join("")}})();(function(a,b,c){mxStencilRegistry.libraries={};mxStencilRegistry.packages=[];mxStencilRegistry.getStencil=function(a){var b=mxStencilRegistry.stencils[a];if(null==b){var c=mxStencilRegistry.getBasenameForStencil(a);if(null!=c){b=mxStencilRegistry.libraries[c];if(null!=b){if(null==mxStencilRegistry.packages[c]){mxStencilRegistry.packages[c]=1;for(c=0;c<b.length;c++){var d=b[c];".xml"==d.toLowerCase().substring(d.length-4,d.length)?mxStencilRegistry.loadStencilSet(d,null):".js"==d.toLowerCase().substring(d.length-3,d.length)&&(d=mxUtils.load(d),null!=d&&eval.call(window,d.getText()))}}}else mxStencilRegistry.loadStencilSet(STENCIL_PATH+"/"+c+".xml",null);
! b=mxStencilRegistry.stencils[a]}}return b};mxStencilRegistry.getBasenameForStencil=function(a){var a=a.split("."),b=null;if(0<a.length&&"mxgraph"==a[0])for(var b=a[1],c=2;c<a.length-1;c++) b+="/"+a[c];return b};mxStencilRegistry.loadStencilSet=function(a,b,c){var d=mxStencilRegistry.packages[a];if(null!=c&&c||null==d) c=!1, null==d&&(d=mxUtils.load(a).getXml(),mxStencilRegistry.packages[a]=d,c=!0),mxStencilRegistry.parseStencilSet(d,b,c)};
! mxStencilRegistry.parseStencilSet=function(a,b,c){var c=null!=c?c:!0,d=a.documentElement,a=d.firstChild,e="",d=d.getAttribute("name");for(null!=d&&(e=d+".");null!=a;){if(a.nodeType==mxConstants.NODETYPE_ELEMENT&&(d=a.getAttribute("name"),null!=d)){var e=e.toLowerCase(),f=d.replace(/ /g,"_");c&&mxStencilRegistry.addStencil(e+f.toLowerCase(),new mxStencil(a));if(null!=b){var g=a.getAttribute("w"),h=a.getAttribute("h"),g=null==g?80:parseInt(g,10),h=null==h?80:parseInt(h,10);b(e,f,d,g,h)}}a=a.nextSibling}}
! mxStencilRegistry.libraries.bpmn=[SHAPES_PATH+"/bpmn/mxBpmnShape2.js",STENCIL_PATH+"/bpmn.xml"];mxStencilRegistry.libraries.er=[SHAPES_PATH+"/er/mxER.js"];mxStencilRegistry.libraries.ios=[SHAPES_PATH+"/mockup/mxMockupiOS.js"];mxConstants.SHADOWCOLOR="#d0d0d0";mxGraph.prototype.isHtmlLabel=function(a){var b=this.view.getState(a);return"1"==(null!=b?b.style:this.getCellStyle(a)).html};var d=mxGraph.prototype.convertValueToString;mxGraph.prototype.convertValueToString=function(a){return null!=a.value&&"object"==typeof a.value?a.value.getAttribute("label"):d.apply(this,arguments)};mxGraph.prototype.getLinkForCell=function(a){return null!=a.value&&"object"==typeof a.value?a.value.getAttribute("link"):null};
  mxGraph.prototype.getImageFromBundles=function(a){return null!=a?("http://"!=a.substring(0,7)&&("https://"!=a.substring(0,8)&&"data:image"!=a.substring(0,10))&&("/"==a.charAt(0)&&(a=a.substring(1,a.length)),a="http://drawdotio.appspot.com/"+a),a):null};if(null!=b)for(var e=0;e<b.length;e++){var f=mxUtils.parseXml(b[e]);mxStencilRegistry.parseStencilSet(f)}null!=c&&eval(c);mxClient.IS_TOUCH&&(mxPanningHandler.prototype.isPanningTrigger=function(){return!0});(function(){if(mxClient.isBrowserSupported())for(var b=
  document.getElementsByTagName("*"),c=0;c<b.length;c++)b[c].className.toString().indexOf("mxgraph")>=0&&function(d){try{for(var e=d.firstChild;e!=null&&e.nodeType!=mxConstants.NODETYPE_ELEMENT;)e=e.nextSibling;var f=e.innerHTML,f=f.substring(0,16)=="&lt;mxGraphModel"?f.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;gt;/g,"&gt;").replace(/&amp;lt;/g,"&lt;").replace(/&amp;quot;/g,"&quot;").replace(/&#xa;/g,"\n"):f.substring(0,15)=="%3CmxGraphModel"?decodeURIComponent(f):decodeURIComponent(RawDeflate.inflate(Base64.decode(f,
  true))),n=mxUtils.parseXml(f);if(n.documentElement!=null&&n.documentElement.nodeName=="mxGraphModel"){var m=new mxCodec(n),o=n.documentElement;d.innerHTML="";var q=new mxGraph(d);q.resetViewOnRootChange=false;q.setTooltips(false);q.setEnabled(false);if(a!=null){var p=mxUtils.parseXml(a);(new mxCodec(p)).decode(p.documentElement,q.getStylesheet())}if(o.getAttribute("pan")!="0"){q.panningHandler.useLeftButtonForPanning=true;q.panningHandler.ignoreCell=true;d.style.cursor="move";q.setPanning(true)}else d.style.cursor=
