(function () {
  //Inject code v3.0.4

  var highcharts = document.createElement('script');

  var cdn = 'https://code.highcharts.com/';
  var loaded = 0;  
  var encodedUrl = encodeURI('https://https://app.everviz.com//show/Z7-UjpyCe');
  var chartCreated = false;
  var delayGen = 0;
  var scripts = [
    "highcharts.js",
    "modules/stock.js",
    "highcharts-more.js",
    "highcharts-3d.js",
    "modules/data.js",
    "modules/exporting.js",
    "modules/funnel.js",
    "modules/solid-gauge.js",
    "modules/export-data.js",
    "modules/accessibility.js"
  ];

  var externalCSS = [
    "https://app.everviz.com/fonts/-kdRxC3Ef/font.css",
    "https://app.everviz.com/fonts/mIQoHgFro/font.css",
    "https://app.everviz.com/fonts/b7ssKVeRa/font.css",
    "https://app.everviz.com/static/fonts/gordita/style.css",
    "https://app.everviz.com/resources/css/highcharts-data-table.css"
  ];

  var extraScripts = [
  "https://app.everviz.com/resources/js/highcharts-scroll-animation.js",
  "https://app.everviz.com/resources/js/everviz-utils.js",
  "https://app.everviz.com/resources/js/highcharts-overrides.js"
  ];

  var options = {"chart":{"type":"line","polar":false,"style":{"fontFamily":"Telesans Agate-Regular","fontSize":"14px"},"parallelAxes":{"stackLabels":{"style":{"fontSize":"14px"}}},"height":450},"title":{"text":"The UK's vaccination pace remains strong compared with Europe","align":"left","x":10,"style":{"fontFamily":"Austin News Deck-Semibold","color":"#333333","fontSize":"22px","fontWeight":"normal","fontStyle":"normal","fill":"#333333","width":"566px"},"margin":15},"subtitle":{"text":"Daily vaccine doses per 100 people","align":"left","x":10,"style":{"fontFamily":"Austin News Deck-Italic","color":"#666666","fontSize":"22px","fontWeight":"normal","fontStyle":"normal","fill":"#666666","width":"566px"}},"plotOptions":{"series":{"allowPointSelect":true,"states":{"select":{"color":"#EFFFEF","borderColor":"black","dashStyle":"dot"}},"marker":{"enabled":false},"lineWidth":3,"label":{"style":{"font-weight":"bold","fontFamily":"Telesans Agate-Regular","fontSize":"14px"}},"events":{},"animation":{"duration":4000}},"area":{"fillOpacity":0.2,"marker":{"enabled":false,"symbol":"diamond"},"dataLabels":{"style":{"fontSize":"14px"}},"label":{"style":{"font-weight":"bold","fontFamily":"Telesans Agate-Regular","fontSize":"14px"}}},"line":{"marker":{"symbol":"diamond"}}},"exporting":{"enabled":false},"credits":{"text":"SOURCE: OUR WORLD IN DATA","href":"https://ourworldindata.org/grapher/daily-covid-vaccination-doses-per-capita?tab=chart&stackMode=absolute&time=earliest..latest&country=BRA~FRA~DEU~ITA~ESP~GBR~USA&region=World","position":{"x":-7,"y":-3},"style":{"cursor":"pointer","color":"#999999","fontSize":"10px","fontFamily":"Telesans Agate-Regular"}},"colors":["#0021af","#17e698","#2f114f","#fff7b3","#ff77b7","#96efff","#f43939"],"legend":{"align":"left","verticalAlign":"top","itemMarginBottom":10,"x":-10,"symbolRadius":0,"floating":false,"itemStyle":{"fontFamily":"Telesans Agate-Regular","color":"#333333","fontSize":"14px","fontWeight":"normal","fontStyle":"normal","cursor":"pointer","textOverflow":"ellipsis"},"borderRadius":0,"squareSymbol":true,"shadow":false,"rtl":false,"reversed":false,"symbolPadding":4,"symbolHeight":12,"padding":8},"series":[{"data":[],"turboThreshold":0,"_colorIndex":0,"_symbolIndex":0,"type":"line","color":"#387ab4"},{"data":[],"turboThreshold":0,"_colorIndex":1,"_symbolIndex":0,"type":"line","color":"#b0dbcf"},{"data":[],"turboThreshold":0,"_colorIndex":2,"_symbolIndex":0,"type":"line","color":"#ded29b"},{"data":[],"turboThreshold":0,"_colorIndex":3,"_symbolIndex":0,"type":"line","color":"#d73e3c"},{"data":[],"turboThreshold":0,"_colorIndex":4,"_symbolIndex":0,"type":"line","color":"#112259"},{"data":[],"turboThreshold":0,"_colorIndex":5,"_symbolIndex":0,"type":"line","color":"#ebc9c8"}],"tooltip":{"pointFormat":"<span style=\"color:{point.color}\"></span> {series.name}: <b>{point.y}</b><br/>","borderRadius":0,"borderWidth":1,"enabled":true,"headerFormat":"","shadow":false,"style":{"color":"#333333","cursor":"default","fontSize":"12px","pointerEvents":"none","whiteSpace":"nowrap","fontFamily":"Telesans Agate-Regular"},"padding":6},"caption":{"style":{"fontFamily":"Telesans Agate-Regular","color":"#666666","fontSize":"12px","fontWeight":"normal","fontStyle":"normal","fill":"#666666","width":"1984px"},"text":"Rolling 7-day average per 100 people in the total population. This is counted as a single dose, and may not equal the total number of people vaccinated, depending on the specific dose regime*"},"stockTools":{"gui":{"enabled":false}},"navigation":{"bindingsClassName":"tools-container","events":{}},"labels":{"items":[],"style":{"color":"#333333","position":"absolute","fontFamily":"Telesans Agate-Regular","fontSize":"14px"}},"pane":{"background":[]},"responsive":{"rules":[]},"yAxis":{"title":{"useHTML":true,"text":""}},"xAxis":{"lineColor":"black","tickColor":"black"},"annotations":[],"data":{"csv":"Date;France;Germany;Italy;Spain;United Kingdom;United States\n14 Dec 2020;;;;;0.12;\n15 Dec 2020;;;;;0.12;\n16 Dec 2020;;;;;0.12;\n17 Dec 2020;;;;;0.12;\n18 Dec 2020;;;;;0.12;\n19 Dec 2020;;;;;0.12;\n20 Dec 2020;;;;;0.12;\n21 Dec 2020;;;;;0.12;0.02\n22 Dec 2020;;;;;0.11;0.04\n23 Dec 2020;;;;;0.1;0.05\n24 Dec 2020;;;;;0.09;0.06\n25 Dec 2020;;;;;0.09;0.06\n26 Dec 2020;;;;;0.08;0.07\n27 Dec 2020;;;;;0.07;0.06\n28 Dec 2020;0;0.02;0;;0.07;0.06\n29 Dec 2020;0;0.04;0;;0.07;0.07\n30 Dec 2020;0;0.05;0;;0.08;0.08\n31 Dec 2020;0;0.05;0.01;;0.08;0.08\n1 Jan 2021;0;0.04;0.01;;0.08;0.09\n2 Jan 2021;0;0.05;0.02;;0.08;0.1\n3 Jan 2021;0;0.04;0.03;;0.08;0.1\n4 Jan 2021;0;0.05;0.04;;0.11;0.1\n5 Jan 2021;0;0.05;0.06;0.12;0.14;0.1\n6 Jan 2021;0;0.05;0.08;0.1;0.16;0.11\n7 Jan 2021;0.01;0.05;0.09;0.09;0.19;0.11\n8 Jan 2021;0.02;0.06;0.11;0.1;0.22;0.13\n9 Jan 2021;0.02;0.06;0.12;0.1;0.24;0.14\n10 Jan 2021;0.02;0.06;0.13;0.1;0.27;0.16\n11 Jan 2021;0.03;0.07;0.13;0.1;0.27;0.19\n12 Jan 2021;0.04;0.07;0.13;0.11;0.27;0.19\n13 Jan 2021;0.05;0.08;0.14;0.12;0.3;0.21\n14 Jan 2021;0.06;0.08;0.14;0.14;0.33;0.22\n15 Jan 2021;0.06;0.09;0.14;0.15;0.36;0.24\n16 Jan 2021;0.06;0.09;0.13;0.15;0.38;0.24\n17 Jan 2021;0.06;0.09;0.13;0.15;0.39;0.25\n18 Jan 2021;0.07;0.09;0.12;0.15;0.4;0.25\n19 Jan 2021;0.09;0.1;0.11;0.15;0.42;0.27\n20 Jan 2021;0.1;0.1;0.09;0.14;0.44;0.27\n21 Jan 2021;0.11;0.1;0.08;0.13;0.46;0.27\n22 Jan 2021;0.13;0.1;0.06;0.12;0.49;0.29\n23 Jan 2021;0.13;0.11;0.06;0.12;0.53;0.32\n24 Jan 2021;0.13;0.11;0.06;0.12;0.53;0.34\n25 Jan 2021;0.13;0.12;0.06;0.12;0.55;0.34\n26 Jan 2021;0.12;0.12;0.07;0.12;0.54;0.33\n27 Jan 2021;0.12;0.12;0.08;0.11;0.53;0.35\n28 Jan 2021;0.12;0.12;0.1;0.11;0.53;0.37\n29 Jan 2021;0.11;0.12;0.11;0.11;0.53;0.37\n30 Jan 2021;0.11;0.12;0.13;0.11;0.56;0.39\n31 Jan 2021;0.11;0.11;0.13;0.11;0.58;0.4\n1 Feb 2021;0.11;0.12;0.14;0.12;0.59;0.41\n2 Feb 2021;0.12;0.12;0.14;0.12;0.61;0.39\n3 Feb 2021;0.12;0.13;0.14;0.14;0.64;0.39\n4 Feb 2021;0.12;0.13;0.15;0.16;0.65;0.38\n5 Feb 2021;0.12;0.14;0.15;0.16;0.66;0.38\n6 Feb 2021;0.12;0.14;0.15;0.15;0.64;0.4\n7 Feb 2021;0.12;0.14;0.14;0.15;0.63;0.43\n8 Feb 2021;0.13;0.14;0.14;0.15;0.64;0.44\n9 Feb 2021;0.13;0.14;0.13;0.14;0.64;0.45\n10 Feb 2021;0.14;0.14;0.13;0.14;0.64;0.47\n11 Feb 2021;0.15;0.14;0.12;0.13;0.65;0.48\n12 Feb 2021;0.16;0.14;0.11;0.14;0.66;0.5\n13 Feb 2021;0.16;0.15;0.1;0.14;0.65;0.5\n14 Feb 2021;0.16;0.15;0.1;0.14;0.64;0.5\n15 Feb 2021;0.17;0.15;0.1;0.14;0.62;0.5\n16 Feb 2021;0.17;0.15;0.1;0.14;0.61;0.51\n17 Feb 2021;0.17;0.15;0.1;0.14;0.62;0.49\n18 Feb 2021;0.17;0.15;0.11;0.16;0.62;0.48\n19 Feb 2021;0.17;0.15;0.11;0.16;0.58;0.48\n20 Feb 2021;0.18;0.15;0.12;0.16;0.55;0.45\n21 Feb 2021;0.17;0.15;0.12;0.16;0.53;0.44\n22 Feb 2021;0.17;0.16;0.13;0.17;0.51;0.43\n23 Feb 2021;0.17;0.16;0.14;0.18;0.51;0.42\n24 Feb 2021;0.16;0.17;0.15;0.2;0.5;0.44\n25 Feb 2021;0.17;0.17;0.16;0.2;0.52;0.45\n26 Feb 2021;0.17;0.18;0.17;0.21;0.55;0.46\n27 Feb 2021;0.18;0.19;0.18;0.22;0.57;0.49\n28 Feb 2021;0.18;0.19;0.19;0.23;0.58;0.52\n1 Mar 2021;0.18;0.2;0.19;0.23;0.58;0.54\n2 Mar 2021;0.18;0.21;0.2;0.24;0.57;0.58\n3 Mar 2021;0.19;0.22;0.22;0.24;0.54;0.6\n4 Mar 2021;0.2;0.22;0.23;0.26;0.52;0.61\n5 Mar 2021;0.21;0.23;0.24;;0.51;0.62\n6 Mar 2021;0.24;;0.25;;0.52;0.65\n7 Mar 2021;;;0.26;;;0.65","seriesMapping":[{"x":0,"y":1},{"x":0,"y":2},{"x":0,"y":3},{"x":0,"y":4},{"x":0,"y":5},{"x":0,"y":6}]}};
  var optionsStub;
  
  var templateDataSettings = {};

  var pluginCode = {};;

  function isScriptAlreadyIncluded(src){
    var scripts = document.getElementsByTagName("script");
    for (var i = 0; i < scripts.length; i++) {
      if (scripts[i].hasAttribute('src')) {
        const scriptTag = scripts[i].getAttribute('src') || '';
        if ((scriptTag.indexOf(src) >= 0) || 
            (scriptTag.indexOf('highcharts.src.js') > -1 && src === 'highcharts.js') ||
            ((scriptTag.indexOf('stock/highstock.js') > -1) && src === 'modules/highstock.js')) {
          return true;
        }
      }
    }
    return false;
  }

  function loadCSS() {
    var cssLength = externalCSS.length;
    for(var i=0; i < cssLength; i++) {
      var css = document.createElement('link');
      css.rel  = 'stylesheet';
      css.type = "text/css";
      css.href = externalCSS[i];
      document.body.appendChild(css);
    }
  }

  function allScriptsIncluded(){
    var allScripts = scripts.concat(extraScripts);
    var haveAllScriptsBeenIncluded = true;
    var scriptsToUse = document.getElementsByTagName("script");
    for(var n=0;n<allScripts.length;n++) {
      if (!isScriptAlreadyIncluded(allScripts[n], scriptsToUse)) {
        haveAllScriptsBeenIncluded = false;
        break;
      }
    }
    return haveAllScriptsBeenIncluded;
  }

  function modifyOptions(){
    if (options.data) {
      options.data.complete = function(options) {
        const keys = Object.keys(templateDataSettings || {});
        keys.forEach(function(key) {
          const serie = options.series[key];
          (serie.data || []).forEach(function(d, i) {
            if (templateDataSettings[key].data && templateDataSettings[key].data[i]) {
              window["everviz"].merge(d, templateDataSettings[key].data[i]);
            }
          })
        })  
        return options;
      }
    }
    
    optionsStub = window["everviz"].createStub(options);
    window["everviz"].merge(options, pluginCode);
    if ('Chart' === 'Map') window["everviz"].modifyMapType(options);
  }

  function createChart() {
    if(chartCreated) return;

    var hasProj4 = extraScripts.indexOf('https://cdnjs.cloudflare.com/ajax/libs/proj4js/2.3.6/proj4.js') > -1;
    if (!allScriptsIncluded() || 
      (hasProj4 && !window.proj4) || 
      !window["everviz"].merge ||
      !window["everviz"].createStub) {
      setTimeout(createChart, 200);
      return;
    }  

    modifyOptions();

    if (hasProj4) delayGen = 100;

    if (typeof window['Highcharts'] !== 'undefined') {
      

    if (options.yAxis && options.yAxis.length === 1) options.yAxis = options.yAxis[0];
    if (options.xAxis && options.xAxis.length === 1) options.xAxis = options.xAxis[0];
    if (options.zAxis && options.zAxis.length === 1) options.zAxis = options.zAxis[0];

    /*
// Sample of extending options:
Highcharts.merge(true, options, {
    chart: {
        backgroundColor: "#bada55"
    },
    plotOptions: {
        series: {
            cursor: "pointer",
            events: {
                click: function(event) {
                    alert(this.name + " clicked\n" +
                          "Alt: " + event.altKey + "\n" +
                          "Control: " + event.ctrlKey + "\n" +
                          "Shift: " + event.shiftKey + "\n");
                }
            }
        }
    }
});
*/


      if (options && (options.lang || options.global)) {
        Highcharts.setOptions({
          global: options.global || {},
          lang: options.lang || {}
        });
      }

      if (Highcharts.Annotation) {
        Highcharts.Annotation.ControlPoint.prototype.redraw = function (animation) {
          this.graphic[animation ? 'animate' : 'attr'](
              this.options.positioner ? this.options.positioner.call(this, this.target) : null
          );
        };
      }
      
      chartCreated = true;
      window.HighchartsCloud.hasLoaded = true; 
      setTimeout(function(){
        if (window["everviz"] && window["everviz"].pendingAnim) {

          var chart = new Highcharts.Chart('highcharts-Z7-UjpyCe', optionsStub); 
          window["everviz"].pendingAnim({
            id: 'highcharts-Z7-UjpyCe', 
            loaded: false,
            options: options,
            appear:function(){
              chart.destroy();
              chart = new Highcharts.Chart('highcharts-Z7-UjpyCe', options); 
            },
            element: document.querySelector('#highcharts-Z7-UjpyCe')
          });
        } else {
          new Highcharts.Chart('highcharts-Z7-UjpyCe', options);   
        }
      }, delayGen);
    }
  }

  function check(scripts, cb) {
    if (loaded === scripts.length) {
      if (cb) {
        cb();
      } else {
        for (var i = 0; i < window.HighchartsCloud.ondone.length; i++) {
          try {
            window.HighchartsCloud.ondone[i]();
          } catch(e) {
            console.error(e);
          }
        }
      }
    }
  }

  function loadScript(s, scripts, cb) {
    if (!s) next();
    
    function next() {
      ++loaded;
      if (loaded < scripts.length) {
        loadScript(scripts[loaded], scripts, cb);
      }
      check(scripts, cb);
    }

    if (isScriptAlreadyIncluded(s)) {
      return next();
    }

    var n = document.createElement('script');

    n.onload = function () {
      next();
    };

    if (s.indexOf('https') >= 0) {
      n.src = s;
    } else {
      n.src = cdn + s;
    }
    document.body.appendChild(n);
  }

  function loadExtraScripts(){
    if (extraScripts.length > 0) {
      loaded = 0;
      loadScript(extraScripts[0], extraScripts);
    } else {
      check(scripts);
    }
  }

  function loadExtraScriptsAndMakeChart(){
    loaded = 0;
    loadCSS();
    if (extraScripts.length > 0) {
      loadScript(extraScripts[0], extraScripts, createChart);
    } else {
      check(extraScripts);
    }
  }

  if (typeof window['HighchartsCloud'] === 'undefined') {
    window.HighchartsCloud = {
      ondone: [createChart],
      hasWrapped: false,
      hasLoaded: false,
      externalCSS: externalCSS
    };

    loadScript(scripts[0], scripts, loadExtraScripts);
    loadCSS();

  } else {
    if (window.HighchartsCloud.externalCSS) window.HighchartsCloud.externalCSS.push(externalCSS);
    if (!window.HighchartsCloud.hasLoaded) window.HighchartsCloud.ondone.push(loadExtraScriptsAndMakeChart);
    else loadExtraScriptsAndMakeChart();
  }

}());
