@ezeep/ezeep-js 1.0.210 → 1.0.211

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- var __extends=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var __awaiter=this&&this.__awaiter||function(e,t,r,n){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function o(e){try{l(n.next(e))}catch(e){i(e)}}function s(e){try{l(n["throw"](e))}catch(e){i(e)}}function l(e){e.done?r(e.value):a(e.value).then(o,s)}l((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){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:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return l([e,t])}}function l(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=t.call(e,r)}catch(e){o=[6,e];a=0}finally{n=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,i;n<a;n++){if(i||!(n in t)){if(!i)i=Array.prototype.slice.call(t,0,n);i[n]=t[n]}}return e.concat(i||Array.prototype.slice.call(t))};System.register(["./p-c04b764e.system.js"],(function(e){"use strict";var t,r,n,a,i,o,s,l,c;return{setters:[function(e){t=e.g;r=e.f;n=e.r;a=e.c;i=e.h;o=e.H;s=e.a;l=e.d;c=e.F}],execute:function(){var p=this;var d=function(e,t,r){var n=e.get(t);if(!n){e.set(t,[r])}else if(!n.includes(r)){n.push(r)}};var u=function(e,t){var r;return function(){var n=[];for(var a=0;a<arguments.length;a++){n[a]=arguments[a]}if(r){clearTimeout(r)}r=setTimeout((function(){r=0;e.apply(void 0,n)}),t)}};var m=function(e){return!("isConnected"in e)||e.isConnected};var f=u((function(e){for(var t=0,r=e.keys();t<r.length;t++){var n=r[t];e.set(n,e.get(n).filter(m))}}),2e3);var h=function(e){var n=e.on;var a=new Map;if(typeof t==="function"){n("dispose",(function(){a.clear()}));n("get",(function(e){var r=t();if(r){d(a,e,r)}}));n("set",(function(e){var t=a.get(e);if(t){a.set(e,t.filter(r))}f(a)}));n("reset",(function(){a.forEach((function(e){return e.forEach(r)}));f(a)}))}};var g=function(e,t){if(t===void 0){t=function(e,t){return e!==t}}var r=new Map(Object.entries(e!==null&&e!==void 0?e:{}));var n={dispose:[],get:[],set:[],reset:[]};var a=function(){r=new Map(Object.entries(e!==null&&e!==void 0?e:{}));n.reset.forEach((function(e){return e()}))};var i=function(){n.dispose.forEach((function(e){return e()}));a()};var o=function(e){n.get.forEach((function(t){return t(e)}));return r.get(e)};var s=function(e,a){var i=r.get(e);if(t(a,i,e)){r.set(e,a);n.set.forEach((function(t){return t(e,a,i)}))}};var l=typeof Proxy==="undefined"?{}:new Proxy(e,{get:function(e,t){return o(t)},ownKeys:function(e){return Array.from(r.keys())},getOwnPropertyDescriptor:function(){return{enumerable:true,configurable:true}},has:function(e,t){return r.has(t)},set:function(e,t,r){s(t,r);return true}});var c=function(e,t){n[e].push(t);return function(){y(n[e],t)}};var p=function(t,r){var n=c("set",(function(e,n){if(e===t){r(n)}}));var a=c("reset",(function(){return r(e[t])}));return function(){n();a()}};var d=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return e.forEach((function(e){if(e.set){c("set",e.set)}if(e.get){c("get",e.get)}if(e.reset){c("reset",e.reset)}}))};var u=function(e){var t=r.get(e);n.set.forEach((function(r){return r(e,t,t)}))};return{state:l,get:o,set:s,on:c,onChange:p,use:d,dispose:i,reset:a,forceUpdate:u}};var y=function(e,t){var r=e.indexOf(t);if(r>=0){e[r]=e[e.length-1];e.length--}};var v=function(e,t){var r=g(e,t);h(r);return r};function b(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){b=function e(t){return typeof t}}else{b=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return b(e)}function x(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}function N(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?Object(arguments[t]):{};var n=Object.keys(r);if(typeof Object.getOwnPropertySymbols==="function"){n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))}n.forEach((function(t){x(e,t,r[t])}))}return e}function z(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function S(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function w(e,t,r){if(t)S(e.prototype,t);if(r)S(e,r);return e}var P=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function C(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function R(e,t,r){return r={path:t,exports:{},require:function(e,t){return E()}},e(r,r.exports),r.exports}function _(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:true});Object.keys(e).forEach((function(r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:true,get:function(){return e[r]}})}));return t}function E(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var k=R((function(e){function t(r){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){e.exports=t=function e(t){return typeof t};e.exports["default"]=e.exports,e.exports.__esModule=true}else{e.exports=t=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.exports["default"]=e.exports,e.exports.__esModule=true}return t(r)}e.exports=t;e.exports["default"]=e.exports,e.exports.__esModule=true}));var O=C(k);function T(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function B(e,t){if(t&&(O(t)==="object"||typeof t==="function")){return t}return T(e)}function q(e){q=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return q(e)}function M(e,t){M=Object.setPrototypeOf||function e(t,r){t.__proto__=r;return t};return M(e,t)}function A(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)M(e,t)}var I={type:"logger",log:function e(t){this.output("log",t)},warn:function e(t){this.output("warn",t)},error:function e(t){this.output("error",t)},output:function e(t,r){if(console&&console[t])console[t].apply(console,r)}};var H=function(){function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};z(this,e);this.init(t,r)}w(e,[{key:"init",value:function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};this.prefix=r.prefix||"i18next:";this.logger=t||I;this.options=r;this.debug=r.debug}},{key:"setDebug",value:function e(t){this.debug=t}},{key:"log",value:function e(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++){r[n]=arguments[n]}return this.forward(r,"log","",true)}},{key:"warn",value:function e(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++){r[n]=arguments[n]}return this.forward(r,"warn","",true)}},{key:"error",value:function e(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++){r[n]=arguments[n]}return this.forward(r,"error","")}},{key:"deprecate",value:function e(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++){r[n]=arguments[n]}return this.forward(r,"warn","WARNING DEPRECATED: ",true)}},{key:"forward",value:function e(t,r,n,a){if(a&&!this.debug)return null;if(typeof t[0]==="string")t[0]="".concat(n).concat(this.prefix," ").concat(t[0]);return this.logger[r](t)}},{key:"create",value:function t(r){return new e(this.logger,N({},{prefix:"".concat(this.prefix,":").concat(r,":")},this.options))}}]);return e}();var L=new H;var D=function(){function e(){z(this,e);this.observers={}}w(e,[{key:"on",value:function e(t,r){var n=this;t.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[];n.observers[e].push(r)}));return this}},{key:"off",value:function e(t,r){if(!this.observers[t])return;if(!r){delete this.observers[t];return}this.observers[t]=this.observers[t].filter((function(e){return e!==r}))}},{key:"emit",value:function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++){n[a-1]=arguments[a]}if(this.observers[t]){var i=[].concat(this.observers[t]);i.forEach((function(e){e.apply(void 0,n)}))}if(this.observers["*"]){var o=[].concat(this.observers["*"]);o.forEach((function(e){e.apply(e,[t].concat(n))}))}}}]);return e}();function j(){var e;var t;var r=new Promise((function(r,n){e=r;t=n}));r.resolve=e;r.reject=t;return r}function U(e){if(e==null)return"";return""+e}function F(e,t,r){e.forEach((function(e){if(t[e])r[e]=t[e]}))}function V(e,t,r){function n(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function a(){return!e||typeof e==="string"}var i=typeof t!=="string"?[].concat(t):t.split(".");while(i.length>1){if(a())return{};var o=n(i.shift());if(!e[o]&&r)e[o]=new r;if(Object.prototype.hasOwnProperty.call(e,o)){e=e[o]}else{e={}}}if(a())return{};return{obj:e,k:n(i.shift())}}function K(e,t,r){var n=V(e,t,Object),a=n.obj,i=n.k;a[i]=r}function G(e,t,r,n){var a=V(e,t,Object),i=a.obj,o=a.k;i[o]=i[o]||[];if(n)i[o]=i[o].concat(r);if(!n)i[o].push(r)}function W(e,t){var r=V(e,t),n=r.obj,a=r.k;if(!n)return undefined;return n[a]}function X(e,t,r){var n=W(e,r);if(n!==undefined){return n}return W(t,r)}function Q(e,t,r){for(var n in t){if(n!=="__proto__"&&n!=="constructor"){if(n in e){if(typeof e[n]==="string"||e[n]instanceof String||typeof t[n]==="string"||t[n]instanceof String){if(r)e[n]=t[n]}else{Q(e[n],t[n],r)}}else{e[n]=t[n]}}}return e}function Y(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var J={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function $(e){if(typeof e==="string"){return e.replace(/[&<>"'\/]/g,(function(e){return J[e]}))}return e}var Z=typeof window!=="undefined"&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;var ee=[" ",",","?","!",";"];function te(e,t,r){t=t||"";r=r||"";var n=ee.filter((function(e){return t.indexOf(e)<0&&r.indexOf(e)<0}));if(n.length===0)return true;var a=new RegExp("(".concat(n.map((function(e){return e==="?"?"\\?":e})).join("|"),")"));var i=!a.test(e);if(!i){var o=e.indexOf(r);if(o>0&&!a.test(e.substring(0,o))){i=true}}return i}function re(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:".";if(!e)return undefined;if(e[t])return e[t];var n=t.split(r);var a=e;for(var i=0;i<n.length;++i){if(!a)return undefined;if(typeof a[n[i]]==="string"&&i+1<n.length){return undefined}if(a[n[i]]===undefined){var o=2;var s=n.slice(i,i+o).join(r);var l=a[s];while(l===undefined&&n.length>i+o){o++;s=n.slice(i,i+o).join(r);l=a[s]}if(l===undefined)return undefined;if(typeof l==="string")return l;if(s&&typeof l[s]==="string")return l[s];var c=n.slice(i+o).join(r);if(c)return re(l,c,r);return undefined}a=a[n[i]]}return a}var ne=function(e){A(t,e);function t(e){var r;var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{ns:["translation"],defaultNS:"translation"};z(this,t);r=B(this,q(t).call(this));if(Z){D.call(T(r))}r.data=e||{};r.options=n;if(r.options.keySeparator===undefined){r.options.keySeparator="."}if(r.options.ignoreJSONStructure===undefined){r.options.ignoreJSONStructure=true}return r}w(t,[{key:"addNamespaces",value:function e(t){if(this.options.ns.indexOf(t)<0){this.options.ns.push(t)}}},{key:"removeNamespaces",value:function e(t){var r=this.options.ns.indexOf(t);if(r>-1){this.options.ns.splice(r,1)}}},{key:"getResource",value:function e(t,r,n){var a=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};var i=a.keySeparator!==undefined?a.keySeparator:this.options.keySeparator;var o=a.ignoreJSONStructure!==undefined?a.ignoreJSONStructure:this.options.ignoreJSONStructure;var s=[t,r];if(n&&typeof n!=="string")s=s.concat(n);if(n&&typeof n==="string")s=s.concat(i?n.split(i):n);if(t.indexOf(".")>-1){s=t.split(".")}var l=W(this.data,s);if(l||!o||typeof n!=="string")return l;return re(this.data&&this.data[t]&&this.data[t][r],n,i)}},{key:"addResource",value:function e(t,r,n,a){var i=arguments.length>4&&arguments[4]!==undefined?arguments[4]:{silent:false};var o=this.options.keySeparator;if(o===undefined)o=".";var s=[t,r];if(n)s=s.concat(o?n.split(o):n);if(t.indexOf(".")>-1){s=t.split(".");a=r;r=s[1]}this.addNamespaces(r);K(this.data,s,a);if(!i.silent)this.emit("added",t,r,n,a)}},{key:"addResources",value:function e(t,r,n){var a=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{silent:false};for(var i in n){if(typeof n[i]==="string"||Object.prototype.toString.apply(n[i])==="[object Array]")this.addResource(t,r,i,n[i],{silent:true})}if(!a.silent)this.emit("added",t,r,n)}},{key:"addResourceBundle",value:function e(t,r,n,a,i){var o=arguments.length>5&&arguments[5]!==undefined?arguments[5]:{silent:false};var s=[t,r];if(t.indexOf(".")>-1){s=t.split(".");a=n;n=r;r=s[1]}this.addNamespaces(r);var l=W(this.data,s)||{};if(a){Q(l,n,i)}else{l=N({},l,n)}K(this.data,s,l);if(!o.silent)this.emit("added",t,r,n)}},{key:"removeResourceBundle",value:function e(t,r){if(this.hasResourceBundle(t,r)){delete this.data[t][r]}this.removeNamespaces(r);this.emit("removed",t,r)}},{key:"hasResourceBundle",value:function e(t,r){return this.getResource(t,r)!==undefined}},{key:"getResourceBundle",value:function e(t,r){if(!r)r=this.options.defaultNS;if(this.options.compatibilityAPI==="v1")return N({},{},this.getResource(t,r));return this.getResource(t,r)}},{key:"getDataByLanguage",value:function e(t){return this.data[t]}},{key:"hasLanguageSomeTranslations",value:function e(t){var r=this.getDataByLanguage(t);var n=r&&Object.keys(r)||[];return!!n.find((function(e){return r[e]&&Object.keys(r[e]).length>0}))}},{key:"toJSON",value:function e(){return this.data}}]);return t}(D);var ae={processors:{},addPostProcessor:function e(t){this.processors[t.name]=t},handle:function e(t,r,n,a,i){var o=this;t.forEach((function(e){if(o.processors[e])r=o.processors[e].process(r,n,a,i)}));return r}};var ie={};var oe=function(e){A(t,e);function t(e){var r;var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};z(this,t);r=B(this,q(t).call(this));if(Z){D.call(T(r))}F(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,T(r));r.options=n;if(r.options.keySeparator===undefined){r.options.keySeparator="."}r.logger=L.create("translator");return r}w(t,[{key:"changeLanguage",value:function e(t){if(t)this.language=t}},{key:"exists",value:function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{interpolation:{}};if(t===undefined||t===null){return false}var n=this.resolve(t,r);return n&&n.res!==undefined}},{key:"extractFromKey",value:function e(t,r){var n=r.nsSeparator!==undefined?r.nsSeparator:this.options.nsSeparator;if(n===undefined)n=":";var a=r.keySeparator!==undefined?r.keySeparator:this.options.keySeparator;var i=r.ns||this.options.defaultNS;var o=n&&t.indexOf(n)>-1;var s=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!te(t,n,a);if(o&&!s){var l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0){return{key:t,namespaces:i}}var c=t.split(n);if(n!==a||n===a&&this.options.ns.indexOf(c[0])>-1)i=c.shift();t=c.join(a)}if(typeof i==="string")i=[i];return{key:t,namespaces:i}}},{key:"translate",value:function e(r,n,a){var i=this;if(b(n)!=="object"&&this.options.overloadTranslationOptionHandler){n=this.options.overloadTranslationOptionHandler(arguments)}if(!n)n={};if(r===undefined||r===null)return"";if(!Array.isArray(r))r=[String(r)];var o=n.keySeparator!==undefined?n.keySeparator:this.options.keySeparator;var s=this.extractFromKey(r[r.length-1],n),l=s.key,c=s.namespaces;var p=c[c.length-1];var d=n.lng||this.language;var u=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d&&d.toLowerCase()==="cimode"){if(u){var m=n.nsSeparator||this.options.nsSeparator;return p+m+l}return l}var f=this.resolve(r,n);var h=f&&f.res;var g=f&&f.usedKey||l;var y=f&&f.exactUsedKey||l;var v=Object.prototype.toString.apply(h);var x=["[object Number]","[object Function]","[object RegExp]"];var z=n.joinArrays!==undefined?n.joinArrays:this.options.joinArrays;var S=!this.i18nFormat||this.i18nFormat.handleAsObject;var w=typeof h!=="string"&&typeof h!=="boolean"&&typeof h!=="number";if(S&&h&&w&&x.indexOf(v)<0&&!(typeof z==="string"&&v==="[object Array]")){if(!n.returnObjects&&!this.options.returnObjects){if(!this.options.returnedObjectHandler){this.logger.warn("accessing an object - but returnObjects options is not enabled!")}return this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,h,N({},n,{ns:c})):"key '".concat(l," (").concat(this.language,")' returned an object instead of string.")}if(o){var P=v==="[object Array]";var C=P?[]:{};var R=P?y:g;for(var _ in h){if(Object.prototype.hasOwnProperty.call(h,_)){var E="".concat(R).concat(o).concat(_);C[_]=this.translate(E,N({},n,{joinArrays:false,ns:c}));if(C[_]===E)C[_]=h[_]}}h=C}}else if(S&&typeof z==="string"&&v==="[object Array]"){h=h.join(z);if(h)h=this.extendTranslation(h,r,n,a)}else{var k=false;var O=false;var T=n.count!==undefined&&typeof n.count!=="string";var B=t.hasDefaultValue(n);var q=T?this.pluralResolver.getSuffix(d,n.count,n):"";var M=n["defaultValue".concat(q)]||n.defaultValue;if(!this.isValidLookup(h)&&B){k=true;h=M}if(!this.isValidLookup(h)){O=true;h=l}var A=n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey;var I=A&&O?undefined:h;var H=B&&M!==h&&this.options.updateMissing;if(O||k||H){this.logger.log(H?"updateKey":"missingKey",d,p,l,H?M:h);if(o){var L=this.resolve(l,N({},n,{keySeparator:false}));if(L&&L.res)this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var D=[];var j=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&j&&j[0]){for(var U=0;U<j.length;U++){D.push(j[U])}}else if(this.options.saveMissingTo==="all"){D=this.languageUtils.toResolveHierarchy(n.lng||this.language)}else{D.push(n.lng||this.language)}var F=function e(t,r,a){if(i.options.missingKeyHandler){i.options.missingKeyHandler(t,p,r,H?a:I,H,n)}else if(i.backendConnector&&i.backendConnector.saveMissing){i.backendConnector.saveMissing(t,p,r,H?a:I,H,n)}i.emit("missingKey",t,p,r,h)};if(this.options.saveMissing){if(this.options.saveMissingPlurals&&T){D.forEach((function(e){i.pluralResolver.getSuffixes(e).forEach((function(t){F([e],l+t,n["defaultValue".concat(t)]||M)}))}))}else{F(D,l,M)}}}h=this.extendTranslation(h,r,n,f,a);if(O&&h===l&&this.options.appendNamespaceToMissingKey)h="".concat(p,":").concat(l);if((O||k)&&this.options.parseMissingKeyHandler)h=this.options.parseMissingKeyHandler(h)}return h}},{key:"extendTranslation",value:function e(t,r,n,a,i){var o=this;if(this.i18nFormat&&this.i18nFormat.parse){t=this.i18nFormat.parse(t,n,a.usedLng,a.usedNS,a.usedKey,{resolved:a})}else if(!n.skipInterpolation){if(n.interpolation)this.interpolator.init(N({},n,{interpolation:N({},this.options.interpolation,n.interpolation)}));var s=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;var l;if(s){var c=t.match(this.interpolator.nestingRegexp);l=c&&c.length}var p=n.replace&&typeof n.replace!=="string"?n.replace:n;if(this.options.interpolation.defaultVariables)p=N({},this.options.interpolation.defaultVariables,p);t=this.interpolator.interpolate(t,p,n.lng||this.language,n);if(s){var d=t.match(this.interpolator.nestingRegexp);var u=d&&d.length;if(l<u)n.nest=false}if(n.nest!==false)t=this.interpolator.nest(t,(function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++){t[a]=arguments[a]}if(i&&i[0]===t[0]&&!n.context){o.logger.warn("It seems you are nesting recursively key: ".concat(t[0]," in key: ").concat(r[0]));return null}return o.translate.apply(o,t.concat([r]))}),n);if(n.interpolation)this.interpolator.reset()}var m=n.postProcess||this.options.postProcess;var f=typeof m==="string"?[m]:m;if(t!==undefined&&t!==null&&f&&f.length&&n.applyPostProcessor!==false){t=ae.handle(f,t,r,this.options&&this.options.postProcessPassResolved?N({i18nResolved:a},n):n,this)}return t}},{key:"resolve",value:function e(t){var r=this;var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var a;var i;var o;var s;var l;if(typeof t==="string")t=[t];t.forEach((function(e){if(r.isValidLookup(a))return;var t=r.extractFromKey(e,n);var c=t.key;i=c;var p=t.namespaces;if(r.options.fallbackNS)p=p.concat(r.options.fallbackNS);var d=n.count!==undefined&&typeof n.count!=="string";var u=n.context!==undefined&&(typeof n.context==="string"||typeof n.context==="number")&&n.context!=="";var m=n.lngs?n.lngs:r.languageUtils.toResolveHierarchy(n.lng||r.language,n.fallbackLng);p.forEach((function(e){if(r.isValidLookup(a))return;l=e;if(!ie["".concat(m[0],"-").concat(e)]&&r.utils&&r.utils.hasLoadedNamespace&&!r.utils.hasLoadedNamespace(l)){ie["".concat(m[0],"-").concat(e)]=true;r.logger.warn('key "'.concat(i,'" for languages "').concat(m.join(", "),'" won\'t get resolved as namespace "').concat(l,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")}m.forEach((function(t){if(r.isValidLookup(a))return;s=t;var i=c;var l=[i];if(r.i18nFormat&&r.i18nFormat.addLookupKeys){r.i18nFormat.addLookupKeys(l,c,t,e,n)}else{var p;if(d)p=r.pluralResolver.getSuffix(t,n.count,n);if(d&&u)l.push(i+p);if(u)l.push(i+="".concat(r.options.contextSeparator).concat(n.context));if(d)l.push(i+=p)}var m;while(m=l.pop()){if(!r.isValidLookup(a)){o=m;a=r.getResource(t,e,m,n)}}}))}))}));return{res:a,usedKey:i,exactUsedKey:o,usedLng:s,usedNS:l}}},{key:"isValidLookup",value:function e(t){return t!==undefined&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}},{key:"getResource",value:function e(t,r,n){var a=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};if(this.i18nFormat&&this.i18nFormat.getResource)return this.i18nFormat.getResource(t,r,n,a);return this.resourceStore.getResource(t,r,n,a)}}],[{key:"hasDefaultValue",value:function e(t){var r="defaultValue";for(var n in t){if(Object.prototype.hasOwnProperty.call(t,n)&&r===n.substring(0,r.length)&&undefined!==t[n]){return true}}return false}}]);return t}(D);function se(e){return e.charAt(0).toUpperCase()+e.slice(1)}var le=function(){function e(t){z(this,e);this.options=t;this.supportedLngs=this.options.supportedLngs||false;this.logger=L.create("languageUtils")}w(e,[{key:"getScriptPartFromCode",value:function e(t){if(!t||t.indexOf("-")<0)return null;var r=t.split("-");if(r.length===2)return null;r.pop();if(r[r.length-1].toLowerCase()==="x")return null;return this.formatLanguageCode(r.join("-"))}},{key:"getLanguagePartFromCode",value:function e(t){if(!t||t.indexOf("-")<0)return t;var r=t.split("-");return this.formatLanguageCode(r[0])}},{key:"formatLanguageCode",value:function e(t){if(typeof t==="string"&&t.indexOf("-")>-1){var r=["hans","hant","latn","cyrl","cans","mong","arab"];var n=t.split("-");if(this.options.lowerCaseLng){n=n.map((function(e){return e.toLowerCase()}))}else if(n.length===2){n[0]=n[0].toLowerCase();n[1]=n[1].toUpperCase();if(r.indexOf(n[1].toLowerCase())>-1)n[1]=se(n[1].toLowerCase())}else if(n.length===3){n[0]=n[0].toLowerCase();if(n[1].length===2)n[1]=n[1].toUpperCase();if(n[0]!=="sgn"&&n[2].length===2)n[2]=n[2].toUpperCase();if(r.indexOf(n[1].toLowerCase())>-1)n[1]=se(n[1].toLowerCase());if(r.indexOf(n[2].toLowerCase())>-1)n[2]=se(n[2].toLowerCase())}return n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}},{key:"isSupportedCode",value:function e(t){if(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs){t=this.getLanguagePartFromCode(t)}return!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}},{key:"getBestMatchFromCodes",value:function e(t){var r=this;if(!t)return null;var n;t.forEach((function(e){if(n)return;var t=r.formatLanguageCode(e);if(!r.options.supportedLngs||r.isSupportedCode(t))n=t}));if(!n&&this.options.supportedLngs){t.forEach((function(e){if(n)return;var t=r.getLanguagePartFromCode(e);if(r.isSupportedCode(t))return n=t;n=r.options.supportedLngs.find((function(e){if(e.indexOf(t)===0)return e}))}))}if(!n)n=this.getFallbackCodes(this.options.fallbackLng)[0];return n}},{key:"getFallbackCodes",value:function e(t,r){if(!t)return[];if(typeof t==="function")t=t(r);if(typeof t==="string")t=[t];if(Object.prototype.toString.apply(t)==="[object Array]")return t;if(!r)return t["default"]||[];var n=t[r];if(!n)n=t[this.getScriptPartFromCode(r)];if(!n)n=t[this.formatLanguageCode(r)];if(!n)n=t[this.getLanguagePartFromCode(r)];if(!n)n=t["default"];return n||[]}},{key:"toResolveHierarchy",value:function e(t,r){var n=this;var a=this.getFallbackCodes(r||this.options.fallbackLng||[],t);var i=[];var o=function e(t){if(!t)return;if(n.isSupportedCode(t)){i.push(t)}else{n.logger.warn("rejecting language code not found in supportedLngs: ".concat(t))}};if(typeof t==="string"&&t.indexOf("-")>-1){if(this.options.load!=="languageOnly")o(this.formatLanguageCode(t));if(this.options.load!=="languageOnly"&&this.options.load!=="currentOnly")o(this.getScriptPartFromCode(t));if(this.options.load!=="currentOnly")o(this.getLanguagePartFromCode(t))}else if(typeof t==="string"){o(this.formatLanguageCode(t))}a.forEach((function(e){if(i.indexOf(e)<0)o(n.formatLanguageCode(e))}));return i}}]);return e}();var ce=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}];var pe={1:function e(t){return Number(t>1)},2:function e(t){return Number(t!=1)},3:function e(t){return 0},4:function e(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},5:function e(t){return Number(t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5)},6:function e(t){return Number(t==1?0:t>=2&&t<=4?1:2)},7:function e(t){return Number(t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},8:function e(t){return Number(t==1?0:t==2?1:t!=8&&t!=11?2:3)},9:function e(t){return Number(t>=2)},10:function e(t){return Number(t==1?0:t==2?1:t<7?2:t<11?3:4)},11:function e(t){return Number(t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3)},12:function e(t){return Number(t%10!=1||t%100==11)},13:function e(t){return Number(t!==0)},14:function e(t){return Number(t==1?0:t==2?1:t==3?2:3)},15:function e(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2)},16:function e(t){return Number(t%10==1&&t%100!=11?0:t!==0?1:2)},17:function e(t){return Number(t==1||t%10==1&&t%100!=11?0:1)},18:function e(t){return Number(t==0?0:t==1?1:2)},19:function e(t){return Number(t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},20:function e(t){return Number(t==1?0:t==0||t%100>0&&t%100<20?1:2)},21:function e(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)},22:function e(t){return Number(t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3)}};var de=["v1","v2","v3"];var ue={zero:0,one:1,two:2,few:3,many:4,other:5};function me(){var e={};ce.forEach((function(t){t.lngs.forEach((function(r){e[r]={numbers:t.nr,plurals:pe[t.fc]}}))}));return e}var fe=function(){function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};z(this,e);this.languageUtils=t;this.options=r;this.logger=L.create("pluralResolver");if((!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(typeof Intl==="undefined"||!Intl.PluralRules)){this.options.compatibilityJSON="v3";this.logger.error("Your environment seems not to be Inlt API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")}this.rules=me()}w(e,[{key:"addRule",value:function e(t,r){this.rules[t]=r}},{key:"getRule",value:function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};if(this.shouldUseIntlApi()){try{return new Intl.PluralRules(t,{type:r.ordinal?"ordinal":"cardinal"})}catch(e){return}}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}},{key:"needsPlural",value:function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var n=this.getRule(t,r);if(this.shouldUseIntlApi()){return n&&n.resolvedOptions().pluralCategories.length>1}return n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function e(t,r){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};return this.getSuffixes(t,n).map((function(e){return"".concat(r).concat(e)}))}},{key:"getSuffixes",value:function e(t){var r=this;var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var a=this.getRule(t,n);if(!a){return[]}if(this.shouldUseIntlApi()){return a.resolvedOptions().pluralCategories.sort((function(e,t){return ue[e]-ue[t]})).map((function(e){return"".concat(r.options.prepend).concat(e)}))}return a.numbers.map((function(e){return r.getSuffix(t,e,n)}))}},{key:"getSuffix",value:function e(t,r){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var a=this.getRule(t,n);if(a){if(this.shouldUseIntlApi()){return"".concat(this.options.prepend).concat(a.select(r))}return this.getSuffixRetroCompatible(a,r)}this.logger.warn("no plural rule found for: ".concat(t));return""}},{key:"getSuffixRetroCompatible",value:function e(t,r){var n=this;var a=t.noAbs?t.plurals(r):t.plurals(Math.abs(r));var i=t.numbers[a];if(this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1){if(i===2){i="plural"}else if(i===1){i=""}}var o=function e(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};if(this.options.compatibilityJSON==="v1"){if(i===1)return"";if(typeof i==="number")return"_plural_".concat(i.toString());return o()}else if(this.options.compatibilityJSON==="v2"){return o()}else if(this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1){return o()}return this.options.prepend&&a.toString()?this.options.prepend+a.toString():a.toString()}},{key:"shouldUseIntlApi",value:function e(){return!de.includes(this.options.compatibilityJSON)}}]);return e}();var he=function(){function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};z(this,e);this.logger=L.create("interpolator");this.options=t;this.format=t.interpolation&&t.interpolation.format||function(e){return e};this.init(t)}w(e,[{key:"init",value:function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};if(!t.interpolation)t.interpolation={escapeValue:true};var r=t.interpolation;this.escape=r.escape!==undefined?r.escape:$;this.escapeValue=r.escapeValue!==undefined?r.escapeValue:true;this.useRawValueToEscape=r.useRawValueToEscape!==undefined?r.useRawValueToEscape:false;this.prefix=r.prefix?Y(r.prefix):r.prefixEscaped||"{{";this.suffix=r.suffix?Y(r.suffix):r.suffixEscaped||"}}";this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",";this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-";this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"";this.nestingPrefix=r.nestingPrefix?Y(r.nestingPrefix):r.nestingPrefixEscaped||Y("$t(");this.nestingSuffix=r.nestingSuffix?Y(r.nestingSuffix):r.nestingSuffixEscaped||Y(")");this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",";this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3;this.alwaysFormat=r.alwaysFormat!==undefined?r.alwaysFormat:false;this.resetRegExp()}},{key:"reset",value:function e(){if(this.options)this.init(this.options)}},{key:"resetRegExp",value:function e(){var t="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(t,"g");var r="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(r,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function e(t,r,n,a){var i=this;var o;var s;var l;var c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function p(e){return e.replace(/\$/g,"$$$$")}var d=function e(t){if(t.indexOf(i.formatSeparator)<0){var o=X(r,c,t);return i.alwaysFormat?i.format(o,undefined,n,N({},a,r,{interpolationkey:t})):o}var s=t.split(i.formatSeparator);var l=s.shift().trim();var p=s.join(i.formatSeparator).trim();return i.format(X(r,c,l),p,n,N({},a,r,{interpolationkey:l}))};this.resetRegExp();var u=a&&a.missingInterpolationHandler||this.options.missingInterpolationHandler;var m=a&&a.interpolation&&a.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;var f=[{regex:this.regexpUnescape,safeValue:function e(t){return p(t)}},{regex:this.regexp,safeValue:function e(t){return i.escapeValue?p(i.escape(t)):p(t)}}];f.forEach((function(e){l=0;while(o=e.regex.exec(t)){s=d(o[1].trim());if(s===undefined){if(typeof u==="function"){var r=u(t,o,a);s=typeof r==="string"?r:""}else if(m){s=o[0];continue}else{i.logger.warn("missed to pass in variable ".concat(o[1]," for interpolating ").concat(t));s=""}}else if(typeof s!=="string"&&!i.useRawValueToEscape){s=U(s)}var n=e.safeValue(s);t=t.replace(o[0],n);if(m){e.regex.lastIndex+=n.length;e.regex.lastIndex-=o[0].length}else{e.regex.lastIndex=0}l++;if(l>=i.maxReplaces){break}}}));return t}},{key:"nest",value:function e(t,r){var n=this;var a=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var i;var o;var s=N({},a);s.applyPostProcessor=false;delete s.defaultValue;function l(e,t){var r=this.nestingOptionsSeparator;if(e.indexOf(r)<0)return e;var n=e.split(new RegExp("".concat(r,"[ ]*{")));var a="{".concat(n[1]);e=n[0];a=this.interpolate(a,s);a=a.replace(/'/g,'"');try{s=JSON.parse(a);if(t)s=N({},t,s)}catch(t){this.logger.warn("failed parsing options string in nesting for key ".concat(e),t);return"".concat(e).concat(r).concat(a)}delete s.defaultValue;return e}while(i=this.nestingRegexp.exec(t)){var c=[];var p=false;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){var d=i[1].split(this.formatSeparator).map((function(e){return e.trim()}));i[1]=d.shift();c=d;p=true}o=r(l.call(this,i[1].trim(),s),s);if(o&&i[0]===t&&typeof o!=="string")return o;if(typeof o!=="string")o=U(o);if(!o){this.logger.warn("missed to resolve ".concat(i[1]," for nesting ").concat(t));o=""}if(p){o=c.reduce((function(e,t){return n.format(e,t,a.lng,N({},a,{interpolationkey:i[1].trim()}))}),o.trim())}t=t.replace(i[0],o);this.regexp.lastIndex=0}return t}}]);return e}();function ge(e,t){var r=e.indexOf(t);while(r!==-1){e.splice(r,1);r=e.indexOf(t)}}var ye=function(e){A(t,e);function t(e,r,n){var a;var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};z(this,t);a=B(this,q(t).call(this));if(Z){D.call(T(a))}a.backend=e;a.store=r;a.services=n;a.languageUtils=n.languageUtils;a.options=i;a.logger=L.create("backendConnector");a.state={};a.queue=[];if(a.backend&&a.backend.init){a.backend.init(n,i.backend,i)}return a}w(t,[{key:"queueLoad",value:function e(t,r,n,a){var i=this;var o=[];var s=[];var l=[];var c=[];t.forEach((function(e){var t=true;r.forEach((function(r){var a="".concat(e,"|").concat(r);if(!n.reload&&i.store.hasResourceBundle(e,r)){i.state[a]=2}else if(i.state[a]<0);else if(i.state[a]===1){if(s.indexOf(a)<0)s.push(a)}else{i.state[a]=1;t=false;if(s.indexOf(a)<0)s.push(a);if(o.indexOf(a)<0)o.push(a);if(c.indexOf(r)<0)c.push(r)}}));if(!t)l.push(e)}));if(o.length||s.length){this.queue.push({pending:s,loaded:{},errors:[],callback:a})}return{toLoad:o,pending:s,toLoadLanguages:l,toLoadNamespaces:c}}},{key:"loaded",value:function e(t,r,n){var a=t.split("|");var i=a[0];var o=a[1];if(r)this.emit("failedLoading",i,o,r);if(n){this.store.addResourceBundle(i,o,n)}this.state[t]=r?-1:2;var e={};this.queue.forEach((function(n){G(n.loaded,[i],o);ge(n.pending,t);if(r)n.errors.push(r);if(n.pending.length===0&&!n.done){Object.keys(n.loaded).forEach((function(t){if(!e[t])e[t]=[];if(n.loaded[t].length){n.loaded[t].forEach((function(r){if(e[t].indexOf(r)<0)e[t].push(r)}))}}));n.done=true;if(n.errors.length){n.callback(n.errors)}else{n.callback()}}}));this.emit("loaded",e);this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function e(t,r,n){var a=this;var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:0;var o=arguments.length>4&&arguments[4]!==undefined?arguments[4]:350;var s=arguments.length>5?arguments[5]:undefined;if(!t.length)return s(null,{});return this.backend[n](t,r,(function(e,l){if(e&&l&&i<5){setTimeout((function(){a.read.call(a,t,r,n,i+1,o*2,s)}),o);return}s(e,l)}))}},{key:"prepareLoading",value:function e(t,r){var n=this;var a=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var i=arguments.length>3?arguments[3]:undefined;if(!this.backend){this.logger.warn("No backend was added via i18next.use. Will not load resources.");return i&&i()}if(typeof t==="string")t=this.languageUtils.toResolveHierarchy(t);if(typeof r==="string")r=[r];var o=this.queueLoad(t,r,a,i);if(!o.toLoad.length){if(!o.pending.length)i();return null}o.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function e(t,r,n){this.prepareLoading(t,r,{},n)}},{key:"reload",value:function e(t,r,n){this.prepareLoading(t,r,{reload:true},n)}},{key:"loadOne",value:function e(t){var r=this;var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"";var a=t.split("|");var i=a[0];var o=a[1];this.read(i,o,"read",undefined,undefined,(function(e,a){if(e)r.logger.warn("".concat(n,"loading namespace ").concat(o," for language ").concat(i," failed"),e);if(!e&&a)r.logger.log("".concat(n,"loaded namespace ").concat(o," for language ").concat(i),a);r.loaded(t,e,a)}))}},{key:"saveMissing",value:function e(t,r,n,a,i){var o=arguments.length>5&&arguments[5]!==undefined?arguments[5]:{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)){this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(r,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(n===undefined||n===null||n==="")return;if(this.backend&&this.backend.create){this.backend.create(t,r,n,a,null,N({},o,{isUpdate:i}))}if(!t||!t[0])return;this.store.addResource(t[0],r,n,a)}}]);return t}(D);function ve(){return{debug:false,initImmediate:true,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:false,supportedLngs:false,nonExplicitSupportedLngs:false,load:"all",preload:false,simplifyPluralSuffix:true,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:false,saveMissing:false,updateMissing:false,saveMissingTo:"fallback",saveMissingPlurals:true,missingKeyHandler:false,missingInterpolationHandler:false,postProcess:false,postProcessPassResolved:false,returnNull:true,returnEmptyString:true,returnObjects:false,joinArrays:false,returnedObjectHandler:false,parseMissingKeyHandler:false,appendNamespaceToMissingKey:false,appendNamespaceToCIMode:false,overloadTranslationOptionHandler:function e(t){var r={};if(b(t[1])==="object")r=t[1];if(typeof t[1]==="string")r.defaultValue=t[1];if(typeof t[2]==="string")r.tDescription=t[2];if(b(t[2])==="object"||b(t[3])==="object"){var n=t[3]||t[2];Object.keys(n).forEach((function(e){r[e]=n[e]}))}return r},interpolation:{escapeValue:true,format:function e(t,r,n,a){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:true}}}function be(e){if(typeof e.ns==="string")e.ns=[e.ns];if(typeof e.fallbackLng==="string")e.fallbackLng=[e.fallbackLng];if(typeof e.fallbackNS==="string")e.fallbackNS=[e.fallbackNS];if(e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0){e.supportedLngs=e.supportedLngs.concat(["cimode"])}return e}function xe(){}var Ne=function(e){A(t,e);function t(){var e;var r=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var n=arguments.length>1?arguments[1]:undefined;z(this,t);e=B(this,q(t).call(this));if(Z){D.call(T(e))}e.options=be(r);e.services={};e.logger=L;e.modules={external:[]};if(n&&!e.isInitialized&&!r.isClone){if(!e.options.initImmediate){e.init(r,n);return B(e,T(e))}setTimeout((function(){e.init(r,n)}),0)}return e}w(t,[{key:"init",value:function e(){var t=this;var r=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var n=arguments.length>1?arguments[1]:undefined;if(typeof r==="function"){n=r;r={}}if(!r.defaultNS&&r.ns){if(typeof r.ns==="string"){r.defaultNS=r.ns}else if(r.ns.indexOf("translation")<0){r.defaultNS=r.ns[0]}}this.options=N({},ve(),this.options,be(r));if(r.keySeparator!==undefined){this.options.userDefinedKeySeparator=r.keySeparator}this.format=this.options.interpolation.format;if(!n)n=xe;function a(e){if(!e)return null;if(typeof e==="function")return new e;return e}if(!this.options.isClone){if(this.modules.logger){L.init(a(this.modules.logger),this.options)}else{L.init(null,this.options)}var i=new le(this.options);this.store=new ne(this.options.resources,this.options);var o=this.services;o.logger=L;o.resourceStore=this.store;o.languageUtils=i;o.pluralResolver=new fe(i,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix});o.interpolator=new he(this.options);o.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)};o.backendConnector=new ye(a(this.modules.backend),o.resourceStore,o,this.options);o.backendConnector.on("*",(function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++){n[a-1]=arguments[a]}t.emit.apply(t,[e].concat(n))}));if(this.modules.languageDetector){o.languageDetector=a(this.modules.languageDetector);o.languageDetector.init(o,this.options.detection,this.options)}if(this.modules.i18nFormat){o.i18nFormat=a(this.modules.i18nFormat);if(o.i18nFormat.init)o.i18nFormat.init(this)}this.translator=new oe(this.services,this.options);this.translator.on("*",(function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++){n[a-1]=arguments[a]}t.emit.apply(t,[e].concat(n))}));this.modules.external.forEach((function(e){if(e.init)e.init(t)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);if(s.length>0&&s[0]!=="dev")this.options.lng=s[0]}if(!this.services.languageDetector&&!this.options.lng){this.logger.warn("init: no languageDetector is used and no lng is defined")}var l=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];l.forEach((function(e){t[e]=function(){var r;return(r=t.store)[e].apply(r,arguments)}}));var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach((function(e){t[e]=function(){var r;(r=t.store)[e].apply(r,arguments);return t}}));var p=j();var d=function e(){var r=function e(r,a){if(t.isInitialized&&!t.initializedStoreOnce)t.logger.warn("init: i18next is already initialized. You should call init just once!");t.isInitialized=true;if(!t.options.isClone)t.logger.log("initialized",t.options);t.emit("initialized",t.options);p.resolve(a);n(r,a)};if(t.languages&&t.options.compatibilityAPI!=="v1"&&!t.isInitialized)return r(null,t.t.bind(t));t.changeLanguage(t.options.lng,r)};if(this.options.resources||!this.options.initImmediate){d()}else{setTimeout(d,0)}return p}},{key:"loadResources",value:function e(t){var r=this;var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:xe;var a=n;var i=typeof t==="string"?t:this.language;if(typeof t==="function")a=t;if(!this.options.resources||this.options.partialBundledLanguages){if(i&&i.toLowerCase()==="cimode")return a();var o=[];var s=function e(t){if(!t)return;var n=r.services.languageUtils.toResolveHierarchy(t);n.forEach((function(e){if(o.indexOf(e)<0)o.push(e)}))};if(!i){var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.forEach((function(e){return s(e)}))}else{s(i)}if(this.options.preload){this.options.preload.forEach((function(e){return s(e)}))}this.services.backendConnector.load(o,this.options.ns,a)}else{a(null)}}},{key:"reloadResources",value:function e(t,r,n){var a=j();if(!t)t=this.languages;if(!r)r=this.options.ns;if(!n)n=xe;this.services.backendConnector.reload(t,r,(function(e){a.resolve();n(e)}));return a}},{key:"use",value:function e(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");if(t.type==="backend"){this.modules.backend=t}if(t.type==="logger"||t.log&&t.warn&&t.error){this.modules.logger=t}if(t.type==="languageDetector"){this.modules.languageDetector=t}if(t.type==="i18nFormat"){this.modules.i18nFormat=t}if(t.type==="postProcessor"){ae.addPostProcessor(t)}if(t.type==="3rdParty"){this.modules.external.push(t)}return this}},{key:"changeLanguage",value:function e(t,r){var n=this;this.isLanguageChangingTo=t;var a=j();this.emit("languageChanging",t);var i=function e(t){n.language=t;n.languages=n.services.languageUtils.toResolveHierarchy(t);n.resolvedLanguage=undefined;if(["cimode","dev"].indexOf(t)>-1)return;for(var r=0;r<n.languages.length;r++){var a=n.languages[r];if(["cimode","dev"].indexOf(a)>-1)continue;if(n.store.hasLanguageSomeTranslations(a)){n.resolvedLanguage=a;break}}};var o=function e(t,o){if(o){i(o);n.translator.changeLanguage(o);n.isLanguageChangingTo=undefined;n.emit("languageChanged",o);n.logger.log("languageChanged",o)}else{n.isLanguageChangingTo=undefined}a.resolve((function(){return n.t.apply(n,arguments)}));if(r)r(t,(function(){return n.t.apply(n,arguments)}))};var s=function e(r){if(!t&&!r&&n.services.languageDetector)r=[];var a=typeof r==="string"?r:n.services.languageUtils.getBestMatchFromCodes(r);if(a){if(!n.language){i(a)}if(!n.translator.language)n.translator.changeLanguage(a);if(n.services.languageDetector)n.services.languageDetector.cacheUserLanguage(a)}n.loadResources(a,(function(e){o(e,a)}))};if(!t&&this.services.languageDetector&&!this.services.languageDetector.async){s(this.services.languageDetector.detect())}else if(!t&&this.services.languageDetector&&this.services.languageDetector.async){this.services.languageDetector.detect(s)}else{s(t)}return a}},{key:"getFixedT",value:function e(t,r,n){var a=this;var i=function e(t,r){var i;if(b(r)!=="object"){for(var o=arguments.length,s=new Array(o>2?o-2:0),l=2;l<o;l++){s[l-2]=arguments[l]}i=a.options.overloadTranslationOptionHandler([t,r].concat(s))}else{i=N({},r)}i.lng=i.lng||e.lng;i.lngs=i.lngs||e.lngs;i.ns=i.ns||e.ns;var c=a.options.keySeparator||".";var p=n?"".concat(n).concat(c).concat(t):t;return a.t(p,i)};if(typeof t==="string"){i.lng=t}else{i.lngs=t}i.ns=r;i.keyPrefix=n;return i}},{key:"t",value:function e(){var t;return this.translator&&(t=this.translator).translate.apply(t,arguments)}},{key:"exists",value:function e(){var t;return this.translator&&(t=this.translator).exists.apply(t,arguments)}},{key:"setDefaultNamespace",value:function e(t){this.options.defaultNS=t}},{key:"hasLoadedNamespace",value:function e(t){var r=this;var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};if(!this.isInitialized){this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages);return false}if(!this.languages||!this.languages.length){this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages);return false}var a=this.resolvedLanguage||this.languages[0];var i=this.options?this.options.fallbackLng:false;var o=this.languages[this.languages.length-1];if(a.toLowerCase()==="cimode")return true;var s=function e(t,n){var a=r.services.backendConnector.state["".concat(t,"|").concat(n)];return a===-1||a===2};if(n.precheck){var l=n.precheck(this,s);if(l!==undefined)return l}if(this.hasResourceBundle(a,t))return true;if(!this.services.backendConnector.backend)return true;if(s(a,t)&&(!i||s(o,t)))return true;return false}},{key:"loadNamespaces",value:function e(t,r){var n=this;var a=j();if(!this.options.ns){r&&r();return Promise.resolve()}if(typeof t==="string")t=[t];t.forEach((function(e){if(n.options.ns.indexOf(e)<0)n.options.ns.push(e)}));this.loadResources((function(e){a.resolve();if(r)r(e)}));return a}},{key:"loadLanguages",value:function e(t,r){var n=j();if(typeof t==="string")t=[t];var a=this.options.preload||[];var i=t.filter((function(e){return a.indexOf(e)<0}));if(!i.length){if(r)r();return Promise.resolve()}this.options.preload=a.concat(i);this.loadResources((function(e){n.resolve();if(r)r(e)}));return n}},{key:"dir",value:function e(t){if(!t)t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language);if(!t)return"rtl";var r=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"];return r.indexOf(this.services.languageUtils.getLanguagePartFromCode(t))>=0?"rtl":"ltr"}},{key:"createInstance",value:function e(){var r=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var n=arguments.length>1?arguments[1]:undefined;return new t(r,n)}},{key:"cloneInstance",value:function e(){var r=this;var n=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var a=arguments.length>1&&arguments[1]!==undefined?arguments[1]:xe;var i=N({},this.options,n,{isClone:true});var o=new t(i);var s=["store","services","language"];s.forEach((function(e){o[e]=r[e]}));o.services=N({},this.services);o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)};o.translator=new oe(o.services,o.options);o.translator.on("*",(function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++){r[n-1]=arguments[n]}o.emit.apply(o,[e].concat(r))}));o.init(i,a);o.translator.options=o.options;o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)};return o}},{key:"toJSON",value:function e(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]);return t}(D);var ze=new Ne;var Se={heading:"Drucke mit ezeep Blue",description:"Melde dich mit deinem ezeep Blue-Konto an, um zu drucken.",action:"Anmelden"};var we={heading:"Keine Datei ausgewählt",description:"Wähle zunächst eine Datei zum Drucken aus.",action:"OK"};var Pe={loading:"Lade meine Drucker…",print:"Drucken",printer:"Drucker",print_processing:"Drucken…",print_success:"Erfolgreich gedruckt.",print_failed:"Druck fehlgeschlagen",not_supported:"Der ausgewählte Dateityp wird nicht unterstützt.",color:"Farbe",orientation:"Ausrichtung",size:"Papierformat",duplex:"Beidseitig",quality:"Druckqualität",select_printer:"Wähle einen Drucker",select_color:"Wähle Farbe/Graustufen",select_size:"Wähle Papierformat",select_orientation:"Wähle Ausrichtung",select_quality:"Wähle Druckqualität",select_duplex:"Wähle Beidseitig",color_color:"Farbe",color_grayscale:"Graustufen",orientation_portrait:"Hochformat",orientation_landscape:"Querformat",unknown_location:"Unbekannter Standort",no_printers:"Keine Drucker gefunden.",prepare_upload:"Vorbereiten…",uploading:"Hochladen…",duplex_none:"Keine",copies:"Kopien",duplex_long:"auf der langen Seite umdrehen",duplex_short:"auf der kurzen Seite umdrehen",pull_print_success:"Bereit zum Auslösen."};var Ce={login:"Anmelden",print:"Drucken",cancel:"Abbrechen",close:"Schließen",retry:"Wiederholen",select_printer:"Wähle Drucker"};var Re={description:"Ziehe eine Datei hier in den Browser ",meta_leading:"oder",meta_select:"wähle eine Datei aus",meta_trailing:"um mit ezeep Blue zu drucken.",selected_file:"Ausgewählte Datei:"};var _e={theme:"Farbschema",appearance:"Darstellung",system:"System",light:"Hell",dark:"Dunkel",account:"Konto verwalten",help:"Hilfe & Unterstützung",logout:"Ausloggen"};var Ee={login_dialog:Se,no_document_dialog:we,printer_selection:Pe,button_actions:Ce,upload:Re,user_menu:_e};var ke={heading:"Print with ezeep Blue",description:"Sign in with your ezeep Blue account to print.",action:"Sign in"};var Oe={heading:"No file selected",description:"Select a file first to print.",action:"OK"};var Te={loading:"Loading My Printers…",print_processing:"Printing…",print_success:"Successfully printed.",pull_print_success:"Ready to be released.",print_failed:"Print failed",not_supported:"The selected file type is not supported.",prepare_upload:"Preparing…",uploading:"Uploading…",print:"Print",printer:"Printer",color:"Color",orientation:"Orientation",size:"Paper Size",duplex:"Double-sided",duplex_none:"None",duplex_long:"flip on long side",duplex_short:"flip on short side",quality:"Print Quality",select_printer:"Select a printer",select_color:"Select Color/Grayscale",select_orientation:"Select Orientation",select_size:"Select Paper Size",select_quality:"Select Print Quality",select_duplex:"Select Double-sided",color_color:"Color",color_grayscale:"Grayscale",orientation_portrait:"Portrait",orientation_landscape:"Landscape",unknown_location:"Unknown location",no_printers:"No printers found.",copies:"Copies"};var Be={login:"Sign In",print:"Print",cancel:"Cancel",close:"Close",retry:"Retry",select_printer:"Select Printer"};var qe={description:"Drop a file here into the browser ",meta_leading:"or",meta_select:"select a file",meta_trailing:"to print with ezeep Blue.",selected_file:"Selected File:"};var Me={theme:"Color theme",appearance:"Appearance",system:"System",light:"Light",dark:"Dark",account:"Manage Account",help:"Help & Support",logout:"Logout"};var Ae={login_dialog:ke,no_document_dialog:Oe,printer_selection:Te,button_actions:Be,upload:qe,user_menu:Me};function Ie(e){return Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")}function He(e){var t={en:{translation:Ae},de:{translation:Ee}};if(e!=""){ze.init({resources:t,lng:e,nsSeparator:false,fallbackLng:"en"})}else{ze.init({resources:t,lng:navigator.language,nsSeparator:false,fallbackLng:"en"})}}var Le=function(e){var t=e.fn,r=e.validate,n=e.interval,a=e.maxAttempts;return __awaiter(p,void 0,void 0,(function(){var e,i;var o=this;return __generator(this,(function(s){e=0;i=function(s,l){return __awaiter(o,void 0,void 0,(function(){var o;return __generator(this,(function(c){switch(c.label){case 0:return[4,t()];case 1:o=c.sent();e++;if(r(o)){return[2,s(o)]}else if(a&&e===a){return[2,l(new Error("Exceeded max attempts."))]}else{setTimeout(i,n,s,l)}return[2]}}))}))};return[2,new Promise(i)]}))}))};var De=function(e){var t={};Object.keys(e).forEach((function(r){if(e[r]!==""){t[r]=e[r]}}));return t};var je=function(){function e(e,t){this.urlParams=new URLSearchParams;this.isAuthorized=false;this.redirectURI=e;this.clientID=t;this.oauthUrl=Ue.state.authApiHostUrl;this.authURI=new URL("https://".concat(this.oauthUrl,"/oauth/authorize/"));this.accessTokenURL="https://".concat(this.oauthUrl,"/oauth/access_token/")}e.prototype.generateCodeVerifier=function(){if(Ue.state.codeVerifier!==""){this.codeVerifier=Ue.state.codeVerifier}else{var e=new Uint8Array(128);var t=crypto.getRandomValues(e);var r=btoa(t.toString()).substr(0,128);this.codeVerifier=r;Ue.state.codeVerifier=this.codeVerifier}};e.prototype.generateCodeChallenge=function(e){return __awaiter(this,void 0,void 0,(function(){var t,r,n,a;return __generator(this,(function(i){switch(i.label){case 0:t=new TextEncoder;r=t.encode(e);return[4,crypto.subtle.digest("SHA-256",r)];case 1:n=i.sent();a=btoa(String.fromCharCode.apply(null,new Uint8Array(n)));this.codeChallenge=a.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"");return[2]}}))}))};e.prototype.buildAuthURI=function(){this.urlParams.append("response_type","code");this.urlParams.append("client_id",this.clientID);this.urlParams.append("redirect_uri",this.redirectURI);this.urlParams.append("code_challenge",this.codeChallenge);this.urlParams.append("code_challenge_method","S256");this.authURI.search=this.urlParams.toString();Ue.state.authUri=this.authURI.toString()};e.prototype.getAccessToken=function(){var e=this;return fetch(this.accessTokenURL,{credentials:"include",headers:{Authorization:"Basic "+btoa(this.clientID+":"),"Content-Type":"application/x-www-form-urlencoded"},method:"POST",body:Ie({grant_type:"authorization_code",scope:"printing",code:Ue.state.code,redirect_uri:this.redirectURI,code_verifier:Ue.state.codeVerifier})}).then((function(e){return e.json()})).then((function(t){if(t.access_token){Ue.state.isAuthorized=true;e.isAuthorized=Ue.state.isAuthorized;localStorage.setItem("isAuthorized",e.isAuthorized.toString());e.accessToken=t.access_token;localStorage.setItem("access_token",e.accessToken);Ue.state.accessToken=e.accessToken;e.refreshToken=t.refresh_token;localStorage.setItem("refreshToken",e.refreshToken);Ue.state.refreshToken=e.refreshToken}}))};e.prototype.refreshTokens=function(){var e=this;fetch(this.accessTokenURL,{credentials:"include",headers:{Authorization:"Basic "+btoa(this.clientID+":"),"Content-Type":"application/x-www-form-urlencoded"},method:"POST",body:Ie({grant_type:"refresh_token",scope:"printing",refresh_token:Ue.state.refreshToken})}).then((function(e){return e.json()})).then((function(t){if(t.access_token){e.accessToken=t.access_token;localStorage.setItem("access_token",e.accessToken);Ue.state.accessToken=e.accessToken;e.refreshToken=t.refresh_token;localStorage.setItem("refreshToken",e.refreshToken);Ue.state.refreshToken=e.refreshToken;Ue.state.isAuthorized=true}}))};e.prototype.revokeRefreshToken=function(){fetch("https://".concat(this.oauthUrl,"/oauth/revoke/"),{credentials:"include",headers:{Authorization:"Basic "+btoa(this.clientID+":"),"Content-Type":"application/x-www-form-urlencoded"},method:"POST",body:Ie({token:Ue.state.accessToken})}).then((function(e){console.log(e)})).catch((function(e){console.log(e)}))};return e}();var Ue=v({code:"",codeVerifier:"",accessToken:"",refreshToken:"",isAuthorized:false,devApi:false,authApiHostUrl:"",redirectUri:"",authUri:""});function Fe(){var e=new URLSearchParams(window.location.search);var t=e.get("code");if(window.opener){if(t){window.opener.postMessage(t,Ue.state.redirectUri);window.close()}}}var Ve=":host{--ezp-theme-solid:var(--ezp-accent-cyan-solid);--ezp-theme-translucent:var(--ezp-accent-cyan-translucent);display:block}";var Ke=e("ezp_auth",function(){function e(e){n(this,e);this.authCancel=a(this,"authCancel",7);this.authSuccess=a(this,"authSuccess",7);this.oauthPopupWindow=null;this.previousUrl=null}e.prototype.listenDialogAction=function(){this.openSignInWindow(this.auth.authURI.toString(),"ezeep Login")};e.prototype.listenDialogClose=function(){this.authCancel.emit()};e.prototype.listenStatusCancel=function(){this.authCancel.emit()};e.prototype.openSignInWindow=function(e,t){var r=this;if(Ue.state.isAuthorized){this.authCancel.emit();this.authSuccess.emit();return}window.removeEventListener("message",this.receiveMessage);var n="toolbar=no, menubar=no, width=600, height=7000, top=100, left=100";if(this.oauthPopupWindow===null||this.oauthPopupWindow.closed){this.oauthPopupWindow=window.open(e,t,n)}else if(this.previousUrl!==this.auth.authURI.toString()){this.oauthPopupWindow=window.open(e,t,n);if(!this.oauthPopupWindow||this.oauthPopupWindow.closed||typeof this.oauthPopupWindow.closed=="undefined"){alert("popup blocked")}this.oauthPopupWindow.focus()}else{this.oauthPopupWindow.focus()}window.addEventListener("message",(function(e){return r.receiveMessage(e)}),false);this.previousUrl=this.auth.authURI};e.prototype.receiveMessage=function(e){var t=this;Ue.state.code=e.data;this.auth.getAccessToken().then((function(){t.authCancel.emit();t.authSuccess.emit()}))};e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:this.auth=new je(this.redirectURI,this.clientID);if(!this.code)return[3,2];Ue.state.code=this.code;return[4,this.auth.getAccessToken()];case 1:e.sent();this.authCancel.emit();this.authSuccess.emit();e.label=2;case 2:if(!(Ue.state.isAuthorized===false))return[3,4];this.auth.generateCodeVerifier();return[4,this.auth.generateCodeChallenge(Ue.state.codeVerifier)];case 3:e.sent();this.auth.buildAuthURI();e.label=4;case 4:if(this.hidelogin&&this.trigger==="button"){this.openSignInWindow(this.auth.authURI.toString(),"ezeep Login")}return[2]}}))}))};e.prototype.render=function(){var e=this;return i(o,null,this.hidelogin&&this.trigger==="button"?i("ezp-status",{description:ze.t("login_dialog.action"),processing:true,cancel:true}):this.hidelogin&&this.trigger==="file"?i("ezp-text-button",{type:"button",level:"primary",onClick:function(){return e.openSignInWindow(e.auth.authURI.toString(),"ezeep Login")},label:ze.t("button_actions.select_printer")}):i("ezp-dialog",{heading:ze.t("login_dialog.heading"),description:ze.t("login_dialog.description"),action:ze.t("login_dialog.action"),iconName:"logo",iconSize:"huge",iconFramed:false,instance:"login"}))};return e}());Ke.style=Ve;var Ge=":host{-webkit-animation:var(--ezp-backdrop-animation-name, host-in) var(--ezp-duration-3) forwards var(--ezp-easing-out-quart);animation:var(--ezp-backdrop-animation-name, host-in) var(--ezp-duration-3) forwards var(--ezp-easing-out-quart);background:var(--ezp-core-backdrop);border-radius:var(--ezp-backdrop-border-radius, 6px);display:block;height:100%;left:0;opacity:0;position:absolute;top:0;width:100%;z-index:4}:host(.hide){--ezp-backdrop-animation-name:host-out}@-webkit-keyframes host-in{0%{opacity:0}100%{opacity:1}}@keyframes host-in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes host-out{0%{opacity:1}100%{opacity:0}}@keyframes host-out{0%{opacity:1}100%{opacity:0}}";var We=e("ezp_backdrop",function(){function e(e){n(this,e);this.backdropHideStart=a(this,"backdropHideStart",7);this.backdropHideEnd=a(this,"backdropHideEnd",7);this.visible=true}e.prototype.handleClick=function(){this.visible=false;this.backdropHideStart.emit()};e.prototype.listenAnimationEnd=function(){if(!this.visible){this.backdropHideEnd.emit()}};e.prototype.render=function(){var e=this;return i(o,{class:{hide:!this.visible},onClick:function(){return e.handleClick()}})};Object.defineProperty(e.prototype,"component",{get:function(){return s(this)},enumerable:false,configurable:true});return e}());We.style=Ge;var Xe=":host{--ezp-icon-fill:var(--ezp-theme-solid);-ms-flex-line-pack:center;align-content:center;background:var(--ezp-core-backdrop);display:grid;grid-template:auto/minmax(auto, 280px);height:100%;-ms-flex-pack:center;justify-content:center;left:0;position:fixed;top:0;width:100%}#box{background:var(--ezp-core-surface-tertiary);border-radius:6px;-webkit-box-shadow:var(--ezp-dialog-box-boxShadow, 0 0 0 1px var(--ezp-black-10));box-shadow:var(--ezp-dialog-box-boxShadow, 0 0 0 1px var(--ezp-black-10))}#header{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end;padding:var(--ezp-spacing-2) var(--ezp-spacing-3)}#body{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:var(--ezp-spacing-5);padding:0 var(--ezp-spacing-5);text-align:center}#text{color:var(--ezp-core-foreground-primary);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:var(--ezp-spacing-4)}#footer{display:grid;grid-template:auto/minmax(144px, auto);-ms-flex-pack:center;justify-content:center;padding:var(--ezp-spacing-5)}";var Qe=e("ezp_dialog",function(){function e(e){var t=this;n(this,e);this.dialogClose=a(this,"dialogClose",7);this.dialogAction=a(this,"dialogAction",7);this.action=ze.t("button_actions.close");this.iconSize="large";this.iconFramed=true;this.handleClose=function(){t.dialogClose.emit(t.instance)};this.handleAction=function(){t.dialogAction.emit(t.instance)}}e.prototype.componentWillLoad=function(){};e.prototype.render=function(){return i(o,null,i("div",{id:"box"},i("div",{id:"header"},i("ezp-icon-button",{level:"tertiary",icon:"close",type:"button",onClick:this.handleClose})),i("div",{id:"body"},this.iconName&&i("ezp-icon",{name:this.iconName,size:this.iconSize,framed:this.iconFramed}),i("div",{id:"text"},i("ezp-label",{text:this.heading,weight:"heavy"}),i("ezp-label",{text:this.description}))),i("div",{id:"footer"},i("ezp-text-button",{type:"button",level:"primary",onClick:this.handleAction,label:this.action}))))};return e}());Qe.style=Xe;var Ye=":host{-ms-flex-line-pack:center;align-content:center;background:var(--ezp-icon-background, transparent);border-radius:var(--ezp-icon-borderRadius, 0);display:grid;grid-template:var(--ezp-icon-gridTemplate)/var(--ezp-icon-gridTemplate);height:var(--ezp-icon-height, var(--ezp-icon-size));-ms-flex-pack:center;justify-content:center;padding:var(--ezp-icon-padding, 0);width:var(--ezp-icon-width, var(--ezp-icon-size))}:host(.framed){--ezp-icon-background:var(--ezp-core-shade-primary);--ezp-icon-borderRadius:50%;--ezp-icon-padding:var(--ezp-icon-frame)}:host(.normal){--ezp-icon-size:18px;--ezp-icon-gridTemplate:24px;--ezp-icon-frame:var(--ezp-spacing-3)}:host(.large){--ezp-icon-size:36px;--ezp-icon-gridTemplate:48px;--ezp-icon-frame:var(--ezp-spacing-4)}:host(.huge){--ezp-icon-size:54px;--ezp-icon-gridTemplate:72px;--ezp-icon-frame:var(--ezp-spacing-5)}svg{display:block;fill:var(--ezp-icon-fill, currentColor);height:100%;width:100%}";var Je=e("ezp_icon",function(){function e(e){n(this,e);this.size="normal";this.framed=false}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(t){switch(t.label){case 0:return[4,fetch(l("./assets/glyph-".concat(this.name,".svg"))).then((function(e){return e.text()})).then((function(t){e.glyph=t})).catch((function(e){return console.log(e)}))];case 1:t.sent();return[2]}}))}))};e.prototype.render=function(){return i(o,{class:"".concat(this.size," ").concat(this.framed?"framed":"")},i("div",{id:"glyph",innerHTML:this.glyph}))};Object.defineProperty(e,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return e}());Je.style=Ye;var $e=":host{display:block}:host(.primary){--ezp-iconButton-background-disabled:var(--ezp-core-shade-primary);--ezp-iconButton-background-init:var(--ezp-theme-solid);--ezp-iconButton-color-disabled:var(--ezp-core-foreground-tertiary);--ezp-iconButton-color-init:var(--ezp-white-100);--ezp-iconButton-opacity-active:0.74;--ezp-iconButton-opacity-hover:0.84}:host(.secondary){--ezp-iconButton-background-active:var(--ezp-core-shade-tertiary);--ezp-iconButton-background-disabled:var(--ezp-core-shade-primary);--ezp-iconButton-background-hover:var(--ezp-core-shade-secondary);--ezp-iconButton-background-init:var(--ezp-core-shade-primary);--ezp-iconButton-color-disabled:var(--ezp-core-foreground-tertiary);--ezp-iconButton-color-init:var(--ezp-theme-solid)}:host(.tertiary){--ezp-iconButton-background-active:var(--ezp-core-shade-secondary);--ezp-iconButton-background-hover:var(--ezp-core-shade-primary);--ezp-iconButton-background-init:transparent;--ezp-iconButton-color-disabled:var(--ezp-core-foreground-tertiary);--ezp-iconButton-color-init:var(--ezp-theme-solid)}:host(.quaternary){--ezp-iconButton-background-init:transparent;--ezp-iconButton-color-disabled:var(--ezp-core-foreground-tertiary);--ezp-iconButton-color-init:var(--ezp-theme-solid);--ezp-iconButton-opacity-active:0.58;--ezp-iconButton-opacity-hover:0.74}#button{-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--ezp-iconButton-background, var(--ezp-iconButton-background-init));border:0;border-radius:3px;-webkit-box-shadow:none;box-shadow:none;color:var(--ezp-iconButton-color, var(--ezp-iconButton-color-init));cursor:var(--ezp-iconButton-cursor, pointer);display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:0;opacity:var(--ezp-iconButton-opacity, 1);outline:none;padding:var(--ezp-spacing-2)}@media (hover: hover){#button:not(:disabled):hover{--ezp-iconButton-background:var(\n --ezp-iconButton-background-hover,\n var(--ezp-iconButton-background-init)\n );--ezp-iconButton-opacity:var(--ezp-iconButton-opacity-hover, 1)}#button:not(:disabled):active{--ezp-iconButton-background:var(\n --ezp-iconButton-background-active,\n var(--ezp-iconButton-background-init)\n );--ezp-iconButton-opacity:var(--ezp-iconButton-opacity-active, 1)}}#button:disabled{--ezp-iconButton-background:var(\n --ezp-iconButton-background-disabled,\n var(--ezp-iconButton-background-init)\n );--ezp-iconButton-color:var(--ezp-iconButton-color-disabled);--ezp-iconButton-cursor:default}";var Ze=e("ezp_icon_button",function(){function e(e){n(this,e);this.blank=false;this.disabled=false;this.level="primary"}e.prototype.render=function(){var e=this.type!==undefined?"button":"a";var t=this.type!==undefined?{type:this.type,disabled:this.disabled}:{href:this.href,target:this.blank?"_blank":"_self"};return i(o,{class:"".concat(this.level)},i(e,Object.assign({id:"button"},t),i("ezp-icon",{name:this.icon})))};return e}());Ze.style=$e;var et=':host{display:block;min-width:var(--ezp-label-minWidth, auto);padding-bottom:1px;padding-top:1px}:host::before,:host::after{content:"";display:block;height:0}:host::before{margin-top:calc((var(--ezp-label-offset) + 1px) * -1)}:host::after{margin-bottom:calc((var(--ezp-label-offset) + 1px) * -1)}:host(.no-wrap){--ezp-label-whiteSpace:nowrap}:host(.ellipsis){--ezp-label-minWidth:0;--ezp-label-overflow:hidden;--ezp-label-textOverflow:ellipsis;--ezp-label-whiteSpace:nowrap;--ezp-label-width:100%}:host(.primary){--ezp-label-fontSize:17px;--ezp-label-lineHeight:24px;--ezp-label-letterSpacing:-0.0127756105em;--ezp-label-offset:6px}:host(.secondary){--ezp-label-fontSize:14px;--ezp-label-lineHeight:20px;--ezp-label-letterSpacing:-0.0062235443em;--ezp-label-offset:5px}:host(.tertiary){--ezp-label-fontSize:12px;--ezp-label-lineHeight:18px;--ezp-label-letterSpacing:0.0004907745em;--ezp-label-offset:5px}:host(.soft){--ezp-label-fontWeight:400}:host(.strong){--ezp-label-fontWeight:500}:host(.heavy){--ezp-label-fontWeight:600}#text{font-size:var(--ezp-label-fontSize);font-weight:var(--ezp-label-fontWeight);letter-spacing:var(--ezp-label-letterSpacing);line-height:var(--ezp-label-lineHeight);overflow:var(--ezp-label-overflow, visible);text-overflow:var(--ezp-label-textOverflow, clip);white-space:var(--ezp-label-whiteSpace, normal);width:var(--ezp-label-width, auto)}';var tt=e("ezp_label",function(){function e(e){n(this,e);this.ellipsis=false;this.level="secondary";this.noWrap=false;this.text="Label";this.weight="soft"}e.prototype.render=function(){return i(o,{class:"".concat(this.level," ").concat(this.weight," ").concat(this.ellipsis?"ellipsis":""," ").concat(this.noWrap?"no-wrap":"")},i("div",{id:"text"},this.text))};return e}());tt.style=et;var rt=typeof globalThis!=="undefined"&&globalThis||typeof self!=="undefined"&&self||typeof rt!=="undefined"&&rt;var nt={searchParams:"URLSearchParams"in rt,iterable:"Symbol"in rt&&"iterator"in Symbol,blob:"FileReader"in rt&&"Blob"in rt&&function(){try{new Blob;return true}catch(e){return false}}(),formData:"FormData"in rt,arrayBuffer:"ArrayBuffer"in rt};function at(e){return e&&DataView.prototype.isPrototypeOf(e)}if(nt.arrayBuffer){var it=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"];var ot=ArrayBuffer.isView||function(e){return e&&it.indexOf(Object.prototype.toString.call(e))>-1}}function st(e){if(typeof e!=="string"){e=String(e)}if(/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||e===""){throw new TypeError('Invalid character in header field name: "'+e+'"')}return e.toLowerCase()}function lt(e){if(typeof e!=="string"){e=String(e)}return e}function ct(e){var t={next:function(){var t=e.shift();return{done:t===undefined,value:t}}};if(nt.iterable){t[Symbol.iterator]=function(){return t}}return t}function pt(e){this.map={};if(e instanceof pt){e.forEach((function(e,t){this.append(t,e)}),this)}else if(Array.isArray(e)){e.forEach((function(e){this.append(e[0],e[1])}),this)}else if(e){Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}}pt.prototype.append=function(e,t){e=st(e);t=lt(t);var r=this.map[e];this.map[e]=r?r+", "+t:t};pt.prototype["delete"]=function(e){delete this.map[st(e)]};pt.prototype.get=function(e){e=st(e);return this.has(e)?this.map[e]:null};pt.prototype.has=function(e){return this.map.hasOwnProperty(st(e))};pt.prototype.set=function(e,t){this.map[st(e)]=lt(t)};pt.prototype.forEach=function(e,t){for(var r in this.map){if(this.map.hasOwnProperty(r)){e.call(t,this.map[r],r,this)}}};pt.prototype.keys=function(){var e=[];this.forEach((function(t,r){e.push(r)}));return ct(e)};pt.prototype.values=function(){var e=[];this.forEach((function(t){e.push(t)}));return ct(e)};pt.prototype.entries=function(){var e=[];this.forEach((function(t,r){e.push([r,t])}));return ct(e)};if(nt.iterable){pt.prototype[Symbol.iterator]=pt.prototype.entries}function dt(e){if(e.bodyUsed){return Promise.reject(new TypeError("Already read"))}e.bodyUsed=true}function ut(e){return new Promise((function(t,r){e.onload=function(){t(e.result)};e.onerror=function(){r(e.error)}}))}function mt(e){var t=new FileReader;var r=ut(t);t.readAsArrayBuffer(e);return r}function ft(e){var t=new FileReader;var r=ut(t);t.readAsText(e);return r}function ht(e){var t=new Uint8Array(e);var r=new Array(t.length);for(var n=0;n<t.length;n++){r[n]=String.fromCharCode(t[n])}return r.join("")}function gt(e){if(e.slice){return e.slice(0)}else{var t=new Uint8Array(e.byteLength);t.set(new Uint8Array(e));return t.buffer}}function yt(){this.bodyUsed=false;this._initBody=function(e){this.bodyUsed=this.bodyUsed;this._bodyInit=e;if(!e){this._bodyText=""}else if(typeof e==="string"){this._bodyText=e}else if(nt.blob&&Blob.prototype.isPrototypeOf(e)){this._bodyBlob=e}else if(nt.formData&&FormData.prototype.isPrototypeOf(e)){this._bodyFormData=e}else if(nt.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)){this._bodyText=e.toString()}else if(nt.arrayBuffer&&nt.blob&&at(e)){this._bodyArrayBuffer=gt(e.buffer);this._bodyInit=new Blob([this._bodyArrayBuffer])}else if(nt.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||ot(e))){this._bodyArrayBuffer=gt(e)}else{this._bodyText=e=Object.prototype.toString.call(e)}if(!this.headers.get("content-type")){if(typeof e==="string"){this.headers.set("content-type","text/plain;charset=UTF-8")}else if(this._bodyBlob&&this._bodyBlob.type){this.headers.set("content-type",this._bodyBlob.type)}else if(nt.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)){this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8")}}};if(nt.blob){this.blob=function(){var e=dt(this);if(e){return e}if(this._bodyBlob){return Promise.resolve(this._bodyBlob)}else if(this._bodyArrayBuffer){return Promise.resolve(new Blob([this._bodyArrayBuffer]))}else if(this._bodyFormData){throw new Error("could not read FormData body as blob")}else{return Promise.resolve(new Blob([this._bodyText]))}};this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=dt(this);if(e){return e}if(ArrayBuffer.isView(this._bodyArrayBuffer)){return Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength))}else{return Promise.resolve(this._bodyArrayBuffer)}}else{return this.blob().then(mt)}}}this.text=function(){var e=dt(this);if(e){return e}if(this._bodyBlob){return ft(this._bodyBlob)}else if(this._bodyArrayBuffer){return Promise.resolve(ht(this._bodyArrayBuffer))}else if(this._bodyFormData){throw new Error("could not read FormData body as text")}else{return Promise.resolve(this._bodyText)}};if(nt.formData){this.formData=function(){return this.text().then(Nt)}}this.json=function(){return this.text().then(JSON.parse)};return this}var vt=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function bt(e){var t=e.toUpperCase();return vt.indexOf(t)>-1?t:e}function xt(e,t){if(!(this instanceof xt)){throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.')}t=t||{};var r=t.body;if(e instanceof xt){if(e.bodyUsed){throw new TypeError("Already read")}this.url=e.url;this.credentials=e.credentials;if(!t.headers){this.headers=new pt(e.headers)}this.method=e.method;this.mode=e.mode;this.signal=e.signal;if(!r&&e._bodyInit!=null){r=e._bodyInit;e.bodyUsed=true}}else{this.url=String(e)}this.credentials=t.credentials||this.credentials||"same-origin";if(t.headers||!this.headers){this.headers=new pt(t.headers)}this.method=bt(t.method||this.method||"GET");this.mode=t.mode||this.mode||null;this.signal=t.signal||this.signal;this.referrer=null;if((this.method==="GET"||this.method==="HEAD")&&r){throw new TypeError("Body not allowed for GET or HEAD requests")}this._initBody(r);if(this.method==="GET"||this.method==="HEAD"){if(t.cache==="no-store"||t.cache==="no-cache"){var n=/([?&])_=[^&]*/;if(n.test(this.url)){this.url=this.url.replace(n,"$1_="+(new Date).getTime())}else{var a=/\?/;this.url+=(a.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}}xt.prototype.clone=function(){return new xt(this,{body:this._bodyInit})};function Nt(e){var t=new FormData;e.trim().split("&").forEach((function(e){if(e){var r=e.split("=");var n=r.shift().replace(/\+/g," ");var a=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(a))}}));return t}function zt(e){var t=new pt;var r=e.replace(/\r?\n[\t ]+/g," ");r.split("\r").map((function(e){return e.indexOf("\n")===0?e.substr(1,e.length):e})).forEach((function(e){var r=e.split(":");var n=r.shift().trim();if(n){var a=r.join(":").trim();t.append(n,a)}}));return t}yt.call(xt.prototype);function St(e,t){if(!(this instanceof St)){throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.')}if(!t){t={}}this.type="default";this.status=t.status===undefined?200:t.status;this.ok=this.status>=200&&this.status<300;this.statusText=t.statusText===undefined?"":""+t.statusText;this.headers=new pt(t.headers);this.url=t.url||"";this._initBody(e)}yt.call(St.prototype);St.prototype.clone=function(){return new St(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new pt(this.headers),url:this.url})};St.error=function(){var e=new St(null,{status:0,statusText:""});e.type="error";return e};var wt=[301,302,303,307,308];St.redirect=function(e,t){if(wt.indexOf(t)===-1){throw new RangeError("Invalid status code")}return new St(null,{status:t,headers:{location:e}})};var Pt=rt.DOMException;try{new Pt}catch(e){Pt=function(e,t){this.message=e;this.name=t;var r=Error(e);this.stack=r.stack};Pt.prototype=Object.create(Error.prototype);Pt.prototype.constructor=Pt}function Ct(e,t){return new Promise((function(r,n){var a=new xt(e,t);if(a.signal&&a.signal.aborted){return n(new Pt("Aborted","AbortError"))}var i=new XMLHttpRequest;function o(){i.abort()}i.onload=function(){var e={status:i.status,statusText:i.statusText,headers:zt(i.getAllResponseHeaders()||"")};e.url="responseURL"in i?i.responseURL:e.headers.get("X-Request-URL");var t="response"in i?i.response:i.responseText;setTimeout((function(){r(new St(t,e))}),0)};i.onerror=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)};i.ontimeout=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)};i.onabort=function(){setTimeout((function(){n(new Pt("Aborted","AbortError"))}),0)};function s(e){try{return e===""&&rt.location.href?rt.location.href:e}catch(t){return e}}i.open(a.method,s(a.url),true);if(a.credentials==="include"){i.withCredentials=true}else if(a.credentials==="omit"){i.withCredentials=false}if("responseType"in i){if(nt.blob){i.responseType="blob"}else if(nt.arrayBuffer&&a.headers.get("Content-Type")&&a.headers.get("Content-Type").indexOf("application/octet-stream")!==-1){i.responseType="arraybuffer"}}if(t&&typeof t.headers==="object"&&!(t.headers instanceof pt)){Object.getOwnPropertyNames(t.headers).forEach((function(e){i.setRequestHeader(e,lt(t.headers[e]))}))}else{a.headers.forEach((function(e,t){i.setRequestHeader(t,e)}))}if(a.signal){a.signal.addEventListener("abort",o);i.onreadystatechange=function(){if(i.readyState===4){a.signal.removeEventListener("abort",o)}}}i.send(typeof a._bodyInit==="undefined"?null:a._bodyInit)}))}Ct.polyfill=true;if(!rt.fetch){rt.fetch=Ct;rt.Headers=pt;rt.Request=xt;rt.Response=St}var Rt=Object.freeze({__proto__:null,Headers:pt,Request:xt,Response:St,get DOMException(){return Pt},fetch:Ct});var _t=_(Rt);var Et=function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={exports:{},id:n,loaded:false};e[n].call(a.exports,a,a.exports,r);a.loaded=true;return a.exports}r.m=e;r.c=t;r.p="";return r(0)}([function(e,t,r){var n=r(1);var a=typeof importScripts==="function";e.exports=n(a?self:window)},function(e,t,r){function n(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++){r[t]=e[t]}return r}else{return Array.from(e)}}var a=[];function i(e){for(var t=arguments.length,r=Array(t>1?t-1:0),i=1;i<t;i++){r[i-1]=arguments[i]}var o=a.reduce((function(e,t){return[t].concat(e)}),[]);var s=Promise.resolve(r);o.forEach((function(e){var t=e.request,r=e.requestError;if(t||r){s=s.then((function(e){return t.apply(undefined,n(e))}),r)}}));s=s.then((function(t){var r=new(Function.prototype.bind.apply(Request,[null].concat(n(t))));return e(r).then((function(e){e.request=r;return e})).catch((function(e){e.request=r;return Promise.reject(e)}))}));o.forEach((function(e){var t=e.response,r=e.responseError;if(t||r){s=s.then(t,r)}}));return s}e.exports=function e(t){if(!t.fetch){try{r(2)}catch(e){throw Error("No fetch available. Unable to register fetch-intercept")}}t.fetch=function(e){return function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++){r[n]=arguments[n]}return i.apply(undefined,[e].concat(r))}}(t.fetch);return{register:function e(t){a.push(t);return function(){var e=a.indexOf(t);if(e>=0){a.splice(e,1)}}},clear:function e(){a=[]}}}},function(e,t){e.exports=_t}]);function kt(e){return e.toLowerCase()}function Ot(e){if(e&&typeof e==="object"){var t=e;if(typeof t.rawHeaders==="function"&&typeof t.clone==="function"&&typeof t.get==="function"&&typeof t.set==="function"&&typeof t.contains==="function"&&typeof t.remove==="function"&&typeof t.headersArray==="function"&&typeof t.headerValues==="function"&&typeof t.headerNames==="function"&&typeof t.toJson==="function"){return true}}return false}var Tt=function(){function e(e){this._headersMap={};if(e){for(var t in e){this.set(t,e[t])}}}e.prototype.set=function(e,t){this._headersMap[kt(e)]={name:e,value:t.toString()}};e.prototype.get=function(e){var t=this._headersMap[kt(e)];return!t?undefined:t.value};e.prototype.contains=function(e){return!!this._headersMap[kt(e)]};e.prototype.remove=function(e){var t=this.contains(e);delete this._headersMap[kt(e)];return t};e.prototype.rawHeaders=function(){return this.toJson({preserveCase:true})};e.prototype.headersArray=function(){var e=[];for(var t in this._headersMap){e.push(this._headersMap[t])}return e};e.prototype.headerNames=function(){var e=[];var t=this.headersArray();for(var r=0;r<t.length;++r){e.push(t[r].name)}return e};e.prototype.headerValues=function(){var e=[];var t=this.headersArray();for(var r=0;r<t.length;++r){e.push(t[r].value)}return e};e.prototype.toJson=function(e){if(e===void 0){e={}}var t={};if(e.preserveCase){for(var r in this._headersMap){var n=this._headersMap[r];t[n.name]=n.value}}else{for(var r in this._headersMap){var n=this._headersMap[r];t[kt(n.name)]=n.value}}return t};e.prototype.toString=function(){return JSON.stringify(this.toJson({preserveCase:true}))};e.prototype.clone=function(){var t={};for(var r in this._headersMap){var n=this._headersMap[r];t[n.name]=n.value}return new e(t)};return e}();function Bt(e){var t="";for(var r=0;r<e.length;r++){t+=String.fromCharCode(e[r])}return btoa(t)}function qt(e){var t=atob(e);var r=new Uint8Array(t.length);for(var n=0;n<t.length;n++){r[n]=t.charCodeAt(n)}return r}var Mt=P.process;var At={coreHttpVersion:"2.2.3",HTTP:"http:",HTTPS:"https:",HTTP_PROXY:"HTTP_PROXY",HTTPS_PROXY:"HTTPS_PROXY",NO_PROXY:"NO_PROXY",ALL_PROXY:"ALL_PROXY",HttpConstants:{HttpVerbs:{PUT:"PUT",GET:"GET",DELETE:"DELETE",POST:"POST",MERGE:"MERGE",HEAD:"HEAD",PATCH:"PATCH"},StatusCodes:{TooManyRequests:429,ServiceUnavailable:503}},HeaderConstants:{AUTHORIZATION:"authorization",AUTHORIZATION_SCHEME:"Bearer",RETRY_AFTER:"Retry-After",USER_AGENT:"User-Agent"}};var It="$";var Ht="_";var Lt;var Dt=new Uint8Array(16);function jt(){if(!Lt){Lt=typeof crypto!=="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!=="undefined"&&typeof msCrypto.getRandomValues==="function"&&msCrypto.getRandomValues.bind(msCrypto);if(!Lt){throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported")}}return Lt(Dt)}var Ut=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Ft(e){return typeof e==="string"&&Ut.test(e)}var Vt=[];for(var Kt=0;Kt<256;++Kt){Vt.push((Kt+256).toString(16).substr(1))}function Gt(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;var r=(Vt[e[t+0]]+Vt[e[t+1]]+Vt[e[t+2]]+Vt[e[t+3]]+"-"+Vt[e[t+4]]+Vt[e[t+5]]+"-"+Vt[e[t+6]]+Vt[e[t+7]]+"-"+Vt[e[t+8]]+Vt[e[t+9]]+"-"+Vt[e[t+10]]+Vt[e[t+11]]+Vt[e[t+12]]+Vt[e[t+13]]+Vt[e[t+14]]+Vt[e[t+15]]).toLowerCase();if(!Ft(r)){throw TypeError("Stringified UUID is invalid")}return r}function Wt(e,t,r){e=e||{};var n=e.random||(e.rng||jt)();n[6]=n[6]&15|64;n[8]=n[8]&63|128;if(t){r=r||0;for(var a=0;a<16;++a){t[r+a]=n[a]}return t}return Gt(n)}var Xt=/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/i;var Qt=typeof Mt!=="undefined"&&!!Mt.version&&!!Mt.versions&&!!Mt.versions.node;function Yt(e){return Xt.test(e)}function Jt(){return Wt()}function $t(e,t,r,n){var a,i,o;if(!Array.isArray(e)){e=[e]}if(!r||!n){return a={},a[t]=e,a}var s=(i={},i[t]=e,i);s[It]=(o={},o[r]=n,o);return s}var Zt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function er(e){return Zt.test(e)}function tr(e,t,r){return!e||!t?e:e.split(t).join(r||"")}function rr(e){return typeof e!=="object"&&typeof e!=="function"||e===null}function nr(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}var ar=function(){function e(e,t){if(e===void 0){e={}}this.modelMappers=e;this.isXML=t}e.prototype.validateConstraints=function(e,t,r){var n=function(e,n){throw new Error('"'.concat(r,'" with value "').concat(t,'" should satisfy the constraint "').concat(e,'": ').concat(n,"."))};if(e.constraints&&t!=undefined){var a=t;var i=e.constraints,o=i.ExclusiveMaximum,s=i.ExclusiveMinimum,l=i.InclusiveMaximum,c=i.InclusiveMinimum,p=i.MaxItems,d=i.MaxLength,u=i.MinItems,m=i.MinLength,f=i.MultipleOf,h=i.Pattern,g=i.UniqueItems;if(o!=undefined&&a>=o){n("ExclusiveMaximum",o)}if(s!=undefined&&a<=s){n("ExclusiveMinimum",s)}if(l!=undefined&&a>l){n("InclusiveMaximum",l)}if(c!=undefined&&a<c){n("InclusiveMinimum",c)}var y=t;if(p!=undefined&&y.length>p){n("MaxItems",p)}if(d!=undefined&&y.length>d){n("MaxLength",d)}if(u!=undefined&&y.length<u){n("MinItems",u)}if(m!=undefined&&y.length<m){n("MinLength",m)}if(f!=undefined&&a%f!==0){n("MultipleOf",f)}if(h){var v=typeof h==="string"?new RegExp(h):h;if(typeof t!=="string"||t.match(v)===null){n("Pattern",h)}}if(g&&y.some((function(e,t,r){return r.indexOf(e)!==t}))){n("UniqueItems",g)}}};e.prototype.serialize=function(e,t,r,n){if(n===void 0){n={}}var a,i,o;var s={rootName:(a=n.rootName)!==null&&a!==void 0?a:"",includeRoot:(i=n.includeRoot)!==null&&i!==void 0?i:false,xmlCharKey:(o=n.xmlCharKey)!==null&&o!==void 0?o:Ht};var l={};var c=e.type.name;if(!r){r=e.serializedName}if(c.match(/^Sequence$/i)!==null){l=[]}if(e.isConstant){t=e.defaultValue}var p=e.required,d=e.nullable;if(p&&d&&t===undefined){throw new Error("".concat(r," cannot be undefined."))}if(p&&!d&&t==undefined){throw new Error("".concat(r," cannot be null or undefined."))}if(!p&&d===false&&t===null){throw new Error("".concat(r," cannot be null."))}if(t==undefined){l=t}else{this.validateConstraints(e,t,r);if(c.match(/^any$/i)!==null){l=t}else if(c.match(/^(Number|String|Boolean|Object|Stream|Uuid)$/i)!==null){l=dr(c,r,t)}else if(c.match(/^Enum$/i)!==null){var u=e;l=ur(r,u.type.allowedValues,t)}else if(c.match(/^(Date|DateTime|TimeSpan|DateTimeRfc1123|UnixTime)$/i)!==null){l=hr(c,t,r)}else if(c.match(/^ByteArray$/i)!==null){l=mr(r,t)}else if(c.match(/^Base64Url$/i)!==null){l=fr(r,t)}else if(c.match(/^Sequence$/i)!==null){l=gr(this,e,t,r,Boolean(this.isXML),s)}else if(c.match(/^Dictionary$/i)!==null){l=yr(this,e,t,r,Boolean(this.isXML),s)}else if(c.match(/^Composite$/i)!==null){l=Nr(this,e,t,r,Boolean(this.isXML),s)}}return l};e.prototype.deserialize=function(e,t,r,n){if(n===void 0){n={}}var a,i,o;var s={rootName:(a=n.rootName)!==null&&a!==void 0?a:"",includeRoot:(i=n.includeRoot)!==null&&i!==void 0?i:false,xmlCharKey:(o=n.xmlCharKey)!==null&&o!==void 0?o:Ht};if(t==undefined){if(this.isXML&&e.type.name==="Sequence"&&!e.xmlIsWrapped){t=[]}if(e.defaultValue!==undefined){t=e.defaultValue}return t}var l;var c=e.type.name;if(!r){r=e.serializedName}if(c.match(/^Composite$/i)!==null){l=wr(this,e,t,r,s)}else{if(this.isXML){var p=s.xmlCharKey;var d=t;if(d[It]!=undefined&&d[p]!=undefined){t=d[p]}}if(c.match(/^Number$/i)!==null){l=parseFloat(t);if(isNaN(l)){l=t}}else if(c.match(/^Boolean$/i)!==null){if(t==="true"){l=true}else if(t==="false"){l=false}else{l=t}}else if(c.match(/^(String|Enum|Object|Stream|Uuid|TimeSpan|any)$/i)!==null){l=t}else if(c.match(/^(Date|DateTime|DateTimeRfc1123)$/i)!==null){l=new Date(t)}else if(c.match(/^UnixTime$/i)!==null){l=pr(t)}else if(c.match(/^ByteArray$/i)!==null){l=qt(t)}else if(c.match(/^Base64Url$/i)!==null){l=sr(t)}else if(c.match(/^Sequence$/i)!==null){l=Cr(this,e,t,r,s)}else if(c.match(/^Dictionary$/i)!==null){l=Pr(this,e,t,r,s)}}if(e.isConstant){l=e.defaultValue}return l};return e}();function ir(e,t){var r=e.length;while(r-1>=0&&e[r-1]===t){--r}return e.substr(0,r)}function or(e){if(!e){return undefined}if(!(e instanceof Uint8Array)){throw new Error("Please provide an input of type Uint8Array for converting to Base64Url.")}var t=Bt(e);return ir(t,"=").replace(/\+/g,"-").replace(/\//g,"_")}function sr(e){if(!e){return undefined}if(e&&typeof e.valueOf()!=="string"){throw new Error("Please provide an input of type string for converting to Uint8Array")}e=e.replace(/-/g,"+").replace(/_/g,"/");return qt(e)}function lr(e){var t=[];var r="";if(e){var n=e.split(".");for(var a=0,i=n;a<i.length;a++){var o=i[a];if(o.charAt(o.length-1)==="\\"){r+=o.substr(0,o.length-1)+"."}else{r+=o;t.push(r);r=""}}}return t}function cr(e){if(!e){return undefined}if(typeof e.valueOf()==="string"){e=new Date(e)}return Math.floor(e.getTime()/1e3)}function pr(e){if(!e){return undefined}return new Date(e*1e3)}function dr(e,t,r){if(r!==null&&r!==undefined){if(e.match(/^Number$/i)!==null){if(typeof r!=="number"){throw new Error("".concat(t," with value ").concat(r," must be of type number."))}}else if(e.match(/^String$/i)!==null){if(typeof r.valueOf()!=="string"){throw new Error("".concat(t,' with value "').concat(r,'" must be of type string.'))}}else if(e.match(/^Uuid$/i)!==null){if(!(typeof r.valueOf()==="string"&&Yt(r))){throw new Error("".concat(t,' with value "').concat(r,'" must be of type string and a valid uuid.'))}}else if(e.match(/^Boolean$/i)!==null){if(typeof r!=="boolean"){throw new Error("".concat(t," with value ").concat(r," must be of type boolean."))}}else if(e.match(/^Stream$/i)!==null){var n=typeof r;if(n!=="string"&&n!=="function"&&!(r instanceof ArrayBuffer)&&!ArrayBuffer.isView(r)&&!((typeof Blob==="function"||typeof Blob==="object")&&r instanceof Blob)){throw new Error("".concat(t," must be a string, Blob, ArrayBuffer, ArrayBufferView, or a function returning NodeJS.ReadableStream."))}}}return r}function ur(e,t,r){if(!t){throw new Error("Please provide a set of allowedValues to validate ".concat(e," as an Enum Type."))}var n=t.some((function(e){if(typeof e.valueOf()==="string"){return e.toLowerCase()===r.toLowerCase()}return e===r}));if(!n){throw new Error("".concat(r," is not a valid value for ").concat(e,". The valid values are: ").concat(JSON.stringify(t),"."))}return r}function mr(e,t){var r="";if(t!=undefined){if(!(t instanceof Uint8Array)){throw new Error("".concat(e," must be of type Uint8Array."))}r=Bt(t)}return r}function fr(e,t){var r="";if(t!=undefined){if(!(t instanceof Uint8Array)){throw new Error("".concat(e," must be of type Uint8Array."))}r=or(t)||""}return r}function hr(e,t,r){if(t!=undefined){if(e.match(/^Date$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==="string"&&!isNaN(Date.parse(t)))){throw new Error("".concat(r," must be an instanceof Date or a string in ISO8601 format."))}t=t instanceof Date?t.toISOString().substring(0,10):new Date(t).toISOString().substring(0,10)}else if(e.match(/^DateTime$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==="string"&&!isNaN(Date.parse(t)))){throw new Error("".concat(r," must be an instanceof Date or a string in ISO8601 format."))}t=t instanceof Date?t.toISOString():new Date(t).toISOString()}else if(e.match(/^DateTimeRfc1123$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==="string"&&!isNaN(Date.parse(t)))){throw new Error("".concat(r," must be an instanceof Date or a string in RFC-1123 format."))}t=t instanceof Date?t.toUTCString():new Date(t).toUTCString()}else if(e.match(/^UnixTime$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==="string"&&!isNaN(Date.parse(t)))){throw new Error("".concat(r," must be an instanceof Date or a string in RFC-1123/ISO8601 format ")+"for it to be serialized in UnixTime/Epoch format.")}t=cr(t)}else if(e.match(/^TimeSpan$/i)!==null){if(!er(t)){throw new Error("".concat(r,' must be a string in ISO 8601 format. Instead was "').concat(t,'".'))}}}return t}function gr(e,t,r,n,a,i){var o,s;if(!Array.isArray(r)){throw new Error("".concat(n," must be of type Array."))}var l=t.type.element;if(!l||typeof l!=="object"){throw new Error('element" metadata for an Array must be defined in the '+'mapper and it must of type "object" in '.concat(n,"."))}var c=[];for(var p=0;p<r.length;p++){var d=e.serialize(l,r[p],n,i);if(a&&l.xmlNamespace){var u=l.xmlNamespacePrefix?"xmlns:".concat(l.xmlNamespacePrefix):"xmlns";if(l.type.name==="Composite"){c[p]=Object.assign({},d);c[p][It]=(o={},o[u]=l.xmlNamespace,o)}else{c[p]={};c[p][i.xmlCharKey]=d;c[p][It]=(s={},s[u]=l.xmlNamespace,s)}}else{c[p]=d}}return c}function yr(e,t,r,n,a,i){var o;if(typeof r!=="object"){throw new Error("".concat(n," must be of type object."))}var s=t.type.value;if(!s||typeof s!=="object"){throw new Error('"value" metadata for a Dictionary must be defined in the '+'mapper and it must of type "object" in '.concat(n,"."))}var l={};for(var c=0,p=Object.keys(r);c<p.length;c++){var d=p[c];var u=e.serialize(s,r[d],n,i);l[d]=zr(s,u,a,i)}if(a&&t.xmlNamespace){var m=t.xmlNamespacePrefix?"xmlns:".concat(t.xmlNamespacePrefix):"xmlns";var f=l;f[It]=(o={},o[m]=t.xmlNamespace,o);return f}return l}function vr(e,t,r){var n=t.type.additionalProperties;if(!n&&t.type.className){var a=br(e,t,r);return a===null||a===void 0?void 0:a.type.additionalProperties}return n}function br(e,t,r){var n=t.type.className;if(!n){throw new Error('Class name for model "'.concat(r,'" is not provided in the mapper "').concat(JSON.stringify(t,undefined,2),'".'))}return e.modelMappers[n]}function xr(e,t,r){var n=t.type.modelProperties;if(!n){var a=br(e,t,r);if(!a){throw new Error('mapper() cannot be null or undefined for model "'.concat(t.type.className,'".'))}n=a===null||a===void 0?void 0:a.type.modelProperties;if(!n){throw new Error("modelProperties cannot be null or undefined in the "+'mapper "'.concat(JSON.stringify(a),'" of type "').concat(t.type.className,'" for object "').concat(r,'".'))}}return n}function Nr(e,t,r,n,a,i){var o,s;if(_r(e,t)){t=Rr(e,t,r,"clientName")}if(r!=undefined){var l={};var c=xr(e,t,n);for(var p=0,d=Object.keys(c);p<d.length;p++){var u=d[p];var m=c[u];if(m.readOnly){continue}var f=void 0;var h=l;if(e.isXML){if(m.xmlIsWrapped){f=m.xmlName}else{f=m.xmlElementName||m.xmlName}}else{var g=lr(m.serializedName);f=g.pop();for(var y=0,v=g;y<v.length;y++){var b=v[y];var x=h[b];if(x==undefined&&(r[u]!=undefined||m.defaultValue!==undefined)){h[b]={}}h=h[b]}}if(h!=undefined){if(a&&t.xmlNamespace){var N=t.xmlNamespacePrefix?"xmlns:".concat(t.xmlNamespacePrefix):"xmlns";h[It]=Object.assign(Object.assign({},h[It]),(o={},o[N]=t.xmlNamespace,o))}var z=m.serializedName!==""?n+"."+m.serializedName:n;var S=r[u];var w=_r(e,t);if(w&&w.clientName===u&&S==undefined){S=t.serializedName}var P=e.serialize(m,S,z,i);if(P!==undefined&&f!=undefined){var C=zr(m,P,a,i);if(a&&m.xmlIsAttribute){h[It]=h[It]||{};h[It][f]=P}else if(a&&m.xmlIsWrapped){h[f]=(s={},s[m.xmlElementName]=C,s)}else{h[f]=C}}}}var R=vr(e,t,n);if(R){var _=Object.keys(c);var E=function(t){var a=_.every((function(e){return e!==t}));if(a){l[t]=e.serialize(R,r[t],n+'["'+t+'"]',i)}};for(var k in r){E(k)}}return l}return r}function zr(e,t,r,n){var a;if(!r||!e.xmlNamespace){return t}var i=e.xmlNamespacePrefix?"xmlns:".concat(e.xmlNamespacePrefix):"xmlns";var o=(a={},a[i]=e.xmlNamespace,a);if(["Composite"].includes(e.type.name)){if(t[It]){return t}else{var s=Object.assign({},t);s[It]=o;return s}}var l={};l[n.xmlCharKey]=t;l[It]=o;return l}function Sr(e,t){return[It,t.xmlCharKey].includes(e)}function wr(e,t,r,n,a){var i;if(_r(e,t)){t=Rr(e,t,r,"serializedName")}var o=xr(e,t,n);var s={};var l=[];for(var c=0,p=Object.keys(o);c<p.length;c++){var d=p[c];var u=o[d];var m=lr(o[d].serializedName);l.push(m[0]);var f=u.serializedName,h=u.xmlName,g=u.xmlElementName;var y=n;if(f!==""&&f!==undefined){y=n+"."+f}var v=u.headerCollectionPrefix;if(v){var b={};for(var x=0,N=Object.keys(r);x<N.length;x++){var z=N[x];if(z.startsWith(v)){b[z.substring(v.length)]=e.deserialize(u.type.value,r[z],y,a)}l.push(z)}s[d]=b}else if(e.isXML){if(u.xmlIsAttribute&&r[It]){s[d]=e.deserialize(u,r[It][h],y,a)}else{var S=g||h||f;if(u.xmlIsWrapped){var w=r[h];var P=(i=w===null||w===void 0?void 0:w[g])!==null&&i!==void 0?i:[];s[d]=e.deserialize(u,P,y,a)}else{var C=r[S];s[d]=e.deserialize(u,C,y,a)}}}else{var R=void 0;var _=r;for(var E=0,k=m;E<k.length;E++){var O=k[E];if(!_)break;_=_[O]}R=_;var T=t.type.polymorphicDiscriminator;if(T&&d===T.clientName&&R==undefined){R=t.serializedName}var B=void 0;if(Array.isArray(r[d])&&o[d].serializedName===""){R=r[d];var q=e.deserialize(u,R,y,a);for(var M=0,A=Object.entries(s);M<A.length;M++){var I=A[M],H=I[0],L=I[1];if(!Object.prototype.hasOwnProperty.call(q,H)){q[H]=L}}s=q}else if(R!==undefined||u.defaultValue!==undefined){B=e.deserialize(u,R,y,a);s[d]=B}}}var D=t.type.additionalProperties;if(D){var j=function(e){for(var t in o){var r=lr(o[t].serializedName);if(r[0]===e){return false}}return true};for(var U in r){if(j(U)){s[U]=e.deserialize(D,r[U],n+'["'+U+'"]',a)}}}else if(r){for(var F=0,V=Object.keys(r);F<V.length;F++){var d=V[F];if(s[d]===undefined&&!l.includes(d)&&!Sr(d,a)){s[d]=r[d]}}}return s}function Pr(e,t,r,n,a){var i=t.type.value;if(!i||typeof i!=="object"){throw new Error('"value" metadata for a Dictionary must be defined in the '+'mapper and it must of type "object" in '.concat(n))}if(r){var o={};for(var s=0,l=Object.keys(r);s<l.length;s++){var c=l[s];o[c]=e.deserialize(i,r[c],n,a)}return o}return r}function Cr(e,t,r,n,a){var i=t.type.element;if(!i||typeof i!=="object"){throw new Error('element" metadata for an Array must be defined in the '+'mapper and it must of type "object" in '.concat(n))}if(r){if(!Array.isArray(r)){r=[r]}var o=[];for(var s=0;s<r.length;s++){o[s]=e.deserialize(i,r[s],"".concat(n,"[").concat(s,"]"),a)}return o}return r}function Rr(e,t,r,n){var a=_r(e,t);if(a){var i=a[n];if(i!=undefined){var o=r[i];if(o!=undefined){var s=t.type.uberParent||t.type.className;var l=o===s?o:s+"."+o;var c=e.modelMappers.discriminators[l];if(c){t=c}}}}return t}function _r(e,t){return t.type.polymorphicDiscriminator||Er(e,t.type.uberParent)||Er(e,t.type.className)}function Er(e,t){return t&&e.modelMappers[t]&&e.modelMappers[t].type.polymorphicDiscriminator}function kr(e){var t={};for(var r=0,n=e;r<n.length;r++){var a=n[r];t[a]=a}return t}var Or=kr(["Base64Url","Boolean","ByteArray","Composite","Date","DateTime","DateTimeRfc1123","Dictionary","Enum","Number","Object","Sequence","String","Stream","TimeSpan","UnixTime"]);function Tr(e){if(e&&typeof e==="object"){var t=e;if(typeof t.url==="string"&&typeof t.method==="string"&&typeof t.headers==="object"&&Ot(t.headers)&&typeof t.validateRequestProperties==="function"&&typeof t.prepare==="function"&&typeof t.clone==="function"){return true}}return false}var Br=function(){function e(e,t,r,n,a,i,o,s,l,c,p,d,u,m,f){this.streamResponseBody=i;this.streamResponseStatusCodes=f;this.url=e||"";this.method=t||"GET";this.headers=Ot(a)?a:new Tt(a);this.body=r;this.query=n;this.formData=undefined;this.withCredentials=o||false;this.abortSignal=s;this.timeout=l||0;this.onUploadProgress=c;this.onDownloadProgress=p;this.proxySettings=d;this.keepAlive=u;this.decompressResponse=m;this.requestId=this.headers.get("x-ms-client-request-id")||Jt()}e.prototype.validateRequestProperties=function(){if(!this.method){throw new Error("WebResource.method is required.")}if(!this.url){throw new Error("WebResource.url is required.")}};e.prototype.prepare=function(e){if(!e){throw new Error("options object is required")}if(e.method===undefined||e.method===null||typeof e.method.valueOf()!=="string"){throw new Error("options.method must be a string.")}if(e.url&&e.pathTemplate){throw new Error("options.url and options.pathTemplate are mutually exclusive. Please provide exactly one of them.")}if((e.pathTemplate===undefined||e.pathTemplate===null||typeof e.pathTemplate.valueOf()!=="string")&&(e.url===undefined||e.url===null||typeof e.url.valueOf()!=="string")){throw new Error("Please provide exactly one of options.pathTemplate or options.url.")}if(e.url){if(typeof e.url!=="string"){throw new Error('options.url must be of type "string".')}this.url=e.url}if(e.method){var t=["GET","PUT","HEAD","DELETE","OPTIONS","POST","PATCH","TRACE"];if(t.indexOf(e.method.toUpperCase())===-1){throw new Error('The provided method "'+e.method+'" is invalid. Supported HTTP methods are: '+JSON.stringify(t))}}this.method=e.method.toUpperCase();if(e.pathTemplate){var r=e.pathTemplate,n=e.pathParameters;if(typeof r!=="string"){throw new Error('options.pathTemplate must be of type "string".')}if(!e.baseUrl){e.baseUrl="https://management.azure.com"}var a=e.baseUrl;var i=a+(a.endsWith("/")?"":"/")+(r.startsWith("/")?r.slice(1):r);var o=i.match(/({[\w-]*\s*[\w-]*})/gi);if(o&&o.length){if(!n){throw new Error("pathTemplate: ".concat(r," has been provided. Hence, options.pathParameters must also be provided."))}o.forEach((function(e){var t=e.slice(1,-1);var a=n[t];if(a===null||a===undefined||!(typeof a==="string"||typeof a==="object")){var o=JSON.stringify(n,undefined,2);throw new Error("pathTemplate: ".concat(r," contains the path parameter ").concat(t)+" however, it is not present in parameters: ".concat(o,".")+'The value of the path parameter can either be a "string" of the form { '.concat(t,': "some sample value" } or ')+'it can be an "object" of the form { "'.concat(t,'": { value: "some sample value", skipUrlEncoding: true } }.'))}if(typeof a.valueOf()==="string"){i=i.replace(e,encodeURIComponent(a))}if(typeof a.valueOf()==="object"){if(!a.value){throw new Error("options.pathParameters[".concat(t,'] is of type "object" but it does not contain a "value" property.'))}if(a.skipUrlEncoding){i=i.replace(e,a.value)}else{i=i.replace(e,encodeURIComponent(a.value))}}}))}this.url=i}if(e.queryParameters){var s=e.queryParameters;if(typeof s!=="object"){throw new Error("options.queryParameters must be of type object. It should be a JSON object "+'of "query-parameter-name" as the key and the "query-parameter-value" as the value. '+'The "query-parameter-value" may be fo type "string" or an "object" of the form { value: "query-parameter-value", skipUrlEncoding: true }.')}if(this.url&&this.url.indexOf("?")===-1){this.url+="?"}var l=[];this.query={};for(var c in s){var p=s[c];if(p){if(typeof p==="string"){l.push(c+"="+encodeURIComponent(p));this.query[c]=encodeURIComponent(p)}else if(typeof p==="object"){if(!p.value){throw new Error("options.queryParameters[".concat(c,'] is of type "object" but it does not contain a "value" property.'))}if(p.skipUrlEncoding){l.push(c+"="+p.value);this.query[c]=p.value}else{l.push(c+"="+encodeURIComponent(p.value));this.query[c]=encodeURIComponent(p.value)}}}}this.url+=l.join("&")}if(e.headers){var d=e.headers;for(var u=0,m=Object.keys(e.headers);u<m.length;u++){var f=m[u];this.headers.set(f,d[f])}}if(!this.headers.get("accept-language")){this.headers.set("accept-language","en-US")}if(!this.headers.get("x-ms-client-request-id")&&!e.disableClientRequestId){this.headers.set("x-ms-client-request-id",this.requestId)}if(!this.headers.get("Content-Type")){this.headers.set("Content-Type","application/json; charset=utf-8")}this.body=e.body;if(e.body!==undefined&&e.body!==null){if(e.bodyIsStream){if(!this.headers.get("Transfer-Encoding")){this.headers.set("Transfer-Encoding","chunked")}if(this.headers.get("Content-Type")!=="application/octet-stream"){this.headers.set("Content-Type","application/octet-stream")}}else{if(e.serializationMapper){this.body=new ar(e.mappers).serialize(e.serializationMapper,e.body,"requestBody")}if(!e.disableJsonStringifyOnBody){this.body=JSON.stringify(e.body)}}}if(e.spanOptions){this.spanOptions=e.spanOptions}if(e.tracingContext){this.tracingContext=e.tracingContext}this.abortSignal=e.abortSignal;this.onDownloadProgress=e.onDownloadProgress;this.onUploadProgress=e.onUploadProgress;return this};e.prototype.clone=function(){var t=new e(this.url,this.method,this.body,this.query,this.headers&&this.headers.clone(),this.streamResponseBody,this.withCredentials,this.abortSignal,this.timeout,this.onUploadProgress,this.onDownloadProgress,this.proxySettings,this.keepAlive,this.decompressResponse,this.streamResponseStatusCodes);if(this.formData){t.formData=this.formData}if(this.operationSpec){t.operationSpec=this.operationSpec}if(this.shouldDeserialize){t.shouldDeserialize=this.shouldDeserialize}if(this.operationResponseGetter){t.operationResponseGetter=this.operationResponseGetter}return t};return e}();
1
+ var __extends=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var __awaiter=this&&this.__awaiter||function(e,t,r,n){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function o(e){try{l(n.next(e))}catch(e){i(e)}}function s(e){try{l(n["throw"](e))}catch(e){i(e)}}function l(e){e.done?r(e.value):a(e.value).then(o,s)}l((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){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:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return l([e,t])}}function l(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=t.call(e,r)}catch(e){o=[6,e];a=0}finally{n=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,i;n<a;n++){if(i||!(n in t)){if(!i)i=Array.prototype.slice.call(t,0,n);i[n]=t[n]}}return e.concat(i||Array.prototype.slice.call(t))};System.register(["./p-c04b764e.system.js"],(function(e){"use strict";var t,r,n,a,i,o,s,l,c;return{setters:[function(e){t=e.g;r=e.f;n=e.r;a=e.c;i=e.h;o=e.H;s=e.a;l=e.d;c=e.F}],execute:function(){var p=this;var d=function(e,t,r){var n=e.get(t);if(!n){e.set(t,[r])}else if(!n.includes(r)){n.push(r)}};var u=function(e,t){var r;return function(){var n=[];for(var a=0;a<arguments.length;a++){n[a]=arguments[a]}if(r){clearTimeout(r)}r=setTimeout((function(){r=0;e.apply(void 0,n)}),t)}};var m=function(e){return!("isConnected"in e)||e.isConnected};var f=u((function(e){for(var t=0,r=e.keys();t<r.length;t++){var n=r[t];e.set(n,e.get(n).filter(m))}}),2e3);var h=function(e){var n=e.on;var a=new Map;if(typeof t==="function"){n("dispose",(function(){a.clear()}));n("get",(function(e){var r=t();if(r){d(a,e,r)}}));n("set",(function(e){var t=a.get(e);if(t){a.set(e,t.filter(r))}f(a)}));n("reset",(function(){a.forEach((function(e){return e.forEach(r)}));f(a)}))}};var g=function(e,t){if(t===void 0){t=function(e,t){return e!==t}}var r=new Map(Object.entries(e!==null&&e!==void 0?e:{}));var n={dispose:[],get:[],set:[],reset:[]};var a=function(){r=new Map(Object.entries(e!==null&&e!==void 0?e:{}));n.reset.forEach((function(e){return e()}))};var i=function(){n.dispose.forEach((function(e){return e()}));a()};var o=function(e){n.get.forEach((function(t){return t(e)}));return r.get(e)};var s=function(e,a){var i=r.get(e);if(t(a,i,e)){r.set(e,a);n.set.forEach((function(t){return t(e,a,i)}))}};var l=typeof Proxy==="undefined"?{}:new Proxy(e,{get:function(e,t){return o(t)},ownKeys:function(e){return Array.from(r.keys())},getOwnPropertyDescriptor:function(){return{enumerable:true,configurable:true}},has:function(e,t){return r.has(t)},set:function(e,t,r){s(t,r);return true}});var c=function(e,t){n[e].push(t);return function(){y(n[e],t)}};var p=function(t,r){var n=c("set",(function(e,n){if(e===t){r(n)}}));var a=c("reset",(function(){return r(e[t])}));return function(){n();a()}};var d=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return e.forEach((function(e){if(e.set){c("set",e.set)}if(e.get){c("get",e.get)}if(e.reset){c("reset",e.reset)}}))};var u=function(e){var t=r.get(e);n.set.forEach((function(r){return r(e,t,t)}))};return{state:l,get:o,set:s,on:c,onChange:p,use:d,dispose:i,reset:a,forceUpdate:u}};var y=function(e,t){var r=e.indexOf(t);if(r>=0){e[r]=e[e.length-1];e.length--}};var v=function(e,t){var r=g(e,t);h(r);return r};function b(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){b=function e(t){return typeof t}}else{b=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return b(e)}function x(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}function N(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?Object(arguments[t]):{};var n=Object.keys(r);if(typeof Object.getOwnPropertySymbols==="function"){n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))}n.forEach((function(t){x(e,t,r[t])}))}return e}function z(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function S(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function w(e,t,r){if(t)S(e.prototype,t);if(r)S(e,r);return e}var P=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function C(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function R(e,t,r){return r={path:t,exports:{},require:function(e,t){return E()}},e(r,r.exports),r.exports}function _(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:true});Object.keys(e).forEach((function(r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:true,get:function(){return e[r]}})}));return t}function E(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var k=R((function(e){function t(r){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){e.exports=t=function e(t){return typeof t};e.exports["default"]=e.exports,e.exports.__esModule=true}else{e.exports=t=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.exports["default"]=e.exports,e.exports.__esModule=true}return t(r)}e.exports=t;e.exports["default"]=e.exports,e.exports.__esModule=true}));var O=C(k);function T(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function B(e,t){if(t&&(O(t)==="object"||typeof t==="function")){return t}return T(e)}function q(e){q=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return q(e)}function M(e,t){M=Object.setPrototypeOf||function e(t,r){t.__proto__=r;return t};return M(e,t)}function A(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)M(e,t)}var I={type:"logger",log:function e(t){this.output("log",t)},warn:function e(t){this.output("warn",t)},error:function e(t){this.output("error",t)},output:function e(t,r){if(console&&console[t])console[t].apply(console,r)}};var H=function(){function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};z(this,e);this.init(t,r)}w(e,[{key:"init",value:function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};this.prefix=r.prefix||"i18next:";this.logger=t||I;this.options=r;this.debug=r.debug}},{key:"setDebug",value:function e(t){this.debug=t}},{key:"log",value:function e(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++){r[n]=arguments[n]}return this.forward(r,"log","",true)}},{key:"warn",value:function e(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++){r[n]=arguments[n]}return this.forward(r,"warn","",true)}},{key:"error",value:function e(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++){r[n]=arguments[n]}return this.forward(r,"error","")}},{key:"deprecate",value:function e(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++){r[n]=arguments[n]}return this.forward(r,"warn","WARNING DEPRECATED: ",true)}},{key:"forward",value:function e(t,r,n,a){if(a&&!this.debug)return null;if(typeof t[0]==="string")t[0]="".concat(n).concat(this.prefix," ").concat(t[0]);return this.logger[r](t)}},{key:"create",value:function t(r){return new e(this.logger,N({},{prefix:"".concat(this.prefix,":").concat(r,":")},this.options))}}]);return e}();var L=new H;var D=function(){function e(){z(this,e);this.observers={}}w(e,[{key:"on",value:function e(t,r){var n=this;t.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[];n.observers[e].push(r)}));return this}},{key:"off",value:function e(t,r){if(!this.observers[t])return;if(!r){delete this.observers[t];return}this.observers[t]=this.observers[t].filter((function(e){return e!==r}))}},{key:"emit",value:function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++){n[a-1]=arguments[a]}if(this.observers[t]){var i=[].concat(this.observers[t]);i.forEach((function(e){e.apply(void 0,n)}))}if(this.observers["*"]){var o=[].concat(this.observers["*"]);o.forEach((function(e){e.apply(e,[t].concat(n))}))}}}]);return e}();function j(){var e;var t;var r=new Promise((function(r,n){e=r;t=n}));r.resolve=e;r.reject=t;return r}function U(e){if(e==null)return"";return""+e}function F(e,t,r){e.forEach((function(e){if(t[e])r[e]=t[e]}))}function V(e,t,r){function n(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function a(){return!e||typeof e==="string"}var i=typeof t!=="string"?[].concat(t):t.split(".");while(i.length>1){if(a())return{};var o=n(i.shift());if(!e[o]&&r)e[o]=new r;if(Object.prototype.hasOwnProperty.call(e,o)){e=e[o]}else{e={}}}if(a())return{};return{obj:e,k:n(i.shift())}}function K(e,t,r){var n=V(e,t,Object),a=n.obj,i=n.k;a[i]=r}function G(e,t,r,n){var a=V(e,t,Object),i=a.obj,o=a.k;i[o]=i[o]||[];if(n)i[o]=i[o].concat(r);if(!n)i[o].push(r)}function W(e,t){var r=V(e,t),n=r.obj,a=r.k;if(!n)return undefined;return n[a]}function X(e,t,r){var n=W(e,r);if(n!==undefined){return n}return W(t,r)}function Q(e,t,r){for(var n in t){if(n!=="__proto__"&&n!=="constructor"){if(n in e){if(typeof e[n]==="string"||e[n]instanceof String||typeof t[n]==="string"||t[n]instanceof String){if(r)e[n]=t[n]}else{Q(e[n],t[n],r)}}else{e[n]=t[n]}}}return e}function Y(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var J={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function $(e){if(typeof e==="string"){return e.replace(/[&<>"'\/]/g,(function(e){return J[e]}))}return e}var Z=typeof window!=="undefined"&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;var ee=[" ",",","?","!",";"];function te(e,t,r){t=t||"";r=r||"";var n=ee.filter((function(e){return t.indexOf(e)<0&&r.indexOf(e)<0}));if(n.length===0)return true;var a=new RegExp("(".concat(n.map((function(e){return e==="?"?"\\?":e})).join("|"),")"));var i=!a.test(e);if(!i){var o=e.indexOf(r);if(o>0&&!a.test(e.substring(0,o))){i=true}}return i}function re(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:".";if(!e)return undefined;if(e[t])return e[t];var n=t.split(r);var a=e;for(var i=0;i<n.length;++i){if(!a)return undefined;if(typeof a[n[i]]==="string"&&i+1<n.length){return undefined}if(a[n[i]]===undefined){var o=2;var s=n.slice(i,i+o).join(r);var l=a[s];while(l===undefined&&n.length>i+o){o++;s=n.slice(i,i+o).join(r);l=a[s]}if(l===undefined)return undefined;if(typeof l==="string")return l;if(s&&typeof l[s]==="string")return l[s];var c=n.slice(i+o).join(r);if(c)return re(l,c,r);return undefined}a=a[n[i]]}return a}var ne=function(e){A(t,e);function t(e){var r;var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{ns:["translation"],defaultNS:"translation"};z(this,t);r=B(this,q(t).call(this));if(Z){D.call(T(r))}r.data=e||{};r.options=n;if(r.options.keySeparator===undefined){r.options.keySeparator="."}if(r.options.ignoreJSONStructure===undefined){r.options.ignoreJSONStructure=true}return r}w(t,[{key:"addNamespaces",value:function e(t){if(this.options.ns.indexOf(t)<0){this.options.ns.push(t)}}},{key:"removeNamespaces",value:function e(t){var r=this.options.ns.indexOf(t);if(r>-1){this.options.ns.splice(r,1)}}},{key:"getResource",value:function e(t,r,n){var a=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};var i=a.keySeparator!==undefined?a.keySeparator:this.options.keySeparator;var o=a.ignoreJSONStructure!==undefined?a.ignoreJSONStructure:this.options.ignoreJSONStructure;var s=[t,r];if(n&&typeof n!=="string")s=s.concat(n);if(n&&typeof n==="string")s=s.concat(i?n.split(i):n);if(t.indexOf(".")>-1){s=t.split(".")}var l=W(this.data,s);if(l||!o||typeof n!=="string")return l;return re(this.data&&this.data[t]&&this.data[t][r],n,i)}},{key:"addResource",value:function e(t,r,n,a){var i=arguments.length>4&&arguments[4]!==undefined?arguments[4]:{silent:false};var o=this.options.keySeparator;if(o===undefined)o=".";var s=[t,r];if(n)s=s.concat(o?n.split(o):n);if(t.indexOf(".")>-1){s=t.split(".");a=r;r=s[1]}this.addNamespaces(r);K(this.data,s,a);if(!i.silent)this.emit("added",t,r,n,a)}},{key:"addResources",value:function e(t,r,n){var a=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{silent:false};for(var i in n){if(typeof n[i]==="string"||Object.prototype.toString.apply(n[i])==="[object Array]")this.addResource(t,r,i,n[i],{silent:true})}if(!a.silent)this.emit("added",t,r,n)}},{key:"addResourceBundle",value:function e(t,r,n,a,i){var o=arguments.length>5&&arguments[5]!==undefined?arguments[5]:{silent:false};var s=[t,r];if(t.indexOf(".")>-1){s=t.split(".");a=n;n=r;r=s[1]}this.addNamespaces(r);var l=W(this.data,s)||{};if(a){Q(l,n,i)}else{l=N({},l,n)}K(this.data,s,l);if(!o.silent)this.emit("added",t,r,n)}},{key:"removeResourceBundle",value:function e(t,r){if(this.hasResourceBundle(t,r)){delete this.data[t][r]}this.removeNamespaces(r);this.emit("removed",t,r)}},{key:"hasResourceBundle",value:function e(t,r){return this.getResource(t,r)!==undefined}},{key:"getResourceBundle",value:function e(t,r){if(!r)r=this.options.defaultNS;if(this.options.compatibilityAPI==="v1")return N({},{},this.getResource(t,r));return this.getResource(t,r)}},{key:"getDataByLanguage",value:function e(t){return this.data[t]}},{key:"hasLanguageSomeTranslations",value:function e(t){var r=this.getDataByLanguage(t);var n=r&&Object.keys(r)||[];return!!n.find((function(e){return r[e]&&Object.keys(r[e]).length>0}))}},{key:"toJSON",value:function e(){return this.data}}]);return t}(D);var ae={processors:{},addPostProcessor:function e(t){this.processors[t.name]=t},handle:function e(t,r,n,a,i){var o=this;t.forEach((function(e){if(o.processors[e])r=o.processors[e].process(r,n,a,i)}));return r}};var ie={};var oe=function(e){A(t,e);function t(e){var r;var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};z(this,t);r=B(this,q(t).call(this));if(Z){D.call(T(r))}F(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,T(r));r.options=n;if(r.options.keySeparator===undefined){r.options.keySeparator="."}r.logger=L.create("translator");return r}w(t,[{key:"changeLanguage",value:function e(t){if(t)this.language=t}},{key:"exists",value:function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{interpolation:{}};if(t===undefined||t===null){return false}var n=this.resolve(t,r);return n&&n.res!==undefined}},{key:"extractFromKey",value:function e(t,r){var n=r.nsSeparator!==undefined?r.nsSeparator:this.options.nsSeparator;if(n===undefined)n=":";var a=r.keySeparator!==undefined?r.keySeparator:this.options.keySeparator;var i=r.ns||this.options.defaultNS;var o=n&&t.indexOf(n)>-1;var s=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!te(t,n,a);if(o&&!s){var l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0){return{key:t,namespaces:i}}var c=t.split(n);if(n!==a||n===a&&this.options.ns.indexOf(c[0])>-1)i=c.shift();t=c.join(a)}if(typeof i==="string")i=[i];return{key:t,namespaces:i}}},{key:"translate",value:function e(r,n,a){var i=this;if(b(n)!=="object"&&this.options.overloadTranslationOptionHandler){n=this.options.overloadTranslationOptionHandler(arguments)}if(!n)n={};if(r===undefined||r===null)return"";if(!Array.isArray(r))r=[String(r)];var o=n.keySeparator!==undefined?n.keySeparator:this.options.keySeparator;var s=this.extractFromKey(r[r.length-1],n),l=s.key,c=s.namespaces;var p=c[c.length-1];var d=n.lng||this.language;var u=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d&&d.toLowerCase()==="cimode"){if(u){var m=n.nsSeparator||this.options.nsSeparator;return p+m+l}return l}var f=this.resolve(r,n);var h=f&&f.res;var g=f&&f.usedKey||l;var y=f&&f.exactUsedKey||l;var v=Object.prototype.toString.apply(h);var x=["[object Number]","[object Function]","[object RegExp]"];var z=n.joinArrays!==undefined?n.joinArrays:this.options.joinArrays;var S=!this.i18nFormat||this.i18nFormat.handleAsObject;var w=typeof h!=="string"&&typeof h!=="boolean"&&typeof h!=="number";if(S&&h&&w&&x.indexOf(v)<0&&!(typeof z==="string"&&v==="[object Array]")){if(!n.returnObjects&&!this.options.returnObjects){if(!this.options.returnedObjectHandler){this.logger.warn("accessing an object - but returnObjects options is not enabled!")}return this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,h,N({},n,{ns:c})):"key '".concat(l," (").concat(this.language,")' returned an object instead of string.")}if(o){var P=v==="[object Array]";var C=P?[]:{};var R=P?y:g;for(var _ in h){if(Object.prototype.hasOwnProperty.call(h,_)){var E="".concat(R).concat(o).concat(_);C[_]=this.translate(E,N({},n,{joinArrays:false,ns:c}));if(C[_]===E)C[_]=h[_]}}h=C}}else if(S&&typeof z==="string"&&v==="[object Array]"){h=h.join(z);if(h)h=this.extendTranslation(h,r,n,a)}else{var k=false;var O=false;var T=n.count!==undefined&&typeof n.count!=="string";var B=t.hasDefaultValue(n);var q=T?this.pluralResolver.getSuffix(d,n.count,n):"";var M=n["defaultValue".concat(q)]||n.defaultValue;if(!this.isValidLookup(h)&&B){k=true;h=M}if(!this.isValidLookup(h)){O=true;h=l}var A=n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey;var I=A&&O?undefined:h;var H=B&&M!==h&&this.options.updateMissing;if(O||k||H){this.logger.log(H?"updateKey":"missingKey",d,p,l,H?M:h);if(o){var L=this.resolve(l,N({},n,{keySeparator:false}));if(L&&L.res)this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var D=[];var j=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&j&&j[0]){for(var U=0;U<j.length;U++){D.push(j[U])}}else if(this.options.saveMissingTo==="all"){D=this.languageUtils.toResolveHierarchy(n.lng||this.language)}else{D.push(n.lng||this.language)}var F=function e(t,r,a){if(i.options.missingKeyHandler){i.options.missingKeyHandler(t,p,r,H?a:I,H,n)}else if(i.backendConnector&&i.backendConnector.saveMissing){i.backendConnector.saveMissing(t,p,r,H?a:I,H,n)}i.emit("missingKey",t,p,r,h)};if(this.options.saveMissing){if(this.options.saveMissingPlurals&&T){D.forEach((function(e){i.pluralResolver.getSuffixes(e).forEach((function(t){F([e],l+t,n["defaultValue".concat(t)]||M)}))}))}else{F(D,l,M)}}}h=this.extendTranslation(h,r,n,f,a);if(O&&h===l&&this.options.appendNamespaceToMissingKey)h="".concat(p,":").concat(l);if((O||k)&&this.options.parseMissingKeyHandler)h=this.options.parseMissingKeyHandler(h)}return h}},{key:"extendTranslation",value:function e(t,r,n,a,i){var o=this;if(this.i18nFormat&&this.i18nFormat.parse){t=this.i18nFormat.parse(t,n,a.usedLng,a.usedNS,a.usedKey,{resolved:a})}else if(!n.skipInterpolation){if(n.interpolation)this.interpolator.init(N({},n,{interpolation:N({},this.options.interpolation,n.interpolation)}));var s=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;var l;if(s){var c=t.match(this.interpolator.nestingRegexp);l=c&&c.length}var p=n.replace&&typeof n.replace!=="string"?n.replace:n;if(this.options.interpolation.defaultVariables)p=N({},this.options.interpolation.defaultVariables,p);t=this.interpolator.interpolate(t,p,n.lng||this.language,n);if(s){var d=t.match(this.interpolator.nestingRegexp);var u=d&&d.length;if(l<u)n.nest=false}if(n.nest!==false)t=this.interpolator.nest(t,(function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++){t[a]=arguments[a]}if(i&&i[0]===t[0]&&!n.context){o.logger.warn("It seems you are nesting recursively key: ".concat(t[0]," in key: ").concat(r[0]));return null}return o.translate.apply(o,t.concat([r]))}),n);if(n.interpolation)this.interpolator.reset()}var m=n.postProcess||this.options.postProcess;var f=typeof m==="string"?[m]:m;if(t!==undefined&&t!==null&&f&&f.length&&n.applyPostProcessor!==false){t=ae.handle(f,t,r,this.options&&this.options.postProcessPassResolved?N({i18nResolved:a},n):n,this)}return t}},{key:"resolve",value:function e(t){var r=this;var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var a;var i;var o;var s;var l;if(typeof t==="string")t=[t];t.forEach((function(e){if(r.isValidLookup(a))return;var t=r.extractFromKey(e,n);var c=t.key;i=c;var p=t.namespaces;if(r.options.fallbackNS)p=p.concat(r.options.fallbackNS);var d=n.count!==undefined&&typeof n.count!=="string";var u=n.context!==undefined&&(typeof n.context==="string"||typeof n.context==="number")&&n.context!=="";var m=n.lngs?n.lngs:r.languageUtils.toResolveHierarchy(n.lng||r.language,n.fallbackLng);p.forEach((function(e){if(r.isValidLookup(a))return;l=e;if(!ie["".concat(m[0],"-").concat(e)]&&r.utils&&r.utils.hasLoadedNamespace&&!r.utils.hasLoadedNamespace(l)){ie["".concat(m[0],"-").concat(e)]=true;r.logger.warn('key "'.concat(i,'" for languages "').concat(m.join(", "),'" won\'t get resolved as namespace "').concat(l,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")}m.forEach((function(t){if(r.isValidLookup(a))return;s=t;var i=c;var l=[i];if(r.i18nFormat&&r.i18nFormat.addLookupKeys){r.i18nFormat.addLookupKeys(l,c,t,e,n)}else{var p;if(d)p=r.pluralResolver.getSuffix(t,n.count,n);if(d&&u)l.push(i+p);if(u)l.push(i+="".concat(r.options.contextSeparator).concat(n.context));if(d)l.push(i+=p)}var m;while(m=l.pop()){if(!r.isValidLookup(a)){o=m;a=r.getResource(t,e,m,n)}}}))}))}));return{res:a,usedKey:i,exactUsedKey:o,usedLng:s,usedNS:l}}},{key:"isValidLookup",value:function e(t){return t!==undefined&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}},{key:"getResource",value:function e(t,r,n){var a=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};if(this.i18nFormat&&this.i18nFormat.getResource)return this.i18nFormat.getResource(t,r,n,a);return this.resourceStore.getResource(t,r,n,a)}}],[{key:"hasDefaultValue",value:function e(t){var r="defaultValue";for(var n in t){if(Object.prototype.hasOwnProperty.call(t,n)&&r===n.substring(0,r.length)&&undefined!==t[n]){return true}}return false}}]);return t}(D);function se(e){return e.charAt(0).toUpperCase()+e.slice(1)}var le=function(){function e(t){z(this,e);this.options=t;this.supportedLngs=this.options.supportedLngs||false;this.logger=L.create("languageUtils")}w(e,[{key:"getScriptPartFromCode",value:function e(t){if(!t||t.indexOf("-")<0)return null;var r=t.split("-");if(r.length===2)return null;r.pop();if(r[r.length-1].toLowerCase()==="x")return null;return this.formatLanguageCode(r.join("-"))}},{key:"getLanguagePartFromCode",value:function e(t){if(!t||t.indexOf("-")<0)return t;var r=t.split("-");return this.formatLanguageCode(r[0])}},{key:"formatLanguageCode",value:function e(t){if(typeof t==="string"&&t.indexOf("-")>-1){var r=["hans","hant","latn","cyrl","cans","mong","arab"];var n=t.split("-");if(this.options.lowerCaseLng){n=n.map((function(e){return e.toLowerCase()}))}else if(n.length===2){n[0]=n[0].toLowerCase();n[1]=n[1].toUpperCase();if(r.indexOf(n[1].toLowerCase())>-1)n[1]=se(n[1].toLowerCase())}else if(n.length===3){n[0]=n[0].toLowerCase();if(n[1].length===2)n[1]=n[1].toUpperCase();if(n[0]!=="sgn"&&n[2].length===2)n[2]=n[2].toUpperCase();if(r.indexOf(n[1].toLowerCase())>-1)n[1]=se(n[1].toLowerCase());if(r.indexOf(n[2].toLowerCase())>-1)n[2]=se(n[2].toLowerCase())}return n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}},{key:"isSupportedCode",value:function e(t){if(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs){t=this.getLanguagePartFromCode(t)}return!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}},{key:"getBestMatchFromCodes",value:function e(t){var r=this;if(!t)return null;var n;t.forEach((function(e){if(n)return;var t=r.formatLanguageCode(e);if(!r.options.supportedLngs||r.isSupportedCode(t))n=t}));if(!n&&this.options.supportedLngs){t.forEach((function(e){if(n)return;var t=r.getLanguagePartFromCode(e);if(r.isSupportedCode(t))return n=t;n=r.options.supportedLngs.find((function(e){if(e.indexOf(t)===0)return e}))}))}if(!n)n=this.getFallbackCodes(this.options.fallbackLng)[0];return n}},{key:"getFallbackCodes",value:function e(t,r){if(!t)return[];if(typeof t==="function")t=t(r);if(typeof t==="string")t=[t];if(Object.prototype.toString.apply(t)==="[object Array]")return t;if(!r)return t["default"]||[];var n=t[r];if(!n)n=t[this.getScriptPartFromCode(r)];if(!n)n=t[this.formatLanguageCode(r)];if(!n)n=t[this.getLanguagePartFromCode(r)];if(!n)n=t["default"];return n||[]}},{key:"toResolveHierarchy",value:function e(t,r){var n=this;var a=this.getFallbackCodes(r||this.options.fallbackLng||[],t);var i=[];var o=function e(t){if(!t)return;if(n.isSupportedCode(t)){i.push(t)}else{n.logger.warn("rejecting language code not found in supportedLngs: ".concat(t))}};if(typeof t==="string"&&t.indexOf("-")>-1){if(this.options.load!=="languageOnly")o(this.formatLanguageCode(t));if(this.options.load!=="languageOnly"&&this.options.load!=="currentOnly")o(this.getScriptPartFromCode(t));if(this.options.load!=="currentOnly")o(this.getLanguagePartFromCode(t))}else if(typeof t==="string"){o(this.formatLanguageCode(t))}a.forEach((function(e){if(i.indexOf(e)<0)o(n.formatLanguageCode(e))}));return i}}]);return e}();var ce=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}];var pe={1:function e(t){return Number(t>1)},2:function e(t){return Number(t!=1)},3:function e(t){return 0},4:function e(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},5:function e(t){return Number(t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5)},6:function e(t){return Number(t==1?0:t>=2&&t<=4?1:2)},7:function e(t){return Number(t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},8:function e(t){return Number(t==1?0:t==2?1:t!=8&&t!=11?2:3)},9:function e(t){return Number(t>=2)},10:function e(t){return Number(t==1?0:t==2?1:t<7?2:t<11?3:4)},11:function e(t){return Number(t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3)},12:function e(t){return Number(t%10!=1||t%100==11)},13:function e(t){return Number(t!==0)},14:function e(t){return Number(t==1?0:t==2?1:t==3?2:3)},15:function e(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2)},16:function e(t){return Number(t%10==1&&t%100!=11?0:t!==0?1:2)},17:function e(t){return Number(t==1||t%10==1&&t%100!=11?0:1)},18:function e(t){return Number(t==0?0:t==1?1:2)},19:function e(t){return Number(t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},20:function e(t){return Number(t==1?0:t==0||t%100>0&&t%100<20?1:2)},21:function e(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)},22:function e(t){return Number(t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3)}};var de=["v1","v2","v3"];var ue={zero:0,one:1,two:2,few:3,many:4,other:5};function me(){var e={};ce.forEach((function(t){t.lngs.forEach((function(r){e[r]={numbers:t.nr,plurals:pe[t.fc]}}))}));return e}var fe=function(){function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};z(this,e);this.languageUtils=t;this.options=r;this.logger=L.create("pluralResolver");if((!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(typeof Intl==="undefined"||!Intl.PluralRules)){this.options.compatibilityJSON="v3";this.logger.error("Your environment seems not to be Inlt API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")}this.rules=me()}w(e,[{key:"addRule",value:function e(t,r){this.rules[t]=r}},{key:"getRule",value:function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};if(this.shouldUseIntlApi()){try{return new Intl.PluralRules(t,{type:r.ordinal?"ordinal":"cardinal"})}catch(e){return}}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}},{key:"needsPlural",value:function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var n=this.getRule(t,r);if(this.shouldUseIntlApi()){return n&&n.resolvedOptions().pluralCategories.length>1}return n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function e(t,r){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};return this.getSuffixes(t,n).map((function(e){return"".concat(r).concat(e)}))}},{key:"getSuffixes",value:function e(t){var r=this;var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var a=this.getRule(t,n);if(!a){return[]}if(this.shouldUseIntlApi()){return a.resolvedOptions().pluralCategories.sort((function(e,t){return ue[e]-ue[t]})).map((function(e){return"".concat(r.options.prepend).concat(e)}))}return a.numbers.map((function(e){return r.getSuffix(t,e,n)}))}},{key:"getSuffix",value:function e(t,r){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var a=this.getRule(t,n);if(a){if(this.shouldUseIntlApi()){return"".concat(this.options.prepend).concat(a.select(r))}return this.getSuffixRetroCompatible(a,r)}this.logger.warn("no plural rule found for: ".concat(t));return""}},{key:"getSuffixRetroCompatible",value:function e(t,r){var n=this;var a=t.noAbs?t.plurals(r):t.plurals(Math.abs(r));var i=t.numbers[a];if(this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1){if(i===2){i="plural"}else if(i===1){i=""}}var o=function e(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};if(this.options.compatibilityJSON==="v1"){if(i===1)return"";if(typeof i==="number")return"_plural_".concat(i.toString());return o()}else if(this.options.compatibilityJSON==="v2"){return o()}else if(this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1){return o()}return this.options.prepend&&a.toString()?this.options.prepend+a.toString():a.toString()}},{key:"shouldUseIntlApi",value:function e(){return!de.includes(this.options.compatibilityJSON)}}]);return e}();var he=function(){function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};z(this,e);this.logger=L.create("interpolator");this.options=t;this.format=t.interpolation&&t.interpolation.format||function(e){return e};this.init(t)}w(e,[{key:"init",value:function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};if(!t.interpolation)t.interpolation={escapeValue:true};var r=t.interpolation;this.escape=r.escape!==undefined?r.escape:$;this.escapeValue=r.escapeValue!==undefined?r.escapeValue:true;this.useRawValueToEscape=r.useRawValueToEscape!==undefined?r.useRawValueToEscape:false;this.prefix=r.prefix?Y(r.prefix):r.prefixEscaped||"{{";this.suffix=r.suffix?Y(r.suffix):r.suffixEscaped||"}}";this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",";this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-";this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"";this.nestingPrefix=r.nestingPrefix?Y(r.nestingPrefix):r.nestingPrefixEscaped||Y("$t(");this.nestingSuffix=r.nestingSuffix?Y(r.nestingSuffix):r.nestingSuffixEscaped||Y(")");this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",";this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3;this.alwaysFormat=r.alwaysFormat!==undefined?r.alwaysFormat:false;this.resetRegExp()}},{key:"reset",value:function e(){if(this.options)this.init(this.options)}},{key:"resetRegExp",value:function e(){var t="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(t,"g");var r="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(r,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function e(t,r,n,a){var i=this;var o;var s;var l;var c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function p(e){return e.replace(/\$/g,"$$$$")}var d=function e(t){if(t.indexOf(i.formatSeparator)<0){var o=X(r,c,t);return i.alwaysFormat?i.format(o,undefined,n,N({},a,r,{interpolationkey:t})):o}var s=t.split(i.formatSeparator);var l=s.shift().trim();var p=s.join(i.formatSeparator).trim();return i.format(X(r,c,l),p,n,N({},a,r,{interpolationkey:l}))};this.resetRegExp();var u=a&&a.missingInterpolationHandler||this.options.missingInterpolationHandler;var m=a&&a.interpolation&&a.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;var f=[{regex:this.regexpUnescape,safeValue:function e(t){return p(t)}},{regex:this.regexp,safeValue:function e(t){return i.escapeValue?p(i.escape(t)):p(t)}}];f.forEach((function(e){l=0;while(o=e.regex.exec(t)){s=d(o[1].trim());if(s===undefined){if(typeof u==="function"){var r=u(t,o,a);s=typeof r==="string"?r:""}else if(m){s=o[0];continue}else{i.logger.warn("missed to pass in variable ".concat(o[1]," for interpolating ").concat(t));s=""}}else if(typeof s!=="string"&&!i.useRawValueToEscape){s=U(s)}var n=e.safeValue(s);t=t.replace(o[0],n);if(m){e.regex.lastIndex+=n.length;e.regex.lastIndex-=o[0].length}else{e.regex.lastIndex=0}l++;if(l>=i.maxReplaces){break}}}));return t}},{key:"nest",value:function e(t,r){var n=this;var a=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var i;var o;var s=N({},a);s.applyPostProcessor=false;delete s.defaultValue;function l(e,t){var r=this.nestingOptionsSeparator;if(e.indexOf(r)<0)return e;var n=e.split(new RegExp("".concat(r,"[ ]*{")));var a="{".concat(n[1]);e=n[0];a=this.interpolate(a,s);a=a.replace(/'/g,'"');try{s=JSON.parse(a);if(t)s=N({},t,s)}catch(t){this.logger.warn("failed parsing options string in nesting for key ".concat(e),t);return"".concat(e).concat(r).concat(a)}delete s.defaultValue;return e}while(i=this.nestingRegexp.exec(t)){var c=[];var p=false;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){var d=i[1].split(this.formatSeparator).map((function(e){return e.trim()}));i[1]=d.shift();c=d;p=true}o=r(l.call(this,i[1].trim(),s),s);if(o&&i[0]===t&&typeof o!=="string")return o;if(typeof o!=="string")o=U(o);if(!o){this.logger.warn("missed to resolve ".concat(i[1]," for nesting ").concat(t));o=""}if(p){o=c.reduce((function(e,t){return n.format(e,t,a.lng,N({},a,{interpolationkey:i[1].trim()}))}),o.trim())}t=t.replace(i[0],o);this.regexp.lastIndex=0}return t}}]);return e}();function ge(e,t){var r=e.indexOf(t);while(r!==-1){e.splice(r,1);r=e.indexOf(t)}}var ye=function(e){A(t,e);function t(e,r,n){var a;var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};z(this,t);a=B(this,q(t).call(this));if(Z){D.call(T(a))}a.backend=e;a.store=r;a.services=n;a.languageUtils=n.languageUtils;a.options=i;a.logger=L.create("backendConnector");a.state={};a.queue=[];if(a.backend&&a.backend.init){a.backend.init(n,i.backend,i)}return a}w(t,[{key:"queueLoad",value:function e(t,r,n,a){var i=this;var o=[];var s=[];var l=[];var c=[];t.forEach((function(e){var t=true;r.forEach((function(r){var a="".concat(e,"|").concat(r);if(!n.reload&&i.store.hasResourceBundle(e,r)){i.state[a]=2}else if(i.state[a]<0);else if(i.state[a]===1){if(s.indexOf(a)<0)s.push(a)}else{i.state[a]=1;t=false;if(s.indexOf(a)<0)s.push(a);if(o.indexOf(a)<0)o.push(a);if(c.indexOf(r)<0)c.push(r)}}));if(!t)l.push(e)}));if(o.length||s.length){this.queue.push({pending:s,loaded:{},errors:[],callback:a})}return{toLoad:o,pending:s,toLoadLanguages:l,toLoadNamespaces:c}}},{key:"loaded",value:function e(t,r,n){var a=t.split("|");var i=a[0];var o=a[1];if(r)this.emit("failedLoading",i,o,r);if(n){this.store.addResourceBundle(i,o,n)}this.state[t]=r?-1:2;var e={};this.queue.forEach((function(n){G(n.loaded,[i],o);ge(n.pending,t);if(r)n.errors.push(r);if(n.pending.length===0&&!n.done){Object.keys(n.loaded).forEach((function(t){if(!e[t])e[t]=[];if(n.loaded[t].length){n.loaded[t].forEach((function(r){if(e[t].indexOf(r)<0)e[t].push(r)}))}}));n.done=true;if(n.errors.length){n.callback(n.errors)}else{n.callback()}}}));this.emit("loaded",e);this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function e(t,r,n){var a=this;var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:0;var o=arguments.length>4&&arguments[4]!==undefined?arguments[4]:350;var s=arguments.length>5?arguments[5]:undefined;if(!t.length)return s(null,{});return this.backend[n](t,r,(function(e,l){if(e&&l&&i<5){setTimeout((function(){a.read.call(a,t,r,n,i+1,o*2,s)}),o);return}s(e,l)}))}},{key:"prepareLoading",value:function e(t,r){var n=this;var a=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var i=arguments.length>3?arguments[3]:undefined;if(!this.backend){this.logger.warn("No backend was added via i18next.use. Will not load resources.");return i&&i()}if(typeof t==="string")t=this.languageUtils.toResolveHierarchy(t);if(typeof r==="string")r=[r];var o=this.queueLoad(t,r,a,i);if(!o.toLoad.length){if(!o.pending.length)i();return null}o.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function e(t,r,n){this.prepareLoading(t,r,{},n)}},{key:"reload",value:function e(t,r,n){this.prepareLoading(t,r,{reload:true},n)}},{key:"loadOne",value:function e(t){var r=this;var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"";var a=t.split("|");var i=a[0];var o=a[1];this.read(i,o,"read",undefined,undefined,(function(e,a){if(e)r.logger.warn("".concat(n,"loading namespace ").concat(o," for language ").concat(i," failed"),e);if(!e&&a)r.logger.log("".concat(n,"loaded namespace ").concat(o," for language ").concat(i),a);r.loaded(t,e,a)}))}},{key:"saveMissing",value:function e(t,r,n,a,i){var o=arguments.length>5&&arguments[5]!==undefined?arguments[5]:{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)){this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(r,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(n===undefined||n===null||n==="")return;if(this.backend&&this.backend.create){this.backend.create(t,r,n,a,null,N({},o,{isUpdate:i}))}if(!t||!t[0])return;this.store.addResource(t[0],r,n,a)}}]);return t}(D);function ve(){return{debug:false,initImmediate:true,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:false,supportedLngs:false,nonExplicitSupportedLngs:false,load:"all",preload:false,simplifyPluralSuffix:true,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:false,saveMissing:false,updateMissing:false,saveMissingTo:"fallback",saveMissingPlurals:true,missingKeyHandler:false,missingInterpolationHandler:false,postProcess:false,postProcessPassResolved:false,returnNull:true,returnEmptyString:true,returnObjects:false,joinArrays:false,returnedObjectHandler:false,parseMissingKeyHandler:false,appendNamespaceToMissingKey:false,appendNamespaceToCIMode:false,overloadTranslationOptionHandler:function e(t){var r={};if(b(t[1])==="object")r=t[1];if(typeof t[1]==="string")r.defaultValue=t[1];if(typeof t[2]==="string")r.tDescription=t[2];if(b(t[2])==="object"||b(t[3])==="object"){var n=t[3]||t[2];Object.keys(n).forEach((function(e){r[e]=n[e]}))}return r},interpolation:{escapeValue:true,format:function e(t,r,n,a){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:true}}}function be(e){if(typeof e.ns==="string")e.ns=[e.ns];if(typeof e.fallbackLng==="string")e.fallbackLng=[e.fallbackLng];if(typeof e.fallbackNS==="string")e.fallbackNS=[e.fallbackNS];if(e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0){e.supportedLngs=e.supportedLngs.concat(["cimode"])}return e}function xe(){}var Ne=function(e){A(t,e);function t(){var e;var r=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var n=arguments.length>1?arguments[1]:undefined;z(this,t);e=B(this,q(t).call(this));if(Z){D.call(T(e))}e.options=be(r);e.services={};e.logger=L;e.modules={external:[]};if(n&&!e.isInitialized&&!r.isClone){if(!e.options.initImmediate){e.init(r,n);return B(e,T(e))}setTimeout((function(){e.init(r,n)}),0)}return e}w(t,[{key:"init",value:function e(){var t=this;var r=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var n=arguments.length>1?arguments[1]:undefined;if(typeof r==="function"){n=r;r={}}if(!r.defaultNS&&r.ns){if(typeof r.ns==="string"){r.defaultNS=r.ns}else if(r.ns.indexOf("translation")<0){r.defaultNS=r.ns[0]}}this.options=N({},ve(),this.options,be(r));if(r.keySeparator!==undefined){this.options.userDefinedKeySeparator=r.keySeparator}this.format=this.options.interpolation.format;if(!n)n=xe;function a(e){if(!e)return null;if(typeof e==="function")return new e;return e}if(!this.options.isClone){if(this.modules.logger){L.init(a(this.modules.logger),this.options)}else{L.init(null,this.options)}var i=new le(this.options);this.store=new ne(this.options.resources,this.options);var o=this.services;o.logger=L;o.resourceStore=this.store;o.languageUtils=i;o.pluralResolver=new fe(i,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix});o.interpolator=new he(this.options);o.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)};o.backendConnector=new ye(a(this.modules.backend),o.resourceStore,o,this.options);o.backendConnector.on("*",(function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++){n[a-1]=arguments[a]}t.emit.apply(t,[e].concat(n))}));if(this.modules.languageDetector){o.languageDetector=a(this.modules.languageDetector);o.languageDetector.init(o,this.options.detection,this.options)}if(this.modules.i18nFormat){o.i18nFormat=a(this.modules.i18nFormat);if(o.i18nFormat.init)o.i18nFormat.init(this)}this.translator=new oe(this.services,this.options);this.translator.on("*",(function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++){n[a-1]=arguments[a]}t.emit.apply(t,[e].concat(n))}));this.modules.external.forEach((function(e){if(e.init)e.init(t)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);if(s.length>0&&s[0]!=="dev")this.options.lng=s[0]}if(!this.services.languageDetector&&!this.options.lng){this.logger.warn("init: no languageDetector is used and no lng is defined")}var l=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];l.forEach((function(e){t[e]=function(){var r;return(r=t.store)[e].apply(r,arguments)}}));var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach((function(e){t[e]=function(){var r;(r=t.store)[e].apply(r,arguments);return t}}));var p=j();var d=function e(){var r=function e(r,a){if(t.isInitialized&&!t.initializedStoreOnce)t.logger.warn("init: i18next is already initialized. You should call init just once!");t.isInitialized=true;if(!t.options.isClone)t.logger.log("initialized",t.options);t.emit("initialized",t.options);p.resolve(a);n(r,a)};if(t.languages&&t.options.compatibilityAPI!=="v1"&&!t.isInitialized)return r(null,t.t.bind(t));t.changeLanguage(t.options.lng,r)};if(this.options.resources||!this.options.initImmediate){d()}else{setTimeout(d,0)}return p}},{key:"loadResources",value:function e(t){var r=this;var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:xe;var a=n;var i=typeof t==="string"?t:this.language;if(typeof t==="function")a=t;if(!this.options.resources||this.options.partialBundledLanguages){if(i&&i.toLowerCase()==="cimode")return a();var o=[];var s=function e(t){if(!t)return;var n=r.services.languageUtils.toResolveHierarchy(t);n.forEach((function(e){if(o.indexOf(e)<0)o.push(e)}))};if(!i){var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.forEach((function(e){return s(e)}))}else{s(i)}if(this.options.preload){this.options.preload.forEach((function(e){return s(e)}))}this.services.backendConnector.load(o,this.options.ns,a)}else{a(null)}}},{key:"reloadResources",value:function e(t,r,n){var a=j();if(!t)t=this.languages;if(!r)r=this.options.ns;if(!n)n=xe;this.services.backendConnector.reload(t,r,(function(e){a.resolve();n(e)}));return a}},{key:"use",value:function e(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");if(t.type==="backend"){this.modules.backend=t}if(t.type==="logger"||t.log&&t.warn&&t.error){this.modules.logger=t}if(t.type==="languageDetector"){this.modules.languageDetector=t}if(t.type==="i18nFormat"){this.modules.i18nFormat=t}if(t.type==="postProcessor"){ae.addPostProcessor(t)}if(t.type==="3rdParty"){this.modules.external.push(t)}return this}},{key:"changeLanguage",value:function e(t,r){var n=this;this.isLanguageChangingTo=t;var a=j();this.emit("languageChanging",t);var i=function e(t){n.language=t;n.languages=n.services.languageUtils.toResolveHierarchy(t);n.resolvedLanguage=undefined;if(["cimode","dev"].indexOf(t)>-1)return;for(var r=0;r<n.languages.length;r++){var a=n.languages[r];if(["cimode","dev"].indexOf(a)>-1)continue;if(n.store.hasLanguageSomeTranslations(a)){n.resolvedLanguage=a;break}}};var o=function e(t,o){if(o){i(o);n.translator.changeLanguage(o);n.isLanguageChangingTo=undefined;n.emit("languageChanged",o);n.logger.log("languageChanged",o)}else{n.isLanguageChangingTo=undefined}a.resolve((function(){return n.t.apply(n,arguments)}));if(r)r(t,(function(){return n.t.apply(n,arguments)}))};var s=function e(r){if(!t&&!r&&n.services.languageDetector)r=[];var a=typeof r==="string"?r:n.services.languageUtils.getBestMatchFromCodes(r);if(a){if(!n.language){i(a)}if(!n.translator.language)n.translator.changeLanguage(a);if(n.services.languageDetector)n.services.languageDetector.cacheUserLanguage(a)}n.loadResources(a,(function(e){o(e,a)}))};if(!t&&this.services.languageDetector&&!this.services.languageDetector.async){s(this.services.languageDetector.detect())}else if(!t&&this.services.languageDetector&&this.services.languageDetector.async){this.services.languageDetector.detect(s)}else{s(t)}return a}},{key:"getFixedT",value:function e(t,r,n){var a=this;var i=function e(t,r){var i;if(b(r)!=="object"){for(var o=arguments.length,s=new Array(o>2?o-2:0),l=2;l<o;l++){s[l-2]=arguments[l]}i=a.options.overloadTranslationOptionHandler([t,r].concat(s))}else{i=N({},r)}i.lng=i.lng||e.lng;i.lngs=i.lngs||e.lngs;i.ns=i.ns||e.ns;var c=a.options.keySeparator||".";var p=n?"".concat(n).concat(c).concat(t):t;return a.t(p,i)};if(typeof t==="string"){i.lng=t}else{i.lngs=t}i.ns=r;i.keyPrefix=n;return i}},{key:"t",value:function e(){var t;return this.translator&&(t=this.translator).translate.apply(t,arguments)}},{key:"exists",value:function e(){var t;return this.translator&&(t=this.translator).exists.apply(t,arguments)}},{key:"setDefaultNamespace",value:function e(t){this.options.defaultNS=t}},{key:"hasLoadedNamespace",value:function e(t){var r=this;var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};if(!this.isInitialized){this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages);return false}if(!this.languages||!this.languages.length){this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages);return false}var a=this.resolvedLanguage||this.languages[0];var i=this.options?this.options.fallbackLng:false;var o=this.languages[this.languages.length-1];if(a.toLowerCase()==="cimode")return true;var s=function e(t,n){var a=r.services.backendConnector.state["".concat(t,"|").concat(n)];return a===-1||a===2};if(n.precheck){var l=n.precheck(this,s);if(l!==undefined)return l}if(this.hasResourceBundle(a,t))return true;if(!this.services.backendConnector.backend)return true;if(s(a,t)&&(!i||s(o,t)))return true;return false}},{key:"loadNamespaces",value:function e(t,r){var n=this;var a=j();if(!this.options.ns){r&&r();return Promise.resolve()}if(typeof t==="string")t=[t];t.forEach((function(e){if(n.options.ns.indexOf(e)<0)n.options.ns.push(e)}));this.loadResources((function(e){a.resolve();if(r)r(e)}));return a}},{key:"loadLanguages",value:function e(t,r){var n=j();if(typeof t==="string")t=[t];var a=this.options.preload||[];var i=t.filter((function(e){return a.indexOf(e)<0}));if(!i.length){if(r)r();return Promise.resolve()}this.options.preload=a.concat(i);this.loadResources((function(e){n.resolve();if(r)r(e)}));return n}},{key:"dir",value:function e(t){if(!t)t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language);if(!t)return"rtl";var r=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"];return r.indexOf(this.services.languageUtils.getLanguagePartFromCode(t))>=0?"rtl":"ltr"}},{key:"createInstance",value:function e(){var r=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var n=arguments.length>1?arguments[1]:undefined;return new t(r,n)}},{key:"cloneInstance",value:function e(){var r=this;var n=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var a=arguments.length>1&&arguments[1]!==undefined?arguments[1]:xe;var i=N({},this.options,n,{isClone:true});var o=new t(i);var s=["store","services","language"];s.forEach((function(e){o[e]=r[e]}));o.services=N({},this.services);o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)};o.translator=new oe(o.services,o.options);o.translator.on("*",(function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++){r[n-1]=arguments[n]}o.emit.apply(o,[e].concat(r))}));o.init(i,a);o.translator.options=o.options;o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)};return o}},{key:"toJSON",value:function e(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]);return t}(D);var ze=new Ne;var Se={heading:"Drucke mit ezeep Blue",description:"Melde dich mit deinem ezeep Blue-Konto an, um zu drucken.",action:"Anmelden"};var we={heading:"Keine Datei ausgewählt",description:"Wähle zunächst eine Datei zum Drucken aus.",action:"OK"};var Pe={loading:"Lade meine Drucker…",print:"Drucken",printer:"Drucker",print_processing:"Drucken…",print_success:"Erfolgreich gedruckt.",print_failed:"Druck fehlgeschlagen",not_supported:"Der ausgewählte Dateityp wird nicht unterstützt.",color:"Farbe",orientation:"Ausrichtung",size:"Papierformat",duplex:"Beidseitig",quality:"Druckqualität",select_printer:"Wähle einen Drucker",select_color:"Wähle Farbe/Graustufen",select_size:"Wähle Papierformat",select_orientation:"Wähle Ausrichtung",select_quality:"Wähle Druckqualität",select_duplex:"Wähle Beidseitig",color_color:"Farbe",color_grayscale:"Graustufen",orientation_portrait:"Hochformat",orientation_landscape:"Querformat",unknown_location:"Unbekannter Standort",no_printers:"Keine Drucker gefunden.",prepare_upload:"Vorbereiten…",uploading:"Hochladen…",duplex_none:"Keine",copies:"Kopien",duplex_long:"auf der langen Seite umdrehen",duplex_short:"auf der kurzen Seite umdrehen",pull_print_success:"Bereit zum Auslösen."};var Ce={login:"Anmelden",print:"Drucken",cancel:"Abbrechen",close:"Schließen",retry:"Wiederholen",select_printer:"Wähle Drucker"};var Re={description:"Ziehe eine Datei hier in den Browser ",meta_leading:"oder",meta_select:"wähle eine Datei aus",meta_trailing:"um mit ezeep Blue zu drucken.",selected_file:"Ausgewählte Datei:"};var _e={theme:"Farbschema",appearance:"Darstellung",system:"System",light:"Hell",dark:"Dunkel",account:"Konto verwalten",help:"Hilfe & Unterstützung",logout:"Ausloggen"};var Ee={login_dialog:Se,no_document_dialog:we,printer_selection:Pe,button_actions:Ce,upload:Re,user_menu:_e};var ke={heading:"Print with ezeep Blue",description:"Sign in with your ezeep Blue account to print.",action:"Sign in"};var Oe={heading:"No file selected",description:"Select a file first to print.",action:"OK"};var Te={loading:"Loading My Printers…",print_processing:"Printing…",print_success:"Successfully printed.",pull_print_success:"Ready to be released.",print_failed:"Print failed",not_supported:"The selected file type is not supported.",prepare_upload:"Preparing…",uploading:"Uploading…",print:"Print",printer:"Printer",color:"Color",orientation:"Orientation",size:"Paper Size",duplex:"Double-sided",duplex_none:"None",duplex_long:"flip on long side",duplex_short:"flip on short side",quality:"Print Quality",select_printer:"Select a printer",select_color:"Select Color/Grayscale",select_orientation:"Select Orientation",select_size:"Select Paper Size",select_quality:"Select Print Quality",select_duplex:"Select Double-sided",color_color:"Color",color_grayscale:"Grayscale",orientation_portrait:"Portrait",orientation_landscape:"Landscape",unknown_location:"Unknown location",no_printers:"No printers found.",copies:"Copies"};var Be={login:"Sign In",print:"Print",cancel:"Cancel",close:"Close",retry:"Retry",select_printer:"Select Printer"};var qe={description:"Drop a file here into the browser ",meta_leading:"or",meta_select:"select a file",meta_trailing:"to print with ezeep Blue.",selected_file:"Selected File:"};var Me={theme:"Color theme",appearance:"Appearance",system:"System",light:"Light",dark:"Dark",account:"Manage Account",help:"Help & Support",logout:"Logout"};var Ae={login_dialog:ke,no_document_dialog:Oe,printer_selection:Te,button_actions:Be,upload:qe,user_menu:Me};function Ie(e){return Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")}function He(e){var t={en:{translation:Ae},de:{translation:Ee}};if(e!=""){ze.init({resources:t,lng:e,nsSeparator:false,fallbackLng:"en"})}else{ze.init({resources:t,lng:navigator.language,nsSeparator:false,fallbackLng:"en"})}}var Le=function(e){var t=e.fn,r=e.validate,n=e.interval,a=e.maxAttempts;return __awaiter(p,void 0,void 0,(function(){var e,i;var o=this;return __generator(this,(function(s){e=0;i=function(s,l){return __awaiter(o,void 0,void 0,(function(){var o;return __generator(this,(function(c){switch(c.label){case 0:return[4,t()];case 1:o=c.sent();e++;if(r(o)){return[2,s(o)]}else if(a&&e===a){return[2,l(new Error("Exceeded max attempts."))]}else{setTimeout(i,n,s,l)}return[2]}}))}))};return[2,new Promise(i)]}))}))};var De=function(e){var t={};Object.keys(e).forEach((function(r){if(e[r]!==""){t[r]=e[r]}}));return t};var je=function(){function e(e,t){this.urlParams=new URLSearchParams;this.isAuthorized=false;this.redirectURI=e;this.clientID=t;this.oauthUrl=Ue.state.authApiHostUrl;this.authURI=new URL("https://".concat(this.oauthUrl,"/oauth/authorize/"));this.accessTokenURL="https://".concat(this.oauthUrl,"/oauth/access_token/")}e.prototype.generateCodeVerifier=function(){if(Ue.state.codeVerifier!==""){this.codeVerifier=Ue.state.codeVerifier}else{var e=new Uint8Array(128);var t=crypto.getRandomValues(e);var r=btoa(t.toString()).substr(0,128);this.codeVerifier=r;Ue.state.codeVerifier=this.codeVerifier}};e.prototype.generateCodeChallenge=function(e){return __awaiter(this,void 0,void 0,(function(){var t,r,n,a;return __generator(this,(function(i){switch(i.label){case 0:t=new TextEncoder;r=t.encode(e);return[4,crypto.subtle.digest("SHA-256",r)];case 1:n=i.sent();a=btoa(String.fromCharCode.apply(null,new Uint8Array(n)));this.codeChallenge=a.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"");return[2]}}))}))};e.prototype.buildAuthURI=function(){this.urlParams.append("response_type","code");this.urlParams.append("client_id",this.clientID);this.urlParams.append("redirect_uri",this.redirectURI);this.urlParams.append("code_challenge",this.codeChallenge);this.urlParams.append("code_challenge_method","S256");this.authURI.search=this.urlParams.toString();Ue.state.authUri=this.authURI.toString()};e.prototype.getAccessToken=function(){var e=this;return fetch(this.accessTokenURL,{credentials:"include",headers:{Authorization:"Basic "+btoa(this.clientID+":"),"Content-Type":"application/x-www-form-urlencoded"},method:"POST",body:Ie({grant_type:"authorization_code",scope:"printing",code:Ue.state.code,redirect_uri:this.redirectURI,code_verifier:Ue.state.codeVerifier})}).then((function(e){return e.json()})).then((function(t){if(t.access_token){Ue.state.isAuthorized=true;e.isAuthorized=Ue.state.isAuthorized;localStorage.setItem("isAuthorized",e.isAuthorized.toString());e.accessToken=t.access_token;localStorage.setItem("access_token",e.accessToken);Ue.state.accessToken=e.accessToken;e.refreshToken=t.refresh_token;localStorage.setItem("refreshToken",e.refreshToken);Ue.state.refreshToken=e.refreshToken}}))};e.prototype.refreshTokens=function(){var e=this;fetch(this.accessTokenURL,{credentials:"include",headers:{Authorization:"Basic "+btoa(this.clientID+":"),"Content-Type":"application/x-www-form-urlencoded"},method:"POST",body:Ie({grant_type:"refresh_token",scope:"printing",refresh_token:Ue.state.refreshToken})}).then((function(e){return e.json()})).then((function(t){if(t.access_token){e.accessToken=t.access_token;localStorage.setItem("access_token",e.accessToken);Ue.state.accessToken=e.accessToken;e.refreshToken=t.refresh_token;localStorage.setItem("refreshToken",e.refreshToken);Ue.state.refreshToken=e.refreshToken;Ue.state.isAuthorized=true}}))};e.prototype.revokeRefreshToken=function(){fetch("https://".concat(this.oauthUrl,"/oauth/revoke/"),{credentials:"include",headers:{Authorization:"Basic "+btoa(this.clientID+":"),"Content-Type":"application/x-www-form-urlencoded"},method:"POST",body:Ie({token:Ue.state.refreshToken})}).then((function(e){console.log(e)})).catch((function(e){console.log(e)}))};return e}();var Ue=v({code:"",codeVerifier:"",accessToken:"",refreshToken:"",isAuthorized:false,devApi:false,authApiHostUrl:"",redirectUri:"",authUri:""});function Fe(){var e=new URLSearchParams(window.location.search);var t=e.get("code");if(window.opener){if(t){window.opener.postMessage(t,Ue.state.redirectUri);window.close()}}}var Ve=":host{--ezp-theme-solid:var(--ezp-accent-cyan-solid);--ezp-theme-translucent:var(--ezp-accent-cyan-translucent);display:block}";var Ke=e("ezp_auth",function(){function e(e){n(this,e);this.authCancel=a(this,"authCancel",7);this.authSuccess=a(this,"authSuccess",7);this.oauthPopupWindow=null;this.previousUrl=null}e.prototype.listenDialogAction=function(){this.openSignInWindow(this.auth.authURI.toString(),"ezeep Login")};e.prototype.listenDialogClose=function(){this.authCancel.emit()};e.prototype.listenStatusCancel=function(){this.authCancel.emit()};e.prototype.openSignInWindow=function(e,t){var r=this;if(Ue.state.isAuthorized){this.authCancel.emit();this.authSuccess.emit();return}window.removeEventListener("message",this.receiveMessage);var n="toolbar=no, menubar=no, width=600, height=7000, top=100, left=100";if(this.oauthPopupWindow===null||this.oauthPopupWindow.closed){this.oauthPopupWindow=window.open(e,t,n)}else if(this.previousUrl!==this.auth.authURI.toString()){this.oauthPopupWindow=window.open(e,t,n);if(!this.oauthPopupWindow||this.oauthPopupWindow.closed||typeof this.oauthPopupWindow.closed=="undefined"){alert("popup blocked")}this.oauthPopupWindow.focus()}else{this.oauthPopupWindow.focus()}window.addEventListener("message",(function(e){return r.receiveMessage(e)}),false);this.previousUrl=this.auth.authURI};e.prototype.receiveMessage=function(e){var t=this;Ue.state.code=e.data;this.auth.getAccessToken().then((function(){t.authCancel.emit();t.authSuccess.emit()}))};e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:this.auth=new je(this.redirectURI,this.clientID);if(!this.code)return[3,2];Ue.state.code=this.code;return[4,this.auth.getAccessToken()];case 1:e.sent();this.authCancel.emit();this.authSuccess.emit();e.label=2;case 2:if(!(Ue.state.isAuthorized===false))return[3,4];this.auth.generateCodeVerifier();return[4,this.auth.generateCodeChallenge(Ue.state.codeVerifier)];case 3:e.sent();this.auth.buildAuthURI();e.label=4;case 4:if(this.hidelogin&&this.trigger==="button"){this.openSignInWindow(this.auth.authURI.toString(),"ezeep Login")}return[2]}}))}))};e.prototype.render=function(){var e=this;return i(o,null,this.hidelogin&&this.trigger==="button"?i("ezp-status",{description:ze.t("login_dialog.action"),processing:true,cancel:true}):this.hidelogin&&this.trigger==="file"?i("ezp-text-button",{type:"button",level:"primary",onClick:function(){return e.openSignInWindow(e.auth.authURI.toString(),"ezeep Login")},label:ze.t("button_actions.select_printer")}):i("ezp-dialog",{heading:ze.t("login_dialog.heading"),description:ze.t("login_dialog.description"),action:ze.t("login_dialog.action"),iconName:"logo",iconSize:"huge",iconFramed:false,instance:"login"}))};return e}());Ke.style=Ve;var Ge=":host{-webkit-animation:var(--ezp-backdrop-animation-name, host-in) var(--ezp-duration-3) forwards var(--ezp-easing-out-quart);animation:var(--ezp-backdrop-animation-name, host-in) var(--ezp-duration-3) forwards var(--ezp-easing-out-quart);background:var(--ezp-core-backdrop);border-radius:var(--ezp-backdrop-border-radius, 6px);display:block;height:100%;left:0;opacity:0;position:absolute;top:0;width:100%;z-index:4}:host(.hide){--ezp-backdrop-animation-name:host-out}@-webkit-keyframes host-in{0%{opacity:0}100%{opacity:1}}@keyframes host-in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes host-out{0%{opacity:1}100%{opacity:0}}@keyframes host-out{0%{opacity:1}100%{opacity:0}}";var We=e("ezp_backdrop",function(){function e(e){n(this,e);this.backdropHideStart=a(this,"backdropHideStart",7);this.backdropHideEnd=a(this,"backdropHideEnd",7);this.visible=true}e.prototype.handleClick=function(){this.visible=false;this.backdropHideStart.emit()};e.prototype.listenAnimationEnd=function(){if(!this.visible){this.backdropHideEnd.emit()}};e.prototype.render=function(){var e=this;return i(o,{class:{hide:!this.visible},onClick:function(){return e.handleClick()}})};Object.defineProperty(e.prototype,"component",{get:function(){return s(this)},enumerable:false,configurable:true});return e}());We.style=Ge;var Xe=":host{--ezp-icon-fill:var(--ezp-theme-solid);-ms-flex-line-pack:center;align-content:center;background:var(--ezp-core-backdrop);display:grid;grid-template:auto/minmax(auto, 280px);height:100%;-ms-flex-pack:center;justify-content:center;left:0;position:fixed;top:0;width:100%}#box{background:var(--ezp-core-surface-tertiary);border-radius:6px;-webkit-box-shadow:var(--ezp-dialog-box-boxShadow, 0 0 0 1px var(--ezp-black-10));box-shadow:var(--ezp-dialog-box-boxShadow, 0 0 0 1px var(--ezp-black-10))}#header{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end;padding:var(--ezp-spacing-2) var(--ezp-spacing-3)}#body{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:var(--ezp-spacing-5);padding:0 var(--ezp-spacing-5);text-align:center}#text{color:var(--ezp-core-foreground-primary);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:var(--ezp-spacing-4)}#footer{display:grid;grid-template:auto/minmax(144px, auto);-ms-flex-pack:center;justify-content:center;padding:var(--ezp-spacing-5)}";var Qe=e("ezp_dialog",function(){function e(e){var t=this;n(this,e);this.dialogClose=a(this,"dialogClose",7);this.dialogAction=a(this,"dialogAction",7);this.action=ze.t("button_actions.close");this.iconSize="large";this.iconFramed=true;this.handleClose=function(){t.dialogClose.emit(t.instance)};this.handleAction=function(){t.dialogAction.emit(t.instance)}}e.prototype.componentWillLoad=function(){};e.prototype.render=function(){return i(o,null,i("div",{id:"box"},i("div",{id:"header"},i("ezp-icon-button",{level:"tertiary",icon:"close",type:"button",onClick:this.handleClose})),i("div",{id:"body"},this.iconName&&i("ezp-icon",{name:this.iconName,size:this.iconSize,framed:this.iconFramed}),i("div",{id:"text"},i("ezp-label",{text:this.heading,weight:"heavy"}),i("ezp-label",{text:this.description}))),i("div",{id:"footer"},i("ezp-text-button",{type:"button",level:"primary",onClick:this.handleAction,label:this.action}))))};return e}());Qe.style=Xe;var Ye=":host{-ms-flex-line-pack:center;align-content:center;background:var(--ezp-icon-background, transparent);border-radius:var(--ezp-icon-borderRadius, 0);display:grid;grid-template:var(--ezp-icon-gridTemplate)/var(--ezp-icon-gridTemplate);height:var(--ezp-icon-height, var(--ezp-icon-size));-ms-flex-pack:center;justify-content:center;padding:var(--ezp-icon-padding, 0);width:var(--ezp-icon-width, var(--ezp-icon-size))}:host(.framed){--ezp-icon-background:var(--ezp-core-shade-primary);--ezp-icon-borderRadius:50%;--ezp-icon-padding:var(--ezp-icon-frame)}:host(.normal){--ezp-icon-size:18px;--ezp-icon-gridTemplate:24px;--ezp-icon-frame:var(--ezp-spacing-3)}:host(.large){--ezp-icon-size:36px;--ezp-icon-gridTemplate:48px;--ezp-icon-frame:var(--ezp-spacing-4)}:host(.huge){--ezp-icon-size:54px;--ezp-icon-gridTemplate:72px;--ezp-icon-frame:var(--ezp-spacing-5)}svg{display:block;fill:var(--ezp-icon-fill, currentColor);height:100%;width:100%}";var Je=e("ezp_icon",function(){function e(e){n(this,e);this.size="normal";this.framed=false}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(t){switch(t.label){case 0:return[4,fetch(l("./assets/glyph-".concat(this.name,".svg"))).then((function(e){return e.text()})).then((function(t){e.glyph=t})).catch((function(e){return console.log(e)}))];case 1:t.sent();return[2]}}))}))};e.prototype.render=function(){return i(o,{class:"".concat(this.size," ").concat(this.framed?"framed":"")},i("div",{id:"glyph",innerHTML:this.glyph}))};Object.defineProperty(e,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return e}());Je.style=Ye;var $e=":host{display:block}:host(.primary){--ezp-iconButton-background-disabled:var(--ezp-core-shade-primary);--ezp-iconButton-background-init:var(--ezp-theme-solid);--ezp-iconButton-color-disabled:var(--ezp-core-foreground-tertiary);--ezp-iconButton-color-init:var(--ezp-white-100);--ezp-iconButton-opacity-active:0.74;--ezp-iconButton-opacity-hover:0.84}:host(.secondary){--ezp-iconButton-background-active:var(--ezp-core-shade-tertiary);--ezp-iconButton-background-disabled:var(--ezp-core-shade-primary);--ezp-iconButton-background-hover:var(--ezp-core-shade-secondary);--ezp-iconButton-background-init:var(--ezp-core-shade-primary);--ezp-iconButton-color-disabled:var(--ezp-core-foreground-tertiary);--ezp-iconButton-color-init:var(--ezp-theme-solid)}:host(.tertiary){--ezp-iconButton-background-active:var(--ezp-core-shade-secondary);--ezp-iconButton-background-hover:var(--ezp-core-shade-primary);--ezp-iconButton-background-init:transparent;--ezp-iconButton-color-disabled:var(--ezp-core-foreground-tertiary);--ezp-iconButton-color-init:var(--ezp-theme-solid)}:host(.quaternary){--ezp-iconButton-background-init:transparent;--ezp-iconButton-color-disabled:var(--ezp-core-foreground-tertiary);--ezp-iconButton-color-init:var(--ezp-theme-solid);--ezp-iconButton-opacity-active:0.58;--ezp-iconButton-opacity-hover:0.74}#button{-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--ezp-iconButton-background, var(--ezp-iconButton-background-init));border:0;border-radius:3px;-webkit-box-shadow:none;box-shadow:none;color:var(--ezp-iconButton-color, var(--ezp-iconButton-color-init));cursor:var(--ezp-iconButton-cursor, pointer);display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:0;opacity:var(--ezp-iconButton-opacity, 1);outline:none;padding:var(--ezp-spacing-2)}@media (hover: hover){#button:not(:disabled):hover{--ezp-iconButton-background:var(\n --ezp-iconButton-background-hover,\n var(--ezp-iconButton-background-init)\n );--ezp-iconButton-opacity:var(--ezp-iconButton-opacity-hover, 1)}#button:not(:disabled):active{--ezp-iconButton-background:var(\n --ezp-iconButton-background-active,\n var(--ezp-iconButton-background-init)\n );--ezp-iconButton-opacity:var(--ezp-iconButton-opacity-active, 1)}}#button:disabled{--ezp-iconButton-background:var(\n --ezp-iconButton-background-disabled,\n var(--ezp-iconButton-background-init)\n );--ezp-iconButton-color:var(--ezp-iconButton-color-disabled);--ezp-iconButton-cursor:default}";var Ze=e("ezp_icon_button",function(){function e(e){n(this,e);this.blank=false;this.disabled=false;this.level="primary"}e.prototype.render=function(){var e=this.type!==undefined?"button":"a";var t=this.type!==undefined?{type:this.type,disabled:this.disabled}:{href:this.href,target:this.blank?"_blank":"_self"};return i(o,{class:"".concat(this.level)},i(e,Object.assign({id:"button"},t),i("ezp-icon",{name:this.icon})))};return e}());Ze.style=$e;var et=':host{display:block;min-width:var(--ezp-label-minWidth, auto);padding-bottom:1px;padding-top:1px}:host::before,:host::after{content:"";display:block;height:0}:host::before{margin-top:calc((var(--ezp-label-offset) + 1px) * -1)}:host::after{margin-bottom:calc((var(--ezp-label-offset) + 1px) * -1)}:host(.no-wrap){--ezp-label-whiteSpace:nowrap}:host(.ellipsis){--ezp-label-minWidth:0;--ezp-label-overflow:hidden;--ezp-label-textOverflow:ellipsis;--ezp-label-whiteSpace:nowrap;--ezp-label-width:100%}:host(.primary){--ezp-label-fontSize:17px;--ezp-label-lineHeight:24px;--ezp-label-letterSpacing:-0.0127756105em;--ezp-label-offset:6px}:host(.secondary){--ezp-label-fontSize:14px;--ezp-label-lineHeight:20px;--ezp-label-letterSpacing:-0.0062235443em;--ezp-label-offset:5px}:host(.tertiary){--ezp-label-fontSize:12px;--ezp-label-lineHeight:18px;--ezp-label-letterSpacing:0.0004907745em;--ezp-label-offset:5px}:host(.soft){--ezp-label-fontWeight:400}:host(.strong){--ezp-label-fontWeight:500}:host(.heavy){--ezp-label-fontWeight:600}#text{font-size:var(--ezp-label-fontSize);font-weight:var(--ezp-label-fontWeight);letter-spacing:var(--ezp-label-letterSpacing);line-height:var(--ezp-label-lineHeight);overflow:var(--ezp-label-overflow, visible);text-overflow:var(--ezp-label-textOverflow, clip);white-space:var(--ezp-label-whiteSpace, normal);width:var(--ezp-label-width, auto)}';var tt=e("ezp_label",function(){function e(e){n(this,e);this.ellipsis=false;this.level="secondary";this.noWrap=false;this.text="Label";this.weight="soft"}e.prototype.render=function(){return i(o,{class:"".concat(this.level," ").concat(this.weight," ").concat(this.ellipsis?"ellipsis":""," ").concat(this.noWrap?"no-wrap":"")},i("div",{id:"text"},this.text))};return e}());tt.style=et;var rt=typeof globalThis!=="undefined"&&globalThis||typeof self!=="undefined"&&self||typeof rt!=="undefined"&&rt;var nt={searchParams:"URLSearchParams"in rt,iterable:"Symbol"in rt&&"iterator"in Symbol,blob:"FileReader"in rt&&"Blob"in rt&&function(){try{new Blob;return true}catch(e){return false}}(),formData:"FormData"in rt,arrayBuffer:"ArrayBuffer"in rt};function at(e){return e&&DataView.prototype.isPrototypeOf(e)}if(nt.arrayBuffer){var it=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"];var ot=ArrayBuffer.isView||function(e){return e&&it.indexOf(Object.prototype.toString.call(e))>-1}}function st(e){if(typeof e!=="string"){e=String(e)}if(/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||e===""){throw new TypeError('Invalid character in header field name: "'+e+'"')}return e.toLowerCase()}function lt(e){if(typeof e!=="string"){e=String(e)}return e}function ct(e){var t={next:function(){var t=e.shift();return{done:t===undefined,value:t}}};if(nt.iterable){t[Symbol.iterator]=function(){return t}}return t}function pt(e){this.map={};if(e instanceof pt){e.forEach((function(e,t){this.append(t,e)}),this)}else if(Array.isArray(e)){e.forEach((function(e){this.append(e[0],e[1])}),this)}else if(e){Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}}pt.prototype.append=function(e,t){e=st(e);t=lt(t);var r=this.map[e];this.map[e]=r?r+", "+t:t};pt.prototype["delete"]=function(e){delete this.map[st(e)]};pt.prototype.get=function(e){e=st(e);return this.has(e)?this.map[e]:null};pt.prototype.has=function(e){return this.map.hasOwnProperty(st(e))};pt.prototype.set=function(e,t){this.map[st(e)]=lt(t)};pt.prototype.forEach=function(e,t){for(var r in this.map){if(this.map.hasOwnProperty(r)){e.call(t,this.map[r],r,this)}}};pt.prototype.keys=function(){var e=[];this.forEach((function(t,r){e.push(r)}));return ct(e)};pt.prototype.values=function(){var e=[];this.forEach((function(t){e.push(t)}));return ct(e)};pt.prototype.entries=function(){var e=[];this.forEach((function(t,r){e.push([r,t])}));return ct(e)};if(nt.iterable){pt.prototype[Symbol.iterator]=pt.prototype.entries}function dt(e){if(e.bodyUsed){return Promise.reject(new TypeError("Already read"))}e.bodyUsed=true}function ut(e){return new Promise((function(t,r){e.onload=function(){t(e.result)};e.onerror=function(){r(e.error)}}))}function mt(e){var t=new FileReader;var r=ut(t);t.readAsArrayBuffer(e);return r}function ft(e){var t=new FileReader;var r=ut(t);t.readAsText(e);return r}function ht(e){var t=new Uint8Array(e);var r=new Array(t.length);for(var n=0;n<t.length;n++){r[n]=String.fromCharCode(t[n])}return r.join("")}function gt(e){if(e.slice){return e.slice(0)}else{var t=new Uint8Array(e.byteLength);t.set(new Uint8Array(e));return t.buffer}}function yt(){this.bodyUsed=false;this._initBody=function(e){this.bodyUsed=this.bodyUsed;this._bodyInit=e;if(!e){this._bodyText=""}else if(typeof e==="string"){this._bodyText=e}else if(nt.blob&&Blob.prototype.isPrototypeOf(e)){this._bodyBlob=e}else if(nt.formData&&FormData.prototype.isPrototypeOf(e)){this._bodyFormData=e}else if(nt.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)){this._bodyText=e.toString()}else if(nt.arrayBuffer&&nt.blob&&at(e)){this._bodyArrayBuffer=gt(e.buffer);this._bodyInit=new Blob([this._bodyArrayBuffer])}else if(nt.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||ot(e))){this._bodyArrayBuffer=gt(e)}else{this._bodyText=e=Object.prototype.toString.call(e)}if(!this.headers.get("content-type")){if(typeof e==="string"){this.headers.set("content-type","text/plain;charset=UTF-8")}else if(this._bodyBlob&&this._bodyBlob.type){this.headers.set("content-type",this._bodyBlob.type)}else if(nt.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)){this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8")}}};if(nt.blob){this.blob=function(){var e=dt(this);if(e){return e}if(this._bodyBlob){return Promise.resolve(this._bodyBlob)}else if(this._bodyArrayBuffer){return Promise.resolve(new Blob([this._bodyArrayBuffer]))}else if(this._bodyFormData){throw new Error("could not read FormData body as blob")}else{return Promise.resolve(new Blob([this._bodyText]))}};this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=dt(this);if(e){return e}if(ArrayBuffer.isView(this._bodyArrayBuffer)){return Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength))}else{return Promise.resolve(this._bodyArrayBuffer)}}else{return this.blob().then(mt)}}}this.text=function(){var e=dt(this);if(e){return e}if(this._bodyBlob){return ft(this._bodyBlob)}else if(this._bodyArrayBuffer){return Promise.resolve(ht(this._bodyArrayBuffer))}else if(this._bodyFormData){throw new Error("could not read FormData body as text")}else{return Promise.resolve(this._bodyText)}};if(nt.formData){this.formData=function(){return this.text().then(Nt)}}this.json=function(){return this.text().then(JSON.parse)};return this}var vt=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function bt(e){var t=e.toUpperCase();return vt.indexOf(t)>-1?t:e}function xt(e,t){if(!(this instanceof xt)){throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.')}t=t||{};var r=t.body;if(e instanceof xt){if(e.bodyUsed){throw new TypeError("Already read")}this.url=e.url;this.credentials=e.credentials;if(!t.headers){this.headers=new pt(e.headers)}this.method=e.method;this.mode=e.mode;this.signal=e.signal;if(!r&&e._bodyInit!=null){r=e._bodyInit;e.bodyUsed=true}}else{this.url=String(e)}this.credentials=t.credentials||this.credentials||"same-origin";if(t.headers||!this.headers){this.headers=new pt(t.headers)}this.method=bt(t.method||this.method||"GET");this.mode=t.mode||this.mode||null;this.signal=t.signal||this.signal;this.referrer=null;if((this.method==="GET"||this.method==="HEAD")&&r){throw new TypeError("Body not allowed for GET or HEAD requests")}this._initBody(r);if(this.method==="GET"||this.method==="HEAD"){if(t.cache==="no-store"||t.cache==="no-cache"){var n=/([?&])_=[^&]*/;if(n.test(this.url)){this.url=this.url.replace(n,"$1_="+(new Date).getTime())}else{var a=/\?/;this.url+=(a.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}}xt.prototype.clone=function(){return new xt(this,{body:this._bodyInit})};function Nt(e){var t=new FormData;e.trim().split("&").forEach((function(e){if(e){var r=e.split("=");var n=r.shift().replace(/\+/g," ");var a=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(a))}}));return t}function zt(e){var t=new pt;var r=e.replace(/\r?\n[\t ]+/g," ");r.split("\r").map((function(e){return e.indexOf("\n")===0?e.substr(1,e.length):e})).forEach((function(e){var r=e.split(":");var n=r.shift().trim();if(n){var a=r.join(":").trim();t.append(n,a)}}));return t}yt.call(xt.prototype);function St(e,t){if(!(this instanceof St)){throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.')}if(!t){t={}}this.type="default";this.status=t.status===undefined?200:t.status;this.ok=this.status>=200&&this.status<300;this.statusText=t.statusText===undefined?"":""+t.statusText;this.headers=new pt(t.headers);this.url=t.url||"";this._initBody(e)}yt.call(St.prototype);St.prototype.clone=function(){return new St(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new pt(this.headers),url:this.url})};St.error=function(){var e=new St(null,{status:0,statusText:""});e.type="error";return e};var wt=[301,302,303,307,308];St.redirect=function(e,t){if(wt.indexOf(t)===-1){throw new RangeError("Invalid status code")}return new St(null,{status:t,headers:{location:e}})};var Pt=rt.DOMException;try{new Pt}catch(e){Pt=function(e,t){this.message=e;this.name=t;var r=Error(e);this.stack=r.stack};Pt.prototype=Object.create(Error.prototype);Pt.prototype.constructor=Pt}function Ct(e,t){return new Promise((function(r,n){var a=new xt(e,t);if(a.signal&&a.signal.aborted){return n(new Pt("Aborted","AbortError"))}var i=new XMLHttpRequest;function o(){i.abort()}i.onload=function(){var e={status:i.status,statusText:i.statusText,headers:zt(i.getAllResponseHeaders()||"")};e.url="responseURL"in i?i.responseURL:e.headers.get("X-Request-URL");var t="response"in i?i.response:i.responseText;setTimeout((function(){r(new St(t,e))}),0)};i.onerror=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)};i.ontimeout=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)};i.onabort=function(){setTimeout((function(){n(new Pt("Aborted","AbortError"))}),0)};function s(e){try{return e===""&&rt.location.href?rt.location.href:e}catch(t){return e}}i.open(a.method,s(a.url),true);if(a.credentials==="include"){i.withCredentials=true}else if(a.credentials==="omit"){i.withCredentials=false}if("responseType"in i){if(nt.blob){i.responseType="blob"}else if(nt.arrayBuffer&&a.headers.get("Content-Type")&&a.headers.get("Content-Type").indexOf("application/octet-stream")!==-1){i.responseType="arraybuffer"}}if(t&&typeof t.headers==="object"&&!(t.headers instanceof pt)){Object.getOwnPropertyNames(t.headers).forEach((function(e){i.setRequestHeader(e,lt(t.headers[e]))}))}else{a.headers.forEach((function(e,t){i.setRequestHeader(t,e)}))}if(a.signal){a.signal.addEventListener("abort",o);i.onreadystatechange=function(){if(i.readyState===4){a.signal.removeEventListener("abort",o)}}}i.send(typeof a._bodyInit==="undefined"?null:a._bodyInit)}))}Ct.polyfill=true;if(!rt.fetch){rt.fetch=Ct;rt.Headers=pt;rt.Request=xt;rt.Response=St}var Rt=Object.freeze({__proto__:null,Headers:pt,Request:xt,Response:St,get DOMException(){return Pt},fetch:Ct});var _t=_(Rt);var Et=function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={exports:{},id:n,loaded:false};e[n].call(a.exports,a,a.exports,r);a.loaded=true;return a.exports}r.m=e;r.c=t;r.p="";return r(0)}([function(e,t,r){var n=r(1);var a=typeof importScripts==="function";e.exports=n(a?self:window)},function(e,t,r){function n(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++){r[t]=e[t]}return r}else{return Array.from(e)}}var a=[];function i(e){for(var t=arguments.length,r=Array(t>1?t-1:0),i=1;i<t;i++){r[i-1]=arguments[i]}var o=a.reduce((function(e,t){return[t].concat(e)}),[]);var s=Promise.resolve(r);o.forEach((function(e){var t=e.request,r=e.requestError;if(t||r){s=s.then((function(e){return t.apply(undefined,n(e))}),r)}}));s=s.then((function(t){var r=new(Function.prototype.bind.apply(Request,[null].concat(n(t))));return e(r).then((function(e){e.request=r;return e})).catch((function(e){e.request=r;return Promise.reject(e)}))}));o.forEach((function(e){var t=e.response,r=e.responseError;if(t||r){s=s.then(t,r)}}));return s}e.exports=function e(t){if(!t.fetch){try{r(2)}catch(e){throw Error("No fetch available. Unable to register fetch-intercept")}}t.fetch=function(e){return function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++){r[n]=arguments[n]}return i.apply(undefined,[e].concat(r))}}(t.fetch);return{register:function e(t){a.push(t);return function(){var e=a.indexOf(t);if(e>=0){a.splice(e,1)}}},clear:function e(){a=[]}}}},function(e,t){e.exports=_t}]);function kt(e){return e.toLowerCase()}function Ot(e){if(e&&typeof e==="object"){var t=e;if(typeof t.rawHeaders==="function"&&typeof t.clone==="function"&&typeof t.get==="function"&&typeof t.set==="function"&&typeof t.contains==="function"&&typeof t.remove==="function"&&typeof t.headersArray==="function"&&typeof t.headerValues==="function"&&typeof t.headerNames==="function"&&typeof t.toJson==="function"){return true}}return false}var Tt=function(){function e(e){this._headersMap={};if(e){for(var t in e){this.set(t,e[t])}}}e.prototype.set=function(e,t){this._headersMap[kt(e)]={name:e,value:t.toString()}};e.prototype.get=function(e){var t=this._headersMap[kt(e)];return!t?undefined:t.value};e.prototype.contains=function(e){return!!this._headersMap[kt(e)]};e.prototype.remove=function(e){var t=this.contains(e);delete this._headersMap[kt(e)];return t};e.prototype.rawHeaders=function(){return this.toJson({preserveCase:true})};e.prototype.headersArray=function(){var e=[];for(var t in this._headersMap){e.push(this._headersMap[t])}return e};e.prototype.headerNames=function(){var e=[];var t=this.headersArray();for(var r=0;r<t.length;++r){e.push(t[r].name)}return e};e.prototype.headerValues=function(){var e=[];var t=this.headersArray();for(var r=0;r<t.length;++r){e.push(t[r].value)}return e};e.prototype.toJson=function(e){if(e===void 0){e={}}var t={};if(e.preserveCase){for(var r in this._headersMap){var n=this._headersMap[r];t[n.name]=n.value}}else{for(var r in this._headersMap){var n=this._headersMap[r];t[kt(n.name)]=n.value}}return t};e.prototype.toString=function(){return JSON.stringify(this.toJson({preserveCase:true}))};e.prototype.clone=function(){var t={};for(var r in this._headersMap){var n=this._headersMap[r];t[n.name]=n.value}return new e(t)};return e}();function Bt(e){var t="";for(var r=0;r<e.length;r++){t+=String.fromCharCode(e[r])}return btoa(t)}function qt(e){var t=atob(e);var r=new Uint8Array(t.length);for(var n=0;n<t.length;n++){r[n]=t.charCodeAt(n)}return r}var Mt=P.process;var At={coreHttpVersion:"2.2.3",HTTP:"http:",HTTPS:"https:",HTTP_PROXY:"HTTP_PROXY",HTTPS_PROXY:"HTTPS_PROXY",NO_PROXY:"NO_PROXY",ALL_PROXY:"ALL_PROXY",HttpConstants:{HttpVerbs:{PUT:"PUT",GET:"GET",DELETE:"DELETE",POST:"POST",MERGE:"MERGE",HEAD:"HEAD",PATCH:"PATCH"},StatusCodes:{TooManyRequests:429,ServiceUnavailable:503}},HeaderConstants:{AUTHORIZATION:"authorization",AUTHORIZATION_SCHEME:"Bearer",RETRY_AFTER:"Retry-After",USER_AGENT:"User-Agent"}};var It="$";var Ht="_";var Lt;var Dt=new Uint8Array(16);function jt(){if(!Lt){Lt=typeof crypto!=="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!=="undefined"&&typeof msCrypto.getRandomValues==="function"&&msCrypto.getRandomValues.bind(msCrypto);if(!Lt){throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported")}}return Lt(Dt)}var Ut=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Ft(e){return typeof e==="string"&&Ut.test(e)}var Vt=[];for(var Kt=0;Kt<256;++Kt){Vt.push((Kt+256).toString(16).substr(1))}function Gt(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;var r=(Vt[e[t+0]]+Vt[e[t+1]]+Vt[e[t+2]]+Vt[e[t+3]]+"-"+Vt[e[t+4]]+Vt[e[t+5]]+"-"+Vt[e[t+6]]+Vt[e[t+7]]+"-"+Vt[e[t+8]]+Vt[e[t+9]]+"-"+Vt[e[t+10]]+Vt[e[t+11]]+Vt[e[t+12]]+Vt[e[t+13]]+Vt[e[t+14]]+Vt[e[t+15]]).toLowerCase();if(!Ft(r)){throw TypeError("Stringified UUID is invalid")}return r}function Wt(e,t,r){e=e||{};var n=e.random||(e.rng||jt)();n[6]=n[6]&15|64;n[8]=n[8]&63|128;if(t){r=r||0;for(var a=0;a<16;++a){t[r+a]=n[a]}return t}return Gt(n)}var Xt=/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/i;var Qt=typeof Mt!=="undefined"&&!!Mt.version&&!!Mt.versions&&!!Mt.versions.node;function Yt(e){return Xt.test(e)}function Jt(){return Wt()}function $t(e,t,r,n){var a,i,o;if(!Array.isArray(e)){e=[e]}if(!r||!n){return a={},a[t]=e,a}var s=(i={},i[t]=e,i);s[It]=(o={},o[r]=n,o);return s}var Zt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function er(e){return Zt.test(e)}function tr(e,t,r){return!e||!t?e:e.split(t).join(r||"")}function rr(e){return typeof e!=="object"&&typeof e!=="function"||e===null}function nr(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}var ar=function(){function e(e,t){if(e===void 0){e={}}this.modelMappers=e;this.isXML=t}e.prototype.validateConstraints=function(e,t,r){var n=function(e,n){throw new Error('"'.concat(r,'" with value "').concat(t,'" should satisfy the constraint "').concat(e,'": ').concat(n,"."))};if(e.constraints&&t!=undefined){var a=t;var i=e.constraints,o=i.ExclusiveMaximum,s=i.ExclusiveMinimum,l=i.InclusiveMaximum,c=i.InclusiveMinimum,p=i.MaxItems,d=i.MaxLength,u=i.MinItems,m=i.MinLength,f=i.MultipleOf,h=i.Pattern,g=i.UniqueItems;if(o!=undefined&&a>=o){n("ExclusiveMaximum",o)}if(s!=undefined&&a<=s){n("ExclusiveMinimum",s)}if(l!=undefined&&a>l){n("InclusiveMaximum",l)}if(c!=undefined&&a<c){n("InclusiveMinimum",c)}var y=t;if(p!=undefined&&y.length>p){n("MaxItems",p)}if(d!=undefined&&y.length>d){n("MaxLength",d)}if(u!=undefined&&y.length<u){n("MinItems",u)}if(m!=undefined&&y.length<m){n("MinLength",m)}if(f!=undefined&&a%f!==0){n("MultipleOf",f)}if(h){var v=typeof h==="string"?new RegExp(h):h;if(typeof t!=="string"||t.match(v)===null){n("Pattern",h)}}if(g&&y.some((function(e,t,r){return r.indexOf(e)!==t}))){n("UniqueItems",g)}}};e.prototype.serialize=function(e,t,r,n){if(n===void 0){n={}}var a,i,o;var s={rootName:(a=n.rootName)!==null&&a!==void 0?a:"",includeRoot:(i=n.includeRoot)!==null&&i!==void 0?i:false,xmlCharKey:(o=n.xmlCharKey)!==null&&o!==void 0?o:Ht};var l={};var c=e.type.name;if(!r){r=e.serializedName}if(c.match(/^Sequence$/i)!==null){l=[]}if(e.isConstant){t=e.defaultValue}var p=e.required,d=e.nullable;if(p&&d&&t===undefined){throw new Error("".concat(r," cannot be undefined."))}if(p&&!d&&t==undefined){throw new Error("".concat(r," cannot be null or undefined."))}if(!p&&d===false&&t===null){throw new Error("".concat(r," cannot be null."))}if(t==undefined){l=t}else{this.validateConstraints(e,t,r);if(c.match(/^any$/i)!==null){l=t}else if(c.match(/^(Number|String|Boolean|Object|Stream|Uuid)$/i)!==null){l=dr(c,r,t)}else if(c.match(/^Enum$/i)!==null){var u=e;l=ur(r,u.type.allowedValues,t)}else if(c.match(/^(Date|DateTime|TimeSpan|DateTimeRfc1123|UnixTime)$/i)!==null){l=hr(c,t,r)}else if(c.match(/^ByteArray$/i)!==null){l=mr(r,t)}else if(c.match(/^Base64Url$/i)!==null){l=fr(r,t)}else if(c.match(/^Sequence$/i)!==null){l=gr(this,e,t,r,Boolean(this.isXML),s)}else if(c.match(/^Dictionary$/i)!==null){l=yr(this,e,t,r,Boolean(this.isXML),s)}else if(c.match(/^Composite$/i)!==null){l=Nr(this,e,t,r,Boolean(this.isXML),s)}}return l};e.prototype.deserialize=function(e,t,r,n){if(n===void 0){n={}}var a,i,o;var s={rootName:(a=n.rootName)!==null&&a!==void 0?a:"",includeRoot:(i=n.includeRoot)!==null&&i!==void 0?i:false,xmlCharKey:(o=n.xmlCharKey)!==null&&o!==void 0?o:Ht};if(t==undefined){if(this.isXML&&e.type.name==="Sequence"&&!e.xmlIsWrapped){t=[]}if(e.defaultValue!==undefined){t=e.defaultValue}return t}var l;var c=e.type.name;if(!r){r=e.serializedName}if(c.match(/^Composite$/i)!==null){l=wr(this,e,t,r,s)}else{if(this.isXML){var p=s.xmlCharKey;var d=t;if(d[It]!=undefined&&d[p]!=undefined){t=d[p]}}if(c.match(/^Number$/i)!==null){l=parseFloat(t);if(isNaN(l)){l=t}}else if(c.match(/^Boolean$/i)!==null){if(t==="true"){l=true}else if(t==="false"){l=false}else{l=t}}else if(c.match(/^(String|Enum|Object|Stream|Uuid|TimeSpan|any)$/i)!==null){l=t}else if(c.match(/^(Date|DateTime|DateTimeRfc1123)$/i)!==null){l=new Date(t)}else if(c.match(/^UnixTime$/i)!==null){l=pr(t)}else if(c.match(/^ByteArray$/i)!==null){l=qt(t)}else if(c.match(/^Base64Url$/i)!==null){l=sr(t)}else if(c.match(/^Sequence$/i)!==null){l=Cr(this,e,t,r,s)}else if(c.match(/^Dictionary$/i)!==null){l=Pr(this,e,t,r,s)}}if(e.isConstant){l=e.defaultValue}return l};return e}();function ir(e,t){var r=e.length;while(r-1>=0&&e[r-1]===t){--r}return e.substr(0,r)}function or(e){if(!e){return undefined}if(!(e instanceof Uint8Array)){throw new Error("Please provide an input of type Uint8Array for converting to Base64Url.")}var t=Bt(e);return ir(t,"=").replace(/\+/g,"-").replace(/\//g,"_")}function sr(e){if(!e){return undefined}if(e&&typeof e.valueOf()!=="string"){throw new Error("Please provide an input of type string for converting to Uint8Array")}e=e.replace(/-/g,"+").replace(/_/g,"/");return qt(e)}function lr(e){var t=[];var r="";if(e){var n=e.split(".");for(var a=0,i=n;a<i.length;a++){var o=i[a];if(o.charAt(o.length-1)==="\\"){r+=o.substr(0,o.length-1)+"."}else{r+=o;t.push(r);r=""}}}return t}function cr(e){if(!e){return undefined}if(typeof e.valueOf()==="string"){e=new Date(e)}return Math.floor(e.getTime()/1e3)}function pr(e){if(!e){return undefined}return new Date(e*1e3)}function dr(e,t,r){if(r!==null&&r!==undefined){if(e.match(/^Number$/i)!==null){if(typeof r!=="number"){throw new Error("".concat(t," with value ").concat(r," must be of type number."))}}else if(e.match(/^String$/i)!==null){if(typeof r.valueOf()!=="string"){throw new Error("".concat(t,' with value "').concat(r,'" must be of type string.'))}}else if(e.match(/^Uuid$/i)!==null){if(!(typeof r.valueOf()==="string"&&Yt(r))){throw new Error("".concat(t,' with value "').concat(r,'" must be of type string and a valid uuid.'))}}else if(e.match(/^Boolean$/i)!==null){if(typeof r!=="boolean"){throw new Error("".concat(t," with value ").concat(r," must be of type boolean."))}}else if(e.match(/^Stream$/i)!==null){var n=typeof r;if(n!=="string"&&n!=="function"&&!(r instanceof ArrayBuffer)&&!ArrayBuffer.isView(r)&&!((typeof Blob==="function"||typeof Blob==="object")&&r instanceof Blob)){throw new Error("".concat(t," must be a string, Blob, ArrayBuffer, ArrayBufferView, or a function returning NodeJS.ReadableStream."))}}}return r}function ur(e,t,r){if(!t){throw new Error("Please provide a set of allowedValues to validate ".concat(e," as an Enum Type."))}var n=t.some((function(e){if(typeof e.valueOf()==="string"){return e.toLowerCase()===r.toLowerCase()}return e===r}));if(!n){throw new Error("".concat(r," is not a valid value for ").concat(e,". The valid values are: ").concat(JSON.stringify(t),"."))}return r}function mr(e,t){var r="";if(t!=undefined){if(!(t instanceof Uint8Array)){throw new Error("".concat(e," must be of type Uint8Array."))}r=Bt(t)}return r}function fr(e,t){var r="";if(t!=undefined){if(!(t instanceof Uint8Array)){throw new Error("".concat(e," must be of type Uint8Array."))}r=or(t)||""}return r}function hr(e,t,r){if(t!=undefined){if(e.match(/^Date$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==="string"&&!isNaN(Date.parse(t)))){throw new Error("".concat(r," must be an instanceof Date or a string in ISO8601 format."))}t=t instanceof Date?t.toISOString().substring(0,10):new Date(t).toISOString().substring(0,10)}else if(e.match(/^DateTime$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==="string"&&!isNaN(Date.parse(t)))){throw new Error("".concat(r," must be an instanceof Date or a string in ISO8601 format."))}t=t instanceof Date?t.toISOString():new Date(t).toISOString()}else if(e.match(/^DateTimeRfc1123$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==="string"&&!isNaN(Date.parse(t)))){throw new Error("".concat(r," must be an instanceof Date or a string in RFC-1123 format."))}t=t instanceof Date?t.toUTCString():new Date(t).toUTCString()}else if(e.match(/^UnixTime$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==="string"&&!isNaN(Date.parse(t)))){throw new Error("".concat(r," must be an instanceof Date or a string in RFC-1123/ISO8601 format ")+"for it to be serialized in UnixTime/Epoch format.")}t=cr(t)}else if(e.match(/^TimeSpan$/i)!==null){if(!er(t)){throw new Error("".concat(r,' must be a string in ISO 8601 format. Instead was "').concat(t,'".'))}}}return t}function gr(e,t,r,n,a,i){var o,s;if(!Array.isArray(r)){throw new Error("".concat(n," must be of type Array."))}var l=t.type.element;if(!l||typeof l!=="object"){throw new Error('element" metadata for an Array must be defined in the '+'mapper and it must of type "object" in '.concat(n,"."))}var c=[];for(var p=0;p<r.length;p++){var d=e.serialize(l,r[p],n,i);if(a&&l.xmlNamespace){var u=l.xmlNamespacePrefix?"xmlns:".concat(l.xmlNamespacePrefix):"xmlns";if(l.type.name==="Composite"){c[p]=Object.assign({},d);c[p][It]=(o={},o[u]=l.xmlNamespace,o)}else{c[p]={};c[p][i.xmlCharKey]=d;c[p][It]=(s={},s[u]=l.xmlNamespace,s)}}else{c[p]=d}}return c}function yr(e,t,r,n,a,i){var o;if(typeof r!=="object"){throw new Error("".concat(n," must be of type object."))}var s=t.type.value;if(!s||typeof s!=="object"){throw new Error('"value" metadata for a Dictionary must be defined in the '+'mapper and it must of type "object" in '.concat(n,"."))}var l={};for(var c=0,p=Object.keys(r);c<p.length;c++){var d=p[c];var u=e.serialize(s,r[d],n,i);l[d]=zr(s,u,a,i)}if(a&&t.xmlNamespace){var m=t.xmlNamespacePrefix?"xmlns:".concat(t.xmlNamespacePrefix):"xmlns";var f=l;f[It]=(o={},o[m]=t.xmlNamespace,o);return f}return l}function vr(e,t,r){var n=t.type.additionalProperties;if(!n&&t.type.className){var a=br(e,t,r);return a===null||a===void 0?void 0:a.type.additionalProperties}return n}function br(e,t,r){var n=t.type.className;if(!n){throw new Error('Class name for model "'.concat(r,'" is not provided in the mapper "').concat(JSON.stringify(t,undefined,2),'".'))}return e.modelMappers[n]}function xr(e,t,r){var n=t.type.modelProperties;if(!n){var a=br(e,t,r);if(!a){throw new Error('mapper() cannot be null or undefined for model "'.concat(t.type.className,'".'))}n=a===null||a===void 0?void 0:a.type.modelProperties;if(!n){throw new Error("modelProperties cannot be null or undefined in the "+'mapper "'.concat(JSON.stringify(a),'" of type "').concat(t.type.className,'" for object "').concat(r,'".'))}}return n}function Nr(e,t,r,n,a,i){var o,s;if(_r(e,t)){t=Rr(e,t,r,"clientName")}if(r!=undefined){var l={};var c=xr(e,t,n);for(var p=0,d=Object.keys(c);p<d.length;p++){var u=d[p];var m=c[u];if(m.readOnly){continue}var f=void 0;var h=l;if(e.isXML){if(m.xmlIsWrapped){f=m.xmlName}else{f=m.xmlElementName||m.xmlName}}else{var g=lr(m.serializedName);f=g.pop();for(var y=0,v=g;y<v.length;y++){var b=v[y];var x=h[b];if(x==undefined&&(r[u]!=undefined||m.defaultValue!==undefined)){h[b]={}}h=h[b]}}if(h!=undefined){if(a&&t.xmlNamespace){var N=t.xmlNamespacePrefix?"xmlns:".concat(t.xmlNamespacePrefix):"xmlns";h[It]=Object.assign(Object.assign({},h[It]),(o={},o[N]=t.xmlNamespace,o))}var z=m.serializedName!==""?n+"."+m.serializedName:n;var S=r[u];var w=_r(e,t);if(w&&w.clientName===u&&S==undefined){S=t.serializedName}var P=e.serialize(m,S,z,i);if(P!==undefined&&f!=undefined){var C=zr(m,P,a,i);if(a&&m.xmlIsAttribute){h[It]=h[It]||{};h[It][f]=P}else if(a&&m.xmlIsWrapped){h[f]=(s={},s[m.xmlElementName]=C,s)}else{h[f]=C}}}}var R=vr(e,t,n);if(R){var _=Object.keys(c);var E=function(t){var a=_.every((function(e){return e!==t}));if(a){l[t]=e.serialize(R,r[t],n+'["'+t+'"]',i)}};for(var k in r){E(k)}}return l}return r}function zr(e,t,r,n){var a;if(!r||!e.xmlNamespace){return t}var i=e.xmlNamespacePrefix?"xmlns:".concat(e.xmlNamespacePrefix):"xmlns";var o=(a={},a[i]=e.xmlNamespace,a);if(["Composite"].includes(e.type.name)){if(t[It]){return t}else{var s=Object.assign({},t);s[It]=o;return s}}var l={};l[n.xmlCharKey]=t;l[It]=o;return l}function Sr(e,t){return[It,t.xmlCharKey].includes(e)}function wr(e,t,r,n,a){var i;if(_r(e,t)){t=Rr(e,t,r,"serializedName")}var o=xr(e,t,n);var s={};var l=[];for(var c=0,p=Object.keys(o);c<p.length;c++){var d=p[c];var u=o[d];var m=lr(o[d].serializedName);l.push(m[0]);var f=u.serializedName,h=u.xmlName,g=u.xmlElementName;var y=n;if(f!==""&&f!==undefined){y=n+"."+f}var v=u.headerCollectionPrefix;if(v){var b={};for(var x=0,N=Object.keys(r);x<N.length;x++){var z=N[x];if(z.startsWith(v)){b[z.substring(v.length)]=e.deserialize(u.type.value,r[z],y,a)}l.push(z)}s[d]=b}else if(e.isXML){if(u.xmlIsAttribute&&r[It]){s[d]=e.deserialize(u,r[It][h],y,a)}else{var S=g||h||f;if(u.xmlIsWrapped){var w=r[h];var P=(i=w===null||w===void 0?void 0:w[g])!==null&&i!==void 0?i:[];s[d]=e.deserialize(u,P,y,a)}else{var C=r[S];s[d]=e.deserialize(u,C,y,a)}}}else{var R=void 0;var _=r;for(var E=0,k=m;E<k.length;E++){var O=k[E];if(!_)break;_=_[O]}R=_;var T=t.type.polymorphicDiscriminator;if(T&&d===T.clientName&&R==undefined){R=t.serializedName}var B=void 0;if(Array.isArray(r[d])&&o[d].serializedName===""){R=r[d];var q=e.deserialize(u,R,y,a);for(var M=0,A=Object.entries(s);M<A.length;M++){var I=A[M],H=I[0],L=I[1];if(!Object.prototype.hasOwnProperty.call(q,H)){q[H]=L}}s=q}else if(R!==undefined||u.defaultValue!==undefined){B=e.deserialize(u,R,y,a);s[d]=B}}}var D=t.type.additionalProperties;if(D){var j=function(e){for(var t in o){var r=lr(o[t].serializedName);if(r[0]===e){return false}}return true};for(var U in r){if(j(U)){s[U]=e.deserialize(D,r[U],n+'["'+U+'"]',a)}}}else if(r){for(var F=0,V=Object.keys(r);F<V.length;F++){var d=V[F];if(s[d]===undefined&&!l.includes(d)&&!Sr(d,a)){s[d]=r[d]}}}return s}function Pr(e,t,r,n,a){var i=t.type.value;if(!i||typeof i!=="object"){throw new Error('"value" metadata for a Dictionary must be defined in the '+'mapper and it must of type "object" in '.concat(n))}if(r){var o={};for(var s=0,l=Object.keys(r);s<l.length;s++){var c=l[s];o[c]=e.deserialize(i,r[c],n,a)}return o}return r}function Cr(e,t,r,n,a){var i=t.type.element;if(!i||typeof i!=="object"){throw new Error('element" metadata for an Array must be defined in the '+'mapper and it must of type "object" in '.concat(n))}if(r){if(!Array.isArray(r)){r=[r]}var o=[];for(var s=0;s<r.length;s++){o[s]=e.deserialize(i,r[s],"".concat(n,"[").concat(s,"]"),a)}return o}return r}function Rr(e,t,r,n){var a=_r(e,t);if(a){var i=a[n];if(i!=undefined){var o=r[i];if(o!=undefined){var s=t.type.uberParent||t.type.className;var l=o===s?o:s+"."+o;var c=e.modelMappers.discriminators[l];if(c){t=c}}}}return t}function _r(e,t){return t.type.polymorphicDiscriminator||Er(e,t.type.uberParent)||Er(e,t.type.className)}function Er(e,t){return t&&e.modelMappers[t]&&e.modelMappers[t].type.polymorphicDiscriminator}function kr(e){var t={};for(var r=0,n=e;r<n.length;r++){var a=n[r];t[a]=a}return t}var Or=kr(["Base64Url","Boolean","ByteArray","Composite","Date","DateTime","DateTimeRfc1123","Dictionary","Enum","Number","Object","Sequence","String","Stream","TimeSpan","UnixTime"]);function Tr(e){if(e&&typeof e==="object"){var t=e;if(typeof t.url==="string"&&typeof t.method==="string"&&typeof t.headers==="object"&&Ot(t.headers)&&typeof t.validateRequestProperties==="function"&&typeof t.prepare==="function"&&typeof t.clone==="function"){return true}}return false}var Br=function(){function e(e,t,r,n,a,i,o,s,l,c,p,d,u,m,f){this.streamResponseBody=i;this.streamResponseStatusCodes=f;this.url=e||"";this.method=t||"GET";this.headers=Ot(a)?a:new Tt(a);this.body=r;this.query=n;this.formData=undefined;this.withCredentials=o||false;this.abortSignal=s;this.timeout=l||0;this.onUploadProgress=c;this.onDownloadProgress=p;this.proxySettings=d;this.keepAlive=u;this.decompressResponse=m;this.requestId=this.headers.get("x-ms-client-request-id")||Jt()}e.prototype.validateRequestProperties=function(){if(!this.method){throw new Error("WebResource.method is required.")}if(!this.url){throw new Error("WebResource.url is required.")}};e.prototype.prepare=function(e){if(!e){throw new Error("options object is required")}if(e.method===undefined||e.method===null||typeof e.method.valueOf()!=="string"){throw new Error("options.method must be a string.")}if(e.url&&e.pathTemplate){throw new Error("options.url and options.pathTemplate are mutually exclusive. Please provide exactly one of them.")}if((e.pathTemplate===undefined||e.pathTemplate===null||typeof e.pathTemplate.valueOf()!=="string")&&(e.url===undefined||e.url===null||typeof e.url.valueOf()!=="string")){throw new Error("Please provide exactly one of options.pathTemplate or options.url.")}if(e.url){if(typeof e.url!=="string"){throw new Error('options.url must be of type "string".')}this.url=e.url}if(e.method){var t=["GET","PUT","HEAD","DELETE","OPTIONS","POST","PATCH","TRACE"];if(t.indexOf(e.method.toUpperCase())===-1){throw new Error('The provided method "'+e.method+'" is invalid. Supported HTTP methods are: '+JSON.stringify(t))}}this.method=e.method.toUpperCase();if(e.pathTemplate){var r=e.pathTemplate,n=e.pathParameters;if(typeof r!=="string"){throw new Error('options.pathTemplate must be of type "string".')}if(!e.baseUrl){e.baseUrl="https://management.azure.com"}var a=e.baseUrl;var i=a+(a.endsWith("/")?"":"/")+(r.startsWith("/")?r.slice(1):r);var o=i.match(/({[\w-]*\s*[\w-]*})/gi);if(o&&o.length){if(!n){throw new Error("pathTemplate: ".concat(r," has been provided. Hence, options.pathParameters must also be provided."))}o.forEach((function(e){var t=e.slice(1,-1);var a=n[t];if(a===null||a===undefined||!(typeof a==="string"||typeof a==="object")){var o=JSON.stringify(n,undefined,2);throw new Error("pathTemplate: ".concat(r," contains the path parameter ").concat(t)+" however, it is not present in parameters: ".concat(o,".")+'The value of the path parameter can either be a "string" of the form { '.concat(t,': "some sample value" } or ')+'it can be an "object" of the form { "'.concat(t,'": { value: "some sample value", skipUrlEncoding: true } }.'))}if(typeof a.valueOf()==="string"){i=i.replace(e,encodeURIComponent(a))}if(typeof a.valueOf()==="object"){if(!a.value){throw new Error("options.pathParameters[".concat(t,'] is of type "object" but it does not contain a "value" property.'))}if(a.skipUrlEncoding){i=i.replace(e,a.value)}else{i=i.replace(e,encodeURIComponent(a.value))}}}))}this.url=i}if(e.queryParameters){var s=e.queryParameters;if(typeof s!=="object"){throw new Error("options.queryParameters must be of type object. It should be a JSON object "+'of "query-parameter-name" as the key and the "query-parameter-value" as the value. '+'The "query-parameter-value" may be fo type "string" or an "object" of the form { value: "query-parameter-value", skipUrlEncoding: true }.')}if(this.url&&this.url.indexOf("?")===-1){this.url+="?"}var l=[];this.query={};for(var c in s){var p=s[c];if(p){if(typeof p==="string"){l.push(c+"="+encodeURIComponent(p));this.query[c]=encodeURIComponent(p)}else if(typeof p==="object"){if(!p.value){throw new Error("options.queryParameters[".concat(c,'] is of type "object" but it does not contain a "value" property.'))}if(p.skipUrlEncoding){l.push(c+"="+p.value);this.query[c]=p.value}else{l.push(c+"="+encodeURIComponent(p.value));this.query[c]=encodeURIComponent(p.value)}}}}this.url+=l.join("&")}if(e.headers){var d=e.headers;for(var u=0,m=Object.keys(e.headers);u<m.length;u++){var f=m[u];this.headers.set(f,d[f])}}if(!this.headers.get("accept-language")){this.headers.set("accept-language","en-US")}if(!this.headers.get("x-ms-client-request-id")&&!e.disableClientRequestId){this.headers.set("x-ms-client-request-id",this.requestId)}if(!this.headers.get("Content-Type")){this.headers.set("Content-Type","application/json; charset=utf-8")}this.body=e.body;if(e.body!==undefined&&e.body!==null){if(e.bodyIsStream){if(!this.headers.get("Transfer-Encoding")){this.headers.set("Transfer-Encoding","chunked")}if(this.headers.get("Content-Type")!=="application/octet-stream"){this.headers.set("Content-Type","application/octet-stream")}}else{if(e.serializationMapper){this.body=new ar(e.mappers).serialize(e.serializationMapper,e.body,"requestBody")}if(!e.disableJsonStringifyOnBody){this.body=JSON.stringify(e.body)}}}if(e.spanOptions){this.spanOptions=e.spanOptions}if(e.tracingContext){this.tracingContext=e.tracingContext}this.abortSignal=e.abortSignal;this.onDownloadProgress=e.onDownloadProgress;this.onUploadProgress=e.onUploadProgress;return this};e.prototype.clone=function(){var t=new e(this.url,this.method,this.body,this.query,this.headers&&this.headers.clone(),this.streamResponseBody,this.withCredentials,this.abortSignal,this.timeout,this.onUploadProgress,this.onDownloadProgress,this.proxySettings,this.keepAlive,this.decompressResponse,this.streamResponseStatusCodes);if(this.formData){t.formData=this.formData}if(this.operationSpec){t.operationSpec=this.operationSpec}if(this.shouldDeserialize){t.shouldDeserialize=this.shouldDeserialize}if(this.operationResponseGetter){t.operationResponseGetter=this.operationResponseGetter}return t};return e}();
2
2
  /*! *****************************************************************************
3
3
  Copyright (c) Microsoft Corporation.
4
4