PageSourceSearch

https://localbranding.de/assets/js/lsjs_5a263eb149092ec518ad1bbce9fd8148.js?v=2bb4a043

js localbranding.de collected 2026-10-07 04:52:36 UTC 247,616 bytes, 667 lines download raw bytes

1(function(){"use strict";(function(){(function(){var method;var noop=function(){};var methods=['assert','clear','count','debug','dir','dirxml','error','exception','group','groupCollapsed','groupEnd','info','log','markTimeline','profile','profileEnd','table','time','timeEnd','timeStamp','trace','warn','lsjsConsoleTest'];var length=methods.length;console=(window.console=window.console||{});while(length--){method=methods[length];if(!console[method]){console[method]=noop}}})();(function(){function getPropertyList(element,property){return(element.getAttribute(property)||'').split(/\s+/).filter(Boolean)}
2if(!Element.prototype.lsjs_addPropertyValue){Element.prototype.lsjs_addPropertyValue=function(property,value){let values=getPropertyList(this,property);if(!values.includes(value)){values.push(value);this.setAttribute(property,values.join(' '))}
3return this}}
4if(!Element.prototype.lsjs_removePropertyValue){Element.prototype.lsjs_removePropertyValue=function(property,value){let values=getPropertyList(this,property).filter(v=>v!==value);this.setAttribute(property,values.join(' '));return this}}
5if(!Element.prototype.lsjs_togglePropertyValue){Element.prototype.lsjs_togglePropertyValue=function(property,value){return this.lsjs_hasPropertyValue(property,value)?this.lsjs_removePropertyValue(property,value):this.lsjs_addPropertyValue(property,value)}}
6if(!Element.prototype.lsjs_hasPropertyValue){Element.prototype.lsjs_hasPropertyValue=function(property,value){return getPropertyList(this,property).includes(value)}}})();(function(){if(Function.prototype.bindWithOriginal){return}
7Object.defineProperty(Function.prototype,'bindWithOriginal',{value:function(...bindArgs){const originalFunction=this;if(!lsjs.hooks.mapBoundToOriginal||!(lsjs.hooks.mapBoundToOriginal instanceof WeakMap)){lsjs.hooks.mapBoundToOriginal=new WeakMap()}
8const boundFunction=originalFunction.bind(...bindArgs);lsjs.hooks.mapBoundToOriginal.set(boundFunction,originalFunction);return boundFunction},writable:!0,configurable:!0,enumerable:!1})})();Request.cajax=new Class({Extends:Request,bln_urlHistoryHasBeenHandled:!1,options:{cajaxMode:'update',el_formToUseForFormData:!1,obj_additionalFormData:{},headers:{Accept:'text/html, application/xml, text/xml, */*'}},initialize:function(options){if(options.url!==undefined&&options.url!==null){options.url=options.url+(String(options.url).includes('?')?'&':'?')+'cajaxCall='+(new Date).getTime()}
9if(lsjs.obj_preferences.bln_activateUrlModificationInRequestCajax){var func_onProgressOption=options.onProgress;options.onProgress=function(event,xhr){if(!options.bln_doNotModifyUrl){this.handleUrlHistory(xhr)}
10if(typeOf(func_onProgressOption)==='function'){func_onProgressOption(event,xhr)}}}
11this.parent(options)},handleUrlHistory:function(xhr){if(this.bln_urlHistoryHasBeenHandled){return}
12if(xhr.responseURL){var obj_urlToPushToHistory=new URL(xhr.responseURL);var arr_paramsToRemove=['cajaxCall','cajaxRequestData'];obj_urlToPushToHistory.searchParams.forEach(function(value,key){if(value===''){arr_paramsToRemove.push(key)}});Array.each(arr_paramsToRemove,function(str_paramNameToRemove){obj_urlToPushToHistory.searchParams.delete(str_paramNameToRemove)});history.replaceState({},'',obj_urlToPushToHistory);this.bln_urlHistoryHasBeenHandled=!0}},success:function(str_text){this.response.html=str_text.stripScripts(function(str_script){this.response.javascript=str_script}.bind(this));if(this.options.cajaxMode==='discard'){this.onSuccess(els_toPassToOnSuccess,this.response.html,this.response.javascript);return}
13var el_temp=new Element('div').set('html',this.response.html);var els_updated=el_temp.getChildren();var els_toPassToOnSuccess=new Elements();if(this.options.cajaxMode==='updateByAttribute'&&!this.options.attributeForUpdateTargetDetection){console.error('cajaxMode is "updateByAttribute" but no attribute is specified')}
14Array.each(els_updated,function(el_updated){if(this.options.cajaxMode!=='updateByAttribute'&&$(el_updated.getProperty('id'))===null){console.info('cajax response contains elements without IDs, which therefore can\'t be considered for content updates:')
15console.log(el_updated);return}
16els_toPassToOnSuccess.push(this.options.cajaxMode==='updateCompletely'?el_updated:$(el_updated.getProperty('id')));switch(this.options.cajaxMode){case 'update':$(el_updated.getProperty('id')).empty().adopt(el_updated.childNodes);break;case 'updateCompletely':var float_scrollTop=$(el_updated.getProperty('id')).scrollTop;el_updated.replaces($(el_updated.getProperty('id')));el_updated.scrollTop=float_scrollTop;break;case 'append':$(el_updated.getProperty('id')).adopt(el_updated.childNodes);break;case 'updateByAttribute':const attributeValue=el_updated.getAttribute(this.options.attributeForUpdateTargetDetection);
16if(!attributeValue){console.info('cajax response element without the attribute "'+this.options.attributeForUpdateTargetDetection+'" or an empty value for this attribute can\'t be considered for content updates:',el_updated)
17return}
18document.querySelectorAll('['+this.options.attributeForUpdateTargetDetection+']').forEach(targetElement=>{if(targetElement!==el_updated&&targetElement.getAttribute(this.options.attributeForUpdateTargetDetection)===attributeValue){targetElement.empty().adopt(el_updated.clone().childNodes)}});break}}.bind(this));this.onSuccess(els_toPassToOnSuccess,this.response.html,this.response.javascript);Array.each(els_toPassToOnSuccess,function(el_domReference){window.fireEvent('cajax_domUpdate',el_domReference)})},send:function(options){if(typeOf(this.options.el_formToUseForFormData)!=='element'){this.parent(options);return}
19var obj_formData=new FormData(this.options.el_formToUseForFormData);Object.each(this.options.obj_additionalFormData,function(value,key){obj_formData.append(key,value)});this.sendFormData(options,obj_formData)},sendFormData:function(options,obj_formData){if(!this.check(options))return this;this.options.isSuccess=this.options.isSuccess||this.isSuccess;this.running=!0;var xhr=this.xhr;var progressSupport=('onprogress' in new Browser.Request);if(progressSupport){xhr.onloadstart=this.loadstart.bind(this);xhr.onprogress=this.progress.bind(this);xhr.upload.onprogress=this.progress.bind(this)}
20xhr.open('POST',this.options.url,!0);xhr.onreadystatechange=this.onStateChange.bind(this);Object.each(this.headers,function(value,key){try{xhr.setRequestHeader(key,value)}catch(e){this.fireEvent('exception',[key,value])}},this);this.fireEvent('request');xhr.send(obj_formData);if(!this.options.async)this.onStateChange();if(this.options.timeout)this.timer=this.timeout.delay(this.options.timeout,this);return this}});var classdef_lsjs_helpers={prepareFormForCajaxRequest:function(el_form){if(typeOf(el_form)!=='element'){return}
21el_form.getElements('[type="submit"]').addEvent('click',function(){var str_dataAttributeNameForFakeSubmit='data-fake-submit-field-for-cajax-request';var el_fakeSubmitField=el_form.getElement('['+str_dataAttributeNameForFakeSubmit+']');if(el_fakeSubmitField===undefined||el_fakeSubmitField===null){el_fakeSubmitField=new Element('input');el_fakeSubmitField.setProperty('type','hidden');el_fakeSubmitField.setProperty(str_dataAttributeNameForFakeSubmit,'');el_form.adopt(el_fakeSubmitField)}
22el_fakeSubmitField.setProperties({'name':this.getProperty('name'),'value':this.getProperty('value')})})},decimalSaveParseFloat:function(str_number){return parseFloat(str_number.replace(/[^\d\-.,]/g,"").replace(/,/g,".").replace(/\.(?=.*\.)/g,""))}};var class_lsjs_helpers=new Class(classdef_lsjs_helpers);var classdef_lsjs_hooks={registered_hooks:{},mapBoundToOriginal:new WeakMap(),registerHook:function(str_hook,func_hookedFunction,obj_properties){if(!lsjs.hooks.mapBoundToOriginal||!(lsjs.hooks.mapBoundToOriginal instanceof WeakMap)){lsjs.hooks.mapBoundToOriginal=new WeakMap()}
23const originalFn=this.mapBoundToOriginal.get(func_hookedFunction)||func_hookedFunction;if(!this.registered_hooks[str_hook]){this.registered_hooks[str_hook]=[]}
24const alreadyRegistered=this.registered_hooks[str_hook].some((hook)=>hook.function===func_hookedFunction||hook.originalfunction===originalFn);if(!alreadyRegistered){this.registered_hooks[str_hook].push({function:func_hookedFunction,originalfunction:originalFn,properties:obj_properties||{},order:obj_properties?.order??null})}},callHook:function(str_hook,thisArg,...args){if(this.registered_hooks[str_hook]){this.registered_hooks[str_hook].sort((a,b)=>{if(a.order===null&&b.order===null){return 0}else if(a.order===null){return 1}else if(b.order===null){return-1}
25return a.order-b.order});return this.registered_hooks[str_hook].map(function(hook){return hook.function.apply(thisArg,args)},this).filter(result=>result!==undefined)}
26return[]},callHookAsync:async function(str_hook,thisArg,...args){const hooks=this.registered_hooks[str_hook];if(!hooks)return[];hooks.sort((a,b)=>{if(a.order===null&&b.order===null)return 0;if(a.order===null)return 1;if(b.order===null)return-1;return a.order-b.order});const results=[];for(const hook of hooks){const result=await hook.function.apply(thisArg,args);if(result!==undefined)results.push(result);}
27return results}};var class_lsjs_hooks=new Class(classdef_lsjs_hooks);var classdef_lsjs_apiInterface={str_apiUrl:'',request:function(obj_options){var obj_params={},obj_requestOptions={},method='get',self=this;obj_params=obj_options.obj_params!==undefined&&obj_options.obj_params!==null?obj_options.obj_params:obj_params;if((obj_options.str_resource===undefined||obj_options.str_resource===null)&&(obj_options.obj_additionalRequestOptions===undefined||obj_options.obj_additionalRequestOptions===null)){console.error('no api resource specified for this request');return}
28if(obj_options.obj_additionalRequestOptions!==undefined&&obj_options.obj_additionalRequestOptions.method!==undefined&&obj_options.obj_additionalRequestOptions.method==='post'){method='post'}
29if(method!=='post'){obj_params.resource=obj_options.str_resource}
30obj_requestOptions={url:this.str_apiUrl+(method==='post'?(this.str_apiUrl.search(/\?/)===-1?'?':'&')+'resource='+obj_options.str_resource:''),noCache:!0,method:method,data:Object.toQueryString(obj_params),onComplete:function(obj_response){if(obj_response===undefined||obj_response.status!=='success'){console.info('ajax
30/api request not successful');obj_options.func_onFailure(obj_response,this);return}
31if(typeOf(obj_options.func_onSuccess)==='function'){obj_options.func_onSuccess(obj_response.data,this)}}};Object.merge(obj_requestOptions,obj_options.obj_additionalRequestOptions);if(obj_requestOptions.url===undefined||!obj_requestOptions.url){console.error('no url specified for this request');return}
32return new Request.JSON(obj_requestOptions).send()}};var class_lsjs_apiInterface=new Class(classdef_lsjs_apiInterface);var classdef_lsjs={obj_moduleClasses:{},__moduleHelpers:{},__appHelpers:{},createModule:function(obj_args){if(obj_args.__name===undefined||obj_args.__name===null){console.error('module name missing');return}
33return new class_lsjs_module(obj_args)},addViewClass:function(str_moduleName,obj_classDefinition){if(str_moduleName===undefined||str_moduleName===null||!str_moduleName){console.error('module name missing')}
34if(obj_classDefinition===undefined||obj_classDefinition===null||!obj_classDefinition){console.error('class definition missing')}
35if(this.obj_moduleClasses[str_moduleName]===undefined){this.obj_moduleClasses[str_moduleName]={}}
36if(this.obj_moduleClasses[str_moduleName].view!==undefined&&this.obj_moduleClasses[str_moduleName].view!==null){console.error('view class already created for module "'+str_moduleName+'"')}
37this.obj_moduleClasses[str_moduleName].view=new Class(obj_classDefinition)},addModelClass:function(str_moduleName,obj_classDefinition){if(str_moduleName===undefined||str_moduleName===null||!str_moduleName){console.error('module name missing')}
38if(obj_classDefinition===undefined||obj_classDefinition===null||!obj_classDefinition){console.error('class definition missing')}
39if(obj_classDefinition.name===undefined||obj_classDefinition.name===null||!obj_classDefinition.name){console.error('model name missing')}
40if(this.obj_moduleClasses[str_moduleName]===undefined){this.obj_moduleClasses[str_moduleName]={}}
41if(this.obj_moduleClasses[str_moduleName].model===undefined){this.obj_moduleClasses[str_moduleName].model={}}
42if(this.obj_moduleClasses[str_moduleName].model[obj_classDefinition.name]!==undefined&&this.obj_moduleClasses[str_moduleName].model[obj_classDefinition.name]!==null){console.error('model class "'+obj_classDefinition.name+'" already created in module "'+str_moduleName+'"')}
43this.obj_moduleClasses[str_moduleName].model[obj_classDefinition.name]={class_module:new Class(obj_classDefinition),obj_data:obj_classDefinition.data}},addControllerClass:function(str_moduleName,obj_classDefinition){if(str_moduleName===undefined||str_moduleName===null||!str_moduleName){console.error('module name missing')}
44if(obj_classDefinition===undefined||obj_classDefinition===null||!obj_classDefinition){console.error('class definition missing')}
45if(this.obj_moduleClasses[str_moduleName]===undefined){this.obj_moduleClasses[str_moduleName]={}}
46if(this.obj_moduleClasses[str_moduleName].controller!==undefined&&this.obj_moduleClasses[str_moduleName].controller!==null){console.error('controller class already created for module "'+str_moduleName+'"')}
47this.obj_moduleClasses[str_moduleName].controller=new Class(obj_classDefinition)},apiInterface:new class_lsjs_apiInterface(),helpers:new class_lsjs_helpers(),hooks:new class_lsjs_hooks(),obj_preferences:{bln_activateUrlModificationInRequestCajax:!1}};var class_lsjs=new Class(classdef_lsjs);var classdef_lsjs_module={__name:'',__parentModule:null,__el_container:null,__view:null,__models:null,__controller:null,els_renderedTemplates:new Elements(),int_numModelsToLoad:0,obj_args:{},obj_registeredDataBindings:{},initialize:function(obj_args){this.obj_args=obj_args;this.__name=this.obj_args.__name;if(this.obj_args.__parentModule!==undefined&&this.obj_args.__parentModule!==null){this.__parentModule=this.obj_args.__parentModule}
48if(this.obj_args.__useLoadingIndicator===!0&&this.__name!=='loadingIndicator'&&lsjs.loadingIndicator!==undefined&&lsjs.loadingIndicator!==null){lsjs.loadingIndicator.__controller.show()}
49if(this.obj_args.__el_container!==undefined&&typeOf(this.obj_args.__el_container)==='element'){this.__el_container=this.obj_args.__el_container}else{if(this.obj_args.str_containerSelector===undefined||this.obj_args.str_containerSelector===null){this.__el_container=new Element('div.moduleContainer.autoModuleContainer.'+this.__name)}else{this.__el_container=$$(this.obj_args.str_containerSelector)[0];if(this.__el_container===undefined||this.__el_container===null){console.error('no element found in DOM for selector "'+this.obj_args.str_containerSelector+'" in module "'+this.__name+'"');return}}}
50if(lsjs.obj_moduleClasses[this.__name]===undefined||lsjs.obj_moduleClasses[this.__name]===null){console.error('module classes not registered for module "'+this.__name+'". Did you include all of the script files?');return}
51this.__controller=new lsjs.obj_moduleClasses[this.__name].controller();this.__controller.__module=this;if(lsjs.obj_moduleClasses[this.__name].view!==undefined&&lsjs.obj_moduleClasses[this.__name].view!==null){this.__view=new lsjs.obj_moduleClasses[this.__name].view();this.__view.__module=this;this.__view.__el_container=this.__el_container;this.__view.tplPure=this.tplPure.bind(this);this.__view.tplAdd=this.tplAdd.bind(this);this.__view.tplReplace=this.tplReplace.bind(this);this.__view.registerElements=this.registerElements.bind(this);this.__view.removeDataBindings=this.removeDataBindings.bind(this);this.__view.debugBindings=this.debugBindings.bind(this)}
52this.__controller.__view=this.__view;if(this.__view!==undefined&&this.__view!==null){this.__view.__controller=this.__controller}
53this.__models={};this.__controller.__models=this.__models;if(this.__view!==undefined&&this.__view!==null){this.__view.__models=this.__models}
54if(lsjs.obj_moduleClasses[this.__name].model!==undefined&&lsjs.obj_moduleClasses[this.__name].model!==null){Object.each(lsjs.obj_moduleClasses[this.__name].model,function(obj_modelClassAndData,str_moduleName){this.int_numModelsToLoad++;this.__models[str_moduleName]=new obj_modelClassAndData.class_module();this.__models[str_moduleName].data=Object.clone(obj_modelClassAndData.obj_data);this.__models[str_moduleName].__module=this;this.__models[str_moduleName].__view=this.__view;this.__models[str_moduleName].__controller=this.__controller;this.__models[str_moduleName].__models=this.__models;this.__models[str_moduleName].writeData=this.writeData;this.__models[str_moduleName].readData=this.readData;this.__models[str_moduleName].triggerDataBinding=this.triggerDataBinding;this.__models[str_moduleName].handleDataBinding=this.handleDataBinding;this.__models[str_moduleName].handleDataFunctionBinding=this.handleDataFunctionBinding;this.__models[str_moduleName].lookForMatchingDataBindings=this.lookForMatchingDataBindings}.bind(this))}
55if(Object.getLength(this.__models)>0){Object.each(lsjs.obj_moduleClasses[this.__name].model,function(class_module,str_moduleName){this.__models[str_moduleName].start()}.bind(this))}else{this.onModelLoaded()}},onModelLoaded:function(){this.int_numModelsToLoad--;if(this.int_numModelsToLoad>0){return}
56if(this.__view!==undefined&&this.__view!==null){this.__view.start()}
57this.__controller.start();if(this.obj_args.__useLoadingIndicator===!0&&this.__name!=='loadingIndicator'&&lsjs.loadingIndicator!==undefined&&lsjs.loadingIndicator!==null){lsjs.loadingIndicator.__controller.hide()}},remove:function(){this.__el_container.destroy();delete this.__el_container;delete this.__view;delete this.__models;delete this.__controller},tplPure:function(obj_usageOptions,str_moduleName,bln_registerSingleElementsInElementList){return this.tplUse('pure',obj_usageOptions,str_moduleName,bln_registerSingleElementsInElementList)},tplOutput:function(obj_usageOptions,str_moduleName,bln_registerSingleElementsInElementList){obj_usageOptions.bln_output=!0;return this.tplUse('pure',obj_usageOptions,str_moduleName,bln_registerSingleElementsInElementList)},tplAdd:function(obj_usageOptions,str_moduleName,bln_registerSingleElementsInElementList){return this.tplUse('add',obj_usageOptions,str_moduleName,bln_registerSingleElementsInElementList)},tplReplace:function(obj_usageOptions,str_moduleName,bln_registerSingleElementsInElementList){return this.tplUse('replace',obj_usageOptions,str_moduleName,bln_registerSingleElementsInElementList)},tplUse:function(str_mode,obj_usageOptions,str_moduleName,bln_registerSingleElementsInElementList){var el_renderedTemplate;if(str_moduleName===undefined||str_moduleName===null||!str_moduleName){str_moduleName=this.__name}
58if(obj_usageOptions.arg===undefined||obj_usageOptions.arg===null){obj_usageOptions.arg={}}
59obj_usageOptions.arg.__models=this.__models;obj_usageOptions.arg.__view=this.__view;obj_usageOptions.arg.__controller=this.__controller;obj_usageOptions.bind=obj_usageOptions.bind!==undefined&&obj_usageOptions.bind!==null?obj_usageOptions.bind:this;obj_usageOptions.class=obj_usageOptions.class!==undefined&&obj_usageOptions.class!==null?obj_usageOptions.class:this.__name;obj_usageOptions.autoElementsKey=obj_usageOptions.autoElementsKey!==undefined&&obj_usageOptions.autoElementsKey!==null?obj_usageOptions.autoElementsKey:null;obj_usageOptions.parent=obj_usageOptions.parent!==undefined&&obj_usageOptions.parent!==null?obj_usageOptions.parent:this.__el_container;obj_usageOptions.bln_discardContainerElement=obj_usageOptions.bln_discardContainerElement!==undefined&&obj_usageOptions.bln_discardContainerElement;obj_usageOptions.bln_output=obj_usageOptions.bln_output!==undefined&&obj_usageOptions.bln_output;el_renderedTemplate=lsjs.tpl[str_mode](obj_usageOptions,str_moduleName);if(el_renderedTemplate===null){return el_renderedTemplate}
60this.registerElements(el_renderedTemplate,obj_usageOptions.autoElementsKey!==null?obj_usageOptions.autoElementsKey:obj_usageOptions.name,bln_registerSingleElementsInElementList);this.registerDataBindings(el_renderedTemplate);this.registerMultipleDataBindings(el_renderedTemplate);this.registerEvents(el_renderedTemplate);this.replaceElementPlaceholders(el_renderedTemplate);this.replaceTemplatePlaceholders(el_renderedTemplate);
60if(obj_usageOptions.bln_discardContainerElement){var els_renderedTemplateContent=el_renderedTemplate.getChildren();el_renderedTemplate.getParent().adopt(els_renderedTemplateContent);el_renderedTemplate.destroy();return els_renderedTemplateContent}else{if(obj_usageOptions.bln_output){this.els_renderedTemplates.push(el_renderedTemplate);return'<div data-lsjs-replaceWithElement="this.els_renderedTemplates['+(this.els_renderedTemplates.length-1)+']"></div>'}else{return el_renderedTemplate}}},replaceTemplatePlaceholders:function(el_toSearchForElementsToReplace){Array.each(el_toSearchForElementsToReplace.getElements('[data-lsjs-replaceWithTemplate]'),function(el_toReplace){var el_toReplaceWith,arg;arg={__view:this.__view,__models:this.__models};el_toReplaceWith=this.tplPure({name:el_toReplace.getProperty('data-lsjs-replaceWithTemplate')});if(typeOf(el_toReplaceWith)!=='element'){return}
61el_toReplaceWith.wraps(el_toReplace);el_toReplace.destroy()}.bind(this))},replaceElementPlaceholders:function(el_toSearchForElementsToReplace){Array.each(el_toSearchForElementsToReplace.getElements('[data-lsjs-replaceWithElement]'),function(el_toReplace){var el_toReplaceWith,arg;arg={__view:this.__view,__models:this.__models};eval('el_toReplaceWith = '+el_toReplace.getProperty('data-lsjs-replaceWithElement'));if(typeOf(el_toReplaceWith)!=='element'){return}
62el_toReplaceWith.wraps(el_toReplace);el_toReplace.destroy()}.bind(this))},registerEvents:function(el_toSearchForEvents){Array.each(el_toSearchForEvents.getElements('[data-lsjs-events]'),function(el_toRegisterEventTo){var str_events=el_toRegisterEventTo.getProperty('data-lsjs-events');var arr_events=null;eval('arr_events = '+str_events);if(typeOf(arr_events)!=='array'){return}
63Array.each(arr_events,function(obj_event){var func_toRegisterWithEvent=null;eval('func_toRegisterWithEvent = this.'+obj_event.scope+'.'+obj_event.function+'.bind(this.'+obj_event.scope+')');el_toRegisterEventTo.addEvent(obj_event.event,function(event){var test='hallo';func_toRegisterWithEvent(el_toRegisterEventTo,event)}.bind(this))}.bind(this))}.bind(this))},removeDataBindings:function(el_toSearchForBindings){this.registerMultipleDataBindings(el_toSearchForBindings,!0);this.registerDataBindings(el_toSearchForBindings,!0)},registerMultipleDataBindings:function(el_toSearchForBindings,bln_performDeregistration){bln_performDeregistration=bln_performDeregistration!==undefined&&bln_performDeregistration?!0:!1;Array.each(el_toSearchForBindings.getElements('[data-lsjs-bindTo]'),function(el_toBind){var str_bindTo=el_toBind.getProperty('data-lsjs-bindTo');var arr_bindings=null;eval('arr_bindings = '+str_bindTo);if(typeOf(arr_bindings)!=='array'){return}
64Array.each(arr_bindings,function(obj_binding){var str_bindToModel=obj_binding.model;var str_bindToPath=obj_binding.path!==undefined&&obj_binding.path!==null?obj_binding.path:'';var str_bindToProperty=obj_binding.property!==undefined&&obj_binding.property!==null?obj_binding.property:'';var str_bindToEvent=obj_binding.event!==undefined&&obj_binding.event!==null?obj_binding.event:'change';var str_bindToTranslation=obj_binding.translationModelToView!==undefined&&obj_binding.translationModelToView!==null?obj_binding.translationModelToView:'';if(!str_bindToTranslation){str_bindToTranslation=obj_binding.translation!==undefined&&obj_binding.translation!==null?obj_binding.translation:''}
65var str_bindToTranslationViewToModel=obj_binding.translationViewToModel!==undefined&&obj_binding.translationViewToModel!==null?obj_binding.translationViewToModel:'';var str_bindToCallbackViewToModel=obj_binding.callbackViewToModel!==undefined&&obj_binding.callbackViewToModel!==null?obj_binding.callbackViewToModel:'';var bln_allowInsideEvent=!!(obj_binding.allowInsideEvents??null);if(bln_performDeregistration){this.deregisterSingleDataBinding(el_toBind,str_bindToModel,str_bindToPath,str_bindToProperty,str_bindToEvent,str_bindToTranslation,str_bindToTranslationViewToModel,str_bindToCallbackViewToModel)}else{this.registerSingleDataBinding(el_toBind,str_bindToModel,str_bindToPath,str_bindToProperty,str_bindToEvent,str_bindToTranslation,str_bindToTranslationViewToModel,str_bindToCallbackViewToModel,bln_allowInsideEvent)}}.bind(this))}.bind(this))},registerDataBindings:function(el_toSearchForBindings,bln_performDeregistration){bln_performDeregistration=bln_performDeregistration!==un
65defined&&bln_performDeregistration?!0:!1;Array.each(el_toSearchForBindings.getElements('[data-lsjs-bindToModel]'),function(el_toBind){var str_bindToModel,str_bindToPath,str_bindToProperty,str_bindToEvent,str_bindToTranslation,str_bindToTranslationViewToModel,str_bindToCallbackViewToModel,bln_allowInsideEvent;str_bindToModel=el_toBind.getProperty('data-lsjs-bindToModel');str_bindToPath=el_toBind.getProperty('data-lsjs-bindToPath');str_bindToPath=str_bindToPath?str_bindToPath:'';str_bindToProperty=el_toBind.getProperty('data-lsjs-bindToProperty');str_bindToProperty=str_bindToProperty?str_bindToProperty:'';str_bindToEvent=el_toBind.getProperty('data-lsjs-bindToEvent');str_bindToEvent=str_bindToEvent?str_bindToEvent:'change';str_bindToTranslation=el_toBind.getProperty('data-lsjs-bindToTranslationModelToView');str_bindToTranslation=str_bindToTranslation?str_bindToTranslation:'';if(!str_bindToTranslation){str_bindToTranslation=el_toBind.getProperty('data-lsjs-bindToTranslation');str_bindToTranslation=str_bindToTranslation?str_bindToTranslation:''}
66str_bindToTranslationViewToModel=el_toBind.getProperty('data-lsjs-bindToTranslationViewToModel');str_bindToTranslationViewToModel=str_bindToTranslationViewToModel?str_bindToTranslationViewToModel:'';str_bindToCallbackViewToModel=el_toBind.getProperty('data-lsjs-bindToCallbackViewToModel');str_bindToCallbackViewToModel=str_bindToCallbackViewToModel?str_bindToCallbackViewToModel:'';bln_allowInsideEvent=!!(el_toBind.getProperty('data-lsjs-bindToAllowInsideEvents')??null);if(bln_performDeregistration){this.deregisterSingleDataBinding(el_toBind,str_bindToModel,str_bindToPath,str_bindToProperty,str_bindToEvent,str_bindToTranslation,str_bindToTranslationViewToModel,str_bindToCallbackViewToModel)}else{this.registerSingleDataBinding(el_toBind,str_bindToModel,str_bindToPath,str_bindToProperty,str_bindToEvent,str_bindToTranslation,str_bindToTranslationViewToModel,str_bindToCallbackViewToModel,bln_allowInsideEvent)}}.bind(this))},debugBindings:function(){console.log('DEBUG BINDINGS: this.obj_registeredDataBindings',Object.clone(this.obj_registeredDataBindings))},deregisterSingleDataBinding:function(el_toBind,str_bindToModel,str_bindToPath,str_bindToProperty,str_bindToEvent,str_bindToTranslation,str_bindToTranslationViewToModel,str_bindToCallbackViewToModel){if(this.obj_registeredDataBindings[str_bindToModel]===undefined||this.obj_registeredDataBindings[str_bindToModel]===null){return}
67if(this.obj_registeredDataBindings[str_bindToModel][str_bindToPath]===un
67defined||this.obj_registeredDataBindings[str_bindToModel][str_bindToPath]===null){return}
68this.obj_registeredDataBindings[str_bindToModel][str_bindToPath]=this.obj_registeredDataBindings[str_bindToModel][str_bindToPath].filter(function(obj_binding){var bln_keepBinding=obj_binding.str_bindToProperty!==str_bindToProperty||obj_binding.str_bindToTranslation!==str_bindToTranslation||obj_binding.str_bindToTranslationViewToModel!==str_bindToTranslationViewToModel||obj_binding.str_bindToCallbackViewToModel!==str_bindToCallbackViewToModel||obj_binding.el_bound!==el_toBind;if(!bln_keepBinding){if(obj_binding.func_bound!==null){el_toBind.removeEvent(str_bindToEvent,obj_binding.func_bound)}}
69return bln_keepBinding});if(this.obj_registeredDataBindings[str_bindToModel][str_bindToPath].length===0){delete this.obj_registeredDataBindings[str_bindToModel][str_bindToPath]}},registerSingleDataBinding:function(el_toBind,str_bindToModel,str_bindToPath,str_bindToProperty,str_bindToEvent,str_bindToTranslation,str_bindToTranslationViewToModel,str_bindToCallbackViewToModel,bln_allowInsideEvent){if(this.obj_registeredDataBindings[str_bindToModel]===undefined||this.obj_registeredDataBindings[str_bindToModel]===null){this.obj_registeredDataBindings[str_bindToModel]={}}
70if(this.obj_registeredDataBindings[str_bindToModel][str_bindToPath]===un
70defined||this.obj_registeredDataBindings[str_bindToModel][str_bindToPath]===null){this.obj_registeredDataBindings[str_bindToModel][str_bindToPath]=[]}
71var func_bound=str_bindToProperty==='none'?null:function(eventOrElement){var el_target,var_newValue,var_oldValue=this.__models[str_bindToModel].readData(str_bindToPath);if(eventOrElement===undefined||eventOrElement===null){eventOrElement=el_toBind}
72el_target=typeOf(eventOrElement)==='element'?eventOrElement:eventOrElement.target;if(!bln_allowInsideEvent&&el_target!==el_toBind){return}
73if(str_bindToProperty){var_newValue=el_target.getProperty(str_bindToProperty)}else{if(el_target.match('input[type="checkbox"')){var var_valueChecked,var_valueUnchecked;if(el_target.getProperty('value')===''||el_target.getProperty('value')==='true'){var_valueChecked=!0;var_valueUnchecked=!1}else if(el_target.getProperty('value')==='false'){var_valueChecked=!1;var_valueUnchecked=!0}else{var_valueChecked=el_target.getProperty('value');var_valueUnchecked=''}
74var_newValue=el_target.checked?var_valueChecked:var_valueUnchecked}else if(el_target.match('input')||el_target.match('select')||el_target.match('textarea')){var_newValue=el_target.getProperty('value')}else{var_newValue=el_target.getProperty('html')}}
75if(str_bindToTranslationViewToModel){var_newValue=this.__models[str_bindToModel][str_bindToTranslationViewToModel](var_newValue,el_toBind,var_oldValue,str_bindToPath)}
76this.__models[str_bindToModel].writeData(str_bindToPath,var_newValue);if(str_bindToCallbackViewToModel){this.__models[str_bindToModel][str_bindToCallbackViewToModel](var_newValue,el_toBind,var_oldValue,str_bindToPath)}}.bind(this);this.obj_registeredDataBindings[str_bindToModel][str_bindToPath].push({str_bindToProperty:str_bindToProperty,str_bindToTranslation:str_bindToTranslation,str_bindToTranslationViewToModel:str_bindToTranslationViewToModel,str_bindToCallbackViewToModel:str_bindToCallbackViewToModel,str_bindToEvent:str_bindToEvent,bln_allowInsideEvent:bln_allowInsideEvent,el_bound:el_toBind,func_boun
76d:func_bound});if(func_bound!==null){el_toBind.addEvent(str_bindToEvent,func_bound)}
77this.__models[str_bindToModel].writeData(str_bindToPath,this.__models[str_bindToModel].readData(str_bindToPath),!0,!1)},registerElements:function(el_toSearchForElementsToRegister,str_registerGroup,bln_registerSingleElementsInElementList,str_elementNameOnly,str_subGroupNameOnly,bln_checkForParentSubGroups){str_registerGroup=str_registerGroup!==undefined&&str_registerGroup?str_registerGroup:'defaultElementGroup';bln_registerSingleElementsInElementList=bln_registerSingleElementsInElementList!==undefined&&bln_registerSingleElementsInElementList?!0:!1;str_elementNameOnly=str_elementNameOnly!==undefined&&str_elementNameOnly?str_elementNameOnly:null;str_subGroupNameOnly=str_subGroupNameOnly!==undefined&&str_subGroupNameOnly?str_subGroupNameOnly:null;bln_checkForParentSubGroups=bln_checkForParentSubGroups!==undefined&&bln_checkForParentSubGroups?!0:!1;if(this.__view.__autoElements===undefined||this.__view.__autoElements===null){this.__view.__autoElements={}}
78if(this.__view.__autoElements[str_registerGroup]===undefined||this.__view.__autoElements[str_registerGroup]===null){this.__view.__autoElements[str_registerGroup]={}}
79Array.each(el_toSearchForElementsToRegister.getElements('[data-lsjs-element]'),function(el_toRegister){var str_autoElementSubGroupKey=el_toRegister.getProperty('data-lsjs-autoElementSubGroup');if(bln_checkForParentSubGroups){if(str_autoElementSubGroupKey===null){var el_subGroupParent=el_toRegister.getParent('[data-lsjs-autoElementSubGroup]');if(typeOf(el_subGroupParent)==='element'){str_autoElementSubGroupKey=el_subGroupParent.getProperty('data-lsjs-autoElementSubGroup')}}}
80if(str_subGroupNameOnly!==null&&str_autoElementSubGroupKey!==str_subGroupNameOnly){return}
81var str_autoElementName=el_toRegister.getProperty('data-lsjs-element');if(str_elementNameOnly!==null&&str_autoElementName!==str_elementNameOnly){return}
82if(str_autoElementSubGroupKey!==null&&(this.__view.__autoElements[str_registerGroup][str_autoElementSubGroupKey]===undefined||this.__view.__autoElements[str_registerGroup][str_autoElementSubGroupKey]===null)){this.__view.__autoElements[str_registerGroup][str_autoElementSubGroupKey]={}}
83var obj_autoElementsSubGroupPointer=str_autoElementSubGroupKey===null?this.__view.__autoElements[str_registerGroup]:this.__view.__autoElements[str_registerGroup][str_autoElementSubGroupKey];var bln_isFirstElement=typeOf(obj_autoElementsSubGroupPointer[str_autoElementName])!=='element'&&typeOf(obj_autoElementsSubGroupPointer[str_autoElementName])!=='elements';if(!bln_registerSingleElementsInElementList&&bln_isFirstElement){obj_autoElementsSubGroupPointer[str_autoElementName]=el_toRegister}else{if(typeOf(obj_autoElementsSubGroupPointer[str_autoElementName])!=='elements'){obj_autoElementsSubGroupPointer[str_autoElementName]=bln_registerSingleElementsInElementList&&bln_isFirstElement?new Elements():new Elements([obj_autoElementsSubGroupPointer[str_autoElementName]])}
84obj_autoElementsSubGroupPointer[str_autoElementName].push(el_toRegister)}}.bind(this))},triggerDataBinding:function(str_dataPath,bln_triggerDataViewBindings,bln_triggerDataFunctionBindings){this.writeData(str_dataPath,'___TRIGGER_ONLY___',bln_triggerDataViewBindings,bln_triggerDataFunctionBindings)},writeData:function(str_dataPath,var_value,bln_triggerDataViewBindings,bln_triggerDataFunctionBindings){var obj_originalData;var_value=var_value!==undefined?var_value:undefined;bln_triggerDataViewBindings=bln_triggerDataViewBindings===undefined||bln_triggerDataViewBindings?!0:!1;bln_triggerDataFunctionBindings=bln_triggerDataFunctionBindings===undefined||bln_triggerDataFunctionBindings?!0:!1;if(str_dataPath===undefined||!str_dataPath){str_dataPath=''}
85if(var_value==='___TRIGGER_ONLY___'){var_value=this.readData(str_dataPath)}
86if(bln_triggerDataFunctionBindings&&this.obj_dataFunctionBindings!==undefined&&this.obj_dataFunctionBindings!==null){obj_originalData=Object.clone(this.data)}
87if(var_value==='___DELETE___'){eval('delete this.data'+(str_dataPath?'.'+str_dataPath:''))}else{eval('this.data'+(str_dataPath?'.'+str_dataPath:'')+' = var_value')}
88if(bln_triggerDataViewBindings){this.handleDataBinding(str_dataPath)}
89if(bln_triggerDataFunctionBindings){this.handleDataFunctionBinding(str_dataPath,obj_originalData)}},handleDataFunctionBinding:function(str_dataPath,obj_originalData){var arr_matchingDataPaths;if(this.obj_dataFunctionBindings===undefined||this.obj_dataFunctionBindings===null){return}
90arr_matchingDataPaths=this.lookForMatchingDataBindings(str_dataPath,this.obj_dataFunctionBindings,!0);Array.each(arr_matchingDataPaths,function(str_registeredDataPath){this[this.obj_dataFunctionBindings[str_registeredDataPath]](this.readData(str_registeredDataPath),str_registeredDataPath,this.readData(str_registeredDataPath,obj_originalData),str_dataPath)}.bind(this))},handleDataBinding:function(str_dataPath){var arr_matchingDataPaths;arr_matchingDataPaths=this.lookForMatchingDataBindings(str_dataPath,this.__module.obj_registeredDataBindings[this.name]);Array.each(arr_matchingDataPaths,function(str_registeredDataPath){
90if(this.__module.obj_registeredDataBindings[this.name][str_registeredDataPath]===undefined||typeOf(this.__module.obj_registeredDataBindings[this.name][str_registeredDataPath])!=='array'){return}
91Array.each(this.__module.obj_registeredDataBindings[this.name][str_registeredDataPath],function(obj_binding){var var_valueToSet=this.readData(str_registeredDataPath);if(obj_binding.str_bindToTranslation){var_valueToSet=this[obj_binding.str_bindToTranslation](var_valueToSet,obj_binding.el_bound);if(typeof var_valueToSet==='undefined'){return}}
92if(obj_binding.str_bindToProperty){if(obj_binding.str_bindToProperty!=='none'){obj_binding.el_bound.setProperty(obj_binding.str_bindToProperty,var_valueToSet)}}else if(obj_binding.el_bound.match('select')||obj_binding.el_bound.match('textarea')||(obj_binding.el_bound.match('input')&&obj_binding.el_bound.getProperty('type')==='text')){obj_binding.el_bound.setProperty('value',var_valueToSet)}else if((obj_binding.el_bound.match('input')&&obj_binding.el_bound.getProperty('type')==='checkbox')){if(typeOf(var_valueToSet)==='boolean'){obj_binding.el_bound.setProperty('checked',obj_binding.el_bound.getProperty('value')==='false'?!var_valueToSet:var_valueToSet)}else{if(obj_binding.el_bound.getProperty('value')==var_valueToSet){obj_binding.el_bound.setProperty('checked',!0)}else{obj_binding.el_bound.setProperty('checked',!1)}}}else if((obj_binding.el_bound.match('input')&&obj_binding.el_bound.getProperty('type')==='radio')){if(obj_binding.el_bound.getProperty('value')==var_valueToSet){obj_binding.el_bound.setProperty('checked',!0)}else{obj_binding.el_bound.setProperty('checked',!1)}}else{if(typeOf(var_valueToSet)==='element'){obj_binding.el_bound.empty();obj_binding.el_bound.adopt(var_valueToSet)}else{obj_binding.el_bound.setProperty('html',var_valueToSet)}}}.bind(this))}.bind(this))},lookForMatchingDataBindings:function(str_dataPath,obj_registeredDataBindings,bln_checkForFunctionBinding){var arr_matchingDataPaths=[];bln_checkForFunctionBinding=bln_checkForFunctionBinding!==undefined&&bln_checkForFunctionBinding!==null&&bln_checkForFunctionBinding?!0:!1;if(str_dataPath===undefined||str_dataPath===null){console.error('str_dataPath missing')}
93if(obj_registeredDataBindings===undefined||obj_registeredDataBindings===null){return arr_matchingDataPaths}
94obj_registeredDataBindings=new Hash(obj_registeredDataBindings);if(!str_dataPath){arr_matchingDataPaths=Object.keys(obj_registeredDataBindings);return arr_matchingDataPaths}
95Array.each(Object.keys(obj_registeredDataBindings),function(str_registeredDataPath){if(str_registeredDataPath===str_dataPath||str_registeredDataPath.lastIndexOf(str_dataPath+'.',0)===0||str_registeredDataPath.lastIndexOf(str_dataPath+'[',0)===0||(bln_checkForFunctionBinding&&str_dataPath.lastIndexOf(str_registeredDataPath+'.',0)===0)||(bln_checkForFunctionBinding&&str_dataPath.lastIndexOf(str_registeredDataPath+'[',0)===0)){arr_matchingDataPaths.push(str_registeredDataPath)}});return arr_matchingDataPaths},readData:function(str_dataPath,obj_dataToUseInstead){var var_value;obj_dataToUseInstead=obj_dataToUseInstead!==undefined&&obj_dataToUseInstead!==null?obj_dataToUseInstead:null;if(str_dataPath===undefined||!str_dataPath){str_dataPath=''}
96eval('var_value = '+(obj_dataToUseInstead!==null?'obj_dataToUseInstead':'this.data')+(str_dataPath?'.'+str_dataPath:''));return var_value}};var class_lsjs_module=new Class(classdef_lsjs_module);Cookie.write=function(key,value,options={}){if(options.encode!==!1)value=encodeURIComponent(value);let cookieString=`${key}=${value}`;if(options.domain)cookieString+=`; domain=${options.domain}`;if(options.path)cookieString+=`; path=${options.path}`;if(options.duration){let date=new Date();date.setTime(date.getTime()+options.duration*24*60*60*1000);cookieString+=`; expires=${date.toUTCString()}`}
97if(options.secure)cookieString+=`; Secure`;if(options.httpOnly)cookieString+=`; HttpOnly`;if(options.sameSite)cookieString+='; SameSite='+options.sameSite;document.cookie=cookieString};if(window.lsjs===undefined||window.lsjs===null){window.lsjs=new class_lsjs();window.addEvent('domready',function(){$$('body')[0].addClass('lsjs-active')})}else{console.error('lsjs core already loaded!')}})();(function(){var classdef_lsjs_templateHandler={obj_templateFunctions:{},initialize:function(){},use:function(obj_usageOptions,str_moduleName){var obj_usageOptionsDefaults,func_templateBoundWithArguments,el_renderedTemplate;if(str_moduleName===undefined||str_moduleName===null||!str_moduleName){str_moduleName='universal'}
98obj_usageOptionsDefaults={'name':'','arg':null,'parent':null,'mode':'add','bind':null,'class':null,'id':null};Object.each(obj_usageOptionsDefaults,function(value,key){if(obj_usageOptions[key]===undefined||obj_usageOptions[key]===null){obj_usageOptions[key]=value}});obj_usageOptions.mode=obj_usageOptions.mode==='replace'||obj_usageOptions.mode==='pure'?obj_usageOptions.mode:'add';if(this.obj_templateFunctions[str_moduleName]===undefined||this.obj_templateFunctions[str_moduleName]===null){console.error('module "'+str_moduleName+'" is not registered');return null}
99if(obj_usageOptions.name===undefined||!obj_usageOptions.name){console.error('no template name given.');return null}
100if(this.obj_templateFunctions[str_moduleName][obj_usageOptions.name]===undefined||this.obj_templateFunctions[str_moduleName][obj_usageOptions.name]===null){console.info('template "'+obj_usageOptions.name+'" is not registered');return null}
101func_templateBoundWithArguments=this.obj_templateFunctions[str_moduleName][obj_usageOptions.name].pass(obj_usageOptions.arg,(obj_usageOptions.bind!==undefined&&obj_usageOptions.bind!==null?obj_usageOptions.bind:window));el_renderedTemplate=new Element('div').setProperty('html',func_templateBoundWithArguments());if(obj_usageOptions.id!==undefined&&obj_usageOptions.id!==null){el_renderedTemplate.setProperty('id',obj_usageOptions.id)}
102el_renderedTemplate.addClass(obj_usageOptions.name);if(obj_usageOptions.class!==undefined&&obj_usageOptions.class!==null){el_renderedTemplate.addClass(obj_usageOptions.class)}
103if(typeOf(obj_usageOptions.parent)!=='element'){return el_renderedTemplate}
104if(obj_usageOptions.mode==='pure'){return el_renderedTemplate}
105if(obj_usageOptions.mode==='replace'){obj_usageOptions.parent.getChildren().destroy();obj_usageOptions.parent.empty()}
106obj_usageOptions.parent.adopt(el_renderedTemplate);return el_renderedTemplate},pure:function(obj_usageOptions,str_moduleName){obj_usageOptions.mode='pure';return this.use(obj_usageOptions,str_moduleName)},add:function(obj_usageOptions,str_moduleName){obj_usageOptions.mode='add';return this.use(obj_usageOptions,str_moduleName)},replace:function(obj_usageOptions,str_moduleName){obj_usageOptions.mode='replace';return this.use(obj_usageOptions,str_moduleName)},register:function(obj_templateFunctions,str_moduleName){if(str_moduleName===undefined||str_moduleName===null||!str_moduleName){str_moduleName='universal'}
107Object.each(obj_templateFunctions,function(func_template,str_templateFunctionName){this.registerSingleTemplate(str_templateFunctionName,func_template,str_moduleName)}.bind(this))},registerSingleTemplate:function(str_templateFunctionName,func_template,str_moduleName){if(this.obj_templateFunctions[str_moduleName]===undefined||this.obj_templateFunctions[str_moduleName]===null){this.obj_templateFunctions[str_moduleName]={}}
108if(this.obj_templateFunctions[str_moduleName][str_templateFunctionName]!==undefined&&typeOf(this.obj_templateFunctions[str_moduleName][str_templateFunctionName])==='function'){console.error('double assignment to template name "'+str_templateFunctionName+'". Is it possible that you included the same template file more than once?');return}
109if(typeOf(func_template)!=='function'){console.error('no template function given for template name "'+str_templateFunctionName+'"');return}
110this.obj_templateFunctions[str_moduleName][str_templateFunctionName]=func_template}};var class_lsjs_templateHandler=new Class(classdef_lsjs_templateHandler);lsjs.tpl=new class_lsjs_templateHandler()})();(function(){var obj_templates={'main':function(arg){var str_return='<div class="selectAll">\
111	<input id="'+arg.str_selectAllCheckboxId+'" type="checkbox">\
112	<label for="'+arg.str_selectAllCheckboxId+'">'+arg.__models.lang.data.selectAllLabel+'</label>\
113</div>';var str_return='<!-- BEGIN LSJS TEMPLATE: main.html (path removed for security reasons) -->'+str_return+'<!-- END LSJS TEMPLATE: main.html (path removed for security reasons) -->';return str_return}};lsjs.tpl.register(obj_templates,'automaticSelectAllCheckbox')})();(function(){var obj_classdef_model={name:'lang',data:{selectAllLabel:'Alle au
113sw&auml;hlen'},start:function(){this.__module.onModelLoaded()}};lsjs.addModelClass('automaticSelectAllCheckbox',obj_classdef_model)})();(function(){var obj_classdef_model={name:'options',data:{},start:function(){this.data={str_selector:'.useAutomaticSelectAllCheckbox',str_appliedClass:'automaticSelectAllCheckboxApplied'}},set:function(obj_options){Object.merge(this.data,obj_options);this.__module.onModelLoaded()}};lsjs.addModelClass('automaticSelectAllCheckbox',obj_classdef_model)})();(function(){var str_moduleName='automaticSelectAllCheckbox';var obj_classdef={start:function(){this.addSelectAllCheckboxes()},addSelectAllCheckboxes:function(){var self=this,els_checkboxGroup,int_checkboxGroupCounter=0;els_checkboxGroup=$$(this.__models.options.data.str_selector);Array.each(els_checkboxGroup,function(el_checkboxGroup){if(el_checkboxGroup.hasClass(this.__models.options.data.str_appliedClass)){return}
114var el_selectAll=this.tplPure({name:'main',parent:el_checkboxGroup,arg:{str_selectAllCheckboxId:'selectAllCheckbox_'+int_checkboxGroupCounter}});el_checkboxGroup.addClass(this.__models.options.data.str_appliedClass);el_selectAll.inject(el_checkboxGroup,'top');el_selectAll.getElement('input').addEvent('change',function(){Array.each(this.getParent(self.__models.options.data.str_selector).getElements('input[type="checkbox"]'),function(el_checkbox){el_checkbox.setProperty('checked',this.getProperty('checked'))}.bind(this))});int_checkboxGroupCounter++}.bind(this))}};lsjs.addViewClass(str_moduleName,obj_classdef)})();(function(){var str_moduleName='automaticSelectAllCheckbox';var obj_classdef={start:function(){}};lsjs.addControllerClass(str_moduleName,obj_classdef);lsjs.__moduleHelpers[str_moduleName]={self:null,start:function(obj_options){if(this.self!==null){console.error('module '+str_moduleName+' has already been started');return}
115this.self=lsjs.createModule({__name:str_moduleName});this.self.__models.options.set(obj_options)},refresh:function(){this.self.__view.addSelectAllCheckboxes()}}})();(function(){var obj_classdef_model={name:'options',data:{str_cajaxMode:'updateCompletely',obj_cajaxRequestData:{}},start:function(){this.__module.onModelLoaded()},set:function(obj_options){Object.merge(this.data,obj_options)}};lsjs.addModelClass('cajaxCallerInstance',obj_classdef_model)})();(function(){var str_moduleName='cajaxCallerInstance';var obj_classdef={start:function(){var str_options,obj_options={},str_eventType;switch(this.__el_container.get('tag')){case 'a':str_eventType='click';break;case 'form':str_eventType='submit';break;default:var el_alternativeInside=null;el_alternativeInside=this.__el_container.getElement('form:not(.skipCajaxCaller)');if(el_alternativeInside===null){el_alternativeInside=this.__el_container.getElement('a:not(.skipCajaxCaller)')}
116if(el_alternativeInside===null){return}
117el_alternativeInside.setProperty('data-lsjs-cajaxCallerOptions',this.__el_container.getProperty('data-lsjs-cajaxCallerOptions'));this.__el_container=el_alternativeInside;this.start();return;break}
118str_options=this.__el_container.getProperty('data-lsjs-cajaxCallerOptions');if(str_options){obj_options=JSON.decode(str_options)}
119this.__models.options.set(obj_options);this.registerElements(this.__el_container,'main',!1);this.bound_makeCajaxRequest=this.makeCajaxRequest.bind(this);this.__el_container.addEvent(str_eventType,this.bound_makeCajaxRequest)},bound_makeCajaxRequest:null,makeCajaxRequest:function(event){event.preventDefault();switch(this.__el_container.get('tag')){case 'a':lsjs.loadingIndicator.__controller.show();new Request.cajax({url:this.__el_container.getProperty('href'),method:'get',noCache:!0,bln_doNotModifyUrl:this.__models.options.data.bln_doNotModifyUrl!==undefined&&this.__models.options.data.bln_doNotModifyUrl,cajaxMode:this.__models.options.data.str_cajaxMode,data:'cajaxRequestData='+JSON.encode(this.__models.options.data.obj_cajaxRequestData),onComplete:function(){lsjs.loadingIndicator.__controller.hide()},onSuccess:function(els,str_html,str_script){Browser.exec(str_script)}}).send();break;case 'form':lsjs.loadingIndicator.__controller.show();if(this.__el_container.getProperty('method')==='get'||this.__el_container.getProperty('method')==='GET'){console.warn('Forms using the "get" method are not yet supported by cajaxCaller. Form data will be sent as post data.')}
120new Request.cajax({url:this.__el_container.getProperty('action')?this.__el_container.getProperty('action'):document.location,method:'post',noCache:!0,bln_doNotModifyUrl:this.__models.options.data.bln_doNotModifyUrl!==undefined&&this.__models.options.data.bln_doNotModifyUrl,cajaxMode:this.__models.options.data.str_cajaxMode,el_formToUseForFormData:this.__el_container,obj_additionalFormData:{cajaxRequestData:JSON.encode(this.__models.options.data.obj_cajaxRequestData)},onComplete:function(){lsjs.loadingIndicator.__controller.hide()},onSuccess:function(els,str_html,str_script){Browser.exec(str_script)}}).send();break;default:return;break}}};lsjs.addViewClass(str_moduleName,obj_classdef)})();(function(){var str_moduleName='cajaxCallerInstance';var obj_classdef={start:function(){}};lsjs.addControllerClass(str_moduleName,obj_classdef)})();(function(){var obj_classdef_model={name:'options',data:{},start:function(){this.data={el_domReference:null,str_selector:'[data-lsjs-component~="cajaxCaller"]',str_classToSetWhenModuleApplied:'cajaxCallerApplied'}}
120,set:function(obj_options){Object.merge(this.data,obj_options);this.__module.onModelLoaded()}};lsjs.addModelClass('cajaxCallerManager',obj_classdef_model)})();(function(){var str_moduleName='cajaxCallerManager';var obj_classdef={start:function(){var els_toEnhance;if(this.__models.options.data.el_domReference!==undefined&&typeOf(this.__models.options.data.el_domReference)==='element'){els_toEnhance=this.__models.options.data.el_domReference.getElements(this.__models.options.data.str_selector)}else{els_toEnhance=$$(this.__models.options.data.str_selectors)}
121Array.each(els_toEnhance,function(el_container){if(!el_container.retrieve('alreadyHandledBy_'+str_moduleName)){el_container.store('alreadyHandledBy_'+str_moduleName,!0)}else{return}
122el_container.addClass(this.__models.options.data.str_classToSetWhenModuleApplied);lsjs.createModule({__name:'cajaxCallerInstance',__parentModule:this.__module,__useLoadingIndicator:!1,__el_container:el_container})}.bind(this))}};lsjs.addControllerClass(str_moduleName,obj_classdef);lsjs.__moduleHelpers[str_moduleName]={self:null,start:function(obj_options){this.self=lsjs.createModule({__name:str_moduleName});this.self.__models.options.set(obj_options)}}})();(function(){var obj_classdef_model={name:'options',data:{},start:function(){this.__module.onModelLoaded()},set:function(obj_options){Object.merge(this.data,obj_options)}};lsjs.addModelClass('elementFolderInstance',obj_classdef_model)})();(function(){var str_moduleName='elementFolderInstance';var obj_classdef={str_containerID:null,start:function(){var str_options,obj_options,obj_unfoldOptions,el_elementFolderToggler,el_elementFolderContent;this.registerElements(this.__el_container,'main',!0);str_options=this.__el_container.getProperty('data-lsjs-elementFolderOptions');if(str_options){obj_options=JSON.decode(str_options)}
123this.__models.options.set(obj_options);this.str_containerID=this.__el_container.getProperty('id');el_elementFolderToggler=this.__autoElements.main.elementFolderToggler[0];el_elementFolderContent=this.__autoElements.main.elementFolderContent[0];obj_unfoldOptions=Object.merge({str_initialToggleStatus:'open',bln_toggleOnInitialization:!1,bln_skipAnimationWhenTogglingOnInitialization:!1,var_togglerSelector:el_elementFolderToggler,var_contentBoxSelector:el_elementFolderContent,var_wrapperSelector:this.__el_container,str_cookieIdentifierName:this.str_containerID?this.str_containerID:'',str_initialCookieStatus:'open',obj_morphOptions:{'duration':600}},this.__models.options.data);lsjs.__moduleHelpers.unfold.start(obj_unfoldOptions)}};lsjs.addViewClass(str_moduleName,obj_classdef)})();(function(){var str_moduleName='elementFolderInstance';var obj_classdef={start:function(){}};lsjs.addControllerClass(str_moduleName,obj_classdef)})();(function(){var obj_classdef_model={name:'options',data:{},start:function(){this.data={el_domReference:null,str_selector:'[data-lsjs-component~="elementFolder"]',str_classToSetWhenModuleApplied:'elementFolderApplied'}},set:function(obj_options){Object.merge(this.data,obj_options);this.__module.onModelLoaded()}};lsjs.addModelClass('elementFolderManager',obj_classdef_model)})();(function(){var str_moduleName='elementFolderManager';var obj_classdef={start:function(){var els_toEnhance;if(this.__models.options.data.el_domReference!==undefined&&typeOf(this.__models.options.data.el_domReference)==='element'){els_toEnhance=this.__models.options.data.el_domReference.getElements(this.__models.options.data.str_selector)}else{els_toEnhance=$$(this.__models.options.data.str_selectors)}
124Array.each(els_toEnhance,function(el_container){if(!el_container.retrieve('alreadyHandledBy_'+str_moduleName)){el_container.store('alreadyHandledBy_'+str_moduleName,!0)}else{return}
125el_container.addClass(this.__models.options.data.str_classToSetWhenModuleApplied);lsjs.createModule({__name:'elementFolderInstance',__parentModule:this.__module,__useLoadingIndicator:!1,__el_container:el_container})}.bind(this))}};lsjs.addControllerClass(str_moduleName,obj_classdef);lsjs.__moduleHelpers[str_moduleName]={self:null,start:function(obj_options){this.self=lsjs.createModule({__name:str_moduleName});this.self.__models.options.set(obj_options)}}})();(function(){var str_moduleName='formRedirect';var obj_classdef={start:function(){lsjs[str_moduleName]=this.__module},send:function(obj_valuesToSend,str_targetUrl,str_method){var el_form,els_inputs;obj_valuesToSend=obj_valuesToSend!==undefined?obj_valuesToSend:{};str_targetUrl=str_targetUrl!==undefined?str_targetUrl:'';str_method=str_method!==undefined?str_method:'post';console.log('post redirect sending...');el_form=new Element('form').setProperties({'method':str_method,'action':str_targetUrl}).setStyles({'position':'absolute','top':'-5000px','left':'-5000px'});els_inputs=new Elements();Object.each(obj_valuesToSend,function(str_fieldValue,str_fieldName){els_inputs.push(new Element('input').setProperties({'type':'hidden','name':str_fieldName,'value':str_fieldValue}))});$$('body')[0].adopt(el_form.adopt(els_inputs));el_form.submit()}};lsjs.addControllerClass(str_moduleName,obj_classdef);lsjs.createModule({__name:str_moduleName})})();(function(){var obj_templates={'editToggler':function(arg){var str_return='<div class="lsfwk-pointer lsfwk-txs-xl-all lsfwk-aptr-0" data-lsjs-element="openFormToggler"><i class="lsfwk-fi lsfwk-fi-edit"></i></div>';var str_return='<!-- BEGIN LSJS TEMPLATE: editToggler.html (path removed for security reasons) -->'+str_return+'<!-- END LSJS TEMPLATE: editToggler.html (path removed for security reasons) -->';return str_return}};lsjs.tpl.register(obj_templates,'formReviewerInstance')})();(function(){var obj_classdef_model={name:'options',data:{},start:function(){this.__module.onModelLoaded()},set:function(obj_options){Object.merge(this.data,obj_options)}};lsjs.addModelClass('formReviewerInstance',obj_classdef_model)})();(function(){var str_moduleName='formReviewerInstance';var obj_classdef={els_allFormFields:null,start:function(){this.getAllFormFields();if(this.els_allFormFields.length>0){this.initializeOpenCloseFunctionality()}},getAllFormFields:function(){this.els_allFormFields=new Elements();Array.prototype.push.apply(this.els_allFormFields,this.__el_container.getElements('input'));Array.prototype.push.apply(this.els_allFormFields,this.__el_container.getElements('select'));Array.prototype.push.apply(this.els_allFormFields,this.__el_container.getElements('textarea'))},initializeOpenCloseFunctionality:function(){var el_renderedTogglerTemplate=this.tplPure({name:'editToggler',arg:{str_togglerLabelText:this.__el_container.getProperty('data-misc-form-reviewer-toggler-label')}});el_renderedTogglerTemplate.inject(this.__el_container,'top');if(this.__el_container.getProperty('data-misc-close-form-initially')=='1'&&this.__el_container.getElement('.error')===null){this.closeForm()}
126this.__autoElements.editToggler.openFormToggler.addEvent('click',this.openForm.bind(this))},closeForm:function(){this.els_allFormFields.setProperty('disabled',!0);this.__el_container.addClass('formClosed')},openForm:function(){this.els_allFormFields.setProperty('disabled',!1);this.__el_container.removeClass('formClosed')}};lsjs.addViewClass(str_moduleName,obj_classdef)})();(function(){var str_moduleName='formReviewerInstance';var obj_classdef={start:function(){}};lsjs.addControllerClass(str_moduleName,obj_classdef)})();(function(){var obj_classdef_model={name:'options',data:{},start:function(){this.data={el_domReference:null,str_selector:'[data-lsjs-component~="formReviewer"]',str_classToSetWhenModuleApplied:'formReviewerApplied'}}
126,set:function(obj_options){Object.merge(this.data,obj_options);this.__module.onModelLoaded()}};lsjs.addModelClass('formReviewerManager',obj_classdef_model)})();(function(){var str_moduleName='formReviewerManager';var obj_classdef={start:function(){var els_toEnhance;if(this.__models.options.data.el_domReference!==undefined&&typeOf(this.__models.options.data.el_domReference)==='element'){els_toEnhance=this.__models.options.data.el_domReference.getElements(this.__models.options.data.str_selector)}else{els_toEnhance=$$(this.__models.options.data.str_selectors)}
127Array.each(els_toEnhance,function(el_container){if(!el_container.retrieve('alreadyHandledBy_'+str_moduleName)){el_container.store('alreadyHandledBy_'+str_moduleName,!0)}else{return}
128el_container.addClass(this.__models.options.data.str_classToSetWhenModuleApplied);lsjs.createModule({__name:'formReviewerInstance',__parentModule:this.__module,__useLoadingIndicator:!1,__el_container:el_container})}.bind(this))}};lsjs.addControllerClass(str_moduleName,obj_classdef);lsjs.__moduleHelpers[str_moduleName]={self:null,start:function(obj_options){this.self=lsjs.createModule({__name:str_moduleName});this.self.__models.options.set(obj_options)}}})();(function(){var str_moduleName='imageZoomerInstance';var obj_classdef={el_body:null,el_container:null,el_overlay:null,el_bigImage:null,el_bigImageContainer:null,el_btnClose:null,el_btnZoomIn:null,el_btnZoomOut:null,el_btnNext:null,el_btnBack:null,bln_isTouchDevice:!1,bln_currentlyReinitializing:!1,int_numReinitializations:0,int_shortReinitializingTimeout:200,int_longReinitializingTimeout:1000,str_originalViewportSettings:'',str_zoomImageUrl:'',obj_referringZoomerToEnd:null,float_currentZoomFactor:1,float_minZoomFactor:null,float_maxZoomFactor:null,float_zoomFactorStep:null,obj_bigImageNaturalSize:{width:0,height:0},obj_imageScaledSize:{width:0,height:0},obj_overlaySize:{width:0,height:0},obj_stageBoundaries:{left:0,right:0,top:0,bottom:0},obj_proportionalityFactor:{x:1,y:1},obj_positionOffset:{x:0,y:0},obj_positionOffsetDragged:{x:0,y:0},obj_dragData:{firstPointerPosition:{x:null,y:null},dragStartPosition:{x:null,y:null},dragOffsetPosition:{x:0,y:0}},start:function(){this.bound_reinitializeZoomImage=this.reinitializeZoomImage.bind(this);this.float_minZoomFactor=this.__module.__parentModule.__models.options.data.float_minZoomFactor;this.float_maxZoomFactor=this.__module.__parentModule.__models.options.data.float_maxZoomFactor;this.float_zoomFactorStep=this.__module.__parentModule.__models.options.data.float_zoomFactorStep;this.check_isTouchDevice();this.determineGivenElements();this.determineZoomImage();this.initializeZoomStartEvent()},determineGivenElements:function(){this.el_body=$$('body')[0];this.el_container=this.__el_container;this.el_container.addClass('lsjs-image-zoomer-applied');if(this.el_container.hasAttribute('data-lightbox')){this.el_container.removeAttribute('data-lightbox')}},determineZoomImage:function(){if(this.el_container.hasAttribute('rel')){this.str_zoomImageUrl=this.el_container.getProperty('rel')}else if(this.el_container.hasAttribute('href')){this.str_zoomImageUrl=this.el_container.getProperty('href')}else{if(this.__module.__parentModule.__models.options.data.bln_showConsoleWarnings){console.warn('LSJS IMAGE ZOOMER: Element has neither a rel nor a href attribute to read the zoom image url from.');console.warn(this.el_container)}}},initializeZoomStartEvent:function(){this.el_container.addEvent('click',this.zoomStart.bind(this))},zoomStart:function(event,obj_referringZoomerToEnd){if(typeof obj_referringZoomerToEnd!=='undefined'){this.obj_referringZoomerToEnd=obj_referringZoomerToEnd}
129event.preventDefault();this.insertOverlay()},zoomEnd:function(event,bln_doNotReactivateBodyScrolling){this.removeOverlay(bln_doNotReactivateBodyScrolling)},next:function(event){if(this.__module.obj_nextZoomer!==null){this.__module.obj_nextZoomer.__view.zoomStart(event,this)}},back:function(event){if(this.__module.obj_previousZoomer!==null){this.__module.obj_previousZoomer.__view.zoomStart(event,this)}},zoomIn:function(){this.deactivateImageTransitionAnimation();this.float_currentZoomFactor=this.float_currentZoomFactor+this.float_zoomFactorStep;this.limitZoomFactor();this.calculateImageScaledSize();this.determineBoundaries();this.determineNecessaryOffset();this.setZoomFactorAndPositionOffset();this.checkImageBoundaries()},zoomOut:function(){this.deactivateImageTransitionAnimation();this.float_currentZoomFactor=this.float_currentZoomFactor-this.float_zoomFactorStep;this.limitZoomFactor();this.calculateImageScaledSize();this.determineBoundaries();this.determineNecessaryOffset();this.setZoomFactorAndPositionOffset();this.checkImageBoundaries()},limitZoomFactor:function(){if(this.float_currentZoomFactor>this.float_maxZoomFactor){this.float_currentZoomFactor=this.float_maxZoomFactor}
129else if(this.float_currentZoomFactor<this.float_minZoomFactor){this.float_currentZoomFactor=this.float_minZoomFactor}
130if(this.float_currentZoomFactor>=this.float_maxZoomFactor){this.el_btnZoomIn.removeClass('possible')}else{this.el_btnZoomIn.addClass('possible')}
131if(this.float_currentZoomFactor<=this.float_minZoomFactor){this.el_btnZoomOut.removeClass('possible')}else{this.el_btnZoomOut.addClass('possible')}},insertOverlay:function(){lsjs.loadingIndicatorNG.show();this.el_overlay=new Element('div.lsjs-zoomer-overlay').addClass('hiddenDuringLoading');this.el_bigImage=new Element('img.big-image').setProperty('src',this.str_zoomImageUrl).addClass('hiddenDuringLoading').addEvent('load',this.initializeZoomImageAfterLoad.bind(this));this.el_bigImageContainer=new Element('div.big-image-container');this.el_btnClose=new Element('div.btn-close');this.el_btnClose.addEvent('click',this.zoomEnd.bind(this));this.el_btnZoomIn=new Element('div.btn-zoom-in');this.el_btnZoomIn.addEvent('click',this.zoomIn.bind(this));this.el_btnZoomOut=new Element('div.btn-zoom-out');this.el_btnZoomOut.addEvent('click',this.zoomOut.bind(this));this.el_btnNext=new Element('div.btn-next');this.el_btnNext.addEvent('click',this.next.bind(this));if(this.__module.obj_nextZoomer!==null){this.el_btnNext.addClass('possible')}
132this.el_btnBack=new Element('div.btn-back');this.el_btnBack.addEvent('click',this.back.bind(this));if(this.__module.obj_previousZoomer!==null){this.el_btnBack.addClass('possible')}
133this.el_body.adopt(this.el_overlay.adopt(this.el_bigImageContainer.adopt(this.el_bigImage),this.el_btnClose,this.el_btnZoomIn,this.el_btnZoomOut,this.el_btnNext,this.el_btnBack));this.el_body.addClass('lsjs-image-zoomer-open');this.dragInitialize()},initializeZoomImageAfterLoad:function(){this.obj_bigImageNaturalSize.width=this.el_bigImage.naturalWidth;this.obj_bigImageNaturalSize.height=this.el_bigImage.naturalHeight;this.obj_overlaySize.width=this.el_overlay.offsetWidth;this.obj_overlaySize.height=this.el_overlay.offsetHeight;this.obj_proportionalityFactor.x=this.obj_overlaySize.width/this.obj_bigImageNaturalSize.width;this.obj_proportionalityFactor.y=this.obj_overlaySize.height/this.obj_bigImageNaturalSize.height;this.float_currentZoomFactor=this.obj_proportionalityFactor.x<this.obj_proportionalityFactor.y?this.obj_proportionalityFactor.x:this.obj_proportionalityFactor.y;if(this.__module.__parentModule.__models.options.data.float_minZoomFactor===null){this.float_minZoomFactor=this.float_currentZoomFactor<1?this.float_currentZoomFactor:1}
134this.limitZoomFactor();this.calculateImageScaledSize();this.determineBoundaries();this.determineNecessaryOffset();this.setZoomFactorAndPositionOffset();this.checkImageBoundaries();lsjs.loadingIndicatorNG.hide();this.el_overlay.removeClass('hiddenDuringLoading');this.el_bigImage.removeClass('hiddenDuringLoading');if(this.obj_referringZoomerToEnd!==null){this.obj_referringZoomerToEnd.zoomEnd(null,!0);this.obj_referringZoomerToEnd=null}
135this.bln_currentlyReinitializing=!1;this.float_windowWidth=window.innerWidth;window.addEvent('resize',this.bound_reinitializeZoomImage)},reinitializeZoomImage:function(){if(this.bln_currentlyReinitializing){return}
136if(this.float_windowWidth===window.innerWidth){return}
137this.int_numReinitializations++;this.bln_currentlyReinitializing=!0;window.setTimeout(this.initializeZoomImageAfterLoad.bind(this),this.int_numReinitializations<5?this.int_shortReinitializingTimeout:this.int_longReinitializingTimeout)},bound_reinitializeZoomImage:null,setZoomFactorAndPositionOffset:function(){this.obj_positionOffsetDragged.x=this.obj_positionOffset.x+(this.obj_dragData.dragOffsetPosition.x/this.float_currentZoomFactor);this.obj_positionOffsetDragged.y=this.obj_positionOffset.y+(this.obj_dragData.dragOffsetPosition.y/this.float_currentZoomFactor);this.el_bigImage.setStyle('transform','scale('+this.float_currentZoomFactor+') translate3d('+this.obj_positionOffsetDragged.x+'px, '+this.obj_positionOffsetDragged.y+'px, 0)')},calculateImageScaledSize:function(){this.obj_imageScaledSize.width=this.obj_bigImageNaturalSize.width*this.float_currentZoomFactor;this.obj_imageScaledSize.height=this.obj_bigImageNaturalSize.height*this.float_currentZoomFactor},determineNecessaryOffset:function(){this.obj_positionOffset.x=(((this.obj_bigImageNaturalSize.width-this.obj_imageScaledSize.width)/2)-((this.obj_overlaySize.width-this.obj_imageScaledSize.width)/2))*-1/this.float_currentZoomFactor;
137this.obj_positionOffset.y=(((this.obj_bigImageNaturalSize.height-this.obj_imageScaledSize.height)/2)-((this.obj_overlaySize.height-this.obj_imageScaledSize.height)/2))*-1/this.float_currentZoomFactor},removeOverlay:function(bln_doNotReactivateBodyScrolling){window.removeEvent('resize',this.bound_reinitializeZoomImage);if(typeof bln_doNotReactivateBodyScrolling==='undefined'||!bln_doNotReactivateBodyScrolling){this.el_body.removeClass('lsjs-image-zoomer-open')}
138this.el_overlay.destroy();this.el_overlay=null},check_isTouchDevice:function(){this.bln_isTouchDevice=('ontouchstart' in document.documentElement)},dragInitialize:function(){if(this.bln_isTouchDevice){this.el_bigImage.addEvent('touchstart',this.dragStart.bind(this));this.el_bigImage.addEvent('touchend',this.dragEnd.bind(this));this.el_bigImage.addEvent('touchmove',this.drag.bind(this))}else{this.el_bigImage.addEvent('mousedown',this.dragStart.bind(this));this.el_bigImage.addEvent('mouseup',this.dragEnd.bind(this));this.el_bigImage.addEvent('mouseleave',this.dragEnd.bind(this));this.el_bigImage.addEvent('mousemove',this.drag.bind(this))}},dragStart:function(event){event.preventDefault();this.bln_currentlyDragging=!0;this.el_bigImage.addClass('dragging');this.obj_dragData.firstPointerPosition.x=(event.type==='touchstart'?event.event.touches[0].clientX:event.event.clientX);this.obj_dragData.dragStartPosition.x=this.obj_dragData.firstPointerPosition.x-this.obj_dragData.dragOffsetPosition.x;this.obj_dragData.firstPointerPosition.y=(event.type==='touchstart'?event.event.touches[0].clientY:event.event.clientY);this.obj_dragData.dragStartPosition.y=this.obj_dragData.firstPointerPosition.y-this.obj_dragData.dragOffsetPosition.y;this.deactivateImageTransitionAnimation()},dragEnd:function(event){if(!this.bln_currentlyDragging){return}
139this.activateImageTransitionAnimation();this.el_bigImage.removeClass('dragging');this.bln_currentlyDragging=!1;this.checkImageBoundaries()},drag:function(event){if(!this.bln_currentlyDragging){return}
140event.preventDefault();this.obj_dragData.dragOffsetPosition.x=(event.type==='touchmove'?event.event.touches[0].clientX:event.event.clientX)-this.obj_dragData.dragStartPosition.x;this.obj_dragData.dragOffsetPosition.y=(event.type==='touchmove'?event.event.touches[0].clientY:event.event.clientY)-this.obj_dragData.dragStartPosition.y;this.setZoomFactorAndPositionOffset()},determineBoundaries:function(){var float_stageLeft=(this.obj_bigImageNaturalSize.width-this.obj_imageScaledSize.width)/2;var float_stageRight=float_stageLeft-this.obj_overlaySize.width;var float_stageLeftRelative=float_stageLeft/this.float_currentZoomFactor*-1;var float_stageRightRelative=float_stageRight/this.float_currentZoomFactor*-1;this.obj_stageBoundaries.left=float_stageLeftRelative;this.obj_stageBoundaries.right=float_stageRightRelative;var float_stageTop=(this.obj_bigImageNaturalSize.height-this.obj_imageScaledSize.height)/2;var float_stageBottom=float_stageTop-this.obj_overlaySize.height;var float_stageTopRelative=float_stageTop/this.float_currentZoomFactor*-1;var float_stageBottomRelative=float_stageBottom/this.float_currentZoomFactor*-1;this.obj_stageBoundaries.top=float_stageTopRelative;this.obj_stageBoundaries.bottom=float_stageBottomRelative},checkImageBoundaries:function(){var bln_needToReposition=!1;var float_imageLeft=this.obj_positionOffsetDragged.x;var float_imageRight=this.obj_positionOffsetDragged.x+this.obj_bigImageNaturalSize.width;var float_imageTop=this.obj_positionOffsetDragged.y;var float_imageBottom=this.obj_positionOffsetDragged.y+this.obj_bigImageNaturalSize.height;var str_imageStatusLeftEdge=float_imageLeft>=this.obj_stageBoundaries.left?'inside':'outside';var str_imageStatusRightEdge=float_imageRight<=this.obj_stageBoundaries.right?'inside':'outside';var str_imageStatusTopEdge=float_imageTop>=this.obj_stageBoundaries.top?'inside':'outside';var str_imageStatusBottomEdge=float_imageBottom<=this.obj_stageBoundaries.bottom?'inside':'outside';var float_imageLeftEdgeInsideOffset=float_imageLeft-this.obj_stageBoundaries.left;var float_imageRightEdgeInsideOffset=float_imageRight-this.obj_stageBoundaries.right;var float_imageTopEdgeInsideOffset=float_imageTop-this.obj_stageBoundaries.top;var float_imageBottomEdgeInsideOffset=float_imageBottom-this.obj_stageBoundaries.bottom;if(this.obj_imageScaledSize.width<this.obj_overlaySize.width){this.obj_dragData.dragOffsetPosition.x=0;bln_needToReposition=!0}else if(str_imageStatusLeftEdge==='inside'){this.obj_dragData.dragOffsetPosition.x=this.obj_dragData.dragOffsetPosition.x-float_imageLeftEdgeInsideOffset*this.float_currentZoomFactor;bln_needToReposition=!0}else if(str_imageStatusRightEdge==='inside'){this.obj_dragData.dragOffsetPosition.x=this.obj_dragData.dragOffsetPosition.x-float_imageRightEdgeInsideOffset*this.float_currentZoomFactor;bln_needToReposition=!0}
141if(this.obj_imageScaledSize.height<this.obj_overlaySize.height){this.obj_dragData.dragOffsetPosition.y=0;bln_needToReposition=!0}else if(str_imageStatusTopEdge==='inside'){this.obj_dragData.dragOffsetPosition.y=this.obj_dragData.dragOffsetPosition.y-float_imageTopEdgeInsideOffset*this.float_currentZoomFactor;bln_needToReposition=!0}else if(str_imageStatusBottomEdge==='inside'){this.obj_dragData.dragOffsetPosition.y=this.obj_dragData.dragOffsetPosition.y-float_imageBottomEdgeInsideOffset*this.float_currentZoomFactor;bln_needToReposition=!0}
142if(bln_needToReposition){this.setZoomFactorAndPositionOffset()}},activateImageTransitionAnimation:function(){this.el_bigImage.setStyle('transition','all .25s ease 0s')},deactivateImageTransitionAnimation:function(){this.el_bigImage.setStyle('transition','none')}};lsjs.addViewClass(str_moduleName,obj_classdef)})();(function(){var str_moduleName='imageZoomerInstance';var obj_classdef={start:function(){}};lsjs.addControllerClass(str_moduleName,obj_classdef)})();(function(){var obj_classdef_model={name:'options',data:{},start:function(){this.data={el_domReference:null,str_containerSelector:'.lsjs-image-zoomer',float_minZ
142oomFactor:null,float_maxZoomFactor:1,float_zoomFactorStep:0.1,str_attributeToIdentifyGallerySets:'lsjs-data-image-zoomer-gallery-set',bln_showConsoleWarnings:!0}},set:function(obj_options){Object.merge(this.data,obj_options);this.__module.onModelLoaded()}};lsjs.addModelClass('imageZoomerManager',obj_classdef_model)})();(function(){var str_moduleName='imageZoomerManager';var obj_classdef={start:function(){var els_toEnhance;if(this.__models.options.data.el_domReference!==undefined&&typeOf(this.__models.options.data.el_domReference)==='element'){els_toEnhance=this.__models.options.data.el_domReference.getElements(this.__models.options.data.str_containerSelector)}else{els_toEnhance=$$(this.__models.options.data.str_containerSelector)}
143var obj_modules={};Array.each(els_toEnhance,function(el_container,int_key){if(!el_container.retrieve('alreadyHandledBy_'+str_moduleName)){el_container.store('alreadyHandledBy_'+str_moduleName,!0)}else{return}
144var str_gallerySetName=el_container.getProperty(this.__models.options.data.str_attributeToIdentifyGallerySets);if(str_gallerySetName===null){str_gallerySetName='no-set_'+int_key}
145if(typeof obj_modules[str_gallerySetName]==='undefined'){obj_modules[str_gallerySetName]=[]}
146obj_modules[str_gallerySetName].push(lsjs.createModule({__name:'imageZoomerInstance',__parentModule:this.__module,__useLoadingIndicator:!1,__el_container:el_container}))}.bind(this));Object.each(obj_modules,function(arr_modules){Array.each(arr_modules,function(obj_module,int_key){obj_module.obj_nextZoomer=arr_modules.length>int_key+1?arr_modules[int_key+1]:null;obj_module.obj_previousZoomer=int_key>0?arr_modules[int_key-1]:null})})}};lsjs.addControllerClass(str_moduleName,obj_classdef);lsjs.__moduleHelpers[str_moduleName]={self:null,start:function(obj_options){this.self=lsjs.createModule({__name:str_moduleName});this.self.__models.options.set(obj_options)}}})();(function(){var str_moduleName='libraryLoader';lsjs.__moduleHelpers[str_moduleName]={self:null,arr_loadedLibraries:[],arr_totalLibraries:[],domReady:!1,_currentIndex:0,start:function(arr_libraries){this.arr_totalLibraries=arr_libraries;this.arr_loadedLibraries=[];this._currentIndex=0;var self=this;if(this.arr_totalLibraries.length>0){this._loadNextScript()}else{this._checkDomAndFinalize()}
147if(document.readyState==="complete"||document.readyState==="interactive"){self.domReady=!0;self._checkDomAndFinalize()}else{document.addEventListener('DOMContentLoaded',function(){self.domReady=!0;self._checkDomAndFinalize()})}},_loadNextScript:function(){var self=this;if(this._currentIndex>=this.arr_totalLibraries.length){this._checkDomAndFinalize();return}
148var libEntry=this.arr_totalLibraries[this._currentIndex];var scriptLoadHandler=function(){var loadedIdentifier=this.src||(this.dataset?this.dataset.originalSrc:null)||'[inline-script]';self.arr_loadedLibraries.push(loadedIdentifier);window.fireEvent('libraryLoaded',loadedIdentifier);self._currentIndex++;self._loadNextScript()};var scriptErrorHandler=function(){var errorIdentifier=this.src||(this.dataset?this.dataset.originalSrc:null)||'[inline-script-error]';console.error('Error loading library:',errorIdentifier);self.arr_loadedLibraries.push('[ERROR] '+errorIdentifier);self._currentIndex++;self._loadNextScript()};if(typeof libEntry==='string'&&libEntry.trim().startsWith('<script')){var temp=document.createElement('div');temp.innerHTML=libEntry.trim();var oldScript=temp.querySelector('script');if(oldScript){var newScript=document.createElement('script');for(var i=0;i<oldScript.attributes.length;i++){var attr=oldScript.attributes[i];if(attr.name.toLowerCase()!=='onload'&&attr.name.toLowerCase()!=='onerror'){newScript.setAttribute(attr.name,attr.value)}}
149if(!newScript.src){newScript.text=oldScript.textContent}
150newScript.dataset.originalSrc=oldScript.src||'[inline-script-'+this._currentIndex+']';newScript.onload=scriptLoadHandler;newScript.onerror=scriptErrorHandler;document.head.appendChild(newScript);if(!newScript.src){setTimeout(function(){if(typeof newScript.onload==='function'){newScript.onload()}},0)}}else{console.error('Could not parse script tag:',libEntry);return}}else{var script=document.createElement('script');script.src=libEntry;script.dataset.originalSrc=libEntry;script.onload=scriptLoadHandler;script.onerror=scriptErrorHandler;document.head.appendChild(script)}},_checkDomAndFinalize:function(){if(this.domReady&&this._currentIndex>=this.arr_totalLibraries.length){this.checkAllLoaded()}},checkAllLoaded:function(){if(typeof window.fireEvent==='function'){window.fireEvent('librariesLoadedAndDomReady')}else{console.warn("window.fireEvent nicht definiert.")}}};window.addEvent('libraryLoaded',function(el_domReference){for(const key in lsjs.__moduleHelpers){if(Object.prototype.hasOwnProperty.call(lsjs.__moduleHelpers,key)){if(key.startsWith("customCode")){lsjs.__moduleHelpers[key].onLibraryLoaded(el_domReference)}}}});window.addEvent('librariesLoadedAndDomReady',function(el_domReference){for(const key in lsjs.__moduleHelpers){if(Object.prototype.hasOwnProperty.call(lsjs.__moduleHelpers,key)){if(key.startsWith("customCode")){lsjs.__moduleHelpers[key].onLibrariesLoadedAndDomReady(el_domReference)}}}});window.addEvent('domready',function(el_domReference){var arr_libraries=[];for(const key in lsjs.__moduleHelpers){if(Object.prototype.hasOwnProperty.call(lsjs.__moduleHelpers,key)){if(key.startsWith("customCode")){console.log(lsjs.__moduleHelpers[key].getLibraryToLoad())
151arr_libraries.push(...lsjs.__moduleHelpers[key].getLibraryToLoad())}}}
152lsjs.__moduleHelpers.libraryLoader.start(arr_libraries);for(const key in lsjs.__moduleHelpers){if(Object.prototype.hasOwnProperty.call(lsjs.__moduleHelpers,key)){if(key.startsWith("customCode")){lsjs.__moduleHelpers[key].onDomReady(el_domReference)}}}});window.addEvent('cajax_domUpdate',function(el_domReference){for(const key in lsjs.__moduleHelpers){if(Object.prototype.hasOwnProperty.call(lsjs.__moduleHelpers,key)){if(key.startsWith("customCode")){lsjs.__moduleHelpers[key].onCajaxDomUpdate(el_domReference)}}}})})();(function(){var obj_templates={'main':function(arg){var str_return='<div data-lsjs-element="loadingText">'+arg.__models.lang.data.standardText+'</div>';var str_return='<!-- BEGIN LSJS TEMPLATE: main.html (path removed for security reasons) -->'+str_return+'<!-- END LSJS TEMPLATE: main.html (path removed for security reasons) -->';return str_return}};lsjs.tpl.register(obj_templates,'loadingIndicator')})();(function(){var obj_classdef_model={name:'lang',data:{standardText:'Loading ...'},start:function(){this.__module.onModelLoaded()}};lsjs.addModelClass('loadingIndicator',obj_classdef_model)})();(function(){var obj_classdef_model={name:'loadingCounter',data:{numLoading:0},start:function(){this.__module.onModelLoaded()},increase:function(){this.data.numLoading++},decrease:function(){if(this.data.numLoading>0){this.data.numLoading--}},getNumLoading:function(){return this.data.numLoading}};lsjs.addModelClass('loadingIndicator',obj_classdef_model)})();(function(){var str_moduleName='loadingIndicator';var obj_classdef={start:function(){this.tplReplace({name:'main'})},show:function(){this.__el_container.addClass('show');new Fx.Morph(this.__el_container,{duration:100}).start({'opacity':1})},hide:function(bln_resetText){new Fx.Morph(this.__el_container,{duration:300,onComplete:function(){this.__el_container.removeClass('show');if(bln_resetText){this.resetText()}}.bind(this)}).start({'opacity':0})},overwriteText:function(str_deviantText){this.__autoElements.main.loadingText.setProperty('html',str_deviantText)},resetText:function(){this.__autoElements.main.loadingText.setProperty('html',this.__models.lang.data.standardText)}};lsjs.addViewClass(str_moduleName,obj_classdef)})();(function(){var str_moduleName='loadingIndicator';var obj_classdef={start:function(){if(this.__view===undefined||this.__view===null){console.error('The loading indicator\'s view is not available in its controller.js! Please make sure that controller.js is loaded after all the other module scripts (templates.js, view.js, model.js)')}
153lsjs[str_moduleName]=this.__module;window.addEvent('domready',function(){$$('body')[0].adopt(this.__module.__el_container)}.bind(this))},show:function(str_deviantText){if(str_deviantText!==undefined&&str_deviantText!==null){this.overwriteText(str_deviantText)}
154this.__models.loadingCounter.increase();if(this.__models.loadingCounter.getNumLoading()===1){this.__view.show()}},hide:function(bln_resetText){bln_resetText=bln_resetText!==undefined&&bln_resetText;this.__models.loadingCounter.decrease();if(this.__models.loadingCounter.getNumLoading()===0){this.__view.hide(bln_resetText)}else if(bln_resetText){this.resetText()}},overwriteText:function(str_deviantText){if(str_deviantText===undefined||str_deviantText===null){console.info('no deviant text given as argument');return}
155this.__view.overwriteText(str_deviantText)},resetText:function(){this.__view.resetText()}};lsjs.addControllerClass(str_moduleName,obj_classdef);lsjs.createModule({__name:str_moduleName})})();(function(){var obj_templates={'standard':function(arg){var str_return='<div class="loadingIndicatorNG" data-lsjs-loadingindicator-reference="'+arg.str_reference+'" data-lsjs-loadingindicator-num-calls="0">\
156    <div class="ling-content">\
157        <div class="ling-message">'+arg.str_message+'</div>\
158    </div>\
159</div>';var str_return='<!-- BEGIN LSJS TEMPLATE: standard.html (path removed for security reasons) -->'+str_return+'<!-- END LSJS TEMPLATE: standard.html (path removed for security reasons) -->';return str_return}};lsjs.tpl.register(obj_templates,'loadingIndicatorNG')})();(function(){var str_moduleName='loadingIndicatorNG';var obj_classdef={bln_debug:!1,int_showHideDelayMs:50,str_standardReference:'standard',str_standardMessage:'Loading',start:function(){},add:function(obj_params){obj_params=typeof obj_params==='object'?obj_params:{};obj_params.bln_addOnly=!0;this.show(obj_params)},show:function(obj_params){obj_params=typeof obj_params==='object'?obj_params:{};if(this.bln_debug){console.info('======> Debugging '+str_moduleName+' / show() ======>');console.info('Given parameters',obj_params)}
160var el_target=typeOf(obj_params.var_target)==='element'?obj_params.var_target:(obj_params.var_target?$$(obj_params.var_target)[0]:null);var str_reference=typeof obj_params.str_reference==='undefined'||!obj_params.str_reference?this.str_standardReference:obj_params.str_reference;var bln_addOnly=typeof obj_params.bln_addOnly==='undefined'?!1:!!obj_params.bln_addOnly;var bln_addToBodyIfTargetDoesNotExist=typeof obj_params.bln_addToBodyIfTargetDoesNotExist==='undefined'?!1:!!obj_params.bln_addToBodyIfTargetDoesNotExist;var str_message=typeof obj_params.str_message==='undefined'?this.str_standardMessage:obj_params.str_message;if(this.bln_debug&&str_reference===this.str_standardReference){console.info('using default reference "'+this.str_standardReference+'"')}
161var el_loadingIndicator=$$('[data-lsjs-loadingindicator-reference="'+str_reference+'"]')[0];if(typeOf(el_loadingIndicator)!=='element'){if(str_reference===this.str_standardReference){if(this.bln_debug){console.warn('Since the standard reference ('+this.str_standardReference+') is used, the target element is always body. If another target element is specified, it will be ignored.')}
162el_target=$$('body')[0]}else if(typeOf(el_target)!=='element'){if(bln_addToBodyIfTargetDoesNotExist){if(this.bln_debug){console.warn('The given target element ('+obj_params.var_target+') is not a dom element. The loading indicator element was placed in body because the "bln_addToBodyIfTargetDoesNotExist" option was used.')}
163el_target=$$('body')[0]}else{if(this.bln_debug){console.warn('The given target element ('+obj_params.var_target+') is not a dom element. The loading indicator element was NOT PLACED anywhere because the "bln_addToBodyIfTargetDoesNotExist" option was not used.');console.info('<======')}
164return}}
165el_loadingIndicator=this.tplAdd({name:'standard',parent:el_target,bln_discardContainerElement:!0,arg:{str_reference:str_reference,str_message:str_message}});if(this.bln_debug){console.info('Added loading indicator to the target element',el_target)}}else{if(this.bln_debug){console.info('A loading indicator element with this reference ('+str_reference+') already exists. Therefore, if a target element is specified, it will be ignored.')}}
166el_loadingIndicator.getElement('.ling-message').setProperty('html',str_message);if(!bln_addOnly){window.setTimeout(function(){el_loadingIndicator.setProperty('data-lsjs-loadingindicator-num-calls',parseInt(el_loadingIndicator.getProperty('data-lsjs-loadingindicator-num-calls'))+1)},this.int_showHideDelayMs)}else{if(this.bln_debug){console.info('Only adding element to dom.')}}
167if(this.bln_debug){console.info('loading indicator element: ',typeOf(el_loadingIndicator)==='elements'?el_loadingIndicator[0]:el_loadingIndicator);console.info('<======')}},hide:function(obj_params){obj_params=typeof obj_params==='object'?obj_params:{};if(this.bln_debug){console.info('======> Debugging '+str_moduleName+' / hide() ======>');console.info('Given parameters',obj_params)}
168var str_reference=typeof obj_params.str_reference==='undefined'||!obj_params.str_reference?this.str_standardReference:obj_params.str_reference;var bln_force=typeof obj_params.bln_force==='undefined'?!1:!!obj_params.bln_force;var el_loadingIndicator=$$('[data-lsjs-loadingindicator-reference="'+str_reference+'"]')[0];if(typeOf(el_loadingIndicator)!=='element'){if(this.bln_debug){console.info('loading indicator element not found by reference ('+str_reference+').');console.info('<======')}
169return}
170var int_newNumCalls=bln_force?0:(parseInt(el_loadingIndicator.getProperty('data-lsjs-loadingindicator-num-calls'))-1);if(int_newNumCalls<0){int_newNumCalls=0}
171window.setTimeout(function(){el_loadingIndicator.setProperty('data-lsjs-loadingindicator-num-calls',int_newNumCalls)},this.int_showHideDelayMs);if(this.bln_debug){console.info('<======')}},debug:function(){if(!this.bln_debug){this.bln_debug=!0;console.info(str_moduleName+': start debugging')}else{this.bln_debug=!1;console.info(str_moduleName+': stop debugging')}}};lsjs.addViewClass(str_moduleName,obj_classdef)})();(function(){var str_moduleName='loadingIndicatorNG';var obj_classdef={start:function(){lsjs[str_moduleName]=this.__view}};lsjs.addControllerClass(str_moduleName,obj_classdef);lsjs.createModule({__name:str_moduleName})})();(function(){var obj_classdef_model={name:'options',data:{},start:function(){this.data={var_naviSelector:null,int_offsetLeft:0,int_offsetRight:0,bln_onlyFirstLevel:!1}},set:function(obj_options){Object.merge(this.data,obj_options);this.__module.onModelLoaded()}};lsjs.addModelClass('maxWidthNavi',obj_classdef_model)})();(function(){var str_moduleName='maxWidthNavi';var obj_classdef={start:function(){this.__el_container=(typeOf(this.__models.options.data.var_naviSelector)==='element'||typeOf(this.__models.options.data.var_naviSelector)==='null')?this.__models.options.data.var_naviSelector:$$(this.__models.options.data.var_naviSelector)[0];if(typeOf(this.__el_container)!=='element'){return}
172this.__el_container.addClass('useMaxWidthNavi');this.calculateAndSetSize();window.addEvent('resize',this.calculateAndSetSize.bind(this))},calculateAndSetSize:function(){Array.each(this.__el_container.getElements('li').filter(this.__models.options.data.bln_onlyFirstLevel?'.level_1 > .submenu':'.submenu'),function(el_li){var obj_li=el_li.getCoordinates();var obj_nav=el_li.getParent('nav').getCoordinates();var float_offsetLeft=obj_li.left-obj_nav.left;var float_offsetRight=obj_nav.right-obj_li.right;el_li.getElement('> ul').setStyles({'left':(Math.round(float_offsetLeft)+this.__models.options.data.int_offsetLeft)*-1,'right':(Math.round(float_offsetRight)+this.__models.options.data.int_offsetRight)*-1})}.bind(this))}};lsjs.addViewClass(str_moduleName,obj_classdef)})();(function(){var str_moduleName='maxWidthNavi';var obj_classdef={start:function(){}};lsjs.addControllerClass(str_moduleName,obj_classdef);lsjs.__moduleHelpers[str_moduleName]={self:null,start:function(obj_options){this.self=lsjs.createModule({__name:str_moduleName});this.self.__models.options.set(obj_options)}}})();(function(){var obj_templates={'main':function(arg){var str_return='<div class="msgBoxInside">\
173	<div class="msg">
173'+arg.__models.options.data.str_msg+'</div>\
174	';Object.each(arg.__models.options.data.obj_buttons,function(obj_buttonSettings,str_buttonLabel){str_return+='\
175			<button data-lsjs-element="btn_'+str_buttonLabel+'" class="btn_'+str_buttonLabel+'">'+obj_buttonSettings.str_label+'</button>\
176			'});str_return+='\
177</div>';var str_return='<!-- BEGIN LSJS TEMPLATE: main.html (path removed for security reasons) -->'+str_return+'<!-- END LSJS TEMPLATE: main.html (path removed for security reasons) -->';return str_return}};lsjs.tpl.register(obj_templates,'messageBox')})();(function(){var obj_classdef_model={name:'lang',data:{str_standardMessage:'Hi, I am the message box. Please give me a message to display!',str_defaultButtonText:'OK'},start:function(){this.__module.onModelLoaded()}};lsjs.addModelClass('messageBox',obj_classdef_model)})();(function(){var obj_classdef_model={name:'options',data:{},start:function(){this.data={str_msg:this.__models.lang.data.str_standardMessage,obj_buttons:{default:{str_label:this.__models.lang.data.str_defaultButtonText,bln_closeOnClick:!0}}}},set:function(obj_options){Object.merge(this.data,obj_options);this.__module.onModelLoaded()}};lsjs.addModelClass('messageBox',obj_classdef_model)})();(function(){var str_moduleName='messageBox';var obj_classdef={start:function(){this.tplAdd({name:'main'});Object.each(this.__models.options.data.obj_buttons,function(obj_buttonSettings,str_buttonLabel){this.__autoElements.main['btn_'+str_buttonLabel].addEvent('click',this.callCallbackFunction.bind(this,obj_buttonSettings))}.bind(this));$$('body')[0].adopt(this.__el_container)},callCallbackFunction:function(obj_buttonSettings){if(obj_buttonSettings.bln_closeOnClick===undefined||obj_buttonSettings.bln_closeOnClick){var myFx=new Fx.Tween(this.__el_container,{duration:200,link:'cancel',property:'opacity',onComplete:this.__module.remove.bind(this.__module)});myFx.start(1,0)}
178if(typeOf(obj_buttonSettings.func_callback)==='function'){obj_buttonSettings.func_callback()}}};lsjs.addViewClass(str_moduleName,obj_classdef)})();(function(){var str_moduleName='messageBox';var obj_classdef={start:function(){},setOptions:function(obj_options){this.__models.options.set(obj_options)}};lsjs.addControllerClass(str_moduleName,obj_classdef);lsjs.__moduleHelpers[str_moduleName]={open:function(obj_options){lsjs.createModule({__name:str_moduleName}).__controller.setOptions(obj_options)}};window.addEvent('keydown',function(event){if(typeOf($$('.autoModuleContainer.messageBox')[0])!=='element'){return}
179switch(event.key){case 'enter':case 'esc':event.stop();break}}.bind(this))})();(function(){var obj_classdef_model={name:'status',data:{autoplayStatus:!1,stoppedOnMouseenter:!1,int_currentTimeout:null,currentTabKey:0,bln_firstElementHasBeenActivated:!1},start:function(){this.__module.onModelLoaded()},set_autoplayStatus:function(bln_status){bln_status=bln_status!==undefined?bln_status:!1;this.writeData('autoplayStatus',bln_status)},set_stoppedOnMouseenter:function(bln_status){bln_status=bln_status!==undefined?bln_status:!1;this.writeData('stoppedOnMouseenter',bln_status)},set_bln_firstElementHasBeenActivated:function(bln_firstElementHasBeenActivated){bln_firstElementHasBeenActivated=bln_firstElementHasBeenActivated!==undefined?bln_firstElementHasBeenActivated:!1;this.writeData('bln_firstElementHasBeenActivated',bln_firstElementHasBeenActivated)},set_currentTabKey:function(currentTabKey){this.writeData('currentTabKey',currentTabKey)},set_currentTimeout:function(int_timeout){int_timeout=int_timeout?int_timeout:null;this.writeData('int_currentTimeout',int_timeout)}};lsjs.addModelClass('navtabInstance',obj_classdef_model)})();(function(){var str_moduleName='navtabInstance';var obj_classdef={start:function(){this.registerElements(this.__el_container,'main',!0);if(this.__autoElements.main.navtabContent.length!==this.__autoElements.main.navtabLabel.length){console.error('number of label elements does not match the number of content elements');return}
180this.__models.status.set_autoplayStatus(this.__module.__parentModule.__models.options.data.defaultAutoplayStatus);this.showHiddenElements();this.addNavigationEvents();this.prepareContentElements();this.prepareLabelElements();this.__controller.activateStartLabel()},prepareLabelElements:function(){Array.each(this.__autoElements.main.navtabLabel,function(el_label,key){el_label.store('tabKey',key);var el_correspondingContent=this.__autoElements.main.navtabContent[key];el_label.activate=function(){window.clearTimeout(this.__models.status.data.int_currentTimeout);if(this.__models.status.data.autoplayStatus){this.__models.status.set_currentTimeout(window.setTimeout(function(){this.__controller.gotoNext()}.bind(this),this.__module.__parentModule.__models.options.data.autoplayDelay))}
181if(el_label.hasClass('active')){return}
182this.__autoElements.main.navtabLabel.removeClass('active');el_label.addClass('active');this.__models.status.set_currentTabKey(el_label.retrieve('tabKey'));Array.each(this.__autoElements.main.navtabContent,function(el_content){if(el_content.hasClass('active')){el_content.removeClass('active');el_content.tweenOut()}});el_correspondingContent.addClass('active');
182if(!this.__models.status.data.bln_firstElementHasBeenActivated){this.__models.status.set_bln_firstElementHasBeenActivated(!0);el_correspondingContent.removeClass(this.__module.__parentModule.__models.options.data.cssClassForHide);el_correspondingContent.addClass(this.__module.__parentModule.__models.options.data.cssClassForShow)}else{el_correspondingContent.tweenIn()}}.bind(this);el_label.addEvent('click',function(){this.__controller.stopAutoplay();el_label.activate()}.bind(this))}.bind(this))},prepareContentElements:function(){this.__autoElements.main.navtabContent.addClass(this.__module.__parentModule.__models.options.data.cssClassForHide);Array.each(this.__autoElements.main.navtabContent,function(el_content){var obj_tweenInOptions,obj_tweenOutOptions;el_content.store('obj_originalPositionValues',{'position':el_content.getStyle('position'),'top':el_content.getStyle('top'),'z-index':el_content.getStyle('z-index')});el_content.store('cssClassForShow',this.__module.__parentModule.__models.options.data.cssClassForShow);el_content.store('cssClassForHide',this.__module.__parentModule.__models.options.data.cssClassForHide);obj_tweenInOptions=this.__module.__parentModule.__models.options.data.tweenInOptions;obj_tweenInOptions.onComplete=function(){el_content.setStyles(el_content.retrieve('obj_originalPositionValues'))};el_content.store('fxTweenIn',new Fx.Morph(el_content,obj_tweenInOptions));obj_tweenOutOptions=this.__module.__parentModule.__models.options.data.tweenOutOptions;obj_tweenOutOptions.onComplete=function(){el_content.setStyle('display','none')};el_content.store('fxTweenOut',new Fx.Morph(el_content,obj_tweenOutOptions));el_content.tweenIn=this.tweenIn;el_content.tweenOut=this.tweenOut;el_content.addEvent('mouseenter',function(){if(this.__module.__parentModule.__models.options.data.stopAutoplayOnMouseenter){if(this.__models.status.data.autoplayStatus){this.__models.status.set_stoppedOnMouseenter(!0);this.__controller.stopAutoplay()}}}.bind(this));el_content.addEvent('mouseleave',function(){if(this.__module.__parentModule.__models.options.data.startAutoplayOnMouseleave){if(this.__models.status.data.stoppedOnMouseenter){this.__models.status.set_stoppedOnMouseenter(!1);this.__controller.startAutoplay()}}}.bind(this))}.bind(this))},addNavigationEvents:function(){if(this.__autoElements.main.btn_prev){this.__autoElements.main.btn_prev.addEvent('click',this.__controller.gotoPrev.bind(this.__controller))}
183if(this.__autoElements.main.btn_next){this.__autoElements.main.btn_next.addEvent('click',this.__controller.gotoNext.bind(this.__controller,!0))}
184if(this.__autoElements.main.btn_play){this.__autoElements.main.btn_play.addEvent('click',this.__controller.startAutoplay.bind(this.__controller));if(this.__module.__parentModule.__models.options.data.defaultAutoplayStatus){this.__autoElements.main.btn_play.addClass('active')}}
185if(this.__autoElements.main.btn_stop){this.__autoElements.main.btn_stop.addEvent('click',this.__controller.stopAutoplay.bind(this.__controller));if(!this.__module.__parentModule.__models.options.data.defaultAutoplayStatus){this.__autoElements.main.btn_stop.addClass('active')}}},showHiddenElements:function(){if(this.__autoElements.main.navtabNavigation){this.__autoElements.main.navtabNavigation.addClass('visible')}
186if(this.__autoElements.main.navtabLabelContainer){this.__autoElements.main.navtabLabelContainer.addClass('visible')}},tweenIn:function(){this.setStyles({'display':'block'});if(this.retrieve('obj_originalPositionValues').position!=='absolute'){this.setStyles({'position':'absolute','top':'0'})}
187this.setStyles({'z-index':'1000'});if(this.retrieve('fxTweenOut').isRunning()){this.retrieve('fxTweenOut').cancel()}
188this.retrieve('fxTweenIn').start('.'+this.retrieve('cssClassForShow'))},tweenOut:function(){this.retrieve('fxTweenOut').start('.'+this.retrieve('cssClassForHide'))}};lsjs.addViewClass(str_moduleName,obj_classdef)})();(function(){var str_moduleName='navtabInstance';var obj_classdef={start:function(){},activateStartLabel:function(){Array.each(this.__view.__autoElements.main.navtabLabel.filter('.start'),function(el_startLabel){el_startLabel.activate()})},gotoPrev:function(){var numTabs=this.__view.__autoElements.main.navtabLabel.length;var currentTabKey=this.__models.status.data.currentTabKey;var newTabKey=currentTabKey-1;if(newTabKey<0){newTabKey=numTabs-1}
189this.__view.__autoElements.main.navtabLabel[newTabKey].fireEvent('click')},gotoNext:function(bln_useClick){bln_useClick=bln_useClick!=undefined?bln_useClick:!1;var numTabs,currentTabKey,newTabKey;numTabs=this.__view.__autoElements.main.navtabLabel.length;if(!this.__module.__parentModule.__models.options.data.autoplayRandomOrder||bln_useClick){currentTabKey=this.__models.status.data.currentTabKey;newTabKey=currentTabKey+1;if(newTabKey>numTabs-1){newTabKey=0}}else{newTabKey=Number.random(0,numTabs-1)}
190if(bln_useClick){this.__view.__autoElements.main.navtabLabel[newTabKey].fireEvent('click')}else{this.__view.__autoElements.main.navtabLabel[newTabKey].activate()}},startAutoplay:function(){this.__models.status.set_autoplayStatus(!0);this.__view.__autoElements.main.navtabLabel[this.__models.status.data.currentTabKey].activate();if(this.__view.__autoElements.main.btn_play){this.__view.__autoElements.main.btn_play.addClass('active')}
191if(this.__view.__autoElements.main.btn_stop){this.__view.__autoElements.main.btn_stop.removeClass('active')}},stopAutoplay:function(){window.clearTimeout(this.__models.status.data.int_currentTimeout);this.__models.status.set_autoplayStatus(!1);if(this.__view.__autoElements.main.btn_play){this.__view.__autoElements.main.btn_play.removeClass('active')}
192if(this.__view.__autoElements.main.btn_stop){this.__view.__autoElements.main.btn_stop.addClass('active')}}};lsjs.addControllerClass(str_moduleName,obj_classdef)})();(function(){var obj_classdef_model={name:'options',data:{},start:function(){this.data={el_domReference:null,navtabContainerSelector:'[data-lsjs-component~="navtab"]',defaultAutoplayStatus:!1,autoplayDelay:2000,autoplayRandomOrder:!1,stopAutoplayOnMouseenter:!1,startAutoplayOnMouseleave:!1,tweenOutOptions:{transition:Fx.Transitions.Quad.easeIn,duration:1000},tweenInOptions:{transition:Fx.Transitions.Quad.easeIn,duration:1000},cssClassForShow:'navtabContentShow',cssClassForHide:'navtabContentHide'}},set:function(obj_options){Object.merge(this.data,obj_options);this.__module.onModelLoaded()}};lsjs.addModelClass('navtabManager',obj_classdef_model)})();(function(){var str_moduleName='navtabManager';var obj_classdef={start:function(){var els_toEnhance;if(this.__models.options.data.el_domReference!==undefined&&typeOf(this.__models.options.data.el_domReference)==='element'){els_toEnhance=this.__models.options.data.el_domReference.getElements(this.__models.options.data.navtabContainerSelector)}else{els_toEnhance=$$(this.__models.options.data.navtabContainerSelector)}
193Array.each(els_toEnhance,function(el_container){if(!el_container.retrieve('alreadyHandledBy_'+str_moduleName)){el_container.store('alreadyHandledBy_'+str_moduleName,!0)}else{return}
194lsjs.createModule({__name:'navtabInstance',__parentModule:this.__module,__useLoadingIndicator:!1,__el_container:el_container})}.bind(this))}};lsjs.addControllerClass(str_moduleName,obj_classdef);lsjs.__moduleHelpers[str_moduleName]={self:null,start:function(obj_options){this.self=lsjs.createModule({__name:str_moduleName});this.self.__models.options.set(obj_options)}}})();(function(){var obj_templates={'main':function(arg){var str_return='<span class="number-stepper-wrapper">\
195	<span class="nsPlus"></span>\
196	<span class="nsMinus"></span>\
197</span>';var str_return='<!-- BEGIN LSJS TEMPLATE: main.html (path removed for security reasons) -->'+str_return+'<!-- END LSJS TEMPLATE: main.html (path removed for security reasons) -->';return str_return}};lsjs.tpl.register(obj_templates,'numberStepper')})();(function(){var obj_classdef_model={name:'lang',start:function(){this.__module.onModelLoaded()}};lsjs.addModelClass('numberStepper',obj_classdef_model)})();(function(){var obj_classdef_model={name:'options',data:{},start:function(){this.data={str_selector:'.useNumberStepper',str_appliedClass:'numberStepperApplied'}},set:function(obj_options){Object.merge(this.data,obj_options);this.__module.onModelLoaded()}};lsjs.addModelClass('numberStepper',obj_classdef_model)})();(function(){var str_moduleName='numberStepper';var obj_classdef={start:function(){this.addNumberStepperFunction()},addNumberStepperFunction:function(){var els_numberGroup=$$(this.__models.options.data.str_selector);Array.each(els_numberGroup,function(el_numberInput){if(el_numberInput.hasClass(this.__models.options.data.str_appliedClass)){return}
198if(el_numberInput.nodeName!='INPUT'||el_numberInput.type!='number'){console.warn("Only input fields of type=number can use the number stepper.",el_numberInput);return}
199el_numberInput.addClass(this.__models.options.data.str_appliedClass);var el_templateMain=this.tplPure({name:'main'}).getElement('.number-stepper-wrapper');el_templateMain.wraps(el_numberInput);var parent=el_numberInput.getParent('.number-stepper-wrapper');this.buttonClickable(el_numberInput,parent);el_templateMain.getElement('.nsPlus').addEvent('click',function(){el_numberInput.stepUp();el_numberInput.fireEvent('change')});el_templateMain.getElement('.nsMinus').addEvent('click',function(){el_numberInput.stepDown();el_numberInput.fireEvent('change')});el_numberInput.addEvent('change',function(){this.buttonClickable(el_numberInput,parent)}.bind(this))}.bind(this))},buttonClickable:function(el_input,el_parent){var el_buttonPlus=el_parent.getElement('.nsPlus');var el_buttonMinus=el_parent.getElement('.nsMinus');var dec_inputValue=Number(el_input.value);var dec_max=Number(el_input.getProperty('max'));var dec_min=Number(el_input.getProperty('min'));if(dec_inputValue>=dec_max){el_buttonPlus.addClass('minMaxBound')}else{el_buttonPlus.removeClass('minMaxBound')}
200if(dec_inputValue<=dec_min){el_buttonMinus.addClass('minMaxBound')}else{el_buttonMinus.removeClass('minMaxBound')}
201return!1}};lsjs.addViewClass(str_moduleName,obj_classdef)})();(function(){var str_moduleName='numberStepper';var obj_classdef={start:function(){}};lsjs.addControllerClass(str_moduleName,obj_classdef);lsjs.__moduleHelpers[str_moduleName]={self:null,start:function(obj_options){if(this.self!==null){console.warn('module '+str_moduleName+' has already been started');return}
202this.self=lsjs.createModule({__name:str_moduleName});this.self.__models.options.set(obj_options)},refresh:function(){this.self.__view.addNumberStepperFunction()}}})();(function(){var obj_templates={'autoOcContainer':function(arg){var str_return='<div id="'+arg.str_contentId+'-container" class="oc-flex-default-container auto-generated-oc">\
203    <div class="auto-generated-oc-inside">\
204        <div class="close-button"></div>\
205        <div id="'+arg.str_contentId+'" data-lsjs-element="contentBox"></div>\
206    </div>\
207</div>';var str_return='<!-- BEGIN LSJS TEMPLATE: autoOcContainer.html (path removed for security reasons) -->'+str_return+'<!-- END LSJS TEMPLATE: autoOcContainer.html (path removed for security reasons) -->';return str_return}};lsjs.tpl.register(obj_templates,'ocFlex')})();(function(){var obj_classdef_model={name:'options',data:{},start:function(){this.data={el_domReference:null,bln_debug:!1,str_ocContainerSelector:'',str_ocTogglerSelector:'',str_ocContentSelector:'',str_uniqueInstanceName:'',str_classToSetWhenModuleApplied:'oc
207FlexApplied',bln_closeOnOutsideClick:!0}},set:function(obj_options){Object.merge(this.data,obj_options);this.__module.onModelLoaded()}};lsjs.addModelClass('ocFlex',obj_classdef_model)})();(function(){var str_moduleName='ocFlex';var obj_classdef={el_body:null,el_content:null,els_togglers:null,obj_classes:{general:{standard:'ocFlex',open:'ocFlexOpen',closed:'ocFlexClosed',},specific:{standard:'',open:'',closed:''}},float_documentScrollY:0,bln_isExternalContentSituation:!1,start:function(){this.el_body=$$('body')[0];this.obj_classes.specific.standard=this.obj_classes.general.standard+'-'+this.__models.options.data.str_uniqueInstanceName;this.obj_classes.specific.open=this.obj_classes.general.open+'-'+this.__models.options.data.str_uniqueInstanceName;this.obj_classes.specific.closed=this.obj_classes.general.closed+'-'+this.__models.options.data.str_uniqueInstanceName;this.el_content=this.__module.obj_args.el_content;this.detectExternalContentSituation();this.initializeFallbackContainerIfRequired()
208this.els_togglers=$$(this.__models.options.data.str_ocTogglerSelector);if(this.bln_isExternalContentSituation){let el_closeButtonToggler=this.__el_container.getElement('.close-button');if(typeOf(el_closeButtonToggler)==='element'){this.els_togglers.push(el_closeButtonToggler)}}
209if(this.els_togglers.length===0){if(this.__models.options.data.bln_debug){console.warn(str_moduleName+': no toggler was found with selector "'+this.__models.options.data.str_ocTogglerSelector+'". This is fine as it could be intentional, but it could also indicate a misconfiguration.')}}
210this.el_body.addClass(this.obj_classes.general.standard);this.el_body.addClass(this.obj_classes.specific.standard);this.els_togglers.addEvent('click',this.toggle.bind(this));if(this.__models.options.data.bln_closeOnOutsideClick){this.__el_container.addEvent('mousedown',function(event){if(event.target===this.__el_container){this.toggle()}}.bind(this))}},detectExternalContentSituation:function(){this.bln_isExternalContentSituation=typeOf(this.el_content)==='element'},initializeFallbackContainerIfRequired:function(){if(this.bln_isExternalContentSituation){let potentiallyAlreadyExistingAutoContainer=$(this.__models.options.data.str_uniqueInstanceName+'-container');if(typeOf(potentiallyAlreadyExistingAutoContainer)==='element'){potentiallyAlreadyExistingAutoContainer.remove()}
211this.__el_container=this.tplPure({name:'autoOcContainer',arg:{str_contentId:this.__models.options.data.str_uniqueInstanceName}}).getElement('div').inject($$('body')[0],'bottom')}},moveContentFromOriginalPositionToContainer:function(){if(!this.bln_isExternalContentSituation){return}
212this.el_content._originalParent=this.el_content.parentNode;this.el_content._originalNextSibling=this.el_content.nextSibling;this.__autoElements.autoOcContainer.contentBox.appendChild(this.el_content)},moveContentFromContainerToOriginalPosition:function(){if(!this.bln_isExternalContentSituation){return}
213if(this.el_content._originalParent){this.el_content._originalParent.insertBefore(this.el_content,this.el_content._originalNextSibling);delete this.el_content._originalParent;delete this.el_content._originalNextSibling}},toggle:function(event){if(event!==undefined){event.stop()}
214if(this.el_body.hasClass(this.obj_classes.specific.open)){window.ocFlexCloseCurrentlyOpen=null;this.el_body.addClass(this.obj_classes.general.closed);this.el_body.removeClass(this.obj_classes.general.open);this.el_body.addClass(this.obj_classes.specific.closed);this.el_body.removeClass(this.obj_classes.specific.open);this.__el_container.addClass('closed');this.__el_container.removeClass('open');this.els_togglers.addClass('closed');this.els_togglers.removeClass('open');document.documentElement.scrollTop=this.float_documentScrollY;this.el_body.setStyle('top',null);window.setTimeout(this.moveContentFromContainerToOriginalPosition.bind(this),300)
215window.fireEvent('ocFlexClose',this.__models.options.data.str_uniqueInstanceName)}else{if(typeOf(window.ocFlexCloseCurrentlyOpen)==='function'){window.ocFlexCloseCurrentlyOpen()}
216this.moveContentFromOriginalPositionToContainer();window.ocFlexCloseCurrentlyOpen=this.toggle.bind(this);this.float_documentScrollY=document.documentElement.scrollTop;this.el_body.setStyle('top',this.float_documentScrollY*-1);this.el_body.removeClass(this.obj_classes.general.closed);this.el_body.addClass(this.obj_classes.general.open);this.el_body.removeClass(this.obj_classes.specific.closed);this.el_body.addClass(this.obj_classes.specific.open);this.__el_container.removeClass('closed');this.__el_container.addClass('open');this.els_togglers.removeClass('closed');this.els_togglers.addClass('open');window.fireEvent('ocFlexOpen',this.__models.options.data.str_uniqueInstanceName)}
216},};lsjs.addViewClass(str_moduleName,obj_classdef)})();(function(){var str_moduleName='ocFlex';var obj_classdef={start:function(){}};lsjs.addControllerClass(str_moduleName,obj_classdef);lsjs.__moduleHelpers[str_moduleName]={self:{},start:function(obj_options){var el_containerOrContent;if(obj_options.str_ocContainerSelector&&obj_options.str_ocContentSelector){if(obj_options.bln_debug){console.warn(str_moduleName+': "str_ocContainerSelector" and "str_ocContentSelector" cannot be used at the same time')}
217return}
218if(obj_options.str_ocContainerSelector){el_containerOrContent=this.getContainerOrContentElement(obj_options.el_domReference,obj_options.str_ocContainerSelector,obj_options.bln_debug)}else if(obj_options.str_ocContentSelector){el_containerOrContent=this.getContainerOrContentElement(obj_options.el_domReference,obj_options.str_ocContentSelector,obj_options.bln_debug)}
219if(el_containerOrContent===null){if(obj_options.bln_debug){console.warn(str_moduleName+': unable to start')}
220return}
221this.self[obj_options.str_uniqueInstanceName]=lsjs.createModule({__name:str_moduleName,__el_container:obj_options.str_ocContainerSelector?el_containerOrContent:null,el_content:obj_options.str_ocContentSelector?el_containerOrContent:null});this.self[obj_options.str_uniqueInstanceName].__models.options.set(obj_options);el_containerOrContent.addClass(this.self[obj_options.str_uniqueInstanceName].__models.options.data.str_classToSetWhenModuleApplied)},getContainerOrContentElement:function(el_domReference,selector,bln_debug){var els_containerOrContent,el_containerOrContent;if(el_domReference!==undefined&&typeOf(el_domReference)==='element'){els_containerOrContent=el_domReference.getElements(selector)}else{els_containerOrContent=$$(selector)}
222if(els_containerOrContent.length===0){if(bln_debug){console.warn(str_moduleName+': no element found for selector "'+selector+'"')}
223return null}else if(els_containerOrContent.length>1){if(bln_debug){console.warn(str_moduleName+': more than one element found for selector "'+selector+'"')}
224return null}
225el_containerOrContent=els_containerOrContent[0];if(!el_containerOrContent.retrieve('alreadyHandledBy_'+str_moduleName)){el_containerOrContent.store('alreadyHandledBy_'+str_moduleName,!0)}else{return null}
226return el_containerOrContent}}})();(function(){var str_moduleName='scrollAssistant';var obj_classdef={el_body:null,obj_classes:{scrollingDown:'scrolling-down',scrollingUp:'scrolling-up',wide:'scrolling-beyond-'},str_currentDirection:'none',int_currentScrollY:0,int_lastScrollY:0,int_lastScrollSpeed:0,int_scrollDistanceInThisDirection:0,start:function(){this.el_body=$$('body')[0];window.addEvent('scroll',this.handleScrolling.bind(this))},handleScrolling:function(){this.determineScrollPositionAndDirection();this.setBodyClass()},setBodyClass:function(){if(this.str_currentDirection==='down'){this.el_body.addClass(this.obj_classes.scrollingDown);this.el_body.removeClass(this.obj_classes.scrollingUp)}else if(this.str_currentDirection==='up'){this.el_body.removeClass(this.obj_classes.scrollingDown);this.el_body.addClass(this.obj_classes.scrollingUp)}else{this.el_body.removeClass(this.obj_classes.scrollingDown);this.el_body.removeClass(this.obj_classes.scrollingUp)}},determineScrollPositionAndDirection:function(){var str_lastDirection=this.str_currentDirection;this.int_currentScrollY=window.getScroll().y;this.int_lastScrollSpeed=this.int_lastScrollY?Math.abs(this.int_lastScrollY-this.int_currentScrollY):0;if(this.int_currentScrollY===0){this.str_currentDirection='none'}else if(this.int_currentScrollY>this.int_lastScrollY){this.str_currentDirection='down'}else if(this.int_currentScrollY<this.int_lastScrollY){this.str_currentDirection='up'}
227if(this.str_currentDirection!==str_lastDirection){this.int_scrollDistanceInThisDirection=this.int_lastScrollSpeed}else{this.int_scrollDistanceInThisDirection+=this.int_lastScrollSpeed}
228this.int_lastScrollY=this.int_currentScrollY}};lsjs.addViewClass(str_moduleName,obj_classdef)})();(function(){var str_moduleName='scrollAssistant';var obj_classdef={start:function(){lsjs[str_moduleName]=this.__module;this.initializeScrollPositionKeeper()},initializeScrollPositionKeeper:function(){window.addEvent('domready',function(){Array.each($$('.onClickToScrollPosition'),function(el){el.addEvent('click',function(){this.getLSFEScrollOffset()}.bind(this))}.bind(this))}.bind(this));window.addEvent('load',function(){this.scrollToLSFEOffset()}.bind(this))},getLSFEScrollOffset:function(){Cookie.write('LSFE_PAGE_OFFSET',window.getScroll().y)}
228,scrollToLSFEOffset:function(){var LSFE_PAGE_OFFSET=Cookie.read('LSFE_PAGE_OFFSET');if(LSFE_PAGE_OFFSET===undefined||LSFE_PAGE_OFFSET===null){return}
229window.scrollTo(null,parseInt(LSFE_PAGE_OFFSET));Cookie.dispose('LSFE_PAGE_OFFSET')}};lsjs.addControllerClass(str_moduleName,obj_classdef);lsjs.__moduleHelpers[str_moduleName]={self:null,start:function(){this.self=lsjs.createModule({__name:str_moduleName})}}})();(function(){var obj_classdef_model={name:'options',data:{arr_reactions:[]},start:function(){},set:function(obj_options){Object.merge(this.data,obj_options);this.__module.onModelLoaded()}};lsjs.addModelClass('scrollReactor',obj_classdef_model)})();(function(){var str_moduleName='scrollReactor';var obj_classdef={arr_preparedReactions:[],str_currentDirection:'down',int_currentScrollY:0,int_lastScrollY:0,obj_currentReaction:null,obj_defaultReaction:{func_reactionCrossingTop:function(){console.log('default reaction crossing top '+this.str_currentDirection)},func_reactionCrossingBottom:function(){console.log('default reaction crossing bottom '+this.str_currentDirection)},func_reactionBetween:function(){console.log('default reaction '+this.str_currentDirection+' between '+this.obj_currentReaction.int_scrollPositionTop+' and '+this.obj_currentReaction.int_scrollPositionBottom)},int_scrollPositionTop:100,int_scrollPositionBottom:300,obj_reactOn:{str_crossingTop:'both',str_crossingBottom:'both',str_between:'both'},obj_reactTimes:{int_crossingTop:0,int_crossingBottom:0,int_between:0},arr_elementSelectorsInvolved:[],bln_aboveScrollPositionTop:!0,bln_aboveScrollPositionBottom:!0,bln_crossedScrollPositionTop:!1,bln_crossedScrollPositionBottom:!1},start:function(){this.initializeReactor();window.addEvent('resize',this.initializeReactor.bind(this));window.addEvent('scroll',this.react.bind(this))},initializeReactor:function(){this.prepareReactions();this.react()},prepareReactions:function(){this.arr_preparedReactions=[];Array.each(this.__models.options.data.arr_reactions,function(obj_reaction){var obj_defaultReaction=Object.clone(this.obj_defaultReaction);obj_reaction=Object.merge(obj_defaultReaction,obj_reaction);if(!this.check_involvedElementsExist(obj_reaction)){return}
230this.arr_preparedReactions.push(obj_reaction)}.bind(this));Array.each(this.arr_preparedReactions,function(obj_reaction){obj_reaction.func_reactionCrossingTop=obj_reaction.func_reactionCrossingTop.bind(this);obj_reaction.func_reactionCrossingBottom=obj_reaction.func_reactionCrossingBottom.bind(this);obj_reaction.func_reactionBetween=obj_reaction.func_reactionBetween.bind(this)}.bind(this))},check_involvedElementsExist:function(obj_reaction){if(obj_reaction.arr_elementSelectorsInvolved.length==0){return!0}
231var bln_elementsExist=!1;Array.some(obj_reaction.arr_elementSelectorsInvolved,function(str_selector){var els_elementsInvolved=$$(str_selector);if(typeOf(els_elementsInvolved)==='elements'&&els_elementsInvolved.length>0){bln_elementsExist=!0;return!0}});return bln_elementsExist},react:function(){this.determineScrollPositionAndDirection();Array.each(this.arr_preparedReactions,function(obj_reaction){this.determineReactionRelatedScrollPosition(obj_reaction);this.processReaction(obj_reaction)}.bind(this))},determineReactionRelatedScrollPosition:function(obj_reaction){if(obj_reaction.obj_reactOn.str_crossingTop!=='none'||obj_reaction.obj_reactOn.str_between!=='none'){var bln_aboveScrollPositionTop=this.int_currentScrollY<obj_reaction.int_scrollPositionTop;if(obj_reaction.bln_aboveScrollPositionTop!==bln_aboveScrollPositionTop){obj_reaction.bln_crossedScrollPositionTop=!0;obj_reaction.bln_aboveScrollPositionTop=bln_aboveScrollPositionTop}}
232if(obj_reaction.obj_reactOn.str_crossingBottom!=='none'||obj_reaction.obj_reactOn.str_between!=='none'){var bln_aboveScrollPositionBottom=this.int_currentScrollY<obj_reaction.int_scrollPositionBottom;if(obj_reaction.bln_aboveScrollPositionBottom!==bln_aboveScrollPositionBottom){obj_reaction.bln_crossedScrollPositionBottom=!0;obj_reaction.bln_aboveScrollPositionBottom=bln_aboveScrollPositionBottom}}},determineScrollPositionAndDirection:function(){this.int_currentScrollY=window.getScroll().y;if(this.int_currentScrollY>this.int_lastScrollY){this.str_currentDirection='down'}else if(this.int_currentScrollY<this.int_lastScrollY){this.str_currentDirection='up'}
233this.int_lastScrollY=this.int_currentScrollY},processReaction:function(obj_reaction){this.obj_currentReaction=obj_reaction;if(obj_reaction.bln_crossedScrollPositionTop){if(obj_reaction.obj_reactOn.str_crossingTop==='both'||obj_reaction.obj_reactOn.str_crossingTop===this.str_currentDirection){if(obj_reaction.obj_reactTimes.int_crossingTop>0){obj_reaction.obj_reactTimes.int_crossingTop--;if(obj_reaction.obj_reactTimes.int_crossingTop===0){obj_reaction.obj_reactOn.str_crossingTop='none'}}
234obj_reaction.func_reactionCrossingTop()}}
235if(obj_reaction.bln_crossedScrollPositionBottom){if(obj_reaction.obj_reactOn.str_crossingBottom==='both'||obj_reaction.obj_reactOn.str_crossingBottom===this.str_currentDirection){if(obj_reaction.obj_reactTimes.int_crossingBottom>0){obj_reaction.obj_reactTimes.int_crossingBottom--;if(obj_reaction.obj_reactTimes.int_crossingBottom===0){obj_reaction.obj_reactOn.str_crossingBottom='none'}}
236obj_reaction.func_reactionCrossingBottom()}}
237if(!obj_reaction.bln_aboveScrollPositionTop&&obj_reaction.bln_aboveScrollPositionBottom){if(obj_reaction.obj_reactOn.str_between==='both'||obj_reaction.obj_reactOn.str_between===this.str_currentDirection){if(obj_reaction.obj_reactTimes.int_between>0){obj_reaction.obj_reactTimes.int_between--;if(obj_reaction.obj_reactTimes.int_between===0){obj_reaction.obj_reactOn.str_between='none'}}
238obj_reaction.func_reactionBetween()}}
239obj_reaction.bln_crossedScrollPositionTop=!1;obj_reaction.bln_crossedScrollPositionBottom=!1;this.obj_currentReaction=null}};lsjs.addViewClass(str_moduleName,obj_classdef)})();(function(){var str_moduleName='scrollReactor';var obj_classdef={start:function(){}};lsjs.addControllerClass(str_moduleName,obj_classdef);lsjs.__moduleHelpers[str_moduleName]={self:null,start:function(obj_options){this.self=lsjs.createModule({__name:str_moduleName});this.self.__models.options.set(obj_options)}}})();(function(){var str_moduleName='sliderInstance';var obj_classdef={el_body:null,el_container:null,els_items:null,el_slidingArea:null,el_navigationArrowLeft:null,el_navigationArrowRight:null,el_navigationDotsContainer:null,els_navigationDots:null,bln_pointerInside:!1,int_autoplayIntervalCallbackId:null,float_windowWidth:null,float_slidingAreaMovingPositionX:null,float_requiredSlidingAreaWidth:null,float_requiredSlidingAreaHeight:null,float_visibleWidth:null,arr_allItemOffsets:null,arr_slideOffsets:null,int_currentSlideKey:null,bln_currentlyInTheMiddleOfTheSlide:null,bln_leftPossible:null,bln_rightPossible:null,bln_dragStartRequested:null,bln_currentlyDragging:null,bln_skipDrag:null,obj_dragData:null,start:function(){this.determineGivenElements();this.addNavigationArrows();this.initializeOnce();this.initializeSlider();window.addEvent('resize',this.reinitializeSlider.bind(this))},determineGivenElements:function(){this.el_body=$$('body')[0];this.el_container=this.__el_container;this.el_container.addClass('lsjs-slider-applied');this.els_items=this.el_container.getElements('> *');this.ensureItemMinimumHeight()},ensureItemMinimumHeight:function(){Array.each(this.els_items,function(el_item){if(!el_item.offsetHeight&&(el_item.getStyle('min-height')==='0px'||el_item.getStyle('min-height')==='0'||el_item.getStyle('min-height')==='auto')){el_item.setStyle('min-height','1px')}})},addNavigationArrows:function(){this.el_navigationArrowLeft=new Element('div.arrow');this.el_navigationArrowRight=new Element('div.arrow');this.el_container.adopt(new Element('div.navigation-arrow-container.left').adopt(this.el_navigationArrowLeft),new Element('div.navigation-arrow-container.right').adopt(this.el_navigationArrowRight));this.el_navigationArrowLeft.addEvent('click',this.jumpLeft.bind(this));this.el_navigationArrowRight.addEvent('click',this.jumpRight.bind(this))},check_dotNavigationImagesArePossible:function(){if(this.arr_slideOffsets.length!==this.els_items.length){return!1}
240var bln_previewImageExistForEachItem=!0;Array.each(this.els_items,function(el_item){if(!bln_previewImageExistForEachItem){return}
241var el_previewImage=el_item.get('tag')==='img'?el_item:el_item.getElement('img');if(typeOf(el_previewImage)!=='element'){bln_previewImageExistForEachItem=!1;return}
242el_item.store('previewImageSrc',el_previewImage.getProperty('src'))});return bln_previewImageExistForEachItem},addNavigationDots:function(){if(!this.__module.__parentModule.__models.options.data.bln_dotNavigationActive||this.arr_slideOffsets.length<=1||this.arr_slideOffsets.length>this.__module.__parentModule.__models.options.data.int_dotNavigationMaxNumberOfSlides){return}
243var bln_useDotNavigationImages=this.__module.__parentModule.__models.options.data.bln_dotNavigationUseImagesIfPossible&&this.check_dotNavigationImagesArePossible();this.el_navigationDotsContainer=new Element('div.navigation-dots-container');Array.each(this.arr_slideOffsets,function(float_slideOffset,int_slideKey){var el_navigationDot=new Element('span.navigation-dot').setProperty('data-misc-sli
243de',int_slideKey);var slideElement=this.els_items[int_slideKey];var pictureElement=slideElement.querySelector('picture')||slideElement.querySelector('img');if(pictureElement){var clonedElement=pictureElement.cloneNode(!0);el_navigationDot.append(clonedElement);if(bln_useDotNavigationImages){el_navigationDot.addClass('use-image');clonedElement.setStyles({'pointer-events':'none',})}}
244this.els_navigationDots.push(el_navigationDot)}.bind(this));this.el_container.grab(this.el_navigationDotsContainer.adopt(this.els_navigationDots),this.__module.__parentModule.__models.options.data.str_dotNavigationPosition);this.els_navigationDots.addEvent('click',function(event){if(this.__module.__parentModule.__models.options.data.bln_autoplayActive&&event.target.getProperty('data-misc-slide')==this.int_currentSlideKey){this.toggleAutoplay();return}
245this.moveSlidingAreaTo(this.arr_slideOffsets[event.target.getProperty('data-misc-slide')]);this.determineCurrentSlideKey();this.determineMovingPossibilites()}.bind(this))},removeNavigationDots:function(){if(typeOf(this.el_navigationDotsContainer)!=='element'){return}
246this.el_navigationDotsContainer.destroy()},initializeOnce:function(){this.el_container.addEvent('mouseenter',function(){this.bln_pointerInside=!0}.bind(this));this.el_container.addEvent('mouseleave',function(){this.bln_pointerInside=!1}.bind(this));if(this.__module.__parentModule.__models.options.data.bln_autoplayActive){this.el_container.addClass('autoplay-active');if(this.__module.__parentModule.__models.options.data.bln_autoplayPauseOnHover){this.el_container.addEvent('mouseenter',this.stopAutoplay.bind(this));if(this.__module.__parentModule.__models.options.data.bln_autoplayStartInstantly){this.el_container.addEvent('mouseleave',this.startAutoplay.bind(this))}}}},initializeSlider:function(){this.resetVariables();this.storeItemSizeInformation();this.setContainerToFixedWidth();this.setItemsToFixedWidth();this.insertSlidingArea();this.getVisibleWidth();this.getItemOffsets();this.getSlideOffsets();this.addNavigationDots();this.determineCurrentSlideKey();this.determineMovingPossibilites();this.dragInitialize();if(this.__module.__parentModule.__models.options.data.bln_autoplayActive){if(this.__module.__parentModule.__models.options.data.bln_autoplayStartInstantly&&(!this.__module.__parentModule.__models.options.data.bln_autoplayPauseOnHover||!this.bln_pointerInside)){this.startAutoplay()}else{this.stopAutoplay()}}},reinitializeSlider:function(){if(this.float_windowWidth===window.innerWidth){return}
247if(this.__module.__parentModule.__models.options.data.bln_autoplayActive){this.stopAutoplay()}
248this.removeSlidingArea();this.removeNavigationDots();this.unsetItemsFixedWidth();this.unsetContainerFixedWidth();this.initializeSlider()},startAutoplay:function(){this.el_container.removeClass('paused');this.el_container.addClass('playing');if(this.int_autoplayIntervalCallbackId){return}
249this.int_autoplayIntervalCallbackId=window.setInterval(this.autoplayMoveToNextSlide.bind(this),this.__module.__parentModule.__models.options.data.int_autoplayInterval)},stopAutoplay:function(){this.el_container.removeClass('playing');this.el_container.addClass('paused');if(!this.int_autoplayIntervalCallbackId){return}
250window.clearInterval(this.int_autoplayIntervalCallbackId);this.int_autoplayIntervalCallbackId=null},toggleAutoplay:function(){if(this.int_autoplayIntervalCallbackId){this.stopAutoplay()}else{this.startAutoplay()}},stopAndRestartAutoplay:function(){if(this.__module.__parentModule.__models.options.data.bln_autoplayActive){this.stopAutoplay();if(this.__module.__parentModule.__models.options.data.bln_autoplayStartInstantly&&(!this.__module.__parentModule.__models.options.data.bln_autoplayPauseOnHover||!this.bln_pointerInside)){this.startAutoplay()}}},autoplayMoveToNextSlide:function(){var int_keyOfSlideToMoveTo=0;if(this.int_currentSlideKey<this.arr_slideOffsets.length-1){int_keyOfSlideToMoveTo=this.int_currentSlideKey+1}
251this.moveSlidingAreaTo(this.arr_slideOffsets[int_keyOfSlideToMoveTo]);this.determineCurrentSlideKey();this.determineMovingPossibilites()},resetVariables:function(){this.float_windowWidth=window.innerWidth;this.float_slidingAreaMovingPositionX=0;
251this.float_requiredSlidingAreaWidth=0;this.float_requiredSlidingAreaHeight=0;this.float_visibleWidth=0;this.arr_allItemOffsets=[];this.arr_slideOffsets=[];this.els_navigationDots=new Elements();this.int_currentSlideKey=0;this.bln_currentlyInTheMiddleOfTheSlide=!1;this.bln_leftPossible=!0;this.bln_rightPossible=!0;this.obj_dragData={firstPointerPosition:{x:null,y:null},dragStartPosition:{x:null},dragOffsetPosition:{x:0},dragDirection:{x:'left'},float_slidingAreaMovingPositionXBeforeDrag:0,float_horizontalDragDistance:0,bln_dragged:!1};this.bln_dragStartRequested=!1;this.bln_currentlyDragging=!1;this.bln_skipDrag=!1},insertSlidingArea:function(){this.el_slidingArea=new Element('div.sliding-area');this.el_slidingArea.inject(this.el_container);this.el_slidingArea.adopt(this.els_items);this.getRequiredSlidingAreaWidth();this.getRequiredSlidingAreaHeight();this.setSlidingAreaSize();this.activateSlidingAreaTransitionAnimation()},removeSlidingArea:function(){this.el_container.adopt(this.els_items);this.el_slidingArea.destroy()},getVisibleWidth:function(){this.float_visibleWidth=this.el_container.clientWidth},storeItemSizeInformation:function(){var self=this;var str_containerDisplayStyle=this.el_container.getStyle('display');if(str_containerDisplayStyle==='flex'){if(this.__module.__parentModule.__models.options.data.bln_showConsoleWarnings){console.warn('LSJS SLIDER: The slider container is a flexbox which is not recommended. The container has now been set to "display: block;" and all elements have been set to "float: left;"');console.warn(this.el_container)}
252this.el_container.setStyle('display','block');Array.each(this.els_items,function(el_item){el_item.setStyles({'display':'block','float':'left'})})}
253Array.each(this.els_items,function(el_item){if(str_containerDisplayStyle==='flex'){el_item.setStyles({'display':'block','float':'left'})}
254el_item.measure(function(){var arr_itemStyles=this.getStyles('display','float');if(self.__module.__parentModule.__models.options.data.bln_showConsoleWarnings){if(arr_itemStyles.display!=='inline'&&arr_itemStyles.display!=='inline-block'&&arr_itemStyles['float']==='none'){console.warn('LSJS SLIDER: Element may not be able to align horizontally which is necessary for the slider to render correctly. Please make sure that all items in the slider align horizontally, e.g. by setting the display style of the elements to "inline" or "inline-block" or by floating the elements.');console.warn(el_item)}
255if(arr_itemStyles['float']!=='none'&&!this.offsetHeight){console.warn('LSJS SLIDER: Element has "float" set to "'+arr_itemStyles['float']+'" but has zero height. This elements might might not be aligned as expected and the slider might not render correctly.')
256console.warn(el_item)}
257if(!this.offsetWidth){console.warn('LSJS SLIDER: Element has zero width. The required width of the sliding area can therefore not be calculated correctly. This can happen if the element\'s size depends on a resource that hasn\'t been loaded yet (e.g. an image). Please make sure to explicitly set a width for such elements.');console.warn(el_item)}}
258var obj_computedSize=this.getComputedSize({styles:['margin','padding']});this.store('itemSizeInformation',{float_marginLeft:obj_computedSize['margin-left'],float_marginRight:obj_computedSize['margin-right'],float_paddingLeft:obj_computedSize['padding-left'],float_paddingRight:obj_computedSize['padding-right'],float_widthIncludingMarginLeft:obj_computedSize.width+obj_computedSize['margin-left'],float_completeWidthIncludingMargins:obj_computedSize.width+obj_computedSize['margin-left']+obj_computedSize['margin-right'],float_completeHeightIncludingMargins:obj_computedSize.height+obj_computedSize['margin-top']+obj_computedSize['margin-bottom'],float_originalWidth:obj_computedSize.width})})})},setContainerToFixedWidth:function(){this.el_container.setStyles({'overflow':'hidden','width':this.el_container.getComputedSize().width,'max-width':'unset','position':this.el_container.getStyle('position')==='static'?'relative':this.el_container.getStyle('position'),})},unsetContainerFixedWidth:function(){this.el_container.removeProperty('style')},setItemsToFixedWidth:function(){Array.each(this.els_items,function(el_item){el_item.setStyles({'width':Math.round(el_item.retrieve('itemSizeInformation').float_originalWidth),'max-width':'unset','margin-left':el_item.retrieve('itemSizeInformation').float_marginLeft,'margin-right':el_item.retrieve('itemSizeInformation').float_marginRight,'padding-left':el_item.retrieve('itemSizeInformation').float_paddingLeft,'padding-right':el_item.retrieve('itemSizeInformation').float_paddingRight})})},unsetItemsFixedWidth:function(){Array.each(this.els_items,function(el_item){el_item.removeProperty('style')})},setSlidingAreaSize:function(){this.el_slidingArea.setStyles({'width':this.float_requiredSli
258dingAreaWidth+'px','position':'relative'})},activateSlidingAreaTransitionAnimation:function(){this.el_slidingArea.setStyle('transition','all '+this.__module.__parentModule.__models.options.data.float_slidingAnimationDuration+'s ease 0s')},deactivateSlidingAreaTransitionAnimation:function(){this.el_slidingArea.setStyle('transition','none')},getRequiredSlidingAreaWidth:function(){var float_requiredWidth=0;Array.each(this.els_items,function(el_item){float_requiredWidth+=Math.round(el_item.retrieve('itemSizeInformation').float_completeWidthIncludingMargins)}.bind(this));this.float_requiredSlidingAreaWidth=float_requiredWidth},getRequiredSlidingAreaHeight:function(){var float_requiredHeight=0;Array.each(this.els_items,function(el_item){var float_itemHeight=el_item.retrieve('itemSizeInformation').float_completeHeightIncludingMargins;if(float_requiredHeight<float_itemHeight){float_requiredHeight=float_itemHeight}}.bind(this));this.float_requiredSlidingAreaHeight=float_requiredHeight},getItemOffsets:function(){Array.each(this.els_items,function(el_item){var float_itemOffset=el_item.offsetLeft-el_item.retrieve('itemSizeInformation').float_marginLeft;this.arr_allItemOffsets.push(float_itemOffset)}.bind(this));this.arr_allItemOffsets.sort(function(a,b){return a-b})},getSlideOffsets:function(){Array.each(this.els_items,function(el_item){var obj_lastSlideCoordinates={float_xFrom:this.arr_slideOffsets.length===0?0:this.arr_slideOffsets[this.arr_slideOffsets.length-1],float_xTo:this.arr_slideOffsets.length===0?0:(this.arr_slideOffsets[this.arr_slideOffsets.length-1]+this.float_visibleWidth)};var float_itemXFrom=el_item.offsetLeft-el_item.retrieve('itemSizeInformation').float_marginLeft;var obj_itemCoordinates={float_xFrom:float_itemXFrom,float_xTo:float_itemXFrom+el_item.retrieve('itemSizeInformation').float_widthIncludingMarginLeft};if(obj_itemCoordinates.float_xTo>obj_lastSlideCoordinates.float_xTo){this.arr_slideOffsets.push(obj_itemCoordinates.float_xFrom)}}.bind(this));if(this.__module.__parentModule.__models.options.data.bln_lastSlideFilled){if(this.float_requiredSlidingAreaWidth-this.arr_slideOffsets[this.arr_slideOffsets.length-1]<this.float_visibleWidth){this.arr_slideOffsets[this.arr_slideOffsets.length-1]=this.float_requiredSlidingAreaWidth-this.float_visibleWidth}}
259this.arr_slideOffsets.sort(function(a,b){return a-b})},getClosestItemOffset:function(){var float_closestOffset=this.obj_dragData.dragDirection.x==='left'?this.arr_allItemOffsets[this.arr_allItemOffsets.length-1]:0;var bln_alreadyFoundClosestOffset=!1;Array.each(this.arr_allItemOffsets,function(float_itemOffset){if(bln_alreadyFoundClosestOffset){return}
260if(this.obj_dragData.dragDirection.x==='left'){if(float_itemOffset>this.obj_dragData.dragOffsetPosition.x*-1){float_closestOffset=float_itemOffset;bln_alreadyFoundClosestOffset=!0}}else{if(float_itemOffset<this.obj_dragData.dragOffsetPosition.x*-1){float_closestOffset=float_itemOffset}}}.bind(this));if(float_closestOffset>this.arr_slideOffsets[this.arr_slideOffsets.length-1]){float_closestOffset=this.arr_slideOffsets[this.arr_slideOffsets.length-1]}
261return float_closestOffset},dragInitialize:function(){if(this.arr_slideOffsets.length<=1){return}
262if(this.check_isTouchDevice()){this.el_slidingArea.addEvent('touchstart',this.dragStart.bind(this));this.el_container.addEvent('touchend',this.dragEnd.bind(this));this.el_container.addEvent('touchmove',this.drag.bind(this))}else{if(this.__module.__parentModule.__models.options.data.bln_mouseDragOnNonTouchDeviceActive){this.el_container.addClass('mouse-drag-active');this.el_slidingArea.addEvent('mousedown',this.dragStart.bind(this));this.el_body.addEvent('mouseup',this.dragEnd.bind(this));this.el_body.addEvent('mouseleave',this.dragEnd.bind(this));this.el_body.addEvent('mousemove',this.drag.bind(this))}}},dragStart:function(event){if(this.__module.__parentModule.__models.options.data.bln_autoplayActive){this.stopAutoplay()}
263if(this.bln_skipDrag){return}
264this.bln_dragStartRequested=!0;this.obj_dragData.firstPointerPosition.x=(event.type==='touchstart'?event.event.touches[0].clientX:event.event.clientX);this.obj_dragData.firstPointerPosition.y=(event.type==='touchstart'?event.event.touches[0].clientY:event.event.clientY);this.obj_dragData.float_slidingAreaMovingPositionXBeforeDrag=this.float_slidingAreaMovingPositionX;this.obj_dragData.float_horizontalDragDistance=0},dragEnd:function(event){if(this.__module.__parentModule.__models.options.data.bln_autoplayActive&&this.__module.__parentModule.__models.options.data.bln_autoplayStartInstantly&&(!this.__module.__parentModule.__models.options.data.bln_autoplayPauseOnHover||!this.bln_pointerInside)){this.startAutoplay()}
265this.bln_dragStartRequested=!1;
265if(this.bln_skipDrag||!this.obj_dragData.bln_dragged){this.bln_skipDrag=!1;return}
266if(!this.bln_currentlyDragging){return}
267this.activateSlidingAreaTransitionAnimation();if(this.obj_dragData.float_horizontalDragDistance<0){this.obj_dragData.float_horizontalDragDistance=this.obj_dragData.float_horizontalDragDistance*-1}
268var float_newSlidingAreaOffset=this.obj_dragData.float_horizontalDragDistance>(this.__module.__parentModule.__models.options.data.float_minDragToSlide<1?(this.float_visibleWidth*this.__module.__parentModule.__models.options.data.float_minDragToSlide):this.__module.__parentModule.__models.options.data.float_minDragToSlide)?this.getClosestItemOffset():this.obj_dragData.float_slidingAreaMovingPositionXBeforeDrag;this.moveSlidingAreaTo(float_newSlidingAreaOffset);this.determineCurrentSlideKey();this.determineMovingPossibilites();this.bln_currentlyDragging=!1;this.el_container.removeClass('dragging')},drag:function(event){if(this.bln_dragStartRequested){var float_verticalDragDistance=this.obj_dragData.firstPointerPosition.y-(event.type==='touchmove'?event.event.touches[0].clientY:event.event.clientY);var float_horizontalDragDistance=this.obj_dragData.firstPointerPosition.x-(event.type==='touchmove'?event.event.touches[0].clientX:event.event.clientX);if(float_verticalDragDistance<0){float_verticalDragDistance=float_verticalDragDistance*-1}
269if(float_horizontalDragDistance<0){float_horizontalDragDistance=float_horizontalDragDistance*-1}
270if(float_horizontalDragDistance>float_verticalDragDistance){this.bln_currentlyDragging=!0;this.el_container.addClass('dragging');this.obj_dragData.dragStartPosition.x=this.obj_dragData.firstPointerPosition.x-this.obj_dragData.dragOffsetPosition.x;this.deactivateSlidingAreaTransitionAnimation()}
271this.bln_dragStartRequested=!1}
272if(!this.bln_currentlyDragging){return}
273event.preventDefault();this.obj_dragData.bln_dragged=!0;var float_oldDragOffsetPositionX=this.obj_dragData.dragOffsetPosition.x;this.obj_dragData.dragOffsetPosition.x=(event.type==='touchmove'?event.event.touches[0].clientX:event.event.clientX)-this.obj_dragData.dragStartPosition.x;if(float_oldDragOffsetPositionX<this.obj_dragData.dragOffsetPosition.x){this.obj_dragData.dragDirection.x='right'}
274if(float_oldDragOffsetPositionX>this.obj_dragData.dragOffsetPosition.x){this.obj_dragData.dragDirection.x='left'}
275this.obj_dragData.float_horizontalDragDistance=this.obj_dragData.firstPointerPosition.x-(event.type==='touchmove'?event.event.touches[0].clientX:event.event.clientX);this.moveSlidingAreaTo(this.obj_dragData.dragOffsetPosition.x*-1)},moveSlidingAreaTo:function(float_targetPositionX){this.float_slidingAreaMovingPositionX=float_targetPositionX;this.obj_dragData.dragOffsetPosition.x=this.float_slidingAreaMovingPositionX*-1;this.el_slidingArea.setStyle('transform','translate3d('+(this.float_slidingAreaMovingPositionX*-1)+'px, 0, 0')},jumpLeft:function(){this.stopAndRestartAutoplay();this.bln_skipDrag=!0;if(!this.bln_leftPossible){return}
276this.moveSlidingAreaTo(this.arr_slideOffsets[this.int_currentSlideKey===0?this.int_currentSlideKey:(this.int_currentSlideKey-(this.bln_currentlyInTheMiddleOfTheSlide?0:1))]);this.determineCurrentSlideKey();this.determineMovingPossibilites()},jumpRight:function(){this.stopAndRestartAutoplay();this.bln_skipDrag=!0;if(!this.bln_rightPossible){return}
277this.moveSlidingAreaTo(this.arr_slideOffsets[(this.int_currentSlideKey+1)]);this.determineCurrentSlideKey();this.determineMovingPossibilites()},determineCurrentSlideKey:function(){this.bln_currentlyInTheMiddleOfTheSlide=!1;Array.each(this.arr_slideOffsets,function(float_slideOffset,int_slideKey){if(this.float_slidingAreaMovingPositionX>=float_slideOffset&&this.float_slidingAreaMovingPositionX<float_slideOffset+this.float_visibleWidth){this.int_currentSlideKey=int_slideKey;this.bln_currentlyInTheMiddleOfTheSlide=this.float_slidingAreaMovingPositionX!==float_slideOffset}}.bind(this));if(this.els_navigationDots.length){this.els_navigationDots.removeClass('active');this.els_navigationDots[this.int_currentSlideKey].addClass('active')}},determineMovingPossibilites:function(){this.bln_rightPossible=!0;this.bln_leftPossible=!0;this.el_container.addClass('left-possible');this.el_container.addClass('right-possible');if(this.float_slidingAreaMovingPositionX>
277=(this.float_requiredSlidingAreaWidth-1)-this.float_visibleWidth){this.bln_rightPossible=!1;this.el_container.removeClass('right-possible')}
278if(this.float_slidingAreaMovingPositionX<=0){this.bln_leftPossible=!1;this.el_container.removeClass('left-possible')}},check_isTouchDevice:function(){return'ontouchstart' in document.documentElement}};lsjs.addViewClass(str_moduleName,obj_classdef)})();(function(){var str_moduleName='sliderInstance';var obj_classdef={start:function(){}};lsjs.addControllerClass(str_moduleName,obj_classdef)})();(function(){var obj_classdef_model={name:'options',data:{},start:function(){this.data={el_domReference:null,str_containerSelector:'.lsjs-slider',bln_lastSlideFilled:!0,bln_mouseDragOnNonTouchDeviceActive:!0,float_minDragToSlide:0.1,float_slidingAnimationDuration:0.4,bln_autoplayActive:!0,bln_autoplayStartInstantly:!1,int_autoplayInterval:4000,bln_autoplayPauseOnHover:!0,bln_dotNavigationActive:!0,str_dotNavigationPosition:'bottom',bln_dotNavigationUseImagesIfPossible:!0,int_dotNavigationMaxNumberOfSlides:10,bln_showConsoleWarnings:!0}},set:function(obj_options){Object.merge(this.data,obj_options);this.__module.onModelLoaded()}};lsjs.addModelClass('sliderManager',obj_classdef_model)})();(function(){var str_moduleName='sliderManager';var obj_classdef={start:function(){var els_toEnhance;if(this.__models.options.data.el_domReference!==undefined&&typeOf(this.__models.options.data.el_domReference)==='element'){els_toEnhance=this.__models.options.data.el_domReference.getElements(this.__models.options.data.str_containerSelector)}else{els_toEnhance=$$(this.__models.options.data.str_containerSelector)}
279Array.each(els_toEnhance,function(el_container){if(!el_container.retrieve('alreadyHandledBy_'+str_moduleName)){el_container.store('alreadyHandledBy_'+str_moduleName,!0)}else{return}
280lsjs.createModule({__name:'sliderInstance',__parentModule:this.__module,__useLoadingIndicator:!1,__el_container:el_container})}.bind(this))}};lsjs.addControllerClass(str_moduleName,obj_classdef);lsjs.__moduleHelpers[str_moduleName]={self:null,start:function(obj_options){this.self=lsjs.createModule({__name:str_moduleName});this.self.__models.options.set(obj_options)}}})();(function(){var str_moduleName='sliderInputInstance';var obj_classdef={float_minValue:111111,float_maxValue:999999,start:function(){var self=this;this.registerElements(this.__el_container,'main',!0);if(typeOf(this.__autoElements.main.sliderInput_inputField)!=='elements'||typeOf(this.__autoElements.main.sliderInput_targetContainer)!=='elements'){console.warn(str_moduleName+': required elements missing.')}
281Array.each(this.__autoElements.main.sliderInput_inputField,function(el_input,int_key){if(el_input.get('tag')!=='input'){var el_realInput=el_input.getElement('input');if(typeOf(el_realInput)==='element'){this.__autoElements.main.sliderInput_inputField[int_key]=el_realInput}else{console.warn('no actual input element could be found in ',el_input)}}}.bind(this));this.float_minValue=this.__el_container.getProperty('data-lsjs-slider-input-min-value')!==null?lsjs.helpers.decimalSaveParseFloat(this.__el_container.getProperty('data-lsjs-slider-input-min-value')):this.float_minValue;this.float_maxValue=this.__el_container.getProperty('data-lsjs-slider-input-max-value')!==null?lsjs.helpers.decimalSaveParseFloat(this.__el_container.getProperty('data-lsjs-slider-input-max-value')):this.float_maxValue;noUiSlider.create(this.__autoElements.main.sliderInput_targetContainer[0],{range:{'min':this.float_minValue,'max':this.float_maxValue},start:this.getStartParameterFromInputs(),connect:!0});this.__autoElements.main.sliderInput_targetContainer[0].noUiSlider.on('update',function(){self.setInputFieldsToSliderValues(this.get())});this.__autoElements.main.sliderInput_inputField.addEvent('change',function(){this.setSliderValuesToInputFieldValues()}.bind(this));this.__autoElements.main.sliderInput_inputField.getParent('form').addEvent('reset',function(){window.setTimeout(function(){this.setSliderValuesToInputFieldValues()}.bind(this),1)}.bind(this))},setSliderValuesToInputFieldValues:function(){var arr_valuesToSet=[];Array.each(this.__autoElements.main.sliderInput_inputField,function(el_input,int_key){arr_valuesToSet[int_key]=lsjs.helpers.decimalSaveParseFloat(el_input.getProperty('value'))}.bind(this));this.__autoElements.main.sliderInput_targetContainer[0].noUiSlider.set(arr_valuesToSet)},setInputFieldsToSliderValues:function(arr_sliderValues){Array.each(this.__autoElements.main.sliderInput_inputField,function(el_input,int_key){el_input.setProperty('value',Math.round(arr_sliderValues[int_key]))})},getStartParameterFromInputs:function(){var arr_start=[];Array.each(this.__autoElements.main.sliderInput_inputField,function(el_input){arr_start.push(el_input.getProperty('value'))});return arr_start}};lsjs.addViewClass(str_moduleName,obj_classdef)})();(function(){var str_moduleName='sliderInputInstance';var obj_classdef={start:function(){}};lsjs.addControllerClass(str_moduleName,obj_classdef)})();(function(){var obj_classdef_model={name:'options',data:{},start:function(){this.data={el_domReference:null,str_containerSelector:'[data-lsjs-component~="sliderInput"]',str_classToSetWhenModuleApplied:'sliderINputApplied'}}
281,set:function(obj_options){Object.merge(this.data,obj_options);this.__module.onModelLoaded()}};lsjs.addModelClass('sliderInputManager',obj_classdef_model)})();(function(){var str_moduleName='sliderInputManager';var obj_classdef={start:function(){var els_toEnhance;if(this.__models.options.data.el_domReference!==undefined&&typeOf(this.__models.options.data.el_domReference)==='element'){els_toEnhance=this.__models.options.data.el_domReference.getElements(this.__models.options.data.str_containerSelector)}else{els_toEnhance=$$(this.__models.options.data.str_containerSelector)}
282Array.each(els_toEnhance,function(el_container){if(!el_container.retrieve('alreadyHandledBy_'+str_moduleName)){el_container.store('alreadyHandledBy_'+str_moduleName,!0)}else{return}
283el_container.addClass(this.__models.options.data.str_classToSetWhenModuleApplied);lsjs.createModule({__name:'sliderInputInstance',__parentModule:this.__module,__useLoadingIndicator:!1,__el_container:el_container})}.bind(this))}};lsjs.addControllerClass(str_moduleName,obj_classdef);lsjs.__moduleHelpers[str_moduleName]={self:null,start:function(obj_options){this.self=lsjs.createModule({__name:str_moduleName});this.self.__models.options.set(obj_options)}}})();(function(global,factory){typeof exports==='object'&&typeof module!=='undefined'?factory(exports):typeof define==='function'&&define.amd?define(['exports'],factory):(global=typeof globalThis!=='undefined'?globalThis:global||self,factory(global.noUiSlider={}))}(this,(function(exports){'use strict';exports.PipsMode=void 0;(function(PipsMode){PipsMode.Range="range";PipsMode.Steps="steps";PipsMode.Positions="positions";PipsMode.Count="count";PipsMode.Values="values"})(exports.PipsMode||(exports.PipsMode={}));exports.PipsType=void 0;(function(PipsType){PipsType[PipsType.None=-1]="None";PipsType[PipsType.NoValue=0]="NoValue";PipsType[PipsType.LargeValue=1]="LargeValue";PipsType[PipsType.SmallValue=2]="SmallValue"})(exports.PipsType||(exports.PipsType={}));function isValidFormatter(entry){return isValidPartialFormatter(entry)&&typeof entry.from==="function"}
284function isValidPartialFormatter(entry){return typeof entry==="object"&&typeof entry.to==="function"}
285function removeElement(el){el.parentElement.removeChild(el)}
286function isSet(value){return value!==null&&value!==undefined}
287function preventDefault(e){e.preventDefault()}
288function unique(array){return array.filter(function(a){return!this[a]?(this[a]=!0):!1},{})}
289function closest(value,to){return Math.round(value/to)*to}
290function offset(elem,orientation){var rect=elem.getBoundingClientRect();var doc=elem.ownerDocument;var docElem=doc.documentElement;var pageOffset=getPageOffset(doc);if(/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)){pageOffset.x=0}
291return orientation?rect.top+pageOffset.y-docElem.clientTop:rect.left+pageOffset.x-docElem.clientLeft}
292function isNumeric(a){return typeof a==="number"&&!isNaN(a)&&isFinite(a)}
293function addClassFor(element,className,duration){if(duration>0){addClass(element,className);setTimeout(function(){removeClass(element,className)},duration)}}
294function limit(a){return Math.max(Math.min(a,100),0)}
295function asArray(a){return Array.isArray(a)?a:[a]}
296function countDecimals(numStr){numStr=String(numStr);var pieces=numStr.split(".");return pieces.length>1?pieces[1].length:0}
297function addClass(el,className){if(el.classList&&!/\s/.test(className)){el.classList.add(className)}else{el.className+=" "+className}}
298function removeClass(el,className){if(el.classList&&!/\s/.test(className)){el.classList.remove(className)}else{el.className=el.className.replace(new RegExp("(^|\b)"+className.split(" ").join("|")+"(\b|$)","gi")," ")}}
299function hasClass(el,className){return el.classList?el.classList.contains(className):new RegExp("\b"+className+"\b").test(el.className)}
300function getPageOffset(doc){var supportPageOffset=window.pageXOffset!==undefined;var isCSS1Compat=(doc.compatMode||"")==="CSS1Compat";var x=supportPageOffset?window.pageXOffset:isCSS1Compat?doc.documentElement.scrollLeft:doc.body.scrollLeft;var y=supportPageOffset?window.pageYOffset:isCSS1Compat?doc.documentElement.scrollTop:doc.body.scrollTop;return{x:x,y:y}}
301function getActions(){return window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}
301:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"}}
302function getSupportsPassive(){var supportsPassive=!1;try{var opts=Object.defineProperty({},"passive",{get:function(){supportsPassive=!0}});window.addEventListener("test",null,opts)}catch(e){}
303return supportsPassive}
304function getSupportsTouchActionNone(){return window.CSS&&CSS.supports&&CSS.supports("touch-action","none")}
305function subRangeRatio(pa,pb){return 100/(pb-pa)}
306function fromPercentage(range,value,startRange){return(value*100)/(range[startRange+1]-range[startRange])}
307function toPercentage(range,value){return fromPercentage(range,range[0]<0?value+Math.abs(range[0]):value-range[0],0)}
308function isPercentage(range,value){return(value*(range[1]-range[0]))/100+range[0]}
309function getJ(value,arr){var j=1;while(value>=arr[j]){j+=1}
310return j}
311function toStepping(xVal,xPct,value){if(value>=xVal.slice(-1)[0]){return 100}
312var j=getJ(value,xVal);var va=xVal[j-1];var vb=xVal[j];var pa=xPct[j-1];var pb=xPct[j];return pa+toPercentage([va,vb],value)/subRangeRatio(pa,pb)}
313function fromStepping(xVal,xPct,value){if(value>=100){return xVal.slice(-1)[0]}
314var j=getJ(value,xPct);var va=xVal[j-1];var vb=xVal[j];var pa=xPct[j-1];var pb=xPct[j];return isPercentage([va,vb],(value-pa)*subRangeRatio(pa,pb))}
315function getStep(xPct,xSteps,snap,value){if(value===100){return value}
316var j=getJ(value,xPct);var a=xPct[j-1];var b=xPct[j];if(snap){if(value-a>(b-a)/2){return b}
317return a}
318if(!xSteps[j-1]){return value}
319return xPct[j-1]+closest(value-xPct[j-1],xSteps[j-1])}
320var Spectrum=(function(){function Spectrum(entry,snap,singleStep){this.xPct=[];this.xVal=[];this.xSteps=[];this.xNumSteps=[];this.xHighestCompleteStep=[];this.xSteps=[singleStep||!1];this.xNumSteps=[!1];this.snap=snap;var index;var ordered=[];Object.keys(entry).forEach(function(index){ordered.push([asArray(entry[index]),index])});ordered.sort(function(a,b){return a[0][0]-b[0][0]});for(index=0;index<ordered.length;index++){this.handleEntryPoint(ordered[index][1],ordered[index][0])}
321this.xNumSteps=this.xSteps.slice(0);for(index=0;index<this.xNumSteps.length;index++){this.handleStepPoint(index,this.xNumSteps[index])}}
322Spectrum.prototype.getDistance=function(value){var index;var distances=[];for(index=0;index<this.xNumSteps.length-1;index++){var step=this.xNumSteps[index];if(step&&(value/step)%1!==0){throw new Error("noUiSlider: 'limit', 'margin' and 'padding' of "+this.xPct[index]+"% range must be divisible by step.")}
323distances[index]=fromPercentage(this.xVal,value,index)}
324return distances};Spectrum.prototype.getAbsoluteDistance=function(value,distances,direction){var xPct_index=0;if(value<this.xPct[this.xPct.length-1]){while(value>this.xPct[xPct_index+1]){xPct_index++}}else if(value===this.xPct[this.xPct.length-1]){xPct_index=this.xPct.length-2}
325if(!direction&&value===this.xPct[xPct_index+1]){xPct_index++}
326if(distances===null){distances=[]}
327var start_factor;var rest_factor=1;var rest_rel_distance=distances[xPct_index];var range_pct=0;var rel_range_distance=0;var abs_distance_counter=0;var range_counter=0;if(direction){start_factor=(value-this.xPct[xPct_index])/(this.xPct[xPct_index+1]-this.xPct[xPct_index])}else{start_factor=(this.xPct[xPct_index+1]-value)/(this.xPct[xPct_index+1]-this.xPct[xPct_index])}
328while(rest_rel_distance>0){range_pct=this.xPct[xPct_index+1+range_counter]-this.xPct[xPct_index+range_counter];if(distances[xPct_index+range_counter]*rest_factor+100-start_factor*100>100){rel_range_distance=range_pct*start_factor;rest_factor=(rest_rel_distance-100*start_factor)/distances[xPct_index+range_counter];start_factor=1}else{rel_range_distance=((distances[xPct_index+range_counter]*range_pct)/100)*rest_factor;rest_factor=0}
329if(direction){abs_distance_counter=abs_distance_counter-rel_range_distance;if(this.xPct.length+range_counter>=1){range_counter--}}else{abs_distance_counter=abs_distance_counter+rel_range_distance;if(this.xPct.length-range_counter>=1){range_counter++}}
330rest_rel_distance=distances[xPct_index+range_counter]*rest_factor}
331return value+abs_distance_counter};Spectrum.prototype.toStepping=function(value){value=toStepping(this.xVal,this.xPct,value);return value};Spectrum.prototype.fromStepping=function(value){return fromStepping(this.xVal,this.xPct,value)};Spectrum.prototype.getStep=function(value){value=getStep(this.xPct,this.xSteps,this.snap,value);return value};Spectrum.prototype.getDefaultStep=function(value,isDown,size){var j=getJ(value,this.xPct);if(value===100||(isDown&&value===this.xPct[j-1])){j=Math.max(j-1,1)}
332return(this.xVal[j]-this.xVal[j-1])/size};Spectrum.prototype.getNearbySteps=function(value){var j=getJ(value,this.xPct);return{stepBefore:{startValue:this.xVal[j-2],step:this.xNumSteps[j-2],highestStep:this.xHighestCompleteStep[j-2]},thisStep:{startValue:this.xVal[j-1],step:this.xNumSteps[j-1],highestStep:this.xHighestCompleteStep[j-1]},stepAfter:{startValue:this.xVal[j],step:this.xNumSteps[j],highe
332stStep:this.xHighestCompleteStep[j]}}};Spectrum.prototype.countStepDecimals=function(){var stepDecimals=this.xNumSteps.map(countDecimals);return Math.max.apply(null,stepDecimals)};Spectrum.prototype.convert=function(value){return this.getStep(this.toStepping(value))};Spectrum.prototype.handleEntryPoint=function(index,value){var percentage;if(index==="min"){percentage=0}else if(index==="max"){percentage=100}else{percentage=parseFloat(index)}
333if(!isNumeric(percentage)||!isNumeric(value[0])){throw new Error("noUiSlider: 'range' value isn't numeric.")}
334this.xPct.push(percentage);this.xVal.push(value[0]);var value1=Number(value[1]);if(!percentage){if(!isNaN(value1)){this.xSteps[0]=value1}}else{this.xSteps.push(isNaN(value1)?!1:value1)}
335this.xHighestCompleteStep.push(0)};Spectrum.prototype.handleStepPoint=function(i,n){if(!n){return}
336if(this.xVal[i]===this.xVal[i+1]){this.xSteps[i]=this.xHighestCompleteStep[i]=this.xVal[i];return}
337this.xSteps[i]=fromPercentage([this.xVal[i],this.xVal[i+1]],n,0)/subRangeRatio(this.xPct[i],this.xPct[i+1]);var totalSteps=(this.xVal[i+1]-this.xVal[i])/this.xNumSteps[i];var highestStep=Math.ceil(Number(totalSteps.toFixed(3))-1);var step=this.xVal[i]+this.xNumSteps[i]*highestStep;this.xHighestCompleteStep[i]=step};return Spectrum}());var defaultFormatter={to:function(value){return value===undefined?"":value.toFixed(2)},from:Number};
337var cssClasses={target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",touchArea:"touch-area",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",connects:"connects",ltr:"ltr",rtl:"rtl",textDirectionLtr:"txt-dir-ltr",textDirectionRtl:"txt-dir-rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"};var INTERNAL_EVENT_NS={tooltips:".__tooltips",aria:".__aria"};function testStep(parsed,entry){if(!isNumeric(entry)){throw new Error("noUiSlider: 'step' is not numeric.")}
338parsed.singleStep=entry}
339function testKeyboardPageMultiplier(parsed,entry){if(!isNumeric(entry)){throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.")}
340parsed.keyboardPageMultiplier=entry}
341function testKeyboardDefaultStep(parsed,entry){if(!isNumeric(entry)){throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.")}
342parsed.keyboardDefaultStep=entry}
343function testRange(parsed,entry){if(typeof entry!=="object"||Array.isArray(entry)){throw new Error("noUiSlider: 'range' is not an object.")}
344if(entry.min===undefined||entry.max===undefined){throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.")}
345if(entry.min===entry.max){throw new Error("noUiSlider: 'range' 'min' and 'max' cannot be equal.")}
346parsed.spectrum=new Spectrum(entry,parsed.snap||!1,parsed.singleStep)}
347function testStart(parsed,entry){entry=asArray(entry);if(!Array.isArray(entry)||!entry.length){throw new Error("noUiSlider: 'start' option is incorrect.")}
348parsed.handles=entry.length;parsed.start=entry}
349function testSnap(parsed,entry){if(typeof entry!=="boolean"){throw new Error("noUiSlider: 'snap' option must be a boolean.")}
350parsed.snap=entry}
351function testAnimate(parsed,entry){if(typeof entry!=="boolean"){throw new Error("noUiSlider: 'animate' option must be a boolean.")}
352parsed.animate=entry}
353function testAnimationDuration(parsed,entry){if(typeof entry!=="number"){throw new Error("noUiSlider: 'animationDuration' option must be a number.")}
354parsed.animationDuration=entry}
355function testConnect(parsed,entry){var connect=[!1];var i;if(entry==="lower"){entry=[!0,!1]}else if(entry==="upper"){entry=[!1,!0]}
356if(entry===!0||entry===!1){for(i=1;i<parsed.handles;i++){connect.push(entry)}
357connect.push(!1)}else if(!Array.isArray(entry)||!entry.length||entry.length!==parsed.handles+1){throw new Error("noUiSlider: 'connect' option doesn't match handle count.")}else{connect=entry}
358parsed.connect=connect}
359function testOrientation(parsed,entry){switch(entry){case "horizontal":parsed.ort=0;break;case "vertical":parsed.ort=1;break;default:throw new Error("noUiSlider: 'orientation' option is invalid.")}}
360function testMargin(parsed,entry){if(!isNumeric(entry)){throw new Error("noUiSlider: 'margin' option must be numeric.")}
361if(entry===0){return}
362parsed.margin=parsed.spectrum.getDistance(entry)}
363function testLimit(parsed,entry){if(!isNumeric(entry)){throw new Error("noUiSlider: 'limit' option must be numeric.")}
364parsed.limit=parsed.spectrum.getDistance(entry);if(!parsed.limit||parsed.handles<2){throw new Error("noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles.")}}
365function testPadding(parsed,entry){var index;if(!isNumeric(entry)&&!Array.isArray(entry)){throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.")}
366if(Array.isArray(entry)&&!(entry.length===2||isNumeric(entry[0])||isNumeric(entry[1]))){throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.")}
367if(entry===0){return}
368if(!Array.isArray(entry)){entry=[entry,entry]}
369parsed.padding=[parsed.spectrum.getDistance(entry[0]),parsed.spectrum.getDistance(entry[1])];for(index=0;index<parsed.spectrum.xNumSteps.length-1;index++){if(parsed.padding[0][index]<0||parsed.padding[1][index]<0){throw new Error("noUiSlider: 'padding' option must be a positive number(s).")}}
370var totalPadding=entry[0]+entry[1];var firstValue=parsed.spectrum.xVal[0];var lastValue=parsed.spectrum.xVal[parsed.spectrum.xVal.length-1];if(totalPadding/(lastValue-firstValue)>1){throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.")}}
371function testDirection(parsed,entry){switch(entry){case "ltr":parsed.dir=0;break;case "rtl":parsed.dir=1;break;default:throw new Error("noUiSlider: 'direction' option was not recognized.")}}
372function testBehaviour(parsed,entry){if(typeof entry!=="string"){throw new Error("noUiSlider: 'behaviour' must be a string containing options.")}
373var tap=entry.indexOf("tap")>=0;var drag=entry.indexOf("drag")>=0;var fixed=entry.indexOf("fixed")>=0;var snap=entry.indexOf("snap")>=0;var hover=entry.indexOf("hover")>=0;var unconstrained=entry.indexOf("unconstrained")>=0;if(fixed){if(parsed.handles!==2){throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles")}
374testMargin(parsed,parsed.start[1]-parsed.start[0])}
375if(unconstrained&&(parsed.margin||parsed.limit)){throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit")}
376parsed.events={tap:tap||snap,drag:drag,fixed:fixed,snap:snap,hover:hover,unconstrained:unconstrained}}
377function testTooltips(parsed,entry){if(entry===!1){return}
378if(entry===!0||isValidPartialFormatter(entry)){parsed.tooltips=[];for(var i=0;i<parsed.handles;i++){parsed.tooltips.push(entry)}}else{entry=asArray(entry);if(entry.length!==parsed.handles){throw new Error("noUiSlider: must pass a formatter for all handles.")}
379entry.forEach(function(formatter){if(typeof formatter!=="boolean"&&!isValidPartialFormatter(formatter)){throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.")}});parsed.tooltips=entry}}
380function testAriaFormat(parsed,entry){if(!isValidPartialFormatter(entry)){throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.")}
381parsed.ariaFormat=entry}
382function testFormat(parsed,entry){if(!isValidFormatter(entry)){throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.")}
383parsed.format=entry}
384function testKeyboardSupport(parsed,entry){if(typeof entry!=="boolean"){throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.")}
385parsed.keyboardSupport=entry}
386function testDocumentElement(parsed,entry){parsed.documentElement=entry}
387function testCssPrefix(parsed,entry){if(typeof entry!=="string"&&entry!==!1){throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.")}
388parsed.cssPrefix=entry}
389function testCssClasses(parsed,entry){if(typeof entry!=="object"){throw new Error("noUiSlider: 'cssClasses' must be an object.")}
390if(typeof parsed.cssPrefix==="string"){parsed.cssClasses={};Object.keys(entry).forEach(function(key){parsed.cssClasses[key]=parsed.cssPrefix+entry[key]})}else{parsed.cssClasses=entry}}
391function testOptions(options){var parsed={margin:null,limit:null,padding:null,animate:!0,animationDuration:300,ariaFormat:defaultFormatter,format:defaultFormatter};var tests={step:{r:!1,t:testStep},keyboardPageMultiplier:{r:!1,t:testKeyboardPageMultiplier},keyboardDefaultStep:{r:!1,t:testKeyboardDefaultStep},start:{r:!0,t:testStart},connect:{r:!0,t:testConnect},direction:{r:!0,t:testDirection},snap:{r:!1,t:testSnap},animate:{r:!1,t:testAnimate},animationDuration:{r:!1,t:testAnimationDuration},range:{r:!0,t:testRange},orientation:{r:!1,t:testOrientation},margin:{r:!1,t:testMargin},limit:{r:!1,t:testLimit},padding:{r:!1,t:testPadding},behaviour:{r:!0,t:testBehaviour},ariaFormat:{r:!1,t:testAriaFormat},format:{r:!1,t:testFormat},tooltips:{r:!1,t:testTooltips},keyboardSupport:{r:!0,t:testKeyboardSupport},documentElement:{r:!1,t:testDocumentElement},cssPrefix:{r:!0,t:testCssPrefix}
391,cssClasses:{r:!0,t:testCssClasses}};var defaults={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasses:cssClasses,keyboardPageMultiplier:5,keyboardDefaultStep:10};if(options.format&&!options.ariaFormat){options.ariaFormat=options.format}
392Object.keys(tests).forEach(function(name){if(!isSet(options[name])&&defaults[name]===undefined){if(tests[name].r){throw new Error("noUiSlider: '"+name+"' is required.")}
393return}
394tests[name].t(parsed,!isSet(options[name])?defaults[name]:options[name])});parsed.pips=options.pips;var d=document.createElement("div");var msPrefix=d.style.msTransform!==undefined;var noPrefix=d.style.transform!==undefined;parsed.transformRule=noPrefix?"transform":msPrefix?"msTransform":"webkitTransform";var styles=[["left","top"],["right","bottom"]];parsed.style=styles[parsed.dir][parsed.ort];return parsed}
395function scope(target,options,originalOptions){var actions=getActions();var supportsTouchActionNone=getSupportsTouchActionNone();var supportsPassive=supportsTouchActionNone&&getSupportsPassive();var scope_Target=target;var scope_Base;var scope_Handles;var scope_Connects;var scope_Pips;var scope_Tooltips;var scope_Spectrum=options.spectrum;var scope_Values=[];var scope_Locations=[];var scope_HandleNumbers=[];var scope_ActiveHandlesCount=0;var scope_Events={};var scope_Document=target.ownerDocument;var scope_DocumentElement=options.documentElement||scope_Document.documentElement;var scope_Body=scope_Document.body;var scope_DirOffset=scope_Document.dir==="rtl"||options.ort===1?0:100;function addNodeTo(addTarget,className){var div=scope_Document.createElement("div");if(className){addClass(div,className)}
396addTarget.appendChild(div);return div}
397function addOrigin(base,handleNumber){var origin=addNodeTo(base,options.cssClasses.origin);var handle=addNodeTo(origin,options.cssClasses.handle);addNodeTo(handle,options.cssClasses.touchArea);handle.setAttribute("data-handle",String(handleNumber));if(options.keyboardSupport){handle.setAttribute("tabindex","0");handle.addEventListener("keydown",function(event){return eventKe
397ydown(event,handleNumber)})}
398handle.setAttribute("role","slider");handle.setAttribute("aria-orientation",options.ort?"vertical":"horizontal");if(handleNumber===0){addClass(handle,options.cssClasses.handleLower)}else if(handleNumber===options.handles-1){addClass(handle,options.cssClasses.handleUpper)}
399return origin}
400function addConnect(base,add){if(!add){return!1}
401return addNodeTo(base,options.cssClasses.connect)}
402function addElements(connectOptions,base){var connectBase=addNodeTo(base,options.cssClasses.connects);scope_Handles=[];scope_Connects=[];scope_Connects.push(addConnect(connectBase,connectOptions[0]));for(var i=0;i<options.handles;i++){scope_Handles.push(addOrigin(base,i));scope_HandleNumbers[i]=i;scope_Connects.push(addConnect(connectBase,connectOptions[i+1]))}}
403function addSlider(addTarget){addClass(addTarget,options.cssClasses.target);if(options.dir===0){addClass(addTarget,options.cssClasses.ltr)}else{addClass(addTarget,options.cssClasses.rtl)}
404if(options.ort===0){addClass(addTarget,options.cssClasses.horizontal)}else{addClass(addTarget,options.cssClasses.vertical)}
405var textDirection=getComputedStyle(addTarget).direction;if(textDirection==="rtl"){addClass(addTarget,options.cssClasses.textDirectionRtl)}else{addClass(addTarget,options.cssClasses.textDirectionLtr)}
406return addNodeTo(addTarget,options.cssClasses.base)}
407function addTooltip(handle,handleNumber){if(!options.tooltips||!options.tooltips[handleNumber]){return!1}
408return addNodeTo(handle.firstChild,options.cssClasses.tooltip)}
409function isSliderDisabled(){return scope_Target.hasAttribute("disabled")}
410function isHandleDisabled(handleNumber){var handleOrigin=scope_Handles[handleNumber];return handleOrigin.hasAttribute("disabled")}
411function removeTooltips(){if(scope_Tooltips){removeEvent("update"+INTERNAL_EVENT_NS.tooltips);scope_Tooltips.forEach(function(tooltip){if(tooltip){removeElement(tooltip)}});scope_Tooltips=null}}
412function tooltips(){removeTooltips();scope_Tooltips=scope_Handles.map(addTooltip);bindEvent("update"+INTERNAL_EVENT_NS.tooltips,function(values,handleNumber,unencoded){if(!scope_Tooltips||!options.tooltips){return}
413if(scope_Tooltips[handleNumber]===!1){return}
414var formattedValue=values[handleNumber];if(options.tooltips[handleNumber]!==!0){formattedValue=options.tooltips[handleNumber].to(unencoded[handleNumber])}
415scope_Tooltips[handleNumber].innerHTML=formattedValue})}
416function aria(){removeEvent("update"+INTERNAL_EVENT_NS.aria);bindEvent("update"+INTERNAL_EVENT_NS.aria,function(values,handleNumber,unencoded,tap,positions){scope_HandleNumbers.forEach(function(index){var handle=scope_Handles[index];var min=checkHandlePosition(scope_Locations,index,0,!0,!0,!0);var max=checkHandlePosition(scope_Locations,index,100,!0,!0,!0);var now=positions[index];var text=String(options.ariaFormat.to(unencoded[index]));min=scope_Spectrum.fromStepping(min).toFixed(1);max=scope_Spectrum.fromStepping(max).toFixed(1);now=scope_Spectrum.fromStepping(now).toFixed(1);handle.children[0].setAttribute("aria-valuemin",min);handle.children[0].setAttribute("aria-valuemax",max);handle.children[0].setAttribute("aria-valuenow",now);handle.children[0].setAttribute("aria-valuetext",text)})})}
417function getGroup(pips){if(pips.mode===exports.PipsMode.Range||pips.mode===exports.PipsMode.Steps){return scope_Spectrum.xVal}
418if(pips.mode===exports.PipsMode.Count){if(pips.values<2){throw new Error("noUiSlider: 'values' (>= 2) required for mode 'count'.")}
419var interval=pips.values-1;var spread=100/interval;var values=[];while(interval--){values[interval]=interval*spread}
420values.push(100);return mapToRange(values,pips.stepped)}
421if(pips.mode===exports.PipsMode.Positions){return mapToRange(pips.values,pips.stepped)}
422if(pips.mode===exports.PipsMode.Values){if(pips.stepped){return pips.values.map(function(value){return scope_Spectrum.fromStepping(scope_Spectrum.getStep(scope_Spectrum.toStepping(value)))})}
423return pips.values}
424return[]}
425function mapToRange(values,stepped){return values.map(function(value){return scope_Spectrum.fromStepping(stepped?scope_Spectrum.getStep(value):value)})}
426function generateSpread(pips){function safeIncrement(value,increment){return Number((value+increment).toFixed(7))}
427var group=getGroup(pips);var indexes={};var firstInRange=scope_Spectrum.xVal[0];var lastInRange=scope_Spectrum.xVal[scope_Spectrum.xVal.length-1];var ignoreFirst=!1;var ignoreLast=!1;var prevPct=0;group=unique(group.slice().sort(function(a,b){return a-b}));if(group[0]!==firstInRange){group.unshift(firstInRange);
427ignoreFirst=!0}
428if(group[group.length-1]!==lastInRange){group.push(lastInRange);ignoreLast=!0}
429group.forEach(function(current,index){var step;var i;var q;var low=current;var high=group[index+1];var newPct;var pctDifference;var pctPos;var type;var steps;var realSteps;var stepSize;var isSteps=pips.mode===exports.PipsMode.Steps;if(isSteps){step=scope_Spectrum.xNumSteps[index]}
430if(!step){step=high-low}
431if(high===undefined){high=low}
432step=Math.max(step,0.0000001);for(i=low;i<=high;i=safeIncrement(i,step)){newPct=scope_Spectrum.toStepping(i);pctDifference=newPct-prevPct;steps=pctDifference/(pips.density||1);realSteps=Math.round(steps);stepSize=pctDifference/realSteps;for(q=1;q<=realSteps;q+=1){pctPos=prevPct+q*stepSize;indexes[pctPos.toFixed(5)]=[scope_Spectrum.fromStepping(pctPos),0]}
433type=group.indexOf(i)>-1?exports.PipsType.LargeValue:isSteps?exports.PipsType.SmallValue:exports.PipsType.NoValue;if(!index&&ignoreFirst&&i!==high){type=0}
434if(!(i===high&&ignoreLast)){indexes[newPct.toFixed(5)]=[i,type]}
435prevPct=newPct}});return indexes}
436function addMarking(spread,filterFunc,formatter){var _a,_b;var element=scope_Document.createElement("div");var valueSizeClasses=(_a={},_a[exports.PipsType.None]="",_a[exports.PipsType.NoValue]=options.cssClasses.valueNormal,_a[exports.PipsType.LargeValue]=options.cssClasses.valueLarge,_a[exports.PipsType.SmallValue]=options.cssClasses.valueSub,_a);var markerSizeClasses=(_b={},_b[exports.PipsType.None]="",_b[exports.PipsType.NoValue]=options.cssClasses.markerNormal,_b[exports.PipsType.LargeValue]=options.cssClasses.markerLarge,_b[exports.PipsType.SmallValue]=options.cssClasses.markerSub,_b);var valueOrientationClasses=[options.cssClasses.valueHorizontal,options.cssClasses.valueVertical];var markerOrientationClasses=[options.cssClasses.markerHorizontal,options.cssClasses.markerVertical];addClass(element,options.cssClasses.pips);addClass(element,options.ort===0?options.cssClasses.pipsHorizontal:options.cssClasses.pipsVertical);function getClasses(type,source){var a=source===options.cssClasses.value;var orientationClasses=a?valueOrientationClasses:markerOrientationClasses;var sizeClasses=a?valueSizeClasses:markerSizeClasses;return source+" "+orientationClasses[options.ort]+" "+sizeClasses[type]}
437function addSpread(offset,value,type){type=filterFunc?filterFunc(value,type):type;if(type===exports.PipsType.None){return}
438var node=addNodeTo(element,!1);node.className=getClasses(type,options.cssClasses.marker);node.style[options.style]=offset+"%";if(type>exports.PipsType.NoValue){node=addNodeTo(element,!1);node.className=getClasses(type,options.cssClasses.value);node.setAttribute("data-value",String(value));node.style[options.style]=offset+"%";node.innerHTML=String(formatter.to(value))}}
439Object.keys(spread).forEach(function(offset){addSpread(offset,spread[offset][0],spread[offset][1])});return element}
440function removePips(){if(scope_Pips){removeElement(scope_Pips);scope_Pips=null}}
441function pips(pips){removePips();var spread=generateSpread(pips);var filter=pips.filter;var format=pips.format||{to:function(value){return String(Math.round(value))}};scope_Pips=scope_Target.appendChild(addMarking(spread,filter,format));return scope_Pips}
442function baseSize(){var rect=scope_Base.getBoundingClientRect();var alt=("offset"+["Width","Height"][options.ort]);return options.ort===0?rect.width||scope_Base[alt]:rect.height||scope_Base[alt]}
443function attachEvent(events,element,callback,data){var method=function(event){var e=fixEvent(event,data.pageOffset,data.target||element);if(!e){return!1}
444if(isSliderDisabled()&&!data.doNotReject){return!1}
445if(hasClass(scope_Target,options.cssClasses.tap)&&!data.doNotReject){return!1}
446if(events===actions.start&&e.buttons!==undefined&&e.buttons>1){return!1}
447if(data.hover&&e.buttons){return!1}
448if(!supportsPassive){e.preventDefault()}
449e.calcPoint=e.points[options.ort];callback(e,data);return};var methods=[];events.split(" ").forEach(function(eventName){element.addEventListener(eventName,method,supportsPassive?{passive:!0}:!1);methods.push([eventName,method])});return methods}
450function fixEvent(e,pageOffset,eventTarget){var touch=e.type.indexOf("touch")===0;
450var mouse=e.type.indexOf("mouse")===0;var pointer=e.type.indexOf("pointer")===0;var x=0;var y=0;if(e.type.indexOf("MSPointer")===0){pointer=!0}
451if(e.type==="mousedown"&&!e.buttons&&!e.touches){return!1}
452if(touch){var isTouchOnTarget=function(checkTouch){var target=checkTouch.target;return(target===eventTarget||eventTarget.contains(target)||(e.composed&&e.composedPath().shift()===eventTarget))};if(e.type==="touchstart"){var targetTouches=Array.prototype.filter.call(e.touches,isTouchOnTarget);if(targetTouches.length>1){return!1}
453x=targetTouches[0].pageX;y=targetTouches[0].pageY}else{var targetTouch=Array.prototype.find.call(e.changedTouches,isTouchOnTarget);if(!targetTouch){return!1}
454x=targetTouch.pageX;y=targetTouch.pageY}}
455pageOffset=pageOffset||getPageOffset(scope_Document);if(mouse||pointer){x=e.clientX+pageOffset.x;y=e.clientY+pageOffset.y}
456e.pageOffset=pageOffset;e.points=[x,y];e.cursor=mouse||pointer;return e}
457function calcPointToPercentage(calcPoint){var location=calcPoint-offset(scope_Base,options.ort);var proposal=(location*100)/baseSize();proposal=limit(proposal);return options.dir?100-proposal:proposal}
458function getClosestHandle(clickedPosition){var smallestDifference=100;var handleNumber=!1;scope_Handles.forEach(function(handle,index){if(isHandleDisabled(index)){return}
459var handlePosition=scope_Locations[index];var differenceWithThisHandle=Math.abs(handlePosition-clickedPosition);var clickAtEdge=differenceWithThisHandle===100&&smallestDifference===100;var isCloser=differenceWithThisHandle<smallestDifference;var isCloserAfter=differenceWithThisHandle<=smallestDifference&&clickedPosition>handlePosition;if(isCloser||isCloserAfter||clickAtEdge){handleNumber=index;smallestDifference=differenceWithThisHandle}});return handleNumber}
460function documentLeave(event,data){if(event.type==="mouseout"&&event.target.nodeName==="HTML"&&event.relatedTarget===null){eventEnd(event,data)}}
461function eventMove(event,data){if(navigator.appVersion.indexOf("MSIE 9")===-1&&event.buttons===0&&data.buttonsProperty!==0){return eventEnd(event,data)}
462var movement=(options.dir?-1:1)*(event.calcPoint-data.startCalcPoint);var proposal=(movement*100)/data.baseSize;moveHandles(movement>0,proposal,data.locations,data.handleNumbers,data.connect)}
463function eventEnd(event,data){if(data.handle){removeClass(data.handle,options.cssClasses.active);scope_ActiveHandlesCount-=1}
464data.listeners.forEach(function(c){scope_DocumentElement.removeEventListener(c[0],c[1])});if(scope_ActiveHandlesCount===0){removeClass(scope_Target,options.cssClasses.drag);setZindex();if(event.cursor){scope_Body.style.cursor="";scope_Body.removeEventListener("selectstart",preventDefault)}}
465data.handleNumbers.forEach(function(handleNumber){fireEvent("change",handleNumber);fireEvent("set",handleNumber);fireEvent("end",handleNumber)})}
466function eventStart(event,data){if(data.handleNumbers.some(isHandleDisabled)){return}
467var handle;if(data.handleNumbers.length===1){var handleOrigin=scope_Handles[data.handleNumbers[0]];handle=handleOrigin.children[0];scope_ActiveHandlesCount+=1;addClass(handle,options.cssClasses.active)}
468event.stopPropagation();var listeners=[];var moveEvent=attachEvent(actions.move,scope_DocumentElement,eventMove,{target:event.target,handle:handle,connect:data.connect,listeners:listeners,startCalcPoint:event.calcPoint,baseSize:baseSize(),pageOffset:event.pageOffset,handleNumbers:data.handleNumbers,buttonsProperty:event.buttons,locations:scope_Locations.slice()});var endEvent=attachEvent(actions.end,scope_DocumentElement,eventEnd,{target:event.target,handle:handle,listeners:listeners,doNotReject:!0,handleNumbers:data.handleNumbers});var outEvent=attachEvent("mouseout",scope_DocumentElement,documentLeave,{target:event.target,handle:handle,listeners:listeners,doNotReject:!0,handleNumbers:data.handleNumbers});listeners.push.apply(listeners,moveEvent.concat(endEvent,outEvent));if(event.cursor){scope_Body.style.cursor=getComputedStyle(event.target).cursor;if(scope_Handles.length>1){addClass(scope_Target,options.cssClasses.drag)}
469scope_Body.addEventListener("selectstart",preventDefault,!1)}
470data.handleNumbers.forEach(function(handleNumber){fireEvent("start",handleNumber)})}
471function eventTap(event){event.stopPropagation();var proposal=calcPointToPercentage(event.calcPoint);var handleNumber=getClosestHandle(proposal);if(handleNumber===!1){return}
472if(!options.events.snap){addClassFor(scope_Target,options.cssClasses.tap,options.animationDuration)}
473setHandle(handleNumber,proposal,!0,!0);setZindex();fireEvent("slide",handleNumber,!0);fireEvent("update",handleNumber,!0);fireEvent("change",handleNumber,!0);fireEvent("set",handleNumber,!0);if(options.events.snap){eventStart(event,{handleNumbers:[handleNumber]})}}
474function eventHover(event){var proposal=calcPointToPercentage(event.calcPoint);var to=scope_Spectrum.getStep(proposal);var value=scope_Spectrum.fromStepping(to);Object.keys(scope_Events).forEach(function(targetEvent){if("hover"===targetEvent.split(".")[0]){scope_Events[targetEvent].forEach(function(callback){callback.call(scope_Self,value)})}})}
475function eventKeydown(event,handleNumber){if(isSliderDisabled()||isHandleDisabled(handleNumber)){return!1}
476var horizontalKeys=["Left","Right"];var verticalKeys=["Down","Up"];var largeStepKeys=["PageDown","PageUp"];var edgeKeys=["Home","End"];if(options.dir&&!options.ort){horizontalKeys.reverse()}else if(options.ort&&!options.dir){verticalKeys.reverse();largeStepKeys.reverse()}
477var key=event.key.replace("Arrow","");var isLargeDown=key===largeStepKeys[0];var isLargeUp=key===largeStepKeys[1];var isDown=key===verticalKeys[0]||key===horizontalKeys[0]||isLargeDown;var isUp=key===verticalKeys[1]||key===horizontalKeys[1]||isLargeUp;var isMin=key===edgeKeys[0];var isMax=key===edgeKeys[1];if(!isDown&&!isUp&&!isMin&&!isMax){return!0}
478event.preventDefault();var to;if(isUp||isDown){var multiplier=options.keyboardPageMultiplier;var direction=isDown?0:1;var steps=getNextStepsForHandle(handleNumber);var step=steps[direction];if(step===null){return!1}
479if(step===!1){step=scope_Spectrum.getDefaultStep(scope_Locations[handleNumber],isDown,options.keyboardDefaultStep)}
480if(isLargeUp||isLargeDown){step*=multiplier}
481step=Math.max(step,0.0000001);step=(isDown?-1:1)*step;to=scope_Values[handleNumber]+step}else if(isMax){to=options.spectrum.xVal[options.spectrum.xVal.length-1]}else{to=options.spectrum.xVal[0]}
482setHandle(handleNumber,scope_Spectrum.toStepping(to),!0,!0);fireEvent("slide",handleNumber);fireEvent("update",handleNumber);fireEvent("change",handleNumber);fireEvent("set",handleNumber);return!1}
483function bindSliderEvents(behaviour){if(!behaviour.fixed){scope_Handles.forEach(function(handle,index){attachEvent(actions.start,handle.children[0],eventStart,{handleNumbers:[index]})})}
484if(behaviour.tap){attachEvent(actions.start,scope_Base,eventTap,{})}
485if(behaviour.hover){attachEvent(actions.move,scope_Base,eventHover,{hover:!0})}
486if(behaviour.drag){scope_Connects.forEach(function(connect,index){if(connect===!1||index===0||index===scope_Connects.length-1){return}
487var handleBefore=scope_Handles[index-1];var handleAfter=scope_Handles[index];var eventHolders=[connect];addClass(connect,options.cssClasses.draggable);if(behaviour.fixed){eventHolders.push(handleBefore.children[0]);eventHolders.push(handleAfter.children[0])}
488eventHolders.forEach(function(eventHolder){attachEvent(actions.start,eventHolder,eventStart,{handles:[handleBefore,handleAfter],handleNumbers:[index-1,index],connect:connect})})})}}
489function bindEvent(namespacedEvent,callback){scope_Events[namespacedEvent]=scope_Events[namespacedEvent]||[];scope_Events[namespacedEvent].push(callback);if(namespacedEvent.split(".")[0]==="update"){scope_Handles.forEach(function(a,index){fireEvent("update",index)})}}
490function isInternalNamespace(namespace){return namespace===INTERNAL_EVENT_NS.aria||namespace===INTERNAL_EVENT_NS.tooltips}
491function removeEvent(namespacedEvent){var event=namespacedEvent&&namespacedEvent.split(".")[0];var namespace=event?namespacedEvent.substring(event.length):namespacedEvent;Object.keys(scope_Events).forEach(function(bind){var tEvent=bind.split(".")[0];var tNamespace=bind.substring(tEvent.length);if((!event||event===tEvent)&&(!namespace||namespace===tNamespace)){if(!isInternalNamespace(tNamespace)||namespace===tNamespace){delete scope_Events[bind]}}})}
492function fireEvent(eventName,handleNumber,tap){Object.keys(scope_Events).forEac
492h(function(targetEvent){var eventType=targetEvent.split(".")[0];if(eventName===eventType){scope_Events[targetEvent].forEach(function(callback){callback.call(scope_Self,scope_Values.map(options.format.to),handleNumber,scope_Values.slice(),tap||!1,scope_Locations.slice(),scope_Self)})}})}
493function checkHandlePosition(reference,handleNumber,to,lookBackward,lookForward,getValue){var distance;if(scope_Handles.length>1&&!options.events.unconstrained){if(lookBackward&&handleNumber>0){distance=scope_Spectrum.getAbsoluteDistance(reference[handleNumber-1],options.margin,!1);to=Math.max(to,distance)}
494if(lookForward&&handleNumber<scope_Handles.length-1){distance=scope_Spectrum.getAbsoluteDistance(reference[handleNumber+1],options.margin,!0);to=Math.min(to,distance)}}
495if(scope_Handles.length>1&&options.limit){if(lookBackward&&handleNumber>0){distance=scope_Spectrum.getAbsoluteDistance(reference[handleNumber-1],options.limit,!1);to=Math.min(to,distance)}
496if(lookForward&&handleNumber<scope_Handles.length-1){distance=scope_Spectrum.getAbsoluteDistance(reference[handleNumber+1],options.limit,!0);to=Math.max(to,distance)}}
497if(options.padding){if(handleNumber===0){distance=scope_Spectrum.getAbsoluteDistance(0,options.padding[0],!1);to=Math.max(to,distance)}
498if(handleNumber===scope_Handles.length-1){distance=scope_Spectrum.getAbsoluteDistance(100,options.padding[1],!0);to=Math.min(to,distance)}}
499to=scope_Spectrum.getStep(to);to=limit(to);if(to===reference[handleNumber]&&!getValue){return!1}
500return to}
501function inRuleOrder(v,a){var o=options.ort;return(o?a:v)+", "+(o?v:a)}
502function moveHandles(upward,proposal,locations,handleNumbers,connect){var proposals=locations.slice();var firstHandle=handleNumbers[0];var b=[!upward,upward];var f=[upward,!upward];handleNumbers=handleNumbers.slice();if(upward){handleNumbers.reverse()}
503if(handleNumbers.length>1){handleNumbers.forEach(function(handleNumber,o){var to=checkHandlePosition(proposals,handleNumber,proposals[handleNumber]+proposal,b[o],f[o],!1);if(to===!1){proposal=0}else{proposal=to-proposals[handleNumber];proposals[handleNumber]=to}})}else{b=f=[!0]}
504var state=!1;handleNumbers.forEach(function(handleNumber,o){state=setHandle(handleNumber,locations[handleNumber]+proposal,b[o],f[o])||state});if(state){handleNumbers.forEach(function(handleNumber){fireEvent("update",handleNumber);fireEvent("slide",handleNumber)});if(connect!=undefined){fireEvent("drag",firstHandle)}}}
505function transformDirection(a,b){return options.dir?100-a-b:a}
506function updateHandlePosition(handleNumber,to){scope_Locations[handleNumber]=to;scope_Values[handleNumber]=scope_Spectrum.fromStepping(to);var translation=10*(transformDirection(to,0)-scope_DirOffset);var translateRule="translate("+inRuleOrder(translation+"%","0")+")";scope_Handles[handleNumber].style[options.transformRule]=translateRule;updateConnect(handleNumber);updateConnect(handleNumber+1)}
507function setZindex(){scope_HandleNumbers.forEach(function(handleNumber){var dir=scope_Locations[handleNumber]>50?-1:1;var zIndex=3+(scope_Handles.length+dir*handleNumber);scope_Handles[handleNumber].style.zIndex=String(zIndex)})}
508function setHandle(handleNumber,to,lookBackward,lookForward,exactInput){if(!exactInput){to=checkHandlePosition(scope_Locations,handleNumber,to,lookBackward,lookForward,!1)}
509if(to===!1){return!1}
510updateHandlePosition(handleNumber,to);return!0}
511function updateConnect(index){if(!scope_Connects[index]){return}
512var l=0;var h=100;if(index!==0){l=scope_Locations[index-1]}
513if(index!==scope_Connects.length-1){h=scope_Locations[index]}
514var connectWidth=h-l;var translateRule="translate("+inRuleOrder(transformDirection(l,connectWidth)+"%","0")+")";var scaleRule="scale("+inRuleOrder(connectWidth/100,"1")+")";scope_Connects[index].style[options.transformRule]=translateRule+" "+scaleRule}
515function resolveToValue(to,handleNumber){if(to===null||to===!1||to===undefined){return scope_Locations[handleNumber]}
516if(typeof to==="number"){to=String(to)}
517to=options.format.from(to);if(to!==!1){to=scope_Spectrum.toStepping(to)}
518if(to===!1||isNaN(to)){return scope_Locations[handleNumber]}
519return to}
520function valueSet(input,fireSetEvent,exactInput){var values=asArray(input);var isInit=scope_Locations[0]===undefined;fireSetEvent=fireSetEvent===undefined?!0:fireSetEvent;
520if(options.animate&&!isInit){addClassFor(scope_Target,options.cssClasses.tap,options.animationDuration)}
521scope_HandleNumbers.forEach(function(handleNumber){setHandle(handleNumber,resolveToValue(values[handleNumber],handleNumber),!0,!1,exactInput)});var i=scope_HandleNumbers.length===1?0:1;for(;i<scope_HandleNumbers.length;++i){scope_HandleNumbers.forEach(function(handleNumber){setHandle(handleNumber,scope_Locations[handleNumber],!0,!0,exactInput)})}
522setZindex();scope_HandleNumbers.forEach(function(handleNumber){fireEvent("update",handleNumber);if(values[handleNumber]!==null&&fireSetEvent){fireEvent("set",handleNumber)}})}
523function valueReset(fireSetEvent){valueSet(options.start,fireSetEvent)}
524function valueSetHandle(handleNumber,value,fireSetEvent,exactInput){handleNumber=Number(handleNumber);if(!(handleNumber>=0&&handleNumber<scope_HandleNumbers.length)){throw new Error("noUiSlider: invalid handle number, got: "+handleNumber)}
525setHandle(handleNumber,resolveToValue(value,handleNumber),!0,!0,exactInput);fireEvent("update",handleNumber);if(fireSetEvent){fireEvent("set",handleNumber)}}
526function valueGet(unencoded){if(unencoded===void 0){unencoded=!1}
527if(unencoded){return scope_Values.length===1?scope_Values[0]:scope_Values.slice(0)}
528var values=scope_Values.map(options.format.to);if(values.length===1){return values[0]}
529return values}
530function destroy(){removeEvent(INTERNAL_EVENT_NS.aria);removeEvent(INTERNAL_EVENT_NS.tooltips);Object.keys(options.cssClasses).forEach(function(key){removeClass(scope_Target,options.cssClasses[key])});while(scope_Target.firstChild){scope_Target.removeChild(scope_Target.firstChild)}
531delete scope_Target.noUiSlider}
532function getNextStepsForHandle(handleNumber){var location=scope_Locations[handleNumber];var nearbySteps=scope_Spectrum.getNearbySteps(location);var value=scope_Values[handleNumber];var increment=nearbySteps.thisStep.step;var decrement=null;if(options.snap){return[value-nearbySteps.stepBefore.startValue||null,nearbySteps.stepAfter.startValue-value||null]}
533if(increment!==!1){if(value+increment>nearbySteps.stepAfter.startValue){increment=nearbySteps.stepAfter.startValue-value}}
534if(value>nearbySteps.thisStep.startValue){decrement=nearbySteps.thisStep.step}else if(nearbySteps.stepBefore.step===!1){decrement=!1}else{decrement=value-nearbySteps.stepBefore.highestStep}
535if(location===100){increment=null}else if(location===0){decrement=null}
536var stepDecimals=scope_Spectrum.countStepDecimals();if(increment!==null&&increment!==!1){increment=Number(increment.toFixed(stepDecimals))}
537if(decrement!==null&&decrement!==!1){decrement=Number(decrement.toFixed(stepDecimals))}
538return[decrement,increment]}
539function getNextSteps(){return scope_HandleNumbers.map(getNextStepsForHandle)}
540function updateOptions(optionsToUpdate,fireSetEvent){var v=valueGet();var updateAble=["margin","limit","padding","range","animate","snap","step","format","pips","tooltips"];updateAble.forEach(function(name){if(optionsToUpdate[name]!==undefined){originalOptions[name]=optionsToUpdate[name]}});var newOptions=testOptions(originalOptions);updateAble.forEach(function(name){if(optionsToUpdate[name]!==undefined){options[name]=newOptions[name]}});scope_Spectrum=newOptions.spectrum;options.margin=newOptions.margin;options.limit=newOptions.limit;options.padding=newOptions.padding;if(options.pips){pips(options.pips)}else{removePips()}
541if(options.tooltips){tooltips()}else{removeTooltips()}
542scope_Locations=[];valueSet(isSet(optionsToUpdate.start)?optionsToUpdate.start:v,fireSetEvent)}
543function setupSlider(){scope_Base=addSlider(scope_Target);addElements(options.connect,scope_Base);bindSliderEvents(options.events);valueSet(options.start);if(options.pips){pips(options.pips)}
544if(options.tooltips){tooltips()}
545aria()}
546setupSlider();var scope_Self={destroy:destroy,steps:getNextSteps,on:bindEvent,off:removeEvent,get:valueGet,set:valueSet,setHandle:valueSetHandle,reset:valueReset,__moveHandles:function(upward,proposal,handleNumbers){moveHandles(upward,proposal,scope_Locations,handleNumbers)},options:originalOptions,updateOptions:updateOptions,target:scope_Target,removePips:removePips,removeTooltips:removeTooltips,getTooltips:function(){return scope_Tooltips},getOrigins:function(){return scope_Handles},pips:pips};return scope_Self}
547function initialize(target,originalOptions){if(!target||!target.nodeName){throw new Error("noUiSlider: create requires a single element, got: "+target)}
548if(target.noUiSlider){throw new Error("noUiSlider: Slider was already initialized.")}
549var options=testOptions(originalOptions);var api=scope(target,options,originalOptions);target.noUiSlider=api;return api}
550var nouislider={__spectrum:Spectrum,cssClasses:cssClasses,create:initialize};exports.create=initialize;exports.cssClasses=cssClasses;exports.default=nouislider;Object.defineProperty(exports,'__esModule',{value:!0})})));(function(){var obj_classdef_model={name:'options',data:{str_eventType:'click',str_propertyToToggle:'data-lsjs-statusTogglerStatus',arr_statusValue:['off','on'],str_sessionStorageKey:null,bln_resetOtherElementsWithSamePropertyToToggle:!1,bln_stopEvent:!1},start:function(){this.__module.onModelLoaded()},set:function(obj_options){Object.merge(this.data,obj_options)}};lsjs.addModelClass('statusTogglerInstance',obj_classdef_model)})();(function(){var str_moduleName='statusTogglerInstance';var obj_classdef={start:function(){var str_options,obj_options={},str_startStatusValueFromSessionStorage,str_startStatusValue;str_options=this.__el_container.getProperty('data-lsjs-statusTogglerOptions');if(str_options){obj_options=JSON.decode(str_options)}
551this.__models.options.set(obj_options);this.registerElements(this.__el_container,'main',!1);this.bound_changeStatus=this.changeStatus.bind(this);str_startStatusValue=this.__models.options.data.arr_statusValue[0];if(this.__models.options.data.str_sessionStorageKey){try{str_startStatusValueFromSessionStorage=sessionStorage.getItem('lsjs_statusToggler_'+this.__models.options.data.str_sessionStorageKey);if(str_startStatusValueFromSessionStorage!==null){str_startStatusValue=str_startStatusValueFromSessionStorage}}catch(e){}}
552this.__el_container.setProperty(this.__models.options.data.str_propertyToToggle,str_startStatusValue);if(typeOf(this.__autoElements.main.toggler)==='element'||typeOf(this.__autoElements.main.toggler)==='elements'){this.__autoElements.main.toggler.addEvent(this.__models.options.data.str_eventType,this.bound_changeStatus)}else{this.__el_container.addEvent(this.__models.options.data.str_eventType,this.bound_changeStatus)}},bound_changeStatus:null,changeStatus:function(event){if(this.__models.options.data.bln_stopEvent){event.stop()}
553var el_firingToggler=event.event.currentTarget;var str_newStatusValue=null;if(typeOf(el_firingToggler)==='element'){str_newStatusValue=el_firingToggler.getProperty('data-lsjs-statustoggler-toggle-fixed-value')}
554if(str_newStatusValue!==null){if(this.__el_container.getProperty(this.__models.options.data.str_propertyToToggle)===str_newStatusValue){return}}else{var str_currentStatusValue=this.__el_container.getProperty(this.__models.options.data.str_propertyToToggle);var int_currentStatusIndex=this.__models.options.data.arr_statusValue.indexOf(str_currentStatusValue);if(int_currentStatusIndex<0){int_currentStatusIndex=0}
555var int_nextStatusIndex=int_currentStatusIndex===this.__models.options.data.arr_statusValue.length-1?0:int_currentStatusIndex+1;if(this.__el_container.retrieve('bln_resetOnNextEvent')===!0){int_nextStatusIndex=0;this.__el_container.store('bln_resetOnNextEvent',!1)}else{if(this.__models.options.data.bln_resetOtherElementsWithSamePropertyToToggle){this.fireElementsWithSamePropertyToToggle(event)}}
556str_newStatusValue=this.__models.options.data.arr_statusValue[int_nextStatusIndex]}
557this.__el_container.setProperty(this.__models.options.data.str_propertyToToggle,str_newStatusValue);if(this.__models.options.data.str_sessionStorageKey){try{sessionStorage.setItem('lsjs_statusToggler_'+this.__models.options.data.str_sessionStorageKey,str_newStatusValue)}catch(e){}}},fireElementsWithSamePropertyToToggle:function(event){var els_withSamePropertyToToggle=$$('['+this.__models.options.data.str_propertyToToggle+']');Array.each(els_withSamePropertyToToggle,function(el_toToggle){if(el_toToggle===this.__el_container){return}
558el_toToggle.store('bln_resetOnNextEvent',!0);el_toToggle.getElement('[data-lsjs-element="toggler"]').fireEvent(this.__models.options.data.str_eventType,event)}.bind(this))}};lsjs.addViewClass(str_moduleName,obj_classdef)})();(function(){var str_moduleName='statusTogglerInstance';var obj_classdef={start:function(){}};lsjs.addControllerClass(str_moduleName,obj_classdef)})();(function(){var obj_classdef_model={name:'options',data:{},start:function(){this.data={el_domReference:null,str_selector:'[data-lsjs-component~="statusToggler"]',str_classToSetWhenModuleApplied:'statusTogglerApplied'}}
558,set:function(obj_options){Object.merge(this.data,obj_options);this.__module.onModelLoaded()}};lsjs.addModelClass('statusTogglerManager',obj_classdef_model)})();(function(){var str_moduleName='statusTogglerManager';var obj_classdef={start:function(){var els_toEnhance;if(this.__models.options.data.el_domReference!==undefined&&typeOf(this.__models.options.data.el_domReference)==='element'){els_toEnhance=this.__models.options.data.el_domReference.getElements(this.__models.options.data.str_selector)}else{els_toEnhance=$$(this.__models.options.data.str_selectors)}
559Array.each(els_toEnhance,function(el_container){if(!el_container.retrieve('alreadyHandledBy_'+str_moduleName)){el_container.store('alreadyHandledBy_'+str_moduleName,!0)}else{return}
560el_container.addClass(this.__models.options.data.str_classToSetWhenModuleApplied);lsjs.createModule({__name:'statusTogglerInstance',__parentModule:this.__module,__useLoadingIndicator:!1,__el_container:el_container})}.bind(this))}};lsjs.addControllerClass(str_moduleName,obj_classdef);lsjs.__moduleHelpers[str_moduleName]={self:null,start:function(obj_options){this.self=lsjs.createModule({__name:str_moduleName});this.self.__models.options.set(obj_options)}}})();(function(){var obj_templates={'debug_positionYIndicator':function(arg){var str_return='<div class="debugPosYIndicatorStop" style="position: absolute; top: 0; left: 0; z-index: 9999999; width: 100%; color: #FF0000; border-top: 0.1rem solid #FF0000; padding: 0.5rem; background-color: #FFFFFFAA;">\
561    <p>Debug sticky header: y position to end stickyness</p>\
562</div>\
563\
564<div class="debugPosYIndicatorStart" style="position: absolute; top: 0; left: 0; z-index: 9999999; width: 100%; color: #00AA00; border-top: 0.1rem solid #00AA00; padding: 0.5rem; background-color: #FFFFFFAA;">\
565    <p>Debug sticky header: y position to start stickyness</p>\
566</div>';var str_return='<!-- BEGIN LSJS TEMPLATE: debug_positionYIndicator.html5 (path removed for security reasons) -->'+str_return+'<!-- END LSJS TEMPLATE: debug_positionYIndicator.html5 (path removed for security reasons) -->';return str_return}};lsjs.tpl.register(obj_templates,'stickyHeader')})();(function(){var obj_classdef_model={name:'options',data:{str_selectorForElementToStick:'header',str_selectorForElementToSaveSpace:'body',int_minScrollSpeedToShowSticky:1,int_minScrollSpeedToHideSticky:1,int_timeToWaitForRecalculationsAfterHeaderClickInMs:800,bln_stickyOnly:!1,bln_alwaysShowStickyHeader:!1,bln_untouchEverythingInHeaderAfterHidingSticky:!0,int_stickyStartEndDistance:150,bln_debug:!1},start:function(){},set:function(obj_options){Object.merge(this.data,obj_options);this.__module.onModelLoaded()}};lsjs.addModelClass('stickyHeader',obj_classdef_model)})();(function(){var str_moduleName='stickyHeader';var obj_classdef={el_body:null,el_header:null,int_currentScrollY:0,obj_classes:{stickyElement:'sticky-element',sticky:'sticky',show:'show-sticky',moveout:'move-out-sticky',movein:'move-in-sticky',subscrolling:'subscrolling-sticky',subscrollingPreparingForMoveout:'subscrolling-sticky-preparing-for-moveout',temporarilyKeepStickyInShowPosition:'temporarily-keep-sticky-in-show-position'},obj_spaceSaver:{el_spaceSaver:null,el_header:null,int_originalPaddingTop:0,int_requiredPaddingTopInStickyState:0,initialize:function(str_selectorForSpaceSaverElement,el_header){if(str_selectorForSpaceSaverElement!==null&&typeOf(str_selectorForSpaceSaverElement)!=='string'){console.error('dependency "str_selectorForSpaceSaverElement" not ok')}
567if(typeOf(el_header)!=='element'){console.error('dependency "el_header" not ok')}
568this.el_header=el_header;this.el_spaceSaver=$$(str_selectorForSpaceSaverElement)[0];if(typeOf(this.el_spaceSaver)!=='element'){this.el_spaceSaver=null}
569window.addEvent('resize',this.setPadding.bind(this));this.setPadding()},setPadding:function(){if(!this.el_spaceSaver){return}
570this.el_spaceSaver.setStyle('padding-top',null);this.el_spaceSaver.setStyle('padding-top',parseFloat(window.getComputedStyle(this.el_spaceSaver)['padding-top'])+this.el_header.offsetHeight)}},obj_verticalPositionToSwitchSticky:{__view:null,el_header:null,el_body:null,obj_classes:'',int_timeToWaitForRecalculationsAfterHeaderClickInMs:0,int_yPosStart:0,int_yPosEnd:0,int_startEndDistance:0,bln_debug:!1,el_debugPosYIndicator:null,initialize:function(__view,el_header,el_body,obj_classes,int_timeToWaitForRecalculationsAfterHeaderClickInMs,int_startEndDistance,bln_debug){if(typeOf(__view)!=='object'){console.error('dependency "__view" not ok')}
571this.__view=__view;if(typeOf(el_header)!=='element'){console.error('dependency "el_header" not ok')}
572this.el_header=el_header;if(typeOf(el_body)!=='element'){console.error('dependency "el_body" not ok')}
573this.el_body=el_body;if(typeOf(obj_classes)!=='object'){console.error('dependency "obj_classes" not ok')}
574this.obj_classes=obj_classes;if(typeOf(int_timeToWaitForRecalculationsAfterHeaderClickInMs)!=='number'){console.error('dependency "int_timeToWaitForRecalculationsAfterHeaderClickInMs" not ok')}
575this.int_timeToWaitForRecalculationsAfterHeaderClickInMs=int_timeToWaitForRecalculationsAfterHeaderClickInMs;if(typeOf(int_startEndDistance)!=='number'){console.error('dependency "int_startEndDistance" not ok')}
576this.int_startEndDistance=int_startEndDistance;if(typeOf(bln_debug)!=='boolean'){console.error('dependency "bln_debug" not ok')}
577this.bln_debug=bln_debug;if(this.bln_debug){this.el_debugPosYIndicator=this.__view.tplPure({name:'debug_positionYIndicator'});this.el_debugPosYIndicator.inject(this.el_body,'top')}
578window.addEvent('resize',this.determinePos.bind(this));this.el_header.addEvent('click',function(){window.setTimeout(this.determinePos.bind(this),this.int_timeToWaitForRecalculationsAfterHeaderClickInMs)}.bind(this));this.determinePos()},determinePos:function(){var int_yPosEndToResetAfterCalculation=0;if(this.__view.__models.options.data.bln_untouchEverythingInHeaderAfterHidingSticky&&this.int_yPosEnd>0){int_yPosEndToResetAfterCalculation=this.int_yPosEnd}
579this.el_body.measure(function(){var bln_needToReAddStickyClass=this.__view.check_isCurrentlySticky();this.el_body.removeClass(this.obj_classes.sticky);if(this.el_body.hasClass(this.obj_classes.show)){this.el_body.addClass(this.obj_classes.temporarilyKeepStickyInShowPosition)}
580var float_currentTopPosition=this.el_header.getCoordinates().top;if(float_currentTopPosition<0){float_currentTopPosition=0}
581this.int_yPosEnd=float_currentTopPosition+this.el_header.scrollHeight;this.int_yPosStart=this.int_yPosEnd+this.int_startEndDistance;this.el_body.removeClass(this.obj_classes.temporarilyKeepStickyInShowPosition);if(bln_needToReAddStickyClass){this.el_body.addClass(this.obj_classes.sticky)}}.bind(this));if(int_yPosEndToResetAfterCalculation>0){this.int_yPosEnd=int_yPosEndToResetAfterCalculation}
582if(this.bln_debug){this.el_debugPosYIndicator.getElement('.debugPosYIndicatorStart').setStyle('top',this.int_yPosStart);console.log('debugPosYIndicatorStart: '+this.int_yPosStart);this.el_debugPosYIndicator.getElement('.debugPosYIndicatorStop').setStyle('top',this.int_yPosEnd);console.log('debugPosYIndicatorStop: '+this.int_yPosEnd)}}},obj_stickyHeader:{__view:null,el_header:null,el_body:null,obj_classes:'',int_timeToWaitForRecalculationsAfterHeaderClickInMs:0,int_height:0,initialize:function(__view,el_header,el_body,obj_classes,int_timeToWaitForRecalculationsAfterHeaderClickInMs){if(typeOf(__view)!=='object'){console.error('dependency "__view" not ok')}
583this.__view=__view;if(typeOf(el_header)!=='element'){console.error('dependency "el_header" not ok')}
584this.el_header=el_header;if(typeOf(el_body)!=='element'){console.error('dependency "el_body" not ok')}
585this.el_body=el_body;if(typeOf(obj_classes)!=='object'){console.error('dependency "obj_classes" not ok')}
586this.obj_classes=obj_classes;if(typeOf(int_timeToWaitForRecalculationsAfterHeaderClickInMs)!=='number'){console.error('dependency "int_timeToWaitForRecalculationsAfterHeaderClickInMs" not ok')}
587this.int_timeToWaitForRecalculationsAfterHeaderClickInMs=int_timeToWaitForRecalculationsAfterHeaderClickInMs;window.addEvent('resize',this.determineSizesAndPositions.bind(this));this.el_header.addEvent('click',function(){window.setTimeout(function(){this.determineSizesAndPositions;this.__view.handleSubscrolling()}.bind(this),this.int_timeToWaitForRecalculationsAfterHeaderClickInMs)}.bind(this));this.determineSizesAndPositions();this.el_header.addEventListener('transitionend',function(){if(this.el_body.hasClass(this.obj_classes.moveout)){this.__view.untouchHeaderIfNecessary()}
588this.determineSizesAndPositions();if(this.el_body.hasClass(this.obj_classes.moveout)){this.el_body.removeClass(this.obj_classes.moveout);this.el_body.removeClass(this.obj_classes.show);this.el_body.removeClass(this.obj_classes.subscrollingPreparingForMoveout)}}.bind(this))},determineSizesAndPositions:function(){this.el_body.measure(function(){var bln_needToRemoveStickyClass=!this.__view.check_isCurrentlySticky();this.el_body.addClass(this.obj_classes.sticky);this.int_height=this.el_header.scrollHeight;if(bln_needToRemoveStickyClass){this.el_body.removeClass(this.obj_classes.sticky)}}.bind(this))},moveOffCanvas:function(){this.el_header.setStyle('top',this.int_height*-1)},moveInCanvas:function(){this.el_header.setStyle('top',null)}},start:function(){this.initializeElements();this.obj_spaceSaver.initialize(this.__models.options.data.str_selectorForElementToSaveSpace,this.el_header);this.obj_verticalPositionToSwitchSticky.initialize(this,this.el_header,this.el_body,this.obj_classes,this.__models.options.data.int_timeToWaitForRecalculationsAfterHeaderClickInMs,this.__models.options.data.int_stickyStartEndDistance,this.__models.options.data.bln_debug);this.obj_stickyHeader.initialize(this,this.el_header,this.el_body,this.obj_classes,this.__models.options.data.int_timeToWaitForRecalculationsAfterHeaderClickInMs);this.initializeScrollListener();this.initializeResizingListener();if(this.__models.options.data.bln_stickyOnly){this.makeSticky();this.showSticky()}},initializeElements:function(){this.el_body=$$('body')[0];this.el_header=$$(this.__models.options.data.str_selectorForElementToStick)[0];if(typeOf(this.el_header)!=='element'){if(this.__models.options.data.bln_debug){console.warn(str_moduleName+': not exactly one element found with selector "'+this.__models.options.data.str_selectorForElementToStick+'"')}
589return}
590this.el_header.addClass(this.obj_classes.stickyElement)},initializeResizingListener:function(){window.addEvent('resize',this.reactOnResizing.bind(this))},reactOnResizing:function(){this.makeUnsticky()},initializeScrollListener:function(){window.addEvent('scroll',this.reactOnScrolling.bind(this))},reactOnScrolling:function(){this.int_currentScrollY=window.getScroll().y;this.toggleStickyStatus();this.handleSubscrolling();this.handleScrollingUp();this.handleScrollingDown()},handleSubscrolling:function(){if(this.check_isCurrentlySticky()&&this.check_isCurrentlyShowingStickyHeader()&&this.obj_stickyHeader.int_height>window.innerHeight){this.startSubscrolling()}else{this.stopSubscrolling()}},startSubscrolling:function(){if(this.check_isCurrentlySubscrolling()||this.el_body.hasClass(this.obj_classes.moveout)){return}
591this.el_header.setStyle('position','absolute');this.el_header.setStyle('top',this.int_currentScrollY);this.el_body.addClass(this.obj_classes.subscrolling)},stopSubscrolling:function(){if(!this.check_isCurrentlySubscrolling()){return}
592this.el_header.setStyle('position',null);this.el_header.setStyle('top',null);this.el_body.removeClass(this.obj_classes.subscrolling)},toggleStickyStatus:function(){if(!this.check_isCurrentlySticky()){if(this.int_currentScrollY>this.obj_verticalPositionToSwitchSticky.int_yPosStart){this.makeSticky()}}else{if(this.int_currentScrollY<=this.obj_verticalPositionToSwitchSticky.int_yPosEnd){if(lsjs.scrollAssistant.__view.str_currentDirection!=='down'){this.makeUnsticky()}}}},handleScrollingUp:function(){if(lsjs.scrollAssistant.__view.str_currentDirection!=='up'){return}
593if(!this.check_isCurrentlySubscrolling()&&this.obj_stickyHeader.int_height>window.innerHeight){return}
594if(this.check_isCurrentlySubscrolling()){if(this.el_header.getCoordinates().top>this.int_currentScrollY){this.el_header.setStyle('top',this.int_currentScrollY)}
595return}
596if(lsjs.scrollAssistant.__view.int_lastScrollSpeed>this.__models.options.data.int_minScrollSpeedToShowSticky||this.int_currentScrollY<=this.obj_verticalPositionToSwitchSticky.int_yPosEnd){if(this.el_body.hasClass(this.obj_classes.sticky)){this.showSticky()}}},handleScrollingDown:function(){if(lsjs.scrollAssistant.__view.str_currentDirection!=='down'){return}
597if(this.check_isCurrentlySubscrolling()){var int_yPositionToStopSubscrolling=window.innerHeight*0.7;if(this.int_currentScrollY+int_yPositionToStopSubscrolling<this.el_header.getCoordinates().top+this.obj_stickyHeader.int_height){return}else{if(!this.check_isCurrentlyPreparingForSubscrollingMoveout()){this.prepareForSubscrollingMoveout();window.setTimeout(function(){this.stopSubscrolling();this.hideSticky()}.bind(this),10)}
598return}}
599if(lsjs.scrollAssistant.__view.int_lastScrollSpeed>this.__models.options.data.int_minScrollSpeedToHideSticky){if(this.el_body.hasClass(this.obj_classes.sticky)&&this.el_body.hasClass(this.obj_classes.show)){this.hideSticky()}}},prepareForSubscrollingMoveout:function(){if(this.check_isCurrentlyPreparingForSubscrollingMoveout()){return}
600this.el_body.addClass(this.obj_classes.subscrollingPreparingForMoveout);var int_yPosToSetFixedTopPositionTo=this.el_header.getCoordinates().top-this.int_currentScrollY;this.el_header.setStyle('top',int_yPosToSetFixedTopPositionTo);this.el_header.setStyle('position',null)},showSticky:function(){this.el_body.addClass(this.obj_classes.show);this.el_body.removeClass(this.obj_classes.moveout)},hideSticky:function(){if(this.__models.options.data.bln_alwaysShowStickyHeader){return}
601this.el_body.addClass(this.obj_classes.moveout);this.obj_stickyHeader.moveOffCanvas()},makeSticky:function(){this.el_body.addClass(this.obj_classes.sticky);this.untouchHeaderIfNecessary();this.obj_stickyHeader.moveOffCanvas();if(this.__models.options.data.bln_alwaysShowStickyHeader&&(this.obj_stickyHeader.int_height<=window.innerHeight||this.__models.options.data.bln_untouchEverythingInHeaderAfterHidingSticky)){window.setTimeout(this.showSticky.bind(this),500)}},makeUnsticky:function(){if(this.__models.options.data.bln_stickyOnly){return}
602this.untouchHeaderIfNecessary();this.el_body.removeClass(this.obj_classes.sticky);this.el_body.removeClass(this.obj_classes.show);this.el_body.removeClass(this.obj_classes.moveout);this.stopSubscrolling();this.obj_stickyHeader.moveInCanvas()},check_isCurrentlySticky:function(){return this.el_body.hasClass(this.obj_classes.sticky)},check_isCurrentlyShowingStickyHeader:function(){return this.el_body.hasClass(this.obj_classes.show)},check_isCurrentlySubscrolling:function(){return this.el_body.hasClass(this.obj_classes.subscrolling)},check_isCurrentlyPreparingForSubscrollingMoveout:function(){return this.el_body.hasClass(this.obj_classes.subscrollingPreparingForMoveout)},untouchHeaderIfNecessary:function(){if(this.__models.options.data.bln_untouchEverythingInHeaderAfterHidingSticky){var els_touchedHeaderElements=this.el_header.getElements('.touched');if(typeOf(els_touchedHeaderElements)!=='elements'||els_touchedHeaderElements.length===0){return}
603els_touchedHeaderElements.fireEvent('click');window.setTimeout(function(){this.obj_verticalPositionToSwitchSticky.determinePos();this.obj_stickyHeader.determineSizesAndPositions()}.bind(this),this.__models.options.data.int_timeToWaitForRecalculationsAfterHeaderClickInMs)}}};lsjs.addViewClass(str_moduleName,obj_classdef)})();(function(){var str_moduleName='stickyHeader';var obj_classdef={start:function(){lsjs[str_moduleName]=this.__module}};lsjs.addControllerClass(str_moduleName,obj_classdef);lsjs.__moduleHelpers[str_moduleName]={self:null,start:function(obj_options){this.self=lsjs.createModule({__name:str_moduleName});this.self.__models.options.set(obj_options)}}})();(function(){var str_moduleName='submitOnChangeInstance';var obj_classdef={el_form:null,el_btn_submit:null,start:function(){this.el_form=this.__el_container.getParent('form');this.el_btn_submit=this.el_form.getElement('[type="submit"]');if(typeOf(this.el_form)!=='element'){console.warn('No parent form c
603ould be found for: ',this.__el_container);return}
604if(typeOf(this.el_btn_submit)==='element'){this.el_btn_submit.destroy()}
605this.__el_container.addEvent('change',function(){this.el_form.submit()}.bind(this))}};lsjs.addViewClass(str_moduleName,obj_classdef)})();(function(){var str_moduleName='submitOnChangeInstance';var obj_classdef={start:function(){}};lsjs.addControllerClass(str_moduleName,obj_classdef)})();(function(){var obj_classdef_model={name:'options',data:{},start:function(){this.data={el_domReference:null,str_selector:'[data-lsjs-component~="submitOnChange"] select',str_classToSetWhenModuleApplied:'submitOnChangeApplied'}},set:function(obj_options){Object.merge(this.data,obj_options);this.__module.onModelLoaded()}};lsjs.addModelClass('submitOnChangeManager',obj_classdef_model)})();(function(){var str_moduleName='submitOnChangeManager';var obj_classdef={start:function(){var els_toEnhance;if(this.__models.options.data.el_domReference!==undefined&&typeOf(this.__models.options.data.el_domReference)==='element'){els_toEnhance=this.__models.options.data.el_domReference.getElements(this.__models.options.data.str_selector)}else{els_toEnhance=$$(this.__models.options.data.str_selector)}
606Array.each(els_toEnhance,function(el_container){if(!el_container.retrieve('alreadyHandledBy_'+str_moduleName)){el_container.store('alreadyHandledBy_'+str_moduleName,!0)}else{return}
607el_container.addClass(this.__models.options.data.str_classToSetWhenModuleApplied);lsjs.createModule({__name:'submitOnChangeInstance',__parentModule:this.__module,__useLoadingIndicator:!1,__el_container:el_container})}.bind(this))}};lsjs.addControllerClass(str_moduleName,obj_classdef);lsjs.__moduleHelpers[str_moduleName]={self:null,start:function(obj_options){this.self=lsjs.createModule({__name:str_moduleName});this.self.__models.options.set(obj_options)}}})();(function(){var obj_classdef_model={name:'options',data:{},start:function(){this.data={}},set:function(obj_options){Object.merge(this.data,obj_options);this.__module.onModelLoaded()}};lsjs.addModelClass('switchGallery',obj_classdef_model)})();(function(){var str_moduleName='switchGallery';var obj_classdef={start:function(){this.registerElements(this.__el_container,'main',!0);this.initializeEvents()},initializeEvents:function(){var self=this;this.__autoElements.main.smallImage.addEvent('click',function(){self.switchImages(this,self.__autoElements.main.bigImage[0])})},switchImages:function(el_imageContainer1,el_imageContainer2){var el_realImage1=el_imageContainer1.tagName==='img'?el_imageContainer1:el_imageContainer1.getElement('img');var el_realImage2=el_imageContainer2.tagName==='img'?el_imageContainer2:el_imageContainer2.getElement('img');var str_tmpSrcImage1='';if(el_realImage1===undefined||el_realImage1===null||el_realImage2===undefined||el_realImage2===null){if(this.__models.options.data.bln_debug){console.warn('no real image element could be found for one of the elements to switch');console.warn(el_imageContainer1);console.warn(el_imageContainer2)}
608return}
609str_tmpSrcImage1=el_realImage1.getAttribute('src');el_realImage1.setAttribute('src',el_realImage2.getAttribute('src'));el_realImage2.setAttribute('src',str_tmpSrcImage1)}};lsjs.addViewClass(str_moduleName,obj_classdef)})();(function(){var str_moduleName='switchGallery';var obj_classdef={start:function(){}};lsjs.addControllerClass(str_moduleName,obj_classdef);lsjs.__moduleHelpers[str_moduleName]={obj_instances:{},obj_options:{el_domReference:null,bln_debug:!1,str_containerSelector:'[data-lsjs-component~="switchGallery"]',str_uniqueInstanceName:'switchGallery',str_classToSetWhenModuleApplied:'switchGalleryApplied'},start:function(obj_options){var els_container;Object.merge(this.obj_options,obj_options);if(this.obj_instances[this.obj_options.str_uniqueInstanceName]===undefined){this.obj_instances[this.obj_options.str_uniqueInstanceName]=[]}
610if(this.obj_options.el_domReference!==undefined&&typeOf(this.obj_options.el_domReference)==='element'){els_container=this.obj_options.el_domReference.getElements(this.obj_options.str_containerSelector)}else{els_container=$$(this.obj_options.str_containerSelector)}
611Array.each(els_container,function(el_container){if(!el_container.retrieve('alreadyHandledBy_'+str_moduleName)){el_container.store('alreadyHandledBy_'+str_moduleName,!0)}else{return}
612el_container.addClass(this.obj_options.str_classToSetWhenModuleApplied);var obj_instance=lsjs.createModule({__name:str_moduleName,__el_container:el_container});obj_instance.__models.options.set(this.obj_options);this.obj_instances[this.obj_options.str_uniqueInstanceName].push(obj_instance)}.bind(this))}}})();(function(){var str_moduleName='touchDetector';var obj_classdef={bound_touchStartListener:null,bound_tabListener:null,bound_mouseListener:null,bln_touchDetected:!1,start:function(){this.bound_touchStartListener=this.touchStartListener.bind(this);this.bound_tabListener=this.tabListener.bind(this);this.bound_mouseListener=this.mouseListener.bind(this);window.addEvent('touchstart',this.bound_touchStartListener);window.addEvent('keydown',this.bound_tabListener)},touchStartListener:function(){if(this.bln_touchDetected){return}
613this.bln_touchDetected=!0;$$('body')[0].addClass('user-is-touching')},tabListener:function(){$$('body')[0].addClass('user-is-tabbing');window.removeEvent('keydown',this.bound_tabListener);window.addEvent('mousedown',this.bound_mouseListener)},mouseListener:function(){$$('body')[0].removeClass('user-is-tabbing');window.removeEvent('mousedown',this.bound_mouseListener);window.addEvent('keydown',this.bound_tabListener)}};lsjs.addControllerClass(str_moduleName,obj_classdef);lsjs.__moduleHelpers[str_moduleName]={self:null,start:function(){this.self=lsjs.createModule({__name:str_moduleName})}}})();(function(){var obj_classdef_model={name:'options',data:{},start:function(){this.data={var_touchableHyperlinkSelector:'li > .submenu',str_classToSetForTouchedElements:'touched',bln_useTouchBehaviourOnNonTouchDevices:!1,bln_followLinkOnSecondTouch:!1,bln_allowMultipleParallelTouches:!0,bln_preTouchActiveAndTrailOnStart:!0,bln_onlyHandleTouchOnTogglerElements:!0,bln_untouchOnOutsideClick:!1,arr_pseudoElementForTogglerIdentification:['before','after']}},set:function(obj_options){Object.merge(this.data,obj_options);this.__module.onModelLoaded()}};lsjs.addModelClass('touchNaviInstance',obj_classdef_model)})();(function(){var str_moduleName='touchNaviInstance';var obj_classdef={els_touchableHyperlinks:null,el_body:null,start:function(){var self=this;this.el_body=$$('body')[0];if(this.__models.options.data.bln_useTouchBehaviourOnNonTouchDevices){this.__el_container.addClass('useTouchNaviOnNonTouchDevices')}
614if(this.__models.options.data.bln_onlyHandleTouchOnTogglerElements){this.__el_container.addClass('onlyHandleTouchOnTogglerElements')}
615this.els_touchableHyperlinks=this.__el_container.getElements(this.__models.options.data.var_touchableHyperlinkSelector);if(typeOf(this.els_touchableHyperlinks)!=='elements'){return}
616const toggleLinks=document.querySelectorAll('a.submenu[aria-haspopup="true"]');toggleLinks.forEach(function(link){const liElement=link.parentNode;const subMenu=liElement.querySelector(':scope > ul');if(self.check_elementActsAsToggler(link)){link.setAttribute('role','button');link.setAttribute('aria-haspopup','true');link.setAttribute('aria-expanded','false');link.setAttribute('href','#');if(subMenu){subMenu.setAttribute('aria-hidden','true');subMenu.setAttribute('role','none')}}});this.els_touchableHyperlinks.addEvent('click',function(event){var els_toRemoveTouch;if(!self.__models.options.data.bln_useTouchBehaviourOnNonTouchDevices&&!self.el_body.hasClass('user-is-touching')){return}
617if(self.__models.options.data.bln_onlyHandleTouchOnTogglerElements&&!self.check_elementActsAsToggler(this)){return}
618if(!self.__models.options.data.bln_followLinkOnSecondTouch||!this.hasClass(self.__models.options.data.str_classToSetForTouchedElements)){if(event!==undefined){event.preventDefault()}}
619if(!this.hasClass(self.__models.options.data.str_classToSetForTouchedElements)){if(!self.__models.options.data.bln_allowMultipleParallelTouches){els_toRemoveTouch=this.getParent('ul').getElements('.'+self.__models.options.data.str_classToSetForTouchedElements);self.removeTouch(els_toRemoveTouch)}
620self.callbackBeforeAddingTouch(this);this.addClass(self.__models.options.data.str_classToSetForTouchedElements);this.getParent().addClass(self.__models.options.data.str_classToSetForTouchedElements);self.setMenuToggleAriaAttributeOpen(this.parentNode,!1)}else{if(!self.__models.options.data.bln_allowMultipleParallelTouches){els_toRemoveTouch=this.getParent().getElements('.'+self.__models.options.data.str_classToSetForTouchedElements);self.removeTouch(els_toRemoveTouch)}
621self.callbackBeforeRemovingTouch(this);this.removeClass(self.__models.options.data.str_classToSetForTouchedElements);this.getParent().removeClass(self.__models.options.data.str_classToSetForTouchedElements)}});if(this.__models.options.data.bln_untouchOnOutsideClick){this.initializeOutsideClickListener()}
622if(this.__models.options.data.bln_preTouchActiveAndTrailOnStart){this.preTouchActiveItems()}},initializeOutsideClickListener:function(){this.el_body.addEvent('click',function(event){const nativeEvent=event.event;const targetElement=nativeEvent.target;const hasRoleButton=targetElement.getAttribute('role')==='button';if(hasRoleButton){nativeEvent.preventDefault();nativeEvent.stopImmediatePropagation()}
623if(event.target.getParent(this.__models.options.data.var_touchableHyperlinkSelector)===null){var els_toRemoveTouch=this.__el_container.getElements('.'+this.__models.options.data.str_classToSetForTouchedElements);this.removeTouch(els_toRemoveTouch)}}.bind(this))},removeTouch:function(els_toRemoveTouch){Array.each(els_toRemoveTouch,function(el_toRemoveTouch){if(Object.contains(this.els_touchableHyperlinks,el_toRemoveTouch)){this.callbackBeforeRemovingTouch(el_toRemoveTouch)}}.bind(this));els_toRemoveTouch.removeClass(this.__models.options.data.str_classToSetForTouchedElements);let self=this;
623Array.from(els_toRemoveTouch).forEach(function(buttonElement){self.setMenuToggleAriaAttributeOpen(buttonElement.parentNode,!0)})},preTouchActiveItems:function(){Array.each(this.els_touchableHyperlinks,function(el_touchableHyperlink){if(el_touchableHyperlink.hasClass('active')||el_touchableHyperlink.hasClass('trail')){el_touchableHyperlink.fireEvent('click')}})},setMenuToggleAriaAttributeOpen:function(el_element,bln_toggle){const liElement=el_element;const subMenu=liElement.querySelector(':scope > ul');const toggleButton=liElement.querySelector(':scope > a');if(subMenu){subMenu.setAttribute('aria-hidden',bln_toggle.toString());subMenu.setAttribute('role','none')}
624if(toggleButton){toggleButton.setAttribute('aria-expanded',(!bln_toggle).toString())}},callbackBeforeAddingTouch:function(el_aboutToAddTouch){this.handleSubmenuHeightToEnableSmoothTransition(el_aboutToAddTouch,!1)},callbackBeforeRemovingTouch:function(el_aboutToRemoveTouch){this.handleSubmenuHeightToEnableSmoothTransition(el_aboutToRemoveTouch,!0)},handleSubmenuHeightToEnableSmoothTransition:function(el_touchedElement,bln_removingTouch){var el_relatedSubmenu=el_touchedElement.getParent().getElement('ul');if(typeOf(el_relatedSubmenu)!=='element'){return}
625if(!this.check_elementActsAsToggler(el_touchedElement)){return}
626var float_openSubmenuHeight=el_relatedSubmenu.scrollHeight;var func_removeExplicitHeight=function(){this.style.removeProperty('height');this.removeEventListener('transitionend',this.retrieve('func_removeExplicitHeight'))};el_relatedSubmenu.store('func_removeExplicitHeight',func_removeExplicitHeight);el_relatedSubmenu.addEventListener('transitionend',el_relatedSubmenu.retrieve('func_removeExplicitHeight'));el_relatedSubmenu.setStyle('height',float_openSubmenuHeight+'px');if(bln_removingTouch){window.setTimeout(function(){el_relatedSubmenu.setStyle('height',0)},50)}},check_elementActsAsToggler:function(el_toCheck){var bln_actsAsToggler=!1;Array.each(this.__models.options.data.arr_pseudoElementForTogglerIdentification,function(str_pseudoElementForTogglerIdentification){if(bln_actsAsToggler){return}
627var str_cssContent=window.getComputedStyle(el_toCheck,'::'+str_pseudoElementForTogglerIdentification).content;bln_actsAsToggler=str_cssContent!==undefined&&str_cssContent!==null&&str_cssContent&&str_cssContent!=='none'});return bln_actsAsToggler}};lsjs.addViewClass(str_moduleName,obj_classdef)})();(function(){var str_moduleName='touchNaviInstance';var obj_classdef={start:function(){}};lsjs.addControllerClass(str_moduleName,obj_classdef);lsjs.__moduleHelpers[str_moduleName]={self:null,start:function(el_container,obj_options){this.self=lsjs.createModule({__name:str_moduleName,__el_container:el_container});if(obj_options!==null){this.self.__models.options.set(obj_options)}}}})();(function(){var obj_classdef_model={name:'options',data:{},start:function(){this.data={el_domReference:null,str_selector:'[data-lsjs-component~="touchNavi"]',str_classToSetWhenModuleApplied:'useTouchNavi',obj_instanceOptions:null}},set:function(obj_options){Object.merge(this.data,obj_options);this.__module.onModelLoaded()}};lsjs.addModelClass('touchNaviManager',obj_classdef_model)})();(function(){var str_moduleName='touchNaviManager';var obj_classdef={start:function(){var els_toEnhance;if(this.__models.options.data.el_domReference!==undefined&&typeOf(this.__models.options.data.el_domReference)==='element'){els_toEnhance=this.__models.options.data.el_domReference.getElements(this.__models.options.data.str_selector)}else{els_toEnhance=$$(this.__models.options.data.str_selector)}
628Array.each(els_toEnhance,function(el_container){if(!el_container.retrieve('alreadyHandledBy_'+str_moduleName)){el_container.store('alreadyHandledBy_'+str_moduleName,!0)}else{return}
629el_container.addClass(this.__models.options.data.str_classToSetWhenModuleApplied);lsjs.__moduleHelpers.touchNaviInstance.start(el_container,this.__models.options.data.obj_instanceOptions)}.bind(this))}};lsjs.addControllerClass(str_moduleName,obj_classdef);lsjs.__moduleHelpers[str_moduleName]={self:null,start:function(obj_options){this.self=lsjs.createModule({__name:str_moduleName});this.self.__models.options.set(obj_options)}}})();(function(){var obj_classdef_model={name:'options',data:{},start:function(){this.data={var_togglerSelector:'#whateverToggler',var_contentBoxSelector:'#whateverContentBox',var_wrapperSelector:null,var_closeButtonSelector:null,bln_automaticallyCreateResizeBox:!0,str_togglerEventType:'click',str_initialToggleStatus:'open',bln_toggleOnInitialization:!1,bln_ski
629pAnimationWhenTogglingOnInitialization:!1,str_cookieIdentifierName:'',str_initialCookieStatus:'',bln_closeOnOutsideClick:!1,arr_selectorsToLimitCloseOnOutsideClick:[],str_animationMode:'height',bln_morphPaddings:!1,bln_considerWindowScrollInMarginAnimationMode:!1,bln_moveWithWindowScrollInMarginAnimationMode:!1,obj_moveWithWindowScrollInMarginAnimationModeOffsets:{top:0,bottom:0},str_initialDisplayType:null,var_initialHeight:'auto',int_heightOffset:0,int_widthOffset:0,str_classOpen:'lsUnfoldOpen',str_classClosed:'lsUnfoldClosed',str_classRunning:'lsUnfoldRunning',bln_useLogging:!1,str_classUseLsUnfold:'useLsUnfold',obj_morphOptions:{'duration':250,'link':'ignore'}}},set:function(obj_options){Object.merge(this.data,obj_options);this.data.obj_morphOptions.onComplete=function(){this.__view.setEndStyles();this.__view.toggleStatus();this.__view.onMorphComplete();if(obj_options.obj_morphOptions!==undefined&&obj_options.obj_morphOptions.onComplete!==undefined&&typeOf(obj_options.obj_morphOptions.onComplete)==='function'){obj_options.obj_morphOptions.onComplete()}}.bind(this);this.__module.onModelLoaded()}};lsjs.addModelClass('unfold',obj_classdef_model)})();(function(){var str_moduleName='unfold';var obj_classdef={bound_onToggleEvent:null,bound_closeOnOutsideClick:null,bound_closeOnCloseButtonClick:null,interval_scrollPositionChecker:null,els_toggler:null,el_resizeBox:null,el_contentBox:null,el_wrapper:null,els_closeButton:null,var_initialHeight:null,obj_initialPaddings:{'top':0,'right':0,'bottom':0,'left':0},str_initialDisplayType:null,int_windowScrollY:0,obj_morph:null,obj_morphSkipAnimation:null,obj_morph_slideToScrollPosition:null,obj_startStyles:{},obj_endStyles:{},obj_morphParams:{},str_toggleStatus:'open',str_togglerEventTypeToUse:'click',bln_skipAnimation:!1,start:function(){this.bound_onToggleEvent=this.onToggleEvent.bind(this);this.bound_closeOnOutsideClick=this.closeOnOutsideClick.bind(this);this.bound_closeOnCloseButtonClick=this.closeOnCloseButtonClick.bind(this);this.str_togglerEventTypeToUse=typeOf(this.__models.options.data.str_togglerEventType)==='array'?this.__models.options.data.str_togglerEventType[0]:this.__models.options.data.str_togglerEventType;this.els_toggler=typeOf(this.__models.options.data.var_togglerSelector)==='element'||typeOf(this.__models.options.data.var_togglerSelector)==='null'?this.__models.options.data.var_togglerSelector:$$(this.__models.options.data.var_togglerSelector);this.el_wrapper=typeOf(this.__models.options.data.var_wrapperSelector)==='element'||typeOf(this.__models.options.data.var_wrapperSelector)==='null'?this.__models.options.data.var_wrapperSelector:$$(this.__models.options.data.var_wrapperSelector)[0];this.els_closeButton=typeOf(this.__models.options.data.var_closeButtonSelector)==='element'||typeOf(this.__models.options.data.var_closeButtonSelector)==='null'?this.__models.options.data.var_closeButtonSelector:$$(this.__models.options.data.var_closeButtonSelector);this.el_contentBox=typeOf(this.__models.options.data.var_contentBoxSelector)==='element'||typeOf(this.__models.options.data.var_contentBoxSelector)==='null'?this.__models.options.data.var_contentBoxSelector:$$(this.__models.options.data.var_contentBoxSelector)[0];if(this.els_toggler===undefined||this.els_toggler===null||this.el_contentBox===undefined||this.el_contentBox===null){if(this.__models.options.data.bln_useLogging){console.error('required elements missing:');console.log('this.els_toggler',this.els_toggler);console.log('this.el_contentBox',this.el_contentBox);console.log('this.__models.options.data',this.__models.options.data)}
630return}
631this.str_toggleStatus=this.__models.options.data.str_initialToggleStatus;if(this.__models.options.data.bln_automaticallyCreateResizeBox){this.el_resizeBox=new Element('div.lsUnfoldResizeBox').wraps(this.el_contentBox);this.el_resizeBox.setStyles({height:'auto',overflow:'hidden',display:this.__models.options.data.str_initialToggleStatus==='open'?'block':'none'})}else{this.el_resizeBox=this.el_contentBox}
632if(this.__models.options.data.var_initialHeight==='getStyle'){this.var_initialHeight=this.el_resizeBox.getStyle('height')}else if(this.__models.options.data.var_initialHeight==='measure'){this.var_initialHeight=this.getResizeBoxHeight()}else{this.var_initialHeight=this.__models.options.data.var_initialHeight}
633this.obj_initialPaddings=this.el_resizeBox.measure(function(){var obj_paddings,obj_dimensions;obj_dimensions=this.getDimensions({computeSize:!0});obj_paddings={'top':obj_dimensions['padding-top'],'right':obj_dimensions['padding-right'],'bottom':obj_dimensions['padding-bottom'],'left':obj_dimensions['padding-left']};return obj_paddings});this.str_initialDisplayType=(this.__models.options.data.str_initialDisplayType!==undefined&&this.__models.options.data.str_initialDisplayType!==null)?this.__models.options.data.str_initialDisplayType:this.el_resizeBox.getStyle('display');this.obj_morph=new Fx.Morph(this.el_resizeBox,this.__models.options.data.obj_morphOptions);var obj_morphOptionsSkipAnimation=this.__models.options.data.obj_morphOptions;obj_morphOptionsSkipAnimation.duration=0;this.obj_morphSkipAnimation=new Fx.Morph(this.el_resizeBox,obj_morphOptionsSkipAnimation);this.obj_morph_slideToScrollPosition=new Fx.Morph(this.el_resizeBox,{'duration':1000,'link':'cancel'});if(this.el_wrapper!==undefined&&this.el_wrapper!==null){this.el_wrapper.addClass(this.__models.options.data.str_classUseLsUnfold)}
634if(this.els_closeButton!==undefined&&this.els_closeButton!==null){this.els_closeButton.addClass(this.__models.options.data.str_classUseLsUnfold)}
635this.els_toggler.addEvent(this.str_togglerEventTypeToUse,this.bound_onToggleEvent);this.adjustClasses();if(this.__models.options.data.bln_toggleOnInitialization){if(this.__models.options.data.bln_ski
635pAnimationWhenTogglingOnInitialization){this.bln_skipAnimation=!0}
636this.els_toggler.fireEvent(this.str_togglerEventTypeToUse);if(this.__models.options.data.bln_skipAnimationWhenTogglingOnInitialization){this.bln_skipAnimation=!1}}
637this.considerStatusFromCookie()},considerStatusFromCookie:function(){if(!this.__models.options.data.str_cookieIdentifierName){return}
638if(Cookie.read(this.__models.options.data.str_cookieIdentifierName)!=='open'&&Cookie.read(this.__models.options.data.str_cookieIdentifierName)!=='closed'){Cookie.write(this.__models.options.data.str_cookieIdentifierName,this.__models.options.data.str_initialCookieStatus?this.__models.options.data.str_initialCookieStatus:this.str_toggleStatus,{sameSite:'Lax'})}
639if(this.str_toggleStatus!=Cookie.read(this.__models.options.data.str_cookieIdentifierName)){this.bln_skipAnimation=!0;this.els_toggler.fireEvent(this.str_togglerEventTypeToUse);this.bln_skipAnimation=!1}},onToggleEvent:function(event){if(event!==undefined){event.preventDefault()}
640if(this.obj_morph.isRunning()){return}
641this.updateTogglerEventTypeToUse();if(this.el_wrapper!==undefined&&this.el_wrapper!==null){this.el_wrapper.addClass(this.__models.options.data.str_classRunning)}
642this.el_resizeBox.addClass(this.__models.options.data.str_classRunning);this.els_toggler.addClass(this.__models.options.data.str_classRunning);if(this.str_toggleStatus==='closed'){this.openResizeBox()}else{this.closeResizeBox()}},updateTogglerEventTypeToUse:function(){if(typeOf(this.__models.options.data.str_togglerEventType)!=='array'){return}
643this.els_toggler.removeEvent(this.str_togglerEventTypeToUse,this.bound_onToggleEvent);this.str_togglerEventTypeToUse=this.__models.options.data.str_togglerEventType[0]===this.str_togglerEventTypeToUse?this.__models.options.data.str_togglerEventType[1]:this.__models.options.data.str_togglerEventType[0];this.els_toggler.addEvent(this.str_togglerEventTypeToUse,this.bound_onToggleEvent)},openResizeBox:function(){var int_endHeight=this.getResizeBoxHeight();var int_endWidth=this.getResizeBoxWidth();if(this.__models.options.data.bln_closeOnOutsideClick){window.addEvent('click',this.bound_closeOnOutsideClick)}
644if(this.els_closeButton){this.els_closeButton.addEvent('click',this.bound_closeOnCloseButtonClick)}
645if(this.__models.options.data.bln_considerWindowScrollInMarginAnimationMode){this.int_windowScrollY=window.getScroll().y}
646int_endHeight+=this.__models.options.data.int_heightOffset;int_endWidth+=this.__models.options.data.int_widthOffset;this.obj_startStyles={};this.obj_morphParams={};switch(this.__models.options.data.str_animationMode){case 'height':this.obj_startStyles={'height':0,'display':this.str_initialDisplayType};this.obj_morphParams={'height':[0,int_endHeight]};this.obj_endStyles={'height':this.var_initialHeight};break;case 'margin-top':this.obj_startStyles={'margin-top':this.int_windowScrollY+(int_endHeight*-1),'display':this.str_initialDisplayType};this.obj_morphParams={'margin-top':[this.int_windowScrollY+(int_endHeight*-1),this.int_windowScrollY+0]};break;case 'margin-left':this.obj_startStyles={'margin-left':this.int_windowScrollY+(int_endWidth*-1),'display':this.str_initialDisplayType};this.obj_morphParams={'margin-left':[int_endWidth*-1,0]};break}
647if(this.__models.options.data.bln_morphPaddings){this.obj_morphParams['padding-top']=[0,this.obj_initialPaddings.top];this.obj_morphParams['padding-bottom']=[0,this.obj_initialPaddings.bottom];this.obj_startStyles['padding-top']=0;this.obj_startStyles['padding-bottom']=0;this.obj_endStyles['padding-top']=this.obj_initialPaddings.top;this.obj_endStyles['padding-bottom']=this.obj_initialPaddings.bottom}
648this.el_resizeBox.setStyles(this.obj_startStyles);if(this.bln_skipAnimation){this.obj_morphSkipAnimation.start(this.obj_morphParams)}else{this.obj_morph.start(this.obj_morphParams)}},closeResizeBox:function(){var int_beginHeight=this.getResizeBoxHeight();var int_beginWidth=this.getResizeBoxWidth();window.removeEvent('click',this.bound_closeOnOutsideClick);int_beginHeight+=this.__models.options.data.int_heightOffset;int_beginWidth+=this.__models.options.data.int_widthOffset;this.obj_startStyles={};this.obj_morphParams={};switch(this.__models.options.data.str_animationMode){case 'height':this.obj_morphParams={'height':[int_beginHeight,0]};this.obj_endStyles={'height':this.var_initialHeight,'display':'none'};break;case 'margin-top':this.obj_morphParams={'margin-top':[this.el_resizeBox.getStyle('margin-top').toInt(),this.el_resizeBox.getStyle('margin-top').toInt()-int_beginHeight]};this.obj_endStyles={'display':'none'};break;case 'margin-left':this.obj_morphParams={'margin-left':[this.el_resizeBox.getStyle('margin-left').toInt(),this.el_resizeBox.getStyle('margin-left').toInt()-int_beginWidth]};this.obj_endStyles={'display':'none'};break}
649if(this.__models.options.data.bln_morphPaddings){this.obj_morphParams['padding-top']=[this.obj_initialPaddings.top,0];this.obj_morphParams['padding-bottom']=[this.obj_initialPaddings.bottom,0];this.obj_startStyles['padding-top']=this.obj_initialPaddings.top;this.obj_startStyles['padding-bottom']=this.obj_initialPaddings.bottom;this.obj_endStyles['padding-top']=0;this.obj_endStyles['padding-bottom']=0}
650this.el_resizeBox.setStyles(this.obj_startStyles);
650if(this.bln_skipAnimation){this.obj_morphSkipAnimation.start(this.obj_morphParams)}else{this.obj_morph.start(this.obj_morphParams)}},toggleStatus:function(){if(this.str_toggleStatus==='open'){this.str_toggleStatus='closed'}else{this.str_toggleStatus='open'}
651if(this.__models.options.data.str_cookieIdentifierName){Cookie.write(this.__models.options.data.str_cookieIdentifierName,this.str_toggleStatus,{sameSite:'Lax'})}},setEndStyles:function(){this.el_resizeBox.setStyles(this.obj_endStyles);this.obj_endStyles={}},adjustClasses:function(){if(!this.obj_morph.isRunning()){if(this.el_wrapper!==undefined&&this.el_wrapper!==null){this.el_wrapper.removeClass(this.__models.options.data.str_classRunning)}
652this.el_resizeBox.removeClass(this.__models.options.data.str_classRunning);this.els_toggler.removeClass(this.__models.options.data.str_classRunning)}
653switch(this.str_toggleStatus){case 'open':if(this.el_wrapper!==undefined&&this.el_wrapper!==null){this.el_wrapper.removeClass(this.__models.options.data.str_classClosed);this.el_wrapper.addClass(this.__models.options.data.str_classOpen)}
654this.el_resizeBox.removeClass(this.__models.options.data.str_classClosed);this.el_resizeBox.addClass(this.__models.options.data.str_classOpen);this.els_toggler.removeClass(this.__models.options.data.str_classClosed);this.els_toggler.addClass(this.__models.options.data.str_classOpen);break;case 'closed':if(this.el_wrapper!==undefined&&this.el_wrapper!==null){this.el_wrapper.removeClass(this.__models.options.data.str_classOpen);this.el_wrapper.addClass(this.__models.options.data.str_classClosed)}
655this.el_resizeBox.removeClass(this.__models.options.data.str_classOpen);this.el_resizeBox.addClass(this.__models.options.data.str_classClosed);this.els_toggler.removeClass(this.__models.options.data.str_classOpen);this.els_toggler.addClass(this.__models.options.data.str_classClosed);break}},onMorphComplete:function(){this.adjustClasses();switch(this.str_toggleStatus){case 'open':if(this.__models.options.data.bln_moveWithWindowScrollInMarginAnimationMode){this.interval_scrollPositionChecker=setInterval(this.slideToScrollPosition.bind(this),100)}
656break;case 'closed':if(this.__models.options.data.bln_moveWithWindowScrollInMarginAnimationMode){if(this.interval_scrollPositionChecker!==null){clearInterval(this.interval_scrollPositionChecker)}}
657break}},slideToScrollPosition:function(){var morph_options={},int_slideTarget,str_edgeToSlideTo,obj_windowCoordinates,obj_elementCoordinates,obj_elementCoordinatesWithOffset;if(window.getScroll().y===this.int_windowScrollY){return}
658this.int_windowScrollY=window.getScroll().y;obj_windowCoordinates={'top':window.getScroll().y,'bottom':window.getScroll().y+window.getSize().y,'width':window.getSize().x,'height':window.getSize().y};obj_elementCoordinates=this.el_resizeBox.getCoordinates();obj_elementCoordinatesWithOffset=obj_elementCoordinates;obj_elementCoordinatesWithOffset.height=obj_elementCoordinatesWithOffset.height+this.__models.options.data.obj_moveWithWindowScrollInMarginAnimationModeOffsets.top+this.__models.options.data.obj_moveWithWindowScrollInMarginAnimationModeOffsets.bottom;obj_elementCoordinatesWithOffset.top-=this.__models.options.data.obj_moveWithWindowScrollInMarginAnimationModeOffsets.top;obj_elementCoordinatesWithOffset.bottom-=this.__models.options.data.obj_moveWithWindowScrollInMarginAnimationModeOffsets.bottom;if(obj_elementCoordinatesWithOffset.height<=obj_windowCoordinates.height){str_edgeToSlideTo='top'}else{if(obj_elementCoordinatesWithOffset.top>obj_windowCoordinates.top&&obj_elementCoordinatesWithOffset.top<obj_windowCoordinates.bottom){str_edgeToSlideTo='top'}else if(obj_elementCoordinatesWithOffset.bottom>obj_windowCoordinates.top&&obj_elementCoordinatesWithOffset.bottom<obj_windowCoordinates.bottom){str_edgeToSlideTo='bottom'}else{if(obj_elementCoordinatesWithOffset.bottom<obj_windowCoordinates.top){str_edgeToSlideTo='bottom'}else if(obj_elementCoordinatesWithOffset.top>obj_windowCoordinates.bottom){str_edgeToSlideTo='top'}else{str_edgeToSlideTo='none'}}}
659if(str_edgeToSlideTo==='top'){int_slideTarget=this.int_windowScrollY+this.__models.options.data.obj_moveWithWindowScrollInMarginAnimationModeOffsets.top}
659else if(str_edgeToSlideTo==='bottom'){int_slideTarget=(this.int_windowScrollY-(obj_elementCoordinatesWithOffset.height-obj_windowCoordinates.height))}else{return}
660morph_options[this.__models.options.data.str_animationMode]=int_slideTarget;this.obj_morph_slideToScrollPosition.start(morph_options)},closeOnOutsideClick:function(event){var bln_clickedInside=!1;if(this.obj_morph.isRunning()){return}
661if(event.target===this.el_resizeBox||event.target===this.el_wrapper){bln_clickedInside=!0}
662Array.each(event.target.getParents(),function(el_parent){if(el_parent===this.el_resizeBox||el_parent===this.el_wrapper){bln_clickedInside=!0}}.bind(this));if(bln_clickedInside){return}
663if(this.__models.options.data.arr_selectorsToLimitCloseOnOutsideClick.length>0){var bln_clickedElementMatchesSelector=!1;Array.each(this.__models.options.data.arr_selectorsToLimitCloseOnOutsideClick,function(str_selector){if(event.target.matches(str_selector)){bln_clickedElementMatchesSelector=!0}});if(!bln_clickedElementMatchesSelector){return}}
664this.onToggleEvent()},closeOnCloseButtonClick:function(){if(this.obj_morph.isRunning()){return}
665this.onToggleEvent()},getResizeBoxHeight:function(){var obj_dimensions,int_height;obj_dimensions=this.el_resizeBox.getDimensions({computeSize:!0});int_height=obj_dimensions.height;if(this.el_resizeBox.getStyle('box-sizing')!=='border-box'){int_height=int_height-obj_dimensions['padding-top']-obj_dimensions['padding-bottom']-obj_dimensions['border-top-width']-obj_dimensions['border-bottom-width']}
666return int_height},getResizeBoxWidth:function(){var obj_dimensions,int_width;obj_dimensions=this.el_resizeBox.getDimensions({computeSize:!0});int_width=obj_dimensions.width;if(this.el_resizeBox.getStyle('box-sizing')!=='border-box'){int_width=int_width-obj_dimensions['padding-left']-obj_dimensions['padding-right']-obj_dimensions['border-left-width']-obj_dimensions['border-right-width']}
667return int_width},instantlyOpen:function(){if(this.str_toggleStatus==='closed'){this.bln_skipAnimation=!0;this.onToggleEvent();this.bln_skipAnimation=!1}},instantlyClose:function(){if(this.str_toggleStatus==='open'){this.bln_skipAnimation=!0;this.onToggleEvent();this.bln_skipAnimation=!1}}};lsjs.addViewClass(str_moduleName,obj_classdef)})();(function(){var str_moduleName='unfold';var obj_classdef={start:function(){}};lsjs.addControllerClass(str_moduleName,obj_classdef);lsjs.__moduleHelpers[str_moduleName]={self:null,start:function(obj_options){this.self=lsjs.createModule({__name:str_moduleName});this.self.__models.options.set(obj_options);return this.self}}})()})()

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.