@everymatrix/general-player-forgot-password-form-nd 1.77.31 → 1.80.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.
- package/components/{GeneralPlayerForgotPasswordFormNd-DVNSNQWD.js → GeneralPlayerForgotPasswordFormNd-9oaHvia4.js} +2993 -2463
- package/components/{GeneralPlayerForgotPasswordFormNd-RggyZwnp.cjs → GeneralPlayerForgotPasswordFormNd-Ca8382RI.cjs} +161 -158
- package/components/{GeneralPlayerForgotPasswordFormNd-KljvfAgI.js → GeneralPlayerForgotPasswordFormNd-DQsUfs8a.js} +4954 -4420
- package/components/GeneralPlayerForgotPasswordSmsForm--YU2CZjr.js +1643 -0
- package/components/GeneralPlayerForgotPasswordSmsForm-DtKZtVLP.cjs +4 -0
- package/components/GeneralPlayerForgotPasswordSmsForm-ezkep862.js +1680 -0
- package/es2015/general-player-forgot-password-form-nd.cjs +1 -1
- package/es2015/general-player-forgot-password-form-nd.js +7 -7
- package/esnext/general-player-forgot-password-form-nd.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var Gl=Object.defineProperty,ql=Object.defineProperties;var Wl=Object.getOwnPropertyDescriptors;var Gs=Object.getOwnPropertySymbols;var Yl=Object.prototype.hasOwnProperty,Zl=Object.prototype.propertyIsEnumerable;var Jr=(r,e,t)=>e in r?Gl(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,et=(r,e)=>{for(var t in e||(e={}))Yl.call(e,t)&&Jr(r,t,e[t]);if(Gs)for(var t of Gs(e))Zl.call(e,t)&&Jr(r,t,e[t]);return r},rr=(r,e)=>ql(r,Wl(e));var F=(r,e,t)=>(Jr(r,typeof e!="symbol"?e+"":e,t),t);var Ct=(r,e,t)=>new Promise((i,s)=>{var o=l=>{try{a(t.next(l))}catch(d){s(d)}},n=l=>{try{a(t.throw(l))}catch(d){s(d)}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(o,n);a((t=t.apply(r,e)).next())});function le(){}const Lr=r=>r;function bn(r){return r()}function qs(){return Object.create(null)}function Se(r){r.forEach(bn)}function Fe(r){return typeof r=="function"}function ss(r,e){return r!=r?e==e:r!==e||r&&typeof r=="object"||typeof r=="function"}let ir;function Ws(r,e){return r===e?!0:(ir||(ir=document.createElement("a")),ir.href=e,r===ir.href)}function Xl(r){return Object.keys(r).length===0}function vn(r,...e){if(r==null){for(const i of e)i(void 0);return le}const t=r.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function yn(r,e,t){r.$$.on_destroy.push(vn(e,t))}function Jl(r){const e=typeof r=="string"&&r.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[r,"px"]}const wn=typeof window!="undefined";let os=wn?()=>window.performance.now():()=>Date.now(),ns=wn?r=>requestAnimationFrame(r):le;const nt=new Set;function xn(r){nt.forEach(e=>{e.c(r)||(nt.delete(e),e.f())}),nt.size!==0&&ns(xn)}function as(r){let e;return nt.size===0&&ns(xn),{promise:new Promise(t=>{nt.add(e={c:r,f:t})}),abort(){nt.delete(e)}}}function p(r,e){r.appendChild(e)}function Pn(r,e,t){const i=ls(r);if(!i.getElementById(e)){const s=x("style");s.id=e,s.textContent=t,En(i,s)}}function ls(r){if(!r)return document;const e=r.getRootNode?r.getRootNode():r.ownerDocument;return e&&e.host?e:r.ownerDocument}function Kl(r){const e=x("style");return e.textContent="/* empty */",En(ls(r),e),e.sheet}function En(r,e){return p(r.head||r,e),e.sheet}function L(r,e,t){r.insertBefore(e,t||null)}function I(r){r.parentNode&&r.parentNode.removeChild(r)}function Cn(r,e){for(let t=0;t<r.length;t+=1)r[t]&&r[t].d(e)}function x(r){return document.createElement(r)}function P(r){return document.createElementNS("http://www.w3.org/2000/svg",r)}function N(r){return document.createTextNode(r)}function H(){return N(" ")}function ds(){return N("")}function oe(r,e,t,i){return r.addEventListener(e,t,i),()=>r.removeEventListener(e,t,i)}function c(r,e,t){t==null?r.removeAttribute(e):r.getAttribute(e)!==t&&r.setAttribute(e,t)}function A(r,e,t){const i=e.toLowerCase();i in r?r[i]=typeof r[i]=="boolean"&&t===""?!0:t:e in r?r[e]=typeof r[e]=="boolean"&&t===""?!0:t:c(r,e,t)}function Ql(r){return Array.from(r.childNodes)}function X(r,e){e=""+e,r.data!==e&&(r.data=e)}function je(r,e){r.value=e==null?"":e}function ed(r,e,t){r.classList.toggle(e,!!t)}function td(r,e,{bubbles:t=!1,cancelable:i=!1}={}){return new CustomEvent(r,{detail:e,bubbles:t,cancelable:i})}function rd(r){const e={};return r.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}const vr=new Map;let yr=0;function id(r){let e=5381,t=r.length;for(;t--;)e=(e<<5)-e^r.charCodeAt(t);return e>>>0}function sd(r,e){const t={stylesheet:Kl(e),rules:{}};return vr.set(r,t),t}function wr(r,e,t,i,s,o,n,a=0){const l=16.666/i;let d=`{
|
|
2
|
+
`;for(let v=0;v<=1;v+=l){const w=e+(t-e)*o(v);d+=v*100+`%{${n(w,1-w)}}
|
|
3
|
+
`}const u=d+`100% {${n(t,1-t)}}
|
|
4
|
+
}`,h=`__svelte_${id(u)}_${a}`,f=ls(r),{stylesheet:m,rules:_}=vr.get(f)||sd(f,r);_[h]||(_[h]=!0,m.insertRule(`@keyframes ${h} ${u}`,m.cssRules.length));const g=r.style.animation||"";return r.style.animation=`${g?`${g}, `:""}${h} ${i}ms linear ${s}ms 1 both`,yr+=1,h}function xr(r,e){const t=(r.style.animation||"").split(", "),i=t.filter(e?o=>o.indexOf(e)<0:o=>o.indexOf("__svelte")===-1),s=t.length-i.length;s&&(r.style.animation=i.join(", "),yr-=s,yr||od())}function od(){ns(()=>{yr||(vr.forEach(r=>{const{ownerNode:e}=r.stylesheet;e&&I(e)}),vr.clear())})}let Ht;function Lt(r){Ht=r}function nd(){if(!Ht)throw new Error("Function called outside component initialization");return Ht}function Sn(r){nd().$$.on_mount.push(r)}const st=[],at=[];let lt=[];const Ys=[],ad=Promise.resolve();let Pi=!1;function ld(){Pi||(Pi=!0,ad.then(j))}function Ze(r){lt.push(r)}const Kr=new Set;let tt=0;function j(){if(tt!==0)return;const r=Ht;do{try{for(;tt<st.length;){const e=st[tt];tt++,Lt(e),dd(e.$$)}}catch(e){throw st.length=0,tt=0,e}for(Lt(null),st.length=0,tt=0;at.length;)at.pop()();for(let e=0;e<lt.length;e+=1){const t=lt[e];Kr.has(t)||(Kr.add(t),t())}lt.length=0}while(st.length);for(;Ys.length;)Ys.pop()();Pi=!1,Kr.clear(),Lt(r)}function dd(r){if(r.fragment!==null){r.update(),Se(r.before_update);const e=r.dirty;r.dirty=[-1],r.fragment&&r.fragment.p(r.ctx,e),r.after_update.forEach(Ze)}}function ud(r){const e=[],t=[];lt.forEach(i=>r.indexOf(i)===-1?e.push(i):t.push(i)),t.forEach(i=>i()),lt=e}let St;function us(){return St||(St=Promise.resolve(),St.then(()=>{St=null})),St}function qe(r,e,t){r.dispatchEvent(td(`${e?"intro":"outro"}${t}`))}const hr=new Set;let Ie;function hd(){Ie={r:0,c:[],p:Ie}}function cd(){Ie.r||Se(Ie.c),Ie=Ie.p}function An(r,e){r&&r.i&&(hr.delete(r),r.i(e))}function fd(r,e,t,i){if(r&&r.o){if(hr.has(r))return;hr.add(r),Ie.c.push(()=>{hr.delete(r),i&&(t&&r.d(1),i())}),r.o(e)}else i&&i()}const hs={duration:0};function pd(r,e,t){const i={direction:"in"};let s=e(r,t,i),o=!1,n,a,l=0;function d(){n&&xr(r,n)}function u(){const{delay:f=0,duration:m=300,easing:_=Lr,tick:g=le,css:v}=s||hs;v&&(n=wr(r,0,1,m,f,_,v,l++)),g(0,1);const w=os()+f,y=w+m;a&&a.abort(),o=!0,Ze(()=>qe(r,!0,"start")),a=as(E=>{if(o){if(E>=y)return g(1,0),qe(r,!0,"end"),d(),o=!1;if(E>=w){const T=_((E-w)/m);g(T,1-T)}}return o})}let h=!1;return{start(){h||(h=!0,xr(r),Fe(s)?(s=s(i),us().then(u)):u())},invalidate(){h=!1},end(){o&&(d(),o=!1)}}}function md(r,e,t){const i={direction:"out"};let s=e(r,t,i),o=!0,n;const a=Ie;a.r+=1;let l;function d(){const{delay:u=0,duration:h=300,easing:f=Lr,tick:m=le,css:_}=s||hs;_&&(n=wr(r,1,0,h,u,f,_));const g=os()+u,v=g+h;Ze(()=>qe(r,!1,"start")),"inert"in r&&(l=r.inert,r.inert=!0),as(w=>{if(o){if(w>=v)return m(0,1),qe(r,!1,"end"),--a.r||Se(a.c),!1;if(w>=g){const y=f((w-g)/h);m(1-y,y)}}return o})}return Fe(s)?us().then(()=>{s=s(i),d()}):d(),{end(u){u&&"inert"in r&&(r.inert=l),u&&s.tick&&s.tick(1,0),o&&(n&&xr(r,n),o=!1)}}}function _d(r,e,t,i){let o=e(r,t,{direction:"both"}),n=i?0:1,a=null,l=null,d=null,u;function h(){d&&xr(r,d)}function f(_,g){const v=_.b-n;return g*=Math.abs(v),{a:n,b:_.b,d:v,duration:g,start:_.start,end:_.start+g,group:_.group}}function m(_){const{delay:g=0,duration:v=300,easing:w=Lr,tick:y=le,css:E}=o||hs,T={start:os()+g,b:_};_||(T.group=Ie,Ie.r+=1),"inert"in r&&(_?u!==void 0&&(r.inert=u):(u=r.inert,r.inert=!0)),a||l?l=T:(E&&(h(),d=wr(r,n,_,v,g,w,E)),_&&y(0,1),a=f(T,v),Ze(()=>qe(r,_,"start")),as(C=>{if(l&&C>l.start&&(a=f(l,v),l=null,qe(r,a.b,"start"),E&&(h(),d=wr(r,n,a.b,a.duration,0,w,o.css))),a){if(C>=a.end)y(n=a.b,1-n),qe(r,a.b,"end"),l||(a.b?h():--a.group.r||Se(a.group.c)),a=null;else if(C>=a.start){const D=C-a.start;n=a.a+a.d*w(D/a.duration),y(n,1-n)}}return!!(a||l)}))}return{run(_){Fe(o)?us().then(()=>{o=o({direction:_?"in":"out"}),m(_)}):m(_)},end(){h(),a=l=null}}}function Ei(r){return(r==null?void 0:r.length)!==void 0?r:Array.from(r)}function gd(r,e,t){const{fragment:i,after_update:s}=r.$$;i&&i.m(e,t),Ze(()=>{const o=r.$$.on_mount.map(bn).filter(Fe);r.$$.on_destroy?r.$$.on_destroy.push(...o):Se(o),r.$$.on_mount=[]}),s.forEach(Ze)}function bd(r,e){const t=r.$$;t.fragment!==null&&(ud(t.after_update),Se(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function vd(r,e){r.$$.dirty[0]===-1&&(st.push(r),ld(),r.$$.dirty.fill(0)),r.$$.dirty[e/31|0]|=1<<e%31}function Tn(r,e,t,i,s,o,n=null,a=[-1]){const l=Ht;Lt(r);const d=r.$$={fragment:null,ctx:[],props:o,update:le,not_equal:s,bound:qs(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:qs(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};n&&n(d.root);let u=!1;if(d.ctx=t?t(r,e.props||{},(h,f,...m)=>{const _=m.length?m[0]:f;return d.ctx&&s(d.ctx[h],d.ctx[h]=_)&&(!d.skip_bound&&d.bound[h]&&d.bound[h](_),u&&vd(r,h)),f}):[],d.update(),u=!0,Se(d.before_update),d.fragment=i?i(d.ctx):!1,e.target){if(e.hydrate){const h=Ql(e.target);d.fragment&&d.fragment.l(h),h.forEach(I)}else d.fragment&&d.fragment.c();e.intro&&An(r.$$.fragment),gd(r,e.target,e.anchor),j()}Lt(l)}let In;typeof HTMLElement=="function"&&(In=class extends HTMLElement{constructor(e,t,i){super();F(this,"$$ctor");F(this,"$$s");F(this,"$$c");F(this,"$$cn",!1);F(this,"$$d",{});F(this,"$$r",!1);F(this,"$$p_d",{});F(this,"$$l",{});F(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 s=this.$$c.$on(e,t);this.$$l_u.set(t,s)}super.addEventListener(e,t,i)}removeEventListener(e,t,i){if(super.removeEventListener(e,t,i),this.$$c){const s=this.$$l_u.get(t);s&&(s(),this.$$l_u.delete(t))}}connectedCallback(){return Ct(this,null,function*(){if(this.$$cn=!0,!this.$$c){let e=function(o){return()=>{let n;return{c:function(){n=x("slot"),o!=="default"&&c(n,"name",o)},m:function(d,u){L(d,n,u)},d:function(d){d&&I(n)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const t={},i=rd(this);for(const o of this.$$s)o in i&&(t[o]=[e(o)]);for(const o of this.attributes){const n=this.$$g_p(o.name);n in this.$$d||(this.$$d[n]=cr(n,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:rr(et({},this.$$d),{$$slots:t,$$scope:{ctx:[]}})});const s=()=>{this.$$r=!0;for(const o in this.$$p_d)if(this.$$d[o]=this.$$c.$$.ctx[this.$$c.$$.props[o]],this.$$p_d[o].reflect){const n=cr(o,this.$$d[o],this.$$p_d,"toAttribute");n==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,n)}this.$$r=!1};this.$$c.$$.after_update.push(s),s();for(const o in this.$$l)for(const n of this.$$l[o]){const a=this.$$c.$on(o,n);this.$$l_u.set(n,a)}this.$$l={}}})}attributeChangedCallback(e,t,i){var s;this.$$r||(e=this.$$g_p(e),this.$$d[e]=cr(e,i,this.$$p_d,"toProp"),(s=this.$$c)==null||s.$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}});function cr(r,e,t,i){var o;const s=(o=t[r])==null?void 0:o.type;if(e=s==="Boolean"&&typeof e!="boolean"?e!=null:e,!i||!t[r])return e;if(i==="toAttribute")switch(s){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(s){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function On(r,e,t,i,s,o){let n=class extends In{constructor(){super(r,t,s),this.$$p_d=e}static get observedAttributes(){return Object.keys(e).map(a=>(e[a].attribute||a).toLowerCase())}};return Object.keys(e).forEach(a=>{Object.defineProperty(n.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){var d;l=cr(a,l,e),this.$$d[a]=l,(d=this.$$c)==null||d.$set({[a]:l})}})}),i.forEach(a=>{Object.defineProperty(n.prototype,a,{get(){var l;return(l=this.$$c)==null?void 0:l[a]}})}),r.element=n,n}class Nn{constructor(){F(this,"$$");F(this,"$$set")}$destroy(){bd(this,1),this.$destroy=le}$on(e,t){if(!Fe(t))return le;const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(t),()=>{const s=i.indexOf(t);s!==-1&&i.splice(s,1)}}$set(e){this.$$set&&!Xl(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const yd="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(yd);/*! *****************************************************************************
|
|
2
5
|
Copyright (c) Microsoft Corporation.
|
|
3
6
|
|
|
4
7
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -11,55 +14,55 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
11
14
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
15
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
16
|
PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
-
***************************************************************************** */var
|
|
15
|
-
`+
|
|
16
|
-
`):"",this.name="UnsubscriptionError",this.errors=e}});function mi(r,t){if(r){var e=r.indexOf(t);0<=e&&r.splice(e,1)}}var wr=function(){function r(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return r.prototype.unsubscribe=function(){var t,e,i,s,o;if(!this.closed){this.closed=!0;var n=this._parentage;if(n)if(this._parentage=null,Array.isArray(n))try{for(var a=ci(n),l=a.next();!l.done;l=a.next()){var d=l.value;d.remove(this)}}catch(g){t={error:g}}finally{try{l&&!l.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}else n.remove(this);var h=this.initialTeardown;if(Oe(h))try{h()}catch(g){o=g instanceof zr?g.errors:[g]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var f=ci(u),m=f.next();!m.done;m=f.next()){var _=m.value;try{Es(_)}catch(g){o=o!=null?o:[],g instanceof zr?o=pi(pi([],fi(o)),fi(g.errors)):o.push(g)}}}catch(g){i={error:g}}finally{try{m&&!m.done&&(s=f.return)&&s.call(f)}finally{if(i)throw i.error}}}if(o)throw new zr(o)}},r.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)Es(t);else{if(t instanceof r){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},r.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},r.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},r.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&mi(e,t)},r.prototype.remove=function(t){var e=this._finalizers;e&&mi(e,t),t instanceof r&&t._removeParent(this)},r.EMPTY=function(){var t=new r;return t.closed=!0,t}(),r}(),Xo=wr.EMPTY;function Jo(r){return r instanceof wr||r&&"closed"in r&&Oe(r.remove)&&Oe(r.add)&&Oe(r.unsubscribe)}function Es(r){Oe(r)?r():r.unsubscribe()}var Nl={Promise:void 0},kl={setTimeout:function(r,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return setTimeout.apply(void 0,pi([r,t],fi(e)))},clearTimeout:function(r){return clearTimeout(r)},delegate:void 0};function Ml(r){kl.setTimeout(function(){throw r})}function Cs(){}function sr(r){r()}var Ko=function(r){$t(t,r);function t(e){var i=r.call(this)||this;return i.isStopped=!1,e?(i.destination=e,Jo(e)&&e.add(i)):i.destination=Rl,i}return t.create=function(e,i,s){return new _i(e,i,s)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,r.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(wr),Ll=function(){function r(t){this.partialObserver=t}return r.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(i){Xt(i)}},r.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(i){Xt(i)}else Xt(t)},r.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){Xt(e)}},r}(),_i=function(r){$t(t,r);function t(e,i,s){var o=r.call(this)||this,n;return Oe(e)||!e?n={next:e!=null?e:void 0,error:i!=null?i:void 0,complete:s!=null?s:void 0}:n=e,o.destination=new Ll(n),o}return t}(Ko);function Xt(r){Ml(r)}function Bl(r){throw r}var Rl={closed:!0,next:Cs,error:Bl,complete:Cs},Dl=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Hl(r){return r}function zl(r){return r.length===0?Hl:r.length===1?r[0]:function(e){return r.reduce(function(i,s){return s(i)},e)}}var Ss=function(){function r(t){t&&(this._subscribe=t)}return r.prototype.lift=function(t){var e=new r;return e.source=this,e.operator=t,e},r.prototype.subscribe=function(t,e,i){var s=this,o=Vl(t)?t:new _i(t,e,i);return sr(function(){var n=s,a=n.operator,l=n.source;o.add(a?a.call(o,l):l?s._subscribe(o):s._trySubscribe(o))}),o},r.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},r.prototype.forEach=function(t,e){var i=this;return e=As(e),new e(function(s,o){var n=new _i({next:function(a){try{t(a)}catch(l){o(l),n.unsubscribe()}},error:o,complete:s});i.subscribe(n)})},r.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},r.prototype[Dl]=function(){return this},r.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return zl(t)(this)},r.prototype.toPromise=function(t){var e=this;return t=As(t),new t(function(i,s){var o;e.subscribe(function(n){return o=n},function(n){return s(n)},function(){return i(o)})})},r.create=function(t){return new r(t)},r}();function As(r){var t;return(t=r!=null?r:Nl.Promise)!==null&&t!==void 0?t:Promise}function Fl(r){return r&&Oe(r.next)&&Oe(r.error)&&Oe(r.complete)}function Vl(r){return r&&r instanceof Ko||Fl(r)&&Jo(r)}var $l=Zo(function(r){return function(){r(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Qo=function(r){$t(t,r);function t(){var e=r.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return t.prototype.lift=function(e){var i=new Ts(this,this);return i.operator=e,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new $l},t.prototype.next=function(e){var i=this;sr(function(){var s,o;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var n=ci(i.currentObservers),a=n.next();!a.done;a=n.next()){var l=a.value;l.next(e)}}catch(d){s={error:d}}finally{try{a&&!a.done&&(o=n.return)&&o.call(n)}finally{if(s)throw s.error}}}})},t.prototype.error=function(e){var i=this;sr(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=e;for(var s=i.observers;s.length;)s.shift().error(e)}})},t.prototype.complete=function(){var e=this;sr(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var i=e.observers;i.length;)i.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(e){return this._throwIfClosed(),r.prototype._trySubscribe.call(this,e)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var i=this,s=this,o=s.hasError,n=s.isStopped,a=s.observers;return o||n?Xo:(this.currentObservers=null,a.push(e),new wr(function(){i.currentObservers=null,mi(a,e)}))},t.prototype._checkFinalizedStatuses=function(e){var i=this,s=i.hasError,o=i.thrownError,n=i.isStopped;s?e.error(o):n&&e.complete()},t.prototype.asObservable=function(){var e=new Ss;return e.source=this,e},t.create=function(e,i){return new Ts(e,i)},t}(Ss),Ts=function(r){$t(t,r);function t(e,i){var s=r.call(this)||this;return s.destination=e,s.source=i,s}return t.prototype.next=function(e){var i,s;(s=(i=this.destination)===null||i===void 0?void 0:i.next)===null||s===void 0||s.call(i,e)},t.prototype.error=function(e){var i,s;(s=(i=this.destination)===null||i===void 0?void 0:i.error)===null||s===void 0||s.call(i,e)},t.prototype.complete=function(){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||i===void 0||i.call(e)},t.prototype._subscribe=function(e){var i,s;return(s=(i=this.source)===null||i===void 0?void 0:i.subscribe(e))!==null&&s!==void 0?s:Xo},t}(Qo),en={now:function(){return(en.delegate||Date).now()},delegate:void 0},Ul=function(r){$t(t,r);function t(e,i,s){e===void 0&&(e=1/0),i===void 0&&(i=1/0),s===void 0&&(s=en);var o=r.call(this)||this;return o._bufferSize=e,o._windowTime=i,o._timestampProvider=s,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=i===1/0,o._bufferSize=Math.max(1,e),o._windowTime=Math.max(1,i),o}return t.prototype.next=function(e){var i=this,s=i.isStopped,o=i._buffer,n=i._infiniteTimeWindow,a=i._timestampProvider,l=i._windowTime;s||(o.push(e),!n&&o.push(a.now()+l)),this._trimBuffer(),r.prototype.next.call(this,e)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var i=this._innerSubscribe(e),s=this,o=s._infiniteTimeWindow,n=s._buffer,a=n.slice(),l=0;l<a.length&&!e.closed;l+=o?1:2)e.next(a[l]);return this._checkFinalizedStatuses(e),i},t.prototype._trimBuffer=function(){var e=this,i=e._bufferSize,s=e._timestampProvider,o=e._buffer,n=e._infiniteTimeWindow,a=(n?1:2)*i;if(i<1/0&&a<o.length&&o.splice(0,o.length-a),!n){for(var l=s.now(),d=0,h=1;h<o.length&&o[h]<=l;h+=2)d=h;d&&o.splice(0,d+1)}},t}(Qo);const Is=[],Os={},jl=(r,t=0)=>{if(Is.indexOf(r)==-1){const e=new Ul(t);Os[r]=e,Is.push(r)}return Os[r]},Ye=[];function Gl(r,t){return{subscribe:xr(r,t).subscribe}}function xr(r,t=Ce){let e;const i=new Set;function s(a){if(Wo(r,a)&&(r=a,e)){const l=!Ye.length;for(const d of i)d[1](),Ye.push(d,r);if(l){for(let d=0;d<Ye.length;d+=2)Ye[d][0](Ye[d+1]);Ye.length=0}}}function o(a){s(a(r))}function n(a,l=Ce){const d=[a,l];return i.add(d),i.size===1&&(e=t(s,o)||Ce),a(r),()=>{i.delete(d),i.size===0&&e&&(e(),e=null)}}return{set:s,update:o,subscribe:n}}function ht(r,t,e){const i=!Array.isArray(r),s=i?[r]:r;if(!s.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return Gl(e,(n,a)=>{let l=!1;const d=[];let h=0,u=Ce;const f=()=>{if(h)return;u();const _=t(i?d[0]:d,n,a);o?n(_):u=Ot(_)?_:Ce},m=s.map((_,g)=>qo(_,w=>{d[g]=w,h&=~(1<<g),l&&f()},()=>{h|=1<<g}));return l=!0,f(),function(){Ue(m),u(),l=!1}})}function Wl(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var ql=function(t){return Yl(t)&&!Zl(t)};function Yl(r){return!!r&&typeof r=="object"}function Zl(r){var t=Object.prototype.toString.call(r);return t==="[object RegExp]"||t==="[object Date]"||Kl(r)}var Xl=typeof Symbol=="function"&&Symbol.for,Jl=Xl?Symbol.for("react.element"):60103;function Kl(r){return r.$$typeof===Jl}function Ql(r){return Array.isArray(r)?[]:{}}function kt(r,t){return t.clone!==!1&&t.isMergeableObject(r)?it(Ql(r),r,t):r}function ed(r,t,e){return r.concat(t).map(function(i){return kt(i,e)})}function td(r,t){if(!t.customMerge)return it;var e=t.customMerge(r);return typeof e=="function"?e:it}function rd(r){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(r).filter(function(t){return Object.propertyIsEnumerable.call(r,t)}):[]}function Ns(r){return Object.keys(r).concat(rd(r))}function tn(r,t){try{return t in r}catch(e){return!1}}function id(r,t){return tn(r,t)&&!(Object.hasOwnProperty.call(r,t)&&Object.propertyIsEnumerable.call(r,t))}function sd(r,t,e){var i={};return e.isMergeableObject(r)&&Ns(r).forEach(function(s){i[s]=kt(r[s],e)}),Ns(t).forEach(function(s){id(r,s)||(tn(r,s)&&e.isMergeableObject(t[s])?i[s]=td(s,e)(r[s],t[s],e):i[s]=kt(t[s],e))}),i}function it(r,t,e){e=e||{},e.arrayMerge=e.arrayMerge||ed,e.isMergeableObject=e.isMergeableObject||ql,e.cloneUnlessOtherwiseSpecified=kt;var i=Array.isArray(t),s=Array.isArray(r),o=i===s;return o?i?e.arrayMerge(r,t,e):sd(r,t,e):kt(t,e)}it.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(i,s){return it(i,s,e)},{})};var od=it,nd=od;const ad=Wl(nd);var gi=function(r,t){return gi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(e[s]=i[s])},gi(r,t)};function Pr(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");gi(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var Te=function(){return Te=Object.assign||function(t){for(var e,i=1,s=arguments.length;i<s;i++){e=arguments[i];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},Te.apply(this,arguments)};function ld(r,t){var e={};for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&t.indexOf(i)<0&&(e[i]=r[i]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(r);s<i.length;s++)t.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(r,i[s])&&(e[i[s]]=r[i[s]]);return e}function Fr(r,t,e){if(e||arguments.length===2)for(var i=0,s=t.length,o;i<s;i++)(o||!(i in t))&&(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return r.concat(o||Array.prototype.slice.call(t))}function Vr(r,t){var e=t&&t.cache?t.cache:md,i=t&&t.serializer?t.serializer:fd,s=t&&t.strategy?t.strategy:ud;return s(r,{cache:e,serializer:i})}function dd(r){return r==null||typeof r=="number"||typeof r=="boolean"}function hd(r,t,e,i){var s=dd(i)?i:e(i),o=t.get(s);return typeof o=="undefined"&&(o=r.call(this,i),t.set(s,o)),o}function rn(r,t,e){var i=Array.prototype.slice.call(arguments,3),s=e(i),o=t.get(s);return typeof o=="undefined"&&(o=r.apply(this,i),t.set(s,o)),o}function sn(r,t,e,i,s){return e.bind(t,r,i,s)}function ud(r,t){var e=r.length===1?hd:rn;return sn(r,this,e,t.cache.create(),t.serializer)}function cd(r,t){return sn(r,this,rn,t.cache.create(),t.serializer)}var fd=function(){return JSON.stringify(arguments)},pd=function(){function r(){this.cache=Object.create(null)}return r.prototype.get=function(t){return this.cache[t]},r.prototype.set=function(t,e){this.cache[t]=e},r}(),md={create:function(){return new pd}},$r={variadic:cd},hr=function(){return hr=Object.assign||function(t){for(var e,i=1,s=arguments.length;i<s;i++){e=arguments[i];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},hr.apply(this,arguments)};var T;(function(r){r[r.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",r[r.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",r[r.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",r[r.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",r[r.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",r[r.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",r[r.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",r[r.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",r[r.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",r[r.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",r[r.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",r[r.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",r[r.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",r[r.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",r[r.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",r[r.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",r[r.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",r[r.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",r[r.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",r[r.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",r[r.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",r[r.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",r[r.INVALID_TAG=23]="INVALID_TAG",r[r.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",r[r.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",r[r.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(T||(T={}));var G;(function(r){r[r.literal=0]="literal",r[r.argument=1]="argument",r[r.number=2]="number",r[r.date=3]="date",r[r.time=4]="time",r[r.select=5]="select",r[r.plural=6]="plural",r[r.pound=7]="pound",r[r.tag=8]="tag"})(G||(G={}));var st;(function(r){r[r.number=0]="number",r[r.dateTime=1]="dateTime"})(st||(st={}));function ks(r){return r.type===G.literal}function _d(r){return r.type===G.argument}function on(r){return r.type===G.number}function nn(r){return r.type===G.date}function an(r){return r.type===G.time}function ln(r){return r.type===G.select}function dn(r){return r.type===G.plural}function gd(r){return r.type===G.pound}function hn(r){return r.type===G.tag}function un(r){return!!(r&&typeof r=="object"&&r.type===st.number)}function bi(r){return!!(r&&typeof r=="object"&&r.type===st.dateTime)}var cn=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,bd=/(?:[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 vd(r){var t={};return r.replace(bd,function(e){var i=e.length;switch(e[0]){case"G":t.era=i===4?"long":i===5?"narrow":"short";break;case"y":t.year=i===2?"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=i===4?"long":i===5?"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 Y=function(){return Y=Object.assign||function(t){for(var e,i=1,s=arguments.length;i<s;i++){e=arguments[i];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},Y.apply(this,arguments)};var yd=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function wd(r){if(r.length===0)throw new Error("Number skeleton cannot be empty");for(var t=r.split(yd).filter(function(f){return f.length>0}),e=[],i=0,s=t;i<s.length;i++){var o=s[i],n=o.split("/");if(n.length===0)throw new Error("Invalid number skeleton");for(var a=n[0],l=n.slice(1),d=0,h=l;d<h.length;d++){var u=h[d];if(u.length===0)throw new Error("Invalid number skeleton")}e.push({stem:a,options:l})}return e}function xd(r){return r.replace(/^(.*?)-/,"")}var Ms=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,fn=/^(@+)?(\+|#+)?[rs]?$/g,Pd=/(\*)(0+)|(#+)(0+)|(0+)/g,pn=/^(0+)$/;function Ls(r){var t={};return r[r.length-1]==="r"?t.roundingPriority="morePrecision":r[r.length-1]==="s"&&(t.roundingPriority="lessPrecision"),r.replace(fn,function(e,i,s){return typeof s!="string"?(t.minimumSignificantDigits=i.length,t.maximumSignificantDigits=i.length):s==="+"?t.minimumSignificantDigits=i.length:i[0]==="#"?t.maximumSignificantDigits=i.length:(t.minimumSignificantDigits=i.length,t.maximumSignificantDigits=i.length+(typeof s=="string"?s.length:0)),""}),t}function mn(r){switch(r){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 Ed(r){var t;if(r[0]==="E"&&r[1]==="E"?(t={notation:"engineering"},r=r.slice(2)):r[0]==="E"&&(t={notation:"scientific"},r=r.slice(1)),t){var e=r.slice(0,2);if(e==="+!"?(t.signDisplay="always",r=r.slice(2)):e==="+?"&&(t.signDisplay="exceptZero",r=r.slice(2)),!pn.test(r))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=r.length}return t}function Bs(r){var t={},e=mn(r);return e||t}function Cd(r){for(var t={},e=0,i=r;e<i.length;e++){var s=i[e];switch(s.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=s.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=xd(s.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=Y(Y(Y({},t),{notation:"scientific"}),s.options.reduce(function(l,d){return Y(Y({},l),Bs(d))},{}));continue;case"engineering":t=Y(Y(Y({},t),{notation:"engineering"}),s.options.reduce(function(l,d){return Y(Y({},l),Bs(d))},{}));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(s.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(s.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");s.options[0].replace(Pd,function(l,d,h,u,f,m){if(d)t.minimumIntegerDigits=h.length;else{if(u&&f)throw new Error("We currently do not support maximum integer digits");if(m)throw new Error("We currently do not support exact integer digits")}return""});continue}if(pn.test(s.stem)){t.minimumIntegerDigits=s.stem.length;continue}if(Ms.test(s.stem)){if(s.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");s.stem.replace(Ms,function(l,d,h,u,f,m){return h==="*"?t.minimumFractionDigits=d.length:u&&u[0]==="#"?t.maximumFractionDigits=u.length:f&&m?(t.minimumFractionDigits=f.length,t.maximumFractionDigits=f.length+m.length):(t.minimumFractionDigits=d.length,t.maximumFractionDigits=d.length),""});var o=s.options[0];o==="w"?t=Y(Y({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=Y(Y({},t),Ls(o)));continue}if(fn.test(s.stem)){t=Y(Y({},t),Ls(s.stem));continue}var n=mn(s.stem);n&&(t=Y(Y({},t),n));var a=Ed(s.stem);a&&(t=Y(Y({},t),a))}return t}var Jt={"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 Sd(r,t){for(var e="",i=0;i<r.length;i++){var s=r.charAt(i);if(s==="j"){for(var o=0;i+1<r.length&&r.charAt(i+1)===s;)o++,i++;var n=1+(o&1),a=o<2?1:3+(o>>1),l="a",d=Ad(t);for((d=="H"||d=="k")&&(a=0);a-- >0;)e+=l;for(;n-- >0;)e=d+e}else s==="J"?e+="H":e+=s}return e}function Ad(r){var t=r.hourCycle;if(t===void 0&&r.hourCycles&&r.hourCycles.length&&(t=r.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 e=r.language,i;e!=="root"&&(i=r.maximize().region);var s=Jt[i||""]||Jt[e||""]||Jt["".concat(e,"-001")]||Jt["001"];return s[0]}var Ur,Td=new RegExp("^".concat(cn.source,"*")),Id=new RegExp("".concat(cn.source,"*$"));function O(r,t){return{start:r,end:t}}var Od=!!String.prototype.startsWith&&"_a".startsWith("a",1),Nd=!!String.fromCodePoint,kd=!!Object.fromEntries,Md=!!String.prototype.codePointAt,Ld=!!String.prototype.trimStart,Bd=!!String.prototype.trimEnd,Rd=!!Number.isSafeInteger,Dd=Rd?Number.isSafeInteger:function(r){return typeof r=="number"&&isFinite(r)&&Math.floor(r)===r&&Math.abs(r)<=9007199254740991},vi=!0;try{var Hd=gn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");vi=((Ur=Hd.exec("a"))===null||Ur===void 0?void 0:Ur[0])==="a"}catch(r){vi=!1}var Rs=Od?function(t,e,i){return t.startsWith(e,i)}:function(t,e,i){return t.slice(i,i+e.length)===e},yi=Nd?String.fromCodePoint:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var i="",s=t.length,o=0,n;s>o;){if(n=t[o++],n>1114111)throw RangeError(n+" is not a valid code point");i+=n<65536?String.fromCharCode(n):String.fromCharCode(((n-=65536)>>10)+55296,n%1024+56320)}return i},Ds=kd?Object.fromEntries:function(t){for(var e={},i=0,s=t;i<s.length;i++){var o=s[i],n=o[0],a=o[1];e[n]=a}return e},_n=Md?function(t,e){return t.codePointAt(e)}:function(t,e){var i=t.length;if(!(e<0||e>=i)){var s=t.charCodeAt(e),o;return s<55296||s>56319||e+1===i||(o=t.charCodeAt(e+1))<56320||o>57343?s:(s-55296<<10)+(o-56320)+65536}},zd=Ld?function(t){return t.trimStart()}:function(t){return t.replace(Td,"")},Fd=Bd?function(t){return t.trimEnd()}:function(t){return t.replace(Id,"")};function gn(r,t){return new RegExp(r,t)}var wi;if(vi){var Hs=gn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");wi=function(t,e){var i;Hs.lastIndex=e;var s=Hs.exec(t);return(i=s[1])!==null&&i!==void 0?i:""}}else wi=function(t,e){for(var i=[];;){var s=_n(t,e);if(s===void 0||bn(s)||jd(s))break;i.push(s),e+=s>=65536?2:1}return yi.apply(void 0,i)};var Vd=function(){function r(t,e){e===void 0&&(e={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.locale=e.locale,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}return r.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},r.prototype.parseMessage=function(t,e,i){for(var s=[];!this.isEOF();){var o=this.char();if(o===123){var n=this.parseArgument(t,i);if(n.err)return n;s.push(n.val)}else{if(o===125&&t>0)break;if(o===35&&(e==="plural"||e==="selectordinal")){var a=this.clonePosition();this.bump(),s.push({type:G.pound,location:O(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(i)break;return this.error(T.UNMATCHED_CLOSING_TAG,O(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&xi(this.peek()||0)){var n=this.parseTag(t,e);if(n.err)return n;s.push(n.val)}else{var n=this.parseLiteral(t,e);if(n.err)return n;s.push(n.val)}}}return{val:s,err:null}},r.prototype.parseTag=function(t,e){var i=this.clonePosition();this.bump();var s=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:G.literal,value:"<".concat(s,"/>"),location:O(i,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,e,!0);if(o.err)return o;var n=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!xi(this.char()))return this.error(T.INVALID_TAG,O(a,this.clonePosition()));var l=this.clonePosition(),d=this.parseTagName();return s!==d?this.error(T.UNMATCHED_CLOSING_TAG,O(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:G.tag,value:s,children:n,location:O(i,this.clonePosition())},err:null}:this.error(T.INVALID_TAG,O(a,this.clonePosition())))}else return this.error(T.UNCLOSED_TAG,O(i,this.clonePosition()))}else return this.error(T.INVALID_TAG,O(i,this.clonePosition()))},r.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Ud(this.char());)this.bump();return this.message.slice(t,this.offset())},r.prototype.parseLiteral=function(t,e){for(var i=this.clonePosition(),s="";;){var o=this.tryParseQuote(e);if(o){s+=o;continue}var n=this.tryParseUnquoted(t,e);if(n){s+=n;continue}var a=this.tryParseLeftAngleBracket();if(a){s+=a;continue}break}var l=O(i,this.clonePosition());return{val:{type:G.literal,value:s,location:l},err:null}},r.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!$d(this.peek()||0))?(this.bump(),"<"):null},r.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var e=[this.char()];for(this.bump();!this.isEOF();){var i=this.char();if(i===39)if(this.peek()===39)e.push(39),this.bump();else{this.bump();break}else e.push(i);this.bump()}return yi.apply(void 0,e)},r.prototype.tryParseUnquoted=function(t,e){if(this.isEOF())return null;var i=this.char();return i===60||i===123||i===35&&(e==="plural"||e==="selectordinal")||i===125&&t>0?null:(this.bump(),yi(i))},r.prototype.parseArgument=function(t,e){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,O(i,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(T.EMPTY_ARGUMENT,O(i,this.clonePosition()));var s=this.parseIdentifierIfPossible().value;if(!s)return this.error(T.MALFORMED_ARGUMENT,O(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,O(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:G.argument,value:s,location:O(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,O(i,this.clonePosition())):this.parseArgumentOptions(t,e,s,i);default:return this.error(T.MALFORMED_ARGUMENT,O(i,this.clonePosition()))}},r.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),i=wi(this.message,e),s=e+i.length;this.bumpTo(s);var o=this.clonePosition(),n=O(t,o);return{value:i,location:n}},r.prototype.parseArgumentOptions=function(t,e,i,s){var o,n=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(T.EXPECT_ARGUMENT_TYPE,O(n,l));case"number":case"date":case"time":{this.bumpSpace();var d=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition(),u=this.parseSimpleArgStyleIfPossible();if(u.err)return u;var f=Fd(u.val);if(f.length===0)return this.error(T.EXPECT_ARGUMENT_STYLE,O(this.clonePosition(),this.clonePosition()));var m=O(h,this.clonePosition());d={style:f,styleLocation:m}}var _=this.tryParseArgumentClose(s);if(_.err)return _;var g=O(s,this.clonePosition());if(d&&Rs(d==null?void 0:d.style,"::",0)){var w=zd(d.style.slice(2));if(a==="number"){var u=this.parseNumberSkeletonFromString(w,d.styleLocation);return u.err?u:{val:{type:G.number,value:i,location:g,style:u.val},err:null}}else{if(w.length===0)return this.error(T.EXPECT_DATE_TIME_SKELETON,g);var y=w;this.locale&&(y=Sd(w,this.locale));var f={type:st.dateTime,pattern:y,location:d.styleLocation,parsedOptions:this.shouldParseSkeletons?vd(y):{}},v=a==="date"?G.date:G.time;return{val:{type:v,value:i,location:g,style:f},err:null}}}return{val:{type:a==="number"?G.number:a==="date"?G.date:G.time,value:i,location:g,style:(o=d==null?void 0:d.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var S=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(T.EXPECT_SELECT_ARGUMENT_OPTIONS,O(S,hr({},S)));this.bumpSpace();var k=this.parseIdentifierIfPossible(),E=0;if(a!=="select"&&k.value==="offset"){if(!this.bumpIf(":"))return this.error(T.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,O(this.clonePosition(),this.clonePosition()));this.bumpSpace();var u=this.tryParseDecimalInteger(T.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,T.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(u.err)return u;this.bumpSpace(),k=this.parseIdentifierIfPossible(),E=u.val}var z=this.tryParsePluralOrSelectOptions(t,a,e,k);if(z.err)return z;var _=this.tryParseArgumentClose(s);if(_.err)return _;var B=O(s,this.clonePosition());return a==="select"?{val:{type:G.select,value:i,options:Ds(z.val),location:B},err:null}:{val:{type:G.plural,value:i,options:Ds(z.val),offset:E,pluralType:a==="plural"?"cardinal":"ordinal",location:B},err:null}}default:return this.error(T.INVALID_ARGUMENT_TYPE,O(n,l))}},r.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,O(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},r.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,e=this.clonePosition();!this.isEOF();){var i=this.char();switch(i){case 39:{this.bump();var s=this.clonePosition();if(!this.bumpUntil("'"))return this.error(T.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,O(s,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(e.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(e.offset,this.offset()),err:null}},r.prototype.parseNumberSkeletonFromString=function(t,e){var i=[];try{i=wd(t)}catch(s){return this.error(T.INVALID_NUMBER_SKELETON,e)}return{val:{type:st.number,tokens:i,location:e,parsedOptions:this.shouldParseSkeletons?Cd(i):{}},err:null}},r.prototype.tryParsePluralOrSelectOptions=function(t,e,i,s){for(var o,n=!1,a=[],l=new Set,d=s.value,h=s.location;;){if(d.length===0){var u=this.clonePosition();if(e!=="select"&&this.bumpIf("=")){var f=this.tryParseDecimalInteger(T.EXPECT_PLURAL_ARGUMENT_SELECTOR,T.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;h=O(u,this.clonePosition()),d=this.message.slice(u.offset,this.offset())}else break}if(l.has(d))return this.error(e==="select"?T.DUPLICATE_SELECT_ARGUMENT_SELECTOR:T.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,h);d==="other"&&(n=!0),this.bumpSpace();var m=this.clonePosition();if(!this.bumpIf("{"))return this.error(e==="select"?T.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:T.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,O(this.clonePosition(),this.clonePosition()));var _=this.parseMessage(t+1,e,i);if(_.err)return _;var g=this.tryParseArgumentClose(m);if(g.err)return g;a.push([d,{value:_.val,location:O(m,this.clonePosition())}]),l.add(d),this.bumpSpace(),o=this.parseIdentifierIfPossible(),d=o.value,h=o.location}return a.length===0?this.error(e==="select"?T.EXPECT_SELECT_ARGUMENT_SELECTOR:T.EXPECT_PLURAL_ARGUMENT_SELECTOR,O(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!n?this.error(T.MISSING_OTHER_CLAUSE,O(this.clonePosition(),this.clonePosition())):{val:a,err:null}},r.prototype.tryParseDecimalInteger=function(t,e){var i=1,s=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var o=!1,n=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)o=!0,n=n*10+(a-48),this.bump();else break}var l=O(s,this.clonePosition());return o?(n*=i,Dd(n)?{val:n,err:null}:this.error(e,l)):this.error(t,l)},r.prototype.offset=function(){return this.position.offset},r.prototype.isEOF=function(){return this.offset()===this.message.length},r.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},r.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=_n(this.message,t);if(e===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return e},r.prototype.error=function(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}},r.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},r.prototype.bumpIf=function(t){if(Rs(this.message,t,this.offset())){for(var e=0;e<t.length;e++)this.bump();return!0}return!1},r.prototype.bumpUntil=function(t){var e=this.offset(),i=this.message.indexOf(t,e);return i>=0?(this.bumpTo(i),!0):(this.bumpTo(this.message.length),!1)},r.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var e=this.offset();if(e===t)break;if(e>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},r.prototype.bumpSpace=function(){for(;!this.isEOF()&&bn(this.char());)this.bump()},r.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this.offset(),i=this.message.charCodeAt(e+(t>=65536?2:1));return i!=null?i:null},r}();function xi(r){return r>=97&&r<=122||r>=65&&r<=90}function $d(r){return xi(r)||r===47}function Ud(r){return r===45||r===46||r>=48&&r<=57||r===95||r>=97&&r<=122||r>=65&&r<=90||r==183||r>=192&&r<=214||r>=216&&r<=246||r>=248&&r<=893||r>=895&&r<=8191||r>=8204&&r<=8205||r>=8255&&r<=8256||r>=8304&&r<=8591||r>=11264&&r<=12271||r>=12289&&r<=55295||r>=63744&&r<=64975||r>=65008&&r<=65533||r>=65536&&r<=983039}function bn(r){return r>=9&&r<=13||r===32||r===133||r>=8206&&r<=8207||r===8232||r===8233}function jd(r){return r>=33&&r<=35||r===36||r>=37&&r<=39||r===40||r===41||r===42||r===43||r===44||r===45||r>=46&&r<=47||r>=58&&r<=59||r>=60&&r<=62||r>=63&&r<=64||r===91||r===92||r===93||r===94||r===96||r===123||r===124||r===125||r===126||r===161||r>=162&&r<=165||r===166||r===167||r===169||r===171||r===172||r===174||r===176||r===177||r===182||r===187||r===191||r===215||r===247||r>=8208&&r<=8213||r>=8214&&r<=8215||r===8216||r===8217||r===8218||r>=8219&&r<=8220||r===8221||r===8222||r===8223||r>=8224&&r<=8231||r>=8240&&r<=8248||r===8249||r===8250||r>=8251&&r<=8254||r>=8257&&r<=8259||r===8260||r===8261||r===8262||r>=8263&&r<=8273||r===8274||r===8275||r>=8277&&r<=8286||r>=8592&&r<=8596||r>=8597&&r<=8601||r>=8602&&r<=8603||r>=8604&&r<=8607||r===8608||r>=8609&&r<=8610||r===8611||r>=8612&&r<=8613||r===8614||r>=8615&&r<=8621||r===8622||r>=8623&&r<=8653||r>=8654&&r<=8655||r>=8656&&r<=8657||r===8658||r===8659||r===8660||r>=8661&&r<=8691||r>=8692&&r<=8959||r>=8960&&r<=8967||r===8968||r===8969||r===8970||r===8971||r>=8972&&r<=8991||r>=8992&&r<=8993||r>=8994&&r<=9e3||r===9001||r===9002||r>=9003&&r<=9083||r===9084||r>=9085&&r<=9114||r>=9115&&r<=9139||r>=9140&&r<=9179||r>=9180&&r<=9185||r>=9186&&r<=9254||r>=9255&&r<=9279||r>=9280&&r<=9290||r>=9291&&r<=9311||r>=9472&&r<=9654||r===9655||r>=9656&&r<=9664||r===9665||r>=9666&&r<=9719||r>=9720&&r<=9727||r>=9728&&r<=9838||r===9839||r>=9840&&r<=10087||r===10088||r===10089||r===10090||r===10091||r===10092||r===10093||r===10094||r===10095||r===10096||r===10097||r===10098||r===10099||r===10100||r===10101||r>=10132&&r<=10175||r>=10176&&r<=10180||r===10181||r===10182||r>=10183&&r<=10213||r===10214||r===10215||r===10216||r===10217||r===10218||r===10219||r===10220||r===10221||r===10222||r===10223||r>=10224&&r<=10239||r>=10240&&r<=10495||r>=10496&&r<=10626||r===10627||r===10628||r===10629||r===10630||r===10631||r===10632||r===10633||r===10634||r===10635||r===10636||r===10637||r===10638||r===10639||r===10640||r===10641||r===10642||r===10643||r===10644||r===10645||r===10646||r===10647||r===10648||r>=10649&&r<=10711||r===10712||r===10713||r===10714||r===10715||r>=10716&&r<=10747||r===10748||r===10749||r>=10750&&r<=11007||r>=11008&&r<=11055||r>=11056&&r<=11076||r>=11077&&r<=11078||r>=11079&&r<=11084||r>=11085&&r<=11123||r>=11124&&r<=11125||r>=11126&&r<=11157||r===11158||r>=11159&&r<=11263||r>=11776&&r<=11777||r===11778||r===11779||r===11780||r===11781||r>=11782&&r<=11784||r===11785||r===11786||r===11787||r===11788||r===11789||r>=11790&&r<=11798||r===11799||r>=11800&&r<=11801||r===11802||r===11803||r===11804||r===11805||r>=11806&&r<=11807||r===11808||r===11809||r===11810||r===11811||r===11812||r===11813||r===11814||r===11815||r===11816||r===11817||r>=11818&&r<=11822||r===11823||r>=11824&&r<=11833||r>=11834&&r<=11835||r>=11836&&r<=11839||r===11840||r===11841||r===11842||r>=11843&&r<=11855||r>=11856&&r<=11857||r===11858||r>=11859&&r<=11903||r>=12289&&r<=12291||r===12296||r===12297||r===12298||r===12299||r===12300||r===12301||r===12302||r===12303||r===12304||r===12305||r>=12306&&r<=12307||r===12308||r===12309||r===12310||r===12311||r===12312||r===12313||r===12314||r===12315||r===12316||r===12317||r>=12318&&r<=12319||r===12320||r===12336||r===64830||r===64831||r>=65093&&r<=65094}function Pi(r){r.forEach(function(t){if(delete t.location,ln(t)||dn(t))for(var e in t.options)delete t.options[e].location,Pi(t.options[e].value);else on(t)&&un(t.style)||(nn(t)||an(t))&&bi(t.style)?delete t.style.location:hn(t)&&Pi(t.children)})}function Gd(r,t){t===void 0&&(t={}),t=hr({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var e=new Vd(r,t).parse();if(e.err){var i=SyntaxError(T[e.err.kind]);throw i.location=e.err.location,i.originalMessage=e.err.message,i}return t!=null&&t.captureLocation||Pi(e.val),e.val}var ot;(function(r){r.MISSING_VALUE="MISSING_VALUE",r.INVALID_VALUE="INVALID_VALUE",r.MISSING_INTL_API="MISSING_INTL_API"})(ot||(ot={}));var Er=function(r){Pr(t,r);function t(e,i,s){var o=r.call(this,e)||this;return o.code=i,o.originalMessage=s,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),zs=function(r){Pr(t,r);function t(e,i,s,o){return r.call(this,'Invalid values for "'.concat(e,'": "').concat(i,'". Options are "').concat(Object.keys(s).join('", "'),'"'),ot.INVALID_VALUE,o)||this}return t}(Er),Wd=function(r){Pr(t,r);function t(e,i,s){return r.call(this,'Value for "'.concat(e,'" must be of type ').concat(i),ot.INVALID_VALUE,s)||this}return t}(Er),qd=function(r){Pr(t,r);function t(e,i){return r.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(i,'"'),ot.MISSING_VALUE,i)||this}return t}(Er),fe;(function(r){r[r.literal=0]="literal",r[r.object=1]="object"})(fe||(fe={}));function Yd(r){return r.length<2?r:r.reduce(function(t,e){var i=t[t.length-1];return!i||i.type!==fe.literal||e.type!==fe.literal?t.push(e):i.value+=e.value,t},[])}function Zd(r){return typeof r=="function"}function or(r,t,e,i,s,o,n){if(r.length===1&&ks(r[0]))return[{type:fe.literal,value:r[0].value}];for(var a=[],l=0,d=r;l<d.length;l++){var h=d[l];if(ks(h)){a.push({type:fe.literal,value:h.value});continue}if(gd(h)){typeof o=="number"&&a.push({type:fe.literal,value:e.getNumberFormat(t).format(o)});continue}var u=h.value;if(!(s&&u in s))throw new qd(u,n);var f=s[u];if(_d(h)){(!f||typeof f=="string"||typeof f=="number")&&(f=typeof f=="string"||typeof f=="number"?String(f):""),a.push({type:typeof f=="string"?fe.literal:fe.object,value:f});continue}if(nn(h)){var m=typeof h.style=="string"?i.date[h.style]:bi(h.style)?h.style.parsedOptions:void 0;a.push({type:fe.literal,value:e.getDateTimeFormat(t,m).format(f)});continue}if(an(h)){var m=typeof h.style=="string"?i.time[h.style]:bi(h.style)?h.style.parsedOptions:i.time.medium;a.push({type:fe.literal,value:e.getDateTimeFormat(t,m).format(f)});continue}if(on(h)){var m=typeof h.style=="string"?i.number[h.style]:un(h.style)?h.style.parsedOptions:void 0;m&&m.scale&&(f=f*(m.scale||1)),a.push({type:fe.literal,value:e.getNumberFormat(t,m).format(f)});continue}if(hn(h)){var _=h.children,g=h.value,w=s[g];if(!Zd(w))throw new Wd(g,"function",n);var y=or(_,t,e,i,s,o),v=w(y.map(function(E){return E.value}));Array.isArray(v)||(v=[v]),a.push.apply(a,v.map(function(E){return{type:typeof E=="string"?fe.literal:fe.object,value:E}}))}if(ln(h)){var S=h.options[f]||h.options.other;if(!S)throw new zs(h.value,f,Object.keys(h.options),n);a.push.apply(a,or(S.value,t,e,i,s));continue}if(dn(h)){var S=h.options["=".concat(f)];if(!S){if(!Intl.PluralRules)throw new Er(`Intl.PluralRules is not available in this environment.
|
|
17
|
+
***************************************************************************** */var Ci=function(r,e){return Ci=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(t[s]=i[s])},Ci(r,e)};function Zt(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Ci(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function Si(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],i=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&i>=r.length&&(r=void 0),{value:r&&r[i++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ai(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var i=t.call(r),s,o=[],n;try{for(;(e===void 0||e-- >0)&&!(s=i.next()).done;)o.push(s.value)}catch(a){n={error:a}}finally{try{s&&!s.done&&(t=i.return)&&t.call(i)}finally{if(n)throw n.error}}return o}function Ti(r,e,t){if(arguments.length===2)for(var i=0,s=e.length,o;i<s;i++)(o||!(i in e))&&(o||(o=Array.prototype.slice.call(e,0,i)),o[i]=e[i]);return r.concat(o||e)}function Le(r){return typeof r=="function"}function kn(r){var e=function(i){Error.call(i),i.stack=new Error().stack},t=r(e);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var Qr=kn(function(r){return function(t){r(this),this.message=t?t.length+` errors occurred during unsubscription:
|
|
18
|
+
`+t.map(function(i,s){return s+1+") "+i.toString()}).join(`
|
|
19
|
+
`):"",this.name="UnsubscriptionError",this.errors=t}});function Ii(r,e){if(r){var t=r.indexOf(e);0<=t&&r.splice(t,1)}}var Br=function(){function r(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return r.prototype.unsubscribe=function(){var e,t,i,s,o;if(!this.closed){this.closed=!0;var n=this._parentage;if(n)if(this._parentage=null,Array.isArray(n))try{for(var a=Si(n),l=a.next();!l.done;l=a.next()){var d=l.value;d.remove(this)}}catch(g){e={error:g}}finally{try{l&&!l.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else n.remove(this);var u=this.initialTeardown;if(Le(u))try{u()}catch(g){o=g instanceof Qr?g.errors:[g]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var f=Si(h),m=f.next();!m.done;m=f.next()){var _=m.value;try{Zs(_)}catch(g){o=o!=null?o:[],g instanceof Qr?o=Ti(Ti([],Ai(o)),Ai(g.errors)):o.push(g)}}}catch(g){i={error:g}}finally{try{m&&!m.done&&(s=f.return)&&s.call(f)}finally{if(i)throw i.error}}}if(o)throw new Qr(o)}},r.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)Zs(e);else{if(e instanceof r){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(e)}},r.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},r.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},r.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Ii(t,e)},r.prototype.remove=function(e){var t=this._finalizers;t&&Ii(t,e),e instanceof r&&e._removeParent(this)},r.EMPTY=function(){var e=new r;return e.closed=!0,e}(),r}(),Mn=Br.EMPTY;function Ln(r){return r instanceof Br||r&&"closed"in r&&Le(r.remove)&&Le(r.add)&&Le(r.unsubscribe)}function Zs(r){Le(r)?r():r.unsubscribe()}var wd={Promise:void 0},xd={setTimeout:function(r,e){for(var t=[],i=2;i<arguments.length;i++)t[i-2]=arguments[i];return setTimeout.apply(void 0,Ti([r,e],Ai(t)))},clearTimeout:function(r){return clearTimeout(r)},delegate:void 0};function Pd(r){xd.setTimeout(function(){throw r})}function Xs(){}function fr(r){r()}var Bn=function(r){Zt(e,r);function e(t){var i=r.call(this)||this;return i.isStopped=!1,t?(i.destination=t,Ln(t)&&t.add(i)):i.destination=Sd,i}return e.create=function(t,i,s){return new Oi(t,i,s)},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,r.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(Br),Ed=function(){function r(e){this.partialObserver=e}return r.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(i){sr(i)}},r.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(i){sr(i)}else sr(e)},r.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(t){sr(t)}},r}(),Oi=function(r){Zt(e,r);function e(t,i,s){var o=r.call(this)||this,n;return Le(t)||!t?n={next:t!=null?t:void 0,error:i!=null?i:void 0,complete:s!=null?s:void 0}:n=t,o.destination=new Ed(n),o}return e}(Bn);function sr(r){Pd(r)}function Cd(r){throw r}var Sd={closed:!0,next:Xs,error:Cd,complete:Xs},Ad=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Td(r){return r}function Id(r){return r.length===0?Td:r.length===1?r[0]:function(t){return r.reduce(function(i,s){return s(i)},t)}}var Js=function(){function r(e){e&&(this._subscribe=e)}return r.prototype.lift=function(e){var t=new r;return t.source=this,t.operator=e,t},r.prototype.subscribe=function(e,t,i){var s=this,o=Nd(e)?e:new Oi(e,t,i);return fr(function(){var n=s,a=n.operator,l=n.source;o.add(a?a.call(o,l):l?s._subscribe(o):s._trySubscribe(o))}),o},r.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},r.prototype.forEach=function(e,t){var i=this;return t=Ks(t),new t(function(s,o){var n=new Oi({next:function(a){try{e(a)}catch(l){o(l),n.unsubscribe()}},error:o,complete:s});i.subscribe(n)})},r.prototype._subscribe=function(e){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(e)},r.prototype[Ad]=function(){return this},r.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Id(e)(this)},r.prototype.toPromise=function(e){var t=this;return e=Ks(e),new e(function(i,s){var o;t.subscribe(function(n){return o=n},function(n){return s(n)},function(){return i(o)})})},r.create=function(e){return new r(e)},r}();function Ks(r){var e;return(e=r!=null?r:wd.Promise)!==null&&e!==void 0?e:Promise}function Od(r){return r&&Le(r.next)&&Le(r.error)&&Le(r.complete)}function Nd(r){return r&&r instanceof Bn||Od(r)&&Ln(r)}var kd=kn(function(r){return function(){r(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Rn=function(r){Zt(e,r);function e(){var t=r.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return e.prototype.lift=function(t){var i=new Qs(this,this);return i.operator=t,i},e.prototype._throwIfClosed=function(){if(this.closed)throw new kd},e.prototype.next=function(t){var i=this;fr(function(){var s,o;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var n=Si(i.currentObservers),a=n.next();!a.done;a=n.next()){var l=a.value;l.next(t)}}catch(d){s={error:d}}finally{try{a&&!a.done&&(o=n.return)&&o.call(n)}finally{if(s)throw s.error}}}})},e.prototype.error=function(t){var i=this;fr(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=t;for(var s=i.observers;s.length;)s.shift().error(t)}})},e.prototype.complete=function(){var t=this;fr(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var i=t.observers;i.length;)i.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(t){return this._throwIfClosed(),r.prototype._trySubscribe.call(this,t)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var i=this,s=this,o=s.hasError,n=s.isStopped,a=s.observers;return o||n?Mn:(this.currentObservers=null,a.push(t),new Br(function(){i.currentObservers=null,Ii(a,t)}))},e.prototype._checkFinalizedStatuses=function(t){var i=this,s=i.hasError,o=i.thrownError,n=i.isStopped;s?t.error(o):n&&t.complete()},e.prototype.asObservable=function(){var t=new Js;return t.source=this,t},e.create=function(t,i){return new Qs(t,i)},e}(Js),Qs=function(r){Zt(e,r);function e(t,i){var s=r.call(this)||this;return s.destination=t,s.source=i,s}return e.prototype.next=function(t){var i,s;(s=(i=this.destination)===null||i===void 0?void 0:i.next)===null||s===void 0||s.call(i,t)},e.prototype.error=function(t){var i,s;(s=(i=this.destination)===null||i===void 0?void 0:i.error)===null||s===void 0||s.call(i,t)},e.prototype.complete=function(){var t,i;(i=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||i===void 0||i.call(t)},e.prototype._subscribe=function(t){var i,s;return(s=(i=this.source)===null||i===void 0?void 0:i.subscribe(t))!==null&&s!==void 0?s:Mn},e}(Rn),Dn={now:function(){return(Dn.delegate||Date).now()},delegate:void 0},Md=function(r){Zt(e,r);function e(t,i,s){t===void 0&&(t=1/0),i===void 0&&(i=1/0),s===void 0&&(s=Dn);var o=r.call(this)||this;return o._bufferSize=t,o._windowTime=i,o._timestampProvider=s,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=i===1/0,o._bufferSize=Math.max(1,t),o._windowTime=Math.max(1,i),o}return e.prototype.next=function(t){var i=this,s=i.isStopped,o=i._buffer,n=i._infiniteTimeWindow,a=i._timestampProvider,l=i._windowTime;s||(o.push(t),!n&&o.push(a.now()+l)),this._trimBuffer(),r.prototype.next.call(this,t)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var i=this._innerSubscribe(t),s=this,o=s._infiniteTimeWindow,n=s._buffer,a=n.slice(),l=0;l<a.length&&!t.closed;l+=o?1:2)t.next(a[l]);return this._checkFinalizedStatuses(t),i},e.prototype._trimBuffer=function(){var t=this,i=t._bufferSize,s=t._timestampProvider,o=t._buffer,n=t._infiniteTimeWindow,a=(n?1:2)*i;if(i<1/0&&a<o.length&&o.splice(0,o.length-a),!n){for(var l=s.now(),d=0,u=1;u<o.length&&o[u]<=l;u+=2)d=u;d&&o.splice(0,d+1)}},e}(Rn);const eo=[],to={},Ld=(r,e=0)=>{if(eo.indexOf(r)==-1){const t=new Md(e);to[r]=t,eo.push(r)}return to[r]},rt=[];function Bd(r,e){return{subscribe:Rr(r,e).subscribe}}function Rr(r,e=le){let t;const i=new Set;function s(a){if(ss(r,a)&&(r=a,t)){const l=!rt.length;for(const d of i)d[1](),rt.push(d,r);if(l){for(let d=0;d<rt.length;d+=2)rt[d][0](rt[d+1]);rt.length=0}}}function o(a){s(a(r))}function n(a,l=le){const d=[a,l];return i.add(d),i.size===1&&(t=e(s,o)||le),a(r),()=>{i.delete(d),i.size===0&&t&&(t(),t=null)}}return{set:s,update:o,subscribe:n}}function vt(r,e,t){const i=!Array.isArray(r),s=i?[r]:r;if(!s.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=e.length<2;return Bd(t,(n,a)=>{let l=!1;const d=[];let u=0,h=le;const f=()=>{if(u)return;h();const _=e(i?d[0]:d,n,a);o?n(_):h=Fe(_)?_:le},m=s.map((_,g)=>vn(_,v=>{d[g]=v,u&=~(1<<g),l&&f()},()=>{u|=1<<g}));return l=!0,f(),function(){Se(m),h(),l=!1}})}function Rd(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Dd=function(e){return Hd(e)&&!zd(e)};function Hd(r){return!!r&&typeof r=="object"}function zd(r){var e=Object.prototype.toString.call(r);return e==="[object RegExp]"||e==="[object Date]"||Ud(r)}var Fd=typeof Symbol=="function"&&Symbol.for,Vd=Fd?Symbol.for("react.element"):60103;function Ud(r){return r.$$typeof===Vd}function $d(r){return Array.isArray(r)?[]:{}}function zt(r,e){return e.clone!==!1&&e.isMergeableObject(r)?ct($d(r),r,e):r}function jd(r,e,t){return r.concat(e).map(function(i){return zt(i,t)})}function Gd(r,e){if(!e.customMerge)return ct;var t=e.customMerge(r);return typeof t=="function"?t:ct}function qd(r){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(r).filter(function(e){return Object.propertyIsEnumerable.call(r,e)}):[]}function ro(r){return Object.keys(r).concat(qd(r))}function Hn(r,e){try{return e in r}catch(t){return!1}}function Wd(r,e){return Hn(r,e)&&!(Object.hasOwnProperty.call(r,e)&&Object.propertyIsEnumerable.call(r,e))}function Yd(r,e,t){var i={};return t.isMergeableObject(r)&&ro(r).forEach(function(s){i[s]=zt(r[s],t)}),ro(e).forEach(function(s){Wd(r,s)||(Hn(r,s)&&t.isMergeableObject(e[s])?i[s]=Gd(s,t)(r[s],e[s],t):i[s]=zt(e[s],t))}),i}function ct(r,e,t){t=t||{},t.arrayMerge=t.arrayMerge||jd,t.isMergeableObject=t.isMergeableObject||Dd,t.cloneUnlessOtherwiseSpecified=zt;var i=Array.isArray(e),s=Array.isArray(r),o=i===s;return o?i?t.arrayMerge(r,e,t):Yd(r,e,t):zt(e,t)}ct.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(i,s){return ct(i,s,t)},{})};var Zd=ct,Xd=Zd;const Jd=Rd(Xd);var Ni=function(r,e){return Ni=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(t[s]=i[s])},Ni(r,e)};function Dr(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Ni(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var Te=function(){return Te=Object.assign||function(e){for(var t,i=1,s=arguments.length;i<s;i++){t=arguments[i];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Te.apply(this,arguments)};function Kd(r,e){var t={};for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&e.indexOf(i)<0&&(t[i]=r[i]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(r);s<i.length;s++)e.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(r,i[s])&&(t[i[s]]=r[i[s]]);return t}function ei(r,e,t){if(t||arguments.length===2)for(var i=0,s=e.length,o;i<s;i++)(o||!(i in e))&&(o||(o=Array.prototype.slice.call(e,0,i)),o[i]=e[i]);return r.concat(o||Array.prototype.slice.call(e))}function ti(r,e){var t=e&&e.cache?e.cache:ou,i=e&&e.serializer?e.serializer:iu,s=e&&e.strategy?e.strategy:tu;return s(r,{cache:t,serializer:i})}function Qd(r){return r==null||typeof r=="number"||typeof r=="boolean"}function eu(r,e,t,i){var s=Qd(i)?i:t(i),o=e.get(s);return typeof o=="undefined"&&(o=r.call(this,i),e.set(s,o)),o}function zn(r,e,t){var i=Array.prototype.slice.call(arguments,3),s=t(i),o=e.get(s);return typeof o=="undefined"&&(o=r.apply(this,i),e.set(s,o)),o}function Fn(r,e,t,i,s){return t.bind(e,r,i,s)}function tu(r,e){var t=r.length===1?eu:zn;return Fn(r,this,t,e.cache.create(),e.serializer)}function ru(r,e){return Fn(r,this,zn,e.cache.create(),e.serializer)}var iu=function(){return JSON.stringify(arguments)},su=function(){function r(){this.cache=Object.create(null)}return r.prototype.get=function(e){return this.cache[e]},r.prototype.set=function(e,t){this.cache[e]=t},r}(),ou={create:function(){return new su}},ri={variadic:ru},Pr=function(){return Pr=Object.assign||function(e){for(var t,i=1,s=arguments.length;i<s;i++){t=arguments[i];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Pr.apply(this,arguments)};var O;(function(r){r[r.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",r[r.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",r[r.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",r[r.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",r[r.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",r[r.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",r[r.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",r[r.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",r[r.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",r[r.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",r[r.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",r[r.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",r[r.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",r[r.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",r[r.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",r[r.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",r[r.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",r[r.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",r[r.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",r[r.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",r[r.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",r[r.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",r[r.INVALID_TAG=23]="INVALID_TAG",r[r.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",r[r.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",r[r.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(O||(O={}));var q;(function(r){r[r.literal=0]="literal",r[r.argument=1]="argument",r[r.number=2]="number",r[r.date=3]="date",r[r.time=4]="time",r[r.select=5]="select",r[r.plural=6]="plural",r[r.pound=7]="pound",r[r.tag=8]="tag"})(q||(q={}));var ft;(function(r){r[r.number=0]="number",r[r.dateTime=1]="dateTime"})(ft||(ft={}));function io(r){return r.type===q.literal}function nu(r){return r.type===q.argument}function Vn(r){return r.type===q.number}function Un(r){return r.type===q.date}function $n(r){return r.type===q.time}function jn(r){return r.type===q.select}function Gn(r){return r.type===q.plural}function au(r){return r.type===q.pound}function qn(r){return r.type===q.tag}function Wn(r){return!!(r&&typeof r=="object"&&r.type===ft.number)}function ki(r){return!!(r&&typeof r=="object"&&r.type===ft.dateTime)}var Yn=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,lu=/(?:[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 du(r){var e={};return r.replace(lu,function(t){var i=t.length;switch(t[0]){case"G":e.era=i===4?"long":i===5?"narrow":"short";break;case"y":e.year=i===2?"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":e.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":e.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":e.weekday=i===4?"long":i===5?"narrow":"short";break;case"e":if(i<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][i-4];break;case"c":if(i<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][i-4];break;case"a":e.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":e.hourCycle="h12",e.hour=["numeric","2-digit"][i-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][i-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][i-1];break;case"k":e.hourCycle="h24",e.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":e.minute=["numeric","2-digit"][i-1];break;case"s":e.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":e.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""}),e}var K=function(){return K=Object.assign||function(e){for(var t,i=1,s=arguments.length;i<s;i++){t=arguments[i];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},K.apply(this,arguments)};var uu=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function hu(r){if(r.length===0)throw new Error("Number skeleton cannot be empty");for(var e=r.split(uu).filter(function(f){return f.length>0}),t=[],i=0,s=e;i<s.length;i++){var o=s[i],n=o.split("/");if(n.length===0)throw new Error("Invalid number skeleton");for(var a=n[0],l=n.slice(1),d=0,u=l;d<u.length;d++){var h=u[d];if(h.length===0)throw new Error("Invalid number skeleton")}t.push({stem:a,options:l})}return t}function cu(r){return r.replace(/^(.*?)-/,"")}var so=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Zn=/^(@+)?(\+|#+)?[rs]?$/g,fu=/(\*)(0+)|(#+)(0+)|(0+)/g,Xn=/^(0+)$/;function oo(r){var e={};return r[r.length-1]==="r"?e.roundingPriority="morePrecision":r[r.length-1]==="s"&&(e.roundingPriority="lessPrecision"),r.replace(Zn,function(t,i,s){return typeof s!="string"?(e.minimumSignificantDigits=i.length,e.maximumSignificantDigits=i.length):s==="+"?e.minimumSignificantDigits=i.length:i[0]==="#"?e.maximumSignificantDigits=i.length:(e.minimumSignificantDigits=i.length,e.maximumSignificantDigits=i.length+(typeof s=="string"?s.length:0)),""}),e}function Jn(r){switch(r){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 pu(r){var e;if(r[0]==="E"&&r[1]==="E"?(e={notation:"engineering"},r=r.slice(2)):r[0]==="E"&&(e={notation:"scientific"},r=r.slice(1)),e){var t=r.slice(0,2);if(t==="+!"?(e.signDisplay="always",r=r.slice(2)):t==="+?"&&(e.signDisplay="exceptZero",r=r.slice(2)),!Xn.test(r))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=r.length}return e}function no(r){var e={},t=Jn(r);return t||e}function mu(r){for(var e={},t=0,i=r;t<i.length;t++){var s=i[t];switch(s.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=s.options[0];continue;case"group-off":case",_":e.useGrouping=!1;continue;case"precision-integer":case".":e.maximumFractionDigits=0;continue;case"measure-unit":case"unit":e.style="unit",e.unit=cu(s.options[0]);continue;case"compact-short":case"K":e.notation="compact",e.compactDisplay="short";continue;case"compact-long":case"KK":e.notation="compact",e.compactDisplay="long";continue;case"scientific":e=K(K(K({},e),{notation:"scientific"}),s.options.reduce(function(l,d){return K(K({},l),no(d))},{}));continue;case"engineering":e=K(K(K({},e),{notation:"engineering"}),s.options.reduce(function(l,d){return K(K({},l),no(d))},{}));continue;case"notation-simple":e.notation="standard";continue;case"unit-width-narrow":e.currencyDisplay="narrowSymbol",e.unitDisplay="narrow";continue;case"unit-width-short":e.currencyDisplay="code",e.unitDisplay="short";continue;case"unit-width-full-name":e.currencyDisplay="name",e.unitDisplay="long";continue;case"unit-width-iso-code":e.currencyDisplay="symbol";continue;case"scale":e.scale=parseFloat(s.options[0]);continue;case"rounding-mode-floor":e.roundingMode="floor";continue;case"rounding-mode-ceiling":e.roundingMode="ceil";continue;case"rounding-mode-down":e.roundingMode="trunc";continue;case"rounding-mode-up":e.roundingMode="expand";continue;case"rounding-mode-half-even":e.roundingMode="halfEven";continue;case"rounding-mode-half-down":e.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":e.roundingMode="halfExpand";continue;case"integer-width":if(s.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");s.options[0].replace(fu,function(l,d,u,h,f,m){if(d)e.minimumIntegerDigits=u.length;else{if(h&&f)throw new Error("We currently do not support maximum integer digits");if(m)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Xn.test(s.stem)){e.minimumIntegerDigits=s.stem.length;continue}if(so.test(s.stem)){if(s.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");s.stem.replace(so,function(l,d,u,h,f,m){return u==="*"?e.minimumFractionDigits=d.length:h&&h[0]==="#"?e.maximumFractionDigits=h.length:f&&m?(e.minimumFractionDigits=f.length,e.maximumFractionDigits=f.length+m.length):(e.minimumFractionDigits=d.length,e.maximumFractionDigits=d.length),""});var o=s.options[0];o==="w"?e=K(K({},e),{trailingZeroDisplay:"stripIfInteger"}):o&&(e=K(K({},e),oo(o)));continue}if(Zn.test(s.stem)){e=K(K({},e),oo(s.stem));continue}var n=Jn(s.stem);n&&(e=K(K({},e),n));var a=pu(s.stem);a&&(e=K(K({},e),a))}return e}var or={"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 _u(r,e){for(var t="",i=0;i<r.length;i++){var s=r.charAt(i);if(s==="j"){for(var o=0;i+1<r.length&&r.charAt(i+1)===s;)o++,i++;var n=1+(o&1),a=o<2?1:3+(o>>1),l="a",d=gu(e);for((d=="H"||d=="k")&&(a=0);a-- >0;)t+=l;for(;n-- >0;)t=d+t}else s==="J"?t+="H":t+=s}return t}function gu(r){var e=r.hourCycle;if(e===void 0&&r.hourCycles&&r.hourCycles.length&&(e=r.hourCycles[0]),e)switch(e){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var t=r.language,i;t!=="root"&&(i=r.maximize().region);var s=or[i||""]||or[t||""]||or["".concat(t,"-001")]||or["001"];return s[0]}var ii,bu=new RegExp("^".concat(Yn.source,"*")),vu=new RegExp("".concat(Yn.source,"*$"));function M(r,e){return{start:r,end:e}}var yu=!!String.prototype.startsWith&&"_a".startsWith("a",1),wu=!!String.fromCodePoint,xu=!!Object.fromEntries,Pu=!!String.prototype.codePointAt,Eu=!!String.prototype.trimStart,Cu=!!String.prototype.trimEnd,Su=!!Number.isSafeInteger,Au=Su?Number.isSafeInteger:function(r){return typeof r=="number"&&isFinite(r)&&Math.floor(r)===r&&Math.abs(r)<=9007199254740991},Mi=!0;try{var Tu=Qn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Mi=((ii=Tu.exec("a"))===null||ii===void 0?void 0:ii[0])==="a"}catch(r){Mi=!1}var ao=yu?function(e,t,i){return e.startsWith(t,i)}:function(e,t,i){return e.slice(i,i+t.length)===t},Li=wu?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var i="",s=e.length,o=0,n;s>o;){if(n=e[o++],n>1114111)throw RangeError(n+" is not a valid code point");i+=n<65536?String.fromCharCode(n):String.fromCharCode(((n-=65536)>>10)+55296,n%1024+56320)}return i},lo=xu?Object.fromEntries:function(e){for(var t={},i=0,s=e;i<s.length;i++){var o=s[i],n=o[0],a=o[1];t[n]=a}return t},Kn=Pu?function(e,t){return e.codePointAt(t)}:function(e,t){var i=e.length;if(!(t<0||t>=i)){var s=e.charCodeAt(t),o;return s<55296||s>56319||t+1===i||(o=e.charCodeAt(t+1))<56320||o>57343?s:(s-55296<<10)+(o-56320)+65536}},Iu=Eu?function(e){return e.trimStart()}:function(e){return e.replace(bu,"")},Ou=Cu?function(e){return e.trimEnd()}:function(e){return e.replace(vu,"")};function Qn(r,e){return new RegExp(r,e)}var Bi;if(Mi){var uo=Qn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Bi=function(e,t){var i;uo.lastIndex=t;var s=uo.exec(e);return(i=s[1])!==null&&i!==void 0?i:""}}else Bi=function(e,t){for(var i=[];;){var s=Kn(e,t);if(s===void 0||ea(s)||Lu(s))break;i.push(s),t+=s>=65536?2:1}return Li.apply(void 0,i)};var Nu=function(){function r(e,t){t===void 0&&(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 r.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},r.prototype.parseMessage=function(e,t,i){for(var s=[];!this.isEOF();){var o=this.char();if(o===123){var n=this.parseArgument(e,i);if(n.err)return n;s.push(n.val)}else{if(o===125&&e>0)break;if(o===35&&(t==="plural"||t==="selectordinal")){var a=this.clonePosition();this.bump(),s.push({type:q.pound,location:M(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(i)break;return this.error(O.UNMATCHED_CLOSING_TAG,M(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&Ri(this.peek()||0)){var n=this.parseTag(e,t);if(n.err)return n;s.push(n.val)}else{var n=this.parseLiteral(e,t);if(n.err)return n;s.push(n.val)}}}return{val:s,err:null}},r.prototype.parseTag=function(e,t){var i=this.clonePosition();this.bump();var s=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:q.literal,value:"<".concat(s,"/>"),location:M(i,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(e+1,t,!0);if(o.err)return o;var n=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Ri(this.char()))return this.error(O.INVALID_TAG,M(a,this.clonePosition()));var l=this.clonePosition(),d=this.parseTagName();return s!==d?this.error(O.UNMATCHED_CLOSING_TAG,M(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:q.tag,value:s,children:n,location:M(i,this.clonePosition())},err:null}:this.error(O.INVALID_TAG,M(a,this.clonePosition())))}else return this.error(O.UNCLOSED_TAG,M(i,this.clonePosition()))}else return this.error(O.INVALID_TAG,M(i,this.clonePosition()))},r.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&Mu(this.char());)this.bump();return this.message.slice(e,this.offset())},r.prototype.parseLiteral=function(e,t){for(var i=this.clonePosition(),s="";;){var o=this.tryParseQuote(t);if(o){s+=o;continue}var n=this.tryParseUnquoted(e,t);if(n){s+=n;continue}var a=this.tryParseLeftAngleBracket();if(a){s+=a;continue}break}var l=M(i,this.clonePosition());return{val:{type:q.literal,value:s,location:l},err:null}},r.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!ku(this.peek()||0))?(this.bump(),"<"):null},r.prototype.tryParseQuote=function(e){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(e==="plural"||e==="selectordinal")break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var i=this.char();if(i===39)if(this.peek()===39)t.push(39),this.bump();else{this.bump();break}else t.push(i);this.bump()}return Li.apply(void 0,t)},r.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var i=this.char();return i===60||i===123||i===35&&(t==="plural"||t==="selectordinal")||i===125&&e>0?null:(this.bump(),Li(i))},r.prototype.parseArgument=function(e,t){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE,M(i,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(O.EMPTY_ARGUMENT,M(i,this.clonePosition()));var s=this.parseIdentifierIfPossible().value;if(!s)return this.error(O.MALFORMED_ARGUMENT,M(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE,M(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:q.argument,value:s,location:M(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE,M(i,this.clonePosition())):this.parseArgumentOptions(e,t,s,i);default:return this.error(O.MALFORMED_ARGUMENT,M(i,this.clonePosition()))}},r.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),i=Bi(this.message,t),s=t+i.length;this.bumpTo(s);var o=this.clonePosition(),n=M(e,o);return{value:i,location:n}},r.prototype.parseArgumentOptions=function(e,t,i,s){var o,n=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(O.EXPECT_ARGUMENT_TYPE,M(n,l));case"number":case"date":case"time":{this.bumpSpace();var d=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition(),h=this.parseSimpleArgStyleIfPossible();if(h.err)return h;var f=Ou(h.val);if(f.length===0)return this.error(O.EXPECT_ARGUMENT_STYLE,M(this.clonePosition(),this.clonePosition()));var m=M(u,this.clonePosition());d={style:f,styleLocation:m}}var _=this.tryParseArgumentClose(s);if(_.err)return _;var g=M(s,this.clonePosition());if(d&&ao(d==null?void 0:d.style,"::",0)){var v=Iu(d.style.slice(2));if(a==="number"){var h=this.parseNumberSkeletonFromString(v,d.styleLocation);return h.err?h:{val:{type:q.number,value:i,location:g,style:h.val},err:null}}else{if(v.length===0)return this.error(O.EXPECT_DATE_TIME_SKELETON,g);var w=v;this.locale&&(w=_u(v,this.locale));var f={type:ft.dateTime,pattern:w,location:d.styleLocation,parsedOptions:this.shouldParseSkeletons?du(w):{}},y=a==="date"?q.date:q.time;return{val:{type:y,value:i,location:g,style:f},err:null}}}return{val:{type:a==="number"?q.number:a==="date"?q.date:q.time,value:i,location:g,style:(o=d==null?void 0:d.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var E=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(O.EXPECT_SELECT_ARGUMENT_OPTIONS,M(E,Pr({},E)));this.bumpSpace();var T=this.parseIdentifierIfPossible(),C=0;if(a!=="select"&&T.value==="offset"){if(!this.bumpIf(":"))return this.error(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,M(this.clonePosition(),this.clonePosition()));this.bumpSpace();var h=this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,O.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(h.err)return h;this.bumpSpace(),T=this.parseIdentifierIfPossible(),C=h.val}var D=this.tryParsePluralOrSelectOptions(e,a,t,T);if(D.err)return D;var _=this.tryParseArgumentClose(s);if(_.err)return _;var z=M(s,this.clonePosition());return a==="select"?{val:{type:q.select,value:i,options:lo(D.val),location:z},err:null}:{val:{type:q.plural,value:i,options:lo(D.val),offset:C,pluralType:a==="plural"?"cardinal":"ordinal",location:z},err:null}}default:return this.error(O.INVALID_ARGUMENT_TYPE,M(n,l))}},r.prototype.tryParseArgumentClose=function(e){return this.isEOF()||this.char()!==125?this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE,M(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},r.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){var i=this.char();switch(i){case 39:{this.bump();var s=this.clonePosition();if(!this.bumpUntil("'"))return this.error(O.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,M(s,this.clonePosition()));this.bump();break}case 123:{e+=1,this.bump();break}case 125:{if(e>0)e-=1;else return{val:this.message.slice(t.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(t.offset,this.offset()),err:null}},r.prototype.parseNumberSkeletonFromString=function(e,t){var i=[];try{i=hu(e)}catch(s){return this.error(O.INVALID_NUMBER_SKELETON,t)}return{val:{type:ft.number,tokens:i,location:t,parsedOptions:this.shouldParseSkeletons?mu(i):{}},err:null}},r.prototype.tryParsePluralOrSelectOptions=function(e,t,i,s){for(var o,n=!1,a=[],l=new Set,d=s.value,u=s.location;;){if(d.length===0){var h=this.clonePosition();if(t!=="select"&&this.bumpIf("=")){var f=this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_SELECTOR,O.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;u=M(h,this.clonePosition()),d=this.message.slice(h.offset,this.offset())}else break}if(l.has(d))return this.error(t==="select"?O.DUPLICATE_SELECT_ARGUMENT_SELECTOR:O.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);d==="other"&&(n=!0),this.bumpSpace();var m=this.clonePosition();if(!this.bumpIf("{"))return this.error(t==="select"?O.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:O.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,M(this.clonePosition(),this.clonePosition()));var _=this.parseMessage(e+1,t,i);if(_.err)return _;var g=this.tryParseArgumentClose(m);if(g.err)return g;a.push([d,{value:_.val,location:M(m,this.clonePosition())}]),l.add(d),this.bumpSpace(),o=this.parseIdentifierIfPossible(),d=o.value,u=o.location}return a.length===0?this.error(t==="select"?O.EXPECT_SELECT_ARGUMENT_SELECTOR:O.EXPECT_PLURAL_ARGUMENT_SELECTOR,M(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!n?this.error(O.MISSING_OTHER_CLAUSE,M(this.clonePosition(),this.clonePosition())):{val:a,err:null}},r.prototype.tryParseDecimalInteger=function(e,t){var i=1,s=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var o=!1,n=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)o=!0,n=n*10+(a-48),this.bump();else break}var l=M(s,this.clonePosition());return o?(n*=i,Au(n)?{val:n,err:null}:this.error(t,l)):this.error(e,l)},r.prototype.offset=function(){return this.position.offset},r.prototype.isEOF=function(){return this.offset()===this.message.length},r.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},r.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Kn(this.message,e);if(t===void 0)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},r.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},r.prototype.bump=function(){if(!this.isEOF()){var e=this.char();e===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},r.prototype.bumpIf=function(e){if(ao(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},r.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)},r.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}},r.prototype.bumpSpace=function(){for(;!this.isEOF()&&ea(this.char());)this.bump()},r.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 i!=null?i:null},r}();function Ri(r){return r>=97&&r<=122||r>=65&&r<=90}function ku(r){return Ri(r)||r===47}function Mu(r){return r===45||r===46||r>=48&&r<=57||r===95||r>=97&&r<=122||r>=65&&r<=90||r==183||r>=192&&r<=214||r>=216&&r<=246||r>=248&&r<=893||r>=895&&r<=8191||r>=8204&&r<=8205||r>=8255&&r<=8256||r>=8304&&r<=8591||r>=11264&&r<=12271||r>=12289&&r<=55295||r>=63744&&r<=64975||r>=65008&&r<=65533||r>=65536&&r<=983039}function ea(r){return r>=9&&r<=13||r===32||r===133||r>=8206&&r<=8207||r===8232||r===8233}function Lu(r){return r>=33&&r<=35||r===36||r>=37&&r<=39||r===40||r===41||r===42||r===43||r===44||r===45||r>=46&&r<=47||r>=58&&r<=59||r>=60&&r<=62||r>=63&&r<=64||r===91||r===92||r===93||r===94||r===96||r===123||r===124||r===125||r===126||r===161||r>=162&&r<=165||r===166||r===167||r===169||r===171||r===172||r===174||r===176||r===177||r===182||r===187||r===191||r===215||r===247||r>=8208&&r<=8213||r>=8214&&r<=8215||r===8216||r===8217||r===8218||r>=8219&&r<=8220||r===8221||r===8222||r===8223||r>=8224&&r<=8231||r>=8240&&r<=8248||r===8249||r===8250||r>=8251&&r<=8254||r>=8257&&r<=8259||r===8260||r===8261||r===8262||r>=8263&&r<=8273||r===8274||r===8275||r>=8277&&r<=8286||r>=8592&&r<=8596||r>=8597&&r<=8601||r>=8602&&r<=8603||r>=8604&&r<=8607||r===8608||r>=8609&&r<=8610||r===8611||r>=8612&&r<=8613||r===8614||r>=8615&&r<=8621||r===8622||r>=8623&&r<=8653||r>=8654&&r<=8655||r>=8656&&r<=8657||r===8658||r===8659||r===8660||r>=8661&&r<=8691||r>=8692&&r<=8959||r>=8960&&r<=8967||r===8968||r===8969||r===8970||r===8971||r>=8972&&r<=8991||r>=8992&&r<=8993||r>=8994&&r<=9e3||r===9001||r===9002||r>=9003&&r<=9083||r===9084||r>=9085&&r<=9114||r>=9115&&r<=9139||r>=9140&&r<=9179||r>=9180&&r<=9185||r>=9186&&r<=9254||r>=9255&&r<=9279||r>=9280&&r<=9290||r>=9291&&r<=9311||r>=9472&&r<=9654||r===9655||r>=9656&&r<=9664||r===9665||r>=9666&&r<=9719||r>=9720&&r<=9727||r>=9728&&r<=9838||r===9839||r>=9840&&r<=10087||r===10088||r===10089||r===10090||r===10091||r===10092||r===10093||r===10094||r===10095||r===10096||r===10097||r===10098||r===10099||r===10100||r===10101||r>=10132&&r<=10175||r>=10176&&r<=10180||r===10181||r===10182||r>=10183&&r<=10213||r===10214||r===10215||r===10216||r===10217||r===10218||r===10219||r===10220||r===10221||r===10222||r===10223||r>=10224&&r<=10239||r>=10240&&r<=10495||r>=10496&&r<=10626||r===10627||r===10628||r===10629||r===10630||r===10631||r===10632||r===10633||r===10634||r===10635||r===10636||r===10637||r===10638||r===10639||r===10640||r===10641||r===10642||r===10643||r===10644||r===10645||r===10646||r===10647||r===10648||r>=10649&&r<=10711||r===10712||r===10713||r===10714||r===10715||r>=10716&&r<=10747||r===10748||r===10749||r>=10750&&r<=11007||r>=11008&&r<=11055||r>=11056&&r<=11076||r>=11077&&r<=11078||r>=11079&&r<=11084||r>=11085&&r<=11123||r>=11124&&r<=11125||r>=11126&&r<=11157||r===11158||r>=11159&&r<=11263||r>=11776&&r<=11777||r===11778||r===11779||r===11780||r===11781||r>=11782&&r<=11784||r===11785||r===11786||r===11787||r===11788||r===11789||r>=11790&&r<=11798||r===11799||r>=11800&&r<=11801||r===11802||r===11803||r===11804||r===11805||r>=11806&&r<=11807||r===11808||r===11809||r===11810||r===11811||r===11812||r===11813||r===11814||r===11815||r===11816||r===11817||r>=11818&&r<=11822||r===11823||r>=11824&&r<=11833||r>=11834&&r<=11835||r>=11836&&r<=11839||r===11840||r===11841||r===11842||r>=11843&&r<=11855||r>=11856&&r<=11857||r===11858||r>=11859&&r<=11903||r>=12289&&r<=12291||r===12296||r===12297||r===12298||r===12299||r===12300||r===12301||r===12302||r===12303||r===12304||r===12305||r>=12306&&r<=12307||r===12308||r===12309||r===12310||r===12311||r===12312||r===12313||r===12314||r===12315||r===12316||r===12317||r>=12318&&r<=12319||r===12320||r===12336||r===64830||r===64831||r>=65093&&r<=65094}function Di(r){r.forEach(function(e){if(delete e.location,jn(e)||Gn(e))for(var t in e.options)delete e.options[t].location,Di(e.options[t].value);else Vn(e)&&Wn(e.style)||(Un(e)||$n(e))&&ki(e.style)?delete e.style.location:qn(e)&&Di(e.children)})}function Bu(r,e){e===void 0&&(e={}),e=Pr({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var t=new Nu(r,e).parse();if(t.err){var i=SyntaxError(O[t.err.kind]);throw i.location=t.err.location,i.originalMessage=t.err.message,i}return e!=null&&e.captureLocation||Di(t.val),t.val}var pt;(function(r){r.MISSING_VALUE="MISSING_VALUE",r.INVALID_VALUE="INVALID_VALUE",r.MISSING_INTL_API="MISSING_INTL_API"})(pt||(pt={}));var Hr=function(r){Dr(e,r);function e(t,i,s){var o=r.call(this,t)||this;return o.code=i,o.originalMessage=s,o}return e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),ho=function(r){Dr(e,r);function e(t,i,s,o){return r.call(this,'Invalid values for "'.concat(t,'": "').concat(i,'". Options are "').concat(Object.keys(s).join('", "'),'"'),pt.INVALID_VALUE,o)||this}return e}(Hr),Ru=function(r){Dr(e,r);function e(t,i,s){return r.call(this,'Value for "'.concat(t,'" must be of type ').concat(i),pt.INVALID_VALUE,s)||this}return e}(Hr),Du=function(r){Dr(e,r);function e(t,i){return r.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(i,'"'),pt.MISSING_VALUE,i)||this}return e}(Hr),fe;(function(r){r[r.literal=0]="literal",r[r.object=1]="object"})(fe||(fe={}));function Hu(r){return r.length<2?r:r.reduce(function(e,t){var i=e[e.length-1];return!i||i.type!==fe.literal||t.type!==fe.literal?e.push(t):i.value+=t.value,e},[])}function zu(r){return typeof r=="function"}function pr(r,e,t,i,s,o,n){if(r.length===1&&io(r[0]))return[{type:fe.literal,value:r[0].value}];for(var a=[],l=0,d=r;l<d.length;l++){var u=d[l];if(io(u)){a.push({type:fe.literal,value:u.value});continue}if(au(u)){typeof o=="number"&&a.push({type:fe.literal,value:t.getNumberFormat(e).format(o)});continue}var h=u.value;if(!(s&&h in s))throw new Du(h,n);var f=s[h];if(nu(u)){(!f||typeof f=="string"||typeof f=="number")&&(f=typeof f=="string"||typeof f=="number"?String(f):""),a.push({type:typeof f=="string"?fe.literal:fe.object,value:f});continue}if(Un(u)){var m=typeof u.style=="string"?i.date[u.style]:ki(u.style)?u.style.parsedOptions:void 0;a.push({type:fe.literal,value:t.getDateTimeFormat(e,m).format(f)});continue}if($n(u)){var m=typeof u.style=="string"?i.time[u.style]:ki(u.style)?u.style.parsedOptions:i.time.medium;a.push({type:fe.literal,value:t.getDateTimeFormat(e,m).format(f)});continue}if(Vn(u)){var m=typeof u.style=="string"?i.number[u.style]:Wn(u.style)?u.style.parsedOptions:void 0;m&&m.scale&&(f=f*(m.scale||1)),a.push({type:fe.literal,value:t.getNumberFormat(e,m).format(f)});continue}if(qn(u)){var _=u.children,g=u.value,v=s[g];if(!zu(v))throw new Ru(g,"function",n);var w=pr(_,e,t,i,s,o),y=v(w.map(function(C){return C.value}));Array.isArray(y)||(y=[y]),a.push.apply(a,y.map(function(C){return{type:typeof C=="string"?fe.literal:fe.object,value:C}}))}if(jn(u)){var E=u.options[f]||u.options.other;if(!E)throw new ho(u.value,f,Object.keys(u.options),n);a.push.apply(a,pr(E.value,e,t,i,s));continue}if(Gn(u)){var E=u.options["=".concat(f)];if(!E){if(!Intl.PluralRules)throw new Hr(`Intl.PluralRules is not available in this environment.
|
|
17
20
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
18
|
-
`,ot.MISSING_INTL_API,n);var k=e.getPluralRules(t,{type:h.pluralType}).select(f-(h.offset||0));S=h.options[k]||h.options.other}if(!S)throw new zs(h.value,f,Object.keys(h.options),n);a.push.apply(a,or(S.value,t,e,i,s,f-(h.offset||0)));continue}}return Yd(a)}function Xd(r,t){return t?Te(Te(Te({},r||{}),t||{}),Object.keys(r).reduce(function(e,i){return e[i]=Te(Te({},r[i]),t[i]||{}),e},{})):r}function Jd(r,t){return t?Object.keys(r).reduce(function(e,i){return e[i]=Xd(r[i],t[i]),e},Te({},r)):r}function jr(r){return{create:function(){return{get:function(t){return r[t]},set:function(t,e){r[t]=e}}}}}function Kd(r){return r===void 0&&(r={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Vr(function(){for(var t,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return new((t=Intl.NumberFormat).bind.apply(t,Fr([void 0],e,!1)))},{cache:jr(r.number),strategy:$r.variadic}),getDateTimeFormat:Vr(function(){for(var t,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return new((t=Intl.DateTimeFormat).bind.apply(t,Fr([void 0],e,!1)))},{cache:jr(r.dateTime),strategy:$r.variadic}),getPluralRules:Vr(function(){for(var t,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return new((t=Intl.PluralRules).bind.apply(t,Fr([void 0],e,!1)))},{cache:jr(r.pluralRules),strategy:$r.variadic})}}var Qd=function(){function r(t,e,i,s){e===void 0&&(e=r.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var d=o.formatToParts(l);if(d.length===1)return d[0].value;var h=d.reduce(function(u,f){return!u.length||f.type!==fe.literal||typeof u[u.length-1]!="string"?u.push(f.value):u[u.length-1]+=f.value,u},[]);return h.length<=1?h[0]||"":h},this.formatToParts=function(l){return or(o.ast,o.locales,o.formatters,o.formats,l,void 0,o.message)},this.resolvedOptions=function(){var l;return{locale:((l=o.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=e,this.resolvedLocale=r.resolveLocale(e),typeof t=="string"){if(this.message=t,!r.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var n=s||{};n.formatters;var a=ld(n,["formatters"]);this.ast=r.__parse(t,Te(Te({},a),{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=Jd(r.formats,i),this.formatters=s&&s.formatters||Kd(this.formatterCache)}return Object.defineProperty(r,"defaultLocale",{get:function(){return r.memoizedDefaultLocale||(r.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),r.memoizedDefaultLocale},enumerable:!1,configurable:!0}),r.memoizedDefaultLocale=null,r.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var e=Intl.NumberFormat.supportedLocalesOf(t);return e.length>0?new Intl.Locale(e[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},r.__parse=Gd,r.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"}}},r}();function eh(r,t){if(t==null)return;if(t in r)return r[t];const e=t.split(".");let i=r;for(let s=0;s<e.length;s++)if(typeof i=="object"){if(s>0){const o=e.slice(s,e.length).join(".");if(o in i){i=i[o];break}}i=i[e[s]]}else i=void 0;return i}const Me={},th=(r,t,e)=>e&&(t in Me||(Me[t]={}),r in Me[t]||(Me[t][r]=e),e),vn=(r,t)=>{if(t==null)return;if(t in Me&&r in Me[t])return Me[t][r];const e=Cr(t);for(let i=0;i<e.length;i++){const s=e[i],o=ih(s,r);if(o)return th(r,t,o)}};let Gi;const ut=xr({});function rh(r){return Gi[r]||null}function yn(r){return r in Gi}function ih(r,t){if(!yn(r))return null;const e=rh(r);return eh(e,t)}function sh(r){if(r==null)return;const t=Cr(r);for(let e=0;e<t.length;e++){const i=t[e];if(yn(i))return i}}function wn(r,...t){delete Me[r],ut.update(e=>(e[r]=ad.all([e[r]||{},...t]),e))}ht([ut],([r])=>Object.keys(r));ut.subscribe(r=>Gi=r);const nr={};function oh(r,t){nr[r].delete(t),nr[r].size===0&&delete nr[r]}function xn(r){return nr[r]}function nh(r){return Cr(r).map(t=>{const e=xn(t);return[t,e?[...e]:[]]}).filter(([,t])=>t.length>0)}function Ei(r){return r==null?!1:Cr(r).some(t=>{var e;return(e=xn(t))==null?void 0:e.size})}function ah(r,t){return Promise.all(t.map(i=>(oh(r,i),i().then(s=>s.default||s)))).then(i=>wn(r,...i))}const bt={};function Pn(r){if(!Ei(r))return r in bt?bt[r]:Promise.resolve();const t=nh(r);return bt[r]=Promise.all(t.map(([e,i])=>ah(e,i))).then(()=>{if(Ei(r))return Pn(r);delete bt[r]}),bt[r]}const lh={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"}}},dh={fallbackLocale:null,loadingDelay:200,formats:lh,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},hh=dh;function nt(){return hh}const Gr=xr(!1);var uh=Object.defineProperty,ch=Object.defineProperties,fh=Object.getOwnPropertyDescriptors,Fs=Object.getOwnPropertySymbols,ph=Object.prototype.hasOwnProperty,mh=Object.prototype.propertyIsEnumerable,Vs=(r,t,e)=>t in r?uh(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,_h=(r,t)=>{for(var e in t||(t={}))ph.call(t,e)&&Vs(r,e,t[e]);if(Fs)for(var e of Fs(t))mh.call(t,e)&&Vs(r,e,t[e]);return r},gh=(r,t)=>ch(r,fh(t));let Ci;const ur=xr(null);function $s(r){return r.split("-").map((t,e,i)=>i.slice(0,e+1).join("-")).reverse()}function Cr(r,t=nt().fallbackLocale){const e=$s(r);return t?[...new Set([...e,...$s(t)])]:e}function je(){return Ci!=null?Ci:void 0}ur.subscribe(r=>{Ci=r!=null?r:void 0,typeof window!="undefined"&&r!=null&&document.documentElement.setAttribute("lang",r)});const bh=r=>{if(r&&sh(r)&&Ei(r)){const{loadingDelay:t}=nt();let e;return typeof window!="undefined"&&je()!=null&&t?e=window.setTimeout(()=>Gr.set(!0),t):Gr.set(!0),Pn(r).then(()=>{ur.set(r)}).finally(()=>{clearTimeout(e),Gr.set(!1)})}return ur.set(r)},Be=gh(_h({},ur),{set:bh}),Sr=r=>{const t=Object.create(null);return i=>{const s=JSON.stringify(i);return s in t?t[s]:t[s]=r(i)}};var vh=Object.defineProperty,cr=Object.getOwnPropertySymbols,En=Object.prototype.hasOwnProperty,Cn=Object.prototype.propertyIsEnumerable,Us=(r,t,e)=>t in r?vh(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,Wi=(r,t)=>{for(var e in t||(t={}))En.call(t,e)&&Us(r,e,t[e]);if(cr)for(var e of cr(t))Cn.call(t,e)&&Us(r,e,t[e]);return r},ct=(r,t)=>{var e={};for(var i in r)En.call(r,i)&&t.indexOf(i)<0&&(e[i]=r[i]);if(r!=null&&cr)for(var i of cr(r))t.indexOf(i)<0&&Cn.call(r,i)&&(e[i]=r[i]);return e};const Mt=(r,t)=>{const{formats:e}=nt();if(r in e&&t in e[r])return e[r][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${r} format.`)},yh=Sr(r=>{var t=r,{locale:e,format:i}=t,s=ct(t,["locale","format"]);if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return i&&(s=Mt("number",i)),new Intl.NumberFormat(e,s)}),wh=Sr(r=>{var t=r,{locale:e,format:i}=t,s=ct(t,["locale","format"]);if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return i?s=Mt("date",i):Object.keys(s).length===0&&(s=Mt("date","short")),new Intl.DateTimeFormat(e,s)}),xh=Sr(r=>{var t=r,{locale:e,format:i}=t,s=ct(t,["locale","format"]);if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return i?s=Mt("time",i):Object.keys(s).length===0&&(s=Mt("time","short")),new Intl.DateTimeFormat(e,s)}),Ph=(r={})=>{var t=r,{locale:e=je()}=t,i=ct(t,["locale"]);return yh(Wi({locale:e},i))},Eh=(r={})=>{var t=r,{locale:e=je()}=t,i=ct(t,["locale"]);return wh(Wi({locale:e},i))},Ch=(r={})=>{var t=r,{locale:e=je()}=t,i=ct(t,["locale"]);return xh(Wi({locale:e},i))},Sh=Sr((r,t=je())=>new Qd(r,t,nt().formats,{ignoreTag:nt().ignoreTag})),Ah=(r,t={})=>{var e,i,s,o;let n=t;typeof r=="object"&&(n=r,r=n.id);const{values:a,locale:l=je(),default:d}=n;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let h=vn(r,l);if(!h)h=(o=(s=(i=(e=nt()).handleMissingMessage)==null?void 0:i.call(e,{locale:l,id:r,defaultValue:d}))!=null?s:d)!=null?o:r;else if(typeof h!="string")return console.warn(`[svelte-i18n] Message with id "${r}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),h;if(!a)return h;let u=h;try{u=Sh(h,l).format(a)}catch(f){f instanceof Error&&console.warn(`[svelte-i18n] Message "${r}" has syntax error:`,f.message)}return u},Th=(r,t)=>Ch(t).format(r),Ih=(r,t)=>Eh(t).format(r),Oh=(r,t)=>Ph(t).format(r),Nh=(r,t=je())=>vn(r,t),kh=ht([Be,ut],()=>Ah);ht([Be],()=>Th);ht([Be],()=>Ih);ht([Be],()=>Oh);ht([Be,ut],()=>Nh);window.emWidgets={topic:jl};const Mh=r=>!!(r.toLowerCase().match(/android/i)||r.toLowerCase().match(/blackberry|bb/i)||r.toLowerCase().match(/iphone|ipad|ipod/i)||r.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));function Lh({withLocale:r,translations:t}){Be.subscribe(e=>{e==null&&(ut.set(t),Be.set(r))})}function js(r,t){wn(r,t)}function Bh(r){Be.set(r)}function Rh(r,t){if(r){const e=document.createElement("style");e.innerHTML=t,r.appendChild(e)}}function Dh(r,t){const e=new URL(t);fetch(e.href).then(i=>i.text()).then(i=>{const s=document.createElement("style");s.innerHTML=i,r&&r.appendChild(s)}).catch(i=>{console.error("There was an error while trying to load client styling from URL",i)})}function Hh(r,t,e){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(t,s=>{i.innerHTML=s,r&&r.appendChild(i)})}}const Gs={en:{day:"Day",month:"Month",year:"Year",goToLogin:"Back to Sign In",forgotPasswordTitle:"Forgot Password",resetPasswordSubtitle:"Please reset your password.",hasToSetPassTitle:"Reset Password",forgotPasswordEmail:"Email",forgotPasswordEmailInputError:"Email should contain '@' and a 2-3 letter long domain.",forgotPasswordEmailError:"This email does not exist.",forgotPasswordReset:"Reset Password",forgotPasswordSuccess:"Success!",forgotPasswordSuccessDescription:"We sent an email with the instructions to reset your password.",forgotNewPasswordTitle:"New Password",forgotNewPasswordPassword:"Password",forgotNewPasswordPasswordError:"The password should be 8-20 characters long, and contain at least 1 uppercase letter, 1 number and 1 special character.",forgotNewPasswordConfirmPassword:"Confirm Password",forgotNewPasswordConfirmPasswordError:"Confirm password must match the new password and must follow the same rules.",forgotNewPasswordButton:"Change Password",forgotChangePasswordTitle:"Success!",forgotChangePasswordDescription:"Your password has been changed successfully.",forgotChangePasswordLogin:"Click here to Login",simplePasswordError:"Password must be 8-20 characters long.",dobFormatError:"The format for the date of birth isn't done according with the widget documentation.",generalError:"There was an error while making your request. Please try again...",1e3:"Invalid, used or expired user key",1164:"Your new password is too similar to a previous one. Please choose a password that you haven’t used recently."},hr:{day:"Dan",month:"Mjesec",year:"Godina",goToLogin:"Natrag na prijavu",forgotPasswordTitle:"Zaboravljena lozinka",resetPasswordSubtitle:"Molimo resetirajte svoju lozinku.",hasToSetPassTitle:"Resetiraj Lozinku",forgotPasswordEmail:"Email",forgotPasswordEmailInputError:"Email treba sadržavati '@' i domenu od 2-3 slova.",forgotPasswordEmailError:"Ovaj email ne postoji.",forgotPasswordReset:"Resetiranje lozinke",forgotPasswordSuccess:"Uspjelo!",forgotPasswordSuccessDescription:"Poslali smo e-mail s uputama za ponovno postavljanje lozinke.",forgotNewPasswordTitle:"Nova Lozinka",forgotNewPasswordPassword:"Lozinka",forgotNewPasswordPasswordError:"Lozinka bi trebala imati 8-20 znakova",forgotNewPasswordConfirmPassword:"Potvrdi lozinku",forgotNewPasswordConfirmPasswordError:"Lozinka za potvrdu mora odgovarati novoj lozinci i mora slijediti ista pravila.",forgotNewPasswordButton:"Promjena lozinke",forgotChangePasswordTitle:"Uspjelo!",forgotChangePasswordDescription:"Vaša lozinka je uspješno promijenjena.",forgotChangePasswordLogin:"Kliknite ovdje za prijavu",simplePasswordError:"Lozinka mora imati 8-20 znakova.","forgotPasswordE-mail":"E-mail","forgotPasswordE-mailInputError":"E-mail treba sadržavati '@' i domenu od 2-3 slova.","forgotPasswordE-mailError":"Ovaj E-mail ne postoji.",dobFormatError:"Format datuma rođenja nije u skladu s dokumentacijom widgeta.",generalError:"Došlo je do pogreške prilikom obrade vašeg zahtjeva. Molimo pokušajte ponovno...",1e3:"Nevažeći, korišten ili istekao korisnički ključ",1164:"Vaša nova lozinka je previše slična prethodnoj. Molimo odaberite lozinku koju nedavno niste koristili."},"zh-hk":{day:"天",month:"月",year:"年",goToLogin:"返回登錄",forgotPasswordTitle:"忘記密碼",resetPasswordSubtitle:"Please reset your password.",hasToSetPassTitle:"Reset Password",forgotPasswordEmail:"電子郵件",forgotPasswordEmailInputError:"电子邮件应包含“@”和 2-3 个字母长的域。",forgotPasswordEmailError:"此電子郵件不存在。",forgotPasswordReset:"重設密碼",forgotPasswordSuccess:"成功!",forgotPasswordSuccessDescription:"我們發送了一封電子郵件,其中包含重置密碼的說明。",forgotNewPasswordTitle:"新密碼",forgotNewPasswordPassword:"密碼",forgotNewPasswordPasswordError:"密碼長度為 8-20 個字符,至少包含 1 個大寫字母、1 個數字和 1 個特殊字符。",forgotNewPasswordConfirmPassword:"確認密碼",forgotNewPasswordConfirmPasswordError:"確認密碼必須與新密碼匹配,並且必須遵循相同的規則。",forgotNewPasswordButton:"更改密碼",forgotChangePasswordTitle:"成功!",forgotChangePasswordDescription:"你已經成功更改密碼。",forgotChangePasswordLogin:"點擊此處登錄",simplePasswordError:"密码长度必须为 8-20 个字符。",dobFormatError:"出生日期的格式不符合小部件文件的規定。",generalError:"您的請求出現錯誤。請再試一次...",1e3:"無效、已使用或過期的用戶密鑰",1164:"您的新密碼與之前使用的密碼過於相似。請選擇一個最近未曾使用過的密碼。"},fr:{day:"Jour",month:"Mois",year:"Année",goToLogin:"Retour à la page d'accueil",forgotPasswordTitle:"Mot de passe oublié",resetPasswordSubtitle:"Please reset your password.",hasToSetPassTitle:"Reset Password",forgotPasswordEmail:"Email",forgotPasswordEmailInputError:"L'e-mail doit contenir '@' et un domaine de 2-3 lettres.",forgotPasswordEmailError:"Cette adresse mail n'existe pas",forgotPasswordReset:"Réinitialiser le mot de passe",forgotPasswordSuccess:"Succès!",forgotPasswordSuccessDescription:"Nous vous avons envoyé un e-mail contenant les instructions pour reinitialiser votre mot de passe.",forgotNewPasswordTitle:"Nouveau mot de passe",forgotNewPasswordPassword:"Mot de passe",forgotNewPasswordPasswordError:"Le mot de passe doit comporter de 8 à 20 charactères et contenir au moins une lettre majuscule, un chiffre et un caractère spécial",forgotNewPasswordConfirmPassword:"Confirmer le mot de passe",forgotNewPasswordConfirmPasswordError:"Le mot de passe de confirmation doit correspondre au nouveau mot de passe et doit suivre les mêmes règles.",forgotNewPasswordButton:"Modifier le mot de passe",forgotChangePasswordTitle:"Succès!",forgotChangePasswordDescription:"Votre mot de passe a été modifié avec succès.",forgotChangePasswordLogin:"Cliquez ici pour vous connecter",simplePasswordError:"Le mot de passe doit comporter entre 8 et 20 caractères.",dobFormatError:"Le format de la date de naissance n'est pas conforme à la documentation du widget.",generalError:"Une erreur s'est produite lors de votre demande. Veuillez réessayer...",1e3:"Clé utilisateur invalide, utilisée ou expirée",1164:"Votre nouveau mot de passe est trop similaire à un ancien. Veuillez en choisir un que vous n’avez pas utilisé récemment."},tr:{day:"Gün",month:"Ay",year:"Yıl",goToLogin:"Oturum Açmaya Geri Dön",forgotPasswordTitle:"Parolanızı mı unuttunuz",resetPasswordSubtitle:"Lütfen şifrenizi sıfırlayın.",hasToSetPassTitle:"Şifreyi yenile",forgotPasswordEmail:"E-posta",forgotPasswordEmailInputError:"E-posta '@' ve 2-3 harf uzunluğunda bir alan adı içermelidir.",forgotPasswordEmailError:"Bu e-posta mevcut değil.",forgotPasswordReset:"Şifreyi yenile",forgotPasswordSuccess:"Başarı!",forgotPasswordSuccessDescription:"Şifrenizi sıfırlama talimatlarını içeren bir e-posta gönderdik.",forgotNewPasswordTitle:"Yeni Şifre",forgotNewPasswordPassword:"Şifre",forgotNewPasswordPasswordError:"Şifre 8-20 karakter uzunluğunda olmalı ve en az 1 büyük harf, 1 rakam ve 1 özel karakter içermelidir.",forgotNewPasswordConfirmPassword:"Şifreyi Onayla",forgotNewPasswordConfirmPasswordError:"Parolayı onayla, yeni parolayla eşleşmeli ve aynı kurallara uymalıdır.",forgotNewPasswordButton:"Şifre değiştir",forgotChangePasswordTitle:"Başarı!",forgotChangePasswordDescription:"Şifreniz başarıyla değiştirildi.",forgotChangePasswordLogin:"Giriş yapmak için buraya tıklayın",simplePasswordError:"Şifre 8-20 karakter uzunluğunda olmalı ve en az 1 büyük harf, 1 rakam ve 1 özel karakter içermelidir.",dobFormatError:"Doğum tarihi formatı widget dokümantasyonuna uygun yapılmamış.",generalError:"İsteğiniz yapılırken bir hata oluştu. Lütfen tekrar deneyin...",1e3:"Geçersiz, kullanılmış veya süresi dolmuş kullanıcı anahtarı",1164:"Yeni şifreniz daha önce kullandığınız bir şifreye çok benziyor. Lütfen son zamanlarda kullanmadığınız farklı bir şifre seçin."},ro:{day:"Zi",month:"Luna",year:"An",goToLogin:"Inapoi la autentificare",forgotPasswordTitle:"Parolă Uitată",resetPasswordSubtitle:"Vă rugăm sa resetați parola.",hasToSetPassTitle:"Resetează parola",forgotPasswordEmail:"Email",forgotPasswordEmailInputError:"Email-ul ar trebui să conțină '@' și 2-3 litere.",forgotPasswordEmailError:"Acest email nu există",forgotPasswordReset:"Resetează parola",forgotPasswordSuccess:"Succes!",forgotPasswordSuccessDescription:"Am trimis un email cu instrucțiunile pentru resetarea parolei.",forgotNewPasswordTitle:"Noua parolă",forgotNewPasswordPassword:"Parola",forgotNewPasswordPasswordError:"Parola trebuie să fie între 8 si 20 de caractere, să contțină o literă mare, o cifră și un caracter special",forgotNewPasswordConfirmPassword:"Confirma parola",forgotNewPasswordConfirmPasswordError:"Parola confirmată trebuie să fie la fel ca parola nouă și să respecte aceleași reguli",forgotNewPasswordButton:"Schimbă parola",forgotChangePasswordTitle:"Succes!",forgotChangePasswordDescription:"Parola a fost schimbată cu succes.",forgotChangePasswordLogin:"Autentificare",simplePasswordError:"Parola trebuie să aibă 8-20 de caractere.",dobFormatError:"Formatul pentru data nașterii nu este realizat conform documentației widget-ului.",generalError:"A apărut o eroare în timpul solicitării dvs. Vă rugăm să încercați din nou...",1e3:"Cheie de utilizator invalidă, utilizată sau expirată",1164:"Noua parolă este prea asemănătoare cu una utilizată anterior. Vă rugăm să alegeți o parolă pe care nu ați folosit-o recent."},es:{day:"Día",month:"Mes",year:"Año",goToLogin:"Volver a iniciar sesión",forgotPasswordTitle:"Olvide mi contraseña",resetPasswordSubtitle:"Please reset your password.",hasToSetPassTitle:"Reset Password",forgotPasswordEmail:"Email",forgotPasswordEmailInputError:"Email debe contener '@' y 2-3 letras de longitud.",forgotPasswordEmailError:"Este Email no existe",forgotPasswordReset:"Reestablecer contraseña",forgotPasswordSuccess:"Éxito!",forgotPasswordSuccessDescription:"Te hemos enviado un Email con las instrucciones para Reestablecer tu contraseña.",forgotNewPasswordTitle:"Nueva contraseña",forgotNewPasswordPassword:"Contraseña",forgotNewPasswordPasswordError:"La contraseña debe tener entre 8 a 20 caracteres y contener al menos 1 letra mayúscula, 1 número y 1 carácter especial.",forgotNewPasswordConfirmPassword:"Confirmar constraseña",forgotNewPasswordConfirmPasswordError:"Confirmar contraseña debe coincidir con la Nueva contraseña y debe seguir las mismas reglas.",forgotNewPasswordButton:"Cambiar Contraseña",forgotChangePasswordTitle:"Éxito!!",forgotChangePasswordDescription:"Tu contraseña se ha cambiado con éxito",forgotChangePasswordLogin:"Click aquí para Iniciar sesión",simplePasswordError:"La contraseña debe tener entre 8 a 20 caracteres",dobFormatError:"El formato de la fecha de nacimiento no se realiza de acuerdo con la documentación del widget.",generalError:"Hubo un error al realizar su solicitud. Por favor, inténtelo de nuevo...",1e3:"Clave de usuario inválida, usada o expirada",1164:"Tu nueva contraseña es demasiado similar a una que usaste anteriormente. Por favor, elige una que no hayas usado recientemente."},pt:{day:"Dia",month:"Mês",year:"Ano",goToLogin:"Voltar a Entrar",forgotPasswordTitle:"Esqueceu sua senha",resetPasswordSubtitle:"Please reset your password.",hasToSetPassTitle:"Reset Password",forgotPasswordEmail:"E-mail",forgotPasswordEmailInputError:"O e-mail deve conter '@' e um domínio de 2 a 3 letras.",forgotPasswordEmailError:"Este e-mail não existe.",forgotPasswordReset:"Redefinir senha",forgotPasswordSuccess:"Sucesso!",forgotPasswordSuccessDescription:"Enviamos um e-mail com as instruções para redefinir sua senha.",forgotNewPasswordTitle:"Senha",forgotNewPasswordPassword:"Password",forgotNewPasswordPasswordError:"A senha deve ter de 8 a 20 caracteres e conter pelo menos 1 letra maiúscula, 1 número e 1 caractere especial.",forgotNewPasswordConfirmPassword:"Confirme sua senha",forgotNewPasswordConfirmPasswordError:"A senha de confirmação deve corresponder à nova senha e deve seguir as mesmas regras.",forgotNewPasswordButton:"Mudar senha",forgotChangePasswordTitle:"Sucesso!",forgotChangePasswordDescription:"Sua senha foi alterada com sucesso.",forgotChangePasswordLogin:"Clique aqui para entrar",simplePasswordError:"A senha deve ter de 8 a 20 caracteres.",dobFormatError:"O formato da data de nascimento não está de acordo com a documentação do widget.",generalError:"Houve um erro ao fazer sua solicitação. Por favor, tente novamente...",1e3:"Chave de usuário inválida, usada ou expirada",1164:"A sua nova palavra-passe é demasiado semelhante a uma que já usou. Por favor, escolha uma que não tenha usado recentemente."},"en-us":{day:"Day",month:"Month",year:"Year",goToLogin:"Back to Sign In",forgotPasswordTitle:"Forgot Password",resetPasswordSubtitle:"Please reset your password.",hasToSetPassTitle:"Reset Password",forgotPasswordEmail:"Email",forgotPasswordEmailInputError:"Email should contain '@' and a 2-3 letter long domain.",forgotPasswordEmailError:"This email does not exist.",forgotPasswordReset:"Reset Password",forgotPasswordSuccess:"Success!",forgotPasswordSuccessDescription:"We sent an email with the instructions to reset your password.",forgotNewPasswordTitle:"New Password",forgotNewPasswordPassword:"Password",forgotNewPasswordPasswordError:"The password should be 8-20 characters long, and contain at least 1 uppercase letter, 1 number and 1 special character.",forgotNewPasswordConfirmPassword:"Confirm Password",forgotNewPasswordConfirmPasswordError:"Confirm password must match the new password and must follow the same rules.",forgotNewPasswordButton:"Change Password",forgotChangePasswordTitle:"Success!",forgotChangePasswordDescription:"Your password has been changed successfully.",forgotChangePasswordLogin:"Click here to Login",simplePasswordError:"Password must be 8-20 characters long.",dobFormatError:"The format for the date of birth isn't done according with the widget documentation.",generalError:"There was an error while making your request. Please try again...",1e3:"Invalid, used or expired user key",1164:"Your new password is too similar to a previous one. Please choose a password that you haven’t used recently."}};/**
|
|
21
|
+
`,pt.MISSING_INTL_API,n);var T=t.getPluralRules(e,{type:u.pluralType}).select(f-(u.offset||0));E=u.options[T]||u.options.other}if(!E)throw new ho(u.value,f,Object.keys(u.options),n);a.push.apply(a,pr(E.value,e,t,i,s,f-(u.offset||0)));continue}}return Hu(a)}function Fu(r,e){return e?Te(Te(Te({},r||{}),e||{}),Object.keys(r).reduce(function(t,i){return t[i]=Te(Te({},r[i]),e[i]||{}),t},{})):r}function Vu(r,e){return e?Object.keys(r).reduce(function(t,i){return t[i]=Fu(r[i],e[i]),t},Te({},r)):r}function si(r){return{create:function(){return{get:function(e){return r[e]},set:function(e,t){r[e]=t}}}}}function Uu(r){return r===void 0&&(r={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:ti(function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.NumberFormat).bind.apply(e,ei([void 0],t,!1)))},{cache:si(r.number),strategy:ri.variadic}),getDateTimeFormat:ti(function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.DateTimeFormat).bind.apply(e,ei([void 0],t,!1)))},{cache:si(r.dateTime),strategy:ri.variadic}),getPluralRules:ti(function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.PluralRules).bind.apply(e,ei([void 0],t,!1)))},{cache:si(r.pluralRules),strategy:ri.variadic})}}var $u=function(){function r(e,t,i,s){t===void 0&&(t=r.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var d=o.formatToParts(l);if(d.length===1)return d[0].value;var u=d.reduce(function(h,f){return!h.length||f.type!==fe.literal||typeof h[h.length-1]!="string"?h.push(f.value):h[h.length-1]+=f.value,h},[]);return u.length<=1?u[0]||"":u},this.formatToParts=function(l){return pr(o.ast,o.locales,o.formatters,o.formats,l,void 0,o.message)},this.resolvedOptions=function(){var l;return{locale:((l=o.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=t,this.resolvedLocale=r.resolveLocale(t),typeof e=="string"){if(this.message=e,!r.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var n=s||{};n.formatters;var a=Kd(n,["formatters"]);this.ast=r.__parse(e,Te(Te({},a),{locale:this.resolvedLocale}))}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Vu(r.formats,i),this.formatters=s&&s.formatters||Uu(this.formatterCache)}return Object.defineProperty(r,"defaultLocale",{get:function(){return r.memoizedDefaultLocale||(r.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),r.memoizedDefaultLocale},enumerable:!1,configurable:!0}),r.memoizedDefaultLocale=null,r.resolveLocale=function(e){if(typeof Intl.Locale!="undefined"){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale(typeof e=="string"?e:e[0])}},r.__parse=Bu,r.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"}}},r}();function ju(r,e){if(e==null)return;if(e in r)return r[e];const t=e.split(".");let i=r;for(let s=0;s<t.length;s++)if(typeof i=="object"){if(s>0){const o=t.slice(s,t.length).join(".");if(o in i){i=i[o];break}}i=i[t[s]]}else i=void 0;return i}const He={},Gu=(r,e,t)=>t&&(e in He||(He[e]={}),r in He[e]||(He[e][r]=t),t),ta=(r,e)=>{if(e==null)return;if(e in He&&r in He[e])return He[e][r];const t=zr(e);for(let i=0;i<t.length;i++){const s=t[i],o=Wu(s,r);if(o)return Gu(r,e,o)}};let cs;const Je=Rr({});function qu(r){return cs[r]||null}function ra(r){return r in cs}function Wu(r,e){if(!ra(r))return null;const t=qu(r);return ju(t,e)}function Yu(r){if(r==null)return;const e=zr(r);for(let t=0;t<e.length;t++){const i=e[t];if(ra(i))return i}}function fs(r,...e){delete He[r],Je.update(t=>(t[r]=Jd.all([t[r]||{},...e]),t))}vt([Je],([r])=>Object.keys(r));Je.subscribe(r=>cs=r);const mr={};function Zu(r,e){mr[r].delete(e),mr[r].size===0&&delete mr[r]}function ia(r){return mr[r]}function Xu(r){return zr(r).map(e=>{const t=ia(e);return[e,t?[...t]:[]]}).filter(([,e])=>e.length>0)}function Hi(r){return r==null?!1:zr(r).some(e=>{var t;return(t=ia(e))==null?void 0:t.size})}function Ju(r,e){return Promise.all(e.map(i=>(Zu(r,i),i().then(s=>s.default||s)))).then(i=>fs(r,...i))}const At={};function sa(r){if(!Hi(r))return r in At?At[r]:Promise.resolve();const e=Xu(r);return At[r]=Promise.all(e.map(([t,i])=>Ju(t,i))).then(()=>{if(Hi(r))return sa(r);delete At[r]}),At[r]}const Ku={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"}}},Qu={fallbackLocale:null,loadingDelay:200,formats:Ku,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},eh=Qu;function mt(){return eh}const oi=Rr(!1);var th=Object.defineProperty,rh=Object.defineProperties,ih=Object.getOwnPropertyDescriptors,co=Object.getOwnPropertySymbols,sh=Object.prototype.hasOwnProperty,oh=Object.prototype.propertyIsEnumerable,fo=(r,e,t)=>e in r?th(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,nh=(r,e)=>{for(var t in e||(e={}))sh.call(e,t)&&fo(r,t,e[t]);if(co)for(var t of co(e))oh.call(e,t)&&fo(r,t,e[t]);return r},ah=(r,e)=>rh(r,ih(e));let zi;const Er=Rr(null);function po(r){return r.split("-").map((e,t,i)=>i.slice(0,t+1).join("-")).reverse()}function zr(r,e=mt().fallbackLocale){const t=po(r);return e?[...new Set([...t,...po(e)])]:t}function Ke(){return zi!=null?zi:void 0}Er.subscribe(r=>{zi=r!=null?r:void 0,typeof window!="undefined"&&r!=null&&document.documentElement.setAttribute("lang",r)});const lh=r=>{if(r&&Yu(r)&&Hi(r)){const{loadingDelay:e}=mt();let t;return typeof window!="undefined"&&Ke()!=null&&e?t=window.setTimeout(()=>oi.set(!0),e):oi.set(!0),sa(r).then(()=>{Er.set(r)}).finally(()=>{clearTimeout(t),oi.set(!1)})}return Er.set(r)},Be=ah(nh({},Er),{set:lh}),Fr=r=>{const e=Object.create(null);return i=>{const s=JSON.stringify(i);return s in e?e[s]:e[s]=r(i)}};var dh=Object.defineProperty,Cr=Object.getOwnPropertySymbols,oa=Object.prototype.hasOwnProperty,na=Object.prototype.propertyIsEnumerable,mo=(r,e,t)=>e in r?dh(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,ps=(r,e)=>{for(var t in e||(e={}))oa.call(e,t)&&mo(r,t,e[t]);if(Cr)for(var t of Cr(e))na.call(e,t)&&mo(r,t,e[t]);return r},yt=(r,e)=>{var t={};for(var i in r)oa.call(r,i)&&e.indexOf(i)<0&&(t[i]=r[i]);if(r!=null&&Cr)for(var i of Cr(r))e.indexOf(i)<0&&na.call(r,i)&&(t[i]=r[i]);return t};const Ft=(r,e)=>{const{formats:t}=mt();if(r in t&&e in t[r])return t[r][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${r} format.`)},uh=Fr(r=>{var e=r,{locale:t,format:i}=e,s=yt(e,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return i&&(s=Ft("number",i)),new Intl.NumberFormat(t,s)}),hh=Fr(r=>{var e=r,{locale:t,format:i}=e,s=yt(e,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return i?s=Ft("date",i):Object.keys(s).length===0&&(s=Ft("date","short")),new Intl.DateTimeFormat(t,s)}),ch=Fr(r=>{var e=r,{locale:t,format:i}=e,s=yt(e,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return i?s=Ft("time",i):Object.keys(s).length===0&&(s=Ft("time","short")),new Intl.DateTimeFormat(t,s)}),fh=(r={})=>{var e=r,{locale:t=Ke()}=e,i=yt(e,["locale"]);return uh(ps({locale:t},i))},ph=(r={})=>{var e=r,{locale:t=Ke()}=e,i=yt(e,["locale"]);return hh(ps({locale:t},i))},mh=(r={})=>{var e=r,{locale:t=Ke()}=e,i=yt(e,["locale"]);return ch(ps({locale:t},i))},_h=Fr((r,e=Ke())=>new $u(r,e,mt().formats,{ignoreTag:mt().ignoreTag})),gh=(r,e={})=>{var t,i,s,o;let n=e;typeof r=="object"&&(n=r,r=n.id);const{values:a,locale:l=Ke(),default:d}=n;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let u=ta(r,l);if(!u)u=(o=(s=(i=(t=mt()).handleMissingMessage)==null?void 0:i.call(t,{locale:l,id:r,defaultValue:d}))!=null?s:d)!=null?o:r;else if(typeof u!="string")return console.warn(`[svelte-i18n] Message with id "${r}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),u;if(!a)return u;let h=u;try{h=_h(u,l).format(a)}catch(f){f instanceof Error&&console.warn(`[svelte-i18n] Message "${r}" has syntax error:`,f.message)}return h},bh=(r,e)=>mh(e).format(r),vh=(r,e)=>ph(e).format(r),yh=(r,e)=>fh(e).format(r),wh=(r,e=Ke())=>ta(r,e),aa=vt([Be,Je],()=>gh);vt([Be],()=>bh);vt([Be],()=>vh);vt([Be],()=>yh);vt([Be,Je],()=>wh);window.emWidgets={topic:Ld};const xh=r=>!!(r.toLowerCase().match(/android/i)||r.toLowerCase().match(/blackberry|bb/i)||r.toLowerCase().match(/iphone|ipad|ipod/i)||r.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));function Ph({withLocale:r,translations:e}){Be.subscribe(t=>{t==null&&(Je.set(e),Be.set(r))})}function _o(r,e){fs(r,e)}function Eh(r){Be.set(r)}function la(r,e){if(r){const t=document.createElement("style");t.innerHTML=e,r.appendChild(t)}}function da(r,e){const t=new URL(e);fetch(t.href).then(i=>i.text()).then(i=>{const s=document.createElement("style");s.innerHTML=i,r&&r.appendChild(s)}).catch(i=>{console.error("There was an error while trying to load client styling from URL",i)})}function ua(r,e,t){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(e,s=>{i.innerHTML=s,r&&r.appendChild(i)})}}const go={en:{day:"Day",month:"Month",year:"Year",goToLogin:"Back to Sign In",forgotPasswordTitle:"Forgot Password",resetPasswordSubtitle:"Please reset your password.",hasToSetPassTitle:"Reset Password",forgotPasswordEmail:"Email",forgotPasswordEmailInputError:"Email should contain '@' and a 2-3 letter long domain.",forgotPasswordEmailError:"This email does not exist.",forgotPasswordReset:"Reset Password",forgotPasswordSuccess:"Success!",forgotPasswordSuccessDescription:"We sent an email with the instructions to reset your password.",forgotNewPasswordTitle:"New Password",forgotNewPasswordPassword:"Password",forgotNewPasswordPasswordError:"The password should be 8-20 characters long, and contain at least 1 uppercase letter, 1 number and 1 special character.",forgotNewPasswordConfirmPassword:"Confirm Password",forgotNewPasswordConfirmPasswordError:"Confirm password must match the new password and must follow the same rules.",forgotNewPasswordButton:"Change Password",forgotChangePasswordTitle:"Success!",forgotChangePasswordDescription:"Your password has been changed successfully.",forgotChangePasswordLogin:"Click here to Login",simplePasswordError:"Password must be 8-20 characters long.",dobFormatError:"The format for the date of birth isn't done according with the widget documentation.",generalError:"There was an error while making your request. Please try again...",1e3:"Invalid, used or expired user key",1164:"Your new password is too similar to a previous one. Please choose a password that you haven’t used recently."},hr:{day:"Dan",month:"Mjesec",year:"Godina",goToLogin:"Natrag na prijavu",forgotPasswordTitle:"Zaboravljena lozinka",resetPasswordSubtitle:"Molimo resetirajte svoju lozinku.",hasToSetPassTitle:"Resetiraj Lozinku",forgotPasswordEmail:"Email",forgotPasswordEmailInputError:"Email treba sadržavati '@' i domenu od 2-3 slova.",forgotPasswordEmailError:"Ovaj email ne postoji.",forgotPasswordReset:"Resetiranje lozinke",forgotPasswordSuccess:"Uspjelo!",forgotPasswordSuccessDescription:"Poslali smo e-mail s uputama za ponovno postavljanje lozinke.",forgotNewPasswordTitle:"Nova Lozinka",forgotNewPasswordPassword:"Lozinka",forgotNewPasswordPasswordError:"Lozinka bi trebala imati 8-20 znakova",forgotNewPasswordConfirmPassword:"Potvrdi lozinku",forgotNewPasswordConfirmPasswordError:"Lozinka za potvrdu mora odgovarati novoj lozinci i mora slijediti ista pravila.",forgotNewPasswordButton:"Promjena lozinke",forgotChangePasswordTitle:"Uspjelo!",forgotChangePasswordDescription:"Vaša lozinka je uspješno promijenjena.",forgotChangePasswordLogin:"Kliknite ovdje za prijavu",simplePasswordError:"Lozinka mora imati 8-20 znakova.","forgotPasswordE-mail":"E-mail","forgotPasswordE-mailInputError":"E-mail treba sadržavati '@' i domenu od 2-3 slova.","forgotPasswordE-mailError":"Ovaj E-mail ne postoji.",dobFormatError:"Format datuma rođenja nije u skladu s dokumentacijom widgeta.",generalError:"Došlo je do pogreške prilikom obrade vašeg zahtjeva. Molimo pokušajte ponovno...",1e3:"Nevažeći, korišten ili istekao korisnički ključ",1164:"Vaša nova lozinka je previše slična prethodnoj. Molimo odaberite lozinku koju nedavno niste koristili."},"zh-hk":{day:"天",month:"月",year:"年",goToLogin:"返回登錄",forgotPasswordTitle:"忘記密碼",resetPasswordSubtitle:"Please reset your password.",hasToSetPassTitle:"Reset Password",forgotPasswordEmail:"電子郵件",forgotPasswordEmailInputError:"电子邮件应包含“@”和 2-3 个字母长的域。",forgotPasswordEmailError:"此電子郵件不存在。",forgotPasswordReset:"重設密碼",forgotPasswordSuccess:"成功!",forgotPasswordSuccessDescription:"我們發送了一封電子郵件,其中包含重置密碼的說明。",forgotNewPasswordTitle:"新密碼",forgotNewPasswordPassword:"密碼",forgotNewPasswordPasswordError:"密碼長度為 8-20 個字符,至少包含 1 個大寫字母、1 個數字和 1 個特殊字符。",forgotNewPasswordConfirmPassword:"確認密碼",forgotNewPasswordConfirmPasswordError:"確認密碼必須與新密碼匹配,並且必須遵循相同的規則。",forgotNewPasswordButton:"更改密碼",forgotChangePasswordTitle:"成功!",forgotChangePasswordDescription:"你已經成功更改密碼。",forgotChangePasswordLogin:"點擊此處登錄",simplePasswordError:"密码长度必须为 8-20 个字符。",dobFormatError:"出生日期的格式不符合小部件文件的規定。",generalError:"您的請求出現錯誤。請再試一次...",1e3:"無效、已使用或過期的用戶密鑰",1164:"您的新密碼與之前使用的密碼過於相似。請選擇一個最近未曾使用過的密碼。"},fr:{day:"Jour",month:"Mois",year:"Année",goToLogin:"Retour à la page d'accueil",forgotPasswordTitle:"Mot de passe oublié",resetPasswordSubtitle:"Please reset your password.",hasToSetPassTitle:"Reset Password",forgotPasswordEmail:"Email",forgotPasswordEmailInputError:"L'e-mail doit contenir '@' et un domaine de 2-3 lettres.",forgotPasswordEmailError:"Cette adresse mail n'existe pas",forgotPasswordReset:"Réinitialiser le mot de passe",forgotPasswordSuccess:"Succès!",forgotPasswordSuccessDescription:"Nous vous avons envoyé un e-mail contenant les instructions pour reinitialiser votre mot de passe.",forgotNewPasswordTitle:"Nouveau mot de passe",forgotNewPasswordPassword:"Mot de passe",forgotNewPasswordPasswordError:"Le mot de passe doit comporter de 8 à 20 charactères et contenir au moins une lettre majuscule, un chiffre et un caractère spécial",forgotNewPasswordConfirmPassword:"Confirmer le mot de passe",forgotNewPasswordConfirmPasswordError:"Le mot de passe de confirmation doit correspondre au nouveau mot de passe et doit suivre les mêmes règles.",forgotNewPasswordButton:"Modifier le mot de passe",forgotChangePasswordTitle:"Succès!",forgotChangePasswordDescription:"Votre mot de passe a été modifié avec succès.",forgotChangePasswordLogin:"Cliquez ici pour vous connecter",simplePasswordError:"Le mot de passe doit comporter entre 8 et 20 caractères.",dobFormatError:"Le format de la date de naissance n'est pas conforme à la documentation du widget.",generalError:"Une erreur s'est produite lors de votre demande. Veuillez réessayer...",1e3:"Clé utilisateur invalide, utilisée ou expirée",1164:"Votre nouveau mot de passe est trop similaire à un ancien. Veuillez en choisir un que vous n’avez pas utilisé récemment."},tr:{day:"Gün",month:"Ay",year:"Yıl",goToLogin:"Oturum Açmaya Geri Dön",forgotPasswordTitle:"Parolanızı mı unuttunuz",resetPasswordSubtitle:"Lütfen şifrenizi sıfırlayın.",hasToSetPassTitle:"Şifreyi yenile",forgotPasswordEmail:"E-posta",forgotPasswordEmailInputError:"E-posta '@' ve 2-3 harf uzunluğunda bir alan adı içermelidir.",forgotPasswordEmailError:"Bu e-posta mevcut değil.",forgotPasswordReset:"Şifreyi yenile",forgotPasswordSuccess:"Başarı!",forgotPasswordSuccessDescription:"Şifrenizi sıfırlama talimatlarını içeren bir e-posta gönderdik.",forgotNewPasswordTitle:"Yeni Şifre",forgotNewPasswordPassword:"Şifre",forgotNewPasswordPasswordError:"Şifre 8-20 karakter uzunluğunda olmalı ve en az 1 büyük harf, 1 rakam ve 1 özel karakter içermelidir.",forgotNewPasswordConfirmPassword:"Şifreyi Onayla",forgotNewPasswordConfirmPasswordError:"Parolayı onayla, yeni parolayla eşleşmeli ve aynı kurallara uymalıdır.",forgotNewPasswordButton:"Şifre değiştir",forgotChangePasswordTitle:"Başarı!",forgotChangePasswordDescription:"Şifreniz başarıyla değiştirildi.",forgotChangePasswordLogin:"Giriş yapmak için buraya tıklayın",simplePasswordError:"Şifre 8-20 karakter uzunluğunda olmalı ve en az 1 büyük harf, 1 rakam ve 1 özel karakter içermelidir.",dobFormatError:"Doğum tarihi formatı widget dokümantasyonuna uygun yapılmamış.",generalError:"İsteğiniz yapılırken bir hata oluştu. Lütfen tekrar deneyin...",1e3:"Geçersiz, kullanılmış veya süresi dolmuş kullanıcı anahtarı",1164:"Yeni şifreniz daha önce kullandığınız bir şifreye çok benziyor. Lütfen son zamanlarda kullanmadığınız farklı bir şifre seçin."},ro:{day:"Zi",month:"Luna",year:"An",goToLogin:"Inapoi la autentificare",forgotPasswordTitle:"Parolă Uitată",resetPasswordSubtitle:"Vă rugăm sa resetați parola.",hasToSetPassTitle:"Resetează parola",forgotPasswordEmail:"Email",forgotPasswordEmailInputError:"Email-ul ar trebui să conțină '@' și 2-3 litere.",forgotPasswordEmailError:"Acest email nu există",forgotPasswordReset:"Resetează parola",forgotPasswordSuccess:"Succes!",forgotPasswordSuccessDescription:"Am trimis un email cu instrucțiunile pentru resetarea parolei.",forgotNewPasswordTitle:"Noua parolă",forgotNewPasswordPassword:"Parola",forgotNewPasswordPasswordError:"Parola trebuie să fie între 8 si 20 de caractere, să contțină o literă mare, o cifră și un caracter special",forgotNewPasswordConfirmPassword:"Confirma parola",forgotNewPasswordConfirmPasswordError:"Parola confirmată trebuie să fie la fel ca parola nouă și să respecte aceleași reguli",forgotNewPasswordButton:"Schimbă parola",forgotChangePasswordTitle:"Succes!",forgotChangePasswordDescription:"Parola a fost schimbată cu succes.",forgotChangePasswordLogin:"Autentificare",simplePasswordError:"Parola trebuie să aibă 8-20 de caractere.",dobFormatError:"Formatul pentru data nașterii nu este realizat conform documentației widget-ului.",generalError:"A apărut o eroare în timpul solicitării dvs. Vă rugăm să încercați din nou...",1e3:"Cheie de utilizator invalidă, utilizată sau expirată",1164:"Noua parolă este prea asemănătoare cu una utilizată anterior. Vă rugăm să alegeți o parolă pe care nu ați folosit-o recent."},es:{day:"Día",month:"Mes",year:"Año",goToLogin:"Volver a iniciar sesión",forgotPasswordTitle:"Olvide mi contraseña",resetPasswordSubtitle:"Please reset your password.",hasToSetPassTitle:"Reset Password",forgotPasswordEmail:"Email",forgotPasswordEmailInputError:"Email debe contener '@' y 2-3 letras de longitud.",forgotPasswordEmailError:"Este Email no existe",forgotPasswordReset:"Reestablecer contraseña",forgotPasswordSuccess:"Éxito!",forgotPasswordSuccessDescription:"Te hemos enviado un Email con las instrucciones para Reestablecer tu contraseña.",forgotNewPasswordTitle:"Nueva contraseña",forgotNewPasswordPassword:"Contraseña",forgotNewPasswordPasswordError:"La contraseña debe tener entre 8 a 20 caracteres y contener al menos 1 letra mayúscula, 1 número y 1 carácter especial.",forgotNewPasswordConfirmPassword:"Confirmar constraseña",forgotNewPasswordConfirmPasswordError:"Confirmar contraseña debe coincidir con la Nueva contraseña y debe seguir las mismas reglas.",forgotNewPasswordButton:"Cambiar Contraseña",forgotChangePasswordTitle:"Éxito!!",forgotChangePasswordDescription:"Tu contraseña se ha cambiado con éxito",forgotChangePasswordLogin:"Click aquí para Iniciar sesión",simplePasswordError:"La contraseña debe tener entre 8 a 20 caracteres",dobFormatError:"El formato de la fecha de nacimiento no se realiza de acuerdo con la documentación del widget.",generalError:"Hubo un error al realizar su solicitud. Por favor, inténtelo de nuevo...",1e3:"Clave de usuario inválida, usada o expirada",1164:"Tu nueva contraseña es demasiado similar a una que usaste anteriormente. Por favor, elige una que no hayas usado recientemente."},pt:{day:"Dia",month:"Mês",year:"Ano",goToLogin:"Voltar a Entrar",forgotPasswordTitle:"Esqueceu sua senha",resetPasswordSubtitle:"Please reset your password.",hasToSetPassTitle:"Reset Password",forgotPasswordEmail:"E-mail",forgotPasswordEmailInputError:"O e-mail deve conter '@' e um domínio de 2 a 3 letras.",forgotPasswordEmailError:"Este e-mail não existe.",forgotPasswordReset:"Redefinir senha",forgotPasswordSuccess:"Sucesso!",forgotPasswordSuccessDescription:"Enviamos um e-mail com as instruções para redefinir sua senha.",forgotNewPasswordTitle:"Senha",forgotNewPasswordPassword:"Password",forgotNewPasswordPasswordError:"A senha deve ter de 8 a 20 caracteres e conter pelo menos 1 letra maiúscula, 1 número e 1 caractere especial.",forgotNewPasswordConfirmPassword:"Confirme sua senha",forgotNewPasswordConfirmPasswordError:"A senha de confirmação deve corresponder à nova senha e deve seguir as mesmas regras.",forgotNewPasswordButton:"Mudar senha",forgotChangePasswordTitle:"Sucesso!",forgotChangePasswordDescription:"Sua senha foi alterada com sucesso.",forgotChangePasswordLogin:"Clique aqui para entrar",simplePasswordError:"A senha deve ter de 8 a 20 caracteres.",dobFormatError:"O formato da data de nascimento não está de acordo com a documentação do widget.",generalError:"Houve um erro ao fazer sua solicitação. Por favor, tente novamente...",1e3:"Chave de usuário inválida, usada ou expirada",1164:"A sua nova palavra-passe é demasiado semelhante a uma que já usou. Por favor, escolha uma que não tenha usado recentemente."},"en-us":{day:"Day",month:"Month",year:"Year",goToLogin:"Back to Sign In",forgotPasswordTitle:"Forgot Password",resetPasswordSubtitle:"Please reset your password.",hasToSetPassTitle:"Reset Password",forgotPasswordEmail:"Email",forgotPasswordEmailInputError:"Email should contain '@' and a 2-3 letter long domain.",forgotPasswordEmailError:"This email does not exist.",forgotPasswordReset:"Reset Password",forgotPasswordSuccess:"Success!",forgotPasswordSuccessDescription:"We sent an email with the instructions to reset your password.",forgotNewPasswordTitle:"New Password",forgotNewPasswordPassword:"Password",forgotNewPasswordPasswordError:"The password should be 8-20 characters long, and contain at least 1 uppercase letter, 1 number and 1 special character.",forgotNewPasswordConfirmPassword:"Confirm Password",forgotNewPasswordConfirmPasswordError:"Confirm password must match the new password and must follow the same rules.",forgotNewPasswordButton:"Change Password",forgotChangePasswordTitle:"Success!",forgotChangePasswordDescription:"Your password has been changed successfully.",forgotChangePasswordLogin:"Click here to Login",simplePasswordError:"Password must be 8-20 characters long.",dobFormatError:"The format for the date of birth isn't done according with the widget documentation.",generalError:"There was an error while making your request. Please try again...",1e3:"Invalid, used or expired user key",1164:"Your new password is too similar to a previous one. Please choose a password that you haven’t used recently."}};if(typeof window!="undefined"){let r=function(e){return function(...t){try{return e.apply(this,t)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./GeneralPlayerForgotPasswordSmsForm-DtKZtVLP.cjs")).then(({default:e})=>{!customElements.get("general-player-forgot-password-sms-form")&&customElements.define("general-player-forgot-password-sms-form",e.element)})}/**
|
|
19
22
|
* @license
|
|
20
23
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
21
24
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
22
|
-
*/function
|
|
25
|
+
*/function wt(r,e="24.5.10"){Object.defineProperty(r,"version",{get(){return e}});const t=customElements.get(r.is);if(!t)customElements.define(r.is,r);else{const i=t.version;i&&r.version&&i===r.version?console.warn(`The component ${r.is} has been loaded twice`):console.error(`Tried to define ${r.is} version ${r.version} when version ${t.version} is already in use. Something will probably break.`)}}/**
|
|
23
26
|
* @license
|
|
24
27
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
25
28
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
26
|
-
*/class
|
|
29
|
+
*/class Ch extends HTMLElement{static get is(){return"vaadin-lumo-styles"}}wt(Ch);/**
|
|
27
30
|
* @license
|
|
28
31
|
* Copyright 2019 Google LLC
|
|
29
32
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
30
|
-
*/const
|
|
33
|
+
*/const _r=globalThis,ms=_r.ShadowRoot&&(_r.ShadyCSS===void 0||_r.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,_s=Symbol(),bo=new WeakMap;let gs=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==_s)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(ms&&e===void 0){const i=t!==void 0&&t.length===1;i&&(e=bo.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&bo.set(t,e))}return e}toString(){return this.cssText}};const Sh=r=>new gs(typeof r=="string"?r:r+"",void 0,_s),R=(r,...e)=>{const t=r.length===1?r[0]:e.reduce((i,s,o)=>i+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+r[o+1],r[0]);return new gs(t,r,_s)},ha=(r,e)=>{if(ms)r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const i=document.createElement("style"),s=_r.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=t.cssText,r.appendChild(i)}},vo=ms?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return Sh(t)})(r):r;/**
|
|
31
34
|
* @license
|
|
32
35
|
* Copyright 2017 Google LLC
|
|
33
36
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
34
|
-
*/const{is:
|
|
37
|
+
*/const{is:Ah,defineProperty:Th,getOwnPropertyDescriptor:Ih,getOwnPropertyNames:Oh,getOwnPropertySymbols:Nh,getPrototypeOf:kh}=Object,ze=globalThis,yo=ze.trustedTypes,Mh=yo?yo.emptyScript:"",ni=ze.reactiveElementPolyfillSupport,Bt=(r,e)=>r,Fi={toAttribute(r,e){switch(e){case Boolean:r=r?Mh:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch(i){t=null}}return t}},ca=(r,e)=>!Ah(r,e),wo={attribute:!0,type:String,converter:Fi,reflect:!1,useDefault:!1,hasChanged:ca};var cn,fn;(cn=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(fn=ze.litPropertyMetadata)!=null||(ze.litPropertyMetadata=new WeakMap);class ot extends HTMLElement{static addInitializer(e){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=wo){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){const i=Symbol(),s=this.getPropertyDescriptor(e,i,t);s!==void 0&&Th(this.prototype,e,s)}}static getPropertyDescriptor(e,t,i){var n;const{get:s,set:o}=(n=Ih(this.prototype,e))!=null?n:{get(){return this[t]},set(a){this[t]=a}};return{get:s,set(a){const l=s==null?void 0:s.call(this);o==null||o.call(this,a),this.requestUpdate(e,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){var t;return(t=this.elementProperties.get(e))!=null?t:wo}static _$Ei(){if(this.hasOwnProperty(Bt("elementProperties")))return;const e=kh(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Bt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Bt("properties"))){const t=this.properties,i=[...Oh(t),...Nh(t)];for(const s of i)this.createProperty(s,t[s])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[i,s]of t)this.elementProperties.set(i,s)}this._$Eh=new Map;for(const[t,i]of this.elementProperties){const s=this._$Eu(t,i);s!==void 0&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const s of i)t.unshift(vo(s))}else e!==void 0&&t.push(vo(e));return t}static _$Eu(e,t){const i=t.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(t=>t(this))}addController(e){var t,i;((t=this._$EO)!=null?t:this._$EO=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&((i=e.hostConnected)==null||i.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const i of t.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){var t;const e=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return ha(e,this.constructor.elementStyles),e}connectedCallback(){var e,t;(e=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(i=>{var s;return(s=i.hostConnected)==null?void 0:s.call(i)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostDisconnected)==null?void 0:i.call(t)})}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$ET(e,t){var o;const i=this.constructor.elementProperties.get(e),s=this.constructor._$Eu(e,i);if(s!==void 0&&i.reflect===!0){const n=(((o=i.converter)==null?void 0:o.toAttribute)!==void 0?i.converter:Fi).toAttribute(t,i.type);this._$Em=e,n==null?this.removeAttribute(s):this.setAttribute(s,n),this._$Em=null}}_$AK(e,t){var o,n,a,l;const i=this.constructor,s=i._$Eh.get(e);if(s!==void 0&&this._$Em!==s){const d=i.getPropertyOptions(s),u=typeof d.converter=="function"?{fromAttribute:d.converter}:((o=d.converter)==null?void 0:o.fromAttribute)!==void 0?d.converter:Fi;this._$Em=s,this[s]=(l=(a=u.fromAttribute(t,d.type))!=null?a:(n=this._$Ej)==null?void 0:n.get(s))!=null?l:null,this._$Em=null}}requestUpdate(e,t,i){var s,o;if(e!==void 0){const n=this.constructor,a=this[e];if(i!=null||(i=n.getPropertyOptions(e)),!(((s=i.hasChanged)!=null?s:ca)(a,t)||i.useDefault&&i.reflect&&a===((o=this._$Ej)==null?void 0:o.get(e))&&!this.hasAttribute(n._$Eu(e,i))))return;this.C(e,t,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:i,reflect:s,wrapped:o},n){var a,l,d;i&&!((a=this._$Ej)!=null?a:this._$Ej=new Map).has(e)&&(this._$Ej.set(e,(l=n!=null?n:t)!=null?l:this[e]),o!==!0||n!==void 0)||(this._$AL.has(e)||(this.hasUpdated||i||(t=void 0),this._$AL.set(e,t)),s===!0&&this._$Em!==e&&((d=this._$Eq)!=null?d:this._$Eq=new Set).add(e))}_$EP(){return Ct(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&(yield e),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i,s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((i=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}const o=this.constructor.elementProperties;if(o.size>0)for(const[n,a]of o){const{wrapped:l}=a,d=this[n];l!==!0||this._$AL.has(n)||d===void 0||this.C(n,void 0,a,d)}}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),(s=this._$EO)==null||s.forEach(o=>{var n;return(n=o.hostUpdate)==null?void 0:n.call(o)}),this.update(t)):this._$EM()}catch(o){throw e=!1,this._$EM(),o}e&&this._$AE(t)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(i=>{var s;return(s=i.hostUpdated)==null?void 0:s.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&(this._$Eq=this._$Eq.forEach(t=>this._$ET(t,this[t]))),this._$EM()}updated(e){}firstUpdated(e){}}var pn;ot.elementStyles=[],ot.shadowRootOptions={mode:"open"},ot[Bt("elementProperties")]=new Map,ot[Bt("finalized")]=new Map,ni==null||ni({ReactiveElement:ot}),((pn=ze.reactiveElementVersions)!=null?pn:ze.reactiveElementVersions=[]).push("2.1.0");/**
|
|
35
38
|
* @license
|
|
36
39
|
* Copyright 2017 Google LLC
|
|
37
40
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
38
|
-
*/const
|
|
39
|
-
\f\r]`,
|
|
40
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),
|
|
41
|
+
*/const Rt=globalThis,Sr=Rt.trustedTypes,xo=Sr?Sr.createPolicy("lit-html",{createHTML:r=>r}):void 0,fa="$lit$",De=`lit$${Math.random().toFixed(9).slice(2)}$`,pa="?"+De,Lh=`<${pa}>`,Xe=document,Vt=()=>Xe.createComment(""),Ut=r=>r===null||typeof r!="object"&&typeof r!="function",bs=Array.isArray,Bh=r=>bs(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",ai=`[
|
|
42
|
+
\f\r]`,Tt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Po=/-->/g,Eo=/>/g,$e=RegExp(`>|${ai}(?:([^\\s"'>=/]+)(${ai}*=${ai}*(?:[^
|
|
43
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Co=/'/g,So=/"/g,ma=/^(?:script|style|textarea|title)$/i,_t=Symbol.for("lit-noChange"),se=Symbol.for("lit-nothing"),Ao=new WeakMap,Ge=Xe.createTreeWalker(Xe,129);function _a(r,e){if(!bs(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return xo!==void 0?xo.createHTML(e):e}const Rh=(r,e)=>{const t=r.length-1,i=[];let s,o=e===2?"<svg>":e===3?"<math>":"",n=Tt;for(let a=0;a<t;a++){const l=r[a];let d,u,h=-1,f=0;for(;f<l.length&&(n.lastIndex=f,u=n.exec(l),u!==null);)f=n.lastIndex,n===Tt?u[1]==="!--"?n=Po:u[1]!==void 0?n=Eo:u[2]!==void 0?(ma.test(u[2])&&(s=RegExp("</"+u[2],"g")),n=$e):u[3]!==void 0&&(n=$e):n===$e?u[0]===">"?(n=s!=null?s:Tt,h=-1):u[1]===void 0?h=-2:(h=n.lastIndex-u[2].length,d=u[1],n=u[3]===void 0?$e:u[3]==='"'?So:Co):n===So||n===Co?n=$e:n===Po||n===Eo?n=Tt:(n=$e,s=void 0);const m=n===$e&&r[a+1].startsWith("/>")?" ":"";o+=n===Tt?l+Lh:h>=0?(i.push(d),l.slice(0,h)+fa+l.slice(h)+De+m):l+De+(h===-2?a:m)}return[_a(r,o+(r[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]};class $t{constructor({strings:e,_$litType$:t},i){let s;this.parts=[];let o=0,n=0;const a=e.length-1,l=this.parts,[d,u]=Rh(e,t);if(this.el=$t.createElement(d,i),Ge.currentNode=this.el.content,t===2||t===3){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(s=Ge.nextNode())!==null&&l.length<a;){if(s.nodeType===1){if(s.hasAttributes())for(const h of s.getAttributeNames())if(h.endsWith(fa)){const f=u[n++],m=s.getAttribute(h).split(De),_=/([.?@])?(.*)/.exec(f);l.push({type:1,index:o,name:_[2],strings:m,ctor:_[1]==="."?Hh:_[1]==="?"?zh:_[1]==="@"?Fh:Vr}),s.removeAttribute(h)}else h.startsWith(De)&&(l.push({type:6,index:o}),s.removeAttribute(h));if(ma.test(s.tagName)){const h=s.textContent.split(De),f=h.length-1;if(f>0){s.textContent=Sr?Sr.emptyScript:"";for(let m=0;m<f;m++)s.append(h[m],Vt()),Ge.nextNode(),l.push({type:2,index:++o});s.append(h[f],Vt())}}}else if(s.nodeType===8)if(s.data===pa)l.push({type:2,index:o});else{let h=-1;for(;(h=s.data.indexOf(De,h+1))!==-1;)l.push({type:7,index:o}),h+=De.length-1}o++}}static createElement(e,t){const i=Xe.createElement("template");return i.innerHTML=e,i}}function gt(r,e,t=r,i){var n,a,l;if(e===_t)return e;let s=i!==void 0?(n=t._$Co)==null?void 0:n[i]:t._$Cl;const o=Ut(e)?void 0:e._$litDirective$;return(s==null?void 0:s.constructor)!==o&&((a=s==null?void 0:s._$AO)==null||a.call(s,!1),o===void 0?s=void 0:(s=new o(r),s._$AT(r,t,i)),i!==void 0?((l=t._$Co)!=null?l:t._$Co=[])[i]=s:t._$Cl=s),s!==void 0&&(e=gt(r,s._$AS(r,e.values),s,i)),e}class Dh{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var d;const{el:{content:t},parts:i}=this._$AD,s=((d=e==null?void 0:e.creationScope)!=null?d:Xe).importNode(t,!0);Ge.currentNode=s;let o=Ge.nextNode(),n=0,a=0,l=i[0];for(;l!==void 0;){if(n===l.index){let u;l.type===2?u=new Xt(o,o.nextSibling,this,e):l.type===1?u=new l.ctor(o,l.name,l.strings,this,e):l.type===6&&(u=new Vh(o,this,e)),this._$AV.push(u),l=i[++a]}n!==(l==null?void 0:l.index)&&(o=Ge.nextNode(),n++)}return Ge.currentNode=Xe,s}p(e){let t=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}}class Xt{get _$AU(){var e,t;return(t=(e=this._$AM)==null?void 0:e._$AU)!=null?t:this._$Cv}constructor(e,t,i,s){var o;this.type=2,this._$AH=se,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=s,this._$Cv=(o=s==null?void 0:s.isConnected)!=null?o:!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=gt(this,e,t),Ut(e)?e===se||e==null||e===""?(this._$AH!==se&&this._$AR(),this._$AH=se):e!==this._$AH&&e!==_t&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Bh(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==se&&Ut(this._$AH)?this._$AA.nextSibling.data=e:this.T(Xe.createTextNode(e)),this._$AH=e}$(e){var o;const{values:t,_$litType$:i}=e,s=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=$t.createElement(_a(i.h,i.h[0]),this.options)),i);if(((o=this._$AH)==null?void 0:o._$AD)===s)this._$AH.p(t);else{const n=new Dh(s,this),a=n.u(this.options);n.p(t),this.T(a),this._$AH=n}}_$AC(e){let t=Ao.get(e.strings);return t===void 0&&Ao.set(e.strings,t=new $t(e)),t}k(e){bs(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,s=0;for(const o of e)s===t.length?t.push(i=new Xt(this.O(Vt()),this.O(Vt()),this,this.options)):i=t[s],i._$AI(o),s++;s<t.length&&(this._$AR(i&&i._$AB.nextSibling,s),t.length=s)}_$AR(e=this._$AA.nextSibling,t){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,t);e&&e!==this._$AB;){const s=e.nextSibling;e.remove(),e=s}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)==null||t.call(this,e))}}class Vr{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,i,s,o){this.type=1,this._$AH=se,this._$AN=void 0,this.element=e,this.name=t,this._$AM=s,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=se}_$AI(e,t=this,i,s){const o=this.strings;let n=!1;if(o===void 0)e=gt(this,e,t,0),n=!Ut(e)||e!==this._$AH&&e!==_t,n&&(this._$AH=e);else{const a=e;let l,d;for(e=o[0],l=0;l<o.length-1;l++)d=gt(this,a[i+l],t,l),d===_t&&(d=this._$AH[l]),n||(n=!Ut(d)||d!==this._$AH[l]),d===se?e=se:e!==se&&(e+=(d!=null?d:"")+o[l+1]),this._$AH[l]=d}n&&!s&&this.j(e)}j(e){e===se?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}class Hh extends Vr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===se?void 0:e}}class zh extends Vr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==se)}}class Fh extends Vr{constructor(e,t,i,s,o){super(e,t,i,s,o),this.type=5}_$AI(e,t=this){var n;if((e=(n=gt(this,e,t,0))!=null?n:se)===_t)return;const i=this._$AH,s=e===se&&i!==se||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,o=e!==se&&(i===se||s);s&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;typeof this._$AH=="function"?this._$AH.call((i=(t=this.options)==null?void 0:t.host)!=null?i:this.element,e):this._$AH.handleEvent(e)}}class Vh{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){gt(this,e)}}const li=Rt.litHtmlPolyfillSupport;var mn;li==null||li($t,Xt),((mn=Rt.litHtmlVersions)!=null?mn:Rt.litHtmlVersions=[]).push("3.3.0");const Uh=(r,e,t)=>{var o,n;const i=(o=t==null?void 0:t.renderBefore)!=null?o:e;let s=i._$litPart$;if(s===void 0){const a=(n=t==null?void 0:t.renderBefore)!=null?n:null;i._$litPart$=s=new Xt(e.insertBefore(Vt(),a),a,void 0,t!=null?t:{})}return s._$AI(r),s};/**
|
|
41
44
|
* @license
|
|
42
45
|
* Copyright 2017 Google LLC
|
|
43
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
44
|
-
*/const
|
|
47
|
+
*/const We=globalThis;class dt extends ot{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,i;const e=super.createRenderRoot();return(i=(t=this.renderOptions).renderBefore)!=null||(t.renderBefore=e.firstChild),e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Uh(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return _t}}var _n;dt._$litElement$=!0,dt.finalized=!0,(_n=We.litElementHydrateSupport)==null||_n.call(We,{LitElement:dt});const di=We.litElementPolyfillSupport;di==null||di({LitElement:dt});var gn;((gn=We.litElementVersions)!=null?gn:We.litElementVersions=[]).push("4.2.0");/**
|
|
45
48
|
* @license
|
|
46
49
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
47
50
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
48
|
-
*/const
|
|
51
|
+
*/const $h=r=>class extends r{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(t,i,s){super.attributeChangedCallback(t,i,s),t==="theme"&&this._set_theme(s)}};/**
|
|
49
52
|
* @license
|
|
50
53
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
51
54
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
52
|
-
*/const
|
|
53
|
-
`)}const
|
|
55
|
+
*/const ga=[],Vi=new Set,vs=new Set;function ba(r){return r&&Object.prototype.hasOwnProperty.call(r,"__themes")}function jh(r){return ba(customElements.get(r))}function Gh(r=[]){return[r].flat(1/0).filter(e=>e instanceof gs?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function va(r,e){return(r||"").split(" ").some(t=>new RegExp(`^${t.split("*").join(".*")}$`,"u").test(e))}function ya(r){return r.map(e=>e.cssText).join(`
|
|
56
|
+
`)}const Ar="vaadin-themable-mixin-style";function qh(r,e){const t=document.createElement("style");t.id=Ar,t.textContent=ya(r),e.content.appendChild(t)}function Wh(r){if(!r.shadowRoot)return;const e=r.constructor;if(r instanceof dt)[...r.shadowRoot.querySelectorAll("style")].forEach(t=>t.remove()),ha(r.shadowRoot,e.elementStyles);else{const t=r.shadowRoot.getElementById(Ar),i=e.prototype._template;t.textContent=i.content.getElementById(Ar).textContent}}function Yh(r){Vi.forEach(e=>{const t=e.deref();t instanceof r?Wh(t):t||Vi.delete(e)})}function wa(r){if(r.prototype instanceof dt)r.elementStyles=r.finalizeStyles(r.styles);else{const e=r.prototype._template;e.content.getElementById(Ar).textContent=ya(r.getStylesForThis())}vs.forEach(e=>{const t=customElements.get(e);t!==r&&t.prototype instanceof r&&wa(t)})}function Zh(r,e){const t=r.__themes;return!t||!e?!1:t.some(i=>i.styles.some(s=>e.some(o=>o.cssText===s.cssText)))}function de(r,e,t={}){e=Gh(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(r,e,t):ga.push({themeFor:r,styles:e,include:t.include,moduleId:t.moduleId}),r&&vs.forEach(i=>{if(va(r,i)&&jh(i)){const s=customElements.get(i);Zh(s,e)?console.warn(`Registering styles that already exist for ${i}`):(!window.Vaadin||!window.Vaadin.suppressPostFinalizeStylesWarning)&&console.warn(`The custom element definition for "${i}" was finalized before a style module was registered. Ideally, import component specific style modules before importing the corresponding custom element. This warning can be suppressed by setting "window.Vaadin.suppressPostFinalizeStylesWarning = true".`),wa(s),Yh(s)}})}function Ui(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():ga}function Xh(r=""){let e=0;return r.startsWith("lumo-")||r.startsWith("material-")?e=1:r.startsWith("vaadin-")&&(e=2),e}function xa(r){const e=[];return r.include&&[].concat(r.include).forEach(t=>{const i=Ui().find(s=>s.moduleId===t);i?e.push(...xa(i),...i.styles):console.warn(`Included moduleId ${t} not found in style registry`)},r.styles),e}function Jh(r){const e=`${r}-default-theme`,t=Ui().filter(i=>i.moduleId!==e&&va(i.themeFor,r)).map(i=>rr(et({},i),{styles:[...xa(i),...i.styles],includePriority:Xh(i.moduleId)})).sort((i,s)=>s.includePriority-i.includePriority);return t.length>0?t:Ui().filter(i=>i.moduleId===e)}const Ur=r=>class extends $h(r){constructor(){super(),Vi.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&vs.add(this.is),this.elementStyles)return;const t=this.prototype._template;!t||ba(this)||qh(this.getStylesForThis(),t)}static finalizeStyles(t){const i=this.getStylesForThis();return t?[...[t].flat(1/0),...i]:i}static getStylesForThis(){const t=r.__themes||[],i=Object.getPrototypeOf(this.prototype),s=(i?i.constructor.__themes:[])||[];this.__themes=[...t,...s,...Jh(this.is)];const o=this.__themes.flatMap(n=>n.styles);return o.filter((n,a)=>a===o.lastIndexOf(n))}};/**
|
|
54
57
|
* @license
|
|
55
58
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
56
59
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
57
|
-
*/const
|
|
58
|
-
`).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",
|
|
60
|
+
*/const Kh=(r,...e)=>{const t=document.createElement("style");t.id=r,t.textContent=e.map(i=>i.toString()).join(`
|
|
61
|
+
`).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",t)},xt=(r,...e)=>{Kh(`lumo-${r}`,e)};/**
|
|
59
62
|
* @license
|
|
60
63
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
61
64
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
62
|
-
*/const
|
|
65
|
+
*/const Qh=R`
|
|
63
66
|
:host {
|
|
64
67
|
/* Base (background) */
|
|
65
68
|
--lumo-base-color: #fff;
|
|
@@ -144,7 +147,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
144
147
|
--lumo-disabled-text-color: GrayText;
|
|
145
148
|
}
|
|
146
149
|
}
|
|
147
|
-
`;
|
|
150
|
+
`;xt("color-props",Qh);const ec=R`
|
|
148
151
|
[theme~='dark'] {
|
|
149
152
|
/* Base (background) */
|
|
150
153
|
--lumo-base-color: hsl(214, 35%, 21%);
|
|
@@ -262,11 +265,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
262
265
|
pre code {
|
|
263
266
|
background: transparent;
|
|
264
267
|
}
|
|
265
|
-
`;
|
|
268
|
+
`;de("",ec,{moduleId:"lumo-color"});/**
|
|
266
269
|
* @license
|
|
267
270
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
268
271
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
269
|
-
*/const
|
|
272
|
+
*/const tc=R`
|
|
270
273
|
:host {
|
|
271
274
|
/* Square */
|
|
272
275
|
--lumo-space-xs: 0.25rem;
|
|
@@ -289,11 +292,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
289
292
|
--lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
|
|
290
293
|
--lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
|
|
291
294
|
}
|
|
292
|
-
`;
|
|
295
|
+
`;xt("spacing-props",tc);/**
|
|
293
296
|
* @license
|
|
294
297
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
295
298
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
296
|
-
*/const
|
|
299
|
+
*/const rc=R`
|
|
297
300
|
:host {
|
|
298
301
|
/* Border radius */
|
|
299
302
|
--lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
|
|
@@ -310,7 +313,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
310
313
|
/* Clickable element cursor */
|
|
311
314
|
--lumo-clickable-cursor: default;
|
|
312
315
|
}
|
|
313
|
-
`;
|
|
316
|
+
`;R`
|
|
314
317
|
html {
|
|
315
318
|
/* Button */
|
|
316
319
|
--vaadin-button-background: var(--lumo-contrast-5pct);
|
|
@@ -393,11 +396,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
393
396
|
--vaadin-input-field-value-font-size: var(--lumo-font-size-m);
|
|
394
397
|
--vaadin-input-field-value-font-weight: 500;
|
|
395
398
|
}
|
|
396
|
-
`;
|
|
399
|
+
`;xt("style-props",rc);/**
|
|
397
400
|
* @license
|
|
398
401
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
399
402
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
400
|
-
*/const
|
|
403
|
+
*/const ic=R`
|
|
401
404
|
@font-face {
|
|
402
405
|
font-family: 'lumo-icons';
|
|
403
406
|
src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABEgAAsAAAAAIjQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAQwAAAFZAIUuKY21hcAAAAYgAAAD4AAADrsCU8d5nbHlmAAACgAAAC2cAABeAWri7U2hlYWQAAA3oAAAAMAAAADZa/6SsaGhlYQAADhgAAAAdAAAAJAbpA35obXR4AAAOOAAAABAAAACspBAAAGxvY2EAAA5IAAAAWAAAAFh57oA4bWF4cAAADqAAAAAfAAAAIAFKAXBuYW1lAAAOwAAAATEAAAIuUUJZCHBvc3QAAA/0AAABKwAAAelm8SzVeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGS+yDiBgZWBgamKaQ8DA0MPhGZ8wGDIyAQUZWBlZsAKAtJcUxgcXjG+0mIO+p/FEMUcxDANKMwIkgMABn8MLQB4nO3SWW6DMABF0UtwCEnIPM/zhLK8LqhfXRybSP14XUYtHV9hGYQwQBNIo3cUIPkhQeM7rib1ekqnXg981XuC1qvy84lzojleh3puxL0hPjGjRU473teloEefAUNGjJkwZcacBUtWrNmwZceeA0dOnLlw5cadB09elPGhGf+j0NTI/65KfXerT6JhqKnpRKtgOpuqaTrtKjPUlqHmhto21I7pL6i6hlqY3q7qGWrfUAeGOjTUkaGODXViqFNDnRnq3FAXhro01JWhrg11Y6hbQ90Z6t5QD4Z6NNSToZ4N9WKoV0O9GerdUB+G+jTUl6GWRvkL24BkEXictVh9bFvVFb/nxvbz+7Rf/N6zHcd2bCfP+Wic1Z9N0jpNHCD9SNqqoVBgbQoMjY+pjA4hNnWa2pV1rHSIif0DGkyT2k10Kmu1Cag6huj4ZpqYBHSqJsTEJgZCG3TaVBFv595nO3ZIv4RIrPPuvefe884599zzO/cRF8G/tgn6CFFImNgkR0ggX8wlspbhSSWSdrC5ozd30s2dw5afzvgtyz9/zG9t1hV4RtF1pXolowvtzc2z6L2aYUQM45jKH9WDTvd1LRDoDASYWhfTzTyvboXz6uZX4ARX5wrF39y+HM2+CJ8d0pkyqBIqoze3D12ez4DrFoYzxI8dWwMrDlZ2DMqQAR9AROsJU+2smlTPaTTco52BVxXa2a2+I8vvqd2dVHm1LoPeTn/AZPRYGthDYOeZjBjKoFsVGulR3lGU95SeCK44oHU7MhWUGUKZDT3oSUcG2GWuh+EDDfUYA/jhIhl0TOsJNYSEu7mQmi3UzfXwZKA4BsVsHLXQYGgJW95qEtpJ1VcW9HiTriZBlFEqxsDjA09yCNUoQxxwd7KWSTt2y3GTKifkqHRCoWZc3m11Wa/dKdFgXD4kSYfkeJBKd8KMz7J8dZn/cGRCcLGDnA2Ge3bKzcvlnTDNthFWLH7Xt80ua5FMjA4WKelWv5Xo16vHuYzpRbJhhdVlftuRK0VlR27D9lu5TF0DPBi60OrHNO0AfP/uRWvhn/U3LXICE+nh+3IHPUJ8JE6GyBjZQLbjGchlrSgYngF8zyrIF4NJD3atUcgWsWunGN/UHX5B5/yg7uF87Nqp4Gf52F3gH73DjEZNRoqCKAr9giQJp5rGJABpiVE2htNhW9R8nw0jqYjCYcY4LIjwYNScf4WN06IZnZCEqsI4cFaQbo4Z1TsZBx40YhXkHOecaYE5oY37IIQ+iJJ+UsDYSun5MuRSBRZRUUhlY2DqOGajOR6zrSU/5My6l2DnusH1GQgnw5BZP7iuYM/ahcfQ7Z8y51ddfutvuwNqWQ0cBYr8fj0U0vsHpwerVaB2sWhXT2NExi2r1KUE2tUuVMnkepVQrxTmpQrZTG4iu8he8iPyM3KcPE/+RP5KPoE2CEAKclCBzXATxkYOtUY/o961PWRqsj0chRrHFBbtrjP9/P0ven5pcbRdpL94vfsy33e5+izuwz3nFLFPVNayPZx/jdG1fOChflFRvYzsW6L18efgLrSWIgvcqnGJYi4skO4xREURjbDuxKke5v0T3Mrzkt2fi31uyZlLLrqIpEuXXsMlgw442Jb0GAxjS1DM20kBoCzHLXm/jEm0IltdcvU0fEW24jgiwwRjVd9u4NJHcIyoHJcwvyVqgqj5hqBJ1ZWSJryh9p56UWhX1XbhRbW2ZopuZWsQd5y8mEQ8M+C6xjRYxZbDKWf5AgY+Qq/l6wSPk16zDFjowYuu+wjx13mfkxbyDDxadYT/LijZyI0THB+6yfLaWsRcO82zo9mWTNtpO18qlorZoIVMwSN40tky5DOQ1MCIAe24mvlsuwIIxPb10+uXDQ4uWz/9m3rj+ql7p6bufZARuPVq5tXtsn6KwfP8Jy0TeWOyNhUJN6mhX5rkUTtUppQWEMNTqEdaCGKFYKJaQrCE4JtDLYOlNEKmO5kBTPGY2A0N2sY3+dVlo1N9ycBsIGtOjQ2p/tlZvzo0ur4v6cOh8NTospB7U/X40KahoU3bGIH97dnwmtHlYffVG3R1YOwKM2vNhrPhCT5zk64sG53oS4b31aYjqe/B7+kQiXBN+b6h21hNUPMq29B8CU4elINdygMPKF1B+WBTG7Z9ZshpN/xwEuuDQZR+nuoo4CDaAiiwXmLpmukMQyPf/JMclqgL1ixZQ/nnP2VbdUODFGt2fgBvL123rlLYu/6A9ckb7F3K0/CyBMEu6aQoPscroCcacVehvyQyCZAsizsWWBkoLC+WAiWnOksLKaeuQDzGuqSk42aiYTiJ4zf9afl17SrqaTO1f+XlZAfIuYcq7/IqYMaMrksOJ6vHkOCPDq943xcCnHqVD9pHFRpMqSPXrIua1WNs+tOz1U+ciTCDpPk+c4QYJIHnYhxP/kVPAq+ahFpVhPcHp8qyarhiF+HsBU9Hrl+UZa876fbKipL0KqB6OdUveErgtOI97fZ63ae9SvWU6k2w1JfwqnUbHsYcFCJFrC/W12zIMMirWYEHxMPs6LGYSdkSZ5TsNP9PCpwnWC3HKZ1lydNjWHC2Mn3l6vL0dHn1ldP3LTSrX+vKrBqv7KmMr8p0SR6P1NqF63or6XRlIyO90f7+kf7+myOhvt4tq7f09oUiTc2/dycGgqFQcCDRLYmi1NL7fk0CknVMxEg/cdfs/TnpJMNkgqwj17B8beVazSrVbU4lG67IZYOCnWrYy3yBR9cyWcChywos3LJBEdhhFoAdYjiw0rLGm0xU5OzoGm5/ZfmHjVZpNNg6SznzGKDdwv2cCtVn6Eaxo12cfxLprpVtTcZ6hVx6dow7Yq7e8LXO8PY9Jgjoze9yCtU5FNbegcKkQMdCbt9au/te4Ebe0jkc0ukUL32eYnTpNs20h0KpUOhZPYwVcfhZnfdqeCvDfXiuCbAoYWcXERPc/mDQD3/hdF+wK4i/xv3kYfprIpAuMkk2kW3kdtS0kBIKpZwp8KxmsCyfM1MFzAss9LBkDxRyThiaqTLwKYKJVTwmWTudMyz+yks09346MDh4m72yOxCKrt1XMlQ1qPVlTEVVQ1ofdK/sCWjtZu9qGwZ8YZ9PPWlo1IV3eW3+U0aXblP39zrt+JPf6UhEQ1rUjNBULN+utyuaDNW34kpAVuSOeMTyWbSNWnooFu+QFNWQ4d/Ox4IPWx41fP/fB/Rjeoz08ezPA9TysMtmnOXfGN7Ui3xIYLDALrlDLOP09qtJuY2OeL0+QZXdRnR1nxRVBF/SOyKKPpcrn9mWzH4rH9IidE+PTNU2182+hOgSItrE1slByS24vaLvJpxOqe4Pduf3HJkZ+jLqUz9rRzB7p8gKcgWZwV1L8JtUS5Z2JxZSOCuBoMTQihMzLbCPA0KqGMAljRQjONklW/wjnXKy8vxT/Elvm3/KiMUMOoV0/vnDYlhec0SMKtt3/kKMyOt33tj2bqxQLsTjSGLl+EAsNhCnTyRGktW55EgCn/A4PlnWn+Mg8bgZrWqHxTbPwMuyy1u5YeZF2SUM7JRhddwRgiRuxpmgJmxn9ZW7XpcF3ViX/ar6ptRpGJ0S9Adg4qhb9sI3vbL7qNJV/y4i07t5TZBiho1imFoMz3gED+CtjYUxvP4SOxov4bFoNPg5aR1e+G4UgDPoedJTpogyCJ7oYvRqoVS0MQAy+CoNEdTDUjok5ZHZL/WtjV7rFj3PKQE3iKp7ou+rIxN3b9LB1dGjeT4cvKo3FrnWpYpuaFd/h3dtV8UeKN1Y9hpR3dt4p0H/zKuPQq0kZQUIIpuDfoiETsnIk+gCWMJZUXHtE8V9LkUc2TE8vOMbO4ax/MACabzyaGXc7u3FBr11ThBdB8SIeMAlCntG2KThHSPsaj2Dc9KNyY2a0KZ7ODaTHoRiFkeYz+shZBpCS4X6471KKKnuHd84edfk5F37d1XO5bbkcltu2ZLNbvnPXiUVAnVvprJrP+NObryjxrllS65md6Tm6wzFHRR4dY3QUUjb7MgxaIixU8hspi98fl/Xc+IB4iU66eCVL9YfAfahiSUt4TONS8x0D8W7u8vd3fGWx6OXlM/U1IoU/s61PGhpyXRFa3eReq2qG56lvmYtXavCC1iN7lbiBpWxXHU+cSlztVLVz0tVN600fVsLxaVDknhYioeoXP3t4lqV1r79MAw0GCI1FTL1YIGzPL1MMlJ9ZsN9P7lvA2yr9ZFUzwzPrVgxN/x/SS+chwB4nGNgZGBgAOLPrYdY4vltvjJwM78AijDUqG5oRND/XzNPZboF5HIwMIFEAU/lC+J4nGNgZGBgDvqfBSRfMAAB81QGRgZUoA0AVvYDbwAAAHicY2BgYGB+MTQwAM8EJo8AAAAAAE4AmgDoAQoBLAFOAXABmgHEAe4CGgKcAugEmgS8BNYE8gUOBSoFegXQBf4GRAZmBrYHGAeQCBgIUghqCP4JRgm+CdoKBAo+CoQKugr0C1QLmgvAeJxjYGRgYNBmTGEQZQABJiDmAkIGhv9gPgMAGJQBvAB4nG2RPU7DMBiG3/QP0UoIBGJh8QILavozdmRo9w7d09RpUzlx5LgVvQMn4BAcgoEzcAgOwVvzSZVQbcnf48fvFysJgGt8IcJxROiG9TgauODuj5ukG+EW+UG4jR4ehTv0Q+EunjER7uEWmk+IWpc0d3gVbuAKb8JN+nfhFvlDuI17fAp36L+Fu1jgR7iHp+jF7Arbz1Nb1nO93pnEncSJFtrVuS3VKB6e5EyX2iVer9TyoOr9eux9pjJnCzW1pdfGWFU5u9WpjzfeV5PBIBMfp7aAwQ4FLPrIkbKWqDHn+67pDRK4s4lzbsEux5qHvcIIMb/nueSMyTKkE3jWFdNLHLjW2PPmMa1Hxn3GjGW/wjT0HtOG09JU4WxLk9LH2ISuiv9twJn9y8fh9uIXI+BknAAAAHicbY7ZboMwEEW5CVBCSLrv+76kfJRjTwHFsdGAG+Xvy5JUfehIHp0rnxmNN/D6ir3/a4YBhvARIMQOIowQY4wEE0yxiz3s4wCHOMIxTnCKM5zjApe4wjVucIs73OMBj3jCM17wije84wMzfHqJ0EVmUkmmJo77oOmrHvfIRZbXsTCZplTZldlgb3TYGVHProwFs11t1A57tcON2rErR3PBqcwF1/6ctI6k0GSU4JHMSS6WghdJQ99sTbfuN7QLJ9vQ37dNrgyktnIxlDYLJNuqitpRbYWKFNuyDT6pog6oOYKHtKakeakqKjHXpPwlGRcsC+OqxLIiJpXqoqqDMreG2l5bv9Ri3TRX+c23DZna9WFFgmXuO6Ps1Jm/w6ErW8N3FbHn/QC444j0AA==)
|
|
@@ -450,11 +453,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
450
453
|
--lumo-icons-upload: '\\ea29';
|
|
451
454
|
--lumo-icons-user: '\\ea2a';
|
|
452
455
|
}
|
|
453
|
-
`;
|
|
456
|
+
`;xt("font-icons",ic);/**
|
|
454
457
|
* @license
|
|
455
458
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
456
459
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
457
|
-
*/const
|
|
460
|
+
*/const sc=R`
|
|
458
461
|
:host {
|
|
459
462
|
--lumo-size-xs: 1.625rem;
|
|
460
463
|
--lumo-size-s: 1.875rem;
|
|
@@ -469,11 +472,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
469
472
|
/* For backwards compatibility */
|
|
470
473
|
--lumo-icon-size: var(--lumo-icon-size-m);
|
|
471
474
|
}
|
|
472
|
-
`;
|
|
475
|
+
`;xt("sizing-props",sc);/**
|
|
473
476
|
* @license
|
|
474
477
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
475
478
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
476
|
-
*/const
|
|
479
|
+
*/const oc=R`
|
|
477
480
|
:host {
|
|
478
481
|
/* prettier-ignore */
|
|
479
482
|
--lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
@@ -493,7 +496,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
493
496
|
--lumo-line-height-s: 1.375;
|
|
494
497
|
--lumo-line-height-m: 1.625;
|
|
495
498
|
}
|
|
496
|
-
`,
|
|
499
|
+
`,nc=R`
|
|
497
500
|
body,
|
|
498
501
|
:host {
|
|
499
502
|
font-family: var(--lumo-font-family);
|
|
@@ -585,7 +588,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
585
588
|
border-left: none;
|
|
586
589
|
border-right: 2px solid var(--lumo-contrast-30pct);
|
|
587
590
|
}
|
|
588
|
-
`;
|
|
591
|
+
`;de("",nc,{moduleId:"lumo-typography"});xt("typography-props",oc);const Pa=R`
|
|
589
592
|
:host {
|
|
590
593
|
display: flex;
|
|
591
594
|
align-items: center;
|
|
@@ -669,7 +672,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
669
672
|
width: var(--lumo-icon-size-m);
|
|
670
673
|
height: var(--lumo-icon-size-m);
|
|
671
674
|
}
|
|
672
|
-
`;
|
|
675
|
+
`;de("vaadin-item",Pa,{moduleId:"lumo-item"});const ac=R`
|
|
673
676
|
:host {
|
|
674
677
|
transition: background-color 100ms;
|
|
675
678
|
overflow: hidden;
|
|
@@ -681,11 +684,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
681
684
|
:host([focused]:not([disabled])) {
|
|
682
685
|
box-shadow: inset 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
|
|
683
686
|
}
|
|
684
|
-
`;
|
|
687
|
+
`;de("vaadin-combo-box-item",[Pa,ac],{moduleId:"lumo-combo-box-item"});/**
|
|
685
688
|
* @license
|
|
686
689
|
* Copyright (c) 2022 - 2024 Vaadin Ltd.
|
|
687
690
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
688
|
-
*/const
|
|
691
|
+
*/const lc=R`
|
|
689
692
|
[part~='loader'] {
|
|
690
693
|
box-sizing: border-box;
|
|
691
694
|
width: var(--lumo-icon-size-s);
|
|
@@ -731,7 +734,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
731
734
|
* @license
|
|
732
735
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
733
736
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
734
|
-
*/const
|
|
737
|
+
*/const ys=R`
|
|
735
738
|
:host {
|
|
736
739
|
top: var(--lumo-space-m);
|
|
737
740
|
right: var(--lumo-space-m);
|
|
@@ -796,11 +799,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
796
799
|
opacity: 1;
|
|
797
800
|
}
|
|
798
801
|
}
|
|
799
|
-
`;
|
|
802
|
+
`;de("",ys,{moduleId:"lumo-overlay"});/**
|
|
800
803
|
* @license
|
|
801
804
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
802
805
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
803
|
-
*/const
|
|
806
|
+
*/const ws=R`
|
|
804
807
|
:host([opening]),
|
|
805
808
|
:host([closing]) {
|
|
806
809
|
animation: 0.14s lumo-overlay-dummy-animation;
|
|
@@ -830,7 +833,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
830
833
|
opacity: 0;
|
|
831
834
|
}
|
|
832
835
|
}
|
|
833
|
-
`;
|
|
836
|
+
`;de("",ws,{moduleId:"lumo-menu-overlay-core"});const dc=R`
|
|
834
837
|
/* Small viewport (bottom sheet) styles */
|
|
835
838
|
/* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
|
|
836
839
|
@media (max-width: 450px), (max-height: 450px) {
|
|
@@ -892,7 +895,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
892
895
|
transform: translateY(150%);
|
|
893
896
|
}
|
|
894
897
|
}
|
|
895
|
-
`,
|
|
898
|
+
`,uc=[ys,ws,dc];de("",uc,{moduleId:"lumo-menu-overlay"});const hc=R`
|
|
896
899
|
[part='content'] {
|
|
897
900
|
padding: 0;
|
|
898
901
|
}
|
|
@@ -913,7 +916,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
913
916
|
:host([bottom-aligned]) [part~='overlay'] {
|
|
914
917
|
margin-bottom: var(--lumo-space-xs);
|
|
915
918
|
}
|
|
916
|
-
`,
|
|
919
|
+
`,cc=R`
|
|
917
920
|
[part~='loader'] {
|
|
918
921
|
position: absolute;
|
|
919
922
|
z-index: 1;
|
|
@@ -921,12 +924,12 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
921
924
|
top: var(--lumo-space-s);
|
|
922
925
|
margin-inline: auto 0;
|
|
923
926
|
}
|
|
924
|
-
`;
|
|
927
|
+
`;de("vaadin-combo-box-overlay",[ys,ws,hc,lc,cc,R`
|
|
925
928
|
:host {
|
|
926
929
|
--_vaadin-combo-box-items-container-border-width: var(--lumo-space-xs);
|
|
927
930
|
--_vaadin-combo-box-items-container-border-style: solid;
|
|
928
931
|
}
|
|
929
|
-
`],{moduleId:"lumo-combo-box-overlay"});
|
|
932
|
+
`],{moduleId:"lumo-combo-box-overlay"});de("vaadin-input-container",R`
|
|
930
933
|
:host {
|
|
931
934
|
background: var(--_background);
|
|
932
935
|
padding: 0 calc(0.375em + var(--_input-container-radius) / 4 - 1px);
|
|
@@ -1108,7 +1111,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
1108
1111
|
* @license
|
|
1109
1112
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1110
1113
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1111
|
-
*/const
|
|
1114
|
+
*/const Ea=R`
|
|
1112
1115
|
[part$='button'] {
|
|
1113
1116
|
flex: none;
|
|
1114
1117
|
width: 1em;
|
|
@@ -1135,11 +1138,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
1135
1138
|
font-family: 'lumo-icons';
|
|
1136
1139
|
display: block;
|
|
1137
1140
|
}
|
|
1138
|
-
`;
|
|
1141
|
+
`;de("",Ea,{moduleId:"lumo-field-button"});/**
|
|
1139
1142
|
* @license
|
|
1140
1143
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1141
1144
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1142
|
-
*/const
|
|
1145
|
+
*/const fc=R`
|
|
1143
1146
|
:host {
|
|
1144
1147
|
--_helper-spacing: var(--vaadin-input-field-helper-spacing, 0.4em);
|
|
1145
1148
|
}
|
|
@@ -1199,7 +1202,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
1199
1202
|
* @license
|
|
1200
1203
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1201
1204
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1202
|
-
*/const
|
|
1205
|
+
*/const Ca=R`
|
|
1203
1206
|
[part='label'] {
|
|
1204
1207
|
align-self: flex-start;
|
|
1205
1208
|
color: var(--vaadin-input-field-label-color, var(--lumo-secondary-text-color));
|
|
@@ -1311,11 +1314,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
1311
1314
|
margin-left: 0;
|
|
1312
1315
|
margin-right: calc(var(--lumo-border-radius-m) / 4);
|
|
1313
1316
|
}
|
|
1314
|
-
`;
|
|
1317
|
+
`;de("",Ca,{moduleId:"lumo-required-field"});/**
|
|
1315
1318
|
* @license
|
|
1316
1319
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1317
1320
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1318
|
-
*/const
|
|
1321
|
+
*/const pc=R`
|
|
1319
1322
|
:host {
|
|
1320
1323
|
--lumo-text-field-size: var(--lumo-size-m);
|
|
1321
1324
|
color: var(--vaadin-input-field-value-color, var(--lumo-body-text-color));
|
|
@@ -1446,11 +1449,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
1446
1449
|
[part='clear-button']::before {
|
|
1447
1450
|
content: var(--lumo-icons-cross);
|
|
1448
1451
|
}
|
|
1449
|
-
`,
|
|
1452
|
+
`,Sa=[Ca,Ea,fc,pc];de("",Sa,{moduleId:"lumo-input-field-shared-styles"});const mc=R`
|
|
1450
1453
|
[part='toggle-button']::before {
|
|
1451
1454
|
content: var(--lumo-icons-dropdown);
|
|
1452
1455
|
}
|
|
1453
|
-
`;
|
|
1456
|
+
`;de("vaadin-combo-box",[Sa,mc],{moduleId:"lumo-combo-box"});/**
|
|
1454
1457
|
@license
|
|
1455
1458
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1456
1459
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1458,7 +1461,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1458
1461
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1459
1462
|
Code distributed by Google as part of the polymer project is also
|
|
1460
1463
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1461
|
-
*/window.JSCompiler_renameProperty=function(r,
|
|
1464
|
+
*/window.JSCompiler_renameProperty=function(r,e){return r};/**
|
|
1462
1465
|
@license
|
|
1463
1466
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1464
1467
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1466,7 +1469,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1466
1469
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1467
1470
|
Code distributed by Google as part of the polymer project is also
|
|
1468
1471
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1469
|
-
*/let
|
|
1472
|
+
*/let _c=/(url\()([^)]*)(\))/g,gc=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,nr,we;function Dt(r,e){if(r&&gc.test(r)||r==="//")return r;if(nr===void 0){nr=!1;try{const t=new URL("b","http://a");t.pathname="c%20d",nr=t.href==="http://a/c%20d"}catch(t){}}if(e||(e=document.baseURI||window.location.href),nr)try{return new URL(r,e).href}catch(t){return r}return we||(we=document.implementation.createHTMLDocument("temp"),we.base=we.createElement("base"),we.head.appendChild(we.base),we.anchor=we.createElement("a"),we.body.appendChild(we.anchor)),we.base.href=e,we.anchor.href=r,we.anchor.href||r}function xs(r,e){return r.replace(_c,function(t,i,s,o){return i+"'"+Dt(s.replace(/["']/g,""),e)+"'"+o})}function Ps(r){return r.substring(0,r.lastIndexOf("/")+1)}/**
|
|
1470
1473
|
@license
|
|
1471
1474
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1472
1475
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1474,7 +1477,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1474
1477
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1475
1478
|
Code distributed by Google as part of the polymer project is also
|
|
1476
1479
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1477
|
-
*/const
|
|
1480
|
+
*/const bc=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const vc=bc&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const r=new CSSStyleSheet;r.replaceSync("");const e=document.createElement("div");return e.attachShadow({mode:"open"}),e.shadowRoot.adoptedStyleSheets=[r],e.shadowRoot.adoptedStyleSheets[0]===r}catch(r){return!1}})();let yc=window.Polymer&&window.Polymer.rootPath||Ps(document.baseURI||window.location.href),Tr=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let $i=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,wc=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,xc=window.Polymer&&window.Polymer.legacyOptimizations||!1,Pc=window.Polymer&&window.Polymer.legacyWarnings||!1,Ec=window.Polymer&&window.Polymer.syncInitialRender||!1,ji=window.Polymer&&window.Polymer.legacyUndefined||!1,Cc=window.Polymer&&window.Polymer.orderedComputed||!1,To=window.Polymer&&window.Polymer.removeNestedTemplates||!1,Sc=window.Polymer&&window.Polymer.fastDomIf||!1;window.Polymer&&window.Polymer.suppressTemplateNotifications;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let Ac=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
|
|
1478
1481
|
@license
|
|
1479
1482
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1480
1483
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1482,7 +1485,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1482
1485
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1483
1486
|
Code distributed by Google as part of the polymer project is also
|
|
1484
1487
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1485
|
-
*/let
|
|
1488
|
+
*/let Tc=0;const ne=function(r){let e=r.__mixinApplications;e||(e=new WeakMap,r.__mixinApplications=e);let t=Tc++;function i(s){let o=s.__mixinSet;if(o&&o[t])return s;let n=e,a=n.get(s);if(!a){a=r(s),n.set(s,a);let l=Object.create(a.__mixinSet||o||null);l[t]=!0,a.__mixinSet=l}return a}return i};/**
|
|
1486
1489
|
@license
|
|
1487
1490
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1488
1491
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1490,7 +1493,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1490
1493
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1491
1494
|
Code distributed by Google as part of the polymer project is also
|
|
1492
1495
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1493
|
-
*/let
|
|
1496
|
+
*/let Es={},Aa={};function Io(r,e){Es[r]=Aa[r.toLowerCase()]=e}function Oo(r){return Es[r]||Aa[r.toLowerCase()]}function Ic(r){r.querySelector("style")&&console.warn("dom-module %s has style outside template",r.id)}class jt extends HTMLElement{static get observedAttributes(){return["id"]}static import(e,t){if(e){let i=Oo(e);return i&&t?i.querySelector(t):i}return null}attributeChangedCallback(e,t,i,s){t!==i&&this.register()}get assetpath(){if(!this.__assetpath){const e=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,t=Dt(this.getAttribute("assetpath")||"",e.baseURI);this.__assetpath=Ps(t)}return this.__assetpath}register(e){if(e=e||this.id,e){if($i&&Oo(e)!==void 0)throw Io(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);this.id=e,Io(e,this),Ic(this)}}}jt.prototype.modules=Es;customElements.define("dom-module",jt);/**
|
|
1494
1497
|
@license
|
|
1495
1498
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1496
1499
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1498,7 +1501,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1498
1501
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1499
1502
|
Code distributed by Google as part of the polymer project is also
|
|
1500
1503
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1501
|
-
*/const
|
|
1504
|
+
*/const Oc="link[rel=import][type~=css]",Nc="include",No="shady-unscoped";function Ta(r){return jt.import(r)}function ko(r){let e=r.body?r.body:r;const t=xs(e.textContent,r.baseURI),i=document.createElement("style");return i.textContent=t,i}function kc(r){const e=r.trim().split(/\s+/),t=[];for(let i=0;i<e.length;i++)t.push(...Mc(e[i]));return t}function Mc(r){const e=Ta(r);if(!e)return console.warn("Could not find style data in module named",r),[];if(e._styles===void 0){const t=[];t.push(...Oa(e));const i=e.querySelector("template");i&&t.push(...Ia(i,e.assetpath)),e._styles=t}return e._styles}function Ia(r,e){if(!r._styles){const t=[],i=r.content.querySelectorAll("style");for(let s=0;s<i.length;s++){let o=i[s],n=o.getAttribute(Nc);n&&t.push(...kc(n).filter(function(a,l,d){return d.indexOf(a)===l})),e&&(o.textContent=xs(o.textContent,e)),t.push(o)}r._styles=t}return r._styles}function Lc(r){let e=Ta(r);return e?Oa(e):[]}function Oa(r){const e=[],t=r.querySelectorAll(Oc);for(let i=0;i<t.length;i++){let s=t[i];if(s.import){const o=s.import,n=s.hasAttribute(No);if(n&&!o._unscopedStyle){const a=ko(o);a.setAttribute(No,""),o._unscopedStyle=a}else o._style||(o._style=ko(o));e.push(n?o._unscopedStyle:o._style)}}return e}/**
|
|
1502
1505
|
@license
|
|
1503
1506
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1504
1507
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1506,7 +1509,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1506
1509
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1507
1510
|
Code distributed by Google as part of the polymer project is also
|
|
1508
1511
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1509
|
-
*/const
|
|
1512
|
+
*/const Ye=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?r=>ShadyDOM.patch(r):r=>r;/**
|
|
1510
1513
|
@license
|
|
1511
1514
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1512
1515
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1514,7 +1517,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1514
1517
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1515
1518
|
Code distributed by Google as part of the polymer project is also
|
|
1516
1519
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1517
|
-
*/function
|
|
1520
|
+
*/function Gi(r){return r.indexOf(".")>=0}function Qe(r){let e=r.indexOf(".");return e===-1?r:r.slice(0,e)}function Bc(r,e){return r.indexOf(e+".")===0}function Ir(r,e){return e.indexOf(r+".")===0}function Or(r,e,t){return e+t.slice(r.length)}function Nt(r){if(Array.isArray(r)){let e=[];for(let t=0;t<r.length;t++){let i=r[t].toString().split(".");for(let s=0;s<i.length;s++)e.push(i[s])}return e.join(".")}else return r}function Na(r){return Array.isArray(r)?Nt(r).split("."):r.toString().split(".")}function ge(r,e,t){let i=r,s=Na(e);for(let o=0;o<s.length;o++){if(!i)return;let n=s[o];i=i[n]}return t&&(t.path=s.join(".")),i}function Mo(r,e,t){let i=r,s=Na(e),o=s[s.length-1];if(s.length>1){for(let n=0;n<s.length-1;n++){let a=s[n];if(i=i[a],!i)return}i[o]=t}else i[e]=t;return s.join(".")}/**
|
|
1518
1521
|
@license
|
|
1519
1522
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1520
1523
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1522,7 +1525,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1522
1525
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1523
1526
|
Code distributed by Google as part of the polymer project is also
|
|
1524
1527
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1525
|
-
*/const
|
|
1528
|
+
*/const Nr={},Rc=/-[a-z]/g,Dc=/([A-Z])/g;function ka(r){return Nr[r]||(Nr[r]=r.indexOf("-")<0?r:r.replace(Rc,e=>e[1].toUpperCase()))}function $r(r){return Nr[r]||(Nr[r]=r.replace(Dc,"-$1").toLowerCase())}/**
|
|
1526
1529
|
@license
|
|
1527
1530
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1528
1531
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1530,7 +1533,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1530
1533
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1531
1534
|
Code distributed by Google as part of the polymer project is also
|
|
1532
1535
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1533
|
-
*/let
|
|
1536
|
+
*/let Hc=0,Ma=0,ut=[],zc=0,qi=!1,La=document.createTextNode("");new window.MutationObserver(Fc).observe(La,{characterData:!0});function Fc(){qi=!1;const r=ut.length;for(let e=0;e<r;e++){let t=ut[e];if(t)try{t()}catch(i){setTimeout(()=>{throw i})}}ut.splice(0,r),Ma+=r}const Vc={run(r){return qi||(qi=!0,La.textContent=zc++),ut.push(r),Hc++},cancel(r){const e=r-Ma;if(e>=0){if(!ut[e])throw new Error("invalid async handle: "+r);ut[e]=null}}};/**
|
|
1534
1537
|
@license
|
|
1535
1538
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1536
1539
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1538,7 +1541,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1538
1541
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1539
1542
|
Code distributed by Google as part of the polymer project is also
|
|
1540
1543
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1541
|
-
*/const
|
|
1544
|
+
*/const Uc=Vc,Ba=ne(r=>{class e extends r{static createProperties(i){const s=this.prototype;for(let o in i)o in s||s._createPropertyAccessor(o)}static attributeNameForProperty(i){return i.toLowerCase()}static typeForProperty(i){}_createPropertyAccessor(i,s){this._addPropertyToAttributeMap(i),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[i]||(this.__dataHasAccessor[i]=!0,this._definePropertyAccessor(i,s))}_addPropertyToAttributeMap(i){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let s=this.__dataAttributes[i];return s||(s=this.constructor.attributeNameForProperty(i),this.__dataAttributes[s]=i),s}_definePropertyAccessor(i,s){Object.defineProperty(this,i,{get(){return this.__data[i]},set:s?function(){}:function(o){this._setPendingProperty(i,o,!0)&&this._invalidateProperties()}})}constructor(){super(),this.__dataEnabled=!1,this.__dataReady=!1,this.__dataInvalid=!1,this.__data={},this.__dataPending=null,this.__dataOld=null,this.__dataInstanceProps=null,this.__dataCounter=0,this.__serializing=!1,this._initializeProperties()}ready(){this.__dataReady=!0,this._flushProperties()}_initializeProperties(){for(let i in this.__dataHasAccessor)this.hasOwnProperty(i)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[i]=this[i],delete this[i])}_initializeInstanceProperties(i){Object.assign(this,i)}_setProperty(i,s){this._setPendingProperty(i,s)&&this._invalidateProperties()}_getProperty(i){return this.__data[i]}_setPendingProperty(i,s,o){let n=this.__data[i],a=this._shouldPropertyChange(i,s,n);return a&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(i in this.__dataOld)&&(this.__dataOld[i]=n),this.__data[i]=s,this.__dataPending[i]=s),a}_isPropertyPending(i){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(i))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Uc.run(()=>{this.__dataInvalid&&(this.__dataInvalid=!1,this._flushProperties())}))}_enableProperties(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())}_flushProperties(){this.__dataCounter++;const i=this.__data,s=this.__dataPending,o=this.__dataOld;this._shouldPropertiesChange(i,s,o)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(i,s,o)),this.__dataCounter--}_shouldPropertiesChange(i,s,o){return!!s}_propertiesChanged(i,s,o){}_shouldPropertyChange(i,s,o){return o!==s&&(o===o||s===s)}attributeChangedCallback(i,s,o,n){s!==o&&this._attributeToProperty(i,o),super.attributeChangedCallback&&super.attributeChangedCallback(i,s,o,n)}_attributeToProperty(i,s,o){if(!this.__serializing){const n=this.__dataAttributes,a=n&&n[i]||i;this[a]=this._deserializeValue(s,o||this.constructor.typeForProperty(a))}}_propertyToAttribute(i,s,o){this.__serializing=!0,o=arguments.length<3?this[i]:o,this._valueToNodeAttribute(this,o,s||this.constructor.attributeNameForProperty(i)),this.__serializing=!1}_valueToNodeAttribute(i,s,o){const n=this._serializeValue(s);(o==="class"||o==="name"||o==="slot")&&(i=Ye(i)),n===void 0?i.removeAttribute(o):i.setAttribute(o,n===""&&window.trustedTypes?window.trustedTypes.emptyScript:n)}_serializeValue(i){switch(typeof i){case"boolean":return i?"":void 0;default:return i!=null?i.toString():void 0}}_deserializeValue(i,s){switch(s){case Boolean:return i!==null;case Number:return Number(i);default:return i}}}return e});/**
|
|
1542
1545
|
@license
|
|
1543
1546
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1544
1547
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1546,7 +1549,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1546
1549
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1547
1550
|
Code distributed by Google as part of the polymer project is also
|
|
1548
1551
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1549
|
-
*/const
|
|
1552
|
+
*/const Ra={};let ar=HTMLElement.prototype;for(;ar;){let r=Object.getOwnPropertyNames(ar);for(let e=0;e<r.length;e++)Ra[r[e]]=!0;ar=Object.getPrototypeOf(ar)}const $c=window.trustedTypes?r=>trustedTypes.isHTML(r)||trustedTypes.isScript(r)||trustedTypes.isScriptURL(r):()=>!1;function jc(r,e){if(!Ra[e]){let t=r[e];t!==void 0&&(r.__data?r._setPendingProperty(e,t):(r.__dataProto?r.hasOwnProperty(JSCompiler_renameProperty("__dataProto",r))||(r.__dataProto=Object.create(r.__dataProto)):r.__dataProto={},r.__dataProto[e]=t))}}const Gc=ne(r=>{const e=Ba(r);class t extends e{static createPropertiesForAttributes(){let s=this.observedAttributes;for(let o=0;o<s.length;o++)this.prototype._createPropertyAccessor(ka(s[o]))}static attributeNameForProperty(s){return $r(s)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(s){for(let o in s)this._setProperty(o,s[o])}_ensureAttribute(s,o){const n=this;n.hasAttribute(s)||this._valueToNodeAttribute(n,o,s)}_serializeValue(s){switch(typeof s){case"object":if(s instanceof Date)return s.toString();if(s){if($c(s))return s;try{return JSON.stringify(s)}catch(o){return""}}default:return super._serializeValue(s)}}_deserializeValue(s,o){let n;switch(o){case Object:try{n=JSON.parse(s)}catch(a){n=s}break;case Array:try{n=JSON.parse(s)}catch(a){n=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${s}`)}break;case Date:n=isNaN(s)?String(s):Number(s),n=new Date(n);break;default:n=super._deserializeValue(s,o);break}return n}_definePropertyAccessor(s,o){jc(this,s),super._definePropertyAccessor(s,o)}_hasAccessor(s){return this.__dataHasAccessor&&this.__dataHasAccessor[s]}_isPropertyPending(s){return!!(this.__dataPending&&s in this.__dataPending)}}return t});/**
|
|
1550
1553
|
@license
|
|
1551
1554
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1552
1555
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1554,7 +1557,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1554
1557
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1555
1558
|
Code distributed by Google as part of the polymer project is also
|
|
1556
1559
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1557
|
-
*/const
|
|
1560
|
+
*/const qc={"dom-if":!0,"dom-repeat":!0};let Lo=!1,Bo=!1;function Wc(){if(!Lo){Lo=!0;const r=document.createElement("textarea");r.placeholder="a",Bo=r.placeholder===r.textContent}return Bo}function Yc(r){Wc()&&r.localName==="textarea"&&r.placeholder&&r.placeholder===r.textContent&&(r.textContent=null)}const Zc=(()=>{const r=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:e=>e});return(e,t,i)=>{const s=t.getAttribute(i);if(r&&i.startsWith("on-")){e.setAttribute(i,r.createScript(s,i));return}e.setAttribute(i,s)}})();function Xc(r){let e=r.getAttribute("is");if(e&&qc[e]){let t=r;for(t.removeAttribute("is"),r=t.ownerDocument.createElement(e),t.parentNode.replaceChild(r,t),r.appendChild(t);t.attributes.length;){const{name:i}=t.attributes[0];Zc(r,t,i),t.removeAttribute(i)}}return r}function Da(r,e){let t=e.parentInfo&&Da(r,e.parentInfo);if(t){for(let i=t.firstChild,s=0;i;i=i.nextSibling)if(e.parentIndex===s++)return i}else return r}function Jc(r,e,t,i){i.id&&(e[i.id]=t)}function Kc(r,e,t){if(t.events&&t.events.length)for(let i=0,s=t.events,o;i<s.length&&(o=s[i]);i++)r._addMethodEventListenerToNode(e,o.name,o.value,r)}function Qc(r,e,t,i){t.templateInfo&&(e._templateInfo=t.templateInfo,e._parentTemplateInfo=i)}function ef(r,e,t){return r=r._methodHost||r,function(s){r[t]?r[t](s,s.detail):console.warn("listener method `"+t+"` not defined")}}const tf=ne(r=>{class e extends r{static _parseTemplate(i,s){if(!i._templateInfo){let o=i._templateInfo={};o.nodeInfoList=[],o.nestedTemplate=!!s,o.stripWhiteSpace=s&&s.stripWhiteSpace||i.hasAttribute&&i.hasAttribute("strip-whitespace"),this._parseTemplateContent(i,o,{parent:null})}return i._templateInfo}static _parseTemplateContent(i,s,o){return this._parseTemplateNode(i.content,s,o)}static _parseTemplateNode(i,s,o){let n=!1,a=i;return a.localName=="template"&&!a.hasAttribute("preserve-content")?n=this._parseTemplateNestedTemplate(a,s,o)||n:a.localName==="slot"&&(s.hasInsertionPoint=!0),Yc(a),a.firstChild&&this._parseTemplateChildNodes(a,s,o),a.hasAttributes&&a.hasAttributes()&&(n=this._parseTemplateNodeAttributes(a,s,o)||n),n||o.noted}static _parseTemplateChildNodes(i,s,o){if(!(i.localName==="script"||i.localName==="style"))for(let n=i.firstChild,a=0,l;n;n=l){if(n.localName=="template"&&(n=Xc(n)),l=n.nextSibling,n.nodeType===Node.TEXT_NODE){let u=l;for(;u&&u.nodeType===Node.TEXT_NODE;)n.textContent+=u.textContent,l=u.nextSibling,i.removeChild(u),u=l;if(s.stripWhiteSpace&&!n.textContent.trim()){i.removeChild(n);continue}}let d={parentIndex:a,parentInfo:o};this._parseTemplateNode(n,s,d)&&(d.infoIndex=s.nodeInfoList.push(d)-1),n.parentNode&&a++}}static _parseTemplateNestedTemplate(i,s,o){let n=i,a=this._parseTemplate(n,s);return(a.content=n.content.ownerDocument.createDocumentFragment()).appendChild(n.content),o.templateInfo=a,!0}static _parseTemplateNodeAttributes(i,s,o){let n=!1,a=Array.from(i.attributes);for(let l=a.length-1,d;d=a[l];l--)n=this._parseTemplateNodeAttribute(i,s,o,d.name,d.value)||n;return n}static _parseTemplateNodeAttribute(i,s,o,n,a){return n.slice(0,3)==="on-"?(i.removeAttribute(n),o.events=o.events||[],o.events.push({name:n.slice(3),value:a}),!0):n==="id"?(o.id=a,!0):!1}static _contentForTemplate(i){let s=i._templateInfo;return s&&s.content||i.content}_stampTemplate(i,s){i&&!i.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(i),s=s||this.constructor._parseTemplate(i);let o=s.nodeInfoList,n=s.content||i.content,a=document.importNode(n,!0);a.__noInsertionPoint=!s.hasInsertionPoint;let l=a.nodeList=new Array(o.length);a.$={};for(let d=0,u=o.length,h;d<u&&(h=o[d]);d++){let f=l[d]=Da(a,h);Jc(this,a.$,f,h),Qc(this,f,h,s),Kc(this,f,h)}return a=a,a}_addMethodEventListenerToNode(i,s,o,n){n=n||i;let a=ef(n,s,o);return this._addEventListenerToNode(i,s,a),a}_addEventListenerToNode(i,s,o){i.addEventListener(s,o)}_removeEventListenerFromNode(i,s,o){i.removeEventListener(s,o)}}return e});/**
|
|
1558
1561
|
* @fileoverview
|
|
1559
1562
|
* @suppress {checkPrototypalTypes}
|
|
1560
1563
|
* @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -1564,7 +1567,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1564
1567
|
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
1565
1568
|
* Google as part of the polymer project is also subject to an additional IP
|
|
1566
1569
|
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1567
|
-
*/let Ht=0;const zt=[],L={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Qn="__computeInfo",_c=/[A-Z]/;function Xr(r,t,e){let i=r[t];if(!i)i=r[t]={};else if(!r.hasOwnProperty(t)&&(i=r[t]=Object.create(r[t]),e))for(let s in i){let o=i[s],n=i[s]=Array(o.length);for(let a=0;a<o.length;a++)n[a]=o[a]}return i}function Pt(r,t,e,i,s,o){if(t){let n=!1;const a=Ht++;for(let l in e){let d=s?Ge(l):l,h=t[d];if(h)for(let u=0,f=h.length,m;u<f&&(m=h[u]);u++)(!m.info||m.info.lastRun!==a)&&(!s||is(l,m.trigger))&&(m.info&&(m.info.lastRun=a),m.fn(r,l,e,i,m.info,s,o),n=!0)}return n}return!1}function gc(r,t,e,i,s,o,n,a){let l=!1,d=n?Ge(i):i,h=t[d];if(h)for(let u=0,f=h.length,m;u<f&&(m=h[u]);u++)(!m.info||m.info.lastRun!==e)&&(!n||is(i,m.trigger))&&(m.info&&(m.info.lastRun=e),m.fn(r,i,s,o,m.info,n,a),l=!0);return l}function is(r,t){if(t){let e=t.name;return e==r||!!(t.structured&&Zu(e,r))||!!(t.wildcard&&_r(e,r))}else return!0}function uo(r,t,e,i,s){let o=typeof s.method=="string"?r[s.method]:s.method,n=s.property;o?o.call(r,r.__data[n],i[n]):s.dynamicFn||console.warn("observer method `"+s.method+"` not defined")}function bc(r,t,e,i,s){let o=r[L.NOTIFY],n,a=Ht++;for(let d in t)t[d]&&(o&&gc(r,o,a,d,e,i,s)||s&&vc(r,d,e))&&(n=!0);let l;n&&(l=r.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function vc(r,t,e){let i=Ge(t);if(i!==t){let s=Ir(i)+"-changed";return ea(r,s,e[t],t),!0}return!1}function ea(r,t,e,i){let s={value:e,queueProperty:!0};i&&(s.path=i),Ve(r).dispatchEvent(new CustomEvent(t,{detail:s}))}function yc(r,t,e,i,s,o){let a=(o?Ge(t):t)!=t?t:null,l=a?me(r,a):r.__data[t];a&&l===void 0&&(l=e[t]),ea(r,s.eventName,l,a)}function wc(r,t,e,i,s){let o,n=r.detail,a=n&&n.path;a?(i=gr(e,i,a),o=n&&n.value):o=r.currentTarget[e],o=s?!o:o,(!t[L.READ_ONLY]||!t[L.READ_ONLY][i])&&t._setPendingPropertyOrPath(i,o,!0,!!a)&&(!n||!n.queueProperty)&&t._invalidateProperties()}function xc(r,t,e,i,s){let o=r.__data[t];mr&&(o=mr(o,s.attrName,"attribute",r)),r._propertyToAttribute(t,s.attrName,o)}function Pc(r,t,e,i){let s=r[L.COMPUTE];if(s)if(zu){Ht++;const o=Cc(r),n=[];for(let l in t)co(l,s,n,o,i);let a;for(;a=n.shift();)ta(r,"",t,e,a)&&co(a.methodInfo,s,n,o,i);Object.assign(e,r.__dataOld),Object.assign(t,r.__dataPending),r.__dataPending=null}else{let o=t;for(;Pt(r,s,o,e,i);)Object.assign(e,r.__dataOld),Object.assign(t,r.__dataPending),o=r.__dataPending,r.__dataPending=null}}const Ec=(r,t,e)=>{let i=0,s=t.length-1,o=-1;for(;i<=s;){const n=i+s>>1,a=e.get(t[n].methodInfo)-e.get(r.methodInfo);if(a<0)i=n+1;else if(a>0)s=n-1;else{o=n;break}}o<0&&(o=s+1),t.splice(o,0,r)},co=(r,t,e,i,s)=>{const o=s?Ge(r):r,n=t[o];if(n)for(let a=0;a<n.length;a++){const l=n[a];l.info.lastRun!==Ht&&(!s||is(r,l.trigger))&&(l.info.lastRun=Ht,Ec(l.info,e,i))}};function Cc(r){let t=r.constructor.__orderedComputedDeps;if(!t){t=new Map;const e=r[L.COMPUTE];let{counts:i,ready:s,total:o}=Sc(r),n;for(;n=s.shift();){t.set(n,t.size);const a=e[n];a&&a.forEach(l=>{const d=l.info.methodInfo;--o,--i[d]===0&&s.push(d)})}o!==0&&console.warn(`Computed graph for ${r.localName} incomplete; circular?`),r.constructor.__orderedComputedDeps=t}return t}function Sc(r){const t=r[Qn],e={},i=r[L.COMPUTE],s=[];let o=0;for(let n in t){const a=t[n];o+=e[n]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let n in i)t[n]||s.push(n);return{counts:e,ready:s,total:o}}function ta(r,t,e,i,s){let o=Mi(r,t,e,i,s);if(o===zt)return!1;let n=s.methodInfo;return r.__dataHasAccessor&&r.__dataHasAccessor[n]?r._setPendingProperty(n,o,!0):(r[n]=o,!1)}function Ac(r,t,e){let i=r.__dataLinkedPaths;if(i){let s;for(let o in i){let n=i[o];_r(o,t)?(s=gr(o,n,t),r._setPendingPropertyOrPath(s,e,!0,!0)):_r(n,t)&&(s=gr(n,o,t),r._setPendingPropertyOrPath(s,e,!0,!0))}}}function Jr(r,t,e,i,s,o,n){e.bindings=e.bindings||[];let a={kind:i,target:s,parts:o,literal:n,isCompound:o.length!==1};if(e.bindings.push(a),kc(a)){let{event:d,negate:h}=a.parts[0];a.listenerEvent=d||Ir(s)+"-changed",a.listenerNegate=h}let l=t.nodeInfoList.length;for(let d=0;d<a.parts.length;d++){let h=a.parts[d];h.compoundIndex=d,Tc(r,t,a,h,l)}}function Tc(r,t,e,i,s){if(!i.literal)if(e.kind==="attribute"&&e.target[0]==="-")console.warn("Cannot set attribute "+e.target+' because "-" is not a valid attribute starting character');else{let o=i.dependencies,n={index:s,binding:e,part:i,evaluator:r};for(let a=0;a<o.length;a++){let l=o[a];typeof l=="string"&&(l=ia(l),l.wildcard=!0),r._addTemplatePropertyEffect(t,l.rootProperty,{fn:Ic,info:n,trigger:l})}}}function Ic(r,t,e,i,s,o,n){let a=n[s.index],l=s.binding,d=s.part;if(o&&d.source&&t.length>d.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let h=e[t];t=gr(d.source,l.target,t),a._setPendingPropertyOrPath(t,h,!1,!0)&&r._enqueueClient(a)}else{let h=s.evaluator._evaluateBinding(r,d,t,e,i,o);h!==zt&&Oc(r,a,l,d,h)}}function Oc(r,t,e,i,s){if(s=Nc(t,s,e,i),mr&&(s=mr(s,e.target,e.kind,t)),e.kind=="attribute")r._valueToNodeAttribute(t,s,e.target);else{let o=e.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[o]?(!t[L.READ_ONLY]||!t[L.READ_ONLY][o])&&t._setPendingProperty(o,s)&&r._enqueueClient(t):r._setUnmanagedPropertyToNode(t,o,s)}}function Nc(r,t,e,i){if(e.isCompound){let s=r.__dataCompoundStorage[e.target];s[i.compoundIndex]=t,t=s.join("")}return e.kind!=="attribute"&&(e.target==="textContent"||e.target==="value"&&(r.localName==="input"||r.localName==="textarea"))&&(t=t==null?"":t),t}function kc(r){return!!r.target&&r.kind!="attribute"&&r.kind!="text"&&!r.isCompound&&r.parts[0].mode==="{"}function Mc(r,t){let{nodeList:e,nodeInfoList:i}=t;if(i.length)for(let s=0;s<i.length;s++){let o=i[s],n=e[s],a=o.bindings;if(a)for(let l=0;l<a.length;l++){let d=a[l];Lc(n,d),Bc(n,r,d)}n.__dataHost=r}}function Lc(r,t){if(t.isCompound){let e=r.__dataCompoundStorage||(r.__dataCompoundStorage={}),i=t.parts,s=new Array(i.length);for(let n=0;n<i.length;n++)s[n]=i[n].literal;let o=t.target;e[o]=s,t.literal&&t.kind=="property"&&(o==="className"&&(r=Ve(r)),r[o]=t.literal)}}function Bc(r,t,e){if(e.listenerEvent){let i=e.parts[0];r.addEventListener(e.listenerEvent,function(s){wc(s,t,e.target,i.source,i.negate)})}}function fo(r,t,e,i,s,o){o=t.static||o&&(typeof o!="object"||o[t.methodName]);let n={methodName:t.methodName,args:t.args,methodInfo:s,dynamicFn:o};for(let a=0,l;a<t.args.length&&(l=t.args[a]);a++)l.literal||r._addPropertyEffect(l.rootProperty,e,{fn:i,info:n,trigger:l});return o&&r._addPropertyEffect(t.methodName,e,{fn:i,info:n}),n}function Mi(r,t,e,i,s){let o=r._methodHost||r,n=o[s.methodName];if(n){let a=r._marshalArgs(s.args,t,e);return a===zt?zt:n.apply(o,a)}else s.dynamicFn||console.warn("method `"+s.methodName+"` not defined")}const Rc=[],ra="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Dc="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",Hc="(?:'(?:[^'\\\\]|\\\\.)*')",zc='(?:"(?:[^"\\\\]|\\\\.)*")',Fc="(?:"+Hc+"|"+zc+")",po="(?:("+ra+"|"+Dc+"|"+Fc+")\\s*)",Vc="(?:"+po+"(?:,\\s*"+po+")*)",$c="(?:\\(\\s*(?:"+Vc+"?)\\)\\s*)",Uc="("+ra+"\\s*"+$c+"?)",jc="(\\[\\[|{{)\\s*",Gc="(?:]]|}})",Wc="(?:(!)\\s*)?",qc=jc+Wc+Uc+Gc,mo=new RegExp(qc,"g");function _o(r){let t="";for(let e=0;e<r.length;e++){let i=r[e].literal;t+=i||""}return t}function Kr(r){let t=r.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){let i={methodName:t[1],static:!0,args:Rc};if(t[2].trim()){let s=t[2].replace(/\\,/g,",").split(",");return Yc(s,i)}else return i}return null}function Yc(r,t){return t.args=r.map(function(e){let i=ia(e);return i.literal||(t.static=!1),i},this),t}function ia(r){let t=r.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),e={name:t,value:"",literal:!1},i=t[0];switch(i==="-"&&(i=t[1]),i>="0"&&i<="9"&&(i="#"),i){case"'":case'"':e.value=t.slice(1,-1),e.literal=!0;break;case"#":e.value=Number(t),e.literal=!0;break}return e.literal||(e.rootProperty=Ge(t),e.structured=Ni(t),e.structured&&(e.wildcard=t.slice(-2)==".*",e.wildcard&&(e.name=t.slice(0,-2)))),e}function go(r,t,e){let i=me(r,e);return i===void 0&&(i=t[e]),i}function sa(r,t,e,i){const s={indexSplices:i};Oi&&!r._overrideLegacyUndefined&&(t.splices=s),r.notifyPath(e+".splices",s),r.notifyPath(e+".length",t.length),Oi&&!r._overrideLegacyUndefined&&(s.indexSplices=[])}function yt(r,t,e,i,s,o){sa(r,t,e,[{index:i,addedCount:s,removed:o,object:t,type:"splice"}])}function Zc(r){return r[0].toUpperCase()+r.substring(1)}const Xc=oe(r=>{const t=mc(oc(r));class e extends t{constructor(){super(),this.__isPropertyEffectsClient=!0,this.__dataClientsReady,this.__dataPendingClients,this.__dataToNotify,this.__dataLinkedPaths,this.__dataHasPaths,this.__dataCompoundStorage,this.__dataHost,this.__dataTemp,this.__dataClientsInitialized,this.__data,this.__dataPending,this.__dataOld,this.__computeEffects,this.__computeInfo,this.__reflectEffects,this.__notifyEffects,this.__propagateEffects,this.__observeEffects,this.__readOnly,this.__templateInfo,this._overrideLegacyUndefined}get PROPERTY_EFFECT_TYPES(){return L}_initializeProperties(){super._initializeProperties(),this._registerHost(),this.__dataClientsReady=!1,this.__dataPendingClients=null,this.__dataToNotify=null,this.__dataLinkedPaths=null,this.__dataHasPaths=!1,this.__dataCompoundStorage=this.__dataCompoundStorage||null,this.__dataHost=this.__dataHost||null,this.__dataTemp={},this.__dataClientsInitialized=!1}_registerHost(){if(wt.length){let s=wt[wt.length-1];s._enqueueClient(this),this.__dataHost=s}}_initializeProtoProperties(s){this.__data=Object.create(s),this.__dataPending=Object.create(s),this.__dataOld={}}_initializeInstanceProperties(s){let o=this[L.READ_ONLY];for(let n in s)(!o||!o[n])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=s[n])}_addPropertyEffect(s,o,n){this._createPropertyAccessor(s,o==L.READ_ONLY);let a=Xr(this,o,!0)[s];a||(a=this[o][s]=[]),a.push(n)}_removePropertyEffect(s,o,n){let a=Xr(this,o,!0)[s],l=a.indexOf(n);l>=0&&a.splice(l,1)}_hasPropertyEffect(s,o){let n=this[o];return!!(n&&n[s])}_hasReadOnlyEffect(s){return this._hasPropertyEffect(s,L.READ_ONLY)}_hasNotifyEffect(s){return this._hasPropertyEffect(s,L.NOTIFY)}_hasReflectEffect(s){return this._hasPropertyEffect(s,L.REFLECT)}_hasComputedEffect(s){return this._hasPropertyEffect(s,L.COMPUTE)}_setPendingPropertyOrPath(s,o,n,a){if(a||Ge(Array.isArray(s)?s[0]:s)!==s){if(!a){let l=me(this,s);if(s=ao(this,s,o),!s||!super._shouldPropertyChange(s,o,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(s,o,n))return Ac(this,s,o),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[s])return this._setPendingProperty(s,o,n);this[s]=o}return!1}_setUnmanagedPropertyToNode(s,o,n){(n!==s[o]||typeof n=="object")&&(o==="className"&&(s=Ve(s)),s[o]=n)}_setPendingProperty(s,o,n){let a=this.__dataHasPaths&&Ni(s),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(s,o,l[s])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),s in this.__dataOld||(this.__dataOld[s]=this.__data[s]),a?this.__dataTemp[s]=o:this.__data[s]=o,this.__dataPending[s]=o,(a||this[L.NOTIFY]&&this[L.NOTIFY][s])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[s]=n),!0):!1}_setProperty(s,o){this._setPendingProperty(s,o,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(s){this.__dataPendingClients=this.__dataPendingClients||[],s!==this&&this.__dataPendingClients.push(s)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let s=this.__dataPendingClients;if(s){this.__dataPendingClients=null;for(let o=0;o<s.length;o++){let n=s[o];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(s,o){for(let n in s)(o||!this[L.READ_ONLY]||!this[L.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,s[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(s,o,n){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;Pc(this,o,n,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(o,n,a),this._flushClients(),Pt(this,this[L.REFLECT],o,n,a),Pt(this,this[L.OBSERVE],o,n,a),l&&bc(this,l,o,n,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(s,o,n){this[L.PROPAGATE]&&Pt(this,this[L.PROPAGATE],s,o,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,s,o,n)}_runEffectsForTemplate(s,o,n,a){const l=(d,h)=>{Pt(this,s.propertyEffects,d,n,h,s.nodeList);for(let u=s.firstChild;u;u=u.nextSibling)this._runEffectsForTemplate(u,d,n,h)};s.runEffects?s.runEffects(l,o,a):l(o,a)}linkPaths(s,o){s=xt(s),o=xt(o),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[s]=o}unlinkPaths(s){s=xt(s),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[s]}notifySplices(s,o){let n={path:""},a=me(this,s,n);sa(this,a,n.path,o)}get(s,o){return me(o||this,s)}set(s,o,n){n?ao(n,s,o):(!this[L.READ_ONLY]||!this[L.READ_ONLY][s])&&this._setPendingPropertyOrPath(s,o,!0)&&this._invalidateProperties()}push(s,...o){let n={path:""},a=me(this,s,n),l=a.length,d=a.push(...o);return o.length&&yt(this,a,n.path,l,o.length,[]),d}pop(s){let o={path:""},n=me(this,s,o),a=!!n.length,l=n.pop();return a&&yt(this,n,o.path,n.length,0,[l]),l}splice(s,o,n,...a){let l={path:""},d=me(this,s,l);o<0?o=d.length-Math.floor(-o):o&&(o=Math.floor(o));let h;return arguments.length===2?h=d.splice(o):h=d.splice(o,n,...a),(a.length||h.length)&&yt(this,d,l.path,o,a.length,h),h}shift(s){let o={path:""},n=me(this,s,o),a=!!n.length,l=n.shift();return a&&yt(this,n,o.path,0,0,[l]),l}unshift(s,...o){let n={path:""},a=me(this,s,n),l=a.unshift(...o);return o.length&&yt(this,a,n.path,0,o.length,[]),l}notifyPath(s,o){let n;if(arguments.length==1){let a={path:""};o=me(this,s,a),n=a.path}else Array.isArray(s)?n=xt(s):n=s;this._setPendingPropertyOrPath(n,o,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(s,o){this._addPropertyEffect(s,L.READ_ONLY),o&&(this["_set"+Zc(s)]=function(n){this._setProperty(s,n)})}_createPropertyObserver(s,o,n){let a={property:s,method:o,dynamicFn:!!n};this._addPropertyEffect(s,L.OBSERVE,{fn:uo,info:a,trigger:{name:s}}),n&&this._addPropertyEffect(o,L.OBSERVE,{fn:uo,info:a,trigger:{name:o}})}_createMethodObserver(s,o){let n=Kr(s);if(!n)throw new Error("Malformed observer expression '"+s+"'");fo(this,n,L.OBSERVE,Mi,null,o)}_createNotifyingProperty(s){this._addPropertyEffect(s,L.NOTIFY,{fn:yc,info:{eventName:Ir(s)+"-changed",property:s}})}_createReflectedProperty(s){let o=this.constructor.attributeNameForProperty(s);o[0]==="-"?console.warn("Property "+s+" cannot be reflected to attribute "+o+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(s,L.REFLECT,{fn:xc,info:{attrName:o}})}_createComputedProperty(s,o,n){let a=Kr(o);if(!a)throw new Error("Malformed computed expression '"+o+"'");const l=fo(this,a,L.COMPUTE,ta,s,n);Xr(this,Qn)[s]=l}_marshalArgs(s,o,n){const a=this.__data,l=[];for(let d=0,h=s.length;d<h;d++){let{name:u,structured:f,wildcard:m,value:_,literal:g}=s[d];if(!g)if(m){const w=_r(u,o),y=go(a,n,w?o:u);_={path:w?o:u,value:y,base:w?me(a,u):y}}else _=f?go(a,n,u):a[u];if(Oi&&!this._overrideLegacyUndefined&&_===void 0&&s.length>1)return zt;l[d]=_}return l}static addPropertyEffect(s,o,n){this.prototype._addPropertyEffect(s,o,n)}static createPropertyObserver(s,o,n){this.prototype._createPropertyObserver(s,o,n)}static createMethodObserver(s,o){this.prototype._createMethodObserver(s,o)}static createNotifyingProperty(s){this.prototype._createNotifyingProperty(s)}static createReadOnlyProperty(s,o){this.prototype._createReadOnlyProperty(s,o)}static createReflectedProperty(s){this.prototype._createReflectedProperty(s)}static createComputedProperty(s,o,n){this.prototype._createComputedProperty(s,o,n)}static bindTemplate(s){return this.prototype._bindTemplate(s)}_bindTemplate(s,o){let n=this.constructor._parseTemplate(s),a=this.__preBoundTemplateInfo==n;if(!a)for(let l in n.propertyEffects)this._createPropertyAccessor(l);if(o)if(n=Object.create(n),n.wasPreBound=a,!this.__templateInfo)this.__templateInfo=n;else{const l=s._parentTemplateInfo||this.__templateInfo,d=l.lastChild;n.parent=l,l.lastChild=n,n.previousSibling=d,d?d.nextSibling=n:l.firstChild=n}else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(s,o,n){let a=s.hostProps=s.hostProps||{};a[o]=!0;let l=s.propertyEffects=s.propertyEffects||{};(l[o]=l[o]||[]).push(n)}_stampTemplate(s,o){o=o||this._bindTemplate(s,!0),wt.push(this);let n=super._stampTemplate(s,o);if(wt.pop(),o.nodeList=n.nodeList,!o.wasPreBound){let a=o.childNodes=[];for(let l=n.firstChild;l;l=l.nextSibling)a.push(l)}return n.templateInfo=o,Mc(this,o),this.__dataClientsReady&&(this._runEffectsForTemplate(o,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(s){const o=s.templateInfo,{previousSibling:n,nextSibling:a,parent:l}=o;n?n.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=n:l&&(l.lastChild=n),o.nextSibling=o.previousSibling=null;let d=o.childNodes;for(let h=0;h<d.length;h++){let u=d[h];Ve(Ve(u).parentNode).removeChild(u)}}static _parseTemplateNode(s,o,n){let a=t._parseTemplateNode.call(this,s,o,n);if(s.nodeType===Node.TEXT_NODE){let l=this._parseBindings(s.textContent,o);l&&(s.textContent=_o(l)||" ",Jr(this,o,n,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(s,o,n,a,l){let d=this._parseBindings(l,o);if(d){let h=a,u="property";_c.test(a)?u="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),u="attribute");let f=_o(d);return f&&u=="attribute"&&(a=="class"&&s.hasAttribute("class")&&(f+=" "+s.getAttribute(a)),s.setAttribute(a,f)),u=="attribute"&&h=="disable-upgrade$"&&s.setAttribute(a,""),s.localName==="input"&&h==="value"&&s.setAttribute(h,""),s.removeAttribute(h),u==="property"&&(a=qn(a)),Jr(this,o,n,u,a,d,f),!0}else return t._parseTemplateNodeAttribute.call(this,s,o,n,a,l)}static _parseTemplateNestedTemplate(s,o,n){let a=t._parseTemplateNestedTemplate.call(this,s,o,n);const l=s.parentNode,d=n.templateInfo,h=l.localName==="dom-if",u=l.localName==="dom-repeat";ro&&(h||u)&&(l.removeChild(s),n=n.parentInfo,n.templateInfo=d,n.noted=!0,a=!1);let f=d.hostProps;if(Fu&&h)f&&(o.hostProps=Object.assign(o.hostProps||{},f),ro||(n.parentInfo.noted=!0));else{let m="{";for(let _ in f){let g=[{mode:m,source:_,dependencies:[_],hostProp:!0}];Jr(this,o,n,"property","_host_"+_,g)}}return a}static _parseBindings(s,o){let n=[],a=0,l;for(;(l=mo.exec(s))!==null;){l.index>a&&n.push({literal:s.slice(a,l.index)});let d=l[1][0],h=!!l[2],u=l[3].trim(),f=!1,m="",_=-1;d=="{"&&(_=u.indexOf("::"))>0&&(m=u.substring(_+2),u=u.substring(0,_),f=!0);let g=Kr(u),w=[];if(g){let{args:y,methodName:v}=g;for(let k=0;k<y.length;k++){let E=y[k];E.literal||w.push(E)}let S=o.dynamicFns;(S&&S[v]||g.static)&&(w.push(v),g.dynamicFn=!0)}else w.push(u);n.push({source:u,mode:d,negate:h,customEvent:f,signature:g,dependencies:w,event:m}),a=mo.lastIndex}if(a&&a<s.length){let d=s.substring(a);d&&n.push({literal:d})}return n.length?n:null}static _evaluateBinding(s,o,n,a,l,d){let h;return o.signature?h=Mi(s,n,a,l,o.signature):n!=o.source?h=me(s,o.source):d&&Ni(n)?h=me(s,n):h=s.__data[n],o.negate&&(h=!h),h}}return e}),wt=[];/**
|
|
1570
|
+
*/let Gt=0;const qt=[],B={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Ha="__computeInfo",rf=/[A-Z]/;function ui(r,e,t){let i=r[e];if(!i)i=r[e]={};else if(!r.hasOwnProperty(e)&&(i=r[e]=Object.create(r[e]),t))for(let s in i){let o=i[s],n=i[s]=Array(o.length);for(let a=0;a<o.length;a++)n[a]=o[a]}return i}function kt(r,e,t,i,s,o){if(e){let n=!1;const a=Gt++;for(let l in t){let d=s?Qe(l):l,u=e[d];if(u)for(let h=0,f=u.length,m;h<f&&(m=u[h]);h++)(!m.info||m.info.lastRun!==a)&&(!s||Cs(l,m.trigger))&&(m.info&&(m.info.lastRun=a),m.fn(r,l,t,i,m.info,s,o),n=!0)}return n}return!1}function sf(r,e,t,i,s,o,n,a){let l=!1,d=n?Qe(i):i,u=e[d];if(u)for(let h=0,f=u.length,m;h<f&&(m=u[h]);h++)(!m.info||m.info.lastRun!==t)&&(!n||Cs(i,m.trigger))&&(m.info&&(m.info.lastRun=t),m.fn(r,i,s,o,m.info,n,a),l=!0);return l}function Cs(r,e){if(e){let t=e.name;return t==r||!!(e.structured&&Bc(t,r))||!!(e.wildcard&&Ir(t,r))}else return!0}function Ro(r,e,t,i,s){let o=typeof s.method=="string"?r[s.method]:s.method,n=s.property;o?o.call(r,r.__data[n],i[n]):s.dynamicFn||console.warn("observer method `"+s.method+"` not defined")}function of(r,e,t,i,s){let o=r[B.NOTIFY],n,a=Gt++;for(let d in e)e[d]&&(o&&sf(r,o,a,d,t,i,s)||s&&nf(r,d,t))&&(n=!0);let l;n&&(l=r.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function nf(r,e,t){let i=Qe(e);if(i!==e){let s=$r(i)+"-changed";return za(r,s,t[e],e),!0}return!1}function za(r,e,t,i){let s={value:t,queueProperty:!0};i&&(s.path=i),Ye(r).dispatchEvent(new CustomEvent(e,{detail:s}))}function af(r,e,t,i,s,o){let a=(o?Qe(e):e)!=e?e:null,l=a?ge(r,a):r.__data[e];a&&l===void 0&&(l=t[e]),za(r,s.eventName,l,a)}function lf(r,e,t,i,s){let o,n=r.detail,a=n&&n.path;a?(i=Or(t,i,a),o=n&&n.value):o=r.currentTarget[t],o=s?!o:o,(!e[B.READ_ONLY]||!e[B.READ_ONLY][i])&&e._setPendingPropertyOrPath(i,o,!0,!!a)&&(!n||!n.queueProperty)&&e._invalidateProperties()}function df(r,e,t,i,s){let o=r.__data[e];Tr&&(o=Tr(o,s.attrName,"attribute",r)),r._propertyToAttribute(e,s.attrName,o)}function uf(r,e,t,i){let s=r[B.COMPUTE];if(s)if(Cc){Gt++;const o=cf(r),n=[];for(let l in e)Do(l,s,n,o,i);let a;for(;a=n.shift();)Fa(r,"",e,t,a)&&Do(a.methodInfo,s,n,o,i);Object.assign(t,r.__dataOld),Object.assign(e,r.__dataPending),r.__dataPending=null}else{let o=e;for(;kt(r,s,o,t,i);)Object.assign(t,r.__dataOld),Object.assign(e,r.__dataPending),o=r.__dataPending,r.__dataPending=null}}const hf=(r,e,t)=>{let i=0,s=e.length-1,o=-1;for(;i<=s;){const n=i+s>>1,a=t.get(e[n].methodInfo)-t.get(r.methodInfo);if(a<0)i=n+1;else if(a>0)s=n-1;else{o=n;break}}o<0&&(o=s+1),e.splice(o,0,r)},Do=(r,e,t,i,s)=>{const o=s?Qe(r):r,n=e[o];if(n)for(let a=0;a<n.length;a++){const l=n[a];l.info.lastRun!==Gt&&(!s||Cs(r,l.trigger))&&(l.info.lastRun=Gt,hf(l.info,t,i))}};function cf(r){let e=r.constructor.__orderedComputedDeps;if(!e){e=new Map;const t=r[B.COMPUTE];let{counts:i,ready:s,total:o}=ff(r),n;for(;n=s.shift();){e.set(n,e.size);const a=t[n];a&&a.forEach(l=>{const d=l.info.methodInfo;--o,--i[d]===0&&s.push(d)})}o!==0&&console.warn(`Computed graph for ${r.localName} incomplete; circular?`),r.constructor.__orderedComputedDeps=e}return e}function ff(r){const e=r[Ha],t={},i=r[B.COMPUTE],s=[];let o=0;for(let n in e){const a=e[n];o+=t[n]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let n in i)e[n]||s.push(n);return{counts:t,ready:s,total:o}}function Fa(r,e,t,i,s){let o=Wi(r,e,t,i,s);if(o===qt)return!1;let n=s.methodInfo;return r.__dataHasAccessor&&r.__dataHasAccessor[n]?r._setPendingProperty(n,o,!0):(r[n]=o,!1)}function pf(r,e,t){let i=r.__dataLinkedPaths;if(i){let s;for(let o in i){let n=i[o];Ir(o,e)?(s=Or(o,n,e),r._setPendingPropertyOrPath(s,t,!0,!0)):Ir(n,e)&&(s=Or(n,o,e),r._setPendingPropertyOrPath(s,t,!0,!0))}}}function hi(r,e,t,i,s,o,n){t.bindings=t.bindings||[];let a={kind:i,target:s,parts:o,literal:n,isCompound:o.length!==1};if(t.bindings.push(a),vf(a)){let{event:d,negate:u}=a.parts[0];a.listenerEvent=d||$r(s)+"-changed",a.listenerNegate=u}let l=e.nodeInfoList.length;for(let d=0;d<a.parts.length;d++){let u=a.parts[d];u.compoundIndex=d,mf(r,e,a,u,l)}}function mf(r,e,t,i,s){if(!i.literal)if(t.kind==="attribute"&&t.target[0]==="-")console.warn("Cannot set attribute "+t.target+' because "-" is not a valid attribute starting character');else{let o=i.dependencies,n={index:s,binding:t,part:i,evaluator:r};for(let a=0;a<o.length;a++){let l=o[a];typeof l=="string"&&(l=Ua(l),l.wildcard=!0),r._addTemplatePropertyEffect(e,l.rootProperty,{fn:_f,info:n,trigger:l})}}}function _f(r,e,t,i,s,o,n){let a=n[s.index],l=s.binding,d=s.part;if(o&&d.source&&e.length>d.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let u=t[e];e=Or(d.source,l.target,e),a._setPendingPropertyOrPath(e,u,!1,!0)&&r._enqueueClient(a)}else{let u=s.evaluator._evaluateBinding(r,d,e,t,i,o);u!==qt&&gf(r,a,l,d,u)}}function gf(r,e,t,i,s){if(s=bf(e,s,t,i),Tr&&(s=Tr(s,t.target,t.kind,e)),t.kind=="attribute")r._valueToNodeAttribute(e,s,t.target);else{let o=t.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[o]?(!e[B.READ_ONLY]||!e[B.READ_ONLY][o])&&e._setPendingProperty(o,s)&&r._enqueueClient(e):r._setUnmanagedPropertyToNode(e,o,s)}}function bf(r,e,t,i){if(t.isCompound){let s=r.__dataCompoundStorage[t.target];s[i.compoundIndex]=e,e=s.join("")}return t.kind!=="attribute"&&(t.target==="textContent"||t.target==="value"&&(r.localName==="input"||r.localName==="textarea"))&&(e=e==null?"":e),e}function vf(r){return!!r.target&&r.kind!="attribute"&&r.kind!="text"&&!r.isCompound&&r.parts[0].mode==="{"}function yf(r,e){let{nodeList:t,nodeInfoList:i}=e;if(i.length)for(let s=0;s<i.length;s++){let o=i[s],n=t[s],a=o.bindings;if(a)for(let l=0;l<a.length;l++){let d=a[l];wf(n,d),xf(n,r,d)}n.__dataHost=r}}function wf(r,e){if(e.isCompound){let t=r.__dataCompoundStorage||(r.__dataCompoundStorage={}),i=e.parts,s=new Array(i.length);for(let n=0;n<i.length;n++)s[n]=i[n].literal;let o=e.target;t[o]=s,e.literal&&e.kind=="property"&&(o==="className"&&(r=Ye(r)),r[o]=e.literal)}}function xf(r,e,t){if(t.listenerEvent){let i=t.parts[0];r.addEventListener(t.listenerEvent,function(s){lf(s,e,t.target,i.source,i.negate)})}}function Ho(r,e,t,i,s,o){o=e.static||o&&(typeof o!="object"||o[e.methodName]);let n={methodName:e.methodName,args:e.args,methodInfo:s,dynamicFn:o};for(let a=0,l;a<e.args.length&&(l=e.args[a]);a++)l.literal||r._addPropertyEffect(l.rootProperty,t,{fn:i,info:n,trigger:l});return o&&r._addPropertyEffect(e.methodName,t,{fn:i,info:n}),n}function Wi(r,e,t,i,s){let o=r._methodHost||r,n=o[s.methodName];if(n){let a=r._marshalArgs(s.args,e,t);return a===qt?qt:n.apply(o,a)}else s.dynamicFn||console.warn("method `"+s.methodName+"` not defined")}const Pf=[],Va="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Ef="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",Cf="(?:'(?:[^'\\\\]|\\\\.)*')",Sf='(?:"(?:[^"\\\\]|\\\\.)*")',Af="(?:"+Cf+"|"+Sf+")",zo="(?:("+Va+"|"+Ef+"|"+Af+")\\s*)",Tf="(?:"+zo+"(?:,\\s*"+zo+")*)",If="(?:\\(\\s*(?:"+Tf+"?)\\)\\s*)",Of="("+Va+"\\s*"+If+"?)",Nf="(\\[\\[|{{)\\s*",kf="(?:]]|}})",Mf="(?:(!)\\s*)?",Lf=Nf+Mf+Of+kf,Fo=new RegExp(Lf,"g");function Vo(r){let e="";for(let t=0;t<r.length;t++){let i=r[t].literal;e+=i||""}return e}function ci(r){let e=r.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let i={methodName:e[1],static:!0,args:Pf};if(e[2].trim()){let s=e[2].replace(/\\,/g,",").split(",");return Bf(s,i)}else return i}return null}function Bf(r,e){return e.args=r.map(function(t){let i=Ua(t);return i.literal||(e.static=!1),i},this),e}function Ua(r){let e=r.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),t={name:e,value:"",literal:!1},i=e[0];switch(i==="-"&&(i=e[1]),i>="0"&&i<="9"&&(i="#"),i){case"'":case'"':t.value=e.slice(1,-1),t.literal=!0;break;case"#":t.value=Number(e),t.literal=!0;break}return t.literal||(t.rootProperty=Qe(e),t.structured=Gi(e),t.structured&&(t.wildcard=e.slice(-2)==".*",t.wildcard&&(t.name=e.slice(0,-2)))),t}function Uo(r,e,t){let i=ge(r,t);return i===void 0&&(i=e[t]),i}function $a(r,e,t,i){const s={indexSplices:i};ji&&!r._overrideLegacyUndefined&&(e.splices=s),r.notifyPath(t+".splices",s),r.notifyPath(t+".length",e.length),ji&&!r._overrideLegacyUndefined&&(s.indexSplices=[])}function It(r,e,t,i,s,o){$a(r,e,t,[{index:i,addedCount:s,removed:o,object:e,type:"splice"}])}function Rf(r){return r[0].toUpperCase()+r.substring(1)}const Df=ne(r=>{const e=tf(Gc(r));class t extends e{constructor(){super(),this.__isPropertyEffectsClient=!0,this.__dataClientsReady,this.__dataPendingClients,this.__dataToNotify,this.__dataLinkedPaths,this.__dataHasPaths,this.__dataCompoundStorage,this.__dataHost,this.__dataTemp,this.__dataClientsInitialized,this.__data,this.__dataPending,this.__dataOld,this.__computeEffects,this.__computeInfo,this.__reflectEffects,this.__notifyEffects,this.__propagateEffects,this.__observeEffects,this.__readOnly,this.__templateInfo,this._overrideLegacyUndefined}get PROPERTY_EFFECT_TYPES(){return B}_initializeProperties(){super._initializeProperties(),this._registerHost(),this.__dataClientsReady=!1,this.__dataPendingClients=null,this.__dataToNotify=null,this.__dataLinkedPaths=null,this.__dataHasPaths=!1,this.__dataCompoundStorage=this.__dataCompoundStorage||null,this.__dataHost=this.__dataHost||null,this.__dataTemp={},this.__dataClientsInitialized=!1}_registerHost(){if(Ot.length){let s=Ot[Ot.length-1];s._enqueueClient(this),this.__dataHost=s}}_initializeProtoProperties(s){this.__data=Object.create(s),this.__dataPending=Object.create(s),this.__dataOld={}}_initializeInstanceProperties(s){let o=this[B.READ_ONLY];for(let n in s)(!o||!o[n])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=s[n])}_addPropertyEffect(s,o,n){this._createPropertyAccessor(s,o==B.READ_ONLY);let a=ui(this,o,!0)[s];a||(a=this[o][s]=[]),a.push(n)}_removePropertyEffect(s,o,n){let a=ui(this,o,!0)[s],l=a.indexOf(n);l>=0&&a.splice(l,1)}_hasPropertyEffect(s,o){let n=this[o];return!!(n&&n[s])}_hasReadOnlyEffect(s){return this._hasPropertyEffect(s,B.READ_ONLY)}_hasNotifyEffect(s){return this._hasPropertyEffect(s,B.NOTIFY)}_hasReflectEffect(s){return this._hasPropertyEffect(s,B.REFLECT)}_hasComputedEffect(s){return this._hasPropertyEffect(s,B.COMPUTE)}_setPendingPropertyOrPath(s,o,n,a){if(a||Qe(Array.isArray(s)?s[0]:s)!==s){if(!a){let l=ge(this,s);if(s=Mo(this,s,o),!s||!super._shouldPropertyChange(s,o,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(s,o,n))return pf(this,s,o),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[s])return this._setPendingProperty(s,o,n);this[s]=o}return!1}_setUnmanagedPropertyToNode(s,o,n){(n!==s[o]||typeof n=="object")&&(o==="className"&&(s=Ye(s)),s[o]=n)}_setPendingProperty(s,o,n){let a=this.__dataHasPaths&&Gi(s),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(s,o,l[s])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),s in this.__dataOld||(this.__dataOld[s]=this.__data[s]),a?this.__dataTemp[s]=o:this.__data[s]=o,this.__dataPending[s]=o,(a||this[B.NOTIFY]&&this[B.NOTIFY][s])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[s]=n),!0):!1}_setProperty(s,o){this._setPendingProperty(s,o,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(s){this.__dataPendingClients=this.__dataPendingClients||[],s!==this&&this.__dataPendingClients.push(s)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let s=this.__dataPendingClients;if(s){this.__dataPendingClients=null;for(let o=0;o<s.length;o++){let n=s[o];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(s,o){for(let n in s)(o||!this[B.READ_ONLY]||!this[B.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,s[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(s,o,n){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;uf(this,o,n,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(o,n,a),this._flushClients(),kt(this,this[B.REFLECT],o,n,a),kt(this,this[B.OBSERVE],o,n,a),l&&of(this,l,o,n,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(s,o,n){this[B.PROPAGATE]&&kt(this,this[B.PROPAGATE],s,o,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,s,o,n)}_runEffectsForTemplate(s,o,n,a){const l=(d,u)=>{kt(this,s.propertyEffects,d,n,u,s.nodeList);for(let h=s.firstChild;h;h=h.nextSibling)this._runEffectsForTemplate(h,d,n,u)};s.runEffects?s.runEffects(l,o,a):l(o,a)}linkPaths(s,o){s=Nt(s),o=Nt(o),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[s]=o}unlinkPaths(s){s=Nt(s),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[s]}notifySplices(s,o){let n={path:""},a=ge(this,s,n);$a(this,a,n.path,o)}get(s,o){return ge(o||this,s)}set(s,o,n){n?Mo(n,s,o):(!this[B.READ_ONLY]||!this[B.READ_ONLY][s])&&this._setPendingPropertyOrPath(s,o,!0)&&this._invalidateProperties()}push(s,...o){let n={path:""},a=ge(this,s,n),l=a.length,d=a.push(...o);return o.length&&It(this,a,n.path,l,o.length,[]),d}pop(s){let o={path:""},n=ge(this,s,o),a=!!n.length,l=n.pop();return a&&It(this,n,o.path,n.length,0,[l]),l}splice(s,o,n,...a){let l={path:""},d=ge(this,s,l);o<0?o=d.length-Math.floor(-o):o&&(o=Math.floor(o));let u;return arguments.length===2?u=d.splice(o):u=d.splice(o,n,...a),(a.length||u.length)&&It(this,d,l.path,o,a.length,u),u}shift(s){let o={path:""},n=ge(this,s,o),a=!!n.length,l=n.shift();return a&&It(this,n,o.path,0,0,[l]),l}unshift(s,...o){let n={path:""},a=ge(this,s,n),l=a.unshift(...o);return o.length&&It(this,a,n.path,0,o.length,[]),l}notifyPath(s,o){let n;if(arguments.length==1){let a={path:""};o=ge(this,s,a),n=a.path}else Array.isArray(s)?n=Nt(s):n=s;this._setPendingPropertyOrPath(n,o,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(s,o){this._addPropertyEffect(s,B.READ_ONLY),o&&(this["_set"+Rf(s)]=function(n){this._setProperty(s,n)})}_createPropertyObserver(s,o,n){let a={property:s,method:o,dynamicFn:!!n};this._addPropertyEffect(s,B.OBSERVE,{fn:Ro,info:a,trigger:{name:s}}),n&&this._addPropertyEffect(o,B.OBSERVE,{fn:Ro,info:a,trigger:{name:o}})}_createMethodObserver(s,o){let n=ci(s);if(!n)throw new Error("Malformed observer expression '"+s+"'");Ho(this,n,B.OBSERVE,Wi,null,o)}_createNotifyingProperty(s){this._addPropertyEffect(s,B.NOTIFY,{fn:af,info:{eventName:$r(s)+"-changed",property:s}})}_createReflectedProperty(s){let o=this.constructor.attributeNameForProperty(s);o[0]==="-"?console.warn("Property "+s+" cannot be reflected to attribute "+o+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(s,B.REFLECT,{fn:df,info:{attrName:o}})}_createComputedProperty(s,o,n){let a=ci(o);if(!a)throw new Error("Malformed computed expression '"+o+"'");const l=Ho(this,a,B.COMPUTE,Fa,s,n);ui(this,Ha)[s]=l}_marshalArgs(s,o,n){const a=this.__data,l=[];for(let d=0,u=s.length;d<u;d++){let{name:h,structured:f,wildcard:m,value:_,literal:g}=s[d];if(!g)if(m){const v=Ir(h,o),w=Uo(a,n,v?o:h);_={path:v?o:h,value:w,base:v?ge(a,h):w}}else _=f?Uo(a,n,h):a[h];if(ji&&!this._overrideLegacyUndefined&&_===void 0&&s.length>1)return qt;l[d]=_}return l}static addPropertyEffect(s,o,n){this.prototype._addPropertyEffect(s,o,n)}static createPropertyObserver(s,o,n){this.prototype._createPropertyObserver(s,o,n)}static createMethodObserver(s,o){this.prototype._createMethodObserver(s,o)}static createNotifyingProperty(s){this.prototype._createNotifyingProperty(s)}static createReadOnlyProperty(s,o){this.prototype._createReadOnlyProperty(s,o)}static createReflectedProperty(s){this.prototype._createReflectedProperty(s)}static createComputedProperty(s,o,n){this.prototype._createComputedProperty(s,o,n)}static bindTemplate(s){return this.prototype._bindTemplate(s)}_bindTemplate(s,o){let n=this.constructor._parseTemplate(s),a=this.__preBoundTemplateInfo==n;if(!a)for(let l in n.propertyEffects)this._createPropertyAccessor(l);if(o)if(n=Object.create(n),n.wasPreBound=a,!this.__templateInfo)this.__templateInfo=n;else{const l=s._parentTemplateInfo||this.__templateInfo,d=l.lastChild;n.parent=l,l.lastChild=n,n.previousSibling=d,d?d.nextSibling=n:l.firstChild=n}else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(s,o,n){let a=s.hostProps=s.hostProps||{};a[o]=!0;let l=s.propertyEffects=s.propertyEffects||{};(l[o]=l[o]||[]).push(n)}_stampTemplate(s,o){o=o||this._bindTemplate(s,!0),Ot.push(this);let n=super._stampTemplate(s,o);if(Ot.pop(),o.nodeList=n.nodeList,!o.wasPreBound){let a=o.childNodes=[];for(let l=n.firstChild;l;l=l.nextSibling)a.push(l)}return n.templateInfo=o,yf(this,o),this.__dataClientsReady&&(this._runEffectsForTemplate(o,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(s){const o=s.templateInfo,{previousSibling:n,nextSibling:a,parent:l}=o;n?n.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=n:l&&(l.lastChild=n),o.nextSibling=o.previousSibling=null;let d=o.childNodes;for(let u=0;u<d.length;u++){let h=d[u];Ye(Ye(h).parentNode).removeChild(h)}}static _parseTemplateNode(s,o,n){let a=e._parseTemplateNode.call(this,s,o,n);if(s.nodeType===Node.TEXT_NODE){let l=this._parseBindings(s.textContent,o);l&&(s.textContent=Vo(l)||" ",hi(this,o,n,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(s,o,n,a,l){let d=this._parseBindings(l,o);if(d){let u=a,h="property";rf.test(a)?h="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),h="attribute");let f=Vo(d);return f&&h=="attribute"&&(a=="class"&&s.hasAttribute("class")&&(f+=" "+s.getAttribute(a)),s.setAttribute(a,f)),h=="attribute"&&u=="disable-upgrade$"&&s.setAttribute(a,""),s.localName==="input"&&u==="value"&&s.setAttribute(u,""),s.removeAttribute(u),h==="property"&&(a=ka(a)),hi(this,o,n,h,a,d,f),!0}else return e._parseTemplateNodeAttribute.call(this,s,o,n,a,l)}static _parseTemplateNestedTemplate(s,o,n){let a=e._parseTemplateNestedTemplate.call(this,s,o,n);const l=s.parentNode,d=n.templateInfo,u=l.localName==="dom-if",h=l.localName==="dom-repeat";To&&(u||h)&&(l.removeChild(s),n=n.parentInfo,n.templateInfo=d,n.noted=!0,a=!1);let f=d.hostProps;if(Sc&&u)f&&(o.hostProps=Object.assign(o.hostProps||{},f),To||(n.parentInfo.noted=!0));else{let m="{";for(let _ in f){let g=[{mode:m,source:_,dependencies:[_],hostProp:!0}];hi(this,o,n,"property","_host_"+_,g)}}return a}static _parseBindings(s,o){let n=[],a=0,l;for(;(l=Fo.exec(s))!==null;){l.index>a&&n.push({literal:s.slice(a,l.index)});let d=l[1][0],u=!!l[2],h=l[3].trim(),f=!1,m="",_=-1;d=="{"&&(_=h.indexOf("::"))>0&&(m=h.substring(_+2),h=h.substring(0,_),f=!0);let g=ci(h),v=[];if(g){let{args:w,methodName:y}=g;for(let T=0;T<w.length;T++){let C=w[T];C.literal||v.push(C)}let E=o.dynamicFns;(E&&E[y]||g.static)&&(v.push(y),g.dynamicFn=!0)}else v.push(h);n.push({source:h,mode:d,negate:u,customEvent:f,signature:g,dependencies:v,event:m}),a=Fo.lastIndex}if(a&&a<s.length){let d=s.substring(a);d&&n.push({literal:d})}return n.length?n:null}static _evaluateBinding(s,o,n,a,l,d){let u;return o.signature?u=Wi(s,n,a,l,o.signature):n!=o.source?u=ge(s,o.source):d&&Gi(n)?u=ge(s,n):u=s.__data[n],o.negate&&(u=!u),u}}return t}),Ot=[];/**
|
|
1568
1571
|
@license
|
|
1569
1572
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1570
1573
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1580,7 +1583,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1580
1583
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1581
1584
|
Code distributed by Google as part of the polymer project is also
|
|
1582
1585
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1583
|
-
*/function
|
|
1586
|
+
*/function Hf(r){const e={};for(let t in r){const i=r[t];e[t]=typeof i=="function"?{type:i}:i}return e}const zf=ne(r=>{const e=Ba(r);function t(o){const n=Object.getPrototypeOf(o);return n.prototype instanceof s?n:null}function i(o){if(!o.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",o))){let n=null;if(o.hasOwnProperty(JSCompiler_renameProperty("properties",o))){const a=o.properties;a&&(n=Hf(a))}o.__ownProperties=n}return o.__ownProperties}class s extends e{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){this.prototype;const n=this._properties;this.__observedAttributes=n?Object.keys(n).map(a=>this.prototype._addPropertyToAttributeMap(a)):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const n=t(this);n&&n.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const n=i(this);n&&this.createProperties(n)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const n=t(this);this.__properties=Object.assign({},n&&n._properties,i(this))}return this.__properties}static typeForProperty(n){const a=this._properties[n];return a&&a.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return s});/**
|
|
1584
1587
|
* @fileoverview
|
|
1585
1588
|
* @suppress {checkPrototypalTypes}
|
|
1586
1589
|
* @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -1590,7 +1593,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1590
1593
|
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
1591
1594
|
* Google as part of the polymer project is also subject to an additional IP
|
|
1592
1595
|
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1593
|
-
*/const
|
|
1596
|
+
*/const Ff="3.5.2",$o=window.ShadyCSS&&window.ShadyCSS.cssBuild,Vf=ne(r=>{const e=zf(Df(r));function t(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let d=l._properties;for(let u in d){let h=d[u];"value"in h&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[u]=h)}}return l.__propertyDefaults}function i(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function s(l,d,u,h){u.computed&&(u.readOnly=!0),u.computed&&(l._hasReadOnlyEffect(d)?console.warn(`Cannot redefine computed property '${d}'.`):l._createComputedProperty(d,u.computed,h)),u.readOnly&&!l._hasReadOnlyEffect(d)?l._createReadOnlyProperty(d,!u.computed):u.readOnly===!1&&l._hasReadOnlyEffect(d)&&console.warn(`Cannot make readOnly property '${d}' non-readOnly.`),u.reflectToAttribute&&!l._hasReflectEffect(d)?l._createReflectedProperty(d):u.reflectToAttribute===!1&&l._hasReflectEffect(d)&&console.warn(`Cannot make reflected property '${d}' non-reflected.`),u.notify&&!l._hasNotifyEffect(d)?l._createNotifyingProperty(d):u.notify===!1&&l._hasNotifyEffect(d)&&console.warn(`Cannot make notify property '${d}' non-notify.`),u.observer&&l._createPropertyObserver(d,u.observer,h[u.observer]),l._addPropertyToAttributeMap(d)}function o(l,d,u,h){if(!$o){const f=d.content.querySelectorAll("style"),m=Ia(d),_=Lc(u),g=d.content.firstElementChild;for(let w=0;w<_.length;w++){let y=_[w];y.textContent=l._processStyleText(y.textContent,h),d.content.insertBefore(y,g)}let v=0;for(let w=0;w<m.length;w++){let y=m[w],E=f[v];E!==y?(y=y.cloneNode(!0),E.parentNode.insertBefore(y,E)):v++,y.textContent=l._processStyleText(y.textContent,h)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(d,u),Ac&&$o&&vc){const f=d.content.querySelectorAll("style");if(f){let m="";Array.from(f).forEach(_=>{m+=_.textContent,_.parentNode.removeChild(_)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(m)}}}function n(l){let d=null;if(l&&(!$i||wc)&&(d=jt.import(l,"template"),$i&&!d))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return d}class a extends e{static get polymerElementVersion(){return Ff}static _finalizeClass(){e._finalizeClass.call(this);const d=i(this);d&&this.createObservers(d,this._properties),this._prepareTemplate()}static _prepareTemplate(){let d=this.template;d&&(typeof d=="string"?(console.error("template getter must return HTMLTemplateElement"),d=null):xc||(d=d.cloneNode(!0))),this.prototype._template=d}static createProperties(d){for(let u in d)s(this.prototype,u,d[u],d)}static createObservers(d,u){const h=this.prototype;for(let f=0;f<d.length;f++)h._createMethodObserver(d[f],u)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let d=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof d=="function"&&(d=d()),this._template=d!==void 0?d:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&n(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(d){this._template=d}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const d=this.importMeta;if(d)this._importPath=Ps(d.url);else{const u=jt.import(this.is);this._importPath=u&&u.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super(),this._template,this._importPath,this.rootPath,this.importPath,this.root,this.$}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=yc,this.importPath=this.constructor.importPath;let d=t(this.constructor);if(d)for(let u in d){let h=d[u];if(this._canApplyPropertyDefault(u)){let f=typeof h.value=="function"?h.value.call(this):h.value;this._hasAccessor(u)?this._setPendingProperty(u,f,!0):this[u]=f}}}_canApplyPropertyDefault(d){return!this.hasOwnProperty(d)}static _processStyleText(d,u){return xs(d,u)}static _finalizeTemplate(d){const u=this.prototype._template;if(u&&!u.__polymerFinalized){u.__polymerFinalized=!0;const h=this.importPath,f=h?Dt(h):"";o(this,u,d,f),this.prototype._bindTemplate(u)}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback()}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready()}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients()}_attachDom(d){const u=Ye(this);if(u.attachShadow)return d?(u.shadowRoot||(u.attachShadow({mode:"open",shadyUpgradeFragment:d}),u.shadowRoot.appendChild(d),this.constructor._styleSheet&&(u.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),Ec&&window.ShadyDOM&&window.ShadyDOM.flushInitial(u.shadowRoot),u.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}updateStyles(d){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,d)}resolveUrl(d,u){return!u&&this.importPath&&(u=Dt(this.importPath)),Dt(d,u)}static _parseTemplateContent(d,u,h){return u.dynamicFns=u.dynamicFns||this._properties,e._parseTemplateContent.call(this,d,u,h)}static _addTemplatePropertyEffect(d,u,h){return Pc&&!(u in this._properties)&&!(h.info.part.signature&&h.info.part.signature.static)&&!h.info.part.hostProp&&!d.nestedTemplate&&console.warn(`Property '${u}' used in template but not declared in 'properties'; attribute will not be observed.`),e._addTemplatePropertyEffect.call(this,d,u,h)}}return a});/**
|
|
1594
1597
|
@license
|
|
1595
1598
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1596
1599
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1598,7 +1601,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1598
1601
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1599
1602
|
Code distributed by Google as part of the polymer project is also
|
|
1600
1603
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1601
|
-
*/const
|
|
1604
|
+
*/const jo=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:r=>r});class ja{constructor(e,t){qa(e,t);const i=t.reduce((s,o,n)=>s+Ga(o)+e[n+1],e[0]);this.value=i.toString()}toString(){return this.value}}function Ga(r){if(r instanceof ja)return r.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${r}`)}function Uf(r){if(r instanceof HTMLTemplateElement)return r.innerHTML;if(r instanceof ja)return Ga(r);throw new Error(`non-template value passed to Polymer's html function: ${r}`)}const Jt=function(e,...t){qa(e,t);const i=document.createElement("template");let s=t.reduce((o,n,a)=>o+Uf(n)+e[a+1],e[0]);return jo&&(s=jo.createHTML(s)),i.innerHTML=s,i},qa=(r,e)=>{if(!Array.isArray(r)||!Array.isArray(r.raw)||e.length!==r.length-1)throw new TypeError("Invalid call to the html template tag")};/**
|
|
1602
1605
|
@license
|
|
1603
1606
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1604
1607
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1606,19 +1609,19 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1606
1609
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1607
1610
|
Code distributed by Google as part of the polymer project is also
|
|
1608
1611
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1609
|
-
*/const
|
|
1612
|
+
*/const Kt=Vf(HTMLElement);/**
|
|
1610
1613
|
* @license
|
|
1611
1614
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1612
1615
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1613
|
-
*/const
|
|
1616
|
+
*/const Me=[];function Yi(r,e,t=r.getAttribute("dir")){e?r.setAttribute("dir",e):t!=null&&r.removeAttribute("dir")}function Zi(){return document.documentElement.getAttribute("dir")}function $f(){const r=Zi();Me.forEach(e=>{Yi(e,r)})}const jf=new MutationObserver($f);jf.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const jr=r=>class extends r{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:t=>t||"",toAttribute:t=>t===""?null:t}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),Yi(this,Zi(),null))}attributeChangedCallback(t,i,s){if(super.attributeChangedCallback(t,i,s),t!=="dir")return;const o=Zi(),n=s===o&&Me.indexOf(this)===-1,a=!s&&i&&Me.indexOf(this)===-1;n||a?(this.__subscribe(),Yi(this,o,s)):s!==o&&i===o&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=Me.includes(this),this.__unsubscribe()}_valueToNodeAttribute(t,i,s){s==="dir"&&i===""&&!t.hasAttribute("dir")||super._valueToNodeAttribute(t,i,s)}_attributeToProperty(t,i,s){t==="dir"&&!i?this.dir="":super._attributeToProperty(t,i,s)}__subscribe(){Me.includes(this)||Me.push(this)}__unsubscribe(){Me.includes(this)&&Me.splice(Me.indexOf(this),1)}};/**
|
|
1614
1617
|
* @license
|
|
1615
1618
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1616
1619
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1617
|
-
*/const
|
|
1620
|
+
*/const Gf=r=>class extends r{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",t=>{t.target===this&&t.preventDefault()}),this.addEventListener("click",t=>{t.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach(i=>i.focus&&i.focus())})}};/**
|
|
1618
1621
|
* @license
|
|
1619
1622
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1620
1623
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1621
|
-
*/const
|
|
1624
|
+
*/const qf=R`
|
|
1622
1625
|
:host {
|
|
1623
1626
|
display: flex;
|
|
1624
1627
|
align-items: center;
|
|
@@ -1687,19 +1690,19 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1687
1690
|
* @license
|
|
1688
1691
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1689
1692
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1690
|
-
*/
|
|
1693
|
+
*/de("vaadin-input-container",qf,{moduleId:"vaadin-input-container-styles"});class Wf extends Gf(Ur(jr(Kt))){static get is(){return"vaadin-input-container"}static get template(){return Jt`
|
|
1691
1694
|
<slot name="prefix"></slot>
|
|
1692
1695
|
<slot></slot>
|
|
1693
1696
|
<slot name="suffix"></slot>
|
|
1694
|
-
`}}
|
|
1697
|
+
`}}wt(Wf);/**
|
|
1695
1698
|
* @license
|
|
1696
1699
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
1697
1700
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1698
|
-
*/const
|
|
1701
|
+
*/const Yf=r=>class extends r{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(t,i,s){t==="hidden"&&s!==null?this.index=void 0:super.attributeChangedCallback(t,i,s)}connectedCallback(){super.connectedCallback(),this._owner=this.parentNode.owner;const t=this._owner.getAttribute("dir");t&&this.setAttribute("dir",t)}requestContentUpdate(){if(!this.renderer||this.hidden)return;const t={index:this.index,item:this.item,focused:this.focused,selected:this.selected};this.renderer(this,this._owner,t)}__rendererOrItemChanged(t,i,s){s===void 0||i===void 0||(this._oldRenderer!==t&&(this.innerHTML="",delete this._$litPart$),t&&(this._oldRenderer=t,this.requestContentUpdate()))}__updateLabel(t,i){i||(this.textContent=t)}};/**
|
|
1699
1702
|
* @license
|
|
1700
1703
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
1701
1704
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1702
|
-
*/class
|
|
1705
|
+
*/class Zf extends Yf(Ur(jr(Kt))){static get template(){return Jt`
|
|
1703
1706
|
<style>
|
|
1704
1707
|
:host {
|
|
1705
1708
|
display: block;
|
|
@@ -1713,7 +1716,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1713
1716
|
<div part="content">
|
|
1714
1717
|
<slot></slot>
|
|
1715
1718
|
</div>
|
|
1716
|
-
`}static get is(){return"vaadin-combo-box-item"}}
|
|
1719
|
+
`}static get is(){return"vaadin-combo-box-item"}}wt(Zf);/**
|
|
1717
1720
|
@license
|
|
1718
1721
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1719
1722
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1721,51 +1724,51 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1721
1724
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1722
1725
|
Code distributed by Google as part of the polymer project is also
|
|
1723
1726
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1724
|
-
*/let
|
|
1727
|
+
*/let Xi=!1,Xf=[],Wa=[];function Jf(){Xi=!0,requestAnimationFrame(function(){Xi=!1,Kf(Xf),setTimeout(function(){Qf(Wa)})})}function Kf(r){for(;r.length;)Ya(r.shift())}function Qf(r){for(let e=0,t=r.length;e<t;e++)Ya(r.shift())}function Ya(r){const e=r[0],t=r[1],i=r[2];try{t.apply(e,i)}catch(s){setTimeout(()=>{throw s})}}function ep(r,e,t){Xi||Jf(),Wa.push([r,e,t])}/**
|
|
1725
1728
|
* @license
|
|
1726
1729
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1727
1730
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1728
|
-
*/const
|
|
1731
|
+
*/const Gr=r=>r.test(navigator.userAgent),Ji=r=>r.test(navigator.platform),tp=r=>r.test(navigator.vendor);Gr(/Android/u);Gr(/Chrome/u)&&tp(/Google Inc/u);Gr(/Firefox/u);const rp=Ji(/^iPad/u)||Ji(/^Mac/u)&&navigator.maxTouchPoints>1,ip=Ji(/^iPhone/u),sp=ip||rp,op=Gr(/^((?!chrome|android).)*safari/iu),Ki=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(r){return!1}})();/**
|
|
1729
1732
|
* @license
|
|
1730
1733
|
* Copyright (c) 2017 Anton Korzunov
|
|
1731
1734
|
* SPDX-License-Identifier: MIT
|
|
1732
|
-
*/let
|
|
1735
|
+
*/let it=new WeakMap,lr=new WeakMap,dr={},fi=0;const Go=r=>r&&r.nodeType===Node.ELEMENT_NODE,pi=(...r)=>{console.error(`Error: ${r.join(" ")}. Skip setting aria-hidden.`)},np=(r,e)=>Go(r)?e.map(t=>{if(!Go(t))return pi(t,"is not a valid element"),null;let i=t;for(;i&&i!==r;){if(r.contains(i))return t;i=i.getRootNode().host}return pi(t,"is not contained inside",r),null}).filter(t=>!!t):(pi(r,"is not a valid element"),[]),ap=(r,e,t,i)=>{const s=np(e,Array.isArray(r)?r:[r]);dr[t]||(dr[t]=new WeakMap);const o=dr[t],n=[],a=new Set,l=new Set(s),d=h=>{if(!h||a.has(h))return;a.add(h);const f=h.assignedSlot;f&&d(f),d(h.parentNode||h.host)};s.forEach(d);const u=h=>{if(!h||l.has(h))return;const f=h.shadowRoot;(f?[...h.children,...f.children]:[...h.children]).forEach(_=>{if(!["template","script","style"].includes(_.localName))if(a.has(_))u(_);else{const g=_.getAttribute(i),v=g!==null&&g!=="false",w=(it.get(_)||0)+1,y=(o.get(_)||0)+1;it.set(_,w),o.set(_,y),n.push(_),w===1&&v&&lr.set(_,!0),y===1&&_.setAttribute(t,"true"),v||_.setAttribute(i,"true")}})};return u(e),a.clear(),fi+=1,()=>{n.forEach(h=>{const f=it.get(h)-1,m=o.get(h)-1;it.set(h,f),o.set(h,m),f||(lr.has(h)?lr.delete(h):h.removeAttribute(i)),m||h.removeAttribute(t)}),fi-=1,fi||(it=new WeakMap,it=new WeakMap,lr=new WeakMap,dr={})}},lp=(r,e=document.body,t="data-aria-hidden")=>{const i=Array.from(Array.isArray(r)?r:[r]);return e&&i.push(...Array.from(e.querySelectorAll("[aria-live]"))),ap(i,e,t,"aria-hidden")};/**
|
|
1733
1736
|
* @license
|
|
1734
1737
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1735
1738
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1736
|
-
*/class
|
|
1739
|
+
*/class dp{constructor(e,t){this.host=e,this.callback=typeof t=="function"?t:()=>e}showModal(){const e=this.callback();this.__showOthers=lp(e)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}/**
|
|
1737
1740
|
* @license
|
|
1738
1741
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1739
1742
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1740
|
-
*/let
|
|
1743
|
+
*/let Ss=!1;window.addEventListener("keydown",()=>{Ss=!0},{capture:!0});window.addEventListener("mousedown",()=>{Ss=!1},{capture:!0});function Qi(){let r=document.activeElement||document.body;for(;r.shadowRoot&&r.shadowRoot.activeElement;)r=r.shadowRoot.activeElement;return r}function As(){return Ss}function up(r){const e=r.style;if(e.visibility==="hidden"||e.display==="none")return!0;const t=window.getComputedStyle(r);return t.visibility==="hidden"||t.display==="none"}function hp(r,e){const t=Math.max(r.tabIndex,0),i=Math.max(e.tabIndex,0);return t===0||i===0?i>t:t>i}function cp(r,e){const t=[];for(;r.length>0&&e.length>0;)hp(r[0],e[0])?t.push(e.shift()):t.push(r.shift());return t.concat(r,e)}function es(r){const e=r.length;if(e<2)return r;const t=Math.ceil(e/2),i=es(r.slice(0,t)),s=es(r.slice(t));return cp(i,s)}function Za(r){return r.matches('[tabindex="-1"]')?!1:r.matches("input, select, textarea, button, object")?r.matches(":not([disabled])"):r.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function Xa(r){return r.getRootNode().activeElement===r}function fp(r){if(!Za(r))return-1;const e=r.getAttribute("tabindex")||0;return Number(e)}function Ja(r,e){if(r.nodeType!==Node.ELEMENT_NODE||up(r))return!1;const t=r,i=fp(t);let s=i>0;i>=0&&e.push(t);let o=[];return t.localName==="slot"?o=t.assignedNodes({flatten:!0}):o=(t.shadowRoot||t).children,[...o].forEach(n=>{s=Ja(n,e)||s}),s}function pp(r){const e=[];return Ja(r,e)?es(e):e}/**
|
|
1741
1744
|
* @license
|
|
1742
1745
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1743
1746
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1744
|
-
*/class
|
|
1747
|
+
*/class mp{saveFocus(e){this.focusNode=e||Qi()}restoreFocus(e){const t=this.focusNode;if(!t)return;const i=e?e.preventScroll:!1;Qi()===document.body?setTimeout(()=>t.focus({preventScroll:i})):t.focus({preventScroll:i}),this.focusNode=null}}/**
|
|
1745
1748
|
* @license
|
|
1746
1749
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1747
1750
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1748
|
-
*/const
|
|
1751
|
+
*/const mi=[];class _p{constructor(e){this.host=e,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return pp(this.__trapNode)}get __focusedElementIndex(){const e=this.__focusableElements;return e.indexOf(e.filter(Xa).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(e){if(this.__trapNode=e,this.__focusableElements.length===0)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");mi.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,mi.pop()}__onKeyDown(e){if(this.__trapNode&&this===Array.from(mi).pop()&&e.key==="Tab"){e.preventDefault();const t=e.shiftKey;this.__focusNextElement(t)}}__focusNextElement(e=!1){const t=this.__focusableElements,i=e?-1:1,s=this.__focusedElementIndex,o=(t.length+s+i)%t.length,n=t[o];n.focus(),n.localName==="input"&&n.select()}}/**
|
|
1749
1752
|
* @license
|
|
1750
1753
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1751
1754
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1752
|
-
*/const
|
|
1755
|
+
*/const qr=ne(r=>typeof r.prototype.addController=="function"?r:class extends r{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(t=>{t.hostConnected&&t.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(t=>{t.hostDisconnected&&t.hostDisconnected()})}addController(t){this.__controllers.add(t),this.$!==void 0&&this.isConnected&&t.hostConnected&&t.hostConnected()}removeController(t){this.__controllers.delete(t)}});/**
|
|
1753
1756
|
* @license
|
|
1754
1757
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1755
1758
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1756
|
-
*/const
|
|
1759
|
+
*/const gp=r=>class extends qr(r){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new dp(this),this.__focusTrapController=new _p(this),this.__focusRestorationController=new mp}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 t=!As();this.__focusRestorationController.restoreFocus({preventScroll:t})}}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const t=Qi();return t===document.body||this._deepContains(t)}_deepContains(t){if(this.contains(t))return!0;let i=t;const s=t.ownerDocument;for(;i&&i!==s&&i!==this;)i=i.parentNode||i.host;return i===this}};/**
|
|
1757
1760
|
* @license
|
|
1758
1761
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1759
1762
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1760
|
-
*/const
|
|
1763
|
+
*/const Ka=()=>Array.from(document.body.children).filter(r=>r instanceof HTMLElement&&r._hasOverlayStackMixin&&!r.hasAttribute("closing")).sort((r,e)=>r.__zIndex-e.__zIndex||0),ts=()=>Ka().filter(r=>r.$.overlay),bp=r=>r===ts().pop(),vp=r=>class extends r{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return bp(this)}bringToFront(){let t="";const i=Ka().filter(s=>s!==this).pop();i&&(t=i.__zIndex+1),this.style.zIndex=t,this.__zIndex=t||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){document.body.style.pointerEvents!=="none"&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),ts().forEach(t=>{t!==this&&(t.$.overlay.style.pointerEvents="none")})}_exitModalState(){this._previousDocumentPointerEvents!==void 0&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const t=ts();let i;for(;(i=t.pop())&&!(i!==this&&(i.$.overlay.style.removeProperty("pointer-events"),!i.modeless)););}};/**
|
|
1761
1764
|
* @license
|
|
1762
1765
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1763
1766
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1764
|
-
*/const
|
|
1767
|
+
*/const yp=r=>class extends gp(vp(r)){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),sp&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}ready(){super.ready(),this.addEventListener("click",()=>{}),this.$.backdrop.addEventListener("click",()=>{}),this.addEventListener("mouseup",()=>{document.activeElement===document.body&&this.$.overlay.getAttribute("tabindex")==="0"&&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(t){const i=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(i),i.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const t=window.innerHeight,s=window.innerWidth>t,o=document.documentElement.clientHeight;s&&o>t?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${o-t}px`):this.style.setProperty("--vaadin-overlay-viewport-bottom","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(t,i,s,o){const n=this._oldOwner!==i||this._oldModel!==s;this._oldModel=s,this._oldOwner=i;const a=this._oldRenderer!==t,l=this._oldRenderer!==void 0;this._oldRenderer=t;const d=this._oldOpened!==o;this._oldOpened=o,a&&l&&(this.innerHTML="",delete this._$litPart$),o&&t&&(a||d||n)&&this.requestContentUpdate()}_modelessChanged(t){t?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(t,i){t?(this._saveFocus(),this._animatedOpening(),ep(this,()=>{this._trapFocus();const s=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(s)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):i&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(t){t&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const t=getComputedStyle(this),i=t.getPropertyValue("animation-name");return!(t.getPropertyValue("display")==="none")&&i&&i!=="none"}_enqueueAnimation(t,i){const s=`__${t}Handler`,o=n=>{n&&n.target!==this||(i(),this.removeEventListener("animationend",o),delete this[s])};this[s]=o,this.addEventListener("animationend",o)}_flushAnimation(t){const i=`__${t}Handler`;typeof this[i]=="function"&&this[i]()}_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(t){this._mouseDownInside=t.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(t){this._mouseUpInside=t.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(t){return this._last}_outsideClickListener(t){if(t.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=!1,this._mouseUpInside=!1;return}if(!this._shouldCloseOnOutsideClick(t))return;const i=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(i),this.opened&&!i.defaultPrevented&&this.close(t)}_keydownListener(t){if(this._last&&!(this.modeless&&!t.composedPath().includes(this.$.overlay))&&t.key==="Escape"){const i=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(i),this.opened&&!i.defaultPrevented&&this.close(t)}}};/**
|
|
1765
1768
|
* @license
|
|
1766
1769
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1767
1770
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1768
|
-
*/const
|
|
1771
|
+
*/const wp=R`
|
|
1769
1772
|
:host {
|
|
1770
1773
|
z-index: 200;
|
|
1771
1774
|
position: fixed;
|
|
@@ -1828,23 +1831,23 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1828
1831
|
* @license
|
|
1829
1832
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1830
1833
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1831
|
-
*/function
|
|
1834
|
+
*/function xp(r){const e=[];for(;r;){if(r.nodeType===Node.DOCUMENT_NODE){e.push(r);break}if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){e.push(r),r=r.host;continue}if(r.assignedSlot){r=r.assignedSlot;continue}r=r.parentNode}return e}function Ts(r){return r?new Set(r.split(" ")):new Set}function Wr(r){return r?[...r].join(" "):""}function Qa(r,e,t){const i=Ts(r.getAttribute(e));i.add(t),r.setAttribute(e,Wr(i))}function Pp(r,e,t){const i=Ts(r.getAttribute(e));if(i.delete(t),i.size===0){r.removeAttribute(e);return}r.setAttribute(e,Wr(i))}function Ep(r){return r.nodeType===Node.TEXT_NODE&&r.textContent.trim()===""}/**
|
|
1832
1835
|
* @license
|
|
1833
1836
|
* Copyright (c) 2024 Vaadin Ltd.
|
|
1834
1837
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1835
|
-
*/function
|
|
1838
|
+
*/function Cp(r,e){let t=null;const i=document.documentElement;function s(){t&&t.disconnect(),t=null}function o(n=!1,a=1){s();const{left:l,top:d,width:u,height:h}=r.getBoundingClientRect();if(n||e(),!u||!h)return;const f=Math.floor(d),m=Math.floor(i.clientWidth-(l+u)),_=Math.floor(i.clientHeight-(d+h)),g=Math.floor(l),w={rootMargin:`${-f}px ${-m}px ${-_}px ${-g}px`,threshold:Math.max(0,Math.min(1,a))||1};let y=!0;function E(T){let C=T[0].intersectionRatio;if(C!==a){if(!y)return o();C===0&&(C=1e-7),o(!1,C)}y=!1}t=new IntersectionObserver(E,w),t.observe(r)}return o(!0),s}/**
|
|
1836
1839
|
* @license
|
|
1837
1840
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1838
1841
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1839
|
-
*/const
|
|
1842
|
+
*/const _i={start:"top",end:"bottom"},gi={start:"left",end:"right"},qo=new ResizeObserver(r=>{setTimeout(()=>{r.forEach(e=>{e.target.__overlay&&e.target.__overlay._updatePosition()})})}),Sp=r=>class extends r{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=xp(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(t=>{t.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=Cp(this.positionTarget,()=>{this._updatePosition()}))}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(t=>{t.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null)}__overlayOpenedChanged(t,i){if(this.__removeUpdatePositionEventListeners(),i&&(i.__overlay=null,qo.unobserve(i),t&&(this.__addUpdatePositionEventListeners(),i.__overlay=this,qo.observe(i))),t){const s=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(o=>{this.__margins[o]=parseInt(s[o],10)})),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__positionSettingsChanged(){this._updatePosition()}__onScroll(t){t.target instanceof Node&&this.contains(t.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened||!this.__margins)return;const t=this.positionTarget.getBoundingClientRect();if(t.width===0&&t.height===0&&this.opened){this.opened=!1;return}const i=this.__shouldAlignStartVertically(t);this.style.justifyContent=i?"flex-start":"flex-end";const s=this.__isRTL,o=this.__shouldAlignStartHorizontally(t,s),n=!s&&o||s&&!o;this.style.alignItems=n?"flex-start":"flex-end";const a=this.getBoundingClientRect(),l=this.__calculatePositionInOneDimension(t,a,this.noVerticalOverlap,_i,this,i),d=this.__calculatePositionInOneDimension(t,a,this.noHorizontalOverlap,gi,this,o);Object.assign(this.style,l,d),this.toggleAttribute("bottom-aligned",!i),this.toggleAttribute("top-aligned",i),this.toggleAttribute("end-aligned",!n),this.toggleAttribute("start-aligned",n)}__shouldAlignStartHorizontally(t,i){const s=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const o=Math.min(window.innerWidth,document.documentElement.clientWidth),n=!i&&this.horizontalAlign==="start"||i&&this.horizontalAlign==="end";return this.__shouldAlignStart(t,s,o,this.__margins,n,this.noHorizontalOverlap,gi)}__shouldAlignStartVertically(t){const i=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const s=Math.min(window.innerHeight,document.documentElement.clientHeight),o=this.verticalAlign==="top";return this.__shouldAlignStart(t,i,s,this.__margins,o,this.noVerticalOverlap,_i)}__shouldAlignStart(t,i,s,o,n,a,l){const d=s-t[a?l.end:l.start]-o[l.end],u=t[a?l.start:l.end]-o[l.start],h=n?d:u,m=h>(n?u:d)||h>i;return n===m}__adjustBottomProperty(t,i,s){let o;if(t===i.end){if(i.end===_i.end){const n=Math.min(window.innerHeight,document.documentElement.clientHeight);if(s>n&&this.__oldViewportHeight){const a=this.__oldViewportHeight-n;o=s-a}this.__oldViewportHeight=n}if(i.end===gi.end){const n=Math.min(window.innerWidth,document.documentElement.clientWidth);if(s>n&&this.__oldViewportWidth){const a=this.__oldViewportWidth-n;o=s-a}this.__oldViewportWidth=n}}return o}__calculatePositionInOneDimension(t,i,s,o,n,a){const l=a?o.start:o.end,d=a?o.end:o.start,u=parseFloat(n.style[l]||getComputedStyle(n)[l]),h=this.__adjustBottomProperty(l,o,u),f=i[a?o.start:o.end]-t[s===a?o.end:o.start],m=h?`${h}px`:`${u+f*(a?-1:1)}px`;return{[l]:m,[d]:""}}};/**
|
|
1840
1843
|
* @license
|
|
1841
1844
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
1842
1845
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1843
|
-
*/const
|
|
1846
|
+
*/const Ap=r=>class extends Sp(r){static get observers(){return["_setOverlayWidth(positionTarget, opened)"]}constructor(){super(),this.requiredVerticalSpace=200}connectedCallback(){super.connectedCallback();const t=this._comboBox,i=t&&t.getAttribute("dir");i&&this.setAttribute("dir",i)}_shouldCloseOnOutsideClick(t){const i=t.composedPath();return!i.includes(this.positionTarget)&&!i.includes(this)}_mouseDownListener(t){super._mouseDownListener(t),this._shouldCloseOnOutsideClick(t)&&!Za(t.composedPath()[0])&&t.preventDefault()}_updateOverlayWidth(){const t=this.localName;this.style.setProperty(`--_${t}-default-width`,`${this.positionTarget.clientWidth}px`);const i=getComputedStyle(this._comboBox).getPropertyValue(`--${t}-width`);i===""?this.style.removeProperty(`--${t}-width`):this.style.setProperty(`--${t}-width`,i)}_setOverlayWidth(t,i){t&&i&&(this._updateOverlayWidth(),this._updatePosition())}};/**
|
|
1844
1847
|
* @license
|
|
1845
1848
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
1846
1849
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1847
|
-
*/const
|
|
1850
|
+
*/const Tp=R`
|
|
1848
1851
|
#overlay {
|
|
1849
1852
|
width: var(--vaadin-combo-box-overlay-width, var(--_vaadin-combo-box-overlay-default-width, auto));
|
|
1850
1853
|
}
|
|
@@ -1854,21 +1857,21 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1854
1857
|
flex-direction: column;
|
|
1855
1858
|
height: 100%;
|
|
1856
1859
|
}
|
|
1857
|
-
`;
|
|
1860
|
+
`;de("vaadin-combo-box-overlay",[wp,Tp],{moduleId:"vaadin-combo-box-overlay-styles"});class Ip extends Ap(yp(jr(Ur(Kt)))){static get is(){return"vaadin-combo-box-overlay"}static get template(){return Jt`
|
|
1858
1861
|
<div id="backdrop" part="backdrop" hidden></div>
|
|
1859
1862
|
<div part="overlay" id="overlay">
|
|
1860
1863
|
<div part="loader"></div>
|
|
1861
1864
|
<div part="content" id="content"><slot></slot></div>
|
|
1862
1865
|
</div>
|
|
1863
|
-
`}}
|
|
1866
|
+
`}}wt(Ip);/**
|
|
1864
1867
|
* @license
|
|
1865
1868
|
* Copyright (c) 2023 - 2024 Vaadin Ltd.
|
|
1866
1869
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1867
|
-
*/function
|
|
1870
|
+
*/function kr(r,e){return r.split(".").reduce((t,i)=>t?t[i]:void 0,e)}/**
|
|
1868
1871
|
* @license
|
|
1869
1872
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1870
1873
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1871
|
-
*/let
|
|
1874
|
+
*/let Op=0;function el(){return Op++}/**
|
|
1872
1875
|
* @license
|
|
1873
1876
|
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1874
1877
|
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1876,7 +1879,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1876
1879
|
* The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1877
1880
|
* Code distributed by Google as part of the polymer project is also
|
|
1878
1881
|
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1879
|
-
*/let
|
|
1882
|
+
*/let Wo=0,tl=0;const ht=[];let rs=!1;function Np(){rs=!1;const r=ht.length;for(let e=0;e<r;e++){const t=ht[e];if(t)try{t()}catch(i){setTimeout(()=>{throw i})}}ht.splice(0,r),tl+=r}const gr={after(r){return{run(e){return window.setTimeout(e,r)},cancel(e){window.clearTimeout(e)}}},run(r,e){return window.setTimeout(r,e)},cancel(r){window.clearTimeout(r)}},Wt={run(r){return window.requestAnimationFrame(r)},cancel(r){window.cancelAnimationFrame(r)}},rl={run(r){return window.requestIdleCallback?window.requestIdleCallback(r):window.setTimeout(r,16)},cancel(r){window.cancelIdleCallback?window.cancelIdleCallback(r):window.clearTimeout(r)}},is={run(r){rs||(rs=!0,queueMicrotask(()=>Np())),ht.push(r);const e=Wo;return Wo+=1,e},cancel(r){const e=r-tl;if(e>=0){if(!ht[e])throw new Error(`invalid async handle: ${r}`);ht[e]=null}}};/**
|
|
1880
1883
|
@license
|
|
1881
1884
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1882
1885
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1884,7 +1887,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1884
1887
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1885
1888
|
Code distributed by Google as part of the polymer project is also
|
|
1886
1889
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1887
|
-
*/const
|
|
1890
|
+
*/const Yt=new Set;class Pe{static debounce(e,t,i){return e instanceof Pe?e._cancelAsync():e=new Pe,e.setConfig(t,i),e}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,Yt.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Yt.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return this._timer!=null}}function il(r){Yt.add(r)}function kp(){const r=!!Yt.size;return Yt.forEach(e=>{try{e.flush()}catch(t){setTimeout(()=>{throw t})}}),r}const Mt=()=>{let r;do r=kp();while(r)};/**
|
|
1888
1891
|
* @license
|
|
1889
1892
|
* Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
|
|
1890
1893
|
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1892,23 +1895,23 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1892
1895
|
* The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1893
1896
|
* Code distributed by Google as part of the polymer project is also
|
|
1894
1897
|
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1895
|
-
*/const
|
|
1898
|
+
*/const Yo=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),Mp=Yo&&Yo[1]>=8,Zo=3,Lp={_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(){const r=this._virtualCount;return Math.max(0,r-this._physicalCount)},get _virtualStart(){return this._virtualStartVal||0},set _virtualStart(r){r=this._clamp(r,0,this._maxVirtualStart),this._virtualStartVal=r},get _physicalStart(){return this._physicalStartVal||0},set _physicalStart(r){r%=this._physicalCount,r<0&&(r=this._physicalCount+r),this._physicalStartVal=r},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},get _physicalCount(){return this._physicalCountVal||0},set _physicalCount(r){this._physicalCountVal=r},get _optPhysicalSize(){return this._viewportHeight===0?1/0:this._viewportHeight*this._maxPages},get _isVisible(){return!!(this.offsetWidth||this.offsetHeight)},get firstVisibleIndex(){let r=this._firstVisibleIndexVal;if(r==null){let e=this._physicalTop+this._scrollOffset;r=this._iterateItems((t,i)=>{if(e+=this._getPhysicalSizeIncrement(t),e>this._scrollPosition)return i})||0,this._firstVisibleIndexVal=r}return r},get lastVisibleIndex(){let r=this._lastVisibleIndexVal;if(r==null){let e=this._physicalTop+this._scrollOffset;this._iterateItems((t,i)=>{e<this._scrollBottom&&(r=i),e+=this._getPhysicalSizeIncrement(t)}),this._lastVisibleIndexVal=r}return r},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},_scrollHandler(){const r=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop));let e=r-this._scrollPosition;const t=e>=0;if(this._scrollPosition=r,this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,Math.abs(e)>this._physicalSize&&this._physicalSize>0){e-=this._scrollOffset;const i=Math.round(e/this._physicalAverage);this._virtualStart+=i,this._physicalStart+=i,this._physicalTop=Math.min(Math.floor(this._virtualStart)*this._physicalAverage,this._scrollPosition),this._update()}else if(this._physicalCount>0){const i=this._getReusables(t);t?(this._physicalTop=i.physicalTop,this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length):(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length),this._update(i.indexes,t?null:i.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),is)}},_getReusables(r){let e,t,i;const s=[],o=this._hiddenContentSize*this._ratio,n=this._virtualStart,a=this._virtualEnd,l=this._physicalCount;let d=this._physicalTop+this._scrollOffset;const u=this._physicalBottom+this._scrollOffset,h=this._scrollPosition,f=this._scrollBottom;for(r?(e=this._physicalStart,t=h-d):(e=this._physicalEnd,t=u-f);i=this._getPhysicalSizeIncrement(e),t-=i,!(s.length>=l||t<=o);)if(r){if(a+s.length+1>=this._virtualCount||d+i>=h-this._scrollOffset)break;s.push(e),d+=i,e=(e+1)%l}else{if(n-s.length<=0||d+this._physicalSize-i<=f)break;s.push(e),d-=i,e=e===0?l-1:e-1}return{indexes:s,physicalTop:d-this._scrollOffset}},_update(r,e){if(!(r&&r.length===0||this._physicalCount===0)){if(this._assignModels(r),this._updateMetrics(r),e)for(;e.length;){const t=e.pop();this._physicalTop-=this._getPhysicalSizeIncrement(t)}this._positionItems(),this._updateScrollerSize()}},_isClientFull(){return this._scrollBottom!==0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},_increasePoolIfNeeded(r){const t=this._clamp(this._physicalCount+r,Zo,this._virtualCount-this._virtualStart)-this._physicalCount;let i=Math.round(this._physicalCount*.5);if(!(t<0)){if(t>0){const s=window.performance.now();[].push.apply(this._physicalItems,this._createPool(t));for(let o=0;o<t;o++)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()-s)/t,i=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||i===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,i)),rl):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,i),is))}},_render(){if(!(!this.isAttached||!this._isVisible))if(this._physicalCount!==0){const r=this._getReusables(!0);this._physicalTop=r.physicalTop,this._virtualStart+=r.indexes.length,this._physicalStart+=r.indexes.length,this._update(r.indexes),this._update(),this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(Zo))},_itemsChanged(r){r.path==="items"&&(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,Wt))},_iterateItems(r,e){let t,i,s,o;if(arguments.length===2&&e){for(o=0;o<e.length;o++)if(t=e[o],i=this._computeVidx(t),(s=r.call(this,t,i))!=null)return s}else{for(t=this._physicalStart,i=this._virtualStart;t<this._physicalCount;t++,i++)if((s=r.call(this,t,i))!=null)return s;for(t=0;t<this._physicalStart;t++,i++)if((s=r.call(this,t,i))!=null)return s}},_computeVidx(r){return r>=this._physicalStart?this._virtualStart+(r-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+r},_positionItems(){this._adjustScrollPosition();let r=this._physicalTop;this._iterateItems(e=>{this.translate3d(0,`${r}px`,0,this._physicalItems[e]),r+=this._physicalSizes[e]})},_getPhysicalSizeIncrement(r){return this._physicalSizes[r]},_adjustScrollPosition(){const r=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(r!==0){this._physicalTop-=r;const e=this._scrollPosition;!Mp&&e>0&&this._resetScrollPosition(e-r)}},_resetScrollPosition(r){this.scrollTarget&&r>=0&&(this._scrollTop=r,this._scrollPosition=this._scrollTop)},_updateScrollerSize(r){const e=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;this._estScrollHeight=e,(r||this._scrollHeight===0||this._scrollPosition>=e-this._physicalSize||Math.abs(e-this._scrollHeight)>=this._viewportHeight)&&(this.$.items.style.height=`${e}px`,this._scrollHeight=e)},scrollToIndex(r){if(typeof r!="number"||r<0||r>this.items.length-1||(Mt(),this._physicalCount===0))return;r=this._clamp(r,0,this._virtualCount-1),(!this._isIndexRendered(r)||r>=this._maxVirtualStart)&&(this._virtualStart=r-1),this._assignModels(),this._updateMetrics(),this._physicalTop=this._virtualStart*this._physicalAverage;let e=this._physicalStart,t=this._virtualStart,i=0;const s=this._hiddenContentSize;for(;t<r&&i<=s;)i+=this._getPhysicalSizeIncrement(e),e=(e+1)%this._physicalCount,t+=1;this._updateScrollerSize(!0),this._positionItems(),this._resetScrollPosition(this._physicalTop+this._scrollOffset+i),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)},Wt)},_isIndexRendered(r){return r>=this._virtualStart&&r<=this._virtualEnd},_getPhysicalIndex(r){return(this._physicalStart+(r-this._virtualStart))%this._physicalCount},_clamp(r,e,t){return Math.min(t,Math.max(e,r))},_debounce(r,e,t){this._debouncers||(this._debouncers={}),this._debouncers[r]=Pe.debounce(this._debouncers[r],t,e.bind(this)),il(this._debouncers[r])}};/**
|
|
1896
1899
|
* @license
|
|
1897
1900
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1898
1901
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1899
|
-
*/const Zf=1e5,si=1e3;class va{constructor({createElements:t,updateElement:e,scrollTarget:i,scrollContainer:s,elementsContainer:o,reorderElements:n}){this.isAttached=!0,this._vidxOffset=0,this.createElements=t,this.updateElement=e,this.scrollTarget=i,this.scrollContainer=s,this.elementsContainer=o||s,this.reorderElements=n,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()),getComputedStyle(this.scrollTarget).overflow==="visible"&&(this.scrollTarget.style.overflow="auto"),getComputedStyle(this.scrollContainer).position==="static"&&(this.scrollContainer.style.position="relative"),this.__resizeObserver.observe(this.scrollTarget),this.scrollTarget.addEventListener("scroll",()=>this._scrollHandler()),new ResizeObserver(([{contentRect:l}])=>{const d=l.width===0&&l.height===0;!d&&this.__scrollTargetHidden&&this.scrollTarget.scrollTop!==this._scrollPosition&&(this.scrollTarget.scrollTop=this._scrollPosition),this.__scrollTargetHidden=d}).observe(this.scrollTarget),this._scrollLineHeight=this._getScrollLineHeight(),this.scrollTarget.addEventListener("wheel",l=>this.__onWheel(l)),this.scrollTarget.addEventListener("virtualizer-element-focused",l=>this.__onElementFocused(l)),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(t=>t.__virtualizerPlaceholder)}scrollToIndex(t){if(typeof t!="number"||isNaN(t)||this.size===0||!this.scrollTarget.offsetHeight)return;delete this.__pendingScrollToIndex,this._physicalCount<=3&&this.flush(),t=this._clamp(t,0,this.size-1);const e=this.__getVisibleElements().length;let i=Math.floor(t/this.size*this._virtualCount);this._virtualCount-i<e?(i=this._virtualCount-(this.size-t),this._vidxOffset=this._maxVirtualIndexOffset):i<e?t<si?(i=t,this._vidxOffset=0):(i=si,this._vidxOffset=t-i):this._vidxOffset=t-i,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(i),this.adjustedFirstVisibleIndex!==t&&this._scrollTop<this._maxScrollTop&&!this.grid&&(this._scrollTop-=this.__getIndexScrollOffset(t)||0),this._scrollHandler(),this.__hasPlaceholders()&&(this.__pendingScrollToIndex=t)}flush(){this.scrollTarget.offsetHeight!==0&&(this._resizeHandler(),Et(),this._scrollHandler(),this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.flush(),this.__scrollReorderDebouncer&&this.__scrollReorderDebouncer.flush(),this.__debouncerWheelAnimationFrame&&this.__debouncerWheelAnimationFrame.flush())}update(t=0,e=this.size-1){const i=[];this.__getVisibleElements().forEach(s=>{s.__virtualIndex>=t&&s.__virtualIndex<=e&&(this.__updateElement(s,s.__virtualIndex,!0),i.push(s))}),this.__afterElementsUpdated(i)}_updateMetrics(t){Et();let e=0,i=0;const s=this._physicalAverageCount,o=this._physicalAverage;this._iterateItems((n,a)=>{i+=this._physicalSizes[n],this._physicalSizes[n]=Math.ceil(this.__getBorderBoxHeight(this._physicalItems[n])),e+=this._physicalSizes[n],this._physicalAverageCount+=this._physicalSizes[n]?1:0},t),this._physicalSize=this._physicalSize+e-i,this._physicalAverageCount!==s&&(this._physicalAverage=Math.round((o*s+e)/this._physicalAverageCount))}__getBorderBoxHeight(t){const e=getComputedStyle(t),i=parseFloat(e.height)||0;if(e.boxSizing==="border-box")return i;const s=parseFloat(e.paddingBottom)||0,o=parseFloat(e.paddingTop)||0,n=parseFloat(e.borderBottomWidth)||0,a=parseFloat(e.borderTopWidth)||0;return i+s+o+n+a}__updateElement(t,e,i){t.__virtualizerPlaceholder&&(t.style.paddingTop="",t.style.opacity="",t.__virtualizerPlaceholder=!1),!this.__preventElementUpdates&&(t.__lastUpdatedIndex!==e||i)&&(this.updateElement(t,e),t.__lastUpdatedIndex=e)}__afterElementsUpdated(t){t.forEach(e=>{const i=e.offsetHeight;if(i===0)e.style.paddingTop=`${this.__placeholderHeight}px`,e.style.opacity="0",e.__virtualizerPlaceholder=!0,this.__placeholderClearDebouncer=Ee.debounce(this.__placeholderClearDebouncer,Ft,()=>this._resizeHandler());else{this.__elementHeightQueue.push(i),this.__elementHeightQueue.shift();const s=this.__elementHeightQueue.filter(o=>o!==void 0);this.__placeholderHeight=Math.round(s.reduce((o,n)=>o+n,0)/s.length)}}),this.__pendingScrollToIndex!==void 0&&!this.__hasPlaceholders()&&this.scrollToIndex(this.__pendingScrollToIndex)}__getIndexScrollOffset(t){const e=this.__getVisibleElements().find(i=>i.__virtualIndex===t);return e?this.scrollTarget.getBoundingClientRect().top-e.getBoundingClientRect().top:void 0}get size(){return this.__size}set size(t){if(t===this.size)return;this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.cancel(),this._debouncers&&this._debouncers._increasePoolIfNeeded&&this._debouncers._increasePoolIfNeeded.cancel(),this.__preventElementUpdates=!0;let e,i;if(t>0&&(e=this.adjustedFirstVisibleIndex,i=this.__getIndexScrollOffset(e)),this.__size=t,this._itemsChanged({path:"items"}),Et(),t>0){e=Math.min(e,t-1),this.scrollToIndex(e);const s=this.__getIndexScrollOffset(e);i!==void 0&&s!==void 0&&(this._scrollTop+=i-s)}this.__preventElementUpdates=!1,this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame(()=>this._resizeHandler()),this._resizeHandler(),Et(),this._debounce("_update",this._update,Ui)}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(t){this.scrollTarget.scrollTop=t}get items(){return{length:Math.min(this.size,Zf)}}get offsetHeight(){return this.scrollTarget.offsetHeight}get $(){return{items:this.scrollContainer}}updateViewportBoundaries(){const t=window.getComputedStyle(this.scrollTarget);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(t["padding-top"],10),this._isRTL=t.direction==="rtl",this._viewportWidth=this.elementsContainer.offsetWidth,this._viewportHeight=this.scrollTarget.offsetHeight,this._scrollPageHeight=this._viewportHeight-this._scrollLineHeight,this.grid&&this._updateGridMetrics()}setAttribute(){}_createPool(t){const e=this.createElements(t),i=document.createDocumentFragment();return e.forEach(s=>{s.style.position="absolute",i.appendChild(s),this.__resizeObserver.observe(s)}),this.elementsContainer.appendChild(i),e}_assignModels(t){const e=[];this._iterateItems((i,s)=>{const o=this._physicalItems[i];o.hidden=s>=this.size,o.hidden?delete o.__lastUpdatedIndex:(o.__virtualIndex=s+(this._vidxOffset||0),this.__updateElement(o,o.__virtualIndex),e.push(o))},t),this.__afterElementsUpdated(e)}_isClientFull(){return setTimeout(()=>{this.__clientFull=!0}),this.__clientFull||super._isClientFull()}translate3d(t,e,i,s){s.style.transform=`translateY(${e})`}toggleScrollListener(){}__getFocusedElement(t=this.__getVisibleElements()){return t.find(e=>e.contains(this.elementsContainer.getRootNode().activeElement)||e.contains(this.scrollTarget.getRootNode().activeElement))}__nextFocusableSiblingMissing(t,e){return e.indexOf(t)===e.length-1&&this.size>t.__virtualIndex+1}__previousFocusableSiblingMissing(t,e){return e.indexOf(t)===0&&t.__virtualIndex>0}__onElementFocused(t){if(!this.reorderElements)return;const e=t.detail.element;if(!e)return;const i=this.__getVisibleElements();(this.__previousFocusableSiblingMissing(e,i)||this.__nextFocusableSiblingMissing(e,i))&&this.flush();const s=this.__getVisibleElements();this.__nextFocusableSiblingMissing(e,s)?(this._scrollTop+=Math.ceil(e.getBoundingClientRect().bottom)-Math.floor(this.scrollTarget.getBoundingClientRect().bottom-1),this.flush()):this.__previousFocusableSiblingMissing(e,s)&&(this._scrollTop-=Math.ceil(this.scrollTarget.getBoundingClientRect().top+1)-Math.floor(e.getBoundingClientRect().top),this.flush())}_scrollHandler(){if(this.scrollTarget.offsetHeight===0)return;this._adjustVirtualIndexOffset(this._scrollTop-(this.__previousScrollTop||0));const t=this.scrollTarget.scrollTop-this._scrollPosition;if(super._scrollHandler(),this._physicalCount!==0){const e=t>=0,i=this._getReusables(!e);i.indexes.length&&(this._physicalTop=i.physicalTop,e?(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length):(this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length),this._resizeHandler())}t&&(this.__fixInvalidItemPositioningDebouncer=Ee.debounce(this.__fixInvalidItemPositioningDebouncer,lr.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),()=>this.__fixInvalidItemPositioning())),this.reorderElements&&(this.__scrollReorderDebouncer=Ee.debounce(this.__scrollReorderDebouncer,lr.after(this.timeouts.SCROLL_REORDER),()=>this.__reorderElements())),this.__previousScrollTop=this._scrollTop,this._scrollTop===0&&this.firstVisibleIndex!==0&&Math.abs(t)>0&&this.scrollToIndex(0)}__fixInvalidItemPositioning(){if(!this.scrollTarget.isConnected)return;const t=this._physicalTop>this._scrollTop,e=this._physicalBottom<this._scrollBottom,i=this.adjustedFirstVisibleIndex===0,s=this.adjustedLastVisibleIndex===this.size-1;if(t&&!i||e&&!s){const o=e,n=this._ratio;this._ratio=0,this._scrollPosition=this._scrollTop+(o?-1:1),this._scrollHandler(),this._ratio=n}}__onWheel(t){if(t.ctrlKey||this._hasScrolledAncestor(t.target,t.deltaX,t.deltaY))return;let e=t.deltaY;if(t.deltaMode===WheelEvent.DOM_DELTA_LINE?e*=this._scrollLineHeight:t.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(e*=this._scrollPageHeight),this._deltaYAcc||(this._deltaYAcc=0),this._wheelAnimationFrame){this._deltaYAcc+=e,t.preventDefault();return}e+=this._deltaYAcc,this._deltaYAcc=0,this._wheelAnimationFrame=!0,this.__debouncerWheelAnimationFrame=Ee.debounce(this.__debouncerWheelAnimationFrame,Ft,()=>{this._wheelAnimationFrame=!1});const i=Math.abs(t.deltaX)+Math.abs(e);this._canScroll(this.scrollTarget,t.deltaX,e)?(t.preventDefault(),this.scrollTarget.scrollTop+=e,this.scrollTarget.scrollLeft+=t.deltaX,this._hasResidualMomentum=!0,this._ignoreNewWheel=!0,this._debouncerIgnoreNewWheel=Ee.debounce(this._debouncerIgnoreNewWheel,lr.after(this.timeouts.IGNORE_WHEEL),()=>{this._ignoreNewWheel=!1})):this._hasResidualMomentum&&i<=this._previousMomentum||this._ignoreNewWheel?t.preventDefault():i>this._previousMomentum&&(this._hasResidualMomentum=!1),this._previousMomentum=i}_hasScrolledAncestor(t,e,i){if(t===this.scrollTarget||t===this.scrollTarget.getRootNode().host)return!1;if(this._canScroll(t,e,i)&&["auto","scroll"].indexOf(getComputedStyle(t).overflow)!==-1)return!0;if(t!==this&&t.parentElement)return this._hasScrolledAncestor(t.parentElement,e,i)}_canScroll(t,e,i){return i>0&&t.scrollTop<t.scrollHeight-t.offsetHeight||i<0&&t.scrollTop>0||e>0&&t.scrollLeft<t.scrollWidth-t.offsetWidth||e<0&&t.scrollLeft>0}_increasePoolIfNeeded(t){if(this._physicalCount>2&&t){const i=Math.ceil(this._optPhysicalSize/this._physicalAverage)-this._physicalCount;super._increasePoolIfNeeded(Math.max(t,Math.min(100,i)))}else super._increasePoolIfNeeded(t)}get _optPhysicalSize(){const t=super._optPhysicalSize;return t<=0||this.__hasPlaceholders()?t:t+this.__getItemHeightBuffer()}__getItemHeightBuffer(){if(this._physicalCount===0)return 0;const t=Math.ceil(this._viewportHeight*(this._maxPages-1)/2),e=Math.max(...this._physicalSizes);return e>Math.min(...this._physicalSizes)?Math.max(0,e-t):0}_getScrollLineHeight(){const t=document.createElement("div");t.style.fontSize="initial",t.style.display="none",document.body.appendChild(t);const e=window.getComputedStyle(t).fontSize;return document.body.removeChild(t),e?window.parseInt(e):void 0}__getVisibleElements(){return Array.from(this.elementsContainer.children).filter(t=>!t.hidden)}__reorderElements(){if(this.__mouseDown){this.__pendingReorder=!0;return}this.__pendingReorder=!1;const t=this._virtualStart+(this._vidxOffset||0),e=this.__getVisibleElements(),i=this.__getFocusedElement(e)||e[0];if(!i)return;const s=i.__virtualIndex-t,o=e.indexOf(i)-s;if(o>0)for(let n=0;n<o;n++)this.elementsContainer.appendChild(e[n]);else if(o<0)for(let n=e.length+o;n<e.length;n++)this.elementsContainer.insertBefore(e[n],e[0]);if(vf){const{transform:n}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout(()=>{this.scrollTarget.style.transform=n})}}_adjustVirtualIndexOffset(t){const e=this._maxVirtualIndexOffset;if(this._virtualCount>=this.size)this._vidxOffset=0;else if(this.__skipNextVirtualIndexAdjust)this.__skipNextVirtualIndexAdjust=!1;else if(Math.abs(t)>1e4){const i=this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.clientHeight);this._vidxOffset=Math.round(i*e)}else{const i=this._vidxOffset,s=si,o=100;this._scrollTop===0?(this._vidxOffset=0,i!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<s&&this._vidxOffset>0&&(this._vidxOffset-=Math.min(this._vidxOffset,o),super.scrollToIndex(this.firstVisibleIndex+(i-this._vidxOffset))),this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?(this._vidxOffset=e,i!==this._vidxOffset&&super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-s&&this._vidxOffset<e&&(this._vidxOffset+=Math.min(e-this._vidxOffset,o),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-i)))}}}Object.setPrototypeOf(va.prototype,Yf);class Xf{constructor(t){this.__adapter=new va(t)}get firstVisibleIndex(){return this.__adapter.adjustedFirstVisibleIndex}get lastVisibleIndex(){return this.__adapter.adjustedLastVisibleIndex}get size(){return this.__adapter.size}set size(t){this.__adapter.size=t}scrollToIndex(t){this.__adapter.scrollToIndex(t)}update(t=0,e=this.size-1){this.__adapter.update(t,e)}flush(){this.__adapter.flush()}}/**
|
|
1902
|
+
*/const Bp=1e5,bi=1e3;class sl{constructor({createElements:e,updateElement:t,scrollTarget:i,scrollContainer:s,elementsContainer:o,reorderElements:n}){this.isAttached=!0,this._vidxOffset=0,this.createElements=e,this.updateElement=t,this.scrollTarget=i,this.scrollContainer=s,this.elementsContainer=o||s,this.reorderElements=n,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()),getComputedStyle(this.scrollTarget).overflow==="visible"&&(this.scrollTarget.style.overflow="auto"),getComputedStyle(this.scrollContainer).position==="static"&&(this.scrollContainer.style.position="relative"),this.__resizeObserver.observe(this.scrollTarget),this.scrollTarget.addEventListener("scroll",()=>this._scrollHandler()),new ResizeObserver(([{contentRect:l}])=>{const d=l.width===0&&l.height===0;!d&&this.__scrollTargetHidden&&this.scrollTarget.scrollTop!==this._scrollPosition&&(this.scrollTarget.scrollTop=this._scrollPosition),this.__scrollTargetHidden=d}).observe(this.scrollTarget),this._scrollLineHeight=this._getScrollLineHeight(),this.scrollTarget.addEventListener("wheel",l=>this.__onWheel(l)),this.scrollTarget.addEventListener("virtualizer-element-focused",l=>this.__onElementFocused(l)),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(typeof e!="number"||isNaN(e)||this.size===0||!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<bi?(i=e,this._vidxOffset=0):(i=bi,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(){this.scrollTarget.offsetHeight!==0&&(this._resizeHandler(),Mt(),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(s=>{s.__virtualIndex>=e&&s.__virtualIndex<=t&&(this.__updateElement(s,s.__virtualIndex,!0),i.push(s))}),this.__afterElementsUpdated(i)}_updateMetrics(e){Mt();let t=0,i=0;const s=this._physicalAverageCount,o=this._physicalAverage;this._iterateItems((n,a)=>{i+=this._physicalSizes[n],this._physicalSizes[n]=Math.ceil(this.__getBorderBoxHeight(this._physicalItems[n])),t+=this._physicalSizes[n],this._physicalAverageCount+=this._physicalSizes[n]?1:0},e),this._physicalSize=this._physicalSize+t-i,this._physicalAverageCount!==s&&(this._physicalAverage=Math.round((o*s+t)/this._physicalAverageCount))}__getBorderBoxHeight(e){const t=getComputedStyle(e),i=parseFloat(t.height)||0;if(t.boxSizing==="border-box")return i;const s=parseFloat(t.paddingBottom)||0,o=parseFloat(t.paddingTop)||0,n=parseFloat(t.borderBottomWidth)||0,a=parseFloat(t.borderTopWidth)||0;return i+s+o+n+a}__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(t=>{const i=t.offsetHeight;if(i===0)t.style.paddingTop=`${this.__placeholderHeight}px`,t.style.opacity="0",t.__virtualizerPlaceholder=!0,this.__placeholderClearDebouncer=Pe.debounce(this.__placeholderClearDebouncer,Wt,()=>this._resizeHandler());else{this.__elementHeightQueue.push(i),this.__elementHeightQueue.shift();const s=this.__elementHeightQueue.filter(o=>o!==void 0);this.__placeholderHeight=Math.round(s.reduce((o,n)=>o+n,0)/s.length)}}),this.__pendingScrollToIndex!==void 0&&!this.__hasPlaceholders()&&this.scrollToIndex(this.__pendingScrollToIndex)}__getIndexScrollOffset(e){const t=this.__getVisibleElements().find(i=>i.__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;this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.cancel(),this._debouncers&&this._debouncers._increasePoolIfNeeded&&this._debouncers._increasePoolIfNeeded.cancel(),this.__preventElementUpdates=!0;let t,i;if(e>0&&(t=this.adjustedFirstVisibleIndex,i=this.__getIndexScrollOffset(t)),this.__size=e,this._itemsChanged({path:"items"}),Mt(),e>0){t=Math.min(t,e-1),this.scrollToIndex(t);const s=this.__getIndexScrollOffset(t);i!==void 0&&s!==void 0&&(this._scrollTop+=i-s)}this.__preventElementUpdates=!1,this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame(()=>this._resizeHandler()),this._resizeHandler(),Mt(),this._debounce("_update",this._update,is)}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(e){this.scrollTarget.scrollTop=e}get items(){return{length:Math.min(this.size,Bp)}}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=e.direction==="rtl",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(s=>{s.style.position="absolute",i.appendChild(s),this.__resizeObserver.observe(s)}),this.elementsContainer.appendChild(i),t}_assignModels(e){const t=[];this._iterateItems((i,s)=>{const o=this._physicalItems[i];o.hidden=s>=this.size,o.hidden?delete o.__lastUpdatedIndex:(o.__virtualIndex=s+(this._vidxOffset||0),this.__updateElement(o,o.__virtualIndex),t.push(o))},e),this.__afterElementsUpdated(t)}_isClientFull(){return setTimeout(()=>{this.__clientFull=!0}),this.__clientFull||super._isClientFull()}translate3d(e,t,i,s){s.style.transform=`translateY(${t})`}toggleScrollListener(){}__getFocusedElement(e=this.__getVisibleElements()){return e.find(t=>t.contains(this.elementsContainer.getRootNode().activeElement)||t.contains(this.scrollTarget.getRootNode().activeElement))}__nextFocusableSiblingMissing(e,t){return t.indexOf(e)===t.length-1&&this.size>e.__virtualIndex+1}__previousFocusableSiblingMissing(e,t){return t.indexOf(e)===0&&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 s=this.__getVisibleElements();this.__nextFocusableSiblingMissing(t,s)?(this._scrollTop+=Math.ceil(t.getBoundingClientRect().bottom)-Math.floor(this.scrollTarget.getBoundingClientRect().bottom-1),this.flush()):this.__previousFocusableSiblingMissing(t,s)&&(this._scrollTop-=Math.ceil(this.scrollTarget.getBoundingClientRect().top+1)-Math.floor(t.getBoundingClientRect().top),this.flush())}_scrollHandler(){if(this.scrollTarget.offsetHeight===0)return;this._adjustVirtualIndexOffset(this._scrollTop-(this.__previousScrollTop||0));const e=this.scrollTarget.scrollTop-this._scrollPosition;if(super._scrollHandler(),this._physicalCount!==0){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=Pe.debounce(this.__fixInvalidItemPositioningDebouncer,gr.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),()=>this.__fixInvalidItemPositioning())),this.reorderElements&&(this.__scrollReorderDebouncer=Pe.debounce(this.__scrollReorderDebouncer,gr.after(this.timeouts.SCROLL_REORDER),()=>this.__reorderElements())),this.__previousScrollTop=this._scrollTop,this._scrollTop===0&&this.firstVisibleIndex!==0&&Math.abs(e)>0&&this.scrollToIndex(0)}__fixInvalidItemPositioning(){if(!this.scrollTarget.isConnected)return;const e=this._physicalTop>this._scrollTop,t=this._physicalBottom<this._scrollBottom,i=this.adjustedFirstVisibleIndex===0,s=this.adjustedLastVisibleIndex===this.size-1;if(e&&!i||t&&!s){const o=t,n=this._ratio;this._ratio=0,this._scrollPosition=this._scrollTop+(o?-1:1),this._scrollHandler(),this._ratio=n}}__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){this._deltaYAcc+=t,e.preventDefault();return}t+=this._deltaYAcc,this._deltaYAcc=0,this._wheelAnimationFrame=!0,this.__debouncerWheelAnimationFrame=Pe.debounce(this.__debouncerWheelAnimationFrame,Wt,()=>{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=Pe.debounce(this._debouncerIgnoreNewWheel,gr.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){if(e===this.scrollTarget||e===this.scrollTarget.getRootNode().host)return!1;if(this._canScroll(e,t,i)&&["auto","scroll"].indexOf(getComputedStyle(e).overflow)!==-1)return!0;if(e!==this&&e.parentElement)return this._hasScrolledAncestor(e.parentElement,t,i)}_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 i=Math.ceil(this._optPhysicalSize/this._physicalAverage)-this._physicalCount;super._increasePoolIfNeeded(Math.max(e,Math.min(100,i)))}else super._increasePoolIfNeeded(e)}get _optPhysicalSize(){const e=super._optPhysicalSize;return e<=0||this.__hasPlaceholders()?e:e+this.__getItemHeightBuffer()}__getItemHeightBuffer(){if(this._physicalCount===0)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){this.__pendingReorder=!0;return}this.__pendingReorder=!1;const e=this._virtualStart+(this._vidxOffset||0),t=this.__getVisibleElements(),i=this.__getFocusedElement(t)||t[0];if(!i)return;const s=i.__virtualIndex-e,o=t.indexOf(i)-s;if(o>0)for(let n=0;n<o;n++)this.elementsContainer.appendChild(t[n]);else if(o<0)for(let n=t.length+o;n<t.length;n++)this.elementsContainer.insertBefore(t[n],t[0]);if(op){const{transform:n}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout(()=>{this.scrollTarget.style.transform=n})}}_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){const i=this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.clientHeight);this._vidxOffset=Math.round(i*t)}else{const i=this._vidxOffset,s=bi,o=100;this._scrollTop===0?(this._vidxOffset=0,i!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<s&&this._vidxOffset>0&&(this._vidxOffset-=Math.min(this._vidxOffset,o),super.scrollToIndex(this.firstVisibleIndex+(i-this._vidxOffset))),this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?(this._vidxOffset=t,i!==this._vidxOffset&&super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-s&&this._vidxOffset<t&&(this._vidxOffset+=Math.min(t-this._vidxOffset,o),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-i)))}}}Object.setPrototypeOf(sl.prototype,Lp);class Rp{constructor(e){this.__adapter=new sl(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()}}/**
|
|
1900
1903
|
* @license
|
|
1901
1904
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
1902
1905
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1903
|
-
*/const
|
|
1906
|
+
*/const bt=class{toString(){return""}};/**
|
|
1904
1907
|
* @license
|
|
1905
1908
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
1906
1909
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1907
|
-
*/const
|
|
1910
|
+
*/const Dp=r=>class extends r{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(this._cachedViewportTotalPaddingBottom===void 0){const t=window.getComputedStyle(this.$.selector);this._cachedViewportTotalPaddingBottom=[t.paddingBottom,t.borderBottomWidth].map(i=>parseInt(i,10)).reduce((i,s)=>i+s)}return this._cachedViewportTotalPaddingBottom}ready(){super.ready(),this.setAttribute("role","listbox"),this.id=`${this.localName}-${el()}`,this.__hostTagName=this.constructor.is.replace("-scroller",""),this.addEventListener("click",t=>t.stopPropagation()),this.__patchWheelOverScrolling()}requestContentUpdate(){this.__virtualizer&&(this.items&&(this.__virtualizer.size=this.items.length),this.opened&&this.__virtualizer.update())}scrollIntoView(t){if(!this.__virtualizer||!(this.opened&&t>=0))return;const i=this._visibleItemsCount();let s=t;t>this.__virtualizer.lastVisibleIndex-1?(this.__virtualizer.scrollToIndex(t),s=t-i+1):t>this.__virtualizer.firstVisibleIndex&&(s=this.__virtualizer.firstVisibleIndex),this.__virtualizer.scrollToIndex(Math.max(0,s));const o=[...this.children].find(d=>!d.hidden&&d.index===this.__virtualizer.lastVisibleIndex);if(!o||t!==o.index)return;const n=o.getBoundingClientRect(),a=this.getBoundingClientRect(),l=n.bottom-a.bottom+this._viewportTotalPaddingBottom;l>0&&(this.scrollTop+=l)}_isItemSelected(t,i,s){return t instanceof bt?!1:s&&t!==void 0&&i!==void 0?kr(s,t)===kr(s,i):t===i}__initVirtualizer(){this.__virtualizer=new Rp({createElements:this.__createElements.bind(this),updateElement:this._updateElement.bind(this),elementsContainer:this,scrollTarget:this,scrollContainer:this.$.selector,reorderElements:!0})}__itemsChanged(t){t&&this.__virtualizer&&this.requestContentUpdate()}__loadingChanged(){this.requestContentUpdate()}__openedChanged(t){t&&(this.__virtualizer||this.__initVirtualizer(),this.requestContentUpdate())}__selectedItemChanged(){this.requestContentUpdate()}__itemClassNameGeneratorChanged(t,i){(t||i)&&this.requestContentUpdate()}__focusedIndexChanged(t,i){t!==i&&this.requestContentUpdate(),t>=0&&!this.loading&&this.scrollIntoView(t)}__rendererChanged(t,i){(t||i)&&this.requestContentUpdate()}__createElements(t){return[...Array(t)].map(()=>{const i=document.createElement(`${this.__hostTagName}-item`);return i.addEventListener("click",this.__boundOnItemClick),i.tabIndex="-1",i.style.width="100%",i})}_updateElement(t,i){const s=this.items[i],o=this.focusedIndex,n=this._isItemSelected(s,this.selectedItem,this.itemIdPath);t.setProperties({item:s,index:i,label:this.getItemLabel(s),selected:n,renderer:this.renderer,focused:!this.loading&&o===i}),typeof this.itemClassNameGenerator=="function"?t.className=this.itemClassNameGenerator(s):t.className!==""&&(t.className=""),t.performUpdate&&!t.hasUpdated&&t.performUpdate(),t.id=`${this.__hostTagName}-item-${i}`,t.setAttribute("role",i!==void 0?"option":!1),t.setAttribute("aria-selected",n.toString()),t.setAttribute("aria-posinset",i+1),t.setAttribute("aria-setsize",this.items.length),this.theme?t.setAttribute("theme",this.theme):t.removeAttribute("theme"),s instanceof bt&&this.__requestItemByIndex(i)}__onItemClick(t){this.dispatchEvent(new CustomEvent("selection-changed",{detail:{item:t.currentTarget.item}}))}__patchWheelOverScrolling(){this.$.selector.addEventListener("wheel",t=>{const i=this.scrollTop===0,s=this.scrollHeight-this.scrollTop-this.clientHeight<=1;(i&&t.deltaY<0||s&&t.deltaY>0)&&t.preventDefault()})}__requestItemByIndex(t){requestAnimationFrame(()=>{this.dispatchEvent(new CustomEvent("index-requested",{detail:{index:t}}))})}_visibleItemsCount(){return this.__virtualizer.scrollToIndex(this.__virtualizer.firstVisibleIndex),this.__virtualizer.size>0?this.__virtualizer.lastVisibleIndex-this.__virtualizer.firstVisibleIndex+1:0}};/**
|
|
1908
1911
|
* @license
|
|
1909
1912
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
1910
1913
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1911
|
-
*/class
|
|
1914
|
+
*/class Hp extends Dp(Kt){static get is(){return"vaadin-combo-box-scroller"}static get template(){return Jt`
|
|
1912
1915
|
<style>
|
|
1913
1916
|
:host {
|
|
1914
1917
|
display: block;
|
|
@@ -1935,7 +1938,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1935
1938
|
<div id="selector">
|
|
1936
1939
|
<slot></slot>
|
|
1937
1940
|
</div>
|
|
1938
|
-
`}}
|
|
1941
|
+
`}}wt(Hp);const zp=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,br=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function Fp(){function r(){return!0}return ol(r)}function Vp(){try{return Up()?!0:$p()?br?!jp():!Fp():!1}catch(r){return!1}}function Up(){return localStorage.getItem("vaadin.developmentmode.force")}function $p(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function jp(){return!!(br&&Object.keys(br).map(e=>br[e]).filter(e=>e.productionMode).length>0)}function ol(r,e){if(typeof r!="function")return;const t=zp.exec(r.toString());if(t)try{r=new Function(t[1])}catch(i){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",i)}return r(e)}window.Vaadin=window.Vaadin||{};const Xo=function(r,e){if(window.Vaadin.developmentMode)return ol(r,e)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=Vp());function Gp(){/*! vaadin-dev-mode:start
|
|
1939
1942
|
(function () {
|
|
1940
1943
|
'use strict';
|
|
1941
1944
|
|
|
@@ -2413,128 +2416,128 @@ try {
|
|
|
2413
2416
|
|
|
2414
2417
|
}());
|
|
2415
2418
|
|
|
2416
|
-
vaadin-dev-mode:end **/}const
|
|
2419
|
+
vaadin-dev-mode:end **/}const qp=function(){if(typeof Xo=="function")return Xo(Gp)};/**
|
|
2417
2420
|
* @license
|
|
2418
2421
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2419
2422
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2420
|
-
*/window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){
|
|
2423
|
+
*/window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){qp()};let vi;const Jo=new Set,Wp=r=>class extends jr(r){static finalize(){super.finalize();const{is:t}=this;t&&!Jo.has(t)&&(window.Vaadin.registrations.push(this),Jo.add(t),window.Vaadin.developmentModeCallback&&(vi=Pe.debounce(vi,rl,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),il(vi)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
|
|
2421
2424
|
* @license
|
|
2422
2425
|
* Copyright (c) 2023 - 2024 Vaadin Ltd.
|
|
2423
2426
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2424
|
-
*/class
|
|
2427
|
+
*/class Yp{constructor(e,t){this.slot=e,this.callback=t,this._storedNodes=[],this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){this.slot.addEventListener("slotchange",this._boundSchedule),this._connected=!0}disconnect(){this.slot.removeEventListener("slotchange",this._boundSchedule),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask(()=>{this.flush()}))}flush(){this._connected&&(this._scheduled=!1,this._processNodes())}_processNodes(){const e=this.slot.assignedNodes({flatten:!0});let t=[];const i=[],s=[];e.length&&(t=e.filter(o=>!this._storedNodes.includes(o))),this._storedNodes.length&&this._storedNodes.forEach((o,n)=>{const a=e.indexOf(o);a===-1?i.push(o):a!==n&&s.push(o)}),(t.length||i.length||s.length)&&this.callback({addedNodes:t,currentNodes:e,movedNodes:s,removedNodes:i}),this._storedNodes=e}}/**
|
|
2425
2428
|
* @license
|
|
2426
2429
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2427
2430
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2428
|
-
*/class
|
|
2431
|
+
*/class Is extends EventTarget{static generateId(e,t="default"){return`${t}-${e.localName}-${el()}`}constructor(e,t,i,s={}){super();const{initializer:o,multiple:n,observe:a,useUniqueId:l,uniqueIdPrefix:d}=s;this.host=e,this.slotName=t,this.tagName=i,this.observe=typeof a=="boolean"?a:!0,this.multiple=typeof n=="boolean"?n:!1,this.slotInitializer=o,n&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(e,d||t))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let e=this.getSlotChild();e?(this.node=e,this.initAddedNode(e)):(e=this.attachDefaultNode(),this.initNode(e))}initMultiple(){const e=this.getSlotChildren();if(e.length===0){const t=this.attachDefaultNode();t&&(this.nodes=[t],this.initNode(t))}else this.nodes=e,e.forEach(t=>{this.initAddedNode(t)})}attachDefaultNode(){const{host:e,slotName:t,tagName:i}=this;let s=this.defaultNode;return!s&&i&&(s=document.createElement(i),s instanceof Element&&(t!==""&&s.setAttribute("slot",t),this.defaultNode=s)),s&&(this.node=s,e.appendChild(s)),s}getSlotChildren(){const{slotName:e}=this;return Array.from(this.host.childNodes).filter(t=>t.nodeType===Node.ELEMENT_NODE&&t.slot===e||t.nodeType===Node.TEXT_NODE&&t.textContent.trim()&&e==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(e){const{slotInitializer:t}=this;t&&t(e,this.host)}initCustomNode(e){}teardownNode(e){}initAddedNode(e){e!==this.defaultNode&&(this.initCustomNode(e),this.initNode(e))}observeSlot(){const{slotName:e}=this,t=e===""?"slot:not([name])":`slot[name=${e}]`,i=this.host.shadowRoot.querySelector(t);this.__slotObserver=new Yp(i,({addedNodes:s,removedNodes:o})=>{const n=this.multiple?this.nodes:[this.node],a=s.filter(l=>!Ep(l)&&!n.includes(l));o.length&&(this.nodes=n.filter(l=>!o.includes(l)),o.forEach(l=>{this.teardownNode(l)})),a&&a.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...n,...a].filter(l=>l!==this.defaultNode),a.forEach(l=>{this.initAddedNode(l)})):(this.node&&this.node.remove(),this.node=a[0],this.initAddedNode(this.node)))})}}/**
|
|
2429
2432
|
* @license
|
|
2430
2433
|
* Copyright (c) 2022 - 2024 Vaadin Ltd.
|
|
2431
2434
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2432
|
-
*/class
|
|
2435
|
+
*/class Zp extends Is{constructor(e){super(e,"tooltip"),this.setTarget(e)}initCustomNode(e){e.target=this.target,this.ariaTarget!==void 0&&(e.ariaTarget=this.ariaTarget),this.context!==void 0&&(e.context=this.context),this.manual!==void 0&&(e.manual=this.manual),this.opened!==void 0&&(e.opened=this.opened),this.position!==void 0&&(e._position=this.position),this.shouldShow!==void 0&&(e.shouldShow=this.shouldShow),this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(e){this.ariaTarget=e;const t=this.node;t&&(t.ariaTarget=e)}setContext(e){this.context=e;const t=this.node;t&&(t.context=e)}setManual(e){this.manual=e;const t=this.node;t&&(t.manual=e)}setOpened(e){this.opened=e;const t=this.node;t&&(t.opened=e)}setPosition(e){this.position=e;const t=this.node;t&&(t._position=e)}setShouldShow(e){this.shouldShow=e;const t=this.node;t&&(t.shouldShow=e)}setTarget(e){this.target=e;const t=this.node;t&&(t.target=e)}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}/**
|
|
2433
2436
|
* @license
|
|
2434
2437
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2435
2438
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2436
|
-
*/const
|
|
2439
|
+
*/const nl=ne(r=>class extends r{get _keyboardActive(){return As()}ready(){this.addEventListener("focusin",t=>{this._shouldSetFocus(t)&&this._setFocused(!0)}),this.addEventListener("focusout",t=>{this._shouldRemoveFocus(t)&&this._setFocused(!1)}),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(t){this.toggleAttribute("focused",t),this.toggleAttribute("focus-ring",t&&this._keyboardActive)}_shouldSetFocus(t){return!0}_shouldRemoveFocus(t){return!0}});/**
|
|
2437
2440
|
* @license
|
|
2438
2441
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2439
2442
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2440
|
-
*/const
|
|
2443
|
+
*/const al=ne(r=>class extends r{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(t){this._setAriaDisabled(t)}_setAriaDisabled(t){t?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}});/**
|
|
2441
2444
|
* @license
|
|
2442
2445
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2443
2446
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2444
|
-
*/const
|
|
2447
|
+
*/const Xp=r=>class extends al(r){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(t,i){super._disabledChanged(t,i),t?(this.tabindex!==void 0&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):i&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(t){this.disabled&&t!==-1&&(this._lastTabIndex=t,this.tabindex=-1)}};/**
|
|
2445
2448
|
* @license
|
|
2446
2449
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2447
2450
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2448
|
-
*/const
|
|
2451
|
+
*/const Jp=ne(r=>class extends nl(Xp(r)){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(t,i){t?(t.disabled=this.disabled,this._addFocusListeners(t),this.__forwardTabIndex(this.tabindex)):i&&this._removeFocusListeners(i)}_addFocusListeners(t){t.addEventListener("blur",this._boundOnBlur),t.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(t){t.removeEventListener("blur",this._boundOnBlur),t.removeEventListener("focus",this._boundOnFocus)}_onFocus(t){t.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(t){t.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(t){return t.target===this.focusElement}_shouldRemoveFocus(t){return t.target===this.focusElement}_disabledChanged(t,i){super._disabledChanged(t,i),this.focusElement&&(this.focusElement.disabled=t),t&&this.blur()}_tabindexChanged(t){this.__forwardTabIndex(t)}__forwardTabIndex(t){t!==void 0&&this.focusElement&&(this.focusElement.tabIndex=t,t!==-1&&(this.tabindex=void 0)),this.disabled&&t&&(t!==-1&&(this._lastTabIndex=t),this.tabindex=void 0)}});/**
|
|
2449
2452
|
* @license
|
|
2450
2453
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2451
2454
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2452
|
-
*/const
|
|
2455
|
+
*/const Os=ne(r=>class extends r{ready(){super.ready(),this.addEventListener("keydown",t=>{this._onKeyDown(t)}),this.addEventListener("keyup",t=>{this._onKeyUp(t)})}_onKeyDown(t){switch(t.key){case"Enter":this._onEnter(t);break;case"Escape":this._onEscape(t);break}}_onKeyUp(t){}_onEnter(t){}_onEscape(t){}});/**
|
|
2453
2456
|
* @license
|
|
2454
2457
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2455
2458
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2456
|
-
*/const
|
|
2459
|
+
*/const yi=new WeakMap;function Kp(r){return yi.has(r)||yi.set(r,new Set),yi.get(r)}function Qp(r,e){const t=document.createElement("style");t.textContent=r,e===document?document.head.appendChild(t):e.insertBefore(t,e.firstChild)}const em=ne(r=>class extends r{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const t=this.getRootNode(),i=Kp(t);this.slotStyles.forEach(s=>{i.has(s)||(Qp(s,t),i.add(s))})}});/**
|
|
2457
2460
|
* @license
|
|
2458
2461
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2459
2462
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2460
|
-
*/const
|
|
2463
|
+
*/const Ns=ne(r=>class extends r{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 this.value!=null&&this.value!==""}get _inputElementValueProperty(){return"value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(t){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=t)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(t){t.addEventListener("input",this._boundOnInput),t.addEventListener("change",this._boundOnChange)}_removeInputListeners(t){t.removeEventListener("input",this._boundOnInput),t.removeEventListener("change",this._boundOnChange)}_forwardInputValue(t){this.inputElement&&(this._inputElementValue=t!=null?t:"")}_inputElementChanged(t,i){t?this._addInputListeners(t):i&&this._removeInputListeners(i)}_hasInputValueChanged(t,i){(t||i)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(t){this._setHasInputValue(t),this._onInput(t)}_onInput(t){const i=t.composedPath()[0];this.__userInput=t.isTrusted,this.value=i.value,this.__userInput=!1}_onChange(t){}_toggleHasValue(t){this.toggleAttribute("has-value",t)}_valueChanged(t,i){this._toggleHasValue(this._hasValue),!(t===""&&i===void 0)&&(this.__userInput||this._forwardInputValue(t))}_setHasInputValue(t){const i=t.composedPath()[0];this._hasInputValue=i.value.length>0}});/**
|
|
2461
2464
|
* @license
|
|
2462
2465
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2463
2466
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2464
|
-
*/const
|
|
2467
|
+
*/const tm=r=>class extends Ns(Os(r)){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",t=>this._onClearButtonMouseDown(t)),this.clearElement.addEventListener("click",t=>this._onClearButtonClick(t)))}_onClearButtonClick(t){t.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(t){t.preventDefault(),Ki||this.inputElement.focus()}_onEscape(t){super._onEscape(t),this.clearButtonVisible&&this.value&&!this.readonly&&(t.stopPropagation(),this._onClearAction())}_onClearAction(){this._inputElementValue="",this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}};/**
|
|
2465
2468
|
* @license
|
|
2466
2469
|
* Copyright (c) 2023 - 2024 Vaadin Ltd.
|
|
2467
2470
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2468
|
-
*/const
|
|
2471
|
+
*/const wi=new Map;function ks(r){return wi.has(r)||wi.set(r,new WeakMap),wi.get(r)}function ll(r,e){r&&r.removeAttribute(e)}function dl(r,e){if(!r||!e)return;const t=ks(e);if(t.has(r))return;const i=Ts(r.getAttribute(e));t.set(r,new Set(i))}function rm(r,e){if(!r||!e)return;const t=ks(e),i=t.get(r);!i||i.size===0?r.removeAttribute(e):Qa(r,e,Wr(i)),t.delete(r)}function xi(r,e,t={newId:null,oldId:null,fromUser:!1}){if(!r||!e)return;const{newId:i,oldId:s,fromUser:o}=t,n=ks(e),a=n.get(r);if(!o&&a){s&&a.delete(s),i&&a.add(i);return}o&&(a?i||n.delete(r):dl(r,e),ll(r,e)),Pp(r,e,s);const l=i||Wr(a);l&&Qa(r,e,l)}function im(r,e){dl(r,e),ll(r,e)}/**
|
|
2469
2472
|
* @license
|
|
2470
2473
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2471
2474
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2472
|
-
*/class
|
|
2475
|
+
*/class sm{constructor(e){this.host=e,this.__required=!1}setTarget(e){this.__target=e,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId),this.__labelIdFromUser!=null&&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){const i=t?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(e,i,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?(im(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",e)):this.__label&&(rm(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(e,t,i){xi(this.__target,"aria-labelledby",{newId:e,oldId:t,fromUser:i})}__setErrorIdToAriaAttribute(e,t){xi(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setHelperIdToAriaAttribute(e,t){xi(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")))}}/**
|
|
2473
2476
|
* @license
|
|
2474
2477
|
* Copyright (c) 2022 - 2024 Vaadin Ltd.
|
|
2475
2478
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2476
|
-
*/const
|
|
2479
|
+
*/const Ce=document.createElement("div");Ce.style.position="fixed";Ce.style.clip="rect(0px, 0px, 0px, 0px)";Ce.setAttribute("aria-live","polite");document.body.appendChild(Ce);let ur;function om(r,e={}){const t=e.mode||"polite",i=e.timeout===void 0?150:e.timeout;t==="alert"?(Ce.removeAttribute("aria-live"),Ce.removeAttribute("role"),ur=Pe.debounce(ur,Wt,()=>{Ce.setAttribute("role","alert")})):(ur&&ur.cancel(),Ce.removeAttribute("role"),Ce.setAttribute("aria-live",t)),Ce.textContent="",setTimeout(()=>{Ce.textContent=r},i)}/**
|
|
2477
2480
|
* @license
|
|
2478
2481
|
* Copyright (c) 2022 - 2024 Vaadin Ltd.
|
|
2479
2482
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2480
|
-
*/class
|
|
2483
|
+
*/class Ms extends Is{constructor(e,t,i,s={}){super(e,t,i,rr(et({},s),{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(t=>{t.forEach(i=>{const s=i.target,o=s===this.node;i.type==="attributes"?o&&this.__updateNodeId(s):(o||s.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()!=="":!1}__notifyChange(e){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(e),node:e}}))}__updateNodeId(e){const t=!this.nodes||e===this.nodes[0];e.nodeType===Node.ELEMENT_NODE&&(!this.multiple||t)&&!e.id&&(e.id=this.defaultId)}}/**
|
|
2481
2484
|
* @license
|
|
2482
2485
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2483
2486
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2484
|
-
*/class
|
|
2487
|
+
*/class nm extends Ms{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,s=!!(i&&t&&t.trim()!=="");e&&(e.textContent=s?t:"",e.hidden=!s,s&&om(t,{mode:"assertive"})),super.updateDefaultNode(e)}}/**
|
|
2485
2488
|
* @license
|
|
2486
2489
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2487
2490
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2488
|
-
*/class
|
|
2491
|
+
*/class am extends Ms{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 t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(e){e&&(e.textContent=this.helperText),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}/**
|
|
2489
2492
|
* @license
|
|
2490
2493
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2491
2494
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2492
|
-
*/class
|
|
2495
|
+
*/class lm extends Ms{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 t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(e){e&&(e.textContent=this.label),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}/**
|
|
2493
2496
|
* @license
|
|
2494
2497
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2495
2498
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2496
|
-
*/const
|
|
2499
|
+
*/const dm=ne(r=>class extends qr(r){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new lm(this),this._labelController.addEventListener("slot-content-changed",t=>{this.toggleAttribute("has-label",t.detail.hasContent)})}get _labelId(){const t=this._labelNode;return t&&t.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(t){this._labelController.setLabel(t)}});/**
|
|
2497
2500
|
* @license
|
|
2498
2501
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2499
2502
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2500
|
-
*/const
|
|
2503
|
+
*/const Ls=ne(r=>class extends r{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const t=this.checkValidity();return this._setInvalid(!t),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:t}})),t}checkValidity(){return!this.required||!!this.value}_setInvalid(t){this._shouldSetInvalid(t)&&(this.invalid=t)}_shouldSetInvalid(t){return!0}});/**
|
|
2501
2504
|
* @license
|
|
2502
2505
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2503
2506
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2504
|
-
*/const
|
|
2507
|
+
*/const um=r=>class extends Ls(dm(qr(r))){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 sm(this),this._helperController=new am(this),this._errorController=new nm(this),this._errorController.addEventListener("slot-content-changed",t=>{this.toggleAttribute("has-error-message",t.detail.hasContent)}),this._labelController.addEventListener("slot-content-changed",t=>{const{hasContent:i,node:s}=t.detail;this.__labelChanged(i,s)}),this._helperController.addEventListener("slot-content-changed",t=>{const{hasContent:i,node:s}=t.detail;this.toggleAttribute("has-helper",i),this.__helperChanged(i,s)})}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(t,i){t?this._fieldAriaController.setHelperId(i.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(t){this._fieldAriaController.setAriaLabel(t)}_accessibleNameRefChanged(t){this._fieldAriaController.setLabelId(t,!0)}__labelChanged(t,i){t?this._fieldAriaController.setLabelId(i.id):this._fieldAriaController.setLabelId(null)}_errorMessageChanged(t){this._errorController.setErrorMessage(t)}_helperTextChanged(t){this._helperController.setHelperText(t)}_ariaTargetChanged(t){t&&this._fieldAriaController.setTarget(t)}_requiredChanged(t){this._fieldAriaController.setRequired(t)}_invalidChanged(t){this._errorController.setInvalid(t),setTimeout(()=>{if(t){const i=this._errorNode;this._fieldAriaController.setErrorId(i&&i.id)}else this._fieldAriaController.setErrorId(null)})}};/**
|
|
2505
2508
|
* @license
|
|
2506
2509
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2507
2510
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2508
|
-
*/const
|
|
2511
|
+
*/const hm=ne(r=>class extends r{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(t){t&&(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(t=>{this._delegateAttribute(t,this[t])})}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(t=>{this._delegateProperty(t,this[t])})}_delegateAttrsChanged(...t){this.constructor.delegateAttrs.forEach((i,s)=>{this._delegateAttribute(i,t[s])})}_delegatePropsChanged(...t){this.constructor.delegateProps.forEach((i,s)=>{this._delegateProperty(i,t[s])})}_delegateAttribute(t,i){this.stateTarget&&(t==="invalid"&&this._delegateAttribute("aria-invalid",i?"true":!1),typeof i=="boolean"?this.stateTarget.toggleAttribute(t,i):i?this.stateTarget.setAttribute(t,i):this.stateTarget.removeAttribute(t))}_delegateProperty(t,i){this.stateTarget&&(this.stateTarget[t]=i)}});/**
|
|
2509
2512
|
* @license
|
|
2510
2513
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2511
2514
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2512
|
-
*/const
|
|
2515
|
+
*/const ul=ne(r=>class extends hm(Ls(Ns(r))){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(t=>this[t]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(t){return t.some(i=>this.__isValidConstraint(i))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(t,...i){if(!t)return;const s=this._hasValidConstraints(i),o=this.__previousHasConstraints&&!s;(this._hasValue||this.invalid)&&s?this.validate():o&&this._setInvalid(!1),this.__previousHasConstraints=s}_onChange(t){t.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:t},bubbles:t.bubbles,cancelable:t.cancelable}))}__isValidConstraint(t){return!!t||t===0}});/**
|
|
2513
2516
|
* @license
|
|
2514
2517
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2515
2518
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2516
|
-
*/const
|
|
2519
|
+
*/const cm=r=>class extends em(Jp(ul(um(tm(Os(r)))))){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[`
|
|
2517
2520
|
:is(input[slot='input'], textarea[slot='textarea'])::placeholder {
|
|
2518
2521
|
font: inherit;
|
|
2519
2522
|
color: inherit;
|
|
2520
2523
|
}
|
|
2521
|
-
`]}_onFocus(
|
|
2524
|
+
`]}_onFocus(t){super._onFocus(t),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(t){t.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:t},bubbles:t.bubbles,cancelable:t.cancelable}))}_addInputListeners(t){super._addInputListeners(t),t.addEventListener("paste",this._boundOnPaste),t.addEventListener("drop",this._boundOnDrop),t.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(t){super._removeInputListeners(t),t.removeEventListener("paste",this._boundOnPaste),t.removeEventListener("drop",this._boundOnDrop),t.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(t){super._onKeyDown(t),this.allowedCharPattern&&!this.__shouldAcceptKey(t)&&t.target===this.inputElement&&(t.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=Pe.debounce(this._preventInputDebouncer,gr.after(200),()=>{this.removeAttribute("input-prevented")})}__shouldAcceptKey(t){return t.metaKey||t.ctrlKey||!t.key||t.key.length!==1||this.__allowedCharRegExp.test(t.key)}_onPaste(t){if(this.allowedCharPattern){const i=t.clipboardData.getData("text");this.__allowedTextRegExp.test(i)||(t.preventDefault(),this._markInputPrevented())}}_onDrop(t){if(this.allowedCharPattern){const i=t.dataTransfer.getData("text");this.__allowedTextRegExp.test(i)||(t.preventDefault(),this._markInputPrevented())}}_onBeforeInput(t){this.allowedCharPattern&&t.data&&!this.__allowedTextRegExp.test(t.data)&&(t.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(t){if(t)try{this.__allowedCharRegExp=new RegExp(`^${t}$`,"u"),this.__allowedTextRegExp=new RegExp(`^${t}*$`,"u")}catch(i){console.error(i)}}};/**
|
|
2522
2525
|
* @license
|
|
2523
2526
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2524
2527
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2525
|
-
*/class
|
|
2528
|
+
*/class fm extends Is{constructor(e,t,i={}){const{uniqueIdPrefix:s}=i;super(e,"input","input",{initializer:(o,n)=>{n.value&&(o.value=n.value),n.type&&o.setAttribute("type",n.type),o.id=this.defaultId,typeof t=="function"&&t(o)},useUniqueId:!0,uniqueIdPrefix:s})}}/**
|
|
2526
2529
|
* @license
|
|
2527
2530
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2528
2531
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2529
|
-
*/class
|
|
2532
|
+
*/class pm{constructor(e,t){this.input=e,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),t.addEventListener("slot-content-changed",i=>{this.__initLabel(i.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)}}/**
|
|
2530
2533
|
* @license
|
|
2531
2534
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2532
2535
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2533
|
-
*/const
|
|
2536
|
+
*/const mm=r=>class extends ul(r){static get properties(){return{pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"pattern"]}static get constraints(){return[...super.constraints,"pattern"]}};/**
|
|
2534
2537
|
* @license
|
|
2535
2538
|
* Copyright (c) 2021 - 2024 Vaadin Ltd..
|
|
2536
2539
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2537
|
-
*/const
|
|
2540
|
+
*/const _m=R`
|
|
2538
2541
|
[part='clear-button'] {
|
|
2539
2542
|
display: none;
|
|
2540
2543
|
cursor: default;
|
|
@@ -2551,7 +2554,7 @@ try {
|
|
|
2551
2554
|
* @license
|
|
2552
2555
|
* Copyright (c) 2021 - 2024 Vaadin Ltd..
|
|
2553
2556
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2554
|
-
*/const
|
|
2557
|
+
*/const gm=R`
|
|
2555
2558
|
:host {
|
|
2556
2559
|
display: inline-flex;
|
|
2557
2560
|
outline: none;
|
|
@@ -2589,7 +2592,7 @@ try {
|
|
|
2589
2592
|
* @license
|
|
2590
2593
|
* Copyright (c) 2021 - 2024 Vaadin Ltd..
|
|
2591
2594
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2592
|
-
*/const
|
|
2595
|
+
*/const bm=R`
|
|
2593
2596
|
[class$='container'] {
|
|
2594
2597
|
display: flex;
|
|
2595
2598
|
flex-direction: column;
|
|
@@ -2601,43 +2604,43 @@ try {
|
|
|
2601
2604
|
* @license
|
|
2602
2605
|
* Copyright (c) 2021 - 2024 Vaadin Ltd..
|
|
2603
2606
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2604
|
-
*/const
|
|
2607
|
+
*/const vm=[gm,bm,_m];/**
|
|
2605
2608
|
* @license
|
|
2606
2609
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2607
2610
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2608
|
-
*/function
|
|
2611
|
+
*/function Mr(r,e,t=0){let i=e;for(const s of r.subCaches){const o=s.parentCacheIndex;if(i<=o)break;if(i<=o+s.flatSize)return Mr(s,i-o-1,t+1);i-=s.flatSize}return{cache:r,item:r.items[i],index:i,page:Math.floor(i/r.pageSize),level:t}}function hl({getItemId:r},e,t,i=0,s=0){for(let o=0;o<e.items.length;o++){const n=e.items[o];if(n&&r(n)===r(t))return{cache:e,level:i,item:n,index:o,page:Math.floor(o/e.pageSize),subCache:e.getSubCache(o),flatIndex:s+e.getFlatIndex(o)}}for(const o of e.subCaches){const n=s+e.getFlatIndex(o.parentCacheIndex),a=hl({getItemId:r},o,t,i+1,n+1);if(a)return a}}function cl(r,[e,...t],i=0){e===1/0&&(e=r.size-1);const s=r.getFlatIndex(e),o=r.getSubCache(e);return o&&o.flatSize>0&&t.length?cl(o,t,i+s+1):i+s}/**
|
|
2609
2612
|
* @license
|
|
2610
2613
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2611
2614
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2612
|
-
*/class
|
|
2615
|
+
*/class Bs{constructor(e,t,i,s,o){F(this,"context");F(this,"pageSize");F(this,"items",[]);F(this,"pendingRequests",{});F(this,"__subCacheByIndex",{});F(this,"__size",0);F(this,"__flatSize",0);this.context=e,this.pageSize=t,this.size=i,this.parentCache=s,this.parentCacheIndex=o,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?!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 i;if(this.__size!==e){if(this.__size=e,this.context.placeholder!==void 0){this.items.length=e||0;for(let s=0;s<e;s++)(i=this.items)[s]||(i[s]=this.context.placeholder)}Object.keys(this.pendingRequests).forEach(s=>{parseInt(s)*this.pageSize>=this.size&&delete this.pendingRequests[s]})}}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((s,o)=>{const n=i+o;(this.size===void 0||n<this.size)&&(this.items[n]=s)})}getSubCache(e){return this.__subCacheByIndex[e]}removeSubCache(e){delete this.__subCacheByIndex[e]}removeSubCaches(){this.__subCacheByIndex={}}createSubCache(e){const t=new Bs(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((i,s)=>{const o=s.parentCacheIndex;return t>o?i+s.flatSize:i},t)}getItemForIndex(e){console.warn("<vaadin-grid> The `getItemForIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{item:t}=Mr(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}=Mr(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}}/**
|
|
2613
2616
|
* @license
|
|
2614
2617
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2615
2618
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2616
|
-
*/class
|
|
2619
|
+
*/class ym extends EventTarget{constructor(t,{size:i,pageSize:s,isExpanded:o,getItemId:n,isPlaceholder:a,placeholder:l,dataProvider:d,dataProviderParams:u}){super();F(this,"host");F(this,"dataProvider");F(this,"dataProviderParams");F(this,"pageSize");F(this,"isExpanded");F(this,"getItemId");F(this,"rootCache");F(this,"placeholder");F(this,"isPlaceholder");this.host=t,this.pageSize=s,this.getItemId=n,this.isExpanded=o,this.placeholder=l,this.isPlaceholder=a,this.dataProvider=d,this.dataProviderParams=u,this.rootCache=this.__createRootCache(i)}get flatSize(){return this.rootCache.flatSize}get __cacheContext(){return{isExpanded:this.isExpanded,placeholder:this.placeholder,__controller:this}}isLoading(){return this.rootCache.isLoading}setPageSize(t){this.pageSize=t,this.clearCache()}setDataProvider(t){this.dataProvider=t,this.clearCache()}recalculateFlatSize(){this.rootCache.recalculateFlatSize()}clearCache(){this.rootCache=this.__createRootCache(this.rootCache.size)}getFlatIndexContext(t){return Mr(this.rootCache,t)}getItemContext(t){return hl({getItemId:this.getItemId},this.rootCache,t)}getFlatIndexByPath(t){return cl(this.rootCache,t)}ensureFlatIndexLoaded(t){const{cache:i,page:s,item:o}=this.getFlatIndexContext(t);this.__isItemLoaded(o)||this.__loadCachePage(i,s)}ensureFlatIndexHierarchy(t){const{cache:i,item:s,index:o}=this.getFlatIndexContext(t);if(this.__isItemLoaded(s)&&this.isExpanded(s)&&!i.getSubCache(o)){const n=i.createSubCache(o);this.__loadCachePage(n,0)}}loadFirstPage(){this.__loadCachePage(this.rootCache,0)}__createRootCache(t){return new Bs(this.__cacheContext,this.pageSize,t)}__loadCachePage(t,i){if(!this.dataProvider||t.pendingRequests[i])return;let s={page:i,pageSize:this.pageSize,parentItem:t.parentItem};this.dataProviderParams&&(s=et(et({},s),this.dataProviderParams()));const o=(n,a)=>{t.pendingRequests[i]===o&&(a!==void 0?t.size=a:s.parentItem&&(t.size=n.length),t.setPage(i,n),this.recalculateFlatSize(),this.dispatchEvent(new CustomEvent("page-received")),delete t.pendingRequests[i],this.dispatchEvent(new CustomEvent("page-loaded")))};t.pendingRequests[i]=o,this.dispatchEvent(new CustomEvent("page-requested")),this.dataProvider(s,o)}__isItemLoaded(t){return this.isPlaceholder?!this.isPlaceholder(t):this.placeholder?t!==this.placeholder:!!t}}/**
|
|
2617
2620
|
* @license
|
|
2618
2621
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
2619
2622
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2620
|
-
*/const
|
|
2623
|
+
*/const wm=r=>class extends r{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 ym(this,{placeholder:new bt,isPlaceholder:t=>t instanceof bt,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",t=>{if(!this._shouldFetchData())return;const i=t.detail.index;i!==void 0&&this.__dataProviderController.ensureFlatIndexLoaded(i)}),this.__dataProviderInitialized=!0,this.dataProvider&&this.__synchronizeControllerState()}_dataProviderFilterChanged(t){if(this.__previousDataProviderFilter===void 0&&t===""){this.__previousDataProviderFilter=t;return}this.__previousDataProviderFilter!==t&&(this.__previousDataProviderFilter=t,this.__keepOverlayOpened=!0,this.size=void 0,this.clearCache(),this.__keepOverlayOpened=!1)}_shouldFetchData(){return this.dataProvider?this.opened||this.filter&&this.filter.length:!1}_ensureFirstPage(t){!this._shouldFetchData()||!t||(this._forceNextRequest||this.size===void 0?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this.size>0&&this.__dataProviderController.ensureFlatIndexLoaded(0))}__onDataProviderPageRequested(){this.loading=!0}__onDataProviderPageLoaded(){const{rootCache:t}=this.__dataProviderController;t.items=[...t.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(t){const{rootCache:i}=this.__dataProviderController;i.size!==t&&(i.size=t,i.items=[...i.items],this.__synchronizeControllerState())}_filteredItemsChanged(t){if(super._filteredItemsChanged(t),this.dataProvider&&t){const{rootCache:i}=this.__dataProviderController;i.items!==t&&(i.items=t,this.__synchronizeControllerState())}}__synchronizeControllerState(){if(this.__dataProviderInitialized&&this.dataProvider){const{rootCache:t}=this.__dataProviderController;this.size=t.size,this.filteredItems=t.items,this.loading=this.__dataProviderController.isLoading()}}_pageSizeChanged(t,i){if(Math.floor(t)!==t||t<1)throw this.pageSize=i,new Error("`pageSize` value must be an integer > 0");this.__dataProviderController.setPageSize(t),this.clearCache()}_dataProviderChanged(t,i){this._ensureItemsOrDataProvider(()=>{this.dataProvider=i}),this.__dataProviderController.setDataProvider(t),this.clearCache()}_ensureItemsOrDataProvider(t){if(this.items!==void 0&&this.dataProvider!==void 0)throw t(),new Error("Using `items` and `dataProvider` together is not supported")}_warnDataProviderValue(t,i){if(t&&i!==""&&(this.selectedItem===void 0||this.selectedItem===null)){const s=this.__getItemIndexByValue(this.filteredItems,i);(s<0||!this._getItemLabel(this.filteredItems[s]))&&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`")}}};/**
|
|
2621
2624
|
* @license
|
|
2622
2625
|
* Copyright (c) 2023 - 2024 Vaadin Ltd.
|
|
2623
2626
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2624
|
-
*/const
|
|
2627
|
+
*/const xm=r=>class extends r{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(t,i){if(!i||t===void 0)return;const{classList:s}=i;if(this.__initialClasses||(this.__initialClasses=new Set(s)),Array.isArray(this.__previousClasses)){const n=this.__previousClasses.filter(a=>!this.__initialClasses.has(a));n.length>0&&s.remove(...n)}const o=typeof t=="string"?t.split(" ").filter(Boolean):[];o.length>0&&s.add(...o),this.__previousClasses=o}};/**
|
|
2625
2628
|
* @license
|
|
2626
2629
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2627
2630
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2628
|
-
*/function
|
|
2631
|
+
*/function Pm(r){if(window.Vaadin&&window.Vaadin.templateRendererCallback){window.Vaadin.templateRendererCallback(r);return}r.querySelector("template")&&console.warn(`WARNING: <template> inside <${r.localName}> is no longer supported. Import @vaadin/polymer-legacy-adapter/template-renderer.js to enable compatibility.`)}/**
|
|
2629
2632
|
* @license
|
|
2630
2633
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2631
2634
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2632
|
-
*/class
|
|
2635
|
+
*/class Em{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")}}/**
|
|
2633
2636
|
* @license
|
|
2634
2637
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
2635
2638
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2636
|
-
*/function Ao(r){return r!=null}function To(r,t){return r.findIndex(e=>e instanceof dt?!1:t(e))}const zp=r=>class extends Rp(kr(cs(wa(ls(ds(xa(r))))))){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 i=this._nativeInput;i&&(i.autocomplete="off",i.autocapitalize="off",i.setAttribute("role","combobox"),i.setAttribute("aria-autocomplete","list"),i.setAttribute("aria-expanded",!!this.opened),i.setAttribute("spellcheck","false"),i.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),Dp(this),this.addController(new Hp(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,i,s){super._propertiesChanged(e,i,s),i.filter!==void 0&&this._filterChanged(i.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",i=>i.preventDefault()),e.addEventListener("opened-changed",i=>{this._overlayOpened=i.detail.value}),this._overlayElement=e}_initScroller(e){const i=document.createElement(`${this._tagNamePrefix}-scroller`);i.owner=e||this,i.getItemLabel=this._getItemLabel.bind(this),i.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged);const s=this._overlayElement;s.renderer=o=>{o.innerHTML||o.appendChild(i)},s.requestContentUpdate(),this._scroller=i}_updateScroller(e,i,s,o,n,a,l,d,h,u){if(e&&(s&&(e.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),e.setProperties({items:s?i:[],opened:s,loading:o,selectedItem:n,itemIdPath:a,focusedIndex:l,renderer:d,theme:h,itemClassNameGenerator:u}),e.performUpdate&&!e.hasUpdated))try{e.performUpdate()}catch(f){}}_openedOrItemsChanged(e,i,s,o){this._overlayOpened=e&&(o||s||!!(i&&i.length))}_overlayOpenedChanged(e,i){e?(this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-opened",{bubbles:!0,composed:!0})),this._onOpened()):i&&this._dropdownItems&&this._dropdownItems.length&&(this.close(),this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-closed",{bubbles:!0,composed:!0})))}_focusedIndexChanged(e,i){i!==void 0&&this._updateActiveDescendant(e)}_isInputFocused(){return this.inputElement&&ua(this.inputElement)}_updateActiveDescendant(e){const i=this._nativeInput;if(!i)return;const s=this._getItemElements().find(o=>o.index===e);s?i.setAttribute("aria-activedescendant",s.id):i.removeAttribute("aria-activedescendant")}_openedChanged(e,i){if(i===void 0)return;e?!this._isInputFocused()&&!Hi&&this.inputElement&&this.inputElement.focus():this._onClosed();const s=this._nativeInput;s&&(s.setAttribute("aria-expanded",!!e),e?s.setAttribute("aria-controls",this._scroller.id):s.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),e.key==="ArrowDown"?(this._onArrowDown(),e.preventDefault()):e.key==="ArrowUp"&&(this._onArrowUp(),e.preventDefault())}_getItemLabel(e){let i=e&&this.itemLabelPath?vr(this.itemLabelPath,e):void 0;return i==null&&(i=e?e.toString():""),i}_getItemValue(e){let i=e&&this.itemValuePath?vr(this.itemValuePath,e):void 0;return i===void 0&&(i=e?e.toString():""),i}_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(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this._inputElementValue=this._getItemLabel(e),this._markAllSelectionRange()}}_setSelectionRange(e,i){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(e,i)}_markAllSelectionRange(){this._inputElementValue!==void 0&&this._setSelectionRange(0,this._inputElementValue.length)}_clearSelectionRange(){if(this._inputElementValue!==void 0){const e=this._inputElementValue?this._inputElementValue.length:0;this._setSelectionRange(e,e)}}_closeOrCommit(){!this.opened&&!this.loading?this._commitValue():this.close()}_onEnter(e){if(!this._hasValidInputValue()){e.preventDefault(),e.stopPropagation();return}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",i=>i.preventDefault()),e.addEventListener("click",()=>{Hi&&!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===""||this._inputElementValue===void 0)this.selectedItem=null,this.allowCustomValue&&(this.value="");else{const e=[this.selectedItem,...this._dropdownItems||[]],i=e[this.__getItemIndexByLabel(e,this._inputElementValue)];if(this.allowCustomValue&&!i){const s=this._inputElementValue;this._lastCustomValue=s;const o=new CustomEvent("custom-value-set",{detail:s,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(o),o.defaultPrevented||(this.value=s)}else!this.allowCustomValue&&!this.opened&&i?this.value=this._getItemValue(i):this._revertInputValueToValue()}this._detectAndDispatchChange(),this._clearSelectionRange(),this._clearFilter()}_onInput(e){const i=this._inputElementValue,s={};this.filter===i?this._filterChanged(this.filter):s.filter=i,!this.opened&&!this._isClearButton(e)&&!this.autoOpenDisabled&&(s.opened=!0),this.setProperties(s)}_onChange(e){e.stopPropagation()}_itemLabelPathChanged(e){typeof e!="string"&&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.allowCustomValue&&!this.selectedItem?this._inputElementValue=this.value:this._inputElementValue=this._getItemLabel(this.selectedItem)}_selectedItemChanged(e){if(e==null)this.filteredItems&&(this.allowCustomValue||(this.value=""),this._toggleHasValue(this._hasValue),this._inputElementValue=this.value);else{const i=this._getItemValue(e);if(this.value!==i&&(this.value=i,this.value!==i))return;this._toggleHasValue(!0),this._inputElementValue=this._getItemLabel(e)}}_valueChanged(e,i){e===""&&i===void 0||(Ao(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,i){this._ensureItemsOrDataProvider(()=>{this.items=i}),e?this.filteredItems=e.slice(0):i&&(this.filteredItems=null)}_filteredItemsChanged(e){this._setDropdownItems(e)}_filterItems(e,i){return e&&e.filter(o=>(i=i?i.toString().toLowerCase():"",this._getItemLabel(o).toString().toLowerCase().indexOf(i)>-1))}_selectItemForValue(e){const i=this.__getItemIndexByValue(this.filteredItems,e),s=this.selectedItem;i>=0?this.selectedItem=this.filteredItems[i]:this.dataProvider&&this.selectedItem===void 0?this.selectedItem=void 0:this.selectedItem=null,this.selectedItem===null&&s===null&&this._selectedItemChanged(this.selectedItem)}_setDropdownItems(e){const i=this._dropdownItems;this._dropdownItems=e;const s=i?i[this._focusedIndex]:null,o=this.__getItemIndexByValue(e,this.value);(this.selectedItem===null||this.selectedItem===void 0)&&o>=0&&(this.selectedItem=e[o]);const n=this.__getItemIndexByValue(e,this._getItemValue(s));n>-1?this._focusedIndex=n:this._focusedIndex=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,i){return!e||!Ao(i)?-1:To(e,s=>this._getItemValue(s)===i)}__getItemIndexByLabel(e,i){return!e||!i?-1:To(e,s=>this._getItemLabel(s).toString().toLowerCase()===i.toString().toLowerCase())}_overlaySelectedItemChanged(e){e.stopPropagation(),!(e.detail.item instanceof dt)&&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){delete this._lastCustomValue;return}if(os()){this._closeOrCommit();return}this.opened?this._overlayOpened||this.close():this._commitValue()}}_shouldRemoveFocus(e){return e.relatedTarget&&e.relatedTarget.localName===`${this._tagNamePrefix}-item`?!1:e.relatedTarget===this._overlayElement?(e.composedPath()[0].focus(),!1):!0}_onTouchend(e){!this.clearElement||e.composedPath()[0]!==this.clearElement||(e.preventDefault(),this._onClearAction())}};/**
|
|
2639
|
+
*/function Ko(r){return r!=null}function Qo(r,e){return r.findIndex(t=>t instanceof bt?!1:e(t))}const Cm=r=>class extends xm(qr(Ls(nl(Os(Ns(al(r))))))){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(t){super._inputElementChanged(t);const i=this._nativeInput;i&&(i.autocomplete="off",i.autocapitalize="off",i.setAttribute("role","combobox"),i.setAttribute("aria-autocomplete","list"),i.setAttribute("aria-expanded",!!this.opened),i.setAttribute("spellcheck","false"),i.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 t=()=>{requestAnimationFrame(()=>{this._overlayElement.bringToFront()})};this.addEventListener("mousedown",t),this.addEventListener("touchstart",t),Pm(this),this.addController(new Em(this))}disconnectedCallback(){super.disconnectedCallback(),this.close()}requestContentUpdate(){this._scroller&&(this._scroller.requestContentUpdate(),this._getItemElements().forEach(t=>{t.requestContentUpdate()}))}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.opened=!1}_propertiesChanged(t,i,s){super._propertiesChanged(t,i,s),i.filter!==void 0&&this._filterChanged(i.filter)}updated(t){super.updated(t),t.has("filter")&&this._filterChanged(this.filter)}_initOverlay(){const t=this.$.overlay;t._comboBox=this,t.addEventListener("touchend",this._boundOnOverlayTouchAction),t.addEventListener("touchmove",this._boundOnOverlayTouchAction),t.addEventListener("mousedown",i=>i.preventDefault()),t.addEventListener("opened-changed",i=>{this._overlayOpened=i.detail.value}),this._overlayElement=t}_initScroller(t){const i=document.createElement(`${this._tagNamePrefix}-scroller`);i.owner=t||this,i.getItemLabel=this._getItemLabel.bind(this),i.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged);const s=this._overlayElement;s.renderer=o=>{o.innerHTML||o.appendChild(i)},s.requestContentUpdate(),this._scroller=i}_updateScroller(t,i,s,o,n,a,l,d,u,h){if(t&&(s&&(t.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),t.setProperties({items:s?i:[],opened:s,loading:o,selectedItem:n,itemIdPath:a,focusedIndex:l,renderer:d,theme:u,itemClassNameGenerator:h}),t.performUpdate&&!t.hasUpdated))try{t.performUpdate()}catch(f){}}_openedOrItemsChanged(t,i,s,o){this._overlayOpened=t&&(o||s||!!(i&&i.length))}_overlayOpenedChanged(t,i){t?(this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-opened",{bubbles:!0,composed:!0})),this._onOpened()):i&&this._dropdownItems&&this._dropdownItems.length&&(this.close(),this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-closed",{bubbles:!0,composed:!0})))}_focusedIndexChanged(t,i){i!==void 0&&this._updateActiveDescendant(t)}_isInputFocused(){return this.inputElement&&Xa(this.inputElement)}_updateActiveDescendant(t){const i=this._nativeInput;if(!i)return;const s=this._getItemElements().find(o=>o.index===t);s?i.setAttribute("aria-activedescendant",s.id):i.removeAttribute("aria-activedescendant")}_openedChanged(t,i){if(i===void 0)return;t?!this._isInputFocused()&&!Ki&&this.inputElement&&this.inputElement.focus():this._onClosed();const s=this._nativeInput;s&&(s.setAttribute("aria-expanded",!!t),t?s.setAttribute("aria-controls",this._scroller.id):s.removeAttribute("aria-controls"))}_onOverlayTouchAction(){this._closeOnBlurIsPrevented=!0,this.inputElement.blur(),this._closeOnBlurIsPrevented=!1}_isClearButton(t){return t.composedPath()[0]===this.clearElement}__onClearButtonMouseDown(t){t.preventDefault(),this.inputElement.focus()}_onClearButtonClick(t){t.preventDefault(),this._onClearAction(),this.opened&&this.requestContentUpdate()}_onToggleButtonClick(t){t.preventDefault(),this.opened?this.close():this.open()}_onHostClick(t){this.autoOpenDisabled||(t.preventDefault(),this.open())}_onClick(t){this._isClearButton(t)?this._onClearButtonClick(t):t.composedPath().includes(this._toggleElement)?this._onToggleButtonClick(t):this._onHostClick(t)}_onKeyDown(t){super._onKeyDown(t),t.key==="ArrowDown"?(this._onArrowDown(),t.preventDefault()):t.key==="ArrowUp"&&(this._onArrowUp(),t.preventDefault())}_getItemLabel(t){let i=t&&this.itemLabelPath?kr(this.itemLabelPath,t):void 0;return i==null&&(i=t?t.toString():""),i}_getItemValue(t){let i=t&&this.itemValuePath?kr(this.itemValuePath,t):void 0;return i===void 0&&(i=t?t.toString():""),i}_onArrowDown(){if(this.opened){const t=this._dropdownItems;t&&(this._focusedIndex=Math.min(t.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 t=this._dropdownItems;t&&(this._focusedIndex=t.length-1)}this._prefillFocusedItemLabel()}else this.open()}_prefillFocusedItemLabel(){if(this._focusedIndex>-1){const t=this._dropdownItems[this._focusedIndex];this._inputElementValue=this._getItemLabel(t),this._markAllSelectionRange()}}_setSelectionRange(t,i){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(t,i)}_markAllSelectionRange(){this._inputElementValue!==void 0&&this._setSelectionRange(0,this._inputElementValue.length)}_clearSelectionRange(){if(this._inputElementValue!==void 0){const t=this._inputElementValue?this._inputElementValue.length:0;this._setSelectionRange(t,t)}}_closeOrCommit(){!this.opened&&!this.loading?this._commitValue():this.close()}_onEnter(t){if(!this._hasValidInputValue()){t.preventDefault(),t.stopPropagation();return}this.opened&&(t.preventDefault(),t.stopPropagation()),this._closeOrCommit()}_hasValidInputValue(){const t=this._focusedIndex<0&&this._inputElementValue!==""&&this._getItemLabel(this.selectedItem)!==this._inputElementValue;return this.allowCustomValue||!t}_onEscape(t){this.autoOpenDisabled&&(this.opened||this.value!==this._inputElementValue&&this._inputElementValue.length>0)?(t.stopPropagation(),this._focusedIndex=-1,this.cancel()):this.opened?(t.stopPropagation(),this._focusedIndex>-1?(this._focusedIndex=-1,this._revertInputValue()):this.cancel()):this.clearButtonVisible&&this.value&&!this.readonly&&(t.stopPropagation(),this._onClearAction())}_toggleElementChanged(t){t&&(t.addEventListener("mousedown",i=>i.preventDefault()),t.addEventListener("click",()=>{Ki&&!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 t=this._dropdownItems[this._focusedIndex];this.selectedItem!==t&&(this.selectedItem=t),this._inputElementValue=this._getItemLabel(this.selectedItem),this._focusedIndex=-1}else if(this._inputElementValue===""||this._inputElementValue===void 0)this.selectedItem=null,this.allowCustomValue&&(this.value="");else{const t=[this.selectedItem,...this._dropdownItems||[]],i=t[this.__getItemIndexByLabel(t,this._inputElementValue)];if(this.allowCustomValue&&!i){const s=this._inputElementValue;this._lastCustomValue=s;const o=new CustomEvent("custom-value-set",{detail:s,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(o),o.defaultPrevented||(this.value=s)}else!this.allowCustomValue&&!this.opened&&i?this.value=this._getItemValue(i):this._revertInputValueToValue()}this._detectAndDispatchChange(),this._clearSelectionRange(),this._clearFilter()}_onInput(t){const i=this._inputElementValue,s={};this.filter===i?this._filterChanged(this.filter):s.filter=i,!this.opened&&!this._isClearButton(t)&&!this.autoOpenDisabled&&(s.opened=!0),this.setProperties(s)}_onChange(t){t.stopPropagation()}_itemLabelPathChanged(t){typeof t!="string"&&console.error("You should set itemLabelPath to a valid string")}_filterChanged(t){this._scrollIntoView(0),this._focusedIndex=-1,this.items?this.filteredItems=this._filterItems(this.items,t):this._filteredItemsChanged(this.filteredItems)}_revertInputValue(){this.filter!==""?this._inputElementValue=this.filter:this._revertInputValueToValue(),this._clearSelectionRange()}_revertInputValueToValue(){this.allowCustomValue&&!this.selectedItem?this._inputElementValue=this.value:this._inputElementValue=this._getItemLabel(this.selectedItem)}_selectedItemChanged(t){if(t==null)this.filteredItems&&(this.allowCustomValue||(this.value=""),this._toggleHasValue(this._hasValue),this._inputElementValue=this.value);else{const i=this._getItemValue(t);if(this.value!==i&&(this.value=i,this.value!==i))return;this._toggleHasValue(!0),this._inputElementValue=this._getItemLabel(t)}}_valueChanged(t,i){t===""&&i===void 0||(Ko(t)?(this._getItemValue(this.selectedItem)!==t&&this._selectItemForValue(t),!this.selectedItem&&this.allowCustomValue&&(this._inputElementValue=t),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(t,i){this._ensureItemsOrDataProvider(()=>{this.items=i}),t?this.filteredItems=t.slice(0):i&&(this.filteredItems=null)}_filteredItemsChanged(t){this._setDropdownItems(t)}_filterItems(t,i){return t&&t.filter(o=>(i=i?i.toString().toLowerCase():"",this._getItemLabel(o).toString().toLowerCase().indexOf(i)>-1))}_selectItemForValue(t){const i=this.__getItemIndexByValue(this.filteredItems,t),s=this.selectedItem;i>=0?this.selectedItem=this.filteredItems[i]:this.dataProvider&&this.selectedItem===void 0?this.selectedItem=void 0:this.selectedItem=null,this.selectedItem===null&&s===null&&this._selectedItemChanged(this.selectedItem)}_setDropdownItems(t){const i=this._dropdownItems;this._dropdownItems=t;const s=i?i[this._focusedIndex]:null,o=this.__getItemIndexByValue(t,this.value);(this.selectedItem===null||this.selectedItem===void 0)&&o>=0&&(this.selectedItem=t[o]);const n=this.__getItemIndexByValue(t,this._getItemValue(s));n>-1?this._focusedIndex=n:this._focusedIndex=this.__getItemIndexByLabel(t,this.filter)}_getItemElements(){return Array.from(this._scroller.querySelectorAll(`${this._tagNamePrefix}-item`))}_scrollIntoView(t){this._scroller&&this._scroller.scrollIntoView(t)}__getItemIndexByValue(t,i){return!t||!Ko(i)?-1:Qo(t,s=>this._getItemValue(s)===i)}__getItemIndexByLabel(t,i){return!t||!i?-1:Qo(t,s=>this._getItemLabel(s).toString().toLowerCase()===i.toString().toLowerCase())}_overlaySelectedItemChanged(t){t.stopPropagation(),!(t.detail.item instanceof bt)&&this.opened&&(this._focusedIndex=this.filteredItems.indexOf(t.detail.item),this.close())}_setFocused(t){if(super._setFocused(t),!t&&!this.readonly&&!this._closeOnBlurIsPrevented){if(!this.opened&&this.allowCustomValue&&this._inputElementValue===this._lastCustomValue){delete this._lastCustomValue;return}if(As()){this._closeOrCommit();return}this.opened?this._overlayOpened||this.close():this._commitValue()}}_shouldRemoveFocus(t){return t.relatedTarget&&t.relatedTarget.localName===`${this._tagNamePrefix}-item`?!1:t.relatedTarget===this._overlayElement?(t.composedPath()[0].focus(),!1):!0}_onTouchend(t){!this.clearElement||t.composedPath()[0]!==this.clearElement||(t.preventDefault(),this._onClearAction())}};/**
|
|
2637
2640
|
* @license
|
|
2638
2641
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
2639
2642
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2640
|
-
*/
|
|
2643
|
+
*/de("vaadin-combo-box",vm,{moduleId:"vaadin-combo-box-styles"});class Sm extends wm(Cm(mm(cm(Ur(Wp(Kt)))))){static get is(){return"vaadin-combo-box"}static get template(){return Jt`
|
|
2641
2644
|
<style>
|
|
2642
2645
|
:host([opened]) {
|
|
2643
2646
|
pointer-events: auto;
|
|
@@ -2682,7 +2685,7 @@ try {
|
|
|
2682
2685
|
></vaadin-combo-box-overlay>
|
|
2683
2686
|
|
|
2684
2687
|
<slot name="tooltip"></slot>
|
|
2685
|
-
`}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new
|
|
2688
|
+
`}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new fm(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new pm(this.inputElement,this._labelController)),this._tooltipController=new Zp(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)}}wt(Sm);function Am(r){Pn(r,"svelte-6fsdbz",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}input,select{font-family:inherit}.GeneralPlayerForgotPasswordForm{height:auto}.GeneralPlayerForgotPasswordForm .ModalLoaderWrapper{display:flex;height:100%;align-items:center}.GeneralPlayerForgotPasswordForm .ModalLoader{display:block;width:80px;height:80px;margin:0 auto}.GeneralPlayerForgotPasswordForm .ModalLoader:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22b04e));border-color:var(--emw--registration-color-primary, var(--emw--color-primary, #22b04e)) transparent var(--emw--registration-color-primary, var(--emw--color-primary, #22b04e)) transparent;animation:Loader 1.2s linear infinite}.backButtonForgotPassword{display:inline-flex;color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));height:24px;line-height:24px;border-radius:var(--emw--border-radius-medium, 15px);border:none;background:transparent;padding:0;text-transform:uppercase;font-size:var(--emw--font-size-medium, 16px);cursor:pointer;margin-bottom:30px}.backButtonForgotPassword svg{width:24px;height:24px;margin-right:20px;fill:var(--emw--registration-color-primary, var(--emw--color-primary, #22b04e))}.FormContainer{width:100%}.FormForgotPassword{background:var(--emw--registration-color-bg, var(--emw--color-gray-50, #f9f8f8))}.FormHeaderTitle{color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));font-size:var(--emw--font-size-large, 20px);font-weight:var(--emw--font-weight-light, 300);padding:0;text-transform:uppercase;margin:0}.FormHeaderSubtitle{color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));font-weight:var(--emw--font-weight-light, 300);padding-top:14px}.FormRequired{color:var(--emw--color-error, #ed0909)}.ForgotPasswordError{color:var(--emw--color-error, #ed0909);font-size:10px;line-height:10px;margin-top:10px}.FormContent{padding-top:20px}.NewPasswordSuccess{display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:space-around;align-items:center}.NewPasswordSuccess h4{margin-top:10px;color:var(--emw--color-valid, var(--emw--color-valid, #48952a));font-size:28px;font-weight:500;padding:0;text-transform:uppercase}.NewPasswordSuccess p{text-align:center;font-size:var(--emw--font-size-medium, 16px);color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));text-transform:initial;padding:15px 0;margin-bottom:110px}.TogglePasswordVisibility{height:19px;position:absolute;right:8px;top:34px;cursor:pointer}.TogglePasswordVisibility.InvalidToggle path,.TogglePasswordVisibility.InvalidToggle circle,.TogglePasswordVisibility.InvalidToggle rect{fill:var(--emw--registration-color-primary, var(--emw--color-primary, #22b04e))}.TogglePasswordVisibility path,.TogglePasswordVisibility circle,.TogglePasswordVisibility rect{fill:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444))}.ResetPasswordByEmail,.NewPassword,.ConfirmPassword{color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));display:flex;flex-direction:column;padding-bottom:20px;position:relative}.ResetPasswordByEmail .dobFormatError,.NewPassword .dobFormatError,.ConfirmPassword .dobFormatError{padding:20px;width:100%;text-align:center;color:var(--emw--color-error, #ed0909)}.ResetPasswordByEmail .DobContainer,.NewPassword .DobContainer,.ConfirmPassword .DobContainer{display:flex;flex-direction:row;justify-content:space-between;align-items:center}.ResetPasswordByEmail .DobContainer .datePickerBox,.NewPassword .DobContainer .datePickerBox,.ConfirmPassword .DobContainer .datePickerBox{width:100%;padding:10px}.ResetPasswordByEmail .DobContainer .datePickerBox input,.NewPassword .DobContainer .datePickerBox input,.ConfirmPassword .DobContainer .datePickerBox input{border:0px;background:transparent}.ResetPasswordByEmail .DobContainer.Mobile,.NewPassword .DobContainer.Mobile,.ConfirmPassword .DobContainer.Mobile{flex-direction:column}.ResetPasswordByEmail label,.NewPassword label,.ConfirmPassword label{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-light, 300);padding-bottom:5px}.ResetPasswordByEmail input,.NewPassword input,.ConfirmPassword input{width:100%;height:44px;border-radius:var(--emw--border-radius-medium, 15px);border:1px solid var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));padding:5px;font-size:var(--emw--font-size-small, 14px);box-sizing:border-box;padding:5px 15px;font-size:var(--emw--font-size-medium, 16px);line-height:18px}.ResetPasswordByEmail input:focus,.NewPassword input:focus,.ConfirmPassword input:focus{border:2px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22b04e));outline:none}.ResetPasswordByEmail.InvalidField input,.NewPassword.InvalidField input,.ConfirmPassword.InvalidField input{border:1px solid var(--emw--color-error, #ed0909);background:var(--emw--color-pale, #fbecf4);color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444))}.resetPasswordButton{background:var(--emw--color-primary, #0e5924);border-radius:var(--emw--button-border-radius, 10px);color:var(--emw--button-typography, var(--emw--button-text-color, #ffffff));font-family:var(--emw--button-typography);width:100%;height:60px;padding:0;text-transform:uppercase;font-size:var(--emw--font-size-medium, 16px);cursor:pointer}.resetPasswordButton[disabled]{background:var(--emw--color-primary, #0e5924);opacity:0.4;cursor:not-allowed}.ResetPasswordByEmail,.NewPassword,.ConfirmPassword{padding-bottom:30px}.ResetPasswordByEmail .InvalidInput{bottom:-3px}.InvalidInput{color:var(--emw--color-error, #ed0909);font-size:10px;position:absolute;bottom:10px;line-height:10px}.ErrorMessage{margin:0 0 15px 0;font-size:var(--emw--font-size-x-small, 12px);color:var(--emw--color-error, #ed0909)}.FormForgotPassword{padding:50px}.FormMobileContainer{height:100%;background-color:var(--emw--color-gray-50, #f9f8f8)}.FormMobileContainer .resetPasswordButton,.FormMobileContainer .ResetPasswordByEmail input{max-width:unset;border-radius:var(--emw--border-radius-medium, 15px)}.FormMobileContainer{height:100%}.FormMobileContainer .FormForgotPassword{padding:40px 20px}.FormMobileContainer .resetPasswordButton,.FormMobileContainer .UserContainer input{max-width:unset}input::-ms-reveal,input::-ms-clear{display:none}@keyframes Loader{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}')}function en(r,e,t){const i=r.slice();return i[100]=e[t],i}function tn(r){let e,t;return{c(){e=x("script"),Ws(e.src,t="//www.google.com/recaptcha/api.js?render="+r[1])||c(e,"src",t),e.async=!0,e.defer=!0},m(i,s){L(i,e,s)},p(i,s){s[0]&2&&!Ws(e.src,t="//www.google.com/recaptcha/api.js?render="+i[1])&&c(e,"src",t)},d(i){i&&I(e)}}}function Tm(r){let e,t,i,s=r[17]&&rn(r);function o(l,d){if(l[18])return Mm;if(l[20])return km;if(l[22])return Nm;if(l[23])return Om}let n=o(r),a=n&&n(r);return{c(){e=x("div"),s&&s.c(),t=H(),a&&a.c(),c(e,"class",i="FormContainer "+(r[24]?"FormMobileContainer":""))},m(l,d){L(l,e,d),s&&s.m(e,null),p(e,t),a&&a.m(e,null)},p(l,d){l[17]?s?s.p(l,d):(s=rn(l),s.c(),s.m(e,t)):s&&(s.d(1),s=null),n===(n=o(l))&&a?a.p(l,d):(a&&a.d(1),a=n&&n(l),a&&(a.c(),a.m(e,null))),d[0]&16777216&&i!==(i="FormContainer "+(l[24]?"FormMobileContainer":""))&&c(e,"class",i)},d(l){l&&I(e),s&&s.d(),a&&a.d()}}}function Im(r){let e;return{c(){e=x("div"),e.innerHTML='<div class="ModalLoader"></div>',c(e,"class","ModalLoaderWrapper")},m(t,i){L(t,e,i)},p:le,d(t){t&&I(e)}}}function rn(r){let e;return{c(){e=x("general-player-forgot-password-sms-form"),A(e,"clientstyling",r[5]),A(e,"clientstylingurl",r[6]),A(e,"endpoint",r[0]),A(e,"mbsource",r[4]),A(e,"translationurl",r[7]),A(e,"smscodelength",r[12]),A(e,"smscodemaxattempts",r[11]),A(e,"phoneregex",r[9]),A(e,"phoneprefixeditable",r[10]),A(e,"smscodettl",r[13]),A(e,"resenddelay",r[14]),A(e,"lang",r[2])},m(t,i){L(t,e,i)},p(t,i){i[0]&32&&A(e,"clientstyling",t[5]),i[0]&64&&A(e,"clientstylingurl",t[6]),i[0]&1&&A(e,"endpoint",t[0]),i[0]&16&&A(e,"mbsource",t[4]),i[0]&128&&A(e,"translationurl",t[7]),i[0]&4096&&A(e,"smscodelength",t[12]),i[0]&2048&&A(e,"smscodemaxattempts",t[11]),i[0]&512&&A(e,"phoneregex",t[9]),i[0]&1024&&A(e,"phoneprefixeditable",t[10]),i[0]&8192&&A(e,"smscodettl",t[13]),i[0]&16384&&A(e,"resenddelay",t[14]),i[0]&4&&A(e,"lang",t[2])},d(t){t&&I(e)}}}function Om(r){let e,t,i,s,o,n,a,l,d,u,h,f,m,_,g,v=r[43]("forgotChangePasswordTitle")+"",w,y,E,T=r[43]("forgotChangePasswordDescription")+"",C,D,z,pe=r[43]("forgotChangePasswordLogin")+"",te,ae,ue;return{c(){e=x("div"),t=x("div"),i=x("div"),s=P("svg"),o=P("defs"),n=P("style"),a=N(`.a {
|
|
2686
2689
|
fill: var(--emw--color-valid, var(--emw--color-valid, #48952a));
|
|
2687
2690
|
}
|
|
2688
2691
|
.b,
|
|
@@ -2696,7 +2699,7 @@ try {
|
|
|
2696
2699
|
.c {
|
|
2697
2700
|
stroke: none;
|
|
2698
2701
|
}
|
|
2699
|
-
`),l=
|
|
2702
|
+
`),l=P("g"),d=P("g"),u=P("path"),h=P("g"),f=P("circle"),m=P("circle"),_=H(),g=x("h4"),w=N(v),y=H(),E=x("p"),C=N(T),D=H(),z=x("button"),te=N(pe),c(u,"class","a"),c(u,"d","M16.1,28,0,11.9,3.267,8.633,16.1,21.233,37.333,0,40.6,3.267Z"),c(u,"transform","translate(264.272 482.563)"),c(d,"transform","translate(-7360.574 8503.438)"),c(f,"class","c"),c(f,"cx","30"),c(f,"cy","30"),c(f,"r","30"),c(m,"class","d"),c(m,"cx","30"),c(m,"cy","30"),c(m,"r","29"),c(h,"class","b"),c(h,"transform","translate(-7106 8970)"),c(l,"transform","translate(7106 -8970)"),c(s,"xmlns","http://www.w3.org/2000/svg"),c(s,"width","60"),c(s,"height","60"),c(s,"viewBox","0 0 60 60"),c(i,"class","NewPasswordSuccess"),c(i,"part","NewPasswordSuccess"),c(z,"class","resetPasswordButton"),c(z,"part","resetPasswordButton"),c(t,"class","FormContent"),c(t,"part","FormContent"),c(e,"class","FormForgotPassword"),c(e,"part","FormForgotPassword")},m(V,re){L(V,e,re),p(e,t),p(t,i),p(i,s),p(s,o),p(o,n),p(n,a),p(s,l),p(l,d),p(d,u),p(l,h),p(h,f),p(h,m),p(i,_),p(i,g),p(g,w),p(i,y),p(i,E),p(E,C),p(t,D),p(t,z),p(z,te),ae||(ue=oe(z,"click",r[76]),ae=!0)},p(V,re){re[1]&4096&&v!==(v=V[43]("forgotChangePasswordTitle")+"")&&X(w,v),re[1]&4096&&T!==(T=V[43]("forgotChangePasswordDescription")+"")&&X(C,T),re[1]&4096&&pe!==(pe=V[43]("forgotChangePasswordLogin")+"")&&X(te,pe)},d(V){V&&I(e),ae=!1,ue()}}}function Nm(r){let e,t,i,s,o,n,a,l,d,u=r[43]("forgotNewPasswordPassword")+"",h,f,m,_,g,v,w,y,E,T,C,D,z=r[43]("forgotNewPasswordConfirmPassword")+"",pe,te,ae,ue,V,re,xe,be,he,Ee,ce,me=r[43]("forgotNewPasswordButton")+"",Ae,Oe,W,Q,k=r[39]&&sn(r);function Ne(ve,Z){return ve[33]?Bm:Lm}let _e=Ne(r),U=_e(r),S=r[29]&&on(r);function Y(ve,Z){return ve[34]?zm:Hm}let ke=Y(r),ie=ke(r),J=r[30]&&nn(r),G=r[37]&&an(r);return{c(){e=x("div"),t=x("div"),i=x("h4"),s=N(r[38]),o=H(),k&&k.c(),n=H(),a=x("form"),l=x("div"),d=x("label"),h=N(u),f=N(":"),m=x("span"),m.textContent="*",_=H(),g=x("input"),w=H(),U.c(),y=H(),S&&S.c(),T=H(),C=x("div"),D=x("label"),pe=N(z),te=N(":"),ae=x("span"),ae.textContent="*",ue=H(),V=x("input"),re=H(),ie.c(),xe=H(),J&&J.c(),he=H(),G&&G.c(),Ee=H(),ce=x("button"),Ae=N(me),c(i,"class","FormHeaderTitle"),c(i,"part","FormHeaderTitle"),c(t,"class","FormHeader"),c(t,"part","FormHeader"),c(m,"class","FormRequired"),c(m,"part","FormRequired"),c(d,"for","NewPassword"),c(g,"type","password"),c(g,"id","new-password"),c(g,"autocomplete",v=r[8]?"new-password":"off"),c(l,"class",E="NewPassword "+(r[29]?"InvalidField":"")),c(l,"part","NewPassword"),c(ae,"class","FormRequired"),c(ae,"part","FormRequired"),c(D,"for","RetypePassword"),c(V,"type","password"),c(V,"id","RetypePassword"),c(C,"class",be="ConfirmPassword "+(r[30]?"InvalidField":"")),c(C,"part","ConfirmPassword"),c(ce,"class","resetPasswordButton"),c(ce,"part","resetPasswordButton"),ce.disabled=Oe=!r[28],c(a,"class","FormContent"),c(a,"part","FormContent"),c(e,"class","FormForgotPassword test"),c(e,"part","FormForgotPassword test")},m(ve,Z){L(ve,e,Z),p(e,t),p(t,i),p(i,s),p(t,o),k&&k.m(t,null),p(e,n),p(e,a),p(a,l),p(l,d),p(d,h),p(d,f),p(d,m),p(l,_),p(l,g),je(g,r[35]),r[68](g),p(l,w),U.m(l,null),p(l,y),S&&S.m(l,null),p(a,T),p(a,C),p(C,D),p(D,pe),p(D,te),p(D,ae),p(C,ue),p(C,V),je(V,r[36]),r[72](V),p(C,re),ie.m(C,null),p(C,xe),J&&J.m(C,null),p(a,he),G&&G.m(a,null),p(a,Ee),p(a,ce),p(ce,Ae),W||(Q=[oe(g,"input",r[67]),oe(g,"keyup",function(){Fe(r[53](r[29],r[35],r[31]))&&r[53](r[29],r[35],r[31]).apply(this,arguments)}),oe(V,"input",r[71]),oe(V,"keyup",function(){Fe(r[53](r[30],r[36],r[32]))&&r[53](r[30],r[36],r[32]).apply(this,arguments)}),oe(ce,"click",r[75])],W=!0)},p(ve,Z){r=ve,Z[1]&128&&X(s,r[38]),r[39]?k?k.p(r,Z):(k=sn(r),k.c(),k.m(t,null)):k&&(k.d(1),k=null),Z[1]&4096&&u!==(u=r[43]("forgotNewPasswordPassword")+"")&&X(h,u),Z[0]&256&&v!==(v=r[8]?"new-password":"off")&&c(g,"autocomplete",v),Z[1]&16&&g.value!==r[35]&&je(g,r[35]),_e===(_e=Ne(r))&&U?U.p(r,Z):(U.d(1),U=_e(r),U&&(U.c(),U.m(l,y))),r[29]?S?S.p(r,Z):(S=on(r),S.c(),S.m(l,null)):S&&(S.d(1),S=null),Z[0]&536870912&&E!==(E="NewPassword "+(r[29]?"InvalidField":""))&&c(l,"class",E),Z[1]&4096&&z!==(z=r[43]("forgotNewPasswordConfirmPassword")+"")&&X(pe,z),Z[1]&32&&V.value!==r[36]&&je(V,r[36]),ke===(ke=Y(r))&&ie?ie.p(r,Z):(ie.d(1),ie=ke(r),ie&&(ie.c(),ie.m(C,xe))),r[30]?J?J.p(r,Z):(J=nn(r),J.c(),J.m(C,null)):J&&(J.d(1),J=null),Z[0]&1073741824&&be!==(be="ConfirmPassword "+(r[30]?"InvalidField":""))&&c(C,"class",be),r[37]?G?G.p(r,Z):(G=an(r),G.c(),G.m(a,Ee)):G&&(G.d(1),G=null),Z[1]&4096&&me!==(me=r[43]("forgotNewPasswordButton")+"")&&X(Ae,me),Z[0]&268435456&&Oe!==(Oe=!r[28])&&(ce.disabled=Oe)},d(ve){ve&&I(e),k&&k.d(),r[68](null),U.d(),S&&S.d(),r[72](null),ie.d(),J&&J.d(),G&&G.d(),W=!1,Se(Q)}}}function km(r){let e,t,i,s,o,n,a,l,d,u,h,f,m,_,g,v=r[43]("forgotPasswordSuccess")+"",w,y,E,T=r[43]("forgotPasswordSuccessDescription")+"",C;return{c(){e=x("div"),t=x("div"),i=x("div"),s=P("svg"),o=P("defs"),n=P("style"),a=N(`.a {
|
|
2700
2703
|
fill: #16ce16;
|
|
2701
2704
|
}
|
|
2702
2705
|
.b,
|
|
@@ -2710,19 +2713,19 @@ try {
|
|
|
2710
2713
|
.c {
|
|
2711
2714
|
stroke: none;
|
|
2712
2715
|
}
|
|
2713
|
-
`),l=
|
|
2716
|
+
`),l=P("g"),d=P("g"),u=P("path"),h=P("g"),f=P("circle"),m=P("circle"),_=H(),g=x("h4"),w=N(v),y=H(),E=x("p"),C=N(T),c(u,"class","a"),c(u,"d","M16.1,28,0,11.9,3.267,8.633,16.1,21.233,37.333,0,40.6,3.267Z"),c(u,"transform","translate(264.272 482.563)"),c(d,"transform","translate(-7360.574 8503.438)"),c(f,"class","c"),c(f,"cx","30"),c(f,"cy","30"),c(f,"r","30"),c(m,"class","d"),c(m,"cx","30"),c(m,"cy","30"),c(m,"r","29"),c(h,"class","b"),c(h,"transform","translate(-7106 8970)"),c(l,"transform","translate(7106 -8970)"),c(s,"xmlns","http://www.w3.org/2000/svg"),c(s,"width","60"),c(s,"height","60"),c(s,"viewBox","0 0 60 60"),c(i,"class","NewPasswordSuccess"),c(i,"part","NewPasswordSuccess"),c(t,"class","FormContent"),c(t,"part","FormContent"),c(e,"class","FormForgotPassword"),c(e,"part","FormForgotPassword")},m(D,z){L(D,e,z),p(e,t),p(t,i),p(i,s),p(s,o),p(o,n),p(n,a),p(s,l),p(l,d),p(d,u),p(l,h),p(h,f),p(h,m),p(i,_),p(i,g),p(g,w),p(i,y),p(i,E),p(E,C)},p(D,z){z[1]&4096&&v!==(v=D[43]("forgotPasswordSuccess")+"")&&X(w,v),z[1]&4096&&T!==(T=D[43]("forgotPasswordSuccessDescription")+"")&&X(C,T)},d(D){D&&I(e)}}}function Mm(r){let e,t,i,s,o,n,a,l,d,u=r[43]("goToLogin")+"",h,f,m,_,g,v,w,y,E,T=r[43]("forgotPasswordEmail")+"",C,D,z,pe,te,ae,ue,V,re,xe,be,he,Ee=r[43]("forgotPasswordReset")+"",ce,me,Ae,Oe,W=r[39]&&ln(r),Q=r[25]&&dn(r),k=r[19]&&un(r);function Ne(S,Y){return S[41]?Fm:Vm}let _e=Ne(r),U=_e(r);return{c(){e=x("div"),t=x("div"),i=x("button"),s=P("svg"),o=P("defs"),n=P("style"),a=N(`.a {
|
|
2714
2717
|
fill: var(--emw--registration-color-primary, var(--emw--color-primary, #22b04e));
|
|
2715
2718
|
}
|
|
2716
|
-
`),l=
|
|
2719
|
+
`),l=P("path"),d=H(),h=N(u),f=H(),m=x("h4"),_=N(r[38]),g=H(),W&&W.c(),v=H(),w=x("form"),y=x("div"),E=x("label"),C=N(T),D=N(":"),z=x("span"),z.textContent="*",pe=H(),te=x("input"),ae=H(),Q&&Q.c(),ue=H(),k&&k.c(),V=H(),U.c(),be=H(),he=x("button"),ce=N(Ee),c(l,"class","a"),c(l,"d","M12,0,9.818,2.182l8.26,8.26H0v3.117H18.078l-8.26,8.26L12,24,24,12Z"),c(l,"transform","translate(24 24) rotate(180)"),c(s,"xmlns","http://www.w3.org/2000/svg"),c(s,"viewBox","0 0 24 24"),c(i,"class","backButtonForgotPassword"),c(m,"class","FormHeaderTitle"),c(m,"part","FormHeaderTitle"),c(t,"class","FormHeader"),c(z,"class","FormRequired"),c(z,"part","FormRequired"),c(E,"for","ResetPasswordByEmail"),c(te,"type","text"),c(te,"id","ResetPasswordByEmail"),c(y,"class",re="ResetPasswordByEmail "+(r[25]?"InvalidField":"")),c(y,"part",xe="ResetPasswordByEmail "+(r[25]?"InvalidField":"")),c(he,"class","resetPasswordButton"),c(he,"part","resetPasswordButton"),he.disabled=me=!r[26],c(w,"class","FormContent"),c(w,"part","FormContent"),c(e,"class","FormForgotPassword")},m(S,Y){L(S,e,Y),p(e,t),p(t,i),p(i,s),p(s,o),p(o,n),p(n,a),p(s,l),p(i,d),p(i,h),p(t,f),p(t,m),p(m,_),p(t,g),W&&W.m(t,null),p(e,v),p(e,w),p(w,y),p(y,E),p(E,C),p(E,D),p(E,z),p(y,pe),p(y,te),je(te,r[21]),p(y,ae),Q&&Q.m(y,null),p(y,ue),k&&k.m(y,null),p(y,V),U.m(y,null),p(w,be),p(w,he),p(he,ce),Ae||(Oe=[oe(i,"click",r[61]),oe(te,"input",r[62]),oe(te,"input",r[47]),oe(he,"click",r[66])],Ae=!0)},p(S,Y){Y[1]&4096&&u!==(u=S[43]("goToLogin")+"")&&X(h,u),Y[1]&128&&X(_,S[38]),S[39]?W?W.p(S,Y):(W=ln(S),W.c(),W.m(t,null)):W&&(W.d(1),W=null),Y[1]&4096&&T!==(T=S[43]("forgotPasswordEmail")+"")&&X(C,T),Y[0]&2097152&&te.value!==S[21]&&je(te,S[21]),S[25]?Q?Q.p(S,Y):(Q=dn(S),Q.c(),Q.m(y,ue)):Q&&(Q.d(1),Q=null),S[19]?k?k.p(S,Y):(k=un(S),k.c(),k.m(y,V)):k&&(k.d(1),k=null),_e===(_e=Ne(S))&&U?U.p(S,Y):(U.d(1),U=_e(S),U&&(U.c(),U.m(y,null))),Y[0]&33554432&&re!==(re="ResetPasswordByEmail "+(S[25]?"InvalidField":""))&&c(y,"class",re),Y[0]&33554432&&xe!==(xe="ResetPasswordByEmail "+(S[25]?"InvalidField":""))&&c(y,"part",xe),Y[1]&4096&&Ee!==(Ee=S[43]("forgotPasswordReset")+"")&&X(ce,Ee),Y[0]&67108864&&me!==(me=!S[26])&&(he.disabled=me)},d(S){S&&I(e),W&&W.d(),Q&&Q.d(),k&&k.d(),U.d(),Ae=!1,Se(Oe)}}}function sn(r){let e,t;return{c(){e=x("p"),t=N(r[39]),c(e,"class","FormHeaderSubtitle"),c(e,"part","FormHeaderSubtitle")},m(i,s){L(i,e,s),p(e,t)},p(i,s){s[1]&256&&X(t,i[39])},d(i){i&&I(e)}}}function Lm(r){let e,t,i,s,o,n,a,l,d,u;return{c(){e=P("svg"),t=P("defs"),i=P("style"),s=N(`.a {
|
|
2717
2720
|
fill: var(--emw--color-white, #ffffff);
|
|
2718
2721
|
}
|
|
2719
|
-
`),o=
|
|
2722
|
+
`),o=P("g"),n=P("path"),a=P("circle"),c(n,"class","a"),c(n,"d","M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z"),c(n,"transform","translate(0)"),c(a,"class","a"),c(a,"cx","2.779"),c(a,"cy","2.779"),c(a,"r","2.779"),c(a,"transform","translate(20.827 30.303)"),c(o,"transform","translate(-14.185 -27.832)"),c(e,"class",l="TogglePasswordVisibility "+(r[29]?"InvalidToggle":"")),c(e,"xmlns","http://www.w3.org/2000/svg"),c(e,"width","18.843"),c(e,"height","10.5"),c(e,"viewBox","0 0 18.843 10.5")},m(h,f){L(h,e,f),p(e,t),p(t,i),p(i,s),p(e,o),p(o,n),p(o,a),d||(u=oe(e,"click",r[70]),d=!0)},p(h,f){f[0]&536870912&&l!==(l="TogglePasswordVisibility "+(h[29]?"InvalidToggle":""))&&c(e,"class",l)},d(h){h&&I(e),d=!1,u()}}}function Bm(r){let e,t,i,s,o,n,a,l,d,u,h,f,m,_,g,v;return{c(){e=P("svg"),t=P("defs"),i=P("style"),s=N(`.a {
|
|
2720
2723
|
fill: var(--emw--color-white, #ffffff);
|
|
2721
2724
|
}
|
|
2722
|
-
`),o=
|
|
2725
|
+
`),o=P("g"),n=P("circle"),a=P("g"),l=P("path"),d=P("path"),u=P("g"),h=P("path"),f=P("path"),m=P("rect"),c(n,"class","a"),c(n,"cx","0.05"),c(n,"cy","0.05"),c(n,"r","0.05"),c(n,"transform","translate(121.017 31.148)"),c(l,"class","a"),c(l,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),c(l,"transform","translate(-142.164 -39.123)"),c(d,"class","a"),c(d,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),c(d,"transform","translate(-136.413 -42.068)"),c(a,"transform","translate(117.499 27.37)"),c(h,"class","a"),c(h,"d","M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z"),c(h,"transform","translate(-110.856 -33.157)"),c(f,"class","a"),c(f,"d","M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z"),c(f,"transform","translate(-130.743 -29.617)"),c(u,"transform","translate(110.856 24.899)"),c(m,"class","a"),c(m,"width","0.972"),c(m,"height","15.861"),c(m,"rx","0.486"),c(m,"transform","translate(114.827 23.858) rotate(-39.315)"),c(o,"transform","translate(-110.856 -23.242)"),c(e,"class",_="TogglePasswordVisibility "+(r[29]?"InvalidToggle":"")),c(e,"xmlns","http://www.w3.org/2000/svg"),c(e,"width","18.844"),c(e,"height","12.887"),c(e,"viewBox","0 0 18.844 12.887")},m(w,y){L(w,e,y),p(e,t),p(t,i),p(i,s),p(e,o),p(o,n),p(o,a),p(a,l),p(a,d),p(o,u),p(u,h),p(u,f),p(o,m),g||(v=oe(e,"click",r[69]),g=!0)},p(w,y){y[0]&536870912&&_!==(_="TogglePasswordVisibility "+(w[29]?"InvalidToggle":""))&&c(e,"class",_)},d(w){w&&I(e),g=!1,v()}}}function on(r){let e;function t(o,n){return o[3]=="true"?Dm:Rm}let i=t(r),s=i(r);return{c(){s.c(),e=ds()},m(o,n){s.m(o,n),L(o,e,n)},p(o,n){i===(i=t(o))&&s?s.p(o,n):(s.d(1),s=i(o),s&&(s.c(),s.m(e.parentNode,e)))},d(o){o&&I(e),s.d(o)}}}function Rm(r){let e,t=r[43]("forgotNewPasswordPasswordError")+"",i;return{c(){e=x("p"),i=N(t),c(e,"class","InvalidInput"),c(e,"part","InvalidInput")},m(s,o){L(s,e,o),p(e,i)},p(s,o){o[1]&4096&&t!==(t=s[43]("forgotNewPasswordPasswordError")+"")&&X(i,t)},d(s){s&&I(e)}}}function Dm(r){let e,t=r[43]("simplePasswordError")+"",i;return{c(){e=x("p"),i=N(t),c(e,"class","InvalidInput"),c(e,"part","InvalidInput")},m(s,o){L(s,e,o),p(e,i)},p(s,o){o[1]&4096&&t!==(t=s[43]("simplePasswordError")+"")&&X(i,t)},d(s){s&&I(e)}}}function Hm(r){let e,t,i,s,o,n,a,l,d,u;return{c(){e=P("svg"),t=P("defs"),i=P("style"),s=N(`.a {
|
|
2723
2726
|
fill: var(--emw--color-white, #ffffff);
|
|
2724
2727
|
}
|
|
2725
|
-
`),o=
|
|
2728
|
+
`),o=P("g"),n=P("path"),a=P("circle"),c(n,"class","a"),c(n,"d","M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z"),c(n,"transform","translate(0)"),c(a,"class","a"),c(a,"cx","2.779"),c(a,"cy","2.779"),c(a,"r","2.779"),c(a,"transform","translate(20.827 30.303)"),c(o,"transform","translate(-14.185 -27.832)"),c(e,"class",l="TogglePasswordVisibility "+(r[30]?"InvalidToggle":"")),c(e,"xmlns","http://www.w3.org/2000/svg"),c(e,"width","18.843"),c(e,"height","10.5"),c(e,"viewBox","0 0 18.843 10.5")},m(h,f){L(h,e,f),p(e,t),p(t,i),p(i,s),p(e,o),p(o,n),p(o,a),d||(u=oe(e,"click",r[74]),d=!0)},p(h,f){f[0]&1073741824&&l!==(l="TogglePasswordVisibility "+(h[30]?"InvalidToggle":""))&&c(e,"class",l)},d(h){h&&I(e),d=!1,u()}}}function zm(r){let e,t,i,s,o,n,a,l,d,u,h,f,m,_,g,v;return{c(){e=P("svg"),t=P("defs"),i=P("style"),s=N(`.a {
|
|
2726
2729
|
fill: var(--emw--color-white, #ffffff);
|
|
2727
2730
|
}
|
|
2728
|
-
`),o=x("g"),n=x("circle"),a=x("g"),l=x("path"),d=x("path"),h=x("g"),u=x("path"),f=x("path"),m=x("rect"),c(n,"class","a"),c(n,"cx","0.05"),c(n,"cy","0.05"),c(n,"r","0.05"),c(n,"transform","translate(121.017 31.148)"),c(l,"class","a"),c(l,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),c(l,"transform","translate(-142.164 -39.123)"),c(d,"class","a"),c(d,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),c(d,"transform","translate(-136.413 -42.068)"),c(a,"transform","translate(117.499 27.37)"),c(u,"class","a"),c(u,"d","M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z"),c(u,"transform","translate(-110.856 -33.157)"),c(f,"class","a"),c(f,"d","M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z"),c(f,"transform","translate(-130.743 -29.617)"),c(h,"transform","translate(110.856 24.899)"),c(m,"class","a"),c(m,"width","0.972"),c(m,"height","15.861"),c(m,"rx","0.486"),c(m,"transform","translate(114.827 23.858) rotate(-39.315)"),c(o,"transform","translate(-110.856 -23.242)"),c(t,"class",_="TogglePasswordVisibility "+(r[17]?"InvalidToggle":"")),c(t,"xmlns","http://www.w3.org/2000/svg"),c(t,"width","18.844"),c(t,"height","12.887"),c(t,"viewBox","0 0 18.844 12.887")},m(y,v){R(y,t,v),p(t,e),p(e,i),p(i,s),p(t,o),p(o,n),p(o,a),p(a,l),p(a,d),p(o,h),p(h,u),p(h,f),p(o,m),g||(w=se(t,"click",r[65]),g=!0)},p(y,v){v[0]&131072&&_!==(_="TogglePasswordVisibility "+(y[17]?"InvalidToggle":""))&&c(t,"class",_)},d(y){y&&M(t),g=!1,w()}}}function Mo(r){let t,e=r[30]("forgotNewPasswordConfirmPasswordError")+"",i;return{c(){t=P("p"),i=N(e),c(t,"class","InvalidInput"),c(t,"part","InvalidInput")},m(s,o){R(s,t,o),p(t,i)},p(s,o){o[0]&1073741824&&e!==(e=s[30]("forgotNewPasswordConfirmPasswordError")+"")&&Z(i,e)},d(s){s&&M(t)}}}function Lo(r){let t,e;return{c(){t=P("p"),e=N(r[14]),c(t,"class","ErrorMessage"),c(t,"part","ErrorMessage")},m(i,s){R(i,t,s),p(t,e)},p(i,s){s[0]&16384&&Z(e,i[14])},d(i){i&&M(t)}}}function Bo(r){let t,e;return{c(){t=P("p"),e=N(r[26]),c(t,"class","FormHeaderSubtitle"),c(t,"part","FormHeaderSubtitle")},m(i,s){R(i,t,s),p(t,e)},p(i,s){s[0]&67108864&&Z(e,i[26])},d(i){i&&M(t)}}}function Ro(r){let t,e=r[30]("forgotPasswordEmailInputError")+"",i;return{c(){t=P("p"),i=N(e),c(t,"class","ForgotPasswordError"),c(t,"part","ForgotPasswordError")},m(s,o){R(s,t,o),p(t,i)},p(s,o){o[0]&1073741824&&e!==(e=s[30]("forgotPasswordEmailInputError")+"")&&Z(i,e)},d(s){s&&M(t)}}}function Do(r){let t,e=r[30]("forgotPasswordEmailError")+"",i;return{c(){t=P("p"),i=N(e),c(t,"class","ForgotPasswordError"),c(t,"part","ForgotPasswordError")},m(s,o){R(s,t,o),p(t,i)},p(s,o){o[0]&1073741824&&e!==(e=s[30]("forgotPasswordEmailError")+"")&&Z(i,e)},d(s){s&&M(t)}}}function em(r){let t,e,i=r[30](r[28])+"",s;return{c(){t=P("div"),e=P("span"),s=N(i),c(t,"class","dobFormatError")},m(o,n){R(o,t,n),p(t,e),p(e,s)},p(o,n){n[0]&1342177280&&i!==(i=o[30](o[28])+"")&&Z(s,i)},d(o){o&&M(t)}}}function tm(r){let t,e,i=Ps(r[27]),s=[];for(let o=0;o<i.length;o+=1)s[o]=Ho(Io(r,i,o));return{c(){t=P("div");for(let o=0;o<s.length;o+=1)s[o].c();c(t,"class",e="DobContainer "+(r[11]?"Mobile":""))},m(o,n){R(o,t,n);for(let a=0;a<s.length;a+=1)s[a]&&s[a].m(t,null)},p(o,n){if(n[0]&1744830464|n[1]&135){i=Ps(o[27]);let a;for(a=0;a<i.length;a+=1){const l=Io(o,i,a);s[a]?s[a].p(l,n):(s[a]=Ho(l),s[a].c(),s[a].m(t,null))}for(;a<s.length;a+=1)s[a].d(1);s.length=i.length}n[0]&2048&&e!==(e="DobContainer "+(o[11]?"Mobile":""))&&c(t,"class",e)},d(o){o&&M(t),fl(s,o)}}}function rm(r){let t,e,i,s,o;return{c(){t=P("vaadin-combo-box"),Q(t,"class","datePickerBox"),Q(t,"label",e=r[30]("year")),Q(t,"items",r[31]),Q(t,"disabled",i=r[29].isYearDisabled)},m(n,a){R(n,t,a),s||(o=se(t,"change",r[57]),s=!0)},p(n,a){a[0]&1073741824&&e!==(e=n[30]("year"))&&Q(t,"label",e),a[0]&536870912&&i!==(i=n[29].isYearDisabled)&&Q(t,"disabled",i)},d(n){n&&M(t),s=!1,o()}}}function im(r){let t,e,i,s,o;return{c(){t=P("vaadin-combo-box"),Q(t,"class","datePickerBox"),Q(t,"label",e=r[30]("month")),Q(t,"items",Object.keys(r[32])),Q(t,"disabled",i=r[29].isMonthDisabled)},m(n,a){R(n,t,a),s||(o=se(t,"change",r[56]),s=!0)},p(n,a){a[0]&1073741824&&e!==(e=n[30]("month"))&&Q(t,"label",e),a[0]&536870912&&i!==(i=n[29].isMonthDisabled)&&Q(t,"disabled",i)},d(n){n&&M(t),s=!1,o()}}}function sm(r){let t,e,i,s,o;return{c(){t=P("vaadin-combo-box"),Q(t,"class","datePickerBox"),Q(t,"label",e=r[30]("day")),Q(t,"items",r[33]),Q(t,"disabled",i=r[29].isDayDisabled)},m(n,a){R(n,t,a),s||(o=se(t,"change",r[55]),s=!0)},p(n,a){a[0]&1073741824&&e!==(e=n[30]("day"))&&Q(t,"label",e),a[0]&536870912&&i!==(i=n[29].isDayDisabled)&&Q(t,"disabled",i)},d(n){n&&M(t),s=!1,o()}}}function Ho(r){let t;function e(o,n){if(o[90]==="dd")return sm;if(o[90]==="mm")return im;if(o[90]==="yyyy")return rm}let i=e(r),s=i&&i(r);return{c(){s&&s.c(),t=ji()},m(o,n){s&&s.m(o,n),R(o,t,n)},p(o,n){i===(i=e(o))&&s?s.p(o,n):(s&&s.d(1),s=i&&i(o),s&&(s.c(),s.m(t.parentNode,t)))},d(o){o&&M(t),s&&s.d(o)}}}function om(r){let t,e,i,s,o,n=r[0]&&Oo(r);function a(h,u){return h[4]?Up:$p}let l=a(r),d=l(r);return{c(){n&&n.c(),t=ji(),e=V(),i=P("div"),s=V(),o=P("div"),d.c(),c(i,"class","g-recaptcha"),c(i,"data-sitekey",r[0]),c(o,"class","GeneralPlayerForgotPasswordForm")},m(h,u){n&&n.m(document.head,null),p(document.head,t),R(h,e,u),R(h,i,u),R(h,s,u),R(h,o,u),d.m(o,null),r[69](o)},p(h,u){h[0]?n?n.p(h,u):(n=Oo(h),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null),u[0]&1&&c(i,"data-sitekey",h[0]),l===(l=a(h))&&d?d.p(h,u):(d.d(1),d=l(h),d&&(d.c(),d.m(o,null)))},i:Ce,o:Ce,d(h){h&&(M(e),M(i),M(s),M(o)),n&&n.d(h),M(t),d.d(),r[69](null)}}}function nm(r,t,e){let i;dl(r,kh,b=>e(30,i=b));let{endpoint:s=""}=t,{forgotpasswordkey:o=""}=t,{captchakey:n=""}=t,{lang:a="en"}=t,{simplepasswordvalidation:l="false"}=t,{mbsource:d}=t,{clientstyling:h=""}=t,{clientstylingurl:u=""}=t,{translationurl:f=""}=t,{savecredentials:m=""}=t,{hastosetpass:_="false"}=t,{passwordregex:g=""}=t,{dobformat:w=""}=t,{mindobyears:y=18}=t,{maxdobyears:v=100}=t,S=!1,k=!0,E=!1,z=!1,B="",le=!1,J=!1,de=!1,pe=!1,$=!1,he=window.navigator.userAgent,_e="",Se=!1,ne=sessionStorage.getItem("resetScreenWasSeen")==="true",we=!1,te=!1,ue,ge,xe=!1,W=!1,U="",A="",ce,be=!1,j,C,X=Array.from({length:v-y+1},(b,F)=>new Date().getFullYear()-y-F),Re={January:"01",February:"02",March:"03",April:"04",May:"05",June:"06",July:"07",August:"08",September:"09",October:"10",November:"11",December:"12"},Pe=Array.from({length:31},(b,F)=>F+1),q=[],re="",ve=!0,I={isDayDisabled:!1,isMonthDisabled:!1,isYearDisabled:!1},Ia=["mm/dd/yyyy","dd/mm/yyyy","yyyy/mm/dd"],mt={dd:null,mm:null,yyyy:null},ps="";Lh({withLocale:"en",translations:{}});const Oa=()=>{fetch(f).then(F=>F.json()).then(F=>{Object.keys(F).forEach(K=>{js(K,F[K])})}).catch(F=>{console.log(F)})};Object.keys(Gs).forEach(b=>{js(b,Gs[b])});const Wt={email:/^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i,password:/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[^\w\s]).{8,20}$/},Na=()=>{e(13,$=w?!pe&&!ve:!pe)},ka=b=>!!(Wt.email.test(b)&&b.length<=100),ms=()=>{e(12,pe=!ka(B)),Na()},_t=b=>{switch(b){case"userNewPassword":e(20,xe=!xe),e(18,ue.type=xe?"text":"password",ue);break;case"userConfirmPassword":e(21,W=!W),e(19,ge.type=W?"text":"password",ge);break}},Lr=b=>{switch(b){case"ToEmailSuccess":e(6,E=!1),e(5,k=!1),e(7,z=!0);break;case"ToReset":e(5,k=ne),e(9,le=!ne),ne=!0,sessionStorage.setItem("resetScreenWasSeen","true");break;case"ToSuccess":e(9,le=!1),e(10,J=!0);break}},Br=()=>{window.postMessage({type:"ToLogin"},window.location.href)},Ma=()=>new Promise((b,F)=>{grecaptcha.ready(()=>{grecaptcha.execute(n,{action:"submit"}).then(K=>{b(K)})})}),_s=b=>{b.preventDefault(),e(4,S=!0),Ma().then(F=>{let K=new URL(`${s}/v1/player/resetpassword`),De={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json","g-recaptcha-response":F}};K.searchParams.append("email",B),w&&K.searchParams.append("birthDate",ps),fetch(K,De).then(Ne=>bs(Ne)).then(()=>{Lr("ToEmailSuccess")}).catch(Ne=>{e(6,E=!0),console.error("There was an error with the player balance request.",Ne)}).finally(()=>{e(4,S=!1),ne=!1,sessionStorage.setItem("resetScreenWasSeen","false")})})},La=()=>{if(e(41,w=w.toLowerCase()),!Ia.includes(w))return e(28,re="dobFormatError");e(27,q=w.split("/")),e(29,I.isDayDisabled=q[0]!=="dd",I),e(29,I.isMonthDisabled=q[0]!=="mm",I),e(29,I.isYearDisabled=q[0]!=="yyyy",I)},qt=(b,F)=>{mt[F]=b.target.value,ve=Object.values(mt).some(K=>!K),q.forEach((K,De)=>{if(F===K)switch(q[De+1]){case"dd":e(29,I.isDayDisabled=!1,I);case"mm":e(29,I.isMonthDisabled=!1,I);break;case"yyyy":e(29,I.isYearDisabled=!1,I);break}}),ve||(ps=`${mt.yyyy}-${Re[mt.mm]}-${mt.dd}`),ms()},gs=b=>{b.preventDefault();let F=new URL(`${s}/v1/player/ResetPasswordByHashKey`),De={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({hashKey:o,plainTextPassword:U})};fetch(F,De).then(Ne=>bs(Ne)).then(Ne=>{e(24,be=!1),Lr("ToSuccess")}).catch(Ne=>{e(24,be=!0),console.error("There was an error with changing the password.",Ne)})},Ba=()=>{o&&o.length>0&&Lr("ToReset")},Ra=()=>{!we&&!te&&U&&A?e(15,Se=!0):e(15,Se=!1)},Rr=b=>(l=="true"&&(Wt.password=/^(?!.* ).{8,20}$/),!!Wt.password.test(b)),Da=(b,F,K)=>{K.id==="new-password"?(e(16,we=!Rr(F)),A&&e(17,te=U===A?!Rr(F):!0)):e(17,te=U===A?!Rr(F):!0),Ra()},bs=b=>gt(this,null,function*(){return b.json().catch(()=>null).then(F=>{var K;if(b.status>=300){const De=((K=F==null?void 0:F.thirdPartyResponse)==null?void 0:K.errorCode)||"generalError";return e(14,_e=i(De)),window.postMessage({type:"WidgetNotification",data:{type:"error",message:_e}},window.location.href),Promise.reject(_e)}return F})}),Ha=()=>{Bh(a)},za=()=>{e(25,j=i(_==="true"?"hasToSetPassTitle":"forgotPasswordTitle")),e(26,C=_==="true"?i("resetPasswordSubtitle"):"")};gl(()=>gt(this,null,function*(){return Mh(he)&&e(11,de=!0),()=>{}}));const Fa=()=>Br();function Va(){B=this.value,e(8,B)}const $a=b=>qt(b,"dd"),Ua=b=>qt(b,"mm"),ja=b=>qt(b,"yyyy"),Ga=b=>_s(b);function Wa(){U=this.value,e(22,U)}function qa(b){St[b?"unshift":"push"](()=>{ue=b,e(18,ue)})}const Ya=()=>_t("userNewPassword"),Za=()=>_t("userNewPassword");function Xa(){A=this.value,e(23,A)}function Ja(b){St[b?"unshift":"push"](()=>{ge=b,e(19,ge)})}const Ka=()=>_t("userConfirmPassword"),Qa=()=>_t("userConfirmPassword"),el=b=>gs(b),tl=()=>Br();function rl(b){St[b?"unshift":"push"](()=>{ce=b,e(3,ce)})}return r.$$set=b=>{"endpoint"in b&&e(42,s=b.endpoint),"forgotpasswordkey"in b&&e(43,o=b.forgotpasswordkey),"captchakey"in b&&e(0,n=b.captchakey),"lang"in b&&e(44,a=b.lang),"simplepasswordvalidation"in b&&e(1,l=b.simplepasswordvalidation),"mbsource"in b&&e(45,d=b.mbsource),"clientstyling"in b&&e(46,h=b.clientstyling),"clientstylingurl"in b&&e(47,u=b.clientstylingurl),"translationurl"in b&&e(48,f=b.translationurl),"savecredentials"in b&&e(2,m=b.savecredentials),"hastosetpass"in b&&e(49,_=b.hastosetpass),"passwordregex"in b&&e(50,g=b.passwordregex),"dobformat"in b&&e(41,w=b.dobformat),"mindobyears"in b&&e(51,y=b.mindobyears),"maxdobyears"in b&&e(52,v=b.maxdobyears)},r.$$.update=()=>{r.$$.dirty[1]&4096&&o&&Ba(),r.$$.dirty[1]&8192&&a&&Ha(),r.$$.dirty[0]&8|r.$$.dirty[1]&32768&&h&&ce&&Rh(ce,h),r.$$.dirty[0]&8|r.$$.dirty[1]&65536&&u&&ce&&Dh(ce,u),r.$$.dirty[0]&8|r.$$.dirty[1]&16384&&d&&ce&&Hh(ce,`${d}.Style`),r.$$.dirty[1]&131072&&f&&Oa(),r.$$.dirty[1]&270336&&_&&a&&za(),r.$$.dirty[1]&524288&&g&&(Wt.password=new RegExp(g)),r.$$.dirty[1]&1024&&w&&La()},[n,l,m,ce,S,k,E,z,B,le,J,de,pe,$,_e,Se,we,te,ue,ge,xe,W,U,A,be,j,C,q,re,I,i,X,Re,Pe,ms,_t,Br,_s,qt,gs,Da,w,s,o,a,d,h,u,f,_,g,y,v,Fa,Va,$a,Ua,ja,Ga,Wa,qa,Ya,Za,Xa,Ja,Ka,Qa,el,tl,rl]}class Ta extends Il{constructor(t){super(),Al(this,t,nm,om,Wo,{endpoint:42,forgotpasswordkey:43,captchakey:0,lang:44,simplepasswordvalidation:1,mbsource:45,clientstyling:46,clientstylingurl:47,translationurl:48,savecredentials:2,hastosetpass:49,passwordregex:50,dobformat:41,mindobyears:51,maxdobyears:52},Vp,[-1,-1,-1])}get endpoint(){return this.$$.ctx[42]}set endpoint(t){this.$$set({endpoint:t}),ie()}get forgotpasswordkey(){return this.$$.ctx[43]}set forgotpasswordkey(t){this.$$set({forgotpasswordkey:t}),ie()}get captchakey(){return this.$$.ctx[0]}set captchakey(t){this.$$set({captchakey:t}),ie()}get lang(){return this.$$.ctx[44]}set lang(t){this.$$set({lang:t}),ie()}get simplepasswordvalidation(){return this.$$.ctx[1]}set simplepasswordvalidation(t){this.$$set({simplepasswordvalidation:t}),ie()}get mbsource(){return this.$$.ctx[45]}set mbsource(t){this.$$set({mbsource:t}),ie()}get clientstyling(){return this.$$.ctx[46]}set clientstyling(t){this.$$set({clientstyling:t}),ie()}get clientstylingurl(){return this.$$.ctx[47]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),ie()}get translationurl(){return this.$$.ctx[48]}set translationurl(t){this.$$set({translationurl:t}),ie()}get savecredentials(){return this.$$.ctx[2]}set savecredentials(t){this.$$set({savecredentials:t}),ie()}get hastosetpass(){return this.$$.ctx[49]}set hastosetpass(t){this.$$set({hastosetpass:t}),ie()}get passwordregex(){return this.$$.ctx[50]}set passwordregex(t){this.$$set({passwordregex:t}),ie()}get dobformat(){return this.$$.ctx[41]}set dobformat(t){this.$$set({dobformat:t}),ie()}get mindobyears(){return this.$$.ctx[51]}set mindobyears(t){this.$$set({mindobyears:t}),ie()}get maxdobyears(){return this.$$.ctx[52]}set maxdobyears(t){this.$$set({maxdobyears:t}),ie()}}Tl(Ta,{endpoint:{},forgotpasswordkey:{},captchakey:{},lang:{},simplepasswordvalidation:{},mbsource:{},clientstyling:{},clientstylingurl:{},translationurl:{},savecredentials:{},hastosetpass:{},passwordregex:{},dobformat:{},mindobyears:{},maxdobyears:{}},[],[],!0);exports.default=Ta;
|
|
2731
|
+
`),o=P("g"),n=P("circle"),a=P("g"),l=P("path"),d=P("path"),u=P("g"),h=P("path"),f=P("path"),m=P("rect"),c(n,"class","a"),c(n,"cx","0.05"),c(n,"cy","0.05"),c(n,"r","0.05"),c(n,"transform","translate(121.017 31.148)"),c(l,"class","a"),c(l,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),c(l,"transform","translate(-142.164 -39.123)"),c(d,"class","a"),c(d,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),c(d,"transform","translate(-136.413 -42.068)"),c(a,"transform","translate(117.499 27.37)"),c(h,"class","a"),c(h,"d","M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z"),c(h,"transform","translate(-110.856 -33.157)"),c(f,"class","a"),c(f,"d","M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z"),c(f,"transform","translate(-130.743 -29.617)"),c(u,"transform","translate(110.856 24.899)"),c(m,"class","a"),c(m,"width","0.972"),c(m,"height","15.861"),c(m,"rx","0.486"),c(m,"transform","translate(114.827 23.858) rotate(-39.315)"),c(o,"transform","translate(-110.856 -23.242)"),c(e,"class",_="TogglePasswordVisibility "+(r[30]?"InvalidToggle":"")),c(e,"xmlns","http://www.w3.org/2000/svg"),c(e,"width","18.844"),c(e,"height","12.887"),c(e,"viewBox","0 0 18.844 12.887")},m(w,y){L(w,e,y),p(e,t),p(t,i),p(i,s),p(e,o),p(o,n),p(o,a),p(a,l),p(a,d),p(o,u),p(u,h),p(u,f),p(o,m),g||(v=oe(e,"click",r[73]),g=!0)},p(w,y){y[0]&1073741824&&_!==(_="TogglePasswordVisibility "+(w[30]?"InvalidToggle":""))&&c(e,"class",_)},d(w){w&&I(e),g=!1,v()}}}function nn(r){let e,t=r[43]("forgotNewPasswordConfirmPasswordError")+"",i;return{c(){e=x("p"),i=N(t),c(e,"class","InvalidInput"),c(e,"part","InvalidInput")},m(s,o){L(s,e,o),p(e,i)},p(s,o){o[1]&4096&&t!==(t=s[43]("forgotNewPasswordConfirmPasswordError")+"")&&X(i,t)},d(s){s&&I(e)}}}function an(r){let e,t;return{c(){e=x("p"),t=N(r[27]),c(e,"class","ErrorMessage"),c(e,"part","ErrorMessage")},m(i,s){L(i,e,s),p(e,t)},p(i,s){s[0]&134217728&&X(t,i[27])},d(i){i&&I(e)}}}function ln(r){let e,t;return{c(){e=x("p"),t=N(r[39]),c(e,"class","FormHeaderSubtitle"),c(e,"part","FormHeaderSubtitle")},m(i,s){L(i,e,s),p(e,t)},p(i,s){s[1]&256&&X(t,i[39])},d(i){i&&I(e)}}}function dn(r){let e,t=r[43]("forgotPasswordEmailInputError")+"",i;return{c(){e=x("p"),i=N(t),c(e,"class","ForgotPasswordError"),c(e,"part","ForgotPasswordError")},m(s,o){L(s,e,o),p(e,i)},p(s,o){o[1]&4096&&t!==(t=s[43]("forgotPasswordEmailInputError")+"")&&X(i,t)},d(s){s&&I(e)}}}function un(r){let e,t=r[43]("forgotPasswordEmailError")+"",i;return{c(){e=x("p"),i=N(t),c(e,"class","ForgotPasswordError"),c(e,"part","ForgotPasswordError")},m(s,o){L(s,e,o),p(e,i)},p(s,o){o[1]&4096&&t!==(t=s[43]("forgotPasswordEmailError")+"")&&X(i,t)},d(s){s&&I(e)}}}function Fm(r){let e,t,i=r[43](r[41])+"",s;return{c(){e=x("div"),t=x("span"),s=N(i),c(e,"class","dobFormatError")},m(o,n){L(o,e,n),p(e,t),p(t,s)},p(o,n){n[1]&5120&&i!==(i=o[43](o[41])+"")&&X(s,i)},d(o){o&&I(e)}}}function Vm(r){let e,t,i=Ei(r[40]),s=[];for(let o=0;o<i.length;o+=1)s[o]=hn(en(r,i,o));return{c(){e=x("div");for(let o=0;o<s.length;o+=1)s[o].c();c(e,"class",t="DobContainer "+(r[24]?"Mobile":""))},m(o,n){L(o,e,n);for(let a=0;a<s.length;a+=1)s[a]&&s[a].m(e,null)},p(o,n){if(n[1]&1112576){i=Ei(o[40]);let a;for(a=0;a<i.length;a+=1){const l=en(o,i,a);s[a]?s[a].p(l,n):(s[a]=hn(l),s[a].c(),s[a].m(e,null))}for(;a<s.length;a+=1)s[a].d(1);s.length=i.length}n[0]&16777216&&t!==(t="DobContainer "+(o[24]?"Mobile":""))&&c(e,"class",t)},d(o){o&&I(e),Cn(s,o)}}}function Um(r){let e,t,i,s,o;return{c(){e=x("vaadin-combo-box"),A(e,"class","datePickerBox"),A(e,"label",t=r[43]("year")),A(e,"items",r[44]),A(e,"disabled",i=r[42].isYearDisabled)},m(n,a){L(n,e,a),s||(o=oe(e,"change",r[65]),s=!0)},p(n,a){a[1]&4096&&t!==(t=n[43]("year"))&&A(e,"label",t),a[1]&2048&&i!==(i=n[42].isYearDisabled)&&A(e,"disabled",i)},d(n){n&&I(e),s=!1,o()}}}function $m(r){let e,t,i,s,o;return{c(){e=x("vaadin-combo-box"),A(e,"class","datePickerBox"),A(e,"label",t=r[43]("month")),A(e,"items",Object.keys(r[45])),A(e,"disabled",i=r[42].isMonthDisabled)},m(n,a){L(n,e,a),s||(o=oe(e,"change",r[64]),s=!0)},p(n,a){a[1]&4096&&t!==(t=n[43]("month"))&&A(e,"label",t),a[1]&2048&&i!==(i=n[42].isMonthDisabled)&&A(e,"disabled",i)},d(n){n&&I(e),s=!1,o()}}}function jm(r){let e,t,i,s,o;return{c(){e=x("vaadin-combo-box"),A(e,"class","datePickerBox"),A(e,"label",t=r[43]("day")),A(e,"items",r[46]),A(e,"disabled",i=r[42].isDayDisabled)},m(n,a){L(n,e,a),s||(o=oe(e,"change",r[63]),s=!0)},p(n,a){a[1]&4096&&t!==(t=n[43]("day"))&&A(e,"label",t),a[1]&2048&&i!==(i=n[42].isDayDisabled)&&A(e,"disabled",i)},d(n){n&&I(e),s=!1,o()}}}function hn(r){let e;function t(o,n){if(o[100]==="dd")return jm;if(o[100]==="mm")return $m;if(o[100]==="yyyy")return Um}let i=t(r),s=i&&i(r);return{c(){s&&s.c(),e=ds()},m(o,n){s&&s.m(o,n),L(o,e,n)},p(o,n){i===(i=t(o))&&s?s.p(o,n):(s&&s.d(1),s=i&&i(o),s&&(s.c(),s.m(e.parentNode,e)))},d(o){o&&I(e),s&&s.d(o)}}}function Gm(r){let e,t,i,s,o,n=r[1]&&tn(r);function a(u,h){return u[16]?Im:Tm}let l=a(r),d=l(r);return{c(){n&&n.c(),e=ds(),t=H(),i=x("div"),s=H(),o=x("div"),d.c(),c(i,"class","g-recaptcha"),c(i,"data-sitekey",r[1]),c(o,"class","GeneralPlayerForgotPasswordForm")},m(u,h){n&&n.m(document.head,null),p(document.head,e),L(u,t,h),L(u,i,h),L(u,s,h),L(u,o,h),d.m(o,null),r[77](o)},p(u,h){u[1]?n?n.p(u,h):(n=tn(u),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null),h[0]&2&&c(i,"data-sitekey",u[1]),l===(l=a(u))&&d?d.p(u,h):(d.d(1),d=l(u),d&&(d.c(),d.m(o,null)))},i:le,o:le,d(u){u&&(I(t),I(i),I(s),I(o)),n&&n.d(u),I(e),d.d(),r[77](null)}}}function qm(r,e,t){let i;yn(r,aa,b=>t(43,i=b));let{endpoint:s=""}=e,{forgotpasswordkey:o=""}=e,{captchakey:n=""}=e,{lang:a="en"}=e,{simplepasswordvalidation:l="false"}=e,{mbsource:d}=e,{clientstyling:u=""}=e,{clientstylingurl:h=""}=e,{translationurl:f=""}=e,{savecredentials:m=""}=e,{hastosetpass:_="false"}=e,{passwordregex:g=""}=e,{dobformat:v=""}=e,{mindobyears:w=18}=e,{maxdobyears:y=100}=e,{resetviasms:E="false"}=e,{phoneregex:T=""}=e,{phoneprefixeditable:C="false"}=e,{smscodemaxattempts:D="5"}=e,{smscodelength:z="6"}=e,{smscodettl:pe="5"}=e,{resenddelay:te="1"}=e,ae=!1,ue=!1,V=!0,re=!1,xe=!1,be="",he=!1,Ee=!1,ce=!1,me=!1,Ae=!1,Oe=window.navigator.userAgent,W="",Q=!1,k=sessionStorage.getItem("resetScreenWasSeen")==="true",Ne=!1,_e=!1,U,S,Y=!1,ke=!1,ie="",J="",G,ve=!1,Z,Rs,pl=Array.from({length:y-w+1},(b,$)=>new Date().getFullYear()-w-$),Ds={January:"01",February:"02",March:"03",April:"04",May:"05",June:"06",July:"07",August:"08",September:"09",October:"10",November:"11",December:"12"},ml=Array.from({length:31},(b,$)=>$+1),Ve=[],Hs="",Yr=!0,ye={isDayDisabled:!1,isMonthDisabled:!1,isYearDisabled:!1},_l=["mm/dd/yyyy","dd/mm/yyyy","yyyy/mm/dd"],Pt={dd:null,mm:null,yyyy:null},zs="";Ph({withLocale:"en",translations:{}});const gl=()=>{fetch(f).then($=>$.json()).then($=>{Object.keys($).forEach(ee=>{_o(ee,$[ee])})}).catch($=>{console.log($)})};Object.keys(go).forEach(b=>{_o(b,go[b])});const Qt={email:/^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i,password:/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[^\w\s]).{8,20}$/},bl=()=>{t(26,Ae=v?!me&&!Yr:!me)},vl=b=>!!(Qt.email.test(b)&&b.length<=100),Fs=()=>{t(25,me=!vl(be)),bl()},Et=b=>{switch(b){case"userNewPassword":t(33,Y=!Y),t(31,U.type=Y?"text":"password",U);break;case"userConfirmPassword":t(34,ke=!ke),t(32,S.type=ke?"text":"password",S);break}},er=b=>{switch(b){case"ToSMSReset":{t(17,ue=!0),t(19,re=!1),t(18,V=!1),t(20,xe=!1);break}case"ToEmailSuccess":t(19,re=!1),t(18,V=!1),t(17,ue=!1),t(20,xe=!0);break;case"ToReset":t(18,V=k),t(22,he=!k),t(17,ue=!1),k=!0,E!=="true"&&sessionStorage.setItem("resetScreenWasSeen","true");break;case"ToSuccess":t(22,he=!1),t(17,ue=!1),t(23,Ee=!0);break}},Zr=()=>{window.postMessage({type:"ToLogin"},window.location.href)},yl=()=>new Promise((b,$)=>{grecaptcha.ready(()=>{grecaptcha.execute(n,{action:"submit"}).then(ee=>{b(ee)})})}),Vs=b=>{b.preventDefault(),t(16,ae=!0),yl().then($=>{let ee=new URL(`${s}/v1/player/resetpassword`),Ue={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json","g-recaptcha-response":$}};ee.searchParams.append("email",be),v&&ee.searchParams.append("birthDate",zs),fetch(ee,Ue).then(Re=>$s(Re)).then(()=>{er("ToEmailSuccess")}).catch(Re=>{t(19,re=!0),console.error("There was an error with the player balance request.",Re)}).finally(()=>{t(16,ae=!1),k=!1,sessionStorage.setItem("resetScreenWasSeen","false")})})},wl=()=>{if(t(55,v=v.toLowerCase()),!_l.includes(v))return t(41,Hs="dobFormatError");t(40,Ve=v.split("/")),t(42,ye.isDayDisabled=Ve[0]!=="dd",ye),t(42,ye.isMonthDisabled=Ve[0]!=="mm",ye),t(42,ye.isYearDisabled=Ve[0]!=="yyyy",ye)},tr=(b,$)=>{Pt[$]=b.target.value,Yr=Object.values(Pt).some(ee=>!ee),Ve.forEach((ee,Ue)=>{if($===ee)switch(Ve[Ue+1]){case"dd":t(42,ye.isDayDisabled=!1,ye);case"mm":t(42,ye.isMonthDisabled=!1,ye);break;case"yyyy":t(42,ye.isYearDisabled=!1,ye);break}}),Yr||(zs=`${Pt.yyyy}-${Ds[Pt.mm]}-${Pt.dd}`),Fs()},Us=b=>{b.preventDefault();let $=new URL(`${s}/v1/player/ResetPasswordByHashKey`),ee={hashKey:o,plainTextPassword:ie};E==="true"&&(ee.isUserHash=!0);let Ue={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(ee)};fetch($,Ue).then(Re=>$s(Re)).then(Re=>{t(37,ve=!1),er("ToSuccess")}).catch(Re=>{t(37,ve=!0),console.error("There was an error with changing the password.",Re)})},xl=()=>{o&&o.length>0&&er("ToReset")},Pl=()=>{E==="true"&&!o&&er("ToSMSReset")},El=()=>{!Ne&&!_e&&ie&&J?t(28,Q=!0):t(28,Q=!1)},Xr=b=>(l=="true"&&(Qt.password=/^(?!.* ).{8,20}$/),!!Qt.password.test(b)),Cl=(b,$,ee)=>{ee.id==="new-password"?(t(29,Ne=!Xr($)),J&&t(30,_e=ie===J?!Xr($):!0)):t(30,_e=ie===J?!Xr($):!0),El()},$s=b=>Ct(this,null,function*(){return b.json().catch(()=>null).then($=>{var ee;if(b.status>=300){const Ue=((ee=$==null?void 0:$.thirdPartyResponse)==null?void 0:ee.errorCode)||"generalError";return t(27,W=i(Ue)),window.postMessage({type:"WidgetNotification",data:{type:"error",message:W}},window.location.href),Promise.reject(W)}return $})}),Sl=()=>{Eh(a)},Al=()=>{t(38,Z=i(_==="true"?"hasToSetPassTitle":"forgotPasswordTitle")),t(39,Rs=_==="true"?i("resetPasswordSubtitle"):"")},js=b=>{!b||!b.data||b.data.type==="SwitchToResetPasswordScreen"&&t(54,o=b.data.key)};Sn(()=>Ct(this,null,function*(){return xh(Oe)&&t(24,ce=!0),window.addEventListener("message",js),()=>{window.removeEventListener("message",js)}}));const Tl=()=>Zr();function Il(){be=this.value,t(21,be)}const Ol=b=>tr(b,"dd"),Nl=b=>tr(b,"mm"),kl=b=>tr(b,"yyyy"),Ml=b=>Vs(b);function Ll(){ie=this.value,t(35,ie)}function Bl(b){at[b?"unshift":"push"](()=>{U=b,t(31,U)})}const Rl=()=>Et("userNewPassword"),Dl=()=>Et("userNewPassword");function Hl(){J=this.value,t(36,J)}function zl(b){at[b?"unshift":"push"](()=>{S=b,t(32,S)})}const Fl=()=>Et("userConfirmPassword"),Vl=()=>Et("userConfirmPassword"),Ul=b=>Us(b),$l=()=>Zr();function jl(b){at[b?"unshift":"push"](()=>{G=b,t(15,G)})}return r.$$set=b=>{"endpoint"in b&&t(0,s=b.endpoint),"forgotpasswordkey"in b&&t(54,o=b.forgotpasswordkey),"captchakey"in b&&t(1,n=b.captchakey),"lang"in b&&t(2,a=b.lang),"simplepasswordvalidation"in b&&t(3,l=b.simplepasswordvalidation),"mbsource"in b&&t(4,d=b.mbsource),"clientstyling"in b&&t(5,u=b.clientstyling),"clientstylingurl"in b&&t(6,h=b.clientstylingurl),"translationurl"in b&&t(7,f=b.translationurl),"savecredentials"in b&&t(8,m=b.savecredentials),"hastosetpass"in b&&t(56,_=b.hastosetpass),"passwordregex"in b&&t(57,g=b.passwordregex),"dobformat"in b&&t(55,v=b.dobformat),"mindobyears"in b&&t(58,w=b.mindobyears),"maxdobyears"in b&&t(59,y=b.maxdobyears),"resetviasms"in b&&t(60,E=b.resetviasms),"phoneregex"in b&&t(9,T=b.phoneregex),"phoneprefixeditable"in b&&t(10,C=b.phoneprefixeditable),"smscodemaxattempts"in b&&t(11,D=b.smscodemaxattempts),"smscodelength"in b&&t(12,z=b.smscodelength),"smscodettl"in b&&t(13,pe=b.smscodettl),"resenddelay"in b&&t(14,te=b.resenddelay)},r.$$.update=()=>{r.$$.dirty[1]&545259520&&E&&!o&&Pl(),r.$$.dirty[1]&8388608&&o&&xl(),r.$$.dirty[0]&4&&a&&Sl(),r.$$.dirty[0]&32800&&u&&G&&la(G,u),r.$$.dirty[0]&32832&&h&&G&&da(G,h),r.$$.dirty[0]&32784&&d&&G&&ua(G,`${d}.Style`),r.$$.dirty[0]&128&&f&&gl(),r.$$.dirty[0]&4|r.$$.dirty[1]&33554432&&_&&a&&Al(),r.$$.dirty[1]&67108864&&g&&(Qt.password=new RegExp(g)),r.$$.dirty[1]&16777216&&v&&wl()},[s,n,a,l,d,u,h,f,m,T,C,D,z,pe,te,G,ae,ue,V,re,xe,be,he,Ee,ce,me,Ae,W,Q,Ne,_e,U,S,Y,ke,ie,J,ve,Z,Rs,Ve,Hs,ye,i,pl,Ds,ml,Fs,Et,Zr,Vs,tr,Us,Cl,o,v,_,g,w,y,E,Tl,Il,Ol,Nl,kl,Ml,Ll,Bl,Rl,Dl,Hl,zl,Fl,Vl,Ul,$l,jl]}class fl extends Nn{constructor(e){super(),Tn(this,e,qm,Gm,ss,{endpoint:0,forgotpasswordkey:54,captchakey:1,lang:2,simplepasswordvalidation:3,mbsource:4,clientstyling:5,clientstylingurl:6,translationurl:7,savecredentials:8,hastosetpass:56,passwordregex:57,dobformat:55,mindobyears:58,maxdobyears:59,resetviasms:60,phoneregex:9,phoneprefixeditable:10,smscodemaxattempts:11,smscodelength:12,smscodettl:13,resenddelay:14},Am,[-1,-1,-1,-1])}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$$set({endpoint:e}),j()}get forgotpasswordkey(){return this.$$.ctx[54]}set forgotpasswordkey(e){this.$$set({forgotpasswordkey:e}),j()}get captchakey(){return this.$$.ctx[1]}set captchakey(e){this.$$set({captchakey:e}),j()}get lang(){return this.$$.ctx[2]}set lang(e){this.$$set({lang:e}),j()}get simplepasswordvalidation(){return this.$$.ctx[3]}set simplepasswordvalidation(e){this.$$set({simplepasswordvalidation:e}),j()}get mbsource(){return this.$$.ctx[4]}set mbsource(e){this.$$set({mbsource:e}),j()}get clientstyling(){return this.$$.ctx[5]}set clientstyling(e){this.$$set({clientstyling:e}),j()}get clientstylingurl(){return this.$$.ctx[6]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),j()}get translationurl(){return this.$$.ctx[7]}set translationurl(e){this.$$set({translationurl:e}),j()}get savecredentials(){return this.$$.ctx[8]}set savecredentials(e){this.$$set({savecredentials:e}),j()}get hastosetpass(){return this.$$.ctx[56]}set hastosetpass(e){this.$$set({hastosetpass:e}),j()}get passwordregex(){return this.$$.ctx[57]}set passwordregex(e){this.$$set({passwordregex:e}),j()}get dobformat(){return this.$$.ctx[55]}set dobformat(e){this.$$set({dobformat:e}),j()}get mindobyears(){return this.$$.ctx[58]}set mindobyears(e){this.$$set({mindobyears:e}),j()}get maxdobyears(){return this.$$.ctx[59]}set maxdobyears(e){this.$$set({maxdobyears:e}),j()}get resetviasms(){return this.$$.ctx[60]}set resetviasms(e){this.$$set({resetviasms:e}),j()}get phoneregex(){return this.$$.ctx[9]}set phoneregex(e){this.$$set({phoneregex:e}),j()}get phoneprefixeditable(){return this.$$.ctx[10]}set phoneprefixeditable(e){this.$$set({phoneprefixeditable:e}),j()}get smscodemaxattempts(){return this.$$.ctx[11]}set smscodemaxattempts(e){this.$$set({smscodemaxattempts:e}),j()}get smscodelength(){return this.$$.ctx[12]}set smscodelength(e){this.$$set({smscodelength:e}),j()}get smscodettl(){return this.$$.ctx[13]}set smscodettl(e){this.$$set({smscodettl:e}),j()}get resenddelay(){return this.$$.ctx[14]}set resenddelay(e){this.$$set({resenddelay:e}),j()}}On(fl,{endpoint:{},forgotpasswordkey:{},captchakey:{},lang:{},simplepasswordvalidation:{},mbsource:{},clientstyling:{},clientstylingurl:{},translationurl:{},savecredentials:{},hastosetpass:{},passwordregex:{},dobformat:{},mindobyears:{},maxdobyears:{},resetviasms:{},phoneregex:{},phoneprefixeditable:{},smscodemaxattempts:{},smscodelength:{},smscodettl:{},resenddelay:{}},[],[],!0);const Wm=Object.freeze(Object.defineProperty({__proto__:null,default:fl},Symbol.toStringTag,{value:"Module"}));exports.$dictionary=Je;exports.$format=aa;exports.$locale=Be;exports.GeneralPlayerForgotPasswordFormNd_ce=Wm;exports.SvelteComponent=Nn;exports.addMessages=fs;exports.add_render_callback=Ze;exports.append=p;exports.append_styles=Pn;exports.attr=c;exports.binding_callbacks=at;exports.check_outros=cd;exports.component_subscribe=yn;exports.create_bidirectional_transition=_d;exports.create_custom_element=On;exports.create_in_transition=pd;exports.create_out_transition=md;exports.destroy_each=Cn;exports.detach=I;exports.element=x;exports.ensure_array_like=Ei;exports.flush=j;exports.group_outros=hd;exports.identity=Lr;exports.init=Tn;exports.insert=L;exports.listen=oe;exports.onMount=Sn;exports.run_all=Se;exports.safe_not_equal=ss;exports.setClientStyling=la;exports.setClientStylingURL=da;exports.setStreamStyling=ua;exports.set_custom_element_data=A;exports.set_data=X;exports.set_input_value=je;exports.space=H;exports.split_css_unit=Jl;exports.text=N;exports.toggle_class=ed;exports.transition_in=An;exports.transition_out=fd;
|