1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21],{4165:(e,t,n)=>{Promise.resolve().then(n.bind(n,7536)),Promise.resolve().then(n.bind(n,2860)),Promise.resolve().then(n.bind(n,2922)),Promise.resolve().then(n.bind(n,8678)),Promise.resolve().then(n.t.bind(n,8197,23))},4565:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(3365),o=n(1521),i=n(8196);let s=function(e){let{children:t}=e;return!function(){let[e,t]=o.useState(!1);return o.useEffect(()=>{t(!0)},[]),e}()?null:(0,i.createPortal)((0,r.jsx)("div",{"data-react-portal-host":!0,children:t}),document.body)}},6955:(e,t,n)=>{"use strict";n.d(t,{g:()=>o});var r=n(3365);let o=e=>{let{className:t=""}=e;return(0,r.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:(0,r.jsx)("path",{d:"M2 2L18 18M18 2L2 18",stroke:"currentColor",strokeWidth:"1.75"})})}},7182:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=i(t,n));return t}(n)))}return e}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=(function(){return o}).apply(t,[]))||(e.exports=n)}()},7536:(e,t,n)=>{"use strict";n.d(t,{default:()=>p});var r=n(3365),o=n(2727),i=n(6038),s=n(6955),l=n(1521),u=n(5610),a=n(7182),c=n.n(a),d=n(4565),f=n(8604);let m=(0,f.createServerReference)("7f97206bf65344e0e3e911304d87e6f11c80720e65",f.callServer,void 0,f.findSourceMapURL,"getCookie"),h=(0,f.createServerReference)("40448493d9a71f6129a45e75d9ba6135a5271aa822",f.callServer,void 0,f.findSourceMapURL,"updateNoticesCookie"),v=e=>{let{notice:t,containerWidth:n,containerHeight:a,handleDismiss:d,topZIndex:f,setTopZIndex:m,language:h}=e,[v,p]=(0,l.useState)(0),[g,x]=(0,l.useState)(!1),[y,w]=(0,l.useState)({x:null,y:null}),b=(0,l.useRef)({x:0,y:0}),E=(0,l.useRef)(!1),S=(0,l.useRef)(null),j=e=>{if(E.current&&S.current)w({x:e.clientX-b.current.x,y:e.clientY-b.current.y})},_=()=>{E.current=!1,document.removeEventListener("mousemove",j),document.removeEventListener("mouseup",_)},k=(0,l.useCallback)(e=>{if(e.target.closest("a, button, input, textarea, select"))return;let t=S.current;if(!t)return;E.current=!0,b.current={x:e.clientX-t.getBoundingClientRect().left,y:e.clientY-t.getBoundingClientRect().top};let n=f+1;p(n),m(n),document.addEventListener("mousemove",j),document.addEventListener("mouseup",_)},[f,m,_]),L=(0,o.Jj)((0,i.Q)(null==t?void 0:t.color))||null,C=c()("".concat(L||"bg-yellow"," cursor-move select-none shadow-md absolute min-h-64 w-64 p-3 text-step-0 grid gap-2 grid-cols-[minmax(0,1fr)_auto] items-start overflow-auto left-3 bottom-3 md:left-[var(--left)] md:top-[var(--top)] md:bottom-auto"),{"opacity-0":!g,"opacity-100":g});return(0,l.useEffect)(()=>()=>{document.removeEventListener("mousemove",j),document.removeEventListener("mouseup",_)},[]),(0,l.useEffect)(()=>{if(!S.current||!a||!n)return;let e=S.current,t=e.offsetWidth;w({x:Math.floor(Math.random()*(n-t)),y:Math.floor(Math.random()*(a-e.offsetHeight))}),x(!0)},[n,a]),(0,r.jsxs)("div",{ref:S,className:C,style:{"--width":t.width,"--height":t.height,"--left":(null==y?void 0:y.x)?"".concat(null==y?void 0:y.x,"px"):void 0,"--top":(null==y?void 0:y.y)?"".concat(null==y?void 0:y.y,"px"):void 0,zIndex:v},onMouseDown:k,children:[(0,r.jsx)("button",{className:"order-1 cursor-pointer",onClick:d,children:(0,r.jsx)(s.g,{})}),(0,r.jsxs)("div",{className:"text-pretty space-y-4",style:{textBoxEdge:"cap alphabetic",textBoxTrim:"trim-end"},children:[(null==t?void 0:t.title)&&(0,r.jsx)("h2",{children:t.title}),Array.isArray(null==t?void 0:t.content)&&t.content.length>0&&(0,r.jsx)(u.A,{value:t.content,language:h})]})]})},p=e=>{let{notices:t=[],language:n}=e,o=(0,l.useMemo)(()=>null!=t?t:[],[t]),[i,u]=(0,l.useState)([]),[a,c]=(0,l.useState)(0),[f,p]=(0,l.useState)({width:null,height:null}),g=(0,l.useCallback)(e=>{u(t=>t.some(t=>t._id===e._id)?t:[...t,e])},[]);(0,l.useEffect)(()=>{(async()=>{let e=[];try{let t=await m("dismissed-announcements-inland");t&&(e=JSON.parse(t))}catch(e){}o.filter(t=>
1!e.includes(null==t?void 0:t._id)).forEach((e,t)=>{setTimeout(()=>g(e),100*t)})})()},[o,g]);let x=async e=>{h({name:"dismissed-announcements-inland",value:e}),u(t=>t.filter(t=>t._id!==e))},y=async()=>{h({name:"dismissed-announcements-inland",value:i.map(e=>e._id).filter(Boolean)}),i.forEach((e,t)=>{setTimeout(()=>{u(t=>t.filter(t=>t._id!==e._id))},30*t)})};return((0,l.useEffect)(()=>{let e=()=>{p({width:window.innerWidth,height:window.innerHeight})};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),i.length)?(0,r.jsxs)(d.A,{children:[(0,r.jsx)("button",{onClick:y,className:"w-9 h-9 fixed right-3 bottom-3 bg-grey rounded-full flex items-center justify-center cursor-pointer hover:bg-yellow",children:(0,r.jsx)("span",{children:(0,r.jsx)(s.g,{className:"w-[1em] h-[1em]"})})}),i.map(e=>(0,r.jsx)(v,{notice:e,containerWidth:f.width,containerHeight:f.height,handleDismiss:()=>x(e._id),topZIndex:a,setTopZIndex:c,language:n},e._id))]}):null}}},e=>{e.O(0,[580,114,79,10,347,131,358],()=>e(e.s=4165)),_N_E=e.O()}]);
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.