@everymatrix/general-registration 1.61.0 → 1.62.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 (26) hide show
  1. package/dist/cjs/checkbox-group-input_13.cjs.entry.js +244 -224
  2. package/dist/cjs/general-registration.cjs.js +1 -1
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/collection/components/general-registration/general-registration.js +57 -19
  5. package/dist/collection/components/general-registration/general-registration.stories.js +24 -7
  6. package/dist/esm/checkbox-group-input_13.entry.js +244 -224
  7. package/dist/esm/general-registration.js +1 -1
  8. package/dist/esm/loader.js +1 -1
  9. package/dist/general-registration/general-registration.esm.js +1 -1
  10. package/dist/general-registration/{p-6bdde858.entry.js → p-e0a5de25.entry.js} +120 -120
  11. package/dist/storybook/main.js +1 -0
  12. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-registration/stencil.config.d.ts +2 -0
  13. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-registration/stencil.config.dev.d.ts +2 -0
  14. package/dist/types/components/general-registration/general-registration.d.ts +9 -2
  15. package/dist/types/components.d.ts +8 -0
  16. package/package.json +1 -1
  17. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-registration/stencil.config.d.ts +0 -2
  18. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-registration/stencil.config.dev.d.ts +0 -2
  19. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-registration/.stencil/libs/common/src/storybook/storybook-utils.d.ts +0 -0
  20. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-input/src/utils/types.d.ts +0 -0
  21. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-registration/storybook/main.d.ts +0 -0
  22. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-registration/storybook/preview.d.ts +0 -0
  23. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-registration/.stencil/tools/plugins/index.d.ts +0 -0
  24. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-registration/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  25. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-registration/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  26. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-registration/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -3,7 +3,7 @@ import{r as e,c as t,h as i,g as r,H as n}from"./p-59a2915a.js";const o={en:{dat
3
3
  * @license
4
4
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
5
5
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6
- */;function si(e,t="24.5.12"){Object.defineProperty(e,"version",{get:()=>t});const i=customElements.get(e.is);if(i){const t=i.version;t&&e.version&&t===e.version?console.warn(`The component ${e.is} has been loaded twice`):console.error(`Tried to define ${e.is} version ${e.version} when version ${i.version} is already in use. Something will probably break.`)}else customElements.define(e.is,e)}
6
+ */;function si(e,t="24.5.10"){Object.defineProperty(e,"version",{get:()=>t});const i=customElements.get(e.is);if(i){const t=i.version;t&&e.version&&t===e.version?console.warn(`The component ${e.is} has been loaded twice`):console.error(`Tried to define ${e.is} version ${e.version} when version ${i.version} is already in use. Something will probably break.`)}else customElements.define(e.is,e)}
7
7
  /**
8
8
  * @license
9
9
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
@@ -1538,12 +1538,12 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1538
1538
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1539
1539
  Code distributed by Google as part of the polymer project is also
1540
1540
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1541
- */const Is=e=>e,Cs="string"==typeof document.head.style.touchAction,Ds="__polymerGestures",Ts="__polymerGesturesHandled",Rs="__polymerGesturesTouchAction",Ns=["mousedown","mousemove","mouseup","click"],Os=[0,1,4,2],zs=function(){try{return 1===new MouseEvent("test",{buttons:1}).buttons}catch(e){return!1}}();function Gs(e){return Ns.indexOf(e)>-1}!function(){try{const e=Object.defineProperty({},"passive",{get(){}});window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(e){}}();const Ms=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),Us={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Bs(e){const t=e.type;if(!Gs(t))return!1;if("mousemove"===t){let t=void 0===e.buttons?1:e.buttons;return e instanceof window.MouseEvent&&!zs&&(t=Os[e.which]||0),!!(1&t)}return 0===(void 0===e.button?0:e.button)}const Ps={touch:{x:0,y:0,id:-1,scrollDecided:!1}};function Ls(e,t,i){e.movefn=t,e.upfn=i,document.addEventListener("mousemove",t),document.addEventListener("mouseup",i)}function js(e){document.removeEventListener("mousemove",e.movefn),document.removeEventListener("mouseup",e.upfn),e.movefn=null,e.upfn=null}const Fs=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:e=>e.composedPath&&e.composedPath()||[],qs={},Hs=[];function Vs(e){const t=Fs(e);return t.length>0?t[0]:e.target}function $s(e){const t=e.type,i=e.currentTarget[Ds];if(!i)return;const r=i[t];if(!r)return;if(!e[Ts]&&(e[Ts]={},t.startsWith("touch"))){const i=e.changedTouches[0];if("touchstart"===t&&1===e.touches.length&&(Ps.touch.id=i.identifier),Ps.touch.id!==i.identifier)return;Cs||("touchstart"===t||"touchmove"===t)&&function(e){const t=e.changedTouches[0],i=e.type;if("touchstart"===i)Ps.touch.x=t.clientX,Ps.touch.y=t.clientY,Ps.touch.scrollDecided=!1;else if("touchmove"===i){if(Ps.touch.scrollDecided)return;Ps.touch.scrollDecided=!0;const i=function(e){let t="auto";const i=Fs(e);for(let e,r=0;r<i.length;r++)if(e=i[r],e[Rs]){t=e[Rs];break}return t}(e);let r=!1;const n=Math.abs(Ps.touch.x-t.clientX),o=Math.abs(Ps.touch.y-t.clientY);e.cancelable&&("none"===i?r=!0:"pan-x"===i?r=o>n:"pan-y"===i&&(r=n>o)),r?e.preventDefault():Zs("track")}}(e)}const n=e[Ts];if(!n.skip){for(let t,i=0;i<Hs.length;i++)t=Hs[i],r[t.name]&&!n[t.name]&&t.flow&&t.flow.start.indexOf(e.type)>-1&&t.reset&&t.reset();for(let i,o=0;o<Hs.length;o++)i=Hs[o],r[i.name]&&!n[i.name]&&(n[i.name]=!0,i[t](e))}}function Xs(e,t,i){return!!qs[t]&&(function(e,t,i){const r=qs[t],n=r.deps,o=r.name;let s=e[Ds];s||(e[Ds]=s={});for(let t,i,r=0;r<n.length;r++)t=n[r],(!Ms||!Gs(t)||"click"===t)&&(i=s[t],i||(s[t]=i={_count:0}),0===i._count&&e.addEventListener(t,$s,void 0),i[o]=(i[o]||0)+1,i._count=(i._count||0)+1);e.addEventListener(t,i),r.touchAction&&Ys(e,r.touchAction)}(e,t,i),!0)}function Ks(e){Hs.push(e),e.emits.forEach((t=>{qs[t]=e}))}function Ys(e,t){Cs&&e instanceof HTMLElement&&ss.run((()=>{e.style.touchAction=t})),e[Rs]=t}function Ws(e,t,i){const r=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});if(r.detail=i,Is(e).dispatchEvent(r),r.defaultPrevented){const e=i.preventer||i.sourceEvent;e&&e.preventDefault&&e.preventDefault()}}function Zs(e){const t=function(e){for(let t,i=0;i<Hs.length;i++){t=Hs[i];for(let i,r=0;r<t.emits.length;r++)if(i=t.emits[r],i===e)return t}return null}(e);t.info&&(t.info.prevent=!0)}function Qs(e,t,i,r){t&&Ws(t,e,{x:i.clientX,y:i.clientY,sourceEvent:i,preventer:r,prevent:e=>Zs(e)})}function Js(e,t,i){if(e.prevent)return!1;if(e.started)return!0;const r=Math.abs(e.x-t),n=Math.abs(e.y-i);return r>=5||n>=5}function ea(e,t,i){if(!t)return;const r=e.moves[e.moves.length-2],n=e.moves[e.moves.length-1];let o,s=0;r&&(o=n.x-r.x,s=n.y-r.y),Ws(t,"track",{state:e.state,x:i.clientX,y:i.clientY,dx:n.x-e.x,dy:n.y-e.y,ddx:o,ddy:s,sourceEvent:i,hover:()=>function(e,t){let i=document.elementFromPoint(e,t),r=i;for(;r&&r.shadowRoot&&!window.ShadyDOM;){const n=r;if(r=r.shadowRoot.elementFromPoint(e,t),n===r)break;r&&(i=r)}return i}(i.clientX,i.clientY)})}function ta(e,t,i){const r=Math.abs(t.clientX-e.x),n=Math.abs(t.clientY-e.y),o=Vs(i||t);!o||Us[o.localName]&&o.hasAttribute("disabled")||(isNaN(r)||isNaN(n)||r<=25&&n<=25||function(e){if("click"===e.type){if(0===e.detail)return!0;const t=Vs(e);if(!t.nodeType||t.nodeType!==Node.ELEMENT_NODE)return!0;const i=t.getBoundingClientRect(),r=e.pageX,n=e.pageY;return!(r>=i.left&&r<=i.right&&n>=i.top&&n<=i.bottom)}return!1}(t))&&(e.prevent||Ws(o,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:i}))}
1541
+ */const Is=!1,Cs=e=>e,Ds="string"==typeof document.head.style.touchAction,Ts="__polymerGestures",Rs="__polymerGesturesHandled",Ns="__polymerGesturesTouchAction",Os=["mousedown","mousemove","mouseup","click"],zs=[0,1,4,2],Gs=function(){try{return 1===new MouseEvent("test",{buttons:1}).buttons}catch(e){return!1}}();function Ms(e){return Os.indexOf(e)>-1}let Us=!1;function Bs(e){if(!Ms(e)&&"touchend"!==e&&Ds&&Us&&Is)return{passive:!0}}!function(){try{const e=Object.defineProperty({},"passive",{get(){Us=!0}});window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(e){}}();const Ps=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),Ls={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function js(e){const t=e.type;if(!Ms(t))return!1;if("mousemove"===t){let t=void 0===e.buttons?1:e.buttons;return e instanceof window.MouseEvent&&!Gs&&(t=zs[e.which]||0),!!(1&t)}return 0===(void 0===e.button?0:e.button)}const Fs={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function qs(e,t,i){e.movefn=t,e.upfn=i,document.addEventListener("mousemove",t),document.addEventListener("mouseup",i)}function Hs(e){document.removeEventListener("mousemove",e.movefn),document.removeEventListener("mouseup",e.upfn),e.movefn=null,e.upfn=null}const Vs=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:e=>e.composedPath&&e.composedPath()||[],$s={},Xs=[];function Ks(e){const t=Vs(e);return t.length>0?t[0]:e.target}function Ys(e){const t=e.type,i=e.currentTarget[Ts];if(!i)return;const r=i[t];if(!r)return;if(!e[Rs]&&(e[Rs]={},t.startsWith("touch"))){const i=e.changedTouches[0];if("touchstart"===t&&1===e.touches.length&&(Fs.touch.id=i.identifier),Fs.touch.id!==i.identifier)return;Ds||("touchstart"===t||"touchmove"===t)&&function(e){const t=e.changedTouches[0],i=e.type;if("touchstart"===i)Fs.touch.x=t.clientX,Fs.touch.y=t.clientY,Fs.touch.scrollDecided=!1;else if("touchmove"===i){if(Fs.touch.scrollDecided)return;Fs.touch.scrollDecided=!0;const i=function(e){let t="auto";const i=Vs(e);for(let e,r=0;r<i.length;r++)if(e=i[r],e[Ns]){t=e[Ns];break}return t}(e);let r=!1;const n=Math.abs(Fs.touch.x-t.clientX),o=Math.abs(Fs.touch.y-t.clientY);e.cancelable&&("none"===i?r=!0:"pan-x"===i?r=o>n:"pan-y"===i&&(r=n>o)),r?e.preventDefault():ea("track")}}(e)}const n=e[Rs];if(!n.skip){for(let t,i=0;i<Xs.length;i++)t=Xs[i],r[t.name]&&!n[t.name]&&t.flow&&t.flow.start.indexOf(e.type)>-1&&t.reset&&t.reset();for(let i,o=0;o<Xs.length;o++)i=Xs[o],r[i.name]&&!n[i.name]&&(n[i.name]=!0,i[t](e))}}function Ws(e,t,i){return!!$s[t]&&(function(e,t,i){const r=$s[t],n=r.deps,o=r.name;let s=e[Ts];s||(e[Ts]=s={});for(let t,i,r=0;r<n.length;r++)t=n[r],(!Ps||!Ms(t)||"click"===t)&&(i=s[t],i||(s[t]=i={_count:0}),0===i._count&&e.addEventListener(t,Ys,Bs(t)),i[o]=(i[o]||0)+1,i._count=(i._count||0)+1);e.addEventListener(t,i),r.touchAction&&Qs(e,r.touchAction)}(e,t,i),!0)}function Zs(e){Xs.push(e),e.emits.forEach((t=>{$s[t]=e}))}function Qs(e,t){Ds&&e instanceof HTMLElement&&ss.run((()=>{e.style.touchAction=t})),e[Ns]=t}function Js(e,t,i){const r=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});if(r.detail=i,Cs(e).dispatchEvent(r),r.defaultPrevented){const e=i.preventer||i.sourceEvent;e&&e.preventDefault&&e.preventDefault()}}function ea(e){const t=function(e){for(let t,i=0;i<Xs.length;i++){t=Xs[i];for(let i,r=0;r<t.emits.length;r++)if(i=t.emits[r],i===e)return t}return null}(e);t.info&&(t.info.prevent=!0)}function ta(e,t,i,r){t&&Js(t,e,{x:i.clientX,y:i.clientY,sourceEvent:i,preventer:r,prevent:e=>ea(e)})}function ia(e,t,i){if(e.prevent)return!1;if(e.started)return!0;const r=Math.abs(e.x-t),n=Math.abs(e.y-i);return r>=5||n>=5}function ra(e,t,i){if(!t)return;const r=e.moves[e.moves.length-2],n=e.moves[e.moves.length-1];let o,s=0;r&&(o=n.x-r.x,s=n.y-r.y),Js(t,"track",{state:e.state,x:i.clientX,y:i.clientY,dx:n.x-e.x,dy:n.y-e.y,ddx:o,ddy:s,sourceEvent:i,hover:()=>function(e,t){let i=document.elementFromPoint(e,t),r=i;for(;r&&r.shadowRoot&&!window.ShadyDOM;){const n=r;if(r=r.shadowRoot.elementFromPoint(e,t),n===r)break;r&&(i=r)}return i}(i.clientX,i.clientY)})}function na(e,t,i){const r=Math.abs(t.clientX-e.x),n=Math.abs(t.clientY-e.y),o=Ks(i||t);!o||Ls[o.localName]&&o.hasAttribute("disabled")||(isNaN(r)||isNaN(n)||r<=25&&n<=25||function(e){if("click"===e.type){if(0===e.detail)return!0;const t=Ks(e);if(!t.nodeType||t.nodeType!==Node.ELEMENT_NODE)return!0;const i=t.getBoundingClientRect(),r=e.pageX,n=e.pageY;return!(r>=i.left&&r<=i.right&&n>=i.top&&n<=i.bottom)}return!1}(t))&&(e.prevent||Js(o,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:i}))}
1542
1542
  /**
1543
1543
  * @license
1544
1544
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1545
1545
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1546
- */Ks({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){js(this.info)},mousedown(e){if(!Bs(e))return;const t=Vs(e),i=this;Ls(this.info,(e=>{Bs(e)||(Qs("up",t,e),js(i.info))}),(e=>{Bs(e)&&Qs("up",t,e),js(i.info)})),Qs("down",t,e)},touchstart(e){Qs("down",Vs(e),e.changedTouches[0],e)},touchend(e){Qs("up",Vs(e),e.changedTouches[0],e)}}),Ks({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(e){this.moves.length>2&&this.moves.shift(),this.moves.push(e)},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,js(this.info)},mousedown(e){if(!Bs(e))return;const t=Vs(e),i=this,r=e=>{const r=e.clientX,n=e.clientY;Js(i.info,r,n)&&(i.info.state=i.info.started?"mouseup"===e.type?"end":"track":"start","start"===i.info.state&&Zs("tap"),i.info.addMove({x:r,y:n}),Bs(e)||(i.info.state="end",js(i.info)),t&&ea(i.info,t,e),i.info.started=!0)};Ls(this.info,r,(e=>{i.info.started&&r(e),js(i.info)})),this.info.x=e.clientX,this.info.y=e.clientY},touchstart(e){const t=e.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchmove(e){const t=Vs(e),i=e.changedTouches[0],r=i.clientX,n=i.clientY;Js(this.info,r,n)&&("start"===this.info.state&&Zs("tap"),this.info.addMove({x:r,y:n}),ea(this.info,t,i),this.info.state="track",this.info.started=!0)},touchend(e){const t=Vs(e),i=e.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:i.clientX,y:i.clientY}),ea(this.info,t,i))}}),Ks({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown(e){Bs(e)&&(this.info.x=e.clientX,this.info.y=e.clientY)},click(e){Bs(e)&&ta(this.info,e)},touchstart(e){const t=e.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchend(e){ta(this.info,e.changedTouches[0],e)}});const ia=rn((e=>class extends e{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(e){this._setAriaDisabled(e)}_setAriaDisabled(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}})),ra=rn((e=>class extends e{ready(){super.ready(),this.addEventListener("keydown",(e=>{this._onKeyDown(e)})),this.addEventListener("keyup",(e=>{this._onKeyUp(e)}))}_onKeyDown(e){switch(e.key){case"Enter":this._onEnter(e);break;case"Escape":this._onEscape(e)}}_onKeyUp(e){}_onEnter(e){}_onEscape(e){}})),na=e=>class extends(ia(ra(e))){get _activeKeys(){return[" "]}ready(){super.ready(),Xs(this,"down",(e=>{this._shouldSetActive(e)&&this._setActive(!0)})),Xs(this,"up",(()=>{this._setActive(!1)}))}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(e){return!this.disabled}_onKeyDown(e){super._onKeyDown(e),this._shouldSetActive(e)&&this._activeKeys.includes(e.key)&&(this._setActive(!0),document.addEventListener("keyup",(e=>{this._activeKeys.includes(e.key)&&this._setActive(!1)}),{once:!0}))}_setActive(e){this.toggleAttribute("active",e)}}
1546
+ */Zs({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){Hs(this.info)},mousedown(e){if(!js(e))return;const t=Ks(e),i=this;qs(this.info,(e=>{js(e)||(ta("up",t,e),Hs(i.info))}),(e=>{js(e)&&ta("up",t,e),Hs(i.info)})),ta("down",t,e)},touchstart(e){ta("down",Ks(e),e.changedTouches[0],e)},touchend(e){ta("up",Ks(e),e.changedTouches[0],e)}}),Zs({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(e){this.moves.length>2&&this.moves.shift(),this.moves.push(e)},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,Hs(this.info)},mousedown(e){if(!js(e))return;const t=Ks(e),i=this,r=e=>{const r=e.clientX,n=e.clientY;ia(i.info,r,n)&&(i.info.state=i.info.started?"mouseup"===e.type?"end":"track":"start","start"===i.info.state&&ea("tap"),i.info.addMove({x:r,y:n}),js(e)||(i.info.state="end",Hs(i.info)),t&&ra(i.info,t,e),i.info.started=!0)};qs(this.info,r,(e=>{i.info.started&&r(e),Hs(i.info)})),this.info.x=e.clientX,this.info.y=e.clientY},touchstart(e){const t=e.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchmove(e){const t=Ks(e),i=e.changedTouches[0],r=i.clientX,n=i.clientY;ia(this.info,r,n)&&("start"===this.info.state&&ea("tap"),this.info.addMove({x:r,y:n}),ra(this.info,t,i),this.info.state="track",this.info.started=!0)},touchend(e){const t=Ks(e),i=e.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:i.clientX,y:i.clientY}),ra(this.info,t,i))}}),Zs({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown(e){js(e)&&(this.info.x=e.clientX,this.info.y=e.clientY)},click(e){js(e)&&na(this.info,e)},touchstart(e){const t=e.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchend(e){na(this.info,e.changedTouches[0],e)}});const oa=rn((e=>class extends e{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(e){this._setAriaDisabled(e)}_setAriaDisabled(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}})),sa=rn((e=>class extends e{ready(){super.ready(),this.addEventListener("keydown",(e=>{this._onKeyDown(e)})),this.addEventListener("keyup",(e=>{this._onKeyUp(e)}))}_onKeyDown(e){switch(e.key){case"Enter":this._onEnter(e);break;case"Escape":this._onEscape(e)}}_onKeyUp(e){}_onEnter(e){}_onEscape(e){}})),aa=e=>class extends(oa(sa(e))){get _activeKeys(){return[" "]}ready(){super.ready(),Ws(this,"down",(e=>{this._shouldSetActive(e)&&this._setActive(!0)})),Ws(this,"up",(()=>{this._setActive(!1)}))}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(e){return!this.disabled}_onKeyDown(e){super._onKeyDown(e),this._shouldSetActive(e)&&this._activeKeys.includes(e.key)&&(this._setActive(!0),document.addEventListener("keyup",(e=>{this._activeKeys.includes(e.key)&&this._setActive(!1)}),{once:!0}))}_setActive(e){this.toggleAttribute("active",e)}}
1547
1547
  /**
1548
1548
  * @license
1549
1549
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
@@ -1553,65 +1553,65 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1553
1553
  * @license
1554
1554
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1555
1555
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1556
- */let oa=!1;function sa(){let e=document.activeElement||document.body;for(;e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function aa(){return oa}function la(e,t){const i=Math.max(e.tabIndex,0),r=Math.max(t.tabIndex,0);return 0===i||0===r?r>i:i>r}function ha(e){const t=e.length;if(t<2)return e;const i=Math.ceil(t/2);return function(e,t){const i=[];for(;e.length>0&&t.length>0;)la(e[0],t[0])?i.push(t.shift()):i.push(e.shift());return i.concat(e,t)}(ha(e.slice(0,i)),ha(e.slice(i)))}function ca(e){return!e.matches('[tabindex="-1"]')&&(e.matches("input, select, textarea, button, object")?e.matches(":not([disabled])"):e.matches("a[href], area[href], iframe, [tabindex], [contentEditable]"))}function da(e){return e.getRootNode().activeElement===e}function ua(e,t){if(e.nodeType!==Node.ELEMENT_NODE||function(e){const t=e.style;if("hidden"===t.visibility||"none"===t.display)return!0;const i=window.getComputedStyle(e);return"hidden"===i.visibility||"none"===i.display}(e))return!1;const i=e,r=function(e){if(!ca(e))return-1;const t=e.getAttribute("tabindex")||0;return Number(t)}(i);let n=r>0;r>=0&&t.push(i);let o=[];return o="slot"===i.localName?i.assignedNodes({flatten:!0}):(i.shadowRoot||i).children,[...o].forEach((e=>{n=ua(e,t)||n})),n}window.addEventListener("keydown",(()=>{oa=!0}),{capture:!0}),window.addEventListener("mousedown",(()=>{oa=!1}),{capture:!0});
1556
+ */let la=!1;function ha(){let e=document.activeElement||document.body;for(;e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function ca(){return la}function da(e,t){const i=Math.max(e.tabIndex,0),r=Math.max(t.tabIndex,0);return 0===i||0===r?r>i:i>r}function ua(e){const t=e.length;if(t<2)return e;const i=Math.ceil(t/2);return function(e,t){const i=[];for(;e.length>0&&t.length>0;)da(e[0],t[0])?i.push(t.shift()):i.push(e.shift());return i.concat(e,t)}(ua(e.slice(0,i)),ua(e.slice(i)))}function ma(e){return!e.matches('[tabindex="-1"]')&&(e.matches("input, select, textarea, button, object")?e.matches(":not([disabled])"):e.matches("a[href], area[href], iframe, [tabindex], [contentEditable]"))}function pa(e){return e.getRootNode().activeElement===e}function _a(e,t){if(e.nodeType!==Node.ELEMENT_NODE||function(e){const t=e.style;if("hidden"===t.visibility||"none"===t.display)return!0;const i=window.getComputedStyle(e);return"hidden"===i.visibility||"none"===i.display}(e))return!1;const i=e,r=function(e){if(!ma(e))return-1;const t=e.getAttribute("tabindex")||0;return Number(t)}(i);let n=r>0;r>=0&&t.push(i);let o=[];return o="slot"===i.localName?i.assignedNodes({flatten:!0}):(i.shadowRoot||i).children,[...o].forEach((e=>{n=_a(e,t)||n})),n}window.addEventListener("keydown",(()=>{la=!0}),{capture:!0}),window.addEventListener("mousedown",(()=>{la=!1}),{capture:!0});
1557
1557
  /**
1558
1558
  * @license
1559
1559
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1560
1560
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1561
1561
  */
1562
- const ma=rn((e=>class extends e{get _keyboardActive(){return aa()}ready(){this.addEventListener("focusin",(e=>{this._shouldSetFocus(e)&&this._setFocused(!0)})),this.addEventListener("focusout",(e=>{this._shouldRemoveFocus(e)&&this._setFocused(!1)})),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(e){this.toggleAttribute("focused",e),this.toggleAttribute("focus-ring",e&&this._keyboardActive)}_shouldSetFocus(e){return!0}_shouldRemoveFocus(e){return!0}})),pa=e=>class extends(ia(e)){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(e,t){super._disabledChanged(e,t),e?(void 0!==this.tabindex&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):t&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(e){this.disabled&&-1!==e&&(this._lastTabIndex=e,this.tabindex=-1)}}
1562
+ const fa=rn((e=>class extends e{get _keyboardActive(){return ca()}ready(){this.addEventListener("focusin",(e=>{this._shouldSetFocus(e)&&this._setFocused(!0)})),this.addEventListener("focusout",(e=>{this._shouldRemoveFocus(e)&&this._setFocused(!1)})),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(e){this.toggleAttribute("focused",e),this.toggleAttribute("focus-ring",e&&this._keyboardActive)}_shouldSetFocus(e){return!0}_shouldRemoveFocus(e){return!0}})),va=e=>class extends(oa(e)){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(e,t){super._disabledChanged(e,t),e?(void 0!==this.tabindex&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):t&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(e){this.disabled&&-1!==e&&(this._lastTabIndex=e,this.tabindex=-1)}}
1563
1563
  /**
1564
1564
  * @license
1565
1565
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1566
1566
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1567
- */,_a=rn((e=>class extends(ma(pa(e))){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame((()=>{this.focus(),this.setAttribute("focus-ring","")}))}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus()}blur(){this.focusElement&&this.focusElement.blur()}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(e,t){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):t&&this._removeFocusListeners(t)}_addFocusListeners(e){e.addEventListener("blur",this._boundOnBlur),e.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(e){e.removeEventListener("blur",this._boundOnBlur),e.removeEventListener("focus",this._boundOnFocus)}_onFocus(e){e.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(e){e.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(e){return e.target===this.focusElement}_shouldRemoveFocus(e){return e.target===this.focusElement}_disabledChanged(e,t){super._disabledChanged(e,t),this.focusElement&&(this.focusElement.disabled=e),e&&this.blur()}_tabindexChanged(e){this.__forwardTabIndex(e)}__forwardTabIndex(e){void 0!==e&&this.focusElement&&(this.focusElement.tabIndex=e,-1!==e&&(this.tabindex=void 0)),this.disabled&&e&&(-1!==e&&(this._lastTabIndex=e),this.tabindex=void 0)}})),fa=rn((e=>class extends e{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(e){e&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated())}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`)}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`)}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach((e=>{this._delegateAttribute(e,this[e])}))}_ensurePropsDelegated(){this.constructor.delegateProps.forEach((e=>{this._delegateProperty(e,this[e])}))}_delegateAttrsChanged(...e){this.constructor.delegateAttrs.forEach(((t,i)=>{this._delegateAttribute(t,e[i])}))}_delegatePropsChanged(...e){this.constructor.delegateProps.forEach(((t,i)=>{this._delegateProperty(t,e[i])}))}_delegateAttribute(e,t){this.stateTarget&&("invalid"===e&&this._delegateAttribute("aria-invalid",!!t&&"true"),"boolean"==typeof t?this.stateTarget.toggleAttribute(e,t):t?this.stateTarget.setAttribute(e,t):this.stateTarget.removeAttribute(e))}_delegateProperty(e,t){this.stateTarget&&(this.stateTarget[e]=t)}})),va=rn((e=>class extends e{static get properties(){return{inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0,sync:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this)}get _hasValue(){return null!=this.value&&""!==this.value}get _inputElementValueProperty(){return"value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(e){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=e)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(e){e.addEventListener("input",this._boundOnInput),e.addEventListener("change",this._boundOnChange)}_removeInputListeners(e){e.removeEventListener("input",this._boundOnInput),e.removeEventListener("change",this._boundOnChange)}_forwardInputValue(e){this.inputElement&&(this._inputElementValue=null!=e?e:"")}_inputElementChanged(e,t){e?this._addInputListeners(e):t&&this._removeInputListeners(t)}_hasInputValueChanged(e,t){(e||t)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(e){this._setHasInputValue(e),this._onInput(e)}_onInput(e){const t=e.composedPath()[0];this.__userInput=e.isTrusted,this.value=t.value,this.__userInput=!1}_onChange(e){}_toggleHasValue(e){this.toggleAttribute("has-value",e)}_valueChanged(e,t){this._toggleHasValue(this._hasValue),(""!==e||void 0!==t)&&(this.__userInput||this._forwardInputValue(e))}_setHasInputValue(e){const t=e.composedPath()[0];this._hasInputValue=t.value.length>0}})),ga=rn((e=>class extends(fa(ia(va(e)))){static get properties(){return{checked:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0}}}static get delegateProps(){return[...super.delegateProps,"checked"]}_onChange(e){this._toggleChecked(e.target.checked)}_toggleChecked(e){this.checked=e}})),Ea=new Map;
1567
+ */,ga=rn((e=>class extends(fa(va(e))){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame((()=>{this.focus(),this.setAttribute("focus-ring","")}))}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus()}blur(){this.focusElement&&this.focusElement.blur()}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(e,t){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):t&&this._removeFocusListeners(t)}_addFocusListeners(e){e.addEventListener("blur",this._boundOnBlur),e.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(e){e.removeEventListener("blur",this._boundOnBlur),e.removeEventListener("focus",this._boundOnFocus)}_onFocus(e){e.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(e){e.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(e){return e.target===this.focusElement}_shouldRemoveFocus(e){return e.target===this.focusElement}_disabledChanged(e,t){super._disabledChanged(e,t),this.focusElement&&(this.focusElement.disabled=e),e&&this.blur()}_tabindexChanged(e){this.__forwardTabIndex(e)}__forwardTabIndex(e){void 0!==e&&this.focusElement&&(this.focusElement.tabIndex=e,-1!==e&&(this.tabindex=void 0)),this.disabled&&e&&(-1!==e&&(this._lastTabIndex=e),this.tabindex=void 0)}})),Ea=rn((e=>class extends e{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(e){e&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated())}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`)}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`)}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach((e=>{this._delegateAttribute(e,this[e])}))}_ensurePropsDelegated(){this.constructor.delegateProps.forEach((e=>{this._delegateProperty(e,this[e])}))}_delegateAttrsChanged(...e){this.constructor.delegateAttrs.forEach(((t,i)=>{this._delegateAttribute(t,e[i])}))}_delegatePropsChanged(...e){this.constructor.delegateProps.forEach(((t,i)=>{this._delegateProperty(t,e[i])}))}_delegateAttribute(e,t){this.stateTarget&&("invalid"===e&&this._delegateAttribute("aria-invalid",!!t&&"true"),"boolean"==typeof t?this.stateTarget.toggleAttribute(e,t):t?this.stateTarget.setAttribute(e,t):this.stateTarget.removeAttribute(e))}_delegateProperty(e,t){this.stateTarget&&(this.stateTarget[e]=t)}})),ba=rn((e=>class extends e{static get properties(){return{inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0,sync:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this)}get _hasValue(){return null!=this.value&&""!==this.value}get _inputElementValueProperty(){return"value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(e){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=e)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(e){e.addEventListener("input",this._boundOnInput),e.addEventListener("change",this._boundOnChange)}_removeInputListeners(e){e.removeEventListener("input",this._boundOnInput),e.removeEventListener("change",this._boundOnChange)}_forwardInputValue(e){this.inputElement&&(this._inputElementValue=null!=e?e:"")}_inputElementChanged(e,t){e?this._addInputListeners(e):t&&this._removeInputListeners(t)}_hasInputValueChanged(e,t){(e||t)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(e){this._setHasInputValue(e),this._onInput(e)}_onInput(e){const t=e.composedPath()[0];this.__userInput=e.isTrusted,this.value=t.value,this.__userInput=!1}_onChange(e){}_toggleHasValue(e){this.toggleAttribute("has-value",e)}_valueChanged(e,t){this._toggleHasValue(this._hasValue),(""!==e||void 0!==t)&&(this.__userInput||this._forwardInputValue(e))}_setHasInputValue(e){const t=e.composedPath()[0];this._hasInputValue=t.value.length>0}})),ya=rn((e=>class extends(Ea(oa(ba(e)))){static get properties(){return{checked:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0}}}static get delegateProps(){return[...super.delegateProps,"checked"]}_onChange(e){this._toggleChecked(e.target.checked)}_toggleChecked(e){this.checked=e}})),wa=new Map;
1568
1568
  /**
1569
1569
  * @license
1570
1570
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1571
1571
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1572
- */function ba(e){return Ea.has(e)||Ea.set(e,new WeakMap),Ea.get(e)}function ya(e,t){e&&e.removeAttribute(t)}function wa(e,t){if(!e||!t)return;const i=ba(t);if(i.has(e))return;const r=Es(e.getAttribute(t));i.set(e,new Set(r))}function ka(e,t,i={newId:null,oldId:null,fromUser:!1}){if(!e||!t)return;const{newId:r,oldId:n,fromUser:o}=i,s=ba(t),a=s.get(e);if(!o&&a)return n&&a.delete(n),void(r&&a.add(r));o&&(a?r||s.delete(e):wa(e,t),ya(e,t)),function(e,t,i){const r=Es(e.getAttribute(t));r.delete(i),0!==r.size?e.setAttribute(t,bs(r)):e.removeAttribute(t)}(e,t,n);const l=r||bs(a);l&&ys(e,t,l)}
1572
+ */function ka(e){return wa.has(e)||wa.set(e,new WeakMap),wa.get(e)}function xa(e,t){e&&e.removeAttribute(t)}function Sa(e,t){if(!e||!t)return;const i=ka(t);if(i.has(e))return;const r=Es(e.getAttribute(t));i.set(e,new Set(r))}function Aa(e,t,i={newId:null,oldId:null,fromUser:!1}){if(!e||!t)return;const{newId:r,oldId:n,fromUser:o}=i,s=ka(t),a=s.get(e);if(!o&&a)return n&&a.delete(n),void(r&&a.add(r));o&&(a?r||s.delete(e):Sa(e,t),xa(e,t)),function(e,t,i){const r=Es(e.getAttribute(t));r.delete(i),0!==r.size?e.setAttribute(t,bs(r)):e.removeAttribute(t)}(e,t,n);const l=r||bs(a);l&&ys(e,t,l)}
1573
1573
  /**
1574
1574
  * @license
1575
1575
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1576
1576
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1577
1577
  */
1578
- class xa{constructor(e){this.host=e,this.__required=!1}setTarget(e){this.__target=e,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId),null!=this.__labelIdFromUser&&this.__setLabelIdToAriaAttribute(this.__labelIdFromUser,this.__labelIdFromUser,!0),this.__setErrorIdToAriaAttribute(this.__errorId),this.__setHelperIdToAriaAttribute(this.__helperId),this.setAriaLabel(this.__label)}setRequired(e){this.__setAriaRequiredAttribute(e),this.__required=e}setAriaLabel(e){this.__setAriaLabelToAttribute(e),this.__label=e}setLabelId(e,t=!1){this.__setLabelIdToAriaAttribute(e,t?this.__labelIdFromUser:this.__labelId,t),t?this.__labelIdFromUser=e:this.__labelId=e}setErrorId(e){this.__setErrorIdToAriaAttribute(e,this.__errorId),this.__errorId=e}setHelperId(e){this.__setHelperIdToAriaAttribute(e,this.__helperId),this.__helperId=e}__setAriaLabelToAttribute(e){this.__target&&(e?(function(e,t){wa(e,t),ya(e,t)}(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",e)):this.__label&&(function(e,t){if(!e)return;const i=ba(t),r=i.get(e);r&&0!==r.size?ys(e,t,bs(r)):e.removeAttribute(t),i.delete(e)}(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(e,t,i){ka(this.__target,"aria-labelledby",{newId:e,oldId:t,fromUser:i})}__setErrorIdToAriaAttribute(e,t){ka(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setHelperIdToAriaAttribute(e,t){ka(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setAriaRequiredAttribute(e){this.__target&&(["input","textarea"].includes(this.__target.localName)||(e?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}}
1578
+ class Ia{constructor(e){this.host=e,this.__required=!1}setTarget(e){this.__target=e,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId),null!=this.__labelIdFromUser&&this.__setLabelIdToAriaAttribute(this.__labelIdFromUser,this.__labelIdFromUser,!0),this.__setErrorIdToAriaAttribute(this.__errorId),this.__setHelperIdToAriaAttribute(this.__helperId),this.setAriaLabel(this.__label)}setRequired(e){this.__setAriaRequiredAttribute(e),this.__required=e}setAriaLabel(e){this.__setAriaLabelToAttribute(e),this.__label=e}setLabelId(e,t=!1){this.__setLabelIdToAriaAttribute(e,t?this.__labelIdFromUser:this.__labelId,t),t?this.__labelIdFromUser=e:this.__labelId=e}setErrorId(e){this.__setErrorIdToAriaAttribute(e,this.__errorId),this.__errorId=e}setHelperId(e){this.__setHelperIdToAriaAttribute(e,this.__helperId),this.__helperId=e}__setAriaLabelToAttribute(e){this.__target&&(e?(function(e,t){Sa(e,t),xa(e,t)}(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",e)):this.__label&&(function(e,t){if(!e)return;const i=ka(t),r=i.get(e);r&&0!==r.size?ys(e,t,bs(r)):e.removeAttribute(t),i.delete(e)}(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(e,t,i){Aa(this.__target,"aria-labelledby",{newId:e,oldId:t,fromUser:i})}__setErrorIdToAriaAttribute(e,t){Aa(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setHelperIdToAriaAttribute(e,t){Aa(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setAriaRequiredAttribute(e){this.__target&&(["input","textarea"].includes(this.__target.localName)||(e?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}}
1579
1579
  /**
1580
1580
  * @license
1581
1581
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1582
1582
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1583
- */const Sa=rn((e=>"function"==typeof e.prototype.addController?e:class extends e{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach((e=>{e.hostConnected&&e.hostConnected()}))}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach((e=>{e.hostDisconnected&&e.hostDisconnected()}))}addController(e){this.__controllers.add(e),void 0!==this.$&&this.isConnected&&e.hostConnected&&e.hostConnected()}removeController(e){this.__controllers.delete(e)}})),Aa=document.createElement("div");
1583
+ */const Ca=rn((e=>"function"==typeof e.prototype.addController?e:class extends e{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach((e=>{e.hostConnected&&e.hostConnected()}))}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach((e=>{e.hostDisconnected&&e.hostDisconnected()}))}addController(e){this.__controllers.add(e),void 0!==this.$&&this.isConnected&&e.hostConnected&&e.hostConnected()}removeController(e){this.__controllers.delete(e)}})),Da=document.createElement("div");
1584
1584
  /**
1585
1585
  * @license
1586
1586
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
1587
1587
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1588
- */let Ia;Aa.style.position="fixed",Aa.style.clip="rect(0px, 0px, 0px, 0px)",Aa.setAttribute("aria-live","polite"),document.body.appendChild(Aa);
1588
+ */let Ta;Da.style.position="fixed",Da.style.clip="rect(0px, 0px, 0px, 0px)",Da.setAttribute("aria-live","polite"),document.body.appendChild(Da);
1589
1589
  /**
1590
1590
  * @license
1591
1591
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
1592
1592
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1593
1593
  */
1594
- class Ca extends Ss{constructor(e,t,i,r={}){super(e,t,i,ri(ii({},r),{useUniqueId:!0}))}initCustomNode(e){this.__updateNodeId(e),this.__notifyChange(e)}teardownNode(e){const t=this.getSlotChild();t&&t!==this.defaultNode?this.__notifyChange(t):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){const e=super.attachDefaultNode();return e&&this.__updateNodeId(e),e}restoreDefaultNode(){}updateDefaultNode(e){this.__notifyChange(e)}observeNode(e){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver((e=>{e.forEach((e=>{const t=e.target,i=t===this.node;"attributes"===e.type?i&&this.__updateNodeId(t):(i||t.parentElement===this.node)&&this.__notifyChange(this.node)}))})),this.__nodeObserver.observe(e,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(e){return!!e&&(e.nodeType===Node.ELEMENT_NODE&&(customElements.get(e.localName)||e.children.length>0)||e.textContent&&""!==e.textContent.trim())}__notifyChange(e){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(e),node:e}}))}__updateNodeId(e){e.nodeType===Node.ELEMENT_NODE&&(!this.multiple||!this.nodes||e===this.nodes[0])&&!e.id&&(e.id=this.defaultId)}}
1594
+ class Ra extends Ss{constructor(e,t,i,r={}){super(e,t,i,ri(ii({},r),{useUniqueId:!0}))}initCustomNode(e){this.__updateNodeId(e),this.__notifyChange(e)}teardownNode(e){const t=this.getSlotChild();t&&t!==this.defaultNode?this.__notifyChange(t):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){const e=super.attachDefaultNode();return e&&this.__updateNodeId(e),e}restoreDefaultNode(){}updateDefaultNode(e){this.__notifyChange(e)}observeNode(e){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver((e=>{e.forEach((e=>{const t=e.target,i=t===this.node;"attributes"===e.type?i&&this.__updateNodeId(t):(i||t.parentElement===this.node)&&this.__notifyChange(this.node)}))})),this.__nodeObserver.observe(e,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(e){return!!e&&(e.nodeType===Node.ELEMENT_NODE&&(customElements.get(e.localName)||e.children.length>0)||e.textContent&&""!==e.textContent.trim())}__notifyChange(e){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(e),node:e}}))}__updateNodeId(e){e.nodeType===Node.ELEMENT_NODE&&(!this.multiple||!this.nodes||e===this.nodes[0])&&!e.id&&(e.id=this.defaultId)}}
1595
1595
  /**
1596
1596
  * @license
1597
1597
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1598
1598
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1599
- */class Da extends Ca{constructor(e){super(e,"error-message","div")}setErrorMessage(e){this.errorMessage=e,this.updateDefaultNode(this.node)}setInvalid(e){this.invalid=e,this.updateDefaultNode(this.node)}initAddedNode(e){e!==this.defaultNode&&this.initCustomNode(e)}initNode(e){this.updateDefaultNode(e)}initCustomNode(e){e.textContent&&!this.errorMessage&&(this.errorMessage=e.textContent.trim()),super.initCustomNode(e)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(e){const{errorMessage:t,invalid:i}=this,r=!(!i||!t||""===t.trim());e&&(e.textContent=r?t:"",e.hidden=!r,r&&function(e,t={}){const i=t.mode||"polite",r=void 0===t.timeout?150:t.timeout;"alert"===i?(Aa.removeAttribute("aria-live"),Aa.removeAttribute("role"),Ia=ls.debounce(Ia,ns,(()=>{Aa.setAttribute("role","alert")}))):(Ia&&Ia.cancel(),Aa.removeAttribute("role"),Aa.setAttribute("aria-live",i)),Aa.textContent="",setTimeout((()=>{Aa.textContent=e}),r)}(t,{mode:"assertive"})),super.updateDefaultNode(e)}}
1599
+ */class Na extends Ra{constructor(e){super(e,"error-message","div")}setErrorMessage(e){this.errorMessage=e,this.updateDefaultNode(this.node)}setInvalid(e){this.invalid=e,this.updateDefaultNode(this.node)}initAddedNode(e){e!==this.defaultNode&&this.initCustomNode(e)}initNode(e){this.updateDefaultNode(e)}initCustomNode(e){e.textContent&&!this.errorMessage&&(this.errorMessage=e.textContent.trim()),super.initCustomNode(e)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(e){const{errorMessage:t,invalid:i}=this,r=!(!i||!t||""===t.trim());e&&(e.textContent=r?t:"",e.hidden=!r,r&&function(e,t={}){const i=t.mode||"polite",r=void 0===t.timeout?150:t.timeout;"alert"===i?(Da.removeAttribute("aria-live"),Da.removeAttribute("role"),Ta=ls.debounce(Ta,ns,(()=>{Da.setAttribute("role","alert")}))):(Ta&&Ta.cancel(),Da.removeAttribute("role"),Da.setAttribute("aria-live",i)),Da.textContent="",setTimeout((()=>{Da.textContent=e}),r)}(t,{mode:"assertive"})),super.updateDefaultNode(e)}}
1600
1600
  /**
1601
1601
  * @license
1602
1602
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1603
1603
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1604
- */class Ta extends Ca{constructor(e){super(e,"helper",null)}setHelperText(e){this.helperText=e,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{helperText:e}=this;if(e&&""!==e.trim()){this.tagName="div";const e=this.attachDefaultNode();this.observeNode(e)}}updateDefaultNode(e){e&&(e.textContent=this.helperText),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}
1604
+ */class Oa extends Ra{constructor(e){super(e,"helper",null)}setHelperText(e){this.helperText=e,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{helperText:e}=this;if(e&&""!==e.trim()){this.tagName="div";const e=this.attachDefaultNode();this.observeNode(e)}}updateDefaultNode(e){e&&(e.textContent=this.helperText),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}
1605
1605
  /**
1606
1606
  * @license
1607
1607
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1608
1608
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1609
- */class Ra extends Ca{constructor(e){super(e,"label","label")}setLabel(e){this.label=e,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{label:e}=this;if(e&&""!==e.trim()){const e=this.attachDefaultNode();this.observeNode(e)}}updateDefaultNode(e){e&&(e.textContent=this.label),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}
1609
+ */class za extends Ra{constructor(e){super(e,"label","label")}setLabel(e){this.label=e,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{label:e}=this;if(e&&""!==e.trim()){const e=this.attachDefaultNode();this.observeNode(e)}}updateDefaultNode(e){e&&(e.textContent=this.label),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}
1610
1610
  /**
1611
1611
  * @license
1612
1612
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1613
1613
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1614
- */const Na=rn((e=>class extends(Sa(e)){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new Ra(this),this._labelController.addEventListener("slot-content-changed",(e=>{this.toggleAttribute("has-label",e.detail.hasContent)}))}get _labelId(){const e=this._labelNode;return e&&e.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(e){this._labelController.setLabel(e)}})),Oa=rn((e=>class extends e{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const e=this.checkValidity();return this._setInvalid(!e),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:e}})),e}checkValidity(){return!this.required||!!this.value}_setInvalid(e){this._shouldSetInvalid(e)&&(this.invalid=e)}_shouldSetInvalid(e){return!0}})),za=e=>class extends(Oa(Na(Sa(e)))){static get properties(){return{ariaTarget:{type:Object,observer:"_ariaTargetChanged"},errorMessage:{type:String,observer:"_errorMessageChanged"},helperText:{type:String,observer:"_helperTextChanged"},accessibleName:{type:String,observer:"_accessibleNameChanged"},accessibleNameRef:{type:String,observer:"_accessibleNameRefChanged"}}}static get observers(){return["_invalidChanged(invalid)","_requiredChanged(required)"]}constructor(){super(),this._fieldAriaController=new xa(this),this._helperController=new Ta(this),this._errorController=new Da(this),this._errorController.addEventListener("slot-content-changed",(e=>{this.toggleAttribute("has-error-message",e.detail.hasContent)})),this._labelController.addEventListener("slot-content-changed",(e=>{const{hasContent:t,node:i}=e.detail;this.__labelChanged(t,i)})),this._helperController.addEventListener("slot-content-changed",(e=>{const{hasContent:t,node:i}=e.detail;this.toggleAttribute("has-helper",t),this.__helperChanged(t,i)}))}get _errorNode(){return this._errorController.node}get _helperNode(){return this._helperController.node}ready(){super.ready(),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController)}__helperChanged(e,t){this._fieldAriaController.setHelperId(e?t.id:null)}_accessibleNameChanged(e){this._fieldAriaController.setAriaLabel(e)}_accessibleNameRefChanged(e){this._fieldAriaController.setLabelId(e,!0)}__labelChanged(e,t){this._fieldAriaController.setLabelId(e?t.id:null)}_errorMessageChanged(e){this._errorController.setErrorMessage(e)}_helperTextChanged(e){this._helperController.setHelperText(e)}_ariaTargetChanged(e){e&&this._fieldAriaController.setTarget(e)}_requiredChanged(e){this._fieldAriaController.setRequired(e)}_invalidChanged(e){this._errorController.setInvalid(e),setTimeout((()=>{if(e){const e=this._errorNode;this._fieldAriaController.setErrorId(e&&e.id)}else this._fieldAriaController.setErrorId(null)}))}}
1614
+ */const Ga=rn((e=>class extends(Ca(e)){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new za(this),this._labelController.addEventListener("slot-content-changed",(e=>{this.toggleAttribute("has-label",e.detail.hasContent)}))}get _labelId(){const e=this._labelNode;return e&&e.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(e){this._labelController.setLabel(e)}})),Ma=rn((e=>class extends e{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const e=this.checkValidity();return this._setInvalid(!e),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:e}})),e}checkValidity(){return!this.required||!!this.value}_setInvalid(e){this._shouldSetInvalid(e)&&(this.invalid=e)}_shouldSetInvalid(e){return!0}})),Ua=e=>class extends(Ma(Ga(Ca(e)))){static get properties(){return{ariaTarget:{type:Object,observer:"_ariaTargetChanged"},errorMessage:{type:String,observer:"_errorMessageChanged"},helperText:{type:String,observer:"_helperTextChanged"},accessibleName:{type:String,observer:"_accessibleNameChanged"},accessibleNameRef:{type:String,observer:"_accessibleNameRefChanged"}}}static get observers(){return["_invalidChanged(invalid)","_requiredChanged(required)"]}constructor(){super(),this._fieldAriaController=new Ia(this),this._helperController=new Oa(this),this._errorController=new Na(this),this._errorController.addEventListener("slot-content-changed",(e=>{this.toggleAttribute("has-error-message",e.detail.hasContent)})),this._labelController.addEventListener("slot-content-changed",(e=>{const{hasContent:t,node:i}=e.detail;this.__labelChanged(t,i)})),this._helperController.addEventListener("slot-content-changed",(e=>{const{hasContent:t,node:i}=e.detail;this.toggleAttribute("has-helper",t),this.__helperChanged(t,i)}))}get _errorNode(){return this._errorController.node}get _helperNode(){return this._helperController.node}ready(){super.ready(),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController)}__helperChanged(e,t){this._fieldAriaController.setHelperId(e?t.id:null)}_accessibleNameChanged(e){this._fieldAriaController.setAriaLabel(e)}_accessibleNameRefChanged(e){this._fieldAriaController.setLabelId(e,!0)}__labelChanged(e,t){this._fieldAriaController.setLabelId(e?t.id:null)}_errorMessageChanged(e){this._errorController.setErrorMessage(e)}_helperTextChanged(e){this._helperController.setHelperText(e)}_ariaTargetChanged(e){e&&this._fieldAriaController.setTarget(e)}_requiredChanged(e){this._fieldAriaController.setRequired(e)}_invalidChanged(e){this._errorController.setInvalid(e),setTimeout((()=>{if(e){const e=this._errorNode;this._fieldAriaController.setErrorId(e&&e.id)}else this._fieldAriaController.setErrorId(null)}))}}
1615
1615
  /**
1616
1616
  * @license
1617
1617
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
@@ -1621,17 +1621,17 @@ class Ca extends Ss{constructor(e,t,i,r={}){super(e,t,i,ri(ii({},r),{useUniqueId
1621
1621
  * @license
1622
1622
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1623
1623
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1624
- */class Ga extends Ss{constructor(e,t,i={}){const{uniqueIdPrefix:r}=i;super(e,"input","input",{initializer:(e,i)=>{i.value&&(e.value=i.value),i.type&&e.setAttribute("type",i.type),e.id=this.defaultId,"function"==typeof t&&t(e)},useUniqueId:!0,uniqueIdPrefix:r})}}
1624
+ */class Ba extends Ss{constructor(e,t,i={}){const{uniqueIdPrefix:r}=i;super(e,"input","input",{initializer:(e,i)=>{i.value&&(e.value=i.value),i.type&&e.setAttribute("type",i.type),e.id=this.defaultId,"function"==typeof t&&t(e)},useUniqueId:!0,uniqueIdPrefix:r})}}
1625
1625
  /**
1626
1626
  * @license
1627
1627
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1628
1628
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1629
- */class Ma{constructor(e,t){this.input=e,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),t.addEventListener("slot-content-changed",(e=>{this.__initLabel(e.detail.node)})),this.__initLabel(t.node)}__initLabel(e){e&&(e.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&e.setAttribute("for",this.input.id))}__preventDuplicateLabelClick(){const e=t=>{t.stopImmediatePropagation(),this.input.removeEventListener("click",e)};this.input.addEventListener("click",e)}}
1629
+ */class Pa{constructor(e,t){this.input=e,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),t.addEventListener("slot-content-changed",(e=>{this.__initLabel(e.detail.node)})),this.__initLabel(t.node)}__initLabel(e){e&&(e.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&e.setAttribute("for",this.input.id))}__preventDuplicateLabelClick(){const e=t=>{t.stopImmediatePropagation(),this.input.removeEventListener("click",e)};this.input.addEventListener("click",e)}}
1630
1630
  /**
1631
1631
  * @license
1632
1632
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1633
1633
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1634
- */const Ua=e=>class extends(za(ga(_a(na(e))))){static get properties(){return{indeterminate:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0},name:{type:String,value:""},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},tabindex:{type:Number,value:0,reflectToAttribute:!0}}}static get observers(){return["__readonlyChanged(readonly, inputElement)"]}static get delegateProps(){return[...super.delegateProps,"indeterminate"]}static get delegateAttrs(){return[...super.delegateAttrs,"name","invalid","required"]}constructor(){super(),this._setType("checkbox"),this._boundOnInputClick=this._onInputClick.bind(this),this.value="on"}ready(){super.ready(),this.addController(new Ga(this,(e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e}))),this.addController(new Ma(this.inputElement,this._labelController)),this._createMethodObserver("_checkedChanged(checked)")}_shouldSetActive(e){return!this.readonly&&"a"!==e.target.localName&&e.target!==this._helperNode&&e.target!==this._errorNode&&super._shouldSetActive(e)}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("click",this._boundOnInputClick)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("click",this._boundOnInputClick)}_onInputClick(e){this.readonly&&e.preventDefault()}__readonlyChanged(e,t){t&&(e?t.setAttribute("aria-readonly","true"):t.removeAttribute("aria-readonly"))}_toggleChecked(e){this.indeterminate&&(this.indeterminate=!1),super._toggleChecked(e)}checkValidity(){return!this.required||!!this.checked}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}_checkedChanged(e){(e||this.__oldChecked)&&this.validate(),this.__oldChecked=e}_requiredChanged(e){super._requiredChanged(e),!1===e&&this.validate()}_onRequiredIndicatorClick(){this._labelNode.click()}}
1634
+ */const La=e=>class extends(Ua(ya(ga(aa(e))))){static get properties(){return{indeterminate:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0},name:{type:String,value:""},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},tabindex:{type:Number,value:0,reflectToAttribute:!0}}}static get observers(){return["__readonlyChanged(readonly, inputElement)"]}static get delegateProps(){return[...super.delegateProps,"indeterminate"]}static get delegateAttrs(){return[...super.delegateAttrs,"name","invalid","required"]}constructor(){super(),this._setType("checkbox"),this._boundOnInputClick=this._onInputClick.bind(this),this.value="on"}ready(){super.ready(),this.addController(new Ba(this,(e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e}))),this.addController(new Pa(this.inputElement,this._labelController)),this._createMethodObserver("_checkedChanged(checked)")}_shouldSetActive(e){return!this.readonly&&"a"!==e.target.localName&&e.target!==this._helperNode&&e.target!==this._errorNode&&super._shouldSetActive(e)}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("click",this._boundOnInputClick)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("click",this._boundOnInputClick)}_onInputClick(e){this.readonly&&e.preventDefault()}__readonlyChanged(e,t){t&&(e?t.setAttribute("aria-readonly","true"):t.removeAttribute("aria-readonly"))}_toggleChecked(e){this.indeterminate&&(this.indeterminate=!1),super._toggleChecked(e)}checkValidity(){return!this.required||!!this.checked}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}_checkedChanged(e){(e||this.__oldChecked)&&this.validate(),this.__oldChecked=e}_requiredChanged(e){super._requiredChanged(e),!1===e&&this.validate()}_onRequiredIndicatorClick(){this._labelNode.click()}}
1635
1635
  /**
1636
1636
  * @license
1637
1637
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
@@ -1730,7 +1730,7 @@ Sr("vaadin-checkbox",mi`
1730
1730
  outline-width: 2px;
1731
1731
  }
1732
1732
  }
1733
- `,{moduleId:"vaadin-checkbox-styles"});class Ba extends(Ua(gs(Tr(Ko)))){static get is(){return"vaadin-checkbox"}static get template(){return $o`
1733
+ `,{moduleId:"vaadin-checkbox-styles"});class ja extends(La(gs(Tr(Ko)))){static get is(){return"vaadin-checkbox"}static get template(){return $o`
1734
1734
  <div class="vaadin-checkbox-container">
1735
1735
  <div part="checkbox" aria-hidden="true"></div>
1736
1736
  <slot name="input"></slot>
@@ -1746,13 +1746,13 @@ Sr("vaadin-checkbox",mi`
1746
1746
  </div>
1747
1747
  </div>
1748
1748
  <slot name="tooltip"></slot>
1749
- `}ready(){super.ready(),this._tooltipController=new As(this),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}si(Ba);
1749
+ `}ready(){super.ready(),this._tooltipController=new As(this),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}si(ja);
1750
1750
  /**
1751
1751
  * @license
1752
1752
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1753
1753
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1754
1754
  */
1755
- const Pa=mi`
1755
+ const Fa=mi`
1756
1756
  :host {
1757
1757
  --_helper-spacing: var(--vaadin-input-field-helper-spacing, 0.4em);
1758
1758
  }
@@ -1813,7 +1813,7 @@ const Pa=mi`
1813
1813
  * @license
1814
1814
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1815
1815
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1816
- */,La=mi`
1816
+ */,qa=mi`
1817
1817
  [part='label'] {
1818
1818
  align-self: flex-start;
1819
1819
  color: var(--vaadin-input-field-label-color, var(--lumo-secondary-text-color));
@@ -1925,7 +1925,7 @@ const Pa=mi`
1925
1925
  margin-left: 0;
1926
1926
  margin-right: calc(var(--lumo-border-radius-m) / 4);
1927
1927
  }
1928
- `;Sr("",La,{moduleId:"lumo-required-field"}),Sr("vaadin-checkbox-group",[La,Pa,mi`
1928
+ `;Sr("",qa,{moduleId:"lumo-required-field"}),Sr("vaadin-checkbox-group",[qa,Fa,mi`
1929
1929
  :host {
1930
1930
  color: var(--lumo-body-text-color);
1931
1931
  font-size: var(--lumo-font-size-m);
@@ -1974,7 +1974,7 @@ const Pa=mi`
1974
1974
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
1975
1975
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1976
1976
  */
1977
- const ja=e=>class extends(za(ma(ia(e)))){static get properties(){return{value:{type:Array,value:()=>[],notify:!0,sync:!0,observer:"__valueChanged"},readonly:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__readonlyChanged"}}}constructor(){super(),this.__registerCheckbox=this.__registerCheckbox.bind(this),this.__unregisterCheckbox=this.__unregisterCheckbox.bind(this),this.__onCheckboxCheckedChanged=this.__onCheckboxCheckedChanged.bind(this),this._tooltipController=new As(this),this._tooltipController.addEventListener("tooltip-changed",(e=>{const t=e.detail.node;if(t&&t.isConnected){const e=this.__checkboxes.map((e=>e.inputElement));this._tooltipController.setAriaTarget(e)}else this._tooltipController.setAriaTarget([])}))}get __checkboxes(){return this.__filterCheckboxes([...this.children])}ready(){super.ready(),this.ariaTarget=this,this.setAttribute("role","group");const e=this.shadowRoot.querySelector("slot:not([name])");this._observer=new ws(e,(({addedNodes:e,removedNodes:t})=>{const i=this.__filterCheckboxes(e),r=this.__filterCheckboxes(t);i.forEach(this.__registerCheckbox),r.forEach(this.__unregisterCheckbox);const n=this.__checkboxes.map((e=>e.inputElement));this._tooltipController.setAriaTarget(n),this.__warnOfCheckboxesWithoutValue(i)})),this.addController(this._tooltipController)}checkValidity(){return!this.required||!!(this.value&&this.value.length>0)}__filterCheckboxes(e){return e.filter((e=>e.nodeType===Node.ELEMENT_NODE&&"vaadin-checkbox"===e.localName))}__warnOfCheckboxesWithoutValue(e){e.some((e=>{const{value:t}=e;return!(e.hasAttribute("value")||t&&"on"!==t)}))&&console.warn("Please provide the value attribute to all the checkboxes inside the checkbox group.")}__registerCheckbox(e){e.addEventListener("checked-changed",this.__onCheckboxCheckedChanged),this.disabled&&(e.disabled=!0),this.readonly&&(e.readonly=!0),e.checked?this.__addCheckboxToValue(e.value):this.value&&this.value.includes(e.value)&&(e.checked=!0)}__unregisterCheckbox(e){e.removeEventListener("checked-changed",this.__onCheckboxCheckedChanged),e.checked&&this.__removeCheckboxFromValue(e.value)}_disabledChanged(e,t){super._disabledChanged(e,t),(e||void 0!==t)&&t!==e&&this.__checkboxes.forEach((t=>{t.disabled=e}))}__addCheckboxToValue(e){this.value?this.value.includes(e)||(this.value=[...this.value,e]):this.value=[e]}__removeCheckboxFromValue(e){this.value&&this.value.includes(e)&&(this.value=this.value.filter((t=>t!==e)))}__onCheckboxCheckedChanged(e){const t=e.target;t.checked?this.__addCheckboxToValue(t.value):this.__removeCheckboxFromValue(t.value)}__valueChanged(e,t){e&&0===e.length&&void 0===t||(this.toggleAttribute("has-value",e&&e.length>0),this.__checkboxes.forEach((t=>{t.checked=e&&e.includes(t.value)})),void 0!==t&&this.validate())}__readonlyChanged(e,t){(e||t)&&this.__checkboxes.forEach((t=>{t.readonly=e}))}_shouldRemoveFocus(e){return!this.contains(e.relatedTarget)}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}}
1977
+ const Ha=e=>class extends(Ua(fa(oa(e)))){static get properties(){return{value:{type:Array,value:()=>[],notify:!0,sync:!0,observer:"__valueChanged"},readonly:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__readonlyChanged"}}}constructor(){super(),this.__registerCheckbox=this.__registerCheckbox.bind(this),this.__unregisterCheckbox=this.__unregisterCheckbox.bind(this),this.__onCheckboxCheckedChanged=this.__onCheckboxCheckedChanged.bind(this),this._tooltipController=new As(this),this._tooltipController.addEventListener("tooltip-changed",(e=>{const t=e.detail.node;if(t&&t.isConnected){const e=this.__checkboxes.map((e=>e.inputElement));this._tooltipController.setAriaTarget(e)}else this._tooltipController.setAriaTarget([])}))}get __checkboxes(){return this.__filterCheckboxes([...this.children])}ready(){super.ready(),this.ariaTarget=this,this.setAttribute("role","group");const e=this.shadowRoot.querySelector("slot:not([name])");this._observer=new ws(e,(({addedNodes:e,removedNodes:t})=>{const i=this.__filterCheckboxes(e),r=this.__filterCheckboxes(t);i.forEach(this.__registerCheckbox),r.forEach(this.__unregisterCheckbox);const n=this.__checkboxes.map((e=>e.inputElement));this._tooltipController.setAriaTarget(n),this.__warnOfCheckboxesWithoutValue(i)})),this.addController(this._tooltipController)}checkValidity(){return!this.required||!!(this.value&&this.value.length>0)}__filterCheckboxes(e){return e.filter((e=>e.nodeType===Node.ELEMENT_NODE&&"vaadin-checkbox"===e.localName))}__warnOfCheckboxesWithoutValue(e){e.some((e=>{const{value:t}=e;return!(e.hasAttribute("value")||t&&"on"!==t)}))&&console.warn("Please provide the value attribute to all the checkboxes inside the checkbox group.")}__registerCheckbox(e){e.addEventListener("checked-changed",this.__onCheckboxCheckedChanged),this.disabled&&(e.disabled=!0),this.readonly&&(e.readonly=!0),e.checked?this.__addCheckboxToValue(e.value):this.value&&this.value.includes(e.value)&&(e.checked=!0)}__unregisterCheckbox(e){e.removeEventListener("checked-changed",this.__onCheckboxCheckedChanged),e.checked&&this.__removeCheckboxFromValue(e.value)}_disabledChanged(e,t){super._disabledChanged(e,t),(e||void 0!==t)&&t!==e&&this.__checkboxes.forEach((t=>{t.disabled=e}))}__addCheckboxToValue(e){this.value?this.value.includes(e)||(this.value=[...this.value,e]):this.value=[e]}__removeCheckboxFromValue(e){this.value&&this.value.includes(e)&&(this.value=this.value.filter((t=>t!==e)))}__onCheckboxCheckedChanged(e){const t=e.target;t.checked?this.__addCheckboxToValue(t.value):this.__removeCheckboxFromValue(t.value)}__valueChanged(e,t){e&&0===e.length&&void 0===t||(this.toggleAttribute("has-value",e&&e.length>0),this.__checkboxes.forEach((t=>{t.checked=e&&e.includes(t.value)})),void 0!==t&&this.validate())}__readonlyChanged(e,t){(e||t)&&this.__checkboxes.forEach((t=>{t.readonly=e}))}_shouldRemoveFocus(e){return!this.contains(e.relatedTarget)}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}}
1978
1978
  /**
1979
1979
  * @license
1980
1980
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
@@ -2014,7 +2014,7 @@ Sr("vaadin-checkbox-group",mi`
2014
2014
  :host(:not([has-label])) [part='label'] {
2015
2015
  display: none;
2016
2016
  }
2017
- `,{moduleId:"vaadin-checkbox-group-styles"});class Fa extends(ja(gs(Tr(Ko)))){static get is(){return"vaadin-checkbox-group"}static get template(){return $o`
2017
+ `,{moduleId:"vaadin-checkbox-group-styles"});class Va extends(Ha(gs(Tr(Ko)))){static get is(){return"vaadin-checkbox-group"}static get template(){return $o`
2018
2018
  <div class="vaadin-group-field-container">
2019
2019
  <div part="label">
2020
2020
  <slot name="label"></slot>
@@ -2035,13 +2035,13 @@ Sr("vaadin-checkbox-group",mi`
2035
2035
  </div>
2036
2036
 
2037
2037
  <slot name="tooltip"></slot>
2038
- `}}si(Fa);
2038
+ `}}si(Va);
2039
2039
  /**
2040
2040
  * @license
2041
2041
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2042
2042
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2043
2043
  */
2044
- const qa=mi`
2044
+ const $a=mi`
2045
2045
  :host {
2046
2046
  top: var(--lumo-space-m);
2047
2047
  right: var(--lumo-space-m);
@@ -2106,13 +2106,13 @@ const qa=mi`
2106
2106
  opacity: 1;
2107
2107
  }
2108
2108
  }
2109
- `;Sr("",qa,{moduleId:"lumo-overlay"});
2109
+ `;Sr("",$a,{moduleId:"lumo-overlay"});
2110
2110
  /**
2111
2111
  * @license
2112
2112
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2113
2113
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2114
2114
  */
2115
- const Ha=mi`
2115
+ const Xa=mi`
2116
2116
  :host([opening]),
2117
2117
  :host([closing]) {
2118
2118
  animation: 0.14s lumo-overlay-dummy-animation;
@@ -2142,7 +2142,7 @@ const Ha=mi`
2142
2142
  opacity: 0;
2143
2143
  }
2144
2144
  }
2145
- `;Sr("",Ha,{moduleId:"lumo-menu-overlay-core"});const Va=[qa,Ha,mi`
2145
+ `;Sr("",Xa,{moduleId:"lumo-menu-overlay-core"});const Ka=[$a,Xa,mi`
2146
2146
  /* Small viewport (bottom sheet) styles */
2147
2147
  /* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
2148
2148
  @media (max-width: 450px), (max-height: 450px) {
@@ -2204,7 +2204,7 @@ const Ha=mi`
2204
2204
  transform: translateY(150%);
2205
2205
  }
2206
2206
  }
2207
- `];Sr("",Va,{moduleId:"lumo-menu-overlay"}),Sr("vaadin-date-picker-overlay",[Va,mi`
2207
+ `];Sr("",Ka,{moduleId:"lumo-menu-overlay"}),Sr("vaadin-date-picker-overlay",[Ka,mi`
2208
2208
  [part='overlay'] {
2209
2209
  /*
2210
2210
  Width:
@@ -2249,7 +2249,7 @@ const Ha=mi`
2249
2249
  max-height: 70vh;
2250
2250
  }
2251
2251
  }
2252
- `],{moduleId:"lumo-date-picker-overlay"});const $a=mi`
2252
+ `],{moduleId:"lumo-date-picker-overlay"});const Ya=mi`
2253
2253
  :host {
2254
2254
  /* Sizing */
2255
2255
  --lumo-button-size: var(--lumo-size-m);
@@ -2525,7 +2525,7 @@ const Ha=mi`
2525
2525
  margin-left: 0;
2526
2526
  margin-right: 0;
2527
2527
  }
2528
- `;Sr("vaadin-button",$a,{moduleId:"lumo-button"}),Sr("vaadin-date-picker-year",mi`
2528
+ `;Sr("vaadin-button",Ya,{moduleId:"lumo-button"}),Sr("vaadin-date-picker-year",mi`
2529
2529
  :host([current]) [part='year-number'] {
2530
2530
  color: var(--lumo-primary-text-color);
2531
2531
  }
@@ -3030,7 +3030,7 @@ const Ha=mi`
3030
3030
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3031
3031
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3032
3032
  */
3033
- const Xa=mi`
3033
+ const Wa=mi`
3034
3034
  [part$='button'] {
3035
3035
  flex: none;
3036
3036
  width: 1em;
@@ -3057,13 +3057,13 @@ const Xa=mi`
3057
3057
  font-family: 'lumo-icons';
3058
3058
  display: block;
3059
3059
  }
3060
- `;Sr("",Xa,{moduleId:"lumo-field-button"});
3060
+ `;Sr("",Wa,{moduleId:"lumo-field-button"});
3061
3061
  /**
3062
3062
  * @license
3063
3063
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3064
3064
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3065
3065
  */
3066
- const Ka=[La,Xa,Pa,mi`
3066
+ const Za=[qa,Wa,Fa,mi`
3067
3067
  :host {
3068
3068
  --lumo-text-field-size: var(--lumo-size-m);
3069
3069
  color: var(--vaadin-input-field-value-color, var(--lumo-body-text-color));
@@ -3194,7 +3194,7 @@ const Ka=[La,Xa,Pa,mi`
3194
3194
  [part='clear-button']::before {
3195
3195
  content: var(--lumo-icons-cross);
3196
3196
  }
3197
- `];Sr("",Ka,{moduleId:"lumo-input-field-shared-styles"}),Sr("vaadin-date-picker",[Ka,mi`
3197
+ `];Sr("",Za,{moduleId:"lumo-input-field-shared-styles"}),Sr("vaadin-date-picker",[Za,mi`
3198
3198
  [part='toggle-button']::before {
3199
3199
  content: var(--lumo-icons-calendar);
3200
3200
  }
@@ -3222,7 +3222,7 @@ const Ka=[La,Xa,Pa,mi`
3222
3222
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3223
3223
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3224
3224
  */
3225
- const Ya=e=>class extends e{static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0}}}ready(){super.ready(),this.addEventListener("pointerdown",(e=>{e.target===this&&e.preventDefault()})),this.addEventListener("click",(e=>{e.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach((e=>e.focus&&e.focus()))}))}}
3225
+ const Qa=e=>class extends e{static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0}}}ready(){super.ready(),this.addEventListener("pointerdown",(e=>{e.target===this&&e.preventDefault()})),this.addEventListener("click",(e=>{e.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach((e=>e.focus&&e.focus()))}))}}
3226
3226
  /**
3227
3227
  * @license
3228
3228
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
@@ -3298,17 +3298,17 @@ Sr("vaadin-input-container",mi`
3298
3298
  /* Override default opacity in Firefox */
3299
3299
  opacity: 1;
3300
3300
  }
3301
- `,{moduleId:"vaadin-input-container-styles"});class Wa extends(Ya(Tr(_s(Ko)))){static get is(){return"vaadin-input-container"}static get template(){return $o`
3301
+ `,{moduleId:"vaadin-input-container-styles"});class Ja extends(Qa(Tr(_s(Ko)))){static get is(){return"vaadin-input-container"}static get template(){return $o`
3302
3302
  <slot name="prefix"></slot>
3303
3303
  <slot></slot>
3304
3304
  <slot name="suffix"></slot>
3305
- `}}si(Wa);
3305
+ `}}si(Ja);
3306
3306
  /**
3307
3307
  * @license
3308
3308
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3309
3309
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3310
3310
  */
3311
- const Za=mi`
3311
+ const el=mi`
3312
3312
  :host {
3313
3313
  z-index: 200;
3314
3314
  position: fixed;
@@ -3376,62 +3376,62 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3376
3376
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3377
3377
  Code distributed by Google as part of the polymer project is also
3378
3378
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3379
- */;let Qa=!1,Ja=[],el=[];function tl(e){const t=e[0],i=e[1],r=e[2];try{i.apply(t,r)}catch(e){setTimeout((()=>{throw e}))}}function il(e,t,i){Qa||(Qa=!0,requestAnimationFrame((function(){Qa=!1,function(e){for(;e.length;)tl(e.shift())}(Ja),setTimeout((function(){!function(e){for(let t=0,i=e.length;t<i;t++)tl(e.shift())}(el)}))}))),el.push([e,t,i])
3379
+ */;let tl=!1,il=[],rl=[];function nl(e){const t=e[0],i=e[1],r=e[2];try{i.apply(t,r)}catch(e){setTimeout((()=>{throw e}))}}function ol(e,t,i){tl||(tl=!0,requestAnimationFrame((function(){tl=!1,function(e){for(;e.length;)nl(e.shift())}(il),setTimeout((function(){!function(e){for(let t=0,i=e.length;t<i;t++)nl(e.shift())}(rl)}))}))),rl.push([e,t,i])
3380
3380
  /**
3381
3381
  * @license
3382
3382
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3383
3383
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3384
- */}const rl=e=>e.test(navigator.userAgent),nl=e=>e.test(navigator.platform);rl(/Android/u),rl(/Chrome/u)&&/Google Inc/u.test(navigator.vendor),rl(/Firefox/u);const ol=nl(/^iPad/u)||nl(/^Mac/u)&&navigator.maxTouchPoints>1,sl=nl(/^iPhone/u)||ol,al=rl(/^((?!chrome|android).)*safari/iu),ll=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}})();
3384
+ */}const sl=e=>e.test(navigator.userAgent),al=e=>e.test(navigator.platform);sl(/Android/u),sl(/Chrome/u)&&/Google Inc/u.test(navigator.vendor),sl(/Firefox/u);const ll=al(/^iPad/u)||al(/^Mac/u)&&navigator.maxTouchPoints>1,hl=al(/^iPhone/u)||ll,cl=sl(/^((?!chrome|android).)*safari/iu),dl=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}})();
3385
3385
  /**
3386
3386
  * @license
3387
3387
  * Copyright (c) 2017 Anton Korzunov
3388
3388
  * SPDX-License-Identifier: MIT
3389
- */let hl=new WeakMap,cl=new WeakMap,dl={},ul=0;const ml=e=>e&&e.nodeType===Node.ELEMENT_NODE,pl=(...e)=>{console.error(`Error: ${e.join(" ")}. Skip setting aria-hidden.`)},_l=(e,t=document.body,i="data-aria-hidden")=>{const r=Array.from(Array.isArray(e)?e:[e]);return t&&r.push(...Array.from(t.querySelectorAll("[aria-live]"))),((e,t,i,r)=>{const n=((e,t)=>ml(e)?t.map((t=>{if(!ml(t))return pl(t,"is not a valid element"),null;let i=t;for(;i&&i!==e;){if(e.contains(i))return t;i=i.getRootNode().host}return pl(t,"is not contained inside",e),null})).filter((e=>!!e)):(pl(e,"is not a valid element"),[]))(t,Array.isArray(e)?e:[e]);dl[i]||(dl[i]=new WeakMap);const o=dl[i],s=[],a=new Set,l=new Set(n),h=e=>{if(!e||a.has(e))return;a.add(e);const t=e.assignedSlot;t&&h(t),h(e.parentNode||e.host)};n.forEach(h);const c=e=>{if(!e||l.has(e))return;const t=e.shadowRoot;(t?[...e.children,...t.children]:[...e.children]).forEach((e=>{if(!["template","script","style"].includes(e.localName))if(a.has(e))c(e);else{const t=e.getAttribute(r),n=null!==t&&"false"!==t,a=(hl.get(e)||0)+1,l=(o.get(e)||0)+1;hl.set(e,a),o.set(e,l),s.push(e),1===a&&n&&cl.set(e,!0),1===l&&e.setAttribute(i,"true"),n||e.setAttribute(r,"true")}}))};return c(t),a.clear(),ul+=1,()=>{s.forEach((e=>{const t=hl.get(e)-1,n=o.get(e)-1;hl.set(e,t),o.set(e,n),t||(cl.has(e)?cl.delete(e):e.removeAttribute(r)),n||e.removeAttribute(i)})),ul-=1,ul||(hl=new WeakMap,hl=new WeakMap,cl=new WeakMap,dl={})}})(r,t,i,"aria-hidden")
3389
+ */let ul=new WeakMap,ml=new WeakMap,pl={},_l=0;const fl=e=>e&&e.nodeType===Node.ELEMENT_NODE,vl=(...e)=>{console.error(`Error: ${e.join(" ")}. Skip setting aria-hidden.`)},gl=(e,t=document.body,i="data-aria-hidden")=>{const r=Array.from(Array.isArray(e)?e:[e]);return t&&r.push(...Array.from(t.querySelectorAll("[aria-live]"))),((e,t,i,r)=>{const n=((e,t)=>fl(e)?t.map((t=>{if(!fl(t))return vl(t,"is not a valid element"),null;let i=t;for(;i&&i!==e;){if(e.contains(i))return t;i=i.getRootNode().host}return vl(t,"is not contained inside",e),null})).filter((e=>!!e)):(vl(e,"is not a valid element"),[]))(t,Array.isArray(e)?e:[e]);pl[i]||(pl[i]=new WeakMap);const o=pl[i],s=[],a=new Set,l=new Set(n),h=e=>{if(!e||a.has(e))return;a.add(e);const t=e.assignedSlot;t&&h(t),h(e.parentNode||e.host)};n.forEach(h);const c=e=>{if(!e||l.has(e))return;const t=e.shadowRoot;(t?[...e.children,...t.children]:[...e.children]).forEach((e=>{if(!["template","script","style"].includes(e.localName))if(a.has(e))c(e);else{const t=e.getAttribute(r),n=null!==t&&"false"!==t,a=(ul.get(e)||0)+1,l=(o.get(e)||0)+1;ul.set(e,a),o.set(e,l),s.push(e),1===a&&n&&ml.set(e,!0),1===l&&e.setAttribute(i,"true"),n||e.setAttribute(r,"true")}}))};return c(t),a.clear(),_l+=1,()=>{s.forEach((e=>{const t=ul.get(e)-1,n=o.get(e)-1;ul.set(e,t),o.set(e,n),t||(ml.has(e)?ml.delete(e):e.removeAttribute(r)),n||e.removeAttribute(i)})),_l-=1,_l||(ul=new WeakMap,ul=new WeakMap,ml=new WeakMap,pl={})}})(r,t,i,"aria-hidden")
3390
3390
  /**
3391
3391
  * @license
3392
3392
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3393
3393
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3394
- */};class fl{constructor(e,t){this.host=e,this.callback="function"==typeof t?t:()=>e}showModal(){const e=this.callback();this.__showOthers=_l(e)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}
3394
+ */};class El{constructor(e,t){this.host=e,this.callback="function"==typeof t?t:()=>e}showModal(){const e=this.callback();this.__showOthers=gl(e)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}
3395
3395
  /**
3396
3396
  * @license
3397
3397
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3398
3398
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3399
- */class vl{saveFocus(e){this.focusNode=e||sa()}restoreFocus(e){const t=this.focusNode;if(!t)return;const i=!!e&&e.preventScroll;sa()===document.body?setTimeout((()=>t.focus({preventScroll:i}))):t.focus({preventScroll:i}),this.focusNode=null}}
3399
+ */class bl{saveFocus(e){this.focusNode=e||ha()}restoreFocus(e){const t=this.focusNode;if(!t)return;const i=!!e&&e.preventScroll;ha()===document.body?setTimeout((()=>t.focus({preventScroll:i}))):t.focus({preventScroll:i}),this.focusNode=null}}
3400
3400
  /**
3401
3401
  * @license
3402
3402
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3403
3403
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3404
- */const gl=[];class El{constructor(e){this.host=e,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return function(e){const t=[];return ua(e,t)?ha(t):t}(this.__trapNode)}get __focusedElementIndex(){const e=this.__focusableElements;return e.indexOf(e.filter(da).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(e){if(this.__trapNode=e,0===this.__focusableElements.length)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");gl.push(this),-1===this.__focusedElementIndex&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,gl.pop()}__onKeyDown(e){this.__trapNode&&this===Array.from(gl).pop()&&"Tab"===e.key&&(e.preventDefault(),this.__focusNextElement(e.shiftKey))}__focusNextElement(e=!1){const t=this.__focusableElements,i=t[(t.length+this.__focusedElementIndex+(e?-1:1))%t.length];i.focus(),"input"===i.localName&&i.select()}}
3404
+ */const yl=[];class wl{constructor(e){this.host=e,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return function(e){const t=[];return _a(e,t)?ua(t):t}(this.__trapNode)}get __focusedElementIndex(){const e=this.__focusableElements;return e.indexOf(e.filter(pa).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(e){if(this.__trapNode=e,0===this.__focusableElements.length)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");yl.push(this),-1===this.__focusedElementIndex&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,yl.pop()}__onKeyDown(e){this.__trapNode&&this===Array.from(yl).pop()&&"Tab"===e.key&&(e.preventDefault(),this.__focusNextElement(e.shiftKey))}__focusNextElement(e=!1){const t=this.__focusableElements,i=t[(t.length+this.__focusedElementIndex+(e?-1:1))%t.length];i.focus(),"input"===i.localName&&i.select()}}
3405
3405
  /**
3406
3406
  * @license
3407
3407
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3408
3408
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3409
- */const bl=e=>class extends(Sa(e)){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new fl(this),this.__focusTrapController=new El(this),this.__focusRestorationController=new vl}ready(){super.ready(),this.addController(this.__ariaModalController),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController)}_resetFocus(){if(this.focusTrap&&(this.__ariaModalController.close(),this.__focusTrapController.releaseFocus()),this.restoreFocusOnClose&&this._shouldRestoreFocus()){const e=!aa();this.__focusRestorationController.restoreFocus({preventScroll:e})}}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const e=sa();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return!0;let t=e;const i=e.ownerDocument;for(;t&&t!==i&&t!==this;)t=t.parentNode||t.host;return t===this}}
3409
+ */const kl=e=>class extends(Ca(e)){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new El(this),this.__focusTrapController=new wl(this),this.__focusRestorationController=new bl}ready(){super.ready(),this.addController(this.__ariaModalController),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController)}_resetFocus(){if(this.focusTrap&&(this.__ariaModalController.close(),this.__focusTrapController.releaseFocus()),this.restoreFocusOnClose&&this._shouldRestoreFocus()){const e=!ca();this.__focusRestorationController.restoreFocus({preventScroll:e})}}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const e=ha();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return!0;let t=e;const i=e.ownerDocument;for(;t&&t!==i&&t!==this;)t=t.parentNode||t.host;return t===this}}
3410
3410
  /**
3411
3411
  * @license
3412
3412
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3413
3413
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3414
- */,yl=()=>Array.from(document.body.children).filter((e=>e instanceof HTMLElement&&e._hasOverlayStackMixin&&!e.hasAttribute("closing"))).sort(((e,t)=>e.__zIndex-t.__zIndex||0)),wl=()=>yl().filter((e=>e.$.overlay)),kl=e=>class extends e{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return(()=>this===wl().pop())()}bringToFront(){let e="";const t=yl().filter((e=>e!==this)).pop();t&&(e=t.__zIndex+1),this.style.zIndex=e,this.__zIndex=e||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){"none"!==document.body.style.pointerEvents&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),wl().forEach((e=>{e!==this&&(e.$.overlay.style.pointerEvents="none")}))}_exitModalState(){void 0!==this._previousDocumentPointerEvents&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const e=wl();let t;for(;(t=e.pop())&&(t===this||(t.$.overlay.style.removeProperty("pointer-events"),t.modeless)););}}
3414
+ */,xl=()=>Array.from(document.body.children).filter((e=>e instanceof HTMLElement&&e._hasOverlayStackMixin&&!e.hasAttribute("closing"))).sort(((e,t)=>e.__zIndex-t.__zIndex||0)),Sl=()=>xl().filter((e=>e.$.overlay)),Al=e=>class extends e{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return(()=>this===Sl().pop())()}bringToFront(){let e="";const t=xl().filter((e=>e!==this)).pop();t&&(e=t.__zIndex+1),this.style.zIndex=e,this.__zIndex=e||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){"none"!==document.body.style.pointerEvents&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),Sl().forEach((e=>{e!==this&&(e.$.overlay.style.pointerEvents="none")}))}_exitModalState(){void 0!==this._previousDocumentPointerEvents&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const e=Sl();let t;for(;(t=e.pop())&&(t===this||(t.$.overlay.style.removeProperty("pointer-events"),t.modeless)););}}
3415
3415
  /**
3416
3416
  * @license
3417
3417
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3418
3418
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3419
- */,xl=e=>class extends(bl(kl(e))){static get properties(){return{opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0},owner:{type:Object},model:{type:Object},renderer:{type:Object},modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged"},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged"},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0}}}static get observers(){return["_rendererOrDataChanged(renderer, owner, model, opened)"]}constructor(){super(),this._boundMouseDownListener=this._mouseDownListener.bind(this),this._boundMouseUpListener=this._mouseUpListener.bind(this),this._boundOutsideClickListener=this._outsideClickListener.bind(this),this._boundKeydownListener=this._keydownListener.bind(this),sl&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}ready(){super.ready(),this.addEventListener("click",(()=>{})),this.$.backdrop.addEventListener("click",(()=>{})),this.addEventListener("mouseup",(()=>{document.activeElement===document.body&&"0"===this.$.overlay.getAttribute("tabindex")&&this.$.overlay.focus()}))}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))}disconnectedCallback(){super.disconnectedCallback(),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener)}requestContentUpdate(){this.renderer&&this.renderer.call(this.owner,this,this.owner,this.model)}close(e){const t=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),t.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const e=window.innerHeight,t=window.innerWidth>e,i=document.documentElement.clientHeight;this.style.setProperty("--vaadin-overlay-viewport-bottom",t&&i>e?i-e+"px":"0")}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0)}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0)}_rendererOrDataChanged(e,t,i,r){const n=this._oldOwner!==t||this._oldModel!==i;this._oldModel=i,this._oldOwner=t;const o=this._oldRenderer!==e,s=void 0!==this._oldRenderer;this._oldRenderer=e;const a=this._oldOpened!==r;this._oldOpened=r,o&&s&&(this.innerHTML="",delete this._$litPart$),r&&e&&(o||a||n)&&this.requestContentUpdate()}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(e,t){e?(this._saveFocus(),this._animatedOpening(),il(this,(()=>{this._trapFocus();const e=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(e)})),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):t&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(e){e&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const e=getComputedStyle(this),t=e.getPropertyValue("animation-name");return!("none"===e.getPropertyValue("display"))&&t&&"none"!==t}_enqueueAnimation(e,t){const i=`__${e}Handler`,r=e=>{e&&e.target!==this||(t(),this.removeEventListener("animationend",r),delete this[i])};this[i]=r,this.addEventListener("animationend",r)}_flushAnimation(e){const t=`__${e}Handler`;"function"==typeof this[t]&&this[t]()}_animatedOpening(){this.parentNode===document.body&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this.modeless||this._enterModalState(),this.setAttribute("opening",""),this._shouldAnimate()?this._enqueueAnimation("opening",(()=>{this._finishOpening()})):this._finishOpening()}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront()}_finishOpening(){this.removeAttribute("opening")}_finishClosing(){this._detachOverlay(),this.$.overlay.style.removeProperty("pointer-events"),this.removeAttribute("closing"),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"))}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.setAttribute("closing",""),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",(()=>{this._finishClosing()})):this._finishClosing())}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder)}_mouseDownListener(e){this._mouseDownInside=e.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(e){this._mouseUpInside=e.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(e){return this._last}_outsideClickListener(e){if(e.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside)return this._mouseDownInside=!1,void(this._mouseUpInside=!1);if(!this._shouldCloseOnOutsideClick(e))return;const t=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),this.opened&&!t.defaultPrevented&&this.close(e)}_keydownListener(e){if(this._last&&(!this.modeless||e.composedPath().includes(this.$.overlay))&&"Escape"===e.key){const t=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),this.opened&&!t.defaultPrevented&&this.close(e)}}}
3419
+ */,Il=e=>class extends(kl(Al(e))){static get properties(){return{opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0},owner:{type:Object},model:{type:Object},renderer:{type:Object},modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged"},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged"},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0}}}static get observers(){return["_rendererOrDataChanged(renderer, owner, model, opened)"]}constructor(){super(),this._boundMouseDownListener=this._mouseDownListener.bind(this),this._boundMouseUpListener=this._mouseUpListener.bind(this),this._boundOutsideClickListener=this._outsideClickListener.bind(this),this._boundKeydownListener=this._keydownListener.bind(this),hl&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}ready(){super.ready(),this.addEventListener("click",(()=>{})),this.$.backdrop.addEventListener("click",(()=>{})),this.addEventListener("mouseup",(()=>{document.activeElement===document.body&&"0"===this.$.overlay.getAttribute("tabindex")&&this.$.overlay.focus()}))}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))}disconnectedCallback(){super.disconnectedCallback(),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener)}requestContentUpdate(){this.renderer&&this.renderer.call(this.owner,this,this.owner,this.model)}close(e){const t=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),t.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const e=window.innerHeight,t=window.innerWidth>e,i=document.documentElement.clientHeight;this.style.setProperty("--vaadin-overlay-viewport-bottom",t&&i>e?i-e+"px":"0")}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0)}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0)}_rendererOrDataChanged(e,t,i,r){const n=this._oldOwner!==t||this._oldModel!==i;this._oldModel=i,this._oldOwner=t;const o=this._oldRenderer!==e,s=void 0!==this._oldRenderer;this._oldRenderer=e;const a=this._oldOpened!==r;this._oldOpened=r,o&&s&&(this.innerHTML="",delete this._$litPart$),r&&e&&(o||a||n)&&this.requestContentUpdate()}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(e,t){e?(this._saveFocus(),this._animatedOpening(),ol(this,(()=>{this._trapFocus();const e=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(e)})),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):t&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(e){e&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const e=getComputedStyle(this),t=e.getPropertyValue("animation-name");return!("none"===e.getPropertyValue("display"))&&t&&"none"!==t}_enqueueAnimation(e,t){const i=`__${e}Handler`,r=e=>{e&&e.target!==this||(t(),this.removeEventListener("animationend",r),delete this[i])};this[i]=r,this.addEventListener("animationend",r)}_flushAnimation(e){const t=`__${e}Handler`;"function"==typeof this[t]&&this[t]()}_animatedOpening(){this.parentNode===document.body&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this.modeless||this._enterModalState(),this.setAttribute("opening",""),this._shouldAnimate()?this._enqueueAnimation("opening",(()=>{this._finishOpening()})):this._finishOpening()}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront()}_finishOpening(){this.removeAttribute("opening")}_finishClosing(){this._detachOverlay(),this.$.overlay.style.removeProperty("pointer-events"),this.removeAttribute("closing"),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"))}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.setAttribute("closing",""),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",(()=>{this._finishClosing()})):this._finishClosing())}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder)}_mouseDownListener(e){this._mouseDownInside=e.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(e){this._mouseUpInside=e.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(e){return this._last}_outsideClickListener(e){if(e.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside)return this._mouseDownInside=!1,void(this._mouseUpInside=!1);if(!this._shouldCloseOnOutsideClick(e))return;const t=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),this.opened&&!t.defaultPrevented&&this.close(e)}_keydownListener(e){if(this._last&&(!this.modeless||e.composedPath().includes(this.$.overlay))&&"Escape"===e.key){const t=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),this.opened&&!t.defaultPrevented&&this.close(e)}}}
3420
3420
  /**
3421
3421
  * @license
3422
3422
  * Copyright (c) 2024 Vaadin Ltd.
3423
3423
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3424
- */,Sl={start:"top",end:"bottom"},Al={start:"left",end:"right"},Il=new ResizeObserver((e=>{setTimeout((()=>{e.forEach((e=>{e.target.__overlay&&e.target.__overlay._updatePosition()}))}))})),Cl=e=>class extends e{static get properties(){return{positionTarget:{type:Object,value:null,sync:!0},horizontalAlign:{type:String,value:"start",sync:!0},verticalAlign:{type:String,value:"top",sync:!0},noHorizontalOverlap:{type:Boolean,value:!1,sync:!0},noVerticalOverlap:{type:Boolean,value:!1,sync:!0},requiredVerticalSpace:{type:Number,value:0,sync:!0}}}static get observers(){return["__positionSettingsChanged(horizontalAlign, verticalAlign, noHorizontalOverlap, noVerticalOverlap, requiredVerticalSpace)","__overlayOpenedChanged(opened, positionTarget)"]}constructor(){super(),this.__onScroll=this.__onScroll.bind(this),this._updatePosition=this._updatePosition.bind(this)}connectedCallback(){super.connectedCallback(),this.opened&&this.__addUpdatePositionEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.__removeUpdatePositionEventListeners()}__addUpdatePositionEventListeners(){window.visualViewport.addEventListener("resize",this._updatePosition),window.visualViewport.addEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes=function(e){const t=[];for(;e;){if(e.nodeType===Node.DOCUMENT_NODE){t.push(e);break}e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?e=e.assignedSlot?e.assignedSlot:e.parentNode:(t.push(e),e=e.host)}return t}(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach((e=>{e.addEventListener("scroll",this.__onScroll,!0)})),this.positionTarget&&(this.__observePositionTargetMove=function(e,t){let i=null;const r=document.documentElement;function n(){i&&i.disconnect(),i=null}return function o(s=!1,a=1){n();const{left:l,top:h,width:c,height:d}=e.getBoundingClientRect();if(s||t(),!c||!d)return;const u={rootMargin:`${-Math.floor(h)}px ${-Math.floor(r.clientWidth-(l+c))}px ${-Math.floor(r.clientHeight-(h+d))}px ${-Math.floor(l)}px`,threshold:Math.max(0,Math.min(1,a))||1};let m=!0;i=new IntersectionObserver((function(e){let t=e[0].intersectionRatio;if(t!==a){if(!m)return o();0===t&&(t=1e-7),o(!1,t)}m=!1}),u),i.observe(e)}(!0),n}
3424
+ */,Cl={start:"top",end:"bottom"},Dl={start:"left",end:"right"},Tl=new ResizeObserver((e=>{setTimeout((()=>{e.forEach((e=>{e.target.__overlay&&e.target.__overlay._updatePosition()}))}))})),Rl=e=>class extends e{static get properties(){return{positionTarget:{type:Object,value:null,sync:!0},horizontalAlign:{type:String,value:"start",sync:!0},verticalAlign:{type:String,value:"top",sync:!0},noHorizontalOverlap:{type:Boolean,value:!1,sync:!0},noVerticalOverlap:{type:Boolean,value:!1,sync:!0},requiredVerticalSpace:{type:Number,value:0,sync:!0}}}static get observers(){return["__positionSettingsChanged(horizontalAlign, verticalAlign, noHorizontalOverlap, noVerticalOverlap, requiredVerticalSpace)","__overlayOpenedChanged(opened, positionTarget)"]}constructor(){super(),this.__onScroll=this.__onScroll.bind(this),this._updatePosition=this._updatePosition.bind(this)}connectedCallback(){super.connectedCallback(),this.opened&&this.__addUpdatePositionEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.__removeUpdatePositionEventListeners()}__addUpdatePositionEventListeners(){window.visualViewport.addEventListener("resize",this._updatePosition),window.visualViewport.addEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes=function(e){const t=[];for(;e;){if(e.nodeType===Node.DOCUMENT_NODE){t.push(e);break}e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?e=e.assignedSlot?e.assignedSlot:e.parentNode:(t.push(e),e=e.host)}return t}(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach((e=>{e.addEventListener("scroll",this.__onScroll,!0)})),this.positionTarget&&(this.__observePositionTargetMove=function(e,t){let i=null;const r=document.documentElement;function n(){i&&i.disconnect(),i=null}return function o(s=!1,a=1){n();const{left:l,top:h,width:c,height:d}=e.getBoundingClientRect();if(s||t(),!c||!d)return;const u={rootMargin:`${-Math.floor(h)}px ${-Math.floor(r.clientWidth-(l+c))}px ${-Math.floor(r.clientHeight-(h+d))}px ${-Math.floor(l)}px`,threshold:Math.max(0,Math.min(1,a))||1};let m=!0;i=new IntersectionObserver((function(e){let t=e[0].intersectionRatio;if(t!==a){if(!m)return o();0===t&&(t=1e-7),o(!1,t)}m=!1}),u),i.observe(e)}(!0),n}
3425
3425
  /**
3426
3426
  * @license
3427
3427
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3428
3428
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3429
- */(this.positionTarget,(()=>{this._updatePosition()})))}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach((e=>{e.removeEventListener("scroll",this.__onScroll,!0)})),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null)}__overlayOpenedChanged(e,t){if(this.__removeUpdatePositionEventListeners(),t&&(t.__overlay=null,Il.unobserve(t),e&&(this.__addUpdatePositionEventListeners(),t.__overlay=this,Il.observe(t))),e){const e=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach((t=>{this.__margins[t]=parseInt(e[t],10)}))),this._updatePosition(),requestAnimationFrame((()=>this._updatePosition()))}}__positionSettingsChanged(){this._updatePosition()}__onScroll(e){e.target instanceof Node&&this.contains(e.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened||!this.__margins)return;const e=this.positionTarget.getBoundingClientRect();if(0===e.width&&0===e.height&&this.opened)return void(this.opened=!1);const t=this.__shouldAlignStartVertically(e);this.style.justifyContent=t?"flex-start":"flex-end";const i=this.__isRTL,r=this.__shouldAlignStartHorizontally(e,i),n=!i&&r||i&&!r;this.style.alignItems=n?"flex-start":"flex-end";const o=this.getBoundingClientRect(),s=this.__calculatePositionInOneDimension(e,o,this.noVerticalOverlap,Sl,this,t),a=this.__calculatePositionInOneDimension(e,o,this.noHorizontalOverlap,Al,this,r);Object.assign(this.style,s,a),this.toggleAttribute("bottom-aligned",!t),this.toggleAttribute("top-aligned",t),this.toggleAttribute("end-aligned",!n),this.toggleAttribute("start-aligned",n)}__shouldAlignStartHorizontally(e,t){const i=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const r=Math.min(window.innerWidth,document.documentElement.clientWidth);return this.__shouldAlignStart(e,i,r,this.__margins,!t&&"start"===this.horizontalAlign||t&&"end"===this.horizontalAlign,this.noHorizontalOverlap,Al)}__shouldAlignStartVertically(e){const t=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const i=Math.min(window.innerHeight,document.documentElement.clientHeight);return this.__shouldAlignStart(e,t,i,this.__margins,"top"===this.verticalAlign,this.noVerticalOverlap,Sl)}__shouldAlignStart(e,t,i,r,n,o,s){const a=i-e[o?s.end:s.start]-r[s.end],l=e[o?s.start:s.end]-r[s.start],h=n?a:l;return n===(h>(n?l:a)||h>t)}__adjustBottomProperty(e,t,i){let r;if(e===t.end){if(t.end===Sl.end){const e=Math.min(window.innerHeight,document.documentElement.clientHeight);i>e&&this.__oldViewportHeight&&(r=i-(this.__oldViewportHeight-e)),this.__oldViewportHeight=e}if(t.end===Al.end){const e=Math.min(window.innerWidth,document.documentElement.clientWidth);i>e&&this.__oldViewportWidth&&(r=i-(this.__oldViewportWidth-e)),this.__oldViewportWidth=e}}return r}__calculatePositionInOneDimension(e,t,i,r,n,o){const s=o?r.start:r.end,a=o?r.end:r.start,l=parseFloat(n.style[s]||getComputedStyle(n)[s]),h=this.__adjustBottomProperty(s,r,l),c=h?`${h}px`:`${l+(t[o?r.start:r.end]-e[i===o?r.end:r.start])*(o?-1:1)}px`;return{[s]:c,[a]:""}}}
3429
+ */(this.positionTarget,(()=>{this._updatePosition()})))}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach((e=>{e.removeEventListener("scroll",this.__onScroll,!0)})),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null)}__overlayOpenedChanged(e,t){if(this.__removeUpdatePositionEventListeners(),t&&(t.__overlay=null,Tl.unobserve(t),e&&(this.__addUpdatePositionEventListeners(),t.__overlay=this,Tl.observe(t))),e){const e=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach((t=>{this.__margins[t]=parseInt(e[t],10)}))),this._updatePosition(),requestAnimationFrame((()=>this._updatePosition()))}}__positionSettingsChanged(){this._updatePosition()}__onScroll(e){e.target instanceof Node&&this.contains(e.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened||!this.__margins)return;const e=this.positionTarget.getBoundingClientRect();if(0===e.width&&0===e.height&&this.opened)return void(this.opened=!1);const t=this.__shouldAlignStartVertically(e);this.style.justifyContent=t?"flex-start":"flex-end";const i=this.__isRTL,r=this.__shouldAlignStartHorizontally(e,i),n=!i&&r||i&&!r;this.style.alignItems=n?"flex-start":"flex-end";const o=this.getBoundingClientRect(),s=this.__calculatePositionInOneDimension(e,o,this.noVerticalOverlap,Cl,this,t),a=this.__calculatePositionInOneDimension(e,o,this.noHorizontalOverlap,Dl,this,r);Object.assign(this.style,s,a),this.toggleAttribute("bottom-aligned",!t),this.toggleAttribute("top-aligned",t),this.toggleAttribute("end-aligned",!n),this.toggleAttribute("start-aligned",n)}__shouldAlignStartHorizontally(e,t){const i=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const r=Math.min(window.innerWidth,document.documentElement.clientWidth);return this.__shouldAlignStart(e,i,r,this.__margins,!t&&"start"===this.horizontalAlign||t&&"end"===this.horizontalAlign,this.noHorizontalOverlap,Dl)}__shouldAlignStartVertically(e){const t=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const i=Math.min(window.innerHeight,document.documentElement.clientHeight);return this.__shouldAlignStart(e,t,i,this.__margins,"top"===this.verticalAlign,this.noVerticalOverlap,Cl)}__shouldAlignStart(e,t,i,r,n,o,s){const a=i-e[o?s.end:s.start]-r[s.end],l=e[o?s.start:s.end]-r[s.start],h=n?a:l;return n===(h>(n?l:a)||h>t)}__adjustBottomProperty(e,t,i){let r;if(e===t.end){if(t.end===Cl.end){const e=Math.min(window.innerHeight,document.documentElement.clientHeight);i>e&&this.__oldViewportHeight&&(r=i-(this.__oldViewportHeight-e)),this.__oldViewportHeight=e}if(t.end===Dl.end){const e=Math.min(window.innerWidth,document.documentElement.clientWidth);i>e&&this.__oldViewportWidth&&(r=i-(this.__oldViewportWidth-e)),this.__oldViewportWidth=e}}return r}__calculatePositionInOneDimension(e,t,i,r,n,o){const s=o?r.start:r.end,a=o?r.end:r.start,l=parseFloat(n.style[s]||getComputedStyle(n)[s]),h=this.__adjustBottomProperty(s,r,l),c=h?`${h}px`:`${l+(t[o?r.start:r.end]-e[i===o?r.end:r.start])*(o?-1:1)}px`;return{[s]:c,[a]:""}}}
3430
3430
  /**
3431
3431
  * @license
3432
3432
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
3433
3433
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3434
- */,Dl=e=>class extends(Cl(xl(e))){_shouldCloseOnOutsideClick(e){return!e.composedPath().includes(this.positionTarget)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!ca(e.composedPath()[0])&&e.preventDefault()}}
3434
+ */,Nl=e=>class extends(Rl(Il(e))){_shouldCloseOnOutsideClick(e){return!e.composedPath().includes(this.positionTarget)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!ma(e.composedPath()[0])&&e.preventDefault()}}
3435
3435
  /**
3436
3436
  * @license
3437
3437
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
@@ -3442,7 +3442,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3442
3442
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3443
3443
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3444
3444
  */
3445
- Sr("vaadin-date-picker-overlay",[Za,mi`
3445
+ Sr("vaadin-date-picker-overlay",[el,mi`
3446
3446
  [part='overlay'] {
3447
3447
  display: flex;
3448
3448
  flex: auto;
@@ -3457,20 +3457,20 @@ Sr("vaadin-date-picker-overlay",[Za,mi`
3457
3457
  outline: 3px solid;
3458
3458
  }
3459
3459
  }
3460
- `],{moduleId:"vaadin-date-picker-overlay-styles"});class Tl extends(Dl(_s(Tr(Ko)))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return $o`
3460
+ `],{moduleId:"vaadin-date-picker-overlay-styles"});class Ol extends(Nl(_s(Tr(Ko)))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return $o`
3461
3461
  <div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
3462
3462
  <div part="overlay" id="overlay">
3463
3463
  <div part="content" id="content">
3464
3464
  <slot></slot>
3465
3465
  </div>
3466
3466
  </div>
3467
- `}}si(Tl);
3467
+ `}}si(Ol);
3468
3468
  /**
3469
3469
  * @license
3470
3470
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3471
3471
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3472
3472
  */
3473
- const Rl=mi`
3473
+ const zl=mi`
3474
3474
  :host {
3475
3475
  display: inline-block;
3476
3476
  position: relative;
@@ -3530,7 +3530,7 @@ const Rl=mi`
3530
3530
  outline-color: GrayText;
3531
3531
  }
3532
3532
  }
3533
- `,Nl=e=>class extends(na(pa(ma(e)))){static get properties(){return{tabindex:{type:Number,value:0,reflectToAttribute:!0}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button")}_onKeyDown(e){super._onKeyDown(e),!(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)&&this._activeKeys.includes(e.key)&&(e.preventDefault(),this.click())}}
3533
+ `,Gl=e=>class extends(aa(va(fa(e)))){static get properties(){return{tabindex:{type:Number,value:0,reflectToAttribute:!0}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button")}_onKeyDown(e){super._onKeyDown(e),!(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)&&this._activeKeys.includes(e.key)&&(e.preventDefault(),this.click())}}
3534
3534
  /**
3535
3535
  * @license
3536
3536
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
@@ -3540,7 +3540,7 @@ const Rl=mi`
3540
3540
  * @license
3541
3541
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3542
3542
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3543
- */Sr("vaadin-button",Rl,{moduleId:"vaadin-button-styles"});class Ol extends(Nl(gs(Tr(Sa(Ko))))){static get is(){return"vaadin-button"}static get template(){return $o`
3543
+ */Sr("vaadin-button",zl,{moduleId:"vaadin-button-styles"});class Ml extends(Gl(gs(Tr(Ca(Ko))))){static get is(){return"vaadin-button"}static get template(){return $o`
3544
3544
  <div class="vaadin-button-container">
3545
3545
  <span part="prefix" aria-hidden="true">
3546
3546
  <slot name="prefix"></slot>
@@ -3553,7 +3553,7 @@ const Rl=mi`
3553
3553
  </span>
3554
3554
  </div>
3555
3555
  <slot name="tooltip"></slot>
3556
- `}ready(){super.ready(),this._tooltipController=new As(this),this.addController(this._tooltipController)}}function zl(e){const t=new Date(e);return t.setHours(0,0,0,0),t}function Gl(e,t,i=zl){return e instanceof Date&&t instanceof Date&&i(e).getTime()===i(t).getTime()}function Ml(e){return{day:e.getDate(),month:e.getMonth(),year:e.getFullYear()}}function Ul(e,t,i,r){let n=!1;return"function"==typeof r&&e&&(n=r(Ml(e))),(!t||e>=t)&&(!i||e<=i)&&!n}function Bl(e,t){return t.filter((e=>void 0!==e)).reduce(((t,i)=>i?t?Math.abs(e.getTime()-i.getTime())<Math.abs(t.getTime()-e.getTime())?i:t:i:t))}function Pl(e){const t=new Date,i=new Date(t);return i.setDate(1),i.setMonth(parseInt(e)+t.getMonth()),i}function Ll(e){const t=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(e);if(!t)return;const i=new Date(0,0);return i.setFullYear(parseInt(t[1],10)),i.setMonth(parseInt(t[2],10)-1),i.setDate(parseInt(t[3],10)),i}si(Ol);
3556
+ `}ready(){super.ready(),this._tooltipController=new As(this),this.addController(this._tooltipController)}}function Ul(e){const t=new Date(e);return t.setHours(0,0,0,0),t}function Bl(e,t,i=Ul){return e instanceof Date&&t instanceof Date&&i(e).getTime()===i(t).getTime()}function Pl(e){return{day:e.getDate(),month:e.getMonth(),year:e.getFullYear()}}function Ll(e,t,i,r){let n=!1;return"function"==typeof r&&e&&(n=r(Pl(e))),(!t||e>=t)&&(!i||e<=i)&&!n}function jl(e,t){return t.filter((e=>void 0!==e)).reduce(((t,i)=>i?t?Math.abs(e.getTime()-i.getTime())<Math.abs(t.getTime()-e.getTime())?i:t:i:t))}function Fl(e){const t=new Date,i=new Date(t);return i.setDate(1),i.setMonth(parseInt(e)+t.getMonth()),i}function ql(e){const t=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(e);if(!t)return;const i=new Date(0,0);return i.setFullYear(parseInt(t[1],10)),i.setMonth(parseInt(t[2],10)-1),i.setDate(parseInt(t[3],10)),i}si(Ml);
3557
3557
  /**
3558
3558
  @license
3559
3559
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -3563,7 +3563,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
3563
3563
  Code distributed by Google as part of the polymer project is also
3564
3564
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3565
3565
  */
3566
- class jl{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run((()=>{this._timer=null,Fl.delete(this),this._callback()}))}cancel(){this.isActive()&&(this._cancelAsync(),Fl.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return null!=this._timer}static debounce(e,t,i){return e instanceof jl?e._cancelAsync():e=new jl,e.setConfig(t,i),e}}let Fl=new Set;const ql=function(){const e=!!Fl.size;return Fl.forEach((e=>{try{e.flush()}catch(e){setTimeout((()=>{throw e}))}})),e
3566
+ class Hl{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run((()=>{this._timer=null,Vl.delete(this),this._callback()}))}cancel(){this.isActive()&&(this._cancelAsync(),Vl.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return null!=this._timer}static debounce(e,t,i){return e instanceof Hl?e._cancelAsync():e=new Hl,e.setConfig(t,i),e}}let Vl=new Set;const $l=function(){const e=!!Vl.size;return Vl.forEach((e=>{try{e.flush()}catch(e){setTimeout((()=>{throw e}))}})),e
3567
3567
  /**
3568
3568
  @license
3569
3569
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -3572,29 +3572,29 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3572
3572
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3573
3573
  Code distributed by Google as part of the polymer project is also
3574
3574
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3575
- */},Hl=function(){let e,t;do{e=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),t=ql()}while(e||t)},Vl=document.createElement("template");Vl.innerHTML='\n <style>\n :host {\n display: block;\n overflow: hidden;\n height: 500px;\n }\n\n #scroller {\n position: relative;\n height: 100%;\n overflow: auto;\n outline: none;\n margin-right: -40px;\n -webkit-overflow-scrolling: touch;\n overflow-x: hidden;\n }\n\n #scroller.notouchscroll {\n -webkit-overflow-scrolling: auto;\n }\n\n #scroller::-webkit-scrollbar {\n display: none;\n }\n\n .buffer {\n position: absolute;\n width: var(--vaadin-infinite-scroller-buffer-width, 100%);\n box-sizing: border-box;\n padding-right: 40px;\n top: var(--vaadin-infinite-scroller-buffer-offset, 0);\n animation: fadein 0.2s;\n }\n\n @keyframes fadein {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n }\n </style>\n\n <div id="scroller" tabindex="-1">\n <div class="buffer"></div>\n <div class="buffer"></div>\n <div id="fullHeight"></div>\n </div>\n';class $l extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(Vl.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1}get active(){return this._activated}set active(e){e&&!this._activated&&(this._createPool(),this._activated=!0)}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const e=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),t="background-position";this.$.fullHeight.style.setProperty(t,e);const i=getComputedStyle(this.$.fullHeight).getPropertyValue(t);this.$.fullHeight.style.removeProperty(t),this._itemHeightVal=parseFloat(i)}return this._itemHeightVal}get _bufferHeight(){return this.itemHeight*this.bufferSize}get position(){return(this.$.scroller.scrollTop-this._buffers[0].translateY)/this.itemHeight+this._firstIndex}set position(e){this._preventScrollEvent=!0,e>this._firstIndex&&e<this._firstIndex+2*this.bufferSize?this.$.scroller.scrollTop=this.itemHeight*(e-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~e,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=e%1*this.itemHeight,this._scrollDisabled=!1),this._mayHaveMomentum&&(this.$.scroller.classList.add("notouchscroll"),this._mayHaveMomentum=!1,setTimeout((()=>{this.$.scroller.classList.remove("notouchscroll")}),10))}connectedCallback(){this._ready||(this._ready=!0,this.$={},this.shadowRoot.querySelectorAll("[id]").forEach((e=>{this.$[e.id]=e})),this.$.scroller.addEventListener("scroll",(()=>this._scroll())),this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")],this.$.fullHeight.style.height=2*this._initialScroll+"px")}forceUpdate(){this._debouncerScrollFinish&&this._debouncerScrollFinish.flush(),this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel()),Hl()}_createElement(){}_updateElement(e,t){}_finishInit(){this._initDone||(this._buffers.forEach((e=>{[...e.children].forEach((e=>{this._ensureStampedInstance(e._itemWrapper)}))})),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(e){const t=e?1:0;this._buffers[t].translateY=this._buffers[t?0:1].translateY+this._bufferHeight*(t?-1:1),this._buffers[t].style.transform=`translate3d(0, ${this._buffers[t].translateY}px, 0)`,this._buffers[t].updated=!1,this._buffers.reverse()}_scroll(){if(this._scrollDisabled)return;const e=this.$.scroller.scrollTop;(e<this._bufferHeight||e>2*this._initialScroll-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const t=this.itemHeight+this.bufferOffset,i=e<this._buffers[0].translateY+t;(e>this._buffers[1].translateY+t||i)&&(this._translateBuffer(i),this._updateClones()),this._preventScrollEvent||(this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:!1,composed:!0})),this._mayHaveMomentum=!0),this._preventScrollEvent=!1,this._debouncerScrollFinish=ls.debounce(this._debouncerScrollFinish,rs.after(200),(()=>{const e=this.$.scroller.getBoundingClientRect();!this._isVisible(this._buffers[0],e)&&!this._isVisible(this._buffers[1],e)&&(this.position=this.position)}))}_reset(){this._scrollDisabled=!0,this.$.scroller.scrollTop=this._initialScroll,this._buffers[0].translateY=this._initialScroll-this._bufferHeight,this._buffers[1].translateY=this._initialScroll,this._buffers.forEach((e=>{e.style.transform=`translate3d(0, ${e.translateY}px, 0)`})),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=ls.debounce(this._debouncerUpdateClones,rs.after(200),(()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()})),this._scrollDisabled=!1}_createPool(){const e=this.getBoundingClientRect();this._buffers.forEach((t=>{for(let i=0;i<this.bufferSize;i++){const i=document.createElement("div");i.style.height=`${this.itemHeight}px`,i.instance={};const r=`vaadin-infinite-scroller-item-content-${xs()}`,n=document.createElement("slot");n.setAttribute("name",r),n._itemWrapper=i,t.appendChild(n),i.setAttribute("slot",r),this.appendChild(i),this._isVisible(i,e)&&this._ensureStampedInstance(i)}})),requestAnimationFrame((()=>{this._finishInit()}))}_ensureStampedInstance(e){if(e.firstElementChild)return;const t=e.instance;e.instance=this._createElement(),e.appendChild(e.instance),Object.keys(t).forEach((i=>{e.instance[i]=t[i]}))}_updateClones(e){this._firstIndex=Math.round((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const t=e?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach(((i,r)=>{if(!i.updated){const n=this._firstIndex+this.bufferSize*r;[...i.children].forEach(((i,r)=>{const o=i._itemWrapper;(!e||this._isVisible(o,t))&&this._updateElement(o.instance,n+r)})),i.updated=!0}}))}_isVisible(e,t){const i=e.getBoundingClientRect();return i.bottom>t.top&&i.top<t.bottom}}
3575
+ */},Xl=function(){let e,t;do{e=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),t=$l()}while(e||t)},Kl=document.createElement("template");Kl.innerHTML='\n <style>\n :host {\n display: block;\n overflow: hidden;\n height: 500px;\n }\n\n #scroller {\n position: relative;\n height: 100%;\n overflow: auto;\n outline: none;\n margin-right: -40px;\n -webkit-overflow-scrolling: touch;\n overflow-x: hidden;\n }\n\n #scroller.notouchscroll {\n -webkit-overflow-scrolling: auto;\n }\n\n #scroller::-webkit-scrollbar {\n display: none;\n }\n\n .buffer {\n position: absolute;\n width: var(--vaadin-infinite-scroller-buffer-width, 100%);\n box-sizing: border-box;\n padding-right: 40px;\n top: var(--vaadin-infinite-scroller-buffer-offset, 0);\n animation: fadein 0.2s;\n }\n\n @keyframes fadein {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n }\n </style>\n\n <div id="scroller" tabindex="-1">\n <div class="buffer"></div>\n <div class="buffer"></div>\n <div id="fullHeight"></div>\n </div>\n';class Yl extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(Kl.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1}get active(){return this._activated}set active(e){e&&!this._activated&&(this._createPool(),this._activated=!0)}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const e=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),t="background-position";this.$.fullHeight.style.setProperty(t,e);const i=getComputedStyle(this.$.fullHeight).getPropertyValue(t);this.$.fullHeight.style.removeProperty(t),this._itemHeightVal=parseFloat(i)}return this._itemHeightVal}get _bufferHeight(){return this.itemHeight*this.bufferSize}get position(){return(this.$.scroller.scrollTop-this._buffers[0].translateY)/this.itemHeight+this._firstIndex}set position(e){this._preventScrollEvent=!0,e>this._firstIndex&&e<this._firstIndex+2*this.bufferSize?this.$.scroller.scrollTop=this.itemHeight*(e-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~e,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=e%1*this.itemHeight,this._scrollDisabled=!1),this._mayHaveMomentum&&(this.$.scroller.classList.add("notouchscroll"),this._mayHaveMomentum=!1,setTimeout((()=>{this.$.scroller.classList.remove("notouchscroll")}),10))}connectedCallback(){this._ready||(this._ready=!0,this.$={},this.shadowRoot.querySelectorAll("[id]").forEach((e=>{this.$[e.id]=e})),this.$.scroller.addEventListener("scroll",(()=>this._scroll())),this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")],this.$.fullHeight.style.height=2*this._initialScroll+"px")}forceUpdate(){this._debouncerScrollFinish&&this._debouncerScrollFinish.flush(),this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel()),Xl()}_createElement(){}_updateElement(e,t){}_finishInit(){this._initDone||(this._buffers.forEach((e=>{[...e.children].forEach((e=>{this._ensureStampedInstance(e._itemWrapper)}))})),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(e){const t=e?1:0;this._buffers[t].translateY=this._buffers[t?0:1].translateY+this._bufferHeight*(t?-1:1),this._buffers[t].style.transform=`translate3d(0, ${this._buffers[t].translateY}px, 0)`,this._buffers[t].updated=!1,this._buffers.reverse()}_scroll(){if(this._scrollDisabled)return;const e=this.$.scroller.scrollTop;(e<this._bufferHeight||e>2*this._initialScroll-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const t=this.itemHeight+this.bufferOffset,i=e<this._buffers[0].translateY+t;(e>this._buffers[1].translateY+t||i)&&(this._translateBuffer(i),this._updateClones()),this._preventScrollEvent||(this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:!1,composed:!0})),this._mayHaveMomentum=!0),this._preventScrollEvent=!1,this._debouncerScrollFinish=ls.debounce(this._debouncerScrollFinish,rs.after(200),(()=>{const e=this.$.scroller.getBoundingClientRect();!this._isVisible(this._buffers[0],e)&&!this._isVisible(this._buffers[1],e)&&(this.position=this.position)}))}_reset(){this._scrollDisabled=!0,this.$.scroller.scrollTop=this._initialScroll,this._buffers[0].translateY=this._initialScroll-this._bufferHeight,this._buffers[1].translateY=this._initialScroll,this._buffers.forEach((e=>{e.style.transform=`translate3d(0, ${e.translateY}px, 0)`})),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=ls.debounce(this._debouncerUpdateClones,rs.after(200),(()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()})),this._scrollDisabled=!1}_createPool(){const e=this.getBoundingClientRect();this._buffers.forEach((t=>{for(let i=0;i<this.bufferSize;i++){const i=document.createElement("div");i.style.height=`${this.itemHeight}px`,i.instance={};const r=`vaadin-infinite-scroller-item-content-${xs()}`,n=document.createElement("slot");n.setAttribute("name",r),n._itemWrapper=i,t.appendChild(n),i.setAttribute("slot",r),this.appendChild(i),this._isVisible(i,e)&&this._ensureStampedInstance(i)}})),requestAnimationFrame((()=>{this._finishInit()}))}_ensureStampedInstance(e){if(e.firstElementChild)return;const t=e.instance;e.instance=this._createElement(),e.appendChild(e.instance),Object.keys(t).forEach((i=>{e.instance[i]=t[i]}))}_updateClones(e){this._firstIndex=Math.round((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const t=e?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach(((i,r)=>{if(!i.updated){const n=this._firstIndex+this.bufferSize*r;[...i.children].forEach(((i,r)=>{const o=i._itemWrapper;(!e||this._isVisible(o,t))&&this._updateElement(o.instance,n+r)})),i.updated=!0}}))}_isVisible(e,t){const i=e.getBoundingClientRect();return i.bottom>t.top&&i.top<t.bottom}}
3576
3576
  /**
3577
3577
  * @license
3578
3578
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3579
3579
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3580
- */const Xl=document.createElement("template");Xl.innerHTML="\n <style>\n :host {\n --vaadin-infinite-scroller-item-height: 270px;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n height: 100%;\n }\n </style>\n",si(class extends $l{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(Xl.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(e,t){e.month=Pl(t)}});
3580
+ */const Wl=document.createElement("template");Wl.innerHTML="\n <style>\n :host {\n --vaadin-infinite-scroller-item-height: 270px;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n height: 100%;\n }\n </style>\n",si(class extends Yl{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(Wl.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(e,t){e.month=Fl(t)}});
3581
3581
  /**
3582
3582
  * @license
3583
3583
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3584
3584
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3585
3585
  */
3586
- const Kl=document.createElement("template");Kl.innerHTML="\n <style>\n :host {\n --vaadin-infinite-scroller-item-height: 80px;\n width: 50px;\n display: block;\n height: 100%;\n position: absolute;\n right: 0;\n transform: translateX(100%);\n -webkit-tap-highlight-color: transparent;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n /* Center the year scroller position. */\n --vaadin-infinite-scroller-buffer-offset: 50%;\n }\n\n :host::before {\n content: '';\n display: block;\n background: transparent;\n width: 0;\n height: 0;\n position: absolute;\n left: 0;\n top: 50%;\n transform: translateY(-50%);\n border-width: 6px;\n border-style: solid;\n border-color: transparent;\n border-left-color: #000;\n }\n </style>\n",si(class extends $l{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(Kl.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(e,t){e.year=this._yearAfterXYears(t)}_yearAfterXYears(e){const t=new Date,i=new Date(t);return i.setFullYear(parseInt(e)+t.getFullYear()),i.getFullYear()}});
3586
+ const Zl=document.createElement("template");Zl.innerHTML="\n <style>\n :host {\n --vaadin-infinite-scroller-item-height: 80px;\n width: 50px;\n display: block;\n height: 100%;\n position: absolute;\n right: 0;\n transform: translateX(100%);\n -webkit-tap-highlight-color: transparent;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n /* Center the year scroller position. */\n --vaadin-infinite-scroller-buffer-offset: 50%;\n }\n\n :host::before {\n content: '';\n display: block;\n background: transparent;\n width: 0;\n height: 0;\n position: absolute;\n left: 0;\n top: 50%;\n transform: translateY(-50%);\n border-width: 6px;\n border-style: solid;\n border-color: transparent;\n border-left-color: #000;\n }\n </style>\n",si(class extends Yl{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(Zl.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(e,t){e.year=this._yearAfterXYears(t)}_yearAfterXYears(e){const t=new Date,i=new Date(t);return i.setFullYear(parseInt(e)+t.getFullYear()),i.getFullYear()}});
3587
3587
  /**
3588
3588
  * @license
3589
3589
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3590
3590
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3591
3591
  */
3592
- const Yl=e=>class extends e{static get properties(){return{year:{type:String,sync:!0},selectedDate:{type:Object,sync:!0}}}static get observers(){return["__updateSelected(year, selectedDate)"]}__updateSelected(e,t){this.toggleAttribute("selected",t&&t.getFullYear()===e),this.toggleAttribute("current",e===(new Date).getFullYear())}}
3592
+ const Ql=e=>class extends e{static get properties(){return{year:{type:String,sync:!0},selectedDate:{type:Object,sync:!0}}}static get observers(){return["__updateSelected(year, selectedDate)"]}__updateSelected(e,t){this.toggleAttribute("selected",t&&t.getFullYear()===e),this.toggleAttribute("current",e===(new Date).getFullYear())}}
3593
3593
  /**
3594
3594
  * @license
3595
3595
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3596
3596
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3597
- */;class Wl extends(Tr(Yl(Ko))){static get is(){return"vaadin-date-picker-year"}static get template(){return $o`
3597
+ */;class Jl extends(Tr(Ql(Ko))){static get is(){return"vaadin-date-picker-year"}static get template(){return $o`
3598
3598
  <style>
3599
3599
  :host {
3600
3600
  display: block;
@@ -3613,7 +3613,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
3613
3613
  Code distributed by Google as part of the polymer project is also
3614
3614
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3615
3615
  */
3616
- function Zl(e,t,i,r,n){let o;n&&(o="object"==typeof i&&null!==i,o&&(r=e.__dataTemp[t]));let s=r!==i&&(r==r||i==i);return o&&s&&(e.__dataTemp[t]=i),s}si(Wl);const Ql=rn((e=>class extends e{_shouldPropertyChange(e,t,i){return Zl(this,e,t,i,!0)}})),Jl=rn((e=>class extends e{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(e,t,i){return Zl(this,e,t,i,this.mutableData)}}));Ql._mutablePropertyChange=Zl;
3616
+ function eh(e,t,i,r,n){let o;n&&(o="object"==typeof i&&null!==i,o&&(r=e.__dataTemp[t]));let s=r!==i&&(r==r||i==i);return o&&s&&(e.__dataTemp[t]=i),s}si(Jl);const th=rn((e=>class extends e{_shouldPropertyChange(e,t,i){return eh(this,e,t,i,!0)}})),ih=rn((e=>class extends e{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(e,t,i){return eh(this,e,t,i,this.mutableData)}}));th._mutablePropertyChange=eh;
3617
3617
  /**
3618
3618
  @license
3619
3619
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -3623,7 +3623,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
3623
3623
  Code distributed by Google as part of the polymer project is also
3624
3624
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3625
3625
  */
3626
- let eh=null;function th(){return eh}th.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:th,writable:!0}});const ih=Bo(th),rh=Ql(ih),nh=Bo(class{});class oh extends nh{constructor(e){super(),this._configureProperties(e),this.root=this._stampTemplate(this.__dataHost);let t=[];this.children=t;for(let e=this.root.firstChild;e;e=e.nextSibling)t.push(e),e.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let i=this.__templatizeOptions;(e&&i.instanceProps||!i.instanceProps)&&this._enableProperties()}_configureProperties(e){if(this.__templatizeOptions.forwardHostProp)for(let e in this.__hostProps)this._setPendingProperty(e,this.__dataHost["_host_"+e]);for(let t in e)this._setPendingProperty(t,e[t])}forwardHostProp(e,t){this._setPendingPropertyOrPath(e,t,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(e,t,i){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(e,t,(e=>{e.model=this,i(e)}));else{let r=this.__dataHost.__dataHost;r&&r._addEventListenerToNode(e,t,i)}}_showHideChildren(e){!function(e,t){for(let i=0;i<t.length;i++){let r=t[i];if(!!e!=!!r.__hideTemplateChildren__)if(r.nodeType===Node.TEXT_NODE)e?(r.__polymerTextContent__=r.textContent,r.textContent=""):r.textContent=r.__polymerTextContent__;else if("slot"===r.localName)if(e)r.__polymerReplaced__=document.createComment("hidden-slot"),gn(gn(r).parentNode).replaceChild(r.__polymerReplaced__,r);else{const e=r.__polymerReplaced__;e&&gn(gn(e).parentNode).replaceChild(r,e)}else r.style&&(e?(r.__polymerDisplay__=r.style.display,r.style.display="none"):r.style.display=r.__polymerDisplay__);r.__hideTemplateChildren__=e,r._showHideChildren&&r._showHideChildren(e)}}(e,this.children)}_setUnmanagedPropertyToNode(e,t,i){e.__hideTemplateChildren__&&e.nodeType==Node.TEXT_NODE&&"textContent"==t?e.__polymerTextContent__=i:super._setUnmanagedPropertyToNode(e,t,i)}get parentModel(){let e=this.__parentModel;if(!e){let t;e=this;do{e=e.__dataHost.__dataHost}while((t=e.__templatizeOptions)&&!t.parentModel);this.__parentModel=e}return e}dispatchEvent(e){return!0}}const sh=Ql(oh);function ah(e){let t=e.__dataHost;return t&&t._methodHost||t}function lh(e,t){return function(e,i,r){t.call(e.__templatizeOwner,i.substring(6),r[i])}}function hh(e,t){return function(e,i,r){t.call(e.__templatizeOwner,e,i,r[i])}}function ch(e,t,i){if(Hr&&!ah(e))throw new Error("strictTemplatePolicy: template owner not trusted");if(i=i||{},e.__templatizeOwner)throw new Error("A <template> can only be templatized once");e.__templatizeOwner=t;let r=(t?t.constructor:oh)._parseTemplate(e),n=r.templatizeInstanceClass;n||(n=function(e,t,i){let r=i.mutableData?sh:oh;ch.mixin&&(r=ch.mixin(r));let n=class extends r{};return n.prototype.__templatizeOptions=i,n.prototype._bindTemplate(e),function(e,t,i,r){let n=i.hostProps||{};for(let t in r.instanceProps){delete n[t];let i=r.notifyInstanceProp;i&&e.prototype._addPropertyEffect(t,e.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:hh(0,i)})}if(r.forwardHostProp&&t.__dataHost)for(let t in n)i.hasHostProps||(i.hasHostProps=!0),e.prototype._addPropertyEffect(t,e.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:function(e,t,i){e.__dataHost._setPendingPropertyOrPath("_host_"+t,i[t],!0,!0)}})}(n,e,t,i),n}(e,r,i),r.templatizeInstanceClass=n);const o=ah(e);!function(e,t,i,r){let n=i.forwardHostProp;if(n&&t.hasHostProps){const o="template"==e.localName;let s=t.templatizeTemplateClass;if(!s){if(o){let e=i.mutableData?rh:ih;class r extends e{}s=t.templatizeTemplateClass=r}else{const i=e.constructor;class r extends i{}s=t.templatizeTemplateClass=r}let a=t.hostProps;for(let e in a)s.prototype._addPropertyEffect("_host_"+e,s.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:lh(0,n)}),s.prototype._createNotifyingProperty("_host_"+e);Xr&&r&&function(e,t,i){const r=i.constructor._properties,{propertyEffects:n}=e,{instanceProps:o}=t;for(let e in n)if(!(r[e]||o&&o[e])){const t=n[e];for(let i=0;i<t.length;i++){const{part:r}=t[i].info;if(!r.signature||!r.signature.static){console.warn(`Property '${e}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}(t,i,r)}if(e.__dataProto&&Object.assign(e.__data,e.__dataProto),o)(function(e,t){eh=e,Object.setPrototypeOf(e,t.prototype),new t,eh=null})(e,s),e.__dataTemp={},e.__dataPending=null,e.__dataOld=null,e._enableProperties();else{Object.setPrototypeOf(e,s.prototype);const i=t.hostProps;for(let t in i)if(t="_host_"+t,t in e){const i=e[t];delete e[t],e.__data[t]=i}}}}(e,r,i,o);let s=class extends n{};return s.prototype._methodHost=o,s.prototype.__dataHost=e,s.prototype.__templatizeOwner=t,s.prototype.__hostProps=r.hostProps,s}
3626
+ let rh=null;function nh(){return rh}nh.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:nh,writable:!0}});const oh=Bo(nh),sh=th(oh),ah=Bo(class{});class lh extends ah{constructor(e){super(),this._configureProperties(e),this.root=this._stampTemplate(this.__dataHost);let t=[];this.children=t;for(let e=this.root.firstChild;e;e=e.nextSibling)t.push(e),e.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let i=this.__templatizeOptions;(e&&i.instanceProps||!i.instanceProps)&&this._enableProperties()}_configureProperties(e){if(this.__templatizeOptions.forwardHostProp)for(let e in this.__hostProps)this._setPendingProperty(e,this.__dataHost["_host_"+e]);for(let t in e)this._setPendingProperty(t,e[t])}forwardHostProp(e,t){this._setPendingPropertyOrPath(e,t,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(e,t,i){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(e,t,(e=>{e.model=this,i(e)}));else{let r=this.__dataHost.__dataHost;r&&r._addEventListenerToNode(e,t,i)}}_showHideChildren(e){!function(e,t){for(let i=0;i<t.length;i++){let r=t[i];if(!!e!=!!r.__hideTemplateChildren__)if(r.nodeType===Node.TEXT_NODE)e?(r.__polymerTextContent__=r.textContent,r.textContent=""):r.textContent=r.__polymerTextContent__;else if("slot"===r.localName)if(e)r.__polymerReplaced__=document.createComment("hidden-slot"),gn(gn(r).parentNode).replaceChild(r.__polymerReplaced__,r);else{const e=r.__polymerReplaced__;e&&gn(gn(e).parentNode).replaceChild(r,e)}else r.style&&(e?(r.__polymerDisplay__=r.style.display,r.style.display="none"):r.style.display=r.__polymerDisplay__);r.__hideTemplateChildren__=e,r._showHideChildren&&r._showHideChildren(e)}}(e,this.children)}_setUnmanagedPropertyToNode(e,t,i){e.__hideTemplateChildren__&&e.nodeType==Node.TEXT_NODE&&"textContent"==t?e.__polymerTextContent__=i:super._setUnmanagedPropertyToNode(e,t,i)}get parentModel(){let e=this.__parentModel;if(!e){let t;e=this;do{e=e.__dataHost.__dataHost}while((t=e.__templatizeOptions)&&!t.parentModel);this.__parentModel=e}return e}dispatchEvent(e){return!0}}const hh=th(lh);function ch(e){let t=e.__dataHost;return t&&t._methodHost||t}function dh(e,t){return function(e,i,r){t.call(e.__templatizeOwner,i.substring(6),r[i])}}function uh(e,t){return function(e,i,r){t.call(e.__templatizeOwner,e,i,r[i])}}function mh(e,t,i){if(Hr&&!ch(e))throw new Error("strictTemplatePolicy: template owner not trusted");if(i=i||{},e.__templatizeOwner)throw new Error("A <template> can only be templatized once");e.__templatizeOwner=t;let r=(t?t.constructor:lh)._parseTemplate(e),n=r.templatizeInstanceClass;n||(n=function(e,t,i){let r=i.mutableData?hh:lh;mh.mixin&&(r=mh.mixin(r));let n=class extends r{};return n.prototype.__templatizeOptions=i,n.prototype._bindTemplate(e),function(e,t,i,r){let n=i.hostProps||{};for(let t in r.instanceProps){delete n[t];let i=r.notifyInstanceProp;i&&e.prototype._addPropertyEffect(t,e.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:uh(0,i)})}if(r.forwardHostProp&&t.__dataHost)for(let t in n)i.hasHostProps||(i.hasHostProps=!0),e.prototype._addPropertyEffect(t,e.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:function(e,t,i){e.__dataHost._setPendingPropertyOrPath("_host_"+t,i[t],!0,!0)}})}(n,e,t,i),n}(e,r,i),r.templatizeInstanceClass=n);const o=ch(e);!function(e,t,i,r){let n=i.forwardHostProp;if(n&&t.hasHostProps){const o="template"==e.localName;let s=t.templatizeTemplateClass;if(!s){if(o){let e=i.mutableData?sh:oh;class r extends e{}s=t.templatizeTemplateClass=r}else{const i=e.constructor;class r extends i{}s=t.templatizeTemplateClass=r}let a=t.hostProps;for(let e in a)s.prototype._addPropertyEffect("_host_"+e,s.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:dh(0,n)}),s.prototype._createNotifyingProperty("_host_"+e);Xr&&r&&function(e,t,i){const r=i.constructor._properties,{propertyEffects:n}=e,{instanceProps:o}=t;for(let e in n)if(!(r[e]||o&&o[e])){const t=n[e];for(let i=0;i<t.length;i++){const{part:r}=t[i].info;if(!r.signature||!r.signature.static){console.warn(`Property '${e}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}(t,i,r)}if(e.__dataProto&&Object.assign(e.__data,e.__dataProto),o)(function(e,t){rh=e,Object.setPrototypeOf(e,t.prototype),new t,rh=null})(e,s),e.__dataTemp={},e.__dataPending=null,e.__dataOld=null,e._enableProperties();else{Object.setPrototypeOf(e,s.prototype);const i=t.hostProps;for(let t in i)if(t="_host_"+t,t in e){const i=e[t];delete e[t],e.__data[t]=i}}}}(e,r,i,o);let s=class extends n{};return s.prototype._methodHost=o,s.prototype.__dataHost=e,s.prototype.__templatizeOwner=t,s.prototype.__hostProps=r.hostProps,s}
3627
3627
  /**
3628
3628
  @license
3629
3629
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -3633,7 +3633,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
3633
3633
  Code distributed by Google as part of the polymer project is also
3634
3634
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3635
3635
  */
3636
- let dh=!1;
3636
+ let ph=!1;
3637
3637
  /**
3638
3638
  @license
3639
3639
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -3643,13 +3643,13 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
3643
3643
  Code distributed by Google as part of the polymer project is also
3644
3644
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3645
3645
  */
3646
- const uh=Jl(Ko);class mh extends uh{static get is(){return"dom-repeat"}static get template(){return null}static get properties(){return{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},itemsIndexAs:{type:String,value:"itemsIndex"},sort:{type:Function,observer:"__sortChanged"},filter:{type:Function,observer:"__filterChanged"},observe:{type:String,observer:"__observeChanged"},delay:Number,renderedItemCount:{type:Number,notify:!Jr,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let e=0;e<this.__instances.length;e++)this.__detachInstance(e);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),function(){if($r&&!Lr){if(!dh){dh=!0;const e=document.createElement("style");e.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(e)}return!0}return!1}()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let e=gn(gn(this).parentNode);for(let t=0;t<this.__instances.length;t++)this.__attachInstance(t,e);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const e=this;let t=this.template=e._templateInfo?e:this.querySelector("template");if(!t){let e=new MutationObserver((()=>{if(!this.querySelector("template"))throw new Error("dom-repeat requires a <template> child");e.disconnect(),this.__render()}));return e.observe(this,{childList:!0}),!1}let i={};i[this.as]=!0,i[this.indexAs]=!0,i[this.itemsIndexAs]=!0,this.__ctor=ch(t,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:i,forwardHostProp:function(e,t){let i=this.__instances;for(let r,n=0;n<i.length&&(r=i[n]);n++)r.forwardHostProp(e,t)},notifyInstanceProp:function(e,t,i){if(function(e,t){return e===t||yn(e,t)||wn(e,t)}(this.as,t)){let r=e[this.itemsIndexAs];t==this.as&&(this.items[r]=i);let n=kn(this.as,`${JSCompiler_renameProperty("items",this)}.${r}`,t);this.notifyPath(n,i)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(e){if("string"==typeof e){let t=e,i=this.__getMethodHost();return function(){return i[t].apply(i,arguments)}}return e}__sortChanged(e){this.__sortFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__filterChanged(e){this.__filterFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(e){return Math.ceil(1e3/e)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(e){if(this.__sortFn||this.__filterFn)if(e){if(this.__observePaths){let t=this.__observePaths;for(let i=0;i<t.length;i++)0===e.indexOf(t[i])&&this.__debounceRender(this.__render,this.delay)}}else this.__debounceRender(this.__render,this.delay)}__itemsChanged(e){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(e.path,e.value)||("items"===e.path&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(e,t=0){this.__renderDebouncer=jl.debounce(this.__renderDebouncer,t>0?Pn.after(t):Ln,e.bind(this)),Fl.add(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),Hl()}__render(){if(!this.__ensureTemplatized())return;let e=this.items||[];const t=this.__sortAndFilterItems(e),i=this.__calculateLimit(t.length);this.__updateInstances(e,i,t),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame((()=>{this.__chunkingId=null,this.__continueChunking()}))),this._setRenderedItemCount(this.__instances.length),(!Jr||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(e){let t=new Array(e.length);for(let i=0;i<e.length;i++)t[i]=i;return this.__filterFn&&(t=t.filter(((t,i,r)=>this.__filterFn(e[t],i,r)))),this.__sortFn&&t.sort(((t,i)=>this.__sortFn(e[t],e[i]))),t}__calculateLimit(e){let t=e;const i=this.__instances.length;if(this.initialCount){let r;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(t=Math.min(e,this.initialCount),r=Math.max(t-i,0),this.__chunkCount=r||1):(r=Math.min(Math.max(e-i,0),this.__chunkCount),t=Math.min(i+r,e)),this.__shouldMeasureChunk=r===this.__chunkCount,this.__shouldContinueChunking=t<e,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,t}__continueChunking(){if(this.__shouldMeasureChunk){const e=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this.__chunkCount*(this._targetFrameTime/e))||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(e,t,i){const r=this.__itemsIdxToInstIdx={};let n;for(n=0;n<t;n++){let t=this.__instances[n],o=i[n],s=e[o];r[o]=n,t?(t._setPendingProperty(this.as,s),t._setPendingProperty(this.indexAs,n),t._setPendingProperty(this.itemsIndexAs,o),t._flushProperties()):this.__insertInstance(s,n,o)}for(let e=this.__instances.length-1;e>=n;e--)this.__detachAndRemoveInstance(e)}__detachInstance(e){let t=this.__instances[e];const i=gn(t.root);for(let e=0;e<t.children.length;e++)i.appendChild(t.children[e]);return t}__attachInstance(e,t){t.insertBefore(this.__instances[e].root,this)}__detachAndRemoveInstance(e){this.__detachInstance(e),this.__instances.splice(e,1)}__stampInstance(e,t,i){let r={};return r[this.as]=e,r[this.indexAs]=t,r[this.itemsIndexAs]=i,new this.__ctor(r)}__insertInstance(e,t,i){const r=this.__stampInstance(e,t,i);let n=this.__instances[t+1],o=n?n.children[0]:this;return gn(gn(this).parentNode).insertBefore(r.root,o),this.__instances[t]=r,r}_showHideChildren(e){for(let t=0;t<this.__instances.length;t++)this.__instances[t]._showHideChildren(e)}__handleItemPath(e,t){let i=e.slice(6),r=i.indexOf("."),n=r<0?i:i.substring(0,r);if(n==parseInt(n,10)){let e=r<0?"":i.substring(r+1);this.__handleObservedPaths(e);let o=this.__instances[this.__itemsIdxToInstIdx[n]];return o&&(o._setPendingPropertyOrPath(this.as+(e?"."+e:""),t,!1,!0),o._flushProperties()),!0}}itemForElement(e){let t=this.modelForElement(e);return t&&t[this.as]}indexForElement(e){let t=this.modelForElement(e);return t&&t[this.indexAs]}modelForElement(e){return function(e,t){let i;for(;t;)if(i=t.__dataHost?t:t.__templatizeInstance){if(i.__dataHost==e)return i;t=i.__dataHost}else t=gn(t).parentNode;return null}(this.template,e)}}customElements.define(mh.is,mh);
3646
+ const _h=ih(Ko);class fh extends _h{static get is(){return"dom-repeat"}static get template(){return null}static get properties(){return{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},itemsIndexAs:{type:String,value:"itemsIndex"},sort:{type:Function,observer:"__sortChanged"},filter:{type:Function,observer:"__filterChanged"},observe:{type:String,observer:"__observeChanged"},delay:Number,renderedItemCount:{type:Number,notify:!Jr,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let e=0;e<this.__instances.length;e++)this.__detachInstance(e);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),function(){if($r&&!Lr){if(!ph){ph=!0;const e=document.createElement("style");e.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(e)}return!0}return!1}()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let e=gn(gn(this).parentNode);for(let t=0;t<this.__instances.length;t++)this.__attachInstance(t,e);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const e=this;let t=this.template=e._templateInfo?e:this.querySelector("template");if(!t){let e=new MutationObserver((()=>{if(!this.querySelector("template"))throw new Error("dom-repeat requires a <template> child");e.disconnect(),this.__render()}));return e.observe(this,{childList:!0}),!1}let i={};i[this.as]=!0,i[this.indexAs]=!0,i[this.itemsIndexAs]=!0,this.__ctor=mh(t,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:i,forwardHostProp:function(e,t){let i=this.__instances;for(let r,n=0;n<i.length&&(r=i[n]);n++)r.forwardHostProp(e,t)},notifyInstanceProp:function(e,t,i){if(function(e,t){return e===t||yn(e,t)||wn(e,t)}(this.as,t)){let r=e[this.itemsIndexAs];t==this.as&&(this.items[r]=i);let n=kn(this.as,`${JSCompiler_renameProperty("items",this)}.${r}`,t);this.notifyPath(n,i)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(e){if("string"==typeof e){let t=e,i=this.__getMethodHost();return function(){return i[t].apply(i,arguments)}}return e}__sortChanged(e){this.__sortFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__filterChanged(e){this.__filterFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(e){return Math.ceil(1e3/e)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(e){if(this.__sortFn||this.__filterFn)if(e){if(this.__observePaths){let t=this.__observePaths;for(let i=0;i<t.length;i++)0===e.indexOf(t[i])&&this.__debounceRender(this.__render,this.delay)}}else this.__debounceRender(this.__render,this.delay)}__itemsChanged(e){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(e.path,e.value)||("items"===e.path&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(e,t=0){this.__renderDebouncer=Hl.debounce(this.__renderDebouncer,t>0?Pn.after(t):Ln,e.bind(this)),Vl.add(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),Xl()}__render(){if(!this.__ensureTemplatized())return;let e=this.items||[];const t=this.__sortAndFilterItems(e),i=this.__calculateLimit(t.length);this.__updateInstances(e,i,t),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame((()=>{this.__chunkingId=null,this.__continueChunking()}))),this._setRenderedItemCount(this.__instances.length),(!Jr||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(e){let t=new Array(e.length);for(let i=0;i<e.length;i++)t[i]=i;return this.__filterFn&&(t=t.filter(((t,i,r)=>this.__filterFn(e[t],i,r)))),this.__sortFn&&t.sort(((t,i)=>this.__sortFn(e[t],e[i]))),t}__calculateLimit(e){let t=e;const i=this.__instances.length;if(this.initialCount){let r;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(t=Math.min(e,this.initialCount),r=Math.max(t-i,0),this.__chunkCount=r||1):(r=Math.min(Math.max(e-i,0),this.__chunkCount),t=Math.min(i+r,e)),this.__shouldMeasureChunk=r===this.__chunkCount,this.__shouldContinueChunking=t<e,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,t}__continueChunking(){if(this.__shouldMeasureChunk){const e=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this.__chunkCount*(this._targetFrameTime/e))||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(e,t,i){const r=this.__itemsIdxToInstIdx={};let n;for(n=0;n<t;n++){let t=this.__instances[n],o=i[n],s=e[o];r[o]=n,t?(t._setPendingProperty(this.as,s),t._setPendingProperty(this.indexAs,n),t._setPendingProperty(this.itemsIndexAs,o),t._flushProperties()):this.__insertInstance(s,n,o)}for(let e=this.__instances.length-1;e>=n;e--)this.__detachAndRemoveInstance(e)}__detachInstance(e){let t=this.__instances[e];const i=gn(t.root);for(let e=0;e<t.children.length;e++)i.appendChild(t.children[e]);return t}__attachInstance(e,t){t.insertBefore(this.__instances[e].root,this)}__detachAndRemoveInstance(e){this.__detachInstance(e),this.__instances.splice(e,1)}__stampInstance(e,t,i){let r={};return r[this.as]=e,r[this.indexAs]=t,r[this.itemsIndexAs]=i,new this.__ctor(r)}__insertInstance(e,t,i){const r=this.__stampInstance(e,t,i);let n=this.__instances[t+1],o=n?n.children[0]:this;return gn(gn(this).parentNode).insertBefore(r.root,o),this.__instances[t]=r,r}_showHideChildren(e){for(let t=0;t<this.__instances.length;t++)this.__instances[t]._showHideChildren(e)}__handleItemPath(e,t){let i=e.slice(6),r=i.indexOf("."),n=r<0?i:i.substring(0,r);if(n==parseInt(n,10)){let e=r<0?"":i.substring(r+1);this.__handleObservedPaths(e);let o=this.__instances[this.__itemsIdxToInstIdx[n]];return o&&(o._setPendingPropertyOrPath(this.as+(e?"."+e:""),t,!1,!0),o._flushProperties()),!0}}itemForElement(e){let t=this.modelForElement(e);return t&&t[this.as]}indexForElement(e){let t=this.modelForElement(e);return t&&t[this.indexAs]}modelForElement(e){return function(e,t){let i;for(;t;)if(i=t.__dataHost?t:t.__templatizeInstance){if(i.__dataHost==e)return i;t=i.__dataHost}else t=gn(t).parentNode;return null}(this.template,e)}}customElements.define(fh.is,fh);
3647
3647
  /**
3648
3648
  * @license
3649
3649
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3650
3650
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3651
3651
  */
3652
- const ph=e=>class extends(ma(e)){static get properties(){return{month:{type:Object,value:new Date,sync:!0},selectedDate:{type:Object,notify:!0,sync:!0},focusedDate:{type:Object},showWeekNumbers:{type:Boolean,value:!1},i18n:{type:Object},ignoreTaps:{type:Boolean},minDate:{type:Date,value:null,sync:!0},maxDate:{type:Date,value:null,sync:!0},isDateDisabled:{type:Function,value:()=>!1},disabled:{type:Boolean,reflectToAttribute:!0},_days:{type:Array},_weeks:{type:Array},_notTapping:{type:Boolean}}}static get observers(){return["__focusedDateChanged(focusedDate, _days)"]}get focusableDateElement(){return[...this.shadowRoot.querySelectorAll("[part~=date]")].find((e=>Gl(e.date,this.focusedDate)))}ready(){super.ready(),Xs(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(e,t,i){const r=new Date(0,0);r.setFullYear(e.getFullYear()),r.setMonth(e.getMonth()),r.setDate(1);const n=new Date(0,0);return n.setFullYear(e.getFullYear()),n.setMonth(e.getMonth()+1),n.setDate(0),!(t&&i&&t.getMonth()===i.getMonth()&&t.getMonth()===e.getMonth()&&i.getDate()-t.getDate()>=0||Ul(r,t,i)||Ul(n,t,i))}_getTitle(e,t){if(void 0!==e&&void 0!==t)return t.formatTitle(t.monthNames[e.getMonth()],e.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout((()=>{this._notTapping=!0}),300)}_dateAdd(e,t){e.setDate(e.getDate()+t)}_applyFirstDayOfWeek(e,t){if(void 0!==e&&void 0!==t)return e.slice(t).concat(e.slice(0,t))}_getWeekDayNames(e,t){if(void 0===e||void 0===t)return[];const{weekdays:i,weekdaysShort:r,firstDayOfWeek:n}=e,o=this._applyFirstDayOfWeek(r,n);return this._applyFirstDayOfWeek(i,n).map(((e,t)=>({weekDay:e,weekDayShort:o[t]}))).slice(0,7)}__focusedDateChanged(e,t){Array.isArray(t)&&t.some((t=>Gl(t,e)))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(e){return e?e.getDate():""}_showWeekSeparator(e,t){return e&&t&&1===t.firstDayOfWeek}_isToday(e){return Gl(new Date,e)}_getDays(e,t){if(void 0===e||void 0===t)return[];const i=new Date(0,0);for(i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()),i.setDate(1);i.getDay()!==t.firstDayOfWeek;)this._dateAdd(i,-1);const r=[],n=i.getMonth(),o=e.getMonth();for(;i.getMonth()===o||i.getMonth()===n;)r.push(i.getMonth()===o?new Date(i.getTime()):null),this._dateAdd(i,1);return r}_getWeeks(e){return e.reduce(((e,t,i)=>(i%7==0&&e.push([]),e[e.length-1].push(t),e)),[])}_handleTap(e){!this.ignoreTaps&&!this._notTapping&&e.target.date&&!e.target.hasAttribute("disabled")&&(this.selectedDate=e.target.date,this.dispatchEvent(new CustomEvent("date-tap",{detail:{date:e.target.date},bubbles:!0,composed:!0})))}_preventDefault(e){e.preventDefault()}__getWeekNumber(e){
3652
+ const vh=e=>class extends(fa(e)){static get properties(){return{month:{type:Object,value:new Date,sync:!0},selectedDate:{type:Object,notify:!0,sync:!0},focusedDate:{type:Object},showWeekNumbers:{type:Boolean,value:!1},i18n:{type:Object},ignoreTaps:{type:Boolean},minDate:{type:Date,value:null,sync:!0},maxDate:{type:Date,value:null,sync:!0},isDateDisabled:{type:Function,value:()=>!1},disabled:{type:Boolean,reflectToAttribute:!0},_days:{type:Array},_weeks:{type:Array},_notTapping:{type:Boolean}}}static get observers(){return["__focusedDateChanged(focusedDate, _days)"]}get focusableDateElement(){return[...this.shadowRoot.querySelectorAll("[part~=date]")].find((e=>Bl(e.date,this.focusedDate)))}ready(){super.ready(),Ws(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(e,t,i){const r=new Date(0,0);r.setFullYear(e.getFullYear()),r.setMonth(e.getMonth()),r.setDate(1);const n=new Date(0,0);return n.setFullYear(e.getFullYear()),n.setMonth(e.getMonth()+1),n.setDate(0),!(t&&i&&t.getMonth()===i.getMonth()&&t.getMonth()===e.getMonth()&&i.getDate()-t.getDate()>=0||Ll(r,t,i)||Ll(n,t,i))}_getTitle(e,t){if(void 0!==e&&void 0!==t)return t.formatTitle(t.monthNames[e.getMonth()],e.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout((()=>{this._notTapping=!0}),300)}_dateAdd(e,t){e.setDate(e.getDate()+t)}_applyFirstDayOfWeek(e,t){if(void 0!==e&&void 0!==t)return e.slice(t).concat(e.slice(0,t))}_getWeekDayNames(e,t){if(void 0===e||void 0===t)return[];const{weekdays:i,weekdaysShort:r,firstDayOfWeek:n}=e,o=this._applyFirstDayOfWeek(r,n);return this._applyFirstDayOfWeek(i,n).map(((e,t)=>({weekDay:e,weekDayShort:o[t]}))).slice(0,7)}__focusedDateChanged(e,t){Array.isArray(t)&&t.some((t=>Bl(t,e)))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(e){return e?e.getDate():""}_showWeekSeparator(e,t){return e&&t&&1===t.firstDayOfWeek}_isToday(e){return Bl(new Date,e)}_getDays(e,t){if(void 0===e||void 0===t)return[];const i=new Date(0,0);for(i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()),i.setDate(1);i.getDay()!==t.firstDayOfWeek;)this._dateAdd(i,-1);const r=[],n=i.getMonth(),o=e.getMonth();for(;i.getMonth()===o||i.getMonth()===n;)r.push(i.getMonth()===o?new Date(i.getTime()):null),this._dateAdd(i,1);return r}_getWeeks(e){return e.reduce(((e,t,i)=>(i%7==0&&e.push([]),e[e.length-1].push(t),e)),[])}_handleTap(e){!this.ignoreTaps&&!this._notTapping&&e.target.date&&!e.target.hasAttribute("disabled")&&(this.selectedDate=e.target.date,this.dispatchEvent(new CustomEvent("date-tap",{detail:{date:e.target.date},bubbles:!0,composed:!0})))}_preventDefault(e){e.preventDefault()}__getWeekNumber(e){
3653
3653
  /**
3654
3654
  * @license
3655
3655
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
@@ -3721,7 +3721,7 @@ Sr("vaadin-month-calendar",mi`
3721
3721
  outline: 3px solid;
3722
3722
  }
3723
3723
  }
3724
- `,{moduleId:"vaadin-month-calendar-styles"});class _h extends(ph(Tr(Ko))){static get template(){return $o`
3724
+ `,{moduleId:"vaadin-month-calendar-styles"});class gh extends(vh(Tr(Ko))){static get template(){return $o`
3725
3725
  <div part="month-header" id="month-header" aria-hidden="true">[[_getTitle(month, i18n)]]</div>
3726
3726
  <table
3727
3727
  id="monthGrid"
@@ -3763,18 +3763,18 @@ Sr("vaadin-month-calendar",mi`
3763
3763
  </template>
3764
3764
  </tbody>
3765
3765
  </table>
3766
- `}static get is(){return"vaadin-month-calendar"}static get properties(){return{_days:{type:Array,computed:"_getDays(month, i18n, minDate, maxDate, isDateDisabled)"},_weeks:{type:Array,computed:"_getWeeks(_days)"},disabled:{type:Boolean,reflectToAttribute:!0,computed:"_isDisabled(month, minDate, maxDate)"}}}static get observers(){return["_showWeekNumbersChanged(showWeekNumbers, i18n)"]}_showWeekNumbersChanged(e,t){e&&t&&1===t.firstDayOfWeek?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(e,t,i,r,n,o){const s=["date"],a=e>zl(new Date),l=e<zl(new Date);return this.__isDayDisabled(e,r,n,o)&&s.push("disabled"),this.__isDayFocused(e,t)&&s.push("focused"),this.__isDaySelected(e,i)&&s.push("selected"),this._isToday(e)&&s.push("today"),l&&s.push("past"),a&&s.push("future"),s.join(" ")}__isDayFocused(e,t){return Gl(e,t)}__isDaySelected(e,t){return Gl(e,t)}__getDayAriaSelected(e,t){if(this.__isDaySelected(e,t))return"true"}__isDayDisabled(e,t,i,r){return!Ul(e,t,i,r)}__getDayAriaDisabled(e,t,i,r){if(void 0!==e&&(void 0!==t||void 0!==i||void 0!==r)&&this.__isDayDisabled(e,t,i,r))return"true"}__getDayTabindex(e,t){return this.__isDayFocused(e,t)?"0":"-1"}}si(_h);
3766
+ `}static get is(){return"vaadin-month-calendar"}static get properties(){return{_days:{type:Array,computed:"_getDays(month, i18n, minDate, maxDate, isDateDisabled)"},_weeks:{type:Array,computed:"_getWeeks(_days)"},disabled:{type:Boolean,reflectToAttribute:!0,computed:"_isDisabled(month, minDate, maxDate)"}}}static get observers(){return["_showWeekNumbersChanged(showWeekNumbers, i18n)"]}_showWeekNumbersChanged(e,t){e&&t&&1===t.firstDayOfWeek?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(e,t,i,r,n,o){const s=["date"],a=e>Ul(new Date),l=e<Ul(new Date);return this.__isDayDisabled(e,r,n,o)&&s.push("disabled"),this.__isDayFocused(e,t)&&s.push("focused"),this.__isDaySelected(e,i)&&s.push("selected"),this._isToday(e)&&s.push("today"),l&&s.push("past"),a&&s.push("future"),s.join(" ")}__isDayFocused(e,t){return Bl(e,t)}__isDaySelected(e,t){return Bl(e,t)}__getDayAriaSelected(e,t){if(this.__isDaySelected(e,t))return"true"}__isDayDisabled(e,t,i,r){return!Ll(e,t,i,r)}__getDayAriaDisabled(e,t,i,r){if(void 0!==e&&(void 0!==t||void 0!==i||void 0!==r)&&this.__isDayDisabled(e,t,i,r))return"true"}__getDayTabindex(e,t){return this.__isDayFocused(e,t)?"0":"-1"}}si(gh);
3767
3767
  /**
3768
3768
  * @license
3769
3769
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3770
3770
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3771
3771
  */
3772
- class fh{constructor(e,t){this.query=e,this.callback=t,this._boundQueryHandler=this._queryHandler.bind(this)}hostConnected(){this._removeListener(),this._mediaQuery=window.matchMedia(this.query),this._addListener(),this._queryHandler(this._mediaQuery)}hostDisconnected(){this._removeListener()}_addListener(){this._mediaQuery&&this._mediaQuery.addListener(this._boundQueryHandler)}_removeListener(){this._mediaQuery&&this._mediaQuery.removeListener(this._boundQueryHandler),this._mediaQuery=null}_queryHandler(e){"function"==typeof this.callback&&this.callback(e.matches)}}
3772
+ class Eh{constructor(e,t){this.query=e,this.callback=t,this._boundQueryHandler=this._queryHandler.bind(this)}hostConnected(){this._removeListener(),this._mediaQuery=window.matchMedia(this.query),this._addListener(),this._queryHandler(this._mediaQuery)}hostDisconnected(){this._removeListener()}_addListener(){this._mediaQuery&&this._mediaQuery.addListener(this._boundQueryHandler)}_removeListener(){this._mediaQuery&&this._mediaQuery.removeListener(this._boundQueryHandler),this._mediaQuery=null}_queryHandler(e){"function"==typeof this.callback&&this.callback(e.matches)}}
3773
3773
  /**
3774
3774
  * @license
3775
3775
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3776
3776
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3777
- */const vh=e=>class extends e{static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_originDate:{type:Object,value:new Date},_visibleMonthIndex:Number,_desktopMode:{type:Boolean,observer:"_desktopModeChanged"},_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean,value:!1},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:!0},maxDate:{type:Object,sync:!0},isDateDisabled:{type:Function},label:String,_cancelButton:{type:Object},_todayButton:{type:Object},calendars:{type:Array,value:()=>[]},years:{type:Array,value:()=>[]}}}static get observers(){return["__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme, isDateDisabled)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate, isDateDisabled)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map((e=>e.focusableDateElement)).find(Boolean)}_addListeners(){Ys(this.$.scrollers,"pan-y"),Xs(this.$.scrollers,"track",this._track.bind(this)),Xs(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),Xs(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),Xs(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new fh(this._desktopMediaQuery,(e=>{this._desktopMode=e}))),this.addController(new Ss(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",(e=>this.__onTodayButtonKeyDown(e))),Xs(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new Ss(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",(e=>this.__onCancelButtonKeyDown(e))),Xs(e,"tap",this._cancel.bind(this)),this._cancelButton=e}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(e,t){const i=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+i,t),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new Ss(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:e=>{e.addEventListener("custom-scroll",(()=>{this._onMonthScroll()})),e.addEventListener("touchstart",(()=>{this._onMonthScrollTouchStart()})),e.addEventListener("keydown",(e=>{this.__onMonthCalendarKeyDown(e)})),e.addEventListener("init-done",(()=>{const e=[...this.querySelectorAll("vaadin-month-calendar")];e.forEach((e=>{e.addEventListener("selected-date-changed",(e=>{this.selectedDate=e.detail.value}))})),this.calendars=e})),this._monthScroller=e}}))}__initYearScroller(){this.addController(new Ss(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),Xs(e,"tap",(e=>{this._onYearTap(e)})),e.addEventListener("custom-scroll",(()=>{this._onYearScroll()})),e.addEventListener("touchstart",(()=>{this._onYearScrollTouchStart()})),e.addEventListener("init-done",(()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]})),this._yearScroller=e}}))}__updateCancelButton(e,t){e&&(e.textContent=t&&t.cancel)}__updateTodayButton(e,t,i,r,n){e&&(e.textContent=t&&t.today,e.disabled=!this._isTodayAllowed(i,r,n))}__updateCalendars(e,t,i,r,n,o,s,a,l,h){e&&e.length&&e.forEach((e=>{e.i18n=t,e.minDate=i,e.maxDate=r,e.isDateDisabled=h,e.focusedDate=o,e.selectedDate=n,e.showWeekNumbers=s,e.ignoreTaps=a,l?e.setAttribute("theme",l):e.removeAttribute("theme")}))}__updateYears(e,t,i){e&&e.length&&e.forEach((e=>{e.selectedDate=t,i?e.setAttribute("theme",i):e.removeAttribute("theme")}))}_selectDate(e){return!!this._dateAllowed(e)&&(this.selectedDate=e,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:e},bubbles:!0,composed:!0})),!0)}_desktopModeChanged(e){this.toggleAttribute("desktop",e)}_focusedDateChanged(e){this.revealDate(e)}revealDate(e,t=!0){if(!e)return;const i=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const r=this._calculateWeekScrollOffset(e);return void this._scrollToPosition(i+r,t)}const r=this._monthScroller.position>i,n=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-2*this._monthScroller.bufferOffset)/this._monthScroller.itemHeight,o=this._monthScroller.position+n-1<i;r?this._scrollToPosition(i,t):o&&this._scrollToPosition(i-n+1,t)}_calculateWeekScrollOffset(e){const t=new Date(0,0);t.setFullYear(e.getFullYear()),t.setMonth(e.getMonth()),t.setDate(1);let i=0;for(;t.getDate()<e.getDate();)t.setDate(t.getDate()+1),t.getDay()===this.i18n.firstDayOfWeek&&(i+=1);return i/6}_initialPositionChanged(e){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(e)}_repositionYearScroller(){const e=this._monthScroller.position;this._visibleMonthIndex=Math.floor(e),this._yearScroller.position=(e+this._originDate.getMonth())/12}_repositionMonthScroller(){this._monthScroller.position=12*this._yearScroller.position-this._originDate.getMonth(),this._visibleMonthIndex=Math.floor(this._monthScroller.position)}_onMonthScroll(){this._repositionYearScroller(),this._doIgnoreTaps()}_onYearScroll(){this._repositionMonthScroller(),this._doIgnoreTaps()}_onYearScrollTouchStart(){this._notTapping=!1,setTimeout((()=>{this._notTapping=!0}),300),this._repositionMonthScroller()}_onMonthScrollTouchStart(){this._repositionYearScroller()}_doIgnoreTaps(){this._ignoreTaps=!0,this._debouncer=ls.debounce(this._debouncer,rs.after(300),(()=>{this._ignoreTaps=!1}))}_formatDisplayed(e,t,i){return e&&t&&"function"==typeof t.formatDate?t.formatDate(Ml(e)):i}_onTodayTap(){const e=this._getTodayMidnight();Math.abs(this._monthScroller.position-this._differenceInMonths(e,this._originDate))<.001?(this._selectDate(e),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(e){if(!this._ignoreTaps&&!this._notTapping){const t=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+12*t,!0)}}_scrollToPosition(e,t){if(void 0!==this._targetPosition)return void(this._targetPosition=e);if(!t)return this._monthScroller.position=e,this._monthScroller.forceUpdate(),this._targetPosition=void 0,this._repositionYearScroller(),void this.__tryFocusDate();let i;this._targetPosition=e,this._revealPromise=new Promise((e=>{i=e}));let r=0;const n=this._monthScroller.position,o=e=>{r||(r=e);const t=e-r;if(t<this.scrollDuration){const e=((e,t,i)=>(e/=this.scrollDuration/2)<1?i/2*e*e+t:-i/2*((e-=1)*(e-2)-1)+t)(t,n,this._targetPosition-n);this._monthScroller.position=e,window.requestAnimationFrame(o)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:n}})),this._monthScroller.position=this._targetPosition,this._monthScroller.forceUpdate(),this._targetPosition=void 0,i(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(o)}_limit(e,t){return Math.min(t.max,Math.max(t.min,e))}_handleTrack(e){Math.abs(e.detail.dx)<10||Math.abs(e.detail.ddy)>10||(Math.abs(e.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0),this._translateX=this._limit(this._translateX+e.detail.ddx,{min:0,max:this._yearScrollerWidth}))}_track(e){if(!this._desktopMode)switch(e.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(e);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller()}}_toggleAnimateClass(e){e?this.classList.add("animate"):this.classList.remove("animate")}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller()}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","")}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(e){this._desktopMode||(this._monthScroller.style.transform=`translateX(${e-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${e}px)`)}_yearAfterXMonths(e){return Pl(e).getFullYear()}_differenceInMonths(e,t){return 12*(e.getFullYear()-t.getFullYear())-t.getMonth()+e.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(e){e.preventDefault()}__toggleDate(e){Gl(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e)}__onMonthCalendarKeyDown(e){let t=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),t=!0;break;case"ArrowUp":this._moveFocusByDays(-7),t=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),t=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),t=!0;break;case"Enter":this._selectDate(this.focusedDate)&&(this._close(),t=!0);break;case" ":this.__toggleDate(this.focusedDate),t=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),t=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),t=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),t=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),t=!0;break;case"Tab":this._onTabKeyDown(e,"calendar")}t&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,t){switch(e.stopPropagation(),t){case"calendar":e.shiftKey&&(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":e.shiftKey&&(e.preventDefault(),this.focusDateElement());break;case"cancel":e.shiftKey||(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput())}}__onTodayButtonKeyDown(e){"Tab"===e.key&&this._onTabKeyDown(e,"today")}__onCancelButtonKeyDown(e){"Tab"===e.key&&this._onTabKeyDown(e,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const e=this.focusableDateElement;e&&Gl(e.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,e.focus())}}focusDate(e,t){return oi(this,null,(function*(){const i=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=i,t||(this._focusedMonthDate=i.getDate()),yield this.focusDateElement(!1)}))}focusDateElement(e=!0){return oi(this,null,(function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise((e=>{il(this,(()=>{Hl(),e()}))}))),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()}))}_focusClosestDate(e){this.focusDate(Bl(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,t,i){this._dateAllowed(e,void 0,void 0,(()=>!1))?this.focusDate(e,i):this._dateAllowed(this.focusedDate)?this.focusDate(t>0?this.maxDate:this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,t){const i=new Date(0,0);return i.setFullYear(this.focusedDate.getFullYear()),i.setMonth(this.focusedDate.getMonth()+e),t&&i.setDate(this.focusedDate.getDate()+t),i}_moveFocusByDays(e){const t=this._getDateDiff(0,e);this._focusAllowedDate(t,e,!1)}_moveFocusByMonths(e){const t=this._getDateDiff(e),i=t.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),t.setDate(this._focusedMonthDate),t.getMonth()!==i&&t.setDate(0),this._focusAllowedDate(t,e,!0)}_moveFocusInsideMonth(e,t){const i=new Date(0,0);i.setFullYear(e.getFullYear()),"minDate"===t?(i.setMonth(e.getMonth()),i.setDate(1)):(i.setMonth(e.getMonth()+1),i.setDate(0)),this._dateAllowed(i)?this.focusDate(i):this._dateAllowed(e)?this.focusDate(this[t]):this._focusClosestDate(e)}_dateAllowed(e,t=this.minDate,i=this.maxDate,r=this.isDateDisabled){return Ul(e,t,i,r)}_isTodayAllowed(e,t,i){return this._dateAllowed(this._getTodayMidnight(),e,t,i)}_getTodayMidnight(){const e=new Date,t=new Date(0,0);return t.setFullYear(e.getFullYear()),t.setMonth(e.getMonth()),t.setDate(e.getDate()),t}}
3777
+ */const bh=e=>class extends e{static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_originDate:{type:Object,value:new Date},_visibleMonthIndex:Number,_desktopMode:{type:Boolean,observer:"_desktopModeChanged"},_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean,value:!1},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:!0},maxDate:{type:Object,sync:!0},isDateDisabled:{type:Function},label:String,_cancelButton:{type:Object},_todayButton:{type:Object},calendars:{type:Array,value:()=>[]},years:{type:Array,value:()=>[]}}}static get observers(){return["__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme, isDateDisabled)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate, isDateDisabled)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map((e=>e.focusableDateElement)).find(Boolean)}_addListeners(){Qs(this.$.scrollers,"pan-y"),Ws(this.$.scrollers,"track",this._track.bind(this)),Ws(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),Ws(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),Ws(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new Eh(this._desktopMediaQuery,(e=>{this._desktopMode=e}))),this.addController(new Ss(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",(e=>this.__onTodayButtonKeyDown(e))),Ws(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new Ss(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",(e=>this.__onCancelButtonKeyDown(e))),Ws(e,"tap",this._cancel.bind(this)),this._cancelButton=e}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(e,t){const i=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+i,t),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new Ss(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:e=>{e.addEventListener("custom-scroll",(()=>{this._onMonthScroll()})),e.addEventListener("touchstart",(()=>{this._onMonthScrollTouchStart()})),e.addEventListener("keydown",(e=>{this.__onMonthCalendarKeyDown(e)})),e.addEventListener("init-done",(()=>{const e=[...this.querySelectorAll("vaadin-month-calendar")];e.forEach((e=>{e.addEventListener("selected-date-changed",(e=>{this.selectedDate=e.detail.value}))})),this.calendars=e})),this._monthScroller=e}}))}__initYearScroller(){this.addController(new Ss(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),Ws(e,"tap",(e=>{this._onYearTap(e)})),e.addEventListener("custom-scroll",(()=>{this._onYearScroll()})),e.addEventListener("touchstart",(()=>{this._onYearScrollTouchStart()})),e.addEventListener("init-done",(()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]})),this._yearScroller=e}}))}__updateCancelButton(e,t){e&&(e.textContent=t&&t.cancel)}__updateTodayButton(e,t,i,r,n){e&&(e.textContent=t&&t.today,e.disabled=!this._isTodayAllowed(i,r,n))}__updateCalendars(e,t,i,r,n,o,s,a,l,h){e&&e.length&&e.forEach((e=>{e.i18n=t,e.minDate=i,e.maxDate=r,e.isDateDisabled=h,e.focusedDate=o,e.selectedDate=n,e.showWeekNumbers=s,e.ignoreTaps=a,l?e.setAttribute("theme",l):e.removeAttribute("theme")}))}__updateYears(e,t,i){e&&e.length&&e.forEach((e=>{e.selectedDate=t,i?e.setAttribute("theme",i):e.removeAttribute("theme")}))}_selectDate(e){return!!this._dateAllowed(e)&&(this.selectedDate=e,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:e},bubbles:!0,composed:!0})),!0)}_desktopModeChanged(e){this.toggleAttribute("desktop",e)}_focusedDateChanged(e){this.revealDate(e)}revealDate(e,t=!0){if(!e)return;const i=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const r=this._calculateWeekScrollOffset(e);return void this._scrollToPosition(i+r,t)}const r=this._monthScroller.position>i,n=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-2*this._monthScroller.bufferOffset)/this._monthScroller.itemHeight,o=this._monthScroller.position+n-1<i;r?this._scrollToPosition(i,t):o&&this._scrollToPosition(i-n+1,t)}_calculateWeekScrollOffset(e){const t=new Date(0,0);t.setFullYear(e.getFullYear()),t.setMonth(e.getMonth()),t.setDate(1);let i=0;for(;t.getDate()<e.getDate();)t.setDate(t.getDate()+1),t.getDay()===this.i18n.firstDayOfWeek&&(i+=1);return i/6}_initialPositionChanged(e){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(e)}_repositionYearScroller(){const e=this._monthScroller.position;this._visibleMonthIndex=Math.floor(e),this._yearScroller.position=(e+this._originDate.getMonth())/12}_repositionMonthScroller(){this._monthScroller.position=12*this._yearScroller.position-this._originDate.getMonth(),this._visibleMonthIndex=Math.floor(this._monthScroller.position)}_onMonthScroll(){this._repositionYearScroller(),this._doIgnoreTaps()}_onYearScroll(){this._repositionMonthScroller(),this._doIgnoreTaps()}_onYearScrollTouchStart(){this._notTapping=!1,setTimeout((()=>{this._notTapping=!0}),300),this._repositionMonthScroller()}_onMonthScrollTouchStart(){this._repositionYearScroller()}_doIgnoreTaps(){this._ignoreTaps=!0,this._debouncer=ls.debounce(this._debouncer,rs.after(300),(()=>{this._ignoreTaps=!1}))}_formatDisplayed(e,t,i){return e&&t&&"function"==typeof t.formatDate?t.formatDate(Pl(e)):i}_onTodayTap(){const e=this._getTodayMidnight();Math.abs(this._monthScroller.position-this._differenceInMonths(e,this._originDate))<.001?(this._selectDate(e),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(e){if(!this._ignoreTaps&&!this._notTapping){const t=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+12*t,!0)}}_scrollToPosition(e,t){if(void 0!==this._targetPosition)return void(this._targetPosition=e);if(!t)return this._monthScroller.position=e,this._monthScroller.forceUpdate(),this._targetPosition=void 0,this._repositionYearScroller(),void this.__tryFocusDate();let i;this._targetPosition=e,this._revealPromise=new Promise((e=>{i=e}));let r=0;const n=this._monthScroller.position,o=e=>{r||(r=e);const t=e-r;if(t<this.scrollDuration){const e=((e,t,i)=>(e/=this.scrollDuration/2)<1?i/2*e*e+t:-i/2*((e-=1)*(e-2)-1)+t)(t,n,this._targetPosition-n);this._monthScroller.position=e,window.requestAnimationFrame(o)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:n}})),this._monthScroller.position=this._targetPosition,this._monthScroller.forceUpdate(),this._targetPosition=void 0,i(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(o)}_limit(e,t){return Math.min(t.max,Math.max(t.min,e))}_handleTrack(e){Math.abs(e.detail.dx)<10||Math.abs(e.detail.ddy)>10||(Math.abs(e.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0),this._translateX=this._limit(this._translateX+e.detail.ddx,{min:0,max:this._yearScrollerWidth}))}_track(e){if(!this._desktopMode)switch(e.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(e);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller()}}_toggleAnimateClass(e){e?this.classList.add("animate"):this.classList.remove("animate")}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller()}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","")}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(e){this._desktopMode||(this._monthScroller.style.transform=`translateX(${e-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${e}px)`)}_yearAfterXMonths(e){return Fl(e).getFullYear()}_differenceInMonths(e,t){return 12*(e.getFullYear()-t.getFullYear())-t.getMonth()+e.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(e){e.preventDefault()}__toggleDate(e){Bl(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e)}__onMonthCalendarKeyDown(e){let t=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),t=!0;break;case"ArrowUp":this._moveFocusByDays(-7),t=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),t=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),t=!0;break;case"Enter":this._selectDate(this.focusedDate)&&(this._close(),t=!0);break;case" ":this.__toggleDate(this.focusedDate),t=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),t=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),t=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),t=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),t=!0;break;case"Tab":this._onTabKeyDown(e,"calendar")}t&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,t){switch(e.stopPropagation(),t){case"calendar":e.shiftKey&&(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":e.shiftKey&&(e.preventDefault(),this.focusDateElement());break;case"cancel":e.shiftKey||(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput())}}__onTodayButtonKeyDown(e){"Tab"===e.key&&this._onTabKeyDown(e,"today")}__onCancelButtonKeyDown(e){"Tab"===e.key&&this._onTabKeyDown(e,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const e=this.focusableDateElement;e&&Bl(e.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,e.focus())}}focusDate(e,t){return oi(this,null,(function*(){const i=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=i,t||(this._focusedMonthDate=i.getDate()),yield this.focusDateElement(!1)}))}focusDateElement(e=!0){return oi(this,null,(function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise((e=>{ol(this,(()=>{Xl(),e()}))}))),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()}))}_focusClosestDate(e){this.focusDate(jl(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,t,i){this._dateAllowed(e,void 0,void 0,(()=>!1))?this.focusDate(e,i):this._dateAllowed(this.focusedDate)?this.focusDate(t>0?this.maxDate:this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,t){const i=new Date(0,0);return i.setFullYear(this.focusedDate.getFullYear()),i.setMonth(this.focusedDate.getMonth()+e),t&&i.setDate(this.focusedDate.getDate()+t),i}_moveFocusByDays(e){const t=this._getDateDiff(0,e);this._focusAllowedDate(t,e,!1)}_moveFocusByMonths(e){const t=this._getDateDiff(e),i=t.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),t.setDate(this._focusedMonthDate),t.getMonth()!==i&&t.setDate(0),this._focusAllowedDate(t,e,!0)}_moveFocusInsideMonth(e,t){const i=new Date(0,0);i.setFullYear(e.getFullYear()),"minDate"===t?(i.setMonth(e.getMonth()),i.setDate(1)):(i.setMonth(e.getMonth()+1),i.setDate(0)),this._dateAllowed(i)?this.focusDate(i):this._dateAllowed(e)?this.focusDate(this[t]):this._focusClosestDate(e)}_dateAllowed(e,t=this.minDate,i=this.maxDate,r=this.isDateDisabled){return Ll(e,t,i,r)}_isTodayAllowed(e,t,i){return this._dateAllowed(this._getTodayMidnight(),e,t,i)}_getTodayMidnight(){const e=new Date,t=new Date(0,0);return t.setFullYear(e.getFullYear()),t.setMonth(e.getMonth()),t.setDate(e.getDate()),t}}
3778
3778
  /**
3779
3779
  * @license
3780
3780
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
@@ -3845,7 +3845,7 @@ Sr("vaadin-date-picker-overlay-content",mi`
3845
3845
  z-index: 2;
3846
3846
  flex-shrink: 0;
3847
3847
  }
3848
- `,{moduleId:"vaadin-date-picker-overlay-content-styles"});class gh extends(vh(Sa(Tr(_s(Ko))))){static get template(){return $o`
3848
+ `,{moduleId:"vaadin-date-picker-overlay-content-styles"});class yh extends(bh(Ca(Tr(_s(Ko))))){static get template(){return $o`
3849
3849
  <div part="overlay-header" on-touchend="_preventDefault" aria-hidden="true">
3850
3850
  <div part="label">[[_formatDisplayed(selectedDate, i18n, label)]]</div>
3851
3851
  <div part="clear-button" hidden$="[[!selectedDate]]"></div>
@@ -3865,23 +3865,23 @@ Sr("vaadin-date-picker-overlay-content",mi`
3865
3865
  <slot name="today-button"></slot>
3866
3866
  <slot name="cancel-button"></slot>
3867
3867
  </div>
3868
- `}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}si(gh);
3868
+ `}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}si(yh);
3869
3869
  /**
3870
3870
  * @license
3871
3871
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3872
3872
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3873
3873
  */
3874
- const Eh=new WeakMap,bh=rn((e=>class extends e{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const e=this.getRootNode(),t=function(e){return Eh.has(e)||Eh.set(e,new Set),Eh.get(e)}(e);this.slotStyles.forEach((i=>{t.has(i)||(function(e,t){const i=document.createElement("style");i.textContent=e,t===document?document.head.appendChild(i):t.insertBefore(i,t.firstChild)}(i,e),t.add(i))}))}})),yh=e=>class extends(va(ra(e))){static get properties(){return{clearButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1}}}get clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}ready(){super.ready(),this.clearElement&&(this.clearElement.addEventListener("mousedown",(e=>this._onClearButtonMouseDown(e))),this.clearElement.addEventListener("click",(e=>this._onClearButtonClick(e))))}_onClearButtonClick(e){e.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(e){e.preventDefault(),ll||this.inputElement.focus()}_onEscape(e){super._onEscape(e),this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction())}_onClearAction(){this._inputElementValue="",this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}}
3874
+ const wh=new WeakMap,kh=rn((e=>class extends e{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const e=this.getRootNode(),t=function(e){return wh.has(e)||wh.set(e,new Set),wh.get(e)}(e);this.slotStyles.forEach((i=>{t.has(i)||(function(e,t){const i=document.createElement("style");i.textContent=e,t===document?document.head.appendChild(i):t.insertBefore(i,t.firstChild)}(i,e),t.add(i))}))}})),xh=e=>class extends(ba(sa(e))){static get properties(){return{clearButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1}}}get clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}ready(){super.ready(),this.clearElement&&(this.clearElement.addEventListener("mousedown",(e=>this._onClearButtonMouseDown(e))),this.clearElement.addEventListener("click",(e=>this._onClearButtonClick(e))))}_onClearButtonClick(e){e.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(e){e.preventDefault(),dl||this.inputElement.focus()}_onEscape(e){super._onEscape(e),this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction())}_onClearAction(){this._inputElementValue="",this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}}
3875
3875
  /**
3876
3876
  * @license
3877
3877
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3878
3878
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3879
- */,wh=rn((e=>class extends(fa(Oa(va(e)))){static get constraints(){return["required"]}static get delegateAttrs(){return[...super.delegateAttrs,"required"]}ready(){super.ready(),this._createConstraintsObserver()}checkValidity(){return this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map((e=>this[e])))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(e){return e.some((e=>this.__isValidConstraint(e)))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(e,...t){if(!e)return;const i=this._hasValidConstraints(t),r=this.__previousHasConstraints&&!i;(this._hasValue||this.invalid)&&i?this.validate():r&&this._setInvalid(!1),this.__previousHasConstraints=i}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}__isValidConstraint(e){return!!e||0===e}})),kh=e=>class extends(bh(_a(wh(za(yh(ra(e))))))){static get properties(){return{allowedCharPattern:{type:String,observer:"_allowedCharPatternChanged"},autoselect:{type:Boolean,value:!1},name:{type:String,reflectToAttribute:!0},placeholder:{type:String,reflectToAttribute:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},title:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"name","type","placeholder","readonly","invalid","title"]}constructor(){super(),this._boundOnPaste=this._onPaste.bind(this),this._boundOnDrop=this._onDrop.bind(this),this._boundOnBeforeInput=this._onBeforeInput.bind(this)}get slotStyles(){return["\n :is(input[slot='input'], textarea[slot='textarea'])::placeholder {\n font: inherit;\n color: inherit;\n }\n "]}_onFocus(e){super._onFocus(e),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("paste",this._boundOnPaste),e.addEventListener("drop",this._boundOnDrop),e.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("paste",this._boundOnPaste),e.removeEventListener("drop",this._boundOnDrop),e.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(e){super._onKeyDown(e),this.allowedCharPattern&&!this.__shouldAcceptKey(e)&&e.target===this.inputElement&&(e.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=ls.debounce(this._preventInputDebouncer,rs.after(200),(()=>{this.removeAttribute("input-prevented")}))}__shouldAcceptKey(e){return e.metaKey||e.ctrlKey||!e.key||1!==e.key.length||this.__allowedCharRegExp.test(e.key)}_onPaste(e){if(this.allowedCharPattern){const t=e.clipboardData.getData("text");this.__allowedTextRegExp.test(t)||(e.preventDefault(),this._markInputPrevented())}}_onDrop(e){if(this.allowedCharPattern){const t=e.dataTransfer.getData("text");this.__allowedTextRegExp.test(t)||(e.preventDefault(),this._markInputPrevented())}}_onBeforeInput(e){this.allowedCharPattern&&e.data&&!this.__allowedTextRegExp.test(e.data)&&(e.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(e){if(e)try{this.__allowedCharRegExp=new RegExp(`^${e}$`,"u"),this.__allowedTextRegExp=new RegExp(`^${e}*$`,"u")}catch(e){console.error(e)}}}
3879
+ */,Sh=rn((e=>class extends(Ea(Ma(ba(e)))){static get constraints(){return["required"]}static get delegateAttrs(){return[...super.delegateAttrs,"required"]}ready(){super.ready(),this._createConstraintsObserver()}checkValidity(){return this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map((e=>this[e])))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(e){return e.some((e=>this.__isValidConstraint(e)))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(e,...t){if(!e)return;const i=this._hasValidConstraints(t),r=this.__previousHasConstraints&&!i;(this._hasValue||this.invalid)&&i?this.validate():r&&this._setInvalid(!1),this.__previousHasConstraints=i}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}__isValidConstraint(e){return!!e||0===e}})),Ah=e=>class extends(kh(ga(Sh(Ua(xh(sa(e))))))){static get properties(){return{allowedCharPattern:{type:String,observer:"_allowedCharPatternChanged"},autoselect:{type:Boolean,value:!1},name:{type:String,reflectToAttribute:!0},placeholder:{type:String,reflectToAttribute:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},title:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"name","type","placeholder","readonly","invalid","title"]}constructor(){super(),this._boundOnPaste=this._onPaste.bind(this),this._boundOnDrop=this._onDrop.bind(this),this._boundOnBeforeInput=this._onBeforeInput.bind(this)}get slotStyles(){return["\n :is(input[slot='input'], textarea[slot='textarea'])::placeholder {\n font: inherit;\n color: inherit;\n }\n "]}_onFocus(e){super._onFocus(e),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("paste",this._boundOnPaste),e.addEventListener("drop",this._boundOnDrop),e.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("paste",this._boundOnPaste),e.removeEventListener("drop",this._boundOnDrop),e.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(e){super._onKeyDown(e),this.allowedCharPattern&&!this.__shouldAcceptKey(e)&&e.target===this.inputElement&&(e.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=ls.debounce(this._preventInputDebouncer,rs.after(200),(()=>{this.removeAttribute("input-prevented")}))}__shouldAcceptKey(e){return e.metaKey||e.ctrlKey||!e.key||1!==e.key.length||this.__allowedCharRegExp.test(e.key)}_onPaste(e){if(this.allowedCharPattern){const t=e.clipboardData.getData("text");this.__allowedTextRegExp.test(t)||(e.preventDefault(),this._markInputPrevented())}}_onDrop(e){if(this.allowedCharPattern){const t=e.dataTransfer.getData("text");this.__allowedTextRegExp.test(t)||(e.preventDefault(),this._markInputPrevented())}}_onBeforeInput(e){this.allowedCharPattern&&e.data&&!this.__allowedTextRegExp.test(e.data)&&(e.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(e){if(e)try{this.__allowedCharRegExp=new RegExp(`^${e}$`,"u"),this.__allowedTextRegExp=new RegExp(`^${e}*$`,"u")}catch(e){console.error(e)}}}
3880
3880
  /**
3881
3881
  * @license
3882
3882
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
3883
3883
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3884
- */,xh=[mi`
3884
+ */,Ih=[mi`
3885
3885
  :host {
3886
3886
  display: inline-flex;
3887
3887
  outline: none;
@@ -3951,17 +3951,17 @@ const Eh=new WeakMap,bh=rn((e=>class extends e{get slotStyles(){return{}}connect
3951
3951
  * @license
3952
3952
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
3953
3953
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3954
- */],Sh=e=>class extends e{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(e,t){if(!t||void 0===e)return;const{classList:i}=t;if(this.__initialClasses||(this.__initialClasses=new Set(i)),Array.isArray(this.__previousClasses)){const e=this.__previousClasses.filter((e=>!this.__initialClasses.has(e)));e.length>0&&i.remove(...e)}const r="string"==typeof e?e.split(" ").filter(Boolean):[];r.length>0&&i.add(...r),this.__previousClasses=r}}
3954
+ */],Ch=e=>class extends e{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(e,t){if(!t||void 0===e)return;const{classList:i}=t;if(this.__initialClasses||(this.__initialClasses=new Set(i)),Array.isArray(this.__previousClasses)){const e=this.__previousClasses.filter((e=>!this.__initialClasses.has(e)));e.length>0&&i.remove(...e)}const r="string"==typeof e?e.split(" ").filter(Boolean):[];r.length>0&&i.add(...r),this.__previousClasses=r}}
3955
3955
  /**
3956
3956
  * @license
3957
3957
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3958
3958
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3959
- */;class Ah{constructor(e){this.host=e,e.addEventListener("opened-changed",(()=>{e.opened||this.__setVirtualKeyboardEnabled(!1)})),e.addEventListener("blur",(()=>this.__setVirtualKeyboardEnabled(!0))),e.addEventListener("touchstart",(()=>this.__setVirtualKeyboardEnabled(!0)))}__setVirtualKeyboardEnabled(e){this.host.inputElement&&(this.host.inputElement.inputMode=e?"":"none")}}
3959
+ */;class Dh{constructor(e){this.host=e,e.addEventListener("opened-changed",(()=>{e.opened||this.__setVirtualKeyboardEnabled(!1)})),e.addEventListener("blur",(()=>this.__setVirtualKeyboardEnabled(!0))),e.addEventListener("touchstart",(()=>this.__setVirtualKeyboardEnabled(!0)))}__setVirtualKeyboardEnabled(e){this.host.inputElement&&(this.host.inputElement.inputMode=e?"":"none")}}
3960
3960
  /**
3961
3961
  * @license
3962
3962
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3963
3963
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3964
- */const Ih=e=>class extends(Sh(Sa(_a(wh(ra(e)))))){static get properties(){return{_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged",sync:!0},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean,value:!1,sync:!0},_fullscreen:{type:Boolean,value:!1,sync:!0},_fullscreenMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},i18n:{type:Object,sync:!0,value:()=>({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(e){const t=String(e.year).replace(/\d+/u,(e=>"0000".substr(e.length)+e));return[e.month+1,e.day,t].join("/")},parseDate(e){const t=e.split("/"),i=new Date;let r,n=i.getMonth(),o=i.getFullYear();if(3===t.length?(n=parseInt(t[0])-1,r=parseInt(t[1]),o=parseInt(t[2]),t[2].length<3&&o>=0&&(o=function(e,t,i=0,r=1){if(t>99)throw new Error("The provided year cannot have more than 2 digits.");if(t<0)throw new Error("The provided year cannot be negative.");let n=t+100*Math.floor(e.getFullYear()/100);return e<new Date(n-50,i,r)?n-=100:e>new Date(n+50,i,r)&&(n+=100),n}(this.referenceDate?Ll(this.referenceDate):new Date,o,n,r))):2===t.length?(n=parseInt(t[0])-1,r=parseInt(t[1])):1===t.length&&(r=parseInt(t[0])),void 0!==r)return{day:r,month:n,year:o}},formatTitle:(e,t)=>`${e} ${t}`})},min:{type:String,sync:!0},max:{type:String,sync:!0},isDateDisabled:{type:Function},_minDate:{type:Date,computed:"__computeMinOrMaxDate(min)",sync:!0},_maxDate:{type:Date,computed:"__computeMinOrMaxDate(max)",sync:!0},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, i18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:sl},_focusOverlayOnOpen:Boolean,_overlayContent:{type:Object,sync:!0},_hasInputValue:{type:Boolean}}}static get observers(){return["_selectedDateChanged(_selectedDate, i18n)","_focusedDateChanged(_focusedDate, i18n)","__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers, isDateDisabled)","__updateOverlayContentTheme(_overlayContent, _theme)","__updateOverlayContentFullScreen(_overlayContent, _fullscreen)"]}static get constraints(){return[...super.constraints,"min","max"]}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this),this._boundOverlayRenderer=this._overlayRenderer.bind(this)}get _inputElementValue(){return super._inputElementValue}set _inputElementValue(e){super._inputElementValue=e,this._hasInputValue=!1}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}get __unparsableValue(){return!this._inputElementValue||this.__parseDate(this._inputElementValue)?"":this._inputElementValue}_onFocus(e){super._onFocus(e),this._noInput&&!aa()&&e.target.blur()}_onBlur(e){super._onBlur(e),this.opened||(this.__commitParsedOrFocusedDate(),document.hasFocus()&&this.validate())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new fh(this._fullscreenMediaQuery,(e=>{this._fullscreen=e}))),this.addController(new Ah(this));const e=this.$.overlay;this._overlayElement=e,e.renderer=this._boundOverlayRenderer,this.addEventListener("mousedown",(()=>this.__bringToFront())),this.addEventListener("touchstart",(()=>this.__bringToFront()))}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.$.overlay.close()}_overlayRenderer(e){if(e.firstChild)return;const t=document.createElement("vaadin-date-picker-overlay-content");e.appendChild(t),this._overlayContent=t,t.addEventListener("close",(()=>{this._close()})),t.addEventListener("focus-input",this._focusAndSelect.bind(this)),t.addEventListener("date-tap",(e=>{this.__commitDate(e.detail.date),this._close()})),t.addEventListener("date-selected",(e=>{this.__commitDate(e.detail.date)})),t.addEventListener("focusin",(()=>{this._keyboardActive&&this._setFocused(!0)})),t.addEventListener("focusout",(e=>{this._shouldRemoveFocus(e)&&this._setFocused(!1)})),t.addEventListener("focused-date-changed",(e=>{this._focusedDate=e.detail.value})),t.addEventListener("click",(e=>e.stopPropagation()))}__parseDate(e){if(!this.i18n.parseDate)return;let t=this.i18n.parseDate(e);return t&&(t=Ll(`${t.year}-${t.month+1}-${t.day}`)),t&&!isNaN(t.getTime())?t:void 0}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(Ml(e))}checkValidity(){const e=this._inputElementValue,t=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),i=!this._selectedDate||Ul(this._selectedDate,this._minDate,this._maxDate,this.isDateDisabled);let r=!0;return this.inputElement&&(this.inputElement.checkValidity?r=this.inputElement.checkValidity():this.inputElement.validate&&(r=this.inputElement.validate())),t&&i&&r}_shouldSetFocus(e){return!this._shouldKeepFocusRing}_shouldRemoveFocus(e){const{relatedTarget:t}=e;return!(!this.opened||null===t||t===document.body||this.contains(t)||this._overlayContent.contains(t))||!this.opened}_setFocused(e){super._setFocused(e),this._shouldKeepFocusRing=e&&this._keyboardActive}__commitValueChange(){const e=this.__unparsableValue;this.__committedValue!==this.value?(this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))):this.__committedUnparsableValue!==e&&(this.validate(),this.dispatchEvent(new CustomEvent("unparsable-change"))),this.__committedValue=this.value,this.__committedUnparsableValue=e}__commitDate(e){this.__keepCommittedValue=!0,this._selectedDate=e,this.__keepCommittedValue=!1,this.__commitValueChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame((()=>{this.$.overlay.bringToFront()}))}_isNoInput(e,t,i,r,n,o){return!e||t&&(!o||n)||i&&n||!r.parseDate}_formatISO(e){return function(e){return e instanceof Date?function(e){const t=(e,t="00")=>(t+e).substr((t+e).length-t.length);let i="",r="0000",n=e.year;return n<0?(n=-n,i="-",r="000000"):e.year>=1e4&&(i="+",r="000000"),[i+t(n,r),t(e.month+1),t(e.day)].join("-")}({year:e.getFullYear(),month:e.getMonth(),day:e.getDate()}):""}(e)}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.autocomplete="off",e.setAttribute("role","combobox"),e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(e){this.inputElement&&this.inputElement.setAttribute("aria-expanded",e)}_selectedDateChanged(e,t){void 0===e||void 0===t||(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(e,t){void 0===e||void 0===t||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(e)}_valueChanged(e,t){const i=Ll(e);!e||i?(e?Gl(this._selectedDate,i)||(this._selectedDate=i,void 0!==t&&this.validate()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue)):this.value=t}__updateOverlayContent(e,t,i,r,n,o,s,a,l){e&&(e.i18n=t,e.label=i,e.minDate=r,e.maxDate=n,e.focusedDate=o,e.selectedDate=s,e.showWeekNumbers=a,e.isDateDisabled=l)}__updateOverlayContentTheme(e,t){e&&(t?e.setAttribute("theme",t):e.removeAttribute("theme"))}__updateOverlayContentFullScreen(e,t){e&&e.toggleAttribute("fullscreen",t)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._closedByEscape=!0,this._close(),this._closedByEscape=!1}_onOverlayOpened(){const e=this._overlayContent;e.reset();const t=this._getInitialPosition();e.initialPosition=t;const i=e.focusedDate||t;e.scrollToDate(i),this._ignoreFocusedDateChange=!0,e.focusedDate=i,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(e.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const r=this._nativeInput;this._noInput&&r&&(r.blur(),this._overlayContent.focusDateElement()),this.__showOthers=_l(this._noInput?e:[r,e])}_getInitialPosition(){const e=Ll(this.initialPosition),t=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||Ul(t,this._minDate,this._maxDate,this.isDateDisabled)?t:this._minDate||this._maxDate?Bl(t,[this._minDate,this._maxDate]):new Date}__commitParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const e=this.__parseDate(this._inputElementValue||"");e?this.__commitDate(e):(this.__keepInputValue=!0,this.__commitDate(null),this.__keepInputValue=!1)}else this._focusedDate&&this.__commitDate(this._focusedDate);this._ignoreFocusedDateChange=!1}_onOverlayClosed(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this._closedByEscape&&this._applyInputValue(this._selectedDate),this.__commitParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),!this.value&&!this._keyboardActive&&this.validate()}_onScroll(e){(e.target===window||!this._overlayContent.contains(e.target))&&this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(e){this._inputElementValue=e?this.__formatDate(e):""}_setSelectionRange(e,t){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,t)}_onChange(e){e.stopPropagation()}_onClick(e){this._isClearButton(e)||this._onHostClick(e)}_onHostClick(e){(!this.autoOpenDisabled||this._noInput)&&(e.preventDefault(),this.open())}_onClearButtonClick(e){e.preventDefault(),this.__commitDate(null)}_onKeyDown(e){switch(super._onKeyDown(e),this._noInput&&-1===[9].indexOf(e.keyCode)&&e.preventDefault(),e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(e.preventDefault(),e.stopPropagation(),this._setSelectionRange(0,0),e.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement())}}_onEnter(e){this.opened?this.close():this.__commitParsedOrFocusedDate()}_onEscape(e){if(!this.opened){if(this.clearButtonVisible&&this.value&&!this.readonly)return e.stopPropagation(),void this._onClearButtonClick(e);""===this.inputElement.value?this.__commitDate(null):this._applyInputValue(this._selectedDate)}}_isClearButton(e){return e.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open(),this._inputElementValue){const e=this.__parseDate(this._inputElementValue);e&&(this._ignoreFocusedDateChange=!0,Gl(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(e){return Ll(e)}}
3964
+ */const Th=e=>class extends(Ch(Ca(ga(Sh(sa(e)))))){static get properties(){return{_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged",sync:!0},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean,value:!1,sync:!0},_fullscreen:{type:Boolean,value:!1,sync:!0},_fullscreenMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},i18n:{type:Object,sync:!0,value:()=>({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(e){const t=String(e.year).replace(/\d+/u,(e=>"0000".substr(e.length)+e));return[e.month+1,e.day,t].join("/")},parseDate(e){const t=e.split("/"),i=new Date;let r,n=i.getMonth(),o=i.getFullYear();if(3===t.length?(n=parseInt(t[0])-1,r=parseInt(t[1]),o=parseInt(t[2]),t[2].length<3&&o>=0&&(o=function(e,t,i=0,r=1){if(t>99)throw new Error("The provided year cannot have more than 2 digits.");if(t<0)throw new Error("The provided year cannot be negative.");let n=t+100*Math.floor(e.getFullYear()/100);return e<new Date(n-50,i,r)?n-=100:e>new Date(n+50,i,r)&&(n+=100),n}(this.referenceDate?ql(this.referenceDate):new Date,o,n,r))):2===t.length?(n=parseInt(t[0])-1,r=parseInt(t[1])):1===t.length&&(r=parseInt(t[0])),void 0!==r)return{day:r,month:n,year:o}},formatTitle:(e,t)=>`${e} ${t}`})},min:{type:String,sync:!0},max:{type:String,sync:!0},isDateDisabled:{type:Function},_minDate:{type:Date,computed:"__computeMinOrMaxDate(min)",sync:!0},_maxDate:{type:Date,computed:"__computeMinOrMaxDate(max)",sync:!0},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, i18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:hl},_focusOverlayOnOpen:Boolean,_overlayContent:{type:Object,sync:!0},_hasInputValue:{type:Boolean}}}static get observers(){return["_selectedDateChanged(_selectedDate, i18n)","_focusedDateChanged(_focusedDate, i18n)","__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers, isDateDisabled)","__updateOverlayContentTheme(_overlayContent, _theme)","__updateOverlayContentFullScreen(_overlayContent, _fullscreen)"]}static get constraints(){return[...super.constraints,"min","max"]}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this),this._boundOverlayRenderer=this._overlayRenderer.bind(this)}get _inputElementValue(){return super._inputElementValue}set _inputElementValue(e){super._inputElementValue=e,this._hasInputValue=!1}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}get __unparsableValue(){return!this._inputElementValue||this.__parseDate(this._inputElementValue)?"":this._inputElementValue}_onFocus(e){super._onFocus(e),this._noInput&&!ca()&&e.target.blur()}_onBlur(e){super._onBlur(e),this.opened||(this.__commitParsedOrFocusedDate(),document.hasFocus()&&this.validate())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new Eh(this._fullscreenMediaQuery,(e=>{this._fullscreen=e}))),this.addController(new Dh(this));const e=this.$.overlay;this._overlayElement=e,e.renderer=this._boundOverlayRenderer,this.addEventListener("mousedown",(()=>this.__bringToFront())),this.addEventListener("touchstart",(()=>this.__bringToFront()))}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.$.overlay.close()}_overlayRenderer(e){if(e.firstChild)return;const t=document.createElement("vaadin-date-picker-overlay-content");e.appendChild(t),this._overlayContent=t,t.addEventListener("close",(()=>{this._close()})),t.addEventListener("focus-input",this._focusAndSelect.bind(this)),t.addEventListener("date-tap",(e=>{this.__commitDate(e.detail.date),this._close()})),t.addEventListener("date-selected",(e=>{this.__commitDate(e.detail.date)})),t.addEventListener("focusin",(()=>{this._keyboardActive&&this._setFocused(!0)})),t.addEventListener("focusout",(e=>{this._shouldRemoveFocus(e)&&this._setFocused(!1)})),t.addEventListener("focused-date-changed",(e=>{this._focusedDate=e.detail.value})),t.addEventListener("click",(e=>e.stopPropagation()))}__parseDate(e){if(!this.i18n.parseDate)return;let t=this.i18n.parseDate(e);return t&&(t=ql(`${t.year}-${t.month+1}-${t.day}`)),t&&!isNaN(t.getTime())?t:void 0}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(Pl(e))}checkValidity(){const e=this._inputElementValue,t=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),i=!this._selectedDate||Ll(this._selectedDate,this._minDate,this._maxDate,this.isDateDisabled);let r=!0;return this.inputElement&&(this.inputElement.checkValidity?r=this.inputElement.checkValidity():this.inputElement.validate&&(r=this.inputElement.validate())),t&&i&&r}_shouldSetFocus(e){return!this._shouldKeepFocusRing}_shouldRemoveFocus(e){const{relatedTarget:t}=e;return!(!this.opened||null===t||t===document.body||this.contains(t)||this._overlayContent.contains(t))||!this.opened}_setFocused(e){super._setFocused(e),this._shouldKeepFocusRing=e&&this._keyboardActive}__commitValueChange(){const e=this.__unparsableValue;this.__committedValue!==this.value?(this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))):this.__committedUnparsableValue!==e&&(this.validate(),this.dispatchEvent(new CustomEvent("unparsable-change"))),this.__committedValue=this.value,this.__committedUnparsableValue=e}__commitDate(e){this.__keepCommittedValue=!0,this._selectedDate=e,this.__keepCommittedValue=!1,this.__commitValueChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame((()=>{this.$.overlay.bringToFront()}))}_isNoInput(e,t,i,r,n,o){return!e||t&&(!o||n)||i&&n||!r.parseDate}_formatISO(e){return function(e){return e instanceof Date?function(e){const t=(e,t="00")=>(t+e).substr((t+e).length-t.length);let i="",r="0000",n=e.year;return n<0?(n=-n,i="-",r="000000"):e.year>=1e4&&(i="+",r="000000"),[i+t(n,r),t(e.month+1),t(e.day)].join("-")}({year:e.getFullYear(),month:e.getMonth(),day:e.getDate()}):""}(e)}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.autocomplete="off",e.setAttribute("role","combobox"),e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(e){this.inputElement&&this.inputElement.setAttribute("aria-expanded",e)}_selectedDateChanged(e,t){void 0===e||void 0===t||(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(e,t){void 0===e||void 0===t||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(e)}_valueChanged(e,t){const i=ql(e);!e||i?(e?Bl(this._selectedDate,i)||(this._selectedDate=i,void 0!==t&&this.validate()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue)):this.value=t}__updateOverlayContent(e,t,i,r,n,o,s,a,l){e&&(e.i18n=t,e.label=i,e.minDate=r,e.maxDate=n,e.focusedDate=o,e.selectedDate=s,e.showWeekNumbers=a,e.isDateDisabled=l)}__updateOverlayContentTheme(e,t){e&&(t?e.setAttribute("theme",t):e.removeAttribute("theme"))}__updateOverlayContentFullScreen(e,t){e&&e.toggleAttribute("fullscreen",t)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._closedByEscape=!0,this._close(),this._closedByEscape=!1}_onOverlayOpened(){const e=this._overlayContent;e.reset();const t=this._getInitialPosition();e.initialPosition=t;const i=e.focusedDate||t;e.scrollToDate(i),this._ignoreFocusedDateChange=!0,e.focusedDate=i,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(e.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const r=this._nativeInput;this._noInput&&r&&(r.blur(),this._overlayContent.focusDateElement()),this.__showOthers=gl(this._noInput?e:[r,e])}_getInitialPosition(){const e=ql(this.initialPosition),t=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||Ll(t,this._minDate,this._maxDate,this.isDateDisabled)?t:this._minDate||this._maxDate?jl(t,[this._minDate,this._maxDate]):new Date}__commitParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const e=this.__parseDate(this._inputElementValue||"");e?this.__commitDate(e):(this.__keepInputValue=!0,this.__commitDate(null),this.__keepInputValue=!1)}else this._focusedDate&&this.__commitDate(this._focusedDate);this._ignoreFocusedDateChange=!1}_onOverlayClosed(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this._closedByEscape&&this._applyInputValue(this._selectedDate),this.__commitParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),!this.value&&!this._keyboardActive&&this.validate()}_onScroll(e){(e.target===window||!this._overlayContent.contains(e.target))&&this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(e){this._inputElementValue=e?this.__formatDate(e):""}_setSelectionRange(e,t){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,t)}_onChange(e){e.stopPropagation()}_onClick(e){this._isClearButton(e)||this._onHostClick(e)}_onHostClick(e){(!this.autoOpenDisabled||this._noInput)&&(e.preventDefault(),this.open())}_onClearButtonClick(e){e.preventDefault(),this.__commitDate(null)}_onKeyDown(e){switch(super._onKeyDown(e),this._noInput&&-1===[9].indexOf(e.keyCode)&&e.preventDefault(),e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(e.preventDefault(),e.stopPropagation(),this._setSelectionRange(0,0),e.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement())}}_onEnter(e){this.opened?this.close():this.__commitParsedOrFocusedDate()}_onEscape(e){if(!this.opened){if(this.clearButtonVisible&&this.value&&!this.readonly)return e.stopPropagation(),void this._onClearButtonClick(e);""===this.inputElement.value?this.__commitDate(null):this._applyInputValue(this._selectedDate)}}_isClearButton(e){return e.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open(),this._inputElementValue){const e=this.__parseDate(this._inputElementValue);e&&(this._ignoreFocusedDateChange=!0,Bl(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(e){return ql(e)}}
3965
3965
  /**
3966
3966
  * @license
3967
3967
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
@@ -3972,7 +3972,7 @@ const Eh=new WeakMap,bh=rn((e=>class extends e{get slotStyles(){return{}}connect
3972
3972
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3973
3973
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3974
3974
  */
3975
- Sr("vaadin-date-picker",[xh,mi`
3975
+ Sr("vaadin-date-picker",[Ih,mi`
3976
3976
  :host([opened]) {
3977
3977
  pointer-events: auto;
3978
3978
  }
@@ -3985,7 +3985,7 @@ Sr("vaadin-date-picker",[xh,mi`
3985
3985
  direction: rtl;
3986
3986
  text-align: left;
3987
3987
  }
3988
- `],{moduleId:"vaadin-date-picker-styles"});class Ch extends(Ih(kh(Tr(gs(Ko))))){static get is(){return"vaadin-date-picker"}static get template(){return $o`
3988
+ `],{moduleId:"vaadin-date-picker-styles"});class Rh extends(Th(Ah(Tr(gs(Ko))))){static get is(){return"vaadin-date-picker"}static get template(){return $o`
3989
3989
  <div class="vaadin-date-picker-container">
3990
3990
  <div part="label">
3991
3991
  <slot name="label"></slot>
@@ -4027,29 +4027,29 @@ Sr("vaadin-date-picker",[xh,mi`
4027
4027
  ></vaadin-date-picker-overlay>
4028
4028
 
4029
4029
  <slot name="tooltip"></slot>
4030
- `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Ga(this,(e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e}),{uniqueIdPrefix:"search-input"})),this.addController(new Ma(this.inputElement,this._labelController)),this._tooltipController=new As(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow((e=>!e.opened)),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",(e=>e.preventDefault())),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(e){e.detail.sourceEvent&&e.detail.sourceEvent.composedPath().includes(this)&&e.preventDefault()}_toggle(e){e.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(e){super._openedChanged(e),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}si(Ch),
4030
+ `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Ba(this,(e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e}),{uniqueIdPrefix:"search-input"})),this.addController(new Pa(this.inputElement,this._labelController)),this._tooltipController=new As(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow((e=>!e.opened)),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",(e=>e.preventDefault())),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(e){e.detail.sourceEvent&&e.detail.sourceEvent.composedPath().includes(this)&&e.preventDefault()}_toggle(e){e.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(e){super._openedChanged(e),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}si(Rh),
4031
4031
  /**
4032
4032
  * @license
4033
4033
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
4034
4034
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4035
4035
  */
4036
- Sr("vaadin-text-field",Ka,{moduleId:"lumo-text-field-styles"});
4036
+ Sr("vaadin-text-field",Za,{moduleId:"lumo-text-field-styles"});
4037
4037
  /**
4038
4038
  * @license
4039
4039
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4040
4040
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4041
4041
  */
4042
- const Dh=e=>class extends(kh(e)){static get properties(){return{autocomplete:{type:String},autocorrect:{type:String},autocapitalize:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"autocapitalize","autocomplete","autocorrect"]}get __data(){return this.__dataValue||{}}set __data(e){this.__dataValue=e}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.value&&e.value!==this.value&&(console.warn(`Please define value on the <${this.localName}> component!`),e.value=""),this.value&&(e.value=this.value))}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}_onInput(e){super._onInput(e),this.invalid&&this.validate()}_valueChanged(e,t){super._valueChanged(e,t),void 0!==t&&this.invalid&&this.validate()}}
4042
+ const Nh=e=>class extends(Ah(e)){static get properties(){return{autocomplete:{type:String},autocorrect:{type:String},autocapitalize:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"autocapitalize","autocomplete","autocorrect"]}get __data(){return this.__dataValue||{}}set __data(e){this.__dataValue=e}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.value&&e.value!==this.value&&(console.warn(`Please define value on the <${this.localName}> component!`),e.value=""),this.value&&(e.value=this.value))}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}_onInput(e){super._onInput(e),this.invalid&&this.validate()}_valueChanged(e,t){super._valueChanged(e,t),void 0!==t&&this.invalid&&this.validate()}}
4043
4043
  /**
4044
4044
  * @license
4045
4045
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4046
4046
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4047
- */,Th=e=>class extends(Dh(e)){static get properties(){return{maxlength:{type:Number},minlength:{type:Number},pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"maxlength","minlength","pattern"]}static get constraints(){return[...super.constraints,"maxlength","minlength","pattern"]}constructor(){super(),this._setType("text")}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Ga(this,(e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e}))),this.addController(new Ma(this.inputElement,this._labelController))}}
4047
+ */,Oh=e=>class extends(Nh(e)){static get properties(){return{maxlength:{type:Number},minlength:{type:Number},pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"maxlength","minlength","pattern"]}static get constraints(){return[...super.constraints,"maxlength","minlength","pattern"]}constructor(){super(),this._setType("text")}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Ba(this,(e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e}))),this.addController(new Pa(this.inputElement,this._labelController))}}
4048
4048
  /**
4049
4049
  * @license
4050
4050
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
4051
4051
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4052
- */;Sr("vaadin-text-field",xh,{moduleId:"vaadin-text-field-styles"});class Rh extends(Th(Tr(gs(Ko)))){static get is(){return"vaadin-text-field"}static get template(){return $o`
4052
+ */;Sr("vaadin-text-field",Ih,{moduleId:"vaadin-text-field-styles"});class zh extends(Oh(Tr(gs(Ko)))){static get is(){return"vaadin-text-field"}static get template(){return $o`
4053
4053
  <div class="vaadin-field-container">
4054
4054
  <div part="label">
4055
4055
  <slot name="label"></slot>
@@ -4078,7 +4078,7 @@ const Dh=e=>class extends(kh(e)){static get properties(){return{autocomplete:{ty
4078
4078
  </div>
4079
4079
  </div>
4080
4080
  <slot name="tooltip"></slot>
4081
- `}static get properties(){return{maxlength:{type:Number},minlength:{type:Number}}}ready(){super.ready(),this._tooltipController=new As(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}si(Rh),Sr("vaadin-password-field-button",[$a,mi`
4081
+ `}static get properties(){return{maxlength:{type:Number},minlength:{type:Number}}}ready(){super.ready(),this._tooltipController=new As(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}si(zh),Sr("vaadin-password-field-button",[Ya,mi`
4082
4082
  :host {
4083
4083
  position: absolute;
4084
4084
  right: 0;
@@ -4091,7 +4091,7 @@ const Dh=e=>class extends(kh(e)){static get properties(){return{autocomplete:{ty
4091
4091
  background: transparent;
4092
4092
  outline: none;
4093
4093
  }
4094
- `],{moduleId:"lumo-password-field-button"}),Sr("vaadin-password-field",[Ka,mi`
4094
+ `],{moduleId:"lumo-password-field-button"}),Sr("vaadin-password-field",[Za,mi`
4095
4095
  [part='reveal-button']::before {
4096
4096
  content: var(--lumo-icons-eye);
4097
4097
  }
@@ -4115,22 +4115,22 @@ const Dh=e=>class extends(kh(e)){static get properties(){return{autocomplete:{ty
4115
4115
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4116
4116
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4117
4117
  */
4118
- Sr("vaadin-password-field-button",Rl,{moduleId:"vaadin-password-field-button-styles"});class Nh extends(Nl(_s(Tr(Ko)))){static get is(){return"vaadin-password-field-button"}static get template(){return $o``}}si(Nh);
4118
+ Sr("vaadin-password-field-button",zl,{moduleId:"vaadin-password-field-button-styles"});class Gh extends(Gl(_s(Tr(Ko)))){static get is(){return"vaadin-password-field-button"}static get template(){return $o``}}si(Gh);
4119
4119
  /**
4120
4120
  * @license
4121
4121
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4122
4122
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4123
4123
  */
4124
- const Oh=e=>class extends(bh(ia(ma(va(e))))){static get properties(){return{revealButtonHidden:{type:Boolean,observer:"_revealButtonHiddenChanged",value:!1},passwordVisible:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_passwordVisibleChanged",readOnly:!0},i18n:{type:Object,value:()=>({reveal:"Show password"})}}}static get observers(){return["__i18nChanged(i18n)"]}constructor(){super(),this._setType("password"),this.__boundRevealButtonClick=this._onRevealButtonClick.bind(this),this.__boundRevealButtonMouseDown=this._onRevealButtonMouseDown.bind(this),this.__lastChange=""}get slotStyles(){return[...super.slotStyles,`\n ${this.localName} [slot="input"]::-ms-reveal {\n display: none;\n }\n `]}get _revealNode(){return this._revealButtonController&&this._revealButtonController.node}ready(){super.ready(),this._revealPart=this.shadowRoot.querySelector('[part="reveal-button"]'),this._revealButtonController=new Ss(this,"reveal","vaadin-password-field-button",{initializer:e=>{e.disabled=this.disabled,e.addEventListener("click",this.__boundRevealButtonClick),e.addEventListener("mousedown",this.__boundRevealButtonMouseDown)}}),this.addController(this._revealButtonController),this.__updateAriaLabel(this.i18n),this._updateToggleState(!1),this._toggleRevealHidden(this.revealButtonHidden),this.inputElement&&(this.inputElement.autocapitalize="off")}_onChange(e){super._onChange(e),this.__lastChange=this.inputElement.value}_shouldSetFocus(e){return e.target===this.inputElement||e.target===this._revealNode}_shouldRemoveFocus(e){return!(e.relatedTarget===this._revealNode||e.relatedTarget===this.inputElement&&e.target===this._revealNode)}_setFocused(e){if(super._setFocused(e),e){const e=this.getRootNode().activeElement===this._revealNode;this.toggleAttribute("focus-ring",this._keyboardActive&&!e)}else this._setPasswordVisible(!1),this.__lastChange!==this.inputElement.value&&(this.__lastChange=this.inputElement.value,this.dispatchEvent(new CustomEvent("change",{bubbles:!0})))}__updateAriaLabel(e){e&&e.reveal&&this._revealNode&&this._revealNode.setAttribute("aria-label",e.reveal)}__i18nChanged(e){this.__updateAriaLabel(e)}_revealButtonHiddenChanged(e){this._toggleRevealHidden(e)}_togglePasswordVisibility(){this._setPasswordVisible(!this.passwordVisible)}_onRevealButtonClick(){this._togglePasswordVisibility()}_onRevealButtonMouseDown(e){e.preventDefault(),this.inputElement.focus()}_toggleRevealHidden(e){this._revealNode&&(e?(this._revealPart.setAttribute("hidden",""),this._revealNode.setAttribute("tabindex","-1"),this._revealNode.setAttribute("aria-hidden","true")):(this._revealPart.removeAttribute("hidden"),this._revealNode.setAttribute("tabindex","0"),this._revealNode.removeAttribute("aria-hidden")))}_updateToggleState(e){this._revealNode&&this._revealNode.setAttribute("aria-pressed",e?"true":"false")}_passwordVisibleChanged(e){this._setType(e?"text":"password"),this._updateToggleState(e)}_disabledChanged(e,t){super._disabledChanged(e,t),this._revealNode&&(this._revealNode.disabled=e)}}
4124
+ const Mh=e=>class extends(kh(oa(fa(ba(e))))){static get properties(){return{revealButtonHidden:{type:Boolean,observer:"_revealButtonHiddenChanged",value:!1},passwordVisible:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_passwordVisibleChanged",readOnly:!0},i18n:{type:Object,value:()=>({reveal:"Show password"})}}}static get observers(){return["__i18nChanged(i18n)"]}constructor(){super(),this._setType("password"),this.__boundRevealButtonClick=this._onRevealButtonClick.bind(this),this.__boundRevealButtonMouseDown=this._onRevealButtonMouseDown.bind(this),this.__lastChange=""}get slotStyles(){return[...super.slotStyles,`\n ${this.localName} [slot="input"]::-ms-reveal {\n display: none;\n }\n `]}get _revealNode(){return this._revealButtonController&&this._revealButtonController.node}ready(){super.ready(),this._revealPart=this.shadowRoot.querySelector('[part="reveal-button"]'),this._revealButtonController=new Ss(this,"reveal","vaadin-password-field-button",{initializer:e=>{e.disabled=this.disabled,e.addEventListener("click",this.__boundRevealButtonClick),e.addEventListener("mousedown",this.__boundRevealButtonMouseDown)}}),this.addController(this._revealButtonController),this.__updateAriaLabel(this.i18n),this._updateToggleState(!1),this._toggleRevealHidden(this.revealButtonHidden),this.inputElement&&(this.inputElement.autocapitalize="off")}_onChange(e){super._onChange(e),this.__lastChange=this.inputElement.value}_shouldSetFocus(e){return e.target===this.inputElement||e.target===this._revealNode}_shouldRemoveFocus(e){return!(e.relatedTarget===this._revealNode||e.relatedTarget===this.inputElement&&e.target===this._revealNode)}_setFocused(e){if(super._setFocused(e),e){const e=this.getRootNode().activeElement===this._revealNode;this.toggleAttribute("focus-ring",this._keyboardActive&&!e)}else this._setPasswordVisible(!1),this.__lastChange!==this.inputElement.value&&(this.__lastChange=this.inputElement.value,this.dispatchEvent(new CustomEvent("change",{bubbles:!0})))}__updateAriaLabel(e){e&&e.reveal&&this._revealNode&&this._revealNode.setAttribute("aria-label",e.reveal)}__i18nChanged(e){this.__updateAriaLabel(e)}_revealButtonHiddenChanged(e){this._toggleRevealHidden(e)}_togglePasswordVisibility(){this._setPasswordVisible(!this.passwordVisible)}_onRevealButtonClick(){this._togglePasswordVisibility()}_onRevealButtonMouseDown(e){e.preventDefault(),this.inputElement.focus()}_toggleRevealHidden(e){this._revealNode&&(e?(this._revealPart.setAttribute("hidden",""),this._revealNode.setAttribute("tabindex","-1"),this._revealNode.setAttribute("aria-hidden","true")):(this._revealPart.removeAttribute("hidden"),this._revealNode.setAttribute("tabindex","0"),this._revealNode.removeAttribute("aria-hidden")))}_updateToggleState(e){this._revealNode&&this._revealNode.setAttribute("aria-pressed",e?"true":"false")}_passwordVisibleChanged(e){this._setType(e?"text":"password"),this._updateToggleState(e)}_disabledChanged(e,t){super._disabledChanged(e,t),this._revealNode&&(this._revealNode.disabled=e)}}
4125
4125
  /**
4126
4126
  * @license
4127
4127
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4128
4128
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4129
- */,zh=$o`
4129
+ */,Uh=$o`
4130
4130
  <div part="reveal-button" slot="suffix">
4131
4131
  <slot name="reveal"></slot>
4132
4132
  </div>
4133
- `;let Gh;class Mh extends(Oh(Rh)){static get is(){return"vaadin-password-field"}static get template(){if(!Gh){Gh=super.template.cloneNode(!0);const e=zh.content.querySelector('[part="reveal-button"]');Gh.content.querySelector('[part="input-field"]').appendChild(e)}return Gh}}si(Mh);const Uh=mi`
4133
+ `;let Bh;class Ph extends(Mh(zh)){static get is(){return"vaadin-password-field"}static get template(){if(!Bh){Bh=super.template.cloneNode(!0);const e=Uh.content.querySelector('[part="reveal-button"]');Bh.content.querySelector('[part="input-field"]').appendChild(e)}return Bh}}si(Ph);const Lh=mi`
4134
4134
  :host {
4135
4135
  display: flex;
4136
4136
  align-items: center;
@@ -4214,7 +4214,7 @@ const Oh=e=>class extends(bh(ia(ma(va(e))))){static get properties(){return{reve
4214
4214
  width: var(--lumo-icon-size-m);
4215
4215
  height: var(--lumo-icon-size-m);
4216
4216
  }
4217
- `;Sr("vaadin-item",Uh,{moduleId:"lumo-item"}),Sr("vaadin-combo-box-item",[Uh,mi`
4217
+ `;Sr("vaadin-item",Lh,{moduleId:"lumo-item"}),Sr("vaadin-combo-box-item",[Lh,mi`
4218
4218
  :host {
4219
4219
  transition: background-color 100ms;
4220
4220
  overflow: hidden;
@@ -4226,7 +4226,7 @@ const Oh=e=>class extends(bh(ia(ma(va(e))))){static get properties(){return{reve
4226
4226
  :host([focused]:not([disabled])) {
4227
4227
  box-shadow: inset 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
4228
4228
  }
4229
- `],{moduleId:"lumo-combo-box-item"}),Sr("vaadin-combo-box-overlay",[qa,Ha,mi`
4229
+ `],{moduleId:"lumo-combo-box-item"}),Sr("vaadin-combo-box-overlay",[$a,Xa,mi`
4230
4230
  [part='content'] {
4231
4231
  padding: 0;
4232
4232
  }
@@ -4302,7 +4302,7 @@ const Oh=e=>class extends(bh(ia(ma(va(e))))){static get properties(){return{reve
4302
4302
  --_vaadin-combo-box-items-container-border-width: var(--lumo-space-xs);
4303
4303
  --_vaadin-combo-box-items-container-border-style: solid;
4304
4304
  }
4305
- `],{moduleId:"lumo-combo-box-overlay"}),Sr("vaadin-combo-box",[Ka,mi`
4305
+ `],{moduleId:"lumo-combo-box-overlay"}),Sr("vaadin-combo-box",[Za,mi`
4306
4306
  [part='toggle-button']::before {
4307
4307
  content: var(--lumo-icons-dropdown);
4308
4308
  }
@@ -4312,12 +4312,12 @@ const Oh=e=>class extends(bh(ia(ma(va(e))))){static get properties(){return{reve
4312
4312
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4313
4313
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4314
4314
  */
4315
- const Bh=e=>class extends e{static get properties(){return{index:{type:Number},item:{type:Object},label:{type:String},selected:{type:Boolean,value:!1,reflectToAttribute:!0},focused:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Function}}}static get observers(){return["__rendererOrItemChanged(renderer, index, item, selected, focused)","__updateLabel(label, renderer)"]}static get observedAttributes(){return[...super.observedAttributes,"hidden"]}attributeChangedCallback(e,t,i){"hidden"===e&&null!==i?this.index=void 0:super.attributeChangedCallback(e,t,i)}connectedCallback(){super.connectedCallback(),this._owner=this.parentNode.owner;const e=this._owner.getAttribute("dir");e&&this.setAttribute("dir",e)}requestContentUpdate(){this.renderer&&!this.hidden&&this.renderer(this,this._owner,{index:this.index,item:this.item,focused:this.focused,selected:this.selected})}__rendererOrItemChanged(e,t,i){void 0===i||void 0===t||(this._oldRenderer!==e&&(this.innerHTML="",delete this._$litPart$),e&&(this._oldRenderer=e,this.requestContentUpdate()))}__updateLabel(e,t){t||(this.textContent=e)}}
4315
+ const jh=e=>class extends e{static get properties(){return{index:{type:Number},item:{type:Object},label:{type:String},selected:{type:Boolean,value:!1,reflectToAttribute:!0},focused:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Function}}}static get observers(){return["__rendererOrItemChanged(renderer, index, item, selected, focused)","__updateLabel(label, renderer)"]}static get observedAttributes(){return[...super.observedAttributes,"hidden"]}attributeChangedCallback(e,t,i){"hidden"===e&&null!==i?this.index=void 0:super.attributeChangedCallback(e,t,i)}connectedCallback(){super.connectedCallback(),this._owner=this.parentNode.owner;const e=this._owner.getAttribute("dir");e&&this.setAttribute("dir",e)}requestContentUpdate(){this.renderer&&!this.hidden&&this.renderer(this,this._owner,{index:this.index,item:this.item,focused:this.focused,selected:this.selected})}__rendererOrItemChanged(e,t,i){void 0===i||void 0===t||(this._oldRenderer!==e&&(this.innerHTML="",delete this._$litPart$),e&&(this._oldRenderer=e,this.requestContentUpdate()))}__updateLabel(e,t){t||(this.textContent=e)}}
4316
4316
  /**
4317
4317
  * @license
4318
4318
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4319
4319
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4320
- */;class Ph extends(Bh(Tr(_s(Ko)))){static get template(){return $o`
4320
+ */;class Fh extends(jh(Tr(_s(Ko)))){static get template(){return $o`
4321
4321
  <style>
4322
4322
  :host {
4323
4323
  display: block;
@@ -4331,18 +4331,18 @@ const Bh=e=>class extends e{static get properties(){return{index:{type:Number},i
4331
4331
  <div part="content">
4332
4332
  <slot></slot>
4333
4333
  </div>
4334
- `}static get is(){return"vaadin-combo-box-item"}}si(Ph);
4334
+ `}static get is(){return"vaadin-combo-box-item"}}si(Fh);
4335
4335
  /**
4336
4336
  * @license
4337
4337
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4338
4338
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4339
4339
  */
4340
- const Lh=e=>class extends(Cl(e)){static get observers(){return["_setOverlayWidth(positionTarget, opened)"]}constructor(){super(),this.requiredVerticalSpace=200}connectedCallback(){super.connectedCallback();const e=this._comboBox,t=e&&e.getAttribute("dir");t&&this.setAttribute("dir",t)}_shouldCloseOnOutsideClick(e){const t=e.composedPath();return!t.includes(this.positionTarget)&&!t.includes(this)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!ca(e.composedPath()[0])&&e.preventDefault()}_updateOverlayWidth(){const e=this.localName;this.style.setProperty(`--_${e}-default-width`,`${this.positionTarget.clientWidth}px`);const t=getComputedStyle(this._comboBox).getPropertyValue(`--${e}-width`);""===t?this.style.removeProperty(`--${e}-width`):this.style.setProperty(`--${e}-width`,t)}_setOverlayWidth(e,t){e&&t&&(this._updateOverlayWidth(),this._updatePosition())}}
4340
+ const qh=e=>class extends(Rl(e)){static get observers(){return["_setOverlayWidth(positionTarget, opened)"]}constructor(){super(),this.requiredVerticalSpace=200}connectedCallback(){super.connectedCallback();const e=this._comboBox,t=e&&e.getAttribute("dir");t&&this.setAttribute("dir",t)}_shouldCloseOnOutsideClick(e){const t=e.composedPath();return!t.includes(this.positionTarget)&&!t.includes(this)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!ma(e.composedPath()[0])&&e.preventDefault()}_updateOverlayWidth(){const e=this.localName;this.style.setProperty(`--_${e}-default-width`,`${this.positionTarget.clientWidth}px`);const t=getComputedStyle(this._comboBox).getPropertyValue(`--${e}-width`);""===t?this.style.removeProperty(`--${e}-width`):this.style.setProperty(`--${e}-width`,t)}_setOverlayWidth(e,t){e&&t&&(this._updateOverlayWidth(),this._updatePosition())}}
4341
4341
  /**
4342
4342
  * @license
4343
4343
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4344
4344
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4345
- */;Sr("vaadin-combo-box-overlay",[Za,mi`
4345
+ */;Sr("vaadin-combo-box-overlay",[el,mi`
4346
4346
  #overlay {
4347
4347
  width: var(--vaadin-combo-box-overlay-width, var(--_vaadin-combo-box-overlay-default-width, auto));
4348
4348
  }
@@ -4352,7 +4352,7 @@ const Lh=e=>class extends(Cl(e)){static get observers(){return["_setOverlayWidth
4352
4352
  flex-direction: column;
4353
4353
  height: 100%;
4354
4354
  }
4355
- `],{moduleId:"vaadin-combo-box-overlay-styles"});class jh extends(Lh(xl(_s(Tr(Ko))))){static get is(){return"vaadin-combo-box-overlay"}static get template(){return $o`
4355
+ `],{moduleId:"vaadin-combo-box-overlay-styles"});class Hh extends(qh(Il(_s(Tr(Ko))))){static get is(){return"vaadin-combo-box-overlay"}static get template(){return $o`
4356
4356
  <div id="backdrop" part="backdrop" hidden></div>
4357
4357
  <div part="overlay" id="overlay">
4358
4358
  <div part="loader"></div>
@@ -4364,7 +4364,7 @@ const Lh=e=>class extends(Cl(e)){static get observers(){return["_setOverlayWidth
4364
4364
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
4365
4365
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4366
4366
  */
4367
- function Fh(e,t){return e.split(".").reduce(((e,t)=>e?e[t]:void 0),t)}
4367
+ function Vh(e,t){return e.split(".").reduce(((e,t)=>e?e[t]:void 0),t)}
4368
4368
  /**
4369
4369
  * @license
4370
4370
  * Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
@@ -4373,17 +4373,17 @@ function Fh(e,t){return e.split(".").reduce(((e,t)=>e?e[t]:void 0),t)}
4373
4373
  * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
4374
4374
  * Code distributed by Google as part of the polymer project is also
4375
4375
  * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
4376
- */si(jh);const qh=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),Hh=qh&&qh[1]>=8,Vh={_ratio:.5,_scrollerPaddingTop:0,_scrollPosition:0,_physicalSize:0,_physicalAverage:0,_physicalAverageCount:0,_physicalTop:0,_virtualCount:0,_estScrollHeight:0,_scrollHeight:0,_viewportHeight:0,_viewportWidth:0,_physicalItems:null,_physicalSizes:null,_firstVisibleIndexVal:null,_lastVisibleIndexVal:null,_maxPages:2,_templateCost:0,get _physicalBottom(){return this._physicalTop+this._physicalSize},get _scrollBottom(){return this._scrollPosition+this._viewportHeight},get _virtualEnd(){return this._virtualStart+this._physicalCount-1},get _hiddenContentSize(){return this._physicalSize-this._viewportHeight},get _maxScrollTop(){return this._estScrollHeight-this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){return Math.max(0,this._virtualCount-this._physicalCount)},get _virtualStart(){return this._virtualStartVal||0},set _virtualStart(e){e=this._clamp(e,0,this._maxVirtualStart),this._virtualStartVal=e},get _physicalStart(){return this._physicalStartVal||0},set _physicalStart(e){(e%=this._physicalCount)<0&&(e=this._physicalCount+e),this._physicalStartVal=e},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},get _physicalCount(){return this._physicalCountVal||0},set _physicalCount(e){this._physicalCountVal=e},get _optPhysicalSize(){return 0===this._viewportHeight?1/0:this._viewportHeight*this._maxPages},get _isVisible(){return!(!this.offsetWidth&&!this.offsetHeight)},get firstVisibleIndex(){let e=this._firstVisibleIndexVal;if(null==e){let t=this._physicalTop+this._scrollOffset;e=this._iterateItems(((e,i)=>{if(t+=this._getPhysicalSizeIncrement(e),t>this._scrollPosition)return i}))||0,this._firstVisibleIndexVal=e}return e},get lastVisibleIndex(){let e=this._lastVisibleIndexVal;if(null==e){let t=this._physicalTop+this._scrollOffset;this._iterateItems(((i,r)=>{t<this._scrollBottom&&(e=r),t+=this._getPhysicalSizeIncrement(i)})),this._lastVisibleIndexVal=e}return e},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},_scrollHandler(){const e=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop));let t=e-this._scrollPosition;const i=t>=0;if(this._scrollPosition=e,this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,Math.abs(t)>this._physicalSize&&this._physicalSize>0){t-=this._scrollOffset;const e=Math.round(t/this._physicalAverage);this._virtualStart+=e,this._physicalStart+=e,this._physicalTop=Math.min(Math.floor(this._virtualStart)*this._physicalAverage,this._scrollPosition),this._update()}else if(this._physicalCount>0){const e=this._getReusables(i);i?(this._physicalTop=e.physicalTop,this._virtualStart+=e.indexes.length,this._physicalStart+=e.indexes.length):(this._virtualStart-=e.indexes.length,this._physicalStart-=e.indexes.length),this._update(e.indexes,i?null:e.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),ss)}},_getReusables(e){let t,i,r;const n=[],o=this._hiddenContentSize*this._ratio,s=this._virtualStart,a=this._virtualEnd,l=this._physicalCount;let h=this._physicalTop+this._scrollOffset;const c=this._scrollPosition,d=this._scrollBottom;for(e?(t=this._physicalStart,i=c-h):(t=this._physicalEnd,i=this._physicalBottom+this._scrollOffset-d);r=this._getPhysicalSizeIncrement(t),i-=r,!(n.length>=l||i<=o);)if(e){if(a+n.length+1>=this._virtualCount||h+r>=c-this._scrollOffset)break;n.push(t),h+=r,t=(t+1)%l}else{if(s-n.length<=0||h+this._physicalSize-r<=d)break;n.push(t),h-=r,t=0===t?l-1:t-1}return{indexes:n,physicalTop:h-this._scrollOffset}},_update(e,t){if(!(e&&0===e.length||0===this._physicalCount)){if(this._assignModels(e),this._updateMetrics(e),t)for(;t.length;){const e=t.pop();this._physicalTop-=this._getPhysicalSizeIncrement(e)}this._positionItems(),this._updateScrollerSize()}},_isClientFull(){return 0!==this._scrollBottom&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},_increasePoolIfNeeded(e){const t=this._clamp(this._physicalCount+e,3,this._virtualCount-this._virtualStart)-this._physicalCount;let i=Math.round(.5*this._physicalCount);if(!(t<0)){if(t>0){const e=window.performance.now();[].push.apply(this._physicalItems,this._createPool(t));for(let e=0;e<t;e++)this._physicalSizes.push(0);this._physicalCount+=t,this._physicalStart>this._physicalEnd&&this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=t),this._update(),this._templateCost=(window.performance.now()-e)/t,i=Math.round(.5*this._physicalCount)}this._virtualEnd>=this._virtualCount-1||0===i||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,i)),os):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,i),ss))}},_render(){if(this.isAttached&&this._isVisible)if(0!==this._physicalCount){const e=this._getReusables(!0);this._physicalTop=e.physicalTop,this._virtualStart+=e.indexes.length,this._physicalStart+=e.indexes.length,this._update(e.indexes),this._update(),this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(3))},_itemsChanged(e){"items"===e.path&&(this._virtualStart=0,this._physicalTop=0,this._virtualCount=this.items?this.items.length:0,this._physicalIndexForKey={},this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._physicalItems||(this._physicalItems=[]),this._physicalSizes||(this._physicalSizes=[]),this._physicalStart=0,this._scrollTop>this._scrollOffset&&this._resetScrollPosition(0),this._debounce("_render",this._render,ns))},_iterateItems(e,t){let i,r,n,o;if(2===arguments.length&&t){for(o=0;o<t.length;o++)if(i=t[o],r=this._computeVidx(i),null!=(n=e.call(this,i,r)))return n}else{for(i=this._physicalStart,r=this._virtualStart;i<this._physicalCount;i++,r++)if(null!=(n=e.call(this,i,r)))return n;for(i=0;i<this._physicalStart;i++,r++)if(null!=(n=e.call(this,i,r)))return n}},_computeVidx(e){return e>=this._physicalStart?this._virtualStart+(e-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+e},_positionItems(){this._adjustScrollPosition();let e=this._physicalTop;this._iterateItems((t=>{this.translate3d(0,`${e}px`,0,this._physicalItems[t]),e+=this._physicalSizes[t]}))},_getPhysicalSizeIncrement(e){return this._physicalSizes[e]},_adjustScrollPosition(){const e=0===this._virtualStart?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(0!==e){this._physicalTop-=e;const t=this._scrollPosition;!Hh&&t>0&&this._resetScrollPosition(t-e)}},_resetScrollPosition(e){this.scrollTarget&&e>=0&&(this._scrollTop=e,this._scrollPosition=this._scrollTop)},_updateScrollerSize(e){const t=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;this._estScrollHeight=t,(e||0===this._scrollHeight||this._scrollPosition>=t-this._physicalSize||Math.abs(t-this._scrollHeight)>=this._viewportHeight)&&(this.$.items.style.height=`${t}px`,this._scrollHeight=t)},scrollToIndex(e){if("number"!=typeof e||e<0||e>this.items.length-1||(ds(),0===this._physicalCount))return;e=this._clamp(e,0,this._virtualCount-1),(!this._isIndexRendered(e)||e>=this._maxVirtualStart)&&(this._virtualStart=e-1),this._assignModels(),this._updateMetrics(),this._physicalTop=this._virtualStart*this._physicalAverage;let t=this._physicalStart,i=this._virtualStart,r=0;const n=this._hiddenContentSize;for(;i<e&&r<=n;)r+=this._getPhysicalSizeIncrement(t),t=(t+1)%this._physicalCount,i+=1;this._updateScrollerSize(!0),this._positionItems(),this._resetScrollPosition(this._physicalTop+this._scrollOffset+r),this._increasePoolIfNeeded(0),this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null},_resetAverage(){this._physicalAverage=0,this._physicalAverageCount=0},_resizeHandler(){this._debounce("_render",(()=>{this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._isVisible?(this.updateViewportBoundaries(),this.toggleScrollListener(!0),this._resetAverage(),this._render()):this.toggleScrollListener(!1)}),ns)},_isIndexRendered(e){return e>=this._virtualStart&&e<=this._virtualEnd},_getPhysicalIndex(e){return(this._physicalStart+(e-this._virtualStart))%this._physicalCount},_clamp:(e,t,i)=>Math.min(i,Math.max(t,e)),_debounce(e,t,i){this._debouncers||(this._debouncers={}),this._debouncers[e]=ls.debounce(this._debouncers[e],i,t.bind(this)),hs(this._debouncers[e])}},$h=1e3;
4376
+ */si(Hh);const $h=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),Xh=$h&&$h[1]>=8,Kh={_ratio:.5,_scrollerPaddingTop:0,_scrollPosition:0,_physicalSize:0,_physicalAverage:0,_physicalAverageCount:0,_physicalTop:0,_virtualCount:0,_estScrollHeight:0,_scrollHeight:0,_viewportHeight:0,_viewportWidth:0,_physicalItems:null,_physicalSizes:null,_firstVisibleIndexVal:null,_lastVisibleIndexVal:null,_maxPages:2,_templateCost:0,get _physicalBottom(){return this._physicalTop+this._physicalSize},get _scrollBottom(){return this._scrollPosition+this._viewportHeight},get _virtualEnd(){return this._virtualStart+this._physicalCount-1},get _hiddenContentSize(){return this._physicalSize-this._viewportHeight},get _maxScrollTop(){return this._estScrollHeight-this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){return Math.max(0,this._virtualCount-this._physicalCount)},get _virtualStart(){return this._virtualStartVal||0},set _virtualStart(e){e=this._clamp(e,0,this._maxVirtualStart),this._virtualStartVal=e},get _physicalStart(){return this._physicalStartVal||0},set _physicalStart(e){(e%=this._physicalCount)<0&&(e=this._physicalCount+e),this._physicalStartVal=e},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},get _physicalCount(){return this._physicalCountVal||0},set _physicalCount(e){this._physicalCountVal=e},get _optPhysicalSize(){return 0===this._viewportHeight?1/0:this._viewportHeight*this._maxPages},get _isVisible(){return!(!this.offsetWidth&&!this.offsetHeight)},get firstVisibleIndex(){let e=this._firstVisibleIndexVal;if(null==e){let t=this._physicalTop+this._scrollOffset;e=this._iterateItems(((e,i)=>{if(t+=this._getPhysicalSizeIncrement(e),t>this._scrollPosition)return i}))||0,this._firstVisibleIndexVal=e}return e},get lastVisibleIndex(){let e=this._lastVisibleIndexVal;if(null==e){let t=this._physicalTop+this._scrollOffset;this._iterateItems(((i,r)=>{t<this._scrollBottom&&(e=r),t+=this._getPhysicalSizeIncrement(i)})),this._lastVisibleIndexVal=e}return e},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},_scrollHandler(){const e=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop));let t=e-this._scrollPosition;const i=t>=0;if(this._scrollPosition=e,this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,Math.abs(t)>this._physicalSize&&this._physicalSize>0){t-=this._scrollOffset;const e=Math.round(t/this._physicalAverage);this._virtualStart+=e,this._physicalStart+=e,this._physicalTop=Math.min(Math.floor(this._virtualStart)*this._physicalAverage,this._scrollPosition),this._update()}else if(this._physicalCount>0){const e=this._getReusables(i);i?(this._physicalTop=e.physicalTop,this._virtualStart+=e.indexes.length,this._physicalStart+=e.indexes.length):(this._virtualStart-=e.indexes.length,this._physicalStart-=e.indexes.length),this._update(e.indexes,i?null:e.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),ss)}},_getReusables(e){let t,i,r;const n=[],o=this._hiddenContentSize*this._ratio,s=this._virtualStart,a=this._virtualEnd,l=this._physicalCount;let h=this._physicalTop+this._scrollOffset;const c=this._scrollPosition,d=this._scrollBottom;for(e?(t=this._physicalStart,i=c-h):(t=this._physicalEnd,i=this._physicalBottom+this._scrollOffset-d);r=this._getPhysicalSizeIncrement(t),i-=r,!(n.length>=l||i<=o);)if(e){if(a+n.length+1>=this._virtualCount||h+r>=c-this._scrollOffset)break;n.push(t),h+=r,t=(t+1)%l}else{if(s-n.length<=0||h+this._physicalSize-r<=d)break;n.push(t),h-=r,t=0===t?l-1:t-1}return{indexes:n,physicalTop:h-this._scrollOffset}},_update(e,t){if(!(e&&0===e.length||0===this._physicalCount)){if(this._assignModels(e),this._updateMetrics(e),t)for(;t.length;){const e=t.pop();this._physicalTop-=this._getPhysicalSizeIncrement(e)}this._positionItems(),this._updateScrollerSize()}},_isClientFull(){return 0!==this._scrollBottom&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},_increasePoolIfNeeded(e){const t=this._clamp(this._physicalCount+e,3,this._virtualCount-this._virtualStart)-this._physicalCount;let i=Math.round(.5*this._physicalCount);if(!(t<0)){if(t>0){const e=window.performance.now();[].push.apply(this._physicalItems,this._createPool(t));for(let e=0;e<t;e++)this._physicalSizes.push(0);this._physicalCount+=t,this._physicalStart>this._physicalEnd&&this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=t),this._update(),this._templateCost=(window.performance.now()-e)/t,i=Math.round(.5*this._physicalCount)}this._virtualEnd>=this._virtualCount-1||0===i||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,i)),os):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,i),ss))}},_render(){if(this.isAttached&&this._isVisible)if(0!==this._physicalCount){const e=this._getReusables(!0);this._physicalTop=e.physicalTop,this._virtualStart+=e.indexes.length,this._physicalStart+=e.indexes.length,this._update(e.indexes),this._update(),this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(3))},_itemsChanged(e){"items"===e.path&&(this._virtualStart=0,this._physicalTop=0,this._virtualCount=this.items?this.items.length:0,this._physicalIndexForKey={},this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._physicalItems||(this._physicalItems=[]),this._physicalSizes||(this._physicalSizes=[]),this._physicalStart=0,this._scrollTop>this._scrollOffset&&this._resetScrollPosition(0),this._debounce("_render",this._render,ns))},_iterateItems(e,t){let i,r,n,o;if(2===arguments.length&&t){for(o=0;o<t.length;o++)if(i=t[o],r=this._computeVidx(i),null!=(n=e.call(this,i,r)))return n}else{for(i=this._physicalStart,r=this._virtualStart;i<this._physicalCount;i++,r++)if(null!=(n=e.call(this,i,r)))return n;for(i=0;i<this._physicalStart;i++,r++)if(null!=(n=e.call(this,i,r)))return n}},_computeVidx(e){return e>=this._physicalStart?this._virtualStart+(e-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+e},_positionItems(){this._adjustScrollPosition();let e=this._physicalTop;this._iterateItems((t=>{this.translate3d(0,`${e}px`,0,this._physicalItems[t]),e+=this._physicalSizes[t]}))},_getPhysicalSizeIncrement(e){return this._physicalSizes[e]},_adjustScrollPosition(){const e=0===this._virtualStart?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(0!==e){this._physicalTop-=e;const t=this._scrollPosition;!Xh&&t>0&&this._resetScrollPosition(t-e)}},_resetScrollPosition(e){this.scrollTarget&&e>=0&&(this._scrollTop=e,this._scrollPosition=this._scrollTop)},_updateScrollerSize(e){const t=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;this._estScrollHeight=t,(e||0===this._scrollHeight||this._scrollPosition>=t-this._physicalSize||Math.abs(t-this._scrollHeight)>=this._viewportHeight)&&(this.$.items.style.height=`${t}px`,this._scrollHeight=t)},scrollToIndex(e){if("number"!=typeof e||e<0||e>this.items.length-1||(ds(),0===this._physicalCount))return;e=this._clamp(e,0,this._virtualCount-1),(!this._isIndexRendered(e)||e>=this._maxVirtualStart)&&(this._virtualStart=e-1),this._assignModels(),this._updateMetrics(),this._physicalTop=this._virtualStart*this._physicalAverage;let t=this._physicalStart,i=this._virtualStart,r=0;const n=this._hiddenContentSize;for(;i<e&&r<=n;)r+=this._getPhysicalSizeIncrement(t),t=(t+1)%this._physicalCount,i+=1;this._updateScrollerSize(!0),this._positionItems(),this._resetScrollPosition(this._physicalTop+this._scrollOffset+r),this._increasePoolIfNeeded(0),this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null},_resetAverage(){this._physicalAverage=0,this._physicalAverageCount=0},_resizeHandler(){this._debounce("_render",(()=>{this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._isVisible?(this.updateViewportBoundaries(),this.toggleScrollListener(!0),this._resetAverage(),this._render()):this.toggleScrollListener(!1)}),ns)},_isIndexRendered(e){return e>=this._virtualStart&&e<=this._virtualEnd},_getPhysicalIndex(e){return(this._physicalStart+(e-this._virtualStart))%this._physicalCount},_clamp:(e,t,i)=>Math.min(i,Math.max(t,e)),_debounce(e,t,i){this._debouncers||(this._debouncers={}),this._debouncers[e]=ls.debounce(this._debouncers[e],i,t.bind(this)),hs(this._debouncers[e])}},Yh=1e3;
4377
4377
  /**
4378
4378
  * @license
4379
4379
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4380
4380
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4381
- */class Xh{constructor({createElements:e,updateElement:t,scrollTarget:i,scrollContainer:r,elementsContainer:n,reorderElements:o}){this.isAttached=!0,this._vidxOffset=0,this.createElements=e,this.updateElement=t,this.scrollTarget=i,this.scrollContainer=r,this.elementsContainer=n||r,this.reorderElements=o,this._maxPages=1.3,this.__placeholderHeight=200,this.__elementHeightQueue=Array(10),this.timeouts={SCROLL_REORDER:500,IGNORE_WHEEL:500,FIX_INVALID_ITEM_POSITIONING:100},this.__resizeObserver=new ResizeObserver((()=>this._resizeHandler())),"visible"===getComputedStyle(this.scrollTarget).overflow&&(this.scrollTarget.style.overflow="auto"),"static"===getComputedStyle(this.scrollContainer).position&&(this.scrollContainer.style.position="relative"),this.__resizeObserver.observe(this.scrollTarget),this.scrollTarget.addEventListener("scroll",(()=>this._scrollHandler())),new ResizeObserver((([{contentRect:e}])=>{const t=0===e.width&&0===e.height;!t&&this.__scrollTargetHidden&&this.scrollTarget.scrollTop!==this._scrollPosition&&(this.scrollTarget.scrollTop=this._scrollPosition),this.__scrollTargetHidden=t})).observe(this.scrollTarget),this._scrollLineHeight=this._getScrollLineHeight(),this.scrollTarget.addEventListener("wheel",(e=>this.__onWheel(e))),this.scrollTarget.addEventListener("virtualizer-element-focused",(e=>this.__onElementFocused(e))),this.elementsContainer.addEventListener("focusin",(()=>{this.scrollTarget.dispatchEvent(new CustomEvent("virtualizer-element-focused",{detail:{element:this.__getFocusedElement()}}))})),this.reorderElements&&(this.scrollTarget.addEventListener("mousedown",(()=>{this.__mouseDown=!0})),this.scrollTarget.addEventListener("mouseup",(()=>{this.__mouseDown=!1,this.__pendingReorder&&this.__reorderElements()})))}get scrollOffset(){return 0}get adjustedFirstVisibleIndex(){return this.firstVisibleIndex+this._vidxOffset}get adjustedLastVisibleIndex(){return this.lastVisibleIndex+this._vidxOffset}get _maxVirtualIndexOffset(){return this.size-this._virtualCount}__hasPlaceholders(){return this.__getVisibleElements().some((e=>e.__virtualizerPlaceholder))}scrollToIndex(e){if("number"!=typeof e||isNaN(e)||0===this.size||!this.scrollTarget.offsetHeight)return;delete this.__pendingScrollToIndex,this._physicalCount<=3&&this.flush(),e=this._clamp(e,0,this.size-1);const t=this.__getVisibleElements().length;let i=Math.floor(e/this.size*this._virtualCount);this._virtualCount-i<t?(i=this._virtualCount-(this.size-e),this._vidxOffset=this._maxVirtualIndexOffset):i<t?e<$h?(i=e,this._vidxOffset=0):(i=$h,this._vidxOffset=e-i):this._vidxOffset=e-i,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(i),this.adjustedFirstVisibleIndex!==e&&this._scrollTop<this._maxScrollTop&&!this.grid&&(this._scrollTop-=this.__getIndexScrollOffset(e)||0),this._scrollHandler(),this.__hasPlaceholders()&&(this.__pendingScrollToIndex=e)}flush(){0!==this.scrollTarget.offsetHeight&&(this._resizeHandler(),ds(),this._scrollHandler(),this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.flush(),this.__scrollReorderDebouncer&&this.__scrollReorderDebouncer.flush(),this.__debouncerWheelAnimationFrame&&this.__debouncerWheelAnimationFrame.flush())}update(e=0,t=this.size-1){const i=[];this.__getVisibleElements().forEach((r=>{r.__virtualIndex>=e&&r.__virtualIndex<=t&&(this.__updateElement(r,r.__virtualIndex,!0),i.push(r))})),this.__afterElementsUpdated(i)}_updateMetrics(e){ds();let t=0,i=0;const r=this._physicalAverageCount,n=this._physicalAverage;this._iterateItems((e=>{i+=this._physicalSizes[e],this._physicalSizes[e]=Math.ceil(this.__getBorderBoxHeight(this._physicalItems[e])),t+=this._physicalSizes[e],this._physicalAverageCount+=this._physicalSizes[e]?1:0}),e),this._physicalSize=this._physicalSize+t-i,this._physicalAverageCount!==r&&(this._physicalAverage=Math.round((n*r+t)/this._physicalAverageCount))}__getBorderBoxHeight(e){const t=getComputedStyle(e),i=parseFloat(t.height)||0;return"border-box"===t.boxSizing?i:i+(parseFloat(t.paddingBottom)||0)+(parseFloat(t.paddingTop)||0)+(parseFloat(t.borderBottomWidth)||0)+(parseFloat(t.borderTopWidth)||0)}__updateElement(e,t,i){e.__virtualizerPlaceholder&&(e.style.paddingTop="",e.style.opacity="",e.__virtualizerPlaceholder=!1),!this.__preventElementUpdates&&(e.__lastUpdatedIndex!==t||i)&&(this.updateElement(e,t),e.__lastUpdatedIndex=t)}__afterElementsUpdated(e){e.forEach((e=>{const t=e.offsetHeight;if(0===t)e.style.paddingTop=`${this.__placeholderHeight}px`,e.style.opacity="0",e.__virtualizerPlaceholder=!0,this.__placeholderClearDebouncer=ls.debounce(this.__placeholderClearDebouncer,ns,(()=>this._resizeHandler()));else{this.__elementHeightQueue.push(t),this.__elementHeightQueue.shift();const e=this.__elementHeightQueue.filter((e=>void 0!==e));this.__placeholderHeight=Math.round(e.reduce(((e,t)=>e+t),0)/e.length)}})),void 0!==this.__pendingScrollToIndex&&!this.__hasPlaceholders()&&this.scrollToIndex(this.__pendingScrollToIndex)}__getIndexScrollOffset(e){const t=this.__getVisibleElements().find((t=>t.__virtualIndex===e));return t?this.scrollTarget.getBoundingClientRect().top-t.getBoundingClientRect().top:void 0}get size(){return this.__size}set size(e){if(e===this.size)return;let t,i;if(this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.cancel(),this._debouncers&&this._debouncers._increasePoolIfNeeded&&this._debouncers._increasePoolIfNeeded.cancel(),this.__preventElementUpdates=!0,e>0&&(t=this.adjustedFirstVisibleIndex,i=this.__getIndexScrollOffset(t)),this.__size=e,this._itemsChanged({path:"items"}),ds(),e>0){t=Math.min(t,e-1),this.scrollToIndex(t);const r=this.__getIndexScrollOffset(t);void 0!==i&&void 0!==r&&(this._scrollTop+=i-r)}this.__preventElementUpdates=!1,this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame((()=>this._resizeHandler())),this._resizeHandler(),ds(),this._debounce("_update",this._update,ss)}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(e){this.scrollTarget.scrollTop=e}get items(){return{length:Math.min(this.size,1e5)}}get offsetHeight(){return this.scrollTarget.offsetHeight}get $(){return{items:this.scrollContainer}}updateViewportBoundaries(){const e=window.getComputedStyle(this.scrollTarget);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(e["padding-top"],10),this._isRTL="rtl"===e.direction,this._viewportWidth=this.elementsContainer.offsetWidth,this._viewportHeight=this.scrollTarget.offsetHeight,this._scrollPageHeight=this._viewportHeight-this._scrollLineHeight,this.grid&&this._updateGridMetrics()}setAttribute(){}_createPool(e){const t=this.createElements(e),i=document.createDocumentFragment();return t.forEach((e=>{e.style.position="absolute",i.appendChild(e),this.__resizeObserver.observe(e)})),this.elementsContainer.appendChild(i),t}_assignModels(e){const t=[];this._iterateItems(((e,i)=>{const r=this._physicalItems[e];r.hidden=i>=this.size,r.hidden?delete r.__lastUpdatedIndex:(r.__virtualIndex=i+(this._vidxOffset||0),this.__updateElement(r,r.__virtualIndex),t.push(r))}),e),this.__afterElementsUpdated(t)}_isClientFull(){return setTimeout((()=>{this.__clientFull=!0})),this.__clientFull||super._isClientFull()}translate3d(e,t,i,r){r.style.transform=`translateY(${t})`}toggleScrollListener(){}__getFocusedElement(e=this.__getVisibleElements()){return e.find((e=>e.contains(this.elementsContainer.getRootNode().activeElement)||e.contains(this.scrollTarget.getRootNode().activeElement)))}__nextFocusableSiblingMissing(e,t){return t.indexOf(e)===t.length-1&&this.size>e.__virtualIndex+1}__previousFocusableSiblingMissing(e,t){return 0===t.indexOf(e)&&e.__virtualIndex>0}__onElementFocused(e){if(!this.reorderElements)return;const t=e.detail.element;if(!t)return;const i=this.__getVisibleElements();(this.__previousFocusableSiblingMissing(t,i)||this.__nextFocusableSiblingMissing(t,i))&&this.flush();const r=this.__getVisibleElements();this.__nextFocusableSiblingMissing(t,r)?(this._scrollTop+=Math.ceil(t.getBoundingClientRect().bottom)-Math.floor(this.scrollTarget.getBoundingClientRect().bottom-1),this.flush()):this.__previousFocusableSiblingMissing(t,r)&&(this._scrollTop-=Math.ceil(this.scrollTarget.getBoundingClientRect().top+1)-Math.floor(t.getBoundingClientRect().top),this.flush())}_scrollHandler(){if(0===this.scrollTarget.offsetHeight)return;this._adjustVirtualIndexOffset(this._scrollTop-(this.__previousScrollTop||0));const e=this.scrollTarget.scrollTop-this._scrollPosition;if(super._scrollHandler(),0!==this._physicalCount){const t=e>=0,i=this._getReusables(!t);i.indexes.length&&(this._physicalTop=i.physicalTop,t?(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length):(this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length),this._resizeHandler())}e&&(this.__fixInvalidItemPositioningDebouncer=ls.debounce(this.__fixInvalidItemPositioningDebouncer,rs.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),(()=>this.__fixInvalidItemPositioning()))),this.reorderElements&&(this.__scrollReorderDebouncer=ls.debounce(this.__scrollReorderDebouncer,rs.after(this.timeouts.SCROLL_REORDER),(()=>this.__reorderElements()))),this.__previousScrollTop=this._scrollTop,0===this._scrollTop&&0!==this.firstVisibleIndex&&Math.abs(e)>0&&this.scrollToIndex(0)}__fixInvalidItemPositioning(){if(!this.scrollTarget.isConnected)return;const e=this._physicalBottom<this._scrollBottom;if(this._physicalTop>this._scrollTop&&0!==this.adjustedFirstVisibleIndex||e&&this.adjustedLastVisibleIndex!==this.size-1){const t=e,i=this._ratio;this._ratio=0,this._scrollPosition=this._scrollTop+(t?-1:1),this._scrollHandler(),this._ratio=i}}__onWheel(e){if(e.ctrlKey||this._hasScrolledAncestor(e.target,e.deltaX,e.deltaY))return;let t=e.deltaY;if(e.deltaMode===WheelEvent.DOM_DELTA_LINE?t*=this._scrollLineHeight:e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._scrollPageHeight),this._deltaYAcc||(this._deltaYAcc=0),this._wheelAnimationFrame)return this._deltaYAcc+=t,void e.preventDefault();t+=this._deltaYAcc,this._deltaYAcc=0,this._wheelAnimationFrame=!0,this.__debouncerWheelAnimationFrame=ls.debounce(this.__debouncerWheelAnimationFrame,ns,(()=>{this._wheelAnimationFrame=!1}));const i=Math.abs(e.deltaX)+Math.abs(t);this._canScroll(this.scrollTarget,e.deltaX,t)?(e.preventDefault(),this.scrollTarget.scrollTop+=t,this.scrollTarget.scrollLeft+=e.deltaX,this._hasResidualMomentum=!0,this._ignoreNewWheel=!0,this._debouncerIgnoreNewWheel=ls.debounce(this._debouncerIgnoreNewWheel,rs.after(this.timeouts.IGNORE_WHEEL),(()=>{this._ignoreNewWheel=!1}))):this._hasResidualMomentum&&i<=this._previousMomentum||this._ignoreNewWheel?e.preventDefault():i>this._previousMomentum&&(this._hasResidualMomentum=!1),this._previousMomentum=i}_hasScrolledAncestor(e,t,i){return e!==this.scrollTarget&&e!==this.scrollTarget.getRootNode().host&&(!(!this._canScroll(e,t,i)||-1===["auto","scroll"].indexOf(getComputedStyle(e).overflow))||(e!==this&&e.parentElement?this._hasScrolledAncestor(e.parentElement,t,i):void 0))}_canScroll(e,t,i){return i>0&&e.scrollTop<e.scrollHeight-e.offsetHeight||i<0&&e.scrollTop>0||t>0&&e.scrollLeft<e.scrollWidth-e.offsetWidth||t<0&&e.scrollLeft>0}_increasePoolIfNeeded(e){if(this._physicalCount>2&&e){const t=Math.ceil(this._optPhysicalSize/this._physicalAverage)-this._physicalCount;super._increasePoolIfNeeded(Math.max(e,Math.min(100,t)))}else super._increasePoolIfNeeded(e)}get _optPhysicalSize(){const e=super._optPhysicalSize;return e<=0||this.__hasPlaceholders()?e:e+this.__getItemHeightBuffer()}__getItemHeightBuffer(){if(0===this._physicalCount)return 0;const e=Math.ceil(this._viewportHeight*(this._maxPages-1)/2),t=Math.max(...this._physicalSizes);return t>Math.min(...this._physicalSizes)?Math.max(0,t-e):0}_getScrollLineHeight(){const e=document.createElement("div");e.style.fontSize="initial",e.style.display="none",document.body.appendChild(e);const t=window.getComputedStyle(e).fontSize;return document.body.removeChild(e),t?window.parseInt(t):void 0}__getVisibleElements(){return Array.from(this.elementsContainer.children).filter((e=>!e.hidden))}__reorderElements(){if(this.__mouseDown)return void(this.__pendingReorder=!0);this.__pendingReorder=!1;const e=this._virtualStart+(this._vidxOffset||0),t=this.__getVisibleElements(),i=this.__getFocusedElement(t)||t[0];if(!i)return;const r=i.__virtualIndex-e,n=t.indexOf(i)-r;if(n>0)for(let e=0;e<n;e++)this.elementsContainer.appendChild(t[e]);else if(n<0)for(let e=t.length+n;e<t.length;e++)this.elementsContainer.insertBefore(t[e],t[0]);if(al){const{transform:e}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout((()=>{this.scrollTarget.style.transform=e}))}}_adjustVirtualIndexOffset(e){const t=this._maxVirtualIndexOffset;if(this._virtualCount>=this.size)this._vidxOffset=0;else if(this.__skipNextVirtualIndexAdjust)this.__skipNextVirtualIndexAdjust=!1;else if(Math.abs(e)>1e4)this._vidxOffset=Math.round(this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.clientHeight)*t);else{const e=this._vidxOffset,i=$h,r=100;0===this._scrollTop?(this._vidxOffset=0,e!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<i&&this._vidxOffset>0&&(this._vidxOffset-=Math.min(this._vidxOffset,r),super.scrollToIndex(this.firstVisibleIndex+(e-this._vidxOffset))),this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?(this._vidxOffset=t,e!==this._vidxOffset&&super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-i&&this._vidxOffset<t&&(this._vidxOffset+=Math.min(t-this._vidxOffset,r),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-e)))}}}Object.setPrototypeOf(Xh.prototype,Vh);class Kh{constructor(e){this.__adapter=new Xh(e)}get firstVisibleIndex(){return this.__adapter.adjustedFirstVisibleIndex}get lastVisibleIndex(){return this.__adapter.adjustedLastVisibleIndex}get size(){return this.__adapter.size}set size(e){this.__adapter.size=e}scrollToIndex(e){this.__adapter.scrollToIndex(e)}update(e=0,t=this.size-1){this.__adapter.update(e,t)}flush(){this.__adapter.flush()}}
4381
+ */class Wh{constructor({createElements:e,updateElement:t,scrollTarget:i,scrollContainer:r,elementsContainer:n,reorderElements:o}){this.isAttached=!0,this._vidxOffset=0,this.createElements=e,this.updateElement=t,this.scrollTarget=i,this.scrollContainer=r,this.elementsContainer=n||r,this.reorderElements=o,this._maxPages=1.3,this.__placeholderHeight=200,this.__elementHeightQueue=Array(10),this.timeouts={SCROLL_REORDER:500,IGNORE_WHEEL:500,FIX_INVALID_ITEM_POSITIONING:100},this.__resizeObserver=new ResizeObserver((()=>this._resizeHandler())),"visible"===getComputedStyle(this.scrollTarget).overflow&&(this.scrollTarget.style.overflow="auto"),"static"===getComputedStyle(this.scrollContainer).position&&(this.scrollContainer.style.position="relative"),this.__resizeObserver.observe(this.scrollTarget),this.scrollTarget.addEventListener("scroll",(()=>this._scrollHandler())),new ResizeObserver((([{contentRect:e}])=>{const t=0===e.width&&0===e.height;!t&&this.__scrollTargetHidden&&this.scrollTarget.scrollTop!==this._scrollPosition&&(this.scrollTarget.scrollTop=this._scrollPosition),this.__scrollTargetHidden=t})).observe(this.scrollTarget),this._scrollLineHeight=this._getScrollLineHeight(),this.scrollTarget.addEventListener("wheel",(e=>this.__onWheel(e))),this.scrollTarget.addEventListener("virtualizer-element-focused",(e=>this.__onElementFocused(e))),this.elementsContainer.addEventListener("focusin",(()=>{this.scrollTarget.dispatchEvent(new CustomEvent("virtualizer-element-focused",{detail:{element:this.__getFocusedElement()}}))})),this.reorderElements&&(this.scrollTarget.addEventListener("mousedown",(()=>{this.__mouseDown=!0})),this.scrollTarget.addEventListener("mouseup",(()=>{this.__mouseDown=!1,this.__pendingReorder&&this.__reorderElements()})))}get scrollOffset(){return 0}get adjustedFirstVisibleIndex(){return this.firstVisibleIndex+this._vidxOffset}get adjustedLastVisibleIndex(){return this.lastVisibleIndex+this._vidxOffset}get _maxVirtualIndexOffset(){return this.size-this._virtualCount}__hasPlaceholders(){return this.__getVisibleElements().some((e=>e.__virtualizerPlaceholder))}scrollToIndex(e){if("number"!=typeof e||isNaN(e)||0===this.size||!this.scrollTarget.offsetHeight)return;delete this.__pendingScrollToIndex,this._physicalCount<=3&&this.flush(),e=this._clamp(e,0,this.size-1);const t=this.__getVisibleElements().length;let i=Math.floor(e/this.size*this._virtualCount);this._virtualCount-i<t?(i=this._virtualCount-(this.size-e),this._vidxOffset=this._maxVirtualIndexOffset):i<t?e<Yh?(i=e,this._vidxOffset=0):(i=Yh,this._vidxOffset=e-i):this._vidxOffset=e-i,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(i),this.adjustedFirstVisibleIndex!==e&&this._scrollTop<this._maxScrollTop&&!this.grid&&(this._scrollTop-=this.__getIndexScrollOffset(e)||0),this._scrollHandler(),this.__hasPlaceholders()&&(this.__pendingScrollToIndex=e)}flush(){0!==this.scrollTarget.offsetHeight&&(this._resizeHandler(),ds(),this._scrollHandler(),this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.flush(),this.__scrollReorderDebouncer&&this.__scrollReorderDebouncer.flush(),this.__debouncerWheelAnimationFrame&&this.__debouncerWheelAnimationFrame.flush())}update(e=0,t=this.size-1){const i=[];this.__getVisibleElements().forEach((r=>{r.__virtualIndex>=e&&r.__virtualIndex<=t&&(this.__updateElement(r,r.__virtualIndex,!0),i.push(r))})),this.__afterElementsUpdated(i)}_updateMetrics(e){ds();let t=0,i=0;const r=this._physicalAverageCount,n=this._physicalAverage;this._iterateItems((e=>{i+=this._physicalSizes[e],this._physicalSizes[e]=Math.ceil(this.__getBorderBoxHeight(this._physicalItems[e])),t+=this._physicalSizes[e],this._physicalAverageCount+=this._physicalSizes[e]?1:0}),e),this._physicalSize=this._physicalSize+t-i,this._physicalAverageCount!==r&&(this._physicalAverage=Math.round((n*r+t)/this._physicalAverageCount))}__getBorderBoxHeight(e){const t=getComputedStyle(e),i=parseFloat(t.height)||0;return"border-box"===t.boxSizing?i:i+(parseFloat(t.paddingBottom)||0)+(parseFloat(t.paddingTop)||0)+(parseFloat(t.borderBottomWidth)||0)+(parseFloat(t.borderTopWidth)||0)}__updateElement(e,t,i){e.__virtualizerPlaceholder&&(e.style.paddingTop="",e.style.opacity="",e.__virtualizerPlaceholder=!1),!this.__preventElementUpdates&&(e.__lastUpdatedIndex!==t||i)&&(this.updateElement(e,t),e.__lastUpdatedIndex=t)}__afterElementsUpdated(e){e.forEach((e=>{const t=e.offsetHeight;if(0===t)e.style.paddingTop=`${this.__placeholderHeight}px`,e.style.opacity="0",e.__virtualizerPlaceholder=!0,this.__placeholderClearDebouncer=ls.debounce(this.__placeholderClearDebouncer,ns,(()=>this._resizeHandler()));else{this.__elementHeightQueue.push(t),this.__elementHeightQueue.shift();const e=this.__elementHeightQueue.filter((e=>void 0!==e));this.__placeholderHeight=Math.round(e.reduce(((e,t)=>e+t),0)/e.length)}})),void 0!==this.__pendingScrollToIndex&&!this.__hasPlaceholders()&&this.scrollToIndex(this.__pendingScrollToIndex)}__getIndexScrollOffset(e){const t=this.__getVisibleElements().find((t=>t.__virtualIndex===e));return t?this.scrollTarget.getBoundingClientRect().top-t.getBoundingClientRect().top:void 0}get size(){return this.__size}set size(e){if(e===this.size)return;let t,i;if(this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.cancel(),this._debouncers&&this._debouncers._increasePoolIfNeeded&&this._debouncers._increasePoolIfNeeded.cancel(),this.__preventElementUpdates=!0,e>0&&(t=this.adjustedFirstVisibleIndex,i=this.__getIndexScrollOffset(t)),this.__size=e,this._itemsChanged({path:"items"}),ds(),e>0){t=Math.min(t,e-1),this.scrollToIndex(t);const r=this.__getIndexScrollOffset(t);void 0!==i&&void 0!==r&&(this._scrollTop+=i-r)}this.__preventElementUpdates=!1,this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame((()=>this._resizeHandler())),this._resizeHandler(),ds(),this._debounce("_update",this._update,ss)}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(e){this.scrollTarget.scrollTop=e}get items(){return{length:Math.min(this.size,1e5)}}get offsetHeight(){return this.scrollTarget.offsetHeight}get $(){return{items:this.scrollContainer}}updateViewportBoundaries(){const e=window.getComputedStyle(this.scrollTarget);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(e["padding-top"],10),this._isRTL="rtl"===e.direction,this._viewportWidth=this.elementsContainer.offsetWidth,this._viewportHeight=this.scrollTarget.offsetHeight,this._scrollPageHeight=this._viewportHeight-this._scrollLineHeight,this.grid&&this._updateGridMetrics()}setAttribute(){}_createPool(e){const t=this.createElements(e),i=document.createDocumentFragment();return t.forEach((e=>{e.style.position="absolute",i.appendChild(e),this.__resizeObserver.observe(e)})),this.elementsContainer.appendChild(i),t}_assignModels(e){const t=[];this._iterateItems(((e,i)=>{const r=this._physicalItems[e];r.hidden=i>=this.size,r.hidden?delete r.__lastUpdatedIndex:(r.__virtualIndex=i+(this._vidxOffset||0),this.__updateElement(r,r.__virtualIndex),t.push(r))}),e),this.__afterElementsUpdated(t)}_isClientFull(){return setTimeout((()=>{this.__clientFull=!0})),this.__clientFull||super._isClientFull()}translate3d(e,t,i,r){r.style.transform=`translateY(${t})`}toggleScrollListener(){}__getFocusedElement(e=this.__getVisibleElements()){return e.find((e=>e.contains(this.elementsContainer.getRootNode().activeElement)||e.contains(this.scrollTarget.getRootNode().activeElement)))}__nextFocusableSiblingMissing(e,t){return t.indexOf(e)===t.length-1&&this.size>e.__virtualIndex+1}__previousFocusableSiblingMissing(e,t){return 0===t.indexOf(e)&&e.__virtualIndex>0}__onElementFocused(e){if(!this.reorderElements)return;const t=e.detail.element;if(!t)return;const i=this.__getVisibleElements();(this.__previousFocusableSiblingMissing(t,i)||this.__nextFocusableSiblingMissing(t,i))&&this.flush();const r=this.__getVisibleElements();this.__nextFocusableSiblingMissing(t,r)?(this._scrollTop+=Math.ceil(t.getBoundingClientRect().bottom)-Math.floor(this.scrollTarget.getBoundingClientRect().bottom-1),this.flush()):this.__previousFocusableSiblingMissing(t,r)&&(this._scrollTop-=Math.ceil(this.scrollTarget.getBoundingClientRect().top+1)-Math.floor(t.getBoundingClientRect().top),this.flush())}_scrollHandler(){if(0===this.scrollTarget.offsetHeight)return;this._adjustVirtualIndexOffset(this._scrollTop-(this.__previousScrollTop||0));const e=this.scrollTarget.scrollTop-this._scrollPosition;if(super._scrollHandler(),0!==this._physicalCount){const t=e>=0,i=this._getReusables(!t);i.indexes.length&&(this._physicalTop=i.physicalTop,t?(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length):(this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length),this._resizeHandler())}e&&(this.__fixInvalidItemPositioningDebouncer=ls.debounce(this.__fixInvalidItemPositioningDebouncer,rs.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),(()=>this.__fixInvalidItemPositioning()))),this.reorderElements&&(this.__scrollReorderDebouncer=ls.debounce(this.__scrollReorderDebouncer,rs.after(this.timeouts.SCROLL_REORDER),(()=>this.__reorderElements()))),this.__previousScrollTop=this._scrollTop,0===this._scrollTop&&0!==this.firstVisibleIndex&&Math.abs(e)>0&&this.scrollToIndex(0)}__fixInvalidItemPositioning(){if(!this.scrollTarget.isConnected)return;const e=this._physicalBottom<this._scrollBottom;if(this._physicalTop>this._scrollTop&&0!==this.adjustedFirstVisibleIndex||e&&this.adjustedLastVisibleIndex!==this.size-1){const t=e,i=this._ratio;this._ratio=0,this._scrollPosition=this._scrollTop+(t?-1:1),this._scrollHandler(),this._ratio=i}}__onWheel(e){if(e.ctrlKey||this._hasScrolledAncestor(e.target,e.deltaX,e.deltaY))return;let t=e.deltaY;if(e.deltaMode===WheelEvent.DOM_DELTA_LINE?t*=this._scrollLineHeight:e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._scrollPageHeight),this._deltaYAcc||(this._deltaYAcc=0),this._wheelAnimationFrame)return this._deltaYAcc+=t,void e.preventDefault();t+=this._deltaYAcc,this._deltaYAcc=0,this._wheelAnimationFrame=!0,this.__debouncerWheelAnimationFrame=ls.debounce(this.__debouncerWheelAnimationFrame,ns,(()=>{this._wheelAnimationFrame=!1}));const i=Math.abs(e.deltaX)+Math.abs(t);this._canScroll(this.scrollTarget,e.deltaX,t)?(e.preventDefault(),this.scrollTarget.scrollTop+=t,this.scrollTarget.scrollLeft+=e.deltaX,this._hasResidualMomentum=!0,this._ignoreNewWheel=!0,this._debouncerIgnoreNewWheel=ls.debounce(this._debouncerIgnoreNewWheel,rs.after(this.timeouts.IGNORE_WHEEL),(()=>{this._ignoreNewWheel=!1}))):this._hasResidualMomentum&&i<=this._previousMomentum||this._ignoreNewWheel?e.preventDefault():i>this._previousMomentum&&(this._hasResidualMomentum=!1),this._previousMomentum=i}_hasScrolledAncestor(e,t,i){return e!==this.scrollTarget&&e!==this.scrollTarget.getRootNode().host&&(!(!this._canScroll(e,t,i)||-1===["auto","scroll"].indexOf(getComputedStyle(e).overflow))||(e!==this&&e.parentElement?this._hasScrolledAncestor(e.parentElement,t,i):void 0))}_canScroll(e,t,i){return i>0&&e.scrollTop<e.scrollHeight-e.offsetHeight||i<0&&e.scrollTop>0||t>0&&e.scrollLeft<e.scrollWidth-e.offsetWidth||t<0&&e.scrollLeft>0}_increasePoolIfNeeded(e){if(this._physicalCount>2&&e){const t=Math.ceil(this._optPhysicalSize/this._physicalAverage)-this._physicalCount;super._increasePoolIfNeeded(Math.max(e,Math.min(100,t)))}else super._increasePoolIfNeeded(e)}get _optPhysicalSize(){const e=super._optPhysicalSize;return e<=0||this.__hasPlaceholders()?e:e+this.__getItemHeightBuffer()}__getItemHeightBuffer(){if(0===this._physicalCount)return 0;const e=Math.ceil(this._viewportHeight*(this._maxPages-1)/2),t=Math.max(...this._physicalSizes);return t>Math.min(...this._physicalSizes)?Math.max(0,t-e):0}_getScrollLineHeight(){const e=document.createElement("div");e.style.fontSize="initial",e.style.display="none",document.body.appendChild(e);const t=window.getComputedStyle(e).fontSize;return document.body.removeChild(e),t?window.parseInt(t):void 0}__getVisibleElements(){return Array.from(this.elementsContainer.children).filter((e=>!e.hidden))}__reorderElements(){if(this.__mouseDown)return void(this.__pendingReorder=!0);this.__pendingReorder=!1;const e=this._virtualStart+(this._vidxOffset||0),t=this.__getVisibleElements(),i=this.__getFocusedElement(t)||t[0];if(!i)return;const r=i.__virtualIndex-e,n=t.indexOf(i)-r;if(n>0)for(let e=0;e<n;e++)this.elementsContainer.appendChild(t[e]);else if(n<0)for(let e=t.length+n;e<t.length;e++)this.elementsContainer.insertBefore(t[e],t[0]);if(cl){const{transform:e}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout((()=>{this.scrollTarget.style.transform=e}))}}_adjustVirtualIndexOffset(e){const t=this._maxVirtualIndexOffset;if(this._virtualCount>=this.size)this._vidxOffset=0;else if(this.__skipNextVirtualIndexAdjust)this.__skipNextVirtualIndexAdjust=!1;else if(Math.abs(e)>1e4)this._vidxOffset=Math.round(this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.clientHeight)*t);else{const e=this._vidxOffset,i=Yh,r=100;0===this._scrollTop?(this._vidxOffset=0,e!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<i&&this._vidxOffset>0&&(this._vidxOffset-=Math.min(this._vidxOffset,r),super.scrollToIndex(this.firstVisibleIndex+(e-this._vidxOffset))),this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?(this._vidxOffset=t,e!==this._vidxOffset&&super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-i&&this._vidxOffset<t&&(this._vidxOffset+=Math.min(t-this._vidxOffset,r),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-e)))}}}Object.setPrototypeOf(Wh.prototype,Kh);class Zh{constructor(e){this.__adapter=new Wh(e)}get firstVisibleIndex(){return this.__adapter.adjustedFirstVisibleIndex}get lastVisibleIndex(){return this.__adapter.adjustedLastVisibleIndex}get size(){return this.__adapter.size}set size(e){this.__adapter.size=e}scrollToIndex(e){this.__adapter.scrollToIndex(e)}update(e=0,t=this.size-1){this.__adapter.update(e,t)}flush(){this.__adapter.flush()}}
4382
4382
  /**
4383
4383
  * @license
4384
4384
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4385
4385
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4386
- */const Yh=class{toString(){return""}},Wh=e=>class extends e{static get properties(){return{items:{type:Array,sync:!0,observer:"__itemsChanged"},focusedIndex:{type:Number,sync:!0,observer:"__focusedIndexChanged"},loading:{type:Boolean,sync:!0,observer:"__loadingChanged"},opened:{type:Boolean,sync:!0,observer:"__openedChanged"},selectedItem:{type:Object,sync:!0,observer:"__selectedItemChanged"},itemClassNameGenerator:{type:Object,observer:"__itemClassNameGeneratorChanged"},itemIdPath:{type:String},owner:{type:Object},getItemLabel:{type:Object},renderer:{type:Object,sync:!0,observer:"__rendererChanged"},theme:{type:String}}}constructor(){super(),this.__boundOnItemClick=this.__onItemClick.bind(this)}get _viewportTotalPaddingBottom(){if(void 0===this._cachedViewportTotalPaddingBottom){const e=window.getComputedStyle(this.$.selector);this._cachedViewportTotalPaddingBottom=[e.paddingBottom,e.borderBottomWidth].map((e=>parseInt(e,10))).reduce(((e,t)=>e+t))}return this._cachedViewportTotalPaddingBottom}ready(){super.ready(),this.setAttribute("role","listbox"),this.id=`${this.localName}-${xs()}`,this.__hostTagName=this.constructor.is.replace("-scroller",""),this.addEventListener("click",(e=>e.stopPropagation())),this.__patchWheelOverScrolling()}requestContentUpdate(){this.__virtualizer&&(this.items&&(this.__virtualizer.size=this.items.length),this.opened&&this.__virtualizer.update())}scrollIntoView(e){if(!this.__virtualizer||!(this.opened&&e>=0))return;const t=this._visibleItemsCount();let i=e;e>this.__virtualizer.lastVisibleIndex-1?(this.__virtualizer.scrollToIndex(e),i=e-t+1):e>this.__virtualizer.firstVisibleIndex&&(i=this.__virtualizer.firstVisibleIndex),this.__virtualizer.scrollToIndex(Math.max(0,i));const r=[...this.children].find((e=>!e.hidden&&e.index===this.__virtualizer.lastVisibleIndex));if(!r||e!==r.index)return;const n=r.getBoundingClientRect(),o=this.getBoundingClientRect(),s=n.bottom-o.bottom+this._viewportTotalPaddingBottom;s>0&&(this.scrollTop+=s)}_isItemSelected(e,t,i){return!(e instanceof Yh)&&(i&&void 0!==e&&void 0!==t?Fh(i,e)===Fh(i,t):e===t)}__initVirtualizer(){this.__virtualizer=new Kh({createElements:this.__createElements.bind(this),updateElement:this._updateElement.bind(this),elementsContainer:this,scrollTarget:this,scrollContainer:this.$.selector,reorderElements:!0})}__itemsChanged(e){e&&this.__virtualizer&&this.requestContentUpdate()}__loadingChanged(){this.requestContentUpdate()}__openedChanged(e){e&&(this.__virtualizer||this.__initVirtualizer(),this.requestContentUpdate())}__selectedItemChanged(){this.requestContentUpdate()}__itemClassNameGeneratorChanged(e,t){(e||t)&&this.requestContentUpdate()}__focusedIndexChanged(e,t){e!==t&&this.requestContentUpdate(),e>=0&&!this.loading&&this.scrollIntoView(e)}__rendererChanged(e,t){(e||t)&&this.requestContentUpdate()}__createElements(e){return[...Array(e)].map((()=>{const e=document.createElement(`${this.__hostTagName}-item`);return e.addEventListener("click",this.__boundOnItemClick),e.tabIndex="-1",e.style.width="100%",e}))}_updateElement(e,t){const i=this.items[t],r=this.focusedIndex,n=this._isItemSelected(i,this.selectedItem,this.itemIdPath);e.setProperties({item:i,index:t,label:this.getItemLabel(i),selected:n,renderer:this.renderer,focused:!this.loading&&r===t}),"function"==typeof this.itemClassNameGenerator?e.className=this.itemClassNameGenerator(i):""!==e.className&&(e.className=""),e.performUpdate&&!e.hasUpdated&&e.performUpdate(),e.id=`${this.__hostTagName}-item-${t}`,e.setAttribute("role",void 0!==t&&"option"),e.setAttribute("aria-selected",n.toString()),e.setAttribute("aria-posinset",t+1),e.setAttribute("aria-setsize",this.items.length),this.theme?e.setAttribute("theme",this.theme):e.removeAttribute("theme"),i instanceof Yh&&this.__requestItemByIndex(t)}__onItemClick(e){this.dispatchEvent(new CustomEvent("selection-changed",{detail:{item:e.currentTarget.item}}))}__patchWheelOverScrolling(){this.$.selector.addEventListener("wheel",(e=>{(0===this.scrollTop&&e.deltaY<0||this.scrollHeight-this.scrollTop-this.clientHeight<=1&&e.deltaY>0)&&e.preventDefault()}))}__requestItemByIndex(e){requestAnimationFrame((()=>{this.dispatchEvent(new CustomEvent("index-requested",{detail:{index:e}}))}))}_visibleItemsCount(){return this.__virtualizer.scrollToIndex(this.__virtualizer.firstVisibleIndex),this.__virtualizer.size>0?this.__virtualizer.lastVisibleIndex-this.__virtualizer.firstVisibleIndex+1:0}}
4386
+ */const Qh=class{toString(){return""}},Jh=e=>class extends e{static get properties(){return{items:{type:Array,sync:!0,observer:"__itemsChanged"},focusedIndex:{type:Number,sync:!0,observer:"__focusedIndexChanged"},loading:{type:Boolean,sync:!0,observer:"__loadingChanged"},opened:{type:Boolean,sync:!0,observer:"__openedChanged"},selectedItem:{type:Object,sync:!0,observer:"__selectedItemChanged"},itemClassNameGenerator:{type:Object,observer:"__itemClassNameGeneratorChanged"},itemIdPath:{type:String},owner:{type:Object},getItemLabel:{type:Object},renderer:{type:Object,sync:!0,observer:"__rendererChanged"},theme:{type:String}}}constructor(){super(),this.__boundOnItemClick=this.__onItemClick.bind(this)}get _viewportTotalPaddingBottom(){if(void 0===this._cachedViewportTotalPaddingBottom){const e=window.getComputedStyle(this.$.selector);this._cachedViewportTotalPaddingBottom=[e.paddingBottom,e.borderBottomWidth].map((e=>parseInt(e,10))).reduce(((e,t)=>e+t))}return this._cachedViewportTotalPaddingBottom}ready(){super.ready(),this.setAttribute("role","listbox"),this.id=`${this.localName}-${xs()}`,this.__hostTagName=this.constructor.is.replace("-scroller",""),this.addEventListener("click",(e=>e.stopPropagation())),this.__patchWheelOverScrolling()}requestContentUpdate(){this.__virtualizer&&(this.items&&(this.__virtualizer.size=this.items.length),this.opened&&this.__virtualizer.update())}scrollIntoView(e){if(!this.__virtualizer||!(this.opened&&e>=0))return;const t=this._visibleItemsCount();let i=e;e>this.__virtualizer.lastVisibleIndex-1?(this.__virtualizer.scrollToIndex(e),i=e-t+1):e>this.__virtualizer.firstVisibleIndex&&(i=this.__virtualizer.firstVisibleIndex),this.__virtualizer.scrollToIndex(Math.max(0,i));const r=[...this.children].find((e=>!e.hidden&&e.index===this.__virtualizer.lastVisibleIndex));if(!r||e!==r.index)return;const n=r.getBoundingClientRect(),o=this.getBoundingClientRect(),s=n.bottom-o.bottom+this._viewportTotalPaddingBottom;s>0&&(this.scrollTop+=s)}_isItemSelected(e,t,i){return!(e instanceof Qh)&&(i&&void 0!==e&&void 0!==t?Vh(i,e)===Vh(i,t):e===t)}__initVirtualizer(){this.__virtualizer=new Zh({createElements:this.__createElements.bind(this),updateElement:this._updateElement.bind(this),elementsContainer:this,scrollTarget:this,scrollContainer:this.$.selector,reorderElements:!0})}__itemsChanged(e){e&&this.__virtualizer&&this.requestContentUpdate()}__loadingChanged(){this.requestContentUpdate()}__openedChanged(e){e&&(this.__virtualizer||this.__initVirtualizer(),this.requestContentUpdate())}__selectedItemChanged(){this.requestContentUpdate()}__itemClassNameGeneratorChanged(e,t){(e||t)&&this.requestContentUpdate()}__focusedIndexChanged(e,t){e!==t&&this.requestContentUpdate(),e>=0&&!this.loading&&this.scrollIntoView(e)}__rendererChanged(e,t){(e||t)&&this.requestContentUpdate()}__createElements(e){return[...Array(e)].map((()=>{const e=document.createElement(`${this.__hostTagName}-item`);return e.addEventListener("click",this.__boundOnItemClick),e.tabIndex="-1",e.style.width="100%",e}))}_updateElement(e,t){const i=this.items[t],r=this.focusedIndex,n=this._isItemSelected(i,this.selectedItem,this.itemIdPath);e.setProperties({item:i,index:t,label:this.getItemLabel(i),selected:n,renderer:this.renderer,focused:!this.loading&&r===t}),"function"==typeof this.itemClassNameGenerator?e.className=this.itemClassNameGenerator(i):""!==e.className&&(e.className=""),e.performUpdate&&!e.hasUpdated&&e.performUpdate(),e.id=`${this.__hostTagName}-item-${t}`,e.setAttribute("role",void 0!==t&&"option"),e.setAttribute("aria-selected",n.toString()),e.setAttribute("aria-posinset",t+1),e.setAttribute("aria-setsize",this.items.length),this.theme?e.setAttribute("theme",this.theme):e.removeAttribute("theme"),i instanceof Qh&&this.__requestItemByIndex(t)}__onItemClick(e){this.dispatchEvent(new CustomEvent("selection-changed",{detail:{item:e.currentTarget.item}}))}__patchWheelOverScrolling(){this.$.selector.addEventListener("wheel",(e=>{(0===this.scrollTop&&e.deltaY<0||this.scrollHeight-this.scrollTop-this.clientHeight<=1&&e.deltaY>0)&&e.preventDefault()}))}__requestItemByIndex(e){requestAnimationFrame((()=>{this.dispatchEvent(new CustomEvent("index-requested",{detail:{index:e}}))}))}_visibleItemsCount(){return this.__virtualizer.scrollToIndex(this.__virtualizer.firstVisibleIndex),this.__virtualizer.size>0?this.__virtualizer.lastVisibleIndex-this.__virtualizer.firstVisibleIndex+1:0}}
4387
4387
  /**
4388
4388
  * @license
4389
4389
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
@@ -4393,7 +4393,7 @@ function Fh(e,t){return e.split(".").reduce(((e,t)=>e?e[t]:void 0),t)}
4393
4393
  * @license
4394
4394
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4395
4395
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4396
- */class Zh extends(Wh(Ko)){static get is(){return"vaadin-combo-box-scroller"}static get template(){return $o`
4396
+ */class ec extends(Jh(Ko)){static get is(){return"vaadin-combo-box-scroller"}static get template(){return $o`
4397
4397
  <style>
4398
4398
  :host {
4399
4399
  display: block;
@@ -4420,33 +4420,33 @@ function Fh(e,t){return e.split(".").reduce(((e,t)=>e?e[t]:void 0),t)}
4420
4420
  <div id="selector">
4421
4421
  <slot></slot>
4422
4422
  </div>
4423
- `}}si(Zh);
4423
+ `}}si(ec);
4424
4424
  /**
4425
4425
  * @license
4426
4426
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4427
4427
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4428
4428
  */
4429
- const Qh=e=>class extends(wh(e)){static get properties(){return{pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"pattern"]}static get constraints(){return[...super.constraints,"pattern"]}}
4429
+ const tc=e=>class extends(Sh(e)){static get properties(){return{pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"pattern"]}static get constraints(){return[...super.constraints,"pattern"]}}
4430
4430
  /**
4431
4431
  * @license
4432
4432
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4433
4433
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4434
- */;function Jh(e,t,i=0){let r=t;for(const t of e.subCaches){const e=t.parentCacheIndex;if(r<=e)break;if(r<=e+t.flatSize)return Jh(t,r-e-1,i+1);r-=t.flatSize}return{cache:e,item:e.items[r],index:r,page:Math.floor(r/e.pageSize),level:i}}function ec({getItemId:e},t,i,r=0,n=0){for(let o=0;o<t.items.length;o++){const s=t.items[o];if(s&&e(s)===e(i))return{cache:t,level:r,item:s,index:o,page:Math.floor(o/t.pageSize),subCache:t.getSubCache(o),flatIndex:n+t.getFlatIndex(o)}}for(const o of t.subCaches){const s=ec({getItemId:e},o,i,r+1,n+t.getFlatIndex(o.parentCacheIndex)+1);if(s)return s}}function tc(e,[t,...i],r=0){t===1/0&&(t=e.size-1);const n=e.getFlatIndex(t),o=e.getSubCache(t);return o&&o.flatSize>0&&i.length?tc(o,i,r+n+1):r+n}
4434
+ */;function ic(e,t,i=0){let r=t;for(const t of e.subCaches){const e=t.parentCacheIndex;if(r<=e)break;if(r<=e+t.flatSize)return ic(t,r-e-1,i+1);r-=t.flatSize}return{cache:e,item:e.items[r],index:r,page:Math.floor(r/e.pageSize),level:i}}function rc({getItemId:e},t,i,r=0,n=0){for(let o=0;o<t.items.length;o++){const s=t.items[o];if(s&&e(s)===e(i))return{cache:t,level:r,item:s,index:o,page:Math.floor(o/t.pageSize),subCache:t.getSubCache(o),flatIndex:n+t.getFlatIndex(o)}}for(const o of t.subCaches){const s=rc({getItemId:e},o,i,r+1,n+t.getFlatIndex(o.parentCacheIndex)+1);if(s)return s}}function nc(e,[t,...i],r=0){t===1/0&&(t=e.size-1);const n=e.getFlatIndex(t),o=e.getSubCache(t);return o&&o.flatSize>0&&i.length?nc(o,i,r+n+1):r+n}
4435
4435
  /**
4436
4436
  * @license
4437
4437
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4438
4438
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4439
- */class ic{constructor(e,t,i,r,n){ni(this,"context"),ni(this,"pageSize"),ni(this,"items",[]),ni(this,"pendingRequests",{}),ni(this,"__subCacheByIndex",{}),ni(this,"__size",0),ni(this,"__flatSize",0),this.context=e,this.pageSize=t,this.size=i,this.parentCache=r,this.parentCacheIndex=n,this.__flatSize=i||0}get parentItem(){return this.parentCache&&this.parentCache.items[this.parentCacheIndex]}get subCaches(){return Object.values(this.__subCacheByIndex)}get isLoading(){return Object.keys(this.pendingRequests).length>0||this.subCaches.some((e=>e.isLoading))}get flatSize(){return this.__flatSize}get effectiveSize(){return console.warn("<vaadin-grid> The `effectiveSize` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.flatSize}get size(){return this.__size}set size(e){var t;if(this.__size!==e){if(this.__size=e,void 0!==this.context.placeholder){this.items.length=e||0;for(let i=0;i<e;i++)(t=this.items)[i]||(t[i]=this.context.placeholder)}Object.keys(this.pendingRequests).forEach((e=>{parseInt(e)*this.pageSize>=this.size&&delete this.pendingRequests[e]}))}}recalculateFlatSize(){this.__flatSize=!this.parentItem||this.context.isExpanded(this.parentItem)?this.size+this.subCaches.reduce(((e,t)=>(t.recalculateFlatSize(),e+t.flatSize)),0):0}setPage(e,t){const i=e*this.pageSize;t.forEach(((e,t)=>{const r=i+t;(void 0===this.size||r<this.size)&&(this.items[r]=e)}))}getSubCache(e){return this.__subCacheByIndex[e]}removeSubCache(e){delete this.__subCacheByIndex[e]}removeSubCaches(){this.__subCacheByIndex={}}createSubCache(e){const t=new ic(this.context,this.pageSize,0,this,e);return this.__subCacheByIndex[e]=t,t}getFlatIndex(e){const t=Math.max(0,Math.min(this.size-1,e));return this.subCaches.reduce(((e,i)=>t>i.parentCacheIndex?e+i.flatSize:e),t)}getItemForIndex(e){console.warn("<vaadin-grid> The `getItemForIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{item:t}=Jh(this,e);return t}getCacheAndIndex(e){console.warn("<vaadin-grid> The `getCacheAndIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{cache:t,index:i}=Jh(this,e);return{cache:t,scaledIndex:i}}updateSize(){console.warn("<vaadin-grid> The `updateSize` method of ItemCache is deprecated and will be removed in Vaadin 25."),this.recalculateFlatSize()}ensureSubCacheForScaledIndex(e){if(console.warn("<vaadin-grid> The `ensureSubCacheForScaledIndex` method of ItemCache is deprecated and will be removed in Vaadin 25."),!this.getSubCache(e)){const t=this.createSubCache(e);this.context.__controller.__loadCachePage(t,0)}}get grid(){return console.warn("<vaadin-grid> The `grid` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.context.__controller.host}get itemCaches(){return console.warn("<vaadin-grid> The `itemCaches` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.__subCacheByIndex
4439
+ */class oc{constructor(e,t,i,r,n){ni(this,"context"),ni(this,"pageSize"),ni(this,"items",[]),ni(this,"pendingRequests",{}),ni(this,"__subCacheByIndex",{}),ni(this,"__size",0),ni(this,"__flatSize",0),this.context=e,this.pageSize=t,this.size=i,this.parentCache=r,this.parentCacheIndex=n,this.__flatSize=i||0}get parentItem(){return this.parentCache&&this.parentCache.items[this.parentCacheIndex]}get subCaches(){return Object.values(this.__subCacheByIndex)}get isLoading(){return Object.keys(this.pendingRequests).length>0||this.subCaches.some((e=>e.isLoading))}get flatSize(){return this.__flatSize}get effectiveSize(){return console.warn("<vaadin-grid> The `effectiveSize` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.flatSize}get size(){return this.__size}set size(e){var t;if(this.__size!==e){if(this.__size=e,void 0!==this.context.placeholder){this.items.length=e||0;for(let i=0;i<e;i++)(t=this.items)[i]||(t[i]=this.context.placeholder)}Object.keys(this.pendingRequests).forEach((e=>{parseInt(e)*this.pageSize>=this.size&&delete this.pendingRequests[e]}))}}recalculateFlatSize(){this.__flatSize=!this.parentItem||this.context.isExpanded(this.parentItem)?this.size+this.subCaches.reduce(((e,t)=>(t.recalculateFlatSize(),e+t.flatSize)),0):0}setPage(e,t){const i=e*this.pageSize;t.forEach(((e,t)=>{const r=i+t;(void 0===this.size||r<this.size)&&(this.items[r]=e)}))}getSubCache(e){return this.__subCacheByIndex[e]}removeSubCache(e){delete this.__subCacheByIndex[e]}removeSubCaches(){this.__subCacheByIndex={}}createSubCache(e){const t=new oc(this.context,this.pageSize,0,this,e);return this.__subCacheByIndex[e]=t,t}getFlatIndex(e){const t=Math.max(0,Math.min(this.size-1,e));return this.subCaches.reduce(((e,i)=>t>i.parentCacheIndex?e+i.flatSize:e),t)}getItemForIndex(e){console.warn("<vaadin-grid> The `getItemForIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{item:t}=ic(this,e);return t}getCacheAndIndex(e){console.warn("<vaadin-grid> The `getCacheAndIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{cache:t,index:i}=ic(this,e);return{cache:t,scaledIndex:i}}updateSize(){console.warn("<vaadin-grid> The `updateSize` method of ItemCache is deprecated and will be removed in Vaadin 25."),this.recalculateFlatSize()}ensureSubCacheForScaledIndex(e){if(console.warn("<vaadin-grid> The `ensureSubCacheForScaledIndex` method of ItemCache is deprecated and will be removed in Vaadin 25."),!this.getSubCache(e)){const t=this.createSubCache(e);this.context.__controller.__loadCachePage(t,0)}}get grid(){return console.warn("<vaadin-grid> The `grid` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.context.__controller.host}get itemCaches(){return console.warn("<vaadin-grid> The `itemCaches` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.__subCacheByIndex
4440
4440
  /**
4441
4441
  * @license
4442
4442
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4443
4443
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4444
- */}}class rc extends EventTarget{constructor(e,{size:t,pageSize:i,isExpanded:r,getItemId:n,isPlaceholder:o,placeholder:s,dataProvider:a,dataProviderParams:l}){super(),ni(this,"host"),ni(this,"dataProvider"),ni(this,"dataProviderParams"),ni(this,"pageSize"),ni(this,"isExpanded"),ni(this,"getItemId"),ni(this,"rootCache"),ni(this,"placeholder"),ni(this,"isPlaceholder"),this.host=e,this.pageSize=i,this.getItemId=n,this.isExpanded=r,this.placeholder=s,this.isPlaceholder=o,this.dataProvider=a,this.dataProviderParams=l,this.rootCache=this.__createRootCache(t)}get flatSize(){return this.rootCache.flatSize}get __cacheContext(){return{isExpanded:this.isExpanded,placeholder:this.placeholder,__controller:this}}isLoading(){return this.rootCache.isLoading}setPageSize(e){this.pageSize=e,this.clearCache()}setDataProvider(e){this.dataProvider=e,this.clearCache()}recalculateFlatSize(){this.rootCache.recalculateFlatSize()}clearCache(){this.rootCache=this.__createRootCache(this.rootCache.size)}getFlatIndexContext(e){return Jh(this.rootCache,e)}getItemContext(e){return ec({getItemId:this.getItemId},this.rootCache,e)}getFlatIndexByPath(e){return tc(this.rootCache,e)}ensureFlatIndexLoaded(e){const{cache:t,page:i,item:r}=this.getFlatIndexContext(e);this.__isItemLoaded(r)||this.__loadCachePage(t,i)}ensureFlatIndexHierarchy(e){const{cache:t,item:i,index:r}=this.getFlatIndexContext(e);if(this.__isItemLoaded(i)&&this.isExpanded(i)&&!t.getSubCache(r)){const e=t.createSubCache(r);this.__loadCachePage(e,0)}}loadFirstPage(){this.__loadCachePage(this.rootCache,0)}__createRootCache(e){return new ic(this.__cacheContext,this.pageSize,e)}__loadCachePage(e,t){if(!this.dataProvider||e.pendingRequests[t])return;let i={page:t,pageSize:this.pageSize,parentItem:e.parentItem};this.dataProviderParams&&(i=ii(ii({},i),this.dataProviderParams()));const r=(n,o)=>{e.pendingRequests[t]===r&&(void 0!==o?e.size=o:i.parentItem&&(e.size=n.length),e.setPage(t,n),this.recalculateFlatSize(),this.dispatchEvent(new CustomEvent("page-received")),delete e.pendingRequests[t],this.dispatchEvent(new CustomEvent("page-loaded")))};e.pendingRequests[t]=r,this.dispatchEvent(new CustomEvent("page-requested")),this.dataProvider(i,r)}__isItemLoaded(e){return this.isPlaceholder?!this.isPlaceholder(e):this.placeholder?e!==this.placeholder:!!e}}
4444
+ */}}class sc extends EventTarget{constructor(e,{size:t,pageSize:i,isExpanded:r,getItemId:n,isPlaceholder:o,placeholder:s,dataProvider:a,dataProviderParams:l}){super(),ni(this,"host"),ni(this,"dataProvider"),ni(this,"dataProviderParams"),ni(this,"pageSize"),ni(this,"isExpanded"),ni(this,"getItemId"),ni(this,"rootCache"),ni(this,"placeholder"),ni(this,"isPlaceholder"),this.host=e,this.pageSize=i,this.getItemId=n,this.isExpanded=r,this.placeholder=s,this.isPlaceholder=o,this.dataProvider=a,this.dataProviderParams=l,this.rootCache=this.__createRootCache(t)}get flatSize(){return this.rootCache.flatSize}get __cacheContext(){return{isExpanded:this.isExpanded,placeholder:this.placeholder,__controller:this}}isLoading(){return this.rootCache.isLoading}setPageSize(e){this.pageSize=e,this.clearCache()}setDataProvider(e){this.dataProvider=e,this.clearCache()}recalculateFlatSize(){this.rootCache.recalculateFlatSize()}clearCache(){this.rootCache=this.__createRootCache(this.rootCache.size)}getFlatIndexContext(e){return ic(this.rootCache,e)}getItemContext(e){return rc({getItemId:this.getItemId},this.rootCache,e)}getFlatIndexByPath(e){return nc(this.rootCache,e)}ensureFlatIndexLoaded(e){const{cache:t,page:i,item:r}=this.getFlatIndexContext(e);this.__isItemLoaded(r)||this.__loadCachePage(t,i)}ensureFlatIndexHierarchy(e){const{cache:t,item:i,index:r}=this.getFlatIndexContext(e);if(this.__isItemLoaded(i)&&this.isExpanded(i)&&!t.getSubCache(r)){const e=t.createSubCache(r);this.__loadCachePage(e,0)}}loadFirstPage(){this.__loadCachePage(this.rootCache,0)}__createRootCache(e){return new oc(this.__cacheContext,this.pageSize,e)}__loadCachePage(e,t){if(!this.dataProvider||e.pendingRequests[t])return;let i={page:t,pageSize:this.pageSize,parentItem:e.parentItem};this.dataProviderParams&&(i=ii(ii({},i),this.dataProviderParams()));const r=(n,o)=>{e.pendingRequests[t]===r&&(void 0!==o?e.size=o:i.parentItem&&(e.size=n.length),e.setPage(t,n),this.recalculateFlatSize(),this.dispatchEvent(new CustomEvent("page-received")),delete e.pendingRequests[t],this.dispatchEvent(new CustomEvent("page-loaded")))};e.pendingRequests[t]=r,this.dispatchEvent(new CustomEvent("page-requested")),this.dataProvider(i,r)}__isItemLoaded(e){return this.isPlaceholder?!this.isPlaceholder(e):this.placeholder?e!==this.placeholder:!!e}}
4445
4445
  /**
4446
4446
  * @license
4447
4447
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4448
4448
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4449
- */const nc=e=>class extends e{static get properties(){return{pageSize:{type:Number,value:50,observer:"_pageSizeChanged",sync:!0},size:{type:Number,observer:"_sizeChanged",sync:!0},dataProvider:{type:Object,observer:"_dataProviderChanged",sync:!0},__dataProviderInitialized:{type:Boolean,value:!1},__previousDataProviderFilter:{type:String}}}static get observers(){return["_dataProviderFilterChanged(filter)","_warnDataProviderValue(dataProvider, value)","_ensureFirstPage(opened)"]}constructor(){super(),this.__dataProviderController=new rc(this,{placeholder:new Yh,isPlaceholder:e=>e instanceof Yh,dataProviderParams:()=>({filter:this.filter})}),this.__dataProviderController.addEventListener("page-requested",this.__onDataProviderPageRequested.bind(this)),this.__dataProviderController.addEventListener("page-loaded",this.__onDataProviderPageLoaded.bind(this))}ready(){super.ready(),this._scroller.addEventListener("index-requested",(e=>{if(!this._shouldFetchData())return;const t=e.detail.index;void 0!==t&&this.__dataProviderController.ensureFlatIndexLoaded(t)})),this.__dataProviderInitialized=!0,this.dataProvider&&this.__synchronizeControllerState()}_dataProviderFilterChanged(e){void 0!==this.__previousDataProviderFilter||""!==e?this.__previousDataProviderFilter!==e&&(this.__previousDataProviderFilter=e,this.__keepOverlayOpened=!0,this.size=void 0,this.clearCache(),this.__keepOverlayOpened=!1):this.__previousDataProviderFilter=e}_shouldFetchData(){return!!this.dataProvider&&(this.opened||this.filter&&this.filter.length)}_ensureFirstPage(e){!this._shouldFetchData()||!e||(this._forceNextRequest||void 0===this.size?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this.size>0&&this.__dataProviderController.ensureFlatIndexLoaded(0))}__onDataProviderPageRequested(){this.loading=!0}__onDataProviderPageLoaded(){const{rootCache:e}=this.__dataProviderController;e.items=[...e.items],this.__synchronizeControllerState(),!this.opened&&!this._isInputFocused()&&this._commitValue()}clearCache(){this.dataProvider&&(this.__dataProviderController.clearCache(),this.__synchronizeControllerState(),this._shouldFetchData()?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this._forceNextRequest=!0)}_sizeChanged(e){const{rootCache:t}=this.__dataProviderController;t.size!==e&&(t.size=e,t.items=[...t.items],this.__synchronizeControllerState())}_filteredItemsChanged(e){if(super._filteredItemsChanged(e),this.dataProvider&&e){const{rootCache:t}=this.__dataProviderController;t.items!==e&&(t.items=e,this.__synchronizeControllerState())}}__synchronizeControllerState(){if(this.__dataProviderInitialized&&this.dataProvider){const{rootCache:e}=this.__dataProviderController;this.size=e.size,this.filteredItems=e.items,this.loading=this.__dataProviderController.isLoading()}}_pageSizeChanged(e,t){if(Math.floor(e)!==e||e<1)throw this.pageSize=t,new Error("`pageSize` value must be an integer > 0");this.__dataProviderController.setPageSize(e),this.clearCache()}_dataProviderChanged(e,t){this._ensureItemsOrDataProvider((()=>{this.dataProvider=t})),this.__dataProviderController.setDataProvider(e),this.clearCache()}_ensureItemsOrDataProvider(e){if(void 0!==this.items&&void 0!==this.dataProvider)throw e(),new Error("Using `items` and `dataProvider` together is not supported")}_warnDataProviderValue(e,t){if(e&&""!==t&&null==this.selectedItem){const e=this.__getItemIndexByValue(this.filteredItems,t);(e<0||!this._getItemLabel(this.filteredItems[e]))&&console.warn("Warning: unable to determine the label for the provided `value`. Nothing to display in the text field. This usually happens when setting an initial `value` before any items are returned from the `dataProvider` callback. Consider setting `selectedItem` instead of `value`")}}}
4449
+ */const ac=e=>class extends e{static get properties(){return{pageSize:{type:Number,value:50,observer:"_pageSizeChanged",sync:!0},size:{type:Number,observer:"_sizeChanged",sync:!0},dataProvider:{type:Object,observer:"_dataProviderChanged",sync:!0},__dataProviderInitialized:{type:Boolean,value:!1},__previousDataProviderFilter:{type:String}}}static get observers(){return["_dataProviderFilterChanged(filter)","_warnDataProviderValue(dataProvider, value)","_ensureFirstPage(opened)"]}constructor(){super(),this.__dataProviderController=new sc(this,{placeholder:new Qh,isPlaceholder:e=>e instanceof Qh,dataProviderParams:()=>({filter:this.filter})}),this.__dataProviderController.addEventListener("page-requested",this.__onDataProviderPageRequested.bind(this)),this.__dataProviderController.addEventListener("page-loaded",this.__onDataProviderPageLoaded.bind(this))}ready(){super.ready(),this._scroller.addEventListener("index-requested",(e=>{if(!this._shouldFetchData())return;const t=e.detail.index;void 0!==t&&this.__dataProviderController.ensureFlatIndexLoaded(t)})),this.__dataProviderInitialized=!0,this.dataProvider&&this.__synchronizeControllerState()}_dataProviderFilterChanged(e){void 0!==this.__previousDataProviderFilter||""!==e?this.__previousDataProviderFilter!==e&&(this.__previousDataProviderFilter=e,this.__keepOverlayOpened=!0,this.size=void 0,this.clearCache(),this.__keepOverlayOpened=!1):this.__previousDataProviderFilter=e}_shouldFetchData(){return!!this.dataProvider&&(this.opened||this.filter&&this.filter.length)}_ensureFirstPage(e){!this._shouldFetchData()||!e||(this._forceNextRequest||void 0===this.size?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this.size>0&&this.__dataProviderController.ensureFlatIndexLoaded(0))}__onDataProviderPageRequested(){this.loading=!0}__onDataProviderPageLoaded(){const{rootCache:e}=this.__dataProviderController;e.items=[...e.items],this.__synchronizeControllerState(),!this.opened&&!this._isInputFocused()&&this._commitValue()}clearCache(){this.dataProvider&&(this.__dataProviderController.clearCache(),this.__synchronizeControllerState(),this._shouldFetchData()?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this._forceNextRequest=!0)}_sizeChanged(e){const{rootCache:t}=this.__dataProviderController;t.size!==e&&(t.size=e,t.items=[...t.items],this.__synchronizeControllerState())}_filteredItemsChanged(e){if(super._filteredItemsChanged(e),this.dataProvider&&e){const{rootCache:t}=this.__dataProviderController;t.items!==e&&(t.items=e,this.__synchronizeControllerState())}}__synchronizeControllerState(){if(this.__dataProviderInitialized&&this.dataProvider){const{rootCache:e}=this.__dataProviderController;this.size=e.size,this.filteredItems=e.items,this.loading=this.__dataProviderController.isLoading()}}_pageSizeChanged(e,t){if(Math.floor(e)!==e||e<1)throw this.pageSize=t,new Error("`pageSize` value must be an integer > 0");this.__dataProviderController.setPageSize(e),this.clearCache()}_dataProviderChanged(e,t){this._ensureItemsOrDataProvider((()=>{this.dataProvider=t})),this.__dataProviderController.setDataProvider(e),this.clearCache()}_ensureItemsOrDataProvider(e){if(void 0!==this.items&&void 0!==this.dataProvider)throw e(),new Error("Using `items` and `dataProvider` together is not supported")}_warnDataProviderValue(e,t){if(e&&""!==t&&null==this.selectedItem){const e=this.__getItemIndexByValue(this.filteredItems,t);(e<0||!this._getItemLabel(this.filteredItems[e]))&&console.warn("Warning: unable to determine the label for the provided `value`. Nothing to display in the text field. This usually happens when setting an initial `value` before any items are returned from the `dataProvider` callback. Consider setting `selectedItem` instead of `value`")}}}
4450
4450
  /**
4451
4451
  * @license
4452
4452
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
@@ -4457,12 +4457,12 @@ const Qh=e=>class extends(wh(e)){static get properties(){return{pattern:{type:St
4457
4457
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4458
4458
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4459
4459
  */
4460
- function oc(e){return null!=e}function sc(e,t){return e.findIndex((e=>!(e instanceof Yh)&&t(e)))}const ac=e=>class extends(Sh(Sa(Oa(ma(ra(va(ia(e)))))))){static get properties(){return{opened:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0,sync:!0,observer:"_openedChanged"},autoOpenDisabled:{type:Boolean,sync:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Object,sync:!0},items:{type:Array,sync:!0,observer:"_itemsChanged"},allowCustomValue:{type:Boolean,value:!1},filteredItems:{type:Array,observer:"_filteredItemsChanged",sync:!0},_lastCommittedValue:String,loading:{type:Boolean,value:!1,reflectToAttribute:!0,sync:!0},_focusedIndex:{type:Number,observer:"_focusedIndexChanged",value:-1,sync:!0},filter:{type:String,value:"",notify:!0,sync:!0},selectedItem:{type:Object,notify:!0,sync:!0},itemClassNameGenerator:{type:Object},itemLabelPath:{type:String,value:"label",observer:"_itemLabelPathChanged",sync:!0},itemValuePath:{type:String,value:"value",sync:!0},itemIdPath:{type:String,sync:!0},_toggleElement:{type:Object,observer:"_toggleElementChanged"},_dropdownItems:{type:Array,sync:!0},_closeOnBlurIsPrevented:Boolean,_scroller:{type:Object,sync:!0},_overlayOpened:{type:Boolean,sync:!0,observer:"_overlayOpenedChanged"},__keepOverlayOpened:{type:Boolean,sync:!0}}}static get observers(){return["_selectedItemChanged(selectedItem, itemValuePath, itemLabelPath)","_openedOrItemsChanged(opened, _dropdownItems, loading, __keepOverlayOpened)","_updateScroller(_scroller, _dropdownItems, opened, loading, selectedItem, itemIdPath, _focusedIndex, renderer, _theme, itemClassNameGenerator)"]}constructor(){super(),this._boundOverlaySelectedItemChanged=this._overlaySelectedItemChanged.bind(this),this._boundOnClearButtonMouseDown=this.__onClearButtonMouseDown.bind(this),this._boundOnClick=this._onClick.bind(this),this._boundOnOverlayTouchAction=this._onOverlayTouchAction.bind(this),this._boundOnTouchend=this._onTouchend.bind(this)}get _tagNamePrefix(){return"vaadin-combo-box"}get _nativeInput(){return this.inputElement}_inputElementChanged(e){super._inputElementChanged(e);const t=this._nativeInput;t&&(t.autocomplete="off",t.autocapitalize="off",t.setAttribute("role","combobox"),t.setAttribute("aria-autocomplete","list"),t.setAttribute("aria-expanded",!!this.opened),t.setAttribute("spellcheck","false"),t.setAttribute("autocorrect","off"),this._revertInputValueToValue(),this.clearElement&&this.clearElement.addEventListener("mousedown",this._boundOnClearButtonMouseDown))}ready(){super.ready(),this._initOverlay(),this._initScroller(),this._lastCommittedValue=this.value,this.addEventListener("click",this._boundOnClick),this.addEventListener("touchend",this._boundOnTouchend);const e=()=>{requestAnimationFrame((()=>{this._overlayElement.bringToFront()}))};this.addEventListener("mousedown",e),this.addEventListener("touchstart",e),function(e){window.Vaadin&&window.Vaadin.templateRendererCallback?window.Vaadin.templateRendererCallback(e):e.querySelector("template")&&console.warn(`WARNING: <template> inside <${e.localName}> is no longer supported. Import @vaadin/polymer-legacy-adapter/template-renderer.js to enable compatibility.`)}(this),this.addController(new Ah(this))}disconnectedCallback(){super.disconnectedCallback(),this.close()}requestContentUpdate(){this._scroller&&(this._scroller.requestContentUpdate(),this._getItemElements().forEach((e=>{e.requestContentUpdate()})))}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.opened=!1}_propertiesChanged(e,t,i){super._propertiesChanged(e,t,i),void 0!==t.filter&&this._filterChanged(t.filter)}updated(e){super.updated(e),e.has("filter")&&this._filterChanged(this.filter)}_initOverlay(){const e=this.$.overlay;e._comboBox=this,e.addEventListener("touchend",this._boundOnOverlayTouchAction),e.addEventListener("touchmove",this._boundOnOverlayTouchAction),e.addEventListener("mousedown",(e=>e.preventDefault())),e.addEventListener("opened-changed",(e=>{this._overlayOpened=e.detail.value})),this._overlayElement=e}_initScroller(e){const t=document.createElement(`${this._tagNamePrefix}-scroller`);t.owner=e||this,t.getItemLabel=this._getItemLabel.bind(this),t.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged);const i=this._overlayElement;i.renderer=e=>{e.innerHTML||e.appendChild(t)},i.requestContentUpdate(),this._scroller=t}_updateScroller(e,t,i,r,n,o,s,a,l,h){if(e&&(i&&(e.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),e.setProperties({items:i?t:[],opened:i,loading:r,selectedItem:n,itemIdPath:o,focusedIndex:s,renderer:a,theme:l,itemClassNameGenerator:h}),e.performUpdate&&!e.hasUpdated))try{e.performUpdate()}catch(e){}}_openedOrItemsChanged(e,t,i,r){this._overlayOpened=e&&(r||i||!(!t||!t.length))}_overlayOpenedChanged(e,t){e?(this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-opened",{bubbles:!0,composed:!0})),this._onOpened()):t&&this._dropdownItems&&this._dropdownItems.length&&(this.close(),this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-closed",{bubbles:!0,composed:!0})))}_focusedIndexChanged(e,t){void 0!==t&&this._updateActiveDescendant(e)}_isInputFocused(){return this.inputElement&&da(this.inputElement)}_updateActiveDescendant(e){const t=this._nativeInput;if(!t)return;const i=this._getItemElements().find((t=>t.index===e));i?t.setAttribute("aria-activedescendant",i.id):t.removeAttribute("aria-activedescendant")}_openedChanged(e,t){if(void 0===t)return;e?!this._isInputFocused()&&!ll&&this.inputElement&&this.inputElement.focus():this._onClosed();const i=this._nativeInput;i&&(i.setAttribute("aria-expanded",!!e),e?i.setAttribute("aria-controls",this._scroller.id):i.removeAttribute("aria-controls"))}_onOverlayTouchAction(){this._closeOnBlurIsPrevented=!0,this.inputElement.blur(),this._closeOnBlurIsPrevented=!1}_isClearButton(e){return e.composedPath()[0]===this.clearElement}__onClearButtonMouseDown(e){e.preventDefault(),this.inputElement.focus()}_onClearButtonClick(e){e.preventDefault(),this._onClearAction(),this.opened&&this.requestContentUpdate()}_onToggleButtonClick(e){e.preventDefault(),this.opened?this.close():this.open()}_onHostClick(e){this.autoOpenDisabled||(e.preventDefault(),this.open())}_onClick(e){this._isClearButton(e)?this._onClearButtonClick(e):e.composedPath().includes(this._toggleElement)?this._onToggleButtonClick(e):this._onHostClick(e)}_onKeyDown(e){super._onKeyDown(e),"ArrowDown"===e.key?(this._onArrowDown(),e.preventDefault()):"ArrowUp"===e.key&&(this._onArrowUp(),e.preventDefault())}_getItemLabel(e){let t=e&&this.itemLabelPath?Fh(this.itemLabelPath,e):void 0;return null==t&&(t=e?e.toString():""),t}_getItemValue(e){let t=e&&this.itemValuePath?Fh(this.itemValuePath,e):void 0;return void 0===t&&(t=e?e.toString():""),t}_onArrowDown(){if(this.opened){const e=this._dropdownItems;e&&(this._focusedIndex=Math.min(e.length-1,this._focusedIndex+1),this._prefillFocusedItemLabel())}else this.open()}_onArrowUp(){if(this.opened){if(this._focusedIndex>-1)this._focusedIndex=Math.max(0,this._focusedIndex-1);else{const e=this._dropdownItems;e&&(this._focusedIndex=e.length-1)}this._prefillFocusedItemLabel()}else this.open()}_prefillFocusedItemLabel(){this._focusedIndex>-1&&(this._inputElementValue=this._getItemLabel(this._dropdownItems[this._focusedIndex]),this._markAllSelectionRange())}_setSelectionRange(e,t){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(e,t)}_markAllSelectionRange(){void 0!==this._inputElementValue&&this._setSelectionRange(0,this._inputElementValue.length)}_clearSelectionRange(){if(void 0!==this._inputElementValue){const e=this._inputElementValue?this._inputElementValue.length:0;this._setSelectionRange(e,e)}}_closeOrCommit(){this.opened||this.loading?this.close():this._commitValue()}_onEnter(e){if(!this._hasValidInputValue())return e.preventDefault(),void e.stopPropagation();this.opened&&(e.preventDefault(),e.stopPropagation()),this._closeOrCommit()}_hasValidInputValue(){const e=this._focusedIndex<0&&""!==this._inputElementValue&&this._getItemLabel(this.selectedItem)!==this._inputElementValue;return this.allowCustomValue||!e}_onEscape(e){this.autoOpenDisabled&&(this.opened||this.value!==this._inputElementValue&&this._inputElementValue.length>0)?(e.stopPropagation(),this._focusedIndex=-1,this.cancel()):this.opened?(e.stopPropagation(),this._focusedIndex>-1?(this._focusedIndex=-1,this._revertInputValue()):this.cancel()):this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction())}_toggleElementChanged(e){e&&(e.addEventListener("mousedown",(e=>e.preventDefault())),e.addEventListener("click",(()=>{ll&&!this._isInputFocused()&&document.activeElement.blur()})))}_onClearAction(){this.selectedItem=null,this.allowCustomValue&&(this.value=""),this._detectAndDispatchChange()}_clearFilter(){this.filter=""}cancel(){this._revertInputValueToValue(),this._lastCommittedValue=this.value,this._closeOrCommit()}_onOpened(){this._lastCommittedValue=this.value}_onClosed(){(!this.loading||this.allowCustomValue)&&this._commitValue()}_commitValue(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this.selectedItem!==e&&(this.selectedItem=e),this._inputElementValue=this._getItemLabel(this.selectedItem),this._focusedIndex=-1}else if(""===this._inputElementValue||void 0===this._inputElementValue)this.selectedItem=null,this.allowCustomValue&&(this.value="");else{const e=[this.selectedItem,...this._dropdownItems||[]],t=e[this.__getItemIndexByLabel(e,this._inputElementValue)];if(this.allowCustomValue&&!t){const e=this._inputElementValue;this._lastCustomValue=e;const t=new CustomEvent("custom-value-set",{detail:e,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(t),t.defaultPrevented||(this.value=e)}else this.allowCustomValue||this.opened||!t?this._revertInputValueToValue():this.value=this._getItemValue(t)}this._detectAndDispatchChange(),this._clearSelectionRange(),this._clearFilter()}_onInput(e){const t=this._inputElementValue,i={};this.filter===t?this._filterChanged(this.filter):i.filter=t,!this.opened&&!this._isClearButton(e)&&!this.autoOpenDisabled&&(i.opened=!0),this.setProperties(i)}_onChange(e){e.stopPropagation()}_itemLabelPathChanged(e){"string"!=typeof e&&console.error("You should set itemLabelPath to a valid string")}_filterChanged(e){this._scrollIntoView(0),this._focusedIndex=-1,this.items?this.filteredItems=this._filterItems(this.items,e):this._filteredItemsChanged(this.filteredItems)}_revertInputValue(){""!==this.filter?this._inputElementValue=this.filter:this._revertInputValueToValue(),this._clearSelectionRange()}_revertInputValueToValue(){this._inputElementValue=this.allowCustomValue&&!this.selectedItem?this.value:this._getItemLabel(this.selectedItem)}_selectedItemChanged(e){if(null==e)this.filteredItems&&(this.allowCustomValue||(this.value=""),this._toggleHasValue(this._hasValue),this._inputElementValue=this.value);else{const t=this._getItemValue(e);if(this.value!==t&&(this.value=t,this.value!==t))return;this._toggleHasValue(!0),this._inputElementValue=this._getItemLabel(e)}}_valueChanged(e,t){""===e&&void 0===t||(oc(e)?(this._getItemValue(this.selectedItem)!==e&&this._selectItemForValue(e),!this.selectedItem&&this.allowCustomValue&&(this._inputElementValue=e),this._toggleHasValue(this._hasValue)):this.selectedItem=null,this._clearFilter(),this._lastCommittedValue=void 0)}_detectAndDispatchChange(){document.hasFocus()&&this.validate(),this.value!==this._lastCommittedValue&&(this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this._lastCommittedValue=this.value)}_itemsChanged(e,t){this._ensureItemsOrDataProvider((()=>{this.items=t})),e?this.filteredItems=e.slice(0):t&&(this.filteredItems=null)}_filteredItemsChanged(e){this._setDropdownItems(e)}_filterItems(e,t){return e&&e.filter((e=>(t=t?t.toString().toLowerCase():"",this._getItemLabel(e).toString().toLowerCase().indexOf(t)>-1)))}_selectItemForValue(e){const t=this.__getItemIndexByValue(this.filteredItems,e),i=this.selectedItem;this.selectedItem=t>=0?this.filteredItems[t]:this.dataProvider&&void 0===this.selectedItem?void 0:null,null===this.selectedItem&&null===i&&this._selectedItemChanged(this.selectedItem)}_setDropdownItems(e){const t=this._dropdownItems;this._dropdownItems=e;const i=t?t[this._focusedIndex]:null,r=this.__getItemIndexByValue(e,this.value);null==this.selectedItem&&r>=0&&(this.selectedItem=e[r]);const n=this.__getItemIndexByValue(e,this._getItemValue(i));this._focusedIndex=n>-1?n:this.__getItemIndexByLabel(e,this.filter)}_getItemElements(){return Array.from(this._scroller.querySelectorAll(`${this._tagNamePrefix}-item`))}_scrollIntoView(e){this._scroller&&this._scroller.scrollIntoView(e)}__getItemIndexByValue(e,t){return e&&oc(t)?sc(e,(e=>this._getItemValue(e)===t)):-1}__getItemIndexByLabel(e,t){return e&&t?sc(e,(e=>this._getItemLabel(e).toString().toLowerCase()===t.toString().toLowerCase())):-1}_overlaySelectedItemChanged(e){e.stopPropagation(),!(e.detail.item instanceof Yh)&&this.opened&&(this._focusedIndex=this.filteredItems.indexOf(e.detail.item),this.close())}_setFocused(e){if(super._setFocused(e),!e&&!this.readonly&&!this._closeOnBlurIsPrevented){if(!this.opened&&this.allowCustomValue&&this._inputElementValue===this._lastCustomValue)return void delete this._lastCustomValue;if(aa())return void this._closeOrCommit();this.opened?this._overlayOpened||this.close():this._commitValue()}}_shouldRemoveFocus(e){return!(e.relatedTarget&&e.relatedTarget.localName===`${this._tagNamePrefix}-item`||e.relatedTarget===this._overlayElement&&(e.composedPath()[0].focus(),1))}_onTouchend(e){!this.clearElement||e.composedPath()[0]!==this.clearElement||(e.preventDefault(),this._onClearAction())}}
4460
+ function lc(e){return null!=e}function hc(e,t){return e.findIndex((e=>!(e instanceof Qh)&&t(e)))}const cc=e=>class extends(Ch(Ca(Ma(fa(sa(ba(oa(e)))))))){static get properties(){return{opened:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0,sync:!0,observer:"_openedChanged"},autoOpenDisabled:{type:Boolean,sync:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Object,sync:!0},items:{type:Array,sync:!0,observer:"_itemsChanged"},allowCustomValue:{type:Boolean,value:!1},filteredItems:{type:Array,observer:"_filteredItemsChanged",sync:!0},_lastCommittedValue:String,loading:{type:Boolean,value:!1,reflectToAttribute:!0,sync:!0},_focusedIndex:{type:Number,observer:"_focusedIndexChanged",value:-1,sync:!0},filter:{type:String,value:"",notify:!0,sync:!0},selectedItem:{type:Object,notify:!0,sync:!0},itemClassNameGenerator:{type:Object},itemLabelPath:{type:String,value:"label",observer:"_itemLabelPathChanged",sync:!0},itemValuePath:{type:String,value:"value",sync:!0},itemIdPath:{type:String,sync:!0},_toggleElement:{type:Object,observer:"_toggleElementChanged"},_dropdownItems:{type:Array,sync:!0},_closeOnBlurIsPrevented:Boolean,_scroller:{type:Object,sync:!0},_overlayOpened:{type:Boolean,sync:!0,observer:"_overlayOpenedChanged"},__keepOverlayOpened:{type:Boolean,sync:!0}}}static get observers(){return["_selectedItemChanged(selectedItem, itemValuePath, itemLabelPath)","_openedOrItemsChanged(opened, _dropdownItems, loading, __keepOverlayOpened)","_updateScroller(_scroller, _dropdownItems, opened, loading, selectedItem, itemIdPath, _focusedIndex, renderer, _theme, itemClassNameGenerator)"]}constructor(){super(),this._boundOverlaySelectedItemChanged=this._overlaySelectedItemChanged.bind(this),this._boundOnClearButtonMouseDown=this.__onClearButtonMouseDown.bind(this),this._boundOnClick=this._onClick.bind(this),this._boundOnOverlayTouchAction=this._onOverlayTouchAction.bind(this),this._boundOnTouchend=this._onTouchend.bind(this)}get _tagNamePrefix(){return"vaadin-combo-box"}get _nativeInput(){return this.inputElement}_inputElementChanged(e){super._inputElementChanged(e);const t=this._nativeInput;t&&(t.autocomplete="off",t.autocapitalize="off",t.setAttribute("role","combobox"),t.setAttribute("aria-autocomplete","list"),t.setAttribute("aria-expanded",!!this.opened),t.setAttribute("spellcheck","false"),t.setAttribute("autocorrect","off"),this._revertInputValueToValue(),this.clearElement&&this.clearElement.addEventListener("mousedown",this._boundOnClearButtonMouseDown))}ready(){super.ready(),this._initOverlay(),this._initScroller(),this._lastCommittedValue=this.value,this.addEventListener("click",this._boundOnClick),this.addEventListener("touchend",this._boundOnTouchend);const e=()=>{requestAnimationFrame((()=>{this._overlayElement.bringToFront()}))};this.addEventListener("mousedown",e),this.addEventListener("touchstart",e),function(e){window.Vaadin&&window.Vaadin.templateRendererCallback?window.Vaadin.templateRendererCallback(e):e.querySelector("template")&&console.warn(`WARNING: <template> inside <${e.localName}> is no longer supported. Import @vaadin/polymer-legacy-adapter/template-renderer.js to enable compatibility.`)}(this),this.addController(new Dh(this))}disconnectedCallback(){super.disconnectedCallback(),this.close()}requestContentUpdate(){this._scroller&&(this._scroller.requestContentUpdate(),this._getItemElements().forEach((e=>{e.requestContentUpdate()})))}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.opened=!1}_propertiesChanged(e,t,i){super._propertiesChanged(e,t,i),void 0!==t.filter&&this._filterChanged(t.filter)}updated(e){super.updated(e),e.has("filter")&&this._filterChanged(this.filter)}_initOverlay(){const e=this.$.overlay;e._comboBox=this,e.addEventListener("touchend",this._boundOnOverlayTouchAction),e.addEventListener("touchmove",this._boundOnOverlayTouchAction),e.addEventListener("mousedown",(e=>e.preventDefault())),e.addEventListener("opened-changed",(e=>{this._overlayOpened=e.detail.value})),this._overlayElement=e}_initScroller(e){const t=document.createElement(`${this._tagNamePrefix}-scroller`);t.owner=e||this,t.getItemLabel=this._getItemLabel.bind(this),t.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged);const i=this._overlayElement;i.renderer=e=>{e.innerHTML||e.appendChild(t)},i.requestContentUpdate(),this._scroller=t}_updateScroller(e,t,i,r,n,o,s,a,l,h){if(e&&(i&&(e.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),e.setProperties({items:i?t:[],opened:i,loading:r,selectedItem:n,itemIdPath:o,focusedIndex:s,renderer:a,theme:l,itemClassNameGenerator:h}),e.performUpdate&&!e.hasUpdated))try{e.performUpdate()}catch(e){}}_openedOrItemsChanged(e,t,i,r){this._overlayOpened=e&&(r||i||!(!t||!t.length))}_overlayOpenedChanged(e,t){e?(this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-opened",{bubbles:!0,composed:!0})),this._onOpened()):t&&this._dropdownItems&&this._dropdownItems.length&&(this.close(),this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-closed",{bubbles:!0,composed:!0})))}_focusedIndexChanged(e,t){void 0!==t&&this._updateActiveDescendant(e)}_isInputFocused(){return this.inputElement&&pa(this.inputElement)}_updateActiveDescendant(e){const t=this._nativeInput;if(!t)return;const i=this._getItemElements().find((t=>t.index===e));i?t.setAttribute("aria-activedescendant",i.id):t.removeAttribute("aria-activedescendant")}_openedChanged(e,t){if(void 0===t)return;e?!this._isInputFocused()&&!dl&&this.inputElement&&this.inputElement.focus():this._onClosed();const i=this._nativeInput;i&&(i.setAttribute("aria-expanded",!!e),e?i.setAttribute("aria-controls",this._scroller.id):i.removeAttribute("aria-controls"))}_onOverlayTouchAction(){this._closeOnBlurIsPrevented=!0,this.inputElement.blur(),this._closeOnBlurIsPrevented=!1}_isClearButton(e){return e.composedPath()[0]===this.clearElement}__onClearButtonMouseDown(e){e.preventDefault(),this.inputElement.focus()}_onClearButtonClick(e){e.preventDefault(),this._onClearAction(),this.opened&&this.requestContentUpdate()}_onToggleButtonClick(e){e.preventDefault(),this.opened?this.close():this.open()}_onHostClick(e){this.autoOpenDisabled||(e.preventDefault(),this.open())}_onClick(e){this._isClearButton(e)?this._onClearButtonClick(e):e.composedPath().includes(this._toggleElement)?this._onToggleButtonClick(e):this._onHostClick(e)}_onKeyDown(e){super._onKeyDown(e),"ArrowDown"===e.key?(this._onArrowDown(),e.preventDefault()):"ArrowUp"===e.key&&(this._onArrowUp(),e.preventDefault())}_getItemLabel(e){let t=e&&this.itemLabelPath?Vh(this.itemLabelPath,e):void 0;return null==t&&(t=e?e.toString():""),t}_getItemValue(e){let t=e&&this.itemValuePath?Vh(this.itemValuePath,e):void 0;return void 0===t&&(t=e?e.toString():""),t}_onArrowDown(){if(this.opened){const e=this._dropdownItems;e&&(this._focusedIndex=Math.min(e.length-1,this._focusedIndex+1),this._prefillFocusedItemLabel())}else this.open()}_onArrowUp(){if(this.opened){if(this._focusedIndex>-1)this._focusedIndex=Math.max(0,this._focusedIndex-1);else{const e=this._dropdownItems;e&&(this._focusedIndex=e.length-1)}this._prefillFocusedItemLabel()}else this.open()}_prefillFocusedItemLabel(){this._focusedIndex>-1&&(this._inputElementValue=this._getItemLabel(this._dropdownItems[this._focusedIndex]),this._markAllSelectionRange())}_setSelectionRange(e,t){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(e,t)}_markAllSelectionRange(){void 0!==this._inputElementValue&&this._setSelectionRange(0,this._inputElementValue.length)}_clearSelectionRange(){if(void 0!==this._inputElementValue){const e=this._inputElementValue?this._inputElementValue.length:0;this._setSelectionRange(e,e)}}_closeOrCommit(){this.opened||this.loading?this.close():this._commitValue()}_onEnter(e){if(!this._hasValidInputValue())return e.preventDefault(),void e.stopPropagation();this.opened&&(e.preventDefault(),e.stopPropagation()),this._closeOrCommit()}_hasValidInputValue(){const e=this._focusedIndex<0&&""!==this._inputElementValue&&this._getItemLabel(this.selectedItem)!==this._inputElementValue;return this.allowCustomValue||!e}_onEscape(e){this.autoOpenDisabled&&(this.opened||this.value!==this._inputElementValue&&this._inputElementValue.length>0)?(e.stopPropagation(),this._focusedIndex=-1,this.cancel()):this.opened?(e.stopPropagation(),this._focusedIndex>-1?(this._focusedIndex=-1,this._revertInputValue()):this.cancel()):this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction())}_toggleElementChanged(e){e&&(e.addEventListener("mousedown",(e=>e.preventDefault())),e.addEventListener("click",(()=>{dl&&!this._isInputFocused()&&document.activeElement.blur()})))}_onClearAction(){this.selectedItem=null,this.allowCustomValue&&(this.value=""),this._detectAndDispatchChange()}_clearFilter(){this.filter=""}cancel(){this._revertInputValueToValue(),this._lastCommittedValue=this.value,this._closeOrCommit()}_onOpened(){this._lastCommittedValue=this.value}_onClosed(){(!this.loading||this.allowCustomValue)&&this._commitValue()}_commitValue(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this.selectedItem!==e&&(this.selectedItem=e),this._inputElementValue=this._getItemLabel(this.selectedItem),this._focusedIndex=-1}else if(""===this._inputElementValue||void 0===this._inputElementValue)this.selectedItem=null,this.allowCustomValue&&(this.value="");else{const e=[this.selectedItem,...this._dropdownItems||[]],t=e[this.__getItemIndexByLabel(e,this._inputElementValue)];if(this.allowCustomValue&&!t){const e=this._inputElementValue;this._lastCustomValue=e;const t=new CustomEvent("custom-value-set",{detail:e,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(t),t.defaultPrevented||(this.value=e)}else this.allowCustomValue||this.opened||!t?this._revertInputValueToValue():this.value=this._getItemValue(t)}this._detectAndDispatchChange(),this._clearSelectionRange(),this._clearFilter()}_onInput(e){const t=this._inputElementValue,i={};this.filter===t?this._filterChanged(this.filter):i.filter=t,!this.opened&&!this._isClearButton(e)&&!this.autoOpenDisabled&&(i.opened=!0),this.setProperties(i)}_onChange(e){e.stopPropagation()}_itemLabelPathChanged(e){"string"!=typeof e&&console.error("You should set itemLabelPath to a valid string")}_filterChanged(e){this._scrollIntoView(0),this._focusedIndex=-1,this.items?this.filteredItems=this._filterItems(this.items,e):this._filteredItemsChanged(this.filteredItems)}_revertInputValue(){""!==this.filter?this._inputElementValue=this.filter:this._revertInputValueToValue(),this._clearSelectionRange()}_revertInputValueToValue(){this._inputElementValue=this.allowCustomValue&&!this.selectedItem?this.value:this._getItemLabel(this.selectedItem)}_selectedItemChanged(e){if(null==e)this.filteredItems&&(this.allowCustomValue||(this.value=""),this._toggleHasValue(this._hasValue),this._inputElementValue=this.value);else{const t=this._getItemValue(e);if(this.value!==t&&(this.value=t,this.value!==t))return;this._toggleHasValue(!0),this._inputElementValue=this._getItemLabel(e)}}_valueChanged(e,t){""===e&&void 0===t||(lc(e)?(this._getItemValue(this.selectedItem)!==e&&this._selectItemForValue(e),!this.selectedItem&&this.allowCustomValue&&(this._inputElementValue=e),this._toggleHasValue(this._hasValue)):this.selectedItem=null,this._clearFilter(),this._lastCommittedValue=void 0)}_detectAndDispatchChange(){document.hasFocus()&&this.validate(),this.value!==this._lastCommittedValue&&(this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this._lastCommittedValue=this.value)}_itemsChanged(e,t){this._ensureItemsOrDataProvider((()=>{this.items=t})),e?this.filteredItems=e.slice(0):t&&(this.filteredItems=null)}_filteredItemsChanged(e){this._setDropdownItems(e)}_filterItems(e,t){return e&&e.filter((e=>(t=t?t.toString().toLowerCase():"",this._getItemLabel(e).toString().toLowerCase().indexOf(t)>-1)))}_selectItemForValue(e){const t=this.__getItemIndexByValue(this.filteredItems,e),i=this.selectedItem;this.selectedItem=t>=0?this.filteredItems[t]:this.dataProvider&&void 0===this.selectedItem?void 0:null,null===this.selectedItem&&null===i&&this._selectedItemChanged(this.selectedItem)}_setDropdownItems(e){const t=this._dropdownItems;this._dropdownItems=e;const i=t?t[this._focusedIndex]:null,r=this.__getItemIndexByValue(e,this.value);null==this.selectedItem&&r>=0&&(this.selectedItem=e[r]);const n=this.__getItemIndexByValue(e,this._getItemValue(i));this._focusedIndex=n>-1?n:this.__getItemIndexByLabel(e,this.filter)}_getItemElements(){return Array.from(this._scroller.querySelectorAll(`${this._tagNamePrefix}-item`))}_scrollIntoView(e){this._scroller&&this._scroller.scrollIntoView(e)}__getItemIndexByValue(e,t){return e&&lc(t)?hc(e,(e=>this._getItemValue(e)===t)):-1}__getItemIndexByLabel(e,t){return e&&t?hc(e,(e=>this._getItemLabel(e).toString().toLowerCase()===t.toString().toLowerCase())):-1}_overlaySelectedItemChanged(e){e.stopPropagation(),!(e.detail.item instanceof Qh)&&this.opened&&(this._focusedIndex=this.filteredItems.indexOf(e.detail.item),this.close())}_setFocused(e){if(super._setFocused(e),!e&&!this.readonly&&!this._closeOnBlurIsPrevented){if(!this.opened&&this.allowCustomValue&&this._inputElementValue===this._lastCustomValue)return void delete this._lastCustomValue;if(ca())return void this._closeOrCommit();this.opened?this._overlayOpened||this.close():this._commitValue()}}_shouldRemoveFocus(e){return!(e.relatedTarget&&e.relatedTarget.localName===`${this._tagNamePrefix}-item`||e.relatedTarget===this._overlayElement&&(e.composedPath()[0].focus(),1))}_onTouchend(e){!this.clearElement||e.composedPath()[0]!==this.clearElement||(e.preventDefault(),this._onClearAction())}}
4461
4461
  /**
4462
4462
  * @license
4463
4463
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4464
4464
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4465
- */;Sr("vaadin-combo-box",xh,{moduleId:"vaadin-combo-box-styles"});class lc extends(nc(ac(Qh(kh(Tr(gs(Ko))))))){static get is(){return"vaadin-combo-box"}static get template(){return $o`
4465
+ */;Sr("vaadin-combo-box",Ih,{moduleId:"vaadin-combo-box-styles"});class dc extends(ac(cc(tc(Ah(Tr(gs(Ko))))))){static get is(){return"vaadin-combo-box"}static get template(){return $o`
4466
4466
  <style>
4467
4467
  :host([opened]) {
4468
4468
  pointer-events: auto;
@@ -4507,7 +4507,7 @@ function oc(e){return null!=e}function sc(e,t){return e.findIndex((e=>!(e instan
4507
4507
  ></vaadin-combo-box-overlay>
4508
4508
 
4509
4509
  <slot name="tooltip"></slot>
4510
- `}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Ga(this,(e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e}))),this.addController(new Ma(this.inputElement,this._labelController)),this._tooltipController=new As(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow((e=>!e.opened)),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton}_onClearButtonClick(e){e.stopPropagation(),super._onClearButtonClick(e)}_onHostClick(e){const t=e.composedPath();(t.includes(this._labelNode)||t.includes(this._positionTarget))&&super._onHostClick(e)}}si(lc);const hc=class{constructor(t){e(this,t),this.handleClick=e=>{this.emitOnClick&&(e.stopPropagation(),window.postMessage({type:`registration${this.name}Clicked`},window.location.href))},this.type="text",this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.action=void 0,this.validation=void 0,this.options=void 0,this.language=void 0,this.autofilled=void 0,this.tooltip=void 0,this.defaultValue=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.clientStyling="",this.dateFormat=void 0,this.translationUrl="",this.emitOnClick=!1}connectedCallback(){var e;this.translationUrl&&(e=this.translationUrl,new Promise((t=>{fetch(e).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{for(let i in e[t])o[t][i]=e[t][i]})),t(!0)}))})))}renderInput(){var e;switch(null===(e=this.type)||void 0===e?void 0:e.toLowerCase()){case"text":return i("text-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"email":return i("email-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"number":return i("number-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"checkbox":return i("checkbox-input",{name:this.name,displayName:this.displayName,validation:this.validation,emitValue:this.emitValue,defaultValue:this.defaultValue,autofilled:this.autofilled,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip});case"checkboxgroup":return i("checkbox-group-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,options:this.options});case"togglecheckbox":return i("toggle-checkbox-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,options:this.options,"emit-on-click":this.emitOnClick});case"datetime":return i("date-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,dateFormat:this.dateFormat,"emit-on-click":this.emitOnClick});case"password":return i("password-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"radio":return i("radio-input",{name:this.name,displayName:this.displayName,optionsGroup:this.options,validation:this.validation,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling});case"tel":return i("tel-input",{name:this.name,action:this.action,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,emitValue:this.emitValue,language:this.language,autofilled:this.autofilled,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"dropdown":return i("select-input",{name:this.name,action:this.action,defaultValue:this.defaultValue,displayName:this.displayName,options:this.options,validation:this.validation,emitValue:this.emitValue,autofilled:this.autofilled,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});default:return i("p",null,"The ",this.type," input type is not valid")}}render(){return i(n,{key:"e89747da2e458906e8f634c285044e95d5e92f73",class:`general-input--${this.name}`,onClick:this.handleClick},this.renderInput())}};hc.style=":host{display:block;height:100%}";const cc={en:{GmErr_AMOUNT_INVALID:"The specified amount is invalid.",GmErr_REGISTER_OVERAGE:"The registration has exceeded the allowable limit.",GmErr_REGISTER_UNDERAGE:"The registration is under the allowable limit.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"User authentication failed due to too many unsuccessful attempts.",GmErr_USER_ACCOUNT_BLOCKED:"The user account is blocked.",GmErr_USER_NOT_VERIFIED:"The user has not been verified.",GmErr_USER_NOT_FOUND:"No user found with the provided information.",GmErr_USER_ID_INVALID:"The user ID provided is invalid.",GmErr_USER_AUTH_FAILED:"User authentication failed.",GmErr_USER_DUPLICATED:"The user already exists in the system.",GmErr_USER_NOT_ACTIVATED:"The user account has not been activated.",GmErr_PASSWORD_CONTAINS_EMAIL:"The password cannot contain the email address.",GmErr_PASSWORD_CONTAINS_USERNAME:"The password cannot contain the username.",GmErr_PASSWORD_CONTAINS_SPACES:"The password cannot contain spaces.",GmErr_USER_4TS_CHECK_EXISTS:"The user 4TS check already exists.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"The user is excluded from registration.",GmErr_USER_NAV_EXCLUDED_LOGIN:"The user is excluded from login.",GmErr_USERNAME_REQUIRED:"A username is required.",GmErr_USER_EMAIL_NOT_VERIFIED:"The user's email address has not been verified.",GmErr_EMAIL_ALREADY_EXISTS:"User with same email already exists",GmErr_EMAIL_REQUIRED:"An email address is required.",GmErr_USERNAME_ALREADY_EXISTS:"The username is already taken.",GmErr_DUPLICATE_PERSONAL_ID:"Duplicate personal ID found.",GmErr_INVALID_USER_DOCUMENT:"The user document is invalid.",GmErr_INVALID_CODE:"The code provided is invalid.",GmErr_EXPIRED_TOKEN:"The token has expired.",GmErr_ATTEMPTS_EXCEEDED:"The maximum number of attempts has been exceeded.",GmErr_BLOCK_USER_INCORRECT_CODE:"The user has been blocked due to an incorrect code.",GmErr_TOKEN_NOT_FOUND:"The token was not found.",GmErr_INVALID_PHONE_NUMBER:"The phone number provided is invalid.",GmErr_CODE_MISSING:"The code is missing.",GmErr_UNREGISTERED_USER:"The user is not registered.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Maximum attempts to generate a code have been exceeded.",GmErr_UNEXPECTED_EXCEPTION:"An unexpected exception occurred.",GmErr_INVALID_USER_ID:"The user ID provided is invalid.",GmErr_NOT_ALLOWED_EXCEPTION:"This action is not allowed.",GmErr_CAN_NOT_FIND_ROLE:"Unable to find the specified role.",GmErr_NO_SESSION_PROVIDED:"No session was provided.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"No active session found for this user.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"The user has already been anonymized.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"No role has been set up to be assigned.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"The provided session does not belong to the user.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"The provided session does not exist.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"The role has already been assigned to the user.",GmErr_ASSIGN_USER_ROLE_FAILED:"Failed to assign a role to the user.",GmErr_BadRequest_1000:"There was a problem with the personal identification number",CountryRestricted:"Unfortunately, you are attempting to register from a country where we cannot accept gameplay. We are unable to process your registration for this reason.",nextButton:"Next",backButton:"Back",doneButton:"Done",generalError:"Something went wrong... Please try again.",successMessage:"Register successful",GmErr_BadRequest_Duplicate_User:"A user with this information already exists.",GmErr_BadRequest_PasswordContainsUsername:"The password cannot be the same as the username.",GmErr_BadRequest_PasswordContainsEmail:"The password cannot be the same as the email.",GmErr_BadRequest_Duplicate_PersonalId:"There is already a registration with the data you entered or you entered your data in an incorrect format.",GmErr_Forbidden_UserAccount_NavExcluded:"User is NAV Excluded. Registration was denied.",GmErr_BadRequest_ModelValidationFailed:"Something went wrong... Please try again.",GmErr_BadInternalConfigs:"Something went wrong... Please try again.",GmErr_Unauthorized:"Something went wrong... Please try again.",GmErr_NotFound:"Something went wrong... Please try again.",BadRequest_Duplicate_User:"User with same username already exists.",BadRequest:"The request is invalid, please check the API.",Unauthorized:"The player account number, e-mail address or password is incorrect",Forbidden_TooManyAttempts:"You have made too many invalid login attempts, your account has been blocked, please try again later.",Forbidden_UserAccount_NotActive:"It appears that you have not yet confirmed your email address. To complete your registration and access your account, please check your email inbox for a confirmation message. If you haven't received the email, please also check your spam folder. If you need assistance, you can request help via the customer service.",GmErr_BadRequest_ExpiredToken:"The token you are using is expired.",GmErr_BadRequest_INVALID_CODE:"The code you are using is invalid.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"You have made too many attempts to validate your code.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"You have made too many attempts to generate your code.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"You have been blocked due to an invalid code.",GmErr_BadRequest_CODE_MISSING:"The token is missing for your reqest.",GmErr_BadRequest_TOKEN_NOT_FOUND:"The token is not found for your request.",GmErr_BadRequest_USER_NOT_REGISTERED:"The user is not register. Please register first.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"The phone number you are using is invalid.",GmErr_BadRequest_INVALID_USER_ID:"The user ID is invalid.",GmErr_UnexpectedException:"Something went wrong... Please try again.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"The user document is invalid.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"Registration was blocked due to the Croatian Ministry of Finance PersonaID verification failure with reason: MoF response confirms player IS underaged or IS NOT a Croatian resident.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"Registration was blocked due to the Croatian Ministry of Finance PersonaID verification failure with reason: MoF fails to return a response.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"Registration was blocked due to the Croatian Ministry of Finance PersonaID verification failure with reason: Internal error."},hu:{GmErr_AMOUNT_INVALID:"A megadott összeg érvénytelen.",GmErr_REGISTER_OVERAGE:"A regisztráció túllépte a megengedett határt.",GmErr_REGISTER_UNDERAGE:"A regisztráció a megengedett határ alatt van.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"A felhasználó hitelesítése túl sok sikertelen próbálkozás miatt meghiúsult.",GmErr_USER_ACCOUNT_BLOCKED:"A felhasználói fiók le van tiltva.",GmErr_USER_NOT_VERIFIED:"A felhasználó nincs ellenőrizve.",GmErr_USER_NOT_FOUND:"A megadott adatokkal nem található felhasználó.",GmErr_USER_ID_INVALID:"A megadott felhasználói azonosító érvénytelen.",GmErr_USER_AUTH_FAILED:"A felhasználó hitelesítése meghiúsult.",GmErr_USER_DUPLICATED:"A felhasználó már létezik a rendszerben.",GmErr_USER_NOT_ACTIVATED:"A felhasználó fiókja nincs aktiválva.",GmErr_PASSWORD_CONTAINS_EMAIL:"A jelszó nem tartalmazhat e-mail címet.",GmErr_PASSWORD_CONTAINS_USERNAME:"A jelszó nem tartalmazhat felhasználónevet.",GmErr_PASSWORD_CONTAINS_SPACES:"A jelszó nem tartalmazhat szóközöket.",GmErr_USER_4TS_CHECK_EXISTS:"A felhasználó 4TS ellenőrzése már létezik.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"A felhasználó kizárva a regisztrációból.",GmErr_USER_NAV_EXCLUDED_LOGIN:"A felhasználó kizárva a bejelentkezésből.",GmErr_USERNAME_REQUIRED:"Felhasználónév megadása szükséges.",GmErr_USER_EMAIL_NOT_VERIFIED:"A felhasználó e-mail címe nincs megerősítve.",GmErr_EMAIL_ALREADY_EXISTS:"A megadott e-mail címmel már létezik felhasználó",GmErr_EMAIL_REQUIRED:"E-mail cím megadása szükséges.",GmErr_USERNAME_ALREADY_EXISTS:"A felhasználónév már foglalt.",GmErr_DUPLICATE_PERSONAL_ID:"Már létező személyes azonosító.",GmErr_INVALID_USER_DOCUMENT:"A felhasználói dokumentum érvénytelen.",GmErr_INVALID_CODE:"A megadott kód érvénytelen.",GmErr_EXPIRED_TOKEN:"A token lejárt.",GmErr_ATTEMPTS_EXCEEDED:"A megengedett próbálkozások száma túllépve.",GmErr_BLOCK_USER_INCORRECT_CODE:"A felhasználó blokkolva lett a hibás kód miatt.",GmErr_TOKEN_NOT_FOUND:"A token nem található.",GmErr_INVALID_PHONE_NUMBER:"A megadott telefonszám érvénytelen.",GmErr_CODE_MISSING:"A szükséges kód hiányzik.",GmErr_UNREGISTERED_USER:"A felhasználó nincs regisztrálva.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Túllépték a kódgenerálási próbálkozások számát.",GmErr_UNEXPECTED_EXCEPTION:"Váratlan kivétel történt.",GmErr_INVALID_USER_ID:"A felhasználói azonosító érvénytelen.",GmErr_NOT_ALLOWED_EXCEPTION:"Ez a művelet nem engedélyezett.",GmErr_CAN_NOT_FIND_ROLE:"A megadott szerepkör nem található.",GmErr_NO_SESSION_PROVIDED:"Nem került megadásra munkamenet.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"Nincs aktív munkamenet ehhez a felhasználóhoz.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"A felhasználó már anonimizálva lett.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"Nincs beállítva hozzárendelhető szerepkör.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"A megadott munkamenet nem tartozik a felhasználóhoz.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"A megadott munkamenet nem létezik.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"A szerepkör már hozzá lett rendelve a felhasználóhoz.",GmErr_ASSIGN_USER_ROLE_FAILED:"Nem sikerült a felhasználói szerepkört hozzárendelni.",GmErr_BadRequest_1000:"Probléma volt a személyi azonosító számmal",CountryRestricted:"Sajnálatos módon olyan országból próbál regisztrálni, ahonnan nem fogadhatunk játékot. Emiatt nem tudjuk feldolgozni a regisztrációját.",nextButton:"Következő",backButton:"Vissza",doneButton:"Kész",generalError:"Valami hiba történt... Próbáld újra.",successMessage:"Sikeres regisztráció",GmErr_BadRequest_Duplicate_User:"Egy ilyen információval rendelkező felhasználó már létezik.",GmErr_BadRequest_PasswordContainsUsername:"A jelszó nem lehet azonos a felhasználónévvel.",GmErr_BadRequest_PasswordContainsEmail:"A jelszó nem lehet azonos az e-mail címmel.",GmErr_BadRequest_Duplicate_PersonalId:"Már létezik egy regisztráció az Ön által megadott adatokkal, vagy helytelen formátumban adta meg az adatokat.",GmErr_Forbidden_UserAccount_NavExcluded:"A felhasználó NAV kizárt. A regisztrációt elutasították.",GmErr_BadRequest_ModelValidationFailed:"Valami hiba történt... Kérjük, próbálja újra.",GmErr_BadInternalConfigs:"Valami hiba történt... Kérjük, próbálja újra.",GmErr_Unauthorized:"Valami hiba történt... Kérjük, próbálja újra.",GmErr_NotFound:"Valami hiba történt... Kérjük, próbálja újra.",BadRequest_Duplicate_User:"Már létezik egy felhasználó ugyanazzal a felhasználónévvel.",BadRequest:"A kérés érvénytelen, kérjük, ellenőrizze az API-t.",Unauthorized:"A játékos számlaszáma, e-mail címe vagy jelszava helytelen",Forbidden_TooManyAttempts:"Túl sok érvénytelen bejelentkezési kísérletet tett, fiókját zárolták, kérjük, próbálja újra később.",Forbidden_UserAccount_NotActive:"Úgy tűnik, még nem erősítette meg e-mail címét. A regisztráció befejezéséhez és fiókjához való hozzáféréshez kérjük, ellenőrizze e-mail fiókját egy megerősítő üzenetért. Ha nem kapta meg az e-mailt, kérjük, ellenőrizze a spam mappát is. Ha segítségre van szüksége, kérhet segítséget az ügyfélszolgálaton keresztül.",GmErr_BadRequest_ExpiredToken:"A használt token lejárt.",GmErr_BadRequest_INVALID_CODE:"A használt kód érvénytelen.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"Túl sok kísérletet tett a kód érvényesítésére.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Túl sok kísérletet tett a kód generálására.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"Érvénytelen kód miatt zárolták.",GmErr_BadRequest_CODE_MISSING:"A kéréshez hiányzik a token.",GmErr_BadRequest_TOKEN_NOT_FOUND:"A kéréshez nem található token.",GmErr_BadRequest_USER_NOT_REGISTERED:"A felhasználó nincs regisztrálva. Kérjük, regisztráljon először.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"A használt telefonszám érvénytelen.",GmErr_BadRequest_INVALID_USER_ID:"A felhasználói azonosító érvénytelen.",GmErr_UnexpectedException:"Valami hiba történt... Kérjük, próbálja újra.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"A felhasználói dokumentum érvénytelen.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"A regisztrációt blokkolták a horvát Pénzügyminisztérium PersonaID ellenőrzési hibája miatt az alábbi okkal: A MoF válasza megerősíti, hogy a játékos kiskorú vagy nem horvát lakos.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"A regisztrációt blokkolták a horvát Pénzügyminisztérium PersonaID ellenőrzési hibája miatt az alábbi okkal: A MoF nem ad választ.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"A regisztrációt blokkolták a horvát Pénzügyminisztérium PersonaID ellenőrzési hibája miatt az alábbi okkal: Belső hiba."},hr:{GmErr_AMOUNT_INVALID:"Navedeni iznos je nevažeći.",GmErr_REGISTER_OVERAGE:"Registracija je premašila dopušteni limit.",GmErr_REGISTER_UNDERAGE:"Registracija je ispod dopuštenog limita.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"Neuspješno autentificiranje korisnika zbog previše pokušaja.",GmErr_USER_ACCOUNT_BLOCKED:"Korisnički račun je blokiran.",GmErr_USER_NOT_VERIFIED:"Korisnik nije verificiran.",GmErr_USER_NOT_FOUND:"Korisnik s navedenim podacima nije pronađen.",GmErr_USER_ID_INVALID:"Navedeni ID korisnika je nevažeći.",GmErr_USER_AUTH_FAILED:"Neuspješno autentificiranje korisnika.",GmErr_USER_DUPLICATED:"Korisnik već postoji u sustavu.",GmErr_USER_NOT_ACTIVATED:"Korisnički račun nije aktiviran.",GmErr_PASSWORD_CONTAINS_EMAIL:"Lozinka ne smije sadržavati e-mail adresu.",GmErr_PASSWORD_CONTAINS_USERNAME:"Lozinka ne smije sadržavati korisničko ime.",GmErr_PASSWORD_CONTAINS_SPACES:"Lozinka ne smije sadržavati razmake.",GmErr_USER_4TS_CHECK_EXISTS:"4TS provjera korisnika već postoji.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"Korisnik je isključen iz registracije.",GmErr_USER_NAV_EXCLUDED_LOGIN:"Korisnik je isključen iz prijave.",GmErr_USERNAME_REQUIRED:"Korisničko ime je obavezno.",GmErr_USER_EMAIL_NOT_VERIFIED:"E-mail adresa korisnika nije verificirana.",GmErr_EMAIL_ALREADY_EXISTS:"Korisnik s istom e-mail adresom već postoji",GmErr_EMAIL_REQUIRED:"E-mail adresa je obavezna.",GmErr_USERNAME_ALREADY_EXISTS:"Korisničko ime je već zauzeto.",GmErr_DUPLICATE_PERSONAL_ID:"Pronađen je duplicirani osobni ID.",GmErr_INVALID_USER_DOCUMENT:"Dokument korisnika je nevažeći.",GmErr_INVALID_CODE:"Navedeni kod je nevažeći.",GmErr_EXPIRED_TOKEN:"Token je istekao.",GmErr_ATTEMPTS_EXCEEDED:"Prekoračen je maksimalni broj pokušaja.",GmErr_BLOCK_USER_INCORRECT_CODE:"Korisnik je blokiran zbog pogrešnog koda.",GmErr_TOKEN_NOT_FOUND:"Token nije pronađen.",GmErr_INVALID_PHONE_NUMBER:"Navedeni broj telefona je nevažeći.",GmErr_CODE_MISSING:"Nedostaje potrebni kod.",GmErr_UNREGISTERED_USER:"Korisnik nije registriran.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Prekoračen je broj pokušaja generiranja koda.",GmErr_UNEXPECTED_EXCEPTION:"Došlo je do neočekivane iznimke.",GmErr_INVALID_USER_ID:"Navedeni ID korisnika je nevažeći.",GmErr_NOT_ALLOWED_EXCEPTION:"Ova radnja nije dopuštena.",GmErr_CAN_NOT_FIND_ROLE:"Navedena uloga nije pronađena.",GmErr_NO_SESSION_PROVIDED:"Nema pružene sesije.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"Nema aktivne sesije za ovog korisnika.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"Korisnik je već anonimiziran.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"Nema postavljene uloge za dodjeljivanje.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"Pružena sesija ne pripada korisniku.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"Pružena sesija ne postoji.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"Uloga je već dodijeljena korisniku.",GmErr_ASSIGN_USER_ROLE_FAILED:"Neuspješno dodjeljivanje uloge korisniku.",GmErr_BadRequest_1000:"Došlo je do problema s OIB-om",CountryRestricted:"Nažalost, prijavljujete se iz zemlje iz koje ne možemo prihvatiti igru. Nismo u mogućnosti obraditi registraciju iz navedenog razloga.",nextButton:"Sljedeće",backButton:"Nazad",doneButton:"Gotovo",generalError:"Korisnik s ovim podacima već postoji.",successMessage:"Register successful",GmErr_BadRequest_Duplicate_User:"Korisnik s ovim informacijama već postoji.",GmErr_BadRequest_PasswordContainsUsername:"Lozinka ne može biti ista kao korisničko ime.",GmErr_BadRequest_PasswordContainsEmail:"Lozinka ne može biti ista kao e-mail.",GmErr_BadRequest_Duplicate_PersonalId:"Već postoji registracija s podacima koje ste unijeli ili ste unijeli podatke u pogrešnom formatu.",GmErr_Forbidden_UserAccount_NavExcluded:"Korisnik je NAV isključen. Registracija je odbijena.",GmErr_BadRequest_ModelValidationFailed:"Nešto je pošlo po zlu... Molimo pokušajte ponovno.",GmErr_BadInternalConfigs:"Nešto je pošlo po zlu... Molimo pokušajte ponovno.",GmErr_Unauthorized:"Nešto je pošlo po zlu... Molimo pokušajte ponovno.",GmErr_NotFound:"Nešto je pošlo po zlu... Molimo pokušajte ponovno.",BadRequest_Duplicate_User:"Korisnik s istim korisničkim imenom već postoji.",BadRequest:"Zahtjev je nevažeći, molimo provjerite API.",Unauthorized:"Broj računa igrača, e-mail adresa ili lozinka su netočni",Forbidden_TooManyAttempts:"Napravili ste previše nevažećih pokušaja prijave, vaš račun je blokiran, molimo pokušajte ponovno kasnije.",Forbidden_UserAccount_NotActive:"Čini se da još niste potvrdili svoju e-mail adresu. Da biste dovršili registraciju i pristupili svom računu, provjerite svoju e-mail poštu za poruku s potvrdom. Ako niste primili e-mail, provjerite i mapu neželjene pošte. Ako trebate pomoć, možete zatražiti pomoć putem korisničke službe.",GmErr_BadRequest_ExpiredToken:"Token koji koristite je istekao.",GmErr_BadRequest_INVALID_CODE:"Kod koji koristite je nevažeći.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"Napravili ste previše pokušaja za validaciju koda.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Napravili ste previše pokušaja za generiranje koda.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"Blokirani ste zbog nevažećeg koda.",GmErr_BadRequest_CODE_MISSING:"Token nedostaje za vaš zahtjev.",GmErr_BadRequest_TOKEN_NOT_FOUND:"Token nije pronađen za vaš zahtjev.",GmErr_BadRequest_USER_NOT_REGISTERED:"Korisnik nije registriran. Molimo registrirajte se prvo.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"Broj telefona koji koristite je nevažeći.",GmErr_BadRequest_INVALID_USER_ID:"Korisnički ID je nevažeći.",GmErr_UnexpectedException:"Nešto je pošlo po zlu... Molimo pokušajte ponovno.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"Korisnički dokument je nevažeći.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"Registracija je blokirana zbog neuspjeha verifikacije PersonaID od strane Ministarstva financija Hrvatske s razlogom: Odgovor MoF-a potvrđuje da je igrač maloljetan ili nije stanovnik Hrvatske.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"Registracija je blokirana zbog neuspjeha verifikacije PersonaID od strane Ministarstva financija Hrvatske s razlogom: MoF ne daje odgovor.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"Registracija je blokirana zbog neuspjeha verifikacije PersonaID od strane Ministarstva financija Hrvatske s razlogom: Interna greška."},"pt-br":{GmErr_AMOUNT_INVALID:"O valor especificado é inválido.",GmErr_REGISTER_OVERAGE:"A inscrição excedeu o limite permitido.",GmErr_REGISTER_UNDERAGE:"A inscrição está abaixo do limite permitido.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"Falha na autenticação do usuário devido a muitas tentativas sem sucesso.",GmErr_USER_ACCOUNT_BLOCKED:"A conta do usuário está bloqueada.",GmErr_USER_NOT_VERIFIED:"O usuário não foi verificado.",GmErr_USER_NOT_FOUND:"Nenhum usuário encontrado com as informações fornecidas.",GmErr_USER_ID_INVALID:"O ID do usuário fornecido é inválido.",GmErr_USER_AUTH_FAILED:"Falha na autenticação do usuário.",GmErr_USER_DUPLICATED:"O usuário já existe no sistema.",GmErr_USER_NOT_ACTIVATED:"A conta do usuário não está ativada.",GmErr_PASSWORD_CONTAINS_EMAIL:"A senha não pode conter o endereço de e-mail.",GmErr_PASSWORD_CONTAINS_USERNAME:"A senha não pode conter o nome de usuário.",GmErr_PASSWORD_CONTAINS_SPACES:"A senha não pode conter espaços.",GmErr_USER_4TS_CHECK_EXISTS:"A verificação 4TS do usuário já existe.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"O usuário está excluído da inscrição.",GmErr_USER_NAV_EXCLUDED_LOGIN:"O usuário está excluído do login.",GmErr_USERNAME_REQUIRED:"O nome de usuário é obrigatório.",GmErr_USER_EMAIL_NOT_VERIFIED:"O e-mail do usuário não foi verificado.",GmErr_EMAIL_ALREADY_EXISTS:"Usuário com o mesmo e-mail já existe",GmErr_EMAIL_REQUIRED:"Um endereço de e-mail é obrigatório.",GmErr_USERNAME_ALREADY_EXISTS:"O nome de usuário já está em uso.",GmErr_DUPLICATE_PERSONAL_ID:"ID pessoal duplicado encontrado.",GmErr_INVALID_USER_DOCUMENT:"O documento do usuário é inválido.",GmErr_INVALID_CODE:"O código fornecido é inválido.",GmErr_EXPIRED_TOKEN:"O token expirou.",GmErr_ATTEMPTS_EXCEEDED:"O número máximo de tentativas foi excedido.",GmErr_BLOCK_USER_INCORRECT_CODE:"O usuário foi bloqueado devido a um código incorreto.",GmErr_TOKEN_NOT_FOUND:"O token não foi encontrado.",GmErr_INVALID_PHONE_NUMBER:"O número de telefone fornecido é inválido.",GmErr_CODE_MISSING:"O código necessário está faltando.",GmErr_UNREGISTERED_USER:"O usuário não está registrado.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"O número máximo de tentativas para gerar um código foi excedido.",GmErr_UNEXPECTED_EXCEPTION:"Ocorreu uma exceção inesperada.",GmErr_INVALID_USER_ID:"O ID do usuário fornecido é inválido.",GmErr_NOT_ALLOWED_EXCEPTION:"Esta ação não é permitida.",GmErr_CAN_NOT_FIND_ROLE:"Não foi possível encontrar a função especificada.",GmErr_NO_SESSION_PROVIDED:"Nenhuma sessão foi fornecida.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"Nenhuma sessão ativa encontrada para este usuário.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"O usuário já foi anonimizado.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"Nenhuma função foi configurada para ser atribuída.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"A sessão fornecida não pertence ao usuário.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"A sessão fornecida não existe.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"A função já foi atribuída ao usuário.",GmErr_ASSIGN_USER_ROLE_FAILED:"Falha ao atribuir a função ao usuário.",GmErr_BadRequest_1000:"Houve um problema com o número de identificação pessoal",CountryRestricted:"Infelizmente, você está tentando se registrar a partir de um país onde não podemos aceitar jogos. Não podemos processar seu registro por esse motivo.",nextButton:"Seguindo",backButton:"Voltar",doneButton:"Terminar",generalError:"Alguma coisa deu errado. Por favor tente outra vez",successMessage:"Registro bem-sucedido",GmErr_BadRequest_Duplicate_User:"Um usuário com essas informações já existe.",GmErr_BadRequest_PasswordContainsUsername:"A senha não pode ser igual ao nome de usuário.",GmErr_BadRequest_PasswordContainsEmail:"A senha não pode ser igual ao e-mail.",GmErr_BadRequest_Duplicate_PersonalId:"Já existe um registro com os dados que você inseriu ou você inseriu seus dados em um formato incorreto.",GmErr_Forbidden_UserAccount_NavExcluded:"Usuário está NAV Excluído. Registro foi negado.",GmErr_BadRequest_ModelValidationFailed:"Algo deu errado... Por favor, tente novamente.",GmErr_BadInternalConfigs:"Algo deu errado... Por favor, tente novamente.",GmErr_Unauthorized:"Algo deu errado... Por favor, tente novamente.",GmErr_NotFound:"Algo deu errado... Por favor, tente novamente.",BadRequest_Duplicate_User:"Usuário com o mesmo nome de usuário já existe.",BadRequest:"A solicitação é inválida, por favor, verifique a API.",Unauthorized:"O número da conta do jogador, endereço de e-mail ou senha estão incorretos",Forbidden_TooManyAttempts:"Você fez muitas tentativas de login inválidas, sua conta foi bloqueada, por favor, tente novamente mais tarde.",Forbidden_UserAccount_NotActive:"Parece que você ainda não confirmou seu endereço de e-mail. Para concluir seu registro e acessar sua conta, verifique sua caixa de entrada de e-mail para uma mensagem de confirmação. Se você não recebeu o e-mail, verifique também a pasta de spam. Se precisar de ajuda, você pode solicitar ajuda através do serviço de atendimento ao cliente.",GmErr_BadRequest_ExpiredToken:"O token que você está usando está expirado.",GmErr_BadRequest_INVALID_CODE:"O código que você está usando é inválido.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"Você fez muitas tentativas de validar seu código.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Você fez muitas tentativas de gerar seu código.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"Você foi bloqueado devido a um código inválido.",GmErr_BadRequest_CODE_MISSING:"O token está faltando para sua solicitação.",GmErr_BadRequest_TOKEN_NOT_FOUND:"O token não foi encontrado para sua solicitação.",GmErr_BadRequest_USER_NOT_REGISTERED:"O usuário não está registrado. Por favor, registre-se primeiro.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"O número de telefone que você está usando é inválido.",GmErr_BadRequest_INVALID_USER_ID:"O ID do usuário é inválido.",GmErr_UnexpectedException:"Algo deu errado... Por favor, tente novamente.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"O documento do usuário é inválido.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"O registro foi bloqueado devido à falha de verificação do PersonaID pelo Ministério das Finanças da Croácia com o motivo: A resposta do MoF confirma que o jogador é menor de idade ou não é residente da Croácia.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"O registro foi bloqueado devido à falha de verificação do PersonaID pelo Ministério das Finanças da Croácia com o motivo: O MoF não retorna uma resposta.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"O registro foi bloqueado devido à falha de verificação do PersonaID pelo Ministério das Finanças da Croácia com o motivo: Erro interno."},"es-mx":{GmErr_AMOUNT_INVALID:"El monto especificado es inválido.",GmErr_REGISTER_OVERAGE:"La inscripción ha excedido el límite permitido.",GmErr_REGISTER_UNDERAGE:"La inscripción está por debajo del límite permitido.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"Autenticación de usuario fallida debido a demasiados intentos fallidos.",GmErr_USER_ACCOUNT_BLOCKED:"La cuenta del usuario está bloqueada.",GmErr_USER_NOT_VERIFIED:"El usuario no ha sido verificado.",GmErr_USER_NOT_FOUND:"No se encontró ningún usuario con la información proporcionada.",GmErr_USER_ID_INVALID:"El ID de usuario proporcionado es inválido.",GmErr_USER_AUTH_FAILED:"La autenticación del usuario falló.",GmErr_USER_DUPLICATED:"El usuario ya existe en el sistema.",GmErr_USER_NOT_ACTIVATED:"La cuenta del usuario no está activada.",GmErr_PASSWORD_CONTAINS_EMAIL:"La contraseña no puede contener la dirección de correo electrónico.",GmErr_PASSWORD_CONTAINS_USERNAME:"La contraseña no puede contener el nombre de usuario.",GmErr_PASSWORD_CONTAINS_SPACES:"La contraseña no puede contener espacios.",GmErr_USER_4TS_CHECK_EXISTS:"La verificación 4TS del usuario ya existe.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"El usuario está excluido del registro.",GmErr_USER_NAV_EXCLUDED_LOGIN:"El usuario está excluido del inicio de sesión.",GmErr_USERNAME_REQUIRED:"Se requiere un nombre de usuario.",GmErr_USER_EMAIL_NOT_VERIFIED:"La dirección de correo electrónico del usuario no ha sido verificada.",GmErr_EMAIL_ALREADY_EXISTS:"Ya existe un usuario con el mismo correo electrónico",GmErr_EMAIL_REQUIRED:"Se requiere una dirección de correo electrónico.",GmErr_USERNAME_ALREADY_EXISTS:"El nombre de usuario ya está en uso.",GmErr_DUPLICATE_PERSONAL_ID:"Se encontró un ID personal duplicado.",GmErr_INVALID_USER_DOCUMENT:"El documento del usuario es inválido.",GmErr_INVALID_CODE:"El código proporcionado es inválido.",GmErr_EXPIRED_TOKEN:"El token ha expirado.",GmErr_ATTEMPTS_EXCEEDED:"Se ha excedido el número máximo de intentos.",GmErr_BLOCK_USER_INCORRECT_CODE:"El usuario ha sido bloqueado debido a un código incorrecto.",GmErr_TOKEN_NOT_FOUND:"No se encontró el token.",GmErr_INVALID_PHONE_NUMBER:"El número de teléfono proporcionado es inválido.",GmErr_CODE_MISSING:"Falta el código necesario.",GmErr_UNREGISTERED_USER:"El usuario no está registrado.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Se ha excedido el número máximo de intentos para generar un código.",GmErr_UNEXPECTED_EXCEPTION:"Ocurrió una excepción inesperada.",GmErr_INVALID_USER_ID:"El ID de usuario proporcionado es inválido.",GmErr_NOT_ALLOWED_EXCEPTION:"Esta acción no está permitida.",GmErr_CAN_NOT_FIND_ROLE:"No se pudo encontrar el rol especificado.",GmErr_NO_SESSION_PROVIDED:"No se proporcionó ninguna sesión.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"No se encontró ninguna sesión activa para este usuario.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"El usuario ya ha sido anonimizado.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"No se ha configurado ningún rol para ser asignado.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"La sesión proporcionada no pertenece al usuario.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"La sesión proporcionada no existe.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"El rol ya ha sido asignado al usuario.",GmErr_ASSIGN_USER_ROLE_FAILED:"Falló la asignación del rol al usuario.",GmErr_BadRequest_1000:"Hubo un problema con el número de identificación personal",CountryRestricted:"Desafortunadamente, estás intentando registrarte desde un país donde no podemos aceptar juegos. No podemos procesar tu registro por esta razón.",nextButton:"Siguiente",backButton:"Atrás",doneButton:"Terminar",generalError:"Algo salió mal... Por favor intente de nuevo",successMessage:"Registro exitoso",GmErr_BadRequest_Duplicate_User:"Ya existe un usuario con esta información.",GmErr_BadRequest_PasswordContainsUsername:"La contraseña no puede ser la misma que el nombre de usuario.",GmErr_BadRequest_PasswordContainsEmail:"La contraseña no puede ser la misma que el correo electrónico.",GmErr_BadRequest_Duplicate_PersonalId:"Ya existe un registro con los datos que ingresaste o ingresaste tus datos en un formato incorrecto.",GmErr_Forbidden_UserAccount_NavExcluded:"El usuario está excluido de NAV. El registro fue denegado.",GmErr_BadRequest_ModelValidationFailed:"Algo salió mal... Por favor, inténtalo de nuevo.",GmErr_BadInternalConfigs:"Algo salió mal... Por favor, inténtalo de nuevo.",GmErr_Unauthorized:"Algo salió mal... Por favor, inténtalo de nuevo.",GmErr_NotFound:"Algo salió mal... Por favor, inténtalo de nuevo.",BadRequest_Duplicate_User:"Ya existe un usuario con el mismo nombre de usuario.",BadRequest:"La solicitud es inválida, por favor verifica la API.",Unauthorized:"El número de cuenta del jugador, la dirección de correo electrónico o la contraseña son incorrectos",Forbidden_TooManyAttempts:"Has realizado demasiados intentos de inicio de sesión inválidos, tu cuenta ha sido bloqueada, por favor inténtalo de nuevo más tarde.",Forbidden_UserAccount_NotActive:"Parece que aún no has confirmado tu dirección de correo electrónico. Para completar tu registro y acceder a tu cuenta, verifica tu bandeja de entrada de correo electrónico para un mensaje de confirmación. Si no has recibido el correo electrónico, verifica también tu carpeta de spam. Si necesitas ayuda, puedes solicitar ayuda a través del servicio de atención al cliente.",GmErr_BadRequest_ExpiredToken:"El token que estás utilizando ha expirado.",GmErr_BadRequest_INVALID_CODE:"El código que estás utilizando es inválido.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"Has realizado demasiados intentos de validar tu código.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Has realizado demasiados intentos de generar tu código.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"Has sido bloqueado debido a un código inválido.",GmErr_BadRequest_CODE_MISSING:"Falta el token para tu solicitud.",GmErr_BadRequest_TOKEN_NOT_FOUND:"No se encontró el token para tu solicitud.",GmErr_BadRequest_USER_NOT_REGISTERED:"El usuario no está registrado. Por favor, regístrate primero.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"El número de teléfono que estás utilizando es inválido.",GmErr_BadRequest_INVALID_USER_ID:"El ID de usuario es inválido.",GmErr_UnexpectedException:"Algo salió mal... Por favor, inténtalo de nuevo.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"El documento del usuario es inválido.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"El registro fue bloqueado debido a la falla de verificación de PersonaID por parte del Ministerio de Finanzas de Croacia con la razón: La respuesta del MoF confirma que el jugador es menor de edad o no es residente croata.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"El registro fue bloqueado debido a la falla de verificación de PersonaID por parte del Ministerio de Finanzas de Croacia con la razón: El MoF no devuelve una respuesta.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"El registro fue bloqueado debido a la falla de verificación de PersonaID por parte del Ministerio de Finanzas de Croacia con la razón: Error interno."},tr:{GmErr_AMOUNT_INVALID:"Belirtilen miktar geçersiz.",GmErr_REGISTER_OVERAGE:"Kayıt izin verilen sınırı aştı.",GmErr_REGISTER_UNDERAGE:"Kayıt izin verilen sınırın altında.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"Çok fazla başarısız deneme nedeniyle kullanıcı kimlik doğrulaması başarısız oldu.",GmErr_USER_ACCOUNT_BLOCKED:"Kullanıcı hesabı engellendi.",GmErr_USER_NOT_VERIFIED:"Kullanıcı doğrulanmadı.",GmErr_USER_NOT_FOUND:"Sağlanan bilgilerle kullanıcı bulunamadı.",GmErr_USER_ID_INVALID:"Sağlanan kullanıcı kimliği geçersiz.",GmErr_USER_AUTH_FAILED:"Kullanıcı kimlik doğrulaması başarısız oldu.",GmErr_USER_DUPLICATED:"Kullanıcı sistemde zaten mevcut.",GmErr_USER_NOT_ACTIVATED:"Kullanıcı hesabı etkinleştirilmedi.",GmErr_PASSWORD_CONTAINS_EMAIL:"Parola e-posta adresini içeremez.",GmErr_PASSWORD_CONTAINS_USERNAME:"Parola kullanıcı adını içeremez.",GmErr_PASSWORD_CONTAINS_SPACES:"Parola boşluk içeremez.",GmErr_USER_4TS_CHECK_EXISTS:"Kullanıcı 4TS kontrolü zaten mevcut.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"Kullanıcı kayıttan hariç tutuldu.",GmErr_USER_NAV_EXCLUDED_LOGIN:"Kullanıcı girişten hariç tutuldu.",GmErr_USERNAME_REQUIRED:"Bir kullanıcı adı gereklidir.",GmErr_USER_EMAIL_NOT_VERIFIED:"Kullanıcının e-posta adresi doğrulanmadı.",GmErr_EMAIL_ALREADY_EXISTS:"Aynı e-posta ile kullanıcı zaten mevcut.",GmErr_EMAIL_REQUIRED:"Bir e-posta adresi gereklidir.",GmErr_USERNAME_ALREADY_EXISTS:"Kullanıcı adı zaten alınmış.",GmErr_DUPLICATE_PERSONAL_ID:"Çift kişisel kimlik bulundu.",GmErr_INVALID_USER_DOCUMENT:"Kullanıcı belgesi geçersiz.",GmErr_INVALID_CODE:"Sağlanan kod geçersiz.",GmErr_EXPIRED_TOKEN:"Token süresi dolmuş.",GmErr_ATTEMPTS_EXCEEDED:"Maksimum deneme sayısı aşıldı.",GmErr_BLOCK_USER_INCORRECT_CODE:"Yanlış kod nedeniyle kullanıcı engellendi.",GmErr_TOKEN_NOT_FOUND:"Token bulunamadı.",GmErr_INVALID_PHONE_NUMBER:"Sağlanan telefon numarası geçersiz.",GmErr_CODE_MISSING:"Kod eksik.",GmErr_UNREGISTERED_USER:"Kullanıcı kayıtlı değil.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Kod oluşturma denemeleri maksimuma ulaştı.",GmErr_UNEXPECTED_EXCEPTION:"Beklenmeyen bir istisna oluştu.",GmErr_INVALID_USER_ID:"Sağlanan kullanıcı kimliği geçersiz.",GmErr_NOT_ALLOWED_EXCEPTION:"Bu işlem izin verilmiyor.",GmErr_CAN_NOT_FIND_ROLE:"Belirtilen rol bulunamıyor.",GmErr_NO_SESSION_PROVIDED:"Oturum sağlanmadı.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"Bu kullanıcı için aktif oturum bulunamadı.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"Kullanıcı zaten anonimleştirilmiş.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"Atanacak bir rol ayarlanmadı.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"Sağlanan oturum kullanıcıya ait değil.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"Sağlanan oturum mevcut değil.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"Rol zaten kullanıcıya atanmış.",GmErr_ASSIGN_USER_ROLE_FAILED:"Kullanıcıya rol atama başarısız oldu.",GmErr_BadRequest_1000:"Kişisel kimlik numarası ile ilgili bir sorun var.",CountryRestricted:"Maalesef, oyun oynayamayacağımız bir ülkeden kayıt yapmaya çalışıyorsunuz. Bu nedenle kaydınızı işleyemiyoruz.",nextButton:"İleri",backButton:"Geri",doneButton:"Tamam",generalError:"Bir şeyler ters gitti... Lütfen tekrar deneyin.",successMessage:"Kayıt başarılı",GmErr_BadRequest_Duplicate_User:"Bu bilgilerle bir kullanıcı zaten mevcut.",GmErr_BadRequest_PasswordContainsUsername:"Parola kullanıcı adı ile aynı olamaz.",GmErr_BadRequest_PasswordContainsEmail:"Parola e-posta ile aynı olamaz.",GmErr_BadRequest_Duplicate_PersonalId:"Girdiğiniz verilerle zaten bir kayıt var veya verilerinizi yanlış formatta girdiniz.",GmErr_Forbidden_UserAccount_NavExcluded:"Kullanıcı NAV hariç tutuldu. Kayıt reddedildi.",GmErr_BadRequest_ModelValidationFailed:"Bir şeyler ters gitti... Lütfen tekrar deneyin.",GmErr_BadInternalConfigs:"Bir şeyler ters gitti... Lütfen tekrar deneyin.",GmErr_Unauthorized:"Bir şeyler ters gitti... Lütfen tekrar deneyin.",GmErr_NotFound:"Bir şeyler ters gitti... Lütfen tekrar deneyin.",BadRequest_Duplicate_User:"Aynı kullanıcı adı ile kullanıcı zaten mevcut.",BadRequest:"İstek geçersiz, lütfen API'yi kontrol edin.",Unauthorized:"Oyuncu hesap numarası, e-posta adresi veya parola yanlış",Forbidden_TooManyAttempts:"Çok fazla geçersiz giriş denemesi yaptınız, hesabınız bloke edildi, lütfen daha sonra tekrar deneyin.",Forbidden_UserAccount_NotActive:"E-posta adresinizi henüz doğrulamadığınız görünüyor. Kaydınızı tamamlamak ve hesabınıza erişmek için e-posta gelen kutunuzu bir onay mesajı için kontrol edin. E-postayı almadıysanız, spam klasörünüzü de kontrol edin. Yardıma ihtiyacınız varsa, müşteri hizmetleri aracılığıyla yardım isteyebilirsiniz.",GmErr_BadRequest_ExpiredToken:"Kullandığınız token süresi dolmuş.",GmErr_BadRequest_INVALID_CODE:"Kullandığınız kod geçersiz.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"Kodunuzu doğrulamak için çok fazla deneme yaptınız.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Kodunuzu oluşturmak için çok fazla deneme yaptınız.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"Geçersiz kod nedeniyle engellendiniz.",GmErr_BadRequest_CODE_MISSING:"İsteğiniz için token eksik.",GmErr_BadRequest_TOKEN_NOT_FOUND:"İsteğiniz için token bulunamadı.",GmErr_BadRequest_USER_NOT_REGISTERED:"Kullanıcı kayıtlı değil. Lütfen önce kayıt olun.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"Kullandığınız telefon numarası geçersiz.",GmErr_BadRequest_INVALID_USER_ID:"Kullanıcı kimliği geçersiz.",GmErr_UnexpectedException:"Bir şeyler ters gitti... Lütfen tekrar deneyin.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"Kullanıcı belgesi geçersiz.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"Kayıt, Hırvatistan Maliye Bakanlığı PersonaID doğrulama hatası nedeniyle engellendi: MoF yanıtı, oyuncunun reşit olmadığını veya Hırvatistan sakini olmadığını doğruluyor.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"Kayıt, Hırvatistan Maliye Bakanlığı PersonaID doğrulama hatası nedeniyle engellendi: MoF yanıt vermiyor.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"Kayıt, Hırvatistan Maliye Bakanlığı PersonaID doğrulama hatası nedeniyle engellendi: İç hata."},"en-us":{GmErr_AMOUNT_INVALID:"The specified amount is invalid.",GmErr_REGISTER_OVERAGE:"The registration has exceeded the allowable limit.",GmErr_REGISTER_UNDERAGE:"The registration is under the allowable limit.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"User authentication failed due to too many unsuccessful attempts.",GmErr_USER_ACCOUNT_BLOCKED:"The user account is blocked.",GmErr_USER_NOT_VERIFIED:"The user has not been verified.",GmErr_USER_NOT_FOUND:"No user found with the provided information.",GmErr_USER_ID_INVALID:"The user ID provided is invalid.",GmErr_USER_AUTH_FAILED:"User authentication failed.",GmErr_USER_DUPLICATED:"The user already exists in the system.",GmErr_USER_NOT_ACTIVATED:"The user account has not been activated.",GmErr_PASSWORD_CONTAINS_EMAIL:"The password cannot contain the email address.",GmErr_PASSWORD_CONTAINS_USERNAME:"The password cannot contain the username.",GmErr_PASSWORD_CONTAINS_SPACES:"The password cannot contain spaces.",GmErr_USER_4TS_CHECK_EXISTS:"The user 4TS check already exists.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"The user is excluded from registration.",GmErr_USER_NAV_EXCLUDED_LOGIN:"The user is excluded from login.",GmErr_USERNAME_REQUIRED:"A username is required.",GmErr_USER_EMAIL_NOT_VERIFIED:"The user's email address has not been verified.",GmErr_EMAIL_ALREADY_EXISTS:"User with same email already exists",GmErr_EMAIL_REQUIRED:"An email address is required.",GmErr_USERNAME_ALREADY_EXISTS:"The username is already taken.",GmErr_DUPLICATE_PERSONAL_ID:"Duplicate personal ID found.",GmErr_INVALID_USER_DOCUMENT:"The user document is invalid.",GmErr_INVALID_CODE:"The code provided is invalid.",GmErr_EXPIRED_TOKEN:"The token has expired.",GmErr_ATTEMPTS_EXCEEDED:"The maximum number of attempts has been exceeded.",GmErr_BLOCK_USER_INCORRECT_CODE:"The user has been blocked due to an incorrect code.",GmErr_TOKEN_NOT_FOUND:"The token was not found.",GmErr_INVALID_PHONE_NUMBER:"The phone number provided is invalid.",GmErr_CODE_MISSING:"The code is missing.",GmErr_UNREGISTERED_USER:"The user is not registered.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Maximum attempts to generate a code have been exceeded.",GmErr_UNEXPECTED_EXCEPTION:"An unexpected exception occurred.",GmErr_INVALID_USER_ID:"The user ID provided is invalid.",GmErr_NOT_ALLOWED_EXCEPTION:"This action is not allowed.",GmErr_CAN_NOT_FIND_ROLE:"Unable to find the specified role.",GmErr_NO_SESSION_PROVIDED:"No session was provided.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"No active session found for this user.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"The user has already been anonymized.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"No role has been set up to be assigned.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"The provided session does not belong to the user.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"The provided session does not exist.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"The role has already been assigned to the user.",GmErr_ASSIGN_USER_ROLE_FAILED:"Failed to assign a role to the user.",GmErr_BadRequest_1000:"There was a problem with the personal identification number",CountryRestricted:"Unfortunately, you are attempting to register from a country where we cannot accept gameplay. We are unable to process your registration for this reason.",nextButton:"Next",backButton:"Back",doneButton:"Done",generalError:"Something went wrong... Please try again.",successMessage:"Register successful",GmErr_BadRequest_Duplicate_User:"A user with this information already exists.",GmErr_BadRequest_PasswordContainsUsername:"The password cannot be the same as the username.",GmErr_BadRequest_PasswordContainsEmail:"The password cannot be the same as the email.",GmErr_BadRequest_Duplicate_PersonalId:"There is already a registration with the data you entered or you entered your data in an incorrect format.",GmErr_Forbidden_UserAccount_NavExcluded:"User is NAV Excluded. Registration was denied.",GmErr_BadRequest_ModelValidationFailed:"Something went wrong... Please try again.",GmErr_BadInternalConfigs:"Something went wrong... Please try again.",GmErr_Unauthorized:"Something went wrong... Please try again.",GmErr_NotFound:"Something went wrong... Please try again.",BadRequest_Duplicate_User:"User with same username already exists.",BadRequest:"The request is invalid, please check the API.",Unauthorized:"The player account number, e-mail address or password is incorrect",Forbidden_TooManyAttempts:"You have made too many invalid login attempts, your account has been blocked, please try again later.",Forbidden_UserAccount_NotActive:"It appears that you have not yet confirmed your email address. To complete your registration and access your account, please check your email inbox for a confirmation message. If you haven't received the email, please also check your spam folder. If you need assistance, you can request help via the customer service.",GmErr_BadRequest_ExpiredToken:"The token you are using is expired.",GmErr_BadRequest_INVALID_CODE:"The code you are using is invalid.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"You have made too many attempts to validate your code.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"You have made too many attempts to generate your code.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"You have been blocked due to an invalid code.",GmErr_BadRequest_CODE_MISSING:"The token is missing for your request.",GmErr_BadRequest_TOKEN_NOT_FOUND:"The token is not found for your request.",GmErr_BadRequest_USER_NOT_REGISTERED:"The user is not registered. Please register first.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"The phone number you are using is invalid.",GmErr_BadRequest_INVALID_USER_ID:"The user ID is invalid.",GmErr_UnexpectedException:"Something went wrong... Please try again.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"The user document is invalid.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"Registration was blocked due to the Croatian Ministry of Finance PersonaID verification failure with reason: MoF response confirms player IS underaged or IS NOT a Croatian resident.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"Registration was blocked due to the Croatian Ministry of Finance PersonaID verification failure with reason: MoF fails to return a response.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"Registration was blocked due to the Croatian Ministry of Finance PersonaID verification failure with reason: Internal error."},ro:{GmErr_AMOUNT_INVALID:"Suma specificată este invalidă.",GmErr_REGISTER_OVERAGE:"Înregistrarea a depășit limita permisă.",GmErr_REGISTER_UNDERAGE:"Înregistrarea este sub limita permisă.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"Autentificarea utilizatorului a eșuat din cauza prea multor încercări nereușite.",GmErr_USER_ACCOUNT_BLOCKED:"Contul utilizatorului este blocat.",GmErr_USER_NOT_VERIFIED:"Utilizatorul nu a fost verificat.",GmErr_USER_NOT_FOUND:"Nu s-a găsit niciun utilizator cu informațiile furnizate.",GmErr_USER_ID_INVALID:"ID-ul utilizatorului furnizat este invalid.",GmErr_USER_AUTH_FAILED:"Autentificarea utilizatorului a eșuat.",GmErr_USER_DUPLICATED:"Utilizatorul există deja în sistem.",GmErr_USER_NOT_ACTIVATED:"Contul utilizatorului nu a fost activat.",GmErr_PASSWORD_CONTAINS_EMAIL:"Parola nu poate conține adresa de email.",GmErr_PASSWORD_CONTAINS_USERNAME:"Parola nu poate conține numele de utilizator.",GmErr_PASSWORD_CONTAINS_SPACES:"Parola nu poate conține spații.",GmErr_USER_4TS_CHECK_EXISTS:"Verificarea utilizatorului 4TS există deja.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"Utilizatorul este exclus de la înregistrare.",GmErr_USER_NAV_EXCLUDED_LOGIN:"Utilizatorul este exclus de la autentificare.",GmErr_USERNAME_REQUIRED:"Este necesar un nume de utilizator.",GmErr_USER_EMAIL_NOT_VERIFIED:"Adresa de email a utilizatorului nu a fost verificată.",GmErr_EMAIL_ALREADY_EXISTS:"Un utilizator cu același email există deja.",GmErr_EMAIL_REQUIRED:"Este necesară o adresă de email.",GmErr_USERNAME_ALREADY_EXISTS:"Numele de utilizator este deja utilizat.",GmErr_DUPLICATE_PERSONAL_ID:"S-a găsit un ID personal duplicat.",GmErr_INVALID_USER_DOCUMENT:"Documentul utilizatorului este invalid.",GmErr_INVALID_CODE:"Codul furnizat este invalid.",GmErr_EXPIRED_TOKEN:"Token-ul a expirat.",GmErr_ATTEMPTS_EXCEEDED:"Numărul maxim de încercări a fost depășit.",GmErr_BLOCK_USER_INCORRECT_CODE:"Utilizatorul a fost blocat din cauza unui cod incorect.",GmErr_TOKEN_NOT_FOUND:"Token-ul nu a fost găsit.",GmErr_INVALID_PHONE_NUMBER:"Numărul de telefon furnizat este invalid.",GmErr_CODE_MISSING:"Lipsește codul.",GmErr_UNREGISTERED_USER:"Utilizatorul nu este înregistrat.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"S-a depășit numărul maxim de încercări pentru generarea unui cod.",GmErr_UNEXPECTED_EXCEPTION:"A apărut o eroare neașteptată.",GmErr_INVALID_USER_ID:"ID-ul utilizatorului furnizat este invalid.",GmErr_NOT_ALLOWED_EXCEPTION:"Acțiunea nu este permisă.",GmErr_CAN_NOT_FIND_ROLE:"Nu s-a găsit rolul specificat.",GmErr_NO_SESSION_PROVIDED:"Nu a fost furnizată nicio sesiune.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"Nu a fost găsită nicio sesiune activă pentru acest utilizator.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"Utilizatorul a fost deja anonimizat.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"Nu a fost configurat niciun rol de atribuit.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"Sesiunea furnizată nu aparține utilizatorului.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"Sesiunea furnizată nu există.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"Rolul a fost deja atribuit utilizatorului.",GmErr_ASSIGN_USER_ROLE_FAILED:"Atribuirea rolului utilizatorului a eșuat.",GmErr_BadRequest_1000:"A apărut o problemă cu numărul de identificare personal.",CountryRestricted:"Din păcate, încercați să vă înregistrați dintr-o țară unde nu putem accepta jocuri. Din acest motiv, nu vă putem procesa înregistrarea.",nextButton:"Următorul",backButton:"Înapoi",doneButton:"Finalizat",generalError:"Ceva a mers prost... Vă rugăm să încercați din nou.",successMessage:"Înregistrare reușită",GmErr_BadRequest_Duplicate_User:"Un utilizator cu aceste informații există deja.",GmErr_BadRequest_PasswordContainsUsername:"Parola nu poate fi aceeași cu numele de utilizator.",GmErr_BadRequest_PasswordContainsEmail:"Parola nu poate fi aceeași cu e-mailul.",GmErr_BadRequest_Duplicate_PersonalId:"Există deja o înregistrare cu datele pe care le-ați introdus sau ați introdus datele într-un format incorect.",GmErr_Forbidden_UserAccount_NavExcluded:"Utilizatorul este exclus NAV. Înregistrarea a fost refuzată.",GmErr_BadRequest_ModelValidationFailed:"Ceva a mers prost... Vă rugăm să încercați din nou.",GmErr_BadInternalConfigs:"Ceva a mers prost... Vă rugăm să încercați din nou.",GmErr_Unauthorized:"Ceva a mers prost... Vă rugăm să încercați din nou.",GmErr_NotFound:"Ceva a mers prost... Vă rugăm să încercați din nou.",BadRequest_Duplicate_User:"Există deja un utilizator cu același nume de utilizator.",BadRequest:"Cererea este invalidă, vă rugăm să verificați API-ul.",Unauthorized:"Numărul contului jucătorului, adresa de e-mail sau parola sunt incorecte",Forbidden_TooManyAttempts:"Ați făcut prea multe încercări de conectare invalide, contul dvs. a fost blocat, vă rugăm să încercați din nou mai târziu.",Forbidden_UserAccount_NotActive:"Se pare că nu v-ați confirmat încă adresa de e-mail. Pentru a finaliza înregistrarea și a accesa contul dvs., verificați căsuța de e-mail pentru un mesaj de confirmare. Dacă nu ați primit e-mailul, verificați și folderul de spam. Dacă aveți nevoie de asistență, puteți solicita ajutor prin serviciul de asistență pentru clienți.",GmErr_BadRequest_ExpiredToken:"Tokenul pe care îl utilizați este expirat.",GmErr_BadRequest_INVALID_CODE:"Codul pe care îl utilizați este invalid.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"Ați făcut prea multe încercări de validare a codului.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Ați făcut prea multe încercări de generare a codului.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"Ați fost blocat din cauza unui cod invalid.",GmErr_BadRequest_CODE_MISSING:"Tokenul lipsește pentru solicitarea dvs.",GmErr_BadRequest_TOKEN_NOT_FOUND:"Tokenul nu a fost găsit pentru solicitarea dvs.",GmErr_BadRequest_USER_NOT_REGISTERED:"Utilizatorul nu este înregistrat. Vă rugăm să vă înregistrați mai întâi.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"Numărul de telefon pe care îl utilizați este invalid.",GmErr_BadRequest_INVALID_USER_ID:"ID-ul utilizatorului este invalid.",GmErr_UnexpectedException:"Ceva a mers prost... Vă rugăm să încercați din nou.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"Documentul utilizatorului este invalid.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"Înregistrarea a fost blocată din cauza eșecului verificării PersonaID de către Ministerul Finanțelor din Croația cu motivul: Răspunsul MoF confirmă că jucătorul este minor sau nu este rezident croat.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"Înregistrarea a fost blocată din cauza eșecului verificării PersonaID de către Ministerul Finanțelor din Croația cu motivul: MoF nu returnează un răspuns.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"Înregistrarea a fost blocată din cauza eșecului verificării PersonaID de către Ministerul Finanțelor din Croația cu motivul: Eroare internă."},fr:{GmErr_AMOUNT_INVALID:"Le montant spécifié est invalide.",GmErr_REGISTER_OVERAGE:"L'inscription a dépassé la limite autorisée.",GmErr_REGISTER_UNDERAGE:"L'inscription est en dessous de la limite autorisée.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"Échec de l'authentification utilisateur en raison de trop nombreuses tentatives infructueuses.",GmErr_USER_ACCOUNT_BLOCKED:"Le compte utilisateur est bloqué.",GmErr_USER_NOT_VERIFIED:"L'utilisateur n'a pas été vérifié.",GmErr_USER_NOT_FOUND:"Aucun utilisateur trouvé avec les informations fournies.",GmErr_USER_ID_INVALID:"L'identifiant utilisateur fourni est invalide.",GmErr_USER_AUTH_FAILED:"Échec de l'authentification utilisateur.",GmErr_USER_DUPLICATED:"L'utilisateur existe déjà dans le système.",GmErr_USER_NOT_ACTIVATED:"Le compte utilisateur n'a pas été activé.",GmErr_PASSWORD_CONTAINS_EMAIL:"Le mot de passe ne peut pas contenir l'adresse e-mail.",GmErr_PASSWORD_CONTAINS_USERNAME:"Le mot de passe ne peut pas contenir le nom d'utilisateur.",GmErr_PASSWORD_CONTAINS_SPACES:"Le mot de passe ne peut pas contenir d'espaces.",GmErr_USER_4TS_CHECK_EXISTS:"La vérification utilisateur 4TS existe déjà.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"L'utilisateur est exclu de l'enregistrement.",GmErr_USER_NAV_EXCLUDED_LOGIN:"L'utilisateur est exclu de la connexion.",GmErr_USERNAME_REQUIRED:"Un nom d'utilisateur est requis.",GmErr_USER_EMAIL_NOT_VERIFIED:"L'adresse e-mail de l'utilisateur n'a pas été vérifiée.",GmErr_EMAIL_ALREADY_EXISTS:"Un utilisateur avec la même adresse e-mail existe déjà.",GmErr_EMAIL_REQUIRED:"Une adresse e-mail est requise.",GmErr_USERNAME_ALREADY_EXISTS:"Le nom d'utilisateur est déjà pris.",GmErr_DUPLICATE_PERSONAL_ID:"Un identifiant personnel dupliqué a été trouvé.",GmErr_INVALID_USER_DOCUMENT:"Le document utilisateur est invalide.",GmErr_INVALID_CODE:"Le code fourni est invalide.",GmErr_EXPIRED_TOKEN:"Le jeton a expiré.",GmErr_ATTEMPTS_EXCEEDED:"Le nombre maximum de tentatives a été dépassé.",GmErr_BLOCK_USER_INCORRECT_CODE:"L'utilisateur a été bloqué en raison d'un code incorrect.",GmErr_TOKEN_NOT_FOUND:"Le jeton n'a pas été trouvé.",GmErr_INVALID_PHONE_NUMBER:"Le numéro de téléphone fourni est invalide.",GmErr_CODE_MISSING:"Le code est manquant.",GmErr_UNREGISTERED_USER:"L'utilisateur n'est pas enregistré.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Le nombre maximum de tentatives pour générer un code a été dépassé.",GmErr_UNEXPECTED_EXCEPTION:"Une exception inattendue s'est produite.",GmErr_INVALID_USER_ID:"L'identifiant utilisateur fourni est invalide.",GmErr_NOT_ALLOWED_EXCEPTION:"Cette action n'est pas autorisée.",GmErr_CAN_NOT_FIND_ROLE:"Impossible de trouver le rôle spécifié.",GmErr_NO_SESSION_PROVIDED:"Aucune session n'a été fournie.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"Aucune session active n'a été trouvée pour cet utilisateur.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"L'utilisateur a déjà été anonymisé.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"Aucun rôle n'a été configuré pour être attribué.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"La session fournie n'appartient pas à l'utilisateur.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"La session fournie n'existe pas.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"Le rôle a déjà été attribué à l'utilisateur.",GmErr_ASSIGN_USER_ROLE_FAILED:"Échec de l'attribution d'un rôle à l'utilisateur.",GmErr_BadRequest_1000:"Un problème est survenu avec le numéro d'identification personnel.",CountryRestricted:"Malheureusement, vous essayez de vous inscrire depuis un pays où nous ne pouvons pas accepter les jeux. Nous ne pouvons pas traiter votre inscription pour cette raison.",nextButton:"Suivant",backButton:"Retour",GmErr_BadRequest_Duplicate_User:"Un utilisateur avec ces informations existe déjà.",GmErr_BadRequest_PasswordContainsUsername:"Le mot de passe ne peut pas être le même que le nom d'utilisateur.",GmErr_BadRequest_PasswordContainsEmail:"Le mot de passe ne peut pas être le même que l'e-mail.",GmErr_BadRequest_Duplicate_PersonalId:"Il existe déjà une inscription avec les données que vous avez saisies ou vous avez saisi vos données dans un format incorrect.",GmErr_Forbidden_UserAccount_NavExcluded:"L'utilisateur est exclu NAV. L'inscription a été refusée.",GmErr_BadRequest_ModelValidationFailed:"Quelque chose a mal tourné... Veuillez réessayer.",GmErr_BadInternalConfigs:"Quelque chose a mal tourné... Veuillez réessayer.",GmErr_Unauthorized:"Quelque chose a mal tourné... Veuillez réessayer.",GmErr_NotFound:"Quelque chose a mal tourné... Veuillez réessayer.",BadRequest_Duplicate_User:"Un utilisateur avec le même nom d'utilisateur existe déjà.",BadRequest:"La demande est invalide, veuillez vérifier l'API.",Unauthorized:"Le numéro de compte du joueur, l'adresse e-mail ou le mot de passe est incorrect",Forbidden_TooManyAttempts:"Vous avez fait trop de tentatives de connexion invalides, votre compte a été bloqué, veuillez réessayer plus tard.",Forbidden_UserAccount_NotActive:"Il semble que vous n'avez pas encore confirmé votre adresse e-mail. Pour compléter votre inscription et accéder à votre compte, veuillez vérifier votre boîte de réception pour un message de confirmation. Si vous n'avez pas reçu l'e-mail, veuillez également vérifier votre dossier de spam. Si vous avez besoin d'aide, vous pouvez demander de l'aide via le service client.",GmErr_BadRequest_ExpiredToken:"Le jeton que vous utilisez est expiré.",GmErr_BadRequest_INVALID_CODE:"Le code que vous utilisez est invalide.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"Vous avez fait trop de tentatives pour valider votre code.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Vous avez fait trop de tentatives pour générer votre code.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"Vous avez été bloqué en raison d'un code invalide.",GmErr_BadRequest_CODE_MISSING:"Le jeton est manquant pour votre demande.",GmErr_BadRequest_TOKEN_NOT_FOUND:"Le jeton n'a pas été trouvé pour votre demande.",GmErr_BadRequest_USER_NOT_REGISTERED:"L'utilisateur n'est pas enregistré. Veuillez vous inscrire d'abord.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"Le numéro de téléphone que vous utilisez est invalide.",GmErr_BadRequest_INVALID_USER_ID:"L'ID utilisateur est invalide.",GmErr_UnexpectedException:"Quelque chose a mal tourné... Veuillez réessayer.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"Le document utilisateur est invalide.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"L'inscription a été bloquée en raison de l'échec de la vérification PersonaID par le ministère des Finances croate avec la raison : La réponse du MoF confirme que le joueur est mineur ou n'est pas résident croate.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"L'inscription a été bloquée en raison de l'échec de la vérification PersonaID par le ministère des Finances croate avec la raison : Le MoF ne renvoie pas de réponse.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"L'inscription a été bloquée en raison de l'échec de la vérification PersonaID par le ministère des Finances croate avec la raison : Erreur interne."},es:{GmErr_AMOUNT_INVALID:"El monto especificado no es válido.",GmErr_REGISTER_OVERAGE:"El registro ha excedido el límite permitido.",GmErr_REGISTER_UNDERAGE:"El registro está por debajo del límite permitido.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"La autenticación del usuario falló debido a demasiados intentos fallidos.",GmErr_USER_ACCOUNT_BLOCKED:"La cuenta del usuario está bloqueada.",GmErr_USER_NOT_VERIFIED:"El usuario no ha sido verificado.",GmErr_USER_NOT_FOUND:"No se encontró un usuario con la información proporcionada.",GmErr_USER_ID_INVALID:"El ID de usuario proporcionado no es válido.",GmErr_USER_AUTH_FAILED:"La autenticación del usuario falló.",GmErr_USER_DUPLICATED:"El usuario ya existe en el sistema.",GmErr_USER_NOT_ACTIVATED:"La cuenta del usuario no ha sido activada.",GmErr_PASSWORD_CONTAINS_EMAIL:"La contraseña no puede contener la dirección de correo electrónico.",GmErr_PASSWORD_CONTAINS_USERNAME:"La contraseña no puede contener el nombre de usuario.",GmErr_PASSWORD_CONTAINS_SPACES:"La contraseña no puede contener espacios.",GmErr_USER_4TS_CHECK_EXISTS:"La verificación del usuario 4TS ya existe.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"El usuario está excluido del registro.",GmErr_USER_NAV_EXCLUDED_LOGIN:"El usuario está excluido del inicio de sesión.",GmErr_USERNAME_REQUIRED:"Se requiere un nombre de usuario.",GmErr_USER_EMAIL_NOT_VERIFIED:"La dirección de correo electrónico del usuario no ha sido verificada.",GmErr_EMAIL_ALREADY_EXISTS:"Un usuario con el mismo correo electrónico ya existe.",GmErr_EMAIL_REQUIRED:"Se requiere una dirección de correo electrónico.",GmErr_USERNAME_ALREADY_EXISTS:"El nombre de usuario ya está en uso.",GmErr_DUPLICATE_PERSONAL_ID:"Se encontró un ID personal duplicado.",GmErr_INVALID_USER_DOCUMENT:"El documento del usuario no es válido.",GmErr_INVALID_CODE:"El código proporcionado no es válido.",GmErr_EXPIRED_TOKEN:"El token ha expirado.",GmErr_ATTEMPTS_EXCEEDED:"Se ha superado el número máximo de intentos.",GmErr_BLOCK_USER_INCORRECT_CODE:"El usuario ha sido bloqueado debido a un código incorrecto.",GmErr_TOKEN_NOT_FOUND:"No se encontró el token.",GmErr_INVALID_PHONE_NUMBER:"El número de teléfono proporcionado no es válido.",GmErr_CODE_MISSING:"Falta el código.",GmErr_UNREGISTERED_USER:"El usuario no está registrado.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Se ha superado el número máximo de intentos para generar un código.",GmErr_UNEXPECTED_EXCEPTION:"Ocurrió una excepción inesperada.",GmErr_INVALID_USER_ID:"El ID de usuario proporcionado no es válido.",GmErr_NOT_ALLOWED_EXCEPTION:"Esta acción no está permitida.",GmErr_CAN_NOT_FIND_ROLE:"No se pudo encontrar el rol especificado.",GmErr_NO_SESSION_PROVIDED:"No se proporcionó ninguna sesión.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"No se encontró ninguna sesión activa para este usuario.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"El usuario ya ha sido anonimizado.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"No se ha configurado ningún rol para asignar.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"La sesión proporcionada no pertenece al usuario.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"La sesión proporcionada no existe.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"El rol ya ha sido asignado al usuario.",GmErr_ASSIGN_USER_ROLE_FAILED:"No se pudo asignar un rol al usuario.",GmErr_BadRequest_1000:"Hubo un problema con el número de identificación personal.",CountryRestricted:"Lamentablemente, estás intentando registrarte desde un país donde no podemos aceptar el juego. No podemos procesar tu registro por esta razón.",nextButton:"Siguiente",backButton:"Atrás",doneButton:"Hecho",generalError:"Algo salió mal... Por favor, inténtalo de nuevo.",successMessage:"Registro exitoso",GmErr_BadRequest_Duplicate_User:"Ya existe un usuario con esta información.",GmErr_BadRequest_PasswordContainsUsername:"La contraseña no puede ser la misma que el nombre de usuario.",GmErr_BadRequest_PasswordContainsEmail:"La contraseña no puede ser la misma que el correo electrónico.",GmErr_BadRequest_Duplicate_PersonalId:"Ya existe un registro con los datos que ingresó o ingresó sus datos en un formato incorrecto.",GmErr_Forbidden_UserAccount_NavExcluded:"El usuario está excluido de NAV. El registro fue denegado.",GmErr_BadRequest_ModelValidationFailed:"Algo salió mal... Por favor, inténtelo de nuevo.",GmErr_BadInternalConfigs:"Algo salió mal... Por favor, inténtelo de nuevo.",GmErr_Unauthorized:"Algo salió mal... Por favor, inténtelo de nuevo.",GmErr_NotFound:"Algo salió mal... Por favor, inténtelo de nuevo.",BadRequest_Duplicate_User:"Ya existe un usuario con el mismo nombre de usuario.",BadRequest:"La solicitud es inválida, por favor verifique la API.",Unauthorized:"El número de cuenta del jugador, la dirección de correo electrónico o la contraseña son incorrectos",Forbidden_TooManyAttempts:"Ha realizado demasiados intentos de inicio de sesión inválidos, su cuenta ha sido bloqueada, por favor intente de nuevo más tarde.",Forbidden_UserAccount_NotActive:"Parece que aún no ha confirmado su dirección de correo electrónico. Para completar su registro y acceder a su cuenta, verifique su bandeja de entrada de correo electrónico para un mensaje de confirmación. Si no ha recibido el correo electrónico, verifique también su carpeta de spam. Si necesita ayuda, puede solicitar ayuda a través del servicio de atención al cliente.",GmErr_BadRequest_ExpiredToken:"El token que está utilizando ha expirado.",GmErr_BadRequest_INVALID_CODE:"El código que está utilizando es inválido.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"Ha realizado demasiados intentos de validar su código.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Ha realizado demasiados intentos de generar su código.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"Ha sido bloqueado debido a un código inválido.",GmErr_BadRequest_CODE_MISSING:"Falta el token para su solicitud.",GmErr_BadRequest_TOKEN_NOT_FOUND:"No se encontró el token para su solicitud.",GmErr_BadRequest_USER_NOT_REGISTERED:"El usuario no está registrado. Por favor, regístrese primero.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"El número de teléfono que está utilizando es inválido.",GmErr_BadRequest_INVALID_USER_ID:"El ID de usuario es inválido.",GmErr_UnexpectedException:"Algo salió mal... Por favor, inténtelo de nuevo.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"El documento del usuario es inválido.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"El registro fue bloqueado debido a la falla de verificación de PersonaID por parte del Ministerio de Finanzas de Croacia con la razón: La respuesta del MoF confirma que el jugador es menor de edad o no es residente croata.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"El registro fue bloqueado debido a la falla de verificación de PersonaID por parte del Ministerio de Finanzas de Croacia con la razón: El MoF no devuelve una respuesta.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"El registro fue bloqueado debido a la falla de verificación de PersonaID por parte del Ministerio de Finanzas de Croacia con la razón: Error interno."},pt:{GmErr_AMOUNT_INVALID:"O valor especificado é inválido.",GmErr_REGISTER_OVERAGE:"O registro excedeu o limite permitido.",GmErr_REGISTER_UNDERAGE:"O registro está abaixo do limite permitido.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"A autenticação do usuário falhou devido a muitas tentativas malsucedidas.",GmErr_USER_ACCOUNT_BLOCKED:"A conta do usuário está bloqueada.",GmErr_USER_NOT_VERIFIED:"O usuário não foi verificado.",GmErr_USER_NOT_FOUND:"Nenhum usuário encontrado com as informações fornecidas.",GmErr_USER_ID_INVALID:"O ID de usuário fornecido é inválido.",GmErr_USER_AUTH_FAILED:"A autenticação do usuário falhou.",GmErr_USER_DUPLICATED:"O usuário já existe no sistema.",GmErr_USER_NOT_ACTIVATED:"A conta do usuário não foi ativada.",GmErr_PASSWORD_CONTAINS_EMAIL:"A senha não pode conter o endereço de e-mail.",GmErr_PASSWORD_CONTAINS_USERNAME:"A senha não pode conter o nome de usuário.",GmErr_PASSWORD_CONTAINS_SPACES:"A senha não pode conter espaços.",GmErr_USER_4TS_CHECK_EXISTS:"A verificação do usuário 4TS já existe.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"O usuário está excluído do registro.",GmErr_USER_NAV_EXCLUDED_LOGIN:"O usuário está excluído do login.",GmErr_USERNAME_REQUIRED:"É necessário um nome de usuário.",GmErr_USER_EMAIL_NOT_VERIFIED:"O endereço de e-mail do usuário não foi verificado.",GmErr_EMAIL_ALREADY_EXISTS:"Um usuário com o mesmo e-mail já existe.",GmErr_EMAIL_REQUIRED:"É necessário um endereço de e-mail.",GmErr_USERNAME_ALREADY_EXISTS:"O nome de usuário já está em uso.",GmErr_DUPLICATE_PERSONAL_ID:"ID pessoal duplicado encontrado.",GmErr_INVALID_USER_DOCUMENT:"O documento do usuário é inválido.",GmErr_INVALID_CODE:"O código fornecido é inválido.",GmErr_EXPIRED_TOKEN:"O token expirou.",GmErr_ATTEMPTS_EXCEEDED:"O número máximo de tentativas foi excedido.",GmErr_BLOCK_USER_INCORRECT_CODE:"O usuário foi bloqueado devido a um código incorreto.",GmErr_TOKEN_NOT_FOUND:"O token não foi encontrado.",GmErr_INVALID_PHONE_NUMBER:"O número de telefone fornecido é inválido.",GmErr_CODE_MISSING:"O código está ausente.",GmErr_UNREGISTERED_USER:"O usuário não está registrado.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"O número máximo de tentativas para gerar um código foi excedido.",GmErr_UNEXPECTED_EXCEPTION:"Ocorreu uma exceção inesperada.",GmErr_INVALID_USER_ID:"O ID de usuário fornecido é inválido.",GmErr_NOT_ALLOWED_EXCEPTION:"Essa ação não é permitida.",GmErr_CAN_NOT_FIND_ROLE:"Não foi possível encontrar a função especificada.",GmErr_NO_SESSION_PROVIDED:"Nenhuma sessão foi fornecida.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"Nenhuma sessão ativa encontrada para este usuário.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"O usuário já foi anonimizado.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"Nenhuma função foi configurada para ser atribuída.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"A sessão fornecida não pertence ao usuário.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"A sessão fornecida não existe.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"A função já foi atribuída ao usuário.",GmErr_ASSIGN_USER_ROLE_FAILED:"Falha ao atribuir uma função ao usuário.",GmErr_BadRequest_1000:"Houve um problema com o número de identificação pessoal.",CountryRestricted:"Infelizmente, você está tentando se registrar de um país onde não podemos aceitar jogos. Não podemos processar seu registro por este motivo.",nextButton:"Próximo",backButton:"Voltar",doneButton:"Concluído",generalError:"Algo deu errado... Por favor, tente novamente.",successMessage:"Registro bem-sucedido",GmErr_BadRequest_Duplicate_User:"Um usuário com essas informações já existe.",GmErr_BadRequest_PasswordContainsUsername:"A senha não pode ser igual ao nome de usuário.",GmErr_BadRequest_PasswordContainsEmail:"A senha não pode ser igual ao e-mail.",GmErr_BadRequest_Duplicate_PersonalId:"Já existe um registro com os dados que você inseriu ou você inseriu seus dados em um formato incorreto.",GmErr_Forbidden_UserAccount_NavExcluded:"Usuário está NAV Excluído. Registro foi negado.",GmErr_BadRequest_ModelValidationFailed:"Algo deu errado... Por favor, tente novamente.",GmErr_BadInternalConfigs:"Algo deu errado... Por favor, tente novamente.",GmErr_Unauthorized:"Algo deu errado... Por favor, tente novamente.",GmErr_NotFound:"Algo deu errado... Por favor, tente novamente.",BadRequest_Duplicate_User:"Usuário com o mesmo nome de usuário já existe.",BadRequest:"A solicitação é inválida, por favor, verifique a API.",Unauthorized:"O número da conta do jogador, endereço de e-mail ou senha estão incorretos",Forbidden_TooManyAttempts:"Você fez muitas tentativas de login inválidas, sua conta foi bloqueada, por favor, tente novamente mais tarde.",Forbidden_UserAccount_NotActive:"Parece que você ainda não confirmou seu endereço de e-mail. Para concluir seu registro e acessar sua conta, verifique sua caixa de entrada de e-mail para uma mensagem de confirmação. Se você não recebeu o e-mail, verifique também a pasta de spam. Se precisar de ajuda, você pode solicitar ajuda através do serviço de atendimento ao cliente.",GmErr_BadRequest_ExpiredToken:"O token que você está usando está expirado.",GmErr_BadRequest_INVALID_CODE:"O código que você está usando é inválido.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"Você fez muitas tentativas de validar seu código.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Você fez muitas tentativas de gerar seu código.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"Você foi bloqueado devido a um código inválido.",GmErr_BadRequest_CODE_MISSING:"O token está faltando para sua solicitação.",GmErr_BadRequest_TOKEN_NOT_FOUND:"O token não foi encontrado para sua solicitação.",GmErr_BadRequest_USER_NOT_REGISTERED:"O usuário não está registrado. Por favor, registre-se primeiro.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"O número de telefone que você está usando é inválido.",GmErr_BadRequest_INVALID_USER_ID:"O ID do usuário é inválido.",GmErr_UnexpectedException:"Algo deu errado... Por favor, tente novamente.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"O documento do usuário é inválido.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"O registro foi bloqueado devido à falha de verificação do PersonaID pelo Ministério das Finanças da Croácia com o motivo: A resposta do MoF confirma que o jogador é menor de idade ou não é residente da Croácia.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"O registro foi bloqueado devido à falha de verificação do PersonaID pelo Ministério das Finanças da Croácia com o motivo: O MoF não retorna uma resposta.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"O registro foi bloqueado devido à falha de verificação do PersonaID pelo Ministério das Finanças da Croácia com o motivo: Erro interno."},de:{GmErr_AMOUNT_INVALID:"Der angegebene Betrag ist ungültig.",GmErr_REGISTER_OVERAGE:"Die Registrierung hat das zulässige Limit überschritten.",GmErr_REGISTER_UNDERAGE:"Die Registrierung liegt unterhalb des zulässigen Limits.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"Die Benutzeranmeldung ist aufgrund zu vieler fehlgeschlagener Versuche fehlgeschlagen.",GmErr_USER_ACCOUNT_BLOCKED:"Das Benutzerkonto ist gesperrt.",GmErr_USER_NOT_VERIFIED:"Der Benutzer wurde nicht verifiziert.",GmErr_USER_NOT_FOUND:"Kein Benutzer mit den angegebenen Informationen gefunden.",GmErr_USER_ID_INVALID:"Die angegebene Benutzer-ID ist ungültig.",GmErr_USER_AUTH_FAILED:"Die Benutzeranmeldung ist fehlgeschlagen.",GmErr_USER_DUPLICATED:"Der Benutzer ist bereits im System vorhanden.",GmErr_USER_NOT_ACTIVATED:"Das Benutzerkonto wurde nicht aktiviert.",GmErr_PASSWORD_CONTAINS_EMAIL:"Das Passwort darf keine E-Mail-Adresse enthalten.",GmErr_PASSWORD_CONTAINS_USERNAME:"Das Passwort darf keinen Benutzernamen enthalten.",GmErr_PASSWORD_CONTAINS_SPACES:"Das Passwort darf keine Leerzeichen enthalten.",GmErr_USER_4TS_CHECK_EXISTS:"Die 4TS-Überprüfung des Benutzers existiert bereits.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"Der Benutzer ist von der Registrierung ausgeschlossen.",GmErr_USER_NAV_EXCLUDED_LOGIN:"Der Benutzer ist vom Login ausgeschlossen.",GmErr_USERNAME_REQUIRED:"Ein Benutzername ist erforderlich.",GmErr_USER_EMAIL_NOT_VERIFIED:"Die E-Mail-Adresse des Benutzers wurde nicht verifiziert.",GmErr_EMAIL_ALREADY_EXISTS:"Ein Benutzer mit derselben E-Mail-Adresse existiert bereits.",GmErr_EMAIL_REQUIRED:"Eine E-Mail-Adresse ist erforderlich.",GmErr_USERNAME_ALREADY_EXISTS:"Der Benutzername ist bereits vergeben.",GmErr_DUPLICATE_PERSONAL_ID:"Doppelte persönliche ID gefunden.",GmErr_INVALID_USER_DOCUMENT:"Das Benutzerdokument ist ungültig.",GmErr_INVALID_CODE:"Der angegebene Code ist ungültig.",GmErr_EXPIRED_TOKEN:"Das Token ist abgelaufen.",GmErr_ATTEMPTS_EXCEEDED:"Die maximale Anzahl an Versuchen wurde überschritten.",GmErr_BLOCK_USER_INCORRECT_CODE:"Der Benutzer wurde aufgrund eines falschen Codes gesperrt.",GmErr_TOKEN_NOT_FOUND:"Das Token wurde nicht gefunden.",GmErr_INVALID_PHONE_NUMBER:"Die angegebene Telefonnummer ist ungültig.",GmErr_CODE_MISSING:"Der Code fehlt.",GmErr_UNREGISTERED_USER:"Der Benutzer ist nicht registriert.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Die maximale Anzahl an Versuchen, einen Code zu generieren, wurde überschritten.",GmErr_UNEXPECTED_EXCEPTION:"Es ist ein unerwarteter Fehler aufgetreten.",GmErr_INVALID_USER_ID:"Die angegebene Benutzer-ID ist ungültig.",GmErr_NOT_ALLOWED_EXCEPTION:"Diese Aktion ist nicht erlaubt.",GmErr_CAN_NOT_FIND_ROLE:"Die angegebene Rolle konnte nicht gefunden werden.",GmErr_NO_SESSION_PROVIDED:"Es wurde keine Sitzung bereitgestellt.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"Es wurde keine aktive Sitzung für diesen Benutzer gefunden.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"Der Benutzer wurde bereits anonymisiert.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"Es wurde keine Rolle zur Zuweisung eingerichtet.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"Die bereitgestellte Sitzung gehört nicht dem Benutzer.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"Die bereitgestellte Sitzung existiert nicht.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"Die Rolle wurde dem Benutzer bereits zugewiesen.",GmErr_ASSIGN_USER_ROLE_FAILED:"Die Zuweisung einer Rolle an den Benutzer ist fehlgeschlagen.",GmErr_BadRequest_1000:"Es gab ein Problem mit der persönlichen Identifikationsnummer.",CountryRestricted:"Leider versuchen Sie, sich aus einem Land zu registrieren, in dem wir kein Spiel zulassen können. Aus diesem Grund können wir Ihre Registrierung nicht verarbeiten.",nextButton:"Weiter",backButton:"Zurück",doneButton:"Fertig",generalError:"Etwas ist schief gelaufen... Bitte versuchen Sie es erneut.",successMessage:"Registrierung erfolgreich",GmErr_BadRequest_Duplicate_User:"Ein Benutzer mit diesen Informationen existiert bereits.",GmErr_BadRequest_PasswordContainsUsername:"Das Passwort darf nicht mit dem Benutzernamen übereinstimmen.",GmErr_BadRequest_PasswordContainsEmail:"Das Passwort darf nicht mit der E-Mail-Adresse übereinstimmen.",GmErr_BadRequest_Duplicate_PersonalId:"Es gibt bereits eine Registrierung mit den eingegebenen Daten oder Sie haben Ihre Daten in einem falschen Format eingegeben.",GmErr_Forbidden_UserAccount_NavExcluded:"Benutzer ist NAV ausgeschlossen. Registrierung wurde abgelehnt.",GmErr_BadRequest_ModelValidationFailed:"Etwas ist schief gelaufen... Bitte versuchen Sie es erneut.",GmErr_BadInternalConfigs:"Etwas ist schief gelaufen... Bitte versuchen Sie es erneut.",GmErr_Unauthorized:"Etwas ist schief gelaufen... Bitte versuchen Sie es erneut.",GmErr_NotFound:"Etwas ist schief gelaufen... Bitte versuchen Sie es erneut.",BadRequest_Duplicate_User:"Ein Benutzer mit demselben Benutzernamen existiert bereits.",BadRequest:"Die Anfrage ist ungültig, bitte überprüfen Sie die API.",Unauthorized:"Die Kontonummer des Spielers, die E-Mail-Adresse oder das Passwort ist falsch",Forbidden_TooManyAttempts:"Sie haben zu viele ungültige Anmeldeversuche unternommen, Ihr Konto wurde gesperrt, bitte versuchen Sie es später erneut.",Forbidden_UserAccount_NotActive:"Es scheint, dass Sie Ihre E-Mail-Adresse noch nicht bestätigt haben. Um Ihre Registrierung abzuschließen und auf Ihr Konto zuzugreifen, überprüfen Sie bitte Ihr E-Mail-Postfach auf eine Bestätigungsnachricht. Wenn Sie die E-Mail nicht erhalten haben, überprüfen Sie bitte auch Ihren Spam-Ordner. Wenn Sie Hilfe benötigen, können Sie über den Kundenservice Hilfe anfordern.",GmErr_BadRequest_ExpiredToken:"Das von Ihnen verwendete Token ist abgelaufen.",GmErr_BadRequest_INVALID_CODE:"Der von Ihnen verwendete Code ist ungültig.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"Sie haben zu viele Versuche unternommen, Ihren Code zu validieren.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Sie haben zu viele Versuche unternommen, Ihren Code zu generieren.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"Sie wurden aufgrund eines ungültigen Codes gesperrt.",GmErr_BadRequest_CODE_MISSING:"Das Token fehlt für Ihre Anfrage.",GmErr_BadRequest_TOKEN_NOT_FOUND:"Das Token wurde für Ihre Anfrage nicht gefunden.",GmErr_BadRequest_USER_NOT_REGISTERED:"Der Benutzer ist nicht registriert. Bitte registrieren Sie sich zuerst.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"Die von Ihnen verwendete Telefonnummer ist ungültig.",GmErr_BadRequest_INVALID_USER_ID:"Die Benutzer-ID ist ungültig.",GmErr_UnexpectedException:"Etwas ist schief gelaufen... Bitte versuchen Sie es erneut.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"Das Benutzerdokument ist ungültig.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"Die Registrierung wurde aufgrund eines Fehlers bei der PersonaID-Verifizierung durch das kroatische Finanzministerium blockiert mit dem Grund: Die Antwort des MoF bestätigt, dass der Spieler minderjährig ist oder kein kroatischer Einwohner ist.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"Die Registrierung wurde aufgrund eines Fehlers bei der PersonaID-Verifizierung durch das kroatische Finanzministerium blockiert mit dem Grund: Das MoF gibt keine Antwort.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"Die Registrierung wurde aufgrund eines Fehlers bei der PersonaID-Verifizierung durch das kroatische Finanzministerium blockiert mit dem Grund: Interner Fehler."}},dc=(e,t,i)=>{let r=cc[cc[t]?t:"en"][e];if(void 0!==i)for(const[e,t]of Object.entries(i.values)){const i=new RegExp(`{${e}}`,"g");r=r.replace(i,t)}return r},uc=(e,t={})=>{const i=new CustomEvent("track-custom-event",{detail:{type:e,data:t},bubbles:!0,composed:!0});document.dispatchEvent(i)};var mc={},pc={},_c=Object.defineProperty,fc=Object.defineProperties,vc=Object.getOwnPropertyDescriptors,gc=Object.getOwnPropertySymbols,Ec=Object.prototype.hasOwnProperty,bc=Object.prototype.propertyIsEnumerable,yc=(e,t,i)=>t in e?_c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,wc=(e,t)=>{for(var i in t||(t={}))Ec.call(t,i)&&yc(e,i,t[i]);if(gc)for(var i of gc(t))bc.call(t,i)&&yc(e,i,t[i]);return e},kc=(e,t)=>fc(e,vc(t)),xc=(e,t,i)=>(yc(e,"symbol"!=typeof t?t+"":t,i),i);function Sc(){}function Ac(e){return e()}function Ic(){return Object.create(null)}function Cc(e){e.forEach(Ac)}function Dc(e){return"function"==typeof e}function Tc(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function Rc(e,...t){if(null==e){for(const e of t)e(void 0);return Sc}const i=e.subscribe(...t);return i.unsubscribe?()=>i.unsubscribe():i}function Nc(e,t){e.appendChild(t)}function Oc(e,t,i){const r=function(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}(e);if(!r.getElementById(t)){const e=Mc("style");e.id=t,e.textContent=i,function(e,t){Nc(e.head||e,t)}(r,e)}}function zc(e,t,i){e.insertBefore(t,i||null)}function Gc(e){e.parentNode&&e.parentNode.removeChild(e)}function Mc(e){return document.createElement(e)}function Uc(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Bc(e){return document.createTextNode(e)}function Pc(e,t,i){null==i?e.removeAttribute(t):e.getAttribute(t)!==i&&e.setAttribute(t,i)}let Lc;function jc(e){Lc=e}function Fc(e){(function(){if(!Lc)throw new Error("Function called outside component initialization");return Lc})().$$.on_mount.push(e)}const qc=[],Hc=[];let Vc=[];const $c=[],Xc=Promise.resolve();let Kc=!1;function Yc(e){Vc.push(e)}const Wc=new Set;let Zc=0;function Qc(){if(0!==Zc)return;const e=Lc;do{try{for(;Zc<qc.length;){const e=qc[Zc];Zc++,jc(e),Jc(e.$$)}}catch(e){throw qc.length=0,Zc=0,e}for(jc(null),qc.length=0,Zc=0;Hc.length;)Hc.pop()();for(let e=0;e<Vc.length;e+=1){const t=Vc[e];Wc.has(t)||(Wc.add(t),t())}Vc.length=0}while(qc.length);for(;$c.length;)$c.pop()();Kc=!1,Wc.clear(),jc(e)}function Jc(e){if(null!==e.fragment){e.update(),Cc(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Yc)}}const ed=new Set;function td(e,t,i,r,n,o,s=null,a=[-1]){const l=Lc;jc(e);const h=e.$$={fragment:null,ctx:[],props:o,update:Sc,not_equal:n,bound:Ic(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:Ic(),dirty:a,skip_bound:!1,root:t.target||l.$$.root};s&&s(h.root);let c=!1;if(h.ctx=i?i(e,t.props||{},((t,i,...r)=>{const o=r.length?r[0]:i;return h.ctx&&n(h.ctx[t],h.ctx[t]=o)&&(!h.skip_bound&&h.bound[t]&&h.bound[t](o),c&&function(e,t){-1===e.$$.dirty[0]&&(qc.push(e),Kc||(Kc=!0,Xc.then(Qc)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}(e,t)),i})):[],h.update(),c=!0,Cc(h.before_update),h.fragment=!!r&&r(h.ctx),t.target){if(t.hydrate){const e=function(e){return Array.from(e.childNodes)}(t.target);h.fragment&&h.fragment.l(e),e.forEach(Gc)}else h.fragment&&h.fragment.c();t.intro&&function(e){e&&e.i&&(ed.delete(e),e.i(void 0))}(e.$$.fragment),function(e,t,i){const{fragment:r,after_update:n}=e.$$;r&&r.m(t,i),Yc((()=>{const t=e.$$.on_mount.map(Ac).filter(Dc);e.$$.on_destroy?e.$$.on_destroy.push(...t):Cc(t),e.$$.on_mount=[]})),n.forEach(Yc)}(e,t.target,t.anchor),Qc()}jc(l)}let id;function rd(e,t,i,r){var n;const o=null==(n=i[e])?void 0:n.type;if(t="Boolean"===o&&"boolean"!=typeof t?null!=t:t,!r||!i[e])return t;if("toAttribute"===r)switch(o){case"Object":case"Array":return null==t?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return null==t?null:t;default:return t}else switch(o){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":default:return t;case"Number":return null!=t?+t:t}}function nd(e,t,i,r,n){let o=class extends id{constructor(){super(e,i,n),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map((e=>(t[e].attribute||e).toLowerCase()))}};return Object.keys(t).forEach((e=>{Object.defineProperty(o.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(i){var r;i=rd(e,i,t),this.$$d[e]=i,null==(r=this.$$c)||r.$set({[e]:i})}})})),r.forEach((e=>{Object.defineProperty(o.prototype,e,{get(){var t;return null==(t=this.$$c)?void 0:t[e]}})})),e.element=o,o}"function"==typeof HTMLElement&&(id=class extends HTMLElement{constructor(e,t,i){super(),xc(this,"$$ctor"),xc(this,"$$s"),xc(this,"$$c"),xc(this,"$$cn",!1),xc(this,"$$d",{}),xc(this,"$$r",!1),xc(this,"$$p_d",{}),xc(this,"$$l",{}),xc(this,"$$l_u",new Map),this.$$ctor=e,this.$$s=t,i&&this.attachShadow({mode:"open"})}addEventListener(e,t,i){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const i=this.$$c.$on(e,t);this.$$l_u.set(t,i)}super.addEventListener(e,t,i)}removeEventListener(e,t,i){if(super.removeEventListener(e,t,i),this.$$c){const e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}connectedCallback(){return e=this,t=function*(){if(this.$$cn=!0,!this.$$c){let e=function(e){return()=>{let t;return{c:function(){t=Mc("slot"),"default"!==e&&Pc(t,"name",e)},m:function(e,i){zc(e,t,i)},d:function(e){e&&Gc(t)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const t={},i=function(e){const t={};return e.childNodes.forEach((e=>{t[e.slot||"default"]=!0})),t}(this);for(const r of this.$$s)r in i&&(t[r]=[e(r)]);for(const e of this.attributes){const t=this.$$g_p(e.name);t in this.$$d||(this.$$d[t]=rd(t,e.value,this.$$p_d,"toProp"))}for(const e in this.$$p_d)!(e in this.$$d)&&void 0!==this[e]&&(this.$$d[e]=this[e],delete this[e]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:kc(wc({},this.$$d),{$$slots:t,$$scope:{ctx:[]}})});const r=()=>{this.$$r=!0;for(const e in this.$$p_d)if(this.$$d[e]=this.$$c.$$.ctx[this.$$c.$$.props[e]],this.$$p_d[e].reflect){const t=rd(e,this.$$d[e],this.$$p_d,"toAttribute");null==t?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(const e in this.$$l)for(const t of this.$$l[e]){const i=this.$$c.$on(e,t);this.$$l_u.set(t,i)}this.$$l={}}},new Promise(((i,r)=>{var n=e=>{try{s(t.next(e))}catch(e){r(e)}},o=e=>{try{s(t.throw(e))}catch(e){r(e)}},s=e=>e.done?i(e.value):Promise.resolve(e.value).then(n,o);s((t=t.apply(e,null)).next())}));var e,t}attributeChangedCallback(e,t,i){var r;this.$$r||(e=this.$$g_p(e),this.$$d[e]=rd(e,i,this.$$p_d,"toProp"),null==(r=this.$$c)||r.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then((()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)}))}$$g_p(e){return Object.keys(this.$$p_d).find((t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e))||e}});class od{constructor(){xc(this,"$$"),xc(this,"$$set")}$destroy(){(function(e,t){const i=e.$$;null!==i.fragment&&(function(e){const t=[],i=[];Vc.forEach((r=>-1===e.indexOf(r)?t.push(r):i.push(r))),i.forEach((e=>e())),Vc=t}(i.after_update),Cc(i.on_destroy),i.fragment&&i.fragment.d(t),i.on_destroy=i.fragment=null,i.ctx=[])})(this,1),this.$destroy=Sc}$on(e,t){if(!Dc(t))return Sc;const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(t),()=>{const e=i.indexOf(t);-1!==e&&i.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}function sd(e,t){if(e){const i=document.createElement("style");i.innerHTML=t,e.appendChild(i)}}function ad(e,t){const i=new URL(t);fetch(i.href).then((e=>e.text())).then((t=>{const i=document.createElement("style");i.innerHTML=t,e&&e.appendChild(i)})).catch((e=>{console.error("There was an error while trying to load client styling from URL",e)}))}function ld(e,t){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(t,(t=>{i.innerHTML=t,e&&e.appendChild(i)}))}}function hd(e){Oc(e,"svelte-gnt082",".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}")}function cd(e){let t;return{c(){t=Mc("div"),t.innerHTML='<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>'},m(i,r){zc(i,t,r),e[4](t)},p:Sc,i:Sc,o:Sc,d(i){i&&Gc(t),e[4](null)}}}function dd(e,t,i){let r,{clientstyling:n=""}=t,{clientstylingurl:o=""}=t,{mbsource:s}=t;return Fc((()=>()=>{})),e.$$set=e=>{"clientstyling"in e&&i(1,n=e.clientstyling),"clientstylingurl"in e&&i(2,o=e.clientstylingurl),"mbsource"in e&&i(3,s=e.mbsource)},e.$$.update=()=>{3&e.$$.dirty&&n&&r&&sd(r,n),5&e.$$.dirty&&o&&r&&ad(r,o),9&e.$$.dirty&&s&&r&&ld(r,`${s}.Style`)},[r,n,o,s,function(e){Hc[e?"unshift":"push"]((()=>{r=e,i(0,r)}))}]}"undefined"!=typeof window&&(window.__svelte||(window.__svelte={v:new Set})).v.add("4");class ud extends od{constructor(e){super(),td(this,e,dd,cd,Tc,{clientstyling:1,clientstylingurl:2,mbsource:3},hd)}get clientstyling(){return this.$$.ctx[1]}set clientstyling(e){this.$$set({clientstyling:e}),Qc()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),Qc()}get mbsource(){return this.$$.ctx[3]}set mbsource(e){this.$$set({mbsource:e}),Qc()}}nd(ud,{clientstyling:{},clientstylingurl:{},mbsource:{}},[],[],!0);const md=Object.freeze(Object.defineProperty({__proto__:null,default:ud},Symbol.toStringTag,{value:"Module"}));if(pc.GeneralAnimationLoading_ce=md,pc.HtmlTag=class{constructor(e=!1){xc(this,"is_svg",!1),xc(this,"e"),xc(this,"n"),xc(this,"t"),xc(this,"a"),this.is_svg=e,this.e=this.n=null}c(e){this.h(e)}m(e,t,i=null){this.e||(this.e=this.is_svg?Uc(t.nodeName):Mc(11===t.nodeType?"TEMPLATE":t.nodeName),this.t="TEMPLATE"!==t.tagName?t:t.content,this.c(e)),this.i(i)}h(e){this.e.innerHTML=e,this.n=Array.from("TEMPLATE"===this.e.nodeName?this.e.content.childNodes:this.e.childNodes)}i(e){for(let t=0;t<this.n.length;t+=1)zc(this.t,this.n[t],e)}p(e){this.d(),this.h(e),this.i(this.a)}d(){this.n.forEach(Gc)}},pc.SvelteComponent=od,pc.append=Nc,pc.append_styles=Oc,pc.attr=Pc,pc.binding_callbacks=Hc,pc.component_subscribe=function(e,t,i){e.$$.on_destroy.push(Rc(t,i))},pc.create_custom_element=nd,pc.destroy_each=function(e,t){for(let i=0;i<e.length;i+=1)e[i]&&e[i].d(t)},pc.detach=Gc,pc.element=Mc,pc.empty=function(){return Bc("")},pc.ensure_array_like=function(e){return void 0!==(null==e?void 0:e.length)?e:Array.from(e)},pc.flush=Qc,pc.init=td,pc.insert=zc,pc.is_function=Dc,pc.listen=function(e,t,i,r){return e.addEventListener(t,i,r),()=>e.removeEventListener(t,i,r)},pc.noop=Sc,pc.null_to_empty=function(e){return e},pc.onMount=Fc,pc.run_all=Cc,pc.safe_not_equal=Tc,pc.setClientStyling=sd,pc.setClientStylingURL=ad,pc.setStreamStyling=ld,pc.set_custom_element_data=function(e,t,i){const r=t.toLowerCase();r in e?e[r]="boolean"==typeof e[r]&&""===i||i:t in e?e[t]="boolean"==typeof e[t]&&""===i||i:Pc(e,t,i)},pc.set_data=function(e,t){e.data!==(t=""+t)&&(e.data=t)},pc.space=function(){return Bc(" ")},pc.subscribe=Rc,pc.svg_element=Uc,pc.text=Bc,function(e){var t=Object.defineProperty,i=Object.defineProperties,r=Object.getOwnPropertyDescriptors,n=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,a=(e,i,r)=>i in e?t(e,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[i]=r,l=(e,t)=>{for(var i in t||(t={}))o.call(t,i)&&a(e,i,t[i]);if(n)for(var i of n(t))s.call(t,i)&&a(e,i,t[i]);return e},h=(e,t,i)=>new Promise(((r,n)=>{var o=e=>{try{a(i.next(e))}catch(e){n(e)}},s=e=>{try{a(i.throw(e))}catch(e){n(e)}},a=e=>e.done?r(e.value):Promise.resolve(e.value).then(o,s);a((i=i.apply(e,t)).next())}));Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const c=pc,d=[];function u(e,t=c.noop){let i;const r=new Set;function n(t){if(c.safe_not_equal(e,t)&&(e=t,i)){const t=!d.length;for(const t of r)t[1](),d.push(t,e);if(t){for(let e=0;e<d.length;e+=2)d[e][0](d[e+1]);d.length=0}}}function o(t){n(t(e))}return{set:n,update:o,subscribe:function(s,a=c.noop){const l=[s,a];return r.add(l),1===r.size&&(i=t(n,o)||c.noop),s(e),()=>{r.delete(l),0===r.size&&i&&(i(),i=null)}}}}function m(e,t,i){const r=!Array.isArray(e),n=r?[e]:e;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return function(e,t){return{subscribe:u(e,t).subscribe}}(i,((e,i)=>{let s=!1;const a=[];let l=0,h=c.noop;const d=()=>{if(l)return;h();const n=t(r?a[0]:a,e,i);o?e(n):h=c.is_function(n)?n:c.noop},u=n.map(((e,t)=>c.subscribe(e,(e=>{a[t]=e,l&=~(1<<t),s&&d()}),(()=>{l|=1<<t}))));return s=!0,d(),function(){c.run_all(u),h(),s=!1}}))}var p=function(e){return!(!(t=e)||"object"!=typeof t||function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===_}(e)}(e));var t},_="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function f(e,t){return!1!==t.clone&&t.isMergeableObject(e)?b(function(e){return Array.isArray(e)?[]:{}}(e),e,t):e}function v(e,t,i){return e.concat(t).map((function(e){return f(e,i)}))}function g(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function E(e,t){try{return t in e}catch(e){return!1}}function b(e,t,i){(i=i||{}).arrayMerge=i.arrayMerge||v,i.isMergeableObject=i.isMergeableObject||p,i.cloneUnlessOtherwiseSpecified=f;var r=Array.isArray(t);return r===Array.isArray(e)?r?i.arrayMerge(e,t,i):function(e,t,i){var r={};return i.isMergeableObject(e)&&g(e).forEach((function(t){r[t]=f(e[t],i)})),g(t).forEach((function(n){(function(e,t){return E(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,n)||(r[n]=E(e,n)&&i.isMergeableObject(t[n])?function(e,t){if(!t.customMerge)return b;var i=t.customMerge(e);return"function"==typeof i?i:b}(n,i)(e[n],t[n],i):f(t[n],i))})),r}(e,t,i):f(t,i)}b.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,i){return b(e,i,t)}),{})};const y=(w=b)&&w.__esModule&&Object.prototype.hasOwnProperty.call(w,"default")?w.default:w;
4510
+ `}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Ba(this,(e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e}))),this.addController(new Pa(this.inputElement,this._labelController)),this._tooltipController=new As(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow((e=>!e.opened)),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton}_onClearButtonClick(e){e.stopPropagation(),super._onClearButtonClick(e)}_onHostClick(e){const t=e.composedPath();(t.includes(this._labelNode)||t.includes(this._positionTarget))&&super._onHostClick(e)}}si(dc);const uc=class{constructor(t){e(this,t),this.handleClick=e=>{this.emitOnClick&&(e.stopPropagation(),window.postMessage({type:`registration${this.name}Clicked`},window.location.href))},this.type="text",this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.action=void 0,this.validation=void 0,this.options=void 0,this.language=void 0,this.autofilled=void 0,this.tooltip=void 0,this.defaultValue=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.clientStyling="",this.dateFormat=void 0,this.translationUrl="",this.emitOnClick=!1}connectedCallback(){var e;this.translationUrl&&(e=this.translationUrl,new Promise((t=>{fetch(e).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{for(let i in e[t])o[t][i]=e[t][i]})),t(!0)}))})))}renderInput(){var e;switch(null===(e=this.type)||void 0===e?void 0:e.toLowerCase()){case"text":return i("text-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"email":return i("email-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"number":return i("number-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"checkbox":return i("checkbox-input",{name:this.name,displayName:this.displayName,validation:this.validation,emitValue:this.emitValue,defaultValue:this.defaultValue,autofilled:this.autofilled,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip});case"checkboxgroup":return i("checkbox-group-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,options:this.options});case"togglecheckbox":return i("toggle-checkbox-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,options:this.options,"emit-on-click":this.emitOnClick});case"datetime":return i("date-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,dateFormat:this.dateFormat,"emit-on-click":this.emitOnClick});case"password":return i("password-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"radio":return i("radio-input",{name:this.name,displayName:this.displayName,optionsGroup:this.options,validation:this.validation,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling});case"tel":return i("tel-input",{name:this.name,action:this.action,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,emitValue:this.emitValue,language:this.language,autofilled:this.autofilled,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"dropdown":return i("select-input",{name:this.name,action:this.action,defaultValue:this.defaultValue,displayName:this.displayName,options:this.options,validation:this.validation,emitValue:this.emitValue,autofilled:this.autofilled,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});default:return i("p",null,"The ",this.type," input type is not valid")}}render(){return i(n,{key:"e89747da2e458906e8f634c285044e95d5e92f73",class:`general-input--${this.name}`,onClick:this.handleClick},this.renderInput())}};uc.style=":host{display:block;height:100%}";const mc={en:{GmErr_AMOUNT_INVALID:"The specified amount is invalid.",GmErr_REGISTER_OVERAGE:"The registration has exceeded the allowable limit.",GmErr_REGISTER_UNDERAGE:"The registration is under the allowable limit.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"User authentication failed due to too many unsuccessful attempts.",GmErr_USER_ACCOUNT_BLOCKED:"The user account is blocked.",GmErr_USER_NOT_VERIFIED:"The user has not been verified.",GmErr_USER_NOT_FOUND:"No user found with the provided information.",GmErr_USER_ID_INVALID:"The user ID provided is invalid.",GmErr_USER_AUTH_FAILED:"User authentication failed.",GmErr_USER_DUPLICATED:"The user already exists in the system.",GmErr_USER_NOT_ACTIVATED:"The user account has not been activated.",GmErr_PASSWORD_CONTAINS_EMAIL:"The password cannot contain the email address.",GmErr_PASSWORD_CONTAINS_USERNAME:"The password cannot contain the username.",GmErr_PASSWORD_CONTAINS_SPACES:"The password cannot contain spaces.",GmErr_USER_4TS_CHECK_EXISTS:"The user 4TS check already exists.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"The user is excluded from registration.",GmErr_USER_NAV_EXCLUDED_LOGIN:"The user is excluded from login.",GmErr_USERNAME_REQUIRED:"A username is required.",GmErr_USER_EMAIL_NOT_VERIFIED:"The user's email address has not been verified.",GmErr_EMAIL_ALREADY_EXISTS:"User with same email already exists",GmErr_EMAIL_REQUIRED:"An email address is required.",GmErr_USERNAME_ALREADY_EXISTS:"The username is already taken.",GmErr_DUPLICATE_PERSONAL_ID:"Duplicate personal ID found.",GmErr_INVALID_USER_DOCUMENT:"The user document is invalid.",GmErr_INVALID_CODE:"The code provided is invalid.",GmErr_EXPIRED_TOKEN:"The token has expired.",GmErr_ATTEMPTS_EXCEEDED:"The maximum number of attempts has been exceeded.",GmErr_BLOCK_USER_INCORRECT_CODE:"The user has been blocked due to an incorrect code.",GmErr_TOKEN_NOT_FOUND:"The token was not found.",GmErr_INVALID_PHONE_NUMBER:"The phone number provided is invalid.",GmErr_CODE_MISSING:"The code is missing.",GmErr_UNREGISTERED_USER:"The user is not registered.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Maximum attempts to generate a code have been exceeded.",GmErr_UNEXPECTED_EXCEPTION:"An unexpected exception occurred.",GmErr_INVALID_USER_ID:"The user ID provided is invalid.",GmErr_NOT_ALLOWED_EXCEPTION:"This action is not allowed.",GmErr_CAN_NOT_FIND_ROLE:"Unable to find the specified role.",GmErr_NO_SESSION_PROVIDED:"No session was provided.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"No active session found for this user.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"The user has already been anonymized.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"No role has been set up to be assigned.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"The provided session does not belong to the user.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"The provided session does not exist.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"The role has already been assigned to the user.",GmErr_ASSIGN_USER_ROLE_FAILED:"Failed to assign a role to the user.",GmErr_BadRequest_1000:"There was a problem with the personal identification number",CountryRestricted:"Unfortunately, you are attempting to register from a country where we cannot accept gameplay. We are unable to process your registration for this reason.",nextButton:"Next",backButton:"Back",doneButton:"Done",generalError:"Something went wrong... Please try again.",successMessage:"Register successful",GmErr_BadRequest_Duplicate_User:"A user with this information already exists.",GmErr_BadRequest_PasswordContainsUsername:"The password cannot be the same as the username.",GmErr_BadRequest_PasswordContainsEmail:"The password cannot be the same as the email.",GmErr_BadRequest_Duplicate_PersonalId:"There is already a registration with the data you entered or you entered your data in an incorrect format.",GmErr_Forbidden_UserAccount_NavExcluded:"User is NAV Excluded. Registration was denied.",GmErr_BadRequest_ModelValidationFailed:"Something went wrong... Please try again.",GmErr_BadInternalConfigs:"Something went wrong... Please try again.",GmErr_Unauthorized:"Something went wrong... Please try again.",GmErr_NotFound:"Something went wrong... Please try again.",BadRequest_Duplicate_User:"User with same username already exists.",BadRequest:"The request is invalid, please check the API.",Unauthorized:"The player account number, e-mail address or password is incorrect",Forbidden_TooManyAttempts:"You have made too many invalid login attempts, your account has been blocked, please try again later.",Forbidden_UserAccount_NotActive:"It appears that you have not yet confirmed your email address. To complete your registration and access your account, please check your email inbox for a confirmation message. If you haven't received the email, please also check your spam folder. If you need assistance, you can request help via the customer service.",GmErr_BadRequest_ExpiredToken:"The token you are using is expired.",GmErr_BadRequest_INVALID_CODE:"The code you are using is invalid.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"You have made too many attempts to validate your code.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"You have made too many attempts to generate your code.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"You have been blocked due to an invalid code.",GmErr_BadRequest_CODE_MISSING:"The token is missing for your reqest.",GmErr_BadRequest_TOKEN_NOT_FOUND:"The token is not found for your request.",GmErr_BadRequest_USER_NOT_REGISTERED:"The user is not register. Please register first.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"The phone number you are using is invalid.",GmErr_BadRequest_INVALID_USER_ID:"The user ID is invalid.",GmErr_UnexpectedException:"Something went wrong... Please try again.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"The user document is invalid.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"Registration was blocked due to the Croatian Ministry of Finance PersonaID verification failure with reason: MoF response confirms player IS underaged or IS NOT a Croatian resident.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"Registration was blocked due to the Croatian Ministry of Finance PersonaID verification failure with reason: MoF fails to return a response.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"Registration was blocked due to the Croatian Ministry of Finance PersonaID verification failure with reason: Internal error."},hu:{GmErr_AMOUNT_INVALID:"A megadott összeg érvénytelen.",GmErr_REGISTER_OVERAGE:"A regisztráció túllépte a megengedett határt.",GmErr_REGISTER_UNDERAGE:"A regisztráció a megengedett határ alatt van.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"A felhasználó hitelesítése túl sok sikertelen próbálkozás miatt meghiúsult.",GmErr_USER_ACCOUNT_BLOCKED:"A felhasználói fiók le van tiltva.",GmErr_USER_NOT_VERIFIED:"A felhasználó nincs ellenőrizve.",GmErr_USER_NOT_FOUND:"A megadott adatokkal nem található felhasználó.",GmErr_USER_ID_INVALID:"A megadott felhasználói azonosító érvénytelen.",GmErr_USER_AUTH_FAILED:"A felhasználó hitelesítése meghiúsult.",GmErr_USER_DUPLICATED:"A felhasználó már létezik a rendszerben.",GmErr_USER_NOT_ACTIVATED:"A felhasználó fiókja nincs aktiválva.",GmErr_PASSWORD_CONTAINS_EMAIL:"A jelszó nem tartalmazhat e-mail címet.",GmErr_PASSWORD_CONTAINS_USERNAME:"A jelszó nem tartalmazhat felhasználónevet.",GmErr_PASSWORD_CONTAINS_SPACES:"A jelszó nem tartalmazhat szóközöket.",GmErr_USER_4TS_CHECK_EXISTS:"A felhasználó 4TS ellenőrzése már létezik.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"A felhasználó kizárva a regisztrációból.",GmErr_USER_NAV_EXCLUDED_LOGIN:"A felhasználó kizárva a bejelentkezésből.",GmErr_USERNAME_REQUIRED:"Felhasználónév megadása szükséges.",GmErr_USER_EMAIL_NOT_VERIFIED:"A felhasználó e-mail címe nincs megerősítve.",GmErr_EMAIL_ALREADY_EXISTS:"A megadott e-mail címmel már létezik felhasználó",GmErr_EMAIL_REQUIRED:"E-mail cím megadása szükséges.",GmErr_USERNAME_ALREADY_EXISTS:"A felhasználónév már foglalt.",GmErr_DUPLICATE_PERSONAL_ID:"Már létező személyes azonosító.",GmErr_INVALID_USER_DOCUMENT:"A felhasználói dokumentum érvénytelen.",GmErr_INVALID_CODE:"A megadott kód érvénytelen.",GmErr_EXPIRED_TOKEN:"A token lejárt.",GmErr_ATTEMPTS_EXCEEDED:"A megengedett próbálkozások száma túllépve.",GmErr_BLOCK_USER_INCORRECT_CODE:"A felhasználó blokkolva lett a hibás kód miatt.",GmErr_TOKEN_NOT_FOUND:"A token nem található.",GmErr_INVALID_PHONE_NUMBER:"A megadott telefonszám érvénytelen.",GmErr_CODE_MISSING:"A szükséges kód hiányzik.",GmErr_UNREGISTERED_USER:"A felhasználó nincs regisztrálva.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Túllépték a kódgenerálási próbálkozások számát.",GmErr_UNEXPECTED_EXCEPTION:"Váratlan kivétel történt.",GmErr_INVALID_USER_ID:"A felhasználói azonosító érvénytelen.",GmErr_NOT_ALLOWED_EXCEPTION:"Ez a művelet nem engedélyezett.",GmErr_CAN_NOT_FIND_ROLE:"A megadott szerepkör nem található.",GmErr_NO_SESSION_PROVIDED:"Nem került megadásra munkamenet.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"Nincs aktív munkamenet ehhez a felhasználóhoz.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"A felhasználó már anonimizálva lett.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"Nincs beállítva hozzárendelhető szerepkör.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"A megadott munkamenet nem tartozik a felhasználóhoz.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"A megadott munkamenet nem létezik.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"A szerepkör már hozzá lett rendelve a felhasználóhoz.",GmErr_ASSIGN_USER_ROLE_FAILED:"Nem sikerült a felhasználói szerepkört hozzárendelni.",GmErr_BadRequest_1000:"Probléma volt a személyi azonosító számmal",CountryRestricted:"Sajnálatos módon olyan országból próbál regisztrálni, ahonnan nem fogadhatunk játékot. Emiatt nem tudjuk feldolgozni a regisztrációját.",nextButton:"Következő",backButton:"Vissza",doneButton:"Kész",generalError:"Valami hiba történt... Próbáld újra.",successMessage:"Sikeres regisztráció",GmErr_BadRequest_Duplicate_User:"Egy ilyen információval rendelkező felhasználó már létezik.",GmErr_BadRequest_PasswordContainsUsername:"A jelszó nem lehet azonos a felhasználónévvel.",GmErr_BadRequest_PasswordContainsEmail:"A jelszó nem lehet azonos az e-mail címmel.",GmErr_BadRequest_Duplicate_PersonalId:"Már létezik egy regisztráció az Ön által megadott adatokkal, vagy helytelen formátumban adta meg az adatokat.",GmErr_Forbidden_UserAccount_NavExcluded:"A felhasználó NAV kizárt. A regisztrációt elutasították.",GmErr_BadRequest_ModelValidationFailed:"Valami hiba történt... Kérjük, próbálja újra.",GmErr_BadInternalConfigs:"Valami hiba történt... Kérjük, próbálja újra.",GmErr_Unauthorized:"Valami hiba történt... Kérjük, próbálja újra.",GmErr_NotFound:"Valami hiba történt... Kérjük, próbálja újra.",BadRequest_Duplicate_User:"Már létezik egy felhasználó ugyanazzal a felhasználónévvel.",BadRequest:"A kérés érvénytelen, kérjük, ellenőrizze az API-t.",Unauthorized:"A játékos számlaszáma, e-mail címe vagy jelszava helytelen",Forbidden_TooManyAttempts:"Túl sok érvénytelen bejelentkezési kísérletet tett, fiókját zárolták, kérjük, próbálja újra később.",Forbidden_UserAccount_NotActive:"Úgy tűnik, még nem erősítette meg e-mail címét. A regisztráció befejezéséhez és fiókjához való hozzáféréshez kérjük, ellenőrizze e-mail fiókját egy megerősítő üzenetért. Ha nem kapta meg az e-mailt, kérjük, ellenőrizze a spam mappát is. Ha segítségre van szüksége, kérhet segítséget az ügyfélszolgálaton keresztül.",GmErr_BadRequest_ExpiredToken:"A használt token lejárt.",GmErr_BadRequest_INVALID_CODE:"A használt kód érvénytelen.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"Túl sok kísérletet tett a kód érvényesítésére.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Túl sok kísérletet tett a kód generálására.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"Érvénytelen kód miatt zárolták.",GmErr_BadRequest_CODE_MISSING:"A kéréshez hiányzik a token.",GmErr_BadRequest_TOKEN_NOT_FOUND:"A kéréshez nem található token.",GmErr_BadRequest_USER_NOT_REGISTERED:"A felhasználó nincs regisztrálva. Kérjük, regisztráljon először.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"A használt telefonszám érvénytelen.",GmErr_BadRequest_INVALID_USER_ID:"A felhasználói azonosító érvénytelen.",GmErr_UnexpectedException:"Valami hiba történt... Kérjük, próbálja újra.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"A felhasználói dokumentum érvénytelen.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"A regisztrációt blokkolták a horvát Pénzügyminisztérium PersonaID ellenőrzési hibája miatt az alábbi okkal: A MoF válasza megerősíti, hogy a játékos kiskorú vagy nem horvát lakos.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"A regisztrációt blokkolták a horvát Pénzügyminisztérium PersonaID ellenőrzési hibája miatt az alábbi okkal: A MoF nem ad választ.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"A regisztrációt blokkolták a horvát Pénzügyminisztérium PersonaID ellenőrzési hibája miatt az alábbi okkal: Belső hiba."},hr:{GmErr_AMOUNT_INVALID:"Navedeni iznos je nevažeći.",GmErr_REGISTER_OVERAGE:"Registracija je premašila dopušteni limit.",GmErr_REGISTER_UNDERAGE:"Registracija je ispod dopuštenog limita.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"Neuspješno autentificiranje korisnika zbog previše pokušaja.",GmErr_USER_ACCOUNT_BLOCKED:"Korisnički račun je blokiran.",GmErr_USER_NOT_VERIFIED:"Korisnik nije verificiran.",GmErr_USER_NOT_FOUND:"Korisnik s navedenim podacima nije pronađen.",GmErr_USER_ID_INVALID:"Navedeni ID korisnika je nevažeći.",GmErr_USER_AUTH_FAILED:"Neuspješno autentificiranje korisnika.",GmErr_USER_DUPLICATED:"Korisnik već postoji u sustavu.",GmErr_USER_NOT_ACTIVATED:"Korisnički račun nije aktiviran.",GmErr_PASSWORD_CONTAINS_EMAIL:"Lozinka ne smije sadržavati e-mail adresu.",GmErr_PASSWORD_CONTAINS_USERNAME:"Lozinka ne smije sadržavati korisničko ime.",GmErr_PASSWORD_CONTAINS_SPACES:"Lozinka ne smije sadržavati razmake.",GmErr_USER_4TS_CHECK_EXISTS:"4TS provjera korisnika već postoji.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"Korisnik je isključen iz registracije.",GmErr_USER_NAV_EXCLUDED_LOGIN:"Korisnik je isključen iz prijave.",GmErr_USERNAME_REQUIRED:"Korisničko ime je obavezno.",GmErr_USER_EMAIL_NOT_VERIFIED:"E-mail adresa korisnika nije verificirana.",GmErr_EMAIL_ALREADY_EXISTS:"Korisnik s istom e-mail adresom već postoji",GmErr_EMAIL_REQUIRED:"E-mail adresa je obavezna.",GmErr_USERNAME_ALREADY_EXISTS:"Korisničko ime je već zauzeto.",GmErr_DUPLICATE_PERSONAL_ID:"Pronađen je duplicirani osobni ID.",GmErr_INVALID_USER_DOCUMENT:"Dokument korisnika je nevažeći.",GmErr_INVALID_CODE:"Navedeni kod je nevažeći.",GmErr_EXPIRED_TOKEN:"Token je istekao.",GmErr_ATTEMPTS_EXCEEDED:"Prekoračen je maksimalni broj pokušaja.",GmErr_BLOCK_USER_INCORRECT_CODE:"Korisnik je blokiran zbog pogrešnog koda.",GmErr_TOKEN_NOT_FOUND:"Token nije pronađen.",GmErr_INVALID_PHONE_NUMBER:"Navedeni broj telefona je nevažeći.",GmErr_CODE_MISSING:"Nedostaje potrebni kod.",GmErr_UNREGISTERED_USER:"Korisnik nije registriran.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Prekoračen je broj pokušaja generiranja koda.",GmErr_UNEXPECTED_EXCEPTION:"Došlo je do neočekivane iznimke.",GmErr_INVALID_USER_ID:"Navedeni ID korisnika je nevažeći.",GmErr_NOT_ALLOWED_EXCEPTION:"Ova radnja nije dopuštena.",GmErr_CAN_NOT_FIND_ROLE:"Navedena uloga nije pronađena.",GmErr_NO_SESSION_PROVIDED:"Nema pružene sesije.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"Nema aktivne sesije za ovog korisnika.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"Korisnik je već anonimiziran.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"Nema postavljene uloge za dodjeljivanje.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"Pružena sesija ne pripada korisniku.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"Pružena sesija ne postoji.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"Uloga je već dodijeljena korisniku.",GmErr_ASSIGN_USER_ROLE_FAILED:"Neuspješno dodjeljivanje uloge korisniku.",GmErr_BadRequest_1000:"Došlo je do problema s OIB-om",CountryRestricted:"Nažalost, prijavljujete se iz zemlje iz koje ne možemo prihvatiti igru. Nismo u mogućnosti obraditi registraciju iz navedenog razloga.",nextButton:"Sljedeće",backButton:"Nazad",doneButton:"Gotovo",generalError:"Korisnik s ovim podacima već postoji.",successMessage:"Register successful",GmErr_BadRequest_Duplicate_User:"Korisnik s ovim informacijama već postoji.",GmErr_BadRequest_PasswordContainsUsername:"Lozinka ne može biti ista kao korisničko ime.",GmErr_BadRequest_PasswordContainsEmail:"Lozinka ne može biti ista kao e-mail.",GmErr_BadRequest_Duplicate_PersonalId:"Već postoji registracija s podacima koje ste unijeli ili ste unijeli podatke u pogrešnom formatu.",GmErr_Forbidden_UserAccount_NavExcluded:"Korisnik je NAV isključen. Registracija je odbijena.",GmErr_BadRequest_ModelValidationFailed:"Nešto je pošlo po zlu... Molimo pokušajte ponovno.",GmErr_BadInternalConfigs:"Nešto je pošlo po zlu... Molimo pokušajte ponovno.",GmErr_Unauthorized:"Nešto je pošlo po zlu... Molimo pokušajte ponovno.",GmErr_NotFound:"Nešto je pošlo po zlu... Molimo pokušajte ponovno.",BadRequest_Duplicate_User:"Korisnik s istim korisničkim imenom već postoji.",BadRequest:"Zahtjev je nevažeći, molimo provjerite API.",Unauthorized:"Broj računa igrača, e-mail adresa ili lozinka su netočni",Forbidden_TooManyAttempts:"Napravili ste previše nevažećih pokušaja prijave, vaš račun je blokiran, molimo pokušajte ponovno kasnije.",Forbidden_UserAccount_NotActive:"Čini se da još niste potvrdili svoju e-mail adresu. Da biste dovršili registraciju i pristupili svom računu, provjerite svoju e-mail poštu za poruku s potvrdom. Ako niste primili e-mail, provjerite i mapu neželjene pošte. Ako trebate pomoć, možete zatražiti pomoć putem korisničke službe.",GmErr_BadRequest_ExpiredToken:"Token koji koristite je istekao.",GmErr_BadRequest_INVALID_CODE:"Kod koji koristite je nevažeći.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"Napravili ste previše pokušaja za validaciju koda.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Napravili ste previše pokušaja za generiranje koda.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"Blokirani ste zbog nevažećeg koda.",GmErr_BadRequest_CODE_MISSING:"Token nedostaje za vaš zahtjev.",GmErr_BadRequest_TOKEN_NOT_FOUND:"Token nije pronađen za vaš zahtjev.",GmErr_BadRequest_USER_NOT_REGISTERED:"Korisnik nije registriran. Molimo registrirajte se prvo.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"Broj telefona koji koristite je nevažeći.",GmErr_BadRequest_INVALID_USER_ID:"Korisnički ID je nevažeći.",GmErr_UnexpectedException:"Nešto je pošlo po zlu... Molimo pokušajte ponovno.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"Korisnički dokument je nevažeći.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"Registracija je blokirana zbog neuspjeha verifikacije PersonaID od strane Ministarstva financija Hrvatske s razlogom: Odgovor MoF-a potvrđuje da je igrač maloljetan ili nije stanovnik Hrvatske.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"Registracija je blokirana zbog neuspjeha verifikacije PersonaID od strane Ministarstva financija Hrvatske s razlogom: MoF ne daje odgovor.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"Registracija je blokirana zbog neuspjeha verifikacije PersonaID od strane Ministarstva financija Hrvatske s razlogom: Interna greška."},"pt-br":{GmErr_AMOUNT_INVALID:"O valor especificado é inválido.",GmErr_REGISTER_OVERAGE:"A inscrição excedeu o limite permitido.",GmErr_REGISTER_UNDERAGE:"A inscrição está abaixo do limite permitido.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"Falha na autenticação do usuário devido a muitas tentativas sem sucesso.",GmErr_USER_ACCOUNT_BLOCKED:"A conta do usuário está bloqueada.",GmErr_USER_NOT_VERIFIED:"O usuário não foi verificado.",GmErr_USER_NOT_FOUND:"Nenhum usuário encontrado com as informações fornecidas.",GmErr_USER_ID_INVALID:"O ID do usuário fornecido é inválido.",GmErr_USER_AUTH_FAILED:"Falha na autenticação do usuário.",GmErr_USER_DUPLICATED:"O usuário já existe no sistema.",GmErr_USER_NOT_ACTIVATED:"A conta do usuário não está ativada.",GmErr_PASSWORD_CONTAINS_EMAIL:"A senha não pode conter o endereço de e-mail.",GmErr_PASSWORD_CONTAINS_USERNAME:"A senha não pode conter o nome de usuário.",GmErr_PASSWORD_CONTAINS_SPACES:"A senha não pode conter espaços.",GmErr_USER_4TS_CHECK_EXISTS:"A verificação 4TS do usuário já existe.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"O usuário está excluído da inscrição.",GmErr_USER_NAV_EXCLUDED_LOGIN:"O usuário está excluído do login.",GmErr_USERNAME_REQUIRED:"O nome de usuário é obrigatório.",GmErr_USER_EMAIL_NOT_VERIFIED:"O e-mail do usuário não foi verificado.",GmErr_EMAIL_ALREADY_EXISTS:"Usuário com o mesmo e-mail já existe",GmErr_EMAIL_REQUIRED:"Um endereço de e-mail é obrigatório.",GmErr_USERNAME_ALREADY_EXISTS:"O nome de usuário já está em uso.",GmErr_DUPLICATE_PERSONAL_ID:"ID pessoal duplicado encontrado.",GmErr_INVALID_USER_DOCUMENT:"O documento do usuário é inválido.",GmErr_INVALID_CODE:"O código fornecido é inválido.",GmErr_EXPIRED_TOKEN:"O token expirou.",GmErr_ATTEMPTS_EXCEEDED:"O número máximo de tentativas foi excedido.",GmErr_BLOCK_USER_INCORRECT_CODE:"O usuário foi bloqueado devido a um código incorreto.",GmErr_TOKEN_NOT_FOUND:"O token não foi encontrado.",GmErr_INVALID_PHONE_NUMBER:"O número de telefone fornecido é inválido.",GmErr_CODE_MISSING:"O código necessário está faltando.",GmErr_UNREGISTERED_USER:"O usuário não está registrado.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"O número máximo de tentativas para gerar um código foi excedido.",GmErr_UNEXPECTED_EXCEPTION:"Ocorreu uma exceção inesperada.",GmErr_INVALID_USER_ID:"O ID do usuário fornecido é inválido.",GmErr_NOT_ALLOWED_EXCEPTION:"Esta ação não é permitida.",GmErr_CAN_NOT_FIND_ROLE:"Não foi possível encontrar a função especificada.",GmErr_NO_SESSION_PROVIDED:"Nenhuma sessão foi fornecida.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"Nenhuma sessão ativa encontrada para este usuário.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"O usuário já foi anonimizado.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"Nenhuma função foi configurada para ser atribuída.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"A sessão fornecida não pertence ao usuário.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"A sessão fornecida não existe.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"A função já foi atribuída ao usuário.",GmErr_ASSIGN_USER_ROLE_FAILED:"Falha ao atribuir a função ao usuário.",GmErr_BadRequest_1000:"Houve um problema com o número de identificação pessoal",CountryRestricted:"Infelizmente, você está tentando se registrar a partir de um país onde não podemos aceitar jogos. Não podemos processar seu registro por esse motivo.",nextButton:"Seguindo",backButton:"Voltar",doneButton:"Terminar",generalError:"Alguma coisa deu errado. Por favor tente outra vez",successMessage:"Registro bem-sucedido",GmErr_BadRequest_Duplicate_User:"Um usuário com essas informações já existe.",GmErr_BadRequest_PasswordContainsUsername:"A senha não pode ser igual ao nome de usuário.",GmErr_BadRequest_PasswordContainsEmail:"A senha não pode ser igual ao e-mail.",GmErr_BadRequest_Duplicate_PersonalId:"Já existe um registro com os dados que você inseriu ou você inseriu seus dados em um formato incorreto.",GmErr_Forbidden_UserAccount_NavExcluded:"Usuário está NAV Excluído. Registro foi negado.",GmErr_BadRequest_ModelValidationFailed:"Algo deu errado... Por favor, tente novamente.",GmErr_BadInternalConfigs:"Algo deu errado... Por favor, tente novamente.",GmErr_Unauthorized:"Algo deu errado... Por favor, tente novamente.",GmErr_NotFound:"Algo deu errado... Por favor, tente novamente.",BadRequest_Duplicate_User:"Usuário com o mesmo nome de usuário já existe.",BadRequest:"A solicitação é inválida, por favor, verifique a API.",Unauthorized:"O número da conta do jogador, endereço de e-mail ou senha estão incorretos",Forbidden_TooManyAttempts:"Você fez muitas tentativas de login inválidas, sua conta foi bloqueada, por favor, tente novamente mais tarde.",Forbidden_UserAccount_NotActive:"Parece que você ainda não confirmou seu endereço de e-mail. Para concluir seu registro e acessar sua conta, verifique sua caixa de entrada de e-mail para uma mensagem de confirmação. Se você não recebeu o e-mail, verifique também a pasta de spam. Se precisar de ajuda, você pode solicitar ajuda através do serviço de atendimento ao cliente.",GmErr_BadRequest_ExpiredToken:"O token que você está usando está expirado.",GmErr_BadRequest_INVALID_CODE:"O código que você está usando é inválido.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"Você fez muitas tentativas de validar seu código.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Você fez muitas tentativas de gerar seu código.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"Você foi bloqueado devido a um código inválido.",GmErr_BadRequest_CODE_MISSING:"O token está faltando para sua solicitação.",GmErr_BadRequest_TOKEN_NOT_FOUND:"O token não foi encontrado para sua solicitação.",GmErr_BadRequest_USER_NOT_REGISTERED:"O usuário não está registrado. Por favor, registre-se primeiro.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"O número de telefone que você está usando é inválido.",GmErr_BadRequest_INVALID_USER_ID:"O ID do usuário é inválido.",GmErr_UnexpectedException:"Algo deu errado... Por favor, tente novamente.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"O documento do usuário é inválido.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"O registro foi bloqueado devido à falha de verificação do PersonaID pelo Ministério das Finanças da Croácia com o motivo: A resposta do MoF confirma que o jogador é menor de idade ou não é residente da Croácia.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"O registro foi bloqueado devido à falha de verificação do PersonaID pelo Ministério das Finanças da Croácia com o motivo: O MoF não retorna uma resposta.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"O registro foi bloqueado devido à falha de verificação do PersonaID pelo Ministério das Finanças da Croácia com o motivo: Erro interno."},"es-mx":{GmErr_AMOUNT_INVALID:"El monto especificado es inválido.",GmErr_REGISTER_OVERAGE:"La inscripción ha excedido el límite permitido.",GmErr_REGISTER_UNDERAGE:"La inscripción está por debajo del límite permitido.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"Autenticación de usuario fallida debido a demasiados intentos fallidos.",GmErr_USER_ACCOUNT_BLOCKED:"La cuenta del usuario está bloqueada.",GmErr_USER_NOT_VERIFIED:"El usuario no ha sido verificado.",GmErr_USER_NOT_FOUND:"No se encontró ningún usuario con la información proporcionada.",GmErr_USER_ID_INVALID:"El ID de usuario proporcionado es inválido.",GmErr_USER_AUTH_FAILED:"La autenticación del usuario falló.",GmErr_USER_DUPLICATED:"El usuario ya existe en el sistema.",GmErr_USER_NOT_ACTIVATED:"La cuenta del usuario no está activada.",GmErr_PASSWORD_CONTAINS_EMAIL:"La contraseña no puede contener la dirección de correo electrónico.",GmErr_PASSWORD_CONTAINS_USERNAME:"La contraseña no puede contener el nombre de usuario.",GmErr_PASSWORD_CONTAINS_SPACES:"La contraseña no puede contener espacios.",GmErr_USER_4TS_CHECK_EXISTS:"La verificación 4TS del usuario ya existe.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"El usuario está excluido del registro.",GmErr_USER_NAV_EXCLUDED_LOGIN:"El usuario está excluido del inicio de sesión.",GmErr_USERNAME_REQUIRED:"Se requiere un nombre de usuario.",GmErr_USER_EMAIL_NOT_VERIFIED:"La dirección de correo electrónico del usuario no ha sido verificada.",GmErr_EMAIL_ALREADY_EXISTS:"Ya existe un usuario con el mismo correo electrónico",GmErr_EMAIL_REQUIRED:"Se requiere una dirección de correo electrónico.",GmErr_USERNAME_ALREADY_EXISTS:"El nombre de usuario ya está en uso.",GmErr_DUPLICATE_PERSONAL_ID:"Se encontró un ID personal duplicado.",GmErr_INVALID_USER_DOCUMENT:"El documento del usuario es inválido.",GmErr_INVALID_CODE:"El código proporcionado es inválido.",GmErr_EXPIRED_TOKEN:"El token ha expirado.",GmErr_ATTEMPTS_EXCEEDED:"Se ha excedido el número máximo de intentos.",GmErr_BLOCK_USER_INCORRECT_CODE:"El usuario ha sido bloqueado debido a un código incorrecto.",GmErr_TOKEN_NOT_FOUND:"No se encontró el token.",GmErr_INVALID_PHONE_NUMBER:"El número de teléfono proporcionado es inválido.",GmErr_CODE_MISSING:"Falta el código necesario.",GmErr_UNREGISTERED_USER:"El usuario no está registrado.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Se ha excedido el número máximo de intentos para generar un código.",GmErr_UNEXPECTED_EXCEPTION:"Ocurrió una excepción inesperada.",GmErr_INVALID_USER_ID:"El ID de usuario proporcionado es inválido.",GmErr_NOT_ALLOWED_EXCEPTION:"Esta acción no está permitida.",GmErr_CAN_NOT_FIND_ROLE:"No se pudo encontrar el rol especificado.",GmErr_NO_SESSION_PROVIDED:"No se proporcionó ninguna sesión.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"No se encontró ninguna sesión activa para este usuario.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"El usuario ya ha sido anonimizado.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"No se ha configurado ningún rol para ser asignado.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"La sesión proporcionada no pertenece al usuario.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"La sesión proporcionada no existe.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"El rol ya ha sido asignado al usuario.",GmErr_ASSIGN_USER_ROLE_FAILED:"Falló la asignación del rol al usuario.",GmErr_BadRequest_1000:"Hubo un problema con el número de identificación personal",CountryRestricted:"Desafortunadamente, estás intentando registrarte desde un país donde no podemos aceptar juegos. No podemos procesar tu registro por esta razón.",nextButton:"Siguiente",backButton:"Atrás",doneButton:"Terminar",generalError:"Algo salió mal... Por favor intente de nuevo",successMessage:"Registro exitoso",GmErr_BadRequest_Duplicate_User:"Ya existe un usuario con esta información.",GmErr_BadRequest_PasswordContainsUsername:"La contraseña no puede ser la misma que el nombre de usuario.",GmErr_BadRequest_PasswordContainsEmail:"La contraseña no puede ser la misma que el correo electrónico.",GmErr_BadRequest_Duplicate_PersonalId:"Ya existe un registro con los datos que ingresaste o ingresaste tus datos en un formato incorrecto.",GmErr_Forbidden_UserAccount_NavExcluded:"El usuario está excluido de NAV. El registro fue denegado.",GmErr_BadRequest_ModelValidationFailed:"Algo salió mal... Por favor, inténtalo de nuevo.",GmErr_BadInternalConfigs:"Algo salió mal... Por favor, inténtalo de nuevo.",GmErr_Unauthorized:"Algo salió mal... Por favor, inténtalo de nuevo.",GmErr_NotFound:"Algo salió mal... Por favor, inténtalo de nuevo.",BadRequest_Duplicate_User:"Ya existe un usuario con el mismo nombre de usuario.",BadRequest:"La solicitud es inválida, por favor verifica la API.",Unauthorized:"El número de cuenta del jugador, la dirección de correo electrónico o la contraseña son incorrectos",Forbidden_TooManyAttempts:"Has realizado demasiados intentos de inicio de sesión inválidos, tu cuenta ha sido bloqueada, por favor inténtalo de nuevo más tarde.",Forbidden_UserAccount_NotActive:"Parece que aún no has confirmado tu dirección de correo electrónico. Para completar tu registro y acceder a tu cuenta, verifica tu bandeja de entrada de correo electrónico para un mensaje de confirmación. Si no has recibido el correo electrónico, verifica también tu carpeta de spam. Si necesitas ayuda, puedes solicitar ayuda a través del servicio de atención al cliente.",GmErr_BadRequest_ExpiredToken:"El token que estás utilizando ha expirado.",GmErr_BadRequest_INVALID_CODE:"El código que estás utilizando es inválido.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"Has realizado demasiados intentos de validar tu código.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Has realizado demasiados intentos de generar tu código.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"Has sido bloqueado debido a un código inválido.",GmErr_BadRequest_CODE_MISSING:"Falta el token para tu solicitud.",GmErr_BadRequest_TOKEN_NOT_FOUND:"No se encontró el token para tu solicitud.",GmErr_BadRequest_USER_NOT_REGISTERED:"El usuario no está registrado. Por favor, regístrate primero.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"El número de teléfono que estás utilizando es inválido.",GmErr_BadRequest_INVALID_USER_ID:"El ID de usuario es inválido.",GmErr_UnexpectedException:"Algo salió mal... Por favor, inténtalo de nuevo.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"El documento del usuario es inválido.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"El registro fue bloqueado debido a la falla de verificación de PersonaID por parte del Ministerio de Finanzas de Croacia con la razón: La respuesta del MoF confirma que el jugador es menor de edad o no es residente croata.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"El registro fue bloqueado debido a la falla de verificación de PersonaID por parte del Ministerio de Finanzas de Croacia con la razón: El MoF no devuelve una respuesta.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"El registro fue bloqueado debido a la falla de verificación de PersonaID por parte del Ministerio de Finanzas de Croacia con la razón: Error interno."},tr:{GmErr_AMOUNT_INVALID:"Belirtilen miktar geçersiz.",GmErr_REGISTER_OVERAGE:"Kayıt izin verilen sınırı aştı.",GmErr_REGISTER_UNDERAGE:"Kayıt izin verilen sınırın altında.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"Çok fazla başarısız deneme nedeniyle kullanıcı kimlik doğrulaması başarısız oldu.",GmErr_USER_ACCOUNT_BLOCKED:"Kullanıcı hesabı engellendi.",GmErr_USER_NOT_VERIFIED:"Kullanıcı doğrulanmadı.",GmErr_USER_NOT_FOUND:"Sağlanan bilgilerle kullanıcı bulunamadı.",GmErr_USER_ID_INVALID:"Sağlanan kullanıcı kimliği geçersiz.",GmErr_USER_AUTH_FAILED:"Kullanıcı kimlik doğrulaması başarısız oldu.",GmErr_USER_DUPLICATED:"Kullanıcı sistemde zaten mevcut.",GmErr_USER_NOT_ACTIVATED:"Kullanıcı hesabı etkinleştirilmedi.",GmErr_PASSWORD_CONTAINS_EMAIL:"Parola e-posta adresini içeremez.",GmErr_PASSWORD_CONTAINS_USERNAME:"Parola kullanıcı adını içeremez.",GmErr_PASSWORD_CONTAINS_SPACES:"Parola boşluk içeremez.",GmErr_USER_4TS_CHECK_EXISTS:"Kullanıcı 4TS kontrolü zaten mevcut.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"Kullanıcı kayıttan hariç tutuldu.",GmErr_USER_NAV_EXCLUDED_LOGIN:"Kullanıcı girişten hariç tutuldu.",GmErr_USERNAME_REQUIRED:"Bir kullanıcı adı gereklidir.",GmErr_USER_EMAIL_NOT_VERIFIED:"Kullanıcının e-posta adresi doğrulanmadı.",GmErr_EMAIL_ALREADY_EXISTS:"Aynı e-posta ile kullanıcı zaten mevcut.",GmErr_EMAIL_REQUIRED:"Bir e-posta adresi gereklidir.",GmErr_USERNAME_ALREADY_EXISTS:"Kullanıcı adı zaten alınmış.",GmErr_DUPLICATE_PERSONAL_ID:"Çift kişisel kimlik bulundu.",GmErr_INVALID_USER_DOCUMENT:"Kullanıcı belgesi geçersiz.",GmErr_INVALID_CODE:"Sağlanan kod geçersiz.",GmErr_EXPIRED_TOKEN:"Token süresi dolmuş.",GmErr_ATTEMPTS_EXCEEDED:"Maksimum deneme sayısı aşıldı.",GmErr_BLOCK_USER_INCORRECT_CODE:"Yanlış kod nedeniyle kullanıcı engellendi.",GmErr_TOKEN_NOT_FOUND:"Token bulunamadı.",GmErr_INVALID_PHONE_NUMBER:"Sağlanan telefon numarası geçersiz.",GmErr_CODE_MISSING:"Kod eksik.",GmErr_UNREGISTERED_USER:"Kullanıcı kayıtlı değil.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Kod oluşturma denemeleri maksimuma ulaştı.",GmErr_UNEXPECTED_EXCEPTION:"Beklenmeyen bir istisna oluştu.",GmErr_INVALID_USER_ID:"Sağlanan kullanıcı kimliği geçersiz.",GmErr_NOT_ALLOWED_EXCEPTION:"Bu işlem izin verilmiyor.",GmErr_CAN_NOT_FIND_ROLE:"Belirtilen rol bulunamıyor.",GmErr_NO_SESSION_PROVIDED:"Oturum sağlanmadı.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"Bu kullanıcı için aktif oturum bulunamadı.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"Kullanıcı zaten anonimleştirilmiş.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"Atanacak bir rol ayarlanmadı.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"Sağlanan oturum kullanıcıya ait değil.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"Sağlanan oturum mevcut değil.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"Rol zaten kullanıcıya atanmış.",GmErr_ASSIGN_USER_ROLE_FAILED:"Kullanıcıya rol atama başarısız oldu.",GmErr_BadRequest_1000:"Kişisel kimlik numarası ile ilgili bir sorun var.",CountryRestricted:"Maalesef, oyun oynayamayacağımız bir ülkeden kayıt yapmaya çalışıyorsunuz. Bu nedenle kaydınızı işleyemiyoruz.",nextButton:"İleri",backButton:"Geri",doneButton:"Tamam",generalError:"Bir şeyler ters gitti... Lütfen tekrar deneyin.",successMessage:"Kayıt başarılı",GmErr_BadRequest_Duplicate_User:"Bu bilgilerle bir kullanıcı zaten mevcut.",GmErr_BadRequest_PasswordContainsUsername:"Parola kullanıcı adı ile aynı olamaz.",GmErr_BadRequest_PasswordContainsEmail:"Parola e-posta ile aynı olamaz.",GmErr_BadRequest_Duplicate_PersonalId:"Girdiğiniz verilerle zaten bir kayıt var veya verilerinizi yanlış formatta girdiniz.",GmErr_Forbidden_UserAccount_NavExcluded:"Kullanıcı NAV hariç tutuldu. Kayıt reddedildi.",GmErr_BadRequest_ModelValidationFailed:"Bir şeyler ters gitti... Lütfen tekrar deneyin.",GmErr_BadInternalConfigs:"Bir şeyler ters gitti... Lütfen tekrar deneyin.",GmErr_Unauthorized:"Bir şeyler ters gitti... Lütfen tekrar deneyin.",GmErr_NotFound:"Bir şeyler ters gitti... Lütfen tekrar deneyin.",BadRequest_Duplicate_User:"Aynı kullanıcı adı ile kullanıcı zaten mevcut.",BadRequest:"İstek geçersiz, lütfen API'yi kontrol edin.",Unauthorized:"Oyuncu hesap numarası, e-posta adresi veya parola yanlış",Forbidden_TooManyAttempts:"Çok fazla geçersiz giriş denemesi yaptınız, hesabınız bloke edildi, lütfen daha sonra tekrar deneyin.",Forbidden_UserAccount_NotActive:"E-posta adresinizi henüz doğrulamadığınız görünüyor. Kaydınızı tamamlamak ve hesabınıza erişmek için e-posta gelen kutunuzu bir onay mesajı için kontrol edin. E-postayı almadıysanız, spam klasörünüzü de kontrol edin. Yardıma ihtiyacınız varsa, müşteri hizmetleri aracılığıyla yardım isteyebilirsiniz.",GmErr_BadRequest_ExpiredToken:"Kullandığınız token süresi dolmuş.",GmErr_BadRequest_INVALID_CODE:"Kullandığınız kod geçersiz.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"Kodunuzu doğrulamak için çok fazla deneme yaptınız.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Kodunuzu oluşturmak için çok fazla deneme yaptınız.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"Geçersiz kod nedeniyle engellendiniz.",GmErr_BadRequest_CODE_MISSING:"İsteğiniz için token eksik.",GmErr_BadRequest_TOKEN_NOT_FOUND:"İsteğiniz için token bulunamadı.",GmErr_BadRequest_USER_NOT_REGISTERED:"Kullanıcı kayıtlı değil. Lütfen önce kayıt olun.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"Kullandığınız telefon numarası geçersiz.",GmErr_BadRequest_INVALID_USER_ID:"Kullanıcı kimliği geçersiz.",GmErr_UnexpectedException:"Bir şeyler ters gitti... Lütfen tekrar deneyin.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"Kullanıcı belgesi geçersiz.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"Kayıt, Hırvatistan Maliye Bakanlığı PersonaID doğrulama hatası nedeniyle engellendi: MoF yanıtı, oyuncunun reşit olmadığını veya Hırvatistan sakini olmadığını doğruluyor.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"Kayıt, Hırvatistan Maliye Bakanlığı PersonaID doğrulama hatası nedeniyle engellendi: MoF yanıt vermiyor.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"Kayıt, Hırvatistan Maliye Bakanlığı PersonaID doğrulama hatası nedeniyle engellendi: İç hata."},"en-us":{GmErr_AMOUNT_INVALID:"The specified amount is invalid.",GmErr_REGISTER_OVERAGE:"The registration has exceeded the allowable limit.",GmErr_REGISTER_UNDERAGE:"The registration is under the allowable limit.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"User authentication failed due to too many unsuccessful attempts.",GmErr_USER_ACCOUNT_BLOCKED:"The user account is blocked.",GmErr_USER_NOT_VERIFIED:"The user has not been verified.",GmErr_USER_NOT_FOUND:"No user found with the provided information.",GmErr_USER_ID_INVALID:"The user ID provided is invalid.",GmErr_USER_AUTH_FAILED:"User authentication failed.",GmErr_USER_DUPLICATED:"The user already exists in the system.",GmErr_USER_NOT_ACTIVATED:"The user account has not been activated.",GmErr_PASSWORD_CONTAINS_EMAIL:"The password cannot contain the email address.",GmErr_PASSWORD_CONTAINS_USERNAME:"The password cannot contain the username.",GmErr_PASSWORD_CONTAINS_SPACES:"The password cannot contain spaces.",GmErr_USER_4TS_CHECK_EXISTS:"The user 4TS check already exists.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"The user is excluded from registration.",GmErr_USER_NAV_EXCLUDED_LOGIN:"The user is excluded from login.",GmErr_USERNAME_REQUIRED:"A username is required.",GmErr_USER_EMAIL_NOT_VERIFIED:"The user's email address has not been verified.",GmErr_EMAIL_ALREADY_EXISTS:"User with same email already exists",GmErr_EMAIL_REQUIRED:"An email address is required.",GmErr_USERNAME_ALREADY_EXISTS:"The username is already taken.",GmErr_DUPLICATE_PERSONAL_ID:"Duplicate personal ID found.",GmErr_INVALID_USER_DOCUMENT:"The user document is invalid.",GmErr_INVALID_CODE:"The code provided is invalid.",GmErr_EXPIRED_TOKEN:"The token has expired.",GmErr_ATTEMPTS_EXCEEDED:"The maximum number of attempts has been exceeded.",GmErr_BLOCK_USER_INCORRECT_CODE:"The user has been blocked due to an incorrect code.",GmErr_TOKEN_NOT_FOUND:"The token was not found.",GmErr_INVALID_PHONE_NUMBER:"The phone number provided is invalid.",GmErr_CODE_MISSING:"The code is missing.",GmErr_UNREGISTERED_USER:"The user is not registered.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Maximum attempts to generate a code have been exceeded.",GmErr_UNEXPECTED_EXCEPTION:"An unexpected exception occurred.",GmErr_INVALID_USER_ID:"The user ID provided is invalid.",GmErr_NOT_ALLOWED_EXCEPTION:"This action is not allowed.",GmErr_CAN_NOT_FIND_ROLE:"Unable to find the specified role.",GmErr_NO_SESSION_PROVIDED:"No session was provided.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"No active session found for this user.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"The user has already been anonymized.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"No role has been set up to be assigned.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"The provided session does not belong to the user.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"The provided session does not exist.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"The role has already been assigned to the user.",GmErr_ASSIGN_USER_ROLE_FAILED:"Failed to assign a role to the user.",GmErr_BadRequest_1000:"There was a problem with the personal identification number",CountryRestricted:"Unfortunately, you are attempting to register from a country where we cannot accept gameplay. We are unable to process your registration for this reason.",nextButton:"Next",backButton:"Back",doneButton:"Done",generalError:"Something went wrong... Please try again.",successMessage:"Register successful",GmErr_BadRequest_Duplicate_User:"A user with this information already exists.",GmErr_BadRequest_PasswordContainsUsername:"The password cannot be the same as the username.",GmErr_BadRequest_PasswordContainsEmail:"The password cannot be the same as the email.",GmErr_BadRequest_Duplicate_PersonalId:"There is already a registration with the data you entered or you entered your data in an incorrect format.",GmErr_Forbidden_UserAccount_NavExcluded:"User is NAV Excluded. Registration was denied.",GmErr_BadRequest_ModelValidationFailed:"Something went wrong... Please try again.",GmErr_BadInternalConfigs:"Something went wrong... Please try again.",GmErr_Unauthorized:"Something went wrong... Please try again.",GmErr_NotFound:"Something went wrong... Please try again.",BadRequest_Duplicate_User:"User with same username already exists.",BadRequest:"The request is invalid, please check the API.",Unauthorized:"The player account number, e-mail address or password is incorrect",Forbidden_TooManyAttempts:"You have made too many invalid login attempts, your account has been blocked, please try again later.",Forbidden_UserAccount_NotActive:"It appears that you have not yet confirmed your email address. To complete your registration and access your account, please check your email inbox for a confirmation message. If you haven't received the email, please also check your spam folder. If you need assistance, you can request help via the customer service.",GmErr_BadRequest_ExpiredToken:"The token you are using is expired.",GmErr_BadRequest_INVALID_CODE:"The code you are using is invalid.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"You have made too many attempts to validate your code.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"You have made too many attempts to generate your code.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"You have been blocked due to an invalid code.",GmErr_BadRequest_CODE_MISSING:"The token is missing for your request.",GmErr_BadRequest_TOKEN_NOT_FOUND:"The token is not found for your request.",GmErr_BadRequest_USER_NOT_REGISTERED:"The user is not registered. Please register first.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"The phone number you are using is invalid.",GmErr_BadRequest_INVALID_USER_ID:"The user ID is invalid.",GmErr_UnexpectedException:"Something went wrong... Please try again.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"The user document is invalid.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"Registration was blocked due to the Croatian Ministry of Finance PersonaID verification failure with reason: MoF response confirms player IS underaged or IS NOT a Croatian resident.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"Registration was blocked due to the Croatian Ministry of Finance PersonaID verification failure with reason: MoF fails to return a response.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"Registration was blocked due to the Croatian Ministry of Finance PersonaID verification failure with reason: Internal error."},ro:{GmErr_AMOUNT_INVALID:"Suma specificată este invalidă.",GmErr_REGISTER_OVERAGE:"Înregistrarea a depășit limita permisă.",GmErr_REGISTER_UNDERAGE:"Înregistrarea este sub limita permisă.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"Autentificarea utilizatorului a eșuat din cauza prea multor încercări nereușite.",GmErr_USER_ACCOUNT_BLOCKED:"Contul utilizatorului este blocat.",GmErr_USER_NOT_VERIFIED:"Utilizatorul nu a fost verificat.",GmErr_USER_NOT_FOUND:"Nu s-a găsit niciun utilizator cu informațiile furnizate.",GmErr_USER_ID_INVALID:"ID-ul utilizatorului furnizat este invalid.",GmErr_USER_AUTH_FAILED:"Autentificarea utilizatorului a eșuat.",GmErr_USER_DUPLICATED:"Utilizatorul există deja în sistem.",GmErr_USER_NOT_ACTIVATED:"Contul utilizatorului nu a fost activat.",GmErr_PASSWORD_CONTAINS_EMAIL:"Parola nu poate conține adresa de email.",GmErr_PASSWORD_CONTAINS_USERNAME:"Parola nu poate conține numele de utilizator.",GmErr_PASSWORD_CONTAINS_SPACES:"Parola nu poate conține spații.",GmErr_USER_4TS_CHECK_EXISTS:"Verificarea utilizatorului 4TS există deja.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"Utilizatorul este exclus de la înregistrare.",GmErr_USER_NAV_EXCLUDED_LOGIN:"Utilizatorul este exclus de la autentificare.",GmErr_USERNAME_REQUIRED:"Este necesar un nume de utilizator.",GmErr_USER_EMAIL_NOT_VERIFIED:"Adresa de email a utilizatorului nu a fost verificată.",GmErr_EMAIL_ALREADY_EXISTS:"Un utilizator cu același email există deja.",GmErr_EMAIL_REQUIRED:"Este necesară o adresă de email.",GmErr_USERNAME_ALREADY_EXISTS:"Numele de utilizator este deja utilizat.",GmErr_DUPLICATE_PERSONAL_ID:"S-a găsit un ID personal duplicat.",GmErr_INVALID_USER_DOCUMENT:"Documentul utilizatorului este invalid.",GmErr_INVALID_CODE:"Codul furnizat este invalid.",GmErr_EXPIRED_TOKEN:"Token-ul a expirat.",GmErr_ATTEMPTS_EXCEEDED:"Numărul maxim de încercări a fost depășit.",GmErr_BLOCK_USER_INCORRECT_CODE:"Utilizatorul a fost blocat din cauza unui cod incorect.",GmErr_TOKEN_NOT_FOUND:"Token-ul nu a fost găsit.",GmErr_INVALID_PHONE_NUMBER:"Numărul de telefon furnizat este invalid.",GmErr_CODE_MISSING:"Lipsește codul.",GmErr_UNREGISTERED_USER:"Utilizatorul nu este înregistrat.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"S-a depășit numărul maxim de încercări pentru generarea unui cod.",GmErr_UNEXPECTED_EXCEPTION:"A apărut o eroare neașteptată.",GmErr_INVALID_USER_ID:"ID-ul utilizatorului furnizat este invalid.",GmErr_NOT_ALLOWED_EXCEPTION:"Acțiunea nu este permisă.",GmErr_CAN_NOT_FIND_ROLE:"Nu s-a găsit rolul specificat.",GmErr_NO_SESSION_PROVIDED:"Nu a fost furnizată nicio sesiune.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"Nu a fost găsită nicio sesiune activă pentru acest utilizator.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"Utilizatorul a fost deja anonimizat.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"Nu a fost configurat niciun rol de atribuit.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"Sesiunea furnizată nu aparține utilizatorului.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"Sesiunea furnizată nu există.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"Rolul a fost deja atribuit utilizatorului.",GmErr_ASSIGN_USER_ROLE_FAILED:"Atribuirea rolului utilizatorului a eșuat.",GmErr_BadRequest_1000:"A apărut o problemă cu numărul de identificare personal.",CountryRestricted:"Din păcate, încercați să vă înregistrați dintr-o țară unde nu putem accepta jocuri. Din acest motiv, nu vă putem procesa înregistrarea.",nextButton:"Următorul",backButton:"Înapoi",doneButton:"Finalizat",generalError:"Ceva a mers prost... Vă rugăm să încercați din nou.",successMessage:"Înregistrare reușită",GmErr_BadRequest_Duplicate_User:"Un utilizator cu aceste informații există deja.",GmErr_BadRequest_PasswordContainsUsername:"Parola nu poate fi aceeași cu numele de utilizator.",GmErr_BadRequest_PasswordContainsEmail:"Parola nu poate fi aceeași cu e-mailul.",GmErr_BadRequest_Duplicate_PersonalId:"Există deja o înregistrare cu datele pe care le-ați introdus sau ați introdus datele într-un format incorect.",GmErr_Forbidden_UserAccount_NavExcluded:"Utilizatorul este exclus NAV. Înregistrarea a fost refuzată.",GmErr_BadRequest_ModelValidationFailed:"Ceva a mers prost... Vă rugăm să încercați din nou.",GmErr_BadInternalConfigs:"Ceva a mers prost... Vă rugăm să încercați din nou.",GmErr_Unauthorized:"Ceva a mers prost... Vă rugăm să încercați din nou.",GmErr_NotFound:"Ceva a mers prost... Vă rugăm să încercați din nou.",BadRequest_Duplicate_User:"Există deja un utilizator cu același nume de utilizator.",BadRequest:"Cererea este invalidă, vă rugăm să verificați API-ul.",Unauthorized:"Numărul contului jucătorului, adresa de e-mail sau parola sunt incorecte",Forbidden_TooManyAttempts:"Ați făcut prea multe încercări de conectare invalide, contul dvs. a fost blocat, vă rugăm să încercați din nou mai târziu.",Forbidden_UserAccount_NotActive:"Se pare că nu v-ați confirmat încă adresa de e-mail. Pentru a finaliza înregistrarea și a accesa contul dvs., verificați căsuța de e-mail pentru un mesaj de confirmare. Dacă nu ați primit e-mailul, verificați și folderul de spam. Dacă aveți nevoie de asistență, puteți solicita ajutor prin serviciul de asistență pentru clienți.",GmErr_BadRequest_ExpiredToken:"Tokenul pe care îl utilizați este expirat.",GmErr_BadRequest_INVALID_CODE:"Codul pe care îl utilizați este invalid.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"Ați făcut prea multe încercări de validare a codului.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Ați făcut prea multe încercări de generare a codului.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"Ați fost blocat din cauza unui cod invalid.",GmErr_BadRequest_CODE_MISSING:"Tokenul lipsește pentru solicitarea dvs.",GmErr_BadRequest_TOKEN_NOT_FOUND:"Tokenul nu a fost găsit pentru solicitarea dvs.",GmErr_BadRequest_USER_NOT_REGISTERED:"Utilizatorul nu este înregistrat. Vă rugăm să vă înregistrați mai întâi.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"Numărul de telefon pe care îl utilizați este invalid.",GmErr_BadRequest_INVALID_USER_ID:"ID-ul utilizatorului este invalid.",GmErr_UnexpectedException:"Ceva a mers prost... Vă rugăm să încercați din nou.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"Documentul utilizatorului este invalid.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"Înregistrarea a fost blocată din cauza eșecului verificării PersonaID de către Ministerul Finanțelor din Croația cu motivul: Răspunsul MoF confirmă că jucătorul este minor sau nu este rezident croat.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"Înregistrarea a fost blocată din cauza eșecului verificării PersonaID de către Ministerul Finanțelor din Croația cu motivul: MoF nu returnează un răspuns.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"Înregistrarea a fost blocată din cauza eșecului verificării PersonaID de către Ministerul Finanțelor din Croația cu motivul: Eroare internă."},fr:{GmErr_AMOUNT_INVALID:"Le montant spécifié est invalide.",GmErr_REGISTER_OVERAGE:"L'inscription a dépassé la limite autorisée.",GmErr_REGISTER_UNDERAGE:"L'inscription est en dessous de la limite autorisée.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"Échec de l'authentification utilisateur en raison de trop nombreuses tentatives infructueuses.",GmErr_USER_ACCOUNT_BLOCKED:"Le compte utilisateur est bloqué.",GmErr_USER_NOT_VERIFIED:"L'utilisateur n'a pas été vérifié.",GmErr_USER_NOT_FOUND:"Aucun utilisateur trouvé avec les informations fournies.",GmErr_USER_ID_INVALID:"L'identifiant utilisateur fourni est invalide.",GmErr_USER_AUTH_FAILED:"Échec de l'authentification utilisateur.",GmErr_USER_DUPLICATED:"L'utilisateur existe déjà dans le système.",GmErr_USER_NOT_ACTIVATED:"Le compte utilisateur n'a pas été activé.",GmErr_PASSWORD_CONTAINS_EMAIL:"Le mot de passe ne peut pas contenir l'adresse e-mail.",GmErr_PASSWORD_CONTAINS_USERNAME:"Le mot de passe ne peut pas contenir le nom d'utilisateur.",GmErr_PASSWORD_CONTAINS_SPACES:"Le mot de passe ne peut pas contenir d'espaces.",GmErr_USER_4TS_CHECK_EXISTS:"La vérification utilisateur 4TS existe déjà.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"L'utilisateur est exclu de l'enregistrement.",GmErr_USER_NAV_EXCLUDED_LOGIN:"L'utilisateur est exclu de la connexion.",GmErr_USERNAME_REQUIRED:"Un nom d'utilisateur est requis.",GmErr_USER_EMAIL_NOT_VERIFIED:"L'adresse e-mail de l'utilisateur n'a pas été vérifiée.",GmErr_EMAIL_ALREADY_EXISTS:"Un utilisateur avec la même adresse e-mail existe déjà.",GmErr_EMAIL_REQUIRED:"Une adresse e-mail est requise.",GmErr_USERNAME_ALREADY_EXISTS:"Le nom d'utilisateur est déjà pris.",GmErr_DUPLICATE_PERSONAL_ID:"Un identifiant personnel dupliqué a été trouvé.",GmErr_INVALID_USER_DOCUMENT:"Le document utilisateur est invalide.",GmErr_INVALID_CODE:"Le code fourni est invalide.",GmErr_EXPIRED_TOKEN:"Le jeton a expiré.",GmErr_ATTEMPTS_EXCEEDED:"Le nombre maximum de tentatives a été dépassé.",GmErr_BLOCK_USER_INCORRECT_CODE:"L'utilisateur a été bloqué en raison d'un code incorrect.",GmErr_TOKEN_NOT_FOUND:"Le jeton n'a pas été trouvé.",GmErr_INVALID_PHONE_NUMBER:"Le numéro de téléphone fourni est invalide.",GmErr_CODE_MISSING:"Le code est manquant.",GmErr_UNREGISTERED_USER:"L'utilisateur n'est pas enregistré.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Le nombre maximum de tentatives pour générer un code a été dépassé.",GmErr_UNEXPECTED_EXCEPTION:"Une exception inattendue s'est produite.",GmErr_INVALID_USER_ID:"L'identifiant utilisateur fourni est invalide.",GmErr_NOT_ALLOWED_EXCEPTION:"Cette action n'est pas autorisée.",GmErr_CAN_NOT_FIND_ROLE:"Impossible de trouver le rôle spécifié.",GmErr_NO_SESSION_PROVIDED:"Aucune session n'a été fournie.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"Aucune session active n'a été trouvée pour cet utilisateur.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"L'utilisateur a déjà été anonymisé.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"Aucun rôle n'a été configuré pour être attribué.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"La session fournie n'appartient pas à l'utilisateur.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"La session fournie n'existe pas.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"Le rôle a déjà été attribué à l'utilisateur.",GmErr_ASSIGN_USER_ROLE_FAILED:"Échec de l'attribution d'un rôle à l'utilisateur.",GmErr_BadRequest_1000:"Un problème est survenu avec le numéro d'identification personnel.",CountryRestricted:"Malheureusement, vous essayez de vous inscrire depuis un pays où nous ne pouvons pas accepter les jeux. Nous ne pouvons pas traiter votre inscription pour cette raison.",nextButton:"Suivant",backButton:"Retour",GmErr_BadRequest_Duplicate_User:"Un utilisateur avec ces informations existe déjà.",GmErr_BadRequest_PasswordContainsUsername:"Le mot de passe ne peut pas être le même que le nom d'utilisateur.",GmErr_BadRequest_PasswordContainsEmail:"Le mot de passe ne peut pas être le même que l'e-mail.",GmErr_BadRequest_Duplicate_PersonalId:"Il existe déjà une inscription avec les données que vous avez saisies ou vous avez saisi vos données dans un format incorrect.",GmErr_Forbidden_UserAccount_NavExcluded:"L'utilisateur est exclu NAV. L'inscription a été refusée.",GmErr_BadRequest_ModelValidationFailed:"Quelque chose a mal tourné... Veuillez réessayer.",GmErr_BadInternalConfigs:"Quelque chose a mal tourné... Veuillez réessayer.",GmErr_Unauthorized:"Quelque chose a mal tourné... Veuillez réessayer.",GmErr_NotFound:"Quelque chose a mal tourné... Veuillez réessayer.",BadRequest_Duplicate_User:"Un utilisateur avec le même nom d'utilisateur existe déjà.",BadRequest:"La demande est invalide, veuillez vérifier l'API.",Unauthorized:"Le numéro de compte du joueur, l'adresse e-mail ou le mot de passe est incorrect",Forbidden_TooManyAttempts:"Vous avez fait trop de tentatives de connexion invalides, votre compte a été bloqué, veuillez réessayer plus tard.",Forbidden_UserAccount_NotActive:"Il semble que vous n'avez pas encore confirmé votre adresse e-mail. Pour compléter votre inscription et accéder à votre compte, veuillez vérifier votre boîte de réception pour un message de confirmation. Si vous n'avez pas reçu l'e-mail, veuillez également vérifier votre dossier de spam. Si vous avez besoin d'aide, vous pouvez demander de l'aide via le service client.",GmErr_BadRequest_ExpiredToken:"Le jeton que vous utilisez est expiré.",GmErr_BadRequest_INVALID_CODE:"Le code que vous utilisez est invalide.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"Vous avez fait trop de tentatives pour valider votre code.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Vous avez fait trop de tentatives pour générer votre code.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"Vous avez été bloqué en raison d'un code invalide.",GmErr_BadRequest_CODE_MISSING:"Le jeton est manquant pour votre demande.",GmErr_BadRequest_TOKEN_NOT_FOUND:"Le jeton n'a pas été trouvé pour votre demande.",GmErr_BadRequest_USER_NOT_REGISTERED:"L'utilisateur n'est pas enregistré. Veuillez vous inscrire d'abord.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"Le numéro de téléphone que vous utilisez est invalide.",GmErr_BadRequest_INVALID_USER_ID:"L'ID utilisateur est invalide.",GmErr_UnexpectedException:"Quelque chose a mal tourné... Veuillez réessayer.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"Le document utilisateur est invalide.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"L'inscription a été bloquée en raison de l'échec de la vérification PersonaID par le ministère des Finances croate avec la raison : La réponse du MoF confirme que le joueur est mineur ou n'est pas résident croate.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"L'inscription a été bloquée en raison de l'échec de la vérification PersonaID par le ministère des Finances croate avec la raison : Le MoF ne renvoie pas de réponse.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"L'inscription a été bloquée en raison de l'échec de la vérification PersonaID par le ministère des Finances croate avec la raison : Erreur interne."},es:{GmErr_AMOUNT_INVALID:"El monto especificado no es válido.",GmErr_REGISTER_OVERAGE:"El registro ha excedido el límite permitido.",GmErr_REGISTER_UNDERAGE:"El registro está por debajo del límite permitido.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"La autenticación del usuario falló debido a demasiados intentos fallidos.",GmErr_USER_ACCOUNT_BLOCKED:"La cuenta del usuario está bloqueada.",GmErr_USER_NOT_VERIFIED:"El usuario no ha sido verificado.",GmErr_USER_NOT_FOUND:"No se encontró un usuario con la información proporcionada.",GmErr_USER_ID_INVALID:"El ID de usuario proporcionado no es válido.",GmErr_USER_AUTH_FAILED:"La autenticación del usuario falló.",GmErr_USER_DUPLICATED:"El usuario ya existe en el sistema.",GmErr_USER_NOT_ACTIVATED:"La cuenta del usuario no ha sido activada.",GmErr_PASSWORD_CONTAINS_EMAIL:"La contraseña no puede contener la dirección de correo electrónico.",GmErr_PASSWORD_CONTAINS_USERNAME:"La contraseña no puede contener el nombre de usuario.",GmErr_PASSWORD_CONTAINS_SPACES:"La contraseña no puede contener espacios.",GmErr_USER_4TS_CHECK_EXISTS:"La verificación del usuario 4TS ya existe.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"El usuario está excluido del registro.",GmErr_USER_NAV_EXCLUDED_LOGIN:"El usuario está excluido del inicio de sesión.",GmErr_USERNAME_REQUIRED:"Se requiere un nombre de usuario.",GmErr_USER_EMAIL_NOT_VERIFIED:"La dirección de correo electrónico del usuario no ha sido verificada.",GmErr_EMAIL_ALREADY_EXISTS:"Un usuario con el mismo correo electrónico ya existe.",GmErr_EMAIL_REQUIRED:"Se requiere una dirección de correo electrónico.",GmErr_USERNAME_ALREADY_EXISTS:"El nombre de usuario ya está en uso.",GmErr_DUPLICATE_PERSONAL_ID:"Se encontró un ID personal duplicado.",GmErr_INVALID_USER_DOCUMENT:"El documento del usuario no es válido.",GmErr_INVALID_CODE:"El código proporcionado no es válido.",GmErr_EXPIRED_TOKEN:"El token ha expirado.",GmErr_ATTEMPTS_EXCEEDED:"Se ha superado el número máximo de intentos.",GmErr_BLOCK_USER_INCORRECT_CODE:"El usuario ha sido bloqueado debido a un código incorrecto.",GmErr_TOKEN_NOT_FOUND:"No se encontró el token.",GmErr_INVALID_PHONE_NUMBER:"El número de teléfono proporcionado no es válido.",GmErr_CODE_MISSING:"Falta el código.",GmErr_UNREGISTERED_USER:"El usuario no está registrado.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Se ha superado el número máximo de intentos para generar un código.",GmErr_UNEXPECTED_EXCEPTION:"Ocurrió una excepción inesperada.",GmErr_INVALID_USER_ID:"El ID de usuario proporcionado no es válido.",GmErr_NOT_ALLOWED_EXCEPTION:"Esta acción no está permitida.",GmErr_CAN_NOT_FIND_ROLE:"No se pudo encontrar el rol especificado.",GmErr_NO_SESSION_PROVIDED:"No se proporcionó ninguna sesión.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"No se encontró ninguna sesión activa para este usuario.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"El usuario ya ha sido anonimizado.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"No se ha configurado ningún rol para asignar.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"La sesión proporcionada no pertenece al usuario.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"La sesión proporcionada no existe.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"El rol ya ha sido asignado al usuario.",GmErr_ASSIGN_USER_ROLE_FAILED:"No se pudo asignar un rol al usuario.",GmErr_BadRequest_1000:"Hubo un problema con el número de identificación personal.",CountryRestricted:"Lamentablemente, estás intentando registrarte desde un país donde no podemos aceptar el juego. No podemos procesar tu registro por esta razón.",nextButton:"Siguiente",backButton:"Atrás",doneButton:"Hecho",generalError:"Algo salió mal... Por favor, inténtalo de nuevo.",successMessage:"Registro exitoso",GmErr_BadRequest_Duplicate_User:"Ya existe un usuario con esta información.",GmErr_BadRequest_PasswordContainsUsername:"La contraseña no puede ser la misma que el nombre de usuario.",GmErr_BadRequest_PasswordContainsEmail:"La contraseña no puede ser la misma que el correo electrónico.",GmErr_BadRequest_Duplicate_PersonalId:"Ya existe un registro con los datos que ingresó o ingresó sus datos en un formato incorrecto.",GmErr_Forbidden_UserAccount_NavExcluded:"El usuario está excluido de NAV. El registro fue denegado.",GmErr_BadRequest_ModelValidationFailed:"Algo salió mal... Por favor, inténtelo de nuevo.",GmErr_BadInternalConfigs:"Algo salió mal... Por favor, inténtelo de nuevo.",GmErr_Unauthorized:"Algo salió mal... Por favor, inténtelo de nuevo.",GmErr_NotFound:"Algo salió mal... Por favor, inténtelo de nuevo.",BadRequest_Duplicate_User:"Ya existe un usuario con el mismo nombre de usuario.",BadRequest:"La solicitud es inválida, por favor verifique la API.",Unauthorized:"El número de cuenta del jugador, la dirección de correo electrónico o la contraseña son incorrectos",Forbidden_TooManyAttempts:"Ha realizado demasiados intentos de inicio de sesión inválidos, su cuenta ha sido bloqueada, por favor intente de nuevo más tarde.",Forbidden_UserAccount_NotActive:"Parece que aún no ha confirmado su dirección de correo electrónico. Para completar su registro y acceder a su cuenta, verifique su bandeja de entrada de correo electrónico para un mensaje de confirmación. Si no ha recibido el correo electrónico, verifique también su carpeta de spam. Si necesita ayuda, puede solicitar ayuda a través del servicio de atención al cliente.",GmErr_BadRequest_ExpiredToken:"El token que está utilizando ha expirado.",GmErr_BadRequest_INVALID_CODE:"El código que está utilizando es inválido.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"Ha realizado demasiados intentos de validar su código.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Ha realizado demasiados intentos de generar su código.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"Ha sido bloqueado debido a un código inválido.",GmErr_BadRequest_CODE_MISSING:"Falta el token para su solicitud.",GmErr_BadRequest_TOKEN_NOT_FOUND:"No se encontró el token para su solicitud.",GmErr_BadRequest_USER_NOT_REGISTERED:"El usuario no está registrado. Por favor, regístrese primero.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"El número de teléfono que está utilizando es inválido.",GmErr_BadRequest_INVALID_USER_ID:"El ID de usuario es inválido.",GmErr_UnexpectedException:"Algo salió mal... Por favor, inténtelo de nuevo.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"El documento del usuario es inválido.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"El registro fue bloqueado debido a la falla de verificación de PersonaID por parte del Ministerio de Finanzas de Croacia con la razón: La respuesta del MoF confirma que el jugador es menor de edad o no es residente croata.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"El registro fue bloqueado debido a la falla de verificación de PersonaID por parte del Ministerio de Finanzas de Croacia con la razón: El MoF no devuelve una respuesta.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"El registro fue bloqueado debido a la falla de verificación de PersonaID por parte del Ministerio de Finanzas de Croacia con la razón: Error interno."},pt:{GmErr_AMOUNT_INVALID:"O valor especificado é inválido.",GmErr_REGISTER_OVERAGE:"O registro excedeu o limite permitido.",GmErr_REGISTER_UNDERAGE:"O registro está abaixo do limite permitido.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"A autenticação do usuário falhou devido a muitas tentativas malsucedidas.",GmErr_USER_ACCOUNT_BLOCKED:"A conta do usuário está bloqueada.",GmErr_USER_NOT_VERIFIED:"O usuário não foi verificado.",GmErr_USER_NOT_FOUND:"Nenhum usuário encontrado com as informações fornecidas.",GmErr_USER_ID_INVALID:"O ID de usuário fornecido é inválido.",GmErr_USER_AUTH_FAILED:"A autenticação do usuário falhou.",GmErr_USER_DUPLICATED:"O usuário já existe no sistema.",GmErr_USER_NOT_ACTIVATED:"A conta do usuário não foi ativada.",GmErr_PASSWORD_CONTAINS_EMAIL:"A senha não pode conter o endereço de e-mail.",GmErr_PASSWORD_CONTAINS_USERNAME:"A senha não pode conter o nome de usuário.",GmErr_PASSWORD_CONTAINS_SPACES:"A senha não pode conter espaços.",GmErr_USER_4TS_CHECK_EXISTS:"A verificação do usuário 4TS já existe.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"O usuário está excluído do registro.",GmErr_USER_NAV_EXCLUDED_LOGIN:"O usuário está excluído do login.",GmErr_USERNAME_REQUIRED:"É necessário um nome de usuário.",GmErr_USER_EMAIL_NOT_VERIFIED:"O endereço de e-mail do usuário não foi verificado.",GmErr_EMAIL_ALREADY_EXISTS:"Um usuário com o mesmo e-mail já existe.",GmErr_EMAIL_REQUIRED:"É necessário um endereço de e-mail.",GmErr_USERNAME_ALREADY_EXISTS:"O nome de usuário já está em uso.",GmErr_DUPLICATE_PERSONAL_ID:"ID pessoal duplicado encontrado.",GmErr_INVALID_USER_DOCUMENT:"O documento do usuário é inválido.",GmErr_INVALID_CODE:"O código fornecido é inválido.",GmErr_EXPIRED_TOKEN:"O token expirou.",GmErr_ATTEMPTS_EXCEEDED:"O número máximo de tentativas foi excedido.",GmErr_BLOCK_USER_INCORRECT_CODE:"O usuário foi bloqueado devido a um código incorreto.",GmErr_TOKEN_NOT_FOUND:"O token não foi encontrado.",GmErr_INVALID_PHONE_NUMBER:"O número de telefone fornecido é inválido.",GmErr_CODE_MISSING:"O código está ausente.",GmErr_UNREGISTERED_USER:"O usuário não está registrado.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"O número máximo de tentativas para gerar um código foi excedido.",GmErr_UNEXPECTED_EXCEPTION:"Ocorreu uma exceção inesperada.",GmErr_INVALID_USER_ID:"O ID de usuário fornecido é inválido.",GmErr_NOT_ALLOWED_EXCEPTION:"Essa ação não é permitida.",GmErr_CAN_NOT_FIND_ROLE:"Não foi possível encontrar a função especificada.",GmErr_NO_SESSION_PROVIDED:"Nenhuma sessão foi fornecida.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"Nenhuma sessão ativa encontrada para este usuário.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"O usuário já foi anonimizado.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"Nenhuma função foi configurada para ser atribuída.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"A sessão fornecida não pertence ao usuário.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"A sessão fornecida não existe.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"A função já foi atribuída ao usuário.",GmErr_ASSIGN_USER_ROLE_FAILED:"Falha ao atribuir uma função ao usuário.",GmErr_BadRequest_1000:"Houve um problema com o número de identificação pessoal.",CountryRestricted:"Infelizmente, você está tentando se registrar de um país onde não podemos aceitar jogos. Não podemos processar seu registro por este motivo.",nextButton:"Próximo",backButton:"Voltar",doneButton:"Concluído",generalError:"Algo deu errado... Por favor, tente novamente.",successMessage:"Registro bem-sucedido",GmErr_BadRequest_Duplicate_User:"Um usuário com essas informações já existe.",GmErr_BadRequest_PasswordContainsUsername:"A senha não pode ser igual ao nome de usuário.",GmErr_BadRequest_PasswordContainsEmail:"A senha não pode ser igual ao e-mail.",GmErr_BadRequest_Duplicate_PersonalId:"Já existe um registro com os dados que você inseriu ou você inseriu seus dados em um formato incorreto.",GmErr_Forbidden_UserAccount_NavExcluded:"Usuário está NAV Excluído. Registro foi negado.",GmErr_BadRequest_ModelValidationFailed:"Algo deu errado... Por favor, tente novamente.",GmErr_BadInternalConfigs:"Algo deu errado... Por favor, tente novamente.",GmErr_Unauthorized:"Algo deu errado... Por favor, tente novamente.",GmErr_NotFound:"Algo deu errado... Por favor, tente novamente.",BadRequest_Duplicate_User:"Usuário com o mesmo nome de usuário já existe.",BadRequest:"A solicitação é inválida, por favor, verifique a API.",Unauthorized:"O número da conta do jogador, endereço de e-mail ou senha estão incorretos",Forbidden_TooManyAttempts:"Você fez muitas tentativas de login inválidas, sua conta foi bloqueada, por favor, tente novamente mais tarde.",Forbidden_UserAccount_NotActive:"Parece que você ainda não confirmou seu endereço de e-mail. Para concluir seu registro e acessar sua conta, verifique sua caixa de entrada de e-mail para uma mensagem de confirmação. Se você não recebeu o e-mail, verifique também a pasta de spam. Se precisar de ajuda, você pode solicitar ajuda através do serviço de atendimento ao cliente.",GmErr_BadRequest_ExpiredToken:"O token que você está usando está expirado.",GmErr_BadRequest_INVALID_CODE:"O código que você está usando é inválido.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"Você fez muitas tentativas de validar seu código.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Você fez muitas tentativas de gerar seu código.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"Você foi bloqueado devido a um código inválido.",GmErr_BadRequest_CODE_MISSING:"O token está faltando para sua solicitação.",GmErr_BadRequest_TOKEN_NOT_FOUND:"O token não foi encontrado para sua solicitação.",GmErr_BadRequest_USER_NOT_REGISTERED:"O usuário não está registrado. Por favor, registre-se primeiro.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"O número de telefone que você está usando é inválido.",GmErr_BadRequest_INVALID_USER_ID:"O ID do usuário é inválido.",GmErr_UnexpectedException:"Algo deu errado... Por favor, tente novamente.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"O documento do usuário é inválido.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"O registro foi bloqueado devido à falha de verificação do PersonaID pelo Ministério das Finanças da Croácia com o motivo: A resposta do MoF confirma que o jogador é menor de idade ou não é residente da Croácia.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"O registro foi bloqueado devido à falha de verificação do PersonaID pelo Ministério das Finanças da Croácia com o motivo: O MoF não retorna uma resposta.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"O registro foi bloqueado devido à falha de verificação do PersonaID pelo Ministério das Finanças da Croácia com o motivo: Erro interno."},de:{GmErr_AMOUNT_INVALID:"Der angegebene Betrag ist ungültig.",GmErr_REGISTER_OVERAGE:"Die Registrierung hat das zulässige Limit überschritten.",GmErr_REGISTER_UNDERAGE:"Die Registrierung liegt unterhalb des zulässigen Limits.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"Die Benutzeranmeldung ist aufgrund zu vieler fehlgeschlagener Versuche fehlgeschlagen.",GmErr_USER_ACCOUNT_BLOCKED:"Das Benutzerkonto ist gesperrt.",GmErr_USER_NOT_VERIFIED:"Der Benutzer wurde nicht verifiziert.",GmErr_USER_NOT_FOUND:"Kein Benutzer mit den angegebenen Informationen gefunden.",GmErr_USER_ID_INVALID:"Die angegebene Benutzer-ID ist ungültig.",GmErr_USER_AUTH_FAILED:"Die Benutzeranmeldung ist fehlgeschlagen.",GmErr_USER_DUPLICATED:"Der Benutzer ist bereits im System vorhanden.",GmErr_USER_NOT_ACTIVATED:"Das Benutzerkonto wurde nicht aktiviert.",GmErr_PASSWORD_CONTAINS_EMAIL:"Das Passwort darf keine E-Mail-Adresse enthalten.",GmErr_PASSWORD_CONTAINS_USERNAME:"Das Passwort darf keinen Benutzernamen enthalten.",GmErr_PASSWORD_CONTAINS_SPACES:"Das Passwort darf keine Leerzeichen enthalten.",GmErr_USER_4TS_CHECK_EXISTS:"Die 4TS-Überprüfung des Benutzers existiert bereits.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"Der Benutzer ist von der Registrierung ausgeschlossen.",GmErr_USER_NAV_EXCLUDED_LOGIN:"Der Benutzer ist vom Login ausgeschlossen.",GmErr_USERNAME_REQUIRED:"Ein Benutzername ist erforderlich.",GmErr_USER_EMAIL_NOT_VERIFIED:"Die E-Mail-Adresse des Benutzers wurde nicht verifiziert.",GmErr_EMAIL_ALREADY_EXISTS:"Ein Benutzer mit derselben E-Mail-Adresse existiert bereits.",GmErr_EMAIL_REQUIRED:"Eine E-Mail-Adresse ist erforderlich.",GmErr_USERNAME_ALREADY_EXISTS:"Der Benutzername ist bereits vergeben.",GmErr_DUPLICATE_PERSONAL_ID:"Doppelte persönliche ID gefunden.",GmErr_INVALID_USER_DOCUMENT:"Das Benutzerdokument ist ungültig.",GmErr_INVALID_CODE:"Der angegebene Code ist ungültig.",GmErr_EXPIRED_TOKEN:"Das Token ist abgelaufen.",GmErr_ATTEMPTS_EXCEEDED:"Die maximale Anzahl an Versuchen wurde überschritten.",GmErr_BLOCK_USER_INCORRECT_CODE:"Der Benutzer wurde aufgrund eines falschen Codes gesperrt.",GmErr_TOKEN_NOT_FOUND:"Das Token wurde nicht gefunden.",GmErr_INVALID_PHONE_NUMBER:"Die angegebene Telefonnummer ist ungültig.",GmErr_CODE_MISSING:"Der Code fehlt.",GmErr_UNREGISTERED_USER:"Der Benutzer ist nicht registriert.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Die maximale Anzahl an Versuchen, einen Code zu generieren, wurde überschritten.",GmErr_UNEXPECTED_EXCEPTION:"Es ist ein unerwarteter Fehler aufgetreten.",GmErr_INVALID_USER_ID:"Die angegebene Benutzer-ID ist ungültig.",GmErr_NOT_ALLOWED_EXCEPTION:"Diese Aktion ist nicht erlaubt.",GmErr_CAN_NOT_FIND_ROLE:"Die angegebene Rolle konnte nicht gefunden werden.",GmErr_NO_SESSION_PROVIDED:"Es wurde keine Sitzung bereitgestellt.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"Es wurde keine aktive Sitzung für diesen Benutzer gefunden.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"Der Benutzer wurde bereits anonymisiert.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"Es wurde keine Rolle zur Zuweisung eingerichtet.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"Die bereitgestellte Sitzung gehört nicht dem Benutzer.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"Die bereitgestellte Sitzung existiert nicht.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"Die Rolle wurde dem Benutzer bereits zugewiesen.",GmErr_ASSIGN_USER_ROLE_FAILED:"Die Zuweisung einer Rolle an den Benutzer ist fehlgeschlagen.",GmErr_BadRequest_1000:"Es gab ein Problem mit der persönlichen Identifikationsnummer.",CountryRestricted:"Leider versuchen Sie, sich aus einem Land zu registrieren, in dem wir kein Spiel zulassen können. Aus diesem Grund können wir Ihre Registrierung nicht verarbeiten.",nextButton:"Weiter",backButton:"Zurück",doneButton:"Fertig",generalError:"Etwas ist schief gelaufen... Bitte versuchen Sie es erneut.",successMessage:"Registrierung erfolgreich",GmErr_BadRequest_Duplicate_User:"Ein Benutzer mit diesen Informationen existiert bereits.",GmErr_BadRequest_PasswordContainsUsername:"Das Passwort darf nicht mit dem Benutzernamen übereinstimmen.",GmErr_BadRequest_PasswordContainsEmail:"Das Passwort darf nicht mit der E-Mail-Adresse übereinstimmen.",GmErr_BadRequest_Duplicate_PersonalId:"Es gibt bereits eine Registrierung mit den eingegebenen Daten oder Sie haben Ihre Daten in einem falschen Format eingegeben.",GmErr_Forbidden_UserAccount_NavExcluded:"Benutzer ist NAV ausgeschlossen. Registrierung wurde abgelehnt.",GmErr_BadRequest_ModelValidationFailed:"Etwas ist schief gelaufen... Bitte versuchen Sie es erneut.",GmErr_BadInternalConfigs:"Etwas ist schief gelaufen... Bitte versuchen Sie es erneut.",GmErr_Unauthorized:"Etwas ist schief gelaufen... Bitte versuchen Sie es erneut.",GmErr_NotFound:"Etwas ist schief gelaufen... Bitte versuchen Sie es erneut.",BadRequest_Duplicate_User:"Ein Benutzer mit demselben Benutzernamen existiert bereits.",BadRequest:"Die Anfrage ist ungültig, bitte überprüfen Sie die API.",Unauthorized:"Die Kontonummer des Spielers, die E-Mail-Adresse oder das Passwort ist falsch",Forbidden_TooManyAttempts:"Sie haben zu viele ungültige Anmeldeversuche unternommen, Ihr Konto wurde gesperrt, bitte versuchen Sie es später erneut.",Forbidden_UserAccount_NotActive:"Es scheint, dass Sie Ihre E-Mail-Adresse noch nicht bestätigt haben. Um Ihre Registrierung abzuschließen und auf Ihr Konto zuzugreifen, überprüfen Sie bitte Ihr E-Mail-Postfach auf eine Bestätigungsnachricht. Wenn Sie die E-Mail nicht erhalten haben, überprüfen Sie bitte auch Ihren Spam-Ordner. Wenn Sie Hilfe benötigen, können Sie über den Kundenservice Hilfe anfordern.",GmErr_BadRequest_ExpiredToken:"Das von Ihnen verwendete Token ist abgelaufen.",GmErr_BadRequest_INVALID_CODE:"Der von Ihnen verwendete Code ist ungültig.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"Sie haben zu viele Versuche unternommen, Ihren Code zu validieren.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Sie haben zu viele Versuche unternommen, Ihren Code zu generieren.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"Sie wurden aufgrund eines ungültigen Codes gesperrt.",GmErr_BadRequest_CODE_MISSING:"Das Token fehlt für Ihre Anfrage.",GmErr_BadRequest_TOKEN_NOT_FOUND:"Das Token wurde für Ihre Anfrage nicht gefunden.",GmErr_BadRequest_USER_NOT_REGISTERED:"Der Benutzer ist nicht registriert. Bitte registrieren Sie sich zuerst.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"Die von Ihnen verwendete Telefonnummer ist ungültig.",GmErr_BadRequest_INVALID_USER_ID:"Die Benutzer-ID ist ungültig.",GmErr_UnexpectedException:"Etwas ist schief gelaufen... Bitte versuchen Sie es erneut.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"Das Benutzerdokument ist ungültig.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"Die Registrierung wurde aufgrund eines Fehlers bei der PersonaID-Verifizierung durch das kroatische Finanzministerium blockiert mit dem Grund: Die Antwort des MoF bestätigt, dass der Spieler minderjährig ist oder kein kroatischer Einwohner ist.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"Die Registrierung wurde aufgrund eines Fehlers bei der PersonaID-Verifizierung durch das kroatische Finanzministerium blockiert mit dem Grund: Das MoF gibt keine Antwort.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"Die Registrierung wurde aufgrund eines Fehlers bei der PersonaID-Verifizierung durch das kroatische Finanzministerium blockiert mit dem Grund: Interner Fehler."}},pc=(e,t,i)=>{let r=mc[mc[t]?t:"en"][e];if(void 0!==i)for(const[e,t]of Object.entries(i.values)){const i=new RegExp(`{${e}}`,"g");r=r.replace(i,t)}return r},_c=(e,t={})=>{const i=new CustomEvent("track-custom-event",{detail:{type:e,data:t},bubbles:!0,composed:!0});document.dispatchEvent(i)};var fc={},vc={},gc=Object.defineProperty,Ec=Object.defineProperties,bc=Object.getOwnPropertyDescriptors,yc=Object.getOwnPropertySymbols,wc=Object.prototype.hasOwnProperty,kc=Object.prototype.propertyIsEnumerable,xc=(e,t,i)=>t in e?gc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,Sc=(e,t)=>{for(var i in t||(t={}))wc.call(t,i)&&xc(e,i,t[i]);if(yc)for(var i of yc(t))kc.call(t,i)&&xc(e,i,t[i]);return e},Ac=(e,t)=>Ec(e,bc(t)),Ic=(e,t,i)=>(xc(e,"symbol"!=typeof t?t+"":t,i),i);function Cc(){}function Dc(e){return e()}function Tc(){return Object.create(null)}function Rc(e){e.forEach(Dc)}function Nc(e){return"function"==typeof e}function Oc(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function zc(e,...t){if(null==e){for(const e of t)e(void 0);return Cc}const i=e.subscribe(...t);return i.unsubscribe?()=>i.unsubscribe():i}function Gc(e,t){e.appendChild(t)}function Mc(e,t,i){const r=function(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}(e);if(!r.getElementById(t)){const e=Pc("style");e.id=t,e.textContent=i,function(e,t){Gc(e.head||e,t)}(r,e)}}function Uc(e,t,i){e.insertBefore(t,i||null)}function Bc(e){e.parentNode&&e.parentNode.removeChild(e)}function Pc(e){return document.createElement(e)}function Lc(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function jc(e){return document.createTextNode(e)}function Fc(e,t,i){null==i?e.removeAttribute(t):e.getAttribute(t)!==i&&e.setAttribute(t,i)}let qc;function Hc(e){qc=e}function Vc(e){(function(){if(!qc)throw new Error("Function called outside component initialization");return qc})().$$.on_mount.push(e)}const $c=[],Xc=[];let Kc=[];const Yc=[],Wc=Promise.resolve();let Zc=!1;function Qc(e){Kc.push(e)}const Jc=new Set;let ed=0;function td(){if(0!==ed)return;const e=qc;do{try{for(;ed<$c.length;){const e=$c[ed];ed++,Hc(e),id(e.$$)}}catch(e){throw $c.length=0,ed=0,e}for(Hc(null),$c.length=0,ed=0;Xc.length;)Xc.pop()();for(let e=0;e<Kc.length;e+=1){const t=Kc[e];Jc.has(t)||(Jc.add(t),t())}Kc.length=0}while($c.length);for(;Yc.length;)Yc.pop()();Zc=!1,Jc.clear(),Hc(e)}function id(e){if(null!==e.fragment){e.update(),Rc(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Qc)}}const rd=new Set;function nd(e,t,i,r,n,o,s=null,a=[-1]){const l=qc;Hc(e);const h=e.$$={fragment:null,ctx:[],props:o,update:Cc,not_equal:n,bound:Tc(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:Tc(),dirty:a,skip_bound:!1,root:t.target||l.$$.root};s&&s(h.root);let c=!1;if(h.ctx=i?i(e,t.props||{},((t,i,...r)=>{const o=r.length?r[0]:i;return h.ctx&&n(h.ctx[t],h.ctx[t]=o)&&(!h.skip_bound&&h.bound[t]&&h.bound[t](o),c&&function(e,t){-1===e.$$.dirty[0]&&($c.push(e),Zc||(Zc=!0,Wc.then(td)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}(e,t)),i})):[],h.update(),c=!0,Rc(h.before_update),h.fragment=!!r&&r(h.ctx),t.target){if(t.hydrate){const e=function(e){return Array.from(e.childNodes)}(t.target);h.fragment&&h.fragment.l(e),e.forEach(Bc)}else h.fragment&&h.fragment.c();t.intro&&function(e){e&&e.i&&(rd.delete(e),e.i(void 0))}(e.$$.fragment),function(e,t,i){const{fragment:r,after_update:n}=e.$$;r&&r.m(t,i),Qc((()=>{const t=e.$$.on_mount.map(Dc).filter(Nc);e.$$.on_destroy?e.$$.on_destroy.push(...t):Rc(t),e.$$.on_mount=[]})),n.forEach(Qc)}(e,t.target,t.anchor),td()}Hc(l)}let od;function sd(e,t,i,r){var n;const o=null==(n=i[e])?void 0:n.type;if(t="Boolean"===o&&"boolean"!=typeof t?null!=t:t,!r||!i[e])return t;if("toAttribute"===r)switch(o){case"Object":case"Array":return null==t?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return null==t?null:t;default:return t}else switch(o){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":default:return t;case"Number":return null!=t?+t:t}}function ad(e,t,i,r,n){let o=class extends od{constructor(){super(e,i,n),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map((e=>(t[e].attribute||e).toLowerCase()))}};return Object.keys(t).forEach((e=>{Object.defineProperty(o.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(i){var r;i=sd(e,i,t),this.$$d[e]=i,null==(r=this.$$c)||r.$set({[e]:i})}})})),r.forEach((e=>{Object.defineProperty(o.prototype,e,{get(){var t;return null==(t=this.$$c)?void 0:t[e]}})})),e.element=o,o}"function"==typeof HTMLElement&&(od=class extends HTMLElement{constructor(e,t,i){super(),Ic(this,"$$ctor"),Ic(this,"$$s"),Ic(this,"$$c"),Ic(this,"$$cn",!1),Ic(this,"$$d",{}),Ic(this,"$$r",!1),Ic(this,"$$p_d",{}),Ic(this,"$$l",{}),Ic(this,"$$l_u",new Map),this.$$ctor=e,this.$$s=t,i&&this.attachShadow({mode:"open"})}addEventListener(e,t,i){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const i=this.$$c.$on(e,t);this.$$l_u.set(t,i)}super.addEventListener(e,t,i)}removeEventListener(e,t,i){if(super.removeEventListener(e,t,i),this.$$c){const e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}connectedCallback(){return e=this,t=function*(){if(this.$$cn=!0,!this.$$c){let e=function(e){return()=>{let t;return{c:function(){t=Pc("slot"),"default"!==e&&Fc(t,"name",e)},m:function(e,i){Uc(e,t,i)},d:function(e){e&&Bc(t)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const t={},i=function(e){const t={};return e.childNodes.forEach((e=>{t[e.slot||"default"]=!0})),t}(this);for(const r of this.$$s)r in i&&(t[r]=[e(r)]);for(const e of this.attributes){const t=this.$$g_p(e.name);t in this.$$d||(this.$$d[t]=sd(t,e.value,this.$$p_d,"toProp"))}for(const e in this.$$p_d)!(e in this.$$d)&&void 0!==this[e]&&(this.$$d[e]=this[e],delete this[e]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:Ac(Sc({},this.$$d),{$$slots:t,$$scope:{ctx:[]}})});const r=()=>{this.$$r=!0;for(const e in this.$$p_d)if(this.$$d[e]=this.$$c.$$.ctx[this.$$c.$$.props[e]],this.$$p_d[e].reflect){const t=sd(e,this.$$d[e],this.$$p_d,"toAttribute");null==t?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(const e in this.$$l)for(const t of this.$$l[e]){const i=this.$$c.$on(e,t);this.$$l_u.set(t,i)}this.$$l={}}},new Promise(((i,r)=>{var n=e=>{try{s(t.next(e))}catch(e){r(e)}},o=e=>{try{s(t.throw(e))}catch(e){r(e)}},s=e=>e.done?i(e.value):Promise.resolve(e.value).then(n,o);s((t=t.apply(e,null)).next())}));var e,t}attributeChangedCallback(e,t,i){var r;this.$$r||(e=this.$$g_p(e),this.$$d[e]=sd(e,i,this.$$p_d,"toProp"),null==(r=this.$$c)||r.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then((()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)}))}$$g_p(e){return Object.keys(this.$$p_d).find((t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e))||e}});class ld{constructor(){Ic(this,"$$"),Ic(this,"$$set")}$destroy(){(function(e,t){const i=e.$$;null!==i.fragment&&(function(e){const t=[],i=[];Kc.forEach((r=>-1===e.indexOf(r)?t.push(r):i.push(r))),i.forEach((e=>e())),Kc=t}(i.after_update),Rc(i.on_destroy),i.fragment&&i.fragment.d(t),i.on_destroy=i.fragment=null,i.ctx=[])})(this,1),this.$destroy=Cc}$on(e,t){if(!Nc(t))return Cc;const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(t),()=>{const e=i.indexOf(t);-1!==e&&i.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}function hd(e,t){if(e){const i=document.createElement("style");i.innerHTML=t,e.appendChild(i)}}function cd(e,t){const i=new URL(t);fetch(i.href).then((e=>e.text())).then((t=>{const i=document.createElement("style");i.innerHTML=t,e&&e.appendChild(i)})).catch((e=>{console.error("There was an error while trying to load client styling from URL",e)}))}function dd(e,t){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(t,(t=>{i.innerHTML=t,e&&e.appendChild(i)}))}}function ud(e){Mc(e,"svelte-gnt082",".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}")}function md(e){let t;return{c(){t=Pc("div"),t.innerHTML='<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>'},m(i,r){Uc(i,t,r),e[4](t)},p:Cc,i:Cc,o:Cc,d(i){i&&Bc(t),e[4](null)}}}function pd(e,t,i){let r,{clientstyling:n=""}=t,{clientstylingurl:o=""}=t,{mbsource:s}=t;return Vc((()=>()=>{})),e.$$set=e=>{"clientstyling"in e&&i(1,n=e.clientstyling),"clientstylingurl"in e&&i(2,o=e.clientstylingurl),"mbsource"in e&&i(3,s=e.mbsource)},e.$$.update=()=>{3&e.$$.dirty&&n&&r&&hd(r,n),5&e.$$.dirty&&o&&r&&cd(r,o),9&e.$$.dirty&&s&&r&&dd(r,`${s}.Style`)},[r,n,o,s,function(e){Xc[e?"unshift":"push"]((()=>{r=e,i(0,r)}))}]}"undefined"!=typeof window&&(window.__svelte||(window.__svelte={v:new Set})).v.add("4");class _d extends ld{constructor(e){super(),nd(this,e,pd,md,Oc,{clientstyling:1,clientstylingurl:2,mbsource:3},ud)}get clientstyling(){return this.$$.ctx[1]}set clientstyling(e){this.$$set({clientstyling:e}),td()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),td()}get mbsource(){return this.$$.ctx[3]}set mbsource(e){this.$$set({mbsource:e}),td()}}ad(_d,{clientstyling:{},clientstylingurl:{},mbsource:{}},[],[],!0);const fd=Object.freeze(Object.defineProperty({__proto__:null,default:_d},Symbol.toStringTag,{value:"Module"}));if(vc.GeneralAnimationLoading_ce=fd,vc.HtmlTag=class{constructor(e=!1){Ic(this,"is_svg",!1),Ic(this,"e"),Ic(this,"n"),Ic(this,"t"),Ic(this,"a"),this.is_svg=e,this.e=this.n=null}c(e){this.h(e)}m(e,t,i=null){this.e||(this.e=this.is_svg?Lc(t.nodeName):Pc(11===t.nodeType?"TEMPLATE":t.nodeName),this.t="TEMPLATE"!==t.tagName?t:t.content,this.c(e)),this.i(i)}h(e){this.e.innerHTML=e,this.n=Array.from("TEMPLATE"===this.e.nodeName?this.e.content.childNodes:this.e.childNodes)}i(e){for(let t=0;t<this.n.length;t+=1)Uc(this.t,this.n[t],e)}p(e){this.d(),this.h(e),this.i(this.a)}d(){this.n.forEach(Bc)}},vc.SvelteComponent=ld,vc.append=Gc,vc.append_styles=Mc,vc.attr=Fc,vc.binding_callbacks=Xc,vc.component_subscribe=function(e,t,i){e.$$.on_destroy.push(zc(t,i))},vc.create_custom_element=ad,vc.destroy_each=function(e,t){for(let i=0;i<e.length;i+=1)e[i]&&e[i].d(t)},vc.detach=Bc,vc.element=Pc,vc.empty=function(){return jc("")},vc.ensure_array_like=function(e){return void 0!==(null==e?void 0:e.length)?e:Array.from(e)},vc.flush=td,vc.init=nd,vc.insert=Uc,vc.is_function=Nc,vc.listen=function(e,t,i,r){return e.addEventListener(t,i,r),()=>e.removeEventListener(t,i,r)},vc.noop=Cc,vc.null_to_empty=function(e){return null==e?"":e},vc.onMount=Vc,vc.run_all=Rc,vc.safe_not_equal=Oc,vc.setClientStyling=hd,vc.setClientStylingURL=cd,vc.setStreamStyling=dd,vc.set_custom_element_data=function(e,t,i){const r=t.toLowerCase();r in e?e[r]="boolean"==typeof e[r]&&""===i||i:t in e?e[t]="boolean"==typeof e[t]&&""===i||i:Fc(e,t,i)},vc.set_data=function(e,t){e.data!==(t=""+t)&&(e.data=t)},vc.space=function(){return jc(" ")},vc.subscribe=zc,vc.svg_element=Lc,vc.text=jc,function(e){var t=Object.defineProperty,i=Object.defineProperties,r=Object.getOwnPropertyDescriptors,n=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,a=(e,i,r)=>i in e?t(e,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[i]=r,l=(e,t)=>{for(var i in t||(t={}))o.call(t,i)&&a(e,i,t[i]);if(n)for(var i of n(t))s.call(t,i)&&a(e,i,t[i]);return e},h=(e,t,i)=>new Promise(((r,n)=>{var o=e=>{try{a(i.next(e))}catch(e){n(e)}},s=e=>{try{a(i.throw(e))}catch(e){n(e)}},a=e=>e.done?r(e.value):Promise.resolve(e.value).then(o,s);a((i=i.apply(e,t)).next())}));Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const c=vc,d=[];function u(e,t=c.noop){let i;const r=new Set;function n(t){if(c.safe_not_equal(e,t)&&(e=t,i)){const t=!d.length;for(const t of r)t[1](),d.push(t,e);if(t){for(let e=0;e<d.length;e+=2)d[e][0](d[e+1]);d.length=0}}}function o(t){n(t(e))}return{set:n,update:o,subscribe:function(s,a=c.noop){const l=[s,a];return r.add(l),1===r.size&&(i=t(n,o)||c.noop),s(e),()=>{r.delete(l),0===r.size&&i&&(i(),i=null)}}}}function m(e,t,i){const r=!Array.isArray(e),n=r?[e]:e;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return function(e,t){return{subscribe:u(e,t).subscribe}}(i,((e,i)=>{let s=!1;const a=[];let l=0,h=c.noop;const d=()=>{if(l)return;h();const n=t(r?a[0]:a,e,i);o?e(n):h=c.is_function(n)?n:c.noop},u=n.map(((e,t)=>c.subscribe(e,(e=>{a[t]=e,l&=~(1<<t),s&&d()}),(()=>{l|=1<<t}))));return s=!0,d(),function(){c.run_all(u),h(),s=!1}}))}var p=function(e){return!(!(t=e)||"object"!=typeof t||function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===_}(e)}(e));var t},_="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function f(e,t){return!1!==t.clone&&t.isMergeableObject(e)?b(function(e){return Array.isArray(e)?[]:{}}(e),e,t):e}function v(e,t,i){return e.concat(t).map((function(e){return f(e,i)}))}function g(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function E(e,t){try{return t in e}catch(e){return!1}}function b(e,t,i){(i=i||{}).arrayMerge=i.arrayMerge||v,i.isMergeableObject=i.isMergeableObject||p,i.cloneUnlessOtherwiseSpecified=f;var r=Array.isArray(t);return r===Array.isArray(e)?r?i.arrayMerge(e,t,i):function(e,t,i){var r={};return i.isMergeableObject(e)&&g(e).forEach((function(t){r[t]=f(e[t],i)})),g(t).forEach((function(n){(function(e,t){return E(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,n)||(r[n]=E(e,n)&&i.isMergeableObject(t[n])?function(e,t){if(!t.customMerge)return b;var i=t.customMerge(e);return"function"==typeof i?i:b}(n,i)(e[n],t[n],i):f(t[n],i))})),r}(e,t,i):f(t,i)}b.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,i){return b(e,i,t)}),{})};const y=(w=b)&&w.__esModule&&Object.prototype.hasOwnProperty.call(w,"default")?w.default:w;
4511
4511
  /*! *****************************************************************************
4512
4512
  Copyright (c) Microsoft Corporation.
4513
4513
 
@@ -4521,4 +4521,4 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
4521
4521
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
4522
4522
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
4523
4523
  PERFORMANCE OF THIS SOFTWARE.
4524
- ***************************************************************************** */var w,k=function(e,t){return(k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])})(e,t)};function x(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}k(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var S=function(){return S=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},S.apply(this,arguments)};function A(e,t,i){if(2===arguments.length)for(var r,n=0,o=t.length;n<o;n++)(r||!(n in t))&&(r||(r=Array.prototype.slice.call(t,0,n)),r[n]=t[n]);return e.concat(r||t)}function I(e,t){return(t&&t.strategy?t.strategy:R)(e,{cache:t&&t.cache?t.cache:U,serializer:t&&t.serializer?t.serializer:G})}function C(e,t,i,r){var n=function(e){return null==e||"number"==typeof e||"boolean"==typeof e}(r)?r:i(r),o=t.get(n);return void 0===o&&(o=e.call(this,r),t.set(n,o)),o}function D(e,t,i){var r=Array.prototype.slice.call(arguments,3),n=i(r),o=t.get(n);return void 0===o&&(o=e.apply(this,r),t.set(n,o)),o}function T(e,t,i,r,n){return i.bind(t,e,r,n)}function R(e,t){return T(e,this,1===e.length?C:D,t.cache.create(),t.serializer)}var N,O,z,G=function(){return JSON.stringify(arguments)},M=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(e){return this.cache[e]},e.prototype.set=function(e,t){this.cache[e]=t},e}(),U={create:function(){return new M}},B={variadic:function(e,t){return T(e,this,D,t.cache.create(),t.serializer)}};function P(e){return e.type===O.literal}function L(e){return e.type===O.argument}function j(e){return e.type===O.number}function F(e){return e.type===O.date}function q(e){return e.type===O.time}function H(e){return e.type===O.select}function V(e){return e.type===O.plural}function $(e){return e.type===O.pound}function X(e){return e.type===O.tag}function K(e){return!(!e||"object"!=typeof e||e.type!==z.number)}function Y(e){return!(!e||"object"!=typeof e||e.type!==z.dateTime)}!function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(N||(N={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(O||(O={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(z||(z={}));var W=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Z=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Q(e){var t={};return e.replace(Z,(function(e){var i=e.length;switch(e[0]){case"G":t.era=4===i?"long":5===i?"narrow":"short";break;case"y":t.year=2===i?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][i-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][i-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===i?"long":5===i?"narrow":"short";break;case"e":if(i<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][i-4];break;case"c":if(i<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][i-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][i-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][i-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][i-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][i-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][i-1];break;case"s":t.second=["numeric","2-digit"][i-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=i<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}var J=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function ee(e){return e.replace(/^(.*?)-/,"")}var te=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,ie=/^(@+)?(\+|#+)?[rs]?$/g,re=/(\*)(0+)|(#+)(0+)|(0+)/g,ne=/^(0+)$/;function oe(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(ie,(function(e,i,r){return"string"!=typeof r?(t.minimumSignificantDigits=i.length,t.maximumSignificantDigits=i.length):"+"===r?t.minimumSignificantDigits=i.length:"#"===i[0]?t.maximumSignificantDigits=i.length:(t.minimumSignificantDigits=i.length,t.maximumSignificantDigits=i.length+("string"==typeof r?r.length:0)),""})),t}function se(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function ae(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var i=e.slice(0,2);if("+!"===i?(t.signDisplay="always",e=e.slice(2)):"+?"===i&&(t.signDisplay="exceptZero",e=e.slice(2)),!ne.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function le(e){return se(e)||{}}function he(e){for(var t={},i=0,r=e;i<r.length;i++){var n=r[i];switch(n.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=n.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=ee(n.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=S(S(S({},t),{notation:"scientific"}),n.options.reduce((function(e,t){return S(S({},e),le(t))}),{}));continue;case"engineering":t=S(S(S({},t),{notation:"engineering"}),n.options.reduce((function(e,t){return S(S({},e),le(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(n.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(n.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");n.options[0].replace(re,(function(e,i,r,n,o,s){if(i)t.minimumIntegerDigits=r.length;else{if(n&&o)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(ne.test(n.stem))t.minimumIntegerDigits=n.stem.length;else if(te.test(n.stem)){if(n.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(te,(function(e,i,r,n,o,s){return"*"===r?t.minimumFractionDigits=i.length:n&&"#"===n[0]?t.maximumFractionDigits=n.length:o&&s?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+s.length):(t.minimumFractionDigits=i.length,t.maximumFractionDigits=i.length),""}));var o=n.options[0];"w"===o?t=S(S({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=S(S({},t),oe(o)))}else if(ie.test(n.stem))t=S(S({},t),oe(n.stem));else{var s=se(n.stem);s&&(t=S(S({},t),s));var a=ae(n.stem);a&&(t=S(S({},t),a))}}return t}var ce={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function de(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var i,r=e.language;return"root"!==r&&(i=e.maximize().region),(ce[i||""]||ce[r||""]||ce["".concat(r,"-001")]||ce["001"])[0]}var ue,me=new RegExp("^".concat(W.source,"*")),pe=new RegExp("".concat(W.source,"*$"));function _e(e,t){return{start:e,end:t}}var fe=!!String.prototype.startsWith&&"_a".startsWith("a",1),ve=!!String.fromCodePoint,ge=!!Object.fromEntries,Ee=!!String.prototype.codePointAt,be=!!String.prototype.trimStart,ye=!!String.prototype.trimEnd,we=Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},ke=!0;try{ke="a"===(null===(ue=Re("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===ue?void 0:ue[0])}catch(w){ke=!1}var xe,Se=fe?function(e,t,i){return e.startsWith(t,i)}:function(e,t,i){return e.slice(i,i+t.length)===t},Ae=ve?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var i,r="",n=e.length,o=0;n>o;){if((i=e[o++])>1114111)throw RangeError(i+" is not a valid code point");r+=i<65536?String.fromCharCode(i):String.fromCharCode(55296+((i-=65536)>>10),i%1024+56320)}return r},Ie=ge?Object.fromEntries:function(e){for(var t={},i=0,r=e;i<r.length;i++){var n=r[i];t[n[0]]=n[1]}return t},Ce=Ee?function(e,t){return e.codePointAt(t)}:function(e,t){var i=e.length;if(!(t<0||t>=i)){var r,n=e.charCodeAt(t);return n<55296||n>56319||t+1===i||(r=e.charCodeAt(t+1))<56320||r>57343?n:r-56320+(n-55296<<10)+65536}},De=be?function(e){return e.trimStart()}:function(e){return e.replace(me,"")},Te=ye?function(e){return e.trimEnd()}:function(e){return e.replace(pe,"")};function Re(e,t){return new RegExp(e,t)}if(ke){var Ne=Re("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");xe=function(e,t){var i;return Ne.lastIndex=t,null!==(i=Ne.exec(e)[1])&&void 0!==i?i:""}}else xe=function(e,t){for(var i=[];;){var r=Ce(e,t);if(void 0===r||Ue(r)||Be(r))break;i.push(r),t+=r>=65536?2:1}return Ae.apply(void 0,i)};var Oe,ze=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,i){for(var r=[];!this.isEOF();){var n=this.char();if(123===n){if((o=this.parseArgument(e,i)).err)return o;r.push(o.val)}else{if(125===n&&e>0)break;if(35!==n||"plural"!==t&&"selectordinal"!==t){if(60===n&&!this.ignoreTag&&47===this.peek()){if(i)break;return this.error(N.UNMATCHED_CLOSING_TAG,_e(this.clonePosition(),this.clonePosition()))}if(60===n&&!this.ignoreTag&&Ge(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;r.push(o.val)}else{var o;if((o=this.parseLiteral(e,t)).err)return o;r.push(o.val)}}else{var s=this.clonePosition();this.bump(),r.push({type:O.pound,location:_e(s,this.clonePosition())})}}}return{val:r,err:null}},e.prototype.parseTag=function(e,t){var i=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:O.literal,value:"<".concat(r,"/>"),location:_e(i,this.clonePosition())},err:null};if(this.bumpIf(">")){var n=this.parseMessage(e+1,t,!0);if(n.err)return n;var o=n.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Ge(this.char()))return this.error(N.INVALID_TAG,_e(s,this.clonePosition()));var a=this.clonePosition();return r!==this.parseTagName()?this.error(N.UNMATCHED_CLOSING_TAG,_e(a,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:O.tag,value:r,children:o,location:_e(i,this.clonePosition())},err:null}:this.error(N.INVALID_TAG,_e(s,this.clonePosition())))}return this.error(N.UNCLOSED_TAG,_e(i,this.clonePosition()))}return this.error(N.INVALID_TAG,_e(i,this.clonePosition()))},e.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&Me(this.char());)this.bump();return this.message.slice(e,this.offset())},e.prototype.parseLiteral=function(e,t){for(var i=this.clonePosition(),r="";;){var n=this.tryParseQuote(t);if(n)r+=n;else{var o=this.tryParseUnquoted(e,t);if(o)r+=o;else{var s=this.tryParseLeftAngleBracket();if(!s)break;r+=s}}}var a=_e(i,this.clonePosition());return{val:{type:O.literal,value:r,location:a},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&function(e){return Ge(e)||47===e}(this.peek()||0)?null:(this.bump(),"<")},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var i=this.char();if(39===i){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(i);this.bump()}return Ae.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var i=this.char();return 60===i||123===i||35===i&&("plural"===t||"selectordinal"===t)||125===i&&e>0?null:(this.bump(),Ae(i))},e.prototype.parseArgument=function(e,t){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(N.EXPECT_ARGUMENT_CLOSING_BRACE,_e(i,this.clonePosition()));if(125===this.char())return this.bump(),this.error(N.EMPTY_ARGUMENT,_e(i,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(N.MALFORMED_ARGUMENT,_e(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(N.EXPECT_ARGUMENT_CLOSING_BRACE,_e(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:O.argument,value:r,location:_e(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(N.EXPECT_ARGUMENT_CLOSING_BRACE,_e(i,this.clonePosition())):this.parseArgumentOptions(e,t,r,i);default:return this.error(N.MALFORMED_ARGUMENT,_e(i,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),i=xe(this.message,t);return this.bumpTo(t+i.length),{value:i,location:_e(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,i,r){var n,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(N.EXPECT_ARGUMENT_TYPE,_e(o,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition();if((v=this.parseSimpleArgStyleIfPossible()).err)return v;if(0===(m=Te(v.val)).length)return this.error(N.EXPECT_ARGUMENT_STYLE,_e(this.clonePosition(),this.clonePosition()));l={style:m,styleLocation:_e(h,this.clonePosition())}}if((g=this.tryParseArgumentClose(r)).err)return g;var c=_e(r,this.clonePosition());if(l&&Se(null==l?void 0:l.style,"::",0)){var d=De(l.style.slice(2));if("number"===s)return(v=this.parseNumberSkeletonFromString(d,l.styleLocation)).err?v:{val:{type:O.number,value:i,location:c,style:v.val},err:null};if(0===d.length)return this.error(N.EXPECT_DATE_TIME_SKELETON,c);var u=d;this.locale&&(u=function(e,t){for(var i="",r=0;r<e.length;r++){var n=e.charAt(r);if("j"===n){for(var o=0;r+1<e.length&&e.charAt(r+1)===n;)o++,r++;var s=1+(1&o),a=o<2?1:3+(o>>1),l=de(t);for(("H"==l||"k"==l)&&(a=0);a-- >0;)i+="a";for(;s-- >0;)i=l+i}else i+="J"===n?"H":n}return i}(d,this.locale));var m={type:z.dateTime,pattern:u,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?Q(u):{}};return{val:{type:"date"===s?O.date:O.time,value:i,location:c,style:m},err:null}}return{val:{type:"number"===s?O.number:"date"===s?O.date:O.time,value:i,location:c,style:null!==(n=null==l?void 0:l.style)&&void 0!==n?n:null},err:null};case"plural":case"selectordinal":case"select":var p=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(N.EXPECT_SELECT_ARGUMENT_OPTIONS,_e(p,S({},p)));this.bumpSpace();var _=this.parseIdentifierIfPossible(),f=0;if("select"!==s&&"offset"===_.value){if(!this.bumpIf(":"))return this.error(N.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,_e(this.clonePosition(),this.clonePosition()));var v;if(this.bumpSpace(),(v=this.tryParseDecimalInteger(N.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,N.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return v;this.bumpSpace(),_=this.parseIdentifierIfPossible(),f=v.val}var g,E=this.tryParsePluralOrSelectOptions(e,s,t,_);if(E.err)return E;if((g=this.tryParseArgumentClose(r)).err)return g;var b=_e(r,this.clonePosition());return"select"===s?{val:{type:O.select,value:i,options:Ie(E.val),location:b},err:null}:{val:{type:O.plural,value:i,options:Ie(E.val),offset:f,pluralType:"plural"===s?"cardinal":"ordinal",location:b},err:null};default:return this.error(N.INVALID_ARGUMENT_TYPE,_e(o,a))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(N.EXPECT_ARGUMENT_CLOSING_BRACE,_e(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(N.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,_e(i,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var i=[];try{i=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=e.split(J).filter((function(e){return e.length>0})),i=[],r=0,n=t;r<n.length;r++){var o=n[r].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var s=o[0],a=o.slice(1),l=0,h=a;l<h.length;l++)if(0===h[l].length)throw new Error("Invalid number skeleton");i.push({stem:s,options:a})}return i}(e)}catch(e){return this.error(N.INVALID_NUMBER_SKELETON,t)}return{val:{type:z.number,tokens:i,location:t,parsedOptions:this.shouldParseSkeletons?he(i):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,i,r){for(var n,o=!1,s=[],a=new Set,l=r.value,h=r.location;;){if(0===l.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var d=this.tryParseDecimalInteger(N.EXPECT_PLURAL_ARGUMENT_SELECTOR,N.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;h=_e(c,this.clonePosition()),l=this.message.slice(c.offset,this.offset())}if(a.has(l))return this.error("select"===t?N.DUPLICATE_SELECT_ARGUMENT_SELECTOR:N.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,h);"other"===l&&(o=!0),this.bumpSpace();var u=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?N.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:N.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,_e(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(e+1,t,i);if(m.err)return m;var p=this.tryParseArgumentClose(u);if(p.err)return p;s.push([l,{value:m.val,location:_e(u,this.clonePosition())}]),a.add(l),this.bumpSpace(),l=(n=this.parseIdentifierIfPossible()).value,h=n.location}return 0===s.length?this.error("select"===t?N.EXPECT_SELECT_ARGUMENT_SELECTOR:N.EXPECT_PLURAL_ARGUMENT_SELECTOR,_e(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(N.MISSING_OTHER_CLAUSE,_e(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var i=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var n=!1,o=0;!this.isEOF();){var s=this.char();if(!(s>=48&&s<=57))break;n=!0,o=10*o+(s-48),this.bump()}var a=_e(r,this.clonePosition());return n?we(o*=i)?{val:o,err:null}:this.error(t,a):this.error(e,a)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Ce(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(Se(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),i=this.message.indexOf(e,t);return i>=0?(this.bumpTo(i),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Ue(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),i=this.message.charCodeAt(t+(e>=65536?2:1));return null!=i?i:null},e}();function Ge(e){return e>=97&&e<=122||e>=65&&e<=90}function Me(e){return 45===e||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Ue(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function Be(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function Pe(e){e.forEach((function(e){if(delete e.location,H(e)||V(e))for(var t in e.options)delete e.options[t].location,Pe(e.options[t].value);else j(e)&&K(e.style)||(F(e)||q(e))&&Y(e.style)?delete e.style.location:X(e)&&Pe(e.children)}))}function Le(e,t){void 0===t&&(t={}),t=S({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var i=new ze(e,t).parse();if(i.err){var r=SyntaxError(N[i.err.kind]);throw r.location=i.err.location,r.originalMessage=i.err.message,r}return null!=t&&t.captureLocation||Pe(i.val),i.val}!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(Oe||(Oe={}));var je,Fe=function(e){function t(t,i,r){var n=e.call(this,t)||this;return n.code=i,n.originalMessage=r,n}return x(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),qe=function(e){function t(t,i,r,n){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(i,'". Options are "').concat(Object.keys(r).join('", "'),'"'),Oe.INVALID_VALUE,n)||this}return x(t,e),t}(Fe),He=function(e){function t(t,i,r){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(i),Oe.INVALID_VALUE,r)||this}return x(t,e),t}(Fe),Ve=function(e){function t(t,i){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(i,'"'),Oe.MISSING_VALUE,i)||this}return x(t,e),t}(Fe);function $e(e){return"function"==typeof e}function Xe(e,t,i,r,n,o,s){if(1===e.length&&P(e[0]))return[{type:je.literal,value:e[0].value}];for(var a=[],l=0,h=e;l<h.length;l++){var c=h[l];if(P(c))a.push({type:je.literal,value:c.value});else if($(c))"number"==typeof o&&a.push({type:je.literal,value:i.getNumberFormat(t).format(o)});else{var d=c.value;if(!n||!(d in n))throw new Ve(d,s);var u=n[d];if(L(c))(!u||"string"==typeof u||"number"==typeof u)&&(u="string"==typeof u||"number"==typeof u?String(u):""),a.push({type:"string"==typeof u?je.literal:je.object,value:u});else if(F(c)){var m="string"==typeof c.style?r.date[c.style]:Y(c.style)?c.style.parsedOptions:void 0;a.push({type:je.literal,value:i.getDateTimeFormat(t,m).format(u)})}else if(q(c))m="string"==typeof c.style?r.time[c.style]:Y(c.style)?c.style.parsedOptions:r.time.medium,a.push({type:je.literal,value:i.getDateTimeFormat(t,m).format(u)});else if(j(c))(m="string"==typeof c.style?r.number[c.style]:K(c.style)?c.style.parsedOptions:void 0)&&m.scale&&(u*=m.scale||1),a.push({type:je.literal,value:i.getNumberFormat(t,m).format(u)});else{if(X(c)){var p=c.children,_=c.value,f=n[_];if(!$e(f))throw new He(_,"function",s);var v=f(Xe(p,t,i,r,n,o).map((function(e){return e.value})));Array.isArray(v)||(v=[v]),a.push.apply(a,v.map((function(e){return{type:"string"==typeof e?je.literal:je.object,value:e}})))}if(H(c)){if(!(g=c.options[u]||c.options.other))throw new qe(c.value,u,Object.keys(c.options),s);a.push.apply(a,Xe(g.value,t,i,r,n))}else if(V(c)){var g;if(!(g=c.options["=".concat(u)])){if(!Intl.PluralRules)throw new Fe('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Oe.MISSING_INTL_API,s);var E=i.getPluralRules(t,{type:c.pluralType}).select(u-(c.offset||0));g=c.options[E]||c.options.other}if(!g)throw new qe(c.value,u,Object.keys(c.options),s);a.push.apply(a,Xe(g.value,t,i,r,n,u-(c.offset||0)))}}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var i=e[e.length-1];return i&&i.type===je.literal&&t.type===je.literal?i.value+=t.value:e.push(t),e}),[])}(a)}function Ke(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,i){e[t]=i}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(je||(je={}));var Ye=function(){function e(t,i,r,n){void 0===i&&(i=e.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=o.formatToParts(e);if(1===t.length)return t[0].value;var i=t.reduce((function(e,t){return e.length&&t.type===je.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return i.length<=1?i[0]||"":i},this.formatToParts=function(e){return Xe(o.ast,o.locales,o.formatters,o.formats,e,void 0,o.message)},this.resolvedOptions=function(){var e;return{locale:(null===(e=o.resolvedLocale)||void 0===e?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=i,this.resolvedLocale=e.resolveLocale(i),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=function(e,t){var i={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(i[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(r=Object.getOwnPropertySymbols(e);n<r.length;n++)t.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(i[r[n]]=e[r[n]])}return i}(n||{},["formatters"]);this.ast=e.__parse(t,S(S({},s),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=function(e,t){return t?Object.keys(e).reduce((function(i,r){return i[r]=function(e,t){return t?S(S(S({},e||{}),t||{}),Object.keys(e).reduce((function(i,r){return i[r]=S(S({},e[r]),t[r]||{}),i}),{})):e}(e[r],t[r]),i}),S({},e)):e}(e.formats,r),this.formatters=n&&n.formatters||function(e){return void 0===e&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:I((function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.NumberFormat).bind.apply(e,A([void 0],t,!1)))}),{cache:Ke(e.number),strategy:B.variadic}),getDateTimeFormat:I((function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.DateTimeFormat).bind.apply(e,A([void 0],t,!1)))}),{cache:Ke(e.dateTime),strategy:B.variadic}),getPluralRules:I((function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.PluralRules).bind.apply(e,A([void 0],t,!1)))}),{cache:Ke(e.pluralRules),strategy:B.variadic})}}(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){if(void 0!==Intl.Locale){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])}},e.__parse=Le,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();const We={},Ze=(e,t,i)=>i&&(t in We||(We[t]={}),e in We[t]||(We[t][e]=i),i),Qe=(e,t)=>{if(null==t)return;if(t in We&&e in We[t])return We[t][e];const i=wt(t);for(let r=0;r<i.length;r++){const n=it(i[r],e);if(n)return Ze(e,t,n)}};let Je;const et=u({});function tt(e){return e in Je}function it(e,t){if(!tt(e))return null;const i=function(e){return Je[e]||null}(e);return function(e,t){if(null==t)return;if(t in e)return e[t];const i=t.split(".");let r=e;for(let e=0;e<i.length;e++)if("object"==typeof r){if(e>0){const t=i.slice(e,i.length).join(".");if(t in r){r=r[t];break}}r=r[i[e]]}else r=void 0;return r}(i,t)}function rt(e,...t){delete We[e],et.update((i=>(i[e]=y.all([i[e]||{},...t]),i)))}m([et],(([e])=>Object.keys(e))),et.subscribe((e=>Je=e));const nt={};function ot(e){return nt[e]}function st(e){return null!=e&&wt(e).some((e=>{var t;return null==(t=ot(e))?void 0:t.size}))}const at={};function lt(e){if(!st(e))return e in at?at[e]:Promise.resolve();const t=function(e){return wt(e).map((e=>{const t=ot(e);return[e,t?[...t]:[]]})).filter((([,e])=>e.length>0))}(e);return at[e]=Promise.all(t.map((([e,t])=>function(e,t){return Promise.all(t.map((t=>(function(e,t){nt[e].delete(t),0===nt[e].size&&delete nt[e]}(e,t),t().then((e=>e.default||e)))))).then((t=>rt(e,...t)))}(e,t)))).then((()=>{if(st(e))return lt(e);delete at[e]})),at[e]}const ht={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function ct(){return ht}const dt=u(!1);var ut=Object.defineProperty,mt=Object.defineProperties,pt=Object.getOwnPropertyDescriptors,_t=Object.getOwnPropertySymbols,ft=Object.prototype.hasOwnProperty,vt=Object.prototype.propertyIsEnumerable,gt=(e,t,i)=>t in e?ut(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;let Et;const bt=u(null);function yt(e){return e.split("-").map(((e,t,i)=>i.slice(0,t+1).join("-"))).reverse()}function wt(e,t=ct().fallbackLocale){const i=yt(e);return t?[...new Set([...i,...yt(t)])]:i}function kt(){return null!=Et?Et:void 0}bt.subscribe((e=>{Et=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const xt=((e,t)=>mt(e,pt(t)))(((e,t)=>{for(var i in t||(t={}))ft.call(t,i)&&gt(e,i,t[i]);if(_t)for(var i of _t(t))vt.call(t,i)&&gt(e,i,t[i]);return e})({},bt),{set:e=>{if(e&&function(e){if(null==e)return;const t=wt(e);for(let e=0;e<t.length;e++){const i=t[e];if(tt(i))return i}}(e)&&st(e)){const{loadingDelay:t}=ct();let i;return"undefined"!=typeof window&&null!=kt()&&t?i=window.setTimeout((()=>dt.set(!0)),t):dt.set(!0),lt(e).then((()=>{bt.set(e)})).finally((()=>{clearTimeout(i),dt.set(!1)}))}return bt.set(e)}}),St=e=>{const t=Object.create(null);return i=>{const r=JSON.stringify(i);return r in t?t[r]:t[r]=e(i)}};var At=Object.defineProperty,It=Object.getOwnPropertySymbols,Ct=Object.prototype.hasOwnProperty,Dt=Object.prototype.propertyIsEnumerable,Tt=(e,t,i)=>t in e?At(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,Rt=(e,t)=>{for(var i in t||(t={}))Ct.call(t,i)&&Tt(e,i,t[i]);if(It)for(var i of It(t))Dt.call(t,i)&&Tt(e,i,t[i]);return e},Nt=(e,t)=>{var i={};for(var r in e)Ct.call(e,r)&&t.indexOf(r)<0&&(i[r]=e[r]);if(null!=e&&It)for(var r of It(e))t.indexOf(r)<0&&Dt.call(e,r)&&(i[r]=e[r]);return i};const Ot=(e,t)=>{const{formats:i}=ct();if(e in i&&t in i[e])return i[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},zt=St((e=>{var t=e,{locale:i,format:r}=t,n=Nt(t,["locale","format"]);if(null==i)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(n=Ot("number",r)),new Intl.NumberFormat(i,n)})),Gt=St((e=>{var t=e,{locale:i,format:r}=t,n=Nt(t,["locale","format"]);if(null==i)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?n=Ot("date",r):0===Object.keys(n).length&&(n=Ot("date","short")),new Intl.DateTimeFormat(i,n)})),Mt=St((e=>{var t=e,{locale:i,format:r}=t,n=Nt(t,["locale","format"]);if(null==i)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?n=Ot("time",r):0===Object.keys(n).length&&(n=Ot("time","short")),new Intl.DateTimeFormat(i,n)})),Ut=St(((e,t=kt())=>new Ye(e,t,ct().formats,{ignoreTag:ct().ignoreTag}))),Bt=(e,t={})=>{var i,r,n,o;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:l=kt(),default:h}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Qe(e,l);if(c){if("string"!=typeof c)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c}else c=null!=(o=null!=(n=null==(r=(i=ct()).handleMissingMessage)?void 0:r.call(i,{locale:l,id:e,defaultValue:h}))?n:h)?o:e;if(!a)return c;let d=c;try{d=Ut(c,l).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return d},Pt=(e,t)=>((e={})=>{var t=e,{locale:i=kt()}=t,r=Nt(t,["locale"]);return Mt(Rt({locale:i},r))})(t).format(e),Lt=(e,t)=>((e={})=>{var t=e,{locale:i=kt()}=t,r=Nt(t,["locale"]);return Gt(Rt({locale:i},r))})(t).format(e),jt=(e,t)=>((e={})=>{var t=e,{locale:i=kt()}=t,r=Nt(t,["locale"]);return zt(Rt({locale:i},r))})(t).format(e),Ft=(e,t=kt())=>Qe(e,t),qt=m([xt,et],(()=>Bt));function Ht(e,t){rt(e,t)}m([xt],(()=>Pt)),m([xt],(()=>Lt)),m([xt],(()=>jt)),m([xt,et],(()=>Ft));const Vt={en:{invalidUrl:"Failed to construct 'URL': Invalid URL",fetchConsentsError:"Error: Could not fetch consents.",fetchPlayerConsentsError:"Error: Could not fetch player consents.",fetchConsentsCategoriesError:"Error: Could not fetch consents categories",updateConsentsError:"Error: Could not update consents.",saveChangesError:"Error: Could not save changes.",mustAcceptError:"Mandatory consents must be accepted.",title:"Consents",saveButtonContent:"Save Consents",description:"Here, you can explore and manage your preferences regarding how we collect and utilize your data. Your privacy matters to us, and this tool empowers you to make informed choices about your online experience.",marketing__category:"Marketing",Other__category:"Other",privacy__category:"Privacy and Data Sharing",dataSharing__name:"Data Sharing",dataSharing__description:"Data Sharing consent",emailMarketing__name:"Email Marketing",emailMarketing__description:"Email Marketing consent",smsMarketing__name:"SMS Marketing",smsMarketing__description:"SMS Marketing consent",cookiesAndTracking__name:"Cookies and Tracking",cookiesAndTracking__description:"Cookies and Tracking consent",termsandconditions__description:"Needed to prove user accepted terms and conditions.",emailmarketing__description:"Needed to prove email marketing consent.",sms__description:"Needed to prove sms marketing consent.","3rdparty__description":"Needed to prove 3rd party marketing consent.",noDataFound:"No data found for consents.",loading:"Loading...please wait",requiredError:"This field is mandatory",wrongModalConfig:"There was an error with the config! No expired consents found."},"zh-hk":{invalidUrl:"無法構建 'URL': 無效的URL",fetchConsentsError:"錯誤: 無法獲取同意。",fetchPlayerConsentsError:"錯誤: 無法獲取玩家同意。",fetchConsentsCategoriesError:"錯誤: 無法獲取同意類別。",updateConsentsError:"錯誤: 無法更新同意。",saveChangesError:"錯誤: 無法保存更改。",mustAcceptError:"必須接受強制性同意。",title:"同意",saveButtonContent:"保存同意",description:"在此,您可以探索和管理有關我們如何收集和使用您的數據的偏好。您的隱私對我們非常重要,這個工具可幫助您對您的在線體驗做出知情選擇。",marketing__category:"市場推廣",Other__category:"其他",privacy__category:"隱私與數據共享",dataSharing__name:"數據共享",dataSharing__description:"數據共享同意",emailMarketing__name:"電子郵件市場推廣",emailMarketing__description:"電子郵件市場推廣同意",smsMarketing__name:"短信市場推廣",smsMarketing__description:"短信市場推廣同意",cookiesAndTracking__name:"Cookies與追蹤",cookiesAndTracking__description:"Cookies與追蹤同意",termsandconditions__description:"用於證明用戶接受條款和條件。",emailmarketing__description:"用於證明電子郵件市場推廣同意。",sms__description:"用於證明短信市場推廣同意。","3rdparty__description":"用於證明第三方市場推廣同意。",noDataFound:"未找到同意數據。",loading:"加載中...請稍候",requiredError:"此字段為必填項",wrongModalConfig:"配置出錯!未找到過期的同意。"},de:{invalidUrl:"Fehler beim Erstellen von 'URL': Ungültige URL",fetchConsentsError:"Fehler: Konnte Einwilligungen nicht abrufen.",fetchPlayerConsentsError:"Fehler: Konnte Spielereinwilligungen nicht abrufen.",fetchConsentsCategoriesError:"Fehler: Konnte Einwilligungskategorien nicht abrufen.",updateConsentsError:"Fehler: Konnte Einwilligungen nicht aktualisieren.",saveChangesError:"Fehler: Änderungen konnten nicht gespeichert werden.",mustAcceptError:"Pflicht-Einwilligungen müssen akzeptiert werden.",title:"Einwilligungen",saveButtonContent:"Einwilligungen speichern",description:"Hier können Sie Ihre Präferenzen dazu verwalten, wie wir Ihre Daten sammeln und nutzen. Ihre Privatsphäre ist uns wichtig, und dieses Tool ermöglicht es Ihnen, informierte Entscheidungen über Ihr Online-Erlebnis zu treffen.",marketing__category:"Marketing",Other__category:"Sonstiges",privacy__category:"Datenschutz und Datenfreigabe",dataSharing__name:"Datenfreigabe",dataSharing__description:"Einwilligung zur Datenfreigabe",emailMarketing__name:"E-Mail-Marketing",emailMarketing__description:"Einwilligung für E-Mail-Marketing",smsMarketing__name:"SMS-Marketing",smsMarketing__description:"Einwilligung für SMS-Marketing",cookiesAndTracking__name:"Cookies und Tracking",cookiesAndTracking__description:"Einwilligung für Cookies und Tracking",termsandconditions__description:"Erforderlich, um nachzuweisen, dass der Benutzer die Bedingungen akzeptiert hat.",emailmarketing__description:"Erforderlich, um die Einwilligung für E-Mail-Marketing nachzuweisen.",sms__description:"Erforderlich, um die Einwilligung für SMS-Marketing nachzuweisen.","3rdparty__description":"Erforderlich, um die Einwilligung für Drittanbieter-Marketing nachzuweisen.",noDataFound:"Keine Daten zu Einwilligungen gefunden.",loading:"Wird geladen... bitte warten",requiredError:"Dieses Feld ist erforderlich",wrongModalConfig:"Ein Fehler in der Konfiguration ist aufgetreten! Keine abgelaufenen Einwilligungen gefunden."},it:{invalidUrl:"Impossibile costruire 'URL': URL non valido",fetchConsentsError:"Errore: Impossibile recuperare i consensi.",fetchPlayerConsentsError:"Errore: Impossibile recuperare i consensi del giocatore.",fetchConsentsCategoriesError:"Errore: Impossibile recuperare le categorie di consenso.",updateConsentsError:"Errore: Impossibile aggiornare i consensi.",saveChangesError:"Errore: Impossibile salvare le modifiche.",mustAcceptError:"I consensi obbligatori devono essere accettati.",title:"Consensi",saveButtonContent:"Salva Consensi",description:"Qui puoi esplorare e gestire le tue preferenze su come raccogliamo e utilizziamo i tuoi dati. La tua privacy è importante per noi e questo strumento ti consente di fare scelte informate sulla tua esperienza online.",marketing__category:"Marketing",Other__category:"Altro",privacy__category:"Privacy e Condivisione dei Dati",dataSharing__name:"Condivisione dei Dati",dataSharing__description:"Consenso alla condivisione dei dati",emailMarketing__name:"Email Marketing",emailMarketing__description:"Consenso all'email marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Consenso all'SMS marketing",cookiesAndTracking__name:"Cookies e Tracciamento",cookiesAndTracking__description:"Consenso ai cookies e tracciamento",termsandconditions__description:"Necessario per dimostrare che l'utente ha accettato i termini e le condizioni.",emailmarketing__description:"Necessario per dimostrare il consenso all'email marketing.",sms__description:"Necessario per dimostrare il consenso all'SMS marketing.","3rdparty__description":"Necessario per dimostrare il consenso al marketing di terze parti.",noDataFound:"Nessun dato trovato per i consensi.",loading:"Caricamento... attendere",requiredError:"Questo campo è obbligatorio",wrongModalConfig:"Si è verificato un errore con la configurazione! Nessun consenso scaduto trovato."},fr:{invalidUrl:"Impossible de construire 'URL' : URL invalide",fetchConsentsError:"Erreur : Impossible de récupérer les consentements.",fetchPlayerConsentsError:"Erreur : Impossible de récupérer les consentements des joueurs.",fetchConsentsCategoriesError:"Erreur : Impossible de récupérer les catégories de consentement.",updateConsentsError:"Erreur : Impossible de mettre à jour les consentements.",saveChangesError:"Erreur : Impossible d'enregistrer les modifications.",mustAcceptError:"Les consentements obligatoires doivent être acceptés.",title:"Consentements",saveButtonContent:"Enregistrer les Consentements",description:"Ici, vous pouvez explorer et gérer vos préférences concernant la manière dont nous collectons et utilisons vos données. Votre vie privée est importante pour nous, et cet outil vous permet de faire des choix éclairés sur votre expérience en ligne.",marketing__category:"Marketing",Other__category:"Autre",privacy__category:"Confidentialité et Partage des Données",dataSharing__name:"Partage des Données",dataSharing__description:"Consentement au partage des données",emailMarketing__name:"Marketing par Email",emailMarketing__description:"Consentement au marketing par email",smsMarketing__name:"Marketing par SMS",smsMarketing__description:"Consentement au marketing par SMS",cookiesAndTracking__name:"Cookies et Suivi",cookiesAndTracking__description:"Consentement aux cookies et au suivi",termsandconditions__description:"Nécessaire pour prouver que l'utilisateur a accepté les termes et conditions.",emailmarketing__description:"Nécessaire pour prouver le consentement au marketing par email.",sms__description:"Nécessaire pour prouver le consentement au marketing par SMS.","3rdparty__description":"Nécessaire pour prouver le consentement au marketing tiers.",noDataFound:"Aucune donnée trouvée pour les consentements.",loading:"Chargement... veuillez patienter",requiredError:"Ce champ est obligatoire",wrongModalConfig:"Une erreur s'est produite avec la configuration ! Aucun consentement expiré trouvé."},es:{invalidUrl:"Error al construir 'URL': URL no válida",fetchConsentsError:"Error: No se pudieron obtener los consentimientos.",fetchPlayerConsentsError:"Error: No se pudieron obtener los consentimientos del jugador.",fetchConsentsCategoriesError:"Error: No se pudieron obtener las categorías de consentimiento.",updateConsentsError:"Error: No se pudieron actualizar los consentimientos.",saveChangesError:"Error: No se pudieron guardar los cambios.",mustAcceptError:"Se deben aceptar los consentimientos obligatorios.",title:"Consentimientos",saveButtonContent:"Guardar Consentimientos",description:"Aquí puedes explorar y gestionar tus preferencias sobre cómo recopilamos y utilizamos tus datos. Tu privacidad es importante para nosotros y esta herramienta te permite tomar decisiones informadas sobre tu experiencia en línea.",marketing__category:"Marketing",Other__category:"Otro",privacy__category:"Privacidad y Compartir Datos",dataSharing__name:"Compartir Datos",dataSharing__description:"Consentimiento para compartir datos",emailMarketing__name:"Email Marketing",emailMarketing__description:"Consentimiento para email marketing",smsMarketing__name:"Marketing por SMS",smsMarketing__description:"Consentimiento para marketing por SMS",cookiesAndTracking__name:"Cookies y Seguimiento",cookiesAndTracking__description:"Consentimiento para cookies y seguimiento",termsandconditions__description:"Necesario para demostrar que el usuario aceptó los términos y condiciones.",emailmarketing__description:"Necesario para demostrar el consentimiento para email marketing.",sms__description:"Necesario para demostrar el consentimiento para marketing por SMS.","3rdparty__description":"Necesario para demostrar el consentimiento para marketing de terceros.",noDataFound:"No se encontraron datos para los consentimientos.",loading:"Cargando... por favor espera",requiredError:"Este campo es obligatorio",wrongModalConfig:"¡Hubo un error con la configuración! No se encontraron consentimientos expirados."},el:{invalidUrl:"Αποτυχία δημιουργίας 'URL': Μη έγκυρη διεύθυνση URL",fetchConsentsError:"Σφάλμα: Δεν ήταν δυνατή η ανάκτηση των συναινέσεων.",fetchPlayerConsentsError:"Σφάλμα: Δεν ήταν δυνατή η ανάκτηση των συναινέσεων παικτών.",fetchConsentsCategoriesError:"Σφάλμα: Δεν ήταν δυνατή η ανάκτηση των κατηγοριών συναινέσεων.",updateConsentsError:"Σφάλμα: Δεν ήταν δυνατή η ενημέρωση των συναινέσεων.",saveChangesError:"Σφάλμα: Δεν ήταν δυνατή η αποθήκευση των αλλαγών.",mustAcceptError:"Πρέπει να αποδεχτείτε τις υποχρεωτικές συναινέσεις.",title:"Συναινέσεις",saveButtonContent:"Αποθήκευση Συναινέσεων",description:"Εδώ μπορείτε να εξερευνήσετε και να διαχειριστείτε τις προτιμήσεις σας σχετικά με το πώς συλλέγουμε και χρησιμοποιούμε τα δεδομένα σας. Η ιδιωτικότητά σας έχει σημασία για εμάς και αυτό το εργαλείο σας δίνει τη δυνατότητα να κάνετε ενημερωμένες επιλογές για την εμπειρία σας στο διαδίκτυο.",marketing__category:"Μάρκετινγκ",Other__category:"Άλλο",privacy__category:"Ιδιωτικότητα και Κοινοποίηση Δεδομένων",dataSharing__name:"Κοινοποίηση Δεδομένων",dataSharing__description:"Συναίνεση για κοινοποίηση δεδομένων",emailMarketing__name:"Email Marketing",emailMarketing__description:"Συναίνεση για email marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Συναίνεση για SMS marketing",cookiesAndTracking__name:"Cookies και Παρακολούθηση",cookiesAndTracking__description:"Συναίνεση για cookies και παρακολούθηση",termsandconditions__description:"Απαιτείται για να αποδειχθεί ότι ο χρήστης αποδέχτηκε τους όρους και τις προϋποθέσεις.",emailmarketing__description:"Απαιτείται για να αποδειχθεί η συναίνεση για email marketing.",sms__description:"Απαιτείται για να αποδειχθεί η συναίνεση για SMS marketing.","3rdparty__description":"Απαιτείται για να αποδειχθεί η συναίνεση για marketing τρίτων.",noDataFound:"Δεν βρέθηκαν δεδομένα για τις συναινέσεις.",loading:"Φόρτωση... παρακαλώ περιμένετε",requiredError:"Αυτό το πεδίο είναι υποχρεωτικό",wrongModalConfig:"Παρουσιάστηκε σφάλμα με τη ρύθμιση! Δεν βρέθηκαν ληγμένες συναινέσεις."},tr:{invalidUrl:"'URL' oluşturulamadı: Geçersiz URL",fetchConsentsError:"Hata: Onaylar alınamadı.",fetchPlayerConsentsError:"Hata: Oyuncu onayları alınamadı.",fetchConsentsCategoriesError:"Hata: Onay kategorileri alınamadı.",updateConsentsError:"Hata: Onaylar güncellenemedi.",saveChangesError:"Hata: Değişiklikler kaydedilemedi.",mustAcceptError:"Zorunlu onaylar kabul edilmelidir.",title:"Onaylar",saveButtonContent:"Onayları Kaydet",description:"Burada, verilerinizi nasıl topladığımız ve kullandığımızla ilgili tercihlerinizi keşfedebilir ve yönetebilirsiniz. Gizliliğiniz bizim için önemlidir ve bu araç, çevrimiçi deneyiminiz hakkında bilinçli seçimler yapmanızı sağlar.",marketing__category:"Pazarlama",Other__category:"Diğer",privacy__category:"Gizlilik ve Veri Paylaşımı",dataSharing__name:"Veri Paylaşımı",dataSharing__description:"Veri paylaşımı onayı",emailMarketing__name:"E-posta Pazarlama",emailMarketing__description:"E-posta pazarlama onayı",smsMarketing__name:"SMS Pazarlama",smsMarketing__description:"SMS pazarlama onayı",cookiesAndTracking__name:"Çerezler ve İzleme",cookiesAndTracking__description:"Çerezler ve izleme onayı",termsandconditions__description:"Kullanıcının şartları ve koşulları kabul ettiğini kanıtlamak için gereklidir.",emailmarketing__description:"E-posta pazarlama onayı kanıtlamak için gereklidir.",sms__description:"SMS pazarlama onayı kanıtlamak için gereklidir.","3rdparty__description":"Üçüncü taraf pazarlama onayı kanıtlamak için gereklidir.",noDataFound:"Onaylarla ilgili veri bulunamadı.",loading:"Yükleniyor... lütfen bekleyin",requiredError:"Bu alan zorunludur",wrongModalConfig:"Yapılandırmada bir hata oluştu! Süresi dolmuş onay bulunamadı."},ru:{invalidUrl:"Не удалось создать 'URL': недопустимый URL",fetchConsentsError:"Ошибка: не удалось получить согласия.",fetchPlayerConsentsError:"Ошибка: не удалось получить согласия игроков.",fetchConsentsCategoriesError:"Ошибка: не удалось получить категории согласий.",updateConsentsError:"Ошибка: не удалось обновить согласия.",saveChangesError:"Ошибка: не удалось сохранить изменения.",mustAcceptError:"Обязательные согласия должны быть приняты.",title:"Согласия",saveButtonContent:"Сохранить согласия",description:"Здесь вы можете изучить и управлять своими предпочтениями относительно того, как мы собираем и используем ваши данные. Ваша конфиденциальность важна для нас, и этот инструмент помогает вам делать осознанный выбор о вашем онлайн-опыте.",marketing__category:"Маркетинг",Other__category:"Другое",privacy__category:"Конфиденциальность и Обмен Данными",dataSharing__name:"Обмен Данными",dataSharing__description:"Согласие на обмен данными",emailMarketing__name:"Email-Маркетинг",emailMarketing__description:"Согласие на email-маркетинг",smsMarketing__name:"SMS-Маркетинг",smsMarketing__description:"Согласие на SMS-маркетинг",cookiesAndTracking__name:"Cookies и Отслеживание",cookiesAndTracking__description:"Согласие на использование cookies и отслеживания",termsandconditions__description:"Необходимо для подтверждения принятия условий и положений.",emailmarketing__description:"Необходимо для подтверждения согласия на email-маркетинг.",sms__description:"Необходимо для подтверждения согласия на SMS-маркетинг.","3rdparty__description":"Необходимо для подтверждения согласия на маркетинг третьих лиц.",noDataFound:"Данные о согласиях не найдены.",loading:"Загрузка... пожалуйста, подождите",requiredError:"Это поле обязательно для заполнения",wrongModalConfig:"Произошла ошибка конфигурации! Истекшие согласия не найдены."},ro:{invalidUrl:"Nu s-a putut construi 'URL': URL invalid",fetchConsentsError:"Eroare: Nu s-au putut prelua consimțămintele.",fetchPlayerConsentsError:"Eroare: Nu s-au putut prelua consimțămintele utilizatorilor.",fetchConsentsCategoriesError:"Eroare: Nu s-au putut prelua categoriile de consimțământ.",updateConsentsError:"Eroare: Nu s-au putut actualiza consimțămintele.",saveChangesError:"Eroare: Nu s-au putut salva modificările.",mustAcceptError:"Consimțămintele obligatorii trebuie acceptate.",title:"Consimțăminte",saveButtonContent:"Salvează Consimțămintele",description:"Aici puteți explora și gestiona preferințele legate de modul în care colectăm și utilizăm datele dumneavoastră. Confidențialitatea dumneavoastră este importantă pentru noi, iar acest instrument vă ajută să luați decizii informate despre experiența dumneavoastră online.",marketing__category:"Marketing",Other__category:"Altele",privacy__category:"Confidențialitate și Partajare Date",dataSharing__name:"Partajare Date",dataSharing__description:"Consimțământ pentru partajarea datelor",emailMarketing__name:"Marketing prin Email",emailMarketing__description:"Consimțământ pentru marketing prin email",smsMarketing__name:"Marketing prin SMS",smsMarketing__description:"Consimțământ pentru marketing prin SMS",cookiesAndTracking__name:"Cookies și Urmărire",cookiesAndTracking__description:"Consimțământ pentru cookies și urmărire",termsandconditions__description:"Necesar pentru a demonstra acceptarea termenilor și condițiilor.",emailmarketing__description:"Necesar pentru a demonstra consimțământul pentru marketing prin email.",sms__description:"Necesar pentru a demonstra consimțământul pentru marketing prin SMS.","3rdparty__description":"Necesar pentru a demonstra consimțământul pentru marketing de la terți.",noDataFound:"Nu s-au găsit date pentru consimțăminte.",loading:"Se încarcă... vă rugăm să așteptați",requiredError:"Acest câmp este obligatoriu",wrongModalConfig:"A apărut o eroare în configurație! Nu s-au găsit consimțăminte expirate."},hr:{invalidUrl:"Nije moguće izraditi 'URL': Nevažeći URL",fetchConsentsError:"Greška: Nije moguće dohvatiti privole.",fetchPlayerConsentsError:"Greška: Nije moguće dohvatiti korisničke privole.",fetchConsentsCategoriesError:"Greška: Nije moguće dohvatiti kategorije privola.",updateConsentsError:"Greška: Nije moguće ažurirati privole.",saveChangesError:"Greška: Nije moguće spremiti promjene.",mustAcceptError:"Obavezne privole moraju biti prihvaćene.",title:"Privole",saveButtonContent:"Spremi Privole",description:"Ovdje možete istražiti i upravljati svojim preferencijama o tome kako prikupljamo i koristimo vaše podatke. Vaša privatnost nam je važna, a ovaj alat vam omogućuje donošenje informiranih odluka o vašem online iskustvu.",marketing__category:"Marketing",Other__category:"Ostalo",privacy__category:"Privatnost i Dijeljenje Podataka",dataSharing__name:"Dijeljenje Podataka",dataSharing__description:"Privola za dijeljenje podataka",emailMarketing__name:"Email Marketing",emailMarketing__description:"Privola za email marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Privola za SMS marketing",cookiesAndTracking__name:"Kolačići i Praćenje",cookiesAndTracking__description:"Privola za kolačiće i praćenje",termsandconditions__description:"Potrebno za dokazivanje prihvaćanja uvjeta korištenja.",emailmarketing__description:"Potrebno za dokazivanje privole za email marketing.",sms__description:"Potrebno za dokazivanje privole za SMS marketing.","3rdparty__description":"Potrebno za dokazivanje privole za marketing treće strane.",noDataFound:"Nema podataka o privolama.",loading:"Učitavanje... molimo pričekajte",requiredError:"Ovo polje je obavezno",wrongModalConfig:"Došlo je do pogreške u konfiguraciji! Nisu pronađene istekle privole."},hu:{invalidUrl:"Nem sikerült létrehozni az 'URL'-t: Érvénytelen URL",fetchConsentsError:"Hiba: Nem sikerült lekérni a hozzájárulásokat.",fetchPlayerConsentsError:"Hiba: Nem sikerült lekérni a játékosok hozzájárulásait.",fetchConsentsCategoriesError:"Hiba: Nem sikerült lekérni a hozzájárulások kategóriáit.",updateConsentsError:"Hiba: Nem sikerült frissíteni a hozzájárulásokat.",saveChangesError:"Hiba: Nem sikerült menteni a módosításokat.",mustAcceptError:"A kötelező hozzájárulásokat el kell fogadni.",title:"Hozzájárulások",saveButtonContent:"Hozzájárulások Mentése",description:"Itt kezelheti és megismerheti azokat a preferenciákat, amelyek meghatározzák, hogyan gyűjtjük és használjuk fel az adatait. Az Ön adatvédelme fontos számunkra, és ez az eszköz lehetővé teszi, hogy tájékozott döntéseket hozzon az online élményéről.",marketing__category:"Marketing",Other__category:"Egyéb",privacy__category:"Adatvédelem és Adatmegosztás",dataSharing__name:"Adatmegosztás",dataSharing__description:"Hozzájárulás az adatmegosztáshoz",emailMarketing__name:"E-mail Marketing",emailMarketing__description:"Hozzájárulás az e-mail marketinghez",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Hozzájárulás az SMS marketinghez",cookiesAndTracking__name:"Sütik és Követés",cookiesAndTracking__description:"Hozzájárulás a sütikhez és a követéshez",termsandconditions__description:"Szükséges az Általános Szerződési Feltételek elfogadásának igazolásához.",emailmarketing__description:"Szükséges az e-mail marketing hozzájárulásának igazolásához.",sms__description:"Szükséges az SMS marketing hozzájárulásának igazolásához.","3rdparty__description":"Szükséges a harmadik felek marketingjéhez való hozzájárulás igazolásához.",noDataFound:"Nem található adat a hozzájárulásokról.",loading:"Betöltés... kérjük, várjon",requiredError:"Ez a mező kötelező",wrongModalConfig:"Hiba történt a konfigurációval! Nem található lejárt hozzájárulás."},pl:{invalidUrl:"Nie udało się utworzyć 'URL': Nieprawidłowy URL",fetchConsentsError:"Błąd: Nie udało się pobrać zgód.",fetchPlayerConsentsError:"Błąd: Nie udało się pobrać zgód użytkowników.",fetchConsentsCategoriesError:"Błąd: Nie udało się pobrać kategorii zgód.",updateConsentsError:"Błąd: Nie udało się zaktualizować zgód.",saveChangesError:"Błąd: Nie udało się zapisać zmian.",mustAcceptError:"Obowiązkowe zgody muszą zostać zaakceptowane.",title:"Zgody",saveButtonContent:"Zapisz Zgody",description:"Tutaj możesz eksplorować i zarządzać swoimi preferencjami dotyczącymi tego, jak zbieramy i wykorzystujemy Twoje dane. Twoja prywatność jest dla nas ważna, a to narzędzie pozwala podejmować świadome decyzje dotyczące Twojego doświadczenia online.",marketing__category:"Marketing",Other__category:"Inne",privacy__category:"Prywatność i Udostępnianie Danych",dataSharing__name:"Udostępnianie Danych",dataSharing__description:"Zgoda na udostępnianie danych",emailMarketing__name:"E-mail Marketing",emailMarketing__description:"Zgoda na e-mail marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Zgoda na SMS marketing",cookiesAndTracking__name:"Pliki Cookie i Śledzenie",cookiesAndTracking__description:"Zgoda na pliki cookie i śledzenie",termsandconditions__description:"Wymagane do potwierdzenia akceptacji warunków i zasad.",emailmarketing__description:"Wymagane do potwierdzenia zgody na e-mail marketing.",sms__description:"Wymagane do potwierdzenia zgody na SMS marketing.","3rdparty__description":"Wymagane do potwierdzenia zgody na marketing podmiotów trzecich.",noDataFound:"Nie znaleziono danych dotyczących zgód.",loading:"Ładowanie... proszę czekać",requiredError:"To pole jest wymagane",wrongModalConfig:"Wystąpił błąd konfiguracji! Nie znaleziono wygasłych zgód."},pt:{invalidUrl:"Não foi possível criar 'URL': URL inválido",fetchConsentsError:"Erro: Não foi possível obter os consentimentos.",fetchPlayerConsentsError:"Erro: Não foi possível obter os consentimentos dos utilizadores.",fetchConsentsCategoriesError:"Erro: Não foi possível obter as categorias de consentimento.",updateConsentsError:"Erro: Não foi possível atualizar os consentimentos.",saveChangesError:"Erro: Não foi possível salvar as alterações.",mustAcceptError:"Os consentimentos obrigatórios devem ser aceitos.",title:"Consentimentos",saveButtonContent:"Salvar Consentimentos",description:"Aqui, pode explorar e gerir as suas preferências relativamente à forma como recolhemos e utilizamos os seus dados. A sua privacidade é importante para nós e esta ferramenta permite-lhe tomar decisões informadas sobre a sua experiência online.",marketing__category:"Marketing",Other__category:"Outros",privacy__category:"Privacidade e Partilha de Dados",dataSharing__name:"Partilha de Dados",dataSharing__description:"Consentimento para partilha de dados",emailMarketing__name:"Marketing por Email",emailMarketing__description:"Consentimento para marketing por email",smsMarketing__name:"Marketing por SMS",smsMarketing__description:"Consentimento para marketing por SMS",cookiesAndTracking__name:"Cookies e Rastreamento",cookiesAndTracking__description:"Consentimento para cookies e rastreamento",termsandconditions__description:"Necessário para comprovar a aceitação dos termos e condições.",emailmarketing__description:"Necessário para comprovar o consentimento para marketing por email.",sms__description:"Necessário para comprovar o consentimento para marketing por SMS.","3rdparty__description":"Necessário para comprovar o consentimento para marketing de terceiros.",noDataFound:"Nenhum dado encontrado para consentimentos.",loading:"Carregando... por favor, aguarde",requiredError:"Este campo é obrigatório",wrongModalConfig:"Ocorreu um erro na configuração! Nenhum consentimento expirado encontrado."},sl:{invalidUrl:"Ni bilo mogoče ustvariti 'URL': Neveljaven URL",fetchConsentsError:"Napaka: Ni bilo mogoče pridobiti soglasij.",fetchPlayerConsentsError:"Napaka: Ni bilo mogoče pridobiti uporabniških soglasij.",fetchConsentsCategoriesError:"Napaka: Ni bilo mogoče pridobiti kategorij soglasij.",updateConsentsError:"Napaka: Ni bilo mogoče posodobiti soglasij.",saveChangesError:"Napaka: Ni bilo mogoče shraniti sprememb.",mustAcceptError:"Obvezna soglasja je treba sprejeti.",title:"Soglasja",saveButtonContent:"Shrani Soglasja",description:"Tukaj lahko raziskujete in upravljate svoje nastavitve glede tega, kako zbiramo in uporabljamo vaše podatke. Vaša zasebnost je za nas pomembna, ta orodje pa vam omogoča informirane odločitve o vaši spletni izkušnji.",marketing__category:"Trženje",Other__category:"Drugo",privacy__category:"Zasebnost in Deljenje Podatkov",dataSharing__name:"Deljenje Podatkov",dataSharing__description:"Soglasje za deljenje podatkov",emailMarketing__name:"E-poštno Trženje",emailMarketing__description:"Soglasje za e-poštno trženje",smsMarketing__name:"SMS Trženje",smsMarketing__description:"Soglasje za SMS trženje",cookiesAndTracking__name:"Piškotki in Sledenje",cookiesAndTracking__description:"Soglasje za uporabo piškotkov in sledenja",termsandconditions__description:"Potrebno za potrditev sprejema pogojev in določil.",emailmarketing__description:"Potrebno za potrditev soglasja za e-poštno trženje.",sms__description:"Potrebno za potrditev soglasja za SMS trženje.","3rdparty__description":"Potrebno za potrditev soglasja za trženje tretjih oseb.",noDataFound:"Za soglasja ni bilo najdenih podatkov.",loading:"Nalaganje... prosimo, počakajte",requiredError:"To polje je obvezno",wrongModalConfig:"Prišlo je do napake v konfiguraciji! Potečena soglasja niso bila najdena."},sr:{invalidUrl:"Nije moguće kreirati 'URL': Nevažeći URL",fetchConsentsError:"Greška: Nije moguće dohvatiti saglasnosti.",fetchPlayerConsentsError:"Greška: Nije moguće dohvatiti korisničke saglasnosti.",fetchConsentsCategoriesError:"Greška: Nije moguće dohvatiti kategorije saglasnosti.",updateConsentsError:"Greška: Nije moguće ažurirati saglasnosti.",saveChangesError:"Greška: Nije moguće sačuvati promene.",mustAcceptError:"Obavezne saglasnosti moraju biti prihvaćene.",title:"Saglasnosti",saveButtonContent:"Sačuvaj Saglasnosti",description:"Ovde možete istražiti i upravljati svojim preferencijama o tome kako prikupljamo i koristimo vaše podatke. Vaša privatnost nam je važna, a ovaj alat vam omogućava donošenje informisanih odluka o vašem online iskustvu.",marketing__category:"Marketing",Other__category:"Ostalo",privacy__category:"Privatnost i Deljenje Podataka",dataSharing__name:"Deljenje Podataka",dataSharing__description:"Saglasnost za deljenje podataka",emailMarketing__name:"Email Marketing",emailMarketing__description:"Saglasnost za email marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Saglasnost za SMS marketing",cookiesAndTracking__name:"Kolačići i Praćenje",cookiesAndTracking__description:"Saglasnost za kolačiće i praćenje",termsandconditions__description:"Potrebno za potvrdu prihvatanja uslova i pravila.",emailmarketing__description:"Potrebno za potvrdu saglasnosti za email marketing.",sms__description:"Potrebno za potvrdu saglasnosti za SMS marketing.","3rdparty__description":"Potrebno za potvrdu saglasnosti za marketing trećih lica.",noDataFound:"Nema podataka o saglasnostima.",loading:"Učitavanje... molimo sačekajte",requiredError:"Ovo polje je obavezno",wrongModalConfig:"Došlo je do greške u konfiguraciji! Nema pronađenih istekao saglasnosti."},"es-mx":{invalidUrl:"No se pudo construir 'URL': URL no válida",fetchConsentsError:"Error: No se pudieron obtener los consentimientos.",fetchPlayerConsentsError:"Error: No se pudieron obtener los consentimientos de los usuarios.",fetchConsentsCategoriesError:"Error: No se pudieron obtener las categorías de consentimiento.",updateConsentsError:"Error: No se pudieron actualizar los consentimientos.",saveChangesError:"Error: No se pudieron guardar los cambios.",mustAcceptError:"Se deben aceptar los consentimientos obligatorios.",title:"Consentimientos",saveButtonContent:"Guardar Consentimientos",description:"Aquí puedes explorar y administrar tus preferencias respecto a cómo recopilamos y utilizamos tus datos. Tu privacidad es importante para nosotros, y esta herramienta te permite tomar decisiones informadas sobre tu experiencia en línea.",marketing__category:"Marketing",Other__category:"Otros",privacy__category:"Privacidad y Compartición de Datos",dataSharing__name:"Compartición de Datos",dataSharing__description:"Consentimiento para la compartición de datos",emailMarketing__name:"Marketing por Correo Electrónico",emailMarketing__description:"Consentimiento para marketing por correo electrónico",smsMarketing__name:"Marketing por SMS",smsMarketing__description:"Consentimiento para marketing por SMS",cookiesAndTracking__name:"Cookies y Rastreo",cookiesAndTracking__description:"Consentimiento para cookies y rastreo",termsandconditions__description:"Necesario para demostrar que se aceptaron los términos y condiciones.",emailmarketing__description:"Necesario para demostrar consentimiento para marketing por correo electrónico.",sms__description:"Necesario para demostrar consentimiento para marketing por SMS.","3rdparty__description":"Necesario para demostrar consentimiento para marketing de terceros.",noDataFound:"No se encontraron datos para consentimientos.",loading:"Cargando... por favor espera",requiredError:"Este campo es obligatorio",wrongModalConfig:"¡Hubo un error en la configuración! No se encontraron consentimientos vencidos."},"pt-br":{invalidUrl:"Não foi possível construir 'URL': URL inválida",fetchConsentsError:"Erro: Não foi possível buscar os consentimentos.",fetchPlayerConsentsError:"Erro: Não foi possível buscar os consentimentos dos usuários.",fetchConsentsCategoriesError:"Erro: Não foi possível buscar as categorias de consentimento.",updateConsentsError:"Erro: Não foi possível atualizar os consentimentos.",saveChangesError:"Erro: Não foi possível salvar as alterações.",mustAcceptError:"Os consentimentos obrigatórios devem ser aceitos.",title:"Consentimentos",saveButtonContent:"Salvar Consentimentos",description:"Aqui você pode explorar e gerenciar suas preferências sobre como coletamos e utilizamos seus dados. Sua privacidade é importante para nós, e esta ferramenta permite que você tome decisões informadas sobre sua experiência online.",marketing__category:"Marketing",Other__category:"Outros",privacy__category:"Privacidade e Compartilhamento de Dados",dataSharing__name:"Compartilhamento de Dados",dataSharing__description:"Consentimento para compartilhamento de dados",emailMarketing__name:"Marketing por E-mail",emailMarketing__description:"Consentimento para marketing por e-mail",smsMarketing__name:"Marketing por SMS",smsMarketing__description:"Consentimento para marketing por SMS",cookiesAndTracking__name:"Cookies e Rastreamento",cookiesAndTracking__description:"Consentimento para cookies e rastreamento",termsandconditions__description:"Necessário para comprovar a aceitação dos termos e condições.",emailmarketing__description:"Necessário para comprovar consentimento para marketing por e-mail.",sms__description:"Necessário para comprovar consentimento para marketing por SMS.","3rdparty__description":"Necessário para comprovar consentimento para marketing de terceiros.",noDataFound:"Nenhum dado encontrado para consentimentos.",loading:"Carregando... por favor aguarde",requiredError:"Este campo é obrigatório",wrongModalConfig:"Houve um erro na configuração! Nenhum consentimento expirado encontrado."}};var $t;function Xt(){let e,t;return{c(){e=c.svg_element("svg"),t=c.svg_element("path"),c.attr(t,"d","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"),c.attr(e,"xmlns","http://www.w3.org/2000/svg"),c.attr(e,"viewBox","0 0 512 512")},m(i,r){c.insert(i,e,r),c.append(e,t)},p:c.noop,i:c.noop,o:c.noop,d(t){t&&c.detach(e)}}}function Kt(e){c.append_styles(e,"svelte-1w14oq2",'.DisplayNone.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{display:none}.ContainerCenter.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:219px}.ErrorMessage.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{font-size:12px;color:var(--emw--color-error, #ed0909)}.PlayerConsentsHeader.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{margin-bottom:30px}.AccordionHeader.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{font-weight:bold;cursor:pointer;border-bottom:1px solid var(--emw--color-gray-50, #cccccc);display:flex;align-items:center;justify-content:space-between}.AccordionItem.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{margin-bottom:10px}.AccordionContent.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{display:block;padding:10px 0}.AccordionContent.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2:last-of-type{padding-bottom:0}.ConsentItem.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{display:flex;width:100%;justify-content:space-between;align-items:center;margin-bottom:20px}.ConsentItem.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2:last-of-type{margin-bottom:0}.ConsentItem.svelte-1w14oq2 .ConsentName.svelte-1w14oq2.svelte-1w14oq2{margin:0}.ConsentItem.svelte-1w14oq2 .ConsentDescription.svelte-1w14oq2.svelte-1w14oq2{font-size:0.8rem}.ToggleSwitch.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{position:relative;display:inline-block;width:40px;height:24px}.ToggleSwitch.Big.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{width:53px;height:30px}.ToggleSwitch.Big.svelte-1w14oq2 .Slider.svelte-1w14oq2.svelte-1w14oq2:before{width:22px;height:22px}.ToggleSwitch.Big.svelte-1w14oq2 input.svelte-1w14oq2:checked+.Slider.svelte-1w14oq2:before{-webkit-transform:translateX(22px);-ms-transform:translateX(22px);transform:translateX(22px)}.ToggleSwitch.svelte-1w14oq2 input.svelte-1w14oq2.svelte-1w14oq2{opacity:0;width:0;height:0}.ToggleSwitch.svelte-1w14oq2 input.svelte-1w14oq2:checked+.Slider.svelte-1w14oq2{background-color:var(--emw--color-primary, #22B04E)}.ToggleSwitch.svelte-1w14oq2 input.svelte-1w14oq2:disabled+.Slider.svelte-1w14oq2{opacity:0.1}.ToggleSwitch.svelte-1w14oq2 input.svelte-1w14oq2:checked+.Slider.svelte-1w14oq2:before{-webkit-transform:translateX(16px);-ms-transform:translateX(16px);transform:translateX(16px)}.ToggleSwitch.svelte-1w14oq2 input.svelte-1w14oq2:focus+.Slider.svelte-1w14oq2{box-shadow:0 0 1px var(--emw--color-primary, #22B04E)}.ToggleSwitch.svelte-1w14oq2 .Slider.svelte-1w14oq2.svelte-1w14oq2{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:var(--emw--color-gray-150, #a1a1a1);-webkit-transition:0.4s;transition:0.4s}.ToggleSwitch.svelte-1w14oq2 .Slider.svelte-1w14oq2.svelte-1w14oq2:before{position:absolute;content:"";height:16px;width:16px;left:4px;bottom:4px;background-color:var(--emw--color-white, #fff);-webkit-transition:0.4s;transition:0.4s}.ToggleSwitch.svelte-1w14oq2 .Slider.Round.svelte-1w14oq2.svelte-1w14oq2{border-radius:34px}.ToggleSwitch.svelte-1w14oq2 .Slider.Round.svelte-1w14oq2.svelte-1w14oq2:before{border-radius:50%}.SaveConsentsButton.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{display:block;width:100%;margin:50px auto;outline:none;cursor:pointer;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);border-radius:var(--emw--button-border-radius, 50px);padding:10px 20px;font-size:var(--emw--font-size-large, 20px);font-family:var(--emw--button-typography);color:var(--emw--button-text-color, #FFFFFF)}.SaveConsentsButton.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2:disabled{opacity:0.3;cursor:not-allowed}.ConsentErrorContainer.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{display:flex;gap:10px;align-items:center;border:1px dashed var(--emw--color-error, #ed0909);padding:10px;margin-bottom:10px}.ConsentErrorContainer.svelte-1w14oq2 circle-exclamation-icon.svelte-1w14oq2.svelte-1w14oq2{width:15px;fill:var(--emw--color-error, #ed0909)}.ConsentRequired.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{color:var(--emw--color-error, #ed0909)}.ConsentsContainer.svelte-1w14oq2 .legacyStyle .checkbox.svelte-1w14oq2.svelte-1w14oq2{font-family:"Roboto";font-style:normal}.ConsentsContainer.svelte-1w14oq2 .legacyStyle .checkbox .checkbox__wrapper.svelte-1w14oq2.svelte-1w14oq2{display:flex;gap:10px;position:relative;align-items:baseline;margin-bottom:30px}.ConsentsContainer.svelte-1w14oq2 .legacyStyle .checkbox .checkbox__wrapper .checkbox__wrapper--relative.svelte-1w14oq2.svelte-1w14oq2{position:relative}.ConsentsContainer.svelte-1w14oq2 .legacyStyle .checkbox .checkbox__input.svelte-1w14oq2.svelte-1w14oq2{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));width:46px}.ConsentsContainer.svelte-1w14oq2 .legacyStyle .checkbox .checkbox__label.svelte-1w14oq2.svelte-1w14oq2{font-style:inherit;font-family:inherit;font-weight:400;font-size:var(--emw--font-size-medium, 16px);color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;cursor:pointer;padding:0}.ConsentsContainer.svelte-1w14oq2 .legacyStyle .checkbox .checkbox__label .checkbox__label-text.svelte-1w14oq2.svelte-1w14oq2{font-size:var(--emw--font-size-medium, 16px)}.ConsentsContainer.svelte-1w14oq2 .legacyStyle .checkbox .checkbox__error-message.svelte-1w14oq2.svelte-1w14oq2{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.ConsentsContainer.svelte-1w14oq2 .legacyStyle .checkbox .checkbox__tooltip-icon.svelte-1w14oq2.svelte-1w14oq2{width:16px;height:auto}.ConsentsContainer.svelte-1w14oq2 .legacyStyle .checkbox .checkbox__tooltip.svelte-1w14oq2.svelte-1w14oq2{position:absolute;top:0;right:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.ConsentsContainer.svelte-1w14oq2 .legacyStyle .checkbox .checkbox__tooltip.visible.svelte-1w14oq2.svelte-1w14oq2{opacity:1}')}function Yt(e,t,i){const r=e.slice();return r[64]=t[i],r}function Wt(e,t,i){const r=e.slice();return r[61]=t[i],r[62]=t,r[63]=i,r}function Zt(e,t,i){const r=e.slice();return r[64]=t[i],r}function Qt(e){let t,i,r=c.ensure_array_like(e[9]),n=[];for(let t=0;t<r.length;t+=1)n[t]=ii(Yt(e,r,t));return{c(){t=c.element("div"),i=c.element("form");for(let e=0;e<n.length;e+=1)n[e].c();c.attr(i,"class","checkbox svelte-1w14oq2"),c.attr(t,"class","legacyStyle")},m(r,o){c.insert(r,t,o),c.append(t,i);for(let e=0;e<n.length;e+=1)n[e]&&n[e].m(i,null);e[31](i)},p(e,t){if(590336&t[0]){let o;for(r=c.ensure_array_like(e[9]),o=0;o<r.length;o+=1){const s=Yt(e,r,o);n[o]?n[o].p(s,t):(n[o]=ii(s),n[o].c(),n[o].m(i,null))}for(;o<n.length;o+=1)n[o].d(1);n.length=r.length}},d(i){i&&c.detach(t),c.destroy_each(n,i),e[31](null)}}}function Jt(e){let t,i,r,n,o,s,a,l,h=e[16]("title")||e[16]("description"),d=(e[16]("saveButtonContent")||"Save Consents")+"",u=h&&ri(e),m=c.ensure_array_like(e[8]),p=[];for(let t=0;t<m.length;t+=1)p[t]=hi(Wt(e,m,t));let _=e[6]&&ci(e);return{c(){u&&u.c(),t=c.space();for(let e=0;e<p.length;e+=1)p[e].c();i=c.space(),r=c.element("button"),o=c.space(),_&&_.c(),s=c.empty(),c.attr(r,"class","SaveConsentsButton svelte-1w14oq2"),r.disabled=n=!e[14]},m(n,h){u&&u.m(n,h),c.insert(n,t,h);for(let e=0;e<p.length;e+=1)p[e]&&p[e].m(n,h);c.insert(n,i,h),c.insert(n,r,h),r.innerHTML=d,c.insert(n,o,h),_&&_.m(n,h),c.insert(n,s,h),a||(l=c.listen(r,"click",e[17]),a=!0)},p(e,o){if(65536&o[0]&&(h=e[16]("title")||e[16]("description")),h?u?u.p(e,o):(u=ri(e),u.c(),u.m(t.parentNode,t)):u&&(u.d(1),u=null),867088&o[0]){let t;for(m=c.ensure_array_like(e[8]),t=0;t<m.length;t+=1){const r=Wt(e,m,t);p[t]?p[t].p(r,o):(p[t]=hi(r),p[t].c(),p[t].m(i.parentNode,i))}for(;t<p.length;t+=1)p[t].d(1);p.length=m.length}65536&o[0]&&d!==(d=(e[16]("saveButtonContent")||"Save Consents")+"")&&(r.innerHTML=d),16384&o[0]&&n!==(n=!e[14])&&(r.disabled=n),e[6]?_?_.p(e,o):(_=ci(e),_.c(),_.m(s.parentNode,s)):_&&(_.d(1),_=null)},d(e){e&&(c.detach(t),c.detach(i),c.detach(r),c.detach(o),c.detach(s)),u&&u.d(e),c.destroy_each(p,e),_&&_.d(e),a=!1,l()}}}function ei(e){let t,i,r;return{c(){t=c.element("div"),i=c.element("strong"),r=c.text(e[7]),c.attr(i,"class","ErrorMessage svelte-1w14oq2"),c.attr(t,"class","ContainerCenter svelte-1w14oq2")},m(e,n){c.insert(e,t,n),c.append(t,i),c.append(i,r)},p(e,t){128&t[0]&&c.set_data(r,e[7])},d(e){e&&c.detach(t)}}}function ti(e){let t;return{c(){t=c.element("general-animation-loading"),c.set_custom_element_data(t,"clientstyling",e[1]),c.set_custom_element_data(t,"clientstylingurl",e[2]),c.set_custom_element_data(t,"mbsource",e[3])},m(e,i){c.insert(e,t,i)},p(e,i){2&i[0]&&c.set_custom_element_data(t,"clientstyling",e[1]),4&i[0]&&c.set_custom_element_data(t,"clientstylingurl",e[2]),8&i[0]&&c.set_custom_element_data(t,"mbsource",e[3])},d(e){e&&c.detach(t)}}}function ii(e){let t,i,r,n,o,s,a,l,h,d,u,m,p,_,f,v,g,E=(e[16](`${e[64].tagCode}__description`)||e[64].tagCode)+"",b=e[64].mustAccept?" *":"";function y(...t){return e[30](e[64],...t)}return{c(){t=c.element("div"),i=c.element("input"),o=c.space(),s=c.element("label"),a=c.element("div"),l=new c.HtmlTag(!1),h=c.text(b),u=c.space(),m=c.element("small"),_=c.space(),c.attr(i,"class","checkbox__input svelte-1w14oq2"),c.attr(i,"type","checkbox"),i.checked=r="1"===e[64].status,c.attr(i,"id",n=`${e[64].tagCode}__input`),l.a=h,c.attr(a,"class","checkbox__label-text svelte-1w14oq2"),c.attr(s,"class","checkbox__label svelte-1w14oq2"),c.attr(s,"for",d=`${e[64].tagCode}__input`),c.attr(m,"class","checkbox__error-message svelte-1w14oq2"),c.attr(m,"id",p="checkBoxError__"+e[64].tagCode),c.attr(t,"class",f="checkbox__wrapper "+e[64].tagCode+"__input svelte-1w14oq2")},m(e,r){c.insert(e,t,r),c.append(t,i),c.append(t,o),c.append(t,s),c.append(s,a),l.m(E,a),c.append(a,h),c.append(t,u),c.append(t,m),c.append(t,_),v||(g=c.listen(i,"input",y),v=!0)},p(o,a){e=o,512&a[0]&&r!==(r="1"===e[64].status)&&(i.checked=r),512&a[0]&&n!==(n=`${e[64].tagCode}__input`)&&c.attr(i,"id",n),66048&a[0]&&E!==(E=(e[16](`${e[64].tagCode}__description`)||e[64].tagCode)+"")&&l.p(E),512&a[0]&&b!==(b=e[64].mustAccept?" *":"")&&c.set_data(h,b),512&a[0]&&d!==(d=`${e[64].tagCode}__input`)&&c.attr(s,"for",d),512&a[0]&&p!==(p="checkBoxError__"+e[64].tagCode)&&c.attr(m,"id",p),512&a[0]&&f!==(f="checkbox__wrapper "+e[64].tagCode+"__input svelte-1w14oq2")&&c.attr(t,"class",f)},d(e){e&&c.detach(t),v=!1,g()}}}function ri(e){let t,i,r=e[16]("title"),n=e[16]("description"),o=r&&ni(e),s=n&&oi(e);return{c(){t=c.element("div"),o&&o.c(),i=c.space(),s&&s.c(),c.attr(t,"class","PlayerConsentsHeader svelte-1w14oq2")},m(e,r){c.insert(e,t,r),o&&o.m(t,null),c.append(t,i),s&&s.m(t,null)},p(e,a){65536&a[0]&&(r=e[16]("title")),r?o?o.p(e,a):(o=ni(e),o.c(),o.m(t,i)):o&&(o.d(1),o=null),65536&a[0]&&(n=e[16]("description")),n?s?s.p(e,a):(s=oi(e),s.c(),s.m(t,null)):s&&(s.d(1),s=null)},d(e){e&&c.detach(t),o&&o.d(),s&&s.d()}}}function ni(e){let t,i,r=e[16]("title")+"";return{c(){t=c.element("h2"),i=c.text(r),c.attr(t,"class","PlayerConsentsTitle")},m(e,r){c.insert(e,t,r),c.append(t,i)},p(e,t){65536&t[0]&&r!==(r=e[16]("title")+"")&&c.set_data(i,r)},d(e){e&&c.detach(t)}}}function oi(e){let t,i,r=e[16]("description")+"";return{c(){t=c.element("p"),i=c.text(r),c.attr(t,"class","PlayerConsentsDescription")},m(e,r){c.insert(e,t,r),c.append(t,i)},p(e,t){65536&t[0]&&r!==(r=e[16]("description")+"")&&c.set_data(i,r)},d(e){e&&c.detach(t)}}}function si(){let e;return{c(){e=c.element("sup"),e.textContent="*",c.attr(e,"class","ConsentRequired svelte-1w14oq2")},m(t,i){c.insert(t,e,i)},d(t){t&&c.detach(e)}}}function ai(e){let t,i=(e[16](`${e[64].tagCode}__description`)||e[64].description)+"";return{c(){t=c.element("p"),c.attr(t,"class","ConsentDescription svelte-1w14oq2")},m(e,r){c.insert(e,t,r),t.innerHTML=i},p(e,r){66304&r[0]&&i!==(i=(e[16](`${e[64].tagCode}__description`)||e[64].description)+"")&&(t.innerHTML=i)},d(e){e&&c.detach(t)}}}function li(e){let t,i,r,n,o,s,a,l,h,d,u,m,p,_,f,v=(e[16](`${e[64].tagCode}__name`)||e[64].friendlyName)+"",g=!0===e[64].mustAccept&&si(),E="true"===e[4]&&ai(e);function b(...t){return e[29](e[64],...t)}return{c(){t=c.element("div"),i=c.element("div"),r=c.element("h4"),n=new c.HtmlTag(!1),o=c.space(),g&&g.c(),s=c.space(),E&&E.c(),a=c.space(),l=c.element("label"),h=c.element("input"),m=c.space(),p=c.element("span"),n.a=o,c.attr(r,"class","ConsentName svelte-1w14oq2"),c.attr(i,"class","ConsentContent"),c.attr(h,"type","checkbox"),h.disabled=d=!0===e[64].mustAccept&&!0===e[12][e[64].tagCode],h.checked=u=e[13][e[64].tagCode],c.attr(h,"class","svelte-1w14oq2"),c.attr(p,"class","Slider Round svelte-1w14oq2"),c.attr(l,"class","ToggleSwitch svelte-1w14oq2"),c.attr(t,"class","ConsentItem svelte-1w14oq2")},m(e,d){c.insert(e,t,d),c.append(t,i),c.append(i,r),n.m(v,r),c.append(r,o),g&&g.m(r,null),c.append(i,s),E&&E.m(i,null),c.append(t,a),c.append(t,l),c.append(l,h),c.append(l,m),c.append(l,p),_||(f=c.listen(h,"input",b),_=!0)},p(t,o){e=t,66304&o[0]&&v!==(v=(e[16](`${e[64].tagCode}__name`)||e[64].friendlyName)+"")&&n.p(v),!0===e[64].mustAccept?g||(g=si(),g.c(),g.m(r,null)):g&&(g.d(1),g=null),"true"===e[4]?E?E.p(e,o):(E=ai(e),E.c(),E.m(i,null)):E&&(E.d(1),E=null),4864&o[0]&&d!==(d=!0===e[64].mustAccept&&!0===e[12][e[64].tagCode])&&(h.disabled=d),8960&o[0]&&u!==(u=e[13][e[64].tagCode])&&(h.checked=u)},d(e){e&&c.detach(t),g&&g.d(),E&&E.d(),_=!1,f()}}}function hi(e){let t,i,r,n,o,s,a,l,h,d,u,m,p=(e[16](`${e[61].categoryTagCode}__category`)||e[61].friendlyName)+"";function _(){e[26].call(s,e[61])}function f(){return e[27](e[61])}function v(...t){return e[28](e[61],...t)}let g=c.ensure_array_like(e[9].filter(v)),E=[];for(let t=0;t<g.length;t+=1)E[t]=li(Zt(e,g,t));return{c(){t=c.element("div"),i=c.element("div"),r=c.element("h3"),n=c.space(),o=c.element("label"),s=c.element("input"),a=c.space(),l=c.element("span"),h=c.space(),d=c.element("div");for(let e=0;e<E.length;e+=1)E[e].c();c.attr(s,"type","checkbox"),c.attr(s,"class","svelte-1w14oq2"),c.attr(l,"class","Slider Round svelte-1w14oq2"),c.attr(o,"class","ToggleSwitch Big svelte-1w14oq2"),c.attr(i,"class","AccordionHeader svelte-1w14oq2"),c.attr(d,"class","AccordionContent svelte-1w14oq2"),c.attr(t,"class","AccordionItem svelte-1w14oq2")},m(v,g){c.insert(v,t,g),c.append(t,i),c.append(i,r),r.innerHTML=p,c.append(i,n),c.append(i,o),c.append(o,s),s.checked=e[11][e[61].categoryTagCode],c.append(o,a),c.append(o,l),c.append(t,h),c.append(t,d);for(let e=0;e<E.length;e+=1)E[e]&&E[e].m(d,null);u||(m=[c.listen(s,"change",_),c.listen(s,"change",f)],u=!0)},p(t,i){if(e=t,65792&i[0]&&p!==(p=(e[16](`${e[61].categoryTagCode}__category`)||e[61].friendlyName)+"")&&(r.innerHTML=p),2304&i[0]&&(s.checked=e[11][e[61].categoryTagCode]),602896&i[0]){let t;for(g=c.ensure_array_like(e[9].filter(v)),t=0;t<g.length;t+=1){const r=Zt(e,g,t);E[t]?E[t].p(r,i):(E[t]=li(r),E[t].c(),E[t].m(d,null))}for(;t<E.length;t+=1)E[t].d(1);E.length=g.length}},d(e){e&&c.detach(t),c.destroy_each(E,e),u=!1,c.run_all(m)}}}function ci(e){let t,i,r,n,o;return{c(){t=c.element("div"),i=c.element("circle-exclamation-icon"),r=c.space(),n=c.element("strong"),o=c.text(e[6]),c.set_custom_element_data(i,"class","svelte-1w14oq2"),c.attr(n,"class","ErrorMessage svelte-1w14oq2"),c.attr(t,"class","ConsentErrorContainer svelte-1w14oq2")},m(e,s){c.insert(e,t,s),c.append(t,i),c.append(t,r),c.append(t,n),c.append(n,o)},p(e,t){64&t[0]&&c.set_data(o,e[6])},d(e){e&&c.detach(t)}}}function di(e){let t,i;function r(e){return e[10]?ti:e[7]?ei:e[0]?Jt:e[0]?void 0:Qt}let n=r(e),o=n&&n(e);return{c(){t=c.element("div"),i=c.element("div"),o&&o.c(),c.attr(i,"class","ConsentsContainer svelte-1w14oq2"),c.attr(t,"class",c.null_to_empty("")+" svelte-1w14oq2")},m(r,n){c.insert(r,t,n),c.append(t,i),o&&o.m(i,null),e[32](i)},p(e,t){n===(n=r(e))&&o?o.p(e,t):(o&&o.d(1),o=n&&n(e),o&&(o.c(),o.m(i,null)))},i:c.noop,o:c.noop,d(i){i&&c.detach(t),o&&o.d(),e[32](null)}}}function ui(e,t,n){let o;c.component_subscribe(e,qt,(e=>n(16,o=e)));let s,a,d,{session:u=""}=t,{userid:m=""}=t,{endpoint:p=""}=t,{clientstyling:_=""}=t,{clientstylingurl:f=""}=t,{mbsource:v}=t,{lang:g="en"}=t,{displayconsentdescription:E=""}=t,{translationurl:b=""}=t,{modalconsents:y="false"}=t,w=!1,k=!1,x="",S="",A="",I="",C=[],D=[],T=[],R=!0,N=!0,O={},z={},G={},M={},U={none:{key:"0",value:"None"},accepted:{key:"1",value:"Accepted"},expired:{key:"2",value:"Expired"},denied:{key:"3",value:"Denied"},suspended:{key:"4",value:"Suspended"}},B=!1;Object.keys(Vt).forEach((e=>{Ht(e,Vt[e])}));const P=(e,t=!1)=>{t?n(7,I=e):($(),n(6,A=e))},L=(e,t,i,r=!1)=>h(this,null,(function*(){try{const r=yield fetch(e,i);if(!r.ok)throw new Error(o(t));const n=yield r.json();return k?n:n.filter((e=>!0===e.showOnRegister))}catch(e){throw P(e instanceof TypeError?o(t):e.message,r),e}})),j=()=>h(this,null,(function*(){try{let e=[],t=[];if(k?[e,t]=yield F():e=yield F(),n(10,R=!1),D=[...e],n(8,C=q(D).sort(((e,t)=>e.categoryTagCode.localeCompare(t.categoryTagCode)))),n(11,O=H(C)),z=l({},O),n(9,T=[...t]),D.forEach((e=>{let t=T.find((t=>t.tagCode===e.tagCode));t||(t=((e,t)=>i(e,r(t)))(l({},e),{status:U.denied.value}),T.push(t)),t.description=e.description,t.orderNumber=e.orderNumber})),"true"===y){if(n(9,T=T.filter((e=>e.status===U.expired.value))),0!==T.length)return;P(o("wrongModalConfig"),!0)}V()}catch(e){throw n(10,R=!1),P(e instanceof TypeError?o("invalidUrl"):e.message,!0),e}})),F=()=>h(this,null,(function*(){const e=new URL(`${p}/api/v1/gm/consents`);if(e.searchParams.append("Status","Active"),!k)return yield L(e.href,"fetchConsentsError",{method:"GET"},!0);const t=new URL(`${p}/api/v1/gm/user-consents/${S}`);return yield Promise.all([L(e.href,"fetchConsentsError",{method:"GET"},!0),L(t.href,"fetchPlayerConsentsError",{method:"GET",headers:{"X-SessionId":x,"Content-Type":"application/json"}})])})),q=e=>{const t=new Map;return e.forEach((e=>{t.has(e.category.categoryTagCode)||t.set(e.category.categoryTagCode,e.category)})),Array.from(t.values())},H=e=>{const t=localStorage.getItem("categoryToggle"+S);if(null===t){const t=e.reduce(((e,t)=>(e[t.categoryTagCode]=!1,e)),{});return localStorage.setItem("categoryToggle"+S,JSON.stringify(t)),t}return JSON.parse(t)},V=()=>{T.forEach((e=>{n(12,G[e.tagCode]=e.status===U.accepted.value,G)})),n(13,M=l({},G))},$=()=>{n(13,M=l({},G)),n(11,O=l({},z))},X=e=>{T.filter((t=>t.category.categoryTagCode===e)).forEach((t=>{t.status=t.status===U.denied.value?U.accepted.value:U.denied.value,n(13,M[t.tagCode]=O[e]||!1,M)})),n(14,a=Z())},K=(e,t,i)=>{const r=T.find((e=>e.id===i)),s=t?"value":"key";let a;if(!t&&r.mustAccept){const e=Array.from(d.children);for(const t of e)if(a=Array.from(t.children).find((e=>e.getAttribute("id")===`checkBoxError__${r.tagCode}`)),a)break}if(r.status===U.accepted[s]?(r.status=U.denied[s],a&&(a.innerHTML=o("requiredError"))):(r.status=U.accepted[s],a&&(a.innerHTML="")),t){n(13,M[r.tagCode]=!M[r.tagCode],M);const e=T.filter((e=>e.category.categoryTagCode===t.categoryTagCode)).every((e=>e.status!==U.denied.value));n(11,O[t.categoryTagCode]=e,O)}Y()},Y=(e=>{let t;return function(...i){const r=this;clearTimeout(t),t=setTimeout((()=>{e.apply(r,i)}),500)}})((()=>W())),W=()=>{n(14,a=Z()),u||(window.postMessage({type:"isConsentsValid",isValid:a}),localStorage.setItem("playerConsents",JSON.stringify(T)))},Z=()=>0===T.filter((e=>T.some((t=>e.tagCode===t.tagCode&&t.mustAccept&&(e.status===U.denied.key||e.status===U.denied.value))))).length,Q=e=>{window.postMessage({type:"WidgetNotification",data:{type:"error",message:e}},window.location.href)};return c.onMount((()=>{setTimeout((()=>{n(25,w=!0)}),50);const e=e=>(e=>{e.data&&"setUpPlayerConsents"!==e.data.type||(e=>{const t=new URL(`${p}/api/v2/gm/legislation/consents`),i={method:"POST",body:JSON.stringify({playerConsents:T,registrationId:e}),headers:{"Content-Type":"application/json",Accept:"application/json"}};fetch(t.href,i).then((e=>{e.ok||(B=!0)})).catch((e=>(console.error(e),Q(e)))).finally((()=>{n(10,R=!1)}))})(e.data.registerid)})(e);return window.addEventListener("message",e),()=>{window.removeEventListener("message",e)}})),e.$$set=e=>{"session"in e&&n(0,u=e.session),"userid"in e&&n(20,m=e.userid),"endpoint"in e&&n(21,p=e.endpoint),"clientstyling"in e&&n(1,_=e.clientstyling),"clientstylingurl"in e&&n(2,f=e.clientstylingurl),"mbsource"in e&&n(3,v=e.mbsource),"lang"in e&&n(22,g=e.lang),"displayconsentdescription"in e&&n(4,E=e.displayconsentdescription),"translationurl"in e&&n(23,b=e.translationurl),"modalconsents"in e&&n(24,y=e.modalconsents)},e.$$.update=()=>{33554433&e.$$.dirty[0]&&w&&u&&(u&&(x=u,k=!0),m&&(S=m),j()),1&e.$$.dirty[0]&&(u||(()=>{B=!1;const e=new URL(`${p}/api/v2/gm/legislation/consents`);fetch(e.href,{method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json"}}).then((e=>e.ok?e.json():(B=!0,e.json().then((e=>(console.error(e),Q(e))))))).then((e=>{if(!B){if(D=e,localStorage.getItem("playerConsents")){try{n(9,T=JSON.parse(localStorage.getItem("playerConsents")))}catch(e){return console.error(e),Q(e)}return}return n(9,T=D.map((e=>({id:e.id,status:U.denied.key,friendlyName:e.friendlyName,tagCode:e.tagCode,selected:null,mustAccept:e.mustAccept})))),localStorage.setItem("playerConsents",JSON.stringify(T)),T}})).catch((e=>(console.error(e),Q(e)))).finally((()=>{n(10,R=!1)}))})()),34&e.$$.dirty[0]&&_&&s&&c.setClientStyling(s,_),36&e.$$.dirty[0]&&f&&s&&c.setClientStylingURL(s,f),40&e.$$.dirty[0]&&s&&c.setStreamStyling(s,`${v}.Style`),4194304&e.$$.dirty[0]&&g&&function(e){xt.set(e)}(g),8388608&e.$$.dirty[0]&&b&&(()=>{let e=new URL(b);fetch(e.href).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Ht(t,e[t])}))})).catch((e=>{console.log(e)}))})()},[u,_,f,v,E,s,A,I,C,T,R,O,G,M,a,d,o,()=>h(this,null,(function*(){if(!N)return;N=!1;const e=[],t=[];if(Object.keys(M).forEach((i=>{const r=T.find((e=>e.tagCode===i));M[i]!==G[i]&&(r?e.push({tagCode:i,status:M[i]?U.accepted.value:U.denied.value}):t.push({tagCode:i,status:M[i]?U.accepted.value:U.denied.value}))})),!k)return localStorage.setItem("categoryToggle"+S,JSON.stringify(O)),z=l({},O),window.postMessage({type:"NewPlayerConsentData",data:JSON.stringify(t)},window.location.href),void(N=!0);const i=new URL(`${p}/api/v1/gm/user-consents/${S}`);try{const r=yield Promise.allSettled([t.length>0&&L(i.href,"updateConsentsError",{method:"POST",headers:{"X-SessionId":x,"Content-Type":"application/json"},body:JSON.stringify({userConsents:t})}),e.length>0&&L(i.href,"updateConsentsError",{method:"PATCH",headers:{"X-SessionId":x,"Content-Type":"application/json"},body:JSON.stringify({userConsents:e})})]);r.forEach(((i,r)=>{if("rejected"===i.status||!1===i.value.ok){const i=r<t.length?t[r]:e[r-t.length];n(13,M[i.tagCode]=G[i.tagCode],M)}})),r.every((e=>"fulfilled"===e.status))&&(localStorage.setItem("categoryToggle"+S,JSON.stringify(O)),z=l({},O),window.postMessage({type:"PlayerConsentUpdated",success:!0},window.location.href),n(12,G=l({},M)))}catch(e){P(e instanceof TypeError?o("saveChangesError"):e.message),window.postMessage({type:"PlayerConsentUpdated",success:!1},window.location.href)}finally{N=!0,n(14,a=!1)}})),X,K,m,p,g,b,y,w,function(e){O[e.categoryTagCode]=this.checked,n(11,O)},e=>X(e.categoryTagCode),(e,t)=>t.category.categoryTagCode===e.categoryTagCode,e=>K(0,e.category,e.id),e=>K(0,null,e.id),function(e){c.binding_callbacks[e?"unshift":"push"]((()=>{d=e,n(15,d)}))},function(e){c.binding_callbacks[e?"unshift":"push"]((()=>{s=e,n(5,s)}))}]}"undefined"!=typeof window&&(customElements.define=($t=customElements.define,function(...e){try{return $t.apply(this,e)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}),Promise.resolve().then((()=>pc)).then((e=>e.GeneralAnimationLoading_ce)).then((({default:e})=>{!customElements.get("general-animation-loading")&&customElements.define("general-animation-loading",e.element)}))),customElements.define("circle-exclamation-icon",c.create_custom_element(class extends c.SvelteComponent{constructor(e){super(),c.init(this,e,null,Xt,c.safe_not_equal,{})}},{},[],[],!0));class mi extends c.SvelteComponent{constructor(e){super(),c.init(this,e,ui,di,c.safe_not_equal,{session:0,userid:20,endpoint:21,clientstyling:1,clientstylingurl:2,mbsource:3,lang:22,displayconsentdescription:4,translationurl:23,modalconsents:24},Kt,[-1,-1,-1])}get session(){return this.$$.ctx[0]}set session(e){this.$$set({session:e}),c.flush()}get userid(){return this.$$.ctx[20]}set userid(e){this.$$set({userid:e}),c.flush()}get endpoint(){return this.$$.ctx[21]}set endpoint(e){this.$$set({endpoint:e}),c.flush()}get clientstyling(){return this.$$.ctx[1]}set clientstyling(e){this.$$set({clientstyling:e}),c.flush()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),c.flush()}get mbsource(){return this.$$.ctx[3]}set mbsource(e){this.$$set({mbsource:e}),c.flush()}get lang(){return this.$$.ctx[22]}set lang(e){this.$$set({lang:e}),c.flush()}get displayconsentdescription(){return this.$$.ctx[4]}set displayconsentdescription(e){this.$$set({displayconsentdescription:e}),c.flush()}get translationurl(){return this.$$.ctx[23]}set translationurl(e){this.$$set({translationurl:e}),c.flush()}get modalconsents(){return this.$$.ctx[24]}set modalconsents(e){this.$$set({modalconsents:e}),c.flush()}}c.create_custom_element(mi,{session:{},userid:{},endpoint:{},clientstyling:{},clientstylingurl:{},mbsource:{},lang:{},displayconsentdescription:{},translationurl:{},modalconsents:{}},[],[],!0),e.default=mi}(mc),"undefined"!=typeof window){customElements.define=function(e){return function(...t){try{return e.apply(this,t)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}}(customElements.define),Promise.resolve().then((()=>mc)).then((({default:e})=>{!customElements.get("player-consents")&&customElements.define("player-consents",e.element)}))}const pd=class{constructor(i){e(this,i),this.registrationWidgetLoaded=t(this,"registrationWidgetLoaded",7),this.registrationStepUpdated=t(this,"registrationStepUpdated",7),this.validationChange=t(this,"validationChange",7),this.isInitialInteraction=!0,this.listOfInputValues=[],this.listOfInputValidity=[],this.listOfActions=[],this.listOfInputs=[],this.conditionalValidationMap={},this.emitValue=!1,this.backButtonPressed=!1,this.registerErrors=!1,this.extraActions=[],this.registrationStepsState={regId:null},this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.host.shadowRoot.prepend(e)},this.setClientStylingURL=()=>{let e=new URL(this.clientStylingUrl),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,this.clientStyling=e,setTimeout((()=>{this.host.shadowRoot.prepend(t)}),1)}))},this.handleInitialClick=e=>{this.isInitialInteraction&&(e.preventDefault(),this.isInitialInteraction&&(uc("register_start",{field:e.target.name}),this.isInitialInteraction=!1))},this.endpoint=void 0,this.language="en",this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.dateFormat=void 0,this.buttonInsideForm=void 0,this.btag=null,this.emitOnClick=!1,this.errorMessage=void 0,this.isFormValid=void 0,this.isConsentValid=!1,this.isConsentReady=!1,this.isLoading=!0,this.isLoadingPOST=void 0,this.registrationStep=void 0,this.forms=[],this.limitStylingAppends=!1,this.autofilled=!1}sendStep(){this.registrationStepUpdated.emit(this.registrationStep),window.postMessage({type:"registrationStepUpdated",step:this.registrationStep},window.location.href)}handleStylingChange(e,t){e!==t&&this.setClientStyling()}handleStylingUrlChange(e,t){e!==t&&this.setClientStylingURL()}setFormValidity(){this.errorMessage="",this.listOfInputValidity&&(this.isFormValid=!this.getInvalidStatus(this.listOfInputValidity)),this.listOfInputs.some((e=>e.autofill))&&(this.autofilled=!0)}addBtag(){this.addBtagValue()}checkInputsValidityHandler(e){this.listOfInputValidity.find((t=>t.name==e.detail.name)).isValid=e.detail.valid,this.isFormValid=!this.getInvalidStatus(this.listOfInputValidity)}getInputsValueHandler(e){this.listOfInputValues.find((t=>{t.name==e.detail.name&&(t.value=e.detail.value,t.type=e.detail.type||null)})),this.stepsStateMachine({event:"set",type:"values"}),this.handleConditionalValidation(e.detail.name,e.detail.value)}componentWillLoad(){return this.getRegisterConfig().then((e=>{this.formatConfig(e),this.isFormValid=!this.getInvalidStatus(this.listOfInputValidity),this.stepsStateMachine({event:"set",type:"inputs"}),this.setupConditionalValidationMap()}))}setupConditionalValidationMap(){for(const e of this.listOfInputs){const t=[],i=[];for(const r of e.validate.custom)r.correlationField&&r.correlationValue?i.push(r):t.push(r);for(const r of i)if("regex"===r.rule){const i=Object.assign({},e.validate);i.custom=[...t,r];const n=r.correlationField,o=r.correlationValue;this.conditionalValidationMap[n]=this.conditionalValidationMap[n]||{},this.conditionalValidationMap[n][o]=this.conditionalValidationMap[n][o]||{},this.conditionalValidationMap[n][o][e.name]=i}}}handleConditionalValidation(e,t){if(this.conditionalValidationMap[e])for(const[i,r]of Object.entries(this.conditionalValidationMap[e][t])){const e=this.registrationStep&&parseInt(this.registrationStep.replace("Step",""))-1;this.forms[e][this.registrationStep].find((e=>e.name===i)).validate=r,this.validationChange.emit({validation:r,field:i})}}componentDidLoad(){this.registrationWidgetLoaded.emit(),window.postMessage({type:"registrationWidgetLoaded"},window.location.href),!this.limitStylingAppends&&this.host&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}messageHandler(e){e.data&&"isConsentsValid"!=e.data.type||(this.listOfInputValidity.find((e=>"Consents"===e.name)).isValid=!!e.data.isValid,this.isConsentValid=!!e.data.isValid,this.isFormValid=!this.getInvalidStatus(this.listOfInputValidity))}nextHandler(e){e.preventDefault(),this.emitValue=!0,this.setRegisterStep()}backHandler(e){e.preventDefault(),this.registrationStep=this.stepChange("decrement"),this.stepsStateMachine({event:"get",type:"inputs"}),this.stepsStateMachine({event:"get",type:"values"})}dispatchRegisterCredentialsEvent(){let e="",t="";Object.keys(this.registrationStepsState).forEach((i=>{this.registrationStepsState[i].registerUserData&&(e||(e=this.registrationStepsState[i].registerUserData.Email?this.registrationStepsState[i].registerUserData.Email.value:e),t||(t=this.registrationStepsState[i].registerUserData.Password?this.registrationStepsState[i].registerUserData.Password.value:t))})),this.registerCredentialsEvent=new CustomEvent("RegisterCredentials",{bubbles:!0,detail:{userNameEmail:e,userPassword:t}}),window.dispatchEvent(this.registerCredentialsEvent)}stepsStateMachine(e){const t=()=>{localStorage.setItem("registrationStepsState",JSON.stringify(this.registrationStepsState))};switch(e.event){case"set":if("inputs"==e.type){const e=this.registrationStepsState[this.registrationStep];e.fields=this.listOfInputs,e.actions=this.listOfActions,e.fieldsValidity=this.listOfInputValidity}"values"==e.type&&(this.registrationStepsState[this.registrationStep].registerUserData=this.listOfInputValues.reduce(((e,t)=>(e[t.name]={value:t.value,isDuplicate:t.isDuplicate},e)),{})),t();break;case"get":const i=JSON.parse(localStorage.getItem("registrationStepsState"));if(!i)return;if("inputs"==e.type){const e=this.registrationStepsState[this.registrationStep];this.listOfInputs=e.fields,this.listOfActions=e.actions,this.listOfInputValidity=e.fieldsValidity}if("values"==e.type){const e=i[this.registrationStep].registerUserData;this.listOfInputValues=Object.keys(e).map((t=>({name:t,value:e[t].value,isDuplicate:e[t].isDuplicate}))),this.listOfInputValues.forEach((e=>{const t=this.listOfInputs.find((t=>t.name===e.name));t&&(t.defaultValue=e.value,"togglecheckbox"===t.inputType&&t.data.subFields.forEach((e=>{const t=this.listOfInputValues.find((t=>t.name===e.name));e.defaultValue=t.value})))}))}this.isConsentReady=this.listOfActions.some((e=>"/Consents"===e)),this.isFormValid=!this.getInvalidStatus(this.listOfInputValidity)}}getRegisterConfig(e){const t=new URL(`${this.endpoint}/v1/player/legislation/registration/config`),i=new Headers;i.append("Content-Type","application/json"),i.append("Accept","application/json"),e&&t.searchParams.append("registrationId",e);const r={method:"GET",headers:i};return new Promise(((e,i)=>{this.isLoading=!0,fetch(t.href,r).then((e=>e.json())).then((t=>{this.isLoading=!1,e(t)})).catch((e=>{this.isLoading=!1,console.error(e),i(e)})).finally((()=>{this.isLoading=!1}))}))}setRegisterStep(){this.isLoadingPOST=!0;const e=new URL(`${this.endpoint}/v1/player/legislation/registration/step`),t={registrationId:this.registrationID,registerUserDto:this.listOfInputValues.filter((e=>!e.isDuplicate)).reduce(((e,t)=>("TypeOfPublicArea"===t.name?e[t.name]=t.value.toLowerCase():"tel"===t.type?(e.MobilePrefix=t.value.prefix,e[t.name]=t.value.phone):"checkboxgroup"===t.type?null!==t.value&&Object.entries(t.value).forEach((([t,i])=>{e[t]=i?"true":"false"})):e[t.name]="toggle"===t.type?t.value?"true":"false":t.value,e)),{}),step:this.registrationStep},i=new Headers;i.append("Content-Type","application/json"),i.append("Accept","application/json");const r={method:"POST",body:JSON.stringify(t),headers:i};fetch(e.href,r).then((e=>e.ok?("Step1"===this.registrationStep?uc("register_step1",{eventLabel:this.registrationStep,eventAction:"nextStep",eventCategory:"Registration",eventData:{IBAN:t.registerUserDto.IBAN,username:t.registerUserDto.Username}}):"Step2"===this.registrationStep?uc("register_step2",{eventLabel:this.registrationStep,eventAction:"nextStep",eventCategory:"Registration",eventData:{gender:t.registerUserDto.Gender,fullName:`${t.registerUserDto.FirstnameOnDocument} ${t.registerUserDto.LastNameOnDocument}`,city:t.registerUserDto.City}}):"Step3"===this.registrationStep&&uc("register_step3",{eventLabel:this.registrationStep,eventAction:"nextStep",eventCategory:"Registration",eventData:{OIB:t.registerUserDto.PersonalID,documentType:t.registerUserDto.DocumentType}}),e.json()):e.json().then((e=>{this.errorCode=e.thirdPartyResponse.errorCode,this.errorMessage="GmErr_BadRequest_IdomsoftVerification_ShouldRetry"==this.errorCode?e.thirdPartyResponse.message:"GmErr_Forbidden_UserAccount_NavExcluded"===this.errorCode?dc(`${this.errorCode}`,this.language):"GmErr_BadRequest"==this.errorCode?e.thirdPartyResponse.message:dc(`${this.errorCode}`,this.language)||dc("generalError",this.language)})))).then((e=>{this.isLoadingPOST=!1,this.registrationID=e.registrationId,this.listOfActions.some((e=>"/register"==e))?(this.listOfActions.some((e=>"/generate-2FA-code/Generate2FACode"==e))&&this.extraActions.push("2fa"),localStorage.getItem("playerConsents")&&localStorage.removeItem("playerConsents"),this.setRegister()):(this.isConsentValid&&window.postMessage({type:"setUpPlayerConsents",registerid:this.registrationID}),this.registrationStep=this.stepChange("increment"),Object.keys(this.registrationStepsState).find((e=>e==this.registrationStep))?(this.stepsStateMachine({event:"get",type:"inputs"}),this.stepsStateMachine({event:"get",type:"values"})):this.getRegisterConfig(this.registrationID).then((e=>{this.formatConfig(e),this.stepsStateMachine({event:"set",type:"inputs"}),this.setupConditionalValidationMap()})))})).catch((e=>{this.isLoadingPOST=!1,console.error(e)})).finally((()=>{this.isLoadingPOST=!1}))}setRegister(){this.isLoading=!0,this.registerErrors=!1;const e=new URL(`${this.endpoint}/v1/player/legislation/register`),t=new Headers;t.append("Content-Type","application/json"),t.append("Accept","application/json");const i={method:"PUT",body:JSON.stringify({registrationId:this.registrationID}),headers:t};uc("register_submit",{registrationId:this.registrationID}),fetch(e.href,i).then((e=>e.ok?e.json():(this.registerErrors=!0,e.json().then((e=>{this.errorCode=e.thirdPartyResponse.errorCode,this.errorMessage="GmErr_BadRequest_IdomsoftVerification_ShouldRetry"==this.errorCode||"GmErr_BadRequest"==this.errorCode?e.thirdPartyResponse.message:dc(`${this.errorCode}`,this.language)||dc("generalError",this.language),window.postMessage({type:"registrationFailed",errorMessage:null==e?void 0:e.thirdPartyResponse.message},window.location.href),window.postMessage({type:"WidgetNotification",data:{type:"error",message:this.errorMessage}},window.location.href),uc("register_fail",{error:this.errorMessage})}))))).then((e=>{this.isLoading=!1,this.registerErrors||(this.dispatchRegisterCredentialsEvent(),window.postMessage({type:"registrationSuccessful",userId:null==e?void 0:e.userId,extraActions:this.extraActions},window.location.href),window.postMessage({type:"WidgetNotification",data:{type:"success",message:dc("successMessage",this.language)}},window.location.href),uc("register_closed",{userId:e.userId}))})).catch((e=>{this.isLoading=!1,console.error(e)})).finally((()=>{this.isLoading=!1}))}formatConfig(e){if(this.listOfInputs=e.content.fields.flatMap((e=>{const t=e.validate.custom.find((e=>"duplicate-input"===e.rule)),i=Object.assign({},e);return t?[i,Object.assign(Object.assign({},e),{name:`${e.name}Duplicate`,displayName:t.displayName,isDuplicateInput:!0})]:[i]})),this.listOfInputValidity=this.listOfInputs.reduce(((e,t)=>{var i;return"togglecheckbox"===(null===(i=t.inputType)||void 0===i?void 0:i.toLowerCase())?t.data.subFields.forEach((t=>{e.push({name:t.name,isValid:this.setInitialValidStatus(t)})})):e.push({name:t.name,isValid:this.setInitialValidStatus(t)}),e}),[]),this.listOfInputValues=this.listOfInputs.reduce(((e,t)=>{var i;const r=null===(i=t.inputType)||void 0===i?void 0:i.toLowerCase();return"togglecheckbox"===r&&t.data.subFields.forEach((t=>{var i;e.push({name:t.name,value:"checkbox"==(null===(i=t.inputType)||void 0===i?void 0:i.toLowerCase())?"false":null,isDuplicate:t.isDuplicateInput||!1,type:"togglecheckbox"===r?"togglecheckbox":null})})),e.push({name:t.name,value:"checkbox"===r||"togglecheckbox"===r?"false":null,isDuplicate:t.isDuplicateInput||!1,type:"checkboxgroup"===r?"checkboxgroup":"togglecheckbox"===r?"toggle":null}),e}),[]),this.btag&&this.addBtagValue(),this.listOfActions=e.content.actions.map((e=>e)),this.registrationID=e.content.registrationID,this.registrationStep=e.content.step,this.listOfActions.some((e=>"/register"==e))&&(this.lastStep=this.registrationStep),this.listOfActions.some((e=>"/Consents"==e))){if(this.isConsentReady)return this.listOfInputValidity.find((e=>"Consents"===e.name)).isValid=!1,void(this.isFormValid=!this.getInvalidStatus(this.listOfInputValidity));this.listOfInputValidity.push({name:"Consents",isValid:!1}),this.isConsentReady=!0}else this.isConsentReady=!1;var t;this.translationUrl?(t=this.translationUrl,new Promise((e=>{fetch(t).then((e=>e.json())).then((t=>{Object.keys(t).forEach((e=>{for(let i in t[e])cc[e][i]=t[e][i]})),e(!0)}))}))).then((()=>{this.listOfInputs.forEach((e=>{var t,i;return this.addTranslation(e),"togglecheckbox"===(null===(t=e.inputType)||void 0===t?void 0:t.toLowerCase())&&e.data.subFields.forEach((e=>this.addTranslation(e))),"checkboxgroup"===(null===(i=e.inputType)||void 0===i?void 0:i.toLowerCase())&&(this.addTranslation(e),e.data.subFields.forEach((e=>this.addTranslation(e)))),e}))})).catch((e=>{console.error("Failed to fetch translations:",e)})).finally((()=>{this.forms=[...this.forms,{[this.registrationStep]:this.listOfInputs}]})):this.forms=[...this.forms,{[this.registrationStep]:this.listOfInputs}],this.registrationStepsState.regId=this.registrationID,this.registrationStepsState[this.registrationStep]||(this.registrationStepsState[this.registrationStep]={fields:[],fieldsValidity:[],registerUserData:{},actions:[]})}addBtagValue(){const e=this.listOfInputs.find((e=>"btag"===e.name.toLowerCase()));e&&(e.defaultValue=this.btag);const t=this.listOfInputValues.find((e=>"btag"===e.name.toLowerCase()));t&&(t.value=this.btag)}addTranslation(e){cc[cc[this.language]?this.language:"en"][e.name]&&Object.keys(cc[this.language][e.name]).forEach((t=>{e[t]=cc[this.language][e.name][t]}))}setInitialValidStatus(e){var t,i,r,n;return"checkbox"==(null===(t=e.inputType)||void 0===t?void 0:t.toLowerCase())&&0==(null===(i=e.validate)||void 0===i?void 0:i.mandatory)||("checkbox"!==(null===(r=e.inputType)||void 0===r?void 0:r.toLowerCase())||!(null===(n=e.validate)||void 0===n?void 0:n.mandatory)||"true"===e.defaultValue)&&null!==e.defaultValue}stepChange(e){const t=parseInt(this.registrationStep.replace("Step",""));return"increment"===e?"Step"+(t+1):"decrement"===e?"Step"+(t-1):void 0}getInvalidStatus(e){return e.filter((e=>0==e.isValid)).length>0}renderForm(){return this.forms.map(((e,t)=>i("form",{onClick:this.handleInitialClick,action:".",id:`RegistrationForm${this.registrationStep}`,class:"registration__form "+(this.registrationStep!==`Step${t+1}`?"hidden":""),ref:e=>this.form=e},e[this.registrationStep]&&e[this.registrationStep].map((e=>i("general-input",{type:e.inputType,name:e.name,displayName:e.displayName,validation:e.validate,action:e.action||null,options:e.data?"checkboxgroup"==e.inputType.toLowerCase()||"togglecheckbox"==e.inputType.toLowerCase()?e.data.subFields:e.data.values:[],defaultValue:e.defaultValue,autofilled:e.autofill,emitValue:this.emitValue,language:this.language,isDuplicateInput:e.isDuplicateInput,"client-styling":this.clientStyling,tooltip:e.tooltip,placeholder:null==e.placeholder?"":e.placeholder,dateFormat:this.dateFormat,"translation-url":this.translationUrl,emitOnClick:this.emitOnClick}))),this.isConsentReady&&this.renderConsents(),this.buttonInsideForm&&this.renderButtons(),i("div",{class:"registration__wrapper--flex"},i("p",{class:"registration__error-message",innerHTML:this.errorMessage})))))}renderConsents(){return i("div",{class:"consentsContainer"},i("player-consents",{endpoint:this.endpoint}))}renderButtons(){return i("div",{class:"registration__buttons-wrapper "+(this.autofilled?"registration__buttons-wrapper--autofilled":"")},this.isLoadingPOST&&i("slot",{name:"spinner"})&&i("svg",{class:"spinner",viewBox:"0 0 50 50"},i("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none","stroke-width":"5"})),!this.isLoadingPOST&&i("button",{class:"registration__button registration__button--next "+(this.isFormValid?"":"registration__button--disabled"),type:"submit",form:`RegistrationForm${this.registrationStep}`,onClick:e=>this.nextHandler(e),disabled:!this.isFormValid},dc(this.lastStep===this.registrationStep?"doneButton":"nextButton",this.language)),i("button",{class:"registration__button registration__button--back "+("Step1"==this.registrationStep?"registration__button--first-step":""),onClick:e=>this.backHandler(e)},dc("backButton",this.language)))}render(){return this.isLoading?i("p",null,"Please wait, loading ..."):i("div",{class:`registration registration__${this.registrationStep}`},this.renderForm(),!this.buttonInsideForm&&this.renderButtons())}get host(){return r(this)}static get watchers(){return{registrationStep:["sendStep"],clientStyling:["handleStylingChange"],clientStylingUrl:["handleStylingUrlChange"],forms:["setFormValidity"],btag:["addBtag"]}}};pd.style='*,\n*::before,\n*::after {\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n}\n\n.registration__form.hidden {\n display: none;\n}\n\n.registration {\n font-family: "Roboto";\n font-style: normal;\n font-family: sans-serif;\n display: flex;\n flex-direction: column;\n gap: 24px;\n width: 100%;\n height: 100%;\n container-type: inline-size;\n}\n.registration__wrapper {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.registration__error-message {\n color: var(--emw--color-error, var(--emw--color-red, #ed0909));\n font-size: 13px;\n display: block;\n justify-content: center;\n text-align: center;\n}\n.registration__form {\n display: grid;\n grid-template-columns: repeat(1, 1fr);\n gap: 40px;\n justify-items: stretch;\n align-content: flex-start;\n overflow: auto;\n width: 100%;\n height: 100%;\n}\n.registration__buttons-wrapper {\n display: flex;\n flex-direction: column;\n justify-content: space-around;\n align-items: center;\n position: relative;\n}\n.registration__button {\n border-radius: 5px;\n background: var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));\n border: 1px solid var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));\n color: var(--emw--button-typography, var(--emw--color-white, #FFFFFF));\n text-transform: uppercase;\n font-size: 20px;\n height: 44px;\n width: 100%;\n margin: 0px auto;\n padding: 10px 20px;\n font-weight: normal;\n box-shadow: none;\n cursor: pointer;\n}\n.registration__button--disabled {\n background: var(--emw--color-gray-100, #E6E6E6);\n border: 1px solid var(--emw--color-gray-150, #828282);\n pointer-events: none;\n box-shadow: none;\n}\n.registration__button--first-step {\n display: none;\n}\n\n@container (min-width: 450px) {\n .registration__form {\n grid-template-columns: repeat(2, 1fr);\n }\n .registration__buttons-wrapper {\n flex-direction: row-reverse;\n gap: 15px;\n }\n}\n.spinner {\n animation: rotate 2s linear infinite;\n z-index: 2;\n position: absolute;\n top: 50%;\n left: 50%;\n margin: -25px 0 0 -25px;\n width: 50px;\n height: 50px;\n}\n.spinner .path {\n stroke: var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));\n stroke-linecap: round;\n animation: dash 1.5s ease-in-out infinite;\n}\n\n@keyframes rotate {\n 100% {\n transform: rotate(360deg);\n }\n}\n@keyframes dash {\n 0% {\n stroke-dasharray: 1, 150;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -35;\n }\n 100% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -124;\n }\n}';const _d=class{constructor(i){e(this,i),this.sendValidityState=t(this,"sendValidityState",7),this.sendInputValue=t(this,"sendInputValue",7),this.validationPattern="",this.touched=!1,this.handleInput=e=>{this.value=e.target.value,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout((()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}),500)},this.handleBlur=()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0},this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(e,t){e!==t&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(e){this.sendValidityState.emit(e)}emitValueHandler(e){1==e&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(e){this.sendInputValue.emit(e)}handleClickOutside(e){e.composedPath()[0]!==this.tooltipIconReference&&e.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}connectedCallback(){this.validationPattern=this.setPattern()}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.isValid=this.setValidity(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}setValidity(){return this.inputReference.validity.valid}setPattern(){var e,t;if((null===(e=this.validation.custom)||void 0===e?void 0:e.length)>0)return null===(t=this.validation.custom.find((e=>"regex"===e.rule)))||void 0===t?void 0:t.pattern}setErrorMessage(){var e,t;if(this.inputReference.validity.patternMismatch){const i=null===(e=this.validation.custom.find((e=>"regex"===e.rule)))||void 0===e?void 0:e.errorKey,r=null===(t=this.validation.custom.find((e=>"regex"===e.rule)))||void 0===t?void 0:t.errorMessage;return s(`${i}`,this.language)?s(`${i}`,this.language):r}return this.inputReference.validity.rangeUnderflow||this.inputReference.validity.rangeOverflow?s("numberLengthError",this.language,{values:{min:this.validation.min,max:this.validation.max}}):this.inputReference.validity.valueMissing?s("requiredError",this.language):void 0}renderTooltip(){return this.showTooltip?i("div",{class:"number__tooltip "+(this.showTooltip?"visible":""),ref:e=>this.tooltipReference=e,innerHTML:this.tooltip}):null}render(){let e="";return this.touched&&(e=1==this.isValid||null==this.isValid?"":"text__input--invalid"),i("div",{key:"841265bba6b75cc61a0eac1450c3f5aa5f917a2e",class:`number__wrapper ${this.autofilled?"number__wrapper--autofilled":""} ${this.name}__input`,ref:e=>this.stylingContainer=e},i("div",{key:"645c7817cf5a0bdc352de9d8c0698fde235aa6d3",class:"number__wrapper--flex"},i("label",{key:"3343cbbb8482b71cd152161a8d422f318f07f3fe",class:"number__label "+(this.validation.mandatory?"number__label--required":""),htmlFor:`${this.name}__input`},this.displayName),i("div",{key:"1f3341b2127095870610fc0e0b4b5d220c5d2e2c",class:"number__wrapper--relative"},this.tooltip&&i("img",{key:"8bbe2fe9f62347cbcd37b753d4a1b0718dc39091",class:"number__tooltip-icon",src:a,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),i("input",{key:"100401abdc33069f34e27e0807c9f31ddf7e42ec",ref:e=>this.inputReference=e,type:"number",value:this.defaultValue,readOnly:this.autofilled,id:`${this.name}__input`,class:`number__input ${e}`,pattern:this.validationPattern,placeholder:`${this.placeholder}`,required:this.validation.mandatory,max:this.validation.max,min:this.validation.min,onInput:this.handleInput,onBlur:this.handleBlur}),i("small",{key:"db1e0043bb9b6de2ad8e18f49f96152b9451b93c",class:"number__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};_d.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.number{font-family:"Roboto";font-style:normal}.number__wrapper{position:relative;width:100%}.number__wrapper--autofilled{pointer-events:none}.number__wrapper--autofilled .number__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.number__wrapper--autofilled .number__input{color:var(--emw--color-black, #000000)}.number__wrapper--flex{display:flex;gap:5px}.number__wrapper--relative{position:relative}.number__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.number__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));margin-left:2px}.number__input{font-family:inherit;border-radius:5px;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px;position:relative;-moz-appearance:textfield;}.number__input:focus{outline-color:#3E3E3E}.number__input::-webkit-outer-spin-button,.number__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.number__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.number__input::placeholder{color:#979797}.number__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.number__tooltip-icon{width:16px;height:auto}.number__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.number__tooltip.visible{opacity:1}';const fd=class{constructor(i){e(this,i),this.sendOriginalValidityState=t(this,"sendOriginalValidityState",7),this.sendValidityState=t(this,"sendValidityState",7),this.sendInputValue=t(this,"sendInputValue",7),this.touched=!1,this.originalValid=!1,this.validationPattern="",this.duplicateInputValue=null,this.handleInput=e=>{this.value=e.target.value,this.calculateComplexity(this.value),this.showPopup=!0,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout((()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}),500)},this.handleRevealField=e=>{e.stopPropagation(),window.postMessage({type:`registrationShow${this.name}`},window.location.href)},this.handleBlur=e=>{this.value=e.target.value,this.showPopup=!1,this.touched=!0,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage()},this.handleFocus=()=>{this.showPopup=!0,this.calculateComplexity(this.value)},this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.clientStyling="",this.isValid=void 0,this.errorMessage=void 0,this.limitStylingAppends=!1,this.showTooltip=!1,this.passwordComplexity=void 0,this.showPopup=void 0,this.value=""}handleStylingChange(e,t){e!==t&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}valueChanged(){this.isDuplicateInput||(this.calculateComplexity(this.value),this.sendOriginalValidityState.emit({name:this.name,valid:this.setValidity()}))}emitValueHandler(e){1==e&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"duplicate"})}validityStateHandler(e){this.sendValidityState.emit(e)}valueHandler(e){this.sendInputValue.emit(e)}originalValidityChangedHandler(e){this.isDuplicateInput&&(e.detail.valid?(this.originalValid=!0,this.isValid=this.setValidity()):(this.originalValid=!1,this.isValid=!1,""!==this.value&&(this.errorMessage=this.setErrorMessage())))}valueChangedHandler(e){this.isDuplicateInput&&this.name===e.detail.name+"Duplicate"&&(this.duplicateInputValue=e.detail.value,this.touched&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())),this.name===e.detail.name+"Duplicate"&&this.name.replace("Duplicate","")===e.detail.name&&!0===this.touched&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())}handleClickOutside(e){e.composedPath()[0]!==this.tooltipIconReference&&e.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.inputReference=this.element.shadowRoot.querySelector("input"),this.passwordButton=this.element.shadowRoot.querySelector("vaadin-password-field-button"),this.passwordButton.tabIndex=-1,this.passwordButton.addEventListener("click",(e=>{this.handleRevealField(e)})),this.defaultValue&&(this.value=this.defaultValue,this.calculateComplexity(this.value),this.valueHandler({name:this.name,value:this.value}),this.isDuplicateInput&&(this.duplicateInputValue=this.defaultValue,this.touched=!0)),this.isValid=this.setValidity()}disconnectedCallback(){this.passwordButton.removeEventListener("click",this.handleRevealField)}calculateComplexity(e){this.passwordComplexity=this.validation.custom.filter((e=>"regex"===e.rule)).map((t=>{const i=new RegExp(t.pattern).test(e);return{rule:t.displayName,ruleKey:t.errorKey,passed:i}}))}setValidity(){var e,t;return(!this.isDuplicateInput||this.duplicateInputValue===this.value)&&!!(null===(e=this.passwordComplexity)||void 0===e?void 0:e.every((e=>e.passed)))&&(null===(t=this.inputReference)||void 0===t?void 0:t.validity.valid)}setPattern(){var e,t;if((null===(e=this.validation.custom)||void 0===e?void 0:e.length)>0)return null===(t=this.validation.custom.find((e=>"regex"===e.rule)))||void 0===t?void 0:t.pattern}setErrorMessage(){var e,t,i,r;if(this.isDuplicateInput&&!this.originalValid)return s("invalidOriginalPasswordError",this.language);if(this.inputReference.validity.patternMismatch){const i=null===(e=this.validation.custom.find((e=>"regex"===e.rule)))||void 0===e?void 0:e.errorKey,r=null===(t=this.validation.custom.find((e=>"regex"===e.rule)))||void 0===t?void 0:t.errorMessage;return s(`${i}`,this.language)?s(`${i}`,this.language):r}if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return s("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(this.inputReference.validity.valueMissing)return s("requiredError",this.language);if(this.isDuplicateInput&&this.duplicateInputValue!==this.value){const e=null===(i=this.validation.custom.find((e=>"duplicate-input"===e.rule)))||void 0===i?void 0:i.errorKey,t=null===(r=this.validation.custom.find((e=>"duplicate-input"===e.rule)))||void 0===r?void 0:r.errorMessage;return s(`${e}`,this.language)?s(`${e}`,this.language):t}}renderTooltip(){return this.showTooltip?i("div",{class:"password__tooltip "+(this.showTooltip?"visible":""),ref:e=>this.tooltipReference=e,innerHTML:this.tooltip}):null}renderComplexityPopup(){const e=this.passwordComplexity.length,t=this.passwordComplexity.filter((e=>e.passed)).length/e,r=this.passwordComplexity.every((e=>e.passed));return i("div",{class:"password__complexity "+(this.showPopup?"":"password__complexity--hidden")},i("div",{class:"password__complexity--strength"},i("p",{class:"password__complexity--text"},s("passwordStrength",this.language)," ",i("span",{class:"password__complexity--text-bold"},s(r?"passwordStrengthStrong":"passwordStrengthWeak",this.language))),i("meter",{value:t,min:"0",max:"1"})),i("div",null,this.passwordComplexity.map(((e,t)=>i("div",{key:t},i("input",{class:"password__complexity--checkbox",type:"checkbox",checked:e.passed,disabled:!0}),i("span",null,s(`${e.ruleKey}`,this.language)?s(`${e.ruleKey}`,this.language):e.rule))))))}render(){let e="";return this.touched&&(e=1==this.isValid||null==this.isValid?"":"text__input--invalid"),i("div",{key:"be707a0330de2fa306f4326a5b374d613e6633f5",class:`password__wrapper ${this.autofilled?"password__wrapper--autofilled":""} ${this.name}__input`,ref:e=>this.stylingContainer=e},i("div",{key:"47a7b4a114f9ccf3c8e759f2c8e933b492053a18",class:"password__wrapper--flex"},i("label",{key:"b51e602d00798e381eea83258812e70a6fe816a0",class:"password__label "+(this.validation.mandatory?"password__label--required":""),htmlFor:`${this.name}__input`},this.displayName),i("div",{key:"585a9dd0a701429b18d767dd19392ad2373e8ce3",class:"password__wrapper--relative"},this.tooltip&&i("img",{key:"637040e9773662b80b36b2d787511778ea12daf8",class:"password__tooltip-icon",src:a,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),i("vaadin-password-field",{key:"1626a68548b795aeb709e5a3a7950f7a5017c787",type:"password",id:`${this.name}__input`,class:`password__input ${e}`,name:this.name,readOnly:this.autofilled,value:this.defaultValue,required:this.validation.mandatory,maxlength:this.validation.maxLength,minlength:this.validation.minLength,pattern:this.validationPattern,placeholder:`${this.placeholder}`,onInput:this.handleInput,onBlur:this.handleBlur,onFocus:this.handleFocus}),i("small",{key:"791e90e36bf2d67b2a2e68649dcf3052851f2769",class:"password__error-message"},this.errorMessage),this.passwordComplexity&&this.showPopup&&!this.isDuplicateInput&&this.renderComplexityPopup())}get element(){return r(this)}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],value:["valueChanged"],emitValue:["emitValueHandler"]}}};fd.style='*,\n*::before,\n*::after {\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n}\n\n.password {\n font-family: "Roboto";\n font-style: normal;\n}\n.password__wrapper {\n position: relative;\n width: 100%;\n display: flex;\n flex-direction: column;\n gap: 5px;\n container-type: inline-size;\n}\n.password__wrapper--autofilled {\n pointer-events: none;\n}\n.password__wrapper--autofilled .password__label {\n color: var(--emw--registration-typography, var(--emw--color-black, #000000));\n}\n.password__wrapper--autofilled .password__input::part(input-field) {\n color: var(--emw--color-black, #000000);\n}\n.password__wrapper--flex {\n display: flex;\n gap: 5px;\n}\n.password__wrapper--relative {\n position: relative;\n}\n.password__label {\n font-family: inherit;\n font-style: normal;\n font-weight: 500;\n font-size: 16px;\n line-height: 20px;\n color: var(--emw--registration-typography, var(--emw--color-black, #000000));\n}\n.password__label--required::after {\n content: "*";\n font-family: inherit;\n color: var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));\n margin-left: 2px;\n}\n.password__input {\n width: inherit;\n border: none;\n}\n.password__input[focused]::part(input-field) {\n border-color: var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));\n}\n.password__input[invalid]::part(input-field) {\n border: 1px solid var(--emw--color-error, var(--emw--color-red, #ed0909));\n}\n.password__input::part(input-field) {\n border-radius: 4px;\n background-color: var(--emw--color-white, #FFFFFF);\n border: 1px solid var(--emw--color-gray-100, #E6E6E6);\n color: var(--emw--color-black, #000000);\n background-color: var(--emw--color-white, #FFFFFF);\n font-family: inherit;\n font-style: normal;\n font-weight: 300;\n font-size: 16px;\n line-height: 1.5;\n position: relative;\n margin-bottom: unset;\n height: 44px;\n padding: 0;\n width: 100%;\n}\n.password__input::part(reveal-button) {\n position: relative;\n right: 10px;\n}\n.password__input::part(reveal-button)::before {\n color: var(--emw--registration-typography, var(--emw--color-black, #000000));\n}\n.password__input > input {\n padding: 5px 15px;\n}\n.password__input > input:placeholder-shown {\n color: var(--emw--color-gray-150, #828282);\n}\n.password__error-message {\n position: absolute;\n top: calc(100% + 5px);\n left: 0;\n color: var(--emw--color-error, var(--emw--color-red, #ed0909));\n}\n.password__complexity {\n height: 150px;\n position: relative;\n padding: 10px;\n display: flex;\n flex-direction: column;\n gap: 20px;\n justify-content: center;\n margin-top: 20px;\n font-weight: 300;\n background: var(--emw--color-white, #FFFFFF);\n -webkit-border-radius: 5px;\n -moz-border-radius: 5px;\n border-radius: 5px;\n border: 1px solid #B0B0B0;\n box-sizing: content-box;\n /* works only in this order */\n}\n.password__complexity meter {\n border-color: transparent; /* Needed for Safari */\n}\n.password__complexity meter[value="1"]::-moz-meter-bar {\n background-color: var(--emw--color-valid, #48952a);\n}\n.password__complexity meter[value="1"]::-webkit-meter-optimum-value {\n background-color: var(--emw--color-valid, #48952a);\n}\n.password__complexity meter:not([value="1"])::-moz-meter-bar {\n background-color: var(--emw--color-error, #FD2839);\n}\n.password__complexity meter:not([value="1"])::-webkit-meter-optimum-value {\n background-color: var(--emw--color-error, #FD2839);\n}\n.password__complexity--strength {\n display: flex;\n justify-content: space-evenly;\n align-items: center;\n}\n.password__complexity--strength meter::-moz-meter-bar { /* Firefox Pseudo Class */\n background: #B0B0B0;\n}\n.password__complexity--hidden {\n display: none;\n}\n.password__complexity--text-bold {\n font-weight: 500;\n}\n.password__complexity--checkbox {\n margin-right: 5px;\n}\n.password__complexity:after {\n content: "";\n position: absolute;\n width: 25px;\n height: 25px;\n border-top: 1px solid var(--emw--color-gray-150, #828282);\n border-right: 0 solid var(--emw--color-gray-150, #828282);\n border-left: 1px solid var(--emw--color-gray-150, #828282);\n border-bottom: 0 solid var(--emw--color-gray-150, #828282);\n bottom: 92%;\n left: 50%;\n margin-left: -25px;\n transform: rotate(45deg);\n margin-top: -25px;\n background-color: var(--emw--color-white, #FFFFFF);\n}\n@container (max-width: 300px) {\n .password__complexity {\n height: 190px;\n }\n .password__complexity:after {\n width: 14px;\n height: 14px;\n bottom: 96%;\n left: 57%;\n }\n}\n.password__tooltip-icon {\n width: 16px;\n height: auto;\n}\n.password__tooltip {\n position: absolute;\n top: 0;\n left: 20px;\n background-color: var(--emw--color-white, #FFFFFF);\n border: 1px solid var(--emw--color-gray-150, #828282);\n color: #2B2D3F;\n padding: 10px;\n border-radius: 5px;\n opacity: 0;\n transition: opacity 0.3s ease-in-out;\n z-index: 10;\n}\n.password__tooltip.visible {\n opacity: 1;\n}';const vd=class{constructor(i){e(this,i),this.sendInputValue=t(this,"sendInputValue",7),this.sendValidityState=t(this,"sendValidityState",7),this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},this.name=void 0,this.displayName=void 0,this.optionsGroup=void 0,this.validation=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(e,t){e!==t&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(e){1==e&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(e){this.sendInputValue.emit(e)}validityStateHandler(e){this.sendValidityState.emit(e)}handleClickOutside(e){e.composedPath()[0]!==this.tooltipIconReference&&e.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}handleClick(e){this.value=e.target.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return s("requiredError",this.language)}renderTooltip(){return this.showTooltip?i("div",{class:"radio__tooltip "+(this.showTooltip?"visible":""),ref:e=>this.tooltipReference=e,innerHTML:this.tooltip}):null}render(){return i("fieldset",{key:"29ff8fcc910622397750532629ac0c202c9726ba",class:`radio__fieldset ${this.name}__input`,ref:e=>this.stylingContainer=e},i("legend",{key:"cdab5b331863f3d31aab50c1d95b5a8845d53329",class:"radio__legend"},this.displayName,":"),this.optionsGroup.map((e=>i("div",{class:"radio__wrapper"},i("input",{type:"radio",class:"radio__input",id:`${e.label}__input`,ref:e=>this.inputReference=e,value:e.value,name:this.name,required:this.validation.mandatory,onClick:e=>this.handleClick(e)}),i("label",{htmlFor:`${e.label}__input`},e.label)))),i("small",{key:"bd6cd89510e7ace1348b391f3ce9ba334a03e695",class:"radio__error-message"},this.errorMessage),this.tooltip&&i("img",{key:"27036c51c89612dbb87e5248355d3a5466c49705",class:"radio__tooltip-icon",src:a,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};vd.style="*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.radio__fieldset{border:none;position:relative}.radio__wrapper{display:flex;gap:5px}.radio__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.radio__tooltip-icon{position:absolute;right:0;bottom:10px}.radio__tooltip{position:absolute;bottom:35px;right:10px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.radio__tooltip.visible{opacity:1}";const gd=class{constructor(i){e(this,i),this.sendValidityState=t(this,"sendValidityState",7),this.sendInputValue=t(this,"sendInputValue",7),this.touched=!1,this.handleChange=e=>{this.touched=!0;const t=e.target.value,i=this.options.find((e=>e.value.toLowerCase()===t.toLowerCase()));this.value=i?i.value:t,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},this.handleBlur=e=>{this.value=e.target.value,this.touched=!0,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name})},this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.action=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.options=[],this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(e,t){e!==t&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(e){this.sendValidityState.emit(e)}emitValueHandler(e){1==e&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(e){this.sendInputValue.emit(e)}handleClickOutside(e){e.composedPath()[0]!==this.tooltipIconReference&&e.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}connectedCallback(){this.displayedOptions=this.options.map((e=>({label:e.label,value:e.value.toUpperCase()})))}componentWillLoad(){if(this.action&&!this.options.length&&"GET"==this.action.split(" ")[0]){const e=this.action.split(" ")[1];return this.getOptions(e).then((e=>{const t=Object.keys(e)[0];this.displayedOptions=e[t].map((e=>({label:e.Name,value:e.Alpha2Code})))}))}}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.inputReference=this.element.shadowRoot.querySelector("input"),this.isValid=this.setValidity(),this.defaultValue&&(this.value=this.defaultValue.toUpperCase(),this.valueHandler({name:this.name,value:this.value}))}getOptions(e){const t=new URL(e);return new Promise(((e,i)=>{fetch(t.href).then((e=>e.json())).then((t=>{e(t)})).catch((e=>{console.error(e),i(e)}))}))}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return s("requiredError",this.language)}renderTooltip(){return this.showTooltip?i("div",{class:"select__tooltip "+(this.showTooltip?"visible":""),ref:e=>this.tooltipReference=e,innerHTML:this.tooltip}):null}render(){let e="";return this.touched&&(e=1==this.isValid||null==this.isValid?"":"text__input--invalid"),i("div",{key:"46061c64a7cb7dad5b2ca1cd38e27b2ea12e88ce",class:`select__wrapper ${this.autofilled?"select__wrapper--autofilled":""} ${this.name}__input`,ref:e=>this.stylingContainer=e},i("div",{key:"cebc0fad817eff49669c4df47d47a4d97c5db317",class:"select__wrapper--flex"},i("label",{key:"a5360d9342ca9c446bdff6b84a717aa47fa71a4f",class:"select__label",htmlFor:`${this.name}__input`},`${this.displayName} ${this.validation.mandatory?"*":""}`),i("div",{key:"78d699e2a57122dd74f4d414211b586d19f030e7",class:"select__wrapper--relative"},this.tooltip&&i("img",{key:"e6fb14604b078a0b0f284d9234262c76e4c581f8",class:"select__tooltip-icon",src:a,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),i("vaadin-combo-box",{key:"91c86ee20ee639ba0e4338ba5501621486c94fa4",name:this.name,id:`${this.name}__input`,class:`select__input ${e} ${this.autofilled?"select__input--autofilled":""}`,"item-label-path":"label","item-value-path":"value",readOnly:this.autofilled,required:this.validation.mandatory,value:this.defaultValue,placeholder:`${this.placeholder}`,items:this.displayedOptions,onChange:this.handleChange,onBlur:this.handleBlur}),i("small",{key:"18a6172cb9566f000d5f397d759eb95a06fbc7b4",class:"select__error-message"},this.errorMessage))}get element(){return r(this)}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};gd.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}:host{height:100%}vaadin-combo-box>input{background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--registration-typography, var(--emw--color-black, #000000));font-weight:300;font-size:16px;-webkit-font-smoothing:initial;}.select{font-family:"Roboto";font-style:normal}.select__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.select__wrapper--autofilled{pointer-events:none}.select__wrapper--autofilled .select__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.select__wrapper--autofilled .select__input::part(input-field){color:var(--emw--color-black, #000000)}.select__wrapper--flex{display:flex;gap:5px}.select__wrapper--relative{position:relative}.select__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.select__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));margin-left:2px}.select__input{border:none;width:inherit;position:relative}.select__input[focused]::part(input-field){border-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.select__input[invalid]::part(input-field){border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.select__input vaadin-date-picker-overlay-content>vaadin-button{color:var(--emw--color-black, #000000)}.select__input::part(input-field){border-radius:4px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);font-family:inherit;font-style:normal;font-size:16px;font-weight:300;line-height:1.5;padding:0;height:44px}.select__input::part(toggle-button){position:relative;right:10px}.select__input>input{padding:5px 15px}.select__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.select__tooltip-icon{width:16px;height:auto}.select__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.select__tooltip.visible{opacity:1}';const Ed=class{constructor(i){e(this,i),this.sendValidityState=t(this,"sendValidityState",7),this.sendInputValue=t(this,"sendInputValue",7),this.validationPattern="",this.touched=!1,this.handleInput=e=>{this.phoneValue=e.target.value,this.value={prefix:this.prefixValue,phone:this.phoneValue},this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout((()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}),500)},this.handleBlur=()=>{this.isValid=this.setValidity(),this.touched=!0,this.errorMessage=this.setErrorMessage()},this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.showLabels=void 0,this.action=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.isValid=void 0,this.errorMessage=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(e,t){e!==t&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value,type:"tel"})}validityStateHandler(e){this.sendValidityState.emit(e)}emitValueHandler(e){1==e&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"tel"})}valueHandler(e){this.sendInputValue.emit(e)}handleClickOutside(e){e.composedPath()[0]!==this.tooltipIconReference&&e.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}connectedCallback(){this.validationPattern=this.setPattern(),this.defaultValue&&(this.prefixValue=this.defaultValue.prefix?this.defaultValue.prefix:this.defaultValue,this.phoneValue=this.defaultValue.phone||null)}componentWillLoad(){if(this.action&&"GET"==this.action.split(" ")[0]){const e=this.action.split(" ")[1];return this.getPhoneCodes(e).then((e=>{this.phoneCodesOptions=e.phoneCodes.map((e=>"object"==typeof e&&e.Prefix?{label:e.Prefix,value:e.Prefix}:{label:e,value:e}))}))}}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.isValid=this.setValidity(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value,type:"tel"}))}getPhoneCodes(e){const t=new URL(e);return new Promise(((e,i)=>{fetch(t.href).then((e=>e.json())).then((t=>{e(t)})).catch((e=>{console.error(e),i(e)}))}))}handlePrefixInput(e){this.prefixValue=e.target.value,this.value={prefix:this.prefixValue,phone:this.phoneValue},this.emitValueHandler(!0)}setValidity(){return this.inputReference.validity.valid}setPattern(){var e,t;if((null===(e=this.validation.custom)||void 0===e?void 0:e.length)>0)return null===(t=this.validation.custom.find((e=>"regex"===e.rule)))||void 0===t?void 0:t.pattern}setErrorMessage(){var e,t;if(this.inputReference.validity.patternMismatch){const i=null===(e=this.validation.custom.find((e=>"regex"===e.rule)))||void 0===e?void 0:e.errorKey,r=null===(t=this.validation.custom.find((e=>"regex"===e.rule)))||void 0===t?void 0:t.errorMessage;return s(`${i}`,this.language)?s(`${i}`,this.language):r}return this.inputReference.validity.tooShort||this.inputReference.validity.tooLong?s("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}}):this.inputReference.validity.valueMissing?s("requiredError",this.language):void 0}renderTooltip(){return this.showTooltip?i("div",{class:"tel__tooltip "+(this.showTooltip?"visible":""),ref:e=>this.tooltipReference=e,innerHTML:this.tooltip}):null}render(){let e="";return this.touched&&(e=1==this.isValid||null==this.isValid?"":"text__input--invalid"),i("div",{key:"a5804fccd849a4e8f2deb346479fa782113ee4d8",class:`tel__wrapper ${this.autofilled?"tel__wrapper--autofilled":""} ${this.name}__input`,ref:e=>this.stylingContainer=e},i("div",{key:"403490057cb5a5ae95b850ee7e1350d354668566",class:"tel__wrapper--flex-label"},i("label",{key:"64c14d728022fdf959c7710fa1c35c8e340be0cc",class:"tel__label "+(this.validation.mandatory?"tel__label--required":""),htmlFor:`${this.name}__input`},this.displayName),i("div",{key:"14be3f2d3fd1352f4b69fee63399b03b99dd3338",class:"tel__wrapper--relative"},this.tooltip&&i("img",{key:"b7e3f1d243877bc0c8911894bf4a624fc647050e",class:"tel__tooltip-icon",src:a,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),i("div",{key:"43e55c0e386b59b3c86d59ca5919f95c387a2049",class:`tel__wrapper--flex ${e}`},i("vaadin-combo-box",{key:"9c7ba7049f325eeba05b6bfac98d10093a2342fc",class:"tel__prefix",items:this.phoneCodesOptions,value:this.prefixValue,readOnly:this.autofilled,onChange:e=>this.handlePrefixInput(e)}),i("input",{key:"24b4723063ce7724c2599979457986f315e7a687",type:"tel",ref:e=>this.inputReference=e,id:`${this.name}__input`,readOnly:this.autofilled,class:"tel__input",value:this.phoneValue,placeholder:`${this.placeholder}`,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.validation.maxLength,pattern:this.validationPattern,onInput:this.handleInput,onBlur:this.handleBlur})),i("small",{key:"d95f2dc869e4ba7ecfc7ff6b0122f5dad3c34f27",class:"tel__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Ed.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.tel{font-family:"Roboto";font-style:normal}.tel__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.tel__wrapper--autofilled{pointer-events:none}.tel__wrapper--autofilled .tel__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.tel__wrapper--autofilled .tel__input::part(input-field){color:var(--emw--color-black, #000000)}.tel__wrapper--flex{width:inherit;display:flex;align-items:center;border-radius:4px;border:1px solid var(--emw--color-gray-100, #E6E6E6);background-color:var(--emw--color-white, #FFFFFF);overflow:hidden}.tel__wrapper--flex:focus-within{border-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.tel__wrapper--flex--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.tel__wrapper--flex-label{display:flex;gap:5px}.tel__wrapper--flex--relative{position:relative}.tel__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.tel__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));margin-left:2px}.tel__prefix{--vaadin-field-default-width:90px}.tel__prefix[focus]{outline:none}.tel__prefix::part(input-field){border-radius:0 5px 5px 0;background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--color-black, #000000);font-family:inherit;font-style:normal;font-weight:300;font-size:16px;line-height:1.5;border:none;border-right:2px solid #DDE0EE;border-image-source:linear-gradient(to bottom, rgba(221, 224, 238, 0) 25%, rgb(221, 224, 238) 25%, rgb(221, 224, 238) 75%, rgba(221, 224, 238, 0) 75%);border-image-slice:1;border-image-repeat:round}.tel__prefix::part(input-field):hover{background-color:var(--emw--color-white, #FFFFFF)}.tel__prefix::part(toggle-button){color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.tel__input{font-family:inherit;border-radius:5px;width:100%;color:var(--emw--registration-typography, var(--emw--color-black, #000000));background-color:var(--emw--color-white, #FFFFFF);border:none;width:inherit;position:relative;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px;height:42px;-moz-appearance:textfield;}.tel__input:focus{outline:none}.tel__input::-webkit-outer-spin-button,.tel__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.tel__input::placeholder{color:var(--emw--color-gray-150, #979797)}.tel__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.tel__tooltip-icon{width:16px;height:auto}.tel__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.tel__tooltip.visible{opacity:1}';const bd=class{constructor(i){e(this,i),this.sendValidityState=t(this,"sendValidityState",7),this.sendInputValue=t(this,"sendInputValue",7),this.value="",this.validationPattern="",this.duplicateInputValue=null,this.touched=!1,this.handleInput=e=>{this.value=e.target.value,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout((()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValueHandler(!0)}),500)},this.handleBlur=e=>{this.value=e.target.value,this.touched=!0,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name})},this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.checkValidity=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.clientStyling="",this.isValid=void 0,this.errorMessage="",this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(e,t){e!==t&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(e){1==e&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(e){this.sendValidityState.emit(e)}valueHandler(e){this.sendInputValue.emit(e)}handleClickOutside(e){e.composedPath()[0]!==this.tooltipIconReference&&e.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}valueChangedHandler(e){this.isDuplicateInput&&this.name===e.detail.name+"Duplicate"&&(this.duplicateInputValue=e.detail.value,this.touched&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())),this.name===e.detail.name+"Duplicate"&&this.name.replace("Duplicate","")===e.detail.name&&!0===this.touched&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())}handleValidationChange(e){e.detail.field===this.name&&(this.validation=e.detail.validation,this.validationPattern=this.setPattern(),this.touched&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage()))}connectedCallback(){this.validationPattern=this.setPattern()}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}),this.isDuplicateInput&&(this.touched=!0)),this.isValid=this.setValidity()}setValidity(){var e;return(!this.isDuplicateInput||this.duplicateInputValue===this.value)&&(null===(e=this.inputReference)||void 0===e?void 0:e.validity.valid)&&null!=this.inputReference.value.match(this.validationPattern)}setPattern(){var e,t;if((null===(e=this.validation.custom)||void 0===e?void 0:e.length)>0)return null===(t=this.validation.custom.find((e=>"regex"===e.rule)))||void 0===t?void 0:t.pattern}setErrorMessage(){var e,t,i,r;if(null==this.inputReference.value.match(this.validationPattern)){const i=null===(e=this.validation.custom.find((e=>"regex"===e.rule)))||void 0===e?void 0:e.errorKey,r=null===(t=this.validation.custom.find((e=>"regex"===e.rule)))||void 0===t?void 0:t.errorMessage;return s(`${i}`,this.language)||r}if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return s("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(this.inputReference.validity.valueMissing)return s("requiredError",this.language);if(this.isDuplicateInput&&this.duplicateInputValue!==this.value){const e=null===(i=this.validation.custom.find((e=>"duplicate-input"===e.rule)))||void 0===i?void 0:i.errorKey,t=null===(r=this.validation.custom.find((e=>"duplicate-input"===e.rule)))||void 0===r?void 0:r.errorMessage;return s(`${e}`,this.language)?s(`${e}`,this.language):t}}renderTooltip(){return this.showTooltip?i("div",{class:"text__tooltip "+(this.showTooltip?"visible":""),ref:e=>this.tooltipReference=e,innerHTML:this.tooltip}):null}render(){let e="";return this.touched&&(e=1==this.isValid||null==this.isValid?"":"text__input--invalid"),i("div",{key:"3050f7be1581f0cd5b5e1ce708a789b5e7a54b03",class:`text__wrapper ${this.name}__input ${this.autofilled?"text__wrapper--autofilled":""}`,ref:e=>this.stylingContainer=e},i("div",{key:"9dcc93fb8c091c599269454ab21c03c2380ffef7",class:"text__wrapper--flex"},i("label",{key:"0054347b1a4de17ea60b898783de0ef6b42233ee",class:"text__label "+(this.validation.mandatory?"text__label--required":""),htmlFor:`${this.name}__input`},this.displayName),i("div",{key:"b4655608e397f8d2a8179c01521756bf87746ace",class:"text__wrapper--relative"},this.tooltip&&i("img",{key:"c71c1ca1175d11ec352eca5cff216bb244aa7895",class:"text__tooltip-icon",src:a,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),i("input",{key:"2df3c181c5ca725e121c0878a10ca257da7cdd34",name:this.name,id:`${this.name}__input`,value:this.defaultValue,type:"text",class:`text__input ${e}`,placeholder:`${this.placeholder}`,ref:e=>this.inputReference=e,readOnly:this.autofilled,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.validation.maxLength,onInput:this.handleInput,onBlur:this.handleBlur}),i("small",{key:"5785eb51774c9159e474fbdbd5be0c1ab2a57899",class:"text__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};bd.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.text{font-family:"Roboto";font-style:normal}.text__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px;height:100%}.text__wrapper--autofilled{pointer-events:none}.text__wrapper--autofilled .text__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.text__wrapper--autofilled .text__input::part(input-field){color:var(--emw--color-black, #000000)}.text__wrapper--flex{display:flex;gap:5px}.text__wrapper--relative{position:relative}.text__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.text__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));margin-left:2px}.text__input{font-family:inherit;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--color-black, #000000);border-radius:5px;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px}.text__input:focus{border:1px solid var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.text__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.text__input::placeholder{color:var(--emw--color-gray-150, #828282)}.text__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.text__tooltip-icon{width:16px;height:auto}.text__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.text__tooltip.visible{opacity:1}';const yd=class{constructor(i){e(this,i),this.sendValidityState=t(this,"sendValidityState",7),this.sendInputValue=t(this,"sendInputValue",7),this.callBackObject={},this.subFieldsObject={},this.value="",this.handleRevealField=(e,t)=>{e.stopPropagation(),window.postMessage({type:`registration${t}Clicked`},window.location.href)},this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},this.name=void 0,this.displayName=void 0,this.defaultValue="",this.options=void 0,this.autofilled=void 0,this.tooltip=void 0,this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1,this.showFields="true"===this.defaultValue}handleStylingChange(e,t){e!==t&&this.setClientStyling()}validityStateHandler(e){this.sendValidityState.emit(e)}valueHandler(e){this.sendInputValue.emit(e)}handleClickOutside(e){e.composedPath()[0]!==this.tooltipIconReference&&e.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){0!==this.options.length&&this.options.forEach((e=>{this.callBackObject[e.name]=t=>{this.handleRevealField(t,e.name)},this.subFieldsObject[e.name].addEventListener("click",this.callBackObject[e.name])}))}handleClick(){this.showFields=this.checkboxReference.checked,this.errorMessage=this.setErrorMessage(),this.isValid=this.setValidity(),this.valueHandler({name:this.name,value:this.checkboxReference.checked?"true":"false",type:"toggle"})}setValidity(){return this.checkboxReference.validity.valid}setErrorMessage(){if(this.checkboxReference.validity.valueMissing)return s("requiredError",this.language)}disconnectedCallback(){this.options.forEach((e=>{this.subFieldsObject[e.name].removeEventListener("click",this.callBackObject[e.name])}))}renderLabel(){return i("label",{class:"togglecheckbox__label",htmlFor:`${this.name}__input`},i("div",{class:"togglecheckbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}renderTooltip(){return this.showTooltip?i("div",{class:"togglecheckbox__tooltip "+(this.showTooltip?"visible":""),ref:e=>this.tooltipReference=e,innerHTML:this.tooltip}):null}render(){return i("div",{key:"d7084a7f82d45b3d1e7f8ae373b663b2aefdf5ec",class:`togglecheckbox__wrapper ${this.name}__input`,ref:e=>this.stylingContainer=e},i("div",{key:"f065f4611805dd8490234bcec1fecdbcfcaefab8",class:"togglecheckbox__wrapper--flex"},i("input",{key:"c5196d5a4cd2f114a610037285ee644fcabc37bd",class:"togglecheckbox__input",type:"checkbox",id:`${this.name}__input`,ref:e=>this.checkboxReference=e,name:this.name,checked:"true"===this.defaultValue,readOnly:this.autofilled,required:this.validation.mandatory,value:this.value,onClick:()=>this.handleClick()}),this.renderLabel()),i("small",{key:"06d5db0994272ec9dde1b5cd0d525bb53ff1a058",class:"togglecheckbox__error-message"},this.errorMessage),i("div",{key:"aff16ac9ed0adb896f2c1822014c5c8c4d6db2d4",class:"togglecheckbox__wrapper--relative"},this.tooltip&&i("img",{key:"6b049cecc095a2127eb566f50fd0f8feaa8cb3d5",class:"togglecheckbox__tooltip-icon",src:a,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()),i("div",{key:"372c3eb72cffd482fe1c179047ec3900cef00d46",class:"togglecheckbox__fields-wrapper "+(this.showFields?"":"hidden")},this.options.map((e=>i("general-input",{type:e.inputType,name:e.name,displayName:e.displayName,validation:e.validate,action:e.action||null,defaultValue:e.defaultValue,autofilled:e.autofill,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:e.tooltip,placeholder:null==e.placeholder?"":e.placeholder,ref:t=>this.subFieldsObject[e.name]=t})))))}static get watchers(){return{clientStyling:["handleStylingChange"]}}};yd.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.togglecheckbox{font-family:"Roboto";font-style:normal;font-size:15px}.togglecheckbox__wrapper{position:relative}.togglecheckbox__wrapper--flex{display:flex;gap:10px;align-items:baseline}.togglecheckbox__wrapper--relative{position:relative;display:inline}.togglecheckbox__input{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.togglecheckbox__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;cursor:pointer;padding:0}.togglecheckbox__label-text{font-size:16px}.togglecheckbox__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.togglecheckbox__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.togglecheckbox__tooltip-icon{width:16px;height:auto}.togglecheckbox__tooltip{position:absolute;top:0;right:0;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.togglecheckbox__tooltip.visible{opacity:1}.togglecheckbox__fields-wrapper{margin-top:40px;display:flex;flex-direction:column;gap:40px}.hidden{display:none}';export{l as checkbox_group_input,h as checkbox_input,Xt as date_input,Kt as email_input,hc as general_input,pd as general_registration,_d as number_input,fd as password_input,vd as radio_input,gd as select_input,Ed as tel_input,bd as text_input,yd as toggle_checkbox_input}
4524
+ ***************************************************************************** */var w,k=function(e,t){return(k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])})(e,t)};function x(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}k(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var S=function(){return S=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},S.apply(this,arguments)};function A(e,t,i){if(2===arguments.length)for(var r,n=0,o=t.length;n<o;n++)(r||!(n in t))&&(r||(r=Array.prototype.slice.call(t,0,n)),r[n]=t[n]);return e.concat(r||t)}function I(e,t){return(t&&t.strategy?t.strategy:R)(e,{cache:t&&t.cache?t.cache:U,serializer:t&&t.serializer?t.serializer:N})}function C(e,t,i,r){var n=function(e){return null==e||"number"==typeof e||"boolean"==typeof e}(r)?r:i(r),o=t.get(n);return void 0===o&&(o=e.call(this,r),t.set(n,o)),o}function D(e,t,i){var r=Array.prototype.slice.call(arguments,3),n=i(r),o=t.get(n);return void 0===o&&(o=e.apply(this,r),t.set(n,o)),o}function T(e,t,i,r,n){return i.bind(t,e,r,n)}function R(e,t){return T(e,this,1===e.length?C:D,t.cache.create(),t.serializer)}var N=function(){return JSON.stringify(arguments)};function O(){this.cache=Object.create(null)}O.prototype.get=function(e){return this.cache[e]},O.prototype.set=function(e,t){this.cache[e]=t};var z,G,M,U={create:function(){return new O}},B={variadic:function(e,t){return T(e,this,D,t.cache.create(),t.serializer)},monadic:function(e,t){return T(e,this,C,t.cache.create(),t.serializer)}};function P(e){return e.type===G.literal}function L(e){return e.type===G.argument}function j(e){return e.type===G.number}function F(e){return e.type===G.date}function q(e){return e.type===G.time}function H(e){return e.type===G.select}function V(e){return e.type===G.plural}function $(e){return e.type===G.pound}function X(e){return e.type===G.tag}function K(e){return!(!e||"object"!=typeof e||e.type!==M.number)}function Y(e){return!(!e||"object"!=typeof e||e.type!==M.dateTime)}!function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(z||(z={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(G||(G={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(M||(M={}));var W=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Z=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Q(e){var t={};return e.replace(Z,(function(e){var i=e.length;switch(e[0]){case"G":t.era=4===i?"long":5===i?"narrow":"short";break;case"y":t.year=2===i?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][i-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][i-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===i?"long":5===i?"narrow":"short";break;case"e":if(i<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][i-4];break;case"c":if(i<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][i-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][i-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][i-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][i-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][i-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][i-1];break;case"s":t.second=["numeric","2-digit"][i-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=i<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}var J=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function ee(e){return e.replace(/^(.*?)-/,"")}var te=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,ie=/^(@+)?(\+|#+)?[rs]?$/g,re=/(\*)(0+)|(#+)(0+)|(0+)/g,ne=/^(0+)$/;function oe(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(ie,(function(e,i,r){return"string"!=typeof r?(t.minimumSignificantDigits=i.length,t.maximumSignificantDigits=i.length):"+"===r?t.minimumSignificantDigits=i.length:"#"===i[0]?t.maximumSignificantDigits=i.length:(t.minimumSignificantDigits=i.length,t.maximumSignificantDigits=i.length+("string"==typeof r?r.length:0)),""})),t}function se(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function ae(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var i=e.slice(0,2);if("+!"===i?(t.signDisplay="always",e=e.slice(2)):"+?"===i&&(t.signDisplay="exceptZero",e=e.slice(2)),!ne.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function le(e){return se(e)||{}}function he(e){for(var t={},i=0,r=e;i<r.length;i++){var n=r[i];switch(n.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=n.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=ee(n.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=S(S(S({},t),{notation:"scientific"}),n.options.reduce((function(e,t){return S(S({},e),le(t))}),{}));continue;case"engineering":t=S(S(S({},t),{notation:"engineering"}),n.options.reduce((function(e,t){return S(S({},e),le(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(n.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(n.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");n.options[0].replace(re,(function(e,i,r,n,o,s){if(i)t.minimumIntegerDigits=r.length;else{if(n&&o)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(ne.test(n.stem))t.minimumIntegerDigits=n.stem.length;else if(te.test(n.stem)){if(n.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(te,(function(e,i,r,n,o,s){return"*"===r?t.minimumFractionDigits=i.length:n&&"#"===n[0]?t.maximumFractionDigits=n.length:o&&s?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+s.length):(t.minimumFractionDigits=i.length,t.maximumFractionDigits=i.length),""}));var o=n.options[0];"w"===o?t=S(S({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=S(S({},t),oe(o)))}else if(ie.test(n.stem))t=S(S({},t),oe(n.stem));else{var s=se(n.stem);s&&(t=S(S({},t),s));var a=ae(n.stem);a&&(t=S(S({},t),a))}}return t}var ce={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function de(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var i,r=e.language;return"root"!==r&&(i=e.maximize().region),(ce[i||""]||ce[r||""]||ce["".concat(r,"-001")]||ce["001"])[0]}var ue,me=new RegExp("^".concat(W.source,"*")),pe=new RegExp("".concat(W.source,"*$"));function _e(e,t){return{start:e,end:t}}var fe=!!String.prototype.startsWith&&"_a".startsWith("a",1),ve=!!String.fromCodePoint,ge=!!Object.fromEntries,Ee=!!String.prototype.codePointAt,be=!!String.prototype.trimStart,ye=!!String.prototype.trimEnd,we=Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},ke=!0;try{ke="a"===(null===(ue=Re("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===ue?void 0:ue[0])}catch(w){ke=!1}var xe,Se=fe?function(e,t,i){return e.startsWith(t,i)}:function(e,t,i){return e.slice(i,i+t.length)===t},Ae=ve?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var i,r="",n=e.length,o=0;n>o;){if((i=e[o++])>1114111)throw RangeError(i+" is not a valid code point");r+=i<65536?String.fromCharCode(i):String.fromCharCode(55296+((i-=65536)>>10),i%1024+56320)}return r},Ie=ge?Object.fromEntries:function(e){for(var t={},i=0,r=e;i<r.length;i++){var n=r[i];t[n[0]]=n[1]}return t},Ce=Ee?function(e,t){return e.codePointAt(t)}:function(e,t){var i=e.length;if(!(t<0||t>=i)){var r,n=e.charCodeAt(t);return n<55296||n>56319||t+1===i||(r=e.charCodeAt(t+1))<56320||r>57343?n:r-56320+(n-55296<<10)+65536}},De=be?function(e){return e.trimStart()}:function(e){return e.replace(me,"")},Te=ye?function(e){return e.trimEnd()}:function(e){return e.replace(pe,"")};function Re(e,t){return new RegExp(e,t)}if(ke){var Ne=Re("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");xe=function(e,t){var i;return Ne.lastIndex=t,null!==(i=Ne.exec(e)[1])&&void 0!==i?i:""}}else xe=function(e,t){for(var i=[];;){var r=Ce(e,t);if(void 0===r||Ue(r)||Be(r))break;i.push(r),t+=r>=65536?2:1}return Ae.apply(void 0,i)};var Oe,ze=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,i){for(var r=[];!this.isEOF();){var n=this.char();if(123===n){if((o=this.parseArgument(e,i)).err)return o;r.push(o.val)}else{if(125===n&&e>0)break;if(35!==n||"plural"!==t&&"selectordinal"!==t){if(60===n&&!this.ignoreTag&&47===this.peek()){if(i)break;return this.error(z.UNMATCHED_CLOSING_TAG,_e(this.clonePosition(),this.clonePosition()))}if(60===n&&!this.ignoreTag&&Ge(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;r.push(o.val)}else{var o;if((o=this.parseLiteral(e,t)).err)return o;r.push(o.val)}}else{var s=this.clonePosition();this.bump(),r.push({type:G.pound,location:_e(s,this.clonePosition())})}}}return{val:r,err:null}},e.prototype.parseTag=function(e,t){var i=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:G.literal,value:"<".concat(r,"/>"),location:_e(i,this.clonePosition())},err:null};if(this.bumpIf(">")){var n=this.parseMessage(e+1,t,!0);if(n.err)return n;var o=n.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Ge(this.char()))return this.error(z.INVALID_TAG,_e(s,this.clonePosition()));var a=this.clonePosition();return r!==this.parseTagName()?this.error(z.UNMATCHED_CLOSING_TAG,_e(a,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:G.tag,value:r,children:o,location:_e(i,this.clonePosition())},err:null}:this.error(z.INVALID_TAG,_e(s,this.clonePosition())))}return this.error(z.UNCLOSED_TAG,_e(i,this.clonePosition()))}return this.error(z.INVALID_TAG,_e(i,this.clonePosition()))},e.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&Me(this.char());)this.bump();return this.message.slice(e,this.offset())},e.prototype.parseLiteral=function(e,t){for(var i=this.clonePosition(),r="";;){var n=this.tryParseQuote(t);if(n)r+=n;else{var o=this.tryParseUnquoted(e,t);if(o)r+=o;else{var s=this.tryParseLeftAngleBracket();if(!s)break;r+=s}}}var a=_e(i,this.clonePosition());return{val:{type:G.literal,value:r,location:a},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&function(e){return Ge(e)||47===e}(this.peek()||0)?null:(this.bump(),"<")},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var i=this.char();if(39===i){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(i);this.bump()}return Ae.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var i=this.char();return 60===i||123===i||35===i&&("plural"===t||"selectordinal"===t)||125===i&&e>0?null:(this.bump(),Ae(i))},e.prototype.parseArgument=function(e,t){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(z.EXPECT_ARGUMENT_CLOSING_BRACE,_e(i,this.clonePosition()));if(125===this.char())return this.bump(),this.error(z.EMPTY_ARGUMENT,_e(i,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(z.MALFORMED_ARGUMENT,_e(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(z.EXPECT_ARGUMENT_CLOSING_BRACE,_e(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:G.argument,value:r,location:_e(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(z.EXPECT_ARGUMENT_CLOSING_BRACE,_e(i,this.clonePosition())):this.parseArgumentOptions(e,t,r,i);default:return this.error(z.MALFORMED_ARGUMENT,_e(i,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),i=xe(this.message,t);return this.bumpTo(t+i.length),{value:i,location:_e(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,i,r){var n,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(z.EXPECT_ARGUMENT_TYPE,_e(o,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition();if((v=this.parseSimpleArgStyleIfPossible()).err)return v;if(0===(m=Te(v.val)).length)return this.error(z.EXPECT_ARGUMENT_STYLE,_e(this.clonePosition(),this.clonePosition()));l={style:m,styleLocation:_e(h,this.clonePosition())}}if((g=this.tryParseArgumentClose(r)).err)return g;var c=_e(r,this.clonePosition());if(l&&Se(null==l?void 0:l.style,"::",0)){var d=De(l.style.slice(2));if("number"===s)return(v=this.parseNumberSkeletonFromString(d,l.styleLocation)).err?v:{val:{type:G.number,value:i,location:c,style:v.val},err:null};if(0===d.length)return this.error(z.EXPECT_DATE_TIME_SKELETON,c);var u=d;this.locale&&(u=function(e,t){for(var i="",r=0;r<e.length;r++){var n=e.charAt(r);if("j"===n){for(var o=0;r+1<e.length&&e.charAt(r+1)===n;)o++,r++;var s=1+(1&o),a=o<2?1:3+(o>>1),l=de(t);for(("H"==l||"k"==l)&&(a=0);a-- >0;)i+="a";for(;s-- >0;)i=l+i}else i+="J"===n?"H":n}return i}(d,this.locale));var m={type:M.dateTime,pattern:u,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?Q(u):{}};return{val:{type:"date"===s?G.date:G.time,value:i,location:c,style:m},err:null}}return{val:{type:"number"===s?G.number:"date"===s?G.date:G.time,value:i,location:c,style:null!==(n=null==l?void 0:l.style)&&void 0!==n?n:null},err:null};case"plural":case"selectordinal":case"select":var p=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(z.EXPECT_SELECT_ARGUMENT_OPTIONS,_e(p,S({},p)));this.bumpSpace();var _=this.parseIdentifierIfPossible(),f=0;if("select"!==s&&"offset"===_.value){if(!this.bumpIf(":"))return this.error(z.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,_e(this.clonePosition(),this.clonePosition()));var v;if(this.bumpSpace(),(v=this.tryParseDecimalInteger(z.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,z.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return v;this.bumpSpace(),_=this.parseIdentifierIfPossible(),f=v.val}var g,E=this.tryParsePluralOrSelectOptions(e,s,t,_);if(E.err)return E;if((g=this.tryParseArgumentClose(r)).err)return g;var b=_e(r,this.clonePosition());return"select"===s?{val:{type:G.select,value:i,options:Ie(E.val),location:b},err:null}:{val:{type:G.plural,value:i,options:Ie(E.val),offset:f,pluralType:"plural"===s?"cardinal":"ordinal",location:b},err:null};default:return this.error(z.INVALID_ARGUMENT_TYPE,_e(o,a))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(z.EXPECT_ARGUMENT_CLOSING_BRACE,_e(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(z.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,_e(i,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var i=[];try{i=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=e.split(J).filter((function(e){return e.length>0})),i=[],r=0,n=t;r<n.length;r++){var o=n[r].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var s=o[0],a=o.slice(1),l=0,h=a;l<h.length;l++)if(0===h[l].length)throw new Error("Invalid number skeleton");i.push({stem:s,options:a})}return i}(e)}catch(e){return this.error(z.INVALID_NUMBER_SKELETON,t)}return{val:{type:M.number,tokens:i,location:t,parsedOptions:this.shouldParseSkeletons?he(i):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,i,r){for(var n,o=!1,s=[],a=new Set,l=r.value,h=r.location;;){if(0===l.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var d=this.tryParseDecimalInteger(z.EXPECT_PLURAL_ARGUMENT_SELECTOR,z.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;h=_e(c,this.clonePosition()),l=this.message.slice(c.offset,this.offset())}if(a.has(l))return this.error("select"===t?z.DUPLICATE_SELECT_ARGUMENT_SELECTOR:z.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,h);"other"===l&&(o=!0),this.bumpSpace();var u=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?z.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:z.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,_e(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(e+1,t,i);if(m.err)return m;var p=this.tryParseArgumentClose(u);if(p.err)return p;s.push([l,{value:m.val,location:_e(u,this.clonePosition())}]),a.add(l),this.bumpSpace(),l=(n=this.parseIdentifierIfPossible()).value,h=n.location}return 0===s.length?this.error("select"===t?z.EXPECT_SELECT_ARGUMENT_SELECTOR:z.EXPECT_PLURAL_ARGUMENT_SELECTOR,_e(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(z.MISSING_OTHER_CLAUSE,_e(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var i=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var n=!1,o=0;!this.isEOF();){var s=this.char();if(!(s>=48&&s<=57))break;n=!0,o=10*o+(s-48),this.bump()}var a=_e(r,this.clonePosition());return n?we(o*=i)?{val:o,err:null}:this.error(t,a):this.error(e,a)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Ce(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(Se(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),i=this.message.indexOf(e,t);return i>=0?(this.bumpTo(i),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Ue(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),i=this.message.charCodeAt(t+(e>=65536?2:1));return null!=i?i:null},e}();function Ge(e){return e>=97&&e<=122||e>=65&&e<=90}function Me(e){return 45===e||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Ue(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function Be(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function Pe(e){e.forEach((function(e){if(delete e.location,H(e)||V(e))for(var t in e.options)delete e.options[t].location,Pe(e.options[t].value);else j(e)&&K(e.style)||(F(e)||q(e))&&Y(e.style)?delete e.style.location:X(e)&&Pe(e.children)}))}function Le(e,t){void 0===t&&(t={}),t=S({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var i=new ze(e,t).parse();if(i.err){var r=SyntaxError(z[i.err.kind]);throw r.location=i.err.location,r.originalMessage=i.err.message,r}return null!=t&&t.captureLocation||Pe(i.val),i.val}!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(Oe||(Oe={}));var je,Fe=function(e){function t(t,i,r){var n=e.call(this,t)||this;return n.code=i,n.originalMessage=r,n}return x(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),qe=function(e){function t(t,i,r,n){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(i,'". Options are "').concat(Object.keys(r).join('", "'),'"'),Oe.INVALID_VALUE,n)||this}return x(t,e),t}(Fe),He=function(e){function t(t,i,r){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(i),Oe.INVALID_VALUE,r)||this}return x(t,e),t}(Fe),Ve=function(e){function t(t,i){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(i,'"'),Oe.MISSING_VALUE,i)||this}return x(t,e),t}(Fe);function $e(e){return"function"==typeof e}function Xe(e,t,i,r,n,o,s){if(1===e.length&&P(e[0]))return[{type:je.literal,value:e[0].value}];for(var a=[],l=0,h=e;l<h.length;l++){var c=h[l];if(P(c))a.push({type:je.literal,value:c.value});else if($(c))"number"==typeof o&&a.push({type:je.literal,value:i.getNumberFormat(t).format(o)});else{var d=c.value;if(!n||!(d in n))throw new Ve(d,s);var u=n[d];if(L(c))(!u||"string"==typeof u||"number"==typeof u)&&(u="string"==typeof u||"number"==typeof u?String(u):""),a.push({type:"string"==typeof u?je.literal:je.object,value:u});else if(F(c)){var m="string"==typeof c.style?r.date[c.style]:Y(c.style)?c.style.parsedOptions:void 0;a.push({type:je.literal,value:i.getDateTimeFormat(t,m).format(u)})}else if(q(c))m="string"==typeof c.style?r.time[c.style]:Y(c.style)?c.style.parsedOptions:r.time.medium,a.push({type:je.literal,value:i.getDateTimeFormat(t,m).format(u)});else if(j(c))(m="string"==typeof c.style?r.number[c.style]:K(c.style)?c.style.parsedOptions:void 0)&&m.scale&&(u*=m.scale||1),a.push({type:je.literal,value:i.getNumberFormat(t,m).format(u)});else{if(X(c)){var p=c.children,_=c.value,f=n[_];if(!$e(f))throw new He(_,"function",s);var v=f(Xe(p,t,i,r,n,o).map((function(e){return e.value})));Array.isArray(v)||(v=[v]),a.push.apply(a,v.map((function(e){return{type:"string"==typeof e?je.literal:je.object,value:e}})))}if(H(c)){if(!(g=c.options[u]||c.options.other))throw new qe(c.value,u,Object.keys(c.options),s);a.push.apply(a,Xe(g.value,t,i,r,n))}else if(V(c)){var g;if(!(g=c.options["=".concat(u)])){if(!Intl.PluralRules)throw new Fe('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Oe.MISSING_INTL_API,s);var E=i.getPluralRules(t,{type:c.pluralType}).select(u-(c.offset||0));g=c.options[E]||c.options.other}if(!g)throw new qe(c.value,u,Object.keys(c.options),s);a.push.apply(a,Xe(g.value,t,i,r,n,u-(c.offset||0)))}}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var i=e[e.length-1];return i&&i.type===je.literal&&t.type===je.literal?i.value+=t.value:e.push(t),e}),[])}(a)}function Ke(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,i){e[t]=i}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(je||(je={}));var Ye=function(){function e(t,i,r,n){void 0===i&&(i=e.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=o.formatToParts(e);if(1===t.length)return t[0].value;var i=t.reduce((function(e,t){return e.length&&t.type===je.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return i.length<=1?i[0]||"":i},this.formatToParts=function(e){return Xe(o.ast,o.locales,o.formatters,o.formats,e,void 0,o.message)},this.resolvedOptions=function(){var e;return{locale:(null===(e=o.resolvedLocale)||void 0===e?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=i,this.resolvedLocale=e.resolveLocale(i),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=function(e,t){var i={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(i[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(r=Object.getOwnPropertySymbols(e);n<r.length;n++)t.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(i[r[n]]=e[r[n]])}return i}(n||{},["formatters"]);this.ast=e.__parse(t,S(S({},s),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=function(e,t){return t?Object.keys(e).reduce((function(i,r){return i[r]=function(e,t){return t?S(S(S({},e||{}),t||{}),Object.keys(e).reduce((function(i,r){return i[r]=S(S({},e[r]),t[r]||{}),i}),{})):e}(e[r],t[r]),i}),S({},e)):e}(e.formats,r),this.formatters=n&&n.formatters||function(e){return void 0===e&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:I((function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.NumberFormat).bind.apply(e,A([void 0],t,!1)))}),{cache:Ke(e.number),strategy:B.variadic}),getDateTimeFormat:I((function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.DateTimeFormat).bind.apply(e,A([void 0],t,!1)))}),{cache:Ke(e.dateTime),strategy:B.variadic}),getPluralRules:I((function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.PluralRules).bind.apply(e,A([void 0],t,!1)))}),{cache:Ke(e.pluralRules),strategy:B.variadic})}}(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){if(void 0!==Intl.Locale){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])}},e.__parse=Le,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();const We={},Ze=(e,t,i)=>i&&(t in We||(We[t]={}),e in We[t]||(We[t][e]=i),i),Qe=(e,t)=>{if(null==t)return;if(t in We&&e in We[t])return We[t][e];const i=wt(t);for(let r=0;r<i.length;r++){const n=it(i[r],e);if(n)return Ze(e,t,n)}};let Je;const et=u({});function tt(e){return e in Je}function it(e,t){if(!tt(e))return null;const i=function(e){return Je[e]||null}(e);return function(e,t){if(null==t)return;if(t in e)return e[t];const i=t.split(".");let r=e;for(let e=0;e<i.length;e++)if("object"==typeof r){if(e>0){const t=i.slice(e,i.length).join(".");if(t in r){r=r[t];break}}r=r[i[e]]}else r=void 0;return r}(i,t)}function rt(e,...t){delete We[e],et.update((i=>(i[e]=y.all([i[e]||{},...t]),i)))}m([et],(([e])=>Object.keys(e))),et.subscribe((e=>Je=e));const nt={};function ot(e){return nt[e]}function st(e){return null!=e&&wt(e).some((e=>{var t;return null==(t=ot(e))?void 0:t.size}))}const at={};function lt(e){if(!st(e))return e in at?at[e]:Promise.resolve();const t=function(e){return wt(e).map((e=>{const t=ot(e);return[e,t?[...t]:[]]})).filter((([,e])=>e.length>0))}(e);return at[e]=Promise.all(t.map((([e,t])=>function(e,t){return Promise.all(t.map((t=>(function(e,t){nt[e].delete(t),0===nt[e].size&&delete nt[e]}(e,t),t().then((e=>e.default||e)))))).then((t=>rt(e,...t)))}(e,t)))).then((()=>{if(st(e))return lt(e);delete at[e]})),at[e]}const ht={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function ct(){return ht}const dt=u(!1);var ut=Object.defineProperty,mt=Object.defineProperties,pt=Object.getOwnPropertyDescriptors,_t=Object.getOwnPropertySymbols,ft=Object.prototype.hasOwnProperty,vt=Object.prototype.propertyIsEnumerable,gt=(e,t,i)=>t in e?ut(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;let Et;const bt=u(null);function yt(e){return e.split("-").map(((e,t,i)=>i.slice(0,t+1).join("-"))).reverse()}function wt(e,t=ct().fallbackLocale){const i=yt(e);return t?[...new Set([...i,...yt(t)])]:i}function kt(){return null!=Et?Et:void 0}bt.subscribe((e=>{Et=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const xt=((e,t)=>mt(e,pt(t)))(((e,t)=>{for(var i in t||(t={}))ft.call(t,i)&&gt(e,i,t[i]);if(_t)for(var i of _t(t))vt.call(t,i)&&gt(e,i,t[i]);return e})({},bt),{set:e=>{if(e&&function(e){if(null==e)return;const t=wt(e);for(let e=0;e<t.length;e++){const i=t[e];if(tt(i))return i}}(e)&&st(e)){const{loadingDelay:t}=ct();let i;return"undefined"!=typeof window&&null!=kt()&&t?i=window.setTimeout((()=>dt.set(!0)),t):dt.set(!0),lt(e).then((()=>{bt.set(e)})).finally((()=>{clearTimeout(i),dt.set(!1)}))}return bt.set(e)}}),St=e=>{const t=Object.create(null);return i=>{const r=JSON.stringify(i);return r in t?t[r]:t[r]=e(i)}};var At=Object.defineProperty,It=Object.getOwnPropertySymbols,Ct=Object.prototype.hasOwnProperty,Dt=Object.prototype.propertyIsEnumerable,Tt=(e,t,i)=>t in e?At(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,Rt=(e,t)=>{for(var i in t||(t={}))Ct.call(t,i)&&Tt(e,i,t[i]);if(It)for(var i of It(t))Dt.call(t,i)&&Tt(e,i,t[i]);return e},Nt=(e,t)=>{var i={};for(var r in e)Ct.call(e,r)&&t.indexOf(r)<0&&(i[r]=e[r]);if(null!=e&&It)for(var r of It(e))t.indexOf(r)<0&&Dt.call(e,r)&&(i[r]=e[r]);return i};const Ot=(e,t)=>{const{formats:i}=ct();if(e in i&&t in i[e])return i[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},zt=St((e=>{var t=e,{locale:i,format:r}=t,n=Nt(t,["locale","format"]);if(null==i)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(n=Ot("number",r)),new Intl.NumberFormat(i,n)})),Gt=St((e=>{var t=e,{locale:i,format:r}=t,n=Nt(t,["locale","format"]);if(null==i)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?n=Ot("date",r):0===Object.keys(n).length&&(n=Ot("date","short")),new Intl.DateTimeFormat(i,n)})),Mt=St((e=>{var t=e,{locale:i,format:r}=t,n=Nt(t,["locale","format"]);if(null==i)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?n=Ot("time",r):0===Object.keys(n).length&&(n=Ot("time","short")),new Intl.DateTimeFormat(i,n)})),Ut=St(((e,t=kt())=>new Ye(e,t,ct().formats,{ignoreTag:ct().ignoreTag}))),Bt=(e,t={})=>{var i,r,n,o;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:l=kt(),default:h}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Qe(e,l);if(c){if("string"!=typeof c)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c}else c=null!=(o=null!=(n=null==(r=(i=ct()).handleMissingMessage)?void 0:r.call(i,{locale:l,id:e,defaultValue:h}))?n:h)?o:e;if(!a)return c;let d=c;try{d=Ut(c,l).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return d},Pt=(e,t)=>((e={})=>{var t=e,{locale:i=kt()}=t,r=Nt(t,["locale"]);return Mt(Rt({locale:i},r))})(t).format(e),Lt=(e,t)=>((e={})=>{var t=e,{locale:i=kt()}=t,r=Nt(t,["locale"]);return Gt(Rt({locale:i},r))})(t).format(e),jt=(e,t)=>((e={})=>{var t=e,{locale:i=kt()}=t,r=Nt(t,["locale"]);return zt(Rt({locale:i},r))})(t).format(e),Ft=(e,t=kt())=>Qe(e,t),qt=m([xt,et],(()=>Bt));function Ht(e,t){rt(e,t)}m([xt],(()=>Pt)),m([xt],(()=>Lt)),m([xt],(()=>jt)),m([xt,et],(()=>Ft));const Vt={en:{invalidUrl:"Failed to construct 'URL': Invalid URL",fetchConsentsError:"Error: Could not fetch consents.",fetchPlayerConsentsError:"Error: Could not fetch player consents.",fetchConsentsCategoriesError:"Error: Could not fetch consents categories",updateConsentsError:"Error: Could not update consents.",saveChangesError:"Error: Could not save changes.",mustAcceptError:"Mandatory consents must be accepted.",title:"Consents",saveButtonContent:"Save Consents",description:"Here, you can explore and manage your preferences regarding how we collect and utilize your data. Your privacy matters to us, and this tool empowers you to make informed choices about your online experience.",marketing__category:"Marketing",Other__category:"Other",privacy__category:"Privacy and Data Sharing",dataSharing__name:"Data Sharing",dataSharing__description:"Data Sharing consent",emailMarketing__name:"Email Marketing",emailMarketing__description:"Email Marketing consent",smsMarketing__name:"SMS Marketing",smsMarketing__description:"SMS Marketing consent",cookiesAndTracking__name:"Cookies and Tracking",cookiesAndTracking__description:"Cookies and Tracking consent",termsandconditions__description:"Needed to prove user accepted terms and conditions.",emailmarketing__description:"Needed to prove email marketing consent.",sms__description:"Needed to prove sms marketing consent.","3rdparty__description":"Needed to prove 3rd party marketing consent.",noDataFound:"No data found for consents.",loading:"Loading...please wait",requiredError:"This field is mandatory",wrongModalConfig:"There was an error with the config! No expired consents found."},"zh-hk":{invalidUrl:"無法構建 'URL': 無效的URL",fetchConsentsError:"錯誤: 無法獲取同意。",fetchPlayerConsentsError:"錯誤: 無法獲取玩家同意。",fetchConsentsCategoriesError:"錯誤: 無法獲取同意類別。",updateConsentsError:"錯誤: 無法更新同意。",saveChangesError:"錯誤: 無法保存更改。",mustAcceptError:"必須接受強制性同意。",title:"同意",saveButtonContent:"保存同意",description:"在此,您可以探索和管理有關我們如何收集和使用您的數據的偏好。您的隱私對我們非常重要,這個工具可幫助您對您的在線體驗做出知情選擇。",marketing__category:"市場推廣",Other__category:"其他",privacy__category:"隱私與數據共享",dataSharing__name:"數據共享",dataSharing__description:"數據共享同意",emailMarketing__name:"電子郵件市場推廣",emailMarketing__description:"電子郵件市場推廣同意",smsMarketing__name:"短信市場推廣",smsMarketing__description:"短信市場推廣同意",cookiesAndTracking__name:"Cookies與追蹤",cookiesAndTracking__description:"Cookies與追蹤同意",termsandconditions__description:"用於證明用戶接受條款和條件。",emailmarketing__description:"用於證明電子郵件市場推廣同意。",sms__description:"用於證明短信市場推廣同意。","3rdparty__description":"用於證明第三方市場推廣同意。",noDataFound:"未找到同意數據。",loading:"加載中...請稍候",requiredError:"此字段為必填項",wrongModalConfig:"配置出錯!未找到過期的同意。"},de:{invalidUrl:"Fehler beim Erstellen von 'URL': Ungültige URL",fetchConsentsError:"Fehler: Konnte Einwilligungen nicht abrufen.",fetchPlayerConsentsError:"Fehler: Konnte Spielereinwilligungen nicht abrufen.",fetchConsentsCategoriesError:"Fehler: Konnte Einwilligungskategorien nicht abrufen.",updateConsentsError:"Fehler: Konnte Einwilligungen nicht aktualisieren.",saveChangesError:"Fehler: Änderungen konnten nicht gespeichert werden.",mustAcceptError:"Pflicht-Einwilligungen müssen akzeptiert werden.",title:"Einwilligungen",saveButtonContent:"Einwilligungen speichern",description:"Hier können Sie Ihre Präferenzen dazu verwalten, wie wir Ihre Daten sammeln und nutzen. Ihre Privatsphäre ist uns wichtig, und dieses Tool ermöglicht es Ihnen, informierte Entscheidungen über Ihr Online-Erlebnis zu treffen.",marketing__category:"Marketing",Other__category:"Sonstiges",privacy__category:"Datenschutz und Datenfreigabe",dataSharing__name:"Datenfreigabe",dataSharing__description:"Einwilligung zur Datenfreigabe",emailMarketing__name:"E-Mail-Marketing",emailMarketing__description:"Einwilligung für E-Mail-Marketing",smsMarketing__name:"SMS-Marketing",smsMarketing__description:"Einwilligung für SMS-Marketing",cookiesAndTracking__name:"Cookies und Tracking",cookiesAndTracking__description:"Einwilligung für Cookies und Tracking",termsandconditions__description:"Erforderlich, um nachzuweisen, dass der Benutzer die Bedingungen akzeptiert hat.",emailmarketing__description:"Erforderlich, um die Einwilligung für E-Mail-Marketing nachzuweisen.",sms__description:"Erforderlich, um die Einwilligung für SMS-Marketing nachzuweisen.","3rdparty__description":"Erforderlich, um die Einwilligung für Drittanbieter-Marketing nachzuweisen.",noDataFound:"Keine Daten zu Einwilligungen gefunden.",loading:"Wird geladen... bitte warten",requiredError:"Dieses Feld ist erforderlich",wrongModalConfig:"Ein Fehler in der Konfiguration ist aufgetreten! Keine abgelaufenen Einwilligungen gefunden."},it:{invalidUrl:"Impossibile costruire 'URL': URL non valido",fetchConsentsError:"Errore: Impossibile recuperare i consensi.",fetchPlayerConsentsError:"Errore: Impossibile recuperare i consensi del giocatore.",fetchConsentsCategoriesError:"Errore: Impossibile recuperare le categorie di consenso.",updateConsentsError:"Errore: Impossibile aggiornare i consensi.",saveChangesError:"Errore: Impossibile salvare le modifiche.",mustAcceptError:"I consensi obbligatori devono essere accettati.",title:"Consensi",saveButtonContent:"Salva Consensi",description:"Qui puoi esplorare e gestire le tue preferenze su come raccogliamo e utilizziamo i tuoi dati. La tua privacy è importante per noi e questo strumento ti consente di fare scelte informate sulla tua esperienza online.",marketing__category:"Marketing",Other__category:"Altro",privacy__category:"Privacy e Condivisione dei Dati",dataSharing__name:"Condivisione dei Dati",dataSharing__description:"Consenso alla condivisione dei dati",emailMarketing__name:"Email Marketing",emailMarketing__description:"Consenso all'email marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Consenso all'SMS marketing",cookiesAndTracking__name:"Cookies e Tracciamento",cookiesAndTracking__description:"Consenso ai cookies e tracciamento",termsandconditions__description:"Necessario per dimostrare che l'utente ha accettato i termini e le condizioni.",emailmarketing__description:"Necessario per dimostrare il consenso all'email marketing.",sms__description:"Necessario per dimostrare il consenso all'SMS marketing.","3rdparty__description":"Necessario per dimostrare il consenso al marketing di terze parti.",noDataFound:"Nessun dato trovato per i consensi.",loading:"Caricamento... attendere",requiredError:"Questo campo è obbligatorio",wrongModalConfig:"Si è verificato un errore con la configurazione! Nessun consenso scaduto trovato."},fr:{invalidUrl:"Impossible de construire 'URL' : URL invalide",fetchConsentsError:"Erreur : Impossible de récupérer les consentements.",fetchPlayerConsentsError:"Erreur : Impossible de récupérer les consentements des joueurs.",fetchConsentsCategoriesError:"Erreur : Impossible de récupérer les catégories de consentement.",updateConsentsError:"Erreur : Impossible de mettre à jour les consentements.",saveChangesError:"Erreur : Impossible d'enregistrer les modifications.",mustAcceptError:"Les consentements obligatoires doivent être acceptés.",title:"Consentements",saveButtonContent:"Enregistrer les Consentements",description:"Ici, vous pouvez explorer et gérer vos préférences concernant la manière dont nous collectons et utilisons vos données. Votre vie privée est importante pour nous, et cet outil vous permet de faire des choix éclairés sur votre expérience en ligne.",marketing__category:"Marketing",Other__category:"Autre",privacy__category:"Confidentialité et Partage des Données",dataSharing__name:"Partage des Données",dataSharing__description:"Consentement au partage des données",emailMarketing__name:"Marketing par Email",emailMarketing__description:"Consentement au marketing par email",smsMarketing__name:"Marketing par SMS",smsMarketing__description:"Consentement au marketing par SMS",cookiesAndTracking__name:"Cookies et Suivi",cookiesAndTracking__description:"Consentement aux cookies et au suivi",termsandconditions__description:"Nécessaire pour prouver que l'utilisateur a accepté les termes et conditions.",emailmarketing__description:"Nécessaire pour prouver le consentement au marketing par email.",sms__description:"Nécessaire pour prouver le consentement au marketing par SMS.","3rdparty__description":"Nécessaire pour prouver le consentement au marketing tiers.",noDataFound:"Aucune donnée trouvée pour les consentements.",loading:"Chargement... veuillez patienter",requiredError:"Ce champ est obligatoire",wrongModalConfig:"Une erreur s'est produite avec la configuration ! Aucun consentement expiré trouvé."},es:{invalidUrl:"Error al construir 'URL': URL no válida",fetchConsentsError:"Error: No se pudieron obtener los consentimientos.",fetchPlayerConsentsError:"Error: No se pudieron obtener los consentimientos del jugador.",fetchConsentsCategoriesError:"Error: No se pudieron obtener las categorías de consentimiento.",updateConsentsError:"Error: No se pudieron actualizar los consentimientos.",saveChangesError:"Error: No se pudieron guardar los cambios.",mustAcceptError:"Se deben aceptar los consentimientos obligatorios.",title:"Consentimientos",saveButtonContent:"Guardar Consentimientos",description:"Aquí puedes explorar y gestionar tus preferencias sobre cómo recopilamos y utilizamos tus datos. Tu privacidad es importante para nosotros y esta herramienta te permite tomar decisiones informadas sobre tu experiencia en línea.",marketing__category:"Marketing",Other__category:"Otro",privacy__category:"Privacidad y Compartir Datos",dataSharing__name:"Compartir Datos",dataSharing__description:"Consentimiento para compartir datos",emailMarketing__name:"Email Marketing",emailMarketing__description:"Consentimiento para email marketing",smsMarketing__name:"Marketing por SMS",smsMarketing__description:"Consentimiento para marketing por SMS",cookiesAndTracking__name:"Cookies y Seguimiento",cookiesAndTracking__description:"Consentimiento para cookies y seguimiento",termsandconditions__description:"Necesario para demostrar que el usuario aceptó los términos y condiciones.",emailmarketing__description:"Necesario para demostrar el consentimiento para email marketing.",sms__description:"Necesario para demostrar el consentimiento para marketing por SMS.","3rdparty__description":"Necesario para demostrar el consentimiento para marketing de terceros.",noDataFound:"No se encontraron datos para los consentimientos.",loading:"Cargando... por favor espera",requiredError:"Este campo es obligatorio",wrongModalConfig:"¡Hubo un error con la configuración! No se encontraron consentimientos expirados."},el:{invalidUrl:"Αποτυχία δημιουργίας 'URL': Μη έγκυρη διεύθυνση URL",fetchConsentsError:"Σφάλμα: Δεν ήταν δυνατή η ανάκτηση των συναινέσεων.",fetchPlayerConsentsError:"Σφάλμα: Δεν ήταν δυνατή η ανάκτηση των συναινέσεων παικτών.",fetchConsentsCategoriesError:"Σφάλμα: Δεν ήταν δυνατή η ανάκτηση των κατηγοριών συναινέσεων.",updateConsentsError:"Σφάλμα: Δεν ήταν δυνατή η ενημέρωση των συναινέσεων.",saveChangesError:"Σφάλμα: Δεν ήταν δυνατή η αποθήκευση των αλλαγών.",mustAcceptError:"Πρέπει να αποδεχτείτε τις υποχρεωτικές συναινέσεις.",title:"Συναινέσεις",saveButtonContent:"Αποθήκευση Συναινέσεων",description:"Εδώ μπορείτε να εξερευνήσετε και να διαχειριστείτε τις προτιμήσεις σας σχετικά με το πώς συλλέγουμε και χρησιμοποιούμε τα δεδομένα σας. Η ιδιωτικότητά σας έχει σημασία για εμάς και αυτό το εργαλείο σας δίνει τη δυνατότητα να κάνετε ενημερωμένες επιλογές για την εμπειρία σας στο διαδίκτυο.",marketing__category:"Μάρκετινγκ",Other__category:"Άλλο",privacy__category:"Ιδιωτικότητα και Κοινοποίηση Δεδομένων",dataSharing__name:"Κοινοποίηση Δεδομένων",dataSharing__description:"Συναίνεση για κοινοποίηση δεδομένων",emailMarketing__name:"Email Marketing",emailMarketing__description:"Συναίνεση για email marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Συναίνεση για SMS marketing",cookiesAndTracking__name:"Cookies και Παρακολούθηση",cookiesAndTracking__description:"Συναίνεση για cookies και παρακολούθηση",termsandconditions__description:"Απαιτείται για να αποδειχθεί ότι ο χρήστης αποδέχτηκε τους όρους και τις προϋποθέσεις.",emailmarketing__description:"Απαιτείται για να αποδειχθεί η συναίνεση για email marketing.",sms__description:"Απαιτείται για να αποδειχθεί η συναίνεση για SMS marketing.","3rdparty__description":"Απαιτείται για να αποδειχθεί η συναίνεση για marketing τρίτων.",noDataFound:"Δεν βρέθηκαν δεδομένα για τις συναινέσεις.",loading:"Φόρτωση... παρακαλώ περιμένετε",requiredError:"Αυτό το πεδίο είναι υποχρεωτικό",wrongModalConfig:"Παρουσιάστηκε σφάλμα με τη ρύθμιση! Δεν βρέθηκαν ληγμένες συναινέσεις."},tr:{invalidUrl:"'URL' oluşturulamadı: Geçersiz URL",fetchConsentsError:"Hata: Onaylar alınamadı.",fetchPlayerConsentsError:"Hata: Oyuncu onayları alınamadı.",fetchConsentsCategoriesError:"Hata: Onay kategorileri alınamadı.",updateConsentsError:"Hata: Onaylar güncellenemedi.",saveChangesError:"Hata: Değişiklikler kaydedilemedi.",mustAcceptError:"Zorunlu onaylar kabul edilmelidir.",title:"Onaylar",saveButtonContent:"Onayları Kaydet",description:"Burada, verilerinizi nasıl topladığımız ve kullandığımızla ilgili tercihlerinizi keşfedebilir ve yönetebilirsiniz. Gizliliğiniz bizim için önemlidir ve bu araç, çevrimiçi deneyiminiz hakkında bilinçli seçimler yapmanızı sağlar.",marketing__category:"Pazarlama",Other__category:"Diğer",privacy__category:"Gizlilik ve Veri Paylaşımı",dataSharing__name:"Veri Paylaşımı",dataSharing__description:"Veri paylaşımı onayı",emailMarketing__name:"E-posta Pazarlama",emailMarketing__description:"E-posta pazarlama onayı",smsMarketing__name:"SMS Pazarlama",smsMarketing__description:"SMS pazarlama onayı",cookiesAndTracking__name:"Çerezler ve İzleme",cookiesAndTracking__description:"Çerezler ve izleme onayı",termsandconditions__description:"Kullanıcının şartları ve koşulları kabul ettiğini kanıtlamak için gereklidir.",emailmarketing__description:"E-posta pazarlama onayı kanıtlamak için gereklidir.",sms__description:"SMS pazarlama onayı kanıtlamak için gereklidir.","3rdparty__description":"Üçüncü taraf pazarlama onayı kanıtlamak için gereklidir.",noDataFound:"Onaylarla ilgili veri bulunamadı.",loading:"Yükleniyor... lütfen bekleyin",requiredError:"Bu alan zorunludur",wrongModalConfig:"Yapılandırmada bir hata oluştu! Süresi dolmuş onay bulunamadı."},ru:{invalidUrl:"Не удалось создать 'URL': недопустимый URL",fetchConsentsError:"Ошибка: не удалось получить согласия.",fetchPlayerConsentsError:"Ошибка: не удалось получить согласия игроков.",fetchConsentsCategoriesError:"Ошибка: не удалось получить категории согласий.",updateConsentsError:"Ошибка: не удалось обновить согласия.",saveChangesError:"Ошибка: не удалось сохранить изменения.",mustAcceptError:"Обязательные согласия должны быть приняты.",title:"Согласия",saveButtonContent:"Сохранить согласия",description:"Здесь вы можете изучить и управлять своими предпочтениями относительно того, как мы собираем и используем ваши данные. Ваша конфиденциальность важна для нас, и этот инструмент помогает вам делать осознанный выбор о вашем онлайн-опыте.",marketing__category:"Маркетинг",Other__category:"Другое",privacy__category:"Конфиденциальность и Обмен Данными",dataSharing__name:"Обмен Данными",dataSharing__description:"Согласие на обмен данными",emailMarketing__name:"Email-Маркетинг",emailMarketing__description:"Согласие на email-маркетинг",smsMarketing__name:"SMS-Маркетинг",smsMarketing__description:"Согласие на SMS-маркетинг",cookiesAndTracking__name:"Cookies и Отслеживание",cookiesAndTracking__description:"Согласие на использование cookies и отслеживания",termsandconditions__description:"Необходимо для подтверждения принятия условий и положений.",emailmarketing__description:"Необходимо для подтверждения согласия на email-маркетинг.",sms__description:"Необходимо для подтверждения согласия на SMS-маркетинг.","3rdparty__description":"Необходимо для подтверждения согласия на маркетинг третьих лиц.",noDataFound:"Данные о согласиях не найдены.",loading:"Загрузка... пожалуйста, подождите",requiredError:"Это поле обязательно для заполнения",wrongModalConfig:"Произошла ошибка конфигурации! Истекшие согласия не найдены."},ro:{invalidUrl:"Nu s-a putut construi 'URL': URL invalid",fetchConsentsError:"Eroare: Nu s-au putut prelua consimțămintele.",fetchPlayerConsentsError:"Eroare: Nu s-au putut prelua consimțămintele utilizatorilor.",fetchConsentsCategoriesError:"Eroare: Nu s-au putut prelua categoriile de consimțământ.",updateConsentsError:"Eroare: Nu s-au putut actualiza consimțămintele.",saveChangesError:"Eroare: Nu s-au putut salva modificările.",mustAcceptError:"Consimțămintele obligatorii trebuie acceptate.",title:"Consimțăminte",saveButtonContent:"Salvează Consimțămintele",description:"Aici puteți explora și gestiona preferințele legate de modul în care colectăm și utilizăm datele dumneavoastră. Confidențialitatea dumneavoastră este importantă pentru noi, iar acest instrument vă ajută să luați decizii informate despre experiența dumneavoastră online.",marketing__category:"Marketing",Other__category:"Altele",privacy__category:"Confidențialitate și Partajare Date",dataSharing__name:"Partajare Date",dataSharing__description:"Consimțământ pentru partajarea datelor",emailMarketing__name:"Marketing prin Email",emailMarketing__description:"Consimțământ pentru marketing prin email",smsMarketing__name:"Marketing prin SMS",smsMarketing__description:"Consimțământ pentru marketing prin SMS",cookiesAndTracking__name:"Cookies și Urmărire",cookiesAndTracking__description:"Consimțământ pentru cookies și urmărire",termsandconditions__description:"Necesar pentru a demonstra acceptarea termenilor și condițiilor.",emailmarketing__description:"Necesar pentru a demonstra consimțământul pentru marketing prin email.",sms__description:"Necesar pentru a demonstra consimțământul pentru marketing prin SMS.","3rdparty__description":"Necesar pentru a demonstra consimțământul pentru marketing de la terți.",noDataFound:"Nu s-au găsit date pentru consimțăminte.",loading:"Se încarcă... vă rugăm să așteptați",requiredError:"Acest câmp este obligatoriu",wrongModalConfig:"A apărut o eroare în configurație! Nu s-au găsit consimțăminte expirate."},hr:{invalidUrl:"Nije moguće izraditi 'URL': Nevažeći URL",fetchConsentsError:"Greška: Nije moguće dohvatiti privole.",fetchPlayerConsentsError:"Greška: Nije moguće dohvatiti korisničke privole.",fetchConsentsCategoriesError:"Greška: Nije moguće dohvatiti kategorije privola.",updateConsentsError:"Greška: Nije moguće ažurirati privole.",saveChangesError:"Greška: Nije moguće spremiti promjene.",mustAcceptError:"Obavezne privole moraju biti prihvaćene.",title:"Privole",saveButtonContent:"Spremi Privole",description:"Ovdje možete istražiti i upravljati svojim preferencijama o tome kako prikupljamo i koristimo vaše podatke. Vaša privatnost nam je važna, a ovaj alat vam omogućuje donošenje informiranih odluka o vašem online iskustvu.",marketing__category:"Marketing",Other__category:"Ostalo",privacy__category:"Privatnost i Dijeljenje Podataka",dataSharing__name:"Dijeljenje Podataka",dataSharing__description:"Privola za dijeljenje podataka",emailMarketing__name:"Email Marketing",emailMarketing__description:"Privola za email marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Privola za SMS marketing",cookiesAndTracking__name:"Kolačići i Praćenje",cookiesAndTracking__description:"Privola za kolačiće i praćenje",termsandconditions__description:"Potrebno za dokazivanje prihvaćanja uvjeta korištenja.",emailmarketing__description:"Potrebno za dokazivanje privole za email marketing.",sms__description:"Potrebno za dokazivanje privole za SMS marketing.","3rdparty__description":"Potrebno za dokazivanje privole za marketing treće strane.",noDataFound:"Nema podataka o privolama.",loading:"Učitavanje... molimo pričekajte",requiredError:"Ovo polje je obavezno",wrongModalConfig:"Došlo je do pogreške u konfiguraciji! Nisu pronađene istekle privole."},hu:{invalidUrl:"Nem sikerült létrehozni az 'URL'-t: Érvénytelen URL",fetchConsentsError:"Hiba: Nem sikerült lekérni a hozzájárulásokat.",fetchPlayerConsentsError:"Hiba: Nem sikerült lekérni a játékosok hozzájárulásait.",fetchConsentsCategoriesError:"Hiba: Nem sikerült lekérni a hozzájárulások kategóriáit.",updateConsentsError:"Hiba: Nem sikerült frissíteni a hozzájárulásokat.",saveChangesError:"Hiba: Nem sikerült menteni a módosításokat.",mustAcceptError:"A kötelező hozzájárulásokat el kell fogadni.",title:"Hozzájárulások",saveButtonContent:"Hozzájárulások Mentése",description:"Itt kezelheti és megismerheti azokat a preferenciákat, amelyek meghatározzák, hogyan gyűjtjük és használjuk fel az adatait. Az Ön adatvédelme fontos számunkra, és ez az eszköz lehetővé teszi, hogy tájékozott döntéseket hozzon az online élményéről.",marketing__category:"Marketing",Other__category:"Egyéb",privacy__category:"Adatvédelem és Adatmegosztás",dataSharing__name:"Adatmegosztás",dataSharing__description:"Hozzájárulás az adatmegosztáshoz",emailMarketing__name:"E-mail Marketing",emailMarketing__description:"Hozzájárulás az e-mail marketinghez",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Hozzájárulás az SMS marketinghez",cookiesAndTracking__name:"Sütik és Követés",cookiesAndTracking__description:"Hozzájárulás a sütikhez és a követéshez",termsandconditions__description:"Szükséges az Általános Szerződési Feltételek elfogadásának igazolásához.",emailmarketing__description:"Szükséges az e-mail marketing hozzájárulásának igazolásához.",sms__description:"Szükséges az SMS marketing hozzájárulásának igazolásához.","3rdparty__description":"Szükséges a harmadik felek marketingjéhez való hozzájárulás igazolásához.",noDataFound:"Nem található adat a hozzájárulásokról.",loading:"Betöltés... kérjük, várjon",requiredError:"Ez a mező kötelező",wrongModalConfig:"Hiba történt a konfigurációval! Nem található lejárt hozzájárulás."},pl:{invalidUrl:"Nie udało się utworzyć 'URL': Nieprawidłowy URL",fetchConsentsError:"Błąd: Nie udało się pobrać zgód.",fetchPlayerConsentsError:"Błąd: Nie udało się pobrać zgód użytkowników.",fetchConsentsCategoriesError:"Błąd: Nie udało się pobrać kategorii zgód.",updateConsentsError:"Błąd: Nie udało się zaktualizować zgód.",saveChangesError:"Błąd: Nie udało się zapisać zmian.",mustAcceptError:"Obowiązkowe zgody muszą zostać zaakceptowane.",title:"Zgody",saveButtonContent:"Zapisz Zgody",description:"Tutaj możesz eksplorować i zarządzać swoimi preferencjami dotyczącymi tego, jak zbieramy i wykorzystujemy Twoje dane. Twoja prywatność jest dla nas ważna, a to narzędzie pozwala podejmować świadome decyzje dotyczące Twojego doświadczenia online.",marketing__category:"Marketing",Other__category:"Inne",privacy__category:"Prywatność i Udostępnianie Danych",dataSharing__name:"Udostępnianie Danych",dataSharing__description:"Zgoda na udostępnianie danych",emailMarketing__name:"E-mail Marketing",emailMarketing__description:"Zgoda na e-mail marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Zgoda na SMS marketing",cookiesAndTracking__name:"Pliki Cookie i Śledzenie",cookiesAndTracking__description:"Zgoda na pliki cookie i śledzenie",termsandconditions__description:"Wymagane do potwierdzenia akceptacji warunków i zasad.",emailmarketing__description:"Wymagane do potwierdzenia zgody na e-mail marketing.",sms__description:"Wymagane do potwierdzenia zgody na SMS marketing.","3rdparty__description":"Wymagane do potwierdzenia zgody na marketing podmiotów trzecich.",noDataFound:"Nie znaleziono danych dotyczących zgód.",loading:"Ładowanie... proszę czekać",requiredError:"To pole jest wymagane",wrongModalConfig:"Wystąpił błąd konfiguracji! Nie znaleziono wygasłych zgód."},pt:{invalidUrl:"Não foi possível criar 'URL': URL inválido",fetchConsentsError:"Erro: Não foi possível obter os consentimentos.",fetchPlayerConsentsError:"Erro: Não foi possível obter os consentimentos dos utilizadores.",fetchConsentsCategoriesError:"Erro: Não foi possível obter as categorias de consentimento.",updateConsentsError:"Erro: Não foi possível atualizar os consentimentos.",saveChangesError:"Erro: Não foi possível salvar as alterações.",mustAcceptError:"Os consentimentos obrigatórios devem ser aceitos.",title:"Consentimentos",saveButtonContent:"Salvar Consentimentos",description:"Aqui, pode explorar e gerir as suas preferências relativamente à forma como recolhemos e utilizamos os seus dados. A sua privacidade é importante para nós e esta ferramenta permite-lhe tomar decisões informadas sobre a sua experiência online.",marketing__category:"Marketing",Other__category:"Outros",privacy__category:"Privacidade e Partilha de Dados",dataSharing__name:"Partilha de Dados",dataSharing__description:"Consentimento para partilha de dados",emailMarketing__name:"Marketing por Email",emailMarketing__description:"Consentimento para marketing por email",smsMarketing__name:"Marketing por SMS",smsMarketing__description:"Consentimento para marketing por SMS",cookiesAndTracking__name:"Cookies e Rastreamento",cookiesAndTracking__description:"Consentimento para cookies e rastreamento",termsandconditions__description:"Necessário para comprovar a aceitação dos termos e condições.",emailmarketing__description:"Necessário para comprovar o consentimento para marketing por email.",sms__description:"Necessário para comprovar o consentimento para marketing por SMS.","3rdparty__description":"Necessário para comprovar o consentimento para marketing de terceiros.",noDataFound:"Nenhum dado encontrado para consentimentos.",loading:"Carregando... por favor, aguarde",requiredError:"Este campo é obrigatório",wrongModalConfig:"Ocorreu um erro na configuração! Nenhum consentimento expirado encontrado."},sl:{invalidUrl:"Ni bilo mogoče ustvariti 'URL': Neveljaven URL",fetchConsentsError:"Napaka: Ni bilo mogoče pridobiti soglasij.",fetchPlayerConsentsError:"Napaka: Ni bilo mogoče pridobiti uporabniških soglasij.",fetchConsentsCategoriesError:"Napaka: Ni bilo mogoče pridobiti kategorij soglasij.",updateConsentsError:"Napaka: Ni bilo mogoče posodobiti soglasij.",saveChangesError:"Napaka: Ni bilo mogoče shraniti sprememb.",mustAcceptError:"Obvezna soglasja je treba sprejeti.",title:"Soglasja",saveButtonContent:"Shrani Soglasja",description:"Tukaj lahko raziskujete in upravljate svoje nastavitve glede tega, kako zbiramo in uporabljamo vaše podatke. Vaša zasebnost je za nas pomembna, ta orodje pa vam omogoča informirane odločitve o vaši spletni izkušnji.",marketing__category:"Trženje",Other__category:"Drugo",privacy__category:"Zasebnost in Deljenje Podatkov",dataSharing__name:"Deljenje Podatkov",dataSharing__description:"Soglasje za deljenje podatkov",emailMarketing__name:"E-poštno Trženje",emailMarketing__description:"Soglasje za e-poštno trženje",smsMarketing__name:"SMS Trženje",smsMarketing__description:"Soglasje za SMS trženje",cookiesAndTracking__name:"Piškotki in Sledenje",cookiesAndTracking__description:"Soglasje za uporabo piškotkov in sledenja",termsandconditions__description:"Potrebno za potrditev sprejema pogojev in določil.",emailmarketing__description:"Potrebno za potrditev soglasja za e-poštno trženje.",sms__description:"Potrebno za potrditev soglasja za SMS trženje.","3rdparty__description":"Potrebno za potrditev soglasja za trženje tretjih oseb.",noDataFound:"Za soglasja ni bilo najdenih podatkov.",loading:"Nalaganje... prosimo, počakajte",requiredError:"To polje je obvezno",wrongModalConfig:"Prišlo je do napake v konfiguraciji! Potečena soglasja niso bila najdena."},sr:{invalidUrl:"Nije moguće kreirati 'URL': Nevažeći URL",fetchConsentsError:"Greška: Nije moguće dohvatiti saglasnosti.",fetchPlayerConsentsError:"Greška: Nije moguće dohvatiti korisničke saglasnosti.",fetchConsentsCategoriesError:"Greška: Nije moguće dohvatiti kategorije saglasnosti.",updateConsentsError:"Greška: Nije moguće ažurirati saglasnosti.",saveChangesError:"Greška: Nije moguće sačuvati promene.",mustAcceptError:"Obavezne saglasnosti moraju biti prihvaćene.",title:"Saglasnosti",saveButtonContent:"Sačuvaj Saglasnosti",description:"Ovde možete istražiti i upravljati svojim preferencijama o tome kako prikupljamo i koristimo vaše podatke. Vaša privatnost nam je važna, a ovaj alat vam omogućava donošenje informisanih odluka o vašem online iskustvu.",marketing__category:"Marketing",Other__category:"Ostalo",privacy__category:"Privatnost i Deljenje Podataka",dataSharing__name:"Deljenje Podataka",dataSharing__description:"Saglasnost za deljenje podataka",emailMarketing__name:"Email Marketing",emailMarketing__description:"Saglasnost za email marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Saglasnost za SMS marketing",cookiesAndTracking__name:"Kolačići i Praćenje",cookiesAndTracking__description:"Saglasnost za kolačiće i praćenje",termsandconditions__description:"Potrebno za potvrdu prihvatanja uslova i pravila.",emailmarketing__description:"Potrebno za potvrdu saglasnosti za email marketing.",sms__description:"Potrebno za potvrdu saglasnosti za SMS marketing.","3rdparty__description":"Potrebno za potvrdu saglasnosti za marketing trećih lica.",noDataFound:"Nema podataka o saglasnostima.",loading:"Učitavanje... molimo sačekajte",requiredError:"Ovo polje je obavezno",wrongModalConfig:"Došlo je do greške u konfiguraciji! Nema pronađenih istekao saglasnosti."},"es-mx":{invalidUrl:"No se pudo construir 'URL': URL no válida",fetchConsentsError:"Error: No se pudieron obtener los consentimientos.",fetchPlayerConsentsError:"Error: No se pudieron obtener los consentimientos de los usuarios.",fetchConsentsCategoriesError:"Error: No se pudieron obtener las categorías de consentimiento.",updateConsentsError:"Error: No se pudieron actualizar los consentimientos.",saveChangesError:"Error: No se pudieron guardar los cambios.",mustAcceptError:"Se deben aceptar los consentimientos obligatorios.",title:"Consentimientos",saveButtonContent:"Guardar Consentimientos",description:"Aquí puedes explorar y administrar tus preferencias respecto a cómo recopilamos y utilizamos tus datos. Tu privacidad es importante para nosotros, y esta herramienta te permite tomar decisiones informadas sobre tu experiencia en línea.",marketing__category:"Marketing",Other__category:"Otros",privacy__category:"Privacidad y Compartición de Datos",dataSharing__name:"Compartición de Datos",dataSharing__description:"Consentimiento para la compartición de datos",emailMarketing__name:"Marketing por Correo Electrónico",emailMarketing__description:"Consentimiento para marketing por correo electrónico",smsMarketing__name:"Marketing por SMS",smsMarketing__description:"Consentimiento para marketing por SMS",cookiesAndTracking__name:"Cookies y Rastreo",cookiesAndTracking__description:"Consentimiento para cookies y rastreo",termsandconditions__description:"Necesario para demostrar que se aceptaron los términos y condiciones.",emailmarketing__description:"Necesario para demostrar consentimiento para marketing por correo electrónico.",sms__description:"Necesario para demostrar consentimiento para marketing por SMS.","3rdparty__description":"Necesario para demostrar consentimiento para marketing de terceros.",noDataFound:"No se encontraron datos para consentimientos.",loading:"Cargando... por favor espera",requiredError:"Este campo es obligatorio",wrongModalConfig:"¡Hubo un error en la configuración! No se encontraron consentimientos vencidos."},"pt-br":{invalidUrl:"Não foi possível construir 'URL': URL inválida",fetchConsentsError:"Erro: Não foi possível buscar os consentimentos.",fetchPlayerConsentsError:"Erro: Não foi possível buscar os consentimentos dos usuários.",fetchConsentsCategoriesError:"Erro: Não foi possível buscar as categorias de consentimento.",updateConsentsError:"Erro: Não foi possível atualizar os consentimentos.",saveChangesError:"Erro: Não foi possível salvar as alterações.",mustAcceptError:"Os consentimentos obrigatórios devem ser aceitos.",title:"Consentimentos",saveButtonContent:"Salvar Consentimentos",description:"Aqui você pode explorar e gerenciar suas preferências sobre como coletamos e utilizamos seus dados. Sua privacidade é importante para nós, e esta ferramenta permite que você tome decisões informadas sobre sua experiência online.",marketing__category:"Marketing",Other__category:"Outros",privacy__category:"Privacidade e Compartilhamento de Dados",dataSharing__name:"Compartilhamento de Dados",dataSharing__description:"Consentimento para compartilhamento de dados",emailMarketing__name:"Marketing por E-mail",emailMarketing__description:"Consentimento para marketing por e-mail",smsMarketing__name:"Marketing por SMS",smsMarketing__description:"Consentimento para marketing por SMS",cookiesAndTracking__name:"Cookies e Rastreamento",cookiesAndTracking__description:"Consentimento para cookies e rastreamento",termsandconditions__description:"Necessário para comprovar a aceitação dos termos e condições.",emailmarketing__description:"Necessário para comprovar consentimento para marketing por e-mail.",sms__description:"Necessário para comprovar consentimento para marketing por SMS.","3rdparty__description":"Necessário para comprovar consentimento para marketing de terceiros.",noDataFound:"Nenhum dado encontrado para consentimentos.",loading:"Carregando... por favor aguarde",requiredError:"Este campo é obrigatório",wrongModalConfig:"Houve um erro na configuração! Nenhum consentimento expirado encontrado."}};var $t;function Xt(){let e,t;return{c(){e=c.svg_element("svg"),t=c.svg_element("path"),c.attr(t,"d","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"),c.attr(e,"xmlns","http://www.w3.org/2000/svg"),c.attr(e,"viewBox","0 0 512 512")},m(i,r){c.insert(i,e,r),c.append(e,t)},p:c.noop,i:c.noop,o:c.noop,d(t){t&&c.detach(e)}}}function Kt(e){c.append_styles(e,"svelte-1w14oq2",'.DisplayNone.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{display:none}.ContainerCenter.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:219px}.ErrorMessage.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{font-size:12px;color:var(--emw--color-error, #ed0909)}.PlayerConsentsHeader.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{margin-bottom:30px}.AccordionHeader.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{font-weight:bold;cursor:pointer;border-bottom:1px solid var(--emw--color-gray-50, #cccccc);display:flex;align-items:center;justify-content:space-between}.AccordionItem.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{margin-bottom:10px}.AccordionContent.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{display:block;padding:10px 0}.AccordionContent.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2:last-of-type{padding-bottom:0}.ConsentItem.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{display:flex;width:100%;justify-content:space-between;align-items:center;margin-bottom:20px}.ConsentItem.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2:last-of-type{margin-bottom:0}.ConsentItem.svelte-1w14oq2 .ConsentName.svelte-1w14oq2.svelte-1w14oq2{margin:0}.ConsentItem.svelte-1w14oq2 .ConsentDescription.svelte-1w14oq2.svelte-1w14oq2{font-size:0.8rem}.ToggleSwitch.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{position:relative;display:inline-block;width:40px;height:24px}.ToggleSwitch.Big.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{width:53px;height:30px}.ToggleSwitch.Big.svelte-1w14oq2 .Slider.svelte-1w14oq2.svelte-1w14oq2:before{width:22px;height:22px}.ToggleSwitch.Big.svelte-1w14oq2 input.svelte-1w14oq2:checked+.Slider.svelte-1w14oq2:before{-webkit-transform:translateX(22px);-ms-transform:translateX(22px);transform:translateX(22px)}.ToggleSwitch.svelte-1w14oq2 input.svelte-1w14oq2.svelte-1w14oq2{opacity:0;width:0;height:0}.ToggleSwitch.svelte-1w14oq2 input.svelte-1w14oq2:checked+.Slider.svelte-1w14oq2{background-color:var(--emw--color-primary, #22B04E)}.ToggleSwitch.svelte-1w14oq2 input.svelte-1w14oq2:disabled+.Slider.svelte-1w14oq2{opacity:0.1}.ToggleSwitch.svelte-1w14oq2 input.svelte-1w14oq2:checked+.Slider.svelte-1w14oq2:before{-webkit-transform:translateX(16px);-ms-transform:translateX(16px);transform:translateX(16px)}.ToggleSwitch.svelte-1w14oq2 input.svelte-1w14oq2:focus+.Slider.svelte-1w14oq2{box-shadow:0 0 1px var(--emw--color-primary, #22B04E)}.ToggleSwitch.svelte-1w14oq2 .Slider.svelte-1w14oq2.svelte-1w14oq2{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:var(--emw--color-gray-150, #a1a1a1);-webkit-transition:0.4s;transition:0.4s}.ToggleSwitch.svelte-1w14oq2 .Slider.svelte-1w14oq2.svelte-1w14oq2:before{position:absolute;content:"";height:16px;width:16px;left:4px;bottom:4px;background-color:var(--emw--color-white, #fff);-webkit-transition:0.4s;transition:0.4s}.ToggleSwitch.svelte-1w14oq2 .Slider.Round.svelte-1w14oq2.svelte-1w14oq2{border-radius:34px}.ToggleSwitch.svelte-1w14oq2 .Slider.Round.svelte-1w14oq2.svelte-1w14oq2:before{border-radius:50%}.SaveConsentsButton.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{display:block;width:100%;margin:50px auto;outline:none;cursor:pointer;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);border-radius:var(--emw--button-border-radius, 50px);padding:10px 20px;font-size:var(--emw--font-size-large, 20px);font-family:var(--emw--button-typography);color:var(--emw--button-text-color, #FFFFFF)}.SaveConsentsButton.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2:disabled{opacity:0.3;cursor:not-allowed}.ConsentErrorContainer.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{display:flex;gap:10px;align-items:center;border:1px dashed var(--emw--color-error, #ed0909);padding:10px;margin-bottom:10px}.ConsentErrorContainer.svelte-1w14oq2 circle-exclamation-icon.svelte-1w14oq2.svelte-1w14oq2{width:15px;fill:var(--emw--color-error, #ed0909)}.ConsentRequired.svelte-1w14oq2.svelte-1w14oq2.svelte-1w14oq2{color:var(--emw--color-error, #ed0909)}.ConsentsContainer.svelte-1w14oq2 .legacyStyle .checkbox.svelte-1w14oq2.svelte-1w14oq2{font-family:"Roboto";font-style:normal}.ConsentsContainer.svelte-1w14oq2 .legacyStyle .checkbox .checkbox__wrapper.svelte-1w14oq2.svelte-1w14oq2{display:flex;gap:10px;position:relative;align-items:baseline;margin-bottom:30px}.ConsentsContainer.svelte-1w14oq2 .legacyStyle .checkbox .checkbox__wrapper .checkbox__wrapper--relative.svelte-1w14oq2.svelte-1w14oq2{position:relative}.ConsentsContainer.svelte-1w14oq2 .legacyStyle .checkbox .checkbox__input.svelte-1w14oq2.svelte-1w14oq2{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));width:46px}.ConsentsContainer.svelte-1w14oq2 .legacyStyle .checkbox .checkbox__label.svelte-1w14oq2.svelte-1w14oq2{font-style:inherit;font-family:inherit;font-weight:400;font-size:var(--emw--font-size-medium, 16px);color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;cursor:pointer;padding:0}.ConsentsContainer.svelte-1w14oq2 .legacyStyle .checkbox .checkbox__label .checkbox__label-text.svelte-1w14oq2.svelte-1w14oq2{font-size:var(--emw--font-size-medium, 16px)}.ConsentsContainer.svelte-1w14oq2 .legacyStyle .checkbox .checkbox__error-message.svelte-1w14oq2.svelte-1w14oq2{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.ConsentsContainer.svelte-1w14oq2 .legacyStyle .checkbox .checkbox__tooltip-icon.svelte-1w14oq2.svelte-1w14oq2{width:16px;height:auto}.ConsentsContainer.svelte-1w14oq2 .legacyStyle .checkbox .checkbox__tooltip.svelte-1w14oq2.svelte-1w14oq2{position:absolute;top:0;right:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.ConsentsContainer.svelte-1w14oq2 .legacyStyle .checkbox .checkbox__tooltip.visible.svelte-1w14oq2.svelte-1w14oq2{opacity:1}')}function Yt(e,t,i){const r=e.slice();return r[64]=t[i],r}function Wt(e,t,i){const r=e.slice();return r[61]=t[i],r[62]=t,r[63]=i,r}function Zt(e,t,i){const r=e.slice();return r[64]=t[i],r}function Qt(e){let t,i,r=c.ensure_array_like(e[9]),n=[];for(let t=0;t<r.length;t+=1)n[t]=ii(Yt(e,r,t));return{c(){t=c.element("div"),i=c.element("form");for(let e=0;e<n.length;e+=1)n[e].c();c.attr(i,"class","checkbox svelte-1w14oq2"),c.attr(t,"class","legacyStyle")},m(r,o){c.insert(r,t,o),c.append(t,i);for(let e=0;e<n.length;e+=1)n[e]&&n[e].m(i,null);e[31](i)},p(e,t){if(590336&t[0]){let o;for(r=c.ensure_array_like(e[9]),o=0;o<r.length;o+=1){const s=Yt(e,r,o);n[o]?n[o].p(s,t):(n[o]=ii(s),n[o].c(),n[o].m(i,null))}for(;o<n.length;o+=1)n[o].d(1);n.length=r.length}},d(i){i&&c.detach(t),c.destroy_each(n,i),e[31](null)}}}function Jt(e){let t,i,r,n,o,s,a,l,h=e[16]("title")||e[16]("description"),d=(e[16]("saveButtonContent")||"Save Consents")+"",u=h&&ri(e),m=c.ensure_array_like(e[8]),p=[];for(let t=0;t<m.length;t+=1)p[t]=hi(Wt(e,m,t));let _=e[6]&&ci(e);return{c(){u&&u.c(),t=c.space();for(let e=0;e<p.length;e+=1)p[e].c();i=c.space(),r=c.element("button"),o=c.space(),_&&_.c(),s=c.empty(),c.attr(r,"class","SaveConsentsButton svelte-1w14oq2"),r.disabled=n=!e[14]},m(n,h){u&&u.m(n,h),c.insert(n,t,h);for(let e=0;e<p.length;e+=1)p[e]&&p[e].m(n,h);c.insert(n,i,h),c.insert(n,r,h),r.innerHTML=d,c.insert(n,o,h),_&&_.m(n,h),c.insert(n,s,h),a||(l=c.listen(r,"click",e[17]),a=!0)},p(e,o){if(65536&o[0]&&(h=e[16]("title")||e[16]("description")),h?u?u.p(e,o):(u=ri(e),u.c(),u.m(t.parentNode,t)):u&&(u.d(1),u=null),867088&o[0]){let t;for(m=c.ensure_array_like(e[8]),t=0;t<m.length;t+=1){const r=Wt(e,m,t);p[t]?p[t].p(r,o):(p[t]=hi(r),p[t].c(),p[t].m(i.parentNode,i))}for(;t<p.length;t+=1)p[t].d(1);p.length=m.length}65536&o[0]&&d!==(d=(e[16]("saveButtonContent")||"Save Consents")+"")&&(r.innerHTML=d),16384&o[0]&&n!==(n=!e[14])&&(r.disabled=n),e[6]?_?_.p(e,o):(_=ci(e),_.c(),_.m(s.parentNode,s)):_&&(_.d(1),_=null)},d(e){e&&(c.detach(t),c.detach(i),c.detach(r),c.detach(o),c.detach(s)),u&&u.d(e),c.destroy_each(p,e),_&&_.d(e),a=!1,l()}}}function ei(e){let t,i,r;return{c(){t=c.element("div"),i=c.element("strong"),r=c.text(e[7]),c.attr(i,"class","ErrorMessage svelte-1w14oq2"),c.attr(t,"class","ContainerCenter svelte-1w14oq2")},m(e,n){c.insert(e,t,n),c.append(t,i),c.append(i,r)},p(e,t){128&t[0]&&c.set_data(r,e[7])},d(e){e&&c.detach(t)}}}function ti(e){let t;return{c(){t=c.element("general-animation-loading"),c.set_custom_element_data(t,"clientstyling",e[1]),c.set_custom_element_data(t,"clientstylingurl",e[2]),c.set_custom_element_data(t,"mbsource",e[3])},m(e,i){c.insert(e,t,i)},p(e,i){2&i[0]&&c.set_custom_element_data(t,"clientstyling",e[1]),4&i[0]&&c.set_custom_element_data(t,"clientstylingurl",e[2]),8&i[0]&&c.set_custom_element_data(t,"mbsource",e[3])},d(e){e&&c.detach(t)}}}function ii(e){let t,i,r,n,o,s,a,l,h,d,u,m,p,_,f,v,g,E=(e[16](`${e[64].tagCode}__description`)||e[64].tagCode)+"",b=e[64].mustAccept?" *":"";function y(...t){return e[30](e[64],...t)}return{c(){t=c.element("div"),i=c.element("input"),o=c.space(),s=c.element("label"),a=c.element("div"),l=new c.HtmlTag(!1),h=c.text(b),u=c.space(),m=c.element("small"),_=c.space(),c.attr(i,"class","checkbox__input svelte-1w14oq2"),c.attr(i,"type","checkbox"),i.checked=r="1"===e[64].status,c.attr(i,"id",n=`${e[64].tagCode}__input`),l.a=h,c.attr(a,"class","checkbox__label-text svelte-1w14oq2"),c.attr(s,"class","checkbox__label svelte-1w14oq2"),c.attr(s,"for",d=`${e[64].tagCode}__input`),c.attr(m,"class","checkbox__error-message svelte-1w14oq2"),c.attr(m,"id",p="checkBoxError__"+e[64].tagCode),c.attr(t,"class",f="checkbox__wrapper "+e[64].tagCode+"__input svelte-1w14oq2")},m(e,r){c.insert(e,t,r),c.append(t,i),c.append(t,o),c.append(t,s),c.append(s,a),l.m(E,a),c.append(a,h),c.append(t,u),c.append(t,m),c.append(t,_),v||(g=c.listen(i,"input",y),v=!0)},p(o,a){e=o,512&a[0]&&r!==(r="1"===e[64].status)&&(i.checked=r),512&a[0]&&n!==(n=`${e[64].tagCode}__input`)&&c.attr(i,"id",n),66048&a[0]&&E!==(E=(e[16](`${e[64].tagCode}__description`)||e[64].tagCode)+"")&&l.p(E),512&a[0]&&b!==(b=e[64].mustAccept?" *":"")&&c.set_data(h,b),512&a[0]&&d!==(d=`${e[64].tagCode}__input`)&&c.attr(s,"for",d),512&a[0]&&p!==(p="checkBoxError__"+e[64].tagCode)&&c.attr(m,"id",p),512&a[0]&&f!==(f="checkbox__wrapper "+e[64].tagCode+"__input svelte-1w14oq2")&&c.attr(t,"class",f)},d(e){e&&c.detach(t),v=!1,g()}}}function ri(e){let t,i,r=e[16]("title"),n=e[16]("description"),o=r&&ni(e),s=n&&oi(e);return{c(){t=c.element("div"),o&&o.c(),i=c.space(),s&&s.c(),c.attr(t,"class","PlayerConsentsHeader svelte-1w14oq2")},m(e,r){c.insert(e,t,r),o&&o.m(t,null),c.append(t,i),s&&s.m(t,null)},p(e,a){65536&a[0]&&(r=e[16]("title")),r?o?o.p(e,a):(o=ni(e),o.c(),o.m(t,i)):o&&(o.d(1),o=null),65536&a[0]&&(n=e[16]("description")),n?s?s.p(e,a):(s=oi(e),s.c(),s.m(t,null)):s&&(s.d(1),s=null)},d(e){e&&c.detach(t),o&&o.d(),s&&s.d()}}}function ni(e){let t,i,r=e[16]("title")+"";return{c(){t=c.element("h2"),i=c.text(r),c.attr(t,"class","PlayerConsentsTitle")},m(e,r){c.insert(e,t,r),c.append(t,i)},p(e,t){65536&t[0]&&r!==(r=e[16]("title")+"")&&c.set_data(i,r)},d(e){e&&c.detach(t)}}}function oi(e){let t,i,r=e[16]("description")+"";return{c(){t=c.element("p"),i=c.text(r),c.attr(t,"class","PlayerConsentsDescription")},m(e,r){c.insert(e,t,r),c.append(t,i)},p(e,t){65536&t[0]&&r!==(r=e[16]("description")+"")&&c.set_data(i,r)},d(e){e&&c.detach(t)}}}function si(){let e;return{c(){e=c.element("sup"),e.textContent="*",c.attr(e,"class","ConsentRequired svelte-1w14oq2")},m(t,i){c.insert(t,e,i)},d(t){t&&c.detach(e)}}}function ai(e){let t,i=(e[16](`${e[64].tagCode}__description`)||e[64].description)+"";return{c(){t=c.element("p"),c.attr(t,"class","ConsentDescription svelte-1w14oq2")},m(e,r){c.insert(e,t,r),t.innerHTML=i},p(e,r){66304&r[0]&&i!==(i=(e[16](`${e[64].tagCode}__description`)||e[64].description)+"")&&(t.innerHTML=i)},d(e){e&&c.detach(t)}}}function li(e){let t,i,r,n,o,s,a,l,h,d,u,m,p,_,f,v=(e[16](`${e[64].tagCode}__name`)||e[64].friendlyName)+"",g=!0===e[64].mustAccept&&si(),E="true"===e[4]&&ai(e);function b(...t){return e[29](e[64],...t)}return{c(){t=c.element("div"),i=c.element("div"),r=c.element("h4"),n=new c.HtmlTag(!1),o=c.space(),g&&g.c(),s=c.space(),E&&E.c(),a=c.space(),l=c.element("label"),h=c.element("input"),m=c.space(),p=c.element("span"),n.a=o,c.attr(r,"class","ConsentName svelte-1w14oq2"),c.attr(i,"class","ConsentContent"),c.attr(h,"type","checkbox"),h.disabled=d=!0===e[64].mustAccept&&!0===e[12][e[64].tagCode],h.checked=u=e[13][e[64].tagCode],c.attr(h,"class","svelte-1w14oq2"),c.attr(p,"class","Slider Round svelte-1w14oq2"),c.attr(l,"class","ToggleSwitch svelte-1w14oq2"),c.attr(t,"class","ConsentItem svelte-1w14oq2")},m(e,d){c.insert(e,t,d),c.append(t,i),c.append(i,r),n.m(v,r),c.append(r,o),g&&g.m(r,null),c.append(i,s),E&&E.m(i,null),c.append(t,a),c.append(t,l),c.append(l,h),c.append(l,m),c.append(l,p),_||(f=c.listen(h,"input",b),_=!0)},p(t,o){e=t,66304&o[0]&&v!==(v=(e[16](`${e[64].tagCode}__name`)||e[64].friendlyName)+"")&&n.p(v),!0===e[64].mustAccept?g||(g=si(),g.c(),g.m(r,null)):g&&(g.d(1),g=null),"true"===e[4]?E?E.p(e,o):(E=ai(e),E.c(),E.m(i,null)):E&&(E.d(1),E=null),4864&o[0]&&d!==(d=!0===e[64].mustAccept&&!0===e[12][e[64].tagCode])&&(h.disabled=d),8960&o[0]&&u!==(u=e[13][e[64].tagCode])&&(h.checked=u)},d(e){e&&c.detach(t),g&&g.d(),E&&E.d(),_=!1,f()}}}function hi(e){let t,i,r,n,o,s,a,l,h,d,u,m,p=(e[16](`${e[61].categoryTagCode}__category`)||e[61].friendlyName)+"";function _(){e[26].call(s,e[61])}function f(){return e[27](e[61])}function v(...t){return e[28](e[61],...t)}let g=c.ensure_array_like(e[9].filter(v)),E=[];for(let t=0;t<g.length;t+=1)E[t]=li(Zt(e,g,t));return{c(){t=c.element("div"),i=c.element("div"),r=c.element("h3"),n=c.space(),o=c.element("label"),s=c.element("input"),a=c.space(),l=c.element("span"),h=c.space(),d=c.element("div");for(let e=0;e<E.length;e+=1)E[e].c();c.attr(s,"type","checkbox"),c.attr(s,"class","svelte-1w14oq2"),c.attr(l,"class","Slider Round svelte-1w14oq2"),c.attr(o,"class","ToggleSwitch Big svelte-1w14oq2"),c.attr(i,"class","AccordionHeader svelte-1w14oq2"),c.attr(d,"class","AccordionContent svelte-1w14oq2"),c.attr(t,"class","AccordionItem svelte-1w14oq2")},m(v,g){c.insert(v,t,g),c.append(t,i),c.append(i,r),r.innerHTML=p,c.append(i,n),c.append(i,o),c.append(o,s),s.checked=e[11][e[61].categoryTagCode],c.append(o,a),c.append(o,l),c.append(t,h),c.append(t,d);for(let e=0;e<E.length;e+=1)E[e]&&E[e].m(d,null);u||(m=[c.listen(s,"change",_),c.listen(s,"change",f)],u=!0)},p(t,i){if(e=t,65792&i[0]&&p!==(p=(e[16](`${e[61].categoryTagCode}__category`)||e[61].friendlyName)+"")&&(r.innerHTML=p),2304&i[0]&&(s.checked=e[11][e[61].categoryTagCode]),602896&i[0]){let t;for(g=c.ensure_array_like(e[9].filter(v)),t=0;t<g.length;t+=1){const r=Zt(e,g,t);E[t]?E[t].p(r,i):(E[t]=li(r),E[t].c(),E[t].m(d,null))}for(;t<E.length;t+=1)E[t].d(1);E.length=g.length}},d(e){e&&c.detach(t),c.destroy_each(E,e),u=!1,c.run_all(m)}}}function ci(e){let t,i,r,n,o;return{c(){t=c.element("div"),i=c.element("circle-exclamation-icon"),r=c.space(),n=c.element("strong"),o=c.text(e[6]),c.set_custom_element_data(i,"class","svelte-1w14oq2"),c.attr(n,"class","ErrorMessage svelte-1w14oq2"),c.attr(t,"class","ConsentErrorContainer svelte-1w14oq2")},m(e,s){c.insert(e,t,s),c.append(t,i),c.append(t,r),c.append(t,n),c.append(n,o)},p(e,t){64&t[0]&&c.set_data(o,e[6])},d(e){e&&c.detach(t)}}}function di(e){let t,i;function r(e){return e[10]?ti:e[7]?ei:e[0]?Jt:e[0]?void 0:Qt}let n=r(e),o=n&&n(e);return{c(){t=c.element("div"),i=c.element("div"),o&&o.c(),c.attr(i,"class","ConsentsContainer svelte-1w14oq2"),c.attr(t,"class",c.null_to_empty("")+" svelte-1w14oq2")},m(r,n){c.insert(r,t,n),c.append(t,i),o&&o.m(i,null),e[32](i)},p(e,t){n===(n=r(e))&&o?o.p(e,t):(o&&o.d(1),o=n&&n(e),o&&(o.c(),o.m(i,null)))},i:c.noop,o:c.noop,d(i){i&&c.detach(t),o&&o.d(),e[32](null)}}}function ui(e,t,n){let o;c.component_subscribe(e,qt,(e=>n(16,o=e)));let s,a,d,{session:u=""}=t,{userid:m=""}=t,{endpoint:p=""}=t,{clientstyling:_=""}=t,{clientstylingurl:f=""}=t,{mbsource:v}=t,{lang:g="en"}=t,{displayconsentdescription:E=""}=t,{translationurl:b=""}=t,{modalconsents:y="false"}=t,w=!1,k=!1,x="",S="",A="",I="",C=[],D=[],T=[],R=!0,N=!0,O={},z={},G={},M={},U={none:{key:"0",value:"None"},accepted:{key:"1",value:"Accepted"},expired:{key:"2",value:"Expired"},denied:{key:"3",value:"Denied"},suspended:{key:"4",value:"Suspended"}},B=!1;Object.keys(Vt).forEach((e=>{Ht(e,Vt[e])}));const P=(e,t=!1)=>{t?n(7,I=e):($(),n(6,A=e))},L=(e,t,i,r=!1)=>h(this,null,(function*(){try{const r=yield fetch(e,i);if(!r.ok)throw new Error(o(t));const n=yield r.json();return k?n:n.filter((e=>!0===e.showOnRegister))}catch(e){throw P(e instanceof TypeError?o(t):e.message,r),e}})),j=()=>h(this,null,(function*(){try{let e=[],t=[];if(k?[e,t]=yield F():e=yield F(),n(10,R=!1),D=[...e],n(8,C=q(D).sort(((e,t)=>e.categoryTagCode.localeCompare(t.categoryTagCode)))),n(11,O=H(C)),z=l({},O),n(9,T=[...t]),D.forEach((e=>{let t=T.find((t=>t.tagCode===e.tagCode));t||(t=((e,t)=>i(e,r(t)))(l({},e),{status:U.denied.value}),T.push(t)),t.description=e.description,t.orderNumber=e.orderNumber})),"true"===y){if(n(9,T=T.filter((e=>e.status===U.expired.value))),0!==T.length)return;P(o("wrongModalConfig"),!0)}V()}catch(e){throw n(10,R=!1),P(e instanceof TypeError?o("invalidUrl"):e.message,!0),e}})),F=()=>h(this,null,(function*(){const e=new URL(`${p}/api/v1/gm/consents`);if(e.searchParams.append("Status","Active"),!k)return yield L(e.href,"fetchConsentsError",{method:"GET"},!0);const t=new URL(`${p}/api/v1/gm/user-consents/${S}`);return yield Promise.all([L(e.href,"fetchConsentsError",{method:"GET"},!0),L(t.href,"fetchPlayerConsentsError",{method:"GET",headers:{"X-SessionId":x,"Content-Type":"application/json"}})])})),q=e=>{const t=new Map;return e.forEach((e=>{t.has(e.category.categoryTagCode)||t.set(e.category.categoryTagCode,e.category)})),Array.from(t.values())},H=e=>{const t=localStorage.getItem("categoryToggle"+S);if(null===t){const t=e.reduce(((e,t)=>(e[t.categoryTagCode]=!1,e)),{});return localStorage.setItem("categoryToggle"+S,JSON.stringify(t)),t}return JSON.parse(t)},V=()=>{T.forEach((e=>{n(12,G[e.tagCode]=e.status===U.accepted.value,G)})),n(13,M=l({},G))},$=()=>{n(13,M=l({},G)),n(11,O=l({},z))},X=e=>{T.filter((t=>t.category.categoryTagCode===e)).forEach((t=>{t.status=t.status===U.denied.value?U.accepted.value:U.denied.value,n(13,M[t.tagCode]=O[e]||!1,M)})),n(14,a=Z())},K=(e,t,i)=>{const r=T.find((e=>e.id===i)),s=t?"value":"key";let a;if(!t&&r.mustAccept){const e=Array.from(d.children);for(const t of e)if(a=Array.from(t.children).find((e=>e.getAttribute("id")===`checkBoxError__${r.tagCode}`)),a)break}if(r.status===U.accepted[s]?(r.status=U.denied[s],a&&(a.innerHTML=o("requiredError"))):(r.status=U.accepted[s],a&&(a.innerHTML="")),t){n(13,M[r.tagCode]=!M[r.tagCode],M);const e=T.filter((e=>e.category.categoryTagCode===t.categoryTagCode)).every((e=>e.status!==U.denied.value));n(11,O[t.categoryTagCode]=e,O)}Y()},Y=(e=>{let t;return function(...i){const r=this;clearTimeout(t),t=setTimeout((()=>{e.apply(r,i)}),500)}})((()=>W())),W=()=>{n(14,a=Z()),u||(window.postMessage({type:"isConsentsValid",isValid:a}),localStorage.setItem("playerConsents",JSON.stringify(T)))},Z=()=>0===T.filter((e=>T.some((t=>e.tagCode===t.tagCode&&t.mustAccept&&(e.status===U.denied.key||e.status===U.denied.value))))).length,Q=e=>{window.postMessage({type:"WidgetNotification",data:{type:"error",message:e}},window.location.href)};return c.onMount((()=>{setTimeout((()=>{n(25,w=!0)}),50);const e=e=>(e=>{e.data&&"setUpPlayerConsents"!==e.data.type||(e=>{const t=new URL(`${p}/api/v2/gm/legislation/consents`),i={method:"POST",body:JSON.stringify({playerConsents:T,registrationId:e}),headers:{"Content-Type":"application/json",Accept:"application/json"}};fetch(t.href,i).then((e=>{e.ok||(B=!0)})).catch((e=>(console.error(e),Q(e)))).finally((()=>{n(10,R=!1)}))})(e.data.registerid)})(e);return window.addEventListener("message",e),()=>{window,window.removeEventListener("message",e)}})),e.$$set=e=>{"session"in e&&n(0,u=e.session),"userid"in e&&n(20,m=e.userid),"endpoint"in e&&n(21,p=e.endpoint),"clientstyling"in e&&n(1,_=e.clientstyling),"clientstylingurl"in e&&n(2,f=e.clientstylingurl),"mbsource"in e&&n(3,v=e.mbsource),"lang"in e&&n(22,g=e.lang),"displayconsentdescription"in e&&n(4,E=e.displayconsentdescription),"translationurl"in e&&n(23,b=e.translationurl),"modalconsents"in e&&n(24,y=e.modalconsents)},e.$$.update=()=>{33554433&e.$$.dirty[0]&&w&&u&&(u&&(x=u,k=!0),m&&(S=m),j()),1&e.$$.dirty[0]&&(u||(()=>{B=!1;const e=new URL(`${p}/api/v2/gm/legislation/consents`);fetch(e.href,{method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json"}}).then((e=>e.ok?e.json():(B=!0,e.json().then((e=>(console.error(e),Q(e))))))).then((e=>{if(!B){if(D=e,localStorage.getItem("playerConsents")){try{n(9,T=JSON.parse(localStorage.getItem("playerConsents")))}catch(e){return console.error(e),Q(e)}return}return n(9,T=D.map((e=>({id:e.id,status:U.denied.key,friendlyName:e.friendlyName,tagCode:e.tagCode,selected:null,mustAccept:e.mustAccept})))),localStorage.setItem("playerConsents",JSON.stringify(T)),T}})).catch((e=>(console.error(e),Q(e)))).finally((()=>{n(10,R=!1)}))})()),34&e.$$.dirty[0]&&_&&s&&c.setClientStyling(s,_),36&e.$$.dirty[0]&&f&&s&&c.setClientStylingURL(s,f),40&e.$$.dirty[0]&&s&&c.setStreamStyling(s,`${v}.Style`),4194304&e.$$.dirty[0]&&g&&function(e){xt.set(e)}(g),8388608&e.$$.dirty[0]&&b&&(()=>{let e=new URL(b);fetch(e.href).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Ht(t,e[t])}))})).catch((e=>{console.log(e)}))})()},[u,_,f,v,E,s,A,I,C,T,R,O,G,M,a,d,o,()=>h(this,null,(function*(){if(!N)return;N=!1;const e=[],t=[];if(Object.keys(M).forEach((i=>{const r=T.find((e=>e.tagCode===i));M[i]!==G[i]&&(r?e.push({tagCode:i,status:M[i]?U.accepted.value:U.denied.value}):t.push({tagCode:i,status:M[i]?U.accepted.value:U.denied.value}))})),!k)return localStorage.setItem("categoryToggle"+S,JSON.stringify(O)),z=l({},O),window.postMessage({type:"NewPlayerConsentData",data:JSON.stringify(t)},window.location.href),void(N=!0);const i=new URL(`${p}/api/v1/gm/user-consents/${S}`);try{const r=yield Promise.allSettled([t.length>0&&L(i.href,"updateConsentsError",{method:"POST",headers:{"X-SessionId":x,"Content-Type":"application/json"},body:JSON.stringify({userConsents:t})}),e.length>0&&L(i.href,"updateConsentsError",{method:"PATCH",headers:{"X-SessionId":x,"Content-Type":"application/json"},body:JSON.stringify({userConsents:e})})]);r.forEach(((i,r)=>{if("rejected"===i.status||!1===i.value.ok){const i=r<t.length?t[r]:e[r-t.length];n(13,M[i.tagCode]=G[i.tagCode],M)}})),r.every((e=>"fulfilled"===e.status))&&(localStorage.setItem("categoryToggle"+S,JSON.stringify(O)),z=l({},O),window.postMessage({type:"PlayerConsentUpdated",success:!0},window.location.href),n(12,G=l({},M)))}catch(e){P(e instanceof TypeError?o("saveChangesError"):e.message),window.postMessage({type:"PlayerConsentUpdated",success:!1},window.location.href)}finally{N=!0,n(14,a=!1)}})),X,K,m,p,g,b,y,w,function(e){O[e.categoryTagCode]=this.checked,n(11,O)},e=>X(e.categoryTagCode),(e,t)=>t.category.categoryTagCode===e.categoryTagCode,e=>K(0,e.category,e.id),e=>K(0,null,e.id),function(e){c.binding_callbacks[e?"unshift":"push"]((()=>{d=e,n(15,d)}))},function(e){c.binding_callbacks[e?"unshift":"push"]((()=>{s=e,n(5,s)}))}]}"undefined"!=typeof window&&(customElements.define=($t=customElements.define,function(...e){try{return $t.apply(this,e)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}),Promise.resolve().then((()=>vc)).then((e=>e.GeneralAnimationLoading_ce)).then((({default:e})=>{!customElements.get("general-animation-loading")&&customElements.define("general-animation-loading",e.element)}))),customElements.define("circle-exclamation-icon",c.create_custom_element(class extends c.SvelteComponent{constructor(e){super(),c.init(this,e,null,Xt,c.safe_not_equal,{})}},{},[],[],!0));class mi extends c.SvelteComponent{constructor(e){super(),c.init(this,e,ui,di,c.safe_not_equal,{session:0,userid:20,endpoint:21,clientstyling:1,clientstylingurl:2,mbsource:3,lang:22,displayconsentdescription:4,translationurl:23,modalconsents:24},Kt,[-1,-1,-1])}get session(){return this.$$.ctx[0]}set session(e){this.$$set({session:e}),c.flush()}get userid(){return this.$$.ctx[20]}set userid(e){this.$$set({userid:e}),c.flush()}get endpoint(){return this.$$.ctx[21]}set endpoint(e){this.$$set({endpoint:e}),c.flush()}get clientstyling(){return this.$$.ctx[1]}set clientstyling(e){this.$$set({clientstyling:e}),c.flush()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),c.flush()}get mbsource(){return this.$$.ctx[3]}set mbsource(e){this.$$set({mbsource:e}),c.flush()}get lang(){return this.$$.ctx[22]}set lang(e){this.$$set({lang:e}),c.flush()}get displayconsentdescription(){return this.$$.ctx[4]}set displayconsentdescription(e){this.$$set({displayconsentdescription:e}),c.flush()}get translationurl(){return this.$$.ctx[23]}set translationurl(e){this.$$set({translationurl:e}),c.flush()}get modalconsents(){return this.$$.ctx[24]}set modalconsents(e){this.$$set({modalconsents:e}),c.flush()}}c.create_custom_element(mi,{session:{},userid:{},endpoint:{},clientstyling:{},clientstylingurl:{},mbsource:{},lang:{},displayconsentdescription:{},translationurl:{},modalconsents:{}},[],[],!0),e.default=mi}(fc),"undefined"!=typeof window){customElements.define=function(e){return function(...t){try{return e.apply(this,t)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}}(customElements.define),Promise.resolve().then((()=>fc)).then((({default:e})=>{!customElements.get("player-consents")&&customElements.define("player-consents",e.element)}))}const vd=class{constructor(i){e(this,i),this.registrationWidgetLoaded=t(this,"registrationWidgetLoaded",7),this.registrationStepUpdated=t(this,"registrationStepUpdated",7),this.validationChange=t(this,"validationChange",7),this.listOfInputValues=[],this.listOfInputValidity=[],this.listOfActions=[],this.listOfInputs=[],this.conditionalValidationMap={},this.emitValue=!1,this.backButtonPressed=!1,this.registerErrors=!1,this.extraActions=[],this.registrationStepsState={regId:null},this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.host.shadowRoot.prepend(e)},this.setClientStylingURL=()=>{let e=new URL(this.clientStylingUrl),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,this.clientStyling=e,setTimeout((()=>{this.host.shadowRoot.prepend(t)}),1)}))},this.setStreamStyling=e=>{if(window.emMessageBus){const t=document.createElement("style");this.stylingSubscription=window.emMessageBus.subscribe(e,(e=>{t.innerHTML=e,this.clientStyling=e,this.host.shadowRoot.prepend(t)}))}},this.handleInitialClick=e=>{this.isInitalInteraction&&(_c("register_start",{field:e.target.name}),this.isInitalInteraction=!1)},this.endpoint=void 0,this.language="en",this.clientStyling="",this.mbSource=void 0,this.clientStylingUrl="",this.translationUrl="",this.dateFormat=void 0,this.buttonInsideForm=void 0,this.btag=null,this.emitOnClick=!1,this.errorMessage=void 0,this.isFormValid=void 0,this.isConsentValid=!1,this.isConsentReady=!1,this.isLoading=!0,this.isLoadingPOST=void 0,this.registrationStep=void 0,this.forms=[],this.limitStylingAppends=!1,this.autofilled=!1,this.isInitalInteraction=!0}sendStep(){this.registrationStepUpdated.emit(this.registrationStep),window.postMessage({type:"registrationStepUpdated",step:this.registrationStep},window.location.href)}handleStylingChange(e,t){e!==t&&this.setClientStyling()}handleStylingUrlChange(e,t){e!==t&&this.setClientStylingURL()}setFormValidity(){this.errorMessage="",this.listOfInputValidity&&(this.isFormValid=!this.getInvalidStatus(this.listOfInputValidity)),this.listOfInputs.some((e=>e.autofill))&&(this.autofilled=!0)}addBtag(){this.addBtagValue()}checkInputsValidityHandler(e){this.listOfInputValidity.find((t=>t.name==e.detail.name)).isValid=e.detail.valid,this.isFormValid=!this.getInvalidStatus(this.listOfInputValidity)}getInputsValueHandler(e){this.listOfInputValues.find((t=>{t.name==e.detail.name&&(t.value=e.detail.value,t.type=e.detail.type||null)})),this.stepsStateMachine({event:"set",type:"values"}),this.handleConditionalValidation(e.detail.name,e.detail.value)}componentWillLoad(){return this.getRegisterConfig().then((e=>{this.formatConfig(e),this.isFormValid=!this.getInvalidStatus(this.listOfInputValidity),this.stepsStateMachine({event:"set",type:"inputs"}),this.setupConditionalValidationMap()}))}setupConditionalValidationMap(){for(const e of this.listOfInputs){const t=[],i=[];for(const r of e.validate.custom)r.correlationField&&r.correlationValue?i.push(r):t.push(r);for(const r of i)if("regex"===r.rule){const i=Object.assign({},e.validate);i.custom=[...t,r];const n=r.correlationField,o=r.correlationValue;this.conditionalValidationMap[n]=this.conditionalValidationMap[n]||{},this.conditionalValidationMap[n][o]=this.conditionalValidationMap[n][o]||{},this.conditionalValidationMap[n][o][e.name]=i}}}handleConditionalValidation(e,t){if(this.conditionalValidationMap[e])for(const[i,r]of Object.entries(this.conditionalValidationMap[e][t])){const e=this.registrationStep&&parseInt(this.registrationStep.replace("Step",""))-1;this.forms[e][this.registrationStep].find((e=>e.name===i)).validate=r,this.validationChange.emit({validation:r,field:i})}}componentDidLoad(){this.registrationWidgetLoaded.emit(),window.postMessage({type:"registrationWidgetLoaded"},window.location.href),!this.limitStylingAppends&&this.host&&(null!=window.emMessageBus?this.setStreamStyling(`${this.mbSource}.Style`):(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}messageHandler(e){e.data&&"isConsentsValid"===e.data.type&&(this.listOfInputValidity.find((e=>"Consents"===e.name)).isValid=!!e.data.isValid,this.isConsentValid=!!e.data.isValid,this.isFormValid=!this.getInvalidStatus(this.listOfInputValidity))}nextHandler(e){e.preventDefault(),this.emitValue=!0,this.setRegisterStep()}backHandler(e){e.preventDefault(),this.registrationStep=this.stepChange("decrement"),this.stepsStateMachine({event:"get",type:"inputs"}),this.stepsStateMachine({event:"get",type:"values"})}dispatchRegisterCredentialsEvent(){let e="",t="";Object.keys(this.registrationStepsState).forEach((i=>{this.registrationStepsState[i].registerUserData&&(e||(e=this.registrationStepsState[i].registerUserData.Email?this.registrationStepsState[i].registerUserData.Email.value:e),t||(t=this.registrationStepsState[i].registerUserData.Password?this.registrationStepsState[i].registerUserData.Password.value:t))})),this.registerCredentialsEvent=new CustomEvent("RegisterCredentials",{bubbles:!0,detail:{userNameEmail:e,userPassword:t}}),window.dispatchEvent(this.registerCredentialsEvent)}stepsStateMachine(e){const t=()=>{localStorage.setItem("registrationStepsState",JSON.stringify(this.registrationStepsState))};switch(e.event){case"set":if("inputs"==e.type){const e=this.registrationStepsState[this.registrationStep];e.fields=this.listOfInputs,e.actions=this.listOfActions,e.fieldsValidity=this.listOfInputValidity}"values"==e.type&&(this.registrationStepsState[this.registrationStep].registerUserData=this.listOfInputValues.reduce(((e,t)=>(e[t.name]={value:t.value,isDuplicate:t.isDuplicate},e)),{})),t();break;case"get":const i=JSON.parse(localStorage.getItem("registrationStepsState"));if(!i)return;if("inputs"==e.type){const e=this.registrationStepsState[this.registrationStep];this.listOfInputs=e.fields,this.listOfActions=e.actions,this.listOfInputValidity=e.fieldsValidity}if("values"==e.type){const e=i[this.registrationStep].registerUserData;this.listOfInputValues=Object.keys(e).map((t=>({name:t,value:e[t].value,isDuplicate:e[t].isDuplicate}))),this.listOfInputValues.forEach((e=>{const t=this.listOfInputs.find((t=>t.name===e.name));t&&(t.defaultValue=e.value,"togglecheckbox"===t.inputType&&t.data.subFields.forEach((e=>{const t=this.listOfInputValues.find((t=>t.name===e.name));e.defaultValue=t.value})))}))}this.isConsentReady=this.listOfActions.some((e=>"/Consents"===e)),this.isFormValid=!this.getInvalidStatus(this.listOfInputValidity)}}getRegisterConfig(e){const t=new URL(`${this.endpoint}/v1/player/legislation/registration/config`),i=new Headers;i.append("Content-Type","application/json"),i.append("Accept","application/json"),e&&t.searchParams.append("registrationId",e);const r={method:"GET",headers:i};return new Promise(((e,i)=>{this.isLoading=!0,fetch(t.href,r).then((e=>e.json())).then((t=>{this.isLoading=!1,e(t)})).catch((e=>{this.isLoading=!1,console.error(e),i(e)})).finally((()=>{this.isLoading=!1}))}))}setRegisterStep(){this.isLoadingPOST=!0;const e=new URL(`${this.endpoint}/v1/player/legislation/registration/step`),t={registrationId:this.registrationID,registerUserDto:this.listOfInputValues.filter((e=>!e.isDuplicate)).reduce(((e,t)=>("TypeOfPublicArea"===t.name?e[t.name]=t.value.toLowerCase():"tel"===t.type?(e.MobilePrefix=t.value.prefix,e[t.name]=t.value.phone):"checkboxgroup"===t.type?null!==t.value&&Object.entries(t.value).forEach((([t,i])=>{e[t]=i?"true":"false"})):e[t.name]="toggle"===t.type?t.value?"true":"false":t.value,e)),{}),step:this.registrationStep},i=new Headers;i.append("Content-Type","application/json"),i.append("Accept","application/json");const r={method:"POST",body:JSON.stringify(t),headers:i};fetch(e.href,r).then((e=>e.ok?("Step1"===this.registrationStep?_c("register_step1",{eventLabel:this.registrationStep,eventAction:"nextStep",eventCategory:"Registration",eventData:{IBAN:t.registerUserDto.IBAN,username:t.registerUserDto.Username}}):"Step2"===this.registrationStep?_c("register_step2",{eventLabel:this.registrationStep,eventAction:"nextStep",eventCategory:"Registration",eventData:{gender:t.registerUserDto.Gender,fullName:`${t.registerUserDto.FirstnameOnDocument} ${t.registerUserDto.LastNameOnDocument}`,city:t.registerUserDto.City}}):"Step3"===this.registrationStep&&_c("register_step3",{eventLabel:this.registrationStep,eventAction:"nextStep",eventCategory:"Registration",eventData:{OIB:t.registerUserDto.PersonalID,documentType:t.registerUserDto.DocumentType}}),e.json()):e.json().then((e=>{this.errorCode=e.thirdPartyResponse.errorCode,this.errorMessage="GmErr_BadRequest_IdomsoftVerification_ShouldRetry"==this.errorCode?e.thirdPartyResponse.message:"GmErr_Forbidden_UserAccount_NavExcluded"===this.errorCode?pc(`${this.errorCode}`,this.language):"GmErr_BadRequest"==this.errorCode?e.thirdPartyResponse.message:pc(`${this.errorCode}`,this.language)||pc("generalError",this.language)})))).then((e=>{this.isLoadingPOST=!1,this.registrationID=e.registrationId,this.listOfActions.some((e=>"/register"==e))?(this.listOfActions.some((e=>"/generate-2FA-code/Generate2FACode"==e))&&this.extraActions.push("2fa"),localStorage.getItem("playerConsents")&&localStorage.removeItem("playerConsents"),this.setRegister()):(this.isConsentValid&&window.postMessage({type:"setUpPlayerConsents",registerid:this.registrationID}),this.registrationStep=this.stepChange("increment"),Object.keys(this.registrationStepsState).find((e=>e==this.registrationStep))?(this.stepsStateMachine({event:"get",type:"inputs"}),this.stepsStateMachine({event:"get",type:"values"})):this.getRegisterConfig(this.registrationID).then((e=>{this.formatConfig(e),this.stepsStateMachine({event:"set",type:"inputs"}),this.setupConditionalValidationMap()})))})).catch((e=>{this.isLoadingPOST=!1,console.error(e)})).finally((()=>{this.isLoadingPOST=!1}))}setRegister(){this.isLoading=!0,this.registerErrors=!1;const e=new URL(`${this.endpoint}/v1/player/legislation/register`),t=new Headers;t.append("Content-Type","application/json"),t.append("Accept","application/json");const i={method:"PUT",body:JSON.stringify({registrationId:this.registrationID}),headers:t};_c("register_submit",{registrationId:this.registrationID}),fetch(e.href,i).then((e=>e.ok?e.json():(this.registerErrors=!0,e.json().then((e=>{this.errorCode=e.thirdPartyResponse.errorCode,this.errorMessage="GmErr_BadRequest_IdomsoftVerification_ShouldRetry"==this.errorCode||"GmErr_BadRequest"==this.errorCode?e.thirdPartyResponse.message:pc(`${this.errorCode}`,this.language)||pc("generalError",this.language),window.postMessage({type:"registrationFailed",errorMessage:null==e?void 0:e.thirdPartyResponse.message},window.location.href),window.postMessage({type:"WidgetNotification",data:{type:"error",message:this.errorMessage}},window.location.href),_c("register_fail",{error:this.errorMessage})}))))).then((e=>{this.isLoading=!1,this.registerErrors||(this.dispatchRegisterCredentialsEvent(),window.postMessage({type:"registrationSuccessful",userId:null==e?void 0:e.userId,extraActions:this.extraActions},window.location.href),window.postMessage({type:"WidgetNotification",data:{type:"success",message:pc("successMessage",this.language)}},window.location.href),_c("register_closed",{userId:e.userId}))})).catch((e=>{this.isLoading=!1,console.error(e)})).finally((()=>{this.isLoading=!1}))}formatConfig(e){if(this.listOfInputs=e.content.fields.flatMap((e=>{const t=e.validate.custom.find((e=>"duplicate-input"===e.rule)),i=Object.assign({},e);return t?[i,Object.assign(Object.assign({},e),{name:`${e.name}Duplicate`,displayName:t.displayName,isDuplicateInput:!0})]:[i]})),this.listOfInputValidity=this.listOfInputs.reduce(((e,t)=>{var i;return"togglecheckbox"===(null===(i=t.inputType)||void 0===i?void 0:i.toLowerCase())?t.data.subFields.forEach((t=>{e.push({name:t.name,isValid:this.setInitialValidStatus(t)})})):e.push({name:t.name,isValid:this.setInitialValidStatus(t)}),e}),[]),this.listOfInputValues=this.listOfInputs.reduce(((e,t)=>{var i;const r=null===(i=t.inputType)||void 0===i?void 0:i.toLowerCase();return"togglecheckbox"===r&&t.data.subFields.forEach((t=>{var i;e.push({name:t.name,value:"checkbox"==(null===(i=t.inputType)||void 0===i?void 0:i.toLowerCase())?"false":null,isDuplicate:t.isDuplicateInput||!1,type:"togglecheckbox"===r?"togglecheckbox":null})})),e.push({name:t.name,value:"checkbox"===r||"togglecheckbox"===r?"false":null,isDuplicate:t.isDuplicateInput||!1,type:"checkboxgroup"===r?"checkboxgroup":"togglecheckbox"===r?"toggle":null}),e}),[]),this.btag&&this.addBtagValue(),this.listOfActions=e.content.actions.map((e=>e)),this.registrationID=e.content.registrationID,this.registrationStep=e.content.step,this.listOfActions.some((e=>"/register"==e))&&(this.lastStep=this.registrationStep),this.listOfActions.some((e=>"/Consents"==e))){if(this.isConsentReady)return this.listOfInputValidity.find((e=>"Consents"===e.name)).isValid=!1,void(this.isFormValid=!this.getInvalidStatus(this.listOfInputValidity));this.listOfInputValidity.push({name:"Consents",isValid:!1}),this.isConsentReady=!0}else this.isConsentReady=!1;var t;this.translationUrl?(t=this.translationUrl,new Promise((e=>{fetch(t).then((e=>e.json())).then((t=>{Object.keys(t).forEach((e=>{for(let i in t[e])mc[e][i]=t[e][i]})),e(!0)}))}))).then((()=>{this.listOfInputs.forEach((e=>{var t,i;return this.addTranslation(e),"togglecheckbox"===(null===(t=e.inputType)||void 0===t?void 0:t.toLowerCase())&&e.data.subFields.forEach((e=>this.addTranslation(e))),"checkboxgroup"===(null===(i=e.inputType)||void 0===i?void 0:i.toLowerCase())&&(this.addTranslation(e),e.data.subFields.forEach((e=>this.addTranslation(e)))),e}))})).catch((e=>{console.error("Failed to fetch translations:",e)})).finally((()=>{this.forms=[...this.forms,{[this.registrationStep]:this.listOfInputs}]})):this.forms=[...this.forms,{[this.registrationStep]:this.listOfInputs}],this.registrationStepsState.regId=this.registrationID,this.registrationStepsState[this.registrationStep]||(this.registrationStepsState[this.registrationStep]={fields:[],fieldsValidity:[],registerUserData:{},actions:[]})}addBtagValue(){const e=this.listOfInputs.find((e=>"btag"===e.name.toLowerCase()));e&&(e.defaultValue=this.btag);const t=this.listOfInputValues.find((e=>"btag"===e.name.toLowerCase()));t&&(t.value=this.btag)}addTranslation(e){mc[mc[this.language]?this.language:"en"][e.name]&&Object.keys(mc[this.language][e.name]).forEach((t=>{e[t]=mc[this.language][e.name][t]}))}setInitialValidStatus(e){var t,i,r,n;return"checkbox"==(null===(t=e.inputType)||void 0===t?void 0:t.toLowerCase())&&0==(null===(i=e.validate)||void 0===i?void 0:i.mandatory)||("checkbox"!==(null===(r=e.inputType)||void 0===r?void 0:r.toLowerCase())||!(null===(n=e.validate)||void 0===n?void 0:n.mandatory)||"true"===e.defaultValue)&&null!==e.defaultValue}stepChange(e){const t=parseInt(this.registrationStep.replace("Step",""));return"increment"===e?"Step"+(t+1):"decrement"===e?"Step"+(t-1):void 0}getInvalidStatus(e){return e.filter((e=>0==e.isValid)).length>0}renderForm(){return this.forms.map(((e,t)=>i("form",{action:".",id:`RegistrationForm${this.registrationStep}`,class:"registration__form "+(this.registrationStep!==`Step${t+1}`?"hidden":""),ref:e=>this.form=e,onClick:this.handleInitialClick},e[this.registrationStep]&&e[this.registrationStep].map((e=>i("general-input",{type:e.inputType,name:e.name,displayName:e.displayName,validation:e.validate,action:e.action||null,options:e.data?"checkboxgroup"==e.inputType.toLowerCase()||"togglecheckbox"==e.inputType.toLowerCase()?e.data.subFields:e.data.values:[],defaultValue:e.defaultValue,autofilled:e.autofill,emitValue:this.emitValue,language:this.language,isDuplicateInput:e.isDuplicateInput,"client-styling":this.clientStyling,tooltip:e.tooltip,placeholder:null==e.placeholder?"":e.placeholder,dateFormat:this.dateFormat,"translation-url":this.translationUrl,emitOnClick:this.emitOnClick,onClick:this.handleInitialClick}))),this.isConsentReady&&this.renderConsents(),this.buttonInsideForm&&this.renderButtons(),i("div",{class:"registration__wrapper--flex"},i("p",{class:"registration__error-message",innerHTML:this.errorMessage})))))}renderConsents(){return i("div",{class:"consentsContainer"},i("player-consents",{endpoint:this.endpoint}))}renderButtons(){return i("div",{class:"registration__buttons-wrapper "+(this.autofilled?"registration__buttons-wrapper--autofilled":"")},this.isLoadingPOST&&i("slot",{name:"spinner"})&&i("svg",{class:"spinner",viewBox:"0 0 50 50"},i("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none","stroke-width":"5"})),!this.isLoadingPOST&&i("button",{class:"registration__button registration__button--next "+(this.isFormValid?"":"registration__button--disabled"),type:"submit",form:`RegistrationForm${this.registrationStep}`,onClick:e=>this.nextHandler(e),disabled:!this.isFormValid},pc(this.lastStep===this.registrationStep?"doneButton":"nextButton",this.language)),i("button",{class:"registration__button registration__button--back "+("Step1"==this.registrationStep?"registration__button--first-step":""),onClick:e=>this.backHandler(e)},pc("backButton",this.language)))}render(){return this.isLoading?i("p",null,"Please wait, loading ..."):i("div",{class:`registration registration__${this.registrationStep}`},this.renderForm(),!this.buttonInsideForm&&this.renderButtons())}get host(){return r(this)}static get watchers(){return{registrationStep:["sendStep"],clientStyling:["handleStylingChange"],clientStylingUrl:["handleStylingUrlChange"],forms:["setFormValidity"],btag:["addBtag"]}}};vd.style='*,\n*::before,\n*::after {\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n}\n\n.registration__form.hidden {\n display: none;\n}\n\n.registration {\n font-family: "Roboto";\n font-style: normal;\n font-family: sans-serif;\n display: flex;\n flex-direction: column;\n gap: 24px;\n width: 100%;\n height: 100%;\n container-type: inline-size;\n}\n.registration__wrapper {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.registration__error-message {\n color: var(--emw--color-error, var(--emw--color-red, #ed0909));\n font-size: 13px;\n display: block;\n justify-content: center;\n text-align: center;\n}\n.registration__form {\n display: grid;\n grid-template-columns: repeat(1, 1fr);\n gap: 40px;\n justify-items: stretch;\n align-content: flex-start;\n overflow: auto;\n width: 100%;\n height: 100%;\n}\n.registration__buttons-wrapper {\n display: flex;\n flex-direction: column;\n justify-content: space-around;\n align-items: center;\n position: relative;\n}\n.registration__button {\n border-radius: 5px;\n background: var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));\n border: 1px solid var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));\n color: var(--emw--button-typography, var(--emw--color-white, #FFFFFF));\n text-transform: uppercase;\n font-size: 20px;\n height: 44px;\n width: 100%;\n margin: 0px auto;\n padding: 10px 20px;\n font-weight: normal;\n box-shadow: none;\n cursor: pointer;\n}\n.registration__button--disabled {\n background: var(--emw--color-gray-100, #E6E6E6);\n border: 1px solid var(--emw--color-gray-150, #828282);\n pointer-events: none;\n box-shadow: none;\n}\n.registration__button--first-step {\n display: none;\n}\n\n@container (min-width: 450px) {\n .registration__form {\n grid-template-columns: repeat(2, 1fr);\n }\n .registration__buttons-wrapper {\n flex-direction: row-reverse;\n gap: 15px;\n }\n}\n.spinner {\n animation: rotate 2s linear infinite;\n z-index: 2;\n position: absolute;\n top: 50%;\n left: 50%;\n margin: -25px 0 0 -25px;\n width: 50px;\n height: 50px;\n}\n.spinner .path {\n stroke: var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));\n stroke-linecap: round;\n animation: dash 1.5s ease-in-out infinite;\n}\n\n@keyframes rotate {\n 100% {\n transform: rotate(360deg);\n }\n}\n@keyframes dash {\n 0% {\n stroke-dasharray: 1, 150;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -35;\n }\n 100% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -124;\n }\n}';const gd=class{constructor(i){e(this,i),this.sendValidityState=t(this,"sendValidityState",7),this.sendInputValue=t(this,"sendInputValue",7),this.validationPattern="",this.touched=!1,this.handleInput=e=>{this.value=e.target.value,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout((()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}),500)},this.handleBlur=()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0},this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(e,t){e!==t&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(e){this.sendValidityState.emit(e)}emitValueHandler(e){1==e&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(e){this.sendInputValue.emit(e)}handleClickOutside(e){e.composedPath()[0]!==this.tooltipIconReference&&e.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}connectedCallback(){this.validationPattern=this.setPattern()}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.isValid=this.setValidity(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}setValidity(){return this.inputReference.validity.valid}setPattern(){var e,t;if((null===(e=this.validation.custom)||void 0===e?void 0:e.length)>0)return null===(t=this.validation.custom.find((e=>"regex"===e.rule)))||void 0===t?void 0:t.pattern}setErrorMessage(){var e,t;if(this.inputReference.validity.patternMismatch){const i=null===(e=this.validation.custom.find((e=>"regex"===e.rule)))||void 0===e?void 0:e.errorKey,r=null===(t=this.validation.custom.find((e=>"regex"===e.rule)))||void 0===t?void 0:t.errorMessage;return s(`${i}`,this.language)?s(`${i}`,this.language):r}return this.inputReference.validity.rangeUnderflow||this.inputReference.validity.rangeOverflow?s("numberLengthError",this.language,{values:{min:this.validation.min,max:this.validation.max}}):this.inputReference.validity.valueMissing?s("requiredError",this.language):void 0}renderTooltip(){return this.showTooltip?i("div",{class:"number__tooltip "+(this.showTooltip?"visible":""),ref:e=>this.tooltipReference=e,innerHTML:this.tooltip}):null}render(){let e="";return this.touched&&(e=1==this.isValid||null==this.isValid?"":"text__input--invalid"),i("div",{key:"841265bba6b75cc61a0eac1450c3f5aa5f917a2e",class:`number__wrapper ${this.autofilled?"number__wrapper--autofilled":""} ${this.name}__input`,ref:e=>this.stylingContainer=e},i("div",{key:"645c7817cf5a0bdc352de9d8c0698fde235aa6d3",class:"number__wrapper--flex"},i("label",{key:"3343cbbb8482b71cd152161a8d422f318f07f3fe",class:"number__label "+(this.validation.mandatory?"number__label--required":""),htmlFor:`${this.name}__input`},this.displayName),i("div",{key:"1f3341b2127095870610fc0e0b4b5d220c5d2e2c",class:"number__wrapper--relative"},this.tooltip&&i("img",{key:"8bbe2fe9f62347cbcd37b753d4a1b0718dc39091",class:"number__tooltip-icon",src:a,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),i("input",{key:"100401abdc33069f34e27e0807c9f31ddf7e42ec",ref:e=>this.inputReference=e,type:"number",value:this.defaultValue,readOnly:this.autofilled,id:`${this.name}__input`,class:`number__input ${e}`,pattern:this.validationPattern,placeholder:`${this.placeholder}`,required:this.validation.mandatory,max:this.validation.max,min:this.validation.min,onInput:this.handleInput,onBlur:this.handleBlur}),i("small",{key:"db1e0043bb9b6de2ad8e18f49f96152b9451b93c",class:"number__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};gd.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.number{font-family:"Roboto";font-style:normal}.number__wrapper{position:relative;width:100%}.number__wrapper--autofilled{pointer-events:none}.number__wrapper--autofilled .number__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.number__wrapper--autofilled .number__input{color:var(--emw--color-black, #000000)}.number__wrapper--flex{display:flex;gap:5px}.number__wrapper--relative{position:relative}.number__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.number__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));margin-left:2px}.number__input{font-family:inherit;border-radius:5px;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px;position:relative;-moz-appearance:textfield;}.number__input:focus{outline-color:#3E3E3E}.number__input::-webkit-outer-spin-button,.number__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.number__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.number__input::placeholder{color:#979797}.number__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.number__tooltip-icon{width:16px;height:auto}.number__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.number__tooltip.visible{opacity:1}';const Ed=class{constructor(i){e(this,i),this.sendOriginalValidityState=t(this,"sendOriginalValidityState",7),this.sendValidityState=t(this,"sendValidityState",7),this.sendInputValue=t(this,"sendInputValue",7),this.touched=!1,this.originalValid=!1,this.validationPattern="",this.duplicateInputValue=null,this.handleInput=e=>{this.value=e.target.value,this.calculateComplexity(this.value),this.showPopup=!0,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout((()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}),500)},this.handleRevealField=e=>{e.stopPropagation(),window.postMessage({type:`registrationShow${this.name}`},window.location.href)},this.handleBlur=e=>{this.value=e.target.value,this.showPopup=!1,this.touched=!0,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage()},this.handleFocus=()=>{this.showPopup=!0,this.calculateComplexity(this.value)},this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.clientStyling="",this.isValid=void 0,this.errorMessage=void 0,this.limitStylingAppends=!1,this.showTooltip=!1,this.passwordComplexity=void 0,this.showPopup=void 0,this.value=""}handleStylingChange(e,t){e!==t&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}valueChanged(){this.isDuplicateInput||(this.calculateComplexity(this.value),this.sendOriginalValidityState.emit({name:this.name,valid:this.setValidity()}))}emitValueHandler(e){1==e&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"duplicate"})}validityStateHandler(e){this.sendValidityState.emit(e)}valueHandler(e){this.sendInputValue.emit(e)}originalValidityChangedHandler(e){this.isDuplicateInput&&(e.detail.valid?(this.originalValid=!0,this.isValid=this.setValidity()):(this.originalValid=!1,this.isValid=!1,""!==this.value&&(this.errorMessage=this.setErrorMessage())))}valueChangedHandler(e){this.isDuplicateInput&&this.name===e.detail.name+"Duplicate"&&(this.duplicateInputValue=e.detail.value,this.touched&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())),this.name===e.detail.name+"Duplicate"&&this.name.replace("Duplicate","")===e.detail.name&&!0===this.touched&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())}handleClickOutside(e){e.composedPath()[0]!==this.tooltipIconReference&&e.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.inputReference=this.element.shadowRoot.querySelector("input"),this.passwordButton=this.element.shadowRoot.querySelector("vaadin-password-field-button"),this.passwordButton.tabIndex=-1,this.passwordButton.addEventListener("click",(e=>{this.handleRevealField(e)})),this.defaultValue&&(this.value=this.defaultValue,this.calculateComplexity(this.value),this.valueHandler({name:this.name,value:this.value}),this.isDuplicateInput&&(this.duplicateInputValue=this.defaultValue,this.touched=!0)),this.isValid=this.setValidity()}disconnectedCallback(){this.passwordButton.removeEventListener("click",this.handleRevealField)}calculateComplexity(e){this.passwordComplexity=this.validation.custom.filter((e=>"regex"===e.rule)).map((t=>{const i=new RegExp(t.pattern).test(e);return{rule:t.displayName,ruleKey:t.errorKey,passed:i}}))}setValidity(){var e,t;return(!this.isDuplicateInput||this.duplicateInputValue===this.value)&&!!(null===(e=this.passwordComplexity)||void 0===e?void 0:e.every((e=>e.passed)))&&(null===(t=this.inputReference)||void 0===t?void 0:t.validity.valid)}setPattern(){var e,t;if((null===(e=this.validation.custom)||void 0===e?void 0:e.length)>0)return null===(t=this.validation.custom.find((e=>"regex"===e.rule)))||void 0===t?void 0:t.pattern}setErrorMessage(){var e,t,i,r;if(this.isDuplicateInput&&!this.originalValid)return s("invalidOriginalPasswordError",this.language);if(this.inputReference.validity.patternMismatch){const i=null===(e=this.validation.custom.find((e=>"regex"===e.rule)))||void 0===e?void 0:e.errorKey,r=null===(t=this.validation.custom.find((e=>"regex"===e.rule)))||void 0===t?void 0:t.errorMessage;return s(`${i}`,this.language)?s(`${i}`,this.language):r}if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return s("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(this.inputReference.validity.valueMissing)return s("requiredError",this.language);if(this.isDuplicateInput&&this.duplicateInputValue!==this.value){const e=null===(i=this.validation.custom.find((e=>"duplicate-input"===e.rule)))||void 0===i?void 0:i.errorKey,t=null===(r=this.validation.custom.find((e=>"duplicate-input"===e.rule)))||void 0===r?void 0:r.errorMessage;return s(`${e}`,this.language)?s(`${e}`,this.language):t}}renderTooltip(){return this.showTooltip?i("div",{class:"password__tooltip "+(this.showTooltip?"visible":""),ref:e=>this.tooltipReference=e,innerHTML:this.tooltip}):null}renderComplexityPopup(){const e=this.passwordComplexity.length,t=this.passwordComplexity.filter((e=>e.passed)).length/e,r=this.passwordComplexity.every((e=>e.passed));return i("div",{class:"password__complexity "+(this.showPopup?"":"password__complexity--hidden")},i("div",{class:"password__complexity--strength"},i("p",{class:"password__complexity--text"},s("passwordStrength",this.language)," ",i("span",{class:"password__complexity--text-bold"},s(r?"passwordStrengthStrong":"passwordStrengthWeak",this.language))),i("meter",{value:t,min:"0",max:"1"})),i("div",null,this.passwordComplexity.map(((e,t)=>i("div",{key:t},i("input",{class:"password__complexity--checkbox",type:"checkbox",checked:e.passed,disabled:!0}),i("span",null,s(`${e.ruleKey}`,this.language)?s(`${e.ruleKey}`,this.language):e.rule))))))}render(){let e="";return this.touched&&(e=1==this.isValid||null==this.isValid?"":"text__input--invalid"),i("div",{key:"be707a0330de2fa306f4326a5b374d613e6633f5",class:`password__wrapper ${this.autofilled?"password__wrapper--autofilled":""} ${this.name}__input`,ref:e=>this.stylingContainer=e},i("div",{key:"47a7b4a114f9ccf3c8e759f2c8e933b492053a18",class:"password__wrapper--flex"},i("label",{key:"b51e602d00798e381eea83258812e70a6fe816a0",class:"password__label "+(this.validation.mandatory?"password__label--required":""),htmlFor:`${this.name}__input`},this.displayName),i("div",{key:"585a9dd0a701429b18d767dd19392ad2373e8ce3",class:"password__wrapper--relative"},this.tooltip&&i("img",{key:"637040e9773662b80b36b2d787511778ea12daf8",class:"password__tooltip-icon",src:a,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),i("vaadin-password-field",{key:"1626a68548b795aeb709e5a3a7950f7a5017c787",type:"password",id:`${this.name}__input`,class:`password__input ${e}`,name:this.name,readOnly:this.autofilled,value:this.defaultValue,required:this.validation.mandatory,maxlength:this.validation.maxLength,minlength:this.validation.minLength,pattern:this.validationPattern,placeholder:`${this.placeholder}`,onInput:this.handleInput,onBlur:this.handleBlur,onFocus:this.handleFocus}),i("small",{key:"791e90e36bf2d67b2a2e68649dcf3052851f2769",class:"password__error-message"},this.errorMessage),this.passwordComplexity&&this.showPopup&&!this.isDuplicateInput&&this.renderComplexityPopup())}get element(){return r(this)}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],value:["valueChanged"],emitValue:["emitValueHandler"]}}};Ed.style='*,\n*::before,\n*::after {\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n}\n\n.password {\n font-family: "Roboto";\n font-style: normal;\n}\n.password__wrapper {\n position: relative;\n width: 100%;\n display: flex;\n flex-direction: column;\n gap: 5px;\n container-type: inline-size;\n}\n.password__wrapper--autofilled {\n pointer-events: none;\n}\n.password__wrapper--autofilled .password__label {\n color: var(--emw--registration-typography, var(--emw--color-black, #000000));\n}\n.password__wrapper--autofilled .password__input::part(input-field) {\n color: var(--emw--color-black, #000000);\n}\n.password__wrapper--flex {\n display: flex;\n gap: 5px;\n}\n.password__wrapper--relative {\n position: relative;\n}\n.password__label {\n font-family: inherit;\n font-style: normal;\n font-weight: 500;\n font-size: 16px;\n line-height: 20px;\n color: var(--emw--registration-typography, var(--emw--color-black, #000000));\n}\n.password__label--required::after {\n content: "*";\n font-family: inherit;\n color: var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));\n margin-left: 2px;\n}\n.password__input {\n width: inherit;\n border: none;\n}\n.password__input[focused]::part(input-field) {\n border-color: var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));\n}\n.password__input[invalid]::part(input-field) {\n border: 1px solid var(--emw--color-error, var(--emw--color-red, #ed0909));\n}\n.password__input::part(input-field) {\n border-radius: 4px;\n background-color: var(--emw--color-white, #FFFFFF);\n border: 1px solid var(--emw--color-gray-100, #E6E6E6);\n color: var(--emw--color-black, #000000);\n background-color: var(--emw--color-white, #FFFFFF);\n font-family: inherit;\n font-style: normal;\n font-weight: 300;\n font-size: 16px;\n line-height: 1.5;\n position: relative;\n margin-bottom: unset;\n height: 44px;\n padding: 0;\n width: 100%;\n}\n.password__input::part(reveal-button) {\n position: relative;\n right: 10px;\n}\n.password__input::part(reveal-button)::before {\n color: var(--emw--registration-typography, var(--emw--color-black, #000000));\n}\n.password__input > input {\n padding: 5px 15px;\n}\n.password__input > input:placeholder-shown {\n color: var(--emw--color-gray-150, #828282);\n}\n.password__error-message {\n position: absolute;\n top: calc(100% + 5px);\n left: 0;\n color: var(--emw--color-error, var(--emw--color-red, #ed0909));\n}\n.password__complexity {\n height: 150px;\n position: relative;\n padding: 10px;\n display: flex;\n flex-direction: column;\n gap: 20px;\n justify-content: center;\n margin-top: 20px;\n font-weight: 300;\n background: var(--emw--color-white, #FFFFFF);\n -webkit-border-radius: 5px;\n -moz-border-radius: 5px;\n border-radius: 5px;\n border: 1px solid #B0B0B0;\n box-sizing: content-box;\n /* works only in this order */\n}\n.password__complexity meter {\n border-color: transparent; /* Needed for Safari */\n}\n.password__complexity meter[value="1"]::-moz-meter-bar {\n background-color: var(--emw--color-valid, #48952a);\n}\n.password__complexity meter[value="1"]::-webkit-meter-optimum-value {\n background-color: var(--emw--color-valid, #48952a);\n}\n.password__complexity meter:not([value="1"])::-moz-meter-bar {\n background-color: var(--emw--color-error, #FD2839);\n}\n.password__complexity meter:not([value="1"])::-webkit-meter-optimum-value {\n background-color: var(--emw--color-error, #FD2839);\n}\n.password__complexity--strength {\n display: flex;\n justify-content: space-evenly;\n align-items: center;\n}\n.password__complexity--strength meter::-moz-meter-bar { /* Firefox Pseudo Class */\n background: #B0B0B0;\n}\n.password__complexity--hidden {\n display: none;\n}\n.password__complexity--text-bold {\n font-weight: 500;\n}\n.password__complexity--checkbox {\n margin-right: 5px;\n}\n.password__complexity:after {\n content: "";\n position: absolute;\n width: 25px;\n height: 25px;\n border-top: 1px solid var(--emw--color-gray-150, #828282);\n border-right: 0 solid var(--emw--color-gray-150, #828282);\n border-left: 1px solid var(--emw--color-gray-150, #828282);\n border-bottom: 0 solid var(--emw--color-gray-150, #828282);\n bottom: 92%;\n left: 50%;\n margin-left: -25px;\n transform: rotate(45deg);\n margin-top: -25px;\n background-color: var(--emw--color-white, #FFFFFF);\n}\n@container (max-width: 300px) {\n .password__complexity {\n height: 190px;\n }\n .password__complexity:after {\n width: 14px;\n height: 14px;\n bottom: 96%;\n left: 57%;\n }\n}\n.password__tooltip-icon {\n width: 16px;\n height: auto;\n}\n.password__tooltip {\n position: absolute;\n top: 0;\n left: 20px;\n background-color: var(--emw--color-white, #FFFFFF);\n border: 1px solid var(--emw--color-gray-150, #828282);\n color: #2B2D3F;\n padding: 10px;\n border-radius: 5px;\n opacity: 0;\n transition: opacity 0.3s ease-in-out;\n z-index: 10;\n}\n.password__tooltip.visible {\n opacity: 1;\n}';const bd=class{constructor(i){e(this,i),this.sendInputValue=t(this,"sendInputValue",7),this.sendValidityState=t(this,"sendValidityState",7),this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},this.name=void 0,this.displayName=void 0,this.optionsGroup=void 0,this.validation=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(e,t){e!==t&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(e){1==e&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(e){this.sendInputValue.emit(e)}validityStateHandler(e){this.sendValidityState.emit(e)}handleClickOutside(e){e.composedPath()[0]!==this.tooltipIconReference&&e.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}handleClick(e){this.value=e.target.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return s("requiredError",this.language)}renderTooltip(){return this.showTooltip?i("div",{class:"radio__tooltip "+(this.showTooltip?"visible":""),ref:e=>this.tooltipReference=e,innerHTML:this.tooltip}):null}render(){return i("fieldset",{key:"29ff8fcc910622397750532629ac0c202c9726ba",class:`radio__fieldset ${this.name}__input`,ref:e=>this.stylingContainer=e},i("legend",{key:"cdab5b331863f3d31aab50c1d95b5a8845d53329",class:"radio__legend"},this.displayName,":"),this.optionsGroup.map((e=>i("div",{class:"radio__wrapper"},i("input",{type:"radio",class:"radio__input",id:`${e.label}__input`,ref:e=>this.inputReference=e,value:e.value,name:this.name,required:this.validation.mandatory,onClick:e=>this.handleClick(e)}),i("label",{htmlFor:`${e.label}__input`},e.label)))),i("small",{key:"bd6cd89510e7ace1348b391f3ce9ba334a03e695",class:"radio__error-message"},this.errorMessage),this.tooltip&&i("img",{key:"27036c51c89612dbb87e5248355d3a5466c49705",class:"radio__tooltip-icon",src:a,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};bd.style="*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.radio__fieldset{border:none;position:relative}.radio__wrapper{display:flex;gap:5px}.radio__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.radio__tooltip-icon{position:absolute;right:0;bottom:10px}.radio__tooltip{position:absolute;bottom:35px;right:10px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.radio__tooltip.visible{opacity:1}";const yd=class{constructor(i){e(this,i),this.sendValidityState=t(this,"sendValidityState",7),this.sendInputValue=t(this,"sendInputValue",7),this.touched=!1,this.handleChange=e=>{this.touched=!0;const t=e.target.value,i=this.options.find((e=>e.value.toLowerCase()===t.toLowerCase()));this.value=i?i.value:t,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},this.handleBlur=e=>{this.value=e.target.value,this.touched=!0,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name})},this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.action=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.options=[],this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(e,t){e!==t&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(e){this.sendValidityState.emit(e)}emitValueHandler(e){1==e&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(e){this.sendInputValue.emit(e)}handleClickOutside(e){e.composedPath()[0]!==this.tooltipIconReference&&e.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}connectedCallback(){this.displayedOptions=this.options.map((e=>({label:e.label,value:e.value.toUpperCase()})))}componentWillLoad(){if(this.action&&!this.options.length&&"GET"==this.action.split(" ")[0]){const e=this.action.split(" ")[1];return this.getOptions(e).then((e=>{const t=Object.keys(e)[0];this.displayedOptions=e[t].map((e=>({label:e.Name,value:e.Alpha2Code})))}))}}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.inputReference=this.element.shadowRoot.querySelector("input"),this.isValid=this.setValidity(),this.defaultValue&&(this.value=this.defaultValue.toUpperCase(),this.valueHandler({name:this.name,value:this.value}))}getOptions(e){const t=new URL(e);return new Promise(((e,i)=>{fetch(t.href).then((e=>e.json())).then((t=>{e(t)})).catch((e=>{console.error(e),i(e)}))}))}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return s("requiredError",this.language)}renderTooltip(){return this.showTooltip?i("div",{class:"select__tooltip "+(this.showTooltip?"visible":""),ref:e=>this.tooltipReference=e,innerHTML:this.tooltip}):null}render(){let e="";return this.touched&&(e=1==this.isValid||null==this.isValid?"":"text__input--invalid"),i("div",{key:"46061c64a7cb7dad5b2ca1cd38e27b2ea12e88ce",class:`select__wrapper ${this.autofilled?"select__wrapper--autofilled":""} ${this.name}__input`,ref:e=>this.stylingContainer=e},i("div",{key:"cebc0fad817eff49669c4df47d47a4d97c5db317",class:"select__wrapper--flex"},i("label",{key:"a5360d9342ca9c446bdff6b84a717aa47fa71a4f",class:"select__label",htmlFor:`${this.name}__input`},`${this.displayName} ${this.validation.mandatory?"*":""}`),i("div",{key:"78d699e2a57122dd74f4d414211b586d19f030e7",class:"select__wrapper--relative"},this.tooltip&&i("img",{key:"e6fb14604b078a0b0f284d9234262c76e4c581f8",class:"select__tooltip-icon",src:a,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),i("vaadin-combo-box",{key:"91c86ee20ee639ba0e4338ba5501621486c94fa4",name:this.name,id:`${this.name}__input`,class:`select__input ${e} ${this.autofilled?"select__input--autofilled":""}`,"item-label-path":"label","item-value-path":"value",readOnly:this.autofilled,required:this.validation.mandatory,value:this.defaultValue,placeholder:`${this.placeholder}`,items:this.displayedOptions,onChange:this.handleChange,onBlur:this.handleBlur}),i("small",{key:"18a6172cb9566f000d5f397d759eb95a06fbc7b4",class:"select__error-message"},this.errorMessage))}get element(){return r(this)}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};yd.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}:host{height:100%}vaadin-combo-box>input{background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--registration-typography, var(--emw--color-black, #000000));font-weight:300;font-size:16px;-webkit-font-smoothing:initial;}.select{font-family:"Roboto";font-style:normal}.select__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.select__wrapper--autofilled{pointer-events:none}.select__wrapper--autofilled .select__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.select__wrapper--autofilled .select__input::part(input-field){color:var(--emw--color-black, #000000)}.select__wrapper--flex{display:flex;gap:5px}.select__wrapper--relative{position:relative}.select__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.select__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));margin-left:2px}.select__input{border:none;width:inherit;position:relative}.select__input[focused]::part(input-field){border-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.select__input[invalid]::part(input-field){border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.select__input vaadin-date-picker-overlay-content>vaadin-button{color:var(--emw--color-black, #000000)}.select__input::part(input-field){border-radius:4px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);font-family:inherit;font-style:normal;font-size:16px;font-weight:300;line-height:1.5;padding:0;height:44px}.select__input::part(toggle-button){position:relative;right:10px}.select__input>input{padding:5px 15px}.select__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.select__tooltip-icon{width:16px;height:auto}.select__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.select__tooltip.visible{opacity:1}';const wd=class{constructor(i){e(this,i),this.sendValidityState=t(this,"sendValidityState",7),this.sendInputValue=t(this,"sendInputValue",7),this.validationPattern="",this.touched=!1,this.handleInput=e=>{this.phoneValue=e.target.value,this.value={prefix:this.prefixValue,phone:this.phoneValue},this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout((()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}),500)},this.handleBlur=()=>{this.isValid=this.setValidity(),this.touched=!0,this.errorMessage=this.setErrorMessage()},this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.showLabels=void 0,this.action=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.isValid=void 0,this.errorMessage=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(e,t){e!==t&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value,type:"tel"})}validityStateHandler(e){this.sendValidityState.emit(e)}emitValueHandler(e){1==e&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"tel"})}valueHandler(e){this.sendInputValue.emit(e)}handleClickOutside(e){e.composedPath()[0]!==this.tooltipIconReference&&e.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}connectedCallback(){this.validationPattern=this.setPattern(),this.defaultValue&&(this.prefixValue=this.defaultValue.prefix?this.defaultValue.prefix:this.defaultValue,this.phoneValue=this.defaultValue.phone||null)}componentWillLoad(){if(this.action&&"GET"==this.action.split(" ")[0]){const e=this.action.split(" ")[1];return this.getPhoneCodes(e).then((e=>{this.phoneCodesOptions=e.phoneCodes.map((e=>"object"==typeof e&&e.Prefix?{label:e.Prefix,value:e.Prefix}:{label:e,value:e}))}))}}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.isValid=this.setValidity(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value,type:"tel"}))}getPhoneCodes(e){const t=new URL(e);return new Promise(((e,i)=>{fetch(t.href).then((e=>e.json())).then((t=>{e(t)})).catch((e=>{console.error(e),i(e)}))}))}handlePrefixInput(e){this.prefixValue=e.target.value,this.value={prefix:this.prefixValue,phone:this.phoneValue},this.emitValueHandler(!0)}setValidity(){return this.inputReference.validity.valid}setPattern(){var e,t;if((null===(e=this.validation.custom)||void 0===e?void 0:e.length)>0)return null===(t=this.validation.custom.find((e=>"regex"===e.rule)))||void 0===t?void 0:t.pattern}setErrorMessage(){var e,t;if(this.inputReference.validity.patternMismatch){const i=null===(e=this.validation.custom.find((e=>"regex"===e.rule)))||void 0===e?void 0:e.errorKey,r=null===(t=this.validation.custom.find((e=>"regex"===e.rule)))||void 0===t?void 0:t.errorMessage;return s(`${i}`,this.language)?s(`${i}`,this.language):r}return this.inputReference.validity.tooShort||this.inputReference.validity.tooLong?s("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}}):this.inputReference.validity.valueMissing?s("requiredError",this.language):void 0}renderTooltip(){return this.showTooltip?i("div",{class:"tel__tooltip "+(this.showTooltip?"visible":""),ref:e=>this.tooltipReference=e,innerHTML:this.tooltip}):null}render(){let e="";return this.touched&&(e=1==this.isValid||null==this.isValid?"":"text__input--invalid"),i("div",{key:"a5804fccd849a4e8f2deb346479fa782113ee4d8",class:`tel__wrapper ${this.autofilled?"tel__wrapper--autofilled":""} ${this.name}__input`,ref:e=>this.stylingContainer=e},i("div",{key:"403490057cb5a5ae95b850ee7e1350d354668566",class:"tel__wrapper--flex-label"},i("label",{key:"64c14d728022fdf959c7710fa1c35c8e340be0cc",class:"tel__label "+(this.validation.mandatory?"tel__label--required":""),htmlFor:`${this.name}__input`},this.displayName),i("div",{key:"14be3f2d3fd1352f4b69fee63399b03b99dd3338",class:"tel__wrapper--relative"},this.tooltip&&i("img",{key:"b7e3f1d243877bc0c8911894bf4a624fc647050e",class:"tel__tooltip-icon",src:a,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),i("div",{key:"43e55c0e386b59b3c86d59ca5919f95c387a2049",class:`tel__wrapper--flex ${e}`},i("vaadin-combo-box",{key:"9c7ba7049f325eeba05b6bfac98d10093a2342fc",class:"tel__prefix",items:this.phoneCodesOptions,value:this.prefixValue,readOnly:this.autofilled,onChange:e=>this.handlePrefixInput(e)}),i("input",{key:"24b4723063ce7724c2599979457986f315e7a687",type:"tel",ref:e=>this.inputReference=e,id:`${this.name}__input`,readOnly:this.autofilled,class:"tel__input",value:this.phoneValue,placeholder:`${this.placeholder}`,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.validation.maxLength,pattern:this.validationPattern,onInput:this.handleInput,onBlur:this.handleBlur})),i("small",{key:"d95f2dc869e4ba7ecfc7ff6b0122f5dad3c34f27",class:"tel__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};wd.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.tel{font-family:"Roboto";font-style:normal}.tel__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.tel__wrapper--autofilled{pointer-events:none}.tel__wrapper--autofilled .tel__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.tel__wrapper--autofilled .tel__input::part(input-field){color:var(--emw--color-black, #000000)}.tel__wrapper--flex{width:inherit;display:flex;align-items:center;border-radius:4px;border:1px solid var(--emw--color-gray-100, #E6E6E6);background-color:var(--emw--color-white, #FFFFFF);overflow:hidden}.tel__wrapper--flex:focus-within{border-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.tel__wrapper--flex--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.tel__wrapper--flex-label{display:flex;gap:5px}.tel__wrapper--flex--relative{position:relative}.tel__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.tel__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));margin-left:2px}.tel__prefix{--vaadin-field-default-width:90px}.tel__prefix[focus]{outline:none}.tel__prefix::part(input-field){border-radius:0 5px 5px 0;background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--color-black, #000000);font-family:inherit;font-style:normal;font-weight:300;font-size:16px;line-height:1.5;border:none;border-right:2px solid #DDE0EE;border-image-source:linear-gradient(to bottom, rgba(221, 224, 238, 0) 25%, rgb(221, 224, 238) 25%, rgb(221, 224, 238) 75%, rgba(221, 224, 238, 0) 75%);border-image-slice:1;border-image-repeat:round}.tel__prefix::part(input-field):hover{background-color:var(--emw--color-white, #FFFFFF)}.tel__prefix::part(toggle-button){color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.tel__input{font-family:inherit;border-radius:5px;width:100%;color:var(--emw--registration-typography, var(--emw--color-black, #000000));background-color:var(--emw--color-white, #FFFFFF);border:none;width:inherit;position:relative;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px;height:42px;-moz-appearance:textfield;}.tel__input:focus{outline:none}.tel__input::-webkit-outer-spin-button,.tel__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.tel__input::placeholder{color:var(--emw--color-gray-150, #979797)}.tel__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.tel__tooltip-icon{width:16px;height:auto}.tel__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.tel__tooltip.visible{opacity:1}';const kd=class{constructor(i){e(this,i),this.sendValidityState=t(this,"sendValidityState",7),this.sendInputValue=t(this,"sendInputValue",7),this.value="",this.validationPattern="",this.duplicateInputValue=null,this.touched=!1,this.handleInput=e=>{this.value=e.target.value,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout((()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValueHandler(!0)}),500)},this.handleBlur=e=>{this.value=e.target.value,this.touched=!0,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name})},this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.checkValidity=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.clientStyling="",this.isValid=void 0,this.errorMessage="",this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(e,t){e!==t&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(e){1==e&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(e){this.sendValidityState.emit(e)}valueHandler(e){this.sendInputValue.emit(e)}handleClickOutside(e){e.composedPath()[0]!==this.tooltipIconReference&&e.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}valueChangedHandler(e){this.isDuplicateInput&&this.name===e.detail.name+"Duplicate"&&(this.duplicateInputValue=e.detail.value,this.touched&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())),this.name===e.detail.name+"Duplicate"&&this.name.replace("Duplicate","")===e.detail.name&&!0===this.touched&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())}handleValidationChange(e){e.detail.field===this.name&&(this.validation=e.detail.validation,this.validationPattern=this.setPattern(),this.touched&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage()))}connectedCallback(){this.validationPattern=this.setPattern()}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}),this.isDuplicateInput&&(this.touched=!0)),this.isValid=this.setValidity()}setValidity(){var e;return(!this.isDuplicateInput||this.duplicateInputValue===this.value)&&(null===(e=this.inputReference)||void 0===e?void 0:e.validity.valid)&&null!=this.inputReference.value.match(this.validationPattern)}setPattern(){var e,t;if((null===(e=this.validation.custom)||void 0===e?void 0:e.length)>0)return null===(t=this.validation.custom.find((e=>"regex"===e.rule)))||void 0===t?void 0:t.pattern}setErrorMessage(){var e,t,i,r;if(null==this.inputReference.value.match(this.validationPattern)){const i=null===(e=this.validation.custom.find((e=>"regex"===e.rule)))||void 0===e?void 0:e.errorKey,r=null===(t=this.validation.custom.find((e=>"regex"===e.rule)))||void 0===t?void 0:t.errorMessage;return s(`${i}`,this.language)||r}if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return s("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(this.inputReference.validity.valueMissing)return s("requiredError",this.language);if(this.isDuplicateInput&&this.duplicateInputValue!==this.value){const e=null===(i=this.validation.custom.find((e=>"duplicate-input"===e.rule)))||void 0===i?void 0:i.errorKey,t=null===(r=this.validation.custom.find((e=>"duplicate-input"===e.rule)))||void 0===r?void 0:r.errorMessage;return s(`${e}`,this.language)?s(`${e}`,this.language):t}}renderTooltip(){return this.showTooltip?i("div",{class:"text__tooltip "+(this.showTooltip?"visible":""),ref:e=>this.tooltipReference=e,innerHTML:this.tooltip}):null}render(){let e="";return this.touched&&(e=1==this.isValid||null==this.isValid?"":"text__input--invalid"),i("div",{key:"3050f7be1581f0cd5b5e1ce708a789b5e7a54b03",class:`text__wrapper ${this.name}__input ${this.autofilled?"text__wrapper--autofilled":""}`,ref:e=>this.stylingContainer=e},i("div",{key:"9dcc93fb8c091c599269454ab21c03c2380ffef7",class:"text__wrapper--flex"},i("label",{key:"0054347b1a4de17ea60b898783de0ef6b42233ee",class:"text__label "+(this.validation.mandatory?"text__label--required":""),htmlFor:`${this.name}__input`},this.displayName),i("div",{key:"b4655608e397f8d2a8179c01521756bf87746ace",class:"text__wrapper--relative"},this.tooltip&&i("img",{key:"c71c1ca1175d11ec352eca5cff216bb244aa7895",class:"text__tooltip-icon",src:a,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),i("input",{key:"2df3c181c5ca725e121c0878a10ca257da7cdd34",name:this.name,id:`${this.name}__input`,value:this.defaultValue,type:"text",class:`text__input ${e}`,placeholder:`${this.placeholder}`,ref:e=>this.inputReference=e,readOnly:this.autofilled,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.validation.maxLength,onInput:this.handleInput,onBlur:this.handleBlur}),i("small",{key:"5785eb51774c9159e474fbdbd5be0c1ab2a57899",class:"text__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};kd.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.text{font-family:"Roboto";font-style:normal}.text__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px;height:100%}.text__wrapper--autofilled{pointer-events:none}.text__wrapper--autofilled .text__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.text__wrapper--autofilled .text__input::part(input-field){color:var(--emw--color-black, #000000)}.text__wrapper--flex{display:flex;gap:5px}.text__wrapper--relative{position:relative}.text__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.text__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));margin-left:2px}.text__input{font-family:inherit;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--color-black, #000000);border-radius:5px;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px}.text__input:focus{border:1px solid var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.text__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.text__input::placeholder{color:var(--emw--color-gray-150, #828282)}.text__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.text__tooltip-icon{width:16px;height:auto}.text__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.text__tooltip.visible{opacity:1}';const xd=class{constructor(i){e(this,i),this.sendValidityState=t(this,"sendValidityState",7),this.sendInputValue=t(this,"sendInputValue",7),this.callBackObject={},this.subFieldsObject={},this.value="",this.handleRevealField=(e,t)=>{e.stopPropagation(),window.postMessage({type:`registration${t}Clicked`},window.location.href)},this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},this.name=void 0,this.displayName=void 0,this.defaultValue="",this.options=void 0,this.autofilled=void 0,this.tooltip=void 0,this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1,this.showFields="true"===this.defaultValue}handleStylingChange(e,t){e!==t&&this.setClientStyling()}validityStateHandler(e){this.sendValidityState.emit(e)}valueHandler(e){this.sendInputValue.emit(e)}handleClickOutside(e){e.composedPath()[0]!==this.tooltipIconReference&&e.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){0!==this.options.length&&this.options.forEach((e=>{this.callBackObject[e.name]=t=>{this.handleRevealField(t,e.name)},this.subFieldsObject[e.name].addEventListener("click",this.callBackObject[e.name])}))}handleClick(){this.showFields=this.checkboxReference.checked,this.errorMessage=this.setErrorMessage(),this.isValid=this.setValidity(),this.valueHandler({name:this.name,value:this.checkboxReference.checked?"true":"false",type:"toggle"})}setValidity(){return this.checkboxReference.validity.valid}setErrorMessage(){if(this.checkboxReference.validity.valueMissing)return s("requiredError",this.language)}disconnectedCallback(){this.options.forEach((e=>{this.subFieldsObject[e.name].removeEventListener("click",this.callBackObject[e.name])}))}renderLabel(){return i("label",{class:"togglecheckbox__label",htmlFor:`${this.name}__input`},i("div",{class:"togglecheckbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}renderTooltip(){return this.showTooltip?i("div",{class:"togglecheckbox__tooltip "+(this.showTooltip?"visible":""),ref:e=>this.tooltipReference=e,innerHTML:this.tooltip}):null}render(){return i("div",{key:"d7084a7f82d45b3d1e7f8ae373b663b2aefdf5ec",class:`togglecheckbox__wrapper ${this.name}__input`,ref:e=>this.stylingContainer=e},i("div",{key:"f065f4611805dd8490234bcec1fecdbcfcaefab8",class:"togglecheckbox__wrapper--flex"},i("input",{key:"c5196d5a4cd2f114a610037285ee644fcabc37bd",class:"togglecheckbox__input",type:"checkbox",id:`${this.name}__input`,ref:e=>this.checkboxReference=e,name:this.name,checked:"true"===this.defaultValue,readOnly:this.autofilled,required:this.validation.mandatory,value:this.value,onClick:()=>this.handleClick()}),this.renderLabel()),i("small",{key:"06d5db0994272ec9dde1b5cd0d525bb53ff1a058",class:"togglecheckbox__error-message"},this.errorMessage),i("div",{key:"aff16ac9ed0adb896f2c1822014c5c8c4d6db2d4",class:"togglecheckbox__wrapper--relative"},this.tooltip&&i("img",{key:"6b049cecc095a2127eb566f50fd0f8feaa8cb3d5",class:"togglecheckbox__tooltip-icon",src:a,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()),i("div",{key:"372c3eb72cffd482fe1c179047ec3900cef00d46",class:"togglecheckbox__fields-wrapper "+(this.showFields?"":"hidden")},this.options.map((e=>i("general-input",{type:e.inputType,name:e.name,displayName:e.displayName,validation:e.validate,action:e.action||null,defaultValue:e.defaultValue,autofilled:e.autofill,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:e.tooltip,placeholder:null==e.placeholder?"":e.placeholder,ref:t=>this.subFieldsObject[e.name]=t})))))}static get watchers(){return{clientStyling:["handleStylingChange"]}}};xd.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.togglecheckbox{font-family:"Roboto";font-style:normal;font-size:15px}.togglecheckbox__wrapper{position:relative}.togglecheckbox__wrapper--flex{display:flex;gap:10px;align-items:baseline}.togglecheckbox__wrapper--relative{position:relative;display:inline}.togglecheckbox__input{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.togglecheckbox__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;cursor:pointer;padding:0}.togglecheckbox__label-text{font-size:16px}.togglecheckbox__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.togglecheckbox__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.togglecheckbox__tooltip-icon{width:16px;height:auto}.togglecheckbox__tooltip{position:absolute;top:0;right:0;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.togglecheckbox__tooltip.visible{opacity:1}.togglecheckbox__fields-wrapper{margin-top:40px;display:flex;flex-direction:column;gap:40px}.hidden{display:none}';export{l as checkbox_group_input,h as checkbox_input,Xt as date_input,Kt as email_input,uc as general_input,vd as general_registration,gd as number_input,Ed as password_input,bd as radio_input,yd as select_input,wd as tel_input,kd as text_input,xd as toggle_checkbox_input}