1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,551172,e=>{"use strict";var r,t=e.i(632727),n=e.i(978844),o=(0,t.forwardRef)(({as:e="div",...r},t)=>(0,n.jsx)(e,{...r,ref:t})),a="cf-turnstile-script",i="onloadTurnstileCallback",l={normal:{width:300,height:65},compact:{width:150,height:140},invisible:{width:0,height:0,overflow:"hidden"},flexible:{minWidth:300,width:"100%",height:65},interactionOnly:{width:"fit-content",height:"auto",display:"flex"}},c="unloaded",s=new Promise((e,t)=>{r={resolve:e,reject:t},"ready"===c&&e(void 0)}),u=(e=i)=>("unloaded"===c&&(c="loading",window[e]=()=>{r.resolve(),c="ready",delete window[e]}),s),d=(0,t.forwardRef)((e,r)=>{let{scriptOptions:s,options:d={},siteKey:m,onWidgetLoad:f,onSuccess:p,onExpire:h,onError:x,onBeforeInteractive:v,onAfterInteractive:b,onUnsupported:g,onTimeout:w,onLoadScript:y,id:T,style:E,as:C="div",injectScript:j=!0,rerenderOnCallbackChange:S=!1,...k}=e,I=d.size,N=(0,t.useCallback)(()=>typeof I>"u"?{}:"execute"===d.execution?l.invisible:"interaction-only"===d.appearance?l.interactionOnly:l[I],[d.execution,I,d.appearance]),[R,B]=(0,t.useState)(N()),A=(0,t.useRef)(null),[L,O]=(0,t.useState)(!1),q=(0,t.useRef)(void 0),P=(0,t.useRef)(!1),F=T||"cf-turnstile",z=(0,t.useRef)({onSuccess:p,onError:x,onExpire:h,onBeforeInteractive:v,onAfterInteractive:b,onUnsupported:g,onTimeout:w});(0,t.useEffect)(()=>{S||(z.current={onSuccess:p,onError:x,onExpire:h,onBeforeInteractive:v,onAfterInteractive:b,onUnsupported:g,onTimeout:w})});let U=s?.id||a,_=function(e=a){let[r,n]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{let r=()=>{document.getElementById(e)&&n(!0)},t=new MutationObserver(r);return t.observe(document,{childList:!0,subtree:!0}),r(),()=>{t.disconnect()}},[e]),r}(U),$=s?.onLoadCallbackName||i,K=d.appearance||"always",D=(0,t.useMemo)(()=>({sitekey:m,action:d.action,cData:d.cData,theme:d.theme||"auto",language:d.language||"auto",tabindex:d.tabIndex,"response-field":d.responseField,"response-field-name":d.responseFieldName,size:function(e){if("invisible"!==e&&"interactionOnly"!==e)return e}(I),retry:d.retry||"auto","retry-interval":d.retryInterval||8e3,"refresh-expired":d.refreshExpired||"auto","refresh-timeout":d.refreshTimeout||"auto",execution:d.execution||"render",appearance:d.appearance||"always","feedback-enabled":d.feedbackEnabled??!0,callback:e=>{P.current=!0,S?p?.(e):z.current.onSuccess?.(e)},"error-callback":S?x:(...e)=>z.current.onError?.(...e),"expired-callback":S?h:(...e)=>z.current.onExpire?.(...e),"before-interactive-callback":S?v:(...e)=>z.current.onBeforeInteractive?.(...e),"after-interactive-callback":S?b:(...e)=>z.current.onAfterInteractive?.(...e),"unsupported-callback":S?g:(...e)=>z.current.onUnsupported?.(...e),"timeout-callback":S?w:(...e)=>z.current.onTimeout?.(...e)}),[d.action,d.appearance,d.cData,d.execution,d.language,d.refreshExpired,d.responseField,d.responseFieldName,d.retry,d.retryInterval,d.tabIndex,d.theme,d.feedbackEnabled,d.refreshTimeout,m,I,S,S?p:null,S?x:null,S?h:null,S?v:null,S?b:null,S?g:null,S?w:null]),M=(0,t.useCallback)(()=>"u">typeof window&&!!window.turnstile,[]);return(0,t.useEffect)(function(){j&&!L&&(u($),(({render:e="explicit",onLoadCallbackName:r=i,scriptOptions:{nonce:t="",defer:n=!0,async:o=!0,id:l="",appendTo:c,onError:s,crossOrigin:u=""}={}})=>{let d=l||a;if(document.getElementById(d))return;let m=document.createElement("script");m.id=d,m.src=`https://challenges.cloudflare.com/turnstile/v0/api.js?onload=${r}&render=${e}`,document.querySelector(`script[src="${m.src}"]`)||(m.defer=!!n,m.async=!!o,t&&(m.nonce=t),u&&(m.crossOrigin=u),s&&(m.onerror=s,delete window[r]),("body"===c?document.body:document.getElementsByTagName("head")[0]).appendChild(m))})({onLoadCallbackName:$,scriptOptions:{...s,id:U}}))},[j,L,s,U,$]),(0,t.useEffect)(function(){"ready"!==c&&u($).then(()=>O(!0)).catch(console.error)},[$]),(0,t.useEffect)(function(){if(!A.current||!L)return;let e=!1;return(async()=>{e||!A.current||(q.current=window.turnstile.render(A.current,D),q.current&&f?.(q.current))})(),()=>{e=!0,q.current&&(window.turnstile.remove(q.current),P.current=!1)}},[F,L,D]),(0,t.useImperativeHandle)(r,()=>{let{turnstile:e}=window;return{getResponse:()=>e?.getResponse&&q.current&&M()?e.getResponse(q.current):void console.warn("Turnstile has not been loaded"),getResponsePromise:async(e=3e4,r=100)=>new Promise((t,n)=>{let o,a=async()=>
1{if(P.current&&window.turnstile&&q.current)try{let e=window.turnstile.getResponse(q.current);return o&&clearTimeout(o),e?t(e):n(Error("No response received"))}catch(e){return o&&clearTimeout(o),console.warn("Failed to get response",e),n(Error("Failed to get response"))}o||(o=setTimeout(()=>{o&&clearTimeout(o),n(Error("Timeout"))},e)),await new Promise(e=>setTimeout(e,r)),await a()};a()}),reset(){if(!e?.reset||!q.current||!M())return void console.warn("Turnstile has not been loaded");"execute"===d.execution&&B(l.invisible);try{P.current=!1,e.reset(q.current)}catch(e){console.warn(`Failed to reset Turnstile widget ${q}`,e)}},remove(){e?.remove&&q.current&&M()?(B(l.invisible),P.current=!1,e.remove(q.current),q.current=null):console.warn("Turnstile has not been loaded")},render(){if(!e?.render||!A.current||!M()||q.current)return void console.warn("Turnstile has not been loaded or container not found");let r=e.render(A.current,D);return q.current=r,q.current&&f?.(q.current),"execute"!==d.execution&&B(I?l[I]:{}),r},execute(){"execute"!==d.execution?console.warn('Execution mode is not set to "execute"'):e?.execute&&A.current&&q.current&&M()?(e.execute(A.current,D),B(I?l[I]:{})):console.warn("Turnstile has not been loaded or container not found")},isExpired:()=>e?.isExpired&&q.current&&M()?e.isExpired(q.current):(console.warn("Turnstile has not been loaded"),!1)}},[q,d.execution,I,D,A,M,L,f]),(0,t.useEffect)(()=>{if(L||!_)return;if(window.turnstile)return void O(!0);let e=setInterval(()=>{window.turnstile&&(O(!0),clearInterval(e))},50);return()=>{clearInterval(e)}},[L,_]),(0,t.useEffect)(()=>{B(N())},[d.execution,I,K]),(0,t.useEffect)(()=>{_&&"function"==typeof y&&y()},[_]),(0,n.jsx)(o,{ref:A,as:C,id:F,style:{...R,...E},...k})});d.displayName="Turnstile",e.s(["Turnstile",()=>d])},290129,e=>{"use strict";e.i(451679);var r=e.i(978844),t=e.i(739260),n=e.i(847373),o=e.i(505930),a=e.i(263344),i=e.i(632727),l=e.i(551172);e.i(116233);var c=e.i(911715),s=e.i(620107),u=e.i(314478),d=e.i(154525),m=e.i(81522),f=e.i(8362),p=e.i(331680),h=e.i(207653);let x=["general","technical_support","attending_lecture","enrollment_help","become_lecturer","partnership","feedback"],v=e=>h.z.object({name:h.z.string().min(1,{message:e("validation.nameRequired")}).max(100,{message:e("validation.nameTooLong")}),email:h.z.string().email({message:e("validation.invalidEmail")}).max(200,{message:e("validation.emailTooLong")}),topic:h.z.enum(x),lectureName:h.z.string().optional(),query:h.z.string().min(10,{message:e("validation.queryTooShort")}).max(2e3,{message:e("validation.queryTooLong")})});v(e=>e);var b=e.i(191424);let g=(0,b.createServerReference)("60732d882e3ad6a6b27157d95857b17bedf9a12971",b.callServer,void 0,b.findSourceMapURL,"submitContact");function w(e){let h,b,w,T,E,C,j,S,k,I,N,R,B,A,L,O,q,P,F,z,U,_,$,K,D,M,W,H,Q,V,Y,G,J=(0,t.c)(97),{defaultName:X,defaultEmail:Z,purchasedLectures:ee}=e,er=void 0===X?"":X,et=void 0===Z?"":Z;J[0]!==ee?(h=void 0===ee?[]:ee,J[0]=ee,J[1]=h):h=J[1];let en=h,eo=(0,a.useTranslations)("contact"),[ea,ei]=(0,i.useState)(null),[el,ec]=(0,i.useState)(!1);if(J[2]!==eo){let e=v(eo);T=n.useForm,b="onTouched",w=(0,o.zodResolver)(e),J[2]=eo,J[3]=b,J[4]=w,J[5]=T}else b=J[3],w=J[4],T=J[5];J[6]!==et||J[7]!==er?(E={name:er,email:et},J[6]=et,J[7]=er,J[8]=E):E=J[8],J[9]!==b||J[10]!==w||J[11]!==E?(C={mode:b,resolver:w,defaultValues:E},J[9]=b,J[10]=w,J[11]=E,J[12]=C):C=J[12];let{register:es,handleSubmit:eu,control:ed,setError:em,formState:ef}=T(C),{errors:ep,isSubmitting:eh}=ef;J[13]!==eo?(j=x.map(e=>({label:eo(`form.topics.${e}`),value:e})),J[13]=eo,J[14]=j):j=J[14];let ex=j;J[15]!==en?(S=en.map(y),J[15]=en,J[16]=S):S=J[16];let ev=S;J[17]!==ea||J[18]!==em||J[19]!==eo?(k=async e=>{if(!ea)return void em("root",{message:eo("form.captchaRequired")});let r=await g(e,ea);"error"in r?em("root",{message:r.error}):ec(!0)},J[17]=ea,J[18]=em,J[19]=eo,J[20]=k):k=J[20];let eb=k;if(el){let e,t;return J[21]!==eo?(e=eo("form.success"),J[21]=eo,J[22]=e):e=J[22],J[23]!==e?(t=(0,r.jsx)(p.Card,{variant:"outline",className:"max-w-4xl mx-auto w-full",children:(0,r.jsx)(p.Card.Body,{children:(0,r.jsx)(c.Stack,{gap:"sm",className:"text-center py-4",children:(0,r.jsx)(f.Text,{variant:"h4",children:e})})})}),J[23]=e,J[24]=t):t=J[24],t}J[25]!==eu||J[26]!==eb?(I=eu(eb),J[25]=eu,J[26]=eb,J[27]=I):I=J[27],J[28]!==es?(N=es("name"),J[28]=es,J[29]=N):N=J[29],J[30]!==eo?(R=eo("form.name"),J[30]=eo,J[31]=R):R=J[31],J[32]!==eo?(B=eo("form.namePlaceholder"),J[32]=eo,J[33]=B):B=J[33],J[34]!==ep.name||J[35]!==N||J[36]!==R||J[37]!==B?(A=(0,r.jsx)(s.TextInput,{...N,label:R,placeholder:B,error:ep.name}),J[34]=ep.name,J[35]=N,J[36]=R,J[37]=B,J[38]=A):A=J[38],J[39]!==es?(L=es("email"),J[39]=es,J[40]=L):L=J[40],J[41]!==eo?(O=eo("form.email"),J[41]=eo,J[42]=O):O=J[42],J[43]!==eo?(q=eo("form.emailPlaceholder"),J[43]=eo,J[44]=q):q=J[44],J[45]!==ep.email||J[46]!==L||J[47]!==O||J[48]!==q?(P=(0,r.jsx)(s.TextInput,{...L,type:"email",label:O,placeholder:q,error:ep.email}),J[45]=ep.email,J[46]=L,J[47]=O,J[48]=q,J[49]=P):P=J[49],J[50]!==ep.topic||J[51]!==eo||J[52]!==ex?(F=e=>{let{field:t}=e;return(0,r.jsx)(d.Select,{label:eo("form.topic"),options:ex,value:t.value??"",onChange:t.onChange,onBlur:t.onBlur,placeholder:eo("form.topicPlaceholder"),error:ep.topic})},J[50]=ep.topic,J[51]=eo,J[52]=ex,J[53]=F):F=J[53],J[54]!==ed||J[55]!==F?(z=(0,r.jsx)(n.Controller,{name:"topic",control:ed,render:F}),J[54]=ed,J[55]=F,J[56]=z):z=J[56],J[57]!==ed||J[58]!==ep.lectureName||J[59]!==ev||J[60]!==en.length||J[61]!==eo?(U=en.length>0&&(0,r.jsx)(n.Controller,{name:"lectureName",control:ed,render:e=>{let{field:t}=e;return(0,r.jsx)(d.Select,{label:eo("form.lectureName"),options:ev,value:t.value??"",onChange:t.onChange,onBlur:t.onBlur,placeholder:eo("form.lectureNamePlaceholder"),error:ep.lectureName})}}),J[57]=ed,J[58]=ep.lectureName,J[59]=ev,J[60]=en.length,J[61]=eo,J[62]=U):U=J[62],J[63]!==es?(_=es("query"),J[63]=es,J[64]=_):_=J[64],J[65]!==eo?($=eo("form.query"),J[65]=eo,J[66]=$):$=J[66],J[67]!==eo?(K=eo("form.queryPlaceholder"),J[67]=eo,J[68]=K):K=J[68],J[69]!==ep.query||J[70]!==_||J[71]!==$||J[72]!==K?(D=(0,r.jsx)(u.TextArea,{..._,label:$,placeholder:K,maxChar:2e3,rows:6,error:ep.query}),J[69]=ep.query,J[70]=_,J[71]=$,J[72]=K,J[73]=D):D=J[73],J[74]===Symbol.for("react.memo_cache_sentinel")?(M=(0,r.jsx)(l.Turnstile,{siteKey:"0x4AAAAAACosFWQYUOCycEr3",onSuccess:ei}),J[74]=M):M=J[74],J[75]!==ep.root?(W=ep.root&&(0,r.jsx)(f.Text,{variant:"caption",color:"danger",children:ep.root.message}),J[75]=ep.root,J[76]=W):W=J[76],J[77]!==eo?(H=eo("form.submitting"),J[77]=eo,J[78]=H):H=J[78];let eg=eh||!ea;return J[79]!==eo?(Q=eo("form.submit"),J[79]=eo,J[80]=Q):Q=J[80],J[81]!==eh||J[82]!==H||J[83]!==eg||J[84]!==Q?(V=(0,r.jsx)(m.Button,{type:"submit",className:"w-full",isLoading:eh,loadingLabel:H,disabled:eg,children:Q}),J[81]=eh,J[82]=H,J[83]=eg,J[84]=Q,J[85]=V):V=J[85],J[86]!==A||J[87]!==P||J[88]!==z||J[89]!==U||J[90]!==D||J[91]!==W||J[92]!==V?(Y=(0,r.jsxs)(c.Stack,{gap:"md",children:[A,P,z,U,D,M,W,V]}),J[86]=A,J[87]=P,J[88]=z,J[89]=U,J[90]=D,J[91]=W,J[92]=V,J[93]=Y):Y=J[93],J[94]!==I||J[95]!==Y?(G=(0,r.jsx)(p.Card,{variant:"outline",className:"max-w-4xl mx-auto w-full",children:(0,r.jsx)(p.Card.Body,{children:(0,r.jsx)("form",{onSubmit:I,children:Y})})}),J[94]=I,J[95]=Y,J[96]=G):G=J[96],G}function y(e){return{label:e,value:e}}e.s(["ContactForm",()=>w],290129)}]);
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.