PageSourceSearch

https://www.ateasuisse.com/static/version1750951693/frontend/Nw/atea/it_IT/js/bundle/bundle5.min.js

js ateasuisse.com collected 2026-10-08 05:36:36 UTC 1,002,357 bytes, 3 lines download raw bytes

1require.config({"config": {
2        "jsbuild":{"jquery/ui-modules/effect-drop.min.js":"/*!\n * jQuery UI Effects Drop - v1.10.4\n * http://jqueryui.com\n *\n * Copyright 2014 jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n *\n * http://api.jqueryui.com/drop-effect/\n */\ndefine(['jquery','jquery-ui-modules/effect'],function($,undefined){$.effects.effect.drop=function(o,done){var el=$(this),props=[\"position\",\"top\",\"bottom\",\"left\",\"right\",\"opacity\",\"height\",\"width\"],mode=$.effects.setMode(el,o.mode||\"hide\"),show=mode===\"show\",direction=o.direction||\"left\",ref=(direction===\"up\"||direction===\"down\")?\"top\":\"left\",motion=(direction===\"up\"||direction===\"left\")?\"pos\":\"neg\",animation={opacity:show?1:0},distance;$.effects.save(el,props);el.show();$.effects.createWrapper(el);distance=o.distance||el[ref===\"top\"?\"outerHeight\":\"outerWidth\"](true)/ 2;if(show){el.css(\"opacity\",0).css(ref,motion===\"pos\"?-distance:distance);}\nanimation[ref]=(show?(motion===\"pos\"?\"+=\":\"-=\"):(motion===\"pos\"?\"-=\":\"+=\"))+\ndistance;el.animate(animation,{queue:false,duration:o.duration,easing:o.easing,complete:function(){if(mode===\"hide\"){el.hide();}\n$.effects.restore(el,props);$.effects.removeWrapper(el);done();}});};});","jquery/ui-modules/effect-fade.min.js":"/*!\n * jQuery UI Effects Fade - v1.10.4\n * http://jqueryui.com\n *\n * Copyright 2014 jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n *\n * http://api.jqueryui.com/fade-effect/\n */\ndefine(['jquery','jquery-ui-modules/effect'],function($,undefined){$.effects.effect.fade=function(o,done){var el=$(this),mode=$.effects.setMode(el,o.mode||\"toggle\");el.animate({opacity:mode},{queue:false,duration:o.duration,easing:o.easing,complete:done});};});","jquery/ui-modules/effect-clip.min.js":"/*!\n * jQuery UI Effects Clip - v1.10.4\n * http://jqueryui.com\n *\n * Copyright 2014 jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n *\n * http://api.jqueryui.com/clip-effect/\n */\ndefine(['jquery','jquery-ui-modules/effect'],function($,undefined){$.effects.effect.clip=function(o,done){var el=$(this),props=[\"position\",\"top\",\"bottom\",\"left\",\"right\",\"height\",\"width\"],mode=$.effects.setMode(el,o.mode||\"hide\"),show=mode===\"show\",direction=o.direction||\"vertical\",vert=direction===\"vertical\",size=vert?\"height\":\"width\",position=vert?\"top\":\"left\",animation={},wrapper,animate,distance;$.effects.save(el,props);el.show();wrapper=$.effects.createWrapper(el).css({overflow:\"hidden\"});animate=(el[0].tagName===\"IMG\")?wrapper:el;distance=animate[size]();if(show){animate.css(size,0);animate.css(position,distance / 2);}\nanimation[size]=show?distance:0;animation[position]=show?0:distance / 2;animate.animate(animation,{queue:false,duration:o.duration,easing:o.easing,complete:function(){if(!show){el.hide();}\n$.effects.restore(el,props);$.effects.removeWrapper(el);done();}});};});","jquery/ui-modules/effect-blind.min.js":"/*!\n * jQuery UI Effects Blind - v1.10.4\n * http://jqueryui.com\n *\n * Copyright 2014 jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n *\n * http://api.jqueryui.com/blind-effect/\n */\ndefine(['jquery','jquery-ui-modules/effect'],function($,undefined){var rvertical=/up|down|vertical/,rpositivemotion=/up|left|vertical|horizontal/;$.effects.effect.blind=function(o,done){var el=$(this),props=[\"position\",\"top\",\"bottom\",\"left\",\"right\",\"height\",\"width\"],mode=$.effects.setMode(el,o.mode||\"hide\"),direction=o.direction||\"up\",vertical=rvertical.test(direction),ref=vertical?\"height\":\"width\",ref2=vertical?\"top\":\"left\",motion=rpositivemotion.test(direction),animation={},show=mode===\"show\",wrapper,distance,margin;if(el.parent().is(\".ui-effects-wrapper\")){$.effects.save(el.parent(),props);}else{$.effects.save(el,props);}\nel.show();wrapper=$.effects.createWrapper(el).css({overflow:\"hidden\"});distance=wrapper[ref]();margin=parseFloat(wrapper.css(ref2))||0;animation[ref]=show?distance:0;if(!motion){el.css(vertical?\"bottom\":\"right\",0).css(vertical?\"top\":\"left\",\"auto\").css({position:\"absolute\"});animation[ref2]=show?margin:distance+margin;}\nif(show){wrapper.css(ref,0);if(!motion){wrapper.css(ref2,margin+distance);}}\nwrapper.animate(animation,{duration:o.duration,easing:o.easing,queue:false,complete:function(){if(mode===\"hide\"){el.hide();}\n$.effects.restore(el,props);$.effects.removeWrapper(el);done();}});};});","jquery/ui-modules/position.min.js":"/*!\n * jQuery UI Position - v
21.10.4\n * http://jqueryui.com\n *\n * Copyright 2014 jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\ndefine(['jquery'],function($,undefined){$.ui=$.ui||{};var cachedScrollbarWidth,max=Math.max,abs=Math.abs,round=Math.round,rhorizontal=/left|center|right/,rvertical=/top|center|bottom/,roffset=/[\\+\\-]\\d+(\\.[\\d]+)?%?/,rposition=/^\\w+/,rpercent=/%$/,_position=$.fn.position;function getOffsets(offsets,width,height){return[parseFloat(offsets[0])*(rpercent.test(offsets[0])?width / 100:1),parseFloat(offsets[1])*(rpercent.test(offsets[1])?height / 100:1)];}\nfunction parseCss(element,property){return parseInt($.css(element,property),10)||0;}\nfunction getDimensions(elem){var raw=elem[0];if(raw.nodeType===9){return{width:elem.width(),height:elem.height(),offset:{top:0,left:0}};}\nif($.isWindow(raw)){return{width:elem.width(),height:elem.height(),offset:{top:elem.scrollTop(),left:elem.scrollLeft()}};}\nif(raw.preventDefault){return{width:0,height:0,offset:{top:raw.pageY,left:raw.pageX}};}\nreturn{width:elem.outerWidth(),height:elem.outerHeight(),offset:elem.offset()};}\n$.position={scrollbarWidth:function(){if(cachedScrollbarWidth!==undefined){return cachedScrollbarWidth;}\nvar w1,w2,div=$(\"<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>\"),innerDiv=div.children()[0];$(\"body\").append(div);w1=innerDiv.offsetWidth;div.css(\"overflow\",\"scroll\");w2=innerDiv.offsetWidth;if(w1===w2){w2=div[0].clientWidth;}\ndiv.remove();return(cachedScrollbarWidth=w1-w2);},getScrollInfo:function(within){var overflowX=within.isWindow||within.isDocument?\"\":within.element.css(\"overflow-x\"),overflowY=within.isWindow||within.isDocument?\"\":within.element.css(\"overflow-y\"),hasOverflowX=overflowX===\"scroll\"||(overflowX===\"auto\"&&within.width<within.element[0].scrollWidth),hasOverflowY=overflowY===\"scroll\"||(overflowY===\"auto\"&&within.height<within.element[0].scrollHeight);return{width:hasOverflowY?$.position.scrollbarWidth():0,height:hasOverflowX?$.position.scrollbarWidth():0};},getWithinInfo:function(element){var withinElement=$(element||window),isWindow=$.isWindow(withinElement[0]),isDocument=!!withinElement[0]&&withinElement[0].nodeType===9;return{element:withinElement,isWindow:isWindow,isDocument:isDocument,offset:withinElement.offset()||{left:0,top:0},scrollLeft:withinElement.scrollLeft(),scrollTop:withinElement.scrollTop(),width:isWindow?withinElement.width():withinElement.outerWidth(),height:isWindow?withinElement.height():withinElement.outerHeight()};}};$.fn.position=function(options){if(!options||!options.of){return _position.apply(this,arguments);}\noptions=$.extend({},options);var atOffset,targetWidth,targetHeight,targetOffset,basePosition,dimensions,target=$(options.of),within=$.position.getWithinInfo(options.within),scrollInfo=$.position.getScrollInfo(within),collision=(options.collision||\"flip\").split(\" \"),offsets={};dimensions=getDimensions(target);if(target[0].preventDefault){options.at=\"left top\";}\ntargetWidth=dimensions.width;targetHeight=dimensions.height;targetOffset=dimensions.offset;basePosition=$.extend({},targetOffset);$.each([\"my\",\"at\"],function(){var pos=(options[this]||\"\").split(\" \"),horizontalOffset,verticalOffset;if(pos.length===1){pos=rhorizontal.test(pos[0])?pos.concat([\"center\"]):rvertical.test(pos[0])?[\"center\"].concat(pos):[\"center\",\"center\"];}\npos[0]=rhorizontal.test(pos[0])?pos[0]:\"center\";pos[1]=rvertical.test(pos[1])?pos[1]:\"center\";horizontalOffset=roffset.exec(pos[0]);verticalOffset=roffset.exec(pos[1]);offsets[this]=[horizontalOffset?horizontalOffset[0]:0,verticalOffset?verticalOffset[0]:0];options[this]=[rposition.exec(pos[0])[0],rposition.exec(pos[1])[0]];});if(collision.length===1){collision[1]=collision[0];}\nif(options.at[0]===\"right\"){basePosition.left+=targetWidth;}else if(options.at[0]===\"center\"){basePosition.left+=targetWidth / 2;}\nif(options.at[1]===\"bottom\"){basePosition.top+=targetHeight;}else if(options.at[1]===\"center\"){basePosition.top+=targetHeight / 2;}\natOffset=getOffsets(offsets.at,targetWidth,targetHeight);basePosition.left+=atOffset[0];basePosition.top+=atOffset[1];return this.each(function(){var collisionPosition,using,elem=$(this),elemWidth=elem.outerWidth(),elemHeight=elem.outerHeight(),marginLeft=parseCss(this,\"marginLeft\"),marginTop=parseCss(this,\"marginTop\"),collisionWidth=elemWidth+marginLeft+parseCss(this,\"marginRight\")+scrollInfo.width,collisionHeight=elemHeight+marginTop+parseCss(this,\"marginBottom\")+scrollInfo.height,position=$.extend({},basePosition),myOffset=getOffsets(offsets.my,elem.outerWidth(),elem.outerHeight());if(options.my[0]===\"right\"){position.left-=elemWidth;}else if(options.my[0]===\"center\"){position.left-=elemWidth / 2;}\nif(options.my[1]===\"bottom\"){position.top-=elemHeight;}else if(options.my[1]===\"center\"){position.top-=elemHeight / 2;}\nposition.left+=myOffset[0];position.top+=myOffset[1];
2if(!$.support.offsetFractions){position.left=round(position.left);position.top=round(position.top);}\ncollisionPosition={marginLeft:marginLeft,marginTop:marginTop};$.each([\"left\",\"top\"],function(i,dir){if($.ui.position[collision[i]]){$.ui.position[collision[i]][dir](position,{targetWidth:targetWidth,targetHeight:targetHeight,elemWidth:elemWidth,elemHeight:elemHeight,collisionPosition:collisionPosition,collisionWidth:collisionWidth,collisionHeight:collisionHeight,offset:[atOffset[0]+myOffset[0],atOffset[1]+myOffset[1]],my:options.my,at:options.at,within:within,elem:elem});}});if(options.using){using=function(props){var left=targetOffset.left-position.left,right=left+targetWidth-elemWidth,top=targetOffset.top-position.top,bottom=top+targetHeight-elemHeight,feedback={target:{element:target,left:targetOffset.left,top:targetOffset.top,width:targetWidth,height:targetHeight},element:{element:elem,left:position.left,top:position.top,width:elemWidth,height:elemHeight},horizontal:right<0?\"left\":left>0?\"right\":\"center\",vertical:bottom<0?\"top\":top>0?\"bottom\":\"middle\"};if(targetWidth<elemWidth&&abs(left+right)<targetWidth){feedback.horizontal=\"center\";}\nif(targetHeight<elemHeight&&abs(top+bottom)<targetHeight){feedback.vertical=\"middle\";}\nif(max(abs(left),abs(right))>max(abs(top),abs(bottom))){feedback.important=\"horizontal\";}else{feedback.important=\"vertical\";}\noptions.using.call(this,props,feedback);};}\nelem.offset($.extend(position,{using:using}));});};$.ui.position={fit:{left:function(position,data){var within=data.within,withinOffset=within.isWindow?within.scrollLeft:within.offset.left,outerWidth=within.width,collisionPosLeft=position.left-data.collisionPosition.marginLeft,overLeft=withinOffset-collisionPosLeft,overRight=collisionPosLeft+data.collisionWidth-outerWidth-withinOffset,newOverRight;if(data.collisionWidth>outerWidth){if(overLeft>0&&overRight<=0){newOverRight=position.left+overLeft+data.collisionWidth-outerWidth-withinOffset;position.left+=overLeft-newOverRight;}else if(overRight>0&&overLeft<=0){position.left=withinOffset;}else{if(overLeft>overRight){position.left=withinOffset+outerWidth-data.collisionWidth;}else{position.left=withinOffset;}}}else if(overLeft>0){position.left+=overLeft;}else if(overRight>0){position.left-=overRight;}else{position.left=max(position.left-collisionPosLeft,position.left);}},top:function(position,data){var within=data.within,withinOffset=within.isWindow?within.scrollTop:within.offset.top,outerHeight=data.within.height,collisionPosTop=position.top-data.collisionPosition.marginTop,overTop=withinOffset-collisionPosTop,overBottom=collisionPosTop+data.collisionHeight-outerHeight-withinOffset,newOverBottom;if(data.collisionHeight>outerHeight){if(overTop>0&&overBottom<=0){newOverBottom=position.top+overTop+data.collisionHeight-outerHeight-withinOffset;position.top+=overTop-newOverBottom;}else if(overBottom>0&&overTop<=0){position.top=withinOffset;}else{if(overTop>overBottom){position.top=withinOffset+outerHeight-data.collisionHeight;}else{position.top=withinOffset;}}}else if(overTop>0){position.top+=overTop;}else if(overBottom>0){position.top-=overBottom;}else{position.top=max(position.top-collisionPosTop,position.top);}}},flip:{left:function(position,data){var within=data.within,withinOffset=within.offset.left+within.scrollLeft,outerWidth=within.width,offsetLeft=within.isWindow?within.scrollLeft:within.offset.left,collisionPosLeft=position.left-data.collisionPosition.marginLeft,overLeft=collisionPosLeft-offsetLeft,overRight=collisionPosLeft+data.collisionWidth-outerWidth-offsetLeft,myOffset=data.my[0]===\"left\"?-data.elemWidth:data.my[0]===\"right\"?data.elemWidth:0,atOffset=data.at[0]===\"left\"?data.targetWidth:data.at[0]===\"right\"?-data.targetWidth:0,offset=-2*data.offset[0],newOverRight,newOverLeft;if(overLeft<0){newOverRight=position.left+myOffset+atOffset+offset+data.collisionWidth-outerWidth-withinOffset;if(newOverRight<0||newOverRight<abs(overLeft)){position.left+=myOffset+atOffset+offset;}}else if(overRight>0){newOverLeft=position.left-data.collisionPosition.marginLeft+myOffset+atOffset+offset-offsetLeft;if(newOverLeft>0||abs(newOverLeft)<overRight){position.left+=myOffset+atOffset+offset;}}},top:function(position,data){var within=data.within,withinOffset=within.offset.top+within.scrollTop,outerHeight=within.height,offsetTop=within.isWindow?within.scrollTop:within.offset.top,collisionPosTop=position.top-data.collisionPosition.marginTop,overTop=collisionPosTop-offsetTop,overBottom=collisionPosTop+data.collisionHeight-outerHeight-offsetTop,top=data.my[1]===\"top\",myOffset=top?-data.elemHeight:data.my[1]===\"bottom\"?data.elemHeight:0,atOffset=data.at[1]===\"top\"?data.targetHeight:data.at[1]===\"bottom\"?-data.targetHeight:0,offset=-2*data.offset[1],newOverTop,newOverBottom;if(overTop<0){newOverBottom=position.top+myOffset+atOffset+offset+data.collisionHeight-outerHeight-withinOffset;if((position.top+myOffset+atOffset+offset)>overTop&&(newOverBottom<0||newOverBottom<abs(overTop))){position.top+=myOffset+atOffset+offset;}}else if(overBottom>0){newOverTop=position.top-data.collisionPosition.marginTop+myOffset+atOffset+offset-offsetTop;if((position.top+myOffset+atOffset+offset)>overBottom&&(newOverTop>0||abs(newOverTop)<overBottom)){position.top+=myOffset+atOffset+offset;}}}},flipfit:{left:function(){$.ui.position.flip.left.apply(this,arguments);$.ui.position.fit.left.apply(this,arguments);},top:function(){$.ui.position.flip.top.apply(this,arguments);$.ui.position.fit.top.apply(this,arguments);}}};(function(){var testElement,testElementParent,testElementStyle,offsetLeft,i,body=document.getElementsByTagName(\"body\")[0],div=document.createElement(\"div\");testElement=document.createElement(body?\"div\":\"body\");testElementStyle={visibility:\"hidden\",width:0,height:0,border:0,margin:0,background:\"none\"};
2if(body){$.extend(testElementStyle,{position:\"absolute\",left:\"-1000px\",top:\"-1000px\"});}\nfor(i in testElementStyle){testElement.style[i]=testElementStyle[i];}\ntestElement.appendChild(div);testElementParent=body||document.documentElement;testElementParent.insertBefore(testElement,testElementParent.firstChild);div.style.cssText=\"position: absolute; left: 10.7432222px;\";offsetLeft=$(div).offset().left;$.support.offsetFractions=offsetLeft>10&&offsetLeft<11;testElement.innerHTML=\"\";testElementParent.removeChild(testElement);})();});","jquery/ui-modules/effect-fold.min.js":"/*!\n * jQuery UI Effects Fold - v1.10.4\n * http://jqueryui.com\n *\n * Copyright 2014 jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n *\n * http://api.jqueryui.com/fold-effect/\n */\ndefine(['jquery','jquery-ui-modules/effect'],function($,undefined){$.effects.effect.fold=function(o,done){var el=$(this),props=[\"position\",\"top\",\"bottom\",\"left\",\"right\",\"height\",\"width\"],mode=$.effects.setMode(el,o.mode||\"hide\"),show=mode===\"show\",hide=mode===\"hide\",size=o.size||15,percent=/([0-9]+)%/.exec(size),horizFirst=!!o.horizFirst,widthFirst=show!==horizFirst,ref=widthFirst?[\"width\",\"height\"]:[\"height\",\"width\"],duration=o.duration / 2,wrapper,distance,animation1={},animation2={};$.effects.save(el,props);el.show();wrapper=$.effects.createWrapper(el).css({overflow:\"hidden\"});distance=widthFirst?[wrapper.width(),wrapper.height()]:[wrapper.height(),wrapper.width()];if(percent){size=parseInt(percent[1],10)/ 100*distance[hide?0:1];}\nif(show){wrapper.css(horizFirst?{height:0,width:size}:{height:size,width:0});}\nanimation1[ref[0]]=show?distance[0]:size;animation2[ref[1]]=show?distance[1]:0;wrapper.animate(animation1,duration,o.easing).animate(animation2,duration,o.easing,function(){if(hide){el.hide();}\n$.effects.restore(el,props);$.effects.removeWrapper(el);done();});};});","jquery/ui-modules/accordion.min.js":"/*!\n * jQuery UI Accordion - v1.10.4\n * http://jqueryui.com\n *\n * Copyright 2014 jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n *\n * http://api.jqueryui.com/accordion/\n */\ndefine(['jquery','jquery-ui-modules/core','jquery-ui-modules/widget'],function($,undefined){var uid=0,hideProps={},showProps={};hideProps.height=hideProps.paddingTop=hideProps.paddingBottom=hideProps.borderTopWidth=hideProps.borderBottomWidth=\"hide\";showProps.height=showProps.paddingTop=showProps.paddingBottom=showProps.borderTopWidth=showProps.borderBottomWidth=\"show\";$.widget(\"ui.accordion\",{version:\"1.10.4\",options:{active:0,animate:{},collapsible:false,event:\"click\",header:\"> li > :first-child,> :not(li):even\",heightStyle:\"auto\",icons:{activeHeader:\"ui-icon-triangle-1-s\",header:\"ui-icon-triangle-1-e\"},activate:null,beforeActivate:null},_create:function(){var options=this.options;this.prevShow=this.prevHide=$();this.element.addClass(\"ui-accordion ui-widget ui-helper-reset\").attr(\"role\",\"tablist\");if(!options.collapsible&&(options.active===false||options.active==null)){options.active=0;}\nthis._processPanels();if(options.active<0){options.active+=this.headers.length;}\nthis._refresh();},_getCreateEventData:function(){return{header:this.active,panel:!this.active.length?$():this.active.next(),content:!this.active.length?$():this.active.next()};},_createIcons:function(){var icons=this.options.icons;if(icons){$(\"<span>\").addClass(\"ui-accordion-header-icon ui-icon \"+icons.header).prependTo(this.headers);this.active.children(\".ui-accordion-header-icon\").removeClass(icons.header).addClass(icons.activeHeader);this.headers.addClass(\"ui-accordion-icons\");}},_destroyIcons:function(){this.headers.removeClass(\"ui-accordion-icons\").children(\".ui-accordion-header-icon\").remove();},_destroy:function(){var contents;this.element.removeClass(\"ui-accordion ui-widget ui-helper-reset\").removeAttr(\"role\");this.headers.removeClass(\"ui-accordion-header ui-accordion-header-active ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top\").removeAttr(\"role\").removeAttr(\"aria-expanded\").removeAttr(\"aria-selected\").removeAttr(\"aria-controls\").removeAttr(\"tabIndex\").each(function(){if(/^ui-accordion/.test(this.id
2)){this.removeAttribute(\"id\");}});this._destroyIcons();contents=this.headers.next().css(\"display\",\"\").removeAttr(\"role\").removeAttr(\"aria-hidden\").removeAttr(\"aria-labelledby\").removeClass(\"ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled\").each(function(){if(/^ui-accordion/.test(this.id)){this.removeAttribute(\"id\");}});if(this.options.heightStyle!==\"content\"){contents.css(\"height\",\"\");}},_setOption:function(key,value){if(key===\"active\"){this._activate(value);return;}\nif(key===\"event\"){if(this.options.event){this._off(this.headers,this.options.event);}\nthis._setupEvents(value);}\nthis._super(key,value);if(key===\"collapsible\"&&!value&&this.options.active===false){this._activate(0);}\nif(key===\"icons\"){this._destroyIcons();if(value){this._createIcons();}}\nif(key===\"disabled\"){this.headers.add(this.headers.next()).toggleClass(\"ui-state-disabled\",!!value);}},_keydown:function(event){if(event.altKey||event.ctrlKey){return;}\nvar keyCode=$.ui.keyCode,length=this.headers.length,currentIndex=this.headers.index(event.target),toFocus=false;switch(event.keyCode){case keyCode.RIGHT:case keyCode.DOWN:toFocus=this.headers[(currentIndex+1)%length];break;case keyCode.LEFT:case keyCode.UP:toFocus=this.headers[(currentIndex-1+length)%length];break;case keyCode.SPACE:case keyCode.ENTER:this._eventHandler(event);break;case keyCode.HOME:toFocus=this.headers[0];break;case keyCode.END:toFocus=this.headers[length-1];break;}\nif(toFocus){$(event.target).attr(\"tabIndex\",-1);$(toFocus).attr(\"tabIndex\",0);toFocus.focus();event.preventDefault();}},_panelKeyDown:function(event){if(event.keyCode===$.ui.keyCode.UP&&event.ctrlKey){$(event.currentTarget).prev().focus();}},refresh:function(){var options=this.options;this._processPanels();if((options.active===false&&options.collapsible===true)||!this.headers.length){options.active=false;this.active=$();}else if(options.active===false){this._activate(0);}else if(this.active.length&&!$.contains(this.element[0],this.active[0])){if(this.headers.length===this.headers.find(\".ui-state-disabled\").length){options.active=false;this.active=$();}else{this._activate(Math.max(0,options.active-1));}}else{options.active=this.headers.index(this.active);}\nthis._destroyIcons();this._refresh();},_processPanels:function(){this.headers=this.element.find(this.options.header).addClass(\"ui-accordion-header ui-helper-reset ui-state-default ui-corner-all\");this.headers.next().addClass(\"ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom\").filter(\":not(.ui-accordion-content-active)\").hide();},_refresh:function(){var maxHeight,options=this.options,heightStyle=options.heightStyle,parent=this.element.parent(),accordionId=this.accordionId=\"ui-accordion-\"+\n(this.element.attr(\"id\")||++uid);this.active=this._findActive(options.active).addClass(\"ui-accordion-header-active ui-state-active ui-corner-top\").removeClass(\"ui-corner-all\");this.active.next().addClass(\"ui-accordion-content-active\").show();this.headers.attr(\"role\",\"tab\").each(function(i){var header=$(this),headerId=header.attr(\"id\"),panel=header.next(),panelId=panel.attr(\"id\");if(!headerId){headerId=accordionId+\"-header-\"+i;header.attr(\"id\",headerId);}\nif(!panelId){panelId=accordionId+\"-panel-\"+i;panel.attr(\"id\",panelId);}\nheader.attr(\"aria-controls\",panelId);panel.attr(\"aria-labelledby\",headerId);}).next().attr(\"role\",\"tabpanel\");this.headers.not(this.active).attr({\"aria-selected\":\"false\",\"aria-expanded\":\"false\",tabIndex:-1}).next().attr({\"aria-hidden\":\"true\"}).hide();if(!this.active.length){this.headers.eq(0).attr(\"tabIndex\",0);}else{this.active.attr({\"aria-selected\":\"true\",\"aria-expanded\":\"true\",tabIndex:0}).next().attr({\"aria-hidden\":\"false\"});}\nthis._createIcons();this._setupEvents(options.event);if(heightStyle===\"fill\"){maxHeight=parent.height();this.element.siblings(\":visible\").each(function(){var elem=$(this),position=elem.css(\"position\");if(position===\"absolute\"||position===\"fixed\"){return;}\nmaxHeight-=elem.outerHeight(true);});this.headers.each(function(){maxHeight-=$(this).outerHeight(true);});this.headers.next().each(function(){$(this).height(Math.max(0,maxHeight-\n$(this).innerHeight()+$(this).height()));}).css(\"overflow\",\"auto\");}else if(heightStyle===\"auto\"){maxHeight=0;this.headers.next().each(function(){maxHeight=Math.max(maxHeight,$(this).css(\"height\",\"\").height());}).height(maxHeight);}},_activate:function(index){var active=this._findActive(index)[0];if(active===this.active[0]){return;}\nactive=active||this.active[0];this._eventHandler({target:active,currentTarget:active,preventDefault:$.noop});},_findActive:function(selector){return typeof selector===\"number\"?this.headers.eq(selector):$();},_setupEvents:function(event){var events={keydown:\"_keydown\"};if(event){$.each(event.split(\" \"),function(index,eventName){events[eventName]=\"_eventHandler\";});}\nthis._off(this.headers.add(this.headers.next()));this._on(this.headers,events);this._on(this.headers.next(),{keydown:\"_panelKeyDown\"});this._hoverable(this.headers);this._focusable(this.headers);},_eventHandler:function(event){var options=this.options,active=this.active,clicked=$(event.currentTarget),clickedIsActive=clicked[0]===active[0],collapsing=clickedIsActive&&options.collapsible,toShow=collapsing?$():clicked.next(),toHide=active.next(),eventData={oldHeader:active,oldPanel:toHide,newHeader:collapsing?$():clicked,newPanel:toShow};event.preventDefault();if((clickedIsActive&&!options.collapsible)||(this._trigger(\"beforeActivate\",event,eventData)===false)){return;}\noptions.active=collapsing?false:this.headers.index(clicked);this.active=clickedIsActive?$():clicked;this._toggle(eventData);active.removeClass(\"ui-accordion-header-active ui-state-active\");if(options.icons){active.children(\".ui-accordion-header-icon\").removeClass(options.icons.activeHeader).addClass(options.icons.header);}\nif(!clickedIsActive){clicked.removeClass(\"ui-corner-all\").addClass(\"ui-accordion-header-active ui-state-active ui-corner-top\");if(options.icons){clicked.children(\".ui-accordion-header-icon\").removeClass(options.icons.header).addClass(options.icons.activeHeader);}\nclicked.next().addClass(\"ui-accordion-content-active\");}},_toggle:function(data){var toShow=data.newPanel,toHide=this.prevShow.length?this.prevShow:data.oldPanel;this.prevShow.add(this.prevHide).stop(true,true);this.prevShow=toShow;this.prevHide=toHide;if(this.options.animate){this._animate(toShow,toHide,data);}else{toHide.hide();toShow.show();this._toggleComplete(data);}\ntoHide.attr({\"aria-hidden\":\"true\"});toHide.prev().attr(\"aria-selected\",\"false\");if(toShow.length&&toHide.length){toHide.prev().attr({\"tabIndex\":-1,\"aria-expanded\":\"false\"});}else if(toShow.length){this.headers.filter(function(){return $(this).attr(\"tabIndex\")===0;}).attr(\"tabIndex\",-1);}\ntoShow.attr(\"aria-hidden\",\"false\").prev().attr({\"aria-selected\":\"true\",tabIndex:0,\"aria-expanded\":\"true\"});},_animate:function(toShow,toHide,data){var total,easing,duration,that=this,adjust=0,down=toShow.length&&(!toHide.length||(toShow.index()<toHide.index())),animate=this.options.animate||{},options=down&&animate.down||animate,complete=function(){that._toggleComplete(data);};if(typeof options===\"number\"){duration=options;}\nif(typeof options===\"string\"){easing=options;}\neasing=easing||options.easing||animate.easing;duration=duration||options.duration||animate.duration;if(!toHide.length){return toShow.animate(showProps,duration,easing,complete);}\nif(!toShow.length){return toHide.animate(hideProps,duration,easing,complete);}\ntotal=toShow.show().outerHeight();toHide.animate(hideProps,{duration:duration,easing:easing,step:function(now,fx){fx.now=Math.round(now);}});toShow.hide().animate(showProps,{duration:duration,easing:easing,complete:complete,step:function(now,fx){fx.now=Math.round(now);if(fx.prop!==\"height\"){adjust+=fx.now;}else if(that.options.heightStyle!==\"content\"){fx.now=Math.round(total-toHide.outerHeight()-adjust);adjust=0;}}});},_toggleComplete:function(data){var toHide=data.oldPanel;toHide.removeClass(\"ui-accordion-content-active\").prev().removeClass(\"ui-corner-top\").addClass(\"ui-corner-all\");if(toHide.length){toHide.parent()[0].className=toHide.parent()[0].className;}\nthis._trigger(\"activate\",null,data);}});});","jquery/ui-modules/effect-scale.min.js":"/*!\n * jQuery UI Effects Scale - v1.10.4\n * http://jqueryui.com\n *\n * Copyright 2014 jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n *\n * http://api.jqueryui.com/scale-effect/\n */\ndefine(['jquery','jquery-ui-modules/effect'],function($,undefined){$.effects.effect.puff=function(o,done){var elem=$(this),mode=$.effects.setMode(elem,o.mode||\"hide\"),hide=mode===\"hide\",percent=parseInt(o.percent,10)||150,factor=percent / 100,original={height:elem.height(),width:elem.width(),outerHeight:elem.outerHeight(),outerWidth:elem.outerWidth()};$.extend(o,{effect:\"scale\",queue:false,fade:true,mode:mode,complete:done,percent:hide?percent:100,from:hide?original:{height:original.height*factor,width:original.width*factor,outerHeight:original.outerHeight*factor,outerWidth:original.outerWidth*factor}});elem.effect(o);};$.effects.effect.scale=function(o,done){var el=$(this),options=$.extend(true,{},o),mode=$.effects.setMode(el,o.mode||\"effect\"),percent=parseInt(o.percent,10)||(parseInt(o.percent,10)===0?0:(mode===\"hide\"?0:100)),direction=o.direction||\"both\",origin=o.origin,original={height:el.height(),width:el.width(),outerHeight:el.outerHeight(),outerWidth:el.outerWidth()},factor={y:direction!==\"horizontal\"?(percent / 100):1,x:direction!==\"vertical\"?(percent / 100):1};options.effect=\"size\";options.queue=false;options.complete=done;if(mode!==\"effect\"){options.origin=origin||[\"middle\",\"center\"];options.restore=true;}\noptions.from=o.from||(mode===\"show\"?{height:0,width:0,outerHeight:0,outerWidth:0}:original);options.to={height:original.height*factor.y,width:original.width*factor.x,outerHeight:original.outerHeight*factor.y,outerWidth:original.outerWidth*factor.x};if(options.fade){if(mode===\"show\"){options.from.opacity=0;options.to.opacity=1;}\nif(mode===\"hide\"){options.from.opacity=1;options.to.opacity=0;}}\nel.effect(options);};$.effects.effect.size=function(o,done){var original,baseline,factor,el=$(this),props0=[\"position\",\"top\",\"bottom\",\"left\",\"right\",\"width\",\"height\",\"overflow\",\"opacity\"],props1=[\"position\",\"top\",\"bottom\",\"left\",\"right\",\"overflow\",\"opacity\"],props2=[\"width\",\"height\",\"overflow\"],cProps=[\"fontSize\"],vProps=[\"borderTopWidth\",\"borderBottomWidth\",\"paddingTop\",\"paddingBottom\"],hProps=[\"borderLeftWidth\",\"borderRightWidth\",\"paddingLeft\",\"paddingRight\"],mode=$.effects.setMode(el,o.mode||\"effect\"),restore=o.restore||mode!==\"effect\",scale=o.scale||\"both\",origin=o.origin||[\"middle\",\"center\"],position=el.css(\"position\"),props=restore?props0:props1,zero={height:0,width:0,outerHeight:0,outerWidth:0};if(mode===\"show\"){el.show();}\noriginal={height:el.height(),width:el.width(),outerHeight:el.outerHeight(),outerWidth:el.outerWidth()};if(o.mode===\"toggle\"&&mode===\"show\"){el.from=o.to||zero;el.to=o.from||original;}else{el.from=o.from||(mode===\"show\"?zero:original);el.to=o.to||(mode===\"hide\"?zero:original);}\nfactor={from:{y:el.from.height / original.height,x:el.from.width / original.width}
2,to:{y:el.to.height / original.height,x:el.to.width / original.width}};if(scale===\"box\"||scale===\"both\"){if(factor.from.y!==factor.to.y){props=props.concat(vProps);el.from=$.effects.setTransition(el,vProps,factor.from.y,el.from);el.to=$.effects.setTransition(el,vProps,factor.to.y,el.to);}\nif(factor.from.x!==factor.to.x){props=props.concat(hProps);el.from=$.effects.setTransition(el,hProps,factor.from.x,el.from);el.to=$.effects.setTransition(el,hProps,factor.to.x,el.to);}}\nif(scale===\"content\"||scale===\"both\"){if(factor.from.y!==factor.to.y){props=props.concat(cProps).concat(props2);el.from=$.effects.setTransition(el,cProps,factor.from.y,el.from);el.to=$.effects.setTransition(el,cProps,factor.to.y,el.to);}}\n$.effects.save(el,props);el.show();$.effects.createWrapper(el);el.css(\"overflow\",\"hidden\").css(el.from);if(origin){baseline=$.effects.getBaseline(origin,original);el.from.top=(original.outerHeight-el.outerHeight())*baseline.y;el.from.left=(original.outerWidth-el.outerWidth())*baseline.x;el.to.top=(original.outerHeight-el.to.outerHeight)*baseline.y;el.to.left=(original.outerWidth-el.to.outerWidth)*baseline.x;}\nel.css(el.from);if(scale===\"content\"||scale===\"both\"){vProps=vProps.concat([\"marginTop\",\"marginBottom\"]).concat(cProps);hProps=hProps.concat([\"marginLeft\",\"marginRight\"]);props2=props0.concat(vProps).concat(hProps);el.find(\"*[width]\").each(function(){var child=$(this),c_original={height:child.height(),width:child.width(),outerHeight:child.outerHeight(),outerWidth:child.outerWidth()};if(restore){$.effects.save(child,props2);}\nchild.from={height:c_original.height*factor.from.y,width:c_original.width*factor.from.x,outerHeight:c_original.outerHeight*factor.from.y,outerWidth:c_original.outerWidth*factor.from.x};child.to={height:c_original.height*factor.to.y,width:c_original.width*factor.to.x,outerHeight:c_original.height*factor.to.y,outerWidth:c_original.width*factor.to.x};if(factor.from.y!==factor.to.y){child.from=$.effects.setTransition(child,vProps,factor.from.y,child.from);child.to=$.effects.setTransition(child,vProps,factor.to.y,child.to);}\nif(factor.from.x!==factor.to.x){child.from=$.effects.setTransition(child,hProps,factor.from.x,child.from);child.to=$.effects.setTransition(child,hProps,factor.to.x,child.to);}\nchild.css(child.from);child.animate(child.to,o.duration,o.easing,function(){if(restore){$.effects.restore(child,props2);}});});}\nel.animate(el.to,{queue:false,duration:o.duration,easing:o.easing,complete:function(){if(el.to.opacity===0){el.css(\"opacity\",el.from.opacity);}\nif(mode===\"hide\"){el.hide();}\n$.effects.restore(el,props);if(!restore){if(position===\"static\"){el.css({position:\"relative\",top:el.to.top,left
2:el.to.left});}else{$.each([\"top\",\"left\"],function(idx,pos){el.css(pos,function(_,str){var val=parseInt(str,10),toRef=idx?el.to.left:el.to.top;if(str===\"auto\"){return toRef+\"px\";}\nreturn val+toRef+\"px\";});});}}\n$.effects.removeWrapper(el);done();}});};});","jquery/ui-modules/widget.min.js":"/*!\n * jQuery UI Widget - v1.10.4\n * http://jqueryui.com\n *\n * Copyright 2014 jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n *\n * http://api.jqueryui.com/jQuery.widget/\n */\ndefine(['jquery'],function($,undefined){var uuid=0,slice=Array.prototype.slice,_cleanData=$.cleanData;$.cleanData=function(elems){for(var i=0,elem;(elem=elems[i])!=null;i++){try{$(elem).triggerHandler(\"remove\");}catch(e){}}\n_cleanData(elems);};$.widget=function(name,base,prototype){var fullName,existingConstructor,constructor,basePrototype,proxiedPrototype={},namespace=name.split(\".\")[0];name=name.split(\".\")[1];fullName=namespace+\"-\"+name;if(!prototype){prototype=base;base=$.Widget;}\n$.expr[\":\"][fullName.toLowerCase()]=function(elem){return!!$.data(elem,fullName);};$[namespace]=$[namespace]||{};existingConstructor=$[namespace][name];constructor=$[namespace][name]=function(options,element){if(!this._createWidget){return new constructor(options,element);}\nif(arguments.length){this._createWidget(options,element);}};$.extend(constructor,existingConstructor,{version:prototype.version,_proto:$.extend({},prototype),_childConstructors:[]});basePrototype=new base();basePrototype.options=$.widget.extend({},basePrototype.options);$.each(prototype,function(prop,value){if(!$.isFunction(value)){proxiedPrototype[prop]=value;return;}\nproxiedPrototype[prop]=(function(){var _super=function(){return base.prototype[prop].apply(this,arguments);},_superApply=function(args){return base.prototype[prop].apply(this,args);};return function(){var __super=this._super,__superApply=this._superApply,returnValue;this._super=_super;this._superApply=_superApply;returnValue=value.apply(this,arguments);this._super=__super;this._superApply=__superApply;return returnValue;};})();});constructor.prototype=$.widget.extend(basePrototype,{widgetEventPrefix:existingConstructor?(basePrototype.widgetEventPrefix||name):name},proxiedPrototype,{constructor:constructor,namespace:namespace,widgetName:name,widgetFullName:fullName});if(existingConstructor){$.each(existingConstructor._childConstructors,function(i,child){var childPrototype=child.prototype;$.widget(childPrototype.namespace+\".\"+childPrototype.widgetName,constructor,child._proto);});delete existingConstructor._childConstructors;}else{base._childConstructors.push(constructor);}\n$.widget.bridge(name,constructor);};$.widget.extend=function(target){var input=slice.call(arguments,1),inputIndex=0,inputLength=input.length,key,value;for(;inputIndex<inputLength;inputIndex++){for(key in input[inputIndex]){value=input[inputIndex][key];if(input[inputIndex].hasOwnProperty(key)&&value!==undefined){if($.isPlainObject(value)){target[key]=$.isPlainObject(target[key])?$.widget.extend({},target[key],value):$.widget.extend({},value);}else{target[key]=value;}}}}\nreturn target;};$.widget.bridge=function(name,object){var fullName=object.prototype.widgetFullName||name;$.fn[name]=function(options){var isMethodCall=typeof options===\"string\",args=slice.call(arguments,1),returnValue=this;options=!isMethodCall&&args.length?$.widget.extend.apply(null,[options].concat(args)):options;if(isMethodCall){this.each(function(){var methodValue,instance=$.data(this,fullName);if(!instance){return $.error(\"cannot call methods on \"+name+\" prior to initialization; \"+\"attempted to call method '\"+options+\"'\");}\nif(!$.isFunction(instance[options])||options.charAt(0)===\"_\"){return $.error(\"no such method '\"+options+\"' for \"+name+\" widget instance\");}\nmethodValue=instance[options].apply(instance,args);if(methodValue!==instance&&methodValue!==undefined){returnValue=methodValue&&methodValue.jquery?returnValue.pushStack(methodValue.get()):methodValue;return false;}});}else{this.each(function(){var instance=$.data(this,fullName);if(instance){instance.option(options||{})._init();}else{$.data(this,fullName,new object(options,this));}});}\nreturn returnValue;};};$.Widget=function(){};
2$.Widget._childConstructors=[];$.Widget.prototype={widgetName:\"widget\",widgetEventPrefix:\"\",defaultElement:\"<div>\",options:{disabled:false,create:null},_createWidget:function(options,element){element=$(element||this.defaultElement||this)[0];this.element=$(element);this.uuid=uuid++;this.eventNamespace=\".\"+this.widgetName+this.uuid;this.options=$.widget.extend({},this.options,this._getCreateOptions(),options);this.bindings=$();this.hoverable=$();this.focusable=$();if(element!==this){$.data(element,this.widgetFullName,this);this._on(true,this.element,{remove:function(event){if(event.target===element){this.destroy();}}});this.document=$(element.style?element.ownerDocument:element.document||element);this.window=$(this.document[0].defaultView||this.document[0].parentWindow);}\nthis._create();this._trigger(\"create\",null,this._getCreateEventData());this._init();},_getCreateOptions:$.noop,_getCreateEventData:$.noop,_create:$.noop,_init:$.noop,destroy:function(){this._destroy();this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData($.camelCase(this.widgetFullName));this.widget().unbind(this.eventNamespace).removeAttr(\"aria-disabled\").removeClass(this.widgetFullName+\"-disabled \"+\"ui-state-disabled\");this.bindings.unbind(this.eventNamespace);this.hoverable.removeClass(\"ui-state-hover\");this.focusable.removeClass(\"ui-state-focus\");},_destroy:$.noop,widget:function(){return this.element;},option:function(key,value){var options=key,parts,curOption,i;if(arguments.length===0){return $.widget.extend({},this.options);}\nif(typeof key===\"string\"){options={};parts=key.split(\".\");key=parts.shift();if(parts.length){curOption=options[key]=$.widget.extend({},this.options[key]);for(i=0;i<parts.length-1;i++){curOption[parts[i]]=curOption[parts[i]]||{};curOption=curOption[parts[i]];}\nkey=parts.pop();if(arguments.length===1){return curOption[key]===undefined?null:curOption[key];}\ncurOption[key]=value;}else{if(arguments.length===1){return this.options[key]===undefined?null:this.options[key];}\noptions[key]=value;}}\nthis._setOptions(options);return this;},_setOptions:function(options){var key;for(key in options){this._setOption(key,options[key]);}\nreturn this;},_setOption:function(key,value){this.options[key]=value;if(key===\"disabled\"){this.widget().toggleClass(this.widgetFullName+\"-disabled ui-state-disabled\",!!value).attr(\"aria-disabled\",value);this.hoverable.removeClass(\"ui-state-hover\");this.focusable.removeClass(\"ui-state-focus\");}\nreturn this;},enable:function(){return this._setOption(\"disabled\",false);},disable:function(){return this._setOption(\"disabled\",true);},_on:function(suppressDisabledCheck,element,handlers){var delegateElement,instance=this;if(typeof suppressDisabledCheck!==\"boolean\"){handlers=element;element=suppressDisabledCheck;suppressDisabledCheck=false;}\nif(!handlers){handlers=element;element=this.element;delegateElement=this.widget();}else{element=delegateElement=$(element);this.bindings=this.bindings.add(element);}\n$.each(handlers,function(event,handler){function handlerProxy(){if(!suppressDisabledCheck&&(instance.options.disabled===true||$(this).hasClass(\"ui-state-disabled\"))){return;}\nreturn(typeof handler===\"string\"?instance[handler]:handler).apply(instance,arguments);}\nif(typeof handler!==\"string\"){handlerProxy.guid=handler.guid=handler.guid||handlerProxy.guid||$.guid++;}\nvar match=event.match(/^(\\w+)\\s*(.*)$/),eventName=match[1]+instance.eventNamespace,selector=match[2];if(selector){delegateElement.delegate(selector,eventName,handlerProxy);}else{element.bind(eventName,handlerProxy);}});},_off:function(element,eventName){eventName=(eventName||\"\").split(\" \").join(this.eventNamespace+\" \")+this.eventNamespace;element.unbind(eventName).undelegate(eventName);},_delay:function(handler,delay){function handlerProxy(){return(typeof handler===\"string\"?instance[handler]:handler).apply(instance,arguments);}\nvar instance=this;return setTimeout(handlerProxy,delay||0);},_hoverable:function(element){this.hoverable=this.hoverable.add(element);this._on(element,{mouseenter:function(event){$(event.currentTarget).addClass(\"ui-state-hover\");},mouseleave:function(event){$(event.currentTarget).removeClass(\"ui-state-hover\");}});},_focusable:function(element){this.focusable=this.focusable.add(element);this._on(element,{focusin:function(event){$(event.currentTarget).addClass(\"ui-state-focus\");},focusout:function(event){$(event.currentTarget).removeClass(\"ui-state-focus\");}});},_trigger:function(type,event,data){var prop,orig,callback=this.options[type];data=data||{};event=$.Event(event);event.type=(type===this.widgetEventPrefix?type:this.widgetEventPrefix+type).toLowerCase();event.target=this.element[0];orig=event.originalEvent;if(orig){for(prop in orig){if(!(prop in event)){event[prop]=orig[prop];}}}\nthis.element.trigger(event,data);return!($.isFunction(callback)&&callback.apply(this.element[0],[event].concat(data))===false||event.isDefaultPrevented());}};$.each({show:\"fadeIn\",hide:\"fadeOut\"},function(method,defaultEffect){$.Widget.prototype[\"_\"+method]=function(element,options,callback){if(typeof options===\"string\"){options={effect:options};}\nvar hasOptions,effectName=!options?method:options===true||typeof options===\"number\"?defaultEffect:options.effect||defaultEffect;options=options||{};if(typeof options===\"number\"){options={duration:options};}\nhasOptions=!$.isEmptyObject(options);options.complete=callback;if(options.delay){element.delay(options.delay);}\nif(hasOptions&&$.effects&&$.effects.effect[effectName]){element[method](options);}else if(effectName!==method&&element[effectName]){element[effectName](options.duration,options.easing,callback);}else{element.queue(function(next){$(this)[method]();if(callback){callback.call(element[0]);}\nnext();});}};});});","jquery/ui-modules/draggable.min.js":"/*!\n * jQuery UI Draggable - v1.10.4\n * http://jqueryui.com\n *\n * Copyright 2014 jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n *\n * http://api.jqueryui.com/draggable/\n *\n */\ndefine(['jquery','jquery-ui-modules/core','jquery-ui-modules/mouse'],function($,undefined){$.widget(\"ui.draggable\",$.ui.mouse,{version:\"1.10.4\",widgetEventPrefix:\"drag\",options:{addClasses:true,appendTo:\"parent\",axis:false,connectToSortable:false,containment:false,curs
2or:\"auto\",cursorAt:false,grid:false,handle:false,helper:\"original\",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:\"default\",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:\"both\",snapTolerance:20,stack:false,zIndex:false,drag:null,start:null,stop:null},_create:function(){if(this.options.helper===\"original\"&&!(/^(?:r|a|f)/).test(this.element.css(\"position\"))){this.element[0].style.position=\"relative\";}\nif(this.options.addClasses){this.element.addClass(\"ui-draggable\");}\nif(this.options.disabled){this.element.addClass(\"ui-draggable-disabled\");}\nthis._mouseInit();},_destroy:function(){this.element.removeClass(\"ui-draggable ui-draggable-dragging ui-draggable-disabled\");this._mouseDestroy();},_mouseCapture:function(event){var o=this.options;if(this.helper||o.disabled||$(event.target).closest(\".ui-resizable-handle\").length>0){return false;}\nthis.handle=this._getHandle(event);if(!this.handle){return false;}\n$(o.iframeFix===true?\"iframe\":o.iframeFix).each(function(){$(\"<div class='ui-draggable-iframeFix' style='background: #fff;'></div>\").css({width:this.offsetWidth+\"px\",height:this.offsetHeight+\"px\",position:\"absolute\",opacity:\"0.001\",zIndex:1000}).css($(this).offset()).appendTo(\"body\");});return true;},_mouseStart:function(event){var o=this.options;this.helper=this._createHelper(event);this.helper.addClass(\"ui-draggable-dragging\");this._cacheHelperProportions();if($.ui.ddmanager){$.ui.ddmanager.current=this;}\nthis._cacheMargins();this.cssPosition=this.helper.css(\"position\");this.scrollParent=this.helper.scrollParent();this.offsetParent=this.helper.offsetParent();this.offsetParentCssPosition=this.offsetParent.css(\"position\");this.offset=this.positionAbs=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};this.offset.scroll=false;$.extend(this.offset,{click:{left:event.pageX-this.offset.left,top:event.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this.position=this._generatePosition(event);this.originalPageX=event.pageX;this.originalPageY=event.pageY;(o.cursorAt&&this._adjustOffsetFromHelper(o.cursorAt));this._setContainment();if(this._trigger(\"start\",event)===false){this._clear();return false;}\nthis._cacheHelperProportions();if($.ui.ddmanager&&!o.dropBehaviour){$.ui.ddmanager.prepareOffsets(this,event);}\nthis._mouseDrag(event,true);if($.ui.ddmanager){$.ui.ddmanager.dragStart(this,event);}\nreturn true;},_mouseDrag:function(event,noPropagation){if(this.offsetParentCssPosition===\"fixed\"){this.offset.parent=this._getParentOffset();}\nthis.position=this._generatePosition(event);this.positionAbs=this._convertPositionTo(\"absolute\");if(!noPropagation){var ui=this._uiHash();if(this._trigger(\"drag\",event,ui)===false){this._mouseUp({});return false;}\nthis.position=ui.position;}\nif(!this.options.axis||this.options.axis!==\"y\"){this.helper[0].style.left=this.position.left+\"px\";}\nif(!this.options.axis||this.options.axis!==\"x\"){this.helper[0].style.top=this.position.top+\"px\";}\nif($.ui.ddmanager){$.ui.ddmanager.drag(this,event);}\nreturn false;},_mouseStop:function(event){var that=this,dropped=false;if($.ui.ddmanager&&!this.options.dropBehaviour){dropped=$.ui.ddmanager.drop(this,event);}\nif(this.dropped){dropped=this.dropped;this.dropped=false;}\nif(this.options.helper===\"original\"&&!$.contains(this.element[0].ownerDocument,this.element[0])){return false;}\nif((this.options.revert===\"invalid\"&&!dropped)||(this.options.revert===\"valid\"&&dropped)||this.options.revert===true||($.isFunction(this.options.revert)&&this.options.revert.call(this.element,dropped))){$(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){if(that._trigger(\"stop\",event)!==false){that._clear();}});}else{if(this._trigger(\"stop\",event)!==false){this._clear();}}\nreturn false;},_mouseUp:function(event){$(\"div.ui-draggable-iframeFix\").each(function(){this.parentNode.removeChild(this);});if($.ui.ddmanager){$.ui.ddmanager.dragStop(this,event);}\nreturn $.ui.mouse.prototype._mouseUp.call(this,event);},cancel:function(){if(this.helper.is(\".ui-draggable-dragging\")){this._mouseUp({});}else{this._clear();}\nreturn this;},_getHandle:function(event){return this.options.handle?!!$(event.target).closest(this.element.find(this.options.handle)).length:true;},_createHelper:function(event){var o=this.options,helper=$.isFunction(o.helper)?$(o.helper.apply(this.element[0],[event])):(o.helper===\"clone\"?this.element.clone().removeAttr(\"id\"):this.element);if(!helper.parents(\"body\").length){helper.appendTo((o.appendTo===\"parent\"?this.element[0].parentNode:o.appendTo));}\nif(helper[0]!==this.element[0]&&!(/(fixed|absolute)/).test(helper.css(\"position\"))){helper.css(\"position\",\"absolute\");}\nreturn helper;}
2,_adjustOffsetFromHelper:function(obj){if(typeof obj===\"string\"){obj=obj.split(\" \");}\nif($.isArray(obj)){obj={left:+obj[0],top:+obj[1]||0};}\nif(\"left\"in obj){this.offset.click.left=obj.left+this.margins.left;}\nif(\"right\"in obj){this.offset.click.left=this.helperProportions.width-obj.right+this.margins.left;}\nif(\"top\"in obj){this.offset.click.top=obj.top+this.margins.top;}\nif(\"bottom\"in obj){this.offset.click.top=this.helperProportions.height-obj.bottom+this.margins.top;}},_getParentOffset:function(){var po=this.offsetParent.offset();if(this.cssPosition===\"absolute\"&&this.scrollParent[0]!==document&&$.contains(this.scrollParent[0],this.offsetParent[0])){po.left+=this.scrollParent.scrollLeft();po.top+=this.scrollParent.scrollTop();}\nif((this.offsetParent[0]===document.body)||(this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()===\"html\"&&$.ui.ie)){po={top:0,left:0};}\nreturn{top:po.top+(parseInt(this.offsetParent.css(\"borderTopWidth\"),10)||0),left:po.left+(parseInt(this.offsetParent.css(\"borderLeftWidth\"),10)||0)};},_getRelativeOffset:function(){if(this.cssPosition===\"relative\"){var p=this.element.position();return{top:p.top-(parseInt(this.helper.css(\"top\"),10)||0)+this.scrollParent.scrollTop(),left:p.left-(parseInt(this.helper.css(\"left\"),10)||0)+this.scrollParent.scrollLeft()};}else{return{top:0,left:0};}},_cacheMargins:function(){this.margins={left:(parseInt(this.element.css(\"marginLeft\"),10)||0),top:(parseInt(this.element.css(\"marginTop\"),10)||0),right:(parseInt(this.element.css(\"marginRight\"),10)||0),bottom:(parseInt(this.element.css(\"marginBottom\"),10)||0)};},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()};},_setContainment:function(){var over,c,ce,o=this.options;if(!o.containment){this.containment=null;return;}\nif(o.containment===\"window\"){this.containment=[$(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,$(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,$(window).scrollLeft()+$(window).width()-this.helperProportions.width-this.margins.left,$(window).scrollTop()+($(window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];return;}\nif(o.containment===\"document\"){this.containment=[0,0,$(document).width()-this.helperProportions.width-this.margins.left,($(document).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];return;}\nif(o.containment.constructor===Array){this.containment=o.containment;return;}\nif(o.containment===\"parent\"){o.containment=this.helper[0].parentNode;}\nc=$(o.containment);ce=c[0];if(!ce){return;}\nover=c.css(\"overflow\")!==\"hidden\";this.containment=[(parseInt(c.css(\"borderLeftWidth\"),10)||0)+(parseInt(c.css(\"paddingLeft\"),10)||0),(parseInt(c.css(\"borderTopWidth\"),10)||0)+(parseInt(c.css(\"paddingTop\"),10)||0),(over?Math.max(ce.scrollWidth,ce.offsetWidth):ce.offsetWidth)-(parseInt(c.css(\"borderRightWidth\"),10)||0)-(parseInt(c.css(\"paddingRight\"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(over?Math.max(ce.scrollHeight,ce.offsetHeight):ce.offsetHeight)-(parseInt(c.css(\"borderBottomWidth\"),10)||0)-(parseInt(c.css(\"paddingBottom\"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom];this.relative_container=c;},_convertPositionTo:function(d,pos){if(!pos){pos=this.position;}\nvar mod=d===\"absolute\"?1:-1,scroll=this.cssPosition===\"absolute\"&&!(this.scrollParent[0]!==document&&$.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent;if(!this.offset.scroll){this.offset.scroll={top:scroll.scrollTop(),left:scroll.scrollLeft()};}\nreturn{top:(pos.top+\nthis.offset.relative.top*mod+\nthis.offset.parent.top*mod-\n((this.cssPosition===\"fixed\"?-this.scrollParent.scrollTop():this.offset.scroll.top)*mod)),left:(pos.left+\nthis.offset.relative.left*mod+\nthis.offset.parent.left*mod-\n((this.cssPosition===\"fixed\"?-this.scrollParent.scrollLeft():this.offset.scroll.left)*mod))};},_generatePosition:function(event){var containment,co,top,left,o=this.options,scroll=this.cssPosition===\"absolute\"&&!(this.scrollParent[0]!==document&&$.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,pageX=event.pageX,pageY=event.pageY;if(!this.offset.scroll){this.offset.scroll={top:scroll.scrollTop(),left:scroll.scrollLeft()};}\nif(this.originalPosition){if(this.containment){if(this.relative_container){co=this.relative_container.offset();containment=[this.containment[0]+co.left,this.containment[1]+co.top,this.containment[2]+co.left,this.containment[3]+co.top];}else{containment=this.containment;}\nif(event.pageX-this.offset.click.left<containment[0]){pageX=containment[0]+this.offset.click.left;}\nif(event.pageY-this.offset.click.top<containment[1]){pageY=containment[1]+this.offset.click.top;}\nif(event.pageX-this.offset.click.left>containment[2]){pageX=containment[2]+this.offset.click.left;}\nif(event.pageY-this.offset.click.top>containment[3]){pageY=containment[3]+this.offset.click.top;}}\nif(o.grid){top=o.grid[1]?this.originalPageY+Math.round((pageY-this.originalPageY)/ o.grid[1])*o.grid[1]:this.originalPageY;pageY=containment?((top-this.offset.click.top>=containment[1]||top-this.offset.click.top>containment[3])?top:((top-this.offset.click.top>=containment[1])?top-o.grid[1]:top+o.grid[1])):top;left=o.grid[0]?this.originalPageX+Math.round((pageX-this.originalPageX)
2/ o.grid[0])*o.grid[0]:this.originalPageX;pageX=containment?((left-this.offset.click.left>=containment[0]||left-this.offset.click.left>containment[2])?left:((left-this.offset.click.left>=containment[0])?left-o.grid[0]:left+o.grid[0])):left;}}\nreturn{top:(pageY-\nthis.offset.click.top-\nthis.offset.relative.top-\nthis.offset.parent.top+\n(this.cssPosition===\"fixed\"?-this.scrollParent.scrollTop():this.offset.scroll.top)),left:(pageX-\nthis.offset.click.left-\nthis.offset.relative.left-\nthis.offset.parent.left+\n(this.cssPosition===\"fixed\"?-this.scrollParent.scrollLeft():this.offset.scroll.left))};},_clear:function(){this.helper.removeClass(\"ui-draggable-dragging\");if(this.helper[0]!==this.element[0]&&!this.cancelHelperRemoval){this.helper.remove();}\nthis.helper=null;this.cancelHelperRemoval=false;},_trigger:function(type,event,ui){ui=ui||this._uiHash();$.ui.plugin.call(this,type,[event,ui]);if(type===\"drag\"){this.positionAbs=this._convertPositionTo(\"absolute\");}\nreturn $.Widget.prototype._trigger.call(this,type,event,ui);},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs};}});$.ui.plugin.add(\"draggable\",\"connectToSortable\",{start:function(event,ui){var inst=$(this).data(\"ui-draggable\"),o=inst.options,uiSortable=$.extend({},ui,{item:inst.element});inst.sortables=[];$(o.connectToSortable).each(function(){var sortable=$.data(this,\"ui-sortable\");if(sortable&&!sortable.options.disabled){inst.sortables.push({instance:sortable,shouldRevert:sortable.options.revert});sortable.refreshPositions();sortable._trigger(\"activate\",event,uiSortable);}});},stop:function(event,ui){var inst=$(this).data(\"ui-draggable\"),uiSortable=$.extend({},ui,{item:inst.element});$.each(inst.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;inst.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert){this.instance.options.revert=this.shouldRevert;}\nthis.instance._mouseStop(event);this.instance.options.helper=this.instance.options._helper;if(inst.options.helper===\"original\"){this.instance.currentItem.css({top:\"auto\",left:\"auto\"});}}else{this.instance.cancelHelperRemoval=false;this.instance._trigger(\"deactivate\",event,uiSortable);}});},drag:function(event,ui){var inst=$(this).data(\"ui-draggable\"),that=this;$.each(inst.sortables,function(){var innermostIntersecting=false,thisSortable=this;this.instance.positionAbs=inst.positionAbs;this.instance.helperProportions=inst.helperProportions;this.instance.offset.click=inst.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){innermostIntersecting=true;$.each(inst.sortables,function(){this.instance.positionAbs=inst.positionAbs;this.instance.helperProportions=inst.helperProportions;this.instance.offset.click=inst.offset.click;if(this!==thisSortable&&this.instance._intersectsWith(this.instance.containerCache)&&$.contains(thisSortable.instance.element[0],this.instance.element[0])){innermostIntersecting=false;}\nreturn innermostIntersecting;});}\nif(innermostIntersecting){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=$(that).clone().removeAttr(\"id\").appendTo(this.instance.element).data(\"ui-sortable-item\",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return ui.helper[0];};event.target=this.instance.currentItem[0];this.instance._mouseCapture(event,true);this.instance._mouseStart(event,true,true);this.instance.offset.click.top=inst.offset.click.top;this.instance.offset.click.left=inst.offset.click.left;this.instance.offset.parent.left-=inst.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=inst.offset.parent.top-this.instance.offset.parent.top;inst._trigger(\"toSortable\",event);inst.dropped=this.instance.element;inst.currentItem=inst.element;this.instance.fromOutside=inst;}\nif(this.instance.currentItem){this.instance._mouseDrag(event);}}else{if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger(\"out\",event,this.instance._uiHash(this.instance));this.instance._mouseStop(event,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();if(this.instance.placeholder){this.instance.placeholder.remove();}\ninst._trigger(\"fromSortable\",event);inst.dropped=false;}}});}});$.ui.plugin.add(\"draggable\",\"cursor\",{start:function(){var t=$(\"body\"),o=$(this).data(\"ui-draggable\").options;if(t.css(\"cursor\")){o._cursor=t.css(\"cursor\");}\nt.css(\"cursor\",o.cursor);},stop:function(){var o=$(this).data(\"ui-draggable\").options;if(o._cursor){$(\"body\").css(\"cursor\",o._cursor);}}});$.ui.plugin.add(\"draggable\",\"opacity\",{start:function(event,ui){var t=$(ui.helper),o=$(this).data(\"ui-draggable\").options;if(t.css(\"opacity\")){o._opacity=t.css(\"opacity\");}\nt.css(\"opacity\",o.opacity);},stop:function(event,ui){var o=$(this).data(\"ui-draggable\").options;if(o._opacity){$(ui.helper).css(\"opacity\",o._opacity);}}});$.ui.plugin.add(\"draggable\",\"scroll\",{start:function(){var i=$(this).data(\"ui-draggable\");if(i.scrollParent[0]!==document&&i.scrollParent[0].tagName!==\"HTML\"){i.overflowOffset=i.scrollParent.offset();}}
2,drag:function(event){var i=$(this).data(\"ui-draggable\"),o=i.options,scrolled=false;if(i.scrollParent[0]!==document&&i.scrollParent[0].tagName!==\"HTML\"){if(!o.axis||o.axis!==\"x\"){if((i.overflowOffset.top+i.scrollParent[0].offsetHeight)-event.pageY<o.scrollSensitivity){i.scrollParent[0].scrollTop=scrolled=i.scrollParent[0].scrollTop+o.scrollSpeed;}else if(event.pageY-i.overflowOffset.top<o.scrollSensitivity){i.scrollParent[0].scrollTop=scrolled=i.scrollParent[0].scrollTop-o.scrollSpeed;}}\nif(!o.axis||o.axis!==\"y\"){if((i.overflowOffset.left+i.scrollParent[0].offsetWidth)-event.pageX<o.scrollSensitivity){i.scrollParent[0].scrollLeft=scrolled=i.scrollParent[0].scrollLeft+o.scrollSpeed;}else if(event.pageX-i.overflowOffset.left<o.scrollSensitivity){i.scrollParent[0].scrollLeft=scrolled=i.scrollParent[0].scrollLeft-o.scrollSpeed;}}}else{if(!o.axis||o.axis!==\"x\"){if(event.pageY-$(document).scrollTop()<o.scrollSensitivity){scrolled=$(document).scrollTop($(document).scrollTop()-o.scrollSpeed);}else if($(window).height()-(event.pageY-$(document).scrollTop())<o.scrollSensitivity){scrolled=$(document).scrollTop($(document).scrollTop()+o.scrollSpeed);}}\nif(!o.axis||o.axis!==\"y\"){if(event.pageX-$(document).scrollLeft()<o.scrollSensitivity){scrolled=$(document).scrollLeft($(document).scrollLeft()-o.scrollSpeed);}else if($(window).width()-(event.pageX-$(document).scrollLeft())<o.scrollSensitivity){scrolled=$(document).scrollLeft($(document).scrollLeft()+o.scrollSpeed);}}}\nif(scrolled!==false&&$.ui.ddmanager&&!o.dropBehaviour){$.ui.ddmanager.prepareOffsets(i,event);}}});$.ui.plugin.add(\"draggable\",\"snap\",{start:function(){var i=$(this).data(\"ui-draggable\"),o=i.options;i.snapElements=[];$(o.snap.constructor!==String?(o.snap.items||\":data(ui-draggable)\"):o.snap).each(function(){var $t=$(this),$o=$t.offset();if(this!==i.element[0]){i.snapElements.push({item:this,width:$t.outerWidth(),height:$t.outerHeight(),top:$o.top,left:$o.left});}});},drag:function(event,ui){var ts,bs,ls,rs,l,r,t,b,i,first,inst=$(this).data(\"ui-draggable\"),o=inst.options,d=o.snapTolerance,x1=ui.offset.left,x2=x1+inst.helperProportions.width,y1=ui.offset.top,y2=y1+inst.helperProportions.height;for(i=inst.snapElements.length-1;i>=0;i--){l=inst.snapElements[i].left;r=l+inst.snapElements[i].width;t=inst.snapElements[i].top;b=t+inst.snapElements[i].height;if(x2<l-d||x1>r+d||y2<t-d||y1>b+d||!$.contains(inst.snapElements[i].item.ownerDocument,inst.snapElements[i].item)){if(inst.snapElements[i].snapping){(inst.options.snap.release&&inst.options.snap.release.call(inst.element,event,$.extend(inst._uiHash(),{snapItem:inst.snapElements[i].item})));}\ninst.snapElements[i].snapping=false;continue;}\nif(o.snapMode!==\"inner\"){ts=Math.abs(t-y2)<=d;bs=Math.abs(b-y1)<=d;ls=Math.abs(l-x2)<=d;rs=Math.abs(r-x1)<=d;if(ts){ui.position.top=inst._convertPositionTo(\"relative\",{top:t-inst.helperProportions.height,left:0}).top-inst.margins.top;}\nif(bs){ui.position.top=inst._convertPositionTo(\"relative\",{top:b,left:0}).top-inst.margins.top;}\nif(ls){ui.position.left=inst._convertPositionTo(\"relative\",{top:0,left:l-inst.helperProportions.width}).left-inst.margins.left;}\nif(rs){ui.position.left=inst._convertPositionTo(\"relative\",{top:0,left:r}).left-inst.margins.left;}}\nfirst=(ts||bs||ls||rs);if(o.snapMode!==\"outer\"){ts=Math.abs(t-y1)<=d;bs=Math.abs(b-y2)<=d;ls=Math.abs(l-x1)<=d;rs=Math.abs(r-x2)<=d;if(ts){ui.position.top=inst._convertPositionTo(\"relative\",{top:t,left:0}).top-inst.margins.top;}\nif(bs){ui.position.top=inst._convertPositionTo(\"relative\",{top:b-inst.helperProportions.height,left:0}).top-inst.margins.top;}\nif(ls){ui.position.left=inst._convertPositionTo(\"relative\",{top:0,left:l}).left-inst.margins.left;}\nif(rs){ui.position.left=inst._convertPositionTo(\"relative\",{top:0,left:r-inst.helperProportions.width}).left-inst.margins.left;}}\nif(!inst.snapElements[i].snapping&&(ts||bs||ls||rs||first)){(inst.options.snap.snap&&inst.options.snap.snap.call(inst.element,event,$.extend(inst._uiHash(),{snapItem:inst.snapElements[i].item})));}\ninst.snapElements[i].snapping=(ts||bs||ls||rs||first);}}});$.ui.plugin.add(\"draggable\",\"stack\",{start:function(){var min,o=this.data(\"ui-draggable\").options,group=$.makeArray($(o.stack)).sort(function(a,b){return(parseInt($(a).css(\"zIndex\"),10)||0)-(parseInt($(b).css(\"zIndex\"),10)||0);});if(!group.length){return;}\nmin=parseInt($(group[0]).css(\"zIndex\"),10)||0;$(group).each(function(i){$(this).css(\"zIndex\",min+i);});this.css(\"zIndex\",(min+group.length));}});$.ui.plugin.add(\"draggable\",\"zIndex\",{start:function(event,ui){var t=$(ui.helper),o=$(this).data(\"ui-draggable\").options;if(t.css(\"zIndex\")){o._zIndex=t.css(\"zIndex\");}\nt.css(\"zIndex\",o.zIndex);},stop:function(event,ui){var o=$(this).data(\"ui-draggable\").options;if(o._zIndex){$(ui.helper).css(\"zIndex\",o._zIndex);}}});});","jquery/ui-modules/effect-slide.min.js":"/*!\n * jQuery UI Effects Slide - v1.10.4\n * http://jqueryui.com\n *\n * Copyright 2014 jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n *\n * http://api.jqueryui.com/slide-effect/\n */\ndefine(['jquery','jquery-ui-modules/effect'],function($,undefined){$.effects.effect.slide=function(o,done){var el=$(this),props=[\"position\",\"top\",\"bottom\",\"left\",\"right\",\"width\",\"height\"],mode=$.effects.setMode(el,o.mode||\"show\"),show=mode===\"show\",direction=o.direction||\"left\",ref=(direction===\"up\"||direction===\"down\")?\"top\":\"left\",positiveMotion=(direction===\"up\"||direction===\"left\"),distance,animation={};$.effects.save(el,props);el.show();
2distance=o.distance||el[ref===\"top\"?\"outerHeight\":\"outerWidth\"](true);$.effects.createWrapper(el).css({overflow:\"hidden\"});if(show){el.css(ref,positiveMotion?(isNaN(distance)?\"-\"+distance:-distance):distance);}\nanimation[ref]=(show?(positiveMotion?\"+=\":\"-=\"):(positiveMotion?\"-=\":\"+=\"))+\ndistance;el.animate(animation,{queue:false,duration:o.duration,easing:o.easing,complete:function(){if(mode===\"hide\"){el.hide();}\n$.effects.restore(el,props);$.effects.removeWrapper(el);done();}});};});","jquery/ui-modules/timepicker.min.js":"/*! jQuery Timepicker Addon - v1.4.3 - 2013-11-30\n* http://trentrichardson.com/examples/timepicker\n* Copyright (c) 2013 Trent Richardson; Licensed MIT */\n(function(factory){if(typeof define==='function'&&define.amd){define([\"jquery\",\"jquery-ui-modules/datepicker\",\"jquery-ui-modules/slider\"],factory);}else{factory(jQuery);}}(function($){$.ui.timepicker=$.ui.timepicker||{};if($.ui.timepicker.version){return;}\n$.extend($.ui,{timepicker:{version:\"1.4.3\"}});var Timepicker=function(){this.regional=[];this.regional['']={currentText:'Now',closeText:'Done',amNames:['AM','A'],pmNames:['PM','P'],timeFormat:'HH:mm',timeSuffix:'',timeOnlyTitle:'Choose Time',timeText:'Time',hourText:'Hour',minuteText:'Minute',secondText:'Second',millisecText:'Millisecond',microsecText:'Microsecond',timezoneText:'Time Zone',isRTL:false};this._defaults={showButtonPanel:true,timeOnly:false,showHour:null,showMinute:null,showSecond:null,showMillisec:null,showMicrosec:null,showTimezone:null,showTime:true,stepHour:1,stepMinute:1,stepSecond:1,stepMillisec:1,stepMicrosec:1,hour:0,minute:0,second:0,millisec:0,microsec:0,timezone:null,hourMin:0,minuteMin:0,secondMin:0,millisecMin:0,microsecMin:0,hourMax:23,minuteMax:59,secondMax:59,millisecMax:999,microsecMax:999,minDateTime:null,maxDateTime:null,onSelect:null,hourGrid:0,minuteGrid:0,secondGrid:0,millisecGrid:0,microsecGrid:0,alwaysSetTime:true,separator:' ',altFieldTimeOnly:true,altTimeFormat:null,altSeparator:null,altTimeSuffix:null,pickerTimeFormat:null,pickerTimeSuffix:null,showTimepicker:true,timezoneList:null,addSliderAccess:false,sliderAccessArgs:null,controlType:'slider',defaultValue:null,parse:'strict'};$.extend(this._defaults,this.regional['']);};$.extend(Timepicker.prototype,{$input:null,$altInput:null,$timeObj:null,inst:null,hour_slider:null,minute_slider:null,second_slider:null,millisec_slider:null,microsec_slider:null,timezone_select:null,hour:0,minute:0,second:0,millisec:0,microsec:0,timezone:null,hourMinOriginal:null,minuteMinOriginal:null,secondMinOriginal:null,millisecMinOriginal:null,microsec
2MinOriginal:null,hourMaxOriginal:null,minuteMaxOriginal:null,secondMaxOriginal:null,millisecMaxOriginal:null,microsecMaxOriginal:null,ampm:'',formattedDate:'',formattedTime:'',formattedDateTime:'',timezoneList:null,units:['hour','minute','second','millisec','microsec'],support:{},control:null,setDefaults:function(settings){extendRemove(this._defaults,settings||{});return this;},_newInst:function($input,opts){var tp_inst=new Timepicker(),inlineSettings={},fns={},overrides,i;for(var attrName in this._defaults){if(this._defaults.hasOwnProperty(attrName)){var attrValue=$input.attr('time:'+attrName);if(attrValue){try{inlineSettings[attrName]=eval(attrValue);}catch(err){inlineSettings[attrName]=attrValue;}}}}\noverrides={beforeShow:function(input,dp_inst){if($.isFunction(tp_inst._defaults.evnts.beforeShow)){return tp_inst._defaults.evnts.beforeShow.call($input[0],input,dp_inst,tp_inst);}},onChangeMonthYear:function(year,month,dp_inst){tp_inst._updateDateTime(dp_inst);if($.isFunction(tp_inst._defaults.evnts.onChangeMonthYear)){tp_inst._defaults.evnts.onChangeMonthYear.call($input[0],year,month,dp_inst,tp_inst);}},onClose:function(dateText,dp_inst){if(tp_inst.timeDefined===true&&$input.val()!==''){tp_inst._updateDateTime(dp_inst);}\nif($.isFunction(tp_inst._defaults.evnts.onClose)){tp_inst._defaults.evnts.onClose.call($input[0],dateText,dp_inst,tp_inst);}}};for(i in overrides){if(overrides.hasOwnProperty(i)){fns[i]=opts[i]||null;}}\ntp_inst._defaults=$.extend({},this._defaults,inlineSettings,opts,overrides,{evnts:fns,timepicker:tp_inst});tp_inst.amNames=$.map(tp_inst._defaults.amNames,function(val){return val.toUpperCase();});tp_inst.pmNames=$.map(tp_inst._defaults.pmNames,function(val){return val.toUpperCase();});tp_inst.support=detectSupport(tp_inst._defaults.timeFormat+\n(tp_inst._defaults.pickerTimeFormat?tp_inst._defaults.pickerTimeFormat:'')+\n(tp_inst._defaults.altTimeFormat?tp_inst._defaults.altTimeFormat:''));if(typeof(tp_inst._defaults.controlType)==='string'){if(tp_inst._defaults.controlType==='slider'&&typeof($.ui.slider)==='undefined'){tp_inst._defaults.controlType='select';}\ntp_inst.control=tp_inst._controls[tp_inst._defaults.controlType];}\nelse{tp_inst.control=tp_inst._defaults.controlType;}\nvar timezoneList=[-720,-660,-600,-570,-540,-480,-420,-360,-300,-270,-240,-210,-180,-120,-60,0,60,120,180,210,240,270,300,330,345,360,390,420,480,525,540,570,600,630,660,690,720,765,780,840];if(tp_inst._defaults.timezoneList!==null){timezoneList=tp_inst._defaults.timezoneList;}\nvar tzl=timezoneList.length,tzi=0,tzv=null;if(tzl>0&&typeof timezoneList[0]!=='object'){for(;tzi<tzl;tzi++){tzv=timezoneList[tzi];timezoneList[tzi]={value:tzv,label:$.timepicker.timezoneOffsetString(tzv,tp_inst.support.iso8601)};}}\ntp_inst._defaults.timezoneList=timezoneList;tp_inst.timezone=tp_inst._defaults.timezone!==null?$.timepicker.timezoneOffsetNumber(tp_inst._defaults.timezone):((new Date()).getTimezoneOffset()*-1);tp_inst.hour=tp_inst._defaults.hour<tp_inst._defaults.hourMin?tp_inst._defaults.hourMin:tp_inst._defaults.hour>tp_inst._defaults.hourMax?tp_inst._defaults.hourMax:tp_inst._defaults.hour;tp_inst.minute=tp_inst._defaults.minute<tp_inst._defaults.minuteMin?tp_inst._defaults.minuteMin:tp_inst._defaults.minute>tp_inst._defaults.minuteMax?tp_inst._defaults.minuteMax:tp_inst._defaults.minute;tp_inst.second=tp_inst._defaults.second<tp_inst._defaults.secondMin?tp_inst._defaults.secondMin:tp_inst._defaults.second>tp_inst._defaults.secondMax?tp_inst._defaults.secondMax:tp_inst._defaults.second;tp_inst.millisec=tp_inst._defaults.millisec<tp_inst._defaults.millisecMin?tp_inst._defaults.millisecMin:tp_inst._defaults.millisec>tp_inst._defaults.millisecMax?tp_inst._defaults.millisecMax:tp_inst._defaults.millisec;tp_inst.microsec=tp_inst._defaults.microsec<tp_inst._defaults.microsecMin?tp_inst._defaults.microsecMin:tp_inst._defaults.microsec>tp_inst._defaults.microsecMax?tp_inst._defaults.microsecMax:tp_inst._defaults.microsec;tp_inst.ampm='';tp_inst.$input=$input;if(tp_inst._defaults.altField){tp_inst.$altInput=$(tp_inst._defaults.altField).css({cursor:'pointer'}).focus(function(){$input.trigger(\"focus\");});}\nif(tp_inst._defaults.minDate===0||tp_inst._defaults.minDateTime===0){tp_inst._defaults.minDate=new Date();}\nif(tp_inst._defaults.maxDate===0||tp_inst._defaults.maxDateTime===0){tp_inst._defaults.maxDate=new Date();}
2\nif(tp_inst._defaults.minDate!==undefined&&tp_inst._defaults.minDate instanceof Date){tp_inst._defaults.minDateTime=new Date(tp_inst._defaults.minDate.getTime());}\nif(tp_inst._defaults.minDateTime!==undefined&&tp_inst._defaults.minDateTime instanceof Date){tp_inst._defaults.minDate=new Date(tp_inst._defaults.minDateTime.getTime());}\nif(tp_inst._defaults.maxDate!==undefined&&tp_inst._defaults.maxDate instanceof Date){tp_inst._defaults.maxDateTime=new Date(tp_inst._defaults.maxDate.getTime());}\nif(tp_inst._defaults.maxDateTime!==undefined&&tp_inst._defaults.maxDateTime instanceof Date){tp_inst._defaults.maxDate=new Date(tp_inst._defaults.maxDateTime.getTime());}\ntp_inst.$input.bind('focus',function(){tp_inst._onFocus();});return tp_inst;},_addTimePicker:function(dp_inst){var currDT=(this.$altInput&&this._defaults.altFieldTimeOnly)?this.$input.val()+' '+this.$altInput.val():this.$input.val();this.timeDefined=this._parseTime(currDT);this._limitMinMaxDateTime(dp_inst,false);this._injectTimePicker();},_parseTime:function(timeString,withDate){if(!this.inst){this.inst=$.datepicker._getInst(this.$input[0]);}\nif(withDate||!this._defaults.timeOnly){var dp_dateFormat=$.datepicker._get(this.inst,'dateFormat');try{var parseRes=parseDateTimeInternal(dp_dateFormat,this._defaults.timeFormat,timeString,$.datepicker._getFormatConfig(this.inst),this._defaults);if(!parseRes.timeObj){return false;}\n$.extend(this,parseRes.timeObj);}catch(err){$.timepicker.log(\"Error parsing the date/time string: \"+err+\"\\ndate/time string = \"+timeString+\"\\ntimeFormat = \"+this._defaults.timeFormat+\"\\ndateFormat = \"+dp_dateFormat);return false;}\nreturn true;}else{var timeObj=$.datepicker.parseTime(this._defaults.timeFormat,timeString,this._defaults);if(!timeObj){return false;}\n$.extend(this,timeObj);return true;}},_injectTimePicker:function(){var $dp=this.inst.dpDiv,o=this.inst.settings,tp_inst=this,litem='',uitem='',show=null,max={},gridSize={},size=null,i=0,l=0;if($dp.find(\"div.ui-timepicker-div\").length===0&&o.showTimepicker){var noDisplay=' style=\"display:none;\"',html='<div class=\"ui-timepicker-div'+(o.isRTL?' ui-timepicker-rtl':'')+'\"><dl>'+'<dt class=\"ui_tpicker_time_label\"'+((o.showTime)?'':noDisplay)+'>'+o.timeText+'</dt>'+'<dd class=\"ui_tpicker_time\"'+((o.showTime)?'':noDisplay)+'></dd>';for(i=0,l=this.units.length;i<l;i++){litem=this.units[i];uitem=litem.substr(0,1).toUpperCase()+litem.substr(1);show=o['show'+uitem]!==null?o['show'+uitem]:this.support[litem];max[litem]=parseInt((o[litem+'Max']-((o[litem+'Max']-o[litem+'Min'])%o['step'+uitem])),10);gridSize[litem]=0;html+='<dt class=\"ui_tpicker_'+litem+'_label\"'+(show?'':noDisplay)+'>'+o[litem+'Text']+'</dt>'+'<dd class=\"ui_tpicker_'+litem+'\"><div class=\"ui_tpicker_'+litem+'_slider\"'+(show?'':noDisplay)+'></div>';if(show&&o[litem+'Grid']>0){html+='<div style=\"padding-left: 1px\"><table class=\"ui-tpicker-grid-label\"><tr>';if(litem==='hour'){for(var h=o[litem+'Min'];h<=max[litem];h+=parseInt(o[litem+'Grid'],10)){gridSize[litem]++;var tmph=$.datepicker.formatTime(this.support.ampm?'hht':'HH',{hour:h},o);html+='<td data-for=\"'+litem+'\">'+tmph+'</td>';}}else{for(var m=o[litem+'Min'];m<=max[litem];m+=parseInt(o[litem+'Grid'],10)){gridSize[litem]++;html+='<td data-for=\"'+litem+'\">'+((m<10)?'0':'')+m+'</td>';}}\nhtml+='</tr></table></div>';}
vendor: 4,191 bytes, line 2
2\nhtml+='</dd>';}\nvar showTz=o.showTimezone!==null?o.showTimezone:this.support.timezone;html+='<dt class=\"ui_tpicker_timezone_label\"'+(showTz?'':noDisplay)+'>'+o.timezoneText+'</dt>';html+='<dd class=\"ui_tpicker_timezone\" '+(showTz?'':noDisplay)+'></dd>';html+='</dl></div>';var $tp=$(html);if(o.timeOnly===true){$tp.prepend('<div class=\"ui-widget-header ui-helper-clearfix ui-corner-all\">'+'<div class=\"ui-datepicker-title\">'+o.timeOnlyTitle+'</div>'+'</div>');$dp.find('.ui-datepicker-header, .ui-datepicker-calendar').hide();}\nfor(i=0,l=tp_inst.units.length;i<l;i++){litem=tp_inst.units[i];uitem=litem.substr(0,1).toUpperCase()+litem.substr(1);show=o['show'+uitem]!==null?o['show'+uitem]:this.support[litem];tp_inst[litem+'_slider']=tp_inst.control.create(tp_inst,$tp.find('.ui_tpicker_'+litem+'_slider'),litem,tp_inst[litem],o[litem+'Min'],max[litem],o['step'+uitem]);if(show&&o[litem+'Grid']>0){size=100*gridSize[litem]*o[litem+'Grid']/(max[litem]-o[litem+'Min']);$tp.find('.ui_tpicker_'+litem+' table').css({width:size+\"%\",marginLeft:o.isRTL?'0':((size /(-2*gridSize[litem]))+\"%\"),marginRight:o.isRTL?((size /(-2*gridSize[litem]))+\"%\"):'0',borderCollapse:'collapse'}).find(\"td\").click(function(e){var $t=$(this),h=$t.html(),n=parseInt(h.replace(/[^0-9]/g),10),ap=h.replace(/[^apm]/ig),f=$t.data('for');if(f==='hour'){if(ap.indexOf('p')!==-1&&n<12){n+=12;}else{if(ap.indexOf('a')!==-1&&n===12){n=0;}}}\ntp_inst.control.value(tp_inst,tp_inst[f+'_slider'],litem,n);tp_inst._onTimeChange();tp_inst._onSelectHandler();}).css({cursor:'pointer',width:(100 / gridSize[litem])+'%',textAlign:'center',overflow:'hidden'});}}\nthis.timezone_select=$tp.find('.ui_tpicker_timezone').append('<select></select>').find(\"select\");$.fn.append.apply(this.timezone_select,$.map(o.timezoneList,function(val,idx){return $(\"<option />\").val(typeof val===\"object\"?val.value:val).text(typeof val===\"object\"?val.label:val);}));if(typeof(this.timezone)!==\"undefined\"&&this.timezone!==null&&this.timezone!==\"\"){var local_timezone=(new Date(this.inst.selectedYear,this.inst.selectedMonth,this.inst.selectedDay,12)).getTimezoneOffset()*-1;if(local_timezone===this.timezone){selectLocalTimezone(tp_inst);}else{this.timezone_select.val(this.timezone);}}else{if(typeof(this.hour)!==\"undefined\"&&this.hour!==null&&this.hour!==\"\"){this.timezone_select.val(o.timezone);}else{selectLocalTimezone(tp_inst);}}\nthis.timezone_select.change(function(){tp_inst._onTimeChange();tp_inst._onSelectHandler();});var $buttonPanel=$dp.find('.ui-datepicker-buttonpane');if($buttonPanel.length){$buttonPanel.before($tp);}else{$dp.append($tp);}\nthis.$timeObj=$tp.find('.ui_tpicker_time');if(this.inst!==null){var timeDefined=this.timeDefined;this._onTimeChange();this.timeDefined=timeDefined;}\nif(this._defaults.addSliderAccess){var sliderAccessArgs=this._defaults.sliderAccessArgs,rtl=this._defaults.isRTL;sliderAccessArgs.isRTL=rtl;setTimeout(function(){if($tp.find('.ui-slider-access').length===0){$tp.find('.ui-slider:visible').sliderAccess(sliderAccessArgs);var sliderAccessWidth=$tp.find('.ui-slider-access:eq(0)').outerWidth(true);if(sliderAccessWidth){$tp.find('table:visible').each(function(){var $g=$(this),oldWidth=$g.outerWidth(),oldMarginLeft=$g.css(rtl?'marginRight':'marginLeft').toString().replace('%',''),newWidth=oldWidth-sliderAccessWidth,newMarginLeft=((oldMarginLeft*newWidth)/ oldWidth)+'%',css={width:newWidth,marginRight:0,marginLeft:0};css[rtl?'marginRight':'marginLeft']=newMarginLeft;$g.css(css);});}}},10);}\ntp_inst._limitMinMaxDateTime(this.inst,true);}},_limitMinMaxDateTime:function(dp_inst,adjustSliders){var o=this._defaults,dp_date=new Date(dp_inst.selectedYear,dp_inst.selectedMonth,dp_inst.selectedDay);if(!this._defaults.showTimepicker){return;}\nif($.datepicker._get(dp_inst,'minDateTime')!==null&&$.datepicker._get(dp_inst,'minDateTime')!==undefined&&dp_date){var minDateTime=$.datepicker._get(dp_inst,'minDateTime'),minDateTimeDate=new Date(minDateTime.getFullYear(),minDateTime.getMonth(),minDateTime.getDate(),0,0,0,0);if(this.hourMinOriginal===null||this.minuteMinOriginal===null||this.secondMinOriginal===null||this.millisecMinOriginal===null||this.microsec
2MinOriginal===null){this.hourMinOriginal=o.hourMin;this.minuteMinOriginal=o.minuteMin;this.secondMinOriginal=o.secondMin;this.millisecMinOriginal=o.millisecMin;this.microsecMinOriginal=o.microsecMin;}\nif(dp_inst.settings.timeOnly||minDateTimeDate.getTime()===dp_date.getTime()){this._defaults.hourMin=minDateTime.getHours();if(this.hour<=this._defaults.hourMin){this.hour=this._defaults.hourMin;this._defaults.minuteMin=minDateTime.getMinutes();if(this.minute<=this._defaults.minuteMin){this.minute=this._defaults.minuteMin;this._defaults.secondMin=minDateTime.getSeconds();if(this.second<=this._defaults.secondMin){this.second=this._defaults.secondMin;this._defaults.millisecMin=minDateTime.getMilliseconds();if(this.millisec<=this._defaults.millisecMin){this.millisec=this._defaults.millisecMin;this._defaults.microsecMin=minDateTime.getMicroseconds();}else{if(this.microsec<this._defaults.microsecMin){this.microsec=this._defaults.microsecMin;}\nthis._defaults.microsecMin=this.microsecMinOriginal;}}else{this._defaults.millisecMin=this.millisecMinOriginal;this._defaults.microsecMin=this.microsecMinOriginal;}}else{this._defaults.secondMin=this.secondMinOriginal;this._defaults.millisecMin=this.millisecMinOriginal;this._defaults.microsecMin=this.microsecMinOriginal;}}else{this._defaults.minuteMin=this.minuteMinOriginal;this._defaults.secondMin=this.secondMinOriginal;this._defaults.millisecMin=this.millisecMinOriginal;this._defaults.microsecMin=this.microsecMinOriginal;}}else{this._defaults.hourMin=this.hourMinOriginal;this._defaults.minuteMin=this.minuteMinOriginal;this._defaults.secondMin=this.secondMinOriginal;this._defaults.millisecMin=this.millisecMinOriginal;this._defaults.microsecMin=this.microsecMinOriginal;}}\nif($.datepicker._get(dp_inst,'maxDateTime')!==null&&$.datepicker._get(dp_inst,'maxDateTime')!==undefined&&dp_date){var maxDateTime=$.datepicker._get(dp_inst,'maxDateTime'),maxDateTimeDate=new Date(maxDateTime.getFullYear(),maxDateTime.getMonth(),maxDateTime.getDate(),0,0,0,0);if(this.hourMaxOriginal===null||this.minuteMaxOriginal===null||this.secondMaxOriginal===null||this.millisecMaxOriginal===null){this.hourMaxOriginal=o.hourMax;this.minuteMaxOriginal=o.minuteMax;this.secondMaxOriginal=o.secondMax;this.millisecMaxOriginal=o.millisecMax;this.microsecMaxOriginal=o.microsecMax;}\nif(dp_inst.settings.timeOnly||maxDateTimeDate.getTime()===dp_date.getTime()){this._defaults.hourMax=maxDateTime.getHours();if(this.hour>=this._defaults.hourMax){this.hour=this._defaults.hourMax;this._defaults.minuteMax=maxDateTime.getMinutes();if(this.minute>=this._defaults.minuteMax){this.minute=this._defaults.minuteMax;this._defaults.secondMax=maxDateTime.getSeconds();if(this.second>=this._defaults.secondMax){this.second=this._defaults.secondMax;this._defaults.millisecMax=maxDateTime.getMilliseconds();if(this.millisec>=this._defaults.millisecMax){this.millisec=this._defaults.millisecMax;this._defaults.microsecMax=maxDateTime.getMicroseconds();}else{if(this.microsec>this._defaults.microsecMax){this.microsec=this._defaults.microsecMax;}\nthis._defaults.microsecMax=this.microsecMaxOriginal;}}else{this._defaults.millisecMax=this.millisecMaxOriginal;this._defaults.microsecMax=this.microsecMaxOriginal;}}else{this._defaults.secondMax=this.secondMaxOriginal;this._defaults.millisecMax=this.millisecMaxOriginal;this._defaults.microsecMax=this.microsecMaxOriginal;}}else{this._defaults.minuteMax=this.minuteMaxOriginal;this._defaults.secondMax=this.secondMaxOriginal;this._defaults.millisecMax=this.millisecMaxOriginal;this._defaults.microsecMax=this.microsecMaxOriginal;}}else{this._defaults.hourMax=this.hourMaxOriginal;this._defaults.minuteMax=this.minuteMaxOriginal;this._defaults.secondMax=this.secondMaxOriginal;this._defaults.millisecMax=this.millisecMaxOriginal;this._defaults.microsecMax=this.microsecMaxOriginal;}}\nif(adjustSliders!==undefined&&adjustSliders===true){var hourMax=parseInt((this._defaults.hourMax-((this._defaults.hourMax-this._defaults.hourMin)%this._defaults.stepHour)),10),minMax=parseInt((this._defaults.minuteMax-((this._defaults.minuteMax-this._defaults.minuteMin)%this._defaults.stepMinute)),10),secMax=parseInt((this._defaults.secondMax-((this._defaults.secondMax-this._defaults.secondMin)%this._defaults.stepSecond)),10),millisecMax=p
2arseInt((this._defaults.millisecMax-((this._defaults.millisecMax-this._defaults.millisecMin)%this._defaults.stepMillisec)),10),microsecMax=parseInt((this._defaults.microsecMax-((this._defaults.microsecMax-this._defaults.microsecMin)%this._defaults.stepMicrosec)),10);if(this.hour_slider){this.control.options(this,this.hour_slider,'hour',{min:this._defaults.hourMin,max:hourMax});this.control.value(this,this.hour_slider,'hour',this.hour-(this.hour%this._defaults.stepHour));}\nif(this.minute_slider){this.control.options(this,this.minute_slider,'minute',{min:this._defaults.minuteMin,max:minMax});this.control.value(this,this.minute_slider,'minute',this.minute-(this.minute%this._defaults.stepMinute));}\nif(this.second_slider){this.control.options(this,this.second_slider,'second',{min:this._defaults.secondMin,max:secMax});this.control.value(this,this.second_slider,'second',this.second-(this.second%this._defaults.stepSecond));}\nif(this.millisec_slider){this.control.options(this,this.millisec_slider,'millisec',{min:this._defaults.millisecMin,max:millisecMax});this.control.value(this,this.millisec_slider,'millisec',this.millisec-(this.millisec%this._defaults.stepMillisec));}\nif(this.microsec_slider){this.control.options(this,this.microsec_slider,'microsec',{min:this._defaults.microsecMin,max:microsecMax});this.control.value(this,this.microsec_slider,'microsec',this.microsec-(this.microsec%this._defaults.stepMicrosec));}}},_onTimeChange:function(){if(!this._defaults.showTimepicker){return;}\nvar hour=(this.hour_slider)?this.control.value(this,this.hour_slider,'hour'):false,minute=(this.minute_slider)?this.control.value(this,this.minute_slider,'minute'):false,second=(this.second_slider)?this.control.value(this,this.second_slider,'second'):false,millisec=(this.millisec_slider)?this.control.value(this,this.millisec_slider,'millisec'):false,microsec=(this.microsec_slider)?this.control.value(this,this.microsec_slider,'microsec'):false,timezone=(this.timezone_select)?this.timezone_select.val():false,o=this._defaults,pickerTimeFormat=o.pickerTimeFormat||o.timeFormat,pickerTimeSuffix=o.pickerTimeSuffix||o.timeSuffix;if(typeof(hour)==='object'){hour=false;}\nif(typeof(minute)==='object'){minute=false;}\nif(typeof(second)==='object'){second=false;}\nif(typeof(millisec)==='object'){millisec=false;}\nif(typeof(microsec)==='object'){microsec=false;}\nif(typeof(timezone)==='object'){timezone=false;}\nif(hour!==false){hour=parseInt(hour,10);}\nif(minute!==false){minute=parseInt(minute,10);}\nif(second!==false){second=parseInt(second,10);}\nif(millisec!==false){millisec=parseInt(millisec,10);}\nif(microsec!==false){microsec=parseInt(microsec,10);}\nif(timezone!==false){timezone=timezone.toString();}\nvar ampm=o[hour<12?'amNames':'pmNames'][0];var hasChanged=(hour!==parseInt(this.hour,10)||minute!==parseInt(this.minute,10)||second!==parseInt(this.second,10)||millisec!==parseInt(this.millisec,10)||microsec!==parseInt(this.microsec,10)||(this.ampm.length>0&&(hour<12)!==($.inArray(this.ampm.toUpperCase(),this.amNames)!==-1))||(this.timezone!==null&&timezone!==this.timezone.toString()));if(hasChanged){if(hour!==false){this.hour=hour;}\nif(minute!==false){this.minute=minute;}\nif(second!==false){this.second=second;}\nif(millisec!==false){this.millisec=millisec;}\nif(microsec!==false){this.microsec=microsec;}\nif(timezone!==false){this.timezone=timezone;}\nif(!this.inst){this.inst=$.datepicker._getInst(this.$input[0]);}\nthis._limitMinMaxDateTime(this.inst,true);}\nif(this.support.ampm){this.ampm=ampm;}\nthis.formattedTime=$.datepicker.formatTime(o.timeFormat,this,o);if(this.$timeObj){if(pickerTimeFormat===o.timeFormat){this.$timeObj.text(this.formattedTime+pickerTimeSuffix);}else{this.$timeObj.text($.datepicker.formatTime(pickerTimeFormat,this,o)+pickerTimeSuffix);}}\nthis.timeDefined=true;if(hasChanged){this._updateDateTime();this.$input.focus();}},_onSelectHandler:function(){var onSelect=this._defaults.onSelect||this.inst.settings.onSelect;var inputEl=this.$input?this.$input[0]:null;if(onSelect&&inputEl){onSelect.apply(inputEl,[this.formattedDateTime,this]);}},_updateDateTime:function(dp_inst){dp_inst=this.inst||dp_inst;var dtTmp=(dp_inst.currentYear>0?new Date(dp_inst.currentYear,dp_inst.currentMonth,dp_inst.currentDay):new Date(dp_inst.selectedYear,dp_inst.selectedMonth,dp_inst.selectedDay)),dt=$.datepicker._daylightSavingAdjust(dtTmp),dateFmt=$.datepicker._get(dp_inst,'dateFormat'),formatCfg=$.datepicker._getFormatConfig(dp_inst),timeAvailable=dt!==null&&this.timeDefined;this.formattedDate=$.datepicker.formatDate(dateFmt,(dt===null?new Date():dt),formatCfg);var formattedDateTime=this.formattedDate;if(dp_inst.lastVal===\"\"){dp_inst.currentYear=dp_inst.selectedYear;dp_inst.currentMonth=dp_inst.selectedMonth;dp_inst.currentDay=dp_inst.selectedDay;}\nif(this._defaults.timeOnly===true){formattedDateTime=this.formattedTime;}else if(this._defaults.timeOnly!==true&&(this._defaults.alwaysSetTime||timeAvailable)){formattedDateTime+=this._defaults.separator+this.formattedTime+this._defaults.timeSuffix;}\nthis.formattedDateTime=formattedDateTime;if(!this._defaults.showTimepicker){this.$input.val(this.formattedDate);}else if(this.$altInput&&this._defaults.timeOnly===false&&this._defaults.altFieldTimeOnly===true){this.$altInput.val(this.formattedTime);this.$input.val(this.formattedDate);}else if(this.$altInput){this.$input.val(formattedDateTime);var altFormattedDateTime='',altSeparator=this._defaults.altSeparator?this._defaults.altSeparator:this._defaults.separator,altTimeSuffix=this._defaults.altTimeSuffix?this._defaults.altTimeSuffix:this._defaults.timeSuffix;if(!this._defaults.timeOnly){if(this._defaults.altFormat){altFormattedDateTime=$.datepicker.formatDate(this._defaults.altFormat,(dt===null?new Date():dt),formatCfg);}else{altFormattedDateTime=this.formattedDate;}\nif(altFormattedDateTime){altFormattedDateTime+=altSeparator;}}\nif(this._defaults.altTimeFormat){altFormattedDateTime+=$.datepicker.formatTime(this._defaults.altTimeFormat,this,this._defaults)+altTimeSuffix;}else{altFormattedDateTime+=this.formattedTime+altTimeSuffix;}\nthis.$altInput.val(altFormattedDateTime);}else{this.$input.val(formattedDateTime);}\nthis.$input.trigger(\"change\");},_onFocus:function(){if(!this.$input.val()&&this._defaults.defaultValue){this.$input.val(this._defaults.defaultValue);var inst=$.datepicker._getInst(this.$input.get(0)),tp_inst=$.datepicker._get(inst,'t
2imepicker');if(tp_inst){if(tp_inst._defaults.timeOnly&&(inst.input.val()!==inst.lastVal)){try{$.datepicker._updateDatepicker(inst);}catch(err){$.timepicker.log(err);}}}}},_controls:{slider:{create:function(tp_inst,obj,unit,val,min,max,step){var rtl=tp_inst._defaults.isRTL;return obj.prop('slide',null).slider({orientation:\"horizontal\",value:rtl?val*-1:val,min:rtl?max*-1:min,max:rtl?min*-1:max,step:step,slide:function(event,ui){tp_inst.control.value(tp_inst,$(this),unit,rtl?ui.value*-1:ui.value);tp_inst._onTimeChange();},stop:function(event,ui){tp_inst._onSelectHandler();}});},options:function(tp_inst,obj,unit,opts,val){if(tp_inst._defaults.isRTL){if(typeof(opts)==='string'){if(opts==='min'||opts==='max'){if(val!==undefined){return obj.slider(opts,val*-1);}\nreturn Math.abs(obj.slider(opts));}\nreturn obj.slider(opts);}\nvar min=opts.min,max=opts.max;opts.min=opts.max=null;if(min!==undefined){opts.max=min*-1;}\nif(max!==undefined){opts.min=max*-1;}\nreturn obj.slider(opts);}\nif(typeof(opts)==='string'&&val!==undefined){return obj.slider(opts,val);}\nreturn obj.slider(opts);},value:function(tp_inst,obj,unit,val){if(tp_inst._defaults.isRTL){if(val!==undefined){return obj.slider('value',val*-1);}\nreturn Math.abs(obj.slider('value'));}\nif(val!==undefined){return obj.slider('value',val);}\nreturn obj.slider('value');}},select:{create:function(tp_inst,obj,unit,val,min,max,step){var sel='<select class=\"ui-timepicker-select\" data-unit=\"'+unit+'\" data-min=\"'+min+'\" data-max=\"'+max+'\" data-step=\"'+step+'\">',format=tp_inst._defaults.pickerTimeFormat||tp_inst._defaults.timeFormat;for(var i=min;i<=max;i+=step){sel+='<option value=\"'+i+'\"'+(i===val?' selected':'')+'>';if(unit==='hour'){sel+=$.datepicker.formatTime($.trim(format.replace(/[^ht ]/ig,'')),{hour:i},tp_inst._defaults);}else if(unit==='millisec'||unit==='microsec'||i>=10){sel+=i;}else{sel+='0'+i.toString();}\nsel+='</option>';}\nsel+='</select>';obj.children('select').remove();$(sel).appendTo(obj).change(function(e){tp_inst._onTimeChange();tp_inst._onSelectHandler();});return obj;},options:function(tp_inst,obj,unit,opts,val){var o={},$t=obj.children('select');if(typeof(opts)==='string'){if(val===undefined){return $t.data(opts);}\no[opts]=val;}else{o=opts;}\nreturn tp_inst.control.create(tp_inst,obj,$t.data('unit'),$t.val(),o.min||$t.data('min'),o.max||$t.data('max'),o.step||$t.data('step'));},value:function(tp_inst,obj,unit,val){var $t=obj.children('select');if(val!==undefined){return $t.val(val);}\nreturn $t.val();}}}});$.fn.extend({timepicker:function(o){o=o||{};var tmp_args=Array.prototype.slice.call(arguments);if(typeof o==='object'){tmp_args[0]=$.extend(o,{timeOnly:true});}\nreturn $(this).each(function(){$.fn.datetimepicker.apply($(this),tmp_args);});},datetimepicker:function(o){o=o||{};var tmp_args=arguments;if(typeof(o)==='string'){if(o==='getDate'){return $.fn.datepicker.apply($(this[0]),tmp_args);}else{return this.each(function(){var $t=$(this);$t.datepicker.apply($t,tmp_args);});}}else{return this.each(function(){var $t=$(this);$t.datepicker($.timepicker._newInst($t,o)._defaults);});}}});$.datepicker.parseDateTime=function(dateFormat,timeFormat,dateTimeString,dateSettings,timeSettings){var parseRes=parseDateTimeInternal(dateFormat,timeFormat,dateTimeString,dateSettings,timeSettings);if(parseRes.timeObj){var t=parseRes.timeObj;parseRes.date.setHours(t.hour,t.minute,t.second,t.millisec);parseRes.date.setMicroseconds(t.microsec);}\nreturn parseRes.date;};$.datepicker.parseTime=function(timeFormat,timeString,options){var o=extendRemove(extendRemove({},$.timepicker._defaults),options||{}),iso8601=(timeFormat.replace(/\\'.*?\\'/g,'').indexOf('Z')!==-1);var strictParse=function(f,s,o){var getPatternAmpm=function(amNames,pmNames){var markers=[];if(amNames){$.merge(markers,amNames);}\nif(pmNames){$.merge(markers,pmNames);}\nmarkers=$.map(markers,function(val){return val.replace(/[.*+?|()\\[\\]{}\\\\]/g,'\\\\$&');});return'('+markers.join('|')+')?';};var getFormatPositions=function(timeFormat){var finds=timeFormat.toLowerCase().match(/(h{1,2}|m{1,2}|s{1,2}|l{1}|c{1}|t{1,2}|z|'.*?')/g),orders={h:-1,m:-1,s:-1,l:-1,c:-1,t:-1,z:-1};if(finds){for(var i=0;i<finds.length;i++){if(orders[finds[i].toString().charAt(0)]===-1){orders[finds[i].toString().charAt(0)]=i+1;}}}\nreturn orders;};var regstr='^'+f.toString().replace(/([hH]{1,2}|mm?|ss?|[tT]{1,2}|[zZ]|[lc]|'.*?')/g,function(match){var ml=match.length;switch(match.charAt(0).toLowerCase()){case'h':return ml===1?'(\\\\d?\\\\d)':'(\\\\d{'+ml+'})';case'm':return ml===1?'(\\\\d?\\\\d)':'(\\\\d{'+ml+'})';case's':return ml===1?'(\\\\d?\\\\d)':'(\\\\d{'+ml+'})';case'l':return'(\\\\d?\\\\d?\\\\d)';case'c':return'(\\\\d?\\\\d?\\\\d)';case'z':return'(z|[-+]\\\\d\\\\d:?\\\\d\\\\d|\\\\S+)?';case't':return getPatternAmpm(o.amNames,o.pmNames);default:return'('+match.replace(/\\'/g,\"\").replace(/(\\.|\\$|\\^|\\\\|\\/|\\(|\\)|\\[|\\]|\\?|\\+|\\*)/g,function(m){return\"\\\\\"+m;})+')?';}}).replace(/\\s/g,'\\\\s?')+\no.timeSuffix+'$',order=getFormatPositions(f),ampm='',treg;treg=s.match(new RegExp(regstr,'i'));var resTime={hour:0,minute:0,second:0,millisec:0,microsec:0};if(treg){if(order.t!==-1){if(treg[order.t]===undefined||treg[order.t].length===0){ampm='';resTime.ampm='';}else{ampm=$.inArray(treg[order.t].toUpperCase(),o.amNames)!==-1?'AM':'PM';
2resTime.ampm=o[ampm==='AM'?'amNames':'pmNames'][0];}}\nif(order.h!==-1){if(ampm==='AM'&&treg[order.h]==='12'){resTime.hour=0;}else{if(ampm==='PM'&&treg[order.h]!=='12'){resTime.hour=parseInt(treg[order.h],10)+12;}else{resTime.hour=Number(treg[order.h]);}}}\nif(order.m!==-1){resTime.minute=Number(treg[order.m]);}\nif(order.s!==-1){resTime.second=Number(treg[order.s]);}\nif(order.l!==-1){resTime.millisec=Number(treg[order.l]);}\nif(order.c!==-1){resTime.microsec=Number(treg[order.c]);}\nif(order.z!==-1&&treg[order.z]!==undefined){resTime.timezone=$.timepicker.timezoneOffsetNumber(treg[order.z]);}\nreturn resTime;}\nreturn false;};var looseParse=function(f,s,o){try{var d=new Date('2012-01-01 '+s);if(isNaN(d.getTime())){d=new Date('2012-01-01T'+s);if(isNaN(d.getTime())){d=new Date('01/01/2012 '+s);if(isNaN(d.getTime())){throw\"Unable to parse time with native Date: \"+s;}}}\nreturn{hour:d.getHours(),minute:d.getMinutes(),second:d.getSeconds(),millisec:d.getMilliseconds(),microsec:d.getMicroseconds(),timezone:d.getTimezoneOffset()*-1};}catch(err){try{return strictParse(f,s,o);}catch(err2){$.timepicker.log(\"Unable to parse \\ntimeString: \"+s+\"\\ntimeFormat: \"+f);}}\nreturn false;};if(typeof o.parse===\"function\"){return o.parse(timeFormat,timeString,o);}\nif(o.parse==='loose'){return looseParse(timeFormat,timeString,o);}\nreturn strictParse(timeFormat,timeString,o);};$.datepicker.formatTime=function(format,time,options){options=options||{};options=$.extend({},$.timepicker._defaults,options);time=$.extend({hour:0,minute:0,second:0,millisec:0,microsec:0,timezone:null},time);var tmptime=format,ampmName=options.amNames[0],hour=parseInt(time.hour,10);if(hour>11){ampmName=options.pmNames[0];}\ntmptime=tmptime.replace(/(?:HH?|hh?|mm?|ss?|[tT]{1,2}|[zZ]|[lc]|'.*?')/g,function(match){switch(match){case'HH':return('0'+hour).slice(-2);case'H':return hour;case'hh':return('0'+convert24to12(hour)).slice(-2);case'h':return convert24to12(hour);case'mm':return('0'+time.minute).slice(-2);case'm':return time.minute;case'ss':return('0'+time.second).slice(-2);case's':return time.second;case'l':return('00'+time.millisec).slice(-3);case'c':return('00'+time.microsec).slice(-3);case'z':return $.timepicker.timezoneOffsetString(time.timezone===null?options.timezone:time.timezone,false);case'Z':return $.timepicker.timezoneOffsetString(time.timezone===null?options.timezone:time.timezone,true);case'T':return ampmName.charAt(0).toUpperCase();case'TT':return ampmName.toUpperCase();case't':return ampmName.charAt(0).toLowerCase();case'tt':return ampmName.toLowerCase();default:return match.replace(/'/g,\"\");}});return tmptime;};$.datepicker._base_selectDate=$.datepicker._selectDate;$.datepicker._selectDate=function(id,dateStr){var inst=this._getInst($(id)[0]),tp_inst=this._get(inst,'timepicker');if(tp_inst){tp_inst._limitMinMaxDateTime(inst,true);inst.inline=inst.stay_open=true;this._base_selectDate(id,dateStr);inst.inline=inst.stay_open=false;this._notifyChange(inst);this._updateDatepicker(inst);}else{this._base_selectDate(id,dateStr);}};$.datepicker._base_updateDatepicker=$.datepicker._updateDatepicker;$.datepicker._updateDatepicker=function(inst){var input=inst.input[0];if($.datepicker._curInst&&$.datepicker._curInst!==inst&&$.datepicker._datepickerShowing&&$.datepicker._lastInput!==input){return;}\nif(typeof(inst.stay_open)!=='boolean'||inst.stay_open===false){this._base_updateDatepicker(inst);var tp_inst=this._get(inst,'timepicker');if(tp_inst){tp_inst._addTimePicker(inst);}}};$.datepicker._base_doKeyPress=$.datepicker._doKeyPress;$.datepicker._doKeyPress=function(event){var inst=$.datepicker._getInst(event.target),tp_inst=$.datepicker._get(inst,'timepicker');if(tp_inst){if($.datepicker._get(inst,'constrainInput')){var ampm=tp_inst.support.ampm,tz=tp_inst._defaults.showTimezone!==null?tp_inst._defaults.showTimezone:tp_inst.support.timezone,dateChars=$.datepicker._possibleChars($.datepicker._get(inst,'dateFormat')),datetimeChars=tp_inst._defaults.timeFormat.toString().replace(/[hms]/g,'').replace(/TT/g,ampm?'APM':'').replace(/Tt/g,ampm?'AaPpMm':'').replace(/tT/g,ampm?'AaPpMm':'').replace(/T/g,ampm?'AP':'').replace(/tt/g,ampm?'apm':'').replace(/t/g,ampm?'ap':'')+\" \"+tp_inst._defaults.separator+\ntp_inst._defaults.timeSuffix+\n(tz?tp_inst._defaults.timezoneList.join(''):'')+\n(tp_inst._defaults.amNames.join(''))+(tp_inst._defaults.pmNames.join(''))+\ndateChars,chr=String.fromCharCode(event.charCode===undefined?event.keyCode:event.charCode);return event.ctrlKey||(chr<' '||!dateChars||datetimeChars.indexOf(chr)>-1);}}\nreturn $.datepicker._base_doKeyPress(event);};$.datepicker._base_updateAlternate=$.datepicker._updateAlternate;$.datepicker._updateAlternate=function(inst){var tp_inst=this._get(inst,'t
2imepicker');if(tp_inst){var altField=tp_inst._defaults.altField;if(altField){var altFormat=tp_inst._defaults.altFormat||tp_inst._defaults.dateFormat,date=this._getDate(inst),formatCfg=$.datepicker._getFormatConfig(inst),altFormattedDateTime='',altSeparator=tp_inst._defaults.altSeparator?tp_inst._defaults.altSeparator:tp_inst._defaults.separator,altTimeSuffix=tp_inst._defaults.altTimeSuffix?tp_inst._defaults.altTimeSuffix:tp_inst._defaults.timeSuffix,altTimeFormat=tp_inst._defaults.altTimeFormat!==null?tp_inst._defaults.altTimeFormat:tp_inst._defaults.timeFormat;altFormattedDateTime+=$.datepicker.formatTime(altTimeFormat,tp_inst,tp_inst._defaults)+altTimeSuffix;if(!tp_inst._defaults.timeOnly&&!tp_inst._defaults.altFieldTimeOnly&&date!==null){if(tp_inst._defaults.altFormat){altFormattedDateTime=$.datepicker.formatDate(tp_inst._defaults.altFormat,date,formatCfg)+altSeparator+altFormattedDateTime;}else{altFormattedDateTime=tp_inst.formattedDate+altSeparator+altFormattedDateTime;}}\n$(altField).val(altFormattedDateTime);}}else{$.datepicker._base_updateAlternate(inst);}};$.datepicker._base_doKeyUp=$.datepicker._doKeyUp;$.datepicker._doKeyUp=function(event){var inst=$.datepicker._getInst(event.target),tp_inst=$.datepicker._get(inst,'timepicker');if(tp_inst){if(tp_inst._defaults.timeOnly&&(inst.input.val()!==inst.lastVal)){try{$.datepicker._updateDatepicker(inst);}catch(err){$.timepicker.log(err);}}}\nreturn $.datepicker._base_doKeyUp(event);};$.datepicker._base_gotoToday=$.datepicker._gotoToday;$.datepicker._gotoToday=function(id){var inst=this._getInst($(id)[0]),$dp=inst.dpDiv;this._base_gotoToday(id);var tp_inst=this._get(inst,'timepicker');selectLocalTimezone(tp_inst);var now=new Date();this._setTime(inst,now);$('.ui-datepicker-today',$dp).click();};$.datepicker._disableTimepickerDatepicker=function(target){var inst=this._getInst(target);if(!inst){return;}\nvar tp_inst=this._get(inst,'timepicker');$(target).datepicker('getDate');if(tp_inst){inst.settings.showTimepicker=false;tp_inst._defaults.showTimepicker=false;tp_inst._updateDateTime(inst);}};$.datepicker._enableTimepickerDatepicker=function(target){var inst=this._getInst(target);if(!inst){return;}\nvar tp_inst=this._get(inst,'timepicker');$(target).datepicker('getDate');if(tp_inst){inst.settings.showTimepicker=true;tp_inst._defaults.showTimepicker=true;tp_inst._addTimePicker(inst);tp_inst._updateDateTime(inst);}};$.datepicker._setTime=function(inst,date){var tp_inst=this._get(inst,'timepicker');if(tp_inst){var defaults=tp_inst._defaults;tp_inst.hour=date?date.getHours():defaults.hour;tp_inst.minute=date?date.getMinutes():defaults.minute;tp_inst.second=date?date.getSeconds():defaults.second;tp_inst.millisec=date?date.getMilliseconds():defaults.millisec;tp_inst.microsec=date?date.getMicroseconds():defaults.microsec;tp_inst._limitMinMaxDateTime(inst,true);tp_inst._onTimeChange();tp_inst._updateDateTime(inst);}};$.datepicker._setTimeDatepicker=function(target,date,withDate){var inst=this._getInst(target);if(!inst){return;}\nvar tp_inst=this._get(inst,'timepicker');if(tp_inst){this._setDateFromField(inst);var tp_date;if(date){if(typeof date===\"string\"){tp_inst._parseTime(date,withDate);tp_date=new Date();tp_date.setHours(tp_inst.hour,tp_inst.minute,tp_inst.second,tp_inst.millisec);tp_date.setMicroseconds(tp_inst.microsec);}else{tp_date=new Date(date.getTime());tp_date.setMicroseconds(date.getMicroseconds());}\nif(tp_date.toString()==='Invalid Date'){tp_date=undefined;}\nthis._setTime(inst,tp_date);}}};$.datepicker._base_setDateDatepicker=$.datepicker._setDateDatepicker;$.datepicker._setDateDatepicker=function(target,date){var inst=this._getInst(target);if(!inst){return;}\nif(typeof(date)==='string'){date=new Date(date);if(!date.getTime()){$.timepicker.log(\"Error creating Date object from string.\");}}\nvar tp_inst=this._get(inst,'timepicker');var tp_date;if(date instanceof Date){tp_date=new Date(date.getTime());tp_date.setMicroseconds(date.getMicroseconds());}else{tp_date=date;}\nif(tp_inst&&tp_date){if(!tp_inst.support.timezone&&tp_inst._defaults.timezone===null){tp_inst.timezone=tp_date.getTimezoneOffset()*-1;}\ndate=$.timepicker.timezoneAdjust(date,tp_inst.timezone);tp_date=$.timepicker.timezoneAdjust(tp_date,tp_inst.timezone);}\nthis._updateDatepicker(inst);this._base_setDateDatepicker.apply(this,arguments);this._setTimeDatepicker(target,tp_date,true);};$.datepicker._base_getDateDatepicker=$.datepicker._getDateDatepicker;$.datepicker._getDateDatepicker=function(target,noDefault){var inst=this._getInst(target);if(!inst){return;}
2\nvar tp_inst=this._get(inst,'timepicker');if(tp_inst){if(inst.lastVal===undefined){this._setDateFromField(inst,noDefault);}\nvar date=this._getDate(inst);if(date&&tp_inst._parseTime($(target).val(),tp_inst.timeOnly)){date.setHours(tp_inst.hour,tp_inst.minute,tp_inst.second,tp_inst.millisec);date.setMicroseconds(tp_inst.microsec);if(tp_inst.timezone!=null){if(!tp_inst.support.timezone&&tp_inst._defaults.timezone===null){tp_inst.timezone=date.getTimezoneOffset()*-1;}\ndate=$.timepicker.timezoneAdjust(date,tp_inst.timezone);}}\nreturn date;}\nreturn this._base_getDateDatepicker(target,noDefault);};$.datepicker._base_parseDate=$.datepicker.parseDate;$.datepicker.parseDate=function(format,value,settings){var date;try{date=this._base_parseDate(format,value,settings);}catch(err){if(err.indexOf(\":\")>=0){date=this._base_parseDate(format,value.substring(0,value.length-(err.length-err.indexOf(':')-2)),settings);$.timepicker.log(\"Error parsing the date string: \"+err+\"\\ndate string = \"+value+\"\\ndate format = \"+format);}else{throw err;}}\nreturn date;};$.datepicker._base_formatDate=$.datepicker._formatDate;$.datepicker._formatDate=function(inst,day,month,year){var tp_inst=this._get(inst,'timepicker');if(tp_inst){tp_inst._updateDateTime(inst);return tp_inst.$input.val();}\nreturn this._base_formatDate(inst);};$.datepicker._base_optionDatepicker=$.datepicker._optionDatepicker;$.datepicker._optionDatepicker=function(target,name,value){var inst=this._getInst(target),name_clone;if(!inst){return null;}\nvar tp_inst=this._get(inst,'timepicker');if(tp_inst){var min=null,max=null,onselect=null,overrides=tp_inst._defaults.evnts,fns={},prop;if(typeof name==='string'){if(name==='minDate'||name==='minDateTime'){min=value;}else if(name==='maxDate'||name==='maxDateTime'){max=value;}else if(name==='onSelect'){onselect=value;}else if(overrides.hasOwnProperty(name)){if(typeof(value)==='undefined'){return overrides[name];}\nfns[name]=value;name_clone={};}}else if(typeof name==='object'){if(name.minDate){min=name.minDate;}else if(name.minDateTime){min=name.minDateTime;}else if(name.maxDate){max=name.maxDate;}else if(name.maxDateTime){max=name.maxDateTime;}\nfor(prop in overrides){if(overrides.hasOwnProperty(prop)&&name[prop]){fns[prop]=name[prop];}}}\nfor(prop in fns){if(fns.hasOwnProperty(prop)){overrides[prop]=fns[prop];if(!name_clone){name_clone=$.extend({},name);}\ndelete name_clone[prop];}}\nif(name_clone&&isEmptyObject(name_clone)){return;}\nif(min){if(min===0){min=new Date();}else{min=new Date(min);}\ntp_inst._defaults.minDate=min;tp_inst._defaults.minDateTime=min;}else if(max){if(max===0){max=new Date();}else{max=new Date(max);}\ntp_inst._defaults.maxDate=max;tp_inst._defaults.maxDateTime=max;}else if(onselect){tp_inst._defaults.onSelect=onselect;}}\nif(value===undefined){return this._base_optionDatepicker.call($.datepicker,target,name);}\nreturn this._base_optionDatepicker.call($.datepicker,target,name_clone||name,value);};var isEmptyObject=function(obj){var prop;for(prop in obj){if(obj.hasOwnProperty(prop)){return false;}}\nreturn true;};var extendRemove=function(target,props){$.extend(target,props);for(var name in props){if(props[name]===null||props[name]===undefined){target[name]=props[name];}}\nreturn target;};var detectSupport=function(timeFormat){var tf=timeFormat.replace(/'.*?'/g,'').toLowerCase(),isIn=function(f,t){return f.indexOf(t)!==-1?true:false;};return{hour:isIn(tf,'h'),minute:isIn(tf,'m'),second:isIn(tf,'s'),millisec:isIn(tf,'l'),microsec:isIn(tf,'c'),timezone:isIn(tf,'z'),ampm:isIn(tf,'t')&&isIn(timeFormat,'h'),iso8601:isIn(timeFormat,'Z')};};var convert24to12=function(hour){hour%=12;if(hour===0){hour=12;}\nreturn String(hour);};var computeEffectiveSetting=function(settings,property){return settings&&settings[property]?settings[property]:$.timepicker._defaults[property];};var splitDateTime=function(dateTimeString,timeSettings){var separator=computeEffectiveSetting(timeSettings,'separator'),format=computeEffectiveSetting(timeSettings,'timeFormat'),timeParts=format.split(separator),timePartsLen=timeParts.length,allParts=dateTimeString.split(separator),allPartsLen=allParts.length;if(allPartsLen>1){return{dateString:allParts.splice(0,allPartsLen-timePartsLen).join(separator),timeString:allParts.splice(0,timePartsLen).join(separator)};}
2\nreturn{dateString:dateTimeString,timeString:''};};var parseDateTimeInternal=function(dateFormat,timeFormat,dateTimeString,dateSettings,timeSettings){var date,parts,parsedTime;parts=splitDateTime(dateTimeString,timeSettings);date=$.datepicker._base_parseDate(dateFormat,parts.dateString,dateSettings);if(parts.timeString===''){return{date:date};}\nparsedTime=$.datepicker.parseTime(timeFormat,parts.timeString,timeSettings);if(!parsedTime){throw'Wrong time format';}\nreturn{date:date,timeObj:parsedTime};};var selectLocalTimezone=function(tp_inst,date){if(tp_inst&&tp_inst.timezone_select){var now=date||new Date();tp_inst.timezone_select.val(-now.getTimezoneOffset());}};$.timepicker=new Timepicker();$.timepicker.timezoneOffsetString=function(tzMinutes,iso8601){if(isNaN(tzMinutes)||tzMinutes>840||tzMinutes<-720){return tzMinutes;}\nvar off=tzMinutes,minutes=off%60,hours=(off-minutes)/ 60,iso=iso8601?':':'',tz=(off>=0?'+':'-')+('0'+Math.abs(hours)).slice(-2)+iso+('0'+Math.abs(minutes)).slice(-2);if(tz==='+00:00'){return'Z';}\nreturn tz;};$.timepicker.timezoneOffsetNumber=function(tzString){var normalized=tzString.toString().replace(':','');if(normalized.toUpperCase()==='Z'){return 0;}\nif(!/^(\\-|\\+)\\d{4}$/.test(normalized)){return tzString;}\nreturn((normalized.substr(0,1)==='-'?-1:1)*((parseInt(normalized.substr(1,2),10)*60)+\nparseInt(normalized.substr(3,2),10)));};$.timepicker.timezoneAdjust=function(date,toTimezone){var toTz=$.timepicker.timezoneOffsetNumber(toTimezone);if(!isNaN(toTz)){date.setMinutes(date.getMinutes()+ -date.getTimezoneOffset()-toTz);}\nreturn date;};$.timepicker.timeRange=function(startTime,endTime,options){return $.timepicker.handleRange('timepicker',startTime,endTime,options);};$.timepicker.datetimeRange=function(startTime,endTime,options){$.timepicker.handleRange('datetimepicker',startTime,endTime,options);};$.timepicker.dateRange=function(startTime,endTime,options){$.timepicker.handleRange('datepicker',startTime,endTime,options);};$.timepicker.handleRange=function(method,startTime,endTime,options){options=$.extend({},{minInterval:0,maxInterval:0,start:{},end:{}},options);function checkDates(changed,other){var startdt=startTime[method]('getDate'),enddt=endTime[method]('getDate'),changeddt=changed[method]('getDate');if(startdt!==null){var minDate=new Date(startdt.getTime()),maxDate=new Date(startdt.getTime());minDate.setMilliseconds(minDate.getMilliseconds()+options.minInterval);maxDate.setMilliseconds(maxDate.getMilliseconds()+options.maxInterval);if(options.minInterval>0&&minDate>enddt){endTime[method]('setDate',minDate);}else if(options.maxInterval>0&&maxDate<enddt){endTime[method]('setDate',maxDate);}else if(startdt>enddt){other[method]('setDate',changeddt);}}}\nfunction selected(changed,other,option){if(!changed.val()){return;}\nvar date=changed[method].call(changed,'getDate');if(date!==null&&options.minInterval>0){if(option==='minDate'){date.setMilliseconds(date.getMilliseconds()+options.minInterval);}\nif(option==='maxDate'){date.setMilliseconds(date.getMilliseconds()-options.minInterval);}}\nif(date.getTime){other[method].call(other,'option',option,date);}}\n$.fn[method].call(startTime,$.extend({onClose:function(dateText,inst){checkDates($(this),endTime);},onSelect:function(selectedDateTime){selected($(this),endTime,'minDate');}},options,options.start));$.fn[method].call(endTime,$.extend({onClose:function(dateText,inst){checkDates($(this),startTime);},onSelect:function(selectedDateTime){selected($(this),startTime,'maxDate');}},options,options.end));checkDates(startTime,endTime);selected(startTime,endTime,'minDate');selected(endTime,startTime,'maxDate');return $([startTime.get(0),endTime.get(0)]);};$.timepicker.log=function(err){if(window.console){window.console.log(err);}};$.timepicker._util={_extendRemove:extendRemove,_isEmptyObject:isEmptyObject,_convert24to12:convert24to12,_detectSupport:detectSupport,_selectLocalTimezone:selectLocalTimezone,_computeEffectiveSetting:computeEffectiveSetting,_splitDateTime:splitDateTime,_parseDateTimeInternal:parseDateTimeInternal};if(!Date.prototype.getMicroseconds){Date.prototype.microseconds=0;Date.prototype.getMicroseconds=function(){return this.microseconds;};Date.prototype.setMicroseconds=function(m){this.setMilliseconds(this.getMilliseconds()+Math.floor(m / 1000));this.microseconds=m%1000;return this;};}\n$.timepicker.version=\"1.4.3\";}));","jquery/ui-modules/effect-shake.min.js":"/*!\n * jQuery UI Effects Shake - v1.10.4\n * http://jqueryui.com\n *\n * Copyright 2014 jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n *\n * http://api.jqueryui.com/shake-effect/\n */\ndefine(['jquery','jquery-ui-modules/effect'],function($,undefined){$.effects.effect.shake=function(o,done){var el=$(this),props=[\"position\",\"top\",\"bottom\",\"left\",\"right\",\"height\",\"width\"],mode=$.effects.setMode(el,o.mode||\"effect\"),direction=o.direction||\"left\",distance=o.distance||20,times=o.times||3,anims=times*2+1,speed=Math.round(o.duration / anims),ref=(direction===\"up\"||direction===\"down\")?\"top\":\"left\",positiveMotion=(direction===\"up\"||direction===\"left\"),animation={},animation1={},animation2={},i,queue=el.queue(),queuelen=queue.length;$.effects.save(el,props);el.show();$.effects.createWrapper(el);animation[ref]=(positiveMotion?\"-=\":\"+=\")+distance;animation1[ref]=(positiveMotion?\"+=\":\"-=\")+distance*2;animation2[ref]=(positiveMotion?\"-=\":\"+=\")+distance*2;el.animate(animation,speed,o.easing);for(i=1;i<times;i++){el.animate(animation1,speed,o.easing).animate(animation2,speed,o.easing);}\nel.animate(animation1,speed,o.easing).animate(animation,speed / 2,o.easing).queue(function(){if(mode===\"hide\"){el.hide();}\n$.effects.restore(el,props);$.effects.removeWrapper(el);done();});if(queuelen>1){queue.splice.apply(queue,[1,0].concat(queue.splice(queuelen,anims+1)));}\nel.dequeue();};});","jquery/ui-modules/effect-pulsate.min.js":"/*!\n * jQuery UI Effects Pulsate - v1.10.4\n * http://jqueryui.com\n *\n * Copyright 2014 jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n *\n * http://api.jqueryui.com/pulsate-effect/\n */\ndefine(['jquery','jquery-ui-modules/effect'],function($,undefined){$.effects.effect.pulsate=function(o,done){var elem=$(this),mode=$.effects.setMode(elem,o.mode||\"show\"),show=mode===\"show\",hide=mode===\"hide\",showhide=(show||mode===\"hide\"),anims=((o.times||5)*2)+(showhide?1:0),duration=o.duration / anims,animateTo=0,queue=elem.queue(),queuelen=queue.length,i;if(show||!elem.is(\":visible\")){elem.css(\"opacity\",0).show();animateTo=1;}\nfor(i=1;i<anims;i++){elem.animate({opacity:animateTo},duration,o.easing);animateTo=1-animateTo;}\nelem.animate({opacity:animateTo},duration,o.easing);elem.queue(function(){if(hide){elem.hide();}\ndone();});if(queuelen>1){queue.splice.apply(queue,[1,0].concat(queue.splice(queuelen,anims+1)));}\nelem.dequeue();};});","jquery/ui-modules/autocomplete.min.js":"/*!\n * jQuery UI Autocomplete - v1.10.4\n * http://jqueryui.com\n *\n * Copyright 2014 jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n *\n * http://api.jqueryui.com/autocomplete/\n */\ndefine(['jquery','jquery-ui-modules/menu'],function($,undefined){$.widget(\"ui.autocomplete\",{version:\"1.10.4\",defaultElement:\"<input>\",options:{appendTo:null,autoFocus:false,delay:300,minLength:1,position:{my:\"left top\",at:\"left bottom\",collision:\"none\"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var suppressKeyPress,suppressKeyPressRepeat,
2suppressInput,nodeName=this.element[0].nodeName.toLowerCase(),isTextarea=nodeName===\"textarea\",isInput=nodeName===\"input\";this.isMultiLine=isTextarea?true:isInput?false:this.element.prop(\"isContentEditable\");this.valueMethod=this.element[isTextarea||isInput?\"val\":\"text\"];this.isNewMenu=true;this.element.addClass(\"ui-autocomplete-input\").attr(\"autocomplete\",\"off\");this._on(this.element,{keydown:function(event){if(this.element.prop(\"readOnly\")){suppressKeyPress=true;suppressInput=true;suppressKeyPressRepeat=true;return;}\nsuppressKeyPress=false;suppressInput=false;suppressKeyPressRepeat=false;var keyCode=$.ui.keyCode;switch(event.keyCode){case keyCode.PAGE_UP:suppressKeyPress=true;this._move(\"previousPage\",event);break;case keyCode.PAGE_DOWN:suppressKeyPress=true;this._move(\"nextPage\",event);break;case keyCode.UP:suppressKeyPress=true;this._keyEvent(\"previous\",event);break;case keyCode.DOWN:suppressKeyPress=true;this._keyEvent(\"next\",event);break;case keyCode.ENTER:case keyCode.NUMPAD_ENTER:if(this.menu.active){suppressKeyPress=true;event.preventDefault();this.menu.select(event);}\nbreak;case keyCode.TAB:if(this.menu.active){this.menu.select(event);}\nbreak;case keyCode.ESCAPE:if(this.menu.element.is(\":visible\")){this._value(this.term);this.close(event);event.preventDefault();}\nbreak;default:suppressKeyPressRepeat=true;this._searchTimeout(event);break;}},keypress:function(event){if(suppressKeyPress){suppressKeyPress=false;if(!this.isMultiLine||this.menu.element.is(\":visible\")){event.preventDefault();}\nreturn;}\nif(suppressKeyPressRepeat){return;}\nvar keyCode=$.ui.keyCode;switch(event.keyCode){case keyCode.PAGE_UP:this._move(\"previousPage\",event);break;case keyCode.PAGE_DOWN:this._move(\"nextPage\",event);break;case keyCode.UP:this._keyEvent(\"previous\",event);break;case keyCode.DOWN:this._keyEvent(\"next\",event);break;}},input:function(event){if(suppressInput){suppressInput=false;event.preventDefault();return;}\nthis._searchTimeout(event);},focus:function(){this.selectedItem=null;this.previous=this._value();},blur:function(event){if(this.cancelBlur){delete this.cancelBlur;return;}\nclearTimeout(this.searching);this.close(event);this._change(event);}});this._initSource();this.menu=$(\"<ul>\").addClass(\"ui-autocomplete ui-front\").appendTo(this._appendTo()).menu({role:null}).hide().data(\"ui-menu\");this._on(this.menu.element,{mousedown:function(event){event.preventDefault();this.cancelBlur=true;this._delay(function(){delete this.cancelBlur;});var menuElement=this.menu.element[0];if(!$(event.target).closest(\".ui-menu-item\").length){this._delay(function(){var that=this;this.document.one(\"mousedown\",function(event){if(event.target!==that.element[0]&&event.target!==menuElement&&!$.contains(menuElement,event.target)){that.close();}});});}},menufocus:function(event,ui){if(this.isNewMenu){this.isNewMenu=false;if(event.originalEvent&&/^mouse/.test(event.originalEvent.type)){this.menu.blur();this.document.one(\"mousemove\",function(){$(event.target).trigger(event.originalEvent);});return;}}\nvar item=ui.item.data(\"ui-autocomplete-item\");if(false!==this._trigger(\"focus\",event,{item:item})){if(event.originalEvent&&/^key/.test(event.originalEvent.type)){this._value(item.value);}}else{this.liveRegion.text(item.value);}},menuselect:function(event,ui){var item=ui.item.data(\"ui-autocomplete-item\"),previous=this.previous;if(this.element[0]!==this.document[0].activeElement){this.element.focus();this.previous=previous;this._delay(function(){this.previous=previous;this.selectedItem=item;});}\nif(false!==this._trigger(\"select\",event,{item:item})){this._value(item.value);}\nthis.term=this._value();this.close(event);this.selectedItem=item;}});this.liveRegion=$(\"<span>\",{role:\"status\",\"aria-live\":\"polite\"}).addClass(\"ui-helper-hidden-accessible\").insertBefore(this.element);this._on(this.window,{beforeunload:function(){this.element.removeAttr(\"autocomplete\");}});},_destroy:function(){clearTimeout(this.searching);this.element.removeClass(\"ui-autocomplete-input\").removeAttr(\"autocomplete\");this.menu.element.remove();this.liveRegion.remove();},_setOption:function(key,value){this._super(key,value);if(key===\"source\"){this._initSource();}\nif(key===\"appendTo\"){this.menu.element.appendTo(this._appendTo());}\nif(key===\"disabled\"&&value&&this.xhr){this.xhr.abort();}},_appendTo:function(){var element=this.options.appendTo;if(element){element=element.jquery||element.nodeType?$(element):this.document.find(element).eq(0);}\nif(!element){element=this.element.closest(\".ui-front\");}\nif(!element.length){element=this.document[0].body;}\nreturn element;},_initSource:function(){var array,url,that=this;if($.isArray(this.options.source)){array=this.options.source;this.source=function(request,response){response($.ui.autocomplete.filter(array,request.term));};}else if(typeof this.options.source===\"string\"){url=this.options.source;this.source=function(request,response){if(that.xhr){that.xhr.abort();}\nthat.xhr=$.ajax({url:url,data:request,dataType:\"json\",success:function(data){response(data);},error:function(){response([]);}});};}else{this.source=this.options.source;}},_searchTimeout:function(event){clearTimeout(this.searching);this.searching=this._delay(function(){if(this.term!==this._value(
2)){this.selectedItem=null;this.search(null,event);}},this.options.delay);},search:function(value,event){value=value!=null?value:this._value();this.term=this._value();if(value.length<this.options.minLength){return this.close(event);}\nif(this._trigger(\"search\",event)===false){return;}\nreturn this._search(value);},_search:function(value){this.pending++;this.element.addClass(\"ui-autocomplete-loading\");this.cancelSearch=false;this.source({term:value},this._response());},_response:function(){var index=++this.requestIndex;return $.proxy(function(content){if(index===this.requestIndex){this.__response(content);}\nthis.pending--;if(!this.pending){this.element.removeClass(\"ui-autocomplete-loading\");}},this);},__response:function(content){if(content){content=this._normalize(content);}\nthis._trigger(\"response\",null,{content:content});if(!this.options.disabled&&content&&content.length&&!this.cancelSearch){this._suggest(content);this._trigger(\"open\");}else{this._close();}},close:function(event){this.cancelSearch=true;this._close(event);},_close:function(event){if(this.menu.element.is(\":visible\")){this.menu.element.hide();this.menu.blur();this.isNewMenu=true;this._trigger(\"close\",event);}},_change:function(event){if(this.previous!==this._value()){this._trigger(\"change\",event,{item:this.selectedItem});}},_normalize:function(items){if(items.length&&items[0].label&&items[0].value){return items;}\nreturn $.map(items,function(item){if(typeof item===\"string\"){return{label:item,value:item};}\nreturn $.extend({label:item.label||item.value,value:item.value||item.label},item);});},_suggest:function(items){var ul=this.menu.element.empty();this._renderMenu(ul,items);this.isNewMenu=true;this.menu.refresh();ul.show();this._resizeMenu();ul.position($.extend({of:this.element},this.options.position));if(this.options.autoFocus){this.menu.next();}},_resizeMenu:function(){var ul=this.menu.element;ul.outerWidth(Math.max(ul.width(\"\").outerWidth()+1,this.element.outerWidth()));},_renderMenu:function(ul,items){var that=this;$.each(items,function(index,item){that._renderItemData(ul,item);});},_renderItemData:function(ul,item){return this._renderItem(ul,item).data(\"ui-autocomplete-item\",item);},_renderItem:function(ul,item){return $(\"<li>\").append($(\"<a>\").text(item.label)).appendTo(ul);},_move:function(direction,event){if(!this.menu.element.is(\":visible\")){this.search(null,event);return;}\nif(this.menu.isFirstItem()&&/^previous/.test(direction)||this.menu.isLastItem()&&/^next/.test(direction)){this._value(this.term);this.menu.blur();return;}\nthis.menu[direction](event);},widget:function(){return this.menu.element;},_value:function(){return this.valueMethod.apply(this.element,arguments);},_keyEvent:function(keyEvent,event){if(!this.isMultiLine||this.menu.element.is(\":visible\")){this._move(keyEvent,event);event.preventDefault();}}});$.extend($.ui.autocomplete,{escapeRegex:function(value){return value.replace(/[\\-\\[\\]{}()*+?.,\\\\\\^$|#\\s]/g,\"\\\\$&\");},filter:function(array,term){var matcher=new RegExp($.ui.autocomplete.escapeRegex(term),\"i\");return $.grep(array,function(value){return matcher.test(value.label||value.value||value);});}});$.widget(\"ui.autocomplete\",$.ui.autocomplete,{options:{messages:{noResults:\"No search results.\",results:function(amount){return amount+(amount>1?\" results are\":\" result is\")+\" available, use up and down arrow keys to navigate.\";}}},__response:function(content){var message;this._superApply(arguments);if(this.options.disabled||this.cancelSearch){return;}\nif(content&&content.length){message=this.options.messages.results(content.length);}else{message=this.options.messages.noResults;}\nthis.liveRegion.text(message);}});});","jquery/ui-modules/tooltip.min.js":"/*!\n * jQuery UI Tooltip - v1.10.4\n * http://jqueryui.com\n *\n * Copyright 2014 jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n *\n * http://api.jqueryui.com/tooltip/\n */\ndefine(['jquery','jquery-ui-modules/core','jquery-ui-modules/widget','jquery-ui-modules/position'],function($){var increments=0;function addDescribedBy(elem,id){var describedby=(elem.attr(\"aria-describedby\")||\"\").split(/\\s+/);describedby.push(id);elem.data(\"ui-tooltip-id\",id).attr(\"aria-describedby\",$.trim(describedby.join(\" \")));}\nfunction removeDescribedBy(elem){var id=elem.data(\"ui-tooltip-id\"),describedby=(elem.attr(\"aria-describedby\")||\"\").split(/\\s+/),index=$.inArray(id,describedby);if(index!==-1){describedby.splice(index,1);}\nelem.removeData(\"ui-tooltip-id\");describedby=$.trim(describedby.join(\" \"));if(describedby){elem.attr(\"aria-describedby\",describedby);}else{elem.removeAttr(\"aria-describedby\");}}\n$.widget(\"ui.tooltip\",{version:\"1.10.4\",options:{content:function(){var title=$
2(this).attr(\"title\")||\"\";return $(\"<a>\").text(title).html();},hide:true,items:\"[title]:not([disabled])\",position:{my:\"left top+15\",at:\"left bottom\",collision:\"flipfit flip\"},show:true,tooltipClass:null,track:false,close:null,open:null},_create:function(){this._on({mouseover:\"open\",focusin:\"open\"});this.tooltips={};this.parents={};if(this.options.disabled){this._disable();}},_setOption:function(key,value){var that=this;if(key===\"disabled\"){this[value?\"_disable\":\"_enable\"]();this.options[key]=value;return;}\nthis._super(key,value);if(key===\"content\"){$.each(this.tooltips,function(id,element){that._updateContent(element);});}},_disable:function(){var that=this;$.each(this.tooltips,function(id,element){var event=$.Event(\"blur\");event.target=event.currentTarget=element[0];that.close(event,true);});this.element.find(this.options.items).addBack().each(function(){var element=$(this);if(element.is(\"[title]\")){element.data(\"ui-tooltip-title\",element.attr(\"title\")).attr(\"title\",\"\");}});},_enable:function(){this.element.find(this.options.items).addBack().each(function(){var element=$(this);if(element.data(\"ui-tooltip-title\")){element.attr(\"title\",element.data(\"ui-tooltip-title\"));}});},open:function(event){var that=this,target=$(event?event.target:this.element).closest(this.options.items);if(!target.length||target.data(\"ui-tooltip-id\")){return;}\nif(target.attr(\"title\")){target.data(\"ui-tooltip-title\",target.attr(\"title\"));}\ntarget.data(\"ui-tooltip-open\",true);if(event&&event.type===\"mouseover\"){target.parents().each(function(){var parent=$(this),blurEvent;if(parent.data(\"ui-tooltip-open\")){blurEvent=$.Event(\"blur\");blurEvent.target=blurEvent.currentTarget=this;that.close(blurEvent,true);}\nif(parent.attr(\"title\")){parent.uniqueId();that.parents[this.id]={element:this,title:parent.attr(\"title\")};parent.attr(\"title\",\"\");}});}\nthis._updateContent(target,event);},_updateContent:function(target,event){var content,contentOption=this.options.content,that=this,eventType=event?event.type:null;if(typeof contentOption===\"string\"){return this._open(event,target,contentOption);}\ncontent=contentOption.call(target[0],function(response){if(!target.data(\"ui-tooltip-open\")){return;}\nthat._delay(function(){if(event){event.type=eventType;}\nthis._open(event,target,response);});});if(content){this._open(event,target,content);}},_open:function(event,target,content){var tooltip,events,delayedShow,positionOption=$.extend({},this.options.position);if(!content){return;}\ntooltip=this._find(target);if(tooltip.length){tooltip.find(\".ui-tooltip-content\").html(content);return;}\nif(target.is(\"[title]\")){if(event&&event.type===\"mouseover\"){target.attr(\"title\",\"\");}else{target.removeAttr(\"title\");}}\ntooltip=this._tooltip(target);addDescribedBy(target,tooltip.attr(\"id\"));tooltip.find(\".ui-tooltip-content\").html(content);function position(event){positionOption.of=event;if(tooltip.is(\":hidden\")){return;}\ntooltip.position(positionOption);}\nif(this.options.track&&event&&/^mouse/.test(event.type)){this._on(this.document,{mousemove:position});position(event);}else{tooltip.position($.extend({of:target},this.options.position));}\ntooltip.hide();this._show(tooltip,this.options.show);if(this.options.show&&this.options.show.delay){delayedShow=this.delayedShow=setInterval(function(){if(tooltip.is(\":visible\")){position(positionOption.of);clearInterval(delayedShow);}},$.fx.interval);}\nthis._trigger(\"open\",event,{tooltip:tooltip});events={keyup:function(event){if(event.keyCode===$.ui.keyCode.ESCAPE){var fakeEvent=$.Event(event);fakeEvent.currentTarget=target[0];this.close(fakeEvent,true);}},remove:function(){this._removeTooltip(tooltip);}};if(!event||event.type===\"mouseover\"){events.mouseleave=\"close\";}\nif(!event||event.type===\"focusin\"){events.focusout=\"close\";}\nthis._on(true,target,events);},close:function(event){var that=this,target=$(event?event.currentTarget:this.element),tooltip=this._find(target);if(this.closing){return;}\nclearInterval(this.delayedShow);if(target.data(\"ui-tooltip-title\")){target.attr(\"title\",target.data(\"ui-tooltip-title\"));}\nremoveDescribedBy(target);tooltip.stop(true);this._hide(tooltip,this.options.hide,function(){that._removeTooltip($(this));});target.removeData(\"ui-tooltip-open\");this._off(target,\"mouseleave focusout keyup\");if(target[0]!==this.element[0]){this._off(target,\"remove\");}\nthis._off(this.document,\"mousemove\");if(event&&event.type===\"mouseleave\"){$.each(this.parents,function(id,parent){$(parent.element).attr(\"title\",parent.title);delete that.parents[id];});}\nthis.closing=true;this._trigger(\"close\",event,{tooltip:tooltip});this.closing=false;},_tooltip:function(element){var id=\"ui-tooltip-\"+increments++,tooltip=$(\"<div>\").attr({id:id,role:\"tooltip\"}).addClass(\"ui-tooltip ui-widget ui-corner-all ui-widget-content \"+\n(this.options.tooltipClass||\"\"));$(\"<div>\").addClass(\"ui-tooltip-content\").appendTo(tooltip);tooltip.appendTo(this.document[0].body);this.tooltips[id]=element;return tooltip;},_find:function(target){var id=target.data(\"ui-tooltip-id\");return id?$(\"#\"+id):$();},_removeTooltip:function(tooltip){tooltip.remove();delete this.tooltips[tooltip.attr(\"id\")];},_destroy:function(){var that=this;$.each(this.tooltips,function(id,element){var event=$.Event(\"blur\");event.target=event.currentTarget=element[0];that.close(event,true);$(\"#\"+id).remove();if(element.data(\"ui-tooltip-title\")){element.attr(\"title\",element.data(\"ui-tooltip-title\"));element.removeData(\"ui-tooltip-title\");}});}});});","jquery/ui-modules/core.min.js":"/*!\n * jQuery UI Core - v1.10.4\n * http://jqueryui.com\n *\n * Copyright 2014 jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n *\n * http://api.jqueryui.com/category/ui-core/\n */\ndefine(['jquery'],function($,undefined){var uuid=0,runiqueId=/^ui-id-\\d+$/;$.ui=$.ui||{};$.extend($.ui,{version:\"1.10.4\",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}});$.fn.extend({focus:(function(orig){return function(delay,fn){return typeof delay===\"number\"?this.each(function(){var elem=this;setTimeout(function(){$(elem).focus();if(fn){fn.call(elem);}},delay);}):orig.apply(this,arguments);};})($.fn.focus),scrollParent:function(){var scrollParent;if(($.ui.ie&&(/(static|relative)/).test(this.css(\"position\")))||(/absolute/).test(this.css(\"position\"))){scrollParent=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test($.css(this,\"position\"))&&(/(auto|scroll)/).test($.css(this,\"overflow\")+$.css(this,\"overflow-y\")+$.css(this,\"overflow-x\"));}).eq(0);}else{scrollParent=this.parents().filter(function(){return(/(auto|scroll)/).test($.css(this,\"overflow\")+$.css(this,\"overflow-y\")+$.css(this,\"overflow-x\"));}).eq(0);}
2\nreturn(/fixed/).test(this.css(\"position\"))||!scrollParent.length?$(document):scrollParent;},zIndex:function(zIndex){if(zIndex!==undefined){return this.css(\"zIndex\",zIndex);}\nif(this.length){var elem=$(this[0]),position,value;while(elem.length&&elem[0]!==document){position=elem.css(\"position\");if(position===\"absolute\"||position===\"relative\"||position===\"fixed\"){value=parseInt(elem.css(\"zIndex\"),10);if(!isNaN(value)&&value!==0){return value;}}\nelem=elem.parent();}}\nreturn 0;},uniqueId:function(){return this.each(function(){if(!this.id){this.id=\"ui-id-\"+(++uuid);}});},removeUniqueId:function(){return this.each(function(){if(runiqueId.test(this.id)){$(this).removeAttr(\"id\");}});}});function focusable(element,isTabIndexNotNaN){var map,mapName,img,nodeName=element.nodeName.toLowerCase();if(\"area\"===nodeName){map=element.parentNode;mapName=map.name;if(!element.href||!mapName||map.nodeName.toLowerCase()!==\"map\"){return false;}\nimg=$(\"img[usemap=#\"+mapName+\"]\")[0];return!!img&&visible(img);}\nreturn(/input|select|textarea|button|object/.test(nodeName)?!element.disabled:\"a\"===nodeName?element.href||isTabIndexNotNaN:isTabIndexNotNaN)&&visible(element);}\nfunction visible(element){return $.expr.filters.visible(element)&&!$(element).parents().addBack().filter(function(){return $.css(this,\"visibility\")===\"hidden\";}).length;}\n$.extend($.expr[\":\"],{data:$.expr.createPseudo?$.expr.createPseudo(function(dataName){return function(elem){return!!$.data(elem,dataName);};}):function(elem,i,match){return!!$.data(elem,match[3]);},focusable:function(element){return focusable(element,!isNaN($.attr(element,\"tabindex\")));},tabbable:function(element){var tabIndex=$.attr(element,\"tabindex\"),isTabIndexNaN=isNaN(tabIndex);return(isTabIndexNaN||tabIndex>=0)&&focusable(element,!isTabIndexNaN);}});if(!$(\"<a>\").outerWidth(1).jquery){$.each([\"Width\",\"Height\"],function(i,name){var side=name===\"Width\"?[\"Left\",\"Right\"]:[\"Top\",\"Bottom\"],type=name.toLowerCase(),orig={innerWidth:$.fn.innerWidth,innerHeight:$.fn.innerHeight,outerWidth:$.fn.outerWidth,outerHeight:$.fn.outerHeight};function reduce(elem,size,border,margin){$.each(side,function(){size-=parseFloat($.css(elem,\"padding\"+this))||0;if(border){size-=parseFloat($.css(elem,\"border\"+this+\"Width\"))||0;}\nif(margin){size-=parseFloat($.css(elem,\"margin\"+this))||0;}});return size;}\n$.fn[\"inner\"+name]=function(size){if(size===undefined){return orig[\"inner\"+name].call(this);}\nreturn this.each(function(){$(this).css(type,reduce(this,size)+\"px\");});};$.fn[\"outer\"+name]=function(size,margin){if(typeof size!==\"number\"){return orig[\"outer\"+name].call(this,size);}\nreturn this.each(function(){$(this).css(type,reduce(this,size,true,margin)+\"px\");});};});}\nif(!$.fn.addBack){$.fn.addBack=function(selector){return this.add(selector==null?this.prevObject:this.prevObject.filter(selector));};}\nif($(\"<a>\").data(\"a-b\",\"a\").removeData(\"a-b\").data(\"a-b\")){$.fn.removeData=(function(removeData){return function(key){if(arguments.length){return removeData.call(this,$.camelCase(key));}else{return removeData.call(this);}};})($.fn.removeData);}\n$.ui.ie=!!/msie [\\w.]+/.exec(navigator.userAgent.toLowerCase());$.support.selectstart=\"onselectstart\"in document.createElement(\"div\");$.fn.extend({disableSelection:function(){return this.bind(($.support.selectstart?\"selectstart\":\"mousedown\")+\".ui-disableSelection\",function(event){event.preventDefault();});},enableSelection:function(){return this.unbind(\".ui-disableSelection\");}});$.extend($.ui,{plugin:{add:function(module,option,set){var i,proto=$.ui[module].prototype;for(i in set){proto.plugins[i]=proto.plugins[i]||[];proto.plugins[i].push([option,set[i]]);}},call:function(instance,name,args){var i,set=instance.plugins[name];if(!set||!instance.element[0].parentNode||instance.element[0].parentNode.nodeType===11){return;}\nfor(i=0;i<set.length;i++){if(instance.options[set[i][0]]){set[i][1].apply(instance.element,args);}}}},hasScroll:function(el,a){if($(el).css(\"overflow\")===\"hidden\"){return false;}\nvar scroll=(a&&a===\"left\")?\"scrollLeft\":\"scrollTop\",has=false;if(el[scroll]>0){return true;}\nel[scroll]=1;has=(el[scroll]>0);el[scroll]=0;return has;}});});","jquery/ui-modules/datepicker.min.js":"/*!\n * jQuery UI Datepicker - v1.10.4\n * http://jqueryui.com\n *\n * Copyright 2014 jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n *\n * http://api.jqueryui.com/datepicker/\n */\ndefine(['jquery','jquery-ui-modules/core',],function($,undefined){$.extend($.ui,{datepicker:{version:\"1.10.4\"}});var PROP_NAME=\"datepicker\",instActive;function Datepicker(){this._curInst=null;this._keyEvent=false;this._disabledInputs=[];this._datepickerShowing=false;this._inDialog=false;this._mainDivId=\"ui-datepicker-div\";this._inlineClass=\"ui-datepicker-inline\";this._appendClass=\"ui-datepicker-append\";this._triggerClass=\"ui-datepicker-trigger\";this._dialogClass=\"ui-datepicker-dialog\";this._disableClass=\"ui-datepicker-disabled\";this._unselectableClass=\"ui-datepicker-unselectable\";this._currentClass=\"ui-datepicker-current-day\";this._dayOverClass=\"ui-datepicker-days-cell-over\";this.regional=[];this.regional[\"\"]={closeText:\"Done\",prevText:\"Prev\",nextText:\"Next\",currentText:\"Today\",monthNames:[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"],monthNamesShort:[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"],dayNames:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"],dayNamesShort:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],dayNamesMin:[\"Su\",\"Mo\",\"Tu\",\"We\",\"Th\",\"Fr\",\"Sa\"],weekHeader:\"Wk\",dateFormat:\"mm/dd/yy\",firstDay:0,isRTL:false,showMonthAfterYear:false,yearSuffix:\"\"};
2this._defaults={showOn:\"focus\",showAnim:\"fadeIn\",showOptions:{},defaultDate:null,appendText:\"\",buttonText:\"...\",buttonImage:\"\",buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,yearRange:\"c-10:c+10\",showOtherMonths:false,selectOtherMonths:false,showWeek:false,calculateWeek:this.iso8601Week,shortYearCutoff:\"+10\",minDate:null,maxDate:null,duration:\"fast\",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:\"\",altFormat:\"\",constrainInput:true,showButtonPanel:false,autoSize:false,disabled:false};$.extend(this._defaults,this.regional[\"\"]);this.dpDiv=bindHover($(\"<div id='\"+this._mainDivId+\"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>\"));}\n$.extend(Datepicker.prototype,{markerClassName:\"hasDatepicker\",maxRows:4,_widgetDatepicker:function(){return this.dpDiv;},setDefaults:function(settings){extendRemove(this._defaults,settings||{});return this;},_attachDatepicker:function(target,settings){var nodeName,inline,inst;nodeName=target.nodeName.toLowerCase();inline=(nodeName===\"div\"||nodeName===\"span\");if(!target.id){this.uuid+=1;target.id=\"dp\"+this.uuid;}\ninst=this._newInst($(target),inline);inst.settings=$.extend({},settings||{});if(nodeName===\"input\"){this._connectDatepicker(target,inst);}else if(inline){this._inlineDatepicker(target,inst);}},_newInst:function(target,inline){var id=target[0].id.replace(/([^A-Za-z0-9_\\-])/g,\"\\\\\\\\$1\");return{id:id,input:target,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:inline,dpDiv:(!inline?this.dpDiv:bindHover($(\"<div class='\"+this._inlineClass+\" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>\")))};},_connectDatepicker:function(target,inst){var input=$(target);inst.append=$([]);inst.trigger=$([]);if(input.hasClass(this.markerClassName)){return;}\nthis._attachments(input,inst);input.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp);this._autoSize(inst);$.data(target,PROP_NAME,inst);if(inst.settings.disabled){this._disableDatepicker(target);}},_attachments:function(input,inst){var showOn,buttonText,buttonImage,appendText=this._get(inst,\"appendText\"),isRTL=this._get(inst,\"isRTL\");if(inst.append){inst.append.remove();}\nif(appendText){inst.append=$(\"<span class='\"+this._appendClass+\"'>\"+appendText+\"</span>\");input[isRTL?\"before\":\"after\"](inst.append);}\ninput.unbind(\"focus\",this._showDatepicker);if(inst.trigger){inst.trigger.remove();}\nshowOn=this._get(inst,\"showOn\");if(showOn===\"focus\"||showOn===\"both\"){input.focus(this._showDatepicker);}\nif(showOn===\"button\"||showOn===\"both\"){buttonText=this._get(inst,\"buttonText\");buttonImage=this._get(inst,\"buttonImage\");inst.trigger=$(this._get(inst,\"buttonImageOnly\")?$(\"<img/>\").addClass(this._triggerClass).attr({src:buttonImage,alt:buttonText,title:buttonText}):$(\"<button type='button'></button>\").addClass(this._triggerClass).html(!buttonImage?buttonText:$(\"<img/>\").attr({src:buttonImage,alt:buttonText,title:buttonText})));input[isRTL?\"before\":\"after\"](inst.trigger);inst.trigger.click(function(){if($.datepicker._datepickerShowing&&$.datepicker._lastInput===input[0]){$.datepicker._hideDatepicker();}else if($.datepicker._datepickerShowing&&$.datepicker._lastInput!==input[0]){$.datepicker._hideDatepicker();$.datepicker._showDatepicker(input[0]);}else{$.datepicker._showDatepicker(input[0]);}\nreturn false;});}},_autoSize:function(inst){if(this._get(inst,\"autoSize\")&&!inst.inline){var findMax,max,maxI,i,date=new Date(2009,12-1,20),dateFormat=this._get(inst,\"dateFormat\");if(dateFormat.match(/[DM]/)){findMax=function(names){max=0;maxI=0;for(i=0;i<names.length;i++){if(names[i].length>max){max=names[i].length;maxI=i;}}\nreturn maxI;};date.setMonth(findMax(this._get(inst,(dateFormat.match(/MM/)?\"monthNames\":\"monthNamesShort\"))));date.setDate(findMax(this._get(inst,(dateFormat.match(/DD/)?\"dayNames\":\"dayNamesShort\")))+20-date.getDay());}\ninst.input.attr(\"size\",this._formatDate(inst,date).length);}},_inlineDatepicker:function(target,inst){var divSpan=$(target);if(divSpan.hasClass(this.markerClassName)){return;}\ndivSpan.addClass(this.markerClassName).append(inst.dpDiv);$.data(target,PROP_NAME,inst);this._setDate(inst,this._getDefaultDate(inst),true);this._updateDatepicker(inst);this._updateAlternate(inst);if(inst.settings.disabled){this._disableDatepicker(target);}\ninst.dpDiv.css(\"display\",\"block\");},_dialogDatepicker:function(input,date,onSelect,settings,pos){var id,browserWidth,browserHeight,scrollX,scrollY,inst=this._dialogInst;if(!inst){this.uuid+=1;
2id=\"dp\"+this.uuid;this._dialogInput=$(\"<input type='text' id='\"+id+\"' style='position: absolute; top: -100px; width: 0px;'/>\");this._dialogInput.keydown(this._doKeyDown);$(\"body\").append(this._dialogInput);inst=this._dialogInst=this._newInst(this._dialogInput,false);inst.settings={};$.data(this._dialogInput[0],PROP_NAME,inst);}\nextendRemove(inst.settings,settings||{});date=(date&&date.constructor===Date?this._formatDate(inst,date):date);this._dialogInput.val(date);this._pos=(pos?(pos.length?pos:[pos.pageX,pos.pageY]):null);if(!this._pos){browserWidth=document.documentElement.clientWidth;browserHeight=document.documentElement.clientHeight;scrollX=document.documentElement.scrollLeft||document.body.scrollLeft;scrollY=document.documentElement.scrollTop||document.body.scrollTop;this._pos=[(browserWidth / 2)-100+scrollX,(browserHeight / 2)-150+scrollY];}\nthis._dialogInput.css(\"left\",(this._pos[0]+20)+\"px\").css(\"top\",this._pos[1]+\"px\");inst.settings.onSelect=onSelect;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);if($.blockUI){$.blockUI(this.dpDiv);}\n$.data(this._dialogInput[0],PROP_NAME,inst);return this;},_destroyDatepicker:function(target){var nodeName,$target=$(target),inst=$.data(target,PROP_NAME);if(!$target.hasClass(this.markerClassName)){return;}\nnodeName=target.nodeName.toLowerCase();$.removeData(target,PROP_NAME);if(nodeName===\"input\"){inst.append.remove();inst.trigger.remove();$target.removeClass(this.markerClassName).unbind(\"focus\",this._showDatepicker).unbind(\"keydown\",this._doKeyDown).unbind(\"keypress\",this._doKeyPress).unbind(\"keyup\",this._doKeyUp);}else if(nodeName===\"div\"||nodeName===\"span\"){$target.removeClass(this.markerClassName).empty();}},_enableDatepicker:function(target){var nodeName,inline,$target=$(target),inst=$.data(target,PROP_NAME);if(!$target.hasClass(this.markerClassName)){return;}\nnodeName=target.nodeName.toLowerCase();if(nodeName===\"input\"){target.disabled=false;inst.trigger.filter(\"button\").each(function(){this.disabled=false;}).end().filter(\"img\").css({opacity:\"1.0\",cursor:\"\"});}else if(nodeName===\"div\"||nodeName===\"span\"){inline=$target.children(\".\"+this._inlineClass);inline.children().removeClass(\"ui-state-disabled\");inline.find(\"select.ui-datepicker-month, select.ui-datepicker-year\").prop(\"disabled\",false);}\nthis._disabledInputs=$.map(this._disabledInputs,function(value){return(value===target?null:value);});},_disableDatepicker:function(target){var nodeName,inline,$target=$(target),inst=$.data(target,PROP_NAME);if(!$target.hasClass(this.markerClassName)){return;}\nnodeName=target.nodeName.toLowerCase();if(nodeName===\"input\"){target.disabled=true;inst.trigger.filter(\"button\").each(function(){this.disabled=true;}).end().filter(\"img\").css({opacity:\"0.5\",cursor:\"default\"});}else if(nodeName===\"div\"||nodeName===\"span\"){inline=$target.children(\".\"+this._inlineClass);inline.children().addClass(\"ui-state-disabled\");inline.find(\"select.ui-datepicker-month, select.ui-datepicker-year\").prop(\"disabled\",true);}\nthis._disabledInputs=$.map(this._disabledInputs,function(value){return(value===target?null:value);});this._disabledInputs[this._disabledInputs.length]=target;},_isDisabledDatepicker:function(target){if(!target){return false;}\nfor(var i=0;i<this._disabledInputs.length;i++){if(this._disabledInputs[i]===target){return true;}}\nreturn false;},_getInst:function(target){try{return $.data(target,PROP_NAME);}catch(err){throw\"Missing instance data for this datepicker\";}},_optionDatepicker:function(target,name,value){var settings,date,minDate,maxDate,inst=this._getInst(target);if(arguments.length===2&&typeof name===\"string\"){return(name===\"defaults\"?$.extend({},$.datepicker._defaults):(inst?(name===\"all\"?$.extend({},inst.settings):this._get(inst,name)):null));}\nsettings=name||{};if(typeof name===\"string\"){settings={};settings[name]=value;}\nif(inst){if(this._curInst===inst){this._hideDatepicker();}\ndate=this._getDateDatepicker(target,true);minDate=this._getMinMaxDate(inst,\"min\");maxDate=this._getMinMaxDate(inst,\"max\");extendRemove(inst.settings,settings);if(minDate!==null&&settings.dateFormat!==undefined&&settings.minDate===undefined){inst.settings.minDate=this._formatDate(inst,minDate);}\nif(maxDate!==null&&settings.dateFormat!==undefined&&settings.maxDate===undefined){inst.settings.maxDate=this._formatDate(inst,maxDate);}\nif(\"disabled\"in settings){if(settings.disabled){this._disableDatepicker(target);}else{this._enableDatepicker(target);}}\nthis._attachments($(target),inst);this._autoSize(inst);this._setDate(inst,date);this._updateAlternate(inst);this._updateDatepicker(inst);}},_changeDatepicker:function(target,name,value){this._optionDatepicker(target,name,value);},_refreshDatepicker:function(target){var inst=this._getInst(target);if(inst){this._updateDatepicker(inst);}},_setDateDatepicker:function(target,date){var inst=this._getInst(target);if(inst){this._setDate(inst,date);this._updateDatepicker(inst);this._updateAlternate(inst);}},_getDateDatepicker:function(target,noDefault){var inst=this._getInst(target);if(inst&&!inst.inline){this._setDateFromField(inst,noDefault);}\nreturn(inst?this._getDate(inst):null);},_doKeyDown:function(event){var onSelect,dateStr,sel,inst=$.datepicker._getInst(event.target),handled=true,isRTL=inst.dpDiv.is(\".ui-datepicker-rtl\");inst._keyEvent=true;if($.datepicker._datepickerShowing){switch(event.keyCode){case 9:$.datepicker._hideDatepicker();handled=false;break;case 13:sel=$(\"td.\"+$.datepicker._dayOverClass+\":not(.\"+\n$.datepicker._currentClass+\")\",inst.dpDiv);if(sel[0]){$.datepicker._selectDay(event.target,inst.selectedMonth,inst.selectedYear,sel[0]);}\nonSelect=$.datepicker._get(inst,\"onSelect\");if(onSelect){dateStr=$.datepicker._formatDate(inst);onSelect.apply((inst.input?inst.input[0]:null),[dateStr,inst]);}else{$.datepicker._hideDatepicker();}\nreturn false;case 27:$.datepicker._hideDatepicker();break;case 33:$.datepicker._adjustDate(event.target,(event.ctrlKey?-$.datepicker._get(inst,\"stepBigMonths\"):-$.datepicker._get(inst,\"stepMonths\")),\"M\");break;case 34:$.datepicker._adjustDate(event.target,(event.ctrlKey?+$.datepicker._get(inst,\"stepBigMonths\"):+$.datepicker._get(inst,\"stepMonths\")),\"M\");break;case 35:if(event.ctrlKey||event.metaKey){$.datepicker._clearDate(event.target);}\nhandled=event.ctrlKey||event.metaKey;break;case 36:if(event.ctrlKey||event.metaKey){$.datepicker._gotoToday(event.target);}\nhandled=event.ctrlKey||event.metaKey;break;case 37:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,(isRTL?+1:-1),\"D\");}\nhandled=event.ctrlKey||event.metaKey;if(event.originalEvent.altKey){$.datepicker._adjustDate(event.target,(event.ctrlKey?-$.datepicker._get(inst,\"stepBigMonths\"):-$.datepicker._get(inst,\"stepMonths\")),\"M\");}\nbreak;case 38:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,-7,\"D\");}\nhandled=event.ctrlKey||event.metaKey;break;case 39:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,(isRTL?-1:+1),\"D\");}\nhandled=event.ctrlKey||event.metaKey;if(event.originalEvent.altKey){$.datepicker._adjustDate(event.target,(event.ctrlKey?+$.datepicker._get(inst,\"stepBigMonths\"):+$.datepicker._get(inst,\"stepMonths\")),\"M\");}\nbreak;case 40:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,+7,\"D\");}\nhandled=event.ctrlKey||event.metaKey;break;default:handled=false;}}else if(event.keyCode===36&&event.ctrlKey){$.datepicker._showDatepicker(this);}else{handled=false;}\nif(handled){event.preventDefault();event.stopPropagation();}},_doKeyPress:function(event){var chars,chr,inst=$.datepicker._getInst(event.target);if($.datepicker._get(inst,\"constrainInput\")){chars=$.datepicker._possibleChars($.datepicker._get(inst,\"dateFormat\"));chr=String.fromCharCode(event.charCode==null?event.keyCode:event.charCode);
2return event.ctrlKey||event.metaKey||(chr<\" \"||!chars||chars.indexOf(chr)>-1);}},_doKeyUp:function(event){var date,inst=$.datepicker._getInst(event.target);if(inst.input.val()!==inst.lastVal){try{date=$.datepicker.parseDate($.datepicker._get(inst,\"dateFormat\"),(inst.input?inst.input.val():null),$.datepicker._getFormatConfig(inst));if(date){$.datepicker._setDateFromField(inst);$.datepicker._updateAlternate(inst);$.datepicker._updateDatepicker(inst);}}catch(err){}}\nreturn true;},_showDatepicker:function(input){input=input.target||input;if(input.nodeName.toLowerCase()!==\"input\"){input=$(\"input\",input.parentNode)[0];}\nif($.datepicker._isDisabledDatepicker(input)||$.datepicker._lastInput===input){return;}\nvar inst,beforeShow,beforeShowSettings,isFixed,offset,showAnim,duration;inst=$.datepicker._getInst(input);if($.datepicker._curInst&&$.datepicker._curInst!==inst){$.datepicker._curInst.dpDiv.stop(true,true);if(inst&&$.datepicker._datepickerShowing){$.datepicker._hideDatepicker($.datepicker._curInst.input[0]);}}
2\nbeforeShow=$.datepicker._get(inst,\"beforeShow\");beforeShowSettings=beforeShow?beforeShow.apply(input,[input,inst]):{};if(beforeShowSettings===false){return;}\nextendRemove(inst.settings,beforeShowSettings);inst.lastVal=null;$.datepicker._lastInput=input;$.datepicker._setDateFromField(inst);if($.datepicker._inDialog){input.value=\"\";}\nif(!$.datepicker._pos){$.datepicker._pos=$.datepicker._findPos(input);$.datepicker._pos[1]+=input.offsetHeight;}\nisFixed=false;$(input).parents().each(function(){isFixed|=$(this).css(\"position\")===\"fixed\";return!isFixed;});offset={left:$.datepicker._pos[0],top:$.datepicker._pos[1]};$.datepicker._pos=null;inst.dpDiv.empty();inst.dpDiv.css({position:\"absolute\",display:\"block\",top:\"-1000px\"});$.datepicker._updateDatepicker(inst);offset=$.datepicker._checkOffset(inst,offset,isFixed);inst.dpDiv.css({position:($.datepicker._inDialog&&$.blockUI?\"static\":(isFixed?\"fixed\":\"absolute\")),display:\"none\",left:offset.left+\"px\",top:offset.top+\"px\"});if(!inst.inline){showAnim=$.datepicker._get(inst,\"showAnim\");duration=$.datepicker._get(inst,\"duration\");inst.dpDiv.zIndex($(input).zIndex()+1);$.datepicker._datepickerShowing=true;if($.effects&&$.effects.effect[showAnim]){inst.dpDiv.show(showAnim,$.datepicker._get(inst,\"showOptions\"),duration);}else{inst.dpDiv[showAnim||\"show\"](showAnim?duration:null);}\nif($.datepicker._shouldFocusInput(inst)){inst.input.focus();}\n$.datepicker._curInst=inst;}},_updateDatepicker:function(inst){this.maxRows=4;instActive=inst;inst.dpDiv.empty().append(this._generateHTML(inst));this._attachHandlers(inst);inst.dpDiv.find(\".\"+this._dayOverClass+\" a\").mouseover();var origyearshtml,numMonths=this._getNumberOfMonths(inst),cols=numMonths[1],width=17;inst.dpDiv.removeClass(\"ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4\").width(\"\");if(cols>1){inst.dpDiv.addClass(\"ui-datepicker-multi-\"+cols).css(\"width\",(width*cols)+\"em\");}\ninst.dpDiv[(numMonths[0]!==1||numMonths[1]!==1?\"add\":\"remove\")+\"Class\"](\"ui-datepicker-multi\");inst.dpDiv[(this._get(inst,\"isRTL\")?\"add\":\"remove\")+\"Class\"](\"ui-datepicker-rtl\");if(inst===$.datepicker._curInst&&$.datepicker._datepickerShowing&&$.datepicker._shouldFocusInput(inst)){inst.input.focus();}\nif(inst.yearshtml){origyearshtml=inst.yearshtml;setTimeout(function(){if(origyearshtml===inst.yearshtml&&inst.yearshtml){inst.dpDiv.find(\"select.ui-datepicker-year:first\").replaceWith(inst.yearshtml);}\norigyearshtml=inst.yearshtml=null;},0);}},_shouldFocusInput:function(inst){return inst.input&&inst.input.is(\":visible\")&&!inst.input.is(\":disabled\")&&!inst.input.is(\":focus\");},_checkOffset:function(inst,offset,isFixed){var dpWidth=inst.dpDiv.outerWidth(),dpHeight=inst.dpDiv.outerHeight(),inputWidth=inst.input?inst.input.outerWidth():0,inputHeight=inst.input?inst.input.outerHeight():0,viewWidth=document.documentElement.clientWidth+(isFixed?0:$(document).scrollLeft()),viewHeight=document.documentElement.clientHeight+(isFixed?0:$(document).scrollTop());offset.left-=(this._get(inst,\"isRTL\")?(dpWidth-inputWidth):0);offset.left-=(isFixed&&offset.left===inst.input.offset().left)?$(document).scrollLeft():0;offset.top-=(isFixed&&offset.top===(inst.input.offset().top+inputHeight))?$(document).scrollTop():0;offset.left-=Math.min(offset.left,(offset.left+dpWidth>viewWidth&&viewWidth>dpWidth)?Math.abs(offset.left+dpWidth-viewWidth):0);offset.top-=Math.min(offset.top,(offset.top+dpHeight>viewHeight&&viewHeight>dpHeight)?Math.abs(dpHeight+inputHeight):0);return offset;},_findPos:function(obj){var position,inst=this._getInst(obj),isRTL=this._get(inst,\"isRTL\");while(obj&&(obj.type===\"hidden\"||obj.nodeType!==1||$.expr.filters.hidden(obj))){obj=obj[isRTL?\"previousSibling\":\"nextSibling\"];}\nposition=$(obj).offset();return[position.left,position.top];},_hideDatepicker:function(input){var showAnim,duration,postProcess,onClose,inst=this._curInst;if(!inst||(input&&inst!==$.data(input,PROP_NAME))){return;}\nif(this._datepickerShowing){showAnim=this._get(inst,\"showAnim\");duration=this._get(inst,\"duration\");postProcess=function(){$.datepicker._tidyDialog(inst);};if($.effects&&($.effects.effect[showAnim]||$.effects[showAnim])){inst.dpDiv.hide(showAnim,$.datepicker._get(inst,\"showOptions\"),duration,postProcess);}else{inst.dpDiv[(showAnim===\"slideDown\"?\"slideUp\":(showAnim===\"fadeIn\"?\"fadeOut\":\"hide\"))]((showAnim?duration:null),postProcess);}\nif(!showAnim){postProcess();}\nthis._datepickerShowing=false;onClose=this._get(inst,\"onClose\");if(onClose){onClose.apply((inst.input?inst.input[0]:null),[(inst.input?inst.input.val():\"\"),inst]);}\nthis._lastInput=null;if(this._inDialog){this._dialogInput.css({position:\"absolute\",left:\"0\",top:\"-100px\"});if($.blockUI){$.unblockUI();$(\"body\").append(this.dpDiv);}}\nthis._inDialog=false;}},_tidyDialog:function(inst){inst.dpDiv.removeClass(this._dialogClass).unbind(\".ui-datepicker-calendar\");},_checkExternalClick:function(event){if(!$.datepicker._curInst){return;}\nvar $target=$(event.target),inst=$.datepicker._getInst($target[0]);if((($target[0].id!==$.datepicker._mainDivId&&$target.parents(\"#\"+$.datepicker._mainDivId).length===0&&!$target.hasClass($.datepicker.markerClassName)&&!$target.closest(\".\"+$.datepicker._triggerClass).length&&$.datepicker._datepickerShowing&&!($.datepicker._inDialog&&$.blockUI)))||($target.hasClass($.datepicker.markerClassName)&&$.datepicker._curInst!==inst)){$.datepicker._hideDatepicker();}},_adjustDate:function(id,offset,period){var target=$(id),inst=this._getInst(target[0]);if(this._isDisabledDatepicker(target[0])){return;}\nthis._adjustInstDate(inst,offset+\n(period===\"M\"?this._get(inst,\"showCurrentAtPos\"):0),period);this._updateDatepicker(inst);},_gotoToday:function(id){var date,target=$(id),inst=this._getInst(target[0]);if(this._get(inst,\"gotoCurrent\")&&inst.currentDay){inst.selectedDay=inst.currentDay;inst.drawMonth=inst.selectedMonth=inst.currentMonth;inst.drawYear=inst.selectedYear=inst.currentYear;}else{date=new Date();inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear();}\nthis._notifyChange(inst);this._adjustDate(target);},_selectMonthYear:function(id,select,period){var target=$(id),inst=this._getInst(target[0]);inst[\"selected\"+(period===\"M\"?\"Month\":\"Year\")]=inst[\"draw\"+(period===\"M\"?\"Month\":\"Year\")]=parseInt(select.options[select.selectedIndex].value,10);this._notifyChange(inst);this._adjustDate(target);},_selectDay:function(id,month,year,td){var inst,target=$(id);if($(td).hasClass(this._unselectableClass)||this._isDisabledDatepicker(target[0])){return;}\ninst=this._getInst(target[0]);inst.selectedDay=inst.currentDay=$(\"a\",td).html();inst.selectedMonth=inst.currentMonth=month;inst.selectedYear=inst.currentYear=year;this._selectDate(id,this._formatDate(inst,inst.currentDay,inst.currentMonth,inst.currentYear));},_clearDate:function(id){var target=$(id);this._selectDate(target,\"\");},_selectDate:function(id,dateStr){var onSelect,target=$(id),inst=this._getInst(target[0]);dateStr=(dateStr!=null?dateStr:this._formatDate(inst));if(inst.input){inst.input.val(dateStr);}\nthis._updateAlternate(inst);onSelect=this._get(inst,\"onSelect\");if(onSelect){onSelect.apply((inst.input?inst.input[0]:null),[dateStr,inst]);}else if(inst.input){inst.input.trigger(\"change\");}\nif(inst.inline){this._updateDatepicker(inst);}else{this._hideDatepicker();this._lastInput=inst.input[0];if(typeof(inst.input[0])!==\"object\"){inst.input.focus();}\nthis._lastInput=null;}},_updateAlternate:function(inst){var altFormat,date,dateStr,altField=this._get(inst,\"altField\");if(altField){altFormat=this._get(inst,\"altFormat\")||this._get(inst,\"dateFormat\");date=this._getDate(inst);dateStr=this.formatDate(altFormat,date,this._getFormatConfig(inst));$(altField).each(function(){$(this).val(dateStr);});}},noWeekends:function(date){var day=date.getDay();return[(day>0&&day<6),\"\"];},iso8601Week:function(date){var time,checkDate=new Date(date.getTime());checkDate.setDate(checkDate.getDate()+4-(checkDate.getDay()||7));time=checkDate.getTime();checkDate.setMonth(0);checkDate.setDate(1);return Math.floor(Math.round((time-checkDate)/ 86400000)/ 7)+1;},parseDate:function(format,value,settings){if(format==null||value==null){throw\"Invalid arguments\";}\nvalue=(typeof value===\"object\"?value.toString():value+\"\");if(value===\"\"){return null;}\nvar iFormat,dim,extra,iValue=0,shortYearCutoffTemp=(settings?settings.shortYearCutoff:null)||this._defaults.shortYearCutoff,shortYearCutoff=(typeof shortYearCutoffTemp!==\"string\"?shortYearCutoffTemp:new Date().getFullYear()%100+parseInt(shortYearCutoffTemp,10)),dayNamesShort=(settings?settings.dayNamesShort:null)||this._defaults.dayNamesShort,dayNames=(settings?settings.dayNames:null)||this._defaults.dayNames,monthNamesShort=(settings?settings.monthNamesShort:null)||this._defaults.monthNamesShort,monthNames=(settings?settings.monthNames:null)||this._defaults.monthNames,year=-1,month=-1,day=-1,doy=-1,literal=false,date,lookAhead=function(match){var matches=(iFormat+1<format.length&&format.charAt(iFormat+1)===match);if(matches){iFormat++;}\nreturn matches;},getNumber=function(match){var isDoubled=lookAhead(match),size=(match===\"@\"?14:(match===\"!\"?20:(match===\"y\"&&isDoubled?4:(match===\"o\"?3:2)))),digits=new RegExp(\"^\\\\d{1,\"+size+\"}\"),num=value.substring(iValue).match(digits);if(!num){throw\"Missing number at position \"+iValue;}\niValue+=num[0].length;return parseInt(num[0],10);},getName=function(match,shortNames,longNames){var index=-1,names=$.map(lookAhead(match)?longNames:shortNames,function(v,k){return[[k,v]];}).sort(function(a,b){return-(a[1].length-b[1].length);});$.each(names,function(i,pair){var name=pair[1];if(value.substr(iValue,name.length).toLowerCase()===name.toLowerCase()){index=pair[0];iValue+=name.length;return false;}});if(index!==-1){return index+1;}else{throw\"Unknown name at position \"+iValue;}},checkLiteral=function(){if(value.charAt(iValue)!==format.charAt(iFormat)){throw\"Unexpected literal at position \"+iValue;}\niValue++;};for(iFormat=0;iFormat<format.length;iFormat++){if(literal){if(format.charAt(iFormat)===\"'\"&&!lookAhead(\"'\")){literal=false;}else{checkLiteral();}}else{switch(format.charAt(iFormat)){case\"d\":day=getNumber(\"d\");break;case\"D\":getName(\"D\",dayNamesShort,dayNames);break;case\"o\":doy=getNumber(\"o\");break;case\"m\":month=getNumber(\"m\");break;case\"M\":month=getName(\"M\",monthNamesShort,monthNames);break;case\"y\":year=getNumber(\"y\");break;case\"@\":date=new Date(getNumber(\"@\"));year=date.getFullYear();month=date.getMonth()+1;day=date.getDate();break;case\"!\":date=new Date((getNumber(\"!\")-this._ticksTo1970)/ 10000);year=date.getFullYear();month=date.getMonth()+1;day=date.getDate();break;case\"'\":if(lookAhead(\"'\")){checkLiteral();}else{literal=true;}\nbreak;default:checkLiteral();}}}\nif(iValue<value.length){extra=value.substr(iValue);if(!/^\\s+/.test(extra)){throw\"Extra/unparsed characters found in date: \"+extra;}}\nif(year===-1){year=new Date().getFullYear();}else if(year<100){year+=new Date().getFullYear()-new Date().getFullYear()%100+\n(year<=shortYearCutoff?0:-100);}\nif(doy>-1){month=1;day=doy;do{dim=this._getDaysInMonth(year,month-1);if(day<=dim){break;}\nmonth++;day-=dim;}while(true);}\ndate=this._daylightSavingAdjust(new Date(year,month-1,day));if(date.getFullYear()!==year||date.getMonth()+1!==month||date.getDate()!==day){throw\"Invalid date\";}\nreturn date;},ATOM:\"yy-mm-dd\",COOKIE:\"D, dd M yy\",ISO_8601:\"yy-mm-dd\",RFC_822:\"D, d M y\",RFC_850:\"DD, dd-M-y\",RFC_1036:\"D, d M y\",RFC_1123:\"D, d M yy\",RFC_2822:\"D, d M yy\",RSS:\"D, d M y\",TICKS:\"!\",TIMESTAMP:\"@\",W3C:\"yy-mm-dd\",_ticksTo1970:(((1970-1)*365+Math.floor(1970 / 4)-Math.floor(1970 / 100)+\nMath.floor(1970 / 400))*24*60*60*10000000),formatDate:function(format,date,settings){if(!date){return\"\";}\nvar iFormat,dayNamesShort=(settings?settings.dayNamesShort:null)||this._defaults.dayNamesShort,dayNames=(settings?settings.dayNames:null)||this._defaults.dayNames,monthNamesShort=(settings?settings.monthNamesShort:null)||this._defaults.monthNamesShort,monthNames=(settings?settings.monthNames:null)||this._defaults.monthNames,lookAhead=function(match){var matches=(iFormat+1<format.length&&format.charAt(iFormat+1)===match);if(matches){iFormat++;}\nreturn matches;},formatNumber=function(match,value,len){var num=\"\"+value;if(lookAhead(match)){while(num.length<len){num=\"0\"+num;}}\nreturn num;},formatName=function(match,value,shortNames,longNames){return(lookAhead(match)?longNames[value]:shortNames[value]);},output=\"\",literal=false;
2if(date){for(iFormat=0;iFormat<format.length;iFormat++){if(literal){if(format.charAt(iFormat)===\"'\"&&!lookAhead(\"'\")){literal=false;}else{output+=format.charAt(iFormat);}}else{switch(format.charAt(iFormat)){case\"d\":output+=formatNumber(\"d\",date.getDate(),2);break;case\"D\":output+=formatName(\"D\",date.getDay(),dayNamesShort,dayNames);break;case\"o\":output+=formatNumber(\"o\",Math.round((new Date(date.getFullYear(),date.getMonth(),date.getDate()).getTime()-new Date(date.getFullYear(),0,0).getTime())/ 86400000),3);break;case\"m\":output+=formatNumber(\"m\",date.getMonth()+1,2);break;case\"M\":output+=formatName(\"M\",date.getMonth(),monthNamesShort,monthNames);break;case\"y\":output+=(lookAhead(\"y\")?date.getFullYear():(date.getYear()%100<10?\"0\":\"\")+date.getYear()%100);break;case\"@\":output+=date.getTime();break;case\"!\":output+=date.getTime()*10000+this._ticksTo1970;break;case\"'\":if(lookAhead(\"'\")){output+=\"'\";}else{literal=true;}\nbreak;default:output+=format.charAt(iFormat);}}}}\nreturn output;},_possibleChars:function(format){var iFormat,chars=\"\",literal=false,lookAhead=function(match){var matches=(iFormat+1<format.length&&format.charAt(iFormat+1)===match);if(matches){iFormat++;}\nreturn matches;};for(iFormat=0;iFormat<format.length;iFormat++){if(literal){if(format.charAt(iFormat)===\"'\"&&!lookAhead(\"'\")){literal=false;}else{chars+=format.charAt(iFormat);}}else{switch(format.charAt(iFormat)){case\"d\":case\"m\":case\"y\":case\"@\":chars+=\"0123456789\";break;case\"D\":case\"M\":return null;case\"'\":if(lookAhead(\"'\")){chars+=\"'\";}else{literal=true;}\nbreak;default:chars+=format.charAt(iFormat);}}}\nreturn chars;},_get:function(inst,name){return inst.settings[name]!==undefined?inst.settings[name]:this._defaults[name];},_setDateFromField:function(inst,noDefault){if(inst.input.val()===inst.lastVal){return;}\nvar dateFormat=this._get(inst,\"dateFormat\"),dates=inst.lastVal=inst.input?inst.input.val():null,defaultDate=this._getDefaultDate(inst),date=defaultDate,settings=this._getFormatConfig(inst);try{date=this.parseDate(dateFormat,dates,settings)||defaultDate;}catch(event){dates=(noDefault?\"\":dates);}\ninst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear();inst.currentDay=(dates?date.getDate():0);inst.currentMonth=(dates?date.getMonth():0);inst.currentYear=(dates?date.getFullYear():0);this._adjustInstDate(inst);},_getDefaultDate:function(inst){return this._restrictMinMax(inst,this._determineDate(inst,this._get(inst,\"defaultDate\"),new Date()));},_determineDate:function(inst,date,defaultDate){var offsetNumeric=function(offset){var date=new Date();date.setDate(date.getDate()+offset);return date;},offsetString=function(offset){try{return $.datepicker.parseDate($.datepicker._get(inst,\"dateFormat\"),offset,$.datepicker._getFormatConfig(inst));}catch(e){}\nvar date=(offset.toLowerCase().match(/^c/)?$.datepicker._getDate(inst):null)||new Date(),year=date.getFullYear(),month=date.getMonth(),day=date.getDate(),pattern=/([+\\-]?[0-9]+)\\s*(d|D|w|W|m|M|y|Y)?/g,matches=pattern.exec(offset);while(matches){switch(matches[2]||\"d\"){case\"d\":case\"D\":day+=parseInt(matches[1],10);break;case\"w\":case\"W\":day+=parseInt(matches[1],10)*7;break;case\"m\":case\"M\":month+=parseInt(matches[1],10);day=Math.min(day,$.datepicker._getDaysInMonth(year,month));break;case\"y\":case\"Y\":year+=parseInt(matches[1],10);day=Math.min(day,$.datepicker._getDaysInMonth(year,month));break;}\nmatches=pattern.exec(offset);}\nreturn new Date(year,month,day);},newDate=(date==null||date===\"\"?defaultDate:(typeof date===\"string\"?offsetString(date):(typeof date===\"number\"?(isNaN(date)?defaultDate:offsetNumeric(date)):new Date(date.getTime()))));newDate=(newDate&&newDate.toString()===\"Invalid Date\"?defaultDate:newDate);if(newDate){newDate.setHours(0);newDate.setMinutes(0);newDate.setSeconds(0);newDate.setMilliseconds(0);}\nreturn this._daylightSavingAdjust(newDate);},_daylightSavingAdjust:function(date){if(!date){return null;}\ndate.setHours(date.getHours()>12?date.getHours()+2:0);return date;},_setDate:function(inst,date,noChange){var clear=!date,origMonth=inst.selectedMonth,origYear=inst.selectedYear,newDate=this._restrictMinMax(inst,this._determineDate(inst,date,new Date()));inst.selectedDay=inst.currentDay=newDate.getDate();inst.drawMonth=inst.selectedMonth=inst.currentMonth=newDate.getMonth();inst.drawYear=inst.selectedYear=inst.currentYear=newDate.getFullYear();if((origMonth!==inst.selectedMonth||origYear!==inst.selectedYear)&&!noChange){this._notifyChange(inst);}\nthis._adjustInstDate(inst);if(inst.input){inst.input.val(clear?\"\":this._formatDate(inst));}},_getDate:function(inst){var startDate=(!inst.currentYear||(inst.input&&inst.input.val()===\"\")?null:this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));return startDate;},_attachHandlers:function(inst){var stepMonths=this._get(inst,\"stepMonths\"),id=\"#\"+inst.id.replace(/\\\\\\\\/g,\"\\\\\");
2inst.dpDiv.find(\"[data-handler]\").map(function(){var handler={prev:function(){$.datepicker._adjustDate(id,-stepMonths,\"M\");},next:function(){$.datepicker._adjustDate(id,+stepMonths,\"M\");},hide:function(){$.datepicker._hideDatepicker();},today:function(){$.datepicker._gotoToday(id);},selectDay:function(){$.datepicker._selectDay(id,+this.getAttribute(\"data-month\"),+this.getAttribute(\"data-year\"),this);return false;},selectMonth:function(){$.datepicker._selectMonthYear(id,this,\"M\");return false;},selectYear:function(){$.datepicker._selectMonthYear(id,this,\"Y\");return false;}};$(this).bind(this.getAttribute(\"data-event\"),handler[this.getAttribute(\"data-handler\")]);});},_generateHTML:function(inst){var maxDraw,prevText,prev,nextText,next,currentText,gotoDate,controls,buttonPanel,firstDay,showWeek,dayNames,dayNamesMin,monthNames,monthNamesShort,beforeShowDay,showOtherMonths,selectOtherMonths,defaultDate,html,dow,row,group,col,selectedDate,cornerClass,calender,thead,day,daysInMonth,leadDays,curRows,numRows,printDate,dRow,tbody,daySettings,otherMonth,unselectable,tempDate=new Date(),today=this._daylightSavingAdjust(new Date(tempDate.getFullYear(),tempDate.getMonth(),tempDate.getDate())),isRTL=this._get(inst,\"isRTL\"),showButtonPanel=this._get(inst,\"showButtonPanel\"),hideIfNoPrevNext=this._get(inst,\"hideIfNoPrevNext\"),navigationAsDateFormat=this._get(inst,\"navigationAsDateFormat\"),numMonths=this._getNumberOfMonths(inst),showCurrentAtPos=this._get(inst,\"showCurrentAtPos\"),stepMonths=this._get(inst,\"stepMonths\"),isMultiMonth=(numMonths[0]!==1||numMonths[1]!==1),currentDate=this._daylightSavingAdjust((!inst.currentDay?new Date(9999,9,9):new Date(inst.currentYear,inst.currentMonth,inst.currentDay))),minDate=this._getMinMaxDate(inst,\"min\"),maxDate=this._getMinMaxDate(inst,\"max\"),drawMonth=inst.drawMonth-showCurrentAtPos,drawYear=inst.drawYear;if(drawMonth<0){drawMonth+=12;drawYear--;}\nif(maxDate){maxDraw=this._daylightSavingAdjust(new Date(maxDate.getFullYear(),maxDate.getMonth()-(numMonths[0]*numMonths[1])+1,maxDate.getDate()));maxDraw=(minDate&&maxDraw<minDate?minDate:maxDraw);while(this._daylightSavingAdjust(new Date(drawYear,drawMonth,1))>maxDraw){drawMonth--;if(drawMonth<0){drawMonth=11;drawYear--;}}}\ninst.drawMonth=drawMonth;inst.drawYear=drawYear;prevText=this._get(inst,\"prevText\");prevText=(!navigationAsDateFormat?prevText:this.formatDate(prevText,this._daylightSavingAdjust(new Date(drawYear,drawMonth-stepMonths,1)),this._getFormatConfig(inst)));prev=(this._canAdjustMonth(inst,-1,drawYear,drawMonth)?\"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click'\"+\" title='\"+prevText+\"'><span class='ui-icon ui-icon-circle-triangle-\"+(isRTL?\"e\":\"w\")+\"'>\"+prevText+\"</span></a>\":(hideIfNoPrevNext?\"\":\"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='\"+prevText+\"'><span class='ui-icon ui-icon-circle-triangle-\"+(isRTL?\"e\":\"w\")+\"'>\"+prevText+\"</span></a>\"));nextText=this._get(inst,\"nextText\");nextText=(!navigationAsDateFormat?nextText:this.formatDate(nextText,this._daylightSavingAdjust(new Date(drawYear,drawMonth+stepMonths,1)),this._getFormatConfig(inst)));next=(this._canAdjustMonth(inst,+1,drawYear,drawMonth)?\"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click'\"+\" title='\"+nextText+\"'><span class='ui-icon ui-icon-circle-triangle-\"+(isRTL?\"w\":\"e\")+\"'>\"+nextText+\"</span></a>\":(hideIfNoPrevNext?\"\":\"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='\"+nextText+\"'><span class='ui-icon ui-icon-circle-triangle-\"+(isRTL?\"w\":\"e\")+\"'>\"+nextText+\"</span></a>\"));currentText=this._get(inst,\"currentText\");gotoDate=(this._get(inst,\"gotoCurrent\")&&inst.currentDay?currentDate:today);currentText=(!navigationAsDateFormat?currentText:this.formatDate(currentText,gotoDate,this._getFormatConfig(inst)));controls=(!inst.inline?\"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>\"+\nthis._get(inst,\"closeText\")+\"</button>\":\"\");buttonPanel=(showButtonPanel)?\"<div class='ui-datepicker-buttonpane ui-widget-content'>\"+(isRTL?controls:\"\")+\n(this._isInRange(inst,gotoDate)?\"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'\"+\">\"+currentText+\"</button>
2\":\"\")+(isRTL?\"\":controls)+\"</div>\":\"\";firstDay=parseInt(this._get(inst,\"firstDay\"),10);firstDay=(isNaN(firstDay)?0:firstDay);showWeek=this._get(inst,\"showWeek\");dayNames=this._get(inst,\"dayNames\");dayNamesMin=this._get(inst,\"dayNamesMin\");monthNames=this._get(inst,\"monthNames\");monthNamesShort=this._get(inst,\"monthNamesShort\");beforeShowDay=this._get(inst,\"beforeShowDay\");showOtherMonths=this._get(inst,\"showOtherMonths\");selectOtherMonths=this._get(inst,\"selectOtherMonths\");defaultDate=this._getDefaultDate(inst);html=\"\";dow;for(row=0;row<numMonths[0];row++){group=\"\";this.maxRows=4;for(col=0;col<numMonths[1];col++){selectedDate=this._daylightSavingAdjust(new Date(drawYear,drawMonth,inst.selectedDay));cornerClass=\" ui-corner-all\";calender=\"\";if(isMultiMonth){calender+=\"<div class='ui-datepicker-group\";if(numMonths[1]>1){switch(col){case 0:calender+=\" ui-datepicker-group-first\";cornerClass=\" ui-corner-\"+(isRTL?\"right\":\"left\");break;case numMonths[1]-1:calender+=\" ui-datepicker-group-last\";cornerClass=\" ui-corner-\"+(isRTL?\"left\":\"right\");break;default:calender+=\" ui-datepicker-group-middle\";cornerClass=\"\";break;}}\ncalender+=\"'>\";}\ncalender+=\"<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix\"+cornerClass+\"'>\"+\n(/all|left/.test(cornerClass)&&row===0?(isRTL?next:prev):\"\")+\n(/all|right/.test(cornerClass)&&row===0?(isRTL?prev:next):\"\")+\nthis._generateMonthYearHeader(inst,drawMonth,drawYear,minDate,maxDate,row>0||col>0,monthNames,monthNamesShort)+\"</div><table class='ui-datepicker-calendar'><thead>\"+\"<tr>\";thead=(showWeek?\"<th class='ui-datepicker-week-col'>\"+this._get(inst,\"weekHeader\")+\"</th>\":\"\");for(dow=0;dow<7;dow++){day=(dow+firstDay)%7;thead+=\"<th\"+((dow+firstDay+6)%7>=5?\" class='ui-datepicker-week-end'\":\"\")+\">\"+\"<span title='\"+dayNames[day]+\"'>\"+dayNamesMin[day]+\"</span></th>\";}\ncalender+=thead+\"</tr></thead><tbody>\";daysInMonth=this._getDaysInMonth(drawYear,drawMonth);if(drawYear===inst.selectedYear&&drawMonth===inst.selectedMonth){inst.selectedDay=Math.min(inst.selectedDay,daysInMonth);}\nleadDays=(this._getFirstDayOfMonth(drawYear,drawMonth)-firstDay+7)%7;curRows=Math.ceil((leadDays+daysInMonth)/ 7);numRows=(isMultiMonth?this.maxRows>curRows?this.maxRows:curRows:curRows);this.maxRows=numRows;printDate=this._daylightSavingAdjust(new Date(drawYear,drawMonth,1-leadDays));for(dRow=0;dRow<numRows;dRow++){calender+=\"<tr>\";tbody=(!showWeek?\"\":\"<td class='ui-datepicker-week-col'>\"+\nthis._get(inst,\"calculateWeek\")(printDate)+\"</td>\");for(dow=0;dow<7;dow++){daySettings=(beforeShowDay?beforeShowDay.apply((inst.input?inst.input[0]:null),[printDate]):[true,\"\"]);otherMonth=(printDate.getMonth()!==drawMonth);unselectable=(otherMonth&&!selectOtherMonths)||!daySettings[0]||(minDate&&printDate<minDate)||(maxDate&&printDate>maxDate);tbody+=\"<td class='\"+\n((dow+firstDay+6)%7>=5?\" ui-datepicker-week-end\":\"\")+\n(otherMonth?\" ui-datepicker-other-month\":\"\")+\n((printDate.getTime()===selectedDate.getTime()&&drawMonth===inst.selectedMonth&&inst._keyEvent)||(defaultDate.getTime()===printDate.getTime()&&defaultDate.getTime()===selectedDate.getTime())?\" \"+this._dayOverClass:\"\")+\n(unselectable?\" \"+this._unselectableClass+\" ui-state-disabled\":\"\")+\n(otherMonth&&!showOtherMonths?\"\":\" \"+daySettings[1]+\n(printDate.getTime()===currentDate.getTime()?\" \"+this._currentClass:\"\")+\n(printDate.getTime()===today.getTime()?\" ui-datepicker-today\":\"\"))+\"'\"+\n((!otherMonth||showOtherMonths)&&daySettings[2]?\" title='\"+daySettings[2].replace(/'/g,\"&#39;\")+\"'\":\"\")+\n(unselectable?\"\":\" data-handler='selectDay' data-event='click' data-month='\"+printDate.getMonth()+\"' data-year='\"+printDate.getFullYear()+\"'\")+\">\"+\n(otherMonth&&!showOtherMonths?\"&#xa0;\":(unselectable?\"<span class='ui-state-default'>\"+printDate.getDate()+\"</span>\":\"<a class='ui-state-default\"+\n(printDate.getTime()===today.getTime()?\" ui-state-highlight\":\"\")+\n(printDate.getTime()===currentDate.getTime()?\" ui-state-active\":\"\")+\n(otherMonth?\" ui-priority-secondary\":\"\")+\"' href='#'>\"+printDate.getDate()+\"</a>\"))+\"</td>\";printDate.setDate(printDate.getDate()+1);printDate=this._daylightSavingAdjust(printDate);}\ncalender+=tbody+\"</tr>\";}\ndrawMonth++;if(drawMonth>
211){drawMonth=0;drawYear++;}\ncalender+=\"</tbody></table>\"+(isMultiMonth?\"</div>\"+\n((numMonths[0]>0&&col===numMonths[1]-1)?\"<div class='ui-datepicker-row-break'></div>\":\"\"):\"\");group+=calender;}\nhtml+=group;}\nhtml+=buttonPanel;inst._keyEvent=false;return html;},_generateMonthYearHeader:function(inst,drawMonth,drawYear,minDate,maxDate,secondary,monthNames,monthNamesShort){var inMinYear,inMaxYear,month,years,thisYear,determineYear,year,endYear,changeMonth=this._get(inst,\"changeMonth\"),changeYear=this._get(inst,\"changeYear\"),showMonthAfterYear=this._get(inst,\"showMonthAfterYear\"),html=\"<div class='ui-datepicker-title'>\",monthHtml=\"\";if(secondary||!changeMonth){monthHtml+=\"<span class='ui-datepicker-month'>\"+monthNames[drawMonth]+\"</span>\";}else{inMinYear=(minDate&&minDate.getFullYear()===drawYear);inMaxYear=(maxDate&&maxDate.getFullYear()===drawYear);monthHtml+=\"<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>\";for(month=0;month<12;month++){if((!inMinYear||month>=minDate.getMonth())&&(!inMaxYear||month<=maxDate.getMonth())){monthHtml+=\"<option value='\"+month+\"'\"+\n(month===drawMonth?\" selected='selected'\":\"\")+\">\"+monthNamesShort[month]+\"</option>\";}}\nmonthHtml+=\"</select>\";}\nif(!showMonthAfterYear){html+=monthHtml+(secondary||!(changeMonth&&changeYear)?\"&#xa0;\":\"\");}\nif(!inst.yearshtml){inst.yearshtml=\"\";if(secondary||!changeYear){html+=\"<span class='ui-datepicker-year'>\"+drawYear+\"</span>\";}else{years=this._get(inst,\"yearRange\").split(\":\");thisYear=new Date().getFullYear();determineYear=function(value){var year=(value.match(/c[+\\-].*/)?drawYear+parseInt(value.substring(1),10):(value.match(/[+\\-].*/)?thisYear+parseInt(value,10):parseInt(value,10)));return(isNaN(year)?thisYear:year);};year=determineYear(years[0]);endYear=Math.max(year,determineYear(years[1]||\"\"));year=(minDate?Math.max(year,minDate.getFullYear()):year);endYear=(maxDate?Math.min(endYear,maxDate.getFullYear()):endYear);inst.yearshtml+=\"<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>\";for(;year<=endYear;year++){inst.yearshtml+=\"<option value='\"+year+\"'\"+\n(year===drawYear?\" selected='selected'\":\"\")+\">\"+year+\"</option>\";}\ninst.yearshtml+=\"</select>\";html+=inst.yearshtml;inst.yearshtml=null;}}\nhtml+=this._get(inst,\"yearSuffix\");if(showMonthAfterYear){html+=(secondary||!(changeMonth&&changeYear)?\"&#xa0;\":\"\")+monthHtml;}
2\nhtml+=\"</div>\";return html;},_adjustInstDate:function(inst,offset,period){var year=inst.drawYear+(period===\"Y\"?offset:0),month=inst.drawMonth+(period===\"M\"?offset:0),day=Math.min(inst.selectedDay,this._getDaysInMonth(year,month))+(period===\"D\"?offset:0),date=this._restrictMinMax(inst,this._daylightSavingAdjust(new Date(year,month,day)));inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear();if(period===\"M\"||period===\"Y\"){this._notifyChange(inst);}},_restrictMinMax:function(inst,date){var minDate=this._getMinMaxDate(inst,\"min\"),maxDate=this._getMinMaxDate(inst,\"max\"),newDate=(minDate&&date<minDate?minDate:date);return(maxDate&&newDate>maxDate?maxDate:newDate);},_notifyChange:function(inst){var onChange=this._get(inst,\"onChangeMonthYear\");if(onChange){onChange.apply((inst.input?inst.input[0]:null),[inst.selectedYear,inst.selectedMonth+1,inst]);}},_getNumberOfMonths:function(inst){var numMonths=this._get(inst,\"numberOfMonths\");return(numMonths==null?[1,1]:(typeof numMonths===\"number\"?[1,numMonths]:numMonths));},_getMinMaxDate:function(inst,minMax){return this._determineDate(inst,this._get(inst,minMax+\"Date\"),null);},_getDaysInMonth:function(year,month){return 32-this._daylightSavingAdjust(new Date(year,month,32)).getDate();},_getFirstDayOfMonth:function(year,month){return new Date(year,month,1).getDay();},_canAdjustMonth:function(inst,offset,curYear,curMonth){var numMonths=this._getNumberOfMonths(inst),date=this._daylightSavingAdjust(new Date(curYear,curMonth+(offset<0?offset:numMonths[0]*numMonths[1]),1));if(offset<0){date.setDate(this._getDaysInMonth(date.getFullYear(),date.getMonth()));}\nreturn this._isInRange(inst,date);},_isInRange:function(inst,date){var yearSplit,currentYear,minDate=this._getMinMaxDate(inst,\"min\"),maxDate=this._getMinMaxDate(inst,\"max\"),minYear=null,maxYear=null,years=this._get(inst,\"yearRange\");if(years){yearSplit=years.split(\":\");currentYear=new Date().getFullYear();minYear=parseInt(yearSplit[0],10);maxYear=parseInt(yearSplit[1],10);if(yearSplit[0].match(/[+\\-].*/)){minYear+=currentYear;}\nif(yearSplit[1].match(/[+\\-].*/)){maxYear+=currentYear;}}\nreturn((!minDate||date.getTime()>=minDate.getTime())&&(!maxDate||date.getTime()<=maxDate.getTime())&&(!minYear||date.getFullYear()>=minYear)&&(!maxYear||date.getFullYear()<=maxYear));},_getFormatConfig:function(inst){var shortYearCutoff=this._get(inst,\"shortYearCutoff\");shortYearCutoff=(typeof shortYearCutoff!==\"string\"?shortYearCutoff:new Date().getFullYear()%100+parseInt(shortYearCutoff,10));return{shortYearCutoff:shortYearCutoff,dayNamesShort:this._get(inst,\"dayNamesShort\"),dayNames:this._get(inst,\"dayNames\"),monthNamesShort:this._get(inst,\"monthNamesShort\"),monthNames:this._get(inst,\"monthNames\")};},_formatDate:function(inst,day,month,year){if(!day){inst.currentDay=inst.selectedDay;inst.currentMonth=inst.selectedMonth;inst.currentYear=inst.selectedYear;}\nvar date=(day?(typeof day===\"object\"?day:this._daylightSavingAdjust(new Date(year,month,day))):this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));return this.formatDate(this._get(inst,\"dateFormat\"),date,this._getFormatConfig(inst));}});function bindHover(dpDiv){var selector=\"button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a\";return dpDiv.delegate(selector,\"mouseout\",function(){$(this).removeClass(\"ui-state-hover\");if(this.className.indexOf(\"ui-datepicker-prev\")!==-1){$(this).removeClass(\"ui-datepicker-prev-hover\");}\nif(this.className.indexOf(\"ui-datepicker-next\")!==-1){$(this).removeClass(\"ui-datepicker-next-hover\");}}).delegate(selector,\"mouseover\",function(){if(!$.datepicker._isDisabledDatepicker(instActive.inline?dpDiv.parent()[0]:instActive.input[0])){$(this).parents(\".ui-datepicker-calendar\").find(\"a\").removeClass(\"ui-state-hover\");$(this).addClass(\"ui-state-hover\");if(this.className.indexOf(\"ui-datepicker-prev\")!==-1){$(this).addClass(\"ui-datepicker-prev-hover\");}\nif(this.className.indexOf(\"ui-datepicker-next\")!==-1){$(this).addClass(\"ui-datepicker-next-hover\");}}});}\nfunction extendRemove(target,props){$.extend(target,props);for(var name in props){if(props[name]==null){target[name]=props[name];}}\nreturn target;}\n$.fn.datepicker=function(options){if(!this.length){return this;}\nif(!$.datepicker.initialized){$(document).mousedown($.datepicker._checkExternalClick);$.datepicker.initialized=true;}\nif($(\"#\"+$.datepicker._mainDivId).length===0){$(\"body\").append($.datepicker.dpDiv);}
2\nvar otherArgs=Array.prototype.slice.call(arguments,1);if(typeof options===\"string\"&&(options===\"isDisabled\"||options===\"getDate\"||options===\"widget\")){return $.datepicker[\"_\"+options+\"Datepicker\"].apply($.datepicker,[this[0]].concat(otherArgs));}\nif(options===\"option\"&&arguments.length===2&&typeof arguments[1]===\"string\"){return $.datepicker[\"_\"+options+\"Datepicker\"].apply($.datepicker,[this[0]].concat(otherArgs));}\nreturn this.each(function(){typeof options===\"string\"?$.datepicker[\"_\"+options+\"Datepicker\"].apply($.datepicker,[this].concat(otherArgs)):$.datepicker._attachDatepicker(this,options);});};$.datepicker=new Datepicker();$.datepicker.initialized=false;$.datepicker.uuid=new Date().getTime();$.datepicker.version=\"1.10.4\";});","jquery/ui-modules/resizable.min.js":"/*!\n * jQuery UI Resizable - v1.10.4\n * http://jqueryui.com\n *\n * Copyright 2014 jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n *\n * http://api.jqueryui.com/resizable/\n */\ndefine(['jquery','jquery-ui-modules/core','jquery-ui-modules/mouse'],function($,undefined){function num(v){return parseInt(v,10)||0;}\nfunction isNumber(value){return!isNaN(parseInt(value,10));}\n$.widget(\"ui.resizable\",$.ui.mouse,{version:\"1.10.4\",widgetEventPrefix:\"resize\",options:{alsoResize:false,animate:false,animateDuration:\"slow\",animateEasing:\"swing\",aspectRatio:false,autoHide:false,containment:false,ghost:false,grid:false,handles:\"e,s,se\",helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_create:function(){var n,i,handle,axis,hname,that=this,o=this.options;this.element.addClass(\"ui-resizable\");$.extend(this,{_aspectRatio:!!(o.aspectRatio),aspectRatio:o.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:o.helper||o.ghost||o.animate?o.helper||\"ui-resizable-helper\":null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){this.element.wrap($(\"<div class='ui-wrapper' style='overflow: hidden;'></div>\").css({position:this.element.css(\"position\"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css(\"top\"),left:this.element.css(\"left\")}));this.element=this.element.parent().data(\"ui-resizable\",this.element.data(\"ui-resizable\"));this.elementIsWrapper=true;this.element.css({marginLeft:this.originalElement.css(\"marginLeft\"),marginTop:this.originalElement.css(\"marginTop\"),marginRight:this.originalElement.css(\"marginRight\"),marginBottom:this.originalElement.css(\"marginBottom\")});this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});this.originalResizeStyle=this.originalElement.css(\"resize\");this.originalElement.css(\"resize\",\"none\");this._proportionallyResizeElements.push(this.originalElement.css({position:\"static\",zoom:1,display:\"block\"}));this.originalElement.css({margin:this.originalElement.css(\"margin\")});this._proportionallyResize();}\nthis.handles=o.handles||(!$(\".ui-resizable-handle\",this.element).length?\"e,s,se\":{n:\".ui-resizable-n\",e:\".ui-resizable-e\",s:\".ui-resizable-s\",w:\".ui-resizable-w\",se:\".ui-resizable-se\",sw:\".ui-resizable-sw\",ne:\".ui-resizable-ne\",nw:\".ui-resizable-nw\"});if(this.handles.constructor===String){if(this.handles===\"all\"){this.handles=\"n,e,s,w,se,sw,ne,nw\";}\nn=this.handles.split(\",\");this.handles={};for(i=0;i<n.length;i++){handle=$.trim(n[i]);hname=\"ui-resizable-\"+handle;axis=$(\"<div class='ui-resizable-handle \"+hname+\"'></div>\");axis.css({zIndex:o.zIndex});if(\"se\"===handle){axis.addClass(\"ui-icon ui-icon-gripsmall-diagonal-se\");}\nthis.handles[handle]=\".ui-resizable-\"+handle;this.element.append(axis);}}\nthis._renderAxis=function(target){var i,axis,padPos,padWrapper;target=target||this.element;for(i in this.handles){if(this.handles[i].constructor===String){this.handles[i]=$(this.handles[i],this.element).show();}\nif(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){axis=$(this.handles[i],this.element);padWrapper=/sw|ne|nw|se|n|s/.test(i)?axis.outerHeight():axis.outerWidth();
2padPos=[\"padding\",/ne|nw|n/.test(i)?\"Top\":/se|sw|s/.test(i)?\"Bottom\":/^e$/.test(i)?\"Right\":\"Left\"].join(\"\");target.css(padPos,padWrapper);this._proportionallyResize();}\nif(!$(this.handles[i]).length){continue;}}};this._renderAxis(this.element);this._handles=$(\".ui-resizable-handle\",this.element).disableSelection();this._handles.mouseover(function(){if(!that.resizing){if(this.className){axis=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);}\nthat.axis=axis&&axis[1]?axis[1]:\"se\";}});if(o.autoHide){this._handles.hide();$(this.element).addClass(\"ui-resizable-autohide\").mouseenter(function(){if(o.disabled){return;}\n$(this).removeClass(\"ui-resizable-autohide\");that._handles.show();}).mouseleave(function(){if(o.disabled){return;}\nif(!that.resizing){$(this).addClass(\"ui-resizable-autohide\");that._handles.hide();}});}\nthis._mouseInit();},_destroy:function(){this._mouseDestroy();var wrapper,_destroy=function(exp){$(exp).removeClass(\"ui-resizable ui-resizable-disabled ui-resizable-resizing\").removeData(\"resizable\").removeData(\"ui-resizable\").unbind(\".resizable\").find(\".ui-resizable-handle\").remove();};if(this.elementIsWrapper){_destroy(this.element);wrapper=this.element;this.originalElement.css({position:wrapper.css(\"position\"),width:wrapper.outerWidth(),height:wrapper.outerHeight(),top:wrapper.css(\"top\"),left:wrapper.css(\"left\")}).insertAfter(wrapper);wrapper.remove();}\nthis.originalElement.css(\"resize\",this.originalResizeStyle);_destroy(this.originalElement);return this;},_mouseCapture:function(event){var i,handle,capture=false;for(i in this.handles){handle=$(this.handles[i])[0];if(handle===event.target||$.contains(handle,event.target)){capture=true;}}\nreturn!this.options.disabled&&capture;},_mouseStart:function(event){var curleft,curtop,cursor,o=this.options,iniPos=this.element.position(),el=this.element;this.resizing=true;if((/absolute/).test(el.css(\"position\"))){el.css({position:\"absolute\",top:el.css(\"top\"),left:el.css(\"left\")});}else if(el.is(\".ui-draggable\")){el.css({position:\"absolute\",top:iniPos.top,left:iniPos.left});}\nthis._renderProxy();curleft=num(this.helper.css(\"left\"));curtop=num(this.helper.css(\"top\"));if(o.containment){curleft+=$(o.containment).scrollLeft()||0;curtop+=$(o.containment).scrollTop()||0;}\nthis.offset=this.helper.offset();this.position={left:curleft,top:curtop};this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:el.width(),height:el.height()};this.originalSize=this._helper?{width:el.outerWidth(),height:el.outerHeight()}:{width:el.width(),height:el.height()};this.originalPosition={left:curleft,top:curtop};this.sizeDiff={width:el.outerWidth()-el.width(),height:el.outerHeight()-el.height()};this.originalMousePosition={left:event.pageX,top:event.pageY};this.aspectRatio=(typeof o.aspectRatio===\"number\")?o.aspectRatio:((this.originalSize.width / this.originalSize.height)||1);cursor=$(\".ui-resizable-\"+this.axis).css(\"cursor\");$(\"body\").css(\"cursor\",cursor===\"auto\"?this.axis+\"-resize\":cursor);el.addClass(\"ui-resizable-resizing\");this._propagate(\"start\",event);return true;},_mouseDrag:function(event){var data,el=this.helper,props={},smp=this.originalMousePosition,a=this.axis,prevTop=this.position.top,prevLeft=this.position.left,prevWidth=this.size.width,prevHeight=this.size.height,dx=(event.pageX-smp.left)||0,dy=(event.pageY-smp.top)||0,trigger=this._change[a];if(!trigger){return false;}\ndata=trigger.apply(this,[event,dx,dy]);this._updateVirtualBoundaries(event.shiftKey);if(this._aspectRatio||event.shiftKey){data=this._updateRatio(data,event);}\ndata=this._respectSize(data,event);this._updateCache(data);this._propagate(\"resize\",event);if(this.position.top!==prevTop){props.top=this.position.top+\"px\";}\nif(this.position.left!==prevLeft){props.left=this.position.left+\"px\";}\nif(this.size.width!==prevWidth){props.width=this.size.width+\"px\";}\nif(this.size.height!==prevHeight){props.height=this.size.height+\"px\";}\nel.css(props);if(!this._helper&&this._proportionallyResizeElements.length){this._proportionallyResize();}\nif(!$.isEmptyObject(props)){this._trigger(\"resize\",event,this.ui());}\nreturn false;},_mouseStop:function(event){this.resizing=false;var pr,ista,soffseth,soffsetw,s,left,top,o=this.options,that=this;if(this._helper){pr=this._proportionallyResizeElements;ista=pr.length&&(/textarea/i).test(pr[0].nodeName);soffseth=ista&&$.ui.hasScroll(pr[0],\"left\")?0:that.sizeDiff.height;soffsetw=ista?0:that.sizeDiff.width;s={width:(that.helper.width()-soffsetw),height:(that.helper.height()-soffseth)};left=(parseInt(that.element.css(\"left\"),10)+(that.position.left-that.originalPosition.left))||null;top=(parseInt(that.element.css(\"top\"),10)+(that.position.top-that.originalPosition.top))||null;if(!o.animate){this.element.css($.extend(s,{top:top,left:left}));}\nthat.helper.height(that.size.height);that.helper.width(that.size.width);if(this._helper&&!o.animate){this._proportionallyResize();}}\n$(\"body\").css(\"cursor\",\"auto\");this.element.removeClass(\"ui-resizable-resizing\");this._propagate(\"stop\",event);if(this._helper){this.helper.remove();}\nreturn false;},_updateVirtualBoundaries:function(forceAspectRatio){var pMinWidth,pMaxWidth,pMinHeight,pMaxHeight,b,o=this.options;b={minWidth:isNumber(o.minWidth)?o.minWidth:0,maxWidth:isNumber(o.maxWidth)?o.maxWidth:Infinity,minHeight:isNumber(o.minHeight)?o.minHeight:0,maxHeight:isNumber(o.maxHeight)?o.maxHeight:Infinity};if(this._aspectRatio||forceAspectRatio){pMinWidth=b.minHeight*this.aspectRatio;pMinHeight=b.minWidth / this.aspectRatio;pMaxWidth=b.maxHeight*this.aspectRatio;pMaxHeight=b.maxWidth / this.aspectRatio;if(pMinWidth>b.minWidth){b.minWidth=pMinWidth;}\nif(pMinHeight>b.minHeight){b.minHeight=pMinHeight;}
2\nif(pMaxWidth<b.maxWidth){b.maxWidth=pMaxWidth;}\nif(pMaxHeight<b.maxHeight){b.maxHeight=pMaxHeight;}}\nthis._vBoundaries=b;},_updateCache:function(data){this.offset=this.helper.offset();if(isNumber(data.left)){this.position.left=data.left;}\nif(isNumber(data.top)){this.position.top=data.top;}\nif(isNumber(data.height)){this.size.height=data.height;}\nif(isNumber(data.width)){this.size.width=data.width;}},_updateRatio:function(data){var cpos=this.position,csize=this.size,a=this.axis;if(isNumber(data.height)){data.width=(data.height*this.aspectRatio);}else if(isNumber(data.width)){data.height=(data.width / this.aspectRatio);}\nif(a===\"sw\"){data.left=cpos.left+(csize.width-data.width);data.top=null;}\nif(a===\"nw\"){data.top=cpos.top+(csize.height-data.height);data.left=cpos.left+(csize.width-data.width);}\nreturn data;},_respectSize:function(data){var o=this._vBoundaries,a=this.axis,ismaxw=isNumber(data.width)&&o.maxWidth&&(o.maxWidth<data.width),ismaxh=isNumber(data.height)&&o.maxHeight&&(o.maxHeight<data.height),isminw=isNumber(data.width)&&o.minWidth&&(o.minWidth>data.width),isminh=isNumber(data.height)&&o.minHeight&&(o.minHeight>data.height),dw=this.originalPosition.left+this.originalSize.width,dh=this.position.top+this.size.height,cw=/sw|nw|w/.test(a),ch=/nw|ne|n/.test(a);if(isminw){data.width=o.minWidth;}\nif(isminh){data.height=o.minHeight;}\nif(ismaxw){data.width=o.maxWidth;}\nif(ismaxh){data.height=o.maxHeight;}\nif(isminw&&cw){data.left=dw-o.minWidth;}\nif(ismaxw&&cw){data.left=dw-o.maxWidth;}\nif(isminh&&ch){data.top=dh-o.minHeight;}\nif(ismaxh&&ch){data.top=dh-o.maxHeight;}\nif(!data.width&&!data.height&&!data.left&&data.top){data.top=null;}else if(!data.width&&!data.height&&!data.top&&data.left){data.left=null;}\nreturn data;},_proportionallyResize:function(){if(!this._proportionallyResizeElements.length){return;}\nvar i,j,borders,paddings,prel,element=this.helper||this.element;for(i=0;i<this._proportionallyResizeElements.length;i++){prel=this._proportionallyResizeElements[i];if(!this.borderDif){this.borderDif=[];borders=[prel.css(\"borderTopWidth\"),prel.css(\"borderRightWidth\"),prel.css(\"borderBottomWidth\"),prel.css(\"borderLeftWidth\")];paddings=[prel.css(\"paddingTop\"),prel.css(\"paddingRight\"),prel.css(\"paddingBottom\"),prel.css(\"paddingLeft\")];for(j=0;j<borders.length;j++){this.borderDif[j]=(parseInt(borders[j],10)||0)+(parseInt(paddings[j],10)||0);}}\nprel.css({height:(element.height()-this.borderDif[0]-this.borderDif[2])||0,width:(element.width()-this.borderDif[1]-this.borderDif[3])||0});}},_renderProxy:function(){var el=this.element,o=this.options;this.elementOffset=el.offset();if(this._helper){this.helper=this.helper||$(\"<div style='overflow:hidden;'></div>\");this.helper.addClass(this._helper).css({width:this.element.outerWidth()-1,height:this.element.outerHeight()-1,position:\"absolute\",left:this.elementOffset.left+\"px\",top:this.elementOffset.top+\"px\",zIndex:++o.zIndex});this.helper.appendTo(\"body\").disableSelection();}else{this.helper=this.element;}},_change:{e:function(event,dx){return{width:this.originalSize.width+dx};},w:function(event,dx){var cs=this.originalSize,sp=this.originalPosition;return{left:sp.left+dx,width:cs.width-dx};},n:function(event,dx,dy){var cs=this.originalSize,sp=this.originalPosition;return{top:sp.top+dy,height:cs.height-dy};},s:function(event,dx,dy){return{height:this.originalSize.height+dy};},se:function(event,dx,dy){return $.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[event,dx,dy]));},sw:function(event,dx,dy){return $.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[event,dx,dy]));},ne:function(event,dx,dy){return $.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[event,dx,dy]));},nw:function(event,dx,dy){return $.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[event,dx,dy]));}},_propagate:function(n,event){$.ui.plugin.call(this,n,[event,this.ui()]);(n!==\"resize\"&&this._trigger(n,event,this.ui()));},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition};}});$.ui.plugin.add(\"resizable\",\"animate\",{stop:function(event){var that=$(this).data(\"ui-resizable\"),o=that.options,pr=that._proportionallyResizeElements,ista=pr.length&&(/textarea/i).test(pr[0].nodeName),soffseth=ista&&$.ui.hasScroll(pr[0],\"left\")?0:that.sizeDiff.height,soffsetw=ista?0:that.sizeDiff.width,style={width:(that.size.width-soffsetw),height:(that.size.height-soffseth)},left=(parseInt(that.element.css(\"left\"),10)+(that.position.left-that.originalPosition.left))||null,top=(parseInt(that.element.css(\"top\"),10)+(that.position.top-that.originalPosition.top))||null;that.element.animate($.extend(style,top&&left?{top:top,left:left}:{}),{duration:o.animateDuration,easing:o.animateEasing,step:function(){var data={width:parseInt(that.element.css(\"width\"),10),height:parseInt(that.element.css(\"height\"),10),top:parseInt(that.element.css(\"top\"),10),left:parseInt(that.element.css(\"left\"),10)};if(pr&&pr.length){$(pr[0]).css({width:data.width,height:data.height});}\nthat._updateCache(data);that._propagate(\"resize\",event);}});}});$.ui.plugin.add(\"resizable\",\"containment\",{start:function(){var element,p,co,ch,cw,width,height,that=$(this).data(\"ui-resizable\"),o=that.options,el=that.element,oc=o.containment,ce=(oc instanceof $)?oc.get(0):(/parent/.test(oc))?el.parent().get(0):oc;
2if(!ce){return;}\nthat.containerElement=$(ce);if(/document/.test(oc)||oc===document){that.containerOffset={left:0,top:0};that.containerPosition={left:0,top:0};that.parentData={element:$(document),left:0,top:0,width:$(document).width(),height:$(document).height()||document.body.parentNode.scrollHeight};}\nelse{element=$(ce);p=[];$([\"Top\",\"Right\",\"Left\",\"Bottom\"]).each(function(i,name){p[i]=num(element.css(\"padding\"+name));});that.containerOffset=element.offset();that.containerPosition=element.position();that.containerSize={height:(element.innerHeight()-p[3]),width:(element.innerWidth()-p[1])};co=that.containerOffset;ch=that.containerSize.height;cw=that.containerSize.width;width=($.ui.hasScroll(ce,\"left\")?ce.scrollWidth:cw);height=($.ui.hasScroll(ce)?ce.scrollHeight:ch);that.parentData={element:ce,left:co.left,top:co.top,width:width,height:height};}},resize:function(event){var woset,hoset,isParent,isOffsetRelative,that=$(this).data(\"ui-resizable\"),o=that.options,co=that.containerOffset,cp=that.position,pRatio=that._aspectRatio||event.shiftKey,cop={top:0,left:0},ce=that.containerElement;if(ce[0]!==document&&(/static/).test(ce.css(\"position\"))){cop=co;}\nif(cp.left<(that._helper?co.left:0)){that.size.width=that.size.width+(that._helper?(that.position.left-co.left):(that.position.left-cop.left));if(pRatio){that.size.height=that.size.width / that.aspectRatio;}\nthat.position.left=o.helper?co.left:0;}\nif(cp.top<(that._helper?co.top:0)){that.size.height=that.size.height+(that._helper?(that.position.top-co.top):that.position.top);if(pRatio){that.size.width=that.size.height*that.aspectRatio;}\nthat.position.top=that._helper?co.top:0;}\nthat.offset.left=that.parentData.left+that.position.left;that.offset.top=that.parentData.top+that.position.top;woset=Math.abs((that._helper?that.offset.left-cop.left:(that.offset.left-cop.left))+that.sizeDiff.width);hoset=Math.abs((that._helper?that.offset.top-cop.top:(that.offset.top-co.top))+that.sizeDiff.height);isParent=that.containerElement.get(0)===that.element.parent().get(0);isOffsetRelative=/relative|absolute/.test(that.containerElement.css(\"position\"));if(isParent&&isOffsetRelative){woset-=Math.abs(that.parentData.left);}\nif(woset+that.size.width>=that.parentData.width){that.size.width=that.parentData.width-woset;if(pRatio){that.size.height=that.size.width / that.aspectRatio;}}\nif(hoset+that.size.height>=that.parentData.height){that.size.height=that.parentData.height-hoset;if(pRatio){that.size.width=that.size.height*that.aspectRatio;}}},stop:function(){var that=$(this).data(\"ui-resizable\"),o=that.options,co=that.containerOffset,cop=that.containerPosition,ce=that.containerElement,helper=$(that.helper),ho=helper.offset(),w=helper.outerWidth()-that.sizeDiff.width,h=helper.outerHeight()-that.sizeDiff.height;if(that._helper&&!o.animate&&(/relative/).test(ce.css(\"position\"))){$(this).css({left:ho.left-cop.left-co.left,width:w,height:h});}\nif(that._helper&&!o.animate&&(/static/).test(ce.css(\"position\"))){$(this).css({left:ho.left-cop.left-co.left,width:w,height:h});}}});$.ui.plugin.add(\"resizable\",\"alsoResize\",{start:function(){var that=$(this).data(\"ui-resizable\"),o=that.options,_store=function(exp){$(exp).each(function(){var el=$(this);el.data(\"ui-resizable-alsoresize\",{width:parseInt(el.width(),10),height:parseInt(el.height(),10),left:parseInt(el.css(\"left\"),10),top:parseInt(el.css(\"top\"),10)});});};if(typeof(o.alsoResize)===\"object\"&&!o.alsoResize.parentNode){if(o.alsoResize.length){o.alsoResize=o.alsoResize[0];_store(o.alsoResize);}else{$.each(o.alsoResize,function(exp){_store(exp);});}}else{_store(o.alsoResize);}},resize:function(event,ui){var that=$(this).data(\"ui-resizable\"),o=that.options,os=that.originalSize,op=that.originalPosition,delta={height:(that.size.height-os.height)||0,width:(that.size.width-os.width)||0,top:(that.position.top-op.top)||0,left
2:(that.position.left-op.left)||0},_alsoResize=function(exp,c){$(exp).each(function(){var el=$(this),start=$(this).data(\"ui-resizable-alsoresize\"),style={},css=c&&c.length?c:el.parents(ui.originalElement[0]).length?[\"width\",\"height\"]:[\"width\",\"height\",\"top\",\"left\"];$.each(css,function(i,prop){var sum=(start[prop]||0)+(delta[prop]||0);if(sum&&sum>=0){style[prop]=sum||null;}});el.css(style);});};if(typeof(o.alsoResize)===\"object\"&&!o.alsoResize.nodeType){$.each(o.alsoResize,function(exp,c){_alsoResize(exp,c);});}else{_alsoResize(o.alsoResize);}},stop:function(){$(this).removeData(\"resizable-alsoresize\");}});$.ui.plugin.add(\"resizable\",\"ghost\",{start:function(){var that=$(this).data(\"ui-resizable\"),o=that.options,cs=that.size;that.ghost=that.originalElement.clone();that.ghost.css({opacity:0.25,display:\"block\",position:\"relative\",height:cs.height,width:cs.width,margin:0,left:0,top:0}).addClass(\"ui-resizable-ghost\").addClass(typeof o.ghost===\"string\"?o.ghost:\"\");that.ghost.appendTo(that.helper);},resize:function(){var that=$(this).data(\"ui-resizable\");if(that.ghost){that.ghost.css({position:\"relative\",height:that.size.height,width:that.size.width});}},stop:function(){var that=$(this).data(\"ui-resizable\");if(that.ghost&&that.helper){that.helper.get(0).removeChild(that.ghost.get(0));}}});$.ui.plugin.add(\"resizable\",\"grid\",{resize:function(){var that=$(this).data(\"ui-resizable\"),o=that.options,cs=that.size,os=that.originalSize,op=that.originalPosition,a=that.axis,grid=typeof o.grid===\"number\"?[o.grid,o.grid]:o.grid,gridX=(grid[0]||1),gridY=(grid[1]||1),ox=Math.round((cs.width-os.width)/ gridX)*gridX,oy=Math.round((cs.height-os.height)/ gridY)*gridY,newWidth=os.width+ox,newHeight=os.height+oy,isMaxWidth=o.maxWidth&&(o.maxWidth<newWidth),isMaxHeight=o.maxHeight&&(o.maxHeight<newHeight),isMinWidth=o.minWidth&&(o.minWidth>newWidth),isMinHeight=o.minHeight&&(o.minHeight>newHeight);o.grid=grid;if(isMinWidth){newWidth=newWidth+gridX;}\nif(isMinHeight){newHeight=newHeight+gridY;}\nif(isMaxWidth){newWidth=newWidth-gridX;}\nif(isMaxHeight){newHeight=newHeight-gridY;}\nif(/^(se|s|e)$/.test(a)){that.size.width=newWidth;that.size.height=newHeight;}else if(/^(ne)$/.test(a)){that.size.width=newWidth;that.size.height=newHeight;that.position.top=op.top-oy;}else if(/^(sw)$/.test(a)){that.size.width=newWidth;that.size.height=newHeight;that.position.left=op.left-ox;}else{if(newHeight-gridY>0){that.size.height=newHeight;that.position.top=op.top-oy;}else{that.size.height=gridY;that.position.top=op.top+os.height-gridY;}\nif(newWidth-gridX>0){that.size.width=newWidth;that.position.left=op.left-ox;}else{that.size.width=gridX;that.position.left=op.left+os.width-gridX;}}}});});","jquery/ui-modules/droppable.min.js":"/*!\n * jQuery UI Droppable - v1.10.4\n * http://jqueryui.com\n *\n * Copyright 2014 jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n *\n * http://api.jqueryui.com/droppable/\n */\ndefine(['jquery','jquery-ui-modules/draggable'],function($,undefined){function isOverAxis(x,reference,size){return(x>reference)&&(x<(reference+size));}\n$.widget(\"ui.droppable\",{version:\"1.10.4\",widgetEventPrefix:\"drop\",options:{accept:\"*\",activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:\"default\",tolerance:\"intersect\",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var proportions,o=this.options,accept=o.accept;this.isover=false;this.isout=true;this.accept=$.isFunction(accept)?accept:function(d){return d.is(accept);};this.proportions=function(){if(arguments.length){proportions=arguments[0];}else{return proportions?proportions:proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};}};$.ui.ddmanager.droppables[o.scope]=$.ui.ddmanager.droppables[o.scope]||[];$.ui.ddmanager.droppables[o.scope].push(this);(o.addClasses&&this.element.addClass(\"ui-droppable\"));},_destroy:function(){var i=0,drop=$.ui.ddmanager.droppables[this.options.scope];for(;i<drop.length;i++){if(drop[i]===this){drop.splice(i,1);}}\nthis.element.removeClass(\"ui-droppable ui-droppable-disabled\");},_setOption:function(key,value){if(key===\"accept\"){this.accept=$.is
2Function(value)?value:function(d){return d.is(value);};}\n$.Widget.prototype._setOption.apply(this,arguments);},_activate:function(event){var draggable=$.ui.ddmanager.current;if(this.options.activeClass){this.element.addClass(this.options.activeClass);}\nif(draggable){this._trigger(\"activate\",event,this.ui(draggable));}},_deactivate:function(event){var draggable=$.ui.ddmanager.current;if(this.options.activeClass){this.element.removeClass(this.options.activeClass);}\nif(draggable){this._trigger(\"deactivate\",event,this.ui(draggable));}},_over:function(event){var draggable=$.ui.ddmanager.current;if(!draggable||(draggable.currentItem||draggable.element)[0]===this.element[0]){return;}\nif(this.accept.call(this.element[0],(draggable.currentItem||draggable.element))){if(this.options.hoverClass){this.element.addClass(this.options.hoverClass);}\nthis._trigger(\"over\",event,this.ui(draggable));}},_out:function(event){var draggable=$.ui.ddmanager.current;if(!draggable||(draggable.currentItem||draggable.element)[0]===this.element[0]){return;}\nif(this.accept.call(this.element[0],(draggable.currentItem||draggable.element))){if(this.options.hoverClass){this.element.removeClass(this.options.hoverClass);}\nthis._trigger(\"out\",event,this.ui(draggable));}},_drop:function(event,custom){var draggable=custom||$.ui.ddmanager.current,childrenIntersection=false;if(!draggable||(draggable.currentItem||draggable.element)[0]===this.element[0]){return false;}\nthis.element.find(\":data(ui-droppable)\").not(\".ui-draggable-dragging\").each(function(){var inst=$.data(this,\"ui-droppable\");if(inst.options.greedy&&!inst.options.disabled&&inst.options.scope===draggable.options.scope&&inst.accept.call(inst.element[0],(draggable.currentItem||draggable.element))&&$.ui.intersect(draggable,$.extend(inst,{offset:inst.element.offset()}),inst.options.tolerance)){childrenIntersection=true;return false;}});if(childrenIntersection){return false;}\nif(this.accept.call(this.element[0],(draggable.currentItem||draggable.element))){if(this.options.activeClass){this.element.removeClass(this.options.activeClass);}\nif(this.options.hoverClass){this.element.removeClass(this.options.hoverClass);}\nthis._trigger(\"drop\",event,this.ui(draggable));return this.element;}\nreturn false;},ui:function(c){return{draggable:(c.currentItem||c.element),helper:c.helper,position:c.position,offset:c.positionAbs};}});$.ui.intersect=function(draggable,droppable,toleranceMode){if(!droppable.offset){return false;}\nvar draggableLeft,draggableTop,x1=(draggable.positionAbs||draggable.position.absolute).left,y1=(draggable.positionAbs||draggable.position.absolute).top,x2=x1+draggable.helperProportions.width,y2=y1+draggable.helperProportions.height,l=droppable.offset.left,t=droppable.offset.top,r=l+droppable.proportions().width,b=t+droppable.proportions().height;switch(toleranceMode){case\"fit\":return(l<=x1&&x2<=r&&t<=y1&&y2<=b);case\"intersect\":return(l<x1+(draggable.helperProportions.width / 2)&&x2-(draggable.helperProportions.width / 2)<r&&t<y1+(draggable.helperProportions.height / 2)&&y2-(draggable.helperProportions.height / 2)<b);case\"pointer\":draggableLeft=((draggable.positionAbs||draggable.position.absolute).left+(draggable.clickOffset||draggable.offset.click).left);draggableTop=((draggable.positionAbs||draggable.position.absolute).top+(draggable.clickOffset||draggable.offset.click).top);return isOverAxis(draggableTop,t,droppable.proportions().height)&&isOverAxis(draggableLeft,l,droppable.proportions().width);case\"touch\":return((y1>=t&&y1<=b)||(y2>=t&&y2<=b)||(y1<t&&y2>b))&&((x1>=l&&x1<=r)||(x2>=l&&x2<=r)||(x1<l&&x2>r));default:return false;}};$.ui.ddmanager={current:null,droppables:{\"default\":[]},prepareOffsets:function(t,event){var i,j,m=$.ui.ddmanager.droppables[t.options.scope]||[],type=event?event.type:null,list=(t.currentItem||t.element).find(\":data(ui-droppable)\").addBack();droppablesLoop:for(i=0;i<m.length;i++){if(m[i].options.disabled||(t&&!m[i].accept.call(m[i].element[0],(t.currentItem||t.element)))){continue;}\nfor(j=0;j<list.length;j++){if(list[j]===m[i].element[0]){m[i].proportions().height=0;continue droppablesLoop;}}\nm[i].visible=m[i].element.css(\"display\")!==\"none\";if(!m[i].visible){continue;}\nif(type===\"mousedown\"){m[i]._activate.call(m[i],event);}\nm[i].offset=m[i].element.offset();m[i].proportions({width:m[i].element[0].offsetWidth,height:m[i].element[0].offsetHeight});}},drop:function(draggable,event){var dropped=false;
2$.each(($.ui.ddmanager.droppables[draggable.options.scope]||[]).slice(),function(){if(!this.options){return;}\nif(!this.options.disabled&&this.visible&&$.ui.intersect(draggable,this,this.options.tolerance)){dropped=this._drop.call(this,event)||dropped;}\nif(!this.options.disabled&&this.visible&&this.accept.call(this.element[0],(draggable.currentItem||draggable.element))){this.isout=true;this.isover=false;this._deactivate.call(this,event);}});return dropped;},dragStart:function(draggable,event){draggable.element.parentsUntil(\"body\").bind(\"scroll.droppable\",function(){if(!draggable.options.refreshPositions){$.ui.ddmanager.prepareOffsets(draggable,event);}});},drag:function(draggable,event){if(draggable.options.refreshPositions){$.ui.ddmanager.prepareOffsets(draggable,event);}\n$.each($.ui.ddmanager.droppables[draggable.options.scope]||[],function(){if(this.options.disabled||this.greedyChild||!this.visible){return;}\nvar parentInstance,scope,parent,intersects=$.ui.intersect(draggable,this,this.options.tolerance),c=!intersects&&this.isover?\"isout\":(intersects&&!this.isover?\"isover\":null);if(!c){return;}\nif(this.options.greedy){scope=this.options.scope;parent=this.element.parents(\":data(ui-droppable)\").filter(function(){return $.data(this,\"ui-droppable\").options.scope===scope;});if(parent.length){parentInstance=$.data(parent[0],\"ui-droppable\");parentInstance.greedyChild=(c===\"isover\");}}\nif(parentInstance&&c===\"isover\"){parentInstance.isover=false;parentInstance.isout=true;parentInstance._out.call(parentInstance,event);}\nthis[c]=true;this[c===\"isout\"?\"isover\":\"isout\"]=false;this[c===\"isover\"?\"_over\":\"_out\"].call(this,event);if(parentInstance&&c===\"isout\"){parentInstance.isout=false;parentInstance.isover=true;parentInstance._over.call(parentInstance,event);}});},dragStop:function(draggable,event){draggable.element.parentsUntil(\"body\").unbind(\"scroll.droppable\");if(!draggable.options.refreshPositions){$.ui.ddmanager.prepareOffsets(draggable,event);}}};});","jquery/ui-modules/menu.min.js":"/*!\n * jQuery UI Menu - v1.10.4\n * http://jqueryui.com\n *\n * Copyright 2014 jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n *\n * http://api.jqueryui.com/menu/\n */\ndefine(['jquery','jquery-ui-modules/core','jquery-ui-modules/widget','jquery-ui-modules/position'],function($,undefined){$.widget(\"ui.menu\",{version:\"1.10.4\",defaultElement:\"<ul>\",delay:300,options:{icons:{submenu:\"ui-icon-carat-1-e\"},menus:\"ul\",position:{my:\"left top\",at:\"right top\"},role:\"menu\",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element;this.mouseHandled=false;this.element.uniqueId().addClass(\"ui-menu ui-widget ui-widget-content ui-corner-all\").toggleClass(\"ui-menu-icons\",!!this.element.find(\".ui-icon\").length).attr({role:this.options.role,tabIndex:0}).bind(\"click\"+this.eventNamespace,$.proxy(function(event){if(this.options.disabled){event.preventDefault();}},this));if(this.options.disabled){this.element.addClass(\"ui-state-disabled\").attr(\"aria-disabled\",\"true\");}\nthis._on({\"mousedown .ui-menu-item > a\":function(event){event.preventDefault();},\"click .ui-state-disabled > a\":function(event){event.preventDefault();},\"click .ui-menu-item:has(a)\":function(event){var target=$(event.target).closest(\".ui-menu-item\");if(!this.mouseHandled&&target.not(\".ui-state-disabled\").length){this.select(event);if(!event.isPropagationStopped()){this.mouseHandled=true;}\nif(target.has(\".ui-menu\").length){this.expand(event);}else if(!this.element.is(\":focus\")&&$(this.document[0].activeElement).closest(\".ui-menu\").length){this.element.trigger(\"focus\",[true]);if(this.active&&this.active.parents(\".ui-menu\").length===1){clearTimeout(this.timer);}}}},\"mouseenter .ui-menu-item\":function(event){var target=$(event.currentTarget);target.siblings().children(\".ui-state-active\").removeClass(\"ui-state-active\");this.focus(event,target);},mouseleave:\"collapseAll\",\"mouseleave .ui-menu\":\"collapseAll\",focus:function(event,keepActiveItem){var item=this.active||this.element.children(\".ui-menu-item\").eq(0);if(!keepActiveItem){this.focus(event,item);}},blur:function(event){this._delay(function(){if(!$.contains(this.element[0],this.document[0].activeElement)){this.collapseAll(event);}});},keydown:\"_keydown\"});this.refresh();this._on(this.document,{click:function(event){if(!$(event.target).closest(\".ui-menu\").length){this.collapseAll(event);}\nthis.mouseHandled=false;}});},_destroy:function(){this.element.removeAttr(\"aria-activedescendant\").find(\".ui-menu\").addBack().removeClass(\"ui-menu ui-widget ui-widget-content ui-corner-all ui-menu-icons\").removeAttr(\"role\").removeAttr(\"tabIndex\").removeAttr(\"aria-labelledby\").removeAttr(\"aria-expanded\").removeAttr(\"aria-hidden\").removeAttr(\"aria-disabled\").removeUniqueId().show();this.element.find(\".ui-menu-item\").removeClass(\"ui-menu-item\").removeAttr(\"role\").removeAttr(\"aria-disabled\").children(\"a\").removeUniqueId().removeClass(\"ui-corner-all ui-state-hover\").removeAttr(\"tabIndex\").removeAttr(\"role\").removeAttr(\"aria-haspopup\").children().each(function(){var elem=$(this);if(elem.data(\"ui-menu-submenu-carat\")){elem.remove();}});this.element.find(\".ui-menu-divider\").removeClass(\"ui-menu-divider ui-widget-content\");},_keydown:function(event){var match,prev,character,skip,regex,preventDefault=true;function escape(value){return value.replace(/[\\-\\[\\]{}()*+?.,\\\\\\^$|#\\s]/g,\"\\\\$&\");}\nswitch(event.keyCode){case $.ui.keyCode.PAGE_UP:this.previousPage(event);break;case $.ui.keyCode.PAGE_DOWN:this.nextPage(event);break;case $.ui.keyCode.HOME:this._move(\"first\",\"first\",event);break;case $.ui.keyCode.END:this._move(\"last\",\"last\",event);break;case $.ui.keyCode.UP:this.previous(event);break;case $.ui.keyCode.DOWN:this.next(event);break;case $.ui.keyCode.LEFT:this.collapse(event);break;case $.ui.keyCode.RIGHT:if(this.active&&!this.active.is(\".ui-state-disabled\")){this.expand(event);}\nbreak;case $.ui.keyCode.ENTER:case $.ui.keyCode.SPACE:this._activate(event);break;case $.ui.keyCode.ESCAPE:this.collapse(event);break;default:preventDefault=false;prev=this.previousFilter||\"\";character=String.fromCharCode(event.keyCode);skip=false;clearTimeout(this.filterTimer);if(character===prev){skip=true;}else{character=prev+character;}\nregex=new RegExp(\"^\"+escape(character),\"i\");match=this.activeMenu.children(\".ui-menu-item\").filter(function(){return regex.test($(this).children(\"a\").text());});match=skip&&match.index(this.active.next())!==-1?this.active.nextAll(\".ui-menu-item\"):match;if(!match.length){character=String.fromCharCode(event.keyCode);regex=new RegExp(\"^\"+escape(character),\"i\");match=this.activeMenu.children(\".ui-menu-item\").filter(function(){return regex.test($(this).children(\"a\").text());});}\nif(match.length){this.focus(event,match);if(match.length>1){this.previousFilter=character;this.filterTimer=this._delay(function(){delete this.previousFilter;},1000);}else{delete this.previousFilter;}}else{delete this.previousFilter;}}\nif(preventDefault){event.preventDefault();}},_activate:function(event){if(!this.active.is(\".ui-state-disabled\")){if(this.active.children(\"a[aria-haspopup='true']\").length){this.expand(event);}else{this.select(event);}}},refresh:function(){var menus,icon=this.options.icons.submenu,submenus=this.element.find(this.options.menus);this.element.toggleClass(\"ui-menu-icons\",!!this.element.find(\".ui-icon\").length);submenus.filter(\":not(.ui-menu)\").addClass(\"ui-menu ui-widget ui-widget-content ui-corner-all\").hide().attr({role:this.options.role,\"aria-hidden\":\"true\",\"aria-expanded\":\"false\"}).each(function(){var menu=$(this),item=menu.prev(\"a\"),submenuCarat=$(\"<span>\").addClass(\"ui-menu-icon ui-icon \"+icon).data(\"ui-menu-submenu-carat\",true);item.attr(\"aria-haspopup\",\"true\").prepend(submenuCarat);menu.attr(\"aria-labelledby\",item.attr(\"id\"));});menus=submenus.add(this.element);menus.children(\":not(.ui-menu-item):has(a)\").addClass(\"ui-menu-item\").attr(\"role\",\"presentation\").children(\"a\").uniqueId().addClass(\"ui-corner-all\").attr({tabIndex:-1,role:this._itemRole()});menus.children(\":not(.ui-menu-item)\").each(function(){var item=$(this);if(!/[^\\-\\u2014\\u2013\\s]/.test(item.text())){item.addClass(\"ui-widget-content ui-menu-divider\");}});menus.children(\".ui-state-disabled\").attr(\"aria-disabled\",\"true\");
2if(this.active&&!$.contains(this.element[0],this.active[0])){this.blur();}},_itemRole:function(){return{menu:\"menuitem\",listbox:\"option\"}[this.options.role];},_setOption:function(key,value){if(key===\"icons\"){this.element.find(\".ui-menu-icon\").removeClass(this.options.icons.submenu).addClass(value.submenu);}\nthis._super(key,value);},focus:function(event,item){var nested,focused;this.blur(event,event&&event.type===\"focus\");this._scrollIntoView(item);this.active=item.first();focused=this.active.children(\"a\").addClass(\"ui-state-focus\");if(this.options.role){this.element.attr(\"aria-activedescendant\",focused.attr(\"id\"));}\nthis.active.parent().closest(\".ui-menu-item\").children(\"a:first\").addClass(\"ui-state-active\");if(event&&event.type===\"keydown\"){this._close();}else{this.timer=this._delay(function(){this._close();},this.delay);}\nnested=item.children(\".ui-menu\");if(nested.length&&event&&(/^mouse/.test(event.type))){this._startOpening(nested);}\nthis.activeMenu=item.parent();this._trigger(\"focus\",event,{item:item});},_scrollIntoView:function(item){var borderTop,paddingTop,offset,scroll,elementHeight,itemHeight;
2if(this._hasScroll()){borderTop=parseFloat($.css(this.activeMenu[0],\"borderTopWidth\"))||0;paddingTop=parseFloat($.css(this.activeMenu[0],\"paddingTop\"))||0;offset=item.offset().top-this.activeMenu.offset().top-borderTop-paddingTop;scroll=this.activeMenu.scrollTop();elementHeight=this.activeMenu.height();itemHeight=item.height();if(offset<0){this.activeMenu.scrollTop(scroll+offset);}else if(offset+itemHeight>elementHeight){this.activeMenu.scrollTop(scroll+offset-elementHeight+itemHeight);}}},blur:function(event,fromFocus){if(!fromFocus){clearTimeout(this.timer);}\nif(!this.active){return;}\nthis.active.children(\"a\").removeClass(\"ui-state-focus\");this.active=null;this._trigger(\"blur\",event,{item:this.active});},_startOpening:function(submenu){clearTimeout(this.timer);if(submenu.attr(\"aria-hidden\")!==\"true\"){return;}\nthis._open(submenu);},_open:function(submenu){var position=$.extend({of:this.active},this.options.position);clearTimeout(this.timer);this.element.find(\".ui-menu\").not(submenu.parents(\".ui-menu\")).hide().attr(\"aria-hidden\",\"true\");submenu.show().removeAttr(\"aria-hidden\").attr(\"aria-expanded\",\"true\").position(position);},collapseAll:function(event,all){clearTimeout(this.timer);this.timer=this._delay(function(){var currentMenu=all?this.element:$(event&&event.target).closest(this.element.find(\".ui-menu\"));if(!currentMenu.length){currentMenu=this.element;}\nthis._close(currentMenu);this.blur(event);this.activeMenu=currentMenu;},this.delay);},_close:function(startMenu){if(!startMenu){startMenu=this.active?this.active.parent():this.element;}\nstartMenu.find(\".ui-menu\").hide().attr(\"aria-hidden\",\"true\").attr(\"aria-expanded\",\"false\").end().find(\"a.ui-state-active\").removeClass(\"ui-state-active\");},collapse:function(event){var newItem=this.active&&this.active.parent().closest(\".ui-menu-item\",this.element);if(newItem&&newItem.length){this._close();this.focus(event,newItem);}},expand:function(event){var newItem=this.active&&this.active.children(\".ui-menu \").children(\".ui-menu-item\").first();if(newItem&&newItem.length){this._open(newItem.parent());this._delay(function(){this.focus(event,newItem);});}},next:function(event){this._move(\"next\",\"first\",event);},previous:function(event){this._move(\"prev\",\"last\",event);},isFirstItem:function(){return this.active&&!this.active.prevAll(\".ui-menu-item\").length;},isLastItem:function(){return this.active&&!this.active.nextAll(\".ui-menu-item\").length;},_move:function(direction,filter,event){var next;if(this.active){if(direction===\"first\"||direction===\"last\"){next=this.active\n[direction===\"first\"?\"prevAll\":\"nextAll\"](\".ui-menu-item\").eq(-1);}else{next=this.active\n[direction+\"All\"](\".ui-menu-item\").eq(0);}}\nif(!next||!next.length||!this.active){next=this.activeMenu.children(\".ui-menu-item\")[filter]();}\nthis.focus(event,next);},nextPage:function(event){var item,base,height;if(!this.active){this.next(event);return;}\nif(this.isLastItem()){return;}\nif(this._hasScroll()){base=this.active.offset().top;height=this.element.height();this.active.nextAll(\".ui-menu-item\").each(function(){item=$(this);return item.offset().top-base-height<0;});this.focus(event,item);}else{this.focus(event,this.activeMenu.children(\".ui-menu-item\")\n[!this.active?\"first\":\"last\"]());}},previousPage:function(event){var item,base,height;if(!this.active){this.next(event);return;}\nif(this.isFirstItem()){return;}\nif(this._hasScroll()){base=this.active.offset().top;height=this.element.height();this.active.prevAll(\".ui-menu-item\").each(function(){item=$(this);return item.offset().top-base+height>0;});this.focus(event,item);}else{this.focus(event,this.activeMenu.children(\".ui-menu-item\").first());}},_hasScroll:function(){return this.element.outerHeight()<this.element.prop(\"scrollHeight\");},select:function(event){this.active=this.active||$(event.target).closest(\".ui-menu-item\");var ui={item:this.active};if(!this.active.has(\".ui-menu\").length){this.collapseAll(event,true);}\nthis._trigger(\"select\",event,ui);}});});","jquery/ui-modules/effect.min.js":"/*!\n * jQuery UI Effects - v1.10.4\n * http://jqueryui.com\n *\n * Copyright 2014 jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n *\n * http://api.jqueryui.com/category/effects-core/\n */\ndefine(['jquery'],function($,undefined){var dataSpace=\"ui-effects-\";$.effects={effect:{}};/*!\n     * jQuery Color Animations v2.1.2\n     * https://github.com/jquery/jquery-color\n     *\n     * Copyright 2013 jQuery Foundation and other contributors\n     * Released under the MIT license.\n     * http://jquery.org/license\n     *\n     * Date: Wed Jan 16 08:47:09 2013 -0600\n     */\n(function(jQuery,undefined){var stepHooks=\"backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor\",rplusequals=/^([\\-+])=\\s*(\\d+\\.?\\d*)/,stringParsers=[{re:/rgba?\\(\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*(?:,\\s*(\\d?(?:\\.\\d+)?)\\s*)?\\)/,parse:function(execResult){return[execResult[1],execResult[2],execResult[3],execResult[4]];}}
vendor: 3,489 bytes, line 2
2,{re:/rgba?\\(\\s*(\\d+(?:\\.\\d+)?)\\%\\s*,\\s*(\\d+(?:\\.\\d+)?)\\%\\s*,\\s*(\\d+(?:\\.\\d+)?)\\%\\s*(?:,\\s*(\\d?(?:\\.\\d+)?)\\s*)?\\)/,parse:function(execResult){return[execResult[1]*2.55,execResult[2]*2.55,execResult[3]*2.55,execResult[4]];}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(execResult){return[parseInt(execResult[1],16),parseInt(execResult[2],16),parseInt(execResult[3],16)];}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(execResult){return[parseInt(execResult[1]+execResult[1],16),parseInt(execResult[2]+execResult[2],16),parseInt(execResult[3]+execResult[3],16)];}},{re:/hsla?\\(\\s*(\\d+(?:\\.\\d+)?)\\s*,\\s*(\\d+(?:\\.\\d+)?)\\%\\s*,\\s*(\\d+(?:\\.\\d+)?)\\%\\s*(?:,\\s*(\\d?(?:\\.\\d+)?)\\s*)?\\)/,space:\"hsla\",parse:function(execResult){return[execResult[1],execResult[2]/ 100,execResult[3]/ 100,execResult[4]];}}],color=jQuery.Color=function(color,green,blue,alpha){return new jQuery.Color.fn.parse(color,green,blue,alpha);},spaces={rgba:{props:{red:{idx:0,type:\"byte\"},green:{idx:1,type:\"byte\"},blue:{idx:2,type:\"byte\"}}},hsla:{props:{hue:{idx:0,type:\"degrees\"},saturation:{idx:1,type:\"percent\"},lightness:{idx:2,type:\"percent\"}}}},propTypes={\"byte\":{floor:true,max:255},\"percent\":{max:1},\"degrees\":{mod:360,floor:true}},support=color.support={},supportElem=jQuery(\"<p>\")[0],colors,each=jQuery.each;supportElem.style.cssText=\"background-color:rgba(1,1,1,.5)\";support.rgba=supportElem.style.backgroundColor.indexOf(\"rgba\")>-1;each(spaces,function(spaceName,space){space.cache=\"_\"+spaceName;space.props.alpha={idx:3,type:\"percent\",def:1};});function clamp(value,prop,allowEmpty){var type=propTypes[prop.type]||{};if(value==null){return(allowEmpty||!prop.def)?null:prop.def;}\nvalue=type.floor?~~value:parseFloat(value);if(isNaN(value)){return prop.def;}\nif(type.mod){return(value+type.mod)%type.mod;}\nreturn 0>value?0:type.max<value?type.max:value;}\nfunction stringParse(string){var inst=color(),rgba=inst._rgba=[];string=string.toLowerCase();each(stringParsers,function(i,parser){var parsed,match=parser.re.exec(string),values=match&&parser.parse(match),spaceName=parser.space||\"rgba\";if(values){parsed=inst[spaceName](values);inst[spaces[spaceName].cache]=parsed[spaces[spaceName].cache];rgba=inst._rgba=parsed._rgba;return false;}});if(rgba.length){if(rgba.join()===\"0,0,0,0\"){jQuery.extend(rgba,colors.transparent);}\nreturn inst;}\nreturn colors[string];}\ncolor.fn=jQuery.extend(color.prototype,{parse:function(red,green,blue,alpha){if(red===undefined){this._rgba=[null,null,null,null];return this;}\nif(red.jquery||red.nodeType){red=jQuery(red).css(green);green=undefined;}\nvar inst=this,type=jQuery.type(red),rgba=this._rgba=[];if(green!==undefined){red=[red,green,blue,alpha];type=\"array\";}\nif(type===\"string\"){return this.parse(stringParse(red)||colors._default);}\nif(type===\"array\"){each(spaces.rgba.props,function(key,prop){rgba[prop.idx]=clamp(red[prop.idx],prop);});return this;}\nif(type===\"object\"){if(red instanceof color){each(spaces,function(spaceName,space){if(red[space.cache]){inst[space.cache]=red[space.cache].slice();}});}else{each(spaces,function(spaceName,space){var cache=space.cache;each(space.props,function(key,prop){if(!inst[cache]&&space.to){if(key===\"alpha\"||red[key]==null){return;}\ninst[cache]=space.to(inst._rgba);}\ninst[cache][prop.idx]=clamp(red[key],prop,true);});if(inst[cache]&&jQuery.inArray(null,inst[cache].slice(0,3))<0){inst[cache][3]=1;
2if(space.from){inst._rgba=space.from(inst[cache]);}}});}\nreturn this;}},is:function(compare){var is=color(compare),same=true,inst=this;each(spaces,function(_,space){var localCache,isCache=is[space.cache];if(isCache){localCache=inst[space.cache]||space.to&&space.to(inst._rgba)||[];each(space.props,function(_,prop){if(isCache[prop.idx]!=null){same=(isCache[prop.idx]===localCache[prop.idx]);return same;}});}\nreturn same;});return same;},_space:function(){var used=[],inst=this;each(spaces,function(spaceName,space){if(inst[space.cache]){used.push(spaceName);}});return used.pop();},transition:function(other,distance){var end=color(other),spaceName=end._space(),space=spaces[spaceName],startColor=this.alpha()===0?color(\"transparent\"):this,start=startColor[space.cache]||space.to(startColor._rgba),result=start.slice();end=end[space.cache];each(space.props,function(key,prop){var index=prop.idx,startValue=start[index],endValue=end[index],type=propTypes[prop.type]||{};if(endValue===null){return;}\nif(startValue===null){result[index]=endValue;}else{if(type.mod){if(endValue-startValue>type.mod / 2){startValue+=type.mod;}else if(startValue-endValue>type.mod / 2){startValue-=type.mod;}}\nresult[index]=clamp((endValue-startValue)*distance+startValue,prop);}});return this[spaceName](result);},blend:function(opaque){if(this._rgba[3]===1){return this;}\nvar rgb=this._rgba.slice(),a=rgb.pop(),blend=color(opaque)._rgba;return color(jQuery.map(rgb,function(v,i){return(1-a)*blend[i]+a*v;}));},toRgbaString:function(){var prefix=\"rgba(\",rgba=jQuery.map(this._rgba,function(v,i){return v==null?(i>2?1:0):v;});if(rgba[3]===1){rgba.pop();prefix=\"rgb(\";}\nreturn prefix+rgba.join()+\")\";},toHslaString:function(){var prefix=\"hsla(\",hsla=jQuery.map(this.hsla(),function(v,i){if(v==null){v=i>2?1:0;}\nif(i&&i<3){v=Math.round(v*100)+\"%\";}\nreturn v;});if(hsla[3]===1){hsla.pop();prefix=\"hsl(\";}\nreturn prefix+hsla.join()+\")\";},toHexString:function(includeAlpha){var rgba=this._rgba.slice(),alpha=rgba.pop();if(includeAlpha){rgba.push(~~(alpha*255));}\nreturn\"#\"+jQuery.map(rgba,function(v){v=(v||0).toString(16);return v.length===1?\"0\"+v:v;}).join(\"\");},toString:function(){return this._rgba[3]===0?\"transparent\":this.toRgbaString();}});color.fn.parse.prototype=color.fn;function hue2rgb(p,q,h){h=(h+1)%1;if(h*6<1){return p+(q-p)*h*6;}\nif(h*2<1){return q;}\nif(h*3<2){return p+(q-p)*((2 / 3)-h)*6;}\nreturn p;}\nspaces.hsla.to=function(rgba){if(rgba[0]==null||rgba[1]==null||rgba[2]==null){return[null,null,null,rgba[3]];}\nvar r=rgba[0]/ 255,g=rgba[1]/ 255,b=rgba[2]/ 255,a=rgba[3],max=Math.max(r,g,b),min=Math.min(r,g,b),diff=max-min,add=max+min,l=add*0.5,h,s;if(min===max){h=0;}else if(r===max){h=(60*(g-b)/ diff)+360;}else if(g===max){h=(60*(b-r)/ diff)+120;}else{h=(60*(r-g)/ diff)+240;}\nif(diff===0){s=0;}else if(l<=0.5){s=diff / add;}else{s=diff /(2-add);}\nreturn[Math.round(h)%360,s,l,a==null?1:a];};spaces.hsla.from=function(hsla){if(hsla[0]==null||hsla[1]==null||hsla[2]==null){return[null,null,null,hsla[3]];}\nvar h=hsla[0]/ 360,s=hsla[1],l=hsla[2],a=hsla[3],q=l<=0.5?l*(1+s):l+s-l*s,p=2*l-q;return[Math.round(hue2rgb(p,q,h+(1 / 3))*255),Math.round(hue2rgb(p,q,h)*255),Math.round(hue2rgb(p,q,h-(1 / 3))*255),a];};each(spaces,function(spaceName,space){var props=space.props,cache=space.cache,to=space.to,from=space.from;color.fn[spaceName]=function(value){if(to&&!this[cache]){this[cache]=to(this._rgba);}\nif(value===undefined){return this[cache].slice();}\nvar ret,type=jQuery.type(value),arr=(type===\"array\"||type===\"object\")?value:arguments,local=this[cache].slice();each(props,function(key,prop){var val=arr[type===\"object\"?key:prop.idx];if(val==null){val=local[prop.idx];}\nlocal[prop.idx]=clamp(val,prop);});if(from){ret=color(from(local));ret[cache]=local;return ret;}else{return color(local);}};each(props,function(key,prop){if(color.fn[key]){return;}\ncolor.fn[key]=function(value){var vtype=jQuery.type(value),fn=(key===\"alpha\"?(this._hsla?\"hsla\":\"rgba\"):spaceName),local=this[fn](),cur=local[prop.idx],match;if(vtype===\"undefined\"){return cur;}\nif(vtype===\"function\"){value=value.call(this,cur);vtype=jQuery.type(value);}\nif(value==null&&prop.empty){return this;}\nif(vtype===\"string\"){match=rplusequals.exec(value);if(match){value=cur+parseFloat(match[2])*(match[1]===\"+\"?1:-1);}}\nlocal[prop.idx]=value;return this[fn](local);};});});color.hook=function(hook){var hooks=hook.split(\" \");each(hooks,function(i,hook){jQuery.cssHooks[hook]={set:function(elem,value){var parsed,curElem,backgroundColor=\"\";if(value!==\"transparent\"&&(jQuery.type(value)!==\"string\"||(parsed=stringParse(value)))){value=color
2(parsed||value);if(!support.rgba&&value._rgba[3]!==1){curElem=hook===\"backgroundColor\"?elem.parentNode:elem;while((backgroundColor===\"\"||backgroundColor===\"transparent\")&&curElem&&curElem.style){try{backgroundColor=jQuery.css(curElem,\"backgroundColor\");curElem=curElem.parentNode;}catch(e){}}\nvalue=value.blend(backgroundColor&&backgroundColor!==\"transparent\"?backgroundColor:\"_default\");}\nvalue=value.toRgbaString();}\ntry{elem.style[hook]=value;}catch(e){}}};jQuery.fx.step[hook]=function(fx){if(!fx.colorInit){fx.start=color(fx.elem,hook);fx.end=color(fx.end);fx.colorInit=true;}\njQuery.cssHooks[hook].set(fx.elem,fx.start.transition(fx.end,fx.pos));};});};color.hook(stepHooks);jQuery.cssHooks.borderColor={expand:function(value){var expanded={};each([\"Top\",\"Right\",\"Bottom\",\"Left\"],function(i,part){expanded[\"border\"+part+\"Color\"]=value;});return expanded;}};colors=jQuery.Color.names={aqua:\"#00ffff\",black:\"#000000\",blue:\"#0000ff\",fuchsia:\"#ff00ff\",gray:\"#808080\",green:\"#008000\",lime:\"#00ff00\",maroon:\"#800000\",navy:\"#000080\",olive:\"#808000\",purple:\"#800080\",red:\"#ff0000\",silver:\"#c0c0c0\",teal:\"#008080\",white:\"#ffffff\",yellow:\"#ffff00\",transparent:[null,null,null,0],_default:\"#ffffff\"};})(jQuery);(function(){var classAnimationActions=[\"add\",\"remove\",\"toggle\"],shorthandStyles={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};$.each([\"borderLeftStyle\",\"borderRightStyle\",\"borderBottomStyle\",\"borderTopStyle\"],function(_,prop){$.fx.step[prop]=function(fx){if(fx.end!==\"none\"&&!fx.setAttr||fx.pos===1&&!fx.setAttr){jQuery.style(fx.elem,prop,fx.end);fx.setAttr=true;}};});function getElementStyles(elem){var key,len,style=elem.ownerDocument.defaultView?elem.ownerDocument.defaultView.getComputedStyle(elem,null):elem.currentStyle,styles={};if(style&&style.length&&style[0]&&style[style[0]]){len=style.length;while(len--){key=style[len];if(typeof style[key]===\"string\"){styles[$.camelCase(key)]=style[key];}}}else{for(key in style){if(typeof style[key]===\"string\"){styles[key]=style[key];}}}\nreturn styles;}\nfunction styleDifference(oldStyle,newStyle){var diff={},name,value;for(name in newStyle){value=newStyle[name];if(oldStyle[name]!==value){if(!shorthandStyles[name]){if($.fx.step[name]||!isNaN(parseFloat(value))){diff[name]=value;}}}}\nreturn diff;}\nif(!$.fn.addBack){$.fn.addBack=function(selector){return this.add(selector==null?this.prevObject:this.prevObject.filter(selector));};}\n$.effects.animateClass=function(value,duration,easing,callback){var o=$.speed(duration,easing,callback);return this.queue(function(){var animated=$(this),baseClass=animated.attr(\"class\")||\"\",applyClassChange,allAnimations=o.children?animated.find(\"*\").addBack():animated;allAnimations=allAnimations.map(function(){var el=$(this);return{el:el,start:getElementStyles(this)};});applyClassChange=function(){$.each(classAnimationActions,function(i,action){if(value[action]){animated[action+\"Class\"](value[action]);}});};applyClassChange();allAnimations=allAnimations.map(function(){this.end=getElementStyles(this.el[0]);this.diff=styleDifference(this.start,this.end);return this;});animated.attr(\"class\",baseClass);allAnimations=allAnimations.map(function(){var styleInfo=this,dfd=$.Deferred(),opts=$.extend({},o,{queue:false,complete:function(){dfd.resolve(styleInfo);}});this.el.animate(this.diff,opts);return dfd.promise();});$.when.apply($,allAnimations.get()).done(function(){applyClassChange();$.each(arguments,function(){var el=this.el;$.each(this.diff,function(key){el.css(key,\"\");});});o.complete.call(animated[0]);});});};$.fn.extend({addClass:(function(orig){return function(classNames,speed,easing,callback){return speed?$.effects.animateClass.call(this,{add:classNames},speed,easing,callback):orig.apply(this,arguments);};})($.fn.addClass),removeClass:(function(orig){return function(classNames,speed,easing,callback){return arguments.length>1?$.effects.animateClass.call(this,{remove:classNames},speed,easing,callback):orig.apply(this,arguments);};})($.fn.removeClass),toggleClass:(function(orig){return function(classNames,force,speed,easing,callback){if(typeof force===\"boolean\"||force===undefined){if(!speed){return orig.apply(this,arguments);}else{return $.effects.animateClass.call(this,(force?{add:classNames}:{remove:classNames}),speed,easing,callback);}}else{return $.effects.animateClass.call(this,{toggle:classNames},force,speed,easing);}};})($.fn.toggleClass),switchClass:function(remove,add,speed,easing,callback){return $.effects.animateClass.call(this,{add:add,remove:remove},speed,easing,callback);}});})();(function(){$.extend($.effects,{version:\"1.10.4\",save:function(element,set){for(var i=0;i<set.length;i++){if(set[i]!==null){element.data(dataSpace+set[i],element[0].style[set[i]]);}}},restore:function(element,set){var val,i;for(i=0;i<set.length;i++){if(set[i]!==null){val=element.data(dataSpace+set[i]);if(val===undefined){val=\"\";}\nelement.css(set[i],val);}}},setMode:function(el,mode){if(mode===\"toggle\"){mode=el.is(\":hidden\")?\"show\":\"hide\";}\nreturn mode;},getBaseline:function(origin,original){var y,x;switch(origin[0]){case\"top\":y=0;break;case\"middle\":y=0.5;break;case\"bottom\":y=1;break;default:y=origin[0]/ original.height;}\nswitch(origin[1]){case\"left\":x=0;break;case\"center\":x=0.5;break;case\"right\":x=1;break;default:x=origin[1]/ original.width;}\nreturn{x:x,y:y};},createWrapper:function(element){if(element.parent().is(\".ui-effects-wrapper\")){return element.parent();}\nvar props={width:element.outerWidth(true),height:element.outerHeight(true),\"float\":element.css(\"float\")},wrapper=$(\"<div></div>\").addClass(\"ui-effects-wrapper\").css({fontSize:\"100%\",background:\"transparent\",border:\"none\",margin:0,padding:0}),size={width:element.width(),height:element.height()},active=document.activeElement;try{active.id;}catch(e){active=document.body;}\nelement.wrap(wrapper);if(element[0]===active||$.contains(element[0],active)){$(active).focus();}\nwrapper=element.parent();if(element.css(\"position\")===\"static\"){wrapper.css({position:\"relative\"});element.css({position:\"relative\"});}else{$.extend(props,{position:element.css(\"position\"),zIndex:element.css(\"z-index\")});$.each([\"top\",\"left\",\"bottom\",\"right\"],function(i,pos){props[pos]=element.css(pos);if(isNaN(parseInt(props[pos],10))){props[pos]=\"auto\";}});element.css({position:\"relative\",top:0,left:0,right:\"auto\",bottom:\"auto\"});}\nelement.css(size);return wrapper.css(props).show();},removeWrapper:function(element){var active=document.activeElement;if(element.parent().is(\".ui-effects-wrapper\")){element.parent().replaceWith(element);if(element[0]===active||$.contains(element[0],active)){$(active).focus();}}\nreturn element;},setTransition:function(element,list,factor,value){value=value||{};$.each(list,function(i,x){var unit=element.cssUnit(x);if(unit[0]>0){value[x]=unit[0]*factor+unit[1];}});return value;}});function _normalizeArguments(effect,options,speed,callback){if($.isPlainObject(effect)){options=effect;effect=effect.effect;}\neffect={effect:effect};if(options==null){options={};}\nif($.isFunction(options)){callback=options;speed=null;options={};}\nif(typeof options===\"number\"||$.fx.speeds[options]){callback=speed;speed=options;options={};}\nif($.isFunction(speed)){callback=speed;speed=null;}\nif(options){$.extend(effect,options);}\nspeed=speed||options.duration;effect.duration=$.fx.off?0:typeof speed===\"number\"?speed:speed in $.fx.speeds?$.fx.speeds[speed]:$.fx.speeds._default;effect.complete=callback||options.complete;return effect;}\nfunction standardAnimationOption(option){if(!option||typeof option===\"number\"||$.fx.speeds[option]){return true;}\nif(typeof option===\"string\"&&!$.effects.effect[option]){return true;}\nif($.isFunction(option)){return true;}\nif(typeof option===\"object\"&&!option.effect){return true;}\nreturn false;}\n$.fn.extend({effect:function(){var args=_normalizeArguments.apply(this,arguments),mode=args.mode,queue=args.queue,effectMethod=$.effects.effect[args.effect];if($.fx.off||!effectMethod){if(mode){return this[mode](args.duration,args.complete);}else{return this.each(function(){if(args.complete){args.complete.call(this);}});}}\nfunction run(next){var elem=$(this),complete=args.complete,mode=args.mode;function done(){if($.isFunction(complete)){complete.call(elem[0]);}\nif($.isFunction(next)){next();}}\nif(elem.is(\":hidden\")?mode===\"hide\":mode===\"show\"){elem[mode]();done();}else{effectMethod.call(elem[0],args,done);}}\nreturn queue===false?this.each(run):this.queue(queue||\"fx\",run);},show:(function(orig){return function(option){if(standardAnimationOption(option)){return orig.apply(this,arguments);}else{var args=_normalizeArguments.apply(this,arguments);args.mode=\"show\";return this.effect.call(this,args);}};})($.fn.show),hide:(function(orig){return function(option){if(standardAnimationOption(option)){return orig.apply(this,arguments);}else{var args=_normalizeArguments.apply(this,arguments);args.mode=\"hide\";return this.effect.call(this,args);}};})($.fn.hide),toggle:(function(orig){return function(option){if(standardAnimationOption(option)||typeof option===\"boolean\"){return orig.apply(this,arguments);}else{var args=_normalizeArguments.apply(this,arguments);args.mode=\"toggle\";return this.effect.call(this,args);}};}
2)($.fn.toggle),cssUnit:function(key){var style=this.css(key),val=[];$.each([\"em\",\"px\",\"%\",\"pt\"],function(i,unit){if(style.indexOf(unit)>0){val=[parseFloat(style),unit];}});return val;}});})();(function(){var baseEasings={};$.each([\"Quad\",\"Cubic\",\"Quart\",\"Quint\",\"Expo\"],function(i,name){baseEasings[name]=function(p){return Math.pow(p,i+2);};});$.extend(baseEasings,{Sine:function(p){return 1-Math.cos(p*Math.PI / 2);},Circ:function(p){return 1-Math.sqrt(1-p*p);},Elastic:function(p){return p===0||p===1?p:-Math.pow(2,8*(p-1))*Math.sin(((p-1)*80-7.5)*Math.PI / 15);},Back:function(p){return p*p*(3*p-2);},Bounce:function(p){var pow2,bounce=4;while(p<((pow2=Math.pow(2,--bounce))-1)/ 11){}\nreturn 1 / Math.pow(4,3-bounce)-7.5625*Math.pow((pow2*3-2)/ 22-p,2);}});$.each(baseEasings,function(name,easeIn){$.easing[\"easeIn\"+name]=easeIn;$.easing[\"easeOut\"+name]=function(p){return 1-easeIn(1-p);};$.easing[\"easeInOut\"+name]=function(p){return p<0.5?easeIn(p*2)/ 2:1-easeIn(p*-2+2)/ 2;};});})();});","jquery/ui-modules/slider.min.js":"/*!\n * jQuery UI Slider - v1.10.4\n * http://jqueryui.com\n *\n * Copyright 2014 jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n *\n * http://api.jqueryui.com/slider/\n */\ndefine(['jquery','jquery-ui-modules/core','jquery-ui-modules/mouse'],function($,undefined){var numPages=5;$.widget(\"ui.slider\",$.ui.mouse,{version:\"1.10.4\",widgetEventPrefix:\"slide\",options:{animate:false,distance:0,max:100,min:0,orientation:\"horizontal\",range:false,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},_create:function(){this._keySliding=false;this._mouseSliding=false;this._animateOff=true;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass(\"ui-slider\"+\" ui-slider-\"+this.orientation+\" ui-widget\"+\" ui-widget-content\"+\" ui-corner-all\");this._refresh();this._setOption(\"disabled\",this.options.disabled);this._animateOff=false;},_refresh:function(){this._createRange();this._createHandles();this._setupEvents();this._refreshValue();},_createHandles:function(){var i,handleCount,options=this.options,existingHandles=this.element.find(\".ui-slider-handle\").addClass(\"ui-state-default ui-corner-all\"),handle=\"<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>\",handles=[];handleCount=(options.values&&options.values.length)||1;if(existingHandles.length>handleCount){existingHandles.slice(handleCount).remove();existingHandles=existingHandles.slice(0,handleCount);}\nfor(i=existingHandles.length;i<handleCount;i++){handles.push(handle);}\nthis.handles=existingHandles.add($(handles.join(\"\")).appendTo(this.element));this.handle=this.handles.eq(0);this.handles.each(function(i){$(this).data(\"ui-slider-handle-index\",i);});},_createRange:function(){var options=this.options,classes=\"\";if(options.range){if(options.range===true){if(!options.values){options.values=[this._valueMin(),this._valueMin()];}else if(options.values.length&&options.values.length!==2){options.values=[options.values[0],options.values[0]];}else if($.isArray(options.values)){options.values=options.values.slice(0);}}\nif(!this.range||!this.range.length){this.range=$(\"<div></div>\").appendTo(this.element);classes=\"ui-slider-range\"+\" ui-widget-header ui-corner-all\";}else{this.range.removeClass(\"ui-slider-range-min ui-slider-range-max\").css({\"left\":\"\",\"bottom\":\"\"});}
2\nthis.range.addClass(classes+\n((options.range===\"min\"||options.range===\"max\")?\" ui-slider-range-\"+options.range:\"\"));}else{if(this.range){this.range.remove();}\nthis.range=null;}},_setupEvents:function(){var elements=this.handles.add(this.range).filter(\"a\");this._off(elements);this._on(elements,this._handleEvents);this._hoverable(elements);this._focusable(elements);},_destroy:function(){this.handles.remove();if(this.range){this.range.remove();}\nthis.element.removeClass(\"ui-slider\"+\" ui-slider-horizontal\"+\" ui-slider-vertical\"+\" ui-widget\"+\" ui-widget-content\"+\" ui-corner-all\");this._mouseDestroy();},_mouseCapture:function(event){var position,normValue,distance,closestHandle,index,allowed,offset,mouseOverHandle,that=this,o=this.options;if(o.disabled){return false;}\nthis.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();position={x:event.pageX,y:event.pageY};normValue=this._normValueFromMouse(position);distance=this._valueMax()-this._valueMin()+1;this.handles.each(function(i){var thisDistance=Math.abs(normValue-that.values(i));if((distance>thisDistance)||(distance===thisDistance&&(i===that._lastChangedValue||that.values(i)===o.min))){distance=thisDistance;closestHandle=$(this);index=i;}});allowed=this._start(event,index);if(allowed===false){return false;}\nthis._mouseSliding=true;this._handleIndex=index;closestHandle.addClass(\"ui-state-active\").focus();offset=closestHandle.offset();mouseOverHandle=!$(event.target).parents().addBack().is(\".ui-slider-handle\");this._clickOffset=mouseOverHandle?{left:0,top:0}:{left:event.pageX-offset.left-(closestHandle.width()/ 2),top:event.pageY-offset.top-\n(closestHandle.height()/ 2)-\n(parseInt(closestHandle.css(\"borderTopWidth\"),10)||0)-\n(parseInt(closestHandle.css(\"borderBottomWidth\"),10)||0)+\n(parseInt(closestHandle.css(\"marginTop\"),10)||0)};if(!this.handles.hasClass(\"ui-state-hover\")){this._slide(event,index,normValue);}\nthis._animateOff=true;return true;},_mouseStart:function(){return true;},_mouseDrag:function(event){var position={x:event.pageX,y:event.pageY},normValue=this._normValueFromMouse(position);this._slide(event,this._handleIndex,normValue);return false;},_mouseStop:function(event){this.handles.removeClass(\"ui-state-active\");this._mouseSliding=false;this._stop(event,this._handleIndex);this._change(event,this._handleIndex);this._handleIndex=null;this._clickOffset=null;this._animateOff=false;return false;},_detectOrientation:function(){this.orientation=(this.options.orientation===\"vertical\")?\"vertical\":\"horizontal\";},_normValueFromMouse:function(position){var pixelTotal,pixelMouse,percentMouse,valueTotal,valueMouse;if(this.orientation===\"horizontal\"){pixelTotal=this.elementSize.width;pixelMouse=position.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0);}else{pixelTotal=this.elementSize.height;pixelMouse=position.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0);}\npercentMouse=(pixelMouse / pixelTotal);if(percentMouse>1){percentMouse=1;}\nif(percentMouse<0){percentMouse=0;}\nif(this.orientation===\"vertical\"){percentMouse=1-percentMouse;}\nvalueTotal=this._valueMax()-this._valueMin();valueMouse=this._valueMin()+percentMouse*valueTotal;return this._trimAlignValue(valueMouse);},_start:function(event,index){var uiHash={handle:this.handles[index],value:this.value()};if(this.options.values&&this.options.values.length){uiHash.value=this.values(index);uiHash.values=this.values();}\nreturn this._trigger(\"start\",event,uiHash);},_slide:function(event,index,newVal){var otherVal,newValues,allowed;if(this.options.values&&this.options.values.length){otherVal=this.values(index?0:1);if((this.options.values.length===2&&this.options.range===true)&&((index===0&&newVal>otherVal)||(index===1&&newVal<otherVal))){newVal=otherVal;}\nif(newVal!==this.values(index)){newValues=this.values();newValues[index]=newVal;allowed=this._trigger(\"slide\",event,{handle:this.handles[index],value:newVal,values:newValues});otherVal=this.values(index?0:1);if(allowed!==false){this.values(index,newVal);}}}else{if(newVal!==this.value()){allowed=this._trigger(\"slide\",event,{handle:this.handles[index],value:newVal});if(allowed!==false){this.value(newVal);}}}}
2,_stop:function(event,index){var uiHash={handle:this.handles[index],value:this.value()};if(this.options.values&&this.options.values.length){uiHash.value=this.values(index);uiHash.values=this.values();}\nthis._trigger(\"stop\",event,uiHash);},_change:function(event,index){if(!this._keySliding&&!this._mouseSliding){var uiHash={handle:this.handles[index],value:this.value()};if(this.options.values&&this.options.values.length){uiHash.value=this.values(index);uiHash.values=this.values();}\nthis._lastChangedValue=index;this._trigger(\"change\",event,uiHash);}},value:function(newValue){if(arguments.length){this.options.value=this._trimAlignValue(newValue);this._refreshValue();this._change(null,0);return;}\nreturn this._value();},values:function(index,newValue){var vals,newValues,i;if(arguments.length>1){this.options.values[index]=this._trimAlignValue(newValue);this._refreshValue();this._change(null,index);return;}\nif(arguments.length){if($.isArray(arguments[0])){vals=this.options.values;newValues=arguments[0];for(i=0;i<vals.length;i+=1){vals[i]=this._trimAlignValue(newValues[i]);this._change(null,i);}\nthis._refreshValue();}else{if(this.options.values&&this.options.values.length){return this._values(index);}else{return this.value();}}}else{return this._values();}},_setOption:function(key,value){var i,valsLength=0;if(key===\"range\"&&this.options.range===true){if(value===\"min\"){this.options.value=this._values(0);this.options.values=null;}else if(value===\"max\"){this.options.value=this._values(this.options.values.length-1);this.options.values=null;}}\nif($.isArray(this.options.values)){valsLength=this.options.values.length;}\n$.Widget.prototype._setOption.apply(this,arguments);switch(key){case\"orientation\":this._detectOrientation();this.element.removeClass(\"ui-slider-horizontal ui-slider-vertical\").addClass(\"ui-slider-\"+this.orientation);this._refreshValue();break;case\"value\":this._animateOff=true;this._refreshValue();this._change(null,0);this._animateOff=false;break;case\"values\":this._animateOff=true;this._refreshValue();for(i=0;i<valsLength;i+=1){this._change(null,i);}\nthis._animateOff=false;break;case\"min\":case\"max\":this._animateOff=true;this._refreshValue();this._animateOff=false;break;case\"range\":this._animateOff=true;this._refresh();this._animateOff=false;break;}},_value:function(){var val=this.options.value;val=this._trimAlignValue(val);return val;},_values:function(index){var val,vals,i;if(arguments.length){val=this.options.values[index];val=this._trimAlignValue(val);return val;}else if(this.options.values&&this.options.values.length){vals=this.options.values.slice();for(i=0;i<vals.length;i+=1){vals[i]=this._trimAlignValue(vals[i]);}\nreturn vals;}else{return[];}},_trimAlignValue:function(val){if(val<=this._valueMin()){return this._valueMin();}\nif(val>=this._valueMax()){return this._valueMax();}\nvar step=(this.options.step>0)?this.options.step:1,valModStep=(val-this._valueMin())%step,alignValue=val-valModStep;if(Math.abs(valModStep)*2>=step){alignValue+=(valModStep>0)?step:(-step);}\nreturn parseFloat(alignValue.toFixed(5));},_valueMin:function(){return this.options.min;},_valueMax:function(){return this.options.max;},_refreshValue:function(){var lastValPercent,valPercent,value,valueMin,valueMax,oRange=this.options.range,o=this.options,that=this,animate=(!this._animateOff)?o.animate:false,_set={};if(this.options.values&&this.options.values.length){this.handles.each(function(i){valPercent=(that.values(i)-that._valueMin())/(that._valueMax()-that._valueMin())*100;_set[that.orientation===\"horizontal\"?\"left\":\"bottom\"]=valPercent+\"%\";$(this).stop(1,1)[animate?\"animate\":\"css\"](_set,o.animate);if(that.options.range===true){if(that.orientation===\"horizontal\"){if(i===0){that.range.stop(1,1)[animate?\"animate\":\"css\"]({left:valPercent+\"%\"},o.animate);}\nif(i===1){that.range[animate?\"animate\":\"css\"]({width:(valPercent-lastValPercent)+\"%\"},{queue:false,duration:o.animate});}}else{if(i===0){that.range.stop(1,1)[animate?\"animate\":\"css\"]({bottom:(valPercent)+\"%\"},o.animate);}\nif(i===1){that.range[animate?\"animate\":\"css\"]({height:(valPercent-lastValPercent)+\"%\"},{queue:false,duration:o.animate});}}}\nlastValPercent=valPercent;});}else{value=this.value();valueMin=this._valueMin();valueMax=this._valueMax();valPercent=(valueMax!==valueMin)?(value-valueMin)/(valueMax-valueMin)*100:0;_set[this.orientation===\"horizontal\"?\"left\":\"bottom\"]=valPercent+\"%\";
2this.handle.stop(1,1)[animate?\"animate\":\"css\"](_set,o.animate);if(oRange===\"min\"&&this.orientation===\"horizontal\"){this.range.stop(1,1)[animate?\"animate\":\"css\"]({width:valPercent+\"%\"},o.animate);}\nif(oRange===\"max\"&&this.orientation===\"horizontal\"){this.range[animate?\"animate\":\"css\"]({width:(100-valPercent)+\"%\"},{queue:false,duration:o.animate});}\nif(oRange===\"min\"&&this.orientation===\"vertical\"){this.range.stop(1,1)[animate?\"animate\":\"css\"]({height:valPercent+\"%\"},o.animate);}\nif(oRange===\"max\"&&this.orientation===\"vertical\"){this.range[animate?\"animate\":\"css\"]({height:(100-valPercent)+\"%\"},{queue:false,duration:o.animate});}}},_handleEvents:{keydown:function(event){var allowed,curVal,newVal,step,index=$(event.target).data(\"ui-slider-handle-index\");switch(event.keyCode){case $.ui.keyCode.HOME:case $.ui.keyCode.END:case $.ui.keyCode.PAGE_UP:case $.ui.keyCode.PAGE_DOWN:case $.ui.keyCode.UP:case $.ui.keyCode.RIGHT:case $.ui.keyCode.DOWN:case $.ui.keyCode.LEFT:event.preventDefault();if(!this._keySliding){this._keySliding=true;$(event.target).addClass(\"ui-state-active\");allowed=this._start(event,index);if(allowed===false){return;}}\nbreak;}\nstep=this.options.step;if(this.options.values&&this.options.values.length){curVal=newVal=this.values(index);}else{curVal=newVal=this.value();}\nswitch(event.keyCode){case $.ui.keyCode.HOME:newVal=this._valueMin();break;case $.ui.keyCode.END:newVal=this._valueMax();break;case $.ui.keyCode.PAGE_UP:newVal=this._trimAlignValue(curVal+((this._valueMax()-this._valueMin())/ numPages));break;case $.ui.keyCode.PAGE_DOWN:newVal=this._trimAlignValue(curVal-((this._valueMax()-this._valueMin())/ numPages));break;case $.ui.keyCode.UP:case $.ui.keyCode.RIGHT:if(curVal===this._valueMax()){return;}\nnewVal=this._trimAlignValue(curVal+step);break;case $.ui.keyCode.DOWN:case $.ui.keyCode.LEFT:if(curVal===this._valueMin()){return;}\nnewVal=this._trimAlignValue(curVal-step);break;}\nthis._slide(event,index,newVal);},click:function(event){event.preventDefault();},keyup:function(event){var index=$(event.target).data(\"ui-slider-handle-index\");if(this._keySliding){this._keySliding=false;this._stop(event,index);this._change(event,index);$(event.target).removeClass(\"ui-state-active\");}}}});});","jquery/ui-modules/spinner.min.js":"/*!\n * jQuery UI Spinner - v1.10.4\n * http://jqueryui.com\n *\n * Copyright 2014 jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n *\n * http://api.jqueryui.com/spinner/\n */\ndefine(['jquery','jquery-ui-modules/button'],function($){function modifier(fn){return function(){var previous=this.element.val();fn.apply(this,arguments);this._refresh();if(previous!==this.element.val()){this._trigger(\"change\");}};}\n$.widget(\"ui.spinner\",{version:\"1.10.4\",defaultElement:\"<input>\",widgetEventPrefix:\"spin\",options:{culture:null,icons:{down:\"ui-icon-triangle-1-s\",up:\"ui-icon-triangle-1-n\"},incremental:true,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption(\"max\",this.options.max);this._setOption(\"min\",this.options.min);this._setOption(\"step\",this.options.step);if(this.value()!==\"\"){this._value(this.element.val(),true);}\nthis._draw();this._on(this._events);this._refresh();this._on(this.window,{beforeunload:function(){this.element.removeAttr(\"autocomplete\");}});},_getCreateOptions:function(){var options={},element=this.element;$.each([\"min\",\"max\",\"step\"],function(i,option){var value=element.attr(option);if(value!==undefined&&value.length){options[option]=value;}});return options;},_events:{keydown:function(event){if(this._start(event)&&this._key
2down(event)){event.preventDefault();}},keyup:\"_stop\",focus:function(){this.previous=this.element.val();},blur:function(event){if(this.cancelBlur){delete this.cancelBlur;return;}\nthis._stop();this._refresh();if(this.previous!==this.element.val()){this._trigger(\"change\",event);}},mousewheel:function(event,delta){if(!delta){return;}\nif(!this.spinning&&!this._start(event)){return false;}\nthis._spin((delta>0?1:-1)*this.options.step,event);clearTimeout(this.mousewheelTimer);this.mousewheelTimer=this._delay(function(){if(this.spinning){this._stop(event);}},100);event.preventDefault();},\"mousedown .ui-spinner-button\":function(event){var previous;previous=this.element[0]===this.document[0].activeElement?this.previous:this.element.val();function checkFocus(){var isActive=this.element[0]===this.document[0].activeElement;if(!isActive){this.element.focus();this.previous=previous;this._delay(function(){this.previous=previous;});}}\nevent.preventDefault();checkFocus.call(this);this.cancelBlur=true;this._delay(function(){delete this.cancelBlur;checkFocus.call(this);});if(this._start(event)===false){return;}\nthis._repeat(null,$(event.currentTarget).hasClass(\"ui-spinner-up\")?1:-1,event);},\"mouseup .ui-spinner-button\":\"_stop\",\"mouseenter .ui-spinner-button\":function(event){if(!$(event.currentTarget).hasClass(\"ui-state-active\")){return;}\nif(this._start(event)===false){return false;}\nthis._repeat(null,$(event.currentTarget).hasClass(\"ui-spinner-up\")?1:-1,event);},\"mouseleave .ui-spinner-button\":\"_stop\"},_draw:function(){var uiSpinner=this.uiSpinner=this.element.addClass(\"ui-spinner-input\").attr(\"autocomplete\",\"off\").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml());this.element.attr(\"role\",\"spinbutton\");this.buttons=uiSpinner.find(\".ui-spinner-button\").attr(\"tabIndex\",-1).button().removeClass(\"ui-corner-all\");if(this.buttons.height()>Math.ceil(uiSpinner.height()*0.5)&&uiSpinner.height()>0){uiSpinner.height(uiSpinner.height());}\nif(this.options.disabled){this.disable();}},_keydown:function(event){var options=this.options,keyCode=$.ui.keyCode;switch(event.keyCode){case keyCode.UP:this._repeat(null,1,event);return true;case keyCode.DOWN:this._repeat(null,-1,event);return true;case keyCode.PAGE_UP:this._repeat(null,options.page,event);return true;case keyCode.PAGE_DOWN:this._repeat(null,-options.page,event);return true;}\nreturn false;},_uiSpinnerHtml:function(){return\"<span class='ui-spinner ui-widget ui-widget-content ui-corner-all'></span>\";},_buttonHtml:function(){return\"\"+\"<a class='ui-spinner-button ui-spinner-up ui-corner-tr'>\"+\"<span class='ui-icon \"+this.options.icons.up+\"'>&#9650;</span>\"+\"</a>\"+\"<a class='ui-spinner-button ui-spinner-down ui-corner-br'>\"+\"<span class='ui-icon \"+this.options.icons.down+\"'>&#9660;</span>\"+\"</a>\";},_start:function(event){if(!this.spinning&&this._trigger(\"start\",event)===false){return false;}\nif(!this.counter){this.counter=1;}\nthis.spinning=true;return true;},_repeat:function(i,steps,event){i=i||500;clearTimeout(this.timer);this.timer=this._delay(function(){this._repeat(40,steps,event);},i);this._spin(steps*this.options.step,event);},_spin:function(step,event){var value=this.value()||0;if(!this.counter){this.counter=1;}\nvalue=this._adjustValue(value+step*this._increment(this.counter));if(!this.spinning||this._trigger(\"spin\",event,{value:value})!==false){this._value(value);this.counter++;}},_increment:function(i){var incremental=this.options.incremental;if(incremental){return $.isFunction(incremental)?incremental(i):Math.floor(i*i*i / 50000-i*i / 500+17*i / 200+1);}\nreturn 1;},_precision:function(){var precision=this._precisionOf(this.options.step);if(this.options.min!==null){precision=Math.max(precision,this._precisionOf(this.options.min));}\nreturn precision;},_precisionOf:function(num){var str=num.toString(),decimal=str.indexOf(\".\");return decimal===-1?0:str.length-decimal-1;},_adjustValue:function(value){var base,aboveMin,options=this.options;base=options.min!==null?options.min:0;aboveMin=value-base;aboveMin=Math.round(aboveMin / options.step)*options.step;value=base+aboveMin;value=parseFloat(value.toFixed(this._precision()));if(options.max!==null&&value>options.max){return options.max;}\nif(options.min!==null&&value<options.min){return options.min;}\nreturn value;},_stop:function(event){if(!this.spinning){return;}\nclearTimeout(this.timer);clearTimeout(this.mousewheelTimer);this.counter=0;this.spinning=false;this._trigger(\"stop\",event);},_setOption:function(key,value){if(key===\"culture\"||key===\"numberFormat\"){var prevValue=this._parse(this.element.val());this.options[key]=value;this.element.val(this._format(prevValue));return;}\nif(key===\"max\"||key===\"min\"||key===\"step\"){if(typeof value===\"string\"){value=this._parse(value);}}\nif(key===\"icons\"){this.buttons.first().find(\".ui-icon\").removeClass(this.options.icons.up).addClass(value.up);this.buttons.last().find(\".ui-icon\").removeClass(this.options.icons.down).addClass(value.down);}\nthis._super(key,value);if(key===\"disabled\"){if(value){this.element.prop(\"disabled\",true);this.buttons.button(\"disable\");}else{this.element.prop(\"disabled\",false);this.buttons.button(\"enable\");}}},_setOptions:modifier(function(options){this._super(options);this._value(this.element.val());}),_parse:function(val){if(typeof val===\"string\"&&val!==\"\"){val=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(val,10,this.options.culture):+val;}\nreturn val===\"\"||isNaN(val)?null:val;},_format:function(value){if(value===\"\"){return\"\";}\nreturn window.Globalize&&this.options.numberFormat?Globalize.format(value,this.options.numberFormat,this.options.culture):value;},_refresh:function(){this.element.attr({\"aria-valuemin\":this.options.min,\"aria-valuemax\":this.options.max,\"aria-valuenow\":this._parse(this.element.val())});},_value:function(value,allowAny){var parsed;if(value!==\"\"){parsed=this._parse(value);if(parsed!==null){if(!allowAny){parsed=this._adjustValue(parsed);}\nvalue=this._format(parsed);}}\nthis.element.val(value);this._refresh();},_destroy:function(){this.element.removeClass(\"ui-spinner-input\").prop(\"disabled\",false).removeAttr(\"autocomplete\").removeAttr(\"role\").removeAttr(\"aria-valuemin\").removeAttr(\"aria-valuemax\").removeAttr(\"aria-valuenow\");this.uiSpinner.replaceWith(this.element);},stepUp:modifier(function(steps){this._stepUp(steps);}),_stepUp:function(steps){if(this._start()){this._spin((steps||1)*this.options.step);this._stop();}},stepDown:modifier(function(steps){this._stepDown(steps);}),_stepDown:function(steps){if(this._start()){this._spin((steps||1)*-this.options.step);this._stop();}},pageUp:modifier(function(pages){this._stepUp((pages||1)*this.options.page);}),pageDown:modifier(function(pages){this._stepDown((pages||1)*this.options.page);}),value:function(newVal){if(!arguments.length){return this._parse(this.element.val());}\nmodifier(this._value).call(this,newVal);},widget:function(){return this.uiSpinner;}});});","jquery/ui-modules/mouse.min.js":"/*!\n * jQuery UI Mouse - v1.10.4\n * http://jqueryui.com\n *\n * Copyright 2014 jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n *\n * http://api.jqueryui.com/mouse/\n */\ndefine(['jquery','jquery-ui-modules/widget'],function($,undefined){var mouseHandled=false;$(document).mouseup(function(){mouseHandled=false;});$.widget(\"ui.mouse\",{version:\"1.10.4\",options:{cancel:\"input,textarea,button,select,option\",distance:1,delay:0},_mouseInit:function(){var that=this;this.element.bind(\"mousedown.\"+this.widgetName,function(event){return that._mouseDown(event);}).bind(\"click.\"+this.widgetName,function(event){if(true===$.data(event.target,that.widgetName+\".preventClickEvent\")){$.removeData(event.target,that.widgetName+\".preventClickEvent\");event.stopImmediatePropagation();return false;}});this.started=false;},_mouseDestroy:function(){this.element.unbind(\".\"+this.widgetName);if(this._mouseMoveDelegate){$(document).unbind(\"mousemove.\"+this.widgetName,this._mouseMoveDelegate).unbind(\"mouseup.\"+this.widgetName,this._mouseUpDelegate);}},_mouseDown:function(event){if(mouseHandled){return;}\n(this._mouseStarted&&this._mouseUp(event));this._mouseDownEvent=event;var that=this,btnIsLeft=(event.which===1),elIsCancel=(typeof this.options.cancel===\"string\"&&event.target.nodeName?$(event.target).closest(this.options.cancel).length:false);
2if(!btnIsLeft||elIsCancel||!this._mouseCapture(event)){return true;}\nthis.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){that.mouseDelayMet=true;},this.options.delay);}\nif(this._mouseDistanceMet(event)&&this._mouseDelayMet(event)){this._mouseStarted=(this._mouseStart(event)!==false);if(!this._mouseStarted){event.preventDefault();return true;}}\nif(true===$.data(event.target,this.widgetName+\".preventClickEvent\")){$.removeData(event.target,this.widgetName+\".preventClickEvent\");}\nthis._mouseMoveDelegate=function(event){return that._mouseMove(event);};this._mouseUpDelegate=function(event){return that._mouseUp(event);};$(document).bind(\"mousemove.\"+this.widgetName,this._mouseMoveDelegate).bind(\"mouseup.\"+this.widgetName,this._mouseUpDelegate);event.preventDefault();mouseHandled=true;return true;},_mouseMove:function(event){if($.ui.ie&&(!document.documentMode||document.documentMode<9)&&!event.button){return this._mouseUp(event);}\nif(this._mouseStarted){this._mouseDrag(event);return event.preventDefault();}\nif(this._mouseDistanceMet(event)&&this._mouseDelayMet(event)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,event)!==false);(this._mouseStarted?this._mouseDrag(event):this._mouseUp(event));}\nreturn!this._mouseStarted;},_mouseUp:function(event){$(document).unbind(\"mousemove.\"+this.widgetName,this._mouseMoveDelegate).unbind(\"mouseup.\"+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;if(event.target===this._mouseDownEvent.target){$.data(event.target,this.widgetName+\".preventClickEvent\",true);}\nthis._mouseStop(event);}\nreturn false;},_mouseDistanceMet:function(event){return(Math.max(Math.abs(this._mouseDownEvent.pageX-event.pageX),Math.abs(this._mouseDownEvent.pageY-event.pageY))>=this.options.distance);},_mouseDelayMet:function(){return this.mouseDelayMet;},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true;}});});","jquery/ui-modules/selectable.min.js":"/*!\n * jQuery UI Selectable - v1.10.4\n * http://jqueryui.com\n *\n * Copyright 2014 jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n *\n * http://api.jqueryui.com/selectable/\n */\ndefine(['jquery','jquery-ui-modules/core','jquery-ui-modules/mouse'],function($,undefined){$.widget(\"ui.selectable\",$.ui.mouse,{version:\"1.10.4\",options:{appendTo:\"body\",autoRefresh:true,distance:0,filter:\"*\",tolerance:\"touch\",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var selectees,that=this;this.element.addClass(\"ui-selectable\");this.dragged=false;this.refresh=function(){selectees=$(that.options.filter,that.element[0]);selectees.addClass(\"ui-selectee\");selectees.each(function(){var $this=$(this),pos=$this.offset();$.data(this,\"selectable-item\",{element:this,$element:$this,left:pos.left,top:pos.top,right:pos.left+$this.outerWidth(),bottom:pos.top+$this.outerHeight(),startselected:false,selected:$this.hasClass(\"ui-selected\"),selecting:$this.hasClass(\"ui-selecting\"),unselecting:$this.hasClass(\"ui-unselecting\")});});};this.refresh();this.selectees=selectees.addClass(\"ui-selectee\");this._mouseInit();this.helper=$(\"<div class='ui-selectable-helper'></div>\");},_destroy:function(){this.selectees.removeClass(\"ui-selectee\").removeData(\"selectable-item\");this.element.removeClass(\"ui-selectable ui-selectable-disabled\");this._mouseDestroy();},_mouseStart:function(event){var that=this,options=this.options;this.opos=[event.pageX,event.pageY];if(this.options.disabled){return;}\nthis.selectees=$(options.filter,this.element[0]);this._trigger(\"start\",event);$(options.appendTo).append(this.helper);this.helper.css({\"left\":event.pageX,\"top\":event.pageY,\"width\":0,\"height\":0});if(options.autoRefresh){this.refresh();}\nthis.selectees.filter(\".ui-selected\").each(function(){var selectee=$.data(this,\"selectable-item\");selectee.startselected=true;if(!event.metaKey&&!event.ctrlKey){selectee.$element.removeClass(\"ui-selected\");selectee.selected=false;selectee.$element.addClass(\"ui-unselecting\");selectee.unselecting=true;that._trigger(\"unselecting\",event,{unselecting:selectee.element});}});$(event.target).parents().addBack().each(function(){var doSelect,selectee=$.data(this,\"selectable-item\");if(selectee){doSelect=(!event.metaKey&&!event.ctrlKey)||!selectee.$element.hasClass(\"ui-selected\");selectee.$element.removeClass(doSelect?\"ui-unselecting\":\"ui-selected\").addClass(doSelect?\"ui-selecting\":\"ui-unselecting\");selectee.unselecting=!doSelect;selectee.selecting=doSelect;selectee.selected=doSelect;if(doSelect){that._trigger(\"selecting\",event,{selecting:selectee.element});}else{that._trigger(\"unselecting\",event,{unselecting:selectee.element});}\nreturn false;}});},_mouseDrag:function(event){this.dragged=true;if(this.options.disabled){return;}\nvar tmp,that=this,options=this.options,x1=this.opos[0],y1=this.opos[1],x2=event.pageX,y2=event.pageY;if(x1>x2){tmp=x2;x2=x1;x1=tmp;}\nif(y1>y2){tmp=y2;y2=y1;y1=tmp;}\nthis.helper.css({left:x1,top:y1,width:x2-x1,height:y2-y1});this.selectees.each(function(){var selectee=$.data(this,\"selectable-item\"),hit=false;if(!selectee||selectee.element===that.element[0]){return;}\nif(options.tolerance===\"touch\"){hit=(!(selectee.left>x2||selectee.right<x1||selectee.top>y2||selectee.bottom<y1));}else if(options.tolerance===\"fit\"){hit=(selectee.left>x1&&selectee.right<x2&&selectee.top>y1&&selectee.bottom<y2);}\nif(hit){if(selectee.selected){selectee.$element.removeClass(\"ui-selected\");selectee.selected=false;}\nif(selectee.unselecting){selectee.$element.removeClass(\"ui-unselecting\");selectee.unselecting=false;}\nif(!selectee.selecting){selectee.$element.addClass(\"ui-selecting\");selectee.selecting=true;that._trigger(\"selecting\",event,{selecting:selectee.element});}}else{if(selectee.selecting){if((event.metaKey||event.ctrlKey)&&selectee.startselected){selectee.$element.removeClass(\"ui-selecting\");selectee.selecting=false;selectee.$element.addClass(\"ui-selected\");selectee.selected=true;}else{selectee.$element.removeClass(\"ui-selecting\");selectee.selecting=false;if(selectee.startselected){selectee.$element.addClass(\"ui-unselecting\");selectee.unselecting=true;}\nthat._trigger(\"unselecting\",event,{unselecting:selectee.element});}}\nif(selectee.selected){if(!event.metaKey&&!event.ctrlKey&&!selectee.startselected){selectee.$element.removeClass(\"ui-selected\");selectee.selected=false;selectee.$element.addClass(\"ui-unselecting\");selectee.unselecting=true;that._trigger(\"unselecting\",event,{unselecting:selectee.element});}}}});return false;},_mouseStop:function(event){var that=this;this.dragged=false;$(\".ui-unselecting\",this.element[0]).each(function(){var selectee=$.data(this,\"selectable-item\");selectee.$element.removeClass(\"ui-unselecting\");selectee.unselecting=false;selectee.startselected=false;that._trigger(\"unselected\",event,{unselected:selectee.element});});$(\".ui-selecting\",this.element[0]).each(function(){var selectee=$.data(this,\"selectable-item\");selectee.$element.removeClass(\"ui-selecting\").addClass(\"ui-selected\");selectee.selecting=false;selectee.selected=true;selectee.startselected=true;that._trigger(\"selected\",event,{selected:selectee.element});});this._trigger(\"stop\",event);this.helper.remove();return false;}});});","jquery/ui-modules/tabs.min.js":"/*!\n * jQuery UI Tabs - v1.10.4\n * http://jqueryui.com\n *\n * Copyright 2014 jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n *\n * http://api.jqueryui.com/tabs/\n */\ndefine(['jquery','jquery-ui-modules/core','jquery-ui-modules/widget'],function($,undefined){var tabId=0,rhash=/#.*$/;function getNextTabId(){return++tabId;}\nfunction isLocal(anchor){anchor=anchor.cloneNode(false);return anchor.hash.length>1&&decodeURIComponent(anchor.href.replace(rhash,\"\"))===decodeURIComponent(location.href.replace(rhash,\"\"));}\n$.widget(\"ui.tabs\",{version:\"1.10.4\",delay:300,options:{active:null,collapsible:false,event:\"click\",heightStyle:\"content\",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_create:function(){var that=this,options=this.options;this.running=false;this.element.addClass(\"ui-tabs ui-widget ui-widget-content ui-corner-all\").toggleClass(\"ui-tabs-collapsible\",options.collapsible).delegate(\".ui-tabs-nav > li\",\"mousedown\"+this.eventNamespace,function(event){if($(this).is(\".ui-state-disabled\")){event.preventDefault();}}).delegate(\".ui-tabs-anchor\",\"focus\"+this.eventNamespace,function(){if($(this).closest(\"li\").is(\".ui-state-disabled\")){this.blur();}}
2);this._processTabs();options.active=this._initialActive();if($.isArray(options.disabled)){options.disabled=$.unique(options.disabled.concat($.map(this.tabs.filter(\".ui-state-disabled\"),function(li){return that.tabs.index(li);}))).sort();}\nif(this.options.active!==false&&this.anchors.length){this.active=this._findActive(options.active);}else{this.active=$();}\nthis._refresh();if(this.active.length){this.load(options.active);}},_initialActive:function(){var active=this.options.active,collapsible=this.options.collapsible,locationHash=location.hash.substring(1);if(active===null){if(locationHash){this.tabs.each(function(i,tab){if($(tab).attr(\"aria-controls\")===locationHash){active=i;return false;}});}\nif(active===null){active=this.tabs.index(this.tabs.filter(\".ui-tabs-active\"));}\nif(active===null||active===-1){active=this.tabs.length?0:false;}}\nif(active!==false){active=this.tabs.index(this.tabs.eq(active));if(active===-1){active=collapsible?false:0;}}\nif(!collapsible&&active===false&&this.anchors.length){active=0;}\nreturn active;},_getCreateEventData:function(){return{tab:this.active,panel:!this.active.length?$():this._getPanelForTab(this.active)};},_tabKeydown:function(event){var focusedTab=$(this.document[0].activeElement).closest(\"li\"),selectedIndex=this.tabs.index(focusedTab),goingForward=true;if(this._handlePageNav(event)){return;}\nswitch(event.keyCode){case $.ui.keyCode.RIGHT:case $.ui.keyCode.DOWN:selectedIndex++;break;case $.ui.keyCode.UP:case $.ui.keyCode.LEFT:goingForward=false;selectedIndex--;break;case $.ui.keyCode.END:selectedIndex=this.anchors.length-1;break;case $.ui.keyCode.HOME:selectedIndex=0;break;case $.ui.keyCode.SPACE:event.preventDefault();clearTimeout(this.activating);this._activate(selectedIndex);return;case $.ui.keyCode.ENTER:event.preventDefault();clearTimeout(this.activating);this._activate(selectedIndex===this.options.active?false:selectedIndex);return;default:return;}\nevent.preventDefault();clearTimeout(this.activating);selectedIndex=this._focusNextTab(selectedIndex,goingForward);if(!event.ctrlKey){focusedTab.attr(\"aria-selected\",\"false\");this.tabs.eq(selectedIndex).attr(\"aria-selected\",\"true\");this.activating=this._delay(function(){this.option(\"active\",selectedIndex);},this.delay);}},_panelKeydown:function(event){if(this._handlePageNav(event)){return;}\nif(event.ctrlKey&&event.keyCode===$.ui.keyCode.UP){event.preventDefault();this.active.focus();}},_handlePageNav:function(event){if(event.altKey&&event.keyCode===$.ui.keyCode.PAGE_UP){this._activate(this._focusNextTab(this.options.active-1,false));return true;}\nif(event.altKey&&event.keyCode===$.ui.keyCode.PAGE_DOWN){this._activate(this._focusNextTab(this.options.active+1,true));return true;}},_findNextTab:function(index,goingForward){var lastTabIndex=this.tabs.length-1;function constrain(){if(index>lastTabIndex){index=0;}\nif(index<0){index=lastTabIndex;}\nreturn index;}\nwhile($.inArray(constrain(),this.options.disabled)!==-1){index=goingForward?index+1:index-1;}\nreturn index;},_focusNextTab:function(index,goingForward){index=this._findNextTab(index,goingForward);this.tabs.eq(index).focus();return index;},_setOption:function(key,value){if(key===\"active\"){this._activate(value);return;}\nif(key===\"disabled\"){this._setupDisabled(value);return;}\nthis._super(key,value);if(key===\"collapsible\"){this.element.toggleClass(\"ui-tabs-collapsible\",value);if(!value&&this.options.active===false){this._activate(0);}}\nif(key===\"event\"){this._setupEvents(value);}\nif(key===\"heightStyle\"){this._setupHeightStyle(value);}},_tabId:function(tab){return tab.attr(\"aria-controls\")||\"ui-tabs-\"+getNextTabId();},_sanitizeSelector:function(hash){return hash?hash.replace(/[!\"$%&'()*+,.\\/:;<=>?@\\[\\]\\^`{|}~]/g,\"\\\\$&\"):\"\";},refresh:function(){var options=this.options,lis=this.tablist.children(\":has(a[href])\");options.disabled=$.map(lis.filter(\".ui-state-disabled\"),function(tab){return lis.index(tab);});this._processTabs();if(options.active===false||!this.anchors.length){options.active=false;this.active=$();}else if(this.active.length&&!$.contains(this.tablist[0],this.active[0])
2){if(this.tabs.length===options.disabled.length){options.active=false;this.active=$();}else{this._activate(this._findNextTab(Math.max(0,options.active-1),false));}}else{options.active=this.tabs.index(this.active);}\nthis._refresh();},_refresh:function(){this._setupDisabled(this.options.disabled);this._setupEvents(this.options.event);this._setupHeightStyle(this.options.heightStyle);this.tabs.not(this.active).attr({\"aria-selected\":\"false\",tabIndex:-1});this.panels.not(this._getPanelForTab(this.active)).hide().attr({\"aria-expanded\":\"false\",\"aria-hidden\":\"true\"});if(!this.active.length){this.tabs.eq(0).attr(\"tabIndex\",0);}else{this.active.addClass(\"ui-tabs-active ui-state-active\").attr({\"aria-selected\":\"true\",tabIndex:0});this._getPanelForTab(this.active).show().attr({\"aria-expanded\":\"true\",\"aria-hidden\":\"false\"});}},_processTabs:function(){var that=this;this.tablist=this._getList().addClass(\"ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all\").attr(\"role\",\"tablist\");this.tabs=this.tablist.find(\"> li:has(a[href])\").addClass(\"ui-state-default ui-corner-top\").attr({role:\"tab\",tabIndex:-1});this.anchors=this.tabs.map(function(){return $(\"a\",this)[0];}).addClass(\"ui-tabs-anchor\").attr({role:\"presentation\",tabIndex:-1});this.panels=$();this.anchors.each(function(i,anchor){var selector,panel,panelId,anchorId=$(anchor).uniqueId().attr(\"id\"),tab=$(anchor).closest(\"li\"),originalAriaControls=tab.attr(\"aria-controls\");if(isLocal(anchor)){selector=anchor.hash;panel=that.element.find(that._sanitizeSelector(selector));}else{panelId=that._tabId(tab);selector=\"#\"+panelId;panel=that.element.find(selector);if(!panel.length){panel=that._createPanel(panelId);panel.insertAfter(that.panels[i-1]||that.tablist);}\npanel.attr(\"aria-live\",\"polite\");}\nif(panel.length){that.panels=that.panels.add(panel);}\nif(originalAriaControls){tab.data(\"ui-tabs-aria-controls\",originalAriaControls);}\ntab.attr({\"aria-controls\":selector.substring(1),\"aria-labelledby\":anchorId});panel.attr(\"aria-labelledby\",anchorId);});this.panels.addClass(\"ui-tabs-panel ui-widget-content ui-corner-bottom\").attr(\"role\",\"tabpanel\");},_getList:function(){return this.tablist||this.element.find(\"ol,ul\").eq(0);},_createPanel:function(id){return $(\"<div>\").attr(\"id\",id).addClass(\"ui-tabs-panel ui-widget-content ui-corner-bottom\").data(\"ui-tabs-destroy\",true);},_setupDisabled:function(disabled){if($.isArray(disabled)){if(!disabled.length){disabled=false;}else if(disabled.length===this.anchors.length){disabled=true;}}\nfor(var i=0,li;(li=this.tabs[i]);i++){if(disabled===true||$.inArray(i,disabled)!==-1){$(li).addClass(\"ui-state-disabled\").attr(\"aria-disabled\",\"true\");}else{$(li).removeClass(\"ui-state-disabled\").removeAttr(\"aria-disabled\");}}\nthis.options.disabled=disabled;},_setupEvents:function(event){var events={click:function(event){event.preventDefault();}};if(event){$.each(event.split(\" \"),function(index,eventName){events[eventName]=\"_eventHandler\";});}\nthis._off(this.anchors.add(this.tabs).add(this.panels));this._on(this.anchors,events);this._on(this.tabs,{keydown:\"_tabKeydown\"});this._on(this.panels,{keydown:\"_panelKeydown\"});this._focusable(this.tabs);this._hoverable(this.tabs);},_setupHeightStyle:function(heightStyle){var maxHeight,parent=this.element.parent();if(heightStyle===\"fill\"){maxHeight=parent.height();maxHeight-=this.element.outerHeight()-this.element.height();this.element.siblings(\":visible\").each(function(){var elem=$(this),position=elem.css(\"position\");if(position===\"absolute\"||position===\"fixed\"){return;}\nmaxHeight-=elem.outerHeight(true);});this.element.children().not(this.panels).each(function(){maxHeight-=$(this).outerHeight(true);});this.panels.each(function(){$(this).height(Math.max(0,maxHeight-\n$(this).innerHeight()+$(this).height()));}).css(\"overflow\",\"auto\");}else if(heightStyle===\"auto\"){maxHeight=0;this.panels.each(function(){maxHeight=Math.max(maxHeight,$(this).height(\"\").height());}).height(maxHeight);}},_eventHandler:function(event){var options=this.options,active=this.active,anchor=$(event.currentTarget),tab=anchor.closest(\"li\"),clickedIsActive=tab[0]===active[0],collapsing=clickedIsActive&&options.collapsible,toShow=collapsing?$():this._getPanelForTab(tab),toHide=!active.length?$():this._getPanelForTab(active),eventData={oldTab:active,oldPanel:toHide,newTab:collapsing?$():tab,newPanel:toShow};event.preventDefault();if(tab.hasClass(\"ui-state-disabled\")||tab.hasClass(\"ui-tabs-loading\")||this.running||(clickedIsActive&&!options.collapsible)||(this._trigger(\"beforeActivate\",event,eventData)===false)){return;}\noptions.active=collapsing?false:this.tabs.index(tab);this.active=clickedIsActive?$():tab;if(this.xhr){this.xhr.abort();}\nif(!toHide.length&&!toShow.length){$.error(\"jQuery UI Tabs: Mismatching fragment identifier.\");}\nif(toShow.length){this.load(this.tabs.index(tab),event);}\nthis._toggle(event,eventData);},_toggle:function(event,eventData){var that=this,toShow=eventData.newPanel,toHide=eventData.oldPanel;this.running=true;function complete(){that.running=false;that._trigger(\"activate\",event,eventData);}\nfunction show(){eventData.newTab.closest(\"li\").addClass(\"ui-tabs-active ui-state-active\");if(toShow.length&&that.options.show){that._show(toShow,that.options.show,complete);}else{toShow.show();complete();}}\nif(toHide.length&&this.options.hide){this._hide(toHide,this.options.hide,function(){eventData.oldTab.closest(\"li\").removeClass(\"ui-tabs-active ui-state-active\");show();});}else{eventData.oldTab.closest(\"li\").removeClass(\"ui-tabs-active ui-state-active\");toHide.hide();show();}\ntoHide.attr({\"aria-expanded\":\"false\",\"aria-hidden\":\"true\"});eventData.oldTab.attr(\"aria-selected\",\"false\");if(toShow.length&&toHide.length){eventData.oldTab.attr(\"tabIndex\",-1);}else if(toShow.length){this.tabs.filter(function(){return $(this).attr(\"tabIndex\")===0;}).attr(\"tabIndex\",-1);}\ntoShow.attr({\"aria-expanded\":\"true\",\"aria-hidden\":\"false\"});eventData.newTab.attr({\"aria-selected\":\"true\",tabIndex:0});},_activate:function(index){var anchor,active=this._findActive(index);if(active[0]===this.active[0]){return;}\nif(!active.length){active=this.active;}\nanchor=active.find(\".ui-tabs-anchor\")[0];this._eventHandler({target:anchor,currentTarget:anchor,preventDefault:$.noop});},_findActive:function(index){return index===false?$():this.tabs.eq(index);}
2,_getIndex:function(index){if(typeof index===\"string\"){index=this.anchors.index(this.anchors.filter(\"[href$='\"+index+\"']\"));}\nreturn index;},_destroy:function(){if(this.xhr){this.xhr.abort();}\nthis.element.removeClass(\"ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible\");this.tablist.removeClass(\"ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all\").removeAttr(\"role\");this.anchors.removeClass(\"ui-tabs-anchor\").removeAttr(\"role\").removeAttr(\"tabIndex\").removeUniqueId();this.tabs.add(this.panels).each(function(){if($.data(this,\"ui-tabs-destroy\")){$(this).remove();}else{$(this).removeClass(\"ui-state-default ui-state-active ui-state-disabled \"+\"ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel\").removeAttr(\"tabIndex\").removeAttr(\"aria-live\").removeAttr(\"aria-busy\").removeAttr(\"aria-selected\").removeAttr(\"aria-labelledby\").removeAttr(\"aria-hidden\").removeAttr(\"aria-expanded\").removeAttr(\"role\");}});this.tabs.each(function(){var li=$(this),prev=li.data(\"ui-tabs-aria-controls\");if(prev){li.attr(\"aria-controls\",prev).removeData(\"ui-tabs-aria-controls\");}else{li.removeAttr(\"aria-controls\");}});this.panels.show();if(this.options.heightStyle!==\"content\"){this.panels.css(\"height\",\"\");}},enable:function(index){var disabled=this.options.disabled;if(disabled===false){return;}\nif(index===undefined){disabled=false;}else{index=this._getIndex(index);if($.isArray(disabled)){disabled=$.map(disabled,function(num){return num!==index?num:null;});}else{disabled=$.map(this.tabs,function(li,num){return num!==index?num:null;});}}\nthis._setupDisabled(disabled);},disable:function(index){var disabled=this.options.disabled;if(disabled===true){return;}\nif(index===undefined){disabled=true;}else{index=this._getIndex(index);if($.inArray(index,disabled)!==-1){return;}\nif($.isArray(disabled)){disabled=$.merge([index],disabled).sort();}else{disabled=[index];}}\nthis._setupDisabled(disabled);},load:function(index,event){index=this._getIndex(index);var that=this,tab=this.tabs.eq(index),anchor=tab.find(\".ui-tabs-anchor\"),panel=this._getPanelForTab(tab),eventData={tab:tab,panel:panel};if(isLocal(anchor[0])){return;}\nthis.xhr=$.ajax(this._ajaxSettings(anchor,event,eventData));if(this.xhr&&this.xhr.statusText!==\"canceled\"){tab.addClass(\"ui-tabs-loading\");panel.attr(\"aria-busy\",\"true\");this.xhr.success(function(response){setTimeout(function(){panel.html(response);that._trigger(\"load\",event,eventData);},1);}).complete(function(jqXHR,status){setTimeout(function(){if(status===\"abort\"){that.panels.stop(false,true);}\ntab.removeClass(\"ui-tabs-loading\");panel.removeAttr(\"aria-busy\");if(jqXHR===that.xhr){delete that.xhr;}},1);});}},_ajaxSettings:function(anchor,event,eventData){var that=this;return{url:anchor.attr(\"href\"),beforeSend:function(jqXHR,settings){return that._trigger(\"beforeLoad\",event,$.extend({jqXHR:jqXHR,ajaxSettings:settings},eventData));}};},_getPanelForTab:function(tab){var id=$(tab).attr(\"aria-controls\");return this.element.find(this._sanitizeSelector(\"#\"+id));}});});","jquery/ui-modules/button.min.js":"/*!\n * jQuery UI Button - v1.10.4\n * http://jqueryui.com\n *\n * Copyright 2014 jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n *\n * http://api.jqueryui.com/button/\n */\ndefine(['jquery','jquery-ui-modules/core','jquery-ui-modules/widget'],function($,undefined){var lastActive,baseClasses=\"ui-button ui-widget ui-state-default ui-corner-all\",typeClasses=\"ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only\",formResetHandler=function(){var form=$(this);setTimeout(function(){form.find(\":ui-button\").button(\"refresh\");},1);},radioGroup=function(radio){var name=radio.name,form=radio.form,radios=$([]);if(name){name=name.replace(/'/g,\"\\\\'\");if(form){radios=$(form).find(\"[name='\"+name+\"']\");}else{radios=$(\"[name='\"+name+\"']\",radio.ownerDocument).filter(function(){return!this.form;});}}\nreturn radios;};$.widget(\"ui.button\",{version:\"1.10.4\",defaultElement:\"<button>\",options:{disabled:null,text:true,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest(\"form\").unbind(\"reset\"+this.eventNamespace).bind(\"reset\"+this.eventNamespace,formResetHandler);if(typeof this.options.disabled!==\"boolean\"){this.options.disabled=!!this.element.prop(\"disabled\");}else{this.element.prop(\"disabled\",this.options.disabled);}\nthis._determineButtonType();this.hasTitle=!!this.buttonElement.attr(\"title\");var that=this,options=this.options,toggleButton=this.type===\"checkbox\"||this.type===\"radio\",activeClass=!toggleButton?\"ui-state-active\":\"\";if(options.label===null){options.label=(this.type===\"input\"?this.buttonElement.val():this.buttonElement.html());}\nthis._hoverable(this.buttonElement);this.buttonElement.addClass(baseClasses).attr(\"role\",\"button\").bind(\"mouseenter\"+this.eventNamespace,function(){if(options.disabled){return;}\nif(this===lastActive){$(this).addClass(\"ui-state-active\");}}).bind(\"mouseleave\"+this.eventNamespace,function(){if(options.disabled){return;}\n$(this).removeClass(activeClass);}).bind(\"click\"+this.eventNamespace,function(event){if(options.disabled){event.preventDefault();event.stopImmediatePropagation();}});
2this._on({focus:function(){this.buttonElement.addClass(\"ui-state-focus\");},blur:function(){this.buttonElement.removeClass(\"ui-state-focus\");}});if(toggleButton){this.element.bind(\"change\"+this.eventNamespace,function(){that.refresh();});}\nif(this.type===\"checkbox\"){this.buttonElement.bind(\"click\"+this.eventNamespace,function(){if(options.disabled){return false;}});}else if(this.type===\"radio\"){this.buttonElement.bind(\"click\"+this.eventNamespace,function(){if(options.disabled){return false;}\n$(this).addClass(\"ui-state-active\");that.buttonElement.attr(\"aria-pressed\",\"true\");var radio=that.element[0];radioGroup(radio).not(radio).map(function(){return $(this).button(\"widget\")[0];}).removeClass(\"ui-state-active\").attr(\"aria-pressed\",\"false\");});}else{this.buttonElement.bind(\"mousedown\"+this.eventNamespace,function(){if(options.disabled){return false;}\n$(this).addClass(\"ui-state-active\");lastActive=this;that.document.one(\"mouseup\",function(){lastActive=null;});}).bind(\"mouseup\"+this.eventNamespace,function(){if(options.disabled){return false;}\n$(this).removeClass(\"ui-state-active\");}).bind(\"keydown\"+this.eventNamespace,function(event){if(options.disabled){return false;}\nif(event.keyCode===$.ui.keyCode.SPACE||event.keyCode===$.ui.keyCode.ENTER){$(this).addClass(\"ui-state-active\");}}).bind(\"keyup\"+this.eventNamespace+\" blur\"+this.eventNamespace,function(){$(this).removeClass(\"ui-state-active\");});if(this.buttonElement.is(\"a\")){this.buttonElement.keyup(function(event){if(event.keyCode===$.ui.keyCode.SPACE){$(this).click();}});}}\nthis._setOption(\"disabled\",options.disabled);this._resetButton();},_determineButtonType:function(){var ancestor,labelSelector,checked;if(this.element.is(\"[type=checkbox]\")){this.type=\"checkbox\";}else if(this.element.is(\"[type=radio]\")){this.type=\"radio\";}else if(this.element.is(\"input\")){this.type=\"input\";}else{this.type=\"button\";}\nif(this.type===\"checkbox\"||this.type===\"radio\"){ancestor=this.element.parents().last();labelSelector=\"label[for='\"+this.element.attr(\"id\")+\"']\";this.buttonElement=ancestor.find(labelSelector);if(!this.buttonElement.length){ancestor=ancestor.length?ancestor.siblings():this.element.siblings();this.buttonElement=ancestor.filter(labelSelector);if(!this.buttonElement.length){this.buttonElement=ancestor.find(labelSelector);}}\nthis.element.addClass(\"ui-helper-hidden-accessible\");checked=this.element.is(\":checked\");if(checked){this.buttonElement.addClass(\"ui-state-active\");}\nthis.buttonElement.prop(\"aria-pressed\",checked);}else{this.buttonElement=this.element;}},widget:function(){return this.buttonElement;},_destroy:function(){this.element.removeClass(\"ui-helper-hidden-accessible\");this.buttonElement.removeClass(baseClasses+\" ui-state-active \"+typeClasses).removeAttr(\"role\").removeAttr(\"aria-pressed\").html(this.buttonElement.find(\".ui-button-text\").html());if(!this.hasTitle){this.buttonElement.removeAttr(\"title\");}},_setOption:function(key,value){this._super(key,value);if(key===\"disabled\"){this.element.prop(\"disabled\",!!value);if(value){this.buttonElement.removeClass(\"ui-state-focus\");}\nreturn;}\nthis._resetButton();},refresh:function(){var isDisabled=this.element.is(\"input, button\")?this.element.is(\":disabled\"):this.element.hasClass(\"ui-button-disabled\");if(isDisabled!==this.options.disabled){this._setOption(\"disabled\",isDisabled);}\nif(this.type===\"radio\"){radioGroup(this.element[0]).each(function(){if($(this).is(\":checked\")){$(this).button(\"widget\").addClass(\"ui-state-active\").attr(\"aria-pressed\",\"true\");}else{$(this).button(\"widget\").removeClass(\"ui-state-active\").attr(\"aria-pressed\",\"false\");}});}else if(this.type===\"checkbox\"){if(this.element.is(\":checked\")){this.buttonElement.addClass(\"ui-state-active\").attr(\"aria-pressed\",\"true\");}else{this.buttonElement.removeClass(\"ui-state-active\").attr(\"aria-pressed\",\"false\");}}},_resetButton:function(){if(this.type===\"input\"){if(this.options.label){this.element.val(this.options.label);}\nreturn;}\nvar buttonElement=this.buttonElement.removeClass(typeClasses),buttonText=$(\"<span></span>\",this.document[0]).addClass(\"ui-button-text\").html(this.options.label).appendTo(buttonElement.empty()).text(),icons=this.options.icons,multipleIcons=icons.primary&&icons.secondary,buttonClasse
2s=[];if(icons.primary||icons.secondary){if(this.options.text){buttonClasses.push(\"ui-button-text-icon\"+(multipleIcons?\"s\":(icons.primary?\"-primary\":\"-secondary\")));}\nif(icons.primary){buttonElement.prepend(\"<span class='ui-button-icon-primary ui-icon \"+icons.primary+\"'></span>\");}\nif(icons.secondary){buttonElement.append(\"<span class='ui-button-icon-secondary ui-icon \"+icons.secondary+\"'></span>\");}\nif(!this.options.text){buttonClasses.push(multipleIcons?\"ui-button-icons-only\":\"ui-button-icon-only\");if(!this.hasTitle){buttonElement.attr(\"title\",$.trim(buttonText));}}}else{buttonClasses.push(\"ui-button-text-only\");}\nbuttonElement.addClass(buttonClasses.join(\" \"));}});$.widget(\"ui.buttonset\",{version:\"1.10.4\",options:{items:\"button, input[type=button], input[type=submit], input[type=reset], input[type=checkbox], input[type=radio], a, :data(ui-button)\"},_create:function(){this.element.addClass(\"ui-buttonset\");},_init:function(){this.refresh();},_setOption:function(key,value){if(key===\"disabled\"){this.buttons.button(\"option\",key,value);}\nthis._super(key,value);},refresh:function(){var rtl=this.element.css(\"direction\")===\"rtl\";this.buttons=this.element.find(this.options.items).filter(\":ui-button\").button(\"refresh\").end().not(\":ui-button\").button().end().map(function(){return $(this).button(\"widget\")[0];}).removeClass(\"ui-corner-all ui-corner-left ui-corner-right\").filter(\":first\").addClass(rtl?\"ui-corner-right\":\"ui-corner-left\").end().filter(\":last\").addClass(rtl?\"ui-corner-left\":\"ui-corner-right\").end().end();},_destroy:function(){this.element.removeClass(\"ui-buttonset\");this.buttons.map(function(){return $(this).button(\"widget\")[0];}).removeClass(\"ui-corner-left ui-corner-right\").end().button(\"destroy\");}});});","jquery/spectrum/tinycolor.min.js":"(function(Math){var trimLeft=/^\\s+/,trimRight=/\\s+$/,tinyCounter=0,mathRound=Math.round,mathMin=Math.min,mathMax=Math.max,mathRandom=Math.random;function tinycolor(color,opts){color=(color)?color:'';opts=opts||{};if(color instanceof tinycolor){return color;}\nif(!(this instanceof tinycolor)){return new tinycolor(color,opts);}\nvar rgb=inputToRGB(color);this._originalInput=color,this._r=rgb.r,this._g=rgb.g,this._b=rgb.b,this._a=rgb.a,this._roundA=mathRound(100*this._a)/ 100,this._format=opts.format||rgb.format;this._gradientType=opts.gradientType;if(this._r<1){this._r=mathRound(this._r);}\nif(this._g<1){this._g=mathRound(this._g);}\nif(this._b<1){this._b=mathRound(this._b);}\nthis._ok=rgb.ok;this._tc_id=tinyCounter++;}\ntinycolor.prototype={isDark:function(){return this.getBrightness()<128;},isLight:function(){return!this.isDark();},isValid:function(){return this._ok;},getOriginalInput:function(){return this._originalInput;},getFormat:function(){return this._format;},getAlpha:function(){return this._a;},getBrightness:function(){var rgb=this.toRgb();return(rgb.r*299+rgb.g*587+rgb.b*114)/ 1000;},getLuminance:function(){var rgb=this.toRgb();var RsRGB,GsRGB,BsRGB,R,G,B;RsRGB=rgb.r/255;GsRGB=rgb.g/255;BsRGB=rgb.b/255;if(RsRGB<=0.03928){R=RsRGB / 12.92;}else{R=Math.pow(((RsRGB+0.055)/ 1.055),2.4);}\nif(GsRGB<=0.03928){G=GsRGB / 12.92;}else{G=Math.pow(((GsRGB+0.055)/ 1.055),2.4);}\nif(BsRGB<=0.03928){B=BsRGB / 12.92;}else{B=Math.pow(((BsRGB+0.055)/ 1.055),2.4);}\nreturn(0.2126*R)+(0.7152*G)+(0.0722*B);},setAlpha:function(value){this._a=boundAlpha(value);this._roundA=mathRound(100*this._a)/ 100;return this;},toHsv:function(){var hsv=rgbToHsv(this._r,this._g,this._b);return{h:hsv.h*360,s:hsv.s,v:hsv.v,a:this._a};},toHsvString:function(){var hsv=rgbToHsv(this._r,this._g,this._b);var h=mathRound(hsv.h*360),s=mathRound(hsv.s*100),v=mathRound(hsv.v*100);return(this._a==1)?\"hsv(\"+h+\", \"+s+\"%, \"+v+\"%)\":\"hsva(\"+h+\", \"+s+\"%, \"+v+\"%, \"+this._roundA+\")\";},toHsl:function(){var hsl=rgbToHsl(this._r,this._g,this._b);return{h:hsl.h*360,s:hsl.s,l:hsl.l,a:this._a};},toHslString:function(){var hsl=rgbToHsl(this._r,this._g,this._b);var h=mathRound(hsl.h*360),s=mathRound(hsl.s*100),l=mathRound(hsl.l*100);return(this._a==1)?\"hsl(\"+h+\", \"+s+\"%, \"+l+\"%)\":\"hsla(\"+h+\", \"+s+\"%, \"+l+\"%, \"+this._roundA+\")\";},toHex:function(allow3Char){return rgbToHex(this._r,this._g,this._b,allow3Char);},toHexString:function(allow3Char){return'#'+this.toHex(allow3Char);},toHex8:function(allow4Char){return rgbaToHex(this._r,this._g,this._b,this._a,allow4Char);},toHex8String:function(allow4Char){return'#'+this.toHex8(allow4Char);},toRgb:function(){return{r:mathRound(this._r),g:mathRound(this._g),b:mathRound(this._b),a:this._a};},toRgbString:function(){return(this._a==1)?\"rgb(\"+mathRound(this._r)+\", \"+mathRound(this._g)+\", \"+mathRound(this._b)+\")\":\"rgba(\"+mathRound(this._r)+\", \"+mathRound(this._g)+\", \"+mathRound(this._b)+\", \"+this._roundA+\")\";},toPercentageRgb:function(){return{r:mathRound(bound01(this._r,255)*100)+\"%\",g:mathRound(bound01(this._g,255)*100)+\"%\",b:mathRound(bound01(this._b,255)*100)+\"%\",a:this._a};},toPercentageRgbString:function(){return(this._a==1)?\"rgb(\"+mathRound(bound01(this._r,255)*100)+\"%, \"+mathRound(bound01(this._g,255)*100)+\"%, \"+mathRound(bound01(this._b,255)*100)+\"%)\":\"rgba(\"+mathRound(bound01(this._r,255)*100)+\"%, \"+mathRound(bound01(this._g,255)*100)+\"%, \"+mathRound(bound01(this._b,255)*100)+\"%, \"+this._roundA+\")\";},toName:function(){if(this._a===0){return\"transparent\";}\nif(this._a<1){return false;}\nreturn hexNames[rgbToHex(this._r,this._g,this._b,true)]||false;},toFilter:function(secondColor){var hex8String='#'+rgbaToArgbHex(this._r,this._g,this._b,this._a);var secondHex8String=hex8String;var gradientType=this._gradientType?\"GradientType = 1, \":\"\";if(secondColor){var s=tinycolor(secondColor);secondHex8String='#'+rgbaToArgbHex(s._r,s._g,s._b,s._a);}\nreturn\"progid:DXImageTransform.Microsoft.gradient(\"+gradientType+\"startColorstr=\"+hex8String+\",endColorstr=\"+secondHex8String+\")\";},toString:function(format){var formatSet=!!format;format=format||this._format;var formattedString=false;var hasAlpha=this._a<1&&this._a>=0;var needsAlphaFormat=!formatSet&&hasAlpha&&(format===\"hex\"||format===\"hex6\"||format===\"hex3\"||format===\"hex4\"||format===\"hex8\"||format===\"name\");if(needsAlphaFormat){if(format===\"name\"&&this._a===0){return this.toName();}\nreturn this.toRgbString();}\nif(format===\"rgb\"){formattedString=this.toRgbString();}\nif(format===\"prgb\"){formattedString=this.toPercentageRgbString();}\nif(format===\"hex\"||format===\"hex6\"){formattedString=this.toHexString();}\nif(format===\"hex3\"){formattedString=this.toHexString(true);}\nif(format===\"hex4\"){formattedString=this.toHex8String(true);}\nif(format===\"hex8\"){formattedString=this.toHex8String();}\nif(format===\"name\"){formattedString=this.toName();}\nif(format===\"hsl\"){formattedString=this.toHslString();}\nif(format===\"hsv\"){formattedString=this.toHsvString();}\nreturn formattedString||this.toHexString();},clone:function(){return tinycolor(this.toString());},_applyModification:function(fn,args){var color=fn.apply(null,[this].concat([].slice.call(args)));this._r=color._r;this._g=color._g;this._b=color._b;this.setAlpha(color._a);return this;},lighten:function(){return this._applyModification(lighten,arguments);},brighten:function(){return this._applyModification(brighten,arguments);},darken:function(){return this._applyModification(darken,arguments);},desaturate:function(){return this._applyModification(desaturate,arguments);},saturate:function(){return this._applyModification(saturate,arguments);},greyscale:function(){return this._applyModification(greyscale,arguments);},spin:function(){return this._applyModification(spin,arguments);},_applyCombination:function(fn,args){return fn.apply(null,[this].concat([].slice.call(args)));},analogous:function(){return this._applyCombination(analogous,arguments);},complement:function(){return this._applyCombination(complement,arguments);},monochromatic:function(){return this._applyCombination(monochromatic,arguments);},splitcomplement:function(){return this._applyCombination(splitcomplement,arguments);},triad:function(){return this._applyCombination(triad,arguments);},tetrad:function(){return this._applyCombination(tetrad,arguments);}};
2tinycolor.fromRatio=function(color,opts){if(typeof color==\"object\"){var newColor={};for(var i in color){if(color.hasOwnProperty(i)){if(i===\"a\"){newColor[i]=color[i];}\nelse{newColor[i]=convertToPercentage(color[i]);}}}\ncolor=newColor;}\nreturn tinycolor(color,opts);};function inputToRGB(color){var rgb={r:0,g:0,b:0};var a=1;var s=null;var v=null;var l=null;var ok=false;var format=false;if(typeof color==\"string\"){color=stringInputToObject(color);}\nif(typeof color==\"object\"){if(isValidCSSUnit(color.r)&&isValidCSSUnit(color.g)&&isValidCSSUnit(color.b)){rgb=rgbToRgb(color.r,color.g,color.b);ok=true;format=String(color.r).substr(-1)===\"%\"?\"prgb\":\"rgb\";}\nelse if(isValidCSSUnit(color.h)&&isValidCSSUnit(color.s)&&isValidCSSUnit(color.v)){s=convertToPercentage(color.s);v=convertToPercentage(color.v);rgb=hsvToRgb(color.h,s,v);ok=true;format=\"hsv\";}\nelse if(isValidCSSUnit(color.h)&&isValidCSSUnit(color.s)&&isValidCSSUnit(color.l)){s=convertToPercentage(color.s);l=convertToPercentage(color.l);rgb=hslToRgb(color.h,s,l);ok=true;format=\"hsl\";}\nif(color.hasOwnProperty(\"a\")){a=color.a;}}\na=boundAlpha(a);return{ok:ok,format:color.format||format,r:mathMin(255,mathMax(rgb.r,0)),g:mathMin(255,mathMax(rgb.g,0)),b:mathMin(255,mathMax(rgb.b,0)),a:a};}\nfunction rgbToRgb(r,g,b){return{r:bound01(r,255)*255,g:bound01(g,255)*255,b:bound01(b,255)*255};}\nfunction rgbToHsl(r,g,b){r=bound01(r,255);g=bound01(g,255);b=bound01(b,255);var max=mathMax(r,g,b),min=mathMin(r,g,b);var h,s,l=(max+min)/ 2;if(max==min){h=s=0;}\nelse{var d=max-min;s=l>0.5?d /(2-max-min):d /(max+min);switch(max){case r:h=(g-b)/ d+(g<b?6:0);break;case g:h=(b-r)/ d+2;break;case b:h=(r-g)/ d+4;break;}\nh /=6;}\nreturn{h:h,s:s,l:l};}\nfunction hslToRgb(h,s,l){var r,g,b;h=bound01(h,360);s=bound01(s,100);l=bound01(l,100);function hue2rgb(p,q,t){if(t<0)t+=1;if(t>1)t-=1;if(t<1/6)return p+(q-p)*6*t;if(t<1/2)return q;if(t<2/3)return p+(q-p)*(2/3-t)*6;return p;}\nif(s===0){r=g=b=l;}\nelse{var q=l<0.5?l*(1+s):l+s-l*s;var p=2*l-q;r=hue2rgb(p,q,h+1/3);g=hue2rgb(p,q,h);b=hue2rgb(p,q,h-1/3);}\nreturn{r:r*255,g:g*255,b:b*255};}\nfunction rgbToHsv(r,g,b){r=bound01(r,255);g=bound01(g,255);b=bound01(b,255);var max=mathMax(r,g,b),min=mathMin(r,g,b);var h,s,v=max;var d=max-min;s=max===0?0:d / max;if(max==min){h=0;}\nelse{switch(max){case r:h=(g-b)/ d+(g<b?6:0);break;case g:h=(b-r)/ d+2;break;case b:h=(r-g)/ d+4;break;}\nh /=6;}\nreturn{h:h,s:s,v:v};}\nfunction hsvToRgb(h,s,v){h=bound01(h,360)*6;s=bound01(s,100);v=bound01(v,100);var i=Math.floor(h),f=h-i,p=v*(1-s),q=v*(1-f*s),t=v*(1-(1-f)*s),mod=i%6,r=[v,q,p,p,t,v][mod],g=[t,v,v,q,p,p][mod],b=[p,p,t,v,v,q][mod];return{r:r*255,g:g*255,b:b*255};}\nfunction rgbToHex(r,g,b,allow3Char){var hex=[pad2(mathRound(r).toString(16)),pad2(mathRound(g).toString(16)),pad2(mathRound(b).toString(16))];if(allow3Char&&hex[0].charAt(0)==hex[0].charAt(1)&&hex[1].charAt(0)==hex[1].charAt(1)&&hex[2].charAt(0)==hex[2].charAt(1)){return hex[0].charAt(0)+hex[1].charAt(0)+hex[2].charAt(0);}\nreturn hex.join(\"\");}\nfunction rgbaToHex(r,g,b,a,allow4Char){var hex=[pad2(mathRound(r).toString(16)),pad2(mathRound(g).toString(16)),pad2(mathRound(b).toString(16)),pad2(convertDecimalToHex(a))];if(allow4Char&&hex[0].charAt(0)==hex[0].charAt(1)&&hex[1].charAt(0)==hex[1].charAt(1)&&hex[2].charAt(0)==hex[2].charAt(1)&&hex[3].charAt(0)==hex[3].charAt(1)){return hex[0].charAt(0)+hex[1].charAt(0)+hex[2].charAt(0)+hex[3].charAt(0);}\nreturn hex.join(\"\");}\nfunction rgbaToArgbHex(r,g,b,a){var hex=[pad2(convertDecimalToHex(a)),pad2(mathRound(r).toString(16)),pad2(mathRound(g).toString(16)),pad2(mathRound(b).toString(16))];return hex.join(\"\");}\ntinycolor.equals=function(color1,color2){if(!color1||!color2){return false;}\nreturn tinycolor(color1).toRgbString()==tinycolor(color2).toRgbString();};tinycolor.random=function(){return tinycolor.fromRatio({r:mathRandom(),g:mathRandom(),b:mathRandom()});};function desaturate(color,amount){amount=(amount===0)?0:(amount||10);var hsl=tinycolor(color).toHsl();hsl.s-=amount / 100;hsl.s=clamp01(hsl.s);return tinycolor(hsl);}\nfunction saturate(color,amount){amount=(amount===0)?0:(amount||10);var hsl=tinycolor(color).toHsl();hsl.s+=amount / 100;hsl.s=clamp01(hsl.s);return tinycolor(hsl);}\nfunction greyscale(color){return tinycolor(color).desaturate(100);}\nfunction lighten(color,amount){amount=(amount===0)?0:(amount||10);var hsl=tinycolor(color).toHsl();hsl.l+=amount / 100;hsl.l=clamp01(hsl.l);return tinycolor(hsl);}\nfunction brighten(color,amount){amount=(amount===0)?0:(amount||10);var rgb=tinycolor(color).toRgb();rgb.r=mathMax(0,mathMin(255,rgb.r-mathRound(255*-(amount / 100))));rgb.g=mathMax(0,mathMin(255,rgb.g-mathRound(255*-(amount / 100))));rgb.b=mathMax(0,mathMin(255,rgb.b-mathRound(255*-(amount / 100))));return tinycolor(rgb);}\nfunction darken(color,amount){amount=(amount===0)?0:(amount||10);var hsl=tinycolor(color).toHsl();hsl.l-=amount / 100;hsl.l=clamp01(hsl.l);return tinycolor(hsl);}\nfunction spin(color,amount){var hsl=tinycolor(color).toHsl();var hue=(hsl.h+amount)%360;hsl.h=hue<0?360+hue:hue;return tinycolor(hsl);}\nfunction complement(color){var hsl=tinycolor(color).toHsl();hsl.h=(hsl.h+180)%360;return tinycolor(hsl);}\nfunction triad(color){var hsl=tinycolor(color).toHsl();var h=hsl.h;return[tinycolor(color),tinycolor({h:(h+120)%360,s:hsl.s,l:hsl.l}),tinycolor({h:(h+240)%360,s:hsl.s,l:hsl.l})];}\nfunction tetrad(color){var hsl=tinycolor(color).toHsl();var h=hsl.h;return[tinycolor(color),tinycolor({h:(h+90)%360,s:hsl.s,l:hsl.l}),tinycolor({h:(h+180)%360,s:hsl.s,l:hsl.l}),tinycolor({h:(h+270)%360,s:hsl.s,l:hsl.l})];}\nfunction splitcomplement(color){var hsl=tinycolor(color).toHsl();var h=hsl.h;return[tinycolor(color),tinycolor({h:(h+72)%360,s:hsl.s,l:hsl.l}),tinycolor({h:(h+216)%360,s:hsl.s,l:hsl.l})];}\nfunction analogous(color,results,slices){results=results||6;slices=slices||30;var hsl=tinycolor(color).toHsl();var part=360 / slices;var ret=[tinycolor(color)];for(hsl.h=((hsl.h-(part*results>>1))+720)%360;--results;){hsl.h=(hsl.h+part)%360;ret.push(tinycolor(hsl));}\nreturn ret;}\nfunction monochromatic(color,results){results=results||6;var hsv=tinycolor(color).toHsv();var h=hsv.h,s=hsv.s,v=hsv.v;var ret=[];var modification=1 / results;while(results--){ret.push(tinycolor({h:h,s:s,v:v}));v=(v+modification)%1;}\nreturn ret;}\ntinycolor.mix=function(color1,color2,amount){amount=(amount===0)?0:(amount||50);var rgb1=tinycolor(color1).toRgb();var rgb2=tinycolor(color2).toRgb();var p=amount / 100;var rgba={r:((rgb2.r-rgb1.r)*p)+rgb1.r,g:((rgb2.g-rgb1.g)*p)+rgb1.g,b:((rgb2.b-rgb1.b)*p)+rgb1.b,a:((rgb2.a-rgb1.a)*p)+rgb1.a};return tinycolor(rgba);};tinycolor.readability=function(color1,color2){var c1=tinycolor(color1);var c2=tinycolor(color2);return(Math.max(c1.getLuminance(),c2.getLuminance())+0.05)/(Math.min(c1.getLuminance(),c2.getLuminance())+0.05);};tinycolor.isReadable=function(color1,color2,wcag2){var readability=tinycolor.readability(color1,color2);var wcag2Parms,out;out=false;wcag2Parms=validateWCAG2Parms(wcag2);switch(wcag2Parms.level+wcag2Parms.size){case\"AAsmall\":case\"AAAlarge\":out=readability>=4.5;break;case\"AAlarge\":out=readability>=3;break;case\"AAAsmall\":out=readability>=7;break;}\nreturn out;};tinycolor.mostReadable=function(baseColor,colorList,args){var bestColor=null;var bestScore=0;var readability;var includeFallbackColors,level,size;args=args||{};includeFallbackColors=args.includeFallbackColors;level=args.level;size=args.size;
2for(var i=0;i<colorList.length;i++){readability=tinycolor.readability(baseColor,colorList[i]);if(readability>bestScore){bestScore=readability;bestColor=tinycolor(colorList[i]);}}\nif(tinycolor.isReadable(baseColor,bestColor,{\"level\":level,\"size\":size})||!includeFallbackColors){return bestColor;}\nelse{args.includeFallbackColors=false;return tinycolor.mostReadable(baseColor,[\"#fff\",\"#000\"],args);}};var names=tinycolor.names={aliceblue:\"f0f8ff\",antiquewhite:\"faebd7\",aqua:\"0ff\",aquamarine:\"7fffd4\",azure:\"f0ffff\",beige:\"f5f5dc\",bisque:\"ffe4c4\",black:\"000\",blanchedalmond:\"ffebcd\",blue:\"00f\",blueviolet:\"8a2be2\",brown:\"a52a2a\",burlywood:\"deb887\",burntsienna:\"ea7e5d\",cadetblue:\"5f9ea0\",chartreuse:\"7fff00\",chocolate:\"d2691e\",coral:\"ff7f50\",cornflowerblue:\"6495ed\",cornsilk:\"fff8dc\",crimson:\"dc143c\",cyan:\"0ff\",darkblue:\"00008b\",darkcyan:\"008b8b\",darkgoldenrod:\"b8860b\",darkgray:\"a9a9a9\",darkgreen:\"006400\",darkgrey:\"a9a9a9\",darkkhaki:\"bdb76b\",darkmagenta:\"8b008b\",darkolivegreen:\"556b2f\",darkorange:\"ff8c00\",darkorchid:\"9932cc\",darkred:\"8b0000\",darksalmon:\"e9967a\",darkseagreen:\"8fbc8f\",darkslateblue:\"483d8b\",darkslategray:\"2f4f4f\",darkslategrey:\"2f4f4f\",darkturquoise:\"00ced1\",darkviolet:\"9400d3\",deeppink:\"ff1493\",deepskyblue:\"00bfff\",dimgray:\"696969\",dimgrey:\"696969\",dodgerblue:\"1e90ff\",firebrick:\"b22222\",floralwhite:\"fffaf0\",forestgreen:\"228b22\",fuchsia:\"f0f\",gainsboro:\"dcdcdc\",ghostwhite:\"f8f8ff\",gold:\"ffd700\",goldenrod:\"daa520\",gray:\"808080\",green:\"008000\",greenyellow:\"adff2f\",grey:\"808080\",honeydew:\"f0fff0\",hotpink:\"ff69b4\",indianred:\"cd5c5c\",indigo:\"4b0082\",ivory:\"fffff0\",khaki:\"f0e68c\",lavender:\"e6e6fa\",lavenderblush:\"fff0f5\",lawngreen:\"7cfc00\",lemonchiffon:\"fffacd\",lightblue:\"add8e6\",lightcoral:\"f08080\",lightcyan:\"e0ffff\",lightgoldenrodyellow:\"fafad2\",lightgray:\"d3d3d3\",lightgreen:\"90ee90\",lightgrey:\"d3d3d3\",lightpink:\"ffb6c1\",lightsalmon:\"ffa07a\",lightseagreen:\"20b2aa\",lightskyblue:\"87cefa\",lightslategray:\"789\",lightslategrey:\"789\",lightsteelblue:\"b0c4de\",lightyellow:\"ffffe0\",lime:\"0f0\",limegreen:\"32cd32\",linen:\"faf0e6\",magenta:\"f0f\",maroon:\"800000\",mediumaquamarine:\"66cdaa\",mediumblue:\"0000cd\",mediumorchid:\"ba55d3\",mediumpurple:\"9370db\",mediumseagreen:\"3cb371\",mediumslateblue:\"7b68ee\",mediumspringgreen:\"00fa9a\",mediumturquoise:\"48d1cc\",mediumvioletred:\"c71585\",midnightblue:\"191970\",mintcream:\"f5fffa\",mistyrose:\"ffe4e1\",moccasin:\"ffe4b5\",navajowhite:\"ffdead\",navy:\"000080\",oldlace:\"fdf5e6\",olive:\"808000\",olivedrab:\"6b8e23\",orange:\"ffa500\",orangered:\"ff4500\",orchid:\"da70d6\",palegoldenrod:\"eee8aa\",palegreen:\"98fb98\",paleturquoise:\"afeeee\",palevioletred:\"db7093\",papayawhip:\"ffefd5\",peachpuff:\"ffdab9\",peru:\"cd853f\",pink:\"ffc0cb\",plum:\"dda0dd\",powderblue:\"b0e0e6\",purple:\"800080\",rebeccapurple:\"663399\",red:\"f00\",rosybrown:\"bc8f8f\",royalblue:\"4169e1\",saddlebrown:\"8b4513\",salmon:\"fa8072\",sandybrown:\"f4a460\",seagreen:\"2e8b57\",seashell:\"fff5ee\",sienna:\"a0522d\",silver:\"c0c0c0\",skyblue:\"87ceeb\",slateblue:\"6a5acd\",slategray:\"708090\",slategrey:\"708090\",snow:\"fffafa\",springgreen:\"00ff7f\",steelblue:\"4682b4\",tan:\"d2b48c\",teal:\"008080\",thistle:\"d8bfd8\",tomato:\"ff6347\",turquoise:\"40e0d0\",violet:\"ee82ee\",wheat:\"f5deb3\",white:\"fff\",whitesmoke:\"f5f5f5\",yellow:\"ff0\",yellowgreen:\"9acd32\"};var hexNames=tinycolor.hexNames=flip(names);function flip(o){var flipped={};for(var i in o){if(o.hasOwnProperty(i)){flipped[o[i]]=i;}}\nreturn flipped;}\nfunction boundAlpha(a){a=parseFloat(a);if(isNaN(a)||a<0||a>1){a=1;}\nreturn a;}\nfunction bound01(n,max){if(isOnePointZero(n)){n=\"100%\";}\nvar processPercent=isPercentage(n);n=mathMin(max,mathMax(0,parseFloat(n)));if(processPercent){n=parseInt(n*max,10)/ 100;}\nif((Math.abs(n-max)<0.000001)){return 1;}\nreturn(n%max)/ parseFloat(max);}\nfunction clamp01(val){return mathMin(1,mathMax(0,val));}\nfunction parseIntFromHex(val){return parseInt(val,16);}\nfunction isOnePointZero(n){return typeof n==\"string\"&&n.indexOf('.')!=-1&&parseFloat(n)===1;}\nfunction isPercentage(n){return typeof n===\"string\"&&n.indexOf('%')!=-1;}\nfunction pad2(c){return c.length==1?'0'+c:''+c;}\nfunction convertToPercentage(n){if(n<=1){n=(n*100)+\"%\";}\nreturn n;}\nfunction convertDecimalToHex(d){return Math.round(parseFloat(d)*255).toString(16);}\nfunction convertHexToDecimal(h){return(parseIntFromHex(h)/ 255);}\nvar matchers=(function(){var CSS_INTEGER=\"[-\\\\+]?\\\\d+%?\";var CSS_NUMBER=\"[-\\\\+]?\\\\d*\\\\.\\\\d+%?\";var CSS_UNIT=\"(?:\"+CSS_NUMBER+\")|(?:\"+CSS_INTEGER+\")\";var PERMISSIVE_MATCH3=\"[\\\\s|\\\\(]+(\"+CSS_UNIT+\")[,|\\\\s]+(\"+CSS_UNIT+\")[,|\\\\s]+(\"+CSS_UNIT+\")\\\\s*\\\\)?\";var PERMISSIVE_MATCH4=\"[\\\\s|\\\\(]+(\"+CSS_UNIT+\")[,|\\\\s]+(\"+CSS_UNIT+\")[,|\\\\s]+(\"+CSS_UNIT+\")[,|\\\\s]+(\"+CSS_UNIT+\")\\\\s*\\\\)?\";return{CSS_UNIT:new RegExp(CSS_UNIT),rgb:new RegExp(\"rgb\"+PERMISSIVE_MATCH3),rgba:new RegExp(\"rgba\"+PERMISSIVE_MATCH4),hsl:new RegExp(\"hsl\"+PERMISSIVE_MATCH3),hsla:new RegExp(\"hsla\"+PERMISSIVE_MATCH4),hsv:new RegExp(\"hsv\"+PERMISSIVE_MATCH3),hsva:new RegExp(\"hsva\"+PERMISSIVE_MATCH4),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}
2;})();function isValidCSSUnit(color){return!!matchers.CSS_UNIT.exec(color);}\nfunction stringInputToObject(color){color=color.replace(trimLeft,'').replace(trimRight,'').toLowerCase();var named=false;if(names[color]){color=names[color];named=true;}\nelse if(color=='transparent'){return{r:0,g:0,b:0,a:0,format:\"name\"};}\nvar match;if((match=matchers.rgb.exec(color))){return{r:match[1],g:match[2],b:match[3]};}\nif((match=matchers.rgba.exec(color))){return{r:match[1],g:match[2],b:match[3],a:match[4]};}\nif((match=matchers.hsl.exec(color))){return{h:match[1],s:match[2],l:match[3]};}\nif((match=matchers.hsla.exec(color))){return{h:match[1],s:match[2],l:match[3],a:match[4]};}\nif((match=matchers.hsv.exec(color))){return{h:match[1],s:match[2],v:match[3]};}\nif((match=matchers.hsva.exec(color))){return{h:match[1],s:match[2],v:match[3],a:match[4]};}\nif((match=matchers.hex8.exec(color))){return{r:parseIntFromHex(match[1]),g:parseIntFromHex(match[2]),b:parseIntFromHex(match[3]),a:convertHexToDecimal(match[4]),format:named?\"name\":\"hex8\"};}\nif((match=matchers.hex6.exec(color))){return{r:parseIntFromHex(match[1]),g:parseIntFromHex(match[2]),b:parseIntFromHex(match[3]),format:named?\"name\":\"hex\"};}\nif((match=matchers.hex4.exec(color))){return{r:parseIntFromHex(match[1]+''+match[1]),g:parseIntFromHex(match[2]+''+match[2]),b:parseIntFromHex(match[3]+''+match[3]),a:convertHexToDecimal(match[4]+''+match[4]),format:named?\"name\":\"hex8\"};}\nif((match=matchers.hex3.exec(color))){return{r:parseIntFromHex(match[1]+''+match[1]),g:parseIntFromHex(match[2]+''+match[2]),b:parseIntFromHex(match[3]+''+match[3]),format:named?\"name\":\"hex\"};}\nreturn false;}\nfunction validateWCAG2Parms(parms){var level,size;parms=parms||{\"level\":\"AA\",\"size\":\"small\"};level=(parms.level||\"AA\").toUpperCase();size=(parms.size||\"small\").toLowerCase();if(level!==\"AA\"&&level!==\"AAA\"){level=\"AA\";}\nif(size!==\"small\"&&size!==\"large\"){size=\"small\";}\nreturn{\"level\":level,\"size\":size};}\nif(typeof module!==\"undefined\"&&module.exports){module.exports=tinycolor;}\nelse if(typeof define==='function'&&define.amd){define(function(){return tinycolor;});}\nelse{window.tinycolor=tinycolor;}})(Math);","jquery/spectrum/spectrum.min.js":"(function(factory){\"use strict\";if(typeof define==='function'&&define.amd){define(['jquery'],factory);}\nelse if(typeof exports==\"object\"&&typeof module==\"object\"){module.exports=factory(require('jquery'));}\nelse{factory(jQuery);}})(function($,undefined){\"use strict\";var defaultOpts={beforeShow:noop,move:noop,change:noop,show:noop,hide:noop,color:false,flat:false,showInput:false,allowEmpty:false,showButtons:true,clickoutFiresChange:true,showInitial:false,showPalette:false,showPaletteOnly:false,hideAfterPaletteSelect:false,togglePaletteOnly:false,showSelectionPalette:true,localStorageKey:false,appendTo:\"body\",maxSelectionSize:7,cancelText:\"cancel\",chooseText:\"choose\",togglePaletteMoreText:\"more\",togglePaletteLessText:\"less\",clearText:\"Clear Color Selection\",noColorSelectedText:\"No Color Selected\",preferredFormat:false,className:\"\",containerClassName:\"\",replacerClassName:\"\",showAlpha:false,theme:\"sp-light\",palette:[[\"#ffffff\",\"#000000\",\"#ff0000\",\"#ff8000\",\"#ffff00\",\"#008000\",\"#0000ff\",\"#4b0082\",\"#9400d3\"]],selectionPalette:[],disabled:false,offset:null},spectrums=[],IE=!!/msie/i.exec(window.navigator.userAgent),rgbaSupport=(function(){function contains(str,substr){return!!~(''+str).indexOf(substr);}\nvar elem=document.createElement('div');var style=elem.style;style.cssText='background-color:rgba(0,0,0,.5)';return contains(style.backgroundColor,'rgba')||contains(style.backgroundColor,'hsla');})(),replaceInput=[\"<div class='sp-replacer'>\",\"<div class='sp-preview'><div class='sp-preview-inner'></div></div>\",\"<div class='sp-dd'>&#9660;</div>\",\"</div>\"].join(''),markup=(function(){var gradientFix=\"\";if(IE){for(var i=1;i<=6;i++){gradientFix+=\"<div class='sp-\"+i+\"'></div>\";}}\nreturn[\"<div class='sp-container sp-hidden'>\",\"<div class='sp-palette-container'>\",\"<div class='sp-palette sp-thumb sp-cf'></div>\",\"<div class='sp-palette-button-container sp-cf'>\",\"<button type='button' class='sp-palette-toggle'></button>\",\"</div>\",\"</div>\",\"<div class='sp-picker-container'>\",\"<div class='sp-top sp-cf'>\",\"<div class='sp-fill'></div>\",\"<div class='sp-top-inner'>\",\"<div class='sp-color'>\",\"<div class='sp-sat'>\",\"<div class='sp-val'>\",\"<div class='sp-dragger'></div>\",\"</div>\",\"</div>\",\"</div>\",\"<div class='sp-clear sp-clear-display'>\",\"</div>\",\"<div class='sp-hue'>\",\"<div class='sp-slider'></div>\",gradientFix,\"</div>\",\"</div>\",\"<div class='sp-alpha'><div class='sp-alpha-inner'><div class='sp-alpha-handle'></div></div></div>\",\"</div>\",\"<div class='sp-input-container sp-cf'>\",\"<input class='sp-input' type='text' spellcheck='false'  />\",\"</div>\",\"<div class='sp-initial sp-thumb sp-cf'></div>\",\"<div class='sp-button-container sp-cf'>\",\"<a class='sp-cancel' href='#'></a>\",\"<button type='button' class='sp-choose'></button>\",\"</div>\",\"</div>\",\"</div>\"].join(\"\");})();function paletteTemplate(p,color,className,opts){var html=[];for(var i=0;i<p.length;i++){var current=p[i];if(current){var tiny=tinycolor(current);var c=tiny.toHsl().l<0.5?\"sp-thumb-el sp-thumb-dark\":\"sp-thumb-el sp-thumb-light\";c+=(tinycolor.equals(color,current))?\" sp-thumb-active\":\"\";var formattedString=tiny.toString(opts.preferredFormat||\"rgb\");var swatchStyle=rgbaSupport?(\"background-color:\"+tiny.toRgbString()):\"filter:\"+tiny.toFilter();html.push('<span title=\"'+formattedString+'\" data-color=\"'+tiny.toRgbString()+'\" class=\"'+c+'\"><span class=\"sp-thumb-inner\" style=\"'+swatchStyle+';\" /></span>');}else{var cls='sp-clear-display';html.push($('<div />').append($('<span data-color=\"\" style=\"background-color:transparent;\" class=\"'+cls+'\"></span>').attr('title',opts.noColorSelectedText)).html());}}\nreturn\"<div class='sp-cf \"+className+\"'>\"+html.join('')+\"</div>\";}\nfunction hideAll(){for(var i=0;i<spectrums.length;i++){if(spectrums[i]){spectrums[i].hide();}}}
2\nfunction instanceOptions(o,callbackContext){var opts=$.extend({},defaultOpts,o);opts.callbacks={'move':bind(opts.move,callbackContext),'change':bind(opts.change,callbackContext),'show':bind(opts.show,callbackContext),'hide':bind(opts.hide,callbackContext),'beforeShow':bind(opts.beforeShow,callbackContext)};return opts;}\nfunction spectrum(element,o){var opts=instanceOptions(o,element),flat=opts.flat,showSelectionPalette=opts.showSelectionPalette,localStorageKey=opts.localStorageKey,theme=opts.theme,callbacks=opts.callbacks,resize=throttle(reflow,10),visible=false,isDragging=false,dragWidth=0,dragHeight=0,dragHelperHeight=0,slideHeight=0,slideWidth=0,alphaWidth=0,alphaSlideHelperWidth=0,slideHelperHeight=0,currentHue=0,currentSaturation=0,currentValue=0,currentAlpha=1,palette=[],paletteArray=[],paletteLookup={},selectionPalette=opts.selectionPalette.slice(0),maxSelectionSize=opts.maxSelectionSize,draggingClass=\"sp-dragging\",shiftMovementDirection=null;var doc=element.ownerDocument,body=doc.body,boundElement=$(element),disabled=false,container=$(markup,doc).addClass(theme),pickerContainer=container.find(\".sp-picker-container\"),dragger=container.find(\".sp-color\"),dragHelper=container.find(\".sp-dragger\"),slider=container.find(\".sp-hue\"),slideHelper=container.find(\".sp-slider\"),alphaSliderInner=container.find(\".sp-alpha-inner\"),alphaSlider=container.find(\".sp-alpha\"),alphaSlideHelper=container.find(\".sp-alpha-handle\"),textInput=container.find(\".sp-input\"),paletteContainer=container.find(\".sp-palette\"),initialColorContainer=container.find(\".sp-initial\"),cancelButton=container.find(\".sp-cancel\"),clearButton=container.find(\".sp-clear\"),chooseButton=container.find(\".sp-choose\"),toggleButton=container.find(\".sp-palette-toggle\"),isInput=boundElement.is(\"input\"),isInputTypeColor=isInput&&boundElement.attr(\"type\")===\"color\"&&inputTypeColorSupport(),shouldReplace=isInput&&!flat,replacer=(shouldReplace)?$(replaceInput).addClass(theme).addClass(opts.className).addClass(opts.replacerClassName):$([]),offsetElement=(shouldReplace)?replacer:boundElement,previewElement=replacer.find(\".sp-preview-inner\"),initialColor=opts.color||(isInput&&boundElement.val()),colorOnShow=false,currentPreferredFormat=opts.preferredFormat,clickoutFiresChange=!opts.showButtons||opts.clickoutFiresChange,isEmpty=!initialColor,allowEmpty=opts.allowEmpty&&!isInputTypeColor;function applyOptions(){if(opts.showPaletteOnly){opts.showPalette=true;}\ntoggleButton.text(opts.showPaletteOnly?opts.togglePaletteMoreText:opts.togglePaletteLessText);if(opts.palette){palette=opts.palette.slice(0);paletteArray=$.isArray(palette[0])?palette:[palette];paletteLookup={};for(var i=0;i<paletteArray.length;i++){for(var j=0;j<paletteArray[i].length;j++){var rgb=tinycolor(paletteArray[i][j]).toRgbString();paletteLookup[rgb]=true;}}}\ncontainer.toggleClass(\"sp-flat\",flat);container.toggleClass(\"sp-input-disabled\",!opts.showInput);container.toggleClass(\"sp-alpha-enabled\",opts.showAlpha);container.toggleClass(\"sp-clear-enabled\",allowEmpty);container.toggleClass(\"sp-buttons-disabled\",!opts.showButtons);container.toggleClass(\"sp-palette-buttons-disabled\",!opts.togglePaletteOnly);container.toggleClass(\"sp-palette-disabled\",!opts.showPalette);container.toggleClass(\"sp-palette-only\",opts.showPaletteOnly);container.toggleClass(\"sp-initial-disabled\",!opts.showInitial);container.addClass(opts.className).addClass(opts.containerClassName);reflow();}\nfunction initialize(){if(IE){container.find(\"*:not(input)\").attr(\"unselectable\",\"on\");}\napplyOptions();if(shouldReplace){boundElement.after(replacer).hide();}\nif(!allowEmpty){clearButton.hide();}\nif(flat){boundElement.after(container).hide();}\nelse{var appendTo=opts.appendTo===\"parent\"?boundElement.parent():$(opts.appendTo);if(appendTo.length!==1){appendTo=$(\"body\");}\nappendTo.append(container);}\nupdateSelectionPaletteFromStorage();offsetElement.bind(\"click.spectrum touchstart.spectrum\",function(e){if(!disabled){toggle();}\ne.stopPropagation();if(!$(e.target).is(\"input\")){e.preventDefault();}});if(boundElement.is(\":disabled\")||(opts.disabled===true)){disable();}\ncontainer.click(stopPropagation);textInput.change(setFromTextInput);textInput.bind(\"paste\",function(){setTimeout(setFromTextInput,1);});textInput.keydown(function(e){if(e.keyCode==13){setFromTextInput();}});cancelButton.text(opts.cancelText);cancelButton.bind(\"click.spectrum\",function(e){e.stopPropagation();e.preventDefault();revert();hide();});clearButton.attr(\"title\",opts.clearText);clearButton.bind(\"click.spectrum\",function(e){e.stopPropagation();e.preventDefault();isEmpty=true;move();if(flat){updateOriginalInput(true);}});chooseButton.text(opts.chooseText);chooseButton.bind(\"click.spectrum\",function(e){e.stopPropagation();e.preventDefault();if(IE&&textInput.is(\":focus\")){textInput.trigger('change');}\nif(isValid()){updateOriginalInput(true);hide();}});toggleButton.text(opts.showPaletteOnly?opts.togglePaletteMoreText:opts.togglePaletteLessText);toggleButton.bind(\"click.spectrum\",function(e){e.stopPropagation();e.preventDefault();opts.showPaletteOnly=!opts.showPaletteOnly;if(!opts.showPaletteOnly&&!flat){container.css('left','-='+(pickerContainer.outerWidth(true)+5));}\napplyOptions();});draggable(alphaSlider,function(dragX,dragY,e){currentAlpha=(dragX / alphaWidth);isEmpty=false;if(e.shiftKey){currentAlpha=Math.round(currentAlpha*10)/ 10;}\nmove();},dragStart,dragStop);draggable(slider,function(dragX,dragY){currentHue=parseFloat(dragY / slideHeight);isEmpty=false;if(!opts.showAlpha){currentAlpha=1;}\nmove();},dragStart,dragStop);
2draggable(dragger,function(dragX,dragY,e){if(!e.shiftKey){shiftMovementDirection=null;}\nelse if(!shiftMovementDirection){var oldDragX=currentSaturation*dragWidth;var oldDragY=dragHeight-(currentValue*dragHeight);var furtherFromX=Math.abs(dragX-oldDragX)>Math.abs(dragY-oldDragY);shiftMovementDirection=furtherFromX?\"x\":\"y\";}\nvar setSaturation=!shiftMovementDirection||shiftMovementDirection===\"x\";var setValue=!shiftMovementDirection||shiftMovementDirection===\"y\";if(setSaturation){currentSaturation=parseFloat(dragX / dragWidth);}\nif(setValue){currentValue=parseFloat((dragHeight-dragY)/ dragHeight);}\nisEmpty=false;if(!opts.showAlpha){currentAlpha=1;}\nmove();},dragStart,dragStop);if(!!initialColor){set(initialColor);updateUI();currentPreferredFormat=opts.preferredFormat||tinycolor(initialColor).format;addColorToSelectionPalette(initialColor);}\nelse{updateUI();}\nif(flat){show();}\nfunction paletteElementClick(e){if(e.data&&e.data.ignore){set($(e.target).closest(\".sp-thumb-el\").data(\"color\"));move();}\nelse{set($(e.target).closest(\".sp-thumb-el\").data(\"color\"));move();updateOriginalInput(true);if(opts.hideAfterPaletteSelect){hide();}}\nreturn false;}\nvar paletteEvent=IE?\"mousedown.spectrum\":\"click.spectrum touchstart.spectrum\";paletteContainer.delegate(\".sp-thumb-el\",paletteEvent,paletteElementClick);initialColorContainer.delegate(\".sp-thumb-el:nth-child(1)\",paletteEvent,{ignore:true},paletteElementClick);}\nfunction updateSelectionPaletteFromStorage(){if(localStorageKey&&window.localStorage){try{var oldPalette=window.localStorage[localStorageKey].split(\",#\");if(oldPalette.length>1){delete window.localStorage[localStorageKey];$.each(oldPalette,function(i,c){addColorToSelectionPalette(c);});}}\ncatch(e){}\ntry{selectionPalette=window.localStorage[localStorageKey].split(\";\");}\ncatch(e){}}}\nfunction addColorToSelectionPalette(color){if(showSelectionPalette){var rgb=tinycolor(color).toRgbString();if(!paletteLookup[rgb]&&$.inArray(rgb,selectionPalette)===-1){selectionPalette.push(rgb);while(selectionPalette.length>maxSelectionSize){selectionPalette.shift();}}\nif(localStorageKey&&window.localStorage){try{window.localStorage[localStorageKey]=selectionPalette.join(\";\");}\ncatch(e){}}}}\nfunction getUniqueSelectionPalette(){var unique=[];if(opts.showPalette){for(var i=0;i<selectionPalette.length;i++){var rgb=tinycolor(selectionPalette[i]).toRgbString();if(!paletteLookup[rgb]){unique.push(selectionPalette[i]);}}}\nreturn unique.reverse().slice(0,opts.maxSelectionSize);}\nfunction drawPalette(){var currentColor=get();var html=$.map(paletteArray,function(palette,i){return paletteTemplate(palette,currentColor,\"sp-palette-row sp-palette-row-\"+i,opts);});updateSelectionPaletteFromStorage();if(selectionPalette){html.push(paletteTemplate(getUniqueSelectionPalette(),currentColor,\"sp-palette-row sp-palette-row-selection\",opts));}\npaletteContainer.html(html.join(\"\"));}\nfunction drawInitial(){if(opts.showInitial){var initial=colorOnShow;var current=get();initialColorContainer.html(paletteTemplate([initial,current],current,\"sp-palette-row-initial\",opts));}}
2\nfunction dragStart(){if(dragHeight<=0||dragWidth<=0||slideHeight<=0){reflow();}\nisDragging=true;container.addClass(draggingClass);shiftMovementDirection=null;boundElement.trigger('dragstart.spectrum',[get()]);}\nfunction dragStop(){isDragging=false;container.removeClass(draggingClass);boundElement.trigger('dragstop.spectrum',[get()]);}\nfunction setFromTextInput(){var value=textInput.val();if((value===null||value===\"\")&&allowEmpty){set(null);updateOriginalInput(true);}\nelse{var tiny=tinycolor(value);if(tiny.isValid()){set(tiny);updateOriginalInput(true);}\nelse{textInput.addClass(\"sp-validation-error\");}}}\nfunction toggle(){if(visible){hide();}\nelse{show();}}\nfunction show(){var event=$.Event('beforeShow.spectrum');if(visible){reflow();return;}\nboundElement.trigger(event,[get()]);if(callbacks.beforeShow(get())===false||event.isDefaultPrevented()){return;}\nhideAll();visible=true;$(doc).bind(\"keydown.spectrum\",onkeydown);$(doc).bind(\"click.spectrum\",clickout);$(window).bind(\"resize.spectrum\",resize);replacer.addClass(\"sp-active\");container.removeClass(\"sp-hidden\");reflow();updateUI();colorOnShow=get();drawInitial();callbacks.show(colorOnShow);boundElement.trigger('show.spectrum',[colorOnShow]);}\nfunction onkeydown(e){if(e.keyCode===27){hide();}}\nfunction clickout(e){if(e.button==2){return;}\nif(isDragging){return;}\nif(clickoutFiresChange){updateOriginalInput(true);}\nelse{revert();}\nhide();}\nfunction hide(){if(!visible||flat){return;}\nvisible=false;$(doc).unbind(\"keydown.spectrum\",onkeydown);$(doc).unbind(\"click.spectrum\",clickout);$(window).unbind(\"resize.spectrum\",resize);replacer.removeClass(\"sp-active\");container.addClass(\"sp-hidden\");callbacks.hide(get());boundElement.trigger('hide.spectrum',[get()]);}\nfunction revert(){set(colorOnShow,true);}\nfunction set(color,ignoreFormatChange){if(tinycolor.equals(color,get())){updateUI();return;}\nvar newColor,newHsv;if(!color&&allowEmpty){isEmpty=true;}else{isEmpty=false;newColor=tinycolor(color);newHsv=newColor.toHsv();currentHue=(newHsv.h%360)/ 360;currentSaturation=newHsv.s;currentValue=newHsv.v;currentAlpha=newHsv.a;}\nupdateUI();if(newColor&&newColor.isValid()&&!ignoreFormatChange){currentPreferredFormat=opts.preferredFormat||newColor.getFormat();}}\nfunction get(opts){opts=opts||{};if(allowEmpty&&isEmpty){return null;}\nreturn tinycolor.fromRatio({h:currentHue,s:currentSaturation,v:currentValue,a:Math.round(currentAlpha*100)/ 100},{format:opts.format||currentPreferredFormat});}\nfunction isValid(){return!textInput.hasClass(\"sp-validation-error\");}\nfunction move(){updateUI();callbacks.move(get());boundElement.trigger('move.spectrum',[get()]);}\nfunction updateUI(){textInput.removeClass(\"sp-validation-error\");updateHelperLocations();var flatColor=tinycolor.fromRatio({h:currentHue,s:1,v:1});dragger.css(\"background-color\",flatColor.toHexString());var format=currentPreferredFormat;if(currentAlpha<1&&!(currentAlpha===0&&format===\"name\")){if(format===\"hex\"||format===\"hex3\"||format===\"hex6\"||format===\"name\"){format=\"rgb\";}}\nvar realColor=get({format:format}),displayColor='';previewElement.removeClass(\"sp-clear-display\");previewElement.css('background-color','transparent');if(!realColor&&allowEmpty){previewElement.addClass(\"sp-clear-display\");}\nelse{var realHex=realColor.toHexString(),realRgb=realColor.toRgbString();if(rgbaSupport||realColor.alpha===1){previewElement.css(\"background-color\",realRgb);}\nelse{previewElement.css(\"background-color\",\"transparent\");previewElement.css(\"filter\",realColor.toFilter());}\nif(opts.showAlpha){var rgb=realColor.toRgb();rgb.a=0;var realAlpha=tinycolor(rgb).toRgbString();var gradient=\"linear-gradient(left, \"+realAlpha+\", \"+realHex+\")\";
2if(IE){alphaSliderInner.css(\"filter\",tinycolor(realAlpha).toFilter({gradientType:1},realHex));}\nelse{alphaSliderInner.css(\"background\",\"-webkit-\"+gradient);alphaSliderInner.css(\"background\",\"-moz-\"+gradient);alphaSliderInner.css(\"background\",\"-ms-\"+gradient);alphaSliderInner.css(\"background\",\"linear-gradient(to right, \"+realAlpha+\", \"+realHex+\")\");}}\ndisplayColor=realColor.toString(format);}\nif(opts.showInput){textInput.val(displayColor);}\nif(opts.showPalette){drawPalette();}\ndrawInitial();}\nfunction updateHelperLocations(){var s=currentSaturation;var v=currentValue;if(allowEmpty&&isEmpty){alphaSlideHelper.hide();slideHelper.hide();dragHelper.hide();}\nelse{alphaSlideHelper.show();slideHelper.show();dragHelper.show();var dragX=s*dragWidth;var dragY=dragHeight-(v*dragHeight);dragX=Math.max(-dragHelperHeight,Math.min(dragWidth-dragHelperHeight,dragX-dragHelperHeight));dragY=Math.max(-dragHelperHeight,Math.min(dragHeight-dragHelperHeight,dragY-dragHelperHeight));dragHelper.css({\"top\":dragY+\"px\",\"left\":dragX+\"px\"});var alphaX=currentAlpha*alphaWidth;alphaSlideHelper.css({\"left\":(alphaX-(alphaSlideHelperWidth / 2))+\"px\"});var slideY=(currentHue)*slideHeight;slideHelper.css({\"top\":(slideY-slideHelperHeight)+\"px\"});}}\nfunction updateOriginalInput(fireCallback){var color=get(),displayColor='',hasChanged=!tinycolor.equals(color,colorOnShow);if(color){displayColor=color.toString(currentPreferredFormat);addColorToSelectionPalette(color);}\nif(isInput){boundElement.val(displayColor);}\nif(fireCallback&&hasChanged){callbacks.change(color);boundElement.trigger('change',[color]);}}\nfunction reflow(){if(!visible){return;}\ndragWidth=dragger.width();dragHeight=dragger.height();dragHelperHeight=dragHelper.height();slideWidth=slider.width();slideHeight=slider.height();slideHelperHeight=slideHelper.height();alphaWidth=alphaSlider.width();alphaSlideHelperWidth=alphaSlideHelper.width();if(!flat){container.css(\"position\",\"absolute\");if(opts.offset){container.offset(opts.offset);}else{container.offset(getOffset(container,offsetElement));}}\nupdateHelperLocations();if(opts.showPalette){drawPalette();}\nboundElement.trigger('reflow.spectrum');}\nfunction destroy(){boundElement.show();offsetElement.unbind(\"click.spectrum touchstart.spectrum\");container.remove();replacer.remove();spectrums[spect.id]=null;}\nfunction option(optionName,optionValue){if(optionName===undefined){return $.extend({},opts);}\nif(optionValue===undefined){return opts[optionName];}\nopts[optionName]=optionValue;if(optionName===\"preferredFormat\"){currentPreferredFormat=opts.preferredFormat;}\napplyOptions();}\nfunction enable(){disabled=false;boundElement.attr(\"disabled\",false);offsetElement.removeClass(\"sp-disabled\");}\nfunction disable(){hide();disabled=true;boundElement.attr(\"disabled\",true);offsetElement.addClass(\"sp-disabled\");}\nfunction setOffset(coord){opts.offset=coord;reflow();}\ninitialize();var spect={show:show,hide:hide,toggle:toggle,reflow:reflow,option:option,enable:enable,disable:disable,offset:setOffset,set:function(c){set(c);updateOriginalInput();},get:get,destroy:destroy,container:container};spect.id=spectrums.push(spect)-1;return spect;}\nfunction getOffset(picker,input){var extraY=0;var dpWidth=picker.outerWidth();var dpHeight=picker.outerHeight();var inputHeight=input.outerHeight();var doc=picker[0].ownerDocument;var docElem=doc.documentElement;var viewWidth=docElem.clientWidth+$(doc).scrollLeft();var viewHeight=docElem.clientHeight+$(doc).scrollTop();var offset=input.offset();offset.top+=inputHeight;offset.left-=Math.min(offset.left,(offset.left+dpWidth>viewWidth&&viewWidth>dpWidth)?Math.abs(offset.left+dpWidth-viewWidth):0);offset.top-=Math.min(offset.top,((offset.top+dpHeight>viewHeight&&viewHeight>dpHeight)?Math.abs(dpHeight+inputHeight-extraY):extraY));return offset;}\nfunction noop(){}\nfunction stopPropagation(e){e.stopPropagation();}\nfunction bind(func,obj){var slice=Array.prototype.slice;var args=slice.call(arguments,2);return function(){return func.apply(obj,args.concat(slice.call(arguments)));};}\nfunction draggable(element,onmove,onstart,onstop){onmove=onmove||function(){};onstart=onstart||function(){};onstop=onstop||function(){};var doc=document;var dragging=false;var offset={};var maxHeight=0;var maxWidth=0;var hasTouch=('ontouchstart'in window);var duringDragEvents={};duringDragEvents[\"selectstart\"]=prevent;duringDragEvents[\"dragstart\"]=prevent;duringDragEvents[\"touchmove mousemove\"]=move;duringDragEvents[\"touchend mouseup\"]=stop;function prevent(e){if(e.stopPropagation){e.stopPropagation();}\nif(e.preventDefault){e.preventDefault();}\ne.returnValue=false;}\nfunction move(e){if(dragging){if(IE&&doc.documentMode<9&&!e.button){return stop();}\nvar t0=e.originalEvent&&e.originalEvent.touches&&e.originalEvent.touches[0];var pageX=t0&&t0.pageX||e.pageX;var pageY=t0&&t0.pageY||e.pageY;var dragX=Math.max(0,Math.min(pageX-offset.left,maxWidth));var dragY=Math.max(0,Math.min(pageY-offset.top,maxHeight));if(hasTouch){prevent(e);}\nonmove.apply(element,[dragX,dragY,e]);}}\nfunction start(e){var rightclick=(e.which)?(e.which==3):(e.button==2);if(!rightclick&&!dragging){if(onstart.apply(element,arguments)!==false){dragging=true;maxHeight=$(element).height();maxWidth=$(element).width();offset=$(element).offset();$(doc).bind(duringDragEvents);$(doc.body).addClass(\"sp-dragging\");move(e);prevent(e);}}}\nfunction stop(){if(dragging){$(doc).unbind(duringDragEvents);$(doc.body).removeClass(\"sp-dragging\");setTimeout(function(){onstop.apply(element,arguments);},0);}\ndragging=false;}\n$(element).bind(\"touchstart mousedown\",start);}\nfunction throttle(func,wait,debounce){var timeout;return function(){var context=this,args=arguments;var throttler=function(){timeout=null;func.apply(context,args);};if(debounce)clearTimeout(timeout);if(debounce||!timeout)timeout=setTimeout(throttler,wait);};}\nfunction inputTypeColorSupport(){return $.fn.spectrum.inputTypeColorSupport();}\nvar dataID=\"spectrum.id\";$.fn.spectrum=function(opts,extra){if(typeof opts==\"string\"){var returnValue=this;
2var args=Array.prototype.slice.call(arguments,1);this.each(function(){var spect=spectrums[$(this).data(dataID)];if(spect){var method=spect[opts];if(!method){throw new Error(\"Spectrum: no such method: '\"+opts+\"'\");}\nif(opts==\"get\"){returnValue=spect.get();}\nelse if(opts==\"container\"){returnValue=spect.container;}\nelse if(opts==\"option\"){returnValue=spect.option.apply(spect,args);}\nelse if(opts==\"destroy\"){spect.destroy();$(this).removeData(dataID);}\nelse{method.apply(spect,args);}}});return returnValue;}\nreturn this.spectrum(\"destroy\").each(function(){var options=$.extend({},opts,$(this).data());var spect=spectrum(this,options);$(this).data(dataID,spect.id);});};$.fn.spectrum.load=true;$.fn.spectrum.loadOpts={};$.fn.spectrum.draggable=draggable;$.fn.spectrum.defaults=defaultOpts;$.fn.spectrum.inputTypeColorSupport=function inputTypeColorSupport(){if(typeof inputTypeColorSupport._cachedResult===\"undefined\"){var colorInput=$(\"<input type='color'/>\")[0];inputTypeColorSupport._cachedResult=colorInput.type===\"color\"&&colorInput.value!==\"\";}\nreturn inputTypeColorSupport._cachedResult;};$.spectrum={};$.spectrum.localization={};$.spectrum.palettes={};$.fn.spectrum.processNativeColorInputs=function(){var colorInputs=$(\"input[type=color]\");
2if(colorInputs.length&&!inputTypeColorSupport()){colorInputs.spectrum({preferredFormat:\"hex6\"});}};(function(){var trimLeft=/^[\\s,#]+/,trimRight=/\\s+$/,tinyCounter=0,math=Math,mathRound=math.round,mathMin=math.min,mathMax=math.max,mathRandom=math.random;var tinycolor=function(color,opts){color=(color)?color:'';opts=opts||{};if(color instanceof tinycolor){return color;}\nif(!(this instanceof tinycolor)){return new tinycolor(color,opts);}\nvar rgb=inputToRGB(color);this._originalInput=color,this._r=rgb.r,this._g=rgb.g,this._b=rgb.b,this._a=rgb.a,this._roundA=mathRound(100*this._a)/ 100,this._format=opts.format||rgb.format;this._gradientType=opts.gradientType;if(this._r<1){this._r=mathRound(this._r);}\nif(this._g<1){this._g=mathRound(this._g);}\nif(this._b<1){this._b=mathRound(this._b);}\nthis._ok=rgb.ok;this._tc_id=tinyCounter++;};tinycolor.prototype={isDark:function(){return this.getBrightness()<128;},isLight:function(){return!this.isDark();},isValid:function(){return this._ok;},getOriginalInput:function(){return this._originalInput;},getFormat:function(){return this._format;},getAlpha:function(){return this._a;},getBrightness:function(){var rgb=this.toRgb();return(rgb.r*299+rgb.g*587+rgb.b*114)/ 1000;},setAlpha:function(value){this._a=boundAlpha(value);this._roundA=mathRound(100*this._a)/ 100;return this;},toHsv:function(){var hsv=rgbToHsv(this._r,this._g,this._b);return{h:hsv.h*360,s:hsv.s,v:hsv.v,a:this._a};},toHsvString:function(){var hsv=rgbToHsv(this._r,this._g,this._b);var h=mathRound(hsv.h*360),s=mathRound(hsv.s*100),v=mathRound(hsv.v*100);return(this._a==1)?\"hsv(\"+h+\", \"+s+\"%, \"+v+\"%)\":\"hsva(\"+h+\", \"+s+\"%, \"+v+\"%, \"+this._roundA+\")\";},toHsl:function(){var hsl=rgbToHsl(this._r,this._g,this._b);return{h:hsl.h*360,s:hsl.s,l:hsl.l,a:this._a};},toHslString:function(){var hsl=rgbToHsl(this._r,this._g,this._b);var h=mathRound(hsl.h*360),s=mathRound(hsl.s*100),l=mathRound(hsl.l*100);return(this._a==1)?\"hsl(\"+h+\", \"+s+\"%, \"+l+\"%)\":\"hsla(\"+h+\", \"+s+\"%, \"+l+\"%, \"+this._roundA+\")\";},toHex:function(allow3Char){return rgbToHex(this._r,this._g,this._b,allow3Char);},toHexString:function(allow3Char){return'#'+this.toHex(allow3Char);},toHex8:function(){return rgbaToHex(this._r,this._g,this._b,this._a);},toHex8String:function(){return'#'+this.toHex8();},toRgb:function(){return{r:mathRound(this._r),g:mathRound(this._g),b:mathRound(this._b),a:this._a};},toRgbString:function(){return(this._a==1)?\"rgb(\"+mathRound(this._r)+\", \"+mathRound(this._g)+\", \"+mathRound(this._b)+\")\":\"rgba(\"+mathRound(this._r)+\", \"+mathRound(this._g)+\", \"+mathRound(this._b)+\", \"+this._roundA+\")\";},toPercentageRgb:function(){return{r:mathRound(bound01(this._r,255)*100)+\"%\",g:mathRound(bound01(this._g,255)*100)+\"%\",b:mathRound(bound01(this._b,255)*100)+\"%\",a:this._a};},toPercentageRgbString:function(){return(this._a==1)?\"rgb(\"+mathRound(bound01(this._r,255)*100)+\"%, \"+mathRound(bound01(this._g,255)*100)+\"%, \"+mathRound(bound01(this._b,255)*100)+\"%)\":\"rgba(\"+mathRound(bound01(this._r,255)*100)+\"%, \"+mathRound(bound01(this._g,255)*100)+\"%, \"+mathRound(bound01(this._b,255)*100)+\"%, \"+this._roundA+\")\";},toName:function(){if(this._a===0){return\"transparent\";}\nif(this._a<1){return false;}\nreturn hexNames[rgbToHex(this._r,this._g,this._b,true)]||false;},toFilter:function(secondColor){var hex8String='#'+rgbaToHex(this._r,this._g,this._b,this._a);var secondHex8String=hex8String;var gradientType=this._gradientType?\"GradientType = 1, \":\"\";if(secondColor){var s=tinycolor(secondColor);secondHex8String=s.toHex8String();}\nreturn\"progid:DXImageTransform.Microsoft.gradient(\"+gradientType+\"startColorstr=\"+hex8String+\",endColorstr=\"+secondHex8String+\")\";},toString:function(format){var formatSet=!!format;format=format||this._format;var formattedString=false;var hasAlpha=this._a<1&&this._a>=0;var needsAlphaFormat=!formatSet&&hasAlpha&&(format===\"hex\"||format===\"hex6\"||format===\"hex3\"||format===\"name\");if(needsAlphaFormat){if(format===\"name\"&&this._a===0){return this.toName();}\nreturn this.toRgbString();}\nif(format===\"rgb\"){formattedString=this.toRgbString();}\nif(format===\"prgb\"){formattedString=this.toPercentageRgbString();}\nif(format===\"hex\"||format===\"hex6\"){formattedString=this.toHexString();}\nif(format===\"hex3\"){formattedString=this.toHexString(true);}\nif(format===\"hex8\"){formattedString=this.toHex8String();}\nif(format===\"name\"){formattedString=this.toName();}\nif(format===\"hsl\"){formattedString=this.toHslString();}\nif(format===\"hsv\"){formattedString=this.toHsvString();}\nreturn formattedString||this.toHexString();},_applyModification:function(fn,args){var color=fn.apply(null,[this].concat([].slice.call(args)));this._r=color._r;this._g=color._g;this._b=color._b;this.setAlpha(color._a);return this;},lighten:function(){return this._applyModification(lighten,arguments);},brighten:function(){return this._applyModification(brighten,arguments);},darken:function(){return this._applyModification(darken,arguments);},desaturate:function(){return this._applyModification(desaturate,arguments);},saturate:function(){return this._applyModification(saturate,arguments);},greyscale:function(){return this._applyModification(greyscale,arguments);},spin:function(){return this._applyModification(spin,arguments);},_applyCombination:function(fn,args){return fn.apply(null,[this].concat([].slice.call(args)));},analogous:function(){return this._applyCombination(analogous,arguments);},complement:function(){return this._applyCombination(complement,arguments);},monochromatic:function(){return this._applyCombination(monochromatic,arguments);},splitcomplement:function(){return this._applyCombination(splitcomplement,arguments);},triad:function(){return this._applyCombination(triad,arguments);},tetrad:function(){return this._applyCombination(tetrad,arguments);}};
2tinycolor.fromRatio=function(color,opts){if(typeof color==\"object\"){var newColor={};for(var i in color){if(color.hasOwnProperty(i)){if(i===\"a\"){newColor[i]=color[i];}\nelse{newColor[i]=convertToPercentage(color[i]);}}}\ncolor=newColor;}\nreturn tinycolor(color,opts);};function inputToRGB(color){var rgb={r:0,g:0,b:0};var a=1;var ok=false;var format=false;if(typeof color==\"string\"){color=stringInputToObject(color);}\nif(typeof color==\"object\"){if(color.hasOwnProperty(\"r\")&&color.hasOwnProperty(\"g\")&&color.hasOwnProperty(\"b\")){rgb=rgbToRgb(color.r,color.g,color.b);ok=true;format=String(color.r).substr(-1)===\"%\"?\"prgb\":\"rgb\";}\nelse if(color.hasOwnProperty(\"h\")&&color.hasOwnProperty(\"s\")&&color.hasOwnProperty(\"v\")){color.s=convertToPercentage(color.s);color.v=convertToPercentage(color.v);rgb=hsvToRgb(color.h,color.s,color.v);ok=true;format=\"hsv\";}\nelse if(color.hasOwnProperty(\"h\")&&color.hasOwnProperty(\"s\")&&color.hasOwnProperty(\"l\")){color.s=convertToPercentage(color.s);color.l=convertToPercentage(color.l);rgb=hslToRgb(color.h,color.s,color.l);ok=true;format=\"hsl\";}\nif(color.hasOwnProperty(\"a\")){a=color.a;}}\na=boundAlpha(a);return{ok:ok,format:color.format||format,r:mathMin(255,mathMax(rgb.r,0)),g:mathMin(255,mathMax(rgb.g,0)),b:mathMin(255,mathMax(rgb.b,0)),a:a};}\nfunction rgbToRgb(r,g,b){return{r:bound01(r,255)*255,g:bound01(g,255)*255,b:bound01(b,255)*255};}\nfunction rgbToHsl(r,g,b){r=bound01(r,255);g=bound01(g,255);b=bound01(b,255);var max=mathMax(r,g,b),min=mathMin(r,g,b);var h,s,l=(max+min)/ 2;if(max==min){h=s=0;}\nelse{var d=max-min;s=l>0.5?d /(2-max-min):d /(max+min);switch(max){case r:h=(g-b)/ d+(g<b?6:0);break;case g:h=(b-r)/ d+2;break;case b:h=(r-g)/ d+4;break;}\nh /=6;}\nreturn{h:h,s:s,l:l};}\nfunction hslToRgb(h,s,l){var r,g,b;h=bound01(h,360);s=bound01(s,100);l=bound01(l,100);function hue2rgb(p,q,t){if(t<0)t+=1;if(t>1)t-=1;if(t<1/6)return p+(q-p)*6*t;if(t<1/2)return q;if(t<2/3)return p+(q-p)*(2/3-t)*6;return p;}\nif(s===0){r=g=b=l;}\nelse{var q=l<0.5?l*(1+s):l+s-l*s;var p=2*l-q;r=hue2rgb(p,q,h+1/3);g=hue2rgb(p,q,h);b=hue2rgb(p,q,h-1/3);}\nreturn{r:r*255,g:g*255,b:b*255};}\nfunction rgbToHsv(r,g,b){r=bound01(r,255);g=bound01(g,255);b=bound01(b,255);var max=mathMax(r,g,b),min=mathMin(r,g,b);var h,s,v=max;var d=max-min;s=max===0?0:d / max;if(max==min){h=0;}\nelse{switch(max){case r:h=(g-b)/ d+(g<b?6:0);break;case g:h=(b-r)/ d+2;break;case b:h=(r-g)/ d+4;break;}\nh /=6;}\nreturn{h:h,s:s,v:v};}\nfunction hsvToRgb(h,s,v){h=bound01(h,360)*6;s=bound01(s,100);v=bound01(v,100);var i=math.floor(h),f=h-i,p=v*(1-s),q=v*(1-f*s),t=v*(1-(1-f)*s),mod=i%6,r=[v,q,p,p,t,v][mod],g=[t,v,v,q,p,p][mod],b=[p,p,t,v,v,q][mod];return{r:r*255,g:g*255,b:b*255};}\nfunction rgbToHex(r,g,b,allow3Char){var hex=[pad2(mathRound(r).toString(16)),pad2(mathRound(g).toString(16)),pad2(mathRound(b).toString(16))];if(allow3Char&&hex[0].charAt(0)==hex[0].charAt(1)&&hex[1].charAt(0)==hex[1].charAt(1)&&hex[2].charAt(0)==hex[2].charAt(1)){return hex[0].charAt(0)+hex[1].charAt(0)+hex[2].charAt(0);}\nreturn hex.join(\"\");}\nfunction rgbaToHex(r,g,b,a){var hex=[pad2(convertDecimalToHex(a)),pad2(mathRound(r).toString(16)),pad2(mathRound(g).toString(16)),pad2(mathRound(b).toString(16))];return hex.join(\"\");}\ntinycolor.equals=function(color1,color2){if(!color1||!color2){return false;}\nreturn tinycolor(color1).toRgbString()==tinycolor(color2).toRgbString();};tinycolor.random=function(){return tinycolor.fromRatio({r:mathRandom(),g:mathRandom(),b:mathRandom()});};function desaturate(color,amount){amount=(amount===0)?0:(amount||10);var hsl=tinycolor(color).toHsl();hsl.s-=amount / 100;hsl.s=clamp01(hsl.s);return tinycolor(hsl);}\nfunction saturate(color,amount){amount=(amount===0)?0:(amount||10);var hsl=tinycolor(color).toHsl();hsl.s+=amount / 100;hsl.s=clamp01(hsl.s);return tinycolor(hsl);}\nfunction greyscale(color){return tinycolor(color).desaturate(100);}\nfunction lighten(color,amount){amount=(amount===0)?0:(amount||10);var hsl=tinycolor(color).toHsl();hsl.l+=amount / 100;hsl.l=clamp01(hsl.l);return tinycolor(hsl);}\nfunction brighten(color,amount){amount=(amount===0)?0:(amount||10);var rgb=tinycolor(color).toRgb();rgb.r=mathMax(0,mathMin(255,rgb.r-mathRound(255*-(amount / 100))));rgb.g=mathMax(0,mathMin(255,rgb.g-mathRound(255*-(amount / 100))));rgb.b=mathMax(0,mathMin(255,rgb.b-mathRound(255*-(amount / 100))));return tinycolor(rgb);}\nfunction darken(color,amount){amount=(amount===0)?0:(amount||10);var hsl=tinycolor(color).toHsl();hsl.l-=amount / 100;hsl.l=clamp01(hsl.l);return tinycolor(hsl);}\nfunction spin(color,amount){var hsl=tinycolor(color).toHsl();var hue=(mathRound(hsl.h)+amount)%360;hsl.h=hue<0?360+hue:hue;return tinycolor(hsl);}\nfunction complement(color){var hsl=tinycolor(color).toHsl();hsl.h=(hsl.h+180)%360;return tinycolor(hsl);}\nfunction triad(color){var hsl=tinycolor(color).toHsl();var h=hsl.h;return[tinycolor(color),tinycolor({h:(h+120)%360,s:hsl.s,l:hsl.l}),tinycolor({h:(h+240)%360,s:hsl.s,l:hsl.l})];}\nfunction tetrad(color){var hsl=tinycolor(color).toHsl();var h=hsl.h;return[tinycolor(color),tinycolor({h:(h+90)%360,s:hsl.s,l:hsl.l}),tinycolor({h:(h+180)%360,s:hsl.s,l:hsl.l}),tinycolor({h:(h+270)%360,s:hsl.s,l:hsl.l})];}\nfunction splitcomplement(color){var hsl=tinycolor(color).toHsl();var h=hsl.h;return[tinycolor(color),tinycolor({h:(h+72)%360,s:hsl.s,l:hsl.l}),tinycolor({h:(h+216)%360,s:hsl.s,l:hsl.l})];}\nfunction analogous(color,results,slices){results=results||6;slices=slices||30;var hsl=tinycolor(color).toHsl();var part=360 / slices;var ret=[tinycolor(color)];for(hsl.h=((hsl.h-(part*results>>1))+720)%360;--results;){hsl.h=(hsl.h+part)%360;ret.push(tinycolor(hsl));}\nreturn ret;}\nfunction monochromatic(color,results){results=results||6;var hsv=tinycolor(color).toHsv();var h=hsv.h,s=hsv.s,v=hsv.v;var ret=[];var modification=1 / results;while(results--){ret.push(tinycolor({h:h,s:s,v:v}));v=(v+modification)%1;}\nreturn ret;}\ntinycolor.mix=function(color1,color2,amount){amount=(amount===0)?0:(amount||50);var rgb1=tinycolor(color1).toRgb();var rgb2=tinycolor(color2).toRgb();var p=amount / 100;var w=p*2-1;var a=rgb2.a-rgb1.a;var w1;if(w*a==-1){w1=w;}else{w1=(w+a)/(1+w*a);}\nw1=(w1+1)/ 2;var w2=1-w1;var rgba={r:rgb2.r*w1+rgb1.r*w2,g:rgb2.g*w1+rgb1.g*w2,b:rgb2.b*w1+rgb1.b*w2,a:rgb2.a*p+rgb1.a*(1-p)};return tinycolor(rgba);};tinycolor.readability=function(color1,color2){var c1=tinycolor(color1);var c2=tinycolor(color2);var rgb1=c1.toRgb();var rgb2=c2.toRgb();var brightnessA=c1.getBrightness();var brightnessB=c2.getBrightness();var colorDiff=(Math.max(rgb1.r,rgb2.r)-Math.min(rgb1.r,rgb2.r)+\nMath.max(rgb1.g,rgb2.g)-Math.min(rgb1.g,rgb2.g)+\nMath.max(rgb1.b,rgb2.b)-Math.min(rgb1.b,rgb2.b));return{brightness:Math.abs(brightnessA-brightnessB),color:colorDiff};};tinycolor.isReadable=function(color1,color2){var readability=tinycolor.readability(color1,color2);return readability.brightness>125&&readability.color>500;};tinycolor.mostReadable=function(baseColor,colorList){var bestColor=null;var bestScore=0;var bestIsReadable=false;for(var i=0;i<colorList.length;i++){var readability=tinycolor.readability(baseColor,colorList[i]);var readable=readability.brightness>125&&readability.color>500;var score=3*(readability.brightness / 125)+(readability.color / 500);if((readable&&!bestIsReadable)||(readable&&bestIsReadable&&score>bestScore)||((!readable)&&(!bestIsReadable)&&score>bestScore)){bestIsReadable=readable;bestScore=score;bestColor=tinycolor(colorList[i]);}}\nreturn bestColor;};var names=tinycolor.names={aliceblue:\"f0f8ff\",antiquewhite:\"faebd7\",aqua:\"0ff\",aquamarine:\"7fffd4\",azure:\"f0ffff\",beige:\"f5f5dc\",bisque:\"ffe4c4\",black:\"000\",blanchedalmond:\"ffebcd\",blue:\"00f\",blueviolet:\"8a2be2\",brown:\"a52a2a\",burlywood:\"deb887\",burntsienna:\"ea7e5d\",cadetblue:\"5f9ea0\",chartreuse:\"7fff00\",chocolate:\"d2691e\",coral:\"ff7f50\",cornflowerblue:\"6495ed\",cornsilk:\"fff8dc\",crimson:\"dc143c\",cyan:\"0ff\",darkblue:\"00008b\",darkcyan:\"008b8b\",darkgoldenrod:\"b8860b\",darkgray:\"a9a9a9\",darkgreen:\"006400\",darkgrey:\"a9a9a9\",darkkhaki:\"bdb76b\",darkmagenta:\"8b008b\",darkolivegreen:\"556b2f\",darkorange:\"ff8c00\",darkorchid:\"9932cc\",darkred:\"8b0000\",darksalmon:\"e9967a\",darkseagreen:\"8fbc8f\",darkslateblue:\"483d8b\",darkslategray:\"2f4f4f\",darkslategrey:\"2f4f4f\",darkturquoise:\"00ced1\",darkviolet:\"9400d3\",deeppink:\"ff1493\",deepskyblue:\"00bfff\",dimgray:\"696969\",dimgrey:\"696969\",dodgerblue:\"1e90ff\",firebrick:\"b22222\",floralwhite:\"fffaf0\",forestgreen:\"228b22\",fuchsia:\"f0f\",gainsboro:\"dcdcdc\",ghostwhite:\"f8f8ff\",gold:\"ffd700\",goldenrod:\"daa520\",gray:\"808080\",green:\"008000\",greenyellow:\"adff2f\",grey:\"808080\",honeydew:\"f0fff0\",hotpink:\"ff69b4\",indianred:\"cd5c5c\",indigo:\"4b0082\",ivory:\"fffff0\",khaki:\"f0e68c\",lavender:\"e6e6fa\",lavenderblush:\"fff0f5\",lawngreen:\"7cfc00\",lemonchiffon:\"fffacd\",lightblue:\"add8e6\",lightcoral:\"f08080\",lightcyan:\"e0ffff\",lightgoldenrodyellow:\"fafad2\",lightgray:\"d3d3d3\",lightgreen:\"90ee90\",lightgrey:\"d3d3d3\",lightpink:\"ffb6c1\",lightsalmon:\"ffa07a\",lightseagreen:\"20b2aa\",lightskyblue:\"87cefa\",lightslategray:\"789\",lightslategrey:\"789\",lightsteelblue:\"b0c4de\",lightyellow:\"ffffe0\",lime:\"0f0\",limegreen:\"32cd32\",linen:\"faf0e6\",magenta:\"f0f\",maroon:\"800000\",mediumaquamarine:\"66cdaa\",mediumblue:\"0000cd\",mediumorchid:\"ba55d3\",mediumpurple:\"9370db\",mediumseagreen:\"3cb371\",mediumslateblue:\"7b68ee\",mediumspringgreen:\"00fa9a\",mediumturquoise:\"48d1cc\",mediumvioletred:\"c71585\",midnightblue:\"191970\",mintcream:\"f5fffa\",mistyrose:\"ffe4e1\",moccasin:\"ffe4b5\",navajowhite:\"ffdead\",navy:\"000080\",oldlace:\"fdf5e6\",olive:\"808000\",olivedrab:\"6b8e23\",orange:\"ffa500\",orangered:\"ff4500\",orchid:\"da70d6\",palegoldenrod:\"eee8aa\",palegreen:\"98fb98\",paleturquoise:\"afeeee\",palevioletred:\"db7093\",papayawhip:\"ffefd5\",peachpuff:\"ffdab9\",peru:\"cd853f\",pink:\"ffc0cb\",plum:\"dda0dd\",powderblue:\"b0e0e6\",purple:\"800080\",rebe
2ccapurple:\"663399\",red:\"f00\",rosybrown:\"bc8f8f\",royalblue:\"4169e1\",saddlebrown:\"8b4513\",salmon:\"fa8072\",sandybrown:\"f4a460\",seagreen:\"2e8b57\",seashell:\"fff5ee\",sienna:\"a0522d\",silver:\"c0c0c0\",skyblue:\"87ceeb\",slateblue:\"6a5acd\",slategray:\"708090\",slategrey:\"708090\",snow:\"fffafa\",springgreen:\"00ff7f\",steelblue:\"4682b4\",tan:\"d2b48c\",teal:\"008080\",thistle:\"d8bfd8\",tomato:\"ff6347\",turquoise:\"40e0d0\",violet:\"ee82ee\",wheat:\"f5deb3\",white:\"fff\",whitesmoke:\"f5f5f5\",yellow:\"ff0\",yellowgreen:\"9acd32\"};var hexNames=tinycolor.hexNames=flip(names);function flip(o){var flipped={};for(var i in o){if(o.hasOwnProperty(i)){flipped[o[i]]=i;}}\nreturn flipped;}\nfunction boundAlpha(a){a=parseFloat(a);if(isNaN(a)||a<0||a>1){a=1;}\nreturn a;}\nfunction bound01(n,max){if(isOnePointZero(n)){n=\"100%\";}\nvar processPercent=isPercentage(n);n=mathMin(max,mathMax(0,parseFloat(n)));if(processPercent){n=parseInt(n*max,10)/ 100;}\nif((math.abs(n-max)<0.000001)){return 1;}\nreturn(n%max)/ parseFloat(max);}\nfunction clamp01(val){return mathMin(1,mathMax(0,val));}\nfunction parseIntFromHex(val){return parseInt(val,16);}\nfunction isOnePointZero(n){return typeof n==\"string\"&&n.indexOf('.')!=-1&&parseFloat(n)===1;}\nfunction isPercentage(n){return typeof n===\"string\"&&n.indexOf('%')!=-1;}\nfunction pad2(c){return c.length==1?'0'+c:''+c;}\nfunction convertToPercentage(n){if(n<=1){n=(n*100)+\"%\";}\nreturn n;}\nfunction convertDecimalToHex(d){return Math.round(parseFloat(d)*255).toString(16);}\nfunction convertHexToDecimal(h){return(parseIntFromHex(h)/ 255);}\nvar matchers=(function(){var CSS_INTEGER=\"[-\\\\+]?\\\\d+%?\";var CSS_NUMBER=\"[-\\\\+]?\\\\d*\\\\.\\\\d+%?\";var CSS_UNIT=\"(?:\"+CSS_NUMBER+\")|(?:\"+CSS_INTEGER+\")\";var PERMISSIVE_MATCH3=\"[\\\\s|\\\\(]+(\"+CSS_UNIT+\")[,|\\\\s]+(\"+CSS_UNIT+\")[,|\\\\s]+(\"+CSS_UNIT+\")\\\\s*\\\\)?\";var PERMISSIVE_MATCH4=\"[\\\\s|\\\\(]+(\"+CSS_UNIT+\")[,|\\\\s]+(\"+CSS_UNIT+\")[,|\\\\s]+(\"+CSS_UNIT+\")[,|\\\\s]+(\"+CSS_UNIT+\")\\\\s*\\\\)?\";return{rgb:new RegExp(\"rgb\"+PERMISSIVE_MATCH3),rgba:new RegExp(\"rgba\"+PERMISSIVE_MATCH4),hsl:new RegExp(\"hsl\"+PERMISSIVE_MATCH3),hsla:new RegExp(\"hsla\"+PERMISSIVE_MATCH4),hsv:new RegExp(\"hsv\"+PERMISSIVE_MATCH3),hsva:new RegExp(\"hsva\"+PERMISSIVE_MATCH4),hex3:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex8:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};})();function stringInputToObject(color){color=color.replace(trimLeft,'').replace(trimRight,'').toLowerCase();var named=false;if(names[color]){color=names[color];named=true;}\nelse if(color=='transparent'){return{r:0,g:0,b:0,a:0,format:\"name\"};}\nvar match;if((match=matchers.rgb.exec(color))){return{r:match[1],g:match[2],b:match[3]};}\nif((match=matchers.rgba.exec(color))){return{r:match[1],g:match[2],b:match[3],a:match[4]};}\nif((match=matchers.hsl.exec(color))){return{h:match[1],s:match[2],l:match[3]};}\nif((match=matchers.hsla.exec(color))){return{h:match[1],s:match[2],l:match[3],a:match[4]};}\nif((match=matchers.hsv.exec(color))){return{h:match[1],s:match[2],v:match[3]};}\nif((match=matchers.hsva.exec(color))){return{h:match[1],s:match[2],v:match[3],a:match[4]};}\nif((match=matchers.hex8.exec(color))){return{a:convertHexToDecimal(match[1]),r:parseIntFromHex(match[2]),g:parseIntFromHex(match[3]),b:parseIntFromHex(match[4]),format:named?\"name\":\"hex8\"};}\nif((match=matchers.hex6.exec(color))){return{r:parseIntFromHex(match[1]),g:parseIntFromHex(match[2]),b:parseIntFromHex(match[3]),format:named?\"name\":\"hex\"};}\nif((match=matchers.hex3.exec(color))){return{r:parseIntFromHex(match[1]+''+match[1]),g:parseIntFromHex(match[2]+''+match[2]),b:parseIntFromHex(match[3]+''+match[3]),format:named?\"name\":\"hex\"};}\nreturn false;}\nwindow.tinycolor=tinycolor;})();$(function(){if($.fn.spectrum.load){$.fn.spectrum.processNativeColorInputs();}});});","Nw_Additions/js/fx.min.js":"define(['jquery','GreenSock3','ScrollMagic','ScrollMagic.animation.gsap','ScrollMagic.debug','jquery.ScrollMagic'],function($,GreenSock3,ScrollMagic){const TimelineMax=GreenSock3.TimelineMax,TweenMax=GreenSock3.TweenMax,Power1=GreenSock3.Power1,Power2=GreenSock3.Power2,Power4=GreenSock3.Power4;class NwFx{constructor(){this.debug=false;this.breakpoints={md:768,lg:992,xl:1200,};}\ngetSharedController(){if(!this._sharedController){this._sharedController=new ScrollMagic.Controller({addIndicators:this.debug});}\nreturn this._sharedController;}
2\n_getFxProps($e,skip=null){const data=$e.data();var props={};for(let k in data){if(!String.prototype.startsWith){String.prototype.startsWith=function(searchString,position){position=position||0;return this.substr(position,searchString.length)===searchString;};}\nif(data.hasOwnProperty(k)&&k.startsWith('fx')){const prop=k.charAt(2).toLowerCase()+k.slice(3);if(!skip||!skip.indexOf(prop)>=0){props[prop]=data[k];}}}\nreturn props;}\n_getFxProp($e,propName,defaultValue=null){const value=$e.data('fx-'+propName);const bp=$e.data('fx-'+propName+'-bp');if(typeof bp!=='undefined'){const winWidth=this._getWindow().width();if(this.breakpoints[bp]&&winWidth<this.breakpoints[bp]){return defaultValue;}}\nreturn(typeof value!=='undefined')?value:defaultValue;}\n_getWindow(){return $(window);}\nrunParallax({selector='.parallaxRow',backgroundPosition='50% 20%',duration='auto',hook='onEnter'}={}){var controller=this.getSharedController();var winHeight=this._getWindow().height();$(selector).each((i,e)=>{const $e=$(e);let _duration=this._getFxProp($e,'duration',duration);let _bgPos=this._getFxProp($e,'background-position',backgroundPosition);let _hook=this._getFxProp($e,'hook',hook);if(_duration==='auto'){const h=$e.outerHeight();_duration=(winHeight+h)+'px';}\nnew ScrollMagic.Scene({triggerElement:e,triggerHook:_hook,duration:_duration}).setTween(e,{backgroundPosition:_bgPos}).addTo(controller);});}\nrunParallaxElement({selector='.parallaxElement',topPosition='25%',duration='auto',offset=0,hook='onLeave'}={}){var controller=this.getSharedController();var winHeight=this._getWindow().height();$(selector).each((i,e)=>{const $e=$(e);let eHeight=$e.outerHeight();let _duration=this._getFxProp($e,'duration',duration);let _topPos=this._getFxProp($e,'top',topPosition);let _hook=this._getFxProp($e,'hook',hook);let _offset=this._getFxProp($e,'offset',offset);_offset=(eHeight / 100)*_offset;if(_duration==='auto'){const h=$e.height();_duration=(winHeight+h)+'px';}\nnew ScrollMagic.Scene({triggerElement:e,triggerHook:_hook,duration:_duration,offset:_offset}).setTween(e,{paddingTop:_topPos}).addTo(controller);});}\nrunParallaxImg({selector='.parallax__img',topPosition='-30%',duration='auto',hook='onEnter'}={}){var controller=this.getSharedController();var winHeight=this._getWindow().height();$(selector).each((i,e)=>{const $e=$(e);let _duration=this._getFxProp($e,'duration',duration);let _topPos=this._getFxProp($e,'top',topPosition);let _hook=this._getFxProp($e,'hook',hook);if(_duration==='auto'){const h=$e.height();_duration=(winHeight+h)+'px';}\nnew ScrollMagic.Scene({triggerElement:e,triggerHook:_hook,duration:_duration}).setTween(e,{top:_topPos}).addTo(controller);});}\nrunSlideIn({selector=\".fxSlideIn\",duration=1.5,delay=0,speed=null,offset=0,hook='onEnter',callback='',tweenVars=null}={}){const controller=this.getSharedController();const tweenDefaults={opacity:0,ease:Power2.easeOut};var margedVars=$.extend(true,{},tweenDefaults,tweenVars);var winWidth=this._getWindow().width();$(selector).each((i,e)=>{const $e=$(e);const $parent=$e.parent();const direction=this._getFxProp($e,'direction','left');const ease=this._getFxProp($e,'ease','out');const orientation=(direction==='left'||direction==='right')?'h':'v';const distance=(orientation==='h')?$parent.width():$parent.height();const elementTweenVars=this._getFxProps($e,['direction','offset','hook','duration','opacity']);let _vars=$.extend(true,{},margedVars,elementTweenVars);let _duration=this._getFxProp($e,'duration',duration);let _delay=this._getFxProp($e,'delay',delay);let _hook=this._getFxProp($e,'hook',hook);let _offset=this._getFxProp($e,'offset',offset);let _callback=this._getFxProp($e,'callback',callback);switch(ease){case'out':_vars.ease=Power2.easeOut;break;case'in':_vars.ease=Power2.easeIn;break;case'inOut':_vars.ease=Power2.easeInOut;break;case'out1':_vars.ease=Power1.easeOut;break;case'in1':_vars.ease=Power1.easeIn;break;case'inOut1':_vars.ease=Power1.easeInOut;break;}\nif(speed){_duration=Math.abs(distance*speed)*0.01;}\nswitch(direction){case'left':_vars['x']=distance;break;case'right':_vars['x']=-distance;break;case'top':_vars['y']=distance;break;case'bottom':_vars['y']=-distance;break;}\nvar triggerElement=e;if(orientation==='v'){triggerElement=$parent[0];}\nvar scene=new ScrollMagic.Scene({triggerElement:triggerElement,triggerHook:_hook,offset:_offset});delete _vars.callback;delete _vars.delayBp;if(_callback==='removeParent'){function removeParent(){$e.parent().css('z-index','-1000');}\nscene.setTween(TweenMax.from(e,_duration,_vars).delay(_delay).eventCallback(\"onComplete\",removeParent)).addTo(controller);}else{scene.setTween(TweenMax.from(e,_duration,_vars).delay(_delay)).addTo(controller);}});}\nrunFadeIn({selector=\".fxFadeIn\",duration=1.5,delay=0,offset=0,hook='onEnter',tweenVars=null}={}){const controller=this.getSharedController();const tweenDefaults={opacity:0,ease:Power2.easeOut};var margedVars=$.extend(true,{},tweenDefaults,tweenVars);$(selector).each((i,e)=>{const $e=$(e);
2const elementTweenVars=this._getFxProps($e,['offset','hook','duration']);let _vars=$.extend(true,{},margedVars,elementTweenVars);let _duration=this._getFxProp($e,'duration',duration);let _delay=this._getFxProp($e,'delay',delay);let _hook=this._getFxProp($e,'hook',hook);let _offset=this._getFxProp($e,'offset',offset);var scene=new ScrollMagic.Scene({triggerElement:e,triggerHook:_hook,offset:_offset});scene.setTween(TweenMax.from(e,_duration,_vars).delay(_delay)).addTo(controller);});}\nrunPopIn({selector=\".fxPopIn\",overshoot=2.0,duration=0.5,delay=0,offset=0,hook='onEnter',tweenVars=null}={}){const controller=this.getSharedController();const tweenDefaults={scale:0,};var margedVars=$.extend(true,{},tweenDefaults,tweenVars);$(selector).each((i,e)=>{const $e=$(e);const elementTweenVars=this._getFxProps($e,['offset','hook','duration']);let _overshoot=this._getFxProp($e,'overshoot',overshoot);elementTweenVars.ease=Back.easeOut.config(_overshoot)\nlet _vars=$.extend(true,{},margedVars,elementTweenVars);let _duration=this._getFxProp($e,'duration',duration);let _delay=this._getFxProp($e,'delay',delay);let _hook=this._getFxProp($e,'hook',hook);let _offset=this._getFxProp($e,'offset',offset);var scene=new ScrollMagic.Scene({triggerElement:e,triggerHook:_hook,offset:_offset});scene.setTween(TweenMax.from(e,_duration,_vars).delay(_delay)).addTo(controller);});}\nrunCounter({selector=\".counter\",duration=2000,offset=0,hook='onEnter'}={}){const controller=this.getSharedController();$(selector).each((i,e)=>{const $e=$(e);const $counterValue=$e.find(\".counter__value\");const value=$counterValue.attr(\"data-stop\");let startValue=$counterValue.attr(\"data-start\");let decimalSeparator=$counterValue.attr(\"data-decimal-separator\");let decimalCount=$counterValue.attr(\"data-decimal-count\");if(typeof startValue==='undefined'){startValue=$e.find(\".counter__value\").text();}\nif(typeof decimalSeparator==='undefined'){decimalSeparator='.';}\nif(typeof decimalCount==='undefined'||isNaN(decimalCount)){decimalCount=0;}\nlet _duration=this._getFxProp($e,'duration',duration);let _offset=this._getFxProp($e,'offset',offset);let _hook=this._getFxProp($e,'hook',hook);const scene=new ScrollMagic.Scene({triggerElement:e,triggerHook:_hook,offset:_offset});function _cleanCountNum(countNum,last=false){if(!last){const m=Math.pow(10,decimalCount);countNum=Math.floor(countNum*m)/ m;}\ncountNum=countNum+'';if(decimalSeparator!=='.'){countNum=countNum.replace('.',decimalSeparator);}\nreturn countNum;}\nscene.on('start',function(){$({countNum:startValue}).animate({countNum:value},{duration:_duration,easing:\"linear\",step:function(){$e.find(\".counter__value\").text(_cleanCountNum(this.countNum));},complete:function(){$e.find(\".counter__value\").text(_cleanCountNum(this.countNum,true));}});});scene.addTo(controller);});}\nrunDynamicCounter({selector=\".counter\",duration=2000,offset=0,hook='onEnter'}={}){$(selector).each((i,e)=>{const $e=$(e);$e.html($e.text().split(/\\s+/g).map((w)=>'<span>'+w+'</span>').join(' '));$e.children().each((i,c)=>{const $c=$(c);const text=$c.text();const value=text.replace(',','.');if(!isNaN(value)){$c.text('0');$c.addClass('counter__value');$c.attr('data-start','0');$c.attr('data-stop',value);if(text.indexOf(',')>0){$c.attr('data-decimal-separator',',');}\nif(value.indexOf('.')>0){$c.attr('data-decimal-count',value.split('.')[1].length);}\n$e.addClass('counter');this.runCounter({selector:e,duration,offset,hook});return false;}});});}\nrunToggleClass({selector=\".fxToggleClass\",offset=0,hook='onEnter',cssClass='fxVisible',target=null,toggle=true}={}){const controller=this.getSharedController();$(selector).each((i,e)=>{const $e=$(e);const _offset=this._getFxProp($e,'offset',offset);const _hook=this._getFxProp($e,'hook',hook);const _cssClass=this._getFxProp($e,'class',cssClass);const _toggle=this._getFxProp($e,'toggle',toggle);const _target=this._getFxProp($e,'target',e);const sceneOptions={triggerElement:e,triggerHook:_hook,offset:_offset};new ScrollMagic.Scene(sceneOptions).setClassToggle(_target,_cssClass).reverse(_toggle).addTo(controller);});}
2\nrunParticlesBackground({selector=\".particles-bg\"}={}){if($(window).width<992)return;$(selector).each((i,e)=>{const containerId='particles-bg-container-'+(new Date()).getTime();$('<div/>').attr('id',containerId).addClass('particles-bg-container').appendTo(e);particlesJS(containerId,particlesConfig);});}\n_animatedScroll(target,offset,duration){const anchorTop=$(target).offset().top;const offsetValue=(typeof offset==='function')?offset.apply():offset;$('html, body').animate({scrollTop:(anchorTop-offsetValue)},duration);}\nrunAnimatedScrollToAnchor({selector=\"a.anchor-link\",offset=0,duration=750}={}){$(selector).click((e)=>{e.preventDefault();this._animatedScroll($(e.currentTarget).attr('href'),offset,duration);});}\nrunAnimatedScrollUrlHash({offset=0,duration=750}={}){if(window.location.hash){const hash=window.location.hash;this._animatedScroll(hash,offset,duration);}}\nrunImgSlideInVert({selector=\".imgSlideInVert\",containerClass=\".imgSlideInVertContainer\"}={}){const controller=this.getSharedController();$(selector).each((i,e)=>{const $e=$(e);const $img=$e.find('img').first();const $container=$e.parent(containerClass).first();const imgIsLoaded=($img.height()!==0&&$img.width()!==0);const animationHandler=()=>{const imgHeight=$img.height();const duration=Math.abs(imgHeight*.5)*0.01;$container.height(imgHeight);const tween=new TimelineMax();tween.fromTo(e,duration,{height:'0%'},{height:'100%',ease:Power4.easeOut});const scene=new ScrollMagic.Scene({triggerElement:e,triggerHook:'onEnter',offset:150});scene.setTween(tween).addTo(controller);};if(imgIsLoaded){animationHandler()}else{$img.load((event)=>{animationHandler.call(this);});}});}\nrunVideoAutoplay({selector='.autoplayVideoContainer video',hook='onEnter',offset=\"-50\"}={}){const controller=this.getSharedController();$(selector).each((i,e)=>{let autoplayOnscrollEnabled=false;try{e.pause();autoplayOnscrollEnabled=true;}catch(e){}\nconst durationCallback=()=>{let duration=$(e).outerHeight();if(isNaN(duration)){duration=200;}\nreturn duration+100;};if(autoplayOnscrollEnabled){const scene=new ScrollMagic.Scene({triggerElement:e,triggerHook:hook,offset:offset}).on(\"enter leave\",(e)=>{const videoVisible=e.type==='enter';const video=e.target.triggerElement();if(videoVisible){video.play();}else{video.pause();}}).on(\"start end\",(e)=>{}).addTo(controller);}});}}\nreturn new NwFx();});","Nw_Additions/js/proceed-to-checkout-mixin.min.js":"define(['mage/utils/wrapper','jquery','Magento_Customer/js/model/authentication-popup','Magento_Customer/js/customer-data','mage/cookies'],function(wrapper,$,authenticationPopup,customerData){'use strict';return function(proceedToCheckoutFunction){return wrapper.wrap(proceedToCheckoutFunction,function(originalProceedToCheckoutFunction,config,element){originalProceedToCheckoutFunction(config,element);$(element).click(function(){var cart=customerData.get('cart'),customer=customerData.get('customer');if(!customer().firstname&&cart().isGuestCheckoutAllowed===false){$.cookie('login_redirect',config.checkoutUrl);}});});};});","Nw_Additions/js/gsap/TweenMax.min.js":"define(['GreenSock3',],function(GreenSock3){return GreenSock3.TweenMax;});","Nw_Additions/js/gsap/gsap.min.js":"define(['GreenSock3',],function(GreenSock3){return GreenSock3.gsap;});","Nw_Additions/js/gsap/TimelineMax.min.js":"define(['GreenSock3',],function(GreenSock3){return GreenSock3.TimelineMax;});","Nw_Additions/js/init/lightgallery.min.js":"define(['jquery'],function($){const cssLinkId='nw-init-lightgallery-bundle-css';if($('#'+cssLinkId).length===0){const cssUrl=NW_ADDITIONS_CSS_HREFS['Nw_Additions/lib/lightgallery/css/lightgallery-bundle.min.css'];$(\"head link[rel='stylesheet']\").last().after($('<link/>').attr('rel','stylesheet').attr('href',cssUrl).attr('type','text/css').attr('media','screen').attr('id',cssLinkId))}})","Nw_Additions/js/init/swiper.min.js":"define(['jquery'],function($){const cssLinkId='nw-init-swiper-bundle-css';if($('#'+cssLinkId).length===0){const cssUrl=NW_ADDITIONS_CSS_HREFS['Nw_Additions/lib/swiper/swiper-bundle.min.css'];$(\"head link[rel='stylesheet']\").last().after($('<link/>').attr('rel','stylesheet').attr('href',cssUrl).attr('type','text/css').attr('media','screen').attr('id',cssLinkId))}})","Nw_Additions/lib/lightgallery/lightgallery.min.js":"/**\n * lightgallery | 2.2.1 | September 4th 2021\n * http://www.lightgalleryjs.com/\n * Copyright (c) 2020 Sachin Neravath;\n * @license GPLv3\n */\n\n!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(e):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).lightGallery=e()}(this,(function(){\"use strict\";var t=function(){return(t=Object.assign||function(t){for(var e,i=1,s=arguments.length;i<s;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)};!function(){if(\"function\"==typeof window.CustomEvent)return!1;window.CustomEvent=function(t,e){e=e||{bubbles:!1,cancelable:!1,detail:null};var i=document.createEvent(\"CustomEvent\");
2return i.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),i}}(),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e=function(){function t(t){return this.cssVenderPrefixes=[\"TransitionDuration\",\"TransitionTimingFunction\",\"Transform\",\"Transition\"],this.selector=this._getSelector(t),this.firstElement=this._getFirstEl(),this}return t.generateUUID=function(){return\"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return(\"x\"==t?e:3&e|8).toString(16)}))},t.prototype._getSelector=function(t,e){return void 0===e&&(e=document),\"string\"!=typeof t?t:(e=e||document,\"#\"===t.substring(0,1)?e.querySelector(t):e.querySelectorAll(t))},t.prototype._each=function(t){return this.selector?(void 0!==this.selector.length?[].forEach.call(this.selector,t):t(this.selector,0),this):this},t.prototype._setCssVendorPrefix=function(t,e,i){var s=e.replace(/-([a-z])/gi,(function(t,e){return e.toUpperCase()}));-1!==this.cssVenderPrefixes.indexOf(s)?(t.style[s.charAt(0).toLowerCase()+s.slice(1)]=i,t.style[\"webkit\"+s]=i,t.style[\"moz\"+s]=i,t.style[\"ms\"+s]=i,t.style[\"o\"+s]=i):t.style[s]=i},t.prototype._getFirstEl=function(){return this.selector&&void 0!==this.selector.length?this.selector[0]:this.selector},t.prototype.isEventMatched=function(t,e){var i=e.split(\".\");return t.split(\".\").filter((function(t){return t})).every((function(t){return-1!==i.indexOf(t)}))},t.prototype.attr=function(t,e){return void 0===e?this.firstElement?this.firstElement.getAttribute(t):\"\":(this._each((function(i){i.setAttribute(t,e)})),this)},t.prototype.find=function(t){return i(this._getSelector(t,this.selector))},t.prototype.first=function(){return this.selector&&void 0!==this.selector.length?i(this.selector[0]):i(this.selector)},t.prototype.eq=function(t){return i(this.selector[t])},t.prototype.parent=function(){return i(this.selector.parentElement)},t.prototype.get=function(){return this._getFirstEl()},t.prototype.removeAttr=function(t){var e=t.split(\" \");return this._each((function(t){e.forEach((function(e){return t.removeAttribute(e)}))})),this},t.prototype.wrap=function(t){if(!this.firstElement)return this;var e=document.createElement(\"div\");return e.className=t,this.firstElement.parentNode.insertBefore(e,this.firstElement),this.firstElement.parentNode.removeChild(this.firstElement),e.appendChild(this.firstElement),this},t.prototype.addClass=function(t){return void 0===t&&(t=\"\"),this._each((function(e){t.split(\" \").forEach((function(t){e.classList.add(t)}))})),this},t.prototype.removeClass=function(t){return this._each((function(e){t.split(\" \").forEach((function(t){e.classList.remove(t)}))})),this},t.prototype.hasClass=function(t){return!!this.firstElement&&this.firstElement.classList.contains(t)},t.prototype.hasAttribute=function(t){return!!this.firstElement&&this.firstElement.hasAttribute(t)},t.prototype.toggleClass=function(t){return this.firstElement?(this.hasClass(t)?this.removeClass(t):this.addClass(t),this):this},t.prototype.css=function(t,e){var i=this;return this._each((function(s){i._setCssVendorPrefix(s,t,e)})),this},t.prototype.on=function(e,i){var s=this;return this.selector?(e.split(\" \").forEach((function(e){Array.isArray(t.eventListeners[e])||(t.eventListeners[e]=[]),t.eventListeners[e].push(i),s.selector.addEventListener(e.split(\".\")[0],i)})),this):this},t.prototype.once=function(t,e){var i=this;return this.on(t,(function(){i.off(t),e(t)})),this},t.prototype.off=function(e){var i=this;return this.selector?(Object.keys(t.eventListeners).forEach((function(s){i.isEventMatched(e,s)&&(t.eventListeners[s].forEach((function(t){i.selector.removeEventListener(s.split(\".\")[0],t)})),t.eventListeners[s]=[])})),this):this},t.prototype.trigger=function(t,e){if(!this.firstElement)return this;var i=new CustomEvent(t.split(\".\")[0],{detail:e||null});return this.firstElement.dispatchEvent(i),this},t.prototype.load=function(t){var e=this;return fetch(t).then((function(t){e.selector.innerHTML=t})),this},t.prototype.html=function(t){return void 0===t?this.firstElement?this.firstElement.innerHTML:\"\":(this._each((function(e){e.innerHTML=t})),this)},t.prototype.append=function(t){return this._each((function(e){\"string\"
2==typeof t?e.insertAdjacentHTML(\"beforeend\",t):e.appendChild(t)})),this},t.prototype.prepend=function(t){return this._each((function(e){e.insertAdjacentHTML(\"afterbegin\",t)})),this},t.prototype.remove=function(){return this._each((function(t){t.parentNode.removeChild(t)})),this},t.prototype.empty=function(){return this._each((function(t){t.innerHTML=\"\"})),this},t.prototype.scrollTop=function(t){return void 0!==t?(document.body.scrollTop=t,document.documentElement.scrollTop=t,this):window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},t.prototype.scrollLeft=function(t){return void 0!==t?(document.body.scrollLeft=t,document.documentElement.scrollLeft=t,this):window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0},t.prototype.offset=function(){if(!this.firstElement)return{left:0,top:0};var t=this.firstElement.getBoundingClientRect(),e=i(\"body\").style().marginLeft;return{left:t.left-parseFloat(e)+this.scrollLeft(),top:t.top+this.scrollTop()}},t.prototype.style=function(){return this.firstElement?this.firstElement.currentStyle||window.getComputedStyle(this.firstElement):{}},t.prototype.width=function(){var t=this.style();return this.firstElement.clientWidth-parseFloat(t.paddingLeft)-parseFloat(t.paddingRight)},t.prototype.height=function(){var t=this.style();return this.firstElement.clientHeight-parseFloat(t.paddingTop)-parseFloat(t.paddingBottom)},t.eventListeners={},t}();function i(t){return new e(t)}var s=[\"src\",\"sources\",\"subHtml\",\"subHtmlUrl\",\"html\",\"video\",\"poster\",\"slideName\",\"responsive\",\"srcset\",\"sizes\",\"iframe\",\"downloadUrl\",\"download\",\"width\",\"facebookShareUrl\",\"tweetText\",\"iframeTitle\",\"twitterShareUrl\",\"pinterestShareUrl\",\"pinterestText\",\"fbHtml\",\"disqusIdentifier\",\"disqusUrl\"];function n(t){return\"href\"===t?\"src\":t=(t=(t=t.replace(\"data-\",\"\")).charAt(0).toLowerCase()+t.slice(1)).replace(/-([a-z])/g,(function(t){return t[1].toUpperCase()}))}var o=function(t,e,s,n){void 0===s&&(s=0);var o=i(t).attr(\"data-lg-size\")||n;if(o){var r=o.split(\",\");if(r[1])for(var l=window.innerWidth,a=0;a<r.length;a++){var g=r[a];if(parseInt(g.split(\"-\")[2],10)>l){o=g;break}a===r.length-1&&(o=g)}var d=o.split(\"-\"),h=parseInt(d[0],10),c=parseInt(d[1],10),u=e.width(),m=e.height()-s,p=Math.min(u,h),f=Math.min(m,c),v=Math.min(p/h,f/c);return{width:h*v,height:c*v}}},r=function(t,e,s,n,o){if(o){var r=i(t).find(\"img\").first();if(r.get()){var l=e.get().getBoundingClientRect(),a=l.width,g=e.height()-(s+n),d=r.width(),h=r.height(),c=r.style(),u=(a-d)/2-r.offset().left+(parseFloat(c.paddingLeft)||0)+(parseFloat(c.borderLeft)||0)+i(window).scrollLeft()+l.left,m=(g-h)/2-r.offset().top+(parseFloat(c.paddingTop)||0)+(parseFloat(c.borderTop)||0)+i(window).scrollTop()+s;return\"translate3d(\"+(u*=-1)+\"px, \"+(m*=-1)+\"px, 0) scale3d(\"+d/o.width+\", \"+h/o.height+\", 1)\"}}},l=function(t,e,i,s){return'<div class=\"lg-video-cont lg-has-iframe\" style=\"width:'+t+\"; height: \"+e+'\">\\n                    <iframe class=\"lg-object\" frameborder=\"0\" '+(s?'title=\"'+s+'\"':\"\")+' src=\"'+i+'\"  allowfullscreen=\"true\"></iframe>\\n                </div>'},a=function(t,e,i,s,n,o){var r=\"<img \"+i+\" \"+(s?'srcset=\"'+s+'\"':\"\")+\"  \"+(n?'sizes=\"'+n+'\"':\"\")+' class=\"lg-object lg-image\" data-index=\"'+t+'\" src=\"'+e+'\" />',l=\"\";o&&(l=(\"string\"==typeof o?JSON.parse(o):o).map((function(t){var e=\"\";return Object.keys(t).forEach((function(i){e+=\" \"+i+'=\"'+t[i]+'\"'})),\"<source \"+e+\"></source>\"})));return\"\"+l+r},g=function(t){for(var e=[],i=[],s=\"\",n=0;n<t.length;n++){var o=t[n].split(\" \");\"\"===o[0]&&o.splice(0,1),i.push(o[0]),e.push(o[1])}for(var r=window.innerWidth,l=0;l<e.length;l++)if(parseInt(e[l],10)>r){s=i[l];break}return s},d=function(t){return!!t&&(!!t.complete&&0!==t.naturalWidth)},h=function(t,e,i,s){return'<div class=\"lg-video-cont '+(s&&s.youtube?\"lg-has-youtube\":s&&s.vimeo?\"lg-has-vimeo\":\"lg-has-html5\")+'\" style=\"'+i+'\">\\n                <div class=\"lg-video-play-button\">
2\\n                <svg\\n                    viewBox=\"0 0 20 20\"\\n                    preserveAspectRatio=\"xMidYMid\"\\n                    focusable=\"false\"\\n                    aria-labelledby=\"Play video\"\\n                    role=\"img\"\\n                    class=\"lg-video-play-icon\"\\n                >\\n                    <title>Play video</title>\\n                    <polygon class=\"lg-video-play-icon-inner\" points=\"1,0 20,10 1,20\"></polygon>\\n                </svg>\\n                <svg class=\"lg-video-play-icon-bg\" viewBox=\"0 0 50 50\" focusable=\"false\">\\n                    <circle cx=\"50%\" cy=\"50%\" r=\"20\"></circle></svg>\\n                <svg class=\"lg-video-play-icon-circle\" viewBox=\"0 0 50 50\" focusable=\"false\">\\n                    <circle cx=\"50%\" cy=\"50%\" r=\"20\"></circle>\\n                </svg>\\n            </div>\\n            '+(e||\"\")+'\\n            <img class=\"lg-object lg-video-poster\" src=\"'+t+'\" />\\n        </div>'},c=function(t,e,o,r){var l=[],a=function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;var s=Array(t),n=0;for(e=0;e<i;e++)for(var o=arguments[e],r=0,l=o.length;r<l;r++,n++)s[n]=o[r];return s}(s,e);return[].forEach.call(t,(function(t){for(var e={},s=0;s<t.attributes.length;s++){var g=t.attributes[s];if(g.specified){var d=n(g.name),h=\"\";a.indexOf(d)>-1&&(h=d),h&&(e[h]=g.value)}}var c=i(t),u=c.find(\"img\").first().attr(\"alt\"),m=c.attr(\"title\"),p=r?c.attr(r):c.find(\"img\").first().attr(\"src\");e.thumb=p,o&&!e.subHtml&&(e.subHtml=m||u||\"\"),e.alt=u||m||\"\",l.push(e)})),l},u=function(){return/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)},m={mode:\"lg-slide\",easing:\"ease\",speed:400,licenseKey:\"0000-0000-000-0000\",height:\"100%\",width:\"100%\",addClass:\"\",startClass:\"lg-start-zoom\",backdropDuration:300,container:document.body,startAnimationDuration:400,zoomFromOrigin:!0,hideBarsDelay:0,showBarsAfter:1e4,slideDelay:0,supportLegacyBrowser:!0,allowMediaOverlap:!1,videoMaxSize:\"1280-720\",defaultCaptionHeight:0,ariaLabelledby:\"\",ariaDescribedby:\"\",closable:!0,swipeToClose:!0,closeOnTap:!0,showCloseIcon:!0,showMaximizeIcon:!1,loop:!0,escKey:!0,keyPress:!0,controls:!0,slideEndAnimation:!0,hideControlOnEnd:!1,mousewheel:!1,getCaptionFromTitleOrAlt:!0,appendSubHtmlTo:\".lg-sub-html\",subHtmlSelectorRelative:!1,preload:2,numberOfSlideItemsInDom:10,showAfterLoad:!0,selector:\"\",selectWithin:\"\",nextHtml:\"\",prevHtml:\"\",index:0,iframeWidth:\"100%\",iframeHeight:\"100%\",download:!0,counter:!0,appendCounterTo:\".lg-toolbar\",swipeThreshold:50,enableSwipe:!0,enableDrag:!0,dynamic:!1,dynamicEl:[],extraProps:[],exThumbImage:\"\",isMobile:void 0,mobileSettings:{controls:!1,showCloseIcon:!1,download:!1},plugins:[]},p=\"lgAfterAppendSlide\",f=\"lgInit\",v=\"lgHasVideo\",y=\"lgContainerResize\",b=\"lgUpdateSlides\",C=\"lgAfterAppendSubHtml\",I=\"lgBeforeOpen\",w=\"lgAfterOpen\",x=\"lgSlideItemLoad\",S=\"lgBeforeSlide\",T=\"lgAfterSlide\",E=\"lgPosterClick\",O=\"lgDragStart\",L=\"lgDragMove\",D=\"lgDragEnd\",z=\"lgBeforeNextSlide\",G=\"lgBeforePrevSlide\",M=\"lgBeforeClose\",k=\"lgAfterClose\",A=0,B=function(){function s(t,e){if(this.lgOpened=!1,this.index=0,this.plugins=[],this.lGalleryOn=!1,this.lgBusy=!1,this.currentItemsInDom=[],this.prevScrollTop=0,this.isDummyImageRemoved=!1,this.dragOrSwipeEnabled=!1,this.mediaContainerPosition={top:0,bottom:0},!t)return this;if(A++,this.lgId=A,this.el=t,this.LGel=i(t),this.generateSettings(e),this.buildModules(),this.settings.dynamic&&void 0!==this.settings.dynamicEl&&!Array.isArray(this.settings.dynamicEl))throw\"When using dynamic mode, you must also define dynamicEl as an Array.\";return this.galleryItems=this.getItems(),this.normalizeSettings(),this.init(),this.validateLicense(),this}return s.prototype.generateSettings=function(e){if(this.settings=t(t({},m),e),this.settings.isMobile&&\"function\"==typeof this.settings.isMobile?this.settings.isMobile():u()){var i=t(t({},this.settings.mobileSettings),this.settings.mobileSettings);this.settings=t(t({},this.settings),i)}},s.prototype.normalizeSettings=function(){this.settings.slideEndAnimation&&(this.settings.hideControlOnEnd=!1),this.settings.closable||(this.settings.swipeToClose
vendor: 6,127 bytes, line 2
2=!1),this.zoomFromOrigin=this.settings.zoomFromOrigin,this.settings.dynamic&&(this.zoomFromOrigin=!1),this.settings.container||(this.settings.container=document.body),this.settings.preload=Math.min(this.settings.preload,this.galleryItems.length)},s.prototype.init=function(){var t=this;this.addSlideVideoInfo(this.galleryItems),this.buildStructure(),this.LGel.trigger(f,{instance:this}),this.settings.keyPress&&this.keyPress(),setTimeout((function(){t.enableDrag(),t.enableSwipe(),t.triggerPosterClick()}),50),this.arrow(),this.settings.mousewheel&&this.mousewheel(),this.settings.dynamic||this.openGalleryOnItemClick()},s.prototype.openGalleryOnItemClick=function(){for(var t=this,s=function(s){var o=n.items[s],r=i(o),l=e.generateUUID();r.attr(\"data-lg-id\",l).on(\"click.lgcustom-item-\"+l,(function(e){e.preventDefault();var i=t.settings.index||s;t.openGallery(i,o)}))},n=this,o=0;o<this.items.length;o++)s(o)},s.prototype.buildModules=function(){var t=this;this.settings.plugins.forEach((function(e){t.plugins.push(new e(t,i))}))},s.prototype.validateLicense=function(){this.settings.licenseKey?\"0000-0000-000-0000\"===this.settings.licenseKey&&console.warn(\"lightGallery: \"+this.settings.licenseKey+\" license key is not valid for production use\"):console.error(\"Please provide a valid license key\")},s.prototype.getSlideItem=function(t){return i(this.getSlideItemId(t))},s.prototype.getSlideItemId=function(t){return\"#lg-item-\"+this.lgId+\"-\"+t},s.prototype.getIdName=function(t){return t+\"-\"+this.lgId},s.prototype.getElementById=function(t){return i(\"#\"+this.getIdName(t))},s.prototype.manageSingleSlideClassName=function(){this.galleryItems.length<2?this.outer.addClass(\"lg-single-item\"):this.outer.removeClass(\"lg-single-item\")},s.prototype.buildStructure=function(){var t=this;if(!(this.$container&&this.$container.get())){var e=\"\",s=\"\";this.settings.controls&&(e='<button type=\"button\" id=\"'+this.getIdName(\"lg-prev\")+'\" aria-label=\"Previous slide\" class=\"lg-prev lg-icon\"> '+this.settings.prevHtml+' </button>\\n                <button type=\"button\" id=\"'+this.getIdName(\"lg-next\")+'\" aria-label=\"Next slide\" class=\"lg-next lg-icon\"> '+this.settings.nextHtml+\" </button>\"),\".lg-item\"!==this.settings.appendSubHtmlTo&&(s='<div class=\"lg-sub-html\" role=\"status\" aria-live=\"polite\"></div>');var n=\"\";this.settings.allowMediaOverlap&&(n+=\"lg-media-overlap \");var o=this.settings.ariaLabelledby?'aria-labelledby=\"'+this.settings.ariaLabelledby+'\"':\"\",r=this.settings.ariaDescribedby?'aria-describedby=\"'+this.settings.ariaDescribedby+'\"':\"\",l=\"lg-container \"+this.settings.addClass+\" \"+(document.body!==this.settings.container?\"lg-inline\":\"\"),a=this.settings.closable&&this.settings.showCloseIcon?'<button type=\"button\" aria-label=\"Close gallery\" id=\"'+this.getIdName(\"lg-close\")+'\" class=\"lg-close lg-icon\"></button>':\"\",g=this.settings.showMaximizeIcon?'<button type=\"button\" aria-label=\"Toggle maximize\" id=\"'+this.getIdName(\"lg-maximize\")+'\" class=\"lg-maximize lg-icon\"></button>':\"\",d='\\n        <div class=\"'+l+'\" id=\"'+this.getIdName(\"lg-container\")+'\" tabindex=\"-1\" aria-modal=\"true\" '+o+\" \"+r+' role=\"dialog\"\\n        >\\n            <div id=\"'+this.getIdName(\"lg-backdrop\")+'\" class=\"lg-backdrop\"></div>\\n\\n            <div id=\"'+this.getIdName(\"lg-outer\")+'\" class=\"lg-outer lg-use-css3 lg-css3 lg-hide-items '+n+' \">\\n\\n              <div id=\"'+this.getIdName(\"lg-content\")+'\" class=\"lg-content\">\\n                <div id=\"'+this.getIdName(\"lg-inner\")+'\" class=\"lg-inner\">\\n                </div>\\n                '+e+'\\n              </div>\\n                <div id=\"'+this.getIdName(\"lg-toolbar\")+'\" class=\"lg-toolbar lg-group\">\\n                    '+g+\"\\n                    \"+a+\"\\n                    </div>\\n                    \"+(\".lg-outer\"===this.settings.appendSubHtmlTo?s:\"\")+'\\n                <div id=\"'+this.getIdName(\"lg-components\")+'\" class=\"lg-components\">\\n                    '+(\".lg-sub-html\"===this.settings.appendSubHtmlTo?s:\"\")+\"\\n                </div>\\n            </div>\\n        </div>\\n        \";i(this.settings.container).css(\"position\",\"relative\").append(d),this.outer=this.getElementById(\"lg-outer\"),this.$lgComponents=this.getElementById(\"lg-components\"),this.$backdrop=this.getElementById(\"lg-backdrop\"),this.$container=this.getElementById(\"lg-container\"),this.$inner=this.getElementById(\"lg-inner\"),this.$content=this.getElementById(\"lg-content\"),this.$toolbar=this.getElementById(\"lg-toolbar\"),this.$backdrop.css(\"transition-duration\",this.settings.backdropDuration+\"ms\");var h=this.settings.mode+\" \";this.manageSingleSlideClassName(),this.settings.enableDrag&&(h+=\"lg-grab \"),this.settings.showAfterLoad&&(h+=\"lg-show-after-load\"),this.outer.addClass(h),this.$inner.css(\"transition-timing-function\",this.settings.easing),this.$inner.css(\"transition-duration\",this.settings.speed+\"ms\"),this.settings.download&&this.$toolbar.append('<a id=\"'+this.getIdName(\"lg-download\")+'\" target=\"_blank\" rel=\"noopener\" aria-label=\"Download\" download class=\"lg-download lg-icon\"></a>'),this.counter(),i(window).on(\"resize.lg.global\"+this.lgId+\" orientationchange.lg.global\"+this.lgId,(function(){t.refreshOnResize()})),this.hideBars(),this.manageCloseGallery(),this.toggleMaximize(),this.initModules()}},s.prototype.refreshOnResize=function(){if(this.lgOpened){var t=this.galleryItems[this.index].__slideVideoInfo;this.mediaContainerPosition=this.getMediaContainerPosition();var e=this.mediaContainerPosition,i=e.top,s=e.bottom;if(this.currentImageSize=o(this.items[this.index],this.outer,i+s,t&&this.settings.videoMaxSize),t&&this.resizeVideoSlide(this.index,this.currentImageSize),this.zoomFromOrigin&&!this.isDummyImageRemoved){var n=this.getDummyImgStyles(this.currentImageSize);this.outer.find(\".lg-current .lg-dummy-img\").first().attr(\"style\",n)}this.LGel.trigger(y)}},s.prototype.resizeVideoSlide=function(t,e){var i=this.getVideoContStyle(e);
2this.getSlideItem(t).find(\".lg-video-cont\").attr(\"style\",i)},s.prototype.updateSlides=function(t,e){if(this.index>t.length-1&&(this.index=t.length-1),1===t.length&&(this.index=0),t.length){var i=this.galleryItems[e].src;this.galleryItems=t,this.updateControls(),this.$inner.empty(),this.currentItemsInDom=[];var s=0;this.galleryItems.some((function(t,e){return t.src===i&&(s=e,!0)})),this.currentItemsInDom=this.organizeSlideItems(s,-1),this.loadContent(s,!0),this.getSlideItem(s).addClass(\"lg-current\"),this.index=s,this.updateCurrentCounter(s),this.LGel.trigger(b)}else this.closeGallery()},s.prototype.getItems=function(){if(this.items=[],this.settings.dynamic)return this.settings.dynamicEl||[];if(\"this\"===this.settings.selector)this.items.push(this.el);else if(this.settings.selector)if(\"string\"==typeof this.settings.selector)if(this.settings.selectWithin){var t=i(this.settings.selectWithin);this.items=t.find(this.settings.selector).get()}else this.items=this.el.querySelectorAll(this.settings.selector);else this.items=this.settings.selector;else this.items=this.el.children;return c(this.items,this.settings.extraProps,this.settings.getCaptionFromTitleOrAlt,this.settings.exThumbImage)},s.prototype.openGallery=function(t,e){var s=this;if(void 0===t&&(t=this.settings.index),!this.lgOpened){this.lgOpened=!0,this.outer.get().focus(),this.outer.removeClass(\"lg-hide-items\"),this.$container.addClass(\"lg-show\");var n=this.getItemsToBeInsertedToDom(t,t);this.currentItemsInDom=n;var l=\"\";n.forEach((function(t){l=l+'<div id=\"'+t+'\" class=\"lg-item\"></div>'})),this.$inner.append(l),this.addHtml(t);var a=\"\";this.mediaContainerPosition=this.getMediaContainerPosition();var g=this.mediaContainerPosition,d=g.top,h=g.bottom;this.settings.allowMediaOverlap||this.setMediaContainerPosition(d,h),this.zoomFromOrigin&&e&&(this.currentImageSize=o(e,this.outer,d+h,this.galleryItems[t].__slideVideoInfo&&this.settings.videoMaxSize),a=r(e,this.outer,d,h,this.currentImageSize)),this.zoomFromOrigin&&a||(this.outer.addClass(this.settings.startClass),this.getSlideItem(t).removeClass(\"lg-complete\"));var c=this.settings.zoomFromOrigin?100:this.settings.backdropDuration;setTimeout((function(){s.outer.addClass(\"lg-components-open\")}),c),this.index=t,this.LGel.trigger(I),this.getSlideItem(t).addClass(\"lg-current\"),this.lGalleryOn=!1,this.prevScrollTop=i(window).scrollTop(),setTimeout((function(){if(s.zoomFromOrigin&&a){var e=s.getSlideItem(t);e.css(\"transform\",a),setTimeout((function(){e.addClass(\"lg-start-progress lg-start-end-progress\").css(\"transition-duration\",s.settings.startAnimationDuration+\"ms\"),s.outer.addClass(\"lg-zoom-from-image\")})),setTimeout((function(){e.css(\"transform\",\"translate3d(0, 0, 0)\")}),100)}setTimeout((function(){s.$backdrop.addClass(\"in\"),s.$container.addClass(\"lg-show-in\")}),10),s.zoomFromOrigin&&a||setTimeout((function(){s.outer.addClass(\"lg-visible\")}),s.settings.backdropDuration),s.slide(t,!1,!1,!1),s.LGel.trigger(w)})),document.body===this.settings.container&&i(\"html\").addClass(\"lg-on\")}},s.prototype.getMediaContainerPosition=function(){if(this.settings.allowMediaOverlap)return{top:0,bottom:0};var t=this.$toolbar.get().clientHeight||0,e=this.outer.find(\".lg-components .lg-sub-html\").get(),i=this.settings.defaultCaptionHeight||e&&e.clientHeight||0,s=this.outer.find(\".lg-thumb-outer\").get();return{top:t,bottom:(s?s.clientHeight:0)+i}},s.prototype.setMediaContainerPosition=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.$content.css(\"top\",t+\"px\").css(\"bottom\",e+\"px\")},s.prototype.hideBars=function(){var t=this;setTimeout((function(){t.outer.removeClass(\"lg-hide-items\"),t.settings.hideBarsDelay>0&&(t.outer.on(\"mousemove.lg click.lg touchstart.lg\",(function(){t.outer.removeClass(\"lg-hide-items\"),clearTimeout(t.hideBarTimeout),t.hideBarTimeout=setTimeout((function(){t.outer.addClass(\"lg-hide-items\")}),t.settings.hideBarsDelay)})),t.outer.trigger(\"mousemove.lg\"))}),this.settings.showBarsAfter)},s.prototype.initPictureFill=function(t){if(this.settings.supportLegacyBrowser)try{picturefill({elements:[t.get()]})}catch(t){console.warn(\"lightGallery :- If you want srcset or picture tag to be supported for older browser please include picturefil javascript library in your document.\")}},s.prototype.counter=function(){if(this.settings.counter){var t='<div class=\"lg-counter\" role=\"status\" aria-live=\"polite\">
2\\n                <span id=\"'+this.getIdName(\"lg-counter-current\")+'\" class=\"lg-counter-current\">'+(this.index+1)+' </span> /\\n                <span id=\"'+this.getIdName(\"lg-counter-all\")+'\" class=\"lg-counter-all\">'+this.galleryItems.length+\" </span></div>\";this.outer.find(this.settings.appendCounterTo).append(t)}},s.prototype.addHtml=function(t){var e,s;if(this.galleryItems[t].subHtmlUrl?s=this.galleryItems[t].subHtmlUrl:e=this.galleryItems[t].subHtml,!s)if(e){var n=e.substring(0,1);\".\"!==n&&\"#\"!==n||(e=this.settings.subHtmlSelectorRelative&&!this.settings.dynamic?i(this.items).eq(t).find(e).first().html():i(e).first().html())}else e=\"\";if(\".lg-item\"!==this.settings.appendSubHtmlTo)s?this.outer.find(\".lg-sub-html\").load(s):this.outer.find(\".lg-sub-html\").html(e);else{var o=i(this.getSlideItemId(t));s?o.load(s):o.append('<div class=\"lg-sub-html\">'+e+\"</div>\")}null!=e&&(\"\"===e?this.outer.find(this.settings.appendSubHtmlTo).addClass(\"lg-empty-html\"):this.outer.find(this.settings.appendSubHtmlTo).removeClass(\"lg-empty-html\")),this.LGel.trigger(C,{index:t})},s.prototype.preload=function(t){for(var e=1;e<=this.settings.preload&&!(e>=this.galleryItems.length-t);e++)this.loadContent(t+e,!1);for(var i=1;i<=this.settings.preload&&!(t-i<0);i++)this.loadContent(t-i,!1)},s.prototype.getDummyImgStyles=function(t){return t?\"width:\"+t.width+\"px;\\n                margin-left: -\"+t.width/2+\"px;\\n                margin-top: -\"+t.height/2+\"px;\\n                height:\"+t.height+\"px\":\"\"},s.prototype.getVideoContStyle=function(t){return t?\"width:\"+t.width+\"px;\\n                height:\"+t.height+\"px\":\"\"},s.prototype.getDummyImageContent=function(t,e,s){var n;if(this.settings.dynamic||(n=i(this.items).eq(e)),n){var o=void 0;if(!(o=this.settings.exThumbImage?n.attr(this.settings.exThumbImage):n.find(\"img\").first().attr(\"src\")))return\"\";var r=\"<img \"+s+' style=\"'+this.getDummyImgStyles(this.currentImageSize)+'\" class=\"lg-dummy-img\" src=\"'+o+'\" />';return t.addClass(\"lg-first-slide\"),this.outer.addClass(\"lg-first-slide-loading\"),r}return\"\"},s.prototype.setImgMarkup=function(t,e,i){var s=this.galleryItems[i],n=s.alt,o=s.srcset,r=s.sizes,l=s.sources,g=n?'alt=\"'+n+'\"':\"\",d='<picture class=\"lg-img-wrap\"> '+(!this.lGalleryOn&&this.zoomFromOrigin&&this.currentImageSize?this.getDummyImageContent(e,i,g):a(i,t,g,o,r,l))+\"</picture>\";e.prepend(d)},s.prototype.onLgObjectLoad=function(t,e,i,s,n){var o=this;n&&this.LGel.trigger(x,{index:e,delay:i||0}),t.find(\".lg-object\").first().on(\"load.lg\",(function(){o.handleLgObjectLoad(t,e,i,s,n)})),setTimeout((function(){t.find(\".lg-object\").first().on(\"error.lg\",(function(){t.addClass(\"lg-complete lg-complete_\"),t.html('<span class=\"lg-error-msg\">Oops... Failed to load content...</span>')}))}),s)},s.prototype.handleLgObjectLoad=function(t,e,i,s,n){var o=this;setTimeout((function(){t.addClass(\"lg-complete lg-complete_\"),n||o.LGel.trigger(x,{index:e,delay:i||0})}),s)},s.prototype.isVideo=function(t,e){if(!t)return this.galleryItems[e].video?{html5:!0}:void console.error(\"lightGallery :- data-src is not provided on slide item \"+(e+1)+\". Please make sure the selector property is properly configured. More info - https://www.lightgalleryjs.com/demos/html-markup/\");var i=t.match(/\\/\\/(?:www\\.)?youtu(?:\\.be|be\\.com|be-nocookie\\.com)\\/(?:watch\\?v=|embed\\/)?([a-z0-9\\-\\_\\%]+)/i),s=t.match(/\\/\\/(?:www\\.)?(?:player\\.)?vimeo.com\\/(?:video\\/)?([0-9a-z\\-_]+)/i),n=t.match(/https?:\\/\\/(.+)?(wistia\\.com|wi\\.st)\\/(medias|embed)\\/([0-9a-z\\-_]+)(.*)/);return i?{youtube:i}:s?{vimeo:s}:n?{wistia:n}:void 0},s.prototype.addSlideVideoInfo=function(t){var e=this;t.forEach((function(t,i){t.__slideVideoInfo=e.isVideo(t.src,i)}))},s.prototype.loadContent=function(t,e){var s=this,n=this.galleryItems[t],r=i(this.getSlideItemId(t)),c=n.poster,u=n.srcset,m=n.sizes,f=n.sources,y=n.src,b=n.video,C=b&&\"string\"==typeof b?JSON.parse(b):b;if(n.responsive){var I=n.responsive.split(\",\");y=g(I)||y}var w=n.__slideVideoInfo,x=\"\",S=!!n.iframe;if(!r.hasClass(\"lg-loaded\")){if(w){var T=this.mediaContainerPosition,E=T.top,O=T.bottom,L=o(this.items[t],this.outer,E+O,w&&this.settings.videoMaxSize);x=this.getVideoContStyle(L)}if(S){var D=l(this.settings.iframeWidth,this.settings.iframeHeight,y,n.iframeTitle);r.prepend(D)}else if(c){var z=\"\",G=!this.lGalleryOn,M=!this.lGalleryOn&&this.zoomFromOrigin&&this.currentImageSize;M&&(z=this.getDummyImageContent(r,t,\"\"));D=h(c,z||\"\",x,w);r.prepend(D);var k=(M?this.settings.startAnimationDuration:this.settings.backdropDuration)+100;setTimeout((function(){s.LGel.trigger(v,{index:t,src:y,html5Video:C,hasPoster:!0,isFirstSlide:G})}),k)}else if(w){D='<div class=\"lg-video-cont \" style=\"'+x+'\"></div>';r.prepend(D),this.LGel.trigger(v,{index:t,src:y,html5Video:C,hasPoster:!1})}else if(this.setImgMarkup(y,r,t),u||f){var A=r.find(\".lg-object\");this.initPictureFill(A)}this.LGel.trigger(p,{index:t}),this.lGalleryOn&&\".lg-item\"===this.settings.appendSubHtmlTo&&this.addHtml(t)}var B=0,P=0;this.lGalleryOn||(P=this.zoomFromOrigin&&this.currentImageSize?this.settings.startAnimationDuration+10:this.settings.backdropDuration+10),P&&!i(document.body).hasClass(\"lg-from-hash\")&&(B=P),!this.lGalleryOn&&this.zoomFromOrigin&&this.currentImageSize&&(setTimeout((function(){r.removeClass(\"lg-start-end-progress lg-start-progress\").removeAttr(\"style\")}),this.settings.startAnimationDuration+100),r.hasClass(\"lg-loaded\")||setTimeout((function(){if(r.find(\".lg-img-wrap\").append(a(t,y,\"\",u,m,n.sources)),u||f){var e=r.find(\".lg-object\");s.initPictureFill(e)}s.onLgObjectLoad(r,t,P,B,!0);var i=r.find(\".lg-object\").first();d(i.get())?s.loadContentOnLoad(t,r,B):i.on(\"load.lg error.lg\",(function(){s.loadContentOnLoad(t,r,B)}))}),this.settings.startAnimationDuration+100)),r.addClass(\"lg-loaded\"),this.onLgObjectLoad(r,t,P,B,!1),w&&w.html5&&!c&&r.addClass(\"lg-complete lg-complete_\"),this.zoomFromOrigin&&this.currentImageSize||!r.hasClass(\"lg-complete_\")||this.lGalleryOn||setTimeout((function(){r.addClass(\"lg-complete\")}),this.settings.backdropDuration),this.lGalleryOn=!0,!0===e&&(r.hasClass(\"lg-complete_\")?this.preload(t):r.find(\".lg-object\").first().on(\"load.lg error.lg\",(function(){s.preload(t)})))}
2,s.prototype.loadContentOnLoad=function(t,e,i){var s=this;setTimeout((function(){e.find(\".lg-dummy-img\").remove(),e.removeClass(\"lg-first-slide\"),s.outer.removeClass(\"lg-first-slide-loading\"),s.isDummyImageRemoved=!0,s.preload(t)}),i+300)},s.prototype.getItemsToBeInsertedToDom=function(t,e,i){var s=this;void 0===i&&(i=0);var n=[],o=Math.max(i,3);o=Math.min(o,this.galleryItems.length);var r=\"lg-item-\"+this.lgId+\"-\"+e;if(this.galleryItems.length<=3)return this.galleryItems.forEach((function(t,e){n.push(\"lg-item-\"+s.lgId+\"-\"+e)})),n;if(t<(this.galleryItems.length-1)/2){for(var l=t;l>t-o/2&&l>=0;l--)n.push(\"lg-item-\"+this.lgId+\"-\"+l);var a=n.length;for(l=0;l<o-a;l++)n.push(\"lg-item-\"+this.lgId+\"-\"+(t+l+1))}else{for(l=t;l<=this.galleryItems.length-1&&l<t+o/2;l++)n.push(\"lg-item-\"+this.lgId+\"-\"+l);for(a=n.length,l=0;l<o-a;l++)n.push(\"lg-item-\"+this.lgId+\"-\"+(t-l-1))}return this.settings.loop&&(t===this.galleryItems.length-1?n.push(\"lg-item-\"+this.lgId+\"-0\"):0===t&&n.push(\"lg-item-\"+this.lgId+\"-\"+(this.galleryItems.length-1))),-1===n.indexOf(r)&&n.push(\"lg-item-\"+this.lgId+\"-\"+e),n},s.prototype.organizeSlideItems=function(t,e){var s=this,n=this.getItemsToBeInsertedToDom(t,e,this.settings.numberOfSlideItemsInDom);return n.forEach((function(t){-1===s.currentItemsInDom.indexOf(t)&&s.$inner.append('<div id=\"'+t+'\" class=\"lg-item\"></div>')})),this.currentItemsInDom.forEach((function(t){-1===n.indexOf(t)&&i(\"#\"+t).remove()})),n},s.prototype.getPreviousSlideIndex=function(){var t=0;try{var e=this.outer.find(\".lg-current\").first().attr(\"id\");t=parseInt(e.split(\"-\")[3])||0}catch(e){t=0}return t},s.prototype.setDownloadValue=function(t){if(this.settings.download){var e=this.galleryItems[t];if(!1===e.downloadUrl||\"false\"===e.downloadUrl)this.outer.addClass(\"lg-hide-download\");else{var i=this.getElementById(\"lg-download\");this.outer.removeClass(\"lg-hide-download\"),i.attr(\"href\",e.downloadUrl||e.src),e.download&&i.attr(\"download\",e.download)}}},s.prototype.makeSlideAnimation=function(t,e,i){var s=this;this.lGalleryOn&&i.addClass(\"lg-slide-progress\"),setTimeout((function(){s.outer.addClass(\"lg-no-trans\"),s.outer.find(\".lg-item\").removeClass(\"lg-prev-slide lg-next-slide\"),\"prev\"===t?(e.addClass(\"lg-prev-slide\"),i.addClass(\"lg-next-slide\")):(e.addClass(\"lg-next-slide\"),i.addClass(\"lg-prev-slide\")),setTimeout((function(){s.outer.find(\".lg-item\").removeClass(\"lg-current\"),e.addClass(\"lg-current\"),s.outer.removeClass(\"lg-no-trans\")}),50)}),this.lGalleryOn?this.settings.slideDelay:0)},s.prototype.slide=function(t,e,i,s){var n=this,r=this.getPreviousSlideIndex();if(this.currentItemsInDom=this.organizeSlideItems(t,r),!this.lGalleryOn||r!==t){var l=this.galleryItems.length;if(!this.lgBusy){this.settings.counter&&this.updateCurrentCounter(t);var a=this.getSlideItem(t),g=this.getSlideItem(r),d=this.galleryItems[t],h=d.__slideVideoInfo;if(this.outer.attr(\"data-lg-slide-type\",this.getSlideType(d)),this.setDownloadValue(t),h){var c=this.mediaContainerPosition,u=c.top,m=c.bottom,p=o(this.items[t],this.outer,u+m,h&&this.settings.videoMaxSize);this.resizeVideoSlide(t,p)}if(this.LGel.trigger(S,{prevIndex:r,index:t,fromTouch:!!e,fromThumb:!!i}),this.lgBusy=!0,clearTimeout(this.hideBarTimeout),this.arrowDisable(t),s||(t<r?s=\"prev\":t>r&&(s=\"next\")),e){this.outer.find(\".lg-item\").removeClass(\"lg-prev-slide lg-current lg-next-slide\");var f=void 0,v=void 0;l>2?(f=t-1,v=t+1,(0===t&&r===l-1||t===l-1&&0===r)&&(v=0,f=l-1)):(f=0,v=1),\"prev\"===s?this.getSlideItem(v).addClass(\"lg-next-slide\"):this.getSlideItem(f).addClass(\"lg-prev-slide\"),a.addClass(\"lg-current\")}else this.makeSlideAnimation(s,a,g);this.lGalleryOn||this.loadContent(t,!0),setTimeout((function(){n.lGalleryOn&&n.loadContent(t,!0),\".lg-item\"!==n.settings.appendSubHtmlTo&&n.addHtml(t)}),(this.lGalleryOn?this.settings.speed+50:50)+(e?0:this.settings.slideDelay)),setTimeout((function(){n.lgBusy=!1,g.removeClass(\"lg-slide-progress\"),n.LGel.trigger(T,{prevIndex:r,index:t,fromTouch:e,fromThumb:i})}),(this.lGalleryOn?this.settings.speed+100:100)+(e?0:this.settings.slideDelay))}this.index=t}},s.prototype.updateCurrentCounter=function(t){this.getElementById(\"lg-counter-current\").html(t+1+\"\")},s.prototype.updateCounterTotal=function(){this.getElementById(\"lg-counter-all\").html(this.galleryItems.length+\"\")},s.prototype.getSlideType=function(t){return t.__slideVideoInfo?\"video\":t.iframe?\"iframe\":\"image\"}
2,s.prototype.touchMove=function(t,e,i){var s=e.pageX-t.pageX,n=e.pageY-t.pageY,o=!1;if(this.swipeDirection?o=!0:Math.abs(s)>15?(this.swipeDirection=\"horizontal\",o=!0):Math.abs(n)>15&&(this.swipeDirection=\"vertical\",o=!0),o){var r=this.getSlideItem(this.index);if(\"horizontal\"===this.swipeDirection){null==i||i.preventDefault(),this.outer.addClass(\"lg-dragging\"),this.setTranslate(r,s,0);var l=r.get().offsetWidth,a=15*l/100-Math.abs(10*s/100);this.setTranslate(this.outer.find(\".lg-prev-slide\").first(),-l+s-a,0),this.setTranslate(this.outer.find(\".lg-next-slide\").first(),l+s+a,0)}else if(\"vertical\"===this.swipeDirection&&this.settings.swipeToClose){null==i||i.preventDefault(),this.$container.addClass(\"lg-dragging-vertical\");var g=1-Math.abs(n)/window.innerHeight;this.$backdrop.css(\"opacity\",g);var d=1-Math.abs(n)/(2*window.innerWidth);this.setTranslate(r,0,n,d,d),Math.abs(n)>100&&this.outer.addClass(\"lg-hide-items\").removeClass(\"lg-components-open\")}}},s.prototype.touchEnd=function(t,e,s){var n,o=this;\"lg-slide\"!==this.settings.mode&&this.outer.addClass(\"lg-slide\"),setTimeout((function(){o.$container.removeClass(\"lg-dragging-vertical\"),o.outer.removeClass(\"lg-dragging lg-hide-items\").addClass(\"lg-components-open\");var r=!0;if(\"horizontal\"===o.swipeDirection){n=t.pageX-e.pageX;var l=Math.abs(t.pageX-e.pageX);n<0&&l>o.settings.swipeThreshold?(o.goToNextSlide(!0),r=!1):n>0&&l>o.settings.swipeThreshold&&(o.goToPrevSlide(!0),r=!1)}else if(\"vertical\"===o.swipeDirection){if(n=Math.abs(t.pageY-e.pageY),o.settings.closable&&o.settings.swipeToClose&&n>100)return void o.closeGallery();o.$backdrop.css(\"opacity\",1)}if(o.outer.find(\".lg-item\").removeAttr(\"style\"),r&&Math.abs(t.pageX-e.pageX)<5){var a=i(s.target);o.isPosterElement(a)&&o.LGel.trigger(E)}o.swipeDirection=void 0})),setTimeout((function(){o.outer.hasClass(\"lg-dragging\")||\"lg-slide\"===o.settings.mode||o.outer.removeClass(\"lg-slide\")}),this.settings.speed+100)},s.prototype.enableSwipe=function(){var t=this,e={},s={},n=!1,o=!1;this.settings.enableSwipe&&(this.$inner.on(\"touchstart.lg\",(function(s){t.dragOrSwipeEnabled=!0;var n=t.getSlideItem(t.index);!i(s.target).hasClass(\"lg-item\")&&!n.get().contains(s.target)||t.outer.hasClass(\"lg-zoomed\")||t.lgBusy||
21!==s.targetTouches.length||(o=!0,t.touchAction=\"swipe\",t.manageSwipeClass(),e={pageX:s.targetTouches[0].pageX,pageY:s.targetTouches[0].pageY})})),this.$inner.on(\"touchmove.lg\",(function(i){o&&\"swipe\"===t.touchAction&&1===i.targetTouches.length&&(s={pageX:i.targetTouches[0].pageX,pageY:i.targetTouches[0].pageY},t.touchMove(e,s,i),n=!0)})),this.$inner.on(\"touchend.lg\",(function(r){if(\"swipe\"===t.touchAction){if(n)n=!1,t.touchEnd(s,e,r);else if(o){var l=i(r.target);t.isPosterElement(l)&&t.LGel.trigger(E)}t.touchAction=void 0,o=!1}})))},s.prototype.enableDrag=function(){var t=this,e={},s={},n=!1,o=!1;this.settings.enableDrag&&(this.outer.on(\"mousedown.lg\",(function(s){t.dragOrSwipeEnabled=!0;var o=t.getSlideItem(t.index);(i(s.target).hasClass(\"lg-item\")||o.get().contains(s.target))&&(t.outer.hasClass(\"lg-zoomed\")||t.lgBusy||(s.preventDefault(),t.lgBusy||(t.manageSwipeClass(),e={pageX:s.pageX,pageY:s.pageY},n=!0,t.outer.get().scrollLeft+=1,t.outer.get().scrollLeft-=1,t.outer.removeClass(\"lg-grab\").addClass(\"lg-grabbing\"),t.LGel.trigger(O))))})),i(window).on(\"mousemove.lg.global\"+this.lgId,(function(i){n&&t.lgOpened&&(o=!0,s={pageX:i.pageX,pageY:i.pageY},t.touchMove(e,s),t.LGel.trigger(L))})),i(window).on(\"mouseup.lg.global\"+this.lgId,(function(r){if(t.lgOpened){var l=i(r.target);o?(o=!1,t.touchEnd(s,e,r),t.LGel.trigger(D)):t.isPosterElement(l)&&t.LGel.trigger(E),n&&(n=!1,t.outer.removeClass(\"lg-grabbing\").addClass(\"lg-grab\"))}})))},s.prototype.triggerPosterClick=function(){var t=this;this.$inner.on(\"click.lg\",(function(e){!t.dragOrSwipeEnabled&&t.isPosterElement(i(e.target))&&t.LGel.trigger(E)}))},s.prototype.manageSwipeClass=function(){var t=this.index+1,e=this.index-1;this.settings.loop&&this.galleryItems.length>2&&(0===this.index?e=this.galleryItems.length-1:this.index===this.galleryItems.length-1&&(t=0)),this.outer.find(\".lg-item\").removeClass(\"lg-next-slide lg-prev-slide\"),e>-1&&this.getSlideItem(e).addClass(\"lg-prev-slide\"),this.getSlideItem(t).addClass(\"lg-next-slide\")},s.prototype.goToNextSlide=function(t){var e=this,i=this.settings.loop;t&&this.galleryItems.length<3&&(i=!1),this.lgBusy||(this.index+1<this.galleryItems.length?(this.index++,this.LGel.trigger(z,{index:this.index}),this.slide(this.index,!!t,!1,\"next\")):i?(this.index=0,this.LGel.trigger(z,{index:this.index}),this.slide(this.index,!!t,!1,\"next\")):this.settings.slideEndAnimation&&!t&&(this.outer.addClass(\"lg-right-end\"),setTimeout((function(){e.outer.removeClass(\"lg-right-end\")}),400)))},s.prototype.goToPrevSlide=function(t){var e=this,i=this.settings.loop;t&&this.galleryItems.length<3&&(i=!1),this.lgBusy||(this.index>0?(this.index--,this.LGel.trigger(G,{index:this.index,fromTouch:t}),this.slide(this.index,!!t,!1,\"prev\")):i?(this.index=this.galleryItems.length-1,this.LGel.trigger(G,{index:this.index,fromTouch:t}),this.slide(this.index,!!t,!1,\"prev\")):this.settings.slideEndAnimation&&!t&&(this.outer.addClass(\"lg-left-end\"),setTimeout((function(){e.outer.removeClass(\"lg-left-end\")}),400)))},s.prototype.keyPress=function(){var t=this;i(window).on(\"keydown.lg.global\"+this.lgId,(function(e){t.lgOpened&&!0===t.settings.escKey&&27===e.keyCode&&(e.preventDefault(),t.settings.allowMediaOverlap&&t.outer.hasClass(\"lg-can-toggle\")&&t.outer.hasClass(\"lg-components-open\")?t.outer.removeClass(\"lg-components-open\"):t.closeGallery()),t.lgOpened&&t.galleryItems.length>1&&(37===e.keyCode&&(e.preventDefault(),t.goToPrevSlide()),39===e.keyCode&&(e.preventDefault(),t.goToNextSlide()))}))},s.prototype.arrow=function(){var t=this;this.getElementById(\"lg-prev\").on(\"click.lg\",(function(){t.goToPrevSlide()})),this.getElementById(\"lg-next\").on(\"click.lg\",(function(){t.goToNextSlide()}))},s.prototype.arrowDisable=function(t){if(!this.settings.loop&&this.settings.hideControlOnEnd){var e=this.getElementById(\"lg-prev\"),i=this.getElementById(\"lg-next\");t+1===this.galleryItems.length?i.attr(\"disabled\",\"disabled\").addClass(\"disabled\"):i.removeAttr(\"disabled\").removeClass(\"disabled\"),0===t?e.attr(\"disabled\",\"disabled\").addClass(\"disabled\"):e.removeAttr(\"disabled\").removeClass(\"disabled\")}}
2,s.prototype.setTranslate=function(t,e,i,s,n){void 0===s&&(s=1),void 0===n&&(n=1),t.css(\"transform\",\"translate3d(\"+e+\"px, \"+i+\"px, 0px) scale3d(\"+s+\", \"+n+\", 1)\")},s.prototype.mousewheel=function(){var t=this;this.outer.on(\"mousewheel.lg\",(function(e){!e.deltaY||t.galleryItems.length<2||(e.deltaY>0?t.goToPrevSlide():t.goToNextSlide(),e.preventDefault())}))},s.prototype.isSlideElement=function(t){return t.hasClass(\"lg-outer\")||t.hasClass(\"lg-item\")||t.hasClass(\"lg-img-wrap\")},s.prototype.isPosterElement=function(t){var e=this.getSlideItem(this.index).find(\".lg-video-play-button\").get();return t.hasClass(\"lg-video-poster\")||t.hasClass(\"lg-video-play-button\")||e&&e.contains(t.get())},s.prototype.toggleMaximize=function(){var t=this;this.getElementById(\"lg-maximize\").on(\"click.lg\",(function(){t.$container.toggleClass(\"lg-inline\"),t.refreshOnResize()}))},s.prototype.invalidateItems=function(){for(var t=0;t<this.items.length;t++){var e=i(this.items[t]);e.off(\"click.lgcustom-item-\"+e.attr(\"data-lg-id\"))}},s.prototype.manageCloseGallery=function(){var t=this;if(this.settings.closable){var e=!1;this.getElementById(\"lg-close\").on(\"click.lg\",(function(){t.closeGallery()})),this.settings.closeOnTap&&(this.outer.on(\"mousedown.lg\",(function(s){var n=i(s.target);e=!!t.isSlideElement(n)})),this.outer.on(\"mousemove.lg\",(function(){e=!1})),this.outer.on(\"mouseup.lg\",(function(s){var n=i(s.target);t.isSlideElement(n)&&e&&(t.outer.hasClass(\"lg-dragging\")||t.closeGallery())})))}},s.prototype.closeGallery=function(t){var e=this;if(!this.lgOpened||!this.settings.closable&&!t)return 0;this.LGel.trigger(M),i(window).scrollTop(this.prevScrollTop);var s,n=this.items[this.index];if(this.zoomFromOrigin&&n){var l=this.mediaContainerPosition,a=l.top,g=l.bottom,d=o(n,this.outer,a+g,this.galleryItems[this.index].__slideVideoInfo&&this.settings.videoMaxSize);s=r(n,this.outer,a,g,d)}this.zoomFromOrigin&&s?(this.outer.addClass(\"lg-closing lg-zoom-from-image\"),this.getSlideItem(this.index).addClass(\"lg-start-end-progress\").css(\"transition-duration\",this.settings.startAnimationDuration+\"ms\").css(\"transform\",s)):(this.outer.addClass(\"lg-hide-items\"),this.outer.removeClass(\"lg-zoom-from-image\")),this.destroyModules(),this.lGalleryOn=!1,this.isDummyImageRemoved=!1,this.zoomFromOrigin=this.settings.zoomFromOrigin,clearTimeout(this.hideBarTimeout),this.hideBarTimeout=!1,i(\"html\").removeClass(\"lg-on\"),this.outer.removeClass(\"lg-visible lg-components-open\"),this.$backdrop.removeClass(\"in\").css(\"opacity\",0);var h=this.zoomFromOrigin&&s?Math.max(this.settings.startAnimationDuration,this.settings.backdropDuration):this.settings.backdropDuration;return this.$container.removeClass(\"lg-show-in\"),setTimeout((function(){e.zoomFromOrigin&&s&&e.outer.removeClass(\"lg-zoom-from-image\"),e.$container.removeClass(\"lg-show\"),e.$backdrop.removeAttr(\"style\").css(\"transition-duration\",e.settings.backdropDuration+\"ms\"),e.outer.removeClass(\"lg-closing \"+e.settings.startClass),e.getSlideItem(e.index).removeClass(\"lg-start-end-progress\"),e.$inner.empty(),e.lgOpened&&e.LGel.trigger(k,{instance:e}),e.outer.get()&&e.outer.get().blur(),e.lgOpened=!1}),h+100),h+100},s.prototype.initModules=function(){this.plugins.forEach((function(t){try{t.init()}catch(t){console.warn(\"lightGallery:- make sure lightGallery module is properly initiated\")}}))},s.prototype.destroyModules=function(t){this.plugins.forEach((function(e){try{t?e.destroy():e.closeGallery&&e.closeGallery()}catch(t){console.warn(\"lightGallery:- make sure lightGallery module is properly destroyed\")}}))},s.prototype.refresh=function(t){this.settings.dynamic||this.invalidateItems(),this.galleryItems=t||this.getItems(),this.updateControls(),this.openGalleryOnItemClick(),this.LGel.trigger(b)},s.prototype.updateControls=function(){this.addSlideVideoInfo(this.galleryItems),this.updateCounterTotal(),this.manageSingleSlideClassName()},s.prototype.destroy=function(){var t=this,e=this.closeGallery(!0);return setTimeout((function(){t.destroyModules(!0),t.settings.dynamic||t.invalidateItems(),i(window).off(\".lg.global\"+t.lgId),t.LGel.off(\".lg\"),t.$container.remove()}),e),e},s}();return function(t,e){return new B(t,e)}}));\n","Nw_Additions/lib/lightgallery/lightgallery.es5.min.js":"/*!\n * lightgallery | 2.2.1 | September 4th 2021\n * http://www.lightgalleryjs.com/\n * Copyright (c) 2020 Sachin Neravath;\n * @license GPLv3\n */\n\n/*! *****************************************************************************\nCopyright (c) Microsoft Corporation.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AN
2D THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n***************************************************************************** */\nvar __assign=function(){__assign=Object.assign||function __assign(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p];}\nreturn t;};return __assign.apply(this,arguments);};function __spreadArrays(){for(var s=0,i=0,il=arguments.length;i<il;i++)s+=arguments[i].length;for(var r=Array(s),k=0,i=0;i<il;i++)\nfor(var a=arguments[i],j=0,jl=a.length;j<jl;j++,k++)\nr[k]=a[j];return r;}\n(function(){if(typeof window.CustomEvent==='function')\nreturn false;function CustomEvent(event,params){params=params||{bubbles:false,cancelable:false,detail:null};var evt=document.createEvent('CustomEvent');evt.initCustomEvent(event,params.bubbles,params.cancelable,params.detail);return evt;}\nwindow.CustomEvent=CustomEvent;})();(function(){if(!Element.prototype.matches){Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;}})();var lgQuery=(function(){function lgQuery(selector){this.cssVenderPrefixes=['TransitionDuration','TransitionTimingFunction','Transform','Transition',];this.selector=this._getSelector(selector);this.firstElement=this._getFirstEl();return this;}\nlgQuery.generateUUID=function(){return'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g,function(c){var r=(Math.random()*16)|0,v=c=='x'?r:(r&0x3)|0x8;return v.toString(16);});};lgQuery.prototype._getSelector=function(selector,context){if(context===void 0){context=document;}\nif(typeof selector!=='string'){return selector;}\ncontext=context||document;var fl=selector.substring(0,1);if(fl==='#'){return context.querySelector(selector);}\nelse{return context.querySelectorAll(selector);}};lgQuery.prototype._each=function(func){if(!this.selector){return this;}\nif(this.selector.length!==undefined){[].forEach.call(this.selector,func);}\nelse{func(this.selector,0);}\nreturn this;};lgQuery.prototype._setCssVendorPrefix=function(el,cssProperty,value){var property=cssProperty.replace(/-([a-z])/gi,function(s,group1){return group1.toUpperCase();});if(this.cssVenderPrefixes.indexOf(property)!==-1){el.style[property.charAt(0).toLowerCase()+property.slice(1)]=value;el.style['webkit'+property]=value;el.style['moz'+property]=value;el.style['ms'+property]=value;el.style['o'+property]=value;}\nelse{el.style[property]=value;}};lgQuery.prototype._getFirstEl=function(){if(this.selector&&this.selector.length!==undefined){return this.selector[0];}\nelse{return this.selector;}};lgQuery.prototype.isEventMatched=function(event,eventName){var eventNamespace=eventName.split('.');return event.split('.').filter(function(e){return e;}).every(function(e){return eventNamespace.indexOf(e)!==-1;});};lgQuery.prototype.attr=function(attr,value){if(value===undefined){if(!this.firstElement){return'';}\nreturn this.firstElement.getAttribute(attr);}\nthis._each(function(el){el.setAttribute(attr,value);});return this;};lgQuery.prototype.find=function(selector){return $LG(this._getSelector(selector,this.selector));};lgQuery.prototype.first=function(){if(this.selector&&this.selector.length!==undefined){return $LG(this.selector[0]);}\nelse{return $LG(this.selector);}};lgQuery.prototype.eq=function(index){return $LG(this.selector[index]);};lgQuery.prototype.parent=function(){return $LG(this.selector.parentElement);};lgQuery.prototype.get=function(){return this._getFirstEl();};lgQuery.prototype.removeAttr=function(attributes){var attrs=attributes.split(' ');this._each(function(el){attrs.forEach(function(attr){return el.removeAttribute(attr);});});return this;};lgQuery.prototype.wrap=function(className){if(!this.firstElement){return this;}\nvar wrapper=document.createElement('div');wrapper.className=className;this.firstElement.parentNode.insertBefore(wrapper,this.firstElement);this.firstElement.parentNode.removeChild(this.firstElement);wrapper.appendChild(this.firstElement);return this;};
2lgQuery.prototype.addClass=function(classNames){if(classNames===void 0){classNames='';}\nthis._each(function(el){classNames.split(' ').forEach(function(className){el.classList.add(className);});});return this;};lgQuery.prototype.removeClass=function(classNames){this._each(function(el){classNames.split(' ').forEach(function(className){el.classList.remove(className);});});return this;};lgQuery.prototype.hasClass=function(className){if(!this.firstElement){return false;}\nreturn this.firstElement.classList.contains(className);};lgQuery.prototype.hasAttribute=function(attribute){if(!this.firstElement){return false;}\nreturn this.firstElement.hasAttribute(attribute);};lgQuery.prototype.toggleClass=function(className){if(!this.firstElement){return this;}\nif(this.hasClass(className)){this.removeClass(className);}\nelse{this.addClass(className);}\nreturn this;};lgQuery.prototype.css=function(property,value){var _this=this;this._each(function(el){_this._setCssVendorPrefix(el,property,value);});return this;};lgQuery.prototype.on=function(events,listener){var _this=this;if(!this.selector){return this;}\nevents.split(' ').forEach(function(event){if(!Array.isArray(lgQuery.eventListeners[event])){lgQuery.eventListeners[event]=[];}\nlgQuery.eventListeners[event].push(listener);_this.selector.addEventListener(event.split('.')[0],listener);});return this;};lgQuery.prototype.once=function(event,listener){var _this=this;this.on(event,function(){_this.off(event);listener(event);});return this;};lgQuery.prototype.off=function(event){var _this=this;if(!this.selector){return this;}\nObject.keys(lgQuery.eventListeners).forEach(function(eventName){if(_this.isEventMatched(event,eventName)){lgQuery.eventListeners[eventName].forEach(function(listener){_this.selector.removeEventListener(eventName.split('.')[0],listener);});lgQuery.eventListeners[eventName]=[];}});return this;};lgQuery.prototype.trigger=function(event,detail){if(!this.firstElement){return this;}\nvar customEvent=new CustomEvent(event.split('.')[0],{detail:detail||null,});this.firstElement.dispatchEvent(customEvent);return this;};lgQuery.prototype.load=function(url){var _this=this;fetch(url).then(function(res){_this.selector.innerHTML=res;});return this;};lgQuery.prototype.html=function(html){if(html===undefined){if(!this.firstElement){return'';}\nreturn this.firstElement.innerHTML;}\nthis._each(function(el){el.innerHTML=html;});return this;};lgQuery.prototype.append=function(html){this._each(function(el){if(typeof html==='string'){el.insertAdjacentHTML('beforeend',html);}\nelse{el.appendChild(html);}});return this;};lgQuery.prototype.prepend=function(html){this._each(function(el){el.insertAdjacentHTML('afterbegin',html);});return this;};lgQuery.prototype.remove=function(){this._each(function(el){el.parentNode.removeChild(el);});return this;};lgQuery.prototype.empty=function(){this._each(function(el){el.innerHTML='';});return this;};lgQuery.prototype.scrollTop=function(scrollTop){if(scrollTop!==undefined){document.body.scrollTop=scrollTop;document.documentElement.scrollTop=scrollTop;return this;}\nelse{return(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0);}};lgQuery.prototype.scrollLeft=function(scrollLeft){if(scrollLeft!==undefined){document.body.scrollLeft=scrollLeft;document.documentElement.scrollLeft=scrollLeft;return this;}\nelse{return(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0);}};lgQuery.prototype.offset=function(){if(!this.firstElement){return{left:0,top:0,};}\nvar rect=this.firstElement.getBoundingClientRect();var bodyMarginLeft=$LG('body').style().marginLeft;return{left:rect.left-parseFloat(bodyMarginLeft)+this.scrollLeft(),top:rect.top+this.scrollTop(),};};lgQuery.prototype.style=function(){if(!this.firstElement){return{};}\nreturn(this.firstElement.currentStyle||window.getComputedStyle(this.firstElement));};lgQuery.prototype.width=function(){var style=this.style();return(this.firstElement.clientWidth-\nparseFloat(style.paddingLeft)-\nparseFloat(style.paddingRight));};lgQuery.prototype.height=function(){var style=this.style();return(this.firstElement.clientHeight-\nparseFloat(style.paddingTop)-\nparseFloat(style.paddingBottom));};lgQuery.eventListeners={};return lgQuery;}());function $LG(selector){return new lgQuery(selector);}\nvar defaultDynamicOptions=['src','sources','subHtml','subHtmlUrl','html','video','poster','slideName','responsive','srcset','sizes','iframe','downloadUrl','download','width','facebookShareUrl','tweetText','iframeTitle','twitterShareUrl','pinterestShareUrl','pinterestText','fbHtml','disqusIdentifier','disqusUrl',];function convertToData(attr){if(attr==='href'){return'src';}\nattr=attr.replace('data-','');attr=attr.charAt(0).toLowerCase()+attr.slice(1);attr=attr.replace(/-([a-z])/g,function(g){return g[1].toUpperCase();});return attr;}\nvar utils={getSize:function(el,container,spacing,defaultLgSize){if(spacing===void 0){spacing=0;}\nvar LGel=$LG(el);var lgSize=LGel.attr('data-lg-size')||defaultLgSize;if(!lgSize){return;}\nvar isResponsiveSizes=lgSize.split(',');if(isResponsiveSizes[1]){var wWidth=window.innerWidth;for(var i=0;i<isResponsiveSizes.length;i++){var size_1=isResponsiveSizes[i];var responsiveWidth=parseInt(size_1.split('-')[2],10);if(responsiveWidth>wWidth){lgSize=size_1;break;}\nif(i===isResponsiveSizes.length-1){lgSize=size_1;}}
2}\nvar size=lgSize.split('-');var width=parseInt(size[0],10);var height=parseInt(size[1],10);var cWidth=container.width();var cHeight=container.height()-spacing;var maxWidth=Math.min(cWidth,width);var maxHeight=Math.min(cHeight,height);var ratio=Math.min(maxWidth / width,maxHeight / height);return{width:width*ratio,height:height*ratio};},getTransform:function(el,container,top,bottom,imageSize){if(!imageSize){return;}\nvar LGel=$LG(el).find('img').first();if(!LGel.get()){return;}\nvar containerRect=container.get().getBoundingClientRect();var wWidth=containerRect.width;var wHeight=container.height()-(top+bottom);var elWidth=LGel.width();var elHeight=LGel.height();var elStyle=LGel.style();var x=(wWidth-elWidth)/ 2-\nLGel.offset().left+\n(parseFloat(elStyle.paddingLeft)||0)+\n(parseFloat(elStyle.borderLeft)||0)+\n$LG(window).scrollLeft()+\ncontainerRect.left;var y=(wHeight-elHeight)/ 2-\nLGel.offset().top+\n(parseFloat(elStyle.paddingTop)||0)+\n(parseFloat(elStyle.borderTop)||0)+\n$LG(window).scrollTop()+\ntop;var scX=elWidth / imageSize.width;var scY=elHeight / imageSize.height;var transform='translate3d('+\n(x*=-1)+'px, '+\n(y*=-1)+'px, 0) scale3d('+\nscX+', '+\nscY+', 1)';return transform;},getIframeMarkup:function(iframeWidth,iframeHeight,src,iframeTitle){var title=iframeTitle?'title=\"'+iframeTitle+'\"':'';return\"<div class=\\\"lg-video-cont lg-has-iframe\\\" style=\\\"width:\"+iframeWidth+\"; height: \"+iframeHeight+\"\\\">\\n                    <iframe class=\\\"lg-object\\\" frameborder=\\\"0\\\" \"+title+\" src=\\\"\"+src+\"\\\"  allowfullscreen=\\\"true\\\"></iframe>\\n                </div>\";},getImgMarkup:function(index,src,altAttr,srcset,sizes,sources){var srcsetAttr=srcset?\"srcset=\\\"\"+srcset+\"\\\"\":'';var sizesAttr=sizes?\"sizes=\\\"\"+sizes+\"\\\"\":'';var imgMarkup=\"<img \"+altAttr+\" \"+srcsetAttr+\"  \"+sizesAttr+\" class=\\\"lg-object lg-image\\\" data-index=\\\"\"+index+\"\\\" src=\\\"\"+src+\"\\\" />\";var sourceTag='';if(sources){var sourceObj=typeof sources==='string'?JSON.parse(sources):sources;sourceTag=sourceObj.map(function(source){var attrs='';Object.keys(source).forEach(function(key){attrs+=\" \"+key+\"=\\\"\"+source[key]+\"\\\"\";});return\"<source \"+attrs+\"></source>\";});}\nreturn\"\"+sourceTag+imgMarkup;},getResponsiveSrc:function(srcItms){var rsWidth=[];var rsSrc=[];var src='';for(var i=0;i<srcItms.length;i++){var _src=srcItms[i].split(' ');if(_src[0]===''){_src.splice(0,1);}\nrsSrc.push(_src[0]);rsWidth.push(_src[1]);}\nvar wWidth=window.innerWidth;for(var j=0;j<rsWidth.length;j++){if(parseInt(rsWidth[j],10)>wWidth){src=rsSrc[j];break;}}\nreturn src;},isImageLoaded:function(img){if(!img)\nreturn false;if(!img.complete){return false;}\nif(img.naturalWidth===0){return false;}\nreturn true;},getVideoPosterMarkup:function(_poster,dummyImg,videoContStyle,_isVideo){var videoClass='';if(_isVideo&&_isVideo.youtube){videoClass='lg-has-youtube';}\nelse if(_isVideo&&_isVideo.vimeo){videoClass='lg-has-vimeo';}\nelse{videoClass='lg-has-html5';}\nreturn\"<div class=\\\"lg-video-cont \"+videoClass+\"\\\" style=\\\"\"+videoContStyle+\"\\\">\\n                <div class=\\\"lg-video-play-button\\\">
2\\n                <svg\\n                    viewBox=\\\"0 0 20 20\\\"\\n                    preserveAspectRatio=\\\"xMidYMid\\\"\\n                    focusable=\\\"false\\\"\\n                    aria-labelledby=\\\"Play video\\\"\\n                    role=\\\"img\\\"\\n                    class=\\\"lg-video-play-icon\\\"\\n                >\\n                    <title>Play video</title>\\n                    <polygon class=\\\"lg-video-play-icon-inner\\\" points=\\\"1,0 20,10 1,20\\\"></polygon>\\n                </svg>\\n                <svg class=\\\"lg-video-play-icon-bg\\\" viewBox=\\\"0 0 50 50\\\" focusable=\\\"false\\\">\\n                    <circle cx=\\\"50%\\\" cy=\\\"50%\\\" r=\\\"20\\\"></circle></svg>\\n                <svg class=\\\"lg-video-play-icon-circle\\\" viewBox=\\\"0 0 50 50\\\" focusable=\\\"false\\\">\\n                    <circle cx=\\\"50%\\\" cy=\\\"50%\\\" r=\\\"20\\\"></circle>\\n                </svg>\\n            </div>\\n            \"+(dummyImg||'')+\"\\n            <img class=\\\"lg-object lg-video-poster\\\" src=\\\"\"+_poster+\"\\\" />\\n        </div>\";},getDynamicOptions:function(items,extraProps,getCaptionFromTitleOrAlt,exThumbImage){var dynamicElements=[];var availableDynamicOptions=__spreadArrays(defaultDynamicOptions,extraProps);[].forEach.call(items,function(item){var dynamicEl={};for(var i=0;i<item.attributes.length;i++){var attr=item.attributes[i];if(attr.specified){var dynamicAttr=convertToData(attr.name);var label='';if(availableDynamicOptions.indexOf(dynamicAttr)>-1){label=dynamicAttr;}\nif(label){dynamicEl[label]=attr.value;}}}\nvar currentItem=$LG(item);var alt=currentItem.find('img').first().attr('alt');var title=currentItem.attr('title');var thumb=exThumbImage?currentItem.attr(exThumbImage):currentItem.find('img').first().attr('src');dynamicEl.thumb=thumb;if(getCaptionFromTitleOrAlt&&!dynamicEl.subHtml){dynamicEl.subHtml=title||alt||'';}\ndynamicEl.alt=alt||title||'';dynamicElements.push(dynamicEl);});return dynamicElements;},isMobile:function(){return /iPhone|iPad|iPod|Android/i.test(navigator.userAgent);},};var lightGalleryCoreSettings={mode:'lg-slide',easing:'ease',speed:400,licenseKey:'0000-0000-000-0000',height:'100%',width:'100%',addClass:'',startClass:'lg-start-zoom',backdropDuration:300,container:document.body,startAnimationDuration:400,zoomFromOrigin:true,hideBarsDelay:0,showBarsAfter:10000,slideDelay:0,supportLegacyBrowser:true,allowMediaOverlap:false,videoMaxSize:'1280-720',defaultCaptionHeight:0,ariaLabelledby:'',ariaDescribedby:'',closable:true,swipeToClose:true,closeOnTap:true,showCloseIcon:true,showMaximizeIcon:false,loop:true,escKey:true,keyPress:true,controls:true,slideEndAnimation:true,hideControlOnEnd:false,mousewheel:false,getCaptionFromTitleOrAlt:true,appendSubHtmlTo:'.lg-sub-html',subHtmlSelectorRelative:false,preload:2,numberOfSlideItemsInDom:10,showAfterLoad:true,selector:'',selectWithin:'',nextHtml:'',prevHtml:'',index:0,iframeWidth:'100%',iframeHeight:'100%',download:true,counter:true,appendCounterTo:'.lg-toolbar',swipeThreshold:50,enableSwipe:true,enableDrag:true,dynamic:false,dynamicEl:[],extraProps:[],exThumbImage:'',isMobile:undefined,mobileSettings:{controls:false,showCloseIcon:false,download:false,},plugins:[],};var lGEvents={afterAppendSlide:'lgAfterAppendSlide',init:'lgInit',hasVideo:'lgHasVideo',containerResize:'lgContainerResize',updateSlides:'lgUpdateSlides',afterAppendSubHtml:'lgAfterAppendSubHtml',beforeOpen:'lgBeforeOpen',afterOpen:'lgAfterOpen',slideItemLoad:'lgSlideItemLoad',beforeSlide:'lgBeforeSlide',afterSlide:'lgAfterSlide',posterClick:'lgPosterClick',dragStart:'lgDragStart',dragMove:'lgDragMove',dragEnd:'lgDragEnd',beforeNextSlide:'lgBeforeNextSlide',beforePrevSlide:'lgBeforePrevSlide',beforeClose:'lgBeforeClose',afterClose:'lgAfterClose',rotateLeft:'lgRotateLeft',rotateRight:'lgRotateRight',flipHorizontal:'lgFlipHorizontal',flipVertical:'lgFlipVertical',};var lgId=0;var LightGallery=(function(){function LightGallery(element,options){this.lgOpened=false;this.index=0;this.plugins=[];this.lGalleryOn=false;this.lgBusy=false;this.currentItemsInDom=[];this.prevScrollTop=0;this.isDummyImageRemoved=false;this.dragOrSwipeEnabled=false;this.mediaContainerPosition={top:0,bottom:0,};if(!element){return this;}\nlgId++;this.lgId=lgId;this.el=element;this.LGel=$LG(element);this.generateSettings(options);this.buildModules();if(this.settings.dynamic&&this.settings.dynamicEl!==undefined&&!Array.isArray(this.settings.dynamicEl)){throw'When using dynamic mode, you must also define dynamicEl as an Array.';}\nthis.galleryItems=this.getItems();this.normalizeSettings();this.init();this.validateLicense();return this;}\nLightGallery.prototype.generateSettings=function(options){this.settings=__assign(__assign({},lightGalleryCoreSettings),options);if(this.settings.isMobile&&typeof this.settings.isMobile==='function'?this.settings.isMobile():utils.isMobile()){var mobileSettings=__assign(__assign({},this.settings.mobileSettings),this.settings.mobileSettings);this.settings=__assign(__assign({},this.settings),mobileSettings);}};LightGallery.prototype.normalizeSettings=function(){if(this.settings.slideEndAnimation){this.settings.hideControlOnEnd=false;}
2\nif(!this.settings.closable){this.settings.swipeToClose=false;}\nthis.zoomFromOrigin=this.settings.zoomFromOrigin;if(this.settings.dynamic){this.zoomFromOrigin=false;}\nif(!this.settings.container){this.settings.container=document.body;}\nthis.settings.preload=Math.min(this.settings.preload,this.galleryItems.length);};LightGallery.prototype.init=function(){var _this=this;this.addSlideVideoInfo(this.galleryItems);this.buildStructure();this.LGel.trigger(lGEvents.init,{instance:this,});if(this.settings.keyPress){this.keyPress();}\nsetTimeout(function(){_this.enableDrag();_this.enableSwipe();_this.triggerPosterClick();},50);this.arrow();if(this.settings.mousewheel){this.mousewheel();}\nif(!this.settings.dynamic){this.openGalleryOnItemClick();}};LightGallery.prototype.openGalleryOnItemClick=function(){var _this=this;var _loop_1=function(index){var element=this_1.items[index];var $element=$LG(element);var uuid=lgQuery.generateUUID();$element.attr('data-lg-id',uuid).on(\"click.lgcustom-item-\"+uuid,function(e){e.preventDefault();var currentItemIndex=_this.settings.index||index;_this.openGallery(currentItemIndex,element);});};var this_1=this;for(var index=0;index<this.items.length;index++){_loop_1(index);}};LightGallery.prototype.buildModules=function(){var _this=this;this.settings.plugins.forEach(function(plugin){_this.plugins.push(new plugin(_this,$LG));});};LightGallery.prototype.validateLicense=function(){if(!this.settings.licenseKey){console.error('Please provide a valid license key');}\nelse if(this.settings.licenseKey==='0000-0000-000-0000'){console.warn(\"lightGallery: \"+this.settings.licenseKey+\" license key is not valid for production use\");}};LightGallery.prototype.getSlideItem=function(index){return $LG(this.getSlideItemId(index));};LightGallery.prototype.getSlideItemId=function(index){return\"#lg-item-\"+this.lgId+\"-\"+index;};LightGallery.prototype.getIdName=function(id){return id+\"-\"+this.lgId;};LightGallery.prototype.getElementById=function(id){return $LG(\"#\"+this.getIdName(id));};LightGallery.prototype.manageSingleSlideClassName=function(){if(this.galleryItems.length<2){this.outer.addClass('lg-single-item');}\nelse{this.outer.removeClass('lg-single-item');}};LightGallery.prototype.buildStructure=function(){var _this=this;var container=this.$container&&this.$container.get();if(container){return;}\nvar controls='';var subHtmlCont='';if(this.settings.controls){controls=\"<button type=\\\"button\\\" id=\\\"\"+this.getIdName('lg-prev')+\"\\\" aria-label=\\\"Previous slide\\\" class=\\\"lg-prev lg-icon\\\"> \"+this.settings.prevHtml+\" </button>\\n                <button type=\\\"button\\\" id=\\\"\"+this.getIdName('lg-next')+\"\\\" aria-label=\\\"Next slide\\\" class=\\\"lg-next lg-icon\\\"> \"+this.settings.nextHtml+\" </button>\";}\nif(this.settings.appendSubHtmlTo!=='.lg-item'){subHtmlCont='<div class=\"lg-sub-html\" role=\"status\" aria-live=\"polite\"></div>';}\nvar addClasses='';if(this.settings.allowMediaOverlap){addClasses+='lg-media-overlap ';}\nvar ariaLabelledby=this.settings.ariaLabelledby?'aria-labelledby=\"'+this.settings.ariaLabelledby+'\"':'';var ariaDescribedby=this.settings.ariaDescribedby?'aria-describedby=\"'+this.settings.ariaDescribedby+'\"':'';var containerClassName=\"lg-container \"+this.settings.addClass+\" \"+(document.body!==this.settings.container?'lg-inline':'');var closeIcon=this.settings.closable&&this.settings.showCloseIcon?\"<button type=\\\"button\\\" aria-label=\\\"Close gallery\\\" id=\\\"\"+this.getIdName('lg-close')+\"\\\" class=\\\"lg-close lg-icon\\\"></button>\":'';var maximizeIcon=this.settings.showMaximizeIcon?\"<button type=\\\"button\\\" aria-label=\\\"Toggle maximize\\\" id=\\\"\"+this.getIdName('lg-maximize')+\"\\\" class=\\\"lg-maximize lg-icon\\\"></button>\":'';var template=\"\\n        <div class=\\\"\"+containerClassName+\"\\\" id=\\\"\"+this.getIdName('lg-container')+\"\\\" tabindex=\\\"-1\\\" aria-modal=\\\"true\\\" \"+ariaLabelledby+\" \"+ariaDescribedby+\" role=\\\"dialog\\\"\\n        >\\n            <div id=\\\"\"+this.getIdName('lg-backdrop')+\"\\\" class=\\\"lg-backdrop\\\"></div>\\n\\n            <div id=\\\"\"+this.getIdName('lg-outer')+\"\\\" class=\\\"lg-outer lg-use-css3 lg-css3 lg-hide-items \"+addClasses+\" \\\">\\n\\n              <div id=\\\"\"+this.getIdName('lg-content')+\"\\\" class=\\\"lg-content\\\">\\n                <div id=\\\"\"+this.getIdName('lg-inner')+\"\\\" class=\\\"lg-inner\\\">\\n                </div>
2\\n                \"+controls+\"\\n              </div>\\n                <div id=\\\"\"+this.getIdName('lg-toolbar')+\"\\\" class=\\\"lg-toolbar lg-group\\\">\\n                    \"+maximizeIcon+\"\\n                    \"+closeIcon+\"\\n                    </div>\\n                    \"+(this.settings.appendSubHtmlTo==='.lg-outer'?subHtmlCont:'')+\"\\n                <div id=\\\"\"+this.getIdName('lg-components')+\"\\\" class=\\\"lg-components\\\">\\n                    \"+(this.settings.appendSubHtmlTo==='.lg-sub-html'?subHtmlCont:'')+\"\\n                </div>\\n            </div>\\n        </div>\\n        \";$LG(this.settings.container).css('position','relative').append(template);this.outer=this.getElementById('lg-outer');this.$lgComponents=this.getElementById('lg-components');this.$backdrop=this.getElementById('lg-backdrop');this.$container=this.getElementById('lg-container');this.$inner=this.getElementById('lg-inner');this.$content=this.getElementById('lg-content');this.$toolbar=this.getElementById('lg-toolbar');this.$backdrop.css('transition-duration',this.settings.backdropDuration+'ms');var outerClassNames=this.settings.mode+\" \";this.manageSingleSlideClassName();if(this.settings.enableDrag){outerClassNames+='lg-grab ';}\nif(this.settings.showAfterLoad){outerClassNames+='lg-show-after-load';}\nthis.outer.addClass(outerClassNames);this.$inner.css('transition-timing-function',this.settings.easing);this.$inner.css('transition-duration',this.settings.speed+'ms');if(this.settings.download){this.$toolbar.append(\"<a id=\\\"\"+this.getIdName('lg-download')+\"\\\" target=\\\"_blank\\\" rel=\\\"noopener\\\" aria-label=\\\"Download\\\" download class=\\\"lg-download lg-icon\\\"></a>\");}\nthis.counter();$LG(window).on(\"resize.lg.global\"+this.lgId+\" orientationchange.lg.global\"+this.lgId,function(){_this.refreshOnResize();});this.hideBars();this.manageCloseGallery();this.toggleMaximize();this.initModules();};LightGallery.prototype.refreshOnResize=function(){if(this.lgOpened){var currentGalleryItem=this.galleryItems[this.index];var videoInfo=currentGalleryItem.__slideVideoInfo;this.mediaContainerPosition=this.getMediaContainerPosition();var _a=this.mediaContainerPosition,top_1=_a.top,bottom=_a.bottom;this.currentImageSize=utils.getSize(this.items[this.index],this.outer,top_1+bottom,videoInfo&&this.settings.videoMaxSize);if(videoInfo){this.resizeVideoSlide(this.index,this.currentImageSize);}\nif(this.zoomFromOrigin&&!this.isDummyImageRemoved){var imgStyle=this.getDummyImgStyles(this.currentImageSize);this.outer.find('.lg-current .lg-dummy-img').first().attr('style',imgStyle);}\nthis.LGel.trigger(lGEvents.containerResize);}};LightGallery.prototype.resizeVideoSlide=function(index,imageSize){var lgVideoStyle=this.getVideoContStyle(imageSize);var currentSlide=this.getSlideItem(index);currentSlide.find('.lg-video-cont').attr('style',lgVideoStyle);};LightGallery.prototype.updateSlides=function(items,index){if(this.index>items.length-1){this.index=items.length-1;}\nif(items.length===1){this.index=0;}\nif(!items.length){this.closeGallery();return;}\nvar currentSrc=this.galleryItems[index].src;this.galleryItems=items;this.updateControls();this.$inner.empty();this.currentItemsInDom=[];var _index=0;this.galleryItems.some(function(galleryItem,itemIndex){if(galleryItem.src===currentSrc){_index=itemIndex;return true;}\nreturn false;});this.currentItemsInDom=this.organizeSlideItems(_index,-1);this.loadContent(_index,true);this.getSlideItem(_index).addClass('lg-current');this.index=_index;this.updateCurrentCounter(_index);this.LGel.trigger(lGEvents.updateSlides);};LightGallery.prototype.getItems=function(){this.items=[];if(!this.settings.dynamic){if(this.settings.selector==='this'){this.items.push(this.el);}\nelse if(this.settings.selector){if(typeof this.settings.selector==='string'){if(this.settings.selectWithin){var selectWithin=$LG(this.settings.selectWithin);this.items=selectWithin.find(this.settings.selector).get();}\nelse{this.items=this.el.querySelectorAll(this.settings.selector);}}\nelse{this.items=this.settings.selector;}}\nelse{this.items=this.el.children;}\nreturn utils.getDynamicOptions(this.items,this.settings.extraProps,this.settings.getCaptionFromTitleOrAlt,this.settings.exThumbImage);}\nelse{return this.settings.dynamicEl||[];}};LightGallery.prototype.openGallery=function(index,element){var _this=this;if(index===void 0){index=this.settings.index;}\nif(this.lgOpened)\nreturn;this.lgOpened=true;this.outer.get().focus();this.outer.removeClass('lg-hide-items');this.$container.addClass('lg-show');var itemsToBeInsertedToDom=this.getItemsToBeInsertedToDom(index,index);this.currentItemsInDom=itemsToBeInsertedToDom;var items='';itemsToBeInsertedToDom.forEach(function(item){items=items+(\"<div id=\\\"\"+item+\"\\\" class=\\\"lg-item\\\"></div>\");});this.$inner.append(items);this.addHtml(index);var transform='';this.mediaContainerPosition=this.getMediaContainerPosition();var _a=this.mediaContainerPosition,top=_a.top,bottom=_a.bottom;
2if(!this.settings.allowMediaOverlap){this.setMediaContainerPosition(top,bottom);}\nif(this.zoomFromOrigin&&element){this.currentImageSize=utils.getSize(element,this.outer,top+bottom,this.galleryItems[index].__slideVideoInfo&&this.settings.videoMaxSize);transform=utils.getTransform(element,this.outer,top,bottom,this.currentImageSize);}\nif(!this.zoomFromOrigin||!transform){this.outer.addClass(this.settings.startClass);this.getSlideItem(index).removeClass('lg-complete');}\nvar timeout=this.settings.zoomFromOrigin?100:this.settings.backdropDuration;setTimeout(function(){_this.outer.addClass('lg-components-open');},timeout);this.index=index;this.LGel.trigger(lGEvents.beforeOpen);this.getSlideItem(index).addClass('lg-current');this.lGalleryOn=false;this.prevScrollTop=$LG(window).scrollTop();setTimeout(function(){if(_this.zoomFromOrigin&&transform){var currentSlide_1=_this.getSlideItem(index);currentSlide_1.css('transform',transform);setTimeout(function(){currentSlide_1.addClass('lg-start-progress lg-start-end-progress').css('transition-duration',_this.settings.startAnimationDuration+'ms');_this.outer.addClass('lg-zoom-from-image');});setTimeout(function(){currentSlide_1.css('transform','translate3d(0, 0, 0)');},100);}\nsetTimeout(function(){_this.$backdrop.addClass('in');_this.$container.addClass('lg-show-in');},10);if(!_this.zoomFromOrigin||!transform){setTimeout(function(){_this.outer.addClass('lg-visible');},_this.settings.backdropDuration);}\n_this.slide(index,false,false,false);_this.LGel.trigger(lGEvents.afterOpen);});if(document.body===this.settings.container){$LG('html').addClass('lg-on');}};LightGallery.prototype.getMediaContainerPosition=function(){if(this.settings.allowMediaOverlap){return{top:0,bottom:0,};}\nvar top=this.$toolbar.get().clientHeight||0;var subHtml=this.outer.find('.lg-components .lg-sub-html').get();var captionHeight=this.settings.defaultCaptionHeight||(subHtml&&subHtml.clientHeight)||0;var thumbContainer=this.outer.find('.lg-thumb-outer').get();var thumbHeight=thumbContainer?thumbContainer.clientHeight:0;var bottom=thumbHeight+captionHeight;return{top:top,bottom:bottom,};};LightGallery.prototype.setMediaContainerPosition=function(top,bottom){if(top===void 0){top=0;}\nif(bottom===void 0){bottom=0;}\nthis.$content.css('top',top+'px').css('bottom',bottom+'px');};LightGallery.prototype.hideBars=function(){var _this=this;setTimeout(function(){_this.outer.removeClass('lg-hide-items');if(_this.settings.hideBarsDelay>0){_this.outer.on('mousemove.lg click.lg touchstart.lg',function(){_this.outer.removeClass('lg-hide-items');clearTimeout(_this.hideBarTimeout);_this.hideBarTimeout=setTimeout(function(){_this.outer.addClass('lg-hide-items');},_this.settings.hideBarsDelay);});_this.outer.trigger('mousemove.lg');}},this.settings.showBarsAfter);};LightGallery.prototype.initPictureFill=function($img){if(this.settings.supportLegacyBrowser){try{picturefill({elements:[$img.get()],});}\ncatch(e){console.warn('lightGallery :- If you want srcset or picture tag to be supported for older browser please include picturefil javascript library in your document.');}}};LightGallery.prototype.counter=function(){if(this.settings.counter){var counterHtml=\"<div class=\\\"lg-counter\\\" role=\\\"status\\\" aria-live=\\\"polite\\\">\\n                <span id=\\\"\"+this.getIdName('lg-counter-current')+\"\\\" class=\\\"lg-counter-current\\\">\"+(this.index+1)+\" </span> /\\n                <span id=\\\"\"+this.getIdName('lg-counter-all')+\"\\\" class=\\\"lg-counter-all\\\">\"+this.galleryItems.length+\" </span></div>\";this.outer.find(this.settings.appendCounterTo).append(counterHtml);}};LightGallery.prototype.addHtml=function(index){var subHtml;var subHtmlUrl;if(this.galleryItems[index].subHtmlUrl){subHtmlUrl=this.galleryItems[index].subHtmlUrl;}\nelse{subHtml=this.galleryItems[index].subHtml;}\nif(!subHtmlUrl){if(subHtml){var fL=subHtml.substring(0,1);if(fL==='.'||fL==='#'){if(this.settings.subHtmlSelectorRelative&&!this.settings.dynamic){subHtml=$LG(this.items).eq(index).find(subHtml).first().html();}\nelse{subHtml=$LG(subHtml).first().html();}}}\nelse{subHtml='';}}\nif(this.settings.appendSubHtmlTo!=='.lg-item'){if(subHtmlUrl){this.outer.find('.lg-sub-html').load(subHtmlUrl);}\nelse{this.outer.find('.lg-sub-html').html(subHtml);}}\nelse{var currentSlide=$LG(this.getSlideItemId(index));if(subHtmlUrl){currentSlide.load(subHtmlUrl);}\nelse{currentSlide.append(\"<div class=\\\"lg-sub-html\\\">\"+subHtml+\"</div>\");}}\nif(typeof subHtml!=='undefined'&&subHtml!==null){if(subHtml===''){this.outer.find(this.settings.appendSubHtmlTo).addClass('lg-empty-html');}\nelse{this.outer.find(this.settings.appendSubHtmlTo).removeClass('lg-empty-html');}}\nthis.LGel.trigger(lGEvents.afterAppendSubHtml,{index:index,});};LightGallery.prototype.preload=function(index){for(var i=1;i<=this.settings.preload;i++){if(i>=this.galleryItems.length-index){break;}\nthis.loadContent(index+i,false);}\nfor(var j=1;j<=this.settings.preload;j++){if(index-j<0){break;}\nthis.loadContent(index-j,false);}};LightGallery.prototype.getDummyImgStyles=function(imageSize){if(!imageSize)\nreturn'';return\"width:\"+imageSize.width+\"px;\\n                margin-left: -\"+imageSize.width / 2+\"px;\\n                margin-top: -\"+imageSize.height / 2+\"px;\\n                height:\"+imageSize.height+\"px\";};LightGallery.prototype.getVideoContStyle=function(imageSize){if(!imageSize)\nreturn'';return\"width:\"+imageSize.width+\"px;\\n                height:\"+imageSize.height+\"px\";};LightGallery.prototype.getDummyImageContent=function($currentSlide,index,alt){var $currentItem;if(!this.settings.dynamic){$currentItem=$LG(this.items).eq(index);}\nif($currentItem){var _dummyImgSrc=void 0;if(!this.settings.exThumbImage){_dummyImgSrc=$currentItem.find('img').first().attr('src');}\nelse{_dummyImgSrc=$currentItem.attr(this.settings.exThumbImage);}\nif(!_dummyImgSrc)\nreturn'';var imgStyle=this.getDummyImgStyles(this.currentImageSize);var dummyImgContent=\"<img \"+alt+\" style=\\\"\"+imgStyle+\"\\\" class=\\\"lg-dummy-img\\\" src=\\\"\"+_dummyImgSrc+\"\\\" />\";$currentSlide.addClass('lg-first-slide');this.outer.addClass('lg-first-slide-loading');return dummyImgContent;}\nreturn'';};
2LightGallery.prototype.setImgMarkup=function(src,$currentSlide,index){var currentGalleryItem=this.galleryItems[index];var alt=currentGalleryItem.alt,srcset=currentGalleryItem.srcset,sizes=currentGalleryItem.sizes,sources=currentGalleryItem.sources;var imgContent='';var altAttr=alt?'alt=\"'+alt+'\"':'';if(!this.lGalleryOn&&this.zoomFromOrigin&&this.currentImageSize){imgContent=this.getDummyImageContent($currentSlide,index,altAttr);}\nelse{imgContent=utils.getImgMarkup(index,src,altAttr,srcset,sizes,sources);}\nvar imgMarkup=\"<picture class=\\\"lg-img-wrap\\\"> \"+imgContent+\"</picture>\";$currentSlide.prepend(imgMarkup);};LightGallery.prototype.onLgObjectLoad=function($el,index,delay,speed,dummyImageLoaded){var _this=this;if(dummyImageLoaded){this.LGel.trigger(lGEvents.slideItemLoad,{index:index,delay:delay||0,});}\n$el.find('.lg-object').first().on('load.lg',function(){_this.handleLgObjectLoad($el,index,delay,speed,dummyImageLoaded);});setTimeout(function(){$el.find('.lg-object').first().on('error.lg',function(){$el.addClass('lg-complete lg-complete_');$el.html('<span class=\"lg-error-msg\">Oops... Failed to load content...</span>');});},speed);};LightGallery.prototype.handleLgObjectLoad=function($el,index,delay,speed,dummyImageLoaded){var _this=this;setTimeout(function(){$el.addClass('lg-complete lg-complete_');
2if(!dummyImageLoaded){_this.LGel.trigger(lGEvents.slideItemLoad,{index:index,delay:delay||0,});}},speed);};LightGallery.prototype.isVideo=function(src,index){if(!src){if(this.galleryItems[index].video){return{html5:true,};}\nelse{console.error('lightGallery :- data-src is not provided on slide item '+\n(index+1)+'. Please make sure the selector property is properly configured. More info - https://www.lightgalleryjs.com/demos/html-markup/');return;}}\nvar youtube=src.match(/\\/\\/(?:www\\.)?youtu(?:\\.be|be\\.com|be-nocookie\\.com)\\/(?:watch\\?v=|embed\\/)?([a-z0-9\\-\\_\\%]+)/i);var vimeo=src.match(/\\/\\/(?:www\\.)?(?:player\\.)?vimeo.com\\/(?:video\\/)?([0-9a-z\\-_]+)/i);var wistia=src.match(/https?:\\/\\/(.+)?(wistia\\.com|wi\\.st)\\/(medias|embed)\\/([0-9a-z\\-_]+)(.*)/);if(youtube){return{youtube:youtube,};}\nelse if(vimeo){return{vimeo:vimeo,};}\nelse if(wistia){return{wistia:wistia,};}};LightGallery.prototype.addSlideVideoInfo=function(items){var _this=this;items.forEach(function(element,index){element.__slideVideoInfo=_this.isVideo(element.src,index);});};LightGallery.prototype.loadContent=function(index,rec){var _this=this;var currentGalleryItem=this.galleryItems[index];var $currentSlide=$LG(this.getSlideItemId(index));var poster=currentGalleryItem.poster,srcset=currentGalleryItem.srcset,sizes=currentGalleryItem.sizes,sources=currentGalleryItem.sources;var src=currentGalleryItem.src;var video=currentGalleryItem.video;var _html5Video=video&&typeof video==='string'?JSON.parse(video):video;if(currentGalleryItem.responsive){var srcDyItms=currentGalleryItem.responsive.split(',');src=utils.getResponsiveSrc(srcDyItms)||src;}\nvar videoInfo=currentGalleryItem.__slideVideoInfo;var lgVideoStyle='';var iframe=!!currentGalleryItem.iframe;if(!$currentSlide.hasClass('lg-loaded')){if(videoInfo){var _a=this.mediaContainerPosition,top_2=_a.top,bottom=_a.bottom;var videoSize=utils.getSize(this.items[index],this.outer,top_2+bottom,videoInfo&&this.settings.videoMaxSize);lgVideoStyle=this.getVideoContStyle(videoSize);}\nif(iframe){var markup=utils.getIframeMarkup(this.settings.iframeWidth,this.settings.iframeHeight,src,currentGalleryItem.iframeTitle);$currentSlide.prepend(markup);}\nelse if(poster){var dummyImg='';var isFirstSlide_1=!this.lGalleryOn;var hasStartAnimation=!this.lGalleryOn&&this.zoomFromOrigin&&this.currentImageSize;if(hasStartAnimation){dummyImg=this.getDummyImageContent($currentSlide,index,'');}\nvar markup=utils.getVideoPosterMarkup(poster,dummyImg||'',lgVideoStyle,videoInfo);$currentSlide.prepend(markup);var delay_1=(hasStartAnimation?this.settings.startAnimationDuration:this.settings.backdropDuration)+100;setTimeout(function(){_this.LGel.trigger(lGEvents.hasVideo,{index:index,src:src,html5Video:_html5Video,hasPoster:true,isFirstSlide:isFirstSlide_1,});},delay_1);}\nelse if(videoInfo){var markup=\"<div class=\\\"lg-video-cont \\\" style=\\\"\"+lgVideoStyle+\"\\\"></div>\";$currentSlide.prepend(markup);this.LGel.trigger(lGEvents.hasVideo,{index:index,src:src,html5Video:_html5Video,hasPoster:false,});}\nelse{this.setImgMarkup(src,$currentSlide,index);if(srcset||sources){var $img=$currentSlide.find('.lg-object');this.initPictureFill($img);}}\nthis.LGel.trigger(lGEvents.afterAppendSlide,{index:index});if(this.lGalleryOn&&this.settings.appendSubHtmlTo==='.lg-item'){this.addHtml(index);}}\nvar _speed=0;var delay=0;if(!this.lGalleryOn){if(this.zoomFromOrigin&&this.currentImageSize){delay=this.settings.startAnimationDuration+10;}\nelse{delay=this.settings.backdropDuration+10;}}\nif(delay&&!$LG(document.body).hasClass('lg-from-hash')){_speed=delay;}\nif(!this.lGalleryOn&&this.zoomFromOrigin&&this.currentImageSize){setTimeout(function(){$currentSlide.removeClass('lg-start-end-progress lg-start-progress').removeAttr('style');},this.settings.startAnimationDuration+100);if(!$currentSlide.hasClass('lg-loaded')){setTimeout(function(){$currentSlide.find('.lg-img-wrap').append(utils.getImgMarkup(index,src,'',srcset,sizes,currentGalleryItem.sources));if(srcset||sources){var $img=$currentSlide.find('.lg-object');_this.initPictureFill($img);}\n_this.onLgObjectLoad($currentSlide,index,delay,_speed,true);var mediaObject=$currentSlide.find('.lg-object').first();if(utils.isImageLoaded(mediaObject.get())){_this.loadContentOnLoad(index,$currentSlide,_speed);}\nelse{mediaObject.on('load.lg error.lg',function(){_this.loadContentOnLoad(index,$currentSlide,_speed);});}},this.settings.startAnimationDuration+100);}}\n$currentSlide.addClass('lg-loaded');this.onLgObjectLoad($currentSlide,index,delay,_speed,false);
2if(videoInfo&&videoInfo.html5&&!poster){$currentSlide.addClass('lg-complete lg-complete_');}\nif((!this.zoomFromOrigin||!this.currentImageSize)&&$currentSlide.hasClass('lg-complete_')&&!this.lGalleryOn){setTimeout(function(){$currentSlide.addClass('lg-complete');},this.settings.backdropDuration);}\nthis.lGalleryOn=true;if(rec===true){if(!$currentSlide.hasClass('lg-complete_')){$currentSlide.find('.lg-object').first().on('load.lg error.lg',function(){_this.preload(index);});}\nelse{this.preload(index);}}};LightGallery.prototype.loadContentOnLoad=function(index,$currentSlide,speed){var _this=this;setTimeout(function(){$currentSlide.find('.lg-dummy-img').remove();$currentSlide.removeClass('lg-first-slide');_this.outer.removeClass('lg-first-slide-loading');_this.isDummyImageRemoved=true;_this.preload(index);},speed+300);};LightGallery.prototype.getItemsToBeInsertedToDom=function(index,prevIndex,numberOfItems){var _this=this;if(numberOfItems===void 0){numberOfItems=0;}\nvar itemsToBeInsertedToDom=[];var possibleNumberOfItems=Math.max(numberOfItems,3);possibleNumberOfItems=Math.min(possibleNumberOfItems,this.galleryItems.length);var prevIndexItem=\"lg-item-\"+this.lgId+\"-\"+prevIndex;if(this.galleryItems.length<=3){this.galleryItems.forEach(function(_element,index){itemsToBeInsertedToDom.push(\"lg-item-\"+_this.lgId+\"-\"+index);});return itemsToBeInsertedToDom;}\nif(index<(this.galleryItems.length-1)/ 2){for(var idx=index;idx>index-possibleNumberOfItems / 2&&idx>=0;idx--){itemsToBeInsertedToDom.push(\"lg-item-\"+this.lgId+\"-\"+idx);}\nvar numberOfExistingItems=itemsToBeInsertedToDom.length;for(var idx=0;idx<possibleNumberOfItems-numberOfExistingItems;idx++){itemsToBeInsertedToDom.push(\"lg-item-\"+this.lgId+\"-\"+(index+idx+1));}}\nelse{for(var idx=index;idx<=this.galleryItems.length-1&&idx<index+possibleNumberOfItems / 2;idx++){itemsToBeInsertedToDom.push(\"lg-item-\"+this.lgId+\"-\"+idx);}\nvar numberOfExistingItems=itemsToBeInsertedToDom.length;for(var idx=0;idx<possibleNumberOfItems-numberOfExistingItems;idx++){itemsToBeInsertedToDom.push(\"lg-item-\"+this.lgId+\"-\"+(index-idx-1));}}\nif(this.settings.loop){if(index===this.galleryItems.length-1){itemsToBeInsertedToDom.push(\"lg-item-\"+this.lgId+\"-\"+0);}\nelse if(index===0){itemsToBeInsertedToDom.push(\"lg-item-\"+this.lgId+\"-\"+(this.galleryItems.length-1));}}\nif(itemsToBeInsertedToDom.indexOf(prevIndexItem)===-1){itemsToBeInsertedToDom.push(\"lg-item-\"+this.lgId+\"-\"+prevIndex);}\nreturn itemsToBeInsertedToDom;};LightGallery.prototype.organizeSlideItems=function(index,prevIndex){var _this=this;var itemsToBeInsertedToDom=this.getItemsToBeInsertedToDom(index,prevIndex,this.settings.numberOfSlideItemsInDom);itemsToBeInsertedToDom.forEach(function(item){if(_this.currentItemsInDom.indexOf(item)===-1){_this.$inner.append(\"<div id=\\\"\"+item+\"\\\" class=\\\"lg-item\\\"></div>\");}});this.currentItemsInDom.forEach(function(item){if(itemsToBeInsertedToDom.indexOf(item)===-1){$LG(\"#\"+item).remove();}});return itemsToBeInsertedToDom;};LightGallery.prototype.getPreviousSlideIndex=function(){var prevIndex=0;try{var currentItemId=this.outer.find('.lg-current').first().attr('id');prevIndex=parseInt(currentItemId.split('-')[3])||0;}\ncatch(error){prevIndex=0;}\nreturn prevIndex;};LightGallery.prototype.setDownloadValue=function(index){if(this.settings.download){var currentGalleryItem=this.galleryItems[index];var hideDownloadBtn=currentGalleryItem.downloadUrl===false||currentGalleryItem.downloadUrl==='false';if(hideDownloadBtn){this.outer.addClass('lg-hide-download');}\nelse{var $download=this.getElementById('lg-download');this.outer.removeClass('lg-hide-download');$download.attr('href',currentGalleryItem.downloadUrl||currentGalleryItem.src);if(currentGalleryItem.download){$download.attr('download',currentGalleryItem.download);}}}};LightGallery.prototype.makeSlideAnimation=function(direction,currentSlideItem,previousSlideItem){var _this=this;if(this.lGalleryOn){previousSlideItem.addClass('lg-slide-progress');}\nsetTimeout(function(){_this.outer.addClass('lg-no-trans');_this.outer.find('.lg-item').removeClass('lg-prev-slide lg-next-slide');if(direction==='prev'){currentSlideItem.addClass('lg-prev-slide');previousSlideItem.addClass('lg-next-slide');}\nelse{currentSlideItem.addClass('lg-next-slide');previousSlideItem.addClass('lg-prev-slide');}\nsetTimeout(function(){_this.outer.find('.lg-item').removeClass('lg-current');currentSlideItem.addClass('lg-current');_this.outer.removeClass('lg-no-trans');},50);},this.lGalleryOn?this.settings.slideDelay:0);};LightGallery.prototype.slide=function(index,fromTouch,fromThumb,direction){var _this=this;var prevIndex=this.getPreviousSlideIndex();this.currentItemsInDom=this.organizeSlideItems(index,prevIndex);if(this.lGalleryOn&&prevIndex===index){return;}\nvar numberOfGalleryItems=this.galleryItems.length;if(!this.lgBusy){if(this.settings.counter){this.updateCurrentCounter(index);}\nvar currentSlideItem=this.getSlideItem(index);var previousSlideItem_1=this.getSlideItem(prevIndex);var currentGalleryItem=this.galleryItems[index];var videoInfo=currentGalleryItem.__slideVideoInfo;
2this.outer.attr('data-lg-slide-type',this.getSlideType(currentGalleryItem));this.setDownloadValue(index);if(videoInfo){var _a=this.mediaContainerPosition,top_3=_a.top,bottom=_a.bottom;var videoSize=utils.getSize(this.items[index],this.outer,top_3+bottom,videoInfo&&this.settings.videoMaxSize);this.resizeVideoSlide(index,videoSize);}\nthis.LGel.trigger(lGEvents.beforeSlide,{prevIndex:prevIndex,index:index,fromTouch:!!fromTouch,fromThumb:!!fromThumb,});this.lgBusy=true;clearTimeout(this.hideBarTimeout);this.arrowDisable(index);if(!direction){if(index<prevIndex){direction='prev';}\nelse if(index>prevIndex){direction='next';}}\nif(!fromTouch){this.makeSlideAnimation(direction,currentSlideItem,previousSlideItem_1);}\nelse{this.outer.find('.lg-item').removeClass('lg-prev-slide lg-current lg-next-slide');var touchPrev=void 0;var touchNext=void 0;if(numberOfGalleryItems>2){touchPrev=index-1;touchNext=index+1;if(index===0&&prevIndex===numberOfGalleryItems-1){touchNext=0;touchPrev=numberOfGalleryItems-1;}\nelse if(index===numberOfGalleryItems-1&&prevIndex===0){touchNext=0;touchPrev=numberOfGalleryItems-1;}}\nelse{touchPrev=0;touchNext=1;}\nif(direction==='prev'){this.getSlideItem(touchNext).addClass('lg-next-slide');}\nelse{this.getSlideItem(touchPrev).addClass('lg-prev-slide');}\ncurrentSlideItem.addClass('lg-current');}\nif(!this.lGalleryOn){this.loadContent(index,true);}\nsetTimeout(function(){if(_this.lGalleryOn){_this.loadContent(index,true);}\nif(_this.settings.appendSubHtmlTo!=='.lg-item'){_this.addHtml(index);}},(this.lGalleryOn?this.settings.speed+50:50)+(fromTouch?0:this.settings.slideDelay));setTimeout(function(){_this.lgBusy=false;previousSlideItem_1.removeClass('lg-slide-progress');_this.LGel.trigger(lGEvents.afterSlide,{prevIndex:prevIndex,index:index,fromTouch:fromTouch,fromThumb:fromThumb,});},(this.lGalleryOn?this.settings.speed+100:100)+(fromTouch?0:this.settings.slideDelay));}\nthis.index=index;};LightGallery.prototype.updateCurrentCounter=function(index){this.getElementById('lg-counter-current').html(index+1+'');};LightGallery.prototype.updateCounterTotal=function(){this.getElementById('lg-counter-all').html(this.galleryItems.length+'');};LightGallery.prototype.getSlideType=function(item){if(item.__slideVideoInfo){return'video';}\nelse if(item.iframe){return'iframe';}\nelse{return'image';}};LightGallery.prototype.touchMove=function(startCoords,endCoords,e){var distanceX=endCoords.pageX-startCoords.pageX;var distanceY=endCoords.pageY-startCoords.pageY;var allowSwipe=false;if(this.swipeDirection){allowSwipe=true;}\nelse{if(Math.abs(distanceX)>15){this.swipeDirection='horizontal';allowSwipe=true;}\nelse if(Math.abs(distanceY)>15){this.swipeDirection='vertical';allowSwipe=true;}}\nif(!allowSwipe){return;}\nvar $currentSlide=this.getSlideItem(this.index);if(this.swipeDirection==='horizontal'){e===null||e===void 0?void 0:e.preventDefault();this.outer.addClass('lg-dragging');this.setTranslate($currentSlide,distanceX,0);var width=$currentSlide.get().offsetWidth;var slideWidthAmount=(width*15)/ 100;var gutter=slideWidthAmount-Math.abs((distanceX*10)/ 100);this.setTranslate(this.outer.find('.lg-prev-slide').first(),-width+distanceX-gutter,0);this.setTranslate(this.outer.find('.lg-next-slide').first(),width+distanceX+gutter,0);}\nelse if(this.swipeDirection==='vertical'){if(this.settings.swipeToClose){e===null||e===void 0?void 0:e.preventDefault();this.$container.addClass('lg-dragging-vertical');var opacity=1-Math.abs(distanceY)/ window.innerHeight;this.$backdrop.css('opacity',opacity);var scale=1-Math.abs(distanceY)/(window.innerWidth*2);this.setTranslate($currentSlide,0,distanceY,scale,scale);if(Math.abs(distanceY)>100){this.outer.addClass('lg-hide-items').removeClass('lg-components-open');}}}};LightGallery.prototype.touchEnd=function(endCoords,startCoords,event){var _this=this;var distance;if(this.settings.mode!=='lg-slide'){this.outer.addClass('lg-slide');}\nsetTimeout(function(){_this.$container.removeClass('lg-dragging-vertical');_this.outer.removeClass('lg-dragging lg-hide-items').addClass('lg-components-open');var triggerClick=true;if(_this.swipeDirection==='horizontal'){distance=endCoords.pageX-startCoords.pageX;var distanceAbs=Math.abs(endCoords.pageX-startCoords.pageX);if(distance<0&&distanceAbs>_this.settings.swipeThreshold){_this.goToNextSlide(true);triggerClick=false;}\nelse if(distance>0&&distanceAbs>_this.settings.swipeThreshold){_this.goToPrevSlide(true);triggerClick=false;}}\nelse if(_this.swipeDirection==='vertical'){distance=Math.abs(endCoords.pageY-startCoords.pageY);if(_this.settings.closable&&_this.settings.swipeToClose&&distance>100){_this.closeGallery();return;}\nelse{_this.$backdrop.css('opacity',1);}}
vendor: 5,753 bytes, line 2
2\n_this.outer.find('.lg-item').removeAttr('style');if(triggerClick&&Math.abs(endCoords.pageX-startCoords.pageX)<5){var target=$LG(event.target);if(_this.isPosterElement(target)){_this.LGel.trigger(lGEvents.posterClick);}}\n_this.swipeDirection=undefined;});setTimeout(function(){if(!_this.outer.hasClass('lg-dragging')&&_this.settings.mode!=='lg-slide'){_this.outer.removeClass('lg-slide');}},this.settings.speed+100);};LightGallery.prototype.enableSwipe=function(){var _this=this;var startCoords={};var endCoords={};var isMoved=false;var isSwiping=false;if(this.settings.enableSwipe){this.$inner.on('touchstart.lg',function(e){_this.dragOrSwipeEnabled=true;var $item=_this.getSlideItem(_this.index);if(($LG(e.target).hasClass('lg-item')||$item.get().contains(e.target))&&!_this.outer.hasClass('lg-zoomed')&&!_this.lgBusy&&e.targetTouches.length===1){isSwiping=true;_this.touchAction='swipe';_this.manageSwipeClass();startCoords={pageX:e.targetTouches[0].pageX,pageY:e.targetTouches[0].pageY,};}});this.$inner.on('touchmove.lg',function(e){if(isSwiping&&_this.touchAction==='swipe'&&e.targetTouches.length===1){endCoords={pageX:e.targetTouches[0].pageX,pageY:e.targetTouches[0].pageY,};_this.touchMove(startCoords,endCoords,e);isMoved=true;}});this.$inner.on('touchend.lg',function(event){if(_this.touchAction==='swipe'){if(isMoved){isMoved=false;_this.touchEnd(endCoords,startCoords,event);}\nelse if(isSwiping){var target=$LG(event.target);if(_this.isPosterElement(target)){_this.LGel.trigger(lGEvents.posterClick);}}\n_this.touchAction=undefined;isSwiping=false;}});}};LightGallery.prototype.enableDrag=function(){var _this=this;var startCoords={};var endCoords={};var isDraging=false;var isMoved=false;if(this.settings.enableDrag){this.outer.on('mousedown.lg',function(e){_this.dragOrSwipeEnabled=true;var $item=_this.getSlideItem(_this.index);if($LG(e.target).hasClass('lg-item')||$item.get().contains(e.target)){if(!_this.outer.hasClass('lg-zoomed')&&!_this.lgBusy){e.preventDefault();if(!_this.lgBusy){_this.manageSwipeClass();startCoords={pageX:e.pageX,pageY:e.pageY,};isDraging=true;_this.outer.get().scrollLeft+=1;_this.outer.get().scrollLeft-=1;_this.outer.removeClass('lg-grab').addClass('lg-grabbing');_this.LGel.trigger(lGEvents.dragStart);}}}});$LG(window).on(\"mousemove.lg.global\"+this.lgId,function(e){if(isDraging&&_this.lgOpened){isMoved=true;endCoords={pageX:e.pageX,pageY:e.pageY,};_this.touchMove(startCoords,endCoords);_this.LGel.trigger(lGEvents.dragMove);}});$LG(window).on(\"mouseup.lg.global\"+this.lgId,function(event){if(!_this.lgOpened){return;}\nvar target=$LG(event.target);if(isMoved){isMoved=false;_this.touchEnd(endCoords,startCoords,event);_this.LGel.trigger(lGEvents.dragEnd);}\nelse if(_this.isPosterElement(target)){_this.LGel.trigger(lGEvents.posterClick);}\nif(isDraging){isDraging=false;_this.outer.removeClass('lg-grabbing').addClass('lg-grab');}});}};LightGallery.prototype.triggerPosterClick=function(){var _this=this;this.$inner.on('click.lg',function(event){if(!_this.dragOrSwipeEnabled&&_this.isPosterElement($LG(event.target))){_this.LGel.trigger(lGEvents.posterClick);}});};LightGallery.prototype.manageSwipeClass=function(){var _touchNext=this.index+1;var _touchPrev=this.index-1;if(this.settings.loop&&this.galleryItems.length>2){if(this.index===0){_touchPrev=this.galleryItems.length-1;}\nelse if(this.index===this.galleryItems.length-1){_touchNext=0;}}\nthis.outer.find('.lg-item').removeClass('lg-next-slide lg-prev-slide');if(_touchPrev>-1){this.getSlideItem(_touchPrev).addClass('lg-prev-slide');}\nthis.getSlideItem(_touchNext).addClass('lg-next-slide');};LightGallery.prototype.goToNextSlide=function(fromTouch){var _this=this;var _loop=this.settings.loop;if(fromTouch&&this.galleryItems.length<3){_loop=false;}\nif(!this.lgBusy){if(this.index+1<this.galleryItems.length){this.index++;this.LGel.trigger(lGEvents.beforeNextSlide,{index:this.index,});this.slide(this.index,!!fromTouch,false,'next');}\nelse{if(_loop){this.index=0;this.LGel.trigger(lGEvents.beforeNextSlide,{index:this.index,});this.slide(this.index,!!fromTouch,false,'next');}\nelse if(this.settings.slideEndAnimation&&!fromTouch){this.outer.addClass('lg-right-end');setTimeout(function(){_this.outer.removeClass('lg-right-end');},400);}}}};LightGallery.prototype.goToPrevSlide=function(fromTouch){var _this=this;var _loop=this.settings.loop;if(fromTouch&&this.galleryItems.length<3){_loop=false;}\nif(!this.lgBusy){if(this.index>0){this.index--;this.LGel.trigger(lGEvents.beforePrevSlide,{index:this.index,fromTouch:fromTouch,});this.slide(this.index,!!fromTouch,false,'prev');}\nelse{if(_loop){this.index=this.galleryItems.length-1;this.LGel.trigger(lGEvents.beforePrevSlide,{index:this.index,fromTouch:fromTouch,});this.slide(this.index,!!fromTouch,false,'prev');}\nelse if(this.settings.slideEndAnimation&&!fromTouch){this.outer.addClass('lg-left-end');setTimeout(function(){_this.outer.removeClass('lg-left-end');},400);}}}};LightGallery.prototype.keyPress=function(){var _this=this;$LG(window).on(\"keydown.lg.global\"+this.lgId,function(e){if(_this.lgOpened&&_this.settings.escKey===true&&e.keyCode===27){e.preventDefault();if(_this.settings.allowMediaOverlap&&_this.outer.hasClass('lg-can-toggle')&&_this.outer.hasClass('lg-components-open')){_this.outer.removeClass('lg-components-open');}\nelse{_this.closeGallery();}}\nif(_this.lgOpened&&_this.galleryItems.length>1){if(e.keyCode===37){e.preventDefault();_this.goToPrevSlide();}\nif(e.keyCode===39){e.preventDefault();_this.goToNextSlide();}}});};LightGallery.prototype.arrow=function(){var _this=this;this.getElementById('lg-prev').on('click.lg',function(){_this.goToPrevSlide();});this.getElementById('lg-next').on('click.lg',function(){_this.goToNextSlide();});};
2LightGallery.prototype.arrowDisable=function(index){if(!this.settings.loop&&this.settings.hideControlOnEnd){var $prev=this.getElementById('lg-prev');var $next=this.getElementById('lg-next');if(index+1===this.galleryItems.length){$next.attr('disabled','disabled').addClass('disabled');}\nelse{$next.removeAttr('disabled').removeClass('disabled');}\nif(index===0){$prev.attr('disabled','disabled').addClass('disabled');}\nelse{$prev.removeAttr('disabled').removeClass('disabled');}}};LightGallery.prototype.setTranslate=function($el,xValue,yValue,scaleX,scaleY){if(scaleX===void 0){scaleX=1;}\nif(scaleY===void 0){scaleY=1;}\n$el.css('transform','translate3d('+\nxValue+'px, '+\nyValue+'px, 0px) scale3d('+\nscaleX+', '+\nscaleY+', 1)');};LightGallery.prototype.mousewheel=function(){var _this=this;this.outer.on('mousewheel.lg',function(e){if(!e.deltaY||_this.galleryItems.length<2){return;}\nif(e.deltaY>0){_this.goToPrevSlide();}\nelse{_this.goToNextSlide();}\ne.preventDefault();});};LightGallery.prototype.isSlideElement=function(target){return(target.hasClass('lg-outer')||target.hasClass('lg-item')||target.hasClass('lg-img-wrap'));};LightGallery.prototype.isPosterElement=function(target){var playButton=this.getSlideItem(this.index).find('.lg-video-play-button').get();return(target.hasClass('lg-video-poster')||target.hasClass('lg-video-play-button')||(playButton&&playButton.contains(target.get())));};LightGallery.prototype.toggleMaximize=function(){var _this=this;this.getElementById('lg-maximize').on('click.lg',function(){_this.$container.toggleClass('lg-inline');_this.refreshOnResize();});};LightGallery.prototype.invalidateItems=function(){for(var index=0;index<this.items.length;index++){var element=this.items[index];var $element=$LG(element);$element.off(\"click.lgcustom-item-\"+$element.attr('data-lg-id'));}};LightGallery.prototype.manageCloseGallery=function(){var _this=this;if(!this.settings.closable)\nreturn;var mousedown=false;this.getElementById('lg-close').on('click.lg',function(){_this.closeGallery();});if(this.settings.closeOnTap){this.outer.on('mousedown.lg',function(e){var target=$LG(e.target);if(_this.isSlideElement(target)){mousedown=true;}\nelse{mousedown=false;}});this.outer.on('mousemove.lg',function(){mousedown=false;});this.outer.on('mouseup.lg',function(e){var target=$LG(e.target);if(_this.isSlideElement(target)&&mousedown){if(!_this.outer.hasClass('lg-dragging')){_this.closeGallery();}}});}};LightGallery.prototype.closeGallery=function(force){var _this=this;if(!this.lgOpened||(!this.settings.closable&&!force)){return 0;}\nthis.LGel.trigger(lGEvents.beforeClose);$LG(window).scrollTop(this.prevScrollTop);var currentItem=this.items[this.index];var transform;if(this.zoomFromOrigin&&currentItem){var _a=this.mediaContainerPosition,top_4=_a.top,bottom=_a.bottom;var imageSize=utils.getSize(currentItem,this.outer,top_4+bottom,this.galleryItems[this.index].__slideVideoInfo&&this.settings.videoMaxSize);transform=utils.getTransform(currentItem,this.outer,top_4,bottom,imageSize);}\nif(this.zoomFromOrigin&&transform){this.outer.addClass('lg-closing lg-zoom-from-image');this.getSlideItem(this.index).addClass('lg-start-end-progress').css('transition-duration',this.settings.startAnimationDuration+'ms').css('transform',transform);}\nelse{this.outer.addClass('lg-hide-items');this.outer.removeClass('lg-zoom-from-image');}\nthis.destroyModules();this.lGalleryOn=false;this.isDummyImageRemoved=false;this.zoomFromOrigin=this.settings.zoomFromOrigin;clearTimeout(this.hideBarTimeout);this.hideBarTimeout=false;$LG('html').removeClass('lg-on');this.outer.removeClass('lg-visible lg-components-open');this.$backdrop.removeClass('in').css('opacity',0);var removeTimeout=this.zoomFromOrigin&&transform?Math.max(this.settings.startAnimationDuration,this.settings.backdropDuration):this.settings.backdropDuration;this.$container.removeClass('lg-show-in');setTimeout(function(){if(_this.zoomFromOrigin&&transform){_this.outer.removeClass('lg-zoom-from-image');}\n_this.$container.removeClass('lg-show');_this.$backdrop.removeAttr('style').css('transition-duration',_this.settings.backdropDuration+'ms');_this.outer.removeClass(\"lg-closing \"+_this.settings.startClass);
2_this.getSlideItem(_this.index).removeClass('lg-start-end-progress');_this.$inner.empty();if(_this.lgOpened){_this.LGel.trigger(lGEvents.afterClose,{instance:_this,});}\nif(_this.outer.get()){_this.outer.get().blur();}\n_this.lgOpened=false;},removeTimeout+100);return removeTimeout+100;};LightGallery.prototype.initModules=function(){this.plugins.forEach(function(module){try{module.init();}\ncatch(err){console.warn(\"lightGallery:- make sure lightGallery module is properly initiated\");}});};LightGallery.prototype.destroyModules=function(destroy){this.plugins.forEach(function(module){try{if(destroy){module.destroy();}\nelse{module.closeGallery&&module.closeGallery();}}\ncatch(err){console.warn(\"lightGallery:- make sure lightGallery module is properly destroyed\");}});};LightGallery.prototype.refresh=function(galleryItems){if(!this.settings.dynamic){this.invalidateItems();}\nif(galleryItems){this.galleryItems=galleryItems;}\nelse{this.galleryItems=this.getItems();}\nthis.updateControls();this.openGalleryOnItemClick();this.LGel.trigger(lGEvents.updateSlides);};LightGallery.prototype.updateControls=function(){this.addSlideVideoInfo(this.galleryItems);this.updateCounterTotal();this.manageSingleSlideClassName();};LightGallery.prototype.destroy=function(){var _this=this;var closeTimeout=this.closeGallery(true);setTimeout(function(){_this.destroyModules(true);if(!_this.settings.dynamic){_this.invalidateItems();}\n$LG(window).off(\".lg.global\"+_this.lgId);_this.LGel.off('.lg');_this.$container.remove();},closeTimeout);return closeTimeout;};return LightGallery;}());function lightGallery(el,options){return new LightGallery(el,options);}\nexport default lightGallery;","Nw_Additions/lib/lightgallery/lightgallery.umd.min.js":"/*!\n * lightgallery | 2.2.1 | September 4th 2021\n * http://www.lightgalleryjs.com/\n * Copyright (c) 2020 Sachin Neravath;\n * @license GPLv3\n */\n(function(global,factory){typeof exports==='object'&&typeof module!=='undefined'?module.exports=factory():typeof define==='function'&&define.amd?define(factory):(global=typeof globalThis!=='undefined'?globalThis:global||self,global.lightGallery=factory());}(this,(function(){'use strict';/*! *****************************************************************************\n    Copyright (c) Microsoft Corporation.\n\n    Permission to use, copy, modify, and/or distribute this software for any\n    purpose with or without fee is hereby granted.\n\n    THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\n    REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\n    AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\n    INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\n    LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\n    OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\n    PERFORMANCE OF THIS SOFTWARE.\n    ***************************************************************************** */\nvar __assign=function(){__assign=Object.assign||function __assign(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p];}\nreturn t;};return __assign.apply(this,arguments);};function __spreadArrays(){for(var s=0,i=0,il=arguments.length;i<il;i++)s+=arguments[i].length;for(var r=Array(s),k=0,i=0;i<il;i++)\nfor(var a=arguments[i],j=0,jl=a.length;j<jl;j++,k++)\nr[k]=a[j];return r;}\n(function(){if(typeof window.CustomEvent==='function')\nreturn false;function CustomEvent(event,params){params=params||{bubbles:false,cancelable:false,detail:null};var evt=document.createEvent('CustomEvent');evt.initCustomEvent(event,params.bubbles,params.cancelable,params.detail);return evt;}\nwindow.CustomEvent=CustomEvent;})();(function(){if(!Element.prototype.matches){Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;}})();var lgQuery=(function(){function lgQuery(selector){this.cssVenderPrefixes=['TransitionDuration','TransitionTimingFunction','Transform','Transition',];this.selector=this._getSelector(selector);this.firstElement=this._getFirstEl();return this;}\nlgQuery.generateUUID=function(){return'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g,function(c){var r=(Math.random()*16)|0,v=c=='x'?r:(r&0x3)|0x8;return v.toString(16);});};lgQuery.prototype._getSelector=function(selector,context){if(context===void 0){context=document;}\nif(typeof selector!=='string'){return selector;}\ncontext=context||document;var fl=selector.substring(0,1);if(fl==='#'){return context.querySelector(selector);}\nelse{return context.querySelectorAll(selector);}};lgQuery.prototype._each=function(func){if(!this.selector){return this;}\nif(this.selector.length!==undefined){[].forEach.call(this.selector,func);}\nelse{func(this.selector,0);}\nreturn this;};lgQuery.prototype._setCssVendorPrefix=function(el,cssProperty,value){var property=cssProperty.replace(/-([a-z])/gi,function(s,group1){return group1.toUpperCase();});if(this.cssVenderPrefixes.indexOf(property)!==-1){el.style[property.charAt(0).toLowerCase()+property.slice(1)]=value;el.style['webkit'+property]=value;el.style['moz'+property]=value;el.style['ms'+property]=value;el.style['o'+property]=value;}\nelse{el.style[property]=value;}};lgQuery.prototype._getFirstEl=function(){if(this.selector&&this.selector.length!==undefined){return this.selector[0];}\nelse{return this.selector;}};lgQuery.prototype.isEventMatched=function(event,eventName){var eventNamespace=eventName.split('.');return event.split('.').filter(function(e){return e;}).every(function(e){return eventNamespace.indexOf(e)!==-1;});};lgQuery.prototype.attr=function(attr,value){if(value===undefined){if(!this.firstElement){return'';}\nreturn this.firstElement.getAttribute(attr);}\nthis._each(function(el){el.setAttribute(attr,value);});return this;};lgQuery.prototype.find=function(selector){return $LG(this._getSelector(selector,this.selector));};lgQuery.prototype.first=function(){if(this.selector&&this.selector.length!==undefined){return $LG(this.selector[0]);}\nelse{return $LG(this.selector);}};lgQuery.prototype.eq=function(index){return $LG(this.selector[index]);};lgQuery.prototype.parent=function(){return $LG(this.selector.parentElement);};lgQuery.prototype.get=function(){return this._getFirstEl();};lgQuery.prototype.removeAttr=function(attributes){var attrs=attributes.split(' ');
2this._each(function(el){attrs.forEach(function(attr){return el.removeAttribute(attr);});});return this;};lgQuery.prototype.wrap=function(className){if(!this.firstElement){return this;}\nvar wrapper=document.createElement('div');wrapper.className=className;this.firstElement.parentNode.insertBefore(wrapper,this.firstElement);this.firstElement.parentNode.removeChild(this.firstElement);wrapper.appendChild(this.firstElement);return this;};lgQuery.prototype.addClass=function(classNames){if(classNames===void 0){classNames='';}\nthis._each(function(el){classNames.split(' ').forEach(function(className){el.classList.add(className);});});return this;};lgQuery.prototype.removeClass=function(classNames){this._each(function(el){classNames.split(' ').forEach(function(className){el.classList.remove(className);});});return this;};lgQuery.prototype.hasClass=function(className){if(!this.firstElement){return false;}\nreturn this.firstElement.classList.contains(className);};lgQuery.prototype.hasAttribute=function(attribute){if(!this.firstElement){return false;}\nreturn this.firstElement.hasAttribute(attribute);};lgQuery.prototype.toggleClass=function(className){if(!this.firstElement){return this;}\nif(this.hasClass(className)){this.removeClass(className);}\nelse{this.addClass(className);}\nreturn this;};lgQuery.prototype.css=function(property,value){var _this=this;this._each(function(el){_this._setCssVendorPrefix(el,property,value);});return this;};lgQuery.prototype.on=function(events,listener){var _this=this;if(!this.selector){return this;}\nevents.split(' ').forEach(function(event){if(!Array.isArray(lgQuery.eventListeners[event])){lgQuery.eventListeners[event]=[];}\nlgQuery.eventListeners[event].push(listener);_this.selector.addEventListener(event.split('.')[0],listener);});return this;};lgQuery.prototype.once=function(event,listener){var _this=this;this.on(event,function(){_this.off(event);listener(event);});return this;};lgQuery.prototype.off=function(event){var _this=this;if(!this.selector){return this;}\nObject.keys(lgQuery.eventListeners).forEach(function(eventName){if(_this.isEventMatched(event,eventName)){lgQuery.eventListeners[eventName].forEach(function(listener){_this.selector.removeEventListener(eventName.split('.')[0],listener);});lgQuery.eventListeners[eventName]=[];}});return this;};lgQuery.prototype.trigger=function(event,detail){if(!this.firstElement){return this;}\nvar customEvent=new CustomEvent(event.split('.')[0],{detail:detail||null,});this.firstElement.dispatchEvent(customEvent);return this;};lgQuery.prototype.load=function(url){var _this=this;fetch(url).then(function(res){_this.selector.innerHTML=res;});return this;};lgQuery.prototype.html=function(html){if(html===undefined){if(!this.firstElement){return'';}\nreturn this.firstElement.innerHTML;}\nthis._each(function(el){el.innerHTML=html;});return this;};lgQuery.prototype.append=function(html){this._each(function(el){if(typeof html==='string'){el.insertAdjacentHTML('beforeend',html);}\nelse{el.appendChild(html);}});return this;};lgQuery.prototype.prepend=function(html){this._each(function(el){el.insertAdjacentHTML('afterbegin',html);});return this;};lgQuery.prototype.remove=function(){this._each(function(el){el.parentNode.removeChild(el);});return this;};lgQuery.prototype.empty=function(){this._each(function(el){el.innerHTML='';});return this;};lgQuery.prototype.scrollTop=function(scrollTop){if(scrollTop!==undefined){document.body.scrollTop=scrollTop;document.documentElement.scrollTop=scrollTop;return this;}\nelse{return(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0);}};lgQuery.prototype.scrollLeft=function(scrollLeft){if(scrollLeft!==undefined){document.body.scrollLeft=scrollLeft;document.documentElement.scrollLeft=scrollLeft;return this;}\nelse{return(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0);}};lgQuery.prototype.offset=function(){if(!this.firstElement){return{left:0,top:0,};}\nvar rect=this.firstElement.getBoundingClientRect();var bodyMarginLeft=$LG('body').style().marginLeft;return{left:rect.left-parseFloat(bodyMarginLeft)+this.scrollLeft(),top:rect.top+this.scrollTop(),};};lgQuery.prototype.style=function(){if(!this.firstElement){return{};}\nreturn(this.firstElement.currentStyle||window.getComputedStyle(this.firstElement));};lgQuery.prototype.width=function(){var style=this.style();return(this.firstElement.clientWidth-\nparseFloat(style.paddingLeft)-\nparseFloat(style.paddingRight));};lgQuery.prototype.height=function(){var style=this.style();return(this.firstElement.clientHeight-\nparseFloat(style.paddingTop)-\nparseFloat(style.paddingBottom));};lgQuery.eventListeners={};return lgQuery;}());function $LG(selector){return new lgQuery(selector);}\nvar defaultDynamicOptions=['src','sources','subHtml','subHtmlUrl','html','video','poster','slideName','responsive','srcset','sizes','iframe','downloadUrl','download','width','facebookShareUrl','tweetText','iframeTitle','twitterShareUrl','pinterestShareUrl','pinterestText','fbHtml','disqusIdentifier','disqusUrl',];function convertToData(attr){if(attr==='href'){return'src';}\nattr=attr.replace('data-','');attr=attr.charAt(0).toLowerCase()+attr.slice(1);attr=attr.replace(/-([a-z])/g,function(g){return g[1].toUpperCase();});return attr;}\nvar utils={getSize:function(el,container,spacing,defaultLgSize){if(spacing===void 0){spacing=0;}\nvar LGel=$LG(el);var lgSize=LGel.attr('data-lg-size')||defaultLgSize;if(!lgSize){return;}\nvar isResponsiveSizes=lgSize.split(',');if(isResponsiveSizes[1]){var wWidth=window.innerWidth;for(var i=0;i<isResponsiveSizes.length;i++){var size_1=isResponsiveSizes[i];var responsiveWidth=parseInt(size_1.split('-')[2],10);if(responsiveWidth>wWidth){lgSize=size_1;break;}\nif(i===isResponsiveSizes.length-1){lgSize=size_1;}}
2}\nvar size=lgSize.split('-');var width=parseInt(size[0],10);var height=parseInt(size[1],10);var cWidth=container.width();var cHeight=container.height()-spacing;var maxWidth=Math.min(cWidth,width);var maxHeight=Math.min(cHeight,height);var ratio=Math.min(maxWidth / width,maxHeight / height);return{width:width*ratio,height:height*ratio};},getTransform:function(el,container,top,bottom,imageSize){if(!imageSize){return;}\nvar LGel=$LG(el).find('img').first();if(!LGel.get()){return;}\nvar containerRect=container.get().getBoundingClientRect();var wWidth=containerRect.width;var wHeight=container.height()-(top+bottom);var elWidth=LGel.width();var elHeight=LGel.height();var elStyle=LGel.style();var x=(wWidth-elWidth)/ 2-\nLGel.offset().left+\n(parseFloat(elStyle.paddingLeft)||0)+\n(parseFloat(elStyle.borderLeft)||0)+\n$LG(window).scrollLeft()+\ncontainerRect.left;var y=(wHeight-elHeight)/ 2-\nLGel.offset().top+\n(parseFloat(elStyle.paddingTop)||0)+\n(parseFloat(elStyle.borderTop)||0)+\n$LG(window).scrollTop()+\ntop;var scX=elWidth / imageSize.width;var scY=elHeight / imageSize.height;var transform='translate3d('+\n(x*=-1)+'px, '+\n(y*=-1)+'px, 0) scale3d('+\nscX+', '+\nscY+', 1)';return transform;},getIframeMarkup:function(iframeWidth,iframeHeight,src,iframeTitle){var title=iframeTitle?'title=\"'+iframeTitle+'\"':'';return\"<div class=\\\"lg-video-cont lg-has-iframe\\\" style=\\\"width:\"+iframeWidth+\"; height: \"+iframeHeight+\"\\\">\\n                    <iframe class=\\\"lg-object\\\" frameborder=\\\"0\\\" \"+title+\" src=\\\"\"+src+\"\\\"  allowfullscreen=\\\"true\\\"></iframe>\\n                </div>\";},getImgMarkup:function(index,src,altAttr,srcset,sizes,sources){var srcsetAttr=srcset?\"srcset=\\\"\"+srcset+\"\\\"\":'';var sizesAttr=sizes?\"sizes=\\\"\"+sizes+\"\\\"\":'';var imgMarkup=\"<img \"+altAttr+\" \"+srcsetAttr+\"  \"+sizesAttr+\" class=\\\"lg-object lg-image\\\" data-index=\\\"\"+index+\"\\\" src=\\\"\"+src+\"\\\" />\";var sourceTag='';if(sources){var sourceObj=typeof sources==='string'?JSON.parse(sources):sources;sourceTag=sourceObj.map(function(source){var attrs='';Object.keys(source).forEach(function(key){attrs+=\" \"+key+\"=\\\"\"+source[key]+\"\\\"\";});return\"<source \"+attrs+\"></source>\";});}\nreturn\"\"+sourceTag+imgMarkup;},getResponsiveSrc:function(srcItms){var rsWidth=[];var rsSrc=[];var src='';for(var i=0;i<srcItms.length;i++){var _src=srcItms[i].split(' ');if(_src[0]===''){_src.splice(0,1);}\nrsSrc.push(_src[0]);rsWidth.push(_src[1]);}\nvar wWidth=window.innerWidth;for(var j=0;j<rsWidth.length;j++){if(parseInt(rsWidth[j],10)>wWidth){src=rsSrc[j];break;}}\nreturn src;},isImageLoaded:function(img){if(!img)\nreturn false;if(!img.complete){return false;}\nif(img.naturalWidth===0){return false;}\nreturn true;},getVideoPosterMarkup:function(_poster,dummyImg,videoContStyle,_isVideo){var videoClass='';if(_isVideo&&_isVideo.youtube){videoClass='lg-has-youtube';}\nelse if(_isVideo&&_isVideo.vimeo){videoClass='lg-has-vimeo';}\nelse{videoClass='lg-has-html5';}\nreturn\"<div class=\\\"lg-video-cont \"+videoClass+\"\\\" style=\\\"\"+videoContStyle+\"\\\">\\n                <div class=\\\"lg-video-play-button\\\">
2\\n                <svg\\n                    viewBox=\\\"0 0 20 20\\\"\\n                    preserveAspectRatio=\\\"xMidYMid\\\"\\n                    focusable=\\\"false\\\"\\n                    aria-labelledby=\\\"Play video\\\"\\n                    role=\\\"img\\\"\\n                    class=\\\"lg-video-play-icon\\\"\\n                >\\n                    <title>Play video</title>\\n                    <polygon class=\\\"lg-video-play-icon-inner\\\" points=\\\"1,0 20,10 1,20\\\"></polygon>\\n                </svg>\\n                <svg class=\\\"lg-video-play-icon-bg\\\" viewBox=\\\"0 0 50 50\\\" focusable=\\\"false\\\">\\n                    <circle cx=\\\"50%\\\" cy=\\\"50%\\\" r=\\\"20\\\"></circle></svg>\\n                <svg class=\\\"lg-video-play-icon-circle\\\" viewBox=\\\"0 0 50 50\\\" focusable=\\\"false\\\">\\n                    <circle cx=\\\"50%\\\" cy=\\\"50%\\\" r=\\\"20\\\"></circle>\\n                </svg>\\n            </div>\\n            \"+(dummyImg||'')+\"\\n            <img class=\\\"lg-object lg-video-poster\\\" src=\\\"\"+_poster+\"\\\" />\\n        </div>\";},getDynamicOptions:function(items,extraProps,getCaptionFromTitleOrAlt,exThumbImage){var dynamicElements=[];var availableDynamicOptions=__spreadArrays(defaultDynamicOptions,extraProps);[].forEach.call(items,function(item){var dynamicEl={};for(var i=0;i<item.attributes.length;i++){var attr=item.attributes[i];if(attr.specified){var dynamicAttr=convertToData(attr.name);var label='';if(availableDynamicOptions.indexOf(dynamicAttr)>-1){label=dynamicAttr;}\nif(label){dynamicEl[label]=attr.value;}}}\nvar currentItem=$LG(item);var alt=currentItem.find('img').first().attr('alt');var title=currentItem.attr('title');var thumb=exThumbImage?currentItem.attr(exThumbImage):currentItem.find('img').first().attr('src');dynamicEl.thumb=thumb;if(getCaptionFromTitleOrAlt&&!dynamicEl.subHtml){dynamicEl.subHtml=title||alt||'';}\ndynamicEl.alt=alt||title||'';dynamicElements.push(dynamicEl);});return dynamicElements;},isMobile:function(){return /iPhone|iPad|iPod|Android/i.test(navigator.userAgent);},};var lightGalleryCoreSettings={mode:'lg-slide',easing:'ease',speed:400,licenseKey:'0000-0000-000-0000',height:'100%',width:'100%',addClass:'',startClass:'lg-start-zoom',backdropDuration:300,container:document.body,startAnimationDuration:400,zoomFromOrigin:true,hideBarsDelay:0,showBarsAfter:10000,slideDelay:0,supportLegacyBrowser:true,allowMediaOverlap:false,videoMaxSize:'1280-720',defaultCaptionHeight:0,ariaLabelledby:'',ariaDescribedby:'',closable:true,swipeToClose:true,closeOnTap:true,showCloseIcon:true,showMaximizeIcon:false,loop:true,escKey:true,keyPress:true,controls:true,slideEndAnimation:true,hideControlOnEnd:false,mousewheel:false,getCaptionFromTitleOrAlt:true,appendSubHtmlTo:'.lg-sub-html',subHtmlSelectorRelative:false,preload:2,numberOfSlideItemsInDom:10,showAfterLoad:true,selector:'',selectWithin:'',nextHtml:'',prevHtml:'',index:0,iframeWidth:'100%',iframeHeight:'100%',download:true,counter:true,appendCounterTo:'.lg-toolbar',swipeThreshold:50,enableSwipe:true,enableDrag:true,dynamic:false,dynamicEl:[],extraProps:[],exThumbImage:'',isMobile:undefined,mobileSettings:{controls:false,showCloseIcon:false,download:false,},plugins:[],};var lGEvents={afterAppendSlide:'lgAfterAppendSlide',init:'lgInit',hasVideo:'lgHasVideo',containerResize:'lgContainerResize',updateSlides:'lgUpdateSlides',afterAppendSubHtml:'lgAfterAppendSubHtml',beforeOpen:'lgBeforeOpen',afterOpen:'lgAfterOpen',slideItemLoad:'lgSlideItemLoad',beforeSlide:'lgBeforeSlide',afterSlide:'lgAfterSlide',posterClick:'lgPosterClick',dragStart:'lgDragStart',dragMove:'lgDragMove',dragEnd:'lgDragEnd',beforeNextSlide:'lgBeforeNextSlide',beforePrevSlide:'lgBeforePrevSlide',beforeClose:'lgBeforeClose',afterClose:'lgAfterClose',rotateLeft:'lgRotateLeft',rotateRight:'lgRotateRight',flipHorizontal:'lgFlipHorizontal',flipVertical:'lgFlipVertical',};var lgId=0;var LightGallery=(function(){function LightGallery(element,options){this.lgOpened=false;this.index=0;this.plugins=[];this.lGalleryOn=false;this.lgBusy=false;this.currentItemsInDom=[];this.prevScrollTop=0;this.isDummyImageRemoved=false;this.dragOrSwipeEnabled=false;this.mediaContainerPosition={top:0,bottom:0,};if(!element){return this;}\nlgId++;this.lgId=lgId;this.el=element;this.LGel=$LG(element);this.generateSettings(options);this.buildModules();if(this.settings.dynamic&&this.settings.dynamicEl!==undefined&&!Array.isArray(this.settings.dynamicEl)){throw'When using dynamic mode, you must also define dynamicEl as an Array.';}\nthis.galleryItems=this.getItems();this.normalizeSettings();this.init();this.validateLicense();return this;}\nLightGallery.prototype.generateSettings=function(options){this.settings=__assign(__assign({},lightGalleryCoreSettings),options);if(this.settings.isMobile&&typeof this.settings.isMobile==='function'?this.settings.isMobile():utils.isMobile()){var mobileSettings=__assign(__assign({},this.settings.mobileSettings),this.settings.mobileSettings);this.settings=__assign(__assign({},this.settings),mobileSettings);}};LightGallery.prototype.normalizeSettings=function(){if(this.settings.slideEndAnimation){this.settings.hideControlOnEnd=false;}
2\nif(!this.settings.closable){this.settings.swipeToClose=false;}\nthis.zoomFromOrigin=this.settings.zoomFromOrigin;if(this.settings.dynamic){this.zoomFromOrigin=false;}\nif(!this.settings.container){this.settings.container=document.body;}\nthis.settings.preload=Math.min(this.settings.preload,this.galleryItems.length);};LightGallery.prototype.init=function(){var _this=this;this.addSlideVideoInfo(this.galleryItems);this.buildStructure();this.LGel.trigger(lGEvents.init,{instance:this,});if(this.settings.keyPress){this.keyPress();}\nsetTimeout(function(){_this.enableDrag();_this.enableSwipe();_this.triggerPosterClick();},50);this.arrow();if(this.settings.mousewheel){this.mousewheel();}\nif(!this.settings.dynamic){this.openGalleryOnItemClick();}};LightGallery.prototype.openGalleryOnItemClick=function(){var _this=this;var _loop_1=function(index){var element=this_1.items[index];var $element=$LG(element);var uuid=lgQuery.generateUUID();$element.attr('data-lg-id',uuid).on(\"click.lgcustom-item-\"+uuid,function(e){e.preventDefault();var currentItemIndex=_this.settings.index||index;_this.openGallery(currentItemIndex,element);});};var this_1=this;for(var index=0;index<this.items.length;index++){_loop_1(index);}};LightGallery.prototype.buildModules=function(){var _this=this;this.settings.plugins.forEach(function(plugin){_this.plugins.push(new plugin(_this,$LG));});};LightGallery.prototype.validateLicense=function(){if(!this.settings.licenseKey){console.error('Please provide a valid license key');}\nelse if(this.settings.licenseKey==='0000-0000-000-0000'){console.warn(\"lightGallery: \"+this.settings.licenseKey+\" license key is not valid for production use\");}};LightGallery.prototype.getSlideItem=function(index){return $LG(this.getSlideItemId(index));};LightGallery.prototype.getSlideItemId=function(index){return\"#lg-item-\"+this.lgId+\"-\"+index;};LightGallery.prototype.getIdName=function(id){return id+\"-\"+this.lgId;};LightGallery.prototype.getElementById=function(id){return $LG(\"#\"+this.getIdName(id));};LightGallery.prototype.manageSingleSlideClassName=function(){if(this.galleryItems.length<2){this.outer.addClass('lg-single-item');}\nelse{this.outer.removeClass('lg-single-item');}};LightGallery.prototype.buildStructure=function(){var _this=this;var container=this.$container&&this.$container.get();if(container){return;}\nvar controls='';var subHtmlCont='';if(this.settings.controls){controls=\"<button type=\\\"button\\\" id=\\\"\"+this.getIdName('lg-prev')+\"\\\" aria-label=\\\"Previous slide\\\" class=\\\"lg-prev lg-icon\\\"> \"+this.settings.prevHtml+\" </button>\\n                <button type=\\\"button\\\" id=\\\"\"+this.getIdName('lg-next')+\"\\\" aria-label=\\\"Next slide\\\" class=\\\"lg-next lg-icon\\\"> \"+this.settings.nextHtml+\" </button>\";}\nif(this.settings.appendSubHtmlTo!=='.lg-item'){subHtmlCont='<div class=\"lg-sub-html\" role=\"status\" aria-live=\"polite\"></div>';}\nvar addClasses='';if(this.settings.allowMediaOverlap){addClasses+='lg-media-overlap ';}\nvar ariaLabelledby=this.settings.ariaLabelledby?'aria-labelledby=\"'+this.settings.ariaLabelledby+'\"':'';var ariaDescribedby=this.settings.ariaDescribedby?'aria-describedby=\"'+this.settings.ariaDescribedby+'\"':'';var containerClassName=\"lg-container \"+this.settings.addClass+\" \"+(document.body!==this.settings.container?'lg-inline':'');var closeIcon=this.settings.closable&&this.settings.showCloseIcon?\"<button type=\\\"button\\\" aria-label=\\\"Close gallery\\\" id=\\\"\"+this.getIdName('lg-close')+\"\\\" class=\\\"lg-close lg-icon\\\"></button>\":'';var maximizeIcon=this.settings.showMaximizeIcon?\"<button type=\\\"button\\\" aria-label=\\\"Toggle maximize\\\" id=\\\"\"+this.getIdName('lg-maximize')+\"\\\" class=\\\"lg-maximize lg-icon\\\"></button>\":'';var template=\"\\n        <div class=\\\"\"+containerClassName+\"\\\" id=\\\"\"+this.getIdName('lg-container')+\"\\\" tabindex=\\\"-1\\\" aria-modal=\\\"true\\\" \"+ariaLabelledby+\" \"+ariaDescribedby+\" role=\\\"dialog\\\"\\n        >\\n            <div id=\\\"\"+this.getIdName('lg-backdrop')+\"\\\" class=\\\"lg-backdrop\\\"></div>\\n\\n            <div id=\\\"\"+this.getIdName('lg-outer')+\"\\\" class=\\\"lg-outer lg-use-css3 lg-css3 lg-hide-items \"+addClasses+\" \\\">\\n\\n              <div id=\\\"\"+this.getIdName('lg-content')+\"\\\" class=\\\"lg-content\\\">\\n                <div id=\\\"\"+this.getIdName('lg-inner')+\"\\\" class=\\\"lg-inner\\\">\\n                </div>
2\\n                \"+controls+\"\\n              </div>\\n                <div id=\\\"\"+this.getIdName('lg-toolbar')+\"\\\" class=\\\"lg-toolbar lg-group\\\">\\n                    \"+maximizeIcon+\"\\n                    \"+closeIcon+\"\\n                    </div>\\n                    \"+(this.settings.appendSubHtmlTo==='.lg-outer'?subHtmlCont:'')+\"\\n                <div id=\\\"\"+this.getIdName('lg-components')+\"\\\" class=\\\"lg-components\\\">\\n                    \"+(this.settings.appendSubHtmlTo==='.lg-sub-html'?subHtmlCont:'')+\"\\n                </div>\\n            </div>\\n        </div>\\n        \";$LG(this.settings.container).css('position','relative').append(template);this.outer=this.getElementById('lg-outer');this.$lgComponents=this.getElementById('lg-components');this.$backdrop=this.getElementById('lg-backdrop');this.$container=this.getElementById('lg-container');this.$inner=this.getElementById('lg-inner');this.$content=this.getElementById('lg-content');this.$toolbar=this.getElementById('lg-toolbar');this.$backdrop.css('transition-duration',this.settings.backdropDuration+'ms');var outerClassNames=this.settings.mode+\" \";this.manageSingleSlideClassName();if(this.settings.enableDrag){outerClassNames+='lg-grab ';}\nif(this.settings.showAfterLoad){outerClassNames+='lg-show-after-load';}\nthis.outer.addClass(outerClassNames);this.$inner.css('transition-timing-function',this.settings.easing);this.$inner.css('transition-duration',this.settings.speed+'ms');if(this.settings.download){this.$toolbar.append(\"<a id=\\\"\"+this.getIdName('lg-download')+\"\\\" target=\\\"_blank\\\" rel=\\\"noopener\\\" aria-label=\\\"Download\\\" download class=\\\"lg-download lg-icon\\\"></a>\");}\nthis.counter();$LG(window).on(\"resize.lg.global\"+this.lgId+\" orientationchange.lg.global\"+this.lgId,function(){_this.refreshOnResize();});this.hideBars();this.manageCloseGallery();this.toggleMaximize();this.initModules();};LightGallery.prototype.refreshOnResize=function(){if(this.lgOpened){var currentGalleryItem=this.galleryItems[this.index];var videoInfo=currentGalleryItem.__slideVideoInfo;this.mediaContainerPosition=this.getMediaContainerPosition();var _a=this.mediaContainerPosition,top_1=_a.top,bottom=_a.bottom;this.currentImageSize=utils.getSize(this.items[this.index],this.outer,top_1+bottom,videoInfo&&this.settings.videoMaxSize);if(videoInfo){this.resizeVideoSlide(this.index,this.currentImageSize);}\nif(this.zoomFromOrigin&&!this.isDummyImageRemoved){var imgStyle=this.getDummyImgStyles(this.currentImageSize);this.outer.find('.lg-current .lg-dummy-img').first().attr('style',imgStyle);}\nthis.LGel.trigger(lGEvents.containerResize);}};LightGallery.prototype.resizeVideoSlide=function(index,imageSize){var lgVideoStyle=this.getVideoContStyle(imageSize);var currentSlide=this.getSlideItem(index);currentSlide.find('.lg-video-cont').attr('style',lgVideoStyle);};LightGallery.prototype.updateSlides=function(items,index){if(this.index>items.length-1){this.index=items.length-1;}\nif(items.length===1){this.index=0;}\nif(!items.length){this.closeGallery();return;}\nvar currentSrc=this.galleryItems[index].src;this.galleryItems=items;this.updateControls();this.$inner.empty();this.currentItemsInDom=[];var _index=0;this.galleryItems.some(function(galleryItem,itemIndex){if(galleryItem.src===currentSrc){_index=itemIndex;return true;}\nreturn false;});this.currentItemsInDom=this.organizeSlideItems(_index,-1);this.loadContent(_index,true);this.getSlideItem(_index).addClass('lg-current');this.index=_index;this.updateCurrentCounter(_index);this.LGel.trigger(lGEvents.updateSlides);};LightGallery.prototype.getItems=function(){this.items=[];if(!this.settings.dynamic){if(this.settings.selector==='this'){this.items.push(this.el);}\nelse if(this.settings.selector){if(typeof this.settings.selector==='string'){if(this.settings.selectWithin){var selectWithin=$LG(this.settings.selectWithin);this.items=selectWithin.find(this.settings.selector).get();}\nelse{this.items=this.el.querySelectorAll(this.settings.selector);}}\nelse{this.items=this.settings.selector;}}\nelse{this.items=this.el.children;}\nreturn utils.getDynamicOptions(this.items,this.settings.extraProps,this.settings.getCaptionFromTitleOrAlt,this.settings.exThumbImage);}\nelse{return this.settings.dynamicEl||[];}};LightGallery.prototype.openGallery=function(index,element){var _this=this;if(index===void 0){index=this.settings.index;}\nif(this.lgOpened)\nreturn;this.lgOpened=true;this.outer.get().focus();this.outer.removeClass('lg-hide-items');this.$container.addClass('lg-show');var itemsToBeInsertedToDom=this.getItemsToBeInsertedToDom(index,index);this.currentItemsInDom=itemsToBeInsertedToDom;var items='';itemsToBeInsertedToDom.forEach(function(item){items=items+(\"<div id=\\\"\"+item+\"\\\" class=\\\"lg-item\\\"></div>\");});this.$inner.append(items);this.addHtml(index);var transform='';this.mediaContainerPosition=this.getMediaContainerPosition();var _a=this.mediaContainerPosition,top=_a.top,bottom=_a.bottom;
2if(!this.settings.allowMediaOverlap){this.setMediaContainerPosition(top,bottom);}\nif(this.zoomFromOrigin&&element){this.currentImageSize=utils.getSize(element,this.outer,top+bottom,this.galleryItems[index].__slideVideoInfo&&this.settings.videoMaxSize);transform=utils.getTransform(element,this.outer,top,bottom,this.currentImageSize);}\nif(!this.zoomFromOrigin||!transform){this.outer.addClass(this.settings.startClass);this.getSlideItem(index).removeClass('lg-complete');}\nvar timeout=this.settings.zoomFromOrigin?100:this.settings.backdropDuration;setTimeout(function(){_this.outer.addClass('lg-components-open');},timeout);this.index=index;this.LGel.trigger(lGEvents.beforeOpen);this.getSlideItem(index).addClass('lg-current');this.lGalleryOn=false;this.prevScrollTop=$LG(window).scrollTop();setTimeout(function(){if(_this.zoomFromOrigin&&transform){var currentSlide_1=_this.getSlideItem(index);currentSlide_1.css('transform',transform);setTimeout(function(){currentSlide_1.addClass('lg-start-progress lg-start-end-progress').css('transition-duration',_this.settings.startAnimationDuration+'ms');_this.outer.addClass('lg-zoom-from-image');});setTimeout(function(){currentSlide_1.css('transform','translate3d(0, 0, 0)');},100);}\nsetTimeout(function(){_this.$backdrop.addClass('in');_this.$container.addClass('lg-show-in');},10);if(!_this.zoomFromOrigin||!transform){setTimeout(function(){_this.outer.addClass('lg-visible');},_this.settings.backdropDuration);}\n_this.slide(index,false,false,false);_this.LGel.trigger(lGEvents.afterOpen);});if(document.body===this.settings.container){$LG('html').addClass('lg-on');}};LightGallery.prototype.getMediaContainerPosition=function(){if(this.settings.allowMediaOverlap){return{top:0,bottom:0,};}\nvar top=this.$toolbar.get().clientHeight||0;var subHtml=this.outer.find('.lg-components .lg-sub-html').get();var captionHeight=this.settings.defaultCaptionHeight||(subHtml&&subHtml.clientHeight)||0;var thumbContainer=this.outer.find('.lg-thumb-outer').get();var thumbHeight=thumbContainer?thumbContainer.clientHeight:0;var bottom=thumbHeight+captionHeight;return{top:top,bottom:bottom,};};LightGallery.prototype.setMediaContainerPosition=function(top,bottom){if(top===void 0){top=0;}\nif(bottom===void 0){bottom=0;}\nthis.$content.css('top',top+'px').css('bottom',bottom+'px');};LightGallery.prototype.hideBars=function(){var _this=this;setTimeout(function(){_this.outer.removeClass('lg-hide-items');if(_this.settings.hideBarsDelay>0){_this.outer.on('mousemove.lg click.lg touchstart.lg',function(){_this.outer.removeClass('lg-hide-items');clearTimeout(_this.hideBarTimeout);_this.hideBarTimeout=setTimeout(function(){_this.outer.addClass('lg-hide-items');},_this.settings.hideBarsDelay);});_this.outer.trigger('mousemove.lg');}},this.settings.showBarsAfter);};LightGallery.prototype.initPictureFill=function($img){if(this.settings.supportLegacyBrowser){try{picturefill({elements:[$img.get()],});}\ncatch(e){console.warn('lightGallery :- If you want srcset or picture tag to be supported for older browser please include picturefil javascript library in your document.');}}};LightGallery.prototype.counter=function(){if(this.settings.counter){var counterHtml=\"<div class=\\\"lg-counter\\\" role=\\\"status\\\" aria-live=\\\"polite\\\">\\n                <span id=\\\"\"+this.getIdName('lg-counter-current')+\"\\\" class=\\\"lg-counter-current\\\">\"+(this.index+1)+\" </span> /\\n                <span id=\\\"\"+this.getIdName('lg-counter-all')+\"\\\" class=\\\"lg-counter-all\\\">\"+this.galleryItems.length+\" </span></div>\";this.outer.find(this.settings.appendCounterTo).append(counterHtml);}};LightGallery.prototype.addHtml=function(index){var subHtml;var subHtmlUrl;if(this.galleryItems[index].subHtmlUrl){subHtmlUrl=this.galleryItems[index].subHtmlUrl;}\nelse{subHtml=this.galleryItems[index].subHtml;}\nif(!subHtmlUrl){if(subHtml){var fL=subHtml.substring(0,1);if(fL==='.'||fL==='#'){if(this.settings.subHtmlSelectorRelative&&!this.settings.dynamic){subHtml=$LG(this.items).eq(index).find(subHtml).first().html();}\nelse{subHtml=$LG(subHtml).first().html();}}}\nelse{subHtml='';}}\nif(this.settings.appendSubHtmlTo!=='.lg-item'){if(subHtmlUrl){this.outer.find('.lg-sub-html').load(subHtmlUrl);}\nelse{this.outer.find('.lg-sub-html').html(subHtml);}}\nelse{var currentSlide=$LG(this.getSlideItemId(index));if(subHtmlUrl){currentSlide.load(subHtmlUrl);}\nelse{currentSlide.append(\"<div class=\\\"lg-sub-html\\\">\"+subHtml+\"</div>\");}}\nif(typeof subHtml!=='undefined'&&subHtml!==null){if(subHtml===''){this.outer.find(this.settings.appendSubHtmlTo).addClass('lg-empty-html');}\nelse{this.outer.find(this.settings.appendSubHtmlTo).removeClass('lg-empty-html');}}\nthis.LGel.trigger(lGEvents.afterAppendSubHtml,{index:index,});};LightGallery.prototype.preload=function(index){for(var i=1;i<=this.settings.preload;i++){if(i>=this.galleryItems.length-index){break;}\nthis.loadContent(index+i,false);}\nfor(var j=1;j<=this.settings.preload;j++){if(index-j<0){break;}\nthis.loadContent(index-j,false);}};LightGallery.prototype.getDummyImgStyles=function(imageSize){if(!imageSize)\nreturn'';return\"width:\"+imageSize.width+\"px;\\n                margin-left: -\"+imageSize.width / 2+\"px;\\n                margin-top: -\"+imageSize.height / 2+\"px;\\n                height:\"+imageSize.height+\"px\";};LightGallery.prototype.getVideoContStyle=function(imageSize){if(!imageSize)\nreturn'';return\"width:\"+imageSize.width+\"px;\\n                height:\"+imageSize.height+\"px\";};LightGallery.prototype.getDummyImageContent=function($currentSlide,index,alt){var $currentItem;if(!this.settings.dynamic){$currentItem=$LG(this.items).eq(index);}\nif($currentItem){var _dummyImgSrc=void 0;if(!this.settings.exThumbImage){_dummyImgSrc=$currentItem.find('img').first().attr('src');}\nelse{_dummyImgSrc=$currentItem.attr(this.settings.exThumbImage);}\nif(!_dummyImgSrc)\nreturn'';var imgStyle=this.getDummyImgStyles(this.currentImageSize);var dummyImgContent=\"<img \"+alt+\" style=\\\"\"+imgStyle+\"\\\" class=\\\"lg-dummy-img\\\" src=\\\"\"+_dummyImgSrc+\"\\\" />\";$currentSlide.addClass('lg-first-slide');this.outer.addClass('lg-first-slide-loading');return dummyImgContent;}\nreturn'';};
2LightGallery.prototype.setImgMarkup=function(src,$currentSlide,index){var currentGalleryItem=this.galleryItems[index];var alt=currentGalleryItem.alt,srcset=currentGalleryItem.srcset,sizes=currentGalleryItem.sizes,sources=currentGalleryItem.sources;var imgContent='';var altAttr=alt?'alt=\"'+alt+'\"':'';if(!this.lGalleryOn&&this.zoomFromOrigin&&this.currentImageSize){imgContent=this.getDummyImageContent($currentSlide,index,altAttr);}\nelse{imgContent=utils.getImgMarkup(index,src,altAttr,srcset,sizes,sources);}\nvar imgMarkup=\"<picture class=\\\"lg-img-wrap\\\"> \"+imgContent+\"</picture>\";$currentSlide.prepend(imgMarkup);};LightGallery.prototype.onLgObjectLoad=function($el,index,delay,speed,dummyImageLoaded){var _this=this;if(dummyImageLoaded){this.LGel.trigger(lGEvents.slideItemLoad,{index:index,delay:delay||0,});}\n$el.find('.lg-object').first().on('load.lg',function(){_this.handleLgObjectLoad($el,index,delay,speed,dummyImageLoaded);});setTimeout(function(){$el.find('.lg-object').first().on('error.lg',function(){$el.addClass('lg-complete lg-complete_');$el.html('<span class=\"lg-error-msg\">Oops... Failed to load content...</span>');});},speed);};LightGallery.prototype.handleLgObjectLoad=function($el,index,delay,speed,dummyImageLoaded){var _this=this;setTimeout(function(){$el.addClass('lg-complete lg-complete_');
2if(!dummyImageLoaded){_this.LGel.trigger(lGEvents.slideItemLoad,{index:index,delay:delay||0,});}},speed);};LightGallery.prototype.isVideo=function(src,index){if(!src){if(this.galleryItems[index].video){return{html5:true,};}\nelse{console.error('lightGallery :- data-src is not provided on slide item '+\n(index+1)+'. Please make sure the selector property is properly configured. More info - https://www.lightgalleryjs.com/demos/html-markup/');return;}}\nvar youtube=src.match(/\\/\\/(?:www\\.)?youtu(?:\\.be|be\\.com|be-nocookie\\.com)\\/(?:watch\\?v=|embed\\/)?([a-z0-9\\-\\_\\%]+)/i);var vimeo=src.match(/\\/\\/(?:www\\.)?(?:player\\.)?vimeo.com\\/(?:video\\/)?([0-9a-z\\-_]+)/i);var wistia=src.match(/https?:\\/\\/(.+)?(wistia\\.com|wi\\.st)\\/(medias|embed)\\/([0-9a-z\\-_]+)(.*)/);if(youtube){return{youtube:youtube,};}\nelse if(vimeo){return{vimeo:vimeo,};}\nelse if(wistia){return{wistia:wistia,};}};LightGallery.prototype.addSlideVideoInfo=function(items){var _this=this;items.forEach(function(element,index){element.__slideVideoInfo=_this.isVideo(element.src,index);});};LightGallery.prototype.loadContent=function(index,rec){var _this=this;var currentGalleryItem=this.galleryItems[index];var $currentSlide=$LG(this.getSlideItemId(index));var poster=currentGalleryItem.poster,srcset=currentGalleryItem.srcset,sizes=currentGalleryItem.sizes,sources=currentGalleryItem.sources;var src=currentGalleryItem.src;var video=currentGalleryItem.video;var _html5Video=video&&typeof video==='string'?JSON.parse(video):video;if(currentGalleryItem.responsive){var srcDyItms=currentGalleryItem.responsive.split(',');src=utils.getResponsiveSrc(srcDyItms)||src;}\nvar videoInfo=currentGalleryItem.__slideVideoInfo;var lgVideoStyle='';var iframe=!!currentGalleryItem.iframe;if(!$currentSlide.hasClass('lg-loaded')){if(videoInfo){var _a=this.mediaContainerPosition,top_2=_a.top,bottom=_a.bottom;var videoSize=utils.getSize(this.items[index],this.outer,top_2+bottom,videoInfo&&this.settings.videoMaxSize);lgVideoStyle=this.getVideoContStyle(videoSize);}\nif(iframe){var markup=utils.getIframeMarkup(this.settings.iframeWidth,this.settings.iframeHeight,src,currentGalleryItem.iframeTitle);$currentSlide.prepend(markup);}\nelse if(poster){var dummyImg='';var isFirstSlide_1=!this.lGalleryOn;var hasStartAnimation=!this.lGalleryOn&&this.zoomFromOrigin&&this.currentImageSize;if(hasStartAnimation){dummyImg=this.getDummyImageContent($currentSlide,index,'');}\nvar markup=utils.getVideoPosterMarkup(poster,dummyImg||'',lgVideoStyle,videoInfo);$currentSlide.prepend(markup);var delay_1=(hasStartAnimation?this.settings.startAnimationDuration:this.settings.backdropDuration)+100;setTimeout(function(){_this.LGel.trigger(lGEvents.hasVideo,{index:index,src:src,html5Video:_html5Video,hasPoster:true,isFirstSlide:isFirstSlide_1,});},delay_1);}\nelse if(videoInfo){var markup=\"<div class=\\\"lg-video-cont \\\" style=\\\"\"+lgVideoStyle+\"\\\"></div>\";$currentSlide.prepend(markup);this.LGel.trigger(lGEvents.hasVideo,{index:index,src:src,html5Video:_html5Video,hasPoster:false,});}\nelse{this.setImgMarkup(src,$currentSlide,index);if(srcset||sources){var $img=$currentSlide.find('.lg-object');this.initPictureFill($img);}}\nthis.LGel.trigger(lGEvents.afterAppendSlide,{index:index});if(this.lGalleryOn&&this.settings.appendSubHtmlTo==='.lg-item'){this.addHtml(index);}}\nvar _speed=0;var delay=0;if(!this.lGalleryOn){if(this.zoomFromOrigin&&this.currentImageSize){delay=this.settings.startAnimationDuration+10;}\nelse{delay=this.settings.backdropDuration+10;}}\nif(delay&&!$LG(document.body).hasClass('lg-from-hash')){_speed=delay;}\nif(!this.lGalleryOn&&this.zoomFromOrigin&&this.currentImageSize){setTimeout(function(){$currentSlide.removeClass('lg-start-end-progress lg-start-progress').removeAttr('style');},this.settings.startAnimationDuration+100);if(!$currentSlide.hasClass('lg-loaded')){setTimeout(function(){$currentSlide.find('.lg-img-wrap').append(utils.getImgMarkup(index,src,'',srcset,sizes,currentGalleryItem.sources));if(srcset||sources){var $img=$currentSlide.find('.lg-object');_this.initPictureFill($img);}\n_this.onLgObjectLoad($currentSlide,index,delay,_speed,true);var mediaObject=$currentSlide.find('.lg-object').first();if(utils.isImageLoaded(mediaObject.get())){_this.loadContentOnLoad(index,$currentSlide,_speed);}\nelse{mediaObject.on('load.lg error.lg',function(){_this.loadContentOnLoad(index,$currentSlide,_speed);});}},this.settings.startAnimationDuration+100);}}\n$currentSlide.addClass('lg-loaded');this.onLgObjectLoad($currentSlide,index,delay,_speed,false);
2if(videoInfo&&videoInfo.html5&&!poster){$currentSlide.addClass('lg-complete lg-complete_');}\nif((!this.zoomFromOrigin||!this.currentImageSize)&&$currentSlide.hasClass('lg-complete_')&&!this.lGalleryOn){setTimeout(function(){$currentSlide.addClass('lg-complete');},this.settings.backdropDuration);}\nthis.lGalleryOn=true;if(rec===true){if(!$currentSlide.hasClass('lg-complete_')){$currentSlide.find('.lg-object').first().on('load.lg error.lg',function(){_this.preload(index);});}\nelse{this.preload(index);}}};LightGallery.prototype.loadContentOnLoad=function(index,$currentSlide,speed){var _this=this;setTimeout(function(){$currentSlide.find('.lg-dummy-img').remove();$currentSlide.removeClass('lg-first-slide');_this.outer.removeClass('lg-first-slide-loading');_this.isDummyImageRemoved=true;_this.preload(index);},speed+300);};LightGallery.prototype.getItemsToBeInsertedToDom=function(index,prevIndex,numberOfItems){var _this=this;if(numberOfItems===void 0){numberOfItems=0;}\nvar itemsToBeInsertedToDom=[];var possibleNumberOfItems=Math.max(numberOfItems,3);possibleNumberOfItems=Math.min(possibleNumberOfItems,this.galleryItems.length);var prevIndexItem=\"lg-item-\"+this.lgId+\"-\"+prevIndex;if(this.galleryItems.length<=3){this.galleryItems.forEach(function(_element,index){itemsToBeInsertedToDom.push(\"lg-item-\"+_this.lgId+\"-\"+index);});return itemsToBeInsertedToDom;}\nif(index<(this.galleryItems.length-1)/ 2){for(var idx=index;idx>index-possibleNumberOfItems / 2&&idx>=0;idx--){itemsToBeInsertedToDom.push(\"lg-item-\"+this.lgId+\"-\"+idx);}\nvar numberOfExistingItems=itemsToBeInsertedToDom.length;for(var idx=0;idx<possibleNumberOfItems-numberOfExistingItems;idx++){itemsToBeInsertedToDom.push(\"lg-item-\"+this.lgId+\"-\"+(index+idx+1));}}\nelse{for(var idx=index;idx<=this.galleryItems.length-1&&idx<index+possibleNumberOfItems / 2;idx++){itemsToBeInsertedToDom.push(\"lg-item-\"+this.lgId+\"-\"+idx);}\nvar numberOfExistingItems=itemsToBeInsertedToDom.length;for(var idx=0;idx<possibleNumberOfItems-numberOfExistingItems;idx++){itemsToBeInsertedToDom.push(\"lg-item-\"+this.lgId+\"-\"+(index-idx-1));}}\nif(this.settings.loop){if(index===this.galleryItems.length-1){itemsToBeInsertedToDom.push(\"lg-item-\"+this.lgId+\"-\"+0);}\nelse if(index===0){itemsToBeInsertedToDom.push(\"lg-item-\"+this.lgId+\"-\"+(this.galleryItems.length-1));}}\nif(itemsToBeInsertedToDom.indexOf(prevIndexItem)===-1){itemsToBeInsertedToDom.push(\"lg-item-\"+this.lgId+\"-\"+prevIndex);}\nreturn itemsToBeInsertedToDom;};LightGallery.prototype.organizeSlideItems=function(index,prevIndex){var _this=this;var itemsToBeInsertedToDom=this.getItemsToBeInsertedToDom(index,prevIndex,this.settings.numberOfSlideItemsInDom);itemsToBeInsertedToDom.forEach(function(item){if(_this.currentItemsInDom.indexOf(item)===-1){_this.$inner.append(\"<div id=\\\"\"+item+\"\\\" class=\\\"lg-item\\\"></div>\");}});this.currentItemsInDom.forEach(function(item){if(itemsToBeInsertedToDom.indexOf(item)===-1){$LG(\"#\"+item).remove();}});return itemsToBeInsertedToDom;};LightGallery.prototype.getPreviousSlideIndex=function(){var prevIndex=0;try{var currentItemId=this.outer.find('.lg-current').first().attr('id');prevIndex=parseInt(currentItemId.split('-')[3])||0;}\ncatch(error){prevIndex=0;}\nreturn prevIndex;};LightGallery.prototype.setDownloadValue=function(index){if(this.settings.download){var currentGalleryItem=this.galleryItems[index];var hideDownloadBtn=currentGalleryItem.downloadUrl===false||currentGalleryItem.downloadUrl==='false';if(hideDownloadBtn){this.outer.addClass('lg-hide-download');}\nelse{var $download=this.getElementById('lg-download');this.outer.removeClass('lg-hide-download');$download.attr('href',currentGalleryItem.downloadUrl||currentGalleryItem.src);if(currentGalleryItem.download){$download.attr('download',currentGalleryItem.download);}}}};LightGallery.prototype.makeSlideAnimation=function(direction,currentSlideItem,previousSlideItem){var _this=this;if(this.lGalleryOn){previousSlideItem.addClass('lg-slide-progress');}\nsetTimeout(function(){_this.outer.addClass('lg-no-trans');_this.outer.find('.lg-item').removeClass('lg-prev-slide lg-next-slide');if(direction==='prev'){currentSlideItem.addClass('lg-prev-slide');previousSlideItem.addClass('lg-next-slide');}\nelse{currentSlideItem.addClass('lg-next-slide');previousSlideItem.addClass('lg-prev-slide');}\nsetTimeout(function(){_this.outer.find('.lg-item').removeClass('lg-current');currentSlideItem.addClass('lg-current');_this.outer.removeClass('lg-no-trans');},50);},this.lGalleryOn?this.settings.slideDelay:0);};LightGallery.prototype.slide=function(index,fromTouch,fromThumb,direction){var _this=this;var prevIndex=this.getPreviousSlideIndex();this.currentItemsInDom=this.organizeSlideItems(index,prevIndex);if(this.lGalleryOn&&prevIndex===index){return;}\nvar numberOfGalleryItems=this.galleryItems.length;if(!this.lgBusy){if(this.settings.counter){this.updateCurrentCounter(index);}\nvar currentSlideItem=this.getSlideItem(index);var previousSlideItem_1=this.getSlideItem(prevIndex);var currentGalleryItem=this.galleryItems[index];var videoInfo=currentGalleryItem.__slideVideoInfo;
2this.outer.attr('data-lg-slide-type',this.getSlideType(currentGalleryItem));this.setDownloadValue(index);if(videoInfo){var _a=this.mediaContainerPosition,top_3=_a.top,bottom=_a.bottom;var videoSize=utils.getSize(this.items[index],this.outer,top_3+bottom,videoInfo&&this.settings.videoMaxSize);this.resizeVideoSlide(index,videoSize);}\nthis.LGel.trigger(lGEvents.beforeSlide,{prevIndex:prevIndex,index:index,fromTouch:!!fromTouch,fromThumb:!!fromThumb,});this.lgBusy=true;clearTimeout(this.hideBarTimeout);this.arrowDisable(index);if(!direction){if(index<prevIndex){direction='prev';}\nelse if(index>prevIndex){direction='next';}}\nif(!fromTouch){this.makeSlideAnimation(direction,currentSlideItem,previousSlideItem_1);}\nelse{this.outer.find('.lg-item').removeClass('lg-prev-slide lg-current lg-next-slide');var touchPrev=void 0;var touchNext=void 0;if(numberOfGalleryItems>2){touchPrev=index-1;touchNext=index+1;if(index===0&&prevIndex===numberOfGalleryItems-1){touchNext=0;touchPrev=numberOfGalleryItems-1;}\nelse if(index===numberOfGalleryItems-1&&prevIndex===0){touchNext=0;touchPrev=numberOfGalleryItems-1;}}\nelse{touchPrev=0;touchNext=1;}\nif(direction==='prev'){this.getSlideItem(touchNext).addClass('lg-next-slide');}\nelse{this.getSlideItem(touchPrev).addClass('lg-prev-slide');}\ncurrentSlideItem.addClass('lg-current');}\nif(!this.lGalleryOn){this.loadContent(index,true);}\nsetTimeout(function(){if(_this.lGalleryOn){_this.loadContent(index,true);}\nif(_this.settings.appendSubHtmlTo!=='.lg-item'){_this.addHtml(index);}},(this.lGalleryOn?this.settings.speed+50:50)+(fromTouch?0:this.settings.slideDelay));setTimeout(function(){_this.lgBusy=false;previousSlideItem_1.removeClass('lg-slide-progress');_this.LGel.trigger(lGEvents.afterSlide,{prevIndex:prevIndex,index:index,fromTouch:fromTouch,fromThumb:fromThumb,});},(this.lGalleryOn?this.settings.speed+100:100)+(fromTouch?0:this.settings.slideDelay));}\nthis.index=index;};LightGallery.prototype.updateCurrentCounter=function(index){this.getElementById('lg-counter-current').html(index+1+'');};LightGallery.prototype.updateCounterTotal=function(){this.getElementById('lg-counter-all').html(this.galleryItems.length+'');};LightGallery.prototype.getSlideType=function(item){if(item.__slideVideoInfo){return'video';}\nelse if(item.iframe){return'iframe';}\nelse{return'image';}};LightGallery.prototype.touchMove=function(startCoords,endCoords,e){var distanceX=endCoords.pageX-startCoords.pageX;var distanceY=endCoords.pageY-startCoords.pageY;var allowSwipe=false;if(this.swipeDirection){allowSwipe=true;}\nelse{if(Math.abs(distanceX)>15){this.swipeDirection='horizontal';allowSwipe=true;}\nelse if(Math.abs(distanceY)>15){this.swipeDirection='vertical';allowSwipe=true;}}\nif(!allowSwipe){return;}\nvar $currentSlide=this.getSlideItem(this.index);if(this.swipeDirection==='horizontal'){e===null||e===void 0?void 0:e.preventDefault();this.outer.addClass('lg-dragging');this.setTranslate($currentSlide,distanceX,0);var width=$currentSlide.get().offsetWidth;var slideWidthAmount=(width*15)/ 100;var gutter=slideWidthAmount-Math.abs((distanceX*10)/ 100);this.setTranslate(this.outer.find('.lg-prev-slide').first(),-width+distanceX-gutter,0);this.setTranslate(this.outer.find('.lg-next-slide').first(),width+distanceX+gutter,0);}\nelse if(this.swipeDirection==='vertical'){if(this.settings.swipeToClose){e===null||e===void 0?void 0:e.preventDefault();this.$container.addClass('lg-dragging-vertical');var opacity=1-Math.abs(distanceY)/ window.innerHeight;this.$backdrop.css('opacity',opacity);var scale=1-Math.abs(distanceY)/(window.innerWidth*2);this.setTranslate($currentSlide,0,distanceY,scale,scale);if(Math.abs(distanceY)>100){this.outer.addClass('lg-hide-items').removeClass('lg-components-open');}}}};LightGallery.prototype.touchEnd=function(endCoords,startCoords,event){var _this=this;var distance;if(this.settings.mode!=='lg-slide'){this.outer.addClass('lg-slide');}\nsetTimeout(function(){_this.$container.removeClass('lg-dragging-vertical');_this.outer.removeClass('lg-dragging lg-hide-items').addClass('lg-components-open');var triggerClick=true;if(_this.swipeDirection==='horizontal'){distance=endCoords.pageX-startCoords.pageX;var distanceAbs=Math.abs(endCoords.pageX-startCoords.pageX);if(distance<0&&distanceAbs>_this.settings.swipeThreshold){_this.goToNextSlide(true);triggerClick=false;}\nelse if(distance>0&&distanceAbs>_this.settings.swipeThreshold){_this.goToPrevSlide(true);triggerClick=false;}}\nelse if(_this.swipeDirection==='vertical'){distance=Math.abs(endCoords.pageY-startCoords.pageY);if(_this.settings.closable&&_this.settings.swipeToClose&&distance>100){_this.closeGallery();return;}\nelse{_this.$backdrop.css('opacity',1);}}
vendor: 5,753 bytes, line 2
2\n_this.outer.find('.lg-item').removeAttr('style');if(triggerClick&&Math.abs(endCoords.pageX-startCoords.pageX)<5){var target=$LG(event.target);if(_this.isPosterElement(target)){_this.LGel.trigger(lGEvents.posterClick);}}\n_this.swipeDirection=undefined;});setTimeout(function(){if(!_this.outer.hasClass('lg-dragging')&&_this.settings.mode!=='lg-slide'){_this.outer.removeClass('lg-slide');}},this.settings.speed+100);};LightGallery.prototype.enableSwipe=function(){var _this=this;var startCoords={};var endCoords={};var isMoved=false;var isSwiping=false;if(this.settings.enableSwipe){this.$inner.on('touchstart.lg',function(e){_this.dragOrSwipeEnabled=true;var $item=_this.getSlideItem(_this.index);if(($LG(e.target).hasClass('lg-item')||$item.get().contains(e.target))&&!_this.outer.hasClass('lg-zoomed')&&!_this.lgBusy&&e.targetTouches.length===1){isSwiping=true;_this.touchAction='swipe';_this.manageSwipeClass();startCoords={pageX:e.targetTouches[0].pageX,pageY:e.targetTouches[0].pageY,};}});this.$inner.on('touchmove.lg',function(e){if(isSwiping&&_this.touchAction==='swipe'&&e.targetTouches.length===1){endCoords={pageX:e.targetTouches[0].pageX,pageY:e.targetTouches[0].pageY,};_this.touchMove(startCoords,endCoords,e);isMoved=true;}});this.$inner.on('touchend.lg',function(event){if(_this.touchAction==='swipe'){if(isMoved){isMoved=false;_this.touchEnd(endCoords,startCoords,event);}\nelse if(isSwiping){var target=$LG(event.target);if(_this.isPosterElement(target)){_this.LGel.trigger(lGEvents.posterClick);}}\n_this.touchAction=undefined;isSwiping=false;}});}};LightGallery.prototype.enableDrag=function(){var _this=this;var startCoords={};var endCoords={};var isDraging=false;var isMoved=false;if(this.settings.enableDrag){this.outer.on('mousedown.lg',function(e){_this.dragOrSwipeEnabled=true;var $item=_this.getSlideItem(_this.index);if($LG(e.target).hasClass('lg-item')||$item.get().contains(e.target)){if(!_this.outer.hasClass('lg-zoomed')&&!_this.lgBusy){e.preventDefault();if(!_this.lgBusy){_this.manageSwipeClass();startCoords={pageX:e.pageX,pageY:e.pageY,};isDraging=true;_this.outer.get().scrollLeft+=1;_this.outer.get().scrollLeft-=1;_this.outer.removeClass('lg-grab').addClass('lg-grabbing');_this.LGel.trigger(lGEvents.dragStart);}}}});$LG(window).on(\"mousemove.lg.global\"+this.lgId,function(e){if(isDraging&&_this.lgOpened){isMoved=true;endCoords={pageX:e.pageX,pageY:e.pageY,};_this.touchMove(startCoords,endCoords);_this.LGel.trigger(lGEvents.dragMove);}});$LG(window).on(\"mouseup.lg.global\"+this.lgId,function(event){if(!_this.lgOpened){return;}\nvar target=$LG(event.target);if(isMoved){isMoved=false;_this.touchEnd(endCoords,startCoords,event);_this.LGel.trigger(lGEvents.dragEnd);}\nelse if(_this.isPosterElement(target)){_this.LGel.trigger(lGEvents.posterClick);}\nif(isDraging){isDraging=false;_this.outer.removeClass('lg-grabbing').addClass('lg-grab');}});}};LightGallery.prototype.triggerPosterClick=function(){var _this=this;this.$inner.on('click.lg',function(event){if(!_this.dragOrSwipeEnabled&&_this.isPosterElement($LG(event.target))){_this.LGel.trigger(lGEvents.posterClick);}});};LightGallery.prototype.manageSwipeClass=function(){var _touchNext=this.index+1;var _touchPrev=this.index-1;if(this.settings.loop&&this.galleryItems.length>2){if(this.index===0){_touchPrev=this.galleryItems.length-1;}\nelse if(this.index===this.galleryItems.length-1){_touchNext=0;}}\nthis.outer.find('.lg-item').removeClass('lg-next-slide lg-prev-slide');if(_touchPrev>-1){this.getSlideItem(_touchPrev).addClass('lg-prev-slide');}\nthis.getSlideItem(_touchNext).addClass('lg-next-slide');};LightGallery.prototype.goToNextSlide=function(fromTouch){var _this=this;var _loop=this.settings.loop;if(fromTouch&&this.galleryItems.length<3){_loop=false;}\nif(!this.lgBusy){if(this.index+1<this.galleryItems.length){this.index++;this.LGel.trigger(lGEvents.beforeNextSlide,{index:this.index,});this.slide(this.index,!!fromTouch,false,'next');}\nelse{if(_loop){this.index=0;this.LGel.trigger(lGEvents.beforeNextSlide,{index:this.index,});this.slide(this.index,!!fromTouch,false,'next');}\nelse if(this.settings.slideEndAnimation&&!fromTouch){this.outer.addClass('lg-right-end');setTimeout(function(){_this.outer.removeClass('lg-right-end');},400);}}}};LightGallery.prototype.goToPrevSlide=function(fromTouch){var _this=this;var _loop=this.settings.loop;if(fromTouch&&this.galleryItems.length<3){_loop=false;}\nif(!this.lgBusy){if(this.index>0){this.index--;this.LGel.trigger(lGEvents.beforePrevSlide,{index:this.index,fromTouch:fromTouch,});this.slide(this.index,!!fromTouch,false,'prev');}\nelse{if(_loop){this.index=this.galleryItems.length-1;this.LGel.trigger(lGEvents.beforePrevSlide,{index:this.index,fromTouch:fromTouch,});this.slide(this.index,!!fromTouch,false,'prev');}\nelse if(this.settings.slideEndAnimation&&!fromTouch){this.outer.addClass('lg-left-end');setTimeout(function(){_this.outer.removeClass('lg-left-end');},400);}}}};LightGallery.prototype.keyPress=function(){var _this=this;$LG(window).on(\"keydown.lg.global\"+this.lgId,function(e){if(_this.lgOpened&&_this.settings.escKey===true&&e.keyCode===27){e.preventDefault();if(_this.settings.allowMediaOverlap&&_this.outer.hasClass('lg-can-toggle')&&_this.outer.hasClass('lg-components-open')){_this.outer.removeClass('lg-components-open');}\nelse{_this.closeGallery();}}\nif(_this.lgOpened&&_this.galleryItems.length>1){if(e.keyCode===37){e.preventDefault();_this.goToPrevSlide();}\nif(e.keyCode===39){e.preventDefault();_this.goToNextSlide();}}});};LightGallery.prototype.arrow=function(){var _this=this;this.getElementById('lg-prev').on('click.lg',function(){_this.goToPrevSlide();});this.getElementById('lg-next').on('click.lg',function(){_this.goToNextSlide();});};
2LightGallery.prototype.arrowDisable=function(index){if(!this.settings.loop&&this.settings.hideControlOnEnd){var $prev=this.getElementById('lg-prev');var $next=this.getElementById('lg-next');if(index+1===this.galleryItems.length){$next.attr('disabled','disabled').addClass('disabled');}\nelse{$next.removeAttr('disabled').removeClass('disabled');}\nif(index===0){$prev.attr('disabled','disabled').addClass('disabled');}\nelse{$prev.removeAttr('disabled').removeClass('disabled');}}};LightGallery.prototype.setTranslate=function($el,xValue,yValue,scaleX,scaleY){if(scaleX===void 0){scaleX=1;}\nif(scaleY===void 0){scaleY=1;}\n$el.css('transform','translate3d('+\nxValue+'px, '+\nyValue+'px, 0px) scale3d('+\nscaleX+', '+\nscaleY+', 1)');};LightGallery.prototype.mousewheel=function(){var _this=this;this.outer.on('mousewheel.lg',function(e){if(!e.deltaY||_this.galleryItems.length<2){return;}\nif(e.deltaY>0){_this.goToPrevSlide();}\nelse{_this.goToNextSlide();}\ne.preventDefault();});};LightGallery.prototype.isSlideElement=function(target){return(target.hasClass('lg-outer')||target.hasClass('lg-item')||target.hasClass('lg-img-wrap'));};LightGallery.prototype.isPosterElement=function(target){var playButton=this.getSlideItem(this.index).find('.lg-video-play-button').get();return(target.hasClass('lg-video-poster')||target.hasClass('lg-video-play-button')||(playButton&&playButton.contains(target.get())));};LightGallery.prototype.toggleMaximize=function(){var _this=this;this.getElementById('lg-maximize').on('click.lg',function(){_this.$container.toggleClass('lg-inline');_this.refreshOnResize();});};LightGallery.prototype.invalidateItems=function(){for(var index=0;index<this.items.length;index++){var element=this.items[index];var $element=$LG(element);$element.off(\"click.lgcustom-item-\"+$element.attr('data-lg-id'));}};LightGallery.prototype.manageCloseGallery=function(){var _this=this;if(!this.settings.closable)\nreturn;var mousedown=false;this.getElementById('lg-close').on('click.lg',function(){_this.closeGallery();});if(this.settings.closeOnTap){this.outer.on('mousedown.lg',function(e){var target=$LG(e.target);if(_this.isSlideElement(target)){mousedown=true;}\nelse{mousedown=false;}});this.outer.on('mousemove.lg',function(){mousedown=false;});this.outer.on('mouseup.lg',function(e){var target=$LG(e.target);if(_this.isSlideElement(target)&&mousedown){if(!_this.outer.hasClass('lg-dragging')){_this.closeGallery();}}});}};LightGallery.prototype.closeGallery=function(force){var _this=this;if(!this.lgOpened||(!this.settings.closable&&!force)){return 0;}\nthis.LGel.trigger(lGEvents.beforeClose);$LG(window).scrollTop(this.prevScrollTop);var currentItem=this.items[this.index];var transform;if(this.zoomFromOrigin&&currentItem){var _a=this.mediaContainerPosition,top_4=_a.top,bottom=_a.bottom;var imageSize=utils.getSize(currentItem,this.outer,top_4+bottom,this.galleryItems[this.index].__slideVideoInfo&&this.settings.videoMaxSize);transform=utils.getTransform(currentItem,this.outer,top_4,bottom,imageSize);}\nif(this.zoomFromOrigin&&transform){this.outer.addClass('lg-closing lg-zoom-from-image');this.getSlideItem(this.index).addClass('lg-start-end-progress').css('transition-duration',this.settings.startAnimationDuration+'ms').css('transform',transform);}\nelse{this.outer.addClass('lg-hide-items');this.outer.removeClass('lg-zoom-from-image');}\nthis.destroyModules();this.lGalleryOn=false;this.isDummyImageRemoved=false;this.zoomFromOrigin=this.settings.zoomFromOrigin;clearTimeout(this.hideBarTimeout);this.hideBarTimeout=false;$LG('html').removeClass('lg-on');this.outer.removeClass('lg-visible lg-components-open');this.$backdrop.removeClass('in').css('opacity',0);var removeTimeout=this.zoomFromOrigin&&transform?Math.max(this.settings.startAnimationDuration,this.settings.backdropDuration):this.settings.backdropDuration;this.$container.removeClass('lg-show-in');setTimeout(function(){if(_this.zoomFromOrigin&&transform){_this.outer.removeClass('lg-zoom-from-image');}\n_this.$container.removeClass('lg-show');_this.$backdrop.removeAttr('style').css('transition-duration',_this.settings.backdropDuration+'ms');_this.outer.removeClass(\"lg-closing \"+_this.settings.startClass);
2_this.getSlideItem(_this.index).removeClass('lg-start-end-progress');_this.$inner.empty();if(_this.lgOpened){_this.LGel.trigger(lGEvents.afterClose,{instance:_this,});}\nif(_this.outer.get()){_this.outer.get().blur();}\n_this.lgOpened=false;},removeTimeout+100);return removeTimeout+100;};LightGallery.prototype.initModules=function(){this.plugins.forEach(function(module){try{module.init();}\ncatch(err){console.warn(\"lightGallery:- make sure lightGallery module is properly initiated\");}});};LightGallery.prototype.destroyModules=function(destroy){this.plugins.forEach(function(module){try{if(destroy){module.destroy();}\nelse{module.closeGallery&&module.closeGallery();}}\ncatch(err){console.warn(\"lightGallery:- make sure lightGallery module is properly destroyed\");}});};LightGallery.prototype.refresh=function(galleryItems){if(!this.settings.dynamic){this.invalidateItems();}\nif(galleryItems){this.galleryItems=galleryItems;}\nelse{this.galleryItems=this.getItems();}\nthis.updateControls();this.openGalleryOnItemClick();this.LGel.trigger(lGEvents.updateSlides);};LightGallery.prototype.updateControls=function(){this.addSlideVideoInfo(this.galleryItems);this.updateCounterTotal();this.manageSingleSlideClassName();};LightGallery.prototype.destroy=function(){var _this=this;var closeTimeout=this.closeGallery(true);setTimeout(function(){_this.destroyModules(true);if(!_this.settings.dynamic){_this.invalidateItems();}\n$LG(window).off(\".lg.global\"+_this.lgId);_this.LGel.off('.lg');_this.$container.remove();},closeTimeout);return closeTimeout;};return LightGallery;}());function lightGallery(el,options){return new LightGallery(el,options);}\nreturn lightGallery;})));","Nw_Additions/lib/lightgallery/plugins/relativeCaption/lg-relative-caption.umd.min.js":"/*!\n * lightgallery | 2.2.1 | September 4th 2021\n * http://www.lightgalleryjs.com/\n * Copyright (c) 2020 Sachin Neravath;\n * @license GPLv3\n */\n(function(global,factory){typeof exports==='object'&&typeof module!=='undefined'?module.exports=factory():typeof define==='function'&&define.amd?define(factory):(global=typeof globalThis!=='undefined'?globalThis:global||self,global.lgRelativeCaption=factory());}(this,(function(){'use strict';/*! *****************************************************************************\n    Copyright (c) Microsoft Corporation.\n\n    Permission to use, copy, modify, and/or distribute this software for any\n    purpose with or without fee is hereby granted.\n\n    THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\n    REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\n    AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\n    INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\n    LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\n    OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\n    PERFORMANCE OF THIS SOFTWARE.\n    ***************************************************************************** */\nvar __assign=function(){__assign=Object.assign||function __assign(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p];}\nreturn t;};return __assign.apply(this,arguments);};var lGEvents={afterAppendSlide:'lgAfterAppendSlide',init:'lgInit',hasVideo:'lgHasVideo',containerResize:'lgContainerResize',updateSlides:'lgUpdateSlides',afterAppendSubHtml:'lgAfterAppendSubHtml',beforeOpen:'lgBeforeOpen',afterOpen:'lgAfterOpen',slideItemLoad:'lgSlideItemLoad',beforeSlide:'lgBeforeSlide',afterSlide:'lgAfterSlide',posterClick:'lgPosterClick',dragStart:'lgDragStart',dragMove:'lgDragMove',dragEnd:'lgDragEnd',beforeNextSlide:'lgBeforeNextSlide',beforePrevSlide:'lgBeforePrevSlide',beforeClose:'lgBeforeClose',afterClose:'lgAfterClose',rotateLeft:'lgRotateLeft',rotateRight:'lgRotateRight',flipHorizontal:'lgFlipHorizontal',flipVertical:'lgFlipVertical',};var relativeCaptionSettings={relativeCaption:false,};var RelativeCaption=(function(){function RelativeCaption(instance){this.core=instance;var defaultSettings={addClass:this.core.settings.addClass+' lg-relative-caption',};this.core.settings=__assign(__assign({},this.core.settings),defaultSettings);this.settings=__assign(__assign(__assign({},relativeCaptionSettings),this.core.settings),defaultSettings);return this;}\nRelativeCaption.prototype.init=function(){var _this=this;if(!this.settings.relativeCaption){return;}\nthis.core.LGel.on(lGEvents.slideItemLoad+\".caption\",function(event){var _a=event.detail,index=_a.index,delay=_a.delay;setTimeout(function(){if(index===_this.core.index){_this.setRelativeCaption(index);}},delay);});this.core.LGel.on(lGEvents.afterSlide+\".caption\",function(event){var index=event.detail.index;setTimeout(function(){var slide=_this.core.getSlideItem(index);if(slide.hasClass('lg-complete')){_this.setRelativeCaption(index);}});});this.core.LGel.on(lGEvents.beforeSlide+\".caption\",function(event){var index=event.detail.index;setTimeout(function(){var slide=_this.core.getSlideItem(index);slide.removeClass('lg-show-caption');});});this.core.LGel.on(lGEvents.containerResize+\".caption\",function(event){_this.setRelativeCaption(_this.core.index);});};RelativeCaption.prototype.setCaptionStyle=function(index,rect,slideWrapRect){var $subHtmlInner=this.core.getSlideItem(index).find('.lg-relative-caption-item');var $subHtml=this.core.getSlideItem(index).find('.lg-sub-html');$subHtml.css('width',rect.width+\"px\").css('left',rect.left+\"px\");var subHtmlRect=$subHtmlInner.get().getBoundingClientRect();var bottom=slideWrapRect.bottom-rect.bottom-subHtmlRect.height;$subHtml.css('top',\"auto\").css('bottom',Math.max(bottom,0)+\"px\");};RelativeCaption.prototype.setRelativeCaption=function(index){var slide=this.core.getSlideItem(index);if(slide.hasClass('lg-current')){var rect=this.core.getSlideItem(index).find('.lg-object').get().getBoundingClientRect();var slideWrapRect=this.core.getSlideItem(index).get().getBoundingClientRect();this.setCaptionStyle(index,rect,slideWrapRect);slide.addClass('lg-show-caption');}};RelativeCaption.prototype.destroy=function(){this.core.LGel.off('.caption');};return RelativeCaption;}());return RelativeCaption;})));","Nw_Additions/lib/lightgallery/plugins/relativeCaption/lg-relative-caption.min.js":"/**\n * lightgallery | 2.2.1 | September 4th 2021\n * http://www.lightgalleryjs.com/\n * Copyright (c) 2020 Sachin Neravath;\n * @license GPLv3\n */\n\n!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(e):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).lgRelativeCaption=e()}(this,(function(){\"use strict\";var t=function(){return(t=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)},e=\"lgContainerResize\",i=\"lgSlideItemLoad\",o=\"lgBeforeSlide\",n=\"lgAfterSlide\",s={relativeCaption:!1};return function(){function l(e){this.core=e;var i={addClass:this.core.settings.addClass+\" lg-relative-caption\"};return this.core.settings=t(t({},this.core.settings),i),this.settings=t(t(t({},s),this.core.settings),i),this}return l.prototype.init=function(){var t=this;this.settings.relativeCaption&&(this.core.LGel.on(i+\".caption\",(function(e){var i=e.detail,o=i.index,n=i.delay;
2setTimeout((function(){o===t.core.index&&t.setRelativeCaption(o)}),n)})),this.core.LGel.on(n+\".caption\",(function(e){var i=e.detail.index;setTimeout((function(){t.core.getSlideItem(i).hasClass(\"lg-complete\")&&t.setRelativeCaption(i)}))})),this.core.LGel.on(o+\".caption\",(function(e){var i=e.detail.index;setTimeout((function(){t.core.getSlideItem(i).removeClass(\"lg-show-caption\")}))})),this.core.LGel.on(e+\".caption\",(function(e){t.setRelativeCaption(t.core.index)})))},l.prototype.setCaptionStyle=function(t,e,i){var o=this.core.getSlideItem(t).find(\".lg-relative-caption-item\"),n=this.core.getSlideItem(t).find(\".lg-sub-html\");n.css(\"width\",e.width+\"px\").css(\"left\",e.left+\"px\");var s=o.get().getBoundingClientRect(),l=i.bottom-e.bottom-s.height;n.css(\"top\",\"auto\").css(\"bottom\",Math.max(l,0)+\"px\")},l.prototype.setRelativeCaption=function(t){var e=this.core.getSlideItem(t);if(e.hasClass(\"lg-current\")){var i=this.core.getSlideItem(t).find(\".lg-object\").get().getBoundingClientRect(),o=this.core.getSlideItem(t).get().getBoundingClientRect();this.setCaptionStyle(t,i,o),e.addClass(\"lg-show-caption\")}},l.prototype.destroy=function(){this.core.LGel.off(\".caption\")},l}()}));\n","Nw_Additions/lib/lightgallery/plugins/relativeCaption/lg-relative-caption.es5.min.js":"/*!\n * lightgallery | 2.2.1 | September 4th 2021\n * http://www.lightgalleryjs.com/\n * Copyright (c) 2020 Sachin Neravath;\n * @license GPLv3\n */\n\n/*! *****************************************************************************\nCopyright (c) Microsoft Corporation.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n***************************************************************************** */\nvar __assign=function(){__assign=Object.assign||function __assign(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p];}\nreturn t;};return __assign.apply(this,arguments);};var lGEvents={afterAppendSlide:'lgAfterAppendSlide',init:'lgInit',hasVideo:'lgHasVideo',containerResize:'lgContainerResize',updateSlides:'lgUpdateSlides',afterAppendSubHtml:'lgAfterAppendSubHtml',beforeOpen:'lgBeforeOpen',afterOpen:'lgAfterOpen',slideItemLoad:'lgSlideItemLoad',beforeSlide:'lgBeforeSlide',afterSlide:'lgAfterSlide',posterClick:'lgPosterClick',dragStart:'lgDragStart',dragMove:'lgDragMove',dragEnd:'lgDragEnd',beforeNextSlide:'lgBeforeNextSlide',beforePrevSlide:'lgBeforePrevSlide',beforeClose:'lgBeforeClose',afterClose:'lgAfterClose',rotateLeft:'lgRotateLeft',rotateRight:'lgRotateRight',flipHorizontal:'lgFlipHorizontal',flipVertical:'lgFlipVertical',};var relativeCaptionSettings={relativeCaption:false,};var RelativeCaption=(function(){function RelativeCaption(instance){this.core=instance;var defaultSettings={addClass:this.core.settings.addClass+' lg-relative-caption',};this.core.settings=__assign(__assign({},this.core.settings),defaultSettings);this.settings=__assign(__assign(__assign({},relativeCaptionSettings),this.core.settings),defaultSettings);return this;}\nRelativeCaption.prototype.init=function(){var _this=this;if(!this.settings.relativeCaption){return;}\nthis.core.LGel.on(lGEvents.slideItemLoad+\".caption\",function(event){var _a=event.detail,index=_a.index,delay=_a.delay;setTimeout(function(){if(index===_this.core.index){_this.setRelativeCaption(index);}},delay);});this.core.LGel.on(lGEvents.afterSlide+\".caption\",function(event){var index=event.detail.index;setTimeout(function(){var slide=_this.core.getSlideItem(index);if(slide.hasClass('lg-complete')){_this.setRelativeCaption(index);}});});this.core.LGel.on(lGEvents.beforeSlide+\".caption\",function(event){var index=event.detail.index;setTimeout(function(){var slide=_this.core.getSlideItem(index);slide.removeClass('lg-show-caption');});});this.core.LGel.on(lGEvents.containerResize+\".caption\",function(event){_this.setRelativeCaption(_this.core.index);});};RelativeCaption.prototype.setCaptionStyle=function(index,rect,slideWrapRect){var $subHtmlInner=this.core.getSlideItem(index).find('.lg-relative-caption-item');var $subHtml=this.core.getSlideItem(index).find('.lg-sub-html');$subHtml.css('width',rect.width+\"px\").css('left',rect.left+\"px\");var subHtmlRect=$subHtmlInner.get().getBoundingClientRect();var bottom=slideWrapRect.bottom-rect.bottom-subHtmlRect.height;$subHtml.css('top',\"auto\").css('bottom',Math.max(bottom,0)+\"px\");};RelativeCaption.prototype.setRelativeCaption=function(index){var slide=this.core.getSlideItem(index);if(slide.hasClass('lg-current')){var rect=this.core.getSlideItem(index).find('.lg-object').get().getBoundingClientRect();var slideWrapRect=this.core.getSlideItem(index).get().getBoundingClientRect();this.setCaptionStyle(index,rect,slideWrapRect);slide.addClass('lg-show-caption');}};RelativeCaption.prototype.destroy=function(){this.core.LGel.off('.caption');};return RelativeCaption;}());
2export default RelativeCaption;","Nw_Additions/lib/lightgallery/plugins/mediumZoom/lg-medium-zoom.es5.min.js":"/*!\n * lightgallery | 2.2.1 | September 4th 2021\n * http://www.lightgalleryjs.com/\n * Copyright (c) 2020 Sachin Neravath;\n * @license GPLv3\n */\n\n/*! *****************************************************************************\nCopyright (c) Microsoft Corporation.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n***************************************************************************** */\nvar __assign=function(){__assign=Object.assign||function __assign(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p];}\nreturn t;};return __assign.apply(this,arguments);};var lGEvents={afterAppendSlide:'lgAfterAppendSlide',init:'lgInit',hasVideo:'lgHasVideo',containerResize:'lgContainerResize',updateSlides:'lgUpdateSlides',afterAppendSubHtml:'lgAfterAppendSubHtml',beforeOpen:'lgBeforeOpen',afterOpen:'lgAfterOpen',slideItemLoad:'lgSlideItemLoad',beforeSlide:'lgBeforeSlide',afterSlide:'lgAfterSlide',posterClick:'lgPosterClick',dragStart:'lgDragStart',dragMove:'lgDragMove',dragEnd:'lgDragEnd',beforeNextSlide:'lgBeforeNextSlide',beforePrevSlide:'lgBeforePrevSlide',beforeClose:'lgBeforeClose',afterClose:'lgAfterClose',rotateLeft:'lgRotateLeft',rotateRight:'lgRotateRight',flipHorizontal:'lgFlipHorizontal',flipVertical:'lgFlipVertical',};var mediumZoomSettings={margin:40,mediumZoom:true,backgroundColor:'#000',};var MediumZoom=(function(){function MediumZoom(instance,$LG){var _this=this;this.core=instance;this.$LG=$LG;this.core.getMediaContainerPosition=function(){return{top:_this.settings.margin,bottom:_this.settings.margin,};};var defaultSettings={controls:false,download:false,counter:false,showCloseIcon:false,extraProps:['lgBackgroundColor'],closeOnTap:false,enableSwipe:false,enableDrag:false,swipeToClose:false,addClass:this.core.settings.addClass+' lg-medium-zoom',};this.core.settings=__assign(__assign({},this.core.settings),defaultSettings);this.settings=__assign(__assign(__assign({},mediumZoomSettings),this.core.settings),defaultSettings);return this;}\nMediumZoom.prototype.toggleItemClass=function(){for(var index=0;index<this.core.items.length;index++){var $element=this.$LG(this.core.items[index]);$element.toggleClass('lg-medium-zoom-item');}};MediumZoom.prototype.init=function(){var _this=this;if(!this.settings.mediumZoom){return;}\nthis.core.LGel.on(lGEvents.beforeOpen+\".medium\",function(){_this.core.$backdrop.css('background-color',_this.core.galleryItems[_this.core.index].lgBackgroundColor||_this.settings.backgroundColor);});this.toggleItemClass();this.core.outer.on('click.lg.medium',function(){_this.core.closeGallery();});};MediumZoom.prototype.destroy=function(){this.toggleItemClass();};return MediumZoom;}());export default MediumZoom;","Nw_Additions/lib/lightgallery/plugins/mediumZoom/lg-medium-zoom.min.js":"/**\n * lightgallery | 2.2.1 | September 4th 2021\n * http://www.lightgalleryjs.com/\n * Copyright (c) 2020 Sachin Neravath;\n * @license GPLv3\n */\n\n!function(o,t){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define(t):(o=\"undefined\"!=typeof globalThis?globalThis:o||self).lgMediumZoom=t()}(this,(function(){\"use strict\";var o=function(){return(o=Object.assign||function(o){for(var t,e=1,i=arguments.length;e<i;e++)for(var n in t=arguments[e])Object.prototype.hasOwnProperty.call(t,n)&&(o[n]=t[n]);return o}
2).apply(this,arguments)},t=\"lgBeforeOpen\",e={margin:40,mediumZoom:!0,backgroundColor:\"#000\"};return function(){function i(t,i){var n=this;this.core=t,this.$LG=i,this.core.getMediaContainerPosition=function(){return{top:n.settings.margin,bottom:n.settings.margin}};var s={controls:!1,download:!1,counter:!1,showCloseIcon:!1,extraProps:[\"lgBackgroundColor\"],closeOnTap:!1,enableSwipe:!1,enableDrag:!1,swipeToClose:!1,addClass:this.core.settings.addClass+\" lg-medium-zoom\"};return this.core.settings=o(o({},this.core.settings),s),this.settings=o(o(o({},e),this.core.settings),s),this}return i.prototype.toggleItemClass=function(){for(var o=0;o<this.core.items.length;o++){this.$LG(this.core.items[o]).toggleClass(\"lg-medium-zoom-item\")}},i.prototype.init=function(){var o=this;this.settings.mediumZoom&&(this.core.LGel.on(t+\".medium\",(function(){o.core.$backdrop.css(\"background-color\",o.core.galleryItems[o.core.index].lgBackgroundColor||o.settings.backgroundColor)})),this.toggleItemClass(),this.core.outer.on(\"click.lg.medium\",(function(){o.core.closeGallery()})))},i.prototype.destroy=function(){this.toggleItemClass()},i}()}));\n","Nw_Additions/lib/lightgallery/plugins/mediumZoom/lg-medium-zoom.umd.min.js":"/*!\n * lightgallery | 2.2.1 | September 4th 2021\n * http://www.lightgalleryjs.com/\n * Copyright (c) 2020 Sachin Neravath;\n * @license GPLv3\n */\n(function(global,factory){typeof exports==='object'&&typeof module!=='undefined'?module.exports=factory():typeof define==='function'&&define.amd?define(factory):(global=typeof globalThis!=='undefined'?globalThis:global||self,global.lgMediumZoom=factory());}(this,(function(){'use strict';/*! *****************************************************************************\n    Copyright (c) Microsoft Corporation.\n\n    Permission to use, copy, modify, and/or distribute this software for any\n    purpose with or without fee is hereby granted.\n\n    THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\n    REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\n    AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\n    INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\n    LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\n    OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\n    PERFORMANCE OF THIS SOFTWARE.\n    ***************************************************************************** */\nvar __assign=function(){__assign=Object.assign||function __assign(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p];}\nreturn t;};return __assign.apply(this,arguments);};var lGEvents={afterAppendSlide:'lgAfterAppendSlide',init:'lgInit',hasVideo:'lgHasVideo',containerResize:'lgContainerResize',updateSlides:'lgUpdateSlides',afterAppendSubHtml:'lgAfterAppendSubHtml',beforeOpen:'lgBeforeOpen',afterOpen:'lgAfterOpen',slideItemLoad:'lgSlideItemLoad',beforeSlide:'lgBeforeSlide',afterSlide:'lgAfterSlide',posterClick:'lgPosterClick',dragStart:'lgDragStart',dragMove:'lgDragMove',dragEnd:'lgDragEnd',beforeNextSlide:'lgBeforeNextSlide',beforePrevSlide:'lgBeforePrevSlide',beforeClose:'lgBeforeClose',afterClose:'lgAfterClose',rotateLeft:'lgRotateLeft',rotateRight:'lgRotateRight',flipHorizontal:'lgFlipHorizontal',flipVertical:'lgFlipVertical',};var mediumZoomSettings={margin:40,mediumZoom:true,backgroundColor:'#000',};var MediumZoom=(function(){function MediumZoom(instance,$LG){var _this=this;this.core=instance;this.$LG=$LG;this.core.getMediaContainerPosition=function(){return{top:_this.settings.margin,bottom:_this.settings.margin,};};var defaultSettings={controls:false,download:false,counter:false,showCloseIcon:false,extraProps:['lgBackgroundColor'],closeOnTap:false,enableSwipe:false,enableDrag:false,swipeToClose:false,addClass:this.core.settings.addClass+' lg-medium-zoom',};this.core.settings=__assign(__assign({},this.core.settings),defaultSettings);this.settings=__assign(__assign(__assign({},mediumZoomSettings),this.core.settings),defaultSettings);return this;}\nMediumZoom.prototype.toggleItemClass=function(){for(var index=0;
2index<this.core.items.length;index++){var $element=this.$LG(this.core.items[index]);$element.toggleClass('lg-medium-zoom-item');}};MediumZoom.prototype.init=function(){var _this=this;if(!this.settings.mediumZoom){return;}\nthis.core.LGel.on(lGEvents.beforeOpen+\".medium\",function(){_this.core.$backdrop.css('background-color',_this.core.galleryItems[_this.core.index].lgBackgroundColor||_this.settings.backgroundColor);});this.toggleItemClass();this.core.outer.on('click.lg.medium',function(){_this.core.closeGallery();});};MediumZoom.prototype.destroy=function(){this.toggleItemClass();};return MediumZoom;}());return MediumZoom;})));","Nw_Additions/lib/lightgallery/plugins/fullscreen/lg-fullscreen.min.js":"/**\n * lightgallery | 2.2.1 | September 4th 2021\n * http://www.lightgalleryjs.com/\n * Copyright (c) 2020 Sachin Neravath;\n * @license GPLv3\n */\n\n!function(e,l){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=l():\"function\"==typeof define&&define.amd?define(l):(e=\"undefined\"!=typeof globalThis?globalThis:e||self).lgFullscreen=l()}(this,(function(){\"use strict\";var e=function(){return(e=Object.assign||function(e){for(var l,n=1,t=arguments.length;n<t;n++)for(var c in l=arguments[n])Object.prototype.hasOwnProperty.call(l,c)&&(e[c]=l[c]);return e}).apply(this,arguments)},l={fullScreen:!0};return function(){function n(n,t){return this.core=n,this.$LG=t,this.settings=e(e({},l),this.core.settings),this}return n.prototype.init=function(){var e=\"\";if(this.settings.fullScreen){if(!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled))return;e='<button type=\"button\" aria-label=\"Toggle fullscreen\" class=\"lg-fullscreen lg-icon\"></button>',this.core.$toolbar.append(e),this.fullScreen()}},n.prototype.isFullScreen=function(){return document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement},n.prototype.requestFullscreen=function(){var e=document.documentElement;e.requestFullscreen?e.requestFullscreen():e.msRequestFullscreen?e.msRequestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen&&e.webkitRequestFullscreen()},n.prototype.exitFullscreen=function(){document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen()},n.prototype.fullScreen=function(){var e=this;this.$LG(document).on(\"fullscreenchange.lg.global\"+this.core.lgId+\" \\n            webkitfullscreenchange.lg.global\"+this.core.lgId+\" \\n            mozfullscreenchange.lg.global\"+this.core.lgId+\" \\n            MSFullscreenChange.lg.global\"+this.core.lgId,(function(){e.core.lgOpened&&e.core.outer.toggleClass(\"lg-fullscreen-on\")})),this.core.outer.find(\".lg-fullscreen\").first().on(\"click.lg\",(function(){e.isFullScreen()?e.exitFullscreen():e.requestFullscreen()}))},n.prototype.closeGallery=function(){this.isFullScreen()&&this.exitFullscreen()},n.prototype.destroy=function(){this.$LG(document).off(\"fullscreenchange.lg.global\"+this.core.lgId+\" \\n            webkitfullscreenchange.lg.global\"+this.core.lgId+\" \\n            mozfullscreenchange.lg.global\"+this.core.lgId+\" \\n            MSFullscreenChange.lg.global\"+this.core.lgId)},n}()}));\n","Nw_Additions/lib/lightgallery/plugins/fullscreen/lg-fullscreen.es5.min.js":"/*!\n * lightgallery | 2.2.1 | September 4th 2021\n * http://www.lightgalleryjs.com/\n * Copyright (c) 2020 Sachin Neravath;\n * @license GPLv3\n */\n\n/*! *****************************************************************************\nCopyright (c) Microsoft Corporation.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n***************************************************************************** */\nvar __assign=function(){__assign=Object.assign||function __assign(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p];}\nreturn t;};return __assign.apply(this,arguments);};var fullscreenSettings={fullScreen:true,};var FullScreen=(function(){function FullScreen(instance,$LG){this.core=instance;this.$LG=$LG;this.settings=__assign(__assign({},fullscreenSettings),this.core.settings);return this;}\nFullScreen.prototype.init=function(){var fullScreen='';if(this.settings.fullScreen){if(!document.fullscreenEnabled&&!document.webkitFullscreenEnabled&&!document.mozFullScreenEnabled&&!document.msFullscreenEnabled){return;}\nelse{fullScreen='<button type=\"button\" aria-label=\"Toggle fullscreen\" class=\"lg-fullscreen lg-icon\"></button>';this.core.$toolbar.append(fullScreen);this.fullScreen();}}};FullScreen.prototype.isFullScreen=function(){return(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement);};FullScreen.prototype.requestFullscreen=function(){var el=document.documentElement;if(el.requestFullscreen){el.requestFullscreen();}\nelse if(el.msRequestFullscreen){el.msRequestFullscreen();}\nelse if(el.mozRequestFullScreen){el.mozRequestFullScreen();}\nelse if(el.webkitRequestFullscreen){el.webkitRequestFullscreen();}};FullScreen.prototype.exitFullscreen=function(){if(document.exitFullscreen){document.exitFullscreen();}\nelse if(document.msExitFullscreen){document.msExitFullscreen();}\nelse if(document.mozCancelFullScreen){document.mozCancelFullScreen();}\nelse if(document.webkitExitFullscreen){document.webkitExitFullscreen();}};FullScreen.prototype.fullScreen=function(){var _this=this;this.$LG(document).on(\"fullscreenchange.lg.global\"+this.core.lgId+\" \\n            webkitfullscreenchange.lg.global\"+this.core.lgId+\" \\n            mozfullscreenchange.lg.global\"+this.core.lgId+\" \\n            MSFullscreenChange.lg.global\"+this.core.lgId,function(){if(!_this.core.lgOpened)\nreturn;_this.core.outer.toggleClass('lg-fullscreen-on');});this.core.outer.find('.lg-fullscreen').first().on('click.lg',function(){if(_this.isFullScreen()){_this.exitFullscreen();}\nelse{_this.requestFullscreen();}});};FullScreen.prototype.closeGallery=function(){if(this.isFullScreen()){this.exitFullscreen();}};FullScreen.prototype.destroy=function(){this.$LG(document).off(\"fullscreenchange.lg.global\"+this.core.lgId+\" \\n            webkitfullscreenchange.lg.global\"+this.core.lgId+\" \\n            mozfullscreenchange.lg.global\"+this.core.lgId+\" \\n            MSFullscreenChange.lg.global\"+this.core.lgId);};return FullScreen;}());
2export default FullScreen;","Nw_Additions/lib/lightgallery/plugins/fullscreen/lg-fullscreen.umd.min.js":"/*!\n * lightgallery | 2.2.1 | September 4th 2021\n * http://www.lightgalleryjs.com/\n * Copyright (c) 2020 Sachin Neravath;\n * @license GPLv3\n */\n(function(global,factory){typeof exports==='object'&&typeof module!=='undefined'?module.exports=factory():typeof define==='function'&&define.amd?define(factory):(global=typeof globalThis!=='undefined'?globalThis:global||self,global.lgFullscreen=factory());}(this,(function(){'use strict';/*! *****************************************************************************\n    Copyright (c) Microsoft Corporation.\n\n    Permission to use, copy, modify, and/or distribute this software for any\n    purpose with or without fee is hereby granted.\n\n    THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\n    REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\n    AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\n    INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\n    LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\n    OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\n    PERFORMANCE OF THIS SOFTWARE.\n    ***************************************************************************** */\nvar __assign=function(){__assign=Object.assign||function __assign(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p];}\nreturn t;};return __assign.apply(this,arguments);};var fullscreenSettings={fullScreen:true,};var FullScreen=(function(){function FullScreen(instance,$LG){this.core=instance;this.$LG=$LG;this.settings=__assign(__assign({},fullscreenSettings),this.core.settings);return this;}\nFullScreen.prototype.init=function(){var fullScreen='';if(this.settings.fullScreen){if(!document.fullscreenEnabled&&!document.webkitFullscreenEnabled&&!document.mozFullScreenEnabled&&!document.msFullscreenEnabled){return;}\nelse{fullScreen='<button type=\"button\" aria-label=\"Toggle fullscreen\" class=\"lg-fullscreen lg-icon\"></button>';this.core.$toolbar.append(fullScreen);this.fullScreen();}}};FullScreen.prototype.isFullScreen=function(){return(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement);};FullScreen.prototype.requestFullscreen=function(){var el=document.documentElement;if(el.requestFullscreen){el.requestFullscreen();}\nelse if(el.msRequestFullscreen){el.msRequestFullscreen();}\nelse if(el.mozRequestFullScreen){el.mozRequestFullScreen();}\nelse if(el.webkitRequestFullscreen){el.webkitRequestFullscreen();}};FullScreen.prototype.exitFullscreen=function(){if(document.exitFullscreen){document.exitFullscreen();}\nelse if(document.msExitFullscreen){document.msExitFullscreen();}\nelse if(document.mozCancelFullScreen){document.mozCancelFullScreen();}\nelse if(document.webkitExitFullscreen){document.webkitExitFullscreen();}};FullScreen.prototype.fullScreen=function(){var _this=this;this.$LG(document).on(\"fullscreenchange.lg.global\"+this.core.lgId+\" \\n            webkitfullscreenchange.lg.global\"+this.core.lgId+\" \\n            mozfullscreenchange.lg.global\"+this.core.lgId+\" \\n            MSFullscreenChange.lg.global\"+this.core.lgId,function(){if(!_this.core.lgOpened)\nreturn;_this.core.outer.toggleClass('lg-fullscreen-on');});this.core.outer.find('.lg-fullscreen').first().on('click.lg',function(){if(_this.isFullScreen()){_this.exitFullscreen();}\nelse{_this.requestFullscreen();}});};FullScreen.prototype.closeGallery=function(){if(this.isFullScreen()){this.exitFullscreen();}};FullScreen.prototype.destroy=function(){this.$LG(document).off(\"fullscreenchange.lg.global\"+this.core.lgId+\" \\n            webkitfullscreenchange.lg.global\"+this.core.lgId+\" \\n            mozfullscreenchange.lg.global\"+this.core.lgId+\" \\n            MSFullscreenChange.lg.global\"+this.core.lgId);};return FullScreen;}());return FullScreen;})));","Nw_Additions/lib/lightgallery/plugins/autoplay/lg-autoplay.min.js":"/**\n * lightgallery | 2.2.1 | September 4th 2021\n * http://www.lightgalleryjs.com/\n * Copyright (c) 2020 Sachin Neravath;\n * @license GPLv3\n */\n\n!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(e):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).lgAutoplay=e()}(this,(function(){\"use strict\";var t=function(){return(t=Object.assign||function(t){for(var e,o=1,s=arguments.length;o<s;o++)for(var r in e=arguments[o])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},e=\"lgSlideItemLoad\",o=\"lgBeforeSlide\",s=\"lgAfterSlide\",r=\"lgDragStart\",i=\"lgDragEnd\",a={autoplay:!0,slideShowAutoplay:!1,slideShowInterval:5e3,progressBar:!0,forceSlideShowAutoplay:!1,autoplayControls:!0,appendAutoplayControlsTo:\".lg-toolbar\"};return function(){function n(e){return this.core=e,this.settings=t(t({},a),this.core.settings),this}return n.prototype.init=function(){var t=this;this.settings.autoplay&&(this.interval=!1,this.fromAuto=!0,this.pausedOnTouchDrag=!1,this.pausedOnSlideChange=!1,this.settings.autoplayControls&&this.controls(),this.settings.progressBar&&this.core.outer.append('<div class=\"lg-progress-bar\"><div class=\"lg-progress\"></div></div>'),this.settings.slideShowAutoplay&&this.core.LGel.once(e+\".autoplay\",(function(){t.startAuto()})),this.core.LGel.on(r+\".autoplay touchstart.lg.autoplay\",(function(){t.interval&&(t.cancelAuto(),t.pausedOnTouchDrag=!0)})),this.core.LGel.on(i+\".autoplay touchend.lg.autoplay\",(function(){!t.interval&&t.pausedOnTouchDrag&&(t.startAuto(),t.pausedOnTouchDrag=!1)})),this.core.LGel.on(o+\".autoplay\",(function(){t.showProgressBar(),!t.fromAuto&&t.interval?(t.cancelAuto(),t.pausedOnSlideChange=!0):t.pausedOnSlideChange=!1,t.fromAuto=!1})),this.core.LGel.on(s+\".autoplay\",(function(){t.pausedOnSlideChange&&!t.interval&&t.settings.forceSlideShowAutoplay&&(t.startAuto(),t.pausedOnSlideChange=!1)})),this.showProgressBar())},n.prototype.showProgressBar=function(){var t=this;if(this.settings.progressBar&&this.fromAuto){var e=this.core.outer.find(\".lg-progress-bar\"),o=this.core.outer.find(\".lg-progress\");this.interval&&(o.removeAttr(\"style\"),e.removeClass(\"lg-start\"),setTimeout((function(){o.css(\"transition\",\"width \"+(t.core.settings.speed+t.settings.slideShowInterval)+\"ms ease 0s\"),e.addClass(\"lg-start\")}),20))}},n.prototype.controls=function(){var t=this;this.core.outer.find(this.settings.appendAutoplayControlsTo).append('<button aria-label=\"Toggle autoplay\" type=\"button\" class=\"lg-autoplay-button lg-icon\"></button>'),this.core.outer.find(\".lg-autoplay-button\").first().on(\"click.lg.autoplay\",(function(){t.core.outer.hasClass(\"lg-show-autoplay\")?t.cancelAuto():t.interval||t.startAuto()}))},n.prototype.startAuto=function(){var t=this;this.core.outer.find(\".lg-progress\").css(\"transition\",\"width \"+(this.core.settings.speed+this.settings.slideShowInterval)+\"ms ease 0s\"),this.core.outer.addClass(\"lg-show-autoplay\"),this.core.outer.find(\".lg-progress-bar\").addClass(\"lg-start\"),this.interval=setInterval((function(){t.core.index+1<t.core.galleryItems.length?t.core.index++:t.core.
2index=0,t.fromAuto=!0,t.core.slide(t.core.index,!1,!1,\"next\")}),this.core.settings.speed+this.settings.slideShowInterval)},n.prototype.cancelAuto=function(){this.interval&&(this.core.outer.find(\".lg-progress\").removeAttr(\"style\"),this.core.outer.removeClass(\"lg-show-autoplay\"),this.core.outer.find(\".lg-progress-bar\").removeClass(\"lg-start\")),clearInterval(this.interval),this.interval=!1},n.prototype.closeGallery=function(){this.cancelAuto()},n.prototype.destroy=function(){this.settings.autoplay&&this.core.outer.find(\".lg-progress-bar\").remove(),this.core.LGel.off(\".lg.autoplay\"),this.core.LGel.off(\".autoplay\")},n}()}));\n","Nw_Additions/lib/lightgallery/plugins/autoplay/lg-autoplay.umd.min.js":"/*!\n * lightgallery | 2.2.1 | September 4th 2021\n * http://www.lightgalleryjs.com/\n * Copyright (c) 2020 Sachin Neravath;\n * @license GPLv3\n */\n(function(global,factory){typeof exports==='object'&&typeof module!=='undefined'?module.exports=factory():typeof define==='function'&&define.amd?define(factory):(global=typeof globalThis!=='undefined'?globalThis:global||self,global.lgAutoplay=factory());}(this,(function(){'use strict';/*! *****************************************************************************\n    Copyright (c) Microsoft Corporation.\n\n    Permission to use, copy, modify, and/or distribute this software for any\n    purpose with or without fee is hereby granted.\n\n    THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\n    REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\n    AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\n    INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\n    LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\n    OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\n    PERFORMANCE OF THIS SOFTWARE.\n    ***************************************************************************** */\nvar __assign=function(){__assign=Object.assign||function __assign(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p];}\nreturn t;};return __assign.apply(this,arguments);};var lGEvents={afterAppendSlide:'lgAfterAppendSlide',init:'lgInit',hasVideo:'lgHasVideo',containerResize:'lgContainerResize',updateSlides:'lgUpdateSlides',afterAppendSubHtml:'lgAfterAppendSubHtml',beforeOpen:'lgBeforeOpen',afterOpen:'lgAfterOpen',slideItemLoad:'lgSlideItemLoad',beforeSlide:'lgBeforeSlide',afterSlide:'lgAfterSlide',posterClick:'lgPosterClick',dragStart:'lgDragStart',dragMove:'lgDragMove',dragEnd:'lgDragEnd',beforeNextSlide:'lgBeforeNextSlide',beforePrevSlide:'lgBeforePrevSlide',beforeClose:'lgBeforeClose',afterClose:'lgAfterClose',rotateLeft:'lgRotateLeft',rotateRight:'lgRotateRight',flipHorizontal:'lgFlipHorizontal',flipVertical:'lgFlipVertical',};var autoplaySettings={autoplay:true,slideShowAutoplay:false,slideShowInterval:5000,progressBar:true,forceSlideShowAutoplay:false,autoplayControls:true,appendAutoplayControlsTo:'.lg-toolbar',};var Autoplay=(function(){function Autoplay(instance){this.core=instance;this.settings=__assign(__assign({},autoplaySettings),this.core.settings);return this;}\nAutoplay.prototype.init=function(){var _this=this;if(!this.settings.autoplay){return;}\nthis.interval=false;this.fromAuto=true;this.pausedOnTouchDrag=false;this.pausedOnSlideChange=false;if(this.settings.autoplayControls){this.controls();}\nif(this.settings.progressBar){this.core.outer.append('<div class=\"lg-progress-bar\"><div class=\"lg-progress\"></div></div>');}\nif(this.settings.slideShowAutoplay){this.core.LGel.once(lGEvents.slideItemLoad+\".autoplay\",function(){_this.startAuto();});}\nthis.core.LGel.on(lGEvents.dragStart+\".autoplay touchstart.lg.autoplay\",function(){if(_this.interval){_this.cancelAuto();_this.pausedOnTouchDrag=true;}});this.core.LGel.on(lGEvents.dragEnd+\".autoplay touchend.lg.autoplay\",function(){if(!_this.interval&&_this.pausedOnTouchDrag){_this.startAuto();_this.pausedOnTouchDrag=false;}});this.core.LGel.on(lGEvents.beforeSlide+\".autoplay\",function(){_this.showProgressBar();if(!_this.fromAuto&&_this.interval){_this.cancelAuto();_this.pausedOnSlideChange=true;}\nelse{_this.pausedOnSlideChange=false;}\n_this.fromAuto=false;});this.core.LGel.on(lGEvents.afterSlide+\".autoplay\",function(){if(_this.pausedOnSlideChange&&!_this.interval&&_this.settings.forceSlideShowAutoplay){_this.startAuto();_this.pausedOnSlideChange=false;}});this.showProgressBar();};Autoplay.prototype.showProgressBar=function(){var _this=this;if(this.settings.progressBar&&this.fromAuto){var _$progressBar_1=this.core.outer.find('.lg-progress-bar');var _$progress_1=this.core.outer.find('.lg-progress');if(this.interval){_$progress_1.removeAttr('style');_$progressBar_1.removeClass('lg-start');setTimeout(function(){_$progress_1.css('transition','width '+\n(_this.core.settings.speed+\n_this.settings.slideShowInterval)+'ms ease 0s');_$progressBar_1.addClass('lg-start');},20);}}};Autoplay.prototype.controls=function(){var _this=this;var _html='<button aria-label=\"Toggle autoplay\" type=\"button\" class=\"lg-autoplay-button lg-icon\"></button>';this.core.outer.find(this.settings.appendAutoplayControlsTo).append(_html);this.core.outer.find('.lg-autoplay-button').first().on('click.lg.autoplay',function(){if(_this.core.outer.hasClass('lg-show-autoplay')){_this.cancelAuto();}\nelse{if(!_this.interval){_this.startAuto();}}});};Autoplay.prototype.startAuto=function(){var _this=this;this.core.outer.find('.lg-progress').css('transition','width '+\n(this.core.settings.speed+\nthis.settings.slideShowInterval)+'ms ease 0s');this.core.outer.addClass('lg-show-autoplay');this.core.outer.find('.lg-progress-bar').addClass('lg-start');this.interval=setInterval(function(){if(_this.core.index+1<_this.core.galleryItems.length){_this.core.index++;}\nelse{_this.core.index=0;}\n_this.fromAuto=true;_this.core.slide(_this.core.index,false,false,'next');},this.core.settings.speed+this.settings.slideShowInterval);};Autoplay.prototype.cancelAuto=function(){if(this.interval){this.core.outer.find('.lg-progress').removeAttr('style');this.core.outer.removeClass('lg-show-autoplay');this.core.outer.find('.lg-progress-bar').removeClass('lg-start');}\nclearInterval(this.interval);this.interval=false;};Autoplay.prototype.closeGallery=function(){this.cancelAuto();};Autoplay.prototype.destroy=function(){if(this.settings.autoplay){this.core.outer.find('.lg-progress-bar').remove();}\nthis.core.LGel.off('.lg.autoplay');this.core.LGel.off('.autoplay');};return Autoplay;}());return Autoplay;})));","Nw_Additions/lib/lightgallery/plugins/autoplay/lg-autoplay.es5.min.js":"/*!\n * lightgallery | 2.2.1 | September 4th 2021\n * http://www.lightgalleryjs.com/\n * Copyright (c) 2020 Sachin Neravath;\n * @license GPLv3\n */\n\n/*! *****************************************************************************\nCopyright (c) Microsoft Corporation.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AN
2D THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n***************************************************************************** */\nvar __assign=function(){__assign=Object.assign||function __assign(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p];}\nreturn t;};return __assign.apply(this,arguments);};var lGEvents={afterAppendSlide:'lgAfterAppendSlide',init:'lgInit',hasVideo:'lgHasVideo',containerResize:'lgContainerResize',updateSlides:'lgUpdateSlides',afterAppendSubHtml:'lgAfterAppendSubHtml',beforeOpen:'lgBeforeOpen',afterOpen:'lgAfterOpen',slideItemLoad:'lgSlideItemLoad',beforeSlide:'lgBeforeSlide',afterSlide:'lgAfterSlide',posterClick:'lgPosterClick',dragStart:'lgDragStart',dragMove:'lgDragMove',dragEnd:'lgDragEnd',beforeNextSlide:'lgBeforeNextSlide',beforePrevSlide:'lgBeforePrevSlide',beforeClose:'lgBeforeClose',afterClose:'lgAfterClose',rotateLeft:'lgRotateLeft',rotateRight:'lgRotateRight',flipHorizontal:'lgFlipHorizontal',flipVertical:'lgFlipVertical',};var autoplaySettings={autoplay:true,slideShowAutoplay:false,slideShowInterval:5000,progressBar:true,forceSlideShowAutoplay:false,autoplayControls:true,appendAutoplayControlsTo:'.lg-toolbar',};var Autoplay=(function(){function Autoplay(instance){this.core=instance;this.settings=__assign(__assign({},autoplaySettings),this.core.settings);return this;}\nAutoplay.prototype.init=function(){var _this=this;if(!this.settings.autoplay){return;}\nthis.interval=false;this.fromAuto=true;this.pausedOnTouchDrag=false;this.pausedOnSlideChange=false;if(this.settings.autoplayControls){this.controls();}\nif(this.settings.progressBar){this.core.outer.append('<div class=\"lg-progress-bar\"><div class=\"lg-progress\"></div></div>');}\nif(this.settings.slideShowAutoplay){this.core.LGel.once(lGEvents.slideItemLoad+\".autoplay\",function(){_this.startAuto();});}\nthis.core.LGel.on(lGEvents.dragStart+\".autoplay touchstart.lg.autoplay\",function(){if(_this.interval){_this.cancelAuto();_this.pausedOnTouchDrag=true;}});this.core.LGel.on(lGEvents.dragEnd+\".autoplay touchend.lg.autoplay\",function(){if(!_this.interval&&_this.pausedOnTouchDrag){_this.startAuto();_this.pausedOnTouchDrag=false;}});this.core.LGel.on(lGEvents.beforeSlide+\".autoplay\",function(){_this.showProgressBar();if(!_this.fromAuto&&_this.interval){_this.cancelAuto();_this.pausedOnSlideChange=true;}\nelse{_this.pausedOnSlideChange=false;}\n_this.fromAuto=false;});this.core.LGel.on(lGEvents.afterSlide+\".autoplay\",function(){if(_this.pausedOnSlideChange&&!_this.interval&&_this.settings.forceSlideShowAutoplay){_this.startAuto();_this.pausedOnSlideChange=false;}});this.showProgressBar();};Autoplay.prototype.showProgressBar=function(){var _this=this;if(this.settings.progressBar&&this.fromAuto){var _$progressBar_1=this.core.outer.find('.lg-progress-bar');var _$progress_1=this.core.outer.find('.lg-progress');if(this.interval){_$progress_1.removeAttr('style');_$progressBar_1.removeClass('lg-start');setTimeout(function(){_$progress_1.css('transition','width '+\n(_this.core.settings.speed+\n_this.settings.slideShowInterval)+'ms ease 0s');_$progressBar_1.addClass('lg-start');},20);}}};Autoplay.prototype.controls=function(){var _this=this;var _html='<button aria-label=\"Toggle autoplay\" type=\"button\" class=\"lg-autoplay-button lg-icon\"></button>';this.core.outer.find(this.settings.appendAutoplayControlsTo).append(_html);this.core.outer.find('.lg-autoplay-button').first().on('click.lg.autoplay',function(){if(_this.core.outer.hasClass('lg-show-autoplay')){_this.cancelAuto();}\nelse{if(!_this.interval){_this.startAuto();}}});};Autoplay.prototype.startAuto=function(){var _this=this;this.core.outer.find('.lg-progress').css('transition','width '+\n(this.core.settings.speed+\nthis.settings.slideShowInterval)+'ms ease 0s');this.core.outer.addClass('lg-show-autoplay');this.core.outer.find('.lg-progress-bar').addClass('lg-start');this.interval=setInterval(function(){if(_this.core.index+1<_this.core.galleryItems.length){_this.core.index++;}\nelse{_this.core.index=0;}\n_this.fromAuto=true;_this.core.slide(_this.core.index,false,false,'next');},this.core.settings.speed+this.settings.slideShowInterval);};Autoplay.prototype.cancelAuto=function(){if(this.interval){this.core.outer.find('.lg-progress').removeAttr('style');this.core.outer.removeClass('lg-show-autoplay');this.core.outer.find('.lg-progress-bar').removeClass('lg-start');}\nclearInterval(this.interval);this.interval=false;};Autoplay.prototype.closeGallery=function(){this.cancelAuto();};Autoplay.prototype.destroy=function(){if(this.settings.autoplay){this.core.outer.find('.lg-progress-bar').remove();}\nthis.core.LGel.off('.lg.autoplay');this.core.LGel.off('.autoplay');};return Autoplay;}());
2export default Autoplay;","Nw_Additions/lib/lightgallery/plugins/video/lg-video.es5.min.js":"/*!\n * lightgallery | 2.2.1 | September 4th 2021\n * http://www.lightgalleryjs.com/\n * Copyright (c) 2020 Sachin Neravath;\n * @license GPLv3\n */\n\n/*! *****************************************************************************\nCopyright (c) Microsoft Corporation.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n***************************************************************************** */\nvar __assign=function(){__assign=Object.assign||function __assign(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p];}\nreturn t;};return __assign.apply(this,arguments);};var videoSettings={autoplayFirstVideo:true,youTubePlayerParams:false,vimeoPlayerParams:false,wistiaPlayerParams:false,gotoNextSlideOnVideoEnd:true,autoplayVideoOnSlide:false,videojs:false,videojsOptions:{},};var lGEvents={afterAppendSlide:'lgAfterAppendSlide',init:'lgInit',hasVideo:'lgHasVideo',containerResize:'lgContainerResize',updateSlides:'lgUpdateSlides',afterAppendSubHtml:'lgAfterAppendSubHtml',beforeOpen:'lgBeforeOpen',afterOpen:'lgAfterOpen',slideItemLoad:'lgSlideItemLoad',beforeSlide:'lgBeforeSlide',afterSlide:'lgAfterSlide',posterClick:'lgPosterClick',dragStart:'lgDragStart',dragMove:'lgDragMove',dragEnd:'lgDragEnd',beforeNextSlide:'lgBeforeNextSlide',beforePrevSlide:'lgBeforePrevSlide',beforeClose:'lgBeforeClose',afterClose:'lgAfterClose',rotateLeft:'lgRotateLeft',rotateRight:'lgRotateRight',flipHorizontal:'lgFlipHorizontal',flipVertical:'lgFlipVertical',};function param(obj){return Object.keys(obj).map(function(k){return encodeURIComponent(k)+'='+encodeURIComponent(obj[k]);}).join('&');}\nvar Video=(function(){function Video(instance){this.core=instance;this.settings=__assign(__assign({},videoSettings),this.core.settings);return this;}\nVideo.prototype.init=function(){var _this=this;this.core.LGel.on(lGEvents.hasVideo+\".video\",this.onHasVideo.bind(this));this.core.LGel.on(lGEvents.posterClick+\".video\",function(){var $el=_this.core.getSlideItem(_this.core.index);_this.loadVideoOnPosterClick($el);});this.core.LGel.on(lGEvents.beforeSlide+\".video\",this.onBeforeSlide.bind(this));this.core.LGel.on(lGEvents.afterSlide+\".video\",this.onAfterSlide.bind(this));};Video.prototype.onHasVideo=function(event){var _a=event.detail,index=_a.index,src=_a.src,html5Video=_a.html5Video,hasPoster=_a.hasPoster,isFirstSlide=_a.isFirstSlide;if(!hasPoster){this.appendVideos(this.core.getSlideItem(index),{src:src,addClass:'lg-object',index:index,html5Video:html5Video,});this.gotoNextSlideOnVideoEnd(src,index);}\nif(this.settings.autoplayFirstVideo&&isFirstSlide){if(hasPoster){var $slide=this.core.getSlideItem(index);this.loadVideoOnPosterClick($slide);}\nelse{this.playVideo(index);}}};Video.prototype.onBeforeSlide=function(event){var _a=event.detail,prevIndex=_a.prevIndex;_a.index;this.pauseVideo(prevIndex);};Video.prototype.onAfterSlide=function(event){var _this=this;var index=event.detail.index;if(this.settings.autoplayVideoOnSlide&&this.core.lGalleryOn){setTimeout(function(){var $slide=_this.core.getSlideItem(index);if(!$slide.hasClass('lg-video-loaded')){_this.loadVideoOnPosterClick($slide);}\nelse{_this.playVideo(index);}},100);}};Video.prototype.playVideo=function(index){this.controlVideo(index,'play');};Video.prototype.pauseVideo=function(index){this.controlVideo(index,'pause');};Video.prototype.getVideoHtml=function(src,addClass,index,html5Video){var video='';var videoInfo=this.core.galleryItems[index].__slideVideoInfo||{};var currentGalleryItem=this.core.galleryItems[index];var videoTitle=currentGalleryItem.title||currentGalleryItem.alt;videoTitle=videoTitle?'title=\"'+videoTitle+'\"':'';var commonIframeProps=\"allowtransparency=\\\"true\\\"\\n            frameborder=\\\"0\\\"\\n            scrolling=\\\"no\\\"\\n            allowfullscreen\\n            mozallowfullscreen\\n            webkitallowfullscreen\\n            oallowfullscreen\\n            msallowfullscreen\";if(videoInfo.youtube){var videoId='lg-youtube'+index;var youTubePlayerParams=\"?wmode=opaque&autoplay=0&enablejsapi=1\";var playerParams=youTubePlayerParams+\n(this.settings.youTubePlayerParams?'&'+param(this.settings.youTubePlayerParams):'');video=\"<iframe allow=\\\"autoplay\\\" id=\"+videoId+\" class=\\\"lg-video-object lg-youtube \"+ad
2dClass+\"\\\" \"+videoTitle+\" src=\\\"//www.youtube.com/embed/\"+(videoInfo.youtube[1]+playerParams)+\"\\\" \"+commonIframeProps+\"></iframe>\";}\nelse if(videoInfo.vimeo){var videoId='lg-vimeo'+index;var playerParams=param(this.settings.vimeoPlayerParams);video=\"<iframe allow=\\\"autoplay\\\" id=\"+videoId+\" class=\\\"lg-video-object lg-vimeo \"+addClass+\"\\\" \"+videoTitle+\" src=\\\"//player.vimeo.com/video/\"+(videoInfo.vimeo[1]+playerParams)+\"\\\" \"+commonIframeProps+\"></iframe>\";}\nelse if(videoInfo.wistia){var wistiaId='lg-wistia'+index;var playerParams=param(this.settings.wistiaPlayerParams);video=\"<iframe allow=\\\"autoplay\\\" id=\\\"\"+wistiaId+\"\\\" src=\\\"//fast.wistia.net/embed/iframe/\"+(videoInfo.wistia[4]+playerParams)+\"\\\" \"+videoTitle+\" class=\\\"wistia_embed lg-video-object lg-wistia \"+addClass+\"\\\" name=\\\"wistia_embed\\\" \"+commonIframeProps+\"></iframe>\";}\nelse if(videoInfo.html5){var html5VideoMarkup='';for(var i=0;i<html5Video.source.length;i++){html5VideoMarkup+=\"<source src=\\\"\"+html5Video.source[i].src+\"\\\" type=\\\"\"+html5Video.source[i].type+\"\\\">\";}\nif(html5Video.tracks){var _loop_1=function(i){var trackAttributes='';var track=html5Video.tracks[i];Object.keys(track||{}).forEach(function(key){trackAttributes+=key+\"=\\\"\"+track[key]+\"\\\" \";});html5VideoMarkup+=\"<track \"+trackAttributes+\">\";};for(var i=0;i<html5Video.tracks.length;i++){_loop_1(i);}}\nvar html5VideoAttrs_1='';var videoAttributes_1=html5Video.attributes||{};Object.keys(videoAttributes_1||{}).forEach(function(key){html5VideoAttrs_1+=key+\"=\\\"\"+videoAttributes_1[key]+\"\\\" \";});video=\"<video class=\\\"lg-video-object lg-html5 \"+(this.settings.videojs?'video-js':'')+\"\\\" \"+html5VideoAttrs_1+\">\\n                \"+html5VideoMarkup+\"\\n                Your browser does not support HTML5 video.\\n            </video>\";}\nreturn video;};Video.prototype.appendVideos=function(el,videoParams){var _a;var videoHtml=this.getVideoHtml(videoParams.src,videoParams.addClass,videoParams.index,videoParams.html5Video);el.find('.lg-video-cont').append(videoHtml);var $videoElement=el.find('.lg-video-object').first();if(videoParams.html5Video){$videoElement.on('mousedown.lg.video',function(e){e.stopPropagation();});}\nif(this.settings.videojs&&((_a=this.core.galleryItems[videoParams.index].__slideVideoInfo)===null||_a===void 0?void 0:_a.html5)){try{return videojs($videoElement.get(),this.settings.videojsOptions);}\ncatch(e){console.error('lightGallery:- Make sure you have included videojs');}}};Video.prototype.gotoNextSlideOnVideoEnd=function(src,index){var _this=this;var $videoElement=this.core.getSlideItem(index).find('.lg-video-object').first();var videoInfo=this.core.galleryItems[index].__slideVideoInfo||{};if(this.settings.gotoNextSlideOnVideoEnd){if(videoInfo.html5){$videoElement.on('ended',function(){_this.core.goToNextSlide();});}\nelse if(videoInfo.vimeo){try{new Vimeo.Player($videoElement.get()).on('ended',function(){_this.core.goToNextSlide();});}\ncatch(e){console.error('lightGallery:- Make sure you have included //github.com/vimeo/player.js');}}\nelse if(videoInfo.wistia){try{window._wq=window._wq||[];
2window._wq.push({id:$videoElement.attr('id'),onReady:function(video){video.bind('end',function(){_this.core.goToNextSlide();});},});}\ncatch(e){console.error('lightGallery:- Make sure you have included //fast.wistia.com/assets/external/E-v1.js');}}}};Video.prototype.controlVideo=function(index,action){var $videoElement=this.core.getSlideItem(index).find('.lg-video-object').first();var videoInfo=this.core.galleryItems[index].__slideVideoInfo||{};if(!$videoElement.get())\nreturn;if(videoInfo.youtube){try{$videoElement.get().contentWindow.postMessage(\"{\\\"event\\\":\\\"command\\\",\\\"func\\\":\\\"\"+action+\"Video\\\",\\\"args\\\":\\\"\\\"}\",'*');}\ncatch(e){console.error(\"lightGallery:- \"+e);}}\nelse if(videoInfo.vimeo){try{new Vimeo.Player($videoElement.get())[action]();}\ncatch(e){console.error('lightGallery:- Make sure you have included //github.com/vimeo/player.js');}}\nelse if(videoInfo.html5){if(this.settings.videojs){try{videojs($videoElement.get())[action]();}\ncatch(e){console.error('lightGallery:- Make sure you have included videojs');}}\nelse{$videoElement.get()[action]();}}\nelse if(videoInfo.wistia){try{window._wq=window._wq||[];
2window._wq.push({id:$videoElement.attr('id'),onReady:function(video){video[action]();},});}\ncatch(e){console.error('lightGallery:- Make sure you have included //fast.wistia.com/assets/external/E-v1.js');}}};Video.prototype.loadVideoOnPosterClick=function($el){var _this=this;if(!$el.hasClass('lg-video-loaded')){if(!$el.hasClass('lg-has-video')){$el.addClass('lg-has-video');var _html=void 0;var _src=this.core.galleryItems[this.core.index].src;var video=this.core.galleryItems[this.core.index].video;if(video){_html=typeof video==='string'?JSON.parse(video):video;}\nvar videoJsPlayer_1=this.appendVideos($el,{src:_src,addClass:'',index:this.core.index,html5Video:_html,});this.gotoNextSlideOnVideoEnd(_src,this.core.index);var $tempImg=$el.find('.lg-object').first().get();$el.find('.lg-video-cont').first().append($tempImg);$el.addClass('lg-video-loading');videoJsPlayer_1&&videoJsPlayer_1.ready(function(){videoJsPlayer_1.on('loadedmetadata',function(){_this.onVideoLoadAfterPosterClick($el,_this.core.index);});});$el.find('.lg-video-object').first().on('load.lg error.lg loadeddata.lg',function(){setTimeout(function(){_this.onVideoLoadAfterPosterClick($el,_this.core.index);},50);});}\nelse{this.playVideo(this.core.index);}}};Video.prototype.onVideoLoadAfterPosterClick=function($el,index){$el.addClass('lg-video-loaded');this.playVideo(index);};Video.prototype.destroy=function(){this.core.LGel.off('.lg.video');this.core.LGel.off('.video');};return Video;}());export default Video;","Nw_Additions/lib/lightgallery/plugins/video/lg-video.min.js":"/**\n * lightgallery | 2.2.1 | September 4th 2021\n * http://www.lightgalleryjs.com/\n * Copyright (c) 2020 Sachin Neravath;\n * @license GPLv3\n */\n\n!function(e,o){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=o():\"function\"==typeof define&&define.amd?define(o):(e=\"undefined\"!=typeof globalThis?globalThis:e||self).lgVideo=o()}(this,(function(){\"use strict\";var e=function(){return(e=Object.assign||function(e){for(var o,i=1,t=arguments.length;i<t;i++)for(var s in o=arguments[i])Object.prototype.hasOwnProperty.call(o,s)&&(e[s]=o[s]);return e}).apply(this,arguments)},o={autoplayFirstVideo:!0,youTubePlayerParams:!1,vimeoPlayerParams:!1,wistiaPlayerParams:!1,gotoNextSlideOnVideoEnd:!0,autoplayVideoOnSlide:!1,videojs:!1,videojsOptions:{}},i=\"lgHasVideo\",t=\"lgBeforeSlide\",s=\"lgAfterSlide\",l=\"lgPosterClick\";function n(e){return Object.keys(e).map((function(o){return encodeURIComponent(o)+\"=\"+encodeURIComponent(e[o])})).join(\"&\")}return function(){function r(i){return this.core=i,this.settings=e(e({},o),this.core.settings),this}return r.prototype.init=function(){var e=this;this.core.LGel.on(i+\".video\",this.onHasVideo.bind(this)),this.core.LGel.on(l+\".video\",(function(){var o=e.core.getSlideItem(e.core.index);e.loadVideoOnPosterClick(o)})),this.core.LGel.on(t+\".video\",this.onBeforeSlide.bind(this)),this.core.LGel.on(s+\".video\",this.onAfterSlide.bind(this))},r.prototype.onHasVideo=function(e){var o=e.detail,i=o.index,t=o.src,s=o.html5Video,l=o.hasPoster,n=o.isFirstSlide;if(l||(this.appendVideos(this.core.getSlideItem(i),{src:t,addClass:\"lg-object\",index:i,html5Video:s}),this.gotoNextSlideOnVideoEnd(t,i)),this.settings.autoplayFirstVideo&&n)if(l){var r=this.core.getSlideItem(i);this.loadVideoOnPosterClick(r)}else this.playVideo(i)},r.prototype.onBeforeSlide=function(e){var o=e.detail,i=o.prevIndex;o.index,this.pauseVideo(i)},r.prototype.onAfterSlide=function(e){var o=this,i=e.detail.index;this.settings.autoplayVideoOnSlide&&this.core.lGalleryOn&&setTimeout((function(){var e=o.core.getSlideItem(i);e.hasClass(\"lg-video-loaded\")?o.playVideo(i):o.loadVideoOnPosterClick(e)}),100)},r.prototype.playVideo=function(e){this.controlVideo(e,\"play\")},r.prototype.pauseVideo=function(e){this.controlVideo(e,\"pause\")},r.prototype.getVideoHtml=function(e,o,i,t){var s=\"\",l=this.core.galleryItems[i].__slideVideoInfo||{},r=this.core.galleryItems[i],d=r.title||r.alt;d=d?'title=\"'+d+'\"':\"\";var a='allowtransparency=\"true\"\\n            frameborder=\"0\"\\n            scrolling=\"no\"\\n            allowfullscreen\\n            mozallowfullscreen\\n            webkitallowfullscreen\\n            oallowfullscreen\\n            msallowfullscreen';if(l.youtube){var c=\"lg-youtube\"+i,f=\"?wmode=opaque&autoplay=0&enablejsapi=1\"+(this.settings.youTubePlayerParams?\"&\"+n(this.settings.youTubePlayerParams):\"\");s='<iframe allow=\"autoplay\" id='+c+' class=\"lg-video-object lg-youtube '+o+'\" '+d+' src=\"//www.youtube.com/embed/'+(l.youtube[1]+f)+'\" '+a+\"></iframe>\"}else if(l.vimeo){c=\"lg-vimeo\"+i,f=n(this.settings.vimeoPlayerParams);s='<iframe allow=\"autoplay\" id='+c+' class=\"lg-video-object lg-vimeo '+o+'\" '+d+' src=\"//player.vimeo.com/video/'+(l.vimeo[1]+f)+'\" '+a+\"></iframe>\"}else if(l.wistia){var u=\"lg-wistia\"+i;f=n(this.settings.wistiaPlayerParams);s='<iframe allow=\"autoplay\" id=\"'+u+'\" src=\"//fast.wistia.net/embed/iframe/'+(l.wistia[4]+f)+'\" '+d+' class=\"wistia_embed lg-video-object lg-wistia '+o+'\" name=\"wistia_embed\" '+a+\"></iframe>\"}else if(l.html5){for(var h=\"\",g=0;g<t.source.length;g++)h+='<source src=\"'+t.source[g].src+'\" type=\"'+t.source[g].type+'\">';if(t.tracks){var y=function(e){var o=\"\",i=t.tracks[e];Object.keys(i||{}
2).forEach((function(e){o+=e+'=\"'+i[e]+'\" '})),h+=\"<track \"+o+\">\"};for(g=0;g<t.tracks.length;g++)y(g)}var v=\"\",p=t.attributes||{};Object.keys(p||{}).forEach((function(e){v+=e+'=\"'+p[e]+'\" '})),s='<video class=\"lg-video-object lg-html5 '+(this.settings.videojs?\"video-js\":\"\")+'\" '+v+\">\\n                \"+h+\"\\n                Your browser does not support HTML5 video.\\n            </video>\"}return s},r.prototype.appendVideos=function(e,o){var i,t=this.getVideoHtml(o.src,o.addClass,o.index,o.html5Video);e.find(\".lg-video-cont\").append(t);var s=e.find(\".lg-video-object\").first();if(o.html5Video&&s.on(\"mousedown.lg.video\",(function(e){e.stopPropagation()})),this.settings.videojs&&(null===(i=this.core.galleryItems[o.index].__slideVideoInfo)||void 0===i?void 0:i.html5))try{return videojs(s.get(),this.settings.videojsOptions)}catch(e){console.error(\"lightGallery:- Make sure you have included videojs\")}},r.prototype.gotoNextSlideOnVideoEnd=function(e,o){var i=this,t=this.core.getSlideItem(o).find(\".lg-video-object\").first(),s=this.core.galleryItems[o].__slideVideoInfo||{};if(this.settings.gotoNextSlideOnVideoEnd)if(s.html5)t.on(\"ended\",(function(){i.core.goToNextSlide()}));else if(s.vimeo)try{new Vimeo.Player(t.get()).on(\"ended\",(function(){i.core.goToNextSlide()}))}catch(e){console.error(\"lightGallery:- Make sure you have included //github.com/vimeo/player.js\")}else if(s.wistia)try{window._wq=window._wq||[],window._wq.push({id:t.attr(\"id\"),onReady:function(e){e.bind(\"end\",(function(){i.core.goToNextSlide()}))}})}catch(e){console.error(\"lightGallery:- Make sure you have included //fast.wistia.com/assets/external/E-v1.js\")}},r.prototype.controlVideo=function(e,o){var i=this.core.getSlideItem(e).find(\".lg-video-object\").first(),t=this.core.galleryItems[e].__slideVideoInfo||{};if(i.get())if(t.youtube)try{i.get().contentWindow.postMessage('{\"event\":\"command\",\"func\":\"'+o+'Video\",\"args\":\"\"}',\"*\")}catch(e){console.error(\"lightGallery:- \"+e)}else if(t.vimeo)try{new Vimeo.Player(i.get())[o]()}catch(e){console.error(\"lightGallery:- Make sure you have included //github.com/vimeo/player.js\")}else if(t.html5)if(this.settings.videojs)try{videojs(i.get())[o]()}catch(e){console.error(\"lightGallery:- Make sure you have included videojs\")}else i.get()[o]();else if(t.wistia)try{window._wq=window._wq||[],window._wq.push({id:i.attr(\"id\"),onReady:function(e){e[o]()}})}catch(e){console.error(\"lightGallery:- Make sure you have included //fast.wistia.com/assets/external/E-v1.js\")}},r.prototype.loadVideoOnPosterClick=function(e){var o=this;if(!e.hasClass(\"lg-video-loaded\"))if(e.hasClass(\"lg-has-video\"))this.playVideo(this.core.index);else{e.addClass(\"lg-has-video\");var i=void 0,t=this.core.galleryItems[this.core.index].src,s=this.core.galleryItems[this.core.index].video;s&&(i=\"string\"==typeof s?JSON.parse(s):s);var l=this.appendVideos(e,{src:t,addClass:\"\",index:this.core.index,html5Video:i});this.gotoNextSlideOnVideoEnd(t,this.core.index);var n=e.find(\".lg-object\").first().get();e.find(\".lg-video-cont\").first().append(n),e.addClass(\"lg-video-loading\"),l&&l.ready((function(){l.on(\"loadedmetadata\",(function(){o.onVideoLoadAfterPosterClick(e,o.core.index)}))})),e.find(\".lg-video-object\").first().on(\"load.lg error.lg loadeddata.lg\",(function(){setTimeout((function(){o.onVideoLoadAfterPosterClick(e,o.core.index)}),50)}))}},r.prototype.onVideoLoadAfterPosterClick=function(e,o){e.addClass(\"lg-video-loaded\"),this.playVideo(o)},r.prototype.destroy=function(){this.core.LGel.off(\".lg.video\"),this.core.LGel.off(\".video\")},r}()}));\n","Nw_Additions/lib/lightgallery/plugins/video/lg-video.umd.min.js":"/*!\n * lightgallery | 2.2.1 | September 4th 2021\n * http://www.lightgalleryjs.com/\n * Copyright (c) 2020 Sachin Neravath;\n * @license GPLv3\n */\n(function(global,factory){typeof exports==='object'&&typeof module!=='undefined'?module.exports=factory():typeof define==='function'&&define.amd?define(factory):(global=typeof globalThis!=='undefined'?globalThis:global||self,global.lgVideo=factory());}(this,(function(){'use strict';/*! *****************************************************************************\n    Copyright (c) Microsoft Corporation.\n\n    Permission to use, copy, modify, and/or distribute this software for any\n    purpose with or without fee is hereby granted.\n\n    THE SOFTWARE IS PROVIDED \"AS IS\" AN
2D THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\n    REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\n    AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\n    INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\n    LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\n    OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\n    PERFORMANCE OF THIS SOFTWARE.\n    ***************************************************************************** */\nvar __assign=function(){__assign=Object.assign||function __assign(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p];}\nreturn t;};return __assign.apply(this,arguments);};var videoSettings={autoplayFirstVideo:true,youTubePlayerParams:false,vimeoPlayerParams:false,wistiaPlayerParams:false,gotoNextSlideOnVideoEnd:true,autoplayVideoOnSlide:false,videojs:false,videojsOptions:{},};var lGEvents={afterAppendSlide:'lgAfterAppendSlide',init:'lgInit',hasVideo:'lgHasVideo',containerResize:'lgContainerResize',updateSlides:'lgUpdateSlides',afterAppendSubHtml:'lgAfterAppendSubHtml',beforeOpen:'lgBeforeOpen',afterOpen:'lgAfterOpen',slideItemLoad:'lgSlideItemLoad',beforeSlide:'lgBeforeSlide',afterSlide:'lgAfterSlide',posterClick:'lgPosterClick',dragStart:'lgDragStart',dragMove:'lgDragMove',dragEnd:'lgDragEnd',beforeNextSlide:'lgBeforeNextSlide',beforePrevSlide:'lgBeforePrevSlide',beforeClose:'lgBeforeClose',afterClose:'lgAfterClose',rotateLeft:'lgRotateLeft',rotateRight:'lgRotateRight',flipHorizontal:'lgFlipHorizontal',flipVertical:'lgFlipVertical',};function param(obj){return Object.keys(obj).map(function(k){return encodeURIComponent(k)+'='+encodeURIComponent(obj[k]);}).join('&');}\nvar Video=(function(){function Video(instance){this.core=instance;this.settings=__assign(__assign({},videoSettings),this.core.settings);return this;}\nVideo.prototype.init=function(){var _this=this;this.core.LGel.on(lGEvents.hasVideo+\".video\",this.onHasVideo.bind(this));this.core.LGel.on(lGEvents.posterClick+\".video\",function(){var $el=_this.core.getSlideItem(_this.core.index);_this.loadVideoOnPosterClick($el);});this.core.LGel.on(lGEvents.beforeSlide+\".video\",this.onBeforeSlide.bind(this));this.core.LGel.on(lGEvents.afterSlide+\".video\",this.onAfterSlide.bind(this));};Video.prototype.onHasVideo=function(event){var _a=event.detail,index=_a.index,src=_a.src,html5Video=_a.html5Video,hasPoster=_a.hasPoster,isFirstSlide=_a.isFirstSlide;if(!hasPoster){this.appendVideos(this.core.getSlideItem(index),{src:src,addClass:'lg-object',index:index,html5Video:html5Video,});this.gotoNextSlideOnVideoEnd(src,index);}\nif(this.settings.autoplayFirstVideo&&isFirstSlide){if(hasPoster){var $slide=this.core.getSlideItem(index);this.loadVideoOnPosterClick($slide);}\nelse{this.playVideo(index);}}};Video.prototype.onBeforeSlide=function(event){var _a=event.detail,prevIndex=_a.prevIndex;_a.index;this.pauseVideo(prevIndex);};Video.prototype.onAfterSlide=function(event){var _this=this;var index=event.detail.index;if(this.settings.autoplayVideoOnSlide&&this.core.lGalleryOn){setTimeout(function(){var $slide=_this.core.getSlideItem(index);if(!$slide.hasClass('lg-video-loaded')){_this.loadVideoOnPosterClick($slide);}\nelse{_this.playVideo(index);}},100);}};Video.prototype.playVideo=function(index){this.controlVideo(index,'play');};Video.prototype.pauseVideo=function(index){this.controlVideo(index,'pause');};Video.prototype.getVideoHtml=function(src,addClass,index,html5Video){var video='';var videoInfo=this.core.galleryItems[index].__slideVideoInfo||{};var currentGalleryItem=this.core.galleryItems[index];var videoTitle=currentGalleryItem.title||currentGalleryItem.alt;videoTitle=videoTitle?'title=\"'+videoTitle+'\"':'';var commonIframeProps=\"allowtransparency=\\\"true\\\"\\n            frameborder=\\\"0\\\"\\n            scrolling=\\\"no\\\"\\n            allowfullscreen\\n            mozallowfullscreen\\n            webkitallowfullscreen\\n            oallowfullscreen\\n            msallowfullscreen\";if(videoInfo.youtube){var videoId='lg-youtube'+index;var youTubePlayerParams=\"?wmode=opaque&autoplay=0&enablejsapi=1\";var playerParams=youTubePlayerParams+\n(this.settings.youTubePlayerParams?'&'+param(this.settings.youTubePlayerParams):'');video=\"<iframe allow=\\\"autoplay\\\" id=\"+videoId+\" class=\\\"lg-video-object lg-youtube \"+ad
2dClass+\"\\\" \"+videoTitle+\" src=\\\"//www.youtube.com/embed/\"+(videoInfo.youtube[1]+playerParams)+\"\\\" \"+commonIframeProps+\"></iframe>\";}\nelse if(videoInfo.vimeo){var videoId='lg-vimeo'+index;var playerParams=param(this.settings.vimeoPlayerParams);video=\"<iframe allow=\\\"autoplay\\\" id=\"+videoId+\" class=\\\"lg-video-object lg-vimeo \"+addClass+\"\\\" \"+videoTitle+\" src=\\\"//player.vimeo.com/video/\"+(videoInfo.vimeo[1]+playerParams)+\"\\\" \"+commonIframeProps+\"></iframe>\";}\nelse if(videoInfo.wistia){var wistiaId='lg-wistia'+index;var playerParams=param(this.settings.wistiaPlayerParams);video=\"<iframe allow=\\\"autoplay\\\" id=\\\"\"+wistiaId+\"\\\" src=\\\"//fast.wistia.net/embed/iframe/\"+(videoInfo.wistia[4]+playerParams)+\"\\\" \"+videoTitle+\" class=\\\"wistia_embed lg-video-object lg-wistia \"+addClass+\"\\\" name=\\\"wistia_embed\\\" \"+commonIframeProps+\"></iframe>\";}\nelse if(videoInfo.html5){var html5VideoMarkup='';for(var i=0;i<html5Video.source.length;i++){html5VideoMarkup+=\"<source src=\\\"\"+html5Video.source[i].src+\"\\\" type=\\\"\"+html5Video.source[i].type+\"\\\">\";}\nif(html5Video.tracks){var _loop_1=function(i){var trackAttributes='';var track=html5Video.tracks[i];Object.keys(track||{}).forEach(function(key){trackAttributes+=key+\"=\\\"\"+track[key]+\"\\\" \";});html5VideoMarkup+=\"<track \"+trackAttributes+\">\";};for(var i=0;i<html5Video.tracks.length;i++){_loop_1(i);}}\nvar html5VideoAttrs_1='';var videoAttributes_1=html5Video.attributes||{};Object.keys(videoAttributes_1||{}).forEach(function(key){html5VideoAttrs_1+=key+\"=\\\"\"+videoAttributes_1[key]+\"\\\" \";});video=\"<video class=\\\"lg-video-object lg-html5 \"+(this.settings.videojs?'video-js':'')+\"\\\" \"+html5VideoAttrs_1+\">\\n                \"+html5VideoMarkup+\"\\n                Your browser does not support HTML5 video.\\n            </video>\";}\nreturn video;};Video.prototype.appendVideos=function(el,videoParams){var _a;var videoHtml=this.getVideoHtml(videoParams.src,videoParams.addClass,videoParams.index,videoParams.html5Video);el.find('.lg-video-cont').append(videoHtml);var $videoElement=el.find('.lg-video-object').first();if(videoParams.html5Video){$videoElement.on('mousedown.lg.video',function(e){e.stopPropagation();});}\nif(this.settings.videojs&&((_a=this.core.galleryItems[videoParams.index].__slideVideoInfo)===null||_a===void 0?void 0:_a.html5)){try{return videojs($videoElement.get(),this.settings.videojsOptions);}\ncatch(e){console.error('lightGallery:- Make sure you have included videojs');}}};Video.prototype.gotoNextSlideOnVideoEnd=function(src,index){var _this=this;var $videoElement=this.core.getSlideItem(index).find('.lg-video-object').first();var videoInfo=this.core.galleryItems[index].__slideVideoInfo||{};if(this.settings.gotoNextSlideOnVideoEnd){if(videoInfo.html5){$videoElement.on('ended',function(){_this.core.goToNextSlide();});}\nelse if(videoInfo.vimeo){try{new Vimeo.Player($videoElement.get()).on('ended',function(){_this.core.goToNextSlide();});}\ncatch(e){console.error('lightGallery:- Make sure you have included //github.com/vimeo/player.js');}}\nelse if(videoInfo.wistia){try{window._wq=window._wq||[];
2window._wq.push({id:$videoElement.attr('id'),onReady:function(video){video.bind('end',function(){_this.core.goToNextSlide();});},});}\ncatch(e){console.error('lightGallery:- Make sure you have included //fast.wistia.com/assets/external/E-v1.js');}}}};Video.prototype.controlVideo=function(index,action){var $videoElement=this.core.getSlideItem(index).find('.lg-video-object').first();var videoInfo=this.core.galleryItems[index].__slideVideoInfo||{};if(!$videoElement.get())\nreturn;if(videoInfo.youtube){try{$videoElement.get().contentWindow.postMessage(\"{\\\"event\\\":\\\"command\\\",\\\"func\\\":\\\"\"+action+\"Video\\\",\\\"args\\\":\\\"\\\"}\",'*');}\ncatch(e){console.error(\"lightGallery:- \"+e);}}\nelse if(videoInfo.vimeo){try{new Vimeo.Player($videoElement.get())[action]();}\ncatch(e){console.error('lightGallery:- Make sure you have included //github.com/vimeo/player.js');}}\nelse if(videoInfo.html5){if(this.settings.videojs){try{videojs($videoElement.get())[action]();}\ncatch(e){console.error('lightGallery:- Make sure you have included videojs');}}\nelse{$videoElement.get()[action]();}}\nelse if(videoInfo.wistia){try{window._wq=window._wq||[];
2window._wq.push({id:$videoElement.attr('id'),onReady:function(video){video[action]();},});}\ncatch(e){console.error('lightGallery:- Make sure you have included //fast.wistia.com/assets/external/E-v1.js');}}};Video.prototype.loadVideoOnPosterClick=function($el){var _this=this;if(!$el.hasClass('lg-video-loaded')){if(!$el.hasClass('lg-has-video')){$el.addClass('lg-has-video');var _html=void 0;var _src=this.core.galleryItems[this.core.index].src;var video=this.core.galleryItems[this.core.index].video;if(video){_html=typeof video==='string'?JSON.parse(video):video;}\nvar videoJsPlayer_1=this.appendVideos($el,{src:_src,addClass:'',index:this.core.index,html5Video:_html,});this.gotoNextSlideOnVideoEnd(_src,this.core.index);var $tempImg=$el.find('.lg-object').first().get();$el.find('.lg-video-cont').first().append($tempImg);$el.addClass('lg-video-loading');videoJsPlayer_1&&videoJsPlayer_1.ready(function(){videoJsPlayer_1.on('loadedmetadata',function(){_this.onVideoLoadAfterPosterClick($el,_this.core.index);});});$el.find('.lg-video-object').first().on('load.lg error.lg loadeddata.lg',function(){setTimeout(function(){_this.onVideoLoadAfterPosterClick($el,_this.core.index);},50);});}\nelse{this.playVideo(this.core.index);}}};Video.prototype.onVideoLoadAfterPosterClick=function($el,index){$el.addClass('lg-video-loaded');this.playVideo(index);};Video.prototype.destroy=function(){this.core.LGel.off('.lg.video');this.core.LGel.off('.video');};return Video;}());return Video;})));","Nw_Additions/lib/lightgallery/plugins/comment/lg-comment.umd.min.js":"/*!\n * lightgallery | 2.2.1 | September 4th 2021\n * http://www.lightgalleryjs.com/\n * Copyright (c) 2020 Sachin Neravath;\n * @license GPLv3\n */\n(function(global,factory){typeof exports==='object'&&typeof module!=='undefined'?module.exports=factory():typeof define==='function'&&define.amd?define(factory):(global=typeof globalThis!=='undefined'?globalThis:global||self,global.lgComment=factory());}(this,(function(){'use strict';/*! *****************************************************************************\n    Copyright (c) Microsoft Corporation.\n\n    Permission to use, copy, modify, and/or distribute this software for any\n    purpose with or without fee is hereby granted.\n\n    THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\n    REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\n    AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\n    INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\n    LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\n    OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\n    PERFORMANCE OF THIS SOFTWARE.\n    ***************************************************************************** */\nvar __assign=function(){__assign=Object.assign||function __assign(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p];}\nreturn t;};return __assign.apply(this,arguments);};var lGEvents={afterAppendSlide:'lgAfterAppendSlide',init:'lgInit',hasVideo:'lgHasVideo',containerResize:'lgContainerResize',updateSlides:'lgUpdateSlides',afterAppendSubHtml:'lgAfterAppendSubHtml',beforeOpen:'lgBeforeOpen',afterOpen:'lgAfterOpen',slideItemLoad:'lgSlideItemLoad',beforeSlide:'lgBeforeSlide',afterSlide:'lgAfterSlide',posterClick:'lgPosterClick',dragStart:'lgDragStart',dragMove:'lgDragMove',dragEnd:'lgDragEnd',beforeNextSlide:'lgBeforeNextSlide',beforePrevSlide:'lgBeforePrevSlide',beforeClose:'lgBeforeClose',afterClose:'lgAfterClose',rotateLeft:'lgRotateLeft',rotateRight:'lgRotateRight',flipHorizontal:'lgFlipHorizontal',flipVertical:'lgFlipVertical',};var commentSettings={commentBox:false,fbComments:false,disqusComments:false,disqusConfig:{title:undefined,language:'en',},commentsMarkup:'<div id=\"lg-comment-box\" class=\"lg-comment-box lg-fb-comment-box\"><div class=\"lg-comment-header\"><h3 class=\"lg-comment-title\">Leave a comment.</h3><span class=\"lg-comment-close lg-icon\"></span></div><div class=\"lg-comment-body\"></div></div>',};var CommentBox=(function(){function CommentBox(instance,$LG){this.core=instance;this.$LG=$LG;this.settings=__assign(__assign({},commentSettings),this.core.settings);return this;}\nCommentBox.prototype.init=function(){if(!this.settings.commentBox){return;}\nthis.setMarkup();this.toggleCommentBox();if(this.settings.fbComments){this.addFbComments();}\nelse if(this.settings.disqusComments){this.addDisqusComments();}};CommentBox.prototype.setMarkup=function(){this.core.outer.append(this.settings.commentsMarkup+'<div class=\"lg-comment-overlay\"></div>');var commentToggleBtn='<button type=\"button\" aria-label=\"Toggle comments\" class=\"lg-comment-toggle lg-icon\"></button>';this.core.$toolbar.append(commentToggleBtn);};CommentBox.prototype.toggleCommentBox=function(){var _this_1=this;this.core.outer.find('.lg-comment-toggle').first().on('click.lg.comment',function(){_this_1.core.outer.toggleClass('lg-comment-active');});this.core.outer.find('.lg-comment-overlay').first().on('click.lg.comment',function(){_this_1.core.outer.removeClass('lg-comment-active');});this.core.outer.find('.lg-comment-close').first().on('click.lg.comment',function(){_this_1.core.outer.removeClass('lg-comment-active');});};CommentBox.prototype.addFbComments=function(){var _this_1=this;var _this=this;this.core.LGel.on(lGEvents.beforeSlide+\".comment\",function(event){var html=_this_1.core.galleryItems[event.detail.index].fbHtml;_this_1.core.outer.find('.lg-comment-body').html(html);});this.core.LGel.on(lGEvents.afterSlide+\".comment\",function(){try{FB.XFBML.parse();}\ncatch(err){_this.$LG(window).on('fbAsyncInit',function(){FB.XFBML.parse();});}});};CommentBox.prototype.addDisqusComments=function(){var _this_1=this;var $disqusThread=this.$LG('#disqus_thread');$disqusThread.remove();this.core.outer.find('.lg-comment-body').append('<div id=\"disqus_thread\"></div>');this.core.LGel.on(lGEvents.beforeSlide+\".comment\",function(){$disqusThread.html('');});this.core.LGel.on(lGEvents.afterSlide+\".comment\",function(event){var index=event.detail.index;var _this=_this_1;setTimeout(function(){try{DISQUS.reset({reload:true,config:function(){this.page.identifier=_this.core.galleryItems[index].disqusIdentifier;this.page.url=_this.core.galleryItems[index].disqusURL;this.page.title=_this.settings.disqusConfig.title;this.language=_this.settings.disqusConfig.language;},});}\ncatch(err){console.error('Make sure you have included disqus JavaScript code in your document. Ex - https://lg-disqus.disqus.com/admin/install/platforms/universalcode/');}},_this.core.lGalleryOn?0:1000);});};CommentBox.prototype.destroy=function(){this.core.LGel.off('.lg.comment');this.core.LGel.off('.comment');};return CommentBox;}());return CommentBox;})));","Nw_Additions/lib/lightgallery/plugins/comment/lg-comment.min.js":"/**\n * lightgallery | 2.2.1 | September 4th 2021\n * http://www.lightgalleryjs.com/\n * Copyright (c) 2020 Sachin Neravath;\n * @license GPLv3\n */\n\n!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(e):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).lgComment=e()}(this,(function(){\"use strict\";var t=function(){return(t=Object.assign||function(t){for(var e,o=1,n=arguments.length;o<n;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},e=\"lgBeforeSlide\",o=\"lgAfterSlide\",n={commentBox:!1,fbComments:!1,disqusComments:!1,disqusConfig:{title:void 0,language:\"en\"},commentsMarkup:'<div id=\"lg-comment-box\" class=\"lg-comment-box lg-fb-comment-box\"><div class=\"lg-comment-header\"><h3 class=\"lg-comment-title\">Leave a comment.</h3><span class=\"lg-comment-close lg-icon\"></span></div><div class=\"lg-comment-body\"></div></div>'};return function(){function i(e,o){return this.core=e,this.$LG=o,this.settings=t(t({},n),this.core.settings),this}return i.prototype.init=function(){this.settings.commentBox&&(this.setMarkup(),this.toggleCommentBox(),this.settings.fbComments?this.addFbComments():this.settings.disqusComments&&this.addDisqusComments())},i.prototype.setMarkup=function(){this.core.outer.append(this.settings.commentsMarkup+'<div class=\"lg-comment-overlay\"></div>');this.core.$toolbar.append('<button type=\"button\" aria-label=\"Toggle comments\" class=\"lg-comment-toggle lg-icon\"></button>')},i.prototype.toggleCommentBox=function(){var t=this;this.core.outer.find(\".lg-comment-toggle\").first().on(\"click.lg.comment\",(function(){t.core.outer.toggleClass(\"lg-comment-active\")})),this.core.outer.find(\".lg-comment-overlay\").first().on(\"click.lg.comment\",(function(){t.core.outer.removeClass(\"lg-comment-active\")})),this.core.outer.find(\".lg-comment-close\").first().on(\"click.lg.comment\",(function(){t.core.outer.removeClass(\"lg-comment-active\")}))},i.prototype.addFbComments=function(){var t=this,n=this;this.core.LGel.on(e+\".comment\",(function(e){var o=t.core.galleryItems[e.detail.index].fbHtml;t.core.outer.find(\".lg-comment-body\").html(o)})),this.core.LGel.on(o+\".comment\",(function(){try{FB.XFBML.parse()}catch(t){n.$LG(window).on(\"fbAsyncInit\",(function(){FB.XFBML.parse()}))}}))},i.prototype.addDisqusComments=function(){var t=this,n=this.$LG(\"#disqus_thread\");n.remove(),this.core.outer.find(\".lg-comment-body\").append('<div id=\"disqus_thread\"></div>'),this.core.LGel.on(e+\".comment\",(function(){n.html(\"\")})),this.core.LGel.on(o+\".comment\",(function(e){var o=e.detail.index,n=t;setTimeout((function(){try{DISQUS.reset({reload:!0,config:function(){this.page.identifier=n.core.galleryItems[o].disqusIdentifier,this.page.url=n.core.galleryItems[o].disqusURL,this.page.title=n.settings.disqusConfig.title,this.language=n.settings.disqusConfig.language}}
2)}catch(t){console.error(\"Make sure you have included disqus JavaScript code in your document. Ex - https://lg-disqus.disqus.com/admin/install/platforms/universalcode/\")}}),n.core.lGalleryOn?0:1e3)}))},i.prototype.destroy=function(){this.core.LGel.off(\".lg.comment\"),this.core.LGel.off(\".comment\")},i}()}));\n","Nw_Additions/lib/lightgallery/plugins/comment/lg-comment.es5.min.js":"/*!\n * lightgallery | 2.2.1 | September 4th 2021\n * http://www.lightgalleryjs.com/\n * Copyright (c) 2020 Sachin Neravath;\n * @license GPLv3\n */\n\n/*! *****************************************************************************\nCopyright (c) Microsoft Corporation.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n***************************************************************************** */\nvar __assign=function(){__assign=Object.assign||function __assign(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p];}\nreturn t;};return __assign.apply(this,arguments);};var lGEvents={afterAppendSlide:'lgAfterAppendSlide',init:'lgInit',hasVideo:'lgHasVideo',containerResize:'lgContainerResize',updateSlides:'lgUpdateSlides',afterAppendSubHtml:'lgAfterAppendSubHtml',beforeOpen:'lgBeforeOpen',afterOpen:'lgAfterOpen',slideItemLoad:'lgSlideItemLoad',beforeSlide:'lgBeforeSlide',afterSlide:'lgAfterSlide',posterClick:'lgPosterClick',dragStart:'lgDragStart',dragMove:'lgDragMove',dragEnd:'lgDragEnd',beforeNextSlide:'lgBeforeNextSlide',beforePrevSlide:'lgBeforePrevSlide',beforeClose:'lgBeforeClose',afterClose:'lgAfterClose',rotateLeft:'lgRotateLeft',rotateRight:'lgRotateRight',flipHorizontal:'lgFlipHorizontal',flipVertical:'lgFlipVertical',};var commentSettings={commentBox:false,fbComments:false,disqusComments:false,disqusConfig:{title:undefined,language:'en',},commentsMarkup:'<div id=\"lg-comment-box\" class=\"lg-comment-box lg-fb-comment-box\"><div class=\"lg-comment-header\"><h3 class=\"lg-comment-title\">Leave a comment.</h3><span class=\"lg-comment-close lg-icon\"></span></div><div class=\"lg-comment-body\"></div></div>',};var CommentBox=(function(){function CommentBox(instance,$LG){this.core=instance;this.$LG=$LG;this.settings=__assign(__assign({},commentSettings),this.core.settings);return this;}\nCommentBox.prototype.init=function(){if(!this.settings.commentBox){return;}\nthis.setMarkup();this.toggleCommentBox();if(this.settings.fbComments){this.addFbComments();}\nelse if(this.settings.disqusComments){this.addDisqusComments();}};CommentBox.prototype.setMarkup=function(){this.core.outer.append(this.settings.commentsMarkup+'<div class=\"lg-comment-overlay\"></div>');var commentToggleBtn='<button type=\"button\" aria-label=\"Toggle comments\" class=\"lg-comment-toggle lg-icon\"></button>';this.core.$toolbar.append(commentToggleBtn);};CommentBox.prototype.toggleCommentBox=function(){var _this_1=this;this.core.outer.find('.lg-comment-toggle').first().on('click.lg.comment',function(){_this_1.core.outer.toggleClass('lg-comment-active');});this.core.outer.find('.lg-comment-overlay').first().on('click.lg.comment',function(){_this_1.core.outer.removeClass('lg-comment-active');});this.core.outer.find('.lg-comment-close').first().on('click.lg.comment',function(){_this_1.core.outer.removeClass('lg-comment-active');});};CommentBox.prototype.addFbComments=function(){var _this_1=this;var _this=this;this.core.LGel.on(lGEvents.beforeSlide+\".comment\",function(event){var html=_this_1.core.galleryItems[event.detail.index].fbHtml;_this_1.core.outer.find('.lg-comment-body').html(html);});this.core.LGel.on(lGEvents.afterSlide+\".comment\",function(){try{FB.XFBML.parse();}\ncatch(err){_this.$LG(window).on('fbAsyncInit',function(){FB.XFBML.parse();});}});};CommentBox.prototype.addDisqusComments=function(){var _this_1=this;var $disqusThread=this.$LG('#disqus_thread');$disqusThread.remove();this.core.outer.find('.lg-comment-body').append('<div id=\"disqus_thread\"></div>');this.core.LGel.on(lGEvents.beforeSlide+\".comment\",function(){$disqusThread.html('');});this.core.LGel.on(lGEvents.afterSlide+\".comment\",function(event){var index=event.detail.index;var _this=_this_1;setTimeout(function(){try{DISQUS.reset({reload:true,config:function(){this.page.identifier=_this.core.galleryItems[index].disqusIdentifier;this.page.url=_this.core.galleryItems[index].disqusURL;this.page.title=_this.settings.disqusConfig.title;this.language=_this.settings.disqusConfig.language;},});}\ncatch(err){console.error('Make sure you have included disqus JavaScript code in your document. Ex - https://lg-disqus.disqus.com/admin/install/platforms/universalcode/');}},_this.core.lGalleryOn?0:1000);});};CommentBox.prototype.destroy=function(){this.core.LGel.off('.lg.comment');this.core.LGel.off('.comment');};return CommentBox;}());
2export default CommentBox;","Nw_Additions/lib/lightgallery/plugins/rotate/lg-rotate.umd.min.js":"/*!\n * lightgallery | 2.2.1 | September 4th 2021\n * http://www.lightgalleryjs.com/\n * Copyright (c) 2020 Sachin Neravath;\n * @license GPLv3\n */\n(function(global,factory){typeof exports==='object'&&typeof module!=='undefined'?module.exports=factory():typeof define==='function'&&define.amd?define(factory):(global=typeof globalThis!=='undefined'?globalThis:global||self,global.lgRotate=factory());}(this,(function(){'use strict';/*! *****************************************************************************\n    Copyright (c) Microsoft Corporation.\n\n    Permission to use, copy, modify, and/or distribute this software for any\n    purpose with or without fee is hereby granted.\n\n    THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\n    REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\n    AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\n    INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\n    LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\n    OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\n    PERFORMANCE OF THIS SOFTWARE.\n    ***************************************************************************** */\nvar __assign=function(){__assign=Object.assign||function __assign(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p];}\nreturn t;};return __assign.apply(this,arguments);};var lGEvents={afterAppendSlide:'lgAfterAppendSlide',init:'lgInit',hasVideo:'lgHasVideo',containerResize:'lgContainerResize',updateSlides:'lgUpdateSlides',afterAppendSubHtml:'lgAfterAppendSubHtml',beforeOpen:'lgBeforeOpen',afterOpen:'lgAfterOpen',slideItemLoad:'lgSlideItemLoad',beforeSlide:'lgBeforeSlide',afterSlide:'lgAfterSlide',posterClick:'lgPosterClick',dragStart:'lgDragStart',dragMove:'lgDragMove',dragEnd:'lgDragEnd',beforeNextSlide:'lgBeforeNextSlide',beforePrevSlide:'lgBeforePrevSlide',beforeClose:'lgBeforeClose',afterClose:'lgAfterClose',rotateLeft:'lgRotateLeft',rotateRight:'lgRotateRight',flipHorizontal:'lgFlipHorizontal',flipVertical:'lgFlipVertical',};var rotateSettings={rotate:true,rotateSpeed:400,rotateLeft:true,rotateRight:true,flipHorizontal:true,flipVertical:true,};var Rotate=(function(){function Rotate(instance,$LG){this.core=instance;this.$LG=$LG;this.settings=__assign(__assign({},rotateSettings),this.core.settings);return this;}\nRotate.prototype.buildTemplates=function(){var rotateIcons='';if(this.settings.flipVertical){rotateIcons+='<button type=\"button\" id=\"lg-flip-ver\" aria-label=\"flip vertical\" class=\"lg-flip-ver lg-icon\"></button>';}\nif(this.settings.flipHorizontal){rotateIcons+='<button type=\"button\" id=\"lg-flip-hor\" aria-label=\"Flip horizontal\" class=\"lg-flip-hor lg-icon\"></button>';}\nif(this.settings.rotateLeft){rotateIcons+='<button type=\"button\" id=\"lg-rotate-left\" aria-label=\"Rotate left\" class=\"lg-rotate-left lg-icon\"></button>';}\nif(this.settings.rotateRight){rotateIcons+='<button type=\"button\" id=\"lg-rotate-right\" aria-label=\"Rotate right\" class=\"lg-rotate-right lg-icon\"></button>';}\nthis.core.$toolbar.append(rotateIcons);};Rotate.prototype.init=function(){var _this=this;if(!this.settings.rotate){return;}\nthis.buildTemplates();this.rotateValuesList={};this.core.LGel.on(lGEvents.afterAppendSlide+\".rotate\",function(event){var index=event.detail.index;var imageWrap=_this.core.getSlideItem(index).find('.lg-img-wrap').first();imageWrap.wrap('lg-img-rotate');_this.core.getSlideItem(_this.core.index).find('.lg-img-rotate').css('transition-duration',_this.settings.rotateSpeed+'ms');});this.core.outer.find('#lg-rotate-left').first().on('click.lg',this.rotateLeft.bind(this));this.core.outer.find('#lg-rotate-right').first().on('click.lg',this.rotateRight.bind(this));this.core.outer.find('#lg-flip-hor').first().on('click.lg',this.flipHorizontal.bind(this));this.core.outer.find('#lg-flip-ver').first().on('click.lg',this.flipVertical.bind(this));this.core.LGel.on(lGEvents.beforeSlide+\".rotate\",function(event){if(!_this.rotateValuesList[event.detail.index]){_this.rotateValuesList[event.detail.index]={rotate:0,flipHorizontal:1,flipVertical:1,};}});};Rotate.prototype.applyStyles=function(){var $image=this.core.getSlideItem(this.core.index).find('.lg-img-rotate').first();$image.css('transform','rotate('+\nthis.rotateValuesList[this.core.index].rotate+'deg)'+' scale3d('+\nthis.rotateValuesList[this.core.index].flipHorizontal+', '+\nthis.rotateValuesList[this.core.index].flipVertical+', 1)');};Rotate.prototype.rotateLeft=function(){this.rotateValuesList[this.core.index].rotate-=90;this.applyStyles();this.triggerEvents(lGEvents.rotateLeft,{rotate:this.rotateValuesList[this.core.index].rotate,});};Rotate.prototype.rotateRight=function(){this.rotateValuesList[this.core.index].rotate+=90;this.applyStyles();this.triggerEvents(lGEvents.rotateRight,{rotate:this.rotateValuesList[this.core.index].rotate,});};Rotate.prototype.getCurrentRotation=function(el){if(!el){return 0;}\nvar st=this.$LG(el).style();var tm=st.getPropertyValue('-webkit-transform')||st.getPropertyValue('-moz-transform')||st.getPropertyValue('-ms-transform')||st.getPropertyValue('-o-transform')||st.getPropertyValue('transform')||'none';if(tm!=='none'){var values=tm.split('(')[1].split(')')[0].split(',');if(values){var angle=Math.round(Math.atan2(values[1],values[0])*(180 / Math.PI));return angle<0?angle+360:angle;}}\nreturn 0;};Rotate.prototype.flipHorizontal=function(){var rotateEl=this.core.getSlideItem(this.core.index).find('.lg-img-rotate').first().get();var currentRotation=this.getCurrentRotation(rotateEl);var rotateAxis='flipHorizontal';if(currentRotation===90||currentRotation===270){rotateAxis='flipVertical';}\nthis.rotateValuesList[this.core.index][rotateAxis]*=-1;this.applyStyles();this.triggerEvents(lGEvents.flipHorizontal,{flipHorizontal:this.rotateValuesList[this.core.index][rotateAxis],});};Rotate.prototype.flipVertical=function(){var rotateEl=this.core.getSlideItem(this.core.index).find('.lg-img-rotate').first().get();var currentRotation=this.getCurrentRotation(rotateEl);var rotateAxis='flipVertical';if(currentRotation===90||currentRotation===270){rotateAxis='flipHorizontal';}\nthis.rotateValuesList[this.core.index][rotateAxis]*=-1;this.applyStyles();this.triggerEvents(lGEvents.flipVertical,{flipVertical:this.rotateValuesList[this.core.index][rotateAxis],});};Rotate.prototype.triggerEvents=function(event,detail){var _this=this;setTimeout(function(){_this.core.LGel.trigger(event,detail);},this.settings.rotateSpeed+10);};Rotate.prototype.isImageOrientationChanged=function(){var rotateValue=this.rotateValuesList[this.core.index];var isRotated=Math.abs(rotateValue.rotate)%360!==0;var ifFlippedHor=rotateValue.flipHorizontal<0;var ifFlippedVer=rotateValue.flipVertical<0;return isRotated||ifFlippedHor||ifFlippedVer;};Rotate.prototype.closeGallery=function(){if(this.isImageOrientationChanged()){this.core.getSlideItem(this.core.index).css('opacity',0);}\nthis.rotateValuesList={};};Rotate.prototype.destroy=function(){this.core.LGel.off('.lg.rotate');this.core.LGel.off('.rotate');};return Rotate;}());return Rotate;})));","Nw_Additions/lib/lightgallery/plugins/rotate/lg-rotate.min.js":"/**\n * lightgallery | 2.2.1 | September 4th 2021\n * http://www.lightgalleryjs.com/\n * Copyright (c) 2020 Sachin Neravath;\n * @license GPLv3\n */\n\n!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(e):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).lgRotate=e()}(this,(function(){\"use strict\";var t=function(){return(t=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},e=\"lgAfterAppendSlide\",i=\"lgBeforeSlide\",o=\"lgRotateLeft\",r=\"lgRotateRight\",s=\"lgFlipHorizontal\",a=\"lgFlipVertical\",l={rotate:!0,rotateSpeed:400,rotateLeft:!0,rotateRight:!0,flipHorizontal:!0,flipVertical:!0};return function(){function n(e,i){return this.core=e,this.$LG=i,this.settings=t(t({},l),this.core.settings),this}return n.prototype.buildTemplates=function(){var t=\"\";this.settings.flipVertical&&(t+='<button type=\"button\" id=\"lg-flip-ver\" aria-label=\"flip vertical\" class=\"lg-flip-ver lg-icon\"></button>'),this.settings.flipHorizontal&&(t+='<button type=\"button\" id=\"lg-flip-hor\" aria-label=\"Flip horizontal\" class=\"lg-flip-hor lg-icon\"></button>'),this.settings.rotateLeft&&(t+='<button type=\"button\" id=\"lg-rotate-left\" aria-label=\"Rotate left\" class=\"lg-rotate-left lg-icon\"></button>'),this.settings.rotateRight&&(t+='<button type=\"button\" id=\"lg-rotate-right\" aria-label=\"Rotate right\" class=\"lg-rotate-right lg-icon\"></button>'),this.core.$toolbar.append(t)},n.prototype.init=function(){var t=this;this.settings.rotate&&(this.buildTemplates(),this.rotateValuesList={},this.core.LGel.on(e+\".rotate\",(function(e){var i=e.detail.index;t.core.getSlideItem(i).find(\".lg-img-wrap\").first().wrap(\"lg-img-rotate\"),t.core.getSlideItem(t.core.index).find(\".lg-img-rotate\").css(\"transition-duration\",t.settings.rotateSpeed+\"ms\")})),this.core.outer.find(\"#lg-rotate-left\").first().on(\"click.lg\",this.rotateLeft.bind(this)),this.core.outer.find(\"#lg-rotate-right\").first().on(\"click.lg\",this.rotateRight.bind(this)),this.core.outer.find(\"#lg-flip-hor\").first().on(\"click.lg\",this.flipHorizontal.bind(this)),this.core.outer.find(\"#lg-flip-ver\").first().on(\"click.lg\",this.flipVertical.bind(this)),this.core.LGel.on(i+\".rotate\",(function(e){t.rotateValuesList[e.detail.index]||(t.rotateValuesList[e.detail.index]={rotate:0,flipHorizontal:1,flipVertical:1})})))},n.prototype.applyStyles=function(){this.core.getSlideItem(this.core.index).find(\".lg-img-rotate\").first().css(\"transform\",\"rotate(\"+this.rotateValuesList[this.core.index].rotate+\"deg) scale3d(\"+this.rotateValuesList[this.core.index].flipHorizontal+\", \"+this.rotateValuesList[this.core.index].flipVertical+\", 1)\")},n.prototype.rotateLeft=function(){this.rotateValuesList[this.core.index].rotate-=90,this.applyStyles(),this.triggerEvents(o,{rotate:this.rotateValuesList[this.core.index].rotate})},n.prototype.rotateRight=function(){this.rotateValuesList[this.core.index].rotate+=90,this.applyStyles(),this.triggerEvents(r,{rotate:this.rotateValuesList[this.core.index].rotate})},n.prototype.getCurrentRotation=function(t){if(!t)return 0;var e=this.$LG(t).style(),i=e.getPropertyValue(\"-webkit-transform\")||e.getPropertyValue(\"-moz-transform\")||e.getPropertyValue(\"-ms-transform\")||e.getPropertyValue(\"-o-transform\")||e.getPropertyValue(\"transform\")||\"none\";if(\"none\"!==i){var o=i.split(\"(\")[1].split(\")\")[0].split(\",\");if(o){var r=Math.round(Math.atan2(o[1],o[0])*(180/Math.PI));return r<0?r+360:r}}return 0},n.prototype.flipHorizontal=function(){var t=this.core.getSlideItem(this.core.index).find(\".lg-img-rotate\").first().get(),e=this.getCurrentRotation(t),i=\"flipHorizontal\";90!==e&&270!==e||(i=\"flipVertical\"),this.rotateValuesList[this.core.index][i]*=-1,this.applyStyles(),this.triggerEvents(s,{flipHorizontal:this.rotateValuesList[this.core.index][i]})},n.prototype.flipVertical=function(){var t=this.core.getSlideItem(this.core.index).find(\".lg-img-rotate\").first().get(),e=this.getCurrentRotation(t),i=\"flipVertical\";90!==e&&270!==e||(i=\"flipHorizontal\"),this.rotateValuesList[this.core.index][i]*=-1,this.applyStyles(),this.triggerEvents(a,{flipVertical:this.rotateValuesList[this.core.index][i]})},n.prototype.triggerEvents=function(t,e){var i=this;setTimeout((function(){i.core.LGel.trigger(t,e)}),this.settings.rotateSpeed+10)},n.prototype.isImageOrientationChanged=function(){var t=this.rotateValuesList[this.core.index],e=Math.abs(t.rotate)%360!=0,i=t.flipHorizontal<0,o=t.flipVertical<0;return e||i||o},n.prototype.closeGallery=function(){this.isImageOrientationChanged()&&this.core.getSlideItem(this.core.index).css(\"opacity\",0),this.rotateValuesList={}},n.prototype.destroy=function(){this.core.LGel.off(\".lg.rotate\"),this.core.LGel.off(\".rotate\")},n}()}));\n","Nw_Additions/lib/lightgallery/plugins/rotate/lg-rotate.es5.min.js":"/*!\n * lightgallery | 2.2.1 | September 4th 2021\n * http://www.lightgalleryjs.com/\n * Copyright (c) 2020 Sachin Neravath;\n * @license GPLv3\n */\n\n/*! *****************************************************************************\nCopyright (c) Microsoft Corporation.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AN
2D THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n***************************************************************************** */\nvar __assign=function(){__assign=Object.assign||function __assign(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p];}\nreturn t;};return __assign.apply(this,arguments);};var lGEvents={afterAppendSlide:'lgAfterAppendSlide',init:'lgInit',hasVideo:'lgHasVideo',containerResize:'lgContainerResize',updateSlides:'lgUpdateSlides',afterAppendSubHtml:'lgAfterAppendSubHtml',beforeOpen:'lgBeforeOpen',afterOpen:'lgAfterOpen',slideItemLoad:'lgSlideItemLoad',beforeSlide:'lgBeforeSlide',afterSlide:'lgAfterSlide',posterClick:'lgPosterClick',dragStart:'lgDragStart',dragMove:'lgDragMove',dragEnd:'lgDragEnd',beforeNextSlide:'lgBeforeNextSlide',beforePrevSlide:'lgBeforePrevSlide',beforeClose:'lgBeforeClose',afterClose:'lgAfterClose',rotateLeft:'lgRotateLeft',rotateRight:'lgRotateRight',flipHorizontal:'lgFlipHorizontal',flipVertical:'lgFlipVertical',};var rotateSettings={rotate:true,rotateSpeed:400,rotateLeft:true,rotateRight:true,flipHorizontal:true,flipVertical:true,};var Rotate=(function(){function Rotate(instance,$LG){this.core=instance;this.$LG=$LG;this.settings=__assign(__assign({},rotateSettings),this.core.settings);return this;}\nRotate.prototype.buildTemplates=function(){var rotateIcons='';if(this.settings.flipVertical){rotateIcons+='<button type=\"button\" id=\"lg-flip-ver\" aria-label=\"flip vertical\" class=\"lg-flip-ver lg-icon\"></button>';}\nif(this.settings.flipHorizontal){rotateIcons+='<button type=\"button\" id=\"lg-flip-hor\" aria-label=\"Flip horizontal\" class=\"lg-flip-hor lg-icon\"></button>';}\nif(this.settings.rotateLeft){rotateIcons+='<button type=\"button\" id=\"lg-rotate-left\" aria-label=\"Rotate left\" class=\"lg-rotate-left lg-icon\"></button>';}\nif(this.settings.rotateRight){rotateIcons+='<button type=\"button\" id=\"lg-rotate-right\" aria-label=\"Rotate right\" class=\"lg-rotate-right lg-icon\"></button>';}\nthis.core.$toolbar.append(rotateIcons);};Rotate.prototype.init=function(){var _this=this;if(!this.settings.rotate){return;}\nthis.buildTemplates();this.rotateValuesList={};this.core.LGel.on(lGEvents.afterAppendSlide+\".rotate\",function(event){var index=event.detail.index;var imageWrap=_this.core.getSlideItem(index).find('.lg-img-wrap').first();imageWrap.wrap('lg-img-rotate');_this.core.getSlideItem(_this.core.index).find('.lg-img-rotate').css('transition-duration',_this.settings.rotateSpeed+'ms');});this.core.outer.find('#lg-rotate-left').first().on('click.lg',this.rotateLeft.bind(this));this.core.outer.find('#lg-rotate-right').first().on('click.lg',this.rotateRight.bind(this));this.core.outer.find('#lg-flip-hor').first().on('click.lg',this.flipHorizontal.bind(this));this.core.outer.find('#lg-flip-ver').first().on('click.lg',this.flipVertical.bind(this));this.core.LGel.on(lGEvents.beforeSlide+\".rotate\",function(event){if(!_this.rotateValuesList[event.detail.index]){_this.rotateValuesList[event.detail.index]={rotate:0,flipHorizontal:1,flipVertical:1,};}});};Rotate.prototype.applyStyles=function(){var $image=this.core.getSlideItem(this.core.index).find('.lg-img-rotate').first();$image.css('transform','rotate('+\nthis.rotateValuesList[this.core.index].rotate+'deg)'+' scale3d('+\nthis.rotateValuesList[this.core.index].flipHorizontal+', '+\nthis.rotateValuesList[this.core.index].flipVertical+', 1)');};Rotate.prototype.rotateLeft=function(){this.rotateValuesList[this.core.index].rotate-=90;this.applyStyles();this.triggerEvents(lGEvents.rotateLeft,{rotate:this.rotateValuesList[this.core.index].rotate,});};Rotate.prototype.rotateRight=function(){this.rotateValuesList[this.core.index].rotate+=90;this.applyStyles();this.triggerEvents(lGEvents.rotateRight,{rotate:this.rotateValuesList[this.core.index].rotate,});};Rotate.prototype.getCurrentRotation=function(el){if(!el){return 0;}\nvar st=this.$LG(el).style();var tm=st.getPropertyValue('-webkit-transform')||st.getPropertyValue('-moz-transform')||st.getPropertyValue('-ms-transform')||st.getPropertyValue('-o-transform')||st.getPropertyValue('transform')||'none';if(tm!=='none'){var values=tm.split('(')[1].split(')')[0].split(',');if(values){var angle=Math.round(Math.atan2(values[1],values[0])*(180 / Math.PI));return angle<0?angle+360:angle;}}\nreturn 0;};Rotate.prototype.flipHorizontal=function(){var rotateEl=this.core.getSlideItem(this.core.index).find('.lg-img-rotate').first().get();var currentRotation=this.getCurrentRotation(rotateEl);var rotateAxis='flipHorizontal';if(currentRotation===90||currentRotation===270){rotateAxis='flipVertical';}\nthis.rotateValuesList[this.core.index][rotateAxis]*=-1;this.applyStyles();this.triggerEvents(lGEvents.flipHorizontal,{flipHorizontal:this.rotateValuesList[this.core.index][rotateAxis],});};Rotate.prototype.flipVertical=function(){var rotateEl=this.core.getSlideItem(this.core.index).find('.lg-img-rotate').first().get();var currentRotation=this.getCurrentRotation(rotateEl);var rotateAxis='flipVertical';if(currentRotation===90||currentRotation===270){rotateAxis='flipHorizontal';}\nthis.rotateValuesList[this.core.index][rotateAxis]*=-1;this.applyStyles();this.triggerEvents(lGEvents.flipVertical,{flipVertical:this.rotateValuesList[this.core.index][rotateAxis],});};Rotate.prototype.triggerEvents=function(event,detail){var _this=this;setTimeout(function(){_this.core.LGel.trigger(event,detail);},this.settings.rotateSpeed+10);};Rotate.prototype.isImageOrientationChanged=function(){var rotateValue=this.rotateValuesList[this.core.index];var isRotated=Math.abs(rotateValue.rotate)%360!==0;var ifFlippedHor=rotateValue.flipHorizontal<0;var ifFlippedVer=rotateValue.flipVertical<0;return isRotated||ifFlippedHor||ifFlippedVer;};Rotate.prototype.closeGallery=function(){if(this.isImageOrientationChanged()){this.core.getSlideItem(this.core.index).css('opacity',0);}\nthis.rotateValuesList={};};Rotate.prototype.destroy=function(){this.core.LGel.off('.lg.rotate');this.core.LGel.off('.rotate');};return Rotate;}());
2export default Rotate;","Nw_Additions/lib/lightgallery/plugins/share/lg-share.es5.min.js":"/*!\n * lightgallery | 2.2.1 | September 4th 2021\n * http://www.lightgalleryjs.com/\n * Copyright (c) 2020 Sachin Neravath;\n * @license GPLv3\n */\n\n/*! *****************************************************************************\nCopyright (c) Microsoft Corporation.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n***************************************************************************** */\nvar __assign=function(){__assign=Object.assign||function __assign(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p];}\nreturn t;};return __assign.apply(this,arguments);};function __spreadArrays(){for(var s=0,i=0,il=arguments.length;i<il;i++)s+=arguments[i].length;for(var r=Array(s),k=0,i=0;i<il;i++)\nfor(var a=arguments[i],j=0,jl=a.length;j<jl;j++,k++)\nr[k]=a[j];return r;}\nvar shareSettings={share:true,facebook:true,facebookDropdownText:'Facebook',twitter:true,twitterDropdownText:'Twitter',pinterest:true,pinterestDropdownText:'Pinterest',additionalShareOptions:[],};function getFacebookShareLink(galleryItem){var facebookBaseUrl='//www.facebook.com/sharer/sharer.php?u=';return(facebookBaseUrl+\nencodeURIComponent(galleryItem.facebookShareUrl||window.location.href));}\nfunction getTwitterShareLink(galleryItem){var twitterBaseUrl='//twitter.com/intent/tweet?text=';var url=encodeURIComponent(galleryItem.twitterShareUrl||window.location.href);var text=galleryItem.tweetText;return twitterBaseUrl+text+'&url='+url;}\nfunction getPinterestShareLink(galleryItem){var pinterestBaseUrl='http://www.pinterest.com/pin/create/button/?url=';var description=galleryItem.pinterestText;var media=encodeURIComponent(galleryItem.src);var url=encodeURIComponent(galleryItem.pinterestShareUrl||window.location.href);return(pinterestBaseUrl+\nurl+'&media='+\nmedia+'&description='+\ndescription);}\nvar lGEvents={afterAppendSlide:'lgAfterAppendSlide',init:'lgInit',hasVideo:'lgHasVideo',containerResize:'lgContainerResize',updateSlides:'lgUpdateSlides',afterAppendSubHtml:'lgAfterAppendSubHtml',beforeOpen:'lgBeforeOpen',afterOpen:'lgAfterOpen',slideItemLoad:'lgSlideItemLoad',beforeSlide:'lgBeforeSlide',afterSlide:'lgAfterSlide',posterClick:'lgPosterClick',dragStart:'lgDragStart',dragMove:'lgDragMove',dragEnd:'lgDragEnd',beforeNextSlide:'lgBeforeNextSlide',beforePrevSlide:'lgBeforePrevSlide',beforeClose:'lgBeforeClose',afterClose:'lgAfterClose',rotateLeft:'lgRotateLeft',rotateRight:'lgRotateRight',flipHorizontal:'lgFlipHorizontal',flipVertical:'lgFlipVertical',};var Share=(function(){function Share(instance){this.shareOptions=[];this.core=instance;this.settings=__assign(__assign({},shareSettings),this.core.settings);return this;}\nShare.prototype.init=function(){if(!this.settings.share){return;}\nthis.shareOptions=__spreadArrays(this.getDefaultShareOptions(),this.settings.additionalShareOptions);this.setLgShareMarkup();this.core.outer.find('.lg-share .lg-dropdown').append(this.getShareListHtml());this.core.LGel.on(lGEvents.afterSlide+\".share\",this.onAfterSlide.bind(this));};Share.prototype.getShareListHtml=function(){var shareHtml='';this.shareOptions.forEach(function(shareOption){shareHtml+=shareOption.dropdownHTML;});return shareHtml;};Share.prototype.setLgShareMarkup=function(){var _this=this;this.core.$toolbar.append(\"<button type=\\\"button\\\" aria-label=\\\"Share\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\" class=\\\"lg-share lg-icon\\\">\\n                <ul class=\\\"lg-dropdown\\\" style=\\\"position: absolute;\\\"></ul></button>\");this.core.outer.append('<div class=\"lg-dropdown-overlay\"></div>');var $shareButton=this.core.outer.find('.lg-share');$shareButton.first().on('click.lg',function(){_this.core.outer.toggleClass('lg-dropdown-active');if(_this.core.outer.hasClass('lg-dropdown-active')){_this.core.outer.attr('aria-expanded',true);}\nelse{_this.core.outer.attr('aria-expanded',false);}});this.core.outer.find('.lg-dropdown-overlay').first().on('click.lg',function(){_this.core.outer.removeClass('lg-dropdown-active');_this.core.outer.attr('aria-expanded',false);});};Share.prototype.onAfterSlide=function(event){var _this=this;var index=event.detail.index;var currentItem=this.core.galleryItems[index];setTimeout(function(){_this.shareOptions.forEach(function(shareOption){var selector=shareOption.selector;_this.core.outer.find(selector).attr('href',shareOption.generateLink(currentItem));});},100);};Share.prototype.getShareListItemHTML=function(type,text){return\"<li><a class=\\\"lg-share-\"+type+\"\\\" rel=\\\"noopener\\\" target=\\\"_blank\\\"><span class=\\\"lg-icon\\\"></span><span class=\\\"lg-dropdown-text\\\">\"+text+\"</span></a></li>\";};Share.prototype.getDefaultShareOptions=function(){return __spreadArrays((this.settings.facebook?[{type:'facebook',generateLink:getFacebookShareLink,dropdownHTML:this.getShareListItemHTML('facebook',this.settings.facebookDropdownText),selector:'.lg-share-facebook',},]:[]),(this.settings.twitter?[{type:'twitter',generateLink:getTwitterShareLink,dropdownHTML:this.getShareListItemHTML('twitter',this.settings.twitterDropdownText),selector:'.lg-share-twitter',},]:[]),(this.settings.pinterest?[{type:'pinterest',generateLink:getPinterestShareLink,dropdownHTML:this.getShareListItemHTML('pinterest',this.settings.pinterestDropdownText),selector:'.lg-share-pinterest',},]:[]));};Share.prototype.destroy=function(){this.core.outer.find('.lg-dropdown-overlay').remove();this.core.outer.find('.lg-share').remove();this.core.LGel.off('.lg.share');this.core.LGel.off('.share');};return Share;}());
2export default Share;","Nw_Additions/lib/lightgallery/plugins/share/lg-share.min.js":"/**\n * lightgallery | 2.2.1 | September 4th 2021\n * http://www.lightgalleryjs.com/\n * Copyright (c) 2020 Sachin Neravath;\n * @license GPLv3\n */\n\n!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(e):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).lgShare=e()}(this,(function(){\"use strict\";var t=function(){return(t=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)};function e(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;var o=Array(t),n=0;for(e=0;e<r;e++)for(var i=arguments[e],s=0,a=i.length;s<a;s++,n++)o[n]=i[s];return o}var r={share:!0,facebook:!0,facebookDropdownText:\"Facebook\",twitter:!0,twitterDropdownText:\"Twitter\",pinterest:!0,pinterestDropdownText:\"Pinterest\",additionalShareOptions:[]};function o(t){return\"//www.facebook.com/sharer/sharer.php?u=\"+encodeURIComponent(t.facebookShareUrl||window.location.href)}function n(t){var e=encodeURIComponent(t.twitterShareUrl||window.location.href);return\"//twitter.com/intent/tweet?text=\"+t.tweetText+\"&url=\"+e}function i(t){var e=t.pinterestText,r=encodeURIComponent(t.src);return\"http://www.pinterest.com/pin/create/button/?url=\"+encodeURIComponent(t.pinterestShareUrl||window.location.href)+\"&media=\"+r+\"&description=\"+e}var s=\"lgAfterSlide\";return function(){function a(e){return this.shareOptions=[],this.core=e,this.settings=t(t({},r),this.core.settings),this}return a.prototype.init=function(){this.settings.share&&(this.shareOptions=e(this.getDefaultShareOptions(),this.settings.additionalShareOptions),this.setLgShareMarkup(),this.core.outer.find(\".lg-share .lg-dropdown\").append(this.getShareListHtml()),this.core.LGel.on(s+\".share\",this.onAfterSlide.bind(this)))},a.prototype.getShareListHtml=function(){var t=\"\";return this.shareOptions.forEach((function(e){t+=e.dropdownHTML})),t},a.prototype.setLgShareMarkup=function(){var t=this;this.core.$toolbar.append('<button type=\"button\" aria-label=\"Share\" aria-haspopup=\"true\" aria-expanded=\"false\" class=\"lg-share lg-icon\">\\n                <ul class=\"lg-dropdown\" style=\"position: absolute;\"></ul></button>'),this.core.outer.append('<div class=\"lg-dropdown-overlay\"></div>'),this.core.outer.find(\".lg-share\").first().on(\"click.lg\",(function(){t.core.outer.toggleClass(\"lg-dropdown-active\"),t.core.outer.hasClass(\"lg-dropdown-active\")?t.core.outer.attr(\"aria-expanded\",!0):t.core.outer.attr(\"aria-expanded\",!1)})),this.core.outer.find(\".lg-dropdown-overlay\").first().on(\"click.lg\",(function(){t.core.outer.removeClass(\"lg-dropdown-active\"),t.core.outer.attr(\"aria-expanded\",!1)}))},a.prototype.onAfterSlide=function(t){var e=this,r=t.detail.index,o=this.core.galleryItems[r];setTimeout((function(){e.shareOptions.forEach((function(t){var r=t.selector;e.core.outer.find(r).attr(\"href\",t.generateLink(o))}))}),100)},a.prototype.getShareListItemHTML=function(t,e){return'<li><a class=\"lg-share-'+t+'\" rel=\"noopener\" target=\"_blank\"><span class=\"lg-icon\"></span><span class=\"lg-dropdown-text\">'+e+\"</span></a></li>\"},a.prototype.getDefaultShareOptions=function(){return e(this.settings.facebook?[{type:\"facebook\",generateLink:o,dropdownHTML:this.getShareListItemHTML(\"facebook\",this.settings.facebookDropdownText),selector:\".lg-share-facebook\"}]:[],this.settings.twitter?[{type:\"twitter\",generateLink:n,dropdownHTML:this.getShareListItemHTML(\"twitter\",this.settings.twitterDropdownText),selector:\".lg-share-twitter\"}]:[],this.settings.pinterest?[{type:\"pinterest\",generateLink:i,dropdownHTML:this.getShareListItemHTML(\"pinterest\",this.settings.pinterestDropdownText),selector:\".lg-share-pinterest\"}]:[])},a.prototype.destroy=function(){this.core.outer.find(\".lg-dropdown-overlay\").remove(),this.core.outer.find(\".lg-share\").remove(),this.core.LGel.off(\".lg.share\"),this.core.LGel.off(\".share\")},a}()}));\n","Nw_Additions/lib/lightgallery/plugins/share/lg-share.umd.min.js":"/*!\n * lightgallery | 2.2.1 | September 4th 2021\n * http://www.lightgalleryjs.com/\n * Copyright (c) 2020 Sachin Neravath;\n * @license GPLv3\n */\n(function(global,factory){typeof exports==='object'&&typeof module!=='undefined'?module.exports=factory():typeof define==='function'&&define.amd?define(factory):(global=typeof globalThis!=='undefined'?globalThis:global||self,global.lgShare=factory());}(this,(function(){'use strict';/*! *****************************************************************************\n    Copyright (c) Microsoft Corporation.\n\n    Permission to use, copy, modify, and/or distribute this software for any\n    purpose with or without fee is hereby granted.\n\n    THE SOFTWARE IS PROVIDED \"AS IS\" AN
2D THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\n    REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\n    AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\n    INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\n    LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\n    OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\n    PERFORMANCE OF THIS SOFTWARE.\n    ***************************************************************************** */\nvar __assign=function(){__assign=Object.assign||function __assign(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p];}\nreturn t;};return __assign.apply(this,arguments);};function __spreadArrays(){for(var s=0,i=0,il=arguments.length;i<il;i++)s+=arguments[i].length;for(var r=Array(s),k=0,i=0;i<il;i++)\nfor(var a=arguments[i],j=0,jl=a.length;j<jl;j++,k++)\nr[k]=a[j];return r;}\nvar shareSettings={share:true,facebook:true,facebookDropdownText:'Facebook',twitter:true,twitterDropdownText:'Twitter',pinterest:true,pinterestDropdownText:'Pinterest',additionalShareOptions:[],};function getFacebookShareLink(galleryItem){var facebookBaseUrl='//www.facebook.com/sharer/sharer.php?u=';return(facebookBaseUrl+\nencodeURIComponent(galleryItem.facebookShareUrl||window.location.href));}\nfunction getTwitterShareLink(galleryItem){var twitterBaseUrl='//twitter.com/intent/tweet?text=';var url=encodeURIComponent(galleryItem.twitterShareUrl||window.location.href);var text=galleryItem.tweetText;return twitterBaseUrl+text+'&url='+url;}\nfunction getPinterestShareLink(galleryItem){var pinterestBaseUrl='http://www.pinterest.com/pin/create/button/?url=';var description=galleryItem.pinterestText;var media=encodeURIComponent(galleryItem.src);var url=encodeURIComponent(galleryItem.pinterestShareUrl||window.location.href);return(pinterestBaseUrl+\nurl+'&media='+\nmedia+'&description='+\ndescription);}\nvar lGEvents={afterAppendSlide:'lgAfterAppendSlide',init:'lgInit',hasVideo:'lgHasVideo',containerResize:'lgContainerResize',updateSlides:'lgUpdateSlides',afterAppendSubHtml:'lgAfterAppendSubHtml',beforeOpen:'lgBeforeOpen',afterOpen:'lgAfterOpen',slideItemLoad:'lgSlideItemLoad',beforeSlide:'lgBeforeSlide',afterSlide:'lgAfterSlide',posterClick:'lgPosterClick',dragStart:'lgDragStart',dragMove:'lgDragMove',dragEnd:'lgDragEnd',beforeNextSlide:'lgBeforeNextSlide',beforePrevSlide:'lgBeforePrevSlide',beforeClose:'lgBeforeClose',afterClose:'lgAfterClose',rotateLeft:'lgRotateLeft',rotateRight:'lgRotateRight',flipHorizontal:'lgFlipHorizontal',flipVertical:'lgFlipVertical',};var Share=(function(){function Share(instance){this.shareOptions=[];this.core=instance;this.settings=__assign(__assign({},shareSettings),this.core.settings);return this;}\nShare.prototype.init=function(){if(!this.settings.share){return;}\nthis.shareOptions=__spreadArrays(this.getDefaultShareOptions(),this.settings.additionalShareOptions);this.setLgShareMarkup();this.core.outer.find('.lg-share .lg-dropdown').append(this.getShareListHtml());this.core.LGel.on(lGEvents.afterSlide+\".share\",this.onAfterSlide.bind(this));};Share.prototype.getShareListHtml=function(){var shareHtml='';this.shareOptions.forEach(function(shareOption){shareHtml+=shareOption.dropdownHTML;});return shareHtml;};Share.prototype.setLgShareMarkup=function(){var _this=this;this.core.$toolbar.append(\"<button type=\\\"button\\\" aria-label=\\\"Share\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\" class=\\\"lg-share lg-icon\\\">\\n                <ul class=\\\"lg-dropdown\\\" style=\\\"position: absolute;\\\"></ul></button>\");this.core.outer.append('<div class=\"lg-dropdown-overlay\"></div>');var $shareButton=this.core.outer.find('.lg-share');$shareButton.first().on('click.lg',function(){_this.core.outer.toggleClass('lg-dropdown-active');if(_this.core.outer.hasClass('lg-dropdown-active')){_this.core.outer.attr('aria-expanded',true);}\nelse{_this.core.outer.attr('aria-expanded',false);}});this.core.outer.find('.lg-dropdown-overlay').first().on('click.lg',function(){_this.core.outer.removeClass('lg-dropdown-active');_this.core.outer.attr('aria-expanded',false);});};Share.prototype.onAfterSlide=function(event){var _this=this;var index=event.detail.index;var currentItem=this.core.galleryItems[index];setTimeout(function(){_this.shareOptions.forEach(function(shareOption){var selector=shareOption.selector;_this.core.outer.find(selector).attr('href',shareOption.generateLink(currentItem));});},100);};Share.prototype.getShareListItemHTML=function(type,text){return\"<li><a class=\\\"lg-share-\"+type+\"\\\" rel=\\\"noopener\\\" target=\\\"_blank\\\"><span class=\\\"lg-icon\\\"></span><span class=\\\"lg-dropdown-text\\\">\"+text+\"</span></a></li>\";};Share.prototype.getDefaultShareOptions=function(){return __spreadArrays((this.settings.facebook?[{type:'facebook',generateLink:getFacebookShareLink,dropdownHTML:this.getShareListItemHTML('facebook',this.settings.facebookDropdownText),selector:'.lg-share-facebook',},]:[]),(this.settings.twitter?[{type:'twitter',generateLink:getTwitterShareLink,dropdownHTML:this.getShareListItemHTML('twitter',this.settings.twitterDropdownText),selector:'.lg-share-twitter',},]:[]),(this.settings.pinterest?[{type:'pinterest',generateLink:getPinterestShareLink,dropdownHTML:this.getShareListItemHTML('pinterest',this.settings.pinterestDropdownText),selector:'.lg-share-pinterest',},]:[]));};Share.prototype.destroy=function(){this.core.outer.find('.lg-dropdown-overlay').remove();this.core.outer.find('.lg-share').remove();this.core.LGel.off('.lg.share');this.core.LGel.off('.share');};return Share;}());return Share;})));","Nw_Additions/lib/lightgallery/plugins/zoom/lg-zoom.umd.min.js":"/*!\n * lightgallery | 2.2.1 | September 4th 2021\n * http://www.lightgalleryjs.com/\n * Copyright (c) 2020 Sachin Neravath;\n * @license GPLv3\n */\n(function(global,factory){typeof exports==='object'&&typeof module!=='undefined'?module.exports=factory():typeof define==='function'&&define.amd?define(factory):(global=typeof globalThis!=='undefined'?globalThis:global||self,global.lgZoom=factory());}(this,(function(){'use strict';/*! *****************************************************************************\n    Copyright (c) Microsoft Corporation.\n\n    Permission to use, copy, modify, and/or distribute this software for any\n    purpose with or without fee is hereby granted.\n\n    THE SOFTWARE IS PROVIDED \"AS IS\" AN
2D THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\n    REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\n    AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\n    INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\n    LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\n    OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\n    PERFORMANCE OF THIS SOFTWARE.\n    ***************************************************************************** */\nvar __assign=function(){__assign=Object.assign||function __assign(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p];}\nreturn t;};return __assign.apply(this,arguments);};var zoomSettings={scale:1,zoom:true,actualSize:true,showZoomInOutIcons:false,actualSizeIcons:{zoomIn:'lg-zoom-in',zoomOut:'lg-zoom-out',},enableZoomAfter:300,};var lGEvents={afterAppendSlide:'lgAfterAppendSlide',init:'lgInit',hasVideo:'lgHasVideo',containerResize:'lgContainerResize',updateSlides:'lgUpdateSlides',afterAppendSubHtml:'lgAfterAppendSubHtml',beforeOpen:'lgBeforeOpen',afterOpen:'lgAfterOpen',slideItemLoad:'lgSlideItemLoad',beforeSlide:'lgBeforeSlide',afterSlide:'lgAfterSlide',posterClick:'lgPosterClick',dragStart:'lgDragStart',dragMove:'lgDragMove',dragEnd:'lgDragEnd',beforeNextSlide:'lgBeforeNextSlide',beforePrevSlide:'lgBeforePrevSlide',beforeClose:'lgBeforeClose',afterClose:'lgAfterClose',rotateLeft:'lgRotateLeft',rotateRight:'lgRotateRight',flipHorizontal:'lgFlipHorizontal',flipVertical:'lgFlipVertical',};var Zoom=(function(){function Zoom(instance,$LG){this.core=instance;this.$LG=$LG;this.settings=__assign(__assign({},zoomSettings),this.core.settings);return this;}\nZoom.prototype.buildTemplates=function(){var zoomIcons=this.settings.showZoomInOutIcons?\"<button id=\\\"\"+this.core.getIdName('lg-zoom-in')+\"\\\" type=\\\"button\\\" aria-label=\\\"Zoom in\\\" class=\\\"lg-zoom-in lg-icon\\\"></button><button id=\\\"\"+this.core.getIdName('lg-zoom-out')+\"\\\" type=\\\"button\\\" aria-label=\\\"Zoom out\\\" class=\\\"lg-zoom-out lg-icon\\\"></button>\":'';if(this.settings.actualSize){zoomIcons+=\"<button id=\\\"\"+this.core.getIdName('lg-actual-size')+\"\\\" type=\\\"button\\\" aria-label=\\\"View actual size\\\" class=\\\"\"+this.settings.actualSizeIcons.zoomIn+\" lg-icon\\\"></button>\";}\nthis.core.outer.addClass('lg-use-transition-for-zoom');this.core.$toolbar.first().append(zoomIcons);};Zoom.prototype.enableZoom=function(event){var _this=this;var _speed=this.settings.enableZoomAfter+event.detail.delay;if(this.$LG('body').first().hasClass('lg-from-hash')&&event.detail.delay){_speed=0;}\nelse{this.$LG('body').first().removeClass('lg-from-hash');}\nthis.zoomableTimeout=setTimeout(function(){if(!_this.isImageSlide()){return;}\n_this.core.getSlideItem(event.detail.index).addClass('lg-zoomable');if(event.detail.index===_this.core.index){_this.setZoomEssentials();}},_speed+30);};Zoom.prototype.enableZoomOnSlideItemLoad=function(){this.core.LGel.on(lGEvents.slideItemLoad+\".zoom\",this.enableZoom.bind(this));};Zoom.prototype.getModifier=function(rotateValue,axis,el){var originalRotate=rotateValue;rotateValue=Math.abs(rotateValue);var transformValues=this.getCurrentTransform(el);if(!transformValues){return 1;}\nvar modifier=1;if(axis==='X'){var flipHorizontalValue=Math.sign(parseFloat(transformValues[0]));if(rotateValue===0||rotateValue===180){modifier=1;}\nelse if(rotateValue===90){if((originalRotate===-90&&flipHorizontalValue===1)||(originalRotate===90&&flipHorizontalValue===-1)){modifier=-1;}\nelse{modifier=1;}}\nmodifier=modifier*flipHorizontalValue;}\nelse{var flipVerticalValue=Math.sign(parseFloat(transformValues[3]));if(rotateValue===0||rotateValue===180){modifier=1;}\nelse if(rotateValue===90){var sinX=parseFloat(transformValues[1]);var sinMinusX=parseFloat(transformValues[2]);modifier=Math.sign(sinX*sinMinusX*originalRotate*flipVerticalValue);}\nmodifier=modifier*flipVerticalValue;}\nreturn modifier;};Zoom.prototype.getImageSize=function($image,rotateValue,axis){var imageSizes={y:'offsetHeight',x:'offsetWidth',};
2if(Math.abs(rotateValue)===90){if(axis==='x'){axis='y';}\nelse{axis='x';}}\nreturn $image[imageSizes[axis]];};Zoom.prototype.getDragCords=function(e,rotateValue){if(rotateValue===90){return{x:e.pageY,y:e.pageX,};}\nelse{return{x:e.pageX,y:e.pageY,};}};Zoom.prototype.getSwipeCords=function(e,rotateValue){var x=e.targetTouches[0].pageX;var y=e.targetTouches[0].pageY;if(rotateValue===90){return{x:y,y:x,};}\nelse{return{x:x,y:y,};}};Zoom.prototype.getDragAllowedAxises=function(rotateValue,scale){scale=scale||this.scale||1;var allowY=this.imageYSize*scale>this.containerRect.height;var allowX=this.imageXSize*scale>this.containerRect.width;if(rotateValue===90){return{allowX:allowY,allowY:allowX,};}\nelse{return{allowX:allowX,allowY:allowY,};}};Zoom.prototype.getCurrentTransform=function(el){if(!el){return;}\nvar st=window.getComputedStyle(el,null);var tm=st.getPropertyValue('-webkit-transform')||st.getPropertyValue('-moz-transform')||st.getPropertyValue('-ms-transform')||st.getPropertyValue('-o-transform')||st.getPropertyValue('transform')||'none';if(tm!=='none'){return tm.split('(')[1].split(')')[0].split(',');}\nreturn;};Zoom.prototype.getCurrentRotation=function(el){if(!el){return 0;}\nvar values=this.getCurrentTransform(el);if(values){return Math.round(Math.atan2(parseFloat(values[1]),parseFloat(values[0]))*(180 / Math.PI));}\nreturn 0;};Zoom.prototype.setZoomEssentials=function(){var $image=this.core.getSlideItem(this.core.index).find('.lg-image').first();var rotateEl=this.core.getSlideItem(this.core.index).find('.lg-img-rotate').first().get();this.rotateValue=this.getCurrentRotation(rotateEl);this.imageYSize=this.getImageSize($image.get(),this.rotateValue,'y');this.imageXSize=this.getImageSize($image.get(),this.rotateValue,'x');this.containerRect=this.core.outer.get().getBoundingClientRect();this.modifierX=this.getModifier(this.rotateValue,'X',rotateEl);this.modifierY=this.getModifier(this.rotateValue,'Y',rotateEl);};Zoom.prototype.zoomImage=function(scale){var offsetX=(this.containerRect.width-this.imageXSize)/ 2+\nthis.containerRect.left;var _a=this.core.mediaContainerPosition,top=_a.top,bottom=_a.bottom;var topBottomSpacing=Math.abs(top-bottom)/ 2;var offsetY=(this.containerRect.height-\nthis.imageYSize-\ntopBottomSpacing*this.modifierX)/\n2+\nthis.scrollTop+\nthis.containerRect.top;var originalX;var originalY;if(scale===1){this.positionChanged=false;}\nvar dragAllowedAxises=this.getDragAllowedAxises(Math.abs(this.rotateValue),scale);var allowY=dragAllowedAxises.allowY,allowX=dragAllowedAxises.allowX;if(this.positionChanged){originalX=this.left /(this.scale-1);originalY=this.top /(this.scale-1);this.pageX=Math.abs(originalX)+offsetX;this.pageY=Math.abs(originalY)+offsetY;this.positionChanged=false;}\nvar possibleSwipeCords=this.getPossibleSwipeDragCords(this.rotateValue,scale);var _x=offsetX-this.pageX;var _y=offsetY-this.pageY;var x=(scale-1)*_x;var y=(scale-1)*_y;if(allowX){if(this.isBeyondPossibleLeft(x,possibleSwipeCords.minX)){x=possibleSwipeCords.minX;}\nelse if(this.isBeyondPossibleRight(x,possibleSwipeCords.maxX)){x=possibleSwipeCords.maxX;}}\nelse{if(scale>1){if(x<possibleSwipeCords.minX){x=possibleSwipeCords.minX;}\nelse if(x>possibleSwipeCords.maxX){x=possibleSwipeCords.maxX;}}}\nif(allowY){if(this.isBeyondPossibleTop(y,possibleSwipeCords.minY)){y=possibleSwipeCords.minY;}\nelse if(this.isBeyondPossibleBottom(y,possibleSwipeCords.maxY)){y=possibleSwipeCords.maxY;}}\nelse{if(scale>1){if(y<possibleSwipeCords.minY){y=possibleSwipeCords.minY;}\nelse if(y>possibleSwipeCords.maxY){y=possibleSwipeCords.maxY;}}}\nthis.setZoomStyles({x:x,y:y,scale:scale,});};Zoom.prototype.setZoomStyles=function(style){var $image=this.core.getSlideItem(this.core.index).find('.lg-image').first();var $dummyImage=this.core.outer.find('.lg-current .lg-dummy-img').first();var $imageWrap=$image.parent();this.scale=style.scale;$image.css('transform','scale3d('+style.scale+', '+style.scale+', 1)');$dummyImage.css('transform','scale3d('+style.scale+', '+style.scale+', 1)');var transform='translate3d('+style.x+'px, '+style.y+'px, 0)';$imageWrap.css('transform',transform);this.left=style.x;this.top=style.y;};Zoom.prototype.setActualSize=function(index,event){var _this=this;if(!this.isImageSlide()||this.core.outer.hasClass('lg-first-slide-loading')){return;}\nvar scale=this.getCurrentImageActualSizeScale();if(this.core.outer.hasClass('lg-zoomed')){this.scale=1;}\nelse{this.scale=this.getScale(scale);}\nthis.setPageCords(event);this.beginZoom(this.scale);this.zoomImage(this.scale);setTimeout(function(){_this.core.outer.removeClass('lg-grabbing').addClass('lg-grab');},10);};
2Zoom.prototype.getNaturalWidth=function(index){var $image=this.core.getSlideItem(index).find('.lg-image').first();var naturalWidth=this.core.galleryItems[index].width;return naturalWidth?parseFloat(naturalWidth):$image.get().naturalWidth;};Zoom.prototype.getActualSizeScale=function(naturalWidth,width){var _scale;var scale;if(naturalWidth>width){_scale=naturalWidth / width;scale=_scale||2;}\nelse{scale=1;}\nreturn scale;};Zoom.prototype.getCurrentImageActualSizeScale=function(){var $image=this.core.getSlideItem(this.core.index).find('.lg-image').first();var width=$image.get().offsetWidth;var naturalWidth=this.getNaturalWidth(this.core.index)||width;return this.getActualSizeScale(naturalWidth,width);};Zoom.prototype.getPageCords=function(event){var cords={};if(event){cords.x=event.pageX||event.targetTouches[0].pageX;cords.y=event.pageY||event.targetTouches[0].pageY;}\nelse{var containerRect=this.core.outer.get().getBoundingClientRect();cords.x=containerRect.width / 2+containerRect.left;cords.y=containerRect.height / 2+this.scrollTop+containerRect.top;}\nreturn cords;};Zoom.prototype.setPageCords=function(event){var pageCords=this.getPageCords(event);this.pageX=pageCords.x;this.pageY=pageCords.y;};Zoom.prototype.beginZoom=function(scale){this.core.outer.removeClass('lg-zoom-drag-transition lg-zoom-dragging');if(scale>1){this.core.outer.addClass('lg-zoomed');var $actualSize=this.core.getElementById('lg-actual-size');$actualSize.removeClass(this.settings.actualSizeIcons.zoomIn).addClass(this.settings.actualSizeIcons.zoomOut);}\nelse{this.resetZoom();}\nreturn scale>1;};Zoom.prototype.getScale=function(scale){var actualSizeScale=this.getCurrentImageActualSizeScale();if(scale<1){scale=1;}\nelse if(scale>actualSizeScale){scale=actualSizeScale;}\nreturn scale;};Zoom.prototype.init=function(){var _this=this;if(!this.settings.zoom){return;}\nthis.buildTemplates();this.enableZoomOnSlideItemLoad();var tapped=null;this.core.outer.on('dblclick.lg',function(event){if(!_this.$LG(event.target).hasClass('lg-image')){return;}\n_this.setActualSize(_this.core.index,event);});this.core.outer.on('touchstart.lg',function(event){var $target=_this.$LG(event.target);if(event.targetTouches.length===1&&$target.hasClass('lg-image')){if(!tapped){tapped=setTimeout(function(){tapped=null;},300);}\nelse{clearTimeout(tapped);tapped=null;event.preventDefault();_this.setActualSize(_this.core.index,event);}}});this.core.LGel.on(lGEvents.containerResize+\".zoom \"+lGEvents.rotateRight+\".zoom \"+lGEvents.rotateLeft+\".zoom \"+lGEvents.flipHorizontal+\".zoom \"+lGEvents.flipVertical+\".zoom\",function(){if(!_this.core.lgOpened||!_this.isImageSlide())\nreturn;_this.setPageCords();_this.setZoomEssentials();_this.zoomImage(_this.scale);});this.$LG(window).on(\"scroll.lg.zoom.global\"+this.core.lgId,function(){if(!_this.core.lgOpened)\nreturn;_this.scrollTop=_this.$LG(window).scrollTop();});this.core.getElementById('lg-zoom-out').on('click.lg',function(){if(_this.core.outer.find('.lg-current .lg-image').get()){_this.scale-=_this.settings.scale;_this.scale=_this.getScale(_this.scale);_this.beginZoom(_this.scale);_this.zoomImage(_this.scale);}});this.core.getElementById('lg-zoom-in').on('click.lg',function(){_this.zoomIn();});this.core.getElementById('lg-actual-size').on('click.lg',function(){_this.setActualSize(_this.core.index);});this.core.LGel.on(lGEvents.beforeOpen+\".zoom\",function(){_this.core.outer.find('.lg-item').removeClass('lg-zoomable');});this.core.LGel.on(lGEvents.afterOpen+\".zoom\",function(){_this.scrollTop=_this.$LG(window).scrollTop();_this.pageX=_this.core.outer.width()/ 2;_this.pageY=_this.core.outer.height()/ 2+_this.scrollTop;_this.scale=1;});this.core.LGel.on(lGEvents.afterSlide+\".zoom\",function(event){var prevIndex=event.detail.prevIndex;_this.scale=1;_this.positionChanged=false;_this.resetZoom(prevIndex);if(_this.isImageSlide()){_this.setZoomEssentials();}});this.zoomDrag();this.pinchZoom();this.zoomSwipe();this.zoomableTimeout=false;this.positionChanged=false;};Zoom.prototype.zoomIn=function(scale){if(!this.isImageSlide()){return;}\nif(scale){this.scale=scale;}\nelse{this.scale+=this.settings.scale;}\nthis.scale=this.getScale(this.scale);this.beginZoom(this.scale);this.zoomImage(this.scale);};Zoom.prototype.resetZoom=function(index){this.core.outer.removeClass('lg-zoomed lg-zoom-drag-transition');var $actualSize=this.core.getElementById('lg-actual-size');var $item=this.core.getSlideItem(index!==undefined?index:this.core.index);$actualSize.removeClass(this.settings.actualSizeIcons.zoomOut).addClass(this.settings.actualSizeIcons.zoomIn);$item.find('.lg-img-wrap').first().removeAttr('style');$item.find('.lg-image').first().removeAttr('style');this.scale=1;this.left=0;this.top=0;this.setPageCords();};Zoom.prototype.getTouchDistance=function(e){return Math.sqrt((e.targetTouches[0].pageX-e.targetTouches[1].pageX)*(e.targetTouches[0].pageX-e.targetTouches[1].pageX)+\n(e.targetTouches[0].pageY-e.targetTouches[1].pageY)*(e.targetTouches[0].pageY-e.targetTouches[1].pageY));};Zoom.prototype.pinchZoom=function(){var _this=this;var startDist=0;var pinchStarted=false;var initScale=1;var $item=this.core.getSlideItem(this.core.index);this.core.$inner.on('touchstart.lg',function(e){$item=_this.core.getSlideItem(_this.core.index);if(!_this.isImageSlide()){return;}\nif(e.targetTouches.length===2&&!_this.core.outer.hasClass('lg-first-slide-loading')&&(_this.$LG(e.target).hasClass('lg-item')||$item.get().contains(e.target))){initScale=_this.scale||1;_this.core.outer.removeClass('lg-zoom-drag-transition lg-zoom-dragging');_this.core.touchAction='pinch';startDist=_this.getTouchDistance(e);}});this.core.$inner.on('touchmove.lg',function(e){if(e.targetTouches.length===2&&_this.core.touchAction==='pinch'&&(_this.$LG(e.target).hasClass('lg-item')||$item.get().contains(e.target))){e.preventDefault();var endDist=_this.getTouchDistance(e);var distance=startDist-endDist;if(!pinchStarted&&Math.abs(distance)>5){pinchStarted=true;}
2\nif(pinchStarted){_this.scale=Math.max(1,initScale+ -distance*0.008);_this.zoomImage(_this.scale);}}});this.core.$inner.on('touchend.lg',function(e){if(_this.core.touchAction==='pinch'&&(_this.$LG(e.target).hasClass('lg-item')||$item.get().contains(e.target))){pinchStarted=false;startDist=0;if(_this.scale<=1){_this.resetZoom();}\nelse{_this.scale=_this.getScale(_this.scale);_this.zoomImage(_this.scale);_this.core.outer.addClass('lg-zoomed');}\n_this.core.touchAction=undefined;}});};Zoom.prototype.touchendZoom=function(startCoords,endCoords,allowX,allowY,touchDuration,rotateValue){var distanceXnew=endCoords.x-startCoords.x;var distanceYnew=endCoords.y-startCoords.y;var speedX=Math.abs(distanceXnew)/ touchDuration+1;var speedY=Math.abs(distanceYnew)/ touchDuration+1;if(speedX>2){speedX+=1;}\nif(speedY>2){speedY+=1;}\ndistanceXnew=distanceXnew*speedX;distanceYnew=distanceYnew*speedY;var _LGel=this.core.getSlideItem(this.core.index).find('.lg-img-wrap').first();var distance={};distance.x=this.left+distanceXnew*this.modifierX;distance.y=this.top+distanceYnew*this.modifierY;var possibleSwipeCords=this.getPossibleSwipeDragCords(rotateValue);if(Math.abs(distanceXnew)>15||Math.abs(distanceYnew)>15){if(allowY){if(this.isBeyondPossibleTop(distance.y,possibleSwipeCords.minY)){distance.y=possibleSwipeCords.minY;}\nelse if(this.isBeyondPossibleBottom(distance.y,possibleSwipeCords.maxY)){distance.y=possibleSwipeCords.maxY;}}\nif(allowX){if(this.isBeyondPossibleLeft(distance.x,possibleSwipeCords.minX)){distance.x=possibleSwipeCords.minX;}\nelse if(this.isBeyondPossibleRight(distance.x,possibleSwipeCords.maxX)){distance.x=possibleSwipeCords.maxX;}}\nif(allowY){this.top=distance.y;}\nelse{distance.y=this.top;}\nif(allowX){this.left=distance.x;}\nelse{distance.x=this.left;}\nthis.setZoomSwipeStyles(_LGel,distance);this.positionChanged=true;}};Zoom.prototype.getZoomSwipeCords=function(startCoords,endCoords,allowX,allowY,possibleSwipeCords){var distance={};if(allowY){distance.y=this.top+(endCoords.y-startCoords.y)*this.modifierY;if(this.isBeyondPossibleTop(distance.y,possibleSwipeCords.minY)){var diffMinY=possibleSwipeCords.minY-distance.y;distance.y=possibleSwipeCords.minY-diffMinY / 6;}\nelse if(this.isBeyondPossibleBottom(distance.y,possibleSwipeCords.maxY)){var diffMaxY=distance.y-possibleSwipeCords.maxY;distance.y=possibleSwipeCords.maxY+diffMaxY / 6;}}\nelse{distance.y=this.top;}\nif(allowX){distance.x=this.left+(endCoords.x-startCoords.x)*this.modifierX;if(this.isBeyondPossibleLeft(distance.x,possibleSwipeCords.minX)){var diffMinX=possibleSwipeCords.minX-distance.x;distance.x=possibleSwipeCords.minX-diffMinX / 6;}\nelse if(this.isBeyondPossibleRight(distance.x,possibleSwipeCords.maxX)){var difMaxX=distance.x-possibleSwipeCords.maxX;distance.x=possibleSwipeCords.maxX+difMaxX / 6;}}\nelse{distance.x=this.left;}\nreturn distance;};Zoom.prototype.isBeyondPossibleLeft=function(x,minX){return x>=minX;};Zoom.prototype.isBeyondPossibleRight=function(x,maxX){return x<=maxX;};Zoom.prototype.isBeyondPossibleTop=function(y,minY){return y>=minY;};Zoom.prototype.isBeyondPossibleBottom=function(y,maxY){return y<=maxY;};Zoom.prototype.isImageSlide=function(){var currentItem=this.core.galleryItems[this.core.index];return this.core.getSlideType(currentItem)==='image';};Zoom.prototype.getPossibleSwipeDragCords=function(rotateValue,scale){var dataScale=scale||this.scale||1;var elDataScale=Math.abs(dataScale);var _a=this.core.mediaContainerPosition,top=_a.top,bottom=_a.bottom;var topBottomSpacing=Math.abs(top-bottom)/ 2;var minY=(this.imageYSize-this.containerRect.height)/ 2+\ntopBottomSpacing*this.modifierX;var maxY=this.containerRect.height-this.imageYSize*elDataScale+minY;var minX=(this.imageXSize-this.containerRect.width)/ 2;var maxX=this.containerRect.width-this.imageXSize*elDataScale+minX;var possibleSwipeCords={minY:minY,maxY:maxY,minX:minX,maxX:maxX,};if(Math.abs(rotateValue)===90){possibleSwipeCords={minY:minX,maxY:maxX,minX:minY,maxX:maxY,};}\nreturn possibleSwipeCords;};Zoom.prototype.setZoomSwipeStyles=function(LGel,distance){LGel.css('transform','translate3d('+distance.x+'px, '+distance.y+'px, 0)');};Zoom.prototype.zoomSwipe=function(){var _this=this;var startCoords={};var endCoords={};var isMoved=false;var allowX=false;var allowY=false;var startTime=new Date();var endTime=new Date();var possibleSwipeCords;var _LGel;var $item=this.core.getSlideItem(this.core.index);this.core.$inner.on('touchstart.lg',function(e){if(!_this.isImageSlide()){return;}\n$item=_this.core.getSlideItem(_this.core.index);if((_this.$LG(e.target).hasClass('lg-item')||$item.get().contains(e.target))&&e.targetTouches.length===1&&_this.core.outer.hasClass('lg-zoomed')){e.preventDefault();startTime=new Date();_this.core.touchAction='zoomSwipe';_LGel=_this.core.getSlideItem(_this.core.index).find('.lg-img-wrap').first();var dragAllowedAxises=_this.getDragAllowedAxises(Math.abs(_this.rotateValue));allowY=dragAllowedAxises.allowY;allowX=dragAllowedAxises.allowX;
2if(allowX||allowY){startCoords=_this.getSwipeCords(e,Math.abs(_this.rotateValue));}\npossibleSwipeCords=_this.getPossibleSwipeDragCords(_this.rotateValue);_this.core.outer.addClass('lg-zoom-dragging lg-zoom-drag-transition');}});this.core.$inner.on('touchmove.lg',function(e){if(e.targetTouches.length===1&&_this.core.touchAction==='zoomSwipe'&&(_this.$LG(e.target).hasClass('lg-item')||$item.get().contains(e.target))){e.preventDefault();_this.core.touchAction='zoomSwipe';endCoords=_this.getSwipeCords(e,Math.abs(_this.rotateValue));var distance=_this.getZoomSwipeCords(startCoords,endCoords,allowX,allowY,possibleSwipeCords);if(Math.abs(endCoords.x-startCoords.x)>15||Math.abs(endCoords.y-startCoords.y)>15){isMoved=true;_this.setZoomSwipeStyles(_LGel,distance);}}});this.core.$inner.on('touchend.lg',function(e){if(_this.core.touchAction==='zoomSwipe'&&(_this.$LG(e.target).hasClass('lg-item')||$item.get().contains(e.target))){_this.core.touchAction=undefined;_this.core.outer.removeClass('lg-zoom-dragging');if(!isMoved){return;}\nisMoved=false;endTime=new Date();var touchDuration=endTime.valueOf()-startTime.valueOf();_this.touchendZoom(startCoords,endCoords,allowX,allowY,touchDuration,_this.rotateValue);}});};Zoom.prototype.zoomDrag=function(){var _this=this;var startCoords={};var endCoords={};var isDragging=false;var isMoved=false;var allowX=false;var allowY=false;var startTime;var endTime;var possibleSwipeCords;var _LGel;this.core.outer.on('mousedown.lg.zoom',function(e){if(!_this.isImageSlide()){return;}\nvar $item=_this.core.getSlideItem(_this.core.index);if(_this.$LG(e.target).hasClass('lg-item')||$item.get().contains(e.target)){startTime=new Date();_LGel=_this.core.getSlideItem(_this.core.index).find('.lg-img-wrap').first();var dragAllowedAxises=_this.getDragAllowedAxises(Math.abs(_this.rotateValue));allowY=dragAllowedAxises.allowY;allowX=dragAllowedAxises.allowX;if(_this.core.outer.hasClass('lg-zoomed')){if(_this.$LG(e.target).hasClass('lg-object')&&(allowX||allowY)){e.preventDefault();startCoords=_this.getDragCords(e,Math.abs(_this.rotateValue));possibleSwipeCords=_this.getPossibleSwipeDragCords(_this.rotateValue);isDragging=true;_this.core.outer.get().scrollLeft+=1;_this.core.outer.get().scrollLeft-=1;_this.core.outer.removeClass('lg-grab').addClass('lg-grabbing lg-zoom-drag-transition lg-zoom-dragging');}}}});this.$LG(window).on(\"mousemove.lg.zoom.global\"+this.core.lgId,function(e){if(isDragging){isMoved=true;endCoords=_this.getDragCords(e,Math.abs(_this.rotateValue));var distance=_this.getZoomSwipeCords(startCoords,endCoords,allowX,allowY,possibleSwipeCords);_this.setZoomSwipeStyles(_LGel,distance);}});this.$LG(window).on(\"mouseup.lg.zoom.global\"+this.core.lgId,function(e){if(isDragging){endTime=new Date();isDragging=false;_this.core.outer.removeClass('lg-zoom-dragging');if(isMoved&&(startCoords.x!==endCoords.x||startCoords.y!==endCoords.y)){endCoords=_this.getDragCords(e,Math.abs(_this.rotateValue));var touchDuration=endTime.valueOf()-startTime.valueOf();_this.touchendZoom(startCoords,endCoords,allowX,allowY,touchDuration,_this.rotateValue);}\nisMoved=false;}\n_this.core.outer.removeClass('lg-grabbing').addClass('lg-grab');});};Zoom.prototype.closeGallery=function(){this.resetZoom();};Zoom.prototype.destroy=function(){this.$LG(window).off(\".lg.zoom.global\"+this.core.lgId);this.core.LGel.off('.lg.zoom');this.core.LGel.off('.zoom');clearTimeout(this.zoomableTimeout);this.zoomableTimeout=false;};return Zoom;}());return Zoom;})));","Nw_Additions/lib/lightgallery/plugins/zoom/lg-zoom.es5.min.js":"/*!\n * lightgallery | 2.2.1 | September 4th 2021\n * http://www.lightgalleryjs.com/\n * Copyright (c) 2020 Sachin Neravath;\n * @license GPLv3\n */\n\n/*! *****************************************************************************\nCopyright (c) Microsoft Corporation.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n***************************************************************************** */\nvar __assign=function(){__assign=Object.assign||function __assign(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p];}\nreturn t;};return __assign.apply(this,arguments);};var zoomSettings={scale:1,zoom:true,actualSize:true,showZoomInOutIcons:false,actualSizeIcons:{zoomIn:'lg-zoom-in',zoomOut:'lg-zoom-out',},enableZoomAfter:300,};var lGEvents={afterAppendSlide:'lgAfterAppendSlide',init:'lgInit',hasVideo:'lgHasVideo',containerResize:'lgContainerResize',updateSlides:'lgUpd
2ateSlides',afterAppendSubHtml:'lgAfterAppendSubHtml',beforeOpen:'lgBeforeOpen',afterOpen:'lgAfterOpen',slideItemLoad:'lgSlideItemLoad',beforeSlide:'lgBeforeSlide',afterSlide:'lgAfterSlide',posterClick:'lgPosterClick',dragStart:'lgDragStart',dragMove:'lgDragMove',dragEnd:'lgDragEnd',beforeNextSlide:'lgBeforeNextSlide',beforePrevSlide:'lgBeforePrevSlide',beforeClose:'lgBeforeClose',afterClose:'lgAfterClose',rotateLeft:'lgRotateLeft',rotateRight:'lgRotateRight',flipHorizontal:'lgFlipHorizontal',flipVertical:'lgFlipVertical',};var Zoom=(function(){function Zoom(instance,$LG){this.core=instance;this.$LG=$LG;this.settings=__assign(__assign({},zoomSettings),this.core.settings);return this;}\nZoom.prototype.buildTemplates=function(){var zoomIcons=this.settings.showZoomInOutIcons?\"<button id=\\\"\"+this.core.getIdName('lg-zoom-in')+\"\\\" type=\\\"button\\\" aria-label=\\\"Zoom in\\\" class=\\\"lg-zoom-in lg-icon\\\"></button><button id=\\\"\"+this.core.getIdName('lg-zoom-out')+\"\\\" type=\\\"button\\\" aria-label=\\\"Zoom out\\\" class=\\\"lg-zoom-out lg-icon\\\"></button>\":'';if(this.settings.actualSize){zoomIcons+=\"<button id=\\\"\"+this.core.getIdName('lg-actual-size')+\"\\\" type=\\\"button\\\" aria-label=\\\"View actual size\\\" class=\\\"\"+this.settings.actualSizeIcons.zoomIn+\" lg-icon\\\"></button>\";}\nthis.core.outer.addClass('lg-use-transition-for-zoom');this.core.$toolbar.first().append(zoomIcons);};Zoom.prototype.enableZoom=function(event){var _this=this;var _speed=this.settings.enableZoomAfter+event.detail.delay;if(this.$LG('body').first().hasClass('lg-from-hash')&&event.detail.delay){_speed=0;}\nelse{this.$LG('body').first().removeClass('lg-from-hash');}\nthis.zoomableTimeout=setTimeout(function(){if(!_this.isImageSlide()){return;}\n_this.core.getSlideItem(event.detail.index).addClass('lg-zoomable');if(event.detail.index===_this.core.index){_this.setZoomEssentials();}},_speed+30);};Zoom.prototype.enableZoomOnSlideItemLoad=function(){this.core.LGel.on(lGEvents.slideItemLoad+\".zoom\",this.enableZoom.bind(this));};Zoom.prototype.getModifier=function(rotateValue,axis,el){var originalRotate=rotateValue;rotateValue=Math.abs(rotateValue);var transformValues=this.getCurrentTransform(el);if(!transformValues){return 1;}\nvar modifier=1;if(axis==='X'){var flipHorizontalValue=Math.sign(parseFloat(transformValues[0]));if(rotateValue===0||rotateValue===180){modifier=1;}\nelse if(rotateValue===90){if((originalRotate===-90&&flipHorizontalValue===1)||(originalRotate===90&&flipHorizontalValue===-1)){modifier=-1;}\nelse{modifier=1;}}\nmodifier=modifier*flipHorizontalValue;}\nelse{var flipVerticalValue=Math.sign(parseFloat(transformValues[3]));if(rotateValue===0||rotateValue===180){modifier=1;}\nelse if(rotateValue===90){var sinX=parseFloat(transformValues[1]);var sinMinusX=parseFloat(transformValues[2]);modifier=Math.sign(sinX*sinMinusX*originalRotate*flipVerticalValue);}\nmodifier=modifier*flipVerticalValue;}\nreturn modifier;};Zoom.prototype.getImageSize=function($image,rotateValue,axis){var imageSizes={y:'offsetHeight',x:'offsetWidth',};if(Math.abs(rotateValue)===90){if(axis==='x'){axis='y';}\nelse{axis='x';}}\nreturn $image[imageSizes[axis]];};Zoom.prototype.getDragCords=function(e,rotateValue){if(rotateValue===90){return{x:e.pageY,y:e.pageX,};}\nelse{return{x:e.pageX,y:e.pageY,};}};Zoom.prototype.getSwipeCords=function(e,rotateValue){var x=e.targetTouches[0].pageX;var y=e.targetTouches[0].pageY;if(rotateValue===90){return{x:y,y:x,};}\nelse{return{x:x,y:y,};}};Zoom.prototype.getDragAllowedAxises=function(rotateValue,scale){scale=scale||this.scale||1;var allowY=this.imageYSize*scale>this.containerRect.height;var allowX=this.imageXSize*scale>this.containerRect.width;if(rotateValue===90){return{allowX:allowY,allowY:allowX,};}\nelse{return{allowX:allowX,allowY:allowY,};}};Zoom.prototype.getCurrentTransform=function(el){if(!el){return;}\nvar st=window.getComputedStyle(el,null);var tm=st.getPropertyValue('-webkit-transform')||st.getPropertyValue('-moz-transform')||st.getPropertyValue('-ms-transform')||st.getPropertyValue('-o-transform')||st.getPropertyValue('transform')||'none';if(tm!=='none'){return tm.split('(')[1].split(')')[0].split(',');}\nreturn;};Zoom.prototype.getCurrentRotation=function(el){if(!el){return 0;}\nvar values=this.getCurrentTransform(el);if(values){return Math.round(Math.atan2(parseFloat(values[1]),parseFloat(values[0]))*(180 / Math.PI));}\nreturn 0;};Zoom.prototype.setZoomEssentials=function(){var $image=this.core.getSlideItem(this.core.index).find('.lg-image').first();var rotateEl=this.core.getSlideItem(this.core.index).find('.lg-img-rotate').first().get();this.rotateValue=this.getCurrentRotation(rotateEl);this.imageYSize=this.getImageSize($image.get(),this.rotateValue,'y');this.imageXSize=this.getImageSize($image.get(),this.rotateValue,'x');this.containerRect=this.core.outer.get().getBoundingClientRect();this.modifierX=this.getModifier(this.rotateValue,'X',rotateEl);this.modifierY=this.getModifier(this.rotateValue,'Y',rotateEl);};Zoom.prototype.zoomImage=function(scale){var offsetX=(this.containerRect.width-this.imageXSize)/ 2+\nthis.containerRect.left;var _a=this.core.mediaContainerPosition,top=_a.top,bottom=_a.bottom;var topBottomSpacing=Math.abs(top-bottom)/ 2;var offsetY=(this.containerRect.height-\nthis.imageYSize-\ntopBottomSpacing*this.modifierX)/\n2+\nthis.scrollTop+\nthis.containerRect.top;var originalX;var originalY;if(scale===1){this.positionChanged=false;}\nvar dragAllowedAxises=this.getDragAllowedAxises(Math.abs(this.rotateValue),scale);var allowY=dragAllowedAxises.allowY,allowX=dragAllowedAxises.allowX;if(this.positionChanged){originalX=this.left /(this.scale-1);originalY=this.top /(this.scale-1);this.pageX=Math.abs(originalX)+offsetX;this.pageY=Math.abs(originalY)+offsetY;this.positionChanged=false;}\nvar possibleSwipeCords=this.getPossibleSwipeDragCords(this.rotateValue,scale);var _x=offsetX-this.pageX;var _y=offsetY-this.pageY;var x=(scale-1)*_x;var y=(scale-1)*_y;if(allowX){if(this.isBeyondPossibleLeft(x,possibleSwipeCords.minX)){x=possibleSwipeCords.minX;}\nelse if(this.isBeyondPossibleRight(x,possibleSwipeCords.maxX)){x=possibleSwipeCords.maxX;}}\nelse{if(scale>1){if(x<possibleSwipeCords.minX){x=possibleSwipeCords.minX;}\nelse if(x>possibleSwipeCords.maxX){x=possibleSwipeCords.maxX;}}}\nif(allowY){if(this.isBeyondPossibleTop(y,possibleSwipeCords.minY)){y=possibleSwipeCords.minY;}\nelse if(this.isBeyondPossibleBottom(y,possibleSwipeCords.maxY)){y=possibleSwipeCords.maxY;}}\nelse{if(scale>1){if(y<possibleSwipeCords.minY){y=possibleSwipeCords.minY;}\nelse if(y>possibleSwipeCords.maxY){y=possibleSwipeCords.maxY;}}}\nthis.setZoomStyles({x:x,y:y,scale:scale,});};Zoom.prototype.setZoomStyles=function(style){var $image=this.core.getSlideItem(this.core.index).find('.lg-image').first();var $dummyImage=this.core.outer.find('.lg-current .lg-dummy-img').first();var $imageWrap=$image.parent();this.scale=style.scale;$image.css('transform','scale3d('+style.scale+', '+style.scale+', 1)');$dummyImage.css('transform','scale3d('+style.scale+', '+style.scale+', 1)');var transform='translate3d('+style.x+'px, '+style.y+'px, 0)';$imageWrap.css('transform',transform);this.left=style.x;this.top=style.y;};Zoom.prototype.setActualSize=function(index,event){var _this=this;if(!this.isImageSlide()||this.core.outer.hasClass('lg-first-slide-loading')){return;}\nvar scale=this.getCurrentImageActualSizeScale();if(this.core.outer.hasClass('lg-zoomed')){this.scale=1;}\nelse{this.scale=this.getScale(scale);}\nthis.setPageCords(event);this.beginZoom(this.scale);this.zoomImage(this.scale);setTimeout(function(){_this.core.outer.removeClass('lg-grabbing').addClass('lg-grab');},10);};
2Zoom.prototype.getNaturalWidth=function(index){var $image=this.core.getSlideItem(index).find('.lg-image').first();var naturalWidth=this.core.galleryItems[index].width;return naturalWidth?parseFloat(naturalWidth):$image.get().naturalWidth;};Zoom.prototype.getActualSizeScale=function(naturalWidth,width){var _scale;var scale;if(naturalWidth>width){_scale=naturalWidth / width;scale=_scale||2;}\nelse{scale=1;}\nreturn scale;};Zoom.prototype.getCurrentImageActualSizeScale=function(){var $image=this.core.getSlideItem(this.core.index).find('.lg-image').first();var width=$image.get().offsetWidth;var naturalWidth=this.getNaturalWidth(this.core.index)||width;return this.getActualSizeScale(naturalWidth,width);};Zoom.prototype.getPageCords=function(event){var cords={};if(event){cords.x=event.pageX||event.targetTouches[0].pageX;cords.y=event.pageY||event.targetTouches[0].pageY;}\nelse{var containerRect=this.core.outer.get().getBoundingClientRect();cords.x=containerRect.width / 2+containerRect.left;cords.y=containerRect.height / 2+this.scrollTop+containerRect.top;}\nreturn cords;};Zoom.prototype.setPageCords=function(event){var pageCords=this.getPageCords(event);this.pageX=pageCords.x;this.pageY=pageCords.y;};Zoom.prototype.beginZoom=function(scale){this.core.outer.removeClass('lg-zoom-drag-transition lg-zoom-dragging');if(scale>1){this.core.outer.addClass('lg-zoomed');var $actualSize=this.core.getElementById('lg-actual-size');$actualSize.removeClass(this.settings.actualSizeIcons.zoomIn).addClass(this.settings.actualSizeIcons.zoomOut);}\nelse{this.resetZoom();}\nreturn scale>1;};Zoom.prototype.getScale=function(scale){var actualSizeScale=this.getCurrentImageActualSizeScale();if(scale<1){scale=1;}\nelse if(scale>actualSizeScale){scale=actualSizeScale;}\nreturn scale;};Zoom.prototype.init=function(){var _this=this;if(!this.settings.zoom){return;}\nthis.buildTemplates();this.enableZoomOnSlideItemLoad();var tapped=null;this.core.outer.on('dblclick.lg',function(event){if(!_this.$LG(event.target).hasClass('lg-image')){return;}\n_this.setActualSize(_this.core.index,event);});this.core.outer.on('touchstart.lg',function(event){var $target=_this.$LG(event.target);if(event.targetTouches.length===1&&$target.hasClass('lg-image')){if(!tapped){tapped=setTimeout(function(){tapped=null;},300);}\nelse{clearTimeout(tapped);tapped=null;event.preventDefault();_this.setActualSize(_this.core.index,event);}}});this.core.LGel.on(lGEvents.containerResize+\".zoom \"+lGEvents.rotateRight+\".zoom \"+lGEvents.rotateLeft+\".zoom \"+lGEvents.flipHorizontal+\".zoom \"+lGEvents.flipVertical+\".zoom\",function(){if(!_this.core.lgOpened||!_this.isImageSlide())\nreturn;_this.setPageCords();_this.setZoomEssentials();_this.zoomImage(_this.scale);});this.$LG(window).on(\"scroll.lg.zoom.global\"+this.core.lgId,function(){if(!_this.core.lgOpened)\nreturn;_this.scrollTop=_this.$LG(window).scrollTop();});this.core.getElementById('lg-zoom-out').on('click.lg',function(){if(_this.core.outer.find('.lg-current .lg-image').get()){_this.scale-=_this.settings.scale;_this.scale=_this.getScale(_this.scale);_this.beginZoom(_this.scale);_this.zoomImage(_this.scale);}});this.core.getElementById('lg-zoom-in').on('click.lg',function(){_this.zoomIn();});this.core.getElementById('lg-actual-size').on('click.lg',function(){_this.setActualSize(_this.core.index);});this.core.LGel.on(lGEvents.beforeOpen+\".zoom\",function(){_this.core.outer.find('.lg-item').removeClass('lg-zoomable');});this.core.LGel.on(lGEvents.afterOpen+\".zoom\",function(){_this.scrollTop=_this.$LG(window).scrollTop();_this.pageX=_this.core.outer.width()/ 2;_this.pageY=_this.core.outer.height()/ 2+_this.scrollTop;_this.scale=1;});this.core.LGel.on(lGEvents.afterSlide+\".zoom\",function(event){var prevIndex=event.detail.prevIndex;_this.scale=1;_this.positionChanged=false;_this.resetZoom(prevIndex);if(_this.isImageSlide()){_this.setZoomEssentials();}});this.zoomDrag();this.pinchZoom();this.zoomSwipe();this.zoomableTimeout=false;this.positionChanged=false;};Zoom.prototype.zoomIn=function(scale){if(!this.isImageSlide()){return;}\nif(scale){this.scale=scale;}\nelse{this.scale+=this.settings.scale;}\nthis.scale=this.getScale(this.scale);this.beginZoom(this.scale);this.zoomImage(this.scale);};Zoom.prototype.resetZoom=function(index){this.core.outer.removeClass('lg-zoomed lg-zoom-drag-transition');var $actualSize=this.core.getElementById('lg-actual-size');var $item=this.core.getSlideItem(index!==undefined?index:this.core.index);$actualSize.removeClass(this.settings.actualSizeIcons.zoomOut).addClass(this.settings.actualSizeIcons.zoomIn);$item.find('.lg-img-wrap').first().removeAttr('style');$item.find('.lg-image').first().removeAttr('style');this.scale=1;this.left=0;this.top=0;this.setPageCords();};Zoom.prototype.getTouchDistance=function(e){return Math.sqrt((e.targetTouches[0].pageX-e.targetTouches[1].pageX)*(e.targetTouches[0].pageX-e.targetTouches[1].pageX)+\n(e.targetTouches[0].pageY-e.targetTouches[1].pageY)*(e.targetTouches[0].pageY-e.targetTouches[1].pageY));};Zoom.prototype.pinchZoom=function(){var _this=this;var startDist=0;var pinchStarted=false;var initScale=1;var $item=this.core.getSlideItem(this.core.index);this.core.$inner.on('touchstart.lg',function(e){$item=_this.core.getSlideItem(_this.core.index);if(!_this.isImageSlide()){return;}\nif(e.targetTouches.length===2&&!_this.core.outer.hasClass('lg-first-slide-loading')&&(_this.$LG(e.target).hasClass('lg-item')||$item.get().contains(e.target))){initScale=_this.scale||1;_this.core.outer.removeClass('lg-zoom-drag-transition lg-zoom-dragging');_this.core.touchAction='pinch';startDist=_this.getTouchDistance(e);}});this.core.$inner.on('touchmove.lg',function(e){if(e.targetTouches.length===2&&_this.core.touchAction==='pinch'&&(_this.$LG(e.target).hasClass('lg-item')||$item.get().contains(e.target))){e.preventDefault();var endDist=_this.getTouchDistance(e);var distance=startDist-endDist;if(!pinchStarted&&Math.abs(distance)>5){pinchStarted=true;}
2\nif(pinchStarted){_this.scale=Math.max(1,initScale+ -distance*0.008);_this.zoomImage(_this.scale);}}});this.core.$inner.on('touchend.lg',function(e){if(_this.core.touchAction==='pinch'&&(_this.$LG(e.target).hasClass('lg-item')||$item.get().contains(e.target))){pinchStarted=false;startDist=0;if(_this.scale<=1){_this.resetZoom();}\nelse{_this.scale=_this.getScale(_this.scale);_this.zoomImage(_this.scale);_this.core.outer.addClass('lg-zoomed');}\n_this.core.touchAction=undefined;}});};Zoom.prototype.touchendZoom=function(startCoords,endCoords,allowX,allowY,touchDuration,rotateValue){var distanceXnew=endCoords.x-startCoords.x;var distanceYnew=endCoords.y-startCoords.y;var speedX=Math.abs(distanceXnew)/ touchDuration+1;var speedY=Math.abs(distanceYnew)/ touchDuration+1;if(speedX>2){speedX+=1;}\nif(speedY>2){speedY+=1;}\ndistanceXnew=distanceXnew*speedX;distanceYnew=distanceYnew*speedY;var _LGel=this.core.getSlideItem(this.core.index).find('.lg-img-wrap').first();var distance={};distance.x=this.left+distanceXnew*this.modifierX;distance.y=this.top+distanceYnew*this.modifierY;var possibleSwipeCords=this.getPossibleSwipeDragCords(rotateValue);if(Math.abs(distanceXnew)>15||Math.abs(distanceYnew)>15){if(allowY){if(this.isBeyondPossibleTop(distance.y,possibleSwipeCords.minY)){distance.y=possibleSwipeCords.minY;}\nelse if(this.isBeyondPossibleBottom(distance.y,possibleSwipeCords.maxY)){distance.y=possibleSwipeCords.maxY;}}\nif(allowX){if(this.isBeyondPossibleLeft(distance.x,possibleSwipeCords.minX)){distance.x=possibleSwipeCords.minX;}\nelse if(this.isBeyondPossibleRight(distance.x,possibleSwipeCords.maxX)){distance.x=possibleSwipeCords.maxX;}}\nif(allowY){this.top=distance.y;}\nelse{distance.y=this.top;}\nif(allowX){this.left=distance.x;}\nelse{distance.x=this.left;}\nthis.setZoomSwipeStyles(_LGel,distance);this.positionChanged=true;}};Zoom.prototype.getZoomSwipeCords=function(startCoords,endCoords,allowX,allowY,possibleSwipeCords){var distance={};if(allowY){distance.y=this.top+(endCoords.y-startCoords.y)*this.modifierY;if(this.isBeyondPossibleTop(distance.y,possibleSwipeCords.minY)){var diffMinY=possibleSwipeCords.minY-distance.y;distance.y=possibleSwipeCords.minY-diffMinY / 6;}\nelse if(this.isBeyondPossibleBottom(distance.y,possibleSwipeCords.maxY)){var diffMaxY=distance.y-possibleSwipeCords.maxY;distance.y=possibleSwipeCords.maxY+diffMaxY / 6;}}\nelse{distance.y=this.top;}\nif(allowX){distance.x=this.left+(endCoords.x-startCoords.x)*this.modifierX;if(this.isBeyondPossibleLeft(distance.x,possibleSwipeCords.minX)){var diffMinX=possibleSwipeCords.minX-distance.x;distance.x=possibleSwipeCords.minX-diffMinX / 6;}\nelse if(this.isBeyondPossibleRight(distance.x,possibleSwipeCords.maxX)){var difMaxX=distance.x-possibleSwipeCords.maxX;distance.x=possibleSwipeCords.maxX+difMaxX / 6;}}\nelse{distance.x=this.left;}\nreturn distance;};Zoom.prototype.isBeyondPossibleLeft=function(x,minX){return x>=minX;};Zoom.prototype.isBeyondPossibleRight=function(x,maxX){return x<=maxX;};Zoom.prototype.isBeyondPossibleTop=function(y,minY){return y>=minY;};Zoom.prototype.isBeyondPossibleBottom=function(y,maxY){return y<=maxY;};Zoom.prototype.isImageSlide=function(){var currentItem=this.core.galleryItems[this.core.index];return this.core.getSlideType(currentItem)==='image';};Zoom.prototype.getPossibleSwipeDragCords=function(rotateValue,scale){var dataScale=scale||this.scale||1;var elDataScale=Math.abs(dataScale);var _a=this.core.mediaContainerPosition,top=_a.top,bottom=_a.bottom;var topBottomSpacing=Math.abs(top-bottom)/ 2;var minY=(this.imageYSize-this.containerRect.height)/ 2+\ntopBottomSpacing*this.modifierX;var maxY=this.containerRect.height-this.imageYSize*elDataScale+minY;var minX=(this.imageXSize-this.containerRect.width)/ 2;var maxX=this.containerRect.width-this.imageXSize*elDataScale+minX;var possibleSwipeCords={minY:minY,maxY:maxY,minX:minX,maxX:maxX,};if(Math.abs(rotateValue)===90){possibleSwipeCords={minY:minX,maxY:maxX,minX:minY,maxX:maxY,};}\nreturn possibleSwipeCords;};Zoom.prototype.setZoomSwipeStyles=function(LGel,distance){LGel.css('transform','translate3d('+distance.x+'px, '+distance.y+'px, 0)');};Zoom.prototype.zoomSwipe=function(){var _this=this;var startCoords={};var endCoords={};var isMoved=false;var allowX=false;var allowY=false;var startTime=new Date();var endTime=new Date();var possibleSwipeCords;var _LGel;var $item=this.core.getSlideItem(this.core.index);this.core.$inner.on('touchstart.lg',function(e){if(!_this.isImageSlide()){return;}\n$item=_this.core.getSlideItem(_this.core.index);if((_this.$LG(e.target).hasClass('lg-item')||$item.get().contains(e.target))&&e.targetTouches.length===1&&_this.core.outer.hasClass('lg-zoomed')){e.preventDefault();startTime=new Date();_this.core.touchAction='zoomSwipe';_LGel=_this.core.getSlideItem(_this.core.index).find('.lg-img-wrap').first();var dragAllowedAxises=_this.getDragAllowedAxises(Math.abs(_this.rotateValue));allowY=dragAllowedAxises.allowY;allowX=dragAllowedAxises.allowX;
2if(allowX||allowY){startCoords=_this.getSwipeCords(e,Math.abs(_this.rotateValue));}\npossibleSwipeCords=_this.getPossibleSwipeDragCords(_this.rotateValue);_this.core.outer.addClass('lg-zoom-dragging lg-zoom-drag-transition');}});this.core.$inner.on('touchmove.lg',function(e){if(e.targetTouches.length===1&&_this.core.touchAction==='zoomSwipe'&&(_this.$LG(e.target).hasClass('lg-item')||$item.get().contains(e.target))){e.preventDefault();_this.core.touchAction='zoomSwipe';endCoords=_this.getSwipeCords(e,Math.abs(_this.rotateValue));var distance=_this.getZoomSwipeCords(startCoords,endCoords,allowX,allowY,possibleSwipeCords);if(Math.abs(endCoords.x-startCoords.x)>15||Math.abs(endCoords.y-startCoords.y)>15){isMoved=true;_this.setZoomSwipeStyles(_LGel,distance);}}});this.core.$inner.on('touchend.lg',function(e){if(_this.core.touchAction==='zoomSwipe'&&(_this.$LG(e.target).hasClass('lg-item')||$item.get().contains(e.target))){_this.core.touchAction=undefined;_this.core.outer.removeClass('lg-zoom-dragging');if(!isMoved){return;}\nisMoved=false;endTime=new Date();var touchDuration=endTime.valueOf()-startTime.valueOf();_this.touchendZoom(startCoords,endCoords,allowX,allowY,touchDuration,_this.rotateValue);}});};Zoom.prototype.zoomDrag=function(){var _this=this;var startCoords={};var endCoords={};var isDragging=false;var isMoved=false;var allowX=false;var allowY=false;var startTime;var endTime;var possibleSwipeCords;var _LGel;this.core.outer.on('mousedown.lg.zoom',function(e){if(!_this.isImageSlide()){return;}\nvar $item=_this.core.getSlideItem(_this.core.index);if(_this.$LG(e.target).hasClass('lg-item')||$item.get().contains(e.target)){startTime=new Date();_LGel=_this.core.getSlideItem(_this.core.index).find('.lg-img-wrap').first();var dragAllowedAxises=_this.getDragAllowedAxises(Math.abs(_this.rotateValue));allowY=dragAllowedAxises.allowY;allowX=dragAllowedAxises.allowX;if(_this.core.outer.hasClass('lg-zoomed')){if(_this.$LG(e.target).hasClass('lg-object')&&(allowX||allowY)){e.preventDefault();startCoords=_this.getDragCords(e,Math.abs(_this.rotateValue));possibleSwipeCords=_this.getPossibleSwipeDragCords(_this.rotateValue);isDragging=true;_this.core.outer.get().scrollLeft+=1;_this.core.outer.get().scrollLeft-=1;_this.core.outer.removeClass('lg-grab').addClass('lg-grabbing lg-zoom-drag-transition lg-zoom-dragging');}}}});this.$LG(window).on(\"mousemove.lg.zoom.global\"+this.core.lgId,function(e){if(isDragging){isMoved=true;endCoords=_this.getDragCords(e,Math.abs(_this.rotateValue));var distance=_this.getZoomSwipeCords(startCoords,endCoords,allowX,allowY,possibleSwipeCords);_this.setZoomSwipeStyles(_LGel,distance);}});this.$LG(window).on(\"mouseup.lg.zoom.global\"+this.core.lgId,function(e){if(isDragging){endTime=new Date();isDragging=false;_this.core.outer.removeClass('lg-zoom-dragging');if(isMoved&&(startCoords.x!==endCoords.x||startCoords.y!==endCoords.y)){endCoords=_this.getDragCords(e,Math.abs(_this.rotateValue));var touchDuration=endTime.valueOf()-startTime.valueOf();_this.touchendZoom(startCoords,endCoords,allowX,allowY,touchDuration,_this.rotateValue);}\nisMoved=false;}\n_this.core.outer.removeClass('lg-grabbing').addClass('lg-grab');});};Zoom.prototype.closeGallery=function(){this.resetZoom();};Zoom.prototype.destroy=function(){this.$LG(window).off(\".lg.zoom.global\"+this.core.lgId);this.core.LGel.off('.lg.zoom');this.core.LGel.off('.zoom');clearTimeout(this.zoomableTimeout);this.zoomableTimeout=false;};return Zoom;}());export default Zoom;","Nw_Additions/lib/lightgallery/plugins/zoom/lg-zoom.min.js":"/**\n * lightgallery | 2.2.1 | September 4th 2021\n * http://www.lightgalleryjs.com/\n * Copyright (c) 2020 Sachin Neravath;\n * @license GPLv3\n */\n\n!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(e):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).lgZoom=e()}(this,(function(){\"use strict\";var t=function(){return(t=Object.assign||function(t){for(var e,o=1,i=arguments.length;o<i;o++)for(var s in e=arguments[o])Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t}).apply(this,arguments)},e={scale:1,zoom:!0,actualSize:!0,showZoomInOutIcons:!1,actualSizeIcons:{zoomIn:\"lg-zoom-in\",zoomOut:\"lg-zoom-out\"},enableZoomAfter:300},o=\"lgContainerResize\",i=\"lgBeforeOpen\",s=\"lgAfterOpen\",a=\"lgSlideItemLoad\",r=\"lgAfterSlide\",n=\"lgRotateLeft\",l=\"lgRotateRight\",g=\"lgFlipHorizontal\",c=\"lgFlipVertical\";return function(){function h(o,i){return this.core=o,this.$LG=i,this.settings=t(t({},e),this.core.settings),this}return h.prototype.buildTemplates=function(){var t=this.settings.showZoomInOutIcons?'<button id=\"'+this.core.getIdName(\"lg-zoom-in\")+'\" type=\"button\" aria-label=\"Zoom in\" class=\"lg-zoom-in lg-icon\"></button><button id=\"'+this.core.getIdName(\"lg-zoom-out\")+'\" type=\"button\" aria-label=\"Zoom out\" class=\"lg-zoom-out lg-icon\"></button>':\"\";this.settings.actualSize&&(t+='<button id=\"'+this.core.getIdName(\"lg-actual-size\")+'\" type=\"button\" aria-label=\"View actual size\" class=\"'+this.settings.actualSizeIcons.zoomIn+' lg-icon\"></button>'),this.core.outer.addClass(\"lg-use-transition-for-zoom\"),this.core.$toolbar.first().append(t)},h.prototype.enableZoom=function(t){var e=this,o=this.settings.enableZoomAfter+t.detail.delay;this.$LG(\"body\").first().hasClass(\"lg-from-hash\")&&t.detail.delay?o=0:this.$LG(\"body\").first().removeClass(\"lg-from-hash\"),this.zoomableTimeout=setTimeout((function(){e.isImageSlide()&&(e.core.getSlideItem(t.detail.index).addClass(\"lg-zoomable\"),t.detail.index===e.core.index&&e.setZoomEssentials())}),o+30)},h.prototype.enableZoomOnSlideItemLoad=function(){this.core.LGel.on(a+\".zoom\",this.enableZoom.bind(this))},h.prototype.getModifier=function(t,e,o){var i=t;t=Math.abs(t);var s=this.getCurrentTransform(o);if(!s)return 1;var a=1;if(\"X\"===e){var r=Math.sign(parseFloat(s[0]));0===t||180===t?a=1:90===t&&(a=-90===i&&1===r||90===i&&-1===r?-1:1),a*=r}else{var n=Math.sign(parseFloat(s[3]));if(0===t||180===t)a=1;else if(90===t){var l=parseFloat(s[1]),g=parseFloat(s[2]);a=Math.sign(l*g*i*n)}a*=n}return a},h.prototype.getImageSize=function(t,e,o){return 90===Math.abs(e)&&(o=\"x\"===o?\"y\":\"x\"),t[{y:\"offsetHeight\",x:\"offsetWidth\"}[o]]},h.prototype.getDragCords=function(t,e){return 90===e?{x:t.pageY,y:t.pageX}:{x:t.pageX,y:t.pageY}},h.prototype.getSwipeCords=function(t,e){var o=t.targetTouches[0].pageX,i=t.targetTouches[0].pageY;return 90===e?{x:i,y:o}:{x:o,y:i}},h.prototype.getDragAllowedAxises=function(t,e){e=e||this.scale||1;var o=this.imageYSize*e>this.containerRect.height,i=this.imageXSize*e>this.containerRect.width;return 90===t?{allowX:o,allowY:i}:{allowX:i,allowY:o}},h.prototype.getCurrentTransform=function(t){if(t){var e=window.getComputedStyle(t,null),o=e.getPropertyValue(\"-webkit-transform\")||e.getPropertyValue(\"-moz-transform\")||e.getPropertyValue(\"-ms-transform\")||e.getPropertyValue(\"-o-transform\")||e.getPropertyValue(\"transform\")||\"none\";return\"none\"!==o?o.split(\"(\")[1].split(\")\")[0].split(\",\"):void 0}},h.prototype.getCurrentRotation=function(t){if(!t)return 0;var e=this.getCurrentTransform(t);return e?Math.round(Math.atan2(parseFloat(e[1]),parseFloat(e[0]))*(180/Math.PI)):0},h.prototype.setZoomEssentials=function(){var t=this.core.getSlideItem(this.core.index).find(\".lg-image\").first(),e=this.core.getSlideItem(this.core.index).find(\".lg-img-rotate\").first().get();this.rotateValue=this.getCurrentRotation(e),this.imageYSize=this.getImageSize(t.get(),this.rotateValue,\"y\"),this.imageXSize=this.getImageSize(t.get(),this.rotateValue,\"x\"),this.containerRect=this.core.outer.get().getBoundingClientRect(),this.modifierX=this.getModifier(this.rotateValue,\"X\",e),this.modifierY=this.getModifier(this.rotateValue,\"Y\",e)},h.prototype.zoomImage=function(t){var e,o,i=(this.containerRect.width-this.imageXSize)/2+this.containerRect.left,s=this.core.mediaContainerPosition,a=s.top,r=s.bottom,n=Math.abs(a-r)/2,l=(this.containerRect.height-this.imageYSize-n*this.modifierX)/2+this.scrollTop+this.containerRect.top;1===t&&(this.positionChanged=!1);var g=this.getDragAllowedAxises(Math.abs(this.rotateValue),t),c=g.allowY,h=g.allowX;this.positionChanged&&(e=this.left/(this.scale-1),o=this.top/(this.scale-1),this.pageX=Math.abs(e)+i,this.pageY=Math.abs(o)+l,this.positionChanged=!1);var m=this.getPossibleSwipeDragCords(this.rotateValue,t),u=(t-1)*(i-this.pageX),d=(t-1)*(l-this.pageY);h?this.isBeyondPossibleLeft(u,m.minX)?u=m.minX:this.isBeyondPossibleRight(u,m.maxX)&&(u=m.maxX):t>1&&(u<m.minX?u=m.minX:u>m.maxX&&(u=m.maxX)),c?this.isBeyondPossibleTop(d,m.minY)?d=m.minY:this.isBeyondPossibleBottom(d,m.maxY)&&(d=m.maxY):t>
21&&(d<m.minY?d=m.minY:d>m.maxY&&(d=m.maxY)),this.setZoomStyles({x:u,y:d,scale:t})},h.prototype.setZoomStyles=function(t){var e=this.core.getSlideItem(this.core.index).find(\".lg-image\").first(),o=this.core.outer.find(\".lg-current .lg-dummy-img\").first(),i=e.parent();this.scale=t.scale,e.css(\"transform\",\"scale3d(\"+t.scale+\", \"+t.scale+\", 1)\"),o.css(\"transform\",\"scale3d(\"+t.scale+\", \"+t.scale+\", 1)\");var s=\"translate3d(\"+t.x+\"px, \"+t.y+\"px, 0)\";i.css(\"transform\",s),this.left=t.x,this.top=t.y},h.prototype.setActualSize=function(t,e){var o=this;if(this.isImageSlide()&&!this.core.outer.hasClass(\"lg-first-slide-loading\")){var i=this.getCurrentImageActualSizeScale();this.core.outer.hasClass(\"lg-zoomed\")?this.scale=1:this.scale=this.getScale(i),this.setPageCords(e),this.beginZoom(this.scale),this.zoomImage(this.scale),setTimeout((function(){o.core.outer.removeClass(\"lg-grabbing\").addClass(\"lg-grab\")}),10)}},h.prototype.getNaturalWidth=function(t){var e=this.core.getSlideItem(t).find(\".lg-image\").first(),o=this.core.galleryItems[t].width;return o?parseFloat(o):e.get().naturalWidth},h.prototype.getActualSizeScale=function(t,e){return t>e?t/e||2:1},h.prototype.getCurrentImageActualSizeScale=function(){var t=this.core.getSlideItem(this.core.index).find(\".lg-image\").first().get().offsetWidth,e=this.getNaturalWidth(this.core.index)||t;return this.getActualSizeScale(e,t)},h.prototype.getPageCords=function(t){var e={};if(t)e.x=t.pageX||t.targetTouches[0].pageX,e.y=t.pageY||t.targetTouches[0].pageY;else{var o=this.core.outer.get().getBoundingClientRect();e.x=o.width/2+o.left,e.y=o.height/2+this.scrollTop+o.top}return e},h.prototype.setPageCords=function(t){var e=this.getPageCords(t);this.pageX=e.x,this.pageY=e.y},h.prototype.beginZoom=function(t){(this.core.outer.removeClass(\"lg-zoom-drag-transition lg-zoom-dragging\"),t>1)?(this.core.outer.addClass(\"lg-zoomed\"),this.core.getElementById(\"lg-actual-size\").removeClass(this.settings.actualSizeIcons.zoomIn).addClass(this.settings.actualSizeIcons.zoomOut)):this.resetZoom();return t>1},h.prototype.getScale=function(t){var e=this.getCurrentImageActualSizeScale();return t<1?t=1:t>e&&(t=e),t},h.prototype.init=function(){var t=this;if(this.settings.zoom){this.buildTemplates(),this.enableZoomOnSlideItemLoad();var e=null;this.core.outer.on(\"dblclick.lg\",(function(e){t.$LG(e.target).hasClass(\"lg-image\")&&t.setActualSize(t.core.index,e)})),this.core.outer.on(\"touchstart.lg\",(function(o){var i=t.$LG(o.target);1===o.targetTouches.length&&i.hasClass(\"lg-image\")&&(e?(clearTimeout(e),e=null,o.preventDefault(),t.setActualSize(t.core.index,o)):e=setTimeout((function(){e=null}),300))})),this.core.LGel.on(o+\".zoom \"+l+\".zoom \"+n+\".zoom \"+g+\".zoom \"+c+\".zoom\",(function(){t.core.lgOpened&&t.isImageSlide()&&(t.setPageCords(),t.setZoomEssentials(),t.zoomImage(t.scale))})),this.$LG(window).on(\"scroll.lg.zoom.global\"+this.core.lgId,(function(){t.core.lgOpened&&(t.scrollTop=t.$LG(window).scrollTop())})),this.core.getElementById(\"lg-zoom-out\").on(\"click.lg\",(function(){t.core.outer.find(\".lg-current .lg-image\").get()&&(t.scale-=t.settings.scale,t.scale=t.getScale(t.scale),t.beginZoom(t.scale),t.zoomImage(t.scale))})),this.core.getElementById(\"lg-zoom-in\").on(\"click.lg\",(function(){t.zoomIn()})),this.core.getElementById(\"lg-actual-size\").on(\"click.lg\",(function(){t.setActualSize(t.core.index)})),this.core.LGel.on(i+\".zoom\",(function(){t.core.outer.find(\".lg-item\").removeClass(\"lg-zoomable\")})),this.core.LGel.on(s+\".zoom\",(function(){t.scrollTop=t.$LG(window).scrollTop(),t.pageX=t.core.outer.width()/2,t.pageY=t.core.outer.height()/2+t.scrollTop,t.scale=1})),this.core.LGel.on(r+\".zoom\",(function(e){var o=e.detail.prevIndex;t.scale=1,t.positionChanged=!1,t.resetZoom(o),t.isImageSlide()&&t.setZoomEssentials()})),this.zoomDrag(),this.pinchZoom(),this.zoomSwipe(),this.zoomableTimeout=!1,this.positionChanged=!1}},h.prototype.zoomIn=function(t){this.isImageSlide()&&(t?this.scale=t:this.scale+=this.settings.scale,this.scale=this.getScale(this.scale),this.beginZoom(this.scale),this.zoomImage(this.scale))},h.prototype.resetZoom=function(t){this.core.outer.removeClass(\"lg-zoomed lg-zoom-drag-transition\");var e=this.core.getElementById(\"lg-actual-size\"),o=this.core.getSlideItem(void 0!==t?t:this.core.index);e.removeClass(this.settings.actualSizeIcons.zoomOut).addClass(this.settings.actualSizeIcons.zoomIn),o.find(\".lg-img-wrap\").first().removeAttr(\"style\"),o.find(\".lg-image\").first().removeAttr(\"style\"),this.scale=1,this.left=0,this.top=0,this.setPageCords()},h.prototype.getTouchDistance=function(t){return Math.sqrt((t.targetTouches[0].pageX-t.targetTouches[1].pageX)*(t.targetTouches[0].pageX-t.targetTouches[1].pageX)+(t.targetTouches[0].pageY-t.targetTouches[1].pageY)*(t.targetTouches[0].pageY-t.targetTouches[1].pageY))},h.prototype.pinchZoom=function(){var t=this,e=0,o=!1,i=1,s=this.core.getSlideItem(this.core.index);this.core.$inner.on(\"touchstart.lg\",(function(o){s=t.core.getSlideItem(t.core.index),t.isImageSlide()&&(2!==o.targetTouches.length||t.core.outer.hasClass(\"lg-first-slide-loading\")||!t.$LG(o.target).hasClass(\"lg-item\")&&!s.get().contains(o.target)||(i=t.scale||1,t.core.outer.removeClass(\"lg-zoom-drag-transition lg-zoom-dragging\"),t.core.touchAction=\"pinch\",e=t.getTouchDistance(o)))}
2)),this.core.$inner.on(\"touchmove.lg\",(function(a){if(2===a.targetTouches.length&&\"pinch\"===t.core.touchAction&&(t.$LG(a.target).hasClass(\"lg-item\")||s.get().contains(a.target))){a.preventDefault();var r=t.getTouchDistance(a),n=e-r;!o&&Math.abs(n)>5&&(o=!0),o&&(t.scale=Math.max(1,i+.008*-n),t.zoomImage(t.scale))}})),this.core.$inner.on(\"touchend.lg\",(function(i){\"pinch\"===t.core.touchAction&&(t.$LG(i.target).hasClass(\"lg-item\")||s.get().contains(i.target))&&(o=!1,e=0,t.scale<=1?t.resetZoom():(t.scale=t.getScale(t.scale),t.zoomImage(t.scale),t.core.outer.addClass(\"lg-zoomed\")),t.core.touchAction=void 0)}))},h.prototype.touchendZoom=function(t,e,o,i,s,a){var r=e.x-t.x,n=e.y-t.y,l=Math.abs(r)/s+1,g=Math.abs(n)/s+1;l>2&&(l+=1),g>2&&(g+=1),r*=l,n*=g;var c=this.core.getSlideItem(this.core.index).find(\".lg-img-wrap\").first(),h={};h.x=this.left+r*this.modifierX,h.y=this.top+n*this.modifierY;var m=this.getPossibleSwipeDragCords(a);(Math.abs(r)>15||Math.abs(n)>15)&&(i&&(this.isBeyondPossibleTop(h.y,m.minY)?h.y=m.minY:this.isBeyondPossibleBottom(h.y,m.maxY)&&(h.y=m.maxY)),o&&(this.isBeyondPossibleLeft(h.x,m.minX)?h.x=m.minX:this.isBeyondPossibleRight(h.x,m.maxX)&&(h.x=m.maxX)),i?this.top=h.y:h.y=this.top,o?this.left=h.x:h.x=this.left,this.setZoomSwipeStyles(c,h),this.positionChanged=!0)},h.prototype.getZoomSwipeCords=function(t,e,o,i,s){var a={};if(i){if(a.y=this.top+(e.y-t.y)*this.modifierY,this.isBeyondPossibleTop(a.y,s.minY)){var r=s.minY-a.y;a.y=s.minY-r/6}else if(this.isBeyondPossibleBottom(a.y,s.maxY)){var n=a.y-s.maxY;a.y=s.maxY+n/6}}else a.y=this.top;if(o){if(a.x=this.left+(e.x-t.x)*this.modifierX,this.isBeyondPossibleLeft(a.x,s.minX)){var l=s.minX-a.x;a.x=s.minX-l/6}else if(this.isBeyondPossibleRight(a.x,s.maxX)){var g=a.x-s.maxX;a.x=s.maxX+g/6}}else a.x=this.left;return a},h.prototype.isBeyondPossibleLeft=function(t,e){return t>=e},h.prototype.isBeyondPossibleRight=function(t,e){return t<=e},h.prototype.isBeyondPossibleTop=function(t,e){return t>=e},h.prototype.isBeyondPossibleBottom=function(t,e){return t<=e},h.prototype.isImageSlide=function(){var t=this.core.galleryItems[this.core.index];return\"image\"===this.core.getSlideType(t)},h.prototype.getPossibleSwipeDragCords=function(t,e){var o=e||this.scale||1,i=Math.abs(o),s=this.core.mediaContainerPosition,a=s.top,r=s.bottom,n=Math.abs(a-r)/2,l=(this.imageYSize-this.containerRect.height)/2+n*this.modifierX,g=this.containerRect.height-this.imageYSize*i+l,c=(this.imageXSize-this.containerRect.width)/2,h=this.containerRect.width-this.imageXSize*i+c,m={minY:l,maxY:g,minX:c,maxX:h};return 90===Math.abs(t)&&(m={minY:c,maxY:h,minX:l,maxX:g}),m},h.prototype.setZoomSwipeStyles=function(t,e){t.css(\"transform\",\"translate3d(\"+e.x+\"px, \"+e.y+\"px, 0)\")},h.prototype.zoomSwipe=function(){var t,e,o=this,i={},s={},a=!1,r=!1,n=!1,l=new Date,g=(new Date,this.core.getSlideItem(this.core.index));this.core.$inner.on(\"touchstart.lg\",(function(s){if(o.isImageSlide()&&(g=o.core.getSlideItem(o.core.index),(o.$LG(s.target).hasClass(\"lg-item\")||g.get().contains(s.target))&&1===s.targetTouches.length&&o.core.outer.hasClass(\"lg-zoomed\"))){s.preventDefault(),l=new Date,o.core.touchAction=\"zoomSwipe\",e=o.core.getSlideItem(o.core.index).find(\".lg-img-wrap\").first();var a=o.getDragAllowedAxises(Math.abs(o.rotateValue));n=a.allowY,((r=a.allowX)||n)&&(i=o.getSwipeCords(s,Math.abs(o.rotateValue))),t=o.getPossibleSwipeDragCords(o.rotateValue),o.core.outer.addClass(\"lg-zoom-dragging lg-zoom-drag-transition\")}})),this.core.$inner.on(\"touchmove.lg\",(function(l){if(1===l.targetTouches.length&&\"zoomSwipe\"===o.core.touchAction&&(o.$LG(l.target).hasClass(\"lg-item\")||g.get().contains(l.target))){l.preventDefault(),o.core.touchAction=\"zoomSwipe\",s=o.getSwipeCords(l,Math.abs(o.rotateValue));var c=o.getZoomSwipeCords(i,s,r,n,t);(Math.abs(s.x-i.x)>15||Math.abs(s.y-i.y)>15)&&(a=!0,o.setZoomSwipeStyles(e,c))}})),this.core.$inner.on(\"touchend.lg\",(function(t){if(\"zoomSwipe\"===o.core.touchAction&&(o.$LG(t.target).hasClass(\"lg-item\")||g.get().contains(t.target))){if(o.core.touchAction=void 0,o.core.outer.removeClass(\"lg-zoom-dragging\"),!a)return;a=!1;var e=(new Date).valueOf()-l.valueOf();o.touchendZoom(i,s,r,n,e,o.rotateValue)}}))},h.prototype.zoomDrag=function(){var t,e,o,i,s=this,a={},r={},n=!1,l=!1,g=!1,c=!1;this.core.outer.on(\"mousedown.lg.zoom\",(function(e){if(s.isImageSlide()){var r=s.core.getSlideItem(s.core.index);if(s.$LG(e.target).hasClass(\"lg-item\")||r.get().contains(e.target)){t=new Date,i=s.core.getSlideItem(s.core.index).find(\".lg-img-wrap\").first();var l=s.getDragAllowedAxises(Math.abs(s.rotateValue));
2c=l.allowY,g=l.allowX,s.core.outer.hasClass(\"lg-zoomed\")&&s.$LG(e.target).hasClass(\"lg-object\")&&(g||c)&&(e.preventDefault(),a=s.getDragCords(e,Math.abs(s.rotateValue)),o=s.getPossibleSwipeDragCords(s.rotateValue),n=!0,s.core.outer.get().scrollLeft+=1,s.core.outer.get().scrollLeft-=1,s.core.outer.removeClass(\"lg-grab\").addClass(\"lg-grabbing lg-zoom-drag-transition lg-zoom-dragging\"))}}})),this.$LG(window).on(\"mousemove.lg.zoom.global\"+this.core.lgId,(function(t){if(n){l=!0,r=s.getDragCords(t,Math.abs(s.rotateValue));var e=s.getZoomSwipeCords(a,r,g,c,o);s.setZoomSwipeStyles(i,e)}})),this.$LG(window).on(\"mouseup.lg.zoom.global\"+this.core.lgId,(function(o){if(n){if(e=new Date,n=!1,s.core.outer.removeClass(\"lg-zoom-dragging\"),l&&(a.x!==r.x||a.y!==r.y)){r=s.getDragCords(o,Math.abs(s.rotateValue));var i=e.valueOf()-t.valueOf();s.touchendZoom(a,r,g,c,i,s.rotateValue)}l=!1}s.core.outer.removeClass(\"lg-grabbing\").addClass(\"lg-grab\")}))},h.prototype.closeGallery=function(){this.resetZoom()},h.prototype.destroy=function(){this.$LG(window).off(\".lg.zoom.global\"+this.core.lgId),this.core.LGel.off(\".lg.zoom\"),this.core.LGel.off(\".zoom\"),clearTimeout(this.zoomableTimeout),this.zoomableTimeout=!1},h}()}));\n","Nw_Additions/lib/lightgallery/plugins/thumbnail/lg-thumbnail.umd.min.js":"/*!\n * lightgallery | 2.2.1 | September 4th 2021\n * http://www.lightgalleryjs.com/\n * Copyright (c) 2020 Sachin Neravath;\n * @license GPLv3\n */\n(function(global,factory){typeof exports==='object'&&typeof module!=='undefined'?module.exports=factory():typeof define==='function'&&define.amd?define(factory):(global=typeof globalThis!=='undefined'?globalThis:global||self,global.lgThumbnail=factory());}(this,(function(){'use strict';/*! *****************************************************************************\n    Copyright (c) Microsoft Corporation.\n\n    Permission to use, copy, modify, and/or distribute this software for any\n    purpose with or without fee is hereby granted.\n\n    THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\n    REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\n    AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\n    INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\n    LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\n    OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\n    PERFORMANCE OF THIS SOFTWARE.\n    ***************************************************************************** */\nvar __assign=function(){__assign=Object.assign||function __assign(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p];}\nreturn t;};return __assign.apply(this,arguments);};var thumbnailsSettings={thumbnail:true,animateThumb:true,currentPagerPosition:'middle',alignThumbnails:'middle',thumbWidth:100,thumbHe
2ight:'80px',thumbMargin:5,appendThumbnailsTo:'.lg-components',toggleThumb:false,enableThumbDrag:true,enableThumbSwipe:true,thumbnailSwipeThreshold:10,loadYouTubeThumbnail:true,youTubeThumbSize:1,};var lGEvents={afterAppendSlide:'lgAfterAppendSlide',init:'lgInit',hasVideo:'lgHasVideo',containerResize:'lgContainerResize',updateSlides:'lgUpdateSlides',afterAppendSubHtml:'lgAfterAppendSubHtml',beforeOpen:'lgBeforeOpen',afterOpen:'lgAfterOpen',slideItemLoad:'lgSlideItemLoad',beforeSlide:'lgBeforeSlide',afterSlide:'lgAfterSlide',posterClick:'lgPosterClick',dragStart:'lgDragStart',dragMove:'lgDragMove',dragEnd:'lgDragEnd',beforeNextSlide:'lgBeforeNextSlide',beforePrevSlide:'lgBeforePrevSlide',beforeClose:'lgBeforeClose',afterClose:'lgAfterClose',rotateLeft:'lgRotateLeft',rotateRight:'lgRotateRight',flipHorizontal:'lgFlipHorizontal',flipVertical:'lgFlipVertical',};var Thumbnail=(function(){function Thumbnail(instance,$LG){this.thumbOuterWidth=0;this.thumbTotalWidth=0;this.translateX=0;this.thumbClickable=false;this.core=instance;this.$LG=$LG;return this;}\nThumbnail.prototype.init=function(){this.settings=__assign(__assign({},thumbnailsSettings),this.core.settings);this.thumbOuterWidth=0;this.thumbTotalWidth=this.core.galleryItems.length*(this.settings.thumbWidth+this.settings.thumbMargin);this.translateX=0;this.setAnimateThumbStyles();if(!this.core.settings.allowMediaOverlap){this.settings.toggleThumb=false;}\nif(this.settings.thumbnail){this.build();if(this.settings.animateThumb){if(this.settings.enableThumbDrag){this.enableThumbDrag();}\nif(this.settings.enableThumbSwipe){this.enableThumbSwipe();}\nthis.thumbClickable=false;}\nelse{this.thumbClickable=true;}\nthis.toggleThumbBar();this.thumbKeyPress();}};Thumbnail.prototype.build=function(){var _this=this;this.setThumbMarkup();this.manageActiveClassOnSlideChange();this.$lgThumb.first().on('click.lg touchend.lg',function(e){var $target=_this.$LG(e.target);if(!$target.hasAttribute('data-lg-item-id')){return;}\nsetTimeout(function(){if(_this.thumbClickable&&!_this.core.lgBusy){var index=parseInt($target.attr('data-lg-item-id'));_this.core.slide(index,false,true,false);}},50);});this.core.LGel.on(lGEvents.beforeSlide+\".thumb\",function(event){var index=event.detail.index;_this.animateThumb(index);});this.core.LGel.on(lGEvents.beforeOpen+\".thumb\",function(){_this.thumbOuterWidth=_this.core.outer.get().offsetWidth;});this.core.LGel.on(lGEvents.updateSlides+\".thumb\",function(){_this.rebuildThumbnails();});this.core.LGel.on(lGEvents.containerResize+\".thumb\",function(){if(!_this.core.lgOpened)\nreturn;setTimeout(function(){_this.thumbOuterWidth=_this.core.outer.get().offsetWidth;_this.animateThumb(_this.core.index);_this.thumbOuterWidth=_this.core.outer.get().offsetWidth;},50);});};Thumbnail.prototype.setThumbMarkup=function(){var thumbOuterClassNames='lg-thumb-outer ';if(this.settings.alignThumbnails){thumbOuterClassNames+=\"lg-thumb-align-\"+this.settings.alignThumbnails;}\nvar html=\"<div class=\\\"\"+thumbOuterClassNames+\"\\\">\\n        <div class=\\\"lg-thumb lg-group\\\">\\n        </div>\\n        </div>\";this.core.outer.addClass('lg-has-thumb');if(this.settings.appendThumbnailsTo==='.lg-components'){this.core.$lgComponents.append(html);}\nelse{this.core.outer.append(html);}\nthis.$thumbOuter=this.core.outer.find('.lg-thumb-outer').first();this.$lgThumb=this.core.outer.find('.lg-thumb').first();if(this.settings.animateThumb){this.core.outer.find('.lg-thumb').css('transition-duration',this.core.settings.speed+'ms').css('width',this.thumbTotalWidth+'px').css('position','relative');}\nthis.setThumbItemHtml(this.core.galleryItems);};Thumbnail.prototype.enableThumbDrag=function(){var _this=this;var thumbDragUtils={cords:{startX:0,endX:0,},isMoved:false,newTranslateX:0,startTime:new Date(),endTime:new Date(),touchMoveTime:0,};var isDragging=false;this.$thumbOuter.addClass('lg-grab');this.core.outer.find('.lg-thumb').first().on('mousedown.lg.thumb',function(e){if(_this.thumbTotalWidth>_this.thumbOuterWidth){e.preventDefault();thumbDragUtils.cords.startX=e.pageX;thumbDragUtils.startTime=new Date();_this.thumbClickable=false;isDragging=true;_this.core.outer.get().scrollLeft+=1;_this.core.outer.get().scrollLeft-=1;_this.$thumbOuter.removeClass('lg-grab').addClass('lg-grabbing');}});this.$LG(window).on(\"mousemove.lg.thumb.global\"+this.core.lgId,function(e){if(!_this.core.lgOpened)\nreturn;if(isDragging){thumbDragUtils.cords.endX=e.pageX;thumbDragUtils=_this.onThumbTouchMove(thumbDragUtils);}});this.$LG(window).on(\"mouseup.lg.thumb.global\"+this.core.lgId,function(){if(!_this.core.lgOpened)\nreturn;if(thumbDragUtils.isMoved){thumbDragUtils=_this.onThumbTouchEnd(thumbDragUtils);}\nelse{_this.thumbClickable=true;}\nif(isDragging){isDragging=false;_this.$thumbOuter.removeClass('lg-grabbing').addClass('lg-grab');}});};Thumbnail.prototype.enableThumbSwipe=function(){var _this=this;var thumbDragUtils={cords:{startX:0,endX:0,},isMoved:false,newTranslateX:0,startTime:new Date(),endTime:new Date(),touchMoveTime:0,};this.$lgThumb.on('touchstart.lg',function(e){if(_this.thumbTotalWidth>_this.thumbOuterWidth){e.preventDefault();thumbDragUtils.cords.startX=e.targetTouches[0].pageX;_this.thumbClickable=false;thumbDragUtils.startTime=new Date();}});this.$lgThumb.on('touchmove.lg',function(e){if(_this.thumbTotalWidth>_this.thumbOuterWidth){e.preventDefault();thumbDragUtils.cords.endX=e.targetTouches[0].pageX;thumbDragUtils=_this.onThumbTouchMove(thumbDragUtils);}});this.$lgThumb.on('touchend.lg',function(){if(thumbDragUtils.isMoved){thumbDragUtils=_this.onThumbTouchEnd(thumbDragUtils);}\nelse{_this.thumbClickable=true;}});};Thumbnail.prototype.rebuildThumbnails=function(){var _this=this;this.$thumbOuter.addClass('lg-rebuilding-thumbnails');setTimeout(function(){_this.thumbTotalWidth=_this.core.galleryItems.length*(_this.settings.thumbWidth+_this.settings.thumbMargin);_this.$lgThumb.css('width',_this.thumbTotalWidth+'px');_this.$lgThumb.empty();_this.setThumbItemHtml(_this.core.galleryItems);_this.animateThumb(_this.core.index);},50);setTimeout(function(){_this.$thumbOuter.removeClass('lg-rebuilding-thumbnails');},200);};Thumbnail.prototype.setTranslate=function(value){this.$lgThumb.css('transform','translate3d(-'+value+'px, 0px, 0px)');};Thumbnail.prototype.getPossibleTransformX=function(left){if(left>this.thumbTotalWidth-this.thumbOuterWidth){left=this.thumbTotalWidth-this.thumbOuterWidth;}\nif(left<0){left=0;}\nreturn left;};Thumbnail.prototype.animateThumb=function(index){this.$lgThumb.css('transition-duration',this.core.settings.speed+'ms');if(this.settings.animateThumb){var position=0;switch(this.settings.currentPagerPosition){case'left':position=0;break;case'middle':position=this.thumbOuterWidth / 2-this.settings.thumbWidth / 2;break;case'right':position=this.thumbOuterWidth-this.settings.thumbWidth;}\nthis.translateX=(this.settings.thumbWidth+this.settings.thumbMargin)*index-\n1-\nposition;if(this.translateX>this.thumbTotalWidth-this.thumbOuterWidth){this.translateX=this.thumbTotalWidth-this.thumbOuterWidth;}\nif(this.translateX<0){this.translateX=0;}\nthis.setTranslate(this.translateX);}};Thumbnail.prototype.onThumbTouchMove=function(thumbDragUtils){thumbDragUtils.newTranslateX=this.translateX;thumbDragUtils.isMoved=true;thumbDragUtils.touchMoveTime=new Date().valueOf();thumbDragUtils.newTranslateX-=thumbDragUtils.cords.endX-thumbDragUtils.cords.startX;thumbDragUtils.newTranslateX=this.getPossibleTransformX(thumbDragUtils.newTranslateX);this.setTranslate(thumbDragUtils.newTranslateX);this.$thumbOuter.addClass('lg-dragging');return thumbDragUtils;};Thumbnail.prototype.onThumbTouchEnd=function(thumbDragUtils){thumbDragUtils.isMoved=false;thumbDragUtils.endTime=new Date();this.$thumbOuter.removeClass('lg-dragging');var touchDuration=thumbDragUtils.endTime.valueOf()-\nthumbDragUtils.startTime.valueOf();var distanceXnew=thumbDragUtils.cords.endX-thumbDragUtils.cords.startX;var speedX=Math.abs(distanceXnew)/ touchDuration;if(speedX>0.15&&thumbDragUtils.endTime.valueOf()-thumbDragUtils.touchMoveTime<30){speedX+=1;if(speedX>2){speedX+=1;}\nspeedX=speedX+\nspeedX*(Math.abs(distanceXnew)/ this.thumbOuterWidth);this.$lgThumb.css('transition-duration',Math.min(speedX-1,2)+'settings');distanceXnew=distanceXnew*speedX;this.translateX=this.getPossibleTransformX(this.translateX-distanceXnew);this.setTranslate(this.translateX);}\nelse{this.translateX=thumbDragUtils.newTranslateX;}\nif(Math.abs(thumbDragUtils.cords.endX-thumbDragUtils.cords.startX)<this.settings.thumbnailSwipeThreshold){this.thumbClickable=true;}\nreturn thumbDragUtils;};Thumbnail.prototype.getThumbHtml=function(thumb,index){var slideVideoInfo=this.core.galleryItems[index].__slideVideoInfo||{};var thumbImg;
2if(slideVideoInfo.youtube){if(this.settings.loadYouTubeThumbnail){thumbImg='//img.youtube.com/vi/'+\nslideVideoInfo.youtube[1]+'/'+\nthis.settings.youTubeThumbSize+'.jpg';}\nelse{thumbImg=thumb;}}\nelse{thumbImg=thumb;}\nreturn\"<div data-lg-item-id=\\\"\"+index+\"\\\" class=\\\"lg-thumb-item \"+(index===this.core.index?' active':'')+\"\\\" \\n        style=\\\"width:\"+this.settings.thumbWidth+\"px; height: \"+this.settings.thumbHeight+\";\\n            margin-right: \"+this.settings.thumbMargin+\"px;\\\">\\n            <img data-lg-item-id=\\\"\"+index+\"\\\" src=\\\"\"+thumbImg+\"\\\" />\\n        </div>\";};Thumbnail.prototype.getThumbItemHtml=function(items){var thumbList='';for(var i=0;i<items.length;i++){thumbList+=this.getThumbHtml(items[i].thumb,i);}\nreturn thumbList;};Thumbnail.prototype.setThumbItemHtml=function(items){var thumbList=this.getThumbItemHtml(items);this.$lgThumb.html(thumbList);};Thumbnail.prototype.setAnimateThumbStyles=function(){if(this.settings.animateThumb){this.core.outer.addClass('lg-animate-thumb');}};Thumbnail.prototype.manageActiveClassOnSlideChange=function(){var _this=this;this.core.LGel.on(lGEvents.beforeSlide+\".thumb\",function(event){var $thumb=_this.core.outer.find('.lg-thumb-item');var index=event.detail.index;$thumb.removeClass('active');$thumb.eq(index).addClass('active');});};Thumbnail.prototype.toggleThumbBar=function(){var _this=this;if(this.settings.toggleThumb){this.core.outer.addClass('lg-can-toggle');this.core.$toolbar.append('<button type=\"button\" aria-label=\"Toggle thumbnails\" class=\"lg-toggle-thumb lg-icon\"></button>');this.core.outer.find('.lg-toggle-thumb').first().on('click.lg',function(){_this.core.outer.toggleClass('lg-components-open');});}};Thumbnail.prototype.thumbKeyPress=function(){var _this=this;this.$LG(window).on(\"keydown.lg.thumb.global\"+this.core.lgId,function(e){if(!_this.core.lgOpened||!_this.settings.toggleThumb)\nreturn;if(e.keyCode===38){e.preventDefault();_this.core.outer.addClass('lg-components-open');}\nelse if(e.keyCode===40){e.preventDefault();_this.core.outer.removeClass('lg-components-open');}});};Thumbnail.prototype.destroy=function(){if(this.settings.thumbnail){this.$LG(window).off(\".lg.thumb.global\"+this.core.lgId);this.core.LGel.off('.lg.thumb');this.core.LGel.off('.thumb');this.$thumbOuter.remove();this.core.outer.removeClass('lg-has-thumb');}};return Thumbnail;}());return Thumbnail;})));","Nw_Additions/lib/lightgallery/plugins/thumbnail/lg-thumbnail.min.js":"/**\n * lightgallery | 2.2.1 | September 4th 2021\n * http://www.lightgalleryjs.com/\n * Copyright (c) 2020 Sachin Neravath;\n * @license GPLv3\n */\n\n!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(e):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).lgThumbnail=e()}(this,(function(){\"use strict\";var t=function(){return(t=Object.assign||function(t){for(var e,i=1,s=arguments.length;i<s;i++)for(var h in e=arguments[i])Object.prototype.hasOwnProperty.call(e,h)&&(t[h]=e[h]);return t}).apply(this,arguments)},e={thumbnail:!0,animateThumb:!0,currentPagerPosition:\"middle\",alignThumbnails:\"middle\",thumbWidth:100,thumbHe
2ight:\"80px\",thumbMargin:5,appendThumbnailsTo:\".lg-components\",toggleThumb:!1,enableThumbDrag:!0,enableThumbSwipe:!0,thumbnailSwipeThreshold:10,loadYouTubeThumbnail:!0,youTubeThumbSize:1},i=\"lgContainerResize\",s=\"lgUpdateSlides\",h=\"lgBeforeOpen\",n=\"lgBeforeSlide\";return function(){function o(t,e){return this.thumbOuterWidth=0,this.thumbTotalWidth=0,this.translateX=0,this.thumbClickable=!1,this.core=t,this.$LG=e,this}return o.prototype.init=function(){this.settings=t(t({},e),this.core.settings),this.thumbOuterWidth=0,this.thumbTotalWidth=this.core.galleryItems.length*(this.settings.thumbWidth+this.settings.thumbMargin),this.translateX=0,this.setAnimateThumbStyles(),this.core.settings.allowMediaOverlap||(this.settings.toggleThumb=!1),this.settings.thumbnail&&(this.build(),this.settings.animateThumb?(this.settings.enableThumbDrag&&this.enableThumbDrag(),this.settings.enableThumbSwipe&&this.enableThumbSwipe(),this.thumbClickable=!1):this.thumbClickable=!0,this.toggleThumbBar(),this.thumbKeyPress())},o.prototype.build=function(){var t=this;this.setThumbMarkup(),this.manageActiveClassOnSlideChange(),this.$lgThumb.first().on(\"click.lg touchend.lg\",(function(e){var i=t.$LG(e.target);i.hasAttribute(\"data-lg-item-id\")&&setTimeout((function(){if(t.thumbClickable&&!t.core.lgBusy){var e=parseInt(i.attr(\"data-lg-item-id\"));t.core.slide(e,!1,!0,!1)}}),50)})),this.core.LGel.on(n+\".thumb\",(function(e){var i=e.detail.index;t.animateThumb(i)})),this.core.LGel.on(h+\".thumb\",(function(){t.thumbOuterWidth=t.core.outer.get().offsetWidth})),this.core.LGel.on(s+\".thumb\",(function(){t.rebuildThumbnails()})),this.core.LGel.on(i+\".thumb\",(function(){t.core.lgOpened&&setTimeout((function(){t.thumbOuterWidth=t.core.outer.get().offsetWidth,t.animateThumb(t.core.index),t.thumbOuterWidth=t.core.outer.get().offsetWidth}),50)}))},o.prototype.setThumbMarkup=function(){var t=\"lg-thumb-outer \";this.settings.alignThumbnails&&(t+=\"lg-thumb-align-\"+this.settings.alignThumbnails);var e='<div class=\"'+t+'\">\\n        <div class=\"lg-thumb lg-group\">\\n        </div>\\n        </div>';this.core.outer.addClass(\"lg-has-thumb\"),\".lg-components\"===this.settings.appendThumbnailsTo?this.core.$lgComponents.append(e):this.core.outer.append(e),this.$thumbOuter=this.core.outer.find(\".lg-thumb-outer\").first(),this.$lgThumb=this.core.outer.find(\".lg-thumb\").first(),this.settings.animateThumb&&this.core.outer.find(\".lg-thumb\").css(\"transition-duration\",this.core.settings.speed+\"ms\").css(\"width\",this.thumbTotalWidth+\"px\").css(\"position\",\"relative\"),this.setThumbItemHtml(this.core.galleryItems)},o.prototype.enableThumbDrag=function(){var t=this,e={cords:{startX:0,endX:0},isMoved:!1,newTranslateX:0,startTime:new Date,endTime:new Date,touchMoveTime:0},i=!1;this.$thumbOuter.addClass(\"lg-grab\"),this.core.outer.find(\".lg-thumb\").first().on(\"mousedown.lg.thumb\",(function(s){t.thumbTotalWidth>t.thumbOuterWidth&&(s.preventDefault(),e.cords.startX=s.pageX,e.startTime=new Date,t.thumbClickable=!1,i=!0,t.core.outer.get().scrollLeft+=1,t.core.outer.get().scrollLeft-=1,t.$thumbOuter.removeClass(\"lg-grab\").addClass(\"lg-grabbing\"))})),this.$LG(window).on(\"mousemove.lg.thumb.global\"+this.core.lgId,(function(s){t.core.lgOpened&&i&&(e.cords.endX=s.pageX,e=t.onThumbTouchMove(e))})),this.$LG(window).on(\"mouseup.lg.thumb.global\"+this.core.lgId,(function(){t.core.lgOpened&&(e.isMoved?e=t.onThumbTouchEnd(e):t.thumbClickable=!0,i&&(i=!1,t.$thumbOuter.removeClass(\"lg-grabbing\").addClass(\"lg-grab\")))}))},o.prototype.enableThumbSwipe=function(){var t=this,e={cords:{startX:0,endX:0},isMoved:!1,newTranslateX:0,startTime:new Date,endTime:new Date,touchMoveTime:0};this.$lgThumb.on(\"touchstart.lg\",(function(i){t.thumbTotalWidth>t.thumbOuterWidth&&(i.preventDefault(),e.cords.startX=i.targetTouches[0].pageX,t.thumbClickable=!1,e.startTime=new Date)})),this.$lgThumb.on(\"touchmove.lg\",(function(i){t.thumbTotalWidth>t.thumbOuterWidth&&(i.preventDefault(),e.cords.endX=i.targetTouches[0].pageX,e=t.onThumbTouchMove(e))})),this.$lgThumb.on(\"touchend.lg\",(function(){e.isMoved?e=t.onThumbTouchEnd(e):t.thumbClickable=!0}))},o.prototype.rebuildThumbnails=function(){var t=this;this.$thumbOuter.addClass(\"lg-rebuilding-thumbnails\"),setTimeout((function(){t.thumbTotalWidth=t.core.galleryItems.length*(t.settings.thumbWidth+t.settings.thumbMargin),t.$lgThumb.css(\"width\",t.thumbTotalWidth+\"px\"),t.$lgThumb.empty(),t.setThumbItemHtml(t.core.galleryItems),t.animateThumb(t.core.index)}),50),setTimeout((function(){t.$thumbOuter.removeClass(\"lg-rebuilding-thumbnails\")}),200)},o.prototype.setTranslate=function(t){this.$lgThumb.css(\"transform\",\"translate3d(-\"+t+\"px, 0px, 0px)\")},o.prototype.getPossibleTransformX=function(t){return t>this.thumbTotalWidth-this.thumbOuterWidth&&(t=this.thumbTotalWidth-this.thumbOuterWidth),t<0&&(t=0),t},o.prototype.animateThumb=function(t){if(this.$lgThumb.css(\"transition-duration\",this.core.settings.speed+\"ms\"),this.settings.animateThumb){var e=0;switch(this.settings.currentPagerPosition){case\"left\":e=0;break;case\"middle\":e=this.thumbOuterWidth/2-this.settings.thumbWidth/2;break;case\"right\":e=this.thumbOuterWidth-this.settings.thumbWidth}this.translateX=(this.settings.thumbWidth+this.settings.thumbMargin)*t-1-e,this.translateX>this.thumbTotalWidth-this.thumbOuterWidth&&(this.translateX=this.thumbTotalWidth-this.thumbOuterWidth),this.translateX<0&&(this.translateX=0),this.setTranslate(this.translateX)}},o.prototype.onThumbTouchMove=function(t){return t.newTranslateX=this.translateX,t.isMoved=!0,t.touchMoveTime=(new Date).valueOf(),t.newTranslateX-=t.cords.endX-t.cords.startX,t.newTranslateX=this.getPossibleTransformX(t.newTranslateX),this.setTranslate(t.newTranslateX),this.$thumbOuter.addClass(\"lg-dragging\"),t},o.prototype.onThumbTouchEnd=function(t){t.isMoved=!1,t.endTime=new Date,this.$thumbOuter.removeClass(\"lg-dragging\");var e=t.endTime.valueOf()-t.startTime.valueOf(),i=t.cords.endX-t.cords.startX,s=Math.abs(i)/e;return s>.15&&t.endTime.valueOf()-t.touchMoveTime<30?((s+=1)>2&&(s+=1),s+=s*(Math.abs(i)/this.thumbOuterWidth),this.$lgThumb.css(\"transition-duration\",Math.min(s-1,2)+\"settings\"),i*=s,this.translateX=this.getPossibleTransformX(this.translateX-i),this.setTranslate(this.translateX)):this.translateX=t.newTranslateX,Math.abs(t.cords.endX-t.cords.startX)<this.settings.thumbnailSwipeThreshold&&(this.thumbClickable=!0),t},o.prototype.getThumbHtml=function(t,e){var i,s=this.core.galleryItems[e].__slideVideoInfo||{};
2return i=s.youtube&&this.settings.loadYouTubeThumbnail?\"//img.youtube.com/vi/\"+s.youtube[1]+\"/\"+this.settings.youTubeThumbSize+\".jpg\":t,'<div data-lg-item-id=\"'+e+'\" class=\"lg-thumb-item '+(e===this.core.index?\" active\":\"\")+'\" \\n        style=\"width:'+this.settings.thumbWidth+\"px; height: \"+this.settings.thumbHeight+\";\\n            margin-right: \"+this.settings.thumbMargin+'px;\">\\n            <img data-lg-item-id=\"'+e+'\" src=\"'+i+'\" />\\n        </div>'},o.prototype.getThumbItemHtml=function(t){for(var e=\"\",i=0;i<t.length;i++)e+=this.getThumbHtml(t[i].thumb,i);return e},o.prototype.setThumbItemHtml=function(t){var e=this.getThumbItemHtml(t);this.$lgThumb.html(e)},o.prototype.setAnimateThumbStyles=function(){this.settings.animateThumb&&this.core.outer.addClass(\"lg-animate-thumb\")},o.prototype.manageActiveClassOnSlideChange=function(){var t=this;this.core.LGel.on(n+\".thumb\",(function(e){var i=t.core.outer.find(\".lg-thumb-item\"),s=e.detail.index;i.removeClass(\"active\"),i.eq(s).addClass(\"active\")}))},o.prototype.toggleThumbBar=function(){var t=this;this.settings.toggleThumb&&(this.core.outer.addClass(\"lg-can-toggle\"),this.core.$toolbar.append('<button type=\"button\" aria-label=\"Toggle thumbnails\" class=\"lg-toggle-thumb lg-icon\"></button>'),this.core.outer.find(\".lg-toggle-thumb\").first().on(\"click.lg\",(function(){t.core.outer.toggleClass(\"lg-components-open\")})))},o.prototype.thumbKeyPress=function(){var t=this;this.$LG(window).on(\"keydown.lg.thumb.global\"+this.core.lgId,(function(e){t.core.lgOpened&&t.settings.toggleThumb&&(38===e.keyCode?(e.preventDefault(),t.core.outer.addClass(\"lg-components-open\")):40===e.keyCode&&(e.preventDefault(),t.core.outer.removeClass(\"lg-components-open\")))}))},o.prototype.destroy=function(){this.settings.thumbnail&&(this.$LG(window).off(\".lg.thumb.global\"+this.core.lgId),this.core.LGel.off(\".lg.thumb\"),this.core.LGel.off(\".thumb\"),this.$thumbOuter.remove(),this.core.outer.removeClass(\"lg-has-thumb\"))},o}()}));\n","Nw_Additions/lib/lightgallery/plugins/thumbnail/lg-thumbnail.es5.min.js":"/*!\n * lightgallery | 2.2.1 | September 4th 2021\n * http://www.lightgalleryjs.com/\n * Copyright (c) 2020 Sachin Neravath;\n * @license GPLv3\n */\n\n/*! *****************************************************************************\nCopyright (c) Microsoft Corporation.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n***************************************************************************** */\nvar __assign=function(){__assign=Object.assign||function __assign(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p];}\nreturn t;};return __assign.apply(this,arguments);};var thumbnailsSettings={thumbnail:true,animateThumb:true,currentPagerPosition:'middle',alignThumbnails:'middle',thumbWidth:100,thumbHe
2ight:'80px',thumbMargin:5,appendThumbnailsTo:'.lg-components',toggleThumb:false,enableThumbDrag:true,enableThumbSwipe:true,thumbnailSwipeThreshold:10,loadYouTubeThumbnail:true,youTubeThumbSize:1,};var lGEvents={afterAppendSlide:'lgAfterAppendSlide',init:'lgInit',hasVideo:'lgHasVideo',containerResize:'lgContainerResize',updateSlides:'lgUpdateSlides',afterAppendSubHtml:'lgAfterAppendSubHtml',beforeOpen:'lgBeforeOpen',afterOpen:'lgAfterOpen',slideItemLoad:'lgSlideItemLoad',beforeSlide:'lgBeforeSlide',afterSlide:'lgAfterSlide',posterClick:'lgPosterClick',dragStart:'lgDragStart',dragMove:'lgDragMove',dragEnd:'lgDragEnd',beforeNextSlide:'lgBeforeNextSlide',beforePrevSlide:'lgBeforePrevSlide',beforeClose:'lgBeforeClose',afterClose:'lgAfterClose',rotateLeft:'lgRotateLeft',rotateRight:'lgRotateRight',flipHorizontal:'lgFlipHorizontal',flipVertical:'lgFlipVertical',};var Thumbnail=(function(){function Thumbnail(instance,$LG){this.thumbOuterWidth=0;this.thumbTotalWidth=0;this.translateX=0;this.thumbClickable=false;this.core=instance;this.$LG=$LG;return this;}\nThumbnail.prototype.init=function(){this.settings=__assign(__assign({},thumbnailsSettings),this.core.settings);this.thumbOuterWidth=0;this.thumbTotalWidth=this.core.galleryItems.length*(this.settings.thumbWidth+this.settings.thumbMargin);this.translateX=0;this.setAnimateThumbStyles();if(!this.core.settings.allowMediaOverlap){this.settings.toggleThumb=false;}\nif(this.settings.thumbnail){this.build();if(this.settings.animateThumb){if(this.settings.enableThumbDrag){this.enableThumbDrag();}\nif(this.settings.enableThumbSwipe){this.enableThumbSwipe();}\nthis.thumbClickable=false;}\nelse{this.thumbClickable=true;}\nthis.toggleThumbBar();this.thumbKeyPress();}};Thumbnail.prototype.build=function(){var _this=this;this.setThumbMarkup();this.manageActiveClassOnSlideChange();this.$lgThumb.first().on('click.lg touchend.lg',function(e){var $target=_this.$LG(e.target);if(!$target.hasAttribute('data-lg-item-id')){return;}\nsetTimeout(function(){if(_this.thumbClickable&&!_this.core.lgBusy){var index=parseInt($target.attr('data-lg-item-id'));_this.core.slide(index,false,true,false);}},50);});this.core.LGel.on(lGEvents.beforeSlide+\".thumb\",function(event){var index=event.detail.index;_this.animateThumb(index);});this.core.LGel.on(lGEvents.beforeOpen+\".thumb\",function(){_this.thumbOuterWidth=_this.core.outer.get().offsetWidth;});this.core.LGel.on(lGEvents.updateSlides+\".thumb\",function(){_this.rebuildThumbnails();});this.core.LGel.on(lGEvents.containerResize+\".thumb\",function(){if(!_this.core.lgOpened)\nreturn;setTimeout(function(){_this.thumbOuterWidth=_this.core.outer.get().offsetWidth;_this.animateThumb(_this.core.index);_this.thumbOuterWidth=_this.core.outer.get().offsetWidth;},50);});};Thumbnail.prototype.setThumbMarkup=function(){var thumbOuterClassNames='lg-thumb-outer ';if(this.settings.alignThumbnails){thumbOuterClassNames+=\"lg-thumb-align-\"+this.settings.alignThumbnails;}\nvar html=\"<div class=\\\"\"+thumbOuterClassNames+\"\\\">\\n        <div class=\\\"lg-thumb lg-group\\\">\\n        </div>\\n        </div>\";this.core.outer.addClass('lg-has-thumb');if(this.settings.appendThumbnailsTo==='.lg-components'){this.core.$lgComponents.append(html);}\nelse{this.core.outer.append(html);}\nthis.$thumbOuter=this.core.outer.find('.lg-thumb-outer').first();this.$lgThumb=this.core.outer.find('.lg-thumb').first();if(this.settings.animateThumb){this.core.outer.find('.lg-thumb').css('transition-duration',this.core.settings.speed+'ms').css('width',this.thumbTotalWidth+'px').css('position','relative');}\nthis.setThumbItemHtml(this.core.galleryItems);};Thumbnail.prototype.enableThumbDrag=function(){var _this=this;var thumbDragUtils={cords:{startX:0,endX:0,},isMoved:false,newTranslateX:0,startTime:new Date(),endTime:new Date(),touchMoveTime:0,};var isDragging=false;this.$thumbOuter.addClass('lg-grab');this.core.outer.find('.lg-thumb').first().on('mousedown.lg.thumb',function(e){if(_this.thumbTotalWidth>_this.thumbOuterWidth){e.preventDefault();thumbDragUtils.cords.startX=e.pageX;thumbDragUtils.startTime=new Date();_this.thumbClickable=false;isDragging=true;_this.core.outer.get().scrollLeft+=1;_this.core.outer.get().scrollLeft-=1;_this.$thumbOuter.removeClass('lg-grab').addClass('lg-grabbing');}});this.$LG(window).on(\"mousemove.lg.thumb.global\"+this.core.lgId,function(e){if(!_this.core.lgOpened)\nreturn;if(isDragging){thumbDragUtils.cords.endX=e.pageX;thumbDragUtils=_this.onThumbTouchMove(thumbDragUtils);}});this.$LG(window).on(\"mouseup.lg.thumb.global\"+this.core.lgId,function(){if(!_this.core.lgOpened)\nreturn;if(thumbDragUtils.isMoved){thumbDragUtils=_this.onThumbTouchEnd(thumbDragUtils);}\nelse{_this.thumbClickable=true;}\nif(isDragging){isDragging=false;_this.$thumbOuter.removeClass('lg-grabbing').addClass('lg-grab');}});};Thumbnail.prototype.enableThumbSwipe=function(){var _this=this;var thumbDragUtils={cords:{startX:0,endX:0,},isMoved:false,newTranslateX:0,startTime:new Date(),endTime:new Date(),touchMoveTime:0,};this.$lgThumb.on('touchstart.lg',function(e){if(_this.thumbTotalWidth>_this.thumbOuterWidth){e.preventDefault();thumbDragUtils.cords.startX=e.targetTouches[0].pageX;_this.thumbClickable=false;thumbDragUtils.startTime=new Date();}});this.$lgThumb.on('touchmove.lg',function(e){if(_this.thumbTotalWidth>_this.thumbOuterWidth){e.preventDefault();thumbDragUtils.cords.endX=e.targetTouches[0].pageX;thumbDragUtils=_this.onThumbTouchMove(thumbDragUtils);}});this.$lgThumb.on('touchend.lg',function(){if(thumbDragUtils.isMoved){thumbDragUtils=_this.onThumbTouchEnd(thumbDragUtils);}\nelse{_this.thumbClickable=true;}});};Thumbnail.prototype.rebuildThumbnails=function(){var _this=this;this.$thumbOuter.addClass('lg-rebuilding-thumbnails');setTimeout(function(){_this.thumbTotalWidth=_this.core.galleryItems.length*(_this.settings.thumbWidth+_this.settings.thumbMargin);_this.$lgThumb.css('width',_this.thumbTotalWidth+'px');_this.$lgThumb.empty();_this.setThumbItemHtml(_this.core.galleryItems);_this.animateThumb(_this.core.index);},50);setTimeout(function(){_this.$thumbOuter.removeClass('lg-rebuilding-thumbnails');},200);};Thumbnail.prototype.setTranslate=function(value){this.$lgThumb.css('transform','translate3d(-'+value+'px, 0px, 0px)');};Thumbnail.prototype.getPossibleTransformX=function(left){if(left>this.thumbTotalWidth-this.thumbOuterWidth){left=this.thumbTotalWidth-this.thumbOuterWidth;}\nif(left<0){left=0;}\nreturn left;};Thumbnail.prototype.animateThumb=function(index){this.$lgThumb.css('transition-duration',this.core.settings.speed+'ms');if(this.settings.animateThumb){var position=0;switch(this.settings.currentPagerPosition){case'left':position=0;break;case'middle':position=this.thumbOuterWidth / 2-this.settings.thumbWidth / 2;break;case'right':position=this.thumbOuterWidth-this.settings.thumbWidth;}\nthis.translateX=(this.settings.thumbWidth+this.settings.thumbMargin)*index-\n1-\nposition;if(this.translateX>this.thumbTotalWidth-this.thumbOuterWidth){this.translateX=this.thumbTotalWidth-this.thumbOuterWidth;}\nif(this.translateX<0){this.translateX=0;}\nthis.setTranslate(this.translateX);}};Thumbnail.prototype.onThumbTouchMove=function(thumbDragUtils){thumbDragUtils.newTranslateX=this.translateX;thumbDragUtils.isMoved=true;thumbDragUtils.touchMoveTime=new Date().valueOf();thumbDragUtils.newTranslateX-=thumbDragUtils.cords.endX-thumbDragUtils.cords.startX;thumbDragUtils.newTranslateX=this.getPossibleTransformX(thumbDragUtils.newTranslateX);this.setTranslate(thumbDragUtils.newTranslateX);this.$thumbOuter.addClass('lg-dragging');return thumbDragUtils;};Thumbnail.prototype.onThumbTouchEnd=function(thumbDragUtils){thumbDragUtils.isMoved=false;thumbDragUtils.endTime=new Date();this.$thumbOuter.removeClass('lg-dragging');var touchDuration=thumbDragUtils.endTime.valueOf()-\nthumbDragUtils.startTime.valueOf();var distanceXnew=thumbDragUtils.cords.endX-thumbDragUtils.cords.startX;var speedX=Math.abs(distanceXnew)/ touchDuration;if(speedX>0.15&&thumbDragUtils.endTime.valueOf()-thumbDragUtils.touchMoveTime<30){speedX+=1;if(speedX>2){speedX+=1;}\nspeedX=speedX+\nspeedX*(Math.abs(distanceXnew)/ this.thumbOuterWidth);this.$lgThumb.css('transition-duration',Math.min(speedX-1,2)+'settings');distanceXnew=distanceXnew*speedX;this.translateX=this.getPossibleTransformX(this.translateX-distanceXnew);this.setTranslate(this.translateX);}\nelse{this.translateX=thumbDragUtils.newTranslateX;}\nif(Math.abs(thumbDragUtils.cords.endX-thumbDragUtils.cords.startX)<this.settings.thumbnailSwipeThreshold){this.thumbClickable=true;}\nreturn thumbDragUtils;};Thumbnail.prototype.getThumbHtml=function(thumb,index){var slideVideoInfo=this.core.galleryItems[index].__slideVideoInfo||{};var thumbImg;
2if(slideVideoInfo.youtube){if(this.settings.loadYouTubeThumbnail){thumbImg='//img.youtube.com/vi/'+\nslideVideoInfo.youtube[1]+'/'+\nthis.settings.youTubeThumbSize+'.jpg';}\nelse{thumbImg=thumb;}}\nelse{thumbImg=thumb;}\nreturn\"<div data-lg-item-id=\\\"\"+index+\"\\\" class=\\\"lg-thumb-item \"+(index===this.core.index?' active':'')+\"\\\" \\n        style=\\\"width:\"+this.settings.thumbWidth+\"px; height: \"+this.settings.thumbHeight+\";\\n            margin-right: \"+this.settings.thumbMargin+\"px;\\\">\\n            <img data-lg-item-id=\\\"\"+index+\"\\\" src=\\\"\"+thumbImg+\"\\\" />\\n        </div>\";};Thumbnail.prototype.getThumbItemHtml=function(items){var thumbList='';for(var i=0;i<items.length;i++){thumbList+=this.getThumbHtml(items[i].thumb,i);}\nreturn thumbList;};Thumbnail.prototype.setThumbItemHtml=function(items){var thumbList=this.getThumbItemHtml(items);this.$lgThumb.html(thumbList);};Thumbnail.prototype.setAnimateThumbStyles=function(){if(this.settings.animateThumb){this.core.outer.addClass('lg-animate-thumb');}};Thumbnail.prototype.manageActiveClassOnSlideChange=function(){var _this=this;this.core.LGel.on(lGEvents.beforeSlide+\".thumb\",function(event){var $thumb=_this.core.outer.find('.lg-thumb-item');var index=event.detail.index;$thumb.removeClass('active');$thumb.eq(index).addClass('active');});};Thumbnail.prototype.toggleThumbBar=function(){var _this=this;if(this.settings.toggleThumb){this.core.outer.addClass('lg-can-toggle');this.core.$toolbar.append('<button type=\"button\" aria-label=\"Toggle thumbnails\" class=\"lg-toggle-thumb lg-icon\"></button>');this.core.outer.find('.lg-toggle-thumb').first().on('click.lg',function(){_this.core.outer.toggleClass('lg-components-open');});}};Thumbnail.prototype.thumbKeyPress=function(){var _this=this;this.$LG(window).on(\"keydown.lg.thumb.global\"+this.core.lgId,function(e){if(!_this.core.lgOpened||!_this.settings.toggleThumb)\nreturn;if(e.keyCode===38){e.preventDefault();_this.core.outer.addClass('lg-components-open');}\nelse if(e.keyCode===40){e.preventDefault();_this.core.outer.removeClass('lg-components-open');}});};Thumbnail.prototype.destroy=function(){if(this.settings.thumbnail){this.$LG(window).off(\".lg.thumb.global\"+this.core.lgId);this.core.LGel.off('.lg.thumb');this.core.LGel.off('.thumb');this.$thumbOuter.remove();this.core.outer.removeClass('lg-has-thumb');}};return Thumbnail;}());export default Thumbnail;","Nw_Additions/lib/lightgallery/plugins/pager/lg-pager.umd.min.js":"/*!\n * lightgallery | 2.2.1 | September 4th 2021\n * http://www.lightgalleryjs.com/\n * Copyright (c) 2020 Sachin Neravath;\n * @license GPLv3\n */\n(function(global,factory){typeof exports==='object'&&typeof module!=='undefined'?module.exports=factory():typeof define==='function'&&define.amd?define(factory):(global=typeof globalThis!=='undefined'?globalThis:global||self,global.lgPager=factory());}(this,(function(){'use strict';/*! *****************************************************************************\n    Copyright (c) Microsoft Corporation.\n\n    Permission to use, copy, modify, and/or distribute this software for any\n    purpose with or without fee is hereby granted.\n\n    THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\n    REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\n    AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\n    INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\n    LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\n    OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\n    PERFORMANCE OF THIS SOFTWARE.\n    ***************************************************************************** */\nvar __assign=function(){__assign=Object.assign||function __assign(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p];}\nreturn t;};return __assign.apply(this,arguments);};var lGEvents={afterAppendSlide:'lgAfterAppendSlide',init:'lgInit',hasVideo:'lgHasVideo',containerResize:'lgContainerResize',updateSlides:'lgUpd
2ateSlides',afterAppendSubHtml:'lgAfterAppendSubHtml',beforeOpen:'lgBeforeOpen',afterOpen:'lgAfterOpen',slideItemLoad:'lgSlideItemLoad',beforeSlide:'lgBeforeSlide',afterSlide:'lgAfterSlide',posterClick:'lgPosterClick',dragStart:'lgDragStart',dragMove:'lgDragMove',dragEnd:'lgDragEnd',beforeNextSlide:'lgBeforeNextSlide',beforePrevSlide:'lgBeforePrevSlide',beforeClose:'lgBeforeClose',afterClose:'lgAfterClose',rotateLeft:'lgRotateLeft',rotateRight:'lgRotateRight',flipHorizontal:'lgFlipHorizontal',flipVertical:'lgFlipVertical',};var pagerSettings={pager:true,};var Pager=(function(){function Pager(instance,$LG){this.core=instance;this.$LG=$LG;this.settings=__assign(__assign({},pagerSettings),this.core.settings);return this;}\nPager.prototype.getPagerHtml=function(items){var pagerList='';for(var i=0;i<items.length;i++){pagerList+=\"<span  data-lg-item-id=\\\"\"+i+\"\\\" class=\\\"lg-pager-cont\\\"> \\n                    <span data-lg-item-id=\\\"\"+i+\"\\\" class=\\\"lg-pager\\\"></span>\\n                    <div class=\\\"lg-pager-thumb-cont\\\"><span class=\\\"lg-caret\\\"></span> <img src=\\\"\"+items[i].thumb+\"\\\" /></div>\\n                    </span>\";}\nreturn pagerList;};Pager.prototype.init=function(){var _this=this;if(!this.settings.pager){return;}\nvar timeout;this.core.$lgComponents.prepend('<div class=\"lg-pager-outer\"></div>');var $pagerOuter=this.core.outer.find('.lg-pager-outer');$pagerOuter.html(this.getPagerHtml(this.core.galleryItems));$pagerOuter.first().on('click.lg touchend.lg',function(event){var $target=_this.$LG(event.target);if(!$target.hasAttribute('data-lg-item-id')){return;}\nvar index=parseInt($target.attr('data-lg-item-id'));_this.core.slide(index,false,true,false);});$pagerOuter.first().on('mouseover.lg',function(){clearTimeout(timeout);$pagerOuter.addClass('lg-pager-hover');});$pagerOuter.first().on('mouseout.lg',function(){timeout=setTimeout(function(){$pagerOuter.removeClass('lg-pager-hover');});});this.core.LGel.on(lGEvents.beforeSlide+\".pager\",function(event){var index=event.detail.index;_this.manageActiveClass.call(_this,index);});this.core.LGel.on(lGEvents.updateSlides+\".pager\",function(){$pagerOuter.empty();$pagerOuter.html(_this.getPagerHtml(_this.core.galleryItems));_this.manageActiveClass(_this.core.index);});};Pager.prototype.manageActiveClass=function(index){var $pagerCont=this.core.outer.find('.lg-pager-cont');$pagerCont.removeClass('lg-pager-active');$pagerCont.eq(index).addClass('lg-pager-active');};Pager.prototype.destroy=function(){this.core.outer.find('.lg-pager-outer').remove();this.core.LGel.off('.lg.pager');this.core.LGel.off('.pager');};return Pager;}());return Pager;})));","Nw_Additions/lib/lightgallery/plugins/pager/lg-pager.es5.min.js":"/*!\n * lightgallery | 2.2.1 | September 4th 2021\n * http://www.lightgalleryjs.com/\n * Copyright (c) 2020 Sachin Neravath;\n * @license GPLv3\n */\n\n/*! *****************************************************************************\nCopyright (c) Microsoft Corporation.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n***************************************************************************** */\nvar __assign=function(){__assign=Object.assign||function __assign(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p];}\nreturn t;};return __assign.apply(this,arguments);};var lGEvents={afterAppendSlide:'lgAfterAppendSlide',init:'lgInit',hasVideo:'lgHasVideo',containerResize:'lgContainerResize',updateSlides:'lgUpd
2ateSlides',afterAppendSubHtml:'lgAfterAppendSubHtml',beforeOpen:'lgBeforeOpen',afterOpen:'lgAfterOpen',slideItemLoad:'lgSlideItemLoad',beforeSlide:'lgBeforeSlide',afterSlide:'lgAfterSlide',posterClick:'lgPosterClick',dragStart:'lgDragStart',dragMove:'lgDragMove',dragEnd:'lgDragEnd',beforeNextSlide:'lgBeforeNextSlide',beforePrevSlide:'lgBeforePrevSlide',beforeClose:'lgBeforeClose',afterClose:'lgAfterClose',rotateLeft:'lgRotateLeft',rotateRight:'lgRotateRight',flipHorizontal:'lgFlipHorizontal',flipVertical:'lgFlipVertical',};var pagerSettings={pager:true,};var Pager=(function(){function Pager(instance,$LG){this.core=instance;this.$LG=$LG;this.settings=__assign(__assign({},pagerSettings),this.core.settings);return this;}\nPager.prototype.getPagerHtml=function(items){var pagerList='';for(var i=0;i<items.length;i++){pagerList+=\"<span  data-lg-item-id=\\\"\"+i+\"\\\" class=\\\"lg-pager-cont\\\"> \\n                    <span data-lg-item-id=\\\"\"+i+\"\\\" class=\\\"lg-pager\\\"></span>\\n                    <div class=\\\"lg-pager-thumb-cont\\\"><span class=\\\"lg-caret\\\"></span> <img src=\\\"\"+items[i].thumb+\"\\\" /></div>\\n                    </span>\";}\nreturn pagerList;};Pager.prototype.init=function(){var _this=this;if(!this.settings.pager){return;}\nvar timeout;this.core.$lgComponents.prepend('<div class=\"lg-pager-outer\"></div>');var $pagerOuter=this.core.outer.find('.lg-pager-outer');$pagerOuter.html(this.getPagerHtml(this.core.galleryItems));$pagerOuter.first().on('click.lg touchend.lg',function(event){var $target=_this.$LG(event.target);if(!$target.hasAttribute('data-lg-item-id')){return;}\nvar index=parseInt($target.attr('data-lg-item-id'));_this.core.slide(index,false,true,false);});$pagerOuter.first().on('mouseover.lg',function(){clearTimeout(timeout);$pagerOuter.addClass('lg-pager-hover');});$pagerOuter.first().on('mouseout.lg',function(){timeout=setTimeout(function(){$pagerOuter.removeClass('lg-pager-hover');});});this.core.LGel.on(lGEvents.beforeSlide+\".pager\",function(event){var index=event.detail.index;_this.manageActiveClass.call(_this,index);});this.core.LGel.on(lGEvents.updateSlides+\".pager\",function(){$pagerOuter.empty();$pagerOuter.html(_this.getPagerHtml(_this.core.galleryItems));_this.manageActiveClass(_this.core.index);});};Pager.prototype.manageActiveClass=function(index){var $pagerCont=this.core.outer.find('.lg-pager-cont');$pagerCont.removeClass('lg-pager-active');$pagerCont.eq(index).addClass('lg-pager-active');};Pager.prototype.destroy=function(){this.core.outer.find('.lg-pager-outer').remove();this.core.LGel.off('.lg.pager');this.core.LGel.off('.pager');};return Pager;}());
2export default Pager;","Nw_Additions/lib/lightgallery/plugins/pager/lg-pager.min.js":"/**\n * lightgallery | 2.2.1 | September 4th 2021\n * http://www.lightgalleryjs.com/\n * Copyright (c) 2020 Sachin Neravath;\n * @license GPLv3\n */\n\n!function(e,t){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define(t):(e=\"undefined\"!=typeof globalThis?globalThis:e||self).lgPager=t()}(this,(function(){\"use strict\";var e=function(){return(e=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},t=\"lgUpdateSlides\",r=\"lgBeforeSlide\",o={pager:!0};return function(){function i(t,r){return this.core=t,this.$LG=r,this.settings=e(e({},o),this.core.settings),this}return i.prototype.getPagerHtml=function(e){for(var t=\"\",r=0;r<e.length;r++)t+='<span  data-lg-item-id=\"'+r+'\" class=\"lg-pager-cont\"> \\n                    <span data-lg-item-id=\"'+r+'\" class=\"lg-pager\"></span>\\n                    <div class=\"lg-pager-thumb-cont\"><span class=\"lg-caret\"></span> <img src=\"'+e[r].thumb+'\" /></div>\\n                    </span>';return t},i.prototype.init=function(){var e=this;if(this.settings.pager){var o;this.core.$lgComponents.prepend('<div class=\"lg-pager-outer\"></div>');var i=this.core.outer.find(\".lg-pager-outer\");i.html(this.getPagerHtml(this.core.galleryItems)),i.first().on(\"click.lg touchend.lg\",(function(t){var r=e.$LG(t.target);if(r.hasAttribute(\"data-lg-item-id\")){var o=parseInt(r.attr(\"data-lg-item-id\"));e.core.slide(o,!1,!0,!1)}})),i.first().on(\"mouseover.lg\",(function(){clearTimeout(o),i.addClass(\"lg-pager-hover\")})),i.first().on(\"mouseout.lg\",(function(){o=setTimeout((function(){i.removeClass(\"lg-pager-hover\")}))})),this.core.LGel.on(r+\".pager\",(function(t){var r=t.detail.index;e.manageActiveClass.call(e,r)})),this.core.LGel.on(t+\".pager\",(function(){i.empty(),i.html(e.getPagerHtml(e.core.galleryItems)),e.manageActiveClass(e.core.index)}))}},i.prototype.manageActiveClass=function(e){var t=this.core.outer.find(\".lg-pager-cont\");t.removeClass(\"lg-pager-active\"),t.eq(e).addClass(\"lg-pager-active\")},i.prototype.destroy=function(){this.core.outer.find(\".lg-pager-outer\").remove(),this.core.LGel.off(\".lg.pager\"),this.core.LGel.off(\".pager\")},i}()}));\n","Nw_Additions/lib/lightgallery/plugins/hash/lg-hash.min.js":"/**\n * lightgallery | 2.2.1 | September 4th 2021\n * http://www.lightgalleryjs.com/\n * Copyright (c) 2020 Sachin Neravath;\n * @license GPLv3\n */\n\n!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(e):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).lgHash=e()}(this,(function(){\"use strict\";var t=function(){return(t=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var s in e=arguments[i])Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t}).apply(this,arguments)},e=\"lgAfterSlide\",i=\"lgAfterClose\",o={hash:!0,galleryId:\"1\",customSlideName:!1};return function(){function s(e,i){return this.core=e,this.$LG=i,this.settings=t(t({},o),this.core.settings),this}return s.prototype.init=function(){var t=this;this.settings.hash&&(this.oldHash=window.location.hash,setTimeout((function(){t.buildFromHash()}),100),this.core.LGel.on(e+\".hash\",this.onAfterSlide.bind(this)),this.core.LGel.on(i+\".hash\",this.onCloseAfter.bind(this)),this.$LG(window).on(\"hashchange.lg.hash.global\"+this.core.lgId,this.onHashchange.bind(this)))},s.prototype.onAfterSlide=function(t){var e=this.core.galleryItems[t.detail.index].slideName;e=this.settings.customSlideName&&e||t.detail.index,history.replaceState?history.replaceState(null,\"\",window.location.pathname+window.location.search+\"#lg=\"+this.settings.galleryId+\"&slide=\"+e):window.location.hash=\"lg=\"+this.settings.galleryId+\"&slide=\"+e},s.prototype.getIndexFromUrl=function(t){void 0===t&&(t=window.location.hash);var e=t.split(\"&slide=\")[1],i=0;if(this.settings.customSlideName)for(var o=0;o<this.core.galleryItems.length;o++){if(this.core.galleryItems[o].slideName===e){i=o;break}}else i=parseInt(e,10);return isNaN(i)?0:i},s.prototype.buildFromHash=function(){var t=window.location.hash;if(t.indexOf(\"lg=\"+this.settings.galleryId)>0){this.$LG(document.body).addClass(\"lg-from-hash\");var e=this.getIndexFromUrl(t);
2return this.core.openGallery(e),!0}},s.prototype.onCloseAfter=function(){this.oldHash&&this.oldHash.indexOf(\"lg=\"+this.settings.galleryId)<0?history.replaceState?history.replaceState(null,\"\",this.oldHash):window.location.hash=this.oldHash:history.replaceState?history.replaceState(null,document.title,window.location.pathname+window.location.search):window.location.hash=\"\"},s.prototype.onHashchange=function(){if(this.core.lgOpened){var t=window.location.hash,e=this.getIndexFromUrl(t);t.indexOf(\"lg=\"+this.settings.galleryId)>-1?this.core.slide(e,!1,!1):this.core.lGalleryOn&&this.core.closeGallery()}},s.prototype.closeGallery=function(){this.settings.hash&&this.$LG(document.body).removeClass(\"lg-from-hash\")},s.prototype.destroy=function(){this.core.LGel.off(\".lg.hash\"),this.core.LGel.off(\".hash\"),this.$LG(window).off(\"hashchange.lg.hash.global\"+this.core.lgId)},s}()}));\n","Nw_Additions/lib/lightgallery/plugins/hash/lg-hash.umd.min.js":"/*!\n * lightgallery | 2.2.1 | September 4th 2021\n * http://www.lightgalleryjs.com/\n * Copyright (c) 2020 Sachin Neravath;\n * @license GPLv3\n */\n(function(global,factory){typeof exports==='object'&&typeof module!=='undefined'?module.exports=factory():typeof define==='function'&&define.amd?define(factory):(global=typeof globalThis!=='undefined'?globalThis:global||self,global.lgHash=factory());}(this,(function(){'use strict';/*! *****************************************************************************\n    Copyright (c) Microsoft Corporation.\n\n    Permission to use, copy, modify, and/or distribute this software for any\n    purpose with or without fee is hereby granted.\n\n    THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\n    REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\n    AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\n    INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\n    LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\n    OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\n    PERFORMANCE OF THIS SOFTWARE.\n    ***************************************************************************** */\nvar __assign=function(){__assign=Object.assign||function __assign(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p];}\nreturn t;};return __assign.apply(this,arguments);};var lGEvents={afterAppendSlide:'lgAfterAppendSlide',init:'lgInit',hasVideo:'lgHasVideo',containerResize:'lgContainerResize',updateSlides:'lgUpdateSlides',afterAppendSubHtml:'lgAfterAppendSubHtml',beforeOpen:'lgBeforeOpen',afterOpen:'lgAfterOpen',slideItemLoad:'lgSlideItemLoad',beforeSlide:'lgBeforeSlide',afterSlide:'lgAfterSlide',posterClick:'lgPosterClick',dragStart:'lgDragStart',dragMove:'lgDragMove',dragEnd:'lgDragEnd',beforeNextSlide:'lgBeforeNextSlide',beforePrevSlide:'lgBeforePrevSlide',beforeClose:'lgBeforeClose',afterClose:'lgAfterClose',rotateLeft:'lgRotateLeft',rotateRight:'lgRotateRight',flipHorizontal:'lgFlipHorizontal',flipVertical:'lgFlipVertical',};var hashSettings={hash:true,galleryId:'1',customSlideName:false,};var Hash=(function(){function Hash(instance,$LG){this.core=instance;this.$LG=$LG;this.settings=__assign(__assign({},hashSettings),this.core.settings);return this;}\nHash.prototype.init=function(){var _this=this;if(!this.settings.hash){return;}\nthis.oldHash=window.location.hash;setTimeout(function(){_this.buildFromHash();},100);this.core.LGel.on(lGEvents.afterSlide+\".hash\",this.onAfterSlide.bind(this));this.core.LGel.on(lGEvents.afterClose+\".hash\",this.onCloseAfter.bind(this));this.$LG(window).on(\"hashchange.lg.hash.global\"+this.core.lgId,this.onHashchange.bind(this));};Hash.prototype.onAfterSlide=function(event){var slideName=this.core.galleryItems[event.detail.index].slideName;slideName=this.settings.customSlideName?slideName||event.detail.index:event.detail.index;if(history.replaceState){history.replaceState(null,'',window.location.pathname+\nwindow.location.search+'#lg='+\nthis.settings.galleryId+'&slide='+\nslideName);}\nelse{window.location.hash='lg='+this.settings.galleryId+'&slide='+slideName;}};Hash.prototype.getIndexFromUrl=function(hash){if(hash===void 0){hash=window.location.hash;}\nvar slideName=hash.split('&slide=')[1];var _idx=0;if(this.settings.customSlideName){for(var index=0;
2index<this.core.galleryItems.length;index++){var dynamicEl=this.core.galleryItems[index];if(dynamicEl.slideName===slideName){_idx=index;break;}}}\nelse{_idx=parseInt(slideName,10);}\nreturn isNaN(_idx)?0:_idx;};Hash.prototype.buildFromHash=function(){var _hash=window.location.hash;if(_hash.indexOf('lg='+this.settings.galleryId)>0){this.$LG(document.body).addClass('lg-from-hash');var index=this.getIndexFromUrl(_hash);this.core.openGallery(index);return true;}};Hash.prototype.onCloseAfter=function(){if(this.oldHash&&this.oldHash.indexOf('lg='+this.settings.galleryId)<0){if(history.replaceState){history.replaceState(null,'',this.oldHash);}\nelse{window.location.hash=this.oldHash;}}\nelse{if(history.replaceState){history.replaceState(null,document.title,window.location.pathname+window.location.search);}\nelse{window.location.hash='';}}};Hash.prototype.onHashchange=function(){if(!this.core.lgOpened)\nreturn;var _hash=window.location.hash;var index=this.getIndexFromUrl(_hash);if(_hash.indexOf('lg='+this.settings.galleryId)>-1){this.core.slide(index,false,false);}\nelse if(this.core.lGalleryOn){this.core.closeGallery();}};Hash.prototype.closeGallery=function(){if(this.settings.hash){this.$LG(document.body).removeClass('lg-from-hash');}};Hash.prototype.destroy=function(){this.core.LGel.off('.lg.hash');this.core.LGel.off('.hash');this.$LG(window).off(\"hashchange.lg.hash.global\"+this.core.lgId);};return Hash;}());return Hash;})));","Nw_Additions/lib/lightgallery/plugins/hash/lg-hash.es5.min.js":"/*!\n * lightgallery | 2.2.1 | September 4th 2021\n * http://www.lightgalleryjs.com/\n * Copyright (c) 2020 Sachin Neravath;\n * @license GPLv3\n */\n\n/*! *****************************************************************************\nCopyright (c) Microsoft Corporation.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n***************************************************************************** */\nvar __assign=function(){__assign=Object.assign||function __assign(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p];}\nreturn t;};return __assign.apply(this,arguments);};var lGEvents={afterAppendSlide:'lgAfterAppendSlide',init:'lgInit',hasVideo:'lgHasVideo',containerResize:'lgContainerResize',updateSlides:'lgUpdateSlides',afterAppendSubHtml:'lgAfterAppendSubHtml',beforeOpen:'lgBeforeOpen',afterOpen:'lgAfterOpen',slideItemLoad:'lgSlideItemLoad',beforeSlide:'lgBeforeSlide',afterSlide:'lgAfterSlide',posterClick:'lgPosterClick',dragStart:'lgDragStart',dragMove:'lgDragMove',dragEnd:'lgDragEnd',beforeNextSlide:'lgBeforeNextSlide',beforePrevSlide:'lgBeforePrevSlide',beforeClose:'lgBeforeClose',afterClose:'lgAfterClose',rotateLeft:'lgRotateLeft',rotateRight:'lgRotateRight',flipHorizontal:'lgFlipHorizontal',flipVertical:'lgFlipVertical',};var hashSettings={hash:true,galleryId:'1',customSlideName:false,};var Hash=(function(){function Hash(instance,$LG){this.core=instance;this.$LG=$LG;this.settings=__assign(__assign({},hashSettings),this.core.settings);return this;}\nHash.prototype.init=function(){var _this=this;if(!this.settings.hash){return;}\nthis.oldHash=window.location.hash;setTimeout(function(){_this.buildFromHash();},100);this.core.LGel.on(lGEvents.afterSlide+\".hash\",this.onAfterSlide.bind(this));this.core.LGel.on(lGEvents.afterClose+\".hash\",this.onCloseAfter.bind(this));this.$LG(window).on(\"hashchange.lg.hash.global\"+this.core.lgId,this.onHashchange.bind(this));};Hash.prototype.onAfterSlide=function(event){var slideName=this.core.galleryItems[event.detail.index].slideName;slideName=this.settings.customSlideName?slideName||event.detail.index:event.detail.index;if(history.replaceState){history.replaceState(null,'',window.location.pathname+\nwindow.location.search+'#lg='+\nthis.settings.galleryId+'&slide='+\nslideName);}\nelse{window.location.hash='lg='+this.settings.galleryId+'&slide='+slideName;}};Hash.prototype.getIndexFromUrl=function(hash){if(hash===void 0){hash=window.location.hash;}\nvar slideName=hash.split('&slide=')[1];var _idx=0;if(this.settings.customSlideName){for(var index=0;
2index<this.core.galleryItems.length;index++){var dynamicEl=this.core.galleryItems[index];if(dynamicEl.slideName===slideName){_idx=index;break;}}}\nelse{_idx=parseInt(slideName,10);}\nreturn isNaN(_idx)?0:_idx;};Hash.prototype.buildFromHash=function(){var _hash=window.location.hash;if(_hash.indexOf('lg='+this.settings.galleryId)>0){this.$LG(document.body).addClass('lg-from-hash');var index=this.getIndexFromUrl(_hash);this.core.openGallery(index);return true;}};Hash.prototype.onCloseAfter=function(){if(this.oldHash&&this.oldHash.indexOf('lg='+this.settings.galleryId)<0){if(history.replaceState){history.replaceState(null,'',this.oldHash);}\nelse{window.location.hash=this.oldHash;}}\nelse{if(history.replaceState){history.replaceState(null,document.title,window.location.pathname+window.location.search);}\nelse{window.location.hash='';}}};Hash.prototype.onHashchange=function(){if(!this.core.lgOpened)\nreturn;var _hash=window.location.hash;var index=this.getIndexFromUrl(_hash);if(_hash.indexOf('lg='+this.settings.galleryId)>-1){this.core.slide(index,false,false);}\nelse if(this.core.lGalleryOn){this.core.closeGallery();}};Hash.prototype.closeGallery=function(){if(this.settings.hash){this.$LG(document.body).removeClass('lg-from-hash');}};Hash.prototype.destroy=function(){this.core.LGel.off('.lg.hash');this.core.LGel.off('.hash');this.$LG(window).off(\"hashchange.lg.hash.global\"+this.core.lgId);};return Hash;}());export default Hash;","Nw_Additions/lib/gsap/CSSRulePlugin.min.js":"/*!\n * CSSRulePlugin 3.4.2\n * https://greensock.com\n * \n * @license Copyright 2020, GreenSock. All rights reserved.\n * Subject to the terms at https://greensock.com/standard-license or for Club GreenSock members, the agreement issued with that membership.\n * @author: Jack Doyle, [email protected]\n */\n\n!function(e,t){\"object\"==typeof exports&&\"undefined\"!=typeof module?t(exports):\"function\"==typeof define&&define.amd?define([\"exports\"],t):t((e=e||self).window=e.window||{})}(this,function(e){\"use strict\";function h(){return\"undefined\"!=typeof window}function i(){return t||h()&&(t=window.gsap)&&t.registerPlugin&&t}function j(){return n||(s(),o||console.warn(\"Please gsap.registerPlugin(CSSPlugin, CSSRulePlugin)\")),n}var t,n,c,o,s=function _initCore(e){t=e||i(),h()&&(c=document),t&&(o=t.plugins.css)&&(n=1)},r={version:\"3.4.2\",name:\"cssRule\",init:function init(e,t,n,i,s){if(!j()||void 0===e.cssText)return!1;var r=e._gsProxy=e._gsProxy||c.createElement(\"div\");this.ss=e,this.style=r.style,r.style.cssText=e.cssText,o.prototype.init.call(this,r,t,n,i,s)},render:function render(e,t){for(var n,i=t._pt,s=t.style,r=t.ss;i;)i.r(e,i.d),i=i._next;for(n=s.length;-1<--n;)r[s[n]]=s[s[n]]},getRule:function getRule(e){j();var t,n,i,s,r=c.all?\"rules\":\"cssRules\",o=c.styleSheets,l=o.length,u=\":\"===e.charAt(0);for(e=(u?\"\":\",\")+e.split(\"::\").join(\":\").toLowerCase()+\",\",u&&(s=[]);l--;){try{if(!(n=o[l][r]))continue;t=n.length}catch(e){console.warn(e);continue}for(;-1<--t;)if((i=n[t]).selectorText&&-1!==(\",\"+i.selectorText.split(\"::\").join(\":\").toLowerCase()+\",\").indexOf(e)){if(!u)return i.style;s.push(i.style)}}return s},register:s};i()&&t.registerPlugin(r),e.CSSRulePlugin=r,e.default=r;if (typeof(window)===\"undefined\"||window!==e){Object.defineProperty(e,\"__esModule\",{value:!0})} else {delete e.default}});\n\n","Nw_Additions/lib/gsap/gsap.min.js":"/*!\n * GSAP 3.4.2\n * https://greensock.com\n * \n * @license Copyright 2020, GreenSock. All rights reserved.\n * Subject to the terms at https://greensock.com/standard-license or for Club GreenSock members, the agreement issued with that membership.\n * @author: Jack Doyle, [email protected]\n */\n\n!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?e(exports):\"function\"==typeof define&&define.amd?define([\"exports\"],e):e((t=t||self).window=t.window||{})}(this,function(e){\"use strict\";function _inheritsLoose(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t}
2function n(t){return\"string\"==typeof t}function o(t){return\"function\"==typeof t}function p(t){return\"number\"==typeof t}function q(t){return void 0===t}function r(t){return\"object\"==typeof t}function s(t){return!1!==t}function t(){return\"undefined\"!=typeof window}function u(t){return o(t)||n(t)}function K(t){return(l=ct(t,at))&&ie}function L(t,e){return console.warn(\"Invalid property\",t,\"set to\",e,\"Missing plugin? gsap.registerPlugin()\")}function M(t,e){return!e&&console.warn(t)}function N(t,e){return t&&(at[t]=e)&&l&&(l[t]=e)||at}function O(){return 0}function Y(t){var e,i,n=t[0];if(r(n)||o(n)||(t=[t]),!(e=(n._gsap||{}).harness)){for(i=dt.length;i--&&!dt[i].targetTest(n););e=dt[i]}for(i=t.length;i--;)t[i]&&(t[i]._gsap||(t[i]._gsap=new Et(t[i],e)))||t.splice(i,1);return t}function Z(t){return t._gsap||Y(yt(t))[0]._gsap}function $(t,e){var r=t[e];return o(r)?t[e]():q(r)&&t.getAttribute(e)||r}function _(t,e){return(t=t.split(\",\")).forEach(e)||t}function aa(t){return Math.round(1e5*t)/1e5||0}function ba(t,e){for(var r=e.length,i=0;t.indexOf(e[i])<0&&++i<r;);return i<r}function ca(t,e,r){var i,n=p(t[1]),a=(n?2:1)+(e<2?0:1),o=t[a];if(n&&(o.duration=t[1]),o.parent=r,e){for(i=o;r&&!(\"immediateRender\"in i);)i=r.vars.defaults||{},r=s(r.vars.inherit)&&r.parent;o.immediateRender=s(i.immediateRender),e<2?o.runBackwards=1:o.startAt=t[a-1]}return o}function da(){var t,e,r=ot.length,i=ot.slice(0);for(ut={},t=ot.length=0;t<r;t++)(e=i[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)}function ea(t,e,r,i){ot.length&&da(),t.render(e,r,i),ot.length&&da()}function fa(t){var e=parseFloat(t);return(e||0===e)&&(t+\"\").match(nt).length<2?e:t}function ga(t){return t}function ha(t,e){for(var r in e)r in t||(t[r]=e[r]);return t}function ia(t,e){for(var r in e)r in t||\"duration\"===r||\"ease\"===r||(t[r]=e[r])}function ka(t,e){for(var i in e)t[i]=r(e[i])?ka(t[i]||(t[i]={}),e[i]):e[i];return t}function la(t,e){var r,i={};for(r in t)r in e||(i[r]=t[r]);return i}function ma(t){var e=t.parent||I,r=t.keyframes?ia:ha;if(s(t.inherit))for(;e;)r(t,e.vars.defaults),e=e.parent||e._dp;return t}function pa(t,e,r,i){void 0===r&&(r=\"_first\"),void 0===i&&(i=\"_last\");var n=e._prev,a=e._next;n?n._next=a:t[r]===e&&(t[r]=a),a?a._prev=n:t[i]===e&&(t[i]=n),e._next=e._prev=e.parent=null}function qa(t,e){!t.parent||e&&!t.parent.autoRemoveChildren||t.parent.remove(t),t._act=0}function ra(t){for(var e=t;e;)e._dirty=1,e=e.parent;return t}function ua(t){return t._repeat?_t(t._tTime,t=t.duration()+t._rDelay)*t:0}function wa(t,e){return(t-e._start)*e._ts+(0<=e._ts?0:e._dirty?e.totalDuration():e._tDur)}function xa(t){return t._end=aa(t._start+(t._tDur/Math.abs(t._ts||t._rts||B)||0))}function ya(t,e){var r=t._dp;return r&&r.smoothChildTiming&&t._ts&&(t._start=aa(t._dp._time-(0<t._ts?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),xa(t),r._dirty||ra(r)),t}function za(t,e){var r;if((e._time||e._initted&&!e._dur)&&(r=wa(t.rawTime(),e),(!e._dur||gt(0,e.totalDuration(),r)-e._tTime>B)&&e.render(r,!0)),ra(t)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(r=t;r._dp;)0<=r.rawTime()&&r.totalTime(r._tTime),r=r._dp;t._zTime=-B}}function Aa(t,e,r,i){return e.parent&&qa(e),e._start=aa(r+e._delay),e._end=aa(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),function _addLinkedListItem(t,e,r,i,n){void 0===r&&(r=\"_first\"),void 0===i&&(i=\"_last\");var a,s=t[i];if(n)for(a=e[n];s&&s[n]>a;)s=s._prev;s?(e._next=s._next,s._next=e):(e._next=t[r],t[r]=e),e._next?e._next._prev=e:t[i]=e,e._prev=s,e.parent=e._dp=t}(t,e,\"_first\",\"_last\",t._sort?\"_start\":0),t._recent=e,i||za(t,e),t}function Ba(t,e){return(at.ScrollTrigger||L(\"scrollTrigger\",e))&&at.ScrollTrigger.create(e,t)}function Ca(t,e,r,i){return qt(t,e),t._initted?!r&&t._pt&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&d!==Mt.frame?(ot.push(t),t._lazy=[e,i],1):void 0:1}function Fa(t,e,r){var i=t._repeat,n=aa(e)||0;return t._dur=n,t._tDur=i?i<0?1e10:aa(n*(i+1)+t._rDelay*i):n,t._time>n&&(t._time=n,t._tTime=Math.min(t._tTime,t._tDur)),r||ra(t.parent),t.parent&&xa(t),t}function Ga(t){return t instanceof Rt?ra(t):Fa(t,t._dur)}function Ia(t,e){var r,i,a=t.labels,s=t._recent||mt,o=t.duration()>=z?s.endTime(!1):t._dur;return n(e)&&(isNaN(e)||e in a)?\"<\"===(r=e.charAt(0))||\">\"===r?(\"<\"===r?s._start:s.endTime(0<=s._repeat))+(parseFloat(e.substr(1))||0):(r=e.indexOf(\"=\"))<0?(e in a||(a[e]=o),a[e]):(i=+(e.charAt(r-1)+e.substr(r+1)),1<r?Ia(t,e.substr(0,r-1))+i:o+i):null==e?o:+e}function Ja(t,e){return t||0===t?e(t):e}function La(t){return(t+\"\").substr((parseFloat(t)+\"\").length)}function Oa(t,e){return t&&r(t)&&\"length\"in t&&(!e&&!t.length||t.length-1 
vendor: 2,064 bytes, line 2
2in t&&r(t[0]))&&!t.nodeType&&t!==i}function Ra(t){return t.sort(function(){return.5-Math.random()})}function Sa(t){if(o(t))return t;var c=r(t)?t:{each:t},_=Ft(c.ease),m=c.from||0,g=parseFloat(c.base)||0,v={},e=0<m&&m<1,y=isNaN(m)||e,T=c.axis,b=m,w=m;return n(m)?b=w={center:.5,edges:.5,end:1}[m]||0:!e&&y&&(b=m[0],w=m[1]),function(t,e,r){var i,n,a,s,o,u,h,l,f,d=(r||c).length,p=v[d];if(!p){if(!(f=\"auto\"===c.grid?0:(c.grid||[1,z])[1])){for(h=-z;h<(h=r[f++].getBoundingClientRect().left)&&f<d;);f--}for(p=v[d]=[],i=y?Math.min(f,d)*b-.5:m%f,n=y?d*w/f-.5:m/f|0,l=z,u=h=0;u<d;u++)a=u%f-i,s=n-(u/f|0),p[u]=o=T?Math.abs(\"y\"===T?s:a):j(a*a+s*s),h<o&&(h=o),o<l&&(l=o);\"random\"===m&&Ra(p),p.max=h-l,p.min=l,p.v=d=(parseFloat(c.amount)||parseFloat(c.each)*(d<f?d-1:T?\"y\"===T?d/f:f:Math.max(f,d/f))||0)*(\"edges\"===m?-1:1),p.b=d<0?g-d:g,p.u=La(c.amount||c.each)||0,_=_&&d<0?Dt(_):_}return d=(p[t]-p.min)/p.max||0,aa(p.b+(_?_(d):d)*p.v)+p.u}}function Ta(e){var r=e<1?Math.pow(10,(e+\"\").length-2):1;return function(t){return Math.floor(Math.round(parseFloat(t)/e)*e*r)/r+(p(t)?0:La(t))}}function Ua(u,t){var h,l,e=J(u);return!e&&r(u)&&(h=e=u.radius||z,u.values?(u=yt(u.values),(l=!p(u[0]))&&(h*=h)):u=Ta(u.increment)),Ja(t,e?o(u)?function(t){return l=u(t),Math.abs(l-t)<=h?l:t}:function(t){for(var e,r,i=parseFloat(l?t.x:t),n=parseFloat(l?t.y:0),a=z,s=0,o=u.length;o--;)(e=l?(e=u[o].x-i)*e+(r=u[o].y-n)*r:Math.abs(u[o]-i))<a&&(a=e,s=o);return s=!h||a<=h?u[s]:t,l||s===t||p(t)?s:s+La(t)}:Ta(u))}function Va(t,e,r,i){return Ja(J(t)?!e:!0===r?!!(r=0):!i,function(){return J(t)?t[~~(Math.random()*t.length)]:(r=r||1e-5)&&(i=r<1?Math.pow(10,(r+\"\").length-2):1)&&Math.floor(Math.round((t+Math.random()*(e-t))/r)*r*i)/i})}function Za(e,r,t){return Ja(t,function(t){return e[~~r(t)]})}function ab(t){for(var e,r,i,n,a=0,s=\"\";~(e=t.indexOf(\"random(\",a));)i=t.indexOf(\")\",e),n=\"[\"===t.charAt(e+7),r=t.substr(e+7,i-e-7).match(n?nt:W),s+=t.substr(a,e-a)+Va(n?r:+r[0],+r[1],+r[2]||1e-5),a=i+1;return s+t.substr(a,t.length-a)}function db(t,e,r){var i,n,a,s=t.labels,o=z;
2for(i in s)(n=s[i]-e)<0==!!r&&n&&o>(n=Math.abs(n))&&(a=i,o=n);return a}function fb(t){return qa(t),t.progress()<1&&bt(t,\"onInterrupt\"),t}function kb(t,e,r){return(6*(t=t<0?t+1:1<t?t-1:t)<1?e+(r-e)*t*6:t<.5?r:3*t<2?e+(r-e)*(2/3-t)*6:e)*wt+.5|0}function lb(t,e,r){var i,n,a,s,o,u,h,l,f,d,c=t?p(t)?[t>>16,t>>8&wt,t&wt]:0:xt.black;if(!c){if(\",\"===t.substr(-1)&&(t=t.substr(0,t.length-1)),xt[t])c=xt[t];else if(\"#\"===t.charAt(0))4===t.length&&(t=\"#\"+(i=t.charAt(1))+i+(n=t.charAt(2))+n+(a=t.charAt(3))+a),c=[(t=parseInt(t.substr(1),16))>>16,t>>8&wt,t&wt];else if(\"hsl\"===t.substr(0,3))if(c=d=t.match(W),e){if(~t.indexOf(\"=\"))return c=t.match(H),r&&c.length<4&&(c[3]=1),c}else s=+c[0]%360/360,o=c[1]/100,i=2*(u=c[2]/100)-(n=u<=.5?u*(o+1):u+o-u*o),3<c.length&&(c[3]*=1),c[0]=kb(s+1/3,i,n),c[1]=kb(s,i,n),c[2]=kb(s-1/3,i,n);else c=t.match(W)||xt.transparent;c=c.map(Number)}return e&&!d&&(i=c[0]/wt,n=c[1]/wt,a=c[2]/wt,u=((h=Math.max(i,n,a))+(l=Math.min(i,n,a)))/2,h===l?s=o=0:(f=h-l,o=.5<u?f/(2-h-l):f/(h+l),s=h===i?(n-a)/f+(n<a?6:0):h===n?(a-i)/f+2:(i-n)/f+4,s*=60),c[0]=~~(s+.5),c[1]=~~(100*o+.5),c[2]=~~(100*u+.5)),r&&c.length<4&&(c[3]=1),c}function mb(t){var r=[],i=[],n=-1;return t.split(kt).forEach(function(t){var e=t.match(tt)||[];r.push.apply(r,e),i.push(n+=e.length+1)}),r.c=i,r}function nb(t,e,r){var i,n,a,s,o=\"\",u=(t+o).match(kt),h=e?\"hsla(\":\"rgba(\",l=0;if(!u)return t;if(u=u.map(function(t){return(t=lb(t,e,1))&&h+(e?t[0]+\",\"+t[1]+\"%,\"+t[2]+\"%,\"+t[3]:t.join(\",\"))+\")\"}),r&&(a=mb(t),(i=r.c).join(o)!==a.c.join(o)))for(s=(n=t.replace(kt,\"1\").split(tt)).length-1;l<s;l++)o+=n[l]+(~i.indexOf(l)?u.shift()||h+\"0,0,0,0)\":(a.length?a:u.length?u:r).shift());if(!n)for(s=(n=t.split(kt)).length-1;l<s;l++)o+=n[l]+u[l];return o+n[s]}function qb(t){var e,r=t.join(\" \");if(kt.lastIndex=0,kt.test(r))return e=Ot.test(r),t[1]=nb(t[1],e),t[0]=nb(t[0],e,mb(t[1])),!0}function yb(t){var e=(t+\"\").split(\"(\"),r=At[e[0]];return r&&1<e.length&&r.config?r.config.apply(null,~t.indexOf(\"{\")?[function _parseObjectInString(t){for(var e,r,i,n={},a=t.substr(1,t.length-3).split(\":\"),s=a[0],o=1,u=a.length;o<u;o++)r=a[o],e=o!==u-1?r.lastIndexOf(\",\"):r.length,i=r.substr(0,e),n[s]=isNaN(i)?i.replace(St,\"\").trim():+i,s=r.substr(e+1).trim();return n}(e[1])]:rt.exec(t)[1].split(\",\").map(fa)):At._CE&&Pt.test(t)?At._CE(\"\",t):r}function Ab(t,e){for(var r,i=t._first;i;)i instanceof Rt?Ab(i,e):!i.vars.yoyoEase||i._yoyo&&i._repeat||i._yoyo===e||(i.timeline?Ab(i.timeline,e):(r=i._ease,i._ease=i._yEase,i._yEase=r,i._yoyo=e)),i=i._next}function Cb(t,e,r,i){void 0===r&&(r=function easeOut(t){return 1-e(1-t)}),void 0===i&&(i=function easeInOut(t){return t<.5?e(2*t)/2:1-e(2*(1-t))/2});var n,a={easeIn:e,easeOut:r,easeInOut:i};return _(t,function(t){for(var e in At[t]=at[t]=a,At[n=t.toLowerCase()]=r,a)At[n+(\"easeIn\"===e?\".in\":\"easeOut\"===e?\".out\":\".inOut\")]=At[t+\".\"+e]=a[e]}),a}function Db(e){return function(t){return t<.5?(1-e(1-2*t))/2:.5+e(2*(t-.5))/2}}function Eb(r,t,e){function il(t){return 1===t?1:i*Math.pow(2,-10*t)*Q((t-a)*n)+1}var i=1<=t?t:1,n=(e||(r?.3:.45))/(t<1?t:1),a=n/E*(Math.asin(1/i)||0),s=\"out\"===r?il:\"in\"===r?function(t){return 1-il(1-t)}:Db(il);return n=E/n,s.config=function(t,e){return Eb(r,t,e)},s}function Fb(e,r){function ql(t){return t?--t*t*((r+1)*t+r)+1:0}void 0===r&&(r=1.70158);var t=\"out\"===e?ql:\"in\"===e?function(t){return 1-ql(1-t)}:Db(ql);return t.config=function(t){return Fb(e,t)},t}var I,i,a,h,l,f,d,c,m,g,v,y,T,b,w,x,k,C,A,P,S,D,F,U={autoSleep:120,force3D:\"auto\",nullTargetWarn:1,units:{lineHeight:\"\"}},R={duration:.5,overwrite:!1,delay:0},z=1e8,B=1/z,E=2*Math.PI,X=E/4,V=0,j=Math.sqrt,G=Math.cos,Q=Math.sin,J=Array.isArray,W=/(?:-?\\.?\\d|\\.)+/gi,H=/[-+=.]*\\d+[.e\\-+]*\\d*[e\\-\\+]*\\d*/g,tt=/[-+=.]*\\d+[.e-]*\\d*[a-z%]*/g,et=/[-+=.]*\\d+(?:\\.|e-|e)*\\d*/gi,rt=/\\(([^()]+)\\)/i,it=/[+-]=-?[\\.\\d]+/,nt=/[#\\-+.]*\\b[a-z\\d-=+%.]+/gi,at={},st={},ot=[],ut={},ht={},lt={},ft=30,dt=[],pt=\"\",ct=function _merge(t,e){for(var r in e)t[r]=e[r];return t},_t=function _animationCycle(t,e){return(t/=e)&&~~t===t?~~t-1:~~t},mt={_start:0,endTime:O},gt=function _clamp(t,e,r){return r<t?t:e<r?e:r},vt=[].slice,yt=function toArray(t,e){return!n(t)||e||!a&&Ct()?J(t)?function _flatten(t,e,r){return void 0===r&&(r=[]),t.forEach(function(t){return n(t)&&!e||Oa(t,1)?r.push.apply(r,yt(t)):r.push(t)})||r}(t,e):Oa(t)?vt.call(t,0):t?[t]:[]:vt.call(h.querySelectorAll(t),0)},Tt=function mapRange(e,t,r,i,n){var a=t-e,s=i-r;return Ja(n,function(t){return r+((t-e)/a*s||0)})},bt=function _callback(t,e,r){var i,n,a=t.vars,s=a[e];if(s)return i=a[e+\"Params\"],n=a.callbackScope||t,r&&ot.length&&da(),i?s.apply(n,i):s.call(n)},wt=255,xt={aqua:[0,wt,wt],lime:[0,wt,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,wt],navy:[0,0,128],white:[wt,wt,wt],olive:[128,128,0],yellow:[wt,wt,0],orange:[wt,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[wt,0,0],pink:[wt,192,203],cyan:[0,wt,wt],transparent:[wt,wt,wt,0]},kt=function(){var t,e=\"(?:\\\\b(?:(?:rgb|rgba|hsl|hsla)\\\\(.+?\\\\))|\\\\B#(?:[0-9a-f]{3}){1,2}\\\\b\";for(t in xt)e+=\"|\"+t+\"\\\\b\";return new RegExp(e+\")\",\"gi\")}(),Ot=/hsl[a]?\\(/,Mt=(b=Date.now,w=500,x=33,k=b(),C=k,P=A=1/240,T={time:0,frame:0,tick:function tick(){kk(!0)},wake:function wake(){f&&(!a&&t()&&(i=a=window,h=i.document||{},at.gsap=ie,(i.gsapVersions||(i.gsapVersions=[])).push(ie.version),K(l||i.GreenSockGlobals||!i.gsap&&i||{}),y=i.requestAnimationFrame),g&&T.sleep(),v=y||function(t){return setTimeout(t,1e3*(P-T.time)+1|0)},m=1,kk(2))},sleep:function sleep(){(y?i.cancelAnimationFrame:clearTimeout)(g),m=0,v=O},lagSmoothing:function lagSmoothing(t,e){w=t||1e8,x=Math.min(e,w,0)},fps:function fps(t){A=1/(t||240),P=T.time+A},add:function add(t){S.indexOf(t)<0&&S.push(t),Ct()},remove:function remove(t){var e;~(e=S.indexOf(t))&&S.splice(e,1)},_listeners:S=[]}),Ct=function _wake(){return!m&&Mt.wake()},At={},Pt=/^[\\d.\\-M][\\d.\\-,\\s]/,St=/[\"']/g,Dt=function _invertEase(e){return function(t){return 1-e(1-t)}},Ft=function _parseEase(t,e){return t&&(o(t)?t:At[t]||yb(t))||e};function kk(e){var t,r,i=b()-C,n=!0===e;w<i&&(k+=i-x),C+=i,T.time=(C-k)/1e3,(0<(t=T.time-P)||n)&&(T.frame++,P+=t+(A<=t?.004:A-t),r=1),n||(g=v(kk)),r&&S.forEac
2h(function(t){return t(T.time,i,T.frame,e)})}function Hl(t){return t<F?D*t*t:t<.7272727272727273?D*Math.pow(t-1.5/2.75,2)+.75:t<.9090909090909092?D*(t-=2.25/2.75)*t+.9375:D*Math.pow(t-2.625/2.75,2)+.984375}_(\"Linear,Quad,Cubic,Quart,Quint,Strong\",function(t,e){var r=e<5?e+1:e;Cb(t+\",Power\"+(r-1),e?function(t){return Math.pow(t,r)}:function(t){return t},function(t){return 1-Math.pow(1-t,r)},function(t){return t<.5?Math.pow(2*t,r)/2:1-Math.pow(2*(1-t),r)/2})}),At.Linear.easeNone=At.none=At.Linear.easeIn,Cb(\"Elastic\",Eb(\"in\"),Eb(\"out\"),Eb()),D=7.5625,F=1/2.75,Cb(\"Bounce\",function(t){return 1-Hl(1-t)},Hl),Cb(\"Expo\",function(t){return t?Math.pow(2,10*(t-1)):0}),Cb(\"Circ\",function(t){return-(j(1-t*t)-1)}),Cb(\"Sine\",function(t){return 1===t?1:1-G(t*X)}),Cb(\"Back\",Fb(\"in\"),Fb(\"out\"),Fb()),At.SteppedEase=At.steps=at.SteppedEase={config:function config(t,e){void 0===t&&(t=1);var r=1/t,i=t+(e?0:1),n=e?1:0;return function(t){return((i*gt(0,.99999999,t)|0)+n)*r}}},R.ease=At[\"quad.out\"],_(\"onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt\",function(t){return pt+=t+\",\"+t+\"Params,\"});var zt,Et=function GSCache(t,e){this.id=V++,(t._gsap=this).target=t,this.harness=e,this.get=e?e.get:$,this.set=e?e.getSetter:Gt},It=((zt=Animation.prototype).delay=function delay(t){return t||0===t?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+t-this._delay),this._delay=t,this):this._delay},zt.duration=function duration(t){return arguments.length?this.totalDuration(0<this._repeat?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},zt.totalDuration=function totalDuration(t){if(!arguments.length)return this._tDur;this._dirty=0;var e=this._time/this._dur||0;return Fa(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1)),this._tTime?ya(this,e*t+ua(this)):this},zt.totalTime=function totalTime(t,e){if(Ct(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(ya(this,t);r.parent;)r.parent._time!==r._start+(0<=r._ts?r._tTime/r._ts:(r.totalDuration()-r._tTime)/-r._ts)&&r.totalTime(r._tTime,!0),r=r.parent;!this.parent&&this._dp.autoRemoveChildren&&(0<this._ts&&t<this._tDur||this._ts<0&&0<t||!this._tDur&&!t)&&Aa(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===B||!t&&!this._initted)&&(this._ts||(this._pTime=t),ea(this,t,e)),this},zt.time=function time(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+ua(this))%this._dur||(t?this._dur:0),e):this._time},zt.totalProgress=function totalProgress(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.ratio},zt.progress=function progress(t,e){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?t:1-t)+ua(this),e):this.duration()?Math.min(1,this._time/this._dur):this.ratio},zt.iteration=function iteration(t,e){var r=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*r,e):this._repeat?_t(this._tTime,r)+1:1},zt.timeScale=function timeScale(t){if(!arguments.length)return this._rts===-B?0:this._rts;if(this._rts===t)return this;var e=this.parent&&this._ts?wa(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||t===-B?0:this._rts,function _recacheAncestors(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t}(this.totalTime(gt(-this._delay,this._tDur,e),!0))},zt.paused=function paused(t){return arguments.length?(this._ps!==t&&((this._ps=t)?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Ct(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&(this._tTime-=B)&&Math.abs(this._zTime)!==B))),this):this._ps},zt.startTime=function startTime(t){if(arguments.length){this._start=t;var e=this.parent||this._dp;return!e||!e._sort&&this.parent||Aa(e,this,t-this._delay),this}return this._start},zt.endTime=function endTime(t){return this._start+(s(t)?this.totalDuration():this.duration())/Math.abs(this._ts
vendor: 1,258 bytes, line 2
2)},zt.rawTime=function rawTime(t){var e=this.parent||this._dp;return e?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?wa(e.rawTime(t),this):this._tTime:this._tTime},zt.globalTime=function globalTime(t){for(var e=this,r=arguments.length?t:e.rawTime();e;)r=e._start+r/(e._ts||1),e=e._dp;return r},zt.repeat=function repeat(t){return arguments.length?(this._repeat=t,Ga(this)):this._repeat},zt.repeatDelay=function repeatDelay(t){return arguments.length?(this._rDelay=t,Ga(this)):this._rDelay},zt.yoyo=function yoyo(t){return arguments.length?(this._yoyo=t,this):this._yoyo},zt.seek=function seek(t,e){return this.totalTime(Ia(this,t),s(e))},zt.restart=function restart(t,e){return this.play().totalTime(t?-this._delay:0,s(e))},zt.play=function play(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},zt.reverse=function reverse(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},zt.pause=function pause(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},zt.resume=function resume(){return this.paused(!1)},zt.reversed=function reversed(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-B:0)),this):this._rts<0}
vendor: 8,086 bytes, line 2
2,zt.invalidate=function invalidate(){return this._initted=0,this._zTime=-B,this},zt.isActive=function isActive(){var t,e=this.parent||this._dp,r=this._start;return!(e&&!(this._ts&&this._initted&&e.isActive()&&(t=e.rawTime(!0))>=r&&t<this.endTime(!0)-B))},zt.eventCallback=function eventCallback(t,e,r){var i=this.vars;return 1<arguments.length?(e?(i[t]=e,r&&(i[t+\"Params\"]=r),\"onUpdate\"===t&&(this._onUpdate=e)):delete i[t],this):i[t]},zt.then=function then(t){var i=this;return new Promise(function(e){function Zm(){var t=i.then;i.then=null,o(r)&&(r=r(i))&&(r.then||r===i)&&(i.then=t),e(r),i.then=t}var r=o(t)?t:ga;i._initted&&1===i.totalProgress()&&0<=i._ts||!i._tTime&&i._ts<0?Zm():i._prom=Zm})},zt.kill=function kill(){fb(this)},Animation);function Animation(t,e){var r=t.parent||I;this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,Fa(this,+t.duration,1),this.data=t.data,m||Mt.wake(),r&&Aa(r,this,e||0===e?e:r._time,1),t.reversed&&this.reverse(),t.paused&&this.paused(!0)}ha(It.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-B,_prom:0,_ps:!1,_rts:1});var Rt=function(i){function Timeline(t,e){var r;return void 0===t&&(t={}),(r=i.call(this,t,e)||this).labels={},r.smoothChildTiming=!!t.smoothChildTiming,r.autoRemoveChildren=!!t.autoRemoveChildren,r._sort=s(t.sortChildren),r.parent&&za(r.parent,_assertThisInitialized(r)),t.scrollTrigger&&Ba(_assertThisInitialized(r),t.scrollTrigger),r}_inheritsLoose(Timeline,i);var t=Timeline.prototype;return t.to=function to(t,e,r,i){return new Xt(t,ca(arguments,0,this),Ia(this,p(e)?i:r)),this},t.from=function from(t,e,r,i){return new Xt(t,ca(arguments,1,this),Ia(this,p(e)?i:r)),this},t.fromTo=function fromTo(t,e,r,i,n){return new Xt(t,ca(arguments,2,this),Ia(this,p(e)?n:i)),this},t.set=function set(t,e,r){return e.duration=0,e.parent=this,ma(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new Xt(t,e,Ia(this,r),1),this},t.call=function call(t,e,r){return Aa(this,Xt.delayedCall(0,t,e),Ia(this,r))},t.staggerTo=function staggerTo(t,e,r,i,n,a,s){return r.duration=e,r.stagger=r.stagger||i,r.onComplete=a,r.onCompleteParams=s,r.parent=this,new Xt(t,r,Ia(this,n)),this},t.staggerFrom=function staggerFrom(t,e,r,i,n,a,o){return r.runBackwards=1,ma(r).immediateRender=s(r.immediateRender),this.staggerTo(t,e,r,i,n,a,o)},t.staggerFromTo=function staggerFromTo(t,e,r,i,n,a,o,u){return i.startAt=r,ma(i).immediateRender=s(i.immediateRender),this.staggerTo(t,e,i,n,a,o,u)},t.render=function render(t,e,r){var i,n,a,s,o,u,h,l,f,d,p,c,_=this._time,m=this._dirty?this.totalDuration():this._tDur,g=this._dur,v=this!==I&&m-B<t&&0<=t?m:t<B?0:t,y=this._zTime<0!=t<0&&(this._initted||!g);if(v!==this._tTime||r||y){if(_!==this._time&&g&&(v+=this._time-_,t+=this._time-_),i=v,f=this._start,u=!(l=this._ts),y&&(g||(_=this._zTime),!t&&e||(this._zTime=t)),this._repeat&&(p=this._yoyo,o=g+this._rDelay,(g<(i=aa(v%o))||m===v)&&(i=g),(s=~~(v/o))&&s===v/o&&(i=g,s--),d=_t(this._tTime,o),!_&&this._tTime&&d!==s&&(d=s),p&&1&s&&(i=g-i,c=1),s!==d&&!this._lock)){var T=p&&1&d,b=T===(p&&1&s);if(s<d&&(T=!T),_=T?0:g,this._lock=1,this.render(_||(c?0:aa(s*o)),e,!g)._lock=0,!e&&this.parent&&bt(this,\"onRepeat\"),this.vars.repeatRefresh&&!c&&(this.invalidate()._lock=1),_!==this._time||u!=!this._ts)return this;if(b&&(this._lock=2,_=T?g+1e-4:-1e-4,this.render(_,!0),this.vars.repeatRefresh&&!c&&this.invalidate()),this._lock=0,!this._ts&&!u)return this;Ab(this,c)}if(this._hasPause&&!this._forcing&&this._lock<2&&(h=function _findNextPauseTween(t,e,r){var i;if(e<r)for(i=t._first;i&&i._start<=r;){if(!i._dur&&\"isPause\"===i.data&&i._start>e)return i;i=i._next}else for(i=t._last;i&&i._start>=r;){if(!i._dur&&\"isPause\"===i.data&&i._start<e)return i;i=i._prev}}(this,aa(_),aa(i)))&&(v-=i-(i=h._start)),this._tTime=v,this._time=i,this._act=!l,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t),_||!i||e||bt(this,\"onStart\"),_<=i&&0<=t)for(n=this._first;n;){if(a=n._next,(n._act||i>=n._start)&&n._ts&&h!==n){if(n.parent!==this)return this.render(t,e,r);if(n.render(0<n._ts?(i-n._start)*n._ts:(n._dirty?n.totalDuration():n._tDur)+(i-n._start)*n._ts,e,r),i!==this._time||!this._ts&&!u){h=0,a&&(v+=this._zTime=-B);break}}n=a}else{n=this._last;for(var w=t<0?t:i;n;){if(a=n._prev,(n._act||w<=n._end)&&n._ts&&h!==n){if(n.parent!==this)return this.render(t,e,r);if(n.render(0<n._ts?(w-n._start)*n._ts:(n._dirty?n.totalDuration():n._tDur)+(w-n._start)*n._ts,e,r),i!==this._time||!this._ts&&!u){h=0,a&&(v+=this._zTime=w?-B:B);break}}n=a}}if(h&&!e&&(this.pause(),h.render(_<=i?0:-B)._zTime=_<=i?1:-1,this._ts))return this._start=f,xa(this),this.render(t,e,r);this._onUpdate&&!e&&bt(this,\"onUpdate\",!0),(v===m&&m>=this.totalDuration()||!v&&_)&&(f!==this._start&&Math.abs(l)===Math.abs(this._ts)||this._lock||(!t&&g||!(v===m&&0<this._ts||!v&&this._ts<0)||qa(this,1),e||t<0&&!_||!v&&!_||(bt(this,v===m?\"onComplete\":\"onReverseComplete\",!0),!this._prom||v<m&&0<this.timeScale()||this._prom())))}return this},t.add=function add(t,e){var r=this;if(p(e)||(e=Ia(this,e)),!(t instanceof It)){if(J(t))return t.forEach(function(t){return r.add(t,e)}),ra(this);if(n(t))return this.addLabel(t,e);if(!o(t))return this;t=Xt.delayedCall(0,t)}return this!==t?Aa(this,t,e):this},t.getChildren=function getChildren(t,e,r,i){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===r&&(r=!0),void 0===i&&(i=-z);for(var n=[],a=this._first;a;)a._start>=i&&(a instanceof Xt?e&&n.push(a):(r&&n.push(a),t&&n.push.apply(n,a.getChildren(!0,e,r)))),a=a._next;return n},t.getById=function getById(t){for(var e=this.getChildren(1,1,1),r=e.length;r--;)if(e[r].vars.id===t)return e[r]},t.remove=function remove(t){return n(t)?this.removeLabel(t):o(t)?this.killTweensOf(t):(pa(this,t),t===this._recent&&(this._recent=this._last),ra(this))},t.totalTime=function totalTime(t,e){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=aa(Mt.time-(0<this._ts?t/this._ts:(this.totalDuration()-t)/-this._ts))),i.prototype.totalTime.call(this,t,e),this._forcing=0,this):this._tTime},t.addLabel=function addLabel(t,e){return this.labels[t]=Ia(this,e),this},t.removeLabel=function removeLabel(t){return delete this.labels[t],this},t.addPause=function addPause(t,e,r){var i=Xt.delayedCall(0,e||O,r);return i.data=\"isPause\",this._hasPause=1,Aa(this,i,Ia(this,t))},t.removePause=function removePause(t){var e=this._first;for(t=Ia(this,t);e;)e._start===t&&\"isPause\"===e.data&&qa(e),e=e._next},t.killTweensOf=function killTweensOf(t,e,r){for(var i=this.getTweensOf(t,r),n=i.length;n--;)Lt!==i[n]&&i[n].kill(t,e);return this},t.getTweensOf=function getTweensOf(t,e){for(var r,i=[],n=yt(t),a=this._first,s=p(e);a;)a instanceof Xt?ba(a._targets,n)&&(s?(!Lt||a._initted&&a._ts)&&a.globalTime(0)<=e&&a.globalTime(a.totalDuration())>e:!e||a.isActive())&&i.push(a):(r=a.getTweensOf(n,e)).length&&i.push.apply(i,r),a=a._next;return i},t.tweenTo=function tweenTo(t,e){e=e||{};var r=this,i=Ia(r,t),n=e.startAt,a=e.onStart,s=e.onStartParams,o=Xt.to(r,ha(e,{ease:\"none\",lazy:!1,time:i,duration:e.duration||Math.abs((i-(n&&\"time\"in n?n.time:r._time))/r.timeScale())||B,onStart:function onStart(){r.pause();var t=e.duration||Math.abs((i-r._time)/r.timeScale());o._dur!==t&&Fa(o,t).render(o._time,!0,!0),a&&a.apply(o,s||[])}}));return o},t.tweenFromTo=function tweenFromTo(t,e,r){return this.tweenTo(e,ha({startAt:{time:Ia(this,t)}},r))},t.recent=function recent(){return this._recent},t.nextLabel=function nextLabel(t){return void 0===t&&(t=this._time),db(this,Ia(this,t))},t.previousLabel=function previousLabel(t){return void 0===t&&(t=this._time),db(this,Ia(this,t),1)},t.currentLabel=function currentLabel(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+B)},t.shiftChildren=function shiftChildren(t,e,r){void 0===r&&(r=0);for(var i,n=this._first,a=this.labels;n;)n._start>=r&&(n._start+=t),n=n._next;if(e)for(i in a)a[i]>=r&&(a[i]+=t);return ra(this)}
2,t.invalidate=function invalidate(){var t=this._first;for(this._lock=0;t;)t.invalidate(),t=t._next;return i.prototype.invalidate.call(this)},t.clear=function clear(t){void 0===t&&(t=!0);for(var e,r=this._first;r;)e=r._next,this.remove(r),r=e;return this._time=this._tTime=this._pTime=0,t&&(this.labels={}),ra(this)},t.totalDuration=function totalDuration(t){var e,r,i,n,a=0,s=this,o=s._last,u=z;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-t:t));if(s._dirty){for(n=s.parent;o;)e=o._prev,o._dirty&&o.totalDuration(),u<(i=o._start)&&s._sort&&o._ts&&!s._lock?(s._lock=1,Aa(s,o,i-o._delay,1)._lock=0):u=i,i<0&&o._ts&&(a-=i,(!n&&!s._dp||n&&n.smoothChildTiming)&&(s._start+=i/s._ts,s._time-=i,s._tTime-=i),s.shiftChildren(-i,!1,-Infinity),u=0),a<(r=xa(o))&&o._ts&&(a=r),o=e;Fa(s,s===I&&s._time>a?s._time:a,1),s._dirty=0}return s._tDur},Timeline.updateRoot=function updateRoot(t){if(I._ts&&(ea(I,wa(t,I)),d=Mt.frame),Mt.frame>=ft){ft+=U.autoSleep||120;var e=I._first;if((!e||!e._ts)&&U.autoSleep&&Mt._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||Mt.sleep()}}},Timeline}(It);ha(Rt.prototype,{_lock:0,_hasPause:0,_forcing:0});function Mb(t,e,i,a,s,u){var h,l,f,d;if(ht[t]&&!1!==(h=new ht[t]).init(s,h.rawVars?e[t]:function _processVars(t,e,i,a,s){if(o(t)&&(t=Yt(t,s,e,i,a)),!r(t)||t.style&&t.nodeType||J(t))return n(t)?Yt(t,s,e,i,a):t;var u,h={};for(u in t)h[u]=Yt(t[u],s,e,i,a);return h}(e[t],a,s,u,i),i,a,u)&&(i._pt=l=new ee(i._pt,s,t,0,1,h.render,h,0,h.priority),i!==c))for(f=i._ptLookup[i._targets.indexOf(s)],d=h._props.length;d--;)f[h._props[d]]=l;return h}var Lt,Bt=function _addPropTween(t,e,r,i,a,s,u,h,l){o(i)&&(i=i(a||0,t,s));var f,d=t[e],p=\"get\"!==r?r:o(d)?l?t[e.indexOf(\"set\")||!o(t[\"get\"+e.substr(3)])?e:\"get\"+e.substr(3)](l):t[e]():d,c=o(d)?l?jt:Vt:Zt;if(n(i)&&(~i.indexOf(\"random(\")&&(i=ab(i)),\"=\"===i.charAt(1)&&(i=parseFloat(p)+parseFloat(i.substr(2))*(\"-\"===i.charAt(0)?-1:1)+(La(p)||0))),p!==i)return isNaN(p*i)?(d||e in t||L(e,i),function _addComplexStringPropTween(t,e,r,i,n,a,s){var o,u,h,l,f,d,p,c,_=new ee(this._pt,t,e,0,1,Wt,null,n),m=0,g=0;for(_.b=r,_.e=i,r+=\"\",(p=~(i+=\"\").indexOf(\"random(\"))&&(i=ab(i)),a&&(a(c=[r,i],t,e),r=c[0],i=c[1]),u=r.match(et)||[];o=et.exec(i);)l=o[0],f=i.substring(m,o.index),h?h=(h+1)%5:\"rgba(\"===f.substr(-5)&&(h=1),l!==u[g++]&&(d=parseFloat(u[g-1])||0,_._pt={_next:_._pt,p:f||1===g?f:\",\",s:d,c:\"=\"===l.charAt(1)?parseFloat(l.substr(2))*(\"-\"===l.charAt(0)?-1:1):parseFloat(l)-d,m:h&&h<4?Math.round:0},m=et.lastIndex);return _.c=m<i.length?i.substring(m,i.length):\"\",_.fp=s,(it.test(i)||p)&&(_.e=0),this._pt=_}.call(this,t,e,p,i,c,h||U.stringFilter,l)):(f=new ee(this._pt,t,e,+p||0,i-(p||0),\"boolean\"==typeof d?Jt:Qt,0,c),l&&(f.fp=l),u&&f.modifier(u,this,t),this._pt=f)},qt=function _initTween(t,e){var r,i,n,a,o,u,h,l,f,d,p,c,_,m=t.vars,g=m.ease,v=m.startAt,y=m.immediateRender,T=m.lazy,b=m.onUpdate,w=m.onUpdateParams,x=m.callbackScope,k=m.runBackwards,O=m.yoyoEase,M=m.keyframes,C=m.autoRevert,A=t._dur,P=t._startAt,S=t._targets,D=t.parent,F=D&&\"nested\"===D.data?D.parent._targets:S,z=\"auto\"===t._overwrite,E=t.timeline;if(!E||M&&g||(g=\"none\"),t._ease=Ft(g,R.ease),t._yEase=O?Dt(Ft(!0===O?g:O,R.ease)):0,O&&t._yoyo&&!t._repeat&&(O=t._yEase,t._yEase=t._ease,t._ease=O),!E){if(c=(l=S[0]?Z(S[0]).harness:0)&&m[l.prop],r=la(m,st),P&&P.render(-1,!0).kill(),v){if(qa(t._startAt=Xt.set(S,ha({data:\"isStart\",overwrite:!1,parent:D,immediateRender:!0,lazy:s(T),startAt:null,delay:0,onUpdate:b,onUpdateParams:w,callbackScope:x,stagger:0},v))),y)if(0<e)C||(t._startAt=0);else if(A&&!(e<0&&P))return void(t._zTime=e)}else if(k&&A)if(P)C||(t._startAt=0);else if(e&&(y=!1),n=ha({overwrite:!1,data:\"isFromStart\",lazy:y&&s(T),immediateRender:y,stagger:0,parent:D},r),c&&(n[l.prop]=c),qa(t._startAt=Xt.set(S,n)),y){if(!e)return}else _initTween(t._startAt,B);for(t._pt=0,T=A&&s(T)||T&&!A,i=0;i<S.length;i++){if(h=(o=S[i])._gsap||Y(S)[i]._gsap,t._ptLookup[i]=d={},ut[h.id]&&da(),p=F===S?i:F.indexOf(o),l&&!1!==(f=new l).init(o,c||r,t,p,F)&&(t._pt=a=new ee(t._pt,o,f.name,0,1,f.render,f,0,f.priority),f._props.forEach(function(t){d[t]=a}),f.priority&&(u=1)),!l||c)for(n in r)ht[n]&&(f=Mb(n,r,t,p,o,F))?f.priority&&(u=1):d[n]=a=Bt.call(t,o,n,\"get\",r[n],p,F,0,m.stringFilter);t._op&&t._op[i]&&t.kill(o,t._op[i]),z&&t._pt&&(Lt=t,I.killTweensOf(o,d,t.globalTime(0)),_=!t.parent,Lt=0),t._pt&&T&&(ut[h.id]=1)}u&&te(t),t._onInit&&t._onInit(t)}t._from=!E&&!!m.runBackwards,t._onUpdate=b,t._initted=(!t._op||t._pt)&&!_},Yt=function _parseFuncOrString(t,e,r,i,a){return o(t)?t.call(e,r,i,a):n(t)&&~t.indexOf(\"random(\")?ab(t):t},Nt=pt+\"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase\",Ut=(Nt+\",id,stagger,delay,duration,paused,scrollTrigger\").split(\",\"),Xt=function(D){function Tween(t,e,i,n){var a;\"number\"==typeof e&&(i.duration=e,e=i,i=null);var o,h,l,f,d,c,_,m,g=(a=D.call(this,n?e:ma(e),i)||this).vars,v=g.duration,y=g.delay,T=g.immediateRender,b=g.stagger,w=g.overwrite,x=g.keyframes,k=g.defaults,C=g.scrollTrigger,A=g.yoyoEase,P=a.parent,S=(J(t)?p(t[0]):\"length\"in e)?[t]:yt(t);if(a._targets=S.length?Y(S):M(\"GSAP target \"+t+\" not found. https://greensock.com\",!U.nullTargetWarn)||[],a._ptLookup=[],a._over
2write=w,x||b||u(v)||u(y)){if(e=a.vars,(o=a.timeline=new Rt({data:\"nested\",defaults:k||{}})).kill(),o.parent=_assertThisInitialized(a),x)ha(o.vars.defaults,{ease:\"none\"}),x.forEach(function(t){return o.to(S,t,\">\")});else{if(f=S.length,_=b?Sa(b):O,r(b))for(d in b)~Nt.indexOf(d)&&((m=m||{})[d]=b[d]);for(h=0;h<f;h++){for(d in l={},e)Ut.indexOf(d)<0&&(l[d]=e[d]);l.stagger=0,A&&(l.yoyoEase=A),m&&ct(l,m),c=S[h],l.duration=+Yt(v,_assertThisInitialized(a),h,c,S),l.delay=(+Yt(y,_assertThisInitialized(a),h,c,S)||0)-a._delay,!b&&1===f&&l.delay&&(a._delay=y=l.delay,a._start+=y,l.delay=0),o.to(c,l,_(h,c,S))}o.duration()?v=y=0:a.timeline=0}v||a.duration(v=o.duration())}else a.timeline=0;return!0===w&&(Lt=_assertThisInitialized(a),I.killTweensOf(S),Lt=0),P&&za(P,_assertThisInitialized(a)),(T||!v&&!x&&a._start===aa(P._time)&&s(T)&&function _hasNoPausedAncestors(t){return!t||t._ts&&_hasNoPausedAncestors(t.parent)}(_assertThisInitialized(a))&&\"nested\"!==P.data)&&(a._tTime=-B,a.render(Math.max(0,-y))),C&&Ba(_assertThisInitialized(a),C),a}_inheritsLoose(Tween,D);var t=Tween.prototype;return t.render=function render(t,e,r){var i,n,a,s,o,u,h,l,f,d=this._time,p=this._tDur,c=this._dur,_=p-B<t&&0<=t?p:t<B?0:t;if(c){if(_!==this._tTime||!t||r||this._startAt&&this._zTime<0!=t<0){if(i=_,l=this.timeline,this._repeat){if(s=c+this._rDelay,(c<(i=aa(_%s))||p===_)&&(i=c),(a=~~(_/s))&&a===_/s&&(i=c,a--),(u=this._yoyo&&1&a)&&(f=this._yEase,i=c-i),o=_t(this._tTime,s),i===d&&!r&&this._initted)return this;a!==o&&(l&&this._yEase&&Ab(l,u),!this.vars.repeatRefresh||u||this._lock||(this._lock=r=1,this.render(aa(s*a),!0).invalidate()._lock=0))}if(!this._initted){if(Ca(this,t<0?t:i,r,e))return this._tTime=0,this;if(c!==this._dur)return this.render(t,e,r)}for(this._tTime=_,this._time=i,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=h=(f||this._ease)(i/c),this._from&&(this.ratio=h=1-h),!i||d||e||bt(this,\"onStart\"),n=this._pt;n;)n.r(h,n.d),n=n._next;l&&l.render(t<0?t:!i&&u?-B:l._dur*h,e,r)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(t<0&&this._startAt&&this._startAt.render(t,!0,r),bt(this,\"onUpdate\")),this._repeat&&a!==o&&this.vars.onRepeat&&!e&&this.parent&&bt(this,\"onRepeat\"),_!==this._tDur&&_||this._tTime!==_||(t<0&&this._startAt&&!this._onUpdate&&this._startAt.render(t,!0,!0),!t&&c||!(_===this._tDur&&0<this._ts||!_&&this._ts<0)||qa(this,1),e||t<0&&!d||!_&&!d||(bt(this,_===p?\"onComplete\":\"onReverseComplete\",!0),!this._prom||_<p&&0<this.timeScale()||this._prom()))}}else!function _renderZeroDurationTween(t,e,r,i){var n,a,s=t.ratio,o=e<0||!e&&s&&!t._start&&t._zTime>B&&!t._dp._lock||t._ts<0||t._dp._ts<0?0:1,u=t._rDelay,h=0;if(u&&t._repeat&&(h=gt(0,t._tDur,e),_t(h,u)!==(a=_t(t._tTime,u))&&(s=1-o,t.vars.repeatRefresh&&t._initted&&t.invalidate())),t._initted||!Ca(t,e,i,r))if(o!==s||i||t._zTime===B||!e&&t._zTime){for(a=t._zTime,t._zTime=e||(r?B:0),r=r||e&&!a,t.ratio=o,t._from&&(o=1-o),t._time=0,t._tTime=h,r||bt(t,\"onStart\"),n=t._pt;n;)n.r(o,n.d),n=n._next;t._startAt&&e<0&&t._startAt.render(e,!0,!0),t._onUpdate&&!r&&bt(t,\"onUpdate\"),h&&t._repeat&&!r&&t.parent&&bt(t,\"onRepeat\"),(e>=t._tDur||e<0)&&t.ratio===o&&(o&&qa(t,1),r||(bt(t,o?\"onComplete\":\"onReverseComplete\",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,r);return this},t.targets=function targets(){return this._targets}
2,t.invalidate=function invalidate(){return this._pt=this._op=this._startAt=this._onUpdate=this._act=this._lazy=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(),D.prototype.invalidate.call(this)},t.kill=function kill(t,e){if(void 0===e&&(e=\"all\"),!(t||e&&\"all\"!==e)&&(this._lazy=0,this.parent))return fb(this);if(this.timeline){var r=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,Lt&&!0!==Lt.vars.overwrite)._first||fb(this),this.parent&&r!==this.timeline.totalDuration()&&Fa(this,this._dur*this.timeline._tDur/r),this}var i,a,s,o,u,h,l,f=this._targets,d=t?yt(t):f,p=this._ptLookup,c=this._pt;if((!e||\"all\"===e)&&function _arraysMatch(t,e){for(var r=t.length,i=r===e.length;i&&r--&&t[r]===e[r];);return r<0}(f,d))return\"all\"===e&&(this._pt=0),fb(this);for(i=this._op=this._op||[],\"all\"!==e&&(n(e)&&(u={},_(e,function(t){return u[t]=1}),e=u),e=function _addAliasesToVars(t,e){var r,i,n,a,s=t[0]?Z(t[0]).harness:0,o=s&&s.aliases;if(!o)return e;for(i in r=ct({},e),o)if(i in r)for(n=(a=o[i].split(\",\")).length;n--;)r[a[n]]=r[i];return r}(f,e)),l=f.length;l--;)if(~d.indexOf(f[l]))for(u in a=p[l],\"all\"===e?(i[l]=e,o=a,s={}):(s=i[l]=i[l]||{},o=e),o)(h=a&&a[u])&&(\"kill\"in h.d&&!0!==h.d.kill(u)||pa(this,h,\"_pt\"),delete a[u]),\"all\"!==s&&(s[u]=1);return this._initted&&!this._pt&&c&&fb(this),this},Tween.to=function to(t,e,r){return new Tween(t,e,r)},Tween.from=function from(t,e){return new Tween(t,ca(arguments,1))},Tween.delayedCall=function delayedCall(t,e,r,i){return new Tween(e,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:e,onReverseComplete:e,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:i})},Tween.fromTo=function fromTo(t,e,r){return new Tween(t,ca(arguments,2))},Tween.set=function set(t,e){return e.duration=0,e.repeatDelay||(e.repeat=0),new Tween(t,e)},Tween.killTweensOf=function killTweensOf(t,e,r){return I.killTweensOf(t,e,r)},Tween}(It);ha(Xt.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),_(\"staggerTo,staggerFrom,staggerFromTo\",function(r){Xt[r]=function(){var t=new Rt,e=vt.call(arguments,0);return e.splice(\"staggerFromTo\"===r?5:4,0,0),t[r].apply(t,e)}});function Xb(t,e,r){return t.setAttribute(e,r)}function dc(t,e,r,i){i.mSet(t,e,i.m.call(i.tween,r,i.mt),i)}var Zt=function _setterPlain(t,e,r){return t[e]=r},Vt=function _setterFunc(t,e,r){return t[e](r)},jt=function _setterFuncWithParam(t,e,r,i){return t[e](i.fp,r)},Gt=function _getSetter(t,e){return o(t[e])?Vt:q(t[e])&&t.setAttribute?Xb:Zt},Qt=function _renderPlain(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4,e)},Jt=function _renderBoolean(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},Wt=function _renderComplexString(t,e){var r=e._pt,i=\"\";if(!t&&e.b)i=e.b;else if(1===t&&e.e)i=e.e;else{for(;r;)i=r.p+(r.m?r.m(r.s+r.c*t):Math.round(1e4*(r.s+r.c*t))/1e4)+i,r=r._next;i+=e.c}e.set(e.t,e.p,i,e)},$t=function _renderPropTweens(t,e){for(var r=e._pt;r;)r.r(t,r.d),r=r._next},Ht=function _addPluginModifier(t,e,r,i){for(var n,a=this._pt;a;)n=a._next,a.p===i&&a.modifier(t,e,r),a=n},Kt=function _killPropTweensOf(t){for(var e,r,i=this._pt;i;)r=i._next,i.p===t&&!i.op||i.op===t?pa(this,i,\"_pt\"):i.dep||(e=1),i=r;return!e},te=function _sortPropTweensByPriority(t){for(var e,r,i,n,a=t._pt;a;){for(e=a._next,r=i;r&&r.pr>a.pr;)r=r._next;(a._prev=r?r._prev:n)?a._prev._next=a:i=a,(a._next=r)?r._prev=a:n=a,a=e}t._pt=i},ee=(PropTween.prototype.modifier=function modifier(t,e,r){this.mSet=this.mSet||this.set,this.set=dc,this.m=t,this.mt=r,this.tween=e},PropTween);function PropTween(t,e,r,i,n,a,s,o,u){this.t=e,this.s=i,this.c=n,this.p=r,this.r=a||Qt,this.d=s||this,this.set=o||Zt,this.pr=u||0,(this._next=t)&&(t._prev=this)}_(pt+\"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger\",function(t){return st[t]=1}),at.TweenMax=at.TweenLite=Xt,at.TimelineLite=at.TimelineMax=Rt,I=new Rt({sortChildren:!1,defaults:R,autoRemoveChildren:!0,id:\"root\",smoothChildTiming:!0}),U.stringFilter=qb;var re={registerPlugin:function registerPlugin(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];e.forEach(function(t){return function _createPlugin(t){var e=(t=!t.name&&t.default||t).name,r=o(t),i=e&&!r&&t.init?function(){this._props=[]}:t,n={init:O,render:$t,add:Bt,kill:Kt,modifier:Ht,rawVars:0},a={targetTest:0,get:0,getSetter:Gt,aliases:{},register:0};
vendor: 5,710 bytes, line 2
2if(Ct(),t!==i){if(ht[e])return;ha(i,ha(la(t,n),a)),ct(i.prototype,ct(n,la(t,a))),ht[i.prop=e]=i,t.targetTest&&(dt.push(i),st[e]=1),e=(\"css\"===e?\"CSS\":e.charAt(0).toUpperCase()+e.substr(1))+\"Plugin\"}N(e,i),t.register&&t.register(ie,i,ee)}(t)})},timeline:function timeline(t){return new Rt(t)},getTweensOf:function getTweensOf(t,e){return I.getTweensOf(t,e)},getProperty:function getProperty(i,t,e,r){n(i)&&(i=yt(i)[0]);var a=Z(i||{}).get,s=e?ga:fa;return\"native\"===e&&(e=\"\"),i?t?s((ht[t]&&ht[t].get||a)(i,t,e,r)):function(t,e,r){return s((ht[t]&&ht[t].get||a)(i,t,e,r))}:i},quickSetter:function quickSetter(r,e,i){if(1<(r=yt(r)).length){var n=r.map(function(t){return ie.quickSetter(t,e,i)}),a=n.length;return function(t){for(var e=a;e--;)n[e](t)}}r=r[0]||{};var s=ht[e],o=Z(r),u=o.harness&&(o.harness.aliases||{})[e]||e,h=s?function(t){var e=new s;c._pt=0,e.init(r,i?t+i:t,c,0,[r]),e.render(1,e),c._pt&&$t(1,c)}:o.set(r,u);return s?h:function(t){return h(r,u,i?t+i:t,o,1)}},isTweening:function isTweening(t){return 0<I.getTweensOf(t,!0).length},defaults:function defaults(t){return t&&t.ease&&(t.ease=Ft(t.ease,R.ease)),ka(R,t||{})},config:function config(t){return ka(U,t||{})},registerEffect:function registerEffect(t){var n=t.name,i=t.effect,e=t.plugins,a=t.defaults,s=t.extendTimeline;(e||\"\").split(\",\").forEach(function(t){return t&&!ht[t]&&!at[t]&&M(n+\" effect requires \"+t+\" plugin.\")}),lt[n]=function(t,e,r){return i(yt(t),ha(e||{},a),r)},s&&(Rt.prototype[n]=function(t,e,i){return this.add(lt[n](t,r(e)?e:(i=e)&&{},this),i)})},registerEase:function registerEase(t,e){At[t]=Ft(e)},parseEase:function parseEase(t,e){return arguments.length?Ft(t,e):At},getById:function getById(t){return I.getById(t)},exportRoot:function exportRoot(t,e){void 0===t&&(t={});var r,i,n=new Rt(t);for(n.smoothChildTiming=s(t.smoothChildTiming),I.remove(n),n._dp=0,n._time=n._tTime=I._time,r=I._first;r;)i=r._next,!e&&!r._dur&&r instanceof Xt&&r.vars.onComplete===r._targets[0]||Aa(n,r,r._start-r._delay),r=i;return Aa(I,n,0),n},utils:{wrap:function wrap(e,t,r){var i=t-e;return J(e)?Za(e,wrap(0,e.length),t):Ja(r,function(t){return(i+(t-e)%i)%i+e})},wrapYoyo:function wrapYoyo(e,t,r){var i=t-e,n=2*i;return J(e)?Za(e,wrapYoyo(0,e.length-1),t):Ja(r,function(t){return e+(i<(t=(n+(t-e)%n)%n||0)?n-t:t)})},distribute:Sa,random:Va,snap:Ua,normalize:function normalize(t,e,r){return Tt(t,e,0,1,r)},getUnit:La,clamp:function clamp(e,r,t){return Ja(t,function(t){return gt(e,r,t)})},splitColor:lb,toArray:yt,mapRange:Tt,pipe:function pipe(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(t){return e.reduce(function(t,e){return e(t)},t)}},unitize:function unitize(e,r){return function(t){return e(parseFloat(t))+(r||La(t))}},interpolate:function interpolate(e,r,t,i){var a=isNaN(e+r)?0:function(t){return(1-t)*e+t*r};if(!a){var s,o,u,h,l,f=n(e),d={};if(!0===t&&(i=1)&&(t=null),f)e={p:e},r={p:r};else if(J(e)&&!J(r)){for(u=[],h=e.length,l=h-2,o=1;o<h;o++)u.push(interpolate(e[o-1],e[o]));h--,a=function func(t){t*=h;var e=Math.min(l,~~t);return u[e](t-e)},t=r}else i||(e=ct(J(e)?[]:{},e));if(!u){for(s in r)Bt.call(d,e,s,\"get\",r[s]);a=function func(t){return $t(t,d)||(f?e.p:e)}}}return Ja(t,a)},shuffle:Ra},install:K,effects:lt,ticker:Mt,updateRoot:Rt.updateRoot,plugins:ht,globalTimeline:I,core:{PropTween:ee,globals:N,Tween:Xt,Timeline:Rt,Animation:It,getCache:Z,_removeLinkedListItem:pa}};_(\"to,from,fromTo,delayedCall,set,killTweensOf\",function(t){return re[t]=Xt[t]}),Mt.add(Rt.updateRoot),c=re.to({},{duration:0});function hc(t,e){for(var r=t._pt;r&&r.p!==e&&r.op!==e&&r.fp!==e;)r=r._next;return r}function jc(t,a){return{name:t,rawVars:1,init:function init(t,i,e){e._onInit=function(t){var e,r;if(n(i)&&(e={},_(i,function(t){return e[t]=1}),i=e),a){for(r in e={},i)e[r]=a(i[r]);i=e}!function _addModifiers(t,e){var r,i,n,a=t._targets;for(r in e)for(i=a.length;i--;)(n=(n=t._ptLookup[i][r])&&n.d)&&(n._pt&&(n=hc(n,r)),n&&n.modifier&&n.modifier(e[r],t,a[i],r))}(t,i)}}}}var ie=re.registerPlugin({name:\"attr\",init:function init(t,e,r,i,n){var a,s;for(a in e)(s=this.add(t,\"setAttribute\",(t.getAttribute(a)||0)+\"\",e[a],i,n,0,0,a))&&(s.op=a),this._props.push(a)}},{name:\"endArray\",init:function init(t,e){for(var r=e.length;r--;)this.add(t,r,t[r]||0,e[r])}},jc(\"roundProps\",Ta),jc(\"modifiers\"),jc(\"snap\",Ua))||re;Xt.version=Rt.version=ie.version=\"3.4.2\",f=1,t()&&Ct();function Uc(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)}function Vc(t,e){return e.set(e.t,e.p,1===t?e.e:Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)}function Wc(t,e){return e.set(e.t,e.p,t?Math.round(1e4*(e.s+e.c*t))/1e4+e.u:e.b,e)}function Xc(t,e){var r=e.s+e.c*t;e.set(e.t,e.p,~~(r+(r<0?-.5:.5))+e.u,e)}function Yc(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)}function Zc(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)}function $c(t,e,r){return t.style[e]=r}function _c(t,e,r){return t.style.setProperty(e,r)}function ad(t,e,r){return t._gsap[e]=r}function bd(t,e,r){return t._gsap.scaleX=t._gsap.scaleY=r}function cd(t,e,r,i,n){var a=t._gsap;a.scaleX=a.scaleY=r,a.renderTransform(n,a)}function dd(t,e,r,i,n){var a=t._gsap;a[e]=r,a.renderTransform(n,a)}function hd(t,e){var r=ae.createElementNS?ae.createElementNS((e||\"http://www.w3.org/1999/xhtml\").replace(/^https/,\"http\"),t):ae.createElement(t);return r.style?r:ae.createElement(t)}function id(t,e,r){var i=getComputedStyle(t);return i[e]||i.getPropertyValue(e.replace(Ee,\"-$1\").toLowerCase())||i.getPropertyValue(e)||!r&&id(t,Ne(e)||e,1)||\"\"}function ld(){(function _windowExists(){return\"undefined\"!=typeof window})()&&window.document&&(ne=window,ae=ne.document,se=ae.documentElement,ue=hd(\"div\")||{style:{}}
2,he=hd(\"div\"),Be=Ne(Be),qe=Be+\"Origin\",ue.style.cssText=\"border-width:0;line-height:0;position:absolute;padding:0\",fe=!!Ne(\"perspective\"),oe=1)}function md(t){var e,r=hd(\"svg\",this.ownerSVGElement&&this.ownerSVGElement.getAttribute(\"xmlns\")||\"http://www.w3.org/2000/svg\"),i=this.parentNode,n=this.nextSibling,a=this.style.cssText;if(se.appendChild(r),r.appendChild(this),this.style.display=\"block\",t)try{e=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=md}catch(t){}else this._gsapBBox&&(e=this._gsapBBox());return i&&(n?i.insertBefore(this,n):i.appendChild(this)),se.removeChild(r),this.style.cssText=a,e}function nd(t,e){for(var r=e.length;r--;)if(t.hasAttribute(e[r]))return t.getAttribute(e[r])}function od(e){var r;try{r=e.getBBox()}catch(t){r=md.call(e,!0)}return r&&(r.width||r.height)||e.getBBox===md||(r=md.call(e,!0)),!r||r.width||r.x||r.y?r:{x:+nd(e,[\"x\",\"cx\",\"x1\"])||0,y:+nd(e,[\"y\",\"cy\",\"y1\"])||0,width:0,height:0}}function pd(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!od(t))}function qd(t,e){if(e){var r=t.style;e in Se&&e!==qe&&(e=Be),r.removeProperty?(\"ms\"!==e.substr(0,2)&&\"webkit\"!==e.substr(0,6)||(e=\"-\"+e),r.removeProperty(e.replace(Ee,\"-$1\").toLowerCase())):r.removeAttribute(e)}}function rd(t,e,r,i,n,a){var s=new ee(t._pt,e,r,0,1,a?Zc:Yc);return(t._pt=s).b=i,s.e=n,t._props.push(r),s}function td(t,e,r,i){var n,a,s,o,u=parseFloat(r)||0,h=(r+\"\").trim().substr((u+\"\").length)||\"px\",l=ue.style,f=Ie.test(e),d=\"svg\"===t.tagName.toLowerCase(),p=(d?\"client\":\"offset\")+(f?\"Width\":\"Height\"),c=\"px\"===i,_=\"%\"===i;return i===h||!u||Ue[i]||Ue[h]?u:(\"px\"===h||c||(u=td(t,e,r,\"px\")),o=t.getCTM&&pd(t),_&&(Se[e]||~e.indexOf(\"adius\"))?aa(u/(o?t.getBBox()[f?\"width\":\"height\"]:t[p])*100):(l[f?\"width\":\"height\"]=100+(c?h:i),a=~e.indexOf(\"adius\")||\"em\"===i&&t.appendChild&&!d?t:t.parentNode,o&&(a=(t.ownerSVGElement||{}).parentNode),a&&a!==ae&&a.appendChild||(a=ae.body),(s=a._gsap)&&_&&s.width&&f&&s.time===Mt.time?aa(u/s.width*100):(!_&&\"%\"!==h||(l.position=id(t,\"position\")),a===t&&(l.position=\"static\"),a.appendChild(ue),n=ue[p],a.removeChild(ue),l.position=\"absolute\",f&&_&&((s=Z(a)).time=Mt.time,s.width=a[p]),aa(c?n*u/100:n&&u?100/n*u:0))))}function ud(t,e,r,i){var n;return oe||ld(),e in Le&&\"transform\"!==e&&~(e=Le[e]).indexOf(\",\")&&(e=e.split(\",\")[0]),Se[e]&&\"transform\"!==e?(n=Ge(t,i),n=\"transformOrigin\"!==e?n[e]:Qe(id(t,qe))+\" \"+n.zOrigin+\"px\"):(n=t.style[e])&&\"auto\"!==n&&!i&&!~(n+\"\").indexOf(\"calc(\")||(n=Ze[e]&&Ze[e](t,e,r)||id(t,e)||$(t,e)||(\"opacity\"===e?1:0)),r&&!~(n+\"\").indexOf(\" \")?td(t,e,n,r)+r:n}function vd(t,e,r,i){if(!r||\"none\"===r){var n=Ne(e,t,1),a=n&&id(t,n,1);a&&a!==r?(e=n,r=a):\"borderColor\"===e&&(r=id(t,\"borderTopColor\"))}var s,o,u,h,l,f,d,p,c,_,m,g,v=new ee(this._pt,t.style,e,0,1,Wt),y=0,T=0;if(v.b=r,v.e=i,r+=\"\",\"auto\"===(i+=\"\")&&(t.style[e]=i,i=id(t,e)||i,t.style[e]=r),qb(s=[r,i]),i=s[1],u=(r=s[0]).match(tt)||[],(i.match(tt)||[]).length){for(;o=tt.exec(i);)d=o[0],c=i.substring(y,o.index),l?l=(l+1)%5:\"rgba(\"!==c.substr(-5)&&\"hsla(\"!==c.substr(-5)||(l=1),d!==(f=u[T++]||\"\")&&(h=parseFloat(f)||0,m=f.substr((h+\"\").length),(g=\"=\"===d.charAt(1)?+(d.charAt(0)+\"1\"):0)&&(d=d.substr(2)),p=parseFloat(d),_=d.substr((p+\"\").length),y=tt.lastIndex-_.length,_||(_=_||U.units[e]||m,y===i.length&&(i+=_,v.e+=_)),m!==_&&(h=td(t,e,f,_)||0),v._pt={_next:v._pt,p:c||1===T?c:\",\",s:h,c:g?g*p:p-h,m:l&&l<4?Math.round:0});v.c=y<i.length?i.substring(y,i.length):\"\"}else v.r=\"display\"===e&&\"none\"===i?Zc:Yc;return it.test(i)&&(v.e=0),this._pt=v}function xd(t){var e=t.split(\" \"),r=e[0],i=e[1]||\"50%\";return\"top\"!==r&&\"bottom\"!==r&&\"left\"!==i&&\"right\"!==i||(t=r,r=i,i=t),e[0]=Xe[r]||r,e[1]=Xe[i]||i,e.join(\" \")}function yd(t,e){if(e.tween&&e.tween._time===e.tween._dur){var r,i,n,a=e.t,s=a.style,o=e.u,u=a._gsap;if(\"all\"===o||!0===o)s.cssText=\"\",i=1;else for(n=(o=o.split(\",\")).length;-1<--n;)r=o[n],Se[r]&&(i=1,r=\"transformOrigin\"===r?qe:Be),qd(a,r);i&&(qd(a,Be),u&&(u.svg&&a.removeAttribute(\"transform\"),Ge(a,1),u.uncache=1))}}function Cd(t){return\"matrix(1, 0, 0, 1, 0, 0)\"===t||\"none\"===t||!t}function Dd(t){var e=id(t,Be);return Cd(e)?Ve:e.substr(7).match(H).map(aa)}function Ed(t,e){var r,i,n,a,s=t._gsap||Z(t),o=t.style,u=Dd(t);return s.svg&&t.getAttribute(\"transform\")?\"1,0,0,1,0,0\"===(u=[(n=t.transform.baseVal.consolidate().matrix).a,n.b,n.c,n.d,n.e,n.f]).join(\",\")?Ve:u:(u!==Ve||t.offsetParent||t===se||s.svg||(n=o.display,o.display=\"block\",(r=t.parentNode)&&t.offsetParent||(a=1,i=t.nextSibling,se.appendChild(t)),u=Dd(t),n?o.display=n:qd(t,\"display\"),a&&(i?r.insertBefore(t,i):r?r.appendChild(t):se.removeChild(t))),e&&6<u.length?[u[0],u[1],u[4],u[5],u[12],u[13]]:u)}function Fd(t,e,r,i,n,a){var s,o,u,h=t._gsap,l=n||Ed(t,!0),f=h.xOrigin||0,d=h.yOrigin||0,p=
2h.xOffset||0,c=h.yOffset||0,_=l[0],m=l[1],g=l[2],v=l[3],y=l[4],T=l[5],b=e.split(\" \"),w=parseFloat(b[0])||0,x=parseFloat(b[1])||0;r?l!==Ve&&(o=_*v-m*g)&&(u=w*(-m/o)+x*(_/o)-(_*T-m*y)/o,w=w*(v/o)+x*(-g/o)+(g*T-v*y)/o,x=u):(w=(s=od(t)).x+(~b[0].indexOf(\"%\")?w/100*s.width:w),x=s.y+(~(b[1]||b[0]).indexOf(\"%\")?x/100*s.height:x)),i||!1!==i&&h.smooth?(y=w-f,T=x-d,h.xOffset=p+(y*_+T*g)-y,h.yOffset=c+(y*m+T*v)-T):h.xOffset=h.yOffset=0,h.xOrigin=w,h.yOrigin=x,h.smooth=!!i,h.origin=e,h.originIsAbsolute=!!r,t.style[qe]=\"0px 0px\",a&&(rd(a,h,\"xOrigin\",f,w),rd(a,h,\"yOrigin\",d,x),rd(a,h,\"xOffset\",p,h.xOffset),rd(a,h,\"yOffset\",c,h.yOffset)),t.setAttribute(\"data-svg-origin\",w+\" \"+x)}function Id(t,e,r){var i=La(e);return aa(parseFloat(e)+parseFloat(td(t,\"x\",r+\"px\",i)))+i}function Pd(t,e,r,i,a,s){var o,u,h=360,l=n(a),f=parseFloat(a)*(l&&~a.indexOf(\"rad\")?De:1),d=s?f*s:f-i,p=i+d+\"deg\";return l&&(\"short\"===(o=a.split(\"_\")[1])&&(d%=h)!==d%180&&(d+=d<0?h:-h),\"cw\"===o&&d<0?d=(d+36e9)%h-~~(d/h)*h:\"ccw\"===o&&0<d&&(d=(d-36e9)%h-~~(d/h)*h)),t._pt=u=new ee(t._pt,e,r,i,d,Vc),u.e=p,u.u=\"deg\",t._props.push(r),u}function Qd(t,e,r){var i,n,a,s,o,u,h,l=he.style,f=r._gsap;for(n in l.cssText=getComputedStyle(r).cssText+\";position:absolute;display:block;\",l[Be]=e,ae.body.appendChild(he),i=Ge(he,1),Se)(a=f[n])!==(s=i[n])&&\"perspective,force3D,transformOrigin,svgOrigin\".indexOf(n)<0&&(o=La(a)!==(h=La(s))?td(r,n,a,h):parseFloat(a),u=parseFloat(s),t._pt=new ee(t._pt,f,n,o,u-o,Uc),t._pt.u=h||0,t._props.push(n));ae.body.removeChild(he)}var ne,ae,se,oe,ue,he,le,fe,de=At.Power0,pe=At.Power1,ce=At.Power2,_e=At.Power3,me=At.Power4,ge=At.Linear,ve=At.Quad,ye=At.Cubic,Te=At.Quart,be=At.Quint,we=At.Strong,xe=At.Elastic,ke=At.Back,Oe=At.SteppedEase,Me=At.Bounce,Ce=At.Sine,Ae=At.Expo,Pe=At.Circ,Se={},De=180/Math.PI,Fe=Math.PI/180,ze=Math.atan2,Ee=/([A-Z])/g,Ie=/(?:left|right|width|margin|padding|x)/i,Re=/[\\s,\\(]\\S/,Le={autoAlpha:\"opacity,visibility\",scale:\"scaleX,scaleY\",alpha:\"opacity\"},Be=\"transform\",qe=Be+\"Origin\",Ye=\"O,Moz,ms,Ms,Webkit\".split(\",\"),Ne=function _checkPropPrefix(t,e,r){var i=(e||ue).style,n=5;if(t in i&&!r)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);n--&&!(Ye[n]+t in i););return n<0?null:(3===n?\"ms\":0<=n?Ye[n]:\"\")+t},Ue={deg:1,rad:1,turn:1},Xe={top:\"0%\",bottom:\"100%\",left:\"0%\",right:\"100%\",center:\"50%\"},Ze={clearProps:function clearProps(t,e,r,i,n){if(\"isFromStart\"!==n.data){var a=t._pt=new ee(t._pt,e,r,0,0,yd);return a.u=i,a.pr=-10,a.tween=n,t._props.push(r),1}}},Ve=[1,0,0,1,0,0],je={},Ge=function _parseTransform(t,e){var r=t._gsap||new Et(t);if(\"x\"in r&&!e&&!r.uncache)return r;var i,n,a,s,o,u,h,l,f,d,p,c,_,m,g,v,y,T,b,w,x,k,O,M,C,A,P,S,D,F,z,E,I=t.style,R=r.scaleX<0,L=\"deg\",B=id(t,qe)||\"0\";return i=n=a=u=h=l=f=d=p=0,s=o=1,r.svg=!(!t.getCTM||!pd(t)),m=Ed(t,r.svg),r.svg&&(M=!r.uncache&&t.getAttribute(\"data-svg-origin\"),Fd(t,M||B,!!M||r.originIsAbsolute,!1!==r.smooth,m)),c=r.xOrigin||0,_=r.yOrigin||0,m!==Ve&&(T=m[0],b=m[1],w=m[2],x=m[3],i=k=m[4],n=O=m[5],6===m.length?(s=Math.sqrt(T*T+b*b),o=Math.sqrt(x*x+w*w),u=T||b?ze(b,T)*De:0,(f=w||x?ze(w,x)*De+u:0)&&(o*=Math.cos(f*Fe)),r.svg&&(i-=c-(c*T+_*w),n-=_-(c*b+_*x))):(E=m[6],F=m[7],P=m[8],S=m[9],D=m[10],z=m[11],i=m[12],n=m[13],a=m[14],h=(g=ze(E,D))*De,g&&(M=k*(v=Math.cos(-g))+P*(y=Math.sin(-g)),C=O*v+S*y,A=E*v+D*y,P=k*-y+P*v,S=O*-y+S*v,D=E*-y+D*v,z=F*-y+z*v,k=M,O=C,E=A),l=(g=ze(-w,D))*De,g&&(v=Math.cos(-g),z=x*(y=Math.sin(-g))+z*v,T=M=T*v-P*y,b=C=b*v-S*y,w=A=w*v-D*y),u=(g=ze(b,T))*De,g&&(M=T*(v=Math.cos(g))+b*(y=Math.sin(g)),C=k*v+O*y,b=b*v-T*y,O=O*v-k*y,T=M,k=C),h&&359.9<Math.abs(h)+Math.abs(u)&&(h=u=0,l=180-l),s=aa(Math.sqrt(T*T+b*b+w*w)),o=aa(Math.sqrt(O*O+E*E)),g=ze(k,O),f=2e-4<Math.abs(g)?g*De:0,p=z?1/(z<0?-z:z):0),r.svg&&(M=t.getAttribute(\"transform\"),r.forceCSS=t.setAttribute(\"transform\",\"\")||!Cd(id(t,Be)),M&&t.setAttribute(\"transform\",M))),90<Math.abs(f)&&Math.abs(f)<270&&(R?(s*=-1,f+=u<=0?180:-180,u+=u<=0?180:-180):(o*=-1,f+=f<=0?180:-180)),r.x=((r.xPercent=i&&Math.round(t.offsetWidth/2)===Math.round(-i)?-50:0)?0:i)+\"px\",r.y=((r.yPercent=n&&Math.round(t.offsetHeight/2)===Math.round(-n)?-50:0)?0:n)+\"px\",r.z=a+\"px\",r.scaleX=aa(s),r.scaleY=aa(o),r.rotation=aa(u)+L,r.rotationX=aa(h)+L,r.rotationY=aa(l)+L,r.skewX=f+L,r.skewY=d+L,r.transformPerspective=p+\"px\",(r.zOrigin=parseFloat(B.split(\" \")[2])||0)&&(I[qe]=Qe(B)),r.xOffset=r.yOffset=0,r.force3D=U.force3D,r.renderTransform=r.svg?tr:fe?Ke:Je,r.uncache=0,r},Qe=function _firstTwoOnly(t){return(t=t.split(\" \"))[0]+\" \"+t[1]},Je=function _renderNon3DTransforms(t,e){e.z=\"0px\",e.rotationY=e.rotationX=\"0deg\",e.force3D=0,Ke(t,e)},We=\"0deg\",$e=\"0px\",He=\") \",Ke=function _renderCSSTransforms(t,e){var r=e||this,i=r.xPercent,n=r.yPercent,a=r.x,s=r.y,o=r.z,u=r.rotation,h=r.rotationY,l=r.rotationX,f=r.skewX,d=r.skewY,p=r.scaleX,c=r.scaleY,_=r.transformPerspective,m=r.force3D,g=r.target,v=r.zOrigin,y=\"\",T=\"auto\"===m&&t&&1!==t||!0===m;
2if(v&&(l!==We||h!==We)){var b,w=parseFloat(h)*Fe,x=Math.sin(w),k=Math.cos(w);w=parseFloat(l)*Fe,b=Math.cos(w),a=Id(g,a,x*b*-v),s=Id(g,s,-Math.sin(w)*-v),o=Id(g,o,k*b*-v+v)}_!==$e&&(y+=\"perspective(\"+_+He),(i||n)&&(y+=\"translate(\"+i+\"%, \"+n+\"%) \"),!T&&a===$e&&s===$e&&o===$e||(y+=o!==$e||T?\"translate3d(\"+a+\", \"+s+\", \"+o+\") \":\"translate(\"+a+\", \"+s+He),u!==We&&(y+=\"rotate(\"+u+He),h!==We&&(y+=\"rotateY(\"+h+He),l!==We&&(y+=\"rotateX(\"+l+He),f===We&&d===We||(y+=\"skew(\"+f+\", \"+d+He),1===p&&1===c||(y+=\"scale(\"+p+\", \"+c+He),g.style[Be]=y||\"translate(0, 0)\"},tr=function _renderSVGTransforms(t,e){var r,i,n,a,s,o=e||this,u=o.xPercent,h=o.yPercent,l=o.x,f=o.y,d=o.rotation,p=o.skewX,c=o.skewY,_=o.scaleX,m=o.scaleY,g=o.target,v=o.xOrigin,y=o.yOrigin,T=o.xOffset,b=o.yOffset,w=o.forceCSS,x=parseFloat(l),k=parseFloat(f);d=parseFloat(d),p=parseFloat(p),(c=parseFloat(c))&&(p+=c=parseFloat(c),d+=c),d||p?(d*=Fe,p*=Fe,r=Math.cos(d)*_,i=Math.sin(d)*_,n=Math.sin(d-p)*-m,a=Math.cos(d-p)*m,p&&(c*=Fe,s=Math.tan(p-c),n*=s=Math.sqrt(1+s*s),a*=s,c&&(s=Math.tan(c),r*=s=Math.sqrt(1+s*s),i*=s)),r=aa(r),i=aa(i),n=aa(n),a=aa(a)):(r=_,a=m,i=n=0),(x&&!~(l+\"\").indexOf(\"px\")||k&&!~(f+\"\").indexOf(\"px\"))&&(x=td(g,\"x\",l,\"px\"),k=td(g,\"y\",f,\"px\")),(v||y||T||b)&&(x=aa(x+v-(v*r+y*n)+T),k=aa(k+y-(v*i+y*a)+b)),(u||h)&&(s=g.getBBox(),x=aa(x+u/100*s.width),k=aa(k+h/100*s.height)),s=\"matrix(\"+r+\",\"+i+\",\"+n+\",\"+a+\",\"+x+\",\"+k+\")\",g.setAttribute(\"transform\",s),w&&(g.style[Be]=s)};_(\"padding,margin,Width,Radius\",function(e,r){var t=\"Right\",i=\"Bottom\",n=\"Left\",o=(r<3?[\"Top\",t,i,n]:[\"Top\"+n,\"Top\"+t,i+t,i+n]).map(function(t){return r<2?e+t:\"border\"+t+e});Ze[1<r?\"border\"+e:e]=function(e,t,r,i,n){var a,s;if(arguments.length<4)return a=o.map(function(t){return ud(e,t,r)}),5===(s=a.join(\" \")).split(a[0]).length?a[0]:s;a=(i+\"\").split(\" \"),s={},o.forEach(function(t,e){return s[t]=a[e]=a[e]||a[(e-1)/2|0]}),e.init(t,s,n)}});var er,rr,ir,nr={name:\"css\",register:ld,targetTest:function targetTest(t){return t.style&&t.nodeType},init:function init(t,e,r,i,n){var a,s,o,u,h,l,f,d,p,c,_,m,g,v,y,T=this._props,b=t.style;for(f in oe||ld(),e)if(\"autoRound\"!==f&&(s=e[f],!ht[f]||!Mb(f,e,r,i,t,n)))if(h=typeof s,l=Ze[f],\"function\"===h&&(h=typeof(s=s.call(r,i,t,n))),\"string\"===h&&~s.indexOf(\"random(\")&&(s=ab(s)),l)l(this,t,f,s,r)&&(y=1);else if(\"--\"===f.substr(0,2))this.add(b,\"setProperty\",getComputedStyle(t).getPropertyValue(f)+\"\",s+\"\",i,n,0,0,f);else{if(a=ud(t,f),u=parseFloat(a),(c=\"string\"===h&&\"=\"===s.charAt(1)?+(s.charAt(0)+\"1\"):0)&&(s=s.substr(2)),o=parseFloat(s),f in Le&&(\"autoAlpha\"===f&&(1===u&&\"hidden\"===ud(t,\"visibility\")&&o&&(u=0),rd(this,b,\"visibility\",u?\"inherit\":\"hidden\",o?\"inherit\":\"hidden\",!o)),\"scale\"!==f&&\"transform\"!==f&&~(f=Le[f]).indexOf(\",\")&&(f=f.split(\",\")[0])),_=f in Se)if(m||((g=t._gsap).renderTransform||Ge(t),v=!1!==e.smoothOrigin&&g.smooth,(m=this._pt=new ee(this._pt,b,Be,0,1,g.renderTransform,g,0,-1)).dep=1),\"scale\"===f)this._pt=new ee(this._pt,g,\"scaleY\",g.scaleY,c?c*o:o-g.scaleY),T.push(\"scaleY\",f),f+=\"X\";else{if(\"transformOrigin\"===f){s=xd(s),g.svg?Fd(t,s,0,v,0,this):((p=parseFloat(s.split(\" \")[2])||0)!==g.zOrigin&&rd(this,g,\"zOrigin\",g.zOrigin,p),rd(this,b,f,Qe(a),Qe(s)));continue}if(\"svgOrigin\"===f){Fd(t,s,1,v,0,this);continue}if(f in je){Pd(this,g,f,u,s,c);continue}if(\"smoothOrigin\"===f){rd(this,g,\"smooth\",g.smooth,s);continue}if(\"force3D\"===f){g[f]=s;continue}if(\"transform\"===f){Qd(this,s,t);continue}}else f in b||(f=Ne(f)||f);if(_||(o||0===o)&&(u||0===u)&&!Re.test(s)&&f in b)(d=(a+\"\").substr((u+\"\").length))!==(p=(s+\"\").substr(((o=o||0)+\"\").length)||(f in U.units?U.units[f]:d))&&(u=td(t,f,a,p)),this._pt=new ee(this._pt,_?g:b,f,u,c?c*o:o-u,\"px\"!==p||!1===e.autoRound||_?Uc:Xc),this._pt.u=p||0,d!==p&&(this._pt.b=a,this._pt.r=Wc);else if(f in b)vd.call(this,t,f,a,s);else{if(!(f in t)){L(f,s);continue}this.add(t,f,t[f],s,i,n)}T.push(f)}y&&te(this)},get:ud,aliases:Le,getSetter:function getSetter(t,e,r){var i=Le[e];return i&&i.indexOf(\",\")<0&&(e=i),e in Se&&e!==qe&&(t._gsap.x||ud(t,\"x\"))?r&&le===r?\"
2scale\"===e?bd:ad:(le=r||{})&&(\"scale\"===e?cd:dd):t.style&&!q(t.style[e])?$c:~e.indexOf(\"-\")?_c:Gt(t,e)},core:{_removeProperty:qd,_getMatrix:Ed}};ie.utils.checkPrefix=Ne,ir=_((er=\"x,y,z,scale,scaleX,scaleY,xPercent,yPercent\")+\",\"+(rr=\"rotation,rotationX,rotationY,skewX,skewY\")+\",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective\",function(t){Se[t]=1}),_(rr,function(t){U.units[t]=\"deg\",je[t]=1}),Le[ir[13]]=er+\",\"+rr,_(\"0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY\",function(t){var e=t.split(\":\");Le[e[1]]=ir[e[0]]}),_(\"x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective\",function(t){U.units[t]=\"px\"}),ie.registerPlugin(nr);var ar=ie.registerPlugin(nr)||ie,sr=ar.core.Tween;e.Back=ke,e.Bounce=Me,e.CSSPlugin=nr,e.Circ=Pe,e.Cubic=ye,e.Elastic=xe,e.Expo=Ae,e.Linear=ge,e.Power0=de,e.Power1=pe,e.Power2=ce,e.Power3=_e,e.Power4=me,e.Quad=ve,e.Quart=Te,e.Quint=be,e.Sine=Ce,e.SteppedEase=Oe,e.Strong=we,e.TimelineLite=Rt,e.TimelineMax=Rt,e.TweenLite=Xt,e.TweenMax=sr,e.default=ar,e.gsap=ar;if (typeof(window)===\"undefined\"||window!==e){Object.defineProperty(e,\"__esModule\",{value:!0})} else {delete e.default}});\n\n","Nw_Additions/lib/gsap/MotionPathPlugin.min.js":"/*!\n * MotionPathPlugin 3.4.2\n * https://greensock.com\n * \n * @license Copyright 2020, GreenSock. All rights reserved.\n * Subject to the terms at https://greensock.com/standard-license or for Club GreenSock members, the agreement issued with that membership.\n * @author: Jack Doyle, [email protected]\n */\n\n!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?e(exports):\"function\"==typeof define&&define.amd?define([\"exports\"],e):e((t=t||self).window=t.window||{})}(this,function(t){\"use strict\";function p(t){return\"string\"==typeof t}function x(t,e,n,r){var a=t[e],o=1===r?6:subdivideSegment(a,n,r);if(o&&o+n+2<a.length)return t.splice(e,0,a.slice(0,n+o+2)),a.splice(0,n+o),1}function A(t,e){var n=t.length,r=t[n-1]||[],a=r.length;e[0]===r[a-2]&&e[1]===r[a-1]&&(e=r.concat(e.slice(2)),n--),t[n]=e}var M=/[achlmqstvz]|(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)[0-9]/gi,R=/(?:(-)?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)[0-9]/gi,L=/[\\+\\-]?\\d*\\.?\\d+e[\\+\\-]?\\d+/gi,r=/(^[#\\.][a-z]|[a-y][a-z])/i,q=Math.PI/180,s=180/Math.PI,F=Math.sin,H=Math.cos,Q=Math.abs,$=Math.sqrt,S=Math.atan2,B=1e8,l=function _isNumber(t){return\"number\"==typeof t},N={},_={},e=1e5,d=function _wrapProgress(t){return Math.round((t+B)%1*e)/e||(t<0?0:1)},C=function _round(t){return Math.round(t*e)/e||0},I=function _copyMetaData(t,e){return e.totalLength=t.totalLength,t.samples?(e.samples=t.samples.slice(0),e.lookup=t.lookup.slice(0),e.minLength=t.minLength,e.resolution=t.resolution):e.totalPoints=t.totalPoints,e};function getRawPath(t){var e,n=(t=p(t)&&r.test(t)&&document.querySelector(t)||t).getAttribute?t:0;return n&&(t=t.getAttribute(\"d\"))?(n._gsPath||(n._gsPath={}),(e=n._gsPath[t])&&!e._dirty?e:n._gsPath[t]=stringToRawPath(t)):t?p(t)?stringToRawPath(t):l(t[0])?[t]:t:console.warn(\"Expecting a <path> element or an SVG path data string\")}function reverseSegment(t){var e,n=0;for(t.reverse();n<t.length;n+=2)e=t[n],t[n]=t[n+1],t[n+1]=e;t.reversed=!t.reversed}var E={rect:\"rx,ry,x,y,width,height\",circle:\"r,cx,cy\",ellipse:\"rx,ry,cx,cy\",line:\"x1,x2,y1,y2\"};function convertToPath(t,e){var n,r,a,o,i,s,l,h,u,f,g,c,p,d,m,v,x,y,P,w,b,M,L=t.tagName.toLowerCase(),T=.552284749831;return\"path\"!==L&&t.getBBox?(s=function _createPath(t,e){var n,r=document.createElementNS(\"http://www.w3.org/2000/svg\",\"path\"),a=[].slice.call(t.attributes),o=a.length;for(e=\",\"+e+\",\";-1<--o;)n=a[o].nodeName.toLowerCase(),e.indexOf(\",\"+n+\",\")<0&&r.setAttributeNS(null,n,a[o].nodeValue);return r}(t,\"x,y,width,height,cx,cy,rx,ry,r,x1,x2,y1,y2,points\"),M=function _attrToObj(t,e){for(var n=e?e.split(\",\"):[],r={},a=n.length;-1<--a;)r[n[a]]=+t.getAttribute(n[a])||0;return r}(t,E[L]),\"rect\"===L?(o=M.rx,i=M.ry||o,r=M.x,a=M.y,f=M.width-2*o,g=M.height-2*i,n=o||i?\"M\"+(v=(d=(p=r+o)+f)+o)+\",\"+(y=a+i)+\" V\"+(P=y+g)+\" C\"+[v,w=P+i*T,m=d+o*T,b=P+i,d,b,d-(d-p)/3,b,p+(d-p)
2/3,b,p,b,c=r+o*(1-T),b,r,w,r,P,r,P-(P-y)/3,r,y+(P-y)/3,r,y,r,x=a+i*(1-T),c,a,p,a,p+(d-p)/3,a,d-(d-p)/3,a,d,a,m,a,v,x,v,y].join(\",\")+\"z\":\"M\"+(r+f)+\",\"+a+\" v\"+g+\" h\"+-f+\" v\"+-g+\" h\"+f+\"z\"):\"circle\"===L||\"ellipse\"===L?(h=\"circle\"===L?(o=i=M.r)*T:(o=M.rx,(i=M.ry)*T),n=\"M\"+((r=M.cx)+o)+\",\"+(a=M.cy)+\" C\"+[r+o,a+h,r+(l=o*T),a+i,r,a+i,r-l,a+i,r-o,a+h,r-o,a,r-o,a-h,r-l,a-i,r,a-i,r+l,a-i,r+o,a-h,r+o,a].join(\",\")+\"z\"):\"line\"===L?n=\"M\"+M.x1+\",\"+M.y1+\" L\"+M.x2+\",\"+M.y2:\"polyline\"!==L&&\"polygon\"!==L||(n=\"M\"+(r=(u=(t.getAttribute(\"points\")+\"\").match(R)||[]).shift())+\",\"+(a=u.shift())+\" L\"+u.join(\",\"),\"polygon\"===L&&(n+=\",\"+r+\",\"+a+\"z\")),s.setAttribute(\"d\",rawPathToString(s._gsRawPath=stringToRawPath(n))),e&&t.parentNode&&(t.parentNode.insertBefore(s,t),t.parentNode.removeChild(t)),s):t}function getRotationAtBezierT(t,e,n){var r,a=t[e],o=t[e+2],i=t[e+4];return a+=(o-a)*n,a+=((o+=(i-o)*n)-a)*n,r=o+(i+(t[e+6]-i)*n-o)*n-a,a=t[e+1],a+=((o=t[e+3])-a)*n,a+=((o+=((i=t[e+5])-o)*n)-a)*n,C(S(o+(i+(t[e+7]-i)*n-o)*n-a,r)*s)}function sliceRawPath(t,e,n){!function _isUndefined(t){return void 0===t}(n)||(n=1);var r=n<(e=e||0),a=Math.max(0,~~(Q(n-e)-1e-8));if(r&&(r=n,n=e,e=r,r=1,a-=a?1:0),e<0||n<0){var o=1+~~Math.min(e,n);e+=o,n+=o}var i,s,l,h,u,f,g,c=function copyRawPath(t){for(var e=[],n=0;n<t.length;n++)e[n]=I(t[n],t[n].slice(0));return I(t,e)}(t.totalLength?t:cacheRawPathMeasurements(t)),p=1<n,d=getProgressData(c,e,N,!0),m=getProgressData(c,n,_),v=m.segment,y=d.segment,P=m.segIndex,w=d.segIndex,b=m.i,M=d.i,L=w===P,T=b===M&&L,R=L&&b<M||T&&d.t>m.t;if(p||a){if(x(c,w,M,d.t)&&(i=1,w++,T?R?m.t/=d.t:(m.t=(m.t-d.t)/(1-d.t),P++,b=0):w<=P+1&&!R&&(P++,L&&(b-=M))),m.t?x(c,P,b,m.t)&&(R&&i&&w++,r&&P++):(P--,r&&w--),h=[],f=1+(u=c.length)*a,g=w,r)for(f+=(u-(P=(P||u)-1)+w)%u,l=0;l<f;l++)A(h,c[g]),g=(g||u)-1;else for(f+=(u-w+P)%u,l=0;l<f;l++)A(h,c[g++%u]);c=h}else if(s=1===m.t?6:subdivideSegment(v,b,m.t),e!==n)for(i=subdivideSegment(y,M,T?d.t/m.t:d.t),L&&(s+=i),v.splice(b+s+2),(i||M)&&y.splice(0,M+i),l=c.length;l--;)(l<w||P<l)&&c.splice(l,1);else v.angle=getRotationAtBezierT(v,b+s,0),d=v[b+=s],m=v[b+1],v.length=v.totalLength=0,v.totalPoints=c.totalPoints=8,v.push(d,m,d,m,d,m,d,m);return r&&function _reverseRawPath(t,e){var n=t.length;for(e||t.reverse();n--;)t[n].reversed||reverseSegment(t[n])}(c,p||a),c.totalLength=0,c}function measureSegment(t,e,n){e=e||0,t.samples||(t.samples=[],t.lookup=[]);var r,a,o,i,s,l,h,u,f,g,c,p,d,m,v,x,y,P=~~t.resolution||12,w=1/P,b=n?e+6*n+1:t.length,M=t[e],L=t[e+1],T=e?e/6*P:0,R=t.samples,S=t.lookup,N=(e?t.minLength:B)||B,_=R[T+n*P-1],C=e?R[T-1]:0;for(R.length=S.length=0,a=e+2;a<b;a+=6){if(o=t[a+4]-M,i=t[a+2]-M,s=t[a]-M,u=t[a+5]-L,f=t[a+3]-L,g=t[a+1]-L,l=h=c=p=0,Q(o)<1e-5&&Q(u)<1e-5&&Q(s)+Q(g)<1e-5)8<t.length&&(t.splice(a,6),a-=6,b-=6);else for(r=1;r<=P;r++)l=h-(h=((m=w*r)*m*o+3*(d=1-m)*(m*i+d*s))*m),c=p-(p=(m*m*u+3*d*(m*f+d*g))*m),(x=$(c*c+l*l))<N&&(N=x),C+=x,R[T++]=C;M+=o,L+=u}if(_)for(_-=C;T<R.length;T++)R[T]+=_;if(R.length&&N)for(t.totalLength=y=R[R.length-1]||0,t.minLength=N,x=v=0,r=0;r<y;r+=N)S[x++]=R[v]<r?++v:v;else t.totalLength=R[0]=0;return e?C-R[e/2-1]:C}function cacheRawPathMeasurements(t,e){var n,r,a;for(a=n=r=0;a<t.length;a++)t[a].resolution=~~e||12,r+=t[a].length,n+=measureSegment(t[a]);return t.totalPoints=r,t.totalLength=n,t}function subdivideSegment(t,e,n){if(n<=0||1<=n)return 0;var r=t[e],a=t[e+1],o=t[e+2],i=t[e+3],s=t[e+4],l=t[e+5],h=r+(o-r)*n,u=o+(s-o)*n,f=
vendor: 5,583 bytes, line 2
2a+(i-a)*n,g=i+(l-i)*n,c=h+(u-h)*n,p=f+(g-f)*n,d=s+(t[e+6]-s)*n,m=l+(t[e+7]-l)*n;return u+=(d-u)*n,g+=(m-g)*n,t.splice(e+2,4,C(h),C(f),C(c),C(p),C(c+(u-c)*n),C(p+(g-p)*n),C(u),C(g),C(d),C(m)),t.samples&&t.samples.splice(e/6*t.resolution|0,0,0,0,0,0,0,0),6}function getProgressData(t,e,n,r){n=n||{},t.totalLength||cacheRawPathMeasurements(t),(e<0||1<e)&&(e=d(e));var a,o,i,s,l,h,u,f=0,g=t[0];if(1<t.length){for(i=t.totalLength*e,l=h=0;(l+=t[h++].totalLength)<i;)f=h;e=(i-(s=l-(g=t[f]).totalLength))/(l-s)||0}return a=g.samples,o=g.resolution,i=g.totalLength*e,s=(h=g.lookup[~~(i/g.minLength)]||0)?a[h-1]:0,(l=a[h])<i&&(s=l,l=a[++h]),u=1/o*((i-s)/(l-s)+h%o),h=6*~~(h/o),r&&1===u&&(h+6<g.length?(h+=6,u=0):f+1<t.length&&(h=u=0,g=t[++f])),n.t=u,n.i=h,n.path=t,n.segment=g,n.segIndex=f,n}function getPositionOnPath(t,e,n,r){var a,o,i,s,l,h,u,f,g,c=t[0],p=r||{};if((e<0||1<e)&&(e=d(e)),1<t.length){for(i=t.totalLength*e,l=h=0;(l+=t[h++].totalLength)<i;)c=t[h];e=(i-(s=l-c.totalLength))/(l-s)||0}return a=c.samples,o=c.resolution,i=c.totalLength*e,s=(h=c.lookup[~~(i/c.minLength)]||0)?a[h-1]:0,(l=a[h])<i&&(s=l,l=a[++h]),g=1-(u=1/o*((i-s)/(l-s)+h%o)||0),f=c[h=6*~~(h/o)],p.x=C((u*u*(c[h+6]-f)+3*g*(u*(c[h+4]-f)+g*(c[h+2]-f)))*u+f),p.y=C((u*u*(c[h+7]-(f=c[h+1]))+3*g*(u*(c[h+5]-f)+g*(c[h+3]-f)))*u+f),n&&(p.angle=c.totalLength?getRotationAtBezierT(c,h,1<=u?1-1e-9:u||1e-9):c.angle||0),p}function transformRawPath(t,e,n,r,a,o,i){for(var s,l,h,u,f,g=t.length;-1<--g;)for(l=(s=t[g]).length,h=0;h<l;h+=2)u=s[h],f=s[h+1],s[h]=u*e+f*r+o,s[h+1]=u*n+f*a+i;return t._dirty=1,t}function arcToSegment(t,e,n,r,a,o,i,s,l){if(t!==s||e!==l){n=Q(n),r=Q(r);var h=a%360*q,u=H(h),f=F(h),g=Math.PI,c=2*g,p=(t-s)/2,d=(e-l)/2,m=u*p+f*d,v=-f*p+u*d,x=m*m,y=v*v,P=x/(n*n)+y/(r*r);1<P&&(n=$(P)*n,r=$(P)*r);var w=n*n,b=r*r,M=(w*b-w*y-b*x)/(w*y+b*x);M<0&&(M=0);var L=(o===i?-1:1)*$(M),T=n*v/r*L,R=-r*m/n*L,S=u*T-f*R+(t+s)/2,N=f*T+u*R+(e+l)/2,_=(m-T)/n,C=(v-R)/r,A=(-m-T)/n,O=(-v-R)/r,B=_*_+C*C,I=(C<0?-1:1)*Math.acos(_/$(B)),E=(_*O-C*A<0?-1:1)*Math.acos((_*A+C*O)/$(B*(A*A+O*O)));isNaN(E)&&(E=g),!i&&0<E?E-=c:i&&E<0&&(E+=c),I%=c,E%=c;var G,D=Math.ceil(Q(E)/(c/4)),z=[],W=E/D,Y=4/3*F(W/2)/(1+H(W/2)),j=u*n,k=f*n,V=f*-r,X=u*r;for(G=0;G<D;G++)m=H(a=I+G*W),v=F(a),_=H(a+=W),C=F(a),z.push(m-Y*v,v+Y*m,_+Y*C,C-Y*_,_,C);for(G=0;G<z.length;G+=2)m=z[G],v=z[G+1],z[G]=m*j+v*V+S,z[G+1]=m*k+v*X+N;return z[G-2]=s,z[G-1]=l,z}}function stringToRawPath(t){function rf(t,e,n,r){u=(n-t)/3,f=(r-e)/3,s.push(t+u,e+f,n-u,r-f,n,r)}var e,n,r,a,o,i,s,l,h,u,f,g,c,p,d,m=(t+\"\").replace(L,function(t){var e=+t;return e<1e-4&&-1e-4<e?0:e}).match(M)||[],v=[],x=0,y=0,P=m.length,w=0,b=\"ERROR: malformed path: \"+t;if(!t||!isNaN(m[0])||isNaN(m[1]))return console.log(b),v;for(e=0;e<P;e++)if(c=o,isNaN(m[e])?i=(o=m[e].toUpperCase())!==m[e]:e--,r=+m[e+1],a=+m[e+2],i&&(r+=x,a+=y),e||(l=r,h=a),\"M\"===o)s&&(s.length<8?--v.length:w+=s.length),x=l=r,y=h=a,s=[r,a],v.push(s),e+=2,o=\"L\";else if(\"C\"===o)i||(x=y=0),(s=s||[0,0]).push(r,a,x+1*m[e+3],y+1*m[e+4],x+=1*m[e+5],y+=1*m[e+6]),e+=6;else if(\"S\"===o)u=x,f=y,\"C\"!==c&&\"S\"!==c||(u+=x-s[s.length-4],f+=y-s[s.length-3]),i||(x=y=0),s.push(u,f,r,a,x+=1*m[e+3],y+=1*m[e+4]),e+=4;else if(\"Q\"===o)u=x+2/3*(r-x),f=y+2/3*(a-y),i||(x=y=0),x+=1*m[e+3],y+=1*m[e+4],s.push(u,f,x+2/3*(r-x),y+2/3*(a-y),x,y),e+=4;else if(\"T\"===o)u=x-s[s.length-4],f=y-s[s.length-3],s.push(x+u,y+f,r+2/3*(x+1.5*u-r),a+2/3*(y+1.5*f-a),x=r,y=a),e+=2;else if(\"H\"===o)rf(x,y,x=r,y),e+=1;else if(\"V\"===o)rf(x,y,x,y=r+(i?y-x:0)),e+=1;else if(\"L\"===o||\"Z\"===o)\"Z\"===o&&(r=l,a=h,s.closed=!0),(\"L\"===o||.5<Q(x-r)||.5<Q(y-a))&&(rf(x,y,r,a),\"L\"===o&&(e+=2)),x=r,y=a;else if(\"A\"===o){if(p=m[e+4],d=m[e+5],u=m[e+6],f=m[e+7],n=7,1<p.length&&(p.length<3?(f=u,u=d,n--):(f=d,u=p.substr(2),n-=2),d=p.charAt(1),p=p.charAt(0)),g=arcToSegment(x,y,+m[e+1],+m[e+2],+m[e+3],+p,+d,(i?x:0)+1*u,(i?y:0)+1*f),e+=n,g)for(n=0;n<g.length;n++)s.push(g[n]);x=s[s.length-2],y=s[s.length-1]}else console.log(b);return(e=s.length)<6?(v.pop(),e=0):s[0]===s[e-2]&&s[1]===s[e-1]&&(s.closed=!0),v.totalPoints=w+e,v}function flatPointsToSegment(t,e){void 0===e&&(e=1);for(var n=t[0],r=0,a=[n,r],o=2;o<t.length;o+=2)a.push(n,r,t[o],r=(t[o]-n)*e/2,n=t[o],-r);return a}function pointsToSegment(t,e,n){var r,a,o,i,s,l,h,u,f,g,c,p,d,m,v=t.length-2,x=+t[0],y=+t[1],P=+t[2],w=+t[3],b=[x,y,x,y],M=P-x,L=w-y,T=Math.abs(t[v]-x)<.001&&Math.abs(t[v+1]-y)<.001;for(isNaN(n)&&(n=Math.PI/10),T&&(t.push(P,w),P=x,w=y,x=t[v-2],y=t[v-1],t.unshift(x,y),v+=4),e=e||0===e?+e:1,s=2;s<v;s+=2)r=x,a=y,x=P,y=w,p=(l=M)*l+(u=L)*u,d=(M=(P=+t[s+2])-x)*M+(L=(w=+t[s+3])-y)*L,m=(h=P-r)*h+(f=w-a)*f,c=(o=Math.acos((p+d-m)/$(4*p*d)))/Math.PI*e,g=$(p)*c,c*=$(d),x===r&&y===a||(n<o?(i=S(f,h),b.push(C(x-H(i)*g),C(y-F(i)*g),C(x),C(y),C(x+H(i)*c),C(y+F(i)*c))):(i=S(u,l),b.push(C(x-H(i)*g),C(y-F(i)*g)),i=S(L,M),b.push(C(x),C(y),C(x+H(i)*c),C(y+F(i)*c))));return b.push(C(P),C(w),C(P),C(w)),T&&(b.splice(0,6),b.length=b.length-6),b}function rawPathToString(t){l(t[0])&&(t=[t]);var e,n,r,a,o=\"\",i=t.length;for(n=0;n<i;n++){for(a=t[n],o+=\"M\"+C(a[0])+\",\"+C(a[1])+\" C\",e=a.length,r=2;r<e;r++)o+=C(a[r++])+\",\"+C(a[r++])+\" \"+C(a[r++])+\",\"+C(a[r++])+\" \"+C(a[r++])+\",\"+C(a[r])+\" \";a.closed&&(o+=\"z\")}return o}function O(t){var e=t.ownerDocument||t;!(w in t.style)&&\"msTransform\"in t.style&&(b=(w=\"msTransform\")+\"Origin\");for(;e.parentNode&&(e=e.parentNode););if(c=window,y=new D,e){m=(g=e).documentElement,v=e.body;var n=e.createElement(\"div\"),r=e.createElement(\"div\");v.appendChild(n),n.appendChild(r),n.style.position=\"static\",n.style[w]=\"translate3d(0,
20,1px)\",P=r.offsetParent!==n,v.removeChild(n)}return e}function U(t){return t.ownerSVGElement||(\"svg\"===(t.tagName+\"\").toLowerCase()?t:null)}function W(t,e){if(t.parentNode&&(g||O(t))){var n=U(t),r=n?n.getAttribute(\"xmlns\")||\"http://www.w3.org/2000/svg\":\"http://www.w3.org/1999/xhtml\",a=n?e?\"rect\":\"g\":\"div\",o=2!==e?0:100,i=3===e?100:0,s=\"position:absolute;display:block;pointer-events:none;\",l=g.createElementNS?g.createElementNS(r.replace(/^https/,\"http\"),a):g.createElement(a);return e&&(n?(f=f||W(t),l.setAttribute(\"width\",.01),l.setAttribute(\"height\",.01),l.setAttribute(\"transform\",\"translate(\"+o+\",\"+i+\")\"),f.appendChild(l)):(u||((u=W(t)).style.cssText=s),l.style.cssText=s+\"width:0.1px;height:0.1px;top:\"+i+\"px;left:\"+o+\"px\",u.appendChild(l))),l}throw\"Need document and parent.\"}function Y(t,e){var n,r,a,o,i,s=U(t),l=t===s,h=s?T:G;if(t===c)return t;if(h.length||h.push(W(t,1),W(t,2),W(t,3)),n=s?f:u,s)a=l?{x:0,y:0}:t.getBBox(),i=(r=t.transform?t.transform.baseVal:{}).numberOfItems?(o=(r=1<r.numberOfItems?function _consolidate(t){for(var e=new D,n=0;n<t.numberOfItems;n++)e.multiply(t.getItem(n).matrix);return e}(r):r.getItem(0).matrix).a*a.x+r.c*a.y,r.b*a.x+r.d*a.y):(r=y,o=a.x,a.y),e&&\"g\"===t.tagName.toLowerCase()&&(o=i=0),n.setAttribute(\"transform\",\"matrix(\"+r.a+\",\"+r.b+\",\"+r.c+\",\"+r.d+\",\"+(r.e+o)+\",\"+(r.f+i)+\")\"),(l?s:t.parentNode).appendChild(n);else{if(o=i=0,P)for(r=t.offsetParent,a=t;(a=a&&a.parentNode)&&a!==r&&a.parentNode;)4<(c.getComputedStyle(a)[w]+\"\").length&&(o=a.offsetLeft,i=a.offsetTop,a=0);(a=n.style).top=t.offsetTop-i+\"px\",a.left=t.offsetLeft-o+\"px\",r=c.getComputedStyle(t),a[w]=r[w],a[b]=r[b],a.border=r.border,a.borderLeftStyle=r.borderLeftStyle,a.borderTopStyle=r.borderTopStyle,a.borderLeftWidth=r.borderLeftWidth,a.borderTopWidth=r.borderTopWidth,a.position=\"fixed\"===r.position?\"fixed\":\"absolute\",t.parentNode.appendChild(n)}return n}function Z(t,e,n,r,a,o,i){return t.a=e,t.b=n,t.c=r,t.d=a,t.e=o,t.f=i,t}var g,c,m,v,u,f,y,P,n,w=\"transform\",b=w+\"Origin\",T=[],G=[],D=((n=Matrix2D.prototype).inverse=function inverse(){var t=this.a,e=this.b,n=this.c,r=this.d,a=this.e,o=this.f,i=t*r-e*n||1e-10;return Z(this,r/i,-e/i,-n/i,t/i,(n*o-r*a)/i,-(t*o-e*a)/i)},n.multiply=function multiply(t){var e=this.a,n=this.b,r=this.c,a=this.d,o=this.e,i=this.f,s=t.a,l=t.c,h=t.b,u=t.d,f=t.e,g=t.f;return Z(this,s*e+h*r,s*n+h*a,l*e+u*r,l*n+u*a,o+f*e+g*r,i+f*n+g*a)},n.clone=function clone(){return new Matrix2D(this.a,this.b,this.c,this.d,this.e,this.f)},n.equals=function equals(t){var e=this.a,n=this.b,r=this.c,a=this.d,o=this.e,i=this.f;return e===t.a&&n===t.b&&r===t.c&&a===t.d&&o===t.e&&i===t.f},n.apply=function apply(t,e){void 0===e&&(e={});var n=t.x,r=t.y,a=this.a,o=this.b,i=this.c,s=this.d,l=this.e,h=this.f;return e.x=n*a+r*i+l||0,e.y=n*o+r*s+h||0,e},Matrix2D);function Matrix2D(t,e,n,r,a,o){void 0===t&&(t=1),void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=1),void 0===a&&(a=0),void 0===o&&(o=0),Z(this,t,e,n,r,a,o)}function getGlobalMatrix(t,e,n){if(!t||!t.parentNode||(g||O(t)).documentElement===t)return new D;var r=function _forceNonZeroScale(t){for(var e,n;t&&t!==v;)(n=t._gsap)&&!n.scaleX&&!n.scaleY&&n.renderTransform&&(n.scaleX=n.scaleY=1e-4,n.renderTransform(1,n),e?e.push(n):e=[n]),t=t.parentNode;return e}(t.parentNode),a=U(t)?T:G,o=Y(t,n),i=a[0].getBoundingClientRect(),s=a[1].getBoundingClientRect(),l=a[2].getBoundingClientRect(),h=o.parentNode,u=function _isFixed(t){return\"fixed\"===c.getComputedStyle(t).position||((t=t.parentNode)&&1===t.nodeType?_isFixed(t):void 0)}(t),f=new D((s.left-i.left)/100,(s.top-i.top)/100,(l.left-i.left)/100,(l.top-i.top)/100,i.left+(u?0:function _getDocScrollLeft(){return c.pageXOffset||g.scrollLeft||m.scrollLeft||v.scrollLeft||0}()),i.top+(u?0:function _getDocScrollTop(){return c.pageYOffset||g.scrollTop||m.scrollTop||v.scrollTop||0}()));if(h.removeChild(o),r)for(i=r.length;i--;)(s=r[i]).scaleX=s.scaleY=0,s.renderTransform(1,s);return e?f.inverse():f}function ha(t,e,n,r){for(var a=e.length,o=2===r?0:r,i=0;i<a;i++)t[o]=parseFloat(e[i][n]),2===r&&(t[o+1]=0),o+=2;return t}function ia(t,e,n){return parseFloat(t._gsap.get(t,e,n||\"px\"))||0}function ja(t){var e,n=t[0],r=t[1];for(e=2;e<t.length;e+=2)n=t[e]+=n,r=t[e+1]+=r}function ka(t,e,n,r,a,o,i){return e=\"cubic\"===i.type?[e]:(e.unshift(ia(n,r,i.unitX),a?ia(n,a,i.unitY):0),i.relative&&ja(e),[(a?pointsToSegment:flatPointsToSegment)(e,i.curviness)]),e=o(tt(e,n,i)
2),et(t,n,r,e,\"x\",i.unitX),a&&et(t,n,a,e,\"y\",i.unitY),cacheRawPathMeasurements(e,i.resolution||(0===i.curviness?20:12))}function la(t){return t}function na(t,e,n){var r,a,o,i=getGlobalMatrix(t);return\"svg\"===(t.tagName+\"\").toLowerCase()?(a=(r=t.viewBox.baseVal).x,o=r.y,r.width||(r={width:+t.getAttribute(\"width\"),height:+t.getAttribute(\"height\")})):(r=e&&t.getBBox&&t.getBBox(),a=o=0),e&&\"auto\"!==e&&(a+=e.push?e[0]*(r?r.width:t.offsetWidth||0):e.x,o+=e.push?e[1]*(r?r.height:t.offsetHeight||0):e.y),n.apply(a||o?i.apply({x:a,y:o}):{x:i.e,y:i.f})}function oa(t,e,n,r){var a,o=getGlobalMatrix(t.parentNode,!0,!0),i=o.clone().multiply(getGlobalMatrix(e)),s=na(t,n,o),l=na(e,r,o),h=l.x,u=l.y;return i.e=i.f=0,\"auto\"===r&&e.getTotalLength&&\"path\"===e.tagName.toLowerCase()&&(a=e.getAttribute(\"d\").match(K)||[],h+=(a=i.apply({x:+a[0],y:+a[1]})).x,u+=a.y),(a||e.getBBox&&t.getBBox&&e.ownerSVGElement===t.ownerSVGElement)&&(h-=(a=i.apply(e.getBBox())).x,u-=a.y),i.e=h-s.x,i.f=u-s.y,i}var z,j,k,V,X=[\"x\",\"translateX\",\"left\",\"marginLeft\"],J=[\"y\",\"translateY\",\"top\",\"marginTop\"],o=Math.PI/180,K=/[-+\\.]*\\d+[\\.e\\-\\+]*\\d*[e\\-\\+]*\\d*/g,tt=function _align(t,e,n){var r,a,o,i=n.align,s=n.matrix,l=n.offsetX,h=n.offsetY,u=n.alignOrigin,f=t[0][0],g=t[0][1],c=ia(e,\"x\"),p=ia(e,\"y\");return t&&t.length?(i&&(\"self\"===i||(r=V(i)[0]||e)===e?transformRawPath(t,1,0,0,1,c-f,p-g):(u&&!1!==u[2]?z.set(e,{transformOrigin:100*u[0]+\"% \"+100*u[1]+\"%\"}):u=[ia(e,\"xPercent\")/-100,ia(e,\"yPercent\")/-100],o=(a=oa(e,r,u,\"auto\")).apply({x:f,y:g}),transformRawPath(t,a.a,a.b,a.c,a.d,c+a.e-(o.x-a.e),p+a.f-(o.y-a.f)))),s?transformRawPath(t,s.a,s.b,s.c,s.d,s.e,s.f):(l||h)&&transformRawPath(t,1,0,0,1,l||0,h||0),t):getRawPath(\"M0,0L0,0\")},et=function _addDimensionalPropTween(t,e,n,r,a,o){var i=e._gsap,s=i.harness,l=s&&s.aliases&&s.aliases[n],h=l&&l.indexOf(\",\")<0?l:n,u=t._pt=new j(t._pt,e,h,0,0,la,0,i.set(e,h,t));u.u=k(i.get(e,h,o))||0,u.path=r,u.pp=a,t._props.push(h)},a={version:\"3.4.2\",name:\"motionPath\",register:function register(t,e,n){k=(z=t).utils.getUnit,V=z.utils.toArray,j=n},init:function init(t,e){if(!z)return console.warn(\"Please gsap.registerPlugin(MotionPathPlugin)\"),!1;\"object\"==typeof e&&!e.style&&e.path||(e={path:e});var n,r,a,o,i=[],s=e.path,l=s[0],h=e.autoRotate,u=function _sliceModifier(e,n){return function(t){return e||1!==n?sliceRawPath(t,e,n):t}}(e.start,\"end\"in e?e.end:1);if(this.rawPaths=i,this.target=t,(this.rotate=h||0===h)&&(this.rOffset=parseFloat(h)||0,this.radians=!!e.useRadians,this.rProp=e.rotation||\"rotation\",this.rSet=t._gsap.set(t,this.rProp,this),this.ru=k(t._gsap.get(t,this.rProp))||0),!Array.isArray(s)||\"closed\"in s||\"number\"==typeof l)cacheRawPathMeasurements(n=u(tt(getRawPath(e.path),t,e)),e.resolution),i.push(n),et(this,t,e.x||\"x\",n,\"x\",e.unitX||\"px\"),et(this,t,e.y||\"y\",n,\"y\",e.unitY||\"px\");else{for(r in l)~X.indexOf(r)?a=r:~J.indexOf(r)&&(o=r);for(r in a&&o?i.push(ka(this,ha(ha([],s,a,0),s,o,1),t,e.x||a,e.y||o,u,e)):a=o=0,l)r!==a&&r!==o&&i.push(ka(this,ha([],s,r,2),t,r,0,u,e))}},render:function render(t,e){var n=e.rawPaths,r=n.length,a=e._pt;for(1<t?t=1:t<0&&(t=0);r--;)getPositionOnPath(n[r],t,!r&&e.rotate,n[r]);for(;a;)a.set(a.t,a.p,a.path[a.pp]+a.u,a.d,t),a=a._next;e.rotate&&e.rSet(e.target,e.rProp,n[0].angle*(e.radians?o:1)+e.rOffset+e.ru,e,t)},getLength:function getLength(t){return cacheRawPathMeasurements(getRawPath(t)).totalLength},sliceRawPath:sliceRawPath,getRawPath:getRawPath,pointsToSegment:pointsToSegment,stringToRawPath:stringToRawPath,rawPathToString:rawPathToString,transformRawPath:transformRawPath,getGlobalMatrix:getGlobalMatrix,getPositionOnPath:getPositionOnPath,cacheRawPathMeasurements:cacheRawPathMeasurements,convertToPath:function convertToPath$1(t,e){return V(t).map(function(t){return convertToPath(t,!1!==e)})},convertCoordinates:function convertCoordinates(t,e,n){var r=getGlobalMatrix(e,!0,!0).multiply(getGlobalMatrix(t));return n?r.apply(n):r},getAlignMatrix:oa,getRelativePosition:function getRelativePosition(t,e,n,r){var a=oa(t,e,n,r);return{x:a.e,y:a.f}},arrayToRawPath:function arrayToRawPath(t,e){var n=ha(ha([],t,(e=e||{}).x||\"x\",0),t,e.y||\"y\",1);return e.relative&&ja(n),[\"cubic\"===e.type?n:pointsToSegment(n,e.curviness)]}};!function _getGSAP(){return z||\"undefined\"!=typeof window&&(z=window.gsap)&&z.registerPlugin&&z}()||z.registerPlugin(a),t.MotionPathPlugin=a,t.default=a;if (typeof(window)===\"undefined\"||window!==t){Object.defineProperty(t,\"__esMo
2dule\",{value:!0})} else {delete t.default}});\n\n","Nw_Additions/lib/gsap/EasePack.min.js":"/*!\n * EasePack 3.4.2\n * https://greensock.com\n * \n * @license Copyright 2020, GreenSock. All rights reserved.\n * Subject to the terms at https://greensock.com/standard-license or for Club GreenSock members, the agreement issued with that membership.\n * @author: Jack Doyle, [email protected]\n */\n\n!function(e,n){\"object\"==typeof exports&&\"undefined\"!=typeof module?n(exports):\"function\"==typeof define&&define.amd?define([\"exports\"],n):n((e=e||self).window=e.window||{})}(this,function(e){\"use strict\";function f(){return w||\"undefined\"!=typeof window&&(w=window.gsap)&&w.registerPlugin&&w}function g(e,n){return!!(void 0===e?n:e&&!~(e+\"\").indexOf(\"false\"))}function h(e){if(w=e||f()){r=w.registerEase;var n,t=w.parseEase(),o=function createConfig(t){return function(e){var n=.5+e/2;t.config=function(e){return t(2*(1-e)*e*n+e*e)}}};for(n in t)t[n].config||o(t[n]);for(n in r(\"slow\",a),r(\"expoScale\",s),r(\"rough\",u),c)\"version\"!==n&&w.core.globals(n,c[n])}}function i(e,n,t){var o=(e=Math.min(1,e||.7))<1?n||0===n?n:.7:0,r=(1-e)/2,i=r+e,a=g(t);return function(e){var n=e+(.5-e)*o;return e<r?a?1-(e=1-e/r)*e:n-(e=1-e/r)*e*e*e*n:i<e?a?1===e?0:1-(e=(e-i)/r)*e:n+(e-n)*(e=(e-i)/r)*e*e*e:a?1:n}}function j(n,e,t){var o=Math.log(e/n),r=e-n;return t=t&&w.parseEase(t),function(e){return(n*Math.exp(o*(t?t(e):e))-n)/r}}function k(e,n,t){this.t=e,this.v=n,t&&(((this.next=t).prev=this).c=t.v-n,this.gap=t.t-e)}function l(e){\"object\"!=typeof e&&(e={points:+e||20});for(var n,t,o,r,i,a,f,s=e.taper||\"none\",u=[],c=0,p=0|(+e.points||20),l=p,v=g(e.randomize,!0),d=g(e.clamp),h=w?w.parseEase(e.template):0,x=.4*(+e.strength||1);-1<--l;)n=v?Math.random():1/p*l,t=h?h(n):n,o=\"none\"===s?x:\"out\"===s?(r=1-n)*r*x:\"in\"===s?n*n*x:n<.5?(r=2*n)*r*.5*x:(r=2*(1-n))*r*.5*x,v?t+=Math.random()*o-.5*o:l%2?t+=.5*o:t-=.5*o,d&&(1<t?t=1:t<0&&(t=0)),u[c++]={x:n,y:t};for(u.sort(function(e,n){return e.x-n.x}),a=new k(1,1,null),l=p;l--;)i=u[l],a=new k(i.x,i.y,a);return f=new k(0,0,a.t?a:a.next),function(e){var n=f;if(e>n.t){for(;n.next&&e>=n.t;)n=n.next;n=n.prev}else for(;n.prev&&e<=n.t;)n=n.prev;return(f=n).v+(e-n.t)/n.gap*n.c}}var w,r,a=i(.7);(a.ease=a).config=i;var s=j(1,2);s.config=j;var u=l();(u.ease=u).config=l;var c={SlowMo:a,RoughEase:u,ExpoScaleEase:s};for(var n in c)c[n].register=h,c[n].version=\"3.4.2\";f()&&w.registerPlugin(a),e.EasePack=c,e.ExpoScaleEase=s,e.RoughEase=u,e.SlowMo=a,e.default=c;if (typeof(window)===\"undefined\"||window!==e){Object.defineProperty(e,\"__esModule\",{value:!0})} else {delete e.default}});\n\n","Nw_Additions/lib/gsap/PixiPlugin.min.js":"/*!\n * PixiPlugin 3.4.2\n * https://greensock.com\n * \n * @license Copyright 2020, GreenSock. All rights reserved.\n * Subject to the terms at https://greensock.com/standard-license or for Club GreenSock members, the agreement issued with that membership.\n * @author: Jack Doyle, [email protected]\n */\n\n!function(t,r){\"object\"==typeof exports&&\"undefined\"!=typeof module?r(exports):\"function\"==typeof define&&define.amd?define([\"exports\"],r):r((t=t||self).window=t.window||{})}(this,function(r){\"use strict\";function k(){return\"undefined\"!=typeof window}function l(){return o||k()&&(o=window.gsap)&&o.registerPlugin&&o}function m(t){return\"function\"==typeof t}function s(t,r){var i,o,e=[],n=0,s=0;for(i=0;i<4;i++){for(o=0;o<5;o++)s=4===o?t[n+4]:0,e[n+o]=t[n]*r[o]+t[n+1]*r[o+5]+t[n+2]*r[o+10]+t[n+3]*r[o+15]+s;n+=5}return e}function t(t,r){var i=1-r,o=i*p,e=i*g,n=i*b;return s([o+r,e,n,0,0,o,e+r,n,0,0,o,e,n+r,0,0,0,0,0,1,0],t)}function u(t,r,i){var o=c(r),e=o[0]/255,n=o[1]/255,l=o[2]/255,a=1-i;return s([a+i*e*p,i*e*g,i*e*b,0,0,i*n*p,a+i*n*g,i*n*b,0,0,i*l*p,i*l*g,a+i*l*b,0,0,0,0,0,1,0],t)}function v(t,r){r*=Math.PI/180;var i=Math.cos(r),o=Math.sin(r);return s([p+i*(1-p)+o*-p,g+i*-g+o*-g,b+i*-b+o*(1-b),0,0,p+i*-p+.143*o,g+i*(1-g)+.14*o,b+i*-b+-.283*o,0,0,p+i*-p+o*-(1-p),g+i*-g+o*g,b+i*(1-b)+o*b,0,0,0,0,0,1,0,0,0,0,0,1],t)}function w(t,r){return s([r,0,0,0,.5*(1-r),0,r,0,0,.5*(1-r),0,0,r,0,.5*(1-r),0,0,0,1,0],t)}function x(t,r){var i,o=h.filters[r],e=t.filters||[],n=e.length;for(o||function _warn(t){console.warn(t)}(r+\" not found. PixiPlugin.registerPIXI(PIXI)\");-1<--n;)if(e[n]instanceof o)return e[n];return i=new o,\"BlurFilter\"===r&&(i.blur=0),e.push(i),t.filters=e,i}function y(t,r,i,o){r.add(i,t,i[t],o[t]),r._props.push(t)}function z(t,r){var i=new h.filters.ColorMatrixFilter;return i.matrix=r,i.brightness(t,!0),i.matrix}function C(r,i,o){var e,n,s,l=x(r,\"ColorMatrixFilter\"),a=r._gsColorMatrixFilter=r._gsColorMatrixFilter||function _copy(t){var r,i={};for(r in t)i[r]=t[r];return i}(_),c=i.combineCMF&&!(\"colorMatrixFilter\"in i&&!i.colorMatrixFilter);s=l.matrix,i.resolution&&(l.resolution=i.resolution),i.matrix&&i.matrix.length===s.length?(n=i.matrix,1!==a.contrast&&y(\"contrast\",o,a,_),a.hue&&y(\"hue\",o,a,_),1!==a.brightness&&y(\"brightness\",o,a,_),a.colorizeAmount&&(y(\"colorize\",o,a,_),y(\"colorizeAmount\",o,a,_)),1!==a.saturation&&y(\"saturation\",o,a,_)):(n=f.slice(),null!=i.contrast?(n=w(n,+i.contrast),y(\"contrast\",o,a,i)):1!==a.contrast&&(c?n=w(n,a.contrast):y(\"contrast\",o,a,_)),null!=i.hue?(n=v(n,+i.hue),y(\"hue\",o,a,i)):a.hue&&(c?n=v(n,a.hue):y(\"hue\",o,a,_)),null!=i.brightness?(n=z(+i.brightness,n),y(\"brightness\",o,a,i)):1!==a.brightness&&(c?n=z(a.brightness,n):y(\"brightness\",o,a,_)),null!=i.colorize?(i.colorizeAmount=\"colorizeAmount\"in i?+i.colorizeAmount:1,n=u(n,i.colorize,i.colorizeAmount),y(\"colorize\",o,a,i),y(\"colorizeAmount\",o,a,i)):a.colorizeAmount&&(c?n=u(n,a.colorize,a.colorizeAmount):(y(\"colorize\",o,a,_),y(\"colorizeAmount\",o,a,_))),null!=i.saturation?(n=t(n,+i.saturation),y(\"saturation\",o,a,i)):1!==a.saturation&&(c?n=t(n,a.saturation):y(\"saturation\",o,a,_))),e=n.length;for(;-1<--e;)n[e]!==s[e]&&o.add(s,e,s[e],n[e],\"colorMatrixFilter\");o._props.push(\"colorMatrixFilter\")}function D(t,r){var i=r.t,o=r.p,e=r.color;(0,r.set)(i,o,e[0]<<16|e[1]<<8|e[2])}function E(t,r){var i=r.g;i&&(i.dirty++,i.clearDirty++)}function F(t,r){r.t.visible=!!r.t.alpha}function G(t,r,i,o){var e=t[r],n=c(m(e)?t[r.indexOf(\"set\")||!m(t[\"get\"+r.substr(3)])?r:\"get\"+r.substr(3)]():e),s=c(i);o._pt=new d(o._pt,t,r,0,0,D,{t:t,p:r,color:n,set:a(t,r)}
2),o.add(n,0,n[0],s[0]),o.add(n,1,n[1],s[1]),o.add(n,2,n[2],s[2])}function M(t){return\"string\"==typeof t}function N(t){return M(t)&&\"=\"===t.charAt(1)?t.substr(0,2)+parseFloat(t.substr(2))*j:t*j}function O(t,r){return r.set(r.t,r.p,1===t?r.e:Math.round(1e5*(r.s+r.c*t))/1e5,r)}function P(t,r,i,o,e,n){var s,l,a=360*(n?j:1),u=M(e),c=u&&\"=\"===e.charAt(1)?+(e.charAt(0)+\"1\"):0,f=parseFloat(c?e.substr(2):e)*(n?j:1),h=c?f*c:f-o,p=o+h;return u&&(\"short\"===(s=e.split(\"_\")[1])&&(h%=a)!==h%(a/2)&&(h+=h<0?a:-a),\"cw\"===s&&h<0?h=(h+1e10*a)%a-~~(h/a)*a:\"ccw\"===s&&0<h&&(h=(h-1e10*a)%a-~~(h/a)*a)),t._pt=l=new d(t._pt,r,i,o,h,O),l.e=p,l}function Q(){k()&&(i=window,o=l(),h=h||i.PIXI,c=function _splitColor(t){return o.utils.splitColor(\"0x\"===(t+\"\").substr(0,2)?\"#\"+t.substr(2):t)})}var o,i,c,h,d,a,e,n,f=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],p=.212671,g=.71516,b=.072169,_={contrast:1,saturation:1,colorizeAmount:0,colorize:\"rgb(255,255,255)\",hue:0,brightness:1},A={tint:1,lineColor:1,fillColor:1},I=\"position,scale,skew,pivot,anchor,tilePosition,tileScale\".split(\",\"),X={x:\"position\",y:\"position\",tileX:\"tilePosition\",tileY:\"tilePosition\"},S={colorMatrixFilter:1,saturation:1,contrast:1,hue:1,colorize:1,colorizeAmount:1,brightness:1,combineCMF:1},j=Math.PI/180;for(e=0;e<I.length;e++)n=I[e],X[n+\"X\"]=n,X[n+\"Y\"]=n;var Y={version:\"3.4.2\",name:\"pixi\",register:function register(t,r,i){o=t,d=i,a=r.getSetter,Q()},registerPIXI:function registerPIXI(t){h=t},init:function init(t,r){if(h||Q(),!t instanceof h.DisplayObject)return!1;var i,o,e,n,s,l,a,u,c,f=\"4\"===h.VERSION.charAt(0);for(l in r){if(i=X[l],e=r[l],i)o=~l.charAt(l.length-1).toLowerCase().indexOf(\"x\")?\"x\":\"y\",this.add(t[i],o,t[i][o],\"skew\"===i?N(e):e);else if(\"scale\"===l||\"anchor\"===l||\"pivot\"===l||\"tileScale\"===l)this.add(t[l],\"x\",t[l].x,e),this.add(t[l],\"y\",t[l].y,e);else if(\"rotation\"===l||\"angle\"===l)P(this,t,l,t[l],e,\"rotation\"===l);else if(S[l])n||(C(t,r.colorMatrixFilter||r,this),n=!0);else if(\"blur\"===l||\"blurX\"===l||\"blurY\"===l||\"blurPadding\"===l){if(s=x(t,\"BlurFilter\"),this.add(s,l,s[l],e),0!==r.blurPadding)for(a=r.blurPadding||2*Math.max(s[l],e),u=t.filters.length;-1<--u;)t.filters[u].padding=Math.max(t.filters[u].padding,a)}else if(A[l])if((\"lineColor\"===l||\"fillColor\"===l)&&t instanceof h.Graphics)for(c=(t.geometry||t).graphicsData,this._pt=new d(this._pt,t,l,0,0,E,{g:t.geometry||t}),u=c.length;-1<--u;)G(f?c[u]:c[u][l.substr(0,4)+\"Style\"],f?l:\"color\",e,this);else G(t,l,e,this);else\"autoAlpha\"===l?(this._pt=new d(this._pt,t,\"visible\",0,0,F),this.add(t,\"alpha\",t.alpha,e),this._props.push(\"alpha\",\"visible\")):\"resolution\"!==l&&this.add(t,l,\"get\",e);this._props.push(l)}}};l()&&o.registerPlugin(Y),r.PixiPlugin=Y,r.default=Y;if (typeof(window)===\"undefined\"||window!==r){Object.defineProperty(r,\"__esModule\",{value:!0})} else {delete r.default}});\n\n","Nw_Additions/lib/gsap/ScrollTrigger.min.js":"/*!\n * ScrollTrigger 3.4.2\n * https://greensock.com\n * \n * @license Copyright 2020, GreenSock. All rights reserved.\n * Subject to the terms at https://greensock.com/standard-license or for Club GreenSock members, the agreement issued with that membership.\n * @author: Jack Doyle, [email protected]\n */\n\n!function(e,t){\"object\"==typeof exports&&\"undefined\"!=typeof module?t(exports):\"function\"==typeof define&&define.amd?define([\"exports\"],t):t((e=e||self).window=e.window||{})}(this,function(e){\"use strict\";function H(e){return e}function I(){return\"undefined\"!=typeof window}function J(){return _e||I()&&(_e=window.gsap)&&_e.registerPlugin&&_e}function K(e){return!!~i.indexOf(e)}function L(e,t){return~He.indexOf(e)&&He[He.indexOf(e)+1][t]}function M(t,e){var r=e.s,n=e.sc,o=h.indexOf(t),i=~o?h[o+1]:L(t,r)||(K(t)?n:function(e){return arguments.length?t[r]=e:t[r]});return~o||h.push(t,i),i}function N(e){return L(e,\"getBoundingClientRect\")||(K(e)?function(){return ut.width=Pe.innerWidth,ut.height=Pe.innerHeight,ut}:function(){return ot(e)})}function Q(e,t){var r=t.s,n=t.d2,o=t.d,i=t.a;return(r=\"scroll\"+n)&&(i=L(e,r))?i()-N(e)()[o]:K(e)?Math.max(Me[r],Ee[r])-(Pe[\"inner\"+n]||Me[\"client\"+n]||Ee[\"client\"+n]):e[r]-e[\"offset\"+n]}function R(e,t){for(var r=0;r<p.length;r+=3)t&&!~t.indexOf(p[r+1])||e(p[r],p[r+1],p[r+2])}
2function S(e){return\"string\"==typeof e}function T(e){return\"function\"==typeof e}function U(e){return\"number\"==typeof e}function V(e){return\"object\"==typeof e}function W(e){return T(e)&&e()}function X(r,n){return function(){var e=W(r),t=W(n);return function(){W(e),W(t)}}}function qa(e){return Pe.getComputedStyle(e)}function sa(e,t){for(var r in t)r in e||(e[r]=t[r]);return e}function ua(e,t){var r=t.d2;return e[\"offset\"+r]||e[\"client\"+r]||0}function wa(t,r,e,n){return e.split(\",\").forEach(function(e){return t(r,e,n)})}function xa(e,t,r){return e.addEventListener(t,r,{passive:!0})}function ya(e,t,r){return e.removeEventListener(t,r)}function Ca(e,t){if(S(e)){var r=e.indexOf(\"=\"),n=~r?(e.charAt(r-1)+1)*parseFloat(e.substr(r+1)):0;n&&(e.indexOf(\"%\")>r&&(n*=t/100),e=e.substr(0,r-1)),e=n+(e in b?b[e]*t:~e.indexOf(\"%\")?parseFloat(e)*t/100:parseFloat(e)||0)}return e}function Da(e,t,r,n,o,i,a){var s=o.startColor,l=o.endColor,c=o.fontSize,f=o.indent,u=o.fontWeight,d=Oe.createElement(\"div\"),p=K(r)||\"fixed\"===L(r,\"pinType\"),g=-1!==e.indexOf(\"scroller\"),h=p?Ee:r,v=-1!==e.indexOf(\"start\"),m=v?s:l,b=\"border-color:\"+m+\";font-size:\"+c+\";color:\"+m+\";font-weight:\"+u+\";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;\";return b+=\"position:\"+(g&&p?\"fixed;\":\"absolute;\"),!g&&p||(b+=(n===nt?x:y)+\":\"+(i+parseFloat(f))+\"px;\"),a&&(b+=\"box-sizing:border-box;text-align:left;width:\"+a.offsetWidth+\"px;\"),d._isStart=v,d.setAttribute(\"class\",\"gsap-marker-\"+e),d.style.cssText=b,d.innerText=t||0===t?e+\"-\"+t:e,h.insertBefore(d,h.children[0]),d._offset=d[\"offset\"+n.op.d2],w(d,0,n,v),d}function Ha(){return l=l||s(B)}function Ia(){l||(l=s(B),Je||P(\"scrollStart\"),Je=De())}function Ja(){return!Ae&&a.restart(!0)}function Pa(e){var t=_e.ticker.frame,r=[],n=0;if(g!==t||We){for(A();n<_.length;n+=3)Pe.matchMedia(_[n]).matches?r.push(n):A(1,_[n])||T(_[n+2])&&_[n+2]();for(E(),n=0;n<r.length;n++)Fe=_[r[n]],_[r[n]+2]=_[r[n]+1](e);z(Fe=0,1),g=t}}function Qa(){return ya(Y,\"scrollEnd\",Qa)||z(!0)}function ab(e,t,r,n){if(e.parentNode!==t){for(var o,i=F.length,a=t.style,s=e.style;i--;)a[o=F[i]]=r[o];a.position=\"absolute\"===r.position?\"absolute\":\"relative\",\"inline\"===r.display&&(a.display=\"inline-block\"),s[y]=s[x]=\"auto\",a.overflow=\"visible\",a.boxSizing=\"border-box\",a[je]=ua(e,rt)+tt,a[Xe]=ua(e,nt)+tt,a[$e]=s[Ge]=s.top=s[m]=\"0\",ft(n),s[je]=r[je],s[Xe]=r[Xe],s[$e]=r[$e],e.parentNode.insertBefore(t,e),t.appendChild(e)}}function db(e){for(var t=D.length,r=e.style,n=[],o=0;o<t;o++)n.push(D[o],r[D[o]]);return n.t=e,n}function gb(e,t,r,n,o,i,a,s,l,c,f,u){if(T(e)&&(e=e(s)),S(e)&&\"max\"===e.substr(0,3)&&(e=u+(\"=\"===e.charAt(4)?Ca(\"0\"+e.substr(3),r):0)),U(e))a&&w(a,r,n,!0);else{T(t)&&(t=t(s));var d,p,g,h=Le(t)[0]||Ee,v=ot(h)||{},m=e.split(\" \");v&&(v.left||v.top)||\"none\"!==qa(h).display||(g=h.style.display,h.style.display=\"block\",v=ot(h),g?h.style.display=g:h.style.removeProperty(\"display\")),d=Ca(m[0],v[n.d]),p=Ca(m[1]||\"0\",r),e=v[n.p]-l[n.p]-c+d+o-p,a&&w(a,p,n,r-p<20||a._isStart&&20<p),r-=r-p}if(i){var b=e+r,x=i._isStart;u=\"scroll\"+n.d2,w(i,b,n,x&&20<b||!x&&(f?Math.max(Ee[u],Me[u]):i.parentNode[u])<=b+1),f&&(l=ot(a),f&&(i.style[n.op.p]=l[n.op.p]-n.op.m-i._offset+tt))}return Math.round(e)}function jb(l,e){var c,f=M(l,e),u=\"_scroll\"+e.p2;return l[u]=f,function getTween(e,t,r,n,o){var i=getTween.tween,a=t.onComplete,s={};return i&&i.kill(),c=f(),t[u]=e,(t.modifiers=s)[u]=function(e){return 7<Math.abs(f()-c)?(i.kill(),getTween.tween=0,e=f()):n&&(e=r+n*i.ratio+o*i.ratio*i.ratio),c=Math.round(e)},t.onComplete=function(){getTween.tween=0,a&&a.call(i)},i=getTween.tween=_e.to(l,t)}}var _e,o,Pe,Oe,Me,Ee,i,a,s,l,Le,Ie,Re,c,Ae,ze,f,Ne,u,d,p,qe,Be,Fe,g,We=1,He=[],h=[],De=Date.now,v=De(),Je=0,Qe=1,Ke=Math.abs,t=\"scrollLeft\",r=\"scrollTop\",m=\"left\",x=\"right\",y=\"bottom\",je=\"width\",Xe=\"height\",Ue=\"Right\",Ve=\"Left\",Ye=\"Top\",Ze=\"Bottom\",$e=\"padding\",Ge=\"margin\",et=\"Width\",n=\"Height\",tt=\"px\",rt={s:t,p:m,p2:Ve,os:x,os2:Ue,d:je,d2:et,a:\"x\",sc:function sc(e){return arguments.length?Pe.scrollTo(e,nt.sc()):Pe.pageXOffset||Oe[t]||Me[t]||Ee[t]||0}},nt={s:r,p:\"top\",p2:Ye,os:y,os2:Ze,d:Xe,d2:n,a:\"y\",op:rt,sc:function sc(e){return arguments.length?Pe.scrollTo(rt.sc(),e):Pe.pageYOffset||Oe[r]||Me[r]||Ee[r]||0}},ot=function _getBounds(e,t){var r=t&&\"matrix(1, 0, 0, 1, 0, 0)\"!==qa(e)[f]&&_e.to(e,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),n=e.getBoundingClientRect();return r&&r.progress(0).kill(),n},it={startColor:\"green\",endColor:\"red\",indent:0,fontSize:\"16px\",fontWeight:\"normal\"},at={toggleActions:\"play\",anticipatePin:0},b={top:0,left:0,center:.5,bottom:1,right:1},w=function _positionMarker(e,t,r,n){var o={display:\"block\"},i=r[n?\"os2\":\"p2\"],a=r[n?\"p2\":\"os2\"];e._isFlipped=n,o[r.a+\"Percent\"]=n?-100:0,o[r.a]=n?1:0,o[\"border\"+i+et]=1,o[\"border\"+a+et]=0,o[r.p]=t,_e.set(e,o)},st=[],lt={},C={},k=[],_=[],P=function _dispatch(e){return C[e]&&C[e].map(function(e){return e()})||k},O=[],E=function _revertRecorded(e){for(var t=0;t<O.length;t+=4)e&&O[t+3]!==e||(O[t].style.cssText=O[t+1],O[t+2].uncache=1)},A=function _revertAll(e,t){var r;for(Ne=0;Ne<st.length;Ne++)r=st[Ne],t&&r.media!==t||(e?r.kill(1):(r.scroll.rec||(r.scroll.rec=r.scroll()),r.revert()));E(t),t||P(\"revert\")},z=function _refreshAll(e,t){if(!Je||e){var r=P(\"refreshInit\");for(qe&&Y.sort(),t||A(),Ne=0;Ne<st.length;Ne++)st[Ne].refresh();for(r.forEach(function(e){return e&&e.render&&e.render(-1)}),Ne=st.length;
2Ne--;)st[Ne].scroll.rec=0;P(\"refresh\")}else xa(Y,\"scrollEnd\",Qa)},q=0,ct=1,B=function _updateAll(){var e=st.length,t=De(),r=50<=t-v,n=e&&st[0].scroll();if(ct=n<q?-1:1,q=n,r&&(Je&&!ze&&200<t-Je&&(Je=0,P(\"scrollEnd\")),Re=v,v=t),ct<0){for(Ne=e;Ne--;)st[Ne].update(0,r);ct=1}else for(Ne=0;Ne<e;Ne++)st[Ne]&&st[Ne].update(0,r);l=0},F=[m,\"top\",y,x,Ge+Ze,Ge+Ue,Ge+Ye,Ge+Ve,\"display\",\"flexShrink\",\"float\"],D=F.concat([je,Xe,\"boxSizing\",\"max\"+et,\"max\"+n,\"position\",Ge,$e,$e+Ye,$e+Ue,$e+Ze,$e+Ve]),j=/([A-Z])/g,ft=function _setState(e){if(e)for(var t,r,n=e.t.style,o=e.length,i=0;i<o;i+=2)r=e[i+1],t=e[i],r?n[t]=r:n[t]&&n.removeProperty(t.replace(j,\"-$1\").toLowerCase())},ut={left:0,top:0},dt=/(?:webkit|moz|length)/i;rt.op=nt;var Y=(ScrollTrigger.prototype.init=function init(b,x){if(this.progress=0,this.vars&&this.kill(1),Qe){var p,n,c,y,w,C,k,_,P,O,E,I,e,R,A,z,q,B,t,F,g,W,D,h,J,v,m,r,j,X,Y,Z,o,f,$,G,ee,te,re=(b=sa(S(b)||U(b)||b.nodeType?{trigger:b}:b,at)).horizontal?rt:nt,ne=b.onUpdate,oe=b.toggleClass,i=b.id,ie=b.onToggle,ae=b.onRefresh,a=b.scrub,se=b.trigger,le=b.pin,ce=b.pinSpacing,fe=b.invalidateOnRefresh,ue=b.anticipatePin,s=b.onScrubComplete,u=b.onSnapComplete,de=b.once,pe=b.snap,ge=b.pinReparent,he=!a&&0!==a,ve=Le(b.scroller||Pe)[0],l=_e.core.getCache(ve),d=K(ve),me=d||\"fixed\"===L(ve,\"pinType\"),be=[b.onEnter,b.onLeave,b.onEnterBack,b.onLeaveBack],xe=he&&(de?\"play\":b.toggleActions).split(\" \"),ye=\"markers\"in b?b.markers:at.markers,Te=d?0:parseFloat(qa(ve)[\"border\"+re.p2+et])||0,we=this,Se=b.onRefreshInit&&function(){return b.onRefreshInit(we)},Ce=function _getSizeFunc(e,t,r){var n=r.d,o=r.d2,i=r.a;return(i=L(e,\"getBoundingClientRect\"))?function(){return i()[n]}:function(){return(t?Pe[\"inner\"+o]:e[\"client\"+o])||0}}(ve,d,re),ke=function _getOffsetsFunc(e,t){return!t||~He.indexOf(e)?N(e):function(){return ut}}(ve,d);we.media=Fe,ue*=45,st.push(we),we.scroller=ve,we.scroll=M(ve,re),w=we.scroll(),we.vars=b,x=x||b.animation,\"refreshPriority\"in b&&(qe=1),l.tweenScroll=l.tweenScroll||{top:jb(ve,nt),left:jb(ve,rt)},we.tweenTo=p=l.tweenScroll[re.p],x&&(x.vars.lazy=!1,x._initted||!1!==x.vars.immediateRender&&!1!==b.immediateRender&&x.render(0,!0,!0),we.animation=x.pause(),x.scrollTrigger=we,(o=U(a)&&a)&&(Z=_e.to(x,{ease:\"power3\",duration:o,onComplete:function onComplete(){return s&&s(we)}})),j=0,i=i||x.vars.id),pe&&(V(pe)||(pe={snapTo:pe}),_e.set(d?[Ee,Me]:ve,{scrollBehavior:\"auto\"}),c=T(pe.snapTo)?pe.snapTo:\"labels\"===pe.snapTo?function _getLabels(i){return function(e){var t,r=[],n=i.labels,o=i.duration();for(t in n)r.push(n[t]/o);return _e.utils.snap(r,e)}}(x):_e.utils.snap(pe.snapTo),f=pe.duration||{min:.1,max:2},f=V(f)?Ie(f.min,f.max):Ie(f,f),$=_e.delayedCall(pe.delay||o/2||.1,function(){if(!Je||Je===Y&&!ze){var e=x&&!he?x.totalProgress():we.progress,t=(e-X)/(De()-Re)*1e3||0,r=Ke(t/2)*t/.185,n=e+r,o=Ie(0,1,c(n,we)),i=o-e-r,a=we.scroll(),s=Math.round(k+o*R),l=p.tween;if(a<=_&&k<=a){if(l&&!l._initted){if(l.data<=Math.abs(s-a))return;l.kill()}p(s,{duration:f(Ke(.185*Math.max(Ke(n-e),Ke(o-e))/t/.05||0)),ease:pe.ease||\"power3\",data:Math.abs(s-a),onComplete:function onComplete(){j=X=x&&!he?x.totalProgress():we.progress,u&&u(we)}},k+e*R,r*R,i*R)}}else $.restart(!0)}).pause()),i&&(lt[i]=we),se=we.trigger=Le(se||le)[0],le=!0===le?se:Le(le)[0],S(oe)&&(oe={targets:se,className:oe}),le&&(!1===ce||ce===Ge||(ce=\"flex\"!==qa(le.parentNode).display&&$e),we.pin=le,!1!==b.force3D&&_e.set(le,{force3D:!0}),(n=_e.core.getCache(le)).spacer?A=n.pinState:(n.spacer=B=Oe.createElement(\"div\"),B.setAttribute(\"class\",\"pin-spacer\"+(i?\" pin-spacer-\"+i:\"\")),n.pinState=A=db(le)),we.spacer=B=n.spacer,r=qa(le),h=r[ce+re.os2],F=_e.getProperty(le),g=_e.quickSetter(le,re.a,tt),le.firstChild&&!Q(le,re)&&(le.style.overflow=\"hidden\"),ab(le,B,r),q=db(le)),ye&&(e=V(ye)?sa(ye,it):it,E=Da(\"scroller-start\",i,ve,re,e,0),I=Da(\"scroller-end\",i,ve,re,e,0,E),t=E[\"offset\"+re.op.d2],P=Da(\"start\",i,ve,re,e,t),O=Da(\"end\",i,ve,re,e,t),me||(function _makePositionable(e){e.style.position=\"absolute\"===qa(e).position?\"absolute\":\"relative\"}(ve),_e.set([E,I],{force3D:!0}),v=_e.quickSetter(E,re.a,tt),m=_e.quickSetter(I,re.a,tt))),we.revert=function(e){var t=!1!==e||!we.enabled,r=Ae;t!==y&&(t&&(ee=Math.max(we.scroll(),we.scroll.rec||0),G=we.progress,te=x&&x.progress()),P&&[P,O,E,I].forEac
2h(function(e){return e.style.display=t?\"none\":\"block\"}),Ae=1,we.update(t),Ae=r,le&&(t?function _swapPinOut(e,t,r){if(ft(r),e.parentNode===t){var n=t.parentNode;n&&(n.insertBefore(e,t),n.removeChild(t))}}(le,B,A):ab(le,B,qa(le),J)),y=t)},we.refresh=function(e){if(!Ae&&we.enabled)if(le&&e&&Je)xa(ScrollTrigger,\"scrollEnd\",Qa);else{Ae=1,Z&&Z.kill(),fe&&x&&x.progress(0).invalidate(),y||we.revert();for(var t,r,n,o,i,a,s,l=Ce(),c=ke(),f=Q(ve,re),u=0,d=0,p=b.end,g=b.endTrigger||se,h=b.start||(le||!se?\"0 0\":\"0 100%\"),v=se&&Math.max(0,st.indexOf(we))||0,m=v;m--;)!(s=st[m].pin)||s!==se&&s!==le||st[m].revert();for(k=gb(h,se,l,re,we.scroll(),P,E,we,c,Te,me,f)||(le?-.001:0),T(p)&&(p=p(we)),S(p)&&!p.indexOf(\"+=\")&&(~p.indexOf(\" \")?p=(S(h)?h.split(\" \")[0]:\"\")+p:(u=Ca(p.substr(2),l),p=S(h)?h:k+u,g=se)),_=Math.max(k,gb(p||(g?\"100% 0\":f),g,l,re,we.scroll()+u,O,I,we,c,Te,me,f))||-.001,R=_-k||(k-=.01)&&.001,u=0,m=v;m--;)(s=(a=st[m]).pin)&&a.start-a._pinPush<k&&(t=a.end-a.start,s===se&&(u+=t),s===le&&(d+=t));if(k+=u,_+=u,we._pinPush=d,P&&u&&((t={})[re.a]=\"+=\"+u,_e.set([P,O],t)),le)t=qa(le),o=re===nt,n=we.scroll(),W=parseFloat(F(re.a))+d,ab(le,B,t),q=db(le),r=ot(le,!0),ce&&((J=[ce+re.os2,R+d+tt]).t=B,(m=ce===$e?ua(le,re)+R+d:0)&&J.push(re.d,m+tt),ft(J),me&&we.scroll(ee)),me&&((i={top:r.top+(o?n-k:0)+tt,left:r.left+(o?0:n-k)+tt,boxSizing:\"border-box\",position:\"fixed\"})[je]=i.maxWidth=Math.ceil(r.width)+tt,i[Xe]=i.maxHeight=Math.ceil(r.height)+tt,i[Ge]=i[Ge+Ye]=i[Ge+Ue]=i[Ge+Ze]=i[Ge+Ve]=\"0\",i[$e]=t[$e],i[$e+Ye]=t[$e+Ye],i[$e+Ue]=t[$e+Ue],i[$e+Ze]=t[$e+Ze],i[$e+Ve]=t[$e+Ve],z=function _copyState(e,t,r){for(var n,o=[],i=e.length,a=r?8:0;a<i;a+=2)n=e[a],o.push(n,n in t?t[n]:e[a+1]);return o.t=e.t,o}(A,i,ge)),x?(x.progress(1,!0),D=F(re.a)-W+R+d,R!==D&&z.splice(z.length-2,2),x.progress(0,!0)):D=R;else if(se&&we.scroll())for(r=se.parentNode;r&&r!==Ee;)r._pinOffset&&(k-=r._pinOffset,_-=r._pinOffset),r=r.parentNode;for(m=0;m<v;m++)!(a=st[m].pin)||a!==se&&a!==le||st[m].revert(!1);we.start=k,we.end=_,(w=C=we.scroll())<ee&&we.scroll(ee),we.revert(!1),Ae=0,te&&he&&x.progress(te,!0),G!==we.progress&&(Z&&x.totalProgress(G,!0),we.progress=G,we.update()),le&&ce&&(B._pinOffset=Math.round(we.progress*D)),ae&&ae(we)}},we.getVelocity=function(){return(we.scroll()-C)/(De()-Re)*1e3||0},we.update=function(e,t){var r,n,o,i,a,s=we.scroll(),l=e?0:(s-k)/R,c=l<0?0:1<l?1:l||0,f=we.progress;if(t&&(C=w,w=s,pe&&(X=j,j=x&&!he?x.totalProgress():c)),ue&&!c&&le&&!Ae&&!We&&Je&&k<s+(s-C)/(De()-Re)*ue&&(c=1e-4),c!==f&&we.enabled){if(i=(a=(r=we.isActive=!!c&&c<1)!=(!!f&&f<1))||!!c!=!!f,we.direction=f<c?1:-1,we.progress=c,he||(!Z||Ae||We?x&&x.totalProgress(c,!!Ae):(Z.vars.totalProgress=c,Z.invalidate().restart())),le)if(e&&ce&&(B.style[ce+re.os2]=h),me){if(i){if(o=!e&&f<c&&s<_+1&&s+1>=Q(ve,re),ge){if(!Ae&&(r||o)){var u=ot(le,!0),d=s-k;le.style.top=u.top+(re===nt?d:0)+tt,le.style.left=u.left+(re===nt?0:d)+tt}!function _reparent(e,t){if(e.parentNode!==t){var r,n,o=e.style;if(t===Ee)for(r in e._stOrig=o.cssText,n=qa(e))+r||dt.test(r)||!n[r]||\"string\"!=typeof o[r]||\"0\"===r||(o[r]=n[r]);else o.cssText=e._stOrig;t.appendChild(e)}}(le,Ae||!r&&!o?B:Ee)}ft(r||o?z:q),D!==R&&c<1&&r||g(W+(1!==c||o?0:D))}}else g(W+D*c);!pe||p.tween||Ae||We||(Y=Je,$.restart(!0)),oe&&a&&(!de||r)&&Le(oe.targets).forEach(function(e){return e.classList[r?\"add\":\"remove\"](oe.className)}),!ne||he||e||ne(we),i&&!Ae?(n=c&&!f?0:1===c?1:1===f?2:3,he&&(o=!a&&\"none\"!==xe[n+1]&&xe[n+1]||xe[n],x&&(\"complete\"===o||\"reset\"===o||o in x)&&(\"complete\"===o?x.pause().totalProgress(1):\"reset\"===o?x.restart(!0).pause():x[o]()),ne&&ne(we)),!a&&Be||(ie&&a&&ie(we),be[n]&&be[n](we),de&&(1===c?we.kill(!1,1):be[n]=0),a||be[n=1===c?1:3]&&be[n](we))):he&&ne&&!Ae&&ne(we)}m&&(v(s+(E._isFlipped?1:0)),m(s))},we.enable=function(){we.enabled||(we.enabled=!0,xa(ve,\"resize\",Ja),xa(ve,\"scroll\",Ia),Se&&xa(ScrollTrigger,\"refreshInit\",Se),x&&x.add?_e.delayedCall(.01,we.refresh)&&(R=.01)&&(k=_=0):we.refresh())},we.disable=function(e,t){if(we.enabled&&(!1!==e&&we.revert(),we.enabled=we.isActive=!1,t||Z&&Z.pause(),ee=0,n&&(n.uncache=1),Se&&ya(ScrollTrigger,\"refreshInit\",Se),$&&($.pause(),p.tween&&p.tween.kill()),!d)){for(var r=st.length;r--;)if(st[r].scroller===ve&&st[r]!==we)return;ya(ve,\"resize\",Ja),ya(ve,\"scroll\",Ia)}},we.kill=function(e,t){we.disable(e,t),i&&delete lt[i];var r=st.indexOf(we);st.splice(r,1),r===Ne&&0<ct&&Ne--,x&&(x.scrollTrigger=null,e&&x.render(-1),t&&Z||x.kill()),P&&[P,O,E,I].forEac
2h(function(e){return e.parentNode.removeChild(e)}),n&&(n.uncache=1)},we.enable()}else this.update=this.refresh=this.kill=H},ScrollTrigger.register=function register(e){if(!o&&(_e=e||J(),I()&&window.document&&(Pe=window,Oe=document,Me=Oe.documentElement,Ee=Oe.body),_e&&(Le=_e.utils.toArray,Ie=_e.utils.clamp,_e.core.globals(\"ScrollTrigger\",ScrollTrigger),Ee))){s=Pe.requestAnimationFrame||function(e){return setTimeout(e,16)},xa(Pe,\"mousewheel\",Ia),i=[Pe,Oe,Me,Ee],xa(Oe,\"scroll\",Ia);var t,r=Ee.style,n=r.borderTop;r.borderTop=\"1px solid #000\",t=ot(Ee),nt.m=Math.round(t.top+nt.sc())||0,rt.m=Math.round(t.left+rt.sc())||0,n?r.borderTop=n:r.removeProperty(\"border-top\"),c=setInterval(Ha,200),_e.delayedCall(.5,function(){return We=0}),xa(Oe,\"touchcancel\",H),xa(Ee,\"touchstart\",H),wa(xa,Oe,\"pointerdown,touchstart,mousedown\",function(){return ze=1}),wa(xa,Oe,\"pointerup,touchend,mouseup\",function(){return ze=0}),f=_e.utils.checkPrefix(\"transform\"),D.push(f),o=De(),a=_e.delayedCall(.2,z).pause(),p=[Oe,\"visibilitychange\",function(){var e=Pe.innerWidth,t=Pe.innerHe
2ight;Oe.hidden?(u=e,d=t):u===e&&d===t||Ja()},Oe,\"DOMContentLoaded\",z,Pe,\"load\",function(){return Je||z()},Pe,\"resize\",Ja],R(xa)}return o},ScrollTrigger.defaults=function defaults(e){for(var t in e)at[t]=e[t]},ScrollTrigger.kill=function kill(){Qe=0,st.slice(0).forEach(function(e){return e.kill(1)})},ScrollTrigger.config=function config(e){\"limitCallbacks\"in e&&(Be=!!e.limitCallbacks);var t=e.syncInterval;t&&clearInterval(c)||(c=t)&&setInterval(Ha,t),\"autoRefreshEvents\"in e&&(R(ya)||R(xa,e.autoRefreshEvents||\"none\"))},ScrollTrigger.scrollerProxy=function scrollerProxy(e,t){var r=Le(e)[0];K(r)?He.unshift(Pe,t,Ee,t,Me,t):He.unshift(r,t)},ScrollTrigger.matchMedia=function matchMedia(e){var t,r,n,o,i;for(r in e)n=_.indexOf(r),o=e[r],\"all\"===(Fe=r)?o():(t=Pe.matchMedia(r))&&(t.matches&&(i=o()),~n?(_[n+1]=X(_[n+1],o),_[n+2]=X(_[n+2],i)):(n=_.length,_.push(r,o,i),t.addListener?t.addListener(Pa):t.addEventListener(\"change\",Pa))),Fe=0;return _},ScrollTrigger);function ScrollTrigger(e,t){o||ScrollTrigger.register(_e)||console.warn(\"Please gsap.registerPlugin(ScrollTrigger)\"),this.init(e,t)}Y.version=\"3.4.2\",Y.saveStyles=function(e){return e?Le(e).forEach(function(e){var t=O.indexOf(e);0<=t&&O.splice(t,4),O.push(e,e.style.cssText,_e.core.getCache(e),Fe)}):O},Y.revert=function(e,t){return A(!e,t)},Y.create=function(e,t){return new Y(e,t)},Y.refresh=function(e){return e?Ja():z(!0)},Y.update=B,Y.maxScroll=function(e,t){return Q(e,t?rt:nt)},Y.getScrollFunc=function(e,t){return M(Le(e)[0],t?rt:nt)},Y.getById=function(e){return lt[e]},Y.getAll=function(){return st.slice(0)},Y.isScrolling=function(){return!!Je},Y.addEventListener=function(e,t){var r=C[e]||(C[e]=[]);~r.indexOf(t)||r.push(t)},Y.removeEventListener=function(e,t){var r=C[e],n=r&&r.indexOf(t);0<=n&&r.splice(n,1)},Y.batch=function(e,t){function Zh(e,t){var r=[],n=[],o=_e.delayedCall(i,function(){t(r,n),r=[],n=[]}).pause();return function(e){r.length||o.restart(!0),r.push(e.trigger),n.push(e),a<=r.length&&o.progress(1)}}var r,n=[],o={},i=t.interval||.016,a=t.batchMax||1e9;for(r in t)o[r]=\"on\"===r.substr(0,2)&&T(t[r])&&\"onRefreshInit\"!==r?Zh(0,t[r]):t[r];return T(a)&&(a=a(),xa(Y,\"refresh\",function(){return a=t.batchMax()})),Le(e).forEach(function(e){var t={};for(r in o)t[r]=o[r];t.trigger=e,n.push(Y.create(t))}),n},Y.sort=function(e){return st.sort(e||function(e,t){return-1e6*(e.vars.refreshPriority||0)+e.start-(t.start+-1e6*(t.vars.refreshPriority||0))})},J()&&_e.registerPlugin(Y),e.ScrollTrigger=Y,e.default=Y;if (typeof(window)===\"undefined\"||window!==e){Object.defineProperty(e,\"__esModule\",{value:!0})} else {delete e.default}});\n\n","Nw_Additions/lib/gsap/TextPlugin.min.js":"/*!\n * TextPlugin 3.4.2\n * https://greensock.com\n * \n * @license Copyright 2020, GreenSock. All rights reserved.\n * Subject to the terms at https://greensock.com/standard-license or for Club GreenSock members, the agreement issued with that membership.\n * @author: Jack Doyle, [email protected]\n */\n\n!function(D,u){\"object\"==typeof exports&&\"undefined\"!=typeof module?u(exports):\"function\"==typeof define&&define.amd?define([\"exports\"],u):u((D=D||self).window=D.window||{})}(this,function(D){\"use strict\";var B=/(^\\s+|\\s+$)/g,i=/([\\uD800-\\uDBFF][\\uDC00-\\uDFFF](?:[\\u200D\\uFE0F][\\uD800-\\uDBFF][\\uDC00-\\uDFFF]){2,}|\\uD83D\\uDC69(?:\\u200D(?:(?:\\uD83D\\uDC69\\u200D)?\\uD83D\\uDC67|(?:\\uD83D\\uDC69\\u200D)?\\uD83D\\uDC66)|\\uD83C[\\uDFFB-\\uDFFF])|\\uD83D\\uDC69\\u200D(?:\\uD83D\\uDC69\\u200D)?\\uD83D\\uDC66\\u200D\\uD83D\\uDC66|\\uD83D\\uDC69\\u200D(?:\\uD83D\\uDC69\\u200D)?\\uD83D\\uDC67\\u200D(?:\\uD83D[\\uDC66\\uDC67])|\\uD83C\\uDFF3\\uFE0F\\u200D\\uD83C\\uDF08|(?:\\uD83C[\\uDFC3\\uDFC4\\uDFCA]|\\uD83D[\\uDC6E\\uDC71\\uDC73\\uDC77\\uDC81\\uDC82\\uDC86\\uDC87\\uDE45-\\uDE47\\uDE4B\\uDE4D\\uDE4E\\uDEA3\\uDEB4-\\uDEB6]|\\uD83E[\\uDD26\\uDD37-\\uDD39\\uDD3D\\uDD3E\\uDDD6-\\uDDDD])(?:\\uD83C[\\uDFFB-\\uDFFF])\\u200D[\\u2640\\u2642]\\uFE0F|\\uD83D\\uDC69(?:\\uD83C[\\uDFFB-\\uDFFF])\\u200D(?:\\uD83C[\\uDF3E\\uDF73\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92])|(?:\\uD83C[\\uDFC3\\uDFC4\\uDFCA]|\\uD83D[\\uDC6E\\uDC6F\\uDC71\\uDC73\\uDC77\\uDC81\\uDC82\\uDC86\\uDC87\\uDE45-\\uDE47\\uDE4B\\uDE4D\\uDE4E\\uDEA3\\uDEB4-\\uDEB6]|\\uD83E[\\uDD26\\uDD37-\\uDD39\\uDD3C-\\uDD3E\\uDDD6-\\uDDDF])\\u200D[\\u2640\\u2642]\\uFE0F|\\uD83C\\uDDFD\\uD83C\\uDDF0|\\uD83C\\uDDF6\\uD83C\\uDDE6|\\uD83C\\uDDF4\\uD83C\\uDDF2|\\uD83C\\uDDE9(?:\\uD83C[\\uDDEA\\uDDEC\\uDDEF\\uDDF0\\uDDF2\\uDDF4\\uDDFF])|\\uD83C\\uDDF7(?:\\uD83C[\\uDDEA\\uDDF4\\uDDF8\\uDDFA\\uDDFC])|\\uD83C\\uDDE8(?:\\uD83C[\\uDDE6\\uDDE8\\uDDE9\\uDDEB-\\uDDEE\\uDDF0-\\uDDF5\\uDDF7\\uDDFA-\\uDDFF])|(?:\\u26F9|\\uD83C[\\uDFCB\\uDFCC]|\\uD83D\\uDD75)(?:\\uFE0F\\u200D[\\u2640\\u2642]|(?:\\uD83C[\\uDFFB-\\uDFFF])\\u200D[\\u2640\\u2642])\\uFE0F|(?:\\uD83D\\uDC41\\uFE0F\\u200D\\uD83D\\uDDE8|\\uD83D\\uDC69(?:\\uD83C[\\uDFFB-\\uDFFF])\\u200D[\\u2695\\u2696\\u2708]|\\uD83D\\uDC69\\u200D[\\u2695\\u2696\\u2708]|\\uD83D\\uDC68(?:(?:\\uD83C[\\uDFFB-\\uDFFF])\\u200D[\\u2695\\u2696\\u2708]|\\u200D[\\u2695\\u2696\\u2708]))\\uFE0F|\\uD83C\\uDDF2(?:\\uD83C[\\uDDE6\\uDDE8-\\uDDED\\uDDF0-\\uDDFF])|\\uD83D\\uDC69\\u200D(?:\\uD83C[\\uDF3E\\uDF73\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\u2764\\uFE0F\\u200D(?:\\uD83D\\uDC8B\\u200D(?:\\uD83D[\\uDC68\\uDC69])|\\uD83D[\\uDC68\\uDC69]))|\\uD83C\\uDDF1(?:\\uD83C[\\uDDE6-\\uDDE8\\uDDEE\\uDDF0\\uDDF7-\\uDDFB\\uDDFE])|\\uD83C\\uDDEF(?:\\uD83C[\\uDDEA\\uDDF2\\uDDF4\\uDDF5])|\\uD83C\\uDDED(?:\\uD83C[\\uDDF0\\uDDF2\\uDDF3\\uDDF7\\uDDF9\\uDDFA])|\\uD83C\\uDDEB(?:\\uD83C[\\uDDEE-\\uDDF0\\uDDF2\\uDDF4\\uDDF7])|[#\\*0-9]\\uFE0F\\u20E3|\\uD83C\\uDDE7(?:\\uD83C[\\uDDE6\\uDDE7\\uDDE9-\\uDDEF\\uDDF1-\\uDDF4\\uDDF6-\\uDDF9\\uDDFB\\uDDFC\\uDDFE\\uDDFF])|\\uD83C\\uDDE6(?:\\uD83C[\\uDDE8-\\uDDEC\\uDDEE\\uDDF1\\uDDF2\\uDDF4\\uDDF6-\\uDDFA\\uDDFC\\uDDFD\\uDDFF])|\\uD83C\\uDDFF(?:\\uD83C[\\uDDE6\\uDDF2\\uDDFC])|\\uD83C\\uDDF5(?:\\uD83C[\\uDDE6\\uDDEA-\\uDDED\\uDDF0-\\uDDF3\\uDDF7-\\uDDF9\\uDDFC\\uDDFE])|\\uD83C\\uDDFB(?:\\uD83C[\\uDDE6\\uDDE8\\uDDEA\\uDDEC\\uDDEE\\uDDF3\\uDDFA])|\\uD83C\\uDDF3(?:\\uD83C[\\uDDE6\\uDDE8\\uDDEA-\\uDDEC\\uDDEE\\uDDF1\\uDDF4\\uDDF5\\uDDF7\\uDDFA\\uDDFF])|\\uD83C\\uDFF4\\uDB40\\uDC67\\uDB40\\uDC62(?:\\uDB40\\uDC77\\uDB40\\uDC6C\\uDB40\\uDC73|\\uDB40\\uDC73\\uDB40\\uDC63\\uDB40\\uDC74|\\uDB40\\uDC65\\uDB40\\uDC6E\\uDB40\\uDC67
2)\\uDB40\\uDC7F|\\uD83D\\uDC68(?:\\u200D(?:\\u2764\\uFE0F\\u200D(?:\\uD83D\\uDC8B\\u200D)?\\uD83D\\uDC68|(?:(?:\\uD83D[\\uDC68\\uDC69])\\u200D)?\\uD83D\\uDC66\\u200D\\uD83D\\uDC66|(?:(?:\\uD83D[\\uDC68\\uDC69])\\u200D)?\\uD83D\\uDC67\\u200D(?:\\uD83D[\\uDC66\\uDC67])|\\uD83C[\\uDF3E\\uDF73\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92])|(?:\\uD83C[\\uDFFB-\\uDFFF])\\u200D(?:\\uD83C[\\uDF3E\\uDF73\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]))|\\uD83C\\uDDF8(?:\\uD83C[\\uDDE6-\\uDDEA\\uDDEC-\\uDDF4\\uDDF7-\\uDDF9\\uDDFB\\uDDFD-\\uDDFF])|\\uD83C\\uDDF0(?:\\uD83C[\\uDDEA\\uDDEC-\\uDDEE\\uDDF2\\uDDF3\\uDDF5\\uDDF7\\uDDFC\\uDDFE\\uDDFF])|\\uD83C\\uDDFE(?:\\uD83C[\\uDDEA\\uDDF9])|\\uD83C\\uDDEE(?:\\uD83C[\\uDDE8-\\uDDEA\\uDDF1-\\uDDF4\\uDDF6-\\uDDF9])|\\uD83C\\uDDF9(?:\\uD83C[\\uDDE6\\uDDE8\\uDDE9\\uDDEB-\\uDDED\\uDDEF-\\uDDF4\\uDDF7\\uDDF9\\uDDFB\\uDDFC\\uDDFF])|\\uD83C\\uDDEC(?:\\uD83C[\\uDDE6\\uDDE7\\uDDE9-\\uDDEE\\uDDF1-\\uDDF3\\uDDF5-\\uDDFA\\uDDFC\\uDDFE])|\\uD83C\\uDDFA(?:\\uD83C[\\uDDE6\\uDDEC\\uDDF2\\uDDF3\\uDDF8\\uDDFE\\uDDFF])|\\uD83C\\uDDEA(?:\\uD83C[\\uDDE6\\uDDE8\\uDDEA\\uDDEC\\uDDED\\uDDF7-\\uDDFA])|\\uD83C\\uDDFC(?:\\uD83C[\\uDDEB\\uDDF8])|(?:\\u26F9|\\uD83C[\\uDFCB\\uDFCC]|\\uD83D\\uDD75)(?:\\uD83C[\\uDFFB-\\uDFFF])|(?:\\uD83C[\\uDFC3\\uDFC4\\uDFCA]|\\uD83D[\\uDC6E\\uDC71\\uDC73\\uDC77\\uDC81\\uDC82\\uDC86\\uDC87\\uDE45-\\uDE47\\uDE4B\\uDE4D\\uDE4E\\uDEA3\\uDEB4-\\uDEB6]|\\uD83E[\\uDD26\\uDD37-\\uDD39\\uDD3D\\uDD3E\\uDDD6-\\uDDDD])(?:\\uD83C[\\uDFFB-\\uDFFF])|(?:[\\u261D\\u270A-\\u270D]|\\uD83C[\\uDF85\\uDFC2\\uDFC7]|\\uD83D[\\uDC42\\uDC43\\uDC46-\\uDC50\\uDC66\\uDC67\\uDC70\\uDC72\\uDC74-\\uDC76\\uDC78\\uDC7C\\uDC83\\uDC85\\uDCAA\\uDD74\\uDD7A\\uDD90\\uDD95\\uDD96\\uDE4C\\uDE4F\\uDEC0\\uDECC]|\\uD83E[\\uDD18-\\uDD1C\\uDD1E\\uDD1F\\uDD30-\\uDD36\\uDDD1-\\uDDD5])(?:\\uD83C[\\uDFFB-\\uDFFF])|\\uD83D\\uDC68(?:\\u200D(?:(?:(?:\\uD83D[\\uDC68\\uDC69])\\u200D)?\\uD83D\\uDC67|(?:(?:\\uD83D[\\uDC68\\uDC69])\\u200D)?\\uD83D\\uDC66)|\\uD83C[\\uDFFB-\\uDFFF])|(?:[\\u261D\\u26F9\\u270A-\\u270D]|\\uD83C[\\uDF85\\uDFC2-\\uDFC4\\uDFC7\\uDFCA-\\uDFCC]|\\uD83D[\\uDC42\\uDC43\\uDC46-\\uDC50\\uDC66-\\uDC69\\uDC6E\\uDC70-\\uDC78\\uDC7C\\uDC81-\\uDC83\\uDC85-\\uDC87\\uDCAA\\uDD74\\uDD75\\uDD7A\\uDD90\\uDD95\\uDD96\\uDE45-\\uDE47\\uDE4B-\\uDE4F\\uDEA3\\uDEB4-\\uDEB6\\uDEC0\\uDECC]|\\uD83E[\\uDD18-\\uDD1C\\uDD1E\\uDD1F\\uDD26\\uDD30-\\uDD39\\uDD3D\\uDD3E\\uDDD1-\\uDDDD])(?:\\uD83C[\\uDFFB-\\uDFFF])?|(?:[\\u231A\\u231B\\u23E9-\\u23EC\\u23F0\\u23F3\\u25FD\\u25FE\\u2614\\u2615\\u2648-\\u2653\\u267F\\u2693\\u26A1\\u26AA\\u26AB\\u26BD\\u26BE\\u26C4\\u26C5\\u26CE\\u26D4\\u26EA\\u26F2\\u26F3\\u26F5\\u26FA\\u26FD\\u2705\\u270A\\u270B\\u2728\\u274C\\u274E\\u2753-\\u2755\\u2757\\u2795-\\u2797\\u27B0\\u27BF\\u2B1B\\u2B1C\\u2B50\\u2B55]|\\uD83C[\\uDC04\\uDCCF\\uDD8E\\uDD91-\\uDD9A\\uDDE6-\\uDDFF\\uDE01\\uDE1A\\uDE2F\\uDE32-\\uDE36\\uDE38-\\uDE3A\\uDE50\\uDE51\\uDF00-\\uDF20\\uDF2D-\\uDF35\\uDF37-\\uDF7C\\uDF7E-\\uDF93\\uDFA0-\\uDFCA\\uDFCF-\\uDFD3\\uDFE0-\\uDFF0\\uDFF4\\uDFF8-\\uDFFF]|\\uD83D[\\uDC00-\\uDC3E\\uDC40\\uDC42-\\uDCFC\\uDCFF-\\uDD3D\\uDD4B-\\uDD4E\\uDD50-\\uDD67\\uDD7A\\uDD95\\uDD96\\uDDA4\\uDDFB-\\uDE4F\\uDE80-\\uDEC5\\uDECC\\uDED0-\\uDED2\\uDEEB\\uDEEC\\uDEF4-\\uDEF8]|\\uD83E[\\uDD10-\\uDD3A\\uDD3C-\\uDD3E\\uDD40-\\uDD45\\uDD47-\\uDD4C\\uDD50-\\uDD6B\\uDD80-\\uDD97\\uDDC0\\uDDD0-\\uDDE6])|(?:[#\\*0-9\\xA9\\xAE\\u203C\\u2049\\u2122\\u2139\\u2194-\\u2199\\u21A9\\u21AA\\u231A\\u231B\\u2328\\u23CF\\u23E9-\\u23F3\\u23F8-\\u23FA\\u24C2\\u25AA\\u25AB\\u25B6\\u25C0\\u25FB-\\u25FE\\u2600-\\u2604\\u260E\\u2611\\u2614\\u2615\\u2618\\u261D\\u2620\\u2622\\u2623\\u2626\\u262A\\u262E\\u262F\\u2638-\\u263A\\u2640\\u2642\\u2648-\\u2653\\u2660\\u2663\\u2665\\u2666\\u2668\\u267B\\u267F\\u2692-\\u2697\\u2699\\u269B\\u269C\\u26A0\\u26A1\\u26AA\\u26AB\\u26B0\\u26B1\\u26BD\\u26BE\\u26C4\\u26C5\\u26C8\\u26CE\\u26CF\\u26D1\\u26D3\\u26D4\\u26E9\\u26EA\\u26F0-\\u26F5\\u26F7-\\u26FA\\u26FD\\u2702\\u2705\\u2708-\\u270D\\u270F\\u2712\\u2714\\u2716\\u271D\\u2721\\u2728\\u2733\\u2734\\u2744\\u2747\\u274C\\u274E\\u2753-\\u2755\\u2757\\u2763\\u2764\\u2795-\\u2797\\u27A1\\u27B0\\u27BF\\u2934\\u2935\\u2B05-\\u2B07\\u2B1B\\u2B1C\\u2B50\\u2B55\\u3030\\u303D\\u3297\\u3299]|\\uD83C[\\uDC04\\uDCCF\\uDD70\\uDD71\\uDD7E\\uDD7F\\uDD8E\\uDD91-\\uDD9A\\uDDE6-\\uDDFF\\uDE01\\uDE02\\uDE1A\\uDE2F\\uDE32-\\uDE3A\\uDE50\\uDE51\\uDF00-\\uDF21\\uDF24-\\uDF93\\uDF96\\uDF97\\uDF99-\\uDF9B\\uDF9E-\\uDFF0\\uDFF3-\\uDFF5\\uDFF7-\\uDFFF]|\\uD83D[\\uDC00-\\uDCFD\\uDCFF-\\uDD3D\\uDD49-\\uDD4E\\uDD50-\\uDD67\\uDD6F\\uDD70\\uDD73-\\uDD7A\\uDD87\\uDD8A-\\uDD8D\\uDD90\\uDD95\\uDD96\\uDDA4\\uDDA5\\uDDA8\\uDDB1\\uDD
2B2\\uDDBC\\uDDC2-\\uDDC4\\uDDD1-\\uDDD3\\uDDDC-\\uDDDE\\uDDE1\\uDDE3\\uDDE8\\uDDEF\\uDDF3\\uDDFA-\\uDE4F\\uDE80-\\uDEC5\\uDECB-\\uDED2\\uDEE0-\\uDEE5\\uDEE9\\uDEEB\\uDEEC\\uDEF0\\uDEF3-\\uDEF8]|\\uD83E[\\uDD10-\\uDD3A\\uDD3C-\\uDD3E\\uDD40-\\uDD45\\uDD47-\\uDD4C\\uDD50-\\uDD6B\\uDD80-\\uDD97\\uDDC0\\uDDD0-\\uDDE6])\\uFE0F)/;function splitInnerHTML(D,u,F){for(var C=D.firstChild,E=[];C;)3===C.nodeType?E.push.apply(E,emojiSafeSplit((C.nodeValue+\"\").replace(/^\\n+/g,\"\").replace(/\\s+/g,\" \"),u,F)):\"br\"===(C.nodeName+\"\").toLowerCase()?E[E.length-1]+=\"<br>\":E.push(C.outerHTML),C=C.nextSibling;return E}function emojiSafeSplit(D,u,F){if(D+=\"\",F&&(D=D.replace(B,\"\")),u&&\"\"!==u)return D.replace(/>/g,\"&gt;\").replace(/</g,\"&lt;\").split(u);for(var C,E,e=[],t=D.length,n=0;n<t;n++)(55296<=(E=D.charAt(n)).charCodeAt(0)&&E.charCodeAt(0)<=56319||65024<=D.charCodeAt(n+1)&&D.charCodeAt(n+1)<=65039)&&(C=((D.substr(n,12).split(i)||[])[1]||\"\").length||2,E=D.substr(n,C),n+=C-(e.emoji=1)),e.push(\">\"===E?\"&gt;\":\"<\"===E?\"&lt;\":E);return e}var u,l,F={version:\"3.4.2\",name:\"text\",init:function init(D,u,F){var C,E,e,t,n,B,i,A,r=D.nodeName.toUpperCase(),s=this;if(s.svg=D.getBBox&&(\"TEXT\"===r||\"TSPAN\"===r),!(\"innerHTML\"in D||s.svg))return!1;if(s.target=D,\"object\"!=typeof u&&(u={value:u}),\"value\"in u){for(s.delimiter=u.delimiter||\"\",e=splitInnerHTML(D,s.delimiter),(l=l||document.createElement(\"div\")).innerHTML=u.value,E=splitInnerHTML(l,s.delimiter),s.from=F._from,s.from&&(r=e,e=E,E=r),s.hasClass=!(!u.newClass&&!u.oldClass),s.newClass=u.newClass,s.oldClass=u.oldClass,C=(r=e.length-E.length)<0?e:E,s.fillChar=u.fillChar||(u.padSpace?\"&nbsp;\":\"\"),r<0&&(r=-r);-1<--r;)C.push(s.fillChar);if(\"diff\"===u.type){for(n=[],B=[],i=\"\",r=t=0;r<E.length;r++)(A=E[r])===e[r]?i+=A:(n[t]=i+A,B[t++]=i+e[r],i=\"\");E=n,e=B,i&&(E.push(i),e.push(i))}u.speed&&F.duration(Math.min(.05/u.speed*C.length,u.maxDuration||9999)),this.original=e,this.text=E,this._props.push(\"text\")}else s.text=s.original=[\"\"]},render:function render(D,u){1<D?D=1:D<0&&(D=0),u.from&&(D=1-D);var F,C,E,e=u.text,t=u.hasClass,n=u.newClass,B=u.oldClass,i=u.delimiter,A=u.target,r=u.fillChar,s=u.original,l=e.length,o=D*l+.5|0;E=t?(C=B&&o!==l,((F=n&&o)?\"<span class='\"+n+\"'>\":\"\")+e.slice(0,o).join(i)+(F?\"</span>\":\"\")+(C?\"<span class='\"+B+\"'>\":\"\")+i+s.slice(o).join(i)+(C?\"</span>\":\"\")):e.slice(0,o).join(i)+i+s.slice(o).join(i),u.svg?A.textContent=E:A.innerHTML=\"&nbsp;\"===r&&~E.indexOf(\"  \")?E.split(\"  \").join(\"&nbsp;&nbsp;\"):E}};F.splitInnerHTML=splitInnerHTML,F.emojiSafeSplit=emojiSafeSplit,F.getText=function getText(D){var u=D.nodeType,F=\"\";if(1===u||9===u||11===u){if(\"string\"==typeof D.textContent)return D.textContent;for(D=D.firstChild;D;D=D.nextSibling)F+=getText(D)}else if(3===u||4===u)return D.nodeValue;return F},function _getGSAP(){return u||\"undefined\"!=typeof window&&(u=window.gsap)&&u.registerPlugin&&u}()&&u.registerPlugin(F),D.TextPlugin=F,D.default=F;if (typeof(window)===\"undefined\"||window!==D){Object.defineProperty(D,\"__esModule\",{value:!0})} else {delete D.default}});\n\n","Nw_Additions/lib/gsap/ScrollToPlugin.min.js":"/*!\n * ScrollToPlugin 3.4.2\n * https://greensock.com\n * \n * @license Copyright 2020, GreenSock. All rights reserved.\n * Subject to the terms at https://greensock.com/standard-license or for Club GreenSock members, the agreement issued with that membership.\n * @author: Jack Doyle, [email protected]\n */\n\n!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?e(exports):\"function\"==typeof define&&define.amd?define([\"exports\"],e):e((t=t||self).window=t.window||{})}(this,function(t){\"use strict\";function k(){return\"undefined\"!=typeof window}function l(){return e||k()&&(e=window.gsap)&&e.registerPlugin&&e}function m(t){return\"string\"==typeof t}function n(t,e){var o=\"x\"===e?\"Width\":\"Height\",n=\"scroll\"+o,r=\"client\"+o;return t===x||t===s||t===f?Math.max(s[n],f[n])-(x[\"inner\"+o]||s[r]||f[r]):t[n]-t[\"offset\"+o]}function o(t,e){var o=\"scroll\"+(\"x\"===e?\"Left\":\"Top\");return t===x&&(null!=t.pageXOffset?o=\"page\"+e.toUpperCase()+\"Offset\":t=null!=s[o]?s:f),function(){return t[o]}}function p(t,e){var n=a(t)[0].getBoundingClientRect(),r=!e||e===x||e===f,i=r?{top:s.clientTop-(x.pageYOffset||s.scrollTop||f.scrollTop||0),left
2:s.clientLeft-(x.pageXOffset||s.scrollLeft||f.scrollLeft||0)}:e.getBoundingClientRect(),l={x:n.left-i.left,y:n.top-i.top};return!r&&e&&(l.x+=o(e,\"x\")(),l.y+=o(e,\"y\")()),l}function q(t,e,o,r){return isNaN(t)||\"object\"==typeof t?m(t)&&\"=\"===t.charAt(1)?parseFloat(t.substr(2))*(\"-\"===t.charAt(0)?-1:1)+r:\"max\"===t?n(e,o):Math.min(n(e,o),p(t,e)[o]):parseFloat(t)}function r(){e=l(),k()&&e&&document.body&&(x=window,f=document.body,s=document.documentElement,a=e.utils.toArray,e.config({autoKillThreshold:7}),g=e.config(),u=1)}var e,u,x,s,f,a,g,i={version:\"3.4.2\",name:\"scrollTo\",rawVars:1,register:function register(t){e=t,r()},init:function init(t,e,n,i,l){u||r();var s=this;s.isWin=t===x,s.target=t,s.tween=n,\"object\"!=typeof e?m((e={y:e}).y)&&\"max\"!==e.y&&\"=\"!==e.y.charAt(1)&&(e.x=e.y):e.nodeType&&(e={y:e,x:e}),s.vars=e,s.autoKill=!!e.autoKill,s.getX=o(t,\"x\"),s.getY=o(t,\"y\"),s.x=s.xPrev=s.getX(),s.y=s.yPrev=s.getY(),null!=e.x?(s.add(s,\"x\",s.x,q(e.x,t,\"x\",s.x)-(e.offsetX||0),i,l,Math.round),s._props.push(\"scrollTo_x\")):s.skipX=1,null!=e.y?(s.add(s,\"y\",s.y,q(e.y,t,\"y\",s.y)-(e.offsetY||0),i,l,Math.round),s._props.push(\"scrollTo_y\")):s.skipY=1},render:function render(t,e){for(var o,r,i,l,s,u=e._pt,f=e.target,p=e.tween,a=e.autoKill,c=e.xPrev,y=e.yPrev,d=e.isWin;u;)u.r(t,u.d),u=u._next;o=d||!e.skipX?e.getX():c,i=(r=d||!e.skipY?e.getY():y)-y,l=o-c,s=g.autoKillThreshold,e.x<0&&(e.x=0),e.y<0&&(e.y=0),a&&(!e.skipX&&(s<l||l<-s)&&o<n(f,\"x\")&&(e.skipX=1),!e.skipY&&(s<i||i<-s)&&r<n(f,\"y\")&&(e.skipY=1),e.skipX&&e.skipY&&(p.kill(),e.vars.onAutoKill&&e.vars.onAutoKill.apply(p,e.vars.onAutoKillParams||[]))),d?x.scrollTo(e.skipX?o:e.x,e.skipY?r:e.y):(e.skipY||(f.scrollTop=e.y),e.skipX||(f.scrollLeft=e.x)),e.xPrev=e.x,e.yPrev=e.y},kill:function kill(t){var e=\"scrollTo\"===t;!e&&\"scrollTo_x\"!==t||(this.skipX=1),!e&&\"scrollTo_y\"!==t||(this.skipY=1)}};i.max=n,i.getOffset=p,i.buildGetter=o,l()&&e.registerPlugin(i),t.ScrollToPlugin=i,t.default=i;if (typeof(window)===\"undefined\"||window!==t){Object.defineProperty(t,\"__esModule\",{value:!0})} else {delete t.default}});\n\n","Nw_Additions/lib/gsap/Draggable.min.js":"/*!\n * Draggable 3.4.2\n * https://greensock.com\n * \n * @license Copyright 2020, GreenSock. All rights reserved.\n * Subject to the terms at https://greensock.com/standard-license or for Club GreenSock members, the agreement issued with that membership.\n * @author: Jack Doyle, [email protected]\n */\n\n!function(e,t){\"object\"==typeof exports&&\"undefined\"!=typeof module?t(exports):\"function\"==typeof define&&define.amd?define([\"exports\"],t):t((e=e||self).window=e.window||{})}(this,function(e){\"use strict\";function v(e,t){if(e.parentNode&&(p||w(e))){var n=S(e),o=n?n.getAttribute(\"xmlns\")||\"http://www.w3.org/2000/svg\":\"http://www.w3.org/1999/xhtml\",r=n?t?\"rect\":\"g\":\"div\",i=2!==t?0:100,a=3===t?100:0,l=\"position:absolute;display:block;pointer-events:none;\",s=p.createElementNS?p.createElementNS(o.replace(/^https/,\"http\"),r):p.createElement(r);return t&&(n?(h=h||v(e),s.setAttribute(\"width\",.01),s.setAttribute(\"height\",.01),s.setAttribute(\"transform\",\"translate(\"+i+\",\"+a+\")\"),h.appendChild(s)):(u||((u=v(e)).style.cssText=l),s.style.cssText=l+\"width:0.1px;height:0.1px;top:\"+a+\"px;left:\"+i+\"px\",u.appendChild(s))),s}throw\"Need document and parent.\"}function y(e,t,n,o,r,i,a){return e.a=t,e.b=n,e.c=o,e.d=r,e.e=i,e.f=a,e}var p,d,r,i,u,h,f,g,t,x=\"transform\",m=x+\"Origin\",w=function _setDoc(e){var t=e.ownerDocument||e;!(x in e.style)&&\"msTransform\"in e.style&&(m=(x=\"msTransform\")+\"Origin\");for(;t.parentNode&&(t=t.parentNode););if(d=window,f=new fe,t){r=(p=t).documentElement,i=t.body;var n=t.createElement(\"div\"),o=t.createElement(\"div\");i.appendChild(n),n.appendChild(o),n.style.position=\"static\",n.style[x]=\"translate3d(0,0,1px)\",g=o.offsetParent!==n,i.removeChild(n)}return t},b=function _forceNonZeroScale(e){for(var t,n;e&&e!==i;)(n=e._gsap)&&!n.scaleX&&!n.scaleY&&n.renderTransform&&(n.scaleX=n.scaleY=1e-4,n.renderTransform(1,n),t?t.push(n):t=[n]),e=e.parentNode;return t},D=[],L=[],M=function _getDocScrollTop(){return d.pageYOffset||p.scrollTop||r.scrollTop||i.scrollTop||0},E=function _getDocScrollLeft(){return d.pageXOffset||p.scrollLeft||r.scrollLeft||i.scrollLeft||0},S=function _svgOwner(e){return e.ownerSVGElement||(\"svg\"===(e.tagName+\"\").toLowerCase()?e:null)},P=function _isFixed(e){return\"fixed\"===d.getComputedStyle(e).position||((e=e.parentNode)&&1===e.nodeType?_isFixed(e):void 0)},k=function _placeSiblings(e,t){var n,o,r,i,a,l=S(e),s=e===l,c=l?D:L;if(e===d)return e;if(c.length||c.push(v(e,1),v(e,2),v(e,3)),n=l?h:u,l)r=s?{x:0,y:0}:e.getBBox(),a=(o=e.transform?e.transform.baseVal:{}).numberOfItems?(i=(o=1<o.numberOfItems?function _consolidate(e){for(var t=new fe,n=0;n<e.numberOfItems;n++)t.multiply(e.getItem(n).matrix);return t}(o):o.getItem(0).matrix).a*r.x+o.c*r.y,o.b*r.x+o.d*r.y):(o=f,i=r.x,r.y),t&&\"g\"===e.tagName.toLowerCase()&&(i=a=0),n.setAttribute(\"transform\",\"matrix(\"+o.a+\",\"+o.b+\",\"+o.c+\",\"+o.d+\",\"+(o.e+i)+\",\"+(o.f+a)+\")\"),(s?l:e.parentNode).appendChild(n);else{if(i=a=0,g)for(o=e.offsetParent,r=e;(r=r&&r.parentNode)&&r!==o&&r.parentNode;)4<(d.getComputedStyle(r)[x]+\"\").length&&(i=r.offsetLeft,a=r.offsetTop,r=0);(r=n.style).top=e.offsetTop-a+\"px\",r.left=e.offsetLeft-i+\"px\",o=d.getComputedStyle(e),r[x]=o[x],r[m]=o[m],r.border=o.border,r.borderLeftStyle=o.borderLeftStyle,r.borderTopStyle=o.borderTopStyle,r.borderLeftWidth=o.borderLeftWidth,r.borderTopWidth=o.borderTopWidth,r.position=\"fixed\"===o.position?\"fixed\":\"absolute\",e.parentNode.appendChild(n)}return n},fe=((t=Matrix2D.prototype).inverse=function inverse(){var e=this.a,t=this.b,n=this.c,o=this.d,r=this.e,i=this.f,a=e*o-t*n||1e-10;return y(this,o/a,-t/a,-n/a,e/a,(n*i-o*r)/a,-(e*i-t*r)/a)},t.multiply=function multiply(e){var t=this.a,n=this.b,o=this.c,r=this.d,i=this.e,a=this.f,l=e.a,s=e.c,c=e.b,d=e.d,u=e.e,p=e.f;return y(this,l*t+c*o,l*n+c*r,s*t+d*o,s*n+d*r,i+u*t+p*o,a+u*n+p*r)},t.clone=function clone(){return new Matrix2D(this.a,this.b,this.c,this.d,this.e,this.f)},t.equals=function equals(e){var t=this.a,n=this.b,o=this.c,r=this.d,i=this.e,a=this.f;return t===e.a&&n===e.b&&o===e.c&&r===e.d&&i===e.e&&a===e.f},t.apply=function apply(e,t){void 0===t&&(t={});var n=e.x,o=e.y,r=this.a,i=this.b,a=this.c,l=this.d,s=this.e,c=this.f;
vendor: 8,579 bytes, line 2
2return t.x=n*r+o*a+s||0,t.y=n*i+o*l+c||0,t},Matrix2D);function Matrix2D(e,t,n,o,r,i){void 0===e&&(e=1),void 0===t&&(t=0),void 0===n&&(n=0),void 0===o&&(o=1),void 0===r&&(r=0),void 0===i&&(i=0),y(this,e,t,n,o,r,i)}function getGlobalMatrix(e,t,n){if(!e||!e.parentNode||(p||w(e)).documentElement===e)return new fe;var o=b(e.parentNode),r=S(e)?D:L,i=k(e,n),a=r[0].getBoundingClientRect(),l=r[1].getBoundingClientRect(),s=r[2].getBoundingClientRect(),c=i.parentNode,d=P(e),u=new fe((l.left-a.left)/100,(l.top-a.top)/100,(s.left-a.left)/100,(s.top-a.top)/100,a.left+(d?0:E()),a.top+(d?0:M()));if(c.removeChild(i),o)for(a=o.length;a--;)(l=o[a]).scaleX=l.scaleY=0,l.renderTransform(1,l);return t?u.inverse():u}function T(){return\"undefined\"!=typeof window}function U(){return ge||T()&&(ge=window.gsap)&&ge.registerPlugin&&ge}function V(e){return\"function\"==typeof e}function W(e){return\"object\"==typeof e}function X(e){return void 0===e}function Y(){return!1}function _(e){return Math.round(1e4*e)/1e4}function ba(e,t){var n=me.createElementNS?me.createElementNS((t||\"http://www.w3.org/1999/xhtml\").replace(/^https/,\"http\"),e):me.createElement(e);return n.style?n:me.createElement(e)}function na(e,t){var n,o={};for(n in e)o[n]=t?e[n]*t:e[n];return o}function pa(){return Ne.forEach(function(e){return e()})}function ra(){return!Ne.length&&ge.ticker.remove(pa)}function sa(e){for(var t=Ne.length;t--;)Ne[t]===e&&Ne.splice(t,1);ge.to(ra,{overwrite:!0,delay:15,duration:0,onComplete:ra,data:\"_draggable\"})}function ua(e,t,n,o){if(e.addEventListener){var r=Te[t];o=o||(N?{passive:!1}:null),e.addEventListener(r||t,n,o),r&&t!==r&&e.addEventListener(t,n,o)}}function va(e,t,n){if(e.removeEventListener){var o=Te[t];e.removeEventListener(o||t,n),o&&t!==o&&e.removeEventListener(t,n)}}function wa(e){e.preventDefault&&e.preventDefault(),e.preventManipulation&&e.preventManipulation()}function ya(e){Le=e.touches&&De<e.touches.length,va(e.target,\"touchend\",ya)}function za(e){Le=e.touches&&De<e.touches.length,ua(e.target,\"touchend\",ya)}function Aa(e){return xe.pageYOffset||e.scrollTop||e.documentElement.scrollTop||e.body.scrollTop||0}function Ba(e){return xe.pageXOffset||e.scrollLeft||e.documentElement.scrollLeft||e.body.scrollLeft||0}function Ca(e,t){ua(e,\"scroll\",t),We(e.parentNode)||Ca(e.parentNode,t)}function Da(e,t){va(e,\"scroll\",t),We(e.parentNode)||Da(e.parentNode,t)}function Fa(e,t){var n=\"x\"===t?\"Width\":\"Height\",o=\"scroll\"+n,r=\"client\"+n;return Math.max(0,We(e)?Math.max(ve[o],l[o])-(xe[\"inner\"+n]||ve[r]||l[r]):e[o]-e[r])}function Ga(e,t){var n=Fa(e,\"x\"),o=Fa(e,\"y\");We(e)?e=Ie:Ga(e.parentNode,t),e._gsMaxScrollX=n,e._gsMaxScrollY=o,t||(e._gsScrollX=e.scrollLeft||0,e._gsScrollY=e.scrollTop||0)}function Ha(e,t,n){var o=e.style;o&&(X(o[t])&&(t=C(t,e)||t),null==n?o.removeProperty&&o.removeProperty(t.replace(/([A-Z])/g,\"-$1\").toLowerCase()):o[t]=n)}function Ia(e){return xe.getComputedStyle(e instanceof Element?e:e.host||(e.parentNode||{}).host||e)}function Ka(e){if(e===xe)return A.left=A.top=0,A.width=A.right=ve.clientWidth||e.innerWidth||l.clientWidth||0,A.height=A.bottom=(e.innerHeight||0)-20<ve.clientHeight?ve.clientHeight:e.innerHeight||l.clientHeight||0,A;var t=e.ownerDocument||me,n=X(e.pageX)?e.nodeType||X(e.left)||X(e.top)?we(e)[0].getBoundingClientRect():e:{left:e.pageX-Ba(t),top:e.pageY-Aa(t),right:e.pageX-Ba(t)+1,bottom:e.pageY-Aa(t)+1};return X(n.right)&&!X(n.width)?(n.right=n.left+n.width,n.bottom=n.top+n.height):X(n.width)&&(n={width:n.right-n.left,height:n.bottom-n.top,right:n.right,left:n.left,bottom:n.bottom,top:n.top}),n}function La(e,t,n){var o,r=e.vars,i=r[n],a=e._listeners[t];return V(i)&&(o=i.apply(r.callbackScope||e,r[n+\"Params\"]||[e.pointerEvent])),a&&!1===e.dispatchEvent(t)&&(o=!1),o}function Ma(e,t){var n,o,r,i=we(e)[0];return i.nodeType||i===xe?I(i,t):X(e.left)?{left:o=e.min||e.minX||e.minRotation||0,top:n=e.min||e.minY||0,width:(e.max||e.maxX||e.maxRotation||0)-o,height:(e.max||e.maxY||0)-n}:(r={x:0,y:0},{left:e.left-r.x,top:e.top-r.y,width:e.width,height:e.height})}function Pa(r,i,e,t,a,n){var o,l,s,c={};if(i)if(1!==a&&i instanceof Array){if(c.end=o=[],s=i.length,W(i[0]))for(l=0;l<s;l++)o[l]=na(i[l],a);else for(l=0;l<s;l++)o[l]=i[l]*a;e+=1.1,t-=1.1}else V(i)?c.end=function(e){var t,n,o=i.call(r,e);if(1!==a)if(W(o)){for(n in t={},o)t[n]=o[n]*a;o=t}else o*=a;return o}:c.end=i;return!e&&0!==e||(c.max=e),!t&&0!==t||(c.min=t),n&&(c.velocity=0),c}function Qa(e){var t;return!(!e||!e.getAttribute||e===l)&&(!(\"true\"!==(t=e.getAttribute(\"data-clickable\"))&&(\"false\"===t||!e.onclick&&!o.test(e.nodeName+\"\")&&\"true\"!==e.getAttribute(\"contentEditable\")))||Qa(e.parentNode))}function Ra(e,t){for(var n,o=e.length;o--;)(n=e[o]).ondragstart=n.onselectstart=t?null:Y,ge.set(n,{lazy:!0,userSelect:t?\"text\":\"none\"})}function Va(i,r){i=ge.utils.toArray(i)[0],r=r||{};var a,l,s,e,c,d,u=document.createElement(\"div\"),p=u.style,t=i.firstChild,h=0,f=0,g=i.scrollTop,x=i.scrollLeft,m=i.scrollWidth,v=i.scrollHeight,y=0,w=0,b=0;R&&!1!==r.force3D?(c=\"translate3d(\",d=\"px,0px)\"):O&&(c=\"translate(\",d=\"px)\"),this.scrollTop=function(e,t){if(!arguments.length)return-this.top();this.top(-e,t)},this.scrollLeft=function(e,t){if(!arguments.length)return-this.left();this.left(-e,t)},this.left=function(e,t){if(!arguments.length)return-(i.scrollLeft+f);var n=i.scrollLeft-x,o=f;if((2<n||n<-2)&&!t)return x=i.scrollLeft,ge.killTweensOf(this,{left:1,scrollLeft:1}),this.left(-x),void(r.onKill&&r.onKill());(e=-e)<0?(f=e-.5|0,e=0):w<e?(f=e-w|0,e=w):f=0,(f||o)&&(this._skip||(p[O]=c+-f+\"px,\"+-h+d),0<=f+y&&(p.paddingRight=f+y+\"px\")),i.scrollLeft=0|e,x=i.scrollLeft},this.top=function(e,t){if(!arguments.length)return-(i.scrollTop+h);var n=i.scrollTop-g,o=h;if((2<n||n<-2)&&!t)return g=i.scrollTop,ge.killTweensOf(this,{top:1,scrollTop:1}),this.top(-g),void(r.onKill&&r.onKill());(e=-e)<0?(h=e-.5|0,e=0):b<e?(h=e-b|0,e=b):h=0,(h||o)&&(this._skip||(p[O]=c+-f+\"px,\"+-h+d)),i.scrollTop=0|e,g=i.scrollTop},this.maxScrollTop=function(){return b},this.maxScrollLeft=function(){return w},this.disable=function(){for(t=u.firstChild;t;)e=t.nextSibling,i.appendChild(t),t=e;i===u.parentNode&&i.removeChild(u)},this.enable=function(){if((t=i.firstChild)!==u){for(;t;)e=t.nextSibling,u.appendChild(t),t=e;i.appendChild(u),this.calibrate()}},this.calibrate=function(e){var t,n,o,r=i.clientWidth===a;g=i.scrollTop,x=i.scrollLeft,r&&i.clientHeight===l&&u.offsetHeight===s&&m===i.scrollWidth&&v===i.scrollHeight&&!e||((h||f)&&(n=this.left(),o=this.top(),this.left(-i.scrollLeft),this.top(-i.scrollTop)),t=Ia(i),r&&!e||(p.display=\"block\",p.width=\"auto\",p.paddingRight=\"0px\",(y=Math.max(0,i.scrollWidth-i.clientWidth))&&(y+=parseFloat(t.paddingLeft)+(B?parseFloat(t.paddingRight):0))),p.display=\"inline-block\",p.position=\"relative\",p.overflow=\"visible\",p.verticalAlign=\"top\",p.boxSizing=\"content-box\",p.width=\"100%\",p.paddingRight=y+\"px\",B&&(p.paddingBottom=t.paddingBottom),a=i.clientWidth,l=i.clientHeight,m=i.scrollWidth,v=i.scrollHeight,w=i.scrollWidth-a,b=i.scrollHeight-l,s=u.offsetHeight,p.display=\"block\",(n||o)&&(this.left(n),this.top(o)))},this.content=u,this.element=i,this._skip=!1,this.enable()}function Wa(e){if(T()&&document.body){var t=window&&window.navigator;xe=window,me=document,ve=me.documentElement,l=me.body,s=ba(\"div\"),Se=!!window.PointerEvent,(ye=ba(\"div\")).style.cssText=\"visibility:hidden;height:1px;top:-1px;pointer-events:none;position:relative;clear:both;cursor:grab\",Xe=\"grab\"===ye.style.cursor?\"grab\":\"move\",Me=t&&-1!==t.userAgent.toLowerCase().indexOf(\"android\"),be=\"ontouchstart\"in ve&&\"orientation\"in xe||t&&(0<t.MaxTouchPoints||0<t.msMaxTouchPoints),o=ba(\"div\"),r=ba(\"div\"),i=r.style,a=l,i.display=\"inline-block\",i.position=\"relative\",o.style.cssText=r.innerHTML=\"width:90px;height:40px;padding:10px;overflow:auto;visibility:hidden\",o.appendChild(r),a.appendChild(o),n=r.offsetHeight+18>o.scrollHeight,a.removeChild(o),B=n,Te=function(e){for(var t=e.split(\",\"),n=(X(s.onpointerdown)?X(s.onmspointerdown)?e:\"MSPointerDown,MSPointerMove,MSPointerUp,MSPointerCancel\":\"pointerdown,pointermove,pointerup,pointercancel\").split(\",\"),o={},r=4;-1<--r;)o[t[r]]=n[r],o[n[r]]=t[r];try{ve.addEventListener(\"test\",null,Object.defineProperty({},\"passive\",{get:function get(){N=1}}))}catch(e){}return o}(\"touchstart,touchmove,touchend,touchcancel\"),ua(me,\"touchcancel\",Y),ua(xe,\"touchmove\",Y),l&&l.addEventListener(\"touchstart\",Y),ua(me,\"contextmenu\",function(){for(var e in Re)Re[e].isPressed&&Re[e].endDrag(
2)}),ge=c=U()}var n,o,r,i,a;ge?(Ee=ge.plugins.inertia,C=ge.utils.checkPrefix,O=C(O),Ye=C(Ye),we=ge.utils.toArray,R=!!C(\"perspective\")):e&&console.warn(\"Please gsap.registerPlugin(Draggable)\")}var ge,xe,me,ve,l,s,ye,c,C,we,N,be,Te,De,Le,Me,Ee,Xe,Se,R,B,n,O=\"transform\",Ye=\"transformOrigin\",_e=Array.isArray,Pe=180/Math.PI,ke=1e20,a=new fe,Ce=Date.now||function(){return(new Date).getTime()},Ne=[],Re={},Be=0,o=/^(?:a|input|textarea|button|select)$/i,Oe=0,Ae={},Ie={},We=function _isRoot(e){return!(e&&e!==ve&&9!==e.nodeType&&e!==me.body&&e!==xe&&e.nodeType&&e.parentNode)},A={},Fe={},I=function _getElementBounds(e,t){t=we(t)[0];var n,o,r,i,a,l,s,c,d,u,p,h,f,g,x=e.getBBox&&e.ownerSVGElement,m=e.ownerDocument||me;if(e===xe)r=Aa(m),o=(n=Ba(m))+(m.documentElement.clientWidth||e.innerWidth||m.body.clientWidth||0),i=r+((e.innerHeight||0)-20<m.documentElement.clientHeight?m.documentElement.clientHeight:e.innerHeight||m.body.clientHeight||0);else{if(t===xe||X(t))return e.getBoundingClientRect();n=r=0,x?(p=(u=e.getBBox()).width,h=u.height):(e.viewBox&&(u=e.viewBox.baseVal)&&(n=u.x||0,r=u.y||0,p=u.width,h=u.height),p||(u=\"border-box\"===(f=Ia(e)).boxSizing,p=(parseFloat(f.width)||e.clientWidth||0)+(u?0:parseFloat(f.borderLeftWidth)+parseFloat(f.borderRightWidth)),h=(parseFloat(f.height)||e.clientHeight||0)+(u?0:parseFloat(f.borderTopWidth)+parseFloat(f.borderBottomWidth)))),o=p,i=h}return e===t?{left:n,top:r,width:o-n,height:i-r}:(l=(a=getGlobalMatrix(t,!0).multiply(getGlobalMatrix(e))).apply({x:n,y:r}),s=a.apply({x:o,y:r}),c=a.apply({x:o,y:i}),d=a.apply({x:n,y:i}),n=Math.min(l.x,s.x,c.x,d.x),r=Math.min(l.y,s.y,c.y,d.y),{left:n+((g=t.parentNode||{}).scrollLeft||0),top:r+(g.scrollTop||0),width:Math.max(l.x,s.x,c.x,d.x)-n,height:Math.max(l.y,s.y,c.y,d.y)-r})},F=((n=EventDispatcher.prototype).addEventListener=function addEventListener(e,t){var n=this._listeners[e]||(this._listeners[e]=[]);~n.indexOf(t)||n.push(t)},n.removeEventListener=function removeEventListener(e,t){var n=this._listeners[e],o=n&&n.indexOf(t)||-1;-1<o&&n.splice(o,1)},n.dispatchEvent=function dispatchEvent(t){var n,o=this;return(this._listeners[t]||[]).forEach(function(e){return!1===e.call(o,{type:t,target:o.target})&&(n=!1)}),n},EventDispatcher);function EventDispatcher(e){this._listeners={},this.target=e||this}var He,H=(function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(Draggable,He=F),Draggable.register=function register(e){ge=e,Wa()},Draggable.create=function create(e,t){return c||Wa(!0),we(e).map(function(e){return new Draggable(e,t)})},Draggable.get=function get(e){return Re[(we(e)[0]||{})._gsDragID]},Draggable.timeSinceDrag=function timeSinceDrag(){return(Ce()-Oe)/1e3},Draggable.hitTest=function hitTest(e,t,n){if(e===t)return!1;var o,r,i,a=Ka(e),l=Ka(t),s=a.top,c=a.left,d=a.right,u=a.bottom,p=a.width,h=a.height,f=l.left>d||l.right<c||l.top>u||l.bottom<s;return f||!n?!f:(i=-1!==(n+\"\").indexOf(\"%\"),n=parseFloat(n)||0,(o={left:Math.max(c,l.left),top:Math.max(s,l.top)}).width=Math.min(d,l.right)-o.left,o.height=Math.min(u,l.bottom)-o.top,!(o.width<0||o.height<0)&&(i?p*h*(n*=.01)<=(r=o.width*o.height)||r>=l.width*l.height*n:o.width>n&&o.height>n))},Draggable);function Draggable(h,u){var e;e=He.call(this)||this,ge||Wa(1),h=we(h)[0],Ee=Ee||ge.plugins.inertia,e.vars=u=na(u||{}),e.target=h,e.x=e.y=e.rotation=0,e.dragResistance=parseFloat(u.dragResistance)||0,e.edgeResistance=isNaN(u.edgeResistance)?1:parseFloat(u.edgeResistance)||0,e.lockAxis=u.lockAxis,e.autoScroll=u.autoScroll||0,e.lockedAxis=null,e.allowEventDefault=!!u.allowEventDefault,ge.getProperty(h,\"x\");function Bg(e,t){return parseFloat(le.get(h,e,t))}function gh(e){return wa(e),e.stopImmediatePropagation&&e.stopImmediatePropagation(),!1}function hh(e){if(Z.autoScroll&&Z.isDragging&&(ee||k)){var t,n,o,r,i,a,l,s,c=h,d=15*Z.autoScroll;for(ee=!1,Ie.scrollTop=null!=xe.pageYOffset?xe.pageYOffset:null!=ce.documentElement.scrollTop?ce.documentElement.scrollTop:ce.body.scrollTop,Ie.scrollLeft=null!=xe.pageXOffset?xe.pageXOffset:null!=ce.documentElement.scrollLeft?ce.documentElement.scrollLeft:ce.body.scrollLeft,r=Z.pointerX-Ie.scrollLeft,i=Z.pointerY-Ie.scrollTop;c&&!n;
vendor: 4,530 bytes, line 2
2)t=(n=We(c.parentNode))?Ie:c.parentNode,o=n?{bottom:Math.max(ve.clientHeight,xe.innerHeight||0),right:Math.max(ve.clientWidth,xe.innerWidth||0),left:0,top:0}:t.getBoundingClientRect(),a=l=0,U&&((s=t._gsMaxScrollY-t.scrollTop)<0?l=s:i>o.bottom-oe&&s?(ee=!0,l=Math.min(s,d*(1-Math.max(0,o.bottom-i)/oe)|0)):i<o.top+te&&t.scrollTop&&(ee=!0,l=-Math.min(t.scrollTop,d*(1-Math.max(0,i-o.top)/te)|0)),l&&(t.scrollTop+=l)),q&&((s=t._gsMaxScrollX-t.scrollLeft)<0?a=s:r>o.right-ne&&s?(ee=!0,a=Math.min(s,d*(1-Math.max(0,o.right-r)/ne)|0)):r<o.left+re&&t.scrollLeft&&(ee=!0,a=-Math.min(t.scrollLeft,d*(1-Math.max(0,r-o.left)/re)|0)),a&&(t.scrollLeft+=a)),n&&(a||l)&&(xe.scrollTo(t.scrollLeft,t.scrollTop),pe(Z.pointerX+a,Z.pointerY+l)),c=t}if(k){var u=Z.x,p=Z.y;K?(Z.deltaX=u-parseFloat(le.rotation),Z.rotation=u,le.rotation=u+\"deg\",le.renderTransform(1,le)):f?(U&&(Z.deltaY=p-f.top(),f.top(p)),q&&(Z.deltaX=u-f.left(),f.left(u))):G?(U&&(Z.deltaY=p-parseFloat(le.y),le.y=p+\"px\"),q&&(Z.deltaX=u-parseFloat(le.x),le.x=u+\"px\"),le.renderTransform(1,le)):(U&&(Z.deltaY=p-parseFloat(h.style.top||0),h.style.top=p+\"px\"),q&&(Z.deltaY=u-parseFloat(h.style.left||0),h.style.left=u+\"px\")),!g||e||F||(!(F=!0)===La(Z,\"drag\",\"onDrag\")&&(q&&(Z.x-=Z.deltaX),U&&(Z.y-=Z.deltaY),hh(!0)),F=!1)}k=!1}function ih(e,t){var n,o,r=Z.x,i=Z.y;h._gsap||(le=ge.core.getCache(h)),G?(Z.x=parseFloat(le.x),Z.y=parseFloat(le.y)):K?Z.x=Z.rotation=parseFloat(le.rotation):f?(Z.y=f.top(),Z.x=f.left()):(Z.y=parseInt(h.style.top||(o=Ia(h))&&o.top,10)||0,Z.x=parseInt(h.style.left||(o||{}).left,10)||0),(C||N||R)&&!t&&(Z.isDragging||Z.isThrowing)&&(R&&(Ae.x=Z.x,Ae.y=Z.y,(n=R(Ae)).x!==Z.x&&(Z.x=n.x,k=!0),n.y!==Z.y&&(Z.y=n.y,k=!0)),C&&(n=C(Z.x))!==Z.x&&(Z.x=n,K&&(Z.rotation=n),k=!0),N&&((n=N(Z.y))!==Z.y&&(Z.y=n),k=!0)),k&&hh(!0),e||(Z.deltaX=Z.x-r,Z.deltaY=Z.y-i,La(Z,\"throwupdate\",\"onThrowUpdate\"))}function jh(a,l,s,n){return null==l&&(l=-ke),null==s&&(s=ke),V(a)?function(e){var t=Z.isPressed?1-Z.edgeResistance:1;return a.call(Z,s<e?s+(e-s)*t:e<l?l+(e-l)*t:e)*n}:_e(a)?function(e){for(var t,n,o=a.length,r=0,i=ke;-1<--o;)(n=(t=a[o])-e)<0&&(n=-n),n<i&&l<=t&&t<=s&&(r=o,i=n);return a[r]}:isNaN(a)?function(e){return e}:function(){return a*n}}function lh(){var e,t,n,o;L=!1,f?(f.calibrate(),Z.minX=E=-f.maxScrollLeft(),Z.minY=Y=-f.maxScrollTop(),Z.maxX=M=Z.maxY=S=0,L=!0):u.bounds&&(e=Ma(u.bounds,h.parentNode),K?(Z.minX=E=e.left,Z.maxX=M=e.left+e.width,Z.minY=Y=Z.maxY=S=0):X(u.bounds.maxX)&&X(u.bounds.maxY)?(t=Ma(h,h.parentNode),Z.minX=E=Math.round(Bg(d,\"px\")+e.left-t.left-.5),Z.minY=Y=Math.round(Bg(j,\"px\")+e.top-t.top-.5),Z.maxX=M=Math.round(E+(e.width-t.width)),Z.maxY=S=Math.round(Y+(e.height-t.height))):(e=u.bounds,Z.minX=E=e.minX,Z.minY=Y=e.minY,Z.maxX=M=e.maxX,Z.maxY=S=e.maxY),M<E&&(Z.minX=M,Z.maxX=M=E,E=Z.minX),S<Y&&(Z.minY=S,Z.maxY=S=Y,Y=Z.minY),K&&(Z.minRotation=E,Z.maxRotation=M),L=!0),u.liveSnap&&(n=!0===u.liveSnap?u.snap||{}:u.liveSnap,o=_e(n)||V(n),K?(C=jh(o?n:n.rotation,E,M,1),N=null):n.points?R=function buildPointSnapFunc(s,l,c,d,u,p,h){return p=p&&p<ke?p*p:ke,V(s)?function(e){var t,n,o,r=Z.isPressed?1-Z.edgeResistance:1,i=e.x,a=e.y;return e.x=i=c<i?c+(i-c)*r:i<l?l+(i-l)*r:i,e.y=a=u<a?u+(a-u)*r:a<d?d+(a-d)*r:a,(t=s.call(Z,e))!==e&&(e.x=t.x,e.y=t.y),1!==h&&(e.x*=h,e.y*=h),p<ke&&(n=e.x-i,o=e.y-a,p<n*n+o*o&&(e.x=i,e.y=a)),e}:_e(s)?function(e){for(var t,n,o,r,i=s.length,a=0,l=ke;-1<--i;)(r=(t=(o=s[i]).x-e.x)*t+(n=o.y-e.y)*n)<l&&(a=i,l=r);return l<=p?s[a]:e}:function(e){return e}}(o?n:n.points,E,M,Y,S,n.radius,f?-1:1):(q&&(C=jh(o?n:n.x||n.left||n.scrollLeft,E,M,f?-1:1)),U&&(N=jh(o?n:n.y||n.top||n.scrollTop,Y,S,f?-1:1))))}function mh(){Z.isThrowing=!1,La(Z,\"throwcomplete\",\"onThrowComplete\")}function nh(){Z.isThrowing=!1}function oh(e,t){var n,o,r,i;e&&Ee?(!0===e&&(n=u.snap||u.liveSnap||{},o=_e(n)||V(n),e={resistance:(u.throwResistance||u.resistance||1e3)/(K?10:1)},K?e.rotation=Pa(Z,o?n:n.rotation,M,E,1,t):(q&&(e[d]=Pa(Z,o?n:n.points||n.x||n.left,M,E,f?-1:1,t||\"x\"===Z.lockedAxis)),U&&(e[j]=Pa(Z,o?n:n.points||n.y||n.top,S,Y,f?-1:1,t||\"y\"===Z.lockedAxis)),(n.points||_e(n)&&W(n[0]))&&(e.linkedProps=d+\",\"+j,e.radius=n.radius))),Z.isThrowing=!0,i=isNaN(u.overshootTolerance)?1===u.edgeResistance?0:1-Z.edgeResistance+.2:u.overshootTolerance,e.duration||(e.duration={max:Math.max(u.minDuration||0,\"maxDuration\"in u?u.maxDuration:2),min:isNaN(u.minDuration)?0===i||W(e)&&1e3<e.resistance?0:.5:u.minDuration,overshoot:i}),Z.tween=r=ge.to(f||h,{inertia:e,data:\"_draggable\",onComplete:mh,onInterrupt:nh,onUp
2date:u.fastMode?La:ih,onUpdateParams:u.fastMode?[Z,\"onthrowupdate\",\"onThrowUpdate\"]:n&&n.radius?[!1,!0]:[]}),u.fastMode||(f&&(f._skip=!0),r.render(1e9,!0,!0),ih(!0,!0),Z.endX=Z.x,Z.endY=Z.y,K&&(Z.endRotation=Z.x),r.play(0),ih(!0,!0),f&&(f._skip=!1))):L&&Z.applyBounds()}function ph(e){var t,n=B;B=getGlobalMatrix(h.parentNode,!0),e&&Z.isPressed&&!B.equals(n||new fe)&&(t=n.inverse().apply({x:w,y:b}),B.apply(t,t),w=t.x,b=t.y),B.equals(a)&&(B=null)}function qh(){var e,t,n,o=1-Z.edgeResistance;ph(!1),B&&(Fe.x=Z.pointerX,Fe.y=Z.pointerY,B.apply(Fe,Fe),w=Fe.x,b=Fe.y),k&&(pe(Z.pointerX,Z.pointerY),hh(!0)),f?(lh(),D=f.top(),T=f.left()):(de()?(ih(!0,!0),lh()):Z.applyBounds(),K?(e=h.ownerSVGElement?[le.xOrigin-h.getBBox().x,le.yOrigin-h.getBBox().y]:(Ia(h)[Ye]||\"0 0\").split(\" \"),P=Z.rotationOrigin=getGlobalMatrix(h).apply({x:parseFloat(e[0])||0,y:parseFloat(e[1])||0}),ih(!0,!0),t=Z.pointerX-P.x,n=P.y-Z.pointerY,se&&(t-=Ba(ce),n+=Aa(ce)),T=Z.x,D=Z.y=Math.atan2(n,t)*Pe):(D=Bg(j,\"px\"),T=Bg(d,\"px\"))),L&&o&&(M<T?T=M+(T-M)/o:T<E&&(T=E-(E-T)/o),K||(S<D?D=S+(D-S)/o:D<Y&&(D=Y-(Y-D)/o))),Z.startX=T,Z.startY=D}function sh(){!ye.parentNode||de()||Z.isDragging||ye.parentNode.removeChild(ye)}function th(e,t){var n;if(!p||Z.isPressed||!e||!(\"mousedown\"!==e.type&&\"pointerdown\"!==e.type||t)&&Ce()-ae<30&&Te[Z.pointerEvent.type])z&&e&&p&&wa(e);else{if(O=de(),Z.pointerEvent=e,Te[e.type]?(y=~e.type.indexOf(\"touch\")?e.currentTarget||e.target:ce,ua(y,\"touchend\",he),ua(y,\"touchmove\",ue),ua(y,\"touchcancel\",he),ua(ce,\"touchstart\",za)):(y=null,ua(ce,\"mousemove\",ue)),I=null,Se&&y||(ua(ce,\"mouseup\",he),e&&e.target&&ua(e.target,\"mouseup\",he)),v=ie.call(Z,e.target)&&!1===u.dragClickables&&!t)return ua(e.target,\"change\",he),La(Z,\"pressInit\",\"onPressInit\"),La(Z,\"press\",\"onPress\"),void Ra($,!0);if(A=!(!y||q==U||!1===Z.vars.allowNativeTouchScrolling||Z.vars.allowContextMenu&&e&&(e.ctrlKey||2<e.which))&&(q?\"y\":\"x\"),(z=!A&&!Z.allowEventDefault)&&(wa(e),ua(xe,\"touchforcechange\",wa)),e.changedTouches?(e=x=e.changedTouches[0],m=e.identifier):e.pointerId?m=e.pointerId:x=m=null,De++,function _addToRenderQueue(e){Ne.push(e),1===Ne.length&&ge.ticker.add(pa)}(hh),b=Z.pointerY=e.pageY,w=Z.pointerX=e.pageX,La(Z,\"pressInit\",\"onPressInit\"),(A||Z.autoScroll)&&Ga(h.parentNode),!h.parentNode||!Z.autoScroll||f||K||!h.parentNode._gsMaxScrollX||ye.parentNode||h.getBBox||(ye.style.width=h.parentNode.scrollWidth+\"px\",h.parentNode.appendChild(ye)),qh(),Z.tween&&Z.tween.kill(),Z.isThrowing=!1,ge.killTweensOf(f||h,o,!0),f&&ge.killTweensOf(h,{scrollTo:1},!0),Z.tween=Z.lockedAxis=null,!u.zIndexBoost&&(K||f||!1===u.zIndexBoost)||(h.style.zIndex=Draggable.zIndex++),Z.isPressed=!0,g=!(!u.onDrag&&!Z._listeners.drag),s=!(!u.onMove&&!Z._listeners.move),!K&&(!1!==u.cursor||u.activeCursor))for(n=$.length;-1<--n;)ge.set($[n],{cursor:u.activeCursor||u.cursor||(\"grab\"===Xe?\"grabbing\":Xe)});La(Z,\"press\",\"onPress\")}}function xh(e){if(e&&Z.isDragging&&!f){var t=e.target||h.parentNode,n=t.scrollLeft-t._gsScrollX,o=t.scrollTop-t._gsScrollY;(n||o)&&(B?(w-=n*B.a+o*B.c,b-=o*B.d+n*B.b):(w-=n,b-=o),t._gsScrollX+=n,t._gsScrollY+=o,pe(Z.pointerX,Z.pointerY))}}function yh(e){var t=Ce(),n=t-ae<40,o=t-J<40,r=n&&H===ae,i=Z.pointerEvent&&Z.pointerEvent.defaultPrevented,a=n&&c===ae,l=e.isTrusted||null==e.isTrusted&&n&&r;if((r||o&&!1!==Z.vars.suppressClickOnDrag)&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),n&&(!Z.pointerEvent||!Z.pointerEvent.defaultPrevented)&&(!r||l&&!a))return l&&r&&(c=ae),void(H=ae);(Z.isPressed||o||n)&&(l&&e.detail&&n&&!i||wa(e))}function zh(e){return B?{x:e.x*B.a+e.y*B.c+B.e,y:e.x*B.b+e.y*B.d+B.f}:{x:e.x,y:e.y}}var p,f,w,b,T,D,L,g,s,M,E,S,Y,x,m,P,k,t,C,N,R,v,y,B,O,A,I,F,H,c,z,n=(u.type||\"x,y\").toLowerCase(),G=~n.indexOf(\"x\")||~n.indexOf(\"y\"),K=-1!==n.indexOf(\"rotation\"),d=K?\"rotation\":G?\"x\":\"left\",j=G?\"y\":\"top\",q=!(!~n.indexOf(\"x\")&&!~n.indexOf(\"left\")&&\"scroll\"!==n),U=!(!~n.indexOf(\"y\")&&!~n.indexOf(\"top\")&&\"scroll\"!==n),Q=u.minimumMovement||2,Z=function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}(e),$=we(u.trigger||u.handle||h),o={},J=0,ee=!1,te=u.autoScrollMarginTop||40,ne=u.autoScrollMarginRight||40,oe=u.autoScrollMarginBottom||40,re=u.autoScrollMarginLeft||40,ie=u.clickableTest||Qa,ae=0,le=h._gsap||ge.core.getCache(h),se=function _isFixed(e){return\"fixed\"===Ia(e).position||((e=e.parentNode)&&1===e.nodeType?_isFixed(e):void 0)}
vendor: 10,717 bytes, line 2
2(h),ce=h.ownerDocument||me,de=function isTweening(){return Z.tween&&Z.tween.isActive()},ue=function onMove(e){var t,n,o,r,i,a,l=e;if(p&&!Le&&Z.isPressed&&e){if(t=(Z.pointerEvent=e).changedTouches){if((e=t[0])!==x&&e.identifier!==m){for(r=t.length;-1<--r&&(e=t[r]).identifier!==m;);if(r<0)return}}else if(e.pointerId&&m&&e.pointerId!==m)return;y&&A&&!I&&(Fe.x=e.pageX,Fe.y=e.pageY,B&&B.apply(Fe,Fe),n=Fe.x,o=Fe.y,((i=Math.abs(n-w))!==(a=Math.abs(o-b))&&(Q<i||Q<a)||Me&&A===I)&&(I=a<i&&q?\"x\":\"y\",A&&I!==A&&ua(xe,\"touchforcechange\",wa),!1!==Z.vars.lockAxisOnTouchScroll&&q&&U&&(Z.lockedAxis=\"x\"===I?\"y\":\"x\",V(Z.vars.onLockAxis)&&Z.vars.onLockAxis.call(Z,l)),Me&&A===I))?he(l):(z=Z.allowEventDefault||A&&(!I||A===I)||!1===l.cancelable?z&&!1:(wa(l),!0),Z.autoScroll&&(ee=!0),pe(e.pageX-(se&&K?Ba(ce):0),e.pageY-(se&&K?Aa(ce):0),s))}else z&&e&&p&&wa(e)},pe=function setPointerPosition(e,t,n){var o,r,i,a,l,s,c=1-Z.dragResistance,d=1-Z.edgeResistance,u=Z.pointerX,p=Z.pointerY,h=D,f=Z.x,g=Z.y,x=Z.endX,m=Z.endY,v=Z.endRotation,y=k;Z.pointerX=e,Z.pointerY=t,K?(a=Math.atan2(P.y-t,e-P.x)*Pe,180<(l=Z.y-a)?(D-=360,Z.y=a):l<-180&&(D+=360,Z.y=a),i=Z.x!==T||Math.abs(D-a)>Q?(Z.y=a,T+(D-a)*c):T):(B&&(s=e*B.a+t*B.c+B.e,t=e*B.b+t*B.d+B.f,e=s),(r=t-b)<Q&&-Q<r&&(r=0),(o=e-w)<Q&&-Q<o&&(o=0),(Z.lockAxis||Z.lockedAxis)&&(o||r)&&((s=Z.lockedAxis)||(Z.lockedAxis=s=q&&Math.abs(o)>Math.abs(r)?\"y\":U?\"x\":null,s&&V(Z.vars.onLockAxis)&&Z.vars.onLockAxis.call(Z,Z.pointerEvent)),\"y\"===s?r=0:\"x\"===s&&(o=0)),i=_(T+o*c),a=_(D+r*c)),(C||N||R)&&(Z.x!==i||Z.y!==a&&!K)?(R&&(Ae.x=i,Ae.y=a,s=R(Ae),i=_(s.x),a=_(s.y)),C&&(i=_(C(i))),N&&(a=_(N(a)))):L&&(M<i?i=M+Math.round((i-M)*d):i<E&&(i=E+Math.round((i-E)*d)),K||(S<a?a=Math.round(S+(a-S)*d):a<Y&&(a=Math.round(Y+(a-Y)*d)))),Z.x===i&&(Z.y===a||K)||(K?(Z.endRotation=Z.x=Z.endX=i,k=!0):(U&&(Z.y=Z.endY=a,k=!0),q&&(Z.x=Z.endX=i,k=!0)),n&&!1===La(Z,\"move\",\"onMove\")?(Z.pointerX=u,Z.pointerY=p,D=h,Z.x=f,Z.y=g,Z.endX=x,Z.endY=m,Z.endRotation=v,k=y):!Z.isDragging&&Z.isPressed&&(Z.isDragging=!0,La(Z,\"dragstart\",\"onDragStart\")))},he=function onRelease(e,t){if(p&&Z.isPressed&&(!e||null==m||t||!(e.pointerId&&e.pointerId!==m||e.changedTouches&&!function _hasTouchID(e,t){for(var n=e.length;n--;)if(e[n].identifier===t)return!0}(e.changedTouches,m)))){Z.isPressed=!1;var n,o,r,i,a,l=e,s=Z.isDragging,c=Z.vars.allowContextMenu&&e&&(e.ctrlKey||2<e.which),d=ge.delayedCall(.001,sh);if(y?(va(y,\"touchend\",onRelease),va(y,\"touchmove\",ue),va(y,\"touchcancel\",onRelease),va(ce,\"touchstart\",za)):va(ce,\"mousemove\",ue),va(xe,\"touchforcechange\",wa),Se&&y||(va(ce,\"mouseup\",onRelease),e&&e.target&&va(e.target,\"mouseup\",onRelease)),k=!1,v&&!c)return e&&(va(e.target,\"change\",onRelease),Z.pointerEvent=l),Ra($,!1),La(Z,\"release\",\"onRelease\"),La(Z,\"click\",\"onClick\"),void(v=!1);if(sa(hh),!K)for(o=$.length;-1<--o;)Ha($[o],\"cursor\",u.cursor||(!1!==u.cursor?Xe:null));if(s&&(J=Oe=Ce(),Z.isDragging=!1),De--,e){if((n=e.changedTouches)&&(e=n[0])!==x&&e.identifier!==m){for(o=n.length;-1<--o&&(e=n[o]).identifier!==m;);if(o<0)return}Z.pointerEvent=l,Z.pointerX=e.pageX,Z.pointerY=e.pageY}return c&&l?(wa(l),z=!0,La(Z,\"release\",\"onRelease\")):l&&!s?(z=!1,O&&(u.snap||u.bounds)&&oh(u.inertia||u.throwProps),La(Z,\"release\",\"onRelease\"),Me&&\"touchmove\"===l.type||-1!==l.type.indexOf(\"cancel\")||(La(Z,\"click\",\"onClick\"),Ce()-ae<300&&La(Z,\"doubleclick\",\"onDoubleClick\"),i=l.target||h,ae=Ce(),a=function syntheticClick(){ae===H||!Z.enabled()||Z.isPressed||l.defaultPrevented||(i.click?i.click():ce.createEvent&&((r=ce.createEvent(\"MouseEvents\")).initMouseEvent(\"click\",!0,!0,xe,1,Z.pointerEvent.screenX,Z.pointerEvent.screenY,Z.pointerX,Z.pointerY,!1,!1,!1,!1,0,null),i.dispatchEvent(r)))},Me||l.defaultPrevented||ge.delayedCall(.05,a))):(oh(u.inertia||u.throwProps),Z.allowEventDefault||!l||!1===u.dragClickables&&ie.call(Z,l.target)||!s||A&&(!I||A!==I)||!1===l.cancelable?z=!1:(z=!0,wa(l)),La(Z,\"release\",\"onRelease\")),de()&&d.duration(Z.tween.duration()),s&&La(Z,\"dragend\",\"onDragEnd\"),!0}z&&e&&p&&wa(e)};return(t=Draggable.get(h))&&t.kill(),e.startDrag=function(e,t){var n,o,r,i;th(e||Z.pointerEvent,!0),t&&!Z.hitTest(e||Z.pointerEvent)&&(n=Ka(e||Z.pointerEvent),o=Ka(h),r=zh({x:n.left+n.width/2,y:n.top+n.height/2}),i=zh({x:o.left+o.width/2,y:o.top+o.height/2}),w-=r.x-i.x,b-=r.y-i.y),Z.isDragging||(Z.isDragging=!0,La(Z,\"dragstart\",\"onDragStart\"))},e.drag=ue,e.endDrag=function(e){return he(e||Z.pointerEvent,!0)},e.timeSinceDrag=function(){return Z.isDragging?0:(Ce()-J)/1e3},e.timeSinceClick=function(){return(Ce()-ae)/1e3},e.hitTest=function(e,t){return Draggable.hitTest(Z.target,e,t)},e.getDirection=function(e,t){var n,o,r,i,a,l,s=\"velocity\"===e&&Ee?e:W(e)&&!K?\"element\":\"start\";return\"element\"===s&&(a=Ka(Z.target),l=Ka(e)),n=\"start\"===s?Z.x-T:\"velocity\"===s?Ee.getVelocity(h,d):a.left+a.width/2-(l.left+l.width/2),K?n<0?\"counter-clockwise\":\"clockwise\":(t=t||2,o=\"start\"===s?Z.y-D:\"velocity\"===s?Ee.getVelocity(h,j):a.top+a.height/2-(l.top+l.height/2),i=(r=Math.abs(n/o))<1/t?\"\":n<0?\"left\":\"right\",r<t&&(\"\"!==i&&(i+=\"-\"),i+=o<0?\"up\":\"down\"),i)},e.applyBounds=function(e,t){var n,o,r,i,a,l;if(e&&u.bounds!==e)return u.bounds=e,Z.update(!0,t);if(ih(!0),lh(),L&&!de()){if(n=Z.x,o=Z.y,M<n?n=M:n<E&&(n=E),S<o?o=S:o<Y&&(o=Y),(Z.x!==n||Z.y!==o)&&(r=!0,Z.x=Z.endX=n,K?Z.endRotation=n:Z.y=Z.endY=o,hh(k=!0),Z.autoScroll&&!Z.isDragging))for(Ga(h.parentNode),i=h,Ie.scrollTop=null!=xe.pageYOffset?xe.pageYOffset:null!=ce.documentElement.scrollTop?ce.documentElement.scrollTop:ce.body.scrollTop,Ie.scrollLeft=null!=xe.pageXOffset?xe.pageXOffset:null!=ce.documentElement.scrollLeft?ce.documentElement.scrollLeft:ce.body.scrollLeft;i&&!l;)a=(l=We(i.parentNode))?Ie:i.parentNode,U&&a.scrollTop>a._gsMaxScrollY&&(a.scrollTop=a._gsMaxScrollY),q&&a.scrollLeft>a._gsMaxScrollX&&(a.scrollLeft=a._gsMaxScrollX),i=a;Z.isThrowing&&(r||Z.endX>M||Z.endX<E||Z.endY>S||Z.endY<Y)&&oh(u.inertia||u.throwProps,r)}return Z},e.update=function(e,t,n){var o=Z.x,r=Z.y;return ph(!t),e?Z.applyBounds():(k&&n&&hh(!0),ih(!0)),t&&(pe(Z.pointerX,Z.pointerY),k&&hh(!0)),Z.isPressed&&!t&&(q&&.01<Math.abs(o-Z.x)||U&&.01<Math.abs(r-Z.y)&&!K)&&qh(),Z.autoScroll&&(Ga(h.parentNode,Z.isDragging),ee=Z.isDragging,hh(!0),Da(h,xh),Ca(h,xh)),Z},e.enable=function(e){var t,n,o,r={lazy:!0};if(K||!1===u.cursor||(r.cursor=u.cursor||Xe),ge.utils.checkPrefix(\"touchCallout\")&&(r.touchCallout=\"none\"),r.touchAction=q==U?\"none\":u.allowNativeTouchScrolling||u.allowEventDefault?\"manipulation\":q?\"pan-y\":\"pan-x\",\"soft\"!==e){for(n=$.length;-1<--n;)o=$[n],Se||ua(o,\"mousedown\",th),ua(o,\"touchstart\",th),ua(o,\"click\",yh,!0),ge.set(o,r),o.getBBox&&o.ownerSVGElement&&ge.set(o.ownerSVGElement,{touchAction:q==U?\"none\":u.allowNativeTouchScrolling||u.allowEventDefault?\"manipulation\":q?\"pan-y\":\"pan-x\"}),u.allowContextMenu||ua(o,\"contextmenu\",gh);Ra($,!1)}return Ca(h,xh),p=!0,Ee&&\"soft\"!==e&&Ee.track(f||h,G?\"x,y\":K?\"rotation\":\"top,left\"),h._gsDragID=t=\"d\"+Be++,Re[t]=Z,f&&(f.enable(),f.element._gsDragID=t),(u.bounds||K)&&qh(),u.bounds&&Z.applyBounds(),Z},e.disable=function(e){var t,n,o=Z.isDragging;if(!K)for(t=$.length;-1<--t;)Ha($[t],\"cursor\",null);if(\"soft\"!==e){for(t=$.length;-1<--t;)n=$[t],Ha(n,\"touchCallout\",null),Ha(n,\"touchAction\",null),va(n,\"mousedown\",th),va(n,\"touchstart\",th),va(n,\"click\",yh),va(n,\"contextmenu\",gh);Ra($,!0),y&&(va(y,\"touchcancel\",he),va(y,\"touchend\",he),va(y,\"touchmove\",ue)),va(ce,\"mouseup\",he),va(ce,\"mousemove\",ue)}return Da(h,xh),p=!1,Ee&&\"soft\"!==e&&Ee.untrack(f||h,G?\"x,y\":K?\"rotation\":\"top,left\"),f&&f.disable(),sa(hh),Z.isDragging=Z.isPressed=v=!1,o&&La(Z,\"dragend\",\"onDragEnd\"),Z},e.enabled=function(e,t){return arguments.length?e?Z.enable(t):Z.disable(t):p},e.kill=function(){return Z.isThrowing=!1,Z.tween&&Z.tween.kill(),Z.disable(),ge.set($,{clearProps:\"userSelect\"}),delete Re[h._gsDragID],Z},~n.indexOf(\"scroll\")&&(f=e.scrollProxy=new Va(h,function _extend(e,t){for(var n in t)n in e||(e[n]=t[n]);return e}({onKill:function onKill(){Z.isPressed&&he(null)}},u)),h.style.overflowY=U&&!be?\"auto\":\"hidden\",h.style.overflowX=q&&!be?\"auto\":\"hidden\",h=f.content),K?o.rotation=1:(q&&(o[d]=1),U&&(o[j]=1)),le.force3D=!(\"force3D\"in u)||u.force3D,e.enable(),e}!function _setDefaults(e,t){for(var n in t)n in e||(e[n]=t[n])}(H.prototype,{pointerX:0,pointerY:0,startX:0,startY:0,deltaX:0,deltaY:0,isDragging:!1,isPressed:!1}),H.zIndex=1e3,H.version=\"3.4.2\",U()&&ge.registerPlugin(H),e.Draggable=H,e.default=H;if (typeof(window)===\"undefined\"||window!==e){Object.defineProperty(e,\"__esModule\",{value:!0})} else {delete e.default}});\n\n","Nw_Additions/lib/gsap/EaselPlugin.min.js":"/*!\n * EaselPlugin 3.4.2\n * https://greensock.com\n * \n * @license Copyright 2020, GreenSock. All rights reserved.\n * Subject to the terms at https://greensock.com/standard-license or for Club GreenSock members, the agreement issued with that membership.\n * @author: Jack Doyle, [email protected]\n */\n\n!function(e,t){\"object\"==typeof exports&&\"undefined\"!=typeof module?t(exports):\"function\"==typeof define&&define.amd?define([\"exports\"],t):t((e=e||self).window=e.window||{})}(this,function(e){\"use strict\";function k(){return\"undefined\"!=typeof window}function l(){return h||k()&&(h=window.gsap)&&h.registerPlugin&&h}function m(){return r||t&&t.createjs||t||{}}function n(e){return console.warn(e)}function o(e){var t=e.getBounds&&e.getBounds();t||(t=e.nominalBounds||{x:0,y:0,width:100,height:100},e.setBounds&&e.setBounds(t.x,t.y,t.width,t.height)),e.cache&&e.cache(t.x,t.y,t.width,t.height),n(\"EaselPlugin: for filters to display in EaselJS, you must call the object's cache() method first. GSAP attempted to use the target's getBounds() for the cache but that may not be completely accurate. \"+e)}function p(e,t,r){(b=b||m().ColorFilter)||n(\"EaselPlugin error: The EaselJS ColorFilter JavaScript file wasn't loaded.\");for(var i,l,s,u,a,f,c=e.filters||[],d=c.length;d--;)if(c[d]instanceof b){l=c[d];break}if(l||(l=new b,c.push(l),e.filters=c),s=l.clone(),null!=t.tint)i=h.utils.splitColor(t.tint),u=null!=t.tintAmount?+t.tintAmount:1,s.redOffset=i[0]*u,s.greenOffset=i[1]*u,s.blueOffset=i[2]*u,s.redMultiplier=s.greenMultiplier=s.blueMultiplier=1-u;else for(a in t)\"exposure\"!==a&&\"brightness\"!==a&&(s[a]=+t[a]);for(null!=t.exposure?(s.redOffset=s.greenOffset=s.blueOffset=255*(t.exposure-1),s.redMultiplier=s.greenMultiplier=s.blueMultiplier=1):null!=t.brightness&&(u=t.brightness-1,s.redOffset=s.greenOffset=s.blueOffset=0<u?255*u:0,s.redMultiplier=s.greenMultiplier=s.blueMultiplier=1-Math.abs(u)),d=8;d--;
2)l[a=M[d]]!==s[a]&&(f=r.add(l,a,l[a],s[a]))&&(f.op=\"easel_colorFilter\");r._props.push(\"easel_colorFilter\"),e.cacheID||o(e)}function u(e,t){if(!(e instanceof Array&&t instanceof Array))return t;var r,i,n=[],l=0,o=0;for(r=0;r<4;r++){for(i=0;i<5;i++)o=4===i?e[l+4]:0,n[l+i]=e[l]*t[i]+e[l+1]*t[i+5]+e[l+2]*t[i+10]+e[l+3]*t[i+15]+o;l+=5}return n}function z(e,t,r){(d=d||m().ColorMatrixFilter)||n(\"EaselPlugin: The EaselJS ColorMatrixFilter JavaScript file wasn't loaded.\");for(var i,l,s,a,f=e.filters||[],c=f.length;-1<--c;)if(f[c]instanceof d){s=f[c];break}for(s||(s=new d(w.slice()),f.push(s),e.filters=f),l=s.matrix,i=w.slice(),null!=t.colorize&&(i=function _colorize(e,t,r){isNaN(r)&&(r=1);var i=h.utils.splitColor(t),n=i[0]/255,l=i[1]/255,o=i[2]/255,s=1-r;return u([s+r*n*x,r*n*y,r*n*_,0,0,r*l*x,s+r*l*y,r*l*_,0,0,r*o*x,r*o*y,s+r*o*_,0,0,0,0,0,1,0],e)}(i,t.colorize,Number(t.colorizeAmount))),null!=t.contrast&&(i=function _setContrast(e,t){return isNaN(t)?e:u([t+=.01,0,0,0,128*(1-t),0,t,0,0,128*(1-t),0,0,t,0,128*(1-t),0,0,0,1,0],e)}(i,Number(t.contrast))),null!=t.hue&&(i=function _setHue(e,t){if(isNaN(t))return e;t*=Math.PI/180;var r=Math.cos(t),i=Math.sin(t);return u([x+r*(1-x)+i*-x,y+r*-y+i*-y,_+r*-_+i*(1-_),0,0,x+r*-x+.143*i,y+r*(1-y)+.14*i,_+r*-_+-.283*i,0,0,x+r*-x+i*-(1-x),y+r*-y+i*y,_+r*(1-_)+i*_,0,0,0,0,0,1,0,0,0,0,0,1],e)}(i,Number(t.hue))),null!=t.saturation&&(i=function _setSaturation(e,t){if(isNaN(t))return e;var r=1-t,i=r*x,n=r*y,l=r*_;return u([i+t,n,l,0,0,i,n+t,l,0,0,i,n,l+t,0,0,0,0,0,1,0],e)}(i,Number(t.saturation))),c=i.length;-1<--c;)i[c]!==l[c]&&(a=r.add(l,c,l[c],i[c]))&&(a.op=\"easel_colorMatrixFilter\");r._props.push(\"easel_colorMatrixFilter\"),e.cacheID||o(),r._matrix=l}function A(e){h=e||l(),k()&&(t=window),h&&(g=1)}var h,g,t,r,b,d,M=\"redMultiplier,greenMultiplier,blueMultiplier,alphaMultiplier,redOffset,greenOffset,blueOffset,alphaOffset\".split(\",\"),w=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],x=.212671,y=.71516,_=.072169,i={version:\"3.4.2\",name:\"easel\",init:function init(e,t,r,i,l){var o,s,u,a,f,c,d;for(o in g||(A(),h||n(\"Please gsap.registerPlugin(EaselPlugin)\")),this.target=e,t)if(f=t[o],\"colorFilter\"===o||\"tint\"===o||\"tintAmount\"===o||\"exposure\"===o||\"brightness\"===o)u||(p(e,t.colorFilter||t,this),u=!0);
2else if(\"saturation\"===o||\"contrast\"===o||\"hue\"===o||\"colorize\"===o||\"colorizeAmount\"===o)a||(z(e,t.colorMatrixFilter||t,this),a=!0);else if(\"frame\"===o){if(\"string\"==typeof f&&\"=\"!==f.charAt(1)&&(c=e.labels))for(d=0;d<c.length;d++)c[d].label===f&&(f=c[d].position);(s=this.add(e,\"gotoAndStop\",e.currentFrame,f,i,l,Math.round))&&(s.op=o)}else null!=e[o]&&this.add(e,o,\"get\",f)},render:function render(e,t){for(var r=t._pt;r;)r.r(e,r.d),r=r._next;t.target.cacheID&&t.target.updateCache()},register:A,registerCreateJS:function(e){r=e}};l()&&h.registerPlugin(i),e.EaselPlugin=i,e.default=i;if (typeof(window)===\"undefined\"||window!==e){Object.defineProperty(e,\"__esModule\",{value:!0})} else {delete e.default}});\n\n","Nw_Additions/lib/scrollmagic/ScrollMagic.min.js":"/*! ScrollMagic v2.0.8 | (c) 2020 Jan Paepke (@janpaepke) | license & info: http://scrollmagic.io */\n!function(e,t){\"function\"==typeof define&&define.amd?define(t):\"object\"==typeof exports?module.exports=t():e.ScrollMagic=t()}(this,function(){\"use strict\";function _(){}_.version=\"2.0.8\",\"undefined\"!=typeof window&&window.addEventListener(\"mousewheel\",void 0);var P=\"data-scrollmagic-pin-spacer\";_.Controller=function(e){function t(){var e,t,n;v&&u&&(e=R.type.Array(u)?u:f.slice(0),u=!1,t=d,0!=(n=(d=l.scrollPos())-t)&&(h=0<n?\"FORWARD\":i),h===i&&e.reverse(),e.forEach(function(e,t){e.update(!0)}))}function r(){n=R.rAF(t)}var n,o,i=\"REVERSE\",s=\"PAUSED\",a=z.defaults,l=this,c=R.extend({},a,e),f=[],u=!1,d=0,h=s,p=!0,g=0,v=!0,m=function(){0<c.refreshInterval&&(o=window.setTimeout(E,c.refreshInterval))},w=function(){return c.vertical?R.get.scrollTop(c.container):R.get.scrollLeft(c.container)},y=function(){return c.vertical?R.get.height(c.container):R.get.width(c.container)},S=this._setScrollPos=function(e){c.vertical?p?window.scrollTo(R.get.scrollLeft(),e):c.container.scrollTop=e:p?window.scrollTo(e,R.get.scrollTop()):c.container.scrollLeft=e},b=function(e){\"resize\"==e.type&&(g=y(),h=s),!0!==u&&(u=!0,r())},E=function(){if(!p&&g!=y()){var t;try{t=new Event(\"resize\",{bubbles:!1,cancelable:!1})}catch(e){(t=document.createEvent(\"Event\")).initEvent(\"resize\",!1,!1)}c.container.dispatchEvent(t)}f.forEach(function(e,t){e.refresh()}),m()};this._options=c;function x(e){if(e.length<=1)return e;var t=e.slice(0);return t.sort(function(e,t){return e.scrollOffset()>t.scrollOffset()?1:-1}),t}return this.addScene=function(e){if(R.type.Array(e))e.forEach(function(e,t){l.addScene(e)});else if(e instanceof _.Scene)if(e.controller()!==l)e.addTo(l);else if(!~f.indexOf(e))for(var t in f.push(e),f=x(f),e.on(\"shift.controller_sort\",function(){f=x(f)}),c.globalSceneOptions)e[t]&&e[t].call(e,c.globalSceneOptions[t]);return l},this.removeScene=function(e){var t;return R.type.Array(e)?e.forEach(function(e,t){l.removeScene(e)}):-1<(t=f.indexOf(e))&&(e.off(\"shift.controller_sort\"),f.splice(t,1),e.remove()),l},this.updateScene=function(e,n){return R.type.Array(e)?e.forEach(function(e,t){l.updateScene(e,n)}):n?e.update(!0):!0!==u&&e instanceof _.Scene&&(~(u=u||[]).indexOf(e)||u.push(e),u=x(u),r()),l},this.update=function(e){return b({type:\"resize\"}),e&&t(),l},this.scrollTo=function(e,t){if(R.type.Number(e))S.call(c.container,e,t);else if(e instanceof _.Scene)e.controller()===l&&l.scrollTo(e.scrollOffset(),t);else if(R.type.Function(e))S=e;else{var n=R.get.elements(e)[0];if(n){for(;n.parentNode.hasAttribute(P);)n=n.parentNode;var r=c.vertical?\"top\":\"left\",o=R.get.offset(c.container),i=R.get.offset(n);p||(o[r]-=l.scrollPos()),l.scrollTo(i[r]-o[r],t)}}return l},this.scrollPos=function(e){return arguments.length?(R.type.Function(e)&&(w=e),l):w.call(l)},this.info=function(e){var t={size:g,vertical:c.vertical,scrollPos:d,scrollDirection:h,container:c.container,isDocument:p};return arguments.length?void 0!==t[e]?t[e]:void 0:t},this.loglevel=function(e){return l},this.enabled=function(e){return arguments.length?(v!=e&&(v=!!e,l.updateScene(f,!0)),l):v},this.destroy=function(e){window.clearTimeout(o);for(var t=f.length;t--;)f[t].destroy(e);return c.container.removeEventListener(\"resize\",b),c.container.removeEventListener(\"scroll\",b),R.cAF(n),null},function(){for(var e in c)a.hasOwnProperty(e)||delete c[e];if(c.container=R.get.elements(c.container)[0],!c.container)throw\"ScrollMagic.Controller init failed.\";(p=c.container===window||c.container===document.body||!document.body.contains(c.container))&&(c.container=window),g=y(),c.container.addEventListener(\"resize\",b),c.container.addEventListener(\"scroll\",b);var t=parseInt(c.refreshInterval,10);
vendor: 5,981 bytes, line 2
2c.refreshInterval=R.type.Number(t)?t:a.refreshInterval,m()}(),l};var z={defaults:{container:window,vertical:!0,globalSceneOptions:{},loglevel:2,refreshInterval:100}};_.Controller.addOption=function(e,t){z.defaults[e]=t},_.Controller.extend=function(e){var t=this;_.Controller=function(){return t.apply(this,arguments),this.$super=R.extend({},this),e.apply(this,arguments)||this},R.extend(_.Controller,t),_.Controller.prototype=t.prototype,_.Controller.prototype.constructor=_.Controller},_.Scene=function(e){var n,l,c=\"BEFORE\",f=\"DURING\",u=\"AFTER\",r=D.defaults,d=this,h=R.extend({},r,e),p=c,g=0,a={start:0,end:0},v=0,o=!0,s={};this.on=function(e,o){return R.type.Function(o)&&(e=e.trim().split(\" \")).forEach(function(e){var t=e.split(\".\"),n=t[0],r=t[1];\"*\"!=n&&(s[n]||(s[n]=[]),s[n].push({namespace:r||\"\",callback:o}))}),d},this.off=function(e,i){return e&&(e=e.trim().split(\" \")).forEach(function(e,t){var n=e.split(\".\"),r=n[0],o=n[1]||\"\";(\"*\"===r?Object.keys(s):[r]).forEach(function(e){for(var t=s[e]||[],n=t.length;n--;){var r=t[n];!r||o!==r.namespace&&\"*\"!==o||i&&i!=r.callback||t.splice(n,1)}t.length||delete s[e]})}),d},this.trigger=function(e,n){var t,r,o,i;return e&&(t=e.trim().split(\".\"),r=t[0],o=t[1],(i=s[r])&&i.forEach(function(e,t){o&&o!==e.namespace||e.callback.call(d,new _.Event(r,e.namespace,d,n))})),d},d.on(\"change.internal\",function(e){\"loglevel\"!==e.what&&\"tweenChanges\"!==e.what&&(\"triggerElement\"===e.what?y():\"reverse\"===e.what&&d.update())}).on(\"shift.internal\",function(e){t(),d.update()}),this.addTo=function(e){return e instanceof _.Controller&&l!=e&&(l&&l.removeScene(d),l=e,E(),i(!0),y(!0),t(),l.info(\"container\").addEventListener(\"resize\",S),e.addScene(d),d.trigger(\"add\",{controller:l}),d.update()),d},this.enabled=function(e){return arguments.length?(o!=e&&(o=!!e,d.update(!0)),d):o},this.remove=function(){var e;return l&&(l.info(\"container\").removeEventListener(\"resize\",S),e=l,l=void 0,e.removeScene(d),d.trigger(\"remove\")),d},this.destroy=function(e){return d.trigger(\"destroy\",{reset:e}),d.remove(),d.off(\"*.*\"),null},this.update=function(e){var t,n;return l&&(e?l.enabled()&&o?(t=l.info(\"scrollPos\"),n=0<h.duration?(t-a.start)/(a.end-a.start):t>=a.start?1:0,d.trigger(\"update\",{startPos:a.start,endPos:a.end,scrollPos:t}),d.progress(n)):m&&p===f&&T(!0):l.updateScene(d,!1)),d},this.refresh=function(){return i(),y(),d},this.progress=function(e){if(arguments.length){var t,n,r,o=!1,i=p,s=l?l.info(\"scrollDirection\"):\"PAUSED\",a=h.reverse||g<=e;return 0===h.duration?(o=g!=e,p=0===(g=e<1&&a?0:1)?c:f):e<0&&p!==c&&a?(p=c,o=!(g=0)):0<=e&&e<1&&a?(g=e,p=f,o=!0):1<=e&&p!==u?(g=1,p=u,o=!0):p!==f||a||T(),o&&(t={progress:g,state:p,scrollDirection:s},r=function(e){d.trigger(e,t)},(n=p!=i)&&i!==f&&(r(\"enter\"),r(i===c?\"start\":\"end\")),r(\"progress\"),n&&p!==f&&(r(p===c?\"start\":\"end\"),r(\"leave\"))),d}return g};var m,w,t=function(){a={start:v+h.offset},l&&h.triggerElement&&(a.start-=l.info(\"size\")*h.triggerHook),a.end=a.start+h.duration},i=function(e){var t;!n||x(t=\"duration\",n.call(d))&&!e&&(d.trigger(\"change\",{what:t,newval:h[t]}),d.trigger(\"shift\",{reason:t}))},y=function(e){var t=0,n=h.triggerElement;if(l&&(n||0<v)){if(n)if(n.parentNode){for(var r=l.info(),o=R.get.offset(r.container),i=r.vertical?\"top\":\"left\";n.parentNode.hasAttribute(P);)n=n.parentNode;var s=R.get.offset(n);r.isDocument||(o[i]-=l.scrollPos()),t=s[i]-o[i]}else d.triggerElement(void 0);var a=t!=v;v=t,a&&!e&&d.trigger(\"shift\",{reason:\"triggerElementPosition\"})}},S=function(e){0<h.triggerHook&&d.trigger(\"shift\",{reason:\"containerResize\"})},b=R.extend(D.validate,{duration:function(t){var e;if(R.type.String(t)&&t.match(/^(\\.|\\d)*\\d+%$/)&&(e=parseFloat(t)/100,t=function(){return l?l.info(\"size\")*e:0}),R.type.Function(t)){n=t;try{t=parseFloat(n.call(d))}catch(e){t=-1}}if(t=parseFloat(t),!R.type.Number(t)||t<0)throw n=n&&void 0,0;return t}}),E=function(e){(e=arguments.length?[e]:Object.keys(b)).forEach(function(t,e){var n;if(b[t])try{n=b[t](h[t])}catch(e){n=r[t]}finally{h[t]=n}})},x=function(e,t){var n=!1,r=h[e];return h[e]!=t&&(h[e]=t,E(e),n=r!=h[e]),n},z=function(t){d[t]||(d[t]=function(e){return arguments.length?(\"duration\"===t&&(n=void 0),x(t,e)&&(d.trigger(\"change\",{what:t,newval:h[t]}),~D.shifts.indexOf(t)&&d.trigger(\"shift\",{reason:t})),d):h[t]})};this.controller=function(){return l},this.state=function(){return p},this.scrollOffset=function(){return a.start},this.triggerPosition=function(){var e=h.offset;return l&&(h.triggerElement?e+=v:e+=l.info(\"size\")*d.triggerHook()),e},d.on(\"shift.internal\",function(e){var t=\"duration\"===e.reason;(p===u&&t||p===f&&0===h.duration)&&T(),t&&A()}).on(\"progress.internal\",function(e){T()}).on(\"add.internal\",function(e){A()}).on(\"destroy.internal\",function(e){d.removePin(e.reset)});function C(){l&&m&&p===f&&!l.info(\"isDocument\")&&T()}function F(){l&&m&&p===f&&((w.relSize.width||w.relSize.autoFullWidth)&&R.get.width(window)!=R.get.width(w.spacer.parentNode)||w.relSize.height&&R.get.height(window)!=R.get.height(w.spacer.parentNode))&&A()}function L(e){l&&m&&p===f&&!l.info(\"isDocument\")&&(e.preventDefault(),l._setScrollPos(l.info(\"scrollPos\")-((e.wheelDelta||e[l.info(\"vertical\")?\"wheelDeltaY\":\"wheelDeltaX\"])/3||30*-e.detail)))}var T=function(e){var t,n,r,o,i,s;m&&l&&(t=l.info(),n=w.spacer.firstChild,e||p!==f?(r={position:w.inFlow?\"relative\":\"absolute\",top:0,left:0},o=R.css(n,\"position\")!=r.position,w.pushFollowers?0<h.duration&&(p===u&&0===parseFloat(R.css(w.spacer,\"padding-top\"))||p===c&&0===parseFloat(R.css(w.spacer,\"padding-bottom\")))&&(o=!0):r[t.vertical?\"top\":\"left\"]=h.duration*g,R.css(n,r),o&&A()):(\"fixed\"!=R.css(n,\"position\")&&(R.css(n,{position:\"fixed\"}),A()),i=R.get.offset(w.spacer,!0),s=h.reverse||0===h.duration?t.scrollPos-a.start:Math.round(g*h.duration*10)/10,i[t.vertical?\"top\":\"left\"]+=s,R.css(w.spacer.firstChild,{top:i.top,left
2:i.left})))},A=function(){var e,t,n,r,o;m&&l&&w.inFlow&&(e=p===f,t=l.info(\"vertical\"),n=w.spacer.firstChild,r=R.isMarginCollapseType(R.css(w.spacer,\"display\")),o={},w.relSize.width||w.relSize.autoFullWidth?e?R.css(m,{width:R.get.width(w.spacer)}):R.css(m,{width:\"100%\"}):(o[\"min-width\"]=R.get.width(t?m:n,!0,!0),o.width=e?o[\"min-width\"]:\"auto\"),w.relSize.height?e?R.css(m,{height:R.get.height(w.spacer)-(w.pushFollowers?h.duration:0)}):R.css(m,{height:\"100%\"}):(o[\"min-height\"]=R.get.height(t?n:m,!0,!r),o.height=e?o[\"min-height\"]:\"auto\"),w.pushFollowers&&(o[\"padding\"+(t?\"Top\":\"Left\")]=h.duration*g,o[\"padding\"+(t?\"Bottom\":\"Right\")]=h.duration*(1-g)),R.css(w.spacer,o))};this.setPin=function(e,t){if(t=R.extend({},{pushFollowers:!0,spacerClass:\"scrollmagic-pin-spacer\"},t),!(e=R.get.elements(e)[0]))return d;if(\"fixed\"===R.css(e,\"position\"))return d;if(m){if(m===e)return d;d.removePin()}var n=(m=e).parentNode.style.display,r=[\"top\",\"left\",\"bottom\",\"right\",\"margin\",\"marginLeft\",\"marginRight\",\"marginTop\",\"marginBottom\"];m.parentNode.style.display=\"none\";var o=\"absolute\"!=R.css(m,\"position\"),i=R.css(m,r.concat([\"display\"])),s=R.css(m,[\"width\",\"height\"]);m.parentNode.style.display=n,!o&&t.pushFollowers&&(t.pushFollowers=!1);var a,l=m.parentNode.insertBefore(document.createElement(\"div\"),m),c=R.extend(i,{position:o?\"relative\":\"absolute\",boxSizing:\"content-box\",mozBoxSizing:\"content-box\",webkitBoxSizing:\"content-box\"});return o||R.extend(c,R.css(m,[\"width\",\"height\"])),R.css(l,c),l.setAttribute(P,\"\"),R.addClass(l,t.spacerClass),w={spacer:l,relSize:{width:\"%\"===s.width.slice(-1),height:\"%\"===s.height.slice(-1),autoFullWidth:\"auto\"===s.width&&o&&R.isMarginCollapseType(i.display)},pushFollowers:t.pushFollowers,inFlow:o},m.___origStyle||(m.___origStyle={},a=m.style,r.concat([\"width\",\"height\",\"position\",\"boxSizing\",\"mozBoxSizing\",\"webkitBoxSizing\"]).forEach(function(e){m.___origStyle[e]=a[e]||\"\"})),w.relSize.width&&R.css(l,{width:s.width}),w.relSize.height&&R.css(l,{height:s.height}),l.appendChild(m),R.css(m,{position:o?\"relative\":\"absolute\",margin:\"auto\",top:\"auto\",left:\"auto\",bottom:\"auto\",right:\"auto\"}),(w.relSize.width||w.relSize.autoFullWidth)&&R.css(m,{boxSizing:\"border-box\",mozBoxSizing:\"border-box\",webkitBoxSizing:\"border-box\"}),window.addEventListener(\"scroll\",C),window.addEventListener(\"resize\",C),window.addEventListener(\"resize\",F),m.addEventListener(\"mousewheel\",L),m.addEventListener(\"DOMMouseScroll\",L),T(),d},this.removePin=function(e){var t,n,r;return m&&(p===f&&T(!0),!e&&l||((t=w.spacer.firstChild).hasAttribute(P)&&(n=w.spacer.style,r={},[\"margin\",\"marginLeft\",\"marginRight\",\"marginTop\",\"marginBottom\"].forEach(function(e){r[e]=n[e]||\"\"}),R.css(t,r)),w.spacer.parentNode.insertBefore(t,w.spacer),w.spacer.parentNode.removeChild(w.spacer),m.parentNode.hasAttribute(P)||(R.css(m,m.___origStyle),delete m.___origStyle)),window.removeEventListener(\"scroll\",C),window.removeEventListener(\"resize\",C),window.removeEventListener(\"resize\",F),m.removeEventListener(\"mousewheel\",L),m.removeEventListener(\"DOMMouseScroll\",L),m=void 0),d};var N,O=[];return d.on(\"destroy.internal\",function(e){d.removeClassToggle(e.reset)}),this.setClassToggle=function(e,t){var n=R.get.elements(e);return 0!==n.length&&R.type.String(t)&&(0<O.length&&d.removeClassToggle(),N=t,O=n,d.on(\"enter.internal_class leave.internal_class\",function(e){var n=\"enter\"===e.type?R.addClass:R.removeClass;O.forEach(function(e,t){n(e,N)})})),d},this.removeClassToggle=function(e){return e&&O.forEach(function(e,t){R.removeClass(e,N)}),d.off(\"start.internal_class end.internal_class\"),N=void 0,O=[],d},function(){for(var e in h)r.hasOwnProperty(e)||delete h[e];for(var t in r)z(t);E()}(),d};var D={defaults:{duration:0,offset:0,triggerElement:void 0,triggerHook:.5,reverse:!0,loglevel:2},validate:{offset:function(e){if(e=parseFloat(e),!R.type.Number(e))throw 0;return e},triggerElement:function(e){if(e=e||void 0){var t=R.get.elements(e)[0];if(!t||!t.parentNode)throw 0;e=t}return e},triggerHook:function(e){var t={onCenter:.5,onEnter:1,onLeave:0};if(R.type.Number(e))e=Math.max(0,Math.min(parseFloat(e),1));else{if(!(e in t))throw 0;e=t[e]}return e},reverse:function(e){return!!e}},shifts:[\"duration\",\"offset\",\"triggerHook\"]};_.Scene.addOption=function(e,t,n,r){e in D.defaults||(D.defaults[e]=t,D.validate[e]=n,r&&D.shifts.push(e))},_.Scene.extend=function(e){var t=this;_.Scene=function(){return t.apply(this,arguments),this.$super=R.extend({},this),e.apply(this,arguments)||this}
2,R.extend(_.Scene,t),_.Scene.prototype=t.prototype,_.Scene.prototype.constructor=_.Scene},_.Event=function(e,t,n,r){for(var o in r=r||{})this[o]=r[o];return this.type=e,this.target=this.currentTarget=n,this.namespace=t||\"\",this.timeStamp=this.timestamp=Date.now(),this};var R=_._util=function(s){function a(e){return parseFloat(e)||0}function l(e){return e.currentStyle?e.currentStyle:s.getComputedStyle(e)}function r(e,t,n,r){if((t=t===document?s:t)===s)r=!1;else if(!u.DomElement(t))return 0;e=e[0].toUpperCase()+e.substr(1).toLowerCase();var o,i=(n?t[\"offset\"+e]||t[\"outer\"+e]:t[\"client\"+e]||t[\"inner\"+e])||0;return n&&r&&(o=l(t),i+=\"Height\"===e?a(o.marginTop)+a(o.marginBottom):a(o.marginLeft)+a(o.marginRight)),i}function c(e){return e.replace(/^[^a-z]+([a-z])/g,\"$1\").replace(/-([a-z])/g,function(e){return e[1].toUpperCase()})}var e={};e.extend=function(e){for(e=e||{},f=1;f<arguments.length;f++)if(arguments[f])for(var t in arguments[f])arguments[f].hasOwnProperty(t)&&(e[t]=arguments[f][t]);return e},e.isMarginCollapseType=function(e){return!!~[\"block\",\"flex\",\"list-item\",\"table\",\"-webkit-box\"].indexOf(e)};for(var o=0,t=[\"ms\",\"moz\",\"webkit\",\"o\"],n=s.requestAnimationFrame,i=s.cancelAnimationFrame,f=0;!n&&f<4;++f)n=s[t[f]+\"RequestAnimationFrame\"],i=s[t[f]+\"CancelAnimationFrame\"]||s[t[f]+\"CancelRequestAnimationFrame\"];n=n||function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-o)),r=s.setTimeout(function(){e(t+n)},n);return o=t+n,r},i=i||function(e){s.clearTimeout(e)},e.rAF=n.bind(s),e.cAF=i.bind(s);var u=e.type=function(e){return Object.prototype.toString.call(e).replace(/^\\[object (.+)\\]$/,\"$1\").toLowerCase()};u.String=function(e){return\"string\"===u(e)},u.Function=function(e){return\"function\"===u(e)},u.Array=function(e){return Array.isArray(e)},u.Number=function(e){return!u.Array(e)&&0<=e-parseFloat(e)+1},u.DomElement=function(e){return\"object\"==typeof HTMLElement||\"function\"==typeof HTMLElement?e instanceof HTMLElement||e instanceof SVGElement:e&&\"object\"==typeof e&&null!==e&&1===e.nodeType&&\"string\"==typeof e.nodeName};var d=e.get={};return d.elements=function(e){var t=[];if(u.String(e))try{e=document.querySelectorAll(e)}catch(e){return t}if(\"nodelist\"===u(e)||u.Array(e)||e instanceof NodeList)for(var n=0,r=t.length=e.length;n<r;n++){var o=e[n];t[n]=u.DomElement(o)?o:d.elements(o)}else!u.DomElement(e)&&e!==document&&e!==s||(t=[e]);return t},d.scrollTop=function(e){return e&&\"number\"==typeof e.scrollTop?e.scrollTop:s.pageYOffset||0},d.scrollLeft=function(e){return e&&\"number\"==typeof e.scrollLeft?e.scrollLeft:s.pageXOffset||0},d.width=function(e,t,n){return r(\"width\",e,t,n)},d.height=function(e,t,n){return r(\"height\",e,t,n)},d.offset=function(e,t){var n,r={top:0,left:0};return e&&e.getBoundingClientRect&&(n=e.getBoundingClientRect(),r.top=n.top,r.left=n.left,t||(r.top+=d.scrollTop(),r.left+=d.scrollLeft())),r},e.addClass=function(e,t){t&&(e.classList?e.classList.add(t):e.className+=\" \"+t)},e.removeClass=function(e,t){t&&(e.classList?e.classList.remove(t):e.className=e.className.replace(RegExp(\"(^|\\\\b)\"+t.split(\" \").join(\"|\")+\"(\\\\b|$)\",\"gi\"),\" \"))},e.css=function(e,t){if(u.String(t))return l(e)[c(t)];if(u.Array(t)){var n={},r=l(e);return t.forEach(function(e,t){n[e]=r[c(e)]}),n}for(var o in t){var i=t[o];i==parseFloat(i)&&(i+=\"px\"),e.style[c(o)]=i}},e}(window||{});return _});","Nw_Additions/lib/scrollmagic/plugins/jquery.ScrollMagic.min.js":"/*! ScrollMagic v2.0.8 | (c) 2020 Jan Paepke (@janpaepke) | license & info: http://scrollmagic.io */\n!function(e,i){\"function\"==typeof define&&define.amd?define([\"ScrollMagic\",\"jquery\"],i):\"object\"==typeof exports?i(require(\"scrollmagic\"),require(\"jquery\")):i(e.ScrollMagic,e.jQuery)}(this,function(e,t){\"use strict\";e._util.get.elements=function(e){return t(e).toArray()},e._util.addClass=function(e,i){t(e).addClass(i)},e._util.removeClass=function(e,i){t(e).removeClass(i)},t.ScrollMagic=e});","Nw_Additions/lib/scrollmagic/plugins/debug.addIndicators.min.js":"/*! ScrollMagic v2.0.8 | (c) 2020 Jan Paepke (@janpaepke) | license & info: http://scrollmagic.io */\n!function(e,r){\"function\"==typeof define&&define.amd?define([\"ScrollMagic\"],r):\"object\"==typeof exports?r(require(\"scrollmagic\")):r(e.ScrollMagic||e.jQuery&&e.jQuery.ScrollMagic)}(this,function(i){\"use strict\";var o=\"0.85em\",n=\"9999\",v=i._util,h=0;i.Scene.extend(function(){var t,i=this;i.addIndicators=function(e){var r;return t||(r={name:\"\",indent:0,parent:void 0,colorStart:\"green\",colorEnd:\"red\",colorTrigger:\"blue\"},e=v.extend({},r,e),h++,t=new s(i,e),i.on(\"add.plugin_addIndicators\",t.add),i.on(\"remove.plugin_addIndicators\",t.remove),i.on(\"destroy.plugin_addIndicators\",i.removeIndicators),i.controller()&&t.add()),i},i.removeIndicators=function(){return t&&(t.remove(),this.off(\"*.plugin_addIndicators\"),t=void 0),i}}),i.Controller.addOption(\"addIndicators\",!1),i.Controller.extend(function(){var c=this,e=c.info(),l=e.container,f=e.isDocument,m=e.vertical,h={groups:[]};this._indicators=h;function r(){h.updateBoundsPositions()}function t(){h.updateTriggerGroupPositions()}return l.addEventListener(\"resize\",t),f||(window.addEventListener(\"resize\",t),window.addEventListener(\"scroll\",t)),l.addEventListener(\"resize\",r),l.addEventListener(\"scroll\",r),this._indicators.updateBoundsPositions=function(e){for(var r,t,i,o=e?[v.extend({},e.triggerGroup,{members:[e]})]:h.groups,n=o.length,s={},d=m?\"left\":\"top\",a=m?\"width\":\"height\",g=m?v.get.scrollLeft(l)+v.get.width(l)-15:v.get.scrollTop(l)+v.get.height(l)-15;n--;)for(r=(i=o[n]).members.length,t=v.get[a](i.element.firstChild);r--;)s[d]=g-t,v.css(i.members[r].bounds,s)},this._indicators.updateTriggerGroupPositions=function(e){for(var r,t,i,o,n=e?[e]:h.groups,s=n.length,d=f?document.body:l,a=f?{top:0,left:0}:v.get.offset(d,!0),g=m?v.get.width(l)-15:v.get.height(l)-15,p=m?\"width\":\"height\",u=m?\"Y\":\"X\";s--;)t=(r=n[s]).element,i=r.triggerHook*c.info(\"size\"),o=v.get[p](t.firstChild.firstChild)<i?\"translate\"+u+\"(-100%)\":\"\",v.css(t,{top:a.top+(m?i:g-r.members[0].options.indent),left:a.left+(m?g-r.members[0].options.indent:i)}),v.css(t.firstChild.firstChild,{\"-ms-transform\":o,\"-webkit-transform\":o,transform:o})},this._indicators.updateTriggerGroupLabel=function(e){var r=\"trigger\"+(1<e.members.length?\"\":\" \"+e.members[0].options.name),t=e.element.firstChild.firstChild;t.textContent!==r&&(t.textContent=r,m&&h.updateBoundsPositions())},this.addScene=function(e){this._options.addIndicators&&e instanceof i.Scene&&e.controller()===c&&e.addIndicators(),this.$super.addScene.apply(this,arguments)},this.destroy=function(){l.removeEventListener(\"resize\",t),f||(window.removeEventListener(\"resize\",t),window.removeEventListener(\"scroll\",t)),l.removeEventListener(\"resize\",r),l.removeEventListener(\"scroll\",r),this.$super.destroy.apply(this,arguments)},c});var s=function(o,n){var s,d,a=this,t=b.bounds(),i=b.start(n.colorStart),g=b.end(n.colorEnd),p=n.parent&&v.get.elements(n.parent)[0];n.name=n.name||h,i.firstChild.textContent+=\" \"+n.name,g.textContent+=\" \"+n.name,t.appendChild(i),t.appendChild(g),a.options=n,a.bounds=t,a.triggerGroup=void 0,this.add=function(){d=o.controller(),s=d.info(\"vertical\");var e=d.info(\"isDocument\");p=p||(e?document.body:d.info(\"container\")),e||\"static\"!==v.css(p,\"position\")||v.css(p,{position:\"relative\"}),o.on(\"change.plugin_addIndicators\",u),o.on(\"shift.plugin_addIndicators\",r),m(),l(),setTimeout(function(){d._indicators.updateBoundsPositions(a)}
2,0)},this.remove=function(){var e;a.triggerGroup&&(o.off(\"change.plugin_addIndicators\",u),o.off(\"shift.plugin_addIndicators\",r),1<a.triggerGroup.members.length?((e=a.triggerGroup).members.splice(e.members.indexOf(a),1),d._indicators.updateTriggerGroupLabel(e),d._indicators.updateTriggerGroupPositions(e),a.triggerGroup=void 0):f(),c())};var r=function(){l()},u=function(e){\"triggerHook\"===e.what&&m()},c=function(){t.parentNode.removeChild(t)},l=function(){var e;t.parentNode!==p&&(e=d.info(\"vertical\"),v.css(i.firstChild,{\"border-bottom-width\":e?1:0,\"border-right-width\":e?0:1,bottom:e?-1:n.indent,right:e?n.indent:-1,padding:e?\"0 8px\":\"2px 4px\"}),v.css(g,{\"border-top-width\":e?1:0,\"border-left-width\":e?0:1,top:e?\"100%\":\"\",right:e?n.indent:\"\",bottom:e?\"\":n.indent,left:e?\"\":\"100%\",padding:e?\"0 8px\":\"2px 4px\"}),p.appendChild(t));var r={};r[s?\"top\":\"left\"]=o.triggerPosition(),r[s?\"height\":\"width\"]=o.duration(),v.css(t,r),v.css(g,{display:0<o.duration()?\"\":\"none\"})},f=function(){d._indicators.groups.splice(d._indicators.groups.indexOf(a.triggerGroup),1),a.triggerGroup.element.parentNode.removeChild(a.triggerGroup.element),a.triggerGroup=void 0},m=function(){var e=o.triggerHook();if(!(a.triggerGroup&&Math.abs(a.triggerGroup.triggerHook-e)<1e-4)){for(var r,t=d._indicators.groups,i=t.length;i--;)if(r=t[i],Math.abs(r.triggerHook-e)<1e-4)return a.triggerGroup&&(1===a.triggerGroup.members.length?f():(a.triggerGroup.members.splice(a.triggerGroup.members.indexOf(a),1),d._indicators.updateTriggerGroupLabel(a.triggerGroup),d._indicators.updateTriggerGroupPositions(a.triggerGroup))),r.members.push(a),a.triggerGroup=r,void d._indicators.updateTriggerGroupLabel(r);if(a.triggerGroup){if(1===a.triggerGroup.members.length)return a.triggerGroup.triggerHook=e,void d._indicators.updateTriggerGroupPositions(a.triggerGroup);a.triggerGroup.members.splice(a.triggerGroup.members.indexOf(a),1),d._indicators.updateTriggerGroupLabel(a.triggerGroup),d._indicators.updateTriggerGroupPositions(a.triggerGroup),a.triggerGroup=void 0}!function(){var e=b.trigger(n.colorTrigger),r={};r[s?\"right\":\"bottom\"]=0,r[s?\"border-top-width\":\"border-left-width\"]=1,v.css(e.firstChild,r),v.css(e.firstChild.firstChild,{padding:s?\"0 8px 3px 8px\":\"3px 4px\"}),document.body.appendChild(e);var t={triggerHook:o.triggerHook(),element:e,members:[a]};d._indicators.groups.push(t),a.triggerGroup=t,d._indicators.updateTriggerGroupLabel(t),d._indicators.updateTriggerGroupPositions(t)}()}}},b={start:function(e){var r=document.createElement(\"div\");r.textContent=\"start\",v.css(r,{position:\"absolute\",overflow:\"visible\",\"border-width\":0,\"border-style\":\"solid\",color:e,\"border-color\":e});var t=document.createElement(\"div\");return v.css(t,{position:\"absolute\",overflow:\"visible\",width:0,height:0}),t.appendChild(r),t},end:function(e){var r=document.createElement(\"div\");return r.textContent=\"end\",v.css(r,{position:\"absolute\",overflow:\"visible\",\"border-width\":0,\"border-style\":\"solid\",color:e,\"border-color\":e}),r},bounds:function(){var e=document.createElement(\"div\");return v.css(e,{position:\"absolute\",overflow:\"visible\",\"white-space\":\"nowrap\",\"pointer-events\":\"none\",\"font-size\":o}),e.style.zIndex=n,e},trigger:function(e){var r=document.createElement(\"div\");r.textContent=\"trigger\",v.css(r,{position:\"relative\"});var t=document.createElement(\"div\");v.css(t,{position:\"absolute\",overflow:\"visible\",\"border-width\":0,\"border-style\":\"solid\",color:e,\"border-color\":e}),t.appendChild(r);var i=document.createElement(\"div\");return v.css(i,{position:\"fixed\",overflow:\"visible\",\"white-space\":\"nowrap\",\"pointer-events\":\"none\",\"font-size\":o}),i.style.zIndex=n,i.appendChild(t),i}}});","Nw_Additions/lib/scrollmagic/plugins/animation.velocity.min.js":"/*! ScrollMagic v2.0.8 | (c) 2020 Jan Paepke (@janpaepke) | license & info: http://scrollmagic.io */\n!function(e,i){\"function\"==typeof define&&define.amd?define([\"ScrollMagic\",\"velocity\"],i):\"object\"==typeof exports?i(require(\"scrollmagic\"),require(\"velocity\")):i(e.ScrollMagic||e.jQuery&&e.jQuery.ScrollMagic,e.Velocity||e.jQuery&&e.jQuery.Velocity)}(this,function(e,y){\"use strict\";var v=0;e.Scene.extend(function(){var o,r,u,n,c=this,l=e._util,i=0;c.on(\"progress.plugin_velocity\",function(){f()}),c.on(\"destroy.plugin_velocity\",function(e){c.off(\"*.plugin_velocity\"),c.removeVelocity(e.reset)});var s=function(e,i,t){l.type.Array(e)?e.forEach(function(e){s(e,i,t)}):(y.Utilities.data(e,n)||y.Utilities.data(e,n,{reverseProps:l.css(e,Object.keys(r))}),y(e,i,t),void 0!==t.queue&&y.Utilities.dequeue(e,t.queue))},a=function(e,i){var t;l.type.Array(e)?e.forEach(function(e){a(e,i)}):(t=y.Utilities.data(e,n))&&t.reverseProps&&(y(e,t.reverseProps,i),void 0!==i.queue&&y.Utilities.dequeue(e,i.queue))},f=function(){var e;!o||(e=c.progress())!=i&&(0===c.duration()&&(0<e?s(o,r,u):a(o,u)),i=e)};c.setVelocity=function(e,i,t){return o&&c.removeVelocity(),o=l.get.elements(e),r=i||{},n=\"ScrollMagic.animation.velocity[\"+v+++\"]\",void 0!==(u=t||{}).queue&&(u.queue=n+\"_queue\"),f(),c},c.removeVelocity=function(e){return o&&(void 0!==u.queue&&y(o,\"stop\",u.queue),e&&a(o,{duration:0}),o.forEach(function(e){y.Utilities.removeData(e,n)}),o=r=u=n=void 0),c}})});","Nw_Additions/lib/scrollmagic/plugins/animation.gsap.min.js":"/*! ScrollMagic v2.0.8 | (c) 2020 Jan Paepke (@janpaepke) | license & info: http://scrollmagic.io */\n!function(e,n){var r;\"function\"==typeof define&&define.amd?define([\"ScrollMagic\",\"gsap\",\"TweenMax\",\"TimelineMax\"],n):\"object\"==typeof exports?(r=require(\"gsap/dist/gsap\")||require(\"gsap\"),n(require(\"scrollmagic\"),r,TweenMax||r,TimelineMax||r)):n(e.ScrollMagic||e.jQuery&&e.jQuery.ScrollMagic,e.gsap,e.gsap||e.TweenMax||e.TweenLite,e.gsap||e.TimelineMax||e.TimelineLite)}(this,function(e,n,p,u){\"use strict\";var g=n&&3<=parseFloat(n.version);e.Scene.addOption(\"tweenChanges\",!1,function(e){return!!e}),e.Scene.extend(function(){var o,i=this;i.on(\"progress.plugin_gsap\",function(){s()}),i.on(\"destroy.plugin_gsap\",function(e){i.removeTween(e.reset)});var s=function(){var e,n;o&&(e=i.progress(),n=i.state(),o.repeat&&-1===o.repeat()?\"DURING\"===n&&o.paused()?o.play():\"DURING\"===n||o.paused()||o.pause():e!=o.progress()&&(0===i.duration()?0<e?o.play():o.reverse():i.tweenChanges()&&o.tweenTo?o.tweenTo(e*o.duration()):o.progress(e).pause()))};i.setTween=function(e,n,r){var t,a;1<arguments.length&&(a=\"number\"==typeof arguments[1],g?(a||(r=n),r.hasOwnProperty(\"duration\")||(r.duration=a?n:1)):arguments.length<3&&(r=n,n=1),e=g?p.to(e,r):p.to(e,n,r));try{(t=u&&!g?new u({smoothChildTiming:!0}).add(e):e).pause()}catch(e){return i}return o&&i.removeTween(),o=t,e.repeat&&-1===e.repeat()&&(o.repeat(-1),o.yoyo(e.yoyo())),s(),i},i.removeTween=function(e){return o&&(e&&o.progress(0).pause(),o.kill(),o=void 0),i}})});"}
3}});

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.