1/*! toelzerland, Compiled at 2026-10-01 09:33:48 */ 2window.imx=window.imx||{},imx.Autocomplete=function(a,b){this.keyCodes={UP:38,DOWN:40,RETURN:13,TAB:9,ESC:27,DEL:46};var c={appendTo:document.querySelector("body"),adapter:null,inputClass:"autocomplete",resultsClass:"results",loadingClass:"loading",enableListStyle:!0,minChars:1,delay:400,listElement:"<ul>",itemElement:"<li>",wrap:{start:function(a,b,c){return!1},end:function(a,b,c){return!1},element:"<div>"},templates:{},events:{select:function(a){return this},change:function(a){return this},create:function(){return this},destroy:function(){return this},show:function(){return this},hide:function(){return this},beforeRequest:function(){return this},afterRequest:function(){return this},error:function(){return this},blur:function(a){return!1},keyDown:function(a){return!1}}};this.setSettings(Autocomplete_util.extend(!0,c,b)),this.setInput(a),this.setList(this.buildAutocompleteList_())},imx.Autocomplete.prototype.getInput=function(){return this.input},imx.Autocomplete.prototype.setInput=function(a){return this.input=a,this},imx.Autocomplete.prototype.getList=function(){return this.list},imx.Autocomplete.prototype.setList=function(a){return this.list=a,this},imx.Autocomplete.prototype.getSettings=function(){return this.settings},imx.Autocomplete.prototype.setSettings=function(a){return this.settings=a,this},imx.Autocomplete.prototype.handleKeyDown_=function(a){var b=this,c=this.getInput(),d=this.getList(),e=this.getSettings(),f=null,g="";switch(a.keyCode){case b.keyCodes.UP:Autocomplete_util.isVisible(d)?(b.select_("prev",g),a.preventDefault()):b.show();break;case b.keyCodes.DOWN:Autocomplete_util.isVisible(d)?(b.select_("next",g),a.preventDefault()):b.show();break;case b.keyCodes.RETURN:case b.keyCodes.TAB:Autocomplete_util.isVisible(d)&&d.querySelectorAll(".selectable.selected").length>0&&(b.change_(),a.preventDefault());break;case b.keyCodes.ESC:b.hide();break;default:e.events.keyDown.call(this,a)||(clearTimeout(f),f=setTimeout(function(){g=c.value,b.handleChange_()},e.delay))}},imx.Autocomplete.prototype.handleBlur_=function(a){var b=this.getSettings();b.events.blur.call(this,a)||this.hide()},imx.Autocomplete.prototype.create=function(){var a=this.getInput(),b=this.getSettings();return a.setAttribute("autocomplete","off"),a.classList.add(b.inputClass),a.addEventListener("keydown",this.handleKeyDown_.bind(this)),a.addEventListener("blur",this.handleBlur_.bind(this)),b.events.create.call(this),this},imx.Autocomplete.prototype.destroy=function(){var a=this.getInput(),b=this.getList();return a.removeAttribute("autocomplete"),a.classList.remove(this.getSettings().inputClass),a.removeEventListener("keydown",this.handleKeyDown_),a.removeEventListener("blur",this.handleBlur_),b.parentNode.removeChild(b),this.getSettings().events.destroy.call(this),this},imx.Autocomplete.prototype.show=function(){return this.getList().style.display="block",this.getSettings().events.show.call(this),this},imx.Autocomplete.prototype.hide=function(){var a=this.getList(),b=a.querySelector(".selectable.selected");return a.style.display="none",b&&b.classList.remove("selected"),this.getSettings().events.hide.call(this),this},imx.Autocomplete.prototype.select_=function(a,b){var c=this.getInput(),d=this.getList(),e=[],f=null,g=d.querySelector(".selectable.selected");if(g){e=g.parentNode.querySelectorAll(".selectable");for(var h=0;h<e.length;h++)if(e[h]===g){f="next"===a?e[h+1]:e[h-1];break}g.classList.remove("selected")}else e=d.querySelectorAll(".selectable"),f="next"===a?e[0]:e[e.length-1];if(f){var i=JSON.parse(f.dataset.item);f.classList.add("selected"),c.value=i.label,this.getSettings().events.select.call(this,i)}else c.value=b;return this},imx.Autocomplete.prototype.change_=function(){var a=this.getList().querySelector(".selectable.selected"),b=JSON.parse(a.dataset.item);if(Autocomplete_util.triggerEvent(this.getInput(),"setautocomplete"),a){if(b.href)return void(window.location.href=b.href);this.getInput().value=b.label,this.getSettings().events.change.call(this,b),this.hide()}return this},imx.Autocomplete.prototype.updateListPosition=function(a,b,c,d){if(this.getSettings().enableListStyle||d){var e=b.getBoundingClientRect();a.style.width=b.offsetWidth+"px",a.style.position="absolute",a.style.top=e.bottom+window.pageYOffset-document.documentElement.clientTop+"px",a.style.left=e.left+window.pageXOffset-document.documentElement.clientLeft+"px","function"==typeof c&&c(a,b)}},imx.Autocomplete.prototype.buildAutocompleteList_=function(){var a=this.getSettings(),b=this.getInput(),c=Autocomplete_util.createElementByTemplate(a.listElement);return c.setAttribute("id",b.getAttribute("id")+"_autocomplete"),c.setAttribute("class","autocomplete "+a.resultsClass),this.updateListPosition(c,b,function(a){a.style.display="none"}),Autocomplete_util.append(c,a.appendTo),c},imx.Autocomplete.prototype.handleChange_=function(){var a=this.getInput(),b=this.getSettings(),c=a.value,d=this.getList();return this.updateListPosition(d,a),c.length>=b.minChars?(a.classList.add(b.loadingClass),this.handleAdapter_
2()):(a.classList.remove(b.loadingClass),this.hide()),this},imx.Autocomplete.prototype.handleAdapter_=function(){var a=this,b=this.getInput(),c=this.getList(),d=this.getSettings(),e=this.getInput().value,f=function(f){var g=null;c.innerHTML="";for(var h=0;h<f.length;h++){var i=f[h].type,j=d.templates[i];if("function"==typeof j){if(d.wrap.start.call(a,f[h],h,f)===!0){var k="";k="function"==typeof d.wrap.element?d.wrap.element.call(a,f[h],h,f):d.wrap.element,g=Autocomplete_util.createElementByTemplate(k)}var l="item type-"+i;f[h].selectable&&(l+=" selectable");var m=Autocomplete_util.createElementByTemplate(d.itemElement);m.setAttribute("class",l),m.dataset.item=JSON.stringify(f[h]),f[h].selectable&&(m.addEventListener("mouseover",function(){var b=c.querySelector(".selected");b&&b.classList.remove("selected"),this.classList.add("selected"),a.getSettings().events.select.call(a,JSON.parse(this.dataset.item))}),m.addEventListener("mousedown",function(){a.change_()})),m.innerHTML=j.call(a,f[h],e),g?Autocomplete_util.append(m,g):Autocomplete_util.append(m,c),d.wrap.end.call(a,f[h],h,f)===!0&&(Autocomplete_util.append(g,c),g=null)}}c.childElementCount>0&&a.show(),b.classList.remove(d.loadingClass)};return d.adapter.request(e,f,d.events.beforeRequest,d.events.afterRequest,d.events.error),this},window.Autocomplete_util=function(a,b,c,d,e){var f=function(c,d,e){var f=null;"function"==typeof a.CustomEvent?f=new CustomEvent(d,{detail:e}):(f=b.createEvent("CustomEvent"),f.initCustomEvent(d,!1,!1,{detail:e})),c.dispatchEvent(f)},g=function(a,b){b.appendChild(a)},h=function(a){return(a.offsetWidth>0||a.offsetHeigth>0)&&"none"!==a.style.display},i=function(a){var b=[];for(var c in a)a.hasOwnProperty(c)&&b.push(e(c)+"="+e(a[c]));return b.join("&")},j=function(a){return a instanceof c},k=function(a){return null!==a&&"object"==typeof a&&a!==a.window&&d.getPrototypeOf(a)===d.prototype},l=function(a,b,c){for(var d in b)c&&(k(b[d])||j(b[d]))?(k(b[d])&&!k(a[d])&&(a[d]={}),j(b[d])&&!j(a[d])&&(a[d]=[]),l(a[d],b[d],c)):void 0!==b[d]&&(a[d]=b[d])},m=function(a){var b,d=c.prototype.slice.call(arguments,1);return"boolean"==typeof a&&(b=a,a=d.shift()),d.forEach(function(c){l(a,c,b)}),a},n=function(a){var c=b.createElement("template");return c.innerHTML=a,c.content?c.content.firstChild:c.firstChild};return{triggerEvent:f,append:g,isVisible:h,extend:m,serialize:i,createElementByTemplate:n}}(window,document,Array,Object,encodeURIComponent),window.imx=window.imx||{},window.imx.Autocomplete=window.imx.Autocomplete||{},imx.Autocomplete.AjaxAdapter=function(a){var b={url:"",extraParams:{}};this.requestObject=null,this.setSettings(Autocomplete_util.extend(b,a))},imx.Autocomplete.AjaxAdapter.prototype.getSettings=function(){return this.settings},imx.Autocomplete.AjaxAdapter.prototype.setSettings=function(a){return this.settings=a,this},imx.Autocomplete.AjaxAdapter.prototype.request=function(a,b,c,d,e){null!==this.requestObject&&this.requestObject.abort();var f=this.getSettings(),g={q:a},h=Autocomplete_util.extend(g,f.extraParams),i=Autocomplete_util.serialize(h),j=f.url;j=j+(j.indexOf("?")!==-1?"&":"?")+i;var k=new XMLHttpRequest;return k.open("GET",j,!0),"function"!=typeof e&&(e=function(){}),k.onload=function(){k.status>=200&&k.status<400?b(JSON.parse(k.responseText)):e(k),d()},c(),k.send(),this.requestObject=k,this};var imx=imx||{},AutocompleteForm=Class.extend({inputField:null,autocomplete:null,highlight:function(a,b){var c=a.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)("+b.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi,"\\$1")+")(?![^<>]*>)(?![^&;]+;)","gi"),"<strong>$1</strong>");return c},autocompleteOptions:{adapter:new imx.Autocomplete.AjaxAdapter({url:"/portal/autocomplete.php",extraParams:{language:imx.language,type:""},cacheable:!0}),delay:200,enableListStyle:!1,appendTo:document.querySelector("body"),shouldAutoSubmit:!0,templates:{title:function(a,b){var c=a.label;return c}},wrap:{start:function(a,b,c){return 0===b},end:function(a,b,c){return c.length===b+1},element:'<div class="box" />'},events:{change:function(a){return this.getSettings().shouldAutoSubmit&&jQuery(this.input).parents("form:first").submit(),this},select:function(a){return this}}},init:function(a,b){this.inputField=a,$that=this,this.autocompleteOptions.appendTo=b,this.autocompleteOptions.templates.suggest=function(a,b){var c='<a href="javascript:void();">'+$that.highlight(a.label,b)+"<span>("+a.data.hits+" "+imx.translations.hits+")</span></a>";return c},this.autocomplete=new imx.Autocomplete(this.inputField,this.autocompleteOptions).create()}}),autocompleteforms=[];jQuery(document).ready(function(){jQuery("input.autocomplete").each(function(a,b){var c=jQuery(b).parents("form:first").get(0);autocompleteforms[autocompleteforms.length]=new AutocompleteForm(b,c)})});
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.