(self.webpackChunknodebb=self.webpackChunknodebb||[]).push([[5947],{5947:function(b,S,_){var p,m;/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
* @license MIT */(function(t,s){p=s,m=typeof p=="function"?p.call(S,_,S,b):p,m!==void 0&&(b.exports=m)})(this,function(){var t={};t.version="0.2.0";var s=t.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'
'};t.configure=function(e){var r,n;for(r in e)n=e[r],n!==void 0&&e.hasOwnProperty(r)&&(s[r]=n);return this},t.status=null,t.set=function(e){var r=t.isStarted();e=y(e,s.minimum,1),t.status=e===1?null:e;var n=t.render(!r),o=n.querySelector(s.barSelector),a=s.speed,f=s.easing;return n.offsetWidth,w(function(i){s.positionUsing===""&&(s.positionUsing=t.getPositioningCSS()),g(o,T(e,a,f)),e===1?(g(n,{transition:"none",opacity:1}),n.offsetWidth,setTimeout(function(){g(n,{transition:"all "+a+"ms linear",opacity:0}),setTimeout(function(){t.remove(),i()},a)},a)):setTimeout(i,a)}),this},t.isStarted=function(){return typeof t.status=="number"},t.start=function(){t.status||t.set(0);var e=function(){setTimeout(function(){t.status&&(t.trickle(),e())},s.trickleSpeed)};return s.trickle&&e(),this},t.done=function(e){return!e&&!t.status?this:t.inc(.3+.5*Math.random()).set(1)},t.inc=function(e){var r=t.status;return r?(typeof e!="number"&&(e=(1-r)*y(Math.random()*r,.1,.95)),r=y(r+e,0,.994),t.set(r)):t.start()},t.trickle=function(){return t.inc(Math.random()*s.trickleRate)},function(){var e=0,r=0;t.promise=function(n){return!n||n.state()==="resolved"?this:(r===0&&t.start(),e++,r++,n.always(function(){r--,r===0?(e=0,t.done()):t.set((e-r)/e)}),this)}}(),t.render=function(e){if(t.isRendered())return document.getElementById("nprogress");k(document.documentElement,"nprogress-busy");var r=document.createElement("div");r.id="nprogress",r.innerHTML=s.template;var n=r.querySelector(s.barSelector),o=e?"-100":v(t.status||0),a=document.querySelector(s.parent),f;return g(n,{transition:"all 0 linear",transform:"translate3d("+o+"%,0,0)"}),s.showSpinner||(f=r.querySelector(s.spinnerSelector),f&&E(f)),a!=document.body&&k(a,"nprogress-custom-parent"),a.appendChild(r),r},t.remove=function(){P(document.documentElement,"nprogress-busy"),P(document.querySelector(s.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&E(e)},t.isRendered=function(){return!!document.getElementById("nprogress")},t.getPositioningCSS=function(){var e=document.body.style,r="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return r+"Perspective"in e?"translate3d":r+"Transform"in e?"translate":"margin"};function y(e,r,n){return en?n:e}function v(e){return(-1+e)*100}function T(e,r,n){var o;return s.positionUsing==="translate3d"?o={transform:"translate3d("+v(e)+"%,0,0)"}:s.positionUsing==="translate"?o={transform:"translate("+v(e)+"%,0)"}:o={"margin-left":v(e)+"%"},o.transition="all "+r+"ms "+n,o}var w=function(){var e=[];function r(){var n=e.shift();n&&n(r)}return function(n){e.push(n),e.length==1&&r()}}(),g=function(){var e=["Webkit","O","Moz","ms"],r={};function n(i){return i.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(u,c){return c.toUpperCase()})}function o(i){var u=document.body.style;if(i in u)return i;for(var c=e.length,d=i.charAt(0).toUpperCase()+i.slice(1),l;c--;)if(l=e[c]+d,l in u)return l;return i}function a(i){return i=n(i),r[i]||(r[i]=o(i))}function f(i,u,c){u=a(u),i.style[u]=c}return function(i,u){var c=arguments,d,l;if(c.length==2)for(d in u)l=u[d],l!==void 0&&u.hasOwnProperty(d)&&f(i,d,l);else f(i,c[1],c[2])}}();function C(e,r){var n=typeof e=="string"?e:h(e);return n.indexOf(" "+r+" ")>=0}function k(e,r){var n=h(e),o=n+r;C(n,r)||(e.className=o.substring(1))}function P(e,r){var n=h(e),o;C(e,r)&&(o=n.replace(" "+r+" "," "),e.className=o.substring(1,o.length-1))}function h(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function E(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return t})}}]);