1"use strict";(self.webpackChunkNTI_ParcelProtect=self.webpackChunkNTI_ParcelProtect||[]).push([[7480],{1879(){const t="[data-tc-done]",e=2e3,n=["#3B38FF","#FF02FF","#00D3E8","#22C55E","#FFC53D"];function a(t){return(t=Math.min(Math.max(t,0),1))*t*t}function o(o){var r;const i=Array.from(o.querySelectorAll("[data-tc-panel]"));if(!i.length)return;const s=i.map(e=>{var n,a,o,r;return{fill:e.querySelector("[data-tc-rail-fill]"),cells:Array.from(e.querySelectorAll("[data-tc-rail-cell]")),doneEls:Array.from(e.querySelectorAll(t)),days:parseFloat(null!==(n=e.dataset.tcDays)&&void 0!==n?n:"1"),railSegments:parseInt(null!==(a=e.dataset.tcMaxDays)&&void 0!==a?a:"7",10),isGreenCheck:null!==(o=null===(r=e.querySelector(t))||void 0===r?void 0:r.classList.contains("w-time-comparison__panel-done--green"))&&void 0!==o&&o}}),l=s.map(t=>t.days),c=Math.min(...l),d=Math.max(...l),h=function(t){if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return{burst:()=>{}};const e=document.createElement("canvas");Object.assign(e.style,{position:"absolute",top:"-40px",left:"-40px",width:"calc(100% + 80px)",height:"calc(100% + 80px)",pointerEvents:"none",zIndex:"10"}),"static"===getComputedStyle(t).position&&(t.style.position="relative"),t.appendChild(e);const a=e.getContext("2d");let o=[],r=null,i=0;function s(){a.setTransform(1,0,0,1,0,0),a.clearRect(0,0,e.width,e.height),a.setTransform(devicePixelRatio||1,0,0,devicePixelRatio||1,0,0)}function l(t){const e=i?Math.min(t-i,34):16;i=t,s(),o=o.filter(t=>{t.life+=e,t.vy+=.032*e,t.vx*=.992,t.x+=t.vx*e/16,t.y+=t.vy*e/16,t.rot+=t.vr;const n=Math.max(0,1-t.life/t.max);return!(n<=0||(a.save(),a.globalAlpha=n,a.translate(t.x,t.y),a.rotate(t.rot),a.fillStyle=t.col,a.fillRect(-t.w/2,-t.h/2,t.w,t.h),a.restore(),0))}),o.length?r=requestAnimationFrame(l):(r=null,i=0,s())}return{burst:function(i){!function(){const n=devicePixelRatio||1;e.width=(t.offsetWidth+80)*n,e.height=(t.offsetHeight+80)*n,a.setTransform(n,0,0,n,0,0)}();const s=t.getBoundingClientRect(),c=i.getBoundingClientRect(),d=c.left-s.left+c.width/2+40,h=c.top-s.top+c.height/2+40;for(let t=0;t<36;t++){const t=(100*Math.random()-130)*Math.PI/180,e=3.5+6*Math.random();o.push({x:d,y:h,vx:Math.cos(t)*e+2*(Math.random()-.5),vy:Math.sin(t)*e,w:4+5*Math.random(),h:6+7*Math.random(),rot:Math.random()*Math.PI,vr:.35*(Math.random()-.5),col:n[Math.floor(Math.random()*n.length)],life:0,max:1100+600*Math.random()})}r||(r=requestAnimationFrame(l))}}}(o),m=s.map(function(t){const n=d>c&&t.days===d,o=n?6100:e;let r=null,i=0,s=!1;function l(r){r=Math.max(0,Math.min(r,o+50));const i=Math.min(r/e,1),l=n?c*a(i)+(t.days-c)*(d=Math.max(0,Math.min((r-e)/4100,1)),d=Math.min(Math.max(d,0),1),-Math.pow(d,3)+Math.pow(d,2)+d):t.days*a(i);var d;!function(t,e,n){const a=Math.min(Math.max(n,0),1);a<=0?(t.style.width="0%",t.style.opacity="0"):a>=1?(t.style.width="100%",t.style.opacity="1"):(t.style.width=`calc(${100*a}% - 4px)`,t.style.opacity="1"),e.forEach((t,n)=>{t.classList.toggle("is-lit",a>(n+.5)/e.length)})}(t.fill,t.cells,l/t.railSegments),l>=t.days-.001?t.doneEls.some(t=>t.classList.contains("is-done"))||(t.doneEls.forEach(t=>t.classList.add("is-done")),t.isGreenCheck&&!s&&(s=!0,requestAnimationFrame(()=>{const e=t.doneEls.find(t=>null!==t.offsetParent);e&&h.burst(e)}))):t.doneEls.forEach(t=>t.classList.remove("is-done"))}function m(t){i||(i=t);const e=t-i;try{l(e)}catch(t){console.error("Time Comparison Widget: render error",t)}e<o+200&&(r=requestAnimationFrame(m))}return{start(){cancelAnimationFrame(r),i=0,s=!1,t.doneEls.forEach(t=>t.classList.remove("is-done")),l(0),r=requestAnimationFrame(m)},jumpToEnd(){cancelAnimationFrame(r),l(o+100)}}});let u=!1;if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return void m.forEach(t=>t.jumpToEnd());const f=Array.from(o.querySelectorAll(".w-time-comparison__footer")),p=null!==(r=f[f.length-1])&&void 0!==r?r:o,y=new IntersectionObserver(t=>{t.forEach(t=>{t.isIntersecting&&!u&&(u=!0,m.forEach(t=>t.start()),y.disconnect())})},{threshold:1});y.observe(p)}!function(){function t(){document.querySelectorAll("[data-time-comparison]").forEach(o)}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",t):t()}()}},t=>{t(t.s=1879)}]);
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.