(function() {
  var fn = function() {
    
    (function(root) {
      function now() {
        return new Date();
      }
    
      var force = false;
    
      if (typeof (root._bokeh_onload_callbacks) === "undefined" || force === true) {
        root._bokeh_onload_callbacks = [];
        root._bokeh_is_loading = undefined;
      }
    
      
      
    
      
      
    
      function run_callbacks() {
        try {
          root._bokeh_onload_callbacks.forEach(function(callback) { callback() });
        }
        finally {
          delete root._bokeh_onload_callbacks
        }
        console.info("Bokeh: all callbacks have finished");
      }
    
      function load_libs(js_urls, callback) {
        root._bokeh_onload_callbacks.push(callback);
        if (root._bokeh_is_loading > 0) {
          console.log("Bokeh: BokehJS is being loaded, scheduling callback at", now());
          return null;
        }
        if (js_urls == null || js_urls.length === 0) {
          run_callbacks();
          return null;
        }
        console.log("Bokeh: BokehJS not loaded, scheduling load and callback at", now());
        root._bokeh_is_loading = js_urls.length;
        for (var i = 0; i < js_urls.length; i++) {
          var url = js_urls[i];
          var s = document.createElement('script');
          s.src = url;
          s.async = false;
          s.onreadystatechange = s.onload = function() {
            root._bokeh_is_loading--;
            if (root._bokeh_is_loading === 0) {
              console.log("Bokeh: all BokehJS libraries loaded");
              run_callbacks()
            }
          };
          s.onerror = function() {
            console.warn("failed to load library " + url);
          };
          console.log("Bokeh: injecting script tag for BokehJS library: ", url);
          document.getElementsByTagName("head")[0].appendChild(s);
        }
      };var element = document.getElementById("ea346eeb-0a7a-485b-9ed6-2e538ffa9737");
      if (element == null) {
        console.log("Bokeh: ERROR: autoload.js configured with elementid 'ea346eeb-0a7a-485b-9ed6-2e538ffa9737' but no matching script tag was found. ")
        return false;
      }
    
      var js_urls = ["https://cdn.pydata.org/bokeh/release/bokeh-0.12.9.min.js", "https://cdn.pydata.org/bokeh/release/bokeh-widgets-0.12.9.min.js", "https://cdn.pydata.org/bokeh/release/bokeh-tables-0.12.9.min.js", "https://cdn.pydata.org/bokeh/release/bokeh-gl-0.12.9.min.js"];
    
      var inline_js = [
        function(Bokeh) {
          Bokeh.set_log_level("info");
        },
        
        function(Bokeh) {
          
        },
        
        function(Bokeh) {
          (function() {
            var fn = function() {
              Bokeh.safely(function() {
                (function(root) {
                  function embed_document(root) {
                    var docs_json = {"c4874a77-d584-4f35-8ec3-e15ec9c15627":{"roots":{"references":[{"attributes":{"overlay":{"id":"f7c54700-d37e-47f6-9ae7-c7389b851288","type":"BoxAnnotation"}},"id":"2c260a95-3b27-4a62-af90-97e0c23b4f40","type":"BoxZoomTool"},{"attributes":{},"id":"e4e6f315-582a-44ee-81c0-8a759c813ed8","type":"WheelZoomTool"},{"attributes":{},"id":"439f20c8-fa7c-4b7f-ba54-690370db6ed8","type":"BasicTicker"},{"attributes":{"callback":null,"end":19},"id":"6df2ef2a-7297-40b6-b34d-cb25624c8844","type":"Range1d"},{"attributes":{"minor_grid_line_color":{"value":"#eeeeee"},"plot":{"id":"2e2fe6d7-b723-45ac-9aa4-bc2b591ca7bd","subtype":"Figure","type":"Plot"},"ticker":{"id":"89cc0768-5817-4d0b-a692-e965ee57f698","type":"BasicTicker"}},"id":"fea3c5e8-5d1f-4200-bd14-8b06fd9f6719","type":"Grid"},{"attributes":{},"id":"a01badde-0f19-4168-a7f6-d75c63658a9e","type":"PanTool"},{"attributes":{"below":[{"id":"9e0c6e67-6ef5-4890-8daf-ee7b56675b06","type":"LinearAxis"}],"left":[{"id":"bda2edcd-b5e7-4c29-9f79-292d50c607ba","type":"LinearAxis"}],"renderers":[{"id":"9e0c6e67-6ef5-4890-8daf-ee7b56675b06","type":"LinearAxis"},{"id":"fea3c5e8-5d1f-4200-bd14-8b06fd9f6719","type":"Grid"},{"id":"bda2edcd-b5e7-4c29-9f79-292d50c607ba","type":"LinearAxis"},{"id":"7aa36d0f-5e40-49b8-a869-60d4b968f91b","type":"Grid"},{"id":"f7c54700-d37e-47f6-9ae7-c7389b851288","type":"BoxAnnotation"},{"id":"59483db1-3ac5-46f0-b4fe-0268b8f873f5","type":"GlyphRenderer"}],"title":{"id":"f1642fb5-55c0-4d3b-ac98-6303e60be191","type":"Title"},"toolbar":{"id":"c9c2bd2b-8ade-445f-80bf-df3eab79e19d","type":"Toolbar"},"x_range":{"id":"6df2ef2a-7297-40b6-b34d-cb25624c8844","type":"Range1d"},"x_scale":{"id":"61c57f25-e46a-4ec5-a57d-1eb315ba04ee","type":"LinearScale"},"y_range":{"id":"9a54c11c-b969-4f95-bcb7-7af892a619f3","type":"Range1d"},"y_scale":{"id":"96ac944e-05ee-4512-9465-2eaa45e96434","type":"LinearScale"}},"id":"2e2fe6d7-b723-45ac-9aa4-bc2b591ca7bd","subtype":"Figure","type":"Plot"},{"attributes":{"bottom_units":"screen","fill_alpha":{"value":0.5},"fill_color":{"value":"lightgrey"},"left_units":"screen","level":"overlay","line_alpha":{"value":1.0},"line_color":{"value":"black"},"line_dash":[4,4],"line_width":{"value":2},"plot":null,"render_mode":"css","right_units":"screen","top_units":"screen"},"id":"f7c54700-d37e-47f6-9ae7-c7389b851288","type":"BoxAnnotation"},{"attributes":{"source":{"id":"b75873f2-34de-4c5c-955b-0b25b4ba87f0","type":"ColumnDataSource"}},"id":"8e703808-d717-48f0-a428-5cd7ec8fb5c9","type":"CDSView"},{"attributes":{"formatter":{"id":"08ad8703-33e8-44fa-b67b-a375748a9ef9","type":"BasicTickFormatter"},"plot":{"id":"2e2fe6d7-b723-45ac-9aa4-bc2b591ca7bd","subtype":"Figure","type":"Plot"},"ticker":{"id":"439f20c8-fa7c-4b7f-ba54-690370db6ed8","type":"BasicTicker"}},"id":"bda2edcd-b5e7-4c29-9f79-292d50c607ba","type":"LinearAxis"},{"attributes":{},"id":"b4033337-2079-4f7f-a8a2-b6901f1316c3","type":"BasicTickFormatter"},{"attributes":{"fill_alpha":{"value":0.8},"fill_color":{"field":"fill_color"},"line_alpha":{"value":0.8},"line_color":{"value":null},"xs":{"field":"xs"},"ys":{"field":"ys"}},"id":"7b58969b-de1e-4874-9fc6-75437662efb7","type":"Patches"},{"attributes":{},"id":"61c57f25-e46a-4ec5-a57d-1eb315ba04ee","type":"LinearScale"},{"attributes":{"callback":null,"column_names":["ys","xs","fill_color"],"data":{"fill_color":["#5e4fa2","#3288bd","#66c2a5","#abdda4","#e6f598","#fee08b","#fdae61","#f46d43","#d53e4f","#9e0142"],"xs":[[19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19],[19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19],[19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19],[19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19],[19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19],[19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19],[19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19],[19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19],[19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19],[19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]],"ys":[{"__ndarray__":"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAABAcEAAAAAAAABkQAAAAAAAwHNAAAAAAACAcEA=","dtype":"float64","shape":[40]},{"__ndarray__":"AAAAAACAcEAAAAAAAMBzQAAAAAAAAGRAAAAAAABAcEAAAAAAACByQAAAAAAA0HVAAAAAAACAa0AAAAAAAABmQAAAAAAAQGpAAAAAAACgakAAAAAAAKBvQAAAAAAAAG9AAAAAAAAwcEAAAAAAAMBuQAAAAAAAEHFAAAAAAADQcUAAAAAAAIB0QAAAAAAA4G1AAAAAAACQckAAAAAAAOByQAAAAAAAoHNAAAAAAACwd0AAAAAAAMBzQAAAAAAAAHpAAAAAAABgdEAAAAAAACB1QAAAAAAAMHVAAAAAAAAQc0AAAAAAAKBwQAAAAAAAsHVAAAAAAABAcEAAAAAAAHBwQAAAAAAAYGdAAAAAAAAgbkAAAAAAAHB5QAAAAAAAIHhAAAAAAAAwdEAAAAAAAKBqQAAAAAAAUHlAAAAAAADwckA=","dtype":"float64","shape":[40]},{"__ndarray__":"AAAAAADwckAAAAAAAFB5QAAAAAAAoGpAAAAAAAAwdEAAAAAAACB4QAAAAAAAcHlAAAAAAAAgbkAAAAAAAGBnQAAAAAAAcHBAAAAAAABAcEAAAAAAALB1QAAAAAAAoHBAAAAAAAAQc0AAAAAAADB1QAAAAAAAIHVAAAAAAABgdEAAAAAAAAB6QAAAAAAAwHNAAAAAAACwd0AAAAAAAKBzQAAAAAAAoHZAAAAAAADwe0AAAAAAACB4QAAAAAAA8H1AAAAAAABQdkAAAAAAAEB2QAAAAAAAIHZAAAAAAADAd0AAAAAAAMBxQAAAAAAAgHZAAAAAAADwcEAAAAAAAKBxQAAAAAAAUHBAAAAAAAAgcUAAAAAAABB6QAAAAAAA4HxAAAAAAACwdUAAAAAAACByQAAAAAAAkHxAAAAAAAAgdUA=","dtype":"float64","shape":[40]},{"__ndarray__":"AAAAAAAgdUAAAAAAAJB8QAAAAAAAIHJAAAAAAACwdUAAAAAAAOB8QAAAAAAAEHpAAAAAAAAgcUAAAAAAAFBwQAAA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AAAAAAAyINAAAAAAABAfUAAAAAAANCAQAAAAAAA4HpAAAAAAABAgUAAAAAAAEB8QAAAAAAAyIBAAAAAAAAwd0AAAAAAADB7QAAAAAAAUHdAAAAAAAAQeEAAAAAAADCBQAAAAAAAgIJAAAAAAACIgEAAAAAAAHB8QAAAAAAAaIRAAAAAAACQfkA=","dtype":"float64","shape":[40]}]}},"id":"b75873f2-34de-4c5c-955b-0b25b4ba87f0","type":"ColumnDataSource"},{"attributes":{},"id":"89cc0768-5817-4d0b-a692-e965ee57f698","type":"BasicTicker"},{"attributes":{},"id":"08ad8703-33e8-44fa-b67b-a375748a9ef9","type":"BasicTickFormatter"},{"attributes":{},"id":"96ac944e-05ee-4512-9465-2eaa45e96434","type":"LinearScale"},{"attributes":{"active_drag":"auto","active_inspect":"auto","active_scroll":"auto","active_tap":"auto","tools":[{"id":"a01badde-0f19-4168-a7f6-d75c63658a9e","type":"PanTool"},{"id":"e4e6f315-582a-44ee-81c0-8a759c813ed8","type":"WheelZoomTool"},{"id":"2c260a95-3b27-4a62-af90-97e0c23b4f40","type":"BoxZoomTool"},{"id":"9ee3113b-16e7-436a-94d2-b0043c442d07","type":"SaveTool"},{"id":"9790b260-0bc0-4b89-ba2d-2aad17d9067f","type":"ResetTool"},{"id":"46224fa4-9f24-4401-bb7b-cb55d20b0330","type":"HelpTool"}]},"id":"c9c2bd2b-8ade-445f-80bf-df3eab79e19d","type":"Toolbar"},{"attributes":{},"id":"9790b260-0bc0-4b89-ba2d-2aad17d9067f","type":"ResetTool"},{"attributes":{"plot":null,"text":""},"id":"f1642fb5-55c0-4d3b-ac98-6303e60be191","type":"Title"},{"attributes":{},"id":"9ee3113b-16e7-436a-94d2-b0043c442d07","type":"SaveTool"},{"attributes":{"fill_alpha":{"value":0.1},"fill_color":{"value":"#1f77b4"},"line_alpha":{"value":0.1},"line_color":{"value":"#1f77b4"},"xs":{"field":"xs"},"ys":{"field":"ys"}},"id":"2d68c9a4-9392-4465-8ee5-9bab8fc77fd9","type":"Patches"},{"attributes":{"dimension":1,"minor_grid_line_color":{"value":"#eeeeee"},"plot":{"id":"2e2fe6d7-b723-45ac-9aa4-bc2b591ca7bd","subtype":"Figure","type":"Plot"},"ticker":{"id":"439f20c8-fa7c-4b7f-ba54-690370db6ed8","type":"BasicTicker"}},"id":"7aa36d0f-5e40-49b8-a869-60d4b968f91b","type":"Grid"},{"attributes":{},"id":"46224fa4-9f24-4401-bb7b-cb55d20b0330","type":"HelpTool"},{"attributes":{"data_source":{"id":"b75873f2-34de-4c5c-955b-0b25b4ba87f0","type":"ColumnDataSource"},"glyph":{"id":"7b58969b-de1e-4874-9fc6-75437662efb7","type":"Patches"},"hover_glyph":null,"muted_glyph":null,"nonselection_glyph":{"id":"2d68c9a4-9392-4465-8ee5-9bab8fc77fd9","type":"Patches"},"selection_glyph":null,"view":{"id":"8e703808-d717-48f0-a428-5cd7ec8fb5c9","type":"CDSView"}},"id":"59483db1-3ac5-46f0-b4fe-0268b8f873f5","type":"GlyphRenderer"},{"attributes":{"callback":null,"end":800},"id":"9a54c11c-b969-4f95-bcb7-7af892a619f3","type":"Range1d"},{"attributes":{"formatter":{"id":"b4033337-2079-4f7f-a8a2-b6901f1316c3","type":"BasicTickFormatter"},"plot":{"id":"2e2fe6d7-b723-45ac-9aa4-bc2b591ca7bd","subtype":"Figure","type":"Plot"},"ticker":{"id":"89cc0768-5817-4d0b-a692-e965ee57f698","type":"BasicTicker"}},"id":"9e0c6e67-6ef5-4890-8daf-ee7b56675b06","type":"LinearAxis"}],"root_ids":["2e2fe6d7-b723-45ac-9aa4-bc2b591ca7bd"]},"title":"Bokeh Application","version":"0.12.9"}};
                    var render_items = [{"docid":"c4874a77-d584-4f35-8ec3-e15ec9c15627","elementid":"ea346eeb-0a7a-485b-9ed6-2e538ffa9737","modelid":"2e2fe6d7-b723-45ac-9aa4-bc2b591ca7bd"}];
                
                    root.Bokeh.embed.embed_items(docs_json, render_items);
                  }
                
                  if (root.Bokeh !== undefined) {
                    embed_document(root);
                  } else {
                    var attempts = 0;
                    var timer = setInterval(function(root) {
                      if (root.Bokeh !== undefined) {
                        embed_document(root);
                        clearInterval(timer);
                      }
                      attempts++;
                      if (attempts > 100) {
                        console.log("Bokeh: ERROR: Unable to embed document because BokehJS library is missing")
                        clearInterval(timer);
                      }
                    }, 10, root)
                  }
                })(window);
              });
            };
            if (document.readyState != "loading") fn();
            else document.addEventListener("DOMContentLoaded", fn);
          })();
        },
        function(Bokeh) {
          console.log("Bokeh: injecting CSS: https://cdn.pydata.org/bokeh/release/bokeh-0.12.9.min.css");
          Bokeh.embed.inject_css("https://cdn.pydata.org/bokeh/release/bokeh-0.12.9.min.css");
          console.log("Bokeh: injecting CSS: https://cdn.pydata.org/bokeh/release/bokeh-widgets-0.12.9.min.css");
          Bokeh.embed.inject_css("https://cdn.pydata.org/bokeh/release/bokeh-widgets-0.12.9.min.css");
          console.log("Bokeh: injecting CSS: https://cdn.pydata.org/bokeh/release/bokeh-tables-0.12.9.min.css");
          Bokeh.embed.inject_css("https://cdn.pydata.org/bokeh/release/bokeh-tables-0.12.9.min.css");
        }
      ];
    
      function run_inline_js() {
        
        for (var i = 0; i < inline_js.length; i++) {
          inline_js[i].call(root, root.Bokeh);
        }
        
      }
    
      if (root._bokeh_is_loading === 0) {
        console.log("Bokeh: BokehJS loaded, going straight to plotting");
        run_inline_js();
      } else {
        load_libs(js_urls, function() {
          console.log("Bokeh: BokehJS plotting callback run at", now());
          run_inline_js();
        });
      }
    }(window));
  };
  if (document.readyState != "loading") fn();
  else document.addEventListener("DOMContentLoaded", fn);
})();
