require.config({paths:{"bootstrap-tour":"/xwiki/webjars/wiki%3Anoddle/bootstrap-tour/0.12.0/js/bootstrap-tour.min.js?r\x3d1"},shim:{"bootstrap-tour":{deps:["bootstrap","jquery"],exports:"Tour"}}});
require(["jquery","xwiki-meta"],function(c,l){var m=function(b){return b.replace(/[^a-zA-Z0-9\-]/g,function(a){return"_"+a.charCodeAt(0)+"_"})},h=function(b,a){var d=c('\x3cdiv id\x3d"tourResumeContainer"\x3e\x3c/div\x3e').appendTo(c(document.body)),e=c('\x3cdiv class\x3d"popover-content"\x3eYou can restart the tour by clicking this button at anytime\x3c/div\x3e').appendTo(d);const f=c("\x3cbutton id\x3d'tourResume' class\x3d'btn btn-default btn-xs'\x3e\x3c/button\x3e").html('\x3cimg src\x3d"/xwiki/resources/icons/silk/information.png?cache-version\x3d1759477984000" alt\x3d"Icon" data-xwiki-lightbox\x3d"false" /\x3e Show tour').appendTo(d);
a&&(d.addClass("opened"),f.removeAttr("hidden"),e.attr("open","open"));f.on("click",function(){a&&(e.removeAttr("open"),f.attr("hidden",!0),d.removeClass("opened"));window.localStorage.getItem(b._options.name+"_current_step")!=b._options.steps.length-1?(window.localStorage.removeItem(b._options.name+"_redirect_to"),window.localStorage.removeItem(b._options.name+"_end"),b.start(!0)):b.restart();f.attr("hidden",!0);d.removeClass("opened")})},n=function(b,a){b='\x3cdiv class\x3d"popover tour" style\x3d"min-width: 300px;"\x3e\n \x3ca class\x3d"btn btn-xs btn-default" href\x3d"#" id\x3d"bootstrap_tour_close" aria-label\x3d"Quit tour" title\x3d"Quit tour"\x3e\x3cimg src\x3d"/xwiki/resources/icons/silk/cross.png?cache-version\x3d1759477984000" alt\x3d"Icon" data-xwiki-lightbox\x3d"false" /\x3e\x3c/a\x3e\n  \x3cdiv class\x3d"arrow"\x3e\x3c/div\x3e\n  \x3ch2 class\x3d"popover-title"\x3e\x3c/h2\x3e\n  \x3cdiv class\x3d"popover-content"\x3e\x3c/div\x3e\n  \x3cdiv class\x3d"popover-navigation"\x3e\n    \x3cdiv class\x3d"col-xs-6 text-left"\x3e\n';
-1<a.prev&&(b+='      \x3ca class\x3d"btn btn-default btn-sm" href\x3d"#" id\x3d"bootstrap_tour_prev"\x3e\u00ab Prev\x3c/a\x3e\n');b+='    \x3c/div\x3e\n    \x3cdiv class\x3d"col-xs-6 text-right"\x3e\n';b=-1<a.next?b+'      \x3ca class\x3d"btn btn-primary btn-sm" href\x3d"#" id\x3d"bootstrap_tour_next"\x3eNext \u00bb\x3c/a\x3e\n':b+'      \x3ca class\x3d"btn btn-success btn-sm" href\x3d"#" id\x3d"bootstrap_tour_end"\x3eEnd tour\x3c/a\x3e\n';return b+"    \x3c/div\x3e\n  \x3c/div\x3e\x3c/div\x3e"},
p=function(b){c("#bootstrap_tour_close").on("click",function(a){b.end();a.preventDefault()}).on("keypress",function(a){32!==a.which&&13!==a.which||b.end();a.stopImmediatePropagation();a.preventDefault()}).on("focusout",function(a){null===a.relatedTarget||a.currentTarget.parentNode.contains(a.relatedTarget)||c("#bootstrap_tour_next, #bootstrap_tour_end").focus()});c("#bootstrap_tour_end").on("click",function(a){b.end();a.preventDefault()}).on("keypress",function(a){32!==a.which&&13!==a.which||b.end();
a.stopImmediatePropagation();a.preventDefault()});c("#bootstrap_tour_prev").on("click",function(a){b.prev();a.preventDefault()}).on("keypress",function(a){32!==a.which&&13!==a.which||b.prev();a.stopImmediatePropagation();a.preventDefault()}).on("focusout",function(a){null===a.relatedTarget||a.currentTarget.parentNode.parentNode.parentNode.contains(a.relatedTarget)||c("#bootstrap_tour_next, #bootstrap_tour_end").focus()});c("#bootstrap_tour_next").on("click",function(a){b.next();a.preventDefault()}).on("keypress",
function(a){32!==a.which&&13!==a.which||b.next();a.stopImmediatePropagation();a.preventDefault()});c("#bootstrap_tour_next, #bootstrap_tour_end").on("focusout",function(a){null===a.relatedTarget||a.currentTarget.parentNode.parentNode.parentNode.contains(a.relatedTarget)||c("#bootstrap_tour_close").focus()}).focus();c(".tour .popover-title").css("padding-right",c("#bootstrap_tour_close").outerWidth()+10+"px");c(".tour").on("keydown",function(a){27===a.which&&(b.end(),a.stopImmediatePropagation(),a.preventDefault(),
c(".tour").off("keydown"))})},q=function(b){c("\x3clink/\x3e").attr("rel","stylesheet").attr("type","text/css").attr("href","/xwiki/webjars/wiki%3Anoddle/bootstrap-tour/0.12.0/css/bootstrap-tour.min.css").appendTo(c(document.head));require(["bootstrap-tour"],function(a){var d=m("tour_"+b.name),e=new a({name:d,storage:window.localStorage,onEnd:function(){let g=c("#tourResumeContainer");if(0===g.length)h(e,!0);else{g.addClass("opened");c("#tourResume").removeAttr("hidden");let k=g.find(".popover-content").first();
k.attr("open","open");setTimeout(function(){g.removeClass("opened");k.removeAttr("open")},7E3)}},onShown:p,orphan:!1,container:"#contentcontainer",template:n});for(a=0;a<b.steps.length;a++)e.addStep(b.steps[a]);a="true"==function(g){return(g=RegExp("[?\x26]"+g+"\x3d([^\x26]*)").exec(window.location.search))&&decodeURIComponent(g[1].replace(/\+/g," "))}("startTour");d="yes"===window.localStorage.getItem(d+"_end");e.setCurrentStep();var f=e.getStep(e.getCurrentStep()||0);f=e._isRedirect(f.host,f.path,
document.location);d=!d&&!f;a?e.restart():d&&e.start();d||h(e,!1)})};c(function(){768>=c(window).innerWidth()||c.getJSON((new XWiki.Document("TourJson","TourCode")).getURL("get"),{xpage:"plain",outputSyntax:"plain",tourDoc:l.document}).done(function(b){for(var a=0;a<b.tours.length;++a){var d=b.tours[a];0<d.steps.length&&q(d)}})})});