1"use strict";if(window.NodeList&&!NodeList.prototype.forEach){NodeList.prototype.forEach=Array.prototype.forEach}if(typeof AA_$!=="function"){var AA_$=(s,el=document)=>el.querySelector(s)}if(typeof AA_$$!=="function"){var AA_$$=(s,el=document)=>Array.from(el.querySelectorAll(s))}if(typeof AA_$N!=="function"){var AA_$N=(s,el=document)=>el.getElementsByName(s)?.[0]??null}if(typeof AA_$V!=="function"){var AA_$V=(s,el=document)=>{if(!(el=typeof s==="string"?AA_$(s,el)||AA_$N(s,el):s))return null;if(el.type==="checkbox")return el.checked;if(el.type==="radio")return AA_$(`[name="${el.name}"]:checked`,el.form||document)?.value??null;if(el.multiple)return[...el.selectedOptions].map(o=>o.value);return el.value??null}}if(typeof window.AA_GetConf==="undefined"){window.AA_GetConf=function(prop){if(typeof AA_GetConf.aa_install_path==="undefined"){var src=document.querySelector('script[src*="javascript/aajslib"]').getAttribute("src");AA_GetConf.aa_install_path=src.replace(/javascript\/aajslib.*$/,"")}switch(prop){case"path":return AA_GetConf.aa_install_path;case"loader":return'<img src="'+AA_GetConf.aa_install_path+'images/loader.gif" width=16 height=16 class=aa-loader>';case"lang":return document.documentElement.lang.substring(0,2)}}}function AA_AjaxInsert(a_obj,form_url){if(!a_obj.id){a_obj.id="aa_el_"+AA_NewId()}var new_div_id=a_obj.id+"_ins";if(document.getElementById(new_div_id)==null){var new_div=document.createElement("div");new_div.id=new_div_id;a_obj.innerHTML='<img src="'+AA_GetConf("path")+'images/icon_close.gif" width=16 height=16>';a_obj.parentNode.insertBefore(new_div,a_obj.nextSibling);AA_Ajax(new_div_id,form_url)}else{a_obj.innerHTML='<img src="'+AA_GetConf("path")+'images/icon_new.gif" width=16 height=16>';document.getElementById(new_div_id).remove()}}function AA__Serialize(root){const params=new URLSearchParams;const add=(name,value)=>params.append(name,String(value).replace(/\r?\n/g,"\r\n"));AA_$$("input, select, textarea",root).forEach(el=>{if(!el.name||el.disabled||["submit","button","image","reset","file"].includes(el.type)){return}if((el.type==="checkbox"||el.type==="radio")&&!el.checked){return}if(el.multiple&&el.selectedOptions){[...el.selectedOptions].forEach(opt=>add(el.name,opt.value))}else{add(el.name,el.value)}});return params.toString()}function AA_AjaxSendAddForm(id){const form=document.getElementById(id);let opener=form.parentElement.closest("div")?.previousElementSibling;while(opener&&opener.tagName!=="A"){opener=opener.previousElementSibling}if(!opener){return}const selectbox=document.getElementById(opener.id.substring(1));const code=AA__Serialize(form);form.insertAdjacentHTML("beforeend",AA_GetConf("loader"));fetch(AA_GetConf("path")+"filler.php",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:code,credentials:"same-origin"}).then(response=>response.json()).then(data=>{for(const key in data){sb_SetValue(selectbox,"new",data[key],key)}AA_AjaxInsert(opener,"")}).catch(error=>console.error("Error:",error))}function DisplayAaResponse(div_id,method,params){AA_AjaxCss("#"+CSS.escape(div_id),AA_GetConf("path")+"central/responder.php?command="+method,params)}function AA_Message(text,type){var attrs={id:"aa-message-box",onclick:"$(this).hide()"};switch(type){case"err":attrs["class"]="aa-err";break;case"ok":attrs["class"]="aa-ok";break;case"info":attrs["class"]="aa-info";break;default:attrs["class"]="aa-text";type="text"}if(text.charAt(0)==="/"){AA__systemDiv("aa-message-box",attrs,'<div id="aa-message-box-in"></div>');AA_Ajax("aa-message-box-in",text)}else{AA__systemDiv("aa-message-box",attrs,text.length?'<div id="aa-message-box-in">'+text+"</div>":"")}if(type!=="text"){setTimeout(function(){$("#aa-message-box").hide()},3e3)}}function AA_Toolbar(text){AA__systemDiv("aa-bottom-toolbar",{id:"aa-bottom-toolbar"},text)}function AA_LoadJs(condition,callback,url,sync,opts){if(condition&&(condition!=="load_once"||url&&document.querySelector('script[src="'+url+'"]'))){if(callback){callback()}return}const options=opts||{};const script=document.createElement("script");script.type=options.type==="module"?"module":"text/javascript";if(sync){script.async=false}if(options.integrity){script.integrity=options.integrity;script.crossOrigin="anonymous"}script.onload=function(){if(callback){callback()}};script.onerror=function(){console.error("AA_LoadJs: failed to load "+url);if(callback){callback()}};script.src=url;document.head.append(script)}function AA_IsLoaded(){if(AA_IsLoaded.cnt){--AA_IsLoaded.cnt}if(!AA_IsLoaded.cnt&&AA_IsLoaded.callback){AA_IsLoaded.callback();AA_IsLoaded.callback=undefined}}async function AA_InnerHtmlWithScripts(el,html){el.innerHTML=html;const scripts=el.querySelectorAll("script");for(const s of scripts){const ns=document.createElement("script");
1[...s.attributes].forEach(a=>ns.setAttribute(a.name,a.value));if(s.src){document.head.appendChild(ns);await new Promise((resolve,reject)=>{ns.onload=resolve;ns.onerror=reject})}else{ns.textContent=s.textContent;s.parentNode.replaceChild(ns,s)}}}function AA_LoadCss(url){var link=document.querySelector('link[href="'+url+'"]');if(url&&!link){link=document.createElement("link");link.rel="stylesheet";link.href=url;document.getElementsByTagName("head")[0].append(link)}return link}function AA_GetStyle(id,name){return window.getComputedStyle(document.getElementById(id))?.getPropertyValue(name)??null}function AA_WindowUnloadQ(e){e.preventDefault();e.returnValue="Changes are not saved. Do you really want to exit this page?"}function AA_SiteUpdate(item,field,value,action){if(["u","i","r"].indexOf(action)===-1){action="u"}var params={};params["aa["+action+item+"]["+field+"][0]"]=value;AA__doChange(params)}function AA_SiteNewitem(slice,template,field,value){let params={};for(var i=2,len=arguments.length;i<len;i+=2){if(len>i+1){params["aa[n1_"+slice+"]["+arguments[i]+"][0]"]=arguments[i+1]}}AA__doChange(params)}function AA_SiteEdit(item,cmdvar){AA__doChange({[cmdvar]:item,aaedit:cmdvar},"get")}function AA_SiteSendForm(form){AA__doChange(new FormData(form));return false}function AA__SiteUpdateParts(data){for(let i in data){if(i==="message"){document.querySelectorAll("article.aa-updating[data-aa-part]").forEach(function(elem){elem.classList.remove("aa-updating")});AA_Message(data[i],"err")}else{document.querySelectorAll("[data-aa-part='"+i+"']").forEach(function(elem){if(elem.getAttribute("data-aa-part-update")==="add"){elem.innerHTML+=data[i]}else{elem.outerHTML=data[i]}})}}}function AA__doChange(params,type){const headers={"X-Requested-With":"xmlhttprequest"};const base_url=window.location.href.split("#")[0];if(type==="get"){const url=base_url+"?"+new URLSearchParams(params).toString();fetch(url,{method:"GET",credentials:"same-origin",headers:headers}).then(response=>response.json()).then(data=>AA__SiteUpdateParts(data)).catch(error=>console.error("Error:",error))}else if(params instanceof FormData){fetch(base_url,{method:"POST",body:params,credentials:"same-origin",headers:headers}).then(response=>response.json()).then(data=>AA__SiteUpdateParts(data)).catch(error=>console.error("Error:",error))}else{const formData=new URLSearchParams;for(let key in params){formData.append(key,params[key])}fetch(base_url,{method:"POST",headers:{...headers,"Content-Type":"application/x-www-form-urlencoded"},body:formData.toString(),credentials:"same-origin"}).then(response=>response.json()).then(data=>AA__SiteUpdateParts(data)).catch(error=>console.error("Error:",error))}}async function AA_Translate(text,from,to){if(typeof text!=="string"||text.trim()===""){throw new Error("Nothing to translate")}const direct=await AA__TranslateDirect(text,from,to);return direct!==null?direct:AA__TranslateViaAa(text,from,to)}async function AA__TranslateDirect(text,from,to){const url="https://translate.googleapis.com/translate_a/single?client=gtx&dt=t"+"&sl="+encodeURIComponent(from)+"&tl="+encodeURIComponent(to);try{const response=await fetch(url,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},body:new URLSearchParams({q:text}).toString(),signal:AbortSignal.timeout(15e3)});if(!response.ok){return null}const data=await response.json();const out=(data?.[0]??[]).map(seg=>seg?.[0]).filter(v=>typeof v==="string").join("");return out===""?null:out}catch{return null}}async function AA__TranslateViaAa(text,from,to){const response=await fetch(AA_GetConf("path")+"api/translate.php",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},body:new URLSearchParams({text:text,from:from,to:to}).toString(),credentials:"same-origin",signal:AbortSignal.timeout(12e4)});const data=await response.json().catch(()=>({}));if(!response.ok||typeof data.text!=="string"||data.text===""){throw new Error(data.error||"Translation failed (HTTP "+response.status+")")}return data.text}async function AA_TranslateInto(getSource,setTarget,from,to,btn){if(btn?.classList.contains("aa-updating")){return}btn?.classList.add("aa-updating");try{setTarget(await AA_Translate(getSource(),from,to))}catch(err){AA_Message("Translation failed: "+(err?.message||err),"err")}finally{btn?.classList.remove("aa-updating")}}function SetCookie(name,value,plustime){var coo=encodeURIComponent(name)+"="+encodeURIComponent(value);plustime=typeof plustime==="undefined"?1e3*60*60*24:plustime;var expires=new Date;expires.setTime(expires.getTime()+plustime);coo+="; expires="+expires.toGMTString()+"; path=/";coo+=window.location.protocol==="https:"?";secure;samesite=lax":"";document.cookie=coo}function getCookieVal(offset){var endstr=document.cookie.indexOf(";",offset);if(endstr===-1){endstr=document.cookie.length}return decodeURIComponent(document.cookie.substring(offset,endstr))}function GetCookie(name){var arg=name+"=";var alen=arg.length;var clen=document.cookie.length;var i=0;while(i<clen){var j=i+alen;if(document.cookie.substring(i,j)===arg){return getCookieVal(j)}i=document.cookie.indexOf(" ",i)+1;if(i===0)break}return null}function DeleteCookie(name){var exp=new Date;exp.setTime(exp.getTime()-1);var cval=GetCookie(name);document.cookie=name+"="+cval+"; expires="+exp.toGMTString()+"; path=/"}function ToggleCookie(name,val){if(GetCookie(name)!==val){SetCookie(name,val)}else{DeleteCookie(name)}}function AA_NewId(){var chars="0123456789abcdefgh".split("");var uuid=[];for(var i=0;i<16;i++){uuid[2*i]=chars[0|Math.random()*15+1];uuid[2*i+1]=chars[0|Math.random()*16]}return uuid.join("")}function displayInput(valdivid,item_id,fid,widget_type,widget_properties,context){var el=document.getElementById(valdivid);switch(el.getAttribute("data-aa-edited")){case"1":return}el.setAttribute("data-aa-oldval",el.innerHTML);var width=el.offsetWidth;el.innerHTML=AA_GetConf("loader");var lang=AA_GetConf("lang");AA_Response("Get_Widget",{field_id:fid,item_id:item_id,widget_type:widget_type,widget_properties:widget_properties,lang:lang,context:context},function(responseText){if(width>200){responseText=responseText.replace('class="ajax_widget aa-widget aa-ajax-open"','class="ajax_widget aa-widget aa-ajax-open" style="width:'+width+'px;"')}AA_InnerHtmlWithScripts(el,responseText);el.setAttribute("data-aa-edited","1");var firstInput=el.querySelector("input, select, textarea");if(firstInput!=null){firstInput.focus();if(firstInput.tagName.toLowerCase()==="textarea"){firstInput.addEventListener("keydown",event=>{switch(event.key){case"Escape":el.querySelector("input.cancel-button")?.click();break}})}else{firstInput.addEventListener("keydown",event=>{switch(event.key){case"Escape":el.querySelector("input.cancel-button")?.click();break;case"Enter":el.querySelector("input.save-button")?.click();break;case"Tab":const current=event.target.closest("div.ajax_container");if(current){const containers=[...document.querySelectorAll("div.ajax_container")];el.querySelector("input.save-button")?.click();containers[containers.indexOf(current)+1]?.click()}break}})}}})}function AA_Load(sel,url,options={}){return fetch(url,options).then(response=>response.text()).then(html=>{const el=sel instanceof HTMLElement?sel:AA_$(sel);el.innerHTML=html;AA_$$("script",el).forEach(oldjs=>{const newjs=document.createElement("script");
1[...oldjs.attributes].forEach(at=>newjs.setAttribute(at.name,at.value));newjs.text=oldjs.text;oldjs.parentNode.replaceChild(newjs,oldjs)})})}function jqescape(s){return CSS.escape(s)}function jqid(s){return"#"+CSS.escape(s)}function AA_GalleryGoto(photo_div,viewid,sitemid,galeryid,thumb_id){$("div.switcher .active").removeClass("active");if($(jqid(thumb_id))){$(jqid(thumb_id)).addClass("active")}$(jqid(photo_div)).load(AA_GetConf("path")+"view.php?vid="+viewid+"&cmd["+viewid+"]=x-"+viewid+"-"+sitemid+"&convertto=utf-8&als[GALERYID]="+galeryid)}function AA_Ajax(div_id,url,param,onload){AA_AjaxCss(jqid(div_id),url,param,onload)}function AA_AjaxCss(selector,url,param,onload){var di=$(selector).css("display");$(selector).hide("fast");$(selector).html(AA_GetConf("loader"));$(selector).show("fast");$(selector).css(di);$(selector).load(url,param,onload)}function AA_InsertHtml(into_id,code){$(jqid(into_id)).append(code)}function AA_HtmlToggle(link_id,link_text_1,div_id_1,link_text_2,div_id_2,persist_id){if($(jqid(div_id_1)).is(":visible")){$(jqid(div_id_1)).hide("fast");$(jqid(div_id_2)).show("fast");$(jqid(link_id)).html(link_text_2);$(jqid(link_id)).addClass("is-on");if(persist_id){localStorage[persist_id]="2"}}else{$(jqid(div_id_2)).hide("fast");$(jqid(div_id_1)).show("fast");$(jqid(link_id)).html(link_text_1);$(jqid(link_id)).removeClass("is-on");if(persist_id){localStorage[persist_id]="1"}}}function AA_HtmlToggleCss(link_id,link_text_1,link_text_2,selector){var link=jqid(link_id);if($(link).hasClass("is-on")){$(selector).hide("fast");$(link).html(link_text_1);$(link).toggleClass("is-on")}else{$(selector).show("fast");$(link).toggleClass("is-on");$(link).html(link_text_2)}}function AA_HtmlAjaxToggle(link_id,link_text_1,div_id_1,link_text_2,div_id_2,url){if($(jqid(div_id_1)).is(":visible")){$(jqid(div_id_1)).hide("fast");$(jqid(div_id_2)).show("fast");if($(jqid(div_id_2)).attr("data-aa-loaded")!="1"){$(jqid(div_id_2)).attr("data-aa-loaded","1");AA_Ajax(div_id_2,url)}$(jqid(link_id)).html(link_text_2)}else{$(jqid(div_id_2)).hide("fast");$(jqid(div_id_1)).show("fast");$(jqid(link_id)).html(link_text_1)}}function AA_HtmlAjaxToggleCss(link_id,link_text_1,link_text_2,selector_hide,url,selector_update){var link=jqid(link_id);var swap;selector_update=selector_update?selector_update:selector_hide;if(!$(link).hasClass("is-on")){$(selector_hide).show("fast");$(link).toggleClass("is-on");if(!$(link).hasClass("aa-loaded")){$(link).addClass("aa-loaded");$(link).attr("data-aa-oldval",$(selector_update).html());AA_AjaxCss(selector_update,url)}else{swap=$(selector_update).html();$(selector_update).html($(link).attr("data-aa-oldval"));$(link).attr("data-aa-oldval",swap)}$(link).html(link_text_2)}else{swap=$(selector_update).html();$(selector_update).html($(link).attr("data-aa-oldval"));$(link).attr("data-aa-oldval",swap);if(!$(link).attr("data-aa-oldval")?.trim().length){$(selector_hide).hide("fast")}$(link).html(link_text_1);$(link).toggleClass("is-on")}}function AA_Response(method,resp_params,ok_func,err_func){$.post(AA_GetConf("path")+"central/responder.php?command="+method,resp_params,function(data){if(data.substring(0,5)==="Error"){if(typeof err_func!="undefined"){err_func(data)}}else{if(typeof ok_func!="undefined"){ok_func(data)}}})}function AA_Refresh(id,inside,ok_func){const el=id instanceof HTMLElement?id:AA_$(jqid(id));const target=el?.closest("[data-aa-url]");if(!target){return}AA_AjaxCss(target,target.getAttribute("data-aa-url"),"",ok_func)}function AA_SendForm(id,refresh,ok_func){var form_id=jqid(id);if(typeof $(form_id)[0].checkValidity==="function"){if(!$(form_id)[0].checkValidity()){return}}var url=$(form_id).attr("action");$(form_id).append(AA_GetConf("loader"));var code=$(form_id+" *").serialize();$.post(url,code).always(function(){if(typeof refresh!="undefined"){AA_Refresh(refresh,false,ok_func)}})}function AA_AjaxSendForm(form_id,url){var filler_url=url||"modules/polls/poll.php";if(filler_url.charAt(0)!="/"){filler_url=AA_GetConf("path")+filler_url}var valdiv=jqid(form_id);var code=$(valdiv+" *").serialize();$(valdiv).append(AA_GetConf("loader"));$.post(filler_url,code,function(data){$(valdiv).attr("data-aa-edited","0");var res=data;if(typeof data==="object"){for(var i in data){res=data[i];break}}$(valdiv).html(res)})}
1function DisplayInputBack(input_id){var valdiv=jqid("ajaxv_"+input_id);$(valdiv).html($(valdiv).attr("data-aa-oldval"));$(valdiv).attr("data-aa-edited","0")}function AA_SendWidgetAjax(base_id){var valdiv=jqid("ajaxv_"+base_id);var inputs=$(valdiv+" :input");if(typeof inputs[0].checkValidity==="function"){for(var i=0;i<inputs.length;i++){if(!inputs[i].checkValidity()){AA_StateChange(base_id,"invalid");return}}}AA_$$(valdiv+" .CodeMirror").forEach(el=>el.CodeMirror?.save());var code=$(valdiv+" *").serialize();AA_StateChange(base_id,"updating");var alias_name=$(valdiv).attr("data-aa-alias");code+="&inline=1&ret_code_enc="+alias_name;$.post(AA_GetConf("path")+"filler.php",code,function(data){AA_ReloadAjaxResponse(base_id,data)})}function AA_ReloadAjaxResponse(id,responseText){var valdiv=jqid("ajaxv_"+id);var items=typeof responseText==="string"?jQuery.parseJSON(responseText):responseText;var res;for(var i in items){if(i==="report"){continue}res=items[i];$(valdiv).html(res.length>0?res:"--");break}$(valdiv).attr("data-aa-edited","0");var succes_function=$(valdiv).attr("data-aa-onsuccess");if(succes_function){(function(){eval(succes_function)}).call(AA_$(valdiv))}}function AA_SendWidgetLive(base_id,liveinput,fnc){AA_StateChange(base_id,"updating");var valdivid=jqid("widget-"+base_id);if(typeof liveinput.checkValidity==="function"){if(!liveinput.checkValidity()){AA_StateChange(base_id,"invalid");return}}var code=$(valdivid+" *").serialize();code+="&inline=1";$.post(AA_GetConf("path")+"filler.php",code,function(data){AA_StateChange(base_id,"normal");if(typeof fnc==="function"){fnc()}})}function AA_Rotator(id,interval,max,speed,effect){if(max<2){return}if(typeof AA_Rotator.rotators=="undefined"){AA_Rotator.rotators={}}if(typeof AA_Rotator.rotators[id]=="undefined"){AA_Rotator.rotators[id]={index:0,max:max,speed:speed,effect:effect};AA_Rotator.rotators[id].timer=setInterval(function(){AA_Rotator(id)},interval);$(jqid(id)).hover(function(ev){clearInterval(AA_Rotator.rotators[id].timer)},function(ev){AA_Rotator.rotators[id].timer=setInterval(function(){AA_Rotator(id)},interval)})}if(AA_Rotator.rotators[id].effect=="fade"){$(jqid(id)+" .rot-hide").stop(true,true).fadeOut(AA_Rotator.rotators[id].speed);$(jqid(id)+" .rot-hide:nth-child("+(AA_Rotator.rotators[id].index+1)+")").fadeIn(AA_Rotator.rotators[id].speed)}else{$(jqid(id)+" .rot-hide").stop(true,true).hide(AA_Rotator.rotators[id].speed);$(jqid(id)+" .rot-hide:nth-child("+(AA_Rotator.rotators[id].index+1)+")").show(AA_Rotator.rotators[id].speed)}$(jqid(id)+" .rot-active").removeClass("active");$(jqid(id)+" .rot-active:nth-child("+(AA_Rotator.rotators[id].index+1)+")").addClass("active");AA_Rotator.rotators[id].index=(AA_Rotator.rotators[id].index+1)%AA_Rotator.rotators[id].max}function AA__liveSearch(id,viewparam,deflt){let val=$(jqid(id)+" input.itemsearch")[0].value;if(!val.length&&deflt.length){val=deflt}let fnc=function(t,v,q){AA_AjaxCss(t,AA_GetConf("path")+"view.php?vid="+viewparam.replace("AA_LS_QUERY",q))};if(AA__liveSearch.timer){if(AA__liveSearch.searchval!=val){clearTimeout(AA__liveSearch.timer);AA__liveSearch.searchval=val;AA__liveSearch.timer=setTimeout(fnc,200,$(jqid(id)+" .itemgroup")[0],viewparam,val)}}else{AA__liveSearch.timer=setTimeout(fnc,200,$(jqid(id)+" .itemgroup")[0],viewparam,val);AA__liveSearch.searchval=val}}function AA__Keynavigate(e){if(e.key==="ArrowDown"){$("a:focus").closest("li").next().find("a.move").focus()}if(e.key==="ArrowUp"){$(".move:focus").closest("li").prev().find("a.move").focus()}}function AA__systemDiv(id,attrs,text){var box=$(jqid(id));if(!box.length){$("<div/>",attrs).appendTo("body");box=$(jqid(id))}box.html(text);if(!text){box.hide()}else{if(!$("#aa-bottom-toolbar").length){AA_Toolbar("");if(window.getComputedStyle(document.getElementById("aa-bottom-toolbar"))?.getPropertyValue("position")!=="fixed"){AA_LoadCss(AA_GetConf("path")+"css/aa-system.css")}}box.show()}}function AA_StateChange(id,state){var outstyle={};var icoimg="";switch(state){case"dirty":outstyle={"outline-color":"#E4B600","outline-width":"1px","outline-style":"solid"};icoimg="images/save.png";break;case"updating":outstyle={"outline-color":"#E4B600","outline-width":"1px","outline-style":"dashed"};icoimg="images/loader.gif";break;
1case"invalid":outstyle={outline:"none"};icoimg="images/warn.png";break;case"normal":default:outstyle={outline:"none"};icoimg="images/px.gif";break}$('*[id ^="'+id+'"]').removeClass("updating normal dirty invalid").addClass(state);$('select[id ^="'+id+'"]').css(outstyle);$('input[id ^="'+id+'"]').css(outstyle);$('textarea[id ^="'+id+'"]').css(outstyle);$("img."+id+"ico").attr("src",AA_GetConf("path")+icoimg)}function AA_SaveEditors(){var params={inline:1};for(var i in CKEDITOR.instances){if(CKEDITOR.instances[i].checkDirty()){params["aa[u"+$(jqid(i)).attr("data-aa-id")+"]["+$(jqid(i)).attr("data-aa-field")+"]["+$(jqid(i)).attr("data-aa-index")+"]"]=CKEDITOR.instances[i].getData();params["aa[u"+$(jqid(i)).attr("data-aa-id")+"]["+$(jqid(i)).attr("data-aa-field")+"][flag]"]=1}}$.post(AA_GetConf("path")+"filler.php",params,function(data){AA_Toolbar("");window.removeEventListener("beforeunload",AA_WindowUnloadQ);AA_Message(Object.keys(data).length===1?"Zmeny ulozeny":"Ulozeno "+Object.keys(data).length+" zmen")},"json")}function aa_maketags(id,slice_id,field_id,max_values,item_id){var responder=AA_GetConf("path")+"central/responder.php";var conf={templateResult:function(d){return $("<span>"+d.text+"</span>")},templateSelection:function(d){return $("<span>"+d.text+"</span>")},createTag:function(params){return undefined},language:AA_GetConf("lang"),selectOnClose:true,ajax:{url:responder,dataType:"json",delay:250,data:function(params){return{free:"nobody",command:"tags",q:params.term,p:params.page,s:slice_id,f:field_id,i:item_id}},processResults:function(data,params){params.page=params.page||1;return{results:data,pagination:{more:params.page*10<data.count_filtered}}}}};if(max_values>0){conf.maximumSelectionLength=max_values}$("#"+id).select2(conf)}
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.