(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("f4d4fbce-e6e5-4e03-9e26-a81c7b22f292");
      if (element == null) {
        console.log("Bokeh: ERROR: autoload.js configured with elementid 'f4d4fbce-e6e5-4e03-9e26-a81c7b22f292' 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 = {"def7c1ea-a531-440f-9718-3d43846da9e2":{"roots":{"references":[{"attributes":{"below":[{"id":"8681aa28-5e0a-43eb-a591-ad5f11adb597","type":"LinearAxis"}],"h_symmetry":false,"left":[{"id":"bd6713b5-e73b-4d86-bd23-980be16b9505","type":"LinearAxis"}],"min_border":0,"plot_height":300,"plot_width":300,"renderers":[{"id":"599d2b3b-dac7-411b-8c1d-4c56ac3c4ddd","type":"GlyphRenderer"},{"id":"8681aa28-5e0a-43eb-a591-ad5f11adb597","type":"LinearAxis"},{"id":"bd6713b5-e73b-4d86-bd23-980be16b9505","type":"LinearAxis"},{"id":"f6dea0c3-6a6d-4ff2-aff1-ac7dff915dd6","type":"Grid"},{"id":"237c4f4d-67cb-43f6-93ab-87294c296adc","type":"Grid"}],"title":null,"toolbar":{"id":"1b56d286-549f-43a0-a517-05eec20e9e5c","type":"Toolbar"},"toolbar_location":null,"x_range":{"id":"1fe39cd9-181d-48da-9136-cf0ac84df724","type":"DataRange1d"},"x_scale":{"id":"5c43ecb6-5dc8-4c4f-b0de-6b815cce7489","type":"LinearScale"},"y_range":{"id":"b1bbc1b7-8180-4754-8312-9e85f4e6008a","type":"DataRange1d"},"y_scale":{"id":"71693778-141a-499c-8c56-9166ef134ca0","type":"LinearScale"}},"id":"a874ad21-9073-43f6-9a7e-f1f92a3132c7","type":"Plot"},{"attributes":{"callback":null,"column_names":["y","x"],"data":{"x":{"__ndarray__":"AAAAAAAAAMCNsNzTCMv9vxphuacRlvu/qBGWexph+b81wnJPIyz3v8JyTyMs9/S/UCMs9zTC8r/d0wjLPY3wv9QIyz2NsOy/7mmE5Z5G6L8Iyz2NsNzjv0hY7mmE5d6/fBphuacR1r9guacRlnvKv6B7GmG5p7G/oHsaYbmnsT9guacRlnvKP3gaYbmnEdY/SFjuaYTl3j8Iyz2NsNzjP/BphOWeRug/1AjLPY2w7D/c0wjLPY3wP1AjLPc0wvI/wnJPIyz39D80wnJPIyz3P6gRlnsaYfk/GmG5pxGW+z+MsNzTCMv9PwAAAAAAAABA","dtype":"float64","shape":[30]},"y":{"__ndarray__":"AAAAAAAAEEBpbwI4CL0LQG77lpD9xwdAE6S9CeAgBEBTaXajr8cAQF+WgrvYePs/VpM8cSz+9T+EyRpoWh/xP9lxOkDFuOk/HsOHMopq4j+xDTtOB6jYPyT07nfG1M0/XC0TuaBwvj8rDBgpseqlP1onhyRIe3M/WieHJEh7cz8rDBgpseqlP1EtE7mgcL4/JPTud8bUzT+xDTtOB6jYPyHDhzKKauI/2XE6QMW46T+CyRpoWh/xP1aTPHEs/vU/X5aCu9h4+z9RaXajr8cAQBOkvQngIARAbvuWkP3HB0BnbwI4CL0LQAAAAAAAABBA","dtype":"float64","shape":[30]}}},"id":"86e7f8b2-fa3d-4d46-86b4-e5ada615c35d","type":"ColumnDataSource"},{"attributes":{},"id":"a03a7eab-1572-4cca-ba44-23300a5caf62","type":"BasicTicker"},{"attributes":{"formatter":{"id":"63f7de90-4050-4805-b495-47ada0923df8","type":"BasicTickFormatter"},"plot":{"id":"a874ad21-9073-43f6-9a7e-f1f92a3132c7","type":"Plot"},"ticker":{"id":"4268082a-3421-4352-83f8-81a4731d690f","type":"BasicTicker"}},"id":"8681aa28-5e0a-43eb-a591-ad5f11adb597","type":"LinearAxis"},{"attributes":{},"id":"63f7de90-4050-4805-b495-47ada0923df8","type":"BasicTickFormatter"},{"attributes":{"callback":null},"id":"1fe39cd9-181d-48da-9136-cf0ac84df724","type":"DataRange1d"},{"attributes":{"plot":{"id":"a874ad21-9073-43f6-9a7e-f1f92a3132c7","type":"Plot"},"ticker":{"id":"4268082a-3421-4352-83f8-81a4731d690f","type":"BasicTicker"}},"id":"f6dea0c3-6a6d-4ff2-aff1-ac7dff915dd6","type":"Grid"},{"attributes":{"callback":null},"id":"b1bbc1b7-8180-4754-8312-9e85f4e6008a","type":"DataRange1d"},{"attributes":{},"id":"71693778-141a-499c-8c56-9166ef134ca0","type":"LinearScale"},{"attributes":{},"id":"942f2719-29db-478d-8906-d369424a1f7b","type":"BasicTickFormatter"},{"attributes":{},"id":"5c43ecb6-5dc8-4c4f-b0de-6b815cce7489","type":"LinearScale"},{"attributes":{"line_alpha":{"value":0.6},"line_color":{"value":"#F46D43"},"line_width":{"value":6},"x":{"field":"x"},"y":{"field":"y"}},"id":"58e5c2d2-224e-43fd-8742-c36a67b91b23","type":"Line"},{"attributes":{"data_source":{"id":"86e7f8b2-fa3d-4d46-86b4-e5ada615c35d","type":"ColumnDataSource"},"glyph":{"id":"58e5c2d2-224e-43fd-8742-c36a67b91b23","type":"Line"},"hover_glyph":null,"muted_glyph":null,"view":{"id":"49b725ad-2a9f-4ea2-87eb-8908ba769fe5","type":"CDSView"}},"id":"599d2b3b-dac7-411b-8c1d-4c56ac3c4ddd","type":"GlyphRenderer"},{"attributes":{},"id":"4268082a-3421-4352-83f8-81a4731d690f","type":"BasicTicker"},{"attributes":{"formatter":{"id":"942f2719-29db-478d-8906-d369424a1f7b","type":"BasicTickFormatter"},"plot":{"id":"a874ad21-9073-43f6-9a7e-f1f92a3132c7","type":"Plot"},"ticker":{"id":"a03a7eab-1572-4cca-ba44-23300a5caf62","type":"BasicTicker"}},"id":"bd6713b5-e73b-4d86-bd23-980be16b9505","type":"LinearAxis"},{"attributes":{"dimension":1,"plot":{"id":"a874ad21-9073-43f6-9a7e-f1f92a3132c7","type":"Plot"},"ticker":{"id":"a03a7eab-1572-4cca-ba44-23300a5caf62","type":"BasicTicker"}},"id":"237c4f4d-67cb-43f6-93ab-87294c296adc","type":"Grid"},{"attributes":{"active_drag":"auto","active_inspect":"auto","active_scroll":"auto","active_tap":"auto"},"id":"1b56d286-549f-43a0-a517-05eec20e9e5c","type":"Toolbar"},{"attributes":{"source":{"id":"86e7f8b2-fa3d-4d46-86b4-e5ada615c35d","type":"ColumnDataSource"}},"id":"49b725ad-2a9f-4ea2-87eb-8908ba769fe5","type":"CDSView"}],"root_ids":["a874ad21-9073-43f6-9a7e-f1f92a3132c7"]},"title":"Bokeh Application","version":"0.12.9"}};
                    var render_items = [{"docid":"def7c1ea-a531-440f-9718-3d43846da9e2","elementid":"f4d4fbce-e6e5-4e03-9e26-a81c7b22f292","modelid":"a874ad21-9073-43f6-9a7e-f1f92a3132c7"}];
                
                    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);
})();
