@sme.up/ketchup2 2.0.0-SNAPSHOT-20250516152534 → 2.0.0-SNAPSHOT-20250519142626

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- "use strict";var wr=Object.defineProperty;var Or=(n,e,t)=>e in n?wr(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var ve=(n,e,t)=>Or(n,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const F=require("react");function Tr(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:()=>n[t]})}}return e.default=n,Object.freeze(e)}const Ie=Tr(F);var Ne={exports:{}},Oe={};/**
1
+ "use strict";var Or=Object.defineProperty;var Tr=(n,e,t)=>e in n?Or(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var ve=(n,e,t)=>Tr(n,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const F=require("react");function Rr(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:()=>n[t]})}}return e.default=n,Object.freeze(e)}const Ie=Rr(F);var Ne={exports:{}},Oe={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var _t;function Rr(){if(_t)return Oe;_t=1;var n=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function t(r,s,a){var o=null;if(a!==void 0&&(o=""+a),s.key!==void 0&&(o=""+s.key),"key"in s){a={};for(var i in s)i!=="key"&&(a[i]=s[i])}else a=s;return s=a.ref,{$$typeof:n,type:r,key:o,ref:s!==void 0?s:null,props:a}}return Oe.Fragment=e,Oe.jsx=t,Oe.jsxs=t,Oe}var Te={};/**
9
+ */var _t;function Dr(){if(_t)return Oe;_t=1;var n=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function t(r,s,a){var o=null;if(a!==void 0&&(o=""+a),s.key!==void 0&&(o=""+s.key),"key"in s){a={};for(var i in s)i!=="key"&&(a[i]=s[i])}else a=s;return s=a.ref,{$$typeof:n,type:r,key:o,ref:s!==void 0?s:null,props:a}}return Oe.Fragment=e,Oe.jsx=t,Oe.jsxs=t,Oe}var Te={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,37 +14,37 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var wt;function Dr(){return wt||(wt=1,process.env.NODE_ENV!=="production"&&function(){function n(d){if(d==null)return null;if(typeof d=="function")return d.$$typeof===k?null:d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case v:return"Fragment";case b:return"Profiler";case E:return"StrictMode";case y:return"Suspense";case P:return"SuspenseList";case V:return"Activity"}if(typeof d=="object")switch(typeof d.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),d.$$typeof){case g:return"Portal";case A:return(d.displayName||"Context")+".Provider";case w:return(d._context.displayName||"Context")+".Consumer";case D:var m=d.render;return d=d.displayName,d||(d=m.displayName||m.name||"",d=d!==""?"ForwardRef("+d+")":"ForwardRef"),d;case L:return m=d.displayName||null,m!==null?m:n(d.type)||"Memo";case U:m=d._payload,d=d._init;try{return n(d(m))}catch{}}return null}function e(d){return""+d}function t(d){try{e(d);var m=!1}catch{m=!0}if(m){m=console;var x=m.error,_=typeof Symbol=="function"&&Symbol.toStringTag&&d[Symbol.toStringTag]||d.constructor.name||"Object";return x.call(m,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",_),e(d)}}function r(d){if(d===v)return"<>";if(typeof d=="object"&&d!==null&&d.$$typeof===U)return"<...>";try{var m=n(d);return m?"<"+m+">":"<...>"}catch{return"<...>"}}function s(){var d=M.A;return d===null?null:d.getOwner()}function a(){return Error("react-stack-top-frame")}function o(d){if(W.call(d,"key")){var m=Object.getOwnPropertyDescriptor(d,"key").get;if(m&&m.isReactWarning)return!1}return d.key!==void 0}function i(d,m){function x(){ne||(ne=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",m))}x.isReactWarning=!0,Object.defineProperty(d,"key",{get:x,configurable:!0})}function l(){var d=n(this.type);return J[d]||(J[d]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),d=this.props.ref,d!==void 0?d:null}function c(d,m,x,_,S,T,j,I){return x=T.ref,d={$$typeof:h,type:d,key:m,props:T,_owner:S},(x!==void 0?x:null)!==null?Object.defineProperty(d,"ref",{enumerable:!1,get:l}):Object.defineProperty(d,"ref",{enumerable:!1,value:null}),d._store={},Object.defineProperty(d._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(d,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(d,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:j}),Object.defineProperty(d,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:I}),Object.freeze&&(Object.freeze(d.props),Object.freeze(d)),d}function f(d,m,x,_,S,T,j,I){var C=m.children;if(C!==void 0)if(_)if(X(C)){for(_=0;_<C.length;_++)u(C[_]);Object.freeze&&Object.freeze(C)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else u(C);if(W.call(m,"key")){C=n(d);var K=Object.keys(m).filter(function(re){return re!=="key"});_=0<K.length?"{key: someKey, "+K.join(": ..., ")+": ...}":"{key: someKey}",$[C+_]||(K=0<K.length?"{"+K.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
17
+ */var wt;function Pr(){return wt||(wt=1,process.env.NODE_ENV!=="production"&&function(){function n(d){if(d==null)return null;if(typeof d=="function")return d.$$typeof===C?null:d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case v:return"Fragment";case b:return"Profiler";case E:return"StrictMode";case y:return"Suspense";case P:return"SuspenseList";case V:return"Activity"}if(typeof d=="object")switch(typeof d.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),d.$$typeof){case g:return"Portal";case A:return(d.displayName||"Context")+".Provider";case w:return(d._context.displayName||"Context")+".Consumer";case D:var m=d.render;return d=d.displayName,d||(d=m.displayName||m.name||"",d=d!==""?"ForwardRef("+d+")":"ForwardRef"),d;case L:return m=d.displayName||null,m!==null?m:n(d.type)||"Memo";case U:m=d._payload,d=d._init;try{return n(d(m))}catch{}}return null}function e(d){return""+d}function t(d){try{e(d);var m=!1}catch{m=!0}if(m){m=console;var x=m.error,_=typeof Symbol=="function"&&Symbol.toStringTag&&d[Symbol.toStringTag]||d.constructor.name||"Object";return x.call(m,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",_),e(d)}}function r(d){if(d===v)return"<>";if(typeof d=="object"&&d!==null&&d.$$typeof===U)return"<...>";try{var m=n(d);return m?"<"+m+">":"<...>"}catch{return"<...>"}}function s(){var d=M.A;return d===null?null:d.getOwner()}function a(){return Error("react-stack-top-frame")}function o(d){if(W.call(d,"key")){var m=Object.getOwnPropertyDescriptor(d,"key").get;if(m&&m.isReactWarning)return!1}return d.key!==void 0}function i(d,m){function x(){ne||(ne=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",m))}x.isReactWarning=!0,Object.defineProperty(d,"key",{get:x,configurable:!0})}function l(){var d=n(this.type);return J[d]||(J[d]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),d=this.props.ref,d!==void 0?d:null}function c(d,m,x,_,S,T,j,I){return x=T.ref,d={$$typeof:h,type:d,key:m,props:T,_owner:S},(x!==void 0?x:null)!==null?Object.defineProperty(d,"ref",{enumerable:!1,get:l}):Object.defineProperty(d,"ref",{enumerable:!1,value:null}),d._store={},Object.defineProperty(d._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(d,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(d,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:j}),Object.defineProperty(d,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:I}),Object.freeze&&(Object.freeze(d.props),Object.freeze(d)),d}function f(d,m,x,_,S,T,j,I){var k=m.children;if(k!==void 0)if(_)if(X(k)){for(_=0;_<k.length;_++)u(k[_]);Object.freeze&&Object.freeze(k)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else u(k);if(W.call(m,"key")){k=n(d);var K=Object.keys(m).filter(function(re){return re!=="key"});_=0<K.length?"{key: someKey, "+K.join(": ..., ")+": ...}":"{key: someKey}",$[k+_]||(K=0<K.length?"{"+K.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
18
18
  let props = %s;
19
19
  <%s {...props} />
20
20
  React keys must be passed directly to JSX without using spread:
21
21
  let props = %s;
22
- <%s key={someKey} {...props} />`,_,C,K,C),$[C+_]=!0)}if(C=null,x!==void 0&&(t(x),C=""+x),o(m)&&(t(m.key),C=""+m.key),"key"in m){x={};for(var H in m)H!=="key"&&(x[H]=m[H])}else x=m;return C&&i(x,typeof d=="function"?d.displayName||d.name||"Unknown":d),c(d,C,T,S,s(),x,j,I)}function u(d){typeof d=="object"&&d!==null&&d.$$typeof===h&&d._store&&(d._store.validated=1)}var p=F,h=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),A=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),V=Symbol.for("react.activity"),k=Symbol.for("react.client.reference"),M=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=Object.prototype.hasOwnProperty,X=Array.isArray,B=console.createTask?console.createTask:function(){return null};p={"react-stack-bottom-frame":function(d){return d()}};var ne,J={},Y=p["react-stack-bottom-frame"].bind(p,a)(),z=B(r(a)),$={};Te.Fragment=v,Te.jsx=function(d,m,x,_,S){var T=1e4>M.recentlyCreatedOwnerStacks++;return f(d,m,x,!1,_,S,T?Error("react-stack-top-frame"):Y,T?B(r(d)):z)},Te.jsxs=function(d,m,x,_,S){var T=1e4>M.recentlyCreatedOwnerStacks++;return f(d,m,x,!0,_,S,T?Error("react-stack-top-frame"):Y,T?B(r(d)):z)}}()),Te}var Ot;function Pr(){return Ot||(Ot=1,process.env.NODE_ENV==="production"?Ne.exports=Rr():Ne.exports=Dr()),Ne.exports}var O=Pr();function Ar(n,e){if(n==null)return{};var t={};for(var r in n)if({}.hasOwnProperty.call(n,r)){if(e.indexOf(r)!==-1)continue;t[r]=n[r]}return t}function qe(){return qe=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},qe.apply(null,arguments)}function pt(n,e){return pt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},pt(n,e)}function kr(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,pt(n,e)}function rt(n,e,t){if(t||arguments.length===2)for(var r=0,s=e.length,a;r<s;r++)(a||!(r in e))&&(a||(a=Array.prototype.slice.call(e,0,r)),a[r]=e[r]);return n.concat(a||Array.prototype.slice.call(e))}var Me={};/*!
22
+ <%s key={someKey} {...props} />`,_,k,K,k),$[k+_]=!0)}if(k=null,x!==void 0&&(t(x),k=""+x),o(m)&&(t(m.key),k=""+m.key),"key"in m){x={};for(var H in m)H!=="key"&&(x[H]=m[H])}else x=m;return k&&i(x,typeof d=="function"?d.displayName||d.name||"Unknown":d),c(d,k,T,S,s(),x,j,I)}function u(d){typeof d=="object"&&d!==null&&d.$$typeof===h&&d._store&&(d._store.validated=1)}var p=F,h=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),A=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),V=Symbol.for("react.activity"),C=Symbol.for("react.client.reference"),M=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=Object.prototype.hasOwnProperty,X=Array.isArray,B=console.createTask?console.createTask:function(){return null};p={"react-stack-bottom-frame":function(d){return d()}};var ne,J={},Y=p["react-stack-bottom-frame"].bind(p,a)(),z=B(r(a)),$={};Te.Fragment=v,Te.jsx=function(d,m,x,_,S){var T=1e4>M.recentlyCreatedOwnerStacks++;return f(d,m,x,!1,_,S,T?Error("react-stack-top-frame"):Y,T?B(r(d)):z)},Te.jsxs=function(d,m,x,_,S){var T=1e4>M.recentlyCreatedOwnerStacks++;return f(d,m,x,!0,_,S,T?Error("react-stack-top-frame"):Y,T?B(r(d)):z)}}()),Te}var Ot;function Ar(){return Ot||(Ot=1,process.env.NODE_ENV==="production"?Ne.exports=Dr():Ne.exports=Pr()),Ne.exports}var O=Ar();function Cr(n,e){if(n==null)return{};var t={};for(var r in n)if({}.hasOwnProperty.call(n,r)){if(e.indexOf(r)!==-1)continue;t[r]=n[r]}return t}function qe(){return qe=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},qe.apply(null,arguments)}function pt(n,e){return pt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},pt(n,e)}function kr(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,pt(n,e)}function rt(n,e,t){if(t||arguments.length===2)for(var r=0,s=e.length,a;r<s;r++)(a||!(r in e))&&(a||(a=Array.prototype.slice.call(e,0,r)),a[r]=e[r]);return n.concat(a||Array.prototype.slice.call(e))}var Me={};/*!
23
23
  * content-type
24
24
  * Copyright(c) 2015 Douglas Christopher Wilson
25
25
  * MIT Licensed
26
- */var Tt;function Cr(){if(Tt)return Me;Tt=1;var n=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,e=/^[\u000b\u0020-\u007e\u0080-\u00ff]+$/,t=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,r=/\\([\u000b\u0020-\u00ff])/g,s=/([\\"])/g,a=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;Me.format=o,Me.parse=i;function o(u){if(!u||typeof u!="object")throw new TypeError("argument obj is required");var p=u.parameters,h=u.type;if(!h||!a.test(h))throw new TypeError("invalid type");var g=h;if(p&&typeof p=="object")for(var v,E=Object.keys(p).sort(),b=0;b<E.length;b++){if(v=E[b],!t.test(v))throw new TypeError("invalid parameter name");g+="; "+v+"="+c(p[v])}return g}function i(u){if(!u)throw new TypeError("argument string is required");var p=typeof u=="object"?l(u):u;if(typeof p!="string")throw new TypeError("argument string is required to be a string");var h=p.indexOf(";"),g=h!==-1?p.slice(0,h).trim():p.trim();if(!a.test(g))throw new TypeError("invalid media type");var v=new f(g.toLowerCase());if(h!==-1){var E,b,w;for(n.lastIndex=h;b=n.exec(p);){if(b.index!==h)throw new TypeError("invalid parameter format");h+=b[0].length,E=b[1].toLowerCase(),w=b[2],w.charCodeAt(0)===34&&(w=w.slice(1,-1),w.indexOf("\\")!==-1&&(w=w.replace(r,"$1"))),v.parameters[E]=w}if(h!==p.length)throw new TypeError("invalid parameter format")}return v}function l(u){var p;if(typeof u.getHeader=="function"?p=u.getHeader("content-type"):typeof u.headers=="object"&&(p=u.headers&&u.headers["content-type"]),typeof p!="string")throw new TypeError("content-type header is missing from object");return p}function c(u){var p=String(u);if(t.test(p))return p;if(p.length>0&&!e.test(p))throw new TypeError("invalid parameter value");return'"'+p.replace(s,"\\$1")+'"'}function f(u){this.parameters=Object.create(null),this.type=u}return Me}var $r=Cr(),_e=new Map,lr=function(e){return e.cloneNode(!0)},Rt=function(){return window.location.protocol==="file:"},cr=function(e,t,r){var s=new XMLHttpRequest;s.onreadystatechange=function(){try{if(!/\.svg/i.test(e)&&s.readyState===2){var a=s.getResponseHeader("Content-Type");if(!a)throw new Error("Content type not found");var o=$r.parse(a).type;if(!(o==="image/svg+xml"||o==="text/plain"))throw new Error("Invalid content type: ".concat(o))}if(s.readyState===4){if(s.status===404||s.responseXML===null)throw new Error(Rt()?"Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver.":"Unable to load SVG file: "+e);if(s.status===200||Rt()&&s.status===0)r(null,s);else throw new Error("There was a problem injecting the SVG: "+s.status+" "+s.statusText)}}catch(i){if(s.abort(),i instanceof Error)r(i,s);else throw i}},s.open("GET",e),s.withCredentials=t,s.overrideMimeType&&s.overrideMimeType("text/xml"),s.send()},ye={},Dt=function(e,t){ye[e]=ye[e]||[],ye[e].push(t)},jr=function(e){for(var t=function(o,i){setTimeout(function(){if(Array.isArray(ye[e])){var l=_e.get(e),c=ye[e][o];l instanceof SVGSVGElement&&c(null,lr(l)),l instanceof Error&&c(l),o===ye[e].length-1&&delete ye[e]}},0)},r=0,s=ye[e].length;r<s;r++)t(r)},Lr=function(e,t,r){if(_e.has(e)){var s=_e.get(e);if(s===void 0){Dt(e,r);return}if(s instanceof SVGSVGElement){r(null,lr(s));return}}_e.set(e,void 0),Dt(e,r),cr(e,t,function(a,o){var i;a?_e.set(e,a):((i=o.responseXML)===null||i===void 0?void 0:i.documentElement)instanceof SVGSVGElement&&_e.set(e,o.responseXML.documentElement),jr(e)})},Ir=function(e,t,r){cr(e,t,function(s,a){var o;s?r(s):((o=a.responseXML)===null||o===void 0?void 0:o.documentElement)instanceof SVGSVGElement&&r(null,a.responseXML.documentElement)})},Nr=0,Mr=function(){return++Nr},ue=[],Pt={},Fr="http://www.w3.org/2000/svg",nt="http://www.w3.org/1999/xlink",At=function(e,t,r,s,a,o,i){var l=e.getAttribute("data-src")||e.getAttribute("src");if(!l){i(new Error("Invalid data-src or src attribute"));return}if(ue.indexOf(e)!==-1){ue.splice(ue.indexOf(e),1),e=null;return}ue.push(e),e.setAttribute("src","");var c=s?Lr:Ir;c(l,a,function(f,u){if(!u){ue.splice(ue.indexOf(e),1),e=null,i(f);return}var p=e.getAttribute("id");p&&u.setAttribute("id",p);var h=e.getAttribute("title");h&&u.setAttribute("title",h);var g=e.getAttribute("width");g&&u.setAttribute("width",g);var v=e.getAttribute("height");v&&u.setAttribute("height",v);var E=Array.from(new Set(rt(rt(rt([],(u.getAttribute("class")||"").split(" "),!0),["injected-svg"],!1),(e.getAttribute("class")||"").split(" "),!0))).join(" ").trim();u.setAttribute("class",E);var b=e.getAttribute("style");b&&u.setAttribute("style",b),u.setAttribute("data-src",l);var w=[].filter.call(e.attributes,function(z){return/^data-\w[\w-]*$/.test(z.name)});if(Array.prototype.forEach.call(w,function(z){z.name&&z.value&&u.setAttribute(z.name,z.value)}),r){var A={clipPath:["clip-path"],"color-profile":["color-profile"],cursor:["cursor"],filter:["filter"],linearGradient:["fill","stroke"],marker:["marker","marker-start","marker-mid","marker-end"],mask:["mask"],path:[],pattern:["fill","stroke"],radialGradient:["fill","stroke"]},D,y,P,L,U;Object.keys(A).forEach(function(z){D=z,P=A[z],y=u.querySelectorAll(D+"[id]");for(var $=function(_,S){L=y[_].id,U=L+"-"+Mr();var T;Array.prototype.forEach.call(P,function(N){T=u.querySelectorAll("["+N+'*="'+L+'"]');for(var G=0,ee=T.length;G<ee;G++){var te=T[G].getAttribute(N);te&&!te.match(new RegExp('url\\("?#'+L+'"?\\)'))||T[G].setAttribute(N,"url(#"+U+")")}});for(var j=u.querySelectorAll("[*|href]"),I=[],C=0,K=j.length;C<K;C++){var H=j[C].getAttributeNS(nt,"href");H&&H.toString()==="#"+y[_].id&&I.push(j[C])}for(var re=0,R=I.length;re<R;re++)I[re].setAttributeNS(nt,"href","#"+U);y[_].id=U},d=0,m=y.length;d<m;d++)$(d)})}u.removeAttribute("xmlns:a");for(var V=u.querySelectorAll("script"),k=[],M,W,X=0,B=V.length;X<B;X++)W=V[X].getAttribute("type"),(!W||W==="application/ecmascript"||W==="application/javascript"||W==="text/javascript")&&(M=V[X].innerText||V[X].textContent,M&&k.push(M),u.removeChild(V[X]));if(k.length>0&&(t==="always"||t==="once"&&!Pt[l])){for(var ne=0,J=k.length;ne<J;ne++)new Function(k[ne])(window);Pt[l]=!0}var Y=u.querySelectorAll("style");if(Array.prototype.forEach.call(Y,function(z){z.textContent+=""}),u.setAttribute("xmlns",Fr),u.setAttribute("xmlns:xlink",nt),o(u),!e.parentNode){ue.splice(ue.indexOf(e),1),e=null,i(new Error("Parent node is null"));return}e.parentNode.replaceChild(u,e),ue.splice(ue.indexOf(e),1),e=null,i(null,u)})},Vr=function(e,t){var r=t===void 0?{}:t,s=r.afterAll,a=s===void 0?function(){}:s,o=r.afterEach,i=o===void 0?function(){}:o,l=r.beforeEach,c=l===void 0?function(){}:l,f=r.cacheRequests,u=f===void 0?!0:f,p=r.evalScripts,h=p===void 0?"never":p,g=r.httpRequestWithCredentials,v=g===void 0?!1:g,E=r.renumerateIRIElements,b=E===void 0?!0:E;if(e&&"length"in e)for(var w=0,A=0,D=e.length;A<D;A++)At(e[A],h,b,u,v,c,function(y,P){i(y,P),e&&"length"in e&&e.length===++w&&a(w)});else e?At(e,h,b,u,v,c,function(y,P){i(y,P),a(1),e=null}):a(0)},Fe={exports:{}},Ve={exports:{}},Z={};/** @license React v16.13.1
26
+ */var Tt;function $r(){if(Tt)return Me;Tt=1;var n=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,e=/^[\u000b\u0020-\u007e\u0080-\u00ff]+$/,t=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,r=/\\([\u000b\u0020-\u00ff])/g,s=/([\\"])/g,a=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;Me.format=o,Me.parse=i;function o(u){if(!u||typeof u!="object")throw new TypeError("argument obj is required");var p=u.parameters,h=u.type;if(!h||!a.test(h))throw new TypeError("invalid type");var g=h;if(p&&typeof p=="object")for(var v,E=Object.keys(p).sort(),b=0;b<E.length;b++){if(v=E[b],!t.test(v))throw new TypeError("invalid parameter name");g+="; "+v+"="+c(p[v])}return g}function i(u){if(!u)throw new TypeError("argument string is required");var p=typeof u=="object"?l(u):u;if(typeof p!="string")throw new TypeError("argument string is required to be a string");var h=p.indexOf(";"),g=h!==-1?p.slice(0,h).trim():p.trim();if(!a.test(g))throw new TypeError("invalid media type");var v=new f(g.toLowerCase());if(h!==-1){var E,b,w;for(n.lastIndex=h;b=n.exec(p);){if(b.index!==h)throw new TypeError("invalid parameter format");h+=b[0].length,E=b[1].toLowerCase(),w=b[2],w.charCodeAt(0)===34&&(w=w.slice(1,-1),w.indexOf("\\")!==-1&&(w=w.replace(r,"$1"))),v.parameters[E]=w}if(h!==p.length)throw new TypeError("invalid parameter format")}return v}function l(u){var p;if(typeof u.getHeader=="function"?p=u.getHeader("content-type"):typeof u.headers=="object"&&(p=u.headers&&u.headers["content-type"]),typeof p!="string")throw new TypeError("content-type header is missing from object");return p}function c(u){var p=String(u);if(t.test(p))return p;if(p.length>0&&!e.test(p))throw new TypeError("invalid parameter value");return'"'+p.replace(s,"\\$1")+'"'}function f(u){this.parameters=Object.create(null),this.type=u}return Me}var jr=$r(),_e=new Map,cr=function(e){return e.cloneNode(!0)},Rt=function(){return window.location.protocol==="file:"},ur=function(e,t,r){var s=new XMLHttpRequest;s.onreadystatechange=function(){try{if(!/\.svg/i.test(e)&&s.readyState===2){var a=s.getResponseHeader("Content-Type");if(!a)throw new Error("Content type not found");var o=jr.parse(a).type;if(!(o==="image/svg+xml"||o==="text/plain"))throw new Error("Invalid content type: ".concat(o))}if(s.readyState===4){if(s.status===404||s.responseXML===null)throw new Error(Rt()?"Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver.":"Unable to load SVG file: "+e);if(s.status===200||Rt()&&s.status===0)r(null,s);else throw new Error("There was a problem injecting the SVG: "+s.status+" "+s.statusText)}}catch(i){if(s.abort(),i instanceof Error)r(i,s);else throw i}},s.open("GET",e),s.withCredentials=t,s.overrideMimeType&&s.overrideMimeType("text/xml"),s.send()},ye={},Dt=function(e,t){ye[e]=ye[e]||[],ye[e].push(t)},Lr=function(e){for(var t=function(o,i){setTimeout(function(){if(Array.isArray(ye[e])){var l=_e.get(e),c=ye[e][o];l instanceof SVGSVGElement&&c(null,cr(l)),l instanceof Error&&c(l),o===ye[e].length-1&&delete ye[e]}},0)},r=0,s=ye[e].length;r<s;r++)t(r)},Ir=function(e,t,r){if(_e.has(e)){var s=_e.get(e);if(s===void 0){Dt(e,r);return}if(s instanceof SVGSVGElement){r(null,cr(s));return}}_e.set(e,void 0),Dt(e,r),ur(e,t,function(a,o){var i;a?_e.set(e,a):((i=o.responseXML)===null||i===void 0?void 0:i.documentElement)instanceof SVGSVGElement&&_e.set(e,o.responseXML.documentElement),Lr(e)})},Nr=function(e,t,r){ur(e,t,function(s,a){var o;s?r(s):((o=a.responseXML)===null||o===void 0?void 0:o.documentElement)instanceof SVGSVGElement&&r(null,a.responseXML.documentElement)})},Mr=0,Fr=function(){return++Mr},ue=[],Pt={},Vr="http://www.w3.org/2000/svg",nt="http://www.w3.org/1999/xlink",At=function(e,t,r,s,a,o,i){var l=e.getAttribute("data-src")||e.getAttribute("src");if(!l){i(new Error("Invalid data-src or src attribute"));return}if(ue.indexOf(e)!==-1){ue.splice(ue.indexOf(e),1),e=null;return}ue.push(e),e.setAttribute("src","");var c=s?Ir:Nr;c(l,a,function(f,u){if(!u){ue.splice(ue.indexOf(e),1),e=null,i(f);return}var p=e.getAttribute("id");p&&u.setAttribute("id",p);var h=e.getAttribute("title");h&&u.setAttribute("title",h);var g=e.getAttribute("width");g&&u.setAttribute("width",g);var v=e.getAttribute("height");v&&u.setAttribute("height",v);var E=Array.from(new Set(rt(rt(rt([],(u.getAttribute("class")||"").split(" "),!0),["injected-svg"],!1),(e.getAttribute("class")||"").split(" "),!0))).join(" ").trim();u.setAttribute("class",E);var b=e.getAttribute("style");b&&u.setAttribute("style",b),u.setAttribute("data-src",l);var w=[].filter.call(e.attributes,function(z){return/^data-\w[\w-]*$/.test(z.name)});if(Array.prototype.forEach.call(w,function(z){z.name&&z.value&&u.setAttribute(z.name,z.value)}),r){var A={clipPath:["clip-path"],"color-profile":["color-profile"],cursor:["cursor"],filter:["filter"],linearGradient:["fill","stroke"],marker:["marker","marker-start","marker-mid","marker-end"],mask:["mask"],path:[],pattern:["fill","stroke"],radialGradient:["fill","stroke"]},D,y,P,L,U;Object.keys(A).forEach(function(z){D=z,P=A[z],y=u.querySelectorAll(D+"[id]");for(var $=function(_,S){L=y[_].id,U=L+"-"+Fr();var T;Array.prototype.forEach.call(P,function(N){T=u.querySelectorAll("["+N+'*="'+L+'"]');for(var G=0,ee=T.length;G<ee;G++){var te=T[G].getAttribute(N);te&&!te.match(new RegExp('url\\("?#'+L+'"?\\)'))||T[G].setAttribute(N,"url(#"+U+")")}});for(var j=u.querySelectorAll("[*|href]"),I=[],k=0,K=j.length;k<K;k++){var H=j[k].getAttributeNS(nt,"href");H&&H.toString()==="#"+y[_].id&&I.push(j[k])}for(var re=0,R=I.length;re<R;re++)I[re].setAttributeNS(nt,"href","#"+U);y[_].id=U},d=0,m=y.length;d<m;d++)$(d)})}u.removeAttribute("xmlns:a");for(var V=u.querySelectorAll("script"),C=[],M,W,X=0,B=V.length;X<B;X++)W=V[X].getAttribute("type"),(!W||W==="application/ecmascript"||W==="application/javascript"||W==="text/javascript")&&(M=V[X].innerText||V[X].textContent,M&&C.push(M),u.removeChild(V[X]));if(C.length>0&&(t==="always"||t==="once"&&!Pt[l])){for(var ne=0,J=C.length;ne<J;ne++)new Function(C[ne])(window);Pt[l]=!0}var Y=u.querySelectorAll("style");if(Array.prototype.forEach.call(Y,function(z){z.textContent+=""}),u.setAttribute("xmlns",Vr),u.setAttribute("xmlns:xlink",nt),o(u),!e.parentNode){ue.splice(ue.indexOf(e),1),e=null,i(new Error("Parent node is null"));return}e.parentNode.replaceChild(u,e),ue.splice(ue.indexOf(e),1),e=null,i(null,u)})},Yr=function(e,t){var r=t===void 0?{}:t,s=r.afterAll,a=s===void 0?function(){}:s,o=r.afterEach,i=o===void 0?function(){}:o,l=r.beforeEach,c=l===void 0?function(){}:l,f=r.cacheRequests,u=f===void 0?!0:f,p=r.evalScripts,h=p===void 0?"never":p,g=r.httpRequestWithCredentials,v=g===void 0?!1:g,E=r.renumerateIRIElements,b=E===void 0?!0:E;if(e&&"length"in e)for(var w=0,A=0,D=e.length;A<D;A++)At(e[A],h,b,u,v,c,function(y,P){i(y,P),e&&"length"in e&&e.length===++w&&a(w)});else e?At(e,h,b,u,v,c,function(y,P){i(y,P),a(1),e=null}):a(0)},Fe={exports:{}},Ve={exports:{}},Z={};/** @license React v16.13.1
27
27
  * react-is.production.min.js
28
28
  *
29
29
  * Copyright (c) Facebook, Inc. and its affiliates.
30
30
  *
31
31
  * This source code is licensed under the MIT license found in the
32
32
  * LICENSE file in the root directory of this source tree.
33
- */var kt;function Yr(){if(kt)return Z;kt=1;var n=typeof Symbol=="function"&&Symbol.for,e=n?Symbol.for("react.element"):60103,t=n?Symbol.for("react.portal"):60106,r=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,o=n?Symbol.for("react.provider"):60109,i=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,c=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,u=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,E=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function A(y){if(typeof y=="object"&&y!==null){var P=y.$$typeof;switch(P){case e:switch(y=y.type,y){case l:case c:case r:case a:case s:case u:return y;default:switch(y=y&&y.$$typeof,y){case i:case f:case g:case h:case o:return y;default:return P}}case t:return P}}}function D(y){return A(y)===c}return Z.AsyncMode=l,Z.ConcurrentMode=c,Z.ContextConsumer=i,Z.ContextProvider=o,Z.Element=e,Z.ForwardRef=f,Z.Fragment=r,Z.Lazy=g,Z.Memo=h,Z.Portal=t,Z.Profiler=a,Z.StrictMode=s,Z.Suspense=u,Z.isAsyncMode=function(y){return D(y)||A(y)===l},Z.isConcurrentMode=D,Z.isContextConsumer=function(y){return A(y)===i},Z.isContextProvider=function(y){return A(y)===o},Z.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},Z.isForwardRef=function(y){return A(y)===f},Z.isFragment=function(y){return A(y)===r},Z.isLazy=function(y){return A(y)===g},Z.isMemo=function(y){return A(y)===h},Z.isPortal=function(y){return A(y)===t},Z.isProfiler=function(y){return A(y)===a},Z.isStrictMode=function(y){return A(y)===s},Z.isSuspense=function(y){return A(y)===u},Z.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===r||y===c||y===a||y===s||y===u||y===p||typeof y=="object"&&y!==null&&(y.$$typeof===g||y.$$typeof===h||y.$$typeof===o||y.$$typeof===i||y.$$typeof===f||y.$$typeof===E||y.$$typeof===b||y.$$typeof===w||y.$$typeof===v)},Z.typeOf=A,Z}var Q={};/** @license React v16.13.1
33
+ */var Ct;function Ur(){if(Ct)return Z;Ct=1;var n=typeof Symbol=="function"&&Symbol.for,e=n?Symbol.for("react.element"):60103,t=n?Symbol.for("react.portal"):60106,r=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,o=n?Symbol.for("react.provider"):60109,i=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,c=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,u=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,E=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function A(y){if(typeof y=="object"&&y!==null){var P=y.$$typeof;switch(P){case e:switch(y=y.type,y){case l:case c:case r:case a:case s:case u:return y;default:switch(y=y&&y.$$typeof,y){case i:case f:case g:case h:case o:return y;default:return P}}case t:return P}}}function D(y){return A(y)===c}return Z.AsyncMode=l,Z.ConcurrentMode=c,Z.ContextConsumer=i,Z.ContextProvider=o,Z.Element=e,Z.ForwardRef=f,Z.Fragment=r,Z.Lazy=g,Z.Memo=h,Z.Portal=t,Z.Profiler=a,Z.StrictMode=s,Z.Suspense=u,Z.isAsyncMode=function(y){return D(y)||A(y)===l},Z.isConcurrentMode=D,Z.isContextConsumer=function(y){return A(y)===i},Z.isContextProvider=function(y){return A(y)===o},Z.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},Z.isForwardRef=function(y){return A(y)===f},Z.isFragment=function(y){return A(y)===r},Z.isLazy=function(y){return A(y)===g},Z.isMemo=function(y){return A(y)===h},Z.isPortal=function(y){return A(y)===t},Z.isProfiler=function(y){return A(y)===a},Z.isStrictMode=function(y){return A(y)===s},Z.isSuspense=function(y){return A(y)===u},Z.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===r||y===c||y===a||y===s||y===u||y===p||typeof y=="object"&&y!==null&&(y.$$typeof===g||y.$$typeof===h||y.$$typeof===o||y.$$typeof===i||y.$$typeof===f||y.$$typeof===E||y.$$typeof===b||y.$$typeof===w||y.$$typeof===v)},Z.typeOf=A,Z}var Q={};/** @license React v16.13.1
34
34
  * react-is.development.js
35
35
  *
36
36
  * Copyright (c) Facebook, Inc. and its affiliates.
37
37
  *
38
38
  * This source code is licensed under the MIT license found in the
39
39
  * LICENSE file in the root directory of this source tree.
40
- */var Ct;function Ur(){return Ct||(Ct=1,process.env.NODE_ENV!=="production"&&function(){var n=typeof Symbol=="function"&&Symbol.for,e=n?Symbol.for("react.element"):60103,t=n?Symbol.for("react.portal"):60106,r=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,o=n?Symbol.for("react.provider"):60109,i=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,c=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,u=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,E=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function A(R){return typeof R=="string"||typeof R=="function"||R===r||R===c||R===a||R===s||R===u||R===p||typeof R=="object"&&R!==null&&(R.$$typeof===g||R.$$typeof===h||R.$$typeof===o||R.$$typeof===i||R.$$typeof===f||R.$$typeof===E||R.$$typeof===b||R.$$typeof===w||R.$$typeof===v)}function D(R){if(typeof R=="object"&&R!==null){var N=R.$$typeof;switch(N){case e:var G=R.type;switch(G){case l:case c:case r:case a:case s:case u:return G;default:var ee=G&&G.$$typeof;switch(ee){case i:case f:case g:case h:case o:return ee;default:return N}}case t:return N}}}var y=l,P=c,L=i,U=o,V=e,k=f,M=r,W=g,X=h,B=t,ne=a,J=s,Y=u,z=!1;function $(R){return z||(z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),d(R)||D(R)===l}function d(R){return D(R)===c}function m(R){return D(R)===i}function x(R){return D(R)===o}function _(R){return typeof R=="object"&&R!==null&&R.$$typeof===e}function S(R){return D(R)===f}function T(R){return D(R)===r}function j(R){return D(R)===g}function I(R){return D(R)===h}function C(R){return D(R)===t}function K(R){return D(R)===a}function H(R){return D(R)===s}function re(R){return D(R)===u}Q.AsyncMode=y,Q.ConcurrentMode=P,Q.ContextConsumer=L,Q.ContextProvider=U,Q.Element=V,Q.ForwardRef=k,Q.Fragment=M,Q.Lazy=W,Q.Memo=X,Q.Portal=B,Q.Profiler=ne,Q.StrictMode=J,Q.Suspense=Y,Q.isAsyncMode=$,Q.isConcurrentMode=d,Q.isContextConsumer=m,Q.isContextProvider=x,Q.isElement=_,Q.isForwardRef=S,Q.isFragment=T,Q.isLazy=j,Q.isMemo=I,Q.isPortal=C,Q.isProfiler=K,Q.isStrictMode=H,Q.isSuspense=re,Q.isValidElementType=A,Q.typeOf=D}()),Q}var $t;function ur(){return $t||($t=1,process.env.NODE_ENV==="production"?Ve.exports=Yr():Ve.exports=Ur()),Ve.exports}/*
40
+ */var kt;function Wr(){return kt||(kt=1,process.env.NODE_ENV!=="production"&&function(){var n=typeof Symbol=="function"&&Symbol.for,e=n?Symbol.for("react.element"):60103,t=n?Symbol.for("react.portal"):60106,r=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,o=n?Symbol.for("react.provider"):60109,i=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,c=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,u=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,E=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function A(R){return typeof R=="string"||typeof R=="function"||R===r||R===c||R===a||R===s||R===u||R===p||typeof R=="object"&&R!==null&&(R.$$typeof===g||R.$$typeof===h||R.$$typeof===o||R.$$typeof===i||R.$$typeof===f||R.$$typeof===E||R.$$typeof===b||R.$$typeof===w||R.$$typeof===v)}function D(R){if(typeof R=="object"&&R!==null){var N=R.$$typeof;switch(N){case e:var G=R.type;switch(G){case l:case c:case r:case a:case s:case u:return G;default:var ee=G&&G.$$typeof;switch(ee){case i:case f:case g:case h:case o:return ee;default:return N}}case t:return N}}}var y=l,P=c,L=i,U=o,V=e,C=f,M=r,W=g,X=h,B=t,ne=a,J=s,Y=u,z=!1;function $(R){return z||(z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),d(R)||D(R)===l}function d(R){return D(R)===c}function m(R){return D(R)===i}function x(R){return D(R)===o}function _(R){return typeof R=="object"&&R!==null&&R.$$typeof===e}function S(R){return D(R)===f}function T(R){return D(R)===r}function j(R){return D(R)===g}function I(R){return D(R)===h}function k(R){return D(R)===t}function K(R){return D(R)===a}function H(R){return D(R)===s}function re(R){return D(R)===u}Q.AsyncMode=y,Q.ConcurrentMode=P,Q.ContextConsumer=L,Q.ContextProvider=U,Q.Element=V,Q.ForwardRef=C,Q.Fragment=M,Q.Lazy=W,Q.Memo=X,Q.Portal=B,Q.Profiler=ne,Q.StrictMode=J,Q.Suspense=Y,Q.isAsyncMode=$,Q.isConcurrentMode=d,Q.isContextConsumer=m,Q.isContextProvider=x,Q.isElement=_,Q.isForwardRef=S,Q.isFragment=T,Q.isLazy=j,Q.isMemo=I,Q.isPortal=k,Q.isProfiler=K,Q.isStrictMode=H,Q.isSuspense=re,Q.isValidElementType=A,Q.typeOf=D}()),Q}var $t;function fr(){return $t||($t=1,process.env.NODE_ENV==="production"?Ve.exports=Ur():Ve.exports=Wr()),Ve.exports}/*
41
41
  object-assign
42
42
  (c) Sindre Sorhus
43
43
  @license MIT
44
- */var st,jt;function Wr(){if(jt)return st;jt=1;var n=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;function r(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function s(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},i=0;i<10;i++)o["_"+String.fromCharCode(i)]=i;var l=Object.getOwnPropertyNames(o).map(function(f){return o[f]});if(l.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(f){c[f]=f}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return st=s()?Object.assign:function(a,o){for(var i,l=r(a),c,f=1;f<arguments.length;f++){i=Object(arguments[f]);for(var u in i)e.call(i,u)&&(l[u]=i[u]);if(n){c=n(i);for(var p=0;p<c.length;p++)t.call(i,c[p])&&(l[c[p]]=i[c[p]])}}return l},st}var at,Lt;function vt(){if(Lt)return at;Lt=1;var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return at=n,at}var it,It;function fr(){return It||(It=1,it=Function.call.bind(Object.prototype.hasOwnProperty)),it}var ot,Nt;function Hr(){if(Nt)return ot;Nt=1;var n=function(){};if(process.env.NODE_ENV!=="production"){var e=vt(),t={},r=fr();n=function(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function s(a,o,i,l,c){if(process.env.NODE_ENV!=="production"){for(var f in a)if(r(a,f)){var u;try{if(typeof a[f]!="function"){var p=Error((l||"React class")+": "+i+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}u=a[f](o,f,l,i,null,e)}catch(g){u=g}if(u&&!(u instanceof Error)&&n((l||"React class")+": type specification of "+i+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in t)){t[u.message]=!0;var h=c?c():"";n("Failed "+i+" type: "+u.message+(h??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(t={})},ot=s,ot}var lt,Mt;function qr(){if(Mt)return lt;Mt=1;var n=ur(),e=Wr(),t=vt(),r=fr(),s=Hr(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(i){var l="Warning: "+i;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function o(){return null}return lt=function(i,l){var c=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function u(d){var m=d&&(c&&d[c]||d[f]);if(typeof m=="function")return m}var p="<<anonymous>>",h={array:b("array"),bigint:b("bigint"),bool:b("boolean"),func:b("function"),number:b("number"),object:b("object"),string:b("string"),symbol:b("symbol"),any:w(),arrayOf:A,element:D(),elementType:y(),instanceOf:P,node:k(),objectOf:U,oneOf:L,oneOfType:V,shape:W,exact:X};function g(d,m){return d===m?d!==0||1/d===1/m:d!==d&&m!==m}function v(d,m){this.message=d,this.data=m&&typeof m=="object"?m:{},this.stack=""}v.prototype=Error.prototype;function E(d){if(process.env.NODE_ENV!=="production")var m={},x=0;function _(T,j,I,C,K,H,re){if(C=C||p,H=H||I,re!==t){if(l){var R=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 R.name="Invariant Violation",R}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var N=C+":"+I;!m[N]&&x<3&&(a("You are manually calling a React.PropTypes validation function for the `"+H+"` prop on `"+C+"`. 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."),m[N]=!0,x++)}}return j[I]==null?T?j[I]===null?new v("The "+K+" `"+H+"` is marked as required "+("in `"+C+"`, but its value is `null`.")):new v("The "+K+" `"+H+"` is marked as required in "+("`"+C+"`, but its value is `undefined`.")):null:d(j,I,C,K,H)}var S=_.bind(null,!1);return S.isRequired=_.bind(null,!0),S}function b(d){function m(x,_,S,T,j,I){var C=x[_],K=J(C);if(K!==d){var H=Y(C);return new v("Invalid "+T+" `"+j+"` of type "+("`"+H+"` supplied to `"+S+"`, expected ")+("`"+d+"`."),{expectedType:d})}return null}return E(m)}function w(){return E(o)}function A(d){function m(x,_,S,T,j){if(typeof d!="function")return new v("Property `"+j+"` of component `"+S+"` has invalid PropType notation inside arrayOf.");var I=x[_];if(!Array.isArray(I)){var C=J(I);return new v("Invalid "+T+" `"+j+"` of type "+("`"+C+"` supplied to `"+S+"`, expected an array."))}for(var K=0;K<I.length;K++){var H=d(I,K,S,T,j+"["+K+"]",t);if(H instanceof Error)return H}return null}return E(m)}function D(){function d(m,x,_,S,T){var j=m[x];if(!i(j)){var I=J(j);return new v("Invalid "+S+" `"+T+"` of type "+("`"+I+"` supplied to `"+_+"`, expected a single ReactElement."))}return null}return E(d)}function y(){function d(m,x,_,S,T){var j=m[x];if(!n.isValidElementType(j)){var I=J(j);return new v("Invalid "+S+" `"+T+"` of type "+("`"+I+"` supplied to `"+_+"`, expected a single ReactElement type."))}return null}return E(d)}function P(d){function m(x,_,S,T,j){if(!(x[_]instanceof d)){var I=d.name||p,C=$(x[_]);return new v("Invalid "+T+" `"+j+"` of type "+("`"+C+"` supplied to `"+S+"`, expected ")+("instance of `"+I+"`."))}return null}return E(m)}function L(d){if(!Array.isArray(d))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("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])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function m(x,_,S,T,j){for(var I=x[_],C=0;C<d.length;C++)if(g(I,d[C]))return null;var K=JSON.stringify(d,function(re,R){var N=Y(R);return N==="symbol"?String(R):R});return new v("Invalid "+T+" `"+j+"` of value `"+String(I)+"` "+("supplied to `"+S+"`, expected one of "+K+"."))}return E(m)}function U(d){function m(x,_,S,T,j){if(typeof d!="function")return new v("Property `"+j+"` of component `"+S+"` has invalid PropType notation inside objectOf.");var I=x[_],C=J(I);if(C!=="object")return new v("Invalid "+T+" `"+j+"` of type "+("`"+C+"` supplied to `"+S+"`, expected an object."));for(var K in I)if(r(I,K)){var H=d(I,K,S,T,j+"."+K,t);if(H instanceof Error)return H}return null}return E(m)}function V(d){if(!Array.isArray(d))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var m=0;m<d.length;m++){var x=d[m];if(typeof x!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+z(x)+" at index "+m+"."),o}function _(S,T,j,I,C){for(var K=[],H=0;H<d.length;H++){var re=d[H],R=re(S,T,j,I,C,t);if(R==null)return null;R.data&&r(R.data,"expectedType")&&K.push(R.data.expectedType)}var N=K.length>0?", expected one of type ["+K.join(", ")+"]":"";return new v("Invalid "+I+" `"+C+"` supplied to "+("`"+j+"`"+N+"."))}return E(_)}function k(){function d(m,x,_,S,T){return B(m[x])?null:new v("Invalid "+S+" `"+T+"` supplied to "+("`"+_+"`, expected a ReactNode."))}return E(d)}function M(d,m,x,_,S){return new v((d||"React class")+": "+m+" type `"+x+"."+_+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+S+"`.")}function W(d){function m(x,_,S,T,j){var I=x[_],C=J(I);if(C!=="object")return new v("Invalid "+T+" `"+j+"` of type `"+C+"` "+("supplied to `"+S+"`, expected `object`."));for(var K in d){var H=d[K];if(typeof H!="function")return M(S,T,j,K,Y(H));var re=H(I,K,S,T,j+"."+K,t);if(re)return re}return null}return E(m)}function X(d){function m(x,_,S,T,j){var I=x[_],C=J(I);if(C!=="object")return new v("Invalid "+T+" `"+j+"` of type `"+C+"` "+("supplied to `"+S+"`, expected `object`."));var K=e({},x[_],d);for(var H in K){var re=d[H];if(r(d,H)&&typeof re!="function")return M(S,T,j,H,Y(re));if(!re)return new v("Invalid "+T+" `"+j+"` key `"+H+"` supplied to `"+S+"`.\nBad object: "+JSON.stringify(x[_],null," ")+`
45
- Valid keys: `+JSON.stringify(Object.keys(d),null," "));var R=re(I,H,S,T,j+"."+H,t);if(R)return R}return null}return E(m)}function B(d){switch(typeof d){case"number":case"string":case"undefined":return!0;case"boolean":return!d;case"object":if(Array.isArray(d))return d.every(B);if(d===null||i(d))return!0;var m=u(d);if(m){var x=m.call(d),_;if(m!==d.entries){for(;!(_=x.next()).done;)if(!B(_.value))return!1}else for(;!(_=x.next()).done;){var S=_.value;if(S&&!B(S[1]))return!1}}else return!1;return!0;default:return!1}}function ne(d,m){return d==="symbol"?!0:m?m["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&m instanceof Symbol:!1}function J(d){var m=typeof d;return Array.isArray(d)?"array":d instanceof RegExp?"object":ne(m,d)?"symbol":m}function Y(d){if(typeof d>"u"||d===null)return""+d;var m=J(d);if(m==="object"){if(d instanceof Date)return"date";if(d instanceof RegExp)return"regexp"}return m}function z(d){var m=Y(d);switch(m){case"array":case"object":return"an "+m;case"boolean":case"date":case"regexp":return"a "+m;default:return m}}function $(d){return!d.constructor||!d.constructor.name?p:d.constructor.name}return h.checkPropTypes=s,h.resetWarningCache=s.resetWarningCache,h.PropTypes=h,h},lt}var ct,Ft;function Kr(){if(Ft)return ct;Ft=1;var n=vt();function e(){}function t(){}return t.resetWarningCache=e,ct=function(){function r(o,i,l,c,f,u){if(u!==n){var p=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 p.name="Invariant Violation",p}}r.isRequired=r;function s(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:s,element:r,elementType:r,instanceOf:s,node:r,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:t,resetWarningCache:e};return a.PropTypes=a,a},ct}var Vt;function Br(){if(Vt)return Fe.exports;if(Vt=1,process.env.NODE_ENV!=="production"){var n=ur(),e=!0;Fe.exports=qr()(n.isElement,e)}else Fe.exports=Kr()();return Fe.exports}var ae=Br(),zr=function(e){var t=(e==null?void 0:e.ownerDocument)||document;return t.defaultView||window},Gr=function(e,t){for(var r in e)if(!(r in t))return!0;for(var s in t)if(e[s]!==t[s])return!0;return!1},Jr=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],Ye="http://www.w3.org/2000/svg",Yt="http://www.w3.org/1999/xlink",Ke=function(n){function e(){for(var r,s=arguments.length,a=new Array(s),o=0;o<s;o++)a[o]=arguments[o];return r=n.call.apply(n,[this].concat(a))||this,r.initialState={hasError:!1,isLoading:!0},r.state=r.initialState,r._isMounted=!1,r.reactWrapper=void 0,r.nonReactWrapper=void 0,r.refCallback=function(i){r.reactWrapper=i},r}kr(e,n);var t=e.prototype;return t.renderSVG=function(){var s=this;if(this.reactWrapper instanceof zr(this.reactWrapper).Node){var a=this.props,o=a.desc,i=a.evalScripts,l=a.httpRequestWithCredentials,c=a.renumerateIRIElements,f=a.src,u=a.title,p=a.useRequestCache,h=this.props.onError,g=this.props.beforeInjection,v=this.props.afterInjection,E=this.props.wrapper,b,w;E==="svg"?(b=document.createElementNS(Ye,E),b.setAttribute("xmlns",Ye),b.setAttribute("xmlns:xlink",Yt),w=document.createElementNS(Ye,E)):(b=document.createElement(E),w=document.createElement(E)),b.appendChild(w),w.dataset.src=f,this.nonReactWrapper=this.reactWrapper.appendChild(b);var A=function(L){if(s.removeSVG(),!s._isMounted){h(L);return}s.setState(function(){return{hasError:!0,isLoading:!1}},function(){h(L)})},D=function(L,U){if(L){A(L);return}s._isMounted&&s.setState(function(){return{isLoading:!1}},function(){try{v(U)}catch(V){A(V)}})},y=function(L){if(L.setAttribute("role","img"),o){var U=L.querySelector(":scope > desc");U&&L.removeChild(U);var V=document.createElement("desc");V.innerHTML=o,L.prepend(V)}if(u){var k=L.querySelector(":scope > title");k&&L.removeChild(k);var M=document.createElement("title");M.innerHTML=u,L.prepend(M)}try{g(L)}catch(W){A(W)}};Vr(w,{afterEach:D,beforeEach:y,cacheRequests:p,evalScripts:i,httpRequestWithCredentials:l,renumerateIRIElements:c})}},t.removeSVG=function(){var s;(s=this.nonReactWrapper)!=null&&s.parentNode&&(this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper),this.nonReactWrapper=null)},t.componentDidMount=function(){this._isMounted=!0,this.renderSVG()},t.componentDidUpdate=function(s){var a=this;Gr(qe({},s),this.props)&&this.setState(function(){return a.initialState},function(){a.removeSVG(),a.renderSVG()})},t.componentWillUnmount=function(){this._isMounted=!1,this.removeSVG()},t.render=function(){var s=this.props;s.afterInjection,s.beforeInjection,s.desc,s.evalScripts;var a=s.fallback;s.httpRequestWithCredentials;var o=s.loading;s.renumerateIRIElements,s.src,s.title,s.useRequestCache;var i=s.wrapper,l=Ar(s,Jr),c=i;return Ie.createElement(c,qe({},l,{ref:this.refCallback},i==="svg"?{xmlns:Ye,xmlnsXlink:Yt}:{}),this.state.isLoading&&o&&Ie.createElement(o,null),this.state.hasError&&a&&Ie.createElement(a,null))},e}(Ie.Component);Ke.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"};Ke.propTypes={afterInjection:ae.func,beforeInjection:ae.func,desc:ae.string,evalScripts:ae.oneOf(["always","once","never"]),fallback:ae.oneOfType([ae.func,ae.object,ae.string]),httpRequestWithCredentials:ae.bool,loading:ae.oneOfType([ae.func,ae.object,ae.string]),onError:ae.func,renumerateIRIElements:ae.bool,src:ae.string.isRequired,title:ae.string,useRequestCache:ae.bool,wrapper:ae.oneOf(["div","span","svg"])};const Re={"smp-icon":"_smp-icon_ttsft_1","smp-icon-rotated":"_smp-icon-rotated_ttsft_15","smp-icon-base":"_smp-icon-base_ttsft_19","smp-icon-interactable":"_smp-icon-interactable_ttsft_22","smp-icon-danger":"_smp-icon-danger_ttsft_33","smp-icon-warning":"_smp-icon-warning_ttsft_37","smp-icon-onDanger":"_smp-icon-onDanger_ttsft_45","smp-icon-onPrimary":"_smp-icon-onPrimary_ttsft_49","smp-icon-spin":"_smp-icon-spin_ttsft_53"};let ht={assets:"/"};const Xr=n=>{ht={...ht,...n}},Ut=n=>`${ht.assets}/${n}`.replace(/\/+/g,"/"),me=F.memo(({icon:n,width:e,height:t,placeholderIcon:r,color:s,disabled:a,state:o="base",rotated:i=!1,onClick:l,isInteractable:c=!1,spin:f=!1})=>{const[u,p]=F.useState(n),h=n.indexOf(".")>-1||n.indexOf("/")>-1||n.indexOf("\\")>-1,g=Ut(`assets/svg/${n}.svg`),v=Ut(`assets/svg/${r}.svg`),E={svg:`${Re["smp-icon"]} ${o?Re[`smp-icon-${o}`]:""} ${i?Re["smp-icon-rotated"]:""} ${c?Re["smp-icon-interactable"]:""} ${f?Re["smp-icon-spin"]:""}`},b=()=>{!a&&l&&l()};return O.jsx(O.Fragment,{children:h?O.jsx("img",{src:u,width:e||"16px",height:t||"auto",alt:n||"image",onError:()=>p(v)}):O.jsx(Ke,{src:g,fallback:()=>O.jsx(Ke,{src:v,wrapper:"svg"}),width:e||"1rem",height:t||"1rem",wrapper:"svg",title:n,role:"application",fill:s,"aria-disabled":a,className:E.svg,onClick:b})})}),De={"smp-dash-list":"_smp-dash-list_ajkcc_1","smp-dash-list-fill-space":"_smp-dash-list-fill-space_ajkcc_25","smp-dash-list-horizontal":"_smp-dash-list-horizontal_ajkcc_30","smp-layout-1":"_smp-layout-1_ajkcc_34","smp-layout-2":"_smp-layout-2_ajkcc_38","smp-layout-1__descr":"_smp-layout-1__descr_ajkcc_67","smp-layout-2__descr":"_smp-layout-2__descr_ajkcc_68","smp-layout-1__value":"_smp-layout-1__value_ajkcc_76","smp-layout-2__value":"_smp-layout-2__value_ajkcc_77","smp-layout-2__icon":"_smp-layout-2__icon_ajkcc_84"},q=n=>typeof n=="string",Pe=()=>{let n,e;const t=new Promise((r,s)=>{n=r,e=s});return t.resolve=n,t.reject=e,t},Wt=n=>n==null?"":""+n,Zr=(n,e,t)=>{n.forEach(r=>{e[r]&&(t[r]=e[r])})},Qr=/###/g,Ht=n=>n&&n.indexOf("###")>-1?n.replace(Qr,"."):n,qt=n=>!n||q(n),Ce=(n,e,t)=>{const r=q(e)?e.split("."):e;let s=0;for(;s<r.length-1;){if(qt(n))return{};const a=Ht(r[s]);!n[a]&&t&&(n[a]=new t),Object.prototype.hasOwnProperty.call(n,a)?n=n[a]:n={},++s}return qt(n)?{}:{obj:n,k:Ht(r[s])}},Kt=(n,e,t)=>{const{obj:r,k:s}=Ce(n,e,Object);if(r!==void 0||e.length===1){r[s]=t;return}let a=e[e.length-1],o=e.slice(0,e.length-1),i=Ce(n,o,Object);for(;i.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),i=Ce(n,o,Object),i!=null&&i.obj&&typeof i.obj[`${i.k}.${a}`]<"u"&&(i.obj=void 0);i.obj[`${i.k}.${a}`]=t},en=(n,e,t,r)=>{const{obj:s,k:a}=Ce(n,e,Object);s[a]=s[a]||[],s[a].push(t)},Be=(n,e)=>{const{obj:t,k:r}=Ce(n,e);if(t&&Object.prototype.hasOwnProperty.call(t,r))return t[r]},tn=(n,e,t)=>{const r=Be(n,t);return r!==void 0?r:Be(e,t)},dr=(n,e,t)=>{for(const r in e)r!=="__proto__"&&r!=="constructor"&&(r in n?q(n[r])||n[r]instanceof String||q(e[r])||e[r]instanceof String?t&&(n[r]=e[r]):dr(n[r],e[r],t):n[r]=e[r]);return n},Se=n=>n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var rn={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const nn=n=>q(n)?n.replace(/[&<>"'\/]/g,e=>rn[e]):n;class sn{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(t!==void 0)return t;const r=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,r),this.regExpQueue.push(e),r}}const an=[" ",",","?","!",";"],on=new sn(20),ln=(n,e,t)=>{e=e||"",t=t||"";const r=an.filter(o=>e.indexOf(o)<0&&t.indexOf(o)<0);if(r.length===0)return!0;const s=on.getRegExp(`(${r.map(o=>o==="?"?"\\?":o).join("|")})`);let a=!s.test(n);if(!a){const o=n.indexOf(t);o>0&&!s.test(n.substring(0,o))&&(a=!0)}return a},mt=(n,e,t=".")=>{if(!n)return;if(n[e])return Object.prototype.hasOwnProperty.call(n,e)?n[e]:void 0;const r=e.split(t);let s=n;for(let a=0;a<r.length;){if(!s||typeof s!="object")return;let o,i="";for(let l=a;l<r.length;++l)if(l!==a&&(i+=t),i+=r[l],o=s[i],o!==void 0){if(["string","number","boolean"].indexOf(typeof o)>-1&&l<r.length-1)continue;a+=l-a+1;break}s=o}return s},ze=n=>n==null?void 0:n.replace("_","-"),cn={type:"logger",log(n){this.output("log",n)},warn(n){this.output("warn",n)},error(n){this.output("error",n)},output(n,e){var t,r;(r=(t=console==null?void 0:console[n])==null?void 0:t.apply)==null||r.call(t,console,e)}};class Ge{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||cn,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,r,s){return s&&!this.debug?null:(q(e[0])&&(e[0]=`${r}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new Ge(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new Ge(this.logger,e)}}var pe=new Ge;class tt{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const s=this.observers[r].get(t)||0;this.observers[r].set(t,s+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([s,a])=>{for(let o=0;o<a;o++)s(...t)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([s,a])=>{for(let o=0;o<a;o++)s.apply(s,[e,...t])})}}class Bt extends tt{constructor(e,t={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,r,s={}){var c,f;const a=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,o=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure;let i;e.indexOf(".")>-1?i=e.split("."):(i=[e,t],r&&(Array.isArray(r)?i.push(...r):q(r)&&a?i.push(...r.split(a)):i.push(r)));const l=Be(this.data,i);return!l&&!t&&!r&&e.indexOf(".")>-1&&(e=i[0],t=i[1],r=i.slice(2).join(".")),l||!o||!q(r)?l:mt((f=(c=this.data)==null?void 0:c[e])==null?void 0:f[t],r,a)}addResource(e,t,r,s,a={silent:!1}){const o=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator;let i=[e,t];r&&(i=i.concat(o?r.split(o):r)),e.indexOf(".")>-1&&(i=e.split("."),s=t,t=i[1]),this.addNamespaces(t),Kt(this.data,i,s),a.silent||this.emit("added",e,t,r,s)}addResources(e,t,r,s={silent:!1}){for(const a in r)(q(r[a])||Array.isArray(r[a]))&&this.addResource(e,t,a,r[a],{silent:!0});s.silent||this.emit("added",e,t,r)}addResourceBundle(e,t,r,s,a,o={silent:!1,skipCopy:!1}){let i=[e,t];e.indexOf(".")>-1&&(i=e.split("."),s=r,r=t,t=i[1]),this.addNamespaces(t);let l=Be(this.data,i)||{};o.skipCopy||(r=JSON.parse(JSON.stringify(r))),s?dr(l,r,a):l={...l,...r},Kt(this.data,i,l),o.silent||this.emit("added",e,t,r)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(s=>t[s]&&Object.keys(t[s]).length>0)}toJSON(){return this.data}}var pr={processors:{},addPostProcessor(n){this.processors[n.name]=n},handle(n,e,t,r,s){return n.forEach(a=>{var o;e=((o=this.processors[a])==null?void 0:o.process(e,t,r,s))??e}),e}};const zt={},Gt=n=>!q(n)&&typeof n!="boolean"&&typeof n!="number";class Je extends tt{constructor(e,t={}){super(),Zr(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=pe.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){const r={...t};if(e==null)return!1;const s=this.resolve(e,r);return(s==null?void 0:s.res)!==void 0}extractFromKey(e,t){let r=t.nsSeparator!==void 0?t.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const s=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator;let a=t.ns||this.options.defaultNS||[];const o=r&&e.indexOf(r)>-1,i=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!ln(e,r,s);if(o&&!i){const l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:q(a)?[a]:a};const c=e.split(r);(r!==s||r===s&&this.options.ns.indexOf(c[0])>-1)&&(a=c.shift()),e=c.join(s)}return{key:e,namespaces:q(a)?[a]:a}}translate(e,t,r){let s=typeof t=="object"?{...t}:t;if(typeof s!="object"&&this.options.overloadTranslationOptionHandler&&(s=this.options.overloadTranslationOptionHandler(arguments)),typeof options=="object"&&(s={...s}),s||(s={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const a=s.returnDetails!==void 0?s.returnDetails:this.options.returnDetails,o=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,{key:i,namespaces:l}=this.extractFromKey(e[e.length-1],s),c=l[l.length-1];let f=s.nsSeparator!==void 0?s.nsSeparator:this.options.nsSeparator;f===void 0&&(f=":");const u=s.lng||this.language,p=s.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((u==null?void 0:u.toLowerCase())==="cimode")return p?a?{res:`${c}${f}${i}`,usedKey:i,exactUsedKey:i,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(s)}:`${c}${f}${i}`:a?{res:i,usedKey:i,exactUsedKey:i,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(s)}:i;const h=this.resolve(e,s);let g=h==null?void 0:h.res;const v=(h==null?void 0:h.usedKey)||i,E=(h==null?void 0:h.exactUsedKey)||i,b=["[object Number]","[object Function]","[object RegExp]"],w=s.joinArrays!==void 0?s.joinArrays:this.options.joinArrays,A=!this.i18nFormat||this.i18nFormat.handleAsObject,D=s.count!==void 0&&!q(s.count),y=Je.hasDefaultValue(s),P=D?this.pluralResolver.getSuffix(u,s.count,s):"",L=s.ordinal&&D?this.pluralResolver.getSuffix(u,s.count,{ordinal:!1}):"",U=D&&!s.ordinal&&s.count===0,V=U&&s[`defaultValue${this.options.pluralSeparator}zero`]||s[`defaultValue${P}`]||s[`defaultValue${L}`]||s.defaultValue;let k=g;A&&!g&&y&&(k=V);const M=Gt(k),W=Object.prototype.toString.apply(k);if(A&&k&&M&&b.indexOf(W)<0&&!(q(w)&&Array.isArray(k))){if(!s.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const X=this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,k,{...s,ns:l}):`key '${i} (${this.language})' returned an object instead of string.`;return a?(h.res=X,h.usedParams=this.getUsedParamsDetails(s),h):X}if(o){const X=Array.isArray(k),B=X?[]:{},ne=X?E:v;for(const J in k)if(Object.prototype.hasOwnProperty.call(k,J)){const Y=`${ne}${o}${J}`;y&&!g?B[J]=this.translate(Y,{...s,defaultValue:Gt(V)?V[J]:void 0,joinArrays:!1,ns:l}):B[J]=this.translate(Y,{...s,joinArrays:!1,ns:l}),B[J]===Y&&(B[J]=k[J])}g=B}}else if(A&&q(w)&&Array.isArray(g))g=g.join(w),g&&(g=this.extendTranslation(g,e,s,r));else{let X=!1,B=!1;!this.isValidLookup(g)&&y&&(X=!0,g=V),this.isValidLookup(g)||(B=!0,g=i);const J=(s.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&B?void 0:g,Y=y&&V!==g&&this.options.updateMissing;if(B||X||Y){if(this.logger.log(Y?"updateKey":"missingKey",u,c,i,Y?V:g),o){const m=this.resolve(i,{...s,keySeparator:!1});m&&m.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 z=[];const $=this.languageUtils.getFallbackCodes(this.options.fallbackLng,s.lng||this.language);if(this.options.saveMissingTo==="fallback"&&$&&$[0])for(let m=0;m<$.length;m++)z.push($[m]);else this.options.saveMissingTo==="all"?z=this.languageUtils.toResolveHierarchy(s.lng||this.language):z.push(s.lng||this.language);const d=(m,x,_)=>{var T;const S=y&&_!==g?_:J;this.options.missingKeyHandler?this.options.missingKeyHandler(m,c,x,S,Y,s):(T=this.backendConnector)!=null&&T.saveMissing&&this.backendConnector.saveMissing(m,c,x,S,Y,s),this.emit("missingKey",m,c,x,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&D?z.forEach(m=>{const x=this.pluralResolver.getSuffixes(m,s);U&&s[`defaultValue${this.options.pluralSeparator}zero`]&&x.indexOf(`${this.options.pluralSeparator}zero`)<0&&x.push(`${this.options.pluralSeparator}zero`),x.forEach(_=>{d([m],i+_,s[`defaultValue${_}`]||V)})}):d(z,i,V))}g=this.extendTranslation(g,e,s,h,r),B&&g===i&&this.options.appendNamespaceToMissingKey&&(g=`${c}${f}${i}`),(B||X)&&this.options.parseMissingKeyHandler&&(g=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}${f}${i}`:i,X?g:void 0,s))}return a?(h.res=g,h.usedParams=this.getUsedParamsDetails(s),h):g}extendTranslation(e,t,r,s,a){var l,c;if((l=this.i18nFormat)!=null&&l.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const f=q(e)&&(((c=r==null?void 0:r.interpolation)==null?void 0:c.skipOnVariables)!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let u;if(f){const h=e.match(this.interpolator.nestingRegexp);u=h&&h.length}let p=r.replace&&!q(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(p={...this.options.interpolation.defaultVariables,...p}),e=this.interpolator.interpolate(e,p,r.lng||this.language||s.usedLng,r),f){const h=e.match(this.interpolator.nestingRegexp),g=h&&h.length;u<g&&(r.nest=!1)}!r.lng&&s&&s.res&&(r.lng=this.language||s.usedLng),r.nest!==!1&&(e=this.interpolator.nest(e,(...h)=>(a==null?void 0:a[0])===h[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${h[0]} in key: ${t[0]}`),null):this.translate(...h,t),r)),r.interpolation&&this.interpolator.reset()}const o=r.postProcess||this.options.postProcess,i=q(o)?[o]:o;return e!=null&&(i!=null&&i.length)&&r.applyPostProcessor!==!1&&(e=pr.handle(i,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...s,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),e}resolve(e,t={}){let r,s,a,o,i;return q(e)&&(e=[e]),e.forEach(l=>{if(this.isValidLookup(r))return;const c=this.extractFromKey(l,t),f=c.key;s=f;let u=c.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));const p=t.count!==void 0&&!q(t.count),h=p&&!t.ordinal&&t.count===0,g=t.context!==void 0&&(q(t.context)||typeof t.context=="number")&&t.context!=="",v=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);u.forEach(E=>{var b,w;this.isValidLookup(r)||(i=E,!zt[`${v[0]}-${E}`]&&((b=this.utils)!=null&&b.hasLoadedNamespace)&&!((w=this.utils)!=null&&w.hasLoadedNamespace(i))&&(zt[`${v[0]}-${E}`]=!0,this.logger.warn(`key "${s}" for languages "${v.join(", ")}" won't get resolved as namespace "${i}" 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!!!")),v.forEach(A=>{var P;if(this.isValidLookup(r))return;o=A;const D=[f];if((P=this.i18nFormat)!=null&&P.addLookupKeys)this.i18nFormat.addLookupKeys(D,f,A,E,t);else{let L;p&&(L=this.pluralResolver.getSuffix(A,t.count,t));const U=`${this.options.pluralSeparator}zero`,V=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(D.push(f+L),t.ordinal&&L.indexOf(V)===0&&D.push(f+L.replace(V,this.options.pluralSeparator)),h&&D.push(f+U)),g){const k=`${f}${this.options.contextSeparator}${t.context}`;D.push(k),p&&(D.push(k+L),t.ordinal&&L.indexOf(V)===0&&D.push(k+L.replace(V,this.options.pluralSeparator)),h&&D.push(k+U))}}let y;for(;y=D.pop();)this.isValidLookup(r)||(a=y,r=this.getResource(A,E,y,t))}))})}),{res:r,usedKey:s,exactUsedKey:a,usedLng:o,usedNS:i}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,t,r,s={}){var a;return(a=this.i18nFormat)!=null&&a.getResource?this.i18nFormat.getResource(e,t,r,s):this.resourceStore.getResource(e,t,r,s)}getUsedParamsDetails(e={}){const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=e.replace&&!q(e.replace);let s=r?e.replace:e;if(r&&typeof e.count<"u"&&(s.count=e.count),this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),!r){s={...s};for(const a of t)delete s[a]}return s}static hasDefaultValue(e){const t="defaultValue";for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t===r.substring(0,t.length)&&e[r]!==void 0)return!0;return!1}}class Jt{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=pe.create("languageUtils")}getScriptPartFromCode(e){if(e=ze(e),!e||e.indexOf("-")<0)return null;const t=e.split("-");return t.length===2||(t.pop(),t[t.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(e=ze(e),!e||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(q(e)&&e.indexOf("-")>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(r=>{if(t)return;const s=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(s))&&(t=s)}),!t&&this.options.supportedLngs&&e.forEach(r=>{if(t)return;const s=this.getScriptPartFromCode(r);if(this.isSupportedCode(s))return t=s;const a=this.getLanguagePartFromCode(r);if(this.isSupportedCode(a))return t=a;t=this.options.supportedLngs.find(o=>{if(o===a)return o;if(!(o.indexOf("-")<0&&a.indexOf("-")<0)&&(o.indexOf("-")>0&&a.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===a||o.indexOf(a)===0&&a.length>1))return o})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if(typeof e=="function"&&(e=e(t)),q(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let r=e[t];return r||(r=e[this.getScriptPartFromCode(t)]),r||(r=e[this.formatLanguageCode(t)]),r||(r=e[this.getLanguagePartFromCode(t)]),r||(r=e.default),r||[]}toResolveHierarchy(e,t){const r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),s=[],a=o=>{o&&(this.isSupportedCode(o)?s.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return q(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(e))):q(e)&&a(this.formatLanguageCode(e)),r.forEach(o=>{s.indexOf(o)<0&&a(this.formatLanguageCode(o))}),s}}const Xt={zero:0,one:1,two:2,few:3,many:4,other:5},Zt={select:n=>n===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class un{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=pe.create("pluralResolver"),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){const r=ze(e==="dev"?"en":e),s=t.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:r,type:s});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let o;try{o=new Intl.PluralRules(r,{type:s})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),Zt;if(!e.match(/-|_/))return Zt;const l=this.languageUtils.getLanguagePartFromCode(e);o=this.getRule(l,t)}return this.pluralRulesCache[a]=o,o}needsPlural(e,t={}){let r=this.getRule(e,t);return r||(r=this.getRule("dev",t)),(r==null?void 0:r.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(e,t,r={}){return this.getSuffixes(e,r).map(s=>`${t}${s}`)}getSuffixes(e,t={}){let r=this.getRule(e,t);return r||(r=this.getRule("dev",t)),r?r.resolvedOptions().pluralCategories.sort((s,a)=>Xt[s]-Xt[a]).map(s=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${s}`):[]}getSuffix(e,t,r={}){const s=this.getRule(e,r);return s?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${s.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,r))}}const Qt=(n,e,t,r=".",s=!0)=>{let a=tn(n,e,t);return!a&&s&&q(t)&&(a=mt(n,t,r),a===void 0&&(a=mt(e,t,r))),a},ut=n=>n.replace(/\$/g,"$$$$");class fn{constructor(e={}){var t;this.logger=pe.create("interpolator"),this.options=e,this.format=((t=e==null?void 0:e.interpolation)==null?void 0:t.format)||(r=>r),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:r,useRawValueToEscape:s,prefix:a,prefixEscaped:o,suffix:i,suffixEscaped:l,formatSeparator:c,unescapeSuffix:f,unescapePrefix:u,nestingPrefix:p,nestingPrefixEscaped:h,nestingSuffix:g,nestingSuffixEscaped:v,nestingOptionsSeparator:E,maxReplaces:b,alwaysFormat:w}=e.interpolation;this.escape=t!==void 0?t:nn,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=s!==void 0?s:!1,this.prefix=a?Se(a):o||"{{",this.suffix=i?Se(i):l||"}}",this.formatSeparator=c||",",this.unescapePrefix=f?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":f||"",this.nestingPrefix=p?Se(p):h||Se("$t("),this.nestingSuffix=g?Se(g):v||Se(")"),this.nestingOptionsSeparator=E||",",this.maxReplaces=b||1e3,this.alwaysFormat=w!==void 0?w:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(t,r)=>(t==null?void 0:t.source)===r?(t.lastIndex=0,t):new RegExp(r,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,r,s){var h;let a,o,i;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=g=>{if(g.indexOf(this.formatSeparator)<0){const w=Qt(t,l,g,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(w,void 0,r,{...s,...t,interpolationkey:g}):w}const v=g.split(this.formatSeparator),E=v.shift().trim(),b=v.join(this.formatSeparator).trim();return this.format(Qt(t,l,E,this.options.keySeparator,this.options.ignoreJSONStructure),b,r,{...s,...t,interpolationkey:E})};this.resetRegExp();const f=(s==null?void 0:s.missingInterpolationHandler)||this.options.missingInterpolationHandler,u=((h=s==null?void 0:s.interpolation)==null?void 0:h.skipOnVariables)!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:g=>ut(g)},{regex:this.regexp,safeValue:g=>this.escapeValue?ut(this.escape(g)):ut(g)}].forEach(g=>{for(i=0;a=g.regex.exec(e);){const v=a[1].trim();if(o=c(v),o===void 0)if(typeof f=="function"){const b=f(e,a,s);o=q(b)?b:""}else if(s&&Object.prototype.hasOwnProperty.call(s,v))o="";else if(u){o=a[0];continue}else this.logger.warn(`missed to pass in variable ${v} for interpolating ${e}`),o="";else!q(o)&&!this.useRawValueToEscape&&(o=Wt(o));const E=g.safeValue(o);if(e=e.replace(a[0],E),u?(g.regex.lastIndex+=o.length,g.regex.lastIndex-=a[0].length):g.regex.lastIndex=0,i++,i>=this.maxReplaces)break}}),e}nest(e,t,r={}){let s,a,o;const i=(l,c)=>{const f=this.nestingOptionsSeparator;if(l.indexOf(f)<0)return l;const u=l.split(new RegExp(`${f}[ ]*{`));let p=`{${u[1]}`;l=u[0],p=this.interpolate(p,o);const h=p.match(/'/g),g=p.match(/"/g);(((h==null?void 0:h.length)??0)%2===0&&!g||g.length%2!==0)&&(p=p.replace(/'/g,'"'));try{o=JSON.parse(p),c&&(o={...c,...o})}catch(v){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,v),`${l}${f}${p}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,l};for(;s=this.nestingRegexp.exec(e);){let l=[];o={...r},o=o.replace&&!q(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let c=!1;if(s[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(s[1])){const f=s[1].split(this.formatSeparator).map(u=>u.trim());s[1]=f.shift(),l=f,c=!0}if(a=t(i.call(this,s[1].trim(),o),o),a&&s[0]===e&&!q(a))return a;q(a)||(a=Wt(a)),a||(this.logger.warn(`missed to resolve ${s[1]} for nesting ${e}`),a=""),c&&(a=l.reduce((f,u)=>this.format(f,u,r.lng,{...r,interpolationkey:s[1].trim()}),a.trim())),e=e.replace(s[0],a),this.regexp.lastIndex=0}return e}}const dn=n=>{let e=n.toLowerCase().trim();const t={};if(n.indexOf("(")>-1){const r=n.split("(");e=r[0].toLowerCase().trim();const s=r[1].substring(0,r[1].length-1);e==="currency"&&s.indexOf(":")<0?t.currency||(t.currency=s.trim()):e==="relativetime"&&s.indexOf(":")<0?t.range||(t.range=s.trim()):s.split(";").forEach(o=>{if(o){const[i,...l]=o.split(":"),c=l.join(":").trim().replace(/^'+|'+$/g,""),f=i.trim();t[f]||(t[f]=c),c==="false"&&(t[f]=!1),c==="true"&&(t[f]=!0),isNaN(c)||(t[f]=parseInt(c,10))}})}return{formatName:e,formatOptions:t}},Ee=n=>{const e={};return(t,r,s)=>{let a=s;s&&s.interpolationkey&&s.formatParams&&s.formatParams[s.interpolationkey]&&s[s.interpolationkey]&&(a={...a,[s.interpolationkey]:void 0});const o=r+JSON.stringify(a);let i=e[o];return i||(i=n(ze(r),s),e[o]=i),i(t)}};class pn{constructor(e={}){this.logger=pe.create("formatter"),this.options=e,this.formats={number:Ee((t,r)=>{const s=new Intl.NumberFormat(t,{...r});return a=>s.format(a)}),currency:Ee((t,r)=>{const s=new Intl.NumberFormat(t,{...r,style:"currency"});return a=>s.format(a)}),datetime:Ee((t,r)=>{const s=new Intl.DateTimeFormat(t,{...r});return a=>s.format(a)}),relativetime:Ee((t,r)=>{const s=new Intl.RelativeTimeFormat(t,{...r});return a=>s.format(a,r.range||"day")}),list:Ee((t,r)=>{const s=new Intl.ListFormat(t,{...r});return a=>s.format(a)})},this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=Ee(t)}format(e,t,r,s={}){const a=t.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(i=>i.indexOf(")")>-1)){const i=a.findIndex(l=>l.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,i)].join(this.formatSeparator)}return a.reduce((i,l)=>{var u;const{formatName:c,formatOptions:f}=dn(l);if(this.formats[c]){let p=i;try{const h=((u=s==null?void 0:s.formatParams)==null?void 0:u[s.interpolationkey])||{},g=h.locale||h.lng||s.locale||s.lng||r;p=this.formats[c](i,g,{...f,...s,...h})}catch(h){this.logger.warn(h)}return p}else this.logger.warn(`there was no format function for ${c}`);return i},e)}}const hn=(n,e)=>{n.pending[e]!==void 0&&(delete n.pending[e],n.pendingCount--)};class mn extends tt{constructor(e,t,r,s={}){var a,o;super(),this.backend=e,this.store=t,this.services=r,this.languageUtils=r.languageUtils,this.options=s,this.logger=pe.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=s.maxParallelReads||10,this.readingCalls=0,this.maxRetries=s.maxRetries>=0?s.maxRetries:5,this.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,this.state={},this.queue=[],(o=(a=this.backend)==null?void 0:a.init)==null||o.call(a,r,s.backend,s)}queueLoad(e,t,r,s){const a={},o={},i={},l={};return e.forEach(c=>{let f=!0;t.forEach(u=>{const p=`${c}|${u}`;!r.reload&&this.store.hasResourceBundle(c,u)?this.state[p]=2:this.state[p]<0||(this.state[p]===1?o[p]===void 0&&(o[p]=!0):(this.state[p]=1,f=!1,o[p]===void 0&&(o[p]=!0),a[p]===void 0&&(a[p]=!0),l[u]===void 0&&(l[u]=!0)))}),f||(i[c]=!0)}),(Object.keys(a).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(a),pending:Object.keys(o),toLoadLanguages:Object.keys(i),toLoadNamespaces:Object.keys(l)}}loaded(e,t,r){const s=e.split("|"),a=s[0],o=s[1];t&&this.emit("failedLoading",a,o,t),!t&&r&&this.store.addResourceBundle(a,o,r,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&r&&(this.state[e]=0);const i={};this.queue.forEach(l=>{en(l.loaded,[a],o),hn(l,e),t&&l.errors.push(t),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(c=>{i[c]||(i[c]={});const f=l.loaded[c];f.length&&f.forEach(u=>{i[c][u]===void 0&&(i[c][u]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",i),this.queue=this.queue.filter(l=>!l.done)}read(e,t,r,s=0,a=this.retryTimeout,o){if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:r,tried:s,wait:a,callback:o});return}this.readingCalls++;const i=(c,f)=>{if(this.readingCalls--,this.waitingReads.length>0){const u=this.waitingReads.shift();this.read(u.lng,u.ns,u.fcName,u.tried,u.wait,u.callback)}if(c&&f&&s<this.maxRetries){setTimeout(()=>{this.read.call(this,e,t,r,s+1,a*2,o)},a);return}o(c,f)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const c=l(e,t);c&&typeof c.then=="function"?c.then(f=>i(null,f)).catch(i):i(null,c)}catch(c){i(c)}return}return l(e,t,i)}prepareLoading(e,t,r={},s){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),s&&s();q(e)&&(e=this.languageUtils.toResolveHierarchy(e)),q(t)&&(t=[t]);const a=this.queueLoad(e,t,r,s);if(!a.toLoad.length)return a.pending.length||s(),null;a.toLoad.forEach(o=>{this.loadOne(o)})}load(e,t,r){this.prepareLoading(e,t,{},r)}reload(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}loadOne(e,t=""){const r=e.split("|"),s=r[0],a=r[1];this.read(s,a,"read",void 0,void 0,(o,i)=>{o&&this.logger.warn(`${t}loading namespace ${a} for language ${s} failed`,o),!o&&i&&this.logger.log(`${t}loaded namespace ${a} for language ${s}`,i),this.loaded(e,o,i)})}saveMissing(e,t,r,s,a,o={},i=()=>{}){var l,c,f,u,p;if((c=(l=this.services)==null?void 0:l.utils)!=null&&c.hasLoadedNamespace&&!((u=(f=this.services)==null?void 0:f.utils)!=null&&u.hasLoadedNamespace(t))){this.logger.warn(`did not save key "${r}" as the namespace "${t}" 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(!(r==null||r==="")){if((p=this.backend)!=null&&p.create){const h={...o,isUpdate:a},g=this.backend.create.bind(this.backend);if(g.length<6)try{let v;g.length===5?v=g(e,t,r,s,h):v=g(e,t,r,s),v&&typeof v.then=="function"?v.then(E=>i(null,E)).catch(i):i(null,v)}catch(v){i(v)}else g(e,t,r,s,i,h)}!e||!e[0]||this.store.addResource(e[0],t,r,s)}}}const er=()=>({debug:!1,initAsync:!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:n=>{let e={};if(typeof n[1]=="object"&&(e=n[1]),q(n[1])&&(e.defaultValue=n[1]),q(n[2])&&(e.tDescription=n[2]),typeof n[2]=="object"||typeof n[3]=="object"){const t=n[3]||n[2];Object.keys(t).forEach(r=>{e[r]=t[r]})}return e},interpolation:{escapeValue:!0,format:n=>n,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),tr=n=>{var e,t;return q(n.ns)&&(n.ns=[n.ns]),q(n.fallbackLng)&&(n.fallbackLng=[n.fallbackLng]),q(n.fallbackNS)&&(n.fallbackNS=[n.fallbackNS]),((t=(e=n.supportedLngs)==null?void 0:e.indexOf)==null?void 0:t.call(e,"cimode"))<0&&(n.supportedLngs=n.supportedLngs.concat(["cimode"])),typeof n.initImmediate=="boolean"&&(n.initAsync=n.initImmediate),n},Ue=()=>{},gn=n=>{Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach(t=>{typeof n[t]=="function"&&(n[t]=n[t].bind(n))})};class je extends tt{constructor(e={},t){if(super(),this.options=tr(e),this.services={},this.logger=pe,this.modules={external:[]},gn(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,typeof e=="function"&&(t=e,e={}),e.defaultNS==null&&e.ns&&(q(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const r=er();this.options={...r,...this.options,...tr(e)},this.options.interpolation={...r.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator);const s=c=>c?typeof c=="function"?new c:c:null;if(!this.options.isClone){this.modules.logger?pe.init(s(this.modules.logger),this.options):pe.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:c=pn;const f=new Jt(this.options);this.store=new Bt(this.options.resources,this.options);const u=this.services;u.logger=pe,u.resourceStore=this.store,u.languageUtils=f,u.pluralResolver=new un(f,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(u.formatter=s(c),u.formatter.init(u,this.options),this.options.interpolation.format=u.formatter.format.bind(u.formatter)),u.interpolator=new fn(this.options),u.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},u.backendConnector=new mn(s(this.modules.backend),u.resourceStore,u,this.options),u.backendConnector.on("*",(p,...h)=>{this.emit(p,...h)}),this.modules.languageDetector&&(u.languageDetector=s(this.modules.languageDetector),u.languageDetector.init&&u.languageDetector.init(u,this.options.detection,this.options)),this.modules.i18nFormat&&(u.i18nFormat=s(this.modules.i18nFormat),u.i18nFormat.init&&u.i18nFormat.init(this)),this.translator=new Je(this.services,this.options),this.translator.on("*",(p,...h)=>{this.emit(p,...h)}),this.modules.external.forEach(p=>{p.init&&p.init(this)})}if(this.format=this.options.interpolation.format,t||(t=Ue),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!=="dev"&&(this.options.lng=c[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(c=>{this[c]=(...f)=>this.store[c](...f)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=(...f)=>(this.store[c](...f),this)});const i=Pe(),l=()=>{const c=(f,u)=>{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),i.resolve(u),t(f,u)};if(this.languages&&!this.isInitialized)return c(null,this.t.bind(this));this.changeLanguage(this.options.lng,c)};return this.options.resources||!this.options.initAsync?l():setTimeout(l,0),i}loadResources(e,t=Ue){var a,o;let r=t;const s=q(e)?e:this.language;if(typeof e=="function"&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if((s==null?void 0:s.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const i=[],l=c=>{if(!c||c==="cimode")return;this.services.languageUtils.toResolveHierarchy(c).forEach(u=>{u!=="cimode"&&i.indexOf(u)<0&&i.push(u)})};s?l(s):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(f=>l(f)),(o=(a=this.options.preload)==null?void 0:a.forEach)==null||o.call(a,c=>l(c)),this.services.backendConnector.load(i,this.options.ns,c=>{!c&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(c)})}else r(null)}reloadResources(e,t,r){const s=Pe();return typeof e=="function"&&(r=e,e=void 0),typeof t=="function"&&(r=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),r||(r=Ue),this.services.backendConnector.reload(e,t,a=>{s.resolve(),r(a)}),s}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&pr.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1)){for(let t=0;t<this.languages.length;t++){const r=this.languages[t];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;const r=Pe();this.emit("languageChanging",e);const s=i=>{this.language=i,this.languages=this.services.languageUtils.toResolveHierarchy(i),this.resolvedLanguage=void 0,this.setResolvedLanguage(i)},a=(i,l)=>{l?this.isLanguageChangingTo===e&&(s(l),this.translator.changeLanguage(l),this.isLanguageChangingTo=void 0,this.emit("languageChanged",l),this.logger.log("languageChanged",l)):this.isLanguageChangingTo=void 0,r.resolve((...c)=>this.t(...c)),t&&t(i,(...c)=>this.t(...c))},o=i=>{var f,u;!e&&!i&&this.services.languageDetector&&(i=[]);const l=q(i)?i:i&&i[0],c=this.store.hasLanguageSomeTranslations(l)?l:this.services.languageUtils.getBestMatchFromCodes(q(i)?[i]:i);c&&(this.language||s(c),this.translator.language||this.translator.changeLanguage(c),(u=(f=this.services.languageDetector)==null?void 0:f.cacheUserLanguage)==null||u.call(f,c)),this.loadResources(c,p=>{a(p,c)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?o(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(e),r}getFixedT(e,t,r){const s=(a,o,...i)=>{let l;typeof o!="object"?l=this.options.overloadTranslationOptionHandler([a,o].concat(i)):l={...o},l.lng=l.lng||s.lng,l.lngs=l.lngs||s.lngs,l.ns=l.ns||s.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||r||s.keyPrefix);const c=this.options.keySeparator||".";let f;return l.keyPrefix&&Array.isArray(a)?f=a.map(u=>`${l.keyPrefix}${c}${u}`):f=l.keyPrefix?`${l.keyPrefix}${c}${a}`:a,this.t(f,l)};return q(e)?s.lng=e:s.lngs=e,s.ns=t,s.keyPrefix=r,s}t(...e){var t;return(t=this.translator)==null?void 0:t.translate(...e)}exists(...e){var t;return(t=this.translator)==null?void 0:t.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){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 r=t.lng||this.resolvedLanguage||this.languages[0],s=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(i,l)=>{const c=this.services.backendConnector.state[`${i}|${l}`];return c===-1||c===0||c===2};if(t.precheck){const i=t.precheck(this,o);if(i!==void 0)return i}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(r,e)&&(!s||o(a,e)))}loadNamespaces(e,t){const r=Pe();return this.options.ns?(q(e)&&(e=[e]),e.forEach(s=>{this.options.ns.indexOf(s)<0&&this.options.ns.push(s)}),this.loadResources(s=>{r.resolve(),t&&t(s)}),r):(t&&t(),Promise.resolve())}loadLanguages(e,t){const r=Pe();q(e)&&(e=[e]);const s=this.options.preload||[],a=e.filter(o=>s.indexOf(o)<0&&this.services.languageUtils.isSupportedCode(o));return a.length?(this.options.preload=s.concat(a),this.loadResources(o=>{r.resolve(),t&&t(o)}),r):(t&&t(),Promise.resolve())}dir(e){var s,a;if(e||(e=this.resolvedLanguage||(((s=this.languages)==null?void 0:s.length)>0?this.languages[0]:this.language)),!e)return"rtl";const t=["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"],r=((a=this.services)==null?void 0:a.languageUtils)||new Jt(er());return t.indexOf(r.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},t){return new je(e,t)}cloneInstance(e={},t=Ue){const r=e.forkResourceStore;r&&delete e.forkResourceStore;const s={...this.options,...e,isClone:!0},a=new je(s);if((e.debug!==void 0||e.prefix!==void 0)&&(a.logger=a.logger.clone(e)),["store","services","language"].forEach(i=>{a[i]=this[i]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r){const i=Object.keys(this.store.data).reduce((l,c)=>(l[c]={...this.store.data[c]},l[c]=Object.keys(l[c]).reduce((f,u)=>(f[u]={...l[c][u]},f),l[c]),l),{});a.store=new Bt(i,s),a.services.resourceStore=a.store}return a.translator=new Je(a.services,s),a.translator.on("*",(i,...l)=>{a.emit(i,...l)}),a.init(s,t),a.translator.options=s,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const se=je.createInstance();se.createInstance=je.createInstance;se.createInstance;se.dir;se.init;se.loadResources;se.reloadResources;se.use;se.changeLanguage;se.getFixedT;se.t;se.exists;se.setDefaultNamespace;se.hasLoadedNamespace;se.loadNamespaces;se.loadLanguages;const yn={Friday:"Venerdì",FridayShort:"Ven",Monday:"Lunedì",MondayShort:"Lun",Saturday:"Sabato",SaturdayShort:"Sab",Sunday:"Domenica",SundayShort:"Dom",Tuesday:"Martedì",TuesdayShort:"Mar",Thursday:"Giovedì",ThursdayShort:"Gio",Wednesday:"Mercoledì",WednesdayShort:"Mer"},vn={April:"Aprile",August:"Agosto",December:"Dicembre",February:"Febbraio",January:"Gennaio",June:"Giugno",July:"Luglio",March:"Marzo",May:"Maggio",October:"Ottobre",November:"Novembre",September:"Settembre"},bn={CalendarFor:"Calendario per",Close:"Chiudi"},xn={Date:{NextDay:"Giorno Successivo",NextMonth:"Mese Successivo",NextWeek:"Settimana Successiva",NextYear:"Anno Successivo",PreviousDay:"Giorno Precedente",PreviousMonth:"Mese Precedente",PreviousWeek:"Settimana Precedente",PreviousYear:"Anno Precedente",Today:"Oggi",Tomorrow:"Domani",Yesterday:"Ieri"},Day:yn,Month:vn,Generic:bn},Sn={Friday:"Friday",FridayShort:"Fri",Monday:"Monday",MondayShort:"Mon",Saturday:"Saturday",SaturdayShort:"Sat",Sunday:"Sunday",SundayShort:"Sun",Tuesday:"Tuesday",TuesdayShort:"Tue",Thursday:"Thursday",ThursdayShort:"Thu",Wednesday:"Wednesday",WednesdayShort:"Wed"},En={April:"April",August:"August",December:"December",February:"February",January:"January",July:"July",June:"June",March:"March",May:"May",November:"November",October:"October",September:"September"},_n={CalendarFor:"Calendar for",Close:"Close"},wn={Date:{NextDay:"Next Day",NextMonth:"Next Month",NextWeek:"Next Week",NextYear:"Next Year",PreviousDay:"Previous Day",PreviousMonth:"Previous Month",PreviousWeek:"Previous Week",PreviousYear:"Previous Year",Today:"Today",Tomorrow:"Tomorrow",Yesterday:"Yesterday"},Day:Sn,Month:En,Generic:_n};function rr(n,e){return new RegExp(On(n),e)}function On(n){return n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Tn(n,e,t,r){let s=e;const a=Rn(n,t);if(!s){const i=Math.abs(a);i-Math.floor(i)?s="0,0.00":s="0,0"}const o=Dn(s);return new Intl.NumberFormat(r,o).format(a)}function Rn(n,e,t,r,s){let a=n;if(typeof a!="number"){let i;e&&r===void 0?i=",":i=".";const l=i=="."?",":".";a=a.replace(rr(l,"g"),""),a=a.replace(rr(i,"g"),"."),a=Number(a)}const o=Number(a);return isNaN(o)?NaN:o}function Dn(n){const e={};n.includes(",")?e.useGrouping=!0:e.useGrouping=!1;const t=n.indexOf(".");if(t>-1){const s=(n.substring(t+1).match(/0/g)||[]).length;e.minimumFractionDigits=s,e.maximumFractionDigits=s}else e.minimumFractionDigits=0,e.maximumFractionDigits=0;return e}se.init({lng:typeof navigator<"u"&&navigator.language.split("-")[0]||"en",fallbackLng:"en",debug:!1,interpolation:{escapeValue:!1,format:(n,e,t,r)=>{const s=(r==null?void 0:r.type)??"number";try{switch(s){case"date":{const a=n instanceof Date?n:new Date(n);return new Intl.DateTimeFormat(t,{dateStyle:e||"short"}).format(a)}default:case"number":{const a=(r==null?void 0:r.inputIsLocalized)??!1;return Tn(n,e,a,t)}}}catch{return n}}},resources:{en:{translation:wn},it:{translation:xn}}});const Pn=(n,e,t,r)=>se.format(n,e,t||se.language,r),An=(n,e)=>se.t(n,e);function bt(){const n=F.useCallback((r,s,a,o)=>Pn(r,s,a||void 0,o),[]),e=F.useCallback(()=>se.languages[0],[]),t=F.useCallback((r,s)=>An(r,s),[]);return{format:n,getCurrentLanguage:e,translate:t}}const $e=n=>n==null?!1:typeof n=="string"?n.toLocaleLowerCase()=="yes":n,kn=({ColumnsNumber:n=1,data:e={},ForceText:t,TextColName:r,TextColor:s="var(--smp-dashList-color-base)",Fillspace:a,FontSize:o,Horizontal:i,ForceIcon:l,IconColName:c,IconColor:f="var(--smp-dashList-color-base)",NumberFormat:u,ForceUM:p,UmColName:h,UmColor:g="var(--smp-dashList-color-base)",ForceValue:v,ValueColName:E,ValueColor:b="var(--smp-dashList-color-base)",SelectLayout:w="1",onClick:A})=>{const D="N/A",y=(e==null?void 0:e.columns)||[],P=(e==null?void 0:e.rows)||[],L=P.length>0,U="--smp-dashList-color",V="smp-layout",k="descr",M="icon",W="um",X="value",B=o||"1em",ne="18px",J="--smp-dashList-columns",Y="--smp-dashList-fontSize",z={dash:(N="1")=>{const G=d(N),ee=De[G],te=m(G,k),le=m(G,M),ge=m(G,W),ce=m(G,X);return{container:ee,descr:te,icon:le,um:ge,value:ce}},dashList:`${De["smp-dash-list"]} ${$e(a)?De["smp-dash-list-fill-space"]:""}
46
- ${$e(i)?De["smp-dash-list-horizontal"]:""}`},{format:$}=bt(),d=N=>`${V}-${N}`,m=(N,G)=>De[`${N}__${G}`],x=N=>`${U}-${N}`,_=N=>{const G=/R(\d{1,3})G(\d{1,3})B(\d{1,3})/;if(G.test(N)){const te=N.match(G)||[];if((te==null?void 0:te.length)>3)return"rgb("+te[1]+","+te[2]+","+te[3]+")"}return N},S=N=>{if(!u)return N;const[G,ee]=T(u).map(xe=>parseInt(xe||"0")),te="0,0"+(ee?"."+"0".repeat(ee):""),le=$(N,te,"it");if(!G)return le;const[ge,ce]=le.split(",");return ge+(ce?`,${ce}`:"")},T=N=>N.includes(";")?N.split(";"):[N],j=N=>{const G=te=>{var le;if(te)return(le=N==null?void 0:N.cells[te])==null?void 0:le.obj.k},ee=te=>{var le,ge;if(!(y.length<=te))return(ge=(le=N==null?void 0:N.cells[y[te].name])==null?void 0:le.obj)==null?void 0:ge.k};return{descr:t||G(r)||ee(2)||"",icon:l||G(c)||ee(3)||"",um:p||G(h)||ee(1)||"",value:v||G(E)||ee(0)||""}},I=N=>{A==null||A(N)},C=(N,G)=>{(N.key==="Enter"||N.key===" ")&&(N.preventDefault(),N.stopPropagation(),I(G))},H=(N=>{const G=z.dash(N);return{className:G,descr:ee=>O.jsx("div",{className:G.descr,children:ee},`${N}-${k}`),icon:ee=>O.jsx("div",{className:G.icon,children:O.jsx(me,{color:f,height:ne,icon:ee,width:ne})},`${N}-${M}`),um:ee=>O.jsx("div",{className:G.um,children:ee},`${N}-${W}`),value:ee=>O.jsx("div",{className:G.value,children:ee},`${N}-${X}`)}})(w),re=N=>{const{descr:G,icon:ee,um:te,value:le}=j(N),ge={[x(k)]:_(s),[x(W)]:_(g),[x(X)]:_(b)},ce=[],xe=S(le);switch(w){case"2":ee&&ce.push(H.icon(ee)),ce.push(H.descr(G)),ce.push(H.value(te?xe+" "+te:xe));break;default:case"1":ce.push(H.descr(G)),ce.push(H.value(te?xe+" "+te:xe))}return O.jsx("div",{className:H.className.container,role:"button",style:ge,tabIndex:0,onClick:()=>I(N),onKeyDown:_r=>C(_r,N),children:ce},N.id)},R={[J]:String(n),[Y]:B};return O.jsx("div",{className:z.dashList,style:R,children:L?P.map(N=>re(N)):D})},fe={AUTOCOMPLETE:"ACP",BUTTON:"BTN",CHECKBOX:"CHK",CHIP:"CHI",COMBOBOX:"CMB",DATE:"CAL",ICON:"ICO",MULTI_AUTOCOMPLETE:"AML",TEXT_FIELD:"ITX",PASSWORD:"PWD"},Cn=n=>n.t=="D8",$n=n=>{if(n){const e=n.split(";");if(e.length==3)return{t:e[0],p:e[1],k:e[2]}}return{t:"",p:"",k:""}};class Xe{constructor(e,t){ve(this,"class");ve(this,"value");this.class=e,this.value=t}static fromDataObj(e){return new Xe(e,e.k=="1"||e.k=="true")}getValue(){return this.value}getLegacyValue(){if(this.class.t=="V2"){if(this.class.p=="SI/NO")return this.value?"1":" ";if(this.class.p=="ON/OFF")return this.value?"1":"0"}return this.value?"true":"false"}}function jn(n,e){if(xt(n)){const f=new Date(n);if(!isNaN(f.getTime()))return f}const t=new Date,r=n.replaceAll("/","").replaceAll("-","");let s="DDMMYYYY";e==="en"&&(s="MMDDYYYY");const a=s.indexOf("DD"),o=s.indexOf("MM");let i=0,l=0,c="";switch(r.length){case 1:case 2:return i=parseInt(r),t.setDate(i),We(t)?t:n;case 3:case 4:return i=parseInt(r.substring(0,2)),l=parseInt(r.substring(2,4)),o===0?(t.setDate(l),t.setMonth(i-1)):a===0&&(t.setDate(i),t.setMonth(l-1)),We(t)?t:n;case 5:case 6:{i=parseInt(r.substring(0,2)),l=parseInt(r.substring(2,4)),Number(r.substring(4))>50?c="19"+r.substring(4):c="20"+r.substring(4);let f=0,u=0;return o===0?(f=l,u=i-1,t.setFullYear(parseInt(c),u,f)):a===0&&(f=i,u=l-1,t.setFullYear(parseInt(c),u,f)),gt(i,u,parseInt(c))&&We(t)?t:n}case 7:case 8:{i=parseInt(r.substring(0,2)),l=parseInt(r.substring(2,4)),c=r.substring(4);let f=0,u=0;return o===0?(f=l,u=i-1,t.setFullYear(parseInt(c),u,f)):a===0&&(f=i,u=l-1,t.setFullYear(parseInt(c),u,f)),gt(f,u,parseInt(c))&&We(t)?t:n}}return n}function xt(n){return/^\d{4}-\d{2}-\d{2}$/.test(n)&&n.length===10}function We(n){return n instanceof Date&&!isNaN(n.getTime())}function Ln(n){if(!/^\d{8}$/.test(n))return!1;const e=parseInt(n.slice(0,4),10),t=parseInt(n.slice(4,6),10),r=parseInt(n.slice(6,8),10);return gt(r,t-1,e)}function gt(n,e,t){const r=[31,In(t)?29:28,31,30,31,30,31,31,30,31,30,31];return!(e<0||e>11||n<1||n>r[e])}function In(n){return n%4===0&&(n%100!==0||n%400===0)}function Nn(n){const e=n.getFullYear(),t=String(n.getMonth()+1).padStart(2,"0"),r=String(n.getDate()).padStart(2,"0");return isNaN(e)||isNaN(Number(t))||isNaN(Number(r))?n.toString():`${e}-${t}-${r}`}class Ze{constructor(e,t){ve(this,"class");ve(this,"date");this.class=e,this.date=t}static fromDataObj(e){const t=nr.get(`${e.t}${e.p}`);if(t)return new Ze(e,t.legacyToIso(e.k));throw new Error(`Date creation from ${e.t}${e.p} not implemented yet`)}getLegacyValue(){const e=nr.get(`${this.class.t}${this.class.p}`);if(e)return e.isoToLegacy(this.date);throw new Error(`Date object not implemented ${this.class.t}${this.class.p}`)}getValue(){return this.date}}const nr=new Map([["D8*YYMD",{legacyToIso(n){return Ln(n)&&`${n.substring(0,4)}-${n.substring(4,6)}-${n.substring(6,8)}`||n},isoToLegacy(n){return xt(n)&&n.replaceAll("-","")||n}}]]),Qe=(n,e)=>{F.useEffect(()=>{const t=r=>{typeof n=="object"&&n!==null&&"current"in n&&n.current&&!n.current.contains(r.target)&&e()};return document.addEventListener("mousedown",t),()=>{document.removeEventListener("mousedown",t)}},[n,e])};function St({position:n="bottom",enabled:e=!0}){const t=F.useRef(null),r=F.useRef(null),[s,a]=F.useState(0),o=F.useCallback(()=>{const i=t.current,l=r.current;if(!i||!l)return;const{top:c,left:f,width:u,height:p}=i.getBoundingClientRect();a(u);const h=l.offsetHeight,g=l.offsetWidth;if(g===0||h===0){requestAnimationFrame(o);return}let v=c+window.scrollY,E=f+window.scrollX;switch(n){case"top":v-=h;break;case"bottom":v+=p;break;case"left":E-=g;break;case"right":E+=u;break}requestAnimationFrame(()=>{l.style.transform=`translate(${E}px, ${v}px)`})},[n]);return F.useLayoutEffect(()=>{e&&t.current&&r.current&&o();const i=new MutationObserver(()=>{r.current&&o()});return r.current&&i.observe(r.current,{childList:!0,subtree:!0}),window.addEventListener("resize",o),window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("resize",o),window.removeEventListener("scroll",o,!0),i.disconnect()}},[o,e]),{anchorRef:t,targetRef:r,anchorWidth:s}}const et=(n,e,t)=>{if(t)switch(t){case"CodeOnly":return n;case"DescOnly":return e||"";case"Both":return`${n} - ${e}`}return n},Ae={"smp-list":"_smp-list_1ux5k_1","smp-list-container":"_smp-list-container_1ux5k_18","smp-list-listItem":"_smp-list-listItem_1ux5k_23"},ft={"smp-helper-text":"_smp-helper-text_10pis_1","smp-helper-text-danger":"_smp-helper-text-danger_10pis_9","smp-helper-text-warning":"_smp-helper-text-warning_10pis_13","smp-helper-text-disabled":"_smp-helper-text-disabled_10pis_17"},Mn=({helperText:n,disabled:e,state:t})=>{const r={container:`${ft["smp-helper-text"]} ${e?ft["smp-helper-text-disabled"]:""} ${t?ft[`smp-helper-text-${t}`]:""}`};return O.jsx("span",{className:r.container,children:n})},sr={"smp-label":"_smp-label_3ywt3_1","smp-label-disabled":"_smp-label-disabled_3ywt3_5"},Fn=({label:n,disabled:e})=>{const t={container:`${sr["smp-label"]} ${e?sr["smp-label-disabled"]:""}`};return O.jsx("span",{className:t.container,children:n})},he={"smp-textfield-wrapper":"_smp-textfield-wrapper_1tjct_4","smp-textfield":"_smp-textfield_1tjct_4","smp-textfield-extraSmall":"_smp-textfield-extraSmall_1tjct_63","smp-textfield-small":"_smp-textfield-small_1tjct_68","smp-textfield-medium":"_smp-textfield-medium_1tjct_73","smp-textfield-large":"_smp-textfield-large_1tjct_78","smp-textfield-extraLarge":"_smp-textfield-extraLarge_1tjct_83","smp-textfield-input":"_smp-textfield-input_1tjct_89","smp-textfield-danger":"_smp-textfield-danger_1tjct_106","smp-textfield-readOnly":"_smp-textfield-readOnly_1tjct_110","smp-textfield-variant-notSelectable":"_smp-textfield-variant-notSelectable_1tjct_115","smp-textfield-disabled":"_smp-textfield-disabled_1tjct_125"},we=({disabled:n,readOnly:e,bindValue:t,icon:r,onBlur:s,onChange:a,placeholder:o,shapeIcon:i,sizing:l,state:c,variant:f,rotatedShapeIcon:u=!1,onShapeIconClick:p,ref:h,inputRef:g,onKeyDown:v,inputType:E="text",ariaLabel:b="input field",label:w,helperText:A=!1,error:D})=>{const y=D?"danger":c,P=D||c=="danger"?"error":i,L=A||!!D,U=k=>{a==null||a(k.target.value)},V={wrapper:`${he["smp-textfield-wrapper"]}`,container:`${he["smp-textfield"]} ${n?he["smp-textfield-disabled"]:""} ${e?he["smp-textfield-readOnly"]:""} ${o?he["smp-textfield-placeholder"]:""} ${l?he[`smp-textfield-${l}`]:""} ${y?he[`smp-textfield-${y}`]:""} ${f?he[`smp-textfield-variant-${f}`]:""}`,input:`${he["smp-textfield-input"]}`};return O.jsxs("div",{className:V.wrapper,children:[w&&O.jsx(Fn,{label:w,disabled:n}),O.jsxs("div",{className:V.container,ref:h,children:[r&&O.jsx(me,{icon:r,disabled:n}),O.jsx("input",{type:E,value:t,placeholder:o,onChange:U,onBlur:s,className:V.input,disabled:n,readOnly:e,onKeyDown:v,"aria-label":b,ref:g}),P&&O.jsx(me,{icon:P,disabled:n,state:y,onClick:p,rotated:u})]}),L&&O.jsx(Mn,{helperText:D,disabled:n,state:y})]})};function Vn({items:n,itemHeight:e,containerHeight:t,overscan:r=5}){const[s,a]=F.useState(0),o=F.useRef(null),i=n.length*e,l=Math.max(0,Math.floor(s/e)-r),c=Math.min(n.length-1,Math.floor((s+t)/e)+r),f=[];for(let h=l;h<=c;h++)f.push({item:n[h],index:h,offsetTop:h*e});const u=F.useCallback(h=>{const g=h.target.scrollTop;a(g)},[]),p=h=>{if(!o.current)return;const g=h*e,v=g+e,E=o.current,b=E.scrollTop,w=b+t;g<b?E.scrollTop=g:v>w&&(E.scrollTop=v-t)};return{virtualItems:f,containerProps:{ref:o,style:{maxHeight:`${t}px`,overflowY:"auto",position:"relative",willChange:"transform"},onScroll:u},innerProps:{style:{height:`${i}px`,position:"relative",width:"100%"}},scrollInfo:{scrollTop:s,viewportHeight:t,totalHeight:i,startIndex:l,endIndex:c},scrollToIndex:p}}const Yn=10,hr=({id:n,options:e,displayMode:t,ref:r,showFilter:s,selectedIndex:a=null,activeIndex:o=[],width:i,onClick:l,onKeyDown:c})=>{var k;const[f,u]=F.useState(""),p=24,[h,g]=F.useState(a!==null?a:-1),v=s!==void 0?s:e.length>Yn,E=f?e.filter(M=>M.label.toLowerCase().includes(f.toLowerCase())):e,b=M=>{u(M)},{virtualItems:w,containerProps:A,innerProps:D,scrollToIndex:y}=Vn({items:E,itemHeight:p,containerHeight:200,overscan:5});F.useEffect(()=>{a!==null&&a!==h&&g(a)},[a]),F.useEffect(()=>{h>=0&&h<E.length&&y(h)},[h,E]);const P=M=>{if(M.key==="ArrowDown"||M.key==="ArrowUp"){M.preventDefault();let W=h;M.key==="ArrowDown"?W=h<E.length-1?h+1:0:M.key==="ArrowUp"&&(W=h>0?h-1:E.length-1),g(W)}else M.key==="Enter"?h>=0&&h<E.length&&(l==null||l(E[h])):M.key==="Escape"&&(M.preventDefault(),M.stopPropagation());c&&c(M)},L=M=>{P(M)},U=M=>{P(M)},V={wrapper:`${Ae["smp-list"]}`,container:`${Ae["smp-list-container"]}`,virtualScroll:`${Ae["smp-list-virtualScroll"]}`,listItem:`${Ae["smp-list-listItem"]}`};return O.jsxs("div",{id:n,ref:r,className:V.wrapper,style:{width:i},children:[v&&O.jsx(we,{bindValue:f,placeholder:"Search...",onChange:b,onKeyDown:L}),O.jsx("div",{...A,className:V.container,tabIndex:0,role:"listbox","aria-label":"List",onKeyDown:U,"aria-activedescendant":h>=0&&h<E.length?(k=E[h])==null?void 0:k.id:void 0,children:O.jsx("div",{...D,className:V.virtualScroll,children:w.map(({item:M,index:W,offsetTop:X})=>{const B=o.includes(M.id);return O.jsxs("li",{role:"option",id:M.id,"aria-selected":h===W?"true":"false",tabIndex:-1,className:`${V.listItem} ${h===W?Ae["selected-item"]:""}`,"aria-label":M.id+"-"+M.label,style:{height:`${p}px`,lineHeight:`calc(${p}px - 2*2px)`,transform:`translateY(${X}px)`},onClick:()=>{l==null||l(M),g(W)},children:[et(M.id,M.label,t),B&&O.jsx(me,{icon:"check",width:16})]},M.id)})})})]})},mr=({displayMode:n,bindValue:e,optionalDisplayValue:t,...r})=>{const[s,a]=F.useState(et(e,t,n));return F.useEffect(()=>{a(e)},[e]),F.useEffect(()=>{a(et(e,t,n))},[t,n]),O.jsx(we,{...r,bindValue:s})},Un=n=>{const e=F.useRef(null);return F.useEffect(()=>()=>{e.current&&clearTimeout(e.current)},[]),r=>{e.current&&clearTimeout(e.current),e.current=setTimeout(()=>{r()},n)}},Et=({bindValue:n,optionalDisplayValue:e,options:t,displayMode:r,listDisplayMode:s="Both",minimumChars:a=3,placeholder:o,fun:i,_changeOnEnter:l=!1,onChange:c,onOptionsRequest:f,_multiActiveIndex:u,...p})=>{const[h,g]=F.useState(n),[v,E]=F.useState(e),[b,w]=F.useState(!1),[A,D]=F.useState(t||[]),[y,P]=F.useState(0),[L,U]=F.useState([n]),{anchorRef:V,targetRef:k,anchorWidth:M}=St({position:"bottom",enabled:b});Qe(k,()=>w(!1));const W=Un(400),X=Y=>{Y.length>=a?i&&f&&W(async()=>{const z=await f(i,Y);D(z),P(z.length>0?0:-1),w(!0)}):w(!1),g(Y),E(e),l||c==null||c(Y,e)},B=Y=>{l?(g(""),E("")):(g(Y.id),E(Y.label)),c==null||c(Y.id,Y.label);const z=A.findIndex($=>$.id===Y.id);P(z),U([Y.id]),w(!1)},ne=Y=>{Y.key==="Escape"&&(w(!1),P(-1))},J=Y=>{if((Y.key==="ArrowDown"||Y.key==="ArrowUp")&&(Y.preventDefault(),b)){const z=Y.key==="ArrowDown"?(y+1)%A.length:(y-1+A.length)%A.length;P(z)}switch(Y.key){case"Enter":y>=0&&y<A.length?B(A[y]):l&&(c==null||c(h,""),w(!1),g(""),E(""));break;case"Escape":w(!1),P(-1);break}};return O.jsxs("div",{children:[O.jsx(mr,{...p,bindValue:h,optionalDisplayValue:v,displayMode:r,shapeIcon:"magnify",placeholder:o,ref:V,onChange:X,onKeyDown:J,"aria-autocomplete":"list"}),b&&O.jsx(hr,{options:A,displayMode:s,onClick:B,ref:k,selectedIndex:y,activeIndex:u||L,width:M,showFilter:!1,onKeyDown:ne})]})},ke={"smp-button-container":"_smp-button-container_pte2h_1","smp-button-extraSmall":"_smp-button-extraSmall_pte2h_51","smp-button-small":"_smp-button-small_pte2h_56","smp-button-base":"_smp-button-base_pte2h_61","smp-button-large":"_smp-button-large_pte2h_66","smp-button-extraLarge":"_smp-button-extraLarge_pte2h_71","smp-button-fullWidth":"_smp-button-fullWidth_pte2h_76","smp-buttonType-raised":"_smp-buttonType-raised_pte2h_81","smp-buttonVariant-base":"_smp-buttonVariant-base_pte2h_83","smp-buttonVariant-primary":"_smp-buttonVariant-primary_pte2h_97","smp-buttonVariant-danger":"_smp-buttonVariant-danger_pte2h_111","smp-buttonType-ghost":"_smp-buttonType-ghost_pte2h_138"},Le=({bindValue:n,onClick:e,ariaLabel:t,icon:r,disabled:s,sizing:a="base",variant:o="primary",type:i="raised",showIcon:l=!0,showText:c=!0,fullWidth:f=!1,loading:u=!1})=>{const p={container:`${ke["smp-button-container"]} ${a?ke[`smp-button-${a}`]:""} ${o?ke[`smp-buttonVariant-${o}`]:""} ${i?ke[`smp-buttonType-${i}`]:""} ${f?ke["smp-button-fullWidth"]:""}`},h=g=>({primary:"onPrimary",danger:"onDanger",base:"base"})[g];return O.jsx("button",{className:p.container,onClick:e,"aria-label":t,disabled:s,"aria-busy":u,children:u?O.jsx(me,{icon:"spinner",state:h(o),spin:!0}):O.jsxs(O.Fragment,{children:[r&&l&&O.jsx(me,{icon:r,disabled:s,state:h(o)}),c&&O.jsx("span",{children:n})]})})},gr=({bindValue:n,onChange:e,onBlur:t})=>{const r=s=>{e&&e(s.target.checked)};return O.jsx("input",{type:"checkbox",checked:n,onChange:r,onBlur:t})},Wn={titleLarge:"h2",title:"h3",body:"h6",label:"label"},dt={"smp-typography":"_smp-typography_oznk3_1","smp-typography-body":"_smp-typography-body_oznk3_12","smp-typography-large":"_smp-typography-large_oznk3_16","smp-typography-titleLarge":"_smp-typography-titleLarge_oznk3_20","smp-typography-label":"_smp-typography-label_oznk3_24","smp-typography-disabled":"_smp-typography-disabled_oznk3_29"},Hn=({variant:n="body",bindValue:e,...t})=>{const r=Wn[n],s={container:`${dt["smp-typography"]} ${n?dt[`smp-typography-${n}`]:""} ${t.disabled?dt["smp-typography-disabled"]:""}`};return O.jsx(r,{className:s.container,disabled:t.disabled,children:e})},ar={"smp-chips-container":"_smp-chips-container_g7dut_1","smp-chips-element":"_smp-chips-element_g7dut_9"},yr=({elements:n,isEditable:e=!1,displayMode:t="Both",onChange:r})=>{const s={container:`${ar["smp-chips-container"]}`,element:`${ar["smp-chips-element"]}`},a=o=>{r==null||r(n.filter((i,l)=>l!==o))};return O.jsx("div",{className:s.container,role:"list",children:n.map((o,i)=>{const l=et(o.bindValue,o.optionalDisplayValue,t);return O.jsxs("div",{className:s.element,role:"listitem",children:[O.jsx(Hn,{variant:"label",bindValue:l}),e&&O.jsx(me,{icon:"close",isInteractable:!0,onClick:()=>a(i)})]},i)})})};function vr(n,e){const t=F.useRef(null);F.useEffect(()=>{if(!n)return;const r=typeof e=="object"&&e!==null&&"current"in e?e.current:null;if(!r)return;t.current=document.activeElement;const s=()=>r?Array.from(r.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])')).filter(c=>!c.hasAttribute("disabled")&&c.offsetParent!==null):[];(()=>{const c=s();c.length>0&&requestAnimationFrame(()=>c[0].focus())})();const o=c=>{if(c.key==="Escape"||c.key!=="Tab")return;const f=s();if(f.length===0)return;const u=f[0],p=f[f.length-1];c.shiftKey&&document.activeElement===u?(c.preventDefault(),p.focus()):!c.shiftKey&&document.activeElement===p&&(c.preventDefault(),u.focus())},i=c=>{if(r&&!r.contains(c.target)){c.preventDefault();const f=s();f.length>0&&f[0].focus()}};document.addEventListener("keydown",o),document.addEventListener("mousedown",i);const l=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",o),document.removeEventListener("mousedown",i),document.body.style.overflow=l,t.current&&requestAnimationFrame(()=>{var c;(c=t.current)==null||c.focus()})}},[n,e])}const br=({bindValue:n,onChange:e,options:t=[],optionalDisplayValue:r,displayMode:s,listDisplayMode:a="Both",fun:o,onOptionsRequest:i,multiActiveIndex:l,...c})=>{const[f,u]=F.useState(!1),[p,h]=F.useState(t),[g,v]=F.useState(-1),[E,b]=F.useState([n]),w=F.useId(),{anchorRef:A,targetRef:D,anchorWidth:y}=St({position:"bottom",enabled:f});Qe(D,()=>u(!1)),vr(f,D);const P=k=>{e==null||e(k.id,k.label);const M=p.findIndex(W=>W.id===k.id);v(M),b([k.id]),u(!1)},L=k=>{k.key==="Escape"&&(u(!1),v(-1))},U=k=>{(k.key==="ArrowDown"||k.key==="ArrowUp")&&(k.preventDefault(),V())},V=()=>{o&&i&&i(o,void 0).then(k=>{h(k),v(k.length>0?0:-1),u(!0)})};return O.jsxs("div",{role:"combobox","aria-expanded":f,"aria-controls":w,"aria-owns":w,children:[O.jsx(mr,{...c,bindValue:n,optionalDisplayValue:r,displayMode:s,onShapeIconClick:V,onKeyDown:U,shapeIcon:"arrow_drop_down",rotatedShapeIcon:f,readOnly:!0,ref:A,"aria-autocomplete":"list",variant:"notSelectable"}),f&&O.jsx(hr,{id:w,options:p,displayMode:a,ref:D,selectedIndex:g,activeIndex:l||E,width:y,onClick:P,onKeyDown:L})]})};var xr=(n=>(n.CALENDAR_FOR="Date.CalendarFor",n.CLOSE="Generic.Close",n))(xr||{}),ie=(n=>(n.MONDAY="Day.Monday",n.MONDAY_SHORT="Day.MondayShort",n.TUESDAY="Day.Tuesday",n.TUESDAY_SHORT="Day.TuesdayShort",n.WEDNESDAY="Day.Wednesday",n.WEDNESDAY_SHORT="Day.WednesdayShort",n.THURSDAY="Day.Thursday",n.THURSDAY_SHORT="Day.ThursdayShort",n.FRIDAY="Day.Friday",n.FRIDAY_SHORT="Day.FridayShort",n.SATURDAY="Day.Saturday",n.SATURDAY_SHORT="Day.SaturdayShort",n.SUNDAY="Day.Sunday",n.SUNDAY_SHORT="Day.SundayShort",n))(ie||{}),oe=(n=>(n.JANUARY="Month.January",n.FEBRUARY="Month.February",n.MARCH="Month.March",n.APRIL="Month.April",n.MAY="Month.May",n.JUNE="Month.June",n.JULY="Month.July",n.AUGUST="Month.August",n.SEPTEMBER="Month.September",n.OCTOBER="Month.October",n.NOVEMBER="Month.November",n.DECEMBER="Month.December",n))(oe||{}),yt=(n=>(n.PREVIOUS_DAY="Date.PreviousDay",n.PREVIOUS_WEEK="Date.PreviousWeek",n.PREVIOUS_MONTH="Date.PreviousMonth",n.PREVIOUS_YEAR="Date.PreviousYear",n.NEXT_DAY="Date.NextDay",n.NEXT_WEEK="Date.NextWeek",n.NEXT_MONTH="Date.NextMonth",n.NEXT_YEAR="Date.NextYear",n.YESTERDAY="Date.Yesterday",n.TODAY="Date.Today",n.TOMORROW="Date.Tomorrow",n))(yt||{});const de={"smp-datepickercalendar":"_smp-datepickercalendar_u2io5_1","smp-datepickercalendar-table":"_smp-datepickercalendar-table_u2io5_30","smp-datepickercalendar-th":"_smp-datepickercalendar-th_u2io5_42","smp-datepickercalendar-td":"_smp-datepickercalendar-td_u2io5_53","smp-datepickercalendar-td-today":"_smp-datepickercalendar-td-today_u2io5_72","smp-datepickercalendar-td-selected":"_smp-datepickercalendar-td-selected_u2io5_78","smp-datepickercalendar-td-focused":"_smp-datepickercalendar-td-focused_u2io5_83","smp-datepickercalendar-label":"_smp-datepickercalendar-label_u2io5_93"};function qn({selectedDate:n,onDateChange:e,disabledDateRanges:t=[],initialValue:r,targetRef:s}){const{translate:a}=bt(),o=()=>{if(!r)return;const $=new Date(r);return isNaN($.getTime())?void 0:$},[i]=F.useState(new Date),[l,c]=F.useState(n||o()||new Date),[f,u]=F.useState(l?l.getMonth():new Date().getMonth()),[p,h]=F.useState(l?l.getFullYear():new Date().getFullYear()),[g,v]=F.useState(l?l.getDate():null),E=F.useRef(null),b=F.useRef([]),w=[a(oe.JANUARY),a(oe.FEBRUARY),a(oe.MARCH),a(oe.APRIL),a(oe.MAY),a(oe.JUNE),a(oe.JULY),a(oe.AUGUST),a(oe.SEPTEMBER),a(oe.OCTOBER),a(oe.NOVEMBER),a(oe.DECEMBER)],A=[{value:a(ie.SUNDAY_SHORT),full:a(ie.SUNDAY)},{value:a(ie.MONDAY_SHORT),full:a(ie.MONDAY)},{value:a(ie.TUESDAY_SHORT),full:a(ie.TUESDAY)},{value:a(ie.WEDNESDAY_SHORT),full:a(ie.WEDNESDAY)},{value:a(ie.THURSDAY_SHORT),full:a(ie.THURSDAY)},{value:a(ie.FRIDAY_SHORT),full:a(ie.FRIDAY)},{value:a(ie.SATURDAY_SHORT),full:a(ie.SATURDAY)}],D=$=>t.some(d=>{const m=d.start.getTime(),x=d.end.getTime(),_=$.getTime();return _>=m&&_<=x}),y=$=>{D($)||(c($),v($.getDate()),e&&e(Nn($)))},P=()=>{f===0?(u(11),h(p-1)):u(f-1),v(1)},L=()=>{f===11?(u(0),h(p+1)):u(f+1),v(1)},U=($,d)=>new Date($,d+1,0).getDate(),V=($,d)=>new Date($,d,1).getDay(),k=$=>{var m;const d=B.findIndex(x=>x!==null&&x.getDate()===$);d!==-1&&b.current[d]&&((m=b.current[d])==null||m.focus(),v($))},M=($,d)=>{const m=B[d];if(!m)return;const x=U(p,f),_=m.getDate();switch($.key){case"ArrowRight":$.preventDefault();{let S=_+1,T=new Date(p,f,S);if(S>x){const j=f===11?p+1:p,I=f===11?0:f+1;S=1,T=new Date(j,I,S),L(),setTimeout(()=>{W(1,"forward")},0);return}D(T)?W(S,"forward"):k(S)}break;case"Tab":break;case"ArrowLeft":$.preventDefault();{let S=_-1,T=new Date(p,f,S);if(S<1){const j=f===0?p-1:p,I=f===0?11:f-1,C=U(j,I);S=C,T=new Date(j,I,S),P(),setTimeout(()=>{W(C,"backward")},0);return}D(T)?W(S,"backward"):k(S)}break;case"ArrowUp":$.preventDefault();{let S=_-7,T=new Date(p,f,S);if(S<1){const j=f===0?p-1:p,I=f===0?11:f-1;S=U(j,I)+S,T=new Date(j,I,S),P(),setTimeout(()=>{W(S,"backward")},0);return}D(T)?W(S,"backward"):k(S)}break;case"ArrowDown":$.preventDefault();{let S=_+7,T=new Date(p,f,S);if(S>x){const j=f===11?p+1:p,I=f===11?0:f+1;S=S-x,T=new Date(j,I,S),L(),setTimeout(()=>{W(S,"forward")},0);return}D(T)?W(S,"forward"):k(S)}break;case"Home":$.preventDefault(),W(1,"forward");break;case"End":$.preventDefault(),W(x,"backward");break;case"PageUp":$.preventDefault(),P(),setTimeout(()=>{const S=U(f===0?p-1:p,f===0?11:f-1),T=Math.min(_,S);W(T,"forward")},0);break;case"PageDown":$.preventDefault(),L(),setTimeout(()=>{const S=U(f===11?p+1:p,f===11?0:f+1),T=Math.min(_,S);W(T,"forward")},0);break;case" ":case"Space":if(D(m))return;v(m.getDate()),c(m);break;case"Enter":$.preventDefault(),y(m);break}},W=($,d)=>{const m=U(p,f);if(d==="forward"){for(let x=$;x<=m;x++){const _=new Date(p,f,x);if(!D(_)){k(x);return}}L(),setTimeout(()=>{W(1,"forward")},0)}else{for(let T=$;T>=1;T--){const j=new Date(p,f,T);if(!D(j)){k(T);return}}const x=f===0?p-1:p,_=f===0?11:f-1,S=U(x,_);P(),setTimeout(()=>{W(S,"backward")},0)}},B=(()=>{const $=U(p,f),d=V(p,f),m=[];for(let x=0;x<d;x++)m.push(null);for(let x=1;x<=$;x++){const _=new Date(p,f,x);m.push(_)}return m})(),ne=[];let J=[];B.forEach(($,d)=>{if(J.push($),J.length===7||d===B.length-1){for(;J.length<7;)J.push(null);ne.push(J),J=[]}}),F.useEffect(()=>{var $;if(g!==null){const d=B.findIndex(m=>m!==null&&m.getDate()===g);d!==-1&&b.current[d]&&(($=b.current[d])==null||$.focus())}},[f,p,g,B]);const Y={label:`${de["smp-datepickercalendar-label"]}`,wrapper:`${de["smp-datepickercalendar"]}`,calendar:`${de["smp-datepickercalendar"]}`,table:`${de["smp-datepickercalendar-table"]}`,th:`${de["smp-datepickercalendar-th"]}`,td:($,d,m,x)=>`${de["smp-datepickercalendar-td"]}
44
+ */var st,jt;function Hr(){if(jt)return st;jt=1;var n=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;function r(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function s(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},i=0;i<10;i++)o["_"+String.fromCharCode(i)]=i;var l=Object.getOwnPropertyNames(o).map(function(f){return o[f]});if(l.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(f){c[f]=f}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return st=s()?Object.assign:function(a,o){for(var i,l=r(a),c,f=1;f<arguments.length;f++){i=Object(arguments[f]);for(var u in i)e.call(i,u)&&(l[u]=i[u]);if(n){c=n(i);for(var p=0;p<c.length;p++)t.call(i,c[p])&&(l[c[p]]=i[c[p]])}}return l},st}var at,Lt;function vt(){if(Lt)return at;Lt=1;var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return at=n,at}var it,It;function dr(){return It||(It=1,it=Function.call.bind(Object.prototype.hasOwnProperty)),it}var ot,Nt;function qr(){if(Nt)return ot;Nt=1;var n=function(){};if(process.env.NODE_ENV!=="production"){var e=vt(),t={},r=dr();n=function(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function s(a,o,i,l,c){if(process.env.NODE_ENV!=="production"){for(var f in a)if(r(a,f)){var u;try{if(typeof a[f]!="function"){var p=Error((l||"React class")+": "+i+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}u=a[f](o,f,l,i,null,e)}catch(g){u=g}if(u&&!(u instanceof Error)&&n((l||"React class")+": type specification of "+i+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in t)){t[u.message]=!0;var h=c?c():"";n("Failed "+i+" type: "+u.message+(h??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(t={})},ot=s,ot}var lt,Mt;function Kr(){if(Mt)return lt;Mt=1;var n=fr(),e=Hr(),t=vt(),r=dr(),s=qr(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(i){var l="Warning: "+i;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function o(){return null}return lt=function(i,l){var c=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function u(d){var m=d&&(c&&d[c]||d[f]);if(typeof m=="function")return m}var p="<<anonymous>>",h={array:b("array"),bigint:b("bigint"),bool:b("boolean"),func:b("function"),number:b("number"),object:b("object"),string:b("string"),symbol:b("symbol"),any:w(),arrayOf:A,element:D(),elementType:y(),instanceOf:P,node:C(),objectOf:U,oneOf:L,oneOfType:V,shape:W,exact:X};function g(d,m){return d===m?d!==0||1/d===1/m:d!==d&&m!==m}function v(d,m){this.message=d,this.data=m&&typeof m=="object"?m:{},this.stack=""}v.prototype=Error.prototype;function E(d){if(process.env.NODE_ENV!=="production")var m={},x=0;function _(T,j,I,k,K,H,re){if(k=k||p,H=H||I,re!==t){if(l){var R=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 R.name="Invariant Violation",R}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var N=k+":"+I;!m[N]&&x<3&&(a("You are manually calling a React.PropTypes validation function for the `"+H+"` prop on `"+k+"`. 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."),m[N]=!0,x++)}}return j[I]==null?T?j[I]===null?new v("The "+K+" `"+H+"` is marked as required "+("in `"+k+"`, but its value is `null`.")):new v("The "+K+" `"+H+"` is marked as required in "+("`"+k+"`, but its value is `undefined`.")):null:d(j,I,k,K,H)}var S=_.bind(null,!1);return S.isRequired=_.bind(null,!0),S}function b(d){function m(x,_,S,T,j,I){var k=x[_],K=J(k);if(K!==d){var H=Y(k);return new v("Invalid "+T+" `"+j+"` of type "+("`"+H+"` supplied to `"+S+"`, expected ")+("`"+d+"`."),{expectedType:d})}return null}return E(m)}function w(){return E(o)}function A(d){function m(x,_,S,T,j){if(typeof d!="function")return new v("Property `"+j+"` of component `"+S+"` has invalid PropType notation inside arrayOf.");var I=x[_];if(!Array.isArray(I)){var k=J(I);return new v("Invalid "+T+" `"+j+"` of type "+("`"+k+"` supplied to `"+S+"`, expected an array."))}for(var K=0;K<I.length;K++){var H=d(I,K,S,T,j+"["+K+"]",t);if(H instanceof Error)return H}return null}return E(m)}function D(){function d(m,x,_,S,T){var j=m[x];if(!i(j)){var I=J(j);return new v("Invalid "+S+" `"+T+"` of type "+("`"+I+"` supplied to `"+_+"`, expected a single ReactElement."))}return null}return E(d)}function y(){function d(m,x,_,S,T){var j=m[x];if(!n.isValidElementType(j)){var I=J(j);return new v("Invalid "+S+" `"+T+"` of type "+("`"+I+"` supplied to `"+_+"`, expected a single ReactElement type."))}return null}return E(d)}function P(d){function m(x,_,S,T,j){if(!(x[_]instanceof d)){var I=d.name||p,k=$(x[_]);return new v("Invalid "+T+" `"+j+"` of type "+("`"+k+"` supplied to `"+S+"`, expected ")+("instance of `"+I+"`."))}return null}return E(m)}function L(d){if(!Array.isArray(d))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("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])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function m(x,_,S,T,j){for(var I=x[_],k=0;k<d.length;k++)if(g(I,d[k]))return null;var K=JSON.stringify(d,function(re,R){var N=Y(R);return N==="symbol"?String(R):R});return new v("Invalid "+T+" `"+j+"` of value `"+String(I)+"` "+("supplied to `"+S+"`, expected one of "+K+"."))}return E(m)}function U(d){function m(x,_,S,T,j){if(typeof d!="function")return new v("Property `"+j+"` of component `"+S+"` has invalid PropType notation inside objectOf.");var I=x[_],k=J(I);if(k!=="object")return new v("Invalid "+T+" `"+j+"` of type "+("`"+k+"` supplied to `"+S+"`, expected an object."));for(var K in I)if(r(I,K)){var H=d(I,K,S,T,j+"."+K,t);if(H instanceof Error)return H}return null}return E(m)}function V(d){if(!Array.isArray(d))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var m=0;m<d.length;m++){var x=d[m];if(typeof x!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+z(x)+" at index "+m+"."),o}function _(S,T,j,I,k){for(var K=[],H=0;H<d.length;H++){var re=d[H],R=re(S,T,j,I,k,t);if(R==null)return null;R.data&&r(R.data,"expectedType")&&K.push(R.data.expectedType)}var N=K.length>0?", expected one of type ["+K.join(", ")+"]":"";return new v("Invalid "+I+" `"+k+"` supplied to "+("`"+j+"`"+N+"."))}return E(_)}function C(){function d(m,x,_,S,T){return B(m[x])?null:new v("Invalid "+S+" `"+T+"` supplied to "+("`"+_+"`, expected a ReactNode."))}return E(d)}function M(d,m,x,_,S){return new v((d||"React class")+": "+m+" type `"+x+"."+_+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+S+"`.")}function W(d){function m(x,_,S,T,j){var I=x[_],k=J(I);if(k!=="object")return new v("Invalid "+T+" `"+j+"` of type `"+k+"` "+("supplied to `"+S+"`, expected `object`."));for(var K in d){var H=d[K];if(typeof H!="function")return M(S,T,j,K,Y(H));var re=H(I,K,S,T,j+"."+K,t);if(re)return re}return null}return E(m)}function X(d){function m(x,_,S,T,j){var I=x[_],k=J(I);if(k!=="object")return new v("Invalid "+T+" `"+j+"` of type `"+k+"` "+("supplied to `"+S+"`, expected `object`."));var K=e({},x[_],d);for(var H in K){var re=d[H];if(r(d,H)&&typeof re!="function")return M(S,T,j,H,Y(re));if(!re)return new v("Invalid "+T+" `"+j+"` key `"+H+"` supplied to `"+S+"`.\nBad object: "+JSON.stringify(x[_],null," ")+`
45
+ Valid keys: `+JSON.stringify(Object.keys(d),null," "));var R=re(I,H,S,T,j+"."+H,t);if(R)return R}return null}return E(m)}function B(d){switch(typeof d){case"number":case"string":case"undefined":return!0;case"boolean":return!d;case"object":if(Array.isArray(d))return d.every(B);if(d===null||i(d))return!0;var m=u(d);if(m){var x=m.call(d),_;if(m!==d.entries){for(;!(_=x.next()).done;)if(!B(_.value))return!1}else for(;!(_=x.next()).done;){var S=_.value;if(S&&!B(S[1]))return!1}}else return!1;return!0;default:return!1}}function ne(d,m){return d==="symbol"?!0:m?m["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&m instanceof Symbol:!1}function J(d){var m=typeof d;return Array.isArray(d)?"array":d instanceof RegExp?"object":ne(m,d)?"symbol":m}function Y(d){if(typeof d>"u"||d===null)return""+d;var m=J(d);if(m==="object"){if(d instanceof Date)return"date";if(d instanceof RegExp)return"regexp"}return m}function z(d){var m=Y(d);switch(m){case"array":case"object":return"an "+m;case"boolean":case"date":case"regexp":return"a "+m;default:return m}}function $(d){return!d.constructor||!d.constructor.name?p:d.constructor.name}return h.checkPropTypes=s,h.resetWarningCache=s.resetWarningCache,h.PropTypes=h,h},lt}var ct,Ft;function Br(){if(Ft)return ct;Ft=1;var n=vt();function e(){}function t(){}return t.resetWarningCache=e,ct=function(){function r(o,i,l,c,f,u){if(u!==n){var p=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 p.name="Invariant Violation",p}}r.isRequired=r;function s(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:s,element:r,elementType:r,instanceOf:s,node:r,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:t,resetWarningCache:e};return a.PropTypes=a,a},ct}var Vt;function zr(){if(Vt)return Fe.exports;if(Vt=1,process.env.NODE_ENV!=="production"){var n=fr(),e=!0;Fe.exports=Kr()(n.isElement,e)}else Fe.exports=Br()();return Fe.exports}var ae=zr(),Gr=function(e){var t=(e==null?void 0:e.ownerDocument)||document;return t.defaultView||window},Jr=function(e,t){for(var r in e)if(!(r in t))return!0;for(var s in t)if(e[s]!==t[s])return!0;return!1},Xr=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],Ye="http://www.w3.org/2000/svg",Yt="http://www.w3.org/1999/xlink",Ke=function(n){function e(){for(var r,s=arguments.length,a=new Array(s),o=0;o<s;o++)a[o]=arguments[o];return r=n.call.apply(n,[this].concat(a))||this,r.initialState={hasError:!1,isLoading:!0},r.state=r.initialState,r._isMounted=!1,r.reactWrapper=void 0,r.nonReactWrapper=void 0,r.refCallback=function(i){r.reactWrapper=i},r}kr(e,n);var t=e.prototype;return t.renderSVG=function(){var s=this;if(this.reactWrapper instanceof Gr(this.reactWrapper).Node){var a=this.props,o=a.desc,i=a.evalScripts,l=a.httpRequestWithCredentials,c=a.renumerateIRIElements,f=a.src,u=a.title,p=a.useRequestCache,h=this.props.onError,g=this.props.beforeInjection,v=this.props.afterInjection,E=this.props.wrapper,b,w;E==="svg"?(b=document.createElementNS(Ye,E),b.setAttribute("xmlns",Ye),b.setAttribute("xmlns:xlink",Yt),w=document.createElementNS(Ye,E)):(b=document.createElement(E),w=document.createElement(E)),b.appendChild(w),w.dataset.src=f,this.nonReactWrapper=this.reactWrapper.appendChild(b);var A=function(L){if(s.removeSVG(),!s._isMounted){h(L);return}s.setState(function(){return{hasError:!0,isLoading:!1}},function(){h(L)})},D=function(L,U){if(L){A(L);return}s._isMounted&&s.setState(function(){return{isLoading:!1}},function(){try{v(U)}catch(V){A(V)}})},y=function(L){if(L.setAttribute("role","img"),o){var U=L.querySelector(":scope > desc");U&&L.removeChild(U);var V=document.createElement("desc");V.innerHTML=o,L.prepend(V)}if(u){var C=L.querySelector(":scope > title");C&&L.removeChild(C);var M=document.createElement("title");M.innerHTML=u,L.prepend(M)}try{g(L)}catch(W){A(W)}};Yr(w,{afterEach:D,beforeEach:y,cacheRequests:p,evalScripts:i,httpRequestWithCredentials:l,renumerateIRIElements:c})}},t.removeSVG=function(){var s;(s=this.nonReactWrapper)!=null&&s.parentNode&&(this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper),this.nonReactWrapper=null)},t.componentDidMount=function(){this._isMounted=!0,this.renderSVG()},t.componentDidUpdate=function(s){var a=this;Jr(qe({},s),this.props)&&this.setState(function(){return a.initialState},function(){a.removeSVG(),a.renderSVG()})},t.componentWillUnmount=function(){this._isMounted=!1,this.removeSVG()},t.render=function(){var s=this.props;s.afterInjection,s.beforeInjection,s.desc,s.evalScripts;var a=s.fallback;s.httpRequestWithCredentials;var o=s.loading;s.renumerateIRIElements,s.src,s.title,s.useRequestCache;var i=s.wrapper,l=Cr(s,Xr),c=i;return Ie.createElement(c,qe({},l,{ref:this.refCallback},i==="svg"?{xmlns:Ye,xmlnsXlink:Yt}:{}),this.state.isLoading&&o&&Ie.createElement(o,null),this.state.hasError&&a&&Ie.createElement(a,null))},e}(Ie.Component);Ke.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"};Ke.propTypes={afterInjection:ae.func,beforeInjection:ae.func,desc:ae.string,evalScripts:ae.oneOf(["always","once","never"]),fallback:ae.oneOfType([ae.func,ae.object,ae.string]),httpRequestWithCredentials:ae.bool,loading:ae.oneOfType([ae.func,ae.object,ae.string]),onError:ae.func,renumerateIRIElements:ae.bool,src:ae.string.isRequired,title:ae.string,useRequestCache:ae.bool,wrapper:ae.oneOf(["div","span","svg"])};const Re={"smp-icon":"_smp-icon_ttsft_1","smp-icon-rotated":"_smp-icon-rotated_ttsft_15","smp-icon-base":"_smp-icon-base_ttsft_19","smp-icon-interactable":"_smp-icon-interactable_ttsft_22","smp-icon-danger":"_smp-icon-danger_ttsft_33","smp-icon-warning":"_smp-icon-warning_ttsft_37","smp-icon-onDanger":"_smp-icon-onDanger_ttsft_45","smp-icon-onPrimary":"_smp-icon-onPrimary_ttsft_49","smp-icon-spin":"_smp-icon-spin_ttsft_53"};let ht={assets:"/"};const Zr=n=>{ht={...ht,...n}},Ut=n=>`${ht.assets}/${n}`.replace(/\/+/g,"/"),me=F.memo(({icon:n,width:e,height:t,placeholderIcon:r,color:s,disabled:a,state:o="base",rotated:i=!1,onClick:l,isInteractable:c=!1,spin:f=!1})=>{const[u,p]=F.useState(n),h=n.indexOf(".")>-1||n.indexOf("/")>-1||n.indexOf("\\")>-1,g=Ut(`assets/svg/${n}.svg`),v=Ut(`assets/svg/${r}.svg`),E={svg:`${Re["smp-icon"]} ${o?Re[`smp-icon-${o}`]:""} ${i?Re["smp-icon-rotated"]:""} ${c?Re["smp-icon-interactable"]:""} ${f?Re["smp-icon-spin"]:""}`},b=()=>{!a&&l&&l()};return O.jsx(O.Fragment,{children:h?O.jsx("img",{src:u,width:e||"16px",height:t||"auto",alt:n||"image",onError:()=>p(v)}):O.jsx(Ke,{src:g,fallback:()=>O.jsx(Ke,{src:v,wrapper:"svg"}),width:e||"1rem",height:t||"1rem",wrapper:"svg",title:n,role:"application",fill:s,"aria-disabled":a,className:E.svg,onClick:b})})}),De={"smp-dash-list":"_smp-dash-list_ajkcc_1","smp-dash-list-fill-space":"_smp-dash-list-fill-space_ajkcc_25","smp-dash-list-horizontal":"_smp-dash-list-horizontal_ajkcc_30","smp-layout-1":"_smp-layout-1_ajkcc_34","smp-layout-2":"_smp-layout-2_ajkcc_38","smp-layout-1__descr":"_smp-layout-1__descr_ajkcc_67","smp-layout-2__descr":"_smp-layout-2__descr_ajkcc_68","smp-layout-1__value":"_smp-layout-1__value_ajkcc_76","smp-layout-2__value":"_smp-layout-2__value_ajkcc_77","smp-layout-2__icon":"_smp-layout-2__icon_ajkcc_84"},q=n=>typeof n=="string",Pe=()=>{let n,e;const t=new Promise((r,s)=>{n=r,e=s});return t.resolve=n,t.reject=e,t},Wt=n=>n==null?"":""+n,Qr=(n,e,t)=>{n.forEach(r=>{e[r]&&(t[r]=e[r])})},en=/###/g,Ht=n=>n&&n.indexOf("###")>-1?n.replace(en,"."):n,qt=n=>!n||q(n),ke=(n,e,t)=>{const r=q(e)?e.split("."):e;let s=0;for(;s<r.length-1;){if(qt(n))return{};const a=Ht(r[s]);!n[a]&&t&&(n[a]=new t),Object.prototype.hasOwnProperty.call(n,a)?n=n[a]:n={},++s}return qt(n)?{}:{obj:n,k:Ht(r[s])}},Kt=(n,e,t)=>{const{obj:r,k:s}=ke(n,e,Object);if(r!==void 0||e.length===1){r[s]=t;return}let a=e[e.length-1],o=e.slice(0,e.length-1),i=ke(n,o,Object);for(;i.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),i=ke(n,o,Object),i!=null&&i.obj&&typeof i.obj[`${i.k}.${a}`]<"u"&&(i.obj=void 0);i.obj[`${i.k}.${a}`]=t},tn=(n,e,t,r)=>{const{obj:s,k:a}=ke(n,e,Object);s[a]=s[a]||[],s[a].push(t)},Be=(n,e)=>{const{obj:t,k:r}=ke(n,e);if(t&&Object.prototype.hasOwnProperty.call(t,r))return t[r]},rn=(n,e,t)=>{const r=Be(n,t);return r!==void 0?r:Be(e,t)},pr=(n,e,t)=>{for(const r in e)r!=="__proto__"&&r!=="constructor"&&(r in n?q(n[r])||n[r]instanceof String||q(e[r])||e[r]instanceof String?t&&(n[r]=e[r]):pr(n[r],e[r],t):n[r]=e[r]);return n},Se=n=>n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var nn={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const sn=n=>q(n)?n.replace(/[&<>"'\/]/g,e=>nn[e]):n;class an{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(t!==void 0)return t;const r=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,r),this.regExpQueue.push(e),r}}const on=[" ",",","?","!",";"],ln=new an(20),cn=(n,e,t)=>{e=e||"",t=t||"";const r=on.filter(o=>e.indexOf(o)<0&&t.indexOf(o)<0);if(r.length===0)return!0;const s=ln.getRegExp(`(${r.map(o=>o==="?"?"\\?":o).join("|")})`);let a=!s.test(n);if(!a){const o=n.indexOf(t);o>0&&!s.test(n.substring(0,o))&&(a=!0)}return a},mt=(n,e,t=".")=>{if(!n)return;if(n[e])return Object.prototype.hasOwnProperty.call(n,e)?n[e]:void 0;const r=e.split(t);let s=n;for(let a=0;a<r.length;){if(!s||typeof s!="object")return;let o,i="";for(let l=a;l<r.length;++l)if(l!==a&&(i+=t),i+=r[l],o=s[i],o!==void 0){if(["string","number","boolean"].indexOf(typeof o)>-1&&l<r.length-1)continue;a+=l-a+1;break}s=o}return s},ze=n=>n==null?void 0:n.replace("_","-"),un={type:"logger",log(n){this.output("log",n)},warn(n){this.output("warn",n)},error(n){this.output("error",n)},output(n,e){var t,r;(r=(t=console==null?void 0:console[n])==null?void 0:t.apply)==null||r.call(t,console,e)}};class Ge{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||un,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,r,s){return s&&!this.debug?null:(q(e[0])&&(e[0]=`${r}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new Ge(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new Ge(this.logger,e)}}var pe=new Ge;class tt{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const s=this.observers[r].get(t)||0;this.observers[r].set(t,s+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([s,a])=>{for(let o=0;o<a;o++)s(...t)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([s,a])=>{for(let o=0;o<a;o++)s.apply(s,[e,...t])})}}class Bt extends tt{constructor(e,t={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,r,s={}){var c,f;const a=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,o=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure;let i;e.indexOf(".")>-1?i=e.split("."):(i=[e,t],r&&(Array.isArray(r)?i.push(...r):q(r)&&a?i.push(...r.split(a)):i.push(r)));const l=Be(this.data,i);return!l&&!t&&!r&&e.indexOf(".")>-1&&(e=i[0],t=i[1],r=i.slice(2).join(".")),l||!o||!q(r)?l:mt((f=(c=this.data)==null?void 0:c[e])==null?void 0:f[t],r,a)}addResource(e,t,r,s,a={silent:!1}){const o=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator;let i=[e,t];r&&(i=i.concat(o?r.split(o):r)),e.indexOf(".")>-1&&(i=e.split("."),s=t,t=i[1]),this.addNamespaces(t),Kt(this.data,i,s),a.silent||this.emit("added",e,t,r,s)}addResources(e,t,r,s={silent:!1}){for(const a in r)(q(r[a])||Array.isArray(r[a]))&&this.addResource(e,t,a,r[a],{silent:!0});s.silent||this.emit("added",e,t,r)}addResourceBundle(e,t,r,s,a,o={silent:!1,skipCopy:!1}){let i=[e,t];e.indexOf(".")>-1&&(i=e.split("."),s=r,r=t,t=i[1]),this.addNamespaces(t);let l=Be(this.data,i)||{};o.skipCopy||(r=JSON.parse(JSON.stringify(r))),s?pr(l,r,a):l={...l,...r},Kt(this.data,i,l),o.silent||this.emit("added",e,t,r)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(s=>t[s]&&Object.keys(t[s]).length>0)}toJSON(){return this.data}}var hr={processors:{},addPostProcessor(n){this.processors[n.name]=n},handle(n,e,t,r,s){return n.forEach(a=>{var o;e=((o=this.processors[a])==null?void 0:o.process(e,t,r,s))??e}),e}};const zt={},Gt=n=>!q(n)&&typeof n!="boolean"&&typeof n!="number";class Je extends tt{constructor(e,t={}){super(),Qr(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=pe.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){const r={...t};if(e==null)return!1;const s=this.resolve(e,r);return(s==null?void 0:s.res)!==void 0}extractFromKey(e,t){let r=t.nsSeparator!==void 0?t.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const s=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator;let a=t.ns||this.options.defaultNS||[];const o=r&&e.indexOf(r)>-1,i=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!cn(e,r,s);if(o&&!i){const l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:q(a)?[a]:a};const c=e.split(r);(r!==s||r===s&&this.options.ns.indexOf(c[0])>-1)&&(a=c.shift()),e=c.join(s)}return{key:e,namespaces:q(a)?[a]:a}}translate(e,t,r){let s=typeof t=="object"?{...t}:t;if(typeof s!="object"&&this.options.overloadTranslationOptionHandler&&(s=this.options.overloadTranslationOptionHandler(arguments)),typeof options=="object"&&(s={...s}),s||(s={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const a=s.returnDetails!==void 0?s.returnDetails:this.options.returnDetails,o=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,{key:i,namespaces:l}=this.extractFromKey(e[e.length-1],s),c=l[l.length-1];let f=s.nsSeparator!==void 0?s.nsSeparator:this.options.nsSeparator;f===void 0&&(f=":");const u=s.lng||this.language,p=s.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((u==null?void 0:u.toLowerCase())==="cimode")return p?a?{res:`${c}${f}${i}`,usedKey:i,exactUsedKey:i,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(s)}:`${c}${f}${i}`:a?{res:i,usedKey:i,exactUsedKey:i,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(s)}:i;const h=this.resolve(e,s);let g=h==null?void 0:h.res;const v=(h==null?void 0:h.usedKey)||i,E=(h==null?void 0:h.exactUsedKey)||i,b=["[object Number]","[object Function]","[object RegExp]"],w=s.joinArrays!==void 0?s.joinArrays:this.options.joinArrays,A=!this.i18nFormat||this.i18nFormat.handleAsObject,D=s.count!==void 0&&!q(s.count),y=Je.hasDefaultValue(s),P=D?this.pluralResolver.getSuffix(u,s.count,s):"",L=s.ordinal&&D?this.pluralResolver.getSuffix(u,s.count,{ordinal:!1}):"",U=D&&!s.ordinal&&s.count===0,V=U&&s[`defaultValue${this.options.pluralSeparator}zero`]||s[`defaultValue${P}`]||s[`defaultValue${L}`]||s.defaultValue;let C=g;A&&!g&&y&&(C=V);const M=Gt(C),W=Object.prototype.toString.apply(C);if(A&&C&&M&&b.indexOf(W)<0&&!(q(w)&&Array.isArray(C))){if(!s.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const X=this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,C,{...s,ns:l}):`key '${i} (${this.language})' returned an object instead of string.`;return a?(h.res=X,h.usedParams=this.getUsedParamsDetails(s),h):X}if(o){const X=Array.isArray(C),B=X?[]:{},ne=X?E:v;for(const J in C)if(Object.prototype.hasOwnProperty.call(C,J)){const Y=`${ne}${o}${J}`;y&&!g?B[J]=this.translate(Y,{...s,defaultValue:Gt(V)?V[J]:void 0,joinArrays:!1,ns:l}):B[J]=this.translate(Y,{...s,joinArrays:!1,ns:l}),B[J]===Y&&(B[J]=C[J])}g=B}}else if(A&&q(w)&&Array.isArray(g))g=g.join(w),g&&(g=this.extendTranslation(g,e,s,r));else{let X=!1,B=!1;!this.isValidLookup(g)&&y&&(X=!0,g=V),this.isValidLookup(g)||(B=!0,g=i);const J=(s.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&B?void 0:g,Y=y&&V!==g&&this.options.updateMissing;if(B||X||Y){if(this.logger.log(Y?"updateKey":"missingKey",u,c,i,Y?V:g),o){const m=this.resolve(i,{...s,keySeparator:!1});m&&m.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 z=[];const $=this.languageUtils.getFallbackCodes(this.options.fallbackLng,s.lng||this.language);if(this.options.saveMissingTo==="fallback"&&$&&$[0])for(let m=0;m<$.length;m++)z.push($[m]);else this.options.saveMissingTo==="all"?z=this.languageUtils.toResolveHierarchy(s.lng||this.language):z.push(s.lng||this.language);const d=(m,x,_)=>{var T;const S=y&&_!==g?_:J;this.options.missingKeyHandler?this.options.missingKeyHandler(m,c,x,S,Y,s):(T=this.backendConnector)!=null&&T.saveMissing&&this.backendConnector.saveMissing(m,c,x,S,Y,s),this.emit("missingKey",m,c,x,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&D?z.forEach(m=>{const x=this.pluralResolver.getSuffixes(m,s);U&&s[`defaultValue${this.options.pluralSeparator}zero`]&&x.indexOf(`${this.options.pluralSeparator}zero`)<0&&x.push(`${this.options.pluralSeparator}zero`),x.forEach(_=>{d([m],i+_,s[`defaultValue${_}`]||V)})}):d(z,i,V))}g=this.extendTranslation(g,e,s,h,r),B&&g===i&&this.options.appendNamespaceToMissingKey&&(g=`${c}${f}${i}`),(B||X)&&this.options.parseMissingKeyHandler&&(g=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}${f}${i}`:i,X?g:void 0,s))}return a?(h.res=g,h.usedParams=this.getUsedParamsDetails(s),h):g}extendTranslation(e,t,r,s,a){var l,c;if((l=this.i18nFormat)!=null&&l.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const f=q(e)&&(((c=r==null?void 0:r.interpolation)==null?void 0:c.skipOnVariables)!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let u;if(f){const h=e.match(this.interpolator.nestingRegexp);u=h&&h.length}let p=r.replace&&!q(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(p={...this.options.interpolation.defaultVariables,...p}),e=this.interpolator.interpolate(e,p,r.lng||this.language||s.usedLng,r),f){const h=e.match(this.interpolator.nestingRegexp),g=h&&h.length;u<g&&(r.nest=!1)}!r.lng&&s&&s.res&&(r.lng=this.language||s.usedLng),r.nest!==!1&&(e=this.interpolator.nest(e,(...h)=>(a==null?void 0:a[0])===h[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${h[0]} in key: ${t[0]}`),null):this.translate(...h,t),r)),r.interpolation&&this.interpolator.reset()}const o=r.postProcess||this.options.postProcess,i=q(o)?[o]:o;return e!=null&&(i!=null&&i.length)&&r.applyPostProcessor!==!1&&(e=hr.handle(i,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...s,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),e}resolve(e,t={}){let r,s,a,o,i;return q(e)&&(e=[e]),e.forEach(l=>{if(this.isValidLookup(r))return;const c=this.extractFromKey(l,t),f=c.key;s=f;let u=c.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));const p=t.count!==void 0&&!q(t.count),h=p&&!t.ordinal&&t.count===0,g=t.context!==void 0&&(q(t.context)||typeof t.context=="number")&&t.context!=="",v=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);u.forEach(E=>{var b,w;this.isValidLookup(r)||(i=E,!zt[`${v[0]}-${E}`]&&((b=this.utils)!=null&&b.hasLoadedNamespace)&&!((w=this.utils)!=null&&w.hasLoadedNamespace(i))&&(zt[`${v[0]}-${E}`]=!0,this.logger.warn(`key "${s}" for languages "${v.join(", ")}" won't get resolved as namespace "${i}" 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!!!")),v.forEach(A=>{var P;if(this.isValidLookup(r))return;o=A;const D=[f];if((P=this.i18nFormat)!=null&&P.addLookupKeys)this.i18nFormat.addLookupKeys(D,f,A,E,t);else{let L;p&&(L=this.pluralResolver.getSuffix(A,t.count,t));const U=`${this.options.pluralSeparator}zero`,V=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(D.push(f+L),t.ordinal&&L.indexOf(V)===0&&D.push(f+L.replace(V,this.options.pluralSeparator)),h&&D.push(f+U)),g){const C=`${f}${this.options.contextSeparator}${t.context}`;D.push(C),p&&(D.push(C+L),t.ordinal&&L.indexOf(V)===0&&D.push(C+L.replace(V,this.options.pluralSeparator)),h&&D.push(C+U))}}let y;for(;y=D.pop();)this.isValidLookup(r)||(a=y,r=this.getResource(A,E,y,t))}))})}),{res:r,usedKey:s,exactUsedKey:a,usedLng:o,usedNS:i}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,t,r,s={}){var a;return(a=this.i18nFormat)!=null&&a.getResource?this.i18nFormat.getResource(e,t,r,s):this.resourceStore.getResource(e,t,r,s)}getUsedParamsDetails(e={}){const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=e.replace&&!q(e.replace);let s=r?e.replace:e;if(r&&typeof e.count<"u"&&(s.count=e.count),this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),!r){s={...s};for(const a of t)delete s[a]}return s}static hasDefaultValue(e){const t="defaultValue";for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t===r.substring(0,t.length)&&e[r]!==void 0)return!0;return!1}}class Jt{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=pe.create("languageUtils")}getScriptPartFromCode(e){if(e=ze(e),!e||e.indexOf("-")<0)return null;const t=e.split("-");return t.length===2||(t.pop(),t[t.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(e=ze(e),!e||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(q(e)&&e.indexOf("-")>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(r=>{if(t)return;const s=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(s))&&(t=s)}),!t&&this.options.supportedLngs&&e.forEach(r=>{if(t)return;const s=this.getScriptPartFromCode(r);if(this.isSupportedCode(s))return t=s;const a=this.getLanguagePartFromCode(r);if(this.isSupportedCode(a))return t=a;t=this.options.supportedLngs.find(o=>{if(o===a)return o;if(!(o.indexOf("-")<0&&a.indexOf("-")<0)&&(o.indexOf("-")>0&&a.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===a||o.indexOf(a)===0&&a.length>1))return o})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if(typeof e=="function"&&(e=e(t)),q(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let r=e[t];return r||(r=e[this.getScriptPartFromCode(t)]),r||(r=e[this.formatLanguageCode(t)]),r||(r=e[this.getLanguagePartFromCode(t)]),r||(r=e.default),r||[]}toResolveHierarchy(e,t){const r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),s=[],a=o=>{o&&(this.isSupportedCode(o)?s.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return q(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(e))):q(e)&&a(this.formatLanguageCode(e)),r.forEach(o=>{s.indexOf(o)<0&&a(this.formatLanguageCode(o))}),s}}const Xt={zero:0,one:1,two:2,few:3,many:4,other:5},Zt={select:n=>n===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class fn{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=pe.create("pluralResolver"),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){const r=ze(e==="dev"?"en":e),s=t.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:r,type:s});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let o;try{o=new Intl.PluralRules(r,{type:s})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),Zt;if(!e.match(/-|_/))return Zt;const l=this.languageUtils.getLanguagePartFromCode(e);o=this.getRule(l,t)}return this.pluralRulesCache[a]=o,o}needsPlural(e,t={}){let r=this.getRule(e,t);return r||(r=this.getRule("dev",t)),(r==null?void 0:r.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(e,t,r={}){return this.getSuffixes(e,r).map(s=>`${t}${s}`)}getSuffixes(e,t={}){let r=this.getRule(e,t);return r||(r=this.getRule("dev",t)),r?r.resolvedOptions().pluralCategories.sort((s,a)=>Xt[s]-Xt[a]).map(s=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${s}`):[]}getSuffix(e,t,r={}){const s=this.getRule(e,r);return s?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${s.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,r))}}const Qt=(n,e,t,r=".",s=!0)=>{let a=rn(n,e,t);return!a&&s&&q(t)&&(a=mt(n,t,r),a===void 0&&(a=mt(e,t,r))),a},ut=n=>n.replace(/\$/g,"$$$$");class dn{constructor(e={}){var t;this.logger=pe.create("interpolator"),this.options=e,this.format=((t=e==null?void 0:e.interpolation)==null?void 0:t.format)||(r=>r),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:r,useRawValueToEscape:s,prefix:a,prefixEscaped:o,suffix:i,suffixEscaped:l,formatSeparator:c,unescapeSuffix:f,unescapePrefix:u,nestingPrefix:p,nestingPrefixEscaped:h,nestingSuffix:g,nestingSuffixEscaped:v,nestingOptionsSeparator:E,maxReplaces:b,alwaysFormat:w}=e.interpolation;this.escape=t!==void 0?t:sn,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=s!==void 0?s:!1,this.prefix=a?Se(a):o||"{{",this.suffix=i?Se(i):l||"}}",this.formatSeparator=c||",",this.unescapePrefix=f?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":f||"",this.nestingPrefix=p?Se(p):h||Se("$t("),this.nestingSuffix=g?Se(g):v||Se(")"),this.nestingOptionsSeparator=E||",",this.maxReplaces=b||1e3,this.alwaysFormat=w!==void 0?w:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(t,r)=>(t==null?void 0:t.source)===r?(t.lastIndex=0,t):new RegExp(r,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,r,s){var h;let a,o,i;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=g=>{if(g.indexOf(this.formatSeparator)<0){const w=Qt(t,l,g,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(w,void 0,r,{...s,...t,interpolationkey:g}):w}const v=g.split(this.formatSeparator),E=v.shift().trim(),b=v.join(this.formatSeparator).trim();return this.format(Qt(t,l,E,this.options.keySeparator,this.options.ignoreJSONStructure),b,r,{...s,...t,interpolationkey:E})};this.resetRegExp();const f=(s==null?void 0:s.missingInterpolationHandler)||this.options.missingInterpolationHandler,u=((h=s==null?void 0:s.interpolation)==null?void 0:h.skipOnVariables)!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:g=>ut(g)},{regex:this.regexp,safeValue:g=>this.escapeValue?ut(this.escape(g)):ut(g)}].forEach(g=>{for(i=0;a=g.regex.exec(e);){const v=a[1].trim();if(o=c(v),o===void 0)if(typeof f=="function"){const b=f(e,a,s);o=q(b)?b:""}else if(s&&Object.prototype.hasOwnProperty.call(s,v))o="";else if(u){o=a[0];continue}else this.logger.warn(`missed to pass in variable ${v} for interpolating ${e}`),o="";else!q(o)&&!this.useRawValueToEscape&&(o=Wt(o));const E=g.safeValue(o);if(e=e.replace(a[0],E),u?(g.regex.lastIndex+=o.length,g.regex.lastIndex-=a[0].length):g.regex.lastIndex=0,i++,i>=this.maxReplaces)break}}),e}nest(e,t,r={}){let s,a,o;const i=(l,c)=>{const f=this.nestingOptionsSeparator;if(l.indexOf(f)<0)return l;const u=l.split(new RegExp(`${f}[ ]*{`));let p=`{${u[1]}`;l=u[0],p=this.interpolate(p,o);const h=p.match(/'/g),g=p.match(/"/g);(((h==null?void 0:h.length)??0)%2===0&&!g||g.length%2!==0)&&(p=p.replace(/'/g,'"'));try{o=JSON.parse(p),c&&(o={...c,...o})}catch(v){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,v),`${l}${f}${p}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,l};for(;s=this.nestingRegexp.exec(e);){let l=[];o={...r},o=o.replace&&!q(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let c=!1;if(s[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(s[1])){const f=s[1].split(this.formatSeparator).map(u=>u.trim());s[1]=f.shift(),l=f,c=!0}if(a=t(i.call(this,s[1].trim(),o),o),a&&s[0]===e&&!q(a))return a;q(a)||(a=Wt(a)),a||(this.logger.warn(`missed to resolve ${s[1]} for nesting ${e}`),a=""),c&&(a=l.reduce((f,u)=>this.format(f,u,r.lng,{...r,interpolationkey:s[1].trim()}),a.trim())),e=e.replace(s[0],a),this.regexp.lastIndex=0}return e}}const pn=n=>{let e=n.toLowerCase().trim();const t={};if(n.indexOf("(")>-1){const r=n.split("(");e=r[0].toLowerCase().trim();const s=r[1].substring(0,r[1].length-1);e==="currency"&&s.indexOf(":")<0?t.currency||(t.currency=s.trim()):e==="relativetime"&&s.indexOf(":")<0?t.range||(t.range=s.trim()):s.split(";").forEach(o=>{if(o){const[i,...l]=o.split(":"),c=l.join(":").trim().replace(/^'+|'+$/g,""),f=i.trim();t[f]||(t[f]=c),c==="false"&&(t[f]=!1),c==="true"&&(t[f]=!0),isNaN(c)||(t[f]=parseInt(c,10))}})}return{formatName:e,formatOptions:t}},Ee=n=>{const e={};return(t,r,s)=>{let a=s;s&&s.interpolationkey&&s.formatParams&&s.formatParams[s.interpolationkey]&&s[s.interpolationkey]&&(a={...a,[s.interpolationkey]:void 0});const o=r+JSON.stringify(a);let i=e[o];return i||(i=n(ze(r),s),e[o]=i),i(t)}};class hn{constructor(e={}){this.logger=pe.create("formatter"),this.options=e,this.formats={number:Ee((t,r)=>{const s=new Intl.NumberFormat(t,{...r});return a=>s.format(a)}),currency:Ee((t,r)=>{const s=new Intl.NumberFormat(t,{...r,style:"currency"});return a=>s.format(a)}),datetime:Ee((t,r)=>{const s=new Intl.DateTimeFormat(t,{...r});return a=>s.format(a)}),relativetime:Ee((t,r)=>{const s=new Intl.RelativeTimeFormat(t,{...r});return a=>s.format(a,r.range||"day")}),list:Ee((t,r)=>{const s=new Intl.ListFormat(t,{...r});return a=>s.format(a)})},this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=Ee(t)}format(e,t,r,s={}){const a=t.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(i=>i.indexOf(")")>-1)){const i=a.findIndex(l=>l.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,i)].join(this.formatSeparator)}return a.reduce((i,l)=>{var u;const{formatName:c,formatOptions:f}=pn(l);if(this.formats[c]){let p=i;try{const h=((u=s==null?void 0:s.formatParams)==null?void 0:u[s.interpolationkey])||{},g=h.locale||h.lng||s.locale||s.lng||r;p=this.formats[c](i,g,{...f,...s,...h})}catch(h){this.logger.warn(h)}return p}else this.logger.warn(`there was no format function for ${c}`);return i},e)}}const mn=(n,e)=>{n.pending[e]!==void 0&&(delete n.pending[e],n.pendingCount--)};class gn extends tt{constructor(e,t,r,s={}){var a,o;super(),this.backend=e,this.store=t,this.services=r,this.languageUtils=r.languageUtils,this.options=s,this.logger=pe.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=s.maxParallelReads||10,this.readingCalls=0,this.maxRetries=s.maxRetries>=0?s.maxRetries:5,this.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,this.state={},this.queue=[],(o=(a=this.backend)==null?void 0:a.init)==null||o.call(a,r,s.backend,s)}queueLoad(e,t,r,s){const a={},o={},i={},l={};return e.forEach(c=>{let f=!0;t.forEach(u=>{const p=`${c}|${u}`;!r.reload&&this.store.hasResourceBundle(c,u)?this.state[p]=2:this.state[p]<0||(this.state[p]===1?o[p]===void 0&&(o[p]=!0):(this.state[p]=1,f=!1,o[p]===void 0&&(o[p]=!0),a[p]===void 0&&(a[p]=!0),l[u]===void 0&&(l[u]=!0)))}),f||(i[c]=!0)}),(Object.keys(a).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(a),pending:Object.keys(o),toLoadLanguages:Object.keys(i),toLoadNamespaces:Object.keys(l)}}loaded(e,t,r){const s=e.split("|"),a=s[0],o=s[1];t&&this.emit("failedLoading",a,o,t),!t&&r&&this.store.addResourceBundle(a,o,r,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&r&&(this.state[e]=0);const i={};this.queue.forEach(l=>{tn(l.loaded,[a],o),mn(l,e),t&&l.errors.push(t),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(c=>{i[c]||(i[c]={});const f=l.loaded[c];f.length&&f.forEach(u=>{i[c][u]===void 0&&(i[c][u]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",i),this.queue=this.queue.filter(l=>!l.done)}read(e,t,r,s=0,a=this.retryTimeout,o){if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:r,tried:s,wait:a,callback:o});return}this.readingCalls++;const i=(c,f)=>{if(this.readingCalls--,this.waitingReads.length>0){const u=this.waitingReads.shift();this.read(u.lng,u.ns,u.fcName,u.tried,u.wait,u.callback)}if(c&&f&&s<this.maxRetries){setTimeout(()=>{this.read.call(this,e,t,r,s+1,a*2,o)},a);return}o(c,f)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const c=l(e,t);c&&typeof c.then=="function"?c.then(f=>i(null,f)).catch(i):i(null,c)}catch(c){i(c)}return}return l(e,t,i)}prepareLoading(e,t,r={},s){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),s&&s();q(e)&&(e=this.languageUtils.toResolveHierarchy(e)),q(t)&&(t=[t]);const a=this.queueLoad(e,t,r,s);if(!a.toLoad.length)return a.pending.length||s(),null;a.toLoad.forEach(o=>{this.loadOne(o)})}load(e,t,r){this.prepareLoading(e,t,{},r)}reload(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}loadOne(e,t=""){const r=e.split("|"),s=r[0],a=r[1];this.read(s,a,"read",void 0,void 0,(o,i)=>{o&&this.logger.warn(`${t}loading namespace ${a} for language ${s} failed`,o),!o&&i&&this.logger.log(`${t}loaded namespace ${a} for language ${s}`,i),this.loaded(e,o,i)})}saveMissing(e,t,r,s,a,o={},i=()=>{}){var l,c,f,u,p;if((c=(l=this.services)==null?void 0:l.utils)!=null&&c.hasLoadedNamespace&&!((u=(f=this.services)==null?void 0:f.utils)!=null&&u.hasLoadedNamespace(t))){this.logger.warn(`did not save key "${r}" as the namespace "${t}" 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(!(r==null||r==="")){if((p=this.backend)!=null&&p.create){const h={...o,isUpdate:a},g=this.backend.create.bind(this.backend);if(g.length<6)try{let v;g.length===5?v=g(e,t,r,s,h):v=g(e,t,r,s),v&&typeof v.then=="function"?v.then(E=>i(null,E)).catch(i):i(null,v)}catch(v){i(v)}else g(e,t,r,s,i,h)}!e||!e[0]||this.store.addResource(e[0],t,r,s)}}}const er=()=>({debug:!1,initAsync:!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:n=>{let e={};if(typeof n[1]=="object"&&(e=n[1]),q(n[1])&&(e.defaultValue=n[1]),q(n[2])&&(e.tDescription=n[2]),typeof n[2]=="object"||typeof n[3]=="object"){const t=n[3]||n[2];Object.keys(t).forEach(r=>{e[r]=t[r]})}return e},interpolation:{escapeValue:!0,format:n=>n,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),tr=n=>{var e,t;return q(n.ns)&&(n.ns=[n.ns]),q(n.fallbackLng)&&(n.fallbackLng=[n.fallbackLng]),q(n.fallbackNS)&&(n.fallbackNS=[n.fallbackNS]),((t=(e=n.supportedLngs)==null?void 0:e.indexOf)==null?void 0:t.call(e,"cimode"))<0&&(n.supportedLngs=n.supportedLngs.concat(["cimode"])),typeof n.initImmediate=="boolean"&&(n.initAsync=n.initImmediate),n},Ue=()=>{},yn=n=>{Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach(t=>{typeof n[t]=="function"&&(n[t]=n[t].bind(n))})};class je extends tt{constructor(e={},t){if(super(),this.options=tr(e),this.services={},this.logger=pe,this.modules={external:[]},yn(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,typeof e=="function"&&(t=e,e={}),e.defaultNS==null&&e.ns&&(q(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const r=er();this.options={...r,...this.options,...tr(e)},this.options.interpolation={...r.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator);const s=c=>c?typeof c=="function"?new c:c:null;if(!this.options.isClone){this.modules.logger?pe.init(s(this.modules.logger),this.options):pe.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:c=hn;const f=new Jt(this.options);this.store=new Bt(this.options.resources,this.options);const u=this.services;u.logger=pe,u.resourceStore=this.store,u.languageUtils=f,u.pluralResolver=new fn(f,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(u.formatter=s(c),u.formatter.init(u,this.options),this.options.interpolation.format=u.formatter.format.bind(u.formatter)),u.interpolator=new dn(this.options),u.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},u.backendConnector=new gn(s(this.modules.backend),u.resourceStore,u,this.options),u.backendConnector.on("*",(p,...h)=>{this.emit(p,...h)}),this.modules.languageDetector&&(u.languageDetector=s(this.modules.languageDetector),u.languageDetector.init&&u.languageDetector.init(u,this.options.detection,this.options)),this.modules.i18nFormat&&(u.i18nFormat=s(this.modules.i18nFormat),u.i18nFormat.init&&u.i18nFormat.init(this)),this.translator=new Je(this.services,this.options),this.translator.on("*",(p,...h)=>{this.emit(p,...h)}),this.modules.external.forEach(p=>{p.init&&p.init(this)})}if(this.format=this.options.interpolation.format,t||(t=Ue),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!=="dev"&&(this.options.lng=c[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(c=>{this[c]=(...f)=>this.store[c](...f)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=(...f)=>(this.store[c](...f),this)});const i=Pe(),l=()=>{const c=(f,u)=>{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),i.resolve(u),t(f,u)};if(this.languages&&!this.isInitialized)return c(null,this.t.bind(this));this.changeLanguage(this.options.lng,c)};return this.options.resources||!this.options.initAsync?l():setTimeout(l,0),i}loadResources(e,t=Ue){var a,o;let r=t;const s=q(e)?e:this.language;if(typeof e=="function"&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if((s==null?void 0:s.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const i=[],l=c=>{if(!c||c==="cimode")return;this.services.languageUtils.toResolveHierarchy(c).forEach(u=>{u!=="cimode"&&i.indexOf(u)<0&&i.push(u)})};s?l(s):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(f=>l(f)),(o=(a=this.options.preload)==null?void 0:a.forEach)==null||o.call(a,c=>l(c)),this.services.backendConnector.load(i,this.options.ns,c=>{!c&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(c)})}else r(null)}reloadResources(e,t,r){const s=Pe();return typeof e=="function"&&(r=e,e=void 0),typeof t=="function"&&(r=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),r||(r=Ue),this.services.backendConnector.reload(e,t,a=>{s.resolve(),r(a)}),s}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&hr.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1)){for(let t=0;t<this.languages.length;t++){const r=this.languages[t];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;const r=Pe();this.emit("languageChanging",e);const s=i=>{this.language=i,this.languages=this.services.languageUtils.toResolveHierarchy(i),this.resolvedLanguage=void 0,this.setResolvedLanguage(i)},a=(i,l)=>{l?this.isLanguageChangingTo===e&&(s(l),this.translator.changeLanguage(l),this.isLanguageChangingTo=void 0,this.emit("languageChanged",l),this.logger.log("languageChanged",l)):this.isLanguageChangingTo=void 0,r.resolve((...c)=>this.t(...c)),t&&t(i,(...c)=>this.t(...c))},o=i=>{var f,u;!e&&!i&&this.services.languageDetector&&(i=[]);const l=q(i)?i:i&&i[0],c=this.store.hasLanguageSomeTranslations(l)?l:this.services.languageUtils.getBestMatchFromCodes(q(i)?[i]:i);c&&(this.language||s(c),this.translator.language||this.translator.changeLanguage(c),(u=(f=this.services.languageDetector)==null?void 0:f.cacheUserLanguage)==null||u.call(f,c)),this.loadResources(c,p=>{a(p,c)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?o(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(e),r}getFixedT(e,t,r){const s=(a,o,...i)=>{let l;typeof o!="object"?l=this.options.overloadTranslationOptionHandler([a,o].concat(i)):l={...o},l.lng=l.lng||s.lng,l.lngs=l.lngs||s.lngs,l.ns=l.ns||s.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||r||s.keyPrefix);const c=this.options.keySeparator||".";let f;return l.keyPrefix&&Array.isArray(a)?f=a.map(u=>`${l.keyPrefix}${c}${u}`):f=l.keyPrefix?`${l.keyPrefix}${c}${a}`:a,this.t(f,l)};return q(e)?s.lng=e:s.lngs=e,s.ns=t,s.keyPrefix=r,s}t(...e){var t;return(t=this.translator)==null?void 0:t.translate(...e)}exists(...e){var t;return(t=this.translator)==null?void 0:t.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){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 r=t.lng||this.resolvedLanguage||this.languages[0],s=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(i,l)=>{const c=this.services.backendConnector.state[`${i}|${l}`];return c===-1||c===0||c===2};if(t.precheck){const i=t.precheck(this,o);if(i!==void 0)return i}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(r,e)&&(!s||o(a,e)))}loadNamespaces(e,t){const r=Pe();return this.options.ns?(q(e)&&(e=[e]),e.forEach(s=>{this.options.ns.indexOf(s)<0&&this.options.ns.push(s)}),this.loadResources(s=>{r.resolve(),t&&t(s)}),r):(t&&t(),Promise.resolve())}loadLanguages(e,t){const r=Pe();q(e)&&(e=[e]);const s=this.options.preload||[],a=e.filter(o=>s.indexOf(o)<0&&this.services.languageUtils.isSupportedCode(o));return a.length?(this.options.preload=s.concat(a),this.loadResources(o=>{r.resolve(),t&&t(o)}),r):(t&&t(),Promise.resolve())}dir(e){var s,a;if(e||(e=this.resolvedLanguage||(((s=this.languages)==null?void 0:s.length)>0?this.languages[0]:this.language)),!e)return"rtl";const t=["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"],r=((a=this.services)==null?void 0:a.languageUtils)||new Jt(er());return t.indexOf(r.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},t){return new je(e,t)}cloneInstance(e={},t=Ue){const r=e.forkResourceStore;r&&delete e.forkResourceStore;const s={...this.options,...e,isClone:!0},a=new je(s);if((e.debug!==void 0||e.prefix!==void 0)&&(a.logger=a.logger.clone(e)),["store","services","language"].forEach(i=>{a[i]=this[i]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r){const i=Object.keys(this.store.data).reduce((l,c)=>(l[c]={...this.store.data[c]},l[c]=Object.keys(l[c]).reduce((f,u)=>(f[u]={...l[c][u]},f),l[c]),l),{});a.store=new Bt(i,s),a.services.resourceStore=a.store}return a.translator=new Je(a.services,s),a.translator.on("*",(i,...l)=>{a.emit(i,...l)}),a.init(s,t),a.translator.options=s,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const se=je.createInstance();se.createInstance=je.createInstance;se.createInstance;se.dir;se.init;se.loadResources;se.reloadResources;se.use;se.changeLanguage;se.getFixedT;se.t;se.exists;se.setDefaultNamespace;se.hasLoadedNamespace;se.loadNamespaces;se.loadLanguages;const vn={Friday:"Venerdì",FridayShort:"Ven",Monday:"Lunedì",MondayShort:"Lun",Saturday:"Sabato",SaturdayShort:"Sab",Sunday:"Domenica",SundayShort:"Dom",Tuesday:"Martedì",TuesdayShort:"Mar",Thursday:"Giovedì",ThursdayShort:"Gio",Wednesday:"Mercoledì",WednesdayShort:"Mer"},bn={April:"Aprile",August:"Agosto",December:"Dicembre",February:"Febbraio",January:"Gennaio",June:"Giugno",July:"Luglio",March:"Marzo",May:"Maggio",October:"Ottobre",November:"Novembre",September:"Settembre"},xn={CalendarFor:"Calendario per",Close:"Chiudi"},Sn={Date:{NextDay:"Giorno Successivo",NextMonth:"Mese Successivo",NextWeek:"Settimana Successiva",NextYear:"Anno Successivo",PreviousDay:"Giorno Precedente",PreviousMonth:"Mese Precedente",PreviousWeek:"Settimana Precedente",PreviousYear:"Anno Precedente",Today:"Oggi",Tomorrow:"Domani",Yesterday:"Ieri"},Day:vn,Month:bn,Generic:xn},En={Friday:"Friday",FridayShort:"Fri",Monday:"Monday",MondayShort:"Mon",Saturday:"Saturday",SaturdayShort:"Sat",Sunday:"Sunday",SundayShort:"Sun",Tuesday:"Tuesday",TuesdayShort:"Tue",Thursday:"Thursday",ThursdayShort:"Thu",Wednesday:"Wednesday",WednesdayShort:"Wed"},_n={April:"April",August:"August",December:"December",February:"February",January:"January",July:"July",June:"June",March:"March",May:"May",November:"November",October:"October",September:"September"},wn={CalendarFor:"Calendar for",Close:"Close"},On={Date:{NextDay:"Next Day",NextMonth:"Next Month",NextWeek:"Next Week",NextYear:"Next Year",PreviousDay:"Previous Day",PreviousMonth:"Previous Month",PreviousWeek:"Previous Week",PreviousYear:"Previous Year",Today:"Today",Tomorrow:"Tomorrow",Yesterday:"Yesterday"},Day:En,Month:_n,Generic:wn};function rr(n,e){return new RegExp(Tn(n),e)}function Tn(n){return n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Rn(n,e,t,r){let s=e;const a=Dn(n,t);if(!s){const i=Math.abs(a);i-Math.floor(i)?s="0,0.00":s="0,0"}const o=Pn(s);return new Intl.NumberFormat(r,o).format(a)}function Dn(n,e,t,r,s){let a=n;if(typeof a!="number"){let i;e&&r===void 0?i=",":i=".";const l=i=="."?",":".";a=a.replace(rr(l,"g"),""),a=a.replace(rr(i,"g"),"."),a=Number(a)}const o=Number(a);return isNaN(o)?NaN:o}function Pn(n){const e={};n.includes(",")?e.useGrouping=!0:e.useGrouping=!1;const t=n.indexOf(".");if(t>-1){const s=(n.substring(t+1).match(/0/g)||[]).length;e.minimumFractionDigits=s,e.maximumFractionDigits=s}else e.minimumFractionDigits=0,e.maximumFractionDigits=0;return e}se.init({lng:typeof navigator<"u"&&navigator.language.split("-")[0]||"en",fallbackLng:"en",debug:!1,interpolation:{escapeValue:!1,format:(n,e,t,r)=>{const s=(r==null?void 0:r.type)??"number";try{switch(s){case"date":{const a=n instanceof Date?n:new Date(n);return new Intl.DateTimeFormat(t,{dateStyle:e||"short"}).format(a)}default:case"number":{const a=(r==null?void 0:r.inputIsLocalized)??!1;return Rn(n,e,a,t)}}}catch{return n}}},resources:{en:{translation:On},it:{translation:Sn}}});const An=(n,e,t,r)=>se.format(n,e,t||se.language,r),Cn=(n,e)=>se.t(n,e);function bt(){const n=F.useCallback((r,s,a,o)=>An(r,s,a||void 0,o),[]),e=F.useCallback(()=>se.languages[0],[]),t=F.useCallback((r,s)=>Cn(r,s),[]);return{format:n,getCurrentLanguage:e,translate:t}}const $e=n=>n==null?!1:typeof n=="string"?n.toLocaleLowerCase()=="yes":n;function nr(n){if(n)return n.toLowerCase()}const kn=({ColumnsNumber:n=1,data:e={},ForceText:t,TextColName:r,TextColor:s="var(--smp-dashList-color-base)",Fillspace:a,FontSize:o,Horizontal:i,ForceIcon:l,IconColName:c,IconColor:f="var(--smp-dashList-color-base)",NumberFormat:u,ForceUM:p,UmColName:h,UmColor:g="var(--smp-dashList-color-base)",ForceValue:v,ValueColName:E,ValueColor:b="var(--smp-dashList-color-base)",SelectLayout:w="1",onClick:A})=>{const D="N/A",y=(e==null?void 0:e.columns)||[],P=(e==null?void 0:e.rows)||[],L=P.length>0,U="--smp-dashList-color",V="smp-layout",C="descr",M="icon",W="um",X="value",B=o||"1em",ne="18px",J="--smp-dashList-columns",Y="--smp-dashList-fontSize",z={dash:(N="1")=>{const G=d(N),ee=De[G],te=m(G,C),le=m(G,M),ge=m(G,W),ce=m(G,X);return{container:ee,descr:te,icon:le,um:ge,value:ce}},dashList:`${De["smp-dash-list"]} ${$e(a)?De["smp-dash-list-fill-space"]:""}
46
+ ${$e(i)?De["smp-dash-list-horizontal"]:""}`},{format:$}=bt(),d=N=>`${V}-${N}`,m=(N,G)=>De[`${N}__${G}`],x=N=>`${U}-${N}`,_=N=>{const G=/R(\d{1,3})G(\d{1,3})B(\d{1,3})/;if(G.test(N)){const te=N.match(G)||[];if((te==null?void 0:te.length)>3)return"rgb("+te[1]+","+te[2]+","+te[3]+")"}return N},S=N=>{if(!u)return N;const[G,ee]=T(u).map(xe=>parseInt(xe||"0")),te="0,0"+(ee?"."+"0".repeat(ee):""),le=$(N,te,"it");if(!G)return le;const[ge,ce]=le.split(",");return ge+(ce?`,${ce}`:"")},T=N=>N.includes(";")?N.split(";"):[N],j=N=>{const G=te=>{var le;if(te)return(le=N==null?void 0:N.cells[te])==null?void 0:le.obj.k},ee=te=>{var le,ge;if(!(y.length<=te))return(ge=(le=N==null?void 0:N.cells[y[te].name])==null?void 0:le.obj)==null?void 0:ge.k};return{descr:t||G(r)||ee(2)||"",icon:l||G(c)||ee(3)||"",um:p||G(h)||ee(1)||"",value:v||G(E)||ee(0)||""}},I=N=>{A==null||A(N)},k=(N,G)=>{(N.key==="Enter"||N.key===" ")&&(N.preventDefault(),N.stopPropagation(),I(G))},H=(N=>{const G=z.dash(N);return{className:G,descr:ee=>O.jsx("div",{className:G.descr,children:ee},`${N}-${C}`),icon:ee=>O.jsx("div",{className:G.icon,children:O.jsx(me,{color:f,height:ne,icon:ee,width:ne})},`${N}-${M}`),um:ee=>O.jsx("div",{className:G.um,children:ee},`${N}-${W}`),value:ee=>O.jsx("div",{className:G.value,children:ee},`${N}-${X}`)}})(w),re=N=>{const{descr:G,icon:ee,um:te,value:le}=j(N),ge={[x(C)]:_(s),[x(W)]:_(g),[x(X)]:_(b)},ce=[],xe=S(le);switch(w){case"2":ee&&ce.push(H.icon(ee)),ce.push(H.descr(G)),ce.push(H.value(te?xe+" "+te:xe));break;default:case"1":ce.push(H.descr(G)),ce.push(H.value(te?xe+" "+te:xe))}return O.jsx("div",{className:H.className.container,role:"button",style:ge,tabIndex:0,onClick:()=>I(N),onKeyDown:wr=>k(wr,N),children:ce},N.id)},R={[J]:String(n),[Y]:B};return O.jsx("div",{className:z.dashList,style:R,children:L?P.map(N=>re(N)):D})},fe={AUTOCOMPLETE:"ACP",BUTTON:"BTN",CHECKBOX:"CHK",CHIP:"CHI",COMBOBOX:"CMB",DATE:"CAL",ICON:"ICO",MULTI_AUTOCOMPLETE:"AML",TEXT_FIELD:"ITX",PASSWORD:"PWD"},$n=n=>n.t=="D8",jn=n=>{if(n){const e=n.split(";");if(e.length==3)return{t:e[0],p:e[1],k:e[2]}}return{t:"",p:"",k:""}};class Xe{constructor(e,t){ve(this,"class");ve(this,"value");this.class=e,this.value=t}static fromDataObj(e){return new Xe(e,e.k=="1"||e.k=="true")}getValue(){return this.value}getLegacyValue(){if(this.class.t=="V2"){if(this.class.p=="SI/NO")return this.value?"1":" ";if(this.class.p=="ON/OFF")return this.value?"1":"0"}return this.value?"true":"false"}}function Ln(n,e){if(xt(n)){const f=new Date(n);if(!isNaN(f.getTime()))return f}const t=new Date,r=n.replaceAll("/","").replaceAll("-","");let s="DDMMYYYY";e==="en"&&(s="MMDDYYYY");const a=s.indexOf("DD"),o=s.indexOf("MM");let i=0,l=0,c="";switch(r.length){case 1:case 2:return i=parseInt(r),t.setDate(i),We(t)?t:n;case 3:case 4:return i=parseInt(r.substring(0,2)),l=parseInt(r.substring(2,4)),o===0?(t.setDate(l),t.setMonth(i-1)):a===0&&(t.setDate(i),t.setMonth(l-1)),We(t)?t:n;case 5:case 6:{i=parseInt(r.substring(0,2)),l=parseInt(r.substring(2,4)),Number(r.substring(4))>50?c="19"+r.substring(4):c="20"+r.substring(4);let f=0,u=0;return o===0?(f=l,u=i-1,t.setFullYear(parseInt(c),u,f)):a===0&&(f=i,u=l-1,t.setFullYear(parseInt(c),u,f)),gt(i,u,parseInt(c))&&We(t)?t:n}case 7:case 8:{i=parseInt(r.substring(0,2)),l=parseInt(r.substring(2,4)),c=r.substring(4);let f=0,u=0;return o===0?(f=l,u=i-1,t.setFullYear(parseInt(c),u,f)):a===0&&(f=i,u=l-1,t.setFullYear(parseInt(c),u,f)),gt(f,u,parseInt(c))&&We(t)?t:n}}return n}function xt(n){return/^\d{4}-\d{2}-\d{2}$/.test(n)&&n.length===10}function We(n){return n instanceof Date&&!isNaN(n.getTime())}function In(n){if(!/^\d{8}$/.test(n))return!1;const e=parseInt(n.slice(0,4),10),t=parseInt(n.slice(4,6),10),r=parseInt(n.slice(6,8),10);return gt(r,t-1,e)}function gt(n,e,t){const r=[31,Nn(t)?29:28,31,30,31,30,31,31,30,31,30,31];return!(e<0||e>11||n<1||n>r[e])}function Nn(n){return n%4===0&&(n%100!==0||n%400===0)}function Mn(n){const e=n.getFullYear(),t=String(n.getMonth()+1).padStart(2,"0"),r=String(n.getDate()).padStart(2,"0");return isNaN(e)||isNaN(Number(t))||isNaN(Number(r))?n.toString():`${e}-${t}-${r}`}class Ze{constructor(e,t){ve(this,"class");ve(this,"date");this.class=e,this.date=t}static fromDataObj(e){const t=sr.get(`${e.t}${e.p}`);if(t)return new Ze(e,t.legacyToIso(e.k));throw new Error(`Date creation from ${e.t}${e.p} not implemented yet`)}getLegacyValue(){const e=sr.get(`${this.class.t}${this.class.p}`);if(e)return e.isoToLegacy(this.date);throw new Error(`Date object not implemented ${this.class.t}${this.class.p}`)}getValue(){return this.date}}const sr=new Map([["D8*YYMD",{legacyToIso(n){return In(n)&&`${n.substring(0,4)}-${n.substring(4,6)}-${n.substring(6,8)}`||n},isoToLegacy(n){return xt(n)&&n.replaceAll("-","")||n}}]]),Qe=(n,e)=>{F.useEffect(()=>{const t=r=>{typeof n=="object"&&n!==null&&"current"in n&&n.current&&!n.current.contains(r.target)&&e()};return document.addEventListener("mousedown",t),()=>{document.removeEventListener("mousedown",t)}},[n,e])};function St({position:n="bottom",enabled:e=!0}){const t=F.useRef(null),r=F.useRef(null),[s,a]=F.useState(0),o=F.useCallback(()=>{const i=t.current,l=r.current;if(!i||!l)return;const{top:c,left:f,width:u,height:p}=i.getBoundingClientRect();a(u);const h=l.offsetHeight,g=l.offsetWidth;if(g===0||h===0){requestAnimationFrame(o);return}let v=c+window.scrollY,E=f+window.scrollX;switch(n){case"top":v-=h;break;case"bottom":v+=p;break;case"left":E-=g;break;case"right":E+=u;break}requestAnimationFrame(()=>{l.style.transform=`translate(${E}px, ${v}px)`})},[n]);return F.useLayoutEffect(()=>{e&&t.current&&r.current&&o();const i=new MutationObserver(()=>{r.current&&o()});return r.current&&i.observe(r.current,{childList:!0,subtree:!0}),window.addEventListener("resize",o),window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("resize",o),window.removeEventListener("scroll",o,!0),i.disconnect()}},[o,e]),{anchorRef:t,targetRef:r,anchorWidth:s}}const et=(n,e,t)=>{if(t)switch(t){case"CodeOnly":return n;case"DescOnly":return e||"";case"Both":return`${n} - ${e}`}return n},Ae={"smp-list":"_smp-list_1ux5k_1","smp-list-container":"_smp-list-container_1ux5k_18","smp-list-listItem":"_smp-list-listItem_1ux5k_23"},ft={"smp-helper-text":"_smp-helper-text_10pis_1","smp-helper-text-danger":"_smp-helper-text-danger_10pis_9","smp-helper-text-warning":"_smp-helper-text-warning_10pis_13","smp-helper-text-disabled":"_smp-helper-text-disabled_10pis_17"},Fn=({helperText:n,disabled:e,state:t})=>{const r={container:`${ft["smp-helper-text"]} ${e?ft["smp-helper-text-disabled"]:""} ${t?ft[`smp-helper-text-${t}`]:""}`};return O.jsx("span",{className:r.container,children:n})},ar={"smp-label":"_smp-label_3ywt3_1","smp-label-disabled":"_smp-label-disabled_3ywt3_5"},Vn=({label:n,disabled:e})=>{const t={container:`${ar["smp-label"]} ${e?ar["smp-label-disabled"]:""}`};return O.jsx("span",{className:t.container,children:n})},he={"smp-textfield-wrapper":"_smp-textfield-wrapper_1tjct_4","smp-textfield":"_smp-textfield_1tjct_4","smp-textfield-extraSmall":"_smp-textfield-extraSmall_1tjct_63","smp-textfield-small":"_smp-textfield-small_1tjct_68","smp-textfield-medium":"_smp-textfield-medium_1tjct_73","smp-textfield-large":"_smp-textfield-large_1tjct_78","smp-textfield-extraLarge":"_smp-textfield-extraLarge_1tjct_83","smp-textfield-input":"_smp-textfield-input_1tjct_89","smp-textfield-danger":"_smp-textfield-danger_1tjct_106","smp-textfield-readOnly":"_smp-textfield-readOnly_1tjct_110","smp-textfield-variant-notSelectable":"_smp-textfield-variant-notSelectable_1tjct_115","smp-textfield-disabled":"_smp-textfield-disabled_1tjct_125"},we=({disabled:n,readOnly:e,bindValue:t,icon:r,onBlur:s,onChange:a,placeholder:o,shapeIcon:i,sizing:l,state:c,variant:f,rotatedShapeIcon:u=!1,onShapeIconClick:p,ref:h,inputRef:g,onKeyDown:v,inputType:E="text",ariaLabel:b="input field",label:w,helperText:A=!1,error:D})=>{const y=D?"danger":c,P=D||c=="danger"?"error":i,L=A||!!D,U=C=>{a==null||a(C.target.value)},V={wrapper:`${he["smp-textfield-wrapper"]}`,container:`${he["smp-textfield"]} ${n?he["smp-textfield-disabled"]:""} ${e?he["smp-textfield-readOnly"]:""} ${o?he["smp-textfield-placeholder"]:""} ${l?he[`smp-textfield-${l}`]:""} ${y?he[`smp-textfield-${y}`]:""} ${f?he[`smp-textfield-variant-${f}`]:""}`,input:`${he["smp-textfield-input"]}`};return O.jsxs("div",{className:V.wrapper,children:[w&&O.jsx(Vn,{label:w,disabled:n}),O.jsxs("div",{className:V.container,ref:h,children:[r&&O.jsx(me,{icon:r,disabled:n}),O.jsx("input",{type:E,value:t,placeholder:o,onChange:U,onBlur:s,className:V.input,disabled:n,readOnly:e,onKeyDown:v,"aria-label":b,ref:g}),P&&O.jsx(me,{icon:P,disabled:n,state:y,onClick:p,rotated:u})]}),L&&O.jsx(Fn,{helperText:D,disabled:n,state:y})]})};function Yn({items:n,itemHeight:e,containerHeight:t,overscan:r=5}){const[s,a]=F.useState(0),o=F.useRef(null),i=n.length*e,l=Math.max(0,Math.floor(s/e)-r),c=Math.min(n.length-1,Math.floor((s+t)/e)+r),f=[];for(let h=l;h<=c;h++)f.push({item:n[h],index:h,offsetTop:h*e});const u=F.useCallback(h=>{const g=h.target.scrollTop;a(g)},[]),p=h=>{if(!o.current)return;const g=h*e,v=g+e,E=o.current,b=E.scrollTop,w=b+t;g<b?E.scrollTop=g:v>w&&(E.scrollTop=v-t)};return{virtualItems:f,containerProps:{ref:o,style:{maxHeight:`${t}px`,overflowY:"auto",position:"relative",willChange:"transform"},onScroll:u},innerProps:{style:{height:`${i}px`,position:"relative",width:"100%"}},scrollInfo:{scrollTop:s,viewportHeight:t,totalHeight:i,startIndex:l,endIndex:c},scrollToIndex:p}}const Un=10,mr=({id:n,options:e,displayMode:t,ref:r,showFilter:s,selectedIndex:a=null,activeIndex:o=[],width:i,onClick:l,onKeyDown:c})=>{var C;const[f,u]=F.useState(""),p=24,[h,g]=F.useState(a!==null?a:-1),v=s!==void 0?s:e.length>Un,E=f?e.filter(M=>M.label.toLowerCase().includes(f.toLowerCase())):e,b=M=>{u(M)},{virtualItems:w,containerProps:A,innerProps:D,scrollToIndex:y}=Yn({items:E,itemHeight:p,containerHeight:200,overscan:5});F.useEffect(()=>{a!==null&&a!==h&&g(a)},[a]),F.useEffect(()=>{h>=0&&h<E.length&&y(h)},[h,E]);const P=M=>{if(M.key==="ArrowDown"||M.key==="ArrowUp"){M.preventDefault();let W=h;M.key==="ArrowDown"?W=h<E.length-1?h+1:0:M.key==="ArrowUp"&&(W=h>0?h-1:E.length-1),g(W)}else M.key==="Enter"?h>=0&&h<E.length&&(l==null||l(E[h])):M.key==="Escape"&&(M.preventDefault(),M.stopPropagation());c&&c(M)},L=M=>{P(M)},U=M=>{P(M)},V={wrapper:`${Ae["smp-list"]}`,container:`${Ae["smp-list-container"]}`,virtualScroll:`${Ae["smp-list-virtualScroll"]}`,listItem:`${Ae["smp-list-listItem"]}`};return O.jsxs("div",{id:n,ref:r,className:V.wrapper,style:{width:i},children:[v&&O.jsx(we,{bindValue:f,placeholder:"Search...",onChange:b,onKeyDown:L}),O.jsx("div",{...A,className:V.container,tabIndex:0,role:"listbox","aria-label":"List",onKeyDown:U,"aria-activedescendant":h>=0&&h<E.length?(C=E[h])==null?void 0:C.id:void 0,children:O.jsx("div",{...D,className:V.virtualScroll,children:w.map(({item:M,index:W,offsetTop:X})=>{const B=o.includes(M.id);return O.jsxs("li",{role:"option",id:M.id,"aria-selected":h===W?"true":"false",tabIndex:-1,className:`${V.listItem} ${h===W?Ae["selected-item"]:""}`,"aria-label":M.id+"-"+M.label,style:{height:`${p}px`,lineHeight:`calc(${p}px - 2*2px)`,transform:`translateY(${X}px)`},onClick:()=>{l==null||l(M),g(W)},children:[et(M.id,M.label,t),B&&O.jsx(me,{icon:"check",width:16})]},M.id)})})})]})},gr=({displayMode:n,bindValue:e,optionalDisplayValue:t,...r})=>{const[s,a]=F.useState(et(e,t,n));return F.useEffect(()=>{a(e)},[e]),F.useEffect(()=>{a(et(e,t,n))},[t,n]),O.jsx(we,{...r,bindValue:s})},Wn=n=>{const e=F.useRef(null);return F.useEffect(()=>()=>{e.current&&clearTimeout(e.current)},[]),r=>{e.current&&clearTimeout(e.current),e.current=setTimeout(()=>{r()},n)}},Et=({bindValue:n,optionalDisplayValue:e,options:t,displayMode:r,listDisplayMode:s="Both",minimumChars:a=3,placeholder:o,fun:i,_changeOnEnter:l=!1,onChange:c,onOptionsRequest:f,_multiActiveIndex:u,...p})=>{const[h,g]=F.useState(n),[v,E]=F.useState(e),[b,w]=F.useState(!1),[A,D]=F.useState(t||[]),[y,P]=F.useState(0),[L,U]=F.useState([n]),{anchorRef:V,targetRef:C,anchorWidth:M}=St({position:"bottom",enabled:b});Qe(C,()=>w(!1));const W=Wn(400),X=Y=>{Y.length>=a?i&&f&&W(async()=>{const z=await f(i,Y);D(z),P(z.length>0?0:-1),w(!0)}):w(!1),g(Y),E(e),l||c==null||c(Y,e)},B=Y=>{l?(g(""),E("")):(g(Y.id),E(Y.label)),c==null||c(Y.id,Y.label);const z=A.findIndex($=>$.id===Y.id);P(z),U([Y.id]),w(!1)},ne=Y=>{Y.key==="Escape"&&(w(!1),P(-1))},J=Y=>{if((Y.key==="ArrowDown"||Y.key==="ArrowUp")&&(Y.preventDefault(),b)){const z=Y.key==="ArrowDown"?(y+1)%A.length:(y-1+A.length)%A.length;P(z)}switch(Y.key){case"Enter":y>=0&&y<A.length?B(A[y]):l&&(c==null||c(h,""),w(!1),g(""),E(""));break;case"Escape":w(!1),P(-1);break}};return O.jsxs("div",{children:[O.jsx(gr,{...p,bindValue:h,optionalDisplayValue:v,displayMode:r,shapeIcon:"magnify",placeholder:o,ref:V,onChange:X,onKeyDown:J,"aria-autocomplete":"list"}),b&&O.jsx(mr,{options:A,displayMode:s,onClick:B,ref:C,selectedIndex:y,activeIndex:u||L,width:M,showFilter:!1,onKeyDown:ne})]})},Ce={"smp-button-container":"_smp-button-container_pte2h_1","smp-button-extraSmall":"_smp-button-extraSmall_pte2h_51","smp-button-small":"_smp-button-small_pte2h_56","smp-button-base":"_smp-button-base_pte2h_61","smp-button-large":"_smp-button-large_pte2h_66","smp-button-extraLarge":"_smp-button-extraLarge_pte2h_71","smp-button-fullWidth":"_smp-button-fullWidth_pte2h_76","smp-buttonType-raised":"_smp-buttonType-raised_pte2h_81","smp-buttonVariant-base":"_smp-buttonVariant-base_pte2h_83","smp-buttonVariant-primary":"_smp-buttonVariant-primary_pte2h_97","smp-buttonVariant-danger":"_smp-buttonVariant-danger_pte2h_111","smp-buttonType-ghost":"_smp-buttonType-ghost_pte2h_138"},Le=({bindValue:n,onClick:e,ariaLabel:t,icon:r,disabled:s,sizing:a="base",variant:o="primary",type:i="raised",showIcon:l=!0,showText:c=!0,fullWidth:f=!1,loading:u=!1})=>{const p={container:`${Ce["smp-button-container"]} ${a?Ce[`smp-button-${a}`]:""} ${o?Ce[`smp-buttonVariant-${o}`]:""} ${i?Ce[`smp-buttonType-${i}`]:""} ${f?Ce["smp-button-fullWidth"]:""}`},h=g=>({primary:"onPrimary",danger:"onDanger",base:"base"})[g];return O.jsx("button",{className:p.container,onClick:e,"aria-label":t,disabled:s,"aria-busy":u,children:u?O.jsx(me,{icon:"spinner",state:h(o),spin:!0}):O.jsxs(O.Fragment,{children:[r&&l&&O.jsx(me,{icon:r,disabled:s,state:h(o)}),c&&O.jsx("span",{children:n})]})})},yr=({bindValue:n,onChange:e,onBlur:t})=>{const r=s=>{e&&e(s.target.checked)};return O.jsx("input",{type:"checkbox",checked:n,onChange:r,onBlur:t})},Hn={titleLarge:"h2",title:"h3",body:"h6",label:"label"},dt={"smp-typography":"_smp-typography_oznk3_1","smp-typography-body":"_smp-typography-body_oznk3_12","smp-typography-large":"_smp-typography-large_oznk3_16","smp-typography-titleLarge":"_smp-typography-titleLarge_oznk3_20","smp-typography-label":"_smp-typography-label_oznk3_24","smp-typography-disabled":"_smp-typography-disabled_oznk3_29"},qn=({variant:n="body",bindValue:e,...t})=>{const r=Hn[n],s={container:`${dt["smp-typography"]} ${n?dt[`smp-typography-${n}`]:""} ${t.disabled?dt["smp-typography-disabled"]:""}`};return O.jsx(r,{className:s.container,disabled:t.disabled,children:e})},ir={"smp-chips-container":"_smp-chips-container_g7dut_1","smp-chips-element":"_smp-chips-element_g7dut_9"},vr=({elements:n,isEditable:e=!1,displayMode:t="Both",onChange:r})=>{const s={container:`${ir["smp-chips-container"]}`,element:`${ir["smp-chips-element"]}`},a=o=>{r==null||r(n.filter((i,l)=>l!==o))};return O.jsx("div",{className:s.container,role:"list",children:n.map((o,i)=>{const l=et(o.bindValue,o.optionalDisplayValue,t);return O.jsxs("div",{className:s.element,role:"listitem",children:[O.jsx(qn,{variant:"label",bindValue:l}),e&&O.jsx(me,{icon:"close",isInteractable:!0,onClick:()=>a(i)})]},i)})})};function br(n,e){const t=F.useRef(null);F.useEffect(()=>{if(!n)return;const r=typeof e=="object"&&e!==null&&"current"in e?e.current:null;if(!r)return;t.current=document.activeElement;const s=()=>r?Array.from(r.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])')).filter(c=>!c.hasAttribute("disabled")&&c.offsetParent!==null):[];(()=>{const c=s();c.length>0&&requestAnimationFrame(()=>c[0].focus())})();const o=c=>{if(c.key==="Escape"||c.key!=="Tab")return;const f=s();if(f.length===0)return;const u=f[0],p=f[f.length-1];c.shiftKey&&document.activeElement===u?(c.preventDefault(),p.focus()):!c.shiftKey&&document.activeElement===p&&(c.preventDefault(),u.focus())},i=c=>{if(r&&!r.contains(c.target)){c.preventDefault();const f=s();f.length>0&&f[0].focus()}};document.addEventListener("keydown",o),document.addEventListener("mousedown",i);const l=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",o),document.removeEventListener("mousedown",i),document.body.style.overflow=l,t.current&&requestAnimationFrame(()=>{var c;(c=t.current)==null||c.focus()})}},[n,e])}const xr=({bindValue:n,onChange:e,options:t=[],optionalDisplayValue:r,displayMode:s,listDisplayMode:a="Both",fun:o,onOptionsRequest:i,multiActiveIndex:l,...c})=>{const[f,u]=F.useState(!1),[p,h]=F.useState(t),[g,v]=F.useState(-1),[E,b]=F.useState([n]),w=F.useId(),{anchorRef:A,targetRef:D,anchorWidth:y}=St({position:"bottom",enabled:f});Qe(D,()=>u(!1)),br(f,D);const P=C=>{e==null||e(C.id,C.label);const M=p.findIndex(W=>W.id===C.id);v(M),b([C.id]),u(!1)},L=C=>{C.key==="Escape"&&(u(!1),v(-1))},U=C=>{(C.key==="ArrowDown"||C.key==="ArrowUp")&&(C.preventDefault(),V())},V=()=>{o&&i&&i(o,void 0).then(C=>{h(C),v(C.length>0?0:-1),u(!0)})};return O.jsxs("div",{role:"combobox","aria-expanded":f,"aria-controls":w,"aria-owns":w,children:[O.jsx(gr,{...c,bindValue:n,optionalDisplayValue:r,displayMode:s,onShapeIconClick:V,onKeyDown:U,shapeIcon:"arrow_drop_down",rotatedShapeIcon:f,readOnly:!0,ref:A,"aria-autocomplete":"list",variant:"notSelectable"}),f&&O.jsx(mr,{id:w,options:p,displayMode:a,ref:D,selectedIndex:g,activeIndex:l||E,width:y,onClick:P,onKeyDown:L})]})};var Sr=(n=>(n.CALENDAR_FOR="Date.CalendarFor",n.CLOSE="Generic.Close",n))(Sr||{}),ie=(n=>(n.MONDAY="Day.Monday",n.MONDAY_SHORT="Day.MondayShort",n.TUESDAY="Day.Tuesday",n.TUESDAY_SHORT="Day.TuesdayShort",n.WEDNESDAY="Day.Wednesday",n.WEDNESDAY_SHORT="Day.WednesdayShort",n.THURSDAY="Day.Thursday",n.THURSDAY_SHORT="Day.ThursdayShort",n.FRIDAY="Day.Friday",n.FRIDAY_SHORT="Day.FridayShort",n.SATURDAY="Day.Saturday",n.SATURDAY_SHORT="Day.SaturdayShort",n.SUNDAY="Day.Sunday",n.SUNDAY_SHORT="Day.SundayShort",n))(ie||{}),oe=(n=>(n.JANUARY="Month.January",n.FEBRUARY="Month.February",n.MARCH="Month.March",n.APRIL="Month.April",n.MAY="Month.May",n.JUNE="Month.June",n.JULY="Month.July",n.AUGUST="Month.August",n.SEPTEMBER="Month.September",n.OCTOBER="Month.October",n.NOVEMBER="Month.November",n.DECEMBER="Month.December",n))(oe||{}),yt=(n=>(n.PREVIOUS_DAY="Date.PreviousDay",n.PREVIOUS_WEEK="Date.PreviousWeek",n.PREVIOUS_MONTH="Date.PreviousMonth",n.PREVIOUS_YEAR="Date.PreviousYear",n.NEXT_DAY="Date.NextDay",n.NEXT_WEEK="Date.NextWeek",n.NEXT_MONTH="Date.NextMonth",n.NEXT_YEAR="Date.NextYear",n.YESTERDAY="Date.Yesterday",n.TODAY="Date.Today",n.TOMORROW="Date.Tomorrow",n))(yt||{});const de={"smp-datepickercalendar":"_smp-datepickercalendar_u2io5_1","smp-datepickercalendar-table":"_smp-datepickercalendar-table_u2io5_30","smp-datepickercalendar-th":"_smp-datepickercalendar-th_u2io5_42","smp-datepickercalendar-td":"_smp-datepickercalendar-td_u2io5_53","smp-datepickercalendar-td-today":"_smp-datepickercalendar-td-today_u2io5_72","smp-datepickercalendar-td-selected":"_smp-datepickercalendar-td-selected_u2io5_78","smp-datepickercalendar-td-focused":"_smp-datepickercalendar-td-focused_u2io5_83","smp-datepickercalendar-label":"_smp-datepickercalendar-label_u2io5_93"};function Kn({selectedDate:n,onDateChange:e,disabledDateRanges:t=[],initialValue:r,targetRef:s}){const{translate:a}=bt(),o=()=>{if(!r)return;const $=new Date(r);return isNaN($.getTime())?void 0:$},[i]=F.useState(new Date),[l,c]=F.useState(n||o()||new Date),[f,u]=F.useState(l?l.getMonth():new Date().getMonth()),[p,h]=F.useState(l?l.getFullYear():new Date().getFullYear()),[g,v]=F.useState(l?l.getDate():null),E=F.useRef(null),b=F.useRef([]),w=[a(oe.JANUARY),a(oe.FEBRUARY),a(oe.MARCH),a(oe.APRIL),a(oe.MAY),a(oe.JUNE),a(oe.JULY),a(oe.AUGUST),a(oe.SEPTEMBER),a(oe.OCTOBER),a(oe.NOVEMBER),a(oe.DECEMBER)],A=[{value:a(ie.SUNDAY_SHORT),full:a(ie.SUNDAY)},{value:a(ie.MONDAY_SHORT),full:a(ie.MONDAY)},{value:a(ie.TUESDAY_SHORT),full:a(ie.TUESDAY)},{value:a(ie.WEDNESDAY_SHORT),full:a(ie.WEDNESDAY)},{value:a(ie.THURSDAY_SHORT),full:a(ie.THURSDAY)},{value:a(ie.FRIDAY_SHORT),full:a(ie.FRIDAY)},{value:a(ie.SATURDAY_SHORT),full:a(ie.SATURDAY)}],D=$=>t.some(d=>{const m=d.start.getTime(),x=d.end.getTime(),_=$.getTime();return _>=m&&_<=x}),y=$=>{D($)||(c($),v($.getDate()),e&&e(Mn($)))},P=()=>{f===0?(u(11),h(p-1)):u(f-1),v(1)},L=()=>{f===11?(u(0),h(p+1)):u(f+1),v(1)},U=($,d)=>new Date($,d+1,0).getDate(),V=($,d)=>new Date($,d,1).getDay(),C=$=>{var m;const d=B.findIndex(x=>x!==null&&x.getDate()===$);d!==-1&&b.current[d]&&((m=b.current[d])==null||m.focus(),v($))},M=($,d)=>{const m=B[d];if(!m)return;const x=U(p,f),_=m.getDate();switch($.key){case"ArrowRight":$.preventDefault();{let S=_+1,T=new Date(p,f,S);if(S>x){const j=f===11?p+1:p,I=f===11?0:f+1;S=1,T=new Date(j,I,S),L(),setTimeout(()=>{W(1,"forward")},0);return}D(T)?W(S,"forward"):C(S)}break;case"Tab":break;case"ArrowLeft":$.preventDefault();{let S=_-1,T=new Date(p,f,S);if(S<1){const j=f===0?p-1:p,I=f===0?11:f-1,k=U(j,I);S=k,T=new Date(j,I,S),P(),setTimeout(()=>{W(k,"backward")},0);return}D(T)?W(S,"backward"):C(S)}break;case"ArrowUp":$.preventDefault();{let S=_-7,T=new Date(p,f,S);if(S<1){const j=f===0?p-1:p,I=f===0?11:f-1;S=U(j,I)+S,T=new Date(j,I,S),P(),setTimeout(()=>{W(S,"backward")},0);return}D(T)?W(S,"backward"):C(S)}break;case"ArrowDown":$.preventDefault();{let S=_+7,T=new Date(p,f,S);if(S>x){const j=f===11?p+1:p,I=f===11?0:f+1;S=S-x,T=new Date(j,I,S),L(),setTimeout(()=>{W(S,"forward")},0);return}D(T)?W(S,"forward"):C(S)}break;case"Home":$.preventDefault(),W(1,"forward");break;case"End":$.preventDefault(),W(x,"backward");break;case"PageUp":$.preventDefault(),P(),setTimeout(()=>{const S=U(f===0?p-1:p,f===0?11:f-1),T=Math.min(_,S);W(T,"forward")},0);break;case"PageDown":$.preventDefault(),L(),setTimeout(()=>{const S=U(f===11?p+1:p,f===11?0:f+1),T=Math.min(_,S);W(T,"forward")},0);break;case" ":case"Space":if(D(m))return;v(m.getDate()),c(m);break;case"Enter":$.preventDefault(),y(m);break}},W=($,d)=>{const m=U(p,f);if(d==="forward"){for(let x=$;x<=m;x++){const _=new Date(p,f,x);if(!D(_)){C(x);return}}L(),setTimeout(()=>{W(1,"forward")},0)}else{for(let T=$;T>=1;T--){const j=new Date(p,f,T);if(!D(j)){C(T);return}}const x=f===0?p-1:p,_=f===0?11:f-1,S=U(x,_);P(),setTimeout(()=>{W(S,"backward")},0)}},B=(()=>{const $=U(p,f),d=V(p,f),m=[];for(let x=0;x<d;x++)m.push(null);for(let x=1;x<=$;x++){const _=new Date(p,f,x);m.push(_)}return m})(),ne=[];let J=[];B.forEach(($,d)=>{if(J.push($),J.length===7||d===B.length-1){for(;J.length<7;)J.push(null);ne.push(J),J=[]}}),F.useEffect(()=>{var $;if(g!==null){const d=B.findIndex(m=>m!==null&&m.getDate()===g);d!==-1&&b.current[d]&&(($=b.current[d])==null||$.focus())}},[f,p,g,B]);const Y={label:`${de["smp-datepickercalendar-label"]}`,wrapper:`${de["smp-datepickercalendar"]}`,calendar:`${de["smp-datepickercalendar"]}`,table:`${de["smp-datepickercalendar-table"]}`,th:`${de["smp-datepickercalendar-th"]}`,td:($,d,m,x)=>`${de["smp-datepickercalendar-td"]}
47
47
  ${$?de["smp-datepickercalendar-td-today"]:""}
48
48
  ${d?de["smp-datepickercalendar-td-selected"]:""}
49
49
  ${m?de["smp-datepickercalendar-td-focused"]:""}
50
- ${x?de["smp-datepickercalendar-td-disabled"]:""}`},z=()=>`${w[f]} ${p.toString()}`;return O.jsxs("div",{className:Y.wrapper,ref:s,role:"dialog",tabIndex:-1,"aria-modal":"true",children:[O.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"16px"},children:[O.jsx(Le,{onClick:P,ariaLabel:a(yt.PREVIOUS_MONTH),bindValue:"<",type:"ghost",variant:"base"}),O.jsx("div",{"aria-label":z(),className:Y.label,children:z()}),O.jsx(Le,{onClick:L,ariaLabel:a(yt.NEXT_MONTH),bindValue:">",type:"ghost",variant:"base"})]}),O.jsxs("table",{ref:E,role:"grid","aria-label":`${a(xr.CALENDAR_FOR)} ${w[f]} ${p}`,className:Y.table,children:[O.jsx("thead",{children:O.jsx("tr",{children:A.map($=>O.jsx("th",{scope:"col",abbr:$.full,className:Y.th,children:$.value},$.value))})}),O.jsx("tbody",{children:ne.map(($,d)=>O.jsx("tr",{children:$.map((m,x)=>{const _=d*7+x;if(m===null)return O.jsx("td",{className:Y.td(!1,!1,!1,!0)},`empty-${x}`);const S=m.getDate()===i.getDate()&&m.getMonth()===i.getMonth()&&m.getFullYear()===i.getFullYear(),T=l&&m.getDate()===l.getDate()&&m.getMonth()===l.getMonth()&&m.getFullYear()===l.getFullYear(),j=g===m.getDate(),I=D(m);return O.jsx("td",{role:"gridcell","aria-selected":T,tabIndex:j?0:-1,onClick:()=>y(m),onKeyDown:C=>M(C,_),"aria-label":`${m.getDate()} ${w[m.getMonth()]} ${m.getFullYear()}`,"data-selected":T,"aria-disabled":I,ref:C=>{b.current[_]=C},className:Y.td(S,T,j,I),children:m.getDate()},`day-${x}`)})},`week-${d}`))})]})]})}const Sr=({bindValue:n,placeholder:e,onChange:t,disabledDateRanges:r,...s})=>{const[a,o]=F.useState(!1),[i,l]=F.useState(n||""),[c,f]=F.useState(""),{anchorRef:u,targetRef:p}=St({position:"bottom",enabled:a});Qe(p,()=>{o(!1)}),Qe(u,()=>{if(typeof u=="object"&&u!==null&&"current"in u){const P=u.current.querySelector("input");P&&P===document.activeElement&&b()}}),vr(a,p);const{format:h,getCurrentLanguage:g}=bt(),v=F.useCallback(P=>{const L=P.length>5&&jn(P,g())||P,U=h(L,void 0,void 0,{type:"date"}),V=typeof L!="string",k=V&&L.toISOString().substring(0,10)||"";return{isValid:V,formattedDate:U,isoDate:k,normalizedDate:L}},[g,h]);F.useEffect(()=>{const{formattedDate:P,isoDate:L,isValid:U}=v(n);l(U&&L||n),f(U&&P||n)},[n,h,v]);const E=()=>o(P=>!P),b=()=>{A(c)},w=P=>{A(P),o(!1)},A=P=>{const{isoDate:L,isValid:U}=v(P);t&&t(U&&L||P)},D=P=>{f(P)},y=P=>{P.key==="Enter"&&(P.preventDefault(),A(c))};return O.jsxs("div",{children:[O.jsx(we,{bindValue:c,placeholder:e,onBlur:b,onChange:D,onKeyDown:y,shapeIcon:"calendar",onShapeIconClick:E,ref:u,...s}),a&&O.jsx(qn,{disabledDateRanges:r,onDateChange:w,initialValue:xt(i)&&i||"",targetRef:p})]})},Kn={"smp-multipleAutocomplete-container":"_smp-multipleAutocomplete-container_1mtv2_1"},Bn=({elements:n,displayMode:e,minimumChars:t,listDisplayMode:r,placeholder:s,fun:a,onOptionsRequest:o,onChange:i})=>{const l=n.map(u=>u.bindValue),c=(u,p)=>{const h=[...n];if(u=="")h.pop();else{const g=h.findIndex(v=>v.bindValue===u&&v.optionalDisplayValue===p);g>=0?h.splice(g,1):h.push({bindValue:u,optionalDisplayValue:p})}i==null||i(h)},f={container:`${Kn["smp-multipleAutocomplete-container"]}`};return O.jsxs("div",{className:f.container,children:[O.jsx(yr,{elements:n,displayMode:e,isEditable:!0,onChange:u=>{i==null||i(u)}}),O.jsx(Et,{bindValue:"",fun:a,onChange:c,_changeOnEnter:!0,listDisplayMode:r,minimumChars:t,placeholder:s,onOptionsRequest:o,_multiActiveIndex:l})]})},Er=({...n})=>{const[e,t]=F.useState(!1),r=e?"visibility-off":"visibility";return O.jsx(we,{...n,inputType:e?"text":"password",shapeIcon:r,onShapeIconClick:()=>t(!e),ariaLabel:"password"})};class be{constructor(e,t){ve(this,"class");ve(this,"value");this.class=e,this.value=t}static fromDataObj(e){return new be(e,e.k.split(";"))}static fromString(e){return new be({t:"",p:""},e.split(";"))}getValue(){return this.value}getLegacyValue(){return this.value.join(";")}}const He=(n,e,t)=>({obj:{t:n.obj.t,p:n.obj.p,k:e},decode:t||n.decode,shape:n.shape}),ir=n=>{const e=be.fromDataObj(n.obj),t=n.decode?be.fromString(n.decode).getValue():[];return e.getValue().map((r,s)=>({bindValue:r,optionalDisplayValue:t.length>=s?t[s]:""}))},zn=(n,e)=>{const t=new be(n.obj,e.map(s=>s.bindValue)).getLegacyValue(),r=new be(n.obj,e.map(s=>s.optionalDisplayValue?s.optionalDisplayValue:"")).getLegacyValue();return He(n,t,r)},Gn=({decode:n,shape:e,obj:t,data:r,icon:s,fun:a,placeholderIcon:o,label:i,onChange:l,onClick:c,onBlur:f,onOptionsRequest:u})=>{const p={obj:t,shape:e,decode:n},h={onBlur:f,onOptionsRequest:u,fun:a,icon:s,label:i,...r},g=(b,w)=>Cn(t)?He(p,new Ze(t,b).getLegacyValue()):He(p,b,w),v=b=>He(p,new Xe(t,b).getLegacyValue()),E=b=>zn(p,b);switch(e){case fe.AUTOCOMPLETE:{const b={...h,bindValue:t.k,optionalDisplayValue:n,onChange:(w,A)=>{l==null||l(g(w,A))}};return O.jsx(Et,{...b})}case fe.BUTTON:{const b={...h,bindValue:t.k,optionalDisplayValue:n,onClick:()=>{c==null||c(g(t.k))}};return O.jsx(Le,{...b})}case fe.COMBOBOX:{const b={...h,bindValue:t.k,optionalDisplayValue:n,onChange:(w,A)=>{l==null||l(g(w,A))}};return O.jsx(br,{...b})}case fe.CHECKBOX:{const b={...h,bindValue:Xe.fromDataObj(t).getValue(),optionalDisplayValue:n,onChange:w=>{l==null||l(v(w))}};return O.jsx(gr,{...b})}case fe.CHIP:{const b={...h,elements:ir(p)};return O.jsx(yr,{...b})}case fe.DATE:{const b={...h,bindValue:Ze.fromDataObj(t).getValue(),onChange:w=>{l==null||l(g(w))}};return O.jsx(Sr,{...b})}case fe.ICON:{const b={...h,icon:s,placeholderIcon:o,onClick:()=>{c==null||c(g(t.k))}};return O.jsx(me,{...b})}case fe.MULTI_AUTOCOMPLETE:{const b={...h,elements:ir(p),onChange:w=>{l==null||l(E(w))}};return O.jsx(Bn,{...b})}case fe.PASSWORD:{const b={...h,bindValue:t.k,onChange:w=>{l==null||l(g(w))}};return O.jsx(Er,{...b})}case fe.TEXT_FIELD:case void 0:{const b={...h,bindValue:t.k,onChange:w=>{l==null||l(g(w))}};return O.jsx(we,{...b})}}},or={"smp-field-container":"_smp-field-container_nnmjb_1","smp-field-position-left":"_smp-field-position-left_nnmjb_6","smp-field-position-right":"_smp-field-position-right_nnmjb_10","smp-field-position-top":"_smp-field-position-top_nnmjb_14","smp-field-position-bottom":"_smp-field-position-bottom_nnmjb_18"},Jn=({data:n,type:e,showSubmit:t=!1,submitPosition:r="right",defaultValue:s,label:a,labelPosition:o="left",onBlur:i,onClick:l,onOptionsRequest:c})=>{const[f,u]=F.useState();F.useEffect(()=>{u(()=>{const v={...n};return e&&(v.shape=e),s&&(v.obj=$n(s)),v})},[n,s,e]);const p=$e(t)?or[`smp-field-position-${r}`]:"",h={container:`${or["smp-field-container"]} ${p}`},g=()=>{$e(t)||i==null||i(f)};if(f)return O.jsxs("div",{className:h.container,children:[O.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"8px",font:"var(--smp-fontLabel-base)"},children:O.jsx(Gn,{...f,onChange:u,onOptionsRequest:c,fun:n.fun,onBlur:g,label:a,labelPosition:o})}),$e(t)&&O.jsx(Le,{bindValue:"Confirm",onClick:()=>l==null?void 0:l(f)})]})};exports.Autocomplete=Et;exports.Button=Le;exports.Checkbox=gr;exports.Combobox=br;exports.DashList=kn;exports.DatePicker=Sr;exports.Field=Jn;exports.Icon=me;exports.Password=Er;exports.Textfield=we;exports.configurePaths=Xr;
50
+ ${x?de["smp-datepickercalendar-td-disabled"]:""}`},z=()=>`${w[f]} ${p.toString()}`;return O.jsxs("div",{className:Y.wrapper,ref:s,role:"dialog",tabIndex:-1,"aria-modal":"true",children:[O.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"16px"},children:[O.jsx(Le,{onClick:P,ariaLabel:a(yt.PREVIOUS_MONTH),bindValue:"<",type:"ghost",variant:"base"}),O.jsx("div",{"aria-label":z(),className:Y.label,children:z()}),O.jsx(Le,{onClick:L,ariaLabel:a(yt.NEXT_MONTH),bindValue:">",type:"ghost",variant:"base"})]}),O.jsxs("table",{ref:E,role:"grid","aria-label":`${a(Sr.CALENDAR_FOR)} ${w[f]} ${p}`,className:Y.table,children:[O.jsx("thead",{children:O.jsx("tr",{children:A.map($=>O.jsx("th",{scope:"col",abbr:$.full,className:Y.th,children:$.value},$.value))})}),O.jsx("tbody",{children:ne.map(($,d)=>O.jsx("tr",{children:$.map((m,x)=>{const _=d*7+x;if(m===null)return O.jsx("td",{className:Y.td(!1,!1,!1,!0)},`empty-${x}`);const S=m.getDate()===i.getDate()&&m.getMonth()===i.getMonth()&&m.getFullYear()===i.getFullYear(),T=l&&m.getDate()===l.getDate()&&m.getMonth()===l.getMonth()&&m.getFullYear()===l.getFullYear(),j=g===m.getDate(),I=D(m);return O.jsx("td",{role:"gridcell","aria-selected":T,tabIndex:j?0:-1,onClick:()=>y(m),onKeyDown:k=>M(k,_),"aria-label":`${m.getDate()} ${w[m.getMonth()]} ${m.getFullYear()}`,"data-selected":T,"aria-disabled":I,ref:k=>{b.current[_]=k},className:Y.td(S,T,j,I),children:m.getDate()},`day-${x}`)})},`week-${d}`))})]})]})}const Er=({bindValue:n,placeholder:e,onChange:t,disabledDateRanges:r,...s})=>{const[a,o]=F.useState(!1),[i,l]=F.useState(n||""),[c,f]=F.useState(""),{anchorRef:u,targetRef:p}=St({position:"bottom",enabled:a});Qe(p,()=>{o(!1)}),Qe(u,()=>{if(typeof u=="object"&&u!==null&&"current"in u){const P=u.current.querySelector("input");P&&P===document.activeElement&&b()}}),br(a,p);const{format:h,getCurrentLanguage:g}=bt(),v=F.useCallback(P=>{const L=P.length>5&&Ln(P,g())||P,U=h(L,void 0,void 0,{type:"date"}),V=typeof L!="string",C=V&&L.toISOString().substring(0,10)||"";return{isValid:V,formattedDate:U,isoDate:C,normalizedDate:L}},[g,h]);F.useEffect(()=>{const{formattedDate:P,isoDate:L,isValid:U}=v(n);l(U&&L||n),f(U&&P||n)},[n,h,v]);const E=()=>o(P=>!P),b=()=>{A(c)},w=P=>{A(P),o(!1)},A=P=>{const{isoDate:L,isValid:U}=v(P);t&&t(U&&L||P)},D=P=>{f(P)},y=P=>{P.key==="Enter"&&(P.preventDefault(),A(c))};return O.jsxs("div",{children:[O.jsx(we,{bindValue:c,placeholder:e,onBlur:b,onChange:D,onKeyDown:y,shapeIcon:"calendar",onShapeIconClick:E,ref:u,...s}),a&&O.jsx(Kn,{disabledDateRanges:r,onDateChange:w,initialValue:xt(i)&&i||"",targetRef:p})]})},Bn={"smp-multipleAutocomplete-container":"_smp-multipleAutocomplete-container_1mtv2_1"},zn=({elements:n,displayMode:e,minimumChars:t,listDisplayMode:r,placeholder:s,fun:a,onOptionsRequest:o,onChange:i})=>{const l=n.map(u=>u.bindValue),c=(u,p)=>{const h=[...n];if(u=="")h.pop();else{const g=h.findIndex(v=>v.bindValue===u&&v.optionalDisplayValue===p);g>=0?h.splice(g,1):h.push({bindValue:u,optionalDisplayValue:p})}i==null||i(h)},f={container:`${Bn["smp-multipleAutocomplete-container"]}`};return O.jsxs("div",{className:f.container,children:[O.jsx(vr,{elements:n,displayMode:e,isEditable:!0,onChange:u=>{i==null||i(u)}}),O.jsx(Et,{bindValue:"",fun:a,onChange:c,_changeOnEnter:!0,listDisplayMode:r,minimumChars:t,placeholder:s,onOptionsRequest:o,_multiActiveIndex:l})]})},_r=({...n})=>{const[e,t]=F.useState(!1),r=e?"visibility-off":"visibility";return O.jsx(we,{...n,inputType:e?"text":"password",shapeIcon:r,onShapeIconClick:()=>t(!e),ariaLabel:"password"})};class be{constructor(e,t){ve(this,"class");ve(this,"value");this.class=e,this.value=t}static fromDataObj(e){return new be(e,e.k.split(";"))}static fromString(e){return new be({t:"",p:""},e.split(";"))}getValue(){return this.value}getLegacyValue(){return this.value.join(";")}}const He=(n,e,t)=>({obj:{t:n.obj.t,p:n.obj.p,k:e},decode:t||n.decode,shape:n.shape}),or=n=>{const e=be.fromDataObj(n.obj),t=n.decode?be.fromString(n.decode).getValue():[];return e.getValue().map((r,s)=>({bindValue:r,optionalDisplayValue:t.length>=s?t[s]:""}))},Gn=(n,e)=>{const t=new be(n.obj,e.map(s=>s.bindValue)).getLegacyValue(),r=new be(n.obj,e.map(s=>s.optionalDisplayValue?s.optionalDisplayValue:"")).getLegacyValue();return He(n,t,r)},Jn=({decode:n,shape:e,obj:t,data:r,icon:s,fun:a,placeholderIcon:o,label:i,onChange:l,onClick:c,onBlur:f,onOptionsRequest:u})=>{const p={obj:t,shape:e,decode:n},h={onBlur:f,onOptionsRequest:u,fun:a,icon:s,label:i,...r},g=(b,w)=>$n(t)?He(p,new Ze(t,b).getLegacyValue()):He(p,b,w),v=b=>He(p,new Xe(t,b).getLegacyValue()),E=b=>Gn(p,b);switch(e){case fe.AUTOCOMPLETE:{const b={...h,bindValue:t.k,optionalDisplayValue:n,onChange:(w,A)=>{l==null||l(g(w,A))}};return O.jsx(Et,{...b})}case fe.BUTTON:{const b={...h,bindValue:t.k,optionalDisplayValue:n,onClick:()=>{c==null||c(g(t.k))}};return O.jsx(Le,{...b})}case fe.COMBOBOX:{const b={...h,bindValue:t.k,optionalDisplayValue:n,onChange:(w,A)=>{l==null||l(g(w,A))}};return O.jsx(xr,{...b})}case fe.CHECKBOX:{const b={...h,bindValue:Xe.fromDataObj(t).getValue(),optionalDisplayValue:n,onChange:w=>{l==null||l(v(w))}};return O.jsx(yr,{...b})}case fe.CHIP:{const b={...h,elements:or(p)};return O.jsx(vr,{...b})}case fe.DATE:{const b={...h,bindValue:Ze.fromDataObj(t).getValue(),onChange:w=>{l==null||l(g(w))}};return O.jsx(Er,{...b})}case fe.ICON:{const b={...h,icon:s,placeholderIcon:o,onClick:()=>{c==null||c(g(t.k))}};return O.jsx(me,{...b})}case fe.MULTI_AUTOCOMPLETE:{const b={...h,elements:or(p),onChange:w=>{l==null||l(E(w))}};return O.jsx(zn,{...b})}case fe.PASSWORD:{const b={...h,bindValue:t.k,onChange:w=>{l==null||l(g(w))}};return O.jsx(_r,{...b})}case fe.TEXT_FIELD:case void 0:{const b={...h,bindValue:t.k,onChange:w=>{l==null||l(g(w))}};return O.jsx(we,{...b})}}},lr={"smp-field-container":"_smp-field-container_nnmjb_1","smp-field-position-left":"_smp-field-position-left_nnmjb_6","smp-field-position-right":"_smp-field-position-right_nnmjb_10","smp-field-position-top":"_smp-field-position-top_nnmjb_14","smp-field-position-bottom":"_smp-field-position-bottom_nnmjb_18"},Xn=({data:n,Type:e,ShowSubmit:t=!1,SubmitPosition:r="right",DefaultValue:s,Label:a,LabelPosition:o="left",onBlur:i,onClick:l,onOptionsRequest:c})=>{const[f,u]=F.useState();F.useEffect(()=>{u(()=>{const v={...n};return e&&(v.shape=e),s&&(v.obj=jn(s)),v})},[n,s,e]);const p=$e(t)?lr[`smp-field-position-${nr(r)}`]:"",h={container:`${lr["smp-field-container"]} ${p}`},g=()=>{$e(t)||i==null||i(f)};if(f)return O.jsxs("div",{className:h.container,children:[O.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"8px",font:"var(--smp-fontLabel-base)"},children:O.jsx(Jn,{...f,onChange:u,onOptionsRequest:c,fun:n.fun,onBlur:g,label:a,labelPosition:nr(o)})}),$e(t)&&O.jsx(Le,{bindValue:"Confirm",onClick:()=>l==null?void 0:l(f)})]})};exports.Autocomplete=Et;exports.Button=Le;exports.Checkbox=yr;exports.Combobox=xr;exports.DashList=kn;exports.DatePicker=Er;exports.Field=Xn;exports.Icon=me;exports.Password=_r;exports.Textfield=we;exports.configurePaths=Zr;