@ukpc-lib/react 0.2.17 → 0.2.19
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.
- package/dist/components/Notification/index.d.ts +1 -0
- package/dist/components/index.cjs +2 -2
- package/dist/components/index.js +5 -5
- package/dist/{index.module-1f98fe91.cjs → index.module-4ccadde2.cjs} +1 -1
- package/dist/{index.module-7166b9fa.js → index.module-b6c6a380.js} +2 -2
- package/dist/share/index.cjs +1 -1
- package/dist/share/index.js +2 -2
- package/package.json +1 -1
- package/web-components-bundle/global-topbar/index.cjs +1 -1
- package/web-components-bundle/global-topbar/index.js +1 -1
- package/web-components-bundle/has-permission/index.cjs +1 -1
- package/web-components-bundle/has-permission/index.js +1 -1
- package/web-components-bundle/{index-da70af08.js → index-24029b20.js} +2 -2
- package/web-components-bundle/{index-0711c7a1.cjs → index-d4707064.cjs} +1 -1
|
@@ -122,7 +122,7 @@ object-assign
|
|
|
122
122
|
@license MIT
|
|
123
123
|
*/var tf,nh;function Wb(){if(nh)return tf;nh=1;var a=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function f(p){if(p==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(p)}function o(){try{if(!Object.assign)return!1;var p=new String("abc");if(p[5]="de",Object.getOwnPropertyNames(p)[0]==="5")return!1;for(var C={},P=0;P<10;P++)C["_"+String.fromCharCode(P)]=P;var _=Object.getOwnPropertyNames(C).map(function(X){return C[X]});if(_.join("")!=="0123456789")return!1;var M={};return"abcdefghijklmnopqrst".split("").forEach(function(X){M[X]=X}),Object.keys(Object.assign({},M)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return tf=o()?Object.assign:function(p,C){for(var P,_=f(p),M,X=1;X<arguments.length;X++){P=Object(arguments[X]);for(var z in P)t.call(P,z)&&(_[z]=P[z]);if(a){M=a(P);for(var Z=0;Z<M.length;Z++)r.call(P,M[Z])&&(_[M[Z]]=P[M[Z]])}}return _},tf}var nf,rh;function Hf(){if(rh)return nf;rh=1;var a="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return nf=a,nf}var rf,ih;function Qh(){return ih||(ih=1,rf=Function.call.bind(Object.prototype.hasOwnProperty)),rf}var af,ah;function zb(){if(ah)return af;ah=1;var a=function(){};if(process.env.NODE_ENV!=="production"){var t=Hf(),r={},f=Qh();a=function(p){var C="Warning: "+p;typeof console<"u"&&console.error(C);try{throw new Error(C)}catch{}}}function o(p,C,P,_,M){if(process.env.NODE_ENV!=="production"){for(var X in p)if(f(p,X)){var z;try{if(typeof p[X]!="function"){var Z=Error((_||"React class")+": "+P+" type `"+X+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof p[X]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Z.name="Invariant Violation",Z}z=p[X](C,X,_,P,null,t)}catch(ue){z=ue}if(z&&!(z instanceof Error)&&a((_||"React class")+": type specification of "+P+" `"+X+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof z+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),z instanceof Error&&!(z.message in r)){r[z.message]=!0;var be=M?M():"";a("Failed "+P+" type: "+z.message+(be??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},af=o,af}var of,oh;function $b(){if(oh)return of;oh=1;var a=Jh(),t=Wb(),r=Hf(),f=Qh(),o=zb(),p=function(){};process.env.NODE_ENV!=="production"&&(p=function(P){var _="Warning: "+P;typeof console<"u"&&console.error(_);try{throw new Error(_)}catch{}});function C(){return null}return of=function(P,_){var M=typeof Symbol=="function"&&Symbol.iterator,X="@@iterator";function z(Re){var Oe=Re&&(M&&Re[M]||Re[X]);if(typeof Oe=="function")return Oe}var Z="<<anonymous>>",be={array:W("array"),bigint:W("bigint"),bool:W("boolean"),func:W("function"),number:W("number"),object:W("object"),string:W("string"),symbol:W("symbol"),any:_e(),arrayOf:Ie,element:Ae(),elementType:fe(),instanceOf:Be,node:Dt(),objectOf:We,oneOf:v,oneOfType:De,shape:At,exact:lt};function ue(Re,Oe){return Re===Oe?Re!==0||1/Re===1/Oe:Re!==Re&&Oe!==Oe}function ce(Re,Oe){this.message=Re,this.data=Oe&&typeof Oe=="object"?Oe:{},this.stack=""}ce.prototype=Error.prototype;function ee(Re){if(process.env.NODE_ENV!=="production")var Oe={},ze=0;function et(Ve,Ye,ut,gt,vt,ct,Lt){if(gt=gt||Z,ct=ct||ut,Lt!==r){if(_){var $e=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw $e.name="Invariant Violation",$e}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Nt=gt+":"+ut;!Oe[Nt]&&ze<3&&(p("You are manually calling a React.PropTypes validation function for the `"+ct+"` prop on `"+gt+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),Oe[Nt]=!0,ze++)}}return Ye[ut]==null?Ve?Ye[ut]===null?new ce("The "+vt+" `"+ct+"` is marked as required "+("in `"+gt+"`, but its value is `null`.")):new ce("The "+vt+" `"+ct+"` is marked as required in "+("`"+gt+"`, but its value is `undefined`.")):null:Re(Ye,ut,gt,vt,ct)}var tt=et.bind(null,!1);return tt.isRequired=et.bind(null,!0),tt}function W(Re){function Oe(ze,et,tt,Ve,Ye,ut){var gt=ze[et],vt=qt(gt);if(vt!==Re){var ct=mt(gt);return new ce("Invalid "+Ve+" `"+Ye+"` of type "+("`"+ct+"` supplied to `"+tt+"`, expected ")+("`"+Re+"`."),{expectedType:Re})}return null}return ee(Oe)}function _e(){return ee(C)}function Ie(Re){function Oe(ze,et,tt,Ve,Ye){if(typeof Re!="function")return new ce("Property `"+Ye+"` of component `"+tt+"` has invalid PropType notation inside arrayOf.");var ut=ze[et];if(!Array.isArray(ut)){var gt=qt(ut);return new ce("Invalid "+Ve+" `"+Ye+"` of type "+("`"+gt+"` supplied to `"+tt+"`, expected an array."))}for(var vt=0;vt<ut.length;vt++){var ct=Re(ut,vt,tt,Ve,Ye+"["+vt+"]",r);if(ct instanceof Error)return ct}return null}return ee(Oe)}function Ae(){function Re(Oe,ze,et,tt,Ve){var Ye=Oe[ze];if(!P(Ye)){var ut=qt(Ye);return new ce("Invalid "+tt+" `"+Ve+"` of type "+("`"+ut+"` supplied to `"+et+"`, expected a single ReactElement."))}return null}return ee(Re)}function fe(){function Re(Oe,ze,et,tt,Ve){var Ye=Oe[ze];if(!a.isValidElementType(Ye)){var ut=qt(Ye);return new ce("Invalid "+tt+" `"+Ve+"` of type "+("`"+ut+"` supplied to `"+et+"`, expected a single ReactElement type."))}return null}return ee(Re)}function Be(Re){function Oe(ze,et,tt,Ve,Ye){if(!(ze[et]instanceof Re)){var ut=Re.name||Z,gt=wt(ze[et]);return new ce("Invalid "+Ve+" `"+Ye+"` of type "+("`"+gt+"` supplied to `"+tt+"`, expected ")+("instance of `"+ut+"`."))}return null}return ee(Oe)}function v(Re){if(!Array.isArray(Re))return process.env.NODE_ENV!=="production"&&(arguments.length>1?p("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):p("Invalid argument supplied to oneOf, expected an array.")),C;function Oe(ze,et,tt,Ve,Ye){for(var ut=ze[et],gt=0;gt<Re.length;gt++)if(ue(ut,Re[gt]))return null;var vt=JSON.stringify(Re,function(Lt,$e){var Nt=mt($e);return Nt==="symbol"?String($e):$e});return new ce("Invalid "+Ve+" `"+Ye+"` of value `"+String(ut)+"` "+("supplied to `"+tt+"`, expected one of "+vt+"."))}return ee(Oe)}function We(Re){function Oe(ze,et,tt,Ve,Ye){if(typeof Re!="function")return new ce("Property `"+Ye+"` of component `"+tt+"` has invalid PropType notation inside objectOf.");var ut=ze[et],gt=qt(ut);if(gt!=="object")return new ce("Invalid "+Ve+" `"+Ye+"` of type "+("`"+gt+"` supplied to `"+tt+"`, expected an object."));for(var vt in ut)if(f(ut,vt)){var ct=Re(ut,vt,tt,Ve,Ye+"."+vt,r);if(ct instanceof Error)return ct}return null}return ee(Oe)}function De(Re){if(!Array.isArray(Re))return process.env.NODE_ENV!=="production"&&p("Invalid argument supplied to oneOfType, expected an instance of array."),C;for(var Oe=0;Oe<Re.length;Oe++){var ze=Re[Oe];if(typeof ze!="function")return p("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Xe(ze)+" at index "+Oe+"."),C}function et(tt,Ve,Ye,ut,gt){for(var vt=[],ct=0;ct<Re.length;ct++){var Lt=Re[ct],$e=Lt(tt,Ve,Ye,ut,gt,r);if($e==null)return null;$e.data&&f($e.data,"expectedType")&&vt.push($e.data.expectedType)}var Nt=vt.length>0?", expected one of type ["+vt.join(", ")+"]":"";return new ce("Invalid "+ut+" `"+gt+"` supplied to "+("`"+Ye+"`"+Nt+"."))}return ee(et)}function Dt(){function Re(Oe,ze,et,tt,Ve){return kt(Oe[ze])?null:new ce("Invalid "+tt+" `"+Ve+"` supplied to "+("`"+et+"`, expected a ReactNode."))}return ee(Re)}function Ct(Re,Oe,ze,et,tt){return new ce((Re||"React class")+": "+Oe+" type `"+ze+"."+et+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+tt+"`.")}function At(Re){function Oe(ze,et,tt,Ve,Ye){var ut=ze[et],gt=qt(ut);if(gt!=="object")return new ce("Invalid "+Ve+" `"+Ye+"` of type `"+gt+"` "+("supplied to `"+tt+"`, expected `object`."));for(var vt in Re){var ct=Re[vt];if(typeof ct!="function")return Ct(tt,Ve,Ye,vt,mt(ct));var Lt=ct(ut,vt,tt,Ve,Ye+"."+vt,r);if(Lt)return Lt}return null}return ee(Oe)}function lt(Re){function Oe(ze,et,tt,Ve,Ye){var ut=ze[et],gt=qt(ut);if(gt!=="object")return new ce("Invalid "+Ve+" `"+Ye+"` of type `"+gt+"` "+("supplied to `"+tt+"`, expected `object`."));var vt=t({},ze[et],Re);for(var ct in vt){var Lt=Re[ct];if(f(Re,ct)&&typeof Lt!="function")return Ct(tt,Ve,Ye,ct,mt(Lt));if(!Lt)return new ce("Invalid "+Ve+" `"+Ye+"` key `"+ct+"` supplied to `"+tt+"`.\nBad object: "+JSON.stringify(ze[et],null," ")+`
|
|
124
124
|
Valid keys: `+JSON.stringify(Object.keys(Re),null," "));var $e=Lt(ut,ct,tt,Ve,Ye+"."+ct,r);if($e)return $e}return null}return ee(Oe)}function kt(Re){switch(typeof Re){case"number":case"string":case"undefined":return!0;case"boolean":return!Re;case"object":if(Array.isArray(Re))return Re.every(kt);if(Re===null||P(Re))return!0;var Oe=z(Re);if(Oe){var ze=Oe.call(Re),et;if(Oe!==Re.entries){for(;!(et=ze.next()).done;)if(!kt(et.value))return!1}else for(;!(et=ze.next()).done;){var tt=et.value;if(tt&&!kt(tt[1]))return!1}}else return!1;return!0;default:return!1}}function Kt(Re,Oe){return Re==="symbol"?!0:Oe?Oe["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&Oe instanceof Symbol:!1}function qt(Re){var Oe=typeof Re;return Array.isArray(Re)?"array":Re instanceof RegExp?"object":Kt(Oe,Re)?"symbol":Oe}function mt(Re){if(typeof Re>"u"||Re===null)return""+Re;var Oe=qt(Re);if(Oe==="object"){if(Re instanceof Date)return"date";if(Re instanceof RegExp)return"regexp"}return Oe}function Xe(Re){var Oe=mt(Re);switch(Oe){case"array":case"object":return"an "+Oe;case"boolean":case"date":case"regexp":return"a "+Oe;default:return Oe}}function wt(Re){return!Re.constructor||!Re.constructor.name?Z:Re.constructor.name}return be.checkPropTypes=o,be.resetWarningCache=o.resetWarningCache,be.PropTypes=be,be},of}var sf,sh;function Vb(){if(sh)return sf;sh=1;var a=Hf();function t(){}function r(){}return r.resetWarningCache=t,sf=function(){function f(C,P,_,M,X,z){if(z!==a){var Z=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw Z.name="Invariant Violation",Z}}f.isRequired=f;function o(){return f}var p={array:f,bigint:f,bool:f,func:f,number:f,object:f,string:f,symbol:f,any:f,arrayOf:o,element:f,elementType:f,instanceOf:o,node:f,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return p.PropTypes=p,p},sf}if(process.env.NODE_ENV!=="production"){var Yb=Jh(),Gb=!0;kf.exports=$b()(Yb.isElement,Gb)}else kf.exports=Vb()();var vr=kf.exports;const Va=wc(vr);var qb=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ep(a,t){return a(t={exports:{}},t.exports),t.exports}var Xb=ep(function(a){(function(t){var r=function(ee,W,_e){if(!_(W)||X(W)||z(W)||Z(W)||P(W))return W;var Ie,Ae=0,fe=0;if(M(W))for(Ie=[],fe=W.length;Ae<fe;Ae++)Ie.push(r(ee,W[Ae],_e));else for(var Be in Ie={},W)Object.prototype.hasOwnProperty.call(W,Be)&&(Ie[ee(Be,_e)]=r(ee,W[Be],_e));return Ie},f=function(ee){return be(ee)?ee:(ee=ee.replace(/[\-_\s]+(.)?/g,function(W,_e){return _e?_e.toUpperCase():""})).substr(0,1).toLowerCase()+ee.substr(1)},o=function(ee){var W=f(ee);return W.substr(0,1).toUpperCase()+W.substr(1)},p=function(ee,W){return function(_e,Ie){var Ae=(Ie=Ie||{}).separator||"_",fe=Ie.split||/(?=[A-Z])/;return _e.split(fe).join(Ae)}(ee,W).toLowerCase()},C=Object.prototype.toString,P=function(ee){return typeof ee=="function"},_=function(ee){return ee===Object(ee)},M=function(ee){return C.call(ee)=="[object Array]"},X=function(ee){return C.call(ee)=="[object Date]"},z=function(ee){return C.call(ee)=="[object RegExp]"},Z=function(ee){return C.call(ee)=="[object Boolean]"},be=function(ee){return(ee-=0)==ee},ue=function(ee,W){var _e=W&&"process"in W?W.process:W;return typeof _e!="function"?ee:function(Ie,Ae){return _e(Ie,ee,Ae)}},ce={camelize:f,decamelize:p,pascalize:o,depascalize:p,camelizeKeys:function(ee,W){return r(ue(f,W),ee)},decamelizeKeys:function(ee,W){return r(ue(p,W),ee,W)},pascalizeKeys:function(ee,W){return r(ue(o,W),ee)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};a.exports?a.exports=ce:t.humps=ce})(qb)}).decamelize,Zb=function(a){if(Array.isArray(a))return a},Kb=function(a,t){if(typeof Symbol<"u"&&Symbol.iterator in Object(a)){var r=[],f=!0,o=!1,p=void 0;try{for(var C,P=a[Symbol.iterator]();!(f=(C=P.next()).done)&&(r.push(C.value),!t||r.length!==t);f=!0);}catch(_){o=!0,p=_}finally{try{f||P.return==null||P.return()}finally{if(o)throw p}}return r}},lh=function(a,t){(t==null||t>a.length)&&(t=a.length);for(var r=0,f=new Array(t);r<t;r++)f[r]=a[r];return f},Jb=function(a,t){if(a){if(typeof a=="string")return lh(a,t);var r=Object.prototype.toString.call(a).slice(8,-1);return r==="Object"&&a.constructor&&(r=a.constructor.name),r==="Map"||r==="Set"?Array.from(a):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?lh(a,t):void 0}},Qb=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
125
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},e0=function(a,t){return Zb(a)||Kb(a,t)||Jb(a,t)||Qb()},tp=ep(function(a){function t(){return a.exports=t=Object.assign||function(r){for(var f=1;f<arguments.length;f++){var o=arguments[f];for(var p in o)Object.prototype.hasOwnProperty.call(o,p)&&(r[p]=o[p])}return r},t.apply(this,arguments)}a.exports=t}),t0=function(a,t){if(a==null)return{};var r,f,o={},p=Object.keys(a);for(f=0;f<p.length;f++)r=p[f],t.indexOf(r)>=0||(o[r]=a[r]);return o},np=function(a,t){if(a==null)return{};var r,f,o=t0(a,t);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(a);for(f=0;f<p.length;f++)r=p[f],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(a,r)&&(o[r]=a[r])}return o},n0=qe.createContext(null);function Ef(a){var t=a.children,r=np(a,["children"]);return typeof t!="string"&&(t=jb(t)),qe.createElement("template",tp({},r,{dangerouslySetInnerHTML:{__html:t}}))}function Tf(a){var t=a.root,r=a.children;return Db.createPortal(r,t)}function r0(a){var t=qe.forwardRef(function(r,f){var o,p,C=r.mode,P=r.delegatesFocus,_=r.styleSheets,M=r.ssr,X=r.children,z=np(r,["mode","delegatesFocus","styleSheets","ssr","children"]),Z=(p=qe.useRef((o=f)&&o.current),qe.useEffect(function(){o&&(o.current=p.current)},[o]),p),be=qe.useState(null),ue=e0(be,2),ce=ue[0],ee=ue[1],W="node_".concat(C).concat(P);return qe.useLayoutEffect(function(){if(Z.current)try{if(typeof f=="function"&&f(Z.current),M){var _e=Z.current.shadowRoot;return void ee(_e)}var Ie=Z.current.attachShadow({mode:C,delegatesFocus:P});_.length>0&&(Ie.adoptedStyleSheets=_),ee(Ie)}catch(Ae){(function(fe){var Be=fe.error,v=fe.styleSheets,We=fe.root;switch(Be.name){case"NotSupportedError":v.length>0&&(We.adoptedStyleSheets=v);break;default:throw Be}})({error:Ae,styleSheets:_,root:ce})}},[f,Z,_]),qe.createElement(qe.Fragment,null,qe.createElement(a.tag,tp({key:W,ref:Z},z),(ce||M)&&qe.createElement(n0.Provider,{value:ce},M?qe.createElement(Ef,{shadowroot:C,shadowrootmode:C},a.render({root:ce,ssr:M,children:X})):qe.createElement(Tf,{root:ce},a.render({root:ce,ssr:M,children:X})))))});return t.propTypes={mode:Va.oneOf(["open","closed"]),delegatesFocus:Va.bool,styleSheets:Va.arrayOf(Va.instanceOf(globalThis.CSSStyleSheet)),ssr:Va.bool,children:Va.node},t.defaultProps={mode:"open",delegatesFocus:!1,styleSheets:[],ssr:!1,children:null},t}Ef.propTypes={children:Va.oneOfType([Va.string,Va.node])},Ef.defaultProps={children:""},Tf.propTypes={root:Va.object.isRequired,children:Va.node},Tf.defaultProps={children:null};var lf=new Map;function i0(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"core",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(f){return f.children};return new Proxy(a,{get:function(f,o){var p=Xb(o,{separator:"-"}),C="".concat(t,"-").concat(p);return lf.has(C)||lf.set(C,r0({tag:p,render:r})),lf.get(C)}})}var a0=i0();const o0={type:"logger",log(a){this.output("log",a)},warn(a){this.output("warn",a)},error(a){this.output("error",a)},output(a,t){console&&console[a]&&console[a].apply(console,t)}};let s0=class If{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,r)}init(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=t||o0,this.options=r,this.debug=r.debug}log(){for(var t=arguments.length,r=new Array(t),f=0;f<t;f++)r[f]=arguments[f];return this.forward(r,"log","",!0)}warn(){for(var t=arguments.length,r=new Array(t),f=0;f<t;f++)r[f]=arguments[f];return this.forward(r,"warn","",!0)}error(){for(var t=arguments.length,r=new Array(t),f=0;f<t;f++)r[f]=arguments[f];return this.forward(r,"error","")}deprecate(){for(var t=arguments.length,r=new Array(t),f=0;f<t;f++)r[f]=arguments[f];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}forward(t,r,f,o){return o&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${f}${this.prefix} ${t[0]}`),this.logger[r](t))}create(t){return new If(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new If(this.logger,t)}};var Uo=new s0;class xc{constructor(){this.observers={}}on(t,r){return t.split(" ").forEach(f=>{this.observers[f]||(this.observers[f]=new Map);const o=this.observers[f].get(r)||0;this.observers[f].set(r,o+1)}),this}off(t,r){if(this.observers[t]){if(!r){delete this.observers[t];return}this.observers[t].delete(r)}}emit(t){for(var r=arguments.length,f=new Array(r>1?r-1:0),o=1;o<r;o++)f[o-1]=arguments[o];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(C=>{let[P,_]=C;for(let M=0;M<_;M++)P(...f)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(C=>{let[P,_]=C;for(let M=0;M<_;M++)P.apply(P,[t,...f])})}}function Nu(){let a,t;const r=new Promise((f,o)=>{a=f,t=o});return r.resolve=a,r.reject=t,r}function uh(a){return a==null?"":""+a}function l0(a,t,r){a.forEach(f=>{t[f]&&(r[f]=t[f])})}const u0=/###/g;function Hu(a,t,r){function f(P){return P&&P.indexOf("###")>-1?P.replace(u0,"."):P}function o(){return!a||typeof a=="string"}const p=typeof t!="string"?t:t.split(".");let C=0;for(;C<p.length-1;){if(o())return{};const P=f(p[C]);!a[P]&&r&&(a[P]=new r),Object.prototype.hasOwnProperty.call(a,P)?a=a[P]:a={},++C}return o()?{}:{obj:a,k:f(p[C])}}function ch(a,t,r){const{obj:f,k:o}=Hu(a,t,Object);if(f!==void 0||t.length===1){f[o]=r;return}let p=t[t.length-1],C=t.slice(0,t.length-1),P=Hu(a,C,Object);for(;P.obj===void 0&&C.length;)p=`${C[C.length-1]}.${p}`,C=C.slice(0,C.length-1),P=Hu(a,C,Object),P&&P.obj&&typeof P.obj[`${P.k}.${p}`]<"u"&&(P.obj=void 0);P.obj[`${P.k}.${p}`]=r}function c0(a,t,r,f){const{obj:o,k:p}=Hu(a,t,Object);o[p]=o[p]||[],f&&(o[p]=o[p].concat(r)),f||o[p].push(r)}function pc(a,t){const{obj:r,k:f}=Hu(a,t);if(r)return r[f]}function f0(a,t,r){const f=pc(a,r);return f!==void 0?f:pc(t,r)}function rp(a,t,r){for(const f in t)f!=="__proto__"&&f!=="constructor"&&(f in a?typeof a[f]=="string"||a[f]instanceof String||typeof t[f]=="string"||t[f]instanceof String?r&&(a[f]=t[f]):rp(a[f],t[f],r):a[f]=t[f]);return a}function Su(a){return a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var d0={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function h0(a){return typeof a=="string"?a.replace(/[&<>"'\/]/g,t=>d0[t]):a}class p0{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const r=this.regExpMap.get(t);if(r!==void 0)return r;const f=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,f),this.regExpQueue.push(t),f}}const g0=[" ",",","?","!",";"],v0=new p0(20);function m0(a,t,r){t=t||"",r=r||"";const f=g0.filter(C=>t.indexOf(C)<0&&r.indexOf(C)<0);if(f.length===0)return!0;const o=v0.getRegExp(`(${f.map(C=>C==="?"?"\\?":C).join("|")})`);let p=!o.test(a);if(!p){const C=a.indexOf(r);C>0&&!o.test(a.substring(0,C))&&(p=!0)}return p}function _f(a,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!a)return;if(a[t])return a[t];const f=t.split(r);let o=a;for(let p=0;p<f.length;){if(!o||typeof o!="object")return;let C,P="";for(let _=p;_<f.length;++_)if(_!==p&&(P+=r),P+=f[_],C=o[P],C!==void 0){if(["string","number","boolean"].indexOf(typeof C)>-1&&_<f.length-1)continue;p+=_-p+1;break}o=C}return o}function gc(a){return a&&a.indexOf("_")>0?a.replace("_","-"):a}class fh extends xc{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const r=this.options.ns.indexOf(t);r>-1&&this.options.ns.splice(r,1)}getResource(t,r,f){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const p=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,C=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let P;t.indexOf(".")>-1?P=t.split("."):(P=[t,r],f&&(Array.isArray(f)?P.push(...f):typeof f=="string"&&p?P.push(...f.split(p)):P.push(f)));const _=pc(this.data,P);return!_&&!r&&!f&&t.indexOf(".")>-1&&(t=P[0],r=P[1],f=P.slice(2).join(".")),_||!C||typeof f!="string"?_:_f(this.data&&this.data[t]&&this.data[t][r],f,p)}addResource(t,r,f,o){let p=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const C=p.keySeparator!==void 0?p.keySeparator:this.options.keySeparator;let P=[t,r];f&&(P=P.concat(C?f.split(C):f)),t.indexOf(".")>-1&&(P=t.split("."),o=r,r=P[1]),this.addNamespaces(r),ch(this.data,P,o),p.silent||this.emit("added",t,r,f,o)}addResources(t,r,f){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const p in f)(typeof f[p]=="string"||Object.prototype.toString.apply(f[p])==="[object Array]")&&this.addResource(t,r,p,f[p],{silent:!0});o.silent||this.emit("added",t,r,f)}addResourceBundle(t,r,f,o,p){let C=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},P=[t,r];t.indexOf(".")>-1&&(P=t.split("."),o=f,f=r,r=P[1]),this.addNamespaces(r);let _=pc(this.data,P)||{};C.skipCopy||(f=JSON.parse(JSON.stringify(f))),o?rp(_,f,p):_={..._,...f},ch(this.data,P,_),C.silent||this.emit("added",t,r,f)}removeResourceBundle(t,r){this.hasResourceBundle(t,r)&&delete this.data[t][r],this.removeNamespaces(r),this.emit("removed",t,r)}hasResourceBundle(t,r){return this.getResource(t,r)!==void 0}getResourceBundle(t,r){return r||(r=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,r)}:this.getResource(t,r)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const r=this.getDataByLanguage(t);return!!(r&&Object.keys(r)||[]).find(o=>r[o]&&Object.keys(r[o]).length>0)}toJSON(){return this.data}}var ip={processors:{},addPostProcessor(a){this.processors[a.name]=a},handle(a,t,r,f,o){return a.forEach(p=>{this.processors[p]&&(t=this.processors[p].process(t,r,f,o))}),t}};const dh={};class vc extends xc{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),l0(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Uo.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const f=this.resolve(t,r);return f&&f.res!==void 0}extractFromKey(t,r){let f=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;f===void 0&&(f=":");const o=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let p=r.ns||this.options.defaultNS||[];const C=f&&t.indexOf(f)>-1,P=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!m0(t,f,o);if(C&&!P){const _=t.match(this.interpolator.nestingRegexp);if(_&&_.length>0)return{key:t,namespaces:p};const M=t.split(f);(f!==o||f===o&&this.options.ns.indexOf(M[0])>-1)&&(p=M.shift()),t=M.join(o)}return typeof p=="string"&&(p=[p]),{key:t,namespaces:p}}translate(t,r,f){if(typeof r!="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),typeof r=="object"&&(r={...r}),r||(r={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const o=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,p=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:C,namespaces:P}=this.extractFromKey(t[t.length-1],r),_=P[P.length-1],M=r.lng||this.language,X=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(M&&M.toLowerCase()==="cimode"){if(X){const Ae=r.nsSeparator||this.options.nsSeparator;return o?{res:`${_}${Ae}${C}`,usedKey:C,exactUsedKey:C,usedLng:M,usedNS:_,usedParams:this.getUsedParamsDetails(r)}:`${_}${Ae}${C}`}return o?{res:C,usedKey:C,exactUsedKey:C,usedLng:M,usedNS:_,usedParams:this.getUsedParamsDetails(r)}:C}const z=this.resolve(t,r);let Z=z&&z.res;const be=z&&z.usedKey||C,ue=z&&z.exactUsedKey||C,ce=Object.prototype.toString.apply(Z),ee=["[object Number]","[object Function]","[object RegExp]"],W=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,_e=!this.i18nFormat||this.i18nFormat.handleAsObject;if(_e&&Z&&(typeof Z!="string"&&typeof Z!="boolean"&&typeof Z!="number")&&ee.indexOf(ce)<0&&!(typeof W=="string"&&ce==="[object Array]")){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const Ae=this.options.returnedObjectHandler?this.options.returnedObjectHandler(be,Z,{...r,ns:P}):`key '${C} (${this.language})' returned an object instead of string.`;return o?(z.res=Ae,z.usedParams=this.getUsedParamsDetails(r),z):Ae}if(p){const Ae=ce==="[object Array]",fe=Ae?[]:{},Be=Ae?ue:be;for(const v in Z)if(Object.prototype.hasOwnProperty.call(Z,v)){const We=`${Be}${p}${v}`;fe[v]=this.translate(We,{...r,joinArrays:!1,ns:P}),fe[v]===We&&(fe[v]=Z[v])}Z=fe}}else if(_e&&typeof W=="string"&&ce==="[object Array]")Z=Z.join(W),Z&&(Z=this.extendTranslation(Z,t,r,f));else{let Ae=!1,fe=!1;const Be=r.count!==void 0&&typeof r.count!="string",v=vc.hasDefaultValue(r),We=Be?this.pluralResolver.getSuffix(M,r.count,r):"",De=r.ordinal&&Be?this.pluralResolver.getSuffix(M,r.count,{ordinal:!1}):"",Dt=Be&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),Ct=Dt&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${We}`]||r[`defaultValue${De}`]||r.defaultValue;!this.isValidLookup(Z)&&v&&(Ae=!0,Z=Ct),this.isValidLookup(Z)||(fe=!0,Z=C);const lt=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&fe?void 0:Z,kt=v&&Ct!==Z&&this.options.updateMissing;if(fe||Ae||kt){if(this.logger.log(kt?"updateKey":"missingKey",M,_,C,kt?Ct:Z),p){const Xe=this.resolve(C,{...r,keySeparator:!1});Xe&&Xe.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.")}let Kt=[];const qt=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&qt&&qt[0])for(let Xe=0;Xe<qt.length;Xe++)Kt.push(qt[Xe]);else this.options.saveMissingTo==="all"?Kt=this.languageUtils.toResolveHierarchy(r.lng||this.language):Kt.push(r.lng||this.language);const mt=(Xe,wt,Re)=>{const Oe=v&&Re!==Z?Re:lt;this.options.missingKeyHandler?this.options.missingKeyHandler(Xe,_,wt,Oe,kt,r):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(Xe,_,wt,Oe,kt,r),this.emit("missingKey",Xe,_,wt,Z)};this.options.saveMissing&&(this.options.saveMissingPlurals&&Be?Kt.forEach(Xe=>{const wt=this.pluralResolver.getSuffixes(Xe,r);Dt&&r[`defaultValue${this.options.pluralSeparator}zero`]&&wt.indexOf(`${this.options.pluralSeparator}zero`)<0&&wt.push(`${this.options.pluralSeparator}zero`),wt.forEach(Re=>{mt([Xe],C+Re,r[`defaultValue${Re}`]||Ct)})}):mt(Kt,C,Ct))}Z=this.extendTranslation(Z,t,r,z,f),fe&&Z===C&&this.options.appendNamespaceToMissingKey&&(Z=`${_}:${C}`),(fe||Ae)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?Z=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${_}:${C}`:C,Ae?Z:void 0):Z=this.options.parseMissingKeyHandler(Z))}return o?(z.res=Z,z.usedParams=this.getUsedParamsDetails(r),z):Z}extendTranslation(t,r,f,o,p){var C=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...f},f.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!f.skipInterpolation){f.interpolation&&this.interpolator.init({...f,interpolation:{...this.options.interpolation,...f.interpolation}});const M=typeof t=="string"&&(f&&f.interpolation&&f.interpolation.skipOnVariables!==void 0?f.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let X;if(M){const Z=t.match(this.interpolator.nestingRegexp);X=Z&&Z.length}let z=f.replace&&typeof f.replace!="string"?f.replace:f;if(this.options.interpolation.defaultVariables&&(z={...this.options.interpolation.defaultVariables,...z}),t=this.interpolator.interpolate(t,z,f.lng||this.language,f),M){const Z=t.match(this.interpolator.nestingRegexp),be=Z&&Z.length;X<be&&(f.nest=!1)}!f.lng&&this.options.compatibilityAPI!=="v1"&&o&&o.res&&(f.lng=o.usedLng),f.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var Z=arguments.length,be=new Array(Z),ue=0;ue<Z;ue++)be[ue]=arguments[ue];return p&&p[0]===be[0]&&!f.context?(C.logger.warn(`It seems you are nesting recursively key: ${be[0]} in key: ${r[0]}`),null):C.translate(...be,r)},f)),f.interpolation&&this.interpolator.reset()}const P=f.postProcess||this.options.postProcess,_=typeof P=="string"?[P]:P;return t!=null&&_&&_.length&&f.applyPostProcessor!==!1&&(t=ip.handle(_,t,r,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(f)},...f}:f,this)),t}resolve(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f,o,p,C,P;return typeof t=="string"&&(t=[t]),t.forEach(_=>{if(this.isValidLookup(f))return;const M=this.extractFromKey(_,r),X=M.key;o=X;let z=M.namespaces;this.options.fallbackNS&&(z=z.concat(this.options.fallbackNS));const Z=r.count!==void 0&&typeof r.count!="string",be=Z&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),ue=r.context!==void 0&&(typeof r.context=="string"||typeof r.context=="number")&&r.context!=="",ce=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);z.forEach(ee=>{this.isValidLookup(f)||(P=ee,!dh[`${ce[0]}-${ee}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(P)&&(dh[`${ce[0]}-${ee}`]=!0,this.logger.warn(`key "${o}" for languages "${ce.join(", ")}" won't get resolved as namespace "${P}" 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!!!")),ce.forEach(W=>{if(this.isValidLookup(f))return;C=W;const _e=[X];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(_e,X,W,ee,r);else{let Ae;Z&&(Ae=this.pluralResolver.getSuffix(W,r.count,r));const fe=`${this.options.pluralSeparator}zero`,Be=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(Z&&(_e.push(X+Ae),r.ordinal&&Ae.indexOf(Be)===0&&_e.push(X+Ae.replace(Be,this.options.pluralSeparator)),be&&_e.push(X+fe)),ue){const v=`${X}${this.options.contextSeparator}${r.context}`;_e.push(v),Z&&(_e.push(v+Ae),r.ordinal&&Ae.indexOf(Be)===0&&_e.push(v+Ae.replace(Be,this.options.pluralSeparator)),be&&_e.push(v+fe))}}let Ie;for(;Ie=_e.pop();)this.isValidLookup(f)||(p=Ie,f=this.getResource(W,ee,Ie,r))}))})}),{res:f,usedKey:o,exactUsedKey:p,usedLng:C,usedNS:P}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,r,f){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,r,f,o):this.resourceStore.getResource(t,r,f,o)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],f=t.replace&&typeof t.replace!="string";let o=f?t.replace:t;if(f&&typeof t.count<"u"&&(o.count=t.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!f){o={...o};for(const p of r)delete o[p]}return o}static hasDefaultValue(t){const r="defaultValue";for(const f in t)if(Object.prototype.hasOwnProperty.call(t,f)&&r===f.substring(0,r.length)&&t[f]!==void 0)return!0;return!1}}function uf(a){return a.charAt(0).toUpperCase()+a.slice(1)}class hh{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Uo.create("languageUtils")}getScriptPartFromCode(t){if(t=gc(t),!t||t.indexOf("-")<0)return null;const r=t.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(t){if(t=gc(t),!t||t.indexOf("-")<0)return t;const r=t.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const r=["hans","hant","latn","cyrl","cans","mong","arab"];let f=t.split("-");return this.options.lowerCaseLng?f=f.map(o=>o.toLowerCase()):f.length===2?(f[0]=f[0].toLowerCase(),f[1]=f[1].toUpperCase(),r.indexOf(f[1].toLowerCase())>-1&&(f[1]=uf(f[1].toLowerCase()))):f.length===3&&(f[0]=f[0].toLowerCase(),f[1].length===2&&(f[1]=f[1].toUpperCase()),f[0]!=="sgn"&&f[2].length===2&&(f[2]=f[2].toUpperCase()),r.indexOf(f[1].toLowerCase())>-1&&(f[1]=uf(f[1].toLowerCase())),r.indexOf(f[2].toLowerCase())>-1&&(f[2]=uf(f[2].toLowerCase()))),f.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let r;return t.forEach(f=>{if(r)return;const o=this.formatLanguageCode(f);(!this.options.supportedLngs||this.isSupportedCode(o))&&(r=o)}),!r&&this.options.supportedLngs&&t.forEach(f=>{if(r)return;const o=this.getLanguagePartFromCode(f);if(this.isSupportedCode(o))return r=o;r=this.options.supportedLngs.find(p=>{if(p===o)return p;if(!(p.indexOf("-")<0&&o.indexOf("-")<0)&&(p.indexOf("-")>0&&o.indexOf("-")<0&&p.substring(0,p.indexOf("-"))===o||p.indexOf(o)===0&&o.length>1))return p})}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(t,r){if(!t)return[];if(typeof t=="function"&&(t=t(r)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!r)return t.default||[];let f=t[r];return f||(f=t[this.getScriptPartFromCode(r)]),f||(f=t[this.formatLanguageCode(r)]),f||(f=t[this.getLanguagePartFromCode(r)]),f||(f=t.default),f||[]}toResolveHierarchy(t,r){const f=this.getFallbackCodes(r||this.options.fallbackLng||[],t),o=[],p=C=>{C&&(this.isSupportedCode(C)?o.push(C):this.logger.warn(`rejecting language code not found in supportedLngs: ${C}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&p(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&p(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&p(this.getLanguagePartFromCode(t))):typeof t=="string"&&p(this.formatLanguageCode(t)),f.forEach(C=>{o.indexOf(C)<0&&p(this.formatLanguageCode(C))}),o}}let y0=[{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}],b0={1:function(a){return+(a>1)},2:function(a){return+(a!=1)},3:function(a){return 0},4:function(a){return a%10==1&&a%100!=11?0:a%10>=2&&a%10<=4&&(a%100<10||a%100>=20)?1:2},5:function(a){return a==0?0:a==1?1:a==2?2:a%100>=3&&a%100<=10?3:a%100>=11?4:5},6:function(a){return a==1?0:a>=2&&a<=4?1:2},7:function(a){return a==1?0:a%10>=2&&a%10<=4&&(a%100<10||a%100>=20)?1:2},8:function(a){return a==1?0:a==2?1:a!=8&&a!=11?2:3},9:function(a){return+(a>=2)},10:function(a){return a==1?0:a==2?1:a<7?2:a<11?3:4},11:function(a){return a==1||a==11?0:a==2||a==12?1:a>2&&a<20?2:3},12:function(a){return+(a%10!=1||a%100==11)},13:function(a){return+(a!==0)},14:function(a){return a==1?0:a==2?1:a==3?2:3},15:function(a){return a%10==1&&a%100!=11?0:a%10>=2&&(a%100<10||a%100>=20)?1:2},16:function(a){return a%10==1&&a%100!=11?0:a!==0?1:2},17:function(a){return a==1||a%10==1&&a%100!=11?0:1},18:function(a){return a==0?0:a==1?1:2},19:function(a){return a==1?0:a==0||a%100>1&&a%100<11?1:a%100>10&&a%100<20?2:3},20:function(a){return a==1?0:a==0||a%100>0&&a%100<20?1:2},21:function(a){return a%100==1?1:a%100==2?2:a%100==3||a%100==4?3:0},22:function(a){return a==1?0:a==2?1:(a<0||a>10)&&a%10==0?2:3}};const S0=["v1","v2","v3"],w0=["v4"],ph={zero:0,one:1,two:2,few:3,many:4,other:5};function x0(){const a={};return y0.forEach(t=>{t.lngs.forEach(r=>{a[r]={numbers:t.nr,plurals:b0[t.fc]}})}),a}class C0{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=r,this.logger=Uo.create("pluralResolver"),(!this.options.compatibilityJSON||w0.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=x0()}addRule(t,r){this.rules[t]=r}getRule(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(gc(t==="dev"?"en":t),{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const f=this.getRule(t,r);return this.shouldUseIntlApi()?f&&f.resolvedOptions().pluralCategories.length>1:f&&f.numbers.length>1}getPluralFormsOfKey(t,r){let f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,f).map(o=>`${r}${o}`)}getSuffixes(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const f=this.getRule(t,r);return f?this.shouldUseIntlApi()?f.resolvedOptions().pluralCategories.sort((o,p)=>ph[o]-ph[p]).map(o=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o}`):f.numbers.map(o=>this.getSuffix(t,o,r)):[]}getSuffix(t,r){let f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const o=this.getRule(t,f);return o?this.shouldUseIntlApi()?`${this.options.prepend}${f.ordinal?`ordinal${this.options.prepend}`:""}${o.select(r)}`:this.getSuffixRetroCompatible(o,r):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,r){const f=t.noAbs?t.plurals(r):t.plurals(Math.abs(r));let o=t.numbers[f];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));const p=()=>this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString();return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?`_plural_${o.toString()}`:p():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?p():this.options.prepend&&f.toString()?this.options.prepend+f.toString():f.toString()}shouldUseIntlApi(){return!S0.includes(this.options.compatibilityJSON)}}function gh(a,t,r){let f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,p=f0(a,t,r);return!p&&o&&typeof r=="string"&&(p=_f(a,r,f),p===void 0&&(p=_f(t,r,f))),p}class k0{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Uo.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(r=>r),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const r=t.interpolation;this.escape=r.escape!==void 0?r.escape:h0,this.escapeValue=r.escapeValue!==void 0?r.escapeValue:!0,this.useRawValueToEscape=r.useRawValueToEscape!==void 0?r.useRawValueToEscape:!1,this.prefix=r.prefix?Su(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?Su(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?Su(r.nestingPrefix):r.nestingPrefixEscaped||Su("$t("),this.nestingSuffix=r.nestingSuffix?Su(r.nestingSuffix):r.nestingSuffixEscaped||Su(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=r.alwaysFormat!==void 0?r.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(r,f)=>r&&r.source===f?(r.lastIndex=0,r):new RegExp(f,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,r,f,o){let p,C,P;const _=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function M(ue){return ue.replace(/\$/g,"$$$$")}const X=ue=>{if(ue.indexOf(this.formatSeparator)<0){const _e=gh(r,_,ue,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(_e,void 0,f,{...o,...r,interpolationkey:ue}):_e}const ce=ue.split(this.formatSeparator),ee=ce.shift().trim(),W=ce.join(this.formatSeparator).trim();return this.format(gh(r,_,ee,this.options.keySeparator,this.options.ignoreJSONStructure),W,f,{...o,...r,interpolationkey:ee})};this.resetRegExp();const z=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,Z=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:ue=>M(ue)},{regex:this.regexp,safeValue:ue=>this.escapeValue?M(this.escape(ue)):M(ue)}].forEach(ue=>{for(P=0;p=ue.regex.exec(t);){const ce=p[1].trim();if(C=X(ce),C===void 0)if(typeof z=="function"){const W=z(t,p,o);C=typeof W=="string"?W:""}else if(o&&Object.prototype.hasOwnProperty.call(o,ce))C="";else if(Z){C=p[0];continue}else this.logger.warn(`missed to pass in variable ${ce} for interpolating ${t}`),C="";else typeof C!="string"&&!this.useRawValueToEscape&&(C=uh(C));const ee=ue.safeValue(C);if(t=t.replace(p[0],ee),Z?(ue.regex.lastIndex+=C.length,ue.regex.lastIndex-=p[0].length):ue.regex.lastIndex=0,P++,P>=this.maxReplaces)break}}),t}nest(t,r){let f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,p,C;function P(_,M){const X=this.nestingOptionsSeparator;if(_.indexOf(X)<0)return _;const z=_.split(new RegExp(`${X}[ ]*{`));let Z=`{${z[1]}`;_=z[0],Z=this.interpolate(Z,C);const be=Z.match(/'/g),ue=Z.match(/"/g);(be&&be.length%2===0&&!ue||ue.length%2!==0)&&(Z=Z.replace(/'/g,'"'));try{C=JSON.parse(Z),M&&(C={...M,...C})}catch(ce){return this.logger.warn(`failed parsing options string in nesting for key ${_}`,ce),`${_}${X}${Z}`}return delete C.defaultValue,_}for(;o=this.nestingRegexp.exec(t);){let _=[];C={...f},C=C.replace&&typeof C.replace!="string"?C.replace:C,C.applyPostProcessor=!1,delete C.defaultValue;let M=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){const X=o[1].split(this.formatSeparator).map(z=>z.trim());o[1]=X.shift(),_=X,M=!0}if(p=r(P.call(this,o[1].trim(),C),C),p&&o[0]===t&&typeof p!="string")return p;typeof p!="string"&&(p=uh(p)),p||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),p=""),M&&(p=_.reduce((X,z)=>this.format(X,z,f.lng,{...f,interpolationkey:o[1].trim()}),p.trim())),t=t.replace(o[0],p),this.regexp.lastIndex=0}return t}}function E0(a){let t=a.toLowerCase().trim();const r={};if(a.indexOf("(")>-1){const f=a.split("(");t=f[0].toLowerCase().trim();const o=f[1].substring(0,f[1].length-1);t==="currency"&&o.indexOf(":")<0?r.currency||(r.currency=o.trim()):t==="relativetime"&&o.indexOf(":")<0?r.range||(r.range=o.trim()):o.split(";").forEach(C=>{if(!C)return;const[P,..._]=C.split(":"),M=_.join(":").trim().replace(/^'+|'+$/g,"");r[P.trim()]||(r[P.trim()]=M),M==="false"&&(r[P.trim()]=!1),M==="true"&&(r[P.trim()]=!0),isNaN(M)||(r[P.trim()]=parseInt(M,10))})}return{formatName:t,formatOptions:r}}function wu(a){const t={};return function(f,o,p){const C=o+JSON.stringify(p);let P=t[C];return P||(P=a(gc(o),p),t[C]=P),P(f)}}class T0{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Uo.create("formatter"),this.options=t,this.formats={number:wu((r,f)=>{const o=new Intl.NumberFormat(r,{...f});return p=>o.format(p)}),currency:wu((r,f)=>{const o=new Intl.NumberFormat(r,{...f,style:"currency"});return p=>o.format(p)}),datetime:wu((r,f)=>{const o=new Intl.DateTimeFormat(r,{...f});return p=>o.format(p)}),relativetime:wu((r,f)=>{const o=new Intl.RelativeTimeFormat(r,{...f});return p=>o.format(p,f.range||"day")}),list:wu((r,f)=>{const o=new Intl.ListFormat(r,{...f});return p=>o.format(p)})},this.init(t)}init(t){const f=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=f.formatSeparator?f.formatSeparator:f.formatSeparator||","}add(t,r){this.formats[t.toLowerCase().trim()]=r}addCached(t,r){this.formats[t.toLowerCase().trim()]=wu(r)}format(t,r,f){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return r.split(this.formatSeparator).reduce((P,_)=>{const{formatName:M,formatOptions:X}=E0(_);if(this.formats[M]){let z=P;try{const Z=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},be=Z.locale||Z.lng||o.locale||o.lng||f;z=this.formats[M](P,be,{...X,...o,...Z})}catch(Z){this.logger.warn(Z)}return z}else this.logger.warn(`there was no format function for ${M}`);return P},t)}}function I0(a,t){a.pending[t]!==void 0&&(delete a.pending[t],a.pendingCount--)}class _0 extends xc{constructor(t,r,f){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=r,this.services=f,this.languageUtils=f.languageUtils,this.options=o,this.logger=Uo.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(f,o.backend,o)}queueLoad(t,r,f,o){const p={},C={},P={},_={};return t.forEach(M=>{let X=!0;r.forEach(z=>{const Z=`${M}|${z}`;!f.reload&&this.store.hasResourceBundle(M,z)?this.state[Z]=2:this.state[Z]<0||(this.state[Z]===1?C[Z]===void 0&&(C[Z]=!0):(this.state[Z]=1,X=!1,C[Z]===void 0&&(C[Z]=!0),p[Z]===void 0&&(p[Z]=!0),_[z]===void 0&&(_[z]=!0)))}),X||(P[M]=!0)}),(Object.keys(p).length||Object.keys(C).length)&&this.queue.push({pending:C,pendingCount:Object.keys(C).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(p),pending:Object.keys(C),toLoadLanguages:Object.keys(P),toLoadNamespaces:Object.keys(_)}}loaded(t,r,f){const o=t.split("|"),p=o[0],C=o[1];r&&this.emit("failedLoading",p,C,r),f&&this.store.addResourceBundle(p,C,f,void 0,void 0,{skipCopy:!0}),this.state[t]=r?-1:2;const P={};this.queue.forEach(_=>{c0(_.loaded,[p],C),I0(_,t),r&&_.errors.push(r),_.pendingCount===0&&!_.done&&(Object.keys(_.loaded).forEach(M=>{P[M]||(P[M]={});const X=_.loaded[M];X.length&&X.forEach(z=>{P[M][z]===void 0&&(P[M][z]=!0)})}),_.done=!0,_.errors.length?_.callback(_.errors):_.callback())}),this.emit("loaded",P),this.queue=this.queue.filter(_=>!_.done)}read(t,r,f){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,p=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,C=arguments.length>5?arguments[5]:void 0;if(!t.length)return C(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:r,fcName:f,tried:o,wait:p,callback:C});return}this.readingCalls++;const P=(M,X)=>{if(this.readingCalls--,this.waitingReads.length>0){const z=this.waitingReads.shift();this.read(z.lng,z.ns,z.fcName,z.tried,z.wait,z.callback)}if(M&&X&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,t,r,f,o+1,p*2,C)},p);return}C(M,X)},_=this.backend[f].bind(this.backend);if(_.length===2){try{const M=_(t,r);M&&typeof M.then=="function"?M.then(X=>P(null,X)).catch(P):P(null,M)}catch(M){P(M)}return}return _(t,r,P)}prepareLoading(t,r){let f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof r=="string"&&(r=[r]);const p=this.queueLoad(t,r,f,o);if(!p.toLoad.length)return p.pending.length||o(),null;p.toLoad.forEach(C=>{this.loadOne(C)})}load(t,r,f){this.prepareLoading(t,r,{},f)}reload(t,r,f){this.prepareLoading(t,r,{reload:!0},f)}loadOne(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const f=t.split("|"),o=f[0],p=f[1];this.read(o,p,"read",void 0,void 0,(C,P)=>{C&&this.logger.warn(`${r}loading namespace ${p} for language ${o} failed`,C),!C&&P&&this.logger.log(`${r}loaded namespace ${p} for language ${o}`,P),this.loaded(t,C,P)})}saveMissing(t,r,f,o,p){let C=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},P=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)){this.logger.warn(`did not save key "${f}" as the namespace "${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(!(f==null||f==="")){if(this.backend&&this.backend.create){const _={...C,isUpdate:p},M=this.backend.create.bind(this.backend);if(M.length<6)try{let X;M.length===5?X=M(t,r,f,o,_):X=M(t,r,f,o),X&&typeof X.then=="function"?X.then(z=>P(null,z)).catch(P):P(null,X)}catch(X){P(X)}else M(t,r,f,o,P,_)}!t||!t[0]||this.store.addResource(t[0],r,f,o)}}}function vh(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){let r={};if(typeof t[1]=="object"&&(r=t[1]),typeof t[1]=="string"&&(r.defaultValue=t[1]),typeof t[2]=="string"&&(r.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const f=t[3]||t[2];Object.keys(f).forEach(o=>{r[o]=f[o]})}return r},interpolation:{escapeValue:!0,format:a=>a,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function mh(a){return typeof a.ns=="string"&&(a.ns=[a.ns]),typeof a.fallbackLng=="string"&&(a.fallbackLng=[a.fallbackLng]),typeof a.fallbackNS=="string"&&(a.fallbackNS=[a.fallbackNS]),a.supportedLngs&&a.supportedLngs.indexOf("cimode")<0&&(a.supportedLngs=a.supportedLngs.concat(["cimode"])),a}function lc(){}function R0(a){Object.getOwnPropertyNames(Object.getPrototypeOf(a)).forEach(r=>{typeof a[r]=="function"&&(a[r]=a[r].bind(a))})}class Wu extends xc{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(super(),this.options=mh(t),this.services={},this.logger=Uo,this.modules={external:[]},R0(this),r&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,r),this;setTimeout(()=>{this.init(t,r)},0)}}init(){var t=this;let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof r=="function"&&(f=r,r={}),!r.defaultNS&&r.defaultNS!==!1&&r.ns&&(typeof r.ns=="string"?r.defaultNS=r.ns:r.ns.indexOf("translation")<0&&(r.defaultNS=r.ns[0]));const o=vh();this.options={...o,...this.options,...mh(r)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...o.interpolation,...this.options.interpolation}),r.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=r.keySeparator),r.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=r.nsSeparator);function p(X){return X?typeof X=="function"?new X:X:null}if(!this.options.isClone){this.modules.logger?Uo.init(p(this.modules.logger),this.options):Uo.init(null,this.options);let X;this.modules.formatter?X=this.modules.formatter:typeof Intl<"u"&&(X=T0);const z=new hh(this.options);this.store=new fh(this.options.resources,this.options);const Z=this.services;Z.logger=Uo,Z.resourceStore=this.store,Z.languageUtils=z,Z.pluralResolver=new C0(z,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),X&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(Z.formatter=p(X),Z.formatter.init(Z,this.options),this.options.interpolation.format=Z.formatter.format.bind(Z.formatter)),Z.interpolator=new k0(this.options),Z.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},Z.backendConnector=new _0(p(this.modules.backend),Z.resourceStore,Z,this.options),Z.backendConnector.on("*",function(be){for(var ue=arguments.length,ce=new Array(ue>1?ue-1:0),ee=1;ee<ue;ee++)ce[ee-1]=arguments[ee];t.emit(be,...ce)}),this.modules.languageDetector&&(Z.languageDetector=p(this.modules.languageDetector),Z.languageDetector.init&&Z.languageDetector.init(Z,this.options.detection,this.options)),this.modules.i18nFormat&&(Z.i18nFormat=p(this.modules.i18nFormat),Z.i18nFormat.init&&Z.i18nFormat.init(this)),this.translator=new vc(this.services,this.options),this.translator.on("*",function(be){for(var ue=arguments.length,ce=new Array(ue>1?ue-1:0),ee=1;ee<ue;ee++)ce[ee-1]=arguments[ee];t.emit(be,...ce)}),this.modules.external.forEach(be=>{be.init&&be.init(this)})}if(this.format=this.options.interpolation.format,f||(f=lc),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const X=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);X.length>0&&X[0]!=="dev"&&(this.options.lng=X[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(X=>{this[X]=function(){return t.store[X](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(X=>{this[X]=function(){return t.store[X](...arguments),t}});const _=Nu(),M=()=>{const X=(z,Z)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),_.resolve(Z),f(z,Z)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return X(null,this.t.bind(this));this.changeLanguage(this.options.lng,X)};return this.options.resources||!this.options.initImmediate?M():setTimeout(M,0),_}loadResources(t){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:lc;const o=typeof t=="string"?t:this.language;if(typeof t=="function"&&(f=t),!this.options.resources||this.options.partialBundledLanguages){if(o&&o.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return f();const p=[],C=P=>{if(!P||P==="cimode")return;this.services.languageUtils.toResolveHierarchy(P).forEach(M=>{M!=="cimode"&&p.indexOf(M)<0&&p.push(M)})};o?C(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(_=>C(_)),this.options.preload&&this.options.preload.forEach(P=>C(P)),this.services.backendConnector.load(p,this.options.ns,P=>{!P&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),f(P)})}else f(null)}reloadResources(t,r,f){const o=Nu();return t||(t=this.languages),r||(r=this.options.ns),f||(f=lc),this.services.backendConnector.reload(t,r,p=>{o.resolve(),f(p)}),o}use(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()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&ip.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let r=0;r<this.languages.length;r++){const f=this.languages[r];if(!(["cimode","dev"].indexOf(f)>-1)&&this.store.hasLanguageSomeTranslations(f)){this.resolvedLanguage=f;break}}}changeLanguage(t,r){var f=this;this.isLanguageChangingTo=t;const o=Nu();this.emit("languageChanging",t);const p=_=>{this.language=_,this.languages=this.services.languageUtils.toResolveHierarchy(_),this.resolvedLanguage=void 0,this.setResolvedLanguage(_)},C=(_,M)=>{M?(p(M),this.translator.changeLanguage(M),this.isLanguageChangingTo=void 0,this.emit("languageChanged",M),this.logger.log("languageChanged",M)):this.isLanguageChangingTo=void 0,o.resolve(function(){return f.t(...arguments)}),r&&r(_,function(){return f.t(...arguments)})},P=_=>{!t&&!_&&this.services.languageDetector&&(_=[]);const M=typeof _=="string"?_:this.services.languageUtils.getBestMatchFromCodes(_);M&&(this.language||p(M),this.translator.language||this.translator.changeLanguage(M),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(M)),this.loadResources(M,X=>{C(X,M)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?P(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(P):this.services.languageDetector.detect(P):P(t),o}getFixedT(t,r,f){var o=this;const p=function(C,P){let _;if(typeof P!="object"){for(var M=arguments.length,X=new Array(M>2?M-2:0),z=2;z<M;z++)X[z-2]=arguments[z];_=o.options.overloadTranslationOptionHandler([C,P].concat(X))}else _={...P};_.lng=_.lng||p.lng,_.lngs=_.lngs||p.lngs,_.ns=_.ns||p.ns,_.keyPrefix=_.keyPrefix||f||p.keyPrefix;const Z=o.options.keySeparator||".";let be;return _.keyPrefix&&Array.isArray(C)?be=C.map(ue=>`${_.keyPrefix}${Z}${ue}`):be=_.keyPrefix?`${_.keyPrefix}${Z}${C}`:C,o.t(be,_)};return typeof t=="string"?p.lng=t:p.lngs=t,p.ns=r,p.keyPrefix=f,p}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const f=r.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,p=this.languages[this.languages.length-1];if(f.toLowerCase()==="cimode")return!0;const C=(P,_)=>{const M=this.services.backendConnector.state[`${P}|${_}`];return M===-1||M===2};if(r.precheck){const P=r.precheck(this,C);if(P!==void 0)return P}return!!(this.hasResourceBundle(f,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||C(f,t)&&(!o||C(p,t)))}loadNamespaces(t,r){const f=Nu();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{f.resolve(),r&&r(o)}),f):(r&&r(),Promise.resolve())}loadLanguages(t,r){const f=Nu();typeof t=="string"&&(t=[t]);const o=this.options.preload||[],p=t.filter(C=>o.indexOf(C)<0);return p.length?(this.options.preload=o.concat(p),this.loadResources(C=>{f.resolve(),r&&r(C)}),f):(r&&r(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const 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"],f=this.services&&this.services.languageUtils||new hh(vh());return r.indexOf(f.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new Wu(t,r)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:lc;const f=t.forkResourceStore;f&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},p=new Wu(o);return(t.debug!==void 0||t.prefix!==void 0)&&(p.logger=p.logger.clone(t)),["store","services","language"].forEach(P=>{p[P]=this[P]}),p.services={...this.services},p.services.utils={hasLoadedNamespace:p.hasLoadedNamespace.bind(p)},f&&(p.store=new fh(this.store.data,o),p.services.resourceStore=p.store),p.translator=new vc(p.services,o),p.translator.on("*",function(P){for(var _=arguments.length,M=new Array(_>1?_-1:0),X=1;X<_;X++)M[X-1]=arguments[X];p.emit(P,...M)}),p.init(o,r),p.translator.options=o,p.translator.backendConnector.services.utils={hasLoadedNamespace:p.hasLoadedNamespace.bind(p)},p}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Fr=Wu.createInstance();Fr.createInstance=Wu.createInstance;Fr.createInstance;Fr.dir;Fr.init;Fr.loadResources;Fr.reloadResources;Fr.use;Fr.changeLanguage;Fr.getFixedT;const D0=Fr.t;Fr.exists;Fr.setDefaultNamespace;Fr.hasLoadedNamespace;Fr.loadNamespaces;Fr.loadLanguages;function A0(a,t){if(!(a instanceof t))throw new TypeError("Cannot call a class as a function")}function zu(a){"@babel/helpers - typeof";return zu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zu(a)}function P0(a,t){if(zu(a)!="object"||!a)return a;var r=a[Symbol.toPrimitive];if(r!==void 0){var f=r.call(a,t||"default");if(zu(f)!="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(a)}function O0(a){var t=P0(a,"string");return zu(t)=="symbol"?t:String(t)}function yh(a,t){for(var r=0;r<t.length;r++){var f=t[r];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(a,O0(f.key),f)}}function M0(a,t,r){return t&&yh(a.prototype,t),r&&yh(a,r),Object.defineProperty(a,"prototype",{writable:!1}),a}var ap=[],F0=ap.forEach,L0=ap.slice;function N0(a){return F0.call(L0.call(arguments,1),function(t){if(t)for(var r in t)a[r]===void 0&&(a[r]=t[r])}),a}var bh=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,B0=function(t,r,f){var o=f||{};o.path=o.path||"/";var p=encodeURIComponent(r),C="".concat(t,"=").concat(p);if(o.maxAge>0){var P=o.maxAge-0;if(Number.isNaN(P))throw new Error("maxAge should be a Number");C+="; Max-Age=".concat(Math.floor(P))}if(o.domain){if(!bh.test(o.domain))throw new TypeError("option domain is invalid");C+="; Domain=".concat(o.domain)}if(o.path){if(!bh.test(o.path))throw new TypeError("option path is invalid");C+="; Path=".concat(o.path)}if(o.expires){if(typeof o.expires.toUTCString!="function")throw new TypeError("option expires is invalid");C+="; Expires=".concat(o.expires.toUTCString())}if(o.httpOnly&&(C+="; HttpOnly"),o.secure&&(C+="; Secure"),o.sameSite){var _=typeof o.sameSite=="string"?o.sameSite.toLowerCase():o.sameSite;switch(_){case!0:C+="; SameSite=Strict";break;case"lax":C+="; SameSite=Lax";break;case"strict":C+="; SameSite=Strict";break;case"none":C+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return C},Sh={create:function(t,r,f,o){var p=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};f&&(p.expires=new Date,p.expires.setTime(p.expires.getTime()+f*60*1e3)),o&&(p.domain=o),document.cookie=B0(t,encodeURIComponent(r),p)},read:function(t){for(var r="".concat(t,"="),f=document.cookie.split(";"),o=0;o<f.length;o++){for(var p=f[o];p.charAt(0)===" ";)p=p.substring(1,p.length);if(p.indexOf(r)===0)return p.substring(r.length,p.length)}return null},remove:function(t){this.create(t,"",-1)}},j0={name:"cookie",lookup:function(t){var r;if(t.lookupCookie&&typeof document<"u"){var f=Sh.read(t.lookupCookie);f&&(r=f)}return r},cacheUserLanguage:function(t,r){r.lookupCookie&&typeof document<"u"&&Sh.create(r.lookupCookie,t,r.cookieMinutes,r.cookieDomain,r.cookieOptions)}},H0={name:"querystring",lookup:function(t){var r;if(typeof window<"u"){var f=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(f=window.location.hash.substring(window.location.hash.indexOf("?")));for(var o=f.substring(1),p=o.split("&"),C=0;C<p.length;C++){var P=p[C].indexOf("=");if(P>0){var _=p[C].substring(0,P);_===t.lookupQuerystring&&(r=p[C].substring(P+1))}}}return r}},Bu=null,wh=function(){if(Bu!==null)return Bu;try{Bu=window!=="undefined"&&window.localStorage!==null;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{Bu=!1}return Bu},U0={name:"localStorage",lookup:function(t){var r;if(t.lookupLocalStorage&&wh()){var f=window.localStorage.getItem(t.lookupLocalStorage);f&&(r=f)}return r},cacheUserLanguage:function(t,r){r.lookupLocalStorage&&wh()&&window.localStorage.setItem(r.lookupLocalStorage,t)}},ju=null,xh=function(){if(ju!==null)return ju;try{ju=window!=="undefined"&&window.sessionStorage!==null;var t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{ju=!1}return ju},W0={name:"sessionStorage",lookup:function(t){var r;if(t.lookupSessionStorage&&xh()){var f=window.sessionStorage.getItem(t.lookupSessionStorage);f&&(r=f)}return r},cacheUserLanguage:function(t,r){r.lookupSessionStorage&&xh()&&window.sessionStorage.setItem(r.lookupSessionStorage,t)}},z0={name:"navigator",lookup:function(t){var r=[];if(typeof navigator<"u"){if(navigator.languages)for(var f=0;f<navigator.languages.length;f++)r.push(navigator.languages[f]);navigator.userLanguage&&r.push(navigator.userLanguage),navigator.language&&r.push(navigator.language)}return r.length>0?r:void 0}},$0={name:"htmlTag",lookup:function(t){var r,f=t.htmlTag||(typeof document<"u"?document.documentElement:null);return f&&typeof f.getAttribute=="function"&&(r=f.getAttribute("lang")),r}},V0={name:"path",lookup:function(t){var r;if(typeof window<"u"){var f=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(f instanceof Array)if(typeof t.lookupFromPathIndex=="number"){if(typeof f[t.lookupFromPathIndex]!="string")return;r=f[t.lookupFromPathIndex].replace("/","")}else r=f[0].replace("/","")}return r}},Y0={name:"subdomain",lookup:function(t){var r=typeof t.lookupFromSubdomainIndex=="number"?t.lookupFromSubdomainIndex+1:1,f=typeof window<"u"&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(f)return f[r]}};function G0(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(t){return t}}}var op=function(){function a(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};A0(this,a),this.type="languageDetector",this.detectors={},this.init(t,r)}return M0(a,[{key:"init",value:function(r){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=r||{languageUtils:{}},this.options=N0(f,this.options||{},G0()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(p){return p.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=o,this.addDetector(j0),this.addDetector(H0),this.addDetector(U0),this.addDetector(W0),this.addDetector(z0),this.addDetector($0),this.addDetector(V0),this.addDetector(Y0)}},{key:"addDetector",value:function(r){this.detectors[r.name]=r}},{key:"detect",value:function(r){var f=this;r||(r=this.options.order);var o=[];return r.forEach(function(p){if(f.detectors[p]){var C=f.detectors[p].lookup(f.options);C&&typeof C=="string"&&(C=[C]),C&&(o=o.concat(C))}}),o=o.map(function(p){return f.options.convertDetectedLanguage(p)}),this.services.languageUtils.getBestMatchFromCodes?o:o.length>0?o[0]:null}},{key:"cacheUserLanguage",value:function(r,f){var o=this;f||(f=this.options.caches),f&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(r)>-1||f.forEach(function(p){o.detectors[p]&&o.detectors[p].cacheUserLanguage(r,o.options)}))}}]),a}();op.type="languageDetector";const q0=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,X0={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},Z0=a=>X0[a],K0=a=>a.replace(q0,Z0);let Ch={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:K0};function J0(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ch={...Ch,...a}}const Q0={type:"3rdParty",init(a){J0(a.options.react)}},eS=qe.createContext();function tS(a){let{i18n:t,defaultNS:r,children:f}=a;const o=qe.useMemo(()=>({i18n:t,defaultNS:r}),[t,r]);return qe.createElement(eS.Provider,{value:o},f)}const nS={400:"Bad Request - The request cannot be fulfilled due to bad syntax.",401:"The request requires user authentication.",403:"The user does not have permission.",404:"Item Not Found",500:"Server got a error, please contact for assistance",502:"Server got a bad gateway, please contact for assistance",503:"Server is unavailable, please contact for assistance",504:"Server is timeout, please contact for assistance"},rS={unauthorizedPage:{title:"Access Denied: No Access Permission",description1:"We regret to inform you that you do not have the necessary permissions to access this page.",description2:"Please contact our administrator for assistance. Thank you for your understanding."}},iS={saasAdmin:{servicePackage:{errorMessage:{packageNotFound:"Package not found.",languageInvalid:"Field language is invalid.",packageNameExists:"The package name already exists.",serviceNotFound:"Service not found.",serviceNotBelongToPackage:"Service not found or does not belong to the correct package",serviceNotBelongToServiceParent:"Service not found or does not belong to the correct service parent",canNotGetServiceListPleaseTryAgain:"Can not get service list now, please try again"}},tenantManagement:{errorMessage:{tenantNotFound:"Tenant not found.",countryInvalid:"Field country is invalid.",createTenantFailed:"Create tenant failed. Please try again",isTenantMailExist:"The email is already exist."}},brandManagement:{errorMessage:{firstNameInvalid:"Field first name is invalid. Must be of length 3 to 40 and no special characters.",createdAtInvalid:"Field createdAt is invalid.",brandNotFound:"Brand not found.",lastNameInvalid:"Field last name is invalid. Must be of length 3 to 40 and no special characters.",idInvalid:"Field id is invalid. Must be uuid v4 format.",updatedAtInvalid:"Field createdAt is invalid. Must be date format.",countryInvalid:"Field Country is invalid. Please select a Country that we support.",termTypeInvalid:"Field TermType invalid. Please select a TermType that we support.",baseCostTypeInvalid:"Field BaseCostType invalid. Please select a BaseCostType that we support.",brandStatusesInvalid:"BrandStatuses is invalid. Please select a BrandStatuses that we support.",informationPlanIsRequired:"Information Plan is required.",settingStatusesInvalid:"SettingStatuses is invalid. Please select a BaseCostType that we support.",languagesInvalid:"Langagues is invalid. Please select a Langagues that we support.",currencyInvalid:"Currency is invalid. Please select a Currency that we support.",distanceMetricInvalid:"DistanceMetric is invalid. Please select a DistanceMetric that we support.",settingNotFound:"Setting not found.",subscriptionNotFound:"Subscription not found.",subscriptionNameExists:"The subscription name already exists.",subscriptionServiceNotFound:"subscriptionService not found.",subscriptionServiceNotBelongToPackage:"subscriptionService not found or does not belong to the correct package",subscriptionServiceNotBelongTosubscriptionServiceParent:"subscriptionService not found or does not belong to the correct subscriptionService parent",canNotGetsubscriptionServiceListPleaseTryAgain:"Can not get subscriptionService list now, please try again"}}},tenantAdmin:{brandManagement:{errorMessage:{firstNameInvalid:"Field first name is invalid. Must be of length 3 to 40 and no special characters.",createdAtInvalid:"Field createdAt is invalid.",brandNotFound:"Brand not found.",lastNameInvalid:"Field last name is invalid. Must be of length 3 to 40 and no special characters.",idInvalid:"Field id is invalid. Must be uuid v4 format.",updatedAtInvalid:"Field createdAt is invalid. Must be date format.",countryInvalid:"Field Country is invalid. Please select a Country that we support.",termTypeInvalid:"Field TermType invalid. Please select a TermType that we support.",baseCostTypeInvalid:"Field BaseCostType invalid. Please select a BaseCostType that we support.",brandStatusesInvalid:"BrandStatuses is invalid. Please select a BrandStatuses that we support.",informationPlanIsRequired:"Information Plan is required.",settingStatusesInvalid:"SettingStatuses is invalid. Please select a BaseCostType that we support.",languagesInvalid:"Langagues is invalid. Please select a Langagues that we support.",currencyInvalid:"Currency is invalid. Please select a Currency that we support.",distanceMetricInvalid:"DistanceMetric is invalid. Please select a DistanceMetric that we support.",settingNotFound:"Setting not found.",subscriptionNotFound:"Subscription not found.",subscriptionNameExists:"The subscription name already exists.",subscriptionServiceNotFound:"subscriptionService not found.",subscriptionServiceNotBelongToPackage:"subscriptionService not found or does not belong to the correct package",subscriptionServiceNotBelongTosubscriptionServiceParent:"subscriptionService not found or does not belong to the correct subscriptionService parent",canNotGetsubscriptionServiceListPleaseTryAgain:"Can not get subscriptionService list now, please try again"}}},brandAdmin:{errorMessage:{firstNameInvalid:"Field first name is invalid. Must be of length 3 to 40 and no special characters.",createdAtInvalid:"Field createdAt is invalid.",brandNotFound:"Brand not found.",lastNameInvalid:"Field last name is invalid. Must be of length 3 to 40 and no special characters.",idInvalid:"Field id is invalid. Must be uuid v4 format.",updatedAtInvalid:"Field createdAt is invalid. Must be date format.",countryInvalid:"Field Country is invalid. Please select a Country that we support.",termTypeInvalid:"Field TermType invalid. Please select a TermType that we support.",baseCostTypeInvalid:"Field BaseCostType invalid. Please select a BaseCostType that we support.",brandStatusesInvalid:"BrandStatuses is invalid. Please select a BrandStatuses that we support.",informationPlanIsRequired:"Information Plan is required.",settingStatusesInvalid:"SettingStatuses is invalid. Please select a BaseCostType that we support.",languagesInvalid:"Langagues is invalid. Please select a Langagues that we support.",currencyInvalid:"Currency is invalid. Please select a Currency that we support.",distanceMetricInvalid:"DistanceMetric is invalid. Please select a DistanceMetric that we support.",settingNotFound:"Setting not found.",subscriptionNotFound:"Subscription not found.",subscriptionNameExists:"The subscription name already exists.",subscriptionServiceNotFound:"subscriptionService not found.",subscriptionServiceNotBelongToPackage:"subscriptionService not found or does not belong to the correct package",subscriptionServiceNotBelongTosubscriptionServiceParent:"subscriptionService not found or does not belong to the correct subscriptionService parent",canNotGetsubscriptionServiceListPleaseTryAgain:"Can not get subscriptionService list now, please try again"}},iam:{usersManagement:{errorMessage:{firstNameInvalid:"Field first name is invalid. Must be of length 1 to 40 and no special characters.",createdAtInvalid:"Field createdAt is invalid.",notFound:"User not found.",lastNameInvalid:"Field last name is invalid. Must be of length 1 to 40 and no special characters.",updatedAtInvalid:"Field createdAt is invalid. Must be date format.",emailInvalid:"Field email is invalid. Must be email format.",passwordInvalid:"Field password is invalid. Must be 8 characters long, 1 uppercase & 1 lowercase character, 1 number and 1 special character.",countryCodeInvalid:"Field countryCode is invalid.",languageCodeInvalid:"Field languageCode is invalid.",deletedAtInvalid:"Field deletedAt is invalid. Must be date format.",isActiveInvalid:"Field isActive is invalid.",isSuspendInvalid:"Field isSuspend is invalid.",userExist:"The user already exists.",authProviderInvalid:"Field authProvider is invalid.",isEnableInvalid:"Field isEnable is invalid.",sendEmailFailed:"Send email failed.",emailRequired:"Field email is required",firstNameRequired:"Field first name is required",lastNameRequired:"Field last name is required",countryCodeRequired:"Field country code is required",userStatusInvalid:"Field status invalid. Please select a status that we support.",loginAtInvalid:"Field last login is invalid.",avatarFileInvalid:"Avatar file format not supported. Must be png, jpeg, jpg and size less than 1mb.",permissionGroupNotFound:"Permission group not Found.",organizeInvalid:"Field organize is required. Must be a object.",relatedIdInvalid:"Field organize's relatedId. Must be a number.",userOrganizeNotFound:"User's organize not Found.",isSystemInvalid:"Field isSystem is invalid.",organizeUserInvalid:"Field users is invalid. Must be a array.",organizeUserDuplicate:"Field users contains duplicated email."}},permissionGroup:{errorMessage:{actionNotFound:"Action not found.",permissionGroupNotFound:"Permission group not Found.",permissionGroupIsExisted:"Permission group name is existed",permissionGroupOrganizeNotFound:"Permission group's organize not Found.",relatedIdInvalid:"Field organize's relatedId. Must be a number.",cannotRemoveFullPermissionGroup:"You cannot remove this permission group.",cannotEditFullPermissionGroup:"You cannot update this permission group."}},organize:{errorMessage:{relatedIdInvalid:"Field relatedId is invalid. Must be number.",nameInvalid:"Field data's name is invalid. Must be of length 1 to 40 and no special characters.",dataInvalid:"Field data is invalid. Must be object.",organizeExist:"The organize already exists.",callbackUrlInvalid:"Field data's callbackPath is invalid. Must be a string."}}},notificationAdmin:{notfication:{errorMessage:{notificationFilterType:"Field notificationFilterType is invalid. Must be one of read, unread and all.",userIdInvalid:"Field userId is invalid. Must be a number.",filterInvalid:"Field filter is invalid. Must be a object.",isReadInvalid:"Field isRead is invalid. Must be a boolean.",notificationIdInvalid:"Field id is invalid. Must be a number.",userDeviceTokenInvalid:"Field deviceToken is invalid. Must be a string."}},noficationConfig:{errorMessage:{notificationNotFound:"Notification config not found.",notificationIsExisted:"Notification rule is existed.",actionNotFound:"Action not found.",userNotFound:"User not found.",firstNameInvalid:"Field first name is invalid. Must be of length 1 to 40 and no special characters.",createdAtInvalid:"Field createdAt is invalid.",lastNameInvalid:"Field last name is invalid. Must be of length 1 to 40 and no special characters.",updatedAtInvalid:"Field createdAt is invalid. Must be date format.",emailInvalid:"Field email is invalid. Must be email format.",passwordInvalid:"Field password is invalid. Must be 8 characters long, 1 uppercase & 1 lowercase character, 1 number and 1 special character.",countryCodeInvalid:"Field countryCode is invalid.",languageCodeInvalid:"Field languageCode is invalid.",deletedAtInvalid:"Field deletedAt is invalid. Must be date format.",isActiveInvalid:"Field isActive is invalid.",isSuspendInvalid:"Field isSuspend is invalid.",userExist:"The user already exists.",authProviderInvalid:"Field authProvider is invalid.",isEnableInvalid:"Field isEnable is invalid.",sendEmailFailed:"Send email failed.",emailRequired:"Field email is required",firstNameRequired:"Field first name is required",lastNameRequired:"Field last name is required",countryCodeRequired:"Field country code is required",userStatusInvalid:"Field status invalid. Please select a status that we support.",loginAtInvalid:"Field last login is invalid.",avatarFileInvalid:"Avatar file format not supported. Must be png, jpeg, jpg and size less than 1mb.",permissionGroupNotFound:"Permission group not Found.",organizeInvalid:"Field organize is required. Must be a object.",relatedIdInvalid:"Field organize's relatedId. Must be a number.",userOrganizeNotFound:"User's organize not Found.",isSystemInvalid:"Field isSystem is invalid.",organizeUserInvalid:"Field users is invalid. Must be a array.",organizeUserDuplicate:"Field users contains duplicated email."}}}},aS={errorMessage:nS,components:rS,configurations:iS},oS={400:"Schlechte Anfrage - Die Anfrage kann aufgrund einer schlechten Syntax nicht erfüllt werden.",401:"Die Anfrage erfordert eine Benutzerauthentifizierung.",403:"Der Benutzer hat keine Berechtigung.",404:"Element nicht gefunden",500:"Server hat einen Fehler erhalten, bitte um Hilfe kontaktieren",502:"Server hat ein ungültiges Gateway erhalten, bitte um Hilfe kontaktieren",503:"Server ist nicht verfügbar, bitte um Hilfe kontaktieren",504:"Server-Zeitüberschreitung, bitte um Hilfe kontaktieren"},sS={unauthorizedPage:{title:"Zugriff verweigert: Keine Zugriffsberechtigung",description1:"Wir bedauern Ihnen mitteilen zu müssen, dass Sie nicht über die erforderlichen Berechtigungen verfügen, um auf diese Seite zuzugreifen.",description2:"Bitte kontaktieren Sie unseren Administrator für Unterstützung. Vielen Dank für Ihr Verständnis."}},lS={saasAdmin:{servicePackage:{errorMessage:{packageNotFound:"Paket nicht gefunden.",languageInvalid:"Das Feld Sprache ist ungültig.",packageNameExists:"Der Paketname existiert bereits.",serviceNotFound:"Dienst nicht gefunden.",serviceNotBelongToPackage:"Dienst nicht gefunden oder gehört nicht zum richtigen Paket",serviceNotBelongToServiceParent:"Dienst nicht gefunden oder gehört nicht zum richtigen Dienst-Elternteil",canNotGetServiceListPleaseTryAgain:"Dienstliste kann derzeit nicht abgerufen werden, bitte versuchen Sie es erneut"}},tenantManagement:{errorMessage:{tenantNotFound:"Mieter nicht gefunden.",countryInvalid:"Das Feld Land ist ungültig.",createTenantFailed:"Mietererstellung fehlgeschlagen. Bitte versuchen Sie es erneut.",isTenantMailExist:"Die E-Mail existiert bereits."}},brandManagement:{errorMessage:{firstNameInvalid:"Das Feld Vorname ist ungültig. Muss eine Länge von 3 bis 40 Zeichen haben und keine Sonderzeichen enthalten.",createdAtInvalid:"Das Feld Erstellt am ist ungültig.",brandNotFound:"Marke nicht gefunden.",lastNameInvalid:"Das Feld Nachname ist ungültig. Muss eine Länge von 3 bis 40 Zeichen haben und keine Sonderzeichen enthalten.",idInvalid:"Das Feld ID ist ungültig. Muss im UUID-v4-Format sein.",updatedAtInvalid:"Das Feld Erstellt am ist ungültig. Muss im Datumsformat sein.",countryInvalid:"Das Feld Land ist ungültig. Bitte wählen Sie ein von uns unterstütztes Land aus.",termTypeInvalid:"Das Feld TermType ist ungültig. Bitte wählen Sie einen von uns unterstützten TermType aus.",baseCostTypeInvalid:"Das Feld BaseCostType ist ungültig. Bitte wählen Sie einen von uns unterstützten BaseCostType aus.",brandStatusesInvalid:"BrandStatuses ist ungültig. Bitte wählen Sie einen von uns unterstützten BrandStatuses aus.",informationPlanIsRequired:"Informationsplan ist erforderlich.",settingStatusesInvalid:"SettingStatuses ist ungültig. Bitte wählen Sie einen von uns unterstützten BaseCostType aus.",languagesInvalid:"Sprachen ist ungültig. Bitte wählen Sie eine von uns unterstützte Sprache aus.",currencyInvalid:"Währung ist ungültig. Bitte wählen Sie eine von uns unterstützte Währung aus.",distanceMetricInvalid:"Entfernungsmetrik ist ungültig. Bitte wählen Sie eine von uns unterstützte Entfernungsmetrik aus.",settingNotFound:"Einstellung nicht gefunden.",subscriptionNotFound:"Abonnement nicht gefunden.",subscriptionNameExists:"Der Abonnementname existiert bereits.",subscriptionServiceNotFound:"Abonnementdienst nicht gefunden.",subscriptionServiceNotBelongToPackage:"Abonnementdienst nicht gefunden oder gehört nicht zum richtigen Paket",subscriptionServiceNotBelongTosubscriptionServiceParent:"Abonnementdienst nicht gefunden oder gehört nicht zum richtigen Abonnementdienst-Elternteil",canNotGetsubscriptionServiceListPleaseTryAgain:"Abonnementdienstliste kann derzeit nicht abgerufen werden, bitte versuchen Sie es erneut"}}},tenantAdmin:{brandManagement:{errorMessage:{firstNameInvalid:"Das Feld Vorname ist ungültig. Muss eine Länge von 3 bis 40 Zeichen haben und keine Sonderzeichen enthalten.",createdAtInvalid:"Das Feld Erstellt am ist ungültig.",brandNotFound:"Marke nicht gefunden.",lastNameInvalid:"Das Feld Nachname ist ungültig. Muss eine Länge von 3 bis 40 Zeichen haben und keine Sonderzeichen enthalten.",idInvalid:"Das Feld ID ist ungültig. Muss im UUID-v4-Format sein.",updatedAtInvalid:"Das Feld Erstellt am ist ungültig. Muss im Datumsformat sein.",countryInvalid:"Das Feld Land ist ungültig. Bitte wählen Sie ein von uns unterstütztes Land aus.",termTypeInvalid:"Das Feld TermType ist ungültig. Bitte wählen Sie einen von uns unterstützten TermType aus.",baseCostTypeInvalid:"Das Feld BaseCostType ist ungültig. Bitte wählen Sie einen von uns unterstützten BaseCostType aus.",brandStatusesInvalid:"BrandStatuses ist ungültig. Bitte wählen Sie einen von uns unterstützten BrandStatuses aus.",informationPlanIsRequired:"Informationsplan ist erforderlich.",settingStatusesInvalid:"SettingStatuses ist ungültig. Bitte wählen Sie einen von uns unterstützten BaseCostType aus.",languagesInvalid:"Sprachen ist ungültig. Bitte wählen Sie eine von uns unterstützte Sprache aus.",currencyInvalid:"Währung ist ungültig. Bitte wählen Sie eine von uns unterstützte Währung aus.",distanceMetricInvalid:"Entfernungsmetrik ist ungültig. Bitte wählen Sie eine von uns unterstützte Entfernungsmetrik aus.",settingNotFound:"Einstellung nicht gefunden.",subscriptionNotFound:"Abonnement nicht gefunden.",subscriptionNameExists:"Der Abonnementname existiert bereits.",subscriptionServiceNotFound:"Abonnementdienst nicht gefunden.",subscriptionServiceNotBelongToPackage:"Abonnementdienst nicht gefunden oder gehört nicht zum richtigen Paket",subscriptionServiceNotBelongTosubscriptionServiceParent:"Abonnementdienst nicht gefunden oder gehört nicht zum richtigen Abonnementdienst-Elternteil",canNotGetsubscriptionServiceListPleaseTryAgain:"Abonnementdienstliste kann derzeit nicht abgerufen werden, bitte versuchen Sie es erneut"}}},brandAdmin:{errorMessage:{firstNameInvalid:"Das Feld Vorname ist ungültig. Muss eine Länge von 3 bis 40 Zeichen haben und keine Sonderzeichen enthalten.",createdAtInvalid:"Das Feld Erstellt am ist ungültig.",brandNotFound:"Marke nicht gefunden.",lastNameInvalid:"Das Feld Nachname ist ungültig. Muss eine Länge von 3 bis 40 Zeichen haben und keine Sonderzeichen enthalten.",idInvalid:"Das Feld ID ist ungültig. Muss im UUID-v4-Format sein.",updatedAtInvalid:"Das Feld Erstellt am ist ungültig. Muss im Datumsformat sein.",countryInvalid:"Das Feld Land ist ungültig. Bitte wählen Sie ein von uns unterstütztes Land aus.",termTypeInvalid:"Das Feld TermType ist ungültig. Bitte wählen Sie einen von uns unterstützten TermType aus.",baseCostTypeInvalid:"Das Feld BaseCostType ist ungültig. Bitte wählen Sie einen von uns unterstützten BaseCostType aus.",brandStatusesInvalid:"BrandStatuses ist ungültig. Bitte wählen Sie einen von uns unterstützten BrandStatuses aus.",informationPlanIsRequired:"Informationsplan ist erforderlich.",settingStatusesInvalid:"SettingStatuses ist ungültig. Bitte wählen Sie einen von uns unterstützten BaseCostType aus.",languagesInvalid:"Sprachen ist ungültig. Bitte wählen Sie eine von uns unterstützte Sprache aus.",currencyInvalid:"Währung ist ungültig. Bitte wählen Sie eine von uns unterstützte Währung aus.",distanceMetricInvalid:"Entfernungsmetrik ist ungültig. Bitte wählen Sie eine von uns unterstützte Entfernungsmetrik aus.",settingNotFound:"Einstellung nicht gefunden.",subscriptionNotFound:"Abonnement nicht gefunden.",subscriptionNameExists:"Der Abonnementname existiert bereits.",subscriptionServiceNotFound:"Abonnementdienst nicht gefunden.",subscriptionServiceNotBelongToPackage:"Abonnementdienst nicht gefunden oder gehört nicht zum richtigen Paket",subscriptionServiceNotBelongTosubscriptionServiceParent:"Abonnementdienst nicht gefunden oder gehört nicht zum richtigen Abonnementdienst-Elternteil",canNotGetsubscriptionServiceListPleaseTryAgain:"Abonnementdienstliste kann derzeit nicht abgerufen werden, bitte versuchen Sie es erneut"}},iam:{usersManagement:{errorMessage:{firstNameInvalid:"Feld Vorname ist ungültig. Muss eine Länge von 1 bis 40 Zeichen haben und keine Sonderzeichen enthalten.",createdAtInvalid:"Feld Erstellt am ist ungültig.",notFound:"Benutzer nicht gefunden.",lastNameInvalid:"Feld Nachname ist ungültig. Muss eine Länge von 1 bis 40 Zeichen haben und keine Sonderzeichen enthalten.",updatedAtInvalid:"Feld Erstellt am ist ungültig. Muss im Datumsformat sein.",emailInvalid:"Feld E-Mail ist ungültig. Muss im E-Mail-Format sein.",passwordInvalid:"Feld Passwort ist ungültig. Muss 8 Zeichen lang sein, 1 Großbuchstaben & 1 Kleinbuchstaben enthalten, 1 Zahl und 1 Sonderzeichen.",countryCodeInvalid:"Feld Ländercode ist ungültig.",languageCodeInvalid:"Feld Sprachcode ist ungültig.",deletedAtInvalid:"Feld Gelöscht am ist ungültig. Muss im Datumsformat sein.",isActiveInvalid:"Feld IstAktiv ist ungültig.",isSuspendInvalid:"Feld IstGesperrt ist ungültig.",userExist:"Der Benutzer existiert bereits.",authProviderInvalid:"Feld Authentifizierungsanbieter ist ungültig.",isEnableInvalid:"Feld IstAktiviert ist ungültig.",sendEmailFailed:"E-Mail senden fehlgeschlagen.",emailRequired:"Feld E-Mail ist erforderlich",firstNameRequired:"Feld Vorname ist erforderlich",lastNameRequired:"Feld Nachname ist erforderlich",countryCodeRequired:"Feld Ländercode ist erforderlich",userStatusInvalid:"Feld Status ungültig. Bitte wählen Sie einen von uns unterstützten Status.",loginAtInvalid:"Feld Letzte Anmeldung ist ungültig.",avatarFileInvalid:"Avatar-Dateiformat wird nicht unterstützt. Muss png, jpeg, jpg sein und kleiner als 1 MB.",permissionGroupNotFound:"Berechtigungsgruppe nicht gefunden.",organizeInvalid:"Feld Organisation ist erforderlich. Muss ein Objekt sein.",relatedIdInvalid:"Feld Bezug-ID der Organisation ist ungültig. Muss eine Zahl sein.",userOrganizeNotFound:"Benutzerorganisation nicht gefunden.",isSystemInvalid:"Feld IstSystem ist ungültig.",organizeUserInvalid:"Feld Benutzer ist ungültig. Muss ein Array sein.",organizeUserDuplicate:"Feld Benutzer enthält duplizierte E-Mail-Adressen."}},permissionGroup:{errorMessage:{actionNotFound:"Aktion nicht gefunden.",permissionGroupNotFound:"Berechtigungsgruppe nicht gefunden.",permissionGroupIsExisted:"Berechtigungsgruppenname existiert bereits",permissionGroupOrganizeNotFound:"Organisation der Berechtigungsgruppe nicht gefunden.",relatedIdInvalid:"Feld Bezug-ID der Organisation ist ungültig. Muss eine Zahl sein.",cannotRemoveFullPermissionGroup:"Sie können diese Berechtigungsgruppe nicht entfernen.",cannotEditFullPermissionGroup:"Sie können diese Berechtigungsgruppe nicht aktualisieren."}},organize:{errorMessage:{relatedIdInvalid:"Feld Bezug-ID ist ungültig. Muss eine Zahl sein.",nameInvalid:"Feld Name der Daten ist ungültig. Muss eine Länge von 1 bis 40 Zeichen haben und keine Sonderzeichen enthalten.",dataInvalid:"Feld Daten ist ungültig. Muss ein Objekt sein.",organizeExist:"Die Organisation existiert bereits.",callbackUrlInvalid:"Feld Callback-URL der Daten ist ungültig. Muss eine Zeichenkette sein."}}},notificationAdmin:{notfication:{errorMessage:{notificationFilterType:"Feld notificationFilterType ist ungültig. Muss einer der Werte 'gelesen', 'ungelesen' oder 'alle' sein.",userIdInvalid:"Feld userId ist ungültig. Muss eine Zahl sein.",filterInvalid:"Feld filter ist ungültig. Muss ein Objekt sein.",isReadInvalid:"Feld isRead ist ungültig. Muss ein boolescher Wert sein.",notificationIdInvalid:"Feld id ist ungültig. Muss eine Zahl sein.",userDeviceTokenInvalid:"Feld deviceToken ist ungültig. Muss eine Zeichenfolge sein."}},noficationConfig:{errorMessage:{notificationNotFound:"Benachrichtigungskonfiguration nicht gefunden.",notificationIsExisted:"Benachrichtigungsregel existiert bereits.",actionNotFound:"Aktion nicht gefunden.",userNotFound:"Benutzer nicht gefunden.",firstNameInvalid:"Feld Vorname ist ungültig. Muss eine Länge von 1 bis 40 Zeichen haben und keine Sonderzeichen enthalten.",createdAtInvalid:"Feld createdAt ist ungültig.",lastNameInvalid:"Feld Nachname ist ungültig. Muss eine Länge von 1 bis 40 Zeichen haben und keine Sonderzeichen enthalten.",updatedAtInvalid:"Feld createdAt ist ungültig. Muss im Datumsformat sein.",emailInvalid:"Feld E-Mail ist ungültig. Muss im E-Mail-Format sein.",passwordInvalid:"Feld Passwort ist ungültig. Muss 8 Zeichen lang sein, einen Großbuchstaben, einen Kleinbuchstaben, eine Zahl und ein Sonderzeichen enthalten.",countryCodeInvalid:"Feld Ländercode ist ungültig.",languageCodeInvalid:"Feld Sprachcode ist ungültig.",deletedAtInvalid:"Feld deletedAt ist ungültig. Muss im Datumsformat sein.",isActiveInvalid:"Feld isActive ist ungültig.",isSuspendInvalid:"Feld isSuspend ist ungültig.",userExist:"Der Benutzer existiert bereits.",authProviderInvalid:"Feld authProvider ist ungültig.",isEnableInvalid:"Feld isEnable ist ungültig.",sendEmailFailed:"E-Mail-Versand fehlgeschlagen.",emailRequired:"Feld E-Mail ist erforderlich",firstNameRequired:"Feld Vorname ist erforderlich",lastNameRequired:"Feld Nachname ist erforderlich",countryCodeRequired:"Feld Ländercode ist erforderlich",userStatusInvalid:"Feld Status ist ungültig. Bitte wählen Sie einen unterstützten Status aus.",loginAtInvalid:"Feld letzter Login ist ungültig.",avatarFileInvalid:"Avatar-Dateiformat wird nicht unterstützt. Muss png, jpeg, jpg sein und kleiner als 1 MB sein.",permissionGroupNotFound:"Berechtigungsgruppe nicht gefunden.",organizeInvalid:"Feld Organisieren ist erforderlich. Muss ein Objekt sein.",relatedIdInvalid:"Feld relatedId von Organisieren. Muss eine Zahl sein.",userOrganizeNotFound:"Benutzerorganisation nicht gefunden.",isSystemInvalid:"Feld isSystem ist ungültig.",organizeUserInvalid:"Feld Benutzer ist ungültig. Muss ein Array sein.",organizeUserDuplicate:"Feld Benutzer enthält doppelte E-Mails."}}}},uS={errorMessage:oS,components:sS,configurations:lS};var Uf=(a=>(a.en="en",a.de="de",a))(Uf||{});const cS={de:{translation:uS},en:{translation:aS}};Fr.use(Q0).use(op).init({resources:cS,fallbackLng:"en"});function fS(){const[a,t]=qe.useState();return qe.useEffect(()=>{const r=localStorage.getItem("language");t(r||Uf.en)},[]),{language:a,setLanguage:t}}const sp=qe.createContext({}),dS=()=>qe.useContext(sp),hS=({children:a,resources:t})=>{const r=fS();return t&&(console.log("🚀 ~ resources:",t),Object.keys(t).map(f=>{Fr.addResourceBundle(f,"translation",t[`${f}`])})),sr.jsx(sp.Provider,{value:r,children:sr.jsx(tS,{i18n:Fr,children:a})})},pS={TOKEN_MALFORMED:"token_malformed",TOKEN_EXPIRED:"token_expired"},gS=a=>{window.location.href=`${a}/authentication/login?callbackUrl=${window.location.href}`},vS=a=>{window.location.href=`${a}/authentication/logout?callbackUrl=${window.location.href}`};function lp(a){var t,r,f="";if(typeof a=="string"||typeof a=="number")f+=a;else if(typeof a=="object")if(Array.isArray(a)){var o=a.length;for(t=0;t<o;t++)a[t]&&(r=lp(a[t]))&&(f&&(f+=" "),f+=r)}else for(r in a)a[r]&&(f&&(f+=" "),f+=r);return f}function ks(){for(var a,t,r=0,f="",o=arguments.length;r<o;r++)(a=arguments[r])&&(t=lp(a))&&(f&&(f+=" "),f+=t);return f}const $u=a=>typeof a=="number"&&!isNaN(a),Vl=a=>typeof a=="string",Ta=a=>typeof a=="function",dc=a=>Vl(a)||Ta(a)?a:null,Rf=a=>qe.isValidElement(a)||Vl(a)||Ta(a)||$u(a);function mS(a,t,r){r===void 0&&(r=300);const{scrollHeight:f,style:o}=a;requestAnimationFrame(()=>{o.minHeight="initial",o.height=f+"px",o.transition=`all ${r}ms`,requestAnimationFrame(()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(t,r)})})}function Cc(a){let{enter:t,exit:r,appendPosition:f=!1,collapse:o=!0,collapseDuration:p=300}=a;return function(C){let{children:P,position:_,preventExitTransition:M,done:X,nodeRef:z,isIn:Z,playToast:be}=C;const ue=f?`${t}--${_}`:t,ce=f?`${r}--${_}`:r,ee=qe.useRef(0);return qe.useLayoutEffect(()=>{const W=z.current,_e=ue.split(" "),Ie=Ae=>{Ae.target===z.current&&(be(),W.removeEventListener("animationend",Ie),W.removeEventListener("animationcancel",Ie),ee.current===0&&Ae.type!=="animationcancel"&&W.classList.remove(..._e))};W.classList.add(..._e),W.addEventListener("animationend",Ie),W.addEventListener("animationcancel",Ie)},[]),qe.useEffect(()=>{const W=z.current,_e=()=>{W.removeEventListener("animationend",_e),o?mS(W,X,p):X()};Z||(M?_e():(ee.current=1,W.className+=` ${ce}`,W.addEventListener("animationend",_e)))},[Z]),qe.createElement(qe.Fragment,null,P)}}function kh(a,t){return a!=null?{content:a.content,containerId:a.props.containerId,id:a.props.toastId,theme:a.props.theme,type:a.props.type,data:a.props.data||{},isLoading:a.props.isLoading,icon:a.props.icon,status:t}:{}}const Ui=new Map;let Vu=[];const Df=new Set,yS=a=>Df.forEach(t=>t(a)),up=()=>Ui.size>0;function cp(a,t){var r;if(t)return!((r=Ui.get(t))==null||!r.isToastActive(a));let f=!1;return Ui.forEach(o=>{o.isToastActive(a)&&(f=!0)}),f}function fp(a,t){Rf(a)&&(up()||Vu.push({content:a,options:t}),Ui.forEach(r=>{r.buildToast(a,t)}))}function Eh(a,t){Ui.forEach(r=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===r.id&&r.toggle(a,t==null?void 0:t.id):r.toggle(a,t==null?void 0:t.id)})}function bS(a){const{subscribe:t,getSnapshot:r,setProps:f}=qe.useRef(function(p){const C=p.containerId||1;return{subscribe(P){const _=function(X,z,Z){let be=1,ue=0,ce=[],ee=[],W=[],_e=z;const Ie=new Map,Ae=new Set,fe=()=>{W=Array.from(Ie.values()),Ae.forEach(We=>We())},Be=We=>{ee=We==null?[]:ee.filter(De=>De!==We),fe()},v=We=>{const{toastId:De,onOpen:Dt,updateId:Ct,children:At}=We.props,lt=Ct==null;We.staleId&&Ie.delete(We.staleId),Ie.set(De,We),ee=[...ee,We.props.toastId].filter(kt=>kt!==We.staleId),fe(),Z(kh(We,lt?"added":"updated")),lt&&Ta(Dt)&&Dt(qe.isValidElement(At)&&At.props)};return{id:X,props:_e,observe:We=>(Ae.add(We),()=>Ae.delete(We)),toggle:(We,De)=>{Ie.forEach(Dt=>{De!=null&&De!==Dt.props.toastId||Ta(Dt.toggle)&&Dt.toggle(We)})},removeToast:Be,toasts:Ie,clearQueue:()=>{ue-=ce.length,ce=[]},buildToast:(We,De)=>{if((ze=>{let{containerId:et,toastId:tt,updateId:Ve}=ze;const Ye=et?et!==X:X!==1,ut=Ie.has(tt)&&Ve==null;return Ye||ut})(De))return;const{toastId:Dt,updateId:Ct,data:At,staleId:lt,delay:kt}=De,Kt=()=>{Be(Dt)},qt=Ct==null;qt&&ue++;const mt={..._e,style:_e.toastStyle,key:be++,...Object.fromEntries(Object.entries(De).filter(ze=>{let[et,tt]=ze;return tt!=null})),toastId:Dt,updateId:Ct,data:At,closeToast:Kt,isIn:!1,className:dc(De.className||_e.toastClassName),bodyClassName:dc(De.bodyClassName||_e.bodyClassName),progressClassName:dc(De.progressClassName||_e.progressClassName),autoClose:!De.isLoading&&(Xe=De.autoClose,wt=_e.autoClose,Xe===!1||$u(Xe)&&Xe>0?Xe:wt),deleteToast(){const ze=Ie.get(Dt),{onClose:et,children:tt}=ze.props;Ta(et)&&et(qe.isValidElement(tt)&&tt.props),Z(kh(ze,"removed")),Ie.delete(Dt),ue--,ue<0&&(ue=0),ce.length>0?v(ce.shift()):fe()}};var Xe,wt;mt.closeButton=_e.closeButton,De.closeButton===!1||Rf(De.closeButton)?mt.closeButton=De.closeButton:De.closeButton===!0&&(mt.closeButton=!Rf(_e.closeButton)||_e.closeButton);let Re=We;qe.isValidElement(We)&&!Vl(We.type)?Re=qe.cloneElement(We,{closeToast:Kt,toastProps:mt,data:At}):Ta(We)&&(Re=We({closeToast:Kt,toastProps:mt,data:At}));const Oe={content:Re,props:mt,staleId:lt};_e.limit&&_e.limit>0&&ue>_e.limit&&qt?ce.push(Oe):$u(kt)?setTimeout(()=>{v(Oe)},kt):v(Oe)},setProps(We){_e=We},setToggle:(We,De)=>{Ie.get(We).toggle=De},isToastActive:We=>ee.some(De=>De===We),getSnapshot:()=>_e.newestOnTop?W.reverse():W}}(C,p,yS);Ui.set(C,_);const M=_.observe(P);return Vu.forEach(X=>fp(X.content,X.options)),Vu=[],()=>{M(),Ui.delete(C)}},setProps(P){var _;(_=Ui.get(C))==null||_.setProps(P)},getSnapshot(){var P;return(P=Ui.get(C))==null?void 0:P.getSnapshot()}}}(a)).current;f(a);const o=qe.useSyncExternalStore(t,r,r);return{getToastToRender:function(p){if(!o)return[];const C=new Map;return o.forEach(P=>{const{position:_}=P.props;C.has(_)||C.set(_,[]),C.get(_).push(P)}),Array.from(C,P=>p(P[0],P[1]))},isToastActive:cp,count:o==null?void 0:o.length}}function SS(a){const[t,r]=qe.useState(!1),[f,o]=qe.useState(!1),p=qe.useRef(null),C=qe.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:P,pauseOnHover:_,closeToast:M,onClick:X,closeOnClick:z}=a;var Z,be;function ue(){r(!0)}function ce(){r(!1)}function ee(Ie){const Ae=p.current;C.canDrag&&Ae&&(C.didMove=!0,t&&ce(),C.delta=a.draggableDirection==="x"?Ie.clientX-C.start:Ie.clientY-C.start,C.start!==Ie.clientX&&(C.canCloseOnClick=!1),Ae.style.transform=`translate3d(${a.draggableDirection==="x"?`${C.delta}px, var(--y)`:`0, calc(${C.delta}px + var(--y))`},0)`,Ae.style.opacity=""+(1-Math.abs(C.delta/C.removalDistance)))}function W(){document.removeEventListener("pointermove",ee),document.removeEventListener("pointerup",W);const Ie=p.current;if(C.canDrag&&C.didMove&&Ie){if(C.canDrag=!1,Math.abs(C.delta)>C.removalDistance)return o(!0),a.closeToast(),void a.collapseAll();Ie.style.transition="transform 0.2s, opacity 0.2s",Ie.style.removeProperty("transform"),Ie.style.removeProperty("opacity")}}(be=Ui.get((Z={id:a.toastId,containerId:a.containerId,fn:r}).containerId||1))==null||be.setToggle(Z.id,Z.fn),qe.useEffect(()=>{if(a.pauseOnFocusLoss)return document.hasFocus()||ce(),window.addEventListener("focus",ue),window.addEventListener("blur",ce),()=>{window.removeEventListener("focus",ue),window.removeEventListener("blur",ce)}},[a.pauseOnFocusLoss]);const _e={onPointerDown:function(Ie){if(a.draggable===!0||a.draggable===Ie.pointerType){C.didMove=!1,document.addEventListener("pointermove",ee),document.addEventListener("pointerup",W);const Ae=p.current;C.canCloseOnClick=!0,C.canDrag=!0,Ae.style.transition="none",a.draggableDirection==="x"?(C.start=Ie.clientX,C.removalDistance=Ae.offsetWidth*(a.draggablePercent/100)):(C.start=Ie.clientY,C.removalDistance=Ae.offsetHeight*(a.draggablePercent===80?1.5*a.draggablePercent:a.draggablePercent)/100)}},onPointerUp:function(Ie){const{top:Ae,bottom:fe,left:Be,right:v}=p.current.getBoundingClientRect();Ie.nativeEvent.type!=="touchend"&&a.pauseOnHover&&Ie.clientX>=Be&&Ie.clientX<=v&&Ie.clientY>=Ae&&Ie.clientY<=fe?ce():ue()}};return P&&_&&(_e.onMouseEnter=ce,a.stacked||(_e.onMouseLeave=ue)),z&&(_e.onClick=Ie=>{X&&X(Ie),C.canCloseOnClick&&M()}),{playToast:ue,pauseToast:ce,isRunning:t,preventExitTransition:f,toastRef:p,eventHandlers:_e}}function wS(a){let{delay:t,isRunning:r,closeToast:f,type:o="default",hide:p,className:C,style:P,controlledProgress:_,progress:M,rtl:X,isIn:z,theme:Z}=a;const be=p||_&&M===0,ue={...P,animationDuration:`${t}ms`,animationPlayState:r?"running":"paused"};_&&(ue.transform=`scaleX(${M})`);const ce=ks("Toastify__progress-bar",_?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${Z}`,`Toastify__progress-bar--${o}`,{"Toastify__progress-bar--rtl":X}),ee=Ta(C)?C({rtl:X,type:o,defaultClassName:ce}):ks(ce,C),W={[_&&M>=1?"onTransitionEnd":"onAnimationEnd"]:_&&M<1?null:()=>{z&&f()}};return qe.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":be},qe.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${Z} Toastify__progress-bar--${o}`}),qe.createElement("div",{role:"progressbar","aria-hidden":be?"true":"false","aria-label":"notification timer",className:ee,style:ue,...W}))}let xS=1;const dp=()=>""+xS++;function CS(a){return a&&(Vl(a.toastId)||$u(a.toastId))?a.toastId:dp()}function Uu(a,t){return fp(a,t),t.toastId}function mc(a,t){return{...t,type:t&&t.type||a,toastId:CS(t)}}function uc(a){return(t,r)=>Uu(t,mc(a,r))}function yn(a,t){return Uu(a,mc("default",t))}yn.loading=(a,t)=>Uu(a,mc("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),yn.promise=function(a,t,r){let f,{pending:o,error:p,success:C}=t;o&&(f=Vl(o)?yn.loading(o,r):yn.loading(o.render,{...r,...o}));const P={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},_=(X,z,Z)=>{if(z==null)return void yn.dismiss(f);const be={type:X,...P,...r,data:Z},ue=Vl(z)?{render:z}:z;return f?yn.update(f,{...be,...ue}):yn(ue.render,{...be,...ue}),Z},M=Ta(a)?a():a;return M.then(X=>_("success",C,X)).catch(X=>_("error",p,X)),M},yn.success=uc("success"),yn.info=uc("info"),yn.error=uc("error"),yn.warning=uc("warning"),yn.warn=yn.warning,yn.dark=(a,t)=>Uu(a,mc("default",{theme:"dark",...t})),yn.dismiss=function(a){(function(t){var r;if(up()){if(t==null||Vl(r=t)||$u(r))Ui.forEach(o=>{o.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){var f;(f=Ui.get(t.containerId))!=null&&f.removeToast(t.id)||Ui.forEach(o=>{o.removeToast(t.id)})}}else Vu=Vu.filter(o=>t!=null&&o.options.toastId!==t)})(a)},yn.clearWaitingQueue=function(a){a===void 0&&(a={}),Ui.forEach(t=>{!t.props.limit||a.containerId&&t.id!==a.containerId||t.clearQueue()})},yn.isActive=cp,yn.update=function(a,t){t===void 0&&(t={});const r=((f,o)=>{var p;let{containerId:C}=o;return(p=Ui.get(C||1))==null?void 0:p.toasts.get(f)})(a,t);if(r){const{props:f,content:o}=r,p={delay:100,...f,...t,toastId:t.toastId||a,updateId:dp()};p.toastId!==a&&(p.staleId=a);const C=p.render||o;delete p.render,Uu(C,p)}},yn.done=a=>{yn.update(a,{progress:1})},yn.onChange=function(a){return Df.add(a),()=>{Df.delete(a)}},yn.play=a=>Eh(!0,a),yn.pause=a=>Eh(!1,a);const kS=typeof window<"u"?qe.useLayoutEffect:qe.useEffect,cc=a=>{let{theme:t,type:r,isLoading:f,...o}=a;return qe.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${r})`,...o})},cf={info:function(a){return qe.createElement(cc,{...a},qe.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(a){return qe.createElement(cc,{...a},qe.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(a){return qe.createElement(cc,{...a},qe.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(a){return qe.createElement(cc,{...a},qe.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return qe.createElement("div",{className:"Toastify__spinner"})}},ES=a=>{const{isRunning:t,preventExitTransition:r,toastRef:f,eventHandlers:o,playToast:p}=SS(a),{closeButton:C,children:P,autoClose:_,onClick:M,type:X,hideProgressBar:z,closeToast:Z,transition:be,position:ue,className:ce,style:ee,bodyClassName:W,bodyStyle:_e,progressClassName:Ie,progressStyle:Ae,updateId:fe,role:Be,progress:v,rtl:We,toastId:De,deleteToast:Dt,isIn:Ct,isLoading:At,closeOnClick:lt,theme:kt}=a,Kt=ks("Toastify__toast",`Toastify__toast-theme--${kt}`,`Toastify__toast--${X}`,{"Toastify__toast--rtl":We},{"Toastify__toast--close-on-click":lt}),qt=Ta(ce)?ce({rtl:We,position:ue,type:X,defaultClassName:Kt}):ks(Kt,ce),mt=function(Oe){let{theme:ze,type:et,isLoading:tt,icon:Ve}=Oe,Ye=null;const ut={theme:ze,type:et};return Ve===!1||(Ta(Ve)?Ye=Ve({...ut,isLoading:tt}):qe.isValidElement(Ve)?Ye=qe.cloneElement(Ve,ut):tt?Ye=cf.spinner():(gt=>gt in cf)(et)&&(Ye=cf[et](ut))),Ye}(a),Xe=!!v||!_,wt={closeToast:Z,type:X,theme:kt};let Re=null;return C===!1||(Re=Ta(C)?C(wt):qe.isValidElement(C)?qe.cloneElement(C,wt):function(Oe){let{closeToast:ze,theme:et,ariaLabel:tt="close"}=Oe;return qe.createElement("button",{className:`Toastify__close-button Toastify__close-button--${et}`,type:"button",onClick:Ve=>{Ve.stopPropagation(),ze(Ve)},"aria-label":tt},qe.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},qe.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(wt)),qe.createElement(be,{isIn:Ct,done:Dt,position:ue,preventExitTransition:r,nodeRef:f,playToast:p},qe.createElement("div",{id:De,onClick:M,"data-in":Ct,className:qt,...o,style:ee,ref:f},qe.createElement("div",{...Ct&&{role:Be},className:Ta(W)?W({type:X}):ks("Toastify__toast-body",W),style:_e},mt!=null&&qe.createElement("div",{className:ks("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!At})},mt),qe.createElement("div",null,P)),Re,qe.createElement(wS,{...fe&&!Xe?{key:`pb-${fe}`}:{},rtl:We,theme:kt,delay:_,isRunning:t,isIn:Ct,closeToast:Z,hide:z,type:X,style:Ae,className:Ie,controlledProgress:Xe,progress:v||0})))},kc=function(a,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${a}-enter`,exit:`Toastify--animate Toastify__${a}-exit`,appendPosition:t}},TS=Cc(kc("bounce",!0));Cc(kc("slide",!0));Cc(kc("zoom"));Cc(kc("flip"));const IS={position:"top-right",transition:TS,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function _S(a){let t={...IS,...a};const r=a.stacked,[f,o]=qe.useState(!0),p=qe.useRef(null),{getToastToRender:C,isToastActive:P,count:_}=bS(t),{className:M,style:X,rtl:z,containerId:Z}=t;function be(ce){const ee=ks("Toastify__toast-container",`Toastify__toast-container--${ce}`,{"Toastify__toast-container--rtl":z});return Ta(M)?M({position:ce,rtl:z,defaultClassName:ee}):ks(ee,dc(M))}function ue(){r&&(o(!0),yn.play())}return kS(()=>{if(r){var ce;const ee=p.current.querySelectorAll('[data-in="true"]'),W=12,_e=(ce=t.position)==null?void 0:ce.includes("top");let Ie=0,Ae=0;Array.from(ee).reverse().forEach((fe,Be)=>{const v=fe;v.classList.add("Toastify__toast--stacked"),Be>0&&(v.dataset.collapsed=`${f}`),v.dataset.pos||(v.dataset.pos=_e?"top":"bot");const We=Ie*(f?.2:1)+(f?0:W*Be);v.style.setProperty("--y",`${_e?We:-1*We}px`),v.style.setProperty("--g",`${W}`),v.style.setProperty("--s",""+(1-(f?Ae:0))),Ie+=v.offsetHeight,Ae+=.025})}},[f,_,r]),qe.createElement("div",{ref:p,className:"Toastify",id:Z,onMouseEnter:()=>{r&&(o(!1),yn.pause())},onMouseLeave:ue},C((ce,ee)=>{const W=ee.length?{...X}:{...X,pointerEvents:"none"};return qe.createElement("div",{className:be(ce),style:W,key:`container-${ce}`},ee.map(_e=>{let{content:Ie,props:Ae}=_e;return qe.createElement(ES,{...Ae,stacked:r,collapseAll:ue,isIn:P(Ae.toastId,Ae.containerId),style:Ae.style,key:`toast-${Ae.key}`},Ie)}))}))}function RS(){return sr.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[sr.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 1C16.5222 1 21 5.47676 21 11C21 16.5222 16.5222 21 11 21C5.47676 21 1 16.5222 1 11C1 5.47676 5.47676 1 11 1Z",stroke:"#E01B00",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),sr.jsx("path",{d:"M10.9942 6.89636V11.6737",stroke:"#E01B00",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),sr.jsx("path",{d:"M10.9941 15.1038H11.0049",stroke:"#E01B00",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function DS(){return sr.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[sr.jsx("rect",{width:"24",height:"24",rx:"12",fill:"#009D4F"}),sr.jsx("path",{d:"M7.25244 12L10.4174 15.165L16.7474 8.83496",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function AS(){return sr.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[sr.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 1C16.5222 1 21 5.47676 21 11C21 16.5222 16.5222 21 11 21C5.47676 21 1 16.5222 1 11C1 5.47676 5.47676 1 11 1Z",stroke:"#faad14",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),sr.jsx("path",{d:"M10.9942 6.89636V11.6737",stroke:"#faad14",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),sr.jsx("path",{d:"M10.9941 15.1038H11.0049",stroke:"#faad14",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}const Wf={paddingLeft:"16px",borderLeft:"2px solid",boxShadow:"none",fontFamily:"inherit"},PS=a=>{yn.success(a,{icon:sr.jsx(DS,{}),bodyStyle:{},position:"bottom-right",style:{...Wf,background:$l.color.primary100,borderColor:$l.color.success,color:$l.color.success}})},OS=a=>{yn.error(a,{icon:sr.jsx(RS,{}),position:"bottom-right",style:{...Wf,background:"#F7E4E1",borderColor:$l.color.danger,color:$l.color.danger}})},MS=a=>{yn.error(a,{icon:sr.jsx(AS,{}),position:"bottom-right",style:{...Wf,background:"#FFF1B8",borderColor:"#faad14",color:$l.color.textPrimary}})};function zf(a,t){if(a==null)return{};var r={},f=Object.keys(a),o,p;for(p=0;p<f.length;p++)o=f[p],!(t.indexOf(o)>=0)&&(r[o]=a[o]);return r}const FS=Object.freeze(Object.defineProperty({__proto__:null,default:zf},Symbol.toStringTag,{value:"Module"}));function Cu(){return Cu=Object.assign?Object.assign.bind():function(a){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var f in r)Object.prototype.hasOwnProperty.call(r,f)&&(a[f]=r[f])}return a},Cu.apply(this,arguments)}const LS=Object.freeze(Object.defineProperty({__proto__:null,default:Cu},Symbol.toStringTag,{value:"Module"}));function Af(a,t){return Af=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,o){return f.__proto__=o,f},Af(a,t)}function hp(a,t){a.prototype=Object.create(t.prototype),a.prototype.constructor=a,Af(a,t)}function ff(a,t,r){if(r||arguments.length===2)for(var f=0,o=t.length,p;f<o;f++)(p||!(f in t))&&(p||(p=Array.prototype.slice.call(t,0,f)),p[f]=t[f]);return a.concat(p||Array.prototype.slice.call(t))}/*!
|
|
125
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},e0=function(a,t){return Zb(a)||Kb(a,t)||Jb(a,t)||Qb()},tp=ep(function(a){function t(){return a.exports=t=Object.assign||function(r){for(var f=1;f<arguments.length;f++){var o=arguments[f];for(var p in o)Object.prototype.hasOwnProperty.call(o,p)&&(r[p]=o[p])}return r},t.apply(this,arguments)}a.exports=t}),t0=function(a,t){if(a==null)return{};var r,f,o={},p=Object.keys(a);for(f=0;f<p.length;f++)r=p[f],t.indexOf(r)>=0||(o[r]=a[r]);return o},np=function(a,t){if(a==null)return{};var r,f,o=t0(a,t);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(a);for(f=0;f<p.length;f++)r=p[f],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(a,r)&&(o[r]=a[r])}return o},n0=qe.createContext(null);function Ef(a){var t=a.children,r=np(a,["children"]);return typeof t!="string"&&(t=jb(t)),qe.createElement("template",tp({},r,{dangerouslySetInnerHTML:{__html:t}}))}function Tf(a){var t=a.root,r=a.children;return Db.createPortal(r,t)}function r0(a){var t=qe.forwardRef(function(r,f){var o,p,C=r.mode,P=r.delegatesFocus,_=r.styleSheets,M=r.ssr,X=r.children,z=np(r,["mode","delegatesFocus","styleSheets","ssr","children"]),Z=(p=qe.useRef((o=f)&&o.current),qe.useEffect(function(){o&&(o.current=p.current)},[o]),p),be=qe.useState(null),ue=e0(be,2),ce=ue[0],ee=ue[1],W="node_".concat(C).concat(P);return qe.useLayoutEffect(function(){if(Z.current)try{if(typeof f=="function"&&f(Z.current),M){var _e=Z.current.shadowRoot;return void ee(_e)}var Ie=Z.current.attachShadow({mode:C,delegatesFocus:P});_.length>0&&(Ie.adoptedStyleSheets=_),ee(Ie)}catch(Ae){(function(fe){var Be=fe.error,v=fe.styleSheets,We=fe.root;switch(Be.name){case"NotSupportedError":v.length>0&&(We.adoptedStyleSheets=v);break;default:throw Be}})({error:Ae,styleSheets:_,root:ce})}},[f,Z,_]),qe.createElement(qe.Fragment,null,qe.createElement(a.tag,tp({key:W,ref:Z},z),(ce||M)&&qe.createElement(n0.Provider,{value:ce},M?qe.createElement(Ef,{shadowroot:C,shadowrootmode:C},a.render({root:ce,ssr:M,children:X})):qe.createElement(Tf,{root:ce},a.render({root:ce,ssr:M,children:X})))))});return t.propTypes={mode:Va.oneOf(["open","closed"]),delegatesFocus:Va.bool,styleSheets:Va.arrayOf(Va.instanceOf(globalThis.CSSStyleSheet)),ssr:Va.bool,children:Va.node},t.defaultProps={mode:"open",delegatesFocus:!1,styleSheets:[],ssr:!1,children:null},t}Ef.propTypes={children:Va.oneOfType([Va.string,Va.node])},Ef.defaultProps={children:""},Tf.propTypes={root:Va.object.isRequired,children:Va.node},Tf.defaultProps={children:null};var lf=new Map;function i0(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"core",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(f){return f.children};return new Proxy(a,{get:function(f,o){var p=Xb(o,{separator:"-"}),C="".concat(t,"-").concat(p);return lf.has(C)||lf.set(C,r0({tag:p,render:r})),lf.get(C)}})}var a0=i0();const o0={type:"logger",log(a){this.output("log",a)},warn(a){this.output("warn",a)},error(a){this.output("error",a)},output(a,t){console&&console[a]&&console[a].apply(console,t)}};let s0=class If{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,r)}init(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=t||o0,this.options=r,this.debug=r.debug}log(){for(var t=arguments.length,r=new Array(t),f=0;f<t;f++)r[f]=arguments[f];return this.forward(r,"log","",!0)}warn(){for(var t=arguments.length,r=new Array(t),f=0;f<t;f++)r[f]=arguments[f];return this.forward(r,"warn","",!0)}error(){for(var t=arguments.length,r=new Array(t),f=0;f<t;f++)r[f]=arguments[f];return this.forward(r,"error","")}deprecate(){for(var t=arguments.length,r=new Array(t),f=0;f<t;f++)r[f]=arguments[f];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}forward(t,r,f,o){return o&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${f}${this.prefix} ${t[0]}`),this.logger[r](t))}create(t){return new If(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new If(this.logger,t)}};var Uo=new s0;class xc{constructor(){this.observers={}}on(t,r){return t.split(" ").forEach(f=>{this.observers[f]||(this.observers[f]=new Map);const o=this.observers[f].get(r)||0;this.observers[f].set(r,o+1)}),this}off(t,r){if(this.observers[t]){if(!r){delete this.observers[t];return}this.observers[t].delete(r)}}emit(t){for(var r=arguments.length,f=new Array(r>1?r-1:0),o=1;o<r;o++)f[o-1]=arguments[o];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(C=>{let[P,_]=C;for(let M=0;M<_;M++)P(...f)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(C=>{let[P,_]=C;for(let M=0;M<_;M++)P.apply(P,[t,...f])})}}function Nu(){let a,t;const r=new Promise((f,o)=>{a=f,t=o});return r.resolve=a,r.reject=t,r}function uh(a){return a==null?"":""+a}function l0(a,t,r){a.forEach(f=>{t[f]&&(r[f]=t[f])})}const u0=/###/g;function Hu(a,t,r){function f(P){return P&&P.indexOf("###")>-1?P.replace(u0,"."):P}function o(){return!a||typeof a=="string"}const p=typeof t!="string"?t:t.split(".");let C=0;for(;C<p.length-1;){if(o())return{};const P=f(p[C]);!a[P]&&r&&(a[P]=new r),Object.prototype.hasOwnProperty.call(a,P)?a=a[P]:a={},++C}return o()?{}:{obj:a,k:f(p[C])}}function ch(a,t,r){const{obj:f,k:o}=Hu(a,t,Object);if(f!==void 0||t.length===1){f[o]=r;return}let p=t[t.length-1],C=t.slice(0,t.length-1),P=Hu(a,C,Object);for(;P.obj===void 0&&C.length;)p=`${C[C.length-1]}.${p}`,C=C.slice(0,C.length-1),P=Hu(a,C,Object),P&&P.obj&&typeof P.obj[`${P.k}.${p}`]<"u"&&(P.obj=void 0);P.obj[`${P.k}.${p}`]=r}function c0(a,t,r,f){const{obj:o,k:p}=Hu(a,t,Object);o[p]=o[p]||[],f&&(o[p]=o[p].concat(r)),f||o[p].push(r)}function pc(a,t){const{obj:r,k:f}=Hu(a,t);if(r)return r[f]}function f0(a,t,r){const f=pc(a,r);return f!==void 0?f:pc(t,r)}function rp(a,t,r){for(const f in t)f!=="__proto__"&&f!=="constructor"&&(f in a?typeof a[f]=="string"||a[f]instanceof String||typeof t[f]=="string"||t[f]instanceof String?r&&(a[f]=t[f]):rp(a[f],t[f],r):a[f]=t[f]);return a}function Su(a){return a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var d0={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function h0(a){return typeof a=="string"?a.replace(/[&<>"'\/]/g,t=>d0[t]):a}class p0{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const r=this.regExpMap.get(t);if(r!==void 0)return r;const f=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,f),this.regExpQueue.push(t),f}}const g0=[" ",",","?","!",";"],v0=new p0(20);function m0(a,t,r){t=t||"",r=r||"";const f=g0.filter(C=>t.indexOf(C)<0&&r.indexOf(C)<0);if(f.length===0)return!0;const o=v0.getRegExp(`(${f.map(C=>C==="?"?"\\?":C).join("|")})`);let p=!o.test(a);if(!p){const C=a.indexOf(r);C>0&&!o.test(a.substring(0,C))&&(p=!0)}return p}function _f(a,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!a)return;if(a[t])return a[t];const f=t.split(r);let o=a;for(let p=0;p<f.length;){if(!o||typeof o!="object")return;let C,P="";for(let _=p;_<f.length;++_)if(_!==p&&(P+=r),P+=f[_],C=o[P],C!==void 0){if(["string","number","boolean"].indexOf(typeof C)>-1&&_<f.length-1)continue;p+=_-p+1;break}o=C}return o}function gc(a){return a&&a.indexOf("_")>0?a.replace("_","-"):a}class fh extends xc{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const r=this.options.ns.indexOf(t);r>-1&&this.options.ns.splice(r,1)}getResource(t,r,f){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const p=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,C=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let P;t.indexOf(".")>-1?P=t.split("."):(P=[t,r],f&&(Array.isArray(f)?P.push(...f):typeof f=="string"&&p?P.push(...f.split(p)):P.push(f)));const _=pc(this.data,P);return!_&&!r&&!f&&t.indexOf(".")>-1&&(t=P[0],r=P[1],f=P.slice(2).join(".")),_||!C||typeof f!="string"?_:_f(this.data&&this.data[t]&&this.data[t][r],f,p)}addResource(t,r,f,o){let p=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const C=p.keySeparator!==void 0?p.keySeparator:this.options.keySeparator;let P=[t,r];f&&(P=P.concat(C?f.split(C):f)),t.indexOf(".")>-1&&(P=t.split("."),o=r,r=P[1]),this.addNamespaces(r),ch(this.data,P,o),p.silent||this.emit("added",t,r,f,o)}addResources(t,r,f){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const p in f)(typeof f[p]=="string"||Object.prototype.toString.apply(f[p])==="[object Array]")&&this.addResource(t,r,p,f[p],{silent:!0});o.silent||this.emit("added",t,r,f)}addResourceBundle(t,r,f,o,p){let C=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},P=[t,r];t.indexOf(".")>-1&&(P=t.split("."),o=f,f=r,r=P[1]),this.addNamespaces(r);let _=pc(this.data,P)||{};C.skipCopy||(f=JSON.parse(JSON.stringify(f))),o?rp(_,f,p):_={..._,...f},ch(this.data,P,_),C.silent||this.emit("added",t,r,f)}removeResourceBundle(t,r){this.hasResourceBundle(t,r)&&delete this.data[t][r],this.removeNamespaces(r),this.emit("removed",t,r)}hasResourceBundle(t,r){return this.getResource(t,r)!==void 0}getResourceBundle(t,r){return r||(r=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,r)}:this.getResource(t,r)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const r=this.getDataByLanguage(t);return!!(r&&Object.keys(r)||[]).find(o=>r[o]&&Object.keys(r[o]).length>0)}toJSON(){return this.data}}var ip={processors:{},addPostProcessor(a){this.processors[a.name]=a},handle(a,t,r,f,o){return a.forEach(p=>{this.processors[p]&&(t=this.processors[p].process(t,r,f,o))}),t}};const dh={};class vc extends xc{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),l0(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Uo.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const f=this.resolve(t,r);return f&&f.res!==void 0}extractFromKey(t,r){let f=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;f===void 0&&(f=":");const o=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let p=r.ns||this.options.defaultNS||[];const C=f&&t.indexOf(f)>-1,P=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!m0(t,f,o);if(C&&!P){const _=t.match(this.interpolator.nestingRegexp);if(_&&_.length>0)return{key:t,namespaces:p};const M=t.split(f);(f!==o||f===o&&this.options.ns.indexOf(M[0])>-1)&&(p=M.shift()),t=M.join(o)}return typeof p=="string"&&(p=[p]),{key:t,namespaces:p}}translate(t,r,f){if(typeof r!="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),typeof r=="object"&&(r={...r}),r||(r={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const o=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,p=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:C,namespaces:P}=this.extractFromKey(t[t.length-1],r),_=P[P.length-1],M=r.lng||this.language,X=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(M&&M.toLowerCase()==="cimode"){if(X){const Ae=r.nsSeparator||this.options.nsSeparator;return o?{res:`${_}${Ae}${C}`,usedKey:C,exactUsedKey:C,usedLng:M,usedNS:_,usedParams:this.getUsedParamsDetails(r)}:`${_}${Ae}${C}`}return o?{res:C,usedKey:C,exactUsedKey:C,usedLng:M,usedNS:_,usedParams:this.getUsedParamsDetails(r)}:C}const z=this.resolve(t,r);let Z=z&&z.res;const be=z&&z.usedKey||C,ue=z&&z.exactUsedKey||C,ce=Object.prototype.toString.apply(Z),ee=["[object Number]","[object Function]","[object RegExp]"],W=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,_e=!this.i18nFormat||this.i18nFormat.handleAsObject;if(_e&&Z&&(typeof Z!="string"&&typeof Z!="boolean"&&typeof Z!="number")&&ee.indexOf(ce)<0&&!(typeof W=="string"&&ce==="[object Array]")){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const Ae=this.options.returnedObjectHandler?this.options.returnedObjectHandler(be,Z,{...r,ns:P}):`key '${C} (${this.language})' returned an object instead of string.`;return o?(z.res=Ae,z.usedParams=this.getUsedParamsDetails(r),z):Ae}if(p){const Ae=ce==="[object Array]",fe=Ae?[]:{},Be=Ae?ue:be;for(const v in Z)if(Object.prototype.hasOwnProperty.call(Z,v)){const We=`${Be}${p}${v}`;fe[v]=this.translate(We,{...r,joinArrays:!1,ns:P}),fe[v]===We&&(fe[v]=Z[v])}Z=fe}}else if(_e&&typeof W=="string"&&ce==="[object Array]")Z=Z.join(W),Z&&(Z=this.extendTranslation(Z,t,r,f));else{let Ae=!1,fe=!1;const Be=r.count!==void 0&&typeof r.count!="string",v=vc.hasDefaultValue(r),We=Be?this.pluralResolver.getSuffix(M,r.count,r):"",De=r.ordinal&&Be?this.pluralResolver.getSuffix(M,r.count,{ordinal:!1}):"",Dt=Be&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),Ct=Dt&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${We}`]||r[`defaultValue${De}`]||r.defaultValue;!this.isValidLookup(Z)&&v&&(Ae=!0,Z=Ct),this.isValidLookup(Z)||(fe=!0,Z=C);const lt=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&fe?void 0:Z,kt=v&&Ct!==Z&&this.options.updateMissing;if(fe||Ae||kt){if(this.logger.log(kt?"updateKey":"missingKey",M,_,C,kt?Ct:Z),p){const Xe=this.resolve(C,{...r,keySeparator:!1});Xe&&Xe.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.")}let Kt=[];const qt=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&qt&&qt[0])for(let Xe=0;Xe<qt.length;Xe++)Kt.push(qt[Xe]);else this.options.saveMissingTo==="all"?Kt=this.languageUtils.toResolveHierarchy(r.lng||this.language):Kt.push(r.lng||this.language);const mt=(Xe,wt,Re)=>{const Oe=v&&Re!==Z?Re:lt;this.options.missingKeyHandler?this.options.missingKeyHandler(Xe,_,wt,Oe,kt,r):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(Xe,_,wt,Oe,kt,r),this.emit("missingKey",Xe,_,wt,Z)};this.options.saveMissing&&(this.options.saveMissingPlurals&&Be?Kt.forEach(Xe=>{const wt=this.pluralResolver.getSuffixes(Xe,r);Dt&&r[`defaultValue${this.options.pluralSeparator}zero`]&&wt.indexOf(`${this.options.pluralSeparator}zero`)<0&&wt.push(`${this.options.pluralSeparator}zero`),wt.forEach(Re=>{mt([Xe],C+Re,r[`defaultValue${Re}`]||Ct)})}):mt(Kt,C,Ct))}Z=this.extendTranslation(Z,t,r,z,f),fe&&Z===C&&this.options.appendNamespaceToMissingKey&&(Z=`${_}:${C}`),(fe||Ae)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?Z=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${_}:${C}`:C,Ae?Z:void 0):Z=this.options.parseMissingKeyHandler(Z))}return o?(z.res=Z,z.usedParams=this.getUsedParamsDetails(r),z):Z}extendTranslation(t,r,f,o,p){var C=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...f},f.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!f.skipInterpolation){f.interpolation&&this.interpolator.init({...f,interpolation:{...this.options.interpolation,...f.interpolation}});const M=typeof t=="string"&&(f&&f.interpolation&&f.interpolation.skipOnVariables!==void 0?f.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let X;if(M){const Z=t.match(this.interpolator.nestingRegexp);X=Z&&Z.length}let z=f.replace&&typeof f.replace!="string"?f.replace:f;if(this.options.interpolation.defaultVariables&&(z={...this.options.interpolation.defaultVariables,...z}),t=this.interpolator.interpolate(t,z,f.lng||this.language,f),M){const Z=t.match(this.interpolator.nestingRegexp),be=Z&&Z.length;X<be&&(f.nest=!1)}!f.lng&&this.options.compatibilityAPI!=="v1"&&o&&o.res&&(f.lng=o.usedLng),f.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var Z=arguments.length,be=new Array(Z),ue=0;ue<Z;ue++)be[ue]=arguments[ue];return p&&p[0]===be[0]&&!f.context?(C.logger.warn(`It seems you are nesting recursively key: ${be[0]} in key: ${r[0]}`),null):C.translate(...be,r)},f)),f.interpolation&&this.interpolator.reset()}const P=f.postProcess||this.options.postProcess,_=typeof P=="string"?[P]:P;return t!=null&&_&&_.length&&f.applyPostProcessor!==!1&&(t=ip.handle(_,t,r,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(f)},...f}:f,this)),t}resolve(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f,o,p,C,P;return typeof t=="string"&&(t=[t]),t.forEach(_=>{if(this.isValidLookup(f))return;const M=this.extractFromKey(_,r),X=M.key;o=X;let z=M.namespaces;this.options.fallbackNS&&(z=z.concat(this.options.fallbackNS));const Z=r.count!==void 0&&typeof r.count!="string",be=Z&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),ue=r.context!==void 0&&(typeof r.context=="string"||typeof r.context=="number")&&r.context!=="",ce=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);z.forEach(ee=>{this.isValidLookup(f)||(P=ee,!dh[`${ce[0]}-${ee}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(P)&&(dh[`${ce[0]}-${ee}`]=!0,this.logger.warn(`key "${o}" for languages "${ce.join(", ")}" won't get resolved as namespace "${P}" 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!!!")),ce.forEach(W=>{if(this.isValidLookup(f))return;C=W;const _e=[X];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(_e,X,W,ee,r);else{let Ae;Z&&(Ae=this.pluralResolver.getSuffix(W,r.count,r));const fe=`${this.options.pluralSeparator}zero`,Be=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(Z&&(_e.push(X+Ae),r.ordinal&&Ae.indexOf(Be)===0&&_e.push(X+Ae.replace(Be,this.options.pluralSeparator)),be&&_e.push(X+fe)),ue){const v=`${X}${this.options.contextSeparator}${r.context}`;_e.push(v),Z&&(_e.push(v+Ae),r.ordinal&&Ae.indexOf(Be)===0&&_e.push(v+Ae.replace(Be,this.options.pluralSeparator)),be&&_e.push(v+fe))}}let Ie;for(;Ie=_e.pop();)this.isValidLookup(f)||(p=Ie,f=this.getResource(W,ee,Ie,r))}))})}),{res:f,usedKey:o,exactUsedKey:p,usedLng:C,usedNS:P}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,r,f){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,r,f,o):this.resourceStore.getResource(t,r,f,o)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],f=t.replace&&typeof t.replace!="string";let o=f?t.replace:t;if(f&&typeof t.count<"u"&&(o.count=t.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!f){o={...o};for(const p of r)delete o[p]}return o}static hasDefaultValue(t){const r="defaultValue";for(const f in t)if(Object.prototype.hasOwnProperty.call(t,f)&&r===f.substring(0,r.length)&&t[f]!==void 0)return!0;return!1}}function uf(a){return a.charAt(0).toUpperCase()+a.slice(1)}class hh{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Uo.create("languageUtils")}getScriptPartFromCode(t){if(t=gc(t),!t||t.indexOf("-")<0)return null;const r=t.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(t){if(t=gc(t),!t||t.indexOf("-")<0)return t;const r=t.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const r=["hans","hant","latn","cyrl","cans","mong","arab"];let f=t.split("-");return this.options.lowerCaseLng?f=f.map(o=>o.toLowerCase()):f.length===2?(f[0]=f[0].toLowerCase(),f[1]=f[1].toUpperCase(),r.indexOf(f[1].toLowerCase())>-1&&(f[1]=uf(f[1].toLowerCase()))):f.length===3&&(f[0]=f[0].toLowerCase(),f[1].length===2&&(f[1]=f[1].toUpperCase()),f[0]!=="sgn"&&f[2].length===2&&(f[2]=f[2].toUpperCase()),r.indexOf(f[1].toLowerCase())>-1&&(f[1]=uf(f[1].toLowerCase())),r.indexOf(f[2].toLowerCase())>-1&&(f[2]=uf(f[2].toLowerCase()))),f.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let r;return t.forEach(f=>{if(r)return;const o=this.formatLanguageCode(f);(!this.options.supportedLngs||this.isSupportedCode(o))&&(r=o)}),!r&&this.options.supportedLngs&&t.forEach(f=>{if(r)return;const o=this.getLanguagePartFromCode(f);if(this.isSupportedCode(o))return r=o;r=this.options.supportedLngs.find(p=>{if(p===o)return p;if(!(p.indexOf("-")<0&&o.indexOf("-")<0)&&(p.indexOf("-")>0&&o.indexOf("-")<0&&p.substring(0,p.indexOf("-"))===o||p.indexOf(o)===0&&o.length>1))return p})}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(t,r){if(!t)return[];if(typeof t=="function"&&(t=t(r)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!r)return t.default||[];let f=t[r];return f||(f=t[this.getScriptPartFromCode(r)]),f||(f=t[this.formatLanguageCode(r)]),f||(f=t[this.getLanguagePartFromCode(r)]),f||(f=t.default),f||[]}toResolveHierarchy(t,r){const f=this.getFallbackCodes(r||this.options.fallbackLng||[],t),o=[],p=C=>{C&&(this.isSupportedCode(C)?o.push(C):this.logger.warn(`rejecting language code not found in supportedLngs: ${C}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&p(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&p(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&p(this.getLanguagePartFromCode(t))):typeof t=="string"&&p(this.formatLanguageCode(t)),f.forEach(C=>{o.indexOf(C)<0&&p(this.formatLanguageCode(C))}),o}}let y0=[{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}],b0={1:function(a){return+(a>1)},2:function(a){return+(a!=1)},3:function(a){return 0},4:function(a){return a%10==1&&a%100!=11?0:a%10>=2&&a%10<=4&&(a%100<10||a%100>=20)?1:2},5:function(a){return a==0?0:a==1?1:a==2?2:a%100>=3&&a%100<=10?3:a%100>=11?4:5},6:function(a){return a==1?0:a>=2&&a<=4?1:2},7:function(a){return a==1?0:a%10>=2&&a%10<=4&&(a%100<10||a%100>=20)?1:2},8:function(a){return a==1?0:a==2?1:a!=8&&a!=11?2:3},9:function(a){return+(a>=2)},10:function(a){return a==1?0:a==2?1:a<7?2:a<11?3:4},11:function(a){return a==1||a==11?0:a==2||a==12?1:a>2&&a<20?2:3},12:function(a){return+(a%10!=1||a%100==11)},13:function(a){return+(a!==0)},14:function(a){return a==1?0:a==2?1:a==3?2:3},15:function(a){return a%10==1&&a%100!=11?0:a%10>=2&&(a%100<10||a%100>=20)?1:2},16:function(a){return a%10==1&&a%100!=11?0:a!==0?1:2},17:function(a){return a==1||a%10==1&&a%100!=11?0:1},18:function(a){return a==0?0:a==1?1:2},19:function(a){return a==1?0:a==0||a%100>1&&a%100<11?1:a%100>10&&a%100<20?2:3},20:function(a){return a==1?0:a==0||a%100>0&&a%100<20?1:2},21:function(a){return a%100==1?1:a%100==2?2:a%100==3||a%100==4?3:0},22:function(a){return a==1?0:a==2?1:(a<0||a>10)&&a%10==0?2:3}};const S0=["v1","v2","v3"],w0=["v4"],ph={zero:0,one:1,two:2,few:3,many:4,other:5};function x0(){const a={};return y0.forEach(t=>{t.lngs.forEach(r=>{a[r]={numbers:t.nr,plurals:b0[t.fc]}})}),a}class C0{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=r,this.logger=Uo.create("pluralResolver"),(!this.options.compatibilityJSON||w0.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=x0()}addRule(t,r){this.rules[t]=r}getRule(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(gc(t==="dev"?"en":t),{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const f=this.getRule(t,r);return this.shouldUseIntlApi()?f&&f.resolvedOptions().pluralCategories.length>1:f&&f.numbers.length>1}getPluralFormsOfKey(t,r){let f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,f).map(o=>`${r}${o}`)}getSuffixes(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const f=this.getRule(t,r);return f?this.shouldUseIntlApi()?f.resolvedOptions().pluralCategories.sort((o,p)=>ph[o]-ph[p]).map(o=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o}`):f.numbers.map(o=>this.getSuffix(t,o,r)):[]}getSuffix(t,r){let f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const o=this.getRule(t,f);return o?this.shouldUseIntlApi()?`${this.options.prepend}${f.ordinal?`ordinal${this.options.prepend}`:""}${o.select(r)}`:this.getSuffixRetroCompatible(o,r):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,r){const f=t.noAbs?t.plurals(r):t.plurals(Math.abs(r));let o=t.numbers[f];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));const p=()=>this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString();return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?`_plural_${o.toString()}`:p():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?p():this.options.prepend&&f.toString()?this.options.prepend+f.toString():f.toString()}shouldUseIntlApi(){return!S0.includes(this.options.compatibilityJSON)}}function gh(a,t,r){let f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,p=f0(a,t,r);return!p&&o&&typeof r=="string"&&(p=_f(a,r,f),p===void 0&&(p=_f(t,r,f))),p}class k0{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Uo.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(r=>r),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const r=t.interpolation;this.escape=r.escape!==void 0?r.escape:h0,this.escapeValue=r.escapeValue!==void 0?r.escapeValue:!0,this.useRawValueToEscape=r.useRawValueToEscape!==void 0?r.useRawValueToEscape:!1,this.prefix=r.prefix?Su(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?Su(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?Su(r.nestingPrefix):r.nestingPrefixEscaped||Su("$t("),this.nestingSuffix=r.nestingSuffix?Su(r.nestingSuffix):r.nestingSuffixEscaped||Su(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=r.alwaysFormat!==void 0?r.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(r,f)=>r&&r.source===f?(r.lastIndex=0,r):new RegExp(f,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,r,f,o){let p,C,P;const _=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function M(ue){return ue.replace(/\$/g,"$$$$")}const X=ue=>{if(ue.indexOf(this.formatSeparator)<0){const _e=gh(r,_,ue,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(_e,void 0,f,{...o,...r,interpolationkey:ue}):_e}const ce=ue.split(this.formatSeparator),ee=ce.shift().trim(),W=ce.join(this.formatSeparator).trim();return this.format(gh(r,_,ee,this.options.keySeparator,this.options.ignoreJSONStructure),W,f,{...o,...r,interpolationkey:ee})};this.resetRegExp();const z=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,Z=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:ue=>M(ue)},{regex:this.regexp,safeValue:ue=>this.escapeValue?M(this.escape(ue)):M(ue)}].forEach(ue=>{for(P=0;p=ue.regex.exec(t);){const ce=p[1].trim();if(C=X(ce),C===void 0)if(typeof z=="function"){const W=z(t,p,o);C=typeof W=="string"?W:""}else if(o&&Object.prototype.hasOwnProperty.call(o,ce))C="";else if(Z){C=p[0];continue}else this.logger.warn(`missed to pass in variable ${ce} for interpolating ${t}`),C="";else typeof C!="string"&&!this.useRawValueToEscape&&(C=uh(C));const ee=ue.safeValue(C);if(t=t.replace(p[0],ee),Z?(ue.regex.lastIndex+=C.length,ue.regex.lastIndex-=p[0].length):ue.regex.lastIndex=0,P++,P>=this.maxReplaces)break}}),t}nest(t,r){let f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,p,C;function P(_,M){const X=this.nestingOptionsSeparator;if(_.indexOf(X)<0)return _;const z=_.split(new RegExp(`${X}[ ]*{`));let Z=`{${z[1]}`;_=z[0],Z=this.interpolate(Z,C);const be=Z.match(/'/g),ue=Z.match(/"/g);(be&&be.length%2===0&&!ue||ue.length%2!==0)&&(Z=Z.replace(/'/g,'"'));try{C=JSON.parse(Z),M&&(C={...M,...C})}catch(ce){return this.logger.warn(`failed parsing options string in nesting for key ${_}`,ce),`${_}${X}${Z}`}return delete C.defaultValue,_}for(;o=this.nestingRegexp.exec(t);){let _=[];C={...f},C=C.replace&&typeof C.replace!="string"?C.replace:C,C.applyPostProcessor=!1,delete C.defaultValue;let M=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){const X=o[1].split(this.formatSeparator).map(z=>z.trim());o[1]=X.shift(),_=X,M=!0}if(p=r(P.call(this,o[1].trim(),C),C),p&&o[0]===t&&typeof p!="string")return p;typeof p!="string"&&(p=uh(p)),p||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),p=""),M&&(p=_.reduce((X,z)=>this.format(X,z,f.lng,{...f,interpolationkey:o[1].trim()}),p.trim())),t=t.replace(o[0],p),this.regexp.lastIndex=0}return t}}function E0(a){let t=a.toLowerCase().trim();const r={};if(a.indexOf("(")>-1){const f=a.split("(");t=f[0].toLowerCase().trim();const o=f[1].substring(0,f[1].length-1);t==="currency"&&o.indexOf(":")<0?r.currency||(r.currency=o.trim()):t==="relativetime"&&o.indexOf(":")<0?r.range||(r.range=o.trim()):o.split(";").forEach(C=>{if(!C)return;const[P,..._]=C.split(":"),M=_.join(":").trim().replace(/^'+|'+$/g,"");r[P.trim()]||(r[P.trim()]=M),M==="false"&&(r[P.trim()]=!1),M==="true"&&(r[P.trim()]=!0),isNaN(M)||(r[P.trim()]=parseInt(M,10))})}return{formatName:t,formatOptions:r}}function wu(a){const t={};return function(f,o,p){const C=o+JSON.stringify(p);let P=t[C];return P||(P=a(gc(o),p),t[C]=P),P(f)}}class T0{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Uo.create("formatter"),this.options=t,this.formats={number:wu((r,f)=>{const o=new Intl.NumberFormat(r,{...f});return p=>o.format(p)}),currency:wu((r,f)=>{const o=new Intl.NumberFormat(r,{...f,style:"currency"});return p=>o.format(p)}),datetime:wu((r,f)=>{const o=new Intl.DateTimeFormat(r,{...f});return p=>o.format(p)}),relativetime:wu((r,f)=>{const o=new Intl.RelativeTimeFormat(r,{...f});return p=>o.format(p,f.range||"day")}),list:wu((r,f)=>{const o=new Intl.ListFormat(r,{...f});return p=>o.format(p)})},this.init(t)}init(t){const f=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=f.formatSeparator?f.formatSeparator:f.formatSeparator||","}add(t,r){this.formats[t.toLowerCase().trim()]=r}addCached(t,r){this.formats[t.toLowerCase().trim()]=wu(r)}format(t,r,f){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return r.split(this.formatSeparator).reduce((P,_)=>{const{formatName:M,formatOptions:X}=E0(_);if(this.formats[M]){let z=P;try{const Z=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},be=Z.locale||Z.lng||o.locale||o.lng||f;z=this.formats[M](P,be,{...X,...o,...Z})}catch(Z){this.logger.warn(Z)}return z}else this.logger.warn(`there was no format function for ${M}`);return P},t)}}function I0(a,t){a.pending[t]!==void 0&&(delete a.pending[t],a.pendingCount--)}class _0 extends xc{constructor(t,r,f){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=r,this.services=f,this.languageUtils=f.languageUtils,this.options=o,this.logger=Uo.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(f,o.backend,o)}queueLoad(t,r,f,o){const p={},C={},P={},_={};return t.forEach(M=>{let X=!0;r.forEach(z=>{const Z=`${M}|${z}`;!f.reload&&this.store.hasResourceBundle(M,z)?this.state[Z]=2:this.state[Z]<0||(this.state[Z]===1?C[Z]===void 0&&(C[Z]=!0):(this.state[Z]=1,X=!1,C[Z]===void 0&&(C[Z]=!0),p[Z]===void 0&&(p[Z]=!0),_[z]===void 0&&(_[z]=!0)))}),X||(P[M]=!0)}),(Object.keys(p).length||Object.keys(C).length)&&this.queue.push({pending:C,pendingCount:Object.keys(C).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(p),pending:Object.keys(C),toLoadLanguages:Object.keys(P),toLoadNamespaces:Object.keys(_)}}loaded(t,r,f){const o=t.split("|"),p=o[0],C=o[1];r&&this.emit("failedLoading",p,C,r),f&&this.store.addResourceBundle(p,C,f,void 0,void 0,{skipCopy:!0}),this.state[t]=r?-1:2;const P={};this.queue.forEach(_=>{c0(_.loaded,[p],C),I0(_,t),r&&_.errors.push(r),_.pendingCount===0&&!_.done&&(Object.keys(_.loaded).forEach(M=>{P[M]||(P[M]={});const X=_.loaded[M];X.length&&X.forEach(z=>{P[M][z]===void 0&&(P[M][z]=!0)})}),_.done=!0,_.errors.length?_.callback(_.errors):_.callback())}),this.emit("loaded",P),this.queue=this.queue.filter(_=>!_.done)}read(t,r,f){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,p=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,C=arguments.length>5?arguments[5]:void 0;if(!t.length)return C(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:r,fcName:f,tried:o,wait:p,callback:C});return}this.readingCalls++;const P=(M,X)=>{if(this.readingCalls--,this.waitingReads.length>0){const z=this.waitingReads.shift();this.read(z.lng,z.ns,z.fcName,z.tried,z.wait,z.callback)}if(M&&X&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,t,r,f,o+1,p*2,C)},p);return}C(M,X)},_=this.backend[f].bind(this.backend);if(_.length===2){try{const M=_(t,r);M&&typeof M.then=="function"?M.then(X=>P(null,X)).catch(P):P(null,M)}catch(M){P(M)}return}return _(t,r,P)}prepareLoading(t,r){let f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof r=="string"&&(r=[r]);const p=this.queueLoad(t,r,f,o);if(!p.toLoad.length)return p.pending.length||o(),null;p.toLoad.forEach(C=>{this.loadOne(C)})}load(t,r,f){this.prepareLoading(t,r,{},f)}reload(t,r,f){this.prepareLoading(t,r,{reload:!0},f)}loadOne(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const f=t.split("|"),o=f[0],p=f[1];this.read(o,p,"read",void 0,void 0,(C,P)=>{C&&this.logger.warn(`${r}loading namespace ${p} for language ${o} failed`,C),!C&&P&&this.logger.log(`${r}loaded namespace ${p} for language ${o}`,P),this.loaded(t,C,P)})}saveMissing(t,r,f,o,p){let C=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},P=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)){this.logger.warn(`did not save key "${f}" as the namespace "${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(!(f==null||f==="")){if(this.backend&&this.backend.create){const _={...C,isUpdate:p},M=this.backend.create.bind(this.backend);if(M.length<6)try{let X;M.length===5?X=M(t,r,f,o,_):X=M(t,r,f,o),X&&typeof X.then=="function"?X.then(z=>P(null,z)).catch(P):P(null,X)}catch(X){P(X)}else M(t,r,f,o,P,_)}!t||!t[0]||this.store.addResource(t[0],r,f,o)}}}function vh(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){let r={};if(typeof t[1]=="object"&&(r=t[1]),typeof t[1]=="string"&&(r.defaultValue=t[1]),typeof t[2]=="string"&&(r.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const f=t[3]||t[2];Object.keys(f).forEach(o=>{r[o]=f[o]})}return r},interpolation:{escapeValue:!0,format:a=>a,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function mh(a){return typeof a.ns=="string"&&(a.ns=[a.ns]),typeof a.fallbackLng=="string"&&(a.fallbackLng=[a.fallbackLng]),typeof a.fallbackNS=="string"&&(a.fallbackNS=[a.fallbackNS]),a.supportedLngs&&a.supportedLngs.indexOf("cimode")<0&&(a.supportedLngs=a.supportedLngs.concat(["cimode"])),a}function lc(){}function R0(a){Object.getOwnPropertyNames(Object.getPrototypeOf(a)).forEach(r=>{typeof a[r]=="function"&&(a[r]=a[r].bind(a))})}class Wu extends xc{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(super(),this.options=mh(t),this.services={},this.logger=Uo,this.modules={external:[]},R0(this),r&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,r),this;setTimeout(()=>{this.init(t,r)},0)}}init(){var t=this;let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof r=="function"&&(f=r,r={}),!r.defaultNS&&r.defaultNS!==!1&&r.ns&&(typeof r.ns=="string"?r.defaultNS=r.ns:r.ns.indexOf("translation")<0&&(r.defaultNS=r.ns[0]));const o=vh();this.options={...o,...this.options,...mh(r)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...o.interpolation,...this.options.interpolation}),r.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=r.keySeparator),r.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=r.nsSeparator);function p(X){return X?typeof X=="function"?new X:X:null}if(!this.options.isClone){this.modules.logger?Uo.init(p(this.modules.logger),this.options):Uo.init(null,this.options);let X;this.modules.formatter?X=this.modules.formatter:typeof Intl<"u"&&(X=T0);const z=new hh(this.options);this.store=new fh(this.options.resources,this.options);const Z=this.services;Z.logger=Uo,Z.resourceStore=this.store,Z.languageUtils=z,Z.pluralResolver=new C0(z,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),X&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(Z.formatter=p(X),Z.formatter.init(Z,this.options),this.options.interpolation.format=Z.formatter.format.bind(Z.formatter)),Z.interpolator=new k0(this.options),Z.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},Z.backendConnector=new _0(p(this.modules.backend),Z.resourceStore,Z,this.options),Z.backendConnector.on("*",function(be){for(var ue=arguments.length,ce=new Array(ue>1?ue-1:0),ee=1;ee<ue;ee++)ce[ee-1]=arguments[ee];t.emit(be,...ce)}),this.modules.languageDetector&&(Z.languageDetector=p(this.modules.languageDetector),Z.languageDetector.init&&Z.languageDetector.init(Z,this.options.detection,this.options)),this.modules.i18nFormat&&(Z.i18nFormat=p(this.modules.i18nFormat),Z.i18nFormat.init&&Z.i18nFormat.init(this)),this.translator=new vc(this.services,this.options),this.translator.on("*",function(be){for(var ue=arguments.length,ce=new Array(ue>1?ue-1:0),ee=1;ee<ue;ee++)ce[ee-1]=arguments[ee];t.emit(be,...ce)}),this.modules.external.forEach(be=>{be.init&&be.init(this)})}if(this.format=this.options.interpolation.format,f||(f=lc),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const X=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);X.length>0&&X[0]!=="dev"&&(this.options.lng=X[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(X=>{this[X]=function(){return t.store[X](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(X=>{this[X]=function(){return t.store[X](...arguments),t}});const _=Nu(),M=()=>{const X=(z,Z)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),_.resolve(Z),f(z,Z)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return X(null,this.t.bind(this));this.changeLanguage(this.options.lng,X)};return this.options.resources||!this.options.initImmediate?M():setTimeout(M,0),_}loadResources(t){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:lc;const o=typeof t=="string"?t:this.language;if(typeof t=="function"&&(f=t),!this.options.resources||this.options.partialBundledLanguages){if(o&&o.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return f();const p=[],C=P=>{if(!P||P==="cimode")return;this.services.languageUtils.toResolveHierarchy(P).forEach(M=>{M!=="cimode"&&p.indexOf(M)<0&&p.push(M)})};o?C(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(_=>C(_)),this.options.preload&&this.options.preload.forEach(P=>C(P)),this.services.backendConnector.load(p,this.options.ns,P=>{!P&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),f(P)})}else f(null)}reloadResources(t,r,f){const o=Nu();return t||(t=this.languages),r||(r=this.options.ns),f||(f=lc),this.services.backendConnector.reload(t,r,p=>{o.resolve(),f(p)}),o}use(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()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&ip.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let r=0;r<this.languages.length;r++){const f=this.languages[r];if(!(["cimode","dev"].indexOf(f)>-1)&&this.store.hasLanguageSomeTranslations(f)){this.resolvedLanguage=f;break}}}changeLanguage(t,r){var f=this;this.isLanguageChangingTo=t;const o=Nu();this.emit("languageChanging",t);const p=_=>{this.language=_,this.languages=this.services.languageUtils.toResolveHierarchy(_),this.resolvedLanguage=void 0,this.setResolvedLanguage(_)},C=(_,M)=>{M?(p(M),this.translator.changeLanguage(M),this.isLanguageChangingTo=void 0,this.emit("languageChanged",M),this.logger.log("languageChanged",M)):this.isLanguageChangingTo=void 0,o.resolve(function(){return f.t(...arguments)}),r&&r(_,function(){return f.t(...arguments)})},P=_=>{!t&&!_&&this.services.languageDetector&&(_=[]);const M=typeof _=="string"?_:this.services.languageUtils.getBestMatchFromCodes(_);M&&(this.language||p(M),this.translator.language||this.translator.changeLanguage(M),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(M)),this.loadResources(M,X=>{C(X,M)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?P(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(P):this.services.languageDetector.detect(P):P(t),o}getFixedT(t,r,f){var o=this;const p=function(C,P){let _;if(typeof P!="object"){for(var M=arguments.length,X=new Array(M>2?M-2:0),z=2;z<M;z++)X[z-2]=arguments[z];_=o.options.overloadTranslationOptionHandler([C,P].concat(X))}else _={...P};_.lng=_.lng||p.lng,_.lngs=_.lngs||p.lngs,_.ns=_.ns||p.ns,_.keyPrefix=_.keyPrefix||f||p.keyPrefix;const Z=o.options.keySeparator||".";let be;return _.keyPrefix&&Array.isArray(C)?be=C.map(ue=>`${_.keyPrefix}${Z}${ue}`):be=_.keyPrefix?`${_.keyPrefix}${Z}${C}`:C,o.t(be,_)};return typeof t=="string"?p.lng=t:p.lngs=t,p.ns=r,p.keyPrefix=f,p}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const f=r.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,p=this.languages[this.languages.length-1];if(f.toLowerCase()==="cimode")return!0;const C=(P,_)=>{const M=this.services.backendConnector.state[`${P}|${_}`];return M===-1||M===2};if(r.precheck){const P=r.precheck(this,C);if(P!==void 0)return P}return!!(this.hasResourceBundle(f,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||C(f,t)&&(!o||C(p,t)))}loadNamespaces(t,r){const f=Nu();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{f.resolve(),r&&r(o)}),f):(r&&r(),Promise.resolve())}loadLanguages(t,r){const f=Nu();typeof t=="string"&&(t=[t]);const o=this.options.preload||[],p=t.filter(C=>o.indexOf(C)<0);return p.length?(this.options.preload=o.concat(p),this.loadResources(C=>{f.resolve(),r&&r(C)}),f):(r&&r(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const 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"],f=this.services&&this.services.languageUtils||new hh(vh());return r.indexOf(f.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new Wu(t,r)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:lc;const f=t.forkResourceStore;f&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},p=new Wu(o);return(t.debug!==void 0||t.prefix!==void 0)&&(p.logger=p.logger.clone(t)),["store","services","language"].forEach(P=>{p[P]=this[P]}),p.services={...this.services},p.services.utils={hasLoadedNamespace:p.hasLoadedNamespace.bind(p)},f&&(p.store=new fh(this.store.data,o),p.services.resourceStore=p.store),p.translator=new vc(p.services,o),p.translator.on("*",function(P){for(var _=arguments.length,M=new Array(_>1?_-1:0),X=1;X<_;X++)M[X-1]=arguments[X];p.emit(P,...M)}),p.init(o,r),p.translator.options=o,p.translator.backendConnector.services.utils={hasLoadedNamespace:p.hasLoadedNamespace.bind(p)},p}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Fr=Wu.createInstance();Fr.createInstance=Wu.createInstance;Fr.createInstance;Fr.dir;Fr.init;Fr.loadResources;Fr.reloadResources;Fr.use;Fr.changeLanguage;Fr.getFixedT;const D0=Fr.t;Fr.exists;Fr.setDefaultNamespace;Fr.hasLoadedNamespace;Fr.loadNamespaces;Fr.loadLanguages;function A0(a,t){if(!(a instanceof t))throw new TypeError("Cannot call a class as a function")}function zu(a){"@babel/helpers - typeof";return zu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zu(a)}function P0(a,t){if(zu(a)!="object"||!a)return a;var r=a[Symbol.toPrimitive];if(r!==void 0){var f=r.call(a,t||"default");if(zu(f)!="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(a)}function O0(a){var t=P0(a,"string");return zu(t)=="symbol"?t:String(t)}function yh(a,t){for(var r=0;r<t.length;r++){var f=t[r];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(a,O0(f.key),f)}}function M0(a,t,r){return t&&yh(a.prototype,t),r&&yh(a,r),Object.defineProperty(a,"prototype",{writable:!1}),a}var ap=[],F0=ap.forEach,L0=ap.slice;function N0(a){return F0.call(L0.call(arguments,1),function(t){if(t)for(var r in t)a[r]===void 0&&(a[r]=t[r])}),a}var bh=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,B0=function(t,r,f){var o=f||{};o.path=o.path||"/";var p=encodeURIComponent(r),C="".concat(t,"=").concat(p);if(o.maxAge>0){var P=o.maxAge-0;if(Number.isNaN(P))throw new Error("maxAge should be a Number");C+="; Max-Age=".concat(Math.floor(P))}if(o.domain){if(!bh.test(o.domain))throw new TypeError("option domain is invalid");C+="; Domain=".concat(o.domain)}if(o.path){if(!bh.test(o.path))throw new TypeError("option path is invalid");C+="; Path=".concat(o.path)}if(o.expires){if(typeof o.expires.toUTCString!="function")throw new TypeError("option expires is invalid");C+="; Expires=".concat(o.expires.toUTCString())}if(o.httpOnly&&(C+="; HttpOnly"),o.secure&&(C+="; Secure"),o.sameSite){var _=typeof o.sameSite=="string"?o.sameSite.toLowerCase():o.sameSite;switch(_){case!0:C+="; SameSite=Strict";break;case"lax":C+="; SameSite=Lax";break;case"strict":C+="; SameSite=Strict";break;case"none":C+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return C},Sh={create:function(t,r,f,o){var p=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};f&&(p.expires=new Date,p.expires.setTime(p.expires.getTime()+f*60*1e3)),o&&(p.domain=o),document.cookie=B0(t,encodeURIComponent(r),p)},read:function(t){for(var r="".concat(t,"="),f=document.cookie.split(";"),o=0;o<f.length;o++){for(var p=f[o];p.charAt(0)===" ";)p=p.substring(1,p.length);if(p.indexOf(r)===0)return p.substring(r.length,p.length)}return null},remove:function(t){this.create(t,"",-1)}},j0={name:"cookie",lookup:function(t){var r;if(t.lookupCookie&&typeof document<"u"){var f=Sh.read(t.lookupCookie);f&&(r=f)}return r},cacheUserLanguage:function(t,r){r.lookupCookie&&typeof document<"u"&&Sh.create(r.lookupCookie,t,r.cookieMinutes,r.cookieDomain,r.cookieOptions)}},H0={name:"querystring",lookup:function(t){var r;if(typeof window<"u"){var f=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(f=window.location.hash.substring(window.location.hash.indexOf("?")));for(var o=f.substring(1),p=o.split("&"),C=0;C<p.length;C++){var P=p[C].indexOf("=");if(P>0){var _=p[C].substring(0,P);_===t.lookupQuerystring&&(r=p[C].substring(P+1))}}}return r}},Bu=null,wh=function(){if(Bu!==null)return Bu;try{Bu=window!=="undefined"&&window.localStorage!==null;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{Bu=!1}return Bu},U0={name:"localStorage",lookup:function(t){var r;if(t.lookupLocalStorage&&wh()){var f=window.localStorage.getItem(t.lookupLocalStorage);f&&(r=f)}return r},cacheUserLanguage:function(t,r){r.lookupLocalStorage&&wh()&&window.localStorage.setItem(r.lookupLocalStorage,t)}},ju=null,xh=function(){if(ju!==null)return ju;try{ju=window!=="undefined"&&window.sessionStorage!==null;var t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{ju=!1}return ju},W0={name:"sessionStorage",lookup:function(t){var r;if(t.lookupSessionStorage&&xh()){var f=window.sessionStorage.getItem(t.lookupSessionStorage);f&&(r=f)}return r},cacheUserLanguage:function(t,r){r.lookupSessionStorage&&xh()&&window.sessionStorage.setItem(r.lookupSessionStorage,t)}},z0={name:"navigator",lookup:function(t){var r=[];if(typeof navigator<"u"){if(navigator.languages)for(var f=0;f<navigator.languages.length;f++)r.push(navigator.languages[f]);navigator.userLanguage&&r.push(navigator.userLanguage),navigator.language&&r.push(navigator.language)}return r.length>0?r:void 0}},$0={name:"htmlTag",lookup:function(t){var r,f=t.htmlTag||(typeof document<"u"?document.documentElement:null);return f&&typeof f.getAttribute=="function"&&(r=f.getAttribute("lang")),r}},V0={name:"path",lookup:function(t){var r;if(typeof window<"u"){var f=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(f instanceof Array)if(typeof t.lookupFromPathIndex=="number"){if(typeof f[t.lookupFromPathIndex]!="string")return;r=f[t.lookupFromPathIndex].replace("/","")}else r=f[0].replace("/","")}return r}},Y0={name:"subdomain",lookup:function(t){var r=typeof t.lookupFromSubdomainIndex=="number"?t.lookupFromSubdomainIndex+1:1,f=typeof window<"u"&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(f)return f[r]}};function G0(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(t){return t}}}var op=function(){function a(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};A0(this,a),this.type="languageDetector",this.detectors={},this.init(t,r)}return M0(a,[{key:"init",value:function(r){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=r||{languageUtils:{}},this.options=N0(f,this.options||{},G0()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(p){return p.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=o,this.addDetector(j0),this.addDetector(H0),this.addDetector(U0),this.addDetector(W0),this.addDetector(z0),this.addDetector($0),this.addDetector(V0),this.addDetector(Y0)}},{key:"addDetector",value:function(r){this.detectors[r.name]=r}},{key:"detect",value:function(r){var f=this;r||(r=this.options.order);var o=[];return r.forEach(function(p){if(f.detectors[p]){var C=f.detectors[p].lookup(f.options);C&&typeof C=="string"&&(C=[C]),C&&(o=o.concat(C))}}),o=o.map(function(p){return f.options.convertDetectedLanguage(p)}),this.services.languageUtils.getBestMatchFromCodes?o:o.length>0?o[0]:null}},{key:"cacheUserLanguage",value:function(r,f){var o=this;f||(f=this.options.caches),f&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(r)>-1||f.forEach(function(p){o.detectors[p]&&o.detectors[p].cacheUserLanguage(r,o.options)}))}}]),a}();op.type="languageDetector";const q0=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,X0={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},Z0=a=>X0[a],K0=a=>a.replace(q0,Z0);let Ch={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:K0};function J0(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ch={...Ch,...a}}const Q0={type:"3rdParty",init(a){J0(a.options.react)}},eS=qe.createContext();function tS(a){let{i18n:t,defaultNS:r,children:f}=a;const o=qe.useMemo(()=>({i18n:t,defaultNS:r}),[t,r]);return qe.createElement(eS.Provider,{value:o},f)}const nS={400:"Bad Request - The request cannot be fulfilled due to bad syntax.",401:"The request requires user authentication.",403:"The user does not have permission.",404:"Item Not Found",500:"Server got a error, please contact for assistance",502:"Server got a bad gateway, please contact for assistance",503:"Server is unavailable, please contact for assistance",504:"Server is timeout, please contact for assistance"},rS={unauthorizedPage:{title:"Access Denied: No Access Permission",description1:"We regret to inform you that you do not have the necessary permissions to access this page.",description2:"Please contact our administrator for assistance. Thank you for your understanding."}},iS={saasAdmin:{servicePackage:{errorMessage:{packageNotFound:"Package not found.",languageInvalid:"Field language is invalid.",packageNameExists:"The package name already exists.",serviceNotFound:"Service not found.",serviceNotBelongToPackage:"Service not found or does not belong to the correct package",serviceNotBelongToServiceParent:"Service not found or does not belong to the correct service parent",canNotGetServiceListPleaseTryAgain:"Can not get service list now, please try again"}},tenantManagement:{errorMessage:{tenantNotFound:"Tenant not found.",countryInvalid:"Field country is invalid.",createTenantFailed:"Create tenant failed. Please try again",isTenantMailExist:"The email is already exist."}},brandManagement:{errorMessage:{firstNameInvalid:"Field first name is invalid. Must be of length 3 to 40 and no special characters.",createdAtInvalid:"Field createdAt is invalid.",brandNotFound:"Brand not found.",lastNameInvalid:"Field last name is invalid. Must be of length 3 to 40 and no special characters.",idInvalid:"Field id is invalid. Must be uuid v4 format.",updatedAtInvalid:"Field createdAt is invalid. Must be date format.",countryInvalid:"Field Country is invalid. Please select a Country that we support.",termTypeInvalid:"Field TermType invalid. Please select a TermType that we support.",baseCostTypeInvalid:"Field BaseCostType invalid. Please select a BaseCostType that we support.",brandStatusesInvalid:"BrandStatuses is invalid. Please select a BrandStatuses that we support.",informationPlanIsRequired:"Information Plan is required.",settingStatusesInvalid:"SettingStatuses is invalid. Please select a BaseCostType that we support.",languagesInvalid:"Langagues is invalid. Please select a Langagues that we support.",currencyInvalid:"Currency is invalid. Please select a Currency that we support.",distanceMetricInvalid:"DistanceMetric is invalid. Please select a DistanceMetric that we support.",settingNotFound:"Setting not found.",subscriptionNotFound:"Subscription not found.",subscriptionNameExists:"The subscription name already exists.",subscriptionServiceNotFound:"subscriptionService not found.",subscriptionServiceNotBelongToPackage:"subscriptionService not found or does not belong to the correct package",subscriptionServiceNotBelongTosubscriptionServiceParent:"subscriptionService not found or does not belong to the correct subscriptionService parent",canNotGetsubscriptionServiceListPleaseTryAgain:"Can not get subscriptionService list now, please try again"}}},tenantAdmin:{brandManagement:{errorMessage:{firstNameInvalid:"Field first name is invalid. Must be of length 3 to 40 and no special characters.",createdAtInvalid:"Field createdAt is invalid.",brandNotFound:"Brand not found.",lastNameInvalid:"Field last name is invalid. Must be of length 3 to 40 and no special characters.",idInvalid:"Field id is invalid. Must be uuid v4 format.",updatedAtInvalid:"Field createdAt is invalid. Must be date format.",countryInvalid:"Field Country is invalid. Please select a Country that we support.",termTypeInvalid:"Field TermType invalid. Please select a TermType that we support.",baseCostTypeInvalid:"Field BaseCostType invalid. Please select a BaseCostType that we support.",brandStatusesInvalid:"BrandStatuses is invalid. Please select a BrandStatuses that we support.",informationPlanIsRequired:"Information Plan is required.",settingStatusesInvalid:"SettingStatuses is invalid. Please select a BaseCostType that we support.",languagesInvalid:"Langagues is invalid. Please select a Langagues that we support.",currencyInvalid:"Currency is invalid. Please select a Currency that we support.",distanceMetricInvalid:"DistanceMetric is invalid. Please select a DistanceMetric that we support.",settingNotFound:"Setting not found.",subscriptionNotFound:"Subscription not found.",subscriptionNameExists:"The subscription name already exists.",subscriptionServiceNotFound:"subscriptionService not found.",subscriptionServiceNotBelongToPackage:"subscriptionService not found or does not belong to the correct package",subscriptionServiceNotBelongTosubscriptionServiceParent:"subscriptionService not found or does not belong to the correct subscriptionService parent",canNotGetsubscriptionServiceListPleaseTryAgain:"Can not get subscriptionService list now, please try again"}}},brandAdmin:{errorMessage:{firstNameInvalid:"Field first name is invalid. Must be of length 3 to 40 and no special characters.",createdAtInvalid:"Field createdAt is invalid.",brandNotFound:"Brand not found.",lastNameInvalid:"Field last name is invalid. Must be of length 3 to 40 and no special characters.",idInvalid:"Field id is invalid. Must be uuid v4 format.",updatedAtInvalid:"Field createdAt is invalid. Must be date format.",countryInvalid:"Field Country is invalid. Please select a Country that we support.",termTypeInvalid:"Field TermType invalid. Please select a TermType that we support.",baseCostTypeInvalid:"Field BaseCostType invalid. Please select a BaseCostType that we support.",brandStatusesInvalid:"BrandStatuses is invalid. Please select a BrandStatuses that we support.",informationPlanIsRequired:"Information Plan is required.",settingStatusesInvalid:"SettingStatuses is invalid. Please select a BaseCostType that we support.",languagesInvalid:"Langagues is invalid. Please select a Langagues that we support.",currencyInvalid:"Currency is invalid. Please select a Currency that we support.",distanceMetricInvalid:"DistanceMetric is invalid. Please select a DistanceMetric that we support.",settingNotFound:"Setting not found.",subscriptionNotFound:"Subscription not found.",subscriptionNameExists:"The subscription name already exists.",subscriptionServiceNotFound:"subscriptionService not found.",subscriptionServiceNotBelongToPackage:"subscriptionService not found or does not belong to the correct package",subscriptionServiceNotBelongTosubscriptionServiceParent:"subscriptionService not found or does not belong to the correct subscriptionService parent",canNotGetsubscriptionServiceListPleaseTryAgain:"Can not get subscriptionService list now, please try again"}},iam:{usersManagement:{errorMessage:{firstNameInvalid:"Field first name is invalid. Must be of length 1 to 40 and no special characters.",createdAtInvalid:"Field createdAt is invalid.",notFound:"User not found.",lastNameInvalid:"Field last name is invalid. Must be of length 1 to 40 and no special characters.",updatedAtInvalid:"Field createdAt is invalid. Must be date format.",emailInvalid:"Field email is invalid. Must be email format.",passwordInvalid:"Field password is invalid. Must be 8 characters long, 1 uppercase & 1 lowercase character, 1 number and 1 special character.",countryCodeInvalid:"Field countryCode is invalid.",languageCodeInvalid:"Field languageCode is invalid.",deletedAtInvalid:"Field deletedAt is invalid. Must be date format.",isActiveInvalid:"Field isActive is invalid.",isSuspendInvalid:"Field isSuspend is invalid.",userExist:"The user already exists.",authProviderInvalid:"Field authProvider is invalid.",isEnableInvalid:"Field isEnable is invalid.",sendEmailFailed:"Send email failed.",emailRequired:"Field email is required",firstNameRequired:"Field first name is required",lastNameRequired:"Field last name is required",countryCodeRequired:"Field country code is required",userStatusInvalid:"Field status invalid. Please select a status that we support.",loginAtInvalid:"Field last login is invalid.",avatarFileInvalid:"Avatar file format not supported. Must be png, jpeg, jpg and size less than 1mb.",permissionGroupNotFound:"Permission group not Found.",organizeInvalid:"Field organize is required. Must be a object.",relatedIdInvalid:"Field organize's relatedId. Must be a number.",userOrganizeNotFound:"User's organize not Found.",isSystemInvalid:"Field isSystem is invalid.",organizeUserInvalid:"Field users is invalid. Must be a array.",organizeUserDuplicate:"Field users contains duplicated email."}},permissionGroup:{errorMessage:{actionNotFound:"Action not found.",permissionGroupNotFound:"Permission group not Found.",permissionGroupIsExisted:"Permission group name is existed",permissionGroupOrganizeNotFound:"Permission group's organize not Found.",relatedIdInvalid:"Field organize's relatedId. Must be a number.",cannotRemoveFullPermissionGroup:"You cannot remove this permission group.",cannotEditFullPermissionGroup:"You cannot update this permission group."}},organize:{errorMessage:{relatedIdInvalid:"Field relatedId is invalid. Must be number.",nameInvalid:"Field data's name is invalid. Must be of length 1 to 40 and no special characters.",dataInvalid:"Field data is invalid. Must be object.",organizeExist:"The organize already exists.",callbackUrlInvalid:"Field data's callbackPath is invalid. Must be a string."}}},notificationAdmin:{notfication:{errorMessage:{notificationFilterType:"Field notificationFilterType is invalid. Must be one of read, unread and all.",userIdInvalid:"Field userId is invalid. Must be a number.",filterInvalid:"Field filter is invalid. Must be a object.",isReadInvalid:"Field isRead is invalid. Must be a boolean.",notificationIdInvalid:"Field id is invalid. Must be a number.",userDeviceTokenInvalid:"Field deviceToken is invalid. Must be a string."}},noficationConfig:{errorMessage:{notificationNotFound:"Notification config not found.",notificationIsExisted:"Notification rule is existed.",actionNotFound:"Action not found.",userNotFound:"User not found.",firstNameInvalid:"Field first name is invalid. Must be of length 1 to 40 and no special characters.",createdAtInvalid:"Field createdAt is invalid.",lastNameInvalid:"Field last name is invalid. Must be of length 1 to 40 and no special characters.",updatedAtInvalid:"Field createdAt is invalid. Must be date format.",emailInvalid:"Field email is invalid. Must be email format.",passwordInvalid:"Field password is invalid. Must be 8 characters long, 1 uppercase & 1 lowercase character, 1 number and 1 special character.",countryCodeInvalid:"Field countryCode is invalid.",languageCodeInvalid:"Field languageCode is invalid.",deletedAtInvalid:"Field deletedAt is invalid. Must be date format.",isActiveInvalid:"Field isActive is invalid.",isSuspendInvalid:"Field isSuspend is invalid.",userExist:"The user already exists.",authProviderInvalid:"Field authProvider is invalid.",isEnableInvalid:"Field isEnable is invalid.",sendEmailFailed:"Send email failed.",emailRequired:"Field email is required",firstNameRequired:"Field first name is required",lastNameRequired:"Field last name is required",countryCodeRequired:"Field country code is required",userStatusInvalid:"Field status invalid. Please select a status that we support.",loginAtInvalid:"Field last login is invalid.",avatarFileInvalid:"Avatar file format not supported. Must be png, jpeg, jpg and size less than 1mb.",permissionGroupNotFound:"Permission group not Found.",organizeInvalid:"Field organize is required. Must be a object.",relatedIdInvalid:"Field organize's relatedId. Must be a number.",userOrganizeNotFound:"User's organize not Found.",isSystemInvalid:"Field isSystem is invalid.",organizeUserInvalid:"Field users is invalid. Must be a array.",organizeUserDuplicate:"Field users contains duplicated email."}}}},aS={errorMessage:nS,components:rS,configurations:iS},oS={400:"Schlechte Anfrage - Die Anfrage kann aufgrund einer schlechten Syntax nicht erfüllt werden.",401:"Die Anfrage erfordert eine Benutzerauthentifizierung.",403:"Der Benutzer hat keine Berechtigung.",404:"Element nicht gefunden",500:"Server hat einen Fehler erhalten, bitte um Hilfe kontaktieren",502:"Server hat ein ungültiges Gateway erhalten, bitte um Hilfe kontaktieren",503:"Server ist nicht verfügbar, bitte um Hilfe kontaktieren",504:"Server-Zeitüberschreitung, bitte um Hilfe kontaktieren"},sS={unauthorizedPage:{title:"Zugriff verweigert: Keine Zugriffsberechtigung",description1:"Wir bedauern Ihnen mitteilen zu müssen, dass Sie nicht über die erforderlichen Berechtigungen verfügen, um auf diese Seite zuzugreifen.",description2:"Bitte kontaktieren Sie unseren Administrator für Unterstützung. Vielen Dank für Ihr Verständnis."}},lS={saasAdmin:{servicePackage:{errorMessage:{packageNotFound:"Paket nicht gefunden.",languageInvalid:"Das Feld Sprache ist ungültig.",packageNameExists:"Der Paketname existiert bereits.",serviceNotFound:"Dienst nicht gefunden.",serviceNotBelongToPackage:"Dienst nicht gefunden oder gehört nicht zum richtigen Paket",serviceNotBelongToServiceParent:"Dienst nicht gefunden oder gehört nicht zum richtigen Dienst-Elternteil",canNotGetServiceListPleaseTryAgain:"Dienstliste kann derzeit nicht abgerufen werden, bitte versuchen Sie es erneut"}},tenantManagement:{errorMessage:{tenantNotFound:"Mieter nicht gefunden.",countryInvalid:"Das Feld Land ist ungültig.",createTenantFailed:"Mietererstellung fehlgeschlagen. Bitte versuchen Sie es erneut.",isTenantMailExist:"Die E-Mail existiert bereits."}},brandManagement:{errorMessage:{firstNameInvalid:"Das Feld Vorname ist ungültig. Muss eine Länge von 3 bis 40 Zeichen haben und keine Sonderzeichen enthalten.",createdAtInvalid:"Das Feld Erstellt am ist ungültig.",brandNotFound:"Marke nicht gefunden.",lastNameInvalid:"Das Feld Nachname ist ungültig. Muss eine Länge von 3 bis 40 Zeichen haben und keine Sonderzeichen enthalten.",idInvalid:"Das Feld ID ist ungültig. Muss im UUID-v4-Format sein.",updatedAtInvalid:"Das Feld Erstellt am ist ungültig. Muss im Datumsformat sein.",countryInvalid:"Das Feld Land ist ungültig. Bitte wählen Sie ein von uns unterstütztes Land aus.",termTypeInvalid:"Das Feld TermType ist ungültig. Bitte wählen Sie einen von uns unterstützten TermType aus.",baseCostTypeInvalid:"Das Feld BaseCostType ist ungültig. Bitte wählen Sie einen von uns unterstützten BaseCostType aus.",brandStatusesInvalid:"BrandStatuses ist ungültig. Bitte wählen Sie einen von uns unterstützten BrandStatuses aus.",informationPlanIsRequired:"Informationsplan ist erforderlich.",settingStatusesInvalid:"SettingStatuses ist ungültig. Bitte wählen Sie einen von uns unterstützten BaseCostType aus.",languagesInvalid:"Sprachen ist ungültig. Bitte wählen Sie eine von uns unterstützte Sprache aus.",currencyInvalid:"Währung ist ungültig. Bitte wählen Sie eine von uns unterstützte Währung aus.",distanceMetricInvalid:"Entfernungsmetrik ist ungültig. Bitte wählen Sie eine von uns unterstützte Entfernungsmetrik aus.",settingNotFound:"Einstellung nicht gefunden.",subscriptionNotFound:"Abonnement nicht gefunden.",subscriptionNameExists:"Der Abonnementname existiert bereits.",subscriptionServiceNotFound:"Abonnementdienst nicht gefunden.",subscriptionServiceNotBelongToPackage:"Abonnementdienst nicht gefunden oder gehört nicht zum richtigen Paket",subscriptionServiceNotBelongTosubscriptionServiceParent:"Abonnementdienst nicht gefunden oder gehört nicht zum richtigen Abonnementdienst-Elternteil",canNotGetsubscriptionServiceListPleaseTryAgain:"Abonnementdienstliste kann derzeit nicht abgerufen werden, bitte versuchen Sie es erneut"}}},tenantAdmin:{brandManagement:{errorMessage:{firstNameInvalid:"Das Feld Vorname ist ungültig. Muss eine Länge von 3 bis 40 Zeichen haben und keine Sonderzeichen enthalten.",createdAtInvalid:"Das Feld Erstellt am ist ungültig.",brandNotFound:"Marke nicht gefunden.",lastNameInvalid:"Das Feld Nachname ist ungültig. Muss eine Länge von 3 bis 40 Zeichen haben und keine Sonderzeichen enthalten.",idInvalid:"Das Feld ID ist ungültig. Muss im UUID-v4-Format sein.",updatedAtInvalid:"Das Feld Erstellt am ist ungültig. Muss im Datumsformat sein.",countryInvalid:"Das Feld Land ist ungültig. Bitte wählen Sie ein von uns unterstütztes Land aus.",termTypeInvalid:"Das Feld TermType ist ungültig. Bitte wählen Sie einen von uns unterstützten TermType aus.",baseCostTypeInvalid:"Das Feld BaseCostType ist ungültig. Bitte wählen Sie einen von uns unterstützten BaseCostType aus.",brandStatusesInvalid:"BrandStatuses ist ungültig. Bitte wählen Sie einen von uns unterstützten BrandStatuses aus.",informationPlanIsRequired:"Informationsplan ist erforderlich.",settingStatusesInvalid:"SettingStatuses ist ungültig. Bitte wählen Sie einen von uns unterstützten BaseCostType aus.",languagesInvalid:"Sprachen ist ungültig. Bitte wählen Sie eine von uns unterstützte Sprache aus.",currencyInvalid:"Währung ist ungültig. Bitte wählen Sie eine von uns unterstützte Währung aus.",distanceMetricInvalid:"Entfernungsmetrik ist ungültig. Bitte wählen Sie eine von uns unterstützte Entfernungsmetrik aus.",settingNotFound:"Einstellung nicht gefunden.",subscriptionNotFound:"Abonnement nicht gefunden.",subscriptionNameExists:"Der Abonnementname existiert bereits.",subscriptionServiceNotFound:"Abonnementdienst nicht gefunden.",subscriptionServiceNotBelongToPackage:"Abonnementdienst nicht gefunden oder gehört nicht zum richtigen Paket",subscriptionServiceNotBelongTosubscriptionServiceParent:"Abonnementdienst nicht gefunden oder gehört nicht zum richtigen Abonnementdienst-Elternteil",canNotGetsubscriptionServiceListPleaseTryAgain:"Abonnementdienstliste kann derzeit nicht abgerufen werden, bitte versuchen Sie es erneut"}}},brandAdmin:{errorMessage:{firstNameInvalid:"Das Feld Vorname ist ungültig. Muss eine Länge von 3 bis 40 Zeichen haben und keine Sonderzeichen enthalten.",createdAtInvalid:"Das Feld Erstellt am ist ungültig.",brandNotFound:"Marke nicht gefunden.",lastNameInvalid:"Das Feld Nachname ist ungültig. Muss eine Länge von 3 bis 40 Zeichen haben und keine Sonderzeichen enthalten.",idInvalid:"Das Feld ID ist ungültig. Muss im UUID-v4-Format sein.",updatedAtInvalid:"Das Feld Erstellt am ist ungültig. Muss im Datumsformat sein.",countryInvalid:"Das Feld Land ist ungültig. Bitte wählen Sie ein von uns unterstütztes Land aus.",termTypeInvalid:"Das Feld TermType ist ungültig. Bitte wählen Sie einen von uns unterstützten TermType aus.",baseCostTypeInvalid:"Das Feld BaseCostType ist ungültig. Bitte wählen Sie einen von uns unterstützten BaseCostType aus.",brandStatusesInvalid:"BrandStatuses ist ungültig. Bitte wählen Sie einen von uns unterstützten BrandStatuses aus.",informationPlanIsRequired:"Informationsplan ist erforderlich.",settingStatusesInvalid:"SettingStatuses ist ungültig. Bitte wählen Sie einen von uns unterstützten BaseCostType aus.",languagesInvalid:"Sprachen ist ungültig. Bitte wählen Sie eine von uns unterstützte Sprache aus.",currencyInvalid:"Währung ist ungültig. Bitte wählen Sie eine von uns unterstützte Währung aus.",distanceMetricInvalid:"Entfernungsmetrik ist ungültig. Bitte wählen Sie eine von uns unterstützte Entfernungsmetrik aus.",settingNotFound:"Einstellung nicht gefunden.",subscriptionNotFound:"Abonnement nicht gefunden.",subscriptionNameExists:"Der Abonnementname existiert bereits.",subscriptionServiceNotFound:"Abonnementdienst nicht gefunden.",subscriptionServiceNotBelongToPackage:"Abonnementdienst nicht gefunden oder gehört nicht zum richtigen Paket",subscriptionServiceNotBelongTosubscriptionServiceParent:"Abonnementdienst nicht gefunden oder gehört nicht zum richtigen Abonnementdienst-Elternteil",canNotGetsubscriptionServiceListPleaseTryAgain:"Abonnementdienstliste kann derzeit nicht abgerufen werden, bitte versuchen Sie es erneut"}},iam:{usersManagement:{errorMessage:{firstNameInvalid:"Feld Vorname ist ungültig. Muss eine Länge von 1 bis 40 Zeichen haben und keine Sonderzeichen enthalten.",createdAtInvalid:"Feld Erstellt am ist ungültig.",notFound:"Benutzer nicht gefunden.",lastNameInvalid:"Feld Nachname ist ungültig. Muss eine Länge von 1 bis 40 Zeichen haben und keine Sonderzeichen enthalten.",updatedAtInvalid:"Feld Erstellt am ist ungültig. Muss im Datumsformat sein.",emailInvalid:"Feld E-Mail ist ungültig. Muss im E-Mail-Format sein.",passwordInvalid:"Feld Passwort ist ungültig. Muss 8 Zeichen lang sein, 1 Großbuchstaben & 1 Kleinbuchstaben enthalten, 1 Zahl und 1 Sonderzeichen.",countryCodeInvalid:"Feld Ländercode ist ungültig.",languageCodeInvalid:"Feld Sprachcode ist ungültig.",deletedAtInvalid:"Feld Gelöscht am ist ungültig. Muss im Datumsformat sein.",isActiveInvalid:"Feld IstAktiv ist ungültig.",isSuspendInvalid:"Feld IstGesperrt ist ungültig.",userExist:"Der Benutzer existiert bereits.",authProviderInvalid:"Feld Authentifizierungsanbieter ist ungültig.",isEnableInvalid:"Feld IstAktiviert ist ungültig.",sendEmailFailed:"E-Mail senden fehlgeschlagen.",emailRequired:"Feld E-Mail ist erforderlich",firstNameRequired:"Feld Vorname ist erforderlich",lastNameRequired:"Feld Nachname ist erforderlich",countryCodeRequired:"Feld Ländercode ist erforderlich",userStatusInvalid:"Feld Status ungültig. Bitte wählen Sie einen von uns unterstützten Status.",loginAtInvalid:"Feld Letzte Anmeldung ist ungültig.",avatarFileInvalid:"Avatar-Dateiformat wird nicht unterstützt. Muss png, jpeg, jpg sein und kleiner als 1 MB.",permissionGroupNotFound:"Berechtigungsgruppe nicht gefunden.",organizeInvalid:"Feld Organisation ist erforderlich. Muss ein Objekt sein.",relatedIdInvalid:"Feld Bezug-ID der Organisation ist ungültig. Muss eine Zahl sein.",userOrganizeNotFound:"Benutzerorganisation nicht gefunden.",isSystemInvalid:"Feld IstSystem ist ungültig.",organizeUserInvalid:"Feld Benutzer ist ungültig. Muss ein Array sein.",organizeUserDuplicate:"Feld Benutzer enthält duplizierte E-Mail-Adressen."}},permissionGroup:{errorMessage:{actionNotFound:"Aktion nicht gefunden.",permissionGroupNotFound:"Berechtigungsgruppe nicht gefunden.",permissionGroupIsExisted:"Berechtigungsgruppenname existiert bereits",permissionGroupOrganizeNotFound:"Organisation der Berechtigungsgruppe nicht gefunden.",relatedIdInvalid:"Feld Bezug-ID der Organisation ist ungültig. Muss eine Zahl sein.",cannotRemoveFullPermissionGroup:"Sie können diese Berechtigungsgruppe nicht entfernen.",cannotEditFullPermissionGroup:"Sie können diese Berechtigungsgruppe nicht aktualisieren."}},organize:{errorMessage:{relatedIdInvalid:"Feld Bezug-ID ist ungültig. Muss eine Zahl sein.",nameInvalid:"Feld Name der Daten ist ungültig. Muss eine Länge von 1 bis 40 Zeichen haben und keine Sonderzeichen enthalten.",dataInvalid:"Feld Daten ist ungültig. Muss ein Objekt sein.",organizeExist:"Die Organisation existiert bereits.",callbackUrlInvalid:"Feld Callback-URL der Daten ist ungültig. Muss eine Zeichenkette sein."}}},notificationAdmin:{notification:{errorMessage:{notificationFilterType:"Feld notificationFilterType ist ungültig. Muss einer der Werte 'gelesen', 'ungelesen' oder 'alle' sein.",userIdInvalid:"Feld userId ist ungültig. Muss eine Zahl sein.",filterInvalid:"Feld filter ist ungültig. Muss ein Objekt sein.",isReadInvalid:"Feld isRead ist ungültig. Muss ein boolescher Wert sein.",notificationIdInvalid:"Feld id ist ungültig. Muss eine Zahl sein.",userDeviceTokenInvalid:"Feld deviceToken ist ungültig. Muss eine Zeichenfolge sein."}},notificationConfig:{errorMessage:{notificationNotFound:"Benachrichtigungskonfiguration nicht gefunden.",notificationIsExisted:"Benachrichtigungsregel existiert bereits.",actionNotFound:"Aktion nicht gefunden.",userNotFound:"Benutzer nicht gefunden.",firstNameInvalid:"Feld Vorname ist ungültig. Muss eine Länge von 1 bis 40 Zeichen haben und keine Sonderzeichen enthalten.",createdAtInvalid:"Feld createdAt ist ungültig.",lastNameInvalid:"Feld Nachname ist ungültig. Muss eine Länge von 1 bis 40 Zeichen haben und keine Sonderzeichen enthalten.",updatedAtInvalid:"Feld createdAt ist ungültig. Muss im Datumsformat sein.",emailInvalid:"Feld E-Mail ist ungültig. Muss im E-Mail-Format sein.",passwordInvalid:"Feld Passwort ist ungültig. Muss 8 Zeichen lang sein, einen Großbuchstaben, einen Kleinbuchstaben, eine Zahl und ein Sonderzeichen enthalten.",countryCodeInvalid:"Feld Ländercode ist ungültig.",languageCodeInvalid:"Feld Sprachcode ist ungültig.",deletedAtInvalid:"Feld deletedAt ist ungültig. Muss im Datumsformat sein.",isActiveInvalid:"Feld isActive ist ungültig.",isSuspendInvalid:"Feld isSuspend ist ungültig.",userExist:"Der Benutzer existiert bereits.",authProviderInvalid:"Feld authProvider ist ungültig.",isEnableInvalid:"Feld isEnable ist ungültig.",sendEmailFailed:"E-Mail-Versand fehlgeschlagen.",emailRequired:"Feld E-Mail ist erforderlich",firstNameRequired:"Feld Vorname ist erforderlich",lastNameRequired:"Feld Nachname ist erforderlich",countryCodeRequired:"Feld Ländercode ist erforderlich",userStatusInvalid:"Feld Status ist ungültig. Bitte wählen Sie einen unterstützten Status aus.",loginAtInvalid:"Feld letzter Login ist ungültig.",avatarFileInvalid:"Avatar-Dateiformat wird nicht unterstützt. Muss png, jpeg, jpg sein und kleiner als 1 MB sein.",permissionGroupNotFound:"Berechtigungsgruppe nicht gefunden.",organizeInvalid:"Feld Organisieren ist erforderlich. Muss ein Objekt sein.",relatedIdInvalid:"Feld relatedId von Organisieren. Muss eine Zahl sein.",userOrganizeNotFound:"Benutzerorganisation nicht gefunden.",isSystemInvalid:"Feld isSystem ist ungültig.",organizeUserInvalid:"Feld Benutzer ist ungültig. Muss ein Array sein.",organizeUserDuplicate:"Feld Benutzer enthält doppelte E-Mails."}}}},uS={errorMessage:oS,components:sS,configurations:lS};var Uf=(a=>(a.en="en",a.de="de",a))(Uf||{});const cS={de:{translation:uS},en:{translation:aS}};Fr.use(Q0).use(op).init({resources:cS,fallbackLng:"en"});function fS(){const[a,t]=qe.useState();return qe.useEffect(()=>{const r=localStorage.getItem("language");t(r||Uf.en)},[]),{language:a,setLanguage:t}}const sp=qe.createContext({}),dS=()=>qe.useContext(sp),hS=({children:a,resources:t})=>{const r=fS();return t&&(console.log("🚀 ~ resources:",t),Object.keys(t).map(f=>{Fr.addResourceBundle(f,"translation",t[`${f}`])})),sr.jsx(sp.Provider,{value:r,children:sr.jsx(tS,{i18n:Fr,children:a})})},pS={TOKEN_MALFORMED:"token_malformed",TOKEN_EXPIRED:"token_expired"},gS=a=>{window.location.href=`${a}/authentication/login?callbackUrl=${window.location.href}`},vS=a=>{window.location.href=`${a}/authentication/logout?callbackUrl=${window.location.href}`};function lp(a){var t,r,f="";if(typeof a=="string"||typeof a=="number")f+=a;else if(typeof a=="object")if(Array.isArray(a)){var o=a.length;for(t=0;t<o;t++)a[t]&&(r=lp(a[t]))&&(f&&(f+=" "),f+=r)}else for(r in a)a[r]&&(f&&(f+=" "),f+=r);return f}function ks(){for(var a,t,r=0,f="",o=arguments.length;r<o;r++)(a=arguments[r])&&(t=lp(a))&&(f&&(f+=" "),f+=t);return f}const $u=a=>typeof a=="number"&&!isNaN(a),Vl=a=>typeof a=="string",Ta=a=>typeof a=="function",dc=a=>Vl(a)||Ta(a)?a:null,Rf=a=>qe.isValidElement(a)||Vl(a)||Ta(a)||$u(a);function mS(a,t,r){r===void 0&&(r=300);const{scrollHeight:f,style:o}=a;requestAnimationFrame(()=>{o.minHeight="initial",o.height=f+"px",o.transition=`all ${r}ms`,requestAnimationFrame(()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(t,r)})})}function Cc(a){let{enter:t,exit:r,appendPosition:f=!1,collapse:o=!0,collapseDuration:p=300}=a;return function(C){let{children:P,position:_,preventExitTransition:M,done:X,nodeRef:z,isIn:Z,playToast:be}=C;const ue=f?`${t}--${_}`:t,ce=f?`${r}--${_}`:r,ee=qe.useRef(0);return qe.useLayoutEffect(()=>{const W=z.current,_e=ue.split(" "),Ie=Ae=>{Ae.target===z.current&&(be(),W.removeEventListener("animationend",Ie),W.removeEventListener("animationcancel",Ie),ee.current===0&&Ae.type!=="animationcancel"&&W.classList.remove(..._e))};W.classList.add(..._e),W.addEventListener("animationend",Ie),W.addEventListener("animationcancel",Ie)},[]),qe.useEffect(()=>{const W=z.current,_e=()=>{W.removeEventListener("animationend",_e),o?mS(W,X,p):X()};Z||(M?_e():(ee.current=1,W.className+=` ${ce}`,W.addEventListener("animationend",_e)))},[Z]),qe.createElement(qe.Fragment,null,P)}}function kh(a,t){return a!=null?{content:a.content,containerId:a.props.containerId,id:a.props.toastId,theme:a.props.theme,type:a.props.type,data:a.props.data||{},isLoading:a.props.isLoading,icon:a.props.icon,status:t}:{}}const Ui=new Map;let Vu=[];const Df=new Set,yS=a=>Df.forEach(t=>t(a)),up=()=>Ui.size>0;function cp(a,t){var r;if(t)return!((r=Ui.get(t))==null||!r.isToastActive(a));let f=!1;return Ui.forEach(o=>{o.isToastActive(a)&&(f=!0)}),f}function fp(a,t){Rf(a)&&(up()||Vu.push({content:a,options:t}),Ui.forEach(r=>{r.buildToast(a,t)}))}function Eh(a,t){Ui.forEach(r=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===r.id&&r.toggle(a,t==null?void 0:t.id):r.toggle(a,t==null?void 0:t.id)})}function bS(a){const{subscribe:t,getSnapshot:r,setProps:f}=qe.useRef(function(p){const C=p.containerId||1;return{subscribe(P){const _=function(X,z,Z){let be=1,ue=0,ce=[],ee=[],W=[],_e=z;const Ie=new Map,Ae=new Set,fe=()=>{W=Array.from(Ie.values()),Ae.forEach(We=>We())},Be=We=>{ee=We==null?[]:ee.filter(De=>De!==We),fe()},v=We=>{const{toastId:De,onOpen:Dt,updateId:Ct,children:At}=We.props,lt=Ct==null;We.staleId&&Ie.delete(We.staleId),Ie.set(De,We),ee=[...ee,We.props.toastId].filter(kt=>kt!==We.staleId),fe(),Z(kh(We,lt?"added":"updated")),lt&&Ta(Dt)&&Dt(qe.isValidElement(At)&&At.props)};return{id:X,props:_e,observe:We=>(Ae.add(We),()=>Ae.delete(We)),toggle:(We,De)=>{Ie.forEach(Dt=>{De!=null&&De!==Dt.props.toastId||Ta(Dt.toggle)&&Dt.toggle(We)})},removeToast:Be,toasts:Ie,clearQueue:()=>{ue-=ce.length,ce=[]},buildToast:(We,De)=>{if((ze=>{let{containerId:et,toastId:tt,updateId:Ve}=ze;const Ye=et?et!==X:X!==1,ut=Ie.has(tt)&&Ve==null;return Ye||ut})(De))return;const{toastId:Dt,updateId:Ct,data:At,staleId:lt,delay:kt}=De,Kt=()=>{Be(Dt)},qt=Ct==null;qt&&ue++;const mt={..._e,style:_e.toastStyle,key:be++,...Object.fromEntries(Object.entries(De).filter(ze=>{let[et,tt]=ze;return tt!=null})),toastId:Dt,updateId:Ct,data:At,closeToast:Kt,isIn:!1,className:dc(De.className||_e.toastClassName),bodyClassName:dc(De.bodyClassName||_e.bodyClassName),progressClassName:dc(De.progressClassName||_e.progressClassName),autoClose:!De.isLoading&&(Xe=De.autoClose,wt=_e.autoClose,Xe===!1||$u(Xe)&&Xe>0?Xe:wt),deleteToast(){const ze=Ie.get(Dt),{onClose:et,children:tt}=ze.props;Ta(et)&&et(qe.isValidElement(tt)&&tt.props),Z(kh(ze,"removed")),Ie.delete(Dt),ue--,ue<0&&(ue=0),ce.length>0?v(ce.shift()):fe()}};var Xe,wt;mt.closeButton=_e.closeButton,De.closeButton===!1||Rf(De.closeButton)?mt.closeButton=De.closeButton:De.closeButton===!0&&(mt.closeButton=!Rf(_e.closeButton)||_e.closeButton);let Re=We;qe.isValidElement(We)&&!Vl(We.type)?Re=qe.cloneElement(We,{closeToast:Kt,toastProps:mt,data:At}):Ta(We)&&(Re=We({closeToast:Kt,toastProps:mt,data:At}));const Oe={content:Re,props:mt,staleId:lt};_e.limit&&_e.limit>0&&ue>_e.limit&&qt?ce.push(Oe):$u(kt)?setTimeout(()=>{v(Oe)},kt):v(Oe)},setProps(We){_e=We},setToggle:(We,De)=>{Ie.get(We).toggle=De},isToastActive:We=>ee.some(De=>De===We),getSnapshot:()=>_e.newestOnTop?W.reverse():W}}(C,p,yS);Ui.set(C,_);const M=_.observe(P);return Vu.forEach(X=>fp(X.content,X.options)),Vu=[],()=>{M(),Ui.delete(C)}},setProps(P){var _;(_=Ui.get(C))==null||_.setProps(P)},getSnapshot(){var P;return(P=Ui.get(C))==null?void 0:P.getSnapshot()}}}(a)).current;f(a);const o=qe.useSyncExternalStore(t,r,r);return{getToastToRender:function(p){if(!o)return[];const C=new Map;return o.forEach(P=>{const{position:_}=P.props;C.has(_)||C.set(_,[]),C.get(_).push(P)}),Array.from(C,P=>p(P[0],P[1]))},isToastActive:cp,count:o==null?void 0:o.length}}function SS(a){const[t,r]=qe.useState(!1),[f,o]=qe.useState(!1),p=qe.useRef(null),C=qe.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:P,pauseOnHover:_,closeToast:M,onClick:X,closeOnClick:z}=a;var Z,be;function ue(){r(!0)}function ce(){r(!1)}function ee(Ie){const Ae=p.current;C.canDrag&&Ae&&(C.didMove=!0,t&&ce(),C.delta=a.draggableDirection==="x"?Ie.clientX-C.start:Ie.clientY-C.start,C.start!==Ie.clientX&&(C.canCloseOnClick=!1),Ae.style.transform=`translate3d(${a.draggableDirection==="x"?`${C.delta}px, var(--y)`:`0, calc(${C.delta}px + var(--y))`},0)`,Ae.style.opacity=""+(1-Math.abs(C.delta/C.removalDistance)))}function W(){document.removeEventListener("pointermove",ee),document.removeEventListener("pointerup",W);const Ie=p.current;if(C.canDrag&&C.didMove&&Ie){if(C.canDrag=!1,Math.abs(C.delta)>C.removalDistance)return o(!0),a.closeToast(),void a.collapseAll();Ie.style.transition="transform 0.2s, opacity 0.2s",Ie.style.removeProperty("transform"),Ie.style.removeProperty("opacity")}}(be=Ui.get((Z={id:a.toastId,containerId:a.containerId,fn:r}).containerId||1))==null||be.setToggle(Z.id,Z.fn),qe.useEffect(()=>{if(a.pauseOnFocusLoss)return document.hasFocus()||ce(),window.addEventListener("focus",ue),window.addEventListener("blur",ce),()=>{window.removeEventListener("focus",ue),window.removeEventListener("blur",ce)}},[a.pauseOnFocusLoss]);const _e={onPointerDown:function(Ie){if(a.draggable===!0||a.draggable===Ie.pointerType){C.didMove=!1,document.addEventListener("pointermove",ee),document.addEventListener("pointerup",W);const Ae=p.current;C.canCloseOnClick=!0,C.canDrag=!0,Ae.style.transition="none",a.draggableDirection==="x"?(C.start=Ie.clientX,C.removalDistance=Ae.offsetWidth*(a.draggablePercent/100)):(C.start=Ie.clientY,C.removalDistance=Ae.offsetHeight*(a.draggablePercent===80?1.5*a.draggablePercent:a.draggablePercent)/100)}},onPointerUp:function(Ie){const{top:Ae,bottom:fe,left:Be,right:v}=p.current.getBoundingClientRect();Ie.nativeEvent.type!=="touchend"&&a.pauseOnHover&&Ie.clientX>=Be&&Ie.clientX<=v&&Ie.clientY>=Ae&&Ie.clientY<=fe?ce():ue()}};return P&&_&&(_e.onMouseEnter=ce,a.stacked||(_e.onMouseLeave=ue)),z&&(_e.onClick=Ie=>{X&&X(Ie),C.canCloseOnClick&&M()}),{playToast:ue,pauseToast:ce,isRunning:t,preventExitTransition:f,toastRef:p,eventHandlers:_e}}function wS(a){let{delay:t,isRunning:r,closeToast:f,type:o="default",hide:p,className:C,style:P,controlledProgress:_,progress:M,rtl:X,isIn:z,theme:Z}=a;const be=p||_&&M===0,ue={...P,animationDuration:`${t}ms`,animationPlayState:r?"running":"paused"};_&&(ue.transform=`scaleX(${M})`);const ce=ks("Toastify__progress-bar",_?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${Z}`,`Toastify__progress-bar--${o}`,{"Toastify__progress-bar--rtl":X}),ee=Ta(C)?C({rtl:X,type:o,defaultClassName:ce}):ks(ce,C),W={[_&&M>=1?"onTransitionEnd":"onAnimationEnd"]:_&&M<1?null:()=>{z&&f()}};return qe.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":be},qe.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${Z} Toastify__progress-bar--${o}`}),qe.createElement("div",{role:"progressbar","aria-hidden":be?"true":"false","aria-label":"notification timer",className:ee,style:ue,...W}))}let xS=1;const dp=()=>""+xS++;function CS(a){return a&&(Vl(a.toastId)||$u(a.toastId))?a.toastId:dp()}function Uu(a,t){return fp(a,t),t.toastId}function mc(a,t){return{...t,type:t&&t.type||a,toastId:CS(t)}}function uc(a){return(t,r)=>Uu(t,mc(a,r))}function yn(a,t){return Uu(a,mc("default",t))}yn.loading=(a,t)=>Uu(a,mc("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),yn.promise=function(a,t,r){let f,{pending:o,error:p,success:C}=t;o&&(f=Vl(o)?yn.loading(o,r):yn.loading(o.render,{...r,...o}));const P={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},_=(X,z,Z)=>{if(z==null)return void yn.dismiss(f);const be={type:X,...P,...r,data:Z},ue=Vl(z)?{render:z}:z;return f?yn.update(f,{...be,...ue}):yn(ue.render,{...be,...ue}),Z},M=Ta(a)?a():a;return M.then(X=>_("success",C,X)).catch(X=>_("error",p,X)),M},yn.success=uc("success"),yn.info=uc("info"),yn.error=uc("error"),yn.warning=uc("warning"),yn.warn=yn.warning,yn.dark=(a,t)=>Uu(a,mc("default",{theme:"dark",...t})),yn.dismiss=function(a){(function(t){var r;if(up()){if(t==null||Vl(r=t)||$u(r))Ui.forEach(o=>{o.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){var f;(f=Ui.get(t.containerId))!=null&&f.removeToast(t.id)||Ui.forEach(o=>{o.removeToast(t.id)})}}else Vu=Vu.filter(o=>t!=null&&o.options.toastId!==t)})(a)},yn.clearWaitingQueue=function(a){a===void 0&&(a={}),Ui.forEach(t=>{!t.props.limit||a.containerId&&t.id!==a.containerId||t.clearQueue()})},yn.isActive=cp,yn.update=function(a,t){t===void 0&&(t={});const r=((f,o)=>{var p;let{containerId:C}=o;return(p=Ui.get(C||1))==null?void 0:p.toasts.get(f)})(a,t);if(r){const{props:f,content:o}=r,p={delay:100,...f,...t,toastId:t.toastId||a,updateId:dp()};p.toastId!==a&&(p.staleId=a);const C=p.render||o;delete p.render,Uu(C,p)}},yn.done=a=>{yn.update(a,{progress:1})},yn.onChange=function(a){return Df.add(a),()=>{Df.delete(a)}},yn.play=a=>Eh(!0,a),yn.pause=a=>Eh(!1,a);const kS=typeof window<"u"?qe.useLayoutEffect:qe.useEffect,cc=a=>{let{theme:t,type:r,isLoading:f,...o}=a;return qe.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${r})`,...o})},cf={info:function(a){return qe.createElement(cc,{...a},qe.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(a){return qe.createElement(cc,{...a},qe.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(a){return qe.createElement(cc,{...a},qe.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(a){return qe.createElement(cc,{...a},qe.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return qe.createElement("div",{className:"Toastify__spinner"})}},ES=a=>{const{isRunning:t,preventExitTransition:r,toastRef:f,eventHandlers:o,playToast:p}=SS(a),{closeButton:C,children:P,autoClose:_,onClick:M,type:X,hideProgressBar:z,closeToast:Z,transition:be,position:ue,className:ce,style:ee,bodyClassName:W,bodyStyle:_e,progressClassName:Ie,progressStyle:Ae,updateId:fe,role:Be,progress:v,rtl:We,toastId:De,deleteToast:Dt,isIn:Ct,isLoading:At,closeOnClick:lt,theme:kt}=a,Kt=ks("Toastify__toast",`Toastify__toast-theme--${kt}`,`Toastify__toast--${X}`,{"Toastify__toast--rtl":We},{"Toastify__toast--close-on-click":lt}),qt=Ta(ce)?ce({rtl:We,position:ue,type:X,defaultClassName:Kt}):ks(Kt,ce),mt=function(Oe){let{theme:ze,type:et,isLoading:tt,icon:Ve}=Oe,Ye=null;const ut={theme:ze,type:et};return Ve===!1||(Ta(Ve)?Ye=Ve({...ut,isLoading:tt}):qe.isValidElement(Ve)?Ye=qe.cloneElement(Ve,ut):tt?Ye=cf.spinner():(gt=>gt in cf)(et)&&(Ye=cf[et](ut))),Ye}(a),Xe=!!v||!_,wt={closeToast:Z,type:X,theme:kt};let Re=null;return C===!1||(Re=Ta(C)?C(wt):qe.isValidElement(C)?qe.cloneElement(C,wt):function(Oe){let{closeToast:ze,theme:et,ariaLabel:tt="close"}=Oe;return qe.createElement("button",{className:`Toastify__close-button Toastify__close-button--${et}`,type:"button",onClick:Ve=>{Ve.stopPropagation(),ze(Ve)},"aria-label":tt},qe.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},qe.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(wt)),qe.createElement(be,{isIn:Ct,done:Dt,position:ue,preventExitTransition:r,nodeRef:f,playToast:p},qe.createElement("div",{id:De,onClick:M,"data-in":Ct,className:qt,...o,style:ee,ref:f},qe.createElement("div",{...Ct&&{role:Be},className:Ta(W)?W({type:X}):ks("Toastify__toast-body",W),style:_e},mt!=null&&qe.createElement("div",{className:ks("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!At})},mt),qe.createElement("div",null,P)),Re,qe.createElement(wS,{...fe&&!Xe?{key:`pb-${fe}`}:{},rtl:We,theme:kt,delay:_,isRunning:t,isIn:Ct,closeToast:Z,hide:z,type:X,style:Ae,className:Ie,controlledProgress:Xe,progress:v||0})))},kc=function(a,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${a}-enter`,exit:`Toastify--animate Toastify__${a}-exit`,appendPosition:t}},TS=Cc(kc("bounce",!0));Cc(kc("slide",!0));Cc(kc("zoom"));Cc(kc("flip"));const IS={position:"top-right",transition:TS,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function _S(a){let t={...IS,...a};const r=a.stacked,[f,o]=qe.useState(!0),p=qe.useRef(null),{getToastToRender:C,isToastActive:P,count:_}=bS(t),{className:M,style:X,rtl:z,containerId:Z}=t;function be(ce){const ee=ks("Toastify__toast-container",`Toastify__toast-container--${ce}`,{"Toastify__toast-container--rtl":z});return Ta(M)?M({position:ce,rtl:z,defaultClassName:ee}):ks(ee,dc(M))}function ue(){r&&(o(!0),yn.play())}return kS(()=>{if(r){var ce;const ee=p.current.querySelectorAll('[data-in="true"]'),W=12,_e=(ce=t.position)==null?void 0:ce.includes("top");let Ie=0,Ae=0;Array.from(ee).reverse().forEach((fe,Be)=>{const v=fe;v.classList.add("Toastify__toast--stacked"),Be>0&&(v.dataset.collapsed=`${f}`),v.dataset.pos||(v.dataset.pos=_e?"top":"bot");const We=Ie*(f?.2:1)+(f?0:W*Be);v.style.setProperty("--y",`${_e?We:-1*We}px`),v.style.setProperty("--g",`${W}`),v.style.setProperty("--s",""+(1-(f?Ae:0))),Ie+=v.offsetHeight,Ae+=.025})}},[f,_,r]),qe.createElement("div",{ref:p,className:"Toastify",id:Z,onMouseEnter:()=>{r&&(o(!1),yn.pause())},onMouseLeave:ue},C((ce,ee)=>{const W=ee.length?{...X}:{...X,pointerEvents:"none"};return qe.createElement("div",{className:be(ce),style:W,key:`container-${ce}`},ee.map(_e=>{let{content:Ie,props:Ae}=_e;return qe.createElement(ES,{...Ae,stacked:r,collapseAll:ue,isIn:P(Ae.toastId,Ae.containerId),style:Ae.style,key:`toast-${Ae.key}`},Ie)}))}))}function RS(){return sr.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[sr.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 1C16.5222 1 21 5.47676 21 11C21 16.5222 16.5222 21 11 21C5.47676 21 1 16.5222 1 11C1 5.47676 5.47676 1 11 1Z",stroke:"#E01B00",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),sr.jsx("path",{d:"M10.9942 6.89636V11.6737",stroke:"#E01B00",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),sr.jsx("path",{d:"M10.9941 15.1038H11.0049",stroke:"#E01B00",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function DS(){return sr.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[sr.jsx("rect",{width:"24",height:"24",rx:"12",fill:"#009D4F"}),sr.jsx("path",{d:"M7.25244 12L10.4174 15.165L16.7474 8.83496",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function AS(){return sr.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[sr.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 1C16.5222 1 21 5.47676 21 11C21 16.5222 16.5222 21 11 21C5.47676 21 1 16.5222 1 11C1 5.47676 5.47676 1 11 1Z",stroke:"#faad14",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),sr.jsx("path",{d:"M10.9942 6.89636V11.6737",stroke:"#faad14",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),sr.jsx("path",{d:"M10.9941 15.1038H11.0049",stroke:"#faad14",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}const Wf={paddingLeft:"16px",borderLeft:"2px solid",boxShadow:"none",fontFamily:"inherit"},PS=a=>{yn.success(a,{icon:sr.jsx(DS,{}),bodyStyle:{},position:"bottom-right",style:{...Wf,background:$l.color.primary100,borderColor:$l.color.success,color:$l.color.success}})},OS=a=>{yn.error(a,{icon:sr.jsx(RS,{}),position:"bottom-right",style:{...Wf,background:"#F7E4E1",borderColor:$l.color.danger,color:$l.color.danger}})},MS=a=>{yn.error(a,{icon:sr.jsx(AS,{}),position:"bottom-right",style:{...Wf,background:"#FFF1B8",borderColor:"#faad14",color:$l.color.textPrimary}})};function zf(a,t){if(a==null)return{};var r={},f=Object.keys(a),o,p;for(p=0;p<f.length;p++)o=f[p],!(t.indexOf(o)>=0)&&(r[o]=a[o]);return r}const FS=Object.freeze(Object.defineProperty({__proto__:null,default:zf},Symbol.toStringTag,{value:"Module"}));function Cu(){return Cu=Object.assign?Object.assign.bind():function(a){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var f in r)Object.prototype.hasOwnProperty.call(r,f)&&(a[f]=r[f])}return a},Cu.apply(this,arguments)}const LS=Object.freeze(Object.defineProperty({__proto__:null,default:Cu},Symbol.toStringTag,{value:"Module"}));function Af(a,t){return Af=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,o){return f.__proto__=o,f},Af(a,t)}function hp(a,t){a.prototype=Object.create(t.prototype),a.prototype.constructor=a,Af(a,t)}function ff(a,t,r){if(r||arguments.length===2)for(var f=0,o=t.length,p;f<o;f++)(p||!(f in t))&&(p||(p=Array.prototype.slice.call(t,0,f)),p[f]=t[f]);return a.concat(p||Array.prototype.slice.call(t))}/*!
|
|
126
126
|
* content-type
|
|
127
127
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
128
128
|
* MIT Licensed
|