1 require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({"sphinx-rtd-theme":[function(require,module,exports){
2 var jQuery = (typeof(window) != 'undefined') ? window.jQuery : require('jquery');
4 // Sphinx theme nav state
19 nav.enable = function () {
22 if (!self.isRunning) {
23 self.isRunning = true;
28 self.win.on('hashchange', self.reset);
31 self.win.on('scroll', function () {
32 if (!self.linkScroll) {
33 self.winScroll = true;
36 setInterval(function () { if (self.winScroll) self.onScroll(); }, 25);
39 self.win.on('resize', function () {
40 self.winResize = true;
42 setInterval(function () { if (self.winResize) self.onResize(); }, 25);
48 nav.init = function ($) {
49 var doc = $(document),
52 this.navBar = $('div.wy-side-scroll:first');
55 // Set up javascript UX bits
57 // Shift nav in mobile when clicking the menu.
58 .on('click', "[data-toggle='wy-nav-top']", function() {
59 $("[data-toggle='wy-nav-shift']").toggleClass("shift");
60 $("[data-toggle='rst-versions']").toggleClass("shift");
63 // Nav menu link click operations
64 .on('click', ".wy-menu-vertical .current ul li a", function() {
66 // Close menu when you click a link.
67 $("[data-toggle='wy-nav-shift']").removeClass("shift");
68 $("[data-toggle='rst-versions']").toggleClass("shift");
69 // Handle dynamic display of l3 and l4 nav lists
70 self.toggleCurrent(target);
73 .on('click', "[data-toggle='rst-current-version']", function() {
74 $("[data-toggle='rst-versions']").toggleClass("shift-up");
77 // Make tables responsive
78 $("table.docutils:not(.field-list)")
79 .wrap("<div class='wy-table-responsive'></div>");
81 // Add expand links to all parents of nested ul
82 $('.wy-menu-vertical ul').not('.simple').siblings('a').each(function () {
84 expand = $('<span class="toctree-expand"></span>');
85 expand.on('click', function (ev) {
86 self.toggleCurrent(link);
94 nav.reset = function () {
95 // Get anchor from URL and open up nested nav
96 var anchor = encodeURI(window.location.hash);
99 var link = $('.wy-menu-vertical')
100 .find('[href="' + anchor + '"]');
101 $('.wy-menu-vertical li.toctree-l1 li.current')
102 .removeClass('current');
103 link.closest('li.toctree-l2').addClass('current');
104 link.closest('li.toctree-l3').addClass('current');
105 link.closest('li.toctree-l4').addClass('current');
108 console.log("Error expanding nav for anchor", err);
113 nav.onScroll = function () {
114 this.winScroll = false;
115 var newWinPosition = this.win.scrollTop(),
116 winBottom = newWinPosition + this.winHeight,
117 navPosition = this.navBar.scrollTop(),
118 newNavPosition = navPosition + (newWinPosition - this.winPosition);
119 if (newWinPosition < 0 || winBottom > this.docHeight) {
122 this.navBar.scrollTop(newNavPosition);
123 this.winPosition = newWinPosition;
126 nav.onResize = function () {
127 this.winResize = false;
128 this.winHeight = this.win.height();
129 this.docHeight = $(document).height();
132 nav.hashChange = function () {
133 this.linkScroll = true;
134 this.win.one('hashchange', function () {
135 this.linkScroll = false;
139 nav.toggleCurrent = function (elem) {
140 var parent_li = elem.closest('li');
141 parent_li.siblings('li.current').removeClass('current');
142 parent_li.siblings().find('li.current').removeClass('current');
143 parent_li.find('> ul li.current').removeClass('current');
144 parent_li.toggleClass('current');
150 module.exports.ThemeNav = ThemeNav();
152 if (typeof(window) != 'undefined') {
153 window.SphinxRtdTheme = { StickyNav: module.exports.ThemeNav };
156 },{"jquery":"jquery"}]},{},["sphinx-rtd-theme"]);