1(e="function"==typeof define&&define.amd?define:function(t,o){"undefined"!=typeof module&&module.exports?module.exports=o(require("jquery")):window.toastr=o(window.jQuery)})(["jquery"],function(t){return function(){function o(t,o,n){return v({type:E.error,iconClass:y().iconClasses.error,message:t,optionsOverride:n,title:o})}function n(o,n){return o||(o=y()),(C=t("#"+o.containerId)).length||n&&(C=f(o)),C}function s(t,o,n){return v({type:E.info,iconClass:y().iconClasses.info,message:t,optionsOverride:n,title:o})}function r(t){b=t}function a(t,o,n){return v({type:E.success,iconClass:y().iconClasses.success,message:t,optionsOverride:n,title:o})}function l(t,o,n){return v({type:E.warning,iconClass:y().iconClasses.warning,message:t,optionsOverride:n,title:o})}function h(t,o){var s=y();C||n(s),p(t,s,o)||d(s)}function c(o){var s=y();return C||n(s),o&&0===t(":focus",o).length?void w(o):void(C.children().length&&C.remove())}function d(o){for(var n=C.children(),s=n.length-1;s>=0;s--)p(t(n[s]),o)}function p(o,n,s){var r=!!s&&!!s.force&&s.force;return!!o&&(!!r||0===t(":focus",o).length)&&(o[n.hideMethod]({duration:n.hideDuration,easing:n.hideEasing,complete:function(){w(o)}}),!0)}function f(o){return(C=t("<div/>").attr("id",o.containerId).addClass(o.positionClass).attr("aria-live","polite").attr("role","alert")).appendTo(t(o.target)),C}function g(){return{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,closeMethod:!1,closeDuration:!1,closeEasing:!1,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",escapeHtml:!1,target:"body",closeHtml:'<button type="button">×</button>',newestOnTop:!0,preventDuplicates:!1,progressBar:!1}}function m(t){b&&b(t)}function v(o){function s(t){return null==t&&(t=""),new String(t).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function r(){h(),d(),p(),f(),g(),c()}function a(){O.hover(I,E),!x.onclick&&x.tapToDismiss&&O.click(b),x.closeButton&&L&&L.click(function(t){t.stopPropagation?t.stopPropagation():void 0!==t.cancelBubble&&!0!==t.cancelBubble&&(t.cancelBubble=!0),b(!0)}),x.onclick&&O.click(function(t){x.onclick(t),b()})}function l(){O.hide(),O[x.showMethod]({duration:x.showDuration,easing:x.showEasing,complete:x.onShown}),x.timeOut>0&&(A=setTimeout(b,x.timeOut),P.maxHideTime=parseFloat(x.timeOut),P.hideEta=(new Date).getTime()+P.maxHideTime,x.progressBar&&(P.intervalId=setInterval(S,10)))}function h(){o.iconClass&&O.addClass(x.toastClass).addClass(_)}function c(){x.newestOnTop?C.prepend(O):C.append(O)}function d(){o.title&&(k.append(x.escapeHtml?s(o.title):o.title).addClass(x.titleClass),O.append(k))}function p(){o.message&&(D.append(x.escapeHtml?s(o.message):o.message).addClass(x.messageClass),O.append(D))}function f(){x.closeButton&&(L.addClass("toast-close-button").attr("role","button"),O.prepend(L))}function g(){x.progressBar&&(W.addClass("toast-progress"),O.prepend(W))}function v(t,o){if(t.preventDuplicates){if(o.message===T)return!0;T=o.message}return!1}function b(o){var n=o&&!1!==x.closeMethod?x.closeMethod:x.hideMethod,s=o&&!1!==x.closeDuration?x.closeDuration:x.hideDuration,r=o&&!1!==x.closeEasing?x.closeEasing:x.hideEasing;return!t(":focus",O).length||o?(clearTimeout(P.intervalId),O[n]({duration:s,easing:r,complete:function(){w(O),x.onHidden&&"hidden"!==N.state&&x.onHidden(),N.state="hidden",N.endTime=new Date,m(N)}})):void 0}function E(){(x.timeOut>0||x.extendedTimeOut>0)&&(A=setTimeout(b,x.extendedTimeOut),P.maxHideTime=parseFloat(x.extendedTimeOut),P.hideEta=(new Date).getTime()+P.maxHideTime)}function I(){clearTimeout(A),P.hideEta=0,O.stop(!0,!0)[x.showMethod]({duration:x.showDuration,easing:x.showEasing})}function S(){var t=(P.hideEta-(new Date).getTime())/P.maxHideTime*100;W.width(t+"%")}var x=y(),_=o.iconClass||x.iconClass;if(void 0!==o.optionsOverride&&(x=t.extend(x,o.optionsOverride),_=o.optionsOverride.iconClass||_),!v(x,o)){z++,C=n(x,!0);var A=null,O=t("<div/>"),k=t("<div/>
1"),D=t("<div/>"),W=t("<div/>"),L=t(x.closeHtml),P={intervalId:null,hideEta:null,maxHideTime:null},N={toastId:z,state:"visible",startTime:new Date,options:x,map:o};return r(),l(),a(),m(N),x.debug&&console&&console.log(N),O}}function y(){return t.extend({},g(),I.options)}function w(t){C||(C=n()),t.is(":visible")||(t.remove(),t=null,0===C.children().length&&(C.remove(),T=void 0))}var C,b,T,z=0,E={error:"error",info:"info",success:"success",warning:"warning"},I={clear:h,remove:c,error:o,getContainer:n,info:s,options:{},subscribe:r,success:a,version:"2.1.2",warning:l};return I}()});var e,App={templateOpening:"{",templateClosing:"}",asyncformpost:{successClass:"success",errorClass:"error",loaderClass:"loading",responseClass:"ayncResponse"},cart:{cartAddFailureClass:"cartActionFailureResponse",cartAddFailureMsgClass:"cartActionFailureResponseMessage",cartAddSuccessClass:"cartActionSuccessResponse",cartItemCountClass:"cartItemCount",cartTotalClass:"cartTotal",modalBodyTemplate:"<tr><td><img src='{ImageUrl}' style='height:26px;'></td><td><a href='{ProductLink}' title='{FullName}' class=''>{Name}</a></td><td class=\"text-right\">{ItemPrice}</td><td class=\"text-center\">{ANTALL}</td><td class=\"text-right\">{WebPrice}</td></tr>"},texts:{commError:"Klarte ikke kommunisere med server"}};function generateDropDown(t,o){for(var n="",s=t;s<o+1;s++)s<=9&&(s="0"+s),n+="<option value='"+s+"'>"+s+"</option>";return n}function hidefields_guest(){$(".passwordfields_guest").hide()}function showfields_noguest(){$(".passwordfields_guest").show()}function openLeftSlide(t){var o={slideSelector:".slide",slideOpenClass:"slideOpened"};t=$.extend({},o,t),$(t.slideSelector).hasClass(t.slideOpenClass)||($panelwidth=$(t.slideSelector).width()+25,$(this).showDialog({onBeforeShow:function(){$("body, html").css("overflow","hidden"),$(t.slideSelector).css("visibility","visible")},onShow:function(){$(t.slideSelector).css("left","0"),$("#transparentWrap").css({"margin-left":$panelwidth}),$(t.slideSelector).addClass(t.slideOpenClass)}}))}function closeLeftSlide(t){var o={slideSelector:".slide",slideOpenClass:"slideOpened"};t=$.extend({},o,t),$(t.slideSelector).hasClass(t.slideOpenClass)&&($(t.slideSelector).css({left:"-100%"}),$("#transparentWrap").css({"margin-left":"0"}),$(t.slideSelector).removeClass(t.slideOpenClass),$(t.slideSelector).css({visibility:"hidden"}),$("body, html").css("overflow","auto")),$(".overlay").length&&$(".overlay").fadeOut()}function getId(t){return t.getId(t)}jQuery.ajaxSetup({dataType:"json",url:"/ajaxcall"}),function(t,o){o.comm=function(t,o,n,s,r){var a,l={data:t,method:"POST",success:function(t){a=t},error:function(){a={error:1,errorMsg:"Kommunikasjonsfeil"}},complete:function(){null==a&&(a={error:1,errorMsg:"Kommunikasjonsfeil"}),o(a,t,n)}};"string"==typeof s&&(l.dataType=s),jQuery.ajax(l)},o.AsyncFormSubmit=function(n,s,r,a){var l=n;t(".alert",l).addClass("hidden-xs-up hidden"),t(".loading",l).removeClass("hidden-xs-up hidden");var h=l.serializeObject();o.comm(h,function(n){if(t(".loading",l).addClass("hidden-xs-up hidden"),void 0!==n&&void 0!==n.error){if(n.error>0){(t(".login_recaptcha",l).length&&(1==n.grecaptchav2?(t(".login_recaptcha",l).removeAttr("name").attr("name","g-recaptcha-response"),t(".recaptchav2_block",l).remove()):(t(".recaptchav2_block",l).css("display","block"),t(".recaptchav2_block",l).length&&(t(".login_recaptcha",l).val(""),t(".login_recaptcha",l).removeAttr("name")))),n.error>1)?t(".error[data-error="+n.error+"]").length>0&&t(".error",l).removeClass("hidden-xs-up hidden"):t(".error",l).removeClass("hidden-xs-up hidden").html(n.errorMsg),"function"==typeof r&&r.call(this,n);return}t(".success",l).removeClass("hidden-xs-up hidden"),"function"==typeof s&&s.call(this,n);return}t(".error",l).removeClass("hidden-xs-up hidden").html(o.texts.commError)},l)},o.undefined=function(t){return t},o.productSearch=function(){var t={mod:"product",action:"search"},n=o.undefined();o.comm(t,function(t){"object"==typeof(returnData=t)&&(returnData.error>0?alert(returnData.errorMsg):"function"==typeof n&&n.call(this,returnData))})},o.addToCart=function(){var t,n={mod:"cart",action:"add"},s=1,r=o.undefined();if("object"==typeof arguments[0])for(var a in arguments[0])n[a]=arguments[0][a];else t=arguments[0],n.productId=t;addonPriceInfo=arguments[3],n.addonPriceInfo=addonPriceInfo,alternativesPr
1iceInfo=arguments[4],n.alternativesPriceInfo=alternativesPriceInfo,includeIngredientInfo=arguments[5],n.includeIngredientInfo=includeIngredientInfo,excludeIngredientInfo=arguments[7],n.excludeIngredientInfo=excludeIngredientInfo,includeRoastDegreeInfo=arguments[6],n.includeRoastDegreeInfo=includeRoastDegreeInfo,s=typeof arguments[1]!=o.undefined()?arguments[1]:1,n.quantity=s,r="function"==typeof arguments[2]?arguments[2]:o.undefined();var l=null;o.comm(n,function(t){"object"==typeof(l=t)&&(l.error>0?alert(l.errorMsg):(o.updateCart(t),"function"==typeof r&&r.call(this,l)))})},o.updateCart=function(n){null==n?t("."+o.cart.cartAddFailureClass).show(1):1==n.error?(t("."+o.cart.cartAddFailureMsgClass).html(n.errorMsg),t("."+o.cart.cartAddFailureClass).show(1)):(t("."+o.cart.cartAddFailureMsgClass).html(""),t("."+o.cart.cartItemCountClass).html(n.cartItemCount),t("."+o.cart.cartTotalClass).html(n.cartTotal),t("."+o.cart.cartAddSuccessClass).show(1),void 0!==n.cart&&(t("#CartModal").length&&(t(".miniCartTable table tbody").html(n.cart),t("#CartModal table tbody").html(n.cart),t("#CartModal table tbody td.delete").remove(),t("#CartModal").modal("show"),t(".mini-cart-link").removeClass("hidden-xs-up hidden")),t("#shoppingCart").length&&t("#shoppingCartRows").html(n.cartItems)))},o.updateOrderItemQuantity=function(t,n,s){var r={mod:"CartModel",action:"updateOrderLineQuantity",orderId:t,id:n,quantity:s};o.comm(r,function(t){o.orderUpdateSuccess(t)})},o.deleteOrderItem=function(t,n){var s={mod:"CartModel",action:"updateOrderLineQuantity",orderId:t,id:n};o.comm(s,function(t){o.orderUpdateSuccess(t)})},o.orderUpdateSuccess=function(t){},t.fn.convertDatefield=function(o){return this.each(function(){var o=this.name,n=this.name+"-visible";this.name=n,$elmClass=t(this).attr("class")+" dateFieldMob";var s=t("input[name="+n+"]").val();t(this).after("<input type='hidden' name='"+o+"' value='"+s+"'/>");var r=s.split("/");t(this).wrap('<div class="'+$elmClass+'" id="'+o+'"/>'),t(this).hide();var a=new Date().getFullYear();t(this).parent().append("<select name='"+o+"-selectDay' id='"+o+"-selectDay' class=''>"+generateDropDown(1,31)+"</selected>"),t(this).parent().append("<select name='"+o+"-selectMonth' id='"+o+"-selectMonth' class=''>"+generateDropDown(1,12)+"</selected>"),t(this).parent().append("<select name='"+o+"-selectYear' id='"+o+"-selectYear' class=''>"+generateDropDown(1900,a+1)+"</selected>"),t("#"+o+"-selectDay option[value='"+r[0]+"']").attr("selected","selected"),t("#"+o+"-selectMonth option[value='"+r[1]+"']").attr("selected","selected"),t("#"+o+"-selectYear option[value='"+r[2]+"']").attr("selected","selected"),t(this).parent().find("select").change(function(){var n="";t(this).parent().find("select > option:selected").each(function(){n+=t(this).val()+"/"}),t("input[name="+o+"]").val(n.slice(0,-1))})})},t.fn.asyncFormPost=function(n){defaults={},n=t.extend({},defaults,n);var s=t(this);t("form",s).submit(function(r){"function"==typeof n.eventAction?n.eventAction(r):r.preventDefault(),t(".userResponse, .ajaxResponse").hide(),t("."+o.asyncformpost.loaderClass,s).show();var a=t(this).serialize();if("object"==typeof n.parameters)for(var l in n.parameters)a+="&"+l+"="+n.parameters[l];return o.comm(a,function(r){t("."+o.asyncformpost.loaderClass,s).hide(),"function"==typeof n.complete?n.complete(r):0==r.error?(t("."+o.asyncformpost.successClass,s).show(),"function"==typeof n.success&&n.success.call(this,r)):1==r.error&&(t("."+o.asyncformpost.errorClass,s).show(),"function"==typeof n.error&&n.error.call(this,r))}),!1})},t.fn.showLightBox=function(o){var n={lightboxSelector:"#lightbox",docHeight:t(document).height(),lightBoxPics:[],onePicContainer:"",imageSelector:"",imageAttribute:"",imageActiveClass:"",imagePath1:"",imagePath2:"",prevBtn:"",nextBtn:""};o=t.extend({},n,o);var s={init:function(o){!t(o.imageSelector).length>0&&(o.imageSelector=o.onePicContainer),t(o.imageSelector).each(function(n,s){var r=t(s).attr(o.imageAttribute).replace(o.imagePath1,o.imagePath2);o.lightBoxPics.push(r)})},launch:function(o){var n=0;if(t(o.imageSelector+o.imageActiveClass).length>0)var r=t(o.imageSelector+o.imageActiveClass).attr(o.imageAttribute).replace(o.imagePath1,o.imagePath2),n=s.getImageStart(r,o.lightBoxPics);s.update(n,o.lightBoxPics),t(o.lightboxSelector).showDialog()},update:function(n,s){var r=.7*t(window).height();t(o.lightboxSelector+" .mainPic").empty(),t(o.lightboxSelector).css({width:"auto","margin-left":"auto"}),newImg=t("<img />",{src:s[n]}).appendTo("#lightbox .mainPic"),t(o.lightboxSelector+" .mainPic img").load(function(){t(this).css({"max-height":r});var n=t("#lightbox .mainPic img").width();t(o.lightboxSelector).css({width:n,"margin-left":-(n/2)})})},navigate:function(n,r,a){n.preventDefault();var l=s.getImageStart(t(o.lightboxSelector+" .mainPic").find("img").attr("src"),a);(newKey="next"==r?l+1:l-1)<0?newKey=a.length-1:newKey>=a.length&&(newKey=0),s.update(newKey,a)},getImageStart:function(o,n){var s=0;return t.each(n,function(t,n){n==o&&(s=t)}),s}};s.init(o),this.click(function(t){t.preventDefault(),s.launch(o)}),o.lightBoxPics.length>1?t(o.prevBtn,o.nextBtn).css("visibility","visible"):t(o.prevBtn+","+o.nextBtn).css("visibility","hidden"),t(o.nextBtn).click(function(t){s.navigate(t,"next",o.lightBoxPics)}),t(o.prevBtn).click(function(t){s.navigate(t,"prev",o.lightBoxPics)})},t.fn.showDialog=function(o){var n={docHeight:t(document).height(),closeDialog:function(){},dialogClass:""};if("string"==typeof o){var s=o;if(o=t(this).data("options"),"funtest"===s)var r=t(this),a=0,l=setInterval(function(){r.css("left",100*Math.random()+"%"),r.css("top",100*Math.random()+"%"),r.css("opacity",Math.random()),++a>=1e3&&clearInterval(l)},100)}else o=t.extend({},n,o),t(this).data("options",o),"function"==typeof o.onBeforeShow&&o.onBeforeShow.apply(),t(this).fadeIn(),t(this).addClass(o.dialogClass),t(".overlay").length>0&&t(".overlay").fadeIn(),t(".overlay").css({height:o.docHeight}),t("body").animate({scrollTop:0},"slow"),"function"==typeof o.onShow&&o.onShow.apply()},t.fn.closeDialog=function(o){var n={boxesSelector:[".Dialogbox"]};o=t.extend({},n,o),this.click(function(){t(o.boxesSelector).each(function(o,n){t(n).fadeOut()}),t(".overlay").length&&t(".overlay").fadeOut()})},t.fn.quicksearch=function(n){var s={},r={keytime:450,template:null,onKeyUp:function(){},onComplete:null,onBeforeSend:null,onSelect:function(t){alert("Select event function not provided!")},data:null,index:-1,keytimerId:-1,templateId:"quickSearchResults",ignoreTemplateId:!1,setSelectedItem:function(t){"function"==typeof n.onSelect?n.onSelect.call(this,t):window[n.onSelect].apply(window,[t])}};this.each(function(){if("string"==typeof n)n=t(this).data("options");else{"string"==typeof(n=t.extend({}
1,r,n)).template?n.ignoreTemplateId=!0:(n.template=t("#"+n.templateId).html(),t("#"+n.templateId).html(""));var a=t(this);if("object"==typeof n.cmd)s=n.cmd;else{var l=t(this).data("mod"),h=t(this).data("action"),c=t(this).data("options"),d=t(this).data("onselect");if("string"==typeof d&&(n.onSelect=d),"string"==typeof l&&"string"==typeof h)s={mod:l,action:h},"object"==typeof c&&(s=t.extend({},s,c));else throw{error:1,errorMsg:"No command specified"}}t(document).on("click","#"+n.templateId+" a",function(){n.setSelectedItem(n.data[n.index]),t("#"+n.templateId).html("")}),t(document).on({mouseenter:function(){t("#"+n.templateId+" a").removeClass("active"),t(this).addClass("active"),n.index=t(this).index()},mouseleave:function(){t(this).removeClass("active"),n.index=t(this).index()}},"#"+n.templateId+" a"),t(this).keyup(function(r,l){if("function"==typeof n.onKeyUp&&n.onKeyUp.call(this,r),(40==r.which||38==r.which)&&(40==r.which?n.index<t("#"+n.templateId+" a").length&&n.index++:38==r.which&&n.index>0&&n.index--,t("#"+n.templateId+" a").removeClass("active"),t("#"+n.templateId+" a").eq(n.index).addClass("active")),8==r.which||32==r.which||46==r.which||13==r.which||!(r.which>90)&&!(r.which<48)){if(clearTimeout(n.keytimerId),t("#"+n.templateId).html(""),13==r.which)return"number"==typeof n.index&&(n.setSelectedItem(n.data[n.index]),t("#"+n.templateId).html(""),r.preventDefault(),!1);0!=a.val().length&&(n.keytimerId=setTimeout(function(){s.query=a.val(),"function"==typeof n.onBeforeSend&&n.onBeforeSend.call(this),o.sendApiCommand(s,function(o){if(null==o&&(o={error:1,errorMessage:"Klarte ikke kommunisere med server"}),1==o.error)"function"==typeof n.onError?n.onError.call(this,[o]):alert(o.errorMessage);else if(n.data=o.data,n.index=-1,o.data.length>0)for(var s in o.data){var r=o.data[s],a=t.parseContent(n.template,r);t("#"+n.templateId).append(a)}if("function"==typeof n.onComplete)n.onComplete.call(this,o);else if(n.onComplete,null!=n.onComplete)for(var l in n.onComplete)"function"==typeof n.onComplete[l]&&n.onComplete[l].call(this,o)})},n.keytime))}})}})},t.parseContent=function(t,n){for(i in n){var s=RegExp(o.templateOpening+i+o.templateClosing,"g");t=t.replace(s,n[i])}return t=t.replace(/\{[a-zA-Z0-9\-\_]*\}/,"")},t.fn.getId=function(){var t=this.attr("id").split("-");return t.shift(),t.join("-")}}(jQuery,App),jQuery(document).ready(function(){jQuery(".closeDialog, .overlay").closeDialog(),$("body").on("click",".disabledButton",function(t){return ev.preventDefault(),!1}),$("#giftcardCodeInput").keyup(function(){var t=$(this).val();$.post("/ajaxcall",{mod:"checkout",action:"pinIsRequired",giftCardCode:t},function(t){"1"==t.pinIsRequired?$("#pinFormGroup").show():($("#giftcardPinInput").val(""),$("#pinFormGroup").hide())},"json")})}),jQuery.fn.serializeObject=function(){var t={},o=this.serializeArray();return $.each(o,function(){void 0!==t[this.name]?(t[this.name].push||(t[this.name]=[t[this.name]]),t[this.name].push(this.value||"")):t[this.name]=this.value||""}),t},eval(function(t,o,n,s,r,a){if(r=function(t){return(t<o?"":r(parseInt(t/o)))+((t%=o)>35?String.fromCharCode(t+29):t.toString(36))},!"".replace(/^/,String)){for(;n--;)a[r(n)]=s[n]||r(n);s=[function(t){return a[t]}],r=function(){return"\\w+"},n=1}for(;n--;)s[n]&&(t=t.replace(RegExp("\\b"+r(n)+"\\b","g"),s[n]));return t}('4 S=8(){4 l={19:"1.0.1"};l.w=8(s){6(!s)5{};6(s.7("=")===-1&&s.7("&")===-1)5{};s=l.D(s);4 a={};4 b=s.v("&");y(4 c x b){4 d=b[c].v("=");4 e=P(d[0]),R=P(d[1]);l.C(a,e,R,16)}5 a};l.C=8(a,c,d,e){4 f=c;4 g=c.7(".");4 h=c.7("[");6(g>-1){f=c.n(0,g);4 i=c.n(g+1)}B 6(h==-1){5 e?(a[c]=d):a[c]}h=f.7("[");6((h>-1&&h<g)||(h>-1&&g==-1)){4 j=f.n(0,f.7("["));4 b=f.v("[")[1];4 k=15(b.n(0,b.m-1));a=(a[j]=a[j]||[]);a=(a[k]=a[k]||{})}B{6(!a[f]){a[f]={}}a=a[f]||{}}6(i)5 l.C(a,i,d,e);B 5 a};l.u=8(a,b){U(r(a)){z"O":4 c=[];4 d;y(4 e x a){6(!a.Z(e))Q;4 f=a[e];6(r(e)==="A"||e.m===0||r(f)==="A")Q;d=b?b+"."+e:e;6(r a.m!=="A"){d=b?b+"["+e+"]":e}6(r f==="O"){c.q(l.u(f,d))}B{c.q(F(d)+"="+F(f))}}5 c.W("&")}5 F(a)};l.12=8(){4 a=(l.N?l.H:l.o);4 b=[J.11,a];4 c={};U(9.m){z 1:b.q(l.u(9[0]));T;z 2:b[0]=l.L(9[0]);c=l.w(9[0]);c=l.V(c,9[1]);b.q(l.u(c));T;z 3:b[0]=l.L(9[0]);b[1]=l.o;b.q(l.u(9[1]));b.q(l.H);b.q(l.u(9[2]))}4 s=b.W("");6(s.7(a)==s.m-a.m){s=s.n(0,s.m-a.m)}5 s};l.N=10;l.o="?";l.t="#";l.H="#?";l.X=8(){4 a=l.w(l.M()+"&"+l.K());5 l.E?l.E:l.E=a};l.13=8(a,b){4 c=l.C(l.X(),a);5 r(c)==="A"?b:c};l.14=8(){5 l.I?l.I:l.I=l.w(l.M())};l.Y=8(){5 l.G?l.G:l.G=l.w(l.K())};l.M=8(){5 l.D(J.17)};l.K=8(){5 l.D(J.Y)};l.D=8(s){6(s.7(l.o)>-1)s=s.v(l.o)[1];6(s.7(l.t)>-1)s=s.v(l.t)[1];6(s.7("=")===-1&&s.7("&")===-1)5"";18(s.7(l.t)==0||s.7(l.o)==0)s=s.n(1);5 s};l.L=8(p){6(p.7(l.o)>-1)p=p.n(0,p.7(l.o));6(p.7(l.t)>-1)p=p.n(0,p.7(l.t));5 p};l.V=8(){4 a={};y(4 b x 9)y(4 k x 9[b])a[k]=9[b][k];5 a};5 l};4 1a=S();',62,73,"||||var|return|if|indexOf|function|arguments|||||||||||||length|substr|querySeperator||push|typeof||hashSeperator|str
1ingify|split|parse|in|for|case|undefined|else|_access|_cleanParamStr|_all|encodeURIComponent|_hash|hashQuerySeperator|_query|location|hashstring|_cleanPath|querystring|urlUseHash|object|decodeURIComponent|continue|val|MakeArg|break|switch|merge|join|all|hash|hasOwnProperty|false|pathname|url|get|query|parseInt|true|search|while|version|Arg".split("|"),0,{})),(function(){var t,o,n;t=jQuery,(o=document.createElement("input")).setAttribute("type","number"),"text"!==o.type?t.fn.inputNumber=function(){return t(this)}:(t.fn.inputNumber=function(){return t(this).filter(function(){var o;return(o=t(this)).is('input[type="number"]')&&!(o.parent().is("span")&&o.next().is("div.number-spin-btn-container")&&o.next().children().first().is("div.number-spin-btn-up")&&o.next().children().eq(1).is("div.number-spin-btn-down"))}).each(function(){n.polyfills.push(new n(this))}),t(this)},(n=function(o){var s,r,a,l,h=this;if(this.elem=t(o),!(this.elem.is(":root *")&&this.elem.height()>0))throw Error("Element must be in DOM and displayed so that its height can be measured.");l=this.elem.outerHeight()/2+"px",this.upBtn=t("<div/>",{class:"number-spin-btn number-spin-btn-up",style:"height: "+l}),this.downBtn=t("<div/>",{class:"number-spin-btn number-spin-btn-down",style:"height: "+l}),this.btnContainer=t("<div/>",{class:"number-spin-btn-container"}),s=t("<span/>",{style:"white-space: nowrap"}),this.upBtn.appendTo(this.btnContainer),this.downBtn.appendTo(this.btnContainer),this.elem.wrap(s),this.btnContainer.insertAfter(this.elem),this.elem.on({focus:function(){h.elem.on({DOMMouseScroll:n.domMouseScrollHandler,mousewheel:n.mouseWheelHandler},{p:h})},blur:function(){h.elem.off({DOMMouseScroll:n.domMouseScrollHandler,mousewheel:n.mouseWheelHandler})}}),this.elem.on({keypress:n.elemKeypressHandler,change:n.elemChangeHandler},{p:this}),this.upBtn.on("mousedown",{p:this,func:"increment"},n.elemBtnMousedownHandler),this.downBtn.on("mousedown",{p:this,func:"decrement"},n.elemBtnMousedownHandler),this.elem.css("textAlign","right"),this.attrMutationHandler("class"),"undefined"!=typeof WebKitMutationObserver&&null!==WebKitMutationObserver||null!=r?("undefined"==typeof WebKitMutationObserver||null===WebKitMutationObserver||null!=r||(r=WebKitMutationObserver),(a=new r(function(t){var o,n,s;for(n=0,s=t.length;s>n;n++)"attributes"===(o=t[n]).type&&h.attrMutationHandler(o.attributeName,o.oldValue,h.elem.attr(o.attributeName))})).observe(o,{attributes:!0,attributeOldValue:!0,attributeFilter:["class","style","min","max","step"]})):"undefined"!=typeof MutationEvent&&null!==MutationEvent&&this.elem.on("DOMAttrModified",function(t){h.attrMutationHandler(t.originalEvent.attrName,t.originalEvent.prevValue,t.originalEvent.newValue)})}).polyfills=[],n.isNumber=function(t){return null!=t&&"function"==typeof t.toString&&/^-?\d+(?:\.\d+)?$/.test(""+t)},n.isFloat=function(t){return null!=t&&"function"==typeof t.toString&&/^-?\d+\.\d+$/.test(""+t)},n.isInt=function(t){return null!=t&&"function"==typeof t.toString&&/^-?\d+$/.test(""+t)},n.isNegative=function(t){return null!=t&&"function"==typeof t.toString&&/^-\d+(?:\.\d+)?$/.test(""+t)},n.raiseNum=function(t){var o,s,r;if("number"==typeof t||"object"==typeof t&&t instanceof Number)return t%1?{num:""+t,precision:0}:n.raiseNum(""+t);if("string"==typeof t||"object"==typeof t&&t instanceof String){if(n.isFloat(t))return t=t.replace(/(\.\d)0+$/,"$1"),r=n.getPrecision(t),o={num:s=(s=t.slice(0,-(r+1))+t.slice(-r)).replace(/^(-?)0+(\d+)/,"$1$2"),precision:r};if(n.isInt(t))return{num:t,precision:0}}},n.raiseNumPrecision=function(t,n){var s,r;if(n>t.precision){for(o=s=r=t.precision;n>=r?n>s:s>n;o=n>=r?++s:--s)t.num+="0";t.precision=n}},n.lowerNum=function(t){if(t.precision>0){for(;t.num.length<t.precision+1;)t.num=n.isNegative(t.num)?t.num.slice(0,1)+"0"+t.num.slice(1):"0"+t.num;return(t.num.slice(0,-t.precision)+"."+t.num.slice(-t.precision)).replace(/\.?0+$/,"").replace(/^(-?)(\.)/,"$10$2")}return t.num},n.preciseAdd=function(t,o){var s,r,a;if(("number"==typeof t||"object"==typeof t&&t instanceof Number)&&("number"==typeof o||"object"==typeof o&&o instanceof Number))return 0==t%1&&0==o%1?""+(t+o):n.preciseAdd(""+t,""+o);if(("string"==typeof t||"object"==typeof t&&t instanceof String)&&("string"==typeof o||"object"==typeof o&&o instanceof String)){if(n.isNumber(t)){if(n.isNumber(o)){if(n.isInt(t)){if(n.isInt(o))return n.preciseAdd(parseInt(t,10),parseInt(o,10));n.isFloat(o)&&(t+=".0")}
1else n.isFloat(t)&&n.isInt(o)&&(o+=".0");if(s=n.raiseNum(t),r=n.raiseNum(o),s.precision<r.precision?n.raiseNumPrecision(s,r.precision):s.precision>r.precision&&n.raiseNumPrecision(r,s.precision),a=""+(parseInt(s.num,10)+parseInt(r.num,10)),s.precision>0){if(n.isNegative(a))for(;s.precision>a.length-1;)a="-0"+a.slice(1);else for(;s.precision>a.length;)a="0"+a;a=n.lowerNum({num:a,precision:s.precision})}return a=a.replace(/^(-?)\./,"$10."),n.isFloat(a)&&(a=a.replace(/0+$/,"")),a}throw SyntaxError('Argument "'+o+'" is not a number.')}throw SyntaxError('Argument "'+t+'" is not a number.')}return n.preciseAdd(""+t,""+o)},n.preciseSubtract=function(t,o){return"number"==typeof o||"object"==typeof o&&o instanceof Number?n.preciseAdd(t,-o):"string"==typeof o||"object"==typeof o&&o instanceof String?n.isNegative(o)?n.preciseAdd(t,o.slice(1)):n.preciseAdd(t,"-"+o):void 0},n.getPrecision=function(t){var o,s;if("number"==typeof t){for(o=0,s=t;s!==Math.floor(s);)s=t*Math.pow(10,++o);return o}return"string"==typeof t&&n.isNumber(t)?n.isFloat(t)?/^-?\d+(?:\.(\d+))?$/.exec(t)[1].length:0:void 0},n.prototype.getParams=function(){var t,o,s,r;return s=this.elem.attr("step"),o=this.elem.attr("min"),t=this.elem.attr("max"),r=this.elem.val(),n.isNumber(s)||(s=null),n.isNumber(o)||(o=null),n.isNumber(t)||(t=null),n.isNumber(r)||(r=o||0),{min:null!=o?o:null,max:null!=t?t:null,step:null!=s?s:"1",val:null!=r?r:null}},n.prototype.clipValues=function(t,o,n){return null!=n&&parseFloat(t)>parseFloat(n)?n:null!=o&&parseFloat(t)<parseFloat(o)?o:t},n.prototype.stepNormalize=function(t){var o,s,r,a,l;return l=(r=this.getParams()).step,s=r.min,null==l?t:(l=n.raiseNum(l),(o=n.raiseNum(t)).precision>l.precision?n.raiseNumPrecision(l,o.precision):o.precision<l.precision&&n.raiseNumPrecision(o,l.precision),null!=s&&(o=n.raiseNum(n.preciseSubtract(t,s)),n.raiseNumPrecision(o,l.precision)),0==parseFloat(o.num)%parseFloat(l.num)?t:(o=n.lowerNum({num:""+Math.round(parseFloat(o.num)/(a=parseFloat(l.num)))*a,precision:o.precision}),null!=s&&(o=n.preciseAdd(o,s)),o))},n.domMouseScrollHandler=function(t){var o;o=t.data.p,t.preventDefault(),0>t.originalEvent.detail?o.increment():o.decrement()},n.mouseWheelHandler=function(t){var o;o=t.data.p,t.preventDefault(),t.originalEvent.wheelDelta>0?o.increment():o.decrement()},n.elemKeypressHandler=function(t){var o,n,s;o=t.data.p,38===t.keyCode?o.increment():40===t.keyCode?o.decrement():8!==(n=t.keyCode)&&9!==n&&35!==n&&36!==n&&37!==n&&39!==n&&46!==n&&45!==(s=t.which)&&46!==s&&48!==s&&49!==s&&50!==s&&51!==s&&52!==s&&53!==s&&54!==s&&55!==s&&56!==s&&57!==s&&t.preventDefault()},n.elemChangeHandler=function(t){var o,s,r,a;""!==(r=t.data.p).elem.val()&&(n.isNumber(r.elem.val())?(a=r.getParams(),s=r.clipValues(a.val,a.min,a.max),""+(s=r.stepNormalize(s))!==r.elem.val()&&r.elem.val(s).change()):(o=r.elem.attr("min"),r.elem.val(null!=o&&n.isNumber(o)?o:"0").change()))},n.elemBtnMousedownHandler=function(o){var n,s,r,a,l=this;(s=o.data.p)[n=o.data.func](),a=function(){s[n](),s.timeoutID=window.setTimeout(a,10)},r=function(){window.clearTimeout(s.timeoutID),t(document).off("mouseup",r),t(l).off("mouseleave",r)},t(document).on("mouseup",r),t(this).on("mouseleave",r),s.timeoutID=window.setTimeout(a,700)},n.prototype.attrMutationHandler=function(t){var n,s,r,a,l;if("class"===t||"style"===t){for(s={},n=null,r=0,a=(l=["opacity","visibility","-moz-transition-property","-moz-transition-duration","-moz-transition-timing-function","-moz-transition-delay","-webkit-transition-property","-webkit-transition-duration","-webkit-transition-timing-function","-webkit-transition-delay","-o-transition-property","-o-transition-duration","-o-transition-timing-function","-o-transition-delay","transition-property","transition-duration","transition-timing-function","transition-delay"]).length;a>r;r++)o=l[r],(n=this.elem.css(o))!==this.btnContainer.css(o)&&(s[o]=n);s.display="none"===this.elem.css("display")?"none":"inline-block",this.btnContainer.css(s)}else("min"===t||"max"===t||"step"===t)&&this.elem.change()},n.prototype.increment=function(){var t,o;this.elem.is(":disabled")||this.elem.is("[readonly]")||(o=this.getParams(),t=n.preciseAdd(o.val,o.step),null!=o.max&&parseFloat(t)>parseFloat(o.max)&&(t=o.max),t=this.stepNormalize(t),this.elem.val(t).change())},n.prototype.decrement=function(){var t,o;this.elem.is(":disabled")||this.elem.is("[readonly]")||(o=this.getParams(),t=n.preciseSubtract(o.val,o.step),null!=o.min&&parseFloat(t)<parseFloat(o.min)&&(t=o.min),t=this.stepNormalize(t),this.elem.val(t).change())},t(function(){t('input[type="number"]').inputNumber()}))}).call(this);var VariantGroup=function(){this.variant={currentProductId:null,productIdName:"productPageProductId"},this.originalProductId,this.currentProductId,this.variantScope,this.variants=null,this.variantLabels=null,this.variantValues=null,this.variantDataSet=!1,this.selectedGroupValues=[];var t=!1,o=0,n=!1,s=!1,r="addProductIdToCart",a=!0;this.makeAllOptionsAvailable=function(t){t.children().removeClass("variantOptionUnavailable")},this.setDefaultValues=function(){jQuery("select.variantGroupSelection").each(function(){1==jQuery(this).children().length&&jQuery(this).attr("DISABLED","DISABLED").addClass("disabledSelectionBox")})},this.isDefaultProductSelected=function(){this.setSelectedGroupValues(),this.repaintOptions(),!0==n&&1==o?this.triggerProductSelectionReady():this.triggerProductSelectionNotReady()},this.variantDataCollected=function(t){return null==t?(this.displayError("errorLoadingVariants"),!1):1==t.error?(this.displayError(t.errorMsg),!1):(this.variants=t.variants,this.variantValues=t.variantValues,this.variantLabels=t.labels,this.variantPrices=t.prices,this.variantDataSet=!0,this.isDefaultProductSelected(),!0)},this.groupSelectionMatches=function(t,o,n){for(productId in n)if((groupArray=n[productId])[t]==o)return!0;return!1},this.setSelectedGroupValues=function(){var o=this;return t=!0,a=!0,jQuery("select.variantGroupSelection").each(function(){var n=getId(jQuery(this)),s=jQuery("#variantGroupSelection-"+n).val();s>0?(o.selectedGroupValues[n]=s,a=!1):t=!1}),o.selectedGroupValues},this.repaintOptions=function(){matchingProducts=this.getMatchingVariantProducts(),n=!0,jQuery(".variantGroupSelection input").removeClass("variantOptionUnavailable"),jQuery("select.variantGroupSelection").each(function(){var t=getId(jQuery(this));for(productId in -1==jQuery("#variantGroupSelection-"+t).val()&&(n=!1),jQuery("#variantGroupSelection-"+t+" option").removeClass("variantOptionUnavailable").addClass("variantOptionUnavailable"),jQuery("#variantGroupSelection-"+t+" option[value=-1]").removeClass("variantOptionUnavailable"),matchingProducts){var o=matchingProducts[productId][t];jQuery("#variantGroupSelection-"+t+" option[value="+o+"]").removeClass("variantOptionUnavailable")}})},this.variantChanged=function(t){this.setSelectedGroupValues(),this.repaintOptions(),!0==n&&1==o?this.triggerProductSelectionReady():this.triggerProductSelectionNotReady()},this.triggerProductSelectionNotReady=function(){jQuery("."+r).addClass("disabled"),s=!1,this.errorCheck()},this.triggerProductSelectionReady=function(){jQuery("."+r).removeClass("disabled"),s=!0,this.errorCheck()},this.productMatchesSelection=function(t){for(groupId in ok=!1,t){var o=t[groupId];for(currentGroup in this.selectedGroupValues){var n=this.selectedGroupValues[currentGroup];if(currentGroup==groupId&&o==n)ok=!0;else if(currentGroup==groupId&&o!=n)return!1}}return ok},this.getMatchingVariantProducts=function(){var t={};for(u in o=0,this.variants){var n=this.variants[u];(this.productMatchesSelection(n)||!0==a)&&(t[u]=n,o++)}if(1==o&&!1==a)for(productId in t)t.hasOwnProperty(productId)&&(jQuery("#"+this.variant.productIdName).val(productId),"object"==typeof this.variantPrices&&void 0!==this.variantPrices[productId]&&$(".price").html(this.variantPrices[productId]));return t},this.displayError=function(t){if("errorLoadingVariants"===t)this.showVariantWarning("AjaxError");else{if(!ex)return!0;this.showVariantWarning("AjaxException",ex)}},this.errorCheck=function(){return jQuery(".variantError").addClass("hidden"),!!s||(!1==t?this.showVariantWarning("NotChosenGroup"):0==o?this.showVariantWarning("Unavailable"):1==o?this.showVariantWarning("Unavailable"):this.showVariantWarning("NotChosen"),!1)},this.showVariantWarning=function(t,o){o||(o=""),jQuery(".variantError").addClass("hidden");var n="#variantError"+t;($selector=this.variantScope?jQuery(this.variantScope).find(n):jQuery(n)).removeClass("hidden")},this.showVariantDataLoader=function(){jQuery("select.variantGroupSelection").addClass("hidden")},this.hideVariantDataLoader=function(){jQuery("select.variantGroupSelection").removeClass("hidden")},this.createVariantDialog=function(){var t=[];for(var o in this.variants){var n=this.variants[o];for(var s in n)0>jQuery.inArray(t[s],t)&&(t[s]=[]);for(var s in n)0>jQuery.inArray(n[s],t[s])&&t[s].push(n[s])}for(var o in $output="",$output+='<input class="hiddenProductDataProductId" type="hidden" name="productId" id="ProductId" value="'+this.currentProductId+'" />',t){for(s in $output+='<div class="form-group">',$output+="<label>"+this.variantLabels[o]+"</label>",$output+="<select class='form-control variantGroupSelection' name='variant-"+this.variantLabels[o]+"' id='variantGroupSelection-"+o+"'>",t[o])$output+="<option value='"+t[o][s]+"' class='variantOption'>"+this.variantValues[t[o][s]]+"</option>";$output+="</select>",$output+="</div>"}$output+="<hr/><a id='buyProduct-"+this.currentProductId+"' data-originalid='"+this.originalProductId+"' class='btn btn-md btn-block btn-success addProductIdToCart' data-dismiss=\"modal\" title='' href=''>Legg i handlekurv <i class=\"glyphicon glyphicon-shopping-cart fa fa-shopping-cart\"></i></a>",$("#variantSelectionBody").html($output),$("#variantDialog").modal("show"),this.updateProductVariants(this)},this.updateProductVariants=function(t){t.isDefaultProductSelected(),$("select.variantGroupSelection").change(function(){t.variantChanged(jQuery(this))}),jQuery("select.variantGroupSelection").click(function(){t.makeAllOptionsAvailable(jQuery(this))}),jQuery("option").removeClass("variantOptionUnavailable"),t.setDefaultValues()},this.getVariantsData=function(t,o){this.showVariantDataLoader();var n,s={mod:"product",action:"getVariantsData",productId:t};jQuery.ajax({url:"/ajaxcall",context:this,data:s,method:"POST",dataType:"json",success:function(t){n=t},error:function(t){this.displayError("errorLoadingVariants")},complete:function(){this.variantDataCollected(n)?(this.hideVariantDataLoader(),o&&o()):($("#variantDialog").modal("show"),$(".buyProduct").hasClass("buyingLoader")&&$(".buyProduct").removeClass("buyingLoader"))}})}},Gallery={allImages:[],index:0,viewHeight:-1,viewWidth:-1,height:function(){return this.viewHeight=jQuery(window).height()-40,this.viewHeight},width:-1,galleryImageClass:"productImage",gotoIndex:function(t){t=parseInt(t),Gallery.index=t,Gallery.allImages[Gallery.index],jQuery("#galleryFeatureImage").attr("src",Gallery.allImages[Gallery.index].src),jQuery("#galleryFeatureImage").css("max-height",Gallery.height()+"px")},setIndex:function(t){var o=Gallery.index+=t;o>Gallery.allImages.length-1?o=0:o<0&&(o=Gallery.allImages.length-1),Gallery.index=o,Gallery.gotoIndex(Gallery.index)}};function filterChangeEvent(){$(document).reloadProductListWithFilters()}function requestCity(t){var o=t.val(),n=$("#"+t.data("zipcityid")),s={mod:"User",action:"getCityFromZipCode",zip:o};App.comm(s,function(t){t.data&&n.val(t.data)},function(){})}function comm(){if(void 0!==App.comm)return App.comm.apply(this,arguments)}function updateOrderItem(t,o,n){var s=getId(o);if("freightChange"==t)var r=jQuery("#freightMethod").val(),a={mod:"checkout",action:t,freightMethod:r};else if(null==n)var a={mod:"checkout",action:t,pid:s};else{var l=parseInt(n);if(isNaN(l)){alert("Dette er ikke et tall");return}var a={mod:"checkout",action:t,pid:s,quantity:n}}o.data("rowid")&&(a.rowId=o.data("rowid")),App.comm(a,handleCheckoutRe
1sponse,o)}function handleCheckoutResponse(t,o,n){if(null==t)alert("Feil: Fikk ukjent resultat fra server.\nPr\xf8v igjen!");else if(1==t.error)alert("Feil: "+t.errorMsg);else{var s=parseInt(t.FREIGHTCOST);("freightChange"==o.action&&-1==t.FREIGHTCOST||s<0)&&(alert("Invalid Freight Setup"),t.FREIGHTCOST=0),"deleteOrderItem"==o.action?(n.data("rowid")>0?jQuery('*[data-orderline="'+n.data("rowid")+'"]').slideUp().remove():jQuery("#orderline-"+o.pid).remove(),jQuery("#orderlinetotal-"+o.pid).html(t.TPRICE)):"updateOrderItem"==o.action?(n.data("quantity",o.quantity),jQuery("#orderlinetotal-"+o.pid).html(t.TPRICE)):"removeAll"==o.action&&(jQuery(".orderline").hide(),jQuery("#orderlineEmpty").show()),console.log("response"),console.log(t),jQuery("#orderCost").html(t.SUBTOTAL),jQuery("#orderFreightCost").html(t.FREIGHTCOST),jQuery("#orderVAT").html(t.VAT),jQuery("#orderTotalAmountValue").html(t.TOTALAMOUNT),jQuery(".orderTotal").html(t.SUBTOTAL),jQuery(".grandTotal").html(t.GRANDTOTAL),jQuery(".shippingCost").html(t.FREIGHTCOST),jQuery("#freeFreightText").html(t.FREIGHTCOSTLeft),jQuery(".orderLinesTotal").html(t.orderLinesTotal);var r=t.isB2B?t.SUBTOTAL:t.TOTALAMOUNT;jQuery(".cartTotal").html(r),0===t.TOTALITEMS&&location.reload();var a=t.FREIGHTOPTIONS;if("object"==typeof a){if(0==a.length){doErrorLogging("ILLEGAL FREIGHT OPTION SELECTED!",window.location.href);return}var l=jQuery("input[name=freightMethod]:checked").val(),h=null,c=!1,d=!1;for(var p in a){var f=a[p];!0===f.selected&&jQuery("#freightMethod-"+(h=f).Id).length>0&&(c=!0),f.Id==l&&!0===f.selected&&(d=!0)}c||(repaintFreightOptions(a),jQuery("input[name=freightMethod]").removeAttr("checked"),jQuery("#freightMethodOption-"+h.Id).attr("checked","checked"),d=!0),d||(jQuery("input[name=freightMethod]").removeAttr("checked"),jQuery("#freightMethodOption-"+h.Id).attr("checked","checked"))}}}function getProductVariants(){if(!t)var t=new VariantGroup;$("#ProductId").length&&(t.variant.currentProductId=jQuery("#ProductId").val(),t.variant.productIdName="ProductId"),t.getVariantsData(jQuery("#"+t.variant.productIdName).val()),t.updateProductVariants(t)}/*! 2 * Bootstrap v4.0.0-alpha.3 (http://getbootstrap.com) 3 * Copyright 2011-2016 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) 4 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 5 */ if($(document).ready(function(){if($("body").on("click touchstart","a.section-paginator",function(){var t=$(this).data("ci-pagination-page"),o=$(this).closest(".section-pagination-wrapper").data("section-id"),n={page:t,sectionId:o,mod:"cms",action:"pagination"};return $.post("/ajaxcall",n,function(t){1==t.error?toastr.error(t.errorMsg):($("#sectionPagination"+o).html(t.sectionView),$("#sectionWrapper"+o).html(t.paginationView))},"json"),!1}),$("body").on("mouseover",".megamenu-children",function(){$(this).children().not(":first").show()}),$("body").on("mouseout",".megamenu-children",function(){$(this).children().not(":first").hide()}),$("body").on("click",".rate-product",function(){var t=$(this).attr("data-score"),o=$(this).attr("data-product-id"),n={mod:"product",action:"rate",score:t,productId:o};App.comm(n,function(t){1==t.error?toastr.error(t.errorMsg):(toastr.success("Din stemme har blitt registrert. Du kan endre stemme ved \xe5 klikke igjen."),$("#product-rating").html(t.rating))})}),$("#OrganizationNumber").change(function(){var t={mod:"user",action:"getOrganizationFromOrgNumber",orgNumber:$(this).val()};App.comm(t,function(t){if(null!=t&&0===t.error&&void 0!==t.organization){var o=t.organization,n=o.forretningsadresse,s=o.postadresse;$("#OrganizationName").val(o.navn),$("#Phone").val(o.telefon),$("#ShippingPhone").val(o.telefon),$("#Street").val(n.adresse),$("#Zip").val(n.postnummer),$("#City").val(n.poststed),$("#ShippingStreet").val(s.adresse),$("#ShippingZip").val(s.postnummer),$("#ShippingCity").val(s.poststed)}})}),$(".showSearchInput,.skjulSokBtn").click(function(t){$(".sokeBoxFull").toggle("active")}),$(".asyncForm").submit(function(t){return t.preventDefault(),App.AsyncFormSubmit($(this),function(t){"object"==typeof t&&0===t.error&&t.redirect&&"string"==typeof t.redirectUrl&&(window.location.href=t.redirectUrl)}),!1}),$(".selectPayWay").change(function(){var t=$(this).val();window.location.href="/checkout/payment/"+t}),$("img[data-bigimg]").length){var t,o=0;$($("img[data-bigimg]")).each(function(){(t=new Image).src=$(this).data("bigimg"),Gallery.allImages.push(t),$(this).data("galleryIndex",o),o++}),"function"==typeof Hammer&&(Gallery.hammer=new Hammer($("#galleryFeatureImage")[0]),Gallery.hammer.on("swipe",function(t){Gallery.setIndex(2==t.direction?-1:1)})),$(".galleryCtrl").click(function(t){Gallery.setIndex(parseInt($(this).data("direction"))),t.preventDefault(),t.stopPropagation()})}$("#mediaGallery .modal-body").click(function(t){$("#mediaGallery").modal("toggle"),t.stopPropagation()}
5),$("#mediaGallery .col-sm-10").click(function(t){Gallery.setIndex(1),t.stopPropagation()}),$("#galleryCloser").click(function(t){$("#mediaGallery").modal("toggle"),t.stopPropagation(),t.preventDefault()}),$("."+Gallery.galleryImageClass).click(function(t){Gallery.gotoIndex(void 0!==$("img",$(this)).data("galleryIndex")?$("img",$(this)).data("galleryIndex"):0),$("#mediaGallery").modal(),t.preventDefault()}),$("#paymentWindow").length&&($("#checkout").attr("target","securePaymentWindow"),$("#checkout").submit()),$(".authForm").submit(function(t){return t.preventDefault(),App.AsyncFormSubmit($(this),function(){window.location.reload()}),!1}),$("select.variantGroupSelection").length>0&&getProductVariants(),$(document).on("keyup",".zipCode",function(){4==$(this).val().length?requestCity($(this)):$("#"+$(this).data("zipcityid")).val("")}),$(document).on("keyup",".orgnr",function(){var t=$(this).val();t.length>=9&&App.comm({mod:"User",action:"getOrganizationDataById",orgnr:t},function(t){if(null!=t&&0===t.error&&t.data)for(var o in t.data){var n=t.data[o];n.length>0&&$("input[data-field="+o+"]").val(n)}})}),$(".selectAllOnFocus").focus(function(){$(this).select()}),jQuery(".orderItemQuantity, .selectAllOnClick").click(function(t){this.select()});var n=-1;jQuery(".orderItemQuantity").on("change keyup",function(t){var o=jQuery(this);8==t.which||46==t.which?t.preventDefault():("0"==jQuery(this).val()&&jQuery(this).val(1),n>0&&clearTimeout(n),n=setTimeout(function(){updateOrderItem("updateOrderItem",o,o.val()),n=-1},450))}),jQuery(".freightMethodOption").on("change",function(){updateOrderItem("freightChange",jQuery(this))}),jQuery("body").on("click",".orderItemErase",function(t){updateOrderItem("deleteOrderItem",jQuery(this),null),toastr.success("Slettet ordrelinje."),1==$(this).parent().parent().parent().children().length&&($(".mini-cart-link, #checkout-shopping-cart").addClass("hidden hidden-xs-up"),$("#checkout-shopping-cart-empty").removeClass("hidden hidden-xs-up")),t.preventDefault()}),$("body").on("click",".addProductIdToCart",function(t){t.preventDefault();var o=$(this);$(this).hasClass("isBought")&&$(this).removeClass("isBought");var n=$("em.loading-icon",$(this));n.html('<i class="fa fa-spinner fa-spin"></i>');var s=$("#ProductId").val(),r=[],a={},l=[],h=[],c=0;if($(this).attr("data-originalid"))var d=$(this).attr("data-originalid");else var d=$("#ProductId").val();$(".cartActionResponse").hide(),$(".addon-product").children("option:selected"),$(".addon-product").each(function(t){this.checked&&r.push($(this).data("id"))}),$(".alternatives-product").each(function(t){a[$(this).data("id")]=$(this).val()}),$(".roast-degree").each(function(t){c=$(this).val()}),$(".include-ingredients").each(function(t){this.checked?l.push($(this).data("id")):h.push($(this).data("id"))}),App.addToCart(s,$("#quantity").val(),function(){n.html(""),o.hasClass("isBought")||o.addClass("isBought"),$("#inCartResponse-"+d).show()},r,a,l,c,h)}),$("body").on("click",".buyProduct",function(t){t.preventDefault();var o=$(this).html(),n=$(this),s=$("em.loading-icon",$(this));if(s.html('<i class="fa fa-spinner fa-spin"></i>'),n.hasClass("isBought")&&n.removeClass("isBought"),$(this).hasClass("hasVariants")){var r=new VariantGroup;$(this).parents("#variantDialog").length&&(r.variantScope="#variantDialog");var a=$(this).attr("data-id");$("#wrapVariantsInDialog").empty(),r.originalProductId=a,r.variant.currentProductId=a,r.variant.productIdName="ProductId",r.getVariantsData(a,function(){r.createVariantDialog(),n.hasClass("isBought")||n.removeClass("buyingLoader").addClass("isBought")})}else{var l,h=0;if(void 0!==$(this).attr("id"))var c=$(this).getId();if($(this).hasClass("buy-special")?(l={})[$(this).data("specialclass")]=$(this).data("specialid"):l=c,$(this).hasClass("addWish")){var d=l;h=1,(l={}).productId=d,l.mod="StoredCart",l.action="addItem"}var p=1,f=$(this).closest("form").find("select.buyProduct-quantity");1==f.length&&(p=f.val()),App.addToCart(l,p,function(){if(n.html(o),n.hasClass("isBought")||n.removeClass("buyingLoader").addClass("isBought"),s.html(""),h){var t='<div class="alert alert-info infoMessage alert-dismissable" role="alert" id="infoMessage">';t+='<button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">×</span><span class="sr-only">Lukk</span></button>',t+='<span class="content">'+$("#wishlistSuccessFullAdd").html()+"</span>",t+="</div>",$(".messageBoxes").html(t),setTimeout(function(){$(".messageBoxes").html("")},1e4)}else $("#inCartResponse-"+c).show()})}}),$(".hasToolTip").length&&$(".hasToolTip").tooltip(),$("#wishlistUrl").focus(function(){$(this).select()}),$("#webPriceSliderRange").length>0?($("#selectedPriceRange").val(200),$("#webPriceSliderRange").slider({range:!0,min:parseInt(sliderOptions[0]),max:parseInt(sliderOptions[1]),step:50,values:[parseInt(sliderOptions[2]),parseInt(sliderOptions[3])],slide:function(t,o){$("#selectedPriceRange").val(parseInt(o.values[0])+" - "+parseInt(o.values[1])),$("#selectedPriceRangeFrom").html(parseInt(o.values[0])),$("#selectedPriceRangeTo").html(parseInt(o.values[1]))},change:function(t,o){filterChangeEvent()}})):$(".filterPriceRange").length&&$(".filterPriceRange").change(function(t){filterChangeEvent()}),$(".filterProducer").length>0&&$(".filterProducer").click(function(){$(this).toggleClass("producerItemSelected label label-primary"),filterChangeEvent()}),$("#sortColumn").change(function(){filterChangeEvent()}),$(".attrFilter").length&&$(".attrFilter").click(function(t){$(this).toggleClass("attrFilterSelected label label-primary"),filterChangeEvent(),t.preventDefault()}),$(".currency").each(function(){$(this).html($(this).html().toString().replace(/\B(?=(\d{3})+(?!\d))/g," "))})}),$.fn.reloadProductListWithFilters=function(){var t=Arg.all();if($("#webPriceSliderRange").length?t.f0=$("#webPriceSliderRange").slider("values",0)+","+$("#webPriceSliderRange").slider("values",1):$(".filterPriceRange").length,$(".filterProducer").length>0){var o="";if($(".producerItemSelected").length){var n=0;$(".producerItemSelected").each(function(){var t=getId($(this));
50!=n&&(o+=","),o+=t,n++})}t.f1=o}if($(".attrFilterSelected").length){var s=[];$(".attrFilterSelected").each(function(){if($(this).hasClass("attrFilterSelected")){var t=$(this).data("filterid"),o=$(this).data("filtervalue");void 0===s[t]?s[t]=o:s[t]+=","+o}}),t.attr=s}else t.attr=[];if($("#sortColumn").length){var r=$("#sortColumn option:selected").val();r.length>0&&(t.orderCol=r)}(cmd=t).mod="ProductSectionList",cmd.action="getFilteredProductSection",$(".pageSectionType-product").length>0?cmd.id=getId($(".pageSectionType-product").eq(0)):cmd.id=getId($(".pageSectionType-productSection").eq(0)),$("#productItemList").html('<div class="alert alert-info loader loading"><p>Laster produkter... <i class="fa fa-spinner"></i></p></div>'),App.comm(cmd,function(t){$("#productItemList").html(t)},null,"html")},!function(t,o){"function"==typeof define&&define.amd?define(o):"object"==typeof exports?module.exports=o(require,exports,module):t.Tether=o()}(this,function(t,o,n){"use strict";function s(t,o){if(!(t instanceof o))throw TypeError("Cannot call a class as a function")}function r(t){var o=getComputedStyle(t).position;if("fixed"===o)return t;for(var n=t;n=n.parentNode;){var s=void 0;try{s=getComputedStyle(n)}catch(r){}if(null==s)return n;var a=s,l=a.overflow,h=a.overflowX,c=a.overflowY;if(/(auto|scroll)/.test(l+c+h)&&("absolute"!==o||["relative","absolute","fixed"].indexOf(s.position)>=0))return n}return document.body}function a(t){var o=void 0;t===document?(o=document,t=document.documentElement):o=t.ownerDocument;var n=o.documentElement,s={},r=t.getBoundingClientRect();for(var a in r)s[a]=r[a];var l=_(o);return s.top-=l.top,s.left-=l.left,void 0===s.width&&(s.width=document.body.scrollWidth-s.left-s.right),void 0===s.height&&(s.height=document.body.scrollHeight-s.top-s.bottom),s.top=s.top-n.clientTop,s.left=s.left-n.clientLeft,s.right=o.body.clientWidth-s.width-s.left,s.bottom=o.body.clientHeight-s.height-s.top,s}function l(t){return t.offsetParent||document.documentElement}function h(){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var o=document.createElement("div");c(o.style,{position:"absolute",top:0,left:0,pointerEvents:"none",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),o.appendChild(t),document.body.appendChild(o);var n=t.offsetWidth;o.style.overflow="scroll";var s=t.offsetWidth;n===s&&(s=o.clientWidth),document.body.removeChild(o);var r=n-s;return{width:r,height:r}}function c(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],o=[];return Array.prototype.push.apply(o,arguments),o.slice(1).forEach(function(o){if(o)for(var n in o)({}).hasOwnProperty.call(o,n)&&(t[n]=o[n])}),t}function d(t,o){if(void 0!==t.classList)o.split(" ").forEach(function(o){o.trim()&&t.classList.remove(o)});else{var n=RegExp("(^| )"+o.split(" ").join("|")+"( |$)","gi"),s=g(t).replace(n," ");m(t,s)}}function p(t,o){if(void 0!==t.classList)o.split(" ").forEach(function(o){o.trim()&&t.classList.add(o)});else{d(t,o);var n=g(t)+" "+o;m(t,n)}}function f(t,o){if(void 0!==t.classList)return t.classList.contains(o);var n=g(t);return RegExp("(^| )"+o+"( |$)","gi").test(n)}function g(t){return t.className instanceof SVGAnimatedString?t.className.baseVal:t.className}function m(t,o){t.setAttribute("class",o)}function v(t,o,n){n.forEach(function(n){-1===o.indexOf(n)&&f(t,n)&&d(t,n)}),o.forEach(function(o){f(t,o)||p(t,o)})}function s(t,o){if(!(t instanceof o))throw TypeError("Cannot call a class as a function")}function y(t,o){var n=arguments.length<=2||void 0===arguments[2]?1:arguments[2];return t+n>=o&&o>=t-n}function w(){return"undefined"!=typeof performance&&void 0!==performance.now?performance.now():+new Date}function C(){for(var t={top:0,left:0},o=arguments.length,n=Array(o),s=0;o>s;s++)n[s]=arguments[s];return n.forEach(function(o){var n=o.top,s=o.left;"string"==typeof n&&(n=parseFloat(n,10)),"string"==typeof s&&(s=parseFloat(s,10)),t.top+=n,t.left+=s}),t}function b(t,o){return"string"==typeof t.left&&-1!==t.left.indexOf("%")&&(t.left=parseFloat(t.left,10)/100*o.width),"string"==typeof t.top&&-1!==t.top.indexOf("%")&&(t.top=parseFloat(t.top,10)/100*o.height),t}function T(t,o){var n,s,r;return"scrollParent"===o?o=t.scrollParent:"window"===o&&(o=[pageXOffset,pageYOffset,innerWidth+pageXOffset,innerHe
5ight+pageYOffset]),o===document&&(o=o.documentElement),void 0===o.nodeType||(s=n=a(o),r=getComputedStyle(o),o=[s.left,s.top,n.width+s.left,n.height+s.top],X.forEach(function(t,n){"Top"===(t=t[0].toUpperCase()+t.substr(1))||"Left"===t?o[n]+=parseFloat(r["border"+t+"Width"]):o[n]-=parseFloat(r["border"+t+"Width"])})),o}var z,E=function(){function t(t,o){for(var n=0;n<o.length;n++){var s=o[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}return function(o,n,s){return n&&t(o.prototype,n),s&&t(o,s),o}}(),I=void 0;void 0===I&&(I={modules:[]});var S=(z=0,function(){return++z}),x={},_=function(t){var o=t._tetherZeroElement;void 0===o&&((o=t.createElement("div")).setAttribute("data-tether-id",S()),c(o.style,{top:0,left:0,position:"absolute"}),t.body.appendChild(o),t._tetherZeroElement=o);var n=o.getAttribute("data-tether-id");if(void 0===x[n]){x[n]={};var s=o.getBoundingClientRect();for(var r in s)x[n][r]=s[r];O(function(){delete x[n]})}return x[n]},A=[],O=function(t){A.push(t)},k=function(){for(var t=void 0;t=A.pop();)t()},D=function(){function t(){s(this,t)}return E(t,[{key:"on",value:function(t,o,n){var s=!(arguments.length<=3)&&void 0!==arguments[3]&&arguments[3];void 0===this.bindings&&(this.bindings={}),void 0===this.bindings[t]&&(this.bindings[t]=[]),this.bindings[t].push({handler:o,ctx:n,once:s})}},{key:"once",value:function(t,o,n){this.on(t,o,n,!0)}},{key:"off",value:function(t,o){if(void 0===this.bindings||void 0===this.bindings[t]){if(void 0===o)delete this.bindings[t];else for(var n=0;n<this.bindings[t].length;)this.bindings[t][n].handler===o?this.bindings[t].splice(n,1):++n}}},{key:"trigger",value:function(t){if(void 0!==this.bindings&&this.bindings[t]){for(var o=0,n=arguments.length,s=Array(n>1?n-1:0),r=1;n>r;r++)s[r-1]=arguments[r];for(;o<this.bindings[t].length;){var a=this.bindings[t][o],l=a.handler,h=a.ctx,c=a.once,d=h;void 0===d&&(d=this),l.apply(d,s),c?this.bindings[t].splice(o,1):++o}}}}]),t}();I.Utils={getScrollParent:r,getBounds:a,getOffsetParent:l,extend:c,addClass:p,removeClass:d,hasClass:f,updateClasses:v,defer:O,flush:k,uniqueId:S,Evented:D,getScrollBarSize:h};var W=function(){function t(t,o){var n=[],s=!0,r=!1,a=void 0;try{for(var l,h=t[Symbol.iterator]();!(s=(l=h.next()).done)&&(n.push(l.value),!o||n.length!==o);s=!0);}catch(c){r=!0,a=c}finally{try{!s&&h.return&&h.return()}finally{if(r)throw a}}return n}return function(o,n){if(Array.isArray(o))return o;if(Symbol.iterator in Object(o))return t(o,n);throw TypeError("Invalid attempt to destructure non-iterable instance")}}(),E=function(){function t(t,o){for(var n=0;n<o.length;n++){var s=o[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}return function(o,n,s){return n&&t(o.prototype,n),s&&t(o,s),o}}();if(void 0===I)throw Error("You must include the utils.js file before tether.js");var L,P,N,H,R=I.Utils,r=R.getScrollParent,a=R.getBounds,l=R.getOffsetParent,c=R.extend,p=R.addClass,d=R.removeClass,v=R.updateClasses,O=R.defer,k=R.flush,h=R.getScrollBarSize,B=function(){if("undefined"==typeof document)return"";for(var t=document.createElement("div"),o=["transform","webkitTransform","OTransform","MozTransform","msTransform"],n=0;n<o.length;++n){var s=o[n];if(void 0!==t.style[s])return s}}(),M=[],F=function(){M.forEach(function(t){t.position(!1)}),k()};L=null,P=null,N=null,H=function t(){return void 0!==P&&P>16?(P=Math.min(P-16,250),void(N=setTimeout(t,250))):void(void 0!==L&&w()-L<10||(void 0!==N&&(clearTimeout(N),N=null),L=w(),F(),P=w()-L))},"undefined"!=typeof window&&["resize","scroll","touchmove"].forEach(function(t){window.addEventListener(t,H)});var V={center:"center",left:"right",right:"left"},j={middle:"middle",top:"bottom",bottom:"top"},G={top:0,left:0,middle:"50%",center:"50%",bottom:"100%",right:"100%"},U=function(t,o){var n=t.left,s=t.top;return"auto"===n&&(n=V[o.left]),"auto"===s&&(s=j[o.top]),{left:n,top:s}},Z=function(t){var o=t.left,n=t.top;return void 0!==G[t.left]&&(o=G[t.left]),void 0!==G[t.top]&&(n=G[t.top]),{left:o,top:n}},K=function(t){var o,n=W(t.split(" "),2);return{top:n[0],left:n[1]}},Y=K,Q=function(){function t(o){var n=this;s(this,t),this.position=this.position.bind(this),M.push(this),this.history=[],this.setOptions(o,!1),I.modules.forEac
5h(function(t){void 0!==t.initialize&&t.initialize.call(n)}),this.position()}return E(t,[{key:"getClass",value:function(){var t=arguments.length<=0||void 0===arguments[0]?"":arguments[0],o=this.options.classes;return void 0!==o&&o[t]?this.options.classes[t]:this.options.classPrefix?this.options.classPrefix+"-"+t:t}},{key:"setOptions",value:function(t){var o=this,n=arguments.length<=1||void 0===arguments[1]||arguments[1],s={offset:"0 0",targetOffset:"0 0",targetAttachment:"auto auto",classPrefix:"tether"};this.options=c(s,t);var a=this.options,l=a.element,h=a.target,d=a.targetModifier;if(this.element=l,this.target=h,this.targetModifier=d,"viewport"===this.target?(this.target=document.body,this.targetModifier="visible"):"scroll-handle"===this.target&&(this.target=document.body,this.targetModifier="scroll-handle"),["element","target"].forEach(function(t){if(void 0===o[t])throw Error("Tether Error: Both element and target must be defined");void 0!==o[t].jquery?o[t]=o[t][0]:"string"==typeof o[t]&&(o[t]=document.querySelector(o[t]))}),p(this.element,this.getClass("element")),!1!==this.options.addTargetClasses&&p(this.target,this.getClass("target")),!this.options.attachment)throw Error("Tether Error: You must provide an attachment");this.targetAttachment=Y(this.options.targetAttachment),this.attachment=Y(this.options.attachment),this.offset=K(this.options.offset),this.targetOffset=K(this.options.targetOffset),void 0!==this.scrollParent&&this.disable(),"scroll-handle"===this.targetModifier?this.scrollParent=this.target:this.scrollParent=r(this.target),!1!==this.options.enabled&&this.enable(n)}},{key:"getTargetBounds",value:function(){if(void 0===this.targetModifier)return a(this.target);if("visible"===this.targetModifier){if(this.target===document.body)return{top:pageYOffset,left:pageXOffset,height:innerHeight,width:innerWidth};var t=a(this.target),o={height:t.height,width:t.width,top:t.top,left:t.left};return o.height=Math.min(o.height,t.height-(pageYOffset-t.top)),o.height=Math.min(o.height,t.height-(t.top+t.height-(pageYOffset+innerHeight))),o.height=Math.min(innerHeight,o.height),o.height-=2,o.width=Math.min(o.width,t.width-(pageXOffset-t.left)),o.width=Math.min(o.width,t.width-(t.left+t.width-(pageXOffset+innerWidth))),o.width=Math.min(innerWidth,o.width),o.width-=2,o.top<pageYOffset&&(o.top=pageYOffset),o.left<pageXOffset&&(o.left=pageXOffset),o}if("scroll-handle"===this.targetModifier){var t=void 0,n=this.target;n===document.body?(n=document.documentElement,t={left:pageXOffset,top:pageYOffset,height:innerHeight,width:innerWidth}):t=a(n);var s=getComputedStyle(n),r=n.scrollWidth>n.clientWidth||[s.overflow,s.overflowX].indexOf("scroll")>=0||this.target!==document.body,l=0;r&&(l=15);var h=t.height-parseFloat(s.borderTopWidth)-parseFloat(s.borderBottomWidth)-l,o={width:15,height:.975*h*(h/n.scrollHeight),left:t.left+t.width-parseFloat(s.borderLeftWidth)-15},c=0;408>h&&this.target===document.body&&(c=-.00011*Math.pow(h,2)-.00727*h+22.58),this.target!==document.body&&(o.height=Math.max(o.height,24));var d=this.target.scrollTop/(n.scrollHeight-h);return o.top=d*(h-o.height-c)+t.top+parseFloat(s.borderTopWidth),this.target===document.body&&(o.height=Math.max(o.height,24)),o}}},{key:"clearCache",value:function(){this._cache={}}},{key:"cache",value:function(t,o){return void 0===this._cache&&(this._cache={}),void 0===this._cache[t]&&(this._cache[t]=o.call(this)),this._cache[t]}},{key:"enable",value:function(){var t=arguments.length<=0||void 0===arguments[0]||arguments[0];!1!==this.options.addTargetClasses&&p(this.target,this.getClass("enabled")),p(this.element,this.getClass("enabled")),this.enabled=!0,this.scrollParent!==document&&this.scrollParent.addEventListener("scroll",this.position),t&&this.position()}},{key:"disable",value:function(){d(this.target,this.getClass("enabled")),d(this.element,this.getClass("enabled")),this.enabled=!1,void 0!==this.scrollParent&&this.scrollParent.removeEventListener("scroll",this.position)}},{key:"destroy",value:function(){var t=this;this.disable(),M.forEach(function(o,n){return o===t?void M.splice(n,1):void 0})}},{key:"updateAttachClasses",value:function(t,o){var n=this;t=t||this.attachment,o=o||this.targetAttachment;var s=["left","top","bottom","right","middle","center"];void 0!==this._addAttachClasses&&this._addAttachClasses.length&&this._addAttachClasses.splice(0,this._addAttachClasses.length),void 0===this._addAttachClasses&&(this._addAttachClasses=[]);var r=this._addAttachClasses;t.top&&r.push(this.getClass("element-attached")+"-"+t.top),t.left&&r.push(this.getClass("element-attached")+"-"+t.left),o.top&&r.push(this.getClass("target-attached")+"-"+o.top),o.left&&r.push(this.getClass("target-attached")+"-"+o.left);var a=[];
5s.forEach(function(t){a.push(n.getClass("element-attached")+"-"+t),a.push(n.getClass("target-attached")+"-"+t)}),O(function(){void 0!==n._addAttachClasses&&(v(n.element,n._addAttachClasses,a),!1!==n.options.addTargetClasses&&v(n.target,n._addAttachClasses,a),delete n._addAttachClasses)})}},{key:"position",value:function(){var t=this,o=arguments.length<=0||void 0===arguments[0]||arguments[0];if(this.enabled){this.clearCache();var n=U(this.targetAttachment,this.attachment);this.updateAttachClasses(this.attachment,n);var s=this.cache("element-bounds",function(){return a(t.element)}),r=s.width,c=s.height;if(0===r&&0===c&&void 0!==this.lastSize){var d=this.lastSize;r=d.width,c=d.height}else this.lastSize={width:r,height:c};var p=this.cache("target-bounds",function(){return t.getTargetBounds()}),f=p,g=b(Z(this.attachment),{width:r,height:c}),m=b(Z(n),f),v=b(this.offset,{width:r,height:c}),y=b(this.targetOffset,f);g=C(g,v),m=C(m,y);for(var w=p.left+m.left-g.left,T=p.top+m.top-g.top,z=0;z<I.modules.length;++z){var E=I.modules[z].position.call(this,{left:w,top:T,targetAttachment:n,targetPos:p,elementPos:s,offset:g,targetOffset:m,manualOffset:v,manualTargetOffset:y,scrollbarSize:x,attachment:this.attachment});if(!1===E)return!1;void 0!==E&&"object"==typeof E&&(T=E.top,w=E.left)}var S={page:{top:T,left:w},viewport:{top:T-pageYOffset,bottom:pageYOffset-T-c+innerHeight,left:w-pageXOffset,right:pageXOffset-w-r+innerWidth}},x=void 0;return document.body.scrollWidth>window.innerWidth&&(x=this.cache("scrollbar-size",h),S.viewport.bottom-=x.height),document.body.scrollHeight>window.innerHeight&&(x=this.cache("scrollbar-size",h),S.viewport.right-=x.width),(-1===["","static"].indexOf(document.body.style.position)||-1===["","static"].indexOf(document.body.parentElement.style.position))&&(S.page.bottom=document.body.scrollHeight-T-c,S.page.right=document.body.scrollWidth-w-r),void 0!==this.options.optimizations&&!1!==this.options.optimizations.moveElement&&void 0===this.targetModifier&&function(){var o=t.cache("target-offsetparent",function(){return l(t.target)}),n=t.cache("target-offsetparent-bounds",function(){return a(o)}),s=getComputedStyle(o),r=n,h={};if(["Top","Left","Bottom","Right"].forEach(function(t){h[t.toLowerCase()]=parseFloat(s["border"+t+"Width"])}),n.right=document.body.scrollWidth-n.left-r.width+h.right,n.bottom=document.body.scrollHeight-n.top-r.height+h.bottom,S.page.top>=n.top+h.top&&S.page.bottom>=n.bottom&&S.page.left>=n.left+h.left&&S.page.right>=n.right){var c=o.scrollTop,d=o.scrollLeft;S.offset={top:S.page.top-n.top+c-h.top,left:S.page.left-n.left+d-h.left}}}(),this.move(S),this.history.unshift(S),this.history.length>3&&this.history.pop(),o&&k(),!0}}},{key:"move",value:function(t){var o=this;if(void 0!==this.element.parentNode){var n={};for(var s in t)for(var r in n[s]={},t[s]){for(var a=!1,h=0;h<this.history.length;++h){var d=this.history[h];if(void 0!==d[s]&&!y(d[s][r],t[s][r])){a=!0;break}}a||(n[s][r]=!0)}var p,f={top:"",left:"",right:"",bottom:""},g=function(t,n){if(!1!==(void 0!==o.options.optimizations?o.options.optimizations.gpu:null)){var s=void 0,r=void 0;t.top?(f.top=0,s=n.top):(f.bottom=0,s=-n.bottom),t.left?(f.left=0,r=n.left):(f.right=0,r=-n.right),f[B]="translateX("+Math.round(r)+"px) translateY("+Math.round(s)+"px)","msTransform"!==B&&(f[B]+=" translateZ(0)")}else t.top?f.top=n.top+"px":f.bottom=n.bottom+"px",t.left?f.left=n.left+"px":f.right=n.right+"px"},m=!1;if((n.page.top||n.page.bottom)&&(n.page.left||n.page.right)?(f.position="absolute",g(n.page,t.page)):(n.viewport.top||n.viewport.bottom)&&(n.viewport.left||n.viewport.right)?(f.position="fixed",g(n.viewport,t.viewport)):void 0!==n.offset&&n.offset.top&&n.offset.left?(f.position="absolute",p=o.cache("target-offsetparent",function(){return l(o.target)}),l(o.element)!==p&&O(function(){o.element.parentNode.removeChild(o.element),p.appendChild(o.element)}),g(n.offset,t.offset),m=!0):(f.position="absolute",g({top:!0,left:!0},t.page)),!m){for(var v=!0,w=this.element.parentNode;w&&"BODY"!==w.tagName;){if("static"!==getComputedStyle(w).position){v=!1;break}w=w.parentNode}v||(this.element.parentNode.removeChild(this.element),document.body.appendChild(this.element))}var C={},b=!1;for(var r in f){var T=f[r],z=this.element.style[r];""!==z&&""!==T&&["top","left","bottom","right"].indexOf(r)>=0&&(z=parseFloat(z),T=parseFloat(T)),z!==T&&(b=!0,C[r]=T)}b&&O(function(){c(o.element.style,C)})}}}]),t}();Q.modules=[],I.position=F;var q=c(Q,I),W=function(){function t(t,o){var n=[],s=!0,r=!1,a=void 0;try{for(var l,h=t[Symbol.iterator]();!(s=(l=h.next()).done)&&(n.push(l.value),!o||n.length!==o);s=!0);}catch(c){r=!0,a=c}finally{try{!s&&h.return&&h.return()}finally{if(r)throw a}}return n}return function(o,n){if(Array.isArray(o))return o;if(Symbol.iterator in Object(o))return t(o,n);
5throw TypeError("Invalid attempt to destructure non-iterable instance")}}(),R=I.Utils,a=R.getBounds,c=R.extend,v=R.updateClasses,O=R.defer,X=["left","top","right","bottom"];I.modules.push({position:function(t){var o=this,n=t.top,s=t.left,r=t.targetAttachment;if(!this.options.constraints)return!0;var l=this.cache("element-bounds",function(){return a(o.element)}),h=l.height,d=l.width;if(0===d&&0===h&&void 0!==this.lastSize){var p=this.lastSize;d=p.width,h=p.height}var f=this.cache("target-bounds",function(){return o.getTargetBounds()}),g=f.height,m=f.width,y=[this.getClass("pinned"),this.getClass("out-of-bounds")];this.options.constraints.forEach(function(t){var o=t.outOfBoundsClass,n=t.pinnedClass;o&&y.push(o),n&&y.push(n)}),y.forEach(function(t){["left","top","right","bottom"].forEach(function(o){y.push(t+"-"+o)})});var w=[],C=c({},r),b=c({},this.attachment);return this.options.constraints.forEach(function(t){var a=t.to,l=t.attachment,c=t.pin;void 0===l&&(l="");var p=void 0,f=void 0;if(l.indexOf(" ")>=0){var v=W(l.split(" "),2);f=v[0],p=v[1]}else p=f=l;var y=T(o,a);("target"===f||"both"===f)&&(n<y[1]&&"top"===C.top&&(n+=g,C.top="bottom"),n+h>y[3]&&"bottom"===C.top&&(n-=g,C.top="top")),"together"===f&&(n<y[1]&&"top"===C.top&&("bottom"===b.top?(n+=g,C.top="bottom",n+=h,b.top="top"):"top"===b.top&&(n+=g,C.top="bottom",n-=h,b.top="bottom")),n+h>y[3]&&"bottom"===C.top&&("top"===b.top?(n-=g,C.top="top",n-=h,b.top="bottom"):"bottom"===b.top&&(n-=g,C.top="top",n+=h,b.top="top")),"middle"===C.top&&(n+h>y[3]&&"top"===b.top?(n-=h,b.top="bottom"):n<y[1]&&"bottom"===b.top&&(n+=h,b.top="top"))),("target"===p||"both"===p)&&(s<y[0]&&"left"===C.left&&(s+=m,C.left="right"),s+d>y[2]&&"right"===C.left&&(s-=m,C.left="left")),"together"===p&&(s<y[0]&&"left"===C.left?"right"===b.left?(s+=m,C.left="right",s+=d,b.left="left"):"left"===b.left&&(s+=m,C.left="right",s-=d,b.left="right"):s+d>y[2]&&"right"===C.left?"left"===b.left?(s-=m,C.left="left",s-=d,b.left="right"):"right"===b.left&&(s-=m,C.left="left",s+=d,b.left="left"):"center"===C.left&&(s+d>y[2]&&"left"===b.left?(s-=d,b.left="right"):s<y[0]&&"right"===b.left&&(s+=d,b.left="left"))),("element"===f||"both"===f)&&(n<y[1]&&"bottom"===b.top&&(n+=h,b.top="top"),n+h>y[3]&&"top"===b.top&&(n-=h,b.top="bottom")),("element"===p||"both"===p)&&(s<y[0]&&"right"===b.left&&(s+=d,b.left="left"),s+d>y[2]&&"left"===b.left&&(s-=d,b.left="right")),"string"==typeof c?c=c.split(",").map(function(t){return t.trim()}):!0===c&&(c=["top","left","right","bottom"]),c=c||[];var z,E,I=[],S=[];n<y[1]&&(c.indexOf("top")>=0?(n=y[1],I.push("top")):S.push("top")),n+h>y[3]&&(c.indexOf("bottom")>=0?(n=y[3]-h,I.push("bottom")):S.push("bottom")),s<y[0]&&(c.indexOf("left")>=0?(s=y[0],I.push("left")):S.push("left")),s+d>y[2]&&(c.indexOf("right")>=0?(s=y[2]-d,I.push("right")):S.push("right")),I.length&&(z=void 0,z=void 0!==o.options.pinnedClass?o.options.pinnedClass:o.getClass("pinned"),w.push(z),I.forEach(function(t){w.push(z+"-"+t)})),S.length&&(E=void 0,E=void 0!==o.options.outOfBoundsClass?o.options.outOfBoundsClass:o.getClass("out-of-bounds"),w.push(E),S.forEach(function(t){w.push(E+"-"+t)})),(I.indexOf("left")>=0||I.indexOf("right")>=0)&&(b.left=C.left=!1),(I.indexOf("top")>=0||I.indexOf("bottom")>=0)&&(b.top=C.top=!1),(C.top!==r.top||C.left!==r.left||b.top!==o.attachment.top||b.left!==o.attachment.left)&&o.updateAttachClasses(b,C)}),O(function(){!1!==o.options.addTargetClasses&&v(o.target,w,y),v(o.element,w,y)}),{top:n,left:s}}});var R=I.Utils,a=R.getBounds,v=R.updateClasses,O=R.defer;I.modules.push({position:function(t){var o=this,n=t.top,s=t.left,r=this.cache("element-bounds",function(){return a(o.element)}),l=r.height,h=r.width,c=this.getTargetBounds(),d=n+l,p=s+h,f=[];n<=c.bottom&&d>=c.top&&["left","right"].forEach(function(t){var o=c[t];(o===s||o===p)&&f.push(t)}),s<=c.right&&p>=c.left&&["top","bottom"].forEach(function(t){var o=c[t];(o===n||o===d)&&f.push(t)});var g=[],m=[],y=["left","top","right","bottom"];return g.push(this.getClass("abutted")),y.forEach(function(t){g.push(o.getClass("abutted")+"-"+t)}),f.length&&m.push(this.getClass("abutted")),f.forEach(function(t){m.push(o.getClass("abutted")+"-"+t)}),O(function(){!1!==o.options.addTargetClasses&&v(o.target,m,g),v(o.element,m,g)}),!0}});var W=function(){function t(t,o){var n=[],s=!0,r=!1,a=void 0;try{for(var l,h=t[Symbol.iterator]();!(s=(l=h.next()).done)&&(n.push(l.value),!o||n.length!==o);s=!0);}catch(c){r=!0,a=c}finally{try{!s&&h.return&&h.return()}finally{if(r)throw a}}return n}return function(o,n){if(Array.isArray(o))return o;if(Symbol.iterator in Object(o))return t(o,n);
5throw TypeError("Invalid attempt to destructure non-iterable instance")}}();return I.modules.push({position:function(t){var o=t.top,n=t.left;if(this.options.shift){var s=this.options.shift;"function"==typeof this.options.shift&&(s=this.options.shift.call(this,{top:o,left:n}));var r=void 0,a=void 0;if("string"==typeof s){(s=s.split(" "))[1]=s[1]||s[0];var l=s,h=W(l,2);r=h[0],a=h[1],r=parseFloat(r,10),a=parseFloat(a,10)}else r=s.top,a=s.left;return{top:o+=r,left:n+=a}}}}),q}),"undefined"==typeof jQuery)throw Error("Bootstrap's JavaScript requires jQuery");(function(t){var o=t.fn.jquery.split(" ")[0].split(".");if(o[0]<2&&o[1]<9||1==o[0]&&9==o[1]&&o[2]<1||o[0]>=4)throw Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")})(jQuery),function(t){"use strict";function o(t,o){if("function"!=typeof o&&null!==o)throw TypeError("Super expression must either be null or a function, not "+typeof o);t.prototype=Object.create(o&&o.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(t,o):t.__proto__=o)}function n(t,o){if(!(t instanceof o))throw TypeError("Cannot call a class as a function")}var s,r,a,l,h,c,d,p,f,g,m,v,y,w,C,b,T,z,E,I,S,x,_,A,O,k,D,W,L,P,N,H,R,B,M,F,V,j,G,U,Z,K,Y,Q,q,X,J,tt,te,ti,to,tn,ts,tr,ta,tl,th,tc,td,tu,tp,tf,tg,tm,tv,ty,tw,t8,tC,tb,t$,tT,tz,tE,tI,tS,tx,t_,tA,tO,tk,tD,tW,tL,tP,tN,tH,tR,t9,tB,tM,tF,t0,tV,tj,tG,tU,t1,tZ,t2,tK,t3,tY,tQ,tq,tX,t4,t7,t5,t6,tJ,et,ee,ei,eo,en,es,er,ea,el,eh,ec,ed,eu,ep=function(t,o,n){for(var s=!0;s;){var r=t,a=o,l=n;s=!1,null===r&&(r=Function.prototype);var h=Object.getOwnPropertyDescriptor(r,a);if(void 0!==h){if("value"in h)return h.value;var c=h.get;if(void 0===c)return;return c.call(l)}var d=Object.getPrototypeOf(r);if(null===d)return;t=d,o=a,n=l,s=!0,h=d=void 0}},ef=function(){function t(t,o){for(var n=0;n<o.length;n++){var s=o[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}return function(o,n,s){return n&&t(o.prototype,n),s&&t(o,s),o}}(),eg=function(t){function o(t){return({}).toString.call(t).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}function n(t){return(t[0]||t).nodeType}function s(){return{bindType:h.end,delegateType:h.end,handle:function(o){if(t(o.target).is(this))return o.handleObj.handler.apply(this,arguments)}}}function r(){if(window.QUnit)return!1;var t=document.createElement("bootstrap");for(var o in d)if(void 0!==t.style[o])return{end:d[o]};return!1}function a(o){var n=this,s=!1;return t(this).one(p.TRANSITION_END,function(){s=!0}),setTimeout(function(){s||p.triggerTransitionEnd(n)},o),this}function l(){h=r(),t.fn.emulateTransitionEnd=a,p.supportsTransitionEnd()&&(t.event.special[p.TRANSITION_END]=s())}var h=!1,c=1e6,d={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},p={TRANSITION_END:"bsTransitionEnd",getUID:function(t){do t+=~~(Math.random()*c);while(document.getElementById(t));return t},getSelectorFromElement:function(t){var o=t.getAttribute("data-target");return o||(o=t.getAttribute("href")||"",o=/^#[a-z]/i.test(o)?o:null),o},reflow:function(t){Function("bs","return bs")(t.offsetHeight)},triggerTransitionEnd:function(o){t(o).trigger(h.end)},supportsTransitionEnd:function(){return Boolean(h)},typeCheckConfig:function(t,s,r){for(var a in r)if(r.hasOwnProperty(a)){var l=r[a],h=s[a],c=void 0;if(c=h&&n(h)?"element":o(h),!RegExp(l).test(c))throw Error(t.toUpperCase()+": "+('Option "'+a+'" provided type "')+c+'" but expected type "'+l+'".')}}};return l(),p}(jQuery),em=(s=jQuery,r="alert",a="4.0.0-alpha.3",h="."+(l="bs.alert"),c=".data-api",d=s.fn[r],p=150,f={DISMISS:'[data-dismiss="alert"]'},g={CLOSE:"close"+h,CLOSED:"closed"+h,CLICK_DATA_API:"click"+h+c},m={ALERT:"alert",FADE:"fade",IN:"in"},v=function(){function t(o){n(this,t),this._element=o}return ef(t,[{key:"close",value:function(t){t=t||this._element;var o=this._getRootElement(t);this._triggerCloseEvent(o).isDefaultPrevented()||this._removeElement(o)}},{key:"dispose",value:function(){s.removeData(this._element,l),this._element=null}},{key:"_getRootElement",value:function(t){var o=eg.getSelectorFromElement(t),n=!1;return o&&(n=s(o)[0]),n||(n=s(t).closest("."+m.ALERT)[0]),n}},{key:"_triggerCloseEvent",value:function(t){var o=s.Event(g.CLOSE);return s(t).trigger(o),o}},{key:"_removeElement",value:function(t){return s(t).removeClass(m.IN),eg.supportsTransitionEnd()&&s(t).hasClass(m.FADE)?void s(t).one(eg.TRANSITION_END,s.proxy(this._destroyElement,this,t)).emulateTransitionEnd(p):void this._destroyElement(t)}},{key:"_destroyElement",value:function(t){s(t).detach().trigger(g.CLOSED).remove()}}],[{key:"_jQueryInterface",value:function(o){return this.each(function(){var n=s(this),r=n.data(l);r||(r=new t(this),n.data(l,r)),"close"===o&&r[o](this)})}},{key:"_handleDismiss",value:function(t){return function(o){o&&o.preventDefault(),t.close(this)}}},{key:"VERSION",get:function(){return a}}]),t}(),s(document).on(g.CLICK_DATA_API,f.DISMISS,v._handleDismiss(new v)),s.fn[r]=v._jQueryInterface,s.fn[r].Constructor=v,s.fn[r].noConflict=function(){return s.fn[r]=d,v._jQueryInterface},y=jQuery,w="button",C="4.0.0-alpha.3",T="."+(b="bs.button"),z=".data-api",E=y.fn[w],I={ACTIVE:"active",BUTTON:"bt
5n",FOCUS:"focus"},S={DATA_TOGGLE_CARROT:'[data-toggle^="button"]',DATA_TOGGLE:'[data-toggle="buttons"]',INPUT:"input",ACTIVE:".active",BUTTON:".btn"},x={CLICK_DATA_API:"click"+T+z,FOCUS_BLUR_DATA_API:"focus"+T+z+" blur"+T+z},_=function(){function t(o){n(this,t),this._element=o}return ef(t,[{key:"toggle",value:function(){var t=!0,o=y(this._element).closest(S.DATA_TOGGLE)[0];if(o){var n=y(this._element).find(S.INPUT)[0];if(n){if("radio"===n.type){if(n.checked&&y(this._element).hasClass(I.ACTIVE))t=!1;else{var s=y(o).find(S.ACTIVE)[0];s&&y(s).removeClass(I.ACTIVE)}}t&&(n.checked=!y(this._element).hasClass(I.ACTIVE),y(this._element).trigger("change")),n.focus()}}else this._element.setAttribute("aria-pressed",!y(this._element).hasClass(I.ACTIVE));t&&y(this._element).toggleClass(I.ACTIVE)}},{key:"dispose",value:function(){y.removeData(this._element,b),this._element=null}}],[{key:"_jQueryInterface",value:function(o){return this.each(function(){var n=y(this).data(b);n||(n=new t(this),y(this).data(b,n)),"toggle"===o&&n[o]()})}},{key:"VERSION",get:function(){return C}}]),t}(),y(document).on(x.CLICK_DATA_API,S.DATA_TOGGLE_CARROT,function(t){t.preventDefault();var o=t.target;y(o).hasClass(I.BUTTON)||(o=y(o).closest(S.BUTTON)),_._jQueryInterface.call(y(o),"toggle")}).on(x.FOCUS_BLUR_DATA_API,S.DATA_TOGGLE_CARROT,function(t){var o=y(t.target).closest(S.BUTTON)[0];y(o).toggleClass(I.FOCUS,/^focus(in)?$/.test(t.type))}),y.fn[w]=_._jQueryInterface,y.fn[w].Constructor=_,y.fn[w].noConflict=function(){return y.fn[w]=E,_._jQueryInterface},A=jQuery,O="carousel",k="4.0.0-alpha.3",W="."+(D="bs.carousel"),L=".data-api",P=A.fn[O],N=600,H=37,R=39,B={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},M={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},F={NEXT:"next",PREVIOUS:"prev"},V={SLIDE:"slide"+W,SLID:"slid"+W,KEYDOWN:"keydown"+W,MOUSEENTER:"mouseenter"+W,MOUSELEAVE:"mouseleave"+W,LOAD_DATA_API:"load"+W+L,CLICK_DATA_API:"click"+W+L},j={CAROUSEL:"carousel",ACTIVE:"active",SLIDE:"slide",RIGHT:"right",LEFT:"left",ITEM:"carousel-item"},G={ACTIVE:".active",ACTIVE_ITEM:".active.carousel-item",ITEM:".carousel-item",NEXT_PREV:".next, .prev",INDICATORS:".carousel-indicators",DATA_SLIDE:"[data-slide], [data-slide-to]",DATA_RIDE:'[data-ride="carousel"]'},U=function(){function t(o,s){n(this,t),this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this._config=this._getConfig(s),this._element=A(o)[0],this._indicatorsElement=A(this._element).find(G.INDICATORS)[0],this._addEventListeners()}return ef(t,[{key:"next",value:function(){this._isSliding||this._slide(F.NEXT)}},{key:"nextWhenVisible",value:function(){document.hidden||this.next()}},{key:"prev",value:function(){this._isSliding||this._slide(F.PREVIOUS)}},{key:"pause",value:function(t){t||(this._isPaused=!0),A(this._element).find(G.NEXT_PREV)[0]&&eg.supportsTransitionEnd()&&(eg.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}},{key:"cycle",value:function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval(A.proxy(document.visibilityState?this.nextWhenVisible:this.next,this),this._config.interval))}},{key:"to",value:function(t){var o=this;this._activeElement=A(this._element).find(G.ACTIVE_ITEM)[0];var n=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0)){if(this._isSliding)return void A(this._element).one(V.SLID,function(){return o.to(t)});if(n===t)return this.pause(),void this.cycle();var s=t>n?F.NEXT:F.PREVIOUS;this._slide(s,this._items[t])}}},{key:"dispose",value:function(){A(this._element).off(W),A.removeData(this._element,D),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null}},{key:"_getConfig",value:function(t){return t=A.extend({},B,t),eg.typeCheckConfig(O,t,M),t}},{key:"_addEventListeners",value:function(){this._config.keyboard&&A(this._element).on(V.KEYDOWN,A.proxy(this._key
5down,this)),"hover"!==this._config.pause||"ontouchstart"in document.documentElement||A(this._element).on(V.MOUSEENTER,A.proxy(this.pause,this)).on(V.MOUSELEAVE,A.proxy(this.cycle,this))}},{key:"_keydown",value:function(t){if(t.preventDefault(),!/input|textarea/i.test(t.target.tagName))switch(t.which){case H:this.prev();break;case R:this.next();break;default:return}}},{key:"_getItemIndex",value:function(t){return this._items=A.makeArray(A(t).parent().find(G.ITEM)),this._items.indexOf(t)}},{key:"_getItemByDirection",value:function(t,o){var n=t===F.NEXT,s=t===F.PREVIOUS,r=this._getItemIndex(o),a=this._items.length-1;if((s&&0===r||n&&r===a)&&!this._config.wrap)return o;var l=(r+(t===F.PREVIOUS?-1:1))%this._items.length;return -1===l?this._items[this._items.length-1]:this._items[l]}},{key:"_triggerSlideEvent",value:function(t,o){var n=A.Event(V.SLIDE,{relatedTarget:t,direction:o});return A(this._element).trigger(n),n}},{key:"_setActiveIndicatorElement",value:function(t){if(this._indicatorsElement){A(this._indicatorsElement).find(G.ACTIVE).removeClass(j.ACTIVE);var o=this._indicatorsElement.children[this._getItemIndex(t)];o&&A(o).addClass(j.ACTIVE)}}},{key:"_slide",value:function(t,o){var n=this,s=A(this._element).find(G.ACTIVE_ITEM)[0],r=o||s&&this._getItemByDirection(t,s),a=Boolean(this._interval),l=t===F.NEXT?j.LEFT:j.RIGHT;if(r&&A(r).hasClass(j.ACTIVE))return void(this._isSliding=!1);if(!this._triggerSlideEvent(r,l).isDefaultPrevented()&&s&&r){this._isSliding=!0,a&&this.pause(),this._setActiveIndicatorElement(r);var h=A.Event(V.SLID,{relatedTarget:r,direction:l});eg.supportsTransitionEnd()&&A(this._element).hasClass(j.SLIDE)?(A(r).addClass(t),eg.reflow(r),A(s).addClass(l),A(r).addClass(l),A(s).one(eg.TRANSITION_END,function(){A(r).removeClass(l).removeClass(t),A(r).addClass(j.ACTIVE),A(s).removeClass(j.ACTIVE).removeClass(t).removeClass(l),n._isSliding=!1,setTimeout(function(){return A(n._element).trigger(h)},0)}).emulateTransitionEnd(N)):(A(s).removeClass(j.ACTIVE),A(r).addClass(j.ACTIVE),this._isSliding=!1,A(this._element).trigger(h)),a&&this.cycle()}}}],[{key:"_jQueryInterface",value:function(o){return this.each(function(){var n=A(this).data(D),s=A.extend({},B,A(this).data());"object"==typeof o&&A.extend(s,o);var r="string"==typeof o?o:s.slide;if(n||(n=new t(this,s),A(this).data(D,n)),"number"==typeof o)n.to(o);else if("string"==typeof r){if(void 0===n[r])throw Error('No method named "'+r+'"');n[r]()}else s.interval&&(n.pause(),n.cycle())})}},{key:"_dataApiClickHandler",value:function(o){var n=eg.getSelectorFromElement(this);if(n){var s=A(n)[0];if(s&&A(s).hasClass(j.CAROUSEL)){var r=A.extend({},A(s).data(),A(this).data()),a=this.getAttribute("data-slide-to");a&&(r.interval=!1),t._jQueryInterface.call(A(s),r),a&&A(s).data(D).to(a),o.preventDefault()}}}},{key:"VERSION",get:function(){return k}},{key:"Default",get:function(){return B}}]),t}(),A(document).on(V.CLICK_DATA_API,G.DATA_SLIDE,U._dataApiClickHandler),A(window).on(V.LOAD_DATA_API,function(){A(G.DATA_RIDE).each(function(){var t=A(this);U._jQueryInterface.call(t,t.data())})}),A.fn[O]=U._jQueryInterface,A.fn[O].Constructor=U,A.fn[O].noConflict=function(){return A.fn[O]=P,U._jQueryInterface},Z=jQuery,K="collapse",Y="4.0.0-alpha.3",q="."+(Q="bs.collapse"),X=".data-api",J=Z.fn[K],tt=600,te={toggle:!0,parent:""},ti={toggle:"boolean",parent:"string"},to={SHOW:"show"+q,SHOWN:"shown"+q,HIDE:"hide"+q,HIDDEN:"hidden"+q,CLICK_DATA_API:"click"+q+X},tn={IN:"in",COLLAPSE:"collapse",COLLAPSING:"collapsing",COLLAPSED:"collapsed"},ts={WIDTH:"width",HEIGHT:"height"},tr={ACTIVES:".panel > .in, .panel > .collapsing",DATA_TOGGLE:'[data-toggle="collapse"]'},ta=function(){function t(o,s){n(this,t),this._isTransitioning=!1,this._element=o,this._config=this._getConfig(s),this._triggerArray=Z.makeArray(Z('[data-toggle="collapse"][href="#'+o.id+'"],[data-toggle="collapse"][data-target="#'+o.id+'"]')),this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}return ef(t,[{key:"toggle",value:function(){Z(this._element).hasClass(tn.IN)?this.hide():this.show()}},{key:"show",value:function(){var o=this;if(!this._isTransitioning&&!Z(this._element).hasClass(tn.IN)){var n=void 0,s=void 0;if(this._parent&&((n=Z.makeArray(Z(tr.ACTIVES))).length||(n=null)),!(n&&(s=Z(n).data(Q))&&s._isTransitioning)){var r=Z.Event(to.SHOW);if(Z(this._element).trigger(r),!r.isDefaultPrevented()){n&&(t._jQueryInterface.call(Z(n),"hide"),s||Z(n).data(Q,null));var a=this._getDimension();Z(this._element).removeClass(tn.COLLAPSE).addClass(tn.COLLAPSING),this._element.style[a]=0,this._element.setAttribute("aria-expanded",!0),this._triggerArray.length&&Z(this._triggerArray).removeClass(tn.COLLAPSED).attr("aria-expanded",!0),this.setTransitioning(!0);var l=function(){Z(o._element).removeClass(tn.COLLAPSING).addClass(tn.COLLAPSE).addClass(tn.IN),o._element.style[a]="",o.setTransitioning(!1),Z(o._element).trigger(to.SHOWN)};if(!eg.supportsTransitionEnd())return void l();var h="scroll"+(a[0].toUpperCase()+a.slice(1));Z(this._element).one(eg.TRANSITION_END,l).emulateTransitionEnd(tt),this._element.style[a]=this._element[h]+"px"}}}}},{key:"hide",value:function(){var t=this;if(!this._isTransitioning&&Z(this._element).hasClass(tn.IN)){var o=Z.Event(to.HIDE);if(Z(this._element).trigger(o),!o.isDefaultPrevented()){var n=this._getDimension(),s=n===ts.WIDTH?"offsetWidth":"offsetHeight";this._element.style[n]=this._element[s]+"px",eg.reflow(this._element),Z(this._element).addClass(tn.COLLAPSING).removeClass(tn.COLLAPSE).removeClass(tn.IN),this._element.setAttribute("aria-expanded",!1),this._triggerArray.length&&Z(this._triggerArray).addClass(tn.COLLAPSED).attr("aria-expanded",!1),this.setTransitioning(!0);var r=function(){t.setTransitioning(!1),Z(t._element).removeClass(tn.COLLAPSING).addClass(tn.COLLAPSE).trigger(to.HIDDEN)};return this._element.style[n]=0,eg.supportsTransitionEnd()?void Z(this._element).one(eg.TRANSITION_END,r).emulateTransitionEnd(tt):void r()}}}},{key:"setTransitioning",value:function(t){this._isTransitioning=t}},{key:"dispose",value:function(){Z.removeData(this._element,Q),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null}},{key:"_getConfig",value:function(t){return(t=Z.extend({},te,t)).toggle=Boolean(t.toggle),eg.typeCheckConfig(K,t,ti),t}},{key:"_getDimension",value:function(){return Z(this._element).hasClass(ts.WIDTH)?ts.WIDTH:ts.HEIGHT}},{key:"_getParent",value:function(){var o=this,n=Z(this._config.parent)[0],s='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]';return Z(n).find(s).each(function(n,s){o._addAriaAndCollapsedClass(t._getTargetFromElement(s),[s])}),n}},{key:"_addAriaAndCollapsedClass",value:function(t,o){if(t){var n=Z(t).hasClass(tn.IN);t.setAttribute("aria-expanded",n),o.length&&Z(o).toggleClass(tn.COLLAPSED,!n).attr("aria-expanded",n)}}}],[{key:"_getTargetFromElement",value:function(t){var o=eg.getSelectorFromElement(t);return o?Z(o)[0]:null}},{key:"_jQueryInterface",value:function(o){return this.each(function(){var n=Z(this),s=n.data(Q),r=Z.extend({},te,n.data(),"object"==typeof o&&o);if(!s&&r.toggle&&/show|hide/.test(o)&&(r.toggle=!1),s||(s=new t(this,r),n.data(Q,s)),"string"==typeof o){if(void 0===s[o])throw Error('No method n
5amed "'+o+'"');s[o]()}})}},{key:"VERSION",get:function(){return Y}},{key:"Default",get:function(){return te}}]),t}(),Z(document).on(to.CLICK_DATA_API,tr.DATA_TOGGLE,function(t){t.preventDefault();var o=ta._getTargetFromElement(this),n=Z(o).data(Q)?"toggle":Z(this).data();ta._jQueryInterface.call(Z(o),n)}),Z.fn[K]=ta._jQueryInterface,Z.fn[K].Constructor=ta,Z.fn[K].noConflict=function(){return Z.fn[K]=J,ta._jQueryInterface},tl=jQuery,th="dropdown",tc="4.0.0-alpha.3",tu="."+(td="bs.dropdown"),tp=".data-api",tf=tl.fn[th],tg=27,tm=38,tv=40,ty=3,tw={HIDE:"hide"+tu,HIDDEN:"hidden"+tu,SHOW:"show"+tu,SHOWN:"shown"+tu,CLICK:"click"+tu,CLICK_DATA_API:"click"+tu+tp,KEYDOWN_DATA_API:"keydown"+tu+tp},t8={BACKDROP:"dropdown-backdrop",DISABLED:"disabled",OPEN:"open"},tC={BACKDROP:".dropdown-backdrop",DATA_TOGGLE:'[data-toggle="dropdown"]',FORM_CHILD:".dropdown form",ROLE_MENU:'[role="menu"]',ROLE_LISTBOX:'[role="listbox"]',NAVBAR_NAV:".navbar-nav",VISIBLE_ITEMS:'[role="menu"] li:not(.disabled) a, [role="listbox"] li:not(.disabled) a'},tb=function(){function t(o){n(this,t),this._element=o,this._addEventListeners()}return ef(t,[{key:"toggle",value:function(){if(this.disabled||tl(this).hasClass(t8.DISABLED))return!1;var o=t._getParentFromElement(this),n=tl(o).hasClass(t8.OPEN);if(t._clearMenus(),n)return!1;if("ontouchstart"in document.documentElement&&!tl(o).closest(tC.NAVBAR_NAV).length){var s=document.createElement("div");s.className=t8.BACKDROP,tl(s).insertBefore(this),tl(s).on("click",t._clearMenus)}var r={relatedTarget:this},a=tl.Event(tw.SHOW,r);return tl(o).trigger(a),!a.isDefaultPrevented()&&(this.focus(),this.setAttribute("aria-expanded","true"),tl(o).toggleClass(t8.OPEN),tl(o).trigger(tl.Event(tw.SHOWN,r)),!1)}},{key:"dispose",value:function(){tl.removeData(this._element,td),tl(this._element).off(tu),this._element=null}},{key:"_addEventListeners",value:function(){tl(this._element).on(tw.CLICK,this.toggle)}}],[{key:"_jQueryInterface",value:function(o){return this.each(function(){var n=tl(this).data(td);if(n||tl(this).data(td,n=new t(this)),"string"==typeof o){if(void 0===n[o])throw Error('No method named "'+o+'"');n[o].call(this)}})}},{key:"_clearMenus",value:function(o){if(!o||o.which!==ty){var n=tl(tC.BACKDROP)[0];n&&n.parentNode.removeChild(n);for(var s=tl.makeArray(tl(tC.DATA_TOGGLE)),r=0;r<s.length;r++){var a=t._getParentFromElement(s[r]),l={relatedTarget:s[r]};if(tl(a).hasClass(t8.OPEN)&&!(o&&"click"===o.type&&/input|textarea/i.test(o.target.tagName)&&tl.contains(a,o.target))){var h=tl.Event(tw.HIDE,l);tl(a).trigger(h),h.isDefaultPrevented()||(s[r].setAttribute("aria-expanded","false"),tl(a).removeClass(t8.OPEN).trigger(tl.Event(tw.HIDDEN,l)))}}}}},{key:"_getParentFromElement",value:function(t){var o=void 0,n=eg.getSelectorFromElement(t);return n&&(o=tl(n)[0]),o||t.parentNode}},{key:"_dataApiKeydownHandler",value:function(o){if(/(38|40|27|32)/.test(o.which)&&!/input|textarea/i.test(o.target.tagName)&&(o.preventDefault(),o.stopPropagation(),!this.disabled&&!tl(this).hasClass(t8.DISABLED))){var n=t._getParentFromElement(this),s=tl(n).hasClass(t8.OPEN);if(!s&&o.which!==tg||s&&o.which===tg){if(o.which===tg){var r=tl(n).find(tC.DATA_TOGGLE)[0];tl(r).trigger("focus")}return void tl(this).trigger("click")}var a=tl.makeArray(tl(tC.VISIBLE_ITEMS));if((a=a.filter(function(t){return t.offsetWidth||t.offsetHeight})).length){var l=a.indexOf(o.target);o.which===tm&&l>0&&l--,o.which===tv&&l<a.length-1&&l++,l<0&&(l=0),a[l].focus()}}}},{key:"VERSION",get:function(){return tc}}]),t}(),tl(document).on(tw.KEYDOWN_DATA_API,tC.DATA_TOGGLE,tb._dataApiKeydownHandler).on(tw.KEYDOWN_DATA_API,tC.ROLE_MENU,tb._dataApiKeydownHandler).on(tw.KEYDOWN_DATA_API,tC.ROLE_LISTBOX,tb._dataApiKeydownHandler).on(tw.CLICK_DATA_API,tb._clearMenus).on(tw.CLICK_DATA_API,tC.DATA_TOGGLE,tb.prototype.toggle).on(tw.CLICK_DATA_API,tC.FORM_CHILD,function(t){t.stopPropagation()}),tl.fn[th]=tb._jQueryInterface,tl.fn[th].Constructor=tb,tl.fn[th].noConflict=function(){return tl.fn[th]=tf,tb._jQueryInterface},t$=jQuery,tT="modal",tz="4.0.0-alpha.3",tI="."+(tE="bs.modal"),tS=".data-api",tx=t$.fn[tT],t_=300,tA=150,tO=27,tk={backdrop:!0,keyboard:!0,focus:!0,show:!0},tD={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},tW={HIDE:"hide"+tI,HIDDEN:"hidden"+tI,SHOW:"show"+tI,SHOWN:"shown"+tI,FOCUSIN:"focusin"+tI,RESIZE:"resize"+tI,CLICK_DISMISS:"click.dismiss"+tI,KEYDOWN_DISMISS:"keydown.dismiss"+tI,MOUSEUP_DISMISS:"mouseup.dismiss"+tI,MOUSEDOWN_DISMISS:"mousedown.dismiss"+tI,CLICK_DATA_API:"click"+tI+tS},tL={SCROLLBAR_MEASURER:"modal-scrollbar-measure",BACKDROP:"modal-backdrop",OPEN:"modal-open",FADE:"fade",IN:"in"},tP={DIALOG:".modal-dialog",DATA_TOGGLE:'[data-toggle="modal"]',DATA_DISMISS:'[data-dismiss="modal"]',FIXED_CONTENT:".navbar-fixed-top, .navbar-fixed-bottom, .is-fixed"},tN=function(){function t(o,s){n(this,t),this._config=this._getConfig(s),this._element=o,this._dialog=t$(o).find(tP.DIALOG)[0],this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._originalBodyPadding=0,this._scrollbarWidth=0}return ef(t,[{key:"toggle",value:function(t){return this._isShown?this.hide():this.show(t)}},{key:"show",value:function(t){var o=this,n=t$.Event(tW.SHOW,{relatedTarget:t});t$(this._element).trigger(n),this._isShown||n.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),t$(document.body).addClass(tL.OPEN),this._setEscapeEvent(),this._setResizeEvent(),t$(this._element).on(tW.CLICK_DISMISS,tP.DATA_DISMISS,t$.proxy(this.hide,this)),t$(this._dialog).on(tW.MOUSEDOWN_DISMISS,function(){t$(o._element).one(tW.MOUSEUP_DISMISS,function(t){t$(t.target).is(o._element)&&(o._ignoreBackdropClick=!0)})}),this._showBackdrop(t$.proxy(this._showElement,this,t)))}},{key:"hide",value:function(t){t&&t.preventDefault();var o=t$.Event(tW.HIDE);t$(this._element).trigger(o),this._isShown&&!o.isDefaultPrevented()&&(this._isShown=!1,this._setEscapeEvent(),this._setResizeEvent(),t$(document).off(tW.FOCUSIN),t$(this._element).removeClass(tL.IN),t$(this._element).off(tW.CLICK_DISMISS),t$(this._dialog).off(tW.MOUSEDOWN_DISMISS),eg.supportsTransitionEnd()&&t$(this._element).hasClass(tL.FADE)?t$(this._element).one(eg.TRANSITION_END,t$.proxy(this._hideModal,this)).emulateTransitionEnd(t_):this._hideModal())}},{key:"dispose",value:function(){t$.removeData(this._element,tE),t$(window).off(tI),t$(document).off(tI),t$(this._element).off(tI),t$(this._backdrop).off(tI),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._originalBodyPadding=null,this._scrollbarWidth=null}},{key:"_getConfig",value:function(t){return t=t$.extend({},tk,t),eg.typeCheckConfig(tT,t,tD),t}},{key:"_showElement",value:function(t){var o=this,n=eg.supportsTransitionEnd()&&t$(this._element).hasClass(tL.FADE);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.scrollTop=0,n&&eg.reflow(this._element),t$(this._element).addClass(tL.IN),this._config.focus&&this._enforceFocus();var s=t$.Event(tW.SHOWN,{relatedTarget:t}),r=function(){o._config.focus&&o._element.focus(),t$(o._element).trigger(s)};n?t$(this._dialog).one(eg.TRANSITION_END,r).emulateTransitionEnd(t_):r()}},{key:"_enforceFocus",value:function(){var t=this;t$(document).off(tW.FOCUSIN).on(tW.FOCUSIN,function(o){document===o.target||t._element===o.target||t$(t._element).has(o.target).length||t._element.focus()})}},{key:"_setEscapeEvent",value:function(){var t=this;this._isShown&&this._config.keyboard?t$(this._element).on(tW.KEYDOWN_DISMISS,function(o){o.which===tO&&t.hide()}):this._isShown||t$(this._element).off(tW.KEYDOWN_DISMISS)}},{key:"_setResizeEvent",value:function(){this._isShown?t$(window).on(tW.RESIZE,t$.proxy(this._handleUpdate,this)):t$(window).off(tW.RESIZE)}},{key:"_hideModal",value:function(){var t=this;this._element.style.display="none",this._element.setAttribute("aria-hidden","true"),this._showBackdrop(function(){t$(document.body).removeClass(tL.OPEN),t._resetAdjustments(),t._resetScrollbar(),t$(t._element).trigger(tW.HIDDEN)})}},{key:"_removeBackdrop",value:function(){this._backdrop&&(t$(this._backdrop).remove(),this._backdrop=null)}},{key:"_showBackdrop",value:function(t){var o=this,n=t$(this._element).hasClass(tL.FADE)?tL.FADE:"";if(this._isShown&&this._config.backdrop){var s=eg.supportsTransitionEnd()&&n;if(this._backdrop=document.createElement("div"),this._backdrop.className=tL.BACKDROP,n&&t$(this._backdrop).addClass(n),t$(this._backdrop).appendTo(document.body),t$(this._element).on(tW.CLICK_DISMISS,function(t){return o._ignoreBackdropClick?void(o._ignoreBackdropClick=!1):void(t.target===t.currentTarget&&("static"===o._config.backdrop?o._element.focus():o.hide()))}),s&&eg.reflow(this._backdrop),t$(this._backdrop).addClass(tL.IN),!t)return;if(!s)return void t();t$(this._backdrop).one(eg.TRANSITION_END,t).emulateTransitionEnd(tA)}else if(!this._isShown&&this._backdrop){t$(this._backdrop).removeClass(tL.IN);var r=function(){o._removeBackdrop(),t&&t()};eg.supportsTransitionEnd()&&t$(this._element).hasClass(tL.FADE)?t$(this._backdrop).one(eg.TRANSITION_END,r).emulateTransitionEnd(tA):r()}else t&&t()}},{key:"_handleUpdate",value:function(){this._adjustDialog()}},{key:"_adjustDialog",value:function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")}},{key:"_resetAdjustments",value:function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}},{key:"_checkScrollbar",value:function(){this._isBodyOverflowing=document.body.clientWidth<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()}},{key:"_setScrollbar",value:function(){var t=parseInt(t$(tP.FIXED_CONTENT).css("padding-right")||0,10);this._originalBodyPadding=document.body.style.paddingRight||"",this._isBodyOverflowing&&(document.body.style.paddingRight=t+this._scrollbarWidth+"px")}},{key:"_resetScrollbar",value:function(){document.body.style.paddingRight=this._originalBodyPadding}},{key:"_getScrollbarWidth",value:function(){var t=document.createElement("div");t.className=tL.SCROLLBAR_MEASURER,document.body.appendChild(t);var o=t.offsetWidth-t.clientWidth;return document.body.removeChild(t),o}}],[{key:"_jQueryInterface",value:function(o,n){return this.each(function(){var s=t$(this).data(tE),r=t$.extend({},t.Default,t$(this).data(),"object"==typeof o&&o);if(s||(s=new t(this,r),t$(this).data(tE,s)),"string"==typeof o){if(void 0===s[o])throw Error('No method n
5amed "'+o+'"');s[o](n)}else r.show&&s.show(n)})}},{key:"VERSION",get:function(){return tz}},{key:"Default",get:function(){return tk}}]),t}(),t$(document).on(tW.CLICK_DATA_API,tP.DATA_TOGGLE,function(t){var o=this,n=void 0,s=eg.getSelectorFromElement(this);s&&(n=t$(s)[0]);var r=t$(n).data(tE)?"toggle":t$.extend({},t$(n).data(),t$(this).data());"A"===this.tagName&&t.preventDefault();var a=t$(n).one(tW.SHOW,function(t){t.isDefaultPrevented()||a.one(tW.HIDDEN,function(){t$(o).is(":visible")&&o.focus()})});tN._jQueryInterface.call(t$(n),r,this)}),t$.fn[tT]=tN._jQueryInterface,t$.fn[tT].Constructor=tN,t$.fn[tT].noConflict=function(){return t$.fn[tT]=tx,tN._jQueryInterface},tH=jQuery,tR="scrollspy",t9="4.0.0-alpha.3",tM="."+(tB="bs.scrollspy"),tF=".data-api",t0=tH.fn[tR],tV={offset:10,method:"auto",target:""},tj={offset:"number",method:"string",target:"(string|element)"},tG={ACTIVATE:"activate"+tM,SCROLL:"scroll"+tM,LOAD_DATA_API:"load"+tM+tF},tU={DROPDOWN_ITEM:"dropdown-item",DROPDOWN_MENU:"dropdown-menu",NAV_LINK:"nav-link",NAV:"nav",ACTIVE:"active"},t1={DATA_SPY:'[data-spy="scroll"]',ACTIVE:".active",LIST_ITEM:".list-item",LI:"li",LI_DROPDOWN:"li.dropdown",NAV_LINKS:".nav-link",DROPDOWN:".dropdown",DROPDOWN_ITEMS:".dropdown-item",DROPDOWN_TOGGLE:".dropdown-toggle"},tZ={OFFSET:"offset",POSITION:"position"},t2=function(){function t(o,s){n(this,t),this._element=o,this._scrollElement="BODY"===o.tagName?window:o,this._config=this._getConfig(s),this._selector=this._config.target+" "+t1.NAV_LINKS+","+this._config.target+" "+t1.DROPDOWN_ITEMS,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,tH(this._scrollElement).on(tG.SCROLL,tH.proxy(this._process,this)),this.refresh(),this._process()}return ef(t,[{key:"refresh",value:function(){var t=this,o=this._scrollElement!==this._scrollElement.window?tZ.POSITION:tZ.OFFSET,n="auto"===this._config.method?o:this._config.method,s=n===tZ.POSITION?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),tH.makeArray(tH(this._selector)).map(function(t){var o=void 0,r=eg.getSelectorFromElement(t);return r&&(o=tH(r)[0]),o&&(o.offsetWidth||o.offsetHeight)?[tH(o)[n]().top+s,r]:null}).filter(function(t){return t}).sort(function(t,o){return t[0]-o[0]}).forEach(function(o){t._offsets.push(o[0]),t._targets.push(o[1])})}},{key:"dispose",value:function(){tH.removeData(this._element,tB),tH(this._scrollElement).off(tM),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null}},{key:"_getConfig",value:function(t){if("string"!=typeof(t=tH.extend({},tV,t)).target){var o=tH(t.target).attr("id");o||(o=eg.getUID(tR),tH(t.target).attr("id",o)),t.target="#"+o}return eg.typeCheckConfig(tR,t,tj),t}},{key:"_getScrollTop",value:function(){return this._scrollElement===window?this._scrollElement.scrollY:this._scrollElement.scrollTop}},{key:"_getScrollHeight",value:function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}},{key:"_process",value:function(){var t=this._getScrollTop()+this._config.offset,o=this._getScrollHeight(),n=this._config.offset+o-this._scrollElement.offsetHeight;if(this._scrollHeight!==o&&this.refresh(),t>=n){var s=this._targets[this._targets.length-1];this._activeTarget!==s&&this._activate(s)}if(this._activeTarget&&t<this._offsets[0])return this._activeTarget=null,void this._clear();for(var r=this._offsets.length;r--;)this._activeTarget!==this._targets[r]&&t>=this._offsets[r]&&(void 0===this._offsets[r+1]||t<this._offsets[r+1])&&this._activate(this._targets[r])}},{key:"_activate",value:function(t){this._activeTarget=t,this._clear();var o=this._selector.split(","),n=tH((o=o.map(function(o){return o+'[data-target="'+t+'"],'+(o+'[href="')+t+'"]'})).join(","));n.hasClass(tU.DROPDOWN_ITEM)?(n.closest(t1.DROPDOWN).find(t1.DROPDOWN_TOGGLE).addClass(tU.ACTIVE),n.addClass(tU.ACTIVE)):n.parents(t1.LI).find(t1.NAV_LINKS).addClass(tU.ACTIVE),tH(this._scrollElement).trigger(tG.ACTIVATE,{relatedTarget:t})}},{key:"_clear",value:function(){tH(this._selector).filter(t1.ACTIVE).removeClass(tU.ACTIVE)}}],[{key:"_jQueryInterface",value:function(o){return this.each(function(){var n=tH(this).data(tB),s="object"==typeof o&&o||null;if(n||(n=new t(this,s),tH(this).data(tB,n)),"string"==typeof o){if(void 0===n[o])throw Error('No method n
5amed "'+o+'"');n[o]()}})}},{key:"VERSION",get:function(){return t9}},{key:"Default",get:function(){return tV}}]),t}(),tH(window).on(tG.LOAD_DATA_API,function(){for(var t=tH.makeArray(tH(t1.DATA_SPY)),o=t.length;o--;){var n=tH(t[o]);t2._jQueryInterface.call(n,n.data())}}),tH.fn[tR]=t2._jQueryInterface,tH.fn[tR].Constructor=t2,tH.fn[tR].noConflict=function(){return tH.fn[tR]=t0,t2._jQueryInterface},tK=jQuery,t3="tab",tY="4.0.0-alpha.3",tq="."+(tQ="bs.tab"),tX=".data-api",t4=tK.fn[t3],t7=150,t5={HIDE:"hide"+tq,HIDDEN:"hidden"+tq,SHOW:"show"+tq,SHOWN:"shown"+tq,CLICK_DATA_API:"click"+tq+tX},t6={DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active",FADE:"fade",IN:"in"},tJ={A:"a",LI:"li",DROPDOWN:".dropdown",UL:"ul:not(.dropdown-menu)",FADE_CHILD:"> .nav-item .fade, > .fade",ACTIVE:".active",ACTIVE_CHILD:"> .nav-item > .active, > .active",DATA_TOGGLE:'[data-toggle="tab"], [data-toggle="pill"]',DROPDOWN_TOGGLE:".dropdown-toggle",DROPDOWN_ACTIVE_CHILD:"> .dropdown-menu .active"},et=function(){function t(o){n(this,t),this._element=o}return ef(t,[{key:"show",value:function(){var t=this;if(!this._element.parentNode||this._element.parentNode.nodeType!==Node.ELEMENT_NODE||!tK(this._element).hasClass(t6.ACTIVE)){var o=void 0,n=void 0,s=tK(this._element).closest(tJ.UL)[0],r=eg.getSelectorFromElement(this._element);s&&(n=(n=tK.makeArray(tK(s).find(tJ.ACTIVE)))[n.length-1]);var a=tK.Event(t5.HIDE,{relatedTarget:this._element}),l=tK.Event(t5.SHOW,{relatedTarget:n});if(n&&tK(n).trigger(a),tK(this._element).trigger(l),!l.isDefaultPrevented()&&!a.isDefaultPrevented()){r&&(o=tK(r)[0]),this._activate(this._element,s);var h=function(){var o=tK.Event(t5.HIDDEN,{relatedTarget:t._element}),s=tK.Event(t5.SHOWN,{relatedTarget:n});tK(n).trigger(o),tK(t._element).trigger(s)};o?this._activate(o,o.parentNode,h):h()}}}},{key:"dispose",value:function(){tK.removeClass(this._element,tQ),this._element=null}},{key:"_activate",value:function(t,o,n){var s=tK(o).find(tJ.ACTIVE_CHILD)[0],r=n&&eg.supportsTransitionEnd()&&(s&&tK(s).hasClass(t6.FADE)||Boolean(tK(o).find(tJ.FADE_CHILD)[0])),a=tK.proxy(this._transitionComplete,this,t,s,r,n);s&&r?tK(s).one(eg.TRANSITION_END,a).emulateTransitionEnd(t7):a(),s&&tK(s).removeClass(t6.IN)}},{key:"_transitionComplete",value:function(t,o,n,s){if(o){tK(o).removeClass(t6.ACTIVE);var r=tK(o).find(tJ.DROPDOWN_ACTIVE_CHILD)[0];r&&tK(r).removeClass(t6.ACTIVE),o.setAttribute("aria-expanded",!1)}if(tK(t).addClass(t6.ACTIVE),t.setAttribute("aria-expanded",!0),n?(eg.reflow(t),tK(t).addClass(t6.IN)):tK(t).removeClass(t6.FADE),t.parentNode&&tK(t.parentNode).hasClass(t6.DROPDOWN_MENU)){var a=tK(t).closest(tJ.DROPDOWN)[0];a&&tK(a).find(tJ.DROPDOWN_TOGGLE).addClass(t6.ACTIVE),t.setAttribute("aria-expanded",!0)}s&&s()}}],[{key:"_jQueryInterface",value:function(o){return this.each(function(){var n=tK(this),s=n.data(tQ);if(s||(s=s=new t(this),n.data(tQ,s)),"string"==typeof o){if(void 0===s[o])throw Error('No method named "'+o+'"');s[o]()}})}},{key:"VERSION",get:function(){return tY}}]),t}(),tK(document).on(t5.CLICK_DATA_API,tJ.DATA_TOGGLE,function(t){t.preventDefault(),et._jQueryInterface.call(tK(this),"show")}),tK.fn[t3]=et._jQueryInterface,tK.fn[t3].Constructor=et,tK.fn[t3].noConflict=function(){return tK.fn[t3]=t4,et._jQueryInterface},function(t){if(void 0===window.Tether)throw Error("Bootstrap tooltips require Tether (http://github.hubspot.com/tether/)");var o="tooltip",s="4.0.0-alpha.3",r="bs.tooltip",a="."+r,l=t.fn[o],h=150,c="bs-tether",d={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:"0 0",constraints:[]},p={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"string",constraints:"array"},f={TOP:"bottom center",RIGHT:"middle left",BOTTOM:"top center",LEFT:"middle right"},g={IN:"in",OUT:"out"},m={HIDE:"hide"+a,HIDDEN:"hidden"+a,SHOW:"show"+a,SHOWN:"shown"+a,INSERTED:"inserted"+a,CLICK:"click"+a,FOCUSIN:"focusin"+a,FOCUSOUT:"focusout"+a,MOUSEENTER:"mouseenter"+a,MOUSELEAVE:"mouseleave"+a},v={FADE:"fade",IN:"in"},y={TOOLTIP:".tooltip",TOOLTIP_INNER:".tooltip-inner"},w={element:!1,enabled:!1},C={HOVER:"hover",FOCUS:"focus",CLICK:"click",MANUAL:"manual"},b=function(){function l(t,o){n(this,l),this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._tether=null,this.element=t,this.config=this._getConfig(o),this.tip=null,this._setListeners()}return ef(l,[{key:"enable",value:function(){this._isEnabled=!0}},{key:"disable",value:function(){this._isEnabled=!1}},{key:"toggleEnabled",value:function(){this._isEnabled=!this._isEnabled}}
5,{key:"toggle",value:function(o){if(o){var n=this.constructor.DATA_KEY,s=t(o.currentTarget).data(n);s||(s=new this.constructor(o.currentTarget,this._getDelegateConfig()),t(o.currentTarget).data(n,s)),s._activeTrigger.click=!s._activeTrigger.click,s._isWithActiveTrigger()?s._enter(null,s):s._leave(null,s)}else{if(t(this.getTipElement()).hasClass(v.IN))return void this._leave(null,this);this._enter(null,this)}}},{key:"dispose",value:function(){clearTimeout(this._timeout),this.cleanupTether(),t.removeData(this.element,this.constructor.DATA_KEY),t(this.element).off(this.constructor.EVENT_KEY),this.tip&&t(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._tether=null,this.element=null,this.config=null,this.tip=null}},{key:"show",value:function(){var o=this,n=t.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){t(this.element).trigger(n);var s=t.contains(this.element.ownerDocument.documentElement,this.element);if(n.isDefaultPrevented()||!s)return;var r=this.getTipElement(),a=eg.getUID(this.constructor.NAME);r.setAttribute("id",a),this.element.setAttribute("aria-describedby",a),this.setContent(),this.config.animation&&t(r).addClass(v.FADE);var h="function"==typeof this.config.placement?this.config.placement.call(this,r,this.element):this.config.placement,d=this._getAttachment(h);t(r).data(this.constructor.DATA_KEY,this).appendTo(document.body),t(this.element).trigger(this.constructor.Event.INSERTED),this._tether=new Tether({attachment:d,element:r,target:this.element,classes:w,classPrefix:c,offset:this.config.offset,constraints:this.config.constraints,addTargetClasses:!1}),eg.reflow(r),this._tether.position(),t(r).addClass(v.IN);var p=function(){var n=o._hoverState;o._hoverState=null,t(o.element).trigger(o.constructor.Event.SHOWN),n===g.OUT&&o._leave(null,o)};if(eg.supportsTransitionEnd()&&t(this.tip).hasClass(v.FADE))return void t(this.tip).one(eg.TRANSITION_END,p).emulateTransitionEnd(l._TRANSITION_DURATION);p()}}},{key:"hide",value:function(o){var n=this,s=this.getTipElement(),r=t.Event(this.constructor.Event.HIDE),a=function(){n._hoverState!==g.IN&&s.parentNode&&s.parentNode.removeChild(s),n.element.removeAttribute("aria-describedby"),t(n.element).trigger(n.constructor.Event.HIDDEN),n.cleanupTether(),o&&o()};t(this.element).trigger(r),r.isDefaultPrevented()||(t(s).removeClass(v.IN),eg.supportsTransitionEnd()&&t(this.tip).hasClass(v.FADE)?t(s).one(eg.TRANSITION_END,a).emulateTransitionEnd(h):a(),this._hoverState="")}},{key:"isWithContent",value:function(){return Boolean(this.getTitle())}},{key:"getTipElement",value:function(){return this.tip=this.tip||t(this.config.template)[0]}},{key:"setContent",value:function(){var o=t(this.getTipElement());this.setElementContent(o.find(y.TOOLTIP_INNER),this.getTitle()),o.removeClass(v.FADE).removeClass(v.IN),this.cleanupTether()}},{key:"setElementContent",value:function(o,n){var s=this.config.html;"object"==typeof n&&(n.nodeType||n.jquery)?s?t(n).parent().is(o)||o.empty().append(n):o.text(t(n).text()):o[s?"html":"text"](n)}},{key:"getTitle",value:function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t}},{key:"cleanupTether",value:function(){this._tether&&this._tether.destroy()}},{key:"_getAttachment",value:function(t){return f[t.toUpperCase()]}},{key:"_setListeners",value:function(){var o=this;this.config.trigger.split(" ").forEach(function(n){if("click"===n)t(o.element).on(o.constructor.Event.CLICK,o.config.selector,t.proxy(o.toggle,o));else if(n!==C.MANUAL){var s=n===C.HOVER?o.constructor.Event.MOUSEENTER:o.constructor.Event.FOCUSIN,r=n===C.HOVER?o.constructor.Event.MOUSELEAVE:o.constructor.Event.FOCUSOUT;t(o.element).on(s,o.config.selector,t.proxy(o._enter,o)).on(r,o.config.selector,t.proxy(o._leave,o))}}),this.config.selector?this.config=t.extend({},this.config,{trigger:"manual",selector:""}):this._fixTitle()}},{key:"_fixTitle",value:function(){var t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))}},{key:"_enter",value:function(o,n){var s=this.constructor.DATA_KEY;return(n=n||t(o.currentTarget).data(s))||(n=new this.constructor(o.currentTarget,this._getDelegateConfig()),t(o.currentTarget).data(s,n)),o&&(n._activeTrigger["focusin"===o.type?C.FOCUS:C.HOVER]=!0),t(n.getTipElement()).hasClass(v.IN)||n._hoverState===g.IN?void(n._hoverState=g.IN):(clearTimeout(n._timeout),n._hoverState=g.IN,n.config.delay&&n.config.delay.show?void(n._timeout=setTimeout(function(){n._hoverState===g.IN&&n.show()},n.config.delay.show)):void n.show())}},{key:"_leave",value:function(o,n){var s=this.constructor.DATA_KEY;if((n=n||t(o.currentTarget).data(s))||(n=new this.constructor(o.currentTarget,this._getDelegateConfig()),t(o.currentTarget).data(s,n)),o&&(n._activeTrigger["focusout"===o.type?C.FOCUS:C.HOVER]=!1),!n._isWithActiveTrigger())return clearTimeout(n._timeout),n._hoverState=g.OUT,n.config.delay&&n.config.delay.hide?void(n._timeout=setTimeout(function(){n._hoverState===g.OUT&&n.hide()},n.config.delay.hide)):void n.hide()}},{key:"_isWithActiveTrigger",value:function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1}},{key:"_getConfig",value:function(n){return(n=t.extend({},this.constructor.Default,t(this.element).data(),n)).delay&&"number"==typeof n.delay&&(n.delay={show:n.delay,hide:n.delay}),eg.typeCheckConfig(o,n,this.constructor.DefaultType),n}},{key:"_getDelegateConfig",value:function(){var t={};if(this.config)for(var o in this.config)this.constructor.Default[o]!==this.config[o]&&(t[o]=this.config[o]);return t}}],[{key:"_jQueryInterface",value:function(o){return this.each(function(){var n=t(this).data(r),s="object"==typeof o?o:null;if((n||!/destroy|hide/.test(o))&&(n||(n=new l(this,s),t(this).data(r,n)),"string"==typeof o)){if(void 0===n[o])throw Error('No method n
5amed "'+o+'"');n[o]()}})}},{key:"VERSION",get:function(){return s}},{key:"Default",get:function(){return d}},{key:"NAME",get:function(){return o}},{key:"DATA_KEY",get:function(){return r}},{key:"Event",get:function(){return m}},{key:"EVENT_KEY",get:function(){return a}},{key:"DefaultType",get:function(){return p}}]),l}();return t.fn[o]=b._jQueryInterface,t.fn[o].Constructor=b,t.fn[o].noConflict=function(){return t.fn[o]=l,b._jQueryInterface},b}(jQuery));ee=jQuery,ei="popover",eo="4.0.0-alpha.3",es="."+(en="bs.popover"),er=ee.fn[ei],ea=ee.extend({},em.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),el=ee.extend({},em.DefaultType,{content:"(string|element|function)"}),eh={FADE:"fade",IN:"in"},ec={TITLE:".popover-title",CONTENT:".popover-content",ARROW:".popover-arrow"},ed={HIDE:"hide"+es,HIDDEN:"hidden"+es,SHOW:"show"+es,SHOWN:"shown"+es,INSERTED:"inserted"+es,CLICK:"click"+es,FOCUSIN:"focusin"+es,FOCUSOUT:"focusout"+es,MOUSEENTER:"mouseenter"+es,MOUSELEAVE:"mouseleave"+es},eu=function(t){function s(){n(this,s),ep(Object.getPrototypeOf(s.prototype),"constructor",this).apply(this,arguments)}return o(s,t),ef(s,[{key:"isWithContent",value:function(){return this.getTitle()||this._getContent()}},{key:"getTipElement",value:function(){return this.tip=this.tip||ee(this.config.template)[0]}},{key:"setContent",value:function(){var t=ee(this.getTipElement());this.setElementContent(t.find(ec.TITLE),this.getTitle()),this.setElementContent(t.find(ec.CONTENT),this._getContent()),t.removeClass(eh.FADE).removeClass(eh.IN),this.cleanupTether()}},{key:"_getContent",value:function(){return this.element.getAttribute("data-content")||("function"==typeof this.config.content?this.config.content.call(this.element):this.config.content)}}],[{key:"_jQueryInterface",value:function(t){return this.each(function(){var o=ee(this).data(en),n="object"==typeof t?t:null;if((o||!/destroy|hide/.test(t))&&(o||(o=new s(this,n),ee(this).data(en,o)),"string"==typeof t)){if(void 0===o[t])throw Error('No method named "'+t+'"');o[t]()}})}},{key:"VERSION",get:function(){return eo}},{key:"Default",get:function(){return ea}},{key:"NAME",get:function(){return ei}},{key:"DATA_KEY",get:function(){return en}},{key:"Event",get:function(){return ed}},{key:"EVENT_KEY",get:function(){return es}},{key:"DefaultType",get:function(){return el}}]),s}(em),ee.fn[ei]=eu._jQueryInterface,ee.fn[ei].Constructor=eu,ee.fn[ei].noConflict=function(){return ee.fn[ei]=er,eu._jQueryInterface}}(jQuery),function(t,o,n,s){function r(o,n){this.settings=null,this.options=t.extend({},r.Defaults,n),this.$element=t(o),this._handlers={},this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._widths=[],this._invalidated={},this._pipe=[],this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null},this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}},t.each(["onResize","onThrottledResize"],t.proxy(function(o,n){this._handlers[n]=t.proxy(this[n],this)},this)),t.each(r.Plugins,t.proxy(function(t,o){this._plugins[t.charAt(0).toLowerCase()+t.slice(1)]=new o(this)},this)),t.each(r.Workers,t.proxy(function(o,n){this._pipe.push({filter:n.filter,run:t.proxy(n.run,this)})},this)),this.setup(),this.initialize()}r.Defaults={items:3,loop:!1,center:!1,rewind:!1,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:o,fallbackEasing:"swing",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",refreshClass:"owl-refresh",loadedClass:"owl-loaded",loadingClass:"owl-loading",rtlClass:"owl-rtl",responsiveClass:"owl-responsive",dragClass:"owl-drag",itemClass:"owl-item",stageClass:"owl-stage",stageOuterClass:"owl-stage-outer",grabClass:"owl-grab"},r.Width={Default:"default",Inner:"inner",Outer:"outer"},r.Type={Event:"event",State:"state"},r.Plugins={},r.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(t){t.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){this.$stage.children(".cloned").remove()}},{filter:["width","items","settings"],run:function(t){var o=this.settings.margin||"",n=!this.settings.autoWidth,s=this.settings.rtl,r={width:"auto","margin-left":s?o:"","margin-right":s?"":o};n||this.$stage.children().css(r),t.css=r}},{filter:["width","items","settings"],run:function(t){var o=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,n=null,s=this._items.length,r=!this.settings.autoWidth,a=[];for(t.items={merge:!1,width:o};s--;)n=this._mergers[s],n=this.settings.mergeFit&&Math.min(n,this.settings.items)||n,t.items.merge=n>1||t.items.merge,a[s]=r?o*n:this._items[s].width();this._widths=a}},{filter:["items","settings"],run:function(){var o=[],n=this._items,s=this.settings,r=Math.max(2*s.items,4),a=2*Math.ceil(n.length/2),l=s.loop&&n.length?s.rewind?r:Math.max(r,a):0,h="",c="";for(l/=2;l--;)o.push(this.normalize(o.length/2,!0)),h+=n[o[o.length-1]][0].outerHTML,o.push(this.normalize(n.length-1-(o.length-1)/2,!0)),c=n[o[o.length-1]][0].outerHTML+c;this._clones=o,t(h).addClass("cloned").appendTo(this.$stage),t(c).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var t=this.settings.rtl?1:-1,o=this._clones.length+this._items.length,n=-1,s=0,r=0,a=[];++n<o;)a.push((s=a[n-1]||0)+(r=this._widths[this.relative(n)]+this.settings.margin)*t);this._coordinates=a}},{filter:["width","items","settings"],run:function(){var t=this.settings.stagePadding,o=this._coordinates,n={width:Math.ceil(Math.abs(o[o.length-1]))+2*t,"padding-left":t||"","padding-right":t||""};this.$stage.css(n)}},{filter:["width","items","settings"],run:function(t){var o=this._coordinates.length,n=!this.settings.autoWidth,s=this.$stage.children();if(n&&t.items.merge)for(;o--;)t.css.width=this._widths[this.relative(o)],s.eq(o).css(t.css);else n&&(t.css.width=t.items.width,s.css(t.css))}},{filter:["items"],run:function(){this._coordinates.length<1&&this.$stage.removeAttr("style")}},{filter:["width","items","settings"],run:function(t){t.current=t.current?this.$stage.children().index(t.current):0,t.current=Math.max(this.minimum(),Math.min(this.maximum(),t.current)),this.reset(t.current)}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var t,o,n,s,r=this.settings.rtl?1:-1,a=2*this.settings.stagePadding,l=this.coordinates(this.current())+a,h=l+this.width()*r,c=[];for(n=0,s=this._coordinates.length;n<s;n++)t=this._coordinates[n-1]||0,o=Math.abs(this._coordinates[n])+a*r,(this.op(t,"<=",l)&&this.op(t,">",h)||this.op(o,"<",l)&&this.op(o,">",h))&&c.push(n);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+c.join("), :eq(")+")").addClass("active"),this.settings.center&&(this.$stage.children(".center").removeClass("center"),this.$stage.children().eq(this.current()).addClass("center"))}}],r.prototype.initialize=function(){if(this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading")){var o,n,r;o=this.$element.find("img"),n=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:s,r=this.$element.children(n).width(),o.length&&r<=0&&this.preloadAutoWidthImages(o)}this.$element.addClass(this.options.loadingClass),this.$stage=t("<"+this.settings.stageElement+' class="'+this.settings.stageClass+'"/>').wrap('<div class="'+this.settings.stageOuterClass+'"/>'),this.$element.append(this.$stage.parent()),this.replace(this.$element.children().not(this.$stage.parent())),this.$element.is(":visible")?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},r.prototype.setup=function(){var o=this.viewport(),n=this.options.responsive,s=-1,r=null;n?(t.each(n,function(t){t<=o&&t>s&&(s=Number(t))}),"function"==typeof(r=t.extend({},this.options,n[s])).stagePadding&&(r.stagePadding=r.stagePadding()),delete r.responsive,r.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+s))):r=t.extend({},this.options),this.trigger("change",{property:{name:"settings",value:r}}),this._breakpoint=s,this.settings=r,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},r.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},r.prototype.prepare=function(o){var n=this.trigger("prepare",{content:o});return n.data||(n.data=t("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(o)),this.trigger("prepared",{content:n.data}),n.data},r.prototype.update=function(){for(var o=0,n=this._pipe.length,s=t.proxy(function(t){return this[t]},this._invalidated),r={};o<n;)(this._invalidated.all||t.grep(this._pipe[o].filter,s).length>0)&&this._pipe[o].run(r),o++;this._invalidated={},this.is("valid")||this.enter("valid")},r.prototype.width=function(t){switch(t=t||r.Width.Default){case r.Width.Inner:case r.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},r.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave("refreshing"),this.trigger("refreshed")},r.prototype.onThrottledResize=function(){o.clearTimeout(this.resizeTimer),this.resizeTimer=o.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},r.prototype.onResize=function(){return!!this._items.length&&this._width!==this.$element.width()&&!!this.$element.is(":visible")&&(this.enter("resizing"),this.trigger("resize").isDefaultPrevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized")))},r.prototype.registerEventHandlers=function(){t.support.transition&&this.$stage.on(t.support.transition.end+".owl.core",t.proxy(this.onTransitionEnd,this)),!1!==this.settings.responsive&&this.on(o,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",t.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",function(){return!1})),this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",t.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",t.proxy(this.onDragEnd,this)))},r.prototype.onDragStart=function(o){var s=null;
vendor: 10,818 bytes, line 5
53!==o.which&&(t.support.transform?s={x:(s=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","))[16===s.length?12:4],y:s[16===s.length?13:5]}:(s=this.$stage.position(),s={x:this.settings.rtl?s.left+this.$stage.width()-this.width()+this.settings.margin:s.left,y:s.top}),this.is("animating")&&(t.support.transform?this.animate(s.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===o.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=t(o.target),this._drag.stage.start=s,this._drag.stage.current=s,this._drag.pointer=this.pointer(o),t(n).on("mouseup.owl.core touchend.owl.core",t.proxy(this.onDragEnd,this)),t(n).one("mousemove.owl.core touchmove.owl.core",t.proxy(function(o){var s=this.difference(this._drag.pointer,this.pointer(o));t(n).on("mousemove.owl.core touchmove.owl.core",t.proxy(this.onDragMove,this)),Math.abs(s.x)<Math.abs(s.y)&&this.is("valid")||(o.preventDefault(),this.enter("dragging"),this.trigger("drag"))},this)))},r.prototype.onDragMove=function(t){var o=null,n=null,s=null,r=this.difference(this._drag.pointer,this.pointer(t)),a=this.difference(this._drag.stage.start,r);this.is("dragging")&&(t.preventDefault(),this.settings.loop?(o=this.coordinates(this.minimum()),n=this.coordinates(this.maximum()+1)-o,a.x=((a.x-o)%n+n)%n+o):(o=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),n=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),s=this.settings.pullDrag?-1*r.x/5:0,a.x=Math.max(Math.min(a.x,o+s),n+s)),this._drag.stage.current=a,this.animate(a.x))},r.prototype.onDragEnd=function(o){var s=this.difference(this._drag.pointer,this.pointer(o)),r=this._drag.stage.current,a=s.x>0^this.settings.rtl?"left":"right";t(n).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(0!==s.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(r.x,0!==s.x?a:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=a,(Math.abs(s.x)>3||(new Date).getTime()-this._drag.time>300)&&this._drag.target.one("click.owl.core",function(){return!1})),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},r.prototype.closest=function(o,n){var s=-1,r=30,a=this.width(),l=this.coordinates();return this.settings.freeDrag||t.each(l,t.proxy(function(t,h){return"left"===n&&o>h-r&&o<h+r?s=t:"right"===n&&o>h-a-r&&o<h-a+r?s=t+1:this.op(o,"<",h)&&this.op(o,">",l[t+1]||h-a)&&(s="left"===n?t+1:t),-1===s},this)),this.settings.loop||(this.op(o,">",l[this.minimum()])?s=o=this.minimum():this.op(o,"<",l[this.maximum()])&&(s=o=this.maximum())),s},r.prototype.animate=function(o){var n=this.speed()>0;this.is("animating")&&this.onTransitionEnd(),n&&(this.enter("animating"),this.trigger("translate")),t.support.transform3d&&t.support.transition?this.$stage.css({transform:"translate3d("+o+"px,0px,0px)",transition:this.speed()/1e3+"s"}):n?this.$stage.animate({left:o+"px"},this.speed(),this.settings.fallbackEasing,t.proxy(this.onTransitionEnd,this)):this.$stage.css({left:o+"px"})},r.prototype.is=function(t){return this._states.current[t]&&this._states.current[t]>0},r.prototype.current=function(t){if(t===s)return this._current;if(0===this._items.length)return s;if(t=this.normalize(t),this._current!==t){var o=this.trigger("change",{property:{name:"position",value:t}});o.data!==s&&(t=this.normalize(o.data)),this._current=t,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},r.prototype.invalidate=function(o){return"string"===t.type(o)&&(this._invalidated[o]=!0,this.is("valid")&&this.leave("valid")),t.map(this._invalidated,function(t,o){return o})},r.prototype.reset=function(t){(t=this.normalize(t))!==s&&(this._speed=0,this._current=t,this.suppress(["translate","translated"]),this.animate(this.coordinates(t)),this.release(["translate","translated"]))},r.prototype.normalize=function(t,o){var n=this._items.length,r=o?0:this._clones.length;return!this.isNumeric(t)||n<1?t=s:(t<0||t>=n+r)&&(t=((t-r/2)%n+n)%n+r/2),t},r.prototype.relative=function(t){return t-=this._clones.length/2,this.normalize(t,!0)},r.prototype.maximum=function(t){var o,n,s,r=this.settings,a=this._coordinates.length;if(r.loop)a=this._clones.length/2+this._items.length-1;else if(r.autoWidth||r.merge){for(o=this._items.length,n=this._items[--o].width(),s=this.$element.width();o--&&!((n+=this._items[o].width()+this.settings.margin)>s););a=o+1}else a=r.center?this._items.length-1:this._items.length-r.items;return t&&(a-=this._clones.length/2),Math.max(a,0)},r.prototype.minimum=function(t){return t?0:this._clones.length/2},r.prototype.items=function(t){return t===s?this._items.slice():(t=this.normalize(t,!0),this._items[t])},r.prototype.mergers=function(t){return t===s?this._mergers.slice():(t=this.normalize(t,!0),this._mergers[t])},r.prototype.clones=function(o){var n=this._clones.length/2,r=n+this._items.length,a=function(t){return t%2==0?r+t/2:n-(t+1)/2};return o===s?t.map(this._clones,function(t,o){return a(o)}):t.map(this._clones,function(t,n){return t===o?a(n):null})},r.prototype.speed=function(t){return t!==s&&(this._speed=t),this._speed},r.prototype.coordinates=function(o){var n,r=1,a=o-1;return o===s?t.map(this._coordinates,t.proxy(function(t,o){return this.coordinates(o)},this)):(this.settings.center?(this.settings.rtl&&(r=-1,a=o+1),n=this._coordinates[o],n+=(this.width()-n+(this._coordinates[a]||0))/2*r):n=this._coordinates[a]||0,n=Math.ceil(n))},r.prototype.duration=function(t,o,n){return 0===n?0:Math.min(Math.max(Math.abs(o-t),1),6)*Math.abs(n||this.settings.smartSpeed)},r.prototype.to=function(t,o){var n=this.current(),s=null,r=t-this.relative(n),a=(r>0)-(r<0),l=this._items.length,h=this.minimum(),c=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(r)>l/2&&(r+=-1*a*l),(s=(((t=n+r)-h)%l+l)%l+h)!==t&&s-r<=c&&s-r>0&&(n=s-r,t=s,this.reset(n))):this.settings.rewind?(c+=1,t=(t%c+c)%c):t=Math.max(h,Math.min(c,t)),this.speed(this.duration(n,t,o)),this.current(t),this.$element.is(":visible")&&this.update()},r.prototype.next=function(t){t=t||!1,this.to(this.relative(this.current())+1,t)},r.prototype.prev=function(t){t=t||!1,this.to(this.relative(this.current())-1,t)},r.prototype.onTransitionEnd=function(t){if(t!==s&&(t.stopPropagation(),(t.target||t.srcElement||t.originalTarget)!==this.$stage.get(0)))return!1;this.leave("animating"),this.trigger("translated")},r.prototype.viewport=function(){var s;return this.options.responsiveBaseElement!==o?s=t(this.options.responsiveBaseElement).width():o.innerWidth?s=o.innerWidth:n.documentElement&&n.documentElement.clientWidth?s=n.documentElement.clientWidth:console.warn("Can not detect viewport width."),s},r.prototype.replace=function(o){this.$stage.empty(),this._items=[],o&&(o=o instanceof jQuery?o:t(o)),this.settings.nestedItemSelector&&(o=o.find("."+this.settings.nestedItemSelector)),o.filter(function(){return 1===this.nodeType}).each(t.proxy(function(t,o){o=this.prepare(o),this.$stage.append(o),this._items.push(o),this._mergers.push(1*o.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)},this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},r.prototype.add=function(o,n){var r=this.relative(this._current);n=n===s?this._items.length:this.normalize(n,!0),o=o instanceof jQuery?o:t(o),this.trigger("add",{content:o,position:n}),o=this.prepare(o),0===this._items.length||n===this._items.length?(0===this._items.length&&this.$stage.append(o),0!==this._items.length&&this._items[n-1].after(o),this._items.push(o),this._mergers.push(1*o.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[n].before(o),this._items.splice(n,0,o),this._mergers.splice(n,0,1*o.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this._items[r]&&this.reset(this._items[r].index()),this.invalidate("items"),this.trigger("added",{content:o,position:n})},r.prototype.remove=function(t){(t=this.normalize(t,!0))!==s&&(this.trigger("remove",{content:this._items[t],position:t}),this._items[t].remove(),this._items.splice(t,1),this._mergers.splice(t,1),this.invalidate("items"),this.trigger("removed",{content:null,position:t}))},r.prototype.preloadAutoWidthImages=function(o){o.each(t.proxy(function(o,n){this.enter("pre-loading"),n=t(n),t(new Image).one("load",t.proxy(function(t){n.attr("src",t.target.src),n.css("opacity",1),this.leave("pre-loading"),this.is("pre-loading")||this.is("initializing")||this.refresh()},this)).attr("src",n.attr("src")||n.attr("data-src")||n.attr("data-src-retina"))},this))},r.prototype.destroy=function(){for(var s in this.$element.off(".owl.core"),this.$stage.off(".owl.core"),t(n).off(".owl.core"),!1!==this.settings.responsive&&(o.clearTimeout(this.resizeTimer),this.off(o,"resize",this._handlers.onThrottledResize)),this._plugins)this._plugins[s].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")},r.prototype.op=function(t,o,n){var s=this.settings.rtl;switch(o){case"<":return s?t>n:t<n;case">":return s?t<n:t>n;case">=":return s?t<=n:t>=n;case"<=":return s?t>=n:t<=n}},r.prototype.on=function(t,o,n,s){t.addEventListener?t.addEventListener(o,n,s):t.attachEvent&&t.attachEvent("on"+o,n)},r.prototype.off=function(t,o,n,s){t.removeEventListener?t.removeEventListener(o,n,s):t.detachEvent&&t.detachEvent("on"+o,n)},r.prototype.trigger=function(o,n,s,a,l){var h={item:{count:this._items.length,index:this.current()}},c=t.camelCase(t.grep(["on",o,s],function(t){return t}).join("-").toLowerCase()),d=t.Event([o,"owl",s||"carousel"].join(".").toLowerCase(),t.extend({relatedTarget:this},h,n));return this._supress[o]||(t.each(this._plugins,function(t,o){o.onTrigger&&o.onTrigger(d)}),this.register({type:r.Type.Event,name:o}),this.$element.trigger(d),this.settings&&"function"==typeof this.settings[c]&&this.settings[c].call(this,d)),d},r.prototype.enter=function(o){t.each([o].concat(this._states.tags[o]||[]),t.proxy(function(t,o){this._states.current[o]===s&&(this._states.current[o]=0),this._states.current[o]++},this))},r.prototype.leave=function(o){t.each([o].concat(this._states.tags[o]||[]),t.proxy(function(t,o){this._states.current[o]--},this))}
vendor: 6,699 bytes, line 5
5,r.prototype.register=function(o){if(o.type===r.Type.Event){if(t.event.special[o.name]||(t.event.special[o.name]={}),!t.event.special[o.name].owl){var n=t.event.special[o.name]._default;t.event.special[o.name]._default=function(t){return n&&n.apply&&(!t.namespace||-1===t.namespace.indexOf("owl"))?n.apply(this,arguments):t.namespace&&t.namespace.indexOf("owl")>-1},t.event.special[o.name].owl=!0}}else o.type===r.Type.State&&(this._states.tags[o.name]?this._states.tags[o.name]=this._states.tags[o.name].concat(o.tags):this._states.tags[o.name]=o.tags,this._states.tags[o.name]=t.grep(this._states.tags[o.name],t.proxy(function(n,s){return t.inArray(n,this._states.tags[o.name])===s},this)))},r.prototype.suppress=function(o){t.each(o,t.proxy(function(t,o){this._supress[o]=!0},this))},r.prototype.release=function(o){t.each(o,t.proxy(function(t,o){delete this._supress[o]},this))},r.prototype.pointer=function(t){var n={x:null,y:null};return(t=(t=t.originalEvent||t||o.event).touches&&t.touches.length?t.touches[0]:t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t).pageX?(n.x=t.pageX,n.y=t.pageY):(n.x=t.clientX,n.y=t.clientY),n},r.prototype.isNumeric=function(t){return!isNaN(parseFloat(t))},r.prototype.difference=function(t,o){return{x:t.x-o.x,y:t.y-o.y}},t.fn.owlCarousel=function(o){var n=Array.prototype.slice.call(arguments,1);return this.each(function(){var s=t(this),a=s.data("owl.carousel");a||(a=new r(this,"object"==typeof o&&o),s.data("owl.carousel",a),t.each(["next","prev","to","destroy","refresh","replace","add","remove"],function(o,n){a.register({type:r.Type.Event,name:n}),a.$element.on(n+".owl.carousel.core",t.proxy(function(t){t.namespace&&t.relatedTarget!==this&&(this.suppress([n]),a[n].apply(this,[].slice.call(arguments,1)),this.release([n]))},a))})),"string"==typeof o&&"_"!==o.charAt(0)&&a[o].apply(a,n)})},t.fn.owlCarousel.Constructor=r}(window.Zepto||window.jQuery,window,document),function(t,o,n,s){var r=function(o){this._core=o,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.autoRefresh&&this.watch()},this)},this._core.options=t.extend({},r.Defaults,this._core.options),this._core.$element.on(this._handlers)};r.Defaults={autoRefresh:!0,autoRefreshInterval:500},r.prototype.watch=function(){this._interval||(this._visible=this._core.$element.is(":visible"),this._interval=o.setInterval(t.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},r.prototype.refresh=function(){this._core.$element.is(":visible")!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh())},r.prototype.destroy=function(){var t,n;for(t in o.clearInterval(this._interval),this._handlers)this._core.$element.off(t,this._handlers[t]);for(n in Object.getOwnPropertyNames(this))"function"!=typeof this[n]&&(this[n]=null)},t.fn.owlCarousel.Constructor.Plugins.AutoRefresh=r}(window.Zepto||window.jQuery,window,document),function(t,o,n,s){var r=function(o){this._core=o,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":t.proxy(function(o){if(o.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(o.property&&"position"==o.property.name||"initialized"==o.type))for(var n=this._core.settings,s=n.center&&Math.ceil(n.items/2)||n.items,r=n.center&&-1*s||0,a=(o.property&&void 0!==o.property.value?o.property.value:this._core.current())+r,l=this._core.clones().length,h=t.proxy(function(t,o){this.load(o)},this);r++<s;)this.load(l/2+this._core.relative(a)),l&&t.each(this._core.clones(this._core.relative(a)),h),a++},this)},this._core.options=t.extend({},r.Defaults,this._core.options),this._core.$element.on(this._handlers)};r.Defaults={lazyLoad:!1},r.prototype.load=function(n){var s=this._core.$stage.children().eq(n),r=s&&s.find(".owl-lazy");!r||t.inArray(s.get(0),this._loaded)>-1||(r.each(t.proxy(function(n,s){var r,a=t(s),l=o.devicePixelRatio>1&&a.attr("data-src-retina")||a.attr("data-src");this._core.trigger("load",{element:a,url:l},"lazy"),a.is("img")?a.one("load.owl.lazy",t.proxy(function(){a.css("opacity",1),this._core.trigger("loaded",{element:a,url:l},"lazy")},this)).attr("src",l):((r=new Image).onload=t.proxy(function(){a.css({"background-image":'url("'+l+'")',opacity:"1"}),this._core.trigger("loaded",{element:a,url:l},"lazy")},this),r.src=l)},this)),this._loaded.push(s.get(0)))},r.prototype.destroy=function(){var t,o;for(t in this.handlers)this._core.$element.off(t,this.handlers[t]);for(o in Object.getOwnPropertyNames(this))"function"!=typeof this[o]&&(this[o]=null)},t.fn.owlCarousel.Constructor.Plugins.Lazy=r}(window.Zepto||window.jQuery,window,document),function(t,o,n,s){var r=function(o){this._core=o,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&"position"==t.property.name&&this.update()},this),"loaded.owl.lazy":t.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&t.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()},this)},this._core.options=t.extend({},r.Defaults,this._core.options),this._core.$element.on(this._handlers)};r.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},r.prototype.update=function(){var o=this._core._current,n=o+this._core.settings.items,s=this._core.$stage.children().toArray().slice(o,n),r=[],a=0;t.each(s,function(o,n){r.push(t(n).height())}),a=Math.max.apply(null,r),this._core.$stage.parent().height(a).addClass(this._core.settings.autoHeightClass)},r.prototype.destroy=function(){var t,o;for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(o in Object.getOwnPropertyNames(this))"function"!=typeof this[o]&&(this[o]=null)},t.fn.owlCarousel.Constructor.Plugins.AutoHeight=r}(window.Zepto||window.jQuery,window,document),function(t,o,n,s){var r=function(o){this._core=o,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":t.proxy(function(t){t.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})},this),"resize.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.video&&this.isInFullScreen()&&t.preventDefault()},this),"refreshed.owl.carousel":t.proxy(function(t){t.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()},this),"changed.owl.carousel":t.proxy(function(t){t.namespace&&"position"===t.property.name&&this._playing&&this.stop()}
vendor: 14,060 bytes, line 5
5,this),"prepared.owl.carousel":t.proxy(function(o){if(o.namespace){var n=t(o.content).find(".owl-video");n.length&&(n.css("display","none"),this.fetch(n,t(o.content)))}},this)},this._core.options=t.extend({},r.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",t.proxy(function(t){this.play(t)},this))};r.Defaults={video:!1,videoHeight:!1,videoWidth:!1},r.prototype.fetch=function(t,o){var n=t.attr("data-vimeo-id")?"vimeo":t.attr("data-vzaar-id")?"vzaar":"youtube",s=t.attr("data-vimeo-id")||t.attr("data-youtube-id")||t.attr("data-vzaar-id"),r=t.attr("data-width")||this._core.settings.videoWidth,a=t.attr("data-height")||this._core.settings.videoHeight,l=t.attr("href");if(!l)throw Error("Missing video URL.");if((s=l.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/))[3].indexOf("youtu")>-1)n="youtube";else if(s[3].indexOf("vimeo")>-1)n="vimeo";else{if(!(s[3].indexOf("vzaar")>-1))throw Error("Video URL not supported.");n="vzaar"}s=s[6],this._videos[l]={type:n,id:s,width:r,height:a},o.attr("data-video",l),this.thumbnail(t,this._videos[l])},r.prototype.thumbnail=function(o,n){var s,r,a,l=n.width&&n.height?'style="width:'+n.width+"px;height:"+n.height+'px;"':"",h=o.find("img"),c="src",d="",p=this._core.settings,f=function(t){r='<div class="owl-video-play-icon"></div>',s=p.lazyLoad?'<div class="owl-video-tn '+d+'" '+c+'="'+t+'"></div>':'<div class="owl-video-tn" style="opacity:1;background-image:url('+t+')"></div>',o.after(s),o.after(r)};if(o.wrap('<div class="owl-video-wrapper"'+l+"></div>"),this._core.settings.lazyLoad&&(c="data-src",d="owl-lazy"),h.length)return f(h.attr(c)),h.remove(),!1;"youtube"===n.type?f(a="//img.youtube.com/vi/"+n.id+"/hqdefault.jpg"):"vimeo"===n.type?t.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+n.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){f(a=t[0].thumbnail_large)}}):"vzaar"===n.type&&t.ajax({type:"GET",url:"//vzaar.com/api/videos/"+n.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){f(a=t.framegrab_url)}})},r.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},r.prototype.play=function(o){var n,s=t(o.target).closest("."+this._core.settings.itemClass),r=this._videos[s.attr("data-video")],a=r.width||"100%",l=r.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),s=this._core.items(this._core.relative(s.index())),this._core.reset(s.index()),"youtube"===r.type?n='<iframe width="'+a+'" height="'+l+'" src="//www.youtube.com/embed/'+r.id+"?autoplay=1&rel=0&v="+r.id+'" frameborder="0" allowfullscreen></iframe>':"vimeo"===r.type?n='<iframe src="//player.vimeo.com/video/'+r.id+'?autoplay=1" width="'+a+'" height="'+l+'" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>':"vzaar"===r.type&&(n='<iframe frameborder="0"height="'+l+'"width="'+a+'" allowfullscreen mozallowfullscreen webkitAllowFullScreen src="//view.vzaar.com/'+r.id+'/player?autoplay=true"></iframe>'),t('<div class="owl-video-frame">'+n+"</div>").insertAfter(s.find(".owl-video")),this._playing=s.addClass("owl-video-playing"))},r.prototype.isInFullScreen=function(){var o=n.fullscreenElement||n.mozFullScreenElement||n.webkitFullscreenElement;return o&&t(o).parent().hasClass("owl-video-frame")},r.prototype.destroy=function(){var t,o;for(t in this._core.$element.off("click.owl.video"),this._handlers)this._core.$element.off(t,this._handlers[t]);for(o in Object.getOwnPropertyNames(this))"function"!=typeof this[o]&&(this[o]=null)},t.fn.owlCarousel.Constructor.Plugins.Video=r}(window.Zepto||window.jQuery,window,document),function(t,o,n,s){var r=function(o){this.core=o,this.core.options=t.extend({},r.Defaults,this.core.options),this.swapping=!0,this.previous=s,this.next=s,this.handlers={"change.owl.carousel":t.proxy(function(t){t.namespace&&"position"==t.property.name&&(this.previous=this.core.current(),this.next=t.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":t.proxy(function(t){t.namespace&&(this.swapping="translated"==t.type)},this),"translate.owl.carousel":t.proxy(function(t){t.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};r.Defaults={animateOut:!1,animateIn:!1},r.prototype.swap=function(){if(1===this.core.settings.items&&t.support.animation&&t.support.transition){this.core.speed(0);var o,n=t.proxy(this.clear,this),s=this.core.$stage.children().eq(this.previous),r=this.core.$stage.children().eq(this.next),a=this.core.settings.animateIn,l=this.core.settings.animateOut;this.core.current()!==this.previous&&(l&&(o=this.core.coordinates(this.previous)-this.core.coordinates(this.next),s.one(t.support.animation.end,n).css({left:o+"px"}).addClass("animated owl-animated-out").addClass(l)),a&&r.one(t.support.animation.end,n).addClass("animated owl-animated-in").addClass(a))}},r.prototype.clear=function(o){t(o.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},r.prototype.destroy=function(){var t,o;for(t in this.handlers)this.core.$element.off(t,this.handlers[t]);for(o in Object.getOwnPropertyNames(this))"function"!=typeof this[o]&&(this[o]=null)},t.fn.owlCarousel.Constructor.Plugins.Animate=r}(window.Zepto||window.jQuery,window,document),function(t,o,n,s){var r=function(o){this._core=o,this._timeout=null,this._paused=!1,this._handlers={"changed.owl.carousel":t.proxy(function(t){t.namespace&&"settings"===t.property.name?this._core.settings.autoplay?this.play():this.stop():t.namespace&&"position"===t.property.name&&this._core.settings.autoplay&&this._setAutoPlayInterval()},this),"initialized.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":t.proxy(function(t,o,n){t.namespace&&this.play(o,n)},this),"stop.owl.autoplay":t.proxy(function(t){t.namespace&&this.stop()},this),"mouseover.owl.autoplay":t.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":t.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":t.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":t.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=t.extend({},r.Defaults,this._core.options)};r.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},r.prototype.play=function(t,o){this._paused=!1,this._core.is("rotating")||(this._core.enter("rotating"),this._setAutoPlayInterval())},r.prototype._getNextTimeout=function(s,r){return this._timeout&&o.clearTimeout(this._timeout),o.setTimeout(t.proxy(function(){this._paused||this._core.is("busy")||this._core.is("interacting")||n.hidden||this._core.next(r||this._core.settings.autoplaySpeed)},this),s||this._core.settings.autoplayTimeout)},r.prototype._setAutoPlayInterval=function(){this._timeout=this._getNextTimeout()},r.prototype.stop=function(){this._core.is("rotating")&&(o.clearTimeout(this._timeout),this._core.leave("rotating"))},r.prototype.pause=function(){this._core.is("rotating")&&(this._paused=!0)},r.prototype.destroy=function(){var t,o;for(t in this.stop(),this._handlers)this._core.$element.off(t,this._handlers[t]);for(o in Object.getOwnPropertyNames(this))"function"!=typeof this[o]&&(this[o]=null)},t.fn.owlCarousel.Constructor.Plugins.autoplay=r}(window.Zepto||window.jQuery,window,document),function(t,o,n,s){"use strict";var r=function(o){this._core=o,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":t.proxy(function(o){o.namespace&&this._core.settings.dotsData&&this._templates.push('<div class="'+this._core.settings.dotClass+'">'+t(o.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"</div>")},this),"added.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.splice(t.position,0,this._templates.pop())},this),"remove.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.splice(t.position,1)},this),"changed.owl.carousel":t.proxy(function(t){t.namespace&&"position"==t.property.name&&this.draw()},this),"initialized.owl.carousel":t.proxy(function(t){t.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))},this),"refreshed.owl.carousel":t.proxy(function(t){t.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=t.extend({},r.Defaults,this._core.options),this.$element.on(this._handlers)};r.Defaults={nav:!1,navText:["prev","next"],navSpeed:!1,navElement:"div",navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},r.prototype.initialize=function(){var o,n=this._core.settings;for(o in this._controls.$relative=(n.navContainer?t(n.navContainer):t("<div>").addClass(n.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=t("<"+n.navElement+">").addClass(n.navClass[0]).html(n.navText[0]).prependTo(this._controls.$relative).on("click",t.proxy(function(t){this.prev(n.navSpeed)},this)),this._controls.$next=t("<"+n.navElement+">").addClass(n.navClass[1]).html(n.navText[1]).appendTo(this._controls.$relative).on("click",t.proxy(function(t){this.next(n.navSpeed)},this)),n.dotsData||(this._templates=[t("<div>").addClass(n.dotClass).append(t("<span>")).prop("outerHTML")]),this._controls.$absolute=(n.dotsContainer?t(n.dotsContainer):t("<div>").addClass(n.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","div",t.proxy(function(o){var s=t(o.target).parent().is(this._controls.$absolute)?t(o.target).index():t(o.target).parent().index();o.preventDefault(),this.to(s,n.dotsSpeed)},this)),this._overrides)this._core[o]=t.proxy(this[o],this)},r.prototype.destroy=function(){var t,o,n,s;for(t in this._handlers)this.$element.off(t,this._handlers[t]);for(o in this._controls)this._controls[o].remove();for(s in this.overides)this._core[s]=this._overrides[s];for(n in Object.getOwnPropertyNames(this))"function"!=typeof this[n]&&(this[n]=null)},r.prototype.update=function(){var t,o,n,s=this._core.clones().length/2,r=s+this._core.items().length,a=this._core.maximum(!0),l=this._core.settings,h=l.center||l.autoWidth||l.dotsData?1:l.dotsEach||l.items;if("page"!==l.slideBy&&(l.slideBy=Math.min(l.slideBy,l.items)),l.dots||"page"==l.slideBy)for(this._pages=[],t=s,o=0,n=0;t<r;t++){if(o>=h||0===o){if(this._pages.push({start:Math.min(a,t-s),end:t-s+h-1}),Math.min(a,t-s)===a)break;o=0,++n}o+=this._core.mergers(this._core.relative(t))}},r.prototype.draw=function(){var o,n=this._core.settings,s=this._core.items().length<=n.items,r=this._core.relative(this._core.current()),a=n.loop||n.rewind;this._controls.$relative.toggleClass("disabled",!n.nav||s),n.nav&&(this._controls.$previous.toggleClass("disabled",!a&&r<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!a&&r>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!n.dots||s),n.dots&&(o=this._pages.length-this._controls.$absolute.children().length,n.dotsData&&0!==o?this._controls.$absolute.html(this._templates.join("")):o>0?this._controls.$absolute.append(Array(o+1).join(this._templates[0])):o<0&&this._controls.$absolute.children().slice(o).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq(t.inArray(this.current(),this._pages)).addClass("active"))},r.prototype.onTrigger=function(o){var n=this._core.settings;o.page={index:t.inArray(this.current(),this._pages),count:this._pages.length,size:n&&(n.center||n.autoWidth||n.dotsData?1:n.dotsEach||n.items)}},r.prototype.current=function(){var o=this._core.relative(this._core.current());return t.grep(this._pages,t.proxy(function(t,n){return t.start<=o&&t.end>=o},this)).pop()},r.prototype.getPosition=function(o){var n,s,r=this._core.settings;return"page"==r.slideBy?(n=t.inArray(this.current(),this._pages),s=this._pages.length,o?++n:--n,n=this._pages[(n%s+s)%s].start):(n=this._core.relative(this._core.current()),s=this._core.items().length,o?n+=r.slideBy:n-=r.slideBy),n},r.prototype.next=function(o){t.proxy(this._overrides.to,this._core)(this.getPosition(!0),o)},r.prototype.prev=function(o){t.proxy(this._overrides.to,this._core)(this.getPosition(!1),o)},r.prototype.to=function(o,n,s){var r;!s&&this._pages.length?(r=this._pages.length,t.proxy(this._overrides.to,this._core)(this._pages[(o%r+r)%r].start,n)):t.proxy(this._overrides.to,this._core)(o,n)},t.fn.owlCarousel.Constructor.Plugins.Navigation=r}(window.Zepto||window.jQuery,window,document),function(t,o,n,s){"use strict";var r=function(n){this._core=n,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":t.proxy(function(n){n.namespace&&"URLHash"===this._core.settings.startPosition&&t(o).trigger("hashchange.owl.navigation")}
5,this),"prepared.owl.carousel":t.proxy(function(o){if(o.namespace){var n=t(o.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");n&&(this._hashes[n]=o.content)}},this),"changed.owl.carousel":t.proxy(function(n){if(n.namespace&&"position"===n.property.name){var s=this._core.items(this._core.relative(this._core.current())),r=t.map(this._hashes,function(t,o){return t===s?o:null}).join();r&&o.location.hash.slice(1)!==r&&(o.location.hash=r)}},this)},this._core.options=t.extend({},r.Defaults,this._core.options),this.$element.on(this._handlers),t(o).on("hashchange.owl.navigation",t.proxy(function(t){var n=o.location.hash.substring(1),s=this._core.$stage.children(),r=this._hashes[n]&&s.index(this._hashes[n]);void 0!==r&&r!==this._core.current()&&this._core.to(this._core.relative(r),!1,!0)},this))};r.Defaults={URLhashListener:!1},r.prototype.destroy=function(){var n,s;for(n in t(o).off("hashchange.owl.navigation"),this._handlers)this._core.$element.off(n,this._handlers[n]);for(s in Object.getOwnPropertyNames(this))"function"!=typeof this[s]&&(this[s]=null)},t.fn.owlCarousel.Constructor.Plugins.Hash=r}(window.Zepto||window.jQuery,window,document),function(t,o,n,s){function r(o,n){var s=!1,r=o.charAt(0).toUpperCase()+o.slice(1);return t.each((o+" "+h.join(r+" ")+r).split(" "),function(t,o){if(void 0!==l[o])return s=!n||o,!1}),s}function a(t){return r(t,!0)}var l=t("<support>").get(0).style,h="Webkit Moz O ms".split(" "),c={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}},d={csstransforms:function(){return!!r("transform")},csstransforms3d:function(){return!!r("perspective")},csstransitions:function(){return!!r("transition")},cssanimations:function(){return!!r("animation")}};d.csstransitions()&&(t.support.transition=new String(a("transition")),t.support.transition.end=c.transition.end[t.support.transition]),d.cssanimations()&&(t.support.animation=new String(a("animation")),t.support.animation.end=c.animation.end[t.support.animation]),d.csstransforms()&&(t.support.transform=new String(a("transform")),t.support.transform3d=d.csstransforms3d())}(window.Zepto||window.jQuery,window,document),"function"!=typeof Object.create&&(Object.create=function(t){function o(){}return o.prototype=t,new o}),function(t,o,n,s){var r={init:function(o,n){var s=this;s.elem=n,s.$elem=t(n),s.imageSrc=s.$elem.data("zoom-image")?s.$elem.data("zoom-image"):s.$elem.attr("src"),s.options=t.extend({},t.fn.elevateZoom.options,o),s.options.tint&&(s.options.lensColour="none",s.options.lensOpacity="1"),"inner"==s.options.zoomType&&(s.options.showLens=!1),s.$elem.parent().removeAttr("title").removeAttr("alt"),s.zoomImage=s.imageSrc,s.refresh(1),t("#"+s.options.gallery+" a").click(function(o){return s.options.galleryActiveClass&&(t("#"+s.options.gallery+" a").removeClass(s.options.galleryActiveClass),t(this).addClass(s.options.galleryActiveClass)),o.preventDefault(),t(this).data("zoom-image")?s.zoomImagePre=t(this).data("zoom-image"):s.zoomImagePre=t(this).data("image"),s.swaptheimage(t(this).data("image"),s.zoomImagePre),!1})},refresh:function(t){var o=this;setTimeout(function(){o.fetch(o.imageSrc)},t||o.options.refresh)},fetch:function(t){var o=this,n=new Image;n.onload=function(){o.largeWidth=n.width,o.largeHeight=n.height,o.startZoom(),o.currentImage=o.imageSrc,o.options.onZoomedImageLoaded(o.$elem)},n.src=t},startZoom:function(){var o=this;if(o.nzWidth=o.$elem.width(),o.nzHeight=o.$elem.height(),o.isWindowActive=!1,o.isLensActive=!1,o.isTintActive=!1,o.overWindow=!1,o.options.imageCrossfade&&(o.zoomWrap=o.$elem.wrap('<div style="height:'+o.nzHeight+"px;width:"+o.nzWidth+'px;" class="zoomWrapper" />'),o.$elem.css("position","absolute")),o.zoomLock=1,o.scrollingLock=!1,o.changeBgSize=!1,o.currentZoomLevel=o.options.zoomLevel,o.nzOffset=o.$elem.offset(),o.widthRatio=o.largeWidth/o.currentZoomLevel/o.nzWidth,o.heightRatio=o.largeHeight/o.currentZoomLevel/o.nzHeight,"window"==o.options.zoomType&&(o.zoomWindowStyle="overflow: hidden;background-position: 0px 0px;text-align:center;background-color: "+String(o.options.zoomWindowBgColour)+";width: "+String(o.options.zoomWindowWidth)+"px;height: "+String(o.options.zoomWindowHeight)+"px;float: left;background-size: "+o.largeWidth/o.currentZoomLevel+"px "+o.largeHeight/o.currentZoomLevel+"px;display: none;z-index:100;border: "+String(o.options.borderSize)+"px solid "+o.options.borderColour+";background-repeat: no-repeat;position: absolute;"),"inner"==o.options.zoomType){var n=o.$elem.css("border-left-width");o.zoomWindowStyle="overflow: hidden;margin-left: "+String(n)+";margin-top: "+String(n)+";background-position: 0px 0px;width: "+String(o.nzWidth)+"px;height: "+String(o.nzHeight)+"px;float: left;display: none;cursor:"+o.options.cursor+";px solid "+o.options.borderColour+";background-repeat: no-repeat;position: absolute;"}"window"==o.options.zoomType&&(lensHeight=o.nzHeight<o.options.zoomWindowWidth/o.widthRatio?o.nzHeight:String(o.options.zoomWindowHeight/o.heightRatio),lensWidth=o.largeWidth<o.options.zoomWindowWidth?o.nzWidth:o.options.zoomWindowWidth/o.widthRatio,o.lensStyle="background-position: 0px 0px;width: "+String(o.options.zoomWindowWidth/o.widthRatio)+"px;height: "+String(o.options.zoomWindowHeight/o.heightRatio)+"px;float: right;display: none;overflow: hidden;z-index: 999;-webkit-transform: translateZ(0);opacity:"+o.options.lensOpacity+";filter: alpha(opacity = "+100*o.options.lensOpacity+"); zoom:1;width:"+lensWidth+"px;height:"+lensHeight+"px;background-color:"+o.options.lensColour+";cursor:"+o.options.cursor+";border: "+o.options.lensBorderSize+"px solid "+o.options.lensBorderColour+";background-repeat: no-repeat;position: absolute;"),o.tintStyle="display: block;position: absolute;background-color: "+o.options.tintColour+";filter:alpha(opacity=0);opacity: 0;width: "+o.nzWidth+"px;height: "+o.nzHeight+"px;",o.lensRound="","lens"==o.options.zoomType&&(o.lensStyle="background-position: 0px 0px;float: left;display: none;border: "+String(o.options.borderSize)+"px solid "+o.options.borderColour+";width:"+String(o.options.lensSize)+"px;height:"+String(o.options.lensSize)+"px;background-repeat: no-repeat;position: absolute;"),"round"==o.options.lensShape&&(o.lensRound="border-top-left-radius: "+String(o.options.lensSize/2+o.options.borderSize)+"px;border-top-right-radius: "+String(o.options.lensSize/2+o.options.borderSize)+"px;border-bottom-left-radius: "+String(o.options.lensSize/2+o.options.borderSize)+"px;border-bottom-right-radius: "+String(o.options.lensSize/2+o.options.borderSize)+"px;"),o.zoomContainer=t('<div class="zoomContainer" style="-webkit-transform: translateZ(0);position:absolute;
5left:'+o.nzOffset.left+"px;top:"+o.nzOffset.top+"px;height:"+o.nzHeight+"px;width:"+o.nzWidth+'px;"></div>'),t("body").append(o.zoomContainer),o.options.containLensZoom&&"lens"==o.options.zoomType&&o.zoomContainer.css("overflow","hidden"),"inner"!=o.options.zoomType&&(o.zoomLens=t("<div class='zoomLens' style='"+o.lensStyle+o.lensRound+"'> </div>").appendTo(o.zoomContainer).click(function(){o.$elem.trigger("click")}),o.options.tint&&(o.tintContainer=t("<div/>").addClass("tintContainer"),o.zoomTint=t("<div class='zoomTint' style='"+o.tintStyle+"'></div>"),o.zoomLens.wrap(o.tintContainer),o.zoomTintcss=o.zoomLens.after(o.zoomTint),o.zoomTintImage=t('<img style="position: absolute; left: 0px; top: 0px; max-width: none; width: '+o.nzWidth+"px; height: "+o.nzHeight+'px;" src="'+o.imageSrc+'">').appendTo(o.zoomLens).click(function(){o.$elem.trigger("click")}))),isNaN(o.options.zoomWindowPosition)?o.zoomWindow=t("<div style='z-index:999;left:"+o.windowOffsetLeft+"px;top:"+o.windowOffsetTop+"px;"+o.zoomWindowStyle+"' class='zoomWindow'> </div>").appendTo("body").click(function(){o.$elem.trigger("click")}):o.zoomWindow=t("<div style='z-index:999;left:"+o.windowOffsetLeft+"px;top:"+o.windowOffsetTop+"px;"+o.zoomWindowStyle+"' class='zoomWindow'> </div>").appendTo(o.zoomContainer).click(function(){o.$elem.trigger("click")}),o.zoomWindowContainer=t("<div/>").addClass("zoomWindowContainer").css("width",o.options.zoomWindowWidth),o.zoomWindow.wrap(o.zoomWindowContainer),"lens"==o.options.zoomType&&o.zoomLens.css({backgroundImage:"url('"+o.imageSrc+"')"}),"window"==o.options.zoomType&&o.zoomWindow.css({backgroundImage:"url('"+o.imageSrc+"')"}),"inner"==o.options.zoomType&&o.zoomWindow.css({backgroundImage:"url('"+o.imageSrc+"')"}),o.$elem.bind("touchmove",function(t){t.preventDefault(),o.setPosition(t.originalEvent.touches[0]||t.originalEvent.changedTouches[0])}),o.zoomContainer.bind("touchmove",function(t){"inner"==o.options.zoomType&&o.showHideWindow("show"),t.preventDefault(),o.setPosition(t.originalEvent.touches[0]||t.originalEvent.changedTouches[0])}),o.zoomContainer.bind("touchend",function(t){o.showHideWindow("hide"),o.options.showLens&&o.showHideLens("hide"),o.options.tint&&"inner"!=o.options.zoomType&&o.showHideTint("hide")}),o.$elem.bind("touchend",function(t){o.showHideWindow("hide"),o.options.showLens&&o.showHideLens("hide"),o.options.tint&&"inner"!=o.options.zoomType&&o.showHideTint("hide")}),o.options.showLens&&(o.zoomLens.bind("touchmove",function(t){t.preventDefault(),o.setPosition(t.originalEvent.touches[0]||t.originalEvent.changedTouches[0])}),o.zoomLens.bind("touchend",function(t){o.showHideWindow("hide"),o.options.showLens&&o.showHideLens("hide"),o.options.tint&&"inner"!=o.options.zoomType&&o.showHideTint("hide")})),o.$elem.bind("mousemove",function(t){!1==o.overWindow&&o.setElements("show"),(o.lastX!==t.clientX||o.lastY!==t.clientY)&&(o.setPosition(t),o.currentLoc=t),o.lastX=t.clientX,o.lastY=t.clientY}),o.zoomContainer.bind("mousemove",function(t){!1==o.overWindow&&o.setElements("show"),(o.lastX!==t.clientX||o.lastY!==t.clientY)&&(o.setPosition(t),o.currentLoc=t),o.lastX=t.clientX,o.lastY=t.clientY}),"inner"!=o.options.zoomType&&o.zoomLens.bind("mousemove",function(t){(o.lastX!==t.clientX||o.lastY!==t.clientY)&&(o.setPosition(t),o.currentLoc=t),o.lastX=t.clientX,o.lastY=t.clientY}),o.options.tint&&"inner"!=o.options.zoomType&&o.zoomTint.bind("mousemove",function(t){(o.lastX!==t.clientX||o.lastY!==t.clientY)&&(o.setPosition(t),o.currentLoc=t),o.lastX=t.clientX,o.lastY=t.clientY}),"inner"==o.options.zoomType&&o.zoomWindow.bind("mousemove",function(t){(o.lastX!==t.clientX||o.lastY!==t.clientY)&&(o.setPosition(t),o.currentLoc=t),o.lastX=t.clientX,o.lastY=t.clientY}),o.zoomContainer.add(o.$elem).mouseenter(function(){!1==o.overWindow&&o.setElements("show")}).mouseleave(function(){o.scrollLock||o.setElements("hide")}),"inner"!=o.options.zoomType&&o.zoomWindow.mouseenter(function(){o.overWindow=!0,o.setElements("hide")}).mouseleave(function(){o.overWindow=!1}),o.minZoomLevel=o.options.minZoomLevel?o.options.minZoomLevel:2*o.options.scrollZoomIncrement,o.options.scrollZoom&&o.zoomContainer.add(o.$elem).bind("mousewheel DOMMouseScroll MozMousePixelScroll",function(n){o.scrollLock=!0,clearTimeout(t.data(this,"timer")),t.data(this,"timer",setTimeout(function(){o.scrollLock=!1},250));var s=n.originalEvent.wheelDelta||-1*n.originalEvent.detail;return n.stopImmediatePropagation(),n.stopPropagation(),n.preventDefault(),0<s/120?o.currentZoomLevel>=o.minZoomLevel&&o.changeZoomLevel(o.currentZoomLevel-o.options.scrollZoomIncrement):o.options.maxZoomLevel?o.currentZoomLevel<=o.options.maxZoomLevel&&o.changeZoomLevel(parseFloat(o.currentZoomLevel)+o.options.scrollZoomIncrement):o.changeZoomLevel(parseFloat(o.currentZoomLevel)+o.options.scrollZoomIncrement),!1})},setElements:function(t){if(!this.options.zoomEnabled)return!1;"show"==t&&this.isWindowSet&&("inner"==this.options.zoomType&&this.showHideWindow("show"),"window"==this.options.zoomType&&this.showHideWindow("show"),this.options.showLens&&this.showHideLens("show"),this.options.tint&&"inner"!=this.options.zoomType&&this.showHideTint("show")),"hide"==t&&("window"==this.options.zoomType&&this.showHideWindow("hide"),this.options.tint||this.showHideWindow("hide"),this.options.showLens&&this.showHideLens("hide"),this.options.tint&&this.showHideTint("hide"))},setPosition:function(t){if(!this.options.zoomEnabled)return!1;this.nzHeight=this.$elem.height(),this.nzWidth=this.$elem.width(),this.nzOffset=this.$elem.offset(),this.options.tint&&"inner"!=this.options.zoomType&&(this.zoomTint.css({top:0}),this.zoomTint.css({left:0})),this.options.responsive&&!this.options.scrollZoom&&this.options.showLens&&(lensHeight=this.nzHeight<this.options.zoomWindowWidth/this.widthRatio?this.nzHeight:String(this.options.zoomWindowHeight/this.heightRatio),lensWidth=this.largeWidth<this.options.zoomWindowWidth?this.nzWidth:this.options.zoomWindowWidth/this.widthRatio,this.widthRatio=this.largeWidth/this.nzWidth,this.heightRatio=this.largeHeight/this.nzHeight,"lens"!=this.options.zoomType&&(lensHeight=this.nzHeight<this.options.zoomWindowWidth/this.widthRatio?this.nzHeight:String(this.options.zoomWindowHeight/this.heightRatio),lensWidth=this.options.zoomWindowWidth<this.options.zoomWindowWidth?this.nzWidth:this.options.zoomWindowWidth/this.widthRatio,this.zoomLens.css("width",lensWidth),this.zoomLens.css("height",lensHeight),this.options.tint&&(this.zoomTintImage.css("width",this.nzWidth),this.zoomTintImage.css("height",this.nzHeight))),"lens"==this.options.zoomType&&this.zoomLens.css({width:String(this.options.lensSize)+"px",height:String(this.options.lensSize)+"px"})),this.zoomContainer.css({top:this.nzOffset.top}),this.zoomContainer.css({left:this.nzOffset.left}),this.mouseLeft=parseInt(t.pageX-this.nzOffset.left),this.mouseTop=p
5arseInt(t.pageY-this.nzOffset.top),"window"==this.options.zoomType&&(this.Etoppos=this.mouseTop<this.zoomLens.height()/2,this.Eboppos=this.mouseTop>this.nzHeight-this.zoomLens.height()/2-2*this.options.lensBorderSize,this.Eloppos=this.mouseLeft<0+this.zoomLens.width()/2,this.Eroppos=this.mouseLeft>this.nzWidth-this.zoomLens.width()/2-2*this.options.lensBorderSize),"inner"==this.options.zoomType&&(this.Etoppos=this.mouseTop<this.nzHeight/2/this.heightRatio,this.Eboppos=this.mouseTop>this.nzHeight-this.nzHeight/2/this.heightRatio,this.Eloppos=this.mouseLeft<0+this.nzWidth/2/this.widthRatio,this.Eroppos=this.mouseLeft>this.nzWidth-this.nzWidth/2/this.widthRatio-2*this.options.lensBorderSize),0>=this.mouseLeft||0>this.mouseTop||this.mouseLeft>this.nzWidth||this.mouseTop>this.nzHeight?this.setElements("hide"):(this.options.showLens&&(this.lensLeftPos=String(this.mouseLeft-this.zoomLens.width()/2),this.lensTopPos=String(this.mouseTop-this.zoomLens.height()/2)),this.Etoppos&&(this.lensTopPos=0),this.Eloppos&&(this.tintpos=this.lensLeftPos=this.windowLeftPos=0),"window"==this.options.zoomType&&(this.Eboppos&&(this.lensTopPos=Math.max(this.nzHeight-this.zoomLens.height()-2*this.options.lensBorderSize,0)),this.Eroppos&&(this.lensLeftPos=this.nzWidth-this.zoomLens.width()-2*this.options.lensBorderSize)),"inner"==this.options.zoomType&&(this.Eboppos&&(this.lensTopPos=Math.max(this.nzHeight-2*this.options.lensBorderSize,0)),this.Eroppos&&(this.lensLeftPos=this.nzWidth-this.nzWidth-2*this.options.lensBorderSize)),"lens"==this.options.zoomType&&(this.windowLeftPos=String(-1*((t.pageX-this.nzOffset.left)*this.widthRatio-this.zoomLens.width()/2)),this.windowTopPos=String(-1*((t.pageY-this.nzOffset.top)*this.heightRatio-this.zoomLens.height()/2)),this.zoomLens.css({backgroundPosition:this.windowLeftPos+"px "+this.windowTopPos+"px"}),this.changeBgSize&&(this.nzHeight>this.nzWidth?("lens"==this.options.zoomType&&this.zoomLens.css({"background-size":this.largeWidth/this.newvalueheight+"px "+this.largeHeight/this.newvalueheight+"px"}),this.zoomWindow.css({"background-size":this.largeWidth/this.newvalueheight+"px "+this.largeHeight/this.newvalueheight+"px"})):("lens"==this.options.zoomType&&this.zoomLens.css({"background-size":this.largeWidth/this.newvaluewidth+"px "+this.largeHeight/this.newvaluewidth+"px"}),this.zoomWindow.css({"background-size":this.largeWidth/this.newvaluewidth+"px "+this.largeHeight/this.newvaluewidth+"px"})),this.changeBgSize=!1),this.setWindowPostition(t)),this.options.tint&&"inner"!=this.options.zoomType&&this.setTintPosition(t),"window"==this.options.zoomType&&this.setWindowPostition(t),"inner"==this.options.zoomType&&this.setWindowPostition(t),this.options.showLens&&(this.fullwidth&&"lens"!=this.options.zoomType&&(this.lensLeftPos=0),this.zoomLens.css({left:this.lensLeftPos+"px",top:this.lensTopPos+"px"})))},showHideWindow:function(t){"show"!=t||this.isWindowActive||(this.options.zoomWindowFadeIn?this.zoomWindow.stop(!0,!0,!1).fadeIn(this.options.zoomWindowFadeIn):this.zoomWindow.show(),this.isWindowActive=!0),"hide"==t&&this.isWindowActive&&(this.options.zoomWindowFadeOut?this.zoomWindow.stop(!0,!0).fadeOut(this.options.zoomWindowFadeOut):this.zoomWindow.hide(),this.isWindowActive=!1)},showHideLens:function(t){"show"!=t||this.isLensActive||(this.options.lensFadeIn?this.zoomLens.stop(!0,!0,!1).fadeIn(this.options.lensFadeIn):this.zoomLens.show(),this.isLensActive=!0),"hide"==t&&this.isLensActive&&(this.options.lensFadeOut?this.zoomLens.stop(!0,!0).fadeOut(this.options.lensFadeOut):this.zoomLens.hide(),this.isLensActive=!1)},showHideTint:function(t){"show"!=t||this.isTintActive||(this.options.zoomTintFadeIn?this.zoomTint.css({opacity:this.options.tintOpacity}).animate().stop(!0,!0).fadeIn("slow"):(this.zoomTint.css({opacity:this.options.tintOpacity}).animate(),this.zoomTint.show()),this.isTintActive=!0),"hide"==t&&this.isTintActive&&(this.options.zoomTintFadeOut?this.zoomTint.stop(!0,!0).fadeOut(this.options.zoomTintFadeOut):this.zoomTint.hide(),this.isTintActive=!1)},setLensPostition:function(t){},setWindowPostition:function(o){var n=this;if(isNaN(n.options.zoomWindowPosition))n.externalContainer=t("#"+n.options.zoomWindowPosition),n.externalContainerWidth=n.externalContainer.width(),n.externalContainerHeight=n.externalContainer.height(),n.externalContainerOffset=n.externalContainer.offset(),n.windowOffsetTop=n.externalContainerOffset.top,n.windowOffsetLeft=n.externalContainerOffset.left;else switch(n.options.zoomWindowPosition){case 1:n.windowOffsetTop=n.options.zoomWindowOffety,n.windowOffsetLeft=+n.nzWidth;break;case 2:n.options.zoomWindowHeight>n.nzHeight&&(n.windowOffsetTop=-1*(n.options.zoomWindowHeight/2-n.nzHeight/2),n.windowOffsetLeft=n.nzWidth);break;case 3:n.windowOffsetTop=n.nzHeight-n.zoomWindow.height()-2*n.options.borderSize,n.windowOffsetLeft=n.nzWidth;break;case 4:n.windowOffsetTop=n.nzHeight,n.windowOffsetLeft=n.nzWidth;break;case 5:n.windowOffsetTop=n.nzHeight,n.windowOffsetLeft=n.nzWidth-n.zoomWindow.width()-2*n.options.borderSize;break;case 6:n.options.zoomWindowHeight>n.nzHeight&&(n.windowOffsetTop=n.nzHeight,n.windowOffsetLeft=-1*(n.options.zoomWindowWidth/2-n.nzWidth/2+2*n.options.borderSize));break;case 7:n.windowOffsetTop=n.nzHeight,n.windowOffsetLeft=0;break;case 8:n.windowOffsetTop=n.nzHeight,n.windowOffsetLeft=-1*(n.zoomWindow.width()+2*n.options.borderSize);break;case 9:n.windowOffsetTop=n.nzHeight-n.zoomWindow.height()-2*n.options.borderSize,n.windowOffsetLeft=-1*(n.zoomWindow.width()+2*n.options.borderSize);break;case 10:n.options.zoomWindowHeight>n.nzHeight&&(n.windowOffsetTop=-1*(n.options.zoomWindowHeight/2-n.nzHeight/2),n.windowOffsetLeft=-1*(n.zoomWindow.width()+2*n.options.borderSize));break;case 11:n.windowOffsetTop=n.options.zoomWindowOffety,n.windowOffsetLeft=-1*(n.zoomWindow.width()+2*n.options.borderSize);break;case 12:n.windowOffsetTop=-1*(n.zoomWindow.height()+2*n.options.borderSize),n.windowOffsetLeft=-1*(n.zoomWindow.width()+2*n.options.borderSize);break;case 13:n.windowOffsetTop=-1*(n.zoomWindow.height()+2*n.options.borderSize),n.windowOffsetLeft=0;break;case 14:n.options.zoomWindowHeight>n.nzHeight&&(n.windowOffsetTop=-1*(n.zoomWindow.height()+2*n.options.borderSize),n.windowOffsetLeft=-1*(n.options.zoomWindowWidth/2-n.nzWidth/2+2*n.options.borderSize));break;case 15:n.windowOffsetTop=-1*(n.zoomWindow.height()+2*n.options.borderSize),n.windowOffsetLeft=n.nzWidth-n.zoomWindow.width()-2*n.options.borderSize;break;case 16:n.windowOffsetTop=-1*(n.zoomWindow.height()+2*n.options.borderSize),n.windowOffsetLeft=n.nzWidth;break;default:n.windowOffsetTop=n.options.zoomWindowOffety,n.windowOffsetLeft=n.nzWidth}n.isWindowSet=!0,n.windowOffsetTop+=n.options.zoomWindowOffety,n.windowOffsetLeft+=n.options.zoomWindowOffetx,n.zoomWindow.css({top:n.windowOffsetTop}),n.zoomWindow.css({left:n.windowOffsetLeft}),"inner"==n.options.zoomType&&(n.zoomWindow.css({top:0}),n.zoomWindow.css({left:0})),n.windowLeftPos=String(-1*((o.pageX-n.nzOffset.left)*n.widthRatio-n.zoomWindow.width()/2)),n.windowTopPos=String(-1*((o.pageY-n.nzOff
5set.top)*n.heightRatio-n.zoomWindow.height()/2)),n.Etoppos&&(n.windowTopPos=0),n.Eloppos&&(n.windowLeftPos=0),n.Eboppos&&(n.windowTopPos=-1*(n.largeHeight/n.currentZoomLevel-n.zoomWindow.height())),n.Eroppos&&(n.windowLeftPos=-1*(n.largeWidth/n.currentZoomLevel-n.zoomWindow.width())),n.fullheight&&(n.windowTopPos=0),n.fullwidth&&(n.windowLeftPos=0),("window"==n.options.zoomType||"inner"==n.options.zoomType)&&(1==n.zoomLock&&(1>=n.widthRatio&&(n.windowLeftPos=0),1>=n.heightRatio&&(n.windowTopPos=0)),n.largeHeight<n.options.zoomWindowHeight&&(n.windowTopPos=0),n.largeWidth<n.options.zoomWindowWidth&&(n.windowLeftPos=0),n.options.easing?(n.xp||(n.xp=0),n.yp||(n.yp=0),n.loop||(n.loop=setInterval(function(){n.xp+=(n.windowLeftPos-n.xp)/n.options.easingAmount,n.yp+=(n.windowTopPos-n.yp)/n.options.easingAmount,n.scrollingLock?(clearInterval(n.loop),n.xp=n.windowLeftPos,n.yp=n.windowTopPos,n.xp=-1*((o.pageX-n.nzOffset.left)*n.widthRatio-n.zoomWindow.width()/2),n.yp=-1*((o.pageY-n.nzOffset.top)*n.heightRatio-n.zoomWindow.height()/2),n.changeBgSize&&(n.nzHeight>n.nzWidth?("lens"==n.options.zoomType&&n.zoomLens.css({"background-size":n.largeWidth/n.newvalueheight+"px "+n.largeHeight/n.newvalueheight+"px"}),n.zoomWindow.css({"background-size":n.largeWidth/n.newvalueheight+"px "+n.largeHeight/n.newvalueheight+"px"})):("lens"!=n.options.zoomType&&n.zoomLens.css({"background-size":n.largeWidth/n.newvaluewidth+"px "+n.largeHeight/n.newvalueheight+"px"}),n.zoomWindow.css({"background-size":n.largeWidth/n.newvaluewidth+"px "+n.largeHeight/n.newvaluewidth+"px"})),n.changeBgSize=!1),n.zoomWindow.css({backgroundPosition:n.windowLeftPos+"px "+n.windowTopPos+"px"}),n.scrollingLock=!1,n.loop=!1):(n.changeBgSize&&(n.nzHeight>n.nzWidth?("lens"==n.options.zoomType&&n.zoomLens.css({"background-size":n.largeWidth/n.newvalueheight+"px "+n.largeHeight/n.newvalueheight+"px"}),n.zoomWindow.css({"background-size":n.largeWidth/n.newvalueheight+"px "+n.largeHeight/n.newvalueheight+"px"})):("lens"!=n.options.zoomType&&n.zoomLens.css({"background-size":n.largeWidth/n.newvaluewidth+"px "+n.largeHeight/n.newvaluewidth+"px"}),n.zoomWindow.css({"background-size":n.largeWidth/n.newvaluewidth+"px "+n.largeHeight/n.newvaluewidth+"px"})),n.changeBgSize=!1),n.zoomWindow.css({backgroundPosition:n.xp+"px "+n.yp+"px"}))},16))):(n.changeBgSize&&(n.nzHeight>n.nzWidth?("lens"==n.options.zoomType&&n.zoomLens.css({"background-size":n.largeWidth/n.newvalueheight+"px "+n.largeHeight/n.newvalueheight+"px"}),n.zoomWindow.css({"background-size":n.largeWidth/n.newvalueheight+"px "+n.largeHeight/n.newvalueheight+"px"})):("lens"==n.options.zoomType&&n.zoomLens.css({"background-size":n.largeWidth/n.newvaluewidth+"px "+n.largeHeight/n.newvaluewidth+"px"}),n.largeHeight/n.newvaluewidth<n.options.zoomWindowHeight?n.zoomWindow.css({"background-size":n.largeWidth/n.newvaluewidth+"px "+n.largeHeight/n.newvaluewidth+"px"}):n.zoomWindow.css({"background-size":n.largeWidth/n.newvalueheight+"px "+n.largeHeight/n.newvalueheight+"px"})),n.changeBgSize=!1),n.zoomWindow.css({backgroundPosition:n.windowLeftPos+"px "+n.windowTopPos+"px"})))},setTintPosition:function(t){this.nzOffset=this.$elem.offset(),this.tintpos=String(-1*(t.pageX-this.nzOffset.left-this.zoomLens.width()/2)),this.tintposy=String(-1*(t.pageY-this.nzOffset.top-this.zoomLens.height()/2)),this.Etoppos&&(this.tintposy=0),this.Eloppos&&(this.tintpos=0),this.Eboppos&&(this.tintposy=-1*(this.nzHeight-this.zoomLens.height()-2*this.options.lensBorderSize)),this.Eroppos&&(this.tintpos=-1*(this.nzWidth-this.zoomLens.width()-2*this.options.lensBorderSize)),this.options.tint&&(this.fullheight&&(this.tintposy=0),this.fullwidth&&(this.tintpos=0),this.zoomTintImage.css({left:this.tintpos+"px"}),this.zoomTintImage.css({top:this.tintposy+"px"}))},swaptheimage:function(o,n){var s=this,r=new Image;s.options.loadingIcon&&(s.spinner=t("<div style=\"background: url('"+s.options.loadingIcon+"') no-repeat center;height:"+s.nzHeight+"px;width:"+s.nzWidth+'px;z-index: 2000;position: absolute; background-position: center center;"></div>'),s.$elem.after(s.spinner)),s.options.onImageSwap(s.$elem),r.onload=function(){s.largeWidth=r.width,s.largeHeight=r.height,s.zoomImage=n,s.zoomWindow.css({"background-size":s.largeWidth+"px "+s.largeHeight+"px"}),s.zoomWindow.css({"background-size":s.largeWidth+"px "+s.largeHeight+"px"}),s.swapAction(o,n)},r.src=n},swapAction:function(o,n){var s=this,r=new Image;if(r.onload=function(){s.nzHeight=r.height,s.nzWidth=r.width,s.options.onImageSwapComplete(s.$elem),s.doneCallback()},r.src=o,s.currentZoomLevel=s.options.zoomLevel,s.options.maxZoomLevel=!1,"lens"==s.options.zoomType&&s.zoomLens.css({backgroundImage:"url('"+n+"')"}),"window"==s.options.zoomType&&s.zoomWindow.css({backgroundImage:"url('"+n+"')"}),"inner"==s.options.zoomType&&s.zoomWindow.css({backgroundImage:"url('"+n+"')"}),s.currentImage=n,s.options.imageCrossfade){var a=s.$elem,l=a.clone();s.$elem.attr("src",o),s.$elem.after(l),l.stop(!0).fadeOut(s.options.imageCrossfade,function(){t(this).remove()}),s.$elem.width("auto").removeAttr("width"),s.$elem.height("auto").removeAttr("height"),a.fadeIn(s.options.imageCrossfade),s.options.tint&&"inner"!=s.options.zoomType&&(l=(a=s.zoomTintImage).clone(),s.zoomTintImage.attr("src",n),s.zoomTintImage.after(l),l.stop(!0).fadeOut(s.options.imageCrossfade,function(){t(this).remove()}),a.fadeIn(s.options.imageCrossfade),s.zoomTint.css({height:s.$elem.height()}),s.zoomTint.css({width:s.$elem.width()})),s.zoomContainer.css("height",s.$elem.height()),s.zoomContainer.css("width",s.$elem.width()),"inner"!=s.options.zoomType||s.options.constrainType||(s.zoomWrap.parent().css("height",s.$elem.height()),s.zoomWrap.parent().css("width",s.$elem.width()),s.zoomWindow.css("height",s.$elem.height()),s.zoomWindow.css("width",s.$elem.width()))}else s.$elem.attr("src",o),s.options.tint&&(s.zoomTintImage.attr("src",n),s.zoomTintImage.attr("height",s.$elem.height()),s.zoomTintImage.css({height:s.$elem.height()}),s.zoomTint.css({height:s.$elem.height()})),s.zoomContainer.css("height",s.$elem.height()),s.zoomContainer.css("width",s.$elem.width());s.options.imageCrossfade&&(s.zoomWrap.css("height",s.$elem.height()),s.zoomWrap.css("width",s.$elem.width())),s.options.constrainType&&("height"==s.options.constrainType&&(s.zoomContainer.css("height",s.options.constrainSize),s.zoomContainer.css("width","auto"),s.options.imageCrossfade?(s.zoomWrap.css("height",s.options.constrainSize),s.zoomWrap.css("width","auto"),s.constwidth=s.zoomWrap.width()):(s.$elem.css("height",s.options.constrainSize),s.$elem.css("width","auto"),s.constwidth=s.$elem.width()),"inner"==s.options.zoomType&&(s.zoomWrap.parent().css("height",s.options.constrainSize),s.zoomWrap.parent().css("width",s.constwidth),s.zoomWindow.css("height",s.options.constrainSize),s.zoomWindow.css("width",s.constwidth)),s.options.tint&&(s.tintContainer.css("height",s.options.constrainSize),s.tintContainer.css("width",s.constwidth),s.zoomTint.css("height",s.options.constrainSize),s.zoomTint.css("width",s.constwidth),s.zoomTintImage.css("height",s.options.constrainSize),s.zoomTintImage.css("width",s.constwidth))),"width"==s.options.constrainType&&(s.zoomContainer.css("height","auto"),s.zoomContainer.css("width",s.options.constrainSize),s.options.imageCrossfade?(s.zoomWrap.css("height","auto"),s.zoomWrap.css("width",s.options.constrainSize),s.constheight=s.zoomWrap.height()):(s.$elem.css("height","auto"),s.$elem.css("width",s.options.constrainSize),s.constheight=s.$elem.height()),"inner"==s.options.zoomType&&(s.zoomWrap.parent().css("height",s.constheight),s.zoomWrap.parent().css("width",s.options.constrainSize),s.zoomWindow.css("height",s.constheight),s.zoomWindow.css("width",s.options.constrainSize)),s.options.tint&&(s.tintContainer.css("height",s.constheight),s.tintContainer.css("width",s.options.constrainSize),s.zoomTint.css("height",s.constheight),s.zoomTint.css("width",s.options.constrainSize),s.zoomTintImage.css("height",s.constheight),s.zoomTintImage.css("width",s.options.constrainSize))))},doneCallback:function(){this.options.loadingIcon&&this.spinner.hide(),this.nzOffset=this.$elem.offset(),this.nzWidth=this.$elem.width(),this.nzHeight=this.$elem.height(),this.currentZoomLevel=this.options.zoomLevel,this.widthRatio=this.largeWidth/this.nzWidth,this.heightRatio=this.largeHeight/this.nzHeight,"window"==this.options.zoomType&&(lensHeight=this.nzHeight<this.options.zoomWindowWidth/this.widthRatio?this.nzHeight:String(this.options.zoomWindowHeight/this.heightRatio),lensWidth=this.options.zoomWindowWidth<this.options.zoomWindowWidth?this.nzWidth:this.options.zoomWindowWidth/this.widthRatio,this.zoomLens&&(this.zoomLens.css("width",lensWidth),this.zoomLens.css("height",lensHeight)))},getCurrentImage:function(){return this.zoomImage},getGalleryList:function(){var o=this;return o.gallerylist=[],o.options.gallery?t("#"+o.options.gallery+" a").each(function(){var n="";t(this).data("zoom-image")?n=t(this).data("zoom-image"):t(this).data("image")&&(n=t(this).data("image")),n==o.zoomImage?o.gallerylist.unshift({href:""+n,title:t(this).find("img").attr("title")}):o.gallerylist.push({href:""+n,title:t(this).find("img").attr("title")})}):o.gallerylist.push({href:""+o.zoomImage,title:t(this).find("img").attr("title")}),o.gallerylist},changeZoomLevel:function(t){this.scrollingLock=!0,this.newvalue=parseFloat(t).toFixed(2),newvalue=parseFloat(t).toFixed(2),maxheightnewvalue=this.largeHeight/(this.options.zoomWindowHeight/this.nzHeight*this.nzHeight),maxwidthtnewvalue=this.largeWidth/(this.options.zoomWindowWidth/this.nzWidth*this.nzWidth),"inner"!=this.options.zoomType&&(maxheightnewvalue<=newvalue?(this.heightRatio=this.largeHeight/maxheightnewvalue/this.nzHeight,this.newvalueheight=maxheightnewvalue,this.fullheight=!0):(this.heightRatio=this.largeHeight/newvalue/this.nzHeight,this.newvalueheight=newvalue,this.fullheight=!1),maxwidthtnewvalue<=newvalue?(this.widthRatio=this.largeWidth/maxwidthtnewvalue/this.nzWidth,this.newvaluewidth=maxwidthtnewvalue,this.fullwidth=!0):(this.widthRatio=this.largeWidth/newvalue/this.nzWidth,this.newvaluewidth=newvalue,this.fullwidth=!1),"lens"==this.options.zoomType&&(maxheightnewvalue<=newvalue?(this.fullwidth=!0,this.newvaluewidth=maxheightnewvalue):(this.widthRatio=this.largeWidth/newvalue/this.nzWidth,this.newvaluewidth=newvalue,this.fullwidth=!1))),"inner"==this.options.zoomType&&(maxheightnewvalue=parseFloat(this.largeHeight/this.nzHeight).toFixed(2),maxwidthtnewvalue=parseFloat(this.largeWidth/this.nzWidth).toFixed(2),newvalue>maxheightnewvalue&&(newvalue=maxheightnewvalue),newvalue>maxwidthtnewvalue&&(newvalue=maxwidthtnewvalue),maxheightnewvalue<=newvalue?(this.heightRatio=this.largeHeight/newvalue/this.nzHeight,this.newvalueheight=newvalue>maxheightnewvalue?maxheightnewvalue:newvalue,this.fullheight=!0):(this.heightRatio=this.largeHeight/newvalue/this.nzHeight,this.newvalueheight=newvalue>maxheightnewvalue?maxheightnewvalue:newvalue,this.fullheight=!1),maxwidthtnewvalue<=newvalue?(this.widthRatio=this.largeWidth/newvalue/this.nzWidth,this.newvaluewidth=newvalue>maxwidthtnewvalue?maxwidthtnewvalue:newvalue,this.fullwidth=!0):(this.widthRatio=this.largeWidth/newvalue/this.nzWidth,this.newvaluewidth=newvalue,this.fullwidth=!1)),scrcontinue=!1,"inner"==this.options.zoomType&&(this.nzWidth>this.nzHeight&&(this.newvaluewidth<=maxwidthtnewvalue?scrcontinue=!0:(scrcontinue=!1,this.fullwidth=this.fullheight=!0)),this.nzHeight>this.nzWidth&&(this.newvaluewidth<=maxwidthtnewvalue?scrcontinue=!0:(scrcontinue=!1,this.fullwidth=this.fullheight=!0))),"inner"!=this.options.zoomType&&(scrcontinue=!0),scrcontinue&&(this.zoomLock=0,this.changeZoom=!0,this.options.zoomWindowHeight/this.heightRatio<=this.nzHeight&&(this.currentZoomLevel=this.newvalueheight,"lens"!=this.options.zoomType&&"inner"!=this.options.zoomType&&(this.changeBgSize=!0,this.zoomLens.css({height:String(this.options.zoomWindowHeight/this.heightRatio)+"px"})),"lens"==this.options.zoomType||"inner"==this.options.zoomType)&&(this.changeBgSize=!0),this.options.zoomWindowWidth/this.widthRatio<=this.nzWidth&&("inner"!=this.options.zoomType&&this.newvaluewidth>this.newvalueheight&&(this.currentZoomLevel=this.newvaluewidth),"lens"!=this.options.zoomType&&"inner"!=this.options.zoomType&&(this.changeBgSize=!0,this.zoomLens.css({width:String(this.options.zoomWindowWidth/this.widthRatio)+"px"})),"lens"==this.options.zoomType||"inner"==this.options.zoomType)&&(this.changeBgSize=!0),"inner"==this.options.zoomType&&(this.changeBgSize=!0,this.nzWidth>this.nzHeight&&(this.currentZoomLevel=this.newvaluewidth),this.nzHeight>this.nzWidth&&(this.currentZoomLevel=this.newvaluewidth))),this.setPosition(this.currentLoc)},closeAll:function(){self.zoomWindow&&self.zoomWindow.hide(),self.zoomLens&&self.zoomLens.hide(),self.zoomTint&&self.zoomTint.hide()},changeState:function(t){"enable"==t&&(this.options.zoomEnabled=!0),"disable"==t&&(this.options.zoomEnabled=!1)}};t.fn.elevateZoom=function(o){return this.each(function(){var n=Object.create(r);n.init(o,this),t.data(this,"elevateZoom",n)})},t.fn.elevateZoom.options={zoomActivation:"hover",zoomEnabled:!0,preloading:1,zoomLevel:1,scrollZoom:!1,scrollZoomIncrement:.1,minZ
5oomLevel:!1,maxZoomLevel:!1,easing:!1,easingAmount:12,lensSize:200,zoomWindowWidth:400,zoomWindowHeight:400,zoomWindowOffetx:0,zoomWindowOffety:0,zoomWindowPosition:1,zoomWindowBgColour:"#fff",lensFadeIn:!1,lensFadeOut:!1,debug:!1,zoomWindowFadeIn:!1,zoomWindowFadeOut:!1,zoomWindowAlwaysShow:!1,zoomTintFadeIn:!1,zoomTintFadeOut:!1,borderSize:4,showLens:!0,borderColour:"#888",lensBorderSize:1,lensBorderColour:"#000",lensShape:"square",zoomType:"window",containLensZoom:!1,lensColour:"white",lensOpacity:.4,lenszoom:!1,tint:!1,tintColour:"#333",tintOpacity:.4,gallery:!1,galleryActiveClass:"zoomGalleryActive",imageCrossfade:!1,constrainType:!1,constrainSize:!1,loadingIcon:!1,cursor:"default",responsive:!0,onComplete:t.noop,onZoomedImageLoaded:function(){},onImageSwap:t.noop,onImageSwapComplete:t.noop}}(jQuery,window,document);
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.