1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5240],{65240:(e,t,n)=>{n.r(t),n.d(t,{default:()=>m});var r=n(95155),o=n(12115),i=n(20063),l=n(78143);let s={en:"Welcome to AgroBH. Press P to start listening. Press S to skip to the next item. Press Z to go to the previous item. Press Enter to open the current tab.",ar:"Ù
Ø±ØØ¨Ø§Ù ب٠ÙÙ AgroBH. اضغط P ÙÙØ§Ø³ØªÙ
اع. اضغط S ÙÙØ§ÙØªÙØ§Ù Ø¥ÙÙ Ø§ÙØ¹Ùصر Ø§ÙØªØ§ÙÙ. اضغط Z ÙÙØ¹Ùدة Ø¥ÙÙ Ø§ÙØ¹Ùصر Ø§ÙØ³Ø§Ø¨Ù. اضغط Enter ÙÙØªØ Ø¹ÙØ§Ù
Ø© Ø§ÙØªØ¨ÙÙØ¨ Ø§ÙØØ§ÙÙØ©."};function u(){var e,t;let n=null!=(t=null!=(e=document.getElementById("main-content"))?e:document.querySelector("main"))?t:document.querySelector('[data-component="career_showcase"]');if(!n)return[];let r=Array.from(n.querySelectorAll('h1, h2, h3, h4, p, li, blockquote, figcaption, [role="heading"]')).filter(e=>{var t,n;return!((null!=(n=null==(t=e.textContent)?void 0:t.trim())?n:"").length<2||e.querySelector("h1,h2,h3,h4")||e.closest('[aria-hidden="true"]')||e.closest('[role="tablist"]'))}),o=Array.from(n.querySelectorAll(".edu-region > summary, .edu-country > summary")).filter(e=>{var t,n;return(null!=(n=null==(t=e.textContent)?void 0:t.trim().length)?n:0)>1}),i=[...r,...Array.from(n.querySelectorAll('[role="tablist"] [role="tab"]')).filter(e=>{var t,n;return(null!=(n=null==(t=e.textContent)?void 0:t.trim().length)?n:0)>1}),...o];return i.sort((e,t)=>{let n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING?-1:n&Node.DOCUMENT_POSITION_PRECEDING?1:0}),i}let c="data-tts-reading",a="data-tts-prev-color",d="data-tts-prev-transition";function h(e){var t,n;document.querySelectorAll("[".concat(c,"]")).forEach(e=>{var t,n;e.removeAttribute(c),e.style.outline="",e.style.outlineOffset="",e.style.backgroundColor="",e.style.borderRadius="",e.style.boxShadow="",e.style.scrollMarginTop="",e.style.transition=null!=(t=e.getAttribute(d))?t:"",e.style.color=null!=(n=e.getAttribute(a))?n:"",e.removeAttribute(d),e.removeAttribute(a)}),e&&(e.setAttribute(a,null!=(t=e.style.color)?t:""),e.setAttribute(d,null!=(n=e.style.transition)?n:""),e.setAttribute(c,"true"),e.style.backgroundColor="rgba(255, 215, 0, 0.92)",e.style.color="#000000",e.style.outline="3px solid #FFD700",e.style.outlineOffset="3px",e.style.borderRadius="4px",e.style.boxShadow="inset 0 0 0 3px #B8860B, 0 0 0 4px rgba(255, 215, 0, 0.40)",e.style.scrollMarginTop="120px",e.style.transition="background-color 0.12s, color 0.12s",e.getBoundingClientRect().top>=window.innerHeight&&e.scrollIntoView({behavior:"smooth",block:"start"}))}let w=null;function f(){w&&clearInterval(w),w=setInterval(()=>{window.speechSynthesis.speaking&&!window.speechSynthesis.paused&&(window.speechSynthesis.pause(),window.speechSynthesis.resume())},1e4)}function p(){w&&(clearInterval(w),w=null)}function m(e){let{lang:t="en",startReadingImmediately:n=!1}=e,c=(0,i.usePathname)(),a="ar"===t,d=a?"ar-SA":"en-US",w=(0,o.useRef)([]),m=(0,o.useRef)(-1),y=(0,o.useRef)(!1),v=(0,o.useRef)(!1),S=(0,o.useRef)(0),b=(0,o.useRef)(null);return b.current=e=>{var t,n,r;let o=w.current;if(e>0&&e>=o.length&&y.current&&!v.current){let t=o[e-1],r=null!=(n=t.closest('[id^="panel-"]'))?n:t.closest('[role="tabpanel"]');if(r){let e=function(e){var t;let n=Array.from(document.querySelectorAll('[role="tablist"] [role="tab"]')),r=n.findIndex(t=>t.getAttribute("aria-controls")===e.id);return r>=0&&null!=(t=n[r+1])?t:null}(r),t=e?o.findIndex(t=>t===e):-1;if(t>=0)return void b.current(t)}}if(!y.current||e<0||e>=o.length){h(null),y.current=!1,m.current=e>=o.length?-1:e,p();return}m.current=e;let i=o[e],s=null!=(r=null==(t=i.textContent)?void 0:t.trim())?r:"",u="tab"===i.getAttribute("role"),c="SUMMARY"===i.tagName&&!!i.closest(".edu-region"),g="SUMMARY"===i.tagName&&!!i.closest(".edu-country"),x=a&&!!i.closest("#panel-edu")&&function(e){var t,n;let r=(null!=(t=e.match(/[a-zA-Z]/g))?t:[]).length,o=(null!=(n=e.match(/[\u0600-\u06FF]/g))?n:[]).length;return r>0&&r>o}(s),E=a&&!x,k=u?E?"Ø¹ÙØ§Ù
Ø© تبÙÙØ¨: ".concat(s,". اضغط Enter ÙÙØªØ ÙØ°Ø§ اÙÙØ³Ù
."):"Tab: ".concat(s,". Press Enter to open this
1section."):c?E?"Ù
ÙØ·ÙØ©: ".concat(s):"Region: ".concat(s):g?E?"دÙÙØ©: ".concat(s):"Country: ".concat(s):s;if((c||g)&&i.parentElement instanceof HTMLDetailsElement&&(i.parentElement.open=!0),!k)return void b.current(e+1);h(i);let A=S.current,T=x?"en-US":d,L=new SpeechSynthesisUtterance(k);L.lang=T,L.rate=.95;let _=(0,l.if)(T);_&&(L.voice=_),L.onend=()=>{A===S.current&&y.current&&!v.current&&b.current(e+1)},L.onerror=t=>{A===S.current&&"interrupted"!==t.error&&y.current&&!v.current&&b.current(e+1)},window.speechSynthesis.speak(L),f()},(0,o.useEffect)(()=>{if(!("speechSynthesis"in window))return;y.current=!1,v.current=!1,m.current=-1,h(null),p(),window.__ttsBootstrapping||n||window.speechSynthesis.cancel();let e=!1,t=!1,r=()=>{if(!e&&!t)e=!0,window.removeEventListener("keydown",r,!0),window.removeEventListener("click",r,!0),window.removeEventListener("touchstart",r,!0),w.current=u(),n||window.__ttsBootstrapDone||window.__ttsBootstrapping||(()=>{if(t)return;window.speechSynthesis.cancel();let n=!1,o=(e,r)=>{if(t)return;let o=new SpeechSynthesisUtterance(e);o.lang=d,o.rate=.95;let i=(0,l.if)(d);i&&(o.voice=i),o.onstart=()=>{n=!0},r&&(o.onend=()=>{t||r()}),window.speechSynthesis.speak(o)},i=()=>o(s[a?"ar":"en"]);if(document.querySelector('[data-component="career_showcase"]')){let e=function(){var e,t,n,r;let o=document.querySelector('[data-component="career_showcase"]'),i=null!=(n=null!=o?o:document.getElementById("main-content"))?n:document.querySelector("main");if(!i)return"";let l=i.querySelector("h1.main-title");if(null==l||null==(e=l.textContent)?void 0:e.trim())return l.textContent.trim();let s=i.querySelector("figcaption h1");return null!=(r=null==s||null==(t=s.textContent)?void 0:t.trim())?r:""}();e?o(e,i):i()}else i();setTimeout(()=>{n||t||(e=!1,window.addEventListener("keydown",r,!0),window.addEventListener("click",r,!0),window.addEventListener("touchstart",r,!0))},2e3)})()};r();let o=null,i=null;if(n){let e=function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(t||y.current)return;if(window.__ttsBootstrapping&&n<10){o=setTimeout(()=>e(n+1),300);return}let r=u();if(r.length>0&&(w.current=r),0===w.current.length){n<10&&(o=setTimeout(()=>e(n+1),300));return}window.scrollTo({top:0,behavior:"instant"}),y.current=!0,v.current=!1,S.current++;let i=0,l=document.querySelector('[data-component="career_showcase"]');if(l){var s;let e=null!=(s=l.querySelector("figcaption h1"))?s:l.querySelector("h1.main-title"),t=e?w.current.findIndex(t=>t===e||t.contains(e)||e.contains(t)):-1,n=w.current.findIndex(e=>l.contains(e)),r=n>=0?n:0,o=!0===window.__ttsBootstrapSpoke;if(t>=0)i=o?t+1:t;else{let e=w.current.findIndex(e=>l.contains(e)&&("H1"===e.tagName||"H2"===e.tagName||"H3"===e.tagName||"H4"===e.tagName));i=e>=0?o?e+1:e:r}(i=Math.max(i,r))>=w.current.length&&(i=r)}else{let e=w.current.findIndex(e=>"H1"===e.tagName||"heading"===e.getAttribute("role")&&"1"===e.getAttribute("aria-level"));e>=0&&(i=e)}b.current(i)};i=()=>{o&&clearTimeout(o),o=null,t||y.current||e()},window.addEventListener("ttsBootstrapDone",i,{once:!0}),o=setTimeout(()=>e(),300)}let c=setTimeout(r,800);return window.addEventListener("keydown",r,!0),window.addEventListener("click",r,!0),window.addEventListener("touchstart",r,!0),()=>{t=!0,clearTimeout(c),o&&clearTimeout(o),i&&window.removeEventListener("ttsBootstrapDone",i),window.removeEventListener("keydown",r,!0),window.removeEventListener("click",r,!0),window.removeEventListener("touchstart",r,!0),S.current++,window.__ttsBootstrapping||window.speechSynthesis.cancel(),p(),h(null),y.current=!1,v.current=!1}},[c,a,d,n]),(0,o.useEffect)(()=>{let e=e=>{var t,n,r;let o=null==(n=e.target)||null==(t=n.tagName)?void 0:t.toUpperCase();if("INPUT"===o||"TEXTAREA"===o||"SELECT"===o)return;let i=e.key.toLowerCase();if("p"===i){if(e.preventDefault(),v.current){window.speechSynthesis.resume(),v.current=!1,f();return}if(y.current){window.speechSynthesis.pause(),v.current=!0,p();return}0===w.current.length&&(w.current=u());let t=m.current>=0?m.current:0;y.current=!0,v.current=!1,S.current++,window.speechSynthesis.cancel(),setTimeout(()=>b.current(t),150)}if("s"===i){e.preventDefault(),0===w.current.length&&(w.current=u()),S.current++,window.speechSynthesis.cancel(),p();let t=m.current>=0?m.current+1:0;y.current=!0,v.current=!1,setTimeout(()=>b.current(t),150)}if("z"===i){e.preventDefault(),0===w.current.length&&(w.current=u()),S.current++,window.speechSynthesis.cancel(),p();let t=m.current>0?m.current-1:0;y.current=!0,v.current=!1,setTimeout(()=>b.current(t),150)}if("enter"===i){let t=w.current[m.current];
1if(!t)return;let n="A"===t.tagName?t:null!=(r=t.closest("a"))?r:t.querySelector("a");if(null==n?void 0:n.href){e.preventDefault(),S.current++,window.speechSynthesis.cancel(),y.current=!1,v.current=!1;let t=n.href;if(t.includes("from=accessibility")){let e=new URL(t,location.href);e.searchParams.set("autoread","1"),t=e.toString()}window.open(t,"_blank");return}if("tab"!==t.getAttribute("role"))return;e.preventDefault(),t.click(),setTimeout(()=>{if(!y.current)return;let e=t.getAttribute("aria-controls");w.current=u();let n=m.current+1;if(e){let t=document.getElementById(e);if(t){let e=w.current.findIndex(e=>t.contains(e));e>=0&&(n=e)}}S.current++,window.speechSynthesis.cancel(),v.current=!1,setTimeout(()=>b.current(n),150)},450)}};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[d,a]),(0,r.jsxs)("div",{"aria-hidden":"true",style:{position:"fixed",bottom:"12px",[a?"left":"right"]:"12px",zIndex:9990,backgroundColor:"rgba(20, 102, 52, 0.90)",color:"#fff",padding:"8px 14px",borderRadius:"8px",fontSize:"12px",fontFamily:"Cabin, sans-serif",lineHeight:1.75,pointerEvents:"none",userSelect:"none",backdropFilter:"blur(4px)"},children:[(0,r.jsx)("div",{style:{fontWeight:700,fontSize:"11px",opacity:.75,marginBottom:"2px"},children:a?"اختصارات ÙÙØØ© اÙÙ
ÙØ§ØªÙØ":"Keyboard shortcuts"}),(0,r.jsx)(g,{k:"P",label:a?"تشغÙÙ / Ø¥ÙÙØ§Ù":"Play / Pause"}),(0,r.jsx)(g,{k:"S",label:a?"Ø§ÙØ¹Ùصر Ø§ÙØªØ§ÙÙ":"Next item"}),(0,r.jsx)(g,{k:"Z",label:a?"Ø§ÙØ¹Ùصر Ø§ÙØ³Ø§Ø¨Ù":"Previous item"}),(0,r.jsx)(g,{k:"Enter",label:a?"ÙØªØ Ø¹ÙØ§Ù
Ø© Ø§ÙØªØ¨ÙÙØ¨ Ø§ÙØØ§ÙÙØ©":"Open current tab"})]})}function g(e){let{k:t,label:n}=e;return(0,r.jsxs)("div",{children:[(0,r.jsx)("kbd",{style:{display:"inline-block",background:"rgba(255,255,255,0.2)",border:"1px solid rgba(255,255,255,0.4)",borderRadius:"3px",padding:"0 5px",fontFamily:"monospace",fontSize:"11px",fontWeight:700,marginRight:"5px"},children:t}),n]})}},78143:(e,t,n)=>{n.d(t,{if:()=>o,rT:()=>i});let r=["female","woman","zira","hoda","samantha","karen","tessa","moira","fiona","victoria","ava","serena","allison","susan","kate","google uk english female","google us english"];function o(e){var t,n,o;let i=window.speechSynthesis.getVoices(),l=e.split("-")[0],s=i.filter(t=>t.lang===e||t.lang.startsWith(l));if(0===s.length)return null;let u=e=>r.some(t=>e.name.toLowerCase().includes(t));return null!=(o=null!=(n=null!=(t=s.find(t=>t.lang===e&&u(t)))?t:s.find(u))?n:s.find(t=>t.lang===e))?o:s[0]}function i(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{rate:r=.95,onStart:i,onEnd:l}=n,s=()=>{let n=new SpeechSynthesisUtterance(e);n.lang=t,n.rate=r;let s=o(t);s&&(n.voice=s),i&&(n.onstart=i),l&&(n.onend=l),window.speechSynthesis.speak(n)};if(window.speechSynthesis.getVoices().length>0)s();else{let e=!1,t=()=>{window.speechSynthesis.removeEventListener("voiceschanged",t),e||(e=!0,s())};window.speechSynthesis.addEventListener("voiceschanged",t),setTimeout(()=>{window.speechSynthesis.removeEventListener("voiceschanged",t),e||(e=!0,s())},150)}}}}]);
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.