var __awaiter=this&&this.__awaiter||function(t,e,r,n){function a(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,i){function o(t){try{s(n.next(t))}catch(e){i(e)}}function u(t){try{s(n["throw"](t))}catch(e){i(e)}}function s(t){t.done?r(t.value):a(t.value).then(o,u)}s((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,a,i,o;return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(t){return function(e){return s([t,e])}}function s(o){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,a&&(i=o[0]&2?a["return"]:o[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,o[1])).done)return i;if(a=0,i)o=[o[0]&2,i.value];switch(o[0]){case 0:case 1:i=o;break;case 4:r.label++;return{value:o[1],done:false};case 5:r.label++;a=o[1];o=[0];continue;case 7:o=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){r.label=o[1];break}if(o[0]===6&&r.label<i[1]){r.label=i[1];i=o;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(o);break}if(i[2])r.ops.pop();r.trys.pop();continue}o=e.call(t,r)}catch(u){o=[6,u];a=0}finally{n=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register([],(function(t){"use strict";return{execute:function(){var e=undefined&&undefined.__classPrivateFieldGet||function(t,e){if(!e.has(t)){throw new TypeError("attempted to get private field on non-instance")}return e.get(t)};var r=undefined&&undefined.__classPrivateFieldSet||function(t,e,r){if(!e.has(t)){throw new TypeError("attempted to set private field on non-instance")}e.set(t,r);return r};var n,a;var i=function(){function t(t,e,r){n.set(this,void 0);a.set(this,void 0);this.id=t;this.name=e;this.type=r.type;this.blob=r}t.prototype.hash=function(t,i){if(t===void 0){t="SHA-256"}if(i===void 0){i="hex"}return __awaiter(this,void 0,void 0,(function(){var o,u;return __generator(this,(function(s){switch(s.label){case 0:if(!(!e(this,n)||e(this,a)!==t))return[3,3];return[4,new Response(this.blob).arrayBuffer()];case 1:o=s.sent();return[4,crypto.subtle.digest(t,o)];case 2:u=s.sent();r(this,a,t);r(this,n,Array.from(new Uint8Array(u)));s.label=3;case 3:switch(i){default:case"array":return[2,e(this,n)];case"hex":return[2,e(this,n).map((function(t){return t.toString(16).padStart(2,"0")})).join("")]}return[2]}}))}))};return t}();t("B",i);n=new WeakMap,a=new WeakMap;var o=t("c",(function(t,e,r){if(e===void 0){e="#fff"}if(r===void 0){r="#fff"}var n=u(t);var a=u(e);var i=u(r);if(!n||!a||!i)return null;var o=i;var s=v(n,n);return{c300:f(l(n,o,.7)),c400:f(l(n,o,.85)),c500:f(n),c600:f(l(n,s,.87)),c700:f(l(n,s,.7)),con1:f(Object.assign(Object.assign({},a),{a:.87})),con2:f(Object.assign(Object.assign({},a),{a:.6})),con3:f(Object.assign(Object.assign({},a),{a:.38})),con4:f(Object.assign(Object.assign({},a),{a:.1}))}}));var u=function(t){return t.startsWith("#")?s(t):c(t)};var s=function(t){var e=/^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i;var r=t.replace(e,(function(t,e,r,n,a){var i=a!==null&&a!==void 0?a:"f";return"#"+e+e+r+r+n+n+i+i}));var n=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i;var a=n.exec(r);if(!a)return null;var i=parseInt(a[4],16);return{r:parseInt(a[1],16),g:parseInt(a[2],16),b:parseInt(a[3],16),a:isNaN(i)?1:i/255}};var c=function(t){var e=/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*([\d\.]+))?\)$/;var r=t.match(e);if(!r)return null;return{r:parseInt(r[1],10),g:parseInt(r[2],10),b:parseInt(r[3],10),a:parseFloat(r[4])}};var f=function(t){var e=function(t){return Math.round(t).toString(16).padStart(2,"0")};var r=""+e(t.r)+e(t.g)+e(t.b);var n=t.a==1?"":e(t.a*255);return"#"+r+n};var l=function(t,e,r){if(r===void 0){r=.5}var n=2*r-1;var a=t.a-e.a;var i=((n*a==-1?n:(n+a)/(1+n*a))+1)/2;var o=1-i;return{r:i*t.r+o*e.r,g:i*t.g+o*e.g,b:i*t.b+o*e.b,a:t.a*r+e.a*(1-r)}};var v=function(t,e){return{r:t.r*e.r/255,g:t.g*e.g/255,b:t.b*e.b/255,a:1}};var d=t("m",(function(t,e){return(t%e+e)%e}));var h=t("r",(function(t,e){var r=document.createElement("bce-ripple");var n=t.getBoundingClientRect();r.x=e.clientX-n.left;r.y=e.clientY-n.top;t.appendChild(r);setTimeout((function(){return r.parentElement.removeChild(r)}),500)}))}}}));