1(()=>{var be=Object.defineProperty;var we=(I,h,m)=>()=>{if(m)throw m[0];try{return I&&(h=I(I=0)),h}catch(T){throw m=[T],T}};var Ce=(I,h)=>{for(var m in h)be(I,m,{get:h[m],enumerable:!0})};var Z={};Ce(Z,{create:()=>xe,default:()=>Te});var A,Te,xe,_=we(()=>{A={};(function I(h,m,T,M){var L=!!(h.Worker&&h.Blob&&h.Promise&&h.OffscreenCanvas&&h.OffscreenCanvasRenderingContext2D&&h.HTMLCanvasElement&&h.HTMLCanvasElement.prototype.transferControlToOffscreen&&h.URL&&h.URL.createObjectURL),N=typeof Path2D=="function"&&typeof DOMMatrix=="function",H=(function(){if(!h.OffscreenCanvas)return!1;try{var r=new OffscreenCanvas(1,1),e=r.getContext("2d");e.fillRect(0,0,1,1);var a=r.transferToImageBitmap();e.createPattern(a,"no-repeat")}catch{return!1}return!0})();function W(){}function P(r){var e=m.exports.Promise,a=e!==void 0?e:h.Promise;return typeof a=="function"?new a(r):(r(W,W),null)}var k=(function(r,e){return{transform:function(a){if(r)return a;if(e.has(a))return e.get(a);var t=new OffscreenCanvas(a.width,a.height),o=t.getContext("2d");return o.drawImage(a,0,0),e.set(a,t),t},clear:function(){e.clear()}}})(H,new Map),F=(function(){var r=Math.floor(16.666666666666668),e,a,t={},o=0;return typeof requestAnimationFrame=="function"&&typeof cancelAnimationFrame=="function"?(e=function(i){var s=Math.random();return t[s]=requestAnimationFrame(function n(l){o===l||o+r-1<l?(o=l,delete t[s],i()):t[s]=requestAnimationFrame(n)}),s},a=function(i){t[i]&&cancelAnimationFrame(t[i])}):(e=function(i){return setTimeout(i,r)},a=function(i){return clearTimeout(i)}),{frame:e,cancel:a}})(),q=(function(){var r,e,a={};function t(o){function i(s,n){o.postMessage({options:s||{},callback:n})}o.init=function(n){var l=n.transferControlToOffscreen();o.postMessage({canvas:l},[l])},o.fire=function(n,l,u){if(e)return i(n,null),e;var f=Math.random().toString(36).slice(2);return e=P(function(d){function v(p){p.data.callback===f&&(delete a[f],o.removeEventListener("message",v),e=null,k.clear(),u(),d())}o.addEventListener("message",v),i(n,f),a[f]=v.bind(null,{data:{callback:f}})}),e},o.reset=function(){o.postMessage({reset:!0});for(var n in a)a[n](),delete a[n]}}return function(){if(r)return r;if(!T&&L){var o=["var CONFETTI, SIZE = {}, module = {};","("+I.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {"," if (msg.data.options) {"," CONFETTI(msg.data.options).then(function () {"," if (msg.data.callback) {"," postMessage({ callback: msg.data.callback });"," }"," });"," } else if (msg.data.reset) {"," CONFETTI && CONFETTI.reset();"," } else if (msg.data.resize) {"," SIZE.width = msg.data.resize.width;"," SIZE.height = msg.data.resize.height;"," } else if (msg.data.canvas) {"," SIZE.width = msg.data.canvas.width;"," SIZE.height = msg.data.canvas.height;"," CONFETTI = module.exports.create(msg.data.canvas);"," }","}"].join(` 2`);try{r=new Worker(URL.createObjectURL(new Blob([o])))}catch(i){return typeof console<"u"&&typeof console.warn=="function"&&console.warn("\u{1F38A} Could not load worker",i),null}t(r)}return r}})(),$={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function G(r,e){return e?e(r):r}function J(r){return r!=null}function g(r,e,a){return G(r&&J(r[e])?r[e]:$[e],a)}function Q(r){return r<0?0:Math.floor(r)}function X(r,e){return Math.floor(Math.random()*(e-r))+r}function S(r){return parseInt(r,16)}function Y(r){return r.map(ee)}function ee(r){var e=String(r).replace(/[^0-9a-f]/gi,"");return e.length<6&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),{r:S(e.substring(0,2)),g:S(e.substring(2,4)),b:S(e.substring(4,6))}}function re(r){var e=g(r,"origin",Object);return e.x=g(e,"x",Number),e.y=g(e,"y",Number),e}function ae(r){r.width=document.documentElement.clientWidth,r.height=document.documentElement.clientHeight}function ne(r){var e=r.getBoundingClientRect();r.width=e.width,r.height=e.height}function te(r){var e=document.createElement("canvas");return e.style.position="fixed",e.style.top="0px",e.style.left="0px",e.style.pointerEvents="none",e.style.zIndex=r,e}function oe(r,e,a,t,o,i,s,n,l){r.save(),r.translate(e,a),r.rotate(i),r.scale(t,o),r.arc(0,0,1,s,n,l),r.restore(
vendor: 7,181 bytes, line 2
2)}function ie(r){var e=r.angle*(Math.PI/180),a=r.spread*(Math.PI/180);return{x:r.x,y:r.y,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:r.startVelocity*.5+Math.random()*r.startVelocity,angle2D:-e+(.5*a-Math.random()*a),tiltAngle:(Math.random()*(.75-.25)+.25)*Math.PI,color:r.color,shape:r.shape,tick:0,totalTicks:r.ticks,decay:r.decay,drift:r.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:r.gravity*3,ovalScalar:.6,scalar:r.scalar,flat:r.flat}}function se(r,e){e.x+=Math.cos(e.angle2D)*e.velocity+e.drift,e.y+=Math.sin(e.angle2D)*e.velocity+e.gravity,e.velocity*=e.decay,e.flat?(e.wobble=0,e.wobbleX=e.x+10*e.scalar,e.wobbleY=e.y+10*e.scalar,e.tiltSin=0,e.tiltCos=0,e.random=1):(e.wobble+=e.wobbleSpeed,e.wobbleX=e.x+10*e.scalar*Math.cos(e.wobble),e.wobbleY=e.y+10*e.scalar*Math.sin(e.wobble),e.tiltAngle+=.1,e.tiltSin=Math.sin(e.tiltAngle),e.tiltCos=Math.cos(e.tiltAngle),e.random=Math.random()+2);var a=e.tick++/e.totalTicks,t=e.x+e.random*e.tiltCos,o=e.y+e.random*e.tiltSin,i=e.wobbleX+e.random*e.tiltCos,s=e.wobbleY+e.random*e.tiltSin;if(r.fillStyle="rgba("+e.color.r+", "+e.color.g+", "+e.color.b+", "+(1-a)+")",r.beginPath(),N&&e.shape.type==="path"&&typeof e.shape.path=="string"&&Array.isArray(e.shape.matrix))r.fill(ce(e.shape.path,e.shape.matrix,e.x,e.y,Math.abs(i-t)*.1,Math.abs(s-o)*.1,Math.PI/10*e.wobble));else if(e.shape.type==="bitmap"){var n=Math.PI/10*e.wobble,l=Math.abs(i-t)*.1,u=Math.abs(s-o)*.1,f=e.shape.bitmap.width*e.scalar,d=e.shape.bitmap.height*e.scalar,v=new DOMMatrix([Math.cos(n)*l,Math.sin(n)*l,-Math.sin(n)*u,Math.cos(n)*u,e.x,e.y]);v.multiplySelf(new DOMMatrix(e.shape.matrix));var p=r.createPattern(k.transform(e.shape.bitmap),"no-repeat");p.setTransform(v),r.globalAlpha=1-a,r.fillStyle=p,r.fillRect(e.x-f/2,e.y-d/2,f,d),r.globalAlpha=1}else if(e.shape==="circle")r.ellipse?r.ellipse(e.x,e.y,Math.abs(i-t)*e.ovalScalar,Math.abs(s-o)*e.ovalScalar,Math.PI/10*e.wobble,0,2*Math.PI):oe(r,e.x,e.y,Math.abs(i-t)*e.ovalScalar,Math.abs(s-o)*e.ovalScalar,Math.PI/10*e.wobble,0,2*Math.PI);else if(e.shape==="star")for(var c=Math.PI/2*3,y=4*e.scalar,b=8*e.scalar,w=e.x,x=e.y,E=5,C=Math.PI/E;E--;)w=e.x+Math.cos(c)*b,x=e.y+Math.sin(c)*b,r.lineTo(w,x),c+=C,w=e.x+Math.cos(c)*y,x=e.y+Math.sin(c)*y,r.lineTo(w,x),c+=C;else r.moveTo(Math.floor(e.x),Math.floor(e.y)),r.lineTo(Math.floor(e.wobbleX),Math.floor(o)),r.lineTo(Math.floor(i),Math.floor(s)),r.lineTo(Math.floor(t),Math.floor(e.wobbleY));return r.closePath(),r.fill(),e.tick<e.totalTicks}function le(r,e,a,t,o){var i=e.slice(),s=r.getContext("2d"),n,l,u=P(function(f){function d(){n=l=null,s.clearRect(0,0,t.width,t.height),k.clear(),o(),f()}function v(){T&&!(t.width===M.width&&t.height===M.height)&&(t.width=r.width=M.width,t.height=r.height=M.height),!t.width&&!t.height&&(a(r),t.width=r.width,t.height=r.height),s.clearRect(0,0,t.width,t.height),i=i.filter(function(p){return se(s,p)}),i.length?n=F.frame(v):d()}n=F.frame(v),l=d});return{addFettis:function(f){return i=i.concat(f),u},canvas:r,promise:u,reset:function(){n&&F.cancel(n),l&&l()}}}function j(r,e){var a=!r,t=!!g(e||{},"resize"),o=!1,i=g(e,"disableForReducedMotion",Boolean),s=L&&!!g(e||{},"useWorker"),n=s?q():null,l=a?ae:ne,u=r&&n?!!r.__confetti_initialized:!1,f=typeof matchMedia=="function"&&matchMedia("(prefers-reduced-motion)").matches,d;function v(c,y,b){for(var w=g(c,"particleCount",Q),x=g(c,"angle",Number),E=g(c,"spread",Number),C=g(c,"startVelocity",Number),de=g(c,"decay",Number),fe=g(c,"gravity",Number),ve=g(c,"drift",Number),U=g(c,"colors",Y),me=g(c,"ticks",Number),z=g(c,"shapes"),ge=g(c,"scalar"),pe=!!g(c,"flat"),K=re(c),V=w,R=[],ye=r.width*K.x,Me=r.height*K.y;V--;)R.push(ie({x:ye,y:Me,angle:x,spread:E,startVelocity:C,color:U[V%U.length],shape:z[X(0,z.length)],ticks:me,decay:de,gravity:fe,drift:ve,scalar:ge,flat:pe}));return d?d.addFettis(R):(d=le(r,R,l,y,b),d.promise)}function p(c){var y=i||g(c,"disableForReducedMotion",Boolean),b=g(c,"zIndex",Number);if(y&&f)return P(function(C){C()});a&&d?r=d.canvas:a&&!r&&(r=te(b),document.body.appendChild(r)),t&&!u&&l(r);var w={width:r.width,height:r.height};n&&!u&&n.init(r),u=!0,n&&(r.__confetti_initialized=!0);function x(){if(n){var C={getBoundingClientRect:function(){if(!a)return r.getBoundingClientRect()}};l(C),n.postMessage({resize:{width:C.width,height:C.height}});return}w.width=w.height=null}function E(){d=null,t&&(o=!1,h.removeEventListener("resize",x)),a&&r&&(document.body.contains(r)&&document.body.removeChild(r),r=null,u=!1)}return t&&!o&&(o=!0,h.addEventListener("resize",x,!1)),n?n.fire(c,w,E):v(c,w,E)}return p.reset=function(){n&&n.reset(),d&&d.reset()},p}var O;function D(){return O||(O=j(null,{useWorker:!0,resize:!0})),O}function ce(r,e,a,t,o,i,s){var n=new Path2D(r),l=new Path2D;l.addPath(n,new DOMMatrix(e));var u=new Path2D;return u.addPath(l,new DOMMatrix([Math.cos(s)*o,Math.sin(s)*o,-Math.sin(s)*i,Math.cos(s)*i,a,t])),u}function he(r){if(!N)throw new Error("path confetti are not supported in this browser");var e,a;typeof r=="string"?e=r:(e=r.path,a=r.matrix);var t=new Path2D(e),o=document.createElement("canvas"),i=o.getContext("2d");if(!a){for(var s=1e3,n=s,l=s,u=0,f=0,d,v,p=0;p<s;p+=2)for(var c=0;c<s;c+=2)i.isPointInPath(t,p,c,"nonzero")&&(n=Math.min(n,p),l=Math.min(l,c),u=Math.max(u,p),f=Math.max(f,c));d=u-n,v=f-l;var y=10,b=Math.min(y/d,y/v);a=[b,0,0,b,-Math.round(d/2+n)*b,-Math.round(v/2+l)*b]}return{type:"path",path:e,matrix:a}}function ue(r){var e,a=1,t="#000000",o='"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif';typeof r=="string"?e=r:(e=r.text,a="scalar"in r?r.scalar:a,o="fontFamily"in r?r.fontFamily:o,t="color"in r?r.color:t);var i=10*a,s=""+i+"px "+o,n=new OffscreenCanvas(i,i),l=n.getContext("2d");l.font=s;var u=l.measureText(e),f=Math.ceil(u.actualBoundingBoxRight+u.actualBoundingBoxLeft),d=Math.ceil(u.actualBoundingBoxAscent+u.actualBoundingBoxDescent),v=2,p=u.actualBoundingBoxLeft+v,c=u.actualBoundingBoxAscent+v;f+=v+v,d+=v+v,n=new OffscreenCanvas(f,d),l=n.getContext("2d"),l.font=s,l.fillStyle=t,l.fillText(e,p,c);var y=1/a;return{type:"bitmap",bitmap:n.transferToImageBitmap(),matrix:[y,0,0,y,-f*y/2,-d*y/2]}}m.exports=function(){return D().apply(this,arguments)},m.exports.reset=function(){D().reset()},m.exports.create=j,m.exports.shapeFromPath=he,m.exports.shapeFromText=ue})((function(){return typeof window<"u"?window:typeof self<"u"?self:this||{}})(),A,!1);Te=A.exports,xe=A.exports.create});var B=class extends HTMLElement{constructor(){super(),this.keywords=["eleventy","excellent"];let h=this.getAttribute("keyword");h&&this.keywords.push(h),this.shape=this.getAttribute("shape")||"\u2B50\uFE0F",this.particleCount=parseInt(this.getAttribute("particle-count"),10)||30,this.codes=this.keywords.map(m=>m.split("")),this.indexes=new Array(this.keywords.length).fill(0),this.handleKeydown=this.handleKeydown.bind(this)}connectedCallback(){document.addEventListener("keydown",this.handleKeydown)}disconnectedCallback(){document.removeEventListener("keydown",this.handleKeydown)}handleKeydown(h){let m=h.key.toLowerCase();
2this.codes.forEach((T,M)=>{T[this.indexes[M]]===m?(this.indexes[M]++,this.indexes[M]===T.length&&(this.triggerEffect(this.keywords[M]),this.indexes[M]=0)):this.indexes[M]=0})}triggerEffect(h){console.log(`Hooray ${h}!`),Promise.resolve().then(()=>(_(),Z)).then(({default:m})=>{let M=m.shapeFromText({text:this.shape,scalar:4});m({shapes:[M],scalar:4,particleCount:this.particleCount})})}};customElements.define("custom-easteregg",B);})();
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.