/*! Built with http://stenciljs.com */
var __generator=this&&this.__generator||function(t,n){var e,a,r,s,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function i(s){return function(i){return function(s){if(e)throw new TypeError("Generator is already executing.");for(;o;)try{if(e=1,a&&(r=a[2&s[0]?"return":s[0]?"throw":"next"])&&!(r=r.call(a,s[1])).done)return r;switch(a=0,r&&(s=[0,r.value]),s[0]){case 0:case 1:r=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,a=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){o.label=s[1];break}if(6===s[0]&&o.label<r[1]){o.label=r[1],r=s;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(s);break}r[2]&&o.ops.pop(),o.trys.pop();continue}s=n.call(t,o)}catch(t){s=[6,t],a=0}finally{e=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,i])}}};webcomponents.loadBundle("8ek5qp22",["exports","./chunk-2f6d8e71.js","./chunk-4bc80c3c.js","./chunk-47f66c02.js"],function(t,n,e,a){var r=window.webcomponents.h,s=function(){function t(){this.paramsJson="{}",this.transform="none",this.translate=n.TranslateService.instance}return t.prototype.componentDidLoad=function(){this.postRender()},t.prototype.componentDidUpdate=function(){this.postRender()},t.prototype.postRender=function(){return t=this,n=void 0,a=function(){var t,n;return __generator(this,function(e){switch(e.label){case 0:return t=this.el.innerText.trim(),this.language&&this.language!==this.translate.language?(this.translationsLocation&&(this.translate.translationsLocation=this.translationsLocation),[4,this.translate.use(this.language)]):[3,2];case 1:e.sent(),e.label=2;case 2:return this.translation=this.translate.get(t),this.params&&(this.translation=this.translate.get(t,this.params)),"{}"!==this.paramsJson&&(n=[t],JSON.parse(this.paramsJson).forEach(function(t){n.push(t)}),this.translation=this.translate.get.apply(this.translate,n)),this.transform&&this.transformTranslation(this.transform),this.el.innerText=this.translation,[2]}})},new((e=void 0)||(e=Promise))(function(r,s){function o(t){try{l(a.next(t))}catch(t){s(t)}}function i(t){try{l(a.throw(t))}catch(t){s(t)}}function l(t){t.done?r(t.value):new e(function(n){n(t.value)}).then(o,i)}l((a=a.apply(t,n||[])).next())});var t,n,e,a},t.prototype.get=function(t){return this.translate.get(t)},t.prototype.set=function(t,n,e){this.translation=this.translate.get(t)},t.prototype.transformTranslation=function(t){"lowercase"===t&&(this.translation=this.translation.toLowerCase()),"lowercaseFirst"===t&&(this.translation=this.translation.charAt(0).toLowerCase()+this.translation.slice(1)),"uppercase"===t&&(this.translation=this.translation.toUpperCase()),"uppercaseFirst"===t&&(this.translation=this.translation.charAt(0).toUpperCase()+this.translation.slice(1))},t.prototype.render=function(){return r("span",null,r("slot",null))},Object.defineProperty(t,"is",{get:function(){return"ema-translate"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"properties",{get:function(){return{el:{elementRef:!0},get:{method:!0},language:{type:String,attr:"language"},params:{type:String,attr:"params"},paramsJson:{type:String,attr:"params-json"},set:{method:!0},transform:{type:String,attr:"transform"},translation:{state:!0},translationsLocation:{type:String,attr:"translations-location"}}},enumerable:!0,configurable:!0}),t}();t.EmaTranslate=s,Object.defineProperty(t,"__esModule",{value:!0})});