# HG changeset patch # User proteore # Date 1568292165 14400 # Node ID 72295909dccf7ccef02418177c9b6a1831d30a75 # Parent bca31ac678f15394076184fa89d8b2758352dc70 planemo upload commit be715899a70273edde64b10533e2dffafcfdcb0a-dirty diff -r bca31ac678f1 -r 72295909dccf jvenn_template.html --- a/jvenn_template.html Fri Jun 28 05:18:44 2019 -0400 +++ b/jvenn_template.html Thu Sep 12 08:42:45 2019 -0400 @@ -95,8 +95,8 @@ * This copyright notice MUST APPEAR in all copies of the script! ***************************************************************/ !function(){"use strict";function s(s,t){var e,l=Object.keys(t);for(e=0;el;l++)e+=t[Math.floor(Math.random()*t.length)];while(s[e]);return e}function e(s,t){var e,l,r,o={};for(s=s.split(","),t=t||10,e=0;e1?(t=e,t.width=arguments[0],t.height=arguments[1]):t=s?s:e,this instanceof c?(this.width=t.width||e.width,this.height=t.height||e.height,this.enableMirroring=void 0!==t.enableMirroring?t.enableMirroring:e.enableMirroring,this.canvas=this,this.__canvas=document.createElement("canvas"),this.__ctx=this.__canvas.getContext("2d"),this.__setDefaultStyles(),this.__stack=[this.__getStyleState()],this.__groupStack=[],this.__root=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.__root.setAttribute("version",1.1),this.__root.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.__root.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),this.__root.setAttribute("width",this.width),this.__root.setAttribute("height",this.height),this.__ids={},this.__defs=document.createElementNS("http://www.w3.org/2000/svg","defs"),this.__root.appendChild(this.__defs),this.__currentElement=document.createElementNS("http://www.w3.org/2000/svg","g"),void this.__root.appendChild(this.__currentElement)):new c(t)},c.prototype.__createElement=function(s,t,e){var l,r,o=document.createElementNS("http://www.w3.org/2000/svg",s),c=Object.keys(t);for(e&&(o.setAttribute("fill","none"),o.setAttribute("stroke","none")),l=0;lf&&(f+=2*Math.PI),C=c?f>Math.PI?0:1:f>Math.PI?1:0,this.moveTo(u,p),this.__addPathCommand(s("A {rx} {ry} {xAxisRotation} {largeArcFlag} {sweepFlag} {endX} {endY}",{rx:l,ry:l,xAxisRotation:0,largeArcFlag:C,sweepFlag:n,endX:i,endY:a}))},c.prototype.clip=function(){var e=this.__closestGroupOrSvg(),l=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),r=t(this.__ids),o=document.createElementNS("http://www.w3.org/2000/svg","g");e.removeChild(this.__currentElement),l.setAttribute("id",r),l.appendChild(this.__currentElement),this.__defs.appendChild(l),e.setAttribute("clip-path",s("url(#{id})",{id:r})),e.appendChild(o),this.__currentElement=o},c.prototype.drawImage=function(){var s,t,e,l,r,o,i,a,u,p,n,C,f,h,d,b=Array.prototype.slice.call(arguments),v=b[0],m=0,g=0;if(3===b.length)s=b[1],t=b[2],r=v.width,o=v.height,e=r,l=o;else if(5===b.length)s=b[1],t=b[2],e=b[3],l=b[4],r=v.width,o=v.height;else{if(9!==b.length)throw new Error("Inavlid number of arguments passed to drawImage: "+arguments.length);m=b[1],g=b[2],r=b[3],o=b[4],s=b[5],t=b[6],e=b[7],l=b[8]}if(i=this.__closestGroupOrSvg(),n=this.__currentElement,v instanceof c){for(a=v.getSvg(),u=a.childNodes[0];u.childNodes.length;)d=u.childNodes[0].getAttribute("id"),this.__ids[d]=d,this.__defs.appendChild(u.childNodes[0]);p=a.childNodes[1],i.appendChild(p),this.__currentElement=p,this.translate(s,t),this.__currentElement=n}else("CANVAS"===v.nodeName||"IMG"===v.nodeName)&&(C=document.createElementNS("http://www.w3.org/2000/svg","image"),C.setAttribute("width",e),C.setAttribute("height",l),C.setAttribute("preserveAspectRatio","none"),(m||g||r!==v.width||o!==v.height)&&(f=document.createElement("canvas"),f.width=e,f.height=l,h=f.getContext("2d"),h.drawImage(v,m,g,r,o,0,0,e,l),v=f),C.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","CANVAS"===v.nodeName?v.toDataURL():v.getAttribute("src")),i.appendChild(C),this.__currentElement=C,this.translate(s,t),this.__currentElement=n)},c.prototype.createPattern=function(s){var e,l=document.createElementNS("http://www.w3.org/2000/svg","pattern"),r=t(this.__ids);return l.setAttribute("id",r),l.setAttribute("width",s.width),l.setAttribute("height",s.height),"CANVAS"===s.nodeName||"IMG"===s.nodeName?(e=document.createElementNS("http://www.w3.org/2000/svg","image"),e.setAttribute("width",s.width),e.setAttribute("height",s.height),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","CANVAS"===s.nodeName?s.toDataURL():s.getAttribute("src")),l.appendChild(e),this.__defs.appendChild(l)):s instanceof c&&(l.appendChild(s.__root.childNodes[1]),this.__defs.appendChild(l)),new a(l,this)},c.prototype.drawFocusRing=function(){},c.prototype.createImageData=function(){},c.prototype.getImageData=function(){},c.prototype.putImageData=function(){},c.prototype.globalCompositeOperation=function(){},c.prototype.arcTo=function(){},c.prototype.setTransform=function(){},window.C2S=c}(),function(s){s.fn.jvenn=function(e){function l(s,t,e,l,r,o,c){j.beginPath(),j.save(),j.translate(s,t),j.rotate(o*Math.PI/180),j.scale(l,r),j.arc(0,0,e,0,2*Math.PI),j.fillStyle=c,j.fill(),j.restore()}function r(s,t,e,l,r,o,c){j.beginPath(),j.save(),j.moveTo(s,t),j.lineTo(e,l),j.lineTo(r,o),j.fillStyle=c,j.fill(),j.restore()}function o(s,t,e,l,r){j.lineWidth=1,j.beginPath(),j.moveTo(s,t),j.lineTo(e,l),j.strokeStyle=r,j.stroke()}function c(s,t,e,l,r,o,c){j.beginPath(),j.save(),j.translate(s,t),j.rotate(o*Math.PI/180),j.scale(l,r),j.arc(0,0,e,0,2*Math.PI),j.lineWidth=3,j.strokeStyle=c,d(c)>=.6&&(j.fillStyle=h(c,.1),j.fill()),j.stroke(),j.restore()}function a(s){var t=!1;j.strokeStyle=s,j.lineWidth=3,j.beginPath(),j.arc(120,205,90,.25*Math.PI,1.75*Math.PI,t),j.stroke(),j.beginPath(),j.arc(370,205,90,1.25*Math.PI,.75*Math.PI,t),j.stroke(),j.beginPath(),j.arc(245,360,110,1.3*Math.PI,1.7*Math.PI,t),j.stroke(),j.beginPath(),j.arc(245,50,110,.3*Math.PI,.7*Math.PI,t),j.stroke(),d(s)>=.6&&(j.save(),j.beginPath(),j.moveTo(0,0),j.lineTo(500,0),j.lineTo(500,415),j.lineTo(0,415),j.closePath(),j.clip(),j.strokeStyle="rgba(0,0,0,0)",j.lineCap="butt",j.lineJoin="miter",j.miterLimit=4,j.save(),j.restore(),j.save(),j.restore(),j.save(),j.translate(-11,-633),j.save(),j.strokeStyle="rgba(0,0,0,0)",j.translate(0,636),j.beginPath(),j.moveTo(116.68996,288.55847),j.bezierCurveTo(114.18984,288.06339,109.64415,287.21717,106.58843999999999,286.67797),j.bezierCurveTo(91.905866,284.08711,74.873379,272.58587,62.202665,256.70632),j.bezierCurveTo(50.11906,241.56257,44.228048,226.01748,43.257799,206.71498),j.bezierCurveTo(41.560634,172.95091,57.502272,144.04252,87.68464900000001,126.1518),j.bezierCurveTo(113.85468,110.63942,151.67555000000002,111.15554999999999,176.27348,127.36075),j.bezierCurveTo(180.25579000000002,129.9843,185.18402,133.59167,187.22511,135.37712),j.bezierCurveTo(194.61144,141.83832999999998,205.94366,148.05088999999998,218.69964,152.63209999999998),j.bezierCurveTo(245.95179,162.41950999999997,276.56952,161.09978999999998,302.53531,149.01852999999997),j.bezierCurveTo(312.66749999999996,144.30425999999997,319.21466,140.23029999999997,324.17127999999997,135.55560999999997),j.bezierCurveTo(333.89739,126.38270999999997,351.79472999999996,118.14201999999997,367.20779999999996,115.73977999999997),j.bezierCurveTo(378.37728999999996,113.99892999999997,395.02293999999995,115.10837999999997,406.09866999999997,118.33190999999997),j.bezierCurveTo(427.39104999999995,124.52893999999996,447.81205,140.89770999999996,458.49307999999996,160.32946999999996),j.bezierCurveTo(466.21541999999994,174.37854999999996,468.14135,182.79986999999997,468.18706999999995,202.71742999999995),j.bezierCurveTo(468.21646999999996,215.53506999999996,467.84246999999993,219.76843999999994,466.13687999999996,225.92328999999995),j.bezierCurveTo(460.34646999999995,246.81870999999995,443.97394999999995,267.47014999999993,423.77633999999995,279.35468999999995),j.bezierCurveTo(411.54527999999993,286.55159999999995,399.98404999999997,289.09283999999997,379.83469999999994,289.01338999999996),j.bezierCurveTo(354.90229999999997,288.91508999999996,338.08241999999996,282.66270999999995,322.01485999999994,267.52031999999997),j.bezierCurveTo(312.0940299999999,258.17073,292.45028999999994,249.89035999999996,272.32759999999996,246.57576999999998),j.bezierCurveTo(254.94397999999995,243.71236999999996,234.25916999999995,245.61216,218.58554999999996,251.51169),j.bezierCurveTo(206.28085999999996,256.14317,191.57338999999996,264.45267,188.72360999999995,268.38324),j.bezierCurveTo(186.89117999999996,270.91063,172.96095999999994,280.26608,166.96462999999994,282.99643),j.bezierCurveTo(164.03704999999994,284.32946999999996,158.23248999999996,286.16623,154.06560999999994,287.07811999999996),j.bezierCurveTo(145.28290999999993,289.00015999999994,123.31454999999994,289.87026999999995,116.68995999999993,288.55846999999994),j.lineTo(116.68995999999993,288.55846999999994),j.closePath(),j.fillStyle=h(s,.1),j.fill(),j.stroke(),j.restore(),j.restore(),j.restore())}function u(s){var t=!1;j.strokeStyle=s,j.lineWidth=3,j.beginPath(),j.arc(145,205,40,.35*Math.PI,1.65*Math.PI,t),j.stroke(),j.beginPath(),j.arc(345,205,40,1.35*Math.PI,.65*Math.PI,t),j.stroke(),j.beginPath(),j.arc(245,100,40,.8*Math.PI,2.2*Math.PI,t),j.stroke(),j.beginPath(),j.arc(245,310,40,1.82*Math.PI,1.18*Math.PI,t),j.stroke(),j.beginPath(),j.arc(182,140,35,1.84*Math.PI,.7*Math.PI,t),j.stroke(),j.beginPath(),j.arc(308,140,35,.3*Math.PI,1.18*Math.PI,t),j.stroke(),j.beginPath(),j.arc(182,270,35,1.3*Math.PI,.2*Math.PI,t),j.stroke(),j.beginPath(),j.arc(308,270,35,.8*Math.PI,1.7*Math.PI,t),j.stroke(),d(s)>=.6&&(j.save(),j.beginPath(),j.moveTo(0,0),j.lineTo(500,0),j.lineTo(500,415),j.lineTo(0,415),j.closePath(),j.clip(),j.strokeStyle="rgba(0,0,0,0)",j.lineCap="butt",j.lineJoin="miter",j.miterLimit=4,j.save(),j.restore(),j.save(),j.restore(),j.save(),j.translate(-140,-212),j.save(),j.strokeStyle="rgba(0,0,0,0)",j.translate(139,217),j.beginPath(),j.moveTo(234.95394,341.16933),j.bezierCurveTo(231.80731999999998,340.135,227.61570999999998,338.28931,225.63925999999998,337.0678),j.bezierCurveTo(221.28248999999997,334.37516999999997,214.37806999999998,326.70736999999997,211.83772,321.74032),j.bezierCurveTo(207.9414,314.12196,208.45042999999998,293.37118,212.67719,287.51943),j.bezierCurveTo(215.87649,283.09018,218.95801,274.65101,219.59244,268.58113),j.bezierCurveTo(220.45250000000001,260.35249,218.0029,251.63114999999996,212.48275,243.26837999999998),j.bezierCurveTo(206.02273000000002,233.48175999999998,198.89664000000002,229.43794999999997,185.95006,228.21201),j.bezierCurveTo(178.17816000000002,227.47606,172.06373000000002,228.9391,162.89332000000002,233.72894),j.bezierCurveTo(156.28128,237.18251999999998,155.23208000000002,237.42228,146.73088,237.42244),j.bezierCurveTo(135.51808000000003,237.42266,128.41302000000002,234.90269,121.10778000000002,228.33465999999999),j.bezierCurveTo(114.30638000000002,222.21962,111.33466000000001,216.76216,109.78745000000002,207.54525999999998),j.bezierCurveTo(108.21951000000003,198.20489999999998,109.69855000000003,187.35654,113.42449000000002,180.86914),j.bezierCurveTo(116.70310000000002,175.16054,123.50535000000002,169.17129,130.61112000000003,165.73660999999998),j.bezierCurveTo(135.84135000000003,163.2085,137.81975000000003,162.82216,145.72073000000003,162.78605),j.bezierCurveTo(154.43018000000004,162.74624999999997,155.21524000000002,162.9348,164.40855000000002,167.27446999999998),j.bezierCurveTo(173.55745000000002,171.59319999999997,174.43144,171.80518999999998,183.14876,171.82016),j.bezierCurveTo(191.71748000000002,171.83496,192.78155,171.59418,200.06856000000002,167.99274),j.bezierCurveTo(206.71571000000003,164.70754,208.40559000000002,163.31437,211.70876,158.39629),j.bezierCurveTo(216.86766,150.71523,219.00004,144.97677,219.64970000000002,137.02646),j.bezierCurveTo(220.25703000000001,129.59413999999998,217.81806000000003,120.60798999999999,213.36866000000003,113.88449999999999),j.bezierCurveTo(208.31047000000004,106.24103999999998,207.60430000000002,86.789031,212.06743000000003,78.04059099999999),j.bezierCurveTo(215.36468000000002,71.57742099999999,222.48250000000002,64.79066099999999,229.83172000000002,61.10251999999999),j.bezierCurveTo(236.05208000000002,57.98088699999999,237.41276000000002,57.68862899999999,245.72583000000003,57.68862899999999),j.bezierCurveTo(253.41441000000003,57.68862899999999,255.67446000000004,58.09343499999999,260.37304,60.31215099999999),j.bezierCurveTo(277.08479,68.203604,286.51407,86.23497699999999,282.57463,102.76767),j.bezierCurveTo(281.86319000000003,105.75339,279.29147,112.06009,276.85971,116.78255),j.bezierCurveTo(273.65874,122.99881,272.27383000000003,127.0461,271.84239,131.44528),j.bezierCurveTo(270.33639000000005,146.80139,279.61874,162.9296,293.20300000000003,168.5596),j.bezierCurveTo(306.55802000000006,174.09458999999998,314.0903,173.65240999999997,329.06341000000003,166.45448),j.bezierCurveTo(336.00568000000004,163.11717,337.40021,162.8096,345.73093000000006,162.77846),j.bezierCurveTo(353.96010000000007,162.74776,355.45355000000006,163.05339,361.47832000000005,166.00153),j.bezierCurveTo(369.53210000000007,169.94254,376.64791,177.20452,380.3403400000001,185.25103000000001),j.bezierCurveTo(382.5644300000001,190.09773,382.9971500000001,192.49377,383.0256800000001,200.12014000000002),j.bezierCurveTo(383.0562800000001,208.31117000000003,382.74275000000006,209.86176000000003,379.8593200000001,215.77750000000003),j.bezierCurveTo(376.0651900000001,223.56169000000003,370.1637800000001,229.56756000000004,362.0334900000001,233.91890000000004),j.bezierCurveTo(351.4550500000001,239.58048000000002,339.7398500000001,239.17006000000003,326.6582200000001,232.67959000000005),j.bezierCurveTo(310.6073100000001,224.71590000000003,294.4869300000001,227.24494000000004,281.98739000000006,239.68774000000005),j.bezierCurveTo(270.03863000000007,251.58229000000006,268.4080000000001,270.18789000000004,277.92910000000006,285.99336000000005),j.bezierCurveTo(284.3299400000001,296.61906000000005,285.13914000000005,307.05507000000006,280.51249000000007,319.31069),j.bezierCurveTo(277.5959900000001,327.03626,268.9701400000001,335.93369,260.6715500000001,339.77631),j.bezierCurveTo(253.04107000000008,343.30956000000003,243.1026400000001,343.84789,234.95394000000007,341.16933),j.lineTo(234.95394000000007,341.16933),j.closePath(),j.fillStyle=h(s,.1),j.fill(),j.stroke(),j.restore(),j.restore(),j.restore())}function p(s){var t=!1;j.strokeStyle=s,j.lineWidth=3,j.beginPath(),j.arc(151,205,18,.4*Math.PI,1.6*Math.PI,t),j.stroke(),j.beginPath(),j.arc(167,238,18,1.35*Math.PI,2.42*Math.PI,t),j.stroke(),j.beginPath(),j.arc(180,272,18,.18*Math.PI,1.33*Math.PI,t),j.stroke(),j.beginPath(),j.arc(212,289,18,1.15*Math.PI,2.1*Math.PI,t),j.stroke(),j.beginPath(),j.arc(245,302,18,1.85*Math.PI,1.15*Math.PI,t),j.stroke(),j.beginPath(),j.arc(279,289,18,.87*Math.PI,1.85*Math.PI,t),j.stroke(),j.beginPath(),j.arc(311,272,18,1.65*Math.PI,.85*Math.PI,t),j.stroke(),j.beginPath(),j.arc(325,238,18,.54*Math.PI,1.68*Math.PI,t),j.stroke(),j.beginPath(),j.arc(340,205,18,1.37*Math.PI,.59*Math.PI,t),j.stroke(),j.beginPath(),j.arc(325,172,18,.35*Math.PI,1.4*Math.PI,t),j.stroke(),j.beginPath(),j.arc(311,138,18,1.15*Math.PI,2.35*Math.PI,t),j.stroke(),j.beginPath(),j.arc(279,122,18,.17*Math.PI,1.1*Math.PI,t),j.stroke(),j.beginPath(),j.arc(245,108,18,.8*Math.PI,2.15*Math.PI,t),j.stroke(),j.beginPath(),j.arc(212,122,18,1.9*Math.PI,.85*Math.PI,t),j.stroke(),j.beginPath(),j.arc(180,138,18,.65*Math.PI,1.85*Math.PI,t),j.stroke(),j.beginPath(),j.arc(167,172,18,1.6*Math.PI,.7*Math.PI,t),j.stroke(),d(s)>=.6&&(j.save(),j.beginPath(),j.moveTo(0,0),j.lineTo(500,0),j.lineTo(500,415),j.lineTo(0,415),j.closePath(),j.clip(),j.strokeStyle="rgba(0,0,0,0)",j.lineCap="butt",j.lineJoin="miter",j.miterLimit=4,j.save(),j.restore(),j.save(),j.restore(),j.save(),j.translate(-4,-637),j.save(),j.strokeStyle="rgba(0,0,0,0)",j.translate(0,637),j.beginPath(),j.moveTo(242.80929,316.76895),j.bezierCurveTo(239.2558,315.3947,234.83257,308.84895,234.18254000000002,304.00262000000004),j.bezierCurveTo(233.85998,301.59777,234.27994,298.62012000000004,235.27891000000002,296.22928),j.bezierCurveTo(237.39948,291.15406,237.29592000000002,285.99823000000004,234.97058,280.87787000000003),j.bezierCurveTo(231.58546,273.42388000000005,224.01393000000002,268.42150000000004,216.05280000000002,268.37923),j.bezierCurveTo(210.33377000000002,268.34883,202.51030000000003,272.78013,198.27794000000003,278.44704),j.bezierCurveTo(196.41545000000002,280.94083,193.36619000000002,284.00917000000004,191.50181000000003,285.26557),j.bezierCurveTo(180.81154000000004,292.46974,165.85368000000003,281.37461,168.71196000000003,268.36097),j.bezierCurveTo(169.66342000000003,264.02899,174.42957000000004,258.84685,179.89636000000004,256.20042),j.bezierCurveTo(188.48844000000005,252.04107000000002,193.00795000000005,242.34352,190.58184000000006,233.27254000000002),j.bezierCurveTo(189.87870000000007,230.64358000000001,188.21908000000005,227.07100000000003,186.89381000000006,225.33348),j.bezierCurveTo(182.51221000000007,219.58889000000002,172.48125000000005,216.46373,166.00572000000005,218.82574),j.bezierCurveTo(160.88401000000005,220.69395,153.47334000000006,221.17446999999999,149.58323000000004,219.89061),j.bezierCurveTo(147.65941000000004,219.25570000000002,144.69894000000005,217.15717,143.00442000000004,215.22721),j.bezierCurveTo(140.25313000000003,212.09367,139.92347000000004,211.02317000000002,139.92347000000004,205.22251),j.bezierCurveTo(139.92347000000004,199.42185,140.25313000000003,198.35135,143.00442000000004,195.21781),j.bezierCurveTo(148.08184000000003,189.43495,155.59116000000003,188.31217999999998,166.73325000000003,191.66995999999997),j.bezierCurveTo(171.89873000000003,193.22662999999997,176.76581000000002,192.32402999999996,182.19737000000003,188.80213999999998),j.bezierCurveTo(186.99980000000002,185.68819,191.44125000000003,178.0236,191.44125000000003,172.85002999999998),j.bezierCurveTo(191.44125000000003,165.91124999999997,187.02605000000003,157.91411999999997,181.72540000000004,155.25199999999998),j.bezierCurveTo(168.68097000000003,148.70074999999997,164.62205000000003,137.69753999999998,171.78539000000004,128.30592),j.bezierCurveTo(178.71368000000004,119.22245999999998,190.67567000000003,120.01398999999998,197.23888000000002,129.99017999999998),j.bezierCurveTo(204.51058000000003,141.04331,214.32951000000003,144.72351999999998,224.37555000000003,140.16123),j.bezierCurveTo(235.23365000000004,135.23013999999998,238.86734000000004,125.44275999999999,234.78543000000002,112.12207),j.bezierCurveTo(233.16446000000002,106.83225999999999,234.54797000000002,101.56208,238.76789000000002,96.95178),j.bezierCurveTo(248.33151000000004,86.503446,267.39820000000003,96.55735,264.708,110.63005),j.bezierCurveTo(262.24834000000004,123.49681,263.43732,130.24138,269.17704000000003,135.9811),j.bezierCurveTo(273.84920000000005,140.65326,279.80664,142.46487,287.54524000000004,141.56671),j.bezierCurveTo(290.80029,141.18892,293.25246000000004,140.53831,292.99449000000004,140.12091),j.bezierCurveTo(292.73652000000004,139.70352,293.68403000000006,138.74196,295.10007,137.98412000000002),j.bezierCurveTo(296.51611,137.22628000000003,298.81193,134.66566000000003,300.2019,132.29385000000002),j.bezierCurveTo(303.47878000000003,126.70229000000002,307.77937000000003,123.14413000000002,312.28166000000004,122.29950000000002),j.bezierCurveTo(323.19238000000007,120.25263000000002,332.5219000000001,130.29284,330.36964000000006,141.76535),j.bezierCurveTo(329.6006300000001,145.86456,323.8285400000001,152.29884,317.5065000000001,156.10419000000002),j.bezierCurveTo(312.2969800000001,159.23989,308.17124000000007,167.72107000000003,308.8642700000001,173.86973),j.bezierCurveTo(309.6787300000001,181.09556,313.7704700000001,186.95133,320.2047800000001,190.09934),j.bezierCurveTo(326.1904100000001,193.02784000000003,330.20042000000007,193.13284000000002,338.9627100000001,190.59052000000003),j.bezierCurveTo(344.9917000000001,188.84125000000003,350.1988400000001,189.89377000000002,354.59001000000006,193.74927000000002),j.bezierCurveTo(368.2933100000001,205.78092000000004,353.68808000000007,226.52374000000003,336.55395000000004,219.36465),j.bezierCurveTo(323.93852000000004,214.09358,308.93266000000006,224.16784,308.71798000000007,238.05247),j.bezierCurveTo(308.6646800000001,241.50290999999999,311.2253800000001,248.07176,313.86683000000005,251.26035),j.bezierCurveTo(314.59179000000006,252.13548,316.54865000000007,253.7222,318.21540000000005,254.7864),j.bezierCurveTo(324.03371000000004,258.50135,328.85284000000007,263.67991,329.97401,267.42204),j.bezierCurveTo(332.95992,277.3881,325.11943,287.55831,314.45977000000005,287.54616999999996),j.bezierCurveTo(309.88386,287.54116999999997,305.3854400000001,284.53792999999996,300.84666000000004,278.45842999999996),j.bezierCurveTo(295.84636000000006,271.76072,288.36647000000005,267.87215,281.88796,268.60236999999995),j.bezierCurveTo(274.64614,269.41862999999995,268.80722000000003,273.50679999999994,265.64137,279.97756999999996),j.bezierCurveTo(263.21128,284.94451999999995,262.99769,286.21504999999996,263.64589,291.84819999999996),j.bezierCurveTo(265.39685000000003,307.06499999999994,264.64547,310.09781999999996,257.87161000000003,315.15523999999994),j.bezierCurveTo(254.81776000000002,317.43526999999995,246.76347000000004,318.2981699999999,242.80929000000003,316.76894999999996),j.lineTo(242.80929000000003,316.76894999999996),j.closePath(),j.fillStyle=h(s,.1),j.fill(),j.stroke(),j.restore(),j.restore(),j.restore()) - }function n(s,t,e,l,r){var o=10;j.beginPath(),j.moveTo(s+o,t),j.lineTo(s+e-o,t),j.quadraticCurveTo(s+e,t,s+e,t+o),j.lineTo(s+e,t+l-o),j.quadraticCurveTo(s+e,t+l,s+e-o,t+l),j.lineTo(s+o,t+l),j.quadraticCurveTo(s,t+l,s,t+l-o),j.lineTo(s,t+o),j.quadraticCurveTo(s,t,s+o,t),j.closePath(),j.lineWidth=3,j.strokeStyle=r,d(r)>=.6&&(j.fillStyle=h(r,.1),j.fill()),j.stroke()}function C(s,t,e,l,r){s.beginPath(),s.moveTo(t,e),s.lineTo(l,r),s.closePath(),s.stroke()}function f(s,t,e,l,r,o,c){s.beginPath(),s.rect(t,e,l,r),s.closePath(),s.lineWidth=.75,s.shadowColor="rgba(0,0,0, 0.4)",s.shadowBlur=7,s.shadowOffsetX=2,s.shadowOffsetY=-2,s.strokeStyle=c,s.stroke(),s.fillStyle=o,s.fill()}function h(s,t){var e=s.slice(s.indexOf("(")+1,s.indexOf(")")),l=e.split(",");return"rgba("+l[0]+","+l[1]+","+l[2]+","+t+")"}function d(s){var t=s.slice(s.indexOf("(")+1,s.indexOf(")")),e=t.split(",");return e[3]}function b(){j.clearRect(0,0,O,N)}function v(t){for(var e="rgba(0,0,0, 0.7)",l=120,o=70,c=415,i=20,a=(370-t*i)/t,u=265,p=A(),n=new Array,d=0,b=0;t>b;b++)d=Math.max(d,p[b]);for(var b=0;t>b;b++)n.push(p[b]/d*(l-50));j.fillStyle="#000",j.font="italic 10pt Arial",j.textAlign="center",j.fillText("Size of each list",250,c+27),j.font="normal 8pt Arial",j.textAlign="right",j.fillText(0,45,c+l+2),j.fillText(d/2,45,c+(l+55)/2),j.fillText(d,45,c+54),j.textAlign="left";for(var b=0;t>b;b++)f(j,o+b*a+b*i,c+l-n[b],a,n[b],h(B.colors[b],.5),B.colors[b]),l-n[b]+15<=l-10?(j.textAlign="right",j.fillStyle="white",j.fillText(p[b],a+65+b*a+b*i,c+l-n[b]+15)):(j.textAlign="right",j.fillText(p[b],a+65+b*a+b*i,c+l-n[b]-10)),u=b%2&&t>2?c+l+25:c+l+15,j.fillStyle="#000",j.textAlign="center",j.fillText(s("#label"+(b+1)).html(),o+b*a+b*i+a/2,u,200),j.strokeStyle=e,j.lineWidth=.4,C(j,o+b*a+b*i+a/2,c+l,o+b*a+b*i+a/2,c+l+5);j.lineWidth=1,j.strokeStyle=e,C(j,50,c+l,50,c+35),C(j,50,c+l,450,c+l),j.lineWidth=.4,C(j,47,c+(l+48)/2,53,c+(l+48)/2),C(j,47,c+50,53,c+50),r(50,c+25,46,c+35,54,c+35,e),r(460,c+l,450,c+l-4,450,c+l+4,e);var v=k(),m=new Array;i=2,o=60,c+=l+50;for(var g=390+i,x=0,b=0;t>b;b++)x+=v[b];for(var b=0;t>b;b++)m.push(v[b]/x*g);j.font="italic 10pt Arial",j.textAlign="center",j.fillText("Number of elements: specific (1) or shared by 2, 3, ... lists",250,c),j.font="normal 8pt Arial";for(var y=0,_=0,b=t-1;b>=0;b--)0!=m[b]&&(f(j,o+y,c+15,m[b]-i,20,h("rgb(156,106,156)",1/(b+1.5)),"rgba(0,0,0,0.5)"),j.textAlign="center",j.fillStyle="white",m[b]-i<25?(j.fillStyle="#000",j.fillText(b+1,(m[b]-i)/2+o+y,c+57+_),j.textAlign="left",j.fillText("("+v[b]+")",(m[b]-i)/2+o+y+6,c+57+_),48!=_?_+=12:_=0):(_>=24&&(_=0),j.fillText(v[b],(m[b]-i)/2+o+y,c+29),j.fillStyle="#000",j.fillText(b+1,(m[b]-i)/2+o+y,c+57+_),_=0),j.strokeStyle=e,j.lineWidth=.4,C(j,(m[b]-i)/2+o+y,c+40,(m[b]-i)/2+o+y,c+45),y+=m[b]);j.lineWidth=1,j.strokeStyle=e,C(j,50,c+40,460,c+40)}function m(s,t,e,l){B.shortNumber&&s.text().length>l&&s.html("?");var r=t-(s.text().length-1)/2*4;s.css("left",r).css("top",e)}function g(s){var t=s.length?s.length:0,e=s[0]instanceof Array?s[0].length:0;for(l=0;t>l;l++)s[l]instanceof Array&&s[l].length>e&&(e=s[l].length);if(0===e||0===t)return[];var l,r,o=[];for(l=0;e>l;l++)for(o[l]=[],r=0;t>r;r++)o[l][r]=s[r][l];return o}function x(t){var e="rgba(0,0,0,0.1)";6==t?(r(0,11,254,160,174,235,h(B.colors[0],s("#label1").css("opacity"))),r(188,0,134,242,236,202,h(B.colors[1],s("#label2").css("opacity"))),r(338,52,135,123,191,242,h(B.colors[2],s("#label3").css("opacity"))),r(500,260,163,117,134,219,h(B.colors[3],s("#label4").css("opacity"))),r(250,415,133,150,203,67,h(B.colors[4],s("#label5").css("opacity"))),r(11,307,263,81,214,220,h(B.colors[5],s("#label6").css("opacity"))),s("#label1").css("left",35).css("top",10).css("color",B.colors[0]),s("#label2").css("left",200).css("top",5).css("color",B.colors[1]),s("#label3").css("left",335).css("top",60).css("color",B.colors[2]),s("#label4").css("left",410).css("top",200).css("color",B.colors[3]),s("#label5").css("left",255).css("top",385).css("color",B.colors[4]),s("#label6").css("left",30).css("top",300).css("color",B.colors[5]),m(s("#resultC100000"),98,90,6),m(s("#resultC010000"),187,50,4),m(s("#resultC001000"),280,80,6),m(s("#resultC000100"),320,205,6),m(s("#resultC000010"),212,272,5),m(s("#resultC000001"),100,240,6),m(s("#resultC111111"),185,170,6),o(140,80,166,110,e),m(s("#resultC110000"),132,60,6),m(s("#resultC101000"),142,116,2),o(75,180,145,185,e),o(75,180,65,175,e),m(s("#resultC100100"),55,157,6),m(s("#resultC100010"),140,145,2),o(75,200,142,190,e),o(75,200,65,195,e),m(s("#resultC100001"),55,177,6),o(230,80,212,115,e),m(s("#resultC011000"),230,60,6),m(s("#resultC010100"),225,190,1),m(s("#resultC010010"),193,82,3),m(s("#resultC010001"),145,218,2),o(295,145,235,180,e),m(s("#resultC001100"),302,132,6),o(275,270,193,233,e),m(s("#resultC001010"),275,268,6),m(s("#resultC001001"),232,113,4),m(s("#resultC000110"),216,211,1),o(75,220,140,205,e),o(75,220,65,215,e),m(s("#resultC000101"),55,197,6),o(150,270,183,230,e),m(s("#resultC000011"),145,268,6),m(s("#resultC111110"),170,130,6),s("#resultC111110").hide(),m(s("#resultC111101"),218,155,6),s("#resultC111101").hide(),m(s("#resultC111011"),205,125,6),s("#resultC111011").hide(),m(s("#resultC110111"),160,190,6),s("#resultC110111").hide(),m(s("#resultC101111"),180,212,6),s("#resultC101111").hide(),m(s("#resultC011111"),208,197,6),s("#resultC011111").hide(),m(s("#resultC111100"),225,170,6),s("#resultC111100").hide(),m(s("#resultC111010"),182,113,6),s("#resultC111010").hide(),m(s("#resultC110110"),149,163,6),s("#resultC110110").hide(),m(s("#resultC101110"),152,140,6),s("#resultC101110").hide(),m(s("#resultC011110"),215,195,6),s("#resultC011110").hide(),m(s("#resultC111001"),212,128,6),s("#resultC111001").hide(),m(s("#resultC110101"),150,194,6),s("#resultC110101").hide(),m(s("#resultC110011"),168,216,6),s("#resultC110011").hide(),m(s("#resultC101101"),226,145,6),s("#resultC101101").hide(),m(s("#resultC101011"),178,216,6),s("#resultC101011").hide(),m(s("#resultC100111"),178,214,6),s("#resultC100111").hide(),m(s("#resultC011101"),218,180,6),s("#resultC011101").hide(),m(s("#resultC011011"),206,122,6),s("#resultC011011").hide(),m(s("#resultC010111"),215,198,6),s("#resultC010111").hide(),m(s("#resultC001111"),200,208,6),s("#resultC001111").hide(),m(s("#resultC111000"),156,105,6),s("#resultC111000").hide(),m(s("#resultC110100"),145,174,6),s("#resultC110100").hide(),m(s("#resultC110010"),163,100,6),s("#resultC110010").hide(),m(s("#resultC101100"),238,152,6),s("#resultC101100").hide(),m(s("#resultC101010"),148,128,6),s("#resultC101010").hide(),m(s("#resultC100110"),145,158,6),s("#resultC100110").hide(),m(s("#resultC011100"),226,178,6),s("#resultC011100").hide(),m(s("#resultC011010"),195,105,6),s("#resultC011010").hide(),m(s("#resultC010110"),218,198,6),s("#resultC010110").hide(),m(s("#resultC001110"),202,216,6),s("#resultC001110").hide(),m(s("#resultC110001"),160,213,6),s("#resultC110001").hide(),m(s("#resultC101001"),220,132,6),s("#resultC101001").hide(),m(s("#resultC100101"),139,182,6),s("#resultC100101").hide(),m(s("#resultC100011"),170,220,6),s("#resultC100011").hide(),m(s("#resultC011001"),212,122,6),s("#resultC011001").hide(),m(s("#resultC010101"),146,203,6),s("#resultC010101").hide(),m(s("#resultC010011"),164,220,6),s("#resultC010011").hide(),m(s("#resultC001101"),233,138,6),s("#resultC001101").hide(),m(s("#resultC001011"),185,218,6),s("#resultC001011").hide(),m(s("#resultC000111"),209,207,6),s("#resultC000111").hide()):5==t?(l(214,230,10,18.6,9.5,25,h(B.colors[0],s("#label1").css("opacity"))),l(232,187,10,18.6,9.5,98,h(B.colors[1],s("#label2").css("opacity"))),l(273,196,10,18.6,9.5,170,h(B.colors[2],s("#label3").css("opacity"))),l(282,238,10,18.6,9.5,62,h(B.colors[3],s("#label4").css("opacity"))),l(242,260,10,18.6,9.5,134,h(B.colors[4],s("#label5").css("opacity"))),s("#label1").css("left",0).css("top",100).css("color",B.colors[0]),s("#label2").css("left",310).css("top",15).css("color",B.colors[1]),s("#label3").css("left",450).css("top",120).css("color",B.colors[2]),s("#label4").css("left",387).css("top",400).css("color",B.colors[3]),s("#label5").css("left",40).css("top",400).css("color",B.colors[4]),s("#label6").css("left",-1e3).css("top",-2200),m(s("#resultC100000"),75,150,6),m(s("#resultC010000"),245,30,6),m(s("#resultC001000"),415,162,6),m(s("#resultC000100"),350,370,6),m(s("#resultC000010"),132,370,6),m(s("#resultC110000"),152,118,2),m(s("#resultC101000"),110,200,6),m(s("#resultC100100"),350,295,6),m(s("#resultC100010"),125,273,2),m(s("#resultC011000"),309,94,3),m(s("#resultC010100"),215,82,6),m(s("#resultC010010"),195,340,6),m(s("#resultC001100"),378,232,2),m(s("#resultC001010"),360,140,5),m(s("#resultC000110"),261,347,2),m(s("#resultC111000"),148,180,4),m(s("#resultC110100"),168,113,2),m(s("#resultC110010"),176,295,6),m(s("#resultC101100"),367,248,2),m(s("#resultC101010"),127,256,2),m(s("#resultC100110"),305,300,4),m(s("#resultC011100"),240,110,6),m(s("#resultC011010"),317,108,2),m(s("#resultC010110"),248,338,2),m(s("#resultC001110"),345,180,4),m(s("#resultC111100"),185,140,6),m(s("#resultC111010"),158,245,6),m(s("#resultC110110"),250,310,6),m(s("#resultC101110"),330,240,6),m(s("#resultC011110"),290,133,6),m(s("#resultC111110"),245,210,6),s("#resultC000001").css("left",-1e3).css("top",-2200),s("#resultC100001").css("left",-1e3).css("top",-2200),s("#resultC010001").css("left",-1e3).css("top",-2200),s("#resultC001001").css("left",-1e3).css("top",-2200),s("#resultC000101").css("left",-1e3).css("top",-2200),s("#resultC000011").css("left",-1e3).css("top",-2200),s("#resultC110001").css("left",-1e3).css("top",-2200),s("#resultC101001").css("left",-1e3).css("top",-2200),s("#resultC100101").css("left",-1e3).css("top",-2200),s("#resultC100011").css("left",-1e3).css("top",-2200),s("#resultC011001").css("left",-1e3).css("top",-2200),s("#resultC010101").css("left",-1e3).css("top",-2200),s("#resultC010011").css("left",-1e3).css("top",-2200),s("#resultC001101").css("left",-1e3).css("top",-2200),s("#resultC001011").css("left",-1e3).css("top",-2200),s("#resultC000111").css("left",-1e3).css("top",-2200),s("#resultC111001").css("left",-1e3).css("top",-2200),s("#resultC110101").css("left",-1e3).css("top",-2200),s("#resultC110011").css("left",-1e3).css("top",-2200),s("#resultC101101").css("left",-1e3).css("top",-2200),s("#resultC101011").css("left",-1e3).css("top",-2200),s("#resultC100111").css("left",-1e3).css("top",-2200),s("#resultC011101").css("left",-1e3).css("top",-2200),s("#resultC011011").css("left",-1e3).css("top",-2200),s("#resultC010111").css("left",-1e3).css("top",-2200),s("#resultC001111").css("left",-1e3).css("top",-2200),s("#resultC111101").css("left",-1e3).css("top",-2200),s("#resultC111011").css("left",-1e3).css("top",-2200),s("#resultC110111").css("left",-1e3).css("top",-2200),s("#resultC101111").css("left",-1e3).css("top",-2200),s("#resultC011111").css("left",-1e3).css("top",-2200),s("#resultC111111").css("left",-1e3).css("top",-2200)):4==t?(l(181,238,10,18.5,11.5,40,h(B.colors[0],s("#label1").css("opacity"))),l(242,177,10,18.5,11.5,40,h(B.colors[1],s("#label2").css("opacity"))),l(259,177,10,18.5,11.5,140,h(B.colors[2],s("#label3").css("opacity"))),l(320,238,10,18.5,11.5,140,h(B.colors[3],s("#label4").css("opacity"))),s("#label1").css("left",5).css("top",70).css("color",B.colors[0]),s("#label2").css("left",85).css("top",5).css("color",B.colors[1]),s("#label3").css("left",350).css("top",5).css("color",B.colors[2]),s("#label4").css("left",428).css("top",70).css("color",B.colors[3]),s("#label5").css("left",-1e3).css("top",-2200),s("#label6").css("left",-1e3).css("top",-2200),m(s("#resultC100000"),55,190,6),m(s("#resultC010000"),140,60,6),m(s("#resultC001000"),335,60,6),m(s("#resultC000100"),430,190,6),m(s("#resultC110000"),105,120,6),m(s("#resultC101000"),130,260,6),m(s("#resultC100100"),245,340,6),m(s("#resultC011000"),245,90,6),m(s("#resultC010100"),365,260,6),m(s("#resultC001100"),385,120,6),m(s("#resultC111000"),160,170,6),m(s("#resultC110100"),310,290,6),m(s("#resultC101100"),180,290,6),m(s("#resultC011100"),330,170,6),m(s("#resultC111100"),245,220,6),s("#resultC000010").css("left",-1e3).css("top",-2200),s("#resultC100010").css("left",-1e3).css("top",-2200),s("#resultC010010").css("left",-1e3).css("top",-2200),s("#resultC001010").css("left",-1e3).css("top",-2200),s("#resultC000110").css("left",-1e3).css("top",-2200),s("#resultC110010").css("left",-1e3).css("top",-2200),s("#resultC101010").css("left",-1e3).css("top",-2200),s("#resultC100110").css("left",-1e3).css("top",-2200),s("#resultC011010").css("left",-1e3).css("top",-2200),s("#resultC010110").css("left",-1e3).css("top",-2200),s("#resultC001110").css("left",-1e3).css("top",-2200),s("#resultC111010").css("left",-1e3).css("top",-2200),s("#resultC110110").css("left",-1e3).css("top",-2200),s("#resultC101110").css("left",-1e3).css("top",-2200),s("#resultC011110").css("left",-1e3).css("top",-2200),s("#resultC111110").css("left",-1e3).css("top",-2200),s("#resultC000001").css("left",-1e3).css("top",-2200),s("#resultC100001").css("left",-1e3).css("top",-2200),s("#resultC010001").css("left",-1e3).css("top",-2200),s("#resultC001001").css("left",-1e3).css("top",-2200),s("#resultC000101").css("left",-1e3).css("top",-2200),s("#resultC000011").css("left",-1e3).css("top",-2200),s("#resultC110001").css("left",-1e3).css("top",-2200),s("#resultC101001").css("left",-1e3).css("top",-2200),s("#resultC100101").css("left",-1e3).css("top",-2200),s("#resultC100011").css("left",-1e3).css("top",-2200),s("#resultC011001").css("left",-1e3).css("top",-2200),s("#resultC010101").css("left",-1e3).css("top",-2200),s("#resultC010011").css("left",-1e3).css("top",-2200),s("#resultC001101").css("left",-1e3).css("top",-2200),s("#resultC001011").css("left",-1e3).css("top",-2200),s("#resultC000111").css("left",-1e3).css("top",-2200),s("#resultC111001").css("left",-1e3).css("top",-2200),s("#resultC110101").css("left",-1e3).css("top",-2200),s("#resultC110011").css("left",-1e3).css("top",-2200),s("#resultC101101").css("left",-1e3).css("top",-2200),s("#resultC101011").css("left",-1e3).css("top",-2200),s("#resultC100111").css("left",-1e3).css("top",-2200),s("#resultC011101").css("left",-1e3).css("top",-2200),s("#resultC011011").css("left",-1e3).css("top",-2200),s("#resultC010111").css("left",-1e3).css("top",-2200),s("#resultC001111").css("left",-1e3).css("top",-2200),s("#resultC111101").css("left",-1e3).css("top",-2200),s("#resultC111011").css("left",-1e3).css("top",-2200),s("#resultC110111").css("left",-1e3).css("top",-2200),s("#resultC101111").css("left",-1e3).css("top",-2200),s("#resultC011111").css("left",-1e3).css("top",-2200),s("#resultC111111").css("left",-1e3).css("top",-2200)):3==t?(l(171,142,120,1,1,0,h(B.colors[0],s("#label1").css("opacity"))),l(327,142,120,1,1,0,h(B.colors[1],s("#label2").css("opacity"))),l(249,271,120,1,1,0,h(B.colors[2],s("#label3").css("opacity"))),s("#label1").css("left",55).css("top",5).css("color",B.colors[0]),s("#label2").css("left",380).css("top",5).css("color",B.colors[1]),s("#label3").css("left",220).css("top",400).css("color",B.colors[2]),s("#label4").css("left",-1e3).css("top",-2200),s("#label5").css("left",-1e3).css("top",-2200),s("#label6").css("left",-1e3).css("top",-2200),m(s("#resultC100000"),120,100,8),m(s("#resultC010000"),360,100,8),m(s("#resultC001000"),245,330,8),m(s("#resultC110000"),245,100,8),m(s("#resultC101000"),170,220,8),m(s("#resultC011000"),320,220,8),m(s("#resultC111000"),245,175,8),s("#resultC000100").css("left",-1e3).css("top",-2200),s("#resultC000010").css("left",-1e3).css("top",-2200),s("#resultC100100").css("left",-1e3).css("top",-2200),s("#resultC100010").css("left",-1e3).css("top",-2200),s("#resultC010100").css("left",-1e3).css("top",-2200),s("#resultC010010").css("left",-1e3).css("top",-2200),s("#resultC001100").css("left",-1e3).css("top",-2200),s("#resultC001010").css("left",-1e3).css("top",-2200),s("#resultC000110").css("left",-1e3).css("top",-2200),s("#resultC110100").css("left",-1e3).css("top",-2200),s("#resultC110010").css("left",-1e3).css("top",-2200),s("#resultC101100").css("left",-1e3).css("top",-2200),s("#resultC101010").css("left",-1e3).css("top",-2200),s("#resultC100110").css("left",-1e3).css("top",-2200),s("#resultC011100").css("left",-1e3).css("top",-2200),s("#resultC011010").css("left",-1e3).css("top",-2200),s("#resultC010110").css("left",-1e3).css("top",-2200),s("#resultC001110").css("left",-1e3).css("top",-2200),s("#resultC111100").css("left",-1e3).css("top",-2200),s("#resultC111010").css("left",-1e3).css("top",-2200),s("#resultC110110").css("left",-1e3).css("top",-2200),s("#resultC101110").css("left",-1e3).css("top",-2200),s("#resultC011110").css("left",-1e3).css("top",-2200),s("#resultC111110").css("left",-1e3).css("top",-2200),s("#resultC000001").css("left",-1e3).css("top",-2200),s("#resultC100001").css("left",-1e3).css("top",-2200),s("#resultC010001").css("left",-1e3).css("top",-2200),s("#resultC001001").css("left",-1e3).css("top",-2200),s("#resultC000101").css("left",-1e3).css("top",-2200),s("#resultC000011").css("left",-1e3).css("top",-2200),s("#resultC110001").css("left",-1e3).css("top",-2200),s("#resultC101001").css("left",-1e3).css("top",-2200),s("#resultC100101").css("left",-1e3).css("top",-2200),s("#resultC100011").css("left",-1e3).css("top",-2200),s("#resultC011001").css("left",-1e3).css("top",-2200),s("#resultC010101").css("left",-1e3).css("top",-2200),s("#resultC010011").css("left",-1e3).css("top",-2200),s("#resultC001101").css("left",-1e3).css("top",-2200),s("#resultC001011").css("left",-1e3).css("top",-2200),s("#resultC000111").css("left",-1e3).css("top",-2200),s("#resultC111001").css("left",-1e3).css("top",-2200),s("#resultC110101").css("left",-1e3).css("top",-2200),s("#resultC110011").css("left",-1e3).css("top",-2200),s("#resultC101101").css("left",-1e3).css("top",-2200),s("#resultC101011").css("left",-1e3).css("top",-2200),s("#resultC100111").css("left",-1e3).css("top",-2200),s("#resultC011101").css("left",-1e3).css("top",-2200),s("#resultC011011").css("left",-1e3).css("top",-2200),s("#resultC010111").css("left",-1e3).css("top",-2200),s("#resultC001111").css("left",-1e3).css("top",-2200),s("#resultC111101").css("left",-1e3).css("top",-2200),s("#resultC111011").css("left",-1e3).css("top",-2200),s("#resultC110111").css("left",-1e3).css("top",-2200),s("#resultC101111").css("left",-1e3).css("top",-2200),s("#resultC011111").css("left",-1e3).css("top",-2200),s("#resultC111111").css("left",-1e3).css("top",-2200)):2==t?(l(171,206,140,1,1,0,h(B.colors[0],s("#label1").css("opacity"))),l(327,206,140,1,1,0,h(B.colors[1],s("#label2").css("opacity"))),s("#label1").css("left",95).css("top",40).css("color",B.colors[0]),s("#label2").css("left",360).css("top",40).css("color",B.colors[1]),s("#label3").css("left",-1e3).css("top",-2200),s("#label4").css("left",-1e3).css("top",-2200),s("#label5").css("left",-1e3).css("top",-2200),s("#label6").css("left",-1e3).css("top",-2200),m(s("#resultC100000"),120,195,10),m(s("#resultC010000"),360,195,10),m(s("#resultC110000"),250,195,10),s("#resultC001000").css("left",-1e3).css("top",-2200),s("#resultC000100").css("left",-1e3).css("top",-2200),s("#resultC000010").css("left",-1e3).css("top",-2200),s("#resultC101000").css("left",-1e3).css("top",-2200),s("#resultC100100").css("left",-1e3).css("top",-2200),s("#resultC100010").css("left",-1e3).css("top",-2200),s("#resultC011000").css("left",-1e3).css("top",-2200),s("#resultC010100").css("left",-1e3).css("top",-2200),s("#resultC010010").css("left",-1e3).css("top",-2200),s("#resultC001100").css("left",-1e3).css("top",-2200),s("#resultC001010").css("left",-1e3).css("top",-2200),s("#resultC000110").css("left",-1e3).css("top",-2200),s("#resultC111000").css("left",-1e3).css("top",-2200),s("#resultC110100").css("left",-1e3).css("top",-2200),s("#resultC110010").css("left",-1e3).css("top",-2200),s("#resultC101100").css("left",-1e3).css("top",-2200),s("#resultC101010").css("left",-1e3).css("top",-2200),s("#resultC100110").css("left",-1e3).css("top",-2200),s("#resultC011100").css("left",-1e3).css("top",-2200),s("#resultC011010").css("left",-1e3).css("top",-2200),s("#resultC010110").css("left",-1e3).css("top",-2200),s("#resultC001110").css("left",-1e3).css("top",-2200),s("#resultC111100").css("left",-1e3).css("top",-2200),s("#resultC111010").css("left",-1e3).css("top",-2200),s("#resultC110110").css("left",-1e3).css("top",-2200),s("#resultC101110").css("left",-1e3).css("top",-2200),s("#resultC011110").css("left",-1e3).css("top",-2200),s("#resultC111110").css("left",-1e3).css("top",-2200),s("#resultC000001").css("left",-1e3).css("top",-2200),s("#resultC100001").css("left",-1e3).css("top",-2200),s("#resultC010001").css("left",-1e3).css("top",-2200),s("#resultC001001").css("left",-1e3).css("top",-2200),s("#resultC000101").css("left",-1e3).css("top",-2200),s("#resultC000011").css("left",-1e3).css("top",-2200),s("#resultC110001").css("left",-1e3).css("top",-2200),s("#resultC101001").css("left",-1e3).css("top",-2200),s("#resultC100101").css("left",-1e3).css("top",-2200),s("#resultC100011").css("left",-1e3).css("top",-2200),s("#resultC011001").css("left",-1e3).css("top",-2200),s("#resultC010101").css("left",-1e3).css("top",-2200),s("#resultC010011").css("left",-1e3).css("top",-2200),s("#resultC001101").css("left",-1e3).css("top",-2200),s("#resultC001011").css("left",-1e3).css("top",-2200),s("#resultC000111").css("left",-1e3).css("top",-2200),s("#resultC111001").css("left",-1e3).css("top",-2200),s("#resultC110101").css("left",-1e3).css("top",-2200),s("#resultC110011").css("left",-1e3).css("top",-2200),s("#resultC101101").css("left",-1e3).css("top",-2200),s("#resultC101011").css("left",-1e3).css("top",-2200),s("#resultC100111").css("left",-1e3).css("top",-2200),s("#resultC011101").css("left",-1e3).css("top",-2200),s("#resultC011011").css("left",-1e3).css("top",-2200),s("#resultC010111").css("left",-1e3).css("top",-2200),s("#resultC001111").css("left",-1e3).css("top",-2200),s("#resultC111101").css("left",-1e3).css("top",-2200),s("#resultC111011").css("left",-1e3).css("top",-2200),s("#resultC110111").css("left",-1e3).css("top",-2200),s("#resultC101111").css("left",-1e3).css("top",-2200),s("#resultC011111").css("left",-1e3).css("top",-2200),s("#resultC111111").css("left",-1e3).css("top",-2200)):(l(246,210,140,1,1,0,h(B.colors[0],s("#label1").css("opacity"))),s("#label1").css("left",225).css("top",30).css("color",B.colors[0]),s("#label2").css("left",-1e3).css("top",-2200),s("#label3").css("left",-1e3).css("top",-2200),s("#label4").css("left",-1e3).css("top",-2200),s("#label5").css("left",-1e3).css("top",-2200),s("#label6").css("left",-1e3).css("top",-2200),m(s("#resultC100000"),245,200,10),s("#resultC010000").css("left",-1e3).css("top",-2200),s("#resultC001000").css("left",-1e3).css("top",-2200),s("#resultC000100").css("left",-1e3).css("top",-2200),s("#resultC000010").css("left",-1e3).css("top",-2200),s("#resultC110000").css("left",-1e3).css("top",-2200),s("#resultC101000").css("left",-1e3).css("top",-2200),s("#resultC100100").css("left",-1e3).css("top",-2200),s("#resultC100010").css("left",-1e3).css("top",-2200),s("#resultC011000").css("left",-1e3).css("top",-2200),s("#resultC010100").css("left",-1e3).css("top",-2200),s("#resultC010010").css("left",-1e3).css("top",-2200),s("#resultC001100").css("left",-1e3).css("top",-2200),s("#resultC001010").css("left",-1e3).css("top",-2200),s("#resultC000110").css("left",-1e3).css("top",-2200),s("#resultC111000").css("left",-1e3).css("top",-2200),s("#resultC110100").css("left",-1e3).css("top",-2200),s("#resultC110010").css("left",-1e3).css("top",-2200),s("#resultC101100").css("left",-1e3).css("top",-2200),s("#resultC101010").css("left",-1e3).css("top",-2200),s("#resultC100110").css("left",-1e3).css("top",-2200),s("#resultC011100").css("left",-1e3).css("top",-2200),s("#resultC011010").css("left",-1e3).css("top",-2200),s("#resultC010110").css("left",-1e3).css("top",-2200),s("#resultC001110").css("left",-1e3).css("top",-2200),s("#resultC111100").css("left",-1e3).css("top",-2200),s("#resultC111010").css("left",-1e3).css("top",-2200),s("#resultC110110").css("left",-1e3).css("top",-2200),s("#resultC101110").css("left",-1e3).css("top",-2200),s("#resultC011110").css("left",-1e3).css("top",-2200),s("#resultC111110").css("left",-1e3).css("top",-2200),s("#resultC000001").css("left",-1e3).css("top",-2200),s("#resultC100001").css("left",-1e3).css("top",-2200),s("#resultC010001").css("left",-1e3).css("top",-2200),s("#resultC001001").css("left",-1e3).css("top",-2200),s("#resultC000101").css("left",-1e3).css("top",-2200),s("#resultC000011").css("left",-1e3).css("top",-2200),s("#resultC110001").css("left",-1e3).css("top",-2200),s("#resultC101001").css("left",-1e3).css("top",-2200),s("#resultC100101").css("left",-1e3).css("top",-2200),s("#resultC100011").css("left",-1e3).css("top",-2200),s("#resultC011001").css("left",-1e3).css("top",-2200),s("#resultC010101").css("left",-1e3).css("top",-2200),s("#resultC010011").css("left",-1e3).css("top",-2200),s("#resultC001101").css("left",-1e3).css("top",-2200),s("#resultC001011").css("left",-1e3).css("top",-2200),s("#resultC000111").css("left",-1e3).css("top",-2200),s("#resultC111001").css("left",-1e3).css("top",-2200),s("#resultC110101").css("left",-1e3).css("top",-2200),s("#resultC110011").css("left",-1e3).css("top",-2200),s("#resultC101101").css("left",-1e3).css("top",-2200),s("#resultC101011").css("left",-1e3).css("top",-2200),s("#resultC100111").css("left",-1e3).css("top",-2200),s("#resultC011101").css("left",-1e3).css("top",-2200),s("#resultC011011").css("left",-1e3).css("top",-2200),s("#resultC010111").css("left",-1e3).css("top",-2200),s("#resultC001111").css("left",-1e3).css("top",-2200),s("#resultC111101").css("left",-1e3).css("top",-2200),s("#resultC111011").css("left",-1e3).css("top",-2200),s("#resultC110111").css("left",-1e3).css("top",-2200),s("#resultC101111").css("left",-1e3).css("top",-2200),s("#resultC011111").css("left",-1e3).css("top",-2200),s("#resultC111111").css("left",-1e3).css("top",-2200))}function y(t){6==t?(c(246,206,90,1,1,0,h(B.colors[0],s("#label1").css("opacity"))),n(245,25,250,365,h(B.colors[1],s("#label2").css("opacity"))),n(5,205,490,185,h(B.colors[2],s("#label3").css("opacity"))),a(h(B.colors[3],s("#label4").css("opacity"))),u(h(B.colors[4],s("#label5").css("opacity"))),p(h(B.colors[5],s("#label6").css("opacity"))),s("#label1").css("left",297).css("top",90).css("color",B.colors[0]),s("#label2").css("left",267).css("top",0).css("color",B.colors[1]),s("#label3").css("left",27).css("top",400).css("color",B.colors[2]),s("#label4").css("left",55).css("top",90).css("color",B.colors[3]),s("#label5").css("left",282).css("top",45).css("color",B.colors[4]),s("#label6").css("left",297).css("top",302).css("color",B.colors[5]),m(s("#resultC100000"),204,122,1),m(s("#resultC010000"),390,70,6),m(s("#resultC001000"),85,330,6),m(s("#resultC000100"),85,150,6),m(s("#resultC000010"),225,70,3),m(s("#resultC110000"),280,122,1),m(s("#resultC101000"),204,269,1),m(s("#resultC100100"),172,155,1),m(s("#resultC100010"),218,118,1),m(s("#resultC011000"),390,330,6),m(s("#resultC010100"),390,150,6),m(s("#resultC010010"),258,70,3),m(s("#resultC001100"),85,240,6),m(s("#resultC001010"),225,320,3),m(s("#resultC000110"),120,178,2),m(s("#resultC111000"),280,269,1),m(s("#resultC110100"),314,155,1),m(s("#resultC110010"),266,118,1),m(s("#resultC101100"),172,235,1),m(s("#resultC101010"),219,274,1),m(s("#resultC100110"),167,171,1),m(s("#resultC011100"),390,240,6),m(s("#resultC011010"),258,320,3),m(s("#resultC010110"),365,178,2),m(s("#resultC001110"),120,212,2),m(s("#resultC111100"),315,235,1),m(s("#resultC111010"),266,274,1),m(s("#resultC110110"),320,171,1),m(s("#resultC101110"),166,218,1),m(s("#resultC011110"),365,212,2),m(s("#resultC111110"),320,218,1),m(s("#resultC000001"),180,120,1),m(s("#resultC100001"),199,134,1),m(s("#resultC010001"),304,120,1),m(s("#resultC001001"),179,271,1),m(s("#resultC000101"),169,132,1),m(s("#resultC000011"),234,95,1),m(s("#resultC110001"),286,134,1),m(s("#resultC101001"),199,256,1),m(s("#resultC100101"),190,149,1),m(s("#resultC100011"),228,135,3),m(s("#resultC011001"),306,272,1),m(s("#resultC010101"),317,132,1),m(s("#resultC010011"),250,95,1),m(s("#resultC001101"),167,260,1),m(s("#resultC001011"),233,296,1),m(s("#resultC000111"),143,187,1),m(s("#resultC111001"),285,256,1),m(s("#resultC110101"),295,149,1),m(s("#resultC110011"),255,135,3),m(s("#resultC101101"),190,242,1),m(s("#resultC101011"),227,255,3),m(s("#resultC100111"),213,178,6),m(s("#resultC011101"),318,259,1),m(s("#resultC011011"),250,296,1),m(s("#resultC010111"),342,187,1),m(s("#resultC001111"),143,203,1),m(s("#resultC111101"),295,240,1),m(s("#resultC111011"),256,255,3),m(s("#resultC110111"),270,178,6),m(s("#resultC101111"),213,212,6),m(s("#resultC011111"),342,203,1),m(s("#resultC111111"),270,212,6)):5==t?(c(246,206,90,1,1,0,h(B.colors[0],s("#label1").css("opacity"))),n(245,25,250,365,h(B.colors[1],s("#label2").css("opacity"))),n(5,205,490,185,h(B.colors[2],s("#label3").css("opacity"))),a(h(B.colors[3],s("#label4").css("opacity"))),u(h(B.colors[4],s("#label5").css("opacity"))),s("#label1").css("left",297).css("top",90).css("color",B.colors[0]),s("#label2").css("left",267).css("top",0).css("color",B.colors[1]),s("#label3").css("left",27).css("top",400).css("color",B.colors[2]),s("#label4").css("left",55).css("top",90).css("color",B.colors[3]),s("#label5").css("left",282).css("top",45).css("color",B.colors[4]),s("#label6").css("left",-1e3).css("top",-2200),m(s("#resultC100000"),200,130,3),m(s("#resultC010000"),390,70,6),m(s("#resultC001000"),85,330,6),m(s("#resultC000100"),85,150,6),m(s("#resultC000010"),225,80,4),m(s("#resultC110000"),284,130,3),m(s("#resultC101000"),200,260,3),m(s("#resultC100100"),185,150,4),m(s("#resultC100010"),228,130,3),m(s("#resultC011000"),390,330,6),m(s("#resultC010100"),390,150,6),m(s("#resultC010010"),258,80,4),m(s("#resultC001100"),85,240,6),m(s("#resultC001010"),225,310,4),m(s("#resultC000110"),133,178,6),m(s("#resultC111000"),284,260,3),m(s("#resultC110100"),300,150,4),m(s("#resultC110010"),255,130,3),m(s("#resultC101100"),185,240,4),m(s("#resultC101010"),228,260,3),m(s("#resultC100110"),213,178,6),m(s("#resultC011100"),390,240,6),m(s("#resultC011010"),258,310,4),m(s("#resultC010110"),355,178,6),m(s("#resultC001110"),133,212,6),m(s("#resultC111100"),300,240,4),m(s("#resultC111010"),256,260,3),m(s("#resultC110110"),270,178,6),m(s("#resultC101110"),213,212,6),m(s("#resultC011110"),355,212,6),m(s("#resultC111110"),270,212,6),s("#resultC000001").css("left",-1e3).css("top",-2200),s("#resultC100001").css("left",-1e3).css("top",-2200),s("#resultC010001").css("left",-1e3).css("top",-2200),s("#resultC001001").css("left",-1e3).css("top",-2200),s("#resultC000101").css("left",-1e3).css("top",-2200),s("#resultC000011").css("left",-1e3).css("top",-2200),s("#resultC110001").css("left",-1e3).css("top",-2200),s("#resultC101001").css("left",-1e3).css("top",-2200),s("#resultC100101").css("left",-1e3).css("top",-2200),s("#resultC100011").css("left",-1e3).css("top",-2200),s("#resultC011001").css("left",-1e3).css("top",-2200),s("#resultC010101").css("left",-1e3).css("top",-2200),s("#resultC010011").css("left",-1e3).css("top",-2200),s("#resultC001101").css("left",-1e3).css("top",-2200),s("#resultC001011").css("left",-1e3).css("top",-2200),s("#resultC000111").css("left",-1e3).css("top",-2200),s("#resultC111001").css("left",-1e3).css("top",-2200),s("#resultC110101").css("left",-1e3).css("top",-2200),s("#resultC110011").css("left",-1e3).css("top",-2200),s("#resultC101101").css("left",-1e3).css("top",-2200),s("#resultC101011").css("left",-1e3).css("top",-2200),s("#resultC100111").css("left",-1e3).css("top",-2200),s("#resultC011101").css("left",-1e3).css("top",-2200),s("#resultC011011").css("left",-1e3).css("top",-2200),s("#resultC010111").css("left",-1e3).css("top",-2200),s("#resultC001111").css("left",-1e3).css("top",-2200),s("#resultC111101").css("left",-1e3).css("top",-2200),s("#resultC111011").css("left",-1e3).css("top",-2200),s("#resultC110111").css("left",-1e3).css("top",-2200),s("#resultC101111").css("left",-1e3).css("top",-2200),s("#resultC011111").css("left",-1e3).css("top",-2200),s("#resultC111111").css("left",-1e3).css("top",-2200)):4==t?(c(246,206,90,1,1,0,h(B.colors[0],s("#label1").css("opacity"))),n(245,25,250,365,h(B.colors[1],s("#label2").css("opacity"))),n(5,205,490,185,h(B.colors[2],s("#label3").css("opacity"))),a(h(B.colors[3],s("#label4").css("opacity"))),s("#label1").css("left",267).css("top",90).css("color",B.colors[0]),s("#label2").css("left",267).css("top",0).css("color",B.colors[1]),s("#label3").css("left",27).css("top",400).css("color",B.colors[2]),s("#label4").css("left",27).css("top",90).css("color",B.colors[3]),s("#label5").css("left",-1e3).css("top",-2200),s("#label6").css("left",-1e3).css("top",-2200),m(s("#resultC100000"),215,130,6),m(s("#resultC010000"),390,70,6),m(s("#resultC001000"),85,330,6),m(s("#resultC000100"),85,150,6),m(s("#resultC110000"),265,130,6),m(s("#resultC101000"),215,260,6),m(s("#resultC100100"),200,170,6),m(s("#resultC011000"),390,330,6),m(s("#resultC010100"),390,150,6),m(s("#resultC001100"),85,240,6),m(s("#resultC111000"),265,260,6),m(s("#resultC110100"),280,170,6),m(s("#resultC101100"),200,220,6),m(s("#resultC011100"),390,240,6),m(s("#resultC111100"),280,220,6),s("#resultC000010").css("left",-1e3).css("top",-2200),s("#resultC100010").css("left",-1e3).css("top",-2200),s("#resultC010010").css("left",-1e3).css("top",-2200),s("#resultC001010").css("left",-1e3).css("top",-2200),s("#resultC000110").css("left",-1e3).css("top",-2200),s("#resultC110010").css("left",-1e3).css("top",-2200),s("#resultC101010").css("left",-1e3).css("top",-2200),s("#resultC100110").css("left",-1e3).css("top",-2200),s("#resultC011010").css("left",-1e3).css("top",-2200),s("#resultC010110").css("left",-1e3).css("top",-2200),s("#resultC001110").css("left",-1e3).css("top",-2200),s("#resultC111010").css("left",-1e3).css("top",-2200),s("#resultC110110").css("left",-1e3).css("top",-2200),s("#resultC101110").css("left",-1e3).css("top",-2200),s("#resultC011110").css("left",-1e3).css("top",-2200),s("#resultC111110").css("left",-1e3).css("top",-2200),s("#resultC000001").css("left",-1e3).css("top",-2200),s("#resultC100001").css("left",-1e3).css("top",-2200),s("#resultC010001").css("left",-1e3).css("top",-2200),s("#resultC001001").css("left",-1e3).css("top",-2200),s("#resultC000101").css("left",-1e3).css("top",-2200),s("#resultC000011").css("left",-1e3).css("top",-2200),s("#resultC110001").css("left",-1e3).css("top",-2200),s("#resultC101001").css("left",-1e3).css("top",-2200),s("#resultC100101").css("left",-1e3).css("top",-2200),s("#resultC100011").css("left",-1e3).css("top",-2200),s("#resultC011001").css("left",-1e3).css("top",-2200),s("#resultC010101").css("left",-1e3).css("top",-2200),s("#resultC010011").css("left",-1e3).css("top",-2200),s("#resultC001101").css("left",-1e3).css("top",-2200),s("#resultC001011").css("left",-1e3).css("top",-2200),s("#resultC000111").css("left",-1e3).css("top",-2200),s("#resultC111001").css("left",-1e3).css("top",-2200),s("#resultC110101").css("left",-1e3).css("top",-2200),s("#resultC110011").css("left",-1e3).css("top",-2200),s("#resultC101101").css("left",-1e3).css("top",-2200),s("#resultC101011").css("left",-1e3).css("top",-2200),s("#resultC100111").css("left",-1e3).css("top",-2200),s("#resultC011101").css("left",-1e3).css("top",-2200),s("#resultC011011").css("left",-1e3).css("top",-2200),s("#resultC010111").css("left",-1e3).css("top",-2200),s("#resultC001111").css("left",-1e3).css("top",-2200),s("#resultC111101").css("left",-1e3).css("top",-2200),s("#resultC111011").css("left",-1e3).css("top",-2200),s("#resultC110111").css("left",-1e3).css("top",-2200),s("#resultC101111").css("left",-1e3).css("top",-2200),s("#resultC011111").css("left",-1e3).css("top",-2200),s("#resultC111111").css("left",-1e3).css("top",-2200)):3==t?(c(246,206,110,1,1,0,h(B.colors[0],s("#label1").css("opacity"))),n(245,25,250,365,h(B.colors[1],s("#label2").css("opacity"))),n(5,205,490,185,h(B.colors[2],s("#label3").css("opacity"))),s("#label1").css("left",95).css("top",75).css("color",B.colors[0]),s("#label2").css("left",267).css("top",0).css("color",B.colors[1]),s("#label3").css("left",27).css("top",400).css("color",B.colors[2]),s("#label4").css("left",-1e3).css("top",-2200),s("#label5").css("left",-1e3).css("top",-2200),s("#label6").css("left",-1e3).css("top",-2200),m(s("#resultC100000"),190,150,8),m(s("#resultC010000"),390,70,8),m(s("#resultC001000"),85,330,8),m(s("#resultC110000"),290,150,8),m(s("#resultC101000"),190,240,8),m(s("#resultC011000"),390,330,8),m(s("#resultC111000"),290,240,8),s("#resultC000100").css("left",-1e3).css("top",-2200),s("#resultC000010").css("left",-1e3).css("top",-2200),s("#resultC100100").css("left",-1e3).css("top",-2200),s("#resultC100010").css("left",-1e3).css("top",-2200),s("#resultC010100").css("left",-1e3).css("top",-2200),s("#resultC010010").css("left",-1e3).css("top",-2200),s("#resultC001100").css("left",-1e3).css("top",-2200),s("#resultC001010").css("left",-1e3).css("top",-2200),s("#resultC000110").css("left",-1e3).css("top",-2200),s("#resultC110100").css("left",-1e3).css("top",-2200),s("#resultC110010").css("left",-1e3).css("top",-2200),s("#resultC101100").css("left",-1e3).css("top",-2200),s("#resultC101010").css("left",-1e3).css("top",-2200),s("#resultC100110").css("left",-1e3).css("top",-2200),s("#resultC011100").css("left",-1e3).css("top",-2200),s("#resultC011010").css("left",-1e3).css("top",-2200),s("#resultC010110").css("left",-1e3).css("top",-2200),s("#resultC001110").css("left",-1e3).css("top",-2200),s("#resultC111100").css("left",-1e3).css("top",-2200),s("#resultC111010").css("left",-1e3).css("top",-2200),s("#resultC110110").css("left",-1e3).css("top",-2200),s("#resultC101110").css("left",-1e3).css("top",-2200),s("#resultC011110").css("left",-1e3).css("top",-2200),s("#resultC111110").css("left",-1e3).css("top",-2200),s("#resultC000001").css("left",-1e3).css("top",-2200),s("#resultC100001").css("left",-1e3).css("top",-2200),s("#resultC010001").css("left",-1e3).css("top",-2200),s("#resultC001001").css("left",-1e3).css("top",-2200),s("#resultC000101").css("left",-1e3).css("top",-2200),s("#resultC000011").css("left",-1e3).css("top",-2200),s("#resultC110001").css("left",-1e3).css("top",-2200),s("#resultC101001").css("left",-1e3).css("top",-2200),s("#resultC100101").css("left",-1e3).css("top",-2200),s("#resultC100011").css("left",-1e3).css("top",-2200),s("#resultC011001").css("left",-1e3).css("top",-2200),s("#resultC010101").css("left",-1e3).css("top",-2200),s("#resultC010011").css("left",-1e3).css("top",-2200),s("#resultC001101").css("left",-1e3).css("top",-2200),s("#resultC001011").css("left",-1e3).css("top",-2200),s("#resultC000111").css("left",-1e3).css("top",-2200),s("#resultC111001").css("left",-1e3).css("top",-2200),s("#resultC110101").css("left",-1e3).css("top",-2200),s("#resultC110011").css("left",-1e3).css("top",-2200),s("#resultC101101").css("left",-1e3).css("top",-2200),s("#resultC101011").css("left",-1e3).css("top",-2200),s("#resultC100111").css("left",-1e3).css("top",-2200),s("#resultC011101").css("left",-1e3).css("top",-2200),s("#resultC011011").css("left",-1e3).css("top",-2200),s("#resultC010111").css("left",-1e3).css("top",-2200),s("#resultC001111").css("left",-1e3).css("top",-2200),s("#resultC111101").css("left",-1e3).css("top",-2200),s("#resultC111011").css("left",-1e3).css("top",-2200),s("#resultC110111").css("left",-1e3).css("top",-2200),s("#resultC101111").css("left",-1e3).css("top",-2200),s("#resultC011111").css("left",-1e3).css("top",-2200),s("#resultC111111").css("left",-1e3).css("top",-2200)):2==t?(c(246,206,110,1,1,0,h(B.colors[0],s("#label1").css("opacity"))),n(245,25,250,365,h(B.colors[1],s("#label2").css("opacity"))),s("#label1").css("left",95).css("top",75).css("color",B.colors[0]),s("#label2").css("left",267).css("top",0).css("color",B.colors[1]),s("#label3").css("left",-1e3).css("top",-2200),s("#label4").css("left",-1e3).css("top",-2200),s("#label5").css("left",-1e3).css("top",-2200),s("#label6").css("left",-1e3).css("top",-2200),m(s("#resultC100000"),180,195,10),m(s("#resultC010000"),420,195,10),m(s("#resultC110000"),290,195,10),s("#resultC001000").css("left",-1e3).css("top",-2200),s("#resultC000100").css("left",-1e3).css("top",-2200),s("#resultC000010").css("left",-1e3).css("top",-2200),s("#resultC101000").css("left",-1e3).css("top",-2200),s("#resultC100100").css("left",-1e3).css("top",-2200),s("#resultC100010").css("left",-1e3).css("top",-2200),s("#resultC011000").css("left",-1e3).css("top",-2200),s("#resultC010100").css("left",-1e3).css("top",-2200),s("#resultC010010").css("left",-1e3).css("top",-2200),s("#resultC001100").css("left",-1e3).css("top",-2200),s("#resultC001010").css("left",-1e3).css("top",-2200),s("#resultC000110").css("left",-1e3).css("top",-2200),s("#resultC111000").css("left",-1e3).css("top",-2200),s("#resultC110100").css("left",-1e3).css("top",-2200),s("#resultC110010").css("left",-1e3).css("top",-2200),s("#resultC101100").css("left",-1e3).css("top",-2200),s("#resultC101010").css("left",-1e3).css("top",-2200),s("#resultC100110").css("left",-1e3).css("top",-2200),s("#resultC011100").css("left",-1e3).css("top",-2200),s("#resultC011010").css("left",-1e3).css("top",-2200),s("#resultC010110").css("left",-1e3).css("top",-2200),s("#resultC001110").css("left",-1e3).css("top",-2200),s("#resultC111100").css("left",-1e3).css("top",-2200),s("#resultC111010").css("left",-1e3).css("top",-2200),s("#resultC110110").css("left",-1e3).css("top",-2200),s("#resultC101110").css("left",-1e3).css("top",-2200),s("#resultC011110").css("left",-1e3).css("top",-2200),s("#resultC111110").css("left",-1e3).css("top",-2200),s("#resultC000001").css("left",-1e3).css("top",-2200),s("#resultC100001").css("left",-1e3).css("top",-2200),s("#resultC010001").css("left",-1e3).css("top",-2200),s("#resultC001001").css("left",-1e3).css("top",-2200),s("#resultC000101").css("left",-1e3).css("top",-2200),s("#resultC000011").css("left",-1e3).css("top",-2200),s("#resultC110001").css("left",-1e3).css("top",-2200),s("#resultC101001").css("left",-1e3).css("top",-2200),s("#resultC100101").css("left",-1e3).css("top",-2200),s("#resultC100011").css("left",-1e3).css("top",-2200),s("#resultC011001").css("left",-1e3).css("top",-2200),s("#resultC010101").css("left",-1e3).css("top",-2200),s("#resultC010011").css("left",-1e3).css("top",-2200),s("#resultC001101").css("left",-1e3).css("top",-2200),s("#resultC001011").css("left",-1e3).css("top",-2200),s("#resultC000111").css("left",-1e3).css("top",-2200),s("#resultC111001").css("left",-1e3).css("top",-2200),s("#resultC110101").css("left",-1e3).css("top",-2200),s("#resultC110011").css("left",-1e3).css("top",-2200),s("#resultC101101").css("left",-1e3).css("top",-2200),s("#resultC101011").css("left",-1e3).css("top",-2200),s("#resultC100111").css("left",-1e3).css("top",-2200),s("#resultC011101").css("left",-1e3).css("top",-2200),s("#resultC011011").css("left",-1e3).css("top",-2200),s("#resultC010111").css("left",-1e3).css("top",-2200),s("#resultC001111").css("left",-1e3).css("top",-2200),s("#resultC111101").css("left",-1e3).css("top",-2200),s("#resultC111011").css("left",-1e3).css("top",-2200),s("#resultC110111").css("left",-1e3).css("top",-2200),s("#resultC101111").css("left",-1e3).css("top",-2200),s("#resultC011111").css("left",-1e3).css("top",-2200),s("#resultC111111").css("left",-1e3).css("top",-2200)):(c(246,210,140,1,1,0,h(B.colors[0],s("#label1").css("opacity"))),s("#label1").css("left",225).css("top",30).css("color",B.colors[0]),s("#label2").css("left",-1e3).css("top",-2200),s("#label3").css("left",-1e3).css("top",-2200),s("#label4").css("left",-1e3).css("top",-2200),s("#label5").css("left",-1e3).css("top",-2200),s("#label6").css("left",-1e3).css("top",-2200),m(s("#resultC100000"),245,200,10),s("#resultC010000").css("left",-1e3).css("top",-2200),s("#resultC001000").css("left",-1e3).css("top",-2200),s("#resultC000100").css("left",-1e3).css("top",-2200),s("#resultC000010").css("left",-1e3).css("top",-2200),s("#resultC110000").css("left",-1e3).css("top",-2200),s("#resultC101000").css("left",-1e3).css("top",-2200),s("#resultC100100").css("left",-1e3).css("top",-2200),s("#resultC100010").css("left",-1e3).css("top",-2200),s("#resultC011000").css("left",-1e3).css("top",-2200),s("#resultC010100").css("left",-1e3).css("top",-2200),s("#resultC010010").css("left",-1e3).css("top",-2200),s("#resultC001100").css("left",-1e3).css("top",-2200),s("#resultC001010").css("left",-1e3).css("top",-2200),s("#resultC000110").css("left",-1e3).css("top",-2200),s("#resultC111000").css("left",-1e3).css("top",-2200),s("#resultC110100").css("left",-1e3).css("top",-2200),s("#resultC110010").css("left",-1e3).css("top",-2200),s("#resultC101100").css("left",-1e3).css("top",-2200),s("#resultC101010").css("left",-1e3).css("top",-2200),s("#resultC100110").css("left",-1e3).css("top",-2200),s("#resultC011100").css("left",-1e3).css("top",-2200),s("#resultC011010").css("left",-1e3).css("top",-2200),s("#resultC010110").css("left",-1e3).css("top",-2200),s("#resultC001110").css("left",-1e3).css("top",-2200),s("#resultC111100").css("left",-1e3).css("top",-2200),s("#resultC111010").css("left",-1e3).css("top",-2200),s("#resultC110110").css("left",-1e3).css("top",-2200),s("#resultC101110").css("left",-1e3).css("top",-2200),s("#resultC011110").css("left",-1e3).css("top",-2200),s("#resultC111110").css("left",-1e3).css("top",-2200),s("#resultC000001").css("left",-1e3).css("top",-2200),s("#resultC100001").css("left",-1e3).css("top",-2200),s("#resultC010001").css("left",-1e3).css("top",-2200),s("#resultC001001").css("left",-1e3).css("top",-2200),s("#resultC000101").css("left",-1e3).css("top",-2200),s("#resultC000011").css("left",-1e3).css("top",-2200),s("#resultC110001").css("left",-1e3).css("top",-2200),s("#resultC101001").css("left",-1e3).css("top",-2200),s("#resultC100101").css("left",-1e3).css("top",-2200),s("#resultC100011").css("left",-1e3).css("top",-2200),s("#resultC011001").css("left",-1e3).css("top",-2200),s("#resultC010101").css("left",-1e3).css("top",-2200),s("#resultC010011").css("left",-1e3).css("top",-2200),s("#resultC001101").css("left",-1e3).css("top",-2200),s("#resultC001011").css("left",-1e3).css("top",-2200),s("#resultC000111").css("left",-1e3).css("top",-2200),s("#resultC111001").css("left",-1e3).css("top",-2200),s("#resultC110101").css("left",-1e3).css("top",-2200),s("#resultC110011").css("left",-1e3).css("top",-2200),s("#resultC101101").css("left",-1e3).css("top",-2200),s("#resultC101011").css("left",-1e3).css("top",-2200),s("#resultC100111").css("left",-1e3).css("top",-2200),s("#resultC011101").css("left",-1e3).css("top",-2200),s("#resultC011011").css("left",-1e3).css("top",-2200),s("#resultC010111").css("left",-1e3).css("top",-2200),s("#resultC001111").css("left",-1e3).css("top",-2200),s("#resultC111101").css("left",-1e3).css("top",-2200),s("#resultC111011").css("left",-1e3).css("top",-2200),s("#resultC110111").css("left",-1e3).css("top",-2200),s("#resultC101111").css("left",-1e3).css("top",-2200),s("#resultC011111").css("left",-1e3).css("top",-2200),s("#resultC111111").css("left",-1e3).css("top",-2200)) - }function _(t,e){$t=t;var l=1,r="",o='
';s("*[id^=label]").each(function(){o+='
',o+='off
',l+=1,l>e&&(r=";display:none")}),o+="
",$t.append(o),s("*[id^=item]").hover(function(){s(this).css("opacity",.75),s(this).css("box-shadow","0px 0px 8px 1px lightgrey")},function(){"off"===s(this).children("span").text()&&s(this).css("opacity",.5),s(this).css("box-shadow","none")}),s("*[id^=item]").click(function(){var t=null;t="off"===s(this).children("span").text()?M(s(this).attr("name")):I(s(this).attr("name")),null!=B.searchInput&&(B.searchInput.val(""),null!=B.searchStatus&&B.searchStatus.text("")),b(),"edwards"==B.displayMode?y(e):x(e),B.displayStat&&v(e),"resultC000000"!=t&&s("#"+t).show()})}function w(){var e=new Array,l=new Array;for(l[0]=new Array,l[1]=new Array,l[2]=new Array,l[3]=new Array,l[4]=new Array,l[5]=new Array,c=0;c0&&(l[c][r[t]]?l[c][r[t]]++:l[c][r[t]]=1,e[r[t]]="C")}for(t=0;6>t;t++){for(tt in l[t])e[tt]&&(e[tt]=e[tt]+"1");for(cl in e)e[cl].length0&&s(this).removeClass("number-empty")})}function z(){if(B.series.length>1)return new Array("list",B.series.length);if(void 0!=B.series[0]&&B.series[0].name.A){var s=0;for(i in B.series[0].name)s++;return new Array("count",s)}return new Array("list",B.series.length)}function P(s,t,e,l,r,o,c,i,a){return a?(t=parseInt(t.replace("px",""))+20,e=parseInt(e.replace("px",""))+14):(t=parseInt(t.replace("px",""))+5,e=parseInt(e.replace("px",""))+14),''+s+""}function S(t,e,l){$t=t;var r='
';r+='',r+='',r+='",r+="
",$t.append(r);var o=s("#canvasExport")[0],c=o.getContext("2d");for(i=0;3>i;i++)c.lineWidth=3,c.beginPath(),c.lineCap="round",c.moveTo(5,5+5.2*i),c.lineTo(20,5+5.2*i),c.strokeStyle="#666",c.stroke();var a=s("#export-menu"),u=s("#canvasExport").css("background");s("#format-png").click(function(){s("#canvasExport").css("background",u),s("#canvasExport").css("border-color","white"),s("#canvasExport").hover(function(){s(this).css("background","linear-gradient(to bottom, white, #AECEFF) repeat scroll 0 0 transparent"),s(this).css("border","1px solid #6688AA"),s(this).css("border-radius","3px")},function(){s(this).css("background",u),s(this).css("border-color","white")}),a.hide();var t=document.createElement("canvas");export_ctx=t.getContext("2d"),t.width=O,t.height=N;var e=document.createElement("img"),l=s("
");l.append(j.getSerializedSvg(!0)),s("[id^=resultC]").each(function(){"none"!=s(this).css("display")&&(value=0===s(this).html().indexOf("");t.append(j.getSerializedSvg(!0)),s("[id^=resultC]").each(function(){"none"!=s(this).css("display")&&(value=0===s(this).html().indexOf("=0&&(e=!0,l=l.replace(/,/g,"_")),s.push(l);for(var r=0;r=0&&(e=!0,l=this.list[r].replace(/,/g,"_")),s.push(l);t.push(s)}});var l="data:text/csv;charset=utf-8,";e&&(l+="##\n## Warning: comma(s) have been replaced by underscore(s)\n##\n"),g(t).forEach(function(s){l+=s.join(",")+"\n"});var r=encodeURI(l);s("#data-export").attr("href",r),s("#data-export").attr("download","jVenn.csv"),s("#data-export")[0].click()}),s("#canvasExport").click(function(){s(this).css("background","linear-gradient(to bottom, #AECEFF, white) repeat scroll 0 0 transparent"),s(this).css("border","1px solid #6688AA"),s("#canvasExport").unbind("mouseenter mouseleave"),a.show(),a.is(":visible")&&s(document).mouseup(function(t){0===a.has(t.target).length&&(s("#canvasExport").css("background",u),s("#canvasExport").css("border-color","white"),s("#canvasExport").hover(function(){s(this).css("background","linear-gradient(to bottom, white, #AECEFF) repeat scroll 0 0 transparent"),s(this).css("border","1px solid #6688AA"),s(this).css("border-radius","3px")},function(){s(this).css("background",u),s(this).css("border-color","white")}),a.hide())});var t=s("div[id^=format-]").css("background");s("div[id^=format-]").hover(function(){s(this).css("background","rgba(69,114,165,0.75)"),s(this).css("color","white")},function(){s(this).css("background",t),s(this).css("color","")})}),s("#canvasExport").hover(function(){s(this).css("background","linear-gradient(to bottom, white, #AECEFF) repeat scroll 0 0 transparent"),s(this).css("border","1px solid #6688AA"),s(this).css("border-radius","3px")},function(){s(this).css("background",u),s(this).css("border-color","white")})}function I(t,e){var e=null==e?!0:e,l=null;s("*[id^=label]").each(function(){if(s(this).html()==t){s(this).css("opacity",.1),s(this).removeClass("is-selected");var e=s(this).attr("id");l=e.charAt(e.length-1)}}),legend_button=s("#item-"+l),legend_button.children("span").css("margin-left","0px"),legend_button.css("opacity",.5),legend_button.children("span").text("off");var r="resultC000000";return s(".is-selected").each(function(){var t=s(this).attr("id"),e=6+parseInt(t.charAt(t.length-1));r=r.substr(0,e)+1+r.substr(e+1)}),"resultC000000"==r&&e?(s(".number-black").each(function(){s(this).css("opacity",1)}),s("*[id^=label]").each(function(){s(this).css("opacity",.6)})):s(".number-black").each(function(){s(this).attr("id")==r?s(this).css("opacity",1):s(this).css("opacity",.1)}),r}function M(t){var e=null;s("*[id^=label]").each(function(){if(s(this).html()==t){s(this).css("opacity",.6),s(this).addClass("is-selected");var l=s(this).attr("id");e=l.charAt(l.length-1)}else s(this).hasClass("is-selected")||s(this).css("opacity",.1)}),legend_button=s("#item-"+e),legend_button.children("span").css("margin-left","13px"),legend_button.css("opacity",.75),legend_button.css("color","black"),legend_button.children("span").text("on");var l="resultC000000";return s(".is-selected").each(function(){var t=s(this).attr("id"),e=6+parseInt(t.charAt(t.length-1));l=l.substr(0,e)+1+l.substr(e+1)}),s(".number-black").each(function(){s(this).attr("id")==l?s(this).css("opacity",1):s(this).css("opacity",.1)}),l}function F(t,e){var e=null==e?1:e,l=new Array,r="resultC000000",o=0;if(s("*[id^=label]").each(function(){""!=s(this).html()&&(l[s(this).html()]="unselected")}),""==t||e>t.length)for(var c in l)r=I(c);else{var i=null,a=!1;if(s(".number-black:not(.number-empty)").each(function(){for(var s=0;s=o)for(var c in l)r="selected"==l[c]?M(c):I(c,!1);else for(var c in l)r=I(c)}null!=B.searchStatus&&(""==t||e>t.length?B.searchStatus.text(""):0==o?B.searchStatus.text("not found"):1==o?B.searchStatus.text("found"):o>1&&B.searchStatus.text("ambiguous")),b(),"edwards"==B.displayMode?y(z()[1]):x(z()[1]),B.displayStat&&v(z()[1]),"resultC000000"!=r&&s("#"+r).show()}var D={series:[{name:"Actors",data:["Marilyn Monroe","Arnold Schwarzenegger","Jack Nicholson","Barbra Streisand","Robert de Niro","Dean Martin","Harrison Ford"]},{name:"Singers",data:["Freddy Mercury","Barbra Streisand","Dean Martin","Ricky Martin","Celine Dion","Marilyn Monroe"]}],fnClickCallback:function(){var s="";s+=1==this.listnames.length?"Elements only in ":"Common elements in ";for(name in this.listnames)s+=this.listnames[name]+" ";s+=":\n";for(val in this.list)s+=this.list[val]+"\n";alert(s)},disableClick:!1,useValues:!1,exporting:!0,displayMode:"classic",displayStat:!1,shortNumber:!0,searchInput:null,searchStatus:null,searchMinSize:1,colors:["rgb(0,102,0)","rgb(90,155,212)","rgb(241,90,96)","rgb(250,220,91)","rgb(255,117,0)","rgb(192,152,83)"],fontSize:"12px",fontFamily:"Arial"},B=s.extend(D,e),O=500,N=415,j=null;return this.each(function(){var t=s(this),e=0;B.displayStat&&(e=280,N+=e),t.css({width:"500px",height:""+(450+e)+"px"}),s("").appendTo("body");var l=434,r=130;"edwards"==B.displayMode&&(l=10,r=425),s("").appendTo("body"),s("").appendTo("body");var o='
';o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+="
",t.html(o),j=new C2S(O,N),s("*[id^=resultC]").each(function(){s(this).html(0),s(this).addClass("number-empty"),s(this).css("font-size",B.fontSize),s(this).css("font-family",B.fontFamily)}),s("*[id^=label]").each(function(){s(this).css("font-family",B.fontFamily)});var c=z();"list"==c[0]?w():"count"==c[0]&&E(),null!=B.searchInput&&B.searchInput.keyup(function(){F(B.searchInput.val(),B.searchMinSize)}),"edwards"==B.displayMode?y(c[1]):x(c[1]),B.displayStat&&v(c[1]),B.exporting===!0&&S(t,e,c[0]),c[1]>=4&&_(t,c[1]),s(".number-black").hover(function(){var t=!1;s("*[id^=item]").each(function(){"on"===s(this).children("span").text()&&(t=!0)});var e=!1;if(null!=B.searchInput&&""!=B.searchInput.val()&&(e=!0),!t&&!e&&""!==s(this).text()){var l=this.listnames,r=this;s("*[id^=label]").each(function(){l.indexOf(s(this).text())<0?s(this).css("opacity",.1):s(this).css("opacity",.6)}),s(".number-black").each(function(){this!=r&&s(this).css("opacity",.1)}),b(),"edwards"==B.displayMode?y(c[1]):x(c[1]),B.displayStat&&v(c[1])}},function(){var t=!1;s("*[id^=item]").each(function(){"on"===s(this).children("span").text()&&(t=!0)});var e=!1;if(null!=B.searchInput&&""!=B.searchInput.val()&&(e=!0),!t&&!e&&""!==s(this).text()){{this.listnames}s("*[id^=label]").each(function(){s(this).css("opacity",.5)}),s(".number-black").each(function(){s(this).css("opacity",1)}),b(),"edwards"==B.displayMode?y(c[1]):x(c[1]),B.displayStat&&v(c[1])}}),s("#canvasEllipse").html(j.getSvg())}),this}}(jQuery); + }function n(s,t,e,l,r){var o=10;j.beginPath(),j.moveTo(s+o,t),j.lineTo(s+e-o,t),j.quadraticCurveTo(s+e,t,s+e,t+o),j.lineTo(s+e,t+l-o),j.quadraticCurveTo(s+e,t+l,s+e-o,t+l),j.lineTo(s+o,t+l),j.quadraticCurveTo(s,t+l,s,t+l-o),j.lineTo(s,t+o),j.quadraticCurveTo(s,t,s+o,t),j.closePath(),j.lineWidth=3,j.strokeStyle=r,d(r)>=.6&&(j.fillStyle=h(r,.1),j.fill()),j.stroke()}function C(s,t,e,l,r){s.beginPath(),s.moveTo(t,e),s.lineTo(l,r),s.closePath(),s.stroke()}function f(s,t,e,l,r,o,c){s.beginPath(),s.rect(t,e,l,r),s.closePath(),s.lineWidth=.75,s.shadowColor="rgba(0,0,0, 0.4)",s.shadowBlur=7,s.shadowOffsetX=2,s.shadowOffsetY=-2,s.strokeStyle=c,s.stroke(),s.fillStyle=o,s.fill()}function h(s,t){var e=s.slice(s.indexOf("(")+1,s.indexOf(")")),l=e.split(",");return"rgba("+l[0]+","+l[1]+","+l[2]+","+t+")"}function d(s){var t=s.slice(s.indexOf("(")+1,s.indexOf(")")),e=t.split(",");return e[3]}function b(){j.clearRect(0,0,O,N)}function v(t){for(var e="rgba(0,0,0, 0.7)",l=120,o=70,c=415,i=20,a=(370-t*i)/t,u=265,p=A(),n=new Array,d=0,b=0;t>b;b++)d=Math.max(d,p[b]);for(var b=0;t>b;b++)n.push(p[b]/d*(l-50));j.fillStyle="#000",j.font="italic 10pt Arial",j.textAlign="center",j.fillText("Size of each list",250,c+27),j.font="normal 12pt Arial",j.textAlign="right",j.fillText(0,45,c+l+2),j.fillText(d/2,45,c+(l+55)/2),j.fillText(d,45,c+54),j.textAlign="left";for(var b=0;t>b;b++)f(j,o+b*a+b*i,c+l-n[b],a,n[b],h(B.colors[b],.5),B.colors[b]),l-n[b]+15<=l-10?(j.textAlign="right",j.fillStyle="white",j.fillText(p[b],a+65+b*a+b*i,c+l-n[b]+15)):(j.textAlign="right",j.fillText(p[b],a+65+b*a+b*i,c+l-n[b]-10)),u=b%2&&t>2?c+l+25:c+l+15,j.fillStyle="#000",j.textAlign="center",j.fillText(s("#label"+(b+1)).html(),o+b*a+b*i+a/2,u,200),j.strokeStyle=e,j.lineWidth=.4,C(j,o+b*a+b*i+a/2,c+l,o+b*a+b*i+a/2,c+l+5);j.lineWidth=1,j.strokeStyle=e,C(j,50,c+l,50,c+35),C(j,50,c+l,450,c+l),j.lineWidth=.4,C(j,47,c+(l+48)/2,53,c+(l+48)/2),C(j,47,c+50,53,c+50),r(50,c+25,46,c+35,54,c+35,e),r(460,c+l,450,c+l-4,450,c+l+4,e);var v=k(),m=new Array;i=2,o=60,c+=l+50;for(var g=390+i,x=0,b=0;t>b;b++)x+=v[b];for(var b=0;t>b;b++)m.push(v[b]/x*g);j.font="italic 10pt Arial",j.textAlign="center",j.fillText("Number of elements: specific (1) or shared by 2, 3, ... lists",250,c),j.font="normal 10pt Arial";for(var y=0,_=0,b=t-1;b>=0;b--)0!=m[b]&&(f(j,o+y,c+15,m[b]-i,20,h("rgb(156,106,156)",1/(b+1.5)),"rgba(0,0,0,0.5)"),j.textAlign="center",j.fillStyle="white",m[b]-i<25?(j.fillStyle="#000",j.fillText(b+1,(m[b]-i)/2+o+y,c+57+_),j.textAlign="left",j.fillText("("+v[b]+")",(m[b]-i)/2+o+y+6,c+57+_),48!=_?_+=12:_=0):(_>=24&&(_=0),j.fillText(v[b],(m[b]-i)/2+o+y,c+29),j.fillStyle="#000",j.fillText(b+1,(m[b]-i)/2+o+y,c+57+_),_=0),j.strokeStyle=e,j.lineWidth=.4,C(j,(m[b]-i)/2+o+y,c+40,(m[b]-i)/2+o+y,c+45),y+=m[b]);j.lineWidth=1,j.strokeStyle=e,C(j,50,c+40,460,c+40)}function m(s,t,e,l){B.shortNumber&&s.text().length>l&&s.html("?");var r=t-(s.text().length-1)/2*4;s.css("left",r).css("top",e)}function g(s){var t=s.length?s.length:0,e=s[0]instanceof Array?s[0].length:0;for(l=0;t>l;l++)s[l]instanceof Array&&s[l].length>e&&(e=s[l].length);if(0===e||0===t)return[];var l,r,o=[];for(l=0;e>l;l++)for(o[l]=[],r=0;t>r;r++)o[l][r]=s[r][l];return o}function x(t){var e="rgba(0,0,0,0.1)";6==t?(r(0,11,254,160,174,235,h(B.colors[0],s("#label1").css("opacity"))),r(188,0,134,242,236,202,h(B.colors[1],s("#label2").css("opacity"))),r(338,52,135,123,191,242,h(B.colors[2],s("#label3").css("opacity"))),r(500,260,163,117,134,219,h(B.colors[3],s("#label4").css("opacity"))),r(250,415,133,150,203,67,h(B.colors[4],s("#label5").css("opacity"))),r(11,307,263,81,214,220,h(B.colors[5],s("#label6").css("opacity"))),s("#label1").css("left",35).css("top",10).css("color",B.colors[0]),s("#label2").css("left",200).css("top",5).css("color",B.colors[1]),s("#label3").css("left",335).css("top",60).css("color",B.colors[2]),s("#label4").css("left",410).css("top",200).css("color",B.colors[3]),s("#label5").css("left",255).css("top",385).css("color",B.colors[4]),s("#label6").css("left",30).css("top",300).css("color",B.colors[5]),m(s("#resultC100000"),98,90,6),m(s("#resultC010000"),187,50,4),m(s("#resultC001000"),280,80,6),m(s("#resultC000100"),320,205,6),m(s("#resultC000010"),212,272,5),m(s("#resultC000001"),100,240,6),m(s("#resultC111111"),185,170,6),o(140,80,166,110,e),m(s("#resultC110000"),132,60,6),m(s("#resultC101000"),142,116,2),o(75,180,145,185,e),o(75,180,65,175,e),m(s("#resultC100100"),55,157,6),m(s("#resultC100010"),140,145,2),o(75,200,142,190,e),o(75,200,65,195,e),m(s("#resultC100001"),55,177,6),o(230,80,212,115,e),m(s("#resultC011000"),230,60,6),m(s("#resultC010100"),225,190,1),m(s("#resultC010010"),193,82,3),m(s("#resultC010001"),145,218,2),o(295,145,235,180,e),m(s("#resultC001100"),302,132,6),o(275,270,193,233,e),m(s("#resultC001010"),275,268,6),m(s("#resultC001001"),232,113,4),m(s("#resultC000110"),216,211,1),o(75,220,140,205,e),o(75,220,65,215,e),m(s("#resultC000101"),55,197,6),o(150,270,183,230,e),m(s("#resultC000011"),145,268,6),m(s("#resultC111110"),170,130,6),s("#resultC111110").hide(),m(s("#resultC111101"),218,155,6),s("#resultC111101").hide(),m(s("#resultC111011"),205,125,6),s("#resultC111011").hide(),m(s("#resultC110111"),160,190,6),s("#resultC110111").hide(),m(s("#resultC101111"),180,212,6),s("#resultC101111").hide(),m(s("#resultC011111"),208,197,6),s("#resultC011111").hide(),m(s("#resultC111100"),225,170,6),s("#resultC111100").hide(),m(s("#resultC111010"),182,113,6),s("#resultC111010").hide(),m(s("#resultC110110"),149,163,6),s("#resultC110110").hide(),m(s("#resultC101110"),152,140,6),s("#resultC101110").hide(),m(s("#resultC011110"),215,195,6),s("#resultC011110").hide(),m(s("#resultC111001"),212,128,6),s("#resultC111001").hide(),m(s("#resultC110101"),150,194,6),s("#resultC110101").hide(),m(s("#resultC110011"),168,216,6),s("#resultC110011").hide(),m(s("#resultC101101"),226,145,6),s("#resultC101101").hide(),m(s("#resultC101011"),178,216,6),s("#resultC101011").hide(),m(s("#resultC100111"),178,214,6),s("#resultC100111").hide(),m(s("#resultC011101"),218,180,6),s("#resultC011101").hide(),m(s("#resultC011011"),206,122,6),s("#resultC011011").hide(),m(s("#resultC010111"),215,198,6),s("#resultC010111").hide(),m(s("#resultC001111"),200,208,6),s("#resultC001111").hide(),m(s("#resultC111000"),156,105,6),s("#resultC111000").hide(),m(s("#resultC110100"),145,174,6),s("#resultC110100").hide(),m(s("#resultC110010"),163,100,6),s("#resultC110010").hide(),m(s("#resultC101100"),238,152,6),s("#resultC101100").hide(),m(s("#resultC101010"),148,128,6),s("#resultC101010").hide(),m(s("#resultC100110"),145,158,6),s("#resultC100110").hide(),m(s("#resultC011100"),226,178,6),s("#resultC011100").hide(),m(s("#resultC011010"),195,105,6),s("#resultC011010").hide(),m(s("#resultC010110"),218,198,6),s("#resultC010110").hide(),m(s("#resultC001110"),202,216,6),s("#resultC001110").hide(),m(s("#resultC110001"),160,213,6),s("#resultC110001").hide(),m(s("#resultC101001"),220,132,6),s("#resultC101001").hide(),m(s("#resultC100101"),139,182,6),s("#resultC100101").hide(),m(s("#resultC100011"),170,220,6),s("#resultC100011").hide(),m(s("#resultC011001"),212,122,6),s("#resultC011001").hide(),m(s("#resultC010101"),146,203,6),s("#resultC010101").hide(),m(s("#resultC010011"),164,220,6),s("#resultC010011").hide(),m(s("#resultC001101"),233,138,6),s("#resultC001101").hide(),m(s("#resultC001011"),185,218,6),s("#resultC001011").hide(),m(s("#resultC000111"),209,207,6),s("#resultC000111").hide()):5==t?(l(214,230,10,18.6,9.5,25,h(B.colors[0],s("#label1").css("opacity"))),l(232,187,10,18.6,9.5,98,h(B.colors[1],s("#label2").css("opacity"))),l(273,196,10,18.6,9.5,170,h(B.colors[2],s("#label3").css("opacity"))),l(282,238,10,18.6,9.5,62,h(B.colors[3],s("#label4").css("opacity"))),l(242,260,10,18.6,9.5,134,h(B.colors[4],s("#label5").css("opacity"))),s("#label1").css("left",0).css("top",100).css("color",B.colors[0]),s("#label2").css("left",310).css("top",15).css("color",B.colors[1]),s("#label3").css("left",450).css("top",120).css("color",B.colors[2]),s("#label4").css("left",387).css("top",400).css("color",B.colors[3]),s("#label5").css("left",40).css("top",400).css("color",B.colors[4]),s("#label6").css("left",-1e3).css("top",-2200),m(s("#resultC100000"),75,150,6),m(s("#resultC010000"),245,30,6),m(s("#resultC001000"),415,162,6),m(s("#resultC000100"),350,370,6),m(s("#resultC000010"),132,370,6),m(s("#resultC110000"),152,118,2),m(s("#resultC101000"),110,200,6),m(s("#resultC100100"),350,295,6),m(s("#resultC100010"),125,273,2),m(s("#resultC011000"),309,94,3),m(s("#resultC010100"),215,82,6),m(s("#resultC010010"),195,340,6),m(s("#resultC001100"),378,232,2),m(s("#resultC001010"),360,140,5),m(s("#resultC000110"),261,347,2),m(s("#resultC111000"),148,180,4),m(s("#resultC110100"),168,113,2),m(s("#resultC110010"),176,295,6),m(s("#resultC101100"),367,248,2),m(s("#resultC101010"),127,256,2),m(s("#resultC100110"),305,300,4),m(s("#resultC011100"),240,110,6),m(s("#resultC011010"),317,108,2),m(s("#resultC010110"),248,338,2),m(s("#resultC001110"),345,180,4),m(s("#resultC111100"),185,140,6),m(s("#resultC111010"),158,245,6),m(s("#resultC110110"),250,310,6),m(s("#resultC101110"),330,240,6),m(s("#resultC011110"),290,133,6),m(s("#resultC111110"),245,210,6),s("#resultC000001").css("left",-1e3).css("top",-2200),s("#resultC100001").css("left",-1e3).css("top",-2200),s("#resultC010001").css("left",-1e3).css("top",-2200),s("#resultC001001").css("left",-1e3).css("top",-2200),s("#resultC000101").css("left",-1e3).css("top",-2200),s("#resultC000011").css("left",-1e3).css("top",-2200),s("#resultC110001").css("left",-1e3).css("top",-2200),s("#resultC101001").css("left",-1e3).css("top",-2200),s("#resultC100101").css("left",-1e3).css("top",-2200),s("#resultC100011").css("left",-1e3).css("top",-2200),s("#resultC011001").css("left",-1e3).css("top",-2200),s("#resultC010101").css("left",-1e3).css("top",-2200),s("#resultC010011").css("left",-1e3).css("top",-2200),s("#resultC001101").css("left",-1e3).css("top",-2200),s("#resultC001011").css("left",-1e3).css("top",-2200),s("#resultC000111").css("left",-1e3).css("top",-2200),s("#resultC111001").css("left",-1e3).css("top",-2200),s("#resultC110101").css("left",-1e3).css("top",-2200),s("#resultC110011").css("left",-1e3).css("top",-2200),s("#resultC101101").css("left",-1e3).css("top",-2200),s("#resultC101011").css("left",-1e3).css("top",-2200),s("#resultC100111").css("left",-1e3).css("top",-2200),s("#resultC011101").css("left",-1e3).css("top",-2200),s("#resultC011011").css("left",-1e3).css("top",-2200),s("#resultC010111").css("left",-1e3).css("top",-2200),s("#resultC001111").css("left",-1e3).css("top",-2200),s("#resultC111101").css("left",-1e3).css("top",-2200),s("#resultC111011").css("left",-1e3).css("top",-2200),s("#resultC110111").css("left",-1e3).css("top",-2200),s("#resultC101111").css("left",-1e3).css("top",-2200),s("#resultC011111").css("left",-1e3).css("top",-2200),s("#resultC111111").css("left",-1e3).css("top",-2200)):4==t?(l(181,238,10,18.5,11.5,40,h(B.colors[0],s("#label1").css("opacity"))),l(242,177,10,18.5,11.5,40,h(B.colors[1],s("#label2").css("opacity"))),l(259,177,10,18.5,11.5,140,h(B.colors[2],s("#label3").css("opacity"))),l(320,238,10,18.5,11.5,140,h(B.colors[3],s("#label4").css("opacity"))),s("#label1").css("left",5).css("top",70).css("color",B.colors[0]),s("#label2").css("left",85).css("top",5).css("color",B.colors[1]),s("#label3").css("left",350).css("top",5).css("color",B.colors[2]),s("#label4").css("left",428).css("top",70).css("color",B.colors[3]),s("#label5").css("left",-1e3).css("top",-2200),s("#label6").css("left",-1e3).css("top",-2200),m(s("#resultC100000"),55,190,6),m(s("#resultC010000"),140,60,6),m(s("#resultC001000"),335,60,6),m(s("#resultC000100"),430,190,6),m(s("#resultC110000"),105,120,6),m(s("#resultC101000"),130,260,6),m(s("#resultC100100"),245,340,6),m(s("#resultC011000"),245,90,6),m(s("#resultC010100"),365,260,6),m(s("#resultC001100"),385,120,6),m(s("#resultC111000"),160,170,6),m(s("#resultC110100"),310,290,6),m(s("#resultC101100"),180,290,6),m(s("#resultC011100"),330,170,6),m(s("#resultC111100"),245,220,6),s("#resultC000010").css("left",-1e3).css("top",-2200),s("#resultC100010").css("left",-1e3).css("top",-2200),s("#resultC010010").css("left",-1e3).css("top",-2200),s("#resultC001010").css("left",-1e3).css("top",-2200),s("#resultC000110").css("left",-1e3).css("top",-2200),s("#resultC110010").css("left",-1e3).css("top",-2200),s("#resultC101010").css("left",-1e3).css("top",-2200),s("#resultC100110").css("left",-1e3).css("top",-2200),s("#resultC011010").css("left",-1e3).css("top",-2200),s("#resultC010110").css("left",-1e3).css("top",-2200),s("#resultC001110").css("left",-1e3).css("top",-2200),s("#resultC111010").css("left",-1e3).css("top",-2200),s("#resultC110110").css("left",-1e3).css("top",-2200),s("#resultC101110").css("left",-1e3).css("top",-2200),s("#resultC011110").css("left",-1e3).css("top",-2200),s("#resultC111110").css("left",-1e3).css("top",-2200),s("#resultC000001").css("left",-1e3).css("top",-2200),s("#resultC100001").css("left",-1e3).css("top",-2200),s("#resultC010001").css("left",-1e3).css("top",-2200),s("#resultC001001").css("left",-1e3).css("top",-2200),s("#resultC000101").css("left",-1e3).css("top",-2200),s("#resultC000011").css("left",-1e3).css("top",-2200),s("#resultC110001").css("left",-1e3).css("top",-2200),s("#resultC101001").css("left",-1e3).css("top",-2200),s("#resultC100101").css("left",-1e3).css("top",-2200),s("#resultC100011").css("left",-1e3).css("top",-2200),s("#resultC011001").css("left",-1e3).css("top",-2200),s("#resultC010101").css("left",-1e3).css("top",-2200),s("#resultC010011").css("left",-1e3).css("top",-2200),s("#resultC001101").css("left",-1e3).css("top",-2200),s("#resultC001011").css("left",-1e3).css("top",-2200),s("#resultC000111").css("left",-1e3).css("top",-2200),s("#resultC111001").css("left",-1e3).css("top",-2200),s("#resultC110101").css("left",-1e3).css("top",-2200),s("#resultC110011").css("left",-1e3).css("top",-2200),s("#resultC101101").css("left",-1e3).css("top",-2200),s("#resultC101011").css("left",-1e3).css("top",-2200),s("#resultC100111").css("left",-1e3).css("top",-2200),s("#resultC011101").css("left",-1e3).css("top",-2200),s("#resultC011011").css("left",-1e3).css("top",-2200),s("#resultC010111").css("left",-1e3).css("top",-2200),s("#resultC001111").css("left",-1e3).css("top",-2200),s("#resultC111101").css("left",-1e3).css("top",-2200),s("#resultC111011").css("left",-1e3).css("top",-2200),s("#resultC110111").css("left",-1e3).css("top",-2200),s("#resultC101111").css("left",-1e3).css("top",-2200),s("#resultC011111").css("left",-1e3).css("top",-2200),s("#resultC111111").css("left",-1e3).css("top",-2200)):3==t?(l(171,142,120,1,1,0,h(B.colors[0],s("#label1").css("opacity"))),l(327,142,120,1,1,0,h(B.colors[1],s("#label2").css("opacity"))),l(249,271,120,1,1,0,h(B.colors[2],s("#label3").css("opacity"))),s("#label1").css("left",55).css("top",5).css("color",B.colors[0]),s("#label2").css("left",380).css("top",5).css("color",B.colors[1]),s("#label3").css("left",220).css("top",400).css("color",B.colors[2]),s("#label4").css("left",-1e3).css("top",-2200),s("#label5").css("left",-1e3).css("top",-2200),s("#label6").css("left",-1e3).css("top",-2200),m(s("#resultC100000"),120,100,8),m(s("#resultC010000"),360,100,8),m(s("#resultC001000"),245,330,8),m(s("#resultC110000"),245,100,8),m(s("#resultC101000"),170,220,8),m(s("#resultC011000"),320,220,8),m(s("#resultC111000"),245,175,8),s("#resultC000100").css("left",-1e3).css("top",-2200),s("#resultC000010").css("left",-1e3).css("top",-2200),s("#resultC100100").css("left",-1e3).css("top",-2200),s("#resultC100010").css("left",-1e3).css("top",-2200),s("#resultC010100").css("left",-1e3).css("top",-2200),s("#resultC010010").css("left",-1e3).css("top",-2200),s("#resultC001100").css("left",-1e3).css("top",-2200),s("#resultC001010").css("left",-1e3).css("top",-2200),s("#resultC000110").css("left",-1e3).css("top",-2200),s("#resultC110100").css("left",-1e3).css("top",-2200),s("#resultC110010").css("left",-1e3).css("top",-2200),s("#resultC101100").css("left",-1e3).css("top",-2200),s("#resultC101010").css("left",-1e3).css("top",-2200),s("#resultC100110").css("left",-1e3).css("top",-2200),s("#resultC011100").css("left",-1e3).css("top",-2200),s("#resultC011010").css("left",-1e3).css("top",-2200),s("#resultC010110").css("left",-1e3).css("top",-2200),s("#resultC001110").css("left",-1e3).css("top",-2200),s("#resultC111100").css("left",-1e3).css("top",-2200),s("#resultC111010").css("left",-1e3).css("top",-2200),s("#resultC110110").css("left",-1e3).css("top",-2200),s("#resultC101110").css("left",-1e3).css("top",-2200),s("#resultC011110").css("left",-1e3).css("top",-2200),s("#resultC111110").css("left",-1e3).css("top",-2200),s("#resultC000001").css("left",-1e3).css("top",-2200),s("#resultC100001").css("left",-1e3).css("top",-2200),s("#resultC010001").css("left",-1e3).css("top",-2200),s("#resultC001001").css("left",-1e3).css("top",-2200),s("#resultC000101").css("left",-1e3).css("top",-2200),s("#resultC000011").css("left",-1e3).css("top",-2200),s("#resultC110001").css("left",-1e3).css("top",-2200),s("#resultC101001").css("left",-1e3).css("top",-2200),s("#resultC100101").css("left",-1e3).css("top",-2200),s("#resultC100011").css("left",-1e3).css("top",-2200),s("#resultC011001").css("left",-1e3).css("top",-2200),s("#resultC010101").css("left",-1e3).css("top",-2200),s("#resultC010011").css("left",-1e3).css("top",-2200),s("#resultC001101").css("left",-1e3).css("top",-2200),s("#resultC001011").css("left",-1e3).css("top",-2200),s("#resultC000111").css("left",-1e3).css("top",-2200),s("#resultC111001").css("left",-1e3).css("top",-2200),s("#resultC110101").css("left",-1e3).css("top",-2200),s("#resultC110011").css("left",-1e3).css("top",-2200),s("#resultC101101").css("left",-1e3).css("top",-2200),s("#resultC101011").css("left",-1e3).css("top",-2200),s("#resultC100111").css("left",-1e3).css("top",-2200),s("#resultC011101").css("left",-1e3).css("top",-2200),s("#resultC011011").css("left",-1e3).css("top",-2200),s("#resultC010111").css("left",-1e3).css("top",-2200),s("#resultC001111").css("left",-1e3).css("top",-2200),s("#resultC111101").css("left",-1e3).css("top",-2200),s("#resultC111011").css("left",-1e3).css("top",-2200),s("#resultC110111").css("left",-1e3).css("top",-2200),s("#resultC101111").css("left",-1e3).css("top",-2200),s("#resultC011111").css("left",-1e3).css("top",-2200),s("#resultC111111").css("left",-1e3).css("top",-2200)):2==t?(l(171,206,140,1,1,0,h(B.colors[0],s("#label1").css("opacity"))),l(327,206,140,1,1,0,h(B.colors[1],s("#label2").css("opacity"))),s("#label1").css("left",95).css("top",40).css("color",B.colors[0]),s("#label2").css("left",360).css("top",40).css("color",B.colors[1]),s("#label3").css("left",-1e3).css("top",-2200),s("#label4").css("left",-1e3).css("top",-2200),s("#label5").css("left",-1e3).css("top",-2200),s("#label6").css("left",-1e3).css("top",-2200),m(s("#resultC100000"),120,195,10),m(s("#resultC010000"),360,195,10),m(s("#resultC110000"),250,195,10),s("#resultC001000").css("left",-1e3).css("top",-2200),s("#resultC000100").css("left",-1e3).css("top",-2200),s("#resultC000010").css("left",-1e3).css("top",-2200),s("#resultC101000").css("left",-1e3).css("top",-2200),s("#resultC100100").css("left",-1e3).css("top",-2200),s("#resultC100010").css("left",-1e3).css("top",-2200),s("#resultC011000").css("left",-1e3).css("top",-2200),s("#resultC010100").css("left",-1e3).css("top",-2200),s("#resultC010010").css("left",-1e3).css("top",-2200),s("#resultC001100").css("left",-1e3).css("top",-2200),s("#resultC001010").css("left",-1e3).css("top",-2200),s("#resultC000110").css("left",-1e3).css("top",-2200),s("#resultC111000").css("left",-1e3).css("top",-2200),s("#resultC110100").css("left",-1e3).css("top",-2200),s("#resultC110010").css("left",-1e3).css("top",-2200),s("#resultC101100").css("left",-1e3).css("top",-2200),s("#resultC101010").css("left",-1e3).css("top",-2200),s("#resultC100110").css("left",-1e3).css("top",-2200),s("#resultC011100").css("left",-1e3).css("top",-2200),s("#resultC011010").css("left",-1e3).css("top",-2200),s("#resultC010110").css("left",-1e3).css("top",-2200),s("#resultC001110").css("left",-1e3).css("top",-2200),s("#resultC111100").css("left",-1e3).css("top",-2200),s("#resultC111010").css("left",-1e3).css("top",-2200),s("#resultC110110").css("left",-1e3).css("top",-2200),s("#resultC101110").css("left",-1e3).css("top",-2200),s("#resultC011110").css("left",-1e3).css("top",-2200),s("#resultC111110").css("left",-1e3).css("top",-2200),s("#resultC000001").css("left",-1e3).css("top",-2200),s("#resultC100001").css("left",-1e3).css("top",-2200),s("#resultC010001").css("left",-1e3).css("top",-2200),s("#resultC001001").css("left",-1e3).css("top",-2200),s("#resultC000101").css("left",-1e3).css("top",-2200),s("#resultC000011").css("left",-1e3).css("top",-2200),s("#resultC110001").css("left",-1e3).css("top",-2200),s("#resultC101001").css("left",-1e3).css("top",-2200),s("#resultC100101").css("left",-1e3).css("top",-2200),s("#resultC100011").css("left",-1e3).css("top",-2200),s("#resultC011001").css("left",-1e3).css("top",-2200),s("#resultC010101").css("left",-1e3).css("top",-2200),s("#resultC010011").css("left",-1e3).css("top",-2200),s("#resultC001101").css("left",-1e3).css("top",-2200),s("#resultC001011").css("left",-1e3).css("top",-2200),s("#resultC000111").css("left",-1e3).css("top",-2200),s("#resultC111001").css("left",-1e3).css("top",-2200),s("#resultC110101").css("left",-1e3).css("top",-2200),s("#resultC110011").css("left",-1e3).css("top",-2200),s("#resultC101101").css("left",-1e3).css("top",-2200),s("#resultC101011").css("left",-1e3).css("top",-2200),s("#resultC100111").css("left",-1e3).css("top",-2200),s("#resultC011101").css("left",-1e3).css("top",-2200),s("#resultC011011").css("left",-1e3).css("top",-2200),s("#resultC010111").css("left",-1e3).css("top",-2200),s("#resultC001111").css("left",-1e3).css("top",-2200),s("#resultC111101").css("left",-1e3).css("top",-2200),s("#resultC111011").css("left",-1e3).css("top",-2200),s("#resultC110111").css("left",-1e3).css("top",-2200),s("#resultC101111").css("left",-1e3).css("top",-2200),s("#resultC011111").css("left",-1e3).css("top",-2200),s("#resultC111111").css("left",-1e3).css("top",-2200)):(l(246,210,140,1,1,0,h(B.colors[0],s("#label1").css("opacity"))),s("#label1").css("left",225).css("top",30).css("color",B.colors[0]),s("#label2").css("left",-1e3).css("top",-2200),s("#label3").css("left",-1e3).css("top",-2200),s("#label4").css("left",-1e3).css("top",-2200),s("#label5").css("left",-1e3).css("top",-2200),s("#label6").css("left",-1e3).css("top",-2200),m(s("#resultC100000"),245,200,10),s("#resultC010000").css("left",-1e3).css("top",-2200),s("#resultC001000").css("left",-1e3).css("top",-2200),s("#resultC000100").css("left",-1e3).css("top",-2200),s("#resultC000010").css("left",-1e3).css("top",-2200),s("#resultC110000").css("left",-1e3).css("top",-2200),s("#resultC101000").css("left",-1e3).css("top",-2200),s("#resultC100100").css("left",-1e3).css("top",-2200),s("#resultC100010").css("left",-1e3).css("top",-2200),s("#resultC011000").css("left",-1e3).css("top",-2200),s("#resultC010100").css("left",-1e3).css("top",-2200),s("#resultC010010").css("left",-1e3).css("top",-2200),s("#resultC001100").css("left",-1e3).css("top",-2200),s("#resultC001010").css("left",-1e3).css("top",-2200),s("#resultC000110").css("left",-1e3).css("top",-2200),s("#resultC111000").css("left",-1e3).css("top",-2200),s("#resultC110100").css("left",-1e3).css("top",-2200),s("#resultC110010").css("left",-1e3).css("top",-2200),s("#resultC101100").css("left",-1e3).css("top",-2200),s("#resultC101010").css("left",-1e3).css("top",-2200),s("#resultC100110").css("left",-1e3).css("top",-2200),s("#resultC011100").css("left",-1e3).css("top",-2200),s("#resultC011010").css("left",-1e3).css("top",-2200),s("#resultC010110").css("left",-1e3).css("top",-2200),s("#resultC001110").css("left",-1e3).css("top",-2200),s("#resultC111100").css("left",-1e3).css("top",-2200),s("#resultC111010").css("left",-1e3).css("top",-2200),s("#resultC110110").css("left",-1e3).css("top",-2200),s("#resultC101110").css("left",-1e3).css("top",-2200),s("#resultC011110").css("left",-1e3).css("top",-2200),s("#resultC111110").css("left",-1e3).css("top",-2200),s("#resultC000001").css("left",-1e3).css("top",-2200),s("#resultC100001").css("left",-1e3).css("top",-2200),s("#resultC010001").css("left",-1e3).css("top",-2200),s("#resultC001001").css("left",-1e3).css("top",-2200),s("#resultC000101").css("left",-1e3).css("top",-2200),s("#resultC000011").css("left",-1e3).css("top",-2200),s("#resultC110001").css("left",-1e3).css("top",-2200),s("#resultC101001").css("left",-1e3).css("top",-2200),s("#resultC100101").css("left",-1e3).css("top",-2200),s("#resultC100011").css("left",-1e3).css("top",-2200),s("#resultC011001").css("left",-1e3).css("top",-2200),s("#resultC010101").css("left",-1e3).css("top",-2200),s("#resultC010011").css("left",-1e3).css("top",-2200),s("#resultC001101").css("left",-1e3).css("top",-2200),s("#resultC001011").css("left",-1e3).css("top",-2200),s("#resultC000111").css("left",-1e3).css("top",-2200),s("#resultC111001").css("left",-1e3).css("top",-2200),s("#resultC110101").css("left",-1e3).css("top",-2200),s("#resultC110011").css("left",-1e3).css("top",-2200),s("#resultC101101").css("left",-1e3).css("top",-2200),s("#resultC101011").css("left",-1e3).css("top",-2200),s("#resultC100111").css("left",-1e3).css("top",-2200),s("#resultC011101").css("left",-1e3).css("top",-2200),s("#resultC011011").css("left",-1e3).css("top",-2200),s("#resultC010111").css("left",-1e3).css("top",-2200),s("#resultC001111").css("left",-1e3).css("top",-2200),s("#resultC111101").css("left",-1e3).css("top",-2200),s("#resultC111011").css("left",-1e3).css("top",-2200),s("#resultC110111").css("left",-1e3).css("top",-2200),s("#resultC101111").css("left",-1e3).css("top",-2200),s("#resultC011111").css("left",-1e3).css("top",-2200),s("#resultC111111").css("left",-1e3).css("top",-2200))}function y(t){6==t?(c(246,206,90,1,1,0,h(B.colors[0],s("#label1").css("opacity"))),n(245,25,250,365,h(B.colors[1],s("#label2").css("opacity"))),n(5,205,490,185,h(B.colors[2],s("#label3").css("opacity"))),a(h(B.colors[3],s("#label4").css("opacity"))),u(h(B.colors[4],s("#label5").css("opacity"))),p(h(B.colors[5],s("#label6").css("opacity"))),s("#label1").css("left",297).css("top",90).css("color",B.colors[0]),s("#label2").css("left",267).css("top",0).css("color",B.colors[1]),s("#label3").css("left",27).css("top",400).css("color",B.colors[2]),s("#label4").css("left",55).css("top",90).css("color",B.colors[3]),s("#label5").css("left",282).css("top",45).css("color",B.colors[4]),s("#label6").css("left",297).css("top",302).css("color",B.colors[5]),m(s("#resultC100000"),204,122,1),m(s("#resultC010000"),390,70,6),m(s("#resultC001000"),85,330,6),m(s("#resultC000100"),85,150,6),m(s("#resultC000010"),225,70,3),m(s("#resultC110000"),280,122,1),m(s("#resultC101000"),204,269,1),m(s("#resultC100100"),172,155,1),m(s("#resultC100010"),218,118,1),m(s("#resultC011000"),390,330,6),m(s("#resultC010100"),390,150,6),m(s("#resultC010010"),258,70,3),m(s("#resultC001100"),85,240,6),m(s("#resultC001010"),225,320,3),m(s("#resultC000110"),120,178,2),m(s("#resultC111000"),280,269,1),m(s("#resultC110100"),314,155,1),m(s("#resultC110010"),266,118,1),m(s("#resultC101100"),172,235,1),m(s("#resultC101010"),219,274,1),m(s("#resultC100110"),167,171,1),m(s("#resultC011100"),390,240,6),m(s("#resultC011010"),258,320,3),m(s("#resultC010110"),365,178,2),m(s("#resultC001110"),120,212,2),m(s("#resultC111100"),315,235,1),m(s("#resultC111010"),266,274,1),m(s("#resultC110110"),320,171,1),m(s("#resultC101110"),166,218,1),m(s("#resultC011110"),365,212,2),m(s("#resultC111110"),320,218,1),m(s("#resultC000001"),180,120,1),m(s("#resultC100001"),199,134,1),m(s("#resultC010001"),304,120,1),m(s("#resultC001001"),179,271,1),m(s("#resultC000101"),169,132,1),m(s("#resultC000011"),234,95,1),m(s("#resultC110001"),286,134,1),m(s("#resultC101001"),199,256,1),m(s("#resultC100101"),190,149,1),m(s("#resultC100011"),228,135,3),m(s("#resultC011001"),306,272,1),m(s("#resultC010101"),317,132,1),m(s("#resultC010011"),250,95,1),m(s("#resultC001101"),167,260,1),m(s("#resultC001011"),233,296,1),m(s("#resultC000111"),143,187,1),m(s("#resultC111001"),285,256,1),m(s("#resultC110101"),295,149,1),m(s("#resultC110011"),255,135,3),m(s("#resultC101101"),190,242,1),m(s("#resultC101011"),227,255,3),m(s("#resultC100111"),213,178,6),m(s("#resultC011101"),318,259,1),m(s("#resultC011011"),250,296,1),m(s("#resultC010111"),342,187,1),m(s("#resultC001111"),143,203,1),m(s("#resultC111101"),295,240,1),m(s("#resultC111011"),256,255,3),m(s("#resultC110111"),270,178,6),m(s("#resultC101111"),213,212,6),m(s("#resultC011111"),342,203,1),m(s("#resultC111111"),270,212,6)):5==t?(c(246,206,90,1,1,0,h(B.colors[0],s("#label1").css("opacity"))),n(245,25,250,365,h(B.colors[1],s("#label2").css("opacity"))),n(5,205,490,185,h(B.colors[2],s("#label3").css("opacity"))),a(h(B.colors[3],s("#label4").css("opacity"))),u(h(B.colors[4],s("#label5").css("opacity"))),s("#label1").css("left",297).css("top",90).css("color",B.colors[0]),s("#label2").css("left",267).css("top",0).css("color",B.colors[1]),s("#label3").css("left",27).css("top",400).css("color",B.colors[2]),s("#label4").css("left",55).css("top",90).css("color",B.colors[3]),s("#label5").css("left",282).css("top",45).css("color",B.colors[4]),s("#label6").css("left",-1e3).css("top",-2200),m(s("#resultC100000"),200,130,3),m(s("#resultC010000"),390,70,6),m(s("#resultC001000"),85,330,6),m(s("#resultC000100"),85,150,6),m(s("#resultC000010"),225,80,4),m(s("#resultC110000"),284,130,3),m(s("#resultC101000"),200,260,3),m(s("#resultC100100"),185,150,4),m(s("#resultC100010"),228,130,3),m(s("#resultC011000"),390,330,6),m(s("#resultC010100"),390,150,6),m(s("#resultC010010"),258,80,4),m(s("#resultC001100"),85,240,6),m(s("#resultC001010"),225,310,4),m(s("#resultC000110"),133,178,6),m(s("#resultC111000"),284,260,3),m(s("#resultC110100"),300,150,4),m(s("#resultC110010"),255,130,3),m(s("#resultC101100"),185,240,4),m(s("#resultC101010"),228,260,3),m(s("#resultC100110"),213,178,6),m(s("#resultC011100"),390,240,6),m(s("#resultC011010"),258,310,4),m(s("#resultC010110"),355,178,6),m(s("#resultC001110"),133,212,6),m(s("#resultC111100"),300,240,4),m(s("#resultC111010"),256,260,3),m(s("#resultC110110"),270,178,6),m(s("#resultC101110"),213,212,6),m(s("#resultC011110"),355,212,6),m(s("#resultC111110"),270,212,6),s("#resultC000001").css("left",-1e3).css("top",-2200),s("#resultC100001").css("left",-1e3).css("top",-2200),s("#resultC010001").css("left",-1e3).css("top",-2200),s("#resultC001001").css("left",-1e3).css("top",-2200),s("#resultC000101").css("left",-1e3).css("top",-2200),s("#resultC000011").css("left",-1e3).css("top",-2200),s("#resultC110001").css("left",-1e3).css("top",-2200),s("#resultC101001").css("left",-1e3).css("top",-2200),s("#resultC100101").css("left",-1e3).css("top",-2200),s("#resultC100011").css("left",-1e3).css("top",-2200),s("#resultC011001").css("left",-1e3).css("top",-2200),s("#resultC010101").css("left",-1e3).css("top",-2200),s("#resultC010011").css("left",-1e3).css("top",-2200),s("#resultC001101").css("left",-1e3).css("top",-2200),s("#resultC001011").css("left",-1e3).css("top",-2200),s("#resultC000111").css("left",-1e3).css("top",-2200),s("#resultC111001").css("left",-1e3).css("top",-2200),s("#resultC110101").css("left",-1e3).css("top",-2200),s("#resultC110011").css("left",-1e3).css("top",-2200),s("#resultC101101").css("left",-1e3).css("top",-2200),s("#resultC101011").css("left",-1e3).css("top",-2200),s("#resultC100111").css("left",-1e3).css("top",-2200),s("#resultC011101").css("left",-1e3).css("top",-2200),s("#resultC011011").css("left",-1e3).css("top",-2200),s("#resultC010111").css("left",-1e3).css("top",-2200),s("#resultC001111").css("left",-1e3).css("top",-2200),s("#resultC111101").css("left",-1e3).css("top",-2200),s("#resultC111011").css("left",-1e3).css("top",-2200),s("#resultC110111").css("left",-1e3).css("top",-2200),s("#resultC101111").css("left",-1e3).css("top",-2200),s("#resultC011111").css("left",-1e3).css("top",-2200),s("#resultC111111").css("left",-1e3).css("top",-2200)):4==t?(c(246,206,90,1,1,0,h(B.colors[0],s("#label1").css("opacity"))),n(245,25,250,365,h(B.colors[1],s("#label2").css("opacity"))),n(5,205,490,185,h(B.colors[2],s("#label3").css("opacity"))),a(h(B.colors[3],s("#label4").css("opacity"))),s("#label1").css("left",267).css("top",90).css("color",B.colors[0]),s("#label2").css("left",267).css("top",0).css("color",B.colors[1]),s("#label3").css("left",27).css("top",400).css("color",B.colors[2]),s("#label4").css("left",27).css("top",90).css("color",B.colors[3]),s("#label5").css("left",-1e3).css("top",-2200),s("#label6").css("left",-1e3).css("top",-2200),m(s("#resultC100000"),215,130,6),m(s("#resultC010000"),390,70,6),m(s("#resultC001000"),85,330,6),m(s("#resultC000100"),85,150,6),m(s("#resultC110000"),265,130,6),m(s("#resultC101000"),215,260,6),m(s("#resultC100100"),200,170,6),m(s("#resultC011000"),390,330,6),m(s("#resultC010100"),390,150,6),m(s("#resultC001100"),85,240,6),m(s("#resultC111000"),265,260,6),m(s("#resultC110100"),280,170,6),m(s("#resultC101100"),200,220,6),m(s("#resultC011100"),390,240,6),m(s("#resultC111100"),280,220,6),s("#resultC000010").css("left",-1e3).css("top",-2200),s("#resultC100010").css("left",-1e3).css("top",-2200),s("#resultC010010").css("left",-1e3).css("top",-2200),s("#resultC001010").css("left",-1e3).css("top",-2200),s("#resultC000110").css("left",-1e3).css("top",-2200),s("#resultC110010").css("left",-1e3).css("top",-2200),s("#resultC101010").css("left",-1e3).css("top",-2200),s("#resultC100110").css("left",-1e3).css("top",-2200),s("#resultC011010").css("left",-1e3).css("top",-2200),s("#resultC010110").css("left",-1e3).css("top",-2200),s("#resultC001110").css("left",-1e3).css("top",-2200),s("#resultC111010").css("left",-1e3).css("top",-2200),s("#resultC110110").css("left",-1e3).css("top",-2200),s("#resultC101110").css("left",-1e3).css("top",-2200),s("#resultC011110").css("left",-1e3).css("top",-2200),s("#resultC111110").css("left",-1e3).css("top",-2200),s("#resultC000001").css("left",-1e3).css("top",-2200),s("#resultC100001").css("left",-1e3).css("top",-2200),s("#resultC010001").css("left",-1e3).css("top",-2200),s("#resultC001001").css("left",-1e3).css("top",-2200),s("#resultC000101").css("left",-1e3).css("top",-2200),s("#resultC000011").css("left",-1e3).css("top",-2200),s("#resultC110001").css("left",-1e3).css("top",-2200),s("#resultC101001").css("left",-1e3).css("top",-2200),s("#resultC100101").css("left",-1e3).css("top",-2200),s("#resultC100011").css("left",-1e3).css("top",-2200),s("#resultC011001").css("left",-1e3).css("top",-2200),s("#resultC010101").css("left",-1e3).css("top",-2200),s("#resultC010011").css("left",-1e3).css("top",-2200),s("#resultC001101").css("left",-1e3).css("top",-2200),s("#resultC001011").css("left",-1e3).css("top",-2200),s("#resultC000111").css("left",-1e3).css("top",-2200),s("#resultC111001").css("left",-1e3).css("top",-2200),s("#resultC110101").css("left",-1e3).css("top",-2200),s("#resultC110011").css("left",-1e3).css("top",-2200),s("#resultC101101").css("left",-1e3).css("top",-2200),s("#resultC101011").css("left",-1e3).css("top",-2200),s("#resultC100111").css("left",-1e3).css("top",-2200),s("#resultC011101").css("left",-1e3).css("top",-2200),s("#resultC011011").css("left",-1e3).css("top",-2200),s("#resultC010111").css("left",-1e3).css("top",-2200),s("#resultC001111").css("left",-1e3).css("top",-2200),s("#resultC111101").css("left",-1e3).css("top",-2200),s("#resultC111011").css("left",-1e3).css("top",-2200),s("#resultC110111").css("left",-1e3).css("top",-2200),s("#resultC101111").css("left",-1e3).css("top",-2200),s("#resultC011111").css("left",-1e3).css("top",-2200),s("#resultC111111").css("left",-1e3).css("top",-2200)):3==t?(c(246,206,110,1,1,0,h(B.colors[0],s("#label1").css("opacity"))),n(245,25,250,365,h(B.colors[1],s("#label2").css("opacity"))),n(5,205,490,185,h(B.colors[2],s("#label3").css("opacity"))),s("#label1").css("left",95).css("top",75).css("color",B.colors[0]),s("#label2").css("left",267).css("top",0).css("color",B.colors[1]),s("#label3").css("left",27).css("top",400).css("color",B.colors[2]),s("#label4").css("left",-1e3).css("top",-2200),s("#label5").css("left",-1e3).css("top",-2200),s("#label6").css("left",-1e3).css("top",-2200),m(s("#resultC100000"),190,150,8),m(s("#resultC010000"),390,70,8),m(s("#resultC001000"),85,330,8),m(s("#resultC110000"),290,150,8),m(s("#resultC101000"),190,240,8),m(s("#resultC011000"),390,330,8),m(s("#resultC111000"),290,240,8),s("#resultC000100").css("left",-1e3).css("top",-2200),s("#resultC000010").css("left",-1e3).css("top",-2200),s("#resultC100100").css("left",-1e3).css("top",-2200),s("#resultC100010").css("left",-1e3).css("top",-2200),s("#resultC010100").css("left",-1e3).css("top",-2200),s("#resultC010010").css("left",-1e3).css("top",-2200),s("#resultC001100").css("left",-1e3).css("top",-2200),s("#resultC001010").css("left",-1e3).css("top",-2200),s("#resultC000110").css("left",-1e3).css("top",-2200),s("#resultC110100").css("left",-1e3).css("top",-2200),s("#resultC110010").css("left",-1e3).css("top",-2200),s("#resultC101100").css("left",-1e3).css("top",-2200),s("#resultC101010").css("left",-1e3).css("top",-2200),s("#resultC100110").css("left",-1e3).css("top",-2200),s("#resultC011100").css("left",-1e3).css("top",-2200),s("#resultC011010").css("left",-1e3).css("top",-2200),s("#resultC010110").css("left",-1e3).css("top",-2200),s("#resultC001110").css("left",-1e3).css("top",-2200),s("#resultC111100").css("left",-1e3).css("top",-2200),s("#resultC111010").css("left",-1e3).css("top",-2200),s("#resultC110110").css("left",-1e3).css("top",-2200),s("#resultC101110").css("left",-1e3).css("top",-2200),s("#resultC011110").css("left",-1e3).css("top",-2200),s("#resultC111110").css("left",-1e3).css("top",-2200),s("#resultC000001").css("left",-1e3).css("top",-2200),s("#resultC100001").css("left",-1e3).css("top",-2200),s("#resultC010001").css("left",-1e3).css("top",-2200),s("#resultC001001").css("left",-1e3).css("top",-2200),s("#resultC000101").css("left",-1e3).css("top",-2200),s("#resultC000011").css("left",-1e3).css("top",-2200),s("#resultC110001").css("left",-1e3).css("top",-2200),s("#resultC101001").css("left",-1e3).css("top",-2200),s("#resultC100101").css("left",-1e3).css("top",-2200),s("#resultC100011").css("left",-1e3).css("top",-2200),s("#resultC011001").css("left",-1e3).css("top",-2200),s("#resultC010101").css("left",-1e3).css("top",-2200),s("#resultC010011").css("left",-1e3).css("top",-2200),s("#resultC001101").css("left",-1e3).css("top",-2200),s("#resultC001011").css("left",-1e3).css("top",-2200),s("#resultC000111").css("left",-1e3).css("top",-2200),s("#resultC111001").css("left",-1e3).css("top",-2200),s("#resultC110101").css("left",-1e3).css("top",-2200),s("#resultC110011").css("left",-1e3).css("top",-2200),s("#resultC101101").css("left",-1e3).css("top",-2200),s("#resultC101011").css("left",-1e3).css("top",-2200),s("#resultC100111").css("left",-1e3).css("top",-2200),s("#resultC011101").css("left",-1e3).css("top",-2200),s("#resultC011011").css("left",-1e3).css("top",-2200),s("#resultC010111").css("left",-1e3).css("top",-2200),s("#resultC001111").css("left",-1e3).css("top",-2200),s("#resultC111101").css("left",-1e3).css("top",-2200),s("#resultC111011").css("left",-1e3).css("top",-2200),s("#resultC110111").css("left",-1e3).css("top",-2200),s("#resultC101111").css("left",-1e3).css("top",-2200),s("#resultC011111").css("left",-1e3).css("top",-2200),s("#resultC111111").css("left",-1e3).css("top",-2200)):2==t?(c(246,206,110,1,1,0,h(B.colors[0],s("#label1").css("opacity"))),n(245,25,250,365,h(B.colors[1],s("#label2").css("opacity"))),s("#label1").css("left",95).css("top",75).css("color",B.colors[0]),s("#label2").css("left",267).css("top",0).css("color",B.colors[1]),s("#label3").css("left",-1e3).css("top",-2200),s("#label4").css("left",-1e3).css("top",-2200),s("#label5").css("left",-1e3).css("top",-2200),s("#label6").css("left",-1e3).css("top",-2200),m(s("#resultC100000"),180,195,10),m(s("#resultC010000"),420,195,10),m(s("#resultC110000"),290,195,10),s("#resultC001000").css("left",-1e3).css("top",-2200),s("#resultC000100").css("left",-1e3).css("top",-2200),s("#resultC000010").css("left",-1e3).css("top",-2200),s("#resultC101000").css("left",-1e3).css("top",-2200),s("#resultC100100").css("left",-1e3).css("top",-2200),s("#resultC100010").css("left",-1e3).css("top",-2200),s("#resultC011000").css("left",-1e3).css("top",-2200),s("#resultC010100").css("left",-1e3).css("top",-2200),s("#resultC010010").css("left",-1e3).css("top",-2200),s("#resultC001100").css("left",-1e3).css("top",-2200),s("#resultC001010").css("left",-1e3).css("top",-2200),s("#resultC000110").css("left",-1e3).css("top",-2200),s("#resultC111000").css("left",-1e3).css("top",-2200),s("#resultC110100").css("left",-1e3).css("top",-2200),s("#resultC110010").css("left",-1e3).css("top",-2200),s("#resultC101100").css("left",-1e3).css("top",-2200),s("#resultC101010").css("left",-1e3).css("top",-2200),s("#resultC100110").css("left",-1e3).css("top",-2200),s("#resultC011100").css("left",-1e3).css("top",-2200),s("#resultC011010").css("left",-1e3).css("top",-2200),s("#resultC010110").css("left",-1e3).css("top",-2200),s("#resultC001110").css("left",-1e3).css("top",-2200),s("#resultC111100").css("left",-1e3).css("top",-2200),s("#resultC111010").css("left",-1e3).css("top",-2200),s("#resultC110110").css("left",-1e3).css("top",-2200),s("#resultC101110").css("left",-1e3).css("top",-2200),s("#resultC011110").css("left",-1e3).css("top",-2200),s("#resultC111110").css("left",-1e3).css("top",-2200),s("#resultC000001").css("left",-1e3).css("top",-2200),s("#resultC100001").css("left",-1e3).css("top",-2200),s("#resultC010001").css("left",-1e3).css("top",-2200),s("#resultC001001").css("left",-1e3).css("top",-2200),s("#resultC000101").css("left",-1e3).css("top",-2200),s("#resultC000011").css("left",-1e3).css("top",-2200),s("#resultC110001").css("left",-1e3).css("top",-2200),s("#resultC101001").css("left",-1e3).css("top",-2200),s("#resultC100101").css("left",-1e3).css("top",-2200),s("#resultC100011").css("left",-1e3).css("top",-2200),s("#resultC011001").css("left",-1e3).css("top",-2200),s("#resultC010101").css("left",-1e3).css("top",-2200),s("#resultC010011").css("left",-1e3).css("top",-2200),s("#resultC001101").css("left",-1e3).css("top",-2200),s("#resultC001011").css("left",-1e3).css("top",-2200),s("#resultC000111").css("left",-1e3).css("top",-2200),s("#resultC111001").css("left",-1e3).css("top",-2200),s("#resultC110101").css("left",-1e3).css("top",-2200),s("#resultC110011").css("left",-1e3).css("top",-2200),s("#resultC101101").css("left",-1e3).css("top",-2200),s("#resultC101011").css("left",-1e3).css("top",-2200),s("#resultC100111").css("left",-1e3).css("top",-2200),s("#resultC011101").css("left",-1e3).css("top",-2200),s("#resultC011011").css("left",-1e3).css("top",-2200),s("#resultC010111").css("left",-1e3).css("top",-2200),s("#resultC001111").css("left",-1e3).css("top",-2200),s("#resultC111101").css("left",-1e3).css("top",-2200),s("#resultC111011").css("left",-1e3).css("top",-2200),s("#resultC110111").css("left",-1e3).css("top",-2200),s("#resultC101111").css("left",-1e3).css("top",-2200),s("#resultC011111").css("left",-1e3).css("top",-2200),s("#resultC111111").css("left",-1e3).css("top",-2200)):(c(246,210,140,1,1,0,h(B.colors[0],s("#label1").css("opacity"))),s("#label1").css("left",225).css("top",30).css("color",B.colors[0]),s("#label2").css("left",-1e3).css("top",-2200),s("#label3").css("left",-1e3).css("top",-2200),s("#label4").css("left",-1e3).css("top",-2200),s("#label5").css("left",-1e3).css("top",-2200),s("#label6").css("left",-1e3).css("top",-2200),m(s("#resultC100000"),245,200,10),s("#resultC010000").css("left",-1e3).css("top",-2200),s("#resultC001000").css("left",-1e3).css("top",-2200),s("#resultC000100").css("left",-1e3).css("top",-2200),s("#resultC000010").css("left",-1e3).css("top",-2200),s("#resultC110000").css("left",-1e3).css("top",-2200),s("#resultC101000").css("left",-1e3).css("top",-2200),s("#resultC100100").css("left",-1e3).css("top",-2200),s("#resultC100010").css("left",-1e3).css("top",-2200),s("#resultC011000").css("left",-1e3).css("top",-2200),s("#resultC010100").css("left",-1e3).css("top",-2200),s("#resultC010010").css("left",-1e3).css("top",-2200),s("#resultC001100").css("left",-1e3).css("top",-2200),s("#resultC001010").css("left",-1e3).css("top",-2200),s("#resultC000110").css("left",-1e3).css("top",-2200),s("#resultC111000").css("left",-1e3).css("top",-2200),s("#resultC110100").css("left",-1e3).css("top",-2200),s("#resultC110010").css("left",-1e3).css("top",-2200),s("#resultC101100").css("left",-1e3).css("top",-2200),s("#resultC101010").css("left",-1e3).css("top",-2200),s("#resultC100110").css("left",-1e3).css("top",-2200),s("#resultC011100").css("left",-1e3).css("top",-2200),s("#resultC011010").css("left",-1e3).css("top",-2200),s("#resultC010110").css("left",-1e3).css("top",-2200),s("#resultC001110").css("left",-1e3).css("top",-2200),s("#resultC111100").css("left",-1e3).css("top",-2200),s("#resultC111010").css("left",-1e3).css("top",-2200),s("#resultC110110").css("left",-1e3).css("top",-2200),s("#resultC101110").css("left",-1e3).css("top",-2200),s("#resultC011110").css("left",-1e3).css("top",-2200),s("#resultC111110").css("left",-1e3).css("top",-2200),s("#resultC000001").css("left",-1e3).css("top",-2200),s("#resultC100001").css("left",-1e3).css("top",-2200),s("#resultC010001").css("left",-1e3).css("top",-2200),s("#resultC001001").css("left",-1e3).css("top",-2200),s("#resultC000101").css("left",-1e3).css("top",-2200),s("#resultC000011").css("left",-1e3).css("top",-2200),s("#resultC110001").css("left",-1e3).css("top",-2200),s("#resultC101001").css("left",-1e3).css("top",-2200),s("#resultC100101").css("left",-1e3).css("top",-2200),s("#resultC100011").css("left",-1e3).css("top",-2200),s("#resultC011001").css("left",-1e3).css("top",-2200),s("#resultC010101").css("left",-1e3).css("top",-2200),s("#resultC010011").css("left",-1e3).css("top",-2200),s("#resultC001101").css("left",-1e3).css("top",-2200),s("#resultC001011").css("left",-1e3).css("top",-2200),s("#resultC000111").css("left",-1e3).css("top",-2200),s("#resultC111001").css("left",-1e3).css("top",-2200),s("#resultC110101").css("left",-1e3).css("top",-2200),s("#resultC110011").css("left",-1e3).css("top",-2200),s("#resultC101101").css("left",-1e3).css("top",-2200),s("#resultC101011").css("left",-1e3).css("top",-2200),s("#resultC100111").css("left",-1e3).css("top",-2200),s("#resultC011101").css("left",-1e3).css("top",-2200),s("#resultC011011").css("left",-1e3).css("top",-2200),s("#resultC010111").css("left",-1e3).css("top",-2200),s("#resultC001111").css("left",-1e3).css("top",-2200),s("#resultC111101").css("left",-1e3).css("top",-2200),s("#resultC111011").css("left",-1e3).css("top",-2200),s("#resultC110111").css("left",-1e3).css("top",-2200),s("#resultC101111").css("left",-1e3).css("top",-2200),s("#resultC011111").css("left",-1e3).css("top",-2200),s("#resultC111111").css("left",-1e3).css("top",-2200)) + }function _(t,e){$t=t;var l=1,r="",o='
';s("*[id^=label]").each(function(){o+='
',o+='off
',l+=1,l>e&&(r=";display:none")}),o+="
",$t.append(o),s("*[id^=item]").hover(function(){s(this).css("opacity",.75),s(this).css("box-shadow","0px 0px 8px 1px lightgrey")},function(){"off"===s(this).children("span").text()&&s(this).css("opacity",.5),s(this).css("box-shadow","none")}),s("*[id^=item]").click(function(){var t=null;t="off"===s(this).children("span").text()?M(s(this).attr("name")):I(s(this).attr("name")),null!=B.searchInput&&(B.searchInput.val(""),null!=B.searchStatus&&B.searchStatus.text("")),b(),"edwards"==B.displayMode?y(e):x(e),B.displayStat&&v(e),"resultC000000"!=t&&s("#"+t).show()})}function w(){var e=new Array,l=new Array;for(l[0]=new Array,l[1]=new Array,l[2]=new Array,l[3]=new Array,l[4]=new Array,l[5]=new Array,c=0;c0&&(l[c][r[t]]?l[c][r[t]]++:l[c][r[t]]=1,e[r[t]]="C")}for(t=0;6>t;t++){for(tt in l[t])e[tt]&&(e[tt]=e[tt]+"1");for(cl in e)e[cl].length0&&s(this).removeClass("number-empty")})}function z(){if(B.series.length>1)return new Array("list",B.series.length);if(void 0!=B.series[0]&&B.series[0].name.A){var s=0;for(i in B.series[0].name)s++;return new Array("count",s)}return new Array("list",B.series.length)}function P(s,t,e,l,r,o,c,i,a){return a?(t=parseInt(t.replace("px",""))+20,e=parseInt(e.replace("px",""))+14):(t=parseInt(t.replace("px",""))+5,e=parseInt(e.replace("px",""))+14),''+s+""}function S(t,e,l){$t=t;var r='
';r+='',r+='',r+='",r+="
",$t.append(r);var o=s("#canvasExport")[0],c=o.getContext("2d");for(i=0;3>i;i++)c.lineWidth=3,c.beginPath(),c.lineCap="round",c.moveTo(5,5+5.2*i),c.lineTo(20,5+5.2*i),c.strokeStyle="#666",c.stroke();var a=s("#export-menu"),u=s("#canvasExport").css("background");s("#format-png").click(function(){s("#canvasExport").css("background",u),s("#canvasExport").css("border-color","white"),s("#canvasExport").hover(function(){s(this).css("background","linear-gradient(to bottom, white, #AECEFF) repeat scroll 0 0 transparent"),s(this).css("border","1px solid #6688AA"),s(this).css("border-radius","3px")},function(){s(this).css("background",u),s(this).css("border-color","white")}),a.hide();var t=document.createElement("canvas");export_ctx=t.getContext("2d"),t.width=O,t.height=N;var e=document.createElement("img"),l=s("
");l.append(j.getSerializedSvg(!0)),s("[id^=resultC]").each(function(){"none"!=s(this).css("display")&&(value=0===s(this).html().indexOf("");t.append(j.getSerializedSvg(!0)),s("[id^=resultC]").each(function(){"none"!=s(this).css("display")&&(value=0===s(this).html().indexOf("=0&&(e=!0,l=l.replace(/,/g,"_")),s.push(l);for(var r=0;r=0&&(e=!0,l=this.list[r].replace(/,/g,"_")),s.push(l);t.push(s)}});var l="data:text/csv;charset=utf-8,";e&&(l+="##\n## Warning: comma(s) have been replaced by underscore(s)\n##\n"),g(t).forEach(function(s){l+=s.join(",")+"\n"});var r=encodeURI(l);s("#data-export").attr("href",r),s("#data-export").attr("download","jVenn.csv"),s("#data-export")[0].click()}),s("#canvasExport").click(function(){s(this).css("background","linear-gradient(to bottom, #AECEFF, white) repeat scroll 0 0 transparent"),s(this).css("border","1px solid #6688AA"),s("#canvasExport").unbind("mouseenter mouseleave"),a.show(),a.is(":visible")&&s(document).mouseup(function(t){0===a.has(t.target).length&&(s("#canvasExport").css("background",u),s("#canvasExport").css("border-color","white"),s("#canvasExport").hover(function(){s(this).css("background","linear-gradient(to bottom, white, #AECEFF) repeat scroll 0 0 transparent"),s(this).css("border","1px solid #6688AA"),s(this).css("border-radius","3px")},function(){s(this).css("background",u),s(this).css("border-color","white")}),a.hide())});var t=s("div[id^=format-]").css("background");s("div[id^=format-]").hover(function(){s(this).css("background","rgba(69,114,165,0.75)"),s(this).css("color","white")},function(){s(this).css("background",t),s(this).css("color","")})}),s("#canvasExport").hover(function(){s(this).css("background","linear-gradient(to bottom, white, #AECEFF) repeat scroll 0 0 transparent"),s(this).css("border","1px solid #6688AA"),s(this).css("border-radius","3px")},function(){s(this).css("background",u),s(this).css("border-color","white")})}function I(t,e){var e=null==e?!0:e,l=null;s("*[id^=label]").each(function(){if(s(this).html()==t){s(this).css("opacity",.1),s(this).removeClass("is-selected");var e=s(this).attr("id");l=e.charAt(e.length-1)}}),legend_button=s("#item-"+l),legend_button.children("span").css("margin-left","0px"),legend_button.css("opacity",.5),legend_button.children("span").text("off");var r="resultC000000";return s(".is-selected").each(function(){var t=s(this).attr("id"),e=6+parseInt(t.charAt(t.length-1));r=r.substr(0,e)+1+r.substr(e+1)}),"resultC000000"==r&&e?(s(".number-black").each(function(){s(this).css("opacity",1)}),s("*[id^=label]").each(function(){s(this).css("opacity",.6)})):s(".number-black").each(function(){s(this).attr("id")==r?s(this).css("opacity",1):s(this).css("opacity",.1)}),r}function M(t){var e=null;s("*[id^=label]").each(function(){if(s(this).html()==t){s(this).css("opacity",.6),s(this).addClass("is-selected");var l=s(this).attr("id");e=l.charAt(l.length-1)}else s(this).hasClass("is-selected")||s(this).css("opacity",.1)}),legend_button=s("#item-"+e),legend_button.children("span").css("margin-left","13px"),legend_button.css("opacity",.75),legend_button.css("color","black"),legend_button.children("span").text("on");var l="resultC000000";return s(".is-selected").each(function(){var t=s(this).attr("id"),e=6+parseInt(t.charAt(t.length-1));l=l.substr(0,e)+1+l.substr(e+1)}),s(".number-black").each(function(){s(this).attr("id")==l?s(this).css("opacity",1):s(this).css("opacity",.1)}),l}function F(t,e){var e=null==e?1:e,l=new Array,r="resultC000000",o=0;if(s("*[id^=label]").each(function(){""!=s(this).html()&&(l[s(this).html()]="unselected")}),""==t||e>t.length)for(var c in l)r=I(c);else{var i=null,a=!1;if(s(".number-black:not(.number-empty)").each(function(){for(var s=0;s=o)for(var c in l)r="selected"==l[c]?M(c):I(c,!1);else for(var c in l)r=I(c)}null!=B.searchStatus&&(""==t||e>t.length?B.searchStatus.text(""):0==o?B.searchStatus.text("not found"):1==o?B.searchStatus.text("found"):o>1&&B.searchStatus.text("ambiguous")),b(),"edwards"==B.displayMode?y(z()[1]):x(z()[1]),B.displayStat&&v(z()[1]),"resultC000000"!=r&&s("#"+r).show()}var D={series:[{name:"Actors",data:["Marilyn Monroe","Arnold Schwarzenegger","Jack Nicholson","Barbra Streisand","Robert de Niro","Dean Martin","Harrison Ford"]},{name:"Singers",data:["Freddy Mercury","Barbra Streisand","Dean Martin","Ricky Martin","Celine Dion","Marilyn Monroe"]}],fnClickCallback:function(){var s="";s+=1==this.listnames.length?"Elements only in ":"Common elements in ";for(name in this.listnames)s+=this.listnames[name]+" ";s+=":\n";for(val in this.list)s+=this.list[val]+"\n";alert(s)},disableClick:!1,useValues:!1,exporting:!0,displayMode:"classic",displayStat:!1,shortNumber:!0,searchInput:null,searchStatus:null,searchMinSize:1,colors:["rgb(0,102,0)","rgb(90,155,212)","rgb(241,90,96)","rgb(250,220,91)","rgb(255,117,0)","rgb(192,152,83)"],fontSize:"16px",fontFamily:"Arial"},B=s.extend(D,e),O=500,N=415,j=null;return this.each(function(){var t=s(this),e=0;B.displayStat&&(e=280,N+=e),t.css({width:"500px",height:""+(450+e)+"px"}),s("").appendTo("body");var l=434,r=130;"edwards"==B.displayMode&&(l=10,r=425),s("").appendTo("body"),s("").appendTo("body");var o='
';o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+='
',o+="
",t.html(o),j=new C2S(O,N),s("*[id^=resultC]").each(function(){s(this).html(0),s(this).addClass("number-empty"),s(this).css("font-size",B.fontSize),s(this).css("font-family",B.fontFamily)}),s("*[id^=label]").each(function(){s(this).css("font-family",B.fontFamily)});var c=z();"list"==c[0]?w():"count"==c[0]&&E(),null!=B.searchInput&&B.searchInput.keyup(function(){F(B.searchInput.val(),B.searchMinSize)}),"edwards"==B.displayMode?y(c[1]):x(c[1]),B.displayStat&&v(c[1]),B.exporting===!0&&S(t,e,c[0]),c[1]>=4&&_(t,c[1]),s(".number-black").hover(function(){var t=!1;s("*[id^=item]").each(function(){"on"===s(this).children("span").text()&&(t=!0)});var e=!1;if(null!=B.searchInput&&""!=B.searchInput.val()&&(e=!0),!t&&!e&&""!==s(this).text()){var l=this.listnames,r=this;s("*[id^=label]").each(function(){l.indexOf(s(this).text())<0?s(this).css("opacity",.1):s(this).css("opacity",.6)}),s(".number-black").each(function(){this!=r&&s(this).css("opacity",.1)}),b(),"edwards"==B.displayMode?y(c[1]):x(c[1]),B.displayStat&&v(c[1])}},function(){var t=!1;s("*[id^=item]").each(function(){"on"===s(this).children("span").text()&&(t=!0)});var e=!1;if(null!=B.searchInput&&""!=B.searchInput.val()&&(e=!0),!t&&!e&&""!==s(this).text()){{this.listnames}s("*[id^=label]").each(function(){s(this).css("opacity",.5)}),s(".number-black").each(function(){s(this).css("opacity",1)}),b(),"edwards"==B.displayMode?y(c[1]):x(c[1]),B.displayStat&&v(c[1])}}),s("#canvasEllipse").html(j.getSvg())}),this}}(jQuery);