1var _____WB$wombat$assign$function_____=function(name){return (globalThis._wb_wombat && globalThis._wb_wombat.local_init && globalThis._wb_wombat.local_init(name))||globalThis[name];};if(!globalThis.__WB_pmw){globalThis.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{ 2let window = _____WB$wombat$assign$function_____("window"); 3let self = _____WB$wombat$assign$function_____("self"); 4let document = _____WB$wombat$assign$function_____("document"); 5let location = _____WB$wombat$assign$function_____("location"); 6let top = _____WB$wombat$assign$function_____("top"); 7let parent = _____WB$wombat$assign$function_____("parent"); 8let frames = _____WB$wombat$assign$function_____("frames"); 9let opener = _____WB$wombat$assign$function_____("opener"); 10$(document).on("ready",function(){forms.init()}),$(window).on("load",function(){ems.init()}),jQuery.isMobile=function(){try{return document.createEvent("TouchEvent"),!0}catch(t){return!1}},jQuery.browser=function(t){return matched=function(t){t=t.toLowerCase();var i=/(chrome)[ \/]([\w.]+)/.exec(t)||/(webkit)[ \/]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(t)||/(msie)[\s?]([\w.]+)/.exec(t)||/(trident)(?:.*? rv:([\w.]+)|)/.exec(t)||t.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(t)||[];return{browser:i[1]||"",version:i[2]||"0"}}(navigator.userAgent),matched.browser="trident"==matched.browser?"msie":matched.browser,"version"===t?matched.version:matched.browser};var forms={init:function(){for(var t in forms)forms[t].init&&forms[t].init()},input:{}};forms.input.init=function(){$(".control-type-text, .control-type-password, .control-type-number, .control-type-email, .control-type-url, .control-type-date, .control-type-textarea").each(function(){for(var t=$(this).attr("class").split(/\s+/),i=0;i<t.length;i++)if(-1<t[i].indexOf("control-type-")){var e=t[i].split("-"),o="textarea"!==e[2]?$(this).find('input[type="'+e[2]+'"]'):$(this).find("textarea");break}o.val()||o.closest(".control-group").addClass("has-empty"),o.prop("disabled")&&o.closest(".control-group").addClass("has-disabled"),o.on({focus:function(){$(this)[0].hasAttribute("readonly")||($(".control-group.has-focus").removeClass("has-focus"),$(this).closest(".control-group").addClass("has-focus"))},"change blur":function(){$(this).val()?$(this).closest(".control-group").removeClass("has-empty has-error"):$(this).closest(".control-group").addClass("has-empty"),$(this).closest(".control-group").removeClass("has-focus")}})})},forms.inputFile={},forms.inputFile.init=function(){$(".control-type-file").find('input[type="file"]').each(function(){var t=$(this);0===t.closest(".control-group").find("img").length&&t.closest(".control-group").addClass("has-empty"),t.prop("disabled")&&t.closest(".control-group").addClass("has-disabled");$("<a/>
10",{href:"javascript:void(0)",class:"btn btn-error btn-small"}).html('<i class="fa fa-times"></i>').on({click:function(){$(this).closest(".controls").find('input[type="file"]').val(""),$(this).closest(".controls").find("img").remove(),$(this).closest(".controls").find(".input-filename").text(""),$(this).closest(".control-group").addClass("has-empty")}}).insertAfter(t).before('<div class="input-filename"/>');t.on({click:function(){$(".control-group.has-focus").removeClass("has-focus"),$(this).closest(".control-group").addClass("has-focus")},change:function(){if("files"in $(this)[0]&&$(this)[0].files.length){var t=$(this)[0].files[0],i=t.name,e=i.match(/[^.]+$/).pop().toLowerCase();if(-1!=$.inArray(e,["jpg","jpeg","gif","png","bmp"])){var o=$(this).closest(".controls").prepend("<img/>").find("img"),n=new FileReader;n.addEventListener("load",function(){o.attr("src",n.result)},!1),n.readAsDataURL(t)}else $(this).closest(".control-group").find(".input-filename").text(i);$(this).closest(".control-group").removeClass("has-empty has-error")}else $(this).closest(".control-group").addClass("has-empty");$(this).closest(".control-group").removeClass("has-focus")}})})},forms.select={},forms.select.init=function(){$(".control-type-select").find("select").each(function(){var t=$(this);t.val()&&0!==parseInt(t.val(),10)||t.closest(".control-group").addClass("has-empty"),t.prop("disabled")&&t.closest(".control-group").addClass("has-disabled"),t.on({focu
10s:function(){$(this)[0].hasAttribute("readonly")||($(".control-group.has-focus").removeClass("has-focus"),$(this).closest(".control-group").addClass("has-focus"))},"change blur":function(){t.val()&&0!==t.val()?$(this).closest(".control-group").removeClass("has-empty has-error"):$(this).closest(".control-group").addClass("has-empty"),$(this).closest(".control-group").removeClass("has-focus")}})})},forms.checkbox={},forms.checkbox.init=function(){$(".checkbox, .checkbox-inline").find('input[type="checkbox"]').each(function(){var t=$(this);0===t.next(".checked").length&&t.after('<span class="checked"></span>'),t.is(":checked")||t.closest("label").addClass("has-empty"),t.prop("disabled")&&t.closest("label").addClass("has-disabled"),t.on({click:function(){$(this)[0].hasAttribute("readonly")||($(".control-group.has-focus").removeClass("has-focus"),$(this).closest("label").toggleClass("has-empty"),$(this).is(":checked")&&$(this).closest(".control-group").removeClass("has-error"))}})})},forms.radio={},forms.radio.init=function(){$(".radio, .radio-inline").find('input[type="radio"]').each(function(){var t=$(this),i=t.attr("name");0===t.next(".checked").length&&t.after('<span class="checked"></span>'),t.is(":checked")||t.closest("label").addClass("has-empty"),t.prop("disabled")&&t.closest("label").addClass("has-disabled"),t.on({click:function(){$(this)[0].hasAttribute("readonly")||($(".control-group.has-focus").removeClass("has-focus"),$(this).is(":checked")&&($(this).closest("label").removeClass("has-empty"),$(this).closest(".control-group").removeClass("has-error"),$('input[type="radio"][name="'+i+'"]').not(this).closest("label").addClass("has-empty")))}})})};var ems={init:function(){for(var t in ems)ems[t].init&&ems[t].init()}};(function(l){l.fn.audioplayer=function(i){var e={autoplay:!1,download:!0,index:0,loop:!1,tracklist:!0,tracks:[],volume:!0};return this.each(function(){if(!!document.createElement("audio").canPlayType){var t=l.extend({},e,i);if(l(this).data()&&l.extend(t,l(this).data()),t.count=t.tracks.length,t.playing=!(!t.autoplay||l.isMobile()),"boolean"!=typeof t.autoplay)throw"AUDIOPLAYER [EMS FRAMEWORK] : autoplay option '"+t.autoplay+"' is not a boolean.";if("boolean"!=typeof t.download)throw"AUDIOPLAYER [EMS FRAMEWORK] : download option '"+t.download+"' is not a boolean.";if("number"!=typeof t.index)throw"AUDIOPLAYER [EMS FRAMEWORK] : index option '"+t.index+"' is not a number.";if("boolean"!=typeof t.loop)throw"AUDIOPLAYER [EMS FRAMEWORK] : loop option '"+t.loop+"' is not a boolean.";if("boolean"!=typeof t.tracklist)throw"AUDIOPLAYER [EMS FRAMEWORK] : tracklist option '"+t.tracklist+"' is not a boolean.";if("object"!=typeof t.tracks)throw"AUDIOPLAYER [EMS FRAMEWORK] : tracks option '"+t.tracks+"' is not an object.";var o=["artist","cover","file","title"];if(l.each(t.tracks,function(e,t){if("object"!=typeof t)throw"AUDIOPLAYER [EMS FRAMEWORK] : track '"+e+"' is not an object.";if(l.each(Object.keys(t),function(t,i){if(-1===l.inArray(i,o))throw"AUDIOPLAYER [EMS FRAMEWORK] : '"+i+"' in track n° "+e+" is not a valid key."}),!t.file||0===t.file.length)throw"AUDIOPLAYER [EMS FRAMEWORK] : file track n° "+e+" is not defined."}),"boolean"!=typeof t.volume)throw"AUTOPLAYER [EMS FRAMEWORK] : volume option '"+t.volume+"' is not a boolean.";var n=l(this);n.data("settings",t),n.append(function(){var t='<div class="audioplayer-cover"><div class="audioplayer-infos"><div class="audioplayer-title"> </div><div class="audioplayer-artist"> </div><div class="audioplayer-progress-wrapper"><div class="audioplayer-progress" style="width: 0%;"><span class="audioplayer-progress-pointer"></span></div></div><div class="audioplayer-time"><div class="audioplayer-time-elapsed">--:--</div>';return n.data("settings").volume&&(t+='<div class="audioplayer-volume-container"><div class="audioplayer-volume-wrapper"><div class="audioplayer-volume"><span class="audioplayer-volume-pointer"></span></div></div></div>'),t+='<div class="audioplayer-time-total">--:--</div></div></div></div><audio preload="auto"'+(n.data("settings").autoplay?" autoplay":"")+'></audio>
10<div class="audioplayer-controls"></div>',n.data("settings").tracklist&&(t+='<ul class="audioplayer-tracklist"> </ul>'),t}).addClass("audioplayer");var s=l(this).find("audio");s.on({canplay:function(){!1===n.data("settings").playing?s[0].pause():s[0].play()},ended:function(){n.data("settings").index+1<n.data("settings").count?n.data("settings").index++:n.data("settings").index=0,(0!=n.data("settings").index||0==n.data("settings").index&&n.data("settings").loop)&&(n.data("settings").playing=!0),a(n,n.data("settings").index)},pause:function(){n.data("settings").playing=!1,n.find(".audioplayer-pause-btn").removeClass("audioplayer-pause-btn").addClass("audioplayer-play-btn"),n.find(".audioplayer-play-btn").html('<i class="fa fa-play"></i>')},play:function(){n.data("settings").playing=!0,n.find(".audioplayer-play-btn").removeClass("audioplayer-play-btn").addClass("audioplayer-pause-btn"),n.find(".audioplayer-pause-btn").html('<i class="fa fa-pause"></i>')},loadedmetadata:function(){n.find(".audioplayer-time-elapsed").text(r(Math.round(s[0].currentTime))),n.find(".audioplayer-time-total").text(r(Math.round(s[0].duration)))},loaded:function(t,i){i&&s[0].play(),n.find(".audioplayer-overlay").animate({opacity:0}
10,240,function(){l(this).remove(),n.find(".audioplayer-controls").find(".btn").removeAttr("disabled")})},loading:function(t,i){i&&s[0].pause(),n.find(".audioplayer-controls").find(".btn").attr("disabled","disabled"),n.find(".audioplayer-cover").prepend(function(){return l("<div/>").attr({class:"audioplayer-overlay"}).css({opacity:"0"}).append(function(){return'<i class="fa fa-circle-o-notch fa-spin fa-3x fa-fw"></i>'}).animate({opacity:1},240)})},timeupdate:function(){var t=r(Math.round(s[0].currentTime)),i=100*s[0].currentTime/s[0].duration;n.find(".audioplayer-time-elapsed").text(t),n.find(".audioplayer-progress").css({width:i+"%"})}}),n.find(".audioplayer-progress-wrapper").on({click:function(t){var i=l(this).width(),e=100*(t.pageX-(l(this).offsetParent().offset().left+l(this).position().left))/i;n.find(".playlist-progress").css({width:e+"%"}),s[0].currentTime=s[0].duration/100*e}}),n.find(".audioplayer-controls").append(function(){return l("<a/>").attr({class:"audioplayer-controls-btn audioplayer-prev-btn btn btn",href:"javascript:void(0)"}).html('<i class="fa fa-backward"></i>').on("click",function(){-1<n.data("settings").index-1?n.data("settings").index--:n.data("settings").index=n.data("settings").count-1,a(n,n.data("settings").index)})}),n.find(".audioplayer-controls").append(function(){return l("<a/>").attr({class:function(){return n.data("settings").playing?"audioplayer-controls-btn audioplayer-play-btn btn":"audioplayer-controls-btn audioplayer-pause-btn btn"},href:"javascript:void(0)"}).html(function(){return n.data("settings").playing?'<i class="fa fa-pause"></i>':'<i class="fa fa-play"></i>'}).on("click",function(){n.data("settings").playing?n.find("audio")[0].pause():n.find("audio")[0].play()})}),n.data("settings").download&&n.find(".audioplayer-controls").append(function(){return l("<a/>").attr({class:"audioplayer-controls-btn audioplayer-download-btn btn",href:"#"}).prop({download:""}).html('<i class="fa fa-download"></i>')}),n.find(".audioplayer-controls").append(function(){return l("<a/>").attr({class:"audioplayer-controls-btn audioplayer-next-btn btn",href:"javascript:void(0)"}).html('<i class="fa fa-forward"></i>').on("click",function(){n.data("settings").index+1<n.data("settings").count?n.data("settings").index++:n.data("settings").index=0,a(n,n.data("settings").index)})}),n.data("settings").volume&&(n.find(".audioplayer-volume").css({width:100*s[0].volume+"%"}),n.find(".audioplayer-volume-wrapper").before(function(){return l("<span/>").attr({class:"audioplayer-volume-btn audioplayer-volume-down-btn"}).html('<i class="fa fa-volume-down"></i>').on("click",function(){s[0].muted?(s[0].muted=!1,l(this).html('<i class="fa fa-volume-down"></i>'),n.find(".audioplayer-volume").css({width:100*s[0].volume+"%"})):(s[0].muted=!0,l(this).html('<i class="fa fa-volume-off"></i>'),n.find(".audioplayer-volume").css({width:"0%"}))})}).after(function(){return l("<span/>").attr({class:"audioplayer-volume-btn audioplayer-volume-up-btn"}).html('<i class="fa fa-volume-up"></i>').on("click",function(){s[0].muted&&(s[0].muted=!1,n.find(".audioplayer-volume-down-btn").html('<i class="fa fa-volume-down"></i>')),s[0].volume=1,n.find(".audioplayer-volume").css({width:"100%"})})}),n.find(".audioplayer-volume-wrapper").on({click:function(t){s[0].muted&&(s[0].muted=!1,n.find(".audioplayer-volume-down-btn").html('<i class="fa fa-volume-down"></i>'));var i=l(this).width(),e=100*(t.pageX-(l(this).offsetParent().offset().left+l(this).position().left))/i;s[0].volume=(e/100).toFixed(1),n.find(".audioplayer-volume").css({width:e+"%"})}})),l.each(n.data("settings").tracks,function(t,i){if(i.artist=i.artist?i.artist:"",i.cover=!!i.cover&&i.cover,i.title=i.title?i.title:"",0===t&&(4<n.data("settings").tracks.length&&n.find(".audioplayer-tracklist").css({"overflow-y":"scroll"}),n.find(".audioplayer-cover").css({"background-image":i.cover?"url('"+i.cover+"')":""}),n.find(".audioplayer-title").text(i.title),n.find(".audioplayer-artist").text(i.artist)),n.data("settings").tracklist){n.find(".audioplayer-tracklist").append(function(){return l('<li class="audioplayer
10-track"/>').append(function(){return'<span class="audioplayer-track-cover"'+(i.cover?" style=\"background-image:url('"+i.cover+"')\")":"")+'></span><span class="audioplayer-track-meta"><span class="audioplayer-track-title">'+i.title+'</span><span class="audioplayer-track-artist">'+i.artist+'</span></span><span class="audioplayer-track-duration"></span>'}).on("click",function(){t!==n.data("settings").index&&a(n,t)})});var e=new Audio(i.file);e.addEventListener("loadedmetadata",function(){n.find(".audioplayer-tracklist li:eq("+t+")").find(".audioplayer-track-duration").text(r(Math.round(e.duration)))}),3===t&&n.find(".audioplayer-tracklist").css({height:n.find(".audioplayer-tracklist").height()+"px"})}}),a(n,n.data("settings").index)}});function a(e,t){var i=e.data("settings").tracks,o=i[t].file,n=e.find("audio")[0],s=e.data("settings").playing;if(e.find("audio").trigger("loading",s),e.data("settings").index=t,e.find(".audioplayer-artist").text(i[t].artist),i[t].cover&&e.find(".audioplayer-cover").css({"background-image":'url("'+i[t].cover+'")'}),e.find(".audioplayer-title").text(i[t].title),e.data("settings").tracklist&&(e.find(".audioplayer-track.current").removeClass("current"),e.find(".audioplayer-track:eq("+t+")").addClass("current")),e.find(".audioplayer-progress").css({width:"0%"}),e.find(".audioplayer-time-elapsed, .audioplayer-time-total").text("--:--"),e.data("settings").download){var a=i[t].file.split("/")[i[t].file.split("/").length-1];e.find(".audioplayer-download-btn").attr({download:a,href:i[t].file})}fetch(o).then(function(t){t.blob().then(function(t){t.size,t.type;var i=new FileReader;i.addEventListener("loadend",function(){n.src=i.result,n.load(),e.find("audio").trigger("loaded",s)}),i.readAsDataURL(t)})})}function r(t){var i=Number(t),e=Math.floor(i/3600),o=Math.floor(i%3600/60),n=Math.floor(i%3600%60);return(0<e?e+":":"")+(o<10?"0":"")+o+":"+(n<10?"0":"")+n}}})(jQuery),function(a,d){var i=function(t,i){this.elem=t,this.$elem=d(t),this.options=i,this.metadata=d(t).data()};((i.prototype={defaults:{cycling:!1,height:!1,heightfrom:!1,heightto:!1,hidecaption:!1,pauseonhover:!1,thumbnails:!1,transition:"slide"},adjust_height:function(t){var i=this,e=this.$elem.find(".item.active").outerHeight(),o=this.$elem.find(".item:eq("+t+")").outerHeight();o!=e?this.$elem.find(".carousel-inner").css({height:e+"px"}).delay(500).animate({height:o+"px"},240,function(){d(this).css({height:""}),i.$elem.trigger("on.afterSlide.carousel")}):setTimeout(function(){i.$elem.trigger("on.afterSlide.carousel")},740)},caption_position:function(){this.$elem.find(".item").each(function(){d(this).css({display:"block"}).find(".carousel-caption").css({bottom:function(){return-Math.abs(d(this).outerHeight())+"px"}}).data("from",-Math.abs(d(this).find(".carousel-caption").outerHeight())).closest(".item").css({display:""})})},caption_toggle:function(t){var i=this.$elem.find(".carousel-caption");i.animate({bottom:t?"0":i.data("from")+"px"},240)},cycling:function(){var t=this;setInterval(function(){t.pause||(t.timer=t.timer+1e3,t.timer>t.config.cycling&&t.next())},1e3)},fix_height:function(t){var i=!0;if(this.config.heightfrom||this.config.heightto){var e="";this.config.heightfrom&&(e+="(min-width: "+this.config.heightfrom+"px)"),this.config.heightfrom&&this.config.heightto&&(e+=" and "),this.config.heightto&&(e+="(max-width: "+this.config.heightto+"px)"),i=a.matchMedia(e).matches}if(i)if("auto"===this.config.height){var o=this.$elem.width()<this.$elem.find(".item:eq("+this.highest_img+")").find("img").prop("naturalWidth")?this.$elem.width()/this.$elem.find(".item:eq("+this.highest_img+")").find("img").prop("naturalWidth"):1;this.$elem.css({height:this.$elem.find(".item:eq("+this.highest_img+")").find("img").prop("naturalHeight")*o+"px"})}else this.$elem.css({height:this.config.height+"px"});else this.$elem.css({height:""})},indicators:function(){var i=this;this.$elem.find(".item").each(function(t){t===i.current?(d(this).addClass("active").css({display:""}),d('[data-slide-to="'+t+'"][data-target="#'+i.id+'"]').addClass("active")):(d(this).removeClass("active"),d('[data-sli
10de-to="'+t+'"][data-target="#'+i.id+'"]').removeClass("active"))})},init:function(){if(this.config=d.extend({},this.defaults,this.options,this.metadata),this.validTransition=["fade","slide"],this.config.cycling&&"number"!=typeof this.config.cycling)throw"SLIDER [EMS FRAMEWORK] : cycling option '"+this.config.cycling+"' is not a number.";if(this.config.height&&"string"==typeof this.config.height&&"auto"!=this.config.height)throw"SLIDER [EMS FRAMEWORK] : height option '"+this.config.height+"' is wrong.";if(this.config.height&&"string"!=typeof this.config.height&&"number"!=typeof this.config.height)throw"SLIDER [EMS FRAMEWORK] : height option '"+this.config.height+"' is wrong.";if(this.config.height&&this.config.heightfrom&&"number"!=typeof this.config.heightfrom)throw"SLIDER [EMS FRAMEWORK] : heightfrom option '"+this.config.heightfrom+"' is not a number.";if(this.config.height&&this.config.heightto&&"number"!=typeof this.config.heightto)throw"SLIDER [EMS FRAMEWORK] : heightto option '"+this.config.heightto+"' is not a number.";if("boolean"!=typeof this.config.pauseonhover)throw"SLIDER [EMS FRAMEWORK] : pauseonhover option '"+this.config.pauseonhover+"' is not a boolean.";if("boolean"!=typeof this.config.thumbnails)throw"SLIDER [EMS FRAMEWORK] : thumbnails option '"+this.config.thumbnails+"' is not a boolean.";if("string"!=typeof this.config.transition||-1===d.inArray(this.config.transition,this.validTransition))throw"SLIDER [EMS FRAMEWORK] : transition option '"+this.config.transition+"' is wrong.";var e=this;if(this.id=this.$elem.attr("id"),this.current=0,this.count=this.$elem.find(".item").length,this.pause=!1,this.timer=0,this.indicators(),this.config.cycling&&this.cycling(this.config.cycling),this.$elem.on({next:function(){e.next()},pause:function(){e.pause=!0},play:function(){e.pause=!1},prev:function(){e.prev()},"slide-to":function(t,i){i.index!=e.current&&i.index>e.current?e.next(i.index):i.index!=e.current&&e.prev(i.index)},mouseenter:function(){e.config.pauseonhover&&(e.pause=!0),e.config.hidecaption&&e.caption_toggle(!0)},mouseleave:function(){e.config.pauseonhover&&(e.pause=!1),e.config.hidecaption&&e.caption_toggle(!1)}}),d.isMobile()&&jQuery.mobile?this.$elem.find(".item").each(function(){d(this).on({swipeleft:function(){e.next()},swiperight:function(){e.prev()}})}):this.config.hidecaption&&(this.caption_position(),d(a).on({resize:function(){e.caption_position()}})),d('[data-slide][href="#'+this.id+'"], [data-slide][data-target="#'+this.id+'"]').each(function(){d(this).on("click",function(t){t.preventDefault(),"prev"===d(this).attr("data-slide")?e.prev():e.next()})}),d('[data-slide-to][href="#'+this.id+'"], [data-slide-to][data-target="#'+this.id+'"]').each(function(){d(this).on("click",function(t){t.preventDefault(),e.next(parseInt(d(this).attr("data-slide-to"),10))})}),this.config.height){if(this.$elem.not("[data-height]").attr("data-height",this.config.height),"auto"===this.config.height){var o=0;this.$elem.find(".item").each(function(t){var i=d(this).find("img");i.prop("naturalHeight")>o&&(o=i.prop("naturalHeight"),e.highest_img=t)})}this.fix_height(),d(a).on({resize:function(){e.fix_height()}})}if(this.config.thumbnails){this.$elem.not("[data-thumbnails]").attr("data-thumbnails","true"),d("<div/>").attr({class:"filmstrip",id:e.id+"-filmstrip"}).append(function(){return d("<div/>").attr({class:"filmstrip-inner"}).prepend(function(){return d("<span/>").attr({class:"filmstrip-frame"})}).append(function(){return d("<ul/>").attr({class:"filmstrip-thumbnails"}).prepend(function(){return d("<li/>").attr({class:"filmstrip-thumb virtual-thumb"})})})}).insertAfter(e.$elem);var t=d("#"+e.id+"-filmstrip"),n=t.find(".filmstrip-thumbnails");if(this.$elem.find(".item").each(function(t){var i=d(this).find("img");d("<img/>").attr({src:i.attr("src"),alt:i.attr("alt")}).on("load",function(){t+1===e.count&&e.$elem.trigger("on.thumbnailsLoaded.carousel")}).appendTo(n).wrap(function(){return d("<li/>").attr({"data-slide-to":t,"data-target":"#"+e.id,class:"filmstrip-thumb"+(e.current===t?" active":"")}).on({click:function(){d(this).hasClass("active")||e.next(t)}})})}),1<this.count){var i=d("<span/>").html('<i class="fa"></i>').addClass("filmstrip-control prev").on("click",function(){e.prev()}),s=d("<span/>").html('<i class="fa"></i>').addClass("filmstrip-control next").on("click",function(){e.next()});t.prepend(i).append(s)}this.resize_thumbnails(),d(a).on({resize:function(){e.resize_thumbnails()}})}return this},next:function(t){var i=this,e=i.$elem.find(".carousel-inner"),o=i.current+1<i.count?i.current+1:0;if(o=null!=t?t:o,i.pause=!0,i.$elem.trigger("on.beforeSlide.carousel"),e.find(".
10item:eq("+o+")").addClass("next"),i.config.height||i.adjust_height(o),"slide"==i.config.transition?(e.find(".item.active").animate({left:"-100%"},500,function(){d(this).css({left:""}),i.current=o,i.timer=0,i.pause=!1,i.indicators()}),e.find(".item.next").animate({left:"0"},500,function(){d(this).css({left:""}).removeClass("next"),i.config.height&&i.$elem.trigger("on.afterSlide.carousel")})):(e.find(".item.active").css({opacity:"1"}).animate({opacity:"0"},500,function(){d(this).css({opacity:""}),i.current=o,i.timer=0,i.pause=!1,i.indicators()}),e.find(".item.next").css({left:"0",opacity:"0",zindex:"1"}).animate({opacity:"1"},500,function(){d(this).css({left:"",opacity:"",zindex:""}).removeClass("next"),i.config.height&&i.$elem.trigger("on.afterSlide.carousel")})),i.config.thumbnails){var n=d("#"+i.id+"-filmstrip").find(".filmstrip-thumbnails"),s=n.find('[data-slide-to="'+o+'"]');n.find(".active").removeClass("active"),s.addClass("active"),n.append(function(){var t=d(),i=n.find(".filmstrip-thumb").index(s);return n.find(".filmstrip-thumb:lt("+i+")").each(function(){t=t.add(d(this).clone(!0))}),t}).animate({left:"-"+s.position().left+"px"},500,function(){n.find(".active").prevAll().remove(),n.css({left:""})})}},prev:function(t){var i=this,e=i.$elem.find(".carousel-inner"),o=0<=i.current-1?i.current-1:i.count-1;if(o=null!=t?t:o,i.pause=!0,i.$elem.trigger("on.beforeSlide.carousel"),e.find(".item:eq("+o+")").addClass("prev"),i.config.height||i.adjust_height(o),"slide"==i.config.transition?(e.find(".item.active").animate({left:"100%"},500,function(){d(this).css({left:""}),i.current=o,i.timer=0,i.pause=!1,i.indicators()}
10),e.find(".item.prev").animate({left:"0"},500,function(){d(this).css({left:""}).removeClass("prev"),i.config.height&&i.$elem.trigger("on.afterSlide.carousel")})):(e.find(".item.active").css({opacity:"1"}).animate({opacity:"0"},500,function(){d(this).css({opacity:""}),i.current=o,i.timer=0,i.pause=!1,i.indicators()}),e.find(".item.prev").css({left:"0",opacity:"0",zindex:"1"}).animate({opacity:"1"},500,function(){d(this).css({left:"",opacity:"",zindex:""}).removeClass("prev"),i.config.height&&i.$elem.trigger("on.afterSlide.carousel")})),i.config.thumbnails){var n=d("#"+i.id+"-filmstrip").find(".filmstrip-thumbnails"),s=n.find('[data-slide-to="'+o+'"]'),a=0;n.find(".active").removeClass("active"),s.addClass("active"),n.prepend(function(){var t=d(),i=n.find(".filmstrip-thumb").index(s);return n.find(".filmstrip-thumb:eq("+i+"), .filmstrip-thumb:gt("+i+")").each(function(){t=t.add(d(this).clone(!0)),a-=d(this).outerWidth(!0)}),t}).css({left:a+"px"}).animate({left:"0px"},500,function(){var t=n.find(".filmstrip-thumb").index(n.find(".active:last"));n.find(".filmstrip-thumb:eq("+t+"), .filmstrip-thumb:gt("+t+")").remove()})}},resize_thumbnails:function(){var s=this,a=d("#"+this.id+"-filmstrip"),t=a.find(".filmstrip-thumbnails"),r=parseInt(t.find(".filmstrip-thumb:first").css("margin-left").replace("px",""),10),l=t.find(".filmstrip-thumb:first").outerWidth(),h=t.find(".filmstrip-thumb:first").outerHeight(),c=a.find(".filmstrip-control.prev").outerWidth(!0)+a.find(".filmstrip-control.next").outerWidth(!0),f=parseInt(a.css("padding-left").replace("px",""),10)+parseInt(a.css("padding-right").replace("px",""),10);a.addClass("hide").find(".filmstrip-frame").css({width:l,height:h}),t.css({"margin-left":"-"+r+"px"}).find(".virtual-thumb").remove(),t.find(".filmstrip-thumb").find("img:first").each(function(t){var i=new Image;i.src=d(this).attr("src");var e=s.resize_img(i.width,i.height,l,h,!1);if(d(this).attr({width:e.width,height:e.height}).css({left:e.left,top:e.top}),t+1===s.count){var o=s.$elem.outerWidth()-(c+f),n=(l+r)*s.count-r;a.removeClass("hide").find(".filmstrip-inner").css({width:function(){return(n<o?n:Math.floor(o/(l+r))*(l+r)-r)+"px"}})}})},resize_img:function(t,i,e,o,n){var s={width:0,height:0,fScaleToTargetWidth:!0};if(t<=0||i<=0||e<=0||o<=0)return s;if(t<e&&i<o)s.width=t,s.height=i;else{var a=e,r=i*e/t,l=t*o/i,h=o,c=e<l;(c=c?n:!n)?(s.width=Math.floor(a),s.height=Math.floor(r),s.fScaleToTargetWidth=!0):(s.width=Math.floor(l),s.height=Math.floor(h),s.fScaleToTargetWidth=!1)}return s.left=Math.floor((e-s.width)/2),s.top=Math.floor((o-s.height)/2),s}}).constructor=i).defaults=i.prototype.defaults,d.fn.carousel=function(t){return"current"===t?d(this).find(".item").index(d(this).find(".item.active")):this.each(function(){"string"==typeof t?d(this).trigger(t):"number"==typeof t?d(this).trigger("slide-to",[{index:t}]):void 0!==t&&"object"!=typeof t||new i(this,t).init()})},a.Carousel=i}(window,jQuery),function(o){o.fn.clickable=function(t){var e={classname:null,maxwidth:991,target:null};return this.each(function(){var i=o.extend({},e,t);if(o(this).data()&&o.extend(i,o(this).data()),"number"!=typeof i.maxwidth)throw"CLICKABLE [EMS FRAMEWORK] : maxwidth option '"+i.maxwidth+"' is not a number.";i.target=i.target?i.target:o(this).find("a:first").attr("href"),o(this).unbind("mouseenter mouseleave click").on({mouseenter:function(){window.matchMedia("(max-width: "+i.maxwidth+"px)").matches&&i.classname&&o(this).addClass(i.classname)},mouseleave:function(){i.classname&&o(this).removeClass(i.classname)},click:function(t){window.matchMedia("(max-width: "+i.maxwidth+"px)").matches&&(t.preventDefault(),document.location.href=i.target)}})})}}(jQuery),ems.clickable={},ems.clickable.init=function(){$('[data-provide="clickable"]').each(function(){$(this).clickable()})},function(t,e){var i=function(t,i){this.elem=t,this.$elem=e(t),this.options=i,this.metadata=e(t).data()};((i.prototype={defaults:{accordion:null,orientation:"vertical",parent:null},init:function(){if(this.config=e.extend({},this.defaults,this.options,this.metadata),this.validOrientation=["vertical","horizontal"],this.config.accordion&&!this.$elem.closest(this.config.accordion).length)throw"COLLAPSE [EMS FRAMEWORK] : accordion o
10ption '"+this.config.accordion+"' is undefined.";if(this.config.parent&&!this.$elem.closest(this.config.parent).length)throw"COLLAPSE [EMS FRAMEWORK] : parent option '"+this.config.parent+"' is undefined.";if("string"!=typeof this.config.orientation||-1===e.inArray(this.config.orientation,this.validOrientation))throw"COLLAPSE [EMS FRAMEWORK] : orientation option '"+this.config.orientation+"' is undefined.";var i=this;return this.$elem.on({hide:function(t){e(this).hasClass("in")&&i.up()},reset:function(){i.reset()},show:function(){e(this).hasClass("in")||i.down()},toggle:function(){i.toggle()}}),i},up:function(){var t=this;this.$elem.trigger("on.hide.collapse"),this.config.accordion||!this.config.accordion&&"vertical"===this.config.orientation?this.$elem.slideUp(240,function(){e(this).removeClass("in").removeAttr("style"),t.config.parent&&e(this).closest(t.config.parent).removeClass("open"),e(this).trigger("on.hidden.collapse")}):this.$elem.animate({left:"-"+this.$elem.width()},240,function(){e(this).removeClass("in drawer").css("left",""),t.config.parent&&e(this).closest(t.config.parent).removeClass("open"),e(this).trigger("on.hidden.collapse")})},reset:function(){this.config={},this.$elem.unbind("hide reset show toggle on.show.collapse on.shown.collapse on.hide.collapse on.hidden.collapse").removeData()},down:function(){var t=this;this.config.accordion?e(this.config.accordion).find(".in").length?(e(this.config.accordion).find(".in").trigger("on.hide.collapse"),e(this.config.accordion).find(".in").slideUp(240,function(){e(this).removeClass("in").removeAttr("style"),e(this).trigger("on.hidden.collapse"),t.$elem.trigger("on.show.collapse"),t.$elem.slideDown(240,function(){e(this).addClass("in").removeAttr("style"),t.config.parent&&(e(t.config.accordion).find(".open").removeClass("open"),e(this).closest(t.config.parent).addClass("open")),e(this).trigger("on.shown.collapse")})})):(this.$elem.trigger("on.show.collapse"),this.$elem.slideDown(240,function(){e(this).addClass("in").removeAttr("style"),t.config.parent&&e(this).closest(t.config.parent).addClass("open"),e(this).trigger("on.shown.collapse")})):(this.$elem.trigger("on.show.collapse"),"vertical"===this.config.orientation?this.$elem.slideDown(240,function(){e(this).addClass("in").removeAttr("style"),t.config.parent&&e(this).closest(t.config.parent).addClass("open"),e(this).trigger("on.shown.collapse")}):this.$elem.addClass("drawer").animate({left:0},240,function(){e(this).addClass("in").css("left",""),t.config.parent&&e(this).closest(t.config.parent).addClass("open"),e(this).trigger("on.shown.collapse")}))},toggle:function(){this.$elem.hasClass("in")?this.up():this.down()}}).constructor=i).defaults=i.prototype.defaults,e.fn.collapse=function(t){return this.each(function(){"string"==typeof t?e(this).trigger(t):void 0!==t&&"object"!=typeof t||new i(this,t).init()})},t.Collapse=i}(window,jQuery),ems.collapse={},ems.collapse.init=function(){$('[data-toggle="collapse"]').each(function(){var i=$(this).data("target")?$(this).data("target"):$(this).attr("href"),t=$(this).data();$(i).collapse(t),$(this).on("click",function(t){$(this).not(".disabled, :disabled")&&(t.preventDefault(),t.stopPropagation(),$(i).collapse("toggle"))})})},function(t,e){var i=function(t,i){this.elem=t,this.$elem=e(t),this.options=i,this.metadata=e(t).data()};((i.prototype={defaults:{animation:!1},init:function(){if(this.config=e.extend({},this.defaults,this.options,this.metadata),this.validAnimation=["fade","slide"],this.config.animation&&-1===e.inArray(this.config.animation,this.validAnimation))throw"DROPDOWN [EMS FRAMEWORK] : animation option '"+this.config.animation+"' is wrong.";var i=this;return i.$elem.on({click:function(t){e(this).not(".disabled, :disabled")&&t.preventDefault(),t.stopPropagation(),i.toggle()},hide:function(){e(this).parent(".dropdown").hasClass("open")&&i.hide()},reset:function(){i.reset()},show:function(){e(this).parent(".dropdown").hasClass("open")||i.show()},toggle:function(){i.toggle()}}),i},hide:function(){var t=this;t.$elem.trigger("on.hide.dropdown"),t.config.animation?"fade"===t.config.animation?t.$elem.next(".dropdown-menu").fadeOut(240,function(){e(this).parent(".dropdown").removeClass("open"),e(this).css("display",""),t.$elem.trigger("on.hidden.dropdown")}):t.$elem.next(".dropdown-menu").slideUp(240,function(){e(this).parent(".dropdown").removeClass("open"),e(this).css("display",""),t.$elem.trigger("on.hidden.dropdown")}):(t.$elem.parent(".dropdown").removeClass("open"),t.$elem.trigger("on.hidden.dropdown"))},reset:function(){this.config={},this.$elem.unbind("click hide reset show toggle on.show.dropdown on.shown.dropdown on.hide.dropdown on.hidden.dropdown").removeData()},show:function(){var t=this;e(".dropdown.open").find('[data-toggle="dropdown"]').each(function(){e(this).trigger("hide")}),t.$elem.trigger("on.show.dropdown"),t.config.animation?(t.$elem.next(".dropdown-menu").css("display","none"),"fade"===t.config.animation?t.$elem.next(".dropdown-menu").fadeIn(240,function(){e(this).parent(".dropdown").addClass("open"),e(this).css("display",""),t.$elem.trigger("on.shown.dropdown")}):t.$elem.next(".dropdown-menu").slideDown(240,function(){e(this).parent(".dropdown").addClass("open"),e(this).css("display",""),t.$elem.trigger("on.shown.dropdown")})):(t.$elem.parent(".dropdown").addClass("open"),t.$elem.trigger("on.shown.dropdown"))},toggle:function(){this.$elem.parent(".dropdown").hasClass("open")?this.hide():this.show()}}).constructor=i).defaults=i.prototype.defaults,e.fn.dropdown=function(t){return this.each(function(){"string"==typeof t?e(this).trigger(t):void 0!==t&&"object"!=typeof t||new i(this,t).init()})},t.Dropdown=i}(window,jQuery),ems.dropdown={},ems.dropdown.init=function(){$(document).on({click:function(t){$(".dropdown.open").length&&$(".dropdown.open")!==t.target&&!$(".dropdown.open").has(t.target).length&&$(".dropdown.open").find('> [data-toggle="dropdown"]').trigger("hide")}}),$('[data-toggle="dropdown"]').each(function(){$(this).dropdown()})},function(o,n){var e=function(t,i){this.elem=t,this.$elem=n(t),this.options=i,this.metadata=n(t).data()};((e.prototype={defaults:{classname:null,from:0,offset:0,to:null,viewportmax:null,viewportmin:null,width:null},init:function(){if(this.config=n.extend({},this.defaults,this.options,this.metadata),this.config.from&&"number"!=typeof this.config.from&&"string"!=typeof this.config.from)throw"FIX [EMS FRAMEWORK] : from option '"+this.config.from+"' is not a number or a string.";if("string"==typeof this.config.from&&0===n(this.config.from).length)throw"FIX [EMS FRAMEWORK] : element '"+this.config.from+"' is undefined.";if(1<n(this.config.from).length)throw"FIX [EMS FRAMEWORK] : element '"+this.config.from+"' is ambiguous.";if(this.config.to&&"number"!=typeof this.config.to&&"string"!=typeof this.config.to)throw"FIX [EMS FRAMEWORK] : to option '"+this.config.to+"' is not a number or a string.";if(this.config.to&&"string"==typeof this.config.to&&0===n(this.config.to).length)throw"FIX [EMS FRAMEWORK] : element '"+this.config.to+"' is undefined.";if(this.config.to&&"string"==typeof this.config.to&&1<n(this.config.to).length)throw"FIX [EMS FRAMEWORK] : element '"+this.config.to+"' is ambiguous.";if(this.config.offset&&"number"!=typeof this.config.offset)throw"FIX [EMS FRAMEWORK] : offset option '"+this.config.offset+"' is not a number.";if(this.config.viewportmax&&"number"!=typeof this.config.viewportmax)throw"FIX [EMS FRAMEWORK] : wiewportmax option '"+this.config.wiewportmax+"' is not a number.";if(this.config.viewportmin&&"number"!=typeof this.config.viewportmin)throw"FIX [EMS FRAMEWORK] : wiewportmin option '"+this.config.wiewportmin+"' is not a number.";if(this.config.viewportmin&&this.config.viewportmax&&this.config.viewportmin>=this.config.viewportmax)throw"FIX [EMS FRAMEWORK] : wiewportmin option '"+this.config.wiewportmin+"' is greater than '"+this.config.wiewportmax+"'.";if(this.config.width&&"number"!=typeof this.config.width&&"string"!=typeof this.config.width)throw"FIX [EMS FRAMEWORK] : width option '"+this.config.width+"' is not a number or a string.";if(this.config.width&&"string"==typeof this.config.width&&0===n(this.config.width).length)throw"FIX [EMS FRAMEWORK] : element '"+this.config.width+"' is undefined.";if(this.config.width&&"string"==typeof this.config.width&&1<n(this.config.width).length)throw"FIX [EMS FRAMEWORK] : element '"+this.config.width+"' is ambiguous.";var e=this;return this.fixstart=!1,this.fixend=!1,this.$elem.on({refresh:function(t,i){"object"==typeof i&&n.extend(e.config,i),e.remove(),e.settings(),n(this).trigger("on.refresh.fix")},reset:function(){e.reset()}}),n(o).on({resize:function(){e.config&&(e.remove(),e.settings())},scroll:function(){e.config&&e.position()}}),this.settings(),n(o).trigger("scroll"),e},position:function(){var t=this,i=!0;if(this.config.viewportmin||this.config.viewportmax){var e="";this.config.viewportmin&&(e+="(min-width: "+this.config.viewportmin+"px)"),this.config.viewportmin&&this.config.viewportmax&&(e+=" and "),this.config.viewportmax&&(e+="(max-width: "+this.config.viewportmax+"px)"),i=o.matchMedia(e).matches}i&&n(o).scrollTop()>=this.startTo?(this.$elem.css({position:"fixed",left:t.posX,width:function(){return t.config.width?("number"!=typeof t.config.width?n(t.config.width).outerWidth():t.config.width)+"px":""}}),!this.endTo||this.endTo&&n(o).scrollTop()<this.endTo?(this.fixstart||(this.fixstart=!0,this.fixend=!1,this.$elem.trigger("on.start.fix")),this.$elem.css({top:t.posY-t.startTo+"px",transform:""}).addClass(function(){return t.config.classname?t.config.classname:""})):this.endTo&&n(o).scrollTop()>=this.endTo&&(this.fixend||(this.fixend=!0,this.fixstart=!1,this.$elem.trigger("on.end.fix")),this.$elem.css({transform:"translateY("+(t.endTo-n(o).scrollTop())+"px)"}).removeClass(function(){return t.config.classname?t.config.classname:""}))):((this.fixstart||this.fixend)&&(this.fixstart=!1,this.fixend=!1,this.$elem.trigger("on.end.fix")),this.remove())},remove:function(){var t=this;this.$elem.css({position:"",top:"",left:"",width:""}).removeClass(function(){return t.config.classname?t.config.classname:""}),this.$elem.filter('[style=""]').removeAttr("style"),this.$elem.filter('[class=""]').removeAttr("class")},reset:function(){this.remove(),this.$elem.unbind("refresh reset on.start.fix on.end.fix"),delete this.config,delete this.defaults,delete this.options,delete this.metadata},settings:function(){this.posY=this.$elem.offset().top,this.posX=this.$elem.offset().left,this.startTo="string"==typeof this.config.from?n(this.config.from).offset().top:this.config.from,this.startTo=this.startTo>=this.config.offset?this.startTo-this.config.offset:this.startTo,this.endTo=null===this.config.to?n("body").outerHeight():this.config.to,this.endTo="str
10ing"==typeof this.endTo?this.startTo+n(this.endTo).outerHeight()-this.$elem.outerHeight():this.endTo;var t=parseInt(n("body").css("padding-top").replace("px",""),10)+parseInt(n("body").css("margin-top").replace("px",""),10);this.endTo=this.endTo-t,this.startTo=this.startTo-t,this.position()}}).constructor=e).defaults=e.prototype.defaults,n.fn.fix=function(t,i){return this.each(function(){"string"==typeof t?n(this).trigger(t,i):void 0!==t&&"object"!=typeof t||new e(this,t).init()})},o.Fix=e}(window,jQuery),ems.fix={},ems.fix.init=function(){$('[data-provide="fix"]').each(function(){$(this).fix()})},function(t,l){var i=function(t){this.elem=t,this.$elem=l(t)};(i.prototype={init:function(){var r=this;return this.$elem.on({submit:function(t){var i={submit:!0};if(l(this).trigger("on.submit.validate",[i]),i.submit){var a=[];l(this).find(".has-required").each(function(){if("LABEL"===l(this).prop("tagName")||l(this).hasClass("as-label"))var t=l(this),i=l(this).closest(".control-group");else t=0!==l(this).find(".as-label").length?l(this).find(".as-label"):l(this).find("label:first"),i=l(this);var e={};e.index=r.$elem.find(".control-group").index(i),e.label=l.trim(t.text()),e.isvalid=!1;var o=!!t.is("[for]")&&l("#"+t.attr("for"));o||(0!==i.find('input:not([type="hidden"])').length?o=i.find('input:not([type="hidden"]):first'):0!==i.find("select:visible").length?o=i.find("select:visible:first"):0!==i.find("textarea:visible").length&&(o=i.find("textarea:visible:first")));var n=o.is("[type]")?o.prop("type"):o.prop("tagName");if("radio"==n||"checkbox"==n){var s=i.find('input[type="'+n+'"]:first').attr("name");0!=l('input[name="'+s+'"]:checked').length&&(e.isvalid=!0)}else"file"!=n||i.hasClass("has-empty")?o.val()&&(e.isvalid=!0):e.isvalid=!0;a.push(e)});var e=0;for($i=0;$i<a.length;$i++)a[$i].isvalid||(r.$elem.find(".control-group:eq("+a[$i].index+")").addClass("has-error"),e++);if(0===e){var o={success:!0};return l(this).trigger("on.success.validate",[o]),o.success}return l(this).trigger("on.error.validate",[a]),!1}return!1}}),r}}).constructor=i,l.fn.validate=function(){return this.each(function(){new i(this).init()})},t.Validate=i}(window,jQuery),ems.form_validation={},ems.form_validation.init=function(){$('form[data-provide="validate"]').each(function(){$(this).validate()})},function(t,e){var i=function(t){this.options=t};((i.prototype={defaults:{buttonCancel:null,buttonConfirm:null,classname:null,content:null,height:null,id:null,title:null,type:null,width:null},init:function(){if(this.config=e.extend({},this.defaults,this.options),this.validType=["error","primary","success","warning"],null!=this.config.buttonCancel&&"string"!=typeof this.config.buttonCancel)throw"MODAL [EMS FRAMEWORK] : buttonCancel option is not a string.";if(null!=this.config.buttonConfirm&&"string"!=typeof this.config.buttonConfirm)throw"MODAL [EMS FRAMEWORK] : buttonConfirm option is not a string.";if(null!=this.config.classname&&"string"!=typeof this.config.classname)throw"MOADL [EMS FRAMEWORK] : classname option '"+this.config.classname+"' is not a string.";if(null===this.config.content)throw"MODAL [EMS FRAMEWORK] : content option is undefined.";if("string"!=typeof this.config.content&&"object"!=typeof this.config.content)throw"MODAL [EMS FRAMEWORK] : content option must be a string or a jQuery object.";if("object"==typeof this.config.content&&!this.config.content.length)throw"MODAL [EMS FRAMEWORK] : content object is undefined.";if(null!=this.config.height&&"number"!=typeof this.config.height&&"string"!=typeof this.config.height)throw"MODAL [EMS FRAMEWORK] : height option '"+this.config.height+"' is wrong.";if(null!=this.config.height&&"string"==typeof this.config.height&&"auto"!=this.config.height)throw"MODAL [EMS FRAMEWORK] : height option '"+this.config.height+"' is wrong.";if(null!=this.config.id&&"string"!=typeof this.config.id)throw"MODAL [EMS FRAMEWORK] : id option is not a string.";if(null!=this.config.title&&"string"!=typeof this.config.title)throw"MODAL [EMS FRAMEWORK] : title option is not a string.";if(null!=this.config.type&&"string"!=typeof this.config.type)throw"MODA
10L [EMS FRAMEWORK] : title option is not a string.";if(null!=this.config.type&&-1===e.inArray(this.config.type,this.validType))throw"MODAL [EMS FRAMEWORK] : type option '"+this.config.type+"' is wrong.";if(null!=this.config.width&&"number"!=typeof this.config.width)throw"MODAL [EMS FRAMEWORK] : width option is not a number.";var t=this;"object"==typeof t.config.content&&t.config.content.wrap('<div class="modal-placeholder hide"></div>');var i='<div class="modal-overlay"><div class="modal'+(this.config.type?" modal-"+this.config.type:"")+'"'+(this.config.id?' id="'+this.config.id+'"':"")+">"+(this.config.title?'<div class="modal-heading'+(this.config.type?" bg-"+this.config.type:"")+'"><span class="modal-title">'+this.config.title+"</span></div>":"")+'<div class="modal-body'+(this.config.classname?" "+this.config.classname:"")+'"></div><div class="modal-footer"><button type="button" class="btn btn-default" data-role="modal-cancel">'+(this.config.buttonCancel?this.config.buttonCancel:"Fermer")+"</button>"+(this.config.buttonConfirm?'<button type="button" class="btn btn-primary" data-role="modal-confirm">'+this.config.buttonConfirm+"</button>":"")+"</div></div></div>";return e(i).appendTo("body").find(".modal").css({width:function(){return t.config.width?t.config.width+"px":""}}).find(".modal-body").css({height:function(){return t.config.height?"number"==typeof t.config.height?t.config.height+"px":"auto":""},"max-height":function(){return t.config.height?"none":""}}).append(function(){return t.config.content}),e("body").addClass("modal-open"),e(".modal-overlay").addClass("in").on({click:function(t){var i=e(".modal");i===t.target||i.has(t.target).length||(t.stopPropagation(),e.modal("hide"))}}),e(".modal-overlay").find(".modal-footer").find(".btn").on("click",function(){if("modal-confirm"===e(this).data("role")){if(!e(".modal-overlay").triggerHandler("on.confirm.modal"))return!1;e.modal("hide")}else e(".modal-overlay").trigger("on.cancel.modal"),e.modal("hide")}),e(".modal-overlay").on({"on.confirm.modal":function(t){return t}}),e(".modal-overlay")}}).constructor=i).defaults=i.prototype.defaults,e.modal=function(t){if("hide"===t)e(".modal-overlay").removeClass("in").delay(500).queue(function(){e(".modal-placeholder").length&&e(".modal-placeholder").append(e(".modal-body").contents()).children().first().unwrap(),e(this).parents("body").removeClass("modal-open").find(".modal-overlay").remove(),e(this).dequeue()});else if("object"==typeof t)return new i(t).init()},t.Modal=i}(window,jQuery),function(c,f){var i=function(t,i){this.elem=t,this.$elem=f(t),this.options=i,this.metadata=f(t).data()};((i.prototype={defaults:{background:null,height:null,inertia:.5,posx:"center",posy:"center",responsive:!0,scroller:"window",viewportmin:null},init:function(){if(this.config=f.extend({},this.defaults,this.options,this.metadata),this.validPosX=["left","center","right"],this.validPosY=["top","center","bottom"],this.validScroller=["window","parent"],!this.config.background)throw"PARALLAX [EMS FRAMEWORK] : background option is undefined.";if(this.config.height&&"string"!=typeof this.config.height)throw"PARALLAX [EMS FRAMEWORK] : height option '"+this.config.height+"' is not a string.";if("number"!=typeof parseInt(this.config.inertia))throw"PARALLAX [EMS FRAMEWORK] : inertia option '"+this.config.inertia+"' is not a number.";if(-1===f.inArray(this.config.posx,this.validPosX))throw"PARALLAX [EMS FRAMEWORK] : posx option '"+this.config.posx+"' is wrong.";if(-1===f.inArray(this.config.posy,this.validPosY))throw"PARALLAX [EMS FRAMEWORK] : posy option '"+this.config.posy+"' is wrong.";if(this.config.responsive&&"boolean"!=typeof this.config.responsive)throw"PARALLAX [EMS FRAMEWORK] : responsive option '"+this.config.responsive+"' is not a boolean.";if(-1===f.inArray(this.config.scroller,this.validScroller))throw"PARALLAX [EMS FRAMEWORK] : scroller option '"+this.config.scroller+"' is wrong.";if(this.config.viewportmin&&"number"!=typeof this.config.viewportmin)throw"PARALLAX [EMS FRAMEWORK] : viewportmin option '"+this.config.viewportmin+"' is not a number.";var t=this;return this.$scroller="window"==this.config.scroller?f(c):this.$elem.parent(),this.scrolling=!1,this.$wrapper=this.$elem.parent(),this.img=new Image,this.img.src=this.config.background,this.$scroller.on({scroll:function(){t.scrolling||(requestAnimationFrame(function(){t.scroll()}),t.scrolling=!0)},resize:function(){t.resize()}}),this.$wrapper.filter(":not(body)").css({position:"relative"}),this.$elem.css({height:function(){return t.config.height?t.config.height:""}}).addClass("parallax"),f(this.img).on("load",function(){f("<div/>").attr({class:"parallax-img"}).css({background:"url("+t.img.src+") center center / cover no-repeat"}).appendTo(t.$elem),t.resize()}),t},resize:function(){var t=this.config.responsive?this.$elem.outerWidth()/this.img.width:1,i=this.img.height*t;this.$elem.find(".parallax-img").css({height:i+"px"}),this.scroll()},scroll:function(){this.scrolling=!1;var t=this.$elem.find(".parallax-img").height(),i=this.$elem.find(".parallax-img").width();if("top"===this.config.posy)var e=0;else if("center"===this.config.posy)e=Math.round(-Math.abs((t-this.$elem.outerHeight())/2));else if(t>this.$elem.outerHeight())e=Math.round(-Math.abs(t-this.$elem.outerHeight()));else e=Math.round(Math.abs(this.$elem.outerHeight()-t));if("left"===this.config.posx)var o=0;else if("center"===this.config.posx)o=-Math.abs((i-this.$elem.outerWidth())/2);else o=Math.round(this.$elem.outerWidth()-i);var n="window"==this.config.scroller?f(c).scrollTop():this.$wrapper.scrollTop(),s="window"==this.config.scroller?f(c).height():this.$scroller.outerHeight(),a="window"==this.config.scroller?this.$elem.offset().top:this.$elem.position().top,r=a<=s?0:a-s,l=r+this.$elem.outerHeight();if(!(n<r||l<=n)){if(!this.config.viewportmin||this.config.viewportmin&&c.matchMedia("(min-width: "+this.config.viewportmin+"px)").matches)var h=e+(n-r)*this.config.inertia;else if("top"===this.config.posy)h=0;else if("center"===this.config.posx)h=(this.$elem.outerHeight()-t)/2;else h=this.$elem.outerHeight()-t;this.$elem.find(".parallax-img").css({transform:"translate3d("+parseFloat(o).toFixed(0)+"px, "+parseFloat(h).toFixed(0)+"px, 0)"})}}}).constructor=i).defaults=i.prototype.defaults,f.fn.parallax=function(t){return this.each(function(){void 0!==t&&"object"!=typeof t||new i(this,t).init()})},c.Parallax=i}(window,jQuery),ems.parallax={},ems.parallax.init=function(){$('[data-provide="parallax"]').each(function(){$(this).parallax()})},function(t,o){var i=function(t,i){this.elem=t,this.$elem=o(t).is("body")?o("body, html"):o(t),this.options=i,this.metadata=o(t).data()};((i.prototype={defaults:{classname:"active",offset:0,speed:240,target:null},set_coord:function(t){var i=o("#"+t.attr("href").split("#")[1]);if(this.$elem.is("body"))var e=1==o(".navbar-fixed-top").length?i.offset().top-o(".navbar-fixed-top").outerHeight():i.offset().top;else e=this.$elem.scrollTop()+i.position().top;t.attr({"data-from":0!=this.config.offset&&e>this.config.offset?Math.round(e-this.config.offset):Math.round(e),"data-to":Math.round(e+i.outerHeight())})},init:function(){if(this.config=o.extend({},this.defaults,this.options,this.metadata),"string"!=typeof this.config.classname)throw"SCROLLSPY [EMS FRAMEWORK] : classname option '"+this.config.classname+"' is not a string.";if(0===this.config.classname.length)throw"SCROLLSPY [EMS FRAMEWORK] : classname option '"+this.config.classname+"' is empty.";if("number"!=typeof this.config.offset)throw"SCROLLSPY [EMS FRAMEWORK] : offset option '"+this.config.offset+"' is not a number.";if("number"!=typeof this.config.speed)throw"SCROLLSPY [EMS FRAMEWORK] : speed option '"+this.config.speed+"' is not a number.";if(null===this.config.target)throw"SCROLLSPY [EMS FRAMEWORK] : target option is undefined.";if(!o(this.config.target).length)throw"SCROLLSPY [EMS FRAMEWORK] : target option '"+this.config.target+"' is undefined.";if(1<o(this.config.target).length)throw"SCROLLSPY [EMS FRAMEWORK] : target '"+this.config.to+"' is ambiguous.";var e=this;return this.$scroller=o(this.elem).is("body")?o(t):o(this.elem),this.$elem.not("body")&&"static"===this.$elem.css("position").toLowerCase()&&this.$elem.css("position","relative"),o(this.config.target).find('a[href^="'+t.location.href+'#"], a[href^="#"]').filter(':not([href$="#"])').each(function(){var i=o(this),t=i.attr("href").split("#")[1];0!=e.$elem.find("#"+t).length&&(e.set_coord(o(this)),o(this).on("click",function(t){t.preventDefault(),e.$elem.trigger("on.beforeScroll.
10scrollspy"),e.$elem.animate({scrollTop:o(this).data("from")},e.config.speed,function(){i.trigger("blur"),e.$elem.trigger("on.afterScroll.scrollspy")})}))}),this.$scroller.on({resize:function(){o(e.config.target).find("a[data-from]").each(function(){e.set_coord(o(this))}),e.$scroller.trigger("scroll")},scroll:function(){o(e.config.target).find("a[data-from]").each(function(){e.$scroller.scrollTop()>=o(this).data("from")&&e.$scroller.scrollTop()<o(this).data("to")?o(this).parent().hasClass(e.config.classname)||(o(this).trigger("on.start.scrollspy"),o(this).parent().addClass(e.config.classname)):o(this).parent().hasClass(e.config.classname)&&(o(this).trigger("on.stop.scrollspy"),o(this).parent().removeClass(e.config.classname))})}}).trigger("scroll"),e}}).constructor=i).defaults=i.prototype.defaults,o.fn.scrollspy=function(t){return this.each(function(){void 0!==t&&"object"!=typeof t||new i(this,t).init()})},t.Scrollspy=i}(window,jQuery),ems.scrollspy={},ems.scrollspy.init=function(){$('[data-provide="scrollspy"]').each(function(){$(this).scrollspy()})},function(t,e){var i=function(t,i){this.elem=t,this.$elem=e(t),this.options=i,this.metadata=e(t).data()};((i.prototype={defaults:{animation:!1},init:function(){if(this.config=e.extend({},this.defaults,this.options,this.metadata),this.validAnimation=["fade","rise","slide"],this.config.animation&&-1===e.inArray(this.config.animation,this.validAnimation))throw"SUBNAV [EMS FRAMEWORK] : animation option '"+this.config.animation+"' is wrong.";var o=this;return o.$elem.on({click:function(t){e(this).parents(".navbar").length?e.isMobile()?t.preventDefault():t.stopPropagation():(t.preventDefault(),t.stopPropagation(),e(this).parent(".subnav").hasClass("open")?o.hide("slide"):o.show("slide"))},hide:function(t,i){var e=void 0===i?this.config.animation:i.animation;t.preventDefault(),t.stopPropagation(),o.hide(e)},reset:function(){o.reset()},show:function(){e(this).parent(".subnav").hasClass("open")||o.show()},toggle:function(){o.toggle()},tap:function(t){e(this).parents(".navbar").length&&e(this).parent(".subnav").not(".disabled, :disabled")&&(t.preventDefault(),e(this).parent(".subnav").hasClass("open")?o.hide("slide"):o.show("slide"))}}).parent(".subnav").on({mouseenter:function(){!e(this).hasClass("open")&&e(this).parents(".navbar").length&&o.show()},mouseleave:function(){e(this).hasClass("open")&&e(this).parents(".navbar").length&&o.hide()}}),o},hide:function(t){this.$elem.trigger("on.hide.subnav"),(t=void 0===t?this.config.animation:t)?"fade"===t?this.$elem.next(".subnav-menu").fadeOut(240,function(){e(this).parent(".subnav").removeClass("open"),e(this).css("display",""),e(this).prev('[data-toggle="subnav"]').trigger("on.hidden.subnav")}):"rise"===t?this.$elem.next(".subnav-menu").animate({top:"+=10",opacity:"0"},240,function(){e(this).parent(".subnav").removeClass("open"),e(this).css({display:"",top:"",opacity:""}),e(this).prev('[data-toggle="subnav"]').trigger("on.hidden.subnav")}):"slide"===t&&this.$elem.next(".subnav-menu").slideUp(240,function(){e(this).parent(".subnav").removeClass("open"),e(this).parent(".subnav").find(".open").removeClass("open"),e(this).css("display",""),e(this).prev('[data-toggle="subnav"]').trigger("on.hidden.subnav")}):(this.$elem.parent(".subnav").removeClass("open"),this.$elem.trigger("on.hidden.subnav"))},reset:function(){this.config={},this.$elem.unbind("click hide reset show toggle touchstart on.show.subnav on.shown.subnav on.hide.subnav on.hidden.subnav").removeData(),this.$elem.parent(".subnav").unbind("mouseenter mouseleave")},show:function(t){t=void 0===t?this.config.animation:t,this.$elem.closest(".
10nav").find("> .subnav.open").find('> [data-toggle="subnav"]').each(function(){e(this).trigger("hide",[{animation:t}])}),this.$elem.parent(".subnav").addClass("open"),this.$elem.trigger("on.show.subnav"),t?"fade"===t?this.$elem.next(".subnav-menu").css({display:"none"}).fadeIn(240,function(){e(this).css("display",""),e(this).prev('[data-toggle="subnav"]').trigger("on.shown.subnav")}):"rise"===t?this.$elem.next(".subnav-menu").css({top:"+=10",opacity:"0"}).animate({top:"-=10",opacity:"1"},240,function(){e(this).prev('[data-toggle="subnav"]').trigger("on.shown.subnav")}):"slide"===t&&this.$elem.next(".subnav-menu").css({display:"none"}).slideDown(240,function(){e(this).css("display",""),e(this).prev('[data-toggle="subnav"]').trigger("on.shown.subnav")}):this.$elem.trigger("on.shown.subnav")},toggle:function(){this.$elem.parent(".subnav").hasClass("open")?this.hide():this.show()}}).constructor=i).defaults=i.prototype.defaults,e.fn.subnav=function(t){return this.each(function(){"string"==typeof t?e(this).trigger(t):void 0!==t&&"object"!=typeof t||new i(this,t).init()})},t.Subnav=i}(window,jQuery),ems.subnav={},ems.subnav.init=function(){$('[data-toggle="subnav"]').each(function(){$(this).subnav()})},function(t,g){var i=1,e=function(t,i){this.elem=t,this.$elem=g(t),this.options=i,this.metadata=g(t).data()};((e.prototype={defaults:{animation:!0,bgcolor:null,color:null,classname:null,container:!1,content:null,id:null,event:"hover focus",html:!1,mouse:!1,origin:"default",position:"top"},checkColor:function(t){return 0==!g("<div/>").css("border","1px solid "+t).css("border-color").length},hide:function(){var t=this;this.visible=!1,this.$elem.trigger("on.hide.tooltip"),this.config.animation?this.tooltip.animate({opacity:"0"},240,function(){g(this).remove(),null!=t.config.bgcolor&&g("head").find('style[data-tooltip-number="'+t.number+'"]').remove(),t.$elem.trigger("on.hidden.tooltip")}):(this.tooltip.remove(),null!=t.config.bgcolor&&g("head").find('style[data-tooltip-number="'+t.number+'"]').remove(),this.$elem.trigger("on.hidden.tooltip")),delete this.tooltip},init:function(){this.config=g.extend({},this.defaults,this.options,this.metadata),this.validEvent=["hover","focus","click","manual"],this.validOrigin=["default","center","mouse"],this.validPosition=["top","right","bottom","left"];var e=this;if(this.visible=!1,this.eventsDisplay=["show","toggle"],this.eventsHide=["hide"],this.number=i,"boolean"!=typeof this.config.animation)throw"TOOLTIP [EMS FRAMEWORK] : animation option '"+this.config.animation+"' is not a boolean.";if(null!=this.config.bgcolor&&!this.checkColor(this.config.bgcolor))throw"TOOLTIP [EMS FRAMEWORK] : bgcolor option '"+this.config.bgcolor+"' is not a color.";if(null!=this.config.color&&!this.checkColor(this.config.color))throw"TOOLTIP [EMS FRAMEWORK] : color option '"+this.config.color+"' is not a color.";if(null!=this.config.classname&&"string"!=typeof this.config.classname)throw"TOOLTIP [EMS FRAMEWORK] : classname option '"+this.config.classname+"' is not a string.";if(this.config.container&&("string"!=typeof this.config.container||0===g(this.config.container).length))throw"TOOLTIP [EMS FRAMEWORK] : element '"+this.config.container+"' is undefined.";if(1<g(this.config.container).length)throw"TOOLTIP [EMS FRAMEWORK] : element '"+this.config.container+"' is ambiguous.";if(null!=this.config.content&&"string"!=typeof this.config.content)throw"TOOLTIP [EMS FRAMEWORK] : content '"+this.config.from+"' is not a string.";if(null===this.config.content&&!this.$elem.attr("title"))throw"TOOLTIP [EMS FRAMEWORK] : content is not defined.";if("string"!=typeof this.config.event)throw"TOOLTIP [EMS FRAMEWORK] : event option '"+this.config.event+"' is not a string.";if(g.each(this.config.event.split(" "),function(t,i){if(-1===g.inArray(i,e.validEvent))throw"TOOLTIP [EMS FRAMEWORK] : event option '"+i+"' is wrong.";"hover"===i?(e.eventsDisplay.push("mouseenter"),e.eventsHide.push("mouseleave")):"focus"===i?(e.eventsDisplay.push("focus"),e.eventsHide.push("blur")):"click"===i&&e.eventsDisplay.push("click")}),this.config.id&&"string"!=typeof this.config.id)throw"TOOLTIP [EMS FRAMEWORK] : element '"+this.config.id+"' is not a string.";if("boolean"!=typeof this.config.html)throw"TOOLTIP [EMS FRAMEWORK] : html option '"+this.config.html+"' is not a boolean.";if("boolean"!=typeof this.config.mouse)throw"TOOLTIP [EMS FRAMEWORK] : mouse option '"+this.config.mouse+"' is not a boolean.";if("string"!=typeof this.config.origin)throw"TOOLTIP [EMS FRAMEWORK] : origin option '"+this.config.origin+"' is not a string.";if(-1===g.inArray(this.config.origin,this.validOrigin))throw"TOOLTIP [EMS FRAMEWORK] : origin option '"+this.config.origin+"' is wrong.";if("string"!=typeof this.config.position)throw"TOOLTIP [EMS FRAMEWORK] : position option '"+this.config.position+"' is not a string.";if(-1===g.inArray(this.config.position,this.validPosition))throw"TOOLTIP [EMS FRAMEWORK] : position option '"+this.config.position+"' is wrong.";return this.$elem.is("[title]")&&(this.config.content=null===this.config.content?this.$elem.attr("title"):this.config.content,this.$elem.removeAttr("title")),"mouse"===this.config.origin&&-1===g.inArray("click",e.eventsDisplay)&&this.eventsDisplay.push("mousemove"),this.$elem.on(e.eventsDisplay.join(" "),function(t){"click"!==t.type&&"toggle"!==t.type||!e.visible?e.show(t):e.hide()}),this.$elem.on(e.eventsHide.join(" "),function(){e.visible&&e.hide()}),this.$elem.on("reset",function(){e.reset()}),i++,e},position:function(t,i){var e=this.$elem.offsetParent().offset().left,o=this.$elem.offsetParent().offset().top;if("mouse"==this.config.origin)var n=i.pageX>e?i.pageX-e:e-i.pageX,s=i.pageY>o?i.pageY-o:o-i.pageY;else n=this.$elem.position().left,s=this.$elem.position().top;if(this.config.container){var a=g(t.offsetParent());n+=e>a.offset().left?e-a.offset().left:a.offset().left-e,s+=o>a.offset().top?o-a.offset().top:-Math.abs(a.offset().top-o)}n+=parseInt(this.$elem.css("margin-left").replace("px",""),10),s+=parseInt(this.$elem.css("margin-top").replace("px",""),10);var r=this.$elem.outerWidth(),l=this.$elem.outerHeight(),h=t.outerWidth(!0),c=t.outerHeight(!0);if("top"===this.config.position||"bottom"===this.config.position){var f=u="mouse"==this.config.origin?n-h/2:n+r/2-h/2,d=s;if("top"===this.config.position){d="center"===this.config.origin?d+l/2+5:d;var p=(d-=c)-5}else{d="center"===this.config.origin?d-(l/2+5):d,d+="mouse"===this.config.origin?0:l;p="mouse"===this.config.origin?d+15:d+5}}else{p=d="mouse"==this.config.origin?s-c/2:s+l/2-c/2;if("right"===this.config.position){var u="center"===this.config.origin?n+r/2-5:n+r;u="mouse"===this.config.origin?n:u;f="mouse"===this.config.origin?u+10:u+5}
10else u="center"===this.config.origin?n+r/2+5-h:n-h,f=(u="mouse"===this.config.origin?n-h:u)-5}return{fromX:u,toX:f,fromY:d,toY:p}},reset:function(){this.config={},this.$elem.unbind("hide reset show toggle on.show.tooltip on.shown.tooltip on.hide.tooltip on.hidden.tooltip").removeData()},show:function(t){var i=this;if(this.visible){if("mouse"===this.config.origin){e=this.tooltip,o=this.position(e,t);e.stop().css({top:o.toY+"px",left:o.toX+"px",opacity:"1"})}}else{this.visible=!0,this.$elem.trigger("on.show.tooltip");var e=g("<div/>").attr({class:"tooltip "+i.config.position+(i.config.classname?" "+i.config.classname:""),"data-number":this.number,id:i.config.id?i.config.id:""});this.config.html?e.html(this.config.content):e.text(this.config.content),this.config.container?e.appendTo(this.config.container):e.insertAfter(this.$elem);var o=this.position(e,t);this.config.animation?e.css({top:o.fromY+"px",left:o.fromX+"px",opacity:"0"}).animate({top:o.toY+"px",left:o.toX+"px",opacity:"1"},240,function(){i.$elem.trigger("on.shown.tooltip")}):(e.css({top:o.toY+"px",left:o.toX+"px"}),this.$elem.trigger("on.shown.tooltip")),this.tooltip=e}e&&(i.config.bgcolor&&g('<style type="text/css" data-tooltip-number="'+this.number+'">.tooltip[data-number="'+this.number+'"]:before{border-'+i.config.position+"-color: "+i.config.bgcolor+" !important;}</style>").appendTo("head"),e.css({"background-color":i.config.bgcolor?i.config.bgcolor:"",color:i.config.color?i.config.color:""}))},toggle:function(){this.visible?this.hide():this.show()}}).constructor=e).defaults=Scrollspy.prototype.defaults,g.fn.tooltip=function(t){return this.each(function(){"string"==typeof t?g(this).trigger(t):void 0!==t&&"object"!=typeof t||new e(this,t).init()})},t.Tooltip=e}(window,jQuery),ems.tooltip={},ems.tooltip.init=function(){$('[data-toggle="tooltip"]').each(function(){$(this).tooltip()})}; 11} 12 13/* 14 FILE ARCHIVED ON 12:36:41 Jan 08, 2019 AND RETRIEVED FROM THE 15 INTERNET ARCHIVE ON 12:21:15 Jun 23, 2026. 16 JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. 17 18 ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. 19 SECTION 108(a)(3)). 20*/ 21/* 22playback timings (ms): 23 captures_list: 0.811 24 exclusion.robots: 0.125 25 exclusion.robots.policy: 0.111 26 esindex: 0.013 27 cdx.remote: 37.128 28 LoadShardBlock: 321.477 (3) 29 PetaboxLoader3.datanode: 147.324 (4) 30 PetaboxLoader3.resolve: 162.587 (2) 31 load_resource: 96.732 32*/
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.