1"use strict";(self.webpackChunkhessenschau=self.webpackChunkhessenschau||[]).push([["/feature/searchSuggest"],{6690:function(t,e,n){n.r(e),n.d(e,{default:function(){return o}});var i=n(8836);class s{constructor(t){let e={label:"Unknown data",value:"Unknown data"};"string"==typeof t?e={label:t,value:t}:Array.isArray(t)?e={label:t[0],value:t[1]}:"object"==typeof t&&("label"in t||"value"in t)&&(e=t),this.label=e.label||e.value,this.value=e.value,"userData"in e&&(this.userData=e.userData)}get length(){return this.label.length}toString(){return`${this.label}`}valueOf(){return this.toString()}}class r{constructor(t,e){r.all=[];const n=this;r.count=(r.count||0)+1,this.count=r.count,this.isOpened=!1,this.input=r.query(t),this.input.setAttribute("autocomplete","off"),this.input.setAttribute("aria-owns",`awesomplete_list_${this.count}`),this.input.setAttribute("role","combobox"),this.options=e||{},this.configure({minChars:2,maxItems:10,autoFirst:!1,data:r.DATA,filter:r.FILTER_CONTAINS,sort:!1!==e.sort&&r.SORT_BYLENGTH,container:r.CONTAINER,item:r.ITEM,replace:r.REPLACE,tabSelect:!1},e),this.index=-1,this.container=this.container(t),this.ul=r.create("ul",{hidden:"hidden",role:"listbox",id:`awesomplete_list_${this.count}`,inside:this.container}),this.status=r.create("span",{className:"visually-hidden",role:"status","aria-live":"assertive","aria-atomic":!0,inside:this.container,textContent:0!==this.minChars?`Type ${this.minChars} or more characters for results.`:"Begin typing for results."}),this.events={input:{input:this.evaluate.bind(this),blur:this.close.bind(this,{reason:"blur"}),keydown(t){const e=t.keyCode;n.opened&&(13===e&&n.selected?(t.preventDefault(),t.stopImmediatePropagation(),n.select()):9===e&&n.selected&&n.tabSelect?n.select():27===e?n.close({reason:"esc"}):38!==e&&40!==e||(t.preventDefault(),n[38===e?"previous":"next"]()))}},form:{submit:this.close.bind(this,{reason:"submit"})},ul:{mousedown(t){t.preventDefault()},click(t){let e=t.target;if(e!==this){for(;e&&!/li/i.test(e.nodeName);)e=e.parentNode;e&&0===t.button&&(t.preventDefault(),n.select(e,t.target))}}}},r.bind(this.input,this.events.input),r.bind(this.input.form,this.events.form),r.bind(this.ul,this.events.ul),this.input.hasAttribute("list")?(this.list=`#${this.input.getAttribute("list")}`,this.input.removeAttribute("list")):this.list=this.input.getAttribute("data-list")||e.list||[],r.all.push(this)}configure(t,e){Object.keys(t).forEach((n=>{const i=t[n],s=this.input.getAttribute(`data-${n.toLowerCase()}`);this[n]="number"==typeof i?parseInt(s,10):!1===i?null!==s:i instanceof Function?null:s,this[n]||0===this[n]||(this[n]=n in e?e[n]:i)}))}set list(t){if(Array.isArray(t))this.dataList=t;else if("string"==typeof t&&t.indexOf(",")>-1)this.dataList=t.split(/\s*,\s*/);else{const e=r.query(t);if(e&&e.children){const t=[],n=e=>{if(!e.disabled){const n=e.textContent.trim(),i=e.value||n,s=e.label||n;""!==i&&t.push({label:s,value:i})}};Array.prototype.slice.apply(e.children).forEach(n),this.dataList=t}}document.activeElement===this.input&&this.evaluate()}get list(){return this.dataList}get selected(){return this.index>-1}get opened(){return this.isOpened}close(t){this.opened&&(this.ul.setAttribute("hidden",""),this.isOpened=!1,this.index=-1,this.status.setAttribute("hidden",""),r.fire(this.input,"awesomplete-close",t||{}))}open(){this.ul.removeAttribute("hidden"),this.isOpened=!0,this.status.removeAttribute("hidden"),this.autoFirst&&-1===this.index&&this.goto(0),r.fire(this.input,"awesomplete-open")}destroy(){if(r.unbind(this.input,this.events.input),r.unbind(this.input.form,this.events.form),!this.options.container){const{parentNode:t}=this.container;t.insertBefore(this.input,this.container),t.removeChild(this.container)}this.input.removeAttribute("autocomplete"),this.input.removeAttribute("aria-autocomplete");const t=r.all.indexOf(this);-1!==t&&r.all.splice(t,1)}next(){const t=this.ul.children.length;let e=0;e=this.index<t-1?this.index+1:t?0:-1,this.goto(e)}previous(){const t=this.ul.children.length,e=this.index-1;this.goto(this.selected&&-1!==e?e:t-1)}goto(t){const e=this.ul.children;if(this.selected&&e[this.index].setAttribute("aria-selected","false"),this.index=t,t>-1&&e.length>0){e[t].setAttribute("aria-selected","true"),this.status.textContent=`${e[t].textContent}, list item ${t+1} of ${e.length}`,this.input.setAttribute("aria-activedescendant",`${this.ul.id}_item_${this.index}`),this.ul.scrollTop=e[t].offsetTop-this.ul.clientHeight+e[t].clientHeight;const n=this.suggestions[this.index];r.fire(this.input,"awesomplete-highlight",{selectedIndex:this.index,selectedText:`${n}`,selectedSuggestion:n})}}select(t,e){let n=t;if(t?this.index=r.siblingIndex(t):n=this.ul.children[this.index],n){const t=this.index,i=this.suggestions[t];r.fire(this.input,"awesomplete-select",{selectedIndex:t,selectedText:`${i}`,selectedSuggestion:i,origin:e||n})&&(this.replace(i),this.close({reason:"select"}),r.fire(this.input,"awesomplete-selectcomplete",{selectedIndex:t,selectedText:`${i}`,selectedSuggestion:i}))}}evaluate(){const t=this,{value:e}=this.input;if(e.length>=this.minChars&&this.dataList&&this.dataList.length>0){this.index=-1,this.ul.innerHTML="";const n=n=>new s(t.data(n,e)),i=n=>t.filter(n,e);this.suggestions=this.dataList.map(n).filter(i),!1!==this.sort&&(this.suggestions=this.suggestions.sort(this.sort)),this.suggestions=this.suggestions.slice(0,this.maxItems);const r=(n,i)=>{t.ul.appendChild(t.item(n,e,i))};this.suggestions.forEach(r),0===this.ul.children.length?(this.status.textContent="No results found",this.close({reason:"nomatches"})):(this.open(),this.status.textContent=`${this.ul.children.length} results found`)}else this.close({reason:"nomatches"}),this.status.textContent="No results found"}static FILTER_CONTAINS(t,e){return RegExp(r.regExpEscape(e.trim()),"i").test(t)}static FILTER_STARTSWITH(t,e){return RegExp(`^${r.regExpEscape(e.trim())}`,"i").test(t)}static SORT_BYLENGTH(t,e){return t.length!==e.length?t.length-e.length:t<e?-1:1}static CONTAINER(t){return r.create("div",{className:"awesomplete",around:t})}static ITEM(t,e,n){const i=""===e.trim()?t:`${t}`.replace(RegExp(r.regExpEscape(e.trim()),"gi"),"<mark>$&</mark>");return r.create("li",{innerHTML:i,"aria-selected":"false",id:`awesomplete_list_${this.count}_item_${n}`})}static REPLACE(t){this.input.value=t.value||t.label}static DATA(t){return t}static query(t,e){return"string"==typeof t?(e||document).querySelector(t):t||null}static queryAll(t,e){return Array.prototype.slice.call((e||document).querySelectorAll(t))}static create(t,e){const n=document.createElement(t);return Object.keys(e).forEach((t=>{const i=e[t];if("inside"===t)r.query(i).appendChild(n);else if("around"===t){const t=r.query(i);t.parentNode.insertBefore(n,t),n.appendChild(t),null!=t.getAttribute("autofocus")&&t.focu
1s()}else t in n?n[t]=i:n.setAttribute(t,i)})),n}static bind(t,e){if(t){const n=n=>{const i=e[n];n.split(/\s+/).forEach((e=>{t.addEventListener(e,i)}))};Object.keys(e).forEach(n)}}static unbind(t,e){if(t){const n=n=>{const i=e[n];n.split(/\s+/).forEach((e=>{t.removeEventListener(e,i)}))};Object.keys(e).forEach(n)}}static fire(t,e,n){const i=document.createEvent("HTMLEvents"),s=t=>{i[t]=n[t]};return i.initEvent(e,!0,!0),"object"==typeof n&&Object.keys(n).forEach(s),t.dispatchEvent(i)}static regExpEscape(t){return t.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")}static siblingIndex(t){let e=0,n=t;for(;n;)n=n.previousElementSibling,n&&(e+=1);return e}}var o=function(t){var e=t.options,n=t.element,s=e.templateUrl,o=new r(n,{list:u});o.input.setAttribute("aria-expanded","".concat(o.isOpened)),o.input.setAttribute("aria-controls","awesomplete_list_".concat(o.count)),o.ul.setAttribute("aria-label","Suche öffnen");var u=[],a=function(t){o&&o.input.setAttribute("aria-expanded","".concat(o.isOpened))};(0,i.oL)("input",(function(t){var e=n.value;if(e.length>1){var i=new XMLHttpRequest;i.open("GET",s+"?suggestions="+e,!0),i.onload=function(){var t=i.responseText,e=JSON.parse(t.replace(/"/g,'"'));u=e.solrSuggestions,o&&(o.list=u)},i.send()}}),n),(0,i.oL)("awesomplete-selectcomplete",(function(t){var e=document.getElementsByClassName("c-quickSearch ")[0];e.query.value=t.selectedText,e.submit()}),n),(0,i.oL)("awesomplete-highlight",(function(t){!0,n.value=t.selectedText})),(0,i.oL)("awesomplete-open",a),(0,i.oL)("awesomplete-close",a),(0,i.oL)("keydown",(function(t){t.stopPropagation()}),n)}},8836:function(t,e,n){n.d(e,{BX:function(){return g},Ds:function(){return h},Ev:function(){return f},GV:function(){return S},HD:function(){return a},JU:function(){return C},MJ:function(){return I},P2:function(){return d},PN:function(){return r},SG:function(){return l},TD:function(){return b},Tx:function(){return D},Vv:function(){return E},Vx:function(){return m},X_:function(){return N},_U:function(){return u},aM:function(){return A},bv:function(){return c},cQ:function(){return M},cu:function(){return $},kT:function(){return x},lU:function(){return O},oL:function(){return p},oN:function(){return o},pW:function(){return L},ve:function(){return k},xQ:function(){return _}});var i=n(4413),s=n(7247),r=function(t,e){var n=e||document;return t?t.indexOf(",")>0||t.split(" ").length>1||t.split(".").length>1?n.querySelectorAll(t):"."===t[0]?n.getElementsByClassName(t.substring(1)):"#"===t[0]?new Array(document.getElementById(t.substring(1))):n.querySelectorAll(t):n},o=function(t){return!!t&&t.replace(/(<([^>]+)>)/gi,"")},u=function(){return Math.max(document.documentElement.clientWidth,window.innerWidth||0)},a=function(t){return"[object String]"===Object.prototype.toString.call(t)},c=function(t,e){for(;null!==e&&"BODY"!==e.tagName;){if(e.tagName&&e.tagName.toLowerCase()===t)return e;e=e.parentNode}return!1},l=function(t,e){for(var n=e.parentNode;null!==n;){if(n===t)return!0;n=n.parentNode}return!1},h=function(t,e){var n=null;return function(){for(var i=arguments.length,s=new Array(i),r=0;r<i;r++)s[r]=arguments[r];var o=this;clearTimeout(n),n=setTimeout((function(){t.apply(o,s)}),e)}},d=function(t,e,n){var i,s;return e=e||250,function(){for(var r=arguments.length,o=new Array(r),u=0;u<r;u++)o[u]=arguments[u];var a=n||this,c=+new Date;i&&c<i+e?(clearTimeout(s),s=setTimeout((function(){i=c,t.apply(a,o)}),e)):(i=c,t.apply(a,o))}},p=function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];n=void 0===n?document:n;var s="touchstart"===t||"touchmove"===t||"wheel"===t,r=Modernizr.passiveeventlisteners&&!i&&s;window.attachEvent?n.attachEvent(t,e):n.addEventListener(t,e,!!r&&{passive:!0})},f=function(t,e,n){n=void 0===n?document:n,window.attachEvent?n.detachEvent(t,e):n.removeEventListener(t,e)},m=function(t,e,n){(n=void 0===n?document:n).addEventListener(t,e,{once:!0})},g=function(t,e,n){var i=document.createEvent("CustomEvent");i.initCustomEvent(t,!0,!0,e),document.dispatchEvent(i),n&&(r("#js-iFrame")[0]&&r("#js-iFrame")[0].contentWindow.document.dispatchEvent(i),v()&&parent.document.dispatchEvent(i))},v=function(){try{return window.self!==window.top}catch(t){return!0}},b=function(t,e,n){w(t,JSON.stringify(e),n)},w=function(t,e,n){var i,s=T();n?((i=new Date).setMilliseconds(i.getMilliseconds()+n),i=i.toUTCString()):i="",document.cookie=t+"="+e+";expires="+i+";domain="+s+";path=/;"},E=function(t){var e;try{e=JSON.parse(y(t))}catch(t){}return e},y=function(t){var e=RegExp(t+"[^;]+").exec(document.cookie);return unescape(e?e.toString().replace(/^[^=]+./,""):"")},x=function(t){var e=T();document.cookie=t+"=;expires=Thu, 01 Jan 1970 00:00:01 GMT;domain="+e+";path=/;"},T=function(){return window.location.hostname.substring(window.location.hostname.indexOf(".")+1)},A=function(t,e){var n=window.requestAnimationFrame||function(t,e){window.setTimeout(t,1e3/60)},i=(new Date).getTime(),s={};return s.value=n((function r(){(new Date).getTime()-i>=e?t.call():s.value=n(r)})),s},C=function(t,e,n,r,o,u,a,c,l){var h="opacity";o=o||800,u=u||.2,a=a||1,c=c||"ease-in-out",l=l||"0.8s",t.style.WebkitTransition=h+" "+l+" "+c,t.style.MozTransition=h+" "+l+" "+c,t.style.transition=h+" "+l+" "+c,t.style[h]=u,A((function(){if(e&&(t.innerHTML=e),t.style[h]=a,n){i.Z.run(t,s.Z);try{hrScriptLoad.rescanForModulesAndVariants(t)}catch(t){}}r&&r()}),o)},N=function(){return void 0!==window.pageYOffset?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop},L=function(t){var e;return e=Math.round(t.getBoundingClientRect().left),{top:Math.round(t.getBoundingClientRect().top),left
1:e}},S=function(t){i.Z.run(t,s.Z)},O=function(t){var e=document.getElementById(t);e&&e.parentNode.removeChild(e)},k=function(t,e,n,i){if(!document.getElementById(t)){var s=r("script")[0],o=document.createElement("script");o.id=t,o.src=e,n&&o.setAttribute("async",!!n),i&&o.addEventListener("load",(function(t){i(null,t)}),!1),s.parentNode.insertBefore(o,s)}},I=function(t,e,n){if(!document.getElementById(t)){var i=document.createElement("link");i.id=t,i.href=e,n.type&&(i.type=n.type),n.rel&&(i.rel=n.rel),n.title&&(i.title=n.title),n.as&&(i.as=n.as),document.getElementsByTagName("head")[0].appendChild(i)}},$=function(t,e){var n=document.createElement("style");return e&&n.setAttribute("media",e),n.styleSheet?n.styleSheet.cssText=t||"":n.appendChild(document.createTextNode(t||"")),document.head.appendChild(n),n.sheet},D=function(t){t.dispatchEvent(new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0}))},M=function(t,e){var n=window.requestAnimationFrame||function(t,e){window.setTimeout(t,1e3/60)},i={},s=(new Date).getTime();return i.value=n((function r(){i.value=n(r),(new Date).getTime()-s>=e&&(t.call(),s=(new Date).getTime())})),i},_=function(t){return window.cancelAnimationFrame&&t?window.cancelAnimationFrame(t.value):window.clearInterval(t)}}}]);
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.