locize 3.3.0 → 4.0.0

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 (95) hide show
  1. package/README.md +74 -36
  2. package/dist/cjs/{processLegacy.js → _processLegacy.js} +1 -2
  3. package/dist/cjs/{startStandalone.js → _startStandalone.js} +2 -2
  4. package/dist/cjs/api/handleCommitKeys.js +7 -0
  5. package/dist/cjs/api/handleEditKey.js +1 -1
  6. package/dist/cjs/api/handleIsLocizeEnabled.js +2 -2
  7. package/dist/cjs/api/handleRequestPopupChanges.js +11 -0
  8. package/dist/cjs/api/handleSendMatchedUninstrumented.js +26 -0
  9. package/dist/cjs/api/postMessage.js +32 -45
  10. package/dist/cjs/implementations/dummyImplementation.js +35 -0
  11. package/dist/cjs/implementations/i18nextImplementation.js +94 -0
  12. package/dist/cjs/index.d.ts +9 -16
  13. package/dist/cjs/index.js +4 -9
  14. package/dist/cjs/locizePlugin.js +6 -90
  15. package/dist/cjs/observer.js +1 -0
  16. package/dist/cjs/parser.js +100 -14
  17. package/dist/cjs/process.js +37 -5
  18. package/dist/cjs/store.js +1 -0
  19. package/dist/cjs/ui/elements/highlightBox.js +13 -0
  20. package/dist/cjs/ui/elements/icons.js +1 -17
  21. package/dist/cjs/ui/elements/popup.js +3 -3
  22. package/dist/cjs/ui/elements/ribbonBox.js +3 -6
  23. package/dist/cjs/ui/highlightNode.js +28 -77
  24. package/dist/cjs/ui/popup.js +10 -0
  25. package/dist/cjs/ui/utils.js +18 -0
  26. package/dist/cjs/uninstrumentedStore.js +18 -2
  27. package/dist/cjs/utils.js +54 -0
  28. package/dist/cjs/vars.js +5 -2
  29. package/dist/esm/{processLegacy.js → _processLegacy.js} +1 -2
  30. package/dist/esm/{startStandalone.js → _startStandalone.js} +1 -1
  31. package/dist/esm/api/handleCommitKeys.js +7 -0
  32. package/dist/esm/api/handleEditKey.js +1 -1
  33. package/dist/esm/api/handleIsLocizeEnabled.js +2 -2
  34. package/dist/esm/api/handleRequestPopupChanges.js +11 -0
  35. package/dist/esm/api/handleSendMatchedUninstrumented.js +20 -0
  36. package/dist/esm/api/postMessage.js +33 -44
  37. package/dist/esm/implementations/dummyImplementation.js +31 -0
  38. package/dist/esm/implementations/i18nextImplementation.js +85 -0
  39. package/dist/esm/index.d.ts +9 -16
  40. package/dist/esm/index.js +5 -8
  41. package/dist/esm/locizePlugin.js +5 -85
  42. package/dist/esm/observer.js +1 -0
  43. package/dist/esm/parser.js +101 -16
  44. package/dist/esm/process.js +38 -6
  45. package/dist/esm/store.js +1 -0
  46. package/dist/esm/ui/elements/highlightBox.js +9 -0
  47. package/dist/esm/ui/elements/icons.js +2 -16
  48. package/dist/esm/ui/elements/popup.js +3 -3
  49. package/dist/esm/ui/elements/ribbonBox.js +4 -7
  50. package/dist/esm/ui/highlightNode.js +28 -78
  51. package/dist/esm/ui/popup.js +10 -0
  52. package/dist/esm/ui/utils.js +18 -1
  53. package/dist/esm/uninstrumentedStore.js +18 -2
  54. package/dist/esm/utils.js +53 -1
  55. package/dist/esm/vars.js +5 -3
  56. package/dist/umd/locize.js +726 -496
  57. package/dist/umd/locize.min.js +1 -1
  58. package/index.d.ts +9 -16
  59. package/locize.js +726 -496
  60. package/locize.min.js +1 -1
  61. package/package.json +1 -1
  62. package/src/_startStandalone.js +22 -0
  63. package/src/api/handleCommitKeys.js +9 -0
  64. package/src/api/handleEditKey.js +5 -11
  65. package/src/api/handleIsLocizeEnabled.js +7 -2
  66. package/src/api/handleRequestPopupChanges.js +27 -0
  67. package/src/api/handleSendMatchedUninstrumented.js +38 -0
  68. package/src/api/index.js +1 -4
  69. package/src/api/postMessage.js +37 -53
  70. package/src/implementations/dummyImplementation.js +29 -0
  71. package/src/implementations/i18nextImplementation.js +114 -0
  72. package/src/implementations/index.js +2 -0
  73. package/src/index.js +8 -7
  74. package/src/locizePlugin.js +51 -28
  75. package/src/observer.js +1 -0
  76. package/src/parser.js +207 -19
  77. package/src/process.js +52 -5
  78. package/src/startStandalone.js +4 -17
  79. package/src/store.js +2 -0
  80. package/src/ui/elements/highlightBox.js +17 -0
  81. package/src/ui/elements/popup.js +4 -4
  82. package/src/ui/elements/ribbonBox.js +12 -8
  83. package/src/ui/highlightNode.js +102 -71
  84. package/src/ui/popup.js +33 -5
  85. package/src/ui/utils.js +28 -1
  86. package/src/uninstrumentedStore.js +18 -2
  87. package/src/utils.js +72 -5
  88. package/src/vars.js +6 -4
  89. package/dist/cjs/api/handleTurnOff.js +0 -8
  90. package/dist/cjs/api/handleTurnOn.js +0 -8
  91. package/dist/esm/api/handleTurnOff.js +0 -6
  92. package/dist/esm/api/handleTurnOn.js +0 -6
  93. /package/src/{processLegacy.js → _processLegacy.js} +0 -0
  94. /package/src/api/{handleTurnOff.js → _handleTurnOff.js} +0 -0
  95. /package/src/api/{handleTurnOn.js → _handleTurnOn.js} +0 -0
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).locize={})}(this,(function(e){"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function n(e){var n=function(e,n){if("object"!==t(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===t(n)?n:String(n)}function r(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=["​","‌"],i=RegExp("([".concat(o.join(""),"]{9})+"),"gu"),a=function(e){var t=function(e){return Array.from((new TextEncoder).encode(e))}(e).map(Number),n=t.map((function(e){return function(e){var t=8-e.length;return"0".repeat(t)+e}(e.toString(2))+"0"})).join("");return Array.from(n).map((function(e){return o[Number(e)]})).join("")},l=a("subliminal:start"),c=function(e){var t,n=Array.from(e).map((function(e){return o.indexOf(e)})).map(String).join("").match(/(.{9})/g),r=Uint8Array.from((null==n?void 0:n.map((function(e){return parseInt(e.slice(0,8),2)})))||[]);return t=r,(new TextDecoder).decode(new Uint8Array(t))},s=function(e){var t,n=null===(t=e.match(i))||void 0===t?void 0:t.filter((function(e){return e.length>8}));if(n&&0!==n.length)return c(n[n.length-1])},u=function(e){return e.replace(i,"")},d=function(e){if(0===Object.keys(e).length)return e;var t={k:e.key,n:e.ns,l:e.lng,s:e.source};return JSON.stringify(t)},f=function(e){if(e&&"string"==typeof e&&0===e.indexOf("{"))try{var t=JSON.parse(e||"{}");return{key:t.k,ns:t.n,lng:t.l,source:t.s}}catch(e){return}};function p(e){var t=d(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),n=a(t);return"string"==typeof e&&e?l+e+n:e}function g(e){var t=s(e),n=f(t);return{text:u(e),invisibleMeta:n}}function m(e){if(!e||e.length<27)return!1;if(!i.test(e))return!1;var t=e.substring(e.length-9);return"}"===c(t)}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var b="subliminal",v={name:b,type:"postProcessor",options:{},setOptions:function(e){this.options=y(y({},e),this.options)},process:function(e,t,n,r){var o,i,a,l,c=this.options=y(y({},n),this.options);if(n.i18nResolved)o=n.i18nResolved.exactUsedKey,i=n.i18nResolved.usedNS,a=n.i18nResolved.usedLng,l=void 0===n.i18nResolved.res?o!==e?"default":"key":"translation";else{var s,u,d,f,g,m,h=null!==(s=null!==(u=c.keySeparator)&&void 0!==u?u:null==r||null===(d=r.options)||void 0===d?void 0:d.keySeparator)&&void 0!==s?s:".",b=r.extractFromKey(t.join(h),n),v=b.key,x=b.namespaces;o=v,i=null!==(f=null!==(g=null==x?void 0:x[0])&&void 0!==g?g:c.ns)&&void 0!==f?f:null==r||null===(m=r.options)||void 0===m?void 0:m.defaultNS,a=n.lng||this.language,l=o===e?"key":"translation"}return p(e,{key:o,ns:i,lng:a,source:l})},overloadTranslationOptionHandler:function(){return{postProcess:b,postProcessPassResolved:!0}}},x=["placeholder","title","alt"],w={highlight:"#26a69a",warning:"#e67a00"},O=function(){var e,t;"undefined"!=typeof process&&(t=process),t||"undefined"==typeof window||(t=window.process);var n=(null===(e=(t||{}).env)||void 0===e?void 0:e.locizeIncontext)||"production";return"development"===n?"http://localhost:3003/":"staging"===n?"https://incontext-dev.locize.app":"https://incontext.locize.app"},k=function(){if("undefined"!=typeof document){var e=document.createElement("style");return document.head.appendChild(e),e.sheet}}();function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var P={committed:"commitKeys"};function j(e){I.locizeSavedHandler=e}function C(){return I.scriptTurnedOff=!1,I.turnOn(),I.scriptTurnedOff}function L(){return I.turnOff(),I.scriptTurnedOff=!0,I.scriptTurnedOff}function D(e){I.sendCurrentTargetLanguage(e)}var S=[];function z(e,t){var n;I.source||(I.source=null===(n=document.getElementById("i18next-editor-iframe"))||void 0===n?void 0:n.contentWindow);if(I.origin||(I.origin=O()),I.source&&I.source.postMessage){I.legacy?I.source.postMessage(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({message:e},t),I.origin):I.source.postMessage({sender:"i18next-editor",senderAPIVersion:"v1",action:e,message:e,payload:t},I.origin);var o=S;S=[],o.forEach((function(e){z(e.action,e.payload)}))}else S.push({action:e,payload:t})}var R={},T=5,I={init:function(e,t){I.i18n=e,I.clickHandler=t},requestInitialize:function(e){z("requestInitialize",e),I.initInterval||(I.initInterval=setInterval((function(){T-=1,I.requestInitialize(e),T<0&&I.initInterval&&(clearInterval(I.initInterval),delete I.initInterval)}),1e3))},selectKey:function(e){z("selectKey",e)},confirmResourceBundle:function(e){z("confirmResourceBundle",e)},sendCurrentParsedContent:function(){z("sendCurrentParsedContent",{content:Object.values(vt.data).map((function(e){return{id:e.id,keys:e.keys}}))})},sendCurrentTargetLanguage:function(e){z("sendCurrentTargetLanguage",{targetLng:e||I.i18n.getLng()})},addHandler:function(e,t){R[e]||(R[e]=[]),R[e].push(t)},sendLocizeIsEnabled:function(){z("locizeIsEnabled",{enabled:!0})},turnOn:function(){if(I.scriptTurnedOff)return z("forcedOff");I.clickInterceptionEnabled||window.document.body.addEventListener("click",I.clickHandler,!0),I.clickInterceptionEnabled=!0,z("turnedOn")},turnOff:function(){if(I.scriptTurnedOff)return z("forcedOff");I.clickInterceptionEnabled&&window.document.body.removeEventListener("click",I.clickHandler,!0),I.clickInterceptionEnabled=!1,z("turnedOff")},onAddedKey:function(e,t,n,r){z("added",{lng:e,ns:t,key:n,value:r})}};function M(e,t){var n=vt.get(e.eleUniqueID);if(n&&n.keys[e.textType]){var r=p(t,n.subliminal);if("text"===e.textType)n.node.textContent=r;else if(0===e.textType.indexOf("attr:")){var o=e.textType.replace("attr:","");n.node.setAttribute(o,r)}else if("html"===e.textType){var i="".concat(e.textType,"-").concat(e.children);if(!n.originalChildNodes){var a=[];n.node.childNodes.forEach((function(e){a.push(e)})),n.originalChildNodes=a}if(n.children[i].length===n.node.childNodes.length)n.node.innerHTML=r;else{var l=n.children[i],c=l[0].child,s=document.createElement("div");s.innerHTML=r;var u=[];s.childNodes.forEach((function(e){u.push(e)})),u.forEach((function(e){try{n.node.insertBefore(e,c)}catch(t){n.node.appendChild(e)}})),l.forEach((function(e){n.node.contains(e.child)&&n.node.removeChild(e.child)}))}}}}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function N(e){return function(e){if(Array.isArray(e))return A(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return A(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function H(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?B(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}"undefined"!=typeof window&&window.addEventListener("message",(function(e){var t,n=e.data,r=n.sender,o=n.action,i=n.message,a=n.payload;if(i){var l=P[t=i]?P[t]:t;R[l]&&R[l].forEach((function(t){t(a,e)}))}else"i18next-editor-frame"===r&&R[o]&&R[o].forEach((function(e){e(a)}))})),I.addHandler("editKey",(function(e){var t=e.meta,n=e.value;t&&void 0!==n&&M(t,n)})),I.addHandler("commitKey",(function(e){var t=e.meta,n=e.value,r=e.lng;if(t&&void 0!==n){M(t,n);var o=r||I.i18n.getLng();I.i18n.setResource(o,t.ns,t.key,n),I.i18n.triggerRerender()}})),I.addHandler("commitKeys",(function(e){e.updated.forEach((function(e){var t=e.lng,n=e.ns,r=e.key,o=e.data,i=e.metas,a=e.meta;a&&o.value&&M(a,o.value),i&&Object.values(i).forEach((function(e){M(e,o.value)})),I.i18n.setResource(t,n,r,o.value)})),Object.values(vt.data).forEach((function(e){var t;e.originalChildNodes&&(t=e.node).replaceChildren.apply(t,N(e.originalChildNodes))})),I.i18n.triggerRerender(),I.locizeSavedHandler&&I.locizeSavedHandler(e),window.locizeSavedHandler&&window.locizeSavedHandler(e)})),I.addHandler("confirmInitialized",(function(e){I.initialized=!0,clearInterval(I.initInterval),delete I.initInterval,I.sendCurrentParsedContent(),I.sendCurrentTargetLanguage()}));var q={};var U={save:function(e,t,n){e&&t&&n&&(q[e]||(q[e]={id:e,node:n}),q[e].keys=H(H({},q[e].keys),{},r({},"".concat(t),"uninstrumented")))},clean:function(){Object.values(q).forEach((function(e){document.body.contains(e.node)||(pt(e.id,e.node),delete q[e.id])}))},get:function(e){return q[e]},data:q};function F(e){var t=e.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight,r=window.innerWidth||document.documentElement.clientWidth,o=t.top<=n&&t.top+t.height>=0,i=t.left<=r&&t.left+t.width>=0;return o&&i}function V(e,t){var n=t,r=e.pageX,o=e.pageY,i=r,a=o,l=n.getBoundingClientRect(),c=l.top+document.documentElement.scrollTop,s=c+n.offsetHeight,u=l.left+document.documentElement.scrollLeft,d=u+n.offsetWidth,f=Math.max(r,u),p=Math.min(r,d),g=Math.max(o,c),m=(p>=f?r:d<r?d:u)-i,h=(Math.min(o,s)>=g?o:s<o?s:c)-a,y=Math.pow(Math.pow(m,2)+Math.pow(h,2),.5);return Math.floor(y)}function K(e,t,n){var r;return function(){var o=this,i=arguments,a=n&&!r;clearTimeout(r),r=setTimeout((function(){r=null,n||e.apply(o,i)}),t),a&&e.apply(o,i)}}function W(e){var n={top:0,left:0,right:0,bottom:0},r=e&&e.ownerDocument,o=r&&r.documentElement;if(!o)return n;"undefined"!==t(e.getBoundingClientRect)&&(n=e.getBoundingClientRect());var i=function(e){return null!=(t=e)&&t===t.window?e:9===e.nodeType&&e.defaultView;var t}(r),a=n.top+i.pageYOffset-o.clientTop,l=n.left+i.pageXOffset-o.clientLeft;return{top:a,left:l,right:l+(n.right-n.left),bottom:a+(n.bottom-n.top)}}function Z(e,t){return e&&e.getAttribute&&e.getAttribute(t)}function X(e){var t=Z(e,"data-i18n");return t||(e.nodeType===window.Node.TEXT_NODE&&e.parentElement?X(e.parentElement):void 0)}var Y,_=K((function(e,t){Object.values(vt.data).forEach((function(t){if(F(t.node)){var n=V(e,t.node);if(n<5)!function(e,t,n){var o=e.id;if(ft[o])return;dt[o]||(dt[o]=ut.reduce((function(e,n){return e[n]=t.style[n],e}),{}));st.includes(t.nodeName)?(t.style.outline="".concat(w.highlight," solid 1px"),t.style.setProperty("border-radius","1px"),t.style.setProperty("outline-offset","2px"),t.style.filter="brightness(110%)"):(t.style.outline="".concat(w.highlight," solid 1px"),t.style.setProperty("border-radius","1px"),t.style.setProperty("outline-offset","1px"),t.style.filter="brightness(110%)");if(!e.ribbonBox){var i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=document.createElement("div");t.style="position: absolute; top: 0; left: 0; display: flex; align-items: flex-start; justify-content: center; filter: drop-shadow(0px 0px 20px #aaa );",t.setAttribute("data-i18next-editor-element","true");var n=document.createElement("div");n.style="\n position: absolute;\n width: 0;\n height: 0;\n border-top-width: 7px;\n border-bottom-width: 7px;\n border-left-width: 10px;\n border-right-width: 10px;\n border-style: solid;\n border-color: transparent ".concat(w.highlight," transparent\n transparent;\n "),t.appendChild(n);var r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"18px",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"15px",n=document.createElement("div");n.setAttribute("data-i18next-editor-element","true"),n.style="display: inline-flex; align-items: center; justify-content: center; width: ".concat(e,"; height: ").concat(e,"; box-shadow: inset 0 0 5px ").concat(w.highlight,"; border: 2px solid ").concat(w.highlight,"; border-radius: 50%");var r=document.createElement("img");return r.src=G,r.style.width=t,n.appendChild(r),n}();t.appendChild(r);var o=document.createElement("div");return o.style="display: flex; flex-direction: column; align-items: flex-start; margin-left: 2px; margin-top: 1px",Object.keys(e).forEach((function(t){var n=e[t],r=function(e,t,n){var r=document.createElement("button");r.style="font-family: Arial; position: relative; backdrop-filter: blur(3px); cursor: pointer; padding: 2px 10px 2px 20px; font-size: 15px; font-weight: 300; text-transform: uppercase; color: #fff; background-color: rgba(38, 166, 154, 0.8); border: none; border-radius: 12px",r.classList.add("i18next-editor-button"),r.setAttribute("data-i18next-editor-element","true"),r.setAttribute("title",t);var o=(i=document.createElement("img"),i.setAttribute("data-i18next-editor-element","true"),i.src=Q,i.style.width="15px",i);var i;o.style="position: absolute; left: 4px; top: 3px;",o.style.width="15px",r.appendChild(o);var a=document.createElement("span");return a.textContent=e,r.appendChild(a),r.onclick=n,r}(t.replace("attr:",""),"".concat(n.ns,":").concat(n.key),(function(){I.selectKey(n)}));r.style.marginBottom="2px",o.appendChild(r)})),t.appendChild(o),{box:t,arrow:n}}(n),a=i.box,l=i.arrow;document.body.appendChild(a);var c=t;if(1===t.childNodes.length){var s=t.childNodes[0];if(s&&"#text"===s.nodeName){var u=document.createRange();u.selectNode(s);var d=u.getBoundingClientRect();c={getBoundingClientRect:function(){return d}}}}ct(c,a,{placement:"right",middleware:[De({fallbackPlacements:["left","bottom"]}),ze(),Se((function(e){var t=e.placement,n=e.rects;return"bottom"===t?n.r:35})),Le({element:l})]}).then((function(e){var t=e.x,n=e.y,o=e.middlewareData,i=e.placement;Object.assign(a.style,{left:"".concat(t,"px"),top:"".concat(n,"px"),display:"inline-flex"});var c=i.split("-")[0],s={top:"bottom",right:"left",bottom:"top",left:"right"}[c];if(o.arrow){var u=o.arrow,d=u.x,f=u.y;Object.assign(l.style,r(r({left:null!=d?"".concat(d,"px"):"",top:null!=f?"".concat(f,"px"):"",right:"",bottom:""},s,"".concat("bottom"===c?-18:-25,"px")),"transform","bottom"===c?"rotate(90deg)":"left"===c?"rotate(180deg)":""))}})),e.ribbonBox=a}}(t,t.node,t.keys);else if(n>5){(t.ribbonBox?V(e,t.ribbonBox):1e3)>10&&pt(t,t.node,t.keys)}}})),Object.values(U.data).forEach((function(t){if(F(t.node)){var n=V(e,t.node);n<10?function(e,t,n){var r=e.id;if(ft[r])return;dt[r]||(dt[r]=ut.reduce((function(e,n){return e[n]=t.style[n],e}),{}));st.includes(t.nodeName)?(t.style.outline="".concat(w.warning," solid 1px"),t.style.setProperty("border-radius","1px"),t.style.setProperty("outline-offset","2px"),t.style.filter="brightness(110%)"):(t.style.outline="".concat(w.warning," solid 1px"),t.style.setProperty("border-radius","1px"),t.style.setProperty("outline-offset","1px"),t.style.filter="brightness(110%)")}(t,t.node,t.keys):n>10&&pt(t,t.node,t.keys)}}))}),50);function $(e){Y=function(t){_(t,e)},document.addEventListener("mousemove",Y)}function J(){document.removeEventListener("mousemove",Y)}var Q=URL.createObjectURL(new Blob(['<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#FFFFFF"><g></g><g><g><g><path d="M3,21l3.75,0L17.81,9.94l-3.75-3.75L3,17.25L3,21z M5,18.08l9.06-9.06l0.92,0.92L5.92,19L5,19L5,18.08z"/></g><g><path d="M18.37,3.29c-0.39-0.39-1.02-0.39-1.41,0l-1.83,1.83l3.75,3.75l1.83-1.83c0.39-0.39,0.39-1.02,0-1.41L18.37,3.29z"/></g></g></g></svg>'],{type:"image/svg+xml"})),G=URL.createObjectURL(new Blob(['\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 210 304" stroke="#000" stroke-linecap="round" stroke-linejoin="round" fill="#fff" fill-rule="evenodd">\n <g stroke="none" class="B">\n <path d="M 142 31.5 v 57.2 l 64.3 165.1 s 19.6 40.3 -36.5 50.1 h -128 s -52.3 -5.5 -39.8 -46.9 L 69.5 88.7 V 31.5 z" fill="#009688"/>\n <path d="M 143.3 24.8 H 66.2 c -6.2 0 -11.3 -5.6 -11.3 -12.4 S 60 0 66.2 0 h 77.1 c 6.3 0 11.3 5.6 11.3 12.4 s -5.1 12.4 -11.3 12.4 z" class="C" fill="#004d40"/>\n <path d="M 123 124.9 c 8.3 0 15 8.1 15 18.1 c 0 10 -6.8 18.1 -15 18.1 c -8.3 0 -15 -8.1 -15 -18.1 c 0 -10 6.7 -18.1 15 -18.1 z m -58.8 31.7 c 0 -8.5 5.6 -15.3 12.7 -15.3 s 12.7 6.8 12.7 15.3 s -5.6 15.3 -12.7 15.3 s -12.7 -6.8 -12.7 -15.3 z" fill="white"/>\n <path d="M 147.7 84.9 V 57.7 s 34.5 -7.6 51.7 32.5 c 0 0 -26.9 19.6 -51.7 -5.3 z m -84.5 0 V 57.7 s -34.5 -7.6 -51.7 32.5 c 0 0 26.8 19.6 51.7 -5.3 z" class="C" fill="#004d40"/>\n <path d="M 168.4 197.5 c -56.1 -17.4 -103.3 -8.1 -126.3 -1 l -23.2 56 c -10.5 33.4 33.2 37.8 33.2 37.8 h 106.9 c 46.9 -7.9 30.5 -40.4 30.5 -40.4 z" fill="white"/>\n <path d="M 87.6 218.3 c 0 6 -8.1 10.9 -18.1 10.9 s -18.1 -4.9 -18.1 -10.9 c 0 -6.1 8.1 -10.9 18.1 -10.9 s 18.1 4.9 18.1 10.9 z m 64.4 0 c 0 6 -8.1 10.9 -18.1 10.9 c -10 0 -18.1 -4.9 -18.1 -10.9 c 0 -6.1 8.1 -10.9 18.1 -10.9 c 10 0 18.1 4.9 18.1 10.9 z" class="C" fill="#004d40"/>\n </g>\n</svg>\n'],{type:"image/svg+xml"})),ee=URL.createObjectURL(new Blob(['<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M6 19h12v2H6v-2z"/></svg>'],{type:"image/svg+xml"})),te=URL.createObjectURL(new Blob(['\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 194.667 196" height="196" width="194.667" xml:space="preserve">\n <defs>\n <clipPath id="a" clipPathUnits="userSpaceOnUse">\n <path d="M5.5 74.048C5.5 36.98 35.551 6.93 72.619 6.93c37.069 0 67.119 30.05 67.119 67.118 0 37.07-30.05 67.12-67.119 67.12-37.068 0-67.119-30.05-67.119-67.12"/>\n </clipPath>\n <clipPath id="b" clipPathUnits="userSpaceOnUse">\n <path d="M0 147h146V0H0Z"/>\n </clipPath>\n <clipPath id="c" clipPathUnits="userSpaceOnUse">\n <path d="M88.756 55.055h50.982l4.512 88.195-64 1.25z"/>\n </clipPath>\n </defs>\n <g clip-path="url(#a)" transform="matrix(1.33333 0 0 -1.33333 0 196)">\n <path style="fill:#2196f3;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M0 0c-.766-5.554 1.148-8.427 0-11.107-1.149-2.681-2.49-7.469-1.341-10.724 1.149-3.255 2.872-10.34 4.404-10.533 1.532-.19-1.148 7.66.383 5.171 1.533-2.49 1.533-6.193 4.214-8.746 2.68-2.553 6.319-2.17 9.192-4.658 2.872-2.49 5.744-6.129 8.425-5.746 0 0-.192-1.914-1.532-5.17-1.34-3.255-1.532-7.084.192-9.383 1.723-2.298 3.446-5.746 4.979-7.469 1.532-1.723 2.681-10.915 2.297-15.51-.382-4.596 1.724-14.937 6.511-17.236 4.787-2.298 0 1.15-.957 4.022-.958 2.872.739 9.575 3.052 10.533 2.309.958 4.416 4.787 6.139 7.469 1.724 2.68 6.128 3.83 7.469 7.084 1.341 3.255.766 7.085 1.532 8.809.766 1.724 2.873 5.554-1.724 7.852-4.595 2.298-6.51 1.148-6.702 3.255-.192 2.107-1.341 4.404-4.595 5.361-3.256.959-6.129 2.816-9.768 3.227-3.638.412-4.404-2.461-6.319-.928-1.914 1.531-3.446 3.064-4.213 4.978-.765 1.915-3.064.766-2.871 1.915.19 1.15 3.254 4.404-.193 3.255-3.446-1.148-6.51-.765-6.319 2.298.193 3.064 4.405 4.214 6.129 4.597 1.722.383 3.063-1.723 5.17-3.065 2.106-1.34.191 1.915 1.34 4.214 1.149 2.298 5.554 2.106 6.128 5.361.575 3.255-.191 5.937 3.256 6.32 3.446.383 7.084-.191 7.468 1.533.382 1.722-4.022-.576-4.213 1.531-.192 2.106 3.829 4.978 4.978 2.872 1.149-2.106 4.022-2.298 4.405-1.531.383.765 0 2.105-1.341 5.361-1.34 3.256-2.681 2.298-3.829 5.936-1.149 3.639-3.064-.191-4.979 1.724s-4.213 5.937-4.597 2.489c-.382-3.446-.382-5.361-2.105-8.042-1.724-2.682-2.489-.575-4.022 1.149-1.532 1.723-4.979 3.447-3.83 4.978C23.362 4.979 24.511 9 26.234 7.85c1.724-1.149 4.405-1.149 4.022.767-.383 1.914 0 2.681.766 3.638.766.958 3.447 2.682 3.447-.766 0-3.447-.384-4.405 2.298-4.788 2.681-.383 5.744-.574 5.554 1.149-.193 1.724.766 1.341 0 4.214-.767 2.873-3.065 3.063-5.554 4.405-2.489 1.34-3.83 3.446-5.936 2.68s-2.299-1.531-2.49-3.638c-.192-2.107-1.341-2.873-2.107-1.915-.765.957.192 4.022-2.68 2.106-2.873-1.914-4.021-5.171-5.553-2.872-1.533 2.297 2.297 6.319-1.724 4.595-4.022-1.723-6.895-3.637-4.788-4.404 2.107-.766 4.214-2.107 2.107-2.873-2.107-.765-6.32.575-7.852-.957C4.212 7.66 0 0 0 0" transform="translate(13.926 109.38)"/>\n <path style="fill:none;stroke:#2196f3;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1" d="M0 0c-.766-5.554 1.148-8.427 0-11.107-1.149-2.681-2.49-7.469-1.341-10.724 1.149-3.255 2.872-10.34 4.404-10.533 1.532-.19-1.148 7.66.383 5.171 1.533-2.49 1.533-6.193 4.214-8.746 2.68-2.553 6.319-2.17 9.192-4.658 2.872-2.49 5.744-6.129 8.425-5.746 0 0-.192-1.914-1.532-5.17-1.34-3.255-1.532-7.084.192-9.383 1.723-2.298 3.446-5.746 4.979-7.469 1.532-1.723 2.681-10.915 2.297-15.51-.382-4.596 1.724-14.937 6.511-17.236 4.787-2.298 0 1.15-.957 4.022-.958 2.872.739 9.575 3.052 10.533 2.309.958 4.416 4.787 6.139 7.469 1.724 2.68 6.128 3.83 7.469 7.084 1.341 3.255.766 7.085 1.532 8.809.766 1.724 2.873 5.554-1.724 7.852-4.595 2.298-6.51 1.148-6.702 3.255-.192 2.107-1.341 4.404-4.595 5.361-3.256.959-6.129 2.816-9.768 3.227-3.638.412-4.404-2.461-6.319-.928-1.914 1.531-3.446 3.064-4.213 4.978-.765 1.915-3.064.766-2.871 1.915.19 1.15 3.254 4.404-.193 3.255-3.446-1.148-6.51-.765-6.319 2.298.193 3.064 4.405 4.214 6.129 4.597 1.722.383 3.063-1.723 5.17-3.065 2.106-1.34.191 1.915 1.34 4.214 1.149 2.298 5.554 2.106 6.128 5.361.575 3.255-.191 5.937 3.256 6.32 3.446.383 7.084-.191 7.468 1.533.382 1.722-4.022-.576-4.213 1.531-.192 2.106 3.829 4.978 4.978 2.872 1.149-2.106 4.022-2.298 4.405-1.531.383.765 0 2.105-1.341 5.361-1.34 3.256-2.681 2.298-3.829 5.936-1.149 3.639-3.064-.191-4.979 1.724s-4.213 5.937-4.597 2.489c-.382-3.446-.382-5.361-2.105-8.042-1.724-2.682-2.489-.575-4.022 1.149-1.532 1.723-4.979 3.447-3.83 4.978C23.362 4.979 24.511 9 26.234 7.85c1.724-1.149 4.405-1.149 4.022.767-.383 1.914 0 2.681.766 3.638.766.958 3.447 2.682 3.447-.766 0-3.447-.384-4.405 2.298-4.788 2.681-.383 5.744-.574 5.554 1.149-.193 1.724.766 1.341 0 4.214-.767 2.873-3.065 3.063-5.554 4.405-2.489 1.34-3.83 3.446-5.936 2.68s-2.299-1.531-2.49-3.638c-.192-2.107-1.341-2.873-2.107-1.915-.765.957.192 4.022-2.68 2.106-2.873-1.914-4.021-5.171-5.553-2.872-1.533 2.297 2.297 6.319-1.724 4.595-4.022-1.723-6.895-3.637-4.788-4.404 2.107-.766 4.214-2.107 2.107-2.873-2.107-.765-6.32.575-7.852-.957C4.212 7.66 0 0 0 0Z" transform="translate(13.926 109.38)"/>\n <path style="fill:#2196f3;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M0 0c-.01-2.141.575-3.829 2.49-1.915C4.405 0 5.553 2.298 6.895 1.341c1.34-.958 3.638-.703 4.594-.639.959.064 1.15 2.937 3.831 2.554s1.724.574 4.596 2.107c2.873 1.532 9.001 4.212 2.681 3.446-6.32-.766-6.703.958-11.108-1.914-4.403-2.873-5.36-2.873-6.509-3.639-1.149-.766-2.49 2.298-4.022 0C-.575.958.011 2.182 0 0" transform="translate(36.522 130.061)"/>\n <path style="fill:none;stroke:#2196f3;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1" d="M0 0c-.01-2.141.575-3.829 2.49-1.915C4.405 0 5.553 2.298 6.895 1.341c1.34-.958 3.638-.703 4.594-.639.959.064 1.15 2.937 3.831 2.554s1.724.574 4.596 2.107c2.873 1.532 9.001 4.212 2.681 3.446-6.32-.766-6.703.958-11.108-1.914-4.403-2.873-5.36-2.873-6.509-3.639-1.149-.766-2.49 2.298-4.022 0C-.575.958.011 2.182 0 0Z" transform="translate(36.522 130.061)"/>\n <path style="fill:#2196f3;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M0 0c-2.263-1.956-5.744-4.788-3.064-4.788 2.681 0 3.983 1.404 5.439-.447 1.456-1.85.88-4.723.88-6.063 0-1.341-.766-4.406 1.15-8.235 1.915-3.829 2.106-6.319 4.022-3.829 1.914 2.488 6.51 7.276 8.808 7.658 2.298.384 4.597 1.342 5.746 3.257 1.148 1.915 0 3.773 1.914 5.141 1.914 1.369 1.531 3.093 2.107 5.199C27.575 0 32.747 0 30.448 1.148c-2.297 1.15-6.51 1.916-11.49 1.341C13.979 1.915 4.213 3.638 0 0" transform="translate(59.502 135.998)"/>\n <path style="fill:none;stroke:#2196f3;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1" d="M0 0c-2.263-1.956-5.744-4.788-3.064-4.788 2.681 0 3.983 1.404 5.439-.447 1.456-1.85.88-4.723.88-6.063 0-1.341-.766-4.406 1.15-8.235 1.915-3.829 2.106-6.319 4.022-3.829 1.914 2.488 6.51 7.276 8.808 7.658 2.298.384 4.597 1.342 5.746 3.257 1.148 1.915 0 3.773 1.914 5.141 1.914 1.369 1.531 3.093 2.107 5.199C27.575 0 32.747 0 30.448 1.148c-2.297 1.15-6.51 1.916-11.49 1.341C13.979 1.915 4.213 3.638 0 0Z" transform="translate(59.502 135.998)"/>\n <path style="fill:#2196f3;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M0 0c-1.218-1.986-.575-2.107.766-2.49 1.34-.383-.575-2.68.957-2.872 1.532-.193 4.979-1.15 5.936 0 .959 1.148-1.531.7-3.255 1.977C2.682-2.107.865 1.41 0 0" transform="translate(38.438 76.826)"/>\n <path style="fill:none;stroke:#2196f3;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1" d="M0 0c-1.218-1.986-.575-2.107.766-2.49 1.34-.383-.575-2.68.957-2.872 1.532-.193 4.979-1.15 5.936 0 .959 1.148-1.531.7-3.255 1.977C2.682-2.107.865 1.41 0 0Z" transform="translate(38.438 76.826)"/>\n <path style="fill:#2196f3;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M0 0c-2.063-1.033-1.148-2.682-3.064-3.831-1.915-1.148-1.149-1.531-1.723-4.213-.575-2.68.191-4.212 1.532-2.106S2.298 1.148 0 0" transform="translate(131.121 45.612)"/>\n <path style="fill:none;stroke:#2196f3;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1" d="M0 0c-2.063-1.033-1.148-2.682-3.064-3.831-1.915-1.148-1.149-1.531-1.723-4.213-.575-2.68.191-4.212 1.532-2.106S2.298 1.148 0 0Z" transform="translate(131.121 45.612)"/>\n <path style="fill:#2196f3;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M0 0c-.575-.575-1.532 2.681-2.106 4.213-.575 1.532-.561 4.195 1.056 5.675C.964 11.734 0 7.469 0 5.17 0 2.873.574.575 0 0m-6.704 5.936c-1.341.766-3.828 0-6.892-.957-3.065-.958-.613 2.131.766 4.213 1.233 1.861.574-.574 3.256-.766 2.68-.192 4.213-3.256 2.87-2.49m-4.402-6.511c-.192-1.531.574-4.021-3.639-3.064-4.213.958-4.213 3.256-5.936 1.533-1.723-1.724-3.83-3.255-6.32-.575C-29.49 0-29.107.766-30.447.958c-.955.135-4.138.846-6.792.074.206.123.426.285.663.5 1.915 1.723 1.532 2.298 3.638 4.213 2.108 1.916 3.639 3.638 5.171 1.916 1.532-1.725 4.788-2.108 3.639-4.023-1.149-1.914-.383-3.063.958-1.914 1.339 1.149 3.255 1.914 1.915 3.446-1.342 1.532-2.682 5.554-.766 2.873 1.915-2.681 2.489-4.022 3.637-5.553C-17.234.958-16.085 0-15.702.958c.383.957-.192 3.063.383 3.446.574.383 0-3.255 1.723-3.446 1.723-.192 2.681 0 2.49-1.533M9.192-8.81c-.574 3.257-4.787 32.747-4.787 32.747s-11.299 7.277-13.213 5.746c-1.916-1.533-5.171-1.302-4.788.21s2.872 1.128-1.341 4.002c-4.212 2.873-4.978 5.362-8.233 1.724-3.257-3.639-4.022-6.703-5.937-7.661-1.915-.957-3.447-4.021-1.34-4.787 2.106-.765 2.298 0 4.02-1.531 1.725-1.533 4.023-1.149 4.406-.193.383.959.766 4.022.957 5.171.192 1.149 2.138 4.979 1.93 1.915-.207-3.064 2.665-3.064.75-5.17-1.914-2.106-.765-3.831-4.595-4.214-3.831-.382-4.022 1.915-6.128.766-2.107-1.148-1.915-1.915-2.681-3.063-.766-1.149-4.788-3.447-4.788-3.447s-3.255 1.149-1.724-.958c1.533-2.106 2.873-4.595 1.533-4.786-1.341-.192-4.98 1.914-4.98-.384s-.573-4.787.959-5.362c1.081-.405 1.783-1.284 2.775-1.161-.769-.332-1.468-.813-2.009-1.52-1.491-1.947-.575-5.362-3.639-6.511-3.063-1.15-3.063-2.489-3.639-4.979-.573-2.489 0-8.808.766-9.383.765-.574 2.107-5.362 5.363-4.978 3.256.383 6.702.53 7.851-.023 1.149-.551 3.063 1.171 3.638-3.233.575-4.404 1.915-4.979 2.681-7.277.766-2.297-.383-7.086 0-9.958s3.064-7.852 3.064-10.341c0-2.489 2.873-3.638 4.405-2.681 1.532.958 4.787 2.873 6.127 5.937 1.342 3.063 1.342 4.595 3.447 8.617 2.106 4.021 1.533 6.894 2.489 9.958.958 3.064 3.262 5.171 6.419 8.617 3.156 3.446 2.588 5.362 0 5.171-2.588-.191-4.314 2.297-5.654 5.361-1.338 3.065-2.87 10.724-1.721 8.235 1.149-2.491 3.446-9.384 5.744-10.533 2.298-1.149 6.512 1.953 7.469 3.083.957 1.131.574 4.385-1.916 5.726C.383-8.617 1.915-7.469 4.405-9c2.489-1.532 5.362-3.064 4.787.19" transform="translate(132.845 86.592)"/>\n <path style="fill:none;stroke:#2196f3;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1" d="M0 0c-.575-.575-1.532 2.681-2.106 4.213-.575 1.532-.561 4.195 1.056 5.675C.964 11.734 0 7.469 0 5.17 0 2.873.574.575 0 0Zm-6.704 5.936c-1.341.766-3.828 0-6.892-.957-3.065-.958-.613 2.131.766 4.213 1.233 1.861.574-.574 3.256-.766 2.68-.192 4.213-3.256 2.87-2.49zm-4.402-6.511c-.192-1.531.574-4.021-3.639-3.064-4.213.958-4.213 3.256-5.936 1.533-1.723-1.724-3.83-3.255-6.32-.575C-29.49 0-29.107.766-30.447.958c-.955.135-4.138.846-6.792.074.206.123.426.285.663.5 1.915 1.723 1.532 2.298 3.638 4.213 2.108 1.916 3.639 3.638 5.171 1.916 1.532-1.725 4.788-2.108 3.639-4.023-1.149-1.914-.383-3.063.958-1.914 1.339 1.149 3.255 1.914 1.915 3.446-1.342 1.532-2.682 5.554-.766 2.873 1.915-2.681 2.489-4.022 3.637-5.553C-17.234.958-16.085 0-15.702.958c.383.957-.192 3.063.383 3.446.574.383 0-3.255 1.723-3.446 1.723-.192 2.681 0 2.49-1.533zM9.192-8.81c-.574 3.257-4.787 32.747-4.787 32.747s-11.299 7.277-13.213 5.746c-1.916-1.533-5.171-1.302-4.788.21s2.872 1.128-1.341 4.002c-4.212 2.873-4.978 5.362-8.233 1.724-3.257-3.639-4.022-6.703-5.937-7.661-1.915-.957-3.447-4.021-1.34-4.787 2.106-.765 2.298 0 4.02-1.531 1.725-1.533 4.023-1.149 4.406-.193.383.959.766 4.022.957 5.171.192 1.149 2.138 4.979 1.93 1.915-.207-3.064 2.665-3.064.75-5.17-1.914-2.106-.765-3.831-4.595-4.214-3.831-.382-4.022 1.915-6.128.766-2.107-1.148-1.915-1.915-2.681-3.063-.766-1.149-4.788-3.447-4.788-3.447s-3.255 1.149-1.724-.958c1.533-2.106 2.873-4.595 1.533-4.786-1.341-.192-4.98 1.914-4.98-.384s-.573-4.787.959-5.362c1.081-.405 1.783-1.284 2.775-1.161-.769-.332-1.468-.813-2.009-1.52-1.491-1.947-.575-5.362-3.639-6.511-3.063-1.15-3.063-2.489-3.639-4.979-.573-2.489 0-8.808.766-9.383.765-.574 2.107-5.362 5.363-4.978 3.256.383 6.702.53 7.851-.023 1.149-.551 3.063 1.171 3.638-3.233.575-4.404 1.915-4.979 2.681-7.277.766-2.297-.383-7.086 0-9.958s3.064-7.852 3.064-10.341c0-2.489 2.873-3.638 4.405-2.681 1.532.958 4.787 2.873 6.127 5.937 1.342 3.063 1.342 4.595 3.447 8.617 2.106 4.021 1.533 6.894 2.489 9.958.958 3.064 3.262 5.171 6.419 8.617 3.156 3.446 2.588 5.362 0 5.171-2.588-.191-4.314 2.297-5.654 5.361-1.338 3.065-2.87 10.724-1.721 8.235 1.149-2.491 3.446-9.384 5.744-10.533 2.298-1.149 6.512 1.953 7.469 3.083.957 1.131.574 4.385-1.916 5.726C.383-8.617 1.915-7.469 4.405-9c2.489-1.532 5.362-3.064 4.787.19z" transform="translate(132.845 86.592)"/>\n <path style="fill:#2196f3;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M0 0c-1.173-.353-2.106-2.681-1.532-3.831.576-1.148-.574.576-2.106-.382-1.533-.957-3.808-3.639-1.713-3.829 2.096-.193 1.713 1.531 3.628.765 1.915-.765 4.021-.575 4.021 1.34C2.298-4.021 1.915.574 0 0" transform="translate(95.886 109.955)"/>\n <path style="fill:none;stroke:#2196f3;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1" d="M0 0c-1.173-.353-2.106-2.681-1.532-3.831.576-1.148-.574.576-2.106-.382-1.533-.957-3.808-3.639-1.713-3.829 2.096-.193 1.713 1.531 3.628.765 1.915-.765 4.021-.575 4.021 1.34C2.298-4.021 1.915.574 0 0Z" transform="translate(95.886 109.955)"/>\n <path style="fill:#2196f3;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M0 0c-1.154-.165-1.533-3.064.957-3.447 2.49-.383 6.947.575 5.293 2.107C4.596.191 2.682.383 0 0" transform="translate(83.44 118.763)"/>\n <path style="fill:none;stroke:#2196f3;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1" d="M0 0c-1.154-.165-1.533-3.064.957-3.447 2.49-.383 6.947.575 5.293 2.107C4.596.191 2.682.383 0 0Z" transform="translate(83.44 118.763)"/>\n </g>\n <g clip-path="url(#b)" transform="matrix(1.33333 0 0 -1.33333 0 196)">\n <path style="fill:none;stroke:#2196f3;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1" d="M0 0c0-37.068-30.05-67.119-67.119-67.119S-134.238-37.068-134.238 0c0 37.069 30.05 67.119 67.119 67.119S0 37.069 0 0Z" transform="translate(139.738 74.049)"/>\n <path style="fill:none;stroke:#2196f3;stroke-width:8;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1" d="M0 0c0-36.731-29.777-66.509-66.509-66.509S-133.019-36.731-133.019 0c0 36.733 29.778 66.51 66.51 66.51C-29.777 66.51 0 36.733 0 0Z" transform="translate(139.438 73.186)"/>\n </g>\n <g clip-path="url(#c)" transform="matrix(1.33333 0 0 -1.33333 0 196)">\n <path style="fill:#fff;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M0 0c-1.542-1.541-3.386-2.311-5.533-2.311-2.148 0-3.991.77-5.532 2.311s-2.313 3.387-2.313 5.533c0 2.147.772 3.963 2.313 5.45 1.541 1.486 3.384 2.23 5.532 2.23 2.147 0 3.991-.744 5.533-2.23 1.54-1.487 2.312-3.303 2.312-5.45C2.312 3.387 1.54 1.541 0 0m12.551 23.039c-4.954 4.9-10.954 7.35-18.001 7.35-7.047 0-13.047-2.45-18.002-7.35-4.955-4.898-7.432-10.817-7.432-17.754 0-4.183 2.119-11.176 6.359-20.974 4.238-9.799 8.477-18.717 12.715-26.754 4.241-8.037 6.36-11.946 6.36-11.727.66 1.211 1.568 2.863 2.724 4.955 1.157 2.092 3.194 6.029 6.112 11.809 2.917 5.781 5.477 11.094 7.678 15.935a203.312 203.312 0 0 1 6.111 15.032c1.873 5.173 2.807 9.082 2.807 11.724 0 6.937-2.477 12.856-7.431 17.754" transform="translate(119.64 109.307)"/>\n <path style="fill:#fff;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M0 0c-1.542-1.541-3.386-2.311-5.533-2.311-2.148 0-3.991.77-5.532 2.311s-2.313 3.387-2.313 5.533c0 2.147.772 3.963 2.313 5.45 1.541 1.486 3.384 2.23 5.532 2.23 2.147 0 3.991-.744 5.533-2.23 1.54-1.487 2.312-3.303 2.312-5.45C2.312 3.387 1.54 1.541 0 0m12.551 23.039c-4.954 4.9-10.954 7.35-18.001 7.35-7.047 0-13.047-2.45-18.002-7.35-4.955-4.898-7.432-10.817-7.432-17.754 0-4.183 2.119-11.176 6.359-20.974 4.238-9.799 8.477-18.717 12.715-26.754 4.241-8.037 6.36-11.946 6.36-11.727.66 1.211 1.568 2.863 2.724 4.955 1.157 2.092 3.194 6.029 6.112 11.809 2.917 5.781 5.477 11.094 7.678 15.935a203.312 203.312 0 0 1 6.111 15.032c1.873 5.173 2.807 9.082 2.807 11.724 0 6.937-2.477 12.856-7.431 17.754" transform="translate(119.64 109.307)"/>\n <path style="fill:none;stroke:#2196f3;stroke-width:5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1" d="M0 0c-1.542-1.541-3.386-2.311-5.533-2.311-2.148 0-3.991.77-5.532 2.311s-2.313 3.387-2.313 5.533c0 2.147.772 3.963 2.313 5.45 1.541 1.486 3.384 2.23 5.532 2.23 2.147 0 3.991-.744 5.533-2.23 1.54-1.487 2.312-3.303 2.312-5.45C2.312 3.387 1.54 1.541 0 0Zm12.551 23.039c-4.954 4.9-10.954 7.35-18.001 7.35-7.047 0-13.047-2.45-18.002-7.35-4.955-4.898-7.432-10.817-7.432-17.754 0-4.183 2.119-11.176 6.359-20.974 4.238-9.799 8.477-18.717 12.715-26.754 4.241-8.037 6.36-11.946 6.36-11.727.66 1.211 1.568 2.863 2.724 4.955 1.157 2.092 3.194 6.029 6.112 11.809 2.917 5.781 5.477 11.094 7.678 15.935a203.312 203.312 0 0 1 6.111 15.032c1.873 5.173 2.807 9.082 2.807 11.724 0 6.937-2.477 12.856-7.431 17.754z" transform="translate(119.64 109.307)"/>\n </g>\n</svg>\n'],{type:"image/svg+xml"}));k&&(k.insertRule("@keyframes i18next-editor-animate-top { \n from {\n top: calc(100vh + 600px); \n left: calc(100vw + 300px);\n opacity: 0;\n }\n to {\n top: var(--i18next-editor-popup-position-top);\n left: var(--i18next-editor-popup-position-left);\n opacity: 1;\n }\n }"),k.insertRule("@keyframes i18next-editor-animate-bottom { \n from {\n top: var(--i18next-editor-popup-position-top);\n left: var(--i18next-editor-popup-position-left);\n opacity: 1;\n }\n to {\n top: calc(100vh + 600px); \n left: calc(100vw + 300px);\n opacity: 0;\n }\n }"),k.insertRule(".i18next-editor-popup * { \n -webkit-touch-callout: none; /* iOS Safari */\n -webkit-user-select: none; /* Safari */\n -khtml-user-select: none; /* Konqueror HTML */\n -moz-user-select: none; /* Firefox */\n -ms-user-select: none; /* Internet Explorer/Edge */\n user-select: none; /* Non-prefixed version, currently supported by Chrome and Opera */\n }"),k.insertRule(".i18next-editor-popup .resizer-right {\n width: 15px;\n height: 100%;\n background: transparent;\n position: absolute;\n right: -15px;\n bottom: 0;\n cursor: e-resize;\n }"),k.insertRule(".i18next-editor-popup .resizer-both {\n width: 15px;\n height: 15px;\n background: transparent;\n z-index: 10;\n position: absolute;\n right: -15px;\n bottom: -15px;\n cursor: se-resize;\n }"),k.insertRule(".i18next-editor-popup .resizer-bottom {\n width: 100%;\n height: 15px;\n background: transparent;\n position: absolute;\n right: 0;\n bottom: -15px;\n cursor: s-resize;\n }"));var ne="i18next-editor-popup";function re(e,t){var n=document.createElement("div");n.setAttribute("id",ne),n.classList.add("i18next-editor-popup"),n.style="\n z-index: 9;\n background-color: transparent;\n border: 1px solid rgba(200, 200, 200, 0.9);\n box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);\n border-radius: 3px;\n --i18next-editor-popup-height: 200px;\n height: var(--i18next-editor-popup-height);\n min-height: 150px;\n min-width: 300px;\n --i18next-editor-popup-width: 400px;\n width: var(--i18next-editor-popup-width);\n max-height: 600px;\n max-width: 800px;\n\n position: fixed;\n --i18next-editor-popup-position-top: calc(100vh - var(--i18next-editor-popup-height) - 10px);\n top: calc(100vh - var(--i18next-editor-popup-height) - 10px);\n --i18next-editor-popup-position-left: calc(100vw - var(--i18next-editor-popup-width) - 10px);\n left: calc(100vw - var(--i18next-editor-popup-width) - 10px);\n\n overflow: visible;\n ",n.setAttribute("data-i18next-editor-element","true");var r,o,i,a=document.createElement("div");a.classList.add("i18next-editor-popup-header"),a.style="\n padding: 2px 10px;\n cursor: move;\n z-index: 10;\n backdrop-filter: blur(3px);\n background-color: rgba(200, 200, 200, 0.5);\n background: linear-gradient(0deg, rgba(200, 200, 200, 0.6), rgba(200, 200, 200, 0.5));\n color: #fff;\n text-align: right;\n ",n.appendChild(a),a.appendChild((r=n,o=function(){var e=function(e,t){var n=document.createElement("div");n.setAttribute("data-i18next-editor-element","true"),n.style="\n cursor: pointer;\n position: fixed;\n bottom: 25px;\n right: 25px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 50px;\n height: 50px;\n background-color: rgba(249, 249, 249, 0.2);\n backdrop-filter: blur(3px);\n box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);\n border-radius: 50%\n ",n.onclick=function(){t()};var r=document.createElement("img");return r.src=te,r.style.width="45px",n.appendChild(r),n}(0,(function(){n.style.animation="i18next-editor-animate-top 1s",$(),setTimeout((function(){document.body.removeChild(e)}),1e3)}));document.body.appendChild(e),J()},(i=document.createElement("img")).setAttribute("data-i18next-editor-element","true"),i.src=ee,i.style.width="24px",i.style.cursor="pointer",i.onclick=function(){r.style.setProperty("--i18next-editor-popup-position-top",r.style.top),r.style.setProperty("--i18next-editor-popup-position-left",r.style.left),r.style.animation="i18next-editor-animate-bottom 2s forwards",o()},i));var l=document.createElement("iframe");l.setAttribute("id","i18next-editor-iframe"),l.setAttribute("data-i18next-editor-element","true"),l.style="\n z-index: 100;\n width: 100%;\n height: calc(100% - 28px);\n border: none;\n background: #fff;\n ",l.setAttribute("src",e),l.addEventListener("load",t),n.appendChild(l);var c=document.createElement("div");return c.setAttribute("id","i18next-editor-popup-overlay"),c.setAttribute("data-i18next-editor-element","true"),c.style="\n display: none;\n position: absolute;\n top: 32px;\n z-index: 101;\n width: 100%;\n height: calc(100% - 32px);\n background-color: rgba(200, 200, 200, 0.5);\n background: linear-gradient(0deg, rgba(240, 240, 240, 0.6), rgba(255, 255, 255, 0.5));\n backdrop-filter: blur(2px);\n",n.appendChild(c),n}function oe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}I.addHandler("requestPopupChanges",(function(e){var t=e.containerStyle;if(t){var n=document.getElementById(ne);if(t.height){var r="calc(".concat(t.height," - ").concat(n.style.height,")");n.style.setProperty("top","calc(".concat(n.style.top," - ").concat(r,")")),n.style.setProperty("height",t.height)}if(t.width){var o="calc(".concat(t.width," - ").concat(n.style.width,")");n.style.setProperty("left","calc(".concat(n.style.left," - ").concat(o,")")),n.style.setProperty("width",t.width)}}}));var ie=["lng","ns"];function ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}I.addHandler("requestResourceBundle",(function(e){var t=e.lng,n=e.ns,o=oe(e,ie);I.i18n.getResourceBundle(t,n,(function(e){I.confirmResourceBundle(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ae(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ae(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({resources:e,lng:t,ns:n},o))}))}));var le=[];I.addHandler("selectedKeys",(function(e){var t=e.keys,n=[];Object.values(vt.data).forEach((function(e){Object.values(e.keys).filter((function(e){return t.includes(e.qualifiedKey)})).length&&n.push(e)})),le.forEach((function(e){pt(e,e.node,e.keys,!1)})),n.forEach((function(e){!function(e,t,n){var r=e.id;dt[r]||(dt[r]=ut.reduce((function(e,n){return e[n]=t.style[n],e}),{}));st.includes(t.nodeName)?(t.style.outline="".concat(w.highlight," solid 1px"),t.style.setProperty("border-radius","1px"),t.style.setProperty("outline-offset","2px"),t.style.filter="brightness(110%) drop-shadow(0px 0px 2px ".concat(w.highlight," )")):(t.style.outline="".concat(w.highlight," solid 1px"),t.style.setProperty("border-radius","1px"),t.style.setProperty("outline-offset","1px"),t.style.filter="brightness(110%) drop-shadow(0px 0px 2px ".concat(w.highlight," )"));e.ribbonBox&&(document.body.removeChild(e.ribbonBox),delete e.ribbonBox);ft[r]=!0}(e,e.node,e.keys)})),le=n})),I.addHandler("isLocizeEnabled",(function(e,t){I.source=t.source,I.origin=t.origin,I.legacy=!0,I.sendLocizeIsEnabled()})),I.addHandler("turnOn",(function(e,t){I.turnOn()})),I.addHandler("turnOff",(function(e,t){I.turnOff()})),k&&k.insertRule(".i18next-editor-button:hover { background-color: rgba(38, 166, 154, 1) !important; }");const ce=Math.min,se=Math.max,ue=Math.round,de=e=>({x:e,y:e}),fe={left:"right",right:"left",bottom:"top",top:"bottom"},pe={start:"end",end:"start"};function ge(e,t,n){return se(e,ce(t,n))}function me(e,t){return"function"==typeof e?e(t):e}function he(e){return e.split("-")[0]}function ye(e){return e.split("-")[1]}function be(e){return"x"===e?"y":"x"}function ve(e){return"y"===e?"height":"width"}function xe(e){return["top","bottom"].includes(he(e))?"y":"x"}function we(e){return be(xe(e))}function Oe(e){return e.replace(/start|end/g,(e=>pe[e]))}function ke(e){return e.replace(/left|right|bottom|top/g,(e=>fe[e]))}function Ee(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Pe(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function je(e,t,n){let{reference:r,floating:o}=e;const i=xe(t),a=we(t),l=ve(a),c=he(t),s="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[l]/2-o[l]/2;let p;switch(c){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(ye(t)){case"start":p[a]-=f*(n&&s?-1:1);break;case"end":p[a]+=f*(n&&s?-1:1)}return p}async function Ce(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:l,strategy:c}=e,{boundary:s="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=me(t,e),g=Ee(p),m=l[f?"floating"===d?"reference":"floating":d],h=Pe(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:s,rootBoundary:u,strategy:c})),y="floating"===d?{...a.floating,x:r,y:o}:a.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),v=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},x=Pe(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:y,offsetParent:b,strategy:c}):y);return{top:(h.top-x.top+g.top)/v.y,bottom:(x.bottom-h.bottom+g.bottom)/v.y,left:(h.left-x.left+g.left)/v.x,right:(x.right-h.right+g.right)/v.x}}const Le=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:l,middlewareData:c}=t,{element:s,padding:u=0}=me(e,t)||{};if(null==s)return{};const d=Ee(u),f={x:n,y:r},p=we(o),g=ve(p),m=await a.getDimensions(s),h="y"===p,y=h?"top":"left",b=h?"bottom":"right",v=h?"clientHeight":"clientWidth",x=i.reference[g]+i.reference[p]-f[p]-i.floating[g],w=f[p]-i.reference[p],O=await(null==a.getOffsetParent?void 0:a.getOffsetParent(s));let k=O?O[v]:0;k&&await(null==a.isElement?void 0:a.isElement(O))||(k=l.floating[v]||i.floating[g]);const E=x/2-w/2,P=k/2-m[g]/2-1,j=ce(d[y],P),C=ce(d[b],P),L=j,D=k-m[g]-C,S=k/2-m[g]/2+E,z=ge(L,S,D),R=!c.arrow&&null!=ye(o)&&S!=z&&i.reference[g]/2-(S<L?j:C)-m[g]/2<0,T=R?S<L?S-L:S-D:0;return{[p]:f[p]+T,data:{[p]:z,centerOffset:S-z-T,...R&&{alignmentOffset:T}},reset:R}}}),De=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:l,platform:c,elements:s}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...h}=me(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const y=he(o),b=he(l)===l,v=await(null==c.isRTL?void 0:c.isRTL(s.floating)),x=f||(b||!m?[ke(l)]:function(e){const t=ke(e);return[Oe(e),t,Oe(t)]}(l));f||"none"===g||x.push(...function(e,t,n,r){const o=ye(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}(he(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(Oe)))),i}(l,m,g,v));const w=[l,...x],O=await Ce(t,h),k=[];let E=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&k.push(O[y]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=ye(e),o=we(e),i=ve(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=ke(a)),[a,ke(a)]}(o,a,v);k.push(O[e[0]],O[e[1]])}if(E=[...E,{placement:o,overflows:k}],!k.every((e=>e<=0))){var P,j;const e=((null==(P=i.flip)?void 0:P.index)||0)+1,t=w[e];if(t)return{data:{index:e,overflows:E},reset:{placement:t}};let n=null==(j=E.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:j.placement;if(!n)switch(p){case"bestFit":{var C;const e=null==(C=E.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:C[0];e&&(n=e);break}case"initialPlacement":n=l}if(o!==n)return{reset:{placement:n}}}return{}}}};const Se=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=he(n),l=ye(n),c="y"===xe(n),s=["left","top"].includes(a)?-1:1,u=i&&c?-1:1,d=me(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:g}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return l&&"number"==typeof g&&(p="end"===l?-1*g:g),c?{x:p*u,y:f*s}:{x:f*s,y:p*u}}(t,e);return{x:n+o.x,y:r+o.y,data:o}}}},ze=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=me(e,t),s={x:n,y:r},u=await Ce(t,c),d=xe(he(o)),f=be(d);let p=s[f],g=s[d];if(i){const e="y"===f?"bottom":"right";p=ge(p+u["y"===f?"top":"left"],p,p-u[e])}if(a){const e="y"===d?"bottom":"right";g=ge(g+u["y"===d?"top":"left"],g,g-u[e])}const m=l.fn({...t,[f]:p,[d]:g});return{...m,data:{x:m.x-n,y:m.y-r}}}}};function Re(e){return Me(e)?(e.nodeName||"").toLowerCase():"#document"}function Te(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Ie(e){var t;return null==(t=(Me(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Me(e){return e instanceof Node||e instanceof Te(e).Node}function Ae(e){return e instanceof Element||e instanceof Te(e).Element}function Ne(e){return e instanceof HTMLElement||e instanceof Te(e).HTMLElement}function Be(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Te(e).ShadowRoot)}function He(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ke(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function qe(e){return["table","td","th"].includes(Re(e))}function Ue(e){const t=Fe(),n=Ke(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function Fe(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Ve(e){return["html","body","#document"].includes(Re(e))}function Ke(e){return Te(e).getComputedStyle(e)}function We(e){return Ae(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Ze(e){if("html"===Re(e))return e;const t=e.assignedSlot||e.parentNode||Be(e)&&e.host||Ie(e);return Be(t)?t.host:t}function Xe(e){const t=Ze(e);return Ve(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ne(t)&&He(t)?t:Xe(t)}function Ye(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Xe(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=Te(o);return i?t.concat(a,a.visualViewport||[],He(o)?o:[],a.frameElement&&n?Ye(a.frameElement):[]):t.concat(o,Ye(o,[],n))}function _e(e){const t=Ke(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ne(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=ue(n)!==i||ue(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}function $e(e){return Ae(e)?e:e.contextElement}function Je(e){const t=$e(e);if(!Ne(t))return de(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=_e(t);let a=(i?ue(n.width):n.width)/r,l=(i?ue(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const Qe=de(0);function Ge(e){const t=Te(e);return Fe()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Qe}function et(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=$e(e);let a=de(1);t&&(r?Ae(r)&&(a=Je(r)):a=Je(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Te(e))&&t}(i,n,r)?Ge(i):de(0);let c=(o.left+l.x)/a.x,s=(o.top+l.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const e=Te(i),t=r&&Ae(r)?Te(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=Je(n),t=n.getBoundingClientRect(),r=Ke(n),o=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,s*=e.y,u*=e.x,d*=e.y,c+=o,s+=i,n=Te(n).frameElement}}return Pe({width:u,height:d,x:c,y:s})}function tt(e){return et(Ie(e)).left+We(e).scrollLeft}function nt(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Te(e),r=Ie(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,l=0,c=0;if(o){i=o.width,a=o.height;const e=Fe();(!e||e&&"fixed"===t)&&(l=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:l,y:c}}(e,n);else if("document"===t)r=function(e){const t=Ie(e),n=We(e),r=e.ownerDocument.body,o=se(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=se(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+tt(e);const l=-n.scrollTop;return"rtl"===Ke(r).direction&&(a+=se(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:l}}(Ie(e));else if(Ae(t))r=function(e,t){const n=et(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Ne(e)?Je(e):de(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Ge(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return Pe(r)}function rt(e,t){const n=Ze(e);return!(n===t||!Ae(n)||Ve(n))&&("fixed"===Ke(n).position||rt(n,t))}function ot(e,t,n){const r=Ne(t),o=Ie(t),i="fixed"===n,a=et(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const c=de(0);if(r||!r&&!i)if(("body"!==Re(t)||He(o))&&(l=We(t)),r){const e=et(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else o&&(c.x=tt(o));return{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function it(e,t){return Ne(e)&&"fixed"!==Ke(e).position?t?t(e):e.offsetParent:null}function at(e,t){const n=Te(e);if(!Ne(e))return n;let r=it(e,t);for(;r&&qe(r)&&"static"===Ke(r).position;)r=it(r,t);return r&&("html"===Re(r)||"body"===Re(r)&&"static"===Ke(r).position&&!Ue(r))?n:r||function(e){let t=Ze(e);for(;Ne(t)&&!Ve(t);){if(Ue(t))return t;t=Ze(t)}return null}(e)||n}const lt={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=Ne(n),i=Ie(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0},l=de(1);const c=de(0);if((o||!o&&"fixed"!==r)&&(("body"!==Re(n)||He(i))&&(a=We(n)),Ne(n))){const e=et(n);l=Je(n),c.x=e.x+n.clientLeft,c.y=e.y+n.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-a.scrollLeft*l.x+c.x,y:t.y*l.y-a.scrollTop*l.y+c.y}},getDocumentElement:Ie,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=Ye(e,[],!1).filter((e=>Ae(e)&&"body"!==Re(e))),o=null;const i="fixed"===Ke(e).position;let a=i?Ze(e):e;for(;Ae(a)&&!Ve(a);){const t=Ke(a),n=Ue(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||He(a)&&!n&&rt(e,a))?r=r.filter((e=>e!==a)):o=t,a=Ze(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],l=i.reduce(((e,n)=>{const r=nt(t,n,o);return e.top=se(r.top,e.top),e.right=ce(r.right,e.right),e.bottom=ce(r.bottom,e.bottom),e.left=se(r.left,e.left),e}),nt(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:at,getElementRects:async function(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||at,i=this.getDimensions;return{reference:ot(t,await o(n),r),floating:{x:0,y:0,...await i(n)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){return _e(e)},getScale:Je,isElement:Ae,isRTL:function(e){return"rtl"===Ke(e).direction}},ct=(e,t,n)=>{const r=new Map,o={platform:lt,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),c=await(null==a.isRTL?void 0:a.isRTL(t));let s=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=je(s,r,c),f=r,p={},g=0;for(let n=0;n<l.length;n++){const{name:i,fn:m}=l[n],{x:h,y:y,data:b,reset:v}=await m({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:s,platform:a,elements:{reference:e,floating:t}});u=null!=h?h:u,d=null!=y?y:d,p={...p,[i]:{...p[i],...b}},v&&g<=50&&(g++,"object"==typeof v&&(v.placement&&(f=v.placement),v.rects&&(s=!0===v.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):v.rects),({x:u,y:d}=je(s,f,c))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})};var st=["DIV","P","H1","H2","H3","H4","H5","H6","OL","UL","ADDRESS","BLOCKQUOTE","DL","PRE"],ut=["outline","border-radius","outline-offset","filter"],dt={},ft={};function pt(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=e.id;r&&ft[o]||(dt[o]&&(ut.forEach((function(e){t.style.setProperty(e,dt[o][e])})),delete dt[o]),e.ribbonBox&&(document.body.removeChild(e.ribbonBox),delete e.ribbonBox),delete ft[o])}function gt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gt(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ht={};var yt,bt,vt={save:function(e,t,n,o,i,a){e&&n&&o&&i&&(ht[e]||(ht[e]={id:e,node:i,subliminal:t}),ht[e].keys=mt(mt({},ht[e].keys),{},r({},"".concat(n),o)),a&&(ht[e].children=mt(mt({},ht[e].children),{},r({},"".concat(n,"-").concat(a.map((function(e){return e.childIndex})).join(",")),a))))},clean:function(){Object.values(ht).forEach((function(e){document.body.contains(e.node)||(pt(e.id,e.node),delete ht[e.id])}))},get:function(e){return ht[e]},data:ht};function xt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xt(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}!function(){if("undefined"!=typeof Document){var e=1;Document.prototype.hasOwnProperty("uniqueID")||(console.info('"document.uniqueID" not implemented; creating shim'),Object.defineProperty(Document.prototype,"uniqueID",{get:function(){return e++},enumerable:!1,configurable:!1}),Object.defineProperty(Element.prototype,"uniqueID",{get:function(){return Object.defineProperty(this,"uniqueID",{value:document.uniqueID,writable:!1,enumerable:!1,configurable:!1}),this.uniqueID},enumerable:!1,configurable:!0}))}}();var Ot=[];function kt(e,t){if(!e.dataset||"true"!==e.dataset.i18nextEditorElement){t(e);for(var n=e.childNodes,r=0;r<n.length;r++)kt(n[r],t)}}function Et(e,t,n,o){var i,a,l=n.invisibleMeta,c=n.text;if(l&&l.key&&l.ns)return yt||(yt=null===(i=bt)||void 0===i?void 0:i.getSourceLng()),wt(wt({eleUniqueID:e,textType:t,children:o?o.map((function(e){return e.childIndex})).join(","):null,qualifiedKey:"".concat(l.ns,":").concat(l.key)},l),{},{extractedText:c,i18nTargetLng:null===(a=bt)||void 0===a?void 0:a.getLng(),i18nSourceLng:yt,i18nRawText:r(r({},"".concat(l.lng),"translation"===l.source&&bt?bt.getResource(l.lng,l.ns,l.key):null),"".concat(yt),"translation"===l.source&&bt?bt.getResource(yt,l.ns,l.key):null)})}function Pt(e){if(e.childNodes&&!Ot.includes(e.uniqueID)){var t=[];e.childNodes.forEach((function(n,r){if(t.length&&"#text"!==n.nodeName&&(Ot.push(n.uniqueID),t.push({childIndex:r,child:n})),"#text"===n.nodeName){var o=n.textContent;if(!/^\s*$/.test(o)){var i=m(o),a=o.startsWith(l);if(a&&i){var c=g(o);vt.save(e.uniqueID,c.invisibleMeta,"text",Et(e.uniqueID,"text",c),e)}else if(a)t.push({childIndex:r,child:n,text:o});else if(t.length&&!i)t.push({childIndex:r,child:n,text:o});else if(t.length&&i){t.push({childIndex:r,child:n,text:o});var s=g(t.reduce((function(e,t){return e+t.text}),""));vt.save(e.uniqueID,s.invisibleMeta,"html",Et(e.uniqueID,"html",s,t),e,t),t=[]}else o&&U.save(e.uniqueID,"text",e)}}}))}e.getAttribute&&x.forEach((function(t){var n=e.getAttribute(t);if(m(n)){var r=g(n);vt.save(e.uniqueID,r.invisibleMeta,"attr:".concat(t),Et(e.uniqueID,"attr:".concat(t),r),e)}else n&&U.save(e.uniqueID,"attr:".concat(t),e)}))}function jt(e){return yt=void 0,kt(e,Pt),vt.clean(),Ot=[],vt.data}var Ct={};function Lt(e){if(e.uniqueID){var t=Ct[e.uniqueID];if(t&&t.triggered>10&&t.lastTriggerDate+500<Date.now())return!t.warned&&console&&(console.warn("locize ::: ignoring element change - an element is rerendering too often in short interval","\n",'consider adding the "data-locize-editor-ignore:" attribute to the element:',e),t.warned=!0),!0}var n=e.dataset&&("true"===e.dataset.i18nextEditorElement||"true"===e.dataset.locizeEditorIgnore);return!n&&e.parentElement?Lt(e.parentElement):n}function Dt(e,t){var n,r,o=[],i=K((function(){t(o),o=[]}),100),a=new MutationObserver((function(e){if(n)return r&&clearTimeout(r),void(r=setTimeout((function(){n&&(n=!1)}),200));var t=!1;e.forEach((function(e){if("attributes"!==e.type||x.includes(e.attributeName)){if(Object.keys(Ct).forEach((function(e){Ct[e].lastTriggerDate+6e4<Date.now()&&delete Ct[e]})),"childList"===e.type){var n=0;if(Lt(e.target)||(e.addedNodes.forEach((function(e){Lt(e)||(n+=1)}),0),e.removedNodes.forEach((function(e){Lt(e)||(n+=1)}),0)),0===n)return}if(t=!0,e.target&&e.target.uniqueID){var r=Ct[e.target.uniqueID]||{triggered:0};r.triggered=r.triggered+1,r.lastTriggerDate=Date.now(),Ct[e.target.uniqueID]=r}o.reduce((function(t,n){return!(!t&&!n.contains(e.target)&&e.target.parentElement)}),!1)||(o=o.filter((function(t){return!e.target.contains(t)}))).push(e.target)}})),t&&i()}));return{start:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{attributes:!0,childList:!0,characterData:!0,subtree:!0};a.observe(e,t)},skipNext:function(){n=!0}}}function St(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?St(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):St(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Rt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("undefined"!=typeof document){var t=document.getElementById("locize"),n={};if(["projectId","version"].forEach((function(e){if(t){var r=t.getAttribute(e.toLowerCase())||t.getAttribute("data-"+e.toLowerCase());"true"===r&&(r=!0),"false"===r&&(r=!1),null!=r&&(n[e]=r)}})),n=zt(zt({},e.getLocizeDetails()),n),I.init(e),bt=e,null==e||e.bindLanguageChange((function(t){I.sendCurrentTargetLanguage(e.getLng())})),document.body)return r();window.addEventListener("load",(function(){return r()}))}function r(){var e=Dt(document.body,(function(e){e.forEach((function(e){jt(e)})),I.sendCurrentParsedContent()}));e.start(),$(e),document.getElementById(ne)||(document.body.append(re(O(),(function(){I.requestInitialize(n)}))),function(){for(var e=0,t=0,n=0,r=0,o=document.getElementsByClassName("i18next-editor-popup"),i=null,a=null,l=100,c=0;c<o.length;c++){var s=o[c],u=g(s);s.onmousedown=function(){this.style.zIndex=""+ ++l},u&&(u.parentPopup=s,u.onmousedown=d)}function d(e){a||(a=document.getElementById("i18next-editor-popup-overlay")),a&&(a.style.display="block"),J(),(i=this.parentPopup).style.zIndex=""+ ++l,e=e||window.event,n=e.clientX,r=e.clientY,document.onmouseup=p,document.onmousemove=f}function f(o){i&&(o=o||window.event,e=n-o.clientX,t=r-o.clientY,n=o.clientX,r=o.clientY,i.style.top=i.offsetTop-t+"px",i.style.left=i.offsetLeft-e+"px")}function p(){$(),a&&(a.style.display="none"),document.onmouseup=null,document.onmousemove=null}function g(e){var t=e.getElementsByClassName("i18next-editor-popup-header");return 1===t.length?t[0]:null}}(),function(){for(var e,t,n,r,o=document.getElementsByClassName("i18next-editor-popup"),i=null,a=null,l=0;l<o.length;l++){var c=o[l],s=document.createElement("div");s.className="resizer-right",c.appendChild(s),s.addEventListener("mousedown",f,!1),s.parentPopup=c;var u=document.createElement("div");u.className="resizer-bottom",c.appendChild(u),u.addEventListener("mousedown",f,!1),u.parentPopup=c;var d=document.createElement("div");d.className="resizer-both",c.appendChild(d),d.addEventListener("mousedown",f,!1),d.parentPopup=c}function f(o){J(),a||(a=document.getElementById("i18next-editor-popup-overlay")),a&&(a.style.display="block"),i=this.parentPopup,e=o.clientX,t=o.clientY,n=parseInt(document.defaultView.getComputedStyle(i).width,10),r=parseInt(document.defaultView.getComputedStyle(i).height,10),document.documentElement.addEventListener("mousemove",p,!1),document.documentElement.addEventListener("mouseup",g,!1)}function p(o){i.style.width=n+o.clientX-e+"px",i.style.height=r+o.clientY-t+"px"}function g(){$(),a&&(a.style.display="none"),document.documentElement.removeEventListener("mousemove",p,!1),document.documentElement.removeEventListener("mouseup",g,!1)}}())}}function Tt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r=function(e){if(e.srcElement&&1===e.srcElement.nodeType&&("BUTTON"===e.srcElement.nodeName||"INPUT"===e.srcElement.nodeName))return e.srcElement.getAttribute&&""===e.srcElement.getAttribute("ignorelocizeeditor")?null:e.srcElement;var t;if(e.originalEvent&&e.originalEvent.explicitOriginalTarget)t=e.originalEvent.explicitOriginalTarget;else{var n=e.srcElement;if(n.getAttribute&&""===n.getAttribute("ignorelocizeeditor"))return null;for(var r,o=e.pageX,i=e.pageY,a=0,l=0;l<n.childNodes.length;l++){var c=n.childNodes[l],s=W(c);1===c.nodeType&&s.bottom<i&&(a=l+1),!r&&s.top+(c.clientHeight||0)>i&&(r=l)}a+1>n.childNodes.length&&(a=n.childNodes.length-1),r||(r=n.childNodes.length);for(var u=a;u<r;u++){var d=n.childNodes[u];if(W(d).left>o)break;d&&8!==d.nodeType&&(t=d)}}return t}(n);if(!r)return{};n.preventDefault(),n.stopPropagation();var o=function(e){var t=e.textContent||e.text&&e.text.innerText||e.placeholder;if("string"==typeof t)return t.replace(/\n +/g,"").trim()}(r),i=X(r),a=function(e){var t;return function e(n){var r=Z(n,"i18next-options");if(r||(r=Z(n,"data-i18next-options")),r||(r=Z(n,"i18n-options")),r||(r=Z(n,"data-i18n-options")),r){var o={};try{o=JSON.parse(r)}catch(e){}o.ns&&(t=o.ns)}t||(t=Z(n,"i18next-ns")),t||(t=Z(n,"data-i18next-ns")),t||(t=Z(n,"i18n-ns")),t||(t=Z(n,"data-i18n-ns")),!t&&n.parentElement&&e(n.parentElement)}(e),t}(r)||function(){if(t.isLocizify)return t.defaultNS}();if(m(o)){var l=g(o);l&&l.invisibleMeta&&l.invisibleMeta.key&&(i=l.invisibleMeta.key),l&&l.invisibleMeta&&l.invisibleMeta.ns&&(a=l.invisibleMeta.ns)}var c=r.getBoundingClientRect?r:r.parentElement,s=c.getBoundingClientRect(),u=s.top,d=s.left,f=s.width,p=s.height,h=window.getComputedStyle(c,null),y=parseFloat(h.getPropertyValue("padding-top")),b=parseFloat(h.getPropertyValue("padding-bottom")),v=parseFloat(h.getPropertyValue("padding-right")),x=parseFloat(h.getPropertyValue("padding-left")),w=h.getPropertyValue("box-sizing");e({tagName:c.tagName,text:o,key:i,ns:a,box:{top:u,left:d,width:"border-box"===w?f:f-v-x,height:"border-box"===w?p:p-y-b},style:h.cssText})}}function It(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?It(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):It(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function At(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("undefined"!=typeof document){var t=document.getElementById("locize"),n={};if(["projectId","version"].forEach((function(e){if(t){var r=t.getAttribute(e.toLowerCase())||t.getAttribute("data-"+e.toLowerCase());"true"===r&&(r=!0),"false"===r&&(r=!1),null!=r&&(n[e]=r)}})),n=Mt(Mt({},e.getLocizeDetails()),n),I.init(e,Tt((function(e){z("clickedElement",{payload:e})}),e.getLocizeDetails())),I.sendCurrentTargetLanguage=function(t){z("setLng",{lng:t||e.getLng()})},"undefined"!=typeof window){var r=window.document.location.href;window.addEventListener("load",(function(){z("hrefChanged",{href:window.document.location.href});var e=window.document.querySelector("body");new window.MutationObserver((function(e){e.forEach((function(e){r!==window.document.location.href&&z("hrefChanged",{href:r=window.document.location.href})}))})).observe(e,{childList:!0,subtree:!0})}))}null==e||e.bindLanguageChange((function(t){I.sendCurrentTargetLanguage(e.getLng())})),null==e||e.bindMissingKeyHandler((function(e,t,n,r){I.onAddedKey(e,t,n,r)}))}}function Nt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nt(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ht,qt="undefined"!=typeof window;try{qt=self!==top}catch(e){}var Ut=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.qsProp=e.qsProp||"incontext",{type:"3rdParty",init:function(t){var n=t.options;Ht=t;var r=e.show||"true"===function(e,t){if("undefined"==typeof window)return null;t||(t=window.location.href.toLowerCase()),e=e.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null}(e.qsProp);!qt&&r&&function(e,t){e.use(v),"string"==typeof t.postProcess?t.postProcess=[t.postProcess,"subliminal"]:Array.isArray(t.postProcess)?t.postProcess.push("subliminal"):t.postProcess="subliminal",t.postProcessPassResolved=!0}(Ht,n);var o=function(e){var t={getResource:function(t,n,r){return e.getResource(t,n,r)},setResource:function(t,n,r,o){return e.addResource(t,n,r,o,{silent:!0})},getResourceBundle:function(t,n,r){e.loadNamespaces(n,(function(){r(e.getResourceBundle(t,n))}))},getLng:function(){return e.resolvedLanguage||e.languages[0]},getSourceLng:function(){var t=e.options.fallbackLng;if("string"==typeof t)return t;if(Array.isArray(t))return t[t.length-1];if(t&&t.default){if("string"==typeof t.default)return t;if(Array.isArray(t.default))return t.default[t.default.length-1]}if("function"==typeof t){var n=t(e.resolvedLanguage);if("string"==typeof n)return n;if(Array.isArray(n))return n[n.length-1]}return"dev"},getLocizeDetails:function(){var n={backendName:e.services.backendConnector.backend&&e.services.backendConnector.backend.options&&e.services.backendConnector.backend.options.loadPath&&e.services.backendConnector.backend.options.loadPath.indexOf(".locize.")>0?"I18NextLocizeBackend":e.services.backendConnector.backend?e.services.backendConnector.backend.constructor.name:"options.resources",sourceLng:t.getSourceLng(),i18nFormat:"v3"===e.options.compatibilityJSON?"i18next_v3":"i18next_v4",i18nFramework:"i18next",isLocizify:e.options.isLocizify,defaultNS:e.options.defaultNS};if(!e.options.backend&&!e.options.editor)return n;var r=e.options.backend||e.options.editor;return Bt(Bt({},n),{},{projectId:r.projectId,version:r.version})},bindLanguageChange:function(t){e.on("languageChanged",t)},bindMissingKeyHandler:function(t){e.options.missingKeyHandler=function(e,n,r,o,i,a){i||t(e,n,r,o)}},triggerRerender:function(){e.emit("editorSaved")}};return t}(t);!qt&&r?Rt(o):qt&&At(o)}}},Ft=Ut();function Vt(){At({getLocizeDetails:function(){return{}},getLng:function(){},setResource:function(){},triggerRerender:function(){},getResourceBundle:function(){return{}},bindMissingKeyHandler:function(){},bindLanguageChange:function(){}})}"undefined"!=typeof window&&(window.locizeStartStandalone=Vt);var Kt={wrap:p,unwrap:g,containsHiddenMeta:m,PostProcessor:v,addLocizeSavedHandler:j,locizePlugin:Ft,locizeEditorPlugin:Ut,turnOn:C,turnOff:L,setEditorLng:D,startStandalone:Vt};e.PostProcessor=v,e.addLocizeSavedHandler=j,e.containsHiddenMeta=m,e.default=Kt,e.locizeEditorPlugin=Ut,e.locizePlugin=Ft,e.setEditorLng=D,e.startStandalone=Vt,e.turnOff=L,e.turnOn=C,e.unwrap=g,e.wrap=p,Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).locize={})}(this,(function(e){"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function n(e){var n=function(e,n){if("object"!==t(e)||null===e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var r=o.call(e,n||"default");if("object"!==t(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===t(n)?n:String(n)}function o(e,t,o){return(t=n(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function a(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}function l(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||a(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var c=["​","‌"],s=RegExp("([".concat(c.join(""),"]{9})+"),"gu"),u=function(e){var t=function(e){return Array.from((new TextEncoder).encode(e))}(e).map(Number),n=t.map((function(e){return function(e){var t=8-e.length;return"0".repeat(t)+e}(e.toString(2))+"0"})).join("");return Array.from(n).map((function(e){return c[Number(e)]})).join("")},d=u("subliminal:start"),f=function(e){var t,n=Array.from(e).map((function(e){return c.indexOf(e)})).map(String).join("").match(/(.{9})/g),o=Uint8Array.from((null==n?void 0:n.map((function(e){return parseInt(e.slice(0,8),2)})))||[]);return t=o,(new TextDecoder).decode(new Uint8Array(t))},p=function(e){var t,n=null===(t=e.match(s))||void 0===t?void 0:t.filter((function(e){return e.length>8}));if(n&&0!==n.length)return f(n[n.length-1])},g=function(e){return e.replace(s,"")},h=function(e){if(0===Object.keys(e).length)return e;var t={k:e.key,n:e.ns,l:e.lng,s:e.source};return JSON.stringify(t)},m=function(e){if(e&&"string"==typeof e&&0===e.indexOf("{"))try{var t=JSON.parse(e||"{}");return{key:t.k,ns:t.n,lng:t.l,source:t.s}}catch(e){return}};function y(e){var t=h(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),n=u(t);return"string"==typeof e&&e?d+e+n:e}function v(e){var t=p(e),n=m(t);return{text:g(e),invisibleMeta:n}}function b(e){if(!e||e.length<27)return!1;if(!s.test(e))return!1;var t=e.substring(e.length-9);return"}"===f(t)}function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var O="subliminal",k={name:O,type:"postProcessor",options:{},setOptions:function(e){this.options=w(w({},e),this.options)},process:function(e,t,n,o){var r,i,a,l,c=this.options=w(w({},n),this.options);if(n.i18nResolved)r=n.i18nResolved.exactUsedKey,i=n.i18nResolved.usedNS,a=n.i18nResolved.usedLng,l=void 0===n.i18nResolved.res?r!==e?"default":"key":"translation";else{var s,u,d,f,p,g,h=null!==(s=null!==(u=c.keySeparator)&&void 0!==u?u:null==o||null===(d=o.options)||void 0===d?void 0:d.keySeparator)&&void 0!==s?s:".",m=o.extractFromKey(t.join(h),n),v=m.key,b=m.namespaces;r=v,i=null!==(f=null!==(p=null==b?void 0:b[0])&&void 0!==p?p:c.ns)&&void 0!==f?f:null==o||null===(g=o.options)||void 0===g?void 0:g.defaultNS,a=n.lng||this.language,l=r===e?"key":"translation"}return y(e,{key:r,ns:i,lng:a,source:l})},overloadTranslationOptionHandler:function(){return{postProcess:O,postProcessPassResolved:!0}}},E=["placeholder","title","alt"],j=["SCRIPT"],P={highlight:"#1976d2",warning:"#e67a00",gray:"#ccc"},C=function(){var e,t;"undefined"!=typeof process&&(t=process),t||"undefined"==typeof window||(t=window.process);var n=(null===(e=(t||{}).env)||void 0===e?void 0:e.locizeIncontext)||"production";return"development"===n?"http://localhost:3003/":"staging"===n?"https://incontext-dev.locize.app":"https://incontext.locize.app"},L=function(){if("undefined"!=typeof document){var e=document.createElement("style");return document.head.appendChild(e),e.sheet}}();function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var I={};function z(e,t){xt(e,t),delete I[e]}function R(e){return I[e]}var T={save:function(e,t,n,r){e&&t&&n&&(I[e]||(I[e]={id:e,node:n}),I[e].keys=D(D({},I[e].keys),{},o({},"".concat(t),{value:r,eleUniqueID:e,textType:t})))},remove:z,removeKey:function(e,t,n){var o=R(e);o&&(delete o.keys["".concat(t)],Object.keys(o.keys).length||z(e,n))},clean:function(){Object.values(I).forEach((function(e){document.body.contains(e.node)||(xt(e.id,e.node),delete I[e.id])}))},get:R,data:I};function M(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||a(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function N(e,t,n){var o;return function(){var r=this,i=arguments,a=n&&!o;clearTimeout(o),o=setTimeout((function(){o=null,n||e.apply(r,i)}),t),a&&e.apply(r,i)}}function A(e){var n={top:0,left:0,right:0,bottom:0},o=e&&e.ownerDocument,r=o&&o.documentElement;if(!r)return n;"undefined"!==t(e.getBoundingClientRect)&&(n=e.getBoundingClientRect());var i=function(e){return null!=(t=e)&&t===t.window?e:9===e.nodeType&&e.defaultView;var t}(o),a=n.top+i.pageYOffset-r.clientTop,l=n.left+i.pageXOffset-r.clientLeft;return{top:a,left:l,right:l+(n.right-n.left),bottom:a+(n.bottom-n.top)}}function B(e,t){return e&&e.getAttribute&&e.getAttribute(t)}function q(e){var t=B(e,"data-i18n");return t||(e.nodeType===window.Node.TEXT_NODE&&e.parentElement?q(e.parentElement):void 0)}function H(e){var t="text";if(0==e.indexOf("[")){var n=e.split("]");e=n[1],t=n[0].substr(1,n[0].length-1)}return[e.indexOf(";")==e.length-1?e.substr(0,e.length-2):e,t]}function U(e){var t;return function e(n){var o=B(n,"i18next-options");if(o||(o=B(n,"data-i18next-options")),o||(o=B(n,"i18n-options")),o||(o=B(n,"data-i18n-options")),o){var r={};try{r=JSON.parse(o)}catch(e){}r.ns&&(t=r.ns)}t||(t=B(n,"i18next-ns")),t||(t=B(n,"data-i18next-ns")),t||(t=B(n,"i18n-ns")),t||(t=B(n,"data-i18n-ns")),!t&&n.parentElement&&e(n.parentElement)}(e),t}function V(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function K(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?V(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var F={committed:"commitKeys"};function W(e){G.locizeSavedHandler=e}function _(e){G.sendCurrentTargetLanguage(e)}var X=[],Z=["locizeIsEnabled","requestInitialize"];function Y(e,t){var n;G.source||(G.source=null===(n=document.getElementById("i18next-editor-iframe"))||void 0===n?void 0:n.contentWindow);if(G.origin||(G.origin=C()),!G.source||!G.source.postMessage||!G.initialized&&Z.indexOf(e)<0)X.push({action:e,payload:t});else{G.legacy?G.source.postMessage(K({message:e},t),G.origin):G.source.postMessage({sender:"i18next-editor",senderAPIVersion:"v2",action:e,message:e,payload:t},G.origin);var o=X;X=[],o.forEach((function(e){Y(e.action,e.payload)}))}}var J={},$=5,G={init:function(e,t){G.i18n=e,G.clickHandler=t},requestInitialize:function(e){Y("requestInitialize",e),G.initInterval||(G.initInterval=setInterval((function(){$-=1,G.requestInitialize(e),$<0&&G.initInterval&&(clearInterval(G.initInterval),delete G.initInterval)}),2e3))},selectKey:function(e){Y("selectKey",e)},confirmResourceBundle:function(e){Y("confirmResourceBundle",e)},sendCurrentParsedContent:N((function(){Y("sendCurrentParsedContent",{content:Object.values(Pt.data).map((function(e){return{id:e.id,keys:e.keys}})),uninstrumented:Object.values(T.data).map((function(e){return{id:e.id,keys:e.keys}}))})}),500),sendCurrentTargetLanguage:function(e){Y("sendCurrentTargetLanguage",{targetLng:e||G.i18n.getLng()})},sendHrefchanged:function(e){Y("hrefChanged",{href:e})},addHandler:function(e,t){J[e]||(J[e]=[]),J[e].push(t)},sendLocizeIsEnabled:function(e){Y("locizeIsEnabled",K(K({},e),{},{enabled:!0}))},onAddedKey:function(e,t,n,o){Y("added",{lng:e,ns:t,key:n,value:o})}};function Q(e,t){var n=Pt.get(e.eleUniqueID);if(n&&n.keys[e.textType]){var o=n.subliminal?y(t,n.subliminal):t;if("text"===e.textType)n.node.textContent=o;else if(0===e.textType.indexOf("attr:")){var r=e.textType.replace("attr:","");n.node.setAttribute(r,o)}else if("html"===e.textType){var i="".concat(e.textType,"-").concat(e.children);if(!n.originalChildNodes){var a=[];n.node.childNodes.forEach((function(e){a.push(e)})),n.originalChildNodes=a}if(n.children[i].length===n.node.childNodes.length)n.node.innerHTML=o;else{var l=n.children[i],c=l[0].child,s=document.createElement("div");s.innerHTML=o;var u=[];s.childNodes.forEach((function(e){u.push(e)})),u.forEach((function(e){try{n.node.insertBefore(e,c)}catch(t){n.node.appendChild(e)}})),l.forEach((function(e){n.node.contains(e.child)&&n.node.removeChild(e.child)}))}}}}function ee(e){var t=e.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight,o=window.innerWidth||document.documentElement.clientWidth,r=t.top<=n&&t.top+t.height>=0,i=t.left<=o&&t.left+t.width>=0;return r&&i}function te(e,t){var n=t,o=e.pageX,r=e.pageY,i=o,a=r,l=n.getBoundingClientRect(),c=l.top+document.documentElement.scrollTop,s=c+n.offsetHeight,u=l.left+document.documentElement.scrollLeft,d=u+n.offsetWidth,f=Math.max(o,u),p=Math.min(o,d),g=Math.max(r,c),h=(p>=f?o:d<o?d:u)-i,m=(Math.min(r,s)>=g?r:s<r?s:c)-a,y=Math.pow(Math.pow(h,2)+Math.pow(m,2),.5);return Math.floor(y)}function ne(e){var t=e;if(1===e.childNodes.length){var n=e.childNodes[0];if(n&&"#text"===n.nodeName){var o=document.createRange();o.selectNode(n);var r=o.getBoundingClientRect();t={getBoundingClientRect:function(){return r}}}}return t}"undefined"!=typeof window&&window.addEventListener("message",(function(e){var t,n=e.data,o=n.sender,r=n.action,i=n.message,a=n.payload;if(i){var l=F[t=i]?F[t]:t;J[l]&&J[l].forEach((function(t){t(a,e)}))}else"i18next-editor-frame"===o&&J[r]&&J[r].forEach((function(t){t(a,e)}))})),G.addHandler("editKey",(function(e){var t=e.meta,n=e.value;t&&void 0!==n&&Q(t,n)})),G.addHandler("commitKey",(function(e){var t=e.meta,n=e.value,o=e.lng;if(t&&void 0!==n){Q(t,n);var r=o||G.i18n.getLng();G.i18n.setResource(r,t.ns,t.key,n),G.i18n.triggerRerender()}})),G.addHandler("commitKeys",(function(e){e.updated.forEach((function(e){var t=e.lng,n=e.ns,o=e.key,r=e.data,i=e.metas,a=e.meta;a&&r.value&&Q(a,r.value),i&&Object.values(i).forEach((function(e){Q(e,r.value)})),G.i18n.setResource(t,n,o,r.value),i&&Object.values(i).forEach((function(e){var t=Pt.get(e.eleUniqueID);!function(e,t,n){if(!vt[e.id])return;xt(e,t,n,!1),bt(e,t)}(t,t.node,t.keys)}))})),Object.values(Pt.data).forEach((function(e){var t;e.originalChildNodes&&(t=e.node).replaceChildren.apply(t,l(e.originalChildNodes))})),G.i18n.triggerRerender(),G.locizeSavedHandler&&G.locizeSavedHandler(e),window.locizeSavedHandler&&window.locizeSavedHandler(e)})),G.addHandler("confirmInitialized",(function(e){G.initialized=!0,clearInterval(G.initInterval),delete G.initInterval,G.sendCurrentParsedContent(),G.sendCurrentTargetLanguage()}));var oe,re=N((function(e,t){Object.values(Pt.data).forEach((function(t){if(ee(t.node)){var n=te(e,t.node);if(n<5)!function(e,t,n){e.id;var r=ne(t);if(!e.highlightBox){var i=me(r,P.highlight);document.body.appendChild(i),e.highlightBox=i}if(!e.ribbonBox){var a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=document.createElement("div");t.style="position: absolute; top: 0; left: 0; display: flex; align-items: flex-start; justify-content: center; filter: drop-shadow(0px 0px 20px #aaa );",t.setAttribute("data-i18next-editor-element","true");var n=document.createElement("div");n.style="\n position: absolute;\n width: 0;\n height: 0;\n border-top-width: 7px;\n border-bottom-width: 7px;\n border-left-width: 10px;\n border-right-width: 10px;\n border-style: solid;\n border-color: transparent ".concat(P.highlight," transparent\n transparent;\n "),t.appendChild(n);var o=document.createElement("div");return o.style="display: flex; flex-direction: column; align-items: flex-start; margin-left: 2px; margin-top: 1px",Object.keys(e).forEach((function(t){var n=e[t],r=function(e,t,n){var o=document.createElement("button");o.style="font-family: Arial; position: relative; backdrop-filter: blur(3px); cursor: pointer; padding: 2px 10px 2px 20px; font-size: 15px; font-weight: 300; text-transform: uppercase; color: #fff; background-color: rgba(25, 118, 210, 0.8); border: none; border-radius: 12px; z-index: 99999;",o.classList.add("i18next-editor-button"),o.setAttribute("data-i18next-editor-element","true"),o.setAttribute("title",t);var r=(i=document.createElement("img"),i.setAttribute("data-i18next-editor-element","true"),i.src=le,i.style.width="15px",i);var i;r.style="position: absolute; left: 4px; top: 3px;",r.style.width="15px",o.appendChild(r);var a=document.createElement("span");return a.textContent=e,o.appendChild(a),o.onclick=n,o}(t.replace("attr:",""),"".concat(n.ns,":").concat(n.key),(function(){G.selectKey(n)}));r.style.marginBottom="2px",o.appendChild(r)})),t.appendChild(o),{box:t,arrow:n}}(n),l=a.box,c=a.arrow;document.body.appendChild(l),yt(r,l,{placement:"right",middleware:[Be({fallbackPlacements:["left","bottom"]}),He(),qe((function(e){var t=e.placement,n=e.rects;return"bottom"===t?n.r:35})),Ae({element:c})]}).then((function(e){var t=e.x,n=e.y,r=e.middlewareData,i=e.placement;Object.assign(l.style,{left:"".concat(t,"px"),top:"".concat(n,"px"),display:"inline-flex"});var a=i.split("-")[0],s={top:"bottom",right:"left",bottom:"top",left:"right"}[a];if(r.arrow){var u=r.arrow,d=u.x,f=u.y;Object.assign(c.style,o(o({left:null!=d?"".concat(d,"px"):"",top:null!=f?"".concat(f,"px"):"",right:"",bottom:""},s,"".concat("bottom"===a?-18:-25,"px")),"transform","bottom"===a?"rotate(90deg)":"left"===a?"rotate(180deg)":""))}})),e.ribbonBox=l}}(t,t.node,t.keys);else if(n>5){(t.ribbonBox?te(e,t.ribbonBox):1e3)>10&&xt(t,t.node,t.keys)}}})),Object.values(T.data).forEach((function(t){if(ee(t.node)){var n=te(e,t.node);n<10?function(e,t,n){var o=e.id;if(vt[o])return;var r=ne(t);if(!e.highlightBox){var i=me(r,P.warning);document.body.appendChild(i),e.highlightBox=i}}(t,t.node,t.keys):n>10&&xt(t,t.node,t.keys)}}))}),50);function ie(e){oe=function(t){re(t,e)},document.addEventListener("mousemove",oe)}function ae(){document.removeEventListener("mousemove",oe)}var le=URL.createObjectURL(new Blob(['<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#FFFFFF"><g></g><g><g><g><path d="M3,21l3.75,0L17.81,9.94l-3.75-3.75L3,17.25L3,21z M5,18.08l9.06-9.06l0.92,0.92L5.92,19L5,19L5,18.08z"/></g><g><path d="M18.37,3.29c-0.39-0.39-1.02-0.39-1.41,0l-1.83,1.83l3.75,3.75l1.83-1.83c0.39-0.39,0.39-1.02,0-1.41L18.37,3.29z"/></g></g></g></svg>'],{type:"image/svg+xml"}));URL.createObjectURL(new Blob(['\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 210 304" stroke="#000" stroke-linecap="round" stroke-linejoin="round" fill="#fff" fill-rule="evenodd">\n <g stroke="none" class="B">\n <path d="M 142 31.5 v 57.2 l 64.3 165.1 s 19.6 40.3 -36.5 50.1 h -128 s -52.3 -5.5 -39.8 -46.9 L 69.5 88.7 V 31.5 z" fill="#009688"/>\n <path d="M 143.3 24.8 H 66.2 c -6.2 0 -11.3 -5.6 -11.3 -12.4 S 60 0 66.2 0 h 77.1 c 6.3 0 11.3 5.6 11.3 12.4 s -5.1 12.4 -11.3 12.4 z" class="C" fill="#004d40"/>\n <path d="M 123 124.9 c 8.3 0 15 8.1 15 18.1 c 0 10 -6.8 18.1 -15 18.1 c -8.3 0 -15 -8.1 -15 -18.1 c 0 -10 6.7 -18.1 15 -18.1 z m -58.8 31.7 c 0 -8.5 5.6 -15.3 12.7 -15.3 s 12.7 6.8 12.7 15.3 s -5.6 15.3 -12.7 15.3 s -12.7 -6.8 -12.7 -15.3 z" fill="white"/>\n <path d="M 147.7 84.9 V 57.7 s 34.5 -7.6 51.7 32.5 c 0 0 -26.9 19.6 -51.7 -5.3 z m -84.5 0 V 57.7 s -34.5 -7.6 -51.7 32.5 c 0 0 26.8 19.6 51.7 -5.3 z" class="C" fill="#004d40"/>\n <path d="M 168.4 197.5 c -56.1 -17.4 -103.3 -8.1 -126.3 -1 l -23.2 56 c -10.5 33.4 33.2 37.8 33.2 37.8 h 106.9 c 46.9 -7.9 30.5 -40.4 30.5 -40.4 z" fill="white"/>\n <path d="M 87.6 218.3 c 0 6 -8.1 10.9 -18.1 10.9 s -18.1 -4.9 -18.1 -10.9 c 0 -6.1 8.1 -10.9 18.1 -10.9 s 18.1 4.9 18.1 10.9 z m 64.4 0 c 0 6 -8.1 10.9 -18.1 10.9 c -10 0 -18.1 -4.9 -18.1 -10.9 c 0 -6.1 8.1 -10.9 18.1 -10.9 c 10 0 18.1 4.9 18.1 10.9 z" class="C" fill="#004d40"/>\n </g>\n</svg>\n'],{type:"image/svg+xml"}));var ce=URL.createObjectURL(new Blob(['<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M6 19h12v2H6v-2z"/></svg>'],{type:"image/svg+xml"})),se=URL.createObjectURL(new Blob(['\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 194.667 196" height="196" width="194.667" xml:space="preserve">\n <defs>\n <clipPath id="a" clipPathUnits="userSpaceOnUse">\n <path d="M5.5 74.048C5.5 36.98 35.551 6.93 72.619 6.93c37.069 0 67.119 30.05 67.119 67.118 0 37.07-30.05 67.12-67.119 67.12-37.068 0-67.119-30.05-67.119-67.12"/>\n </clipPath>\n <clipPath id="b" clipPathUnits="userSpaceOnUse">\n <path d="M0 147h146V0H0Z"/>\n </clipPath>\n <clipPath id="c" clipPathUnits="userSpaceOnUse">\n <path d="M88.756 55.055h50.982l4.512 88.195-64 1.25z"/>\n </clipPath>\n </defs>\n <g clip-path="url(#a)" transform="matrix(1.33333 0 0 -1.33333 0 196)">\n <path style="fill:#2196f3;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M0 0c-.766-5.554 1.148-8.427 0-11.107-1.149-2.681-2.49-7.469-1.341-10.724 1.149-3.255 2.872-10.34 4.404-10.533 1.532-.19-1.148 7.66.383 5.171 1.533-2.49 1.533-6.193 4.214-8.746 2.68-2.553 6.319-2.17 9.192-4.658 2.872-2.49 5.744-6.129 8.425-5.746 0 0-.192-1.914-1.532-5.17-1.34-3.255-1.532-7.084.192-9.383 1.723-2.298 3.446-5.746 4.979-7.469 1.532-1.723 2.681-10.915 2.297-15.51-.382-4.596 1.724-14.937 6.511-17.236 4.787-2.298 0 1.15-.957 4.022-.958 2.872.739 9.575 3.052 10.533 2.309.958 4.416 4.787 6.139 7.469 1.724 2.68 6.128 3.83 7.469 7.084 1.341 3.255.766 7.085 1.532 8.809.766 1.724 2.873 5.554-1.724 7.852-4.595 2.298-6.51 1.148-6.702 3.255-.192 2.107-1.341 4.404-4.595 5.361-3.256.959-6.129 2.816-9.768 3.227-3.638.412-4.404-2.461-6.319-.928-1.914 1.531-3.446 3.064-4.213 4.978-.765 1.915-3.064.766-2.871 1.915.19 1.15 3.254 4.404-.193 3.255-3.446-1.148-6.51-.765-6.319 2.298.193 3.064 4.405 4.214 6.129 4.597 1.722.383 3.063-1.723 5.17-3.065 2.106-1.34.191 1.915 1.34 4.214 1.149 2.298 5.554 2.106 6.128 5.361.575 3.255-.191 5.937 3.256 6.32 3.446.383 7.084-.191 7.468 1.533.382 1.722-4.022-.576-4.213 1.531-.192 2.106 3.829 4.978 4.978 2.872 1.149-2.106 4.022-2.298 4.405-1.531.383.765 0 2.105-1.341 5.361-1.34 3.256-2.681 2.298-3.829 5.936-1.149 3.639-3.064-.191-4.979 1.724s-4.213 5.937-4.597 2.489c-.382-3.446-.382-5.361-2.105-8.042-1.724-2.682-2.489-.575-4.022 1.149-1.532 1.723-4.979 3.447-3.83 4.978C23.362 4.979 24.511 9 26.234 7.85c1.724-1.149 4.405-1.149 4.022.767-.383 1.914 0 2.681.766 3.638.766.958 3.447 2.682 3.447-.766 0-3.447-.384-4.405 2.298-4.788 2.681-.383 5.744-.574 5.554 1.149-.193 1.724.766 1.341 0 4.214-.767 2.873-3.065 3.063-5.554 4.405-2.489 1.34-3.83 3.446-5.936 2.68s-2.299-1.531-2.49-3.638c-.192-2.107-1.341-2.873-2.107-1.915-.765.957.192 4.022-2.68 2.106-2.873-1.914-4.021-5.171-5.553-2.872-1.533 2.297 2.297 6.319-1.724 4.595-4.022-1.723-6.895-3.637-4.788-4.404 2.107-.766 4.214-2.107 2.107-2.873-2.107-.765-6.32.575-7.852-.957C4.212 7.66 0 0 0 0" transform="translate(13.926 109.38)"/>\n <path style="fill:none;stroke:#2196f3;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1" d="M0 0c-.766-5.554 1.148-8.427 0-11.107-1.149-2.681-2.49-7.469-1.341-10.724 1.149-3.255 2.872-10.34 4.404-10.533 1.532-.19-1.148 7.66.383 5.171 1.533-2.49 1.533-6.193 4.214-8.746 2.68-2.553 6.319-2.17 9.192-4.658 2.872-2.49 5.744-6.129 8.425-5.746 0 0-.192-1.914-1.532-5.17-1.34-3.255-1.532-7.084.192-9.383 1.723-2.298 3.446-5.746 4.979-7.469 1.532-1.723 2.681-10.915 2.297-15.51-.382-4.596 1.724-14.937 6.511-17.236 4.787-2.298 0 1.15-.957 4.022-.958 2.872.739 9.575 3.052 10.533 2.309.958 4.416 4.787 6.139 7.469 1.724 2.68 6.128 3.83 7.469 7.084 1.341 3.255.766 7.085 1.532 8.809.766 1.724 2.873 5.554-1.724 7.852-4.595 2.298-6.51 1.148-6.702 3.255-.192 2.107-1.341 4.404-4.595 5.361-3.256.959-6.129 2.816-9.768 3.227-3.638.412-4.404-2.461-6.319-.928-1.914 1.531-3.446 3.064-4.213 4.978-.765 1.915-3.064.766-2.871 1.915.19 1.15 3.254 4.404-.193 3.255-3.446-1.148-6.51-.765-6.319 2.298.193 3.064 4.405 4.214 6.129 4.597 1.722.383 3.063-1.723 5.17-3.065 2.106-1.34.191 1.915 1.34 4.214 1.149 2.298 5.554 2.106 6.128 5.361.575 3.255-.191 5.937 3.256 6.32 3.446.383 7.084-.191 7.468 1.533.382 1.722-4.022-.576-4.213 1.531-.192 2.106 3.829 4.978 4.978 2.872 1.149-2.106 4.022-2.298 4.405-1.531.383.765 0 2.105-1.341 5.361-1.34 3.256-2.681 2.298-3.829 5.936-1.149 3.639-3.064-.191-4.979 1.724s-4.213 5.937-4.597 2.489c-.382-3.446-.382-5.361-2.105-8.042-1.724-2.682-2.489-.575-4.022 1.149-1.532 1.723-4.979 3.447-3.83 4.978C23.362 4.979 24.511 9 26.234 7.85c1.724-1.149 4.405-1.149 4.022.767-.383 1.914 0 2.681.766 3.638.766.958 3.447 2.682 3.447-.766 0-3.447-.384-4.405 2.298-4.788 2.681-.383 5.744-.574 5.554 1.149-.193 1.724.766 1.341 0 4.214-.767 2.873-3.065 3.063-5.554 4.405-2.489 1.34-3.83 3.446-5.936 2.68s-2.299-1.531-2.49-3.638c-.192-2.107-1.341-2.873-2.107-1.915-.765.957.192 4.022-2.68 2.106-2.873-1.914-4.021-5.171-5.553-2.872-1.533 2.297 2.297 6.319-1.724 4.595-4.022-1.723-6.895-3.637-4.788-4.404 2.107-.766 4.214-2.107 2.107-2.873-2.107-.765-6.32.575-7.852-.957C4.212 7.66 0 0 0 0Z" transform="translate(13.926 109.38)"/>\n <path style="fill:#2196f3;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M0 0c-.01-2.141.575-3.829 2.49-1.915C4.405 0 5.553 2.298 6.895 1.341c1.34-.958 3.638-.703 4.594-.639.959.064 1.15 2.937 3.831 2.554s1.724.574 4.596 2.107c2.873 1.532 9.001 4.212 2.681 3.446-6.32-.766-6.703.958-11.108-1.914-4.403-2.873-5.36-2.873-6.509-3.639-1.149-.766-2.49 2.298-4.022 0C-.575.958.011 2.182 0 0" transform="translate(36.522 130.061)"/>\n <path style="fill:none;stroke:#2196f3;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1" d="M0 0c-.01-2.141.575-3.829 2.49-1.915C4.405 0 5.553 2.298 6.895 1.341c1.34-.958 3.638-.703 4.594-.639.959.064 1.15 2.937 3.831 2.554s1.724.574 4.596 2.107c2.873 1.532 9.001 4.212 2.681 3.446-6.32-.766-6.703.958-11.108-1.914-4.403-2.873-5.36-2.873-6.509-3.639-1.149-.766-2.49 2.298-4.022 0C-.575.958.011 2.182 0 0Z" transform="translate(36.522 130.061)"/>\n <path style="fill:#2196f3;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M0 0c-2.263-1.956-5.744-4.788-3.064-4.788 2.681 0 3.983 1.404 5.439-.447 1.456-1.85.88-4.723.88-6.063 0-1.341-.766-4.406 1.15-8.235 1.915-3.829 2.106-6.319 4.022-3.829 1.914 2.488 6.51 7.276 8.808 7.658 2.298.384 4.597 1.342 5.746 3.257 1.148 1.915 0 3.773 1.914 5.141 1.914 1.369 1.531 3.093 2.107 5.199C27.575 0 32.747 0 30.448 1.148c-2.297 1.15-6.51 1.916-11.49 1.341C13.979 1.915 4.213 3.638 0 0" transform="translate(59.502 135.998)"/>\n <path style="fill:none;stroke:#2196f3;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1" d="M0 0c-2.263-1.956-5.744-4.788-3.064-4.788 2.681 0 3.983 1.404 5.439-.447 1.456-1.85.88-4.723.88-6.063 0-1.341-.766-4.406 1.15-8.235 1.915-3.829 2.106-6.319 4.022-3.829 1.914 2.488 6.51 7.276 8.808 7.658 2.298.384 4.597 1.342 5.746 3.257 1.148 1.915 0 3.773 1.914 5.141 1.914 1.369 1.531 3.093 2.107 5.199C27.575 0 32.747 0 30.448 1.148c-2.297 1.15-6.51 1.916-11.49 1.341C13.979 1.915 4.213 3.638 0 0Z" transform="translate(59.502 135.998)"/>\n <path style="fill:#2196f3;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M0 0c-1.218-1.986-.575-2.107.766-2.49 1.34-.383-.575-2.68.957-2.872 1.532-.193 4.979-1.15 5.936 0 .959 1.148-1.531.7-3.255 1.977C2.682-2.107.865 1.41 0 0" transform="translate(38.438 76.826)"/>\n <path style="fill:none;stroke:#2196f3;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1" d="M0 0c-1.218-1.986-.575-2.107.766-2.49 1.34-.383-.575-2.68.957-2.872 1.532-.193 4.979-1.15 5.936 0 .959 1.148-1.531.7-3.255 1.977C2.682-2.107.865 1.41 0 0Z" transform="translate(38.438 76.826)"/>\n <path style="fill:#2196f3;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M0 0c-2.063-1.033-1.148-2.682-3.064-3.831-1.915-1.148-1.149-1.531-1.723-4.213-.575-2.68.191-4.212 1.532-2.106S2.298 1.148 0 0" transform="translate(131.121 45.612)"/>\n <path style="fill:none;stroke:#2196f3;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1" d="M0 0c-2.063-1.033-1.148-2.682-3.064-3.831-1.915-1.148-1.149-1.531-1.723-4.213-.575-2.68.191-4.212 1.532-2.106S2.298 1.148 0 0Z" transform="translate(131.121 45.612)"/>\n <path style="fill:#2196f3;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M0 0c-.575-.575-1.532 2.681-2.106 4.213-.575 1.532-.561 4.195 1.056 5.675C.964 11.734 0 7.469 0 5.17 0 2.873.574.575 0 0m-6.704 5.936c-1.341.766-3.828 0-6.892-.957-3.065-.958-.613 2.131.766 4.213 1.233 1.861.574-.574 3.256-.766 2.68-.192 4.213-3.256 2.87-2.49m-4.402-6.511c-.192-1.531.574-4.021-3.639-3.064-4.213.958-4.213 3.256-5.936 1.533-1.723-1.724-3.83-3.255-6.32-.575C-29.49 0-29.107.766-30.447.958c-.955.135-4.138.846-6.792.074.206.123.426.285.663.5 1.915 1.723 1.532 2.298 3.638 4.213 2.108 1.916 3.639 3.638 5.171 1.916 1.532-1.725 4.788-2.108 3.639-4.023-1.149-1.914-.383-3.063.958-1.914 1.339 1.149 3.255 1.914 1.915 3.446-1.342 1.532-2.682 5.554-.766 2.873 1.915-2.681 2.489-4.022 3.637-5.553C-17.234.958-16.085 0-15.702.958c.383.957-.192 3.063.383 3.446.574.383 0-3.255 1.723-3.446 1.723-.192 2.681 0 2.49-1.533M9.192-8.81c-.574 3.257-4.787 32.747-4.787 32.747s-11.299 7.277-13.213 5.746c-1.916-1.533-5.171-1.302-4.788.21s2.872 1.128-1.341 4.002c-4.212 2.873-4.978 5.362-8.233 1.724-3.257-3.639-4.022-6.703-5.937-7.661-1.915-.957-3.447-4.021-1.34-4.787 2.106-.765 2.298 0 4.02-1.531 1.725-1.533 4.023-1.149 4.406-.193.383.959.766 4.022.957 5.171.192 1.149 2.138 4.979 1.93 1.915-.207-3.064 2.665-3.064.75-5.17-1.914-2.106-.765-3.831-4.595-4.214-3.831-.382-4.022 1.915-6.128.766-2.107-1.148-1.915-1.915-2.681-3.063-.766-1.149-4.788-3.447-4.788-3.447s-3.255 1.149-1.724-.958c1.533-2.106 2.873-4.595 1.533-4.786-1.341-.192-4.98 1.914-4.98-.384s-.573-4.787.959-5.362c1.081-.405 1.783-1.284 2.775-1.161-.769-.332-1.468-.813-2.009-1.52-1.491-1.947-.575-5.362-3.639-6.511-3.063-1.15-3.063-2.489-3.639-4.979-.573-2.489 0-8.808.766-9.383.765-.574 2.107-5.362 5.363-4.978 3.256.383 6.702.53 7.851-.023 1.149-.551 3.063 1.171 3.638-3.233.575-4.404 1.915-4.979 2.681-7.277.766-2.297-.383-7.086 0-9.958s3.064-7.852 3.064-10.341c0-2.489 2.873-3.638 4.405-2.681 1.532.958 4.787 2.873 6.127 5.937 1.342 3.063 1.342 4.595 3.447 8.617 2.106 4.021 1.533 6.894 2.489 9.958.958 3.064 3.262 5.171 6.419 8.617 3.156 3.446 2.588 5.362 0 5.171-2.588-.191-4.314 2.297-5.654 5.361-1.338 3.065-2.87 10.724-1.721 8.235 1.149-2.491 3.446-9.384 5.744-10.533 2.298-1.149 6.512 1.953 7.469 3.083.957 1.131.574 4.385-1.916 5.726C.383-8.617 1.915-7.469 4.405-9c2.489-1.532 5.362-3.064 4.787.19" transform="translate(132.845 86.592)"/>\n <path style="fill:none;stroke:#2196f3;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1" d="M0 0c-.575-.575-1.532 2.681-2.106 4.213-.575 1.532-.561 4.195 1.056 5.675C.964 11.734 0 7.469 0 5.17 0 2.873.574.575 0 0Zm-6.704 5.936c-1.341.766-3.828 0-6.892-.957-3.065-.958-.613 2.131.766 4.213 1.233 1.861.574-.574 3.256-.766 2.68-.192 4.213-3.256 2.87-2.49zm-4.402-6.511c-.192-1.531.574-4.021-3.639-3.064-4.213.958-4.213 3.256-5.936 1.533-1.723-1.724-3.83-3.255-6.32-.575C-29.49 0-29.107.766-30.447.958c-.955.135-4.138.846-6.792.074.206.123.426.285.663.5 1.915 1.723 1.532 2.298 3.638 4.213 2.108 1.916 3.639 3.638 5.171 1.916 1.532-1.725 4.788-2.108 3.639-4.023-1.149-1.914-.383-3.063.958-1.914 1.339 1.149 3.255 1.914 1.915 3.446-1.342 1.532-2.682 5.554-.766 2.873 1.915-2.681 2.489-4.022 3.637-5.553C-17.234.958-16.085 0-15.702.958c.383.957-.192 3.063.383 3.446.574.383 0-3.255 1.723-3.446 1.723-.192 2.681 0 2.49-1.533zM9.192-8.81c-.574 3.257-4.787 32.747-4.787 32.747s-11.299 7.277-13.213 5.746c-1.916-1.533-5.171-1.302-4.788.21s2.872 1.128-1.341 4.002c-4.212 2.873-4.978 5.362-8.233 1.724-3.257-3.639-4.022-6.703-5.937-7.661-1.915-.957-3.447-4.021-1.34-4.787 2.106-.765 2.298 0 4.02-1.531 1.725-1.533 4.023-1.149 4.406-.193.383.959.766 4.022.957 5.171.192 1.149 2.138 4.979 1.93 1.915-.207-3.064 2.665-3.064.75-5.17-1.914-2.106-.765-3.831-4.595-4.214-3.831-.382-4.022 1.915-6.128.766-2.107-1.148-1.915-1.915-2.681-3.063-.766-1.149-4.788-3.447-4.788-3.447s-3.255 1.149-1.724-.958c1.533-2.106 2.873-4.595 1.533-4.786-1.341-.192-4.98 1.914-4.98-.384s-.573-4.787.959-5.362c1.081-.405 1.783-1.284 2.775-1.161-.769-.332-1.468-.813-2.009-1.52-1.491-1.947-.575-5.362-3.639-6.511-3.063-1.15-3.063-2.489-3.639-4.979-.573-2.489 0-8.808.766-9.383.765-.574 2.107-5.362 5.363-4.978 3.256.383 6.702.53 7.851-.023 1.149-.551 3.063 1.171 3.638-3.233.575-4.404 1.915-4.979 2.681-7.277.766-2.297-.383-7.086 0-9.958s3.064-7.852 3.064-10.341c0-2.489 2.873-3.638 4.405-2.681 1.532.958 4.787 2.873 6.127 5.937 1.342 3.063 1.342 4.595 3.447 8.617 2.106 4.021 1.533 6.894 2.489 9.958.958 3.064 3.262 5.171 6.419 8.617 3.156 3.446 2.588 5.362 0 5.171-2.588-.191-4.314 2.297-5.654 5.361-1.338 3.065-2.87 10.724-1.721 8.235 1.149-2.491 3.446-9.384 5.744-10.533 2.298-1.149 6.512 1.953 7.469 3.083.957 1.131.574 4.385-1.916 5.726C.383-8.617 1.915-7.469 4.405-9c2.489-1.532 5.362-3.064 4.787.19z" transform="translate(132.845 86.592)"/>\n <path style="fill:#2196f3;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M0 0c-1.173-.353-2.106-2.681-1.532-3.831.576-1.148-.574.576-2.106-.382-1.533-.957-3.808-3.639-1.713-3.829 2.096-.193 1.713 1.531 3.628.765 1.915-.765 4.021-.575 4.021 1.34C2.298-4.021 1.915.574 0 0" transform="translate(95.886 109.955)"/>\n <path style="fill:none;stroke:#2196f3;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1" d="M0 0c-1.173-.353-2.106-2.681-1.532-3.831.576-1.148-.574.576-2.106-.382-1.533-.957-3.808-3.639-1.713-3.829 2.096-.193 1.713 1.531 3.628.765 1.915-.765 4.021-.575 4.021 1.34C2.298-4.021 1.915.574 0 0Z" transform="translate(95.886 109.955)"/>\n <path style="fill:#2196f3;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M0 0c-1.154-.165-1.533-3.064.957-3.447 2.49-.383 6.947.575 5.293 2.107C4.596.191 2.682.383 0 0" transform="translate(83.44 118.763)"/>\n <path style="fill:none;stroke:#2196f3;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1" d="M0 0c-1.154-.165-1.533-3.064.957-3.447 2.49-.383 6.947.575 5.293 2.107C4.596.191 2.682.383 0 0Z" transform="translate(83.44 118.763)"/>\n </g>\n <g clip-path="url(#b)" transform="matrix(1.33333 0 0 -1.33333 0 196)">\n <path style="fill:none;stroke:#2196f3;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1" d="M0 0c0-37.068-30.05-67.119-67.119-67.119S-134.238-37.068-134.238 0c0 37.069 30.05 67.119 67.119 67.119S0 37.069 0 0Z" transform="translate(139.738 74.049)"/>\n <path style="fill:none;stroke:#2196f3;stroke-width:8;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1" d="M0 0c0-36.731-29.777-66.509-66.509-66.509S-133.019-36.731-133.019 0c0 36.733 29.778 66.51 66.51 66.51C-29.777 66.51 0 36.733 0 0Z" transform="translate(139.438 73.186)"/>\n </g>\n <g clip-path="url(#c)" transform="matrix(1.33333 0 0 -1.33333 0 196)">\n <path style="fill:#fff;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M0 0c-1.542-1.541-3.386-2.311-5.533-2.311-2.148 0-3.991.77-5.532 2.311s-2.313 3.387-2.313 5.533c0 2.147.772 3.963 2.313 5.45 1.541 1.486 3.384 2.23 5.532 2.23 2.147 0 3.991-.744 5.533-2.23 1.54-1.487 2.312-3.303 2.312-5.45C2.312 3.387 1.54 1.541 0 0m12.551 23.039c-4.954 4.9-10.954 7.35-18.001 7.35-7.047 0-13.047-2.45-18.002-7.35-4.955-4.898-7.432-10.817-7.432-17.754 0-4.183 2.119-11.176 6.359-20.974 4.238-9.799 8.477-18.717 12.715-26.754 4.241-8.037 6.36-11.946 6.36-11.727.66 1.211 1.568 2.863 2.724 4.955 1.157 2.092 3.194 6.029 6.112 11.809 2.917 5.781 5.477 11.094 7.678 15.935a203.312 203.312 0 0 1 6.111 15.032c1.873 5.173 2.807 9.082 2.807 11.724 0 6.937-2.477 12.856-7.431 17.754" transform="translate(119.64 109.307)"/>\n <path style="fill:#fff;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M0 0c-1.542-1.541-3.386-2.311-5.533-2.311-2.148 0-3.991.77-5.532 2.311s-2.313 3.387-2.313 5.533c0 2.147.772 3.963 2.313 5.45 1.541 1.486 3.384 2.23 5.532 2.23 2.147 0 3.991-.744 5.533-2.23 1.54-1.487 2.312-3.303 2.312-5.45C2.312 3.387 1.54 1.541 0 0m12.551 23.039c-4.954 4.9-10.954 7.35-18.001 7.35-7.047 0-13.047-2.45-18.002-7.35-4.955-4.898-7.432-10.817-7.432-17.754 0-4.183 2.119-11.176 6.359-20.974 4.238-9.799 8.477-18.717 12.715-26.754 4.241-8.037 6.36-11.946 6.36-11.727.66 1.211 1.568 2.863 2.724 4.955 1.157 2.092 3.194 6.029 6.112 11.809 2.917 5.781 5.477 11.094 7.678 15.935a203.312 203.312 0 0 1 6.111 15.032c1.873 5.173 2.807 9.082 2.807 11.724 0 6.937-2.477 12.856-7.431 17.754" transform="translate(119.64 109.307)"/>\n <path style="fill:none;stroke:#2196f3;stroke-width:5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1" d="M0 0c-1.542-1.541-3.386-2.311-5.533-2.311-2.148 0-3.991.77-5.532 2.311s-2.313 3.387-2.313 5.533c0 2.147.772 3.963 2.313 5.45 1.541 1.486 3.384 2.23 5.532 2.23 2.147 0 3.991-.744 5.533-2.23 1.54-1.487 2.312-3.303 2.312-5.45C2.312 3.387 1.54 1.541 0 0Zm12.551 23.039c-4.954 4.9-10.954 7.35-18.001 7.35-7.047 0-13.047-2.45-18.002-7.35-4.955-4.898-7.432-10.817-7.432-17.754 0-4.183 2.119-11.176 6.359-20.974 4.238-9.799 8.477-18.717 12.715-26.754 4.241-8.037 6.36-11.946 6.36-11.727.66 1.211 1.568 2.863 2.724 4.955 1.157 2.092 3.194 6.029 6.112 11.809 2.917 5.781 5.477 11.094 7.678 15.935a203.312 203.312 0 0 1 6.111 15.032c1.873 5.173 2.807 9.082 2.807 11.724 0 6.937-2.477 12.856-7.431 17.754z" transform="translate(119.64 109.307)"/>\n </g>\n</svg>\n'],{type:"image/svg+xml"}));L&&(L.insertRule("@keyframes i18next-editor-animate-top { \n from {\n top: calc(100vh + 600px); \n left: calc(100vw + 300px);\n opacity: 0;\n }\n to {\n top: var(--i18next-editor-popup-position-top);\n left: var(--i18next-editor-popup-position-left);\n opacity: 1;\n }\n }"),L.insertRule("@keyframes i18next-editor-animate-bottom { \n from {\n top: var(--i18next-editor-popup-position-top);\n left: var(--i18next-editor-popup-position-left);\n opacity: 1;\n }\n to {\n top: calc(100vh + 600px); \n left: calc(100vw + 300px);\n opacity: 0;\n }\n }"),L.insertRule(".i18next-editor-popup * { \n -webkit-touch-callout: none; /* iOS Safari */\n -webkit-user-select: none; /* Safari */\n -khtml-user-select: none; /* Konqueror HTML */\n -moz-user-select: none; /* Firefox */\n -ms-user-select: none; /* Internet Explorer/Edge */\n user-select: none; /* Non-prefixed version, currently supported by Chrome and Opera */\n }"),L.insertRule(".i18next-editor-popup .resizer-right {\n width: 15px;\n height: 100%;\n background: transparent;\n position: absolute;\n right: -15px;\n bottom: 0;\n cursor: e-resize;\n }"),L.insertRule(".i18next-editor-popup .resizer-both {\n width: 15px;\n height: 15px;\n background: transparent;\n z-index: 10;\n position: absolute;\n right: -15px;\n bottom: -15px;\n cursor: se-resize;\n }"),L.insertRule(".i18next-editor-popup .resizer-bottom {\n width: 100%;\n height: 15px;\n background: transparent;\n position: absolute;\n right: 0;\n bottom: -15px;\n cursor: s-resize;\n }"));var ue="i18next-editor-popup";function de(e,t){var n=document.createElement("div");n.setAttribute("id",ue),n.classList.add("i18next-editor-popup"),n.style="\n z-index: 9;\n background-color: transparent;\n border: 1px solid rgba(200, 200, 200, 0.9);\n box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);\n border-radius: 3px;\n --i18next-editor-popup-height: 200px;\n height: var(--i18next-editor-popup-height);\n min-height: 150px;\n min-width: 300px;\n --i18next-editor-popup-width: 400px;\n width: var(--i18next-editor-popup-width);\n max-height: 800px;\n max-width: 1000px;\n\n position: fixed;\n --i18next-editor-popup-position-top: calc(100vh - var(--i18next-editor-popup-height) - 10px);\n top: calc(100vh - var(--i18next-editor-popup-height) - 10px);\n --i18next-editor-popup-position-left: calc(100vw - var(--i18next-editor-popup-width) - 10px);\n left: calc(100vw - var(--i18next-editor-popup-width) - 10px);\n\n overflow: visible;\n ",n.setAttribute("data-i18next-editor-element","true");var o,r,i,a=document.createElement("div");a.classList.add("i18next-editor-popup-header"),a.style="\n padding: 2px 10px;\n cursor: move;\n z-index: 10;\n backdrop-filter: blur(3px);\n background-color: rgba(200, 200, 200, 0.5);\n background: linear-gradient(0deg, rgba(200, 200, 200, 0.6), rgba(200, 200, 200, 0.5));\n color: #fff;\n text-align: right;\n ",n.appendChild(a),a.appendChild((o=n,r=function(){var e=function(e,t){var n=document.createElement("div");n.setAttribute("data-i18next-editor-element","true"),n.style="\n cursor: pointer;\n position: fixed;\n bottom: 25px;\n right: 25px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 50px;\n height: 50px;\n background-color: rgba(249, 249, 249, 0.2);\n backdrop-filter: blur(3px);\n box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);\n border-radius: 50%;\n ",n.onclick=function(){t()};var o=document.createElement("img");return o.src=se,o.style.width="45px",n.appendChild(o),n}(0,(function(){n.style.animation="i18next-editor-animate-top 1s",ie(),setTimeout((function(){document.body.removeChild(e)}),1e3)}));document.body.appendChild(e),ae()},(i=document.createElement("img")).setAttribute("data-i18next-editor-element","true"),i.src=ce,i.style.width="24px",i.style.cursor="pointer",i.onclick=function(){o.style.setProperty("--i18next-editor-popup-position-top",o.style.top),o.style.setProperty("--i18next-editor-popup-position-left",o.style.left),o.style.animation="i18next-editor-animate-bottom 2s forwards",r()},i));var l=document.createElement("iframe");l.setAttribute("id","i18next-editor-iframe"),l.setAttribute("data-i18next-editor-element","true"),l.style="\n z-index: 100;\n width: 100%;\n height: calc(100% - 32px);\n border: none;\n background: #fff;\n ",l.setAttribute("src",e),l.addEventListener("load",t),n.appendChild(l);var c=document.createElement("div");return c.setAttribute("id","i18next-editor-popup-overlay"),c.setAttribute("data-i18next-editor-element","true"),c.style="\n display: none;\n position: absolute;\n top: 32px;\n z-index: 101;\n width: 100%;\n height: calc(100% - 32px);\n background-color: rgba(200, 200, 200, 0.5);\n background: linear-gradient(0deg, rgba(240, 240, 240, 0.6), rgba(255, 255, 255, 0.5));\n backdrop-filter: blur(2px);\n",n.appendChild(c),n}function fe(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}G.addHandler("requestPopupChanges",(function(e){var t=e.containerStyle;if(t){var n=document.getElementById(ue);if(!n)return;var o=localStorage.getItem("locize_popup_pos");o&&(o=JSON.parse(o));var r=localStorage.getItem("locize_popup_size");if(r&&(r=JSON.parse(r)),r&&r.height&&r.width&&(t.height=r.height+"px",t.width=r.width+"px"),t.height){var i="calc(".concat(t.height," - ").concat(n.style.height,")");n.style.setProperty("top","calc(".concat(n.style.top," - ").concat(i,")")),n.style.setProperty("height",t.height)}if(t.width){var a="calc(".concat(t.width," - ").concat(n.style.width,")");n.style.setProperty("left","calc(".concat(n.style.left," - ").concat(a,")")),n.style.setProperty("width",t.width)}o&&o.top&&o.top<window.innerHeight-t.height.replace("px","")&&n.style.setProperty("top",o.top+"px"),o&&o.left&&o.left<window.innerWidth-t.width.replace("px","")&&n.style.setProperty("left",o.left+"px")}}));var pe=["lng","ns"];function ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}G.addHandler("requestResourceBundle",(function(e){var t=e.lng,n=e.ns,r=fe(e,pe);G.i18n.getResourceBundle(t,n,(function(e){G.confirmResourceBundle(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ge(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ge(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({resources:e,lng:t,ns:n},r))}))}));var he=[];function me(e,t,n){var o=e.getBoundingClientRect(),r=document.createElement("div");return r.style="position: absolute; top: ".concat(o.top-2+window.scrollY,"px; left: ").concat(o.left-2+window.scrollX,"px; height: ").concat(o.height+4,"px; width: ").concat(o.width+4,"px; border: 1px solid ").concat(t,"; border-radius: 2px; ").concat(n?"box-shadow: 0 0 20px 0 ".concat(n,";"):""),r.setAttribute("data-i18next-editor-element","true"),r}G.addHandler("selectedKeys",(function(e){var t=e.keys,n=[];Object.values(Pt.data).forEach((function(e){Object.values(e.keys).filter((function(e){return t.includes(e.qualifiedKey)})).length&&n.push(e)})),he.forEach((function(e){xt(e,e.node,e.keys,!1)})),n.forEach((function(e){bt(e,e.node,e.keys)})),he=n})),G.addHandler("isLocizeEnabled",(function(e,t){G.source=t.source,G.origin=t.origin,G.sendLocizeIsEnabled(e),G.requestInitialize(G.config)})),G.addHandler("sendMatchedUninstrumented",(function(e){e.length&&(e.forEach((function(e){var t=T.get(e.eleUniqueID);Pt.save(e.eleUniqueID,void 0,e.textType,zt(e.eleUniqueID,e.textType,o({},"".concat(e.textType),{ns:e.ns,key:e.key}),e.value),null==t?void 0:t.node),delete t.keys["".concat(e.textType)],Object.keys(t.keys).length||T.remove(e.eleUniqueID,t.node)})),G.sendCurrentParsedContent())})),L&&L.insertRule(".i18next-editor-button:hover { background-color: rgba(21, 65, 154, 1) !important; }");const ye=Math.min,ve=Math.max,be=Math.round,xe=e=>({x:e,y:e}),we={left:"right",right:"left",bottom:"top",top:"bottom"},Oe={start:"end",end:"start"};function ke(e,t,n){return ve(e,ye(t,n))}function Ee(e,t){return"function"==typeof e?e(t):e}function je(e){return e.split("-")[0]}function Pe(e){return e.split("-")[1]}function Ce(e){return"x"===e?"y":"x"}function Le(e){return"y"===e?"height":"width"}function Se(e){return["top","bottom"].includes(je(e))?"y":"x"}function De(e){return Ce(Se(e))}function Ie(e){return e.replace(/start|end/g,(e=>Oe[e]))}function ze(e){return e.replace(/left|right|bottom|top/g,(e=>we[e]))}function Re(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Te(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Me(e,t,n){let{reference:o,floating:r}=e;const i=Se(t),a=De(t),l=Le(a),c=je(t),s="y"===i,u=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,f=o[l]/2-r[l]/2;let p;switch(c){case"top":p={x:u,y:o.y-r.height};break;case"bottom":p={x:u,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:d};break;case"left":p={x:o.x-r.width,y:d};break;default:p={x:o.x,y:o.y}}switch(Pe(t)){case"start":p[a]-=f*(n&&s?-1:1);break;case"end":p[a]+=f*(n&&s?-1:1)}return p}async function Ne(e,t){var n;void 0===t&&(t={});const{x:o,y:r,platform:i,rects:a,elements:l,strategy:c}=e,{boundary:s="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=Ee(t,e),g=Re(p),h=l[f?"floating"===d?"reference":"floating":d],m=Te(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:s,rootBoundary:u,strategy:c})),y="floating"===d?{...a.floating,x:o,y:r}:a.reference,v=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),b=await(null==i.isElement?void 0:i.isElement(v))&&await(null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},x=Te(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:y,offsetParent:v,strategy:c}):y);return{top:(m.top-x.top+g.top)/b.y,bottom:(x.bottom-m.bottom+g.bottom)/b.y,left:(m.left-x.left+g.left)/b.x,right:(x.right-m.right+g.right)/b.x}}const Ae=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:i,platform:a,elements:l,middlewareData:c}=t,{element:s,padding:u=0}=Ee(e,t)||{};if(null==s)return{};const d=Re(u),f={x:n,y:o},p=De(r),g=Le(p),h=await a.getDimensions(s),m="y"===p,y=m?"top":"left",v=m?"bottom":"right",b=m?"clientHeight":"clientWidth",x=i.reference[g]+i.reference[p]-f[p]-i.floating[g],w=f[p]-i.reference[p],O=await(null==a.getOffsetParent?void 0:a.getOffsetParent(s));let k=O?O[b]:0;k&&await(null==a.isElement?void 0:a.isElement(O))||(k=l.floating[b]||i.floating[g]);const E=x/2-w/2,j=k/2-h[g]/2-1,P=ye(d[y],j),C=ye(d[v],j),L=P,S=k-h[g]-C,D=k/2-h[g]/2+E,I=ke(L,D,S),z=!c.arrow&&null!=Pe(r)&&D!=I&&i.reference[g]/2-(D<L?P:C)-h[g]/2<0,R=z?D<L?D-L:D-S:0;return{[p]:f[p]+R,data:{[p]:I,centerOffset:D-I-R,...z&&{alignmentOffset:R}},reset:z}}}),Be=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:a,initialPlacement:l,platform:c,elements:s}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:h=!0,...m}=Ee(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const y=je(r),v=je(l)===l,b=await(null==c.isRTL?void 0:c.isRTL(s.floating)),x=f||(v||!h?[ze(l)]:function(e){const t=ze(e);return[Ie(e),t,Ie(t)]}(l));f||"none"===g||x.push(...function(e,t,n,o){const r=Pe(e);let i=function(e,t,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?i:a;default:return[]}}(je(e),"start"===n,o);return r&&(i=i.map((e=>e+"-"+r)),t&&(i=i.concat(i.map(Ie)))),i}(l,h,g,b));const w=[l,...x],O=await Ne(t,m),k=[];let E=(null==(o=i.flip)?void 0:o.overflows)||[];if(u&&k.push(O[y]),d){const e=function(e,t,n){void 0===n&&(n=!1);const o=Pe(e),r=De(e),i=Le(r);let a="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=ze(a)),[a,ze(a)]}(r,a,b);k.push(O[e[0]],O[e[1]])}if(E=[...E,{placement:r,overflows:k}],!k.every((e=>e<=0))){var j,P;const e=((null==(j=i.flip)?void 0:j.index)||0)+1,t=w[e];if(t)return{data:{index:e,overflows:E},reset:{placement:t}};let n=null==(P=E.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:P.placement;if(!n)switch(p){case"bestFit":{var C;const e=null==(C=E.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:C[0];e&&(n=e);break}case"initialPlacement":n=l}if(r!==n)return{reset:{placement:n}}}return{}}}};const qe=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:o}=t,r=await async function(e,t){const{placement:n,platform:o,elements:r}=e,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),a=je(n),l=Pe(n),c="y"===Se(n),s=["left","top"].includes(a)?-1:1,u=i&&c?-1:1,d=Ee(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:g}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return l&&"number"==typeof g&&(p="end"===l?-1*g:g),c?{x:p*u,y:f*s}:{x:f*s,y:p*u}}(t,e);return{x:n+r.x,y:o+r.y,data:r}}}},He=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=Ee(e,t),s={x:n,y:o},u=await Ne(t,c),d=Se(je(r)),f=Ce(d);let p=s[f],g=s[d];if(i){const e="y"===f?"bottom":"right";p=ke(p+u["y"===f?"top":"left"],p,p-u[e])}if(a){const e="y"===d?"bottom":"right";g=ke(g+u["y"===d?"top":"left"],g,g-u[e])}const h=l.fn({...t,[f]:p,[d]:g});return{...h,data:{x:h.x-n,y:h.y-o}}}}};function Ue(e){return Fe(e)?(e.nodeName||"").toLowerCase():"#document"}function Ve(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Ke(e){var t;return null==(t=(Fe(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Fe(e){return e instanceof Node||e instanceof Ve(e).Node}function We(e){return e instanceof Element||e instanceof Ve(e).Element}function _e(e){return e instanceof HTMLElement||e instanceof Ve(e).HTMLElement}function Xe(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Ve(e).ShadowRoot)}function Ze(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=Qe(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function Ye(e){return["table","td","th"].includes(Ue(e))}function Je(e){const t=$e(),n=Qe(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function $e(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Ge(e){return["html","body","#document"].includes(Ue(e))}function Qe(e){return Ve(e).getComputedStyle(e)}function et(e){return We(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function tt(e){if("html"===Ue(e))return e;const t=e.assignedSlot||e.parentNode||Xe(e)&&e.host||Ke(e);return Xe(t)?t.host:t}function nt(e){const t=tt(e);return Ge(t)?e.ownerDocument?e.ownerDocument.body:e.body:_e(t)&&Ze(t)?t:nt(t)}function ot(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);const r=nt(e),i=r===(null==(o=e.ownerDocument)?void 0:o.body),a=Ve(r);return i?t.concat(a,a.visualViewport||[],Ze(r)?r:[],a.frameElement&&n?ot(a.frameElement):[]):t.concat(r,ot(r,[],n))}function rt(e){const t=Qe(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=_e(e),i=r?e.offsetWidth:n,a=r?e.offsetHeight:o,l=be(n)!==i||be(o)!==a;return l&&(n=i,o=a),{width:n,height:o,$:l}}function it(e){return We(e)?e:e.contextElement}function at(e){const t=it(e);if(!_e(t))return xe(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=rt(t);let a=(i?be(n.width):n.width)/o,l=(i?be(n.height):n.height)/r;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const lt=xe(0);function ct(e){const t=Ve(e);return $e()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:lt}function st(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=e.getBoundingClientRect(),i=it(e);let a=xe(1);t&&(o?We(o)&&(a=at(o)):a=at(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Ve(e))&&t}(i,n,o)?ct(i):xe(0);let c=(r.left+l.x)/a.x,s=(r.top+l.y)/a.y,u=r.width/a.x,d=r.height/a.y;if(i){const e=Ve(i),t=o&&We(o)?Ve(o):o;let n=e.frameElement;for(;n&&o&&t!==e;){const e=at(n),t=n.getBoundingClientRect(),o=Qe(n),r=t.left+(n.clientLeft+parseFloat(o.paddingLeft))*e.x,i=t.top+(n.clientTop+parseFloat(o.paddingTop))*e.y;c*=e.x,s*=e.y,u*=e.x,d*=e.y,c+=r,s+=i,n=Ve(n).frameElement}}return Te({width:u,height:d,x:c,y:s})}function ut(e){return st(Ke(e)).left+et(e).scrollLeft}function dt(e,t,n){let o;if("viewport"===t)o=function(e,t){const n=Ve(e),o=Ke(e),r=n.visualViewport;let i=o.clientWidth,a=o.clientHeight,l=0,c=0;if(r){i=r.width,a=r.height;const e=$e();(!e||e&&"fixed"===t)&&(l=r.offsetLeft,c=r.offsetTop)}return{width:i,height:a,x:l,y:c}}(e,n);else if("document"===t)o=function(e){const t=Ke(e),n=et(e),o=e.ownerDocument.body,r=ve(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=ve(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+ut(e);const l=-n.scrollTop;return"rtl"===Qe(o).direction&&(a+=ve(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:a,y:l}}(Ke(e));else if(We(t))o=function(e,t){const n=st(e,!0,"fixed"===t),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=_e(e)?at(e):xe(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:r*i.x,y:o*i.y}}(t,n);else{const n=ct(e);o={...t,x:t.x-n.x,y:t.y-n.y}}return Te(o)}function ft(e,t){const n=tt(e);return!(n===t||!We(n)||Ge(n))&&("fixed"===Qe(n).position||ft(n,t))}function pt(e,t,n){const o=_e(t),r=Ke(t),i="fixed"===n,a=st(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const c=xe(0);if(o||!o&&!i)if(("body"!==Ue(t)||Ze(r))&&(l=et(t)),o){const e=st(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else r&&(c.x=ut(r));return{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function gt(e,t){return _e(e)&&"fixed"!==Qe(e).position?t?t(e):e.offsetParent:null}function ht(e,t){const n=Ve(e);if(!_e(e))return n;let o=gt(e,t);for(;o&&Ye(o)&&"static"===Qe(o).position;)o=gt(o,t);return o&&("html"===Ue(o)||"body"===Ue(o)&&"static"===Qe(o).position&&!Je(o))?n:o||function(e){let t=tt(e);for(;_e(t)&&!Ge(t);){if(Je(t))return t;t=tt(t)}return null}(e)||n}const mt={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:o}=e;const r=_e(n),i=Ke(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0},l=xe(1);const c=xe(0);if((r||!r&&"fixed"!==o)&&(("body"!==Ue(n)||Ze(i))&&(a=et(n)),_e(n))){const e=st(n);l=at(n),c.x=e.x+n.clientLeft,c.y=e.y+n.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-a.scrollLeft*l.x+c.x,y:t.y*l.y-a.scrollTop*l.y+c.y}},getDocumentElement:Ke,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[..."clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let o=ot(e,[],!1).filter((e=>We(e)&&"body"!==Ue(e))),r=null;const i="fixed"===Qe(e).position;let a=i?tt(e):e;for(;We(a)&&!Ge(a);){const t=Qe(a),n=Je(a);n||"fixed"!==t.position||(r=null),(i?!n&&!r:!n&&"static"===t.position&&r&&["absolute","fixed"].includes(r.position)||Ze(a)&&!n&&ft(e,a))?o=o.filter((e=>e!==a)):r=t,a=tt(a)}return t.set(e,o),o}(t,this._c):[].concat(n),o],a=i[0],l=i.reduce(((e,n)=>{const o=dt(t,n,r);return e.top=ve(o.top,e.top),e.right=ye(o.right,e.right),e.bottom=ye(o.bottom,e.bottom),e.left=ve(o.left,e.left),e}),dt(t,a,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:ht,getElementRects:async function(e){let{reference:t,floating:n,strategy:o}=e;const r=this.getOffsetParent||ht,i=this.getDimensions;return{reference:pt(t,await r(n),o),floating:{x:0,y:0,...await i(n)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){return rt(e)},getScale:at,isElement:We,isRTL:function(e){return"rtl"===Qe(e).direction}},yt=(e,t,n)=>{const o=new Map,r={platform:mt,...n},i={...r.platform,_c:o};return(async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),c=await(null==a.isRTL?void 0:a.isRTL(t));let s=await a.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:d}=Me(s,o,c),f=o,p={},g=0;for(let n=0;n<l.length;n++){const{name:i,fn:h}=l[n],{x:m,y:y,data:v,reset:b}=await h({x:u,y:d,initialPlacement:o,placement:f,strategy:r,middlewareData:p,rects:s,platform:a,elements:{reference:e,floating:t}});u=null!=m?m:u,d=null!=y?y:d,p={...p,[i]:{...p[i],...v}},b&&g<=50&&(g++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(s=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:r}):b.rects),({x:u,y:d}=Me(s,f,c))),n=-1)}return{x:u,y:d,placement:f,strategy:r,middlewareData:p}})(e,t,{...r,platform:i})};var vt={};function bt(e,t,n){var o=e.id,r=ne(t);if(!e.highlightBox){var i=me(r,P.highlight,P.gray);document.body.appendChild(i),e.highlightBox=i}vt[o]=!0}function xt(e,t,n){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=e.id;o&&vt[r]||(e.highlightBox&&(document.body.removeChild(e.highlightBox),delete e.highlightBox),e.ribbonBox&&(document.body.removeChild(e.ribbonBox),delete e.ribbonBox),delete vt[r])}function wt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Ot(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wt(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var kt={};var Et,jt,Pt={save:function(e,t,n,r,i,a){e&&n&&r&&i&&(kt[e]||(kt[e]={id:e,node:i,subliminal:t}),t&&(kt[e].subliminal=t),kt[e].keys=Ot(Ot({},kt[e].keys),{},o({},"".concat(n),r)),a&&(kt[e].children=Ot(Ot({},kt[e].children),{},o({},"".concat(n,"-").concat(a.map((function(e){return e.childIndex})).join(",")),a))))},clean:function(){Object.values(kt).forEach((function(e){document.body.contains(e.node)||(xt(e.id,e.node),delete kt[e.id])}))},get:function(e){return kt[e]},data:kt};function Ct(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Lt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ct(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ct(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}!function(){if("undefined"!=typeof Document){var e=1;Document.prototype.hasOwnProperty("uniqueID")||(console.info('"document.uniqueID" not implemented; creating shim'),Object.defineProperty(Document.prototype,"uniqueID",{get:function(){return e++},enumerable:!1,configurable:!1}),Object.defineProperty(Element.prototype,"uniqueID",{get:function(){return Object.defineProperty(this,"uniqueID",{value:document.uniqueID,writable:!1,enumerable:!1,configurable:!1}),this.uniqueID},enumerable:!1,configurable:!0}))}}();var St=[];function Dt(e,t){if(!e.dataset||"true"!==e.dataset.i18nextEditorElement){t(e);var n=Pt.get(e.uniqueID),o=T.get(e.uniqueID);if(n||o){var r,i=null===(r=e.parentElement)||void 0===r?void 0:r.uniqueID;T.remove(i,e.parentElement)}for(var a=e.childNodes,l=0;l<a.length;l++)Dt(a[l],t)}}function It(e,t,n,r){var i,a,l,c=n.invisibleMeta,s=n.text;if(c&&c.key&&c.ns)return Et||(Et=jt.getSourceLng()),Lt(Lt({eleUniqueID:e,textType:t,children:r&&r.map?r.map((function(e){return e.childIndex})).join(","):null,qualifiedKey:"".concat(c.ns,":").concat(c.key)},c),{},{extractedText:s,i18nTargetLng:null===(i=jt)||void 0===i?void 0:i.getLng(),i18nSourceLng:Et,i18nRawText:o(o({},"".concat(c.lng),"translation"===c.source&&jt?null===(a=jt)||void 0===a?void 0:a.getResource(c.lng,c.ns,c.key):null),"".concat(Et),"translation"===c.source&&jt?null===(l=jt)||void 0===l?void 0:l.getResource(Et,c.ns,c.key):null)})}function zt(e,t){var n,r,i,a,l,c=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0,u=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})[t];if(u){Et||(Et=jt.getSourceLng());var d=jt.getLng();return{eleUniqueID:e,textType:t,children:s&&s.map?s.map((function(e){return e.childIndex})).join(","):null,qualifiedKey:u.key&&(u.ns||null!==(n=jt)&&void 0!==n&&n.getDefaultNS())?"".concat(u.ns||(null===(r=jt)||void 0===r?void 0:r.getDefaultNS()),":").concat(u.key):null,key:u.key,ns:u.ns||(null===(i=jt)||void 0===i?void 0:i.getDefaultNS()),extractedText:c,i18nTargetLng:d,i18nSourceLng:Et,i18nRawText:o(o({},"".concat(d),jt&&u.ns&&u.key&&(null===(a=jt)||void 0===a?void 0:a.getResource(d,u.ns,u.key))||c),"".concat(Et),jt&&u.ns&&u.key?null===(l=jt)||void 0===l?void 0:l.getResource(Et,u.ns,u.key):null)}}}function Rt(e){return/^\s*$/.test(e)}function Tt(e,t,n,o,r,a,l){var c=Pt.get(e),s=c&&c.keys["".concat(n)]||{},u=o["".concat(n)]||{};!u.key&&s.key&&(u.key=s.key),!u.ns&&s.ns&&(u.ns=s.ns),o["".concat(n)]=u;var d=zt(e,n,o,l,a);d.qualifiedKey?(Pt.save(e,null,n,d,r,a),T.removeKey(i,n,r)):T.save(e,n,r,l)}function Mt(e){if(!(j.indexOf(e.nodeName)>-1)){var t=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=q(e),o=U(e),r={};if(n&&n.indexOf(";")>=0){for(var i=n.split(";"),a=0,l=i.length;a<l;a++)if(""!=i[a]){var c=M(H(i[a]),2),s=c[0],u=c[1];r[u]=s}}else if(n){var d=M(H(n),2),f=d[0],p=d[1];r[p]=f}return Object.keys(r).length<1?null:Object.keys(r).reduce((function(e,n){var i=r[n],a=o,l=i;if(t&&i.indexOf(":")>-1){var c=i.split(":");l=c[1],a=c[0]}return e[n]={key:l,ns:a},e}),{})}(e),n=!1;if(e.childNodes&&!St.includes(e.uniqueID)){var o=[];e.childNodes.forEach((function(t,r){if(o.length&&"#text"!==t.nodeName&&(St.push(t.uniqueID),o.push({childIndex:r,child:t})),"#text"===t.nodeName){var i=t.textContent;if(!Rt(i)){var a=b(i),l=i.startsWith(d);if(a&&(n=!0),l&&a){var c=v(i);T.remove(e.uniqueID,e),Pt.save(e.uniqueID,c.invisibleMeta,"text",It(e.uniqueID,"text",c),e)}else if(l)o.push({childIndex:r,child:t,text:i});else if(o.length&&!a)o.push({childIndex:r,child:t,text:i});else if(o.length&&a){o.push({childIndex:r,child:t,text:i});var s=v(o.reduce((function(e,t){return e+t.text}),""));T.removeKey(e.uniqueID,"html",e,i),Pt.save(e.uniqueID,s.invisibleMeta,"html",It(e.uniqueID,"html",s,o),e,o),o=[]}}}})),n||e.childNodes.forEach((function(n,r){o.length&&"#text"!==n.nodeName&&St.push(n.uniqueID);var i=n.textContent;t&&t.html&&r<e.childNodes.length-1?o.push({childIndex:r,child:n,text:i}):t&&t.html&&r===e.childNodes.length-1?(o.push({childIndex:r,child:n,text:i}),Tt(e.uniqueID,0,"html",t,e,o,e.innerHTML),o=[]):i&&(t&&t.text?Tt(e.uniqueID,0,"text",t,e,void 0,i):"#text"!==n.nodeName||Rt(i)||T.save(e.uniqueID,"text",e,i))}))}e.getAttribute&&E.forEach((function(n){var o=e.getAttribute(n);if(b(o)){var r=v(o);T.removeKey(e.uniqueID,n,e),Pt.save(e.uniqueID,r.invisibleMeta,n,It(e.uniqueID,"".concat(n),r),e)}else o&&(t&&t[n]?Tt(e.uniqueID,0,n,t,e,void 0,o):T.save(e.uniqueID,n,e,o))}))}}function Nt(e){return Et=void 0,Dt(e,Mt),Pt.clean(),St=[],Pt.data}var At={};function Bt(e){if(e.uniqueID){var t=At[e.uniqueID];if(t&&t.triggered>10&&t.lastTriggerDate+500<Date.now())return!t.warned&&console&&(console.warn("locize ::: ignoring element change - an element is rerendering too often in short interval","\n",'consider adding the "data-locize-editor-ignore:" attribute to the element:',e),t.warned=!0),!0}var n=e.dataset&&("true"===e.dataset.i18nextEditorElement||"true"===e.dataset.locizeEditorIgnore);return!n&&e.parentElement?Bt(e.parentElement):n}function qt(e,t){var n,o,r=[],i=N((function(){t(r),r=[]}),100),a=new MutationObserver((function(e){if(n)return o&&clearTimeout(o),void(o=setTimeout((function(){n&&(n=!1)}),200));var t=!1;e.forEach((function(e){if("attributes"!==e.type||E.includes(e.attributeName)){if(Object.keys(At).forEach((function(e){At[e].lastTriggerDate+6e4<Date.now()&&delete At[e]})),"childList"===e.type){var n=0;if(Bt(e.target)||(e.addedNodes.forEach((function(e){Bt(e)||(n+=1)}),0),e.removedNodes.forEach((function(e){Bt(e)||(n+=1)}),0)),0===n)return}if(t=!0,e.target&&e.target.uniqueID){var o=At[e.target.uniqueID]||{triggered:0};o.triggered=o.triggered+1,o.lastTriggerDate=Date.now(),At[e.target.uniqueID]=o}r.reduce((function(t,n){return!(!t&&!n.contains(e.target)&&e.target.parentElement)}),!1)||(r=r.filter((function(t){return!e.target.contains(t)}))).push(e.target)}})),t&&i()}));return{start:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{attributes:!0,childList:!0,characterData:!0,subtree:!0};t([e]),a.observe(e,n)},skipNext:function(){n=!0}}}function Ht(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Ut(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ht(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ht(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Vt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Kt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vt(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ft,Wt={getResource:function(e,t,n){return{}},setResource:function(e,t,n,o){},getResourceBundle:function(e,t,n){n({})},getDefaultNS:function(){},getLng:function(){},getSourceLng:function(){},getLocizeDetails:function(){return{}},bindLanguageChange:function(e){},bindMissingKeyHandler:function(e){},triggerRerender:function(){}},_t="undefined"!=typeof window;try{_t=self!==top}catch(e){}function Xt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Wt,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{show:!1,qsProp:"incontext"};if("undefined"!=typeof document){var n=t.show||"true"===function(e,t){if("undefined"==typeof window)return null;t||(t=window.location.href.toLowerCase()),e=e.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null}(t.qsProp),o=document.getElementById("locize"),r={};if(["projectId","version"].forEach((function(e){if(o){var t=o.getAttribute(e.toLowerCase())||o.getAttribute("data-"+e.toLowerCase());"true"===t&&(t=!0),"false"===t&&(t=!1),null!=t&&(r[e]=t)}})),r=Kt(Kt(Kt({},e.getLocizeDetails()),r),t),G.config=r,G.init(e),jt=e,null==e||e.bindLanguageChange((function(t){G.sendCurrentTargetLanguage(e.getLng())})),document.body)return i();window.addEventListener("load",(function(){return i()}))}function i(){if(_t||n){var e=qt(document.body,(function(e){e.forEach((function(e){Nt(e)})),G.sendCurrentParsedContent()}));if(e.start(),ie(e),_t||document.getElementById(ue)||(document.body.append(de(C(),(function(){G.requestInitialize(r)}))),function(){for(var e=0,t=0,n=0,o=0,r=document.getElementsByClassName("i18next-editor-popup"),i=null,a=null,l=100,c=0;c<r.length;c++){var s=r[c],u=g(s);s.onmousedown=function(){this.style.zIndex=""+ ++l},u&&(u.parentPopup=s,u.onmousedown=d)}function d(e){a||(a=document.getElementById("i18next-editor-popup-overlay")),a&&(a.style.display="block"),ae(),(i=this.parentPopup).style.zIndex=""+ ++l,e=e||window.event,n=e.clientX,o=e.clientY,document.onmouseup=p,document.onmousemove=f}function f(r){i&&(r=r||window.event,e=n-r.clientX,t=o-r.clientY,n=r.clientX,o=r.clientY,i.style.top=i.offsetTop-t+"px",i.style.left=i.offsetLeft-e+"px")}function p(){ie(),a&&(a.style.display="none");var e=document.getElementById("i18next-editor-popup");localStorage.setItem("locize_popup_pos",JSON.stringify({top:parseInt(document.defaultView.getComputedStyle(e).top,10),left:parseInt(document.defaultView.getComputedStyle(e).left,10)})),document.onmouseup=null,document.onmousemove=null}function g(e){var t=e.getElementsByClassName("i18next-editor-popup-header");return 1===t.length?t[0]:null}}(),function(){for(var e,t,n,o,r=document.getElementsByClassName("i18next-editor-popup"),i=null,a=null,l=0;l<r.length;l++){var c=r[l],s=document.createElement("div");s.className="resizer-right",c.appendChild(s),s.addEventListener("mousedown",f,!1),s.parentPopup=c;var u=document.createElement("div");u.className="resizer-bottom",c.appendChild(u),u.addEventListener("mousedown",f,!1),u.parentPopup=c;var d=document.createElement("div");d.className="resizer-both",c.appendChild(d),d.addEventListener("mousedown",f,!1),d.parentPopup=c}function f(r){ae(),a||(a=document.getElementById("i18next-editor-popup-overlay")),a&&(a.style.display="block"),i=this.parentPopup,e=r.clientX,t=r.clientY,n=parseInt(document.defaultView.getComputedStyle(i).width,10),o=parseInt(document.defaultView.getComputedStyle(i).height,10),document.documentElement.addEventListener("mousemove",p,!1),document.documentElement.addEventListener("mouseup",g,!1)}function p(r){i.style.width=n+r.clientX-e+"px",i.style.height=o+r.clientY-t+"px"}function g(){ie(),a&&(a.style.display="none");var e=document.getElementById("i18next-editor-popup");localStorage.setItem("locize_popup_size",JSON.stringify({width:parseInt(document.defaultView.getComputedStyle(e).width,10),height:parseInt(document.defaultView.getComputedStyle(e).height,10)})),document.documentElement.removeEventListener("mousemove",p,!1),document.documentElement.removeEventListener("mouseup",g,!1)}}()),"undefined"!=typeof window){var t=window.document.location.href;G.sendHrefchanged(t);var o=window.document.querySelector("body");new window.MutationObserver((function(e){e.forEach((function(e){t!==window.document.location.href&&(t=window.document.location.href,G.sendHrefchanged(t))}))})).observe(o,{childList:!0,subtree:!0})}}}}var Zt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.qsProp=e.qsProp||"incontext",{type:"3rdParty",init:function(t){var n=t.options;Ft=t;var o=function(e){var t={getResource:function(t,n,o){return e.getResource&&e.getResource(t,n,o)},setResource:function(t,n,o,r){return e.addResource(t,n,o,r,{silent:!0})},getResourceBundle:function(t,n,o){e.loadNamespaces(n,(function(){o(e.getResourceBundle(t,n))}))},getDefaultNS:function(){return e.options.defaultNS},getLng:function(){return e.resolvedLanguage||e.languages&&e.languages[0]||e.options.lng},getSourceLng:function(){var t=e.options.fallbackLng;if("string"==typeof t)return t;if(Array.isArray(t))return t[t.length-1];if(t&&t.default){if("string"==typeof t.default)return t;if(Array.isArray(t.default))return t.default[t.default.length-1]}if("function"==typeof t){var n=t(e.resolvedLanguage);if("string"==typeof n)return n;if(Array.isArray(n))return n[n.length-1]}return"dev"},getLocizeDetails:function(){var n={backendName:e.services.backendConnector.backend&&e.services.backendConnector.backend.options&&e.services.backendConnector.backend.options.loadPath&&e.services.backendConnector.backend.options.loadPath.indexOf(".locize.")>0?"I18nextLocizeBackend":e.services.backendConnector.backend?e.services.backendConnector.backend.constructor.name:"options.resources",sourceLng:t.getSourceLng(),i18nFormat:"v3"===e.options.compatibilityJSON?"i18next_v3":"i18next_v4",i18nFramework:"i18next",isLocizify:e.options.isLocizify,defaultNS:e.options.defaultNS,targetLngs:l(new Set([].concat(e.options.preload,e.options.supportedLngs,[t.getLng()]))).filter((function(e){return"cimode"!==e&&!1!==e&&"false"!==e&&void 0!==e&&e!==t.getSourceLng()})),ns:l(new Set([].concat(e.options.ns,e.options.fallbackNS,e.options.defaultNS))).filter((function(e){return!1!==e&&"false"!==e}))};if(!e.options.backend&&!e.options.editor)return n;var o=e.options.editor||e.options.backend;return Ut(Ut({},n),{},{projectId:o.projectId,version:o.version})},bindLanguageChange:function(t){e.on("languageChanged",t)},bindMissingKeyHandler:function(t){e.options.missingKeyHandler=function(e,n,o,r,i,a){i||t(e,n,o,r)}},triggerRerender:function(){e.emit("editorSaved")}};return t}(t);!function(e,t){e.use(k),"string"==typeof t.postProcess?t.postProcess=[t.postProcess,"subliminal"]:Array.isArray(t.postProcess)?t.postProcess.push("subliminal"):t.postProcess="subliminal",t.postProcessPassResolved=!0}(Ft,n),Xt(o,e)}}},Yt=Zt();function Jt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var o=function(e){if(e.srcElement&&1===e.srcElement.nodeType&&("BUTTON"===e.srcElement.nodeName||"INPUT"===e.srcElement.nodeName))return e.srcElement.getAttribute&&""===e.srcElement.getAttribute("ignorelocizeeditor")?null:e.srcElement;var t;if(e.originalEvent&&e.originalEvent.explicitOriginalTarget)t=e.originalEvent.explicitOriginalTarget;else{var n=e.srcElement;if(n.getAttribute&&""===n.getAttribute("ignorelocizeeditor"))return null;for(var o,r=e.pageX,i=e.pageY,a=0,l=0;l<n.childNodes.length;l++){var c=n.childNodes[l],s=A(c);1===c.nodeType&&s.bottom<i&&(a=l+1),!o&&s.top+(c.clientHeight||0)>i&&(o=l)}a+1>n.childNodes.length&&(a=n.childNodes.length-1),o||(o=n.childNodes.length);for(var u=a;u<o;u++){var d=n.childNodes[u];if(A(d).left>r)break;d&&8!==d.nodeType&&(t=d)}}return t}(n);if(!o)return{};n.preventDefault(),n.stopPropagation();var r=function(e){var t=e.textContent||e.text&&e.text.innerText||e.placeholder;if("string"==typeof t)return t.replace(/\n +/g,"").trim()}(o),i=q(o),a=U(o)||function(){if(t.isLocizify)return t.defaultNS}();if(b(r)){var l=v(r);l&&l.invisibleMeta&&l.invisibleMeta.key&&(i=l.invisibleMeta.key),l&&l.invisibleMeta&&l.invisibleMeta.ns&&(a=l.invisibleMeta.ns)}var c=o.getBoundingClientRect?o:o.parentElement,s=c.getBoundingClientRect(),u=s.top,d=s.left,f=s.width,p=s.height,g=window.getComputedStyle(c,null),h=parseFloat(g.getPropertyValue("padding-top")),m=parseFloat(g.getPropertyValue("padding-bottom")),y=parseFloat(g.getPropertyValue("padding-right")),x=parseFloat(g.getPropertyValue("padding-left")),w=g.getPropertyValue("box-sizing");e({tagName:c.tagName,text:r,key:i,ns:a,box:{top:u,left:d,width:"border-box"===w?f:f-y-x,height:"border-box"===w?p:p-h-m},style:g.cssText})}}function $t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Gt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$t(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$t(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qt(){!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("undefined"!=typeof document){var t=document.getElementById("locize"),n={};if(["projectId","version"].forEach((function(e){if(t){var o=t.getAttribute(e.toLowerCase())||t.getAttribute("data-"+e.toLowerCase());"true"===o&&(o=!0),"false"===o&&(o=!1),null!=o&&(n[e]=o)}})),n=Gt(Gt({},e.getLocizeDetails()),n),G.init(e,Jt((function(e){Y("clickedElement",{payload:e})}),e.getLocizeDetails())),G.sendCurrentTargetLanguage=function(t){Y("setLng",{lng:t||e.getLng()})},"undefined"!=typeof window){var o=window.document.location.href;window.addEventListener("load",(function(){Y("hrefChanged",{href:window.document.location.href});var e=window.document.querySelector("body");new window.MutationObserver((function(e){e.forEach((function(e){o!==window.document.location.href&&Y("hrefChanged",{href:o=window.document.location.href})}))})).observe(e,{childList:!0,subtree:!0})}))}null==e||e.bindLanguageChange((function(t){G.sendCurrentTargetLanguage(e.getLng())})),null==e||e.bindMissingKeyHandler((function(e,t,n,o){G.onAddedKey(e,t,n,o)}))}}({getLocizeDetails:function(){return{}},getLng:function(){},setResource:function(){},triggerRerender:function(){},getResourceBundle:function(){return{}},bindMissingKeyHandler:function(){},bindLanguageChange:function(){}})}"undefined"!=typeof window&&(window.locizeStartStandalone=Qt);var en={wrap:y,unwrap:v,containsHiddenMeta:b,PostProcessor:k,addLocizeSavedHandler:W,locizePlugin:Yt,locizeEditorPlugin:Zt,setEditorLng:_,startStandalone:Qt};e.PostProcessor=k,e.addLocizeSavedHandler=W,e.containsHiddenMeta=b,e.default=en,e.locizeEditorPlugin=Zt,e.locizePlugin=Yt,e.setEditorLng=_,e.startStandalone=Qt,e.unwrap=v,e.wrap=y,Object.defineProperty(e,"__esModule",{value:!0})}));
package/index.d.ts CHANGED
@@ -4,8 +4,8 @@ export * from 'i18next-subliminal'
4
4
  * The i18next plugin for the locize incontext editor.
5
5
  */
6
6
  export interface LocizePlugin {
7
- type: '3rdParty';
8
- init(i18next: any): () => void;
7
+ type: '3rdParty'
8
+ init(i18next: any): () => void
9
9
  }
10
10
 
11
11
  /**
@@ -17,29 +17,22 @@ export const locizePlugin: LocizePlugin
17
17
  * Returns an i18next plugin that will only show the incontext editor if the qsProp in your url is set to true or if you pass { show: true }.
18
18
  * @param opt defaults to: { qsProp: 'incontext', show: false }
19
19
  */
20
- export function locizeEditorPlugin(opt?: { qsProp?: string, show?: boolean }): LocizePlugin
21
-
22
- /**
23
- * Turn on programmatically.
24
- */
25
- export function turnOn(): void;
26
-
27
- /**
28
- * Turn off programmatically.
29
- */
30
- export function turnOff(): void;
20
+ export function locizeEditorPlugin(opt?: {
21
+ qsProp?: string
22
+ show?: boolean
23
+ }): LocizePlugin
31
24
 
32
25
  /**
33
26
  * Set the language for the editor.
34
27
  */
35
- export function setEditorLng(lng: string): void;
28
+ export function setEditorLng(lng: string): void
36
29
 
37
30
  /**
38
31
  * To load the translations somewhere.
39
32
  */
40
- export function addLocizeSavedHandler(fn: (data: any) => void): void;
33
+ export function addLocizeSavedHandler(fn: (data: any) => void): void
41
34
 
42
35
  /**
43
36
  * If used without i18next.
44
37
  */
45
- export function startStandalone(): void;
38
+ export function startStandalone(): void