var __awaiter=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(r,s){function a(e){try{u(i.next(e))}catch(e){s(e)}}function o(e){try{u(i["throw"](e))}catch(e){s(e)}}function u(e){e.done?r(e.value):new n(function(t){t(e.value)}).then(a,o)}u((i=i.apply(e,t||[])).next())})};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,r,s,a;return a={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(e){return function(t){return u([e,t])}}function u(a){if(i)throw new TypeError("Generator is already executing.");while(n)try{if(i=1,r&&(s=a[0]&2?r["return"]:a[0]?r["throw"]||((s=r["return"])&&s.call(r),0):r.next)&&!(s=s.call(r,a[1])).done)return s;if(r=0,s)a=[a[0]&2,s.value];switch(a[0]){case 0:case 1:s=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;r=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(s=n.trys,s=s.length>0&&s[s.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!s||a[1]>s[0]&&a[1]<s[3])){n.label=a[1];break}if(a[0]===6&&n.label<s[1]){n.label=s[1];s=a;break}if(s&&n.label<s[2]){n.label=s[2];n.ops.push(a);break}if(s[2])n.ops.pop();n.trys.pop();continue}a=t.call(e,n)}catch(e){a=[6,e];r=0}finally{i=s=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-dde863a3.system.js","./p-1095b4e8.system.js","./p-ed9e4708.system.js"],function(e){"use strict";var t,n,i,r;return{setters:[function(e){t=e.r;n=e.h;i=e.g},function(){},function(e){r=e.D}],execute:function(){var s=function(){function e(e){t(this,e);this.active=false;this.activeClass="primary"}e.prototype.show=function(e,t,n){if(n===void 0){n=2e3}return __awaiter(this,void 0,void 0,function(){var i=this;return __generator(this,function(s){this.message=e;this.activeClass=t;this.active=true;r.fadeIn(this.el,150,0,"flex");this.timeout=setTimeout(function(){i.active=false},n);return[2]})})};e.prototype.dismiss=function(){this.active=false;r.fadeOut(this.el,150,0);clearTimeout(this.timeout)};e.prototype.render=function(){var e=this;return n("div",{onClick:function(){return e.dismiss()},class:"flash-container "+(this.active?"show ":"hide ")+this.activeClass},n("div",{class:"message"},this.message),n("p",{class:"dismiss"},"tap to dismiss"))};Object.defineProperty(e.prototype,"el",{get:function(){return i(this)},enumerable:true,configurable:true});Object.defineProperty(e,"style",{get:function(){return":root{--ema-color:#343a40;--ema-primary:#007bff;--ema-secondary:#6c757d;--ema-success:#28a745;--ema-info:#17a2b8;--ema-warning:#ffc107;--ema-danger:#dc3545;--ema-light:#f8f9fa;--ema-dark:#343a40;--ema-background:#fff;--ema-background-diap:rgba(29,29,29,0.97);--ema-border-color:#c5c9cd;--ema-border:1px solid #c5c9cd;--ema-border-radius:3px 3px 3px 3px;--ema-box-shadow:1px 1px 10px 1px #ccc;--ema-margin:0.25rem;--ema-margin-sm:0.5rem;--ema-margin-md:1rem;--ema-margin-lg:1.5rem;--ema-margin-xl:2rem;--ema-padding:0.25rem;--ema-padding-sm:0.5rem;--ema-padding-md:1rem;--ema-padding-lg:1.5rem;--ema-padding-xl:2rem;--ema-gray-100:#f8f9fa;--ema-gray-200:#e9ecef;--ema-gray-300:#dee2e6;--ema-gray-400:#ced4da;--ema-gray-500:#adb5bd;--ema-gray-600:#868e96;--ema-gray-700:#495057;--ema-gray-800:#343a40;--ema-gray-900:#212529}ema-flash-message{position:fixed;z-index:31000;top:0;left:50%;-webkit-transition:opacity .7s;transition:opacity .7s;display:none;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}ema-flash-message .flash-container{background-color:#000;border-radius:var(--ema-border-radius);display:block;min-height:56px;min-width:360px;max-width:480px;color:var(--ema-light);margin:0 auto 0 -50%;padding:var(--ema-padding,.5rem);text-align:center}ema-flash-message .show{display:block;opacity:1}ema-flash-message .hide{display:none;opacity:0}ema-flash-message .dismiss{cursor:pointer;position:absolute;min-width:360px;bottom:var(--ema-padding,.5rem);margin:0 auto;font-size:.7em;opacity:.5;text-align:center}ema-flash-message .primary{background-color:var(--ema-primary)}ema-flash-message .secondary,ema-flash-message .success{background-color:var(--ema-success)}ema-flash-message .danger{background-color:var(--ema-danger)}ema-flash-message .light{background-color:var(--ema-background,#fff)}ema-flash-message .dark{background-color:var(--ema-background-diap)}"},enumerable:true,configurable:true});return e}();e("ema_flash_message",s)}}});