1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,943505,e=>{"use strict";var t=e.i(271645),a=e.i(575108);let n=new Map([["bold",t.createElement(t.Fragment,null,t.createElement("path",{d:"M234.49,111.07,90.41,22.94A20,20,0,0,0,60,39.87V216.13a20,20,0,0,0,30.41,16.93l144.08-88.13a19.82,19.82,0,0,0,0-33.86ZM84,208.85V47.15L216.16,128Z"}))],["duotone",t.createElement(t.Fragment,null,t.createElement("path",{d:"M228.23,134.69,84.15,222.81A8,8,0,0,1,72,216.12V39.88a8,8,0,0,1,12.15-6.69l144.08,88.12A7.82,7.82,0,0,1,228.23,134.69Z",opacity:"0.2"}),t.createElement("path",{d:"M232.4,114.49,88.32,26.35a16,16,0,0,0-16.2-.3A15.86,15.86,0,0,0,64,39.87V216.13A15.94,15.94,0,0,0,80,232a16.07,16.07,0,0,0,8.36-2.35L232.4,141.51a15.81,15.81,0,0,0,0-27ZM80,215.94V40l143.83,88Z"}))],["fill",t.createElement(t.Fragment,null,t.createElement("path",{d:"M240,128a15.74,15.74,0,0,1-7.6,13.51L88.32,229.65a16,16,0,0,1-16.2.3A15.86,15.86,0,0,1,64,216.13V39.87a15.86,15.86,0,0,1,8.12-13.82,16,16,0,0,1,16.2.3L232.4,114.49A15.74,15.74,0,0,1,240,128Z"}))],["light",t.createElement(t.Fragment,null,t.createElement("path",{d:"M231.36,116.19,87.28,28.06a14,14,0,0,0-14.18-.27A13.69,13.69,0,0,0,66,39.87V216.13a13.69,13.69,0,0,0,7.1,12.08,14,14,0,0,0,14.18-.27l144.08-88.13a13.82,13.82,0,0,0,0-23.62Zm-6.26,13.38L81,217.7a2,2,0,0,1-2.06,0,1.78,1.78,0,0,1-1-1.61V39.87a1.78,1.78,0,0,1,1-1.61A2.06,2.06,0,0,1,80,38a2,2,0,0,1,1,.31L225.1,126.43a1.82,1.82,0,0,1,0,3.14Z"}))],["regular",t.createElement(t.Fragment,null,t.createElement("path",{d:"M232.4,114.49,88.32,26.35a16,16,0,0,0-16.2-.3A15.86,15.86,0,0,0,64,39.87V216.13A15.94,15.94,0,0,0,80,232a16.07,16.07,0,0,0,8.36-2.35L232.4,141.51a15.81,15.81,0,0,0,0-27ZM80,215.94V40l143.83,88Z"}))],["thin",t.createElement(t.Fragment,null,t.createElement("path",{d:"M230.32,117.9,86.24,29.79a11.91,11.91,0,0,0-12.17-.23A11.71,11.71,0,0,0,68,39.89V216.11a11.71,11.71,0,0,0,6.07,10.33,11.91,11.91,0,0,0,12.17-.23L230.32,138.1a11.82,11.82,0,0,0,0-20.2Zm-4.18,13.37L82.06,219.39a4,4,0,0,1-4.07.07,3.77,3.77,0,0,1-2-3.35V39.89a3.77,3.77,0,0,1,2-3.35,4,4,0,0,1,4.07.07l144.08,88.12a3.8,3.8,0,0,1,0,6.54Z"}))]]),r=t.forwardRef((e,r)=>t.createElement(a.default,{ref:r,...e,weights:n}));r.displayName="PlayIcon",e.s(["Play",0,r],943505)},126747,529415,e=>{"use strict";let t=/(\$\$[\s\S]+?\$\$|\\\[[\s\S]+?\\\]|\\\([\s\S]+?\\\)|(?<!\\)\$(?:[^$\n\\]|\\[\s\S])+?(?<!\\)\$)/g,a=/\[\[fig:([A-Za-z0-9_\-.]+)\]\]|\[\[term:([A-Za-z0-9_\-.]+)(?:\|([^\]]+))?\]\]/g;function n(e){let t=[],n=0;for(let l of e.matchAll(a)){let a=l.index??0;a>n&&t.push(...r(e.slice(n,a))),void 0!==l[1]?t.push({type:"fig",slug:l[1]}):t.push({type:"term",slug:l[2],text:l[3]??""}),n=a+l[0].length}return n<e.length&&t.push(...r(e.slice(n))),t}function r(e){if(0===e.length)return[];let a=[],n=0;for(let r of e.matchAll(t)){let t=r.index??0;t>n&&a.push({type:"text",value:e.slice(n,t)});let l=r[0];l.startsWith("$$")||l.startsWith("\\[")?a.push({type:"display",value:l.slice(2,-2).trim()}):l.startsWith("\\(")?a.push({type:"inline",value:l.slice(2,-2).trim()}):a.push({type:"inline",value:l.slice(1,-1).trim()}),n=t+l.length}return n<e.length&&a.push({type:"text",value:e.slice(n)}),a}e.s(["figureSlugsIn",0,function(e){return n(e).filter(e=>"fig"===e.type).map(e=>e.slug)},"parseSegments",0,n,"stripFigureTokens",0,function(e){return e.includes("[[fig:")?e.replace(/\[\[fig:([A-Za-z0-9_\-.]+)\]\]/g,"").replace(/[ \t]{2,}/g," ").replace(/\n{3,}/g,"\n\n").trim():e},"stripPunctuationAfterBlockFigures",0,function(e,t){let a=!1,n=e.map((n,r)=>{if("text"!==n.type)return n;let l=e[r-1];if(l?.type!=="fig"||!t(l))return n;let i=n.value.replace(/^([.,;:!?])(?=\s|$)/,"");return i===n.value?n:(a=!0,{...n,value:i})});return a?n:e}],529415);let l={alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",varepsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",vartheta:"Ï",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",pi:"Ï",rho:"Ï",sigma:"Ï",tau:"Ï",upsilon:"Ï
",phi:"Ï",varphi:"Ï",chi:"Ï",psi:"Ï",omega:"Ï",Gamma:"Î",Delta:"Î",Theta:"Î",Lambda:"Î",Xi:"Î",Pi:"Î ",Sigma:"Σ",Upsilon:"Î¥",Phi:"Φ",Psi:"Ψ",Omega:"Ω"},i={times:"Ã",div:"÷",cdot:"·",pm:"±",mp:"â",leq:"â¤",le:"â¤",geq:"â¥",ge:"â¥",neq:"â ",ne:"â ",approx:"â",equiv:"â¡",sim:"â¼",propto:"â",infty:"â",partial:"â",nabla:"â",sum:"â",prod:"â",int:"â«",iint:"â¬",oint:"â®",rightarrow:"â",to:"â",leftarrow:"â",leftrightarrow:"â",Rightarrow:"â",Leftarrow:"â",Leftrightarrow:"â",in:"â",notin:"â",subset:"â",subseteq:"â",cup:"âª",cap:"â©",emptyset:"â
",forall:"â",exists:"â",therefore:"â´",ldots:"â¦",dots:"â¦",cdots:"â¯",circ:"â",degree:"°",ang:"â ",angle:"â ",langle:"â¨",rangle:"â©",triangle:"â³",square:"â¡",perp:"â¥",parallel:"â¥"},s={hat:"Ì",widehat:"Ì",bar:"Ì",overline:"Ì",vec:"â",dot:"Ì",ddot:"Ì",tilde:"Ì"},o={0:"â°",1:"¹",2:"²",3:"³",4:"â´",5:"âµ",6:"â¶",7:"â·",8:"â¸",9:"â¹","+":"âº","-":"â»","=":"â¼","(":"â½",")":"â¾",n:"â¿",i:"â±"},c={0:"â",1:"â",2:"â",3:"â",4:"â",5:"â
",6:"â",7:"â",8:"â",9:"â","+":"â","-":"â","=":"â","(":"â",")":"â",a:"â",e:"â",i:"áµ¢",j:"â±¼",n:"â",o:"â",p:"â",r:"áµ£",s:"â",t:"â",u:"ᵤ",v:"áµ¥",x:"â"};function d(e,t){let a="";for(let n of e){let e=t[n]??t[n.toLowerCase()];if(!e)return null;a+=e}return a}function u(e,t,a,n){let r;t.lastIndex=0;let l="",i=0;for(;null!==(r=t.exec(e));){let s=function(e,t,a){let n=[],r=t;for(let t=0;t<a;t++){for(;/\s/.test(e[r]??"");)r++;if("{"!==e[r])return null;let t=++r,a=1;for(;r<e.length&&a>0;)"{"===e[r]&&"\\"!==e[r-1]&&a++,"}"===e[r]&&"\\"!==e[r-1]&&a--,r++;if(0!==a)return null;n.push(e.slice(t,r-1))}return{bodies:n,end:r}}(e,t.lastIndex,a);s&&(l+=e.slice(i,r.index)+n(s.bodies,r),i=s.end,t.lastIndex=s.end)}return l+e.slice(i)}function h(e){let t=e;for(let e=0;e<8;
1e++){let e=u(t,/\\[dt]?frac\s*/g,2,([e,t])=>`(${e})/(${t})`);if((e=(e=e.replace(/\\[dt]?frac\s*([^\s{\\])\s*\{([^{}]*)\}/g,"($1)/($2)")).replace(/\\[dt]?frac\s*([^\s{\\])\s*([^\s{\\])/g,"($1)/($2)"))===t)break;t=e}for(let e=0;e<8;e++){let e=u(t,/\\sqrt\s*(?:\[\s*([34])\s*\])?\s*/g,1,([e],t)=>{let a="3"===t[1]?"â":"4"===t[1]?"â":"â";return`${a}(${e})`});if(e===t)break;t=e}return(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=t.replace(/\\sqrt\s*(?:\[\s*([34])\s*\])?\s*([^\s{\\])/g,(e,t,a)=>`${"3"===t?"â":"4"===t?"â":"â"}(${a})`)).replace(/\\([a-zA-Z]+)\s*\{([^{}])\}/g,(e,t,a)=>s[t]?a+s[t]:e)).replace(/\\([a-zA-Z]+)\s+([^\s{}])/g,(e,t,a,n,r)=>{if(!s[t])return e;let l=n>0&&/[\w)]/.test(r[n-1])?" ":"";return`${l}${a}${s[t]}`})).replace(/\\(?:text|textrm|textbf|textit|operatorname|mathrm|mathbf|mathit|mathbb|boldsymbol)\s*\{([^{}]*)\}/g,"$1")).replace(/\\(?:textrm|textbf|textit|mathrm|mathbf|mathit|mathbb|boldsymbol)\s+([^\s{}])/g,"$1")).replace(/\\[hv]?phantom\s*\{[^{}]*\}/g,"")).replace(/\\(?:left|right|displaystyle|textstyle|scriptstyle|limits|quad|qquad|thinspace)\b/g,"")).replace(/\\[,;:]/g," ").replace(/\\!/g,"")).replace(/\^\s*\{?\\circ\}?/g,"°")).replace(/\^\{([^{}]*)\}/g,(e,t)=>d(t,o)??`^(${t})`)).replace(/_\{([^{}]*)\}/g,(e,t)=>d(t,c)??`_(${t})`)).replace(/\^(\w)/g,(e,t)=>o[t]??e)).replace(/_(\w)/g,(e,t)=>c[t]??c[t.toLowerCase()]??e)).replace(/\\([a-zA-Z]+)/g,(e,t)=>i[t]??l[t]??t)).replace(/\\([$%&#_{}])/g,"$1")).replace(/[{}]/g,"")).replace(/\s+/g," ").trim()}e.s(["latexToUnicode",0,h,"plainMath",0,function(e){if(!e)return"";
1if(!/[$\\[*]/.test(e))return e;let t=[];for(let a of n(e))switch(a.type){case"text":t.push(a.value.replace(/\*\*([^*\n]+?)\*\*/g,"$1").replace(/\*([^*\n]+?)\*/g,"$1"));break;case"inline":case"display":t.push(h(a.value));break;case"term":t.push(a.text||a.slug)}return t.join("").replace(/[ \t]+/g," ").trim()}],126747)},248114,e=>{"use strict";let t={pad:13,headerH:22,gap:12,chipH:22,chipPadX:9,chipGap:7,chipFont:14,setFont:14,countFont:19,regionLabelFont:11,boxMinW:96},a="none";function n(e,t){return Math.max(1,String(e??"").replace(/\\[a-zA-Z]+/g,"x").replace(/[{}\\_^\s]/g,"").length)*t*.62}function r(e,t){return Math.max(1,String(e??"").length)*t*.56}let l={width:400,height:310,universe:{x:10,y:10,w:380,h:290},r:86,centers:[{x:170,y:166},{x:250,y:166}],labels:[{x:122,y:40,halfW:104},{x:298,y:40,halfW:104}],universeLabel:{x:24,y:282,halfW:118},anchors:{0:{x:122,y:166,halfW:32,halfH:26},"0&1":{x:210,y:166,halfW:30,halfH:30},1:{x:298,y:166,halfW:32,halfH:26},none:{x:326,y:277,halfW:56,halfH:20}}},i={width:400,height:400,universe:{x:10,y:10,w:380,h:380},r:82,centers:[{x:200,y:144},{x:155,y:222},{x:245,y:222}],labels:[{x:200,y:44,halfW:100},{x:105,y:328,halfW:92},{x:295,y:328,halfW:92}],universeLabel:{x:24,y:368,halfW:168},anchors:{0:{x:200,y:98,halfW:42,halfH:20},1:{x:120,y:242,halfW:30,halfH:22},2:{x:280,y:242,halfW:30,halfH:22},"0&1":{x:152,y:168,halfW:20,halfH:16},"0&2":{x:248,y:168,halfW:20,halfH:16},"1&2":{x:200,y:252,halfW:20,halfH:16},"0&1&2":{x:200,y:196,halfW:24,halfH:18},none:{x:348,y:42,halfW:36,halfH:22}}};function s(e,a,l,i){let s=l.map(e=>({tex:e.tex,label:e.label??e.tex,x:0,y:0,w:Math.round(n(e.tex,t.chipFont)+2*t.chipPadX),h:t.chipH})),o=[],c=[],d=0;for(let e of s){let a=0===c.length?e.w:e.w+t.chipGap;c.length>0&&d+a>i?(o.push(c),c=[e],d=e.w):(c.push(e),d+=a)}c.length>0&&o.push(c);let u=void 0===e?0:t.countFont+2,h=a?t.regionLabelFont+4:0,p=[u,h,o.length*t.chipH+4*Math.max(0,o.length-1)].filter(e=>e>0),f=p.reduce((e,t)=>e+t,0)+4*Math.max(0,p.length-1);return{w:Math.max(o.reduce((e,a)=>Math.max(e,a.reduce((e,t)=>e+t.w,0)+(a.length-1)*t.chipGap),0),void 0===e?0:r(String(e),t.countFont),a?r(a,t.regionLabelFont):0),h:f,rows:o,countH:u,labelH:h}}function o(e,a,n,r,l){let i=new Set(a);for(let t of e.regions??[])i.has(t.id)||n.push(`region "${t.id}" is not a region of this picture, so it is not drawn`);for(let t of e.members??[])i.has(t.in)||n.push(`the value ${t.tex} is placed in "${t.in}", which is not a region of this picture`);let o=[];for(let i of a){let a=(e.regions??[]).find(e=>e.id===i),c=(e.members??[]).filter(e=>e.in===i);if(!a&&0===c.length)continue;let d=r(i),u=s(a?.count,a?.label,c,2*d.halfW),h=function(e,a,n,r,l,i,s,o){let c=i-r.h/2,d={id:e,label:a,authoredLabel:n?.label,count:n?.count,shaded:n?.shade===!0,chips:[],x:l,y:i,halfW:s,halfH:o};for(let e of(r.countH>0&&(d.countY=c+.82*t.countFont,c+=r.countH+4),r.labelH>0&&(d.labelY=c+.86*t.regionLabelFont,c+=r.labelH+4),r.rows)){let a=l-(e.reduce((e,t)=>e+t.w,0)+(e.length-1)*t.chipGap)/2;for(let n of e)d.chips.push({...n,x:a+n.w/2,y:c+t.chipH/2}),a+=n.w+t.chipGap;c+=t.chipH+4}return d}(i,l(i),a,u,d.cx,d.cy,d.halfW,d.halfH);(u.h>2*d.halfH+1||u.w>2*d.halfW+1)&&n.push(`region "${i}" holds more than fits inside it; move some of it into the stem or split the figure`),o.push(h)}return o}e.s(["VENN_METRICS",0,t,"layoutVenn",0,function(e){let c=[],d=Array.isArray(e.sets)?e.sets:[],u=new Set,h=[];for(let e of d)if(e&&"string"==typeof e.id&&0!==e.id.length){if(u.has(e.id)){c.push(`two sets are both called "${e.id}"; the second is dropped`);continue}u.add(e.id),h.push(e)}let p="nested"===e.layout?"nested":"overlap";return"overlap"===p?(h.length>3&&(c.push("an overlapping Venn is drawn for two or three sets; the ones past the third are not drawn"),h=h.slice(0,3)),h.length<2)?(c.push("an overlapping Venn needs two sets; nothing is drawn"),{mode:p,width:200,height:80,universe:null,circles:[],boxes:[],setLabels:[],regions:[],regionIds:[],regionSets:{},warnings:c}):function(e,s,c){let d=3===e.length?i:l,u=t=>t.map(t=>e[t].id).join("&"),h=e.map((e,t)=>({id:e.id,cx:d.centers[t].x,cy:d.centers[t].y,r:d.r,ink:t})),p=e.map((e,t)=>({id:e.id,tex:e.tex,label:e.label,x:d.labels[t].x,y:d.labels[t].y,halfW:d.labels[t].halfW,align:"middle",ink:t}));for(let e of(s.universe&&p.push({id:a,tex:s.universe.tex,label:s.universe.label,x:d.universeLabel.x,y:d.universeLabel.y,halfW:d.universeLabel.halfW,align:"start",ink:-1}),p))if((e.tex?n(e.tex,t.setFont):r(e.label,t.setFont))>2*e.halfW){let t=e.id===a?"the universe":`set "${e.id}"`;c.push(`the name of ${t} is wider than the band it is drawn in; shorten it or move it into the caption`)}let f={[a]:[]},m=[],x={};for(let t of function(e){let t=[];for(let a=1;a<1<<e;a+=1){let n=[];for(let t=0;t<e;t+=1)a&1<<t&&n.push(t);t.push(n)}return t.sort((e,t)=>
1e.length-t.length||e[0]-t[0])}(e.length)){let a=u(t);m.push(a),f[a]=t.map(t=>e[t].id),x[a]=t.join("&")}s.universe&&(m.push(a),x[a]=a);let g=o(s,m,c,e=>{let t=d.anchors[x[e]];return{cx:t.x,cy:t.y,halfW:t.halfW,halfH:t.halfH}},t=>(function(e,t){if(0===e.length)return"outside every set";let a=t.filter(t=>!e.includes(t.id)).map(e=>e.label),n=e.map(e=>t.find(t=>t.id===e)?.label??e).join(" and ");return 0===a.length?`in ${n}`:`in ${n} but not ${a.join(" or ")}`})(f[t],e));return{mode:"overlap",width:d.width,height:d.height,universe:s.universe?{...d.universe,label:s.universe.label,tex:s.universe.tex}:null,circles:h,boxes:[],setLabels:p,regions:g,regionIds:m,regionSets:f,warnings:c}}(h,e,c):function(e,l,i){let c=new Map(e.map(e=>[e.id,e])),d=new Map;for(let t of e){let e=t.within??null;null===e||c.has(e)||(i.push(`set "${t.id}" sits inside "${e}", which is not declared; drawn as a root instead`),e=null),e===t.id&&(i.push(`set "${t.id}" sits inside itself; drawn as a root instead`),e=null),d.set(t.id,e)}for(let t of e){let e=new Set([t.id]),a=d.get(t.id)??null;for(;null!==a;){if(e.has(a)){i.push(`sets "${t.id}" and "${a}" contain each other; "${t.id}" is drawn as a root`),d.set(t.id,null);break}e.add(a),a=d.get(a)??null}}let u=(a,i)=>{let o,c,h=e.filter(e=>d.get(e.id)===a.id).map(e=>u(e,i+1)),p=0===h.length?0:h.reduce((e,t)=>e+t.w,0)+(h.length-1)*t.gap,f=h.reduce((e,t)=>Math.max(e,t.h),0),m=(a.tex?n(a.tex,t.setFont):r(a.label,t.setFont))+6,x=(o=a.id,(l.regions??[]).find(e=>e.id===o)),g=s(x?.count,x?.label,(c=a.id,(l.members??[]).filter(e=>e.in===c)),Math.max(p,168)),b=Math.max(m,p,g.w,t.boxMinW),y=h.length>0?f+(g.h>0?t.gap:0):0,v=t.pad+t.headerH+y+g.h+t.pad;return{set:a,children:h,depth:i,w:Math.round(b+2*t.pad),h:Math.round(v),block:g,childRowW:p,childRowH:f,x:0,y:0}},h=e.filter(e=>null===d.get(e.id)).map(e=>u(e,0));if(0===h.length)return{mode:"nested",width:200,height:80,universe:null,circles:[],boxes:[],setLabels:[],regions:[],regionIds:[],regionSets:{},warnings:i};let p=[],f=[],m=[],x=(e,a,n)=>{e.x=a,e.y=n;let r=n+t.pad+t.headerH;if(e.children.length>0){let n=a+(e.w-e.childRowW)/2;for(let a of e.children)a.h=e.childRowH,x(a,n,r),n+=a.w+t.gap;r+=e.childRowH+(e.block.h>0?t.gap:0)}let l=Math.max(0,n+e.h-t.pad-r),i={x:a+t.pad,y:r,w:e.w-2*t.pad,h:l};p.push({id:e.set.id,x:a,y:n,w:e.w,h:e.h,depth:e.depth,free:i}),f.push({id:e.set.id,tex:e.set.tex,label:e.set.label,x:a+t.pad,y:n+t.pad+.68*t.headerH,halfW:(e.w-2*t.pad)/2,align:"start",ink:e.depth}),m.push({node:e,cx:a+e.w/2,cy:l>0?r+l/2:n+e.h-t.pad,halfW:(e.w-2*t.pad)/2,halfH:Math.max(l/2,1)})},g=null!=l.universe,b=g?t.pad:0,y=g?t.headerH:0,v=h.reduce((e,t)=>e+t.w,0)+(h.length-1)*t.gap,w=h.reduce((e,t)=>Math.max(e,t.h),0),M=g&&((l.regions??[]).some(e=>e&&e.id===a)||(l.members??[]).some(e=>e&&e.in===a))?t.chipH+t.gap:0,A=v+2*b+2*t.gap,k=w+2*b+y+M+2*t.gap,$=t.gap+b,S=t.gap+b+y;for(let e of h)x(e,$,S),$+=e.w+t.gap;let E=g?{x:t.gap/2,y:t.gap/2,w:A-t.gap,h:k-t.gap,label:l.universe.label,tex:l.universe.tex}:null;E&&f.unshift({id:a,tex:l.universe.tex,label:l.universe.label,x:E.x+t.pad,y:E.y+t.pad+.68*t.headerH,halfW:(E.w-2*t.pad)/2,align:"start",ink:-1});let L=e.filter(e=>c.has(e.id)).map(e=>e.id),j={};for(let t of e){let e=[],a=t.id;for(;null!==a;)e.push(a),a=d.get(a)??null;j[t.id]=e}E&&(L.push(a),j[a]=[]);let F=new Map(m.map(e=>[e.node.set.id,e])),N=o(l,L,i,e=>{let a=F.get(e);return a?{cx:a.cx,cy:a.cy,halfW:a.halfW,halfH:a.halfH}:{cx:A/2,cy:k-t.gap/2-b-t.chipH/2,halfW:(A-2*t.gap)/2,halfH:t.chipH/2}},t=>(function(e,t,n){if(e===a)return"outside every set";let r=e=>t.find(t=>t.id===e)?.label??e,l=t.filter(t=>n.get(t.id)===e).map(e=>r(e.id));return 0===l.length?`in ${r(e)}`:`in ${r(e)} but not in ${l.join(" or ")}`})(t,e,d));return{mode:"nested",width:Math.round(A),height:Math.round(k),universe:E,circles:[],boxes:p,setLabels:f,regions:N,regionIds:L,regionSets:j,warnings:i}}(h,e,c)},"vennSummary",0,function(e){if(0===e.circles.length&&0===e.boxes.length)return"an empty set diagram";let t=[];if("overlap"===e.mode){let a=e.circles.map(t=>{let a;return a=t.id,e.setLabels.find(e=>e.id===a)?.label??a});t.push(`${a.length}
1 overlapping sets${e.universe?` inside ${e.universe.label}`:""}: ${a.join(", ")}`)}else{let a=t=>e.setLabels.find(e=>e.id===t)?.label??t;for(let n of e.boxes){let r=e.boxes.filter(t=>(e.regionSets[t.id]??[])[1]===n.id);r.length>0&&t.push(`${a(n.id)} contains ${r.map(e=>a(e.id)).join(" and ")}`)}let n=e.boxes.filter(t=>1===(e.regionSets[t.id]??[]).length);n.length>1&&t.push(`${n.map(e=>a(e.id)).join(" and ")} do not overlap`),0===t.length&&t.push(e.boxes.map(e=>a(e.id)).join(", ")),e.universe&&t.unshift(`all of it inside ${e.universe.label}`)}for(let a of e.regions){let e=[];void 0!==a.count&&e.push(`${a.count}`),a.chips.length>0&&e.push(a.chips.map(e=>e.label).join(", ")),e.length>0&&t.push(`${a.label}: ${e.join("; ")}`),a.shaded&&t.push(`the region ${a.label} is shaded`)}return`set diagram: ${t.join("; ")}`}])},496790,e=>{"use strict";function t(e){let t=a(e);return t*t*(3-2*t)}function a(e){return e<0?0:e>1?1:e}function n(e){return Math.max(1,Math.floor(e.segments))}function r(e,t){let a=n(t);return Number.isFinite(e)?e<0?0:e>a?a:e:0}e.s(["advance",0,function(e,t,a){let r=n(a),l=a.msPerSegment??900,i=e+(l>0?t/l:1/0);return i<r?{t:i,playing:!0}:a.loop?{t:r>0?(i-r)%r:0,playing:!0}:{t:r,playing:!1}},"clamp01",0,a,"clampT",0,r,"frameAt",0,function(e,a,l=!1){let i=n(a),s=r(e,a),o=s>=i?i-1:Math.floor(s),c=s>=i?1:s-o,d=1e-9>Math.abs(s-Math.round(s));return{t:s,segment:o,local:c,eased:l?+(c>=.999999999):t(c),stop:d?Math.round(s):Math.floor(s),atStop:d}},"nextStop",0,function(e,t){return Math.min(n(t),Math.floor(e+1e-9)+1)},"playFrom",0,function(e,t){return e>=n(t)-1e-9?0:e},"prevStop",0,function(e,t){let a=r(e,t),n=Math.floor(a+1e-9);return Math.max(0,Math.abs(a-n)>1e-9?n:n-1)},"retreat",0,function(e,t,a){let n=a.msPerSegment??900,r=e-(n>0?t/n:1/0);return r>0?{t:r,playing:!0}:{t:0,playing:!1}},"segmentsOf",0,n,"smoothstep",0,t])},193354,e=>{"use strict";var t=e.i(843476),a=e.i(390431);e.s(["GraphGrid",0,function({bounds:e,xs:n,ys:r,w:l=380,h:i=300,yLabel:s="y",xLabel:o="x",gridStepX:c=1,gridStepY:d=1,xTickLabels:u}){let h=(0,a.ticksInRange)(e.xMin,e.xMax,c),p=(0,a.ticksInRange)(e.yMin,e.yMax,d),f=e.yMin<=0&&e.yMax>=0,m=e.xMin<=0&&e.xMax>=0,x=f?r(0):i-1,g=m?n(0):1,b=Math.max(c,Math.ceil((0,a.niceIntLabelStep)(e.xMax-e.xMin,l,40)/c)*c),y=Math.max(d,Math.ceil((0,a.niceIntLabelStep)(e.yMax-e.yMin,i,30)/d)*d),v=(e,t)=>
1{let a=e/t;return 1e-6>Math.abs(a-Math.round(a))},w=Math.min(i-4,Math.max(10,x-6)),M=Math.min(l-5,Math.max(7,g+6));return(0,t.jsxs)("g",{children:[h.map(e=>(0,t.jsx)("line",{x1:n(e),y1:0,x2:n(e),y2:i,strokeWidth:.5,style:{stroke:a.FIG_COLORS.grid}},`gx${e}`)),p.map(e=>(0,t.jsx)("line",{x1:0,y1:r(e),x2:l,y2:r(e),strokeWidth:.5,style:{stroke:a.FIG_COLORS.grid}},`gy${e}`)),f&&(0,t.jsx)("line",{x1:0,y1:r(0),x2:l,y2:r(0),strokeWidth:1,style:{stroke:a.FIG_COLORS.axis}}),m&&(0,t.jsx)("line",{x1:n(0),y1:0,x2:n(0),y2:i,strokeWidth:1,style:{stroke:a.FIG_COLORS.axis}}),h.filter(e=>u?void 0!==u[e]&&n(e)<l-34:0!==e&&v(e,b)&&n(e)<l-30).map(e=>(0,t.jsx)("text",{x:n(e),y:Math.min(i-2,x+11),fontSize:9,textAnchor:"middle",style:{fill:a.FIG_COLORS.textMuted},children:u?.[e]??e},`xn${e}`)),p.filter(e=>0!==e&&v(e,y)&&r(e)>20).map(e=>(0,t.jsx)("text",{x:Math.max(9,g-4),y:Math.max(9,r(e)+3),fontSize:9,textAnchor:"end",style:{fill:a.FIG_COLORS.textMuted},children:e},`yn${e}`)),(0,t.jsx)("text",{x:l-3,y:w,fontSize:12,textAnchor:"end",fontStyle:"italic",style:{fill:a.FIG_COLORS.axis},children:o}),(0,t.jsx)("text",{x:M,y:11,fontSize:12,fontStyle:"italic",style:{fill:a.FIG_COLORS.axis},children:s})]})},"clamp",0,(e,t,a)=>Math.max(t,Math.min(a,e)),"curvePath",0,function(e,t,a,n,r=240){let l="",i=!1;for(let s=0;s<=r;s++){let o=t.xMin+(t.xMax-t.xMin)*s/r,c=e(o);if(!Number.isFinite(c)||c<t.yMin-6||c>t.yMax+6){i=!1;continue}let d=a(o),u=n(c);l+=i?` L ${d.toFixed(1)} ${u.toFixed(1)}`:` M ${d.toFixed(1)} ${u.toFixed(1)}`,i=!0}return l.trim()},"overlayTint",0,function(e){return null!=e?e.correct?a.FIG_COLORS.success:a.FIG_COLORS.danger:a.FIG_COLORS.handle},"snap",0,(e,t)=>Math.round(e/t)*t])},105050,e=>{"use strict";var t=e.i(271645),a=e.i(662788);let n={default:"border-s800 bg-s900",inset:"border-s700/60 bg-s900/30",selected:"border-accent/60 bg-accent/10 ring-1 ring-accent/30",interactive:"border-s800 bg-s900 transition duration-150 ease-standard hover:border-s700 hover:shadow-pop",raised:"border-keyline bg-raised"},r={none:void 0,dense:"p-3",compact:"p-4",standard:"p-6"},l=(0,t.forwardRef)(function({as:e="div",variant:l,padding:i="none",elevated:s,interactive:o,inset:c,className:d,...u},h){return(0,t.createElement)(e,{ref:h,className:(0,a.cx)("rounded-card border",n[l??(o?"interactive":c?"inset":"default")],r[i],s&&"shadow-card",d),...u})});e.s(["Card",0,l])},889890,e=>{"use strict";var t=e.i(843476),a=e.i(662788);let n={neutral:"border-s700 bg-s800/60 text-s300",accent:"border-accent/40 bg-accent/15 text-accent",success:"border-success/40 bg-success/15 text-success",warning:"border-warning/40 bg-warning/15 text-warning",danger:"border-danger/40 bg-danger/15 text-danger"},r={neutral:"bg-s800/60 text-s300",accent:"bg-accent/15 text-accent",success:"bg-success/15 text-success",warning:"bg-warning/15 text-warning",danger:"bg-danger/15 text-danger"};e.s(["Badge",0,function({tone:e="neutral",size:l="default",className:i,children:s}){let o="chip"===l;return(0,t.jsx)("span",{className:(0,a.cx)("inline-flex items-center gap-1 rounded-pill px-2 py-0.5",o?"text-micro font-bold uppercase tracking-wide":"border text-xs font-medium",o?r[e]:n[e],i),children:s})}])},324876,e=>{"use strict";var t=e.i(843476),a=e.i(662788);e.s(["Skeleton",0,function({className:e}){return(0,t.jsx)("div",{"aria-hidden":!0,className:(0,a.cx)("motion-safe:animate-pulse rounded-field bg-s800",e)})}])},676137,e=>{"use strict";var t=e.i(843476),a=e.i(271645),n=e.i(662788);let r={form:"mx-auto max-w-form",reading:"mx-auto max-w-reading",content:"mx-auto max-w-content",workspace:"mx-auto max-w-workspace",full:"max-w-none"},l={none:void 0,compact:"space-y-4 py-4",standard:"space-y-6 py-6"};e.s(["PageHeader",0,function({title:e,eyebrow:a,back:r,description:l,actions:i,tabs:s,className:o,...c}){return(0,t.jsxs)("header",{className:(0,n.cx)("space-y-4",o),...c,children:[r&&(0,t.jsx)("div",{className:"flex items-center",children:r}),(0,t.jsxs)("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between",children:[(0,t.jsxs)("div",{className:"min-w-0 space-y-2",children:[a&&(0,t.jsx)("div",{className:"text-label font-medium text-s500",children:a}),(0,t.jsx)("h1",{className:"font-brand text-page-title font-bold text-s50",children:e}),l&&(0,t.jsx)("div",{className:"text-body-compact text-s400",children:l})]}),i&&(0,t.jsx)("div",{className:"flex shrink-0 flex-wrap items-center gap-2",children:i})]}),s&&(0,t.jsx)("div",{className:"border-b border-s800",children:s})]})},"PageShell",0,function({as:e="main",width:t="content",rhythm:i="standard",gutter:s="standard",className:o,...c}){return(0,a.createElement)(e,{className:function({width:e="content",rhythm:t="standard",gutter:a="standard",className:i}={}){return(0,n.cx)("w-full",r[e],l[t],"standard"===a&&"px-4 sm:px-6",i)}({width:t,rhythm:i,gutter:s,className:o}),...c})}])},404121,e=>{"use strict";e.i(676525),e.i(105050),e.i(639686),e.i(949364),e.i(384375),e.i(252310),e.i(889890),e.i(580729),e.i(94321),e.i(324876),e.i(961392),e.i(71260),e.i(676137),e.i(997458),e.i(374612),e.i(944526),e.i(760998),e.i(673195),e.s([])},769464,e=>{"use strict";var t=e.i(271645);let a=(0,t.createContext)({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}
1),n=t.forwardRef((e,n)=>{let{alt:r,color:l,size:i,weight:s,mirrored:o,children:c,weights:d,...u}=e,{color:h="currentColor",size:p,weight:f="regular",mirrored:m=!1,...x}=t.useContext(a);return t.createElement("svg",{ref:n,xmlns:"http://www.w3.org/2000/svg",width:null!=i?i:p,height:null!=i?i:p,fill:null!=l?l:h,viewBox:"0 0 256 256",transform:o||m?"scale(-1, 1)":void 0,...x,...u},!!r&&t.createElement("title",null,r),c,d.get(null!=s?s:f))});n.displayName="IconBase",e.s(["default",0,n],769464)},129829,137470,418797,e=>{"use strict";var t=e.i(843476),a=e.i(271645),n=e.i(769464);let r=new Map([["bold",a.createElement(a.Fragment,null,a.createElement("path",{d:"M228,156v36c0,13.85-1.63,26.52-4.58,35.68a12,12,0,1,1-22.84-7.36c2.14-6.65,3.42-17.24,3.42-28.32V156a8,8,0,0,0-16,0v4a12,12,0,0,1-24,0V140a8,8,0,0,0-16,0v12a12,12,0,0,1-24,0V84a8,8,0,0,0-16,0V192a12,12,0,0,1-22.18,6.34l-18.68-30-.21-.34A8,8,0,0,0,53,175.92L78.27,217.8a12,12,0,0,1-20.56,12.39l-25.31-42-.12-.2A32,32,0,0,1,84,150.83V84a32,32,0,0,1,64,0v25a32,32,0,0,1,36.78,17A32,32,0,0,1,228,156ZM56,96A12,12,0,0,0,68,84a48,48,0,0,1,96,0,12,12,0,0,0,24,0A72,72,0,0,0,44,84,12,12,0,0,0,56,96Z"}))],["duotone",a.createElement(a.Fragment,null,a.createElement("path",{d:"M216,148v36c0,24-8,40-8,40H72L42.68,174a20,20,0,0,1,34.64-20L96,184V76a20,20,0,0,1,40,0v56a20,20,0,0,1,40,0v16a20,20,0,0,1,40,0Z",opacity:"0.2"}),a.createElement("path",{d:"M56,76a60,60,0,0,1,120,0,8,8,0,0,1-16,0,44,44,0,0,0-88,0,8,8,0,1,1-16,0Zm140,44a27.9,27.9,0,0,0-13.36,3.39A28,28,0,0,0,144,106.7V76a28,28,0,0,0-56,0v80l-3.82-6.13a28,28,0,0,0-48.41,28.17l29.32,50A8,8,0,1,0,78.89,220L49.6,170a12,12,0,1,1,20.78-12l.14.23,18.68,30A8,8,0,0,0,104,184V76a12,12,0,0,1,24,0v68a8,8,0,1,0,16,0V132a12,12,0,0,1,24,0v20a8,8,0,0,0,16,0v-4a12,12,0,0,1,24,0v36c0,21.61-7.1,36.3-7.16,36.42a8,8,0,0,0,3.58,10.73A7.9,7.9,0,0,0,208,232a8,8,0,0,0,7.16-4.42c.37-.73,8.85-18,8.85-43.58V148A28,28,0,0,0,196,120Z"}))],["fill",a.createElement(a.Fragment,null,a.createElement("path",{d:"M64,64a48,48,0,0,1,96,0,8,8,0,0,1-16,0,32,32,0,0,0-64,0,8,8,0,0,1-16,0Zm143.23,56c-8.61.4-15.23,7.82-15.23,16.43v7.28a8.17,8.17,0,0,1-7.47,8.25,8,8,0,0,1-8.53-8V120.45c0-8.61-6.62-16-15.23-16.43A16,16,0,0,0,144,120v15.73a8.17,8.17,0,0,1-7.47,8.25,8,8,0,0,1-8.53-8V64.45c0-8.61-6.62-16-15.23-16.43A16,16,0,0,0,96,64V183.74a8.19,8.19,0,0,1-6.72,8.16l-.12,0a6.09,6.09,0,0,1-6-3.09l-21-36.44c-4.3-7.46-13.74-10.57-21.4-6.62A16,16,0,0,0,34.15,168L65.1,228.05A8,8,0,0,0,72,232H208a8,8,0,0,0,7.16-4.42c.36-.72,8.84-15.06,8.84-40.65V136A16,16,0,0,0,207.23,120Z"}))],["light",a.createElement(a.Fragment,null,a.createElement("path",{d:"M58,76a58,58,0,0,1,116,0,6,6,0,0,1-12,0,46,46,0,0,0-92,0,6,6,0,0,1-12,0Zm138,46a25.87,25.87,0,0,0-14.59,4.49A26,26,0,0,0,142,110.1V76a26,26,0,0,0-52,0v87l-7.53-12.1a26,26,0,0,0-45,26.13l29.32,50A6,6,0,0,0,77.16,221L47.87,171a14,14,0,0,1,24.25-14,1,1,0,0,0,.1.17l18.68,30A6,6,0,0,0,102,184V76a14,14,0,0,1,28,0v68a6,6,0,0,0,12,0V132a14,14,0,0,1,28,0v20a6,6,0,0,0,12,0v-4a14,14,0,0,1,28,0v36c0,22.13-7.3,37.18-7.37,37.32a6,6,0,0,0,2.69,8A5.83,5.83,0,0,0,208,230a6,6,0,0,0,5.38-3.32c.35-.7,8.63-17.55,8.63-42.68V148A26,26,0,0,0,196,122Z"}))],["regular",a.createElement(a.Fragment,null,a.createElement("path",{d:"M56,76a60,60,0,0,1,120,0,8,8,0,0,1-16,0,44,44,0,0,0-88,0,8,8,0,1,1-16,0Zm140,44a27.9,27.9,0,0,0-13.36,3.39A28,28,0,0,0,144,106.7V76a28,28,0,0,0-56,0v80l-3.82-6.13a28,28,0,0,0-48.41,28.17l29.32,50A8,8,0,1,0,78.89,220L49.6,170a12,12,0,1,1,20.78-12l.14.23,18.68,30A8,8,0,0,0,104,184V76a12,12,0,0,1,24,0v68a8,8,0,1,0,16,0V132a12,12,0,0,1,24,0v20a8,8,0,0,0,16,0v-4a12,12,0,0,1,24,0v36c0,21.61-7.1,36.3-7.16,36.42a8,8,0,0,0,3.58,10.73A7.9,7.9,0,0,0,208,232a8,8,0,0,0,7.16-4.42c.37-.73,8.85-18,8.85-43.58V148A28,28,0,0,0,196,120Z"}))],["thin",a.createElement(a.Fragment,null,a.createElement("path",{d:"M60,76a56,56,0,0,1,112,0,4,4,0,0,1-8,0,48,48,0,0,0-96,0,4,4,0,1,1-8,0Zm136,48a23.88,23.88,0,0,0-16.07,6.19A24,24,0,0,0,140,114.13V76a24,24,0,0,0-48,0v94L80.74,151.94A24,24,0,0,0,39.22,176l29.32,50a4,4,0,0,0,6.9-4L46.13,172a16,16,0,0,1,27.72-16l.07.12,18.68,30A4,4,0,0,0,100,184V76a16,16,0,0,1,32,0v68a4,4,0,0,0,8,0V132a16,16,0,0,1,32,0v20a4,4,0,0,0,8,0v-4a16,16,0,0,1,32,0v36c0,22.66-7.51,38.06-7.58,38.21a4,4,0,0,0,1.79,5.37A4.05,4.05,0,0,0,208,228a4,4,0,0,0,3.58-2.21c.34-.69,8.42-17.13,8.42-41.79V148A24,24,0,0,0,196,124Z"}))]]);e.s(["default",0,r],137470);let l=a.forwardRef((e,t)=>
1a.createElement(n.default,{ref:t,...e,weights:r}));l.displayName="HandTapIcon",e.i(404121);var i=e.i(639686);function s(e,t,a){return 12>=Math.hypot(e,t)&&a<=400}function o(e=10){try{navigator.vibrate?.(e)}catch{}}let c={active:!1,lastOutsideTapAt:null};function d(e,t){switch(t.type){case"enter":return e.active?e:{active:!0,lastOutsideTapAt:null};case"done":case"force-exit":return e.active?c:e;case"outside-tap":{if(!e.active)return e;let a=e.lastOutsideTapAt;if(null!=a&&t.at-a<=350&&t.at>=a)return c;return{active:!0,lastOutsideTapAt:t.at}}}}let u="(pointer: coarse)";e.s(["COARSE_POINTER_QUERY",0,u,"PILL_SETTLE_MS",0,3500,"hapticTick",0,o,"idleInteractionMode",0,c,"interactionModeReducer",0,d,"isCleanTap",0,s],418797);let h=(0,a.createContext)({active:!1,coarse:!1});function p(e){let t=window.matchMedia(u);return t.addEventListener("change",e),()=>t.removeEventListener("change",e)}function f(){return(0,a.useSyncExternalStore)(p,()=>window.matchMedia(u).matches,()=>!1)}e.s(["default",0,function({children:e,disabled:n,label:r="graph"}){let u=f(),[p,m]=(0,a.useReducer)(d,c),x=p.active&&u&&!n,g=(0,a.useRef)(null),[b,y]=(0,a.useState)(0),[v,w]=(0,a.useState)(!1);(0,a.useEffect)(()=>{if(v||x||n||!u)return;let e=setTimeout(()=>w(!0),3500);return()=>clearTimeout(e)},[v,x,n,u]);let M=(0,a.useRef)(null),A=(0,a.useCallback)(()=>{y(g.current?.getBoundingClientRect().height??0),o(),m({type:"enter"})},[]),k=(0,a.useCallback)(()=>{o(),m({type:"done"})},[]);return((0,a.useEffect)(()=>{(n||!u)&&m({type:"force-exit"})},[n,u]),u)?x?(0,t.jsxs)(h.Provider,{value:{active:!0,coarse:u},children:[(0,t.jsx)("div",{style:{height:b||void 0},"aria-hidden":!0}),(0,t.jsxs)(i.OverlayBehavior,{open:!0,onClose:()=>m({type:"force-exit"}),"aria-label":"Interactive mode",closeOnBackdrop:!1,layoutClassName:"flex items-center justify-center p-3",backdropClassName:"q-mode-backdrop bg-s950/80 backdrop-blur-none",backdropProps:{style:{touchAction:"none"},onPointerDown:e=>{M.current={x:e.clientX,y:e.clientY,t:Date.now()}},onPointerUp:e=>{let t=M.current;M.current=null,t&&s(e.clientX-t.x,e.clientY-t.y,Date.now()-t.t)&&m({type:"outside-tap",at:Date.now()})}},panelClassName:"q-mode-panel relative w-full max-w-[520px]",children:[(0,t.jsxs)("div",{className:"mb-2 flex items-center justify-between gap-2",children:[(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 rounded-full border border-[var(--state-pick)] bg-[var(--state-pick-bg)] px-3 py-1 text-xs font-semibold uppercase tracking-wide text-[var(--state-pick-ink)]",children:[(0,t.jsx)(l,{className:"h-4 w-4 text-[var(--state-pick)]",weight:"fill","aria-hidden":!0}),"Interactive mode"]}),(0,t.jsx)("button",{type:"button","data-autofocus":!0,onClick:k,className:"q-focusable inline-flex h-[var(--q-control-lg)] min-w-[var(--q-hit-min)] cursor-pointer items-center justify-center rounded-[var(--q-radius-control)] border border-[var(--state-pick)] bg-s900 px-5 text-sm font-bold text-s100",children:"Done"})]}),(0,t.jsx)("div",{className:"q-interactive-surface max-h-[calc(100dvh-7rem)] overflow-y-auto rounded-[var(--q-radius-card)] bg-s950 p-2 shadow-modal ring-2 ring-[var(--state-pick)]",children:e}),(0,t.jsx)("p",{className:"mt-2 text-center text-xs text-s400",children:"Done or double-tap outside to finish."})]})]}):(0,t.jsx)(h.Provider,{value:{active:!1,coarse:u},children:(0,t.jsxs)("div",{ref:g,className:"relative",children:[e,!n&&(0,t.jsx)("button",{type:"button",onClick:A,className:"q-focusable absolute inset-0 cursor-pointer rounded-[var(--q-radius-card)] bg-s950/15","aria-label":`Interact with the ${r}`,children:(0,t.jsxs)("span",{className:"pointer-events-none absolute inline-flex min-h-[var(--q-hit-min)] items-center gap-2 whitespace-nowrap rounded-full border border-[var(--state-pick)] bg-s900/70 px-4 py-2 text-sm font-semibold text-s100 shadow-pop backdrop-blur-[2px] transition-[top,left,transform,opacity] duration-700 ease-in-out motion-reduce:transition-none",style:v?{top:"0%",left:"100%",transform:"translate(calc(-100% - 10px), 10px)",opacity:.55}:{top:"50%",left:"50%",transform:"translate(-50%, -50%)",opacity:1},children:[(0,t.jsx)(l,{className:"h-5 w-5 text-[var(--state-pick)]",weight:"fill","aria-hidden":!0}),"Tap to interact"]})})]})}):(0,t.jsx)(h.Provider,{value:{active:!1,coarse:!1},children:e})},"useCoarsePointer",0,f,"useInteractionMode",0,function(){return(0,a.useContext)(h)}],129829)},233172,e=>{"use strict";function t(e,a,n,r=2e3){if(a===n)return 0;let l=Math.min(a,n),i=Math.max(a,n),s=r%2==0?r:r+1,o=(i-l)/s,c=e(l)+e(i);for(let t=1;t<s;t++)c+=(t%2==0?2:4)*e(l+t*o);return c*o*(n<a?-1:1)/3}function a(e,t,a,n,r){let l=(a-t)/n,i=[];for(let a=0;a<n;a++){let n,s=t+a*l,o=s+l;switch(r){case"left":n=e(s);break;case"right":n=e(o);break;case"midpoint":n=e((s+o)/2);break;case"trapezoid":n=(e(s)+e(o))/2}i.push({x0:s,x1:o,height:n})}return i}e.s(["accumulate",0,function(e,a,n,r,l=200){let i=[],s=Math.min(n,a),o=(Math.max(r,a)-s)/l;for(let n=0;n<=l;n++){let r=s+n*o;i.push({x:r,g:t(e,a,r,400)})}return i},"clampNum",0,(e,t,a)=>Math.max(t,Math.min(a,e)),"integrate",0,t,"riemannEstimate",0,function(e,t,n,r,l){let i=(n-t)/r;return a(e,t,n,r,l).reduce((e,t)=>
1e+t.height*i,0)},"riemannSlices",0,a,"taylorPartial",0,function(e,t,a,n){let r=Math.min(Math.max(0,Math.floor(n)),e.length-1),l=a-t,i=0,s=1;for(let t=0;t<=r;t++)i+=e[t]*s,s*=l;return i}])},888312,e=>{"use strict";var t=e.i(843476),a=e.i(271645),n=e.i(290857),r=e.i(43003),l=e.i(977783),i=e.i(745496),s=e.i(292267),o=e.i(108174),c=e.i(589807);function d(e){return e<.5?2*e*e:1-(-2*e+2)**2/2}let u=e=>e<0?0:e>1?1:e;var h=e.i(29197);let p={outer:"accent",middle:"primary",inner:"handle"},f=()=>()=>{},m=()=>!0,x=()=>!1;function g({id:e,active:a,onPick:n}){return(0,t.jsx)("button",{type:"button","aria-pressed":a,onClick:()=>n(e),className:`rounded-chip px-2 py-1 font-mono text-[11px] leading-none transition-colors ${a?"bg-s700 text-s100":"text-s400 hover:bg-s800/70 hover:text-s200"}`,children:e})}function b({playing:e,onPlay:a,onStop:n}){return(0,t.jsxs)("button",{type:"button",onClick:e?n:a,className:"inline-flex items-center gap-1.5 rounded-control border border-s700/60 px-2.5 py-1 text-[11px] font-medium text-s200 transition-colors hover:bg-s800/70",children:[(0,t.jsx)("span",{"aria-hidden":!0,className:"text-[12px] leading-none",children:e?"â ":"â¶"}),e?"Stop":"Sweep"]})}function y({bounds:e,scrub:a}){let n=a??(e.outer[0]+e.outer[1])/2,r=e.middleAt(n),l=r?(r[0]+r[1])/2:0,i=r?e.innerAt(n,l):null,s=[e.outer,r,i],o=e=>1e-9>Math.abs(e)?"0":Number(e.toFixed(3)).toString();return(0,t.jsx)("span",{className:"mt-2 block rounded-card border border-s800 bg-s900/40 p-2.5 font-mono text-[11px] leading-relaxed",children:e.rows.map((e,a)=>{let n=p[e.level],r=s[a],l=null!==e.lower&&null!==e.upper;return(0,t.jsxs)("span",{className:"flex flex-wrap items-baseline gap-x-2",children:[(0,t.jsxs)("span",{style:{color:`var(--fig-${n})`},className:"w-14 shrink-0",children:["â«".repeat(3-a)," d",e.axis]}),(0,t.jsx)("span",{className:"text-s200",children:l?`${e.axis}: ${e.lower} â ${e.upper}`:(0,t.jsxs)("span",{className:"text-s400",children:[e.axis,": ",r?`${o(r[0])} â ${o(r[1])}`:"empty",a>0&&(0,t.jsx)("span",{className:"text-s500",children:" (at this station â curved region, values not formulas)"})]})})]},e.level)})})}e.s(["default",0,function({spec:e,onStateChange:p,height:v=320}){let w,M,A=(0,a.useSyncExternalStore)(f,m,x),k=function(){let[e,t]=(0,a.useState)("dark");return(0,a.useEffect)(()=>{let e=()=>t(document.documentElement.classList.contains("light")?"light":"dark");e();let a=new MutationObserver(e);return a.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),()=>a.disconnect()},[]),e}(),$=(0,a.useRef)(null),S=(0,a.useRef)(null),E=(0,a.useRef)(null),L=function(){let[e,t]=(0,a.useState)(-.72),[n,r]=(0,a.useState)(.44),[l,i]=(0,a.useState)(!1),s=(0,a.useRef)(null),o=(0,a.useCallback)(e=>{try{e.target.setPointerCapture?.(e.pointerId)}catch{}s.current={x:e.clientX,y:e.clientY},i(!0)},[]);return(0,a.useEffect)(()=>{if(!l)return;let e=e=>{if(!s.current)return;let a=e.clientX-s.current.x,n=e.clientY-s.current.y;s.current={x:e.clientX,y:e.clientY},t(e=>e+.01*a),r(e=>Math.max(.08,Math.min(1.32,e+.01*n)))},a=()=>{s.current=null,i(!1)};return window.addEventListener("pointermove",e),window.addEventListener("pointerup",a),window.addEventListener("pointercancel",a),()=>{window.removeEventListener("pointermove",e),window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",a)}},[l]),{yaw:e,pitch:n,dragging:l,onPointerDown:o,setYaw:t,setPitch:r}}(),j=(0,a.useMemo)(()=>e.orders?.length?e.orders:[...h.ALL_ORDERS],[e.orders]),[F,N]=(0,a.useState)(e.order??j[0]??"dz dy dx"),[W,P]=(0,a.useState)("still"),[C,R]=(0,a.useState)(null),O=(0,a.useMemo)(()=>(0,c.compileRegion)(e.region),[e.region]),H=(0,a.useMemo)(()=>(0,s.boundsForOrder)(O,(0,h.parseOrder)(F),56),[O,F]),_=(0,a.useMemo)(()=>(0,o.solidFacets)(H,20,20),[H]),[T,V]=(0,a.useState)(null);(0,a.useEffect)(()=>{V((0,l.readSurfaceColors)())},[k]);let[I,Z]=(0,a.useState)(0);(0,a.useEffect)(()=>{let e=$.current;if(!e)return;let t=new ResizeObserver(e=>Z(e[0].contentRect.width));return t.observe(e),()=>t.disconnect()},[]);let D=(0,a.useCallback)(e=>null===e?function(e,t,a={}){let n=a.slabWidth??1/16,[r,l]=e.outer,i=Math.max(r,Math.min(l,t)),s=(l-r)*n/2,o=e.middleAt(i),c=o?(o[0]+o[1])/2:0,d=o?e.innerAt(i,c):null;
1return{chapter:"done",u:1,a:i,b:c,c:d?d[1]:0,slab:[Math.max(r,i-s),Math.min(l,i+s)],strip:null,filledSolid:null,filledSlab:null,focusFade:0,settled:!0}}(H,C??(H.outer[0]+H.outer[1])/2):function(e,t,a={}){let n=function(e,t={}){let a=t.focusOuter??(e.outer[0]+e.outer[1])/2,n=e.middleAt(a);return{a,b:t.focusMiddle??(n?(n[0]+n[1])/2:0)}}(e,a),r=a.slabWidth??1/16,l=a.stripWidth??1/14,[i,s]=e.outer,o=s-i,c=e.middleAt(n.a)??[0,0],h=e.innerAt(n.a,n.b)??[0,0],p={chapter:"done",u:1,a:n.a,b:n.b,c:h[1],slab:null,strip:null,filledSolid:null,filledSlab:null,focusFade:0,settled:!0},f=1880,m=4060;if(t<1880){let e=u(t/1500);return{...p,chapter:"inner",u:e,c:h[0]+(h[1]-h[0])*d(e),slab:null,strip:null,filledSolid:null,filledSlab:null,focusFade:0,settled:!1}}if(t<m){let a=u((t-f)/1800),[r,i]=c,s=r+(i-r)*d(a),o=(i-r)*l/2,m=e.innerAt(n.a,s)??h;return{...p,chapter:"middle",u:a,b:s,c:m[1],slab:null,strip:[Math.max(r,s-o),Math.min(i,s+o)],filledSolid:null,filledSlab:a>0?[r,s]:null,focusFade:1,settled:!1}}if(t<m+2200){let a=u((t-m)/2200),n=i+o*d(a),l=o*r/2,h=e.middleAt(n)??c;return{...p,chapter:"outer",u:a,a:n,b:(h[0]+h[1])/2,slab:[Math.max(i,n-l),Math.min(s,n+l)],strip:null,filledSolid:a>0?[i,n]:null,filledSlab:null,focusFade:1-u(a/.2),settled:!1}}return p}(H,e),[H,C]),q=(0,a.useCallback)((t,a,l)=>{let s=S.current,c=$.current;if(!s||!c||!T||!A)return;let d=c.clientWidth||480,u=Math.min(2,window.devicePixelRatio||1);(s.width!==Math.round(d*u)||s.height!==Math.round(v*u))&&(s.width=Math.round(d*u),s.height=Math.round(v*u),s.style.width=`${d}px`,s.style.height=`${v}px`);let h=s.getContext("2d");if(!h)return;h.setTransform(u,0,0,u,0,0),h.clearRect(0,0,d,v);let p={yaw:a??L.yaw,pitch:l??L.pitch,dist:3.5,focal:.92*Math.min(d,v),cx:d/2,cy:v/2+12},f=e.region.box,m=(0,r.boxToWorld)(f,r.DEFAULT_Z_ASPECT),x=e=>m(e.x,e.y,e.z),g=e=>(0,i.project)((0,i.rotate)(x(e),p.yaw,p.pitch),p),b=(0,r.eyeInBoxSpace)(p),y=D(t),[w,M,k]=H.axes;(0,r.drawBoxFrame)(h,f,p,T,d,v,{labels:e.labels,emphasis:w,emphasisInk:(0,i.rgba)(T.accent,.85)});let E=[],[j,N]=H.outer,P=y.filledSolid,R=y.settled||"done"===y.chapter;for(let e=0;e<_.length;e++){let t=j+(N-j)*(e+.5)/_.length,a=R||null!==P&&t<=P[1]?1:.1;for(let t of _[e])E.push({...t,kind:`body-${t.kind}`,alpha:a})}let O="playing"===W?16:20;if(y.slab)for(let e of(0,o.slabFacets)(H,y.slab[0],y.slab[1],O))E.push({...e,kind:`slab-${e.kind}`});if(y.focusFade>.01&&y.filledSlab){let e=(N-j)/20*.6;for(let t of(0,o.stripFacets)(H,y.a-e,y.a+e,y.filledSlab[0],y.filledSlab[1],12))E.push({...t,kind:`slab-${t.kind}`,alpha:.9*y.focusFade})}if(y.strip&&y.focusFade>.01){let e=(N-j)/20*.6;for(let t of(0,o.stripFacets)(H,y.a-e,y.a+e,y.strip[0],y.strip[1],8))E.push({...t,kind:`strip-${t.kind}`,alpha:y.focusFade})}let V=e=>e.startsWith("slab")?T.accent:(e.startsWith("strip"),T.primary),I=E.map(e=>({...e,pts:e.pts.map(e=>x(e))}));(0,n.paintFacets)(h,I,p,b,{fill:(e,t)=>{let a=V(e.kind),n=e.kind.endsWith("cap");return(0,i.rgba)((0,i.shadeColor)(a,n?.55*t+.45:.9*t),e.kind.startsWith("body")?.92:.96)},stroke:(e,t)=>void 0!==e.alpha&&e.alpha<.4?null:(0,i.rgba)((0,i.shadeColor)(V(e.kind),.35*t),e.kind.startsWith("body")?.16:.4)});let Z=(0,i.haloFor)({ink:T.ink,light:T.light}),q=(0,o.innerSegment)(H,y.a,y.b),z="inner"===y.chapter||"middle"===y.chapter;if(q&&z){let e=g(q.from),t=g(q.to);h.save(),h.lineCap="round",h.beginPath(),h.moveTo(e.x,e.y),h.lineTo(t.x,t.y),h.lineWidth=5,h.strokeStyle=Z,h.stroke(),h.lineWidth=2.2,h.strokeStyle=(0,i.rgba)(T.handle,.95),h.stroke(),h.restore();let a=g({...q.from}),n=q.span[1]-q.span[0]>1e-12?(y.c-q.span[0])/(q.span[1]-q.span[0]):0,r=a.x+(t.x-e.x)*n,l=a.y+(t.y-e.y)*n;h.save(),h.beginPath(),h.arc(r,l,5.4,0,2*Math.PI),h.fillStyle=Z,h.fill(),h.beginPath(),h.arc(r,l,3.6,0,2*Math.PI),h.fillStyle=T.handle,h.fill(),h.restore()}if(y.slab){let e=(0,o.sectionAt)(H,(y.slab[0]+y.slab[1])/2,O);if(e&&!e.degenerate){let t=e.pts.map(g);for(let e of(h.save(),h.beginPath(),h.moveTo(t[0].x,t[0].y),t.slice(1)))h.lineTo(e.x,e.y);h.closePath(),h.lineWidth=1.6,h.strokeStyle=(0,i.rgba)(T.accent,.95),h.stroke(),h.restore()}}h.font="600 11px ui-sans-serif, system-ui, sans-serif";let G=(e,t,a)=>(0,i.drawText)(h,e,10,14+15*a,"left","middle",t,Z),B=e=>1e-9>Math.abs(e)?"0":e.toFixed(2);R&&null===C||(G(`${w} = ${B(y.a)}`,(0,i.rgba)(T.accent,.95),0),("inner"===y.chapter||"middle"===y.chapter)&&G(`${M} = ${B(y.b)}`,(0,i.rgba)(T.primary,.95),1),"inner"===y.chapter&&G(`${k} = ${B(y.c)}`,(0,i.rgba)(T.handle,.95),2)),h.font="600 10px ui-sans-serif, system-ui, sans-serif",(0,i.drawText)(h,F,d-10,14,"right","middle",(0,i.rgba)(T.inkMuted,.9),Z)}
1,[T,A,v,L.yaw,L.pitch,e.region.box,e.labels,H,_,D,W,C,F]),z=(0,a.useRef)(q);(0,a.useEffect)(()=>{z.current=q},[q]);let G=(0,a.useCallback)(()=>{E.current&&cancelAnimationFrame(E.current),E.current=null},[]),B=(0,a.useCallback)(()=>{if(G(),R(null),"function"==typeof window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches){P("still"),z.current(null);return}P("playing");let e=6640,t=performance.now(),a=n=>{let r=n-t;if(r>=e){P("still"),z.current(null),E.current=null;return}z.current(r),E.current=requestAnimationFrame(a)};E.current=requestAnimationFrame(a)},[G]);(0,a.useEffect)(()=>{"playing"!==W&&q(null)},[W,q]),(0,a.useEffect)(()=>G,[G]),(0,a.useEffect)(()=>{if("animate"===e.sweep&&A&&T){let e=requestAnimationFrame(()=>B());return()=>cancelAnimationFrame(e)}},[e.sweep,A,T,B]),(0,a.useEffect)(()=>{p?.({order:F,bounds:H,frame:D("playing"===W?0:null)})},[F,H,D,W,p]);let[X,Y]=H.outer,U=C??(X+Y)/2,K=H.axes[0],Q=!1!==e.scrub,J="none"!==e.sweep;return(0,t.jsxs)("span",{className:"block w-full select-none",children:[(0,t.jsx)("span",{ref:$,onPointerDown:"playing"===W?void 0:L.onPointerDown,className:"relative block w-full overflow-hidden rounded-card border border-s800 bg-gradient-to-b from-s900/50 to-s950/70",style:{height:v,cursor:"playing"===W?"default":L.dragging?"grabbing":"grab",touchAction:"playing"===W?"auto":"none"},children:(0,t.jsx)("canvas",{ref:S,className:"block",role:"img","aria-label":(w=e.region.box,M=e=>Number.isInteger(e)?String(e):e.toFixed(2),`A three-dimensional solid region drawn against numbered x, y and z scales, inside the box x from ${M(w.xMin)} to ${M(w.xMax)}, y from ${M(w.yMin)} to ${M(w.yMax)}, z from ${M(w.zMin)} to ${M(w.zMax)}. It is shown cut into slabs for the order ${F}`+(j.length>1?`, one of ${j.length} orders that can be chosen.`:".")+" A sweep animates one point along a segment, then that segment across a slab, then that slab through the solid.")})}),(0,t.jsxs)("span",{"aria-hidden":!A||void 0,className:`mt-2 flex flex-wrap items-center gap-x-2 gap-y-2 ${A?"":"invisible"}`,children:[j.length>1&&(0,t.jsx)("span",{role:"group","aria-label":"Order of integration",className:"inline-flex flex-wrap gap-1 rounded-control border border-s700/60 p-1",children:j.map(e=>{let a=e===F;return(0,t.jsx)(g,{id:e,active:a,onPick:e=>{G(),P("still"),N(e)}},e)})}),J&&(0,t.jsx)(b,{playing:"playing"===W,onPlay:B,onStop:()=>{G(),P("still")}}),Q&&(0,t.jsxs)("label",{className:"inline-flex min-w-[9rem] flex-1 items-center gap-2 text-[11px] text-s400",children:[(0,t.jsxs)("span",{className:"font-mono",children:[K," ="]}),(0,t.jsx)("input",{type:"range",min:X,max:Y,step:(Y-X)/200||.01,value:U,"aria-label":`Cut the solid at a value of ${K}`,onChange:e=>{G(),P("still"),R(Number(e.currentTarget.value))},className:"h-1 w-full min-w-[5rem] flex-1 cursor-pointer appearance-none rounded-pill bg-s700 accent-[var(--fig-accent)]"}),(0,t.jsx)("span",{className:"w-10 shrink-0 font-mono tabular-nums",children:U.toFixed(2)})]})]}),e.showLimits&&(0,t.jsx)(y,{bounds:H,scrub:C})]})}],888312)},335546,e=>{"use strict";var t=e.i(843476),a=e.i(271645);e.s(["BADGE",0,"rounded px-2 py-0.5 text-xs","BTN_GHOST",0,"px-3 py-1.5 rounded-lg border border-s700/60 text-s300 text-sm cursor-pointer hover:border-s500","BTN_PRIMARY",0,"px-3 py-1.5 rounded-lg bg-indigo-600 hover:bg-indigo-500 text-white text-sm font-semibold cursor-pointer","CARD",0,"rounded-2xl border border-s800 bg-s900/40 p-5 space-y-3","ThemeToggle",0,function(){let[e,n]=(0,a.useState)(()=>"u"<typeof document||!document.documentElement.classList.contains("light"));return(0,t.jsx)("button",{type:"button",onClick:()=>{let t=document.documentElement,a=e?"light":"dark";t.classList.remove("light","dark"),t.classList.add(a),t.dataset.theme=a,n(!e)},suppressHydrationWarning:!0,className:"rounded-lg border border-s700/60 px-3 py-1.5 text-sm text-s300 hover:border-s500 cursor-pointer",children:e?"â Light":"â¾ Dark"})},"modeBadgeClass",0,function(e){switch(e){case"static":return"bg-s800 text-s400";case"animated":return"bg-sky-500/15 text-sky-600 dark:text-sky-300";
1case"graded":return"bg-indigo-500/15 text-indigo-600 dark:text-indigo-300"}}])},792070,e=>{"use strict";var t=e.i(755202);let a=t.PLOT_W+2*t.PLOT_PAD,n=t.PLOT_H+2*t.PLOT_PAD,r=.17*a;e.s(["MAP_ARROW_INSET",0,.62*r,"MAP_H",0,n,"MAP_HEADER_Y",0,16,"MAP_LX",0,.27*a,"MAP_OVAL_RX",0,r,"MAP_OVAL_RY",0,.42*n,"MAP_RX",0,.73*a,"MAP_W",0,a,"layout",0,function(e,t){if(0===e)return[];let a=.18*t,n=.82*t;return 1===e?[t/2]:Array.from({length:e},(t,r)=>a+(n-a)*r/(e-1))}])},86232,e=>{"use strict";let t="1"===e.i(247167).default.env.NEXT_PUBLIC_DESMOS_ENABLED||!0,a=null;e.s(["desmosEnabled",0,t,"loadDesmos",0,function(){return window.Desmos?Promise.resolve(window.Desmos):(a||(a=new Promise((e,t)=>{let n=document.createElement("script");n.src="/api/vendor/desmos",n.async=!0,n.onload=()=>{window.Desmos?e(window.Desmos):(a=null,t(Error("Desmos missing after load")))},n.onerror=()=>{a=null,t(Error("Desmos script failed to load"))},document.head.appendChild(n)})),a)}])}]);
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.