PageSourceSearch

https://de.serlo.org/_next/static/chunks/pages/___bot_or_not-d1894039219040a1.js

js serlo.org collected 2026-09-24 17:42:46 UTC 22,490 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9659],{25507:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/___bot_or_not",function(){return t(67951)}])},81335:function(e,n,t){"use strict";t.d(n,{FP:function(){return a},JW:function(){return i},kj:function(){return o}});var r=t(88520);let o="https://api.".concat(r.b),a="".concat(o,"/graphql"),i="".concat(o,"/enmeshed")},8695:function(e,n,t){"use strict";t.r(n),t.d(n,{createAuthAwareGraphqlFetch:function(){return i},createGraphqlFetch:function(){return a}});var r=t(2409),o=t(81335);function a(){return async function(e){let{query:n,variables:t}=JSON.parse(e);return await new r.g6(o.FP).request(n,t)}}function i(e){return async function(n,t){if(null===e)throw Error("unauthorized");return"localhost"===window.location.hostname?await a():await function(){let{query:e,variables:a}=JSON.parse(n);return new r.g6(o.FP,{credentials:"include",signal:t}).request(e,a)}();async function a(){return(await fetch("/api/frontend/localhost-graphql-fetch",{headers:{Accept:"application/json","Content-Type":"application/json"},method:"POST",body:n,signal:t})).json()}}}},1229:function(e,n,t){"use strict";t.d(n,{IG:function(){return s},UN:function(){return c},cs:function(){return l}});var r=t(43649),o=t(94233),a=t(8695),i=t(67063);function s(e){let{query:n,variables:t,config:o,noKey:i}=e;return(0,r.ZP)(i?null:JSON.stringify({query:n,variables:t}),(0,a.createGraphqlFetch)(),o)}function c(e){let{query:n,variables:t,config:o,overrideAuth:s}=e,c=(0,i.J)();return(0,r.ZP)(JSON.stringify({query:n,variables:t}),(0,a.createAuthAwareGraphqlFetch)(null!=s?s:c),o)}function l(e){let{query:n,variables:t,config:r,getConnection:s,noAuth:c,overrideAuth:l,noKey:u}=e,d=(0,i.J)(),f=(0,o.ZP)(function(e,r){if(u)return null;let o=r?s(r):null;return(null==o?void 0:o.pageInfo.hasNextPage)===!1?null:JSON.stringify({query:n,variables:{...t,after:null==o?void 0:o.pageInfo.endCursor}})},c?(0,a.createGraphqlFetch)():(0,a.createAuthAwareGraphqlFetch)(null!=l?l:d),r);return{data:void 0!==f.data&&Array.isArray(f.data)?{...f.data,nodes:[].concat(...f.data.map(e=>s(e).nodes)),pageInfo:s(f.data[f.data.length-1]).pageInfo,totalCount:s(f.data[f.data.length-1]).totalCount}:void 0,error:f.error,loading:f.isValidating,loadMore(){"function"==typeof f.setSize&&f.setSize(e=>e+1)}}}},32937:function(e,n,t){"use strict";t.d(n,{w:function(){return i}});var r=t(10358),o=t(40171),a=t(31668);function i(){let{authorizationPayload:e}=(0,o.a)(),n=(0,a.xN)(),t=(0,r.p2)(n.lang);return n=>e?n(t)(e):(console.warn("No authorization context provided!"),!1)}},50448:function(e,n,t){"use strict";t.d(n,{x:function(){return f}});var r=t(52322),o=t(2784),a=t(67063),i=t(22435),s=t(50079),c=t(31668);function l(e){let{error:n}=e,{strings:t}=(0,c.xN)();return console.error(n),(0,r.jsxs)("p",{className:"serlo-p mt-12 text-brand",children:[(0,r.jsx)(s.J,{icon:i.RL})," ",t.loading.unknownProblem]})}var u=t(51515),d=t(72329);function f(e){let{children:n,data:t,error:i,needsAuth:s}=e,c=(0,a.J)(),[f,h]=(0,o.useState)(!1);return((0,o.useEffect)(()=>{s&&h(!0)},[s]),s&&!f)?null:s&&null===c?(0,r.jsx)(d.I,{}):t||i?i?(0,r.jsx)(l,{error:JSON.stringify(i)}):t&&n?(0,r.jsx)(r.Fragment,{children:n}):null:(0,r.jsx)(u.T,{noText:!0})}},51515:function(e,n,t){"use strict";t.d(n,{T:function(){return c}});var r=t(52322),o=t(82321),a=t(50079),i=t(31668),s=t(34387);function c(e){var n;let{text:t,noText:c}=e,{strings:l}=(0,i.xN)();return(0,r.jsx)("div",{className:(0,s.cn)("mt-12 text-brand",c&&"text-center"),children:(0,r.jsxs)("p",{className:"serlo-p",children:[(0,r.jsx)(a.J,{icon:o.LM,className:(0,s.cn)("animate-spin-slow",c&&"h-8")})," ",null!==(n=!c&&t)&&void 0!==n?n:l.loading.isLoading]})})}},76248:function(e,n,t){"use strict";t.d(n,{b:function(){return l}});var r=t(52322),o=t(2784),a=t(65088),i=t(84928),s=t(31668),c=t(98041);function l(e){let{datetime:n,dateAsTitle:l,className:u}=e,[d,f]=(0,o.useState)(!1),{lang:h}=(0,s.xN)(),m=n.toLocaleString(h);return((0,o.useEffect)(()=>{if(h!==c.K4.En){let e=h===c.K4.De?t.e(2529).then(t.bind(t,82529)):h===c.K4.Es?t.e(7482).then(t.bind(t,47482)):h===c.K4.Fr?t.e(2439).then(t.bind(t,52439)):h===c.K4.Hi?t.e(1261).then(t.bind(t,91261)):h===c.K4.Ta?t.e(6936).then(t.bind(t,46936)):void 0;e&&e.then(e=>{i.z2(h,e.default),f(!0)})}},[h]),d||h===c.K4.En)?(0,r.jsx)(a.Z,{datetime:n,locale:h,opts:{minInterval:60},className:u,title:l?m:void 0}):(0,r.jsx)(r.Fragment,{children:m})}},72329:function(e,n,t){"use strict";t.d(n,{I:function(){return i}});var r=t(52322),o=t(30675),a=t(31668);function i(e){let{noWrapper:n}=e,{strings:t}=(0,a.xN)();if(n)return i();return(0,r.jsx)("p",{className:"serlo-p",children:i()});function i(){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.r,{href:"/auth/login",children:t.auth.pleaseLogInLink}
1)," ",t.auth.pleaseLogInText]})}}},8954:function(e,n,t){"use strict";t.d(n,{c:function(){return c}});var r=t(52322),o=t(18307),a=t(30675),i=t(31668),s=t(98041);function c(e){let{roles:n}=e,{strings:t,lang:c}=(0,i.xN)(),[l,u]=(0,o.Z)(e=>null===e.instance||e.instance===c,n);return(0,r.jsxs)(r.Fragment,{children:[d(l,!0),d(u,!1)]});function d(e,n){if(e.length<1)return null;let o=n?t.profiles.instanceRoles.replace("%lang%",c):t.profiles.otherRoles;return(0,r.jsxs)("p",{className:"mb-5",children:[o," ",e.map(e=>{var t;let o=n?e.role:"".concat(null!==(t=e.instance)&&void 0!==t?t:"",": ").concat(e.role);return(0,r.jsx)(f,{text:o,role:e.role},o)})]})}function f(e){let{text:n,role:t}=e,o=(0,r.jsx)("span",{className:"serlo-button-learner-secondary ml-1 text-sm",children:n});return(0,r.jsx)(r.Fragment,{children:c===s.K4.De?(0,r.jsx)(a.r,{href:"/community/202923/rollen-der-serlo-community#".concat(t),children:o}):o})}}},76508:function(e,n,t){"use strict";t.d(n,{bv:function(){return l},oU:function(){return c},vu:function(){return u}});var r=t(73235),o=t(2409);function a(){let e=(0,r._)(["\n  fragment userData on User {\n    username\n    date\n    lastLogin\n    description\n    isActiveReviewer\n    isActiveAuthor\n    isActiveDonor\n    chatUrl\n    imageUrl\n    motivation\n    roles {\n      nodes {\n        scope\n        role\n      }\n    }\n    activityByType {\n      edits\n      comments\n      reviews\n      taxonomy\n    }\n  }\n"]);return a=function(){return e},e}function i(){let e=(0,r._)(["\n  fragment basicUserData on User {\n    id\n    username\n    isActiveAuthor\n    isActiveDonor\n    isActiveReviewer\n    isNewAuthor\n  }\n"]);return i=function(){return e},e}function s(){let e=(0,r._)(["\n  query userByUsername($username: String!) {\n    authorization\n    user {\n      userByUsername(username: $username) {\n        id\n        __typename\n        trashed\n        ...userData\n      }\n    }\n  }\n\n  ","\n"]);return s=function(){return e},e}let c=(0,o.Ps)(a()),l=(0,o.Ps)(i()),u=(0,o.Ps)(s(),c)},15915:function(e,n,t){"use strict";t.d(n,{R:function(){return o}});let r={plugin:t(89556).S.Rows};function o(e){if(!e||!e.startsWith("{"))return r;try{let n=JSON.parse(e);if(Object.hasOwn(n,"plugin"))return"string"==typeof n.plugin?n:r;if(Object.hasOwn(n,"document"))return"string"==typeof n.document.plugin?n.document:r;return r}catch(e){return console.error("error parsing",e),r}}},88520:function(e,n,t){"use strict";t.d(n,{b:function(){return r}});let r="serlo.org"},22428:function(e,n,t){"use strict";t.d(n,{K:function(){return l}});var r=t(2409),o=t(63830),a=t(85350),i=t(81335),s=t(67063),c=t(95529);function l(){let e=(0,s.J)(),n=(0,c.t)(),t=null==n?void 0:n.strings.mutations.errors;return async function(n,o){var a,s,c,l;if(null===e)return u("UNAUTHENTICATED",t);try{let e="localhost"===window.location.hostname?await f():await d();if(Object.hasOwn(e,"entity")){let n=e.entity;if(Object.keys(n)[0].startsWith("set")){let e=Object.values(n)[0];return null!==(s=null===(a=e.record)||void 0===a?void 0:a.id)&&void 0!==s&&s}}return!!e}catch(r){let e=null===(l=r.response)||void 0===l?void 0:null===(c=l.errors)||void 0===c?void 0:c[0],n=e?e.extensions.code:"UNKNOWN";return console.error(e),u(n,t,e)}async function d(){return new r.g6(i.FP,{credentials:"include"}).request(n,{input:o})}async function f(){let e=await fetch("/api/frontend/localhost-graphql-fetch",{headers:{Accept:"application/json","Content-Type":"application/json"},method:"POST",body:JSON.stringify({query:n,variables:{input:o}})});return await e.json()}}}function u(e,n,t){var r;if(!n)return!1;let i=null!==(r=n[e])&&void 0!==r?r:n.UNKNOWN;if(console.error(t),"BAD_USER_INPUT"===e&&(0,a.K)({message:"API(mutation): bad user input"}),"UNKNOWN"===e&&(0,a.K)({message:"API(mutation): unknown error"}),"UNAUTHENTICATED"===e&&(0,a.K)({message:"API(mutation): unauthenticated"}),(0,o.U)(i,"warning"),t){let e=Object.hasOwn(t,"message")?t.message:"unknown error";(0,o.U)('"'.concat(e,'"'))}return!1}},67951:function(e,n,t){"use strict";t.r(n);var r=t(73235),o=t(52322),a=t(97466),i=t.n(a),s=t(10358),c=t(2409),l=t(2784),u=t(1229),d=t(32937),f=t(23306),h=t(50448),m=t(76248),x=t(8954),p=t(31668),b=t(95529),g=t(76508),v=t(85278),j=t(15915),y=t(63830),w=t(22428),N=t(90163);
1function S(){let e=(0,r._)(["\n  mutation deleteBots($input: UserDeleteBotsInput!) {\n    user {\n      deleteBots(input: $input) {\n        success\n      }\n    }\n  }\n"]);return S=function(){return e},e}function k(){let e=(0,r._)(["\n  query potentialSpamUsers($first: Int!, $after: String) {\n    user {\n      potentialSpamUsers(first: $first, after: $after) {\n        totalCount\n        pageInfo {\n          hasNextPage\n          endCursor\n        }\n        nodes {\n          id\n          ...userData\n        }\n      }\n    }\n  }\n\n  ","\n"]);return k=function(){return e},e}n.default=()=>(0,o.jsx)(f.V,{noHeaderFooter:!0,noContainers:!0,noIndex:!0,showNav:!1,authorization:{},children:(0,o.jsx)(I,{})});let A=["Lets play: Bot Or Not?","Welcome to Whac-A-Mole: Serlo Edition","Ready to retire some replicants?","More Human than Human.","Ready for your baseline test KD6-3.7?","You are a robot, right?","BotHunter5000 is ready"],I=()=>{let e=(0,w.K)(),[n,t]=(0,l.useState)([]),r=(0,l.useRef)(null),{data:a,error:c,loadMore:f}=(0,u.cs)({query:T,variables:{first:20},config:{refreshInterval:6e5},getConnection:e=>e.user.potentialSpamUsers}),g=(0,d.w)()(s.n5.deleteBot),{lang:S}=(0,p.xN)();if(!(0,b.t)())return(0,o.jsx)(o.Fragment,{children:"log in first"});async function k(o){await e(_,{botIds:[o]})?(t([...n,o]),(0,y.U)("# ".concat(o," removed \uD83D\uDCA5"),"warning")):(0,y.U)("sorry, that did not work"),r.current&&(r.current.value="")}let I=A[Math.floor(Math.random()*A.length)];return(0,o.jsxs)(o.Fragment,{children:[g?(0,o.jsx)(h.x,{data:a,error:c,needsAuth:!0,children:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{id:"logo",dangerouslySetInnerHTML:{__html:I}}),(0,o.jsxs)("p",{className:"jsx-6df4fb1654939d5 serlo-p border-b-2 pb-4 text-right",children:[(0,o.jsx)("b",{className:"jsx-6df4fb1654939d5",children:"Manual mode"})," (immediate):"," ",(0,o.jsx)("input",{ref:r,type:"number",placeholder:"bot id",className:"jsx-6df4fb1654939d5"})," ",P(),(0,o.jsx)(i(),{id:"6df4fb1654939d5",children:"input.jsx-6df4fb1654939d5{padding:.2rem .4rem;margin-right:.5rem;background-color:var(--bg-color-faded);color:var(--fg-color)}"})]}),(0,o.jsx)("ul",{children:a?a.nodes.map(e=>{let{username:t,id:r,imageUrl:a,lastLogin:s,isActiveAuthor:c,isActiveReviewer:l,isActiveDonor:u,activityByType:d,description:f,motivation:h,roles:p}=e;if(n.includes(r)||c||l||u)return null;let b="/user/profile/".concat(t);return(0,o.jsxs)("li",{className:"jsx-5dbe2e5846a77686",children:[(0,o.jsx)("img",{src:a,alt:"Profile image of ".concat(t),className:"jsx-5dbe2e5846a77686 block w-[200px] grayscale hover:grayscale-0"}),(0,o.jsxs)("div",{className:"jsx-5dbe2e5846a77686 flex-grow",children:[(0,o.jsx)("h2",{className:"jsx-5dbe2e5846a77686 mb-3 text-xl font-bold",children:(0,o.jsx)("a",{href:b,className:"jsx-5dbe2e5846a77686",children:t})}),(0,o.jsxs)("div",{className:"jsx-5dbe2e5846a77686 flex w-full justify-between",children:[(0,o.jsx)("div",{className:"jsx-5dbe2e5846a77686 w-40",children:(0,o.jsxs)("p",{className:"jsx-5dbe2e5846a77686",children:["Last seen:",(0,o.jsx)("br",{className:"jsx-5dbe2e5846a77686"}),(0,o.jsx)("b",{className:"jsx-5dbe2e5846a77686",children:s?(0,o.jsx)(m.b,{datetime:s,dateAsTitle:!0}):"Never logged in"}),(0,o.jsx)("br",{className:"jsx-5dbe2e5846a77686"}),U("comments",d),U("edits",d),U("reviews",d),U("taxonomy",d),(0,o.jsx)("br",{className:"jsx-5dbe2e5846a77686"}),function(e){let n=e.nodes;return 1===n.length?null:(0,o.jsx)("span",{className:"block",children:(0,o.jsx)(x.c,{roles:n.map(e=>({role:e.role,instance:S}))})})}(p)]})}),(0,o.jsxs)("div",{className:"jsx-5dbe2e5846a77686",children:[(0,o.jsxs)(o.Fragment,{children:[h?(0,o.jsxs)(o.Fragment,{children:['"',h,'"']}):null,(0,o.jsx)("div",{className:"jsx-5dbe2e5846a77686 max-h-40 w-[50rem] overflow-y-auto pb-4 [zoom:0.8]",children:function(e){if(!e||"NULL"===e)return null;let n=(0,j.R)(e);return(0,o.jsx)(N.R,{document:n})}(f)})]}),(0,o.jsx)("br",{className:"jsx-5dbe2e5846a77686"})]}),(0,o.jsxs)("div",{className:"jsx-5dbe2e5846a77686 buttons ml-6 text-right",children:[(0,o.jsx)("a",{href:b,className:"jsx-5dbe2e5846a77686",children:"Full Profile"}),(0,o.jsx)("br",{className:"jsx-5dbe2e5846a77686"}),(0,o.jsx)("br",{className:"jsx-5dbe2e5846a77686"}),(0,o.jsx)("br",{className:"jsx-5dbe2e5846a77686"}),(0,o.jsx)("p",{className:"jsx-5dbe2e5846a77686",children:P(r)})]})]})]}),(0,o.jsx)(i(),{id:"5dbe2e5846a77686",children:"li.jsx-5dbe2e5846a77686{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-webkit-flex-grow:1;-moz-box-flex:1;-ms-flex-positive:1;flex-grow:1;border-bottom:1px solid darkgray;width:90vw;margin:0 5vh 5rem 5vh;padding-bottom:5rem}li.jsx-5dbe2e5846a77686>div.jsx-5dbe2e5846a77686{min-width:8rem;margin-left:2rem}.buttons.jsx-5dbe2e5846a77686 a.jsx-5dbe2e5846a77686{text-decoration:underline}.buttons.jsx-5dbe2e5846a77686 a.jsx-5dbe2e5846a77686:hover{text-decoration:none}"})]},r)}):null}),(0,o.jsx)("div",{className:"mb-12 text-center text-xl",children:(0,o.jsx)("a",{onClick:f,className:"cursor-pointer underline hover:no-underline",children:"Load more!"})})]})}):(0,o.jsxs)("p",{className:"w-full pt-36 text-center",children:["sorry, ",(0,o.jsx)("br",{}),"authorized personnel only."]}),(0,o.jsx)(E,{})]});function P(e){return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("a",{className:"cursor-pointer underline hover:text-[#f00] hover:no-underline",onClick:n=>{var t,o;if(!n.metaKey&&!n.ctrlKey)return!1;let a=parseInt(null!==(o=null===(t=r.current)||void 0===t?void 0:t.value)&&void 0!==o?o:""),i=e||a;if(isNaN(i))return!1;k(i)},children:"☠️ Remove"}),(0,o.jsx)("br",{}),v.V?"⌘":"CTRL"," + click"]})}function U(e,n){let t=n[e];return t?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("br",{}),e.charAt(0).toUpperCase()+e.slice(1),": ",(0,o.jsx)("b",{children:t})]}):null}},E=()=>(0,o.jsx)(i(),{id:"a6c175e45a023628",children:":root{--fg-color:#333;--bg-color:#fff;--bg-color-faded:#ccc}@media(prefers-color-scheme:dark){:root{--fg-color:#ccc;--bg-color:#111;--bg-color-faded:#444}}@media(prefers-color-scheme:light){.grayscale{-webkit-filter:grayscale(0)!important;filter:grayscale(0)!important}}body{color:var(--fg-color);background:var(--bg-color);-webkit-transition:.5s background;-moz-transition:.5s background;-o-transition:.5s background;transition:.5s background;font-size:1.1rem}h1,h2,h3,h4,p{color:var(--fg-color)!important}body.white{background:var(--fg-color)}#__next{font-family:monospace}#logo{background:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http:\nno-repeat;\nwidth: 50vh;\nheight: 50vh;\nmax-width: 40vw;\nmargin: 25vh auto;\ntext-align: center;\npadding-top: 60vh;\n}\n\nul {\nmargin-top: 5rem;\n}\n\n)}"}),_=(0,c.Ps)(S()),T=(0,c.Ps)(k(),g.oU)},90163:function(e,n,t){"use strict";t.d(n,{R:function(){return i}});var r=t(52322),o=t(29692),a=t(11092);function i(e){let{document:n}=e;return(0,r.jsx)("div",{className:"serlo-content-with-spacing-fixes",children:(0,r.jsx)(o.F,{state:n,editorVariant:"serlo-org",handleLearnerEvent:function(e){console.log(e)},extraSerloRenderers:a.W})})}},11092:function(e,n,t){"use strict";t.d(n,{W:function(){return x}});var r=t(25237),o=t.n(r);let a=o()(()=>Promise.all([t.e(9879),t.e(6222)]).then(t.bind(t,46222)).then(e=>e.GeogebraSerloStaticRenderer),{loadableGenerated:{webpack:()=>[46222]}}),i=o()(()=>t.e(2373).then(t.bind(t,2373)).then(e=>e.ImageSerloStaticRenderer),{loadableGenerated:{webpack:()=>[2373]}}),s=o()(()=>t.e(1924).then(t.bind(t,1924)).then(e=>e.MultimediaSerloStaticRenderer),{loadableGenerated:{webpack:()=>[1924]}}),c=o()(()=>Promise.all([t.e(9879),t.e(6971)]).then(t.bind(t,66971)).then(e=>e.VideoSerloStaticRenderer),{loadableGenerated:{webpack:()=>[66971]}}),l=o()(()=>t.e(1139).then(t.bind(t,31139)).then(e=>e.H5pSerloStaticRenderer),{loadableGenerated:{webpack:()=>[31139]},ssr:!1}),u=o()(()=>Promise.all([t.e(9879),t.e(5903)]).then(t.bind(t,55903)).then(e=>e.AudioSerloStaticRenderer),{loadableGenerated:{webpack:()=>[55903]}}),d=o()(()=>t.e(6470).then(t.bind(t,56470)).then(e=>e.ExerciseSerloStaticRenderer),{loadableGenerated:{webpack:()=>[56470]}}),f=o()(()=>t.e(9969).then(t.bind(t,99969)).then(e=>e.ScMcSerloStaticRenderer),{loadableGenerated:{webpack:()=>[99969]}}),h=o()(()=>Promise.all([t.e(9879),t.e(7998)]).then(t.bind(t,7998)).then(e=>e.SolutionSerloStaticRenderer),{loadableGenerated:{webpack:()=>[7998]}}),m=o()(()=>t.e(7176).then(t.bind(t,77176)).then(e=>e.InputSerloStaticRenderer),{loadableGenerated:{webpack:()=>[77176]}}),x={audio:u,exerciseGroup:o()(()=>t.e(6497).then(t.bind(t,76497)).then(e=>e.ExerciseGroupSerloStaticRenderer),{loadableGenerated:{webpack:()=>[76497]}}),exercise:d,geogebra:a,h5p:l,image:i,input:m,multimedia:s,scMc:f,solution:h,video:c}},33444:function(e,n,t){"use strict";t.d(n,{J:function(){return a}});var r=t(52322),o=t(61267);function a(e){let{icon:n,className:t,style:a}=e;return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",role:"img",viewBox:"0 0 ".concat(n.icon[0]," ").concat(n.icon[1]),"aria-hidden":!0,focusable:!1,className:(0,o.cn)("inline-block h-[1em] overflow-visible align-[-0.125em]",t),style:a,children:(0,r.jsx)("path",{fill:"currentColor",d:Array.isArray(n.icon[4])?n.icon[4][0]:n.icon[4]}
1)})}},97158:function(e,n,t){"use strict";t.d(n,{T:function(){return i},W:function(){return a}});var r=t(2784);let o=(0,r.createContext)(null),a=o.Provider;function i(){let e=(0,r.useContext)(o);if(!e)throw Error("Attempt to use staticStrings outside of provider!");return e}},14913:function(e,n,t){"use strict";t.d(n,{Z:function(){return o},e:function(){return u}});var r,o,a=t(52322),i=t(33444),s=t(97158),c=t(61267),l=t(3788);function u(e){let{src:n,type:t}=e,r=(0,s.T)().plugins.video;return t?(0,a.jsx)("div",{className:"my-0 aspect-[16/9] w-full p-0",children:"SerloAsset"===t?(0,a.jsx)("video",{controls:!0,src:n,className:d}):(0,a.jsx)("iframe",{src:n,frameBorder:"0",allow:"autoplay; encrypted-media; picture-in-picture",allowFullScreen:!0,className:d})}):(0,a.jsxs)("div",{className:"mx-side text-center print:hidden",children:[(0,a.jsx)(i.J,{icon:l.Cj,className:"h-16"}),(0,a.jsx)("p",{className:"serlo-p text-almost-black",children:n?"".concat(r.failed,": ").concat(n):""})]})}(r=o||(o={})).YouTube="YouTube",r.SerloAsset="SerloAsset",r.Vimeo="Vimeo";let d=(0,c.cn)("h-full w-full border-none bg-black/30")},72524:function(e,n,t){"use strict";t.d(n,{S:function(){return s}});var r=t(52322),o=t(97158),a=t(14913),i=t(70497);function s(e){let{state:{src:n}}=e,{lang:t}=(0,o.T)(),[s,c]=(0,i.$)(n,t);return c&&s?(0,r.jsx)(a.e,{src:s,type:c}):null}},70497:function(e,n,t){"use strict";t.d(n,{$:function(){return o}});var r=t(14913);function o(e,n){let t=/^(https?:\/\/)?(.*?youtube\.com\/watch\?(.*&)?v=|.*?youtu\.be\/)([a-zA-Z0-9_-]{11})/.exec(e);if(t){var o;let a=encodeURIComponent(t[4]),i=new URL(e),s=parseInt(null!==(o=i.searchParams.get("t"))&&void 0!==o?o:""),c=i.search.includes("cc_load_policy=1");return["https://www.youtube-nocookie.com/embed/".concat(a,"?autoplay=1&html5=1").concat(c?"&cc_lang_pref=".concat(null!=n?n:"de","&cc_load_policy=1"):"").concat(isNaN(s)?"":"&start=".concat(s)),r.Z.YouTube]}if((e.startsWith("https://assets.serlo.org/wikimedia/")||e.startsWith("https://editor.serlo.dev/media/")||e.startsWith("https://editor.serlo-staging.dev/media/")||e.startsWith("https://editor.serlo.org/media/"))&&(e.endsWith("video.webm")||e.endsWith("video.mp4")))return[e,r.Z.SerloAsset];let a=/^(https?:\/\/)?(.*?vimeo\.com\/)(.+)/.exec(e);return a?["https://player.vimeo.com/video/".concat(a[3],"?autoplay=1"),r.Z.Vimeo]:[e,void 0]}},89556:function(e,n,t){"use strict";var r,o;t.d(n,{S:function(){return r}}),(o=r||(r={})).Anchor="anchor",o.Article="article",o.Audio="audio",o.ArticleIntroduction="articleIntroduction",o.Box="box",o.Course="course",o.Equations="equations",o.Geogebra="geogebra",o.H5p="h5p",o.Highlight="highlight",o.Image="image",o.ImageGallery="imageGallery",o.InteractiveVideo="interactiveVideo",o.Injection="injection",o.Multimedia="multimedia",o.PageLayout="pageLayout",o.PasteHack="pasteHack",o.Rows="rows",o.SerloTable="serloTable",o.Spoiler="spoiler",o.Text="text",o.Video="video",o.DropzoneImage="dropzoneImage",o.ExerciseGroup="exerciseGroup",o.Exercise="exercise",o.ScMcExercise="scMcExercise",o.InputExercise="inputExercise",o.TextAreaExercise="textAreaExercise",o.BlanksExercise="blanksExercise",o.Solution="solution",o.SerloInjection="serloInjection",o.EdusharingAsset="edusharingAsset",o.Unsupported="unsupported"},88255:function(e,n,t){"use strict";var r,o;t.d(n,{k:function(){return r}}),(o=r||(r={})).Applet="type-applet",o.Article="type-article",o.Course="type-course",o.Event="type-event",o.Page="type-page",o.Taxonomy="type-taxonomy",o.TextExercise="type-text-exercise",o.Exercise="type-text-exercise",o.TextExerciseGroup="type-text-exercise-group",o.ExerciseGroup="type-text-exercise-group",o.Video="type-video",o.User="type-user",o.GenericContent="type-generic-content"},61267:function(e,n,t){"use strict";t.d(n,{cn:function(){return o}});var r=t(40489);function o(){for(var e=arguments.length,n=Array(e),t=0;t<e;t++)n[t]=arguments[t];let o=n.map(e=>"string"==typeof e?e.trim().replace(/\s+/gm," "):e);return(0,r.Z)(o)}}},function(e){e.O(0,[5089,1364,2941,2409,8870,4233,965,5958,2329,4429,3306,9692,2888,9774,179],function(){return e(e.s=25507)}),_N_E=e.O()}]);
2//# sourceMappingURL=___bot_or_not-d1894039219040a1.js.map

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.