require.config({paths:{"bootstrap-tour":"/xwiki/webjars/wiki%3Axwiki/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,h){var k=function(a){return a.replace(/[^a-zA-Z0-9\-]/g,function(b){return"_"+b.charCodeAt(0)+"_"})},g=function(a,b){var e=c('\x3cdiv id\x3d"tourResumeContainer" style\x3d"position: fixed; bottom: 0; right: 0; z-index: 2000; width: 300px; text-align: right;"\x3e\x3c/div\x3e').appendTo(c(document.body)),d=c('\x3cbutton id\x3d"tourResume" class\x3d"btn btn-default btn-xs"\x3e\x3cspan class\x3d"fa fa-info-circle"\x3e\x3c/span\x3e Show tour\x3c/button\x3e').appendTo(e);
e.hide();e.fadeIn();d.click(function(){b&&d.popover("destroy");window.localStorage.getItem(a._options.name+"_current_step")!=a._options.steps.length-1?a.start(!0):a.restart();d.remove()});b&&(d.popover({animation:!0,content:"You can restart the tour by clicking this button at anytime",placement:"top",container:"#tourResumeContainer"}),d.popover("show"),setTimeout(function(){d.popover("destroy")},7E3))},l=function(a,b){a='\x3cdiv class\x3d"popover tour" style\x3d"min-width: 300px;"\x3e\n \x3ca class\x3d"btn btn-xs btn-default" id\x3d"bootstrap_tour_close"\x3e\x3cspan class\x3d"fa fa-times"\x3e\x3c/span\x3e\x3c/a\x3e\n  \x3cdiv class\x3d"arrow"\x3e\x3c/div\x3e\n  \x3ch3 class\x3d"popover-title"\x3e\x3c/h3\x3e\n  \x3cdiv class\x3d"popover-content"\x3e\x3c/div\x3e\n  \x3cdiv class\x3d"popover-navigation row"\x3e\n    \x3cdiv class\x3d"col-xs-6 text-left"\x3e\n';
-1<b.prev&&(a+='      \x3ca class\x3d"btn btn-default btn-sm" id\x3d"bootstrap_tour_prev"\x3e\u00ab Prev\x3c/a\x3e\n');a+='    \x3c/div\x3e\n    \x3cdiv class\x3d"col-xs-6 text-right"\x3e\n';a=-1<b.next?a+'      \x3ca class\x3d"btn btn-primary btn-sm" id\x3d"bootstrap_tour_next"\x3eNext \u00bb\x3c/a\x3e\n':a+'      \x3ca class\x3d"btn btn-success btn-sm" id\x3d"bootstrap_tour_end"\x3eEnd tour\x3c/a\x3e\n';return a+"    \x3c/div\x3e\n  \x3c/div\x3e\x3c/div\x3e"},m=function(a){c("#bootstrap_tour_close").on("click",
function(){a.end()});c("#bootstrap_tour_end").on("click",function(){a.end()});c("#bootstrap_tour_prev").on("click",function(){a.prev()});c("#bootstrap_tour_next").on("click",function(){a.next()});c("#bootstrap_tour_close").css("position","absolute");c("#bootstrap_tour_close").css("top","3px");c("#bootstrap_tour_close").css("right","5px");c(".tour .popover-title").css("padding-right",c("#bootstrap_tour_close").outerWidth()+10+"px")},n=function(a){c("\x3clink/\x3e").attr("rel","stylesheet").attr("type",
"text/css").attr("href","/xwiki/webjars/wiki%3Axwiki/bootstrap-tour/0.12.0/css/bootstrap-tour.min.css").appendTo(c(document.head));require(["bootstrap-tour"],function(b){var e=k("tour_"+a.name),d=new b({name:e,storage:window.localStorage,onEnd:function(){g(d,!0)},onShown:m,orphan:!1,template:l});for(b=0;b<a.steps.length;b++)d.addStep(a.steps[b]);b="true"==function(f){return(f=RegExp("[?\x26]"+f+"\x3d([^\x26]*)").exec(window.location.search))&&decodeURIComponent(f[1].replace(/\+/g," "))}("startTour");
d.init();b?d.restart():null==window.localStorage.getItem(e+"_end")&&d.start();"yes"==window.localStorage.getItem(e+"_end")&&g(d,!1)})};c(function(){768>=c(window).innerWidth()||c.getJSON((new XWiki.Document("TourJson","TourCode")).getURL("get"),{xpage:"plain",outputSyntax:"plain",tourDoc:h.document}).done(function(a){for(var b=0;b<a.tours.length;++b){var e=a.tours[b];0<e.steps.length&&n(e)}})})});