text: var globalRoot="undefined"!==typeof window?window:this;(function(a){a.console||(a.console={});a=a.console;for(var b,d=function(){},c=["memory"],e="assert clear count debug dir dirxml error exception group groupCollapsed groupEnd info log markTimeline profile profiles profileEnd show table time timeEnd timeline timelineEnd timeStamp trace warn".split(" ");b=c.pop();)a[b]||(a[b]={});for(;b=e.pop();)a[b]||(a[b]=d)})(globalRoot);
  (function(a){var b=function(){var a=function(){var b=function(b,a){if(this.progress=0,this.options={id:"top-progress-bar",color:"#F44336",height:"2px",duration:.2},b&&"object"===typeof b)for(var c in b)b.hasOwnProperty(c)&&(this.options[c]=b[c]);(this.options.opacityDuration=3*this.options.duration,this.progressBar=document.createElement("div"),this.progressBar.id=this.options.id,this.progressBar.setCSS=function(b){for(var a in b)b.hasOwnProperty(a)&&(this.style[a]=b[a])},this.progressBar.setCSS({position:a?
  "relative":"fixed",top:"0",left:"0",right:"0","background-color":this.options.color,height:this.options.height,width:"0%",transition:"width "+this.options.duration+"s, opacity "+this.options.opacityDuration+"s","-moz-transition":"width "+this.options.duration+"s, opacity "+this.options.opacityDuration+"s","-webkit-transition":"width "+this.options.duration+"s, opacity "+this.options.opacityDuration+"s"}),a)?(c=document.querySelector(a))&&(c.hasChildNodes()?c.insertBefore(this.progressBar,c.firstChild):
  c.appendChild(this.progressBar)):document.body.appendChild(this.progressBar)},e=function(){var b=document.createElement("fakeelement"),a={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"},c;for(c in a)if(a.hasOwnProperty(c)&&void 0!==b.style[c])return a[c]}();return b.prototype.transit=function(){this.progressBar.style.width=this.progress+"%"},b.prototype.getProgress=function(){return this.progress},b.prototype.setProgress=
  function(b,a){this.show();this.progress=100<b?100:0>b?0:b;this.transit();a&&a()},b.prototype.increase=function(b,a){this.show();this.setProgress(this.progress+b,a)},b.prototype.decrease=function(b,a){this.show();this.setProgress(this.progress-b,a)},b.prototype.finish=function(b){var c=this;this.setProgress(100,b);this.hide();e&&this.progressBar.addEventListener(e,function(b){c.reset();c.progressBar.removeEventListener(b.type,a)})},b.prototype.reset=function(b){this.progress=0;this.transit();b&&b()},
  b.prototype.hide=function(){this.progressBar.style.opacity="0"},b.prototype.show=function(){this.progressBar.style.opacity="1"},b};return a()}();a.ToProgress=b})(globalRoot);
  (function(a){a.scroll2Top=function(b,d,c){function e(){h+=1/60;var d=h/k,m=g[c](d);1>d?(requestAnimationFrame(e),a.scrollTo(0,f+(b-f)*m)):a.scrollTo(0,b)}var f=a.scrollY||document.documentElement.scrollTop;b=b||0;c=c||"easeOutSine";var h=0,k=Math.max(.1,Math.min(Math.abs(f-b)/(d||2E3),.8)),g={easeOutSine:function(b){return Math.sin(Math.PI/2*b)},easeInOutSine:function(b){return-.5*(Math.cos(Math.PI*b)-1)},easeInOutQuint:function(b){return 1>(b/=.5)?.5*Math.pow(b,5):.5*(Math.pow(b-2,5)+2)}};e()}})(globalRoot);
  (function(a,b){if("function"!==typeof a.createEvent)return!1;var d=function(a){var c=a.toLowerCase();return navigator.msPointerEnabled?"MS"+a:b.PointerEvent?c:!1},c={useJquery:!b.IGNORE_JQUERY&&"undefined"!==typeof jQuery,swipeThreshold:b.SWIPE_THRESHOLD||100,tapThreshold:b.TAP_THRESHOLD||150,dbltapThreshold:b.DBL_TAP_THRESHOLD||200,longtapThreshold:b.LONG_TAP_THRESHOLD||1E3,tapPrecision:b.TAP_PRECISION/2||30,justTouchEvents:b.JUST_ON_TOUCH_DEVICES},e=!1,f=d("PointerDown")||"touchstart",h=d("PointerUp")||
  "touchend",d=d("PointerMove")||"touchmove",k=function(b){return!b.pointerId||"undefined"===typeof n||b.pointerId===n},g=function(b,a,c){a=a.split(" ");for(var d=a.length;d--;)b.addEventListener(a[d],c,!1)},l=function(b,d,e,f){var g=a.createEvent("Event");g.originalEvent=e;f=f||{};f.x=p;f.y=q;f.distance=f.distance;c.useJquery&&(g=jQuery.Event(d,{originalEvent:e}),jQuery(b).trigger(g,f));if(g.initEvent){for(var h in f)f.hasOwnProperty(h)&&(g[h]=f[h]);g.initEvent(d,!0,!0);b.dispatchEvent(g)}for(;b;){if(b["on"+
  d])b["on"+d](g);b=b.parentNode}},m=0,n,p,q,r,t,u,v,w,x;g(a,f+(c.justTouchEvents?"":" mousedown"),function(b){if(k(b)&&(n=b.pointerId,"mousedown"!==b.type&&(e=!0),"mousedown"!==b.type||!e)){var a=b.targetTouches?b.targetTouches[0]:b;r=p=a.pageX;t=q=a.pageY;x=setTimeout(function(){l(b.target,"longtap",b);v=b.target},c.longtapThreshold);u=(new Date).getTime();m++}});g(a,h+(c.justTouchEvents?"":" mouseup"),function(b){if(k(b))if(n=void 0,"mouseup"===b.type&&e)e=!1;else{var a=[],d=(new Date).getTime(),
  f=t-q,g=r-p;clearTimeout(w);clearTimeout(x);g<=-c.swipeThreshold&&a.push("swiperight");g>=c.swipeThreshold&&a.push("swipeleft");f<=-c.swipeThreshold&&a.push("swipedown");f>=c.swipeThreshold&&a.push("swipeup");if(a.length){for(d=0;d<a.length;d++)l(b.target,a[d],b,{distance:{x:Math.abs(g),y:Math.abs(f)}});m=0}else r>=p-c.tapPrecision&&r<=p+c.tapPrecision&&t>=q-c.tapPrecision&&t<=q+c.tapPrecision&&0<=u+c.tapThreshold-d&&(l(b.target,2<=m&&v===b.target?"dbltap":"tap",b),v=b.target),w=setTimeout(function(){m=
  0},c.dbltapThreshold)}});g(a,d+(c.justTouchEvents?"":" mousemove"),function(b){!k(b)||"mousemove"===b.type&&e||(b=b.targetTouches?b.targetTouches[0]:b,p=b.pageX,q=b.pageY)});b.tocca=function(b){for(var a in b)b.hasOwnProperty(a)&&(c[a]=b[a]);return c}})(document,globalRoot);
  (function(a){var b=function(){var b=[],c={},e=a.routie,f=function(b,a){this.name=a;this.path=b;this.keys=[];this.fns=[];this.params={};this.regex=h(this.path,this.keys,!1,!1)};f.prototype.addHandler=function(b){this.fns.push(b)};f.prototype.removeHandler=function(b){for(var a=0,c=this.fns.length;a<c;a++)if(b===this.fns[a]){this.fns.splice(a,1);break}};f.prototype.run=function(b){for(var a=0,c=this.fns.length;a<c;a++)this.fns[a].apply(this,b)};f.prototype.match=function(b,a){var c=this.regex.exec(b);
  if(!c)return!1;for(var d=1,e=c.length;d<e;++d){var f=this.keys[d-1],g="string"===typeof c[d]?decodeURIComponent(c[d]):c[d];f&&(this.params[f.name]=g);a.push(g)}return!0};f.prototype.toURL=function(b){var a=this.path,c;for(c in b)b.hasOwnProperty(c)&&(a=a.replace("/:"+c,"/"+b[c]));a=a.replace(/\/:.*\?/g,"/").replace(/\?/g,"");if(-1!==a.indexOf(":"))throw Error("missing parameters for url: "+a);return a};var h=function(b,a,c,d){if(b instanceof RegExp)return b;b instanceof Array&&(b="("+b.join("|")+
  ")");b=b.concat(d?"":"/?").replace(/\/\(/g,"(?:/").replace(/\+/g,"__plus__").replace(/(\/)?(\.)?:(\w+)(?:(\(.*?\)))?(\?)?/g,function(b,c,d,e,f,g){a.push({name:e,optional:!!g});c=c||"";return""+(g?"":c)+"(?:"+(g?c:"")+(d||"")+(f||d&&"([^/.]+?)"||"([^/]+?)")+")"+(g||"")}).replace(/([\/.])/g,"\\$1").replace(/__plus__/g,"(.+)").replace(/\*/g,"(.*)");return new RegExp("^"+b+"$",c?"":"i")},k=function(a,e){var g=a.split(" "),h=2===g.length?g[0]:null;a=2===g.length?g[1]:g[0];c[a]||(c[a]=new f(a,h),b.push(c[a]));
  c[a].addHandler(e)},g=function(b,a){if("function"===typeof a)k(b,a),g.reload();else if("object"===typeof b){for(var c in b)b.hasOwnProperty(c)&&k(c,b[c]);g.reload()}else"undefined"===typeof a&&g.navigate(b)};g.lookup=function(a,c){for(var e=0,f=b.length;e<f;e++){var g=b[e];if(g.name===a)return g.toURL(c)}};g.remove=function(b,a){var d=c[b];d&&d.removeHandler(a)};g.removeAll=function(){c={};b=[]};g.navigate=function(b,c){c=c||{};var d=c.silent||!1;d&&(a.removeEventListener?a.removeEventListener("hashchange",
  l):a.detachEvent("onhashchange",l));setTimeout(function(){a.location.hash=b;d&&setTimeout(function(){m()},1)},1);a.setImmediate?setImmediate(function(){a.location.hash=b;d&&setImmediate(function(){m()})}):setTimeout(function(){a.location.hash=b;d&&setTimeout(function(){m()},1)},1)};g.noConflict=function(){a.routie=e;return g};var l=g.reload=function(){for(var c=a.location.hash.substring(1),e=0,f=b.length;e<f;e++){var g;g=b[e];var h=[];g.match(c,h)?(g.run(h),g=!0):g=!1;if(g)break}},m=function(){a.addEventListener?
  a.addEventListener("hashchange",l,!1):a.attachEvent("onhashchange",l)};m();return g}();a.routie=b})(globalRoot);
  (function(a){var b=function(){function b(){for(var a=0,c={};a<arguments.length;a++){var d=arguments[a],k;for(k in d)d.hasOwnProperty(k)&&(c[k]=d[k])}return c}function a(e){var f=function(a,c,g){var l;if("undefined"!==typeof document){if(1<arguments.length){g=b({path:"/"},f.defaults,g);if("number"===typeof g.expires){var m=new Date;m.setMilliseconds(m.getMilliseconds()+864E5*g.expires);g.expires=m}try{l=JSON.stringify(c),/^[\{\[]/.test(l)&&(c=l)}catch(u){}c=e.write?e.write(c,a):encodeURIComponent(String(c)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,
  decodeURIComponent);a=encodeURIComponent(String(a));a=a.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent);a=a.replace(/[\(\)]/g,escape);return document.cookie=[a,"=",c,g.expires?"; expires="+g.expires.toUTCString():"",g.path?"; path="+g.path:"",g.domain?"; domain="+g.domain:"",g.secure?"; secure":""].join("")}a||(l={});for(var m=document.cookie?document.cookie.split("; "):[],n=/(%[0-9A-Z]{2})+/g,p=0;p<m.length;p++){var q=m[p].split("="),r=q.slice(1).join("=");'"'===r.charAt(0)&&(r=r.slice(1,
  -1));try{var t=q[0].replace(n,decodeURIComponent),r=e.read?e.read(r,t):e(r,t)||r.replace(n,decodeURIComponent);if(this.json)try{r=JSON.parse(r)}catch(u){}if(a===t){l=r;break}a||(l[t]=r)}catch(u){}}return l}};f.set=f;f.get=function(b){return f.call(f,b)};f.getJSON=function(){return f.apply({json:!0},[].slice.call(arguments))};f.defaults={};f.remove=function(a,c){f(a,"",b(c,{expires:-1}))};f.withConverter=a;return f}return a(function(){})}();a.Cookies=b})(globalRoot);
  (function(a){var b=function(){function b(){return{width:l(),height:m()}}function c(b,a){b=b&&!b.nodeType?b[0]:b;if(!b||1!==b.nodeType)return!1;var c=b.getBoundingClientRect(),d,e={};d=+a||0;e.width=(e.right=c.right+d)-(e.left=c.left-d);e.height=(e.bottom=c.bottom+d)-(e.top=c.top-d);return e}var e={},f="undefined"!==typeof a&&a,h="undefined"!==typeof document&&document,k=h&&h.documentElement,g=f.matchMedia||f.msMatchMedia,h=g?function(b){return!!g.call(f,b).matches}:function(){return!1},l=e.viewportW=
  function(){var b=k.clientWidth,a=f.innerWidth;return b<a?a:b},m=e.viewportH=function(){var b=k.clientHeight,a=f.innerHeight;return b<a?a:b};e.mq=h;e.matchMedia=g?function(){return g.apply(f,arguments)}:function(){return{}};e.viewport=b;e.scrollX=function(){return f.pageXOffset||k.scrollLeft};e.scrollY=function(){return f.pageYOffset||k.scrollTop};e.rectangle=c;e.aspect=function(a){a=null===a?b():1===a.nodeType?c(a):a;var e=a.height,f=a.width,e="function"===typeof e?e.call(a):e,f="function"===typeof f?
  f.call(a):f;return f/e};e.inX=function(b,a){var d=c(b,a);return!!d&&0<=d.right&&d.left<=l()&&0!==b.offsetHeight};e.inY=function(b,a){var d=c(b,a);return!!d&&0<=d.bottom&&d.top<=m()&&0!==b.offsetHeight};e.inViewport=function(b,a){var d=c(b,a);return!!d&&0<=d.bottom&&0<=d.right&&d.top<=m()&&d.left<=l()&&0!==b.offsetHeight};return e}();a.verge=b})(globalRoot);
  (function(a){globalRoot.imagePromise=function(b){if(a.Promise)return new Promise(function(a,c){var e=function(b,e){b.onload=function(){a(e)};b.onerror=function(){c(e)};b.src=e};if("string"===typeof b){var f=new Image;e(f,b)}else{if("img"!==b.tagName)return Promise.reject();b.src&&e(b,b.src)}});throw Error("Promise is not in global object");}})(globalRoot);(function(a){a&&a.add("js")})(document.documentElement.classList||"");
  (function(a,b){var d,c,e=function(a){var c=a.split(" ");if(b)for(var d=0;d<c.length;d+=1)a=c[d],b.add(a)},f=function(a){var c=a.split(" ");if(b)for(var d=0;d<c.length;d+=1)a=c[d],b.remove(a)},h={landscape:"all and (orientation:landscape)",portrait:"all and (orientation:portrait)"},k={small:"all and (max-width:768px)",medium:"all and (min-width:768px) and (max-width:991px)",large:"all and (min-width:992px)"},g,l=function(b,a){var c=function(b){b.matches?(e(a),d=a):f(a)};c(b);b.addListener(c)},m=function(b,
  a){var d=function(b){b.matches?(e(a),c=a):f(a)};d(b);b.addListener(d)};for(g in h)h.hasOwnProperty(g)&&l(a.matchMedia(h[g]),g);for(g in k)k.hasOwnProperty(g)&&m(a.matchMedia(k[g]),g);a.earlyDeviceOrientation=d||"";a.earlyDeviceSize=c||""})(globalRoot,document.documentElement.classList||"");
  (function(a,b,d,c,e){d=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,
  4))?d:c;b&&b.classList.add(d);a.earlyDeviceType=d||""})(globalRoot,document.documentElement||"","mobile","desktop",navigator.userAgent||navigator.vendor||globalRoot.opera);(function(a,b,d){d=document.implementation.hasFeature("http://www.w3.org/2000/svg","1.1")?d:"no-"+d;b&&b.classList.add(d);a.earlySvgSupport=d||""})(globalRoot,document.documentElement||"","svg");
  (function(a,b,d){d=document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1")?d:"no-"+d;b&&b.classList.add(d);a.earlySvgasimgSupport=d||""})(globalRoot,document.documentElement||"","svgasimg");(function(a,b,d){d="ontouchstart"in b?d:"no-"+d;b&&b.classList.add(d);a.earlyHasTouch=d||""})(globalRoot,document.documentElement||"","touch");
  (function(a){var b=new Date,d=b.getDate(),c=b.getFullYear(),b=b.getMonth(),b=b+1;10>d&&(d="0"+d);10>b&&(b="0"+b);a.earlyFnGetYyyymmdd=c+"-"+b+"-"+d})(globalRoot);
  var initialDocumentTitle=document.title||"",userBrowsingDetails=" ["+(earlyFnGetYyyymmdd?earlyFnGetYyyymmdd:"")+(earlyDeviceType?" "+earlyDeviceType:"")+(earlyDeviceSize?" "+earlyDeviceSize:"")+(earlyDeviceOrientation?" "+earlyDeviceOrientation:"")+(earlySvgSupport?" "+earlySvgSupport:"")+(earlySvgasimgSupport?" "+earlySvgasimgSupport:"")+(earlyHasTouch?" "+earlyHasTouch:"")+"]";document.title&&(document.title+=userBrowsingDetails);
  (function(a){var b=function(b){this.ids=b||[]};b.prototype.timeout=function(b,a){var e=setTimeout(b,a);this.ids.push(e);return e};b.prototype.interval=function(b,a){var e=setInterval(b,a);this.ids.push(e);return e};b.prototype.clear=function(){this.ids.forEach(clearTimeout);this.ids=[]};a.Timers=b})(globalRoot);
  (function(a,b){a.debounce=function(a,c,e){function f(){var b=Date.now()-l;b<c&&0<=b?h=setTimeout(f,c-b):(h=null,e||(m=a.apply(g,k),g=k=null))}var h,k,g,l,m;if(b===c||null===c)c=100;var n=function(){g=this;k=arguments;l=Date.now();var b=e&&!h;h||(h=setTimeout(f,c));b&&(m=a.apply(g,k),g=k=null);return m};n.clear=function(){h&&(clearTimeout(h),h=null)};n.flush=function(){h&&(m=a.apply(g,k),g=k=null,clearTimeout(h),h=null)};return n}})(globalRoot);
  (function(a,b){a.throttle=function(b,a){function e(){g=0;l=+new Date;k=b.apply(f,h);h=f=null}var f,h,k,g,l=0;return function(){f=this;h=arguments;var b=new Date-l;g||(b>=a?e():g=setTimeout(e,a-b));return k}}})(globalRoot);
  (function(a){var b=a.document;b.ready=function(d){var c=/^loaded|^i|^c/.test(b.readyState);return new Promise(function(e){function f(){e(d);b.removeEventListener("DOMContentLoaded",f);a.removeEventListener("load",f)}if(c)return e(d);b.addEventListener("DOMContentLoaded",f);a.addEventListener("load",f)})}})(globalRoot);(function(a){a.scriptIsLoaded=function(b){for(var a=document.getElementsByTagName("script")||"",c=0;c<a.length;c+=1)if(a[c].getAttribute("src")===b)return!0;return!1}})(globalRoot);
  (function(a){a.loadUnparsedJSON=function(b,d,c){var e=a.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");e.overrideMimeType("application/json;charset=utf-8");e.open("GET",b,!0);e.withCredentials=!1;e.onreadystatechange=function(){if("404"===e.status||0===e.status)return console.log("Error XMLHttpRequest-ing file",e.status),c&&"function"===typeof c&&c();4===e.readyState&&200===e.status&&e.responseText&&d&&"function"===typeof d&&d(e.responseText)};e.send(null)}})(globalRoot);
  (function(a){a.insertExternalHTML=function(b,d,c,e){var f=document,h=f.body||"",k=f.getElementById(b.replace(/^#/,""))||"";k&&function(){var b=a.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");b.overrideMimeType("text/html;charset=utf-8");b.open("GET",d,!0);b.withCredentials=!1;b.onreadystatechange=function(){var a=function(){return c&&"function"===typeof c&&c()};if("404"===b.status||0===b.status)return console.log("Error XMLHttpRequest-ing file",b.status),e&&"function"===
  typeof e&&e();if(4===b.readyState&&200===b.status&&b.responseText){var d=b.responseText;try{var n=k.cloneNode(!1);if(f.createRange){var p=f.createRange();p.selectNode(h);var q=p.createContextualFragment(d);n.appendChild(q);return k.parentNode?k.parentNode.replaceChild(n,k):k.innerHTML=d,a()}n.innerHTML=d;return k.parentNode?k.parentNode.replaceChild(f.createDocumentFragment.appendChild(n),k):k.innerHTML=d,a()}catch(r){console.log(r)}}};b.send(null)}()}})(globalRoot);
  (function(a){a.safelyParseJSON=function(b){return-1!==["boolean","number","string","symbol","function"].indexOf(typeof b)?JSON.parse(b):b}})(globalRoot);(function(a){var b=function(a,c){var e=[],f;for(f in a)a.hasOwnProperty(f)&&("object"===typeof a[f]?e=e.concat(b(a[f],c)):f===c&&e.push(a[f]));return e};a.getKeyValuesFromJSON=b})(globalRoot);(function(a){a.truncString=function(b,a,c){c=c||"…";return"string"===typeof b&&b.length>a?b.substring(0,a)+c:b}})(globalRoot);
  (function(a){a.fixEnRuTypo=function(b,a,c){var e="";"ru"===a&&"en"===c?(a='абвгдеёжзийклмнопрстуфхцчшщъьыэюяАБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЬЫЭЮЯ"№;:?/.,',c="f,dult`;pbqrkvyjghcnea[wxio]ms'.zF<DULT~:PBQRKVYJGHCNEA{WXIO}MS'>Z@#$^&|/?"):(a="f,dult`;pbqrkvyjghcnea[wxio]ms'.zF<DULT~:PBQRKVYJGHCNEA{WXIO}MS'>Z@#$^&|/?",c='абвгдеёжзийклмнопрстуфхцчшщъьыэюяАБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЬЫЭЮЯ"№;:?/.,');for(var f=0;f<b.length;f++)var h=a.indexOf(b.charAt(f)),e=e>h?e+b.charAt(f):e+c.charAt(h);return e}})(globalRoot);
  (function(a){a.loadExternalHTML=function(b,d,c){if(!a.Promise||!a.fetch||a.chrome||"undefined"!==typeof a&&a.process&&"renderer"===a.process.type){var e=a.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");e.overrideMimeType("text/html;charset=utf-8");e.open("GET",b,!0);e.withCredentials=!1;e.onreadystatechange=function(){if("404"===e.status||0===e.status)return console.log("Error XMLHttpRequest-ing file "+b,e.status),c&&"function"===typeof c&&c();4===e.readyState&&200===e.status&&
  e.responseText&&d&&"function"===typeof d&&d(e.responseText)};e.send(null)}else fetch(b).then(function(b){if(!b.ok)if(c&&"function"===typeof c)c();else throw Error(b.statusText);return b}).then(function(b){return b.text()}).then(function(b){d&&"function"===typeof d&&d(b)})["catch"](function(a){console.log("Error fetch-ing file "+b,a)})}})(globalRoot);(function(a){a.removeElement=function(b){if(b)return"undefined"!==typeof b.remove?b.remove():b.parentNode&&b.parentNode.removeChild(b)}})(globalRoot);
  (function(a){a.removeChildren=function(b){if(b&&b.firstChild)for(;b.firstChild;)b.removeChild(b.firstChild)}})(globalRoot);
  (function(a){a.insertTextAsFragment=function(b,a,c){var e=document,f=e.body||"",h=function(){return c&&"function"===typeof c&&c()};try{var k=a.cloneNode(!1);if(e.createRange){var g=e.createRange();g.selectNode(f);var l=g.createContextualFragment(b);k.appendChild(l);return a.parentNode?a.parentNode.replaceChild(k,a):a.innerHTML=b,h()}k.innerHTML=b;return a.parentNode?a.parentNode.replaceChild(e.createDocumentFragment.appendChild(k),a):a.innerHTML=b,h()}catch(m){console.log(m)}return!1}})(globalRoot);
  (function(a){a.appendFragment=function(b,a){var c=document;a=a||c.getElementsByTagNames("body")[0]||"";if(b){var c=document,e=c.createDocumentFragment()||"";"string"===typeof b&&(b=c.createTextNode(b));e.appendChild(b);a.appendChild(e)}}})(globalRoot);(function(a){a.setStyleDisplayBlock=function(b){b&&(b.style.display="block")}})(globalRoot);(function(a){a.setStyleDisplayNone=function(b){b&&(b.style.display="none")}})(globalRoot);
  (function(a){a.setStyleOpacity=function(b,a){b&&(b.style.opacity=a||1)}})(globalRoot);(function(a){a.isValidId=function(b,a){return a?/^\#[A-Za-z][-A-Za-z0-9_:.]*$/.test(b)?!0:!1:/^[A-Za-z][-A-Za-z0-9_:.]*$/.test(b)?!0:!1}})(globalRoot);
  (function(a){a.findPos=function(b){b=b.getBoundingClientRect();var d=document.body,c=document.documentElement;return{top:Math.round(b.top+(a.pageYOffset||c.scrollTop||d.scrollTop)-(c.clientTop||d.clientTop||0)),left:Math.round(b.left+(a.pageXOffset||c.scrollLeft||d.scrollLeft)-(c.clientLeft||d.clientLeft||0))}}})(globalRoot);
  (function(a){a.parseLink=function(b,d){d=d||!1;return function(){var c=function(b){return b.replace(/^(#|\?)/,"").replace(/\:$/,"")},e=location||"",f=0===b.indexOf("//")||!!~b.indexOf("://"),h=a.location||"",k=function(){return h.protocol+"//"+h.hostname+(h.port?":"+h.port:"")||""},g=document.createElement("a");g.href=b;var l=g.href,m=k(),n=g.host||e.host,p;if("0"===g.port||""===g.port)a:switch(g.protocol){case "http:":p=d?":80":80;break a;case "https:":p=d?":443":443;break a;default:p=d?":"+e.port:
  e.port}else p=d?g.port:c(g.port);return{href:l,origin:m,host:n,port:p,hash:d?g.hash:c(g.hash),hostname:g.hostname||e.hostname,pathname:"/"!==g.pathname.charAt(0)?d?"/"+g.pathname:g.pathname:d?g.pathname:g.pathname.slice(1),protocol:g.protocol&&":"!==g.protocol?d?g.protocol:c(g.protocol):d?e.protocol:c(e.protocol),search:d?g.search:c(g.search),query:d?g.search:c(g.search),isAbsolute:f,isRelative:!f,isCrossDomain:function(){var a=document.createElement("a");a.href=b;return a.protocol+"//"+a.hostname+
  (a.port?":"+a.port:"")!==k()}(),hasHTTP:/^(http|https):\/\//i.test(b)?!0:!1}}()}})(globalRoot);(function(a){var b=function(b){return function(a){return"http:"===b?"http":"https:"===b?"https":a?"http":""}}(a.location.protocol||"");a.getHTTP=b})(globalRoot);
  (function(a){var b="undefined"!==typeof process&&"undefined"!==typeof require||"",d="undefined"!==typeof a&&a.process&&"renderer"===a.process.type||"",c;a:{if("undefined"!==typeof b&&b)try{if("undefined"!==typeof require("nw.gui")){c=!0;break a}}catch(e){}c=!1}a.openDeviceBrowser=function(b){var f=function(){var a=d?require("electron").shell:"";return a?a.openExternal(b):""},h=function(){var a=c?require("nw.gui").Shell:"";return a?a.openExternal(b):""};d?f():c?h():(f=a.location.protocol||"",(!f||
  "http:"!==f&&"https:"!==f)&&a.open(b,"_system","scrollbars=1,location=no"))}})(globalRoot);var progressBar=new ToProgress({id:"top-progress-bar",color:"#FF2C40",height:"3px",duration:.2});progressBar.init=function(a){return this.increase(a||20)};progressBar.complete=function(){return this.finish(),this.hide()};progressBar.init();
  var LoadingSpinner=function(){var a=document,b=a.body||"",d=a.getElementsByClassName("loading-spinner")[0]||"";d||(d=a.createElement("div"),d.classList.add("loading-spinner"),appendFragment(d,b));return{show:function(){return b.classList.contains("is-active-loading-spinner")||b.classList.add("is-active-loading-spinner")},hide:function(a,e){e=e||500;var d=new Timers;d.timeout(function(){d.clear();d=null;b.classList.remove("is-active-loading-spinner");a&&"function"===typeof a&&a()},e)}}}(),notiBar=
  function(a){var b=document,d=b.body||"",c=b.getElementsByClassName("notibar")[0]||"";"string"===typeof a&&(a={message:a});var e={message:"",timeout:1E4,key:"_notibar_dismiss_",datum:"ok",days:0},f;for(f in a)a.hasOwnProperty(f)&&(e[f]=a[f]);a=Cookies.get(e.key)||"";if(!a||a!==decodeURIComponent(e.datum)){c?removeChildren(c):(c=b.createElement("div"),c.classList.add("notibar"),c.classList.add("animated"));a=b.createElement("div");a.classList.add("message");f=e.message||"";"string"===typeof f&&(f=b.createTextNode(f));
  a.appendChild(f);c.appendChild(a);var h=b.createElement("a");h.classList.add("close");var k=function(){var a=b.getElementsByClassName("notibar")[0]||"";a&&(a.classList.remove("fadeInDown"),a.classList.add("fadeOutUp"),removeChildren(a))},g=function(){h.removeEventListener("click",g);k();e.days?Cookies.set(e.key,e.datum,{expires:e.days}):Cookies.set(e.key,e.datum)};h.addEventListener("click",g);c.appendChild(h);if(d){appendFragment(c,d);c.classList.remove("fadeOutUp");c.classList.add("fadeInDown");
  var l=new Timers;l.timeout(function(){l.clear();l=null;k()},e.timeout)}}},Notifier42=function(a,b,d){a=a||"No message passed as argument";b=b||0;d=d||"";var c=document,e=c.body||"",f=c.getElementsByClassName("notifier42")[0]||"";f||(f=c.createElement("div"),appendFragment(f,e));f.classList.add("notifier42");f.classList.add("animated");f.classList.add("fadeInUp");d&&f.classList.add(d);"string"===typeof a&&(a=c.createTextNode(a));appendFragment(a,f);var h=function(b){f.classList.remove("fadeInUp");
  f.classList.add("fadeOutDown");var a=new Timers;a.timeout(function(){a.clear();a=null;f.classList.remove("animated");f.classList.remove("fadeOutDown");d&&f.classList.remove(d);removeChildren(f);b&&"function"===typeof b&&b()},400)};f.addEventListener("click",function l(){this.removeEventListener("click",l);h()});if(0!==b){var k=new Timers;k.timeout(function(){k.clear();k=null;h()},b)}return{destroy:function(){return h(removeElement.bind(null,f))}}},initNotifier42WriteMe=function(){if("undefined"!==
  typeof getHTTP&&getHTTP()){var a=document,b=parseLink(globalRoot.location.href).origin,d=function(){var b=a.createElement("a");b.href="javascript:void(0);";appendFragment("Напишите мне, отвечу очень скоро. Регистрироваться не нужно.",b);var c=function(d){d.stopPropagation();d.preventDefault();b.removeEventListener("click",c);d=a.getElementById("disqus_thread")||"";scroll2Top(d?findPos(d).top:0,2E4)};b.addEventListener("click",c);Notifier42(b,5E3);Cookies.set("_notifier42_write_me_","Напишите мне, отвечу очень скоро. Регистрироваться не нужно.")};
  if(!Cookies.get("_notifier42_write_me_")&&b){var c=new Timers;c.timeout(function(){c.clear();c=null;d()},8E3)}}};document.ready().then(initNotifier42WriteMe);
  var initSidepanel=function(){var a=globalRoot,b=document,d=b.body||"",c=b.getElementsByClassName("btn-toggle-ui-sidepanel")[0]||"",e=b.getElementsByClassName("page")[0]||"",f=b.getElementsByClassName("container")[0]||"",h=b.getElementsByClassName("page-overlay")[0]||"",b=(b=b.getElementsByClassName("ui-sidepanel")[0]||"")?b.getElementsByTagName("li")||"":"";if(d&&c&&e&&f){var k=function(){e.classList.contains("is-active-holder-location-qr-code")&&e.classList.remove("is-active-holder-location-qr-code");
  e.classList.contains("is-active-holder-vk-like")&&e.classList.remove("is-active-holder-vk-like");e.classList.contains("is-active-holder-share-buttons")&&e.classList.remove("is-active-holder-share-buttons");e.classList.contains("is-active-ui-menumore")&&e.classList.remove("is-active-ui-menumore")},g=function(){e.classList.contains("is-active-ui-sidepanel")&&e.classList.remove("is-active-ui-sidepanel");k()},l=function(){e.classList.contains("is-active-ui-sidepanel")||e.classList.add("is-active-ui-sidepanel");
  k()};c.addEventListener("click",function(b){b.stopPropagation();b.preventDefault();e.classList.toggle("is-active-ui-sidepanel");k()});a.tocca&&"undefined"!==typeof earlyHasTouch&&"touch"===earlyHasTouch&&(h.addEventListener("swipeleft",g),f.addEventListener("swiperight",l));if(b)for(a=0,c=b.length;a<c;a+=1)b[a].addEventListener("click",g);d.addEventListener("click",g)}};document.ready().then(initSidepanel);
  var highlightSidepanelItem=function(){var a=globalRoot,b=document.getElementsByClassName("ui-sidepanel-list")[0]||"",d=b?b.getElementsByTagName("a")||"":"",a=a.location.href||"";if(b&&d&&a)for(var b=0,c=d.length;b<c;b+=1){var e=d[b];a===e.href?e.classList.add("is-active"):e.classList.remove("is-active")}};document.ready().then(highlightSidepanelItem);globalRoot.addEventListener("hashchange",highlightSidepanelItem);
  var initMenuMore=function(){var a=document,b=a.getElementsByClassName("btn-toggle-ui-menumore")[0]||"",d=a.getElementsByClassName("page")[0]||"",a=(a=a.getElementsByClassName("ui-menumore")[0]||"")?a.getElementsByTagName("li")||"":"";if(b&&d){var c=function(){d.classList.contains("is-active-holder-location-qr-code")&&d.classList.remove("is-active-holder-location-qr-code");d.classList.contains("is-active-holder-vk-like")&&d.classList.remove("is-active-holder-vk-like");d.classList.contains("is-active-holder-share-buttons")&&
  d.classList.remove("is-active-holder-share-buttons");d.classList.contains("is-active-ui-sidepanel")&&d.classList.remove("is-active-ui-sidepanel")};b.addEventListener("click",function(b){b.stopPropagation();b.preventDefault();d.classList.toggle("is-active-ui-menumore");c()});b=function(){d.classList.contains("is-active-ui-menumore")&&d.classList.remove("is-active-ui-menumore");c()};if(a)for(var e=0,f=a.length;e<f;e+=1)a[e].addEventListener("click",b)}};document.ready().then(initMenuMore);
  var handleExternalLink=function(a,b){b.stopPropagation();b.preventDefault();var d=openDeviceBrowser.bind(null,a);debounce(d,200)()},manageExternalLinkAll=function(a){a=a&&a.nodeName?a:"";var b=document;if(a=a?a.getElementsByTagName("a")||"":b.getElementsByTagName("a")||"")for(var b=0,d=a.length;b<d;b+=1){var c=a[b];if(!c.classList.contains("is-binded")){var e=c.getAttribute("href")||"";e&&parseLink(e).isCrossDomain&&parseLink(e).hasHTTP&&(c.title=""+(parseLink(e).hostname||"")+" откроется в новой вкладке",
  "undefined"!==typeof getHTTP&&getHTTP()?(c.target="_blank",c.rel="noopener"):c.addEventListener("click",handleExternalLink.bind(null,e)),c.classList.add("is-binded"))}}};document.ready().then(manageExternalLinkAll);
  var hideImgLightbox=function(){var a=document.getElementsByClassName("img-lightbox-container")[0]||"",b=a?a.getElementsByTagName("img")[0]||"":"",d=function(){a.classList.remove("fadeIn");a.classList.add("fadeOut");var c=new Timers;c.timeout(function(){c.clear();c=null;a.classList.remove("animated");a.classList.remove("fadeOut");b.classList.remove("animated");b.classList.remove("fadeOutDown");b.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=";
  a.style.display="none"},400)};if(a&&b){b.classList.remove("fadeInUp");b.classList.add("fadeOutDown");var c=new Timers;c.timeout(function(){c.clear();c=null;d()},400)}},handleImgLightboxContainer=function(){var a=document.getElementsByClassName("img-lightbox-container")[0]||"";a&&(a.removeEventListener("click",handleImgLightboxContainer),hideImgLightbox())},handleImgLightboxWindow=function(a){globalRoot.removeEventListener("keyup",handleImgLightboxWindow);27===(a.which||a.keyCode)&&hideImgLightbox()},
  manageImgLightboxLinks=function(a){a=a&&a.nodeName?a:"";var b=globalRoot,d=document,c=d.body||"";a=a?a.getElementsByClassName("img-lightbox-link")||"":d.getElementsByClassName("img-lightbox-link")||"";var e=d.getElementsByClassName("img-lightbox-container")[0]||"",f=e?e.getElementsByTagName("img")[0]||"":"";e||(e=d.createElement("div"),f=d.createElement("img"),f.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=",f.alt="",e.appendChild(f),
  e.classList.add("img-lightbox-container"),appendFragment(e,c));d=function(a){var c=function(a){a.stopPropagation();a.preventDefault();var c=this;debounce(function(){var a=c.getAttribute("href")||"";e&&f&&a&&(LoadingSpinner.show(),e.classList.add("animated"),e.classList.add("fadeIn"),f.classList.add("animated"),f.classList.add("fadeInUp"),parseLink(a).isAbsolute&&!parseLink(a).hasHTTP&&(a=a.replace(/^/,getHTTP(!0)+":")),imagePromise(a).then(function(b){f.src=a})["catch"](function(b){}),b.addEventListener("keyup",
  handleImgLightboxWindow),e.addEventListener("click",handleImgLightboxContainer),e.style.display="block",LoadingSpinner.hide())},200)()};if(!a.classList.contains("is-binded")){var d=a.getAttribute("href")||"";d&&(parseLink(d).isAbsolute&&!parseLink(d).hasHTTP&&a.setAttribute("href",d.replace(/^/,getHTTP(!0)+":")),a.addEventListener("click",c),a.classList.add("is-binded"))}};if(a)for(var c=0,h=a.length;c<h;c+=1)d(a[c])},handleDataSrcImageAll=function(){var a=document.getElementsByClassName("data-src-img")||
  "",b=function(b){if(verge.inY(b,100)&&!b.classList.contains("is-binded")){var a=b.dataset.src||"";a&&(parseLink(a).isAbsolute&&!parseLink(a).hasHTTP&&(b.dataset.src=a.replace(/^/,getHTTP(!0)+":"),a=b.dataset.src),imagePromise(a).then(function(c){b.src=a})["catch"](function(b){console.log("cannot load image with imagePromise:",a)}),b.classList.add("is-active"),b.classList.add("is-binded"))}};if(a)for(var d=0,c=a.length;d<c;d+=1)b(a[d])},handleDataSrcImageAllWindow=function(){throttle(handleDataSrcImageAll,
  100)()},manageDataSrcImageAll=function(){var a=globalRoot;a.removeEventListener("scroll",handleDataSrcImageAllWindow,{passive:!0});a.removeEventListener("resize",handleDataSrcImageAllWindow);a.addEventListener("scroll",handleDataSrcImageAllWindow,{passive:!0});a.addEventListener("resize",handleDataSrcImageAllWindow);var b=new Timers;b.timeout(function(){b.clear();b=null;handleDataSrcImageAll()},500)};globalRoot.addEventListener("load",manageDataSrcImageAll);
  var manageDataQrcodeImages=function(a){a=a&&a.nodeName?a:"";var b=globalRoot,d=document,c=a?a.getElementsByClassName("data-qrcode-img")||"":d.getElementsByClassName("data-qrcode-img")||"";a=function(){for(var a=0,d=c.length;a<d;a+=1){var h=c[a],k=h.dataset.qrcode||"";if(k=decodeURIComponent(k)){var g=getHTTP(!0)+"://chart.googleapis.com/chart?cht=qr&chld=M%7C4&choe=UTF-8&chs=300x300&chl="+encodeURIComponent(k);h.title=k;h.alt=k;b.QRCode&&("undefined"!==typeof earlySvgSupport&&"svg"===earlySvgSupport?
  (g=QRCode.generateSVG(k,{ecclevel:"M",fillcolor:"#F3F3F3",textcolor:"#191919",margin:4,modulesize:8}),g=(new XMLSerializer).serializeToString(g),g="data:image/svg+xml;base64,"+b.btoa(unescape(encodeURIComponent(g)))):g=QRCode.generatePNG(k,{ecclevel:"M",format:"html",fillcolor:"#F3F3F3",textcolor:"#191919",margin:4,modulesize:8}));h.src=g}}};c&&(scriptIsLoaded("../cdn/qrjs2/0.1.3/js/qrjs2.fixed.min.js")?a():loadJS("../cdn/qrjs2/0.1.3/js/qrjs2.fixed.min.js",a))},handleChaptersSelect=function(){var a=
  globalRoot,b=document,d=this.options[this.selectedIndex].value||"";d&&((b=d?isValidId(d,!0)?b.getElementById(d.replace(/^#/,""))||"":"":"")?scroll2Top(findPos(b).top,2E4):a.location.href=d)},manageChaptersSelect=function(){var a=document.getElementById("chapters-select")||"";a&&a.addEventListener("change",handleChaptersSelect)},manageSearchInput=function(){var a=document.getElementById("text")||"",b=function(){var a=this;debounce(function(){a.value=a.value.replace(/\\/g,"").replace(/ +(?= )/g," ").replace(/\/+(?=\/)/g,
  "/")||""},200)()};a&&(a.focus(),a.addEventListener("input",b))};document.ready().then(manageSearchInput);
  var handleExpandingLayerAll=function(){var a=this.parentNode?this.parentNode.nextElementSibling:"";a&&(this.classList.toggle("is-active"),a.classList.toggle("is-active"))},manageExpandingLayers=function(a){a=a&&a.nodeName?a:"";var b=document;if(a=a?a.getElementsByClassName("btn-expand-hidden-layer")||"":b.getElementsByClassName("btn-expand-hidden-layer")||"")for(var b=0,d=a.length;b<d;b+=1)a[b].addEventListener("click",handleExpandingLayerAll)},includeHTMLintoTarget=function(a,b,d){var c=document.getElementById(d.replace(/^#/,
  ""))||""||"",e=c.parentNode||"";c&&function(){var d=function(){a.parentNode?setStyleDisplayNone(a.parentNode):setStyleDisplayNone(a)},h=function(a){insertTextAsFragment(a,c,function(){d();e&&(manageExternalLinkAll(e),manageImgLightboxLinks(e),handleDataSrcImageAll())})};loadExternalHTML(b,function(a){h(a)},function(a){d();setStyleDisplayNone(c)})}()},manageDataTargetLinks=function(a){a=a&&a.nodeName?a:"";var b=document,d=a?a.getElementsByClassName("data-target-link")||"":b.getElementsByClassName("data-target-link")||
  "";d&&function(){for(var a=function(a){var b=a.dataset.include||"",c=a.dataset.target||"";if(b&&c){a.title="Появится здесь же";var d=function(e){e.stopPropagation();e.preventDefault();a.removeEventListener("click",d);includeHTMLintoTarget(a,b,c)};a.addEventListener("click",d)}},b=0,f=d.length;b<f;b+=1)a(d[b])}()},manageDebugGridButton=function(){var a=globalRoot,b=document,d=b.body||"",c=b.getElementById("container")||"",e=b.getElementById("page")||"",f=b.getElementsByClassName("btn-toggle-col-debug")[0]||
  "",h=function(){c&&(c.classList.remove("debug"),c.removeEventListener("click",h))},k=function(f){f.stopPropagation();f.preventDefault();c.classList.toggle("debug");if(c.classList.contains("debug")){c.addEventListener("click",h);f=b.getElementsByClassName("col")[0]||"";f=[d,e,c,f];for(var g=[],k=0,p=f.length;k<p;k+=1){var q=f[k];q&&g.push(q.className?"."+q.className:q.id?"#"+q.id:q.tagName," ",a.getComputedStyle(q).getPropertyValue("font-size")," ",a.getComputedStyle(q).getPropertyValue("line-height"),
  " ",q.offsetWidth,"x",q.offsetHeight," > ")}g=g.join("");g=g.slice(0,g.lastIndexOf(" > "));notiBar({message:g,timeout:5E3,key:"_manageDebugGridButton_",datum:"ok",days:0})}else c.removeEventListener("click",h)};if(e&&c&&f){var g=a.location.href||"";g&&parseLink(g).hasHTTP&&/^(localhost|127.0.0.1)/.test(parseLink(g).hostname)?f.addEventListener("click",k):f.style.display="none"}};document.ready().then(manageDebugGridButton);
  var manageLocationQrCodeImage=function(){var a=globalRoot,b=document,d=b.getElementsByClassName("btn-toggle-holder-location-qr-code")[0]||"",c=b.getElementsByClassName("page")[0]||"",e=b.getElementsByClassName("holder-location-qr-code")[0]||"",f=a.location.href||"",h=function(){c.classList.contains("is-active-holder-vk-like")&&c.classList.remove("is-active-holder-vk-like");c.classList.contains("is-active-holder-share-buttons")&&c.classList.remove("is-active-holder-share-buttons");c.classList.contains("is-active-ui-sidepanel")&&
  c.classList.remove("is-active-ui-sidepanel");c.classList.contains("is-active-ui-menumore")&&c.classList.remove("is-active-ui-menumore")},k=function(a){a.stopPropagation();a.preventDefault();c.classList.toggle("is-active-holder-location-qr-code");h()},g=function(){c.classList.contains("is-active-holder-location-qr-code")&&c.classList.remove("is-active-holder-location-qr-code")},l=function(){g();h()},m=function(){var c=a.location.href||"",d=b.createElement("img"),f=b.title?"Ссылка на страницу «"+b.title.replace(/\[[^\]]*?\]/g,
  "").trim()+"»":"",g=getHTTP(!0)+"://chart.googleapis.com/chart?cht=qr&chld=M%7C4&choe=UTF-8&chs=300x300&chl="+encodeURIComponent(c);d.alt=f;a.QRCode&&("undefined"!==typeof earlySvgSupport&&"svg"===earlySvgSupport?(g=QRCode.generateSVG(c,{ecclevel:"M",fillcolor:"#FFFFFF",textcolor:"#191919",margin:4,modulesize:8}),g=(new XMLSerializer).serializeToString(g),g="data:image/svg+xml;base64,"+a.btoa(unescape(encodeURIComponent(g)))):g=QRCode.generatePNG(c,{ecclevel:"M",format:"html",fillcolor:"#FFFFFF",
  textcolor:"#191919",margin:4,modulesize:8}));d.src=g;d.classList.add("qr-code-img");d.title=f;removeChildren(e);appendFragment(d,e)},n=function(){g();d.addEventListener("click",m);d.addEventListener("click",k);a.addEventListener("hashchange",m);e.addEventListener("click",l)};d&&c&&e&&f&&"undefined"!==typeof getHTTP&&getHTTP()&&(scriptIsLoaded("../cdn/qrjs2/0.1.3/js/qrjs2.fixed.min.js")||loadJS("../cdn/qrjs2/0.1.3/js/qrjs2.fixed.min.js",n))};document.ready().then(manageLocationQrCodeImage);
  var yshare,manageShareButton=function(){var a=globalRoot,b=document,d=b.getElementsByClassName("btn-toggle-holder-share-buttons")[0]||"",c=b.getElementById("ya-share2")||"",e=b.getElementsByClassName("page")[0]||"",f=b.getElementsByClassName("holder-share-buttons")[0]||"",h=function(c){c.stopPropagation();c.preventDefault();e.classList.toggle("is-active-holder-share-buttons");e.classList.contains("is-active-holder-location-qr-code")&&e.classList.remove("is-active-holder-location-qr-code");e.classList.contains("is-active-holder-vk-like")&&
  e.classList.remove("is-active-holder-vk-like");e.classList.contains("is-active-ui-sidepanel")&&e.classList.remove("is-active-ui-sidepanel");e.classList.contains("is-active-ui-menumore")&&e.classList.remove("is-active-ui-menumore");c=function(){a.Ya&&(yshare?yshare.updateContent({title:b.title||"",description:b.title||"",url:a.location.href||""}):yshare=Ya.share2("ya-share2",{content:{title:b.title||"",description:b.title||"",url:a.location.href||""}}))};if(e.classList.contains("is-active-holder-share-buttons")){var d=
  getHTTP(!0)+"://yastatic.net/share2/share.js";scriptIsLoaded(d)?c():loadJS(d,c)}};d&&e&&f&&c&&"undefined"!==typeof getHTTP&&getHTTP()&&d.addEventListener("click",h)};document.ready().then(manageShareButton);
  var vlike,manageVKLikeButton=function(){var a=globalRoot,b=document,d=b.getElementsByClassName("btn-toggle-holder-vk-like")[0]||"",c=b.getElementsByClassName("page")[0]||"",e=b.getElementById("vk-like")||"",b=function(b){b.stopPropagation();b.preventDefault();c.classList.toggle("is-active-holder-vk-like");c.classList.contains("is-active-holder-location-qr-code")&&c.classList.remove("is-active-holder-location-qr-code");c.classList.contains("is-active-holder-share-buttons")&&c.classList.remove("is-active-holder-share-buttons");
  c.classList.contains("is-active-ui-sidepanel")&&c.classList.remove("is-active-ui-sidepanel");c.classList.contains("is-active-ui-menumore")&&c.classList.remove("is-active-ui-menumore");b=function(){if(a.VK&&!vlike)try{VK.init({apiId:e.dataset.apiid||"",nameTransportPath:"/xd_receiver.htm",onlyWidgets:!0}),VK.Widgets.Like("vk-like",{type:"button",height:24}),vlike=!0}catch(b){console.log("cannot init VK",b)}};if(c.classList.contains("is-active-holder-vk-like")){var d=getHTTP(!0)+"://vk.com/js/api/openapi.js?122";
  scriptIsLoaded(d)?b():loadJS(d,b)}};d&&c&&e&&"undefined"!==typeof getHTTP&&getHTTP()&&d.addEventListener("click",b)};document.ready().then(manageVKLikeButton);
  var loadRefreshDisqus=function(){var a=globalRoot,b=document,d=b.getElementById("disqus_thread")||"",c=b.getElementsByClassName("btn-show-disqus")[0]||"",e=a.location.href||"",f=d?d.dataset.shortname||"":"",h=function(){if(a.DISQUS)try{DISQUS.reset({reload:!0,config:function(){this.page.identifier=f;this.page.url=e}})}catch(b){}};c&&d&&f&&e&&("undefined"!==typeof getHTTP&&getHTTP()?(LoadingSpinner.show(),d.classList.add("is-active"),setStyleDisplayNone(c),LoadingSpinner.hide(),d=getHTTP(!0)+"://"+
  f+".disqus.com/embed.js",scriptIsLoaded(d)?h():loadJS(d,h)):(removeChildren(d),h=b.createRange().createContextualFragment("<p>Комментарии доступны только в веб версии этой страницы.</p>"),appendFragment(h,d),d.removeAttribute("id"),setStyleDisplayNone(c.parentNode)))},manageDisqusButton=function(){var a=document,b=a.getElementById("disqus_thread")||"",d=b?a.getElementsByClassName("btn-show-disqus")[0]||"":"",c=function(a){a.stopPropagation();a.preventDefault();d.removeEventListener("click",c);loadRefreshDisqus()};
  b&&d&&d.addEventListener("click",c)},mymap,initYandexMap=function(a){var b=globalRoot,d=document,c=d.getElementById(a)||"",e=c?d.getElementById(c.dataset.btnShow)||"":"",f=c?d.getElementById(c.dataset.btnDestroy)||"":"",h=c?c.dataset.center||"":"",k=c?c.dataset.zoom||"":"",g=function(a){a.stopPropagation();a.preventDefault();f.removeEventListener("click",g);mymap&&mymap.destroy()},l=function(){if(b.ymaps)try{ymaps.ready(function(){mymap&&mymap.destroy();mymap=new ymaps.Map(a,{center:JSON.parse(h),
  zoom:k})}),c.parentNode.classList.add("is-active"),setStyleDisplayNone(e),LoadingSpinner.hide()}catch(d){console.log("cannot init ymaps",d)}};c&&h&&k&&e&&("undefined"!==typeof getHTTP&&getHTTP()?(f&&f.addEventListener("click",g),LoadingSpinner.show(),d=getHTTP(!0)+"://api-maps.yandex.ru/2.1/?lang=ru_RU",scriptIsLoaded(d)?l():loadJS(d,l)):(removeChildren(c),l=d.createRange().createContextualFragment("<p>Карты доступны только в веб версии этой страницы.</p>"),appendFragment(l,c),c.removeAttribute("id"),
  setStyleDisplayNone(e.parentNode)))},manageYandexMapButton=function(a){var b=document,d=b.getElementById(a)||"",c=d?b.getElementById(d.dataset.btnShow)||"":"",e=function(b){b.stopPropagation();b.preventDefault();c.removeEventListener("click",e);initYandexMap(a);return!1};d&&c&&c.addEventListener("click",e)},initKamilAutocomplete=function(){var a=globalRoot,b=document,d=b.getElementsByClassName("search-form")[0]||"",c=b.getElementById("text")||"",e=b.getElementById("container")||"",f=function(d){var f;
  try{var h=safelyParseJSON(d);if(!h.hashes[0].hasOwnProperty("title"))throw Error("incomplete JSON data: no title");f=new Kamil("#text",{source:h.hashes,property:"title",minChars:2})}catch(q){console.log("cannot init generateMenu",q);return}var m=b.createElement("ul"),n=b.createElement("li"),p=function(){setStyleDisplayNone(m);setStyleDisplayNone(n)};m.classList.add("kamil-autocomplete");m.id="kamil-typo-autocomplete";p();m.appendChild(n);c.parentNode.insertBefore(m,c.nextElementSibling);f.renderMenu=
  function(a,d){d=d||"";var e=d.length;if(d)for(var f=0;f<e;f+=1)10>f&&this._renderItemData(a,d[f],f);for(;1>e;)f=c.value,f=/[^\u0000-\u007f]/.test(f)?fixEnRuTypo(f,"ru","en"):fixEnRuTypo(f,"en","ru"),setStyleDisplayBlock(m),setStyleDisplayBlock(n),removeChildren(n),n.appendChild(b.createTextNode(""+f)),f.match(/^\s*$/)&&p(),(3>c.value.length||c.value.match(/^\s*$/))&&p(),e+=1;if(e=a?a.getElementsByTagName("li")||"":"")for(var f=0,g=e.length;f<g;f+=1){var h=e[f],k=h.firstChild.textContent||"",l=b.createTextNode(truncString(k,
  24));h.replaceChild(l,h.firstChild);h.title=""+k}};n.addEventListener("click",function(a){a.stopPropagation();a.preventDefault();c.focus();c.value=n.firstChild.textContent||"";setStyleDisplayNone(m)});e&&e.addEventListener("click",p);f.on("kamilselect",function(b){var c=b.item.href||"";c&&(b.inputElement.value="",p(),a.location.href="../app/"+c)})},h=function(){loadUnparsedJSON("../app/libs/pwa-englishextra/json/routes.json",f)};d&&c&&(scriptIsLoaded("../cdn/kamil/0.1.1/js/kamil.fixed.min.js")||loadJS("../cdn/kamil/0.1.1/js/kamil.fixed.min.js",
  h))};document.ready().then(initKamilAutocomplete);
  var initUiTotop=function(){var a=globalRoot,b=document,d=b.documentElement||"",c=b.body||"",e=b.createElement("a"),f=function(a){a.stopPropagation();a.preventDefault();scroll2Top(0,2E4)},h=function(a){throttle(function(){var e=b.getElementsByClassName("ui-totop")[0]||"",f=a.pageYOffset||d.scrollTop||c.scrollTop||"",h=a.innerHeight||d.clientHeight||c.clientHeight||"";f&&h&&e&&(f>h?e.classList.add("is-active"):e.classList.remove("is-active"))},100)()};e.classList.add("ui-totop");e.href="javascript:void(0);";
  e.title="Наверх";c.appendChild(e);c&&(e.addEventListener("click",f),a.addEventListener("scroll",h,{passive:!0}))};document.ready().then(initUiTotop);
  var initRoutie=function(){var a=document,b=a.getElementById("app-content")||"",d=b.parentNode||"",c=function(a,b,c){a&&b&&(LoadingSpinner.show(),insertExternalHTML(a,b,c))},e=function(b){b=b||"";a.title=(b?b+" - ":"")+(initialDocumentTitle?initialDocumentTitle+(userBrowsingDetails?userBrowsingDetails:""):"");manageYandexMapButton("ymap");manageDisqusButton(d);manageExternalLinkAll(d);manageDataTargetLinks(d);manageImgLightboxLinks(d);manageDataQrcodeImages(d);manageChaptersSelect(d);manageExpandingLayers(d);
  handleDataSrcImageAll();LoadingSpinner.hide(scroll2Top.bind(null,0,2E4))};b&&routie({"":function(){c("app-content","./includes/home.html",function(){e("Начало")})},"/home":function(){c("app-content","./includes/home.html",function(){e("Начало")})},"/schedule":function(){"undefined"!==typeof getHTTP&&getHTTP()&&c("app-content","./includes/schedule.html",function(){e("Расписание")})},"/map":function(){"undefined"!==typeof getHTTP&&getHTTP()&&c("app-content","./includes/map.html",function(){e("Карта")})},
  "/level_test":function(){c("app-content","./includes/level_test.html",function(){e("Уровневый тест")})},"/common_mistakes":function(){c("app-content","./includes/common_mistakes.html",function(){e("Распространенные ошибки")})},"/demo_ege":function(){c("app-content","./includes/demo_ege.html",function(){e("Демо-вариант ЕГЭ-11 АЯ (ПЧ)")})},"/demo_ege_speaking":function(){c("app-content","./includes/demo_ege_speaking.html",function(){e("Демо-вариант ЕГЭ-11 АЯ (УЧ)")})},"/previous_ege_analysis":function(){c("app-content",
  "./includes/previous_ege_analysis.html",function(){e("ЕГЭ: разбор ошибок")})},"/*":function(){var b=a.getElementById("app-content")||"",c=a.createRange().createContextualFragment('<div class="padded-content"><div class="col"><div class="row"><div class="column small-12 medium-12 large-12"><p>Нет такой страницы. <a href="#/home">Исправить?</a></p></div></div></div></div>');b&&(LoadingSpinner.show(),removeChildren(b),appendFragment(c,b),e("Нет такой страницы"))}})};document.ready().then(initRoutie);
  var showPageFinishProgress=function(){var a=document.getElementById("page")||"";if(a)if("undefined"!==typeof imagesPreloaded){var b=new Timers;b.interval(function(){imagesPreloaded&&(b.clear(),b=null,setStyleOpacity(a,1),progressBar.increase(20))},100)}else setStyleOpacity(a,1),progressBar.increase(20)};document.ready().then(showPageFinishProgress);globalRoot.addEventListener("load",function(){progressBar.complete()});
  //# sourceMappingURL=bundle.min.js.map
  