Includes: API (Express/TypeScript), Astro site, Python workers, document generators, FCC compliance tools, Canada CRTC formation, Ansible infrastructure, and deployment scripts. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 line
13 KiB
JavaScript
1 line
13 KiB
JavaScript
import"./hoisted.yFz1BYXO.js";document.getElementById("crtc-questions-btn")?.addEventListener("click",()=>{const y=document.getElementById("support-fab");y&&window.setTimeout(()=>y.click(),0)});(function(){const y=document.getElementById("crtc-canvas");if(!y)return;const e=y.getContext("2d");let h=0,d=0,u=[],c=[],v=[],S=0;function R(){const i=Math.min(window.devicePixelRatio||1,2);h=y.clientWidth,d=y.clientHeight,y.width=h*i,y.height=d*i,e.setTransform(i,0,0,i,0,0),z()}function z(){c=[],u=[],v=[];const i=h<640?3:5;for(let o=0;o<i;o++){const a=h*(.1+o/i*.8)+(Math.random()-.5)*40,t=d*.5+Math.random()*d*.2,l=30+Math.random()*40;c.push({x:a,y:t,height:l})}}function q(i){u.push({x:i.x,y:i.y-i.height,radius:0,maxRadius:60+Math.random()*80,speed:.4+Math.random()*.3,alpha:.5})}function B(i){S+=.03;const o=h*.08,a=d*.15,t=h<640?60:90,l=t*.5,r=12,s=t/r;e.strokeStyle="rgba(255,255,255,0.3)",e.lineWidth=2,e.beginPath(),e.moveTo(o,a-5),e.lineTo(o,a+l+15),e.stroke();for(let w=0;w<r;w++){const E=o+w*s,D=Math.sin(S+w*.5)*(3+w*.4),F=Math.sin(S+(w+1)*.5)*(3+(w+1)*.4),P=w/r;let T;P<.25||P>=.75?T="rgba(255, 0, 0, 0.7)":T="rgba(255, 255, 255, 0.85)",e.fillStyle=T,e.beginPath(),e.moveTo(E,a+D),e.lineTo(E+s,a+F),e.lineTo(E+s,a+l+F),e.lineTo(E,a+l+D),e.closePath(),e.fill()}const f=o+t*.5,g=a+l*.5+Math.sin(S+3)*2,b=l*.35;e.fillStyle="rgba(255, 0, 0, 0.85)",e.beginPath(),e.moveTo(f,g-b),e.lineTo(f+b*.3,g-b*.3),e.lineTo(f+b*.7,g-b*.4),e.lineTo(f+b*.4,g-b*.05),e.lineTo(f+b*.6,g+b*.3),e.lineTo(f+b*.15,g+b*.15),e.lineTo(f,g+b*.5),e.lineTo(f-b*.15,g+b*.15),e.lineTo(f-b*.6,g+b*.3),e.lineTo(f-b*.4,g-b*.05),e.lineTo(f-b*.7,g-b*.4),e.lineTo(f-b*.3,g-b*.3),e.closePath(),e.fill()}function A(i){for(const o of c){if(e.strokeStyle="rgba(255,255,255,0.15)",e.lineWidth=2,e.beginPath(),e.moveTo(o.x,o.y),e.lineTo(o.x,o.y-o.height),e.stroke(),e.beginPath(),e.moveTo(o.x-6,o.y-o.height+5),e.lineTo(o.x+6,o.y-o.height+5),e.stroke(),e.strokeStyle="rgba(255,255,255,0.08)",e.beginPath(),e.moveTo(o.x,o.y),e.lineTo(o.x-8,o.y+4),e.moveTo(o.x,o.y),e.lineTo(o.x+8,o.y+4),e.stroke(),Math.sin(i*.003+o.x)>.3){e.fillStyle="rgba(255, 80, 80, 0.9)",e.beginPath(),e.arc(o.x,o.y-o.height,2,0,Math.PI*2),e.fill();const t=e.createRadialGradient(o.x,o.y-o.height,0,o.x,o.y-o.height,8);t.addColorStop(0,"rgba(255, 80, 80, 0.3)"),t.addColorStop(1,"rgba(255, 80, 80, 0)"),e.fillStyle=t,e.beginPath(),e.arc(o.x,o.y-o.height,8,0,Math.PI*2),e.fill()}Math.random()<.008&&q(o)}}function M(i){for(let o=u.length-1;o>=0;o--){const a=u[o];if(a.radius+=a.speed,a.alpha=.4*(1-a.radius/a.maxRadius),a.radius>=a.maxRadius){u.splice(o,1);continue}e.strokeStyle=`rgba(255, 200, 200, ${a.alpha})`,e.lineWidth=1,e.beginPath(),e.arc(a.x,a.y,a.radius,-Math.PI*.8,-Math.PI*.2),e.stroke(),e.beginPath(),e.arc(a.x,a.y,a.radius*.7,-Math.PI*.7,-Math.PI*.3),e.stroke()}}function m(i){e.strokeStyle="rgba(255, 180, 180, 0.04)",e.lineWidth=1;for(let o=0;o<c.length;o++)for(let a=o+1;a<c.length;a++){const t=c[o],l=c[a];e.beginPath(),e.moveTo(t.x,t.y-t.height);const r=(t.x+l.x)/2,s=Math.min(t.y-t.height,l.y-l.height)-20+Math.sin(i*.001+o)*5;e.quadraticCurveTo(r,s,l.x,l.y-l.height),e.stroke()}if(Math.random()<.02&&c.length>=2){const o=c[Math.floor(Math.random()*c.length)];v.push({x:o.x,y:o.y-o.height,vx:(Math.random()-.5)*2,vy:(Math.random()-.5)*1-.5,life:0,maxLife:60+Math.random()*40})}for(let o=v.length-1;o>=0;o--){const a=v[o];if(a.x+=a.vx,a.y+=a.vy,a.life++,a.life>=a.maxLife){v.splice(o,1);continue}const t=Math.sin(a.life/a.maxLife*Math.PI)*.8;e.fillStyle=`rgba(255, 220, 220, ${t})`,e.beginPath(),e.arc(a.x,a.y,1.5,0,Math.PI*2),e.fill()}}function x(i){const o=h<640?110:180,a=o*.85,t=o*.45,l=.38,r=h-o*.35,s=d+a*.25,f="rgba(200, 155, 90, 0.82)",g="rgba(160, 118, 62, 0.82)",b="rgba(220, 180, 115, 0.90)",w="rgba(110, 80, 40, 0.60)",E="rgba(190, 145, 78, 0.75)",D="rgba(145, 108, 55, 0.75)",F="rgba(220, 210, 170, 0.70)",P={x:r-o,y:s-a},T={x:r,y:s-a},p={x:r,y:s},H={x:r-o,y:s},I={x:P.x+t,y:P.y-t*l},k={x:T.x+t,y:T.y-t*l},C={x:p.x+t,y:p.y-t*l};e.fillStyle=f,e.beginPath(),e.moveTo(H.x,H.y),e.lineTo(P.x,P.y),e.lineTo(T.x,T.y),e.lineTo(p.x,p.y),e.closePath(),e.fill(),e.fillStyle=g,e.beginPath(),e.moveTo(p.x,p.y),e.lineTo(T.x,T.y),e.lineTo(k.x,k.y),e.lineTo(C.x,C.y),e.closePath(),e.fill(),e.fillStyle=b,e.beginPath(),e.moveTo(P.x,P.y),e.lineTo(I.x,I.y),e.lineTo(k.x,k.y),e.lineTo(T.x,T.y),e.closePath(),e.fill();const W=o*.22,j=.18,X=(P.x+I.x)/2,G=(P.y+I.y)/2;e.fillStyle=E,e.beginPath(),e.moveTo(P.x,P.y),e.lineTo(X,G),e.lineTo(X,G-W),e.lineTo(P.x,P.y-W-W*j),e.closePath(),e.fill();const N=(T.x+k.x)/2,O=(T.y+k.y)/2;e.fillStyle=D,e.beginPath(),e.moveTo(T.x,T.y),e.lineTo(N,O),e.lineTo(N,O-W*.9),e.lineTo(T.x,T.y-W*.85),e.closePath(),e.fill(),e.fillStyle="rgba(175, 132, 65, 0.70)",e.beginPath(),e.moveTo(I.x,I.y),e.lineTo(k.x,k.y),e.lineTo(k.x-t*.15,k.y-W*.7),e.lineTo(I.x-t*.1,I.y-W*.65),e.closePath(),e.fill();const Y=s-a*.5,L=10;e.fillStyle=F,e.fillRect(r-o,Y-L/2,o,L),e.beginPath(),e.moveTo(p.x,Y-L/2),e.lineTo(C.x,Y-L/2-t*l),e.lineTo(C.x,Y+L/2-t*l),e.lineTo(p.x,Y+L/2),e.closePath(),e.fill(),e.strokeStyle="rgba(150, 105, 50, 0.25)",e.lineWidth=1;for(let J=1;J<7;J++){const $=s-a*(J/7);e.beginPath(),e.moveTo(H.x,$),e.lineTo(p.x,$),e.stroke()}e.strokeStyle=w,e.lineWidth=1.5,e.beginPath(),e.moveTo(H.x,H.y),e.lineTo(P.x,P.y),e.lineTo(T.x,T.y),e.lineTo(p.x,p.y),e.closePath(),e.stroke(),e.beginPath(),e.moveTo(P.x,P.y),e.lineTo(I.x,I.y),e.lineTo(k.x,k.y),e.lineTo(T.x,T.y),e.closePath(),e.stroke(),e.beginPath(),e.moveTo(T.x,T.y),e.lineTo(k.x,k.y),e.lineTo(C.x,C.y),e.lineTo(p.x,p.y),e.closePath(),e.stroke(),e.beginPath(),e.moveTo(p.x,p.y),e.lineTo(C.x,C.y),e.stroke()}function n(i){e.clearRect(0,0,h,d);const o=e.createLinearGradient(0,0,h,d);o.addColorStop(0,"#7f1d1d"),o.addColorStop(.5,"#991b1b"),o.addColorStop(1,"#7f1d1d"),e.fillStyle=o,e.fillRect(0,0,h,d),e.strokeStyle="rgba(255,255,255,0.02)",e.lineWidth=1;const a=40;for(let t=0;t<h;t+=a)e.beginPath(),e.moveTo(t,0),e.lineTo(t,d),e.stroke();for(let t=0;t<d;t+=a)e.beginPath(),e.moveTo(0,t),e.lineTo(h,t),e.stroke();m(i),A(i),M(),B(),x(),requestAnimationFrame(n)}R(),window.addEventListener("resize",R),requestAnimationFrame(n)})();(function(){const y=document.getElementById("factory-canvas");if(!y)return;const e=y.getContext("2d");let h=0,d=0,u=[],c=[],v=[],S=[],R=0;function z(){const M=Math.min(window.devicePixelRatio||1,2);h=y.clientWidth,d=y.clientHeight,y.width=h*M,y.height=d*M,e.setTransform(M,0,0,M,0,0),q()}function q(){u=[],v=[];const M=h<640?3:5,m=h/(M+1);for(let x=0;x<M;x++){const n=m*(x+1);u.push({x:n,y:d*.4,phase:Math.random()*Math.PI*2,type:x%3}),v.push({x:n-15,y:d*.72,r:8+Math.random()*4,angle:Math.random()*Math.PI,speed:.02+Math.random()*.02}),v.push({x:n+15,y:d*.72,r:6+Math.random()*3,angle:Math.random()*Math.PI,speed:-.025-Math.random()*.02})}}function B(){if(c.length>(h<640?3:5))return;const M=c[c.length-1],m=h<640?80:120;M&&M.x<m||c.push({x:-40,y:d*.55,stage:0,speed:.3+Math.random()*.2,done:!1})}function A(M){e.clearRect(0,0,h,d),e.fillStyle="#0f1d2e",e.fillRect(0,0,h,d),R=(R+.5)%12;const m=d*.58;e.fillStyle="rgba(45, 78, 120, 0.6)",e.fillRect(0,m-4,h,8),e.strokeStyle="rgba(140, 180, 220, 0.4)",e.lineWidth=1.5;for(let i=-R;i<h;i+=12)e.beginPath(),e.moveTo(i,m-4),e.lineTo(i+5,m+4),e.stroke();for(const i of v){i.angle+=i.speed,e.strokeStyle="rgba(120, 170, 220, 0.45)",e.lineWidth=2,e.beginPath(),e.arc(i.x,i.y,i.r,0,Math.PI*2),e.stroke();for(let o=0;o<6;o++){const a=i.angle+o/6*Math.PI*2;e.beginPath(),e.moveTo(i.x+Math.cos(a)*(i.r-2),i.y+Math.sin(a)*(i.r-2)),e.lineTo(i.x+Math.cos(a)*(i.r+4),i.y+Math.sin(a)*(i.r+4)),e.stroke()}}for(const i of u){i.phase+=.03;const o=i.y+Math.sin(i.phase)*8,a=i.x+Math.cos(i.phase*.7)*3;e.fillStyle="rgba(90, 145, 200, 0.5)",e.fillRect(i.x-10,i.y-18,20,25),e.strokeStyle="rgba(140, 190, 240, 0.4)",e.lineWidth=1,e.strokeRect(i.x-10,i.y-18,20,25),e.fillStyle="rgba(120, 170, 220, 0.6)",e.beginPath(),e.arc(i.x,i.y-24,8,0,Math.PI*2),e.fill(),e.strokeStyle="rgba(160, 200, 240, 0.4)",e.stroke();const t=Math.sin(M*.003+i.phase)>.8;e.fillStyle=t?"rgba(255, 200, 60, 1)":"rgba(80, 240, 180, 0.9)",e.beginPath(),e.arc(i.x-3,i.y-25,2.5,0,Math.PI*2),e.fill(),e.beginPath(),e.arc(i.x+3,i.y-25,2.5,0,Math.PI*2),e.fill();const l=e.createRadialGradient(i.x,i.y-25,0,i.x,i.y-25,12);l.addColorStop(0,t?"rgba(255, 200, 60, 0.15)":"rgba(80, 240, 180, 0.1)"),l.addColorStop(1,"rgba(0,0,0,0)"),e.fillStyle=l,e.beginPath(),e.arc(i.x,i.y-25,12,0,Math.PI*2),e.fill(),e.strokeStyle="rgba(140, 190, 240, 0.6)",e.lineWidth=3,e.beginPath(),e.moveTo(i.x+8,i.y-5),e.lineTo(a+18,o+5),e.lineTo(a+20,o+15),e.stroke(),e.beginPath(),e.moveTo(a+18,o+15),e.lineTo(a+15,o+20),e.moveTo(a+18,o+15),e.lineTo(a+21,o+20),e.stroke(),Math.random()<.04&&S.push({x:a+18,y:o+18,vx:(Math.random()-.5)*2,vy:-Math.random()*1.5,life:20+Math.random()*15})}for(let i=S.length-1;i>=0;i--){const o=S[i];if(o.x+=o.vx,o.y+=o.vy,o.vy+=.05,o.life--,o.life<=0){S.splice(i,1);continue}const a=o.life/30;e.fillStyle=`rgba(201, 180, 80, ${a})`,e.beginPath(),e.arc(o.x,o.y,1,0,Math.PI*2),e.fill()}Math.random()<.015&&B();for(let i=c.length-1;i>=0;i--){const o=c[i];if(o.x+=o.speed,o.x>h+30){c.splice(i,1);continue}const a=o.x/h,t=h<640?40:56,l=h<640?32:44,r=a<.3?"rgba(220, 160, 140, 0.7)":a<.6?"rgba(160, 210, 160, 0.7)":"rgba(80, 220, 140, 0.85)";e.fillStyle="rgba(0,0,0,0.15)",e.fillRect(o.x-t/2+2,m-l+2,t,l),e.fillStyle=r,e.fillRect(o.x-t/2,m-l,t,l),e.strokeStyle="rgba(255,255,255,0.2)",e.lineWidth=1,e.strokeRect(o.x-t/2,m-l,t,l),e.strokeStyle="rgba(255,255,255,0.3)",e.beginPath(),e.moveTo(o.x,m-l),e.lineTo(o.x,m),e.stroke(),a>.7&&(e.strokeStyle="rgba(255, 255, 255, 0.9)",e.lineWidth=2,e.beginPath(),e.moveTo(o.x-5,m-l/2),e.lineTo(o.x-1,m-l/2+4),e.lineTo(o.x+6,m-l/2-5),e.stroke())}const x=["MAILBOX","INCORP","BINDER","BANKING","CRTC"],n=u.length;e.font=h<640?"bold 10px 'JetBrains Mono', monospace":"bold 13px 'JetBrains Mono', monospace",e.textAlign="center";for(let i=0;i<Math.min(x.length,n);i++)e.fillStyle="rgba(180, 210, 240, 0.6)",e.fillText(x[i],u[i].x,d*.88);requestAnimationFrame(A)}z(),window.addEventListener("resize",z),requestAnimationFrame(A)})();(function(){const y=document.getElementById("carrier-canvas");if(!y)return;const e=y.getContext("2d");let h,d,u;function c(n,i,o,a){const t=a*.5;n.lineWidth=t*.22,n.lineCap="round",n.strokeStyle=n.fillStyle,n.beginPath(),n.arc(i,o-t*.9,t*.38,0,Math.PI*2),n.stroke(),n.beginPath(),n.arc(i,o+t*.9,t*.32,0,Math.PI*2),n.stroke(),n.beginPath(),n.moveTo(i,o-t*.52),n.bezierCurveTo(i+t*.55,o-t*.2,i-t*.55,o+t*.2,i,o+t*.58),n.stroke()}function v(n,i,o,a){const t=a*.5;n.lineWidth=t*.13,n.lineCap="round",n.lineJoin="round",n.strokeStyle=n.fillStyle,n.strokeRect(i-t*.7,o-t*.1,t*1.4,t*.9);const l=t*.07;for(let r=0;r<3;r++)for(let s=0;s<3;s++)n.beginPath(),n.arc(i-t*.35+s*t*.35,o+t*.28+r*t*.22,l,0,Math.PI*2),n.fill();n.beginPath(),n.moveTo(i-t*.55,o-t*.22),n.bezierCurveTo(i-t*.3,o-t*.55,i+t*.3,o-t*.55,i+t*.55,o-t*.22),n.stroke()}function S(n,i,o,a){const t=a*.5;n.lineWidth=t*.12,n.lineCap="round",n.lineJoin="round",n.strokeStyle=n.fillStyle;const l=i-t*.42,r=o-t*.85,s=t*.84,f=t*1.6;n.strokeRect(l,r,s,f),n.strokeRect(l+s*.15,r+f*.08,s*.7,f*.25),n.beginPath(),n.moveTo(l+s*.7,r),n.lineTo(l+s*.85,r-f*.28),n.stroke();for(let g=0;g<3;g++)n.beginPath(),n.moveTo(l+s*.15,r+f*.44+g*f*.16),n.lineTo(l+s*.85,r+f*.44+g*f*.16),n.stroke()}function R(n,i,o,a){const t=a*.5;n.lineWidth=t*.11,n.lineCap="round",n.lineJoin="round",n.strokeStyle=n.fillStyle;const l=t*.18,r=i-t*.38,s=o-t*.82,f=t*.76,g=t*1.64;n.beginPath(),n.moveTo(r+l,s),n.lineTo(r+f-l,s),n.arcTo(r+f,s,r+f,s+l,l),n.lineTo(r+f,s+g-l),n.arcTo(r+f,s+g,r+f-l,s+g,l),n.lineTo(r+l,s+g),n.arcTo(r,s+g,r,s+g-l,l),n.lineTo(r,s+l),n.arcTo(r,s,r+l,s,l),n.closePath(),n.stroke(),n.strokeRect(r+f*.1,s+g*.08,f*.8,g*.72),n.beginPath(),n.arc(i,s+g*.9,t*.1,0,Math.PI*2),n.stroke(),n.beginPath(),n.arc(i,s+g*.04,t*.05,0,Math.PI*2),n.fill()}function z(n,i,o,a){const t=a*.5;n.lineWidth=t*.13,n.lineCap="round",n.strokeStyle=n.fillStyle,n.strokeRect(i-t*.65,o-t*.75,t*1.3,t*1.4),n.beginPath(),n.arc(i,o+t*.1,t*.45,0,Math.PI*2),n.stroke();for(let l=0;l<6;l++){const r=l/6*Math.PI*2-Math.PI/2;n.beginPath(),n.arc(i+Math.cos(r)*t*.28,o+t*.1+Math.sin(r)*t*.28,t*.06,0,Math.PI*2),n.fill()}n.beginPath(),n.moveTo(i-t*.52,o-t*.62),n.bezierCurveTo(i-t*.2,o-t*1.05,i+t*.2,o-t*1.05,i+t*.52,o-t*.62),n.stroke()}function q(n,i,o,a){const t=a*.5;n.lineWidth=t*.12,n.lineCap="round",n.lineJoin="round",n.strokeStyle=n.fillStyle,n.strokeRect(i-t*.55,o-t*1,t*1.1,t*1.9),n.strokeRect(i-t*.22,o-t*.78,t*.44,t*.12),n.strokeRect(i-t*.38,o-t*.55,t*.76,t*.22),n.beginPath(),n.moveTo(i+t*.55,o-t*.6),n.bezierCurveTo(i+t*1.1,o-t*.3,i+t*1.1,o+t*.3,i+t*.55,o+t*.55),n.stroke();for(let l=0;l<4;l++)n.beginPath(),n.arc(i+t*.72,o-t*.05+l*t*.22,t*.08,0,Math.PI*1.8),n.stroke()}const B=[c,v,S,R,z,q];function A(){const n=Math.max(12,Math.floor(h*d/14e3));u=Array.from({length:n},(i,o)=>({x:Math.random()*h,y:Math.random()*d,vx:(Math.random()-.5)*.35,vy:(Math.random()-.5)*.35,size:28+Math.random()*24,rot:Math.random()*Math.PI*2,vrot:(Math.random()-.5)*.008,type:o%B.length,alpha:.35+Math.random()*.35}))}function M(){h=y.offsetWidth,d=y.offsetHeight,y.width=h,y.height=d,A()}function m(){e.clearRect(0,0,h,d);for(const n of u)n.x+=n.vx,n.y+=n.vy,n.rot+=n.vrot,n.x<-60&&(n.x=h+60),n.x>h+60&&(n.x=-60),n.y<-60&&(n.y=d+60),n.y>d+60&&(n.y=-60),e.save(),e.globalAlpha=n.alpha,e.translate(n.x,n.y),e.rotate(n.rot),e.fillStyle="#ffaaaa",e.strokeStyle="#ffaaaa",B[n.type](e,0,0,n.size),e.restore();requestAnimationFrame(m)}M(),m(),new ResizeObserver(M).observe(y.parentElement)})();
|