@next-bricks/advanced 0.18.3 → 0.18.4

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.
Files changed (117) hide show
  1. package/dist/bricks.json +1 -1
  2. package/dist/chunks/{1377.e1735ea3.js → 1377.03badfc6.js} +2 -2
  3. package/dist/chunks/{1377.e1735ea3.js.map → 1377.03badfc6.js.map} +1 -1
  4. package/dist/chunks/{1646.de737717.js → 1646.a5933f88.js} +2 -2
  5. package/dist/chunks/{1646.de737717.js.map → 1646.a5933f88.js.map} +1 -1
  6. package/dist/chunks/{2108.ab412e90.js → 2108.899693ee.js} +2 -2
  7. package/dist/chunks/{2108.ab412e90.js.map → 2108.899693ee.js.map} +1 -1
  8. package/dist/chunks/2179.4b823549.js +2 -0
  9. package/dist/chunks/2179.4b823549.js.map +1 -0
  10. package/dist/chunks/2754.03f2c36e.js +2 -0
  11. package/dist/chunks/2754.03f2c36e.js.map +1 -0
  12. package/dist/chunks/{3458.6ba355d1.js → 3458.86ec6f46.js} +2 -2
  13. package/dist/chunks/{3458.6ba355d1.js.map → 3458.86ec6f46.js.map} +1 -1
  14. package/dist/chunks/4049.568bc460.js +2 -0
  15. package/dist/chunks/4049.568bc460.js.map +1 -0
  16. package/dist/chunks/4374.1c3f4d6a.js +3 -0
  17. package/dist/chunks/4374.1c3f4d6a.js.map +1 -0
  18. package/dist/chunks/4540.11b03f7e.js +2 -0
  19. package/dist/chunks/4540.11b03f7e.js.map +1 -0
  20. package/dist/chunks/4643.00d74679.js +2 -0
  21. package/dist/chunks/{4643.5545b8bf.js.map → 4643.00d74679.js.map} +1 -1
  22. package/dist/chunks/4682.c5a92f86.js +2 -0
  23. package/dist/chunks/4682.c5a92f86.js.map +1 -0
  24. package/dist/chunks/4717.8e7ea2bc.js +2 -0
  25. package/dist/chunks/4717.8e7ea2bc.js.map +1 -0
  26. package/dist/chunks/4991.bbe257a7.js +2 -0
  27. package/dist/chunks/4991.bbe257a7.js.map +1 -0
  28. package/dist/chunks/5151.1118a6b3.js +2 -0
  29. package/dist/chunks/5151.1118a6b3.js.map +1 -0
  30. package/dist/chunks/{5381.f5aaeed7.js → 5381.1ff1bd5c.js} +2 -2
  31. package/dist/chunks/{5381.f5aaeed7.js.map → 5381.1ff1bd5c.js.map} +1 -1
  32. package/dist/chunks/{5636.29c1f330.js → 5636.35aa63cf.js} +2 -2
  33. package/dist/chunks/{5636.29c1f330.js.map → 5636.35aa63cf.js.map} +1 -1
  34. package/dist/chunks/{5725.ed195438.js → 5725.a3146a76.js} +2 -2
  35. package/dist/chunks/{5725.ed195438.js.map → 5725.a3146a76.js.map} +1 -1
  36. package/dist/chunks/6205.a1ae2c14.js +2 -0
  37. package/dist/chunks/6205.a1ae2c14.js.map +1 -0
  38. package/dist/chunks/{6473.fedcfb7d.js → 6473.ed318471.js} +2 -2
  39. package/dist/chunks/{6473.fedcfb7d.js.map → 6473.ed318471.js.map} +1 -1
  40. package/dist/chunks/{6660.802d440d.js → 6660.9313b5e0.js} +2 -2
  41. package/dist/chunks/{6660.802d440d.js.map → 6660.9313b5e0.js.map} +1 -1
  42. package/dist/chunks/{6805.61d4ff1b.js → 6805.7c7c0dd6.js} +2 -2
  43. package/dist/chunks/{6805.61d4ff1b.js.map → 6805.7c7c0dd6.js.map} +1 -1
  44. package/dist/chunks/{6980.38bb2efd.js → 6980.ec42fa75.js} +2 -2
  45. package/dist/chunks/6980.ec42fa75.js.map +1 -0
  46. package/dist/chunks/7067.fbfe21c8.js +2 -0
  47. package/dist/chunks/7067.fbfe21c8.js.map +1 -0
  48. package/dist/chunks/{7128.c93fa8e0.js → 7128.5381b26d.js} +2 -2
  49. package/dist/chunks/7128.5381b26d.js.map +1 -0
  50. package/dist/chunks/7164.3badc2c9.js +2 -0
  51. package/dist/chunks/7164.3badc2c9.js.map +1 -0
  52. package/dist/chunks/{7672.2de8289a.js → 7672.5030b0bc.js} +2 -2
  53. package/dist/chunks/{7672.2de8289a.js.map → 7672.5030b0bc.js.map} +1 -1
  54. package/dist/chunks/{7746.ae1a06a1.js → 7746.7c81d05e.js} +2 -2
  55. package/dist/chunks/{7746.ae1a06a1.js.map → 7746.7c81d05e.js.map} +1 -1
  56. package/dist/chunks/{8172.d64ce707.js → 8172.ca2bc00e.js} +2 -2
  57. package/dist/chunks/{8172.d64ce707.js.map → 8172.ca2bc00e.js.map} +1 -1
  58. package/dist/chunks/8498.209384ac.js +2 -0
  59. package/dist/chunks/8498.209384ac.js.map +1 -0
  60. package/dist/chunks/8588.3addc801.js +2 -0
  61. package/dist/chunks/8588.3addc801.js.map +1 -0
  62. package/dist/chunks/{8691.08e93d8e.js → 8691.dc362ec4.js} +2 -2
  63. package/dist/chunks/{8691.08e93d8e.js.map → 8691.dc362ec4.js.map} +1 -1
  64. package/dist/chunks/9549.f00f5b6b.js +2 -0
  65. package/dist/chunks/9549.f00f5b6b.js.map +1 -0
  66. package/dist/chunks/{eo-cascader.e9249600.js → eo-cascader.51547051.js} +2 -2
  67. package/dist/chunks/{eo-cascader.e9249600.js.map → eo-cascader.51547051.js.map} +1 -1
  68. package/dist/chunks/{eo-next-table.56a103df.js → eo-next-table.1e4b7db2.js} +2 -2
  69. package/dist/chunks/{eo-next-table.56a103df.js.map → eo-next-table.1e4b7db2.js.map} +1 -1
  70. package/dist/chunks/{eo-table.184206c8.js → eo-table.f3a5d395.js} +2 -2
  71. package/dist/chunks/{eo-table.184206c8.js.map → eo-table.f3a5d395.js.map} +1 -1
  72. package/dist/chunks/{eo-workbench-layout.3b9263c9.js → eo-workbench-layout.fae6494e.js} +2 -2
  73. package/dist/chunks/eo-workbench-layout.fae6494e.js.map +1 -0
  74. package/dist/chunks/main.777b76cc.js +2 -0
  75. package/dist/chunks/main.777b76cc.js.map +1 -0
  76. package/dist/index.314aedee.js +2 -0
  77. package/dist/index.314aedee.js.map +1 -0
  78. package/package.json +4 -4
  79. package/dist/chunks/2179.4136df02.js +0 -2
  80. package/dist/chunks/2179.4136df02.js.map +0 -1
  81. package/dist/chunks/2754.e2608a4b.js +0 -2
  82. package/dist/chunks/2754.e2608a4b.js.map +0 -1
  83. package/dist/chunks/4049.550ec416.js +0 -2
  84. package/dist/chunks/4049.550ec416.js.map +0 -1
  85. package/dist/chunks/4374.a663fb02.js +0 -3
  86. package/dist/chunks/4374.a663fb02.js.map +0 -1
  87. package/dist/chunks/4540.1f3988e1.js +0 -2
  88. package/dist/chunks/4540.1f3988e1.js.map +0 -1
  89. package/dist/chunks/463.2132a4aa.js +0 -2
  90. package/dist/chunks/463.2132a4aa.js.map +0 -1
  91. package/dist/chunks/4643.5545b8bf.js +0 -2
  92. package/dist/chunks/4717.9644c473.js +0 -2
  93. package/dist/chunks/4717.9644c473.js.map +0 -1
  94. package/dist/chunks/4991.3f334e41.js +0 -2
  95. package/dist/chunks/4991.3f334e41.js.map +0 -1
  96. package/dist/chunks/5151.6a2090b0.js +0 -2
  97. package/dist/chunks/5151.6a2090b0.js.map +0 -1
  98. package/dist/chunks/6205.f6714bee.js +0 -2
  99. package/dist/chunks/6205.f6714bee.js.map +0 -1
  100. package/dist/chunks/6980.38bb2efd.js.map +0 -1
  101. package/dist/chunks/7067.9d9578ca.js +0 -2
  102. package/dist/chunks/7067.9d9578ca.js.map +0 -1
  103. package/dist/chunks/7128.c93fa8e0.js.map +0 -1
  104. package/dist/chunks/7164.4da30c15.js +0 -2
  105. package/dist/chunks/7164.4da30c15.js.map +0 -1
  106. package/dist/chunks/8498.497bb425.js +0 -2
  107. package/dist/chunks/8498.497bb425.js.map +0 -1
  108. package/dist/chunks/8588.34a4cf52.js +0 -2
  109. package/dist/chunks/8588.34a4cf52.js.map +0 -1
  110. package/dist/chunks/9549.61a1ff32.js +0 -2
  111. package/dist/chunks/9549.61a1ff32.js.map +0 -1
  112. package/dist/chunks/eo-workbench-layout.3b9263c9.js.map +0 -1
  113. package/dist/chunks/main.b437fc30.js +0 -2
  114. package/dist/chunks/main.b437fc30.js.map +0 -1
  115. package/dist/index.2938ca2c.js +0 -2
  116. package/dist/index.2938ca2c.js.map +0 -1
  117. /package/dist/chunks/{4374.a663fb02.js.LICENSE.txt → 4374.1c3f4d6a.js.LICENSE.txt} +0 -0
@@ -1,2 +0,0 @@
1
- "use strict";(self.webpackChunk_next_bricks_advanced=self.webpackChunk_next_bricks_advanced||[]).push([[4717],{6666:(t,e,r)=>{r.d(e,{Z:()=>i});var n=r(5850);function i(t,e,r){return(e=(0,n.Z)(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},3028:(t,e,r)=>{r.d(e,{Z:()=>o});var n=r(6666);function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?i(Object(r),!0).forEach((function(e){(0,n.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}},2159:(t,e,r)=>{function n(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}r.d(e,{Z:()=>n})},5850:(t,e,r)=>{r.d(e,{Z:()=>i});var n=r(6522);function i(t){var e=function(t,e){if("object"!==(0,n.Z)(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,"string");if("object"!==(0,n.Z)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===(0,n.Z)(e)?e:String(e)}},6522:(t,e,r)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}r.d(e,{Z:()=>n})},9549:(t,e,r)=>{r.r(e),r.d(e,{NextElement:()=>O,createDecorators:()=>c,supportsAdoptingStyleSheets:()=>Z});var n=r(2159),i=r(3028),o=Symbol("attributeHasBeenSet"),a=Symbol("markAttributeHasBeenSet"),s=Symbol("stopAttributeChangedCallback"),l=["type"],u={attribute:!0,type:String,converter:{toAttribute:(t,e)=>e===Boolean?t?"":null:t,fromAttribute(t,e){switch(e){case Boolean:return null!==t&&"false"!==t;case Number:return null===t?null:Number(t)}return t}},reflect:!0,hasChanged:(t,e)=>e!==t&&(e==e||t==t)};function c(){var t=new Map,e=new Set,r=new Set,c=new Set;return{defineElement:function(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(a,s)=>{var{kind:l,name:u,addInitializer:b}=s;b((function(){var s,l,u,b,h,v=Object.getPrototypeOf(this);if(d(this,"observedAttributes",f(null!==(s=v.observedAttributes)&&void 0!==s?s:[],t.keys())),d(this,"__attributeReflections",new Map([...null!==(l=v.__attributeReflections)&&void 0!==l?l:[],...t])),d(this,"styleTexts",o.styleTexts),d(this,"shadowOptions",!1!==o.shadowOptions?(0,i.Z)({mode:"open"},o.shadowOptions):null),d(this,"__tagName",n),d(this,"_dev_only_definedProperties",f(null!==(u=v._dev_only_definedProperties)&&void 0!==u?u:[],e)),d(this,"_dev_only_definedMethods",f(null!==(b=v._dev_only_definedMethods)&&void 0!==b?b:[],r)),d(this,"_dev_only_definedEvents",f(null!==(h=v._dev_only_definedEvents)&&void 0!==h?h:[],c)),customElements.define(n,this),Array.isArray(o.alias))for(var p of o.alias){var y=class extends a{};d(y,"__tagName",p),customElements.define(p,y)}}))}},property:function(r){return function(n,l){var{get:c,set:d}=n,{kind:f,name:b,static:h,private:v}=l;e.add(b);var p=Object.assign({},u,r),y=function(t,e){var r=e.attribute;return!1===r?void 0:"string"==typeof r?r:t.replace(/[A-Z]/g,(t=>"-".concat(t.toLowerCase())))}(b,p);return void 0!==y&&t.set(y,(0,i.Z)((0,i.Z)({},p),{},{property:b})),{get(){return void 0!==y&&this[o](y)?p.converter.fromAttribute(this.getAttribute(y),p.type):c.call(this)},set(t){var e=c.call(this);if(d.call(this,t),p.hasChanged(t,e)){if(void 0!==y){var r=p.converter.toAttribute(t,p.type);this[s](!0),null==r?this.removeAttribute(y):this.setAttribute(y,r),this[a](y),this[s](!1)}this._requestRender()}},init(t){if(void 0!==y&&p.hasChanged(t,void 0)){var e=p.converter.toAttribute(t,p.type);null!=e&&requestAnimationFrame((()=>{this[o](y)||(this[s](!0),this.setAttribute(y,e),this[s](!1))}))}return t}}}},method:function(t){return function(e,n){var{kind:i,name:o,static:a,private:s,addInitializer:l}=n;null!=t&&t.bound&&l((function(){this[o]=this[o].bind(this)})),r.add(o)}},event:function(t){return function(e,r){var{get:o}=e,{kind:a,name:s,static:u,private:d}=r,{type:f}=t,b=(0,n.Z)(t,l);return c.add(f),{get(){return o.call(this)},set(){throw new Error("Decorated events are readonly")},init(t){return Object.freeze({emit:t=>this.dispatchEvent(new CustomEvent(f,(0,i.Z)((0,i.Z)({},b),{},{detail:t})))})}}}}}}function d(t,e,r){Object.defineProperty(t,e,{get:()=>r,configurable:!0})}function f(t,e){var r=new Set(t);for(var n of e)r.add(n);return[...r]}new Set(["prefix"]);var b,h=r(3395),v=r(6666),p=r(687),y=r(381),m=new WeakMap,_=new WeakMap,w=new WeakMap,g=new WeakMap;class O extends HTMLElement{constructor(){super(...arguments),(0,h.Z)(this,m,{writable:!0,value:!1}),(0,h.Z)(this,_,{writable:!0,value:!1}),(0,h.Z)(this,w,{writable:!0,value:!1}),(0,h.Z)(this,g,{writable:!0,value:new Set})}_markConnectedCallbackCalled(){(0,y.Z)(this,_,!0)}connectedCallback(){this._markConnectedCallbackCalled(),this._render()}[o](t){return(0,p.Z)(this,g).has(t)}[a](t){(0,p.Z)(this,g).add(t)}[s](t){(0,y.Z)(this,w,t)}attributeChangedCallback(t,e,r){if((0,p.Z)(this,g).add(t),!(0,p.Z)(this,w)&&e!==r){var n=this.constructor.__attributeReflections.get(t),i=n.converter.fromAttribute(r,n.type);this[n.property]=i}}_requestRender(){this.isConnected&&(0,p.Z)(this,_)&&!(0,p.Z)(this,m)&&((0,y.Z)(this,m,!0),Promise.resolve().then((()=>{(0,y.Z)(this,m,!1),this._render()})))}}function Z(){return void 0===b&&(b=!!(window.ShadowRoot&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype)),b}(0,v.Z)(O,"styleTexts",void 0),(0,v.Z)(O,"shadowOptions",void 0),(0,v.Z)(O,"__attributeReflections",void 0),(0,v.Z)(O,"__tagName",void 0)}}]);
2
- //# sourceMappingURL=4717.9644c473.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chunks/4717.9644c473.js","mappings":"6JACe,SAASA,EAAgBC,EAAKC,EAAKC,GAYhD,OAXAD,GAAM,OAAcA,MACTD,EACTG,OAAOC,eAAeJ,EAAKC,EAAK,CAC9BC,MAAOA,EACPG,YAAY,EACZC,cAAc,EACdC,UAAU,IAGZP,EAAIC,GAAOC,EAENF,CACT,C,gDCbA,SAASQ,EAAQC,EAAGC,GAClB,IAAIC,EAAIR,OAAOS,KAAKH,GACpB,GAAIN,OAAOU,sBAAuB,CAChC,IAAIC,EAAIX,OAAOU,sBAAsBJ,GACrCC,IAAMI,EAAIA,EAAEC,QAAO,SAAUL,GAC3B,OAAOP,OAAOa,yBAAyBP,EAAGC,GAAGL,UAC/C,KAAKM,EAAEM,KAAKC,MAAMP,EAAGG,EACvB,CACA,OAAOH,CACT,CACe,SAASQ,EAAeV,GACrC,IAAK,IAAIC,EAAI,EAAGA,EAAIU,UAAUC,OAAQX,IAAK,CAC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IACvD,OAAgBA,EAAa,iBAAa,E","sources":["webpack:///../../node_modules/@babel/runtime/helpers/esm/defineProperty.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/objectSpread2.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/typeof.js","webpack:///../../node_modules/@next-core/element/dist/esm/internal/symbols.js","webpack:///../../node_modules/@next-core/element/dist/esm/createDecorators.js","webpack:///../../node_modules/@next-core/element/dist/esm/supportsAdoptingStyleSheets.js","webpack:///../../node_modules/@next-core/element/dist/esm/NextElement.js"],"sourcesContent":["import toPropertyKey from \"./toPropertyKey.js\";\nexport default function _defineProperty(obj, key, value) {\n key = toPropertyKey(key);\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}","import defineProperty from \"./defineProperty.js\";\nfunction ownKeys(e, r) {\n var t = Object.keys(e);\n if (Object.getOwnPropertySymbols) {\n var o = Object.getOwnPropertySymbols(e);\n r && (o = o.filter(function (r) {\n return Object.getOwnPropertyDescriptor(e, r).enumerable;\n })), t.push.apply(t, o);\n }\n return t;\n}\nexport default function _objectSpread2(e) {\n for (var r = 1; r < arguments.length; r++) {\n var t = null != arguments[r] ? arguments[r] : {};\n r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {\n defineProperty(e, r, t[r]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {\n Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));\n });\n }\n return e;\n}","import objectWithoutPropertiesLoose from \"./objectWithoutPropertiesLoose.js\";\nexport default function _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n return target;\n}","export default function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}","import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nexport default function _toPropertyKey(arg) {\n var key = toPrimitive(arg, \"string\");\n return _typeof(key) === \"symbol\" ? key : String(key);\n}","import _typeof from \"./typeof.js\";\nexport default function _toPrimitive(input, hint) {\n if (_typeof(input) !== \"object\" || input === null) return input;\n var prim = input[Symbol.toPrimitive];\n if (prim !== undefined) {\n var res = prim.call(input, hint || \"default\");\n if (_typeof(res) !== \"object\") return res;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (hint === \"string\" ? String : Number)(input);\n}","export default function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, _typeof(o);\n}","export var symbolOfAttributeHasBeenSet = Symbol(\"attributeHasBeenSet\");\nexport var symbolOfMarkAttributeHasBeenSet = Symbol(\"markAttributeHasBeenSet\");\nexport var symbolOfStopAttributeChangedCallback = Symbol(\"stopAttributeChangedCallback\");\n//# sourceMappingURL=symbols.js.map","import _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nimport _objectSpread from \"@babel/runtime/helpers/objectSpread2\";\nvar _excluded = [\"type\"];\nimport { symbolOfAttributeHasBeenSet, symbolOfMarkAttributeHasBeenSet, symbolOfStopAttributeChangedCallback } from \"./internal/symbols.js\";\nvar defaultConverter = {\n toAttribute(value, type) {\n switch (type) {\n case Boolean:\n return value ? \"\" : null;\n }\n return value;\n },\n fromAttribute(value, type) {\n switch (type) {\n case Boolean:\n return value !== null && value !== \"false\";\n case Number:\n return value === null ? null : Number(value);\n }\n return value;\n }\n};\n\n/**\n * Change function that returns true if `value` is different from `oldValue`.\n * This method is used as the default for a property's `hasChanged` function.\n */\nvar notEqual = (value, old) => {\n // This ensures (old==NaN, value==NaN) always returns false\n return old !== value && (old === old || value === value);\n};\nvar defaultPropertyDeclaration = {\n attribute: true,\n type: String,\n converter: defaultConverter,\n reflect: true,\n hasChanged: notEqual\n};\n\n// Note: `prefix` is a native prop on Element, but it's only used in XML documents.\nvar allowedNativeProps = new Set([\"prefix\"]);\nexport function createDecorators() {\n var attributeReflections = new Map();\n var definedProperties = new Set();\n var definedMethods = new Set();\n var definedEvents = new Set();\n function defineElement(name) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n return (value, _ref) => {\n var {\n kind,\n name: className,\n addInitializer\n } = _ref;\n // istanbul ignore next\n if (process.env.NODE_ENV === \"development\" && kind !== \"class\") {\n throw new Error(\"Invalid usage of `@defineElement()` on a \".concat(kind, \": \\\"\").concat(className, \"\\\"\"));\n }\n addInitializer(function () {\n var _superClass$observedA, _superClass$__attribu, _superClass$_dev_only, _superClass$_dev_only2, _superClass$_dev_only3;\n var superClass = Object.getPrototypeOf(this);\n var mergedAttributes = mergeIterables((_superClass$observedA = superClass.observedAttributes) !== null && _superClass$observedA !== void 0 ? _superClass$observedA : [], attributeReflections.keys());\n defineReadonlyProperty(this, \"observedAttributes\", mergedAttributes);\n var mergedAttributeReflections = new Map([...((_superClass$__attribu = superClass.__attributeReflections) !== null && _superClass$__attribu !== void 0 ? _superClass$__attribu : []), ...attributeReflections]);\n defineReadonlyProperty(this, \"__attributeReflections\", mergedAttributeReflections);\n defineReadonlyProperty(this, \"styleTexts\", options.styleTexts);\n defineReadonlyProperty(this, \"shadowOptions\", options.shadowOptions !== false ? _objectSpread({\n mode: \"open\"\n }, options.shadowOptions) : null);\n defineReadonlyProperty(this, \"__tagName\", name);\n var mergedProperties = mergeIterables((_superClass$_dev_only = superClass._dev_only_definedProperties) !== null && _superClass$_dev_only !== void 0 ? _superClass$_dev_only : [], definedProperties);\n defineReadonlyProperty(this, \"_dev_only_definedProperties\", mergedProperties);\n var mergedMethods = mergeIterables((_superClass$_dev_only2 = superClass._dev_only_definedMethods) !== null && _superClass$_dev_only2 !== void 0 ? _superClass$_dev_only2 : [], definedMethods);\n defineReadonlyProperty(this, \"_dev_only_definedMethods\", mergedMethods);\n var mergedEvents = mergeIterables((_superClass$_dev_only3 = superClass._dev_only_definedEvents) !== null && _superClass$_dev_only3 !== void 0 ? _superClass$_dev_only3 : [], definedEvents);\n defineReadonlyProperty(this, \"_dev_only_definedEvents\", mergedEvents);\n customElements.define(name, this);\n if (Array.isArray(options.alias)) {\n for (var alias of options.alias) {\n // Use a parenthesized expression to make the class has no name.\n var Alias = (\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n 0, class extends value {});\n defineReadonlyProperty(Alias, \"__tagName\", alias);\n customElements.define(alias, Alias);\n }\n }\n });\n };\n }\n function property(options) {\n return function (_ref2, _ref3) {\n var {\n get,\n set\n } = _ref2;\n var {\n kind,\n name,\n static: isStatic,\n private: isPrivate\n } = _ref3;\n // istanbul ignore next\n if (process.env.NODE_ENV !== \"production\") {\n if (kind !== \"accessor\") {\n throw new Error(\"Invalid usage of `@property()` on a \".concat(kind, \": \\\"\").concat(String(name), \"\\\"\"));\n }\n if (typeof name !== \"string\") {\n throw new Error(\"Invalid usage of `@property()` on a \".concat(kind, \" of \").concat(typeof name));\n }\n if (isStatic) {\n throw new Error(\"Invalid usage of `@property()` on a static \".concat(kind, \": \\\"\").concat(name, \"\\\"\"));\n }\n if (isPrivate) {\n throw new Error(\"Invalid usage of `@property()` on a private \".concat(kind, \": \\\"\").concat(name, \"\\\"\"));\n }\n if (name in HTMLElement.prototype && !allowedNativeProps.has(name)) {\n var message = \"\\\"\".concat(name, \"\\\" is a native HTMLElement property, and is deprecated to be used as a brick property.\");\n throw new Error(message);\n }\n }\n definedProperties.add(name);\n var _options = Object.assign({}, defaultPropertyDeclaration, options);\n var attrName = attributeNameForProperty(name, _options);\n if (attrName !== undefined) {\n attributeReflections.set(attrName, _objectSpread(_objectSpread({}, _options), {}, {\n property: name\n }));\n }\n return {\n get() {\n // If the attribute has been set (not by initialization), returns the\n // value converted by the attribute. Otherwise returns the prop value.\n // This works as a type conversion when reading a prop value.\n if (attrName !== undefined && this[symbolOfAttributeHasBeenSet](attrName)) {\n return _options.converter.fromAttribute(this.getAttribute(attrName), _options.type);\n }\n return get.call(this);\n },\n set(value) {\n var oldValue = get.call(this);\n set.call(this, value);\n if (_options.hasChanged(value, oldValue)) {\n if (attrName !== undefined) {\n var attrValue = _options.converter.toAttribute(value, _options.type);\n this[symbolOfStopAttributeChangedCallback](true);\n if (attrValue == null) {\n this.removeAttribute(attrName);\n } else {\n this.setAttribute(attrName, attrValue);\n }\n this[symbolOfMarkAttributeHasBeenSet](attrName);\n this[symbolOfStopAttributeChangedCallback](false);\n }\n this._requestRender();\n }\n },\n init(initialValue) {\n if (attrName !== undefined && _options.hasChanged(initialValue, undefined)) {\n var attrValue = _options.converter.toAttribute(initialValue, _options.type);\n if (attrValue != null) {\n // No attributes should be created during constructing custom elements.\n // This is true even if the work is done inside a constructor-initiated microtask.\n // https://html.spec.whatwg.org/multipage/custom-elements.html#custom-element-conformance\n requestAnimationFrame(() => {\n if (!this[symbolOfAttributeHasBeenSet](attrName)) {\n this[symbolOfStopAttributeChangedCallback](true);\n this.setAttribute(attrName, attrValue);\n this[symbolOfStopAttributeChangedCallback](false);\n }\n });\n }\n }\n return initialValue;\n }\n };\n };\n }\n function method(options) {\n return function (value, _ref4) {\n var {\n kind,\n name,\n static: isStatic,\n private: isPrivate,\n addInitializer\n } = _ref4;\n // istanbul ignore next\n if (process.env.NODE_ENV !== \"production\") {\n if (kind !== \"method\") {\n throw new Error(\"Invalid usage of `@method()` on a \".concat(kind, \": \\\"\").concat(String(name), \"\\\"\"));\n }\n if (typeof name !== \"string\") {\n throw new Error(\"Invalid usage of `@method()` on a \".concat(kind, \" of \").concat(typeof name));\n }\n if (isStatic) {\n throw new Error(\"Invalid usage of `@method()` on a static \".concat(kind, \": \\\"\").concat(name, \"\\\"\"));\n }\n if (isPrivate) {\n throw new Error(\"Invalid usage of `@method()` on a private \".concat(kind, \": \\\"\").concat(name, \"\\\"\"));\n }\n if (name in HTMLElement.prototype && !allowedNativeProps.has(name)) {\n var message = \"\\\"\".concat(name, \"\\\" is a native HTMLElement property, and is deprecated to be used as a brick method.\");\n throw new Error(message);\n }\n }\n if (options !== null && options !== void 0 && options.bound) {\n addInitializer(function () {\n this[name] = this[name].bind(this);\n });\n }\n definedMethods.add(name);\n };\n }\n function event(options) {\n return function (_ref5, _ref6) {\n var {\n get\n } = _ref5;\n var {\n kind,\n name,\n static: isStatic,\n private: isPrivate\n } = _ref6;\n // istanbul ignore next\n if (process.env.NODE_ENV !== \"production\") {\n if (kind !== \"accessor\") {\n throw new Error(\"Invalid usage of `@event()` on a \".concat(kind, \": \\\"\").concat(String(name), \"\\\"\"));\n }\n if (!isPrivate) {\n throw new Error(\"Invalid usage of `@event()` on a non-private \".concat(kind, \": \\\"\").concat(String(name), \"\\\"\"));\n }\n if (isStatic) {\n throw new Error(\"Invalid usage of `@event()` on a static \".concat(kind, \": \\\"\").concat(String(name), \"\\\"\"));\n }\n }\n var {\n type\n } = options,\n eventInit = _objectWithoutProperties(options, _excluded);\n definedEvents.add(type);\n return {\n get() {\n return get.call(this);\n },\n set() {\n throw new Error(\"Decorated events are readonly\");\n },\n init(initialValue) {\n // istanbul ignore next\n if (process.env.NODE_ENV === \"development\" && initialValue !== undefined) {\n throw new Error(\"Do not set an initial value for a decorated event: \\\"\".concat(String(name), \"\\\"\"));\n }\n return Object.freeze({\n emit: detail => this.dispatchEvent(new CustomEvent(type, _objectSpread(_objectSpread({}, eventInit), {}, {\n detail\n })))\n });\n }\n };\n };\n }\n return {\n defineElement,\n property,\n method,\n event\n };\n}\nfunction defineReadonlyProperty(target, propName, propValue) {\n Object.defineProperty(target, propName, {\n get() {\n return propValue;\n },\n configurable: true\n });\n}\nfunction mergeIterables(list1, list2) {\n var newList = new Set(list1);\n for (var item of list2) {\n newList.add(item);\n }\n return [...newList];\n}\nfunction attributeNameForProperty(name, options) {\n var attribute = options.attribute;\n return attribute === false ? undefined : typeof attribute === \"string\" ? attribute : name.replace(/[A-Z]/g, char => \"-\".concat(char.toLowerCase()));\n}\n//# sourceMappingURL=createDecorators.js.map","var supports;\nexport function supportsAdoptingStyleSheets() {\n if (supports === undefined) {\n supports = !!(window.ShadowRoot &&\n // (window.ShadyCSS === undefined || window.ShadyCSS.nativeShadow) &&\n \"adoptedStyleSheets\" in Document.prototype && \"replace\" in CSSStyleSheet.prototype);\n }\n return supports;\n}\n//# sourceMappingURL=supportsAdoptingStyleSheets.js.map","import _classPrivateFieldInitSpec from \"@babel/runtime/helpers/classPrivateFieldInitSpec\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _classPrivateFieldGet from \"@babel/runtime/helpers/classPrivateFieldGet\";\nimport _classPrivateFieldSet from \"@babel/runtime/helpers/classPrivateFieldSet\";\nimport { symbolOfAttributeHasBeenSet, symbolOfMarkAttributeHasBeenSet, symbolOfStopAttributeChangedCallback } from \"./internal/symbols.js\";\nvar _hasRequestedRender = /*#__PURE__*/new WeakMap();\nvar _connectedCallbackCalled = /*#__PURE__*/new WeakMap();\nvar _attributeChangedCallbackStopped = /*#__PURE__*/new WeakMap();\nvar _attributesBeenSet = /*#__PURE__*/new WeakMap();\nexport class NextElement extends HTMLElement {\n constructor() {\n super(...arguments);\n _classPrivateFieldInitSpec(this, _hasRequestedRender, {\n writable: true,\n value: false\n });\n _classPrivateFieldInitSpec(this, _connectedCallbackCalled, {\n writable: true,\n value: false\n });\n _classPrivateFieldInitSpec(this, _attributeChangedCallbackStopped, {\n writable: true,\n value: false\n });\n _classPrivateFieldInitSpec(this, _attributesBeenSet, {\n writable: true,\n value: new Set()\n });\n }\n /**\n * When render a custom element as parsed DOM, it is already connected in the\n * first place. The attributes are set while isConnected is true, which will\n * trigger a render request, and then before the next micro-task, the\n * `connectedCallback` will be called, which will trigger an immediate render.\n * Thus we would see two calls of render. So we manually set a mark of whether\n * the `connectedCallback` is actually get called, to prevent a trigger of\n * render request during attributes initialization before `connectedCallback`.\n */\n _markConnectedCallbackCalled() {\n _classPrivateFieldSet(this, _connectedCallbackCalled, true);\n }\n connectedCallback() {\n this._markConnectedCallbackCalled();\n this._render();\n }\n [symbolOfAttributeHasBeenSet](name) {\n return _classPrivateFieldGet(this, _attributesBeenSet).has(name);\n }\n [symbolOfMarkAttributeHasBeenSet](name) {\n _classPrivateFieldGet(this, _attributesBeenSet).add(name);\n }\n\n /** Whether to process attributeChangedCallback. */\n [symbolOfStopAttributeChangedCallback](value) {\n _classPrivateFieldSet(this, _attributeChangedCallbackStopped, value);\n }\n\n /** @internal */\n attributeChangedCallback(name, old, value) {\n _classPrivateFieldGet(this, _attributesBeenSet).add(name);\n if (!_classPrivateFieldGet(this, _attributeChangedCallbackStopped) && old !== value) {\n var attrRef = this.constructor.__attributeReflections.get(name);\n assertAttributeIsReflected(attrRef, name);\n var propValue = attrRef.converter.fromAttribute(value, attrRef.type);\n this[attrRef.property] = propValue;\n }\n }\n\n /**\n * Request a render in the next micro-task. This ensures multiple properties\n * or attributes will trigger a render once in a batch.\n */\n _requestRender() {\n // If the element is not connected,\n // let `connectedCallback()` do the job of calling _render.\n if (this.isConnected && _classPrivateFieldGet(this, _connectedCallbackCalled) && !_classPrivateFieldGet(this, _hasRequestedRender)) {\n _classPrivateFieldSet(this, _hasRequestedRender, true);\n Promise.resolve().then(() => {\n _classPrivateFieldSet(this, _hasRequestedRender, false);\n this._render();\n });\n }\n }\n}\n_defineProperty(NextElement, \"styleTexts\", void 0);\n_defineProperty(NextElement, \"shadowOptions\", void 0);\n_defineProperty(NextElement, \"__attributeReflections\", void 0);\n_defineProperty(NextElement, \"__tagName\", void 0);\nfunction assertAttributeIsReflected(attrRef, name) {\n // istanbul ignore next\n if (process.env.NODE_ENV === \"development\" && !attrRef) {\n throw new Error(\"Attribute [\".concat(name, \"] is not reflected\"));\n }\n}\n//# sourceMappingURL=NextElement.js.map"],"names":["_defineProperty","obj","key","value","Object","defineProperty","enumerable","configurable","writable","ownKeys","e","r","t","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","push","apply","_objectSpread2","arguments","length","forEach","getOwnPropertyDescriptors","defineProperties","_objectWithoutProperties","source","excluded","i","target","sourceKeys","indexOf","sourceSymbolKeys","prototype","propertyIsEnumerable","call","_toPropertyKey","arg","input","hint","prim","Symbol","toPrimitive","undefined","res","TypeError","String","_typeof","iterator","constructor","symbolOfAttributeHasBeenSet","symbolOfMarkAttributeHasBeenSet","symbolOfStopAttributeChangedCallback","_excluded","defaultPropertyDeclaration","attribute","type","converter","toAttribute","Boolean","fromAttribute","Number","reflect","hasChanged","old","createDecorators","attributeReflections","Map","definedProperties","Set","definedMethods","definedEvents","defineElement","name","options","_ref","kind","className","addInitializer","_superClass$observedA","_superClass$__attribu","_superClass$_dev_only","_superClass$_dev_only2","_superClass$_dev_only3","superClass","getPrototypeOf","this","defineReadonlyProperty","mergeIterables","observedAttributes","__attributeReflections","styleTexts","shadowOptions","mode","_dev_only_definedProperties","_dev_only_definedMethods","_dev_only_definedEvents","customElements","define","Array","isArray","alias","Alias","property","_ref2","_ref3","get","set","static","isStatic","private","isPrivate","add","_options","assign","attrName","replace","char","concat","toLowerCase","attributeNameForProperty","getAttribute","oldValue","attrValue","removeAttribute","setAttribute","_requestRender","init","initialValue","requestAnimationFrame","method","_ref4","bound","bind","event","_ref5","_ref6","eventInit","Error","freeze","emit","detail","dispatchEvent","CustomEvent","propName","propValue","list1","list2","newList","item","supports","_hasRequestedRender","WeakMap","_connectedCallbackCalled","_attributeChangedCallbackStopped","_attributesBeenSet","NextElement","HTMLElement","super","_markConnectedCallbackCalled","connectedCallback","_render","has","attributeChangedCallback","attrRef","isConnected","Promise","resolve","then","supportsAdoptingStyleSheets","window","ShadowRoot","Document","CSSStyleSheet"],"sourceRoot":""}
@@ -1,2 +0,0 @@
1
- "use strict";(self.webpackChunk_next_bricks_advanced=self.webpackChunk_next_bricks_advanced||[]).push([[4991],{4991:(t,e,s)=>{s.r(e),s.d(e,{changeLanguage:()=>q,createInstance:()=>M,default:()=>K,dir:()=>H,exists:()=>G,getFixedT:()=>W,hasLoadedNamespace:()=>X,init:()=>B,loadLanguages:()=>tt,loadNamespaces:()=>Z,loadResources:()=>J,reloadResources:()=>z,setDefaultNamespace:()=>Q,t:()=>Y,use:()=>_});const i={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){console&&console[t]&&console[t].apply(console,e)}};class n{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(t,e)}init(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=e.prefix||"i18next:",this.logger=t||i,this.options=e,this.debug=e.debug}log(){for(var t=arguments.length,e=new Array(t),s=0;s<t;s++)e[s]=arguments[s];return this.forward(e,"log","",!0)}warn(){for(var t=arguments.length,e=new Array(t),s=0;s<t;s++)e[s]=arguments[s];return this.forward(e,"warn","",!0)}error(){for(var t=arguments.length,e=new Array(t),s=0;s<t;s++)e[s]=arguments[s];return this.forward(e,"error","")}deprecate(){for(var t=arguments.length,e=new Array(t),s=0;s<t;s++)e[s]=arguments[s];return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(t,e,s,i){return i&&!this.debug?null:("string"==typeof t[0]&&(t[0]=`${s}${this.prefix} ${t[0]}`),this.logger[e](t))}create(t){return new n(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new n(this.logger,t)}}var o=new n;class r{constructor(){this.observers={}}on(t,e){return t.split(" ").forEach((t=>{this.observers[t]=this.observers[t]||[],this.observers[t].push(e)})),this}off(t,e){this.observers[t]&&(e?this.observers[t]=this.observers[t].filter((t=>t!==e)):delete this.observers[t])}emit(t){for(var e=arguments.length,s=new Array(e>1?e-1:0),i=1;i<e;i++)s[i-1]=arguments[i];this.observers[t]&&[].concat(this.observers[t]).forEach((t=>{t(...s)})),this.observers["*"]&&[].concat(this.observers["*"]).forEach((e=>{e.apply(e,[t,...s])}))}}function a(){let t,e;const s=new Promise(((s,i)=>{t=s,e=i}));return s.resolve=t,s.reject=e,s}function l(t){return null==t?"":""+t}function u(t,e,s){function i(t){return t&&t.indexOf("###")>-1?t.replace(/###/g,"."):t}function n(){return!t||"string"==typeof t}const o="string"!=typeof e?[].concat(e):e.split(".");for(;o.length>1;){if(n())return{};const e=i(o.shift());!t[e]&&s&&(t[e]=new s),t=Object.prototype.hasOwnProperty.call(t,e)?t[e]:{}}return n()?{}:{obj:t,k:i(o.shift())}}function c(t,e,s){const{obj:i,k:n}=u(t,e,Object);i[n]=s}function h(t,e){const{obj:s,k:i}=u(t,e);if(s)return s[i]}function p(t,e,s){for(const i in e)"__proto__"!==i&&"constructor"!==i&&(i in t?"string"==typeof t[i]||t[i]instanceof String||"string"==typeof e[i]||e[i]instanceof String?s&&(t[i]=e[i]):p(t[i],e[i],s):t[i]=e[i]);return t}function g(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var d={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function f(t){return"string"==typeof t?t.replace(/[&<>"'\/]/g,(t=>d[t])):t}const m=[" ",",","?","!",";"];function y(t,e){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!t)return;if(t[e])return t[e];const i=e.split(s);let n=t;for(let t=0;t<i.length;++t){if(!n)return;if("string"==typeof n[i[t]]&&t+1<i.length)return;if(void 0===n[i[t]]){let o=2,r=i.slice(t,t+o).join(s),a=n[r];for(;void 0===a&&i.length>t+o;)o++,r=i.slice(t,t+o).join(s),a=n[r];if(void 0===a)return;if(null===a)return null;if(e.endsWith(r)){if("string"==typeof a)return a;if(r&&"string"==typeof a[r])return a[r]}const l=i.slice(t+o).join(s);return l?y(a,l,s):void 0}n=n[i[t]]}return n}function v(t){return t&&t.indexOf("_")>0?t.replace("_","-"):t}class b extends r{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=e,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const e=this.options.ns.indexOf(t);e>-1&&this.options.ns.splice(e,1)}getResource(t,e,s){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const n=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,o=void 0!==i.ignoreJSONStructure?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let r=[t,e];s&&"string"!=typeof s&&(r=r.concat(s)),s&&"string"==typeof s&&(r=r.concat(n?s.split(n):s)),t.indexOf(".")>-1&&(r=t.split("."));const a=h(this.data,r);return a||!o||"string"!=typeof s?a:y(this.data&&this.data[t]&&this.data[t][e],s,n)}addResource(t,e,s,i){let n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator;let r=[t,e];s&&(r=r.concat(o?s.split(o):s)),t.indexOf(".")>-1&&(r=t.split("."),i=e,e=r[1]),this.addNamespaces(e),c(this.data,r,i),n.silent||this.emit("added",t,e,s,i)}addResources(t,e,s){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const i in s)"string"!=typeof s[i]&&"[object Array]"!==Object.prototype.toString.apply(s[i])||this.addResource(t,e,i,s[i],{silent:!0});i.silent||this.emit("added",t,e,s)}addResourceBundle(t,e,s,i,n){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},r=[t,e];t.indexOf(".")>-1&&(r=t.split("."),i=s,s=e,e=r[1]),this.addNamespaces(e);let a=h(this.data,r)||{};i?p(a,s,n):a={...a,...s},c(this.data,r,a),o.silent||this.emit("added",t,e,s)}removeResourceBundle(t,e){this.hasResourceBundle(t,e)&&delete this.data[t][e],this.removeNamespaces(e),this.emit("removed",t,e)}hasResourceBundle(t,e){return void 0!==this.getResource(t,e)}getResourceBundle(t,e){return e||(e=this.options.defaultNS),"v1"===this.options.compatibilityAPI?{...this.getResource(t,e)}:this.getResource(t,e)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const e=this.getDataByLanguage(t);return!!(e&&Object.keys(e)||[]).find((t=>e[t]&&Object.keys(e[t]).length>0))}toJSON(){return this.data}}var x={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,s,i,n){return t.forEach((t=>{this.processors[t]&&(e=this.processors[t].process(e,s,i,n))})),e}};const S={};class k extends r{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),function(t,e,s){["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach((t=>{e[t]&&(s[t]=e[t])}))}(0,t,this),this.options=e,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=o.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==t)return!1;const s=this.resolve(t,e);return s&&void 0!==s.res}extractFromKey(t,e){let s=void 0!==e.nsSeparator?e.nsSeparator:this.options.nsSeparator;void 0===s&&(s=":");const i=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator;let n=e.ns||this.options.defaultNS||[];const o=s&&t.indexOf(s)>-1,r=!(this.options.userDefinedKeySeparator||e.keySeparator||this.options.userDefinedNsSeparator||e.nsSeparator||function(t,e,s){e=e||"",s=s||"";const i=m.filter((t=>e.indexOf(t)<0&&s.indexOf(t)<0));if(0===i.length)return!0;const n=new RegExp(`(${i.map((t=>"?"===t?"\\?":t)).join("|")})`);let o=!n.test(t);if(!o){const e=t.indexOf(s);e>0&&!n.test(t.substring(0,e))&&(o=!0)}return o}(t,s,i));if(o&&!r){const e=t.match(this.interpolator.nestingRegexp);if(e&&e.length>0)return{key:t,namespaces:n};const o=t.split(s);(s!==i||s===i&&this.options.ns.indexOf(o[0])>-1)&&(n=o.shift()),t=o.join(i)}return"string"==typeof n&&(n=[n]),{key:t,namespaces:n}}translate(t,e,s){if("object"!=typeof e&&this.options.overloadTranslationOptionHandler&&(e=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof e&&(e={...e}),e||(e={}),null==t)return"";Array.isArray(t)||(t=[String(t)]);const i=void 0!==e.returnDetails?e.returnDetails:this.options.returnDetails,n=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator,{key:o,namespaces:r}=this.extractFromKey(t[t.length-1],e),a=r[r.length-1],l=e.lng||this.language,u=e.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&"cimode"===l.toLowerCase()){if(u){const t=e.nsSeparator||this.options.nsSeparator;return i?{res:`${a}${t}${o}`,usedKey:o,exactUsedKey:o,usedLng:l,usedNS:a,usedParams:this.getUsedParamsDetails(e)}:`${a}${t}${o}`}return i?{res:o,usedKey:o,exactUsedKey:o,usedLng:l,usedNS:a,usedParams:this.getUsedParamsDetails(e)}:o}const c=this.resolve(t,e);let h=c&&c.res;const p=c&&c.usedKey||o,g=c&&c.exactUsedKey||o,d=Object.prototype.toString.apply(h),f=void 0!==e.joinArrays?e.joinArrays:this.options.joinArrays,m=!this.i18nFormat||this.i18nFormat.handleAsObject;if(m&&h&&"string"!=typeof h&&"boolean"!=typeof h&&"number"!=typeof h&&["[object Number]","[object Function]","[object RegExp]"].indexOf(d)<0&&("string"!=typeof f||"[object Array]"!==d)){if(!e.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const t=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,h,{...e,ns:r}):`key '${o} (${this.language})' returned an object instead of string.`;return i?(c.res=t,c.usedParams=this.getUsedParamsDetails(e),c):t}if(n){const t="[object Array]"===d,s=t?[]:{},i=t?g:p;for(const t in h)if(Object.prototype.hasOwnProperty.call(h,t)){const o=`${i}${n}${t}`;s[t]=this.translate(o,{...e,joinArrays:!1,ns:r}),s[t]===o&&(s[t]=h[t])}h=s}}else if(m&&"string"==typeof f&&"[object Array]"===d)h=h.join(f),h&&(h=this.extendTranslation(h,t,e,s));else{let i=!1,r=!1;const u=void 0!==e.count&&"string"!=typeof e.count,p=k.hasDefaultValue(e),g=u?this.pluralResolver.getSuffix(l,e.count,e):"",d=e.ordinal&&u?this.pluralResolver.getSuffix(l,e.count,{ordinal:!1}):"",f=e[`defaultValue${g}`]||e[`defaultValue${d}`]||e.defaultValue;!this.isValidLookup(h)&&p&&(i=!0,h=f),this.isValidLookup(h)||(r=!0,h=o);const m=(e.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&r?void 0:h,y=p&&f!==h&&this.options.updateMissing;if(r||i||y){if(this.logger.log(y?"updateKey":"missingKey",l,a,o,y?f:h),n){const t=this.resolve(o,{...e,keySeparator:!1});t&&t.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 t=[];const s=this.languageUtils.getFallbackCodes(this.options.fallbackLng,e.lng||this.language);if("fallback"===this.options.saveMissingTo&&s&&s[0])for(let e=0;e<s.length;e++)t.push(s[e]);else"all"===this.options.saveMissingTo?t=this.languageUtils.toResolveHierarchy(e.lng||this.language):t.push(e.lng||this.language);const i=(t,s,i)=>{const n=p&&i!==h?i:m;this.options.missingKeyHandler?this.options.missingKeyHandler(t,a,s,n,y,e):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(t,a,s,n,y,e),this.emit("missingKey",t,a,s,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&u?t.forEach((t=>{this.pluralResolver.getSuffixes(t,e).forEach((s=>{i([t],o+s,e[`defaultValue${s}`]||f)}))})):i(t,o,f))}h=this.extendTranslation(h,t,e,c,s),r&&h===o&&this.options.appendNamespaceToMissingKey&&(h=`${a}:${o}`),(r||i)&&this.options.parseMissingKeyHandler&&(h="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${a}:${o}`:o,i?h:void 0):this.options.parseMissingKeyHandler(h))}return i?(c.res=h,c.usedParams=this.getUsedParamsDetails(e),c):h}extendTranslation(t,e,s,i,n){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...s},s.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init({...s,interpolation:{...this.options.interpolation,...s.interpolation}});const r="string"==typeof t&&(s&&s.interpolation&&void 0!==s.interpolation.skipOnVariables?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let a;if(r){const e=t.match(this.interpolator.nestingRegexp);a=e&&e.length}let l=s.replace&&"string"!=typeof s.replace?s.replace:s;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),t=this.interpolator.interpolate(t,l,s.lng||this.language,s),r){const e=t.match(this.interpolator.nestingRegexp);a<(e&&e.length)&&(s.nest=!1)}!s.lng&&"v1"!==this.options.compatibilityAPI&&i&&i.res&&(s.lng=i.usedLng),!1!==s.nest&&(t=this.interpolator.nest(t,(function(){for(var t=arguments.length,i=new Array(t),r=0;r<t;r++)i[r]=arguments[r];return n&&n[0]===i[0]&&!s.context?(o.logger.warn(`It seems you are nesting recursively key: ${i[0]} in key: ${e[0]}`),null):o.translate(...i,e)}),s)),s.interpolation&&this.interpolator.reset()}const r=s.postProcess||this.options.postProcess,a="string"==typeof r?[r]:r;return null!=t&&a&&a.length&&!1!==s.applyPostProcessor&&(t=x.handle(a,t,e,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(s)},...s}:s,this)),t}resolve(t){let e,s,i,n,o,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof t&&(t=[t]),t.forEach((t=>{if(this.isValidLookup(e))return;const a=this.extractFromKey(t,r),l=a.key;s=l;let u=a.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));const c=void 0!==r.count&&"string"!=typeof r.count,h=c&&!r.ordinal&&0===r.count&&this.pluralResolver.shouldUseIntlApi(),p=void 0!==r.context&&("string"==typeof r.context||"number"==typeof r.context)&&""!==r.context,g=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);u.forEach((t=>{this.isValidLookup(e)||(o=t,!S[`${g[0]}-${t}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(S[`${g[0]}-${t}`]=!0,this.logger.warn(`key "${s}" for languages "${g.join(", ")}" won't get resolved as namespace "${o}" 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!!!")),g.forEach((s=>{if(this.isValidLookup(e))return;n=s;const o=[l];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(o,l,s,t,r);else{let t;c&&(t=this.pluralResolver.getSuffix(s,r.count,r));const e=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c&&(o.push(l+t),r.ordinal&&0===t.indexOf(i)&&o.push(l+t.replace(i,this.options.pluralSeparator)),h&&o.push(l+e)),p){const s=`${l}${this.options.contextSeparator}${r.context}`;o.push(s),c&&(o.push(s+t),r.ordinal&&0===t.indexOf(i)&&o.push(s+t.replace(i,this.options.pluralSeparator)),h&&o.push(s+e))}}let a;for(;a=o.pop();)this.isValidLookup(e)||(i=a,e=this.getResource(s,t,a,r))})))}))})),{res:e,usedKey:s,exactUsedKey:i,usedLng:n,usedNS:o}}isValidLookup(t){return!(void 0===t||!this.options.returnNull&&null===t||!this.options.returnEmptyString&&""===t)}getResource(t,e,s){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,e,s,i):this.resourceStore.getResource(t,e,s,i)}getUsedParamsDetails(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],s=t.replace&&"string"!=typeof t.replace;let i=s?t.replace:t;if(s&&void 0!==t.count&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!s){i={...i};for(const t of e)delete i[t]}return i}static hasDefaultValue(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&"defaultValue"===e.substring(0,12)&&void 0!==t[e])return!0;return!1}}function L(t){return t.charAt(0).toUpperCase()+t.slice(1)}class O{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=o.create("languageUtils")}getScriptPartFromCode(t){if(!(t=v(t))||t.indexOf("-")<0)return null;const e=t.split("-");return 2===e.length?null:(e.pop(),"x"===e[e.length-1].toLowerCase()?null:this.formatLanguageCode(e.join("-")))}getLanguagePartFromCode(t){if(!(t=v(t))||t.indexOf("-")<0)return t;const e=t.split("-");return this.formatLanguageCode(e[0])}formatLanguageCode(t){if("string"==typeof t&&t.indexOf("-")>-1){const e=["hans","hant","latn","cyrl","cans","mong","arab"];let s=t.split("-");return this.options.lowerCaseLng?s=s.map((t=>t.toLowerCase())):2===s.length?(s[0]=s[0].toLowerCase(),s[1]=s[1].toUpperCase(),e.indexOf(s[1].toLowerCase())>-1&&(s[1]=L(s[1].toLowerCase()))):3===s.length&&(s[0]=s[0].toLowerCase(),2===s[1].length&&(s[1]=s[1].toUpperCase()),"sgn"!==s[0]&&2===s[2].length&&(s[2]=s[2].toUpperCase()),e.indexOf(s[1].toLowerCase())>-1&&(s[1]=L(s[1].toLowerCase())),e.indexOf(s[2].toLowerCase())>-1&&(s[2]=L(s[2].toLowerCase()))),s.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let e;return t.forEach((t=>{if(e)return;const s=this.formatLanguageCode(t);this.options.supportedLngs&&!this.isSupportedCode(s)||(e=s)})),!e&&this.options.supportedLngs&&t.forEach((t=>{if(e)return;const s=this.getLanguagePartFromCode(t);if(this.isSupportedCode(s))return e=s;e=this.options.supportedLngs.find((t=>t===s?t:t.indexOf("-")<0&&s.indexOf("-")<0?void 0:0===t.indexOf(s)?t:void 0))})),e||(e=this.getFallbackCodes(this.options.fallbackLng)[0]),e}getFallbackCodes(t,e){if(!t)return[];if("function"==typeof t&&(t=t(e)),"string"==typeof t&&(t=[t]),"[object Array]"===Object.prototype.toString.apply(t))return t;if(!e)return t.default||[];let s=t[e];return s||(s=t[this.getScriptPartFromCode(e)]),s||(s=t[this.formatLanguageCode(e)]),s||(s=t[this.getLanguagePartFromCode(e)]),s||(s=t.default),s||[]}toResolveHierarchy(t,e){const s=this.getFallbackCodes(e||this.options.fallbackLng||[],t),i=[],n=t=>{t&&(this.isSupportedCode(t)?i.push(t):this.logger.warn(`rejecting language code not found in supportedLngs: ${t}`))};return"string"==typeof t&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?("languageOnly"!==this.options.load&&n(this.formatLanguageCode(t)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&n(this.getScriptPartFromCode(t)),"currentOnly"!==this.options.load&&n(this.getLanguagePartFromCode(t))):"string"==typeof t&&n(this.formatLanguageCode(t)),s.forEach((t=>{i.indexOf(t)<0&&n(this.formatLanguageCode(t))})),i}}let w=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],N={1:function(t){return Number(t>1)},2:function(t){return Number(1!=t)},3:function(t){return 0},4:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},5:function(t){return Number(0==t?0:1==t?1:2==t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5)},6:function(t){return Number(1==t?0:t>=2&&t<=4?1:2)},7:function(t){return Number(1==t?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},8:function(t){return Number(1==t?0:2==t?1:8!=t&&11!=t?2:3)},9:function(t){return Number(t>=2)},10:function(t){return Number(1==t?0:2==t?1:t<7?2:t<11?3:4)},11:function(t){return Number(1==t||11==t?0:2==t||12==t?1:t>2&&t<20?2:3)},12:function(t){return Number(t%10!=1||t%100==11)},13:function(t){return Number(0!==t)},14:function(t){return Number(1==t?0:2==t?1:3==t?2:3)},15:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2)},16:function(t){return Number(t%10==1&&t%100!=11?0:0!==t?1:2)},17:function(t){return Number(1==t||t%10==1&&t%100!=11?0:1)},18:function(t){return Number(0==t?0:1==t?1:2)},19:function(t){return Number(1==t?0:0==t||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},20:function(t){return Number(1==t?0:0==t||t%100>0&&t%100<20?1:2)},21:function(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)},22:function(t){return Number(1==t?0:2==t?1:(t<0||t>10)&&t%10==0?2:3)}};const R=["v1","v2","v3"],$=["v4"],C={zero:0,one:1,two:2,few:3,many:4,other:5};class P{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=t,this.options=e,this.logger=o.create("pluralResolver"),this.options.compatibilityJSON&&!$.includes(this.options.compatibilityJSON)||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=function(){const t={};return w.forEach((e=>{e.lngs.forEach((s=>{t[s]={numbers:e.nr,plurals:N[e.fc]}}))})),t}()}addRule(t,e){this.rules[t]=e}getRule(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(v(t),{type:e.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s=this.getRule(t,e);return this.shouldUseIntlApi()?s&&s.resolvedOptions().pluralCategories.length>1:s&&s.numbers.length>1}getPluralFormsOfKey(t,e){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(t,s).map((t=>`${e}${t}`))}getSuffixes(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s=this.getRule(t,e);return s?this.shouldUseIntlApi()?s.resolvedOptions().pluralCategories.sort(((t,e)=>C[t]-C[e])).map((t=>`${this.options.prepend}${e.ordinal?`ordinal${this.options.prepend}`:""}${t}`)):s.numbers.map((s=>this.getSuffix(t,s,e))):[]}getSuffix(t,e){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=this.getRule(t,s);return i?this.shouldUseIntlApi()?`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${i.select(e)}`:this.getSuffixRetroCompatible(i,e):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,e){const s=t.noAbs?t.plurals(e):t.plurals(Math.abs(e));let i=t.numbers[s];this.options.simplifyPluralSuffix&&2===t.numbers.length&&1===t.numbers[0]&&(2===i?i="plural":1===i&&(i=""));const n=()=>this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString();return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?`_plural_${i.toString()}`:n():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===t.numbers.length&&1===t.numbers[0]?n():this.options.prepend&&s.toString()?this.options.prepend+s.toString():s.toString()}shouldUseIntlApi(){return!R.includes(this.options.compatibilityJSON)}}function j(t,e,s){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",n=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=function(t,e,s){const i=h(t,s);return void 0!==i?i:h(e,s)}(t,e,s);return!o&&n&&"string"==typeof s&&(o=y(t,s,i),void 0===o&&(o=y(e,s,i))),o}class E{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=o.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(t=>t),this.init(t)}init(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const e=t.interpolation;this.escape=void 0!==e.escape?e.escape:f,this.escapeValue=void 0===e.escapeValue||e.escapeValue,this.useRawValueToEscape=void 0!==e.useRawValueToEscape&&e.useRawValueToEscape,this.prefix=e.prefix?g(e.prefix):e.prefixEscaped||"{{",this.suffix=e.suffix?g(e.suffix):e.suffixEscaped||"}}",this.formatSeparator=e.formatSeparator?e.formatSeparator:e.formatSeparator||",",this.unescapePrefix=e.unescapeSuffix?"":e.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":e.unescapeSuffix||"",this.nestingPrefix=e.nestingPrefix?g(e.nestingPrefix):e.nestingPrefixEscaped||g("$t("),this.nestingSuffix=e.nestingSuffix?g(e.nestingSuffix):e.nestingSuffixEscaped||g(")"),this.nestingOptionsSeparator=e.nestingOptionsSeparator?e.nestingOptionsSeparator:e.nestingOptionsSeparator||",",this.maxReplaces=e.maxReplaces?e.maxReplaces:1e3,this.alwaysFormat=void 0!==e.alwaysFormat&&e.alwaysFormat,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(t,"g");const e=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(e,"g");const s=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(s,"g")}interpolate(t,e,s,i){let n,o,r;const a=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(t){return t.replace(/\$/g,"$$$$")}const c=t=>{if(t.indexOf(this.formatSeparator)<0){const n=j(e,a,t,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(n,void 0,s,{...i,...e,interpolationkey:t}):n}const n=t.split(this.formatSeparator),o=n.shift().trim(),r=n.join(this.formatSeparator).trim();return this.format(j(e,a,o,this.options.keySeparator,this.options.ignoreJSONStructure),r,s,{...i,...e,interpolationkey:o})};this.resetRegExp();const h=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,p=i&&i.interpolation&&void 0!==i.interpolation.skipOnVariables?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:t=>u(t)},{regex:this.regexp,safeValue:t=>this.escapeValue?u(this.escape(t)):u(t)}].forEach((e=>{for(r=0;n=e.regex.exec(t);){const s=n[1].trim();if(o=c(s),void 0===o)if("function"==typeof h){const e=h(t,n,i);o="string"==typeof e?e:""}else if(i&&Object.prototype.hasOwnProperty.call(i,s))o="";else{if(p){o=n[0];continue}this.logger.warn(`missed to pass in variable ${s} for interpolating ${t}`),o=""}else"string"==typeof o||this.useRawValueToEscape||(o=l(o));const a=e.safeValue(o);if(t=t.replace(n[0],a),p?(e.regex.lastIndex+=o.length,e.regex.lastIndex-=n[0].length):e.regex.lastIndex=0,r++,r>=this.maxReplaces)break}})),t}nest(t,e){let s,i,n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function r(t,e){const s=this.nestingOptionsSeparator;if(t.indexOf(s)<0)return t;const i=t.split(new RegExp(`${s}[ ]*{`));let o=`{${i[1]}`;t=i[0],o=this.interpolate(o,n);const r=o.match(/'/g),a=o.match(/"/g);(r&&r.length%2==0&&!a||a.length%2!=0)&&(o=o.replace(/'/g,'"'));try{n=JSON.parse(o),e&&(n={...e,...n})}catch(e){return this.logger.warn(`failed parsing options string in nesting for key ${t}`,e),`${t}${s}${o}`}return delete n.defaultValue,t}for(;s=this.nestingRegexp.exec(t);){let a=[];n={...o},n=n.replace&&"string"!=typeof n.replace?n.replace:n,n.applyPostProcessor=!1,delete n.defaultValue;let u=!1;if(-1!==s[0].indexOf(this.formatSeparator)&&!/{.*}/.test(s[1])){const t=s[1].split(this.formatSeparator).map((t=>t.trim()));s[1]=t.shift(),a=t,u=!0}if(i=e(r.call(this,s[1].trim(),n),n),i&&s[0]===t&&"string"!=typeof i)return i;"string"!=typeof i&&(i=l(i)),i||(this.logger.warn(`missed to resolve ${s[1]} for nesting ${t}`),i=""),u&&(i=a.reduce(((t,e)=>this.format(t,e,o.lng,{...o,interpolationkey:s[1].trim()})),i.trim())),t=t.replace(s[0],i),this.regexp.lastIndex=0}return t}}function F(t){const e={};return function(s,i,n){const o=i+JSON.stringify(n);let r=e[o];return r||(r=t(v(i),n),e[o]=r),r(s)}}class I{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=o.create("formatter"),this.options=t,this.formats={number:F(((t,e)=>{const s=new Intl.NumberFormat(t,{...e});return t=>s.format(t)})),currency:F(((t,e)=>{const s=new Intl.NumberFormat(t,{...e,style:"currency"});return t=>s.format(t)})),datetime:F(((t,e)=>{const s=new Intl.DateTimeFormat(t,{...e});return t=>s.format(t)})),relativetime:F(((t,e)=>{const s=new Intl.RelativeTimeFormat(t,{...e});return t=>s.format(t,e.range||"day")})),list:F(((t,e)=>{const s=new Intl.ListFormat(t,{...e});return t=>s.format(t)}))},this.init(t)}init(t){const e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=e.formatSeparator?e.formatSeparator:e.formatSeparator||","}add(t,e){this.formats[t.toLowerCase().trim()]=e}addCached(t,e){this.formats[t.toLowerCase().trim()]=F(e)}format(t,e,s){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return e.split(this.formatSeparator).reduce(((t,e)=>{const{formatName:n,formatOptions:o}=function(t){let e=t.toLowerCase().trim();const s={};if(t.indexOf("(")>-1){const i=t.split("(");e=i[0].toLowerCase().trim();const n=i[1].substring(0,i[1].length-1);"currency"===e&&n.indexOf(":")<0?s.currency||(s.currency=n.trim()):"relativetime"===e&&n.indexOf(":")<0?s.range||(s.range=n.trim()):n.split(";").forEach((t=>{if(!t)return;const[e,...i]=t.split(":"),n=i.join(":").trim().replace(/^'+|'+$/g,"");s[e.trim()]||(s[e.trim()]=n),"false"===n&&(s[e.trim()]=!1),"true"===n&&(s[e.trim()]=!0),isNaN(n)||(s[e.trim()]=parseInt(n,10))}))}return{formatName:e,formatOptions:s}}(e);if(this.formats[n]){let e=t;try{const r=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},a=r.locale||r.lng||i.locale||i.lng||s;e=this.formats[n](t,a,{...o,...i,...r})}catch(t){this.logger.warn(t)}return e}return this.logger.warn(`there was no format function for ${n}`),t}),t)}}class D extends r{constructor(t,e,s){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=t,this.store=e,this.services=s,this.languageUtils=s.languageUtils,this.options=i,this.logger=o.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(s,i.backend,i)}queueLoad(t,e,s,i){const n={},o={},r={},a={};return t.forEach((t=>{let i=!0;e.forEach((e=>{const r=`${t}|${e}`;!s.reload&&this.store.hasResourceBundle(t,e)?this.state[r]=2:this.state[r]<0||(1===this.state[r]?void 0===o[r]&&(o[r]=!0):(this.state[r]=1,i=!1,void 0===o[r]&&(o[r]=!0),void 0===n[r]&&(n[r]=!0),void 0===a[e]&&(a[e]=!0)))})),i||(r[t]=!0)})),(Object.keys(n).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(n),pending:Object.keys(o),toLoadLanguages:Object.keys(r),toLoadNamespaces:Object.keys(a)}}loaded(t,e,s){const i=t.split("|"),n=i[0],o=i[1];e&&this.emit("failedLoading",n,o,e),s&&this.store.addResourceBundle(n,o,s),this.state[t]=e?-1:2;const r={};this.queue.forEach((s=>{!function(t,e,s,i){const{obj:n,k:o}=u(t,e,Object);n[o]=n[o]||[],n[o].push(s)}(s.loaded,[n],o),function(t,e){void 0!==t.pending[e]&&(delete t.pending[e],t.pendingCount--)}(s,t),e&&s.errors.push(e),0!==s.pendingCount||s.done||(Object.keys(s.loaded).forEach((t=>{r[t]||(r[t]={});const e=s.loaded[t];e.length&&e.forEach((e=>{void 0===r[t][e]&&(r[t][e]=!0)}))})),s.done=!0,s.errors.length?s.callback(s.errors):s.callback())})),this.emit("loaded",r),this.queue=this.queue.filter((t=>!t.done))}read(t,e,s){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!t.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:t,ns:e,fcName:s,tried:i,wait:n,callback:o});this.readingCalls++;const r=(r,a)=>{if(this.readingCalls--,this.waitingReads.length>0){const t=this.waitingReads.shift();this.read(t.lng,t.ns,t.fcName,t.tried,t.wait,t.callback)}r&&a&&i<this.maxRetries?setTimeout((()=>{this.read.call(this,t,e,s,i+1,2*n,o)}),n):o(r,a)},a=this.backend[s].bind(this.backend);if(2!==a.length)return a(t,e,r);try{const s=a(t,e);s&&"function"==typeof s.then?s.then((t=>r(null,t))).catch(r):r(null,s)}catch(t){r(t)}}prepareLoading(t,e){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();"string"==typeof t&&(t=this.languageUtils.toResolveHierarchy(t)),"string"==typeof e&&(e=[e]);const n=this.queueLoad(t,e,s,i);if(!n.toLoad.length)return n.pending.length||i(),null;n.toLoad.forEach((t=>{this.loadOne(t)}))}load(t,e,s){this.prepareLoading(t,e,{},s)}reload(t,e,s){this.prepareLoading(t,e,{reload:!0},s)}loadOne(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const s=t.split("|"),i=s[0],n=s[1];this.read(i,n,"read",void 0,void 0,((s,o)=>{s&&this.logger.warn(`${e}loading namespace ${n} for language ${i} failed`,s),!s&&o&&this.logger.log(`${e}loaded namespace ${n} for language ${i}`,o),this.loaded(t,s,o)}))}saveMissing(t,e,s,i,n){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(e))this.logger.warn(`did not save key "${s}" as the namespace "${e}" 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!!!");else if(null!=s&&""!==s){if(this.backend&&this.backend.create){const a={...o,isUpdate:n},l=this.backend.create.bind(this.backend);if(l.length<6)try{let n;n=5===l.length?l(t,e,s,i,a):l(t,e,s,i),n&&"function"==typeof n.then?n.then((t=>r(null,t))).catch(r):r(null,n)}catch(t){r(t)}else l(t,e,s,i,r,a)}t&&t[0]&&this.store.addResource(t[0],e,s,i)}}}function V(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){let e={};if("object"==typeof t[1]&&(e=t[1]),"string"==typeof t[1]&&(e.defaultValue=t[1]),"string"==typeof t[2]&&(e.tDescription=t[2]),"object"==typeof t[2]||"object"==typeof t[3]){const s=t[3]||t[2];Object.keys(s).forEach((t=>{e[t]=s[t]}))}return e},interpolation:{escapeValue:!0,format:(t,e,s,i)=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function T(t){return"string"==typeof t.ns&&(t.ns=[t.ns]),"string"==typeof t.fallbackLng&&(t.fallbackLng=[t.fallbackLng]),"string"==typeof t.fallbackNS&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function A(){}class U extends r{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;var s;if(super(),this.options=T(t),this.services={},this.logger=o,this.modules={external:[]},s=this,Object.getOwnPropertyNames(Object.getPrototypeOf(s)).forEach((t=>{"function"==typeof s[t]&&(s[t]=s[t].bind(s))})),e&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,e),this;setTimeout((()=>{this.init(t,e)}),0)}}init(){var t=this;let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;"function"==typeof e&&(s=e,e={}),!e.defaultNS&&!1!==e.defaultNS&&e.ns&&("string"==typeof e.ns?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const i=V();function n(t){return t?"function"==typeof t?new t:t:null}if(this.options={...i,...this.options,...T(e)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...i.interpolation,...this.options.interpolation}),void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator),!this.options.isClone){let e;this.modules.logger?o.init(n(this.modules.logger),this.options):o.init(null,this.options),this.modules.formatter?e=this.modules.formatter:"undefined"!=typeof Intl&&(e=I);const s=new O(this.options);this.store=new b(this.options.resources,this.options);const r=this.services;r.logger=o,r.resourceStore=this.store,r.languageUtils=s,r.pluralResolver=new P(s,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!e||this.options.interpolation.format&&this.options.interpolation.format!==i.interpolation.format||(r.formatter=n(e),r.formatter.init(r,this.options),this.options.interpolation.format=r.formatter.format.bind(r.formatter)),r.interpolator=new E(this.options),r.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},r.backendConnector=new D(n(this.modules.backend),r.resourceStore,r,this.options),r.backendConnector.on("*",(function(e){for(var s=arguments.length,i=new Array(s>1?s-1:0),n=1;n<s;n++)i[n-1]=arguments[n];t.emit(e,...i)})),this.modules.languageDetector&&(r.languageDetector=n(this.modules.languageDetector),r.languageDetector.init&&r.languageDetector.init(r,this.options.detection,this.options)),this.modules.i18nFormat&&(r.i18nFormat=n(this.modules.i18nFormat),r.i18nFormat.init&&r.i18nFormat.init(this)),this.translator=new k(this.services,this.options),this.translator.on("*",(function(e){for(var s=arguments.length,i=new Array(s>1?s-1:0),n=1;n<s;n++)i[n-1]=arguments[n];t.emit(e,...i)})),this.modules.external.forEach((t=>{t.init&&t.init(this)}))}if(this.format=this.options.interpolation.format,s||(s=A),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const t=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);t.length>0&&"dev"!==t[0]&&(this.options.lng=t[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((e=>{this[e]=function(){return t.store[e](...arguments)}})),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((e=>{this[e]=function(){return t.store[e](...arguments),t}}));const r=a(),l=()=>{const t=(t,e)=>{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),r.resolve(e),s(t,e)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return t(null,this.t.bind(this));this.changeLanguage(this.options.lng,t)};return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),r}loadResources(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:A;const s="string"==typeof t?t:this.language;if("function"==typeof t&&(e=t),!this.options.resources||this.options.partialBundledLanguages){if(s&&"cimode"===s.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return e();const t=[],i=e=>{e&&"cimode"!==e&&this.services.languageUtils.toResolveHierarchy(e).forEach((e=>{"cimode"!==e&&t.indexOf(e)<0&&t.push(e)}))};s?i(s):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((t=>i(t))),this.options.preload&&this.options.preload.forEach((t=>i(t))),this.services.backendConnector.load(t,this.options.ns,(t=>{t||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),e(t)}))}else e(null)}reloadResources(t,e,s){const i=a();return t||(t=this.languages),e||(e=this.options.ns),s||(s=A),this.services.backendConnector.reload(t,e,(t=>{i.resolve(),s(t)})),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===t.type&&(this.modules.backend=t),("logger"===t.type||t.log&&t.warn&&t.error)&&(this.modules.logger=t),"languageDetector"===t.type&&(this.modules.languageDetector=t),"i18nFormat"===t.type&&(this.modules.i18nFormat=t),"postProcessor"===t.type&&x.addPostProcessor(t),"formatter"===t.type&&(this.modules.formatter=t),"3rdParty"===t.type&&this.modules.external.push(t),this}setResolvedLanguage(t){if(t&&this.languages&&!(["cimode","dev"].indexOf(t)>-1))for(let t=0;t<this.languages.length;t++){const e=this.languages[t];if(!(["cimode","dev"].indexOf(e)>-1)&&this.store.hasLanguageSomeTranslations(e)){this.resolvedLanguage=e;break}}}changeLanguage(t,e){var s=this;this.isLanguageChangingTo=t;const i=a();this.emit("languageChanging",t);const n=t=>{this.language=t,this.languages=this.services.languageUtils.toResolveHierarchy(t),this.resolvedLanguage=void 0,this.setResolvedLanguage(t)},o=(t,o)=>{o?(n(o),this.translator.changeLanguage(o),this.isLanguageChangingTo=void 0,this.emit("languageChanged",o),this.logger.log("languageChanged",o)):this.isLanguageChangingTo=void 0,i.resolve((function(){return s.t(...arguments)})),e&&e(t,(function(){return s.t(...arguments)}))},r=e=>{t||e||!this.services.languageDetector||(e=[]);const s="string"==typeof e?e:this.services.languageUtils.getBestMatchFromCodes(e);s&&(this.language||n(s),this.translator.language||this.translator.changeLanguage(s),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(s)),this.loadResources(s,(t=>{o(t,s)}))};return t||!this.services.languageDetector||this.services.languageDetector.async?!t&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(r):this.services.languageDetector.detect(r):r(t):r(this.services.languageDetector.detect()),i}getFixedT(t,e,s){var i=this;const n=function(t,e){let o;if("object"!=typeof e){for(var r=arguments.length,a=new Array(r>2?r-2:0),l=2;l<r;l++)a[l-2]=arguments[l];o=i.options.overloadTranslationOptionHandler([t,e].concat(a))}else o={...e};o.lng=o.lng||n.lng,o.lngs=o.lngs||n.lngs,o.ns=o.ns||n.ns,o.keyPrefix=o.keyPrefix||s||n.keyPrefix;const u=i.options.keySeparator||".";let c;return c=o.keyPrefix&&Array.isArray(t)?t.map((t=>`${o.keyPrefix}${u}${t}`)):o.keyPrefix?`${o.keyPrefix}${u}${t}`:t,i.t(c,o)};return"string"==typeof t?n.lng=t:n.lngs=t,n.ns=e,n.keyPrefix=s,n}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const s=e.lng||this.resolvedLanguage||this.languages[0],i=!!this.options&&this.options.fallbackLng,n=this.languages[this.languages.length-1];if("cimode"===s.toLowerCase())return!0;const o=(t,e)=>{const s=this.services.backendConnector.state[`${t}|${e}`];return-1===s||2===s};if(e.precheck){const t=e.precheck(this,o);if(void 0!==t)return t}return!(!this.hasResourceBundle(s,t)&&this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!o(s,t)||i&&!o(n,t)))}loadNamespaces(t,e){const s=a();return this.options.ns?("string"==typeof t&&(t=[t]),t.forEach((t=>{this.options.ns.indexOf(t)<0&&this.options.ns.push(t)})),this.loadResources((t=>{s.resolve(),e&&e(t)})),s):(e&&e(),Promise.resolve())}loadLanguages(t,e){const s=a();"string"==typeof t&&(t=[t]);const i=this.options.preload||[],n=t.filter((t=>i.indexOf(t)<0));return n.length?(this.options.preload=i.concat(n),this.loadResources((t=>{s.resolve(),e&&e(t)})),s):(e&&e(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const e=this.services&&this.services.languageUtils||new O(V());return["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"].indexOf(e.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){return new U(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:A;const s=t.forkResourceStore;s&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},n=new U(i);return void 0===t.debug&&void 0===t.prefix||(n.logger=n.logger.clone(t)),["store","services","language"].forEach((t=>{n[t]=this[t]})),n.services={...this.services},n.services.utils={hasLoadedNamespace:n.hasLoadedNamespace.bind(n)},s&&(n.store=new b(this.store.data,i),n.services.resourceStore=n.store),n.translator=new k(n.services,i),n.translator.on("*",(function(t){for(var e=arguments.length,s=new Array(e>1?e-1:0),i=1;i<e;i++)s[i-1]=arguments[i];n.emit(t,...s)})),n.init(i,e),n.translator.options=i,n.translator.backendConnector.services.utils={hasLoadedNamespace:n.hasLoadedNamespace.bind(n)},n}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const K=U.createInstance();K.createInstance=U.createInstance;const M=K.createInstance,H=K.dir,B=K.init,J=K.loadResources,z=K.reloadResources,_=K.use,q=K.changeLanguage,W=K.getFixedT,Y=K.t,G=K.exists,Q=K.setDefaultNamespace,X=K.hasLoadedNamespace,Z=K.loadNamespaces,tt=K.loadLanguages}}]);
2
- //# sourceMappingURL=4991.3f334e41.js.map