var __awaiter=this&&this.__awaiter||function(t,e,r,n){function o(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,i){function s(t){try{u(n.next(t))}catch(e){i(e)}}function a(t){try{u(n["throw"](t))}catch(e){i(e)}}function u(t){t.done?r(t.value):o(t.value).then(s,a)}u((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(t){return function(e){return u([t,e])}}function u(s){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,o&&(i=s[0]&2?o["return"]:s[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;if(o=0,i)s=[s[0]&2,i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;o=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){r.label=s[1];break}if(s[0]===6&&r.label<i[1]){r.label=i[1];i=s;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(s);break}if(i[2])r.ops.pop();r.trys.pop();continue}s=e.call(t,r)}catch(a){s=[6,a];o=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./index-c04bc24f.system.js","./progress-loader-util-89bb382b.system.js","./_commonjsHelpers-addab757.system.js"],(function(t){"use strict";var e,r,n,o,i;return{setters:[function(t){e=t.r;r=t.i;n=t.k},function(t){o=t.c;i=t.g},function(){}],execute:function(){var s=t("fw_progress_loader",function(){function t(t){e(this,t);this.parent="body";this.minimum=.08;this.easing="ease";this.speed=200;this.trickle=true;this.trickleSpeed=200;this.template='<div class="bar" role="progressbar" aria-valuemin="0" aria-valuemax="1"></div>';this.show=false}t.prototype.start=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){try{this.show=true;this.progressObj.start()}catch(e){console.error("Error in start method",e)}return[2]}))}))};t.prototype.done=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){try{this.show=false;this.progressObj.done()}catch(e){console.error("Error in done method",e)}return[2]}))}))};t.prototype.inc=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){try{this.progressObj.inc()}catch(e){console.error("Error in inc method",e)}return[2]}))}))};t.prototype.set=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){try{this.progressObj.set(t)}catch(r){console.error("Error in set method",r)}return[2]}))}))};t.prototype.showChanged=function(t){if(t){this.progressObj.start()}else{this.progressObj.done()}};t.prototype.disconnectedCallback=function(){this.progressObj.done()};t.prototype.componentWillLoad=function(){this.progressObj=o(i(this));if(this.show)this.progressObj.start()};t.prototype.render=function(){return r(n,null,r("slot",null))};Object.defineProperty(t,"watchers",{get:function(){return{show:["showChanged"]}},enumerable:false,configurable:true});return t}())}}}));