PageSourceSearch

https://www.lighthouseacademy.ai/_next/static/chunks/3649.591f9fd59940108f.js

js lighthouseacademy.ai collected 2026-10-04 23:39:05 UTC 42,185 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3649],{93649:function(t,e,n){n.d(e,{diagram:function(){return tx}});var i,s=n(66462),r=n(42877),l=n(66764),a=n(99573),o=n(53082),h=n(74494),c=n(44426),u=(t,e)=>(0,c.Z)(t,"a",-e),f=n(11679),d=n(59554);function y(t,e){let n=function(t){let e=[];for(let n=0;n<t.length;++n)for(let i=n+1;i<t.length;++i)for(let s of m(t[n],t[i]))s.parentIndex=[n,i],e.push(s);return e}(t),i=n.filter(e=>t.every(t=>x(e,t)<t.radius+1e-10)),s=0,r=0,l=[];if(i.length>1){let e=v(i);for(let t=0;t<i.length;++t){let n=i[t];n.angle=Math.atan2(n.x-e.x,n.y-e.y)}i.sort((t,e)=>e.angle-t.angle);let n=i[i.length-1];for(let e=0;e<i.length;++e){let a=i[e];r+=(n.x+a.x)*(a.y-n.y);let o={x:(a.x+n.x)/2,y:(a.y+n.y)/2},h=null;for(let e=0;e<a.parentIndex.length;++e)if(n.parentIndex.includes(a.parentIndex[e])){let i=t[a.parentIndex[e]],s=Math.atan2(a.x-i.x,a.y-i.y),r=Math.atan2(n.x-i.x,n.y-i.y),l=r-s;l<0&&(l+=2*Math.PI);let c=r-l/2,u=x(o,{x:i.x+i.radius*Math.sin(c),y:i.y+i.radius*Math.cos(c)});u>2*i.radius&&(u=2*i.radius),(null==h||h.width>u)&&(h={circle:i,width:u,p1:a,p2:n,large:u>i.radius,sweep:!0})}null!=h&&(l.push(h),s+=g(h.circle.radius,h.width),n=a)}}else{let e=t[0];for(let n=1;n<t.length;++n)t[n].radius<e.radius&&(e=t[n]);let n=!1;for(let i=0;i<t.length;++i)if(x(t[i],e)>Math.abs(e.radius-t[i].radius)){n=!0;break}n?s=r=0:(s=e.radius*e.radius*Math.PI,l.push({circle:e,p1:{x:e.x,y:e.y+e.radius},p2:{x:e.x-1e-10,y:e.y+e.radius},width:2*e.radius,large:!0,sweep:!0}))}return r/=2,e&&(e.area=s+r,e.arcArea=s,e.polygonArea=r,e.arcs=l,e.innerPoints=i,e.intersectionPoints=n),s+r}function g(t,e){return t*t*Math.acos(1-e/t)-(t-e)*Math.sqrt(e*(2*t-e))}function x(t,e){return Math.sqrt((t.x-e.x)*(t.x-e.x)+(t.y-e.y)*(t.y-e.y))}function p(t,e,n){return n>=t+e?0:n<=Math.abs(t-e)?Math.PI*Math.min(t,e)*Math.min(t,e):g(t,t-(n*n-e*e+t*t)/(2*n))+g(e,e-(n*n-t*t+e*e)/(2*n))}function m(t,e){let n=x(t,e),i=t.radius,s=e.radius;if(n>=i+s||n<=Math.abs(i-s))return[];let r=(i*i-s*s+n*n)/(2*n),l=Math.sqrt(i*i-r*r),a=t.x+r*(e.x-t.x)/n,o=t.y+r*(e.y-t.y)/n,h=-(e.y-t.y)*(l/n),c=-(e.x-t.x)*(l/n);return[{x:a+h,y:o-c},{x:a-h,y:o+c}]}function v(t){let e={x:0,y:0};for(let n of t)e.x+=n.x,e.y+=n.y;return e.x/=t.length,e.y/=t.length,e}function b(t){let e=Array(t);for(let n=0;n<t;++n)e[n]=0;return e}function I(t,e){return b(t).map(()=>b(e))}function M(t,e){let n=0;for(let i=0;i<t.length;++i)n+=t[i]*e[i];return n}function k(t){return Math.sqrt(M(t,t))}function _(t,e,n){for(let i=0;i<e.length;++i)t[i]=e[i]*n}function w(t,e,n,i,s){for(let r=0;r<t.length;++r)t[r]=e*n[r]+i*s[r]}function E(t,e,n){let i;let s=(n=n||{}).maxIterations||200*e.length,r=n.nonZeroDelta||1.05,l=n.zeroDelta||.001,a=n.minErrorDelta||1e-6,o=n.minErrorDelta||1e-5,h=void 0!==n.rho?n.rho:1,c=void 0!==n.chi?n.chi:2,u=void 0!==n.psi?n.psi:-.5,f=void 0!==n.sigma?n.sigma:.5,d=e.length,y=Array(d+1);y[0]=e,y[0].fx=t(e),y[0].id=0;for(let n=0;n<d;++n){let i=e.slice();i[n]=i[n]?i[n]*r:l,y[n+1]=i,y[n+1].fx=t(i),y[n+1].id=n+1}function g(t){for(let e=0;e<t.length;e++)y[d][e]=t[e];y[d].fx=t.fx}let x=(t,e)=>t.fx-e.fx,p=e.slice(),m=e.slice(),v=e.slice(),b=e.slice();for(let e=0;e<s;++e){if(y.sort(x),n.history){let t=y.map(t=>{let e=t.slice();return e.fx=t.fx,e.id=t.id,e});t.sort((t,e)=>t.id-e.id),n.history.push({x:y[0].slice(),fx:y[0].fx,simplex:t})}i=0;for(let t=0;t<d;++t)i=Math.max(i,Math.abs(y[0][t]-y[1][t]));if(Math.abs(y[0].fx-y[d].fx)<a&&i<o)break;for(let t=0;t<d;++t){p[t]=0;for(let e=0;e<d;++e)p[t]+=y[e][t];p[t]/=d}let e=y[d];if(w(m,1+h,p,-h,e),m.fx=t(m),m.fx<y[0].fx)w(b,1+c,p,-c,e),b.fx=t(b),g(b.fx<m.fx?b:m);else if(m.fx>=y[d-1].fx){let n=!1;if(m.fx>e.fx?(w(v,1+u,p,-u,e),v.fx=t(v),v.fx<e.fx?g(v):n=!0):(w(v,1-u*h,p,u*h,e),v.fx=t(v),v.fx<m.fx?g(v):n=!0),n){if(f>=1)break;for(let e=1;e<y.length;++e)w(y[e],1-f,y[0],f,y[e]),y[e].fx=t(y[e])}}else g(m)}return y.sort(x),{fx:y[0].fx,x:y[0]}}function S(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.maxIterations=e.maxIterations||500;let n=e.initialLayout||z,i=e.lossFunction||A,s=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.distinct,i=t.map(t=>Object.assign({},t));function s(t){return t.join(";")}if(n){let t=new Map;for(let e of i)for(let n=0;n<e.sets.length;n++){let i=String(e.sets[n]);t.set(i,e.size+(t.get(i)||0));for(let s=n+1;s<e.sets.length;s++){let n=String(e.sets[s]),r="".concat(i,";").concat(n),l="".concat(n,";").concat(i);t.set(r,e.size+(t.get(r)||0)),t.set(l,e.size+(t.get(l)||0))}}for(let e of i)e.sets.length<3&&(e.size=t.get(s(e.sets)))}let r=[],l=new Set;for(let t of i)if(1===t.sets.length)r.push(t.sets[0]);else if(2===t.sets.length){let e=t.sets[0],n=t.sets[1];l.add(s(t.sets)),l.add(s([n,e]))}r.sort((t,e)=>t===e?0:t<e?-1:1);for(let t=0;t<r.length;++t){let e=r[t];
1for(let n=t+1;n<r.length;++n){let t=r[n];l.has(s([e,t]))||i.push({sets:[e,t],size:0})}}return i}(t,e),r=n(s,e),l=Object.keys(r),a=[];for(let t of l)a.push(r[t].x),a.push(r[t].y);let o=E(t=>{let e={};for(let n=0;n<l.length;++n){let i=l[n];e[i]={x:t[2*n],y:t[2*n+1],radius:r[i].radius}}return i(e,s)},a,e).x;for(let t=0;t<l.length;++t){let e=l[t];r[e].x=o[2*t],r[e].y=o[2*t+1]}return r}function T(t,e,n){return Math.min(t,e)*Math.min(t,e)*Math.PI<=n+1e-10?Math.abs(t-e):function(t,e,n,i){let s=(i=i||{}).maxIterations||100,r=i.tolerance||1e-10,l=t(e),a=t(n),o=n-e;if(l*a>0)throw"Initial bisect points must have opposite signs";if(0===l)return e;if(0===a)return n;for(let n=0;n<s;++n){let n=e+(o/=2),i=t(n);if(i*l>=0&&(e=n),Math.abs(o)<r||0===i)return n}return e+o}(i=>p(t,e,i)-n,0,t+e)}function z(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=function(t,e){let n=e&&e.lossFunction?e.lossFunction:A,i={},s={};for(let e of t)if(1===e.sets.length){let t=e.sets[0];i[t]={x:1e10,y:1e10,rowid:i.length,size:e.size,radius:Math.sqrt(e.size/Math.PI)},s[t]=[]}for(let e of t=t.filter(t=>2===t.sets.length)){let t=null!=e.weight?e.weight:1,n=e.sets[0],r=e.sets[1];e.size+1e-10>=Math.min(i[n].size,i[r].size)&&(t=0),s[n].push({set:r,size:e.size,weight:t}),s[r].push({set:n,size:e.size,weight:t})}let r=[];function l(t,e){return e.size-t.size}Object.keys(s).forEach(t=>{let e=0;for(let n=0;n<s[t].length;++n)e+=s[t][n].size*s[t][n].weight;r.push({set:t,size:e})}),r.sort(l);let a={};function o(t){return t.set in a}function h(t,e){i[e].x=t.x,i[e].y=t.y,a[e]=!0}h({x:0,y:0},r[0].set);for(let e=1;e<r.length;++e){let a=r[e].set,u=s[a].filter(o),f=i[a];if(u.sort(l),0===u.length)throw"ERROR: missing pairwise overlap information";let d=[];for(var c=0;c<u.length;++c){let t=i[u[c].set],e=T(f.radius,t.radius,u[c].size);d.push({x:t.x+e,y:t.y}),d.push({x:t.x-e,y:t.y}),d.push({y:t.y+e,x:t.x}),d.push({y:t.y-e,x:t.x});for(let n=c+1;n<u.length;++n){let s=i[u[n].set],r=T(f.radius,s.radius,u[n].size),l=m({x:t.x,y:t.y,radius:e},{x:s.x,y:s.y,radius:r});d.push(...l)}}let y=1e50,g=d[0];for(let e of d){i[a].x=e.x,i[a].y=e.y;let s=n(i,t);s<y&&(y=s,g=e)}h(g,a)}return i}(t,e),i=e.lossFunction||A;if(t.length>=8){let s=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.restarts||10,i=[],s={};for(let e of t)1===e.sets.length&&(s[e.sets[0]]=i.length,i.push(e));let{distances:r,constraints:l}=function(t,e,n){let i=I(e.length,e.length),s=I(e.length,e.length);return t.filter(t=>2===t.sets.length).forEach(t=>{let r=n[t.sets[0]],l=n[t.sets[1]],a=T(Math.sqrt(e[r].size/Math.PI),Math.sqrt(e[l].size/Math.PI),t.size);i[r][l]=i[l][r]=a;let o=0;t.size+1e-10>=Math.min(e[r].size,e[l].size)?o=1:t.size<=1e-10&&(o=-1),s[r][l]=s[l][r]=o}),{distances:i,constraints:s}}(t,i,s),a=k(r.map(k))/r.length;r=r.map(t=>t.map(t=>t/a));let o=(t,e)=>(function(t,e,n,i){for(let t=0;t<e.length;++t)e[t]=0;let s=0;for(let r=0;r<n.length;++r){let l=t[2*r],a=t[2*r+1];for(let o=r+1;o<n.length;++o){let h=t[2*o],c=t[2*o+1],u=n[r][o],f=i[r][o],d=(h-l)*(h-l)+(c-a)*(c-a),y=Math.sqrt(d),g=d-u*u;f>0&&y<=u||f<0&&y>=u||(s+=2*g*g,e[2*r]+=4*g*(l-h),e[2*r+1]+=4*g*(a-c),e[2*o]+=4*g*(h-l),e[2*o+1]+=4*g*(c-a))}}return s})(t,e,r,l),h=null;for(let t=0;t<n;++t){let t=function(t,e,n){let i,s,r,l={x:e.slice(),fx:0,fxprime:e.slice()},a={x:e.slice(),fx:0,fxprime:e.slice()},o=e.slice(),h=1;r=(n=n||{}).maxIterations||20*e.length,l.fx=t(l.x,l.fxprime),_(i=l.fxprime.slice(),l.fxprime,-1);for(let e=0;e<r;++e){if(h=function(t,e,n,i,s,r,l){let a=n.fx,o=M(n.fxprime,e),h=a,c=a,u=o,f=0;function d(c,f,d){for(let y=0;y<16;++y)if(s=(c+f)/2,w(i.x,1,n.x,s,e),h=i.fx=t(i.x,i.fxprime),u=M(i.fxprime,e),h>a+r*s*o||h>=d)f=s;else{if(Math.abs(u)<=-l*o)return s;u*(f-c)>=0&&(f=c),c=s,d=h}return 0}s=s||1,r=r||1e-6,l=l||.1;for(let y=0;y<10;++y){if(w(i.x,1,n.x,s,e),h=i.fx=t(i.x,i.fxprime),u=M(i.fxprime,e),h>a+r*s*o||y&&h>=c)return d(f,s,c);if(Math.abs(u)<=-l*o)break;if(u>=0)return d(s,f,h);c=h,f=s,s*=2}return s}(t,i,l,a,h),n.history&&n.history.push({x:l.x.slice(),fx:l.fx,fxprime:l.fxprime.slice(),alpha:h}),h){w(o,1,a.fxprime,-1,l.fxprime);let t=M(l.fxprime,l.fxprime);w(i,Math.max(0,M(o,a.fxprime)/t),i,-1,a.fxprime),s=l,l=a,a=s}else _(i,l.fxprime,-1);if(1e-5>=k(l.fxprime))break}return n.history&&n.history.push({x:l.x.slice(),fx:l.fx,fxprime:l.fxprime.slice(),alpha:h}),l}(o,b(2*r.length).map(Math.random),e);(!h||t.fx<h.fx)&&(h=t)}let c=h.x,u={};for(let t=0;t<i.length;++t){let e=i[t];u[e.sets[0]]={x:c[2*t]*a,y:c[2*t+1]*a,radius:Math.sqrt(e.size/Math.PI)}}if(e.history)for(let t of e.history)_(t.x,a);return u}(t,e);i(s,t)+1e-8<i(n,t)&&(n=s)}return n}function A(t,e){let n=0;for(let i of e){let e;if(1!==i.sets.length){if(2===i.sets.length){let n=t[i.sets[0]],s=t[i.sets[1]];e=p(n.radius,s.radius,x(n,s))}else e=y(i.sets.map(e=>t[e]));n+=(null!=i.weight?i.weight:1)*(e-i.size)*(e-i.size)}}return n}function W(t,e){let n=0;for(let i of e){let e;if(1===i.sets.length)continue;if(2===i.sets.length){let n=t[i.sets[0]],s=t[i.sets[1]];e=p(n.radius,s.radius,x(n,s))}else e=y(i.sets.map(e=>t[e]));let s=null!=i.weight?i.weight:1,r=Math.log((e+1)/(i.size+1));n+=s*r*r}return n}function N(t){let e=e=>({max:t.reduce((t,n)=>Math.max(t,n[e]+n.radius),Number.NEGATIVE_INFINITY),min:t.reduce((t,n)=>Math.min(t,n[e]-n.radius),Number.POSITIVE_INFINITY)});return{xRange:e("x"),yRange:e("y")}}function R(t,e,n){null==e&&(e=Math.PI/2);let i=F(t).map(t=>Object.assign({},t)),s=function(t){function e(t){return t.parent!==t&&(t.parent=e(t.parent)),t.parent}t.forEach(t=>{t.parent=t});for(let n=0;n<t.length;++n)for(let i=n+1;i<t.length;++i){let s=t[n].radius+t[i].radius;x(t[n],t[i])+1e-10<s&&function(t,n){let i=e(t),s=e(n);i.parent=s}(t[i],t[n])}let n=new Map;for(let i=0;i<t.length;++i){let s=e(t[i]).parent.setid;n.has(s)||n.set(s,[]),n.get(s).push(t[i])}return t.forEach(t=>{delete t.parent}),Array.from(n.values())}(i);for(let t of s){!function(t,e,n){if(null==n?t.sort((t,e)=>
1e.radius-t.radius):t.sort(n),t.length>0){let e=t[0].x,n=t[0].y;for(let i of t)i.x-=e,i.y-=n}if(2===t.length&&x(t[0],t[1])<Math.abs(t[1].radius-t[0].radius)&&(t[1].x=t[0].x+t[0].radius-t[1].radius-1e-10,t[1].y=t[0].y),t.length>1){let n=Math.atan2(t[1].x,t[1].y)-e,i=Math.cos(n),s=Math.sin(n);for(let e of t){let t=e.x,n=e.y;e.x=i*t-s*n,e.y=s*t+i*n}}if(t.length>2){let n=Math.atan2(t[2].x,t[2].y)-e;for(;n<0;)n+=2*Math.PI;for(;n>2*Math.PI;)n-=2*Math.PI;if(n>Math.PI){let e=t[1].y/(1e-10+t[1].x);for(let n of t){var i=(n.x+e*n.y)/(1+e*e);n.x=2*i-n.x,n.y=2*i*e-n.y}}}}(t,e,n);let i=N(t);t.size=(i.xRange.max-i.xRange.min)*(i.yRange.max-i.yRange.min),t.bounds=i}s.sort((t,e)=>e.size-t.size);let r=(i=s[0]).bounds,l=(r.xRange.max-r.xRange.min)/50;function a(t,e,n){let s,a;if(!t)return;let o=t.bounds;if(e)s=r.xRange.max-o.xRange.min+l;else{s=r.xRange.max-o.xRange.max;let t=(o.xRange.max-o.xRange.min)/2-(r.xRange.max-r.xRange.min)/2;t<0&&(s+=t)}if(n)a=r.yRange.max-o.yRange.min+l;else{a=r.yRange.max-o.yRange.max;let t=(o.yRange.max-o.yRange.min)/2-(r.yRange.max-r.yRange.min)/2;t<0&&(a+=t)}for(let e of t)e.x+=s,e.y+=a,i.push(e)}let o=1;for(;o<s.length;)a(s[o],!0,!1),a(s[o+1],!1,!0),a(s[o+2],!0,!0),o+=3,r=N(i);return C(i)}function O(t,e,n,i,s){let r,l;let a=F(t);e-=2*i,n-=2*i;let{xRange:o,yRange:h}=N(a);if(o.max===o.min||h.max===h.min)return console.log("not scaling solution: zero size detected"),t;if(s){let t=2*Math.sqrt(s/Math.PI);r=e/t,l=n/t}else r=e/(o.max-o.min),l=n/(h.max-h.min);let c=Math.min(l,r),u=(e-(o.max-o.min)*c)/2,f=(n-(h.max-h.min)*c)/2;return C(a.map(t=>({radius:c*t.radius,x:i+u+(t.x-o.min)*c,y:i+f+(t.y-h.min)*c,setid:t.setid})))}function C(t){let e={};for(let n of t)e[n.setid]=n;return e}function F(t){return Object.keys(t).map(e=>Object.assign(t[e],{setid:e}))}function D(t,e){return function(n){let i=this,s=t[n.sets[0]].radius||50,r=e(n)||"",l=r.split(/\s+/).reverse(),a=(r.length+l.length)/3,o=l.pop(),h=[o],c=0;i.textContent=null;let u=[];function f(t){let e=i.ownerDocument.createElementNS(i.namespaceURI,"tspan");return e.textContent=t,u.push(e),i.append(e),e}let d=f(o);for(;o=l.pop();){h.push(o);let t=h.join(" ");d.textContent=t,t.length>a&&d.getComputedTextLength()>s&&(h.pop(),d.textContent=h.join(" "),h=[o],d=f(o),c++)}let y=.35-1.1*c/2,g=i.getAttribute("x"),x=i.getAttribute("y");u.forEach((t,e)=>{t.setAttribute("x",g),t.setAttribute("y",x),t.setAttribute("dy","".concat(y+1.1*e,"em"))})}}function P(t,e,n){let i=e[0].radius-x(e[0],t);for(let n=1;n<e.length;++n){let s=e[n].radius-x(e[n],t);s<=i&&(i=s)}for(let e=0;e<n.length;++e){let s=x(n[e],t)-n[e].radius;s<=i&&(i=s)}return i}function j(t,e,n){let i={},s=function(t){let e={},n=Object.keys(t);for(let t of n)e[t]=[];for(let i=0;i<n.length;i++){let s=n[i],r=t[s];for(let l=i+1;l<n.length;++l){let i=n[l],a=t[i],o=x(r,a);o+a.radius<=r.radius+1e-10?e[i].push(s):o+r.radius<=a.radius+1e-10&&e[s].push(i)}}return e}(t);for(let r=0;r<e.length;++r){let l=e[r].sets,a={},o={};for(let t=0;t<l.length;++t){a[l[t]]=!0;let e=s[l[t]];for(let t=0;t<e.length;++t)o[e[t]]=!0}let h=[],c=[];for(let e in t)e in a?h.push(t[e]):e in o||c.push(t[e]);let u=function t(e,n,i){let s=[];for(let t of e)s.push({x:t.x,y:t.y}),s.push({x:t.x+t.radius/2,y:t.y}),s.push({x:t.x-t.radius/2,y:t.y}),s.push({x:t.x,y:t.y+t.radius/2}),s.push({x:t.x,y:t.y-t.radius/2});let r=s[0],l=P(s[0],e,n);for(let t=1;t<s.length;++t){let i=P(s[t],e,n);i>=l&&(r=s[t],l=i)}let a=E(t=>-1*P({x:t[0],y:t[1]},e,n),[r.x,r.y],{maxIterations:500,minErrorDelta:1e-10}).x,o={x:i?0:a[0],y:a[1]},h=!0;for(let t of e)if(x(o,t)>t.radius){h=!1;break}for(let t of n)if(x(o,t)<t.radius){h=!1;break}if(h)return o;if(1==e.length)return{x:e[0].x,y:e[0].y};let c={};return(y(e,c),0===c.arcs.length)?{x:0,y:-1e3,disjoint:!0}:1==c.arcs.length?{x:c.arcs[0].circle.x,y:c.arcs[0].circle.y}:n.length?t(e,[]):v(c.arcs.map(t=>t.p1))}(h,c,n);i[l]=u,u.disjoint&&e[r].size>0&&console.log("WARNING: area "+l+" not represented on screen")}return i}function L(t){if(0===t.length)return[];let e={};return y(t,e),e.arcs}function q(t,e){if(0===t.length)return"M 0 0";let n=Math.pow(10,e||0),i=null!=e?t=>Math.round(t*n)/n:t=>t;if(1==t.length){let e=t[0].circle;return function(t,e,n){let i=[];return i.push("\nM",t,e),i.push("\nm",-n,0),i.push("\na",n,n,0,1,0,2*n,0),i.push("\na",n,n,0,1,0,-(2*n),0),i.join(" ")}(i(e.x),i(e.y),i(e.radius))}let s=["\nM",i(t[0].p2.x),i(t[0].p2.y)];for(let e of t){let t=i(e.circle.radius);s.push("\nA",t,t,0,e.large?1:0,e.sweep?1:0,i(e.p1.x),i(e.p1.y))}return s.join(" ")}var U=n(70160),$=function(){var t=(0,a.eW)(function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},"o"),e=[5,8],n=[7,8,11,12,17,19,22,24],i=[1,17],s=[1,18],r=[7,8,11,12,14,15,16,17,19,20,21,22,24,27],l=[1,31],o=[1,39],h=[7,8,11,12,17,19,22,24,27],c=[1,57],u=[1,56],f=[1,58],d=[1,59],y=[1,60],g=[7,8,11,12,16,17,19,20,22,24,27,31,32,33],x={trace:(0,a.eW)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,optNewlines:4,VENN:5,document:6,EOF:7,NEWLINE:8,line:9,statement:10,TITLE:11,SET:12,identifier:13,BRACKET_LABEL:14,COLON:15,NUMERIC:16,UNION:17,identifierList:18,TEXT:19,IDENTIFIER:20,STRING:21,INDENT_TEXT:22,indentedTextTail:23,STYLE:24,stylesOpt:25,styleField:26,COMMA:27,styleValue:28,valueTokens:29,valueToken:30,HEXCOLOR:31,RGBCOLOR:32,RGBACOLOR:33,$accept:0,$end:1},terminals_:{2:"error",5:"VENN",7:"EOF",8:"NEWLINE",11:"TITLE",12:"SET",14:"BRACKET_LABEL",15:"
1COLON",16:"NUMERIC",17:"UNION",19:"TEXT",20:"IDENTIFIER",21:"STRING",22:"INDENT_TEXT",24:"STYLE",27:"COMMA",31:"HEXCOLOR",32:"RGBCOLOR",33:"RGBACOLOR"},productions_:[0,[3,4],[4,0],[4,2],[6,0],[6,2],[9,1],[9,1],[10,1],[10,2],[10,3],[10,4],[10,5],[10,2],[10,3],[10,4],[10,5],[10,3],[10,3],[10,3],[10,4],[10,4],[10,2],[10,3],[23,1],[23,1],[23,1],[23,2],[23,2],[25,1],[25,3],[26,3],[28,1],[28,1],[29,1],[29,2],[30,1],[30,1],[30,1],[30,1],[30,1],[18,1],[18,3],[13,1],[13,1]],performAction:(0,a.eW)(function(t,e,n,i,s,r,l){var a=r.length-1;switch(s){case 1:return r[a-1];case 2:case 3:case 4:case 6:this.$=[];break;case 5:case 35:r[a-1].push(r[a]),this.$=r[a-1];break;case 7:case 22:case 32:case 36:case 37:case 38:case 39:case 40:case 43:case 44:this.$=r[a];break;case 8:i.setDiagramTitle(r[a].substr(6)),this.$=r[a].substr(6);break;case 9:i.addSubsetData([r[a]],void 0,void 0),i.setIndentMode&&i.setIndentMode(!0);break;case 10:i.addSubsetData([r[a-1]],r[a],void 0),i.setIndentMode&&i.setIndentMode(!0);break;case 11:i.addSubsetData([r[a-2]],void 0,parseFloat(r[a])),i.setIndentMode&&i.setIndentMode(!0);break;case 12:i.addSubsetData([r[a-3]],r[a-2],parseFloat(r[a])),i.setIndentMode&&i.setIndentMode(!0);break;case 13:if(r[a].length<2)throw Error("union requires multiple identifiers");i.validateUnionIdentifiers&&i.validateUnionIdentifiers(r[a]),i.addSubsetData(r[a],void 0,void 0),i.setIndentMode&&i.setIndentMode(!0);break;case 14:if(r[a-1].length<2)throw Error("union requires multiple identifiers");i.validateUnionIdentifiers&&i.validateUnionIdentifiers(r[a-1]),i.addSubsetData(r[a-1],r[a],void 0),i.setIndentMode&&i.setIndentMode(!0);break;case 15:if(r[a-2].length<2)throw Error("union requires multiple identifiers");i.validateUnionIdentifiers&&i.validateUnionIdentifiers(r[a-2]),i.addSubsetData(r[a-2],void 0,parseFloat(r[a])),i.setIndentMode&&i.setIndentMode(!0);break;case 16:if(r[a-3].length<2)throw Error("union requires multiple identifiers");i.validateUnionIdentifiers&&i.validateUnionIdentifiers(r[a-3]),i.addSubsetData(r[a-3],r[a-2],parseFloat(r[a])),i.setIndentMode&&i.setIndentMode(!0);break;case 17:case 18:case 19:i.addTextData(r[a-1],r[a],void 0);break;case 20:case 21:i.addTextData(r[a-2],r[a-1],r[a]);break;case 23:i.addStyleData(r[a-1],r[a]);break;case 24:case 25:case 26:var o=i.getCurrentSets();if(!o)throw Error("text requires set");i.addTextData(o,r[a],void 0);break;case 27:case 28:var o=i.getCurrentSets();if(!o)throw Error("text requires set");i.addTextData(o,r[a-1],r[a]);break;case 29:case 41:case 34:this.$=[r[a]];break;case 30:case 42:this.$=[...r[a-2],r[a]];break;case 31:this.$=[r[a-2],r[a]];break;case 33:this.$=r[a].join(" ")}},"anonymous"),table:[t(e,[2,2],{3:1,4:2}),{1:[3]},{5:[1,3],8:[1,4]},t(n,[2,4],{6:5}),t(e,[2,3]),{7:[1,6],8:[1,8],9:7,10:9,11:[1,10],12:[1,11],17:[1,12],19:[1,13],22:[1,14],24:[1,15]},{1:[2,1]},t(n,[2,5]),t(n,[2,6]),t(n,[2,7]),t(n,[2,8]),{13:16,20:i,21:s},{13:20,18:19,20:i,21:s},{13:20,18:21,20:i,21:s},{16:[1,25],20:[1,23],21:[1,24],23:22},{13:20,18:26,20:i,21:s},t(n,[2,9],{14:[1,27],15:[1,28]}),t(r,[2,43]),t(r,[2,44]),t(n,[2,13],{14:[1,29],15:[1,30],27:l}),t(r,[2,41]),{16:[1,34],20:[1,32],21:[1,33],27:l},t(n,[2,22]),t(n,[2,24],{14:[1,35]}),t(n,[2,25],{14:[1,36]}),t(n,[2,26]),{20:o,25:37,26:38,27:l},t(n,[2,10],{15:[1,40]}),{16:[1,41]},t(n,[2,14],{15:[1,42]}),{16:[1,43]},{13:44,20:i,21:s},t(n,[2,17],{14:[1,45]}),t(n,[2,18],{14:[1,46]}),t(n,[2,19]),t(n,[2,27]),t(n,[2,28]),t(n,[2,23],{27:[1,47]}),t(h,[2,29]),{15:[1,48]},{16:[1,49]},t(n,[2,11]),{16:[1,50]},t(n,[2,15]),t(r,[2,42]),t(n,[2,20]),t(n,[2,21]),{20:o,26:51},{16:c,20:u,21:[1,53],28:52,29:54,30:55,31:f,32:d,33:y},t(n,[2,12]),t(n,[2,16]),t(h,[2,30]),t(h,[2,31]),t(h,[2,32]),t(h,[2,33],{30:61,16:c,20:u,31:f,32:d,33:y}),t(g,[2,34]),t(g,[2,36]),t(g,[2,37]),t(g,[2,38]),t(g,[2,39]),t(g,[2,40]),t(g,[2,35])],defaultActions:{6:[2,1]},parseError:(0,a.eW)(function(t,e){if(e.recoverable)this.trace(t);else{var n=Error(t);throw n.hash=e,n}},"parseError"),parse:(0,a.eW)(function(t){var e=this,n=[0],i=[],s=[null],r=[],l=this.table,o="",h=0,c=0,u=0,f=r.slice.call(arguments,1),d=Object.create(this.lexer),y={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(y.yy[g]=this.yy[g]);d.setInput(t,y.yy),y.yy.lexer=d,y.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var x=d.yylloc;r.push(x);var p=d.options&&d.options.ranges;function m(){var t;return"number"!=typeof(t=i.pop()||d.lex()||1)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof y.yy.parseError?this.parseError=y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,a.eW)(function(t){n.length=n.length-2*t,s.length=s.length-t,r.length=r.length-t},"popStack"),(0,a.eW)(m,"lex");for(var v,b,I,M,k,_,w,E,S,T={};;){if(I=n[n.length-1],this.defaultActions[I]?M=this.defaultActions[I]:(null==v&&(v=m()),M=l[I]&&l[I][v]),void 0===M||!M.length||!M[0]){var z="";for(_ in S=[],l[I])this.terminals_[_]&&_>2&&S.push("'"+this.terminals_[_]+"'");z=d.showPosition?"Parse error on line "+(h+1)+":\n"+d.showPosition()+"\nExpecting "+S.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(h+1)+": Unexpected "+(1==v?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(z,{text:d.match,token:this.terminals_[v]||v,line:d.yylineno,loc:x,expected:S})}if(M[0]instanceof Array&&M.length>1)throw Error("Parse Error: multiple actions possible at state: "+I+", token: "+v);switch(M[0]){case 1:n.push(v),s.push(d.yytext),r.push(d.yylloc),n.push(M[1]),v=null,b?(v=b,b=null):(c=d.yyleng,o=d.yytext,h=d.yylineno,x=d.yylloc,u>0&&u--);break;case 2:if(w=this.productions_[M[1]][1],T.$=s[s.length-w],T._$={first_line:r[r.length-(w||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(w||1)].first_column,last_column:r[r.length-1].last_column},p&&(T._$.range=[r[r.length-(w||1)].range[0],r[r.length-1].range[1]]),void 0!==(k=this.performAction.apply(T,[o,c,h,y.yy,M[1],s,r].concat(f))))return k;w&&(n=n.slice(0,-1*w*2),s=s.slice(0,-1*w),r=r.slice(0,-1*w)),n.push(this.productions_[M[1]][0]),s.push(T.$),r.push(T._$),E=l[n[n.length-2]][n[n.length-1]],n.push(E);break;case 3:return!0}}return!0},"parse")},p={EOF:1,parseError:(0,a.eW)(function(t,e){if(this.yy.parser)this.yy.parser.parseError(t,e);else throw Error(t)},"parseError"),setInput:(0,a.eW)(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,a.eW)(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:(0,a.eW)(function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var s=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[s[0],s[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,a.eW)(function(){return this._more=!0,this},"more"),reject:(0,a.eW)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,a.eW)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,a.eW)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,a.eW)(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,a.eW)(function(){var t=this.pastInput(),e=Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,a.eW)(function(t,e){var n,i,s;if(this.options.backtrack_lexer&&(s={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(s.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack)for(var r in s)this[r]=s[r];return!1},"test_match"),next:(0,a.eW)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,e,n,i,s=this._currentRules(),r=0;r<s.length;r++)if((n=this._input.match(this.rules[s[r]]))&&(!e||n[0].length>e[0].length)){if(e=n,i=r,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,s[r])))return t;if(!this._backtrack)return!1;e=!1;continue}if(!this.options.flex)break}
1return e?!1!==(t=this.test_match(e,s[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,a.eW)(function(){return this.next()||this.lex()},"lex"),begin:(0,a.eW)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,a.eW)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,a.eW)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,a.eW)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,a.eW)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,a.eW)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,a.eW)(function(t,e,n,i){switch(n){case 0:case 1:case 2:case 4:case 7:case 8:break;case 3:if(t.getIndentMode&&t.getIndentMode())return t.consumeIndentText=!0,this.begin("INITIAL"),22;break;case 5:t.setIndentMode&&t.setIndentMode(!1),this.begin("INITIAL"),this.unput(e.yytext);break;case 6:return this.begin("bol"),8;case 9:return 7;case 10:return 11;case 11:return 5;case 12:return 12;case 13:return 17;case 14:if(!t.consumeIndentText)return 19;t.consumeIndentText=!1;break;case 15:return 24;case 16:return e.yytext=e.yytext.slice(2,-2),14;case 17:return e.yytext=e.yytext.slice(1,-1).trim(),14;case 18:return 16;case 19:return 31;case 20:return 33;case 21:return 32;case 22:return 20;case 23:return 21;case 24:return 27;case 25:return 15}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[ \t]+(?=[\n\r]))/i,/^(?:[ \t]+(?=text\b))/i,/^(?:[ \t]+)/i,/^(?:[^ \t\n\r])/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[ \t]+)/i,/^(?:$)/i,/^(?:title\s[^#\n;]+)/i,/^(?:venn-beta\b)/i,/^(?:set\b)/i,/^(?:union\b)/i,/^(?:text\b)/i,/^(?:style\b)/i,/^(?:\["[^\"]*"\])/i,/^(?:\[[^\]\"]+\])/i,/^(?:[+-]?(\d+(\.\d+)?|\.\d+))/i,/^(?:#[0-9a-fA-F]{3,8})/i,/^(?:rgba\(\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*\))/i,/^(?:rgb\(\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*\))/i,/^(?:[A-Za-z_][A-Za-z0-9\-_]*)/i,/^(?:"[^\"]*")/i,/^(?:,)/i,/^(?::)/i],conditions:{bol:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],inclusive:!0},INITIAL:{rules:[0,1,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],inclusive:!0}}};function m(){this.yy={}}return x.lexer=p,(0,a.eW)(m,"Parser"),m.prototype=x,x.Parser=m,new m}();$.parser=$;var B=[],G=[],Z=[],Y=new Set,V=!1,X=(0,a.eW)((t,e,n)=>{let s=tn(t).sort(),r=null!=n?n:10/Math.pow(t.length,2);i=s,1===s.length&&Y.add(s[0]),B.push({sets:s,size:r,label:e?H(e):void 0})},"addSubsetData"),K=(0,a.eW)(()=>B,"getSubsetData"),H=(0,a.eW)(t=>{let e=t.trim();return e.length>=2&&e.startsWith('"')&&e.endsWith('"')?e.slice(1,-1):e},"normalizeText"),J=(0,a.eW)(t=>t?H(t):t,"normalizeStyleValue"),Q=(0,a.eW)((t,e,n)=>{let i=H(e);G.push({sets:tn(t).sort(),id:i,label:n?H(n):void 0})},"addTextData"),tt=(0,a.eW)((t,e)=>{let n=tn(t).sort(),i={};for(let[t,n]of e){var s;i[t]=null!==(s=J(n))&&void 0!==s?s:n}Z.push({targets:n,styles:i})},"addStyleData"),te=(0,a.eW)(()=>Z,"getStyleData"),tn=(0,a.eW)(t=>t.map(t=>H(t)),"normalizeIdentifierList"),ti=(0,a.eW)(t=>{let e=tn(t).filter(t=>!Y.has(t));if(e.length>0)throw Error("unknown set identifier: ".concat(e.join(", ")))},"validateUnionIdentifiers"),ts=(0,a.eW)(()=>G,"getTextData"),tr=(0,a.eW)(()=>i,"getCurrentSets"),tl=(0,a.eW)(()=>V,"getIndentMode"),ta=(0,a.eW)(t=>{V=t},"setIndentMode"),to=l.vZ.venn;function th(){return(0,r.Rb)(to,(0,l.iE)().venn)}(0,a.eW)(th,"getConfig");var tc={getConfig:th,clear:(0,a.eW)(()=>{(0,l.ZH)(),B.length=0,G.length=0,Z.length=0,Y.clear(),i=void 0,V=!1},"customClear"),setAccTitle:l.GN,getAccTitle:l.eu,setDiagramTitle:l.g2,getDiagramTitle:l.Kr,getAccDescription:l.Mx,setAccDescription:l.U$,addSubsetData:X,getSubsetData:K,addTextData:Q,addStyleData:tt,validateUnionIdentifiers:ti,getTextData:ts,getStyleData:te,getCurrentSets:tr,getIndentMode:tl,setIndentMode:ta},tu=(0,a.eW)(t=>"\n  .venn-title {\n    font-size: 32px;\n    fill: ".concat(t.vennTitleTextColor,";\n    font-family: ").concat(t.fontFamily,";\n  }\n\n  .venn-circle text {\n    font-size: 48px;\n    font-family: ").concat(t.fontFamily,";\n  }\n\n  .venn-intersection text {\n    font-size: 48px;\n    fill: ").concat(t.vennSetTextColor,";\n    font-family: ").concat(t.fontFamily,";\n  }\n\n  .venn-text-node {\n    font-family: ").concat(t.fontFamily,";\n    color: ").concat(t.vennSetTextColor,";\n  }\n"),"getStyles");function tf(t){let e=new Map;for(let n of t){let t=n.targets.join("|"),i=e.get(t);i?Object.assign(i,n.styles):e.set(t,{...n.styles})}return e}(0,a.eW)(tf,"buildStyleByKey");var td=(0,a.eW)((t,e,n,i)=>{var r,a,c,y,g,x,p,m;let v=i.db,b=null===(r=v.getConfig)||void 0===r?void 0:r.call(v),{themeVariables:I,look:M,handDrawnSeed:k}=(0,l.iE)(),_="handDrawn"===M,w=[I.venn1,I.venn2,I.venn3,I.venn4,I.venn5,I.venn6,I.venn7,I.venn8].filter(
1Boolean),E=null===(a=v.getDiagramTitle)||void 0===a?void 0:a.call(v),T=v.getSubsetData(),z=v.getTextData(),N=tf(v.getStyleData()),C=null!==(c=null==b?void 0:b.width)&&void 0!==c?c:800,F=null!==(y=null==b?void 0:b.height)&&void 0!==y?y:450,P=C/1600,$=E?48*P:0,B=null!==(g=I.primaryTextColor)&&void 0!==g?g:I.textColor,G=(0,s.P)(e);G.attr("viewBox","0 0 ".concat(C," ").concat(F)),E&&G.append("text").text(E).attr("class","venn-title").attr("font-size","".concat(32*P,"px")).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("x","50%").attr("y",32*P).style("fill",I.vennTitleTextColor||I.titleColor);let Z=(0,o.Ys)(document.createElement("div")),Y=(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=!1,n=600,i=350,s=15,r=1e3,l=Math.PI/2,a=!0,o=null,h=!0,c=!0,u=null,f=null,d=!1,y=null,g=!!t&&!!t.symmetricalTextCentre&&t.symmetricalTextCentre,x={},p=t&&t.colourScheme?t.colourScheme:t&&t.colorScheme?t.colorScheme:["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],m=0,v=function(t){if(t in x)return x[t];var e=x[t]=p[m];return(m+=1)>=p.length&&(m=0),e},b=S,I=A;function M(x){let p=x.datum(),m=new Set;p.forEach(t=>{0==t.size&&1==t.sets.length&&m.add(t.sets[0])});let M={},k={};if((p=p.filter(t=>!t.sets.some(t=>m.has(t)))).length>0){let t=b(p,{lossFunction:I,distinct:d});a&&(t=R(t,l,f)),k=j(M=O(t,n,i,s,o),p,g)}let _={};function w(t){return t.sets in _?_[t.sets]:1==t.sets.length?""+t.sets[0]:void 0}p.forEach(t=>{t.label&&(_[t.sets]=t.label)}),x.selectAll("svg").data([M]).enter().append("svg");let E=x.select("svg");e?E.attr("viewBox","0 0 ".concat(n," ").concat(i)):E.attr("width",n).attr("height",i);let S={},T=!1;function z(t){return e=>{var s,r;return s=t.sets.map(t=>{let s=S[t],r=M[t];return s||(s={x:n/2,y:i/2,radius:1}),r||(r={x:n/2,y:i/2,radius:1}),{x:s.x*(1-e)+r.x*e,y:s.y*(1-e)+r.y*e,radius:s.radius*(1-e)+r.radius*e}}),r=y,q(L(s),r)}}E.selectAll(".venn-area path").each(function(t){let e=this.getAttribute("d");1==t.sets.length&&e&&!d&&(T=!0,S[t.sets[0]]=function(t){let e=t.split(" ");return{x:Number.parseFloat(e[1]),y:Number.parseFloat(e[2]),radius:-Number.parseFloat(e[4])}}(e))});let A=E.selectAll(".venn-area").data(p,t=>t.sets),W=A.enter().append("g").attr("class",t=>"venn-area venn-".concat(1==t.sets.length?"circle":"intersection").concat(t.colour||t.color?" venn-coloured":"")).attr("data-venn-sets",t=>
1t.sets.join("_")),N=W.append("path"),C=W.append("text").attr("class","label").text(t=>w(t)).attr("text-anchor","middle").attr("dy",".35em").attr("x",n/2).attr("y",i/2);function F(t){return"function"==typeof t.transition?t.transition("venn").duration(r):t}c&&(N.style("fill-opacity","0").filter(t=>1==t.sets.length).style("fill",t=>t.colour?t.colour:t.color?t.color:v(t.sets)).style("fill-opacity",".25"),C.style("fill",e=>e.colour||e.color?"#FFF":t.textFill?t.textFill:1==e.sets.length?v(e.sets):"#444"));let P=x;T&&"function"==typeof P.transition?(P=F(x)).selectAll("path").attrTween("d",z):P.selectAll("path").attr("d",t=>q(L(t.sets.map(t=>M[t])),void 0),y);let U=P.selectAll("text").filter(t=>t.sets in k).text(t=>w(t)).attr("x",t=>Math.floor(k[t.sets].x)).attr("y",t=>Math.floor(k[t.sets].y));h&&(T?"on"in U?U.on("end",D(M,w)):U.each("end",D(M,w)):U.each(D(M,w)));let $=F(A.exit()).remove();"function"==typeof A.transition&&$.selectAll("path").attrTween("d",z);let B=$.selectAll("text").attr("x",n/2).attr("y",i/2);return null!==u&&(C.style("font-size","0px"),U.style("font-size",u),B.style("font-size","0px")),{circles:M,textCentres:k,nodes:A,enter:W,update:P,exit:$}}return M.wrap=function(t){return arguments.length?(h=t,M):h},M.useViewBox=function(){return e=!0,M},M.width=function(t){return arguments.length?(n=t,M):n},M.height=function(t){return arguments.length?(i=t,M):i},M.padding=function(t){return arguments.length?(s=t,M):s},M.distinct=function(t){return arguments.length?(d=t,M):d},M.colours=function(t){return arguments.length?(v=t,M):v},M.colors=function(t){return arguments.length?(v=t,M):v},M.fontSize=function(t){return arguments.length?(u=t,M):u},M.round=function(t){return arguments.length?(y=t,M):y},M.duration=function(t){return arguments.length?(r=t,M):r},M.layoutFunction=function(t){return arguments.length?(b=t,M):b},M.normalize=function(t){return arguments.length?(a=t,M):a},M.scaleToFit=function(t){return arguments.length?(o=t,M):o},M.styled=function(t){return arguments.length?(c=t,M):c},M.orientation=function(t){return arguments.length?(l=t,M):l},M.orientationOrder=function(t){return arguments.length?(f=t,M):f},M.lossFunction=function(t){return arguments.length?(I="default"===t?A:"logRatio"===t?W:t,M):I},M})().width(C).height(F-$);Z.datum(T).call(Y);let V=_?U.Z.svg(Z.select("svg").node()):void 0,X=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{lossFunction:n,layoutFunction:i=S,normalize:s=!0,orientation:r=Math.PI/2,orientationOrder:l,width:a=600,height:o=350,padding:h=15,scaleToFit:c=!1,symmetricalTextCentre:u=!1,distinct:f,round:d=2}=e,y=i(t,{lossFunction:"default"!==n&&n?"logRatio"===n?W:n:A,distinct:f});s&&(y=R(y,r,l));let g=O(y,a,o,h,c),x=j(g,t,u),p=new Map(Object.keys(g).map(t=>[t,{set:t,x:g[t].x,y:g[t].y,radius:g[t].radius}])),m=t.map(t=>{let e=t.sets.map(t=>p.get(t)),n=L(e),i=q(n,d);return{circles:e,arcs:n,path:i,area:t,has:new Set(t.sets)}});return m.map(t=>{let{circles:e,arcs:n,path:i,area:s}=t;return{data:s,text:x[s.sets],circles:e,arcs:n,path:i,distinctPath:i+function(t){let e="";for(let n of m)n.has.size>t.length&&t.every(t=>n.has.has(t))&&(e+=" "+n.path);return e}(s.sets)}})}(T,{width:C,height:F-$,padding:null!==(x=null==b?void 0:b.padding)&&void 0!==x?x:15}),K=new Map;for(let t of X){let e=ty([...t.data.sets].sort());K.set(e,t)}z.length>0&&tg(b,K,Z,z,P,N);let H=(0,h.Z)(I.background||"#f4f4f4");Z.selectAll(".venn-circle").each(function(t,e){var n,i;let s=(0,o.Ys)(this),r=ty([...t.sets].sort()),l=N.get(r),a=(null==l?void 0:l.fill)||w[e%w.length]||I.primaryColor;s.classed("venn-set-".concat(e%8),!0);let h=null!==(n=null==l?void 0:l["fill-opacity"])&&void 0!==n?n:.1,c=(null==l?void 0:l.stroke)||a,y=(null==l?void 0:l["stroke-width"])||"".concat(5*P);if(_&&V){let t=K.get(r);if(t&&t.circles.length>0){let n=t.circles[0],r=V.circle(n.x,n.y,2*n.radius,{roughness:.7,seed:k,fill:u(a,.7),fillStyle:"hachure",fillWeight:2,hachureGap:8,hachureAngle:-41+60*e,stroke:c,strokeWidth:parseFloat(String(y))});s.select("path").remove(),null===(i=s.node())||void 0===i||i.insertBefore(r,s.select("text").node())}}else s.select("path").style("fill",a).style("fill-opacity",h).style("stroke",c).style("stroke-width",y).style("stroke-opacity",.95);let g=(null==l?void 0:l.color)||(H?(0,f.Z)(a,30):(0,d.Z)(a,30));s.select("text").style("font-size","".concat(48*P,"px")).style("fill",g)}),_&&V?Z.selectAll(".venn-intersection").each(function(t){var e,n,i;let s=(0,o.Ys)(this),r=ty([...t.sets].sort()),l=N.get(r),a=null==l?void 0:l.fill;if(a){let t=s.select("path"),n=t.attr("d");if(n){let i=V.path(n,{roughness:.7,seed:k,fill:u(a,.3),fillStyle:"cross-hatch",fillWeight:2,hachureGap:6,hachureAngle:60,stroke:"none"}),s=t.node();null==s||null===(e=s.parentNode)||void 0===e||e.insertBefore(i,s),t.remove()}}else s.select("path").style("fill-opacity",0);s.select("text").style("font-size","".concat(48*P,"px")).style("fill",null!==(i=null!==(n=null==l?void 0:l.color)&&void 0!==n?n:I.vennSetTextColor)&&void 0!==i?i:B)}):(Z.selectAll(".venn-intersection text").style("font-size","".concat(48*P,"px")).style("fill",t=>{var e,n,i;let s=ty([...t.sets].sort());return null!==(i=null!==(n=null===(e=N.get(s))||void 0===e?void 0:e.color)&&void 0!==n?n:I.vennSetTextColor)&&void 0!==i?i:B}),Z.selectAll(".venn-intersection path").style("fill-opacity",t=>{var e;let n=ty([...t.sets].sort());return(null===(e=N.get(n))||void 0===e?void 0:e.fill)?1:0}).style("fill",t=>{var e,n;let i=ty([...t.sets].sort());return null!==(n=null===(e=N.get(i))||void 0===e?void 0:e.fill)&&void 0!==n?n:"transparent"}));let J=G.append("g").attr("transform","translate(0, ".concat($,")")),Q=Z.select("svg").node();if(Q&&"childNodes"in Q)for(let t of[...Q.childNodes])null===(p=J.node())||void 0===p||p.appendChild(t);(0,l.v2)(G,F,C,null===(m=null==b?void 0:b.useMaxWidth)||void 0===m||m)},"draw");function ty(t){return t.join("|")}function tg(t,e,n,i,s,r){var l,a,o;
1let h=null!==(l=null==t?void 0:t.useDebugLayout)&&void 0!==l&&l,c=n.select("svg").append("g").attr("class","venn-text-nodes"),u=new Map;for(let t of i){let e=ty(t.sets),n=u.get(e);n?n.push(t):u.set(e,[t])}for(let[t,n]of u.entries()){let i=e.get(t);if(!(null==i?void 0:i.text))continue;let l=i.text.x,u=i.text.y,f=Math.min(...i.circles.map(t=>t.radius)),d=Math.min(...i.circles.map(t=>t.radius-Math.hypot(l-t.x,u-t.y))),y=Number.isFinite(d)?Math.max(0,d):0;0===y&&Number.isFinite(f)&&(y=.6*f);let g=c.append("g").attr("class","venn-text-area").attr("font-size","".concat(40*s,"px"));h&&g.append("circle").attr("class","venn-text-debug-circle").attr("cx",l).attr("cy",u).attr("r",y).attr("fill","none").attr("stroke","purple").attr("stroke-width",1.5*s).attr("stroke-dasharray","".concat(6*s," ").concat(4*s));let x=Math.max(80*s,1.9*y),p=Math.max(60*s,1.9*y),m=(i.data.label&&i.data.label.length>0?Math.min(32*s,.25*y):0)+(n.length<=2?30*s:0),v=l-x/2,b=u-p/2+m,I=Math.max(1,Math.ceil(Math.sqrt(n.length))),M=Math.max(1,Math.ceil(n.length/I)),k=x/I,_=p/M;for(let[t,e]of n.entries()){let n=t%I,i=Math.floor(t/I),l=v+k*(n+.5),c=b+_*(i+.5);h&&g.append("rect").attr("class","venn-text-debug-cell").attr("x",v+k*n).attr("y",b+_*i).attr("width",k).attr("height",_).attr("fill","none").attr("stroke","teal").attr("stroke-width",1*s).attr("stroke-dasharray","".concat(4*s," ").concat(3*s));let u=.9*k,f=.9*_,d=g.append("foreignObject").attr("class","venn-text-node-fo").attr("width",u).attr("height",f).attr("x",l-u/2).attr("y",c-f/2).attr("overflow","visible"),y=null===(a=r.get(e.id))||void 0===a?void 0:a.color,x=d.append("xhtml:span").attr("class","venn-text-node").style("display","flex").style("width","100%").style("height","100%").style("white-space","normal").style("align-items","center").style("justify-content","center").style("text-align","center").style("overflow-wrap","normal").style("word-break","normal").text(null!==(o=e.label)&&void 0!==o?o:e.id);y&&x.style("color",y)}}}(0,a.eW)(ty,"stableSetsKey"),(0,a.eW)(tg,"renderTextNodes");var tx={parser:$,db:tc,renderer:{draw:td},styles:tu}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.