PageSourceSearch

https://www.arpdigital.ai/_next/static/immutable/chunks/2rgm40v5or9hc.js

js arpdigital.ai collected 2026-10-05 14:01:48 UTC 11,952 bytes, 130 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,673402,e=>{"use strict";var t=e.i(937533),a=e.i(312313);let o=["en"];e.i(547139);var r=e.i(949525);e.i(202528);var n=e.i(821656),i=e.i(24278);e.i(41604);var d=e.i(638825),f=e.i(265587),s=e.i(964852),u=e.i(710095),l=e.i(984461);function c({heading:e,description:a,homeHref:o,homeText:r,backText:m,onRetry:h,retryText:g}){return(0,t.jsx)("main",{children:(0,t.jsx)("section",{className:u.default.section,children:(0,t.jsxs)("div",{className:u.default.container,children:[(0,t.jsx)(i.TaperedFlowingBeamsShader,{beamCount:9,endWidth:1,color:d.baseColors.warmSand,flowEdgeFadeStart:.5,crossEdgeFadeStart:.5,flowEdgeFadeEnd:.5,crossEdgeFadeEnd:0,backgroundColor:d.baseColors.warmSand+"00",opacity:.6}),(0,t.jsx)(l.Logo,{height:40}),(0,t.jsx)("h1",{className:u.default.heading,children:e}),(0,t.jsx)("p",{className:`${u.default.description} body-large`,children:a}),(0,t.jsxs)("div",{className:u.default.actions,children:[h&&g?(0,t.jsx)(s.RetryButton,{text:g,onRetry:h}):null,(0,t.jsx)(n.Link,{prefetch:!0,href:o,text:r}),(0,t.jsx)(f.BackButton,{text:m})]})]})})})}let m={en:{heading:"Something went wrong",description:"An unexpected error occurred. Please try again, or return to the home page.",tryAgain:"Try again",goHome:"Go to home page",goBack:"Go back"},ar:{heading:"حدث خطأ ما",description:"حدث خطأ غير متوقع. يرجى المحاولة مرة أخرى أو العودة إلى الصفحة الرئيسية.",tryAgain:"حاول مرة أخرى",goHome:"الذهاب إلى الصفحة الرئيسية",goBack:"العودة"}};function h({error:e,reset:n}){(0,a.useEffect)(()=>{console.error(e)},[e]);let i=(0,a.useMemo)(()=>{var e,t;return"u"<typeof document?"en":(t=e=document.documentElement.lang,o.includes(t))?e:"en"},[]),d=m[i];return(0,t.jsx)(c,{heading:d.heading,description:d.description,homeHref:(0,r.withLocale)(i),homeText:d.goHome,backText:d.goBack,onRetry:n,retryText:d.tryAgain})}e.s(["default",0,function({error:e,reset:a}){return(0,t.jsx)(h,{error:e,reset:a})}],673402)},536828,e=>{e.v({canvas:"styles-module__GC85KW__canvas",container:"styles-module__GC85KW__container",content:"styles-module__GC85KW__content"})},24278,e=>{"use strict";var t=e.i(937533),a=e.i(312313);e.i(658811);var o=e.i(589698),r=e.i(553488),n=e.i(161642);e.i(41604);var i=e.i(638825),d=e.i(809616),f=e.i(167399);let s=`
2precision highp float;
3varying vec2 vUv;
4
5uniform float uTime;
6uniform float uBeams;
7uniform float uSpeed;
8uniform float uSpeedVariance;
9uniform float uBeamWidth;
10uniform float uBeamLength;
11uniform float uLengthVariance;
12uniform float uPhaseRandomness;
13uniform float uJitter;
14uniform float uCurve;
15uniform float uBalance;
16uniform float uEdgeSoftness;
17uniform float uBeamPeak;
18uniform float uFlowEdgeFadeStart;
19uniform float uFlowEdgeFadeEnd;
20uniform float uCrossEdgeFadeStart;
21uniform float uCrossEdgeFadeEnd;
22uniform bool uReverse;
23uniform bool uVertical;
24uniform vec4 uTint;
25uniform vec4 uBg;
26uniform float uAlpha;
27uniform vec2 uPointer;
28uniform float uCursorActive;
29uniform float uSeed;
30uniform float uStartWidth;
31uniform float uEndWidth;
32uniform int uWidthMode;
33uniform float uWidthPower;
34uniform float uWidthOffset;
35
36float hash(float n) {
37  return fract(sin(n * 12.9898 + uSeed * 31.7) * 43758.5453);
38}
39
40float remap(float v, float b) {
41  float g = exp(mix(-2.0, 2.0, b));
42  return pow(v, g);
43}
44
45float ease(float t, float p, int m) {
46  if (m == 1) return 1.0 - pow(1.0 - t, p);
47  if (m == 2) return t < 0.5
48    ? pow(2.0, p - 1.0) * pow(t, p)
49    : 1.0 - pow(-2.0 * t + 2.0, p) / 2.0;
50  return pow(t, p);
51}
52
53void main() {
54  vec2 coord = vUv;
55
56  float rawAx1 = uVertical ? coord.x : coord.y;
57  float rawAx2 = uVertical ? coord.y : coord.x;
58
59  float twT = clamp(rawAx2, 0.0, 1.0);
60  float tw = ease(twT, uWidthPower, uWidthMode);
61  float widthAt = clamp(mix(uStartWidth, uEndWidth, tw), 0.0, 1.0);
62
63  float center = 0.5 + uWidthOffset;
64  float halfW = widthAt * 0.5;
65  float left = center - halfW;
66  float right = center + halfW;
67
68  if (widthAt < 0.0001 || rawAx1 < left || rawAx1 > right) {
69    gl_FragColor = vec4(uBg.rgb, uBg.a * uAlpha);
70    return;
71  }
72
73  float ax1 = (rawAx1 - left) / max(widthAt, 0.0001);
74  float ax2 = rawAx2;
75
76  float crossAx = ax1;
77  float flowAx = ax2;
78  float fa = uReverse ? 1.0 - flowAx : flowAx;
79
80  float bandF = crossAx * max(uBeams, 1.0);
81  float bandIdx = floor(bandF);
82  float inBand = fract(bandF);
83
84  float rSpeed = hash(bandIdx * 1.17 + 2.31);
85  float rPhase = hash(bandIdx * 3.73 + 9.47);
86  float rLen = hash(bandIdx * 5.19 + 3.13);
87  float rPos = hash(bandIdx * 7.57 + 0.71);
88
89  float jitter = (rPos - 0.5) * uJitter;
90  float bwClamp = clamp(uBeamWidth, 0.0001, 1.0);
91  float distInBand = abs(inBand - 0.5 - jitter) * 2.0;
92  float edge = 1.0 - clamp(uEdgeSoftness, 0.0, 1.0);
93  float maskW = 1.0 - smoothstep(bwClamp * edge, bwClamp, distInBand);
94
95  float speedFactor = mix(1.0, rSpeed * 2.0, clamp(uSpeedVariance, 0.0, 1.0));
96  float speed = uSpeed * max(speedFactor, 0.05);
97
98  float lenFactor = mix(1.0, rLen * 1.8 + 0.2, clamp(uLengthVariance, 0.0, 1.0));
99  float len = max(uBeamLength * lenFactor, 0.005);
100
101  float cursorPhase = ((uPointer.x - 0.5) * 2.0 + (uPointer.y - 0.5)) * 0.5 * uCursorActive;
102
103  float phaseOffset = rPhase * clamp(uPhaseRandomness, 0.0, 1.0);
104  float head = fract(phaseOffset + uTime * speed + cursorPhase);
105
106  float trail = mod(head - fa + 1.0, 1.0);
107  float tt = trail / max(len, 0.0001);
108  float peak = clamp(uBeamPeak, 0.001, 0.999);
109  float bump = smoothstep(0.0, peak, tt) * (1.0 - smoothstep(peak, 1.0, tt));
110  bump *= step(tt, 1.0);
111  bump = pow(bump, max(uCurve, 0.0001));
112
113  float fadeStart = clamp(uFlowEdgeFadeStart, 0.0, 0.5);
114  float fadeEnd = clamp(uFlowEdgeFadeEnd, 0.0, 0.5);
115  float crossStart = clamp(uCrossEdgeFadeStart, 0.0, 0.5);
116  float crossEnd = clamp(uCrossEdgeFadeEnd, 0.0, 0.5);
117  float startFade = fadeStart > 0.0001 ? smoothstep(0.0, fadeStart, fa) : 1.0;
118  float endFade = fadeEnd > 0.0001 ? 1.0 - smoothstep(1.0 - fadeEnd, 1.0, fa) : 1.0;
119  float crossStartFade = crossStart > 0.0001 ? smoothstep(0.0, crossStart, crossAx) : 1.0;
120  float crossEndFade = crossEnd > 0.0001 ? 1.0 - smoothstep(1.0 - crossEnd, 1.0, crossAx) : 1.0;
121  float edgeFade = startFade * endFade * crossStartFade * crossEndFade;
122
123  float val = maskW * bump * edgeFade;
124  val = remap(val, uBalance);
125
126  vec3 outCol = mix(uBg.rgb, uTint.rgb, val);
127  float outA = mix(uBg.a, uTint.a, val);
128  gl_FragColor = vec4(outCol, outA * uAlpha);
129}
130`;var u=e.i(536828);e.s(["TaperedFlowingBeamsShader",0,function({width:e="100%",height:l="100%",className:c,children:m,beamCount:h=12,beamWidth:g=1,beamLength:p=1,edgeSoftness:x=0,speed:w=.5,speedVariance:v=.5,lengthVariance:E=0,phaseRandomness:b=1,jitter:F=0,gradientPower:S=1.4,beamPeak:L=.5,flowEdgeFadeStart:B=0,flowEdgeFadeEnd:_=0,crossEdgeFadeStart:W=0,crossEdgeFadeEnd:A=0,balance:C=.5,reverseDirection:U=!0,vertical:y=!0,seed:P=0,color:k=i.baseColors.warmSand,backgroundColor:j=i.baseColors.warmSand+"00",opacity:R=1,cursorInteraction:T=!1,dprCap:V=2,startWidth:I=1,endWidth:M=.2,widthEasingMode:O=2,widthEasingPower:N=2,widthOffset:J=0,timeOffset:q=0}){let G=(0,a.useRef)(null),H=(0,a.useRef)(null),{pointerRef:K,onPointerMove:z}=(0,n.useNormalizedPointer)({targetRef:G,enabled:T}),D=(0,r.useLatestRef)({beamCount:h,beamWidth:g,beamLength:p,edgeSoftness:x,speed:w,speedVariance:v,lengthVariance:E,phaseRandomness:b,jitter:F,gradientPower:S,beamPeak:L,flowEdgeFadeStart:B,flowEdgeFadeEnd:_,crossEdgeFadeStart:W,crossEdgeFadeEnd:A,balance:C,reverseDirection:U,vertical:y,seed:P,color:k,backgroundColor:j,opacity:R,cursorInteraction:T,startWidth:I,endWidth:M,widthEasingMode:O,widthEasingPower:N,widthOffset:J,timeOffset:q}),$=(0,a.useRef)([.5,.5]);return(0,o.useFullscreenShader)({canvasRef:H,fragmentShader:s,dprCap:V,onSetup:(e,t)=>({time:e.getUniformLocation(t,"uTime"),beams:e.getUniformLocation(t,"uBeams"),speed:e.getUniformLocation(t,"uSpeed"),speedVariance:e.getUniformLocation(t,"uSpeedVariance"),beamWidth:e.getUniformLocation(t,"uBeamWidth"),beamLength:e.getUniformLocation(t,"uBeamLength"),lengthVariance:e.getUniformLocation(t,"uLengthVariance"),phaseRandomness:e.getUniformLocation(t,"uPhaseRandomness"),jitter:e.getUniformLocation(t,"uJitter"),curve:e.getUniformLocation(t,"uCurve"),balance:e.getUniformLocation(t,"uBalance"),edgeSoftness:e.getUniformLocation(t,"uEdgeSoftness"),beamPeak:e.getUniformLocation(t,"uBeamPeak"),flowEdgeFadeStart:e.getUniformLocation(t,"uFlowEdgeFadeStart"),flowEdgeFadeEnd:e.getUniformLocation(t,"uFlowEdgeFadeEnd"),crossEdgeFadeStart:e.getUniformLocation(t,"uCrossEdgeFadeStart"),crossEdgeFadeEnd:e.getUniformLocation(t,"uCrossEdgeFadeEnd"),reverse:e.getUniformLocation(t,"uReverse"),vertical:e.getUniformLocation(t,"uVertical"),tint:e.getUniformLocation(t,"uTint"),bg:e.getUniformLocation(t,"uBg"),alpha:e.getUniformLocation(t,"uAlpha"),pointer:e.getUniformLocation(t,"uPointer"),cursorActive:e.getUniformLocation(t,"uCursorActive"),seed:e.getUniformLocation(t,"uSeed"),startWidth:e.getUniformLocation(t,"uStartWidth"),endWidth:e.getUniformLocation(t,"uEndWidth"),widthMode:e.getUniformLocation(t,"uWidthMode"),widthPower:e.getUniformLocation(t,"uWidthPower"),widthOffset:e.getUniformLocation(t,"uWidthOffset")}),onFrame:(e,t,{time:a,delta:o})=>{let r=D.current,n=K.current,i=$.current,f=1-Math.exp(-o/.15);i[0]+=(n[0]-i[0])*f,i[1]+=(n[1]-i[1])*f;let[s,u,l,c]=(0,d.hexToRgba)(r.color),[m,h,g,p]=(0,d.hexToRgba)(r.backgroundColor);
130e.uniform1f(t.time,a+r.timeOffset),e.uniform1f(t.beams,r.beamCount),e.uniform1f(t.speed,r.speed),e.uniform1f(t.speedVariance,r.speedVariance),e.uniform1f(t.beamWidth,r.beamWidth),e.uniform1f(t.beamLength,r.beamLength),e.uniform1f(t.lengthVariance,r.lengthVariance),e.uniform1f(t.phaseRandomness,r.phaseRandomness),e.uniform1f(t.jitter,r.jitter),e.uniform1f(t.curve,r.gradientPower),e.uniform1f(t.balance,r.balance),e.uniform1f(t.edgeSoftness,r.edgeSoftness),e.uniform1f(t.beamPeak,r.beamPeak),e.uniform1f(t.flowEdgeFadeStart,r.flowEdgeFadeStart),e.uniform1f(t.flowEdgeFadeEnd,r.flowEdgeFadeEnd),e.uniform1f(t.crossEdgeFadeStart,r.crossEdgeFadeStart),e.uniform1f(t.crossEdgeFadeEnd,r.crossEdgeFadeEnd),e.uniform1i(t.reverse,+!!r.reverseDirection),e.uniform1i(t.vertical,+!!r.vertical),e.uniform4f(t.tint,s,u,l,c),e.uniform4f(t.bg,m,h,g,p),e.uniform1f(t.alpha,r.opacity),e.uniform2f(t.pointer,i[0],i[1]),e.uniform1f(t.cursorActive,+!!r.cursorInteraction),e.uniform1f(t.seed,r.seed),e.uniform1f(t.startWidth,r.startWidth),e.uniform1f(t.endWidth,r.endWidth),e.uniform1i(t.widthMode,r.widthEasingMode),e.uniform1f(t.widthPower,r.widthEasingPower),e.uniform1f(t.widthOffset,r.widthOffset)}}),(0,t.jsxs)("div",{ref:G,className:(0,f.cx)(u.default.container,c),style:{width:e,height:l},onPointerMove:z,children:[(0,t.jsx)("canvas",{ref:H,className:u.default.canvas}),m&&(0,t.jsx)("div",{className:u.default.content,children:m})]})}],24278)},265587,e=>{"use strict";var t=e.i(937533);let a=(0,e.i(210987).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);var o=e.i(547139);e.i(202528);var r=e.i(818407);e.s(["BackButton",0,function({text:e}){let n=(0,o.useRouter)();return(0,t.jsx)(r.Button,{variant:"ghost",text:e,icon:(0,t.jsx)(a,{}),onClick:()=>n.back()})}],265587)},964852,e=>{"use strict";var t=e.i(937533);let a=(0,e.i(210987).default)("rotate-cw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]);e.i(202528);var o=e.i(818407);e.s(["RetryButton",0,function({text:e,onRetry:r}){return(0,t.jsx)(o.Button,{text:e,icon:(0,t.jsx)(a,{}),onClick:r})}],964852)},710095,e=>{e.v({actions:"styles-module__ht_JIq__actions",container:"styles-module__ht_JIq__container",description:"styles-module__ht_JIq__description",heading:"styles-module__ht_JIq__heading",section:"styles-module__ht_JIq__section"})}]);

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.