1/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 2(function(factory){if(typeof define==='function'&&define.amd&&define.amd.jQuery)define(['jquery'],factory);else if(typeof module!=='undefined'&&module.exports)factory(require("jquery"));else factory(jQuery);}(function($){"use strict";var VERSION="1.6.18",LEFT="left",RIGHT="right",UP="up",DOWN="down",IN="in",OUT="out",NONE="none",AUTO="auto",SWIPE="swipe",PINCH="pinch",TAP="tap",DOUBLE_TAP="doubletap",LONG_TAP="longtap",HOLD="hold",HORIZONTAL="horizontal",VERTICAL="vertical",ALL_FINGERS="all",DOUBLE_TAP_THRESHOLD=10,PHASE_START="start",PHASE_MOVE="move",PHASE_END="end",PHASE_CANCEL="cancel",SUPPORTS_TOUCH='ontouchstart' in window,SUPPORTS_POINTER_IE10=window.navigator.msPointerEnabled&&!window.navigator.pointerEnabled&&!SUPPORTS_TOUCH,SUPPORTS_POINTER=(window.navigator.pointerEnabled||window.navigator.msPointerEnabled)&&!SUPPORTS_TOUCH,PLUGIN_NS='TouchSwipe';var defaults={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,hold:null,triggerOnTouchEnd:true,triggerOnTouchLeave:false,allowPageScroll:"auto",fallbackToMouseEvents:true,excludedElements:".noSwipe",preventDefaultEvents:true};$.fn.swipe=function(method){var $this=$(this),plugin=$this.data(PLUGIN_NS);if(plugin&&typeof method==='string')if(plugin[method])return plugin[method].apply(plugin,Array.prototype.slice.call(arguments,1));else $.error('Method '+method+' does not exist on jQuery.swipe');else if(plugin&&typeof method==='object')plugin['option'].apply(plugin,arguments);else{if(!plugin&&(typeof method==='object'||!method))return init.apply(this,arguments);}return $this;};$.fn.swipe.version=VERSION;$.fn.swipe.defaults=defaults;$.fn.swipe.phases={PHASE_START,PHASE_MOVE,PHASE_END,PHASE_CANCEL};$.fn.swipe.directions={LEFT,RIGHT,UP,DOWN,IN,OUT};$.fn.swipe.pageScroll={NONE,HORIZONTAL,VERTICAL,AUTO};$.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,FOUR:4,FIVE:5,ALL:ALL_FINGERS};function init(options){if(options&&(options.allowPageScroll===undefined&&(options.swipe!==undefined||options.swipeStatus!==undefined)))options.allowPageScroll=NONE;if(options.click!==undefined&&options.tap===undefined)options.tap=options.click;if(!options)options={};options=$.extend({},$.fn.swipe.defaults,options);return this.each(function(){var $this=$(this);var plugin=$this.data(PLUGIN_NS);if(!plugin){plugin=new TouchSwipe(this,options);$this.data(PLUGIN_NS,plugin);}});}function TouchSwipe(element,options){var options=$.extend({},options);var useTouchEvents=(SUPPORTS_TOUCH||SUPPORTS_POINTER||!options.fallbackToMouseEvents),START_EV=useTouchEvents?(SUPPORTS_POINTER?(SUPPORTS_POINTER_IE10?'MSPointerDown':'pointerdown'):'touchstart'):'mousedown',MOVE_EV=useTouchEvents?(SUPPORTS_POINTER?(SUPPORTS_POINTER_IE10?'MSPointerMove':'pointermove'):'touchmove'):'mousemove',END_EV=useTouchEvents?(SUPPORTS_POINTER?(SUPPORTS_POINTER_IE10?'MSPointerUp':'pointerup'):'touchend'):'mouseup',LEAVE_EV=useTouchEvents?(SUPPORTS_POINTER?'mouseleave':null):'mouseleave',CANCEL_EV=(SUPPORTS_POINTER?(SUPPORTS_POINTER_IE10?'MSPointerCancel':'pointercancel'):'touchcancel');var distance=0,direction=null,currentDirection=null,duration=0,startTouchesDistance=0,endTouchesDistance=0,pinchZoom=1,pinchDistance=0,pinchDirection=0,maximumsMap=null;var $element=$(element);var phase="start";var fingerCount=0;var fingerData={};var startTime=0,endTime=0,previousTouchEndTime=0,fingerCountAtRelease=0,doubleTapStartTime=0;var singleTapTimeout=null,holdTimeout=null;try{$element.bind(START_EV,touchStart);$element.bind(CANCEL_EV,touchCancel);}catch(e){$.error('events not supported '+START_EV+','+CANCEL_EV+' on jQuery.swipe');}this.enable=function(){this.disable();$element.bind(START_EV,touchStart);$element.bind(CANCEL_EV,touchCancel);return $element;};this.disable=function(){removeListeners();return $element;};this.destroy=function(){removeListeners();$element.data(PLUGIN_NS,null);$element=null;};this.option=function(property,value){if(typeof property==='object')options=$.extend(options,property);else if(options[property]!==undefined)if(value===undefined)return options[property];else options[property]=value;else if(!property)return options;else $.error('Option '+property+' does not exist on jQuery.swipe.options');return null;};function touchStart(jqEvent){if(getTouchInProgress())return;if($(jqEvent.target).closest(options.excludedElements,$element).length>0)return;var event=jqEvent.originalEvent?jqEvent.originalEvent:jqEvent;if(event.pointerType&&event.pointerType=="mouse"&&options.fallbackToMouseEvents==false)return;;var ret,touches=event.touches,evt=touches?touches[0]:event;phase=PHASE_START;if(touches)fingerCount=touches.length;else{if(options.preventDefaultEvents!==false)jqEvent.preventDefault();}distance=0;direction=null;currentDirection=null;pinchDirection=null;duration=0;startTouchesDistance=0;endTouchesDistance=0;pinchZoom=1;pinchDistance=0;maximumsMap=createMaximumsData();cancelMultiFingerRelease();createFingerData(0,evt);
2if(!touches||(fingerCount===options.fingers||options.fingers===ALL_FINGERS)||hasPinches()){startTime=getTimeStamp();if(fingerCount==2){createFingerData(1,touches[1]);startTouchesDistance=endTouchesDistance=calculateTouchesDistance(fingerData[0].start,fingerData[1].start);}if(options.swipeStatus||options.pinchStatus)ret=triggerHandler(event,phase);}else ret=false;if(ret===false){phase=PHASE_CANCEL;triggerHandler(event,phase);return ret;}else{if(options.hold)holdTimeout=setTimeout($.proxy(function(){$element.trigger('hold',[event.target]);if(options.hold)ret=options.hold.call($element,event,event.target);},this),options.longTapThreshold);setTouchInProgress(true);}return null;};function touchMove(jqEvent){var event=jqEvent.originalEvent?jqEvent.originalEvent:jqEvent;if(phase===PHASE_END||phase===PHASE_CANCEL||inMultiFingerRelease())return;var ret,touches=event.touches,evt=touches?touches[0]:event;var currentFinger=updateFingerData(evt);endTime=getTimeStamp();if(touches)fingerCount=touches.length;if(options.hold)clearTimeout(holdTimeout);phase=PHASE_MOVE;if(fingerCount==2){if(startTouchesDistance==0){createFingerData(1,touches[1]);startTouchesDistance=endTouchesDistance=calculateTouchesDistance(fingerData[0].start,fingerData[1].start);}else{updateFingerData(touches[1]);endTouchesDistance=calculateTouchesDistance(fingerData[0].end,fingerData[1].end);pinchDirection=calculatePinchDirection(fingerData[0].end,fingerData[1].end);}pinchZoom=calculatePinchZoom(startTouchesDistance,endTouchesDistance);pinchDistance=Math.abs(startTouchesDistance-endTouchesDistance);}if((fingerCount===options.fingers||options.fingers===ALL_FINGERS)||!touches||hasPinches()){direction=calculateDirection(currentFinger.start,currentFinger.end);currentDirection=calculateDirection(currentFinger.last,currentFinger.end);validateDefaultEvent(jqEvent,currentDirection);distance=calculateDistance(currentFinger.start,currentFinger.end);duration=calculateDuration();setMaxDistance(direction,distance);ret=triggerHandler(event,phase);if(!options.triggerOnTouchEnd||options.triggerOnTouchLeave){var inBounds=true;if(options.triggerOnTouchLeave){var bounds=getbounds(this);inBounds=isInBounds(currentFinger.end,bounds);}if(!options.triggerOnTouchEnd&&inBounds)phase=getNextPhase(PHASE_MOVE);else{if(options.triggerOnTouchLeave&&!inBounds)phase=getNextPhase(PHASE_END);}if(phase==PHASE_CANCEL||phase==PHASE_END)triggerHandler(event,phase);}}else{phase=PHASE_CANCEL;triggerHandler(event,phase);}if(ret===false){phase=PHASE_CANCEL;triggerHandler(event,phase);}}function touchEnd(jqEvent){var event=jqEvent.originalEvent?jqEvent.originalEvent:jqEvent,touches=event.touches;if(touches)if(touches.length&&!inMultiFingerRelease()){startMultiFingerRelease(event);return true;}else{if(touches.length&&inMultiFingerRelease())return true;}if(inMultiFingerRelease())fingerCount=fingerCountAtRelease;endTime=getTimeStamp();duration=calculateDuration();if(didSwipeBackToCancel()||!validateSwipeDistance()){phase=PHASE_CANCEL;triggerHandler(event,phase);}else if(options.triggerOnTouchEnd||(options.triggerOnTouchEnd===false&&phase===PHASE_MOVE)){if(options.preventDefaultEvents!==false&&jqEvent.cancelable!==false)jqEvent.preventDefault();phase=PHASE_END;triggerHandler(event,phase);}else if(!options.triggerOnTouchEnd&&hasTap()){phase=PHASE_END;triggerHandlerForGesture(event,phase,TAP);}else{if(phase===PHASE_MOVE){phase=PHASE_CANCEL;triggerHandler(event,phase);}}setTouchInProgress(false);return null;}function touchCancel(){fingerCount=0;endTime=0;startTime=0;startTouchesDistance=0;endTouchesDistance=0;pinchZoom=1;cancelMultiFingerRelease();setTouchInProgress(false);}function touchLeave(jqEvent){var event=jqEvent.originalEvent?jqEvent.originalEvent:jqEvent;if(options.triggerOnTouchLeave){phase=getNextPhase(PHASE_END);triggerHandler(event,phase);}}function removeListeners(){$element.unbind(START_EV,touchStart);$element.unbind(CANCEL_EV,touchCancel);$element.unbind(MOVE_EV,touchMove);$element.unbind(END_EV,touchEnd);if(LEAVE_EV)$element.unbind(LEAVE_EV,touchLeave);setTouchInProgress(false);}function getNextPhase(currentPhase){var nextPhase=currentPhase;
2var validTime=validateSwipeTime();var validDistance=validateSwipeDistance();var didCancel=didSwipeBackToCancel();if(!validTime||didCancel)nextPhase=PHASE_CANCEL;else if(validDistance&¤tPhase==PHASE_MOVE&&(!options.triggerOnTouchEnd||options.triggerOnTouchLeave))nextPhase=PHASE_END;else{if(!validDistance&¤tPhase==PHASE_END&&options.triggerOnTouchLeave)nextPhase=PHASE_CANCEL;}return nextPhase;}function triggerHandler(event,phase){var ret,touches=event.touches;if(didSwipe()||hasSwipes())ret=triggerHandlerForGesture(event,phase,SWIPE);if((didPinch()||hasPinches())&&ret!==false)ret=triggerHandlerForGesture(event,phase,PINCH);if(didDoubleTap()&&ret!==false)ret=triggerHandlerForGesture(event,phase,DOUBLE_TAP);else if(didLongTap()&&ret!==false)ret=triggerHandlerForGesture(event,phase,LONG_TAP);else{if(didTap()&&ret!==false)ret=triggerHandlerForGesture(event,phase,TAP);}if(phase===PHASE_CANCEL)touchCancel(event);if(phase===PHASE_END)if(touches){if(!touches.length)touchCancel(event);}else touchCancel(event);return ret;}function triggerHandlerForGesture(event,phase,gesture){var ret;if(gesture==SWIPE){$element.trigger('swipeStatus',[phase,direction||null,distance||0,duration||0,fingerCount,fingerData,currentDirection]);if(options.swipeStatus){ret=options.swipeStatus.call($element,event,phase,direction||null,distance||0,duration||0,fingerCount,fingerData,currentDirection);if(ret===false)return false;}if(phase==PHASE_END&&validateSwipe()){clearTimeout(singleTapTimeout);clearTimeout(holdTimeout);$element.trigger('swipe',[direction,distance,duration,fingerCount,fingerData,currentDirection]);if(options.swipe){ret=options.swipe.call($element,event,direction,distance,duration,fingerCount,fingerData,currentDirection);if(ret===false)return false;}switch(direction){case LEFT:$element.trigger('swipeLeft',[direction,distance,duration,fingerCount,fingerData,currentDirection]);if(options.swipeLeft)ret=options.swipeLeft.call($element,event,direction,distance,duration,fingerCount,fingerData,currentDirection);break;case RIGHT:$element.trigger('swipeRight',[direction,distance,duration,fingerCount,fingerData,currentDirection]);if(options.swipeRight)ret=options.swipeRight.call($element,event,direction,distance,duration,fingerCount,fingerData,currentDirection);break;case UP:$element.trigger('swipeUp',[direction,distance,duration,fingerCount,fingerData,currentDirection]);if(options.swipeUp)ret=options.swipeUp.call($element,event,direction,distance,duration,fingerCount,fingerData,currentDirection);break;case DOWN:$element.trigger('swipeDown',[direction,distance,duration,fingerCount,fingerData,currentDirection]);if(options.swipeDown)ret=options.swipeDown.call($element,event,direction,distance,duration,fingerCount,fingerData,currentDirection);break;}}}if(gesture==PINCH){$element.trigger('pinchStatus',[phase,pinchDirection||null,pinchDistance||0,duration||0,fingerCount,pinchZoom,fingerData]);if(options.pinchStatus){ret=options.pinchStatus.call($element,event,phase,pinchDirection||null,pinchDistance||0,duration||0,fingerCount,pinchZoom,fingerData);if(ret===false)return false;}if(phase==PHASE_END&&validatePinch())switch(pinchDirection){case IN:$element.trigger('pinchIn',[pinchDirection||null,pinchDistance||0,duration||0,fingerCount,pinchZoom,fingerData]);if(options.pinchIn)ret=options.pinchIn.call($element,event,pinchDirection||null,pinchDistance||0,duration||0,fingerCount,pinchZoom,fingerData);break;case OUT:$element.trigger('pinchOut',[pinchDirection||null,pinchDistance||0,duration||0,fingerCount,pinchZoom,fingerData]);if(options.pinchOut)ret=options.pinchOut.call($element,event,pinchDirection||null,pinchDistance||0,duration||0,fingerCount,pinchZoom,fingerData);break;}}if(gesture==TAP){if(phase===PHASE_CANCEL||phase===PHASE_END){clearTimeout(singleTapTimeout);clearTimeout(holdTimeout);if(hasDoubleTap()&&!inDoubleTap()){doubleTapStartTime=getTimeStamp();singleTapTimeout=setTimeout($.proxy(function(){doubleTapStartTime=null;$element.trigger('tap',[event.target]);if(options.tap)ret=options.tap.call($element,event,event.target);},this),options.doubleTapThreshold);}else{doubleTapStartTime=null;$element.trigger('tap',[event.target]);if(options.tap)ret=options.tap.call($element,event,event.target);}}}else if(gesture==DOUBLE_TAP){if(phase===PHASE_CANCEL||phase===PHASE_END){clearTimeout(singleTapTimeout);clearTimeout(holdTimeout);doubleTapStartTime=null;$element.trigger('doubletap',[event.target]);if(options.doubleTap)ret=options.doubleTap.call($element,event,event.target);}}else{if(gesture==LONG_TAP)if(phase===PHASE_CANCEL||phase===PHASE_END){clearTimeout(singleTapTimeout);doubleTapStartTime=null;$element.trigger('longtap',[event.target]);if(options.longTap)ret=options.longTap.call($element,event,event.target);}}return ret;}function validateSwipeDistance(){var valid=true;if(options.threshold!==null)valid=distance>=options.threshold;return valid;}function didSwipeBackToCancel(){var cancelled=false;if(options.cancelThreshold!==null&&direction!==null)cancelled=(getMaxDistance(direction)-distance)>=options.cancelThreshold;return cancelled;}function validatePinchDistance(){if(options.pinchThreshold!==null)return pinchDistance>=options.pinchThreshold;return true;}function validateSwipeTime(){var result;if(options.maxTimeThreshold)if(duration>=options.maxTimeThreshold)result=false;else result=true;else result=true;return result;}function validateDefaultEvent(jqEvent,direction){if(options.preventDefaultEvents===false)return;if(options.allowPageScroll===NONE)jqEvent.preventDefault();else{var auto=options.allowPageScroll===AUTO;switch(direction){case LEFT:if((options.swipeLeft&&auto)||(!auto&&options.allowPageScroll!=HORIZONTAL))jqEvent.preventDefault();break;case RIGHT:if((options.swipeRight&&auto)||(!auto&&options.allowPageScroll!=HORIZONTAL))jqEvent.preventDefault();break;case UP:if((options.swipeUp&&auto)||(!auto&&options.allowPageScroll!=VERTICAL))jqEvent.preventDefault();break;case DOWN:if((options.swipeDown&&auto)||(!auto&&options.allowPageScroll!=VERTICAL))jqEvent.preventDefault();break;case NONE:break;}}}function validatePinch(){var hasCorrectFingerCount=validateFingers();var hasEndPoint=validateEndPoint();var hasCorrectDistance=validatePinchDistance();return hasCorrectFingerCount&&hasEndPoint&&hasCorrectDistance;}function hasPinches(){return !!(options.pinchStatus||options.pinchIn||options.pinchOut);}function didPinch(){return !!(validatePinch()&&hasPinches());}function validateSwipe(){var hasValidTime=validateSwipeTime();var hasValidDistance=validateSwipeDistance();var hasCorrectFingerCount=validateFingers();var hasEndPoint=validateEndPoint();var didCancel=didSwipeBackToCancel();var valid=!didCancel&&hasEndPoint&&hasCorrectFingerCount&&hasValidDistance&&hasValidTime;return valid;}function hasSwipes(){return !!(options.swipe||options.swipeStatus||options.swipeLeft||options.swipeRight||options.swipeUp||options.swipeDown);}function didSwipe(){return !!(validateSwipe()&&hasSwipes());}function validateFingers(){return ((fingerCount===options.fingers||options.fingers===ALL_FINGERS)||!SUPPORTS_TOUCH);}function validateEndPoint(){return fingerData[0].end.x!==0;}function hasTap(){return !!(options.tap);}function hasDoubleTap(){return !!(options.doubleTap);}function hasLongTap(){return !!(options.longTap);}function validateDoubleTap(){if(doubleTapStartTime==null)return false;var now=getTimeStamp();return (hasDoubleTap()&&((now-doubleTapStartTime)<=options.doubleTapThreshold));}function inDoubleTap(){return validateDoubleTap();}function validateTap(){return ((fingerCount===1||!SUPPORTS_TOUCH)&&
2(isNaN(distance)||distance<options.threshold));}function validateLongTap(){return ((duration>options.longTapThreshold)&&(distance<DOUBLE_TAP_THRESHOLD));}function didTap(){return !!(validateTap()&&hasTap());}function didDoubleTap(){return !!(validateDoubleTap()&&hasDoubleTap());}function didLongTap(){return !!(validateLongTap()&&hasLongTap());}function startMultiFingerRelease(event){previousTouchEndTime=getTimeStamp();fingerCountAtRelease=event.touches.length+1;}function cancelMultiFingerRelease(){previousTouchEndTime=0;fingerCountAtRelease=0;}function inMultiFingerRelease(){var withinThreshold=false;if(previousTouchEndTime){var diff=getTimeStamp()-previousTouchEndTime;if(diff<=options.fingerReleaseThreshold)withinThreshold=true;}return withinThreshold;}function getTouchInProgress(){return !!($element.data(PLUGIN_NS+'_intouch')===true);}function setTouchInProgress(val){if(!$element)return;if(val===true){$element.bind(MOVE_EV,touchMove);$element.bind(END_EV,touchEnd);if(LEAVE_EV)$element.bind(LEAVE_EV,touchLeave);}else{$element.unbind(MOVE_EV,touchMove,false);$element.unbind(END_EV,touchEnd,false);if(LEAVE_EV)$element.unbind(LEAVE_EV,touchLeave,false);}$element.data(PLUGIN_NS+'_intouch',val===true);}function createFingerData(id,evt){var f={start:{x:0,y:0},last:{x:0,y:0},end:{x:0,y:0}};f.start.x=f.last.x=f.end.x=evt.pageX||evt.clientX;f.start.y=f.last.y=f.end.y=evt.pageY||evt.clientY;fingerData[id]=f;return f;}function updateFingerData(evt){var id=evt.identifier!==undefined?evt.identifier:0;var f=getFingerData(id);if(f===null)f=createFingerData(id,evt);f.last.x=f.end.x;f.last.y=f.end.y;f.end.x=evt.pageX||evt.clientX;f.end.y=evt.pageY||evt.clientY;return f;}function getFingerData(id){return fingerData[id]||null;}function setMaxDistance(direction,distance){if(direction==NONE)return;distance=Math.max(distance,getMaxDistance(direction));maximumsMap[direction].distance=distance;}function getMaxDistance(direction){if(maximumsMap[direction])return maximumsMap[direction].distance;return undefined;}function createMaximumsData(){var maxData={};maxData[LEFT]=createMaximumVO(LEFT);maxData[RIGHT]=createMaximumVO(RIGHT);maxData[UP]=createMaximumVO(UP);maxData[DOWN]=createMaximumVO(DOWN);return maxData;}function createMaximumVO(dir){return {direction:dir,distance:0};}function calculateDuration(){return endTime-startTime;}function calculateTouchesDistance(startPoint,endPoint){var diffX=Math.abs(startPoint.x-endPoint.x);var diffY=Math.abs(startPoint.y-endPoint.y);return Math.round(Math.sqrt(diffX*diffX+diffY*diffY));}function calculatePinchZoom(startDistance,endDistance){var percent=(endDistance/startDistance)*1;return percent.toFixed(2);}function calculatePinchDirection(){if(pinchZoom<1)return OUT;else return IN;}function calculateDistance(startPoint,endPoint){return Math.round(Math.sqrt(Math.pow(endPoint.x-startPoint.x,2)+Math.pow(endPoint.y-startPoint.y,2)));}function calculateAngle(startPoint,endPoint){var x=startPoint.x-endPoint.x;var y=endPoint.y-startPoint.y;var r=Math.atan2(y,x);var angle=Math.round(r*180/Math.PI);if(angle<0)angle=360-Math.abs(angle);return angle;}function calculateDirection(startPoint,endPoint){if(comparePoints(startPoint,endPoint))return NONE;var angle=calculateAngle(startPoint,endPoint);if((angle<=45)&&(angle>=0))return LEFT;else if((angle<=360)&&(angle>=315))return LEFT;else if((angle>=135)&&(angle<=225))return RIGHT;else if((angle>45)&&(angle<135))return DOWN;else return UP;}function getTimeStamp(){var now=new Date();return now.getTime();}function getbounds(el){el=$(el);var offset=el.offset();var bounds={left:offset.left,right:offset.left+el.outerWidth(),top:offset.top,bottom:offset.top+el.outerHeight()};return bounds;}function isInBounds(point,bounds){return (point.x>bounds.left&&point.x<bounds.right&&point.y>bounds.top&&point.y<bounds.bottom);};function comparePoints(pointA,pointB){return (pointA.x==pointB.x&&pointA.y==pointB.y);}}}));; 3'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol?"symbol":typeof obj;};function _toConsumableArray(arr){if(Array.isArray(arr)){for(var i=0,arr2=Array(arr.length);i<arr.length;i++)arr2[i]=arr[i];return arr2;}else return Array.from(arr);}(function(){var lastTime=0;var vendors=['ms','moz','webkit','o'];for(var x=0;x<vendors.length&&!window.requestAnimationFrame;++x){window.requestAnimationFrame=window[vendors[x]+'RequestAnimationFrame'];window.cancelAnimationFrame=window[vendors[x]+'CancelAnimationFrame']||window[vendors[x]+'CancelRequestAnimationFrame'];}if(!window.requestAnimationFrame)window.requestAnimationFrame=function(callback,element){var currTime=new Date().getTime();var timeToCall=Math.max(0,16-(currTime-lastTime));var id=window.setTimeout(function(){callback(currTime+timeToCall);},timeToCall);lastTime=currTime+timeToCall;return id;};})();var Scrollbear=function(window,document){var run;var onChangeHandler=null;function start(){var target=arguments.length<=0||arguments[0]===undefined?document.body:arguments[0];var changedItem=arguments.length<=1||arguments[1]===undefined?target.querySelectorAll('img'):arguments[1];var unloadItems=([].concat(_toConsumableArray(changedItem))||[]).map(function(img){return {dom:img,calculatedHeight:0};});var oldHeight=[].concat(_toConsumableArray(target.childNodes)).reduce(accumulateHeight,0);run=true;var frame=function frame(){if(!run)return;window.requestAnimationFrame(frame);var newHeight=[].concat(_toConsumableArray(target.childNodes)).reduce(accumulateHeight,0);var scroll=getScroll(target);if(isHeightChange(oldHeight,newHeight))if(getLoadedItems(unloadItems).filter(function(item){return item.dom.offsetTop<scroll;}).map(markLoadedItems).length>0){onChangeHandler&&typeof onChangeHandler==='function'&&onChangeHandler(target);returnScroll(target,scroll+(newHeight-oldHeight));}oldHeight=newHeight;};return window.requestAnimationFrame(frame);}function stop(){run=false;}function assign(target,prop,value){target[prop]=value;return target;}function accumulateHeight(total,content){return total+(content.offsetHeight||0);}function isHeightChange(oldHeight,newHeight){return oldHeight!==newHeight;}function getScroll(target){return target.scrollTop||window.scrollY;}function returnScroll(target,pos){if(typeof target.scrollTop==='undefined'||target===document.body)window.scrollTo(0,pos);else target.scrollTop=pos;}function markLoadedItems(item){return assign(item,'calculatedHeight',item.dom.offsetHeight);}function getLoadedItems(items){return items.filter(function(item){return item.dom.offsetHeight>item.calculatedHeight;});}return {start,stop,onChange:function onChange(handler){onChangeHandler=handler;}};}(window,document);if((typeof exports==='undefined'?'undefined':_typeof(exports))==='object')module.exports=Scrollbear;else if(typeof define==='function'&&typeof define.amd!=='undefined')define(function(){return Scrollbear;});else window.Scrollbear=Scrollbear;; 4(function($,Drupal,drupalSettings){Drupal.behaviors.colorboxSwipe={attach:function(context,settings){$(document).on('cbox_open',function(){$('#colorbox *',context).swipe({swipeLeft:function(event,direction,distance,duration,fingerCount,fingerData){$('#cboxContent').find('#cboxNext').trigger('click');},swipeRight:function(event,direction,distance,duration,fingerCount,fingerData){$('#cboxContent').find('#cboxPrevious').trigger('click');}});});}};Drupal.behaviors.colorboxClose={attach:function(context,settings){if(typeof $.colorbox!=='undefined')$.colorbox.settings.overlayClose=false;}};var colorboxResizeInitialized=false;Drupal.behaviors.colorboxResize={attach:function(context,settings){if(!colorboxResizeInitialized){function resizeColorBox(){if($('#cboxOverlay').is(':visible')){var innerElement=$("#cboxLoadedContent > img");var ratio=Math.min(($(window).width()-100)/innerElement.width(),($(window).height()-100)/innerElement.height());
4var resizeOpt={innerHeight:innerElement.height()*ratio,innerWidth:innerElement.width()*ratio};$.colorbox.resize(resizeOpt);}}window.addEventListener("orientationchange",resizeColorBox,false);window.addEventListener("resize",resizeColorBox,false);$(document).bind('cbox_complete',function(){var innerElement=$("#cboxLoadedContent > img");if(innerElement.length)$.colorbox.resize({innerWidth:innerElement.width()});});colorboxResizeInitialized=true;}}};Drupal.behaviors.scrollbarless={attach:function(context,settings){$(document).on('cbox_open',function(){$('html, body').addClass('cbox-open');$('body').addClass('cbox-body-open');});$(document).on('cbox_closed',function(){$('html, body').removeClass('cbox-open');$('body').removeClass('cbox-body-open');});}};})(jQuery,Drupal,drupalSettings);; 5(function($,Drupal,drupalSettings){Drupal.behaviors.mobilemenu={attach:function(context,settings){$('.primary-menu-wrapper',context).each(function(){$('.primary-menu-trigger',context).click(function(event){$('.primary-menu-trigger').toggleClass('is-active');$('.primary-menu').toggleClass('hidden');$('.arrow-top-white').toggleClass('hidden');event.preventDefault();});var subitems=$('.menu--main .menu-item--expanded > a, .menu--main .menu-item--expanded > span',context);subitems.addClass('menu-item--expanded--icon cursor-pointer');subitems.click(function(event){event.preventDefault();$(this).closest('li').find('.menu--main__submenu').toggleClass('menu--main__submenu--open');$(this).find('span.menu-item--toggle').toggleClass('menu-item--toggle--opened');});$('.menu-item--expanded--icon',context).prepend('<span class="menu-item--toggle sm:hidden"></span>');$('.primary-menu .menu-item--active-trail .menu-item--toggle').closest('li').find('.menu--main__submenu').toggleClass('menu--main__submenu--open');$('.primary-menu .menu-item--active-trail .menu-item--toggle').toggleClass('menu-item--toggle--opened');});}};})(jQuery,Drupal,drupalSettings);; 6(function($,Drupal,drupalSettings){Drupal.behaviors.varianttab={attach:function($context){var activevarianttab=window.location.href;var found=false;var tabs=$("._page-product_tabsnav .tabsnav_item a");if(tabs.length>0){tabs.each(function(index,value){if(activevarianttab.indexOf($(this).attr("href"))!=-1){$(this).addClass("is-active");
6found=true;}});if(!found)tabs.first().addClass("is-active");}}};Drupal.behaviors.variantNav={attach:function($context){var activeClassTab='product-page__tab-item--active';var activeClassLink='is-active';$('.product-page__variations-menu').each(function(index){var activeAnchor=window.location.hash.substr(1);if(activeAnchor)setActiveTab(activeAnchor);$(this).find('.product-page__tab-item a').each(function(index){$(this).click(function(e){var tabId=$(this).parent().attr('data-variation-id');history.replaceState(undefined,undefined,"#"+tabId);setActiveTab(tabId);e.preventDefault();return false;});});});function setActiveTab(tab_id){$('.product-page__tab-item.'+activeClassTab).removeClass(activeClassTab);$('.product-page__tab-item a.'+activeClassLink).removeClass(activeClassLink);$('.product-page__tab-item[data-variation-id="'+tab_id+'"]').addClass(activeClassTab);$('.product-page__tab-item[data-variation-id="'+tab_id+'"] a').addClass(activeClassLink);var activeClassVariant='product-page__variant--active';$('.product-page__variant.'+activeClassVariant).removeClass(activeClassVariant);$('.product-page__variant[data-variation-id="'+tab_id+'"]').addClass(activeClassVariant);var activeClassImage='product-page__variation-image--active';$('.product-page__variation-image.'+activeClassImage).removeClass(activeClassImage);var activeImage=$('.product-page__variation-image').first();if($('.product-page__variation-image[data-variation-id="'+tab_id+'"]').length)activeImage=$('.product-page__variation-image[data-variation-id="'+tab_id+'"]');activeImage.addClass(activeClassImage);}}};})(jQuery,Drupal,drupalSettings);; 7(function($,Drupal,drupalSettings){Drupal.behaviors.externalLinks={attach:function(context,settings){$("a[href^=http]").each(function(){if(this.href.indexOf(location.hostname)==-1)$(this).attr({target:"_blank"});});}};Drupal.behaviors.newsButton={attach:function(context,settings){const newsElements=document.querySelectorAll(".news-toggle-wrapper");newsElements.forEach((element)=>{if(element.classList.contains('news-toggle-init'))return;element.classList.add('news-toggle-init');const toggle=element.querySelector(".news-toggle");const body=element.querySelector(".news-body");if(toggle&&body)toggle.addEventListener("click",(e)=>{toggle.classList.toggle("news-toggle--open");body.classList.toggle("news-body--open");body.toggleAttribute("aria-hidden");console.log("test");});});}};Drupal.behaviors.scrolltoTop={attach:function(context,settings){var $window=$(window),$document=$(document),scrollOffset=1000,lastScroll=0;$(window).on('load',function(){if($('.scroll-to-top').length){backToTop=function(){var scrollTop=$window.scrollTop();if((scrollTop>scrollOffset&&scrollTop<lastScroll)||(($window.scrollTop()+$window.height())>=$document.height()-10))$('.scroll-to-top').addClass('visible');else $('.scroll-to-top').removeClass('visible');lastScroll=scrollTop;};backToTop();$window.on('scroll',function(){backToTop();});$('.scroll-to-top').on('click',function(e){e.preventDefault();$('html,body').animate({scrollTop:0},200);$('#scroll-to-top-anchor').focus();});}});}};Drupal.behaviors.menuitemClick={attach:function($context){$('._menu--main a.menu-item--expanded').click(function(event){event.preventDefault();});}};$(document).ready(function(){Scrollbear.start(document.body);});Drupal.behaviors.changeProgressIndicator={attach:function(context){if(drupalSettings.path.currentPath=='Unternehmen/News'||drupalSettings.path.currentPath=='Unternehmen/Presse')Drupal.Ajax.prototype.setProgressIndicatorFullscreen=function(){this.progress.element=$('<div class="text-center"><div class="ring-throbber"> </div></div>');$('body .pager').before(this.progress.element);};}};Drupal.behaviors.facetFilter={attach:function(context){$('.rb-facets-checkboxes').each(function(){var links=$(this).find('.rb-facets-checkbox-links');var toggle=$(this).find('.rb-facets-checkboxes__toggle');toggle.click(function(e){links.toggleClass('rb-facets-checkbox-links--active');toggle.toggleClass('rb-facets-checkboxes__toggle--active');e.preventDefault();return false;});});}};Drupal.behaviors.productOverviewFadeIn={attach:function(context){$(".products-list_item").each(function(i){$(this).css('opacity',0);});setTimeout(function(){$(".products-list_item").each(function(i){$(this).delay(100*i).animate({"opacity":1},300);});},500);}};Drupal.behaviors.befCheckboxes={attach:function(context){var checkboxItemActiveClass='bef-checkbox-item--active';$(".bef-checkboxes .bef-checkbox-item").each(function(){var input=$(this).find('input');if(input.prop('checked'))$(this).addClass(checkboxItemActiveClass);});}};})(jQuery,Drupal,drupalSettings);; 8!function(){var e={697:function(e,t){t.Z={width:24,height:24,body:'<path fill="
8currentColor" d="M7.41 8.58L12 13.17l4.59-4.59L18 10l-6 6l-6-6l1.41-1.42Z"/>'};}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,n),i.exports;}!function(){"use strict";function e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)e[o]=n[o];}return e;}var t=function t(n,o){function r(t,r,i){if("undefined"!=typeof document){"number"==typeof (i=e({},o,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var c="";for(var s in i)i[s]&&(c+="; "+s,!0!==i[s]&&(c+="="+i[s].split(";")[0]));return document.cookie=t+"="+n.write(r,t)+c;}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],o={},r=0;r<t.length;r++){var i=t[r].split("="),c=i.slice(1).join("=");try{var s=decodeURIComponent(i[0]);if(o[s]=n.read(c,s),e===s)break;}catch(e){}}return e?o[e]:o;}},remove:function(t,n){r(t,"",e({},n,{expires:-1}));},withAttributes:function(n){return t(this.converter,e({},this.attributes,n));},withConverter:function(n){return t(e({},this.converter,n),this.attributes);}},{attributes:{value:Object.freeze(o)},converter:{value:Object.freeze(n)}});}({read:function(e){return '"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent);},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent);}},{path:"/"}),o=t;const r=Object.freeze({left:0,top:0,width:16,height:16}),i=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),c=Object.freeze({...r,...i}),s=Object.freeze({...c,body:"",hidden:!1});function a(e,t){const n=function(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const o=((e.rotate||0)+(t.rotate||0))%4;return o&&(n.rotate=o),n;}(e,t);for(const o in s)o in i?o in e&&!(o in n)&&(n[o]=i[o]):o in t?n[o]=t[o]:o in e&&(n[o]=e[o]);return n;}function u(e,t,n){const o=e.icons,r=e.aliases||{};let i={};function c(e){i=a(o[e]||r[e],i);}return c(t),n.forEach(c),a(e,i);}function f(e,t){const n=[];if("object"!=typeof e||"object"!=typeof e.icons)return n;e.not_found instanceof Array&&e.not_found.forEach(((e)=>{t(e,null),n.push(e);}));const o=function(e,t){const n=e.icons,o=e.aliases||{},r=Object.create(null);return (t||Object.keys(n).concat(Object.keys(o))).forEach((function e(t){if(n[t])return r[t]=[];if(!(t in r)){r[t]=null;const n=o[t]&&o[t].parent,i=n&&e(n);i&&(r[t]=[n].concat(i));}return r[t];})),r;}(e);for(const r in o){const i=o[r];i&&(t(r,u(e,r,i)),n.push(r));}return n;}const l=/^[a-z0-9]+(-[a-z0-9]+)*$/,d=(e,t,n,o="")=>{const r=e.split(":");if("@"===e.slice(0,1)){if(r.length<2||r.length>3)return null;o=r.shift().slice(1);}if(r.length>3||!r.length)return null;if(r.length>1){const e=r.pop(),n=r.pop(),i={provider:r.length>0?r[0]:o,prefix:n,name:e};return t&&!p(i)?null:i;}const i=r[0],c=i.split("-");if(c.length>1){const e={provider:o,prefix:c.shift(),name:c.join("-")};return t&&!p(e)?null:e;}if(n&&""===o){const e={provider:o,prefix:"",name:i};return t&&!p(e,n)?null:e;}return null;},p=(e,t)=>!!e&&!(""!==e.provider&&!e.provider.match(l)||!(t&&""===e.prefix||e.prefix.match(l))||!e.name.match(l)),h={provider:"",aliases:{},not_found:{},...r};function g(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return !1;return !0;}function m(e){if("object"!=typeof e||null===e)return null;const t=e;if("string"!=typeof t.prefix||!e.icons||"object"!=typeof e.icons)return null;if(!g(e,h))return null;const n=t.icons;for(const e in n){const t=n[e];if(!e.match(l)||"string"!=typeof t.body||!g(t,s))return null;}const o=t.aliases||{};for(const e in o){const t=o[e],r=t.parent;if(!e.match(l)||"string"!=typeof r||!n[r]&&!o[r]||!g(t,s))return null;}return t;}const b=Object.create(null);function y(e,t){const n=b[e]||(b[e]=Object.create(null));return n[t]||(n[t]=function(e,t){return {provider:e,prefix:t,icons:Object.create(null),missing:new Set()};}(e,t));}
8function v(e,t){return m(t)?f(t,((t,n)=>{n?e.icons[t]=n:e.missing.add(t);})):[];}let x=!1;function w(e){const t="string"==typeof e?d(e,!0,x):e;if(t){const e=y(t.provider,t.prefix),n=t.name;return e.icons[n]||(e.missing.has(n)?null:void 0);}}function j(e,t){const n=d(e,!0,x);if(!n)return !1;return function(e,t,n){try{if("string"==typeof n.body)return e.icons[t]={...n},!0;}catch(e){}return !1;}(y(n.provider,n.prefix),n.name,t);}function S(e,t){if("object"!=typeof e)return !1;if("string"!=typeof t&&(t=e.provider||""),x&&!t&&!e.prefix){let t=!1;return m(e)&&(e.prefix="",f(e,((e,n)=>{n&&j(e,n)&&(t=!0);}))),t;}const n=e.prefix;if(!p({provider:t,prefix:n,name:"a"}))return !1;return !!v(y(t,n),e);}const E=Object.freeze({width:null,height:null}),k=Object.freeze({...E,...i}),C=/(-?[0-9.]*[0-9]+[0-9.]*)/g,I=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function O(e,t,n){if(1===t)return e;if(n=n||100,"number"==typeof e)return Math.ceil(e*t*n)/n;if("string"!=typeof e)return e;const o=e.split(C);if(null===o||!o.length)return e;const r=[];let i=o.shift(),c=I.test(i);for(;;){if(c){const e=parseFloat(i);isNaN(e)?r.push(i):r.push(Math.ceil(e*t*n)/n);}else r.push(i);if(i=o.shift(),void 0===i)return r.join("");c=!c;}}function L(e,t){const n={...c,...e},o={...k,...t},r={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,o].forEach(((e)=>{const t=[],n=e.hFlip,o=e.vFlip;let c,s=e.rotate;switch(n?o?s+=2:(t.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),t.push("scale(-1 1)"),r.top=r.left=0):o&&(t.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),t.push("scale(1 -1)"),r.top=r.left=0),s<0&&(s-=4*Math.floor(s/4)),s%=4,s){case 1:c=r.height/2+r.top,t.unshift("rotate(90 "+c.toString()+" "+c.toString()+")");break;case 2:t.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:c=r.width/2+r.left,t.unshift("rotate(-90 "+c.toString()+" "+c.toString()+")");}s%2==1&&(r.left!==r.top&&(c=r.left,r.left=r.top,r.top=c),r.width!==r.height&&(c=r.width,r.width=r.height,r.height=c)),t.length&&(i='<g transform="'+t.join(" ")+'">'+i+"</g>");}));const s=o.width,a=o.height,u=r.width,f=r.height;let l,d;null===s?(d=null===a?"1em":"auto"===a?f:a,l=O(d,u/f)):(l="auto"===s?u:s,d=null===a?O(l,f/u):"auto"===a?f:a);return {attributes:{width:l.toString(),height:d.toString(),viewBox:r.left.toString()+" "+r.top.toString()+" "+u.toString()+" "+f.toString()},body:i};}const A=/\sid="(\S+)"/g,T="IconifyId"+Date.now().toString(16)+(16777216*Math.random()|0).toString(16);let F=0;function M(e,t=T){const n=[];let o;for(;o=A.exec(e);)n.push(o[1]);return n.length?(n.forEach(((n)=>{const o="function"==typeof t?t(n):t+(F++).toString(),r=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+r+')([")]|\\.[a-z])',"g"),"$1"+o+"$3");})),e):e;}const P={local:!0,session:!0},N={local:new Set(),session:new Set()};let z=!1;const D="iconify2",U="iconify",R="iconify-count",q="iconify-version",$=36e5;function _(e,t){try{return e.getItem(t);}catch(e){}}function B(e,t,n){try{return e.setItem(t,n),!0;}catch(e){}}function Q(e,t){try{e.removeItem(t);}catch(e){}}function V(e,t){return B(e,R,t.toString());}function H(e){return parseInt(_(e,R))||0;}let J="undefined"==typeof window?{}:window;function Z(e){const t=e+"Storage";try{if(J&&J[t]&&"number"==typeof J[t].length)return J[t];}catch(e){}P[e]=!1;}function G(e,t){const n=Z(e);if(!n)return;const o=_(n,q);if(o!==D){if(o){const e=H(n);for(let t=0;t<e;t++)Q(n,U+t.toString());}return B(n,q,D),void V(n,0);}const r=Math.floor(Date.now()/$)-168,i=(e)=>{const o=U+e.toString(),i=_(n,o);if("string"==typeof i){try{const n=JSON.parse(i);if("object"==typeof n&&"number"==typeof n.cached&&n.cached>r&&"string"==typeof n.provider&&"object"==typeof n.data&&"string"==typeof n.data.prefix&&t(n,e))return !0;}catch(e){}Q(n,o);}};let c=H(n);for(let t=c-1;t>=0;t--)i(t)||(t===c-1?(c--,V(n,c)):N[e].add(t));}function K(){if(!z){z=!0;for(const e in P)G(e,((e)=>{const t=e.data,n=y(e.provider,t.prefix);if(!v(n,t).length)return !1;const o=t.lastModified||-1;return n.lastModifiedCached=n.lastModifiedCached?Math.min(n.lastModifiedCached,o):o,!0;}));}}function W(e,t){switch(e){case "local":case "session":P[e]=t;break;case "all":{for(const e in P)P[e]=t;}}}const X=Object.create(null);function Y(e,t){X[e]=t;}function ee(e){return X[e]||X[""];}function te(e){let t;if("string"==typeof e.resources)t=[e.resources];else{if(t=e.resources,!(t instanceof Array&&t.length))return null;}return {resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:!0===e.random,index:e.index||0,dataAfterTimeout:!1!==e.dataAfterTimeout};}const ne=Object.create(null),oe=["https://api.simplesvg.com","https://api.unisvg.com"],re=[];for(;oe.length>0;)1===oe.length||Math.random()>.5?re.push(oe.shift()):re.push(oe.pop());function ie(e,t){const n=te(t);return null!==n&&(ne[e]=n,!0);}function ce(e){return ne[e];}ne[""]=te({resources:["https://api.iconify.design"].concat(re)});let se=(()=>{let e;try{if(e=fetch,"function"==typeof e)return e;}catch(e){}})();
8const ae={prepare:(e,t,n)=>{const o=[],r=function(e,t){const n=ce(e);if(!n)return 0;let o;if(n.maxURL){let e=0;n.resources.forEach(((t)=>{const n=t;e=Math.max(e,n.length);}));const r=t+".json?icons=";o=n.maxURL-e-n.path.length-r.length;}else o=0;return o;}(e,t),i="icons";let c={type:i,provider:e,prefix:t,icons:[]},s=0;return n.forEach(((n,a)=>{s+=n.length+1,s>=r&&a>0&&(o.push(c),c={type:i,provider:e,prefix:t,icons:[]},s=n.length),c.icons.push(n);})),o.push(c),o;},send:(e,t,n)=>{if(!se)return void n("abort",424);let o=function(e){if("string"==typeof e){const t=ce(e);if(t)return t.path;}return "/";}(t.provider);switch(t.type){case "icons":{const e=t.prefix,n=t.icons.join(",");o+=e+".json?"+new URLSearchParams({icons:n}).toString();break;}case "custom":{const e=t.uri;o+="/"===e.slice(0,1)?e.slice(1):e;break;}default:return void n("abort",400);}let r=503;se(e+o).then(((e)=>{const t=e.status;if(200===t)return r=501,e.json();setTimeout((()=>{n(function(e){return 404===e;}(t)?"abort":"next",t);}));})).then(((e)=>{"object"==typeof e&&null!==e?setTimeout((()=>{n("success",e);})):setTimeout((()=>{n("next",r);}));})).catch((()=>{n("next",r);}));}};function ue(e,t){e.forEach(((e)=>{const n=e.loaderCallbacks;n&&(e.loaderCallbacks=n.filter(((e)=>e.id!==t)));}));}let fe=0;var le={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function de(e,t,n,o){const r=e.resources.length,i=e.random?Math.floor(Math.random()*r):e.index;let c;if(e.random){let t=e.resources.slice(0);for(c=[];t.length>1;){const e=Math.floor(Math.random()*t.length);c.push(t[e]),t=t.slice(0,e).concat(t.slice(e+1));}c=c.concat(t);}else c=e.resources.slice(i).concat(e.resources.slice(0,i));const s=Date.now();let a,u="pending",f=0,l=null,d=[],p=[];function h(){l&&(clearTimeout(l),l=null);}function g(){"pending"===u&&(u="aborted"),h(),d.forEach(((e)=>{"pending"===e.status&&(e.status="aborted");})),d=[];}function m(e,t){t&&(p=[]),"function"==typeof e&&p.push(e);}function b(){u="failed",p.forEach(((e)=>{e(void 0,a);}));}function y(){d.forEach(((e)=>{"pending"===e.status&&(e.status="aborted");})),d=[];}function v(){if("pending"!==u)return;h();const o=c.shift();if(void 0===o)return d.length?void (l=setTimeout((()=>{h(),"pending"===u&&(y(),b());}),e.timeout)):void b();const r={status:"pending",resource:o,callback:(t,n)=>{!function(t,n,o){const r="success"!==n;switch(d=d.filter(((e)=>e!==t)),u){case "pending":break;case "failed":if(r||!e.dataAfterTimeout)return;break;default:return;}if("abort"===n)return a=o,void b();if(r)return a=o,void (d.length||(c.length?v():b()));if(h(),y(),!e.random){const n=e.resources.indexOf(t.resource);-1!==n&&n!==e.index&&(e.index=n);}u="completed",p.forEach(((e)=>{e(o);}));}(r,t,n);}};d.push(r),f++,l=setTimeout(v,e.rotate),n(o,t,r.callback);}return "function"==typeof o&&p.push(o),setTimeout(v),function(){return {startTime:s,payload:t,status:u,queriesSent:f,queriesPending:d.length,subscribe:m,abort:g};};}function pe(e){const t={...le,...e};let n=[];function o(){n=n.filter(((e)=>"pending"===e().status));}const r={query:function(e,r,i){const c=de(t,e,r,((e,t)=>{o(),i&&i(e,t);}));return n.push(c),c;},find:function(e){return n.find(((t)=>e(t)))||null;},setIndex:(e)=>{t.index=e;},getIndex:()=>t.index,cleanup:o};return r;}function he(){}const ge=Object.create(null);function me(e,t,n){let o,r;if("string"==typeof e){const t=ee(e);if(!t)return n(void 0,424),he;r=t.send;const i=function(e){if(!ge[e]){const t=ce(e);if(!t)return;const n={config:t,redundancy:pe(t)};ge[e]=n;}return ge[e];}(e);i&&(o=i.redundancy);}else{const t=te(e);if(t){o=pe(t);const n=ee(e.resources?e.resources[0]:"");n&&(r=n.send);}}return o&&r?o.query(t,r,n)().abort:(n(void 0,424),he);}function be(e,t){function n(n){let o;if(!P[n]||!(o=Z(n)))return;const r=N[n];let i;if(r.size)r.delete(i=Array.from(r).shift());else{if(i=H(o),!V(o,i+1))return;}const c={cached:Math.floor(Date.now()/$),provider:e.provider,data:t};return B(o,U+i.toString(),JSON.stringify(c));}z||K(),t.lastModified&&!function(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n){for(const n in P)G(n,((n)=>{const o=n.data;return n.provider!==e.provider||o.prefix!==e.prefix||o.lastModified===t;}));}return !0;}(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&delete (t=Object.assign({},t)).not_found,n("local")||n("session"));}function ye(){}function ve(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout((()=>
8{e.iconsLoaderFlag=!1,function(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout((()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const o=e.provider,r=e.prefix;t.forEach(((t)=>{const i=t.icons,c=i.pending.length;i.pending=i.pending.filter(((t)=>{if(t.prefix!==r)return !0;const c=t.name;if(e.icons[c])i.loaded.push({provider:o,prefix:r,name:c});else{if(!e.missing.has(c))return n=!0,!0;i.missing.push({provider:o,prefix:r,name:c});}return !1;})),i.pending.length!==c&&(n||ue([e],t.id),t.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),t.abort));}));})));}(e);})));}const xe=(e,t)=>{var n;const o=function(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort(((e,t)=>e.provider!==t.provider?e.provider.localeCompare(t.provider):e.prefix!==t.prefix?e.prefix.localeCompare(t.prefix):e.name.localeCompare(t.name)));let o={provider:"",prefix:"",name:""};return e.forEach(((e)=>{if(o.name===e.name&&o.prefix===e.prefix&&o.provider===e.provider)return;o=e;const r=e.provider,i=e.prefix,c=e.name,s=n[r]||(n[r]=Object.create(null)),a=s[i]||(s[i]=y(r,i));let u;u=c in a.icons?t.loaded:""===i||a.missing.has(c)?t.missing:t.pending;const f={provider:r,prefix:i,name:c};u.push(f);})),t;}(function(e,t=!0,n=!1){const o=[];return e.forEach(((e)=>{const r="string"==typeof e?d(e,t,n):e;r&&o.push(r);})),o;}(e,!0,("boolean"==typeof n&&(x=n),x)));if(!o.pending.length){let e=!0;return t&&setTimeout((()=>{e&&t(o.loaded,o.missing,o.pending,ye);})),()=>{e=!1;};}const r=Object.create(null),i=[];let c,s;return o.pending.forEach(((e)=>{const {provider:t,prefix:n}=e;if(n===s&&t===c)return;c=t,s=n,i.push(y(t,n));const o=r[t]||(r[t]=Object.create(null));o[n]||(o[n]=[]);})),o.pending.forEach(((e)=>{const {provider:t,prefix:n,name:o}=e,i=y(t,n),c=i.pendingIcons||(i.pendingIcons=new Set());c.has(o)||(c.add(o),r[t][n].push(o));}
8)),i.forEach(((e)=>{const {provider:t,prefix:n}=e;r[t][n].length&&function(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout((()=>{e.iconsQueueFlag=!1;const {provider:t,prefix:n}=e,o=e.iconsToLoad;let r;delete e.iconsToLoad,o&&(r=ee(t))&&r.prepare(t,n,o).forEach(((n)=>{me(t,n,((t,o)=>{if("object"!=typeof t){if(404!==o)return;n.icons.forEach(((t)=>{e.missing.add(t);}));}else try{const n=v(e,t);if(!n.length)return;const o=e.pendingIcons;o&&n.forEach(((e)=>{o.delete(e);})),be(e,t);}catch(e){console.error(e);}ve(e);}));}));})));}(e,r[t][n]);})),t?function(e,t,n){const o=fe++,r=ue.bind(null,n,o);if(!t.pending.length)return r;const i={id:o,icons:t,callback:e,abort:r};return n.forEach(((e)=>{(e.loaderCallbacks||(e.loaderCallbacks=[])).push(i);})),r;}(t,o,i):ye;};function we(e,t){const n={...e};for(const e in t){const o=t[e],r=typeof o;e in E?(null===o||o&&("string"===r||"number"===r))&&(n[e]=o):r===typeof n[e]&&(n[e]="rotate"===e?o%4:o);}return n;}const je={...k,inline:!1},Se="iconify-inline",Ee="iconifyData"+Date.now();let ke=[];function Ce(e){for(let t=0;t<ke.length;t++){const n=ke[t];if(("function"==typeof n.node?n.node():n.node)===e)return n;}}function Ie(e,t=!1){let n=Ce(e);return n?(n.temporary&&(n.temporary=t),n):(n={node:e,temporary:t},ke.push(n),n);}function Oe(){return ke;}let Le=null;const Ae={childList:!0,subtree:!0,attributes:!0};function Te(e){if(!e.observer)return;const t=e.observer;t.pendingScan||(t.pendingScan=setTimeout((()=>{delete t.pendingScan,Le&&Le(e);})));}function Fe(e,t){if(!e.observer)return;const n=e.observer;if(!n.pendingScan){for(let o=0;o<t.length;o++){const r=t[o];if(r.addedNodes&&r.addedNodes.length>0||"attributes"===r.type&&void 0!==r.target[Ee])return void (n.paused||Te(e));}}}function Me(e,t){e.observer.instance.observe(t,Ae);}function Pe(e){let t=e.observer;if(t&&t.instance)return;const n="function"==typeof e.node?e.node():e.node;n&&window&&(t||(t={paused:0},e.observer=t),t.instance=new window.MutationObserver(Fe.bind(null,e)),Me(e,n),t.paused||Te(e));}function Ne(){Oe().forEach(Pe);}function ze(e){if(!e.observer)return;const t=e.observer;t.pendingScan&&(clearTimeout(t.pendingScan),delete t.pendingScan),t.instance&&(t.instance.disconnect(),delete t.instance);}function De(e){const t=null!==Le;Le!==e&&(Le=e,t&&Oe().forEach(ze)),t?Ne():function(e){const t=document;t.readyState&&"loading"!==t.readyState?e():t.addEventListener("DOMContentLoaded",e);}(Ne);}function Ue(e){(e?[e]:Oe()).forEach(((e)=>{if(!e.observer)return void (e.observer={paused:1});const t=e.observer;if(t.paused++,t.paused>1||!t.instance)return;t.instance.disconnect();}));}function Re(e){(e?[e]:Oe()).forEach(((e)=>{if(!e.observer)return void Pe(e);const t=e.observer;if(t.paused&&(t.paused--,!t.paused)){const n="function"==typeof e.node?e.node():e.node;if(!n)return;t.instance?Me(e,n):Pe(e);}}));}function qe(e,t=!1){const n=Ie(e,t);return Pe(n),n;}function $e(e){const t=Ce(e);t&&(ze(t),function(e){ke=ke.filter(((t)=>e!==t&&e!==("function"==typeof t.node?t.node():t.node)));}(e));}const _e=/[\s,]+/;const Be=["width","height"],Qe=["inline","hFlip","vFlip"];function Ve(e){const t=e.getAttribute("data-icon"),n="string"==typeof t&&d(t,!0);if(!n)return null;const o={...je,inline:e.classList&&e.classList.contains(Se)};Be.forEach(((t)=>{const n=e.getAttribute("data-"+t);n&&(o[t]=n);}));const r=e.getAttribute("data-rotate");"string"==typeof r&&(o.rotate=function(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function o(e){for(;e<0;)e+=4;return e%4;}if(""===n){const t=parseInt(e);return isNaN(t)?0:o(t);}if(n!==e){let t=0;switch(n){case "%":t=25;break;case "deg":t=90;}if(t){let r=parseFloat(e.slice(0,e.length-n.length));return isNaN(r)?0:(r/=t,r%1==0?o(r):0);}}return t;}(r));const i=e.getAttribute("data-flip");"string"==typeof i&&function(e,t){t.split(_e).forEach(((t)=>{switch(t.trim()){case "horizontal":e.hFlip=!0;break;case "vertical":e.vFlip=!0;}}));}(o,i),Qe.forEach(((t)=>{const n="data-"+t,r=function(e,t){return e===t||"true"===e||""!==e&&"false"!==e&&null;}(e.getAttribute(n),n);"boolean"==typeof r&&(o[t]=r);}));const c=e.getAttribute("data-mode");return {name:t,icon:n,customisations:o,mode:c};}function He(e,t){let n=-1===e.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const e in t)n+=" "+e+'="'+t[e]+'"';return '<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>";}function Je(e){const t=new Set(["iconify"]);return ["provider","prefix"].forEach(((n)=>{e[n]&&t.add("iconify--"+e[n]);})),t;}function Ze(e,t,n,o){const r=e.classList;if(o){const e=o.classList;Array.from(e).forEach(((e)=>{r.add(e);}));}const i=[];return t.forEach(((e)=>{r.contains(e)?n.has(e)&&i.push(e):(r.add(e),i.push(e));}
8)),n.forEach(((e)=>{t.has(e)||r.remove(e);})),i;}function Ge(e,t,n){const o=e.style;(n||[]).forEach(((e)=>{o.removeProperty(e);}));const r=[];for(const e in t)o.getPropertyValue(e)||(r.push(e),o.setProperty(e,t[e]));return r;}function Ke(e,t,n){let o;try{o=document.createElement("span");}catch(t){return e;}const r=t.customisations,i=L(n,r),c=e[Ee],s=He(M(i.body),{"aria-hidden":"true",role:"img",...i.attributes});o.innerHTML=s;const a=o.childNodes[0],u=e.attributes;for(let e=0;e<u.length;e++){const t=u.item(e),n=t.name;"class"===n||a.hasAttribute(n)||a.setAttribute(n,t.value);}const f=Ze(a,Je(t.icon),new Set(c&&c.addedClasses),e),l=Ge(a,r.inline?{"vertical-align":"-0.125em"}:{},c&&c.addedStyles),d={...t,status:"loaded",addedClasses:f,addedStyles:l};return a[Ee]=d,e.parentNode&&e.parentNode.replaceChild(a,e),a;}const We={display:"inline-block"},Xe={"background-color":"currentColor"},Ye={"background-color":"transparent"},et={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},tt={"-webkit-mask":Xe,mask:Xe,background:Ye};for(const e in tt){const t=tt[e];for(const n in et)t[e+"-"+n]=et[n];}function nt(e){return e+(e.match(/^[-0-9.]+$/)?"px":"");}let ot=!1;function rt(){ot||(ot=!0,setTimeout((()=>{ot&&(ot=!1,it());})));}function it(e,t=!1){const n=Object.create(null);function o(e,t){const {provider:o,prefix:r,name:i}=e,c=y(o,r),s=c.icons[i];if(s)return {status:"loaded",icon:s};if(c.missing.has(i))return {status:"missing"};if(t&&!((e)=>{const t=y(e.provider,e.prefix).pendingIcons;return !(!t||!t.has(e.name));})(e)){const e=n[o]||(n[o]=Object.create(null));(e[r]||(e[r]=new Set())).add(i);}return {status:"loading"};}(e?[e]:Oe()).forEach(((e)=>{const n="function"==typeof e.node?e.node():e.node;if(!n||!n.querySelectorAll)return;let r=!1,i=!1;function s(t,n,o){if(i||(i=!0,Ue(e)),"SVG"!==t.tagName.toUpperCase()){const e=n.mode,r="mask"===e||"bg"!==e&&("style"===e?-1!==o.body.indexOf("currentColor"):null);if("boolean"==typeof r)return void function(e,t,n,o){const r=t.customisations,i=L(n,r),c=i.attributes,s=e[Ee],a=He(i.body,{...c,width:n.width+"",height:n.height+""}),u=Ze(e,Je(t.icon),new Set(s&&s.addedClasses)),f={"--svg":'url("data:image/svg+xml,'+(l=a,l.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")+'")'),width:nt(c.width),height:nt(c.height),...We,...o?Xe:Ye};var l;r.inline&&(f["vertical-align"]="-0.125em");const d=Ge(e,f,s&&s.addedStyles),p={...t,status:"loaded",addedClasses:u,addedStyles:d};e[Ee]=p;}(t,n,{...c,...o},r);}Ke(t,n,o);}(function(e){const t=[];return e.querySelectorAll("svg.iconify, i.iconify, span.iconify, i.iconify-inline, span.iconify-inline").forEach(((e)=>{const n=e[Ee]||"svg"!==e.tagName.toLowerCase()?Ve(e):null;n&&t.push({node:e,props:n});})),t;})(n).forEach((({node:e,props:t})=>{const n=e[Ee];if(!n){const {status:n,icon:i}=o(t.icon,!0);return i?void s(e,t,i):(r=r||"loading"===n,void (e[Ee]={...t,status:n}));}let i;if(function(e,t){if(e.name!==t.name||e.mode!==t.mode)return !0;const n=e.customisations,o=t.customisations;for(const e in je)if(n[e]!==o[e])return !0;return !1;}(n,t)){if(i=o(t.icon,n.name!==t.name),!i.icon)return r=r||"loading"===i.status,void Object.assign(n,{...t,status:i.status});}else{if("loading"!==n.status)return;if(i=o(t.icon,!1),!i.icon)return void (n.status=i.status);}s(e,t,i.icon);})),e.temporary&&!r?$e(n):t&&r?qe(n,!0):i&&e.observer&&Re(e);}));for(const e in n){const t=n[e];for(const n in t){const o=t[n];xe(Array.from(o).map(((t)=>({provider:e,prefix:n,name:t}))),rt);}}}function ct(e,t,n=!1){const o=w(e);if(!o)return null;const r=d(e),i=we(je,t||{}),c=Ke(document.createElement("span"),{name:e,icon:r,customisations:i},o);return n?c.outerHTML:c;}if("undefined"!=typeof document&&"undefined"!=typeof window){!function(){if(document.documentElement)return Ie(document.documentElement);ke.push({node:()=>document.documentElement});}();const e=window;if(void 0!==e.IconifyPreload){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";"object"==typeof t&&null!==t&&(t instanceof Array?t:[t]).forEach(((e)=>{try{("object"!=typeof e||null===e||e instanceof Array||"object"!=typeof e.icons||"string"!=typeof e.prefix||!S(e))&&console.error(n);}catch(e){console.error(n);}}));}setTimeout((()=>{De(it),it();}));}if(Y("",ae),"undefined"!=typeof document&&"undefined"!=typeof window){K();const e=window;if(void 0!==e.IconifyProviders){const t=e.IconifyProviders;if("object"==typeof t&&null!==t){for(const e in t){const n="IconifyProviders["+e+"] is invali
8d.";try{const o=t[e];if("object"!=typeof o||!o||void 0===o.resources)continue;ie(e,o)||console.error(n);}catch(e){console.error(n);}}}}}const st={_api:{getAPIConfig:ce,setAPIModule:Y,sendAPIQuery:me,setFetch:function(e){se=e;},getFetch:function(){return se;},listAPIProviders:function(){return Object.keys(ne);}},addAPIProvider:ie,loadIcons:xe,loadIcon:(e)=>new Promise(((t,n)=>{const o="string"==typeof e?d(e):e;xe([o||e],((r)=>{if(r.length&&o){const e=w(o);if(e)return void t({...c,...e});}n(e);}));})),iconExists:function(e){return !!w(e);},getIcon:function(e){const t=w(e);return t?{...c,...t}:null;},listIcons:function(e,t){let n=[];return ("string"==typeof e?[e]:Object.keys(b)).forEach(((e)=>{("string"==typeof e&&"string"==typeof t?[t]:Object.keys(b[e]||{})).forEach(((t)=>{const o=y(e,t);n=n.concat(Object.keys(o.icons).map(((n)=>(""!==e?"@"+e+":":"")+t+":"+n)));}));})),n;},addIcon:j,addCollection:S,replaceIDs:M,calculateSize:O,buildIcon:L,getVersion:function(){return "3.0.0";},renderSVG:function(e,t){return ct(e,t,!1);},renderHTML:function(e,t){return ct(e,t,!0);},renderIcon:function(e,t){const n=w(e);return n?L(n,we(je,t||{})):null;},scan:function(e){e?function(e){const t=Ce(e);t?it(t):it({node:e,temporary:!0},!0);}(e):it();},observe:qe,stopObserving:$e,pauseObserver:function(e){if(e){const t=Ce(e);t&&Ue(t);}else Ue();},resumeObserver:function(e){if(e){const t=Ce(e);t&&Re(t);}else Re();},enableCache:function(e,t){W(e,!1!==t);},disableCache:function(e){W(e,!0);}};try{void 0===self.Iconify&&(self.Iconify=st);}catch(e){}var at=n(697);st.addIcon("mdi:chevron-down",at.Z),Drupal.behaviors.cookiesJsrAlterations={attach:function(e,t){!function(){if(o.get("cookiesjsr"))return;const e=document.querySelector("#cookiesjsr");if(e){let t;new MutationObserver((function(n){let o=null;const r=e.querySelector(".cookiesjsr--app");n.forEach((function(e){e.addedNodes.forEach((function(e){if(e.classList.contains("cookiesjsr-layer--wrapper")&&(o="overlay"),e.classList.contains("cookiesjsr-banner")&&e.classList.contains("active")){o="banner";let e=document.createElement("strong"),n=document.createTextNode("Cookie-Auswahl bearbeiten");e.appendChild(n);let i=document.querySelector(".cookiesjsr-banner--info");e.classList.add("cookiesjsr-banner--heading"),i.prepend(e),t=document.createElement("div"),t.classList.add("cookiesjsr-banner--bg"),r.prepend(t);}})),e.removedNodes.forEach((function(e){e.classList.contains("cookiesjsr-banner")&&e.classList.contains("active")&&r.removeChild(t);}));}));})).observe(e,{childList:!0,subtree:!0,attributes:!0});}}();}};}();}();;
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.