var __awaiter=this&&this.__awaiter||function(e,t,n,r){function a(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function i(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r["throw"](e))}catch(t){o(t)}}function u(e){e.done?n(e.value):a(e.value).then(i,s)}u((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,a,o,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return u([e,t])}}function u(i){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,a&&(o=i[0]&2?a["return"]:i[0]?a["throw"]||((o=a["return"])&&o.call(a),0):a.next)&&!(o=o.call(a,i[1])).done)return o;if(a=0,o)i=[i[0]&2,o.value];switch(i[0]){case 0:case 1:o=i;break;case 4:n.label++;return{value:i[1],done:false};case 5:n.label++;a=i[1];i=[0];continue;case 7:i=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(i[0]===6||i[0]===2)){n=0;continue}if(i[0]===3&&(!o||i[1]>o[0]&&i[1]<o[3])){n.label=i[1];break}if(i[0]===6&&n.label<o[1]){n.label=o[1];o=i;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(i);break}if(o[2])n.ops.pop();n.trys.pop();continue}i=t.call(e,n)}catch(s){i=[6,s];a=0}finally{r=o=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:true}}};System.register(["./p-f77ab9e8.system.js","./p-c182192e.system.js","./p-24afd2bd.system.js","./p-f8f73938.system.js","./p-1ba9f457.system.js"],(function(e,t){"use strict";var n,r;return{setters:[function(t){e("Toast",t.t)},function(t){e("FileFormatUtils",t.l)},function(e){n=e.g},function(e){r=e.g},function(){}],execute:function(){var a=this;var o=e("loadFonts",(function(e){return __awaiter(a,void 0,void 0,(function(){var r,a,o;return __generator(this,(function(i){switch(i.label){case 0:if(window===undefined||document===undefined)return[2];return[4,t.import("./p-619c4b22.system.js").then((function(e){return e.w}))];case 1:r=i.sent();a=e;if(!a){o=n(document.documentElement);a=o==="material"?["Roboto","IBM Plex Mono"]:["Montserrat:400,600","Lato:400,400i,700,700i","IBM Plex Mono"]}r.load({google:{families:a}});return[2]}}))}))}));var i="0.27.1";var s="0.16.1";var u=e("injectThemeVariables",(function(){var e=r(document.documentElement);var t=e==="material"?"material":"stencila";var n=e==="material"?s:i;var a=document.createElement("link");a.rel="stylesheet";a.href="https://unpkg.com/@stencila/style-"+t+"@"+(n!==null&&n!==void 0?n:"latest")+"/dist/variables.css";document.head.prepend(a)}))}}}));
//# sourceMappingURL=p-5b5bf212.system.js.map