1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{1406:(e,t,r)=>{"use strict";r.d(t,{mR:()=>s});var n=r(1907),a=r(14157),o=r(34786);let s=e=>{n.toast.error((0,a.p)("common:error.sessionExpired")),setTimeout(()=>{(e=>{window.localStorage.removeItem("".concat(e,"-accessToken")),window.localStorage.removeItem("".concat(e,"-user")),o.aV.deleteHeader("Authorization"),o.nC.deleteHeader("Authorization"),window.location.reload()})(e)},2e3)}},13286:(e,t,r)=>{"use strict";r.d(t,{HB:()=>a.HB,kd:()=>o});var n=r(34786),a=r(59887);async function o(e,t){var r,o;let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3?arguments[3]:void 0,l=parseInt(e.initialOffset.toString()),d=[],c=s.length,u=e.initialPageSize+c;return d=e.scope===a.Xp.XML&&e.scopeValue?await (0,n.ul)(e.scopeValue,u,l,e.tenantId):await (0,n.ro)({scope:null!=(r=e.scope)?r:a.Xp.Latest,offset:l,paginationPageSize:u,scopeData:t,isSticky:+!!e.isSticky,...e.exclude_tags_id&&{exclude_tags_id:e.exclude_tags_id},displayPage:i,...e.tenantId&&{tenantId:e.tenantId}}),s.length>0&&(d=d.filter(e=>!s.includes(e.id)).slice(0,e.initialPageSize)),{title:null!=(o=e.title)?o:"",articles:d}}},17358:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});let n={header:"rt-tweet-header-header",avatar:"rt-tweet-header-avatar",avatarOverflow:"rt-tweet-header-avatarOverflow",avatarSquare:"rt-tweet-header-avatarSquare",avatarShadow:"rt-tweet-header-avatarShadow",author:"rt-tweet-header-author",authorLink:"rt-tweet-header-authorLink",authorVerified:"rt-tweet-header-authorVerified",authorLinkText:"rt-tweet-header-authorLinkText",authorMeta:"rt-tweet-header-authorMeta",authorFollow:"rt-tweet-header-authorFollow",username:"rt-tweet-header-username",follow:"rt-tweet-header-follow",separator:"rt-tweet-header-separator",brand:"rt-tweet-header-brand",twitterIcon:"rt-tweet-header-twitterIcon"}},20390:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(49499),a=r(34786),o=r(12115),s=r(14157);let i=e=>{let{setSuccessLogin:t}=e,[r,i]=(0,o.useState)({}),{setShowAuthModal:l,setIsAnonymous:d,isAnonymous:c,setUserData:u,tenant:m}=(0,n.Z2)(),[h,p]=(0,o.useState)({login:"",password:""}),b=async()=>{await (0,a.wz)().then(e=>{if(e){u(e),localStorage.setItem("".concat(m,"-user"),JSON.stringify(e));let t=window.localStorage.getItem("".concat(m,"-accessToken"));a.nC.setHeader("Authorization","Bearer ".concat(t)),a.aV.setHeader("Authorization","Bearer ".concat(t))}})},f=async e=>{e.preventDefault(),await a.nC.post("/login",{login:h.login,password:h.password}).then(e=>{g(e.data.data.authorization),t&&t(!0),setTimeout(()=>{t&&t(!1),l(!1)},2e3)}).catch(e=>{var t,r;let n=null==e||null==(r=e.data)||null==(t=r.metaData)?void 0:t.message;n?i({login:n}):i({login:(0,s.p)("common:invalid_credentials")}),console.log(e)})},g=e=>{c&&d(!1),(e=>{window.localStorage.setItem("".concat(m,"-accessToken"),e),a.nC.setHeader("Authorization","Bearer ".concat(e)),a.aV.setHeader("Authorization","Bearer ".concat(e))})(e),localStorage.getItem("".concat(m,"-user"))||b()};return{formData:h,login:g,onSubmit:f,errors:r,handleChange:e=>{let{name:t,value:r}=e.target;p({...h,[t]:r})}}}},22478:(e,t,r)=>{"use strict";r.d(t,{D:()=>d});var n=r(34786),a=r(12115);let o=null,s=null,i=e=>!!e&&"object"==typeof e&&"string"==typeof e.name&&e.name.length>0&&"string"==typeof e.label&&["text","select","checkbox","terms","link"].includes(e.type)&&"boolean"==typeof e.required&&Array.isArray(e.contexts),l=async()=>{let e=(e=>{if(!e||"object"!=typeof e)throw Error("Registration custom fields schema is missing");if("boolean"!=typeof e.enabled)throw Error("Registration custom fields schema has no enabled flag");if(!e.enabled)return{status:"disabled",fields:[]};if(!Array.isArray(e.fields)||0===e.fields.length||!e.fields.every(i))throw Error("Registration custom fields schema is invalid");return{status:"ready",fields:e.fields}})((await n.nC.get("/registration-fields")).data.data);return o=e,e},d=()=>{let[e,t]=(0,a.useState)(()=>null!=o?o:{status:"idle",fields:[]}),r=(0,a.useCallback)(async()=>{if(o)return void t(o);t(e=>({...e,status:"loading"})),s||(s=l().finally(()=>{s=null}));try{let e=await s;t(e)}catch(e){console.error("Failed to load registration custom fields",e),t({status:"error",fields:[]})}},[]);return{fields:e.fields,status:e.status,load:r}}},29901:(e,t,r)=>{"use strict";r.d(t,{Providers:()=>m});var n=r(95155),a=r(45694),o=r(12115),s=r(49499),i=r(88262),l=r(95010);function d(e){let{children:t,...r}=e;return(0,n.jsx)(l.N,{...r,children:t})}function c(e){let{enabled:t,children:r}=e;return(0,o.useEffect)(()=>
1{if(t&&"function"==typeof Node&&Node.prototype){let e=Node.prototype.removeChild;Node.prototype.removeChild=function(t){return t.parentNode!==this?(console.debug("[Translation Protection] Prevented removeChild error"),t):e.call(this,t)};let t=Node.prototype.insertBefore;Node.prototype.insertBefore=function(e,r){return r&&r.parentNode!==this?(console.debug("[Translation Protection] Prevented insertBefore error"),e):t.call(this,e,r)}}},[t]),(0,n.jsx)(n.Fragment,{children:r})}var u=r(39918);function m(e){let{children:t,recaptchaSiteKey:r,anonymousComment:o,canLoginByGoogle:l,canLoginByFacebook:m,customFieldsEnabled:h,defaultTheme:p,tenant:b,frontendDomain:f,isGoogleTranslateEnabled:g,timezone:x,paymentProviderConfig:v}=e,w=(0,n.jsx)(i.i,{children:(0,n.jsx)(d,{enableSystem:!1,...(0,a.ME)(p),attribute:"class",children:(0,n.jsx)(c,{enabled:g,children:t})})});return(0,n.jsx)(s.sH,{tenant:b,frontendDomain:f,anonymousComment:o,recaptchaSiteKey:r,canLoginByGoogle:l,canLoginByFacebook:m,customFieldsEnabled:h,timezone:x,subscriptionEnabled:v.paywallActive,children:v.paywallActive?(0,n.jsx)(u.dW,{paymentProviderConfig:v,children:w}):w})}},31081:(e,t,r)=>{Promise.resolve().then(r.bind(r,29901)),Promise.resolve().then(r.bind(r,47089)),Promise.resolve().then(r.bind(r,51343)),Promise.resolve().then(r.bind(r,39617)),Promise.resolve().then(r.bind(r,75457)),Promise.resolve().then(r.bind(r,71876)),Promise.resolve().then(r.bind(r,32733)),Promise.resolve().then(r.bind(r,32331)),Promise.resolve().then(r.bind(r,50673)),Promise.resolve().then(r.bind(r,47026)),Promise.resolve().then(r.bind(r,18504)),Promise.resolve().then(r.bind(r,39943)),Promise.resolve().then(r.bind(r,41041)),Promise.resolve().then(r.bind(r,42686)),Promise.resolve().then(r.bind(r,59520)),Promise.resolve().then(r.bind(r,19)),Promise.resolve().then(r.bind(r,15960)),Promise.resolve().then(r.bind(r,16707)),Promise.resolve().then(r.bind(r,72023)),Promise.resolve().then(r.bind(r,92085)),Promise.resolve().then(r.bind(r,50876)),Promise.resolve().then(r.bind(r,41670)),Promise.resolve().then(r.bind(r,1907)),Promise.resolve().then(r.bind(r,95204)),Promise.resolve().then(r.t.bind(r,41402,23)),Promise.resolve().then(r.bind(r,24437)),Promise.resolve().then(r.bind(r,36552)),Promise.resolve().then(r.t.bind(r,73677,23)),Promise.resolve().then(r.bind(r,88747)),Promise.resolve().then(r.bind(r,46274)),Promise.resolve().then(r.bind(r,51426)),Promise.resolve().then(r.bind(r,34194)),Promise.resolve().then(r.bind(r,17358)),Promise.resolve().then(r.bind(r,55837)),Promise.resolve().then(r.bind(r,47873)),Promise.resolve().then(r.bind(r,68619)),Promise.resolve().then(r.bind(r,61615)),Promise.resolve().then(r.bind(r,63753)),Promise.resolve().then(r.bind(r,70804)),Promise.resolve().then(r.bind(r,66979)),Promise.resolve().then(r.bind(r,6954)),Promise.resolve().then(r.bind(r,99373)),Promise.resolve().then(r.bind(r,76226)),Promise.resolve().then(r.bind(r,85915)),Promise.resolve().then(r.bind(r,48962)),Promise.resolve().then(r.bind(r,36449)),Promise.resolve().then(r.bind(r,78524)),Promise.resolve().then(r.bind(r,32269)),Promise.resolve().then(r.bind(r,37934)),Promise.resolve().then(r.bind(r,67664)),Promise.resolve().then(r.bind(r,84351)),Promise.resolve().then(r.bind(r,69198)),Promise.resolve().then(r.bind(r,69207)),Promise.resolve().then(r.bind(r,681)),Promise.resolve().then(r.bind(r,94620)),Promise.resolve().then(r.bind(r,29270)),Promise.resolve().then(r.bind(r,68082)),Promise.resolve().then(r.bind(r,49698)),Promise.resolve().then(r.bind(r,36479)),Promise.resolve().then(r.bind(r,23803)),Promise.resolve().then(r.bind(r,21940)),Promise.resolve().then(r.bind(r,24936)),Promise.resolve().then(r.bind(r,71763)),Promise.resolve().then(r.bind(r,95534)),Promise.resolve().then(r.bind(r,69582)),Promise.resolve().then(r.bind(r,66694)),Promise.resolve().then(r.bind(r,16052)),Promise.resolve().then(r.bind(r,19273)),Promise.resolve().then(r.bind(r,30830)),Promise.resolve().then(r.bind(r,72111)),Promise.resolve().then(r.bind(r,45064)),Promise.resolve().then(r.bind(r,72040)),Promise.resolve().then(r.bind(r,27723)),Promise.resolve().then(r.bind(r,57751)),Promise.resolve().then(r.bind(r,39066)),Promise.resolve().then(r.bind(r,15131)),Promise.resolve().then(r.bind(r,71364)),Promise.resolve().then(r.bind(r,11467))},32733:(e,t,r)=>{"use strict";r.d(t,{GoogleAnalytics:()=>o});var n=r(95155),a=r(68321);r(12115);let o=e=>{let{gaIds:t,hasConsentManagement:r}=e;if(!(null==t?void 0:t.length))return null;let o=t[0];return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.default,{src:"https://www.googletagmanager.com/gtag/js?i
1d=".concat(o)}),(0,n.jsx)(a.default,{id:"google-analytics",children:"\n window.dataLayer = window.dataLayer || [];\n function gtag(){window.dataLayer.push(arguments);}\n \n gtag('consent', 'default', {\n ad_storage: ".concat(r?'"denied"':'"granted"',",\n analytics_storage: ").concat(r?'"denied"':'"granted"',",\n ad_personalization: ").concat(r?'"denied"':'"granted"',",\n ad_user_data: ").concat(r?'"denied"':'"granted"',",\n functionality_storage: ").concat(r?'"denied"':'"granted"',",\n personalization_storage: ").concat(r?'"denied"':'"granted"',",\n security_storage: ").concat(r?'"denied"':'"granted"',"\n });\n \n gtag('js', new Date());\n ").concat(t.map(e=>"gtag('config', '".concat(e,"');")).join("\n"),"\n ")})]})}},34194:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});let n={}},36449:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});let n={root:"rt-tweet-not-found-root"}},39617:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>S});var n=r(95155),a=r(34786),o=r(14157),s=r(20063),i=r(49499);let l=e=>{let{successLogin:t}=e,r=(0,s.useRouter)(),l=(0,s.usePathname)(),{setShowAuthModal:d,tenant:c}=(0,i.Z2)();return(0,n.jsxs)("div",{className:"append-content relative p-4 pt-12 overflow-hidden bg-white rounded-lg shadow dark:bg-[#222]",children:[t&&(0,n.jsx)("div",{className:"bg-teal-100 mb-10 border-t-4 border-teal-500 rounded-b text-teal-900 px-4 py-3 shadow-md login-alert",role:"alert",children:(0,o.p)("common:login_success")}),(0,n.jsx)("button",{onClick:()=>{d(!1),r.push("/user/profile")},className:"focus:outline-none uppercase w-full border-primary border font-semibold rounded-lg bg-primary text-white p-2 hover:opacity-75",children:(0,o.p)("pages:user.profile")}),(0,n.jsx)("button",{onClick:()=>{d(!1),"/user/profile"===l&&r.push("/"),window.localStorage.removeItem("".concat(c,"-accessToken")),window.localStorage.removeItem("".concat(c,"-user")),a.aV.deleteHeader("Authorization"),a.nC.deleteHeader("Authorization"),window.location.reload()},className:"mt-2 focus:outline-none uppercase w-full border-primary border font-semibold rounded-lg bg-primary text-white p-2 hover:opacity-75",children:(0,o.p)("common:logout")})]})};var d=r(78301),c=r(12115),u=r(12245),m=r(59127);let h=()=>{let{canLoginByFacebook:e,canLoginByGoogle:t}=(0,i.Z2)(),{loginWithFacebook:r,loginWithGoogle:o}={loginWithFacebook:async()=>{await (0,a.dW)().then(e=>window.location.assign(e||""))},loginWithGoogle:async()=>{await (0,a.E6)().then(e=>window.location.assign(e||""))}};return(0,n.jsxs)(n.Fragment,{children:[e&&(0,n.jsxs)("button",{onClick:r,className:"relative w-full rounded-lg p-2 mb-2 flex justify-center transition-all py-2 items-center font-semibold border-0 text-white bg-[#435A92] hover:bg-primary focus:ring-primary",children:[(0,n.jsx)(m.iYk,{className:"inline mr-2",size:24}),"Facebook"]}),t&&(0,n.jsxs)("button",{onClick:o,className:"relative w-full rounded-lg flex justify-center transition-all py-2 items-center -2 font-semibold dark:text-black text-black bg-white hover:bg-gray-300 focus:ring-gray-300",children:[(0,n.jsx)(u.F4b,{className:"inline mr-2",size:24}),(0,n.jsx)("span",{className:"text-black",children:"Google"})]})]})};var p=r(20390),b=r(81558),f=r(94706);let g=e=>{let{setCurrentView:t,setSuccessLogin:r,setForgotPasswordEmail:a,hideSocialLogin:s=!1}=e,{formData:l,handleChange:d,errors:u,onSubmit:m}=(0,p.A)({setSuccessLogin:r}),{setIsAnonymous:g,setShowAuthModal:x,recaptchaSiteKey:v,anonymousComment:w,setRecaptchaToken:y,canLoginByGoogle:j,canLoginByFacebook:k}=(0,i.Z2)(),[N,_]=(0,c.useState)(!1),P=!s&&(k||j),S=e=>{y(e),_(!1),g(!0),setTimeout(()=>x(!1),50)},{title:C,hint:E,login:z,registerBtn:L,anonymousBtn:T}={title:(0,o.p)("common:login"),hint:P?(0,o.p)("common:login_with_social_media"):(0,o.p)("common:login_with_username"),login:(0,o.p)("common:login"),registerBtn:(0,o.p)("common:register"),anonymousBtn:(0,o.p)("common:guest")};return(0,n.jsx)("div",{className:"relative p-4 overflow-hidden bg-white rounded-sn shadow append-content dark:bg-[#222]",children:(0,n.jsxs)("div",{className:"flex flex-col mb-4 text-left",children:[(0,n.jsxs)("div",{className:"relative p-4 mb-4 -m-4 bg-slate-200 dark:bg-[#222]",children:[(0,n.jsx)("h3",{className:"my-4 text-[32px] font-bold leading-6",children:C}),(0,n.jsx)("p",{className:"mb-4 text-gray-400",children:E}),P&&(0,n.jsx)(h,{})]}),(0,n.jsxs)(b.G3,{reCaptchaKey:v||"",children:[(0,n.jsxs)("form",{onSubmit:m,className:"text-left",children:[(0,n.jsxs)("div",{className:"mb-4",children:[(0,n.jsx)("label",{className:"block mb-1 capitalize text-sm dark:text-white/70 font-semibold text-gray-700",children:(0,o.p)("common:username")}),(0,n.jsx)("input",{placeholder:(0,o.p)("common:username_placeholder"),autoComplete:"username",name:"login",value:l.login,onChange:d,className:"block w-full p-2 bg-transparent border rounded-sn focus:outline-none border-zinc-700 focus:ring-primary focus:border-primary"}),(0,n.jsx)("p",{className:"text-red-500",children:u.login})]}),(0,n.jsx)("div",{className:"relative",children:(0,n.jsxs)("div",{className:"mb-4",children:[(0,n.jsxs)("div",{className:"flex justify-between",children:[(0,n.jsx)("label",{className:"block mb-1 capitalize text-sm dark:text-white/70 font-semibold text-gray-700",children:(0,o.p)("common:password")}),(0,n.jsxs)(f.h,{onClick:()=>{let e=l.login.trim();null==a||a(e.includes("@")?e:""),t("forget")},className:"top-[2px] right-0 text-xs font-semibold text-primary dark:text-primaryDark dark:text-primary hover:opacity-75 curs
1or-pointer text-right",children:[(0,o.p)("common:forgot_password"),"?"]})]}),(0,n.jsx)("input",{type:"password",placeholder:(0,o.p)("common:password"),name:"password",value:l.password,onChange:d,className:"block w-full p-2 mb-4 bg-transparent border rounded-sn focus:outline-none border-zinc-700 focus:ring-primary focus:border-primary"}),(0,n.jsx)("p",{className:"text-red-500",children:u.password})]})}),(0,n.jsx)("button",{type:"submit",className:"w-full uppercase p-2 font-semibold h-10 text-white border rounded-sm focus:outline-none border-primary bg-primary hover:opacity-75",children:z})]}),(0,n.jsx)("button",{onClick:()=>t("register"),className:"w-full mt-4 uppercase dark:text-primaryDark font-semibold bg-transparent rounded-sn register-switch-btn focus:outline-none text-primary hover:opacity-75",children:L}),w&&(0,n.jsx)("button",{onClick:()=>{v?_(!0):S("")},className:"w-full mt-4 dark:text-primaryDark font-semibold bg-transparent rounded-sn register-switch-btn focus:outline-none text-primary hover:opacity-75",children:T}),N&&w&&(0,n.jsx)(b.z2,{onVerify:e=>S(e)})]})]})})};var x=r(61402),v=r(5333);let w=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],[t,r]=(0,c.useState)({username:"",email:"",password:"",password_confirmation:""}),[n,s]=(0,c.useState)(()=>(0,x.LX)(e,"register")),[i,l]=(0,c.useState)(!1),[d,u]=(0,c.useState)(!1),[m,h]=(0,c.useState)(!1),[p,b]=(0,c.useState)({}),f=async e=>{try{if(!e)throw Error();u(!1),g(e)}catch(e){b({other:"Recaptcha not correctly configured"})}finally{h(!1)}},g=async r=>{let o=window.location.hostname+"";a.nC.post("/r-register",{...t,...(0,x.ek)(e,"register",n),check_score:1,"g-recaptcha-response":r,redirect_url:o}).then(()=>{l(!0),u(!1),h(!1)}).catch(e=>{let t=e.data.metaData;b(e=>({...e,...(0,v.dK)(null==t?void 0:t.errors),...(null==t?void 0:t.message)&&(null==t?void 0:t.status)===500?{other:t.message}:{}})),u(!1),h(!1)})};return{username:t.username,email:t.email,password:t.password,password_confirmation:t.password_confirmation,submit:r=>{r.preventDefault();let a={...(0,x.MG)(e,"register",n)};if(t.password!==t.password_confirmation&&(a.password_confirmation=(0,o.p)("common:password_match_error")),Object.keys(a).length>0)return void b(a);b({}),h(!0),u(!0)},errors:p,hasRegistered:i,showRecaptcha:d,isLoading:m,handleRecaptchaVerification:f,onRecaptchaExpire:()=>u(!1),handleInputChange:e=>{let{name:t,value:n}=e.target;r(e=>({...e,[t]:n}))},fieldValues:n,handleFieldChange:(e,t)=>
1{s(r=>({...r,[e]:t}))}}};var y=r(83127);let j=e=>{let{setCurrentView:t,fields:r,hideSocialLogin:a}=e,{errors:s,submit:l,username:d,email:u,password:p,password_confirmation:f,showRecaptcha:g,handleInputChange:x,handleRecaptchaVerification:v,hasRegistered:j,isLoading:k,fieldValues:N,handleFieldChange:_}=w(r),{recaptchaSiteKey:P,canLoginByGoogle:S,canLoginByFacebook:C}=(0,i.Z2)(),[E,z]=(0,c.useState)(!1),[L,T]=(0,c.useState)(!1),F=!a&&(C||S);return(0,n.jsx)("div",{className:"relative p-4 overflow-hidden bg-white rounded-sm shadow append-content dark:bg-[#222]",children:j?(0,n.jsx)("p",{className:"bg-primary/40 border-2 font-semibold mt-6 p-3 rounded-md text-primary dark:text-primaryDark",children:(0,o.p)("common:has_registered")}):(0,n.jsxs)("div",{className:"flex flex-col mb-4 text-left",children:[(0,n.jsxs)("div",{className:"relative p-4 mb-4 -m-4 bg-slate-200 dark:bg-[#222]",children:[(0,n.jsx)("h3",{className:"my-4 text-[32px] font-bold leading-6",children:(0,o.p)("common:register")}),(0,n.jsx)("p",{className:"mb-4 text-gray-400",children:F?(0,n.jsx)(n.Fragment,{children:(0,o.p)("common:register_with_social_media")}):(0,n.jsxs)(n.Fragment,{children:[" ",(0,o.p)("common:register_with_email")]})}),F&&(0,n.jsx)(h,{})]}),P&&(0,n.jsx)(b.G3,{reCaptchaKey:P,children:(0,n.jsxs)("form",{className:"text-left",onSubmit:l,children:[(0,n.jsxs)("div",{className:"mb-4",children:[(0,n.jsx)("label",{htmlFor:"register_username",className:"block mb-1 capitalize text-sm dark:text-white/70 font-semibold text-gray-700",children:(0,o.p)("common:username")}),(0,n.jsx)("input",{id:"register_username",name:"username",onChange:x,value:d,placeholder:(0,o.p)("common:username_placeholder"),autoComplete:"username",className:"block w-full p-2 bg-transparent border rounded-sm focus:outline-none border-zinc-700 focus:ring-primary focus:border-primary"}),(0,n.jsx)("span",{className:"block mt-1 text-xs text-gray-400",children:(0,o.p)("common:username_hint")}),s.username&&(0,n.jsx)("span",{className:"text-xs text-red-700",id:"email_login_errors",role:"alert",children:s.username})]}),(0,n.jsxs)("div",{className:"mb-4",children:[(0,n.jsx)("label",{htmlFor:"register_email",className:"block mb-1 text-sm dark:text-white/70 font-semibold text-gray-700",children:"Email"}),(0,n.jsx)("input",{name:"email",value:u,type:"email",onChange:x,id:"register_email",placeholder:(0,o.p)("common:email_placeholder"),autoComplete:"username",className:"block w-full p-2 mb-4 bg-transparent border rounded-sm focus:outline-none border-zinc-700 focus:ring-primary focus:border-primary"}),s.email&&(0,n.jsx)("span",{className:"text-xs text-red-700",id:"register_email_error",role:"alert",children:s.email})]}),(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)("label",{htmlFor:"register_password",className:"block mb-1 text-sm dark:text-white/70 font-semibold text-gray-700",children:(0,o.p)("common:password")}),(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)("input",{minLength:12,type:E?"text":"password",name:"password",onChange:x,value:p,placeholder:(0,o.p)("common:password_placeholder"),id:"register_password",className:"block w-full p-2 pr-10 bg-transparent border rounded-sm focus:outline-none border-zinc-700 focus:ring-primary focus:border-primary"}),(0,n.jsx)("button",{type:"button",onClick:()=>z(e=>!e),"aria-label":(0,o.p)(E?"common:hide_password":"common:show_password"),className:"absolute inset-y-0 right-0 flex items-center pr-3 text-gray-500 hover:text-gray-700 dark:hover:text-white",children:E?(0,n.jsx)(m.mx3,{}):(0,n.jsx)(m.Ny1,{})})]}),(0,n.jsx)("span",{className:"block mt-1 mb-4 text-xs text-gray-400",children:(0,o.p)("common:password_hint")}),s.password&&(0,n.jsx)("span",{className:"text-xs text-red-700",id:"register_password_error",role:"alert",children:s.password})]}),(0,n.jsxs)("div",{className:"relative mb-4",children:[(0,n.jsx)("label",{htmlFor:"register_password_confirmation",className:"block mb-1 text-sm dark:text-white/70 font-semibold text-gray-700",children:(0,o.p)("common:repeat_password")}),(0,n.jsxs)("div",{className:"relative mb-4",children:[(0,n.jsx)("input",{minLength:12,type:L?"text":"password",name:"password_confirmation",onChange:x,value:f,placeholder:(0,o.p)("common:repeat_password_placeholder"),id:"register_password_confirmation",className:"block w-full p-2 pr-10 bg-transparent border rounded-sm focus:outline-none border-zinc-700 focus:ring-primary focus:border-primary"}),(0,n.jsx)("button",{type:"button",onClick:()=>T(e=>!e),"aria-label":(0,o.p)(L?"common:hide_password":"common:show_password"),className:"absolute inset-y-0 right-0 flex items-center pr-3 text-gray-500 hover:text-gray-700 dark:hover:text-white",children:L?(0,n.jsx)(m.mx3,{}):(0,n.jsx)(m.Ny1,{})})]}),s.password_confirmation&&(0,n.jsx)("span",{className:"text-xs text-red-700",i
1d:"register_password_confirmation_error",role:"alert",children:s.password_confirmation}),s.other&&(0,n.jsx)("span",{className:"text-xs text-red-700",children:s.other})]}),(0,n.jsx)(y.A,{fields:r,context:"register",values:N,errors:s,onChange:_,idPrefix:"register"}),(0,n.jsxs)("button",{type:"submit",className:"w-full uppercase p-2 font-semibold text-white border rounded-sm focus:outline-none border-primary bg-primary hover:opacity-75",children:[k&&(0,n.jsx)("span",{className:"animate-ping inline-block w-4 h-4 bg-white opacity-75 mr-5 rounded-full",role:"status","aria-hidden":"true"}),(0,o.p)("common:register")]}),g&&(0,n.jsx)(b.z2,{onVerify:v})]})}),(0,n.jsx)("button",{onClick:()=>t("login"),className:"w-full uppercase mt-4 dark:text-primaryDark font-semibold bg-transparent rounded-sm register-switch-btn focus:outline-none text-primary hover:opacity-75",children:(0,o.p)("common:login")})]})})},k=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",[t,r]=(0,c.useState)(e),[n,s]=(0,c.useState)(""),[i,l]=(0,c.useState)(""),[d,u]=(0,c.useState)(!1),m=async e=>{e.preventDefault(),u(!0),l("");try{let e=window.location.hostname+"",r=await a.nC.post("/forgot-password",{email:t,redirect_url:"".concat(e,"/password/reset")});s(r.data.metaData.message)}catch(n){let e=(0,v.XR)(n),t=Object.values((0,v.dK)(null==e?void 0:e.errors))[0];if(t)return void l(t);let r=(null==e?void 0:e.key)==="error"&&(null==e?void 0:e.status)===400&&(null==e?void 0:e.message);if(r)return void s(r);l((0,o.p)("common:error.somethingWentWrong"))}finally{u(!1)}};return{isLoading:d,email:t,handleChangeEmail:e=>{let{value:t}=e.target;r(t)},submit:m,successMessage:n,errorMessage:i}},N=e=>{let{setCurrentView:t,initialEmail:r=""}=e,{email:a,handleChangeEmail:s,submit:i,successMessage:l,errorMessage:d,isLoading:c}=k(r);return(0,n.jsx)("div",{className:"append-content relative p-4 overflow-hidden bg-white rounded-lg shadow dark:bg-[#222]",children:l?(0,n.jsx)("p",{className:"bg-primary/40 border-2 font-semibold mt-6 p-3 rounded-md text-primary",children:l}):(0,n.jsxs)("div",{className:"flex flex-col mb-4 text-center",children:[(0,n.jsx)("div",{className:"relative py-4 px-8 mb-4 -m-4 bg-slate-200 dark:bg-[#222]",children:(0,n.jsxs)("p",{children:[" ",(0,o.p)("common:forgot_password_prompt")]})}),(0,n.jsxs)("form",{className:"text-left",onSubmit:i,children:[(0,n.jsx)("div",{id:"reset_password_result",style:{display:"none"},children:(0,n.jsx)("div",{className:"bg-teal-100 border-t-4 border-teal-500 rounded-b text-teal-900 px-4 py-3 shadow-md login-alert",role:"alert"})}),d&&(0,n.jsx)("p",{role:"alert",className:"border-2 border-red-500 font-semibold mb-4 p-3 rounded-md text-red-600 dark:text-red-400",children:d}),(0,n.jsxs)("div",{className:"mb-4",children:[(0,n.jsx)("label",{className:"mb-1 block text-sm dark:text-white/70 font-semibold text-gray-700",children:"Email"}),(0,n.jsx)("input",{name:"email",value:a,onChange:s,type:"email",required:!0,id:"register_email",placeholder:(0,o.p)("common:email_placeholder"),autoComplete:"username",className:"block w-full p-2 mb-4 focus:outline-none border bg-transparent border-zinc-100 rounded-lg focus:ring-primary focus:border-primary"})]}),(0,n.jsxs)("button",{type:"submit",className:"focus:outline-none flex items-center justify-center w-full border-primary border font-semibold rounded-lg bg-primary text-white p-2 hover:opacity-75",children:[c&&(0,n.jsx)("span",{className:"animate-ping inline-block w-4 h-4 bg-white opacity-75 mr-5 rounded-full",role:"status","aria-hidden":"true"}),(0,o.p)("common:reset_password")]}),(0,n.jsx)("div",{className:"text-center",children:(0,n.jsxs)("b",{children:[" ",(0,o.p)("common:or")]})}),(0,n.jsx)("button",{type:"button",onClick:()=>t("login"),className:"focus:outline-none w-full border-primary border font-semibold rounded-lg bg-primary text-white p-2 hover:opacity-75",children:(0,o.p)("common:login")}),(0,n.jsx)("button",{type:"button",onClick:()=>t("register"),className:"mt-2 focus:outline-none w-full border-primary border font-semibold rounded-lg bg-primary text-white p-2 hover:opacity-75",children:(0,o.p)("common:register")})]})]})})};var _=r(22478);let P=[],S=()=>{let{userData:e,showAuthModal:t,setShowAuthModal:r,customFieldsEnabled:a}=(0,i.Z2)(),{fields:s,status:u,load:m}=(0,_.D)(),h=a?u:"disabled",p=a?s:P,[b,f]=(0,c.useState)("login"),[v,w]=(0,c.useState)(!1),[y,k]=(0,c.useState)("");(0,c.useEffect)(()=>{t||k("")},[t]),(0,c.useEffect)(()=>{t&&"idle"===h&&m()},[m,h,t]);let S=(0,x.o4)(p,"register").length>0,C="disabled"===h||"ready"===h,E=a&&(!C||S);return(0,n.jsx)(d.default,{show:t,onClose:()=>r(!1),closeOnOutsideClick:!1,children:e?(0,n.jsx)(l,{successLogin:v}):(0,n.jsxs)(n.Fragment,{children:["login"===b&&(0,n.jsx)(g,{setSuccessLogin:w,setCurrentView:f,setForgotPasswordEmail:k,hideSocialLogin:E}),"register"===b&&C&&(0,n.jsx)(j,{setCurrentView:f,fields:p,hideSocialLogin:E}),"register"===b&&("idle"===h||"loading"===h)&&(0,n.jsxs)("div",{className:"relative p-8 bg-white rounded-sm shadow dark:bg-[#222]",role:"status","aria-live":"polite",children:[(0,n.jsx)("span",{className:"animate-ping inline-block w-4 h-4 bg-primary opacity-75 mr-3 rounded-full","aria-hidden":"true"}),(0,o.p)("common:registration.loading_fields")]}),"register"===b&&"error"===h&&(0,n.jsxs)("div",{className:"relative p-8 text-center bg-white rounded-sm shadow dark:bg-[#222]",role:"alert",children:[(0,n.jsx)("p",{className:"mb-4 text-gray-500 dark:text-white/70",children:(0,o.p)("common:registration.fields_unavailable")}),(0,n.jsx)("button",{type:"button",onClick:()=>void m(),className:"w-full uppercase p-2 font-semibold text-white border rounded-sm focus:outline-none border-primary bg-primary hover:opacity-75",children:(0,o.p)("common:registration.try_again")})]}),"forget"===b&&(0,n.jsx)(N,{setCurrentView:f,initialEmail:y})]})})}},39918:(e,t,r)=>{"use strict";r.d(t,{dW:()=>s,h9:()=>o,ue:()=>i});var n=r(67909),a=r(12115);let o=(0,a.createContext)({me:{entitlements:[],subscriptions:[],subscribedProductIds:[]},paymentProviderConfig:{provider:null,accountId:null,accountStatus:"pending",chargesEnabled:!1,paywallActive:!1,canSell:!1,subscriptionEnabled:!1},isStatusLoading:!1,isCheckoutLoading:!1,isPortalLoading:!1,error:null,entitlements:[],subscribedProductIds:[],hasEntitlement:()=>!1,isSubscribedToProduct:()=>!1,paywallActive:!1,canSell:!1,isSubscriptionEnabled:!1,ensureStatusLoaded:async()=>{},refreshSubscriptionStatus:async()=>{},products:[],loadingProducts:!1,fetchProducts:async()=>{},startCheckout:async()=>{},openCustomerPortal:async()=>{}}),s=(0,n.default)(()=>Promise.all([r.e(7629),r.e(4786),r.e(1087)]).then(r.bind(r,71087)),{loadableGenerated:{webpack:()=>[71087]},ssr:!0}),i=()=>(0,a.useContext)(o)},41670:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>u});var n=r(95155),a=r(20063),o=r(59887),s=r(12115);let i=(e,t)=>{if(e.endsWith("Z")||/[+-]\d{2}:\d{2}$/.test(e))return new Date(e).getTime();let r=e.match(/(\d{4})-(\d{2})-(\d{2})[\sT](\d{2}):(\d{2}):(\d{2})/);if(!r)return new Date(e).getTime();let[,n,a,o,s,i,l]=r;try{let e=new Date("".concat(n,"-").concat(a,"-").concat(o,"T12:00:00Z")),r=new Intl.DateTimeFormat("en-CA",{timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).format(e),d=new Date(r.replace(", ","T")).getTime()-e.getTime();return new Date("".concat(n,"-").concat(a,"-").concat(o,"T").concat(s,":").concat(i,":").concat(l)).getTime()-d}catch(r){return console.error("Timezone conversion error:",{dateStr:e,sourceTimezone:t,error:r}),new Date(e).getTime()}},l="Europe/Amsterdam";var d=r(94706),c=r(14157);let u=e=>{let{smartbarData:t}=e,r=(e=>{var t;let{smartbarData:r}=e,{date:n,links:d,visibility:c,end_at:u,start_at:m,text:h,link:p,button_text:b}=r,f=null!=(t=(0,a.usePathname)())?t:"",g=null==d?void 0:d.includes(f),[x,v]=(0,s.use
1State)(!1),[w,y]=function(e,t){let[r,n]=(0,s.useState)(()=>{try{let r=window.localStorage.getItem(e);return r?JSON.parse(r):t}catch(e){return t}});return[r,t=>{try{let a=t instanceof Function?t(r):t;n(a),window.localStorage.setItem(e,JSON.stringify(a))}catch(e){console.log(e)}}]}("smartbar_date",void 0);return(0,s.useEffect)(()=>{if(!m||!u||!n)return void v(!1);let e=Date.now(),t=i(m,l),r=i(u,l),a=i(n,l),s=t<=e&&r>e;if(!w||new Date(w).getTime()<a)switch(c){case o.TJ.Hidden:v(!1);break;case o.TJ.EverywhereExcept:v(s&&!g);break;case o.TJ.NowhereExcept:v(s&&g);break;default:v(s)}},[m,u,n,w,c,g]),(0,s.useEffect)(()=>{x&&y(void 0)},[x,y]),{show:x,handleCloseSmartbar:e=>{v(!1),y(e)},text:h,link:p,lastUpdated:n,button_text:b}})({smartbarData:t}),u=(0,a.useRouter)();return(0,n.jsx)(n.Fragment,{children:r&&r.show&&(0,n.jsx)("div",{className:"w-full Smartbar fixed z-30 bottom-0 p-2 py-4 bg-black/90 border-gray-200/30 border-t backdrop-blur-lg",children:(0,n.jsxs)("div",{className:"flex items-center container mx-auto justify-between gap-8 ",children:[(0,n.jsxs)("div",{className:"flex justify-between flex-1 items-center Smartbar-content",children:[(0,n.jsx)(d.h,{href:null==r?void 0:r.link,className:"text-sm sm:text-base hover:underline text-white",children:null==r?void 0:r.text}),r.button_text&&(0,n.jsx)("button",{onClick:()=>u.push(r.link),className:"transition-all focus:outline-none px-8 duration-700 font-semibold rounded-lg bg-primary text-white p-2 hover:opacity-75",children:r.button_text})]}),(0,n.jsx)("button",{onClick:()=>{r.handleCloseSmartbar(r.lastUpdated)},"aria-label":(0,c.p)("common:close"),style:{float:"right",fontSize:" 1.2rem",fontWeight:700,lineHeight:1,color:"gray",textShadow:" 0 1px 0 #fff"},className:"opacity-60 hover:opacity-100 transition-all Smartbar-close-button",children:"â"})]})})})}},45694:(e,t,r)=>{"use strict";r.d(t,{kd:()=>n.kd,x2:()=>u,Np:()=>c,X1:()=>m,ME:()=>l,xz:()=>a.x});var n=r(13286),a=r(96213),o=r(34786),s=r(59887);r(95704).env.SECRET_CLIENT_IDENTIFIER,r(95704);let{cache:i}=r(12115);function l(e){let t={};return e===s.iv.user_preferences?t.defaultTheme="light":e===s.iv.user_preferences_dark?t.defaultTheme="dark":t.defaultTheme=e,t}let d=i(async()=>{try{let e=await (0,o.ly)("buildifire-settings.json");if(!e)return null;return JSON.parse(e.content)}catch(e){return console.log(e),null}});async function c(){let e=await d();return null==e?void 0:e.globalDateFormat}async function u(e){let t=await (0,o.mt)();return e&&e===s.bT.None&&(null==t?void 0:t["datetime.default_display_type"])?null==t?void 0:t["datetime.default_display_type"]:e||(null==t?void 0:t["datetime.default_display_type"])}function m(){return"https://cdn.newsifier.com"}r(95704),r(1406),r(14157)},46274:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});let n={verified:"rt-icons-icons-verified"}},47026:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d});var n=r(95155),a=r(34786),o=r(20390),s=r(68321),i=r(12115),l=r(49499);let d=e=>{let{authGoogleAppId:t}=e,{login:r}=(0,o.A)({}),[d,c]=(0,i.useState)(!1),[u,m]=(0,i.useState)(!1),{tenant:h}=(0,l.Z2)();(0,i.useEffect)(()=>{let e=localStorage.getItem("".concat(h,"-accessToken"));t&&!e&&m(!0),d&&(window.google.accounts.id.initialize({client_id:t,callback:p}),window.google.accounts.id.prompt())},[d]);let p=async e=>{let t=await (0,a.$p)(e.credential);t&&r(t)};return u?(0,n.jsx)(s.default,{src:"https://accounts.google.com/gsi/client",onLoad:()=>c(!0),strategy:"lazyOnload"}):(0,n.jsx)(n.Fragment,{})}},47873:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});let n={root:"rt-tweet-in-reply-to-root"}},51343:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r(95155),a=r(12115),o=r(59887);let s=new(r(82322)).L("https://r.testifier.nl");function i(e){return e.replace(/\?+$/,"")}let l=e=>{let{src:t,width:r,aspectRatio:n=1.5,fit:a}=e,[o,l]=t.split("$watermark:");if(t.includes("r.testifier.nl"))return i(o);if(!t.includes("s3-newsifier.ams3.digitaloceanspaces.com"))return t;let d=i(s.resize(o,{w:r,h:Math.floor(r/n),watermark:l}));return a&&(d=d.replace("fill","fit")),d.includes(".gif")&&(d=d.replace("@webp","")),d};var d=r(15239),c=r(67909),u=r(20063);let m=(0,c.default)(()=>Promise.resolve().then(r.bind(r,78301))),h=e=>{var t,r;let{popupData:s,children:i}=e,{showModal:c,onClose:h}=(e=>{let{popupData:t}=e,[r,n]=(0,a.useState)(!1),{date:s}=t,i=()=>{window.scrollY>document.documentElement.scrollHeight/5&&function(e){try{let t=window.localStorage.getItem(o.MJ);if(!t)return!0;let{lastSeen:r}=JSON.parse(t);if(r!==e)return!0}catch(e){return!1}}(s)&&(n(!0),function(e){try{window.localStorage.setItem(o.MJ,JSON.stringify({lastSeen:e}))}catch(e){console.log(e)}}(s))};return(0,a.useEffect)(()=>(window.addEventListener("scroll",i),()=>window.removeEventListener("scroll",i)),[]),{showModal:r,onClose:()=>n(!1)}})({popupData:s}),p=(0,u.useRouter)(),b=null!=(r=(0,u.usePathname)())?r:"";if(!s)return(0,n.jsx)(n.Fragment,{});let f=null==(t=s.links)?void 0:t.includes(b);return s.visibility!==o.TJ.Hidden&&(s.visibility!==o.TJ.EverywhereExcept||!f)&&(s.visibility!==o.TJ.NowhereExcept||f)&&c?(0,n.jsx)(m,{show:c,onClose:h,children:(0,n.jsxs)("div",{className:"px-2 pt-12 pb-6",children:[s.logoPath&&(0,n.jsx)("div",{className:"relative mb-4 aspect-w-3 aspect-h-2",children:(0,n.jsx)(d.default,{src:s.logoPath,loader:l,layout:"fill",objectFit:"cover",objectPosition:"center",alt:"logo"})}),(0,n.jsx)("div",{className:"gap-4 flex flex-col",id:"article-blocks",children:i}),(0,n.jsx)("div",{className:"mt-4 flex justify-center",children:(0,n.jsx)("button",{className:"profile-submit-btn focu
1s:outline-none px-8 mt-4 border-primary border font-semibold rounded-lg bg-primary text-white p-2 hover:opacity-75",onClick:()=>p.push(s.link),children:s.buttonText})})]})}):(0,n.jsx)(n.Fragment,{})}},51426:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});let n={root:"rt-tweet-container-root",article:"rt-tweet-container-article"}},55837:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});let n={verifiedOld:"rt-verified-badge-verifiedOld",verifiedBlue:"rt-verified-badge-verifiedBlue",verifiedGovernment:"rt-verified-badge-verifiedGovernment"}},61402:(e,t,r)=>{"use strict";r.d(t,{o4:()=>c,LX:()=>b,L1:()=>u,ft:()=>v,Gp:()=>d,Ox:()=>h,A5:()=>m,Ac:()=>p,ek:()=>g,MG:()=>f});var n=r(59887),a=r(14157);let o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!/^[0-9]{2,}$/.test(e))return!1;let r=e.slice(0,-1),n=Number(e.slice(-1));return s(r,t)===n},s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r="".concat(t).concat(e).split(""),n=r.length-1;return(10-r.reduce((e,t,r)=>{let a=Number(t);return(n-r)%2==0&&(a*=2)>9&&(a-=9),e+a},0)%10)%10},i=(e,t)=>{let r=(0,a.p)("validation:field.".concat(t));return"".concat(l(e)," ").concat(r)},l=e=>v(e).map(e=>e.text).join(""),d=e=>e.trim().replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/[^a-zA-Z\d]+/g,"_").replace(/^_+|_+$/g,"").toLowerCase(),c=(e,t)=>e.filter(e=>{var r;return null==(r=e.contexts)?void 0:r.includes(t)}),u=e=>"checkbox"===e.type||"terms"===e.type,m=e=>Array.isArray(e.values)?e.values.map(e=>({value:e,label:e})):[],h=e=>{let t=e.values;return!t||Array.isArray(t)||"object"!=typeof t?null:"string"==typeof t.file&&""!==t.file?t.file:null},p=e=>Array.isArray(e)?e.flatMap(e=>{if("string"==typeof e)return""===e?[]:[{value:e,label:e}];if(!e||"object"!=typeof e)return[];let{value:t,label:r}=e;return"string"!=typeof t||""===t?[]:[{value:t,label:"string"==typeof r&&""!==r?r:t}]}):[],b=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n={};return c(e,t).forEach(e=>{let t=r[e.name];if(null!=t){n[e.name]=u(e)?!!t:String(t);return}if(u(e)){n[e.name]=!0===e.default;return}n[e.name]=null==e.default?"":String(e.default)}),n},f=(e,t,r)=>{let a={};return c(e,t).forEach(e=>{let t=((e,t)=>{var r,a,s;if(u(e))return e.required&&!0!==t?i(e,"required"):null;let l="string"==typeof t?t.trim():"";if(""===l)return e.required?i(e,"required"):null;let d=null!=(a=e.rules)?a:{};if(d.pattern){let t=null;try{t=new RegExp(d.pattern)}catch(e){t=null}if(t&&!t.test(l))return i(e,"pattern")}if(void 0!==d.digits){let t=null;try{t=new RegExp("^[0-9]{".concat(d.digits,"}$"))}catch(e){t=null}if(t&&!t.test(l))return i(e,"digits")}if(void 0!==d.min&&l.length<d.min)return i(e,"min");if(void 0!==d.max&&l.length>d.max)return i(e,"max");if((null==(r=d.checksum)?void 0:r.algorithm)===n.Eo&&!o(l,null!=(s=d.checksum.prefix)?s:""))return i(e,"checksum");if("select"===e.type){let t=m(e);if(t.length>0&&!t.some(e=>e.value===l))return i(e,"option")}return null})(e,r[e.name]);t&&(a[e.name]=t)}),a},g=(e,t,r)=>{let n={};return c(e,t).forEach(e=>{let t=r[e.name];n[e.name]=u(e)?!0===t?"1":"0":"string"==typeof t?t:""}),n},x=e=>!/[\\\t\r\n]/.test(e)&&(e.startsWith("/")&&!e.startsWith("//")||/^https?:\/\//i.test(e)),v=e=>{var t;let r=null!=(t=e.links)?t:{},n=[],a=/\{([a-z0-9_-]+)\}/gi,o=0,s=a.exec(e.label);for(;null!==s;){s.index>o&&n.push({kind:"text",text:e.label.slice(o,s.index)});let t=r[s[1]];n.push(t&&x(t.url)?{kind:"link",text:t.text,url:t.url}:t?{kind:"text",text:t.text}:{kind:"text",text:s[0]}),o=s.index+s[0].length,s=a.exec(e.label)}return o<e.label.length&&n.push({kind:"text",text:e.label.slice(o)}),n}},61615:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});let n={root:"rt-tweet-body-root"}},66979:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});let n={info:"rt-tweet-info-info",infoLink:"rt-tweet-info-infoLink",infoIcon:"rt-tweet-info-infoIcon"}},67664:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});let n={root:"rt-tweet-skeleton-root"}},68619:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});let n={root:"rt-tweet-link-root"}},70804:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});let n={root:"rt-tweet-info-created-at-root"}},73677:()=>{},76226:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});let n={header:"rt-quoted-tweet-quoted-tweet-header-header",avatar:"rt-quoted-tweet-quoted-tweet-header-avatar",avatarSquare:"rt-quoted-tweet-quoted-tweet-header-avatarSquare",author:"rt-quoted-tweet-quoted-tweet-header-author",authorText:"rt-quoted-tweet-quoted-tweet-header-authorText",username:"rt-quoted-tweet-quoted-tweet-header-username"}},78301:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>c});var n=r(95155),a=r(12115),o=r(47650);let s=function(e,t,r,n){let o=(0,a.useRef)(t);(0,a.useEffect)(()=>{o.current=t},[t]),(0,a.useEffect)(()=>{let t=(null==r?void 0:r.current)||window;if(!(t&&t.addEventListener))return;let a=e=>o.current(e);return t.addEventListener(e,a,n),()=>{t.removeEventListener(e,a)}},[e,r,n])},i=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mousedown";s(r,r=>{let n=null==e?void 0:e.current;!n||n.contains(r.target)||t(r)})};var l=r(14157);let d=o.createPortal,c=e=>{let{show:t=!1,onClose:r,backgroundColor:o,children:s,closeOnOutsideClick:c=!0}=e,u=(0,a.useRef)(null),[m,h]=(0,a.useState)(!1);return((0,a.useEffect)(()=>(h(!0),()=>h(!1)),[]),i(u,()=>{c&&r()}),m&&t)?d((0,n.jsx)("div",{className:"fixed inset-0 z-50 overflow-y-auto",children:(0,n.jsxs)("div",{className:"min-h-screen px-4 text-center",children:[(0,n.jsx)("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"}),(0,n.jsx)("span",{className:"inline-block h-screen align-middle","aria-hidden":"true",children:"â"}),(0,n.jsxs)("div",{ref:u,className:"max-w-md inline-block relative w-full my-8 overflow-hidden text-left align-middle transform transition-all shadow-xl rounded-lg\n ".concat(null!=o?o:"bg-white","\n "),children:[(0,n.jsx)("button",{type:"button",className:"absolute top-3 right-4 z-20","data-modal-toggle":"authentication-modal","data-handler":"true","aria-label":(0,l.p)("common:close"),onClick:r,children:(0,n.jsx)("svg",{className:"w-5 h-5 stroke-neutral-500 dark:stroke-white",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})}),s]})]})}),document.body):null}},78524:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});let n={skeleton:"rt-skeleton-skeleton"}},83127:(e,t,r)=>{"use strict";r.d(t,{A:()=>m});var n=r(95155),a=r(12115),o=r(61402);let s=new Map;var i=r(14157);let l="block w-full p-2 bg-transparent border rounded-sm focus:outline-none border-zinc-700 focus:ring-primary focus:border-primary",d="block mb-1 text-sm dark:text-white/70 font-semibold text-gray-700",c=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,o.ft)(e).map((e,r)=>"link"===e.kind?(0,n.jsx)("a",{href:e.url,target:t?"_blank":void 0,rel:t?"noopener noreferrer":void 0,className:"underline text-primary dark:text-primaryDark",children:e.text},r):(0,n.jsx)(a.Fragment,{children:e.text},r))},u=e=>
1{let{field:t,id:r,value:d,error:c,errorId:u,onChange:m}=e,h=(e=>{let t=(0,o.Ox)(e),r=e.values,n=(0,a.useMemo)(()=>(0,o.A5)(e),[r]),[i,l]=(0,a.useState)([]);return(0,a.useEffect)(()=>{if(!t)return;let e=!0;return(e=>{let t=s.get(e);if(t)return t;let r=fetch("/".concat(encodeURIComponent(e))).then(e=>{if(!e.ok)throw Error("status ".concat(e.status));return e.json()}).then(o.Ac).catch(t=>(console.log("#registrationOptions | File: ".concat(e," | Error: ").concat((null==t?void 0:t.message)||t)),s.get(e)===r&&s.delete(e),[]));return s.set(e,r),r})(t).then(t=>{e&&l(t)}),()=>{e=!1}},[t]),t?i:n})(t);return(0,n.jsxs)("select",{id:r,name:t.name,value:d,"aria-required":t.required||void 0,"aria-invalid":!!c||void 0,"aria-describedby":c?u:void 0,onChange:e=>m(t.name,e.target.value),className:l,children:[(0,n.jsx)("option",{value:"",disabled:t.required||void 0,children:(0,i.p)("common:select_placeholder")}),h.map(e=>(0,n.jsx)("option",{value:e.value,children:e.label},e.value))]})},m=e=>{let{fields:t,context:r,values:a,errors:s,onChange:i,idPrefix:m}=e;return(0,n.jsx)(n.Fragment,{children:(0,o.o4)(t,r).map(e=>{let t="".concat(m,"_").concat(e.name),r=s[e.name],h="".concat(t,"_error");return(0,n.jsxs)("div",{className:"mb-4",children:["link"===e.type?(0,n.jsx)("div",{className:d,children:c(e)}):(0,o.L1)(e)?(0,n.jsxs)("div",{className:"flex items-start gap-2",children:[(0,n.jsx)("input",{id:t,name:e.name,type:"checkbox",checked:!0===a[e.name],"aria-required":e.required||void 0,"aria-invalid":!!r||void 0,"aria-describedby":r?h:void 0,onChange:t=>i(e.name,t.target.checked),className:"mt-1 shrink-0"}),(0,n.jsxs)("label",{htmlFor:t,className:d,children:["terms"===e.type?c(e,!0):(0,n.jsx)(n.Fragment,{children:e.label}),e.required&&(0,n.jsx)("span",{"aria-hidden":"true",children:" *"})]})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("label",{htmlFor:t,className:d,children:[e.label,e.required&&(0,n.jsx)("span",{"aria-hidden":"true",children:" *"})]}),"select"===e.type?(0,n.jsx)(u,{field:e,id:t,value:"string"==typeof a[e.name]?a[e.name]:"",error:r,errorId:h,onChange:i}):(0,n.jsx)("input",{id:t,name:e.name,type:"text",value:"string"==typeof a[e.name]?a[e.name]:"","aria-required":e.required||void 0,"aria-invalid":!!r||void 0,"aria-describedby":r?h:void 0,onChange:t=>i(e.name,t.target.value),className:l})]}),r&&(0,n.jsx)("span",{className:"text-xs text-red-700",id:h,role:"alert",children:r})]},e.name)})})}},85915:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});let n={root:"rt-quoted-tweet-quoted-tweet-body-root"}},95204:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s});var n=r(95155),a=r(12115),o=r(68321);let s=e=>{let{provider:t,id:r,hasConsentManagement:s=!1}=e,[i,l]=(0,a.useState)(!1);return((0,a.useEffect)(()=>{if(!r||!t)return;let e=setTimeout(()=>l(!0),5e3),n=["mousedown","keydown","touchstart","scroll"],a=()=>{l(!0),clearTimeout(e),n.forEach(e=>document.removeEventListener(e,a))};return n.forEach(e=>document.addEventListener(e,a,{once:!0,passive:!0})),()=>{clearTimeout(e),n.forEach(e=>document.removeEventListener(e,a))}},[r,t]),(0,a.useEffect)(()=>{"webpushr"===t&&r&&!window.webpushr&&(window.webpushr=function(){(window.webpushr.q=window.webpushr.q||[]).push(arguments)})},[t,r]),i)?(0,n.jsxs)(n.Fragment,{children:["onesignal"===t&&r&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("link",{rel:"dns-prefetch",href:"https://cdn.onesignal.com"}),(0,n.jsx)("link",{rel:"dns-prefetch",href:"https://onesignal.com"}),(0,n.jsx)("link",{rel:"preconnect",href:"https://cdn.onesignal.com",crossOrigin:"anonymous"}),(0,n.jsx)(o.default,{id:"onesignal-sdk",src:"https://cdn.onesignal.com/sdks/web/v16/OneSignalSDK.page.js",strategy:"lazyOnload",onLoad:()=>{"onesignal"===t&&r&&(window.OneSignalDeferred=window.OneSignalDeferred||[],window.OneSignalDeferred.push(async function(e){await e.init({appId:r,serviceWorkerParam:{scope:"/"},serviceWorkerPath:"OneSignalSDKWorker.js",requiresUserPrivacyConsent:s,notifyButton:{enable:!s},promptOptions:{slidedown:{prompts:[{type:"push",autoPrompt:!s}]}}})}))}})]}),"webpushr"===t&&r&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("link",{rel:"dns-prefetch",href:"https://cdn.webpushr.com"}
1),(0,n.jsx)("link",{rel:"preconnect",href:"https://cdn.webpushr.com",crossOrigin:"anonymous"}),(0,n.jsx)(o.default,{id:"webpushr-jssdk",src:"https://cdn.webpushr.com/app.min.js",strategy:"lazyOnload",onLoad:()=>{"webpushr"===t&&r&&window.webpushr("setup",{key:r})}})]})]}):null}},96213:(e,t,r)=>{"use strict";r.d(t,{x:()=>n});let n=()=>!1},99373:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});let n={replies:"rt-tweet-replies-replies",link:"rt-tweet-replies-link",text:"rt-tweet-replies-text"}}},e=>{e.O(0,[6138,6808,5284,6536,4482,5558,6658,5831,1290,845,9599,2852,7629,5239,3389,2619,7912,3703,4157,4786,7691,4620,7983,6755,876,3689,8441,1255,7358],()=>e(e.s=31081)),_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.