@everymatrix/player-account-controller 1.45.0 → 1.45.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/components/{GeneralLogout-PMsAgsr8.js → GeneralLogout-DR-XxT8N.js} +245 -245
  2. package/components/{GeneralLogout-WbaN9lE3.cjs → GeneralLogout-bc8vhI_H.cjs} +5 -5
  3. package/components/PlayerAccountBettingHistory-BK6xPWSw.cjs +1 -0
  4. package/components/PlayerAccountBettingHistory-fca6lsNS.js +328 -0
  5. package/components/PlayerAccountBiometrics-C-3zrtyy.cjs +1 -0
  6. package/components/PlayerAccountBiometrics-CjiFJhw-.js +300 -0
  7. package/components/PlayerAccountClosure-C8BNtCld.cjs +1 -0
  8. package/components/PlayerAccountClosure-jv1Rveed.js +339 -0
  9. package/components/PlayerAccountController-B5GxyiMU.cjs +1 -0
  10. package/components/{PlayerAccountController-DRQpN2gW.js → PlayerAccountController-BJBxx9xW.js} +1973 -1973
  11. package/components/{PlayerAccountGamingLimits-BnH1h5ZI.js → PlayerAccountGamingLimits-D3HbxASA.js} +183 -183
  12. package/components/PlayerAccountGamingLimits-a_ERECbs.cjs +1 -0
  13. package/components/PlayerAccountGamingLimitsConfirmationModal-D0i0fMnV.js +306 -0
  14. package/components/PlayerAccountGamingLimitsConfirmationModal-l6qA-tGo.cjs +1 -0
  15. package/components/PlayerAccountGamingLimitsGroupEdit-C0TmN9tW.cjs +10 -0
  16. package/components/{PlayerAccountGamingLimitsGroupEdit-QO4BtCS2.js → PlayerAccountGamingLimitsGroupEdit-Ds0hHVHM.js} +966 -966
  17. package/components/{PlayerAccountGamingLimitsHistory2-_p2IXses.cjs → PlayerAccountGamingLimitsHistory2-BQABSfo3.cjs} +1 -1
  18. package/components/{PlayerAccountGamingLimitsHistory2-CJxOlPZu.js → PlayerAccountGamingLimitsHistory2-CMLSdTnW.js} +1 -1
  19. package/components/PlayerAccountGamingLimitsInfoCard-0xDp-CBL.cjs +1 -0
  20. package/components/{PlayerAccountGamingLimitsInfoCard-GwIjd7fB.js → PlayerAccountGamingLimitsInfoCard-BBL_jJC8.js} +359 -359
  21. package/components/{PlayerAccountGamingLimitsPage2Gm16-DcGsK_Nq.js → PlayerAccountGamingLimitsPage2Gm16-B7_BHyXu.js} +851 -851
  22. package/components/PlayerAccountGamingLimitsPage2Gm16-DSOYjGfv.cjs +21 -0
  23. package/components/{PlayerAccountGamingLimitsPopup-DO2f_4IF.js → PlayerAccountGamingLimitsPopup-B_VQVAW1.js} +75 -73
  24. package/components/PlayerAccountGamingLimitsPopup-CRCoJtQR.cjs +1 -0
  25. package/components/PlayerAccountGamingLimitsWrapper2-oY7Nyl9P.cjs +1 -0
  26. package/components/{PlayerAccountGamingLimitsWrapper2-CQClFTjE.js → PlayerAccountGamingLimitsWrapper2-qU20DTdn.js} +185 -185
  27. package/components/PlayerAccountMenu-Cguxd1Gn.js +576 -0
  28. package/components/PlayerAccountMenu-_QF6LQHb.cjs +1 -0
  29. package/components/{PlayerAccountModal-BPuDqVwe.js → PlayerAccountModal-BpuFEHxz.js} +49 -49
  30. package/components/PlayerAccountModal-CIR41mpM.cjs +1 -0
  31. package/components/PlayerAccountNotifications-DNWMsUnC.cjs +1 -0
  32. package/components/PlayerAccountNotifications-SC-So9Ge.js +261 -0
  33. package/components/{PlayerAccountSelfExclusion-CA2oAuhb.cjs → PlayerAccountSelfExclusion-DVLlbxoJ.cjs} +125 -125
  34. package/components/{PlayerAccountSelfExclusion-BR4bl6bz.js → PlayerAccountSelfExclusion-zuKOJE1A.js} +1794 -1794
  35. package/components/PlayerAccountTimeout-C0nlqzAC.cjs +1 -0
  36. package/components/{PlayerAccountTimeout-Df9mSPXx.js → PlayerAccountTimeout-CMxX7J1C.js} +106 -106
  37. package/components/PlayerActiveBonuses-CinsfLQL.js +986 -0
  38. package/components/PlayerActiveBonuses-bY0Y51Al.cjs +1 -0
  39. package/components/PlayerBonusCard-CQTRKi8G.js +565 -0
  40. package/components/PlayerBonusCard-DdxYH7lf.cjs +1 -0
  41. package/components/PlayerBonusHistory-CnA7jYi8.cjs +1 -0
  42. package/components/PlayerBonusHistory-Dz9N_GGZ.js +840 -0
  43. package/components/PlayerChangePassword-B9qM0mFd.js +1161 -0
  44. package/components/PlayerChangePassword-BDyXZ2_q.cjs +3 -0
  45. package/components/PlayerDeposit-CYpXuZIT.cjs +1 -0
  46. package/components/PlayerDeposit-Dvm1Z2l9.js +395 -0
  47. package/components/PlayerGamingHistory-1wUzXwQ1.js +920 -0
  48. package/components/PlayerGamingHistory-TcfH2pYz.cjs +1 -0
  49. package/components/PlayerPendingWithdrawals-DgF86kij.js +307 -0
  50. package/components/PlayerPendingWithdrawals-Dn63yKxo.cjs +1 -0
  51. package/components/PlayerProfileInfo-CsWD1vK0.cjs +1 -0
  52. package/components/PlayerProfileInfo-D-A2kQVn.js +1707 -0
  53. package/components/PlayerRealityCheck-BaBE_tNE.cjs +1 -0
  54. package/components/PlayerRealityCheck-gh3vV1ow.js +587 -0
  55. package/components/PlayerTransactionHistory-DJICk5qY.cjs +1 -0
  56. package/components/PlayerTransactionHistory-DpPF3FQq.js +311 -0
  57. package/components/PlayerWithdrawal-BHyCdUgc.js +365 -0
  58. package/components/PlayerWithdrawal-DuxGAxKs.cjs +1 -0
  59. package/es2015/player-account-controller.cjs +1 -1
  60. package/es2015/player-account-controller.js +1 -1
  61. package/package.json +2 -2
  62. package/components/PlayerAccountBettingHistory-C5O_N5I6.js +0 -328
  63. package/components/PlayerAccountBettingHistory-CvFzGDm4.cjs +0 -1
  64. package/components/PlayerAccountBiometrics--Rc4hXU1.cjs +0 -1
  65. package/components/PlayerAccountBiometrics-BIZ77T9P.js +0 -300
  66. package/components/PlayerAccountClosure-DIRkc6kA.cjs +0 -1
  67. package/components/PlayerAccountClosure-O9rY7FHF.js +0 -339
  68. package/components/PlayerAccountController-1M1FKlrd.cjs +0 -1
  69. package/components/PlayerAccountGamingLimits-Dtw0RzGI.cjs +0 -1
  70. package/components/PlayerAccountGamingLimitsConfirmationModal-CHBpCAi7.js +0 -306
  71. package/components/PlayerAccountGamingLimitsConfirmationModal-Cvsvauqa.cjs +0 -1
  72. package/components/PlayerAccountGamingLimitsGroupEdit-tfKhIo7R.cjs +0 -10
  73. package/components/PlayerAccountGamingLimitsInfoCard--AbjEx7s.cjs +0 -1
  74. package/components/PlayerAccountGamingLimitsPage2Gm16-Dymt7LmL.cjs +0 -21
  75. package/components/PlayerAccountGamingLimitsPopup-DVEuryoE.cjs +0 -1
  76. package/components/PlayerAccountGamingLimitsWrapper2-BZ-Ax67a.cjs +0 -1
  77. package/components/PlayerAccountMenu-1kpYtr6Q.cjs +0 -1
  78. package/components/PlayerAccountMenu-C9YFW_X4.js +0 -576
  79. package/components/PlayerAccountModal-DpMfe1gv.cjs +0 -1
  80. package/components/PlayerAccountNotifications-DfLcLCTk.js +0 -261
  81. package/components/PlayerAccountNotifications-Dwb_RDr0.cjs +0 -1
  82. package/components/PlayerAccountTimeout-dxzuaoP9.cjs +0 -1
  83. package/components/PlayerActiveBonuses-BJtk2_80.js +0 -986
  84. package/components/PlayerActiveBonuses-D0-qI8iz.cjs +0 -1
  85. package/components/PlayerBonusCard-BoENnXsd.cjs +0 -1
  86. package/components/PlayerBonusCard-D4MZsrSK.js +0 -565
  87. package/components/PlayerBonusHistory-3B1tPB8g.cjs +0 -1
  88. package/components/PlayerBonusHistory-CDA_Ahs-.js +0 -840
  89. package/components/PlayerChangePassword-C69CRrvS.js +0 -1161
  90. package/components/PlayerChangePassword-RpQIhFff.cjs +0 -3
  91. package/components/PlayerDeposit-BK_UhkqG.js +0 -395
  92. package/components/PlayerDeposit-COhpfcRx.cjs +0 -1
  93. package/components/PlayerGamingHistory-C8Kvaq7b.cjs +0 -1
  94. package/components/PlayerGamingHistory-CCSGdevP.js +0 -920
  95. package/components/PlayerPendingWithdrawals-CVBvRj42.cjs +0 -1
  96. package/components/PlayerPendingWithdrawals-DIp1o6Bq.js +0 -307
  97. package/components/PlayerProfileInfo-BeD6hzPW.cjs +0 -1
  98. package/components/PlayerProfileInfo-CkcYNGGP.js +0 -1707
  99. package/components/PlayerRealityCheck-B37H9_Rn.cjs +0 -1
  100. package/components/PlayerRealityCheck-UaRdeADU.js +0 -587
  101. package/components/PlayerTransactionHistory-CxYO3lnm.cjs +0 -1
  102. package/components/PlayerTransactionHistory-Da2H2goa.js +0 -311
  103. package/components/PlayerWithdrawal-DK_JxD9z.js +0 -365
  104. package/components/PlayerWithdrawal-DYkzBPcQ.cjs +0 -1
@@ -1,47 +1,47 @@
1
- "use strict";var pr=Object.defineProperty,mr=Object.defineProperties;var fr=Object.getOwnPropertyDescriptors;var Jo=Object.getOwnPropertySymbols;var _r=Object.prototype.hasOwnProperty,gr=Object.prototype.propertyIsEnumerable;var Xo=(s,t,e)=>t in s?pr(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,zt=(s,t)=>{for(var e in t||(t={}))_r.call(t,e)&&Xo(s,e,t[e]);if(Jo)for(var e of Jo(t))gr.call(t,e)&&Xo(s,e,t[e]);return s},Nt=(s,t)=>mr(s,fr(t));var ct=(s,t,e)=>new Promise((o,i)=>{var r=l=>{try{a(e.next(l))}catch(c){i(c)}},n=l=>{try{a(e.throw(l))}catch(c){i(c)}},a=l=>l.done?o(l.value):Promise.resolve(l.value).then(r,n);a((e=e.apply(s,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./GeneralLogout-WbaN9lE3.cjs");var Us={exports:{}};(function(s,t){(function(e,o){s.exports=o()})(u.commonjsGlobal,function(){var e=1e3,o=6e4,i=36e5,r="millisecond",n="second",a="minute",l="hour",c="day",d="week",h="month",p="quarter",m="year",v="date",A="Invalid Date",z=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,M=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,I={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(x){var _=["th","st","nd","rd"],f=x%100;return"["+x+(_[(f-20)%10]||_[f]||_[0])+"]"}},V=function(x,_,f){var y=String(x);return!y||y.length>=_?x:""+Array(_+1-y.length).join(f)+x},re={s:V,z:function(x){var _=-x.utcOffset(),f=Math.abs(_),y=Math.floor(f/60),g=f%60;return(_<=0?"+":"-")+V(y,2,"0")+":"+V(g,2,"0")},m:function x(_,f){if(_.date()<f.date())return-x(f,_);var y=12*(f.year()-_.year())+(f.month()-_.month()),g=_.clone().add(y,h),w=f-g<0,E=_.clone().add(y+(w?-1:1),h);return+(-(y+(f-g)/(w?g-E:E-g))||0)},a:function(x){return x<0?Math.ceil(x)||0:Math.floor(x)},p:function(x){return{M:h,y:m,w:d,d:c,D:v,h:l,m:a,s:n,ms:r,Q:p}[x]||String(x||"").toLowerCase().replace(/s$/,"")},u:function(x){return x===void 0}},j="en",G={};G[j]=I;var de="$isDayjsObject",ne=function(x){return x instanceof ae||!(!x||!x[de])},te=function x(_,f,y){var g;if(!_)return j;if(typeof _=="string"){var w=_.toLowerCase();G[w]&&(g=w),f&&(G[w]=f,g=w);var E=_.split("-");if(!g&&E.length>1)return x(E[0])}else{var k=_.name;G[k]=_,g=k}return!y&&g&&(j=g),g||!y&&j},L=function(x,_){if(ne(x))return x.clone();var f=typeof _=="object"?_:{};return f.date=x,f.args=arguments,new ae(f)},P=re;P.l=te,P.i=ne,P.w=function(x,_){return L(x,{locale:_.$L,utc:_.$u,x:_.$x,$offset:_.$offset})};var ae=function(){function x(f){this.$L=te(f.locale,null,!0),this.parse(f),this.$x=this.$x||f.x||{},this[de]=!0}var _=x.prototype;return _.parse=function(f){this.$d=function(y){var g=y.date,w=y.utc;if(g===null)return new Date(NaN);if(P.u(g))return new Date;if(g instanceof Date)return new Date(g);if(typeof g=="string"&&!/Z$/i.test(g)){var E=g.match(z);if(E){var k=E[2]-1||0,N=(E[7]||"0").substring(0,3);return w?new Date(Date.UTC(E[1],k,E[3]||1,E[4]||0,E[5]||0,E[6]||0,N)):new Date(E[1],k,E[3]||1,E[4]||0,E[5]||0,E[6]||0,N)}}return new Date(g)}(f),this.init()},_.init=function(){var f=this.$d;this.$y=f.getFullYear(),this.$M=f.getMonth(),this.$D=f.getDate(),this.$W=f.getDay(),this.$H=f.getHours(),this.$m=f.getMinutes(),this.$s=f.getSeconds(),this.$ms=f.getMilliseconds()},_.$utils=function(){return P},_.isValid=function(){return this.$d.toString()!==A},_.isSame=function(f,y){var g=L(f);return this.startOf(y)<=g&&g<=this.endOf(y)},_.isAfter=function(f,y){return L(f)<this.startOf(y)},_.isBefore=function(f,y){return this.endOf(y)<L(f)},_.$g=function(f,y,g){return P.u(f)?this[y]:this.set(g,f)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(f,y){var g=this,w=!!P.u(y)||y,E=P.p(f),k=function(D,R){var se=P.w(g.$u?Date.UTC(g.$y,R,D):new Date(g.$y,R,D),g);return w?se:se.endOf(c)},N=function(D,R){return P.w(g.toDate()[D].apply(g.toDate("s"),(w?[0,0,0,0]:[23,59,59,999]).slice(R)),g)},O=this.$W,H=this.$M,U=this.$D,Z="set"+(this.$u?"UTC":"");switch(E){case m:return w?k(1,0):k(31,11);case h:return w?k(1,H):k(0,H+1);case d:var b=this.$locale().weekStart||0,$=(O<b?O+7:O)-b;return k(w?U-$:U+(6-$),H);case c:case v:return N(Z+"Hours",0);case l:return N(Z+"Minutes",1);case a:return N(Z+"Seconds",2);case n:return N(Z+"Milliseconds",3);default:return this.clone()}},_.endOf=function(f){return this.startOf(f,!1)},_.$set=function(f,y){var g,w=P.p(f),E="set"+(this.$u?"UTC":""),k=(g={},g[c]=E+"Date",g[v]=E+"Date",g[h]=E+"Month",g[m]=E+"FullYear",g[l]=E+"Hours",g[a]=E+"Minutes",g[n]=E+"Seconds",g[r]=E+"Milliseconds",g)[w],N=w===c?this.$D+(y-this.$W):y;if(w===h||w===m){var O=this.clone().set(v,1);O.$d[k](N),O.init(),this.$d=O.set(v,Math.min(this.$D,O.daysInMonth())).$d}else k&&this.$d[k](N);return this.init(),this},_.set=function(f,y){return this.clone().$set(f,y)},_.get=function(f){return this[P.p(f)]()},_.add=function(f,y){var g,w=this;f=Number(f);var E=P.p(y),k=function(H){var U=L(w);return P.w(U.date(U.date()+Math.round(H*f)),w)};if(E===h)return this.set(h,this.$M+f);if(E===m)return this.set(m,this.$y+f);if(E===c)return k(1);if(E===d)return k(7);var N=(g={},g[a]=o,g[l]=i,g[n]=e,g)[E]||1,O=this.$d.getTime()+f*N;return P.w(O,this)},_.subtract=function(f,y){return this.add(-1*f,y)},_.format=function(f){var y=this,g=this.$locale();if(!this.isValid())return g.invalidDate||A;var w=f||"YYYY-MM-DDTHH:mm:ssZ",E=P.z(this),k=this.$H,N=this.$m,O=this.$M,H=g.weekdays,U=g.months,Z=g.meridiem,b=function(R,se,le,he){return R&&(R[se]||R(y,w))||le[se].slice(0,he)},$=function(R){return P.s(k%12||12,R,"0")},D=Z||function(R,se,le){var he=R<12?"AM":"PM";return le?he.toLowerCase():he};return w.replace(M,function(R,se){return se||function(le){switch(le){case"YY":return String(y.$y).slice(-2);case"YYYY":return P.s(y.$y,4,"0");case"M":return O+1;case"MM":return P.s(O+1,2,"0");case"MMM":return b(g.monthsShort,O,U,3);case"MMMM":return b(U,O);case"D":return y.$D;case"DD":return P.s(y.$D,2,"0");case"d":return String(y.$W);case"dd":return b(g.weekdaysMin,y.$W,H,2);case"ddd":return b(g.weekdaysShort,y.$W,H,3);case"dddd":return H[y.$W];case"H":return String(k);case"HH":return P.s(k,2,"0");case"h":return $(1);case"hh":return $(2);case"a":return D(k,N,!0);case"A":return D(k,N,!1);case"m":return String(N);case"mm":return P.s(N,2,"0");case"s":return String(y.$s);case"ss":return P.s(y.$s,2,"0");case"SSS":return P.s(y.$ms,3,"0");case"Z":return E}return null}(R)||E.replace(":","")})},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(f,y,g){var w,E=this,k=P.p(y),N=L(f),O=(N.utcOffset()-this.utcOffset())*o,H=this-N,U=function(){return P.m(E,N)};switch(k){case m:w=U()/12;break;case h:w=U();break;case p:w=U()/3;break;case d:w=(H-O)/6048e5;break;case c:w=(H-O)/864e5;break;case l:w=H/i;break;case a:w=H/o;break;case n:w=H/e;break;default:w=H}return g?w:P.a(w)},_.daysInMonth=function(){return this.endOf(h).$D},_.$locale=function(){return G[this.$L]},_.locale=function(f,y){if(!f)return this.$L;var g=this.clone(),w=te(f,y,!0);return w&&(g.$L=w),g},_.clone=function(){return P.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},x}(),X=ae.prototype;return L.prototype=X,[["$ms",r],["$s",n],["$m",a],["$H",l],["$W",c],["$M",h],["$y",m],["$D",v]].forEach(function(x){X[x[1]]=function(_){return this.$g(_,x[0],x[1])}}),L.extend=function(x,_){return x.$i||(x(_,ae,L),x.$i=!0),L},L.locale=te,L.isDayjs=ne,L.unix=function(x){return L(1e3*x)},L.en=G[j],L.Ls=G,L.p={},L})})(Us);var vr=Us.exports;const Lt=u.getDefaultExportFromCjs(vr);function Zo(s,t){u.addMessages(s,t)}function yr(s){u.$locale.set(s)}const Qo={en:{titleSelfExclusion:"Self-Exclusion",selfExclusionText1:"We recognize that gambling can be harmful so to prevent problems associated with gambling, we offer our users the ability to exclude from all forms of betting on our site for a certain indefinite period of time.",selfExclusionText2:'Self-exclusion takes effect from the time it is set for your chosen period. Select a timeframe below then click "Save".',selfExclusionText3:"During self-exclusion, you will be able to access your account and withdraw funds but you will not be able to deposit or place any bets. In the case of permanent self-exclusion, it is only possible to revoke Self-exclusion upon written request and only 6 months after its initial application. Please note that an alternative way to request self-exclusion is to contact Customer Service as follows:",selfExclusionText4:"E-mail:",duration:"Duration:",dateInstructions:"In order to manually input date use the following format:",forever:"Forever",save:"Save",noPeriodSelected:"Please select a self exclusion period",selectAPeriod:"Select a period",temporarySelfExclusion:"Your self-exclusion period will last until the {date} 23:59.",permanentSelfExclusion:"Your self-exclusion period will be permanent.",SelfExclusionFor6Months:"6 Months",SelfExclusionFor1Year:"1 Year",SelfExclusionFor5Years:"5 Years",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Until"},"zh-hk":{titleSelfExclusion:"自我排除",selfExclusionText1:"我們意識到賭博可能帶來危害,為防止與賭博相關的問題,我們為用戶提供自我排除功能,讓您可以在我們的網站上暫停所有形式的投注,持續一定或不定期限。",selfExclusionText2:"自我排除自您選定的期限開始生效。請選擇以下的時長,然後點擊「儲存」。",selfExclusionText3:"在自我排除期間,您仍然可以進入您的帳戶並提取資金,但無法存款或進行任何投注。如果是永久自我排除,只有在書面申請並且自申請起6個月後才可撤銷自我排除。請注意,另一種申請自我排除的方法是聯絡客戶服務,聯絡方式如下:",selfExclusionText4:"電郵:",duration:"時長:",dateInstructions:"為了手動輸入日期,請使用以下格式",forever:"永久",save:"儲存",noPeriodSelected:"請選擇自我排除時期",selectAPeriod:"選擇時長",temporarySelfExclusion:"您的自我排除期將持續至{date} 23:59。",permanentSelfExclusion:"您的自我排除期將會是永久的。",SelfExclusionFor6Months:"6個月",SelfExclusionFor1Year:"1年",SelfExclusionFor5Years:"5年",SelfExclusionPermanent:"永久",SelfExclusionUntilSelectedDate:"直到"},fr:{titleSelfExclusion:"Auto-exclusion",selfExclusionText1:"Nous reconnaissons que le jeu peut être nuisible, c'est pourquoi, afin de prévenir les problèmes associés au jeu, nous offrons à nos utilisateurs la possibilité de s'exclure de toutes les formes de paris sur notre site pour une période déterminée ou indéfinie.",selfExclusionText2:"L'auto-exclusion prend effet à partir du moment où elle est définie pour la période que vous avez choisie. Sélectionnez une durée ci-dessous, puis cliquez sur « Enregistrer ».",selfExclusionText3:"Pendant la période d'auto-exclusion, vous pourrez accéder à votre compte et retirer des fonds, mais vous ne pourrez ni déposer, ni placer de paris. Dans le cas d'une auto-exclusion permanente, il n'est possible de révoquer l'auto-exclusion que sur demande écrite et seulement 6 mois après son application initiale. Veuillez noter qu'une autre manière de demander une auto-exclusion est de contacter le service client comme suit :",selfExclusionText4:"E-mail :",duration:"Durée :",dateInstructions:"Pour saisir la date manuellement, utilisez le format suivant:",forever:"Pour toujours",save:"Enregistrer",noPeriodSelected:"Veuillez sélectionner une période d'auto-exclusion",selectAPeriod:"Sélectionner une période",temporarySelfExclusion:"Votre période d'auto-exclusion durera jusqu'au {date} 23:59.",permanentSelfExclusion:"Votre période d'auto-exclusion sera permanente.",SelfExclusionFor6Months:"6 mois",SelfExclusionFor1Year:"1 an",SelfExclusionFor5Years:"5 ans",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Jusqu'à"},ro:{titleSelfExclusion:"Auto-excludere",selfExclusionText1:"Recunoaștem că jocurile de noroc pot fi dăunătoare, așa că pentru a preveni problemele asociate cu acestea, oferim utilizatorilor noștri posibilitatea de a se auto-exclude de la toate formele de pariuri de pe site-ul nostru pentru o perioadă determinată sau nedeterminată.",selfExclusionText2:"Auto-excluderea intră în vigoare din momentul în care este setată pentru perioada aleasă de dvs. Selectați o perioadă mai jos, apoi faceți clic pe „Salvează”.",selfExclusionText3:"În timpul auto-excluderii, veți putea accesa contul dvs. și retrage fonduri, dar nu veți putea depune sau plasa pariuri. În cazul auto-excluderii permanente, este posibil să revocați auto-excluderea doar la cerere scrisă și numai după 6 luni de la aplicarea inițială. Vă rugăm să rețineți că o altă modalitate de a solicita auto-excluderea este să contactați Serviciul Clienți astfel:",selfExclusionText4:"E-mail:",duration:"Durată:",dateInstructions:"Pentru a introduce manual data, utilizați următorul format:",forever:"Permanent",save:"Salvează",noPeriodSelected:"Vă rugăm să selectați o perioadă de auto-excludere",selectAPeriod:"Selectați o perioadă",temporarySelfExclusion:"Perioada dvs. de auto-excludere va dura până la {date} 23:59.",permanentSelfExclusion:"Perioada dvs. de auto-excludere va fi permanentă.",SelfExclusionFor6Months:"6 luni",SelfExclusionFor1Year:"1 an",SelfExclusionFor5Years:"5 ani",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Până la"},es:{titleSelfExclusion:"Autoexclusión",selfExclusionText1:"Reconocemos que el juego puede ser perjudicial, por lo que para prevenir problemas asociados al juego, ofrecemos a nuestros usuarios la posibilidad de excluirse de todas las formas de apuestas en nuestro sitio por un período determinado o indefinido.",selfExclusionText2:'La autoexclusión entra en vigor desde el momento en que se establece para el período que usted elija. Seleccione un período a continuación y luego haga clic en "Guardar".',selfExclusionText3:"Durante el período de autoexclusión, podrá acceder a su cuenta y retirar fondos, pero no podrá depositar ni realizar apuestas. En el caso de la autoexclusión permanente, solo es posible revocar la autoexclusión mediante solicitud por escrito y solo 6 meses después de su aplicación inicial. Tenga en cuenta que otra forma de solicitar la autoexclusión es contactando al Servicio de Atención al Cliente de la siguiente manera:",selfExclusionText4:"Correo electrónico:",duration:"Duración:",dateInstructions:"Para introducir la fecha manualmente, utilice el siguiente formato:",forever:"Permanente",save:"Guardar",noPeriodSelected:"Por favor, seleccione un período de autoexclusión",selectAPeriod:"Seleccione un período",temporarySelfExclusion:"Su período de autoexclusión durará hasta el {date} 23:59.",permanentSelfExclusion:"Su período de autoexclusión será permanente.",SelfExclusionFor6Months:"6 meses",SelfExclusionFor1Year:"1 año",SelfExclusionFor5Years:"5 años",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Hasta"},pt:{titleSelfExclusion:"Autoexclusão",selfExclusionText1:"Reconhecemos que o jogo pode ser prejudicial, por isso, para prevenir problemas associados ao jogo, oferecemos aos nossos utilizadores a possibilidade de se autoexcluírem de todas as formas de apostas no nosso site por um período definido ou indefinido.",selfExclusionText2:'A autoexclusão entra em vigor a partir do momento em que é definida para o período escolhido. Selecione um período abaixo e clique em "Guardar".',selfExclusionText3:"Durante o período de autoexclusão, poderá aceder à sua conta e levantar fundos, mas não poderá depositar nem realizar apostas. No caso de autoexclusão permanente, só é possível revogar a autoexclusão mediante pedido por escrito e apenas 6 meses após a sua aplicação inicial. Note que outra forma de solicitar a autoexclusão é contactar o Serviço de Apoio ao Cliente da seguinte forma:",selfExclusionText4:"E-mail:",duration:"Duração:",dateInstructions:"Para inserir a data manualmente, utilize o seguinte formato:",forever:"Para sempre",save:"Guardar",noPeriodSelected:"Por favor, selecione um período de autoexclusão",selectAPeriod:"Selecione um período",temporarySelfExclusion:"O seu período de autoexclusão durará até {date} às 23:59.",permanentSelfExclusion:"O seu período de autoexclusão será permanente.",SelfExclusionFor6Months:"6 meses",SelfExclusionFor1Year:"1 ano",SelfExclusionFor5Years:"5 anos",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Até"},hr:{titleSelfExclusion:"Samoisključenje",selfExclusionText1:"Prepoznajemo da kockanje može biti štetno, stoga, kako bismo spriječili probleme povezane s kockanjem, korisnicima nudimo mogućnost samoisključenja iz svih oblika klađenja na našoj stranici na određeno ili neodređeno vrijeme.",selfExclusionText2:'Samoisključenje stupa na snagu od trenutka kada je postavljeno za odabrano razdoblje. Odaberite razdoblje u nastavku, a zatim kliknite "Spremi".',selfExclusionText3:"Tijekom razdoblja samoisključenja moći ćete pristupiti svom računu i podići sredstva, ali nećete moći uplatiti novac niti postavljati oklade. U slučaju trajnog samoisključenja, samoisključenje se može ukinuti isključivo na pisani zahtjev i tek 6 mjeseci nakon njegove prve primjene. Imajte na umu da je alternativni način zahtjeva za samoisključenje kontaktiranje korisničke podrške na sljedeći način:",selfExclusionText4:"E-mail:",duration:"Trajanje:",dateInstructions:"Za ručni unos datuma koristite sljedeći format:",forever:"Zauvijek",save:"Spremi",noPeriodSelected:"Odaberite razdoblje samoisključenja",selectAPeriod:"Odaberite razdoblje",temporarySelfExclusion:"Vaše razdoblje samoisključenja trajat će do {date} u 23:59.",permanentSelfExclusion:"Vaše razdoblje samoisključenja bit će trajno.",SelfExclusionFor6Months:"6 mjeseci",SelfExclusionFor1Year:"1 godina",SelfExclusionFor5Years:"5 godina",SelfExclusionPermanent:"Trajno",SelfExclusionUntilSelectedDate:"Do"},"pt-br":{titleSelfExclusion:"Autoexclusão",selfExclusionText1:"Reconhecemos que o jogo pode ser prejudicial, por isso, para prevenir problemas associados ao jogo, oferecemos aos nossos usuários a possibilidade de se autoexcluírem de todas as formas de apostas em nosso site por um período determinado ou indeterminado.",selfExclusionText2:'A autoexclusão entra em vigor a partir do momento em que é configurada para o período escolhido. Selecione um período abaixo e clique em "Salvar".',selfExclusionText3:"Durante o período de autoexclusão, você poderá acessar sua conta e retirar fundos, mas não poderá depositar nem realizar apostas. No caso de autoexclusão permanente, só é possível revogar a autoexclusão mediante solicitação por escrito e apenas 6 meses após sua aplicação inicial. Observe que outra maneira de solicitar a autoexclusão é entrar em contato com o Atendimento ao Cliente da seguinte forma:",selfExclusionText4:"E-mail:",duration:"Duração:",dateInstructions:"Para inserir a data manualmente, utilize o seguinte formato:",forever:"Para sempre",save:"Salvar",noPeriodSelected:"Por favor, selecione um período de autoexclusão",selectAPeriod:"Selecione um período",temporarySelfExclusion:"Seu período de autoexclusão durará até {date} às 23:59.",permanentSelfExclusion:"Seu período de autoexclusão será permanente.",SelfExclusionFor6Months:"6 meses",SelfExclusionFor1Year:"1 ano",SelfExclusionFor5Years:"5 anos",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Até"},"es-mx":{titleSelfExclusion:"Autoexclusión",selfExclusionText1:"Reconocemos que el juego puede ser perjudicial, por lo que para prevenir problemas asociados al juego, ofrecemos a nuestros usuarios la posibilidad de autoexcluirse de todas las formas de apuestas en nuestro sitio por un período determinado o indefinido.",selfExclusionText2:'La autoexclusión entra en vigor desde el momento en que se establece para el período que usted elija. Seleccione un período a continuación y luego haga clic en "Guardar".',selfExclusionText3:"Durante el período de autoexclusión, podrá acceder a su cuenta y retirar fondos, pero no podrá depositar ni realizar apuestas. En el caso de la autoexclusión permanente, solo es posible revocar la autoexclusión mediante solicitud por escrito y solo 6 meses después de su aplicación inicial. Tenga en cuenta que otra manera de solicitar la autoexclusión es contactando al Servicio al Cliente de la siguiente manera:",selfExclusionText4:"Correo electrónico:",duration:"Duración:",dateInstructions:"Para introducir la fecha manualmente, utilice el siguiente formato:",forever:"Permanente",save:"Guardar",noPeriodSelected:"Por favor, seleccione un período de autoexclusión",selectAPeriod:"Seleccione un período",temporarySelfExclusion:"Su período de autoexclusión durará hasta el {date} 23:59.",permanentSelfExclusion:"Su período de autoexclusión será permanente.",SelfExclusionFor6Months:"6 meses",SelfExclusionFor1Year:"1 año",SelfExclusionFor5Years:"5 años",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Hasta"},tr:{titleSelfExclusion:"Kendi Kendini Hariç Tutma",selfExclusionText1:"Kumarın zararlı olabileceğini kabul ediyoruz, bu nedenle kumarla ilgili sorunları önlemek için, kullanıcılarımıza sitemizdeki tüm bahis türlerinden belirli veya belirsiz bir süre için kendilerini hariç tutma imkânı sunuyoruz.",selfExclusionText2:'Kendi kendini hariç tutma, seçtiğiniz dönem için ayarlandığı andan itibaren yürürlüğe girer. Aşağıdan bir süre seçin ve ardından "Kaydet"e tıklayın.',selfExclusionText3:"Kendi kendini hariç tutma süresi boyunca hesabınıza erişebilir ve para çekebilirsiniz, ancak para yatıramaz veya bahis oynayamazsınız. Kalıcı hariç tutma durumunda, sadece yazılı talep üzerine ve ilk uygulamadan 6 ay sonra hariç tutma iptal edilebilir. Lütfen kendi kendini hariç tutma talep etmenin alternatif bir yolunun Müşteri Hizmetleri ile iletişime geçmek olduğunu unutmayın:",selfExclusionText4:"E-posta:",duration:"Süre:",dateInstructions:"Tarihi elle girmek için aşağıdaki formatı kullanın:",forever:"Kalıcı",save:"Kaydet",noPeriodSelected:"Lütfen bir hariç tutma süresi seçin",selectAPeriod:"Bir süre seçin",temporarySelfExclusion:"Kendi kendini hariç tutma süreniz {date} 23:59'a kadar sürecektir.",permanentSelfExclusion:"Kendi kendini hariç tutma süreniz kalıcı olacaktır.",SelfExclusionFor6Months:"6 Ay",SelfExclusionFor1Year:"1 Yıl",SelfExclusionFor5Years:"5 Yıl",SelfExclusionPermanent:"Kalıcı",SelfExclusionUntilSelectedDate:"Kadar"}};/**
1
+ "use strict";var pr=Object.defineProperty,mr=Object.defineProperties;var fr=Object.getOwnPropertyDescriptors;var Jo=Object.getOwnPropertySymbols;var _r=Object.prototype.hasOwnProperty,gr=Object.prototype.propertyIsEnumerable;var Xo=(i,t,e)=>t in i?pr(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,zt=(i,t)=>{for(var e in t||(t={}))_r.call(t,e)&&Xo(i,e,t[e]);if(Jo)for(var e of Jo(t))gr.call(t,e)&&Xo(i,e,t[e]);return i},Nt=(i,t)=>mr(i,fr(t));var ct=(i,t,e)=>new Promise((o,s)=>{var r=l=>{try{a(e.next(l))}catch(c){s(c)}},n=l=>{try{a(e.throw(l))}catch(c){s(c)}},a=l=>l.done?o(l.value):Promise.resolve(l.value).then(r,n);a((e=e.apply(i,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./GeneralLogout-bc8vhI_H.cjs");var Ui={exports:{}};(function(i,t){(function(e,o){i.exports=o()})(u.commonjsGlobal,function(){var e=1e3,o=6e4,s=36e5,r="millisecond",n="second",a="minute",l="hour",c="day",d="week",h="month",p="quarter",m="year",y="date",A="Invalid Date",z=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,M=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,I={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(x){var _=["th","st","nd","rd"],f=x%100;return"["+x+(_[(f-20)%10]||_[f]||_[0])+"]"}},V=function(x,_,f){var v=String(x);return!v||v.length>=_?x:""+Array(_+1-v.length).join(f)+x},re={s:V,z:function(x){var _=-x.utcOffset(),f=Math.abs(_),v=Math.floor(f/60),g=f%60;return(_<=0?"+":"-")+V(v,2,"0")+":"+V(g,2,"0")},m:function x(_,f){if(_.date()<f.date())return-x(f,_);var v=12*(f.year()-_.year())+(f.month()-_.month()),g=_.clone().add(v,h),w=f-g<0,E=_.clone().add(v+(w?-1:1),h);return+(-(v+(f-g)/(w?g-E:E-g))||0)},a:function(x){return x<0?Math.ceil(x)||0:Math.floor(x)},p:function(x){return{M:h,y:m,w:d,d:c,D:y,h:l,m:a,s:n,ms:r,Q:p}[x]||String(x||"").toLowerCase().replace(/s$/,"")},u:function(x){return x===void 0}},j="en",G={};G[j]=I;var de="$isDayjsObject",ne=function(x){return x instanceof ae||!(!x||!x[de])},oe=function x(_,f,v){var g;if(!_)return j;if(typeof _=="string"){var w=_.toLowerCase();G[w]&&(g=w),f&&(G[w]=f,g=w);var E=_.split("-");if(!g&&E.length>1)return x(E[0])}else{var P=_.name;G[P]=_,g=P}return!v&&g&&(j=g),g||!v&&j},L=function(x,_){if(ne(x))return x.clone();var f=typeof _=="object"?_:{};return f.date=x,f.args=arguments,new ae(f)},k=re;k.l=oe,k.i=ne,k.w=function(x,_){return L(x,{locale:_.$L,utc:_.$u,x:_.$x,$offset:_.$offset})};var ae=function(){function x(f){this.$L=oe(f.locale,null,!0),this.parse(f),this.$x=this.$x||f.x||{},this[de]=!0}var _=x.prototype;return _.parse=function(f){this.$d=function(v){var g=v.date,w=v.utc;if(g===null)return new Date(NaN);if(k.u(g))return new Date;if(g instanceof Date)return new Date(g);if(typeof g=="string"&&!/Z$/i.test(g)){var E=g.match(z);if(E){var P=E[2]-1||0,N=(E[7]||"0").substring(0,3);return w?new Date(Date.UTC(E[1],P,E[3]||1,E[4]||0,E[5]||0,E[6]||0,N)):new Date(E[1],P,E[3]||1,E[4]||0,E[5]||0,E[6]||0,N)}}return new Date(g)}(f),this.init()},_.init=function(){var f=this.$d;this.$y=f.getFullYear(),this.$M=f.getMonth(),this.$D=f.getDate(),this.$W=f.getDay(),this.$H=f.getHours(),this.$m=f.getMinutes(),this.$s=f.getSeconds(),this.$ms=f.getMilliseconds()},_.$utils=function(){return k},_.isValid=function(){return this.$d.toString()!==A},_.isSame=function(f,v){var g=L(f);return this.startOf(v)<=g&&g<=this.endOf(v)},_.isAfter=function(f,v){return L(f)<this.startOf(v)},_.isBefore=function(f,v){return this.endOf(v)<L(f)},_.$g=function(f,v,g){return k.u(f)?this[v]:this.set(g,f)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(f,v){var g=this,w=!!k.u(v)||v,E=k.p(f),P=function(D,R){var ie=k.w(g.$u?Date.UTC(g.$y,R,D):new Date(g.$y,R,D),g);return w?ie:ie.endOf(c)},N=function(D,R){return k.w(g.toDate()[D].apply(g.toDate("s"),(w?[0,0,0,0]:[23,59,59,999]).slice(R)),g)},O=this.$W,H=this.$M,U=this.$D,Z="set"+(this.$u?"UTC":"");switch(E){case m:return w?P(1,0):P(31,11);case h:return w?P(1,H):P(0,H+1);case d:var b=this.$locale().weekStart||0,$=(O<b?O+7:O)-b;return P(w?U-$:U+(6-$),H);case c:case y:return N(Z+"Hours",0);case l:return N(Z+"Minutes",1);case a:return N(Z+"Seconds",2);case n:return N(Z+"Milliseconds",3);default:return this.clone()}},_.endOf=function(f){return this.startOf(f,!1)},_.$set=function(f,v){var g,w=k.p(f),E="set"+(this.$u?"UTC":""),P=(g={},g[c]=E+"Date",g[y]=E+"Date",g[h]=E+"Month",g[m]=E+"FullYear",g[l]=E+"Hours",g[a]=E+"Minutes",g[n]=E+"Seconds",g[r]=E+"Milliseconds",g)[w],N=w===c?this.$D+(v-this.$W):v;if(w===h||w===m){var O=this.clone().set(y,1);O.$d[P](N),O.init(),this.$d=O.set(y,Math.min(this.$D,O.daysInMonth())).$d}else P&&this.$d[P](N);return this.init(),this},_.set=function(f,v){return this.clone().$set(f,v)},_.get=function(f){return this[k.p(f)]()},_.add=function(f,v){var g,w=this;f=Number(f);var E=k.p(v),P=function(H){var U=L(w);return k.w(U.date(U.date()+Math.round(H*f)),w)};if(E===h)return this.set(h,this.$M+f);if(E===m)return this.set(m,this.$y+f);if(E===c)return P(1);if(E===d)return P(7);var N=(g={},g[a]=o,g[l]=s,g[n]=e,g)[E]||1,O=this.$d.getTime()+f*N;return k.w(O,this)},_.subtract=function(f,v){return this.add(-1*f,v)},_.format=function(f){var v=this,g=this.$locale();if(!this.isValid())return g.invalidDate||A;var w=f||"YYYY-MM-DDTHH:mm:ssZ",E=k.z(this),P=this.$H,N=this.$m,O=this.$M,H=g.weekdays,U=g.months,Z=g.meridiem,b=function(R,ie,le,he){return R&&(R[ie]||R(v,w))||le[ie].slice(0,he)},$=function(R){return k.s(P%12||12,R,"0")},D=Z||function(R,ie,le){var he=R<12?"AM":"PM";return le?he.toLowerCase():he};return w.replace(M,function(R,ie){return ie||function(le){switch(le){case"YY":return String(v.$y).slice(-2);case"YYYY":return k.s(v.$y,4,"0");case"M":return O+1;case"MM":return k.s(O+1,2,"0");case"MMM":return b(g.monthsShort,O,U,3);case"MMMM":return b(U,O);case"D":return v.$D;case"DD":return k.s(v.$D,2,"0");case"d":return String(v.$W);case"dd":return b(g.weekdaysMin,v.$W,H,2);case"ddd":return b(g.weekdaysShort,v.$W,H,3);case"dddd":return H[v.$W];case"H":return String(P);case"HH":return k.s(P,2,"0");case"h":return $(1);case"hh":return $(2);case"a":return D(P,N,!0);case"A":return D(P,N,!1);case"m":return String(N);case"mm":return k.s(N,2,"0");case"s":return String(v.$s);case"ss":return k.s(v.$s,2,"0");case"SSS":return k.s(v.$ms,3,"0");case"Z":return E}return null}(R)||E.replace(":","")})},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(f,v,g){var w,E=this,P=k.p(v),N=L(f),O=(N.utcOffset()-this.utcOffset())*o,H=this-N,U=function(){return k.m(E,N)};switch(P){case m:w=U()/12;break;case h:w=U();break;case p:w=U()/3;break;case d:w=(H-O)/6048e5;break;case c:w=(H-O)/864e5;break;case l:w=H/s;break;case a:w=H/o;break;case n:w=H/e;break;default:w=H}return g?w:k.a(w)},_.daysInMonth=function(){return this.endOf(h).$D},_.$locale=function(){return G[this.$L]},_.locale=function(f,v){if(!f)return this.$L;var g=this.clone(),w=oe(f,v,!0);return w&&(g.$L=w),g},_.clone=function(){return k.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},x}(),X=ae.prototype;return L.prototype=X,[["$ms",r],["$s",n],["$m",a],["$H",l],["$W",c],["$M",h],["$y",m],["$D",y]].forEach(function(x){X[x[1]]=function(_){return this.$g(_,x[0],x[1])}}),L.extend=function(x,_){return x.$i||(x(_,ae,L),x.$i=!0),L},L.locale=oe,L.isDayjs=ne,L.unix=function(x){return L(1e3*x)},L.en=G[j],L.Ls=G,L.p={},L})})(Ui);var yr=Ui.exports;const Lt=u.getDefaultExportFromCjs(yr);function Zo(i,t){u.addMessages(i,t)}function vr(i){u.$locale.set(i)}const Qo={en:{titleSelfExclusion:"Self-Exclusion",selfExclusionText1:"We recognize that gambling can be harmful so to prevent problems associated with gambling, we offer our users the ability to exclude from all forms of betting on our site for a certain indefinite period of time.",selfExclusionText2:'Self-exclusion takes effect from the time it is set for your chosen period. Select a timeframe below then click "Save".',selfExclusionText3:"During self-exclusion, you will be able to access your account and withdraw funds but you will not be able to deposit or place any bets. In the case of permanent self-exclusion, it is only possible to revoke Self-exclusion upon written request and only 6 months after its initial application. Please note that an alternative way to request self-exclusion is to contact Customer Service as follows:",selfExclusionText4:"E-mail:",duration:"Duration:",dateInstructions:"In order to manually input date use the following format:",forever:"Forever",save:"Save",noPeriodSelected:"Please select a self exclusion period",selectAPeriod:"Select a period",temporarySelfExclusion:"Your self-exclusion period will last until the {date} 23:59.",permanentSelfExclusion:"Your self-exclusion period will be permanent.",SelfExclusionFor6Months:"6 Months",SelfExclusionFor1Year:"1 Year",SelfExclusionFor5Years:"5 Years",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Until"},"zh-hk":{titleSelfExclusion:"自我排除",selfExclusionText1:"我們意識到賭博可能帶來危害,為防止與賭博相關的問題,我們為用戶提供自我排除功能,讓您可以在我們的網站上暫停所有形式的投注,持續一定或不定期限。",selfExclusionText2:"自我排除自您選定的期限開始生效。請選擇以下的時長,然後點擊「儲存」。",selfExclusionText3:"在自我排除期間,您仍然可以進入您的帳戶並提取資金,但無法存款或進行任何投注。如果是永久自我排除,只有在書面申請並且自申請起6個月後才可撤銷自我排除。請注意,另一種申請自我排除的方法是聯絡客戶服務,聯絡方式如下:",selfExclusionText4:"電郵:",duration:"時長:",dateInstructions:"為了手動輸入日期,請使用以下格式",forever:"永久",save:"儲存",noPeriodSelected:"請選擇自我排除時期",selectAPeriod:"選擇時長",temporarySelfExclusion:"您的自我排除期將持續至{date} 23:59。",permanentSelfExclusion:"您的自我排除期將會是永久的。",SelfExclusionFor6Months:"6個月",SelfExclusionFor1Year:"1年",SelfExclusionFor5Years:"5年",SelfExclusionPermanent:"永久",SelfExclusionUntilSelectedDate:"直到"},fr:{titleSelfExclusion:"Auto-exclusion",selfExclusionText1:"Nous reconnaissons que le jeu peut être nuisible, c'est pourquoi, afin de prévenir les problèmes associés au jeu, nous offrons à nos utilisateurs la possibilité de s'exclure de toutes les formes de paris sur notre site pour une période déterminée ou indéfinie.",selfExclusionText2:"L'auto-exclusion prend effet à partir du moment où elle est définie pour la période que vous avez choisie. Sélectionnez une durée ci-dessous, puis cliquez sur « Enregistrer ».",selfExclusionText3:"Pendant la période d'auto-exclusion, vous pourrez accéder à votre compte et retirer des fonds, mais vous ne pourrez ni déposer, ni placer de paris. Dans le cas d'une auto-exclusion permanente, il n'est possible de révoquer l'auto-exclusion que sur demande écrite et seulement 6 mois après son application initiale. Veuillez noter qu'une autre manière de demander une auto-exclusion est de contacter le service client comme suit :",selfExclusionText4:"E-mail :",duration:"Durée :",dateInstructions:"Pour saisir la date manuellement, utilisez le format suivant:",forever:"Pour toujours",save:"Enregistrer",noPeriodSelected:"Veuillez sélectionner une période d'auto-exclusion",selectAPeriod:"Sélectionner une période",temporarySelfExclusion:"Votre période d'auto-exclusion durera jusqu'au {date} 23:59.",permanentSelfExclusion:"Votre période d'auto-exclusion sera permanente.",SelfExclusionFor6Months:"6 mois",SelfExclusionFor1Year:"1 an",SelfExclusionFor5Years:"5 ans",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Jusqu'à"},ro:{titleSelfExclusion:"Auto-excludere",selfExclusionText1:"Recunoaștem că jocurile de noroc pot fi dăunătoare, așa că pentru a preveni problemele asociate cu acestea, oferim utilizatorilor noștri posibilitatea de a se auto-exclude de la toate formele de pariuri de pe site-ul nostru pentru o perioadă determinată sau nedeterminată.",selfExclusionText2:"Auto-excluderea intră în vigoare din momentul în care este setată pentru perioada aleasă de dvs. Selectați o perioadă mai jos, apoi faceți clic pe „Salvează”.",selfExclusionText3:"În timpul auto-excluderii, veți putea accesa contul dvs. și retrage fonduri, dar nu veți putea depune sau plasa pariuri. În cazul auto-excluderii permanente, este posibil să revocați auto-excluderea doar la cerere scrisă și numai după 6 luni de la aplicarea inițială. Vă rugăm să rețineți că o altă modalitate de a solicita auto-excluderea este să contactați Serviciul Clienți astfel:",selfExclusionText4:"E-mail:",duration:"Durată:",dateInstructions:"Pentru a introduce manual data, utilizați următorul format:",forever:"Permanent",save:"Salvează",noPeriodSelected:"Vă rugăm să selectați o perioadă de auto-excludere",selectAPeriod:"Selectați o perioadă",temporarySelfExclusion:"Perioada dvs. de auto-excludere va dura până la {date} 23:59.",permanentSelfExclusion:"Perioada dvs. de auto-excludere va fi permanentă.",SelfExclusionFor6Months:"6 luni",SelfExclusionFor1Year:"1 an",SelfExclusionFor5Years:"5 ani",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Până la"},es:{titleSelfExclusion:"Autoexclusión",selfExclusionText1:"Reconocemos que el juego puede ser perjudicial, por lo que para prevenir problemas asociados al juego, ofrecemos a nuestros usuarios la posibilidad de excluirse de todas las formas de apuestas en nuestro sitio por un período determinado o indefinido.",selfExclusionText2:'La autoexclusión entra en vigor desde el momento en que se establece para el período que usted elija. Seleccione un período a continuación y luego haga clic en "Guardar".',selfExclusionText3:"Durante el período de autoexclusión, podrá acceder a su cuenta y retirar fondos, pero no podrá depositar ni realizar apuestas. En el caso de la autoexclusión permanente, solo es posible revocar la autoexclusión mediante solicitud por escrito y solo 6 meses después de su aplicación inicial. Tenga en cuenta que otra forma de solicitar la autoexclusión es contactando al Servicio de Atención al Cliente de la siguiente manera:",selfExclusionText4:"Correo electrónico:",duration:"Duración:",dateInstructions:"Para introducir la fecha manualmente, utilice el siguiente formato:",forever:"Permanente",save:"Guardar",noPeriodSelected:"Por favor, seleccione un período de autoexclusión",selectAPeriod:"Seleccione un período",temporarySelfExclusion:"Su período de autoexclusión durará hasta el {date} 23:59.",permanentSelfExclusion:"Su período de autoexclusión será permanente.",SelfExclusionFor6Months:"6 meses",SelfExclusionFor1Year:"1 año",SelfExclusionFor5Years:"5 años",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Hasta"},pt:{titleSelfExclusion:"Autoexclusão",selfExclusionText1:"Reconhecemos que o jogo pode ser prejudicial, por isso, para prevenir problemas associados ao jogo, oferecemos aos nossos utilizadores a possibilidade de se autoexcluírem de todas as formas de apostas no nosso site por um período definido ou indefinido.",selfExclusionText2:'A autoexclusão entra em vigor a partir do momento em que é definida para o período escolhido. Selecione um período abaixo e clique em "Guardar".',selfExclusionText3:"Durante o período de autoexclusão, poderá aceder à sua conta e levantar fundos, mas não poderá depositar nem realizar apostas. No caso de autoexclusão permanente, só é possível revogar a autoexclusão mediante pedido por escrito e apenas 6 meses após a sua aplicação inicial. Note que outra forma de solicitar a autoexclusão é contactar o Serviço de Apoio ao Cliente da seguinte forma:",selfExclusionText4:"E-mail:",duration:"Duração:",dateInstructions:"Para inserir a data manualmente, utilize o seguinte formato:",forever:"Para sempre",save:"Guardar",noPeriodSelected:"Por favor, selecione um período de autoexclusão",selectAPeriod:"Selecione um período",temporarySelfExclusion:"O seu período de autoexclusão durará até {date} às 23:59.",permanentSelfExclusion:"O seu período de autoexclusão será permanente.",SelfExclusionFor6Months:"6 meses",SelfExclusionFor1Year:"1 ano",SelfExclusionFor5Years:"5 anos",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Até"},hr:{titleSelfExclusion:"Samoisključenje",selfExclusionText1:"Prepoznajemo da kockanje može biti štetno, stoga, kako bismo spriječili probleme povezane s kockanjem, korisnicima nudimo mogućnost samoisključenja iz svih oblika klađenja na našoj stranici na određeno ili neodređeno vrijeme.",selfExclusionText2:'Samoisključenje stupa na snagu od trenutka kada je postavljeno za odabrano razdoblje. Odaberite razdoblje u nastavku, a zatim kliknite "Spremi".',selfExclusionText3:"Tijekom razdoblja samoisključenja moći ćete pristupiti svom računu i podići sredstva, ali nećete moći uplatiti novac niti postavljati oklade. U slučaju trajnog samoisključenja, samoisključenje se može ukinuti isključivo na pisani zahtjev i tek 6 mjeseci nakon njegove prve primjene. Imajte na umu da je alternativni način zahtjeva za samoisključenje kontaktiranje korisničke podrške na sljedeći način:",selfExclusionText4:"E-mail:",duration:"Trajanje:",dateInstructions:"Za ručni unos datuma koristite sljedeći format:",forever:"Zauvijek",save:"Spremi",noPeriodSelected:"Odaberite razdoblje samoisključenja",selectAPeriod:"Odaberite razdoblje",temporarySelfExclusion:"Vaše razdoblje samoisključenja trajat će do {date} u 23:59.",permanentSelfExclusion:"Vaše razdoblje samoisključenja bit će trajno.",SelfExclusionFor6Months:"6 mjeseci",SelfExclusionFor1Year:"1 godina",SelfExclusionFor5Years:"5 godina",SelfExclusionPermanent:"Trajno",SelfExclusionUntilSelectedDate:"Do"},"pt-br":{titleSelfExclusion:"Autoexclusão",selfExclusionText1:"Reconhecemos que o jogo pode ser prejudicial, por isso, para prevenir problemas associados ao jogo, oferecemos aos nossos usuários a possibilidade de se autoexcluírem de todas as formas de apostas em nosso site por um período determinado ou indeterminado.",selfExclusionText2:'A autoexclusão entra em vigor a partir do momento em que é configurada para o período escolhido. Selecione um período abaixo e clique em "Salvar".',selfExclusionText3:"Durante o período de autoexclusão, você poderá acessar sua conta e retirar fundos, mas não poderá depositar nem realizar apostas. No caso de autoexclusão permanente, só é possível revogar a autoexclusão mediante solicitação por escrito e apenas 6 meses após sua aplicação inicial. Observe que outra maneira de solicitar a autoexclusão é entrar em contato com o Atendimento ao Cliente da seguinte forma:",selfExclusionText4:"E-mail:",duration:"Duração:",dateInstructions:"Para inserir a data manualmente, utilize o seguinte formato:",forever:"Para sempre",save:"Salvar",noPeriodSelected:"Por favor, selecione um período de autoexclusão",selectAPeriod:"Selecione um período",temporarySelfExclusion:"Seu período de autoexclusão durará até {date} às 23:59.",permanentSelfExclusion:"Seu período de autoexclusão será permanente.",SelfExclusionFor6Months:"6 meses",SelfExclusionFor1Year:"1 ano",SelfExclusionFor5Years:"5 anos",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Até"},"es-mx":{titleSelfExclusion:"Autoexclusión",selfExclusionText1:"Reconocemos que el juego puede ser perjudicial, por lo que para prevenir problemas asociados al juego, ofrecemos a nuestros usuarios la posibilidad de autoexcluirse de todas las formas de apuestas en nuestro sitio por un período determinado o indefinido.",selfExclusionText2:'La autoexclusión entra en vigor desde el momento en que se establece para el período que usted elija. Seleccione un período a continuación y luego haga clic en "Guardar".',selfExclusionText3:"Durante el período de autoexclusión, podrá acceder a su cuenta y retirar fondos, pero no podrá depositar ni realizar apuestas. En el caso de la autoexclusión permanente, solo es posible revocar la autoexclusión mediante solicitud por escrito y solo 6 meses después de su aplicación inicial. Tenga en cuenta que otra manera de solicitar la autoexclusión es contactando al Servicio al Cliente de la siguiente manera:",selfExclusionText4:"Correo electrónico:",duration:"Duración:",dateInstructions:"Para introducir la fecha manualmente, utilice el siguiente formato:",forever:"Permanente",save:"Guardar",noPeriodSelected:"Por favor, seleccione un período de autoexclusión",selectAPeriod:"Seleccione un período",temporarySelfExclusion:"Su período de autoexclusión durará hasta el {date} 23:59.",permanentSelfExclusion:"Su período de autoexclusión será permanente.",SelfExclusionFor6Months:"6 meses",SelfExclusionFor1Year:"1 año",SelfExclusionFor5Years:"5 años",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Hasta"},tr:{titleSelfExclusion:"Kendi Kendini Hariç Tutma",selfExclusionText1:"Kumarın zararlı olabileceğini kabul ediyoruz, bu nedenle kumarla ilgili sorunları önlemek için, kullanıcılarımıza sitemizdeki tüm bahis türlerinden belirli veya belirsiz bir süre için kendilerini hariç tutma imkânı sunuyoruz.",selfExclusionText2:'Kendi kendini hariç tutma, seçtiğiniz dönem için ayarlandığı andan itibaren yürürlüğe girer. Aşağıdan bir süre seçin ve ardından "Kaydet"e tıklayın.',selfExclusionText3:"Kendi kendini hariç tutma süresi boyunca hesabınıza erişebilir ve para çekebilirsiniz, ancak para yatıramaz veya bahis oynayamazsınız. Kalıcı hariç tutma durumunda, sadece yazılı talep üzerine ve ilk uygulamadan 6 ay sonra hariç tutma iptal edilebilir. Lütfen kendi kendini hariç tutma talep etmenin alternatif bir yolunun Müşteri Hizmetleri ile iletişime geçmek olduğunu unutmayın:",selfExclusionText4:"E-posta:",duration:"Süre:",dateInstructions:"Tarihi elle girmek için aşağıdaki formatı kullanın:",forever:"Kalıcı",save:"Kaydet",noPeriodSelected:"Lütfen bir hariç tutma süresi seçin",selectAPeriod:"Bir süre seçin",temporarySelfExclusion:"Kendi kendini hariç tutma süreniz {date} 23:59'a kadar sürecektir.",permanentSelfExclusion:"Kendi kendini hariç tutma süreniz kalıcı olacaktır.",SelfExclusionFor6Months:"6 Ay",SelfExclusionFor1Year:"1 Yıl",SelfExclusionFor5Years:"5 Yıl",SelfExclusionPermanent:"Kalıcı",SelfExclusionUntilSelectedDate:"Kadar"}};/**
2
2
  * @license
3
3
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
- */function ie(s){const t=customElements.get(s.is);if(!t)customElements.define(s.is,s);else{const e=t.version;e&&s.version&&e===s.version?console.warn(`The component ${s.is} has been loaded twice`):console.error(`Tried to define ${s.is} version ${s.version} when version ${t.version} is already in use. Something will probably break.`)}}/**
5
+ */function se(i){const t=customElements.get(i.is);if(!t)customElements.define(i.is,i);else{const e=t.version;e&&i.version&&e===i.version?console.warn(`The component ${i.is} has been loaded twice`):console.error(`Tried to define ${i.is} version ${i.version} when version ${t.version} is already in use. Something will probably break.`)}}/**
6
6
  * @license
7
7
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
8
8
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9
- */let br=class extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.9"}};ie(br);/**
9
+ */let br=class extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.9"}};se(br);/**
10
10
  * @license
11
11
  * Copyright 2019 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */const mt=window,Ao=mt.ShadowRoot&&(mt.ShadyCSS===void 0||mt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Po=Symbol(),es=new WeakMap;let ko=class{constructor(t,e,o){if(this._$cssResult$=!0,o!==Po)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(Ao&&t===void 0){const o=e!==void 0&&e.length===1;o&&(t=es.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&es.set(e,t))}return t}toString(){return this.cssText}};const xr=s=>new ko(typeof s=="string"?s:s+"",void 0,Po),S=(s,...t)=>{const e=s.length===1?s[0]:t.reduce((o,i,r)=>o+(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.")})(i)+s[r+1],s[0]);return new ko(e,s,Po)},wr=(s,t)=>{Ao?s.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{const o=document.createElement("style"),i=mt.litNonce;i!==void 0&&o.setAttribute("nonce",i),o.textContent=e.cssText,s.appendChild(o)})},ts=Ao?s=>s:s=>s instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return xr(e)})(s):s;/**
13
+ */const mt=window,Ao=mt.ShadowRoot&&(mt.ShadyCSS===void 0||mt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ko=Symbol(),ei=new WeakMap;let Po=class{constructor(t,e,o){if(this._$cssResult$=!0,o!==ko)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(Ao&&t===void 0){const o=e!==void 0&&e.length===1;o&&(t=ei.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&ei.set(e,t))}return t}toString(){return this.cssText}};const xr=i=>new Po(typeof i=="string"?i:i+"",void 0,ko),S=(i,...t)=>{const e=i.length===1?i[0]:t.reduce((o,s,r)=>o+(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)+i[r+1],i[0]);return new Po(e,i,ko)},wr=(i,t)=>{Ao?i.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{const o=document.createElement("style"),s=mt.litNonce;s!==void 0&&o.setAttribute("nonce",s),o.textContent=e.cssText,i.appendChild(o)})},ti=Ao?i=>i:i=>i instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return xr(e)})(i):i;/**
14
14
  * @license
15
15
  * Copyright 2017 Google LLC
16
16
  * SPDX-License-Identifier: BSD-3-Clause
17
- */var Ft;const vt=window,os=vt.trustedTypes,Er=os?os.emptyScript:"",ss=vt.reactiveElementPolyfillSupport,so={toAttribute(s,t){switch(t){case Boolean:s=s?Er:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,t){let e=s;switch(t){case Boolean:e=s!==null;break;case Number:e=s===null?null:Number(s);break;case Object:case Array:try{e=JSON.parse(s)}catch(o){e=null}}return e}},Ws=(s,t)=>t!==s&&(t==t||s==s),$t={attribute:!0,type:String,converter:so,reflect:!1,hasChanged:Ws},io="finalized";let Oe=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var e;this.finalize(),((e=this.h)!==null&&e!==void 0?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach((e,o)=>{const i=this._$Ep(o,e);i!==void 0&&(this._$Ev.set(i,o),t.push(i))}),t}static createProperty(t,e=$t){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const o=typeof t=="symbol"?Symbol():"__"+t,i=this.getPropertyDescriptor(t,o,e);i!==void 0&&Object.defineProperty(this.prototype,t,i)}}static getPropertyDescriptor(t,e,o){return{get(){return this[e]},set(i){const r=this[t];this[e]=i,this.requestUpdate(t,r,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||$t}static finalize(){if(this.hasOwnProperty(io))return!1;this[io]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,o=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const i of o)this.createProperty(i,e[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const i of o)e.unshift(ts(i))}else t!==void 0&&e.push(ts(t));return e}static _$Ep(t,e){const o=e.attribute;return o===!1?void 0:typeof o=="string"?o:typeof t=="string"?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(e=>e(this))}addController(t){var e,o;((e=this._$ES)!==null&&e!==void 0?e:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((o=t.hostConnected)===null||o===void 0||o.call(t))}removeController(t){var e;(e=this._$ES)===null||e===void 0||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])})}createRenderRoot(){var t;const e=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return wr(e,this.constructor.elementStyles),e}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(e=>{var o;return(o=e.hostConnected)===null||o===void 0?void 0:o.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(e=>{var o;return(o=e.hostDisconnected)===null||o===void 0?void 0:o.call(e)})}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EO(t,e,o=$t){var i;const r=this.constructor._$Ep(t,o);if(r!==void 0&&o.reflect===!0){const n=(((i=o.converter)===null||i===void 0?void 0:i.toAttribute)!==void 0?o.converter:so).toAttribute(e,o.type);this._$El=t,n==null?this.removeAttribute(r):this.setAttribute(r,n),this._$El=null}}_$AK(t,e){var o;const i=this.constructor,r=i._$Ev.get(t);if(r!==void 0&&this._$El!==r){const n=i.getPropertyOptions(r),a=typeof n.converter=="function"?{fromAttribute:n.converter}:((o=n.converter)===null||o===void 0?void 0:o.fromAttribute)!==void 0?n.converter:so;this._$El=r,this[r]=a.fromAttribute(e,n.type),this._$El=null}}requestUpdate(t,e,o){let i=!0;t!==void 0&&(((o=o||this.constructor.getPropertyOptions(t)).hasChanged||Ws)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),o.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,o))):i=!1),!this.isUpdatePending&&i&&(this._$E_=this._$Ej())}_$Ej(){return ct(this,null,function*(){this.isUpdatePending=!0;try{yield this._$E_}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&(yield t),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((i,r)=>this[r]=i),this._$Ei=void 0);let e=!1;const o=this._$AL;try{e=this.shouldUpdate(o),e?(this.willUpdate(o),(t=this._$ES)===null||t===void 0||t.forEach(i=>{var r;return(r=i.hostUpdate)===null||r===void 0?void 0:r.call(i)}),this.update(o)):this._$Ek()}catch(i){throw e=!1,this._$Ek(),i}e&&this._$AE(o)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)===null||e===void 0||e.forEach(o=>{var i;return(i=o.hostUpdated)===null||i===void 0?void 0:i.call(o)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((e,o)=>this._$EO(o,this[o],e)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};Oe[io]=!0,Oe.elementProperties=new Map,Oe.elementStyles=[],Oe.shadowRootOptions={mode:"open"},ss==null||ss({ReactiveElement:Oe}),((Ft=vt.reactiveElementVersions)!==null&&Ft!==void 0?Ft:vt.reactiveElementVersions=[]).push("1.6.3");/**
17
+ */var Ft;const yt=window,oi=yt.trustedTypes,Er=oi?oi.emptyScript:"",ii=yt.reactiveElementPolyfillSupport,io={toAttribute(i,t){switch(t){case Boolean:i=i?Er:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,t){let e=i;switch(t){case Boolean:e=i!==null;break;case Number:e=i===null?null:Number(i);break;case Object:case Array:try{e=JSON.parse(i)}catch(o){e=null}}return e}},Wi=(i,t)=>t!==i&&(t==t||i==i),$t={attribute:!0,type:String,converter:io,reflect:!1,hasChanged:Wi},so="finalized";let Oe=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var e;this.finalize(),((e=this.h)!==null&&e!==void 0?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach((e,o)=>{const s=this._$Ep(o,e);s!==void 0&&(this._$Ev.set(s,o),t.push(s))}),t}static createProperty(t,e=$t){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const o=typeof t=="symbol"?Symbol():"__"+t,s=this.getPropertyDescriptor(t,o,e);s!==void 0&&Object.defineProperty(this.prototype,t,s)}}static getPropertyDescriptor(t,e,o){return{get(){return this[e]},set(s){const r=this[t];this[e]=s,this.requestUpdate(t,r,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||$t}static finalize(){if(this.hasOwnProperty(so))return!1;this[so]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,o=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const s of o)this.createProperty(s,e[s])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const s of o)e.unshift(ti(s))}else t!==void 0&&e.push(ti(t));return e}static _$Ep(t,e){const o=e.attribute;return o===!1?void 0:typeof o=="string"?o:typeof t=="string"?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(e=>e(this))}addController(t){var e,o;((e=this._$ES)!==null&&e!==void 0?e:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((o=t.hostConnected)===null||o===void 0||o.call(t))}removeController(t){var e;(e=this._$ES)===null||e===void 0||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])})}createRenderRoot(){var t;const e=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return wr(e,this.constructor.elementStyles),e}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(e=>{var o;return(o=e.hostConnected)===null||o===void 0?void 0:o.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(e=>{var o;return(o=e.hostDisconnected)===null||o===void 0?void 0:o.call(e)})}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EO(t,e,o=$t){var s;const r=this.constructor._$Ep(t,o);if(r!==void 0&&o.reflect===!0){const n=(((s=o.converter)===null||s===void 0?void 0:s.toAttribute)!==void 0?o.converter:io).toAttribute(e,o.type);this._$El=t,n==null?this.removeAttribute(r):this.setAttribute(r,n),this._$El=null}}_$AK(t,e){var o;const s=this.constructor,r=s._$Ev.get(t);if(r!==void 0&&this._$El!==r){const n=s.getPropertyOptions(r),a=typeof n.converter=="function"?{fromAttribute:n.converter}:((o=n.converter)===null||o===void 0?void 0:o.fromAttribute)!==void 0?n.converter:io;this._$El=r,this[r]=a.fromAttribute(e,n.type),this._$El=null}}requestUpdate(t,e,o){let s=!0;t!==void 0&&(((o=o||this.constructor.getPropertyOptions(t)).hasChanged||Wi)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),o.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,o))):s=!1),!this.isUpdatePending&&s&&(this._$E_=this._$Ej())}_$Ej(){return ct(this,null,function*(){this.isUpdatePending=!0;try{yield this._$E_}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&(yield t),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((s,r)=>this[r]=s),this._$Ei=void 0);let e=!1;const o=this._$AL;try{e=this.shouldUpdate(o),e?(this.willUpdate(o),(t=this._$ES)===null||t===void 0||t.forEach(s=>{var r;return(r=s.hostUpdate)===null||r===void 0?void 0:r.call(s)}),this.update(o)):this._$Ek()}catch(s){throw e=!1,this._$Ek(),s}e&&this._$AE(o)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)===null||e===void 0||e.forEach(o=>{var s;return(s=o.hostUpdated)===null||s===void 0?void 0:s.call(o)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((e,o)=>this._$EO(o,this[o],e)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};Oe[so]=!0,Oe.elementProperties=new Map,Oe.elementStyles=[],Oe.shadowRootOptions={mode:"open"},ii==null||ii({ReactiveElement:Oe}),((Ft=yt.reactiveElementVersions)!==null&&Ft!==void 0?Ft:yt.reactiveElementVersions=[]).push("1.6.3");/**
18
18
  * @license
19
19
  * Copyright 2017 Google LLC
20
20
  * SPDX-License-Identifier: BSD-3-Clause
21
- */var Rt;const yt=window,Le=yt.trustedTypes,is=Le?Le.createPolicy("lit-html",{createHTML:s=>s}):void 0,ro="$lit$",_e=`lit$${(Math.random()+"").slice(9)}$`,qs="?"+_e,Sr=`<${qs}>`,Ae=document,Ge=()=>Ae.createComment(""),Je=s=>s===null||typeof s!="object"&&typeof s!="function",Ks=Array.isArray,Cr=s=>Ks(s)||typeof(s==null?void 0:s[Symbol.iterator])=="function",Bt=`[
22
- \f\r]`,He=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,rs=/-->/g,ns=/>/g,xe=RegExp(`>|${Bt}(?:([^\\s"'>=/]+)(${Bt}*=${Bt}*(?:[^
23
- \f\r"'\`<>=]|("|')|))|$)`,"g"),as=/'/g,ls=/"/g,Gs=/^(?:script|style|textarea|title)$/i,Fe=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),cs=new WeakMap,we=Ae.createTreeWalker(Ae,129,null,!1);function Js(s,t){if(!Array.isArray(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return is!==void 0?is.createHTML(t):t}const Ar=(s,t)=>{const e=s.length-1,o=[];let i,r=t===2?"<svg>":"",n=He;for(let a=0;a<e;a++){const l=s[a];let c,d,h=-1,p=0;for(;p<l.length&&(n.lastIndex=p,d=n.exec(l),d!==null);)p=n.lastIndex,n===He?d[1]==="!--"?n=rs:d[1]!==void 0?n=ns:d[2]!==void 0?(Gs.test(d[2])&&(i=RegExp("</"+d[2],"g")),n=xe):d[3]!==void 0&&(n=xe):n===xe?d[0]===">"?(n=i!=null?i:He,h=-1):d[1]===void 0?h=-2:(h=n.lastIndex-d[2].length,c=d[1],n=d[3]===void 0?xe:d[3]==='"'?ls:as):n===ls||n===as?n=xe:n===rs||n===ns?n=He:(n=xe,i=void 0);const m=n===xe&&s[a+1].startsWith("/>")?" ":"";r+=n===He?l+Sr:h>=0?(o.push(c),l.slice(0,h)+ro+l.slice(h)+_e+m):l+_e+(h===-2?(o.push(void 0),a):m)}return[Js(s,r+(s[e]||"<?>")+(t===2?"</svg>":"")),o]};class Xe{constructor({strings:t,_$litType$:e},o){let i;this.parts=[];let r=0,n=0;const a=t.length-1,l=this.parts,[c,d]=Ar(t,e);if(this.el=Xe.createElement(c,o),we.currentNode=this.el.content,e===2){const h=this.el.content,p=h.firstChild;p.remove(),h.append(...p.childNodes)}for(;(i=we.nextNode())!==null&&l.length<a;){if(i.nodeType===1){if(i.hasAttributes()){const h=[];for(const p of i.getAttributeNames())if(p.endsWith(ro)||p.startsWith(_e)){const m=d[n++];if(h.push(p),m!==void 0){const v=i.getAttribute(m.toLowerCase()+ro).split(_e),A=/([.?@])?(.*)/.exec(m);l.push({type:1,index:r,name:A[2],strings:v,ctor:A[1]==="."?kr:A[1]==="?"?Tr:A[1]==="@"?Mr:At})}else l.push({type:6,index:r})}for(const p of h)i.removeAttribute(p)}if(Gs.test(i.tagName)){const h=i.textContent.split(_e),p=h.length-1;if(p>0){i.textContent=Le?Le.emptyScript:"";for(let m=0;m<p;m++)i.append(h[m],Ge()),we.nextNode(),l.push({type:2,index:++r});i.append(h[p],Ge())}}}else if(i.nodeType===8)if(i.data===qs)l.push({type:2,index:r});else{let h=-1;for(;(h=i.data.indexOf(_e,h+1))!==-1;)l.push({type:7,index:r}),h+=_e.length-1}r++}}static createElement(t,e){const o=Ae.createElement("template");return o.innerHTML=t,o}}function $e(s,t,e=s,o){var i,r,n,a;if(t===Fe)return t;let l=o!==void 0?(i=e._$Co)===null||i===void 0?void 0:i[o]:e._$Cl;const c=Je(t)?void 0:t._$litDirective$;return(l==null?void 0:l.constructor)!==c&&((r=l==null?void 0:l._$AO)===null||r===void 0||r.call(l,!1),c===void 0?l=void 0:(l=new c(s),l._$AT(s,e,o)),o!==void 0?((n=(a=e)._$Co)!==null&&n!==void 0?n:a._$Co=[])[o]=l:e._$Cl=l),l!==void 0&&(t=$e(s,l._$AS(s,t.values),l,o)),t}class Pr{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:o},parts:i}=this._$AD,r=((e=t==null?void 0:t.creationScope)!==null&&e!==void 0?e:Ae).importNode(o,!0);we.currentNode=r;let n=we.nextNode(),a=0,l=0,c=i[0];for(;c!==void 0;){if(a===c.index){let d;c.type===2?d=new nt(n,n.nextSibling,this,t):c.type===1?d=new c.ctor(n,c.name,c.strings,this,t):c.type===6&&(d=new Or(n,this,t)),this._$AV.push(d),c=i[++l]}a!==(c==null?void 0:c.index)&&(n=we.nextNode(),a++)}return we.currentNode=Ae,r}v(t){let e=0;for(const o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}}class nt{constructor(t,e,o,i){var r;this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=i,this._$Cp=(r=i==null?void 0:i.isConnected)===null||r===void 0||r}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=$e(this,t,e),Je(t)?t===W||t==null||t===""?(this._$AH!==W&&this._$AR(),this._$AH=W):t!==this._$AH&&t!==Fe&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):Cr(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==W&&Je(this._$AH)?this._$AA.nextSibling.data=t:this.$(Ae.createTextNode(t)),this._$AH=t}g(t){var e;const{values:o,_$litType$:i}=t,r=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=Xe.createElement(Js(i.h,i.h[0]),this.options)),i);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===r)this._$AH.v(o);else{const n=new Pr(r,this),a=n.u(this.options);n.v(o),this.$(a),this._$AH=n}}_$AC(t){let e=cs.get(t.strings);return e===void 0&&cs.set(t.strings,e=new Xe(t)),e}T(t){Ks(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let o,i=0;for(const r of t)i===e.length?e.push(o=new nt(this.k(Ge()),this.k(Ge()),this,this.options)):o=e[i],o._$AI(r),i++;i<e.length&&(this._$AR(o&&o._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var o;for((o=this._$AP)===null||o===void 0||o.call(this,!1,!0,e);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var e;this._$AM===void 0&&(this._$Cp=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}}class At{constructor(t,e,o,i,r){this.type=1,this._$AH=W,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=W}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,o,i){const r=this.strings;let n=!1;if(r===void 0)t=$e(this,t,e,0),n=!Je(t)||t!==this._$AH&&t!==Fe,n&&(this._$AH=t);else{const a=t;let l,c;for(t=r[0],l=0;l<r.length-1;l++)c=$e(this,a[o+l],e,l),c===Fe&&(c=this._$AH[l]),n||(n=!Je(c)||c!==this._$AH[l]),c===W?t=W:t!==W&&(t+=(c!=null?c:"")+r[l+1]),this._$AH[l]=c}n&&!i&&this.j(t)}j(t){t===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}}class kr extends At{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===W?void 0:t}}const Dr=Le?Le.emptyScript:"";class Tr extends At{constructor(){super(...arguments),this.type=4}j(t){t&&t!==W?this.element.setAttribute(this.name,Dr):this.element.removeAttribute(this.name)}}class Mr extends At{constructor(t,e,o,i,r){super(t,e,o,i,r),this.type=5}_$AI(t,e=this){var o;if((t=(o=$e(this,t,e,0))!==null&&o!==void 0?o:W)===Fe)return;const i=this._$AH,r=t===W&&i!==W||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,n=t!==W&&(i===W||r);r&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,o;typeof this._$AH=="function"?this._$AH.call((o=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&o!==void 0?o:this.element,t):this._$AH.handleEvent(t)}}class Or{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){$e(this,t)}}const us=yt.litHtmlPolyfillSupport;us==null||us(Xe,nt),((Rt=yt.litHtmlVersions)!==null&&Rt!==void 0?Rt:yt.litHtmlVersions=[]).push("2.8.0");const Ir=(s,t,e)=>{var o,i;const r=(o=e==null?void 0:e.renderBefore)!==null&&o!==void 0?o:t;let n=r._$litPart$;if(n===void 0){const a=(i=e==null?void 0:e.renderBefore)!==null&&i!==void 0?i:null;r._$litPart$=n=new nt(t.insertBefore(Ge(),a),a,void 0,e!=null?e:{})}return n._$AI(s),n};/**
21
+ */var Rt;const vt=window,Le=vt.trustedTypes,si=Le?Le.createPolicy("lit-html",{createHTML:i=>i}):void 0,ro="$lit$",_e=`lit$${(Math.random()+"").slice(9)}$`,qi="?"+_e,Sr=`<${qi}>`,Ae=document,Ge=()=>Ae.createComment(""),Je=i=>i===null||typeof i!="object"&&typeof i!="function",Ki=Array.isArray,Cr=i=>Ki(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",Bt=`[
22
+ \f\r]`,He=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ri=/-->/g,ni=/>/g,xe=RegExp(`>|${Bt}(?:([^\\s"'>=/]+)(${Bt}*=${Bt}*(?:[^
23
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),ai=/'/g,li=/"/g,Gi=/^(?:script|style|textarea|title)$/i,Fe=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),ci=new WeakMap,we=Ae.createTreeWalker(Ae,129,null,!1);function Ji(i,t){if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return si!==void 0?si.createHTML(t):t}const Ar=(i,t)=>{const e=i.length-1,o=[];let s,r=t===2?"<svg>":"",n=He;for(let a=0;a<e;a++){const l=i[a];let c,d,h=-1,p=0;for(;p<l.length&&(n.lastIndex=p,d=n.exec(l),d!==null);)p=n.lastIndex,n===He?d[1]==="!--"?n=ri:d[1]!==void 0?n=ni:d[2]!==void 0?(Gi.test(d[2])&&(s=RegExp("</"+d[2],"g")),n=xe):d[3]!==void 0&&(n=xe):n===xe?d[0]===">"?(n=s!=null?s:He,h=-1):d[1]===void 0?h=-2:(h=n.lastIndex-d[2].length,c=d[1],n=d[3]===void 0?xe:d[3]==='"'?li:ai):n===li||n===ai?n=xe:n===ri||n===ni?n=He:(n=xe,s=void 0);const m=n===xe&&i[a+1].startsWith("/>")?" ":"";r+=n===He?l+Sr:h>=0?(o.push(c),l.slice(0,h)+ro+l.slice(h)+_e+m):l+_e+(h===-2?(o.push(void 0),a):m)}return[Ji(i,r+(i[e]||"<?>")+(t===2?"</svg>":"")),o]};class Xe{constructor({strings:t,_$litType$:e},o){let s;this.parts=[];let r=0,n=0;const a=t.length-1,l=this.parts,[c,d]=Ar(t,e);if(this.el=Xe.createElement(c,o),we.currentNode=this.el.content,e===2){const h=this.el.content,p=h.firstChild;p.remove(),h.append(...p.childNodes)}for(;(s=we.nextNode())!==null&&l.length<a;){if(s.nodeType===1){if(s.hasAttributes()){const h=[];for(const p of s.getAttributeNames())if(p.endsWith(ro)||p.startsWith(_e)){const m=d[n++];if(h.push(p),m!==void 0){const y=s.getAttribute(m.toLowerCase()+ro).split(_e),A=/([.?@])?(.*)/.exec(m);l.push({type:1,index:r,name:A[2],strings:y,ctor:A[1]==="."?Pr:A[1]==="?"?Tr:A[1]==="@"?Mr:At})}else l.push({type:6,index:r})}for(const p of h)s.removeAttribute(p)}if(Gi.test(s.tagName)){const h=s.textContent.split(_e),p=h.length-1;if(p>0){s.textContent=Le?Le.emptyScript:"";for(let m=0;m<p;m++)s.append(h[m],Ge()),we.nextNode(),l.push({type:2,index:++r});s.append(h[p],Ge())}}}else if(s.nodeType===8)if(s.data===qi)l.push({type:2,index:r});else{let h=-1;for(;(h=s.data.indexOf(_e,h+1))!==-1;)l.push({type:7,index:r}),h+=_e.length-1}r++}}static createElement(t,e){const o=Ae.createElement("template");return o.innerHTML=t,o}}function $e(i,t,e=i,o){var s,r,n,a;if(t===Fe)return t;let l=o!==void 0?(s=e._$Co)===null||s===void 0?void 0:s[o]:e._$Cl;const c=Je(t)?void 0:t._$litDirective$;return(l==null?void 0:l.constructor)!==c&&((r=l==null?void 0:l._$AO)===null||r===void 0||r.call(l,!1),c===void 0?l=void 0:(l=new c(i),l._$AT(i,e,o)),o!==void 0?((n=(a=e)._$Co)!==null&&n!==void 0?n:a._$Co=[])[o]=l:e._$Cl=l),l!==void 0&&(t=$e(i,l._$AS(i,t.values),l,o)),t}class kr{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:o},parts:s}=this._$AD,r=((e=t==null?void 0:t.creationScope)!==null&&e!==void 0?e:Ae).importNode(o,!0);we.currentNode=r;let n=we.nextNode(),a=0,l=0,c=s[0];for(;c!==void 0;){if(a===c.index){let d;c.type===2?d=new nt(n,n.nextSibling,this,t):c.type===1?d=new c.ctor(n,c.name,c.strings,this,t):c.type===6&&(d=new Or(n,this,t)),this._$AV.push(d),c=s[++l]}a!==(c==null?void 0:c.index)&&(n=we.nextNode(),a++)}return we.currentNode=Ae,r}v(t){let e=0;for(const o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}}class nt{constructor(t,e,o,s){var r;this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=s,this._$Cp=(r=s==null?void 0:s.isConnected)===null||r===void 0||r}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=$e(this,t,e),Je(t)?t===W||t==null||t===""?(this._$AH!==W&&this._$AR(),this._$AH=W):t!==this._$AH&&t!==Fe&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):Cr(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==W&&Je(this._$AH)?this._$AA.nextSibling.data=t:this.$(Ae.createTextNode(t)),this._$AH=t}g(t){var e;const{values:o,_$litType$:s}=t,r=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=Xe.createElement(Ji(s.h,s.h[0]),this.options)),s);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===r)this._$AH.v(o);else{const n=new kr(r,this),a=n.u(this.options);n.v(o),this.$(a),this._$AH=n}}_$AC(t){let e=ci.get(t.strings);return e===void 0&&ci.set(t.strings,e=new Xe(t)),e}T(t){Ki(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let o,s=0;for(const r of t)s===e.length?e.push(o=new nt(this.k(Ge()),this.k(Ge()),this,this.options)):o=e[s],o._$AI(r),s++;s<e.length&&(this._$AR(o&&o._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var o;for((o=this._$AP)===null||o===void 0||o.call(this,!1,!0,e);t&&t!==this._$AB;){const s=t.nextSibling;t.remove(),t=s}}setConnected(t){var e;this._$AM===void 0&&(this._$Cp=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}}class At{constructor(t,e,o,s,r){this.type=1,this._$AH=W,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=r,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=W}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,o,s){const r=this.strings;let n=!1;if(r===void 0)t=$e(this,t,e,0),n=!Je(t)||t!==this._$AH&&t!==Fe,n&&(this._$AH=t);else{const a=t;let l,c;for(t=r[0],l=0;l<r.length-1;l++)c=$e(this,a[o+l],e,l),c===Fe&&(c=this._$AH[l]),n||(n=!Je(c)||c!==this._$AH[l]),c===W?t=W:t!==W&&(t+=(c!=null?c:"")+r[l+1]),this._$AH[l]=c}n&&!s&&this.j(t)}j(t){t===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}}class Pr extends At{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===W?void 0:t}}const Dr=Le?Le.emptyScript:"";class Tr extends At{constructor(){super(...arguments),this.type=4}j(t){t&&t!==W?this.element.setAttribute(this.name,Dr):this.element.removeAttribute(this.name)}}class Mr extends At{constructor(t,e,o,s,r){super(t,e,o,s,r),this.type=5}_$AI(t,e=this){var o;if((t=(o=$e(this,t,e,0))!==null&&o!==void 0?o:W)===Fe)return;const s=this._$AH,r=t===W&&s!==W||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==W&&(s===W||r);r&&this.element.removeEventListener(this.name,this,s),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,o;typeof this._$AH=="function"?this._$AH.call((o=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&o!==void 0?o:this.element,t):this._$AH.handleEvent(t)}}class Or{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){$e(this,t)}}const ui=vt.litHtmlPolyfillSupport;ui==null||ui(Xe,nt),((Rt=vt.litHtmlVersions)!==null&&Rt!==void 0?Rt:vt.litHtmlVersions=[]).push("2.8.0");const Ir=(i,t,e)=>{var o,s;const r=(o=e==null?void 0:e.renderBefore)!==null&&o!==void 0?o:t;let n=r._$litPart$;if(n===void 0){const a=(s=e==null?void 0:e.renderBefore)!==null&&s!==void 0?s:null;r._$litPart$=n=new nt(t.insertBefore(Ge(),a),a,void 0,e!=null?e:{})}return n._$AI(i),n};/**
24
24
  * @license
25
25
  * Copyright 2017 Google LLC
26
26
  * SPDX-License-Identifier: BSD-3-Clause
27
- */var Ht,jt;class ft extends Oe{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const o=super.createRenderRoot();return(t=(e=this.renderOptions).renderBefore)!==null&&t!==void 0||(e.renderBefore=o.firstChild),o}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Ir(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return Fe}}ft.finalized=!0,ft._$litElement$=!0,(Ht=globalThis.litElementHydrateSupport)===null||Ht===void 0||Ht.call(globalThis,{LitElement:ft});const ds=globalThis.litElementPolyfillSupport;ds==null||ds({LitElement:ft});((jt=globalThis.litElementVersions)!==null&&jt!==void 0?jt:globalThis.litElementVersions=[]).push("3.3.3");/**
27
+ */var Ht,jt;class ft extends Oe{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const o=super.createRenderRoot();return(t=(e=this.renderOptions).renderBefore)!==null&&t!==void 0||(e.renderBefore=o.firstChild),o}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Ir(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return Fe}}ft.finalized=!0,ft._$litElement$=!0,(Ht=globalThis.litElementHydrateSupport)===null||Ht===void 0||Ht.call(globalThis,{LitElement:ft});const di=globalThis.litElementPolyfillSupport;di==null||di({LitElement:ft});((jt=globalThis.litElementVersions)!==null&&jt!==void 0?jt:globalThis.litElementVersions=[]).push("3.3.3");/**
28
28
  * @license
29
29
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
30
30
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
31
- */const zr=s=>class extends s{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(e,o,i){super.attributeChangedCallback(e,o,i),e==="theme"&&this._set_theme(i)}};/**
31
+ */const zr=i=>class extends i{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(e,o,s){super.attributeChangedCallback(e,o,s),e==="theme"&&this._set_theme(s)}};/**
32
32
  * @license
33
33
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
34
34
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
35
- */const Xs=[];function Zs(s){return s&&Object.prototype.hasOwnProperty.call(s,"__themes")}function Nr(s){return Zs(customElements.get(s))}function Lr(s=[]){return[s].flat(1/0).filter(t=>t instanceof ko?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function F(s,t,e={}){s&&Nr(s)&&console.warn(`The custom element definition for "${s}"
35
+ */const Xi=[];function Zi(i){return i&&Object.prototype.hasOwnProperty.call(i,"__themes")}function Nr(i){return Zi(customElements.get(i))}function Lr(i=[]){return[i].flat(1/0).filter(t=>t instanceof Po?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function F(i,t,e={}){i&&Nr(i)&&console.warn(`The custom element definition for "${i}"
36
36
  was finalized before a style module was registered.
37
37
  Make sure to add component specific style modules before
38
- importing the corresponding custom element.`),t=Lr(t),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(s,t,e):Xs.push({themeFor:s,styles:t,include:e.include,moduleId:e.moduleId})}function no(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():Xs}function Fr(s,t){return(s||"").split(" ").some(e=>new RegExp(`^${e.split("*").join(".*")}$`,"u").test(t))}function $r(s=""){let t=0;return s.startsWith("lumo-")||s.startsWith("material-")?t=1:s.startsWith("vaadin-")&&(t=2),t}function Qs(s){const t=[];return s.include&&[].concat(s.include).forEach(e=>{const o=no().find(i=>i.moduleId===e);o?t.push(...Qs(o),...o.styles):console.warn(`Included moduleId ${e} not found in style registry`)},s.styles),t}function Rr(s,t){const e=document.createElement("style");e.innerHTML=s.map(o=>o.cssText).join(`
39
- `),t.content.appendChild(e)}function Br(s){const t=`${s}-default-theme`,e=no().filter(o=>o.moduleId!==t&&Fr(o.themeFor,s)).map(o=>Nt(zt({},o),{styles:[...Qs(o),...o.styles],includePriority:$r(o.moduleId)})).sort((o,i)=>i.includePriority-o.includePriority);return e.length>0?e:no().filter(o=>o.moduleId===t)}const Pe=s=>class extends zr(s){static finalize(){if(super.finalize(),this.elementStyles)return;const e=this.prototype._template;!e||Zs(this)||Rr(this.getStylesForThis(),e)}static finalizeStyles(e){const o=this.getStylesForThis();return e?[...super.finalizeStyles(e),...o]:o}static getStylesForThis(){const e=Object.getPrototypeOf(this.prototype),o=(e?e.constructor.__themes:[])||[];this.__themes=[...o,...Br(this.is)];const i=this.__themes.flatMap(r=>r.styles);return i.filter((r,n)=>n===i.lastIndexOf(r))}};/**
38
+ importing the corresponding custom element.`),t=Lr(t),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(i,t,e):Xi.push({themeFor:i,styles:t,include:e.include,moduleId:e.moduleId})}function no(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():Xi}function Fr(i,t){return(i||"").split(" ").some(e=>new RegExp(`^${e.split("*").join(".*")}$`,"u").test(t))}function $r(i=""){let t=0;return i.startsWith("lumo-")||i.startsWith("material-")?t=1:i.startsWith("vaadin-")&&(t=2),t}function Qi(i){const t=[];return i.include&&[].concat(i.include).forEach(e=>{const o=no().find(s=>s.moduleId===e);o?t.push(...Qi(o),...o.styles):console.warn(`Included moduleId ${e} not found in style registry`)},i.styles),t}function Rr(i,t){const e=document.createElement("style");e.innerHTML=i.map(o=>o.cssText).join(`
39
+ `),t.content.appendChild(e)}function Br(i){const t=`${i}-default-theme`,e=no().filter(o=>o.moduleId!==t&&Fr(o.themeFor,i)).map(o=>Nt(zt({},o),{styles:[...Qi(o),...o.styles],includePriority:$r(o.moduleId)})).sort((o,s)=>s.includePriority-o.includePriority);return e.length>0?e:no().filter(o=>o.moduleId===t)}const ke=i=>class extends zr(i){static finalize(){if(super.finalize(),this.elementStyles)return;const e=this.prototype._template;!e||Zi(this)||Rr(this.getStylesForThis(),e)}static finalizeStyles(e){const o=this.getStylesForThis();return e?[...super.finalizeStyles(e),...o]:o}static getStylesForThis(){const e=Object.getPrototypeOf(this.prototype),o=(e?e.constructor.__themes:[])||[];this.__themes=[...o,...Br(this.is)];const s=this.__themes.flatMap(r=>r.styles);return s.filter((r,n)=>n===s.lastIndexOf(r))}};/**
40
40
  * @license
41
41
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
42
42
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
43
- */const Do=(s,...t)=>{const e=document.createElement("style");e.id=s,e.textContent=t.map(o=>o.toString()).join(`
44
- `).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",e)},Pt=(s,...t)=>{Do(`lumo-${s}`,t)};/**
43
+ */const Do=(i,...t)=>{const e=document.createElement("style");e.id=i,e.textContent=t.map(o=>o.toString()).join(`
44
+ `).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",e)},kt=(i,...t)=>{Do(`lumo-${i}`,t)};/**
45
45
  * @license
46
46
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
47
47
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -130,7 +130,7 @@
130
130
  --lumo-disabled-text-color: GrayText;
131
131
  }
132
132
  }
133
- `;Pt("color-props",Hr);const jr=S`
133
+ `;kt("color-props",Hr);const jr=S`
134
134
  [theme~='dark'] {
135
135
  /* Base (background) */
136
136
  --lumo-base-color: hsl(214, 35%, 21%);
@@ -264,7 +264,7 @@
264
264
  /* For backwards compatibility */
265
265
  --lumo-icon-size: var(--lumo-icon-size-m);
266
266
  }
267
- `;Pt("sizing-props",Yr);/**
267
+ `;kt("sizing-props",Yr);/**
268
268
  * @license
269
269
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
270
270
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -291,7 +291,7 @@
291
291
  --vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
292
292
  --vaadin-input-field-border-radius: var(--lumo-border-radius-m);
293
293
  }
294
- `;Pt("style-props",Vr);/**
294
+ `;kt("style-props",Vr);/**
295
295
  * @license
296
296
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
297
297
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -407,7 +407,7 @@
407
407
  border-left: none;
408
408
  border-right: 2px solid var(--lumo-contrast-30pct);
409
409
  }
410
- `;F("",Wr,{moduleId:"lumo-typography"});Pt("typography-props",Ur);F("vaadin-input-container",S`
410
+ `;F("",Wr,{moduleId:"lumo-typography"});kt("typography-props",Ur);F("vaadin-input-container",S`
411
411
  :host {
412
412
  background-color: var(--lumo-contrast-10pct);
413
413
  padding: 0 calc(0.375em + var(--_input-container-radius) / 4 - 1px);
@@ -582,7 +582,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
582
582
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
583
583
  Code distributed by Google as part of the polymer project is also
584
584
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
585
- */window.JSCompiler_renameProperty=function(s,t){return s};/**
585
+ */window.JSCompiler_renameProperty=function(i,t){return i};/**
586
586
  @license
587
587
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
588
588
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -590,7 +590,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
590
590
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
591
591
  Code distributed by Google as part of the polymer project is also
592
592
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
593
- */let qr=/(url\()([^)]*)(\))/g,Kr=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,ut,oe;function Ke(s,t){if(s&&Kr.test(s)||s==="//")return s;if(ut===void 0){ut=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",ut=e.href==="http://a/c%20d"}catch(e){}}if(t||(t=document.baseURI||window.location.href),ut)try{return new URL(s,t).href}catch(e){return s}return oe||(oe=document.implementation.createHTMLDocument("temp"),oe.base=oe.createElement("base"),oe.head.appendChild(oe.base),oe.anchor=oe.createElement("a"),oe.body.appendChild(oe.anchor)),oe.base.href=t,oe.anchor.href=s,oe.anchor.href||s}function To(s,t){return s.replace(qr,function(e,o,i,r){return o+"'"+Ke(i.replace(/["']/g,""),t)+"'"+r})}function Mo(s){return s.substring(0,s.lastIndexOf("/")+1)}/**
593
+ */let qr=/(url\()([^)]*)(\))/g,Kr=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,ut,te;function Ke(i,t){if(i&&Kr.test(i)||i==="//")return i;if(ut===void 0){ut=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",ut=e.href==="http://a/c%20d"}catch(e){}}if(t||(t=document.baseURI||window.location.href),ut)try{return new URL(i,t).href}catch(e){return i}return te||(te=document.implementation.createHTMLDocument("temp"),te.base=te.createElement("base"),te.head.appendChild(te.base),te.anchor=te.createElement("a"),te.body.appendChild(te.anchor)),te.base.href=t,te.anchor.href=i,te.anchor.href||i}function To(i,t){return i.replace(qr,function(e,o,s,r){return o+"'"+Ke(s.replace(/["']/g,""),t)+"'"+r})}function Mo(i){return i.substring(0,i.lastIndexOf("/")+1)}/**
594
594
  @license
595
595
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
596
596
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -598,7 +598,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
598
598
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
599
599
  Code distributed by Google as part of the polymer project is also
600
600
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
601
- */const ei=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const Gr=ei&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const s=new CSSStyleSheet;s.replaceSync("");const t=document.createElement("div");return t.attachShadow({mode:"open"}),t.shadowRoot.adoptedStyleSheets=[s],t.shadowRoot.adoptedStyleSheets[0]===s}catch(s){return!1}})();let Jr=window.Polymer&&window.Polymer.rootPath||Mo(document.baseURI||window.location.href),bt=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let xt=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,Xr=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,ti=window.Polymer&&window.Polymer.legacyOptimizations||!1,oi=window.Polymer&&window.Polymer.legacyWarnings||!1,Zr=window.Polymer&&window.Polymer.syncInitialRender||!1,ao=window.Polymer&&window.Polymer.legacyUndefined||!1,Qr=window.Polymer&&window.Polymer.orderedComputed||!1,hs=window.Polymer&&window.Polymer.removeNestedTemplates||!1,en=window.Polymer&&window.Polymer.fastDomIf||!1,ps=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let tn=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
601
+ */const es=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const Gr=es&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const i=new CSSStyleSheet;i.replaceSync("");const t=document.createElement("div");return t.attachShadow({mode:"open"}),t.shadowRoot.adoptedStyleSheets=[i],t.shadowRoot.adoptedStyleSheets[0]===i}catch(i){return!1}})();let Jr=window.Polymer&&window.Polymer.rootPath||Mo(document.baseURI||window.location.href),bt=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let xt=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,Xr=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,ts=window.Polymer&&window.Polymer.legacyOptimizations||!1,os=window.Polymer&&window.Polymer.legacyWarnings||!1,Zr=window.Polymer&&window.Polymer.syncInitialRender||!1,ao=window.Polymer&&window.Polymer.legacyUndefined||!1,Qr=window.Polymer&&window.Polymer.orderedComputed||!1,hi=window.Polymer&&window.Polymer.removeNestedTemplates||!1,en=window.Polymer&&window.Polymer.fastDomIf||!1,pi=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let tn=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
602
602
  @license
603
603
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
604
604
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -606,7 +606,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
606
606
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
607
607
  Code distributed by Google as part of the polymer project is also
608
608
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
609
- */let on=0;const Y=function(s){let t=s.__mixinApplications;t||(t=new WeakMap,s.__mixinApplications=t);let e=on++;function o(i){let r=i.__mixinSet;if(r&&r[e])return i;let n=t,a=n.get(i);if(!a){a=s(i),n.set(i,a);let l=Object.create(a.__mixinSet||r||null);l[e]=!0,a.__mixinSet=l}return a}return o};/**
609
+ */let on=0;const Y=function(i){let t=i.__mixinApplications;t||(t=new WeakMap,i.__mixinApplications=t);let e=on++;function o(s){let r=s.__mixinSet;if(r&&r[e])return s;let n=t,a=n.get(s);if(!a){a=i(s),n.set(s,a);let l=Object.create(a.__mixinSet||r||null);l[e]=!0,a.__mixinSet=l}return a}return o};/**
610
610
  @license
611
611
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
612
612
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -614,7 +614,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
614
614
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
615
615
  Code distributed by Google as part of the polymer project is also
616
616
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
617
- */let Oo={},si={};function ms(s,t){Oo[s]=si[s.toLowerCase()]=t}function fs(s){return Oo[s]||si[s.toLowerCase()]}function sn(s){s.querySelector("style")&&console.warn("dom-module %s has style outside template",s.id)}class Ze extends HTMLElement{static get observedAttributes(){return["id"]}static import(t,e){if(t){let o=fs(t);return o&&e?o.querySelector(e):o}return null}attributeChangedCallback(t,e,o,i){e!==o&&this.register()}get assetpath(){if(!this.__assetpath){const t=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=Ke(this.getAttribute("assetpath")||"",t.baseURI);this.__assetpath=Mo(e)}return this.__assetpath}register(t){if(t=t||this.id,t){if(xt&&fs(t)!==void 0)throw ms(t,null),new Error(`strictTemplatePolicy: dom-module ${t} re-registered`);this.id=t,ms(t,this),sn(this)}}}Ze.prototype.modules=Oo;customElements.define("dom-module",Ze);/**
617
+ */let Oo={},is={};function mi(i,t){Oo[i]=is[i.toLowerCase()]=t}function fi(i){return Oo[i]||is[i.toLowerCase()]}function sn(i){i.querySelector("style")&&console.warn("dom-module %s has style outside template",i.id)}class Ze extends HTMLElement{static get observedAttributes(){return["id"]}static import(t,e){if(t){let o=fi(t);return o&&e?o.querySelector(e):o}return null}attributeChangedCallback(t,e,o,s){e!==o&&this.register()}get assetpath(){if(!this.__assetpath){const t=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=Ke(this.getAttribute("assetpath")||"",t.baseURI);this.__assetpath=Mo(e)}return this.__assetpath}register(t){if(t=t||this.id,t){if(xt&&fi(t)!==void 0)throw mi(t,null),new Error(`strictTemplatePolicy: dom-module ${t} re-registered`);this.id=t,mi(t,this),sn(this)}}}Ze.prototype.modules=Oo;customElements.define("dom-module",Ze);/**
618
618
  @license
619
619
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
620
620
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -622,7 +622,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
622
622
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
623
623
  Code distributed by Google as part of the polymer project is also
624
624
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
625
- */const rn="link[rel=import][type~=css]",nn="include",_s="shady-unscoped";function ii(s){return Ze.import(s)}function gs(s){let t=s.body?s.body:s;const e=To(t.textContent,s.baseURI),o=document.createElement("style");return o.textContent=e,o}function an(s){const t=s.trim().split(/\s+/),e=[];for(let o=0;o<t.length;o++)e.push(...ln(t[o]));return e}function ln(s){const t=ii(s);if(!t)return console.warn("Could not find style data in module named",s),[];if(t._styles===void 0){const e=[];e.push(...ni(t));const o=t.querySelector("template");o&&e.push(...ri(o,t.assetpath)),t._styles=e}return t._styles}function ri(s,t){if(!s._styles){const e=[],o=s.content.querySelectorAll("style");for(let i=0;i<o.length;i++){let r=o[i],n=r.getAttribute(nn);n&&e.push(...an(n).filter(function(a,l,c){return c.indexOf(a)===l})),t&&(r.textContent=To(r.textContent,t)),e.push(r)}s._styles=e}return s._styles}function cn(s){let t=ii(s);return t?ni(t):[]}function ni(s){const t=[],e=s.querySelectorAll(rn);for(let o=0;o<e.length;o++){let i=e[o];if(i.import){const r=i.import,n=i.hasAttribute(_s);if(n&&!r._unscopedStyle){const a=gs(r);a.setAttribute(_s,""),r._unscopedStyle=a}else r._style||(r._style=gs(r));t.push(n?r._unscopedStyle:r._style)}}return t}/**
625
+ */const rn="link[rel=import][type~=css]",nn="include",_i="shady-unscoped";function ss(i){return Ze.import(i)}function gi(i){let t=i.body?i.body:i;const e=To(t.textContent,i.baseURI),o=document.createElement("style");return o.textContent=e,o}function an(i){const t=i.trim().split(/\s+/),e=[];for(let o=0;o<t.length;o++)e.push(...ln(t[o]));return e}function ln(i){const t=ss(i);if(!t)return console.warn("Could not find style data in module named",i),[];if(t._styles===void 0){const e=[];e.push(...ns(t));const o=t.querySelector("template");o&&e.push(...rs(o,t.assetpath)),t._styles=e}return t._styles}function rs(i,t){if(!i._styles){const e=[],o=i.content.querySelectorAll("style");for(let s=0;s<o.length;s++){let r=o[s],n=r.getAttribute(nn);n&&e.push(...an(n).filter(function(a,l,c){return c.indexOf(a)===l})),t&&(r.textContent=To(r.textContent,t)),e.push(r)}i._styles=e}return i._styles}function cn(i){let t=ss(i);return t?ns(t):[]}function ns(i){const t=[],e=i.querySelectorAll(rn);for(let o=0;o<e.length;o++){let s=e[o];if(s.import){const r=s.import,n=s.hasAttribute(_i);if(n&&!r._unscopedStyle){const a=gi(r);a.setAttribute(_i,""),r._unscopedStyle=a}else r._style||(r._style=gi(r));t.push(n?r._unscopedStyle:r._style)}}return t}/**
626
626
  @license
627
627
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
628
628
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -630,7 +630,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
630
630
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
631
631
  Code distributed by Google as part of the polymer project is also
632
632
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
633
- */const K=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?s=>ShadyDOM.patch(s):s=>s;/**
633
+ */const K=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?i=>ShadyDOM.patch(i):i=>i;/**
634
634
  @license
635
635
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
636
636
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -638,7 +638,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
638
638
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
639
639
  Code distributed by Google as part of the polymer project is also
640
640
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
641
- */function lo(s){return s.indexOf(".")>=0}function ke(s){let t=s.indexOf(".");return t===-1?s:s.slice(0,t)}function ai(s,t){return s.indexOf(t+".")===0}function Qe(s,t){return t.indexOf(s+".")===0}function et(s,t,e){return t+e.slice(s.length)}function un(s,t){return s===t||ai(s,t)||Qe(s,t)}function We(s){if(Array.isArray(s)){let t=[];for(let e=0;e<s.length;e++){let o=s[e].toString().split(".");for(let i=0;i<o.length;i++)t.push(o[i])}return t.join(".")}else return s}function li(s){return Array.isArray(s)?We(s).split("."):s.toString().split(".")}function ee(s,t,e){let o=s,i=li(t);for(let r=0;r<i.length;r++){if(!o)return;let n=i[r];o=o[n]}return e&&(e.path=i.join(".")),o}function vs(s,t,e){let o=s,i=li(t),r=i[i.length-1];if(i.length>1){for(let n=0;n<i.length-1;n++){let a=i[n];if(o=o[a],!o)return}o[r]=e}else o[t]=e;return i.join(".")}/**
641
+ */function lo(i){return i.indexOf(".")>=0}function Pe(i){let t=i.indexOf(".");return t===-1?i:i.slice(0,t)}function as(i,t){return i.indexOf(t+".")===0}function Qe(i,t){return t.indexOf(i+".")===0}function et(i,t,e){return t+e.slice(i.length)}function un(i,t){return i===t||as(i,t)||Qe(i,t)}function We(i){if(Array.isArray(i)){let t=[];for(let e=0;e<i.length;e++){let o=i[e].toString().split(".");for(let s=0;s<o.length;s++)t.push(o[s])}return t.join(".")}else return i}function ls(i){return Array.isArray(i)?We(i).split("."):i.toString().split(".")}function ee(i,t,e){let o=i,s=ls(t);for(let r=0;r<s.length;r++){if(!o)return;let n=s[r];o=o[n]}return e&&(e.path=s.join(".")),o}function yi(i,t,e){let o=i,s=ls(t),r=s[s.length-1];if(s.length>1){for(let n=0;n<s.length-1;n++){let a=s[n];if(o=o[a],!o)return}o[r]=e}else o[t]=e;return s.join(".")}/**
642
642
  @license
643
643
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
644
644
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -646,7 +646,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
646
646
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
647
647
  Code distributed by Google as part of the polymer project is also
648
648
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
649
- */const wt={},dn=/-[a-z]/g,hn=/([A-Z])/g;function ci(s){return wt[s]||(wt[s]=s.indexOf("-")<0?s:s.replace(dn,t=>t[1].toUpperCase()))}function kt(s){return wt[s]||(wt[s]=s.replace(hn,"-$1").toLowerCase())}/**
649
+ */const wt={},dn=/-[a-z]/g,hn=/([A-Z])/g;function cs(i){return wt[i]||(wt[i]=i.indexOf("-")<0?i:i.replace(dn,t=>t[1].toUpperCase()))}function Pt(i){return wt[i]||(wt[i]=i.replace(hn,"-$1").toLowerCase())}/**
650
650
  @license
651
651
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
652
652
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -654,7 +654,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
654
654
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
655
655
  Code distributed by Google as part of the polymer project is also
656
656
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
657
- */let pn=0,ui=0,Ie=[],mn=0,co=!1,di=document.createTextNode("");new window.MutationObserver(fn).observe(di,{characterData:!0});function fn(){co=!1;const s=Ie.length;for(let t=0;t<s;t++){let e=Ie[t];if(e)try{e()}catch(o){setTimeout(()=>{throw o})}}Ie.splice(0,s),ui+=s}const _n={after(s){return{run(t){return window.setTimeout(t,s)},cancel(t){window.clearTimeout(t)}}},run(s,t){return window.setTimeout(s,t)},cancel(s){window.clearTimeout(s)}},hi={run(s){return co||(co=!0,di.textContent=mn++),Ie.push(s),pn++},cancel(s){const t=s-ui;if(t>=0){if(!Ie[t])throw new Error("invalid async handle: "+s);Ie[t]=null}}};/**
657
+ */let pn=0,us=0,Ie=[],mn=0,co=!1,ds=document.createTextNode("");new window.MutationObserver(fn).observe(ds,{characterData:!0});function fn(){co=!1;const i=Ie.length;for(let t=0;t<i;t++){let e=Ie[t];if(e)try{e()}catch(o){setTimeout(()=>{throw o})}}Ie.splice(0,i),us+=i}const _n={after(i){return{run(t){return window.setTimeout(t,i)},cancel(t){window.clearTimeout(t)}}},run(i,t){return window.setTimeout(i,t)},cancel(i){window.clearTimeout(i)}},hs={run(i){return co||(co=!0,ds.textContent=mn++),Ie.push(i),pn++},cancel(i){const t=i-us;if(t>=0){if(!Ie[t])throw new Error("invalid async handle: "+i);Ie[t]=null}}};/**
658
658
  @license
659
659
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
660
660
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -662,7 +662,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
662
662
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
663
663
  Code distributed by Google as part of the polymer project is also
664
664
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
665
- */const gn=hi,pi=Y(s=>{class t extends s{static createProperties(o){const i=this.prototype;for(let r in o)r in i||i._createPropertyAccessor(r)}static attributeNameForProperty(o){return o.toLowerCase()}static typeForProperty(o){}_createPropertyAccessor(o,i){this._addPropertyToAttributeMap(o),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[o]||(this.__dataHasAccessor[o]=!0,this._definePropertyAccessor(o,i))}_addPropertyToAttributeMap(o){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let i=this.__dataAttributes[o];return i||(i=this.constructor.attributeNameForProperty(o),this.__dataAttributes[i]=o),i}_definePropertyAccessor(o,i){Object.defineProperty(this,o,{get(){return this.__data[o]},set:i?function(){}:function(r){this._setPendingProperty(o,r,!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 o in this.__dataHasAccessor)this.hasOwnProperty(o)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[o]=this[o],delete this[o])}_initializeInstanceProperties(o){Object.assign(this,o)}_setProperty(o,i){this._setPendingProperty(o,i)&&this._invalidateProperties()}_getProperty(o){return this.__data[o]}_setPendingProperty(o,i,r){let n=this.__data[o],a=this._shouldPropertyChange(o,i,n);return a&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(o in this.__dataOld)&&(this.__dataOld[o]=n),this.__data[o]=i,this.__dataPending[o]=i),a}_isPropertyPending(o){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(o))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,gn.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 o=this.__data,i=this.__dataPending,r=this.__dataOld;this._shouldPropertiesChange(o,i,r)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(o,i,r)),this.__dataCounter--}_shouldPropertiesChange(o,i,r){return!!i}_propertiesChanged(o,i,r){}_shouldPropertyChange(o,i,r){return r!==i&&(r===r||i===i)}attributeChangedCallback(o,i,r,n){i!==r&&this._attributeToProperty(o,r),super.attributeChangedCallback&&super.attributeChangedCallback(o,i,r,n)}_attributeToProperty(o,i,r){if(!this.__serializing){const n=this.__dataAttributes,a=n&&n[o]||o;this[a]=this._deserializeValue(i,r||this.constructor.typeForProperty(a))}}_propertyToAttribute(o,i,r){this.__serializing=!0,r=arguments.length<3?this[o]:r,this._valueToNodeAttribute(this,r,i||this.constructor.attributeNameForProperty(o)),this.__serializing=!1}_valueToNodeAttribute(o,i,r){const n=this._serializeValue(i);(r==="class"||r==="name"||r==="slot")&&(o=K(o)),n===void 0?o.removeAttribute(r):o.setAttribute(r,n===""&&window.trustedTypes?window.trustedTypes.emptyScript:n)}_serializeValue(o){switch(typeof o){case"boolean":return o?"":void 0;default:return o!=null?o.toString():void 0}}_deserializeValue(o,i){switch(i){case Boolean:return o!==null;case Number:return Number(o);default:return o}}}return t});/**
665
+ */const gn=hs,ps=Y(i=>{class t extends i{static createProperties(o){const s=this.prototype;for(let r in o)r in s||s._createPropertyAccessor(r)}static attributeNameForProperty(o){return o.toLowerCase()}static typeForProperty(o){}_createPropertyAccessor(o,s){this._addPropertyToAttributeMap(o),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[o]||(this.__dataHasAccessor[o]=!0,this._definePropertyAccessor(o,s))}_addPropertyToAttributeMap(o){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let s=this.__dataAttributes[o];return s||(s=this.constructor.attributeNameForProperty(o),this.__dataAttributes[s]=o),s}_definePropertyAccessor(o,s){Object.defineProperty(this,o,{get(){return this.__data[o]},set:s?function(){}:function(r){this._setPendingProperty(o,r,!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 o in this.__dataHasAccessor)this.hasOwnProperty(o)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[o]=this[o],delete this[o])}_initializeInstanceProperties(o){Object.assign(this,o)}_setProperty(o,s){this._setPendingProperty(o,s)&&this._invalidateProperties()}_getProperty(o){return this.__data[o]}_setPendingProperty(o,s,r){let n=this.__data[o],a=this._shouldPropertyChange(o,s,n);return a&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(o in this.__dataOld)&&(this.__dataOld[o]=n),this.__data[o]=s,this.__dataPending[o]=s),a}_isPropertyPending(o){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(o))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,gn.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 o=this.__data,s=this.__dataPending,r=this.__dataOld;this._shouldPropertiesChange(o,s,r)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(o,s,r)),this.__dataCounter--}_shouldPropertiesChange(o,s,r){return!!s}_propertiesChanged(o,s,r){}_shouldPropertyChange(o,s,r){return r!==s&&(r===r||s===s)}attributeChangedCallback(o,s,r,n){s!==r&&this._attributeToProperty(o,r),super.attributeChangedCallback&&super.attributeChangedCallback(o,s,r,n)}_attributeToProperty(o,s,r){if(!this.__serializing){const n=this.__dataAttributes,a=n&&n[o]||o;this[a]=this._deserializeValue(s,r||this.constructor.typeForProperty(a))}}_propertyToAttribute(o,s,r){this.__serializing=!0,r=arguments.length<3?this[o]:r,this._valueToNodeAttribute(this,r,s||this.constructor.attributeNameForProperty(o)),this.__serializing=!1}_valueToNodeAttribute(o,s,r){const n=this._serializeValue(s);(r==="class"||r==="name"||r==="slot")&&(o=K(o)),n===void 0?o.removeAttribute(r):o.setAttribute(r,n===""&&window.trustedTypes?window.trustedTypes.emptyScript:n)}_serializeValue(o){switch(typeof o){case"boolean":return o?"":void 0;default:return o!=null?o.toString():void 0}}_deserializeValue(o,s){switch(s){case Boolean:return o!==null;case Number:return Number(o);default:return o}}}return t});/**
666
666
  @license
667
667
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
668
668
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -670,7 +670,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
670
670
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
671
671
  Code distributed by Google as part of the polymer project is also
672
672
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
673
- */const mi={};let dt=HTMLElement.prototype;for(;dt;){let s=Object.getOwnPropertyNames(dt);for(let t=0;t<s.length;t++)mi[s[t]]=!0;dt=Object.getPrototypeOf(dt)}const vn=window.trustedTypes?s=>trustedTypes.isHTML(s)||trustedTypes.isScript(s)||trustedTypes.isScriptURL(s):()=>!1;function yn(s,t){if(!mi[t]){let e=s[t];e!==void 0&&(s.__data?s._setPendingProperty(t,e):(s.__dataProto?s.hasOwnProperty(JSCompiler_renameProperty("__dataProto",s))||(s.__dataProto=Object.create(s.__dataProto)):s.__dataProto={},s.__dataProto[t]=e))}}const bn=Y(s=>{const t=pi(s);class e extends t{static createPropertiesForAttributes(){let i=this.observedAttributes;for(let r=0;r<i.length;r++)this.prototype._createPropertyAccessor(ci(i[r]))}static attributeNameForProperty(i){return kt(i)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(i){for(let r in i)this._setProperty(r,i[r])}_ensureAttribute(i,r){const n=this;n.hasAttribute(i)||this._valueToNodeAttribute(n,r,i)}_serializeValue(i){switch(typeof i){case"object":if(i instanceof Date)return i.toString();if(i){if(vn(i))return i;try{return JSON.stringify(i)}catch(r){return""}}default:return super._serializeValue(i)}}_deserializeValue(i,r){let n;switch(r){case Object:try{n=JSON.parse(i)}catch(a){n=i}break;case Array:try{n=JSON.parse(i)}catch(a){n=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${i}`)}break;case Date:n=isNaN(i)?String(i):Number(i),n=new Date(n);break;default:n=super._deserializeValue(i,r);break}return n}_definePropertyAccessor(i,r){yn(this,i),super._definePropertyAccessor(i,r)}_hasAccessor(i){return this.__dataHasAccessor&&this.__dataHasAccessor[i]}_isPropertyPending(i){return!!(this.__dataPending&&i in this.__dataPending)}}return e});/**
673
+ */const ms={};let dt=HTMLElement.prototype;for(;dt;){let i=Object.getOwnPropertyNames(dt);for(let t=0;t<i.length;t++)ms[i[t]]=!0;dt=Object.getPrototypeOf(dt)}const yn=window.trustedTypes?i=>trustedTypes.isHTML(i)||trustedTypes.isScript(i)||trustedTypes.isScriptURL(i):()=>!1;function vn(i,t){if(!ms[t]){let e=i[t];e!==void 0&&(i.__data?i._setPendingProperty(t,e):(i.__dataProto?i.hasOwnProperty(JSCompiler_renameProperty("__dataProto",i))||(i.__dataProto=Object.create(i.__dataProto)):i.__dataProto={},i.__dataProto[t]=e))}}const bn=Y(i=>{const t=ps(i);class e extends t{static createPropertiesForAttributes(){let s=this.observedAttributes;for(let r=0;r<s.length;r++)this.prototype._createPropertyAccessor(cs(s[r]))}static attributeNameForProperty(s){return Pt(s)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(s){for(let r in s)this._setProperty(r,s[r])}_ensureAttribute(s,r){const n=this;n.hasAttribute(s)||this._valueToNodeAttribute(n,r,s)}_serializeValue(s){switch(typeof s){case"object":if(s instanceof Date)return s.toString();if(s){if(yn(s))return s;try{return JSON.stringify(s)}catch(r){return""}}default:return super._serializeValue(s)}}_deserializeValue(s,r){let n;switch(r){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,r);break}return n}_definePropertyAccessor(s,r){vn(this,s),super._definePropertyAccessor(s,r)}_hasAccessor(s){return this.__dataHasAccessor&&this.__dataHasAccessor[s]}_isPropertyPending(s){return!!(this.__dataPending&&s in this.__dataPending)}}return e});/**
674
674
  @license
675
675
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
676
676
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -678,7 +678,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
678
678
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
679
679
  Code distributed by Google as part of the polymer project is also
680
680
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
681
- */const xn={"dom-if":!0,"dom-repeat":!0};let ys=!1,bs=!1;function wn(){if(!ys){ys=!0;const s=document.createElement("textarea");s.placeholder="a",bs=s.placeholder===s.textContent}return bs}function En(s){wn()&&s.localName==="textarea"&&s.placeholder&&s.placeholder===s.textContent&&(s.textContent=null)}const Sn=(()=>{const s=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:t=>t});return(t,e,o)=>{const i=e.getAttribute(o);if(s&&o.startsWith("on-")){t.setAttribute(o,s.createScript(i,o));return}t.setAttribute(o,i)}})();function Cn(s){let t=s.getAttribute("is");if(t&&xn[t]){let e=s;for(e.removeAttribute("is"),s=e.ownerDocument.createElement(t),e.parentNode.replaceChild(s,e),s.appendChild(e);e.attributes.length;){const{name:o}=e.attributes[0];Sn(s,e,o),e.removeAttribute(o)}}return s}function fi(s,t){let e=t.parentInfo&&fi(s,t.parentInfo);if(e){for(let o=e.firstChild,i=0;o;o=o.nextSibling)if(t.parentIndex===i++)return o}else return s}function An(s,t,e,o){o.id&&(t[o.id]=e)}function Pn(s,t,e){if(e.events&&e.events.length)for(let o=0,i=e.events,r;o<i.length&&(r=i[o]);o++)s._addMethodEventListenerToNode(t,r.name,r.value,s)}function kn(s,t,e,o){e.templateInfo&&(t._templateInfo=e.templateInfo,t._parentTemplateInfo=o)}function Dn(s,t,e){return s=s._methodHost||s,function(i){s[e]?s[e](i,i.detail):console.warn("listener method `"+e+"` not defined")}}const Tn=Y(s=>{class t extends s{static _parseTemplate(o,i){if(!o._templateInfo){let r=o._templateInfo={};r.nodeInfoList=[],r.nestedTemplate=!!i,r.stripWhiteSpace=i&&i.stripWhiteSpace||o.hasAttribute&&o.hasAttribute("strip-whitespace"),this._parseTemplateContent(o,r,{parent:null})}return o._templateInfo}static _parseTemplateContent(o,i,r){return this._parseTemplateNode(o.content,i,r)}static _parseTemplateNode(o,i,r){let n=!1,a=o;return a.localName=="template"&&!a.hasAttribute("preserve-content")?n=this._parseTemplateNestedTemplate(a,i,r)||n:a.localName==="slot"&&(i.hasInsertionPoint=!0),En(a),a.firstChild&&this._parseTemplateChildNodes(a,i,r),a.hasAttributes&&a.hasAttributes()&&(n=this._parseTemplateNodeAttributes(a,i,r)||n),n||r.noted}static _parseTemplateChildNodes(o,i,r){if(!(o.localName==="script"||o.localName==="style"))for(let n=o.firstChild,a=0,l;n;n=l){if(n.localName=="template"&&(n=Cn(n)),l=n.nextSibling,n.nodeType===Node.TEXT_NODE){let d=l;for(;d&&d.nodeType===Node.TEXT_NODE;)n.textContent+=d.textContent,l=d.nextSibling,o.removeChild(d),d=l;if(i.stripWhiteSpace&&!n.textContent.trim()){o.removeChild(n);continue}}let c={parentIndex:a,parentInfo:r};this._parseTemplateNode(n,i,c)&&(c.infoIndex=i.nodeInfoList.push(c)-1),n.parentNode&&a++}}static _parseTemplateNestedTemplate(o,i,r){let n=o,a=this._parseTemplate(n,i);return(a.content=n.content.ownerDocument.createDocumentFragment()).appendChild(n.content),r.templateInfo=a,!0}static _parseTemplateNodeAttributes(o,i,r){let n=!1,a=Array.from(o.attributes);for(let l=a.length-1,c;c=a[l];l--)n=this._parseTemplateNodeAttribute(o,i,r,c.name,c.value)||n;return n}static _parseTemplateNodeAttribute(o,i,r,n,a){return n.slice(0,3)==="on-"?(o.removeAttribute(n),r.events=r.events||[],r.events.push({name:n.slice(3),value:a}),!0):n==="id"?(r.id=a,!0):!1}static _contentForTemplate(o){let i=o._templateInfo;return i&&i.content||o.content}_stampTemplate(o,i){o&&!o.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(o),i=i||this.constructor._parseTemplate(o);let r=i.nodeInfoList,n=i.content||o.content,a=document.importNode(n,!0);a.__noInsertionPoint=!i.hasInsertionPoint;let l=a.nodeList=new Array(r.length);a.$={};for(let c=0,d=r.length,h;c<d&&(h=r[c]);c++){let p=l[c]=fi(a,h);An(this,a.$,p,h),kn(this,p,h,i),Pn(this,p,h)}return a=a,a}_addMethodEventListenerToNode(o,i,r,n){n=n||o;let a=Dn(n,i,r);return this._addEventListenerToNode(o,i,a),a}_addEventListenerToNode(o,i,r){o.addEventListener(i,r)}_removeEventListenerFromNode(o,i,r){o.removeEventListener(i,r)}}return t});/**
681
+ */const xn={"dom-if":!0,"dom-repeat":!0};let vi=!1,bi=!1;function wn(){if(!vi){vi=!0;const i=document.createElement("textarea");i.placeholder="a",bi=i.placeholder===i.textContent}return bi}function En(i){wn()&&i.localName==="textarea"&&i.placeholder&&i.placeholder===i.textContent&&(i.textContent=null)}const Sn=(()=>{const i=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:t=>t});return(t,e,o)=>{const s=e.getAttribute(o);if(i&&o.startsWith("on-")){t.setAttribute(o,i.createScript(s,o));return}t.setAttribute(o,s)}})();function Cn(i){let t=i.getAttribute("is");if(t&&xn[t]){let e=i;for(e.removeAttribute("is"),i=e.ownerDocument.createElement(t),e.parentNode.replaceChild(i,e),i.appendChild(e);e.attributes.length;){const{name:o}=e.attributes[0];Sn(i,e,o),e.removeAttribute(o)}}return i}function fs(i,t){let e=t.parentInfo&&fs(i,t.parentInfo);if(e){for(let o=e.firstChild,s=0;o;o=o.nextSibling)if(t.parentIndex===s++)return o}else return i}function An(i,t,e,o){o.id&&(t[o.id]=e)}function kn(i,t,e){if(e.events&&e.events.length)for(let o=0,s=e.events,r;o<s.length&&(r=s[o]);o++)i._addMethodEventListenerToNode(t,r.name,r.value,i)}function Pn(i,t,e,o){e.templateInfo&&(t._templateInfo=e.templateInfo,t._parentTemplateInfo=o)}function Dn(i,t,e){return i=i._methodHost||i,function(s){i[e]?i[e](s,s.detail):console.warn("listener method `"+e+"` not defined")}}const Tn=Y(i=>{class t extends i{static _parseTemplate(o,s){if(!o._templateInfo){let r=o._templateInfo={};r.nodeInfoList=[],r.nestedTemplate=!!s,r.stripWhiteSpace=s&&s.stripWhiteSpace||o.hasAttribute&&o.hasAttribute("strip-whitespace"),this._parseTemplateContent(o,r,{parent:null})}return o._templateInfo}static _parseTemplateContent(o,s,r){return this._parseTemplateNode(o.content,s,r)}static _parseTemplateNode(o,s,r){let n=!1,a=o;return a.localName=="template"&&!a.hasAttribute("preserve-content")?n=this._parseTemplateNestedTemplate(a,s,r)||n:a.localName==="slot"&&(s.hasInsertionPoint=!0),En(a),a.firstChild&&this._parseTemplateChildNodes(a,s,r),a.hasAttributes&&a.hasAttributes()&&(n=this._parseTemplateNodeAttributes(a,s,r)||n),n||r.noted}static _parseTemplateChildNodes(o,s,r){if(!(o.localName==="script"||o.localName==="style"))for(let n=o.firstChild,a=0,l;n;n=l){if(n.localName=="template"&&(n=Cn(n)),l=n.nextSibling,n.nodeType===Node.TEXT_NODE){let d=l;for(;d&&d.nodeType===Node.TEXT_NODE;)n.textContent+=d.textContent,l=d.nextSibling,o.removeChild(d),d=l;if(s.stripWhiteSpace&&!n.textContent.trim()){o.removeChild(n);continue}}let c={parentIndex:a,parentInfo:r};this._parseTemplateNode(n,s,c)&&(c.infoIndex=s.nodeInfoList.push(c)-1),n.parentNode&&a++}}static _parseTemplateNestedTemplate(o,s,r){let n=o,a=this._parseTemplate(n,s);return(a.content=n.content.ownerDocument.createDocumentFragment()).appendChild(n.content),r.templateInfo=a,!0}static _parseTemplateNodeAttributes(o,s,r){let n=!1,a=Array.from(o.attributes);for(let l=a.length-1,c;c=a[l];l--)n=this._parseTemplateNodeAttribute(o,s,r,c.name,c.value)||n;return n}static _parseTemplateNodeAttribute(o,s,r,n,a){return n.slice(0,3)==="on-"?(o.removeAttribute(n),r.events=r.events||[],r.events.push({name:n.slice(3),value:a}),!0):n==="id"?(r.id=a,!0):!1}static _contentForTemplate(o){let s=o._templateInfo;return s&&s.content||o.content}_stampTemplate(o,s){o&&!o.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(o),s=s||this.constructor._parseTemplate(o);let r=s.nodeInfoList,n=s.content||o.content,a=document.importNode(n,!0);a.__noInsertionPoint=!s.hasInsertionPoint;let l=a.nodeList=new Array(r.length);a.$={};for(let c=0,d=r.length,h;c<d&&(h=r[c]);c++){let p=l[c]=fs(a,h);An(this,a.$,p,h),Pn(this,p,h,s),kn(this,p,h)}return a=a,a}_addMethodEventListenerToNode(o,s,r,n){n=n||o;let a=Dn(n,s,r);return this._addEventListenerToNode(o,s,a),a}_addEventListenerToNode(o,s,r){o.addEventListener(s,r)}_removeEventListenerFromNode(o,s,r){o.removeEventListener(s,r)}}return t});/**
682
682
  * @fileoverview
683
683
  * @suppress {checkPrototypalTypes}
684
684
  * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -688,7 +688,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
688
688
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
689
689
  * Google as part of the polymer project is also subject to an additional IP
690
690
  * rights grant found at http://polymer.github.io/PATENTS.txt
691
- */let tt=0;const ot=[],T={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},_i="__computeInfo",Mn=/[A-Z]/;function Yt(s,t,e){let o=s[t];if(!o)o=s[t]={};else if(!s.hasOwnProperty(t)&&(o=s[t]=Object.create(s[t]),e))for(let i in o){let r=o[i],n=o[i]=Array(r.length);for(let a=0;a<r.length;a++)n[a]=r[a]}return o}function qe(s,t,e,o,i,r){if(t){let n=!1;const a=tt++;for(let l in e){let c=i?ke(l):l,d=t[c];if(d)for(let h=0,p=d.length,m;h<p&&(m=d[h]);h++)(!m.info||m.info.lastRun!==a)&&(!i||Io(l,m.trigger))&&(m.info&&(m.info.lastRun=a),m.fn(s,l,e,o,m.info,i,r),n=!0)}return n}return!1}function On(s,t,e,o,i,r,n,a){let l=!1,c=n?ke(o):o,d=t[c];if(d)for(let h=0,p=d.length,m;h<p&&(m=d[h]);h++)(!m.info||m.info.lastRun!==e)&&(!n||Io(o,m.trigger))&&(m.info&&(m.info.lastRun=e),m.fn(s,o,i,r,m.info,n,a),l=!0);return l}function Io(s,t){if(t){let e=t.name;return e==s||!!(t.structured&&ai(e,s))||!!(t.wildcard&&Qe(e,s))}else return!0}function xs(s,t,e,o,i){let r=typeof i.method=="string"?s[i.method]:i.method,n=i.property;r?r.call(s,s.__data[n],o[n]):i.dynamicFn||console.warn("observer method `"+i.method+"` not defined")}function In(s,t,e,o,i){let r=s[T.NOTIFY],n,a=tt++;for(let c in t)t[c]&&(r&&On(s,r,a,c,e,o,i)||i&&zn(s,c,e))&&(n=!0);let l;n&&(l=s.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function zn(s,t,e){let o=ke(t);if(o!==t){let i=kt(o)+"-changed";return gi(s,i,e[t],t),!0}return!1}function gi(s,t,e,o){let i={value:e,queueProperty:!0};o&&(i.path=o),K(s).dispatchEvent(new CustomEvent(t,{detail:i}))}function Nn(s,t,e,o,i,r){let a=(r?ke(t):t)!=t?t:null,l=a?ee(s,a):s.__data[t];a&&l===void 0&&(l=e[t]),gi(s,i.eventName,l,a)}function Ln(s,t,e,o,i){let r,n=s.detail,a=n&&n.path;a?(o=et(e,o,a),r=n&&n.value):r=s.currentTarget[e],r=i?!r:r,(!t[T.READ_ONLY]||!t[T.READ_ONLY][o])&&t._setPendingPropertyOrPath(o,r,!0,!!a)&&(!n||!n.queueProperty)&&t._invalidateProperties()}function Fn(s,t,e,o,i){let r=s.__data[t];bt&&(r=bt(r,i.attrName,"attribute",s)),s._propertyToAttribute(t,i.attrName,r)}function $n(s,t,e,o){let i=s[T.COMPUTE];if(i)if(Qr){tt++;const r=Bn(s),n=[];for(let l in t)ws(l,i,n,r,o);let a;for(;a=n.shift();)vi(s,"",t,e,a)&&ws(a.methodInfo,i,n,r,o);Object.assign(e,s.__dataOld),Object.assign(t,s.__dataPending),s.__dataPending=null}else{let r=t;for(;qe(s,i,r,e,o);)Object.assign(e,s.__dataOld),Object.assign(t,s.__dataPending),r=s.__dataPending,s.__dataPending=null}}const Rn=(s,t,e)=>{let o=0,i=t.length-1,r=-1;for(;o<=i;){const n=o+i>>1,a=e.get(t[n].methodInfo)-e.get(s.methodInfo);if(a<0)o=n+1;else if(a>0)i=n-1;else{r=n;break}}r<0&&(r=i+1),t.splice(r,0,s)},ws=(s,t,e,o,i)=>{const r=i?ke(s):s,n=t[r];if(n)for(let a=0;a<n.length;a++){const l=n[a];l.info.lastRun!==tt&&(!i||Io(s,l.trigger))&&(l.info.lastRun=tt,Rn(l.info,e,o))}};function Bn(s){let t=s.constructor.__orderedComputedDeps;if(!t){t=new Map;const e=s[T.COMPUTE];let{counts:o,ready:i,total:r}=Hn(s),n;for(;n=i.shift();){t.set(n,t.size);const a=e[n];a&&a.forEach(l=>{const c=l.info.methodInfo;--r,--o[c]===0&&i.push(c)})}r!==0&&console.warn(`Computed graph for ${s.localName} incomplete; circular?`),s.constructor.__orderedComputedDeps=t}return t}function Hn(s){const t=s[_i],e={},o=s[T.COMPUTE],i=[];let r=0;for(let n in t){const a=t[n];r+=e[n]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let n in o)t[n]||i.push(n);return{counts:e,ready:i,total:r}}function vi(s,t,e,o,i){let r=uo(s,t,e,o,i);if(r===ot)return!1;let n=i.methodInfo;return s.__dataHasAccessor&&s.__dataHasAccessor[n]?s._setPendingProperty(n,r,!0):(s[n]=r,!1)}function jn(s,t,e){let o=s.__dataLinkedPaths;if(o){let i;for(let r in o){let n=o[r];Qe(r,t)?(i=et(r,n,t),s._setPendingPropertyOrPath(i,e,!0,!0)):Qe(n,t)&&(i=et(n,r,t),s._setPendingPropertyOrPath(i,e,!0,!0))}}}function Vt(s,t,e,o,i,r,n){e.bindings=e.bindings||[];let a={kind:o,target:i,parts:r,literal:n,isCompound:r.length!==1};if(e.bindings.push(a),qn(a)){let{event:c,negate:d}=a.parts[0];a.listenerEvent=c||kt(i)+"-changed",a.listenerNegate=d}let l=t.nodeInfoList.length;for(let c=0;c<a.parts.length;c++){let d=a.parts[c];d.compoundIndex=c,Yn(s,t,a,d,l)}}function Yn(s,t,e,o,i){if(!o.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 r=o.dependencies,n={index:i,binding:e,part:o,evaluator:s};for(let a=0;a<r.length;a++){let l=r[a];typeof l=="string"&&(l=bi(l),l.wildcard=!0),s._addTemplatePropertyEffect(t,l.rootProperty,{fn:Vn,info:n,trigger:l})}}}function Vn(s,t,e,o,i,r,n){let a=n[i.index],l=i.binding,c=i.part;if(r&&c.source&&t.length>c.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let d=e[t];t=et(c.source,l.target,t),a._setPendingPropertyOrPath(t,d,!1,!0)&&s._enqueueClient(a)}else{let d=i.evaluator._evaluateBinding(s,c,t,e,o,r);d!==ot&&Un(s,a,l,c,d)}}function Un(s,t,e,o,i){if(i=Wn(t,i,e,o),bt&&(i=bt(i,e.target,e.kind,t)),e.kind=="attribute")s._valueToNodeAttribute(t,i,e.target);else{let r=e.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[r]?(!t[T.READ_ONLY]||!t[T.READ_ONLY][r])&&t._setPendingProperty(r,i)&&s._enqueueClient(t):s._setUnmanagedPropertyToNode(t,r,i)}}function Wn(s,t,e,o){if(e.isCompound){let i=s.__dataCompoundStorage[e.target];i[o.compoundIndex]=t,t=i.join("")}return e.kind!=="attribute"&&(e.target==="textContent"||e.target==="value"&&(s.localName==="input"||s.localName==="textarea"))&&(t=t==null?"":t),t}function qn(s){return!!s.target&&s.kind!="attribute"&&s.kind!="text"&&!s.isCompound&&s.parts[0].mode==="{"}function Kn(s,t){let{nodeList:e,nodeInfoList:o}=t;if(o.length)for(let i=0;i<o.length;i++){let r=o[i],n=e[i],a=r.bindings;if(a)for(let l=0;l<a.length;l++){let c=a[l];Gn(n,c),Jn(n,s,c)}n.__dataHost=s}}function Gn(s,t){if(t.isCompound){let e=s.__dataCompoundStorage||(s.__dataCompoundStorage={}),o=t.parts,i=new Array(o.length);for(let n=0;n<o.length;n++)i[n]=o[n].literal;let r=t.target;e[r]=i,t.literal&&t.kind=="property"&&(r==="className"&&(s=K(s)),s[r]=t.literal)}}function Jn(s,t,e){if(e.listenerEvent){let o=e.parts[0];s.addEventListener(e.listenerEvent,function(i){Ln(i,t,e.target,o.source,o.negate)})}}function Es(s,t,e,o,i,r){r=t.static||r&&(typeof r!="object"||r[t.methodName]);let n={methodName:t.methodName,args:t.args,methodInfo:i,dynamicFn:r};for(let a=0,l;a<t.args.length&&(l=t.args[a]);a++)l.literal||s._addPropertyEffect(l.rootProperty,e,{fn:o,info:n,trigger:l});return r&&s._addPropertyEffect(t.methodName,e,{fn:o,info:n}),n}function uo(s,t,e,o,i){let r=s._methodHost||s,n=r[i.methodName];if(n){let a=s._marshalArgs(i.args,t,e);return a===ot?ot:n.apply(r,a)}else i.dynamicFn||console.warn("method `"+i.methodName+"` not defined")}const Xn=[],yi="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Zn="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",Qn="(?:'(?:[^'\\\\]|\\\\.)*')",ea='(?:"(?:[^"\\\\]|\\\\.)*")',ta="(?:"+Qn+"|"+ea+")",Ss="(?:("+yi+"|"+Zn+"|"+ta+")\\s*)",oa="(?:"+Ss+"(?:,\\s*"+Ss+")*)",sa="(?:\\(\\s*(?:"+oa+"?)\\)\\s*)",ia="("+yi+"\\s*"+sa+"?)",ra="(\\[\\[|{{)\\s*",na="(?:]]|}})",aa="(?:(!)\\s*)?",la=ra+aa+ia+na,Cs=new RegExp(la,"g");function As(s){let t="";for(let e=0;e<s.length;e++){let o=s[e].literal;t+=o||""}return t}function Ut(s){let t=s.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){let o={methodName:t[1],static:!0,args:Xn};if(t[2].trim()){let i=t[2].replace(/\\,/g,"&comma;").split(",");return ca(i,o)}else return o}return null}function ca(s,t){return t.args=s.map(function(e){let o=bi(e);return o.literal||(t.static=!1),o},this),t}function bi(s){let t=s.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),e={name:t,value:"",literal:!1},o=t[0];switch(o==="-"&&(o=t[1]),o>="0"&&o<="9"&&(o="#"),o){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=ke(t),e.structured=lo(t),e.structured&&(e.wildcard=t.slice(-2)==".*",e.wildcard&&(e.name=t.slice(0,-2)))),e}function Ps(s,t,e){let o=ee(s,e);return o===void 0&&(o=t[e]),o}function xi(s,t,e,o){const i={indexSplices:o};ao&&!s._overrideLegacyUndefined&&(t.splices=i),s.notifyPath(e+".splices",i),s.notifyPath(e+".length",t.length),ao&&!s._overrideLegacyUndefined&&(i.indexSplices=[])}function je(s,t,e,o,i,r){xi(s,t,e,[{index:o,addedCount:i,removed:r,object:t,type:"splice"}])}function ua(s){return s[0].toUpperCase()+s.substring(1)}const zo=Y(s=>{const t=Tn(bn(s));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 T}_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(Ye.length){let i=Ye[Ye.length-1];i._enqueueClient(this),this.__dataHost=i}}_initializeProtoProperties(i){this.__data=Object.create(i),this.__dataPending=Object.create(i),this.__dataOld={}}_initializeInstanceProperties(i){let r=this[T.READ_ONLY];for(let n in i)(!r||!r[n])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=i[n])}_addPropertyEffect(i,r,n){this._createPropertyAccessor(i,r==T.READ_ONLY);let a=Yt(this,r,!0)[i];a||(a=this[r][i]=[]),a.push(n)}_removePropertyEffect(i,r,n){let a=Yt(this,r,!0)[i],l=a.indexOf(n);l>=0&&a.splice(l,1)}_hasPropertyEffect(i,r){let n=this[r];return!!(n&&n[i])}_hasReadOnlyEffect(i){return this._hasPropertyEffect(i,T.READ_ONLY)}_hasNotifyEffect(i){return this._hasPropertyEffect(i,T.NOTIFY)}_hasReflectEffect(i){return this._hasPropertyEffect(i,T.REFLECT)}_hasComputedEffect(i){return this._hasPropertyEffect(i,T.COMPUTE)}_setPendingPropertyOrPath(i,r,n,a){if(a||ke(Array.isArray(i)?i[0]:i)!==i){if(!a){let l=ee(this,i);if(i=vs(this,i,r),!i||!super._shouldPropertyChange(i,r,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(i,r,n))return jn(this,i,r),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[i])return this._setPendingProperty(i,r,n);this[i]=r}return!1}_setUnmanagedPropertyToNode(i,r,n){(n!==i[r]||typeof n=="object")&&(r==="className"&&(i=K(i)),i[r]=n)}_setPendingProperty(i,r,n){let a=this.__dataHasPaths&&lo(i),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(i,r,l[i])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),i in this.__dataOld||(this.__dataOld[i]=this.__data[i]),a?this.__dataTemp[i]=r:this.__data[i]=r,this.__dataPending[i]=r,(a||this[T.NOTIFY]&&this[T.NOTIFY][i])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[i]=n),!0):!1}_setProperty(i,r){this._setPendingProperty(i,r,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(i){this.__dataPendingClients=this.__dataPendingClients||[],i!==this&&this.__dataPendingClients.push(i)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let i=this.__dataPendingClients;if(i){this.__dataPendingClients=null;for(let r=0;r<i.length;r++){let n=i[r];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(i,r){for(let n in i)(r||!this[T.READ_ONLY]||!this[T.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,i[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(i,r,n){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;$n(this,r,n,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(r,n,a),this._flushClients(),qe(this,this[T.REFLECT],r,n,a),qe(this,this[T.OBSERVE],r,n,a),l&&In(this,l,r,n,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(i,r,n){this[T.PROPAGATE]&&qe(this,this[T.PROPAGATE],i,r,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,i,r,n)}_runEffectsForTemplate(i,r,n,a){const l=(c,d)=>{qe(this,i.propertyEffects,c,n,d,i.nodeList);for(let h=i.firstChild;h;h=h.nextSibling)this._runEffectsForTemplate(h,c,n,d)};i.runEffects?i.runEffects(l,r,a):l(r,a)}linkPaths(i,r){i=We(i),r=We(r),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[i]=r}unlinkPaths(i){i=We(i),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[i]}notifySplices(i,r){let n={path:""},a=ee(this,i,n);xi(this,a,n.path,r)}get(i,r){return ee(r||this,i)}set(i,r,n){n?vs(n,i,r):(!this[T.READ_ONLY]||!this[T.READ_ONLY][i])&&this._setPendingPropertyOrPath(i,r,!0)&&this._invalidateProperties()}push(i,...r){let n={path:""},a=ee(this,i,n),l=a.length,c=a.push(...r);return r.length&&je(this,a,n.path,l,r.length,[]),c}pop(i){let r={path:""},n=ee(this,i,r),a=!!n.length,l=n.pop();return a&&je(this,n,r.path,n.length,0,[l]),l}splice(i,r,n,...a){let l={path:""},c=ee(this,i,l);r<0?r=c.length-Math.floor(-r):r&&(r=Math.floor(r));let d;return arguments.length===2?d=c.splice(r):d=c.splice(r,n,...a),(a.length||d.length)&&je(this,c,l.path,r,a.length,d),d}shift(i){let r={path:""},n=ee(this,i,r),a=!!n.length,l=n.shift();return a&&je(this,n,r.path,0,0,[l]),l}unshift(i,...r){let n={path:""},a=ee(this,i,n),l=a.unshift(...r);return r.length&&je(this,a,n.path,0,r.length,[]),l}notifyPath(i,r){let n;if(arguments.length==1){let a={path:""};r=ee(this,i,a),n=a.path}else Array.isArray(i)?n=We(i):n=i;this._setPendingPropertyOrPath(n,r,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(i,r){this._addPropertyEffect(i,T.READ_ONLY),r&&(this["_set"+ua(i)]=function(n){this._setProperty(i,n)})}_createPropertyObserver(i,r,n){let a={property:i,method:r,dynamicFn:!!n};this._addPropertyEffect(i,T.OBSERVE,{fn:xs,info:a,trigger:{name:i}}),n&&this._addPropertyEffect(r,T.OBSERVE,{fn:xs,info:a,trigger:{name:r}})}_createMethodObserver(i,r){let n=Ut(i);if(!n)throw new Error("Malformed observer expression '"+i+"'");Es(this,n,T.OBSERVE,uo,null,r)}_createNotifyingProperty(i){this._addPropertyEffect(i,T.NOTIFY,{fn:Nn,info:{eventName:kt(i)+"-changed",property:i}})}_createReflectedProperty(i){let r=this.constructor.attributeNameForProperty(i);r[0]==="-"?console.warn("Property "+i+" cannot be reflected to attribute "+r+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(i,T.REFLECT,{fn:Fn,info:{attrName:r}})}_createComputedProperty(i,r,n){let a=Ut(r);if(!a)throw new Error("Malformed computed expression '"+r+"'");const l=Es(this,a,T.COMPUTE,vi,i,n);Yt(this,_i)[i]=l}_marshalArgs(i,r,n){const a=this.__data,l=[];for(let c=0,d=i.length;c<d;c++){let{name:h,structured:p,wildcard:m,value:v,literal:A}=i[c];if(!A)if(m){const z=Qe(h,r),M=Ps(a,n,z?r:h);v={path:z?r:h,value:M,base:z?ee(a,h):M}}else v=p?Ps(a,n,h):a[h];if(ao&&!this._overrideLegacyUndefined&&v===void 0&&i.length>1)return ot;l[c]=v}return l}static addPropertyEffect(i,r,n){this.prototype._addPropertyEffect(i,r,n)}static createPropertyObserver(i,r,n){this.prototype._createPropertyObserver(i,r,n)}static createMethodObserver(i,r){this.prototype._createMethodObserver(i,r)}static createNotifyingProperty(i){this.prototype._createNotifyingProperty(i)}static createReadOnlyProperty(i,r){this.prototype._createReadOnlyProperty(i,r)}static createReflectedProperty(i){this.prototype._createReflectedProperty(i)}static createComputedProperty(i,r,n){this.prototype._createComputedProperty(i,r,n)}static bindTemplate(i){return this.prototype._bindTemplate(i)}_bindTemplate(i,r){let n=this.constructor._parseTemplate(i),a=this.__preBoundTemplateInfo==n;if(!a)for(let l in n.propertyEffects)this._createPropertyAccessor(l);if(r)if(n=Object.create(n),n.wasPreBound=a,!this.__templateInfo)this.__templateInfo=n;else{const l=i._parentTemplateInfo||this.__templateInfo,c=l.lastChild;n.parent=l,l.lastChild=n,n.previousSibling=c,c?c.nextSibling=n:l.firstChild=n}else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(i,r,n){let a=i.hostProps=i.hostProps||{};a[r]=!0;let l=i.propertyEffects=i.propertyEffects||{};(l[r]=l[r]||[]).push(n)}_stampTemplate(i,r){r=r||this._bindTemplate(i,!0),Ye.push(this);let n=super._stampTemplate(i,r);if(Ye.pop(),r.nodeList=n.nodeList,!r.wasPreBound){let a=r.childNodes=[];for(let l=n.firstChild;l;l=l.nextSibling)a.push(l)}return n.templateInfo=r,Kn(this,r),this.__dataClientsReady&&(this._runEffectsForTemplate(r,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(i){const r=i.templateInfo,{previousSibling:n,nextSibling:a,parent:l}=r;n?n.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=n:l&&(l.lastChild=n),r.nextSibling=r.previousSibling=null;let c=r.childNodes;for(let d=0;d<c.length;d++){let h=c[d];K(K(h).parentNode).removeChild(h)}}static _parseTemplateNode(i,r,n){let a=t._parseTemplateNode.call(this,i,r,n);if(i.nodeType===Node.TEXT_NODE){let l=this._parseBindings(i.textContent,r);l&&(i.textContent=As(l)||" ",Vt(this,r,n,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(i,r,n,a,l){let c=this._parseBindings(l,r);if(c){let d=a,h="property";Mn.test(a)?h="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),h="attribute");let p=As(c);return p&&h=="attribute"&&(a=="class"&&i.hasAttribute("class")&&(p+=" "+i.getAttribute(a)),i.setAttribute(a,p)),h=="attribute"&&d=="disable-upgrade$"&&i.setAttribute(a,""),i.localName==="input"&&d==="value"&&i.setAttribute(d,""),i.removeAttribute(d),h==="property"&&(a=ci(a)),Vt(this,r,n,h,a,c,p),!0}else return t._parseTemplateNodeAttribute.call(this,i,r,n,a,l)}static _parseTemplateNestedTemplate(i,r,n){let a=t._parseTemplateNestedTemplate.call(this,i,r,n);const l=i.parentNode,c=n.templateInfo,d=l.localName==="dom-if",h=l.localName==="dom-repeat";hs&&(d||h)&&(l.removeChild(i),n=n.parentInfo,n.templateInfo=c,n.noted=!0,a=!1);let p=c.hostProps;if(en&&d)p&&(r.hostProps=Object.assign(r.hostProps||{},p),hs||(n.parentInfo.noted=!0));else{let m="{";for(let v in p){let A=[{mode:m,source:v,dependencies:[v],hostProp:!0}];Vt(this,r,n,"property","_host_"+v,A)}}return a}static _parseBindings(i,r){let n=[],a=0,l;for(;(l=Cs.exec(i))!==null;){l.index>a&&n.push({literal:i.slice(a,l.index)});let c=l[1][0],d=!!l[2],h=l[3].trim(),p=!1,m="",v=-1;c=="{"&&(v=h.indexOf("::"))>0&&(m=h.substring(v+2),h=h.substring(0,v),p=!0);let A=Ut(h),z=[];if(A){let{args:M,methodName:I}=A;for(let re=0;re<M.length;re++){let j=M[re];j.literal||z.push(j)}let V=r.dynamicFns;(V&&V[I]||A.static)&&(z.push(I),A.dynamicFn=!0)}else z.push(h);n.push({source:h,mode:c,negate:d,customEvent:p,signature:A,dependencies:z,event:m}),a=Cs.lastIndex}if(a&&a<i.length){let c=i.substring(a);c&&n.push({literal:c})}return n.length?n:null}static _evaluateBinding(i,r,n,a,l,c){let d;return r.signature?d=uo(i,n,a,l,r.signature):n!=r.source?d=ee(i,r.source):c&&lo(n)?d=ee(i,n):d=i.__data[n],r.negate&&(d=!d),d}}return e}),Ye=[];/**
691
+ */let tt=0;const ot=[],T={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},_s="__computeInfo",Mn=/[A-Z]/;function Yt(i,t,e){let o=i[t];if(!o)o=i[t]={};else if(!i.hasOwnProperty(t)&&(o=i[t]=Object.create(i[t]),e))for(let s in o){let r=o[s],n=o[s]=Array(r.length);for(let a=0;a<r.length;a++)n[a]=r[a]}return o}function qe(i,t,e,o,s,r){if(t){let n=!1;const a=tt++;for(let l in e){let c=s?Pe(l):l,d=t[c];if(d)for(let h=0,p=d.length,m;h<p&&(m=d[h]);h++)(!m.info||m.info.lastRun!==a)&&(!s||Io(l,m.trigger))&&(m.info&&(m.info.lastRun=a),m.fn(i,l,e,o,m.info,s,r),n=!0)}return n}return!1}function On(i,t,e,o,s,r,n,a){let l=!1,c=n?Pe(o):o,d=t[c];if(d)for(let h=0,p=d.length,m;h<p&&(m=d[h]);h++)(!m.info||m.info.lastRun!==e)&&(!n||Io(o,m.trigger))&&(m.info&&(m.info.lastRun=e),m.fn(i,o,s,r,m.info,n,a),l=!0);return l}function Io(i,t){if(t){let e=t.name;return e==i||!!(t.structured&&as(e,i))||!!(t.wildcard&&Qe(e,i))}else return!0}function xi(i,t,e,o,s){let r=typeof s.method=="string"?i[s.method]:s.method,n=s.property;r?r.call(i,i.__data[n],o[n]):s.dynamicFn||console.warn("observer method `"+s.method+"` not defined")}function In(i,t,e,o,s){let r=i[T.NOTIFY],n,a=tt++;for(let c in t)t[c]&&(r&&On(i,r,a,c,e,o,s)||s&&zn(i,c,e))&&(n=!0);let l;n&&(l=i.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function zn(i,t,e){let o=Pe(t);if(o!==t){let s=Pt(o)+"-changed";return gs(i,s,e[t],t),!0}return!1}function gs(i,t,e,o){let s={value:e,queueProperty:!0};o&&(s.path=o),K(i).dispatchEvent(new CustomEvent(t,{detail:s}))}function Nn(i,t,e,o,s,r){let a=(r?Pe(t):t)!=t?t:null,l=a?ee(i,a):i.__data[t];a&&l===void 0&&(l=e[t]),gs(i,s.eventName,l,a)}function Ln(i,t,e,o,s){let r,n=i.detail,a=n&&n.path;a?(o=et(e,o,a),r=n&&n.value):r=i.currentTarget[e],r=s?!r:r,(!t[T.READ_ONLY]||!t[T.READ_ONLY][o])&&t._setPendingPropertyOrPath(o,r,!0,!!a)&&(!n||!n.queueProperty)&&t._invalidateProperties()}function Fn(i,t,e,o,s){let r=i.__data[t];bt&&(r=bt(r,s.attrName,"attribute",i)),i._propertyToAttribute(t,s.attrName,r)}function $n(i,t,e,o){let s=i[T.COMPUTE];if(s)if(Qr){tt++;const r=Bn(i),n=[];for(let l in t)wi(l,s,n,r,o);let a;for(;a=n.shift();)ys(i,"",t,e,a)&&wi(a.methodInfo,s,n,r,o);Object.assign(e,i.__dataOld),Object.assign(t,i.__dataPending),i.__dataPending=null}else{let r=t;for(;qe(i,s,r,e,o);)Object.assign(e,i.__dataOld),Object.assign(t,i.__dataPending),r=i.__dataPending,i.__dataPending=null}}const Rn=(i,t,e)=>{let o=0,s=t.length-1,r=-1;for(;o<=s;){const n=o+s>>1,a=e.get(t[n].methodInfo)-e.get(i.methodInfo);if(a<0)o=n+1;else if(a>0)s=n-1;else{r=n;break}}r<0&&(r=s+1),t.splice(r,0,i)},wi=(i,t,e,o,s)=>{const r=s?Pe(i):i,n=t[r];if(n)for(let a=0;a<n.length;a++){const l=n[a];l.info.lastRun!==tt&&(!s||Io(i,l.trigger))&&(l.info.lastRun=tt,Rn(l.info,e,o))}};function Bn(i){let t=i.constructor.__orderedComputedDeps;if(!t){t=new Map;const e=i[T.COMPUTE];let{counts:o,ready:s,total:r}=Hn(i),n;for(;n=s.shift();){t.set(n,t.size);const a=e[n];a&&a.forEach(l=>{const c=l.info.methodInfo;--r,--o[c]===0&&s.push(c)})}r!==0&&console.warn(`Computed graph for ${i.localName} incomplete; circular?`),i.constructor.__orderedComputedDeps=t}return t}function Hn(i){const t=i[_s],e={},o=i[T.COMPUTE],s=[];let r=0;for(let n in t){const a=t[n];r+=e[n]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let n in o)t[n]||s.push(n);return{counts:e,ready:s,total:r}}function ys(i,t,e,o,s){let r=uo(i,t,e,o,s);if(r===ot)return!1;let n=s.methodInfo;return i.__dataHasAccessor&&i.__dataHasAccessor[n]?i._setPendingProperty(n,r,!0):(i[n]=r,!1)}function jn(i,t,e){let o=i.__dataLinkedPaths;if(o){let s;for(let r in o){let n=o[r];Qe(r,t)?(s=et(r,n,t),i._setPendingPropertyOrPath(s,e,!0,!0)):Qe(n,t)&&(s=et(n,r,t),i._setPendingPropertyOrPath(s,e,!0,!0))}}}function Vt(i,t,e,o,s,r,n){e.bindings=e.bindings||[];let a={kind:o,target:s,parts:r,literal:n,isCompound:r.length!==1};if(e.bindings.push(a),qn(a)){let{event:c,negate:d}=a.parts[0];a.listenerEvent=c||Pt(s)+"-changed",a.listenerNegate=d}let l=t.nodeInfoList.length;for(let c=0;c<a.parts.length;c++){let d=a.parts[c];d.compoundIndex=c,Yn(i,t,a,d,l)}}function Yn(i,t,e,o,s){if(!o.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 r=o.dependencies,n={index:s,binding:e,part:o,evaluator:i};for(let a=0;a<r.length;a++){let l=r[a];typeof l=="string"&&(l=bs(l),l.wildcard=!0),i._addTemplatePropertyEffect(t,l.rootProperty,{fn:Vn,info:n,trigger:l})}}}function Vn(i,t,e,o,s,r,n){let a=n[s.index],l=s.binding,c=s.part;if(r&&c.source&&t.length>c.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let d=e[t];t=et(c.source,l.target,t),a._setPendingPropertyOrPath(t,d,!1,!0)&&i._enqueueClient(a)}else{let d=s.evaluator._evaluateBinding(i,c,t,e,o,r);d!==ot&&Un(i,a,l,c,d)}}function Un(i,t,e,o,s){if(s=Wn(t,s,e,o),bt&&(s=bt(s,e.target,e.kind,t)),e.kind=="attribute")i._valueToNodeAttribute(t,s,e.target);else{let r=e.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[r]?(!t[T.READ_ONLY]||!t[T.READ_ONLY][r])&&t._setPendingProperty(r,s)&&i._enqueueClient(t):i._setUnmanagedPropertyToNode(t,r,s)}}function Wn(i,t,e,o){if(e.isCompound){let s=i.__dataCompoundStorage[e.target];s[o.compoundIndex]=t,t=s.join("")}return e.kind!=="attribute"&&(e.target==="textContent"||e.target==="value"&&(i.localName==="input"||i.localName==="textarea"))&&(t=t==null?"":t),t}function qn(i){return!!i.target&&i.kind!="attribute"&&i.kind!="text"&&!i.isCompound&&i.parts[0].mode==="{"}function Kn(i,t){let{nodeList:e,nodeInfoList:o}=t;if(o.length)for(let s=0;s<o.length;s++){let r=o[s],n=e[s],a=r.bindings;if(a)for(let l=0;l<a.length;l++){let c=a[l];Gn(n,c),Jn(n,i,c)}n.__dataHost=i}}function Gn(i,t){if(t.isCompound){let e=i.__dataCompoundStorage||(i.__dataCompoundStorage={}),o=t.parts,s=new Array(o.length);for(let n=0;n<o.length;n++)s[n]=o[n].literal;let r=t.target;e[r]=s,t.literal&&t.kind=="property"&&(r==="className"&&(i=K(i)),i[r]=t.literal)}}function Jn(i,t,e){if(e.listenerEvent){let o=e.parts[0];i.addEventListener(e.listenerEvent,function(s){Ln(s,t,e.target,o.source,o.negate)})}}function Ei(i,t,e,o,s,r){r=t.static||r&&(typeof r!="object"||r[t.methodName]);let n={methodName:t.methodName,args:t.args,methodInfo:s,dynamicFn:r};for(let a=0,l;a<t.args.length&&(l=t.args[a]);a++)l.literal||i._addPropertyEffect(l.rootProperty,e,{fn:o,info:n,trigger:l});return r&&i._addPropertyEffect(t.methodName,e,{fn:o,info:n}),n}function uo(i,t,e,o,s){let r=i._methodHost||i,n=r[s.methodName];if(n){let a=i._marshalArgs(s.args,t,e);return a===ot?ot:n.apply(r,a)}else s.dynamicFn||console.warn("method `"+s.methodName+"` not defined")}const Xn=[],vs="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Zn="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",Qn="(?:'(?:[^'\\\\]|\\\\.)*')",ea='(?:"(?:[^"\\\\]|\\\\.)*")',ta="(?:"+Qn+"|"+ea+")",Si="(?:("+vs+"|"+Zn+"|"+ta+")\\s*)",oa="(?:"+Si+"(?:,\\s*"+Si+")*)",ia="(?:\\(\\s*(?:"+oa+"?)\\)\\s*)",sa="("+vs+"\\s*"+ia+"?)",ra="(\\[\\[|{{)\\s*",na="(?:]]|}})",aa="(?:(!)\\s*)?",la=ra+aa+sa+na,Ci=new RegExp(la,"g");function Ai(i){let t="";for(let e=0;e<i.length;e++){let o=i[e].literal;t+=o||""}return t}function Ut(i){let t=i.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){let o={methodName:t[1],static:!0,args:Xn};if(t[2].trim()){let s=t[2].replace(/\\,/g,"&comma;").split(",");return ca(s,o)}else return o}return null}function ca(i,t){return t.args=i.map(function(e){let o=bs(e);return o.literal||(t.static=!1),o},this),t}function bs(i){let t=i.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),e={name:t,value:"",literal:!1},o=t[0];switch(o==="-"&&(o=t[1]),o>="0"&&o<="9"&&(o="#"),o){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=Pe(t),e.structured=lo(t),e.structured&&(e.wildcard=t.slice(-2)==".*",e.wildcard&&(e.name=t.slice(0,-2)))),e}function ki(i,t,e){let o=ee(i,e);return o===void 0&&(o=t[e]),o}function xs(i,t,e,o){const s={indexSplices:o};ao&&!i._overrideLegacyUndefined&&(t.splices=s),i.notifyPath(e+".splices",s),i.notifyPath(e+".length",t.length),ao&&!i._overrideLegacyUndefined&&(s.indexSplices=[])}function je(i,t,e,o,s,r){xs(i,t,e,[{index:o,addedCount:s,removed:r,object:t,type:"splice"}])}function ua(i){return i[0].toUpperCase()+i.substring(1)}const zo=Y(i=>{const t=Tn(bn(i));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 T}_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(Ye.length){let s=Ye[Ye.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 r=this[T.READ_ONLY];for(let n in s)(!r||!r[n])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=s[n])}_addPropertyEffect(s,r,n){this._createPropertyAccessor(s,r==T.READ_ONLY);let a=Yt(this,r,!0)[s];a||(a=this[r][s]=[]),a.push(n)}_removePropertyEffect(s,r,n){let a=Yt(this,r,!0)[s],l=a.indexOf(n);l>=0&&a.splice(l,1)}_hasPropertyEffect(s,r){let n=this[r];return!!(n&&n[s])}_hasReadOnlyEffect(s){return this._hasPropertyEffect(s,T.READ_ONLY)}_hasNotifyEffect(s){return this._hasPropertyEffect(s,T.NOTIFY)}_hasReflectEffect(s){return this._hasPropertyEffect(s,T.REFLECT)}_hasComputedEffect(s){return this._hasPropertyEffect(s,T.COMPUTE)}_setPendingPropertyOrPath(s,r,n,a){if(a||Pe(Array.isArray(s)?s[0]:s)!==s){if(!a){let l=ee(this,s);if(s=yi(this,s,r),!s||!super._shouldPropertyChange(s,r,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(s,r,n))return jn(this,s,r),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[s])return this._setPendingProperty(s,r,n);this[s]=r}return!1}_setUnmanagedPropertyToNode(s,r,n){(n!==s[r]||typeof n=="object")&&(r==="className"&&(s=K(s)),s[r]=n)}_setPendingProperty(s,r,n){let a=this.__dataHasPaths&&lo(s),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(s,r,l[s])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),s in this.__dataOld||(this.__dataOld[s]=this.__data[s]),a?this.__dataTemp[s]=r:this.__data[s]=r,this.__dataPending[s]=r,(a||this[T.NOTIFY]&&this[T.NOTIFY][s])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[s]=n),!0):!1}_setProperty(s,r){this._setPendingProperty(s,r,!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 r=0;r<s.length;r++){let n=s[r];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(s,r){for(let n in s)(r||!this[T.READ_ONLY]||!this[T.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,s[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(s,r,n){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;$n(this,r,n,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(r,n,a),this._flushClients(),qe(this,this[T.REFLECT],r,n,a),qe(this,this[T.OBSERVE],r,n,a),l&&In(this,l,r,n,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(s,r,n){this[T.PROPAGATE]&&qe(this,this[T.PROPAGATE],s,r,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,s,r,n)}_runEffectsForTemplate(s,r,n,a){const l=(c,d)=>{qe(this,s.propertyEffects,c,n,d,s.nodeList);for(let h=s.firstChild;h;h=h.nextSibling)this._runEffectsForTemplate(h,c,n,d)};s.runEffects?s.runEffects(l,r,a):l(r,a)}linkPaths(s,r){s=We(s),r=We(r),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[s]=r}unlinkPaths(s){s=We(s),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[s]}notifySplices(s,r){let n={path:""},a=ee(this,s,n);xs(this,a,n.path,r)}get(s,r){return ee(r||this,s)}set(s,r,n){n?yi(n,s,r):(!this[T.READ_ONLY]||!this[T.READ_ONLY][s])&&this._setPendingPropertyOrPath(s,r,!0)&&this._invalidateProperties()}push(s,...r){let n={path:""},a=ee(this,s,n),l=a.length,c=a.push(...r);return r.length&&je(this,a,n.path,l,r.length,[]),c}pop(s){let r={path:""},n=ee(this,s,r),a=!!n.length,l=n.pop();return a&&je(this,n,r.path,n.length,0,[l]),l}splice(s,r,n,...a){let l={path:""},c=ee(this,s,l);r<0?r=c.length-Math.floor(-r):r&&(r=Math.floor(r));let d;return arguments.length===2?d=c.splice(r):d=c.splice(r,n,...a),(a.length||d.length)&&je(this,c,l.path,r,a.length,d),d}shift(s){let r={path:""},n=ee(this,s,r),a=!!n.length,l=n.shift();return a&&je(this,n,r.path,0,0,[l]),l}unshift(s,...r){let n={path:""},a=ee(this,s,n),l=a.unshift(...r);return r.length&&je(this,a,n.path,0,r.length,[]),l}notifyPath(s,r){let n;if(arguments.length==1){let a={path:""};r=ee(this,s,a),n=a.path}else Array.isArray(s)?n=We(s):n=s;this._setPendingPropertyOrPath(n,r,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(s,r){this._addPropertyEffect(s,T.READ_ONLY),r&&(this["_set"+ua(s)]=function(n){this._setProperty(s,n)})}_createPropertyObserver(s,r,n){let a={property:s,method:r,dynamicFn:!!n};this._addPropertyEffect(s,T.OBSERVE,{fn:xi,info:a,trigger:{name:s}}),n&&this._addPropertyEffect(r,T.OBSERVE,{fn:xi,info:a,trigger:{name:r}})}_createMethodObserver(s,r){let n=Ut(s);if(!n)throw new Error("Malformed observer expression '"+s+"'");Ei(this,n,T.OBSERVE,uo,null,r)}_createNotifyingProperty(s){this._addPropertyEffect(s,T.NOTIFY,{fn:Nn,info:{eventName:Pt(s)+"-changed",property:s}})}_createReflectedProperty(s){let r=this.constructor.attributeNameForProperty(s);r[0]==="-"?console.warn("Property "+s+" cannot be reflected to attribute "+r+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(s,T.REFLECT,{fn:Fn,info:{attrName:r}})}_createComputedProperty(s,r,n){let a=Ut(r);if(!a)throw new Error("Malformed computed expression '"+r+"'");const l=Ei(this,a,T.COMPUTE,ys,s,n);Yt(this,_s)[s]=l}_marshalArgs(s,r,n){const a=this.__data,l=[];for(let c=0,d=s.length;c<d;c++){let{name:h,structured:p,wildcard:m,value:y,literal:A}=s[c];if(!A)if(m){const z=Qe(h,r),M=ki(a,n,z?r:h);y={path:z?r:h,value:M,base:z?ee(a,h):M}}else y=p?ki(a,n,h):a[h];if(ao&&!this._overrideLegacyUndefined&&y===void 0&&s.length>1)return ot;l[c]=y}return l}static addPropertyEffect(s,r,n){this.prototype._addPropertyEffect(s,r,n)}static createPropertyObserver(s,r,n){this.prototype._createPropertyObserver(s,r,n)}static createMethodObserver(s,r){this.prototype._createMethodObserver(s,r)}static createNotifyingProperty(s){this.prototype._createNotifyingProperty(s)}static createReadOnlyProperty(s,r){this.prototype._createReadOnlyProperty(s,r)}static createReflectedProperty(s){this.prototype._createReflectedProperty(s)}static createComputedProperty(s,r,n){this.prototype._createComputedProperty(s,r,n)}static bindTemplate(s){return this.prototype._bindTemplate(s)}_bindTemplate(s,r){let n=this.constructor._parseTemplate(s),a=this.__preBoundTemplateInfo==n;if(!a)for(let l in n.propertyEffects)this._createPropertyAccessor(l);if(r)if(n=Object.create(n),n.wasPreBound=a,!this.__templateInfo)this.__templateInfo=n;else{const l=s._parentTemplateInfo||this.__templateInfo,c=l.lastChild;n.parent=l,l.lastChild=n,n.previousSibling=c,c?c.nextSibling=n:l.firstChild=n}else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(s,r,n){let a=s.hostProps=s.hostProps||{};a[r]=!0;let l=s.propertyEffects=s.propertyEffects||{};(l[r]=l[r]||[]).push(n)}_stampTemplate(s,r){r=r||this._bindTemplate(s,!0),Ye.push(this);let n=super._stampTemplate(s,r);if(Ye.pop(),r.nodeList=n.nodeList,!r.wasPreBound){let a=r.childNodes=[];for(let l=n.firstChild;l;l=l.nextSibling)a.push(l)}return n.templateInfo=r,Kn(this,r),this.__dataClientsReady&&(this._runEffectsForTemplate(r,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(s){const r=s.templateInfo,{previousSibling:n,nextSibling:a,parent:l}=r;n?n.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=n:l&&(l.lastChild=n),r.nextSibling=r.previousSibling=null;let c=r.childNodes;for(let d=0;d<c.length;d++){let h=c[d];K(K(h).parentNode).removeChild(h)}}static _parseTemplateNode(s,r,n){let a=t._parseTemplateNode.call(this,s,r,n);if(s.nodeType===Node.TEXT_NODE){let l=this._parseBindings(s.textContent,r);l&&(s.textContent=Ai(l)||" ",Vt(this,r,n,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(s,r,n,a,l){let c=this._parseBindings(l,r);if(c){let d=a,h="property";Mn.test(a)?h="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),h="attribute");let p=Ai(c);return p&&h=="attribute"&&(a=="class"&&s.hasAttribute("class")&&(p+=" "+s.getAttribute(a)),s.setAttribute(a,p)),h=="attribute"&&d=="disable-upgrade$"&&s.setAttribute(a,""),s.localName==="input"&&d==="value"&&s.setAttribute(d,""),s.removeAttribute(d),h==="property"&&(a=cs(a)),Vt(this,r,n,h,a,c,p),!0}else return t._parseTemplateNodeAttribute.call(this,s,r,n,a,l)}static _parseTemplateNestedTemplate(s,r,n){let a=t._parseTemplateNestedTemplate.call(this,s,r,n);const l=s.parentNode,c=n.templateInfo,d=l.localName==="dom-if",h=l.localName==="dom-repeat";hi&&(d||h)&&(l.removeChild(s),n=n.parentInfo,n.templateInfo=c,n.noted=!0,a=!1);let p=c.hostProps;if(en&&d)p&&(r.hostProps=Object.assign(r.hostProps||{},p),hi||(n.parentInfo.noted=!0));else{let m="{";for(let y in p){let A=[{mode:m,source:y,dependencies:[y],hostProp:!0}];Vt(this,r,n,"property","_host_"+y,A)}}return a}static _parseBindings(s,r){let n=[],a=0,l;for(;(l=Ci.exec(s))!==null;){l.index>a&&n.push({literal:s.slice(a,l.index)});let c=l[1][0],d=!!l[2],h=l[3].trim(),p=!1,m="",y=-1;c=="{"&&(y=h.indexOf("::"))>0&&(m=h.substring(y+2),h=h.substring(0,y),p=!0);let A=Ut(h),z=[];if(A){let{args:M,methodName:I}=A;for(let re=0;re<M.length;re++){let j=M[re];j.literal||z.push(j)}let V=r.dynamicFns;(V&&V[I]||A.static)&&(z.push(I),A.dynamicFn=!0)}else z.push(h);n.push({source:h,mode:c,negate:d,customEvent:p,signature:A,dependencies:z,event:m}),a=Ci.lastIndex}if(a&&a<s.length){let c=s.substring(a);c&&n.push({literal:c})}return n.length?n:null}static _evaluateBinding(s,r,n,a,l,c){let d;return r.signature?d=uo(s,n,a,l,r.signature):n!=r.source?d=ee(s,r.source):c&&lo(n)?d=ee(s,n):d=s.__data[n],r.negate&&(d=!d),d}}return e}),Ye=[];/**
692
692
  @license
693
693
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
694
694
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -704,7 +704,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
704
704
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
705
705
  Code distributed by Google as part of the polymer project is also
706
706
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
707
- */function da(s){const t={};for(let e in s){const o=s[e];t[e]=typeof o=="function"?{type:o}:o}return t}const ha=Y(s=>{const t=pi(s);function e(r){const n=Object.getPrototypeOf(r);return n.prototype instanceof i?n:null}function o(r){if(!r.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",r))){let n=null;if(r.hasOwnProperty(JSCompiler_renameProperty("properties",r))){const a=r.properties;a&&(n=da(a))}r.__ownProperties=n}return r.__ownProperties}class i extends t{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=e(this);n&&n.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const n=o(this);n&&this.createProperties(n)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const n=e(this);this.__properties=Object.assign({},n&&n._properties,o(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 i});/**
707
+ */function da(i){const t={};for(let e in i){const o=i[e];t[e]=typeof o=="function"?{type:o}:o}return t}const ha=Y(i=>{const t=ps(i);function e(r){const n=Object.getPrototypeOf(r);return n.prototype instanceof s?n:null}function o(r){if(!r.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",r))){let n=null;if(r.hasOwnProperty(JSCompiler_renameProperty("properties",r))){const a=r.properties;a&&(n=da(a))}r.__ownProperties=n}return r.__ownProperties}class s extends t{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=e(this);n&&n.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const n=o(this);n&&this.createProperties(n)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const n=e(this);this.__properties=Object.assign({},n&&n._properties,o(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});/**
708
708
  * @fileoverview
709
709
  * @suppress {checkPrototypalTypes}
710
710
  * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -714,7 +714,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
714
714
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
715
715
  * Google as part of the polymer project is also subject to an additional IP
716
716
  * rights grant found at http://polymer.github.io/PATENTS.txt
717
- */const pa="3.5.1",ks=window.ShadyCSS&&window.ShadyCSS.cssBuild,ma=Y(s=>{const t=ha(zo(s));function e(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let c=l._properties;for(let d in c){let h=c[d];"value"in h&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[d]=h)}}return l.__propertyDefaults}function o(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function i(l,c,d,h){d.computed&&(d.readOnly=!0),d.computed&&(l._hasReadOnlyEffect(c)?console.warn(`Cannot redefine computed property '${c}'.`):l._createComputedProperty(c,d.computed,h)),d.readOnly&&!l._hasReadOnlyEffect(c)?l._createReadOnlyProperty(c,!d.computed):d.readOnly===!1&&l._hasReadOnlyEffect(c)&&console.warn(`Cannot make readOnly property '${c}' non-readOnly.`),d.reflectToAttribute&&!l._hasReflectEffect(c)?l._createReflectedProperty(c):d.reflectToAttribute===!1&&l._hasReflectEffect(c)&&console.warn(`Cannot make reflected property '${c}' non-reflected.`),d.notify&&!l._hasNotifyEffect(c)?l._createNotifyingProperty(c):d.notify===!1&&l._hasNotifyEffect(c)&&console.warn(`Cannot make notify property '${c}' non-notify.`),d.observer&&l._createPropertyObserver(c,d.observer,h[d.observer]),l._addPropertyToAttributeMap(c)}function r(l,c,d,h){if(!ks){const p=c.content.querySelectorAll("style"),m=ri(c),v=cn(d),A=c.content.firstElementChild;for(let M=0;M<v.length;M++){let I=v[M];I.textContent=l._processStyleText(I.textContent,h),c.content.insertBefore(I,A)}let z=0;for(let M=0;M<m.length;M++){let I=m[M],V=p[z];V!==I?(I=I.cloneNode(!0),V.parentNode.insertBefore(I,V)):z++,I.textContent=l._processStyleText(I.textContent,h)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(c,d),tn&&ks&&Gr){const p=c.content.querySelectorAll("style");if(p){let m="";Array.from(p).forEach(v=>{m+=v.textContent,v.parentNode.removeChild(v)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(m)}}}function n(l){let c=null;if(l&&(!xt||Xr)&&(c=Ze.import(l,"template"),xt&&!c))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return c}class a extends t{static get polymerElementVersion(){return pa}static _finalizeClass(){t._finalizeClass.call(this);const c=o(this);c&&this.createObservers(c,this._properties),this._prepareTemplate()}static _prepareTemplate(){let c=this.template;c&&(typeof c=="string"?(console.error("template getter must return HTMLTemplateElement"),c=null):ti||(c=c.cloneNode(!0))),this.prototype._template=c}static createProperties(c){for(let d in c)i(this.prototype,d,c[d],c)}static createObservers(c,d){const h=this.prototype;for(let p=0;p<c.length;p++)h._createMethodObserver(c[p],d)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let c=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof c=="function"&&(c=c()),this._template=c!==void 0?c:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&n(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(c){this._template=c}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const c=this.importMeta;if(c)this._importPath=Mo(c.url);else{const d=Ze.import(this.is);this._importPath=d&&d.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=Jr,this.importPath=this.constructor.importPath;let c=e(this.constructor);if(c)for(let d in c){let h=c[d];if(this._canApplyPropertyDefault(d)){let p=typeof h.value=="function"?h.value.call(this):h.value;this._hasAccessor(d)?this._setPendingProperty(d,p,!0):this[d]=p}}}_canApplyPropertyDefault(c){return!this.hasOwnProperty(c)}static _processStyleText(c,d){return To(c,d)}static _finalizeTemplate(c){const d=this.prototype._template;if(d&&!d.__polymerFinalized){d.__polymerFinalized=!0;const h=this.importPath,p=h?Ke(h):"";r(this,d,c,p),this.prototype._bindTemplate(d)}}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(c){const d=K(this);if(d.attachShadow)return c?(d.shadowRoot||(d.attachShadow({mode:"open",shadyUpgradeFragment:c}),d.shadowRoot.appendChild(c),this.constructor._styleSheet&&(d.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),Zr&&window.ShadyDOM&&window.ShadyDOM.flushInitial(d.shadowRoot),d.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(c){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,c)}resolveUrl(c,d){return!d&&this.importPath&&(d=Ke(this.importPath)),Ke(c,d)}static _parseTemplateContent(c,d,h){return d.dynamicFns=d.dynamicFns||this._properties,t._parseTemplateContent.call(this,c,d,h)}static _addTemplatePropertyEffect(c,d,h){return oi&&!(d in this._properties)&&!(h.info.part.signature&&h.info.part.signature.static)&&!h.info.part.hostProp&&!c.nestedTemplate&&console.warn(`Property '${d}' used in template but not declared in 'properties'; attribute will not be observed.`),t._addTemplatePropertyEffect.call(this,c,d,h)}}return a});/**
717
+ */const pa="3.5.1",Pi=window.ShadyCSS&&window.ShadyCSS.cssBuild,ma=Y(i=>{const t=ha(zo(i));function e(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let c=l._properties;for(let d in c){let h=c[d];"value"in h&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[d]=h)}}return l.__propertyDefaults}function o(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function s(l,c,d,h){d.computed&&(d.readOnly=!0),d.computed&&(l._hasReadOnlyEffect(c)?console.warn(`Cannot redefine computed property '${c}'.`):l._createComputedProperty(c,d.computed,h)),d.readOnly&&!l._hasReadOnlyEffect(c)?l._createReadOnlyProperty(c,!d.computed):d.readOnly===!1&&l._hasReadOnlyEffect(c)&&console.warn(`Cannot make readOnly property '${c}' non-readOnly.`),d.reflectToAttribute&&!l._hasReflectEffect(c)?l._createReflectedProperty(c):d.reflectToAttribute===!1&&l._hasReflectEffect(c)&&console.warn(`Cannot make reflected property '${c}' non-reflected.`),d.notify&&!l._hasNotifyEffect(c)?l._createNotifyingProperty(c):d.notify===!1&&l._hasNotifyEffect(c)&&console.warn(`Cannot make notify property '${c}' non-notify.`),d.observer&&l._createPropertyObserver(c,d.observer,h[d.observer]),l._addPropertyToAttributeMap(c)}function r(l,c,d,h){if(!Pi){const p=c.content.querySelectorAll("style"),m=rs(c),y=cn(d),A=c.content.firstElementChild;for(let M=0;M<y.length;M++){let I=y[M];I.textContent=l._processStyleText(I.textContent,h),c.content.insertBefore(I,A)}let z=0;for(let M=0;M<m.length;M++){let I=m[M],V=p[z];V!==I?(I=I.cloneNode(!0),V.parentNode.insertBefore(I,V)):z++,I.textContent=l._processStyleText(I.textContent,h)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(c,d),tn&&Pi&&Gr){const p=c.content.querySelectorAll("style");if(p){let m="";Array.from(p).forEach(y=>{m+=y.textContent,y.parentNode.removeChild(y)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(m)}}}function n(l){let c=null;if(l&&(!xt||Xr)&&(c=Ze.import(l,"template"),xt&&!c))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return c}class a extends t{static get polymerElementVersion(){return pa}static _finalizeClass(){t._finalizeClass.call(this);const c=o(this);c&&this.createObservers(c,this._properties),this._prepareTemplate()}static _prepareTemplate(){let c=this.template;c&&(typeof c=="string"?(console.error("template getter must return HTMLTemplateElement"),c=null):ts||(c=c.cloneNode(!0))),this.prototype._template=c}static createProperties(c){for(let d in c)s(this.prototype,d,c[d],c)}static createObservers(c,d){const h=this.prototype;for(let p=0;p<c.length;p++)h._createMethodObserver(c[p],d)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let c=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof c=="function"&&(c=c()),this._template=c!==void 0?c:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&n(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(c){this._template=c}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const c=this.importMeta;if(c)this._importPath=Mo(c.url);else{const d=Ze.import(this.is);this._importPath=d&&d.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=Jr,this.importPath=this.constructor.importPath;let c=e(this.constructor);if(c)for(let d in c){let h=c[d];if(this._canApplyPropertyDefault(d)){let p=typeof h.value=="function"?h.value.call(this):h.value;this._hasAccessor(d)?this._setPendingProperty(d,p,!0):this[d]=p}}}_canApplyPropertyDefault(c){return!this.hasOwnProperty(c)}static _processStyleText(c,d){return To(c,d)}static _finalizeTemplate(c){const d=this.prototype._template;if(d&&!d.__polymerFinalized){d.__polymerFinalized=!0;const h=this.importPath,p=h?Ke(h):"";r(this,d,c,p),this.prototype._bindTemplate(d)}}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(c){const d=K(this);if(d.attachShadow)return c?(d.shadowRoot||(d.attachShadow({mode:"open",shadyUpgradeFragment:c}),d.shadowRoot.appendChild(c),this.constructor._styleSheet&&(d.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),Zr&&window.ShadyDOM&&window.ShadyDOM.flushInitial(d.shadowRoot),d.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(c){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,c)}resolveUrl(c,d){return!d&&this.importPath&&(d=Ke(this.importPath)),Ke(c,d)}static _parseTemplateContent(c,d,h){return d.dynamicFns=d.dynamicFns||this._properties,t._parseTemplateContent.call(this,c,d,h)}static _addTemplatePropertyEffect(c,d,h){return os&&!(d in this._properties)&&!(h.info.part.signature&&h.info.part.signature.static)&&!h.info.part.hostProp&&!c.nestedTemplate&&console.warn(`Property '${d}' used in template but not declared in 'properties'; attribute will not be observed.`),t._addTemplatePropertyEffect.call(this,c,d,h)}}return a});/**
718
718
  @license
719
719
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
720
720
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -722,7 +722,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
722
722
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
723
723
  Code distributed by Google as part of the polymer project is also
724
724
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
725
- */const Ds=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:s=>s});class wi{constructor(t,e){Si(t,e);const o=e.reduce((i,r,n)=>i+Ei(r)+t[n+1],t[0]);this.value=o.toString()}toString(){return this.value}}function Ei(s){if(s instanceof wi)return s.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${s}`)}function fa(s){if(s instanceof HTMLTemplateElement)return s.innerHTML;if(s instanceof wi)return Ei(s);throw new Error(`non-template value passed to Polymer's html function: ${s}`)}const De=function(t,...e){Si(t,e);const o=document.createElement("template");let i=e.reduce((r,n,a)=>r+fa(n)+t[a+1],t[0]);return Ds&&(i=Ds.createHTML(i)),o.innerHTML=i,o},Si=(s,t)=>{if(!Array.isArray(s)||!Array.isArray(s.raw)||t.length!==s.length-1)throw new TypeError("Invalid call to the html template tag")};/**
725
+ */const Di=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:i=>i});class ws{constructor(t,e){Ss(t,e);const o=e.reduce((s,r,n)=>s+Es(r)+t[n+1],t[0]);this.value=o.toString()}toString(){return this.value}}function Es(i){if(i instanceof ws)return i.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${i}`)}function fa(i){if(i instanceof HTMLTemplateElement)return i.innerHTML;if(i instanceof ws)return Es(i);throw new Error(`non-template value passed to Polymer's html function: ${i}`)}const De=function(t,...e){Ss(t,e);const o=document.createElement("template");let s=e.reduce((r,n,a)=>r+fa(n)+t[a+1],t[0]);return Di&&(s=Di.createHTML(s)),o.innerHTML=s,o},Ss=(i,t)=>{if(!Array.isArray(i)||!Array.isArray(i.raw)||t.length!==i.length-1)throw new TypeError("Invalid call to the html template tag")};/**
726
726
  @license
727
727
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
728
728
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -730,15 +730,15 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
730
730
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
731
731
  Code distributed by Google as part of the polymer project is also
732
732
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
733
- */const ve=ma(HTMLElement);/**
733
+ */const ye=ma(HTMLElement);/**
734
734
  * @license
735
735
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
736
736
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
737
- */const pe=[];function ho(s,t,e=s.getAttribute("dir")){t?s.setAttribute("dir",t):e!=null&&s.removeAttribute("dir")}function po(){return document.documentElement.getAttribute("dir")}function _a(){const s=po();pe.forEach(t=>{ho(t,s)})}const ga=new MutationObserver(_a);ga.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const Dt=s=>class extends s{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:e=>e||"",toAttribute:e=>e===""?null:e}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),ho(this,po(),null))}attributeChangedCallback(e,o,i){if(super.attributeChangedCallback(e,o,i),e!=="dir")return;const r=po(),n=i===r&&pe.indexOf(this)===-1,a=!i&&o&&pe.indexOf(this)===-1;n||a?(this.__subscribe(),ho(this,r,i)):i!==r&&o===r&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=pe.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,o,i){i==="dir"&&o===""&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,o,i)}_attributeToProperty(e,o,i){e==="dir"&&!o?this.dir="":super._attributeToProperty(e,o,i)}__subscribe(){pe.includes(this)||pe.push(this)}__unsubscribe(){pe.includes(this)&&pe.splice(pe.indexOf(this),1)}};/**
737
+ */const pe=[];function ho(i,t,e=i.getAttribute("dir")){t?i.setAttribute("dir",t):e!=null&&i.removeAttribute("dir")}function po(){return document.documentElement.getAttribute("dir")}function _a(){const i=po();pe.forEach(t=>{ho(t,i)})}const ga=new MutationObserver(_a);ga.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const Dt=i=>class extends i{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:e=>e||"",toAttribute:e=>e===""?null:e}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),ho(this,po(),null))}attributeChangedCallback(e,o,s){if(super.attributeChangedCallback(e,o,s),e!=="dir")return;const r=po(),n=s===r&&pe.indexOf(this)===-1,a=!s&&o&&pe.indexOf(this)===-1;n||a?(this.__subscribe(),ho(this,r,s)):s!==r&&o===r&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=pe.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,o,s){s==="dir"&&o===""&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,o,s)}_attributeToProperty(e,o,s){e==="dir"&&!o?this.dir="":super._attributeToProperty(e,o,s)}__subscribe(){pe.includes(this)||pe.push(this)}__unsubscribe(){pe.includes(this)&&pe.splice(pe.indexOf(this),1)}};/**
738
738
  * @license
739
739
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
740
740
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
741
- */class va extends Pe(Dt(ve)){static get is(){return"vaadin-input-container"}static get template(){return De`
741
+ */class ya extends ke(Dt(ye)){static get is(){return"vaadin-input-container"}static get template(){return De`
742
742
  <style>
743
743
  :host {
744
744
  display: flex;
@@ -808,11 +808,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
808
808
  <slot name="prefix"></slot>
809
809
  <slot></slot>
810
810
  <slot name="suffix"></slot>
811
- `}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(e=>e.focus&&e.focus())})}}ie(va);/**
811
+ `}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(e=>e.focus&&e.focus())})}}se(ya);/**
812
812
  * @license
813
813
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
814
814
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
815
- */let ya=class extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.5"}};ie(ya);const Re=(s,...t)=>{Do(`lumo-${s}`,t)};/**
815
+ */let va=class extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.5"}};se(va);const Re=(i,...t)=>{Do(`lumo-${i}`,t)};/**
816
816
  * @license
817
817
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
818
818
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -1209,7 +1209,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1209
1209
  * @license
1210
1210
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
1211
1211
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1212
- */const Ci=S`
1212
+ */const Cs=S`
1213
1213
  :host {
1214
1214
  top: var(--lumo-space-m);
1215
1215
  right: var(--lumo-space-m);
@@ -1272,11 +1272,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1272
1272
  opacity: 1;
1273
1273
  }
1274
1274
  }
1275
- `;F("",Ci,{moduleId:"lumo-overlay"});/**
1275
+ `;F("",Cs,{moduleId:"lumo-overlay"});/**
1276
1276
  * @license
1277
1277
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
1278
1278
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1279
- */const Ai=S`
1279
+ */const As=S`
1280
1280
  :host([opening]),
1281
1281
  :host([closing]) {
1282
1282
  animation: 0.14s lumo-overlay-dummy-animation;
@@ -1306,7 +1306,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1306
1306
  opacity: 0;
1307
1307
  }
1308
1308
  }
1309
- `;F("",Ai,{moduleId:"lumo-menu-overlay-core"});const Pa=S`
1309
+ `;F("",As,{moduleId:"lumo-menu-overlay-core"});const ka=S`
1310
1310
  /* Small viewport (bottom sheet) styles */
1311
1311
  /* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
1312
1312
  @media (max-width: 420px), (max-height: 420px) {
@@ -1368,7 +1368,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1368
1368
  transform: translateY(150%);
1369
1369
  }
1370
1370
  }
1371
- `,Pi=[Ci,Ai,Pa];F("",Pi,{moduleId:"lumo-menu-overlay"});const ka=S`
1371
+ `,ks=[Cs,As,ka];F("",ks,{moduleId:"lumo-menu-overlay"});const Pa=S`
1372
1372
  [part='overlay'] {
1373
1373
  /*
1374
1374
  Width:
@@ -1416,11 +1416,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1416
1416
  max-height: 70vh;
1417
1417
  }
1418
1418
  }
1419
- `;F("vaadin-date-picker-overlay",[Pi,ka],{moduleId:"lumo-date-picker-overlay"});/**
1419
+ `;F("vaadin-date-picker-overlay",[ks,Pa],{moduleId:"lumo-date-picker-overlay"});/**
1420
1420
  * @license
1421
1421
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
1422
1422
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1423
- */class Da extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.9"}}ie(Da);const at=(s,...t)=>{Do(`lumo-${s}`,t)};/**
1423
+ */class Da extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.9"}}se(Da);const at=(i,...t)=>{Do(`lumo-${i}`,t)};/**
1424
1424
  * @license
1425
1425
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
1426
1426
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -2066,7 +2066,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2066
2066
  * @license
2067
2067
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
2068
2068
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2069
- */const Be=Y(s=>typeof s.prototype.addController=="function"?s:class extends s{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(e=>{e.hostConnected&&e.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(e=>{e.hostDisconnected&&e.hostDisconnected()})}addController(e){this.__controllers.add(e),this.$!==void 0&&this.isConnected&&e.hostConnected&&e.hostConnected()}removeController(e){this.__controllers.delete(e)}}),$a=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,_t=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function Ra(){function s(){return!0}return ki(s)}function Ba(){try{return Ha()?!0:ja()?_t?!Ya():!Ra():!1}catch(s){return!1}}function Ha(){return localStorage.getItem("vaadin.developmentmode.force")}function ja(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function Ya(){return!!(_t&&Object.keys(_t).map(t=>_t[t]).filter(t=>t.productionMode).length>0)}function ki(s,t){if(typeof s!="function")return;const e=$a.exec(s.toString());if(e)try{s=new Function(e[1])}catch(o){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",o)}return s(t)}window.Vaadin=window.Vaadin||{};const Ts=function(s,t){if(window.Vaadin.developmentMode)return ki(s,t)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=Ba());function Va(){}const Ua=function(){if(typeof Ts=="function")return Ts(Va)};/**
2069
+ */const Be=Y(i=>typeof i.prototype.addController=="function"?i:class extends i{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(e=>{e.hostConnected&&e.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(e=>{e.hostDisconnected&&e.hostDisconnected()})}addController(e){this.__controllers.add(e),this.$!==void 0&&this.isConnected&&e.hostConnected&&e.hostConnected()}removeController(e){this.__controllers.delete(e)}}),$a=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,_t=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function Ra(){function i(){return!0}return Ps(i)}function Ba(){try{return Ha()?!0:ja()?_t?!Ya():!Ra():!1}catch(i){return!1}}function Ha(){return localStorage.getItem("vaadin.developmentmode.force")}function ja(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function Ya(){return!!(_t&&Object.keys(_t).map(t=>_t[t]).filter(t=>t.productionMode).length>0)}function Ps(i,t){if(typeof i!="function")return;const e=$a.exec(i.toString());if(e)try{i=new Function(e[1])}catch(o){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",o)}return i(t)}window.Vaadin=window.Vaadin||{};const Ti=function(i,t){if(window.Vaadin.developmentMode)return Ps(i,t)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=Ba());function Va(){}const Ua=function(){if(typeof Ti=="function")return Ti(Va)};/**
2070
2070
  * @license
2071
2071
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2072
2072
  * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2074,7 +2074,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2074
2074
  * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2075
2075
  * Code distributed by Google as part of the polymer project is also
2076
2076
  * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2077
- */let Ms=0,Di=0;const ze=[];let mo=!1;function Wa(){mo=!1;const s=ze.length;for(let t=0;t<s;t++){const e=ze[t];if(e)try{e()}catch(o){setTimeout(()=>{throw o})}}ze.splice(0,s),Di+=s}const Et={after(s){return{run(t){return window.setTimeout(t,s)},cancel(t){window.clearTimeout(t)}}},run(s,t){return window.setTimeout(s,t)},cancel(s){window.clearTimeout(s)}},qa={run(s){return window.requestIdleCallback?window.requestIdleCallback(s):window.setTimeout(s,16)},cancel(s){window.cancelIdleCallback?window.cancelIdleCallback(s):window.clearTimeout(s)}},Ka={run(s){mo||(mo=!0,queueMicrotask(()=>Wa())),ze.push(s);const t=Ms;return Ms+=1,t},cancel(s){const t=s-Di;if(t>=0){if(!ze[t])throw new Error(`invalid async handle: ${s}`);ze[t]=null}}};/**
2077
+ */let Mi=0,Ds=0;const ze=[];let mo=!1;function Wa(){mo=!1;const i=ze.length;for(let t=0;t<i;t++){const e=ze[t];if(e)try{e()}catch(o){setTimeout(()=>{throw o})}}ze.splice(0,i),Ds+=i}const Et={after(i){return{run(t){return window.setTimeout(t,i)},cancel(t){window.clearTimeout(t)}}},run(i,t){return window.setTimeout(i,t)},cancel(i){window.clearTimeout(i)}},qa={run(i){return window.requestIdleCallback?window.requestIdleCallback(i):window.setTimeout(i,16)},cancel(i){window.cancelIdleCallback?window.cancelIdleCallback(i):window.clearTimeout(i)}},Ka={run(i){mo||(mo=!0,queueMicrotask(()=>Wa())),ze.push(i);const t=Mi;return Mi+=1,t},cancel(i){const t=i-Ds;if(t>=0){if(!ze[t])throw new Error(`invalid async handle: ${i}`);ze[t]=null}}};/**
2078
2078
  @license
2079
2079
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2080
2080
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2082,31 +2082,31 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2082
2082
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2083
2083
  Code distributed by Google as part of the polymer project is also
2084
2084
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2085
- */const fo=new Set;let st=class _o{static debounce(t,e,o){return t instanceof _o?t._cancelAsync():t=new _o,t.setConfig(e,o),t}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(t,e){this._asyncModule=t,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,fo.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),fo.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 Ga(s){fo.add(s)}/**
2085
+ */const fo=new Set;let it=class _o{static debounce(t,e,o){return t instanceof _o?t._cancelAsync():t=new _o,t.setConfig(e,o),t}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(t,e){this._asyncModule=t,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,fo.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),fo.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 Ga(i){fo.add(i)}/**
2086
2086
  * @license
2087
2087
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
2088
2088
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2089
- */window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){Ua()};let Wt;const Os=new Set,Ti=s=>class extends Dt(s){static get version(){return"24.2.9"}static finalize(){super.finalize();const{is:e}=this;e&&!Os.has(e)&&(window.Vaadin.registrations.push(this),Os.add(e),window.Vaadin.developmentModeCallback&&(Wt=st.debounce(Wt,qa,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),Ga(Wt)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
2089
+ */window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){Ua()};let Wt;const Oi=new Set,Ts=i=>class extends Dt(i){static get version(){return"24.2.9"}static finalize(){super.finalize();const{is:e}=this;e&&!Oi.has(e)&&(window.Vaadin.registrations.push(this),Oi.add(e),window.Vaadin.developmentModeCallback&&(Wt=it.debounce(Wt,qa,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),Ga(Wt)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
2090
2090
  * @license
2091
2091
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
2092
2092
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2093
- */function Ja(s){const t=[];for(;s;){if(s.nodeType===Node.DOCUMENT_NODE){t.push(s);break}if(s.nodeType===Node.DOCUMENT_FRAGMENT_NODE){t.push(s),s=s.host;continue}if(s.assignedSlot){s=s.assignedSlot;continue}s=s.parentNode}return t}function No(s){return s?new Set(s.split(" ")):new Set}function Tt(s){return s?[...s].join(" "):""}function Mi(s,t,e){const o=No(s.getAttribute(t));o.add(e),s.setAttribute(t,Tt(o))}function Xa(s,t,e){const o=No(s.getAttribute(t));if(o.delete(e),o.size===0){s.removeAttribute(t);return}s.setAttribute(t,Tt(o))}function Za(s){return s.nodeType===Node.TEXT_NODE&&s.textContent.trim()===""}/**
2093
+ */function Ja(i){const t=[];for(;i;){if(i.nodeType===Node.DOCUMENT_NODE){t.push(i);break}if(i.nodeType===Node.DOCUMENT_FRAGMENT_NODE){t.push(i),i=i.host;continue}if(i.assignedSlot){i=i.assignedSlot;continue}i=i.parentNode}return t}function No(i){return i?new Set(i.split(" ")):new Set}function Tt(i){return i?[...i].join(" "):""}function Ms(i,t,e){const o=No(i.getAttribute(t));o.add(e),i.setAttribute(t,Tt(o))}function Xa(i,t,e){const o=No(i.getAttribute(t));if(o.delete(e),o.size===0){i.removeAttribute(t);return}i.setAttribute(t,Tt(o))}function Za(i){return i.nodeType===Node.TEXT_NODE&&i.textContent.trim()===""}/**
2094
2094
  * @license
2095
2095
  * Copyright (c) 2023 Vaadin Ltd.
2096
2096
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2097
- */class Qa{constructor(t,e){this.slot=t,this.callback=e,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 t=this.slot.assignedNodes({flatten:!0});let e=[];const o=[],i=[];t.length&&(e=t.filter(r=>!this._storedNodes.includes(r))),this._storedNodes.length&&this._storedNodes.forEach((r,n)=>{const a=t.indexOf(r);a===-1?o.push(r):a!==n&&i.push(r)}),(e.length||o.length||i.length)&&this.callback({addedNodes:e,movedNodes:i,removedNodes:o}),this._storedNodes=t}}/**
2097
+ */class Qa{constructor(t,e){this.slot=t,this.callback=e,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 t=this.slot.assignedNodes({flatten:!0});let e=[];const o=[],s=[];t.length&&(e=t.filter(r=>!this._storedNodes.includes(r))),this._storedNodes.length&&this._storedNodes.forEach((r,n)=>{const a=t.indexOf(r);a===-1?o.push(r):a!==n&&s.push(r)}),(e.length||o.length||s.length)&&this.callback({addedNodes:e,movedNodes:s,removedNodes:o}),this._storedNodes=t}}/**
2098
2098
  * @license
2099
2099
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
2100
2100
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2101
- */let el=0;function Oi(){return el++}/**
2101
+ */let el=0;function Os(){return el++}/**
2102
2102
  * @license
2103
2103
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
2104
2104
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2105
- */class Ee extends EventTarget{static generateId(t,e){return`${e||"default"}-${t.localName}-${Oi()}`}constructor(t,e,o,i={}){super();const{initializer:r,multiple:n,observe:a,useUniqueId:l}=i;this.host=t,this.slotName=e,this.tagName=o,this.observe=typeof a=="boolean"?a:!0,this.multiple=typeof n=="boolean"?n:!1,this.slotInitializer=r,n&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(t,e))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let t=this.getSlotChild();t?(this.node=t,this.initAddedNode(t)):(t=this.attachDefaultNode(),this.initNode(t))}initMultiple(){const t=this.getSlotChildren();if(t.length===0){const e=this.attachDefaultNode();e&&(this.nodes=[e],this.initNode(e))}else this.nodes=t,t.forEach(e=>{this.initAddedNode(e)})}attachDefaultNode(){const{host:t,slotName:e,tagName:o}=this;let i=this.defaultNode;return!i&&o&&(i=document.createElement(o),i instanceof Element&&(e!==""&&i.setAttribute("slot",e),this.node=i,this.defaultNode=i)),i&&t.appendChild(i),i}getSlotChildren(){const{slotName:t}=this;return Array.from(this.host.childNodes).filter(e=>e.nodeType===Node.ELEMENT_NODE&&e.slot===t||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&t==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(t){const{slotInitializer:e}=this;e&&e(t,this.host)}initCustomNode(t){}teardownNode(t){}initAddedNode(t){t!==this.defaultNode&&(this.initCustomNode(t),this.initNode(t))}observeSlot(){const{slotName:t}=this,e=t===""?"slot:not([name])":`slot[name=${t}]`,o=this.host.shadowRoot.querySelector(e);this.__slotObserver=new Qa(o,({addedNodes:i,removedNodes:r})=>{const n=this.multiple?this.nodes:[this.node],a=i.filter(l=>!Za(l)&&!n.includes(l));r.length&&(this.nodes=n.filter(l=>!r.includes(l)),r.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)))})}}/**
2105
+ */class Ee extends EventTarget{static generateId(t,e){return`${e||"default"}-${t.localName}-${Os()}`}constructor(t,e,o,s={}){super();const{initializer:r,multiple:n,observe:a,useUniqueId:l}=s;this.host=t,this.slotName=e,this.tagName=o,this.observe=typeof a=="boolean"?a:!0,this.multiple=typeof n=="boolean"?n:!1,this.slotInitializer=r,n&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(t,e))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let t=this.getSlotChild();t?(this.node=t,this.initAddedNode(t)):(t=this.attachDefaultNode(),this.initNode(t))}initMultiple(){const t=this.getSlotChildren();if(t.length===0){const e=this.attachDefaultNode();e&&(this.nodes=[e],this.initNode(e))}else this.nodes=t,t.forEach(e=>{this.initAddedNode(e)})}attachDefaultNode(){const{host:t,slotName:e,tagName:o}=this;let s=this.defaultNode;return!s&&o&&(s=document.createElement(o),s instanceof Element&&(e!==""&&s.setAttribute("slot",e),this.node=s,this.defaultNode=s)),s&&t.appendChild(s),s}getSlotChildren(){const{slotName:t}=this;return Array.from(this.host.childNodes).filter(e=>e.nodeType===Node.ELEMENT_NODE&&e.slot===t||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&t==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(t){const{slotInitializer:e}=this;e&&e(t,this.host)}initCustomNode(t){}teardownNode(t){}initAddedNode(t){t!==this.defaultNode&&(this.initCustomNode(t),this.initNode(t))}observeSlot(){const{slotName:t}=this,e=t===""?"slot:not([name])":`slot[name=${t}]`,o=this.host.shadowRoot.querySelector(e);this.__slotObserver=new Qa(o,({addedNodes:s,removedNodes:r})=>{const n=this.multiple?this.nodes:[this.node],a=s.filter(l=>!Za(l)&&!n.includes(l));r.length&&(this.nodes=n.filter(l=>!r.includes(l)),r.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)))})}}/**
2106
2106
  * @license
2107
2107
  * Copyright (c) 2022 - 2023 Vaadin Ltd.
2108
2108
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2109
- */class Ii extends Ee{constructor(t){super(t,"tooltip"),this.setTarget(t)}initCustomNode(t){t.target=this.target,this.ariaTarget!==void 0&&(t.ariaTarget=this.ariaTarget),this.context!==void 0&&(t.context=this.context),this.manual!==void 0&&(t.manual=this.manual),this.opened!==void 0&&(t.opened=this.opened),this.position!==void 0&&(t._position=this.position),this.shouldShow!==void 0&&(t.shouldShow=this.shouldShow),this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(t){this.ariaTarget=t;const e=this.node;e&&(e.ariaTarget=t)}setContext(t){this.context=t;const e=this.node;e&&(e.context=t)}setManual(t){this.manual=t;const e=this.node;e&&(e.manual=t)}setOpened(t){this.opened=t;const e=this.node;e&&(e.opened=t)}setPosition(t){this.position=t;const e=this.node;e&&(e._position=t)}setShouldShow(t){this.shouldShow=t;const e=this.node;e&&(e.shouldShow=t)}setTarget(t){this.target=t;const e=this.node;e&&(e.target=t)}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}/**
2109
+ */class Is extends Ee{constructor(t){super(t,"tooltip"),this.setTarget(t)}initCustomNode(t){t.target=this.target,this.ariaTarget!==void 0&&(t.ariaTarget=this.ariaTarget),this.context!==void 0&&(t.context=this.context),this.manual!==void 0&&(t.manual=this.manual),this.opened!==void 0&&(t.opened=this.opened),this.position!==void 0&&(t._position=this.position),this.shouldShow!==void 0&&(t.shouldShow=this.shouldShow),this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(t){this.ariaTarget=t;const e=this.node;e&&(e.ariaTarget=t)}setContext(t){this.context=t;const e=this.node;e&&(e.context=t)}setManual(t){this.manual=t;const e=this.node;e&&(e.manual=t)}setOpened(t){this.opened=t;const e=this.node;e&&(e.opened=t)}setPosition(t){this.position=t;const e=this.node;e&&(e._position=t)}setShouldShow(t){this.shouldShow=t;const e=this.node;e&&(e.shouldShow=t)}setTarget(t){this.target=t;const e=this.node;e&&(e.target=t)}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}/**
2110
2110
  * @license
2111
2111
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
2112
2112
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -2170,7 +2170,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2170
2170
  outline-color: GrayText;
2171
2171
  }
2172
2172
  }
2173
- `,ol=s=>s`
2173
+ `,ol=i=>i`
2174
2174
  <div class="vaadin-button-container">
2175
2175
  <span part="prefix" aria-hidden="true">
2176
2176
  <slot name="prefix"></slot>
@@ -2191,39 +2191,39 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2191
2191
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2192
2192
  Code distributed by Google as part of the polymer project is also
2193
2193
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2194
- */const sl=!1,il=s=>s,Lo=typeof document.head.style.touchAction=="string",go="__polymerGestures",qt="__polymerGesturesHandled",vo="__polymerGesturesTouchAction",Is=25,zs=5,rl=2,nl=["mousedown","mousemove","mouseup","click"],al=[0,1,4,2],ll=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(s){return!1}}();function Fo(s){return nl.indexOf(s)>-1}let zi=!1;(function(){try{const s=Object.defineProperty({},"passive",{get(){zi=!0}});window.addEventListener("test",null,s),window.removeEventListener("test",null,s)}catch(s){}})();function cl(s){if(!(Fo(s)||s==="touchend")&&Lo&&zi&&sl)return{passive:!0}}const ul=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),dl={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Ce(s){const t=s.type;if(!Fo(t))return!1;if(t==="mousemove"){let o=s.buttons===void 0?1:s.buttons;return s instanceof window.MouseEvent&&!ll&&(o=al[s.which]||0),!!(o&1)}return(s.button===void 0?0:s.button)===0}function hl(s){if(s.type==="click"){if(s.detail===0)return!0;const t=ge(s);if(!t.nodeType||t.nodeType!==Node.ELEMENT_NODE)return!0;const e=t.getBoundingClientRect(),o=s.pageX,i=s.pageY;return!(o>=e.left&&o<=e.right&&i>=e.top&&i<=e.bottom)}return!1}const me={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function pl(s){let t="auto";const e=Li(s);for(let o=0,i;o<e.length;o++)if(i=e[o],i[vo]){t=i[vo];break}return t}function Ni(s,t,e){s.movefn=t,s.upfn=e,document.addEventListener("mousemove",t),document.addEventListener("mouseup",e)}function Ne(s){document.removeEventListener("mousemove",s.movefn),document.removeEventListener("mouseup",s.upfn),s.movefn=null,s.upfn=null}const Li=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:s=>s.composedPath&&s.composedPath()||[],$o={},Se=[];function ml(s,t){let e=document.elementFromPoint(s,t),o=e;for(;o&&o.shadowRoot&&!window.ShadyDOM;){const i=o;if(o=o.shadowRoot.elementFromPoint(s,t),i===o)break;o&&(e=o)}return e}function ge(s){const t=Li(s);return t.length>0?t[0]:s.target}function fl(s){const t=s.type,o=s.currentTarget[go];if(!o)return;const i=o[t];if(!i)return;if(!s[qt]&&(s[qt]={},t.startsWith("touch"))){const n=s.changedTouches[0];if(t==="touchstart"&&s.touches.length===1&&(me.touch.id=n.identifier),me.touch.id!==n.identifier)return;Lo||(t==="touchstart"||t==="touchmove")&&_l(s)}const r=s[qt];if(!r.skip){for(let n=0,a;n<Se.length;n++)a=Se[n],i[a.name]&&!r[a.name]&&a.flow&&a.flow.start.indexOf(s.type)>-1&&a.reset&&a.reset();for(let n=0,a;n<Se.length;n++)a=Se[n],i[a.name]&&!r[a.name]&&(r[a.name]=!0,a[t](s))}}function _l(s){const t=s.changedTouches[0],e=s.type;if(e==="touchstart")me.touch.x=t.clientX,me.touch.y=t.clientY,me.touch.scrollDecided=!1;else if(e==="touchmove"){if(me.touch.scrollDecided)return;me.touch.scrollDecided=!0;const o=pl(s);let i=!1;const r=Math.abs(me.touch.x-t.clientX),n=Math.abs(me.touch.y-t.clientY);s.cancelable&&(o==="none"?i=!0:o==="pan-x"?i=n>r:o==="pan-y"&&(i=r>n)),i?s.preventDefault():St("track")}}function ue(s,t,e){return $o[t]?(gl(s,t,e),!0):!1}function gl(s,t,e){const o=$o[t],i=o.deps,r=o.name;let n=s[go];n||(s[go]=n={});for(let a=0,l,c;a<i.length;a++)l=i[a],!(ul&&Fo(l)&&l!=="click")&&(c=n[l],c||(n[l]=c={_count:0}),c._count===0&&s.addEventListener(l,fl,cl(l)),c[r]=(c[r]||0)+1,c._count=(c._count||0)+1);s.addEventListener(t,e),o.touchAction&&Fi(s,o.touchAction)}function Ro(s){Se.push(s),s.emits.forEach(t=>{$o[t]=s})}function vl(s){for(let t=0,e;t<Se.length;t++){e=Se[t];for(let o=0,i;o<e.emits.length;o++)if(i=e.emits[o],i===s)return e}return null}function Fi(s,t){Lo&&s instanceof HTMLElement&&Ka.run(()=>{s.style.touchAction=t}),s[vo]=t}function Bo(s,t,e){const o=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});if(o.detail=e,il(s).dispatchEvent(o),o.defaultPrevented){const i=e.preventer||e.sourceEvent;i&&i.preventDefault&&i.preventDefault()}}function St(s){const t=vl(s);t.info&&(t.info.prevent=!0)}Ro({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){Ne(this.info)},mousedown(s){if(!Ce(s))return;const t=ge(s),e=this,o=r=>{Ce(r)||(Ve("up",t,r),Ne(e.info))},i=r=>{Ce(r)&&Ve("up",t,r),Ne(e.info)};Ni(this.info,o,i),Ve("down",t,s)},touchstart(s){Ve("down",ge(s),s.changedTouches[0],s)},touchend(s){Ve("up",ge(s),s.changedTouches[0],s)}});function Ve(s,t,e,o){t&&Bo(t,s,{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:o,prevent(i){return St(i)}})}Ro({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(s){this.moves.length>rl&&this.moves.shift(),this.moves.push(s)},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,Ne(this.info)},mousedown(s){if(!Ce(s))return;const t=ge(s),e=this,o=r=>{const n=r.clientX,a=r.clientY;Ns(e.info,n,a)&&(e.info.state=e.info.started?r.type==="mouseup"?"end":"track":"start",e.info.state==="start"&&St("tap"),e.info.addMove({x:n,y:a}),Ce(r)||(e.info.state="end",Ne(e.info)),t&&Kt(e.info,t,r),e.info.started=!0)},i=r=>{e.info.started&&o(r),Ne(e.info)};Ni(this.info,o,i),this.info.x=s.clientX,this.info.y=s.clientY},touchstart(s){const t=s.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchmove(s){const t=ge(s),e=s.changedTouches[0],o=e.clientX,i=e.clientY;Ns(this.info,o,i)&&(this.info.state==="start"&&St("tap"),this.info.addMove({x:o,y:i}),Kt(this.info,t,e),this.info.state="track",this.info.started=!0)},touchend(s){const t=ge(s),e=s.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:e.clientX,y:e.clientY}),Kt(this.info,t,e))}});function Ns(s,t,e){if(s.prevent)return!1;if(s.started)return!0;const o=Math.abs(s.x-t),i=Math.abs(s.y-e);return o>=zs||i>=zs}function Kt(s,t,e){if(!t)return;const o=s.moves[s.moves.length-2],i=s.moves[s.moves.length-1],r=i.x-s.x,n=i.y-s.y;let a,l=0;o&&(a=i.x-o.x,l=i.y-o.y),Bo(t,"track",{state:s.state,x:e.clientX,y:e.clientY,dx:r,dy:n,ddx:a,ddy:l,sourceEvent:e,hover(){return ml(e.clientX,e.clientY)}})}Ro({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown(s){Ce(s)&&(this.info.x=s.clientX,this.info.y=s.clientY)},click(s){Ce(s)&&Ls(this.info,s)},touchstart(s){const t=s.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchend(s){Ls(this.info,s.changedTouches[0],s)}});function Ls(s,t,e){const o=Math.abs(t.clientX-s.x),i=Math.abs(t.clientY-s.y),r=ge(e||t);!r||dl[r.localName]&&r.hasAttribute("disabled")||(isNaN(o)||isNaN(i)||o<=Is&&i<=Is||hl(t))&&(s.prevent||Bo(r,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:e}))}/**
2194
+ */const il=!1,sl=i=>i,Lo=typeof document.head.style.touchAction=="string",go="__polymerGestures",qt="__polymerGesturesHandled",yo="__polymerGesturesTouchAction",Ii=25,zi=5,rl=2,nl=["mousedown","mousemove","mouseup","click"],al=[0,1,4,2],ll=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(i){return!1}}();function Fo(i){return nl.indexOf(i)>-1}let zs=!1;(function(){try{const i=Object.defineProperty({},"passive",{get(){zs=!0}});window.addEventListener("test",null,i),window.removeEventListener("test",null,i)}catch(i){}})();function cl(i){if(!(Fo(i)||i==="touchend")&&Lo&&zs&&il)return{passive:!0}}const ul=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),dl={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Ce(i){const t=i.type;if(!Fo(t))return!1;if(t==="mousemove"){let o=i.buttons===void 0?1:i.buttons;return i instanceof window.MouseEvent&&!ll&&(o=al[i.which]||0),!!(o&1)}return(i.button===void 0?0:i.button)===0}function hl(i){if(i.type==="click"){if(i.detail===0)return!0;const t=ge(i);if(!t.nodeType||t.nodeType!==Node.ELEMENT_NODE)return!0;const e=t.getBoundingClientRect(),o=i.pageX,s=i.pageY;return!(o>=e.left&&o<=e.right&&s>=e.top&&s<=e.bottom)}return!1}const me={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function pl(i){let t="auto";const e=Ls(i);for(let o=0,s;o<e.length;o++)if(s=e[o],s[yo]){t=s[yo];break}return t}function Ns(i,t,e){i.movefn=t,i.upfn=e,document.addEventListener("mousemove",t),document.addEventListener("mouseup",e)}function Ne(i){document.removeEventListener("mousemove",i.movefn),document.removeEventListener("mouseup",i.upfn),i.movefn=null,i.upfn=null}const Ls=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:i=>i.composedPath&&i.composedPath()||[],$o={},Se=[];function ml(i,t){let e=document.elementFromPoint(i,t),o=e;for(;o&&o.shadowRoot&&!window.ShadyDOM;){const s=o;if(o=o.shadowRoot.elementFromPoint(i,t),s===o)break;o&&(e=o)}return e}function ge(i){const t=Ls(i);return t.length>0?t[0]:i.target}function fl(i){const t=i.type,o=i.currentTarget[go];if(!o)return;const s=o[t];if(!s)return;if(!i[qt]&&(i[qt]={},t.startsWith("touch"))){const n=i.changedTouches[0];if(t==="touchstart"&&i.touches.length===1&&(me.touch.id=n.identifier),me.touch.id!==n.identifier)return;Lo||(t==="touchstart"||t==="touchmove")&&_l(i)}const r=i[qt];if(!r.skip){for(let n=0,a;n<Se.length;n++)a=Se[n],s[a.name]&&!r[a.name]&&a.flow&&a.flow.start.indexOf(i.type)>-1&&a.reset&&a.reset();for(let n=0,a;n<Se.length;n++)a=Se[n],s[a.name]&&!r[a.name]&&(r[a.name]=!0,a[t](i))}}function _l(i){const t=i.changedTouches[0],e=i.type;if(e==="touchstart")me.touch.x=t.clientX,me.touch.y=t.clientY,me.touch.scrollDecided=!1;else if(e==="touchmove"){if(me.touch.scrollDecided)return;me.touch.scrollDecided=!0;const o=pl(i);let s=!1;const r=Math.abs(me.touch.x-t.clientX),n=Math.abs(me.touch.y-t.clientY);i.cancelable&&(o==="none"?s=!0:o==="pan-x"?s=n>r:o==="pan-y"&&(s=r>n)),s?i.preventDefault():St("track")}}function ue(i,t,e){return $o[t]?(gl(i,t,e),!0):!1}function gl(i,t,e){const o=$o[t],s=o.deps,r=o.name;let n=i[go];n||(i[go]=n={});for(let a=0,l,c;a<s.length;a++)l=s[a],!(ul&&Fo(l)&&l!=="click")&&(c=n[l],c||(n[l]=c={_count:0}),c._count===0&&i.addEventListener(l,fl,cl(l)),c[r]=(c[r]||0)+1,c._count=(c._count||0)+1);i.addEventListener(t,e),o.touchAction&&Fs(i,o.touchAction)}function Ro(i){Se.push(i),i.emits.forEach(t=>{$o[t]=i})}function yl(i){for(let t=0,e;t<Se.length;t++){e=Se[t];for(let o=0,s;o<e.emits.length;o++)if(s=e.emits[o],s===i)return e}return null}function Fs(i,t){Lo&&i instanceof HTMLElement&&Ka.run(()=>{i.style.touchAction=t}),i[yo]=t}function Bo(i,t,e){const o=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});if(o.detail=e,sl(i).dispatchEvent(o),o.defaultPrevented){const s=e.preventer||e.sourceEvent;s&&s.preventDefault&&s.preventDefault()}}function St(i){const t=yl(i);t.info&&(t.info.prevent=!0)}Ro({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){Ne(this.info)},mousedown(i){if(!Ce(i))return;const t=ge(i),e=this,o=r=>{Ce(r)||(Ve("up",t,r),Ne(e.info))},s=r=>{Ce(r)&&Ve("up",t,r),Ne(e.info)};Ns(this.info,o,s),Ve("down",t,i)},touchstart(i){Ve("down",ge(i),i.changedTouches[0],i)},touchend(i){Ve("up",ge(i),i.changedTouches[0],i)}});function Ve(i,t,e,o){t&&Bo(t,i,{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:o,prevent(s){return St(s)}})}Ro({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(i){this.moves.length>rl&&this.moves.shift(),this.moves.push(i)},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,Ne(this.info)},mousedown(i){if(!Ce(i))return;const t=ge(i),e=this,o=r=>{const n=r.clientX,a=r.clientY;Ni(e.info,n,a)&&(e.info.state=e.info.started?r.type==="mouseup"?"end":"track":"start",e.info.state==="start"&&St("tap"),e.info.addMove({x:n,y:a}),Ce(r)||(e.info.state="end",Ne(e.info)),t&&Kt(e.info,t,r),e.info.started=!0)},s=r=>{e.info.started&&o(r),Ne(e.info)};Ns(this.info,o,s),this.info.x=i.clientX,this.info.y=i.clientY},touchstart(i){const t=i.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchmove(i){const t=ge(i),e=i.changedTouches[0],o=e.clientX,s=e.clientY;Ni(this.info,o,s)&&(this.info.state==="start"&&St("tap"),this.info.addMove({x:o,y:s}),Kt(this.info,t,e),this.info.state="track",this.info.started=!0)},touchend(i){const t=ge(i),e=i.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:e.clientX,y:e.clientY}),Kt(this.info,t,e))}});function Ni(i,t,e){if(i.prevent)return!1;if(i.started)return!0;const o=Math.abs(i.x-t),s=Math.abs(i.y-e);return o>=zi||s>=zi}function Kt(i,t,e){if(!t)return;const o=i.moves[i.moves.length-2],s=i.moves[i.moves.length-1],r=s.x-i.x,n=s.y-i.y;let a,l=0;o&&(a=s.x-o.x,l=s.y-o.y),Bo(t,"track",{state:i.state,x:e.clientX,y:e.clientY,dx:r,dy:n,ddx:a,ddy:l,sourceEvent:e,hover(){return ml(e.clientX,e.clientY)}})}Ro({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown(i){Ce(i)&&(this.info.x=i.clientX,this.info.y=i.clientY)},click(i){Ce(i)&&Li(this.info,i)},touchstart(i){const t=i.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchend(i){Li(this.info,i.changedTouches[0],i)}});function Li(i,t,e){const o=Math.abs(t.clientX-i.x),s=Math.abs(t.clientY-i.y),r=ge(e||t);!r||dl[r.localName]&&r.hasAttribute("disabled")||(isNaN(o)||isNaN(s)||o<=Ii&&s<=Ii||hl(t))&&(i.prevent||Bo(r,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:e}))}/**
2195
2195
  * @license
2196
2196
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
2197
2197
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2198
- */const $i=Y(s=>class extends s{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(e){this._setAriaDisabled(e)}_setAriaDisabled(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}});/**
2198
+ */const $s=Y(i=>class extends i{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(e){this._setAriaDisabled(e)}_setAriaDisabled(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}});/**
2199
2199
  * @license
2200
2200
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
2201
2201
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2202
- */const Mt=Y(s=>class extends s{ready(){super.ready(),this.addEventListener("keydown",e=>{this._onKeyDown(e)}),this.addEventListener("keyup",e=>{this._onKeyUp(e)})}_onKeyDown(e){switch(e.key){case"Enter":this._onEnter(e);break;case"Escape":this._onEscape(e);break}}_onKeyUp(e){}_onEnter(e){}_onEscape(e){}});/**
2202
+ */const Mt=Y(i=>class extends i{ready(){super.ready(),this.addEventListener("keydown",e=>{this._onKeyDown(e)}),this.addEventListener("keyup",e=>{this._onKeyUp(e)})}_onKeyDown(e){switch(e.key){case"Enter":this._onEnter(e);break;case"Escape":this._onEscape(e);break}}_onKeyUp(e){}_onEnter(e){}_onEscape(e){}});/**
2203
2203
  * @license
2204
2204
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
2205
2205
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2206
- */const yl=s=>class extends $i(Mt(s)){get _activeKeys(){return[" "]}ready(){super.ready(),ue(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0)}),ue(this,"up",()=>{this._setActive(!1)})}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(e){return!this.disabled}_onKeyDown(e){super._onKeyDown(e),this._shouldSetActive(e)&&this._activeKeys.includes(e.key)&&(this._setActive(!0),document.addEventListener("keyup",o=>{this._activeKeys.includes(o.key)&&this._setActive(!1)},{once:!0}))}_setActive(e){this.toggleAttribute("active",e)}};/**
2206
+ */const vl=i=>class extends $s(Mt(i)){get _activeKeys(){return[" "]}ready(){super.ready(),ue(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0)}),ue(this,"up",()=>{this._setActive(!1)})}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(e){return!this.disabled}_onKeyDown(e){super._onKeyDown(e),this._shouldSetActive(e)&&this._activeKeys.includes(e.key)&&(this._setActive(!0),document.addEventListener("keyup",o=>{this._activeKeys.includes(o.key)&&this._setActive(!1)},{once:!0}))}_setActive(e){this.toggleAttribute("active",e)}};/**
2207
2207
  * @license
2208
2208
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
2209
2209
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2210
- */let Ho=!1;window.addEventListener("keydown",()=>{Ho=!0},{capture:!0});window.addEventListener("mousedown",()=>{Ho=!1},{capture:!0});function yo(){let s=document.activeElement||document.body;for(;s.shadowRoot&&s.shadowRoot.activeElement;)s=s.shadowRoot.activeElement;return s}function bl(){return Ho}function xl(s){const t=s.style;if(t.visibility==="hidden"||t.display==="none")return!0;const e=window.getComputedStyle(s);return e.visibility==="hidden"||e.display==="none"}function wl(s,t){const e=Math.max(s.tabIndex,0),o=Math.max(t.tabIndex,0);return e===0||o===0?o>e:e>o}function El(s,t){const e=[];for(;s.length>0&&t.length>0;)wl(s[0],t[0])?e.push(t.shift()):e.push(s.shift());return e.concat(s,t)}function bo(s){const t=s.length;if(t<2)return s;const e=Math.ceil(t/2),o=bo(s.slice(0,e)),i=bo(s.slice(e));return El(o,i)}function Sl(s){return s.matches('[tabindex="-1"]')?!1:s.matches("input, select, textarea, button, object")?s.matches(":not([disabled])"):s.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function Cl(s){return s.getRootNode().activeElement===s}function Al(s){if(!Sl(s))return-1;const t=s.getAttribute("tabindex")||0;return Number(t)}function Ri(s,t){if(s.nodeType!==Node.ELEMENT_NODE||xl(s))return!1;const e=s,o=Al(e);let i=o>0;o>=0&&t.push(e);let r=[];return e.localName==="slot"?r=e.assignedNodes({flatten:!0}):r=(e.shadowRoot||e).children,[...r].forEach(n=>{i=Ri(n,t)||i}),i}function Pl(s){const t=[];return Ri(s,t)?bo(t):t}/**
2210
+ */let Ho=!1;window.addEventListener("keydown",()=>{Ho=!0},{capture:!0});window.addEventListener("mousedown",()=>{Ho=!1},{capture:!0});function vo(){let i=document.activeElement||document.body;for(;i.shadowRoot&&i.shadowRoot.activeElement;)i=i.shadowRoot.activeElement;return i}function bl(){return Ho}function xl(i){const t=i.style;if(t.visibility==="hidden"||t.display==="none")return!0;const e=window.getComputedStyle(i);return e.visibility==="hidden"||e.display==="none"}function wl(i,t){const e=Math.max(i.tabIndex,0),o=Math.max(t.tabIndex,0);return e===0||o===0?o>e:e>o}function El(i,t){const e=[];for(;i.length>0&&t.length>0;)wl(i[0],t[0])?e.push(t.shift()):e.push(i.shift());return e.concat(i,t)}function bo(i){const t=i.length;if(t<2)return i;const e=Math.ceil(t/2),o=bo(i.slice(0,e)),s=bo(i.slice(e));return El(o,s)}function Sl(i){return i.matches('[tabindex="-1"]')?!1:i.matches("input, select, textarea, button, object")?i.matches(":not([disabled])"):i.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function Cl(i){return i.getRootNode().activeElement===i}function Al(i){if(!Sl(i))return-1;const t=i.getAttribute("tabindex")||0;return Number(t)}function Rs(i,t){if(i.nodeType!==Node.ELEMENT_NODE||xl(i))return!1;const e=i,o=Al(e);let s=o>0;o>=0&&t.push(e);let r=[];return e.localName==="slot"?r=e.assignedNodes({flatten:!0}):r=(e.shadowRoot||e).children,[...r].forEach(n=>{s=Rs(n,t)||s}),s}function kl(i){const t=[];return Rs(i,t)?bo(t):t}/**
2211
2211
  * @license
2212
2212
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
2213
2213
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2214
- */const jo=Y(s=>class extends s{get _keyboardActive(){return bl()}ready(){this.addEventListener("focusin",e=>{this._shouldSetFocus(e)&&this._setFocused(!0)}),this.addEventListener("focusout",e=>{this._shouldRemoveFocus(e)&&this._setFocused(!1)}),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(e){this.toggleAttribute("focused",e),this.toggleAttribute("focus-ring",e&&this._keyboardActive)}_shouldSetFocus(e){return!0}_shouldRemoveFocus(e){return!0}});/**
2214
+ */const jo=Y(i=>class extends i{get _keyboardActive(){return bl()}ready(){this.addEventListener("focusin",e=>{this._shouldSetFocus(e)&&this._setFocused(!0)}),this.addEventListener("focusout",e=>{this._shouldRemoveFocus(e)&&this._setFocused(!1)}),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(e){this.toggleAttribute("focused",e),this.toggleAttribute("focus-ring",e&&this._keyboardActive)}_shouldSetFocus(e){return!0}_shouldRemoveFocus(e){return!0}});/**
2215
2215
  * @license
2216
2216
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
2217
2217
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2218
- */const Bi=s=>class extends $i(s){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(e,o){super._disabledChanged(e,o),e?(this.tabindex!==void 0&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):o&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(e){this.disabled&&e!==-1&&(this._lastTabIndex=e,this.tabindex=-1)}};/**
2218
+ */const Bs=i=>class extends $s(i){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(e,o){super._disabledChanged(e,o),e?(this.tabindex!==void 0&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):o&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(e){this.disabled&&e!==-1&&(this._lastTabIndex=e,this.tabindex=-1)}};/**
2219
2219
  * @license
2220
2220
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
2221
2221
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2222
- */const kl=s=>class extends yl(Bi(jo(s))){static get properties(){return{tabindex:{type:Number,value:0,reflectToAttribute:!0}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button")}_onKeyDown(e){super._onKeyDown(e),!(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)&&this._activeKeys.includes(e.key)&&(e.preventDefault(),this.click())}};/**
2222
+ */const Pl=i=>class extends vl(Bs(jo(i))){static get properties(){return{tabindex:{type:Number,value:0,reflectToAttribute:!0}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button")}_onKeyDown(e){super._onKeyDown(e),!(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)&&this._activeKeys.includes(e.key)&&(e.preventDefault(),this.click())}};/**
2223
2223
  * @license
2224
2224
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
2225
2225
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2226
- */F("vaadin-button",tl,{moduleId:"vaadin-button-styles"});class Dl extends kl(Ti(Pe(Be(ve)))){static get is(){return"vaadin-button"}static get template(){return ol(De)}ready(){super.ready(),this._tooltipController=new Ii(this),this.addController(this._tooltipController)}}ie(Dl);F("vaadin-date-picker-year",S`
2226
+ */F("vaadin-button",tl,{moduleId:"vaadin-button-styles"});class Dl extends Pl(Ts(ke(Be(ye)))){static get is(){return"vaadin-button"}static get template(){return ol(De)}ready(){super.ready(),this._tooltipController=new Is(this),this.addController(this._tooltipController)}}se(Dl);F("vaadin-date-picker-year",S`
2227
2227
  :host([current]) [part='year-number'] {
2228
2228
  color: var(--lumo-primary-text-color);
2229
2229
  }
@@ -2537,7 +2537,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2537
2537
  :host([disabled]) * {
2538
2538
  color: var(--lumo-disabled-text-color) !important;
2539
2539
  }
2540
- `,{moduleId:"lumo-month-calendar"});const Hi=document.createElement("template");Hi.innerHTML=`
2540
+ `,{moduleId:"lumo-month-calendar"});const Hs=document.createElement("template");Hs.innerHTML=`
2541
2541
  <style>
2542
2542
  @keyframes vaadin-date-picker-month-calendar-focus-date {
2543
2543
  50% {
@@ -2545,7 +2545,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2545
2545
  }
2546
2546
  }
2547
2547
  </style>
2548
- `;document.head.appendChild(Hi.content);/**
2548
+ `;document.head.appendChild(Hs.content);/**
2549
2549
  * @license
2550
2550
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
2551
2551
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -2606,7 +2606,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2606
2606
  * @license
2607
2607
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
2608
2608
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2609
- */const ji=S`
2609
+ */const js=S`
2610
2610
  [part$='button'] {
2611
2611
  flex: none;
2612
2612
  width: 1em;
@@ -2633,7 +2633,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2633
2633
  font-family: 'lumo-icons';
2634
2634
  display: block;
2635
2635
  }
2636
- `;F("",ji,{moduleId:"lumo-field-button"});/**
2636
+ `;F("",js,{moduleId:"lumo-field-button"});/**
2637
2637
  * @license
2638
2638
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
2639
2639
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -2692,7 +2692,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2692
2692
  * @license
2693
2693
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
2694
2694
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2695
- */const Yi=S`
2695
+ */const Ys=S`
2696
2696
  [part='label'] {
2697
2697
  align-self: flex-start;
2698
2698
  color: var(--lumo-secondary-text-color);
@@ -2788,7 +2788,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2788
2788
  margin-left: 0;
2789
2789
  margin-right: calc(var(--lumo-border-radius-m) / 4);
2790
2790
  }
2791
- `;F("",Yi,{moduleId:"lumo-required-field"});/**
2791
+ `;F("",Ys,{moduleId:"lumo-required-field"});/**
2792
2792
  * @license
2793
2793
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
2794
2794
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -2926,7 +2926,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2926
2926
  [part='clear-button']::before {
2927
2927
  content: var(--lumo-icons-cross);
2928
2928
  }
2929
- `,Vi=[Yi,ji,Ml,Ol];F("",Vi,{moduleId:"lumo-input-field-shared-styles"});const Il=S`
2929
+ `,Vs=[Ys,js,Ml,Ol];F("",Vs,{moduleId:"lumo-input-field-shared-styles"});const Il=S`
2930
2930
  :host {
2931
2931
  outline: none;
2932
2932
  }
@@ -2952,7 +2952,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2952
2952
  :host([dir='rtl']) [part='input-field'] ::slotted(input:placeholder-shown) {
2953
2953
  --_lumo-text-field-overflow-mask-image: none;
2954
2954
  }
2955
- `;F("vaadin-date-picker",[Vi,Il],{moduleId:"lumo-date-picker"});/**
2955
+ `;F("vaadin-date-picker",[Vs,Il],{moduleId:"lumo-date-picker"});/**
2956
2956
  @license
2957
2957
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2958
2958
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2960,43 +2960,43 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2960
2960
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2961
2961
  Code distributed by Google as part of the polymer project is also
2962
2962
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2963
- */let xo=!1,zl=[],Ui=[];function Nl(){xo=!0,requestAnimationFrame(function(){xo=!1,Ll(zl),setTimeout(function(){Fl(Ui)})})}function Ll(s){for(;s.length;)Wi(s.shift())}function Fl(s){for(let t=0,e=s.length;t<e;t++)Wi(s.shift())}function Wi(s){const t=s[0],e=s[1],o=s[2];try{e.apply(t,o)}catch(i){setTimeout(()=>{throw i})}}function qi(s,t,e){xo||Nl(),Ui.push([s,t,e])}/**
2963
+ */let xo=!1,zl=[],Us=[];function Nl(){xo=!0,requestAnimationFrame(function(){xo=!1,Ll(zl),setTimeout(function(){Fl(Us)})})}function Ll(i){for(;i.length;)Ws(i.shift())}function Fl(i){for(let t=0,e=i.length;t<e;t++)Ws(i.shift())}function Ws(i){const t=i[0],e=i[1],o=i[2];try{e.apply(t,o)}catch(s){setTimeout(()=>{throw s})}}function qs(i,t,e){xo||Nl(),Us.push([i,t,e])}/**
2964
2964
  * @license
2965
2965
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
2966
2966
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2967
- */const Ot=s=>s.test(navigator.userAgent),wo=s=>s.test(navigator.platform),$l=s=>s.test(navigator.vendor);Ot(/Android/u);Ot(/Chrome/u)&&$l(/Google Inc/u);const Rl=Ot(/Firefox/u),Bl=wo(/^iPad/u)||wo(/^Mac/u)&&navigator.maxTouchPoints>1,Hl=wo(/^iPhone/u),Ki=Hl||Bl;Ot(/^((?!chrome|android).)*safari/iu);const jl=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(s){return!1}})();/**
2967
+ */const Ot=i=>i.test(navigator.userAgent),wo=i=>i.test(navigator.platform),$l=i=>i.test(navigator.vendor);Ot(/Android/u);Ot(/Chrome/u)&&$l(/Google Inc/u);const Rl=Ot(/Firefox/u),Bl=wo(/^iPad/u)||wo(/^Mac/u)&&navigator.maxTouchPoints>1,Hl=wo(/^iPhone/u),Ks=Hl||Bl;Ot(/^((?!chrome|android).)*safari/iu);const jl=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(i){return!1}})();/**
2968
2968
  * @license
2969
2969
  * Copyright (c) 2017 Anton Korzunov
2970
2970
  * SPDX-License-Identifier: MIT
2971
- */let Me=new WeakMap,ht=new WeakMap,pt={},Gt=0;const Fs=s=>s&&s.nodeType===Node.ELEMENT_NODE,Jt=(...s)=>{console.error(`Error: ${s.join(" ")}. Skip setting aria-hidden.`)},Yl=(s,t)=>Fs(s)?t.map(e=>{if(!Fs(e))return Jt(e,"is not a valid element"),null;let o=e;for(;o&&o!==s;){if(s.contains(o))return e;o=o.getRootNode().host}return Jt(e,"is not contained inside",s),null}).filter(e=>!!e):(Jt(s,"is not a valid element"),[]),Vl=(s,t,e,o)=>{const i=Yl(t,Array.isArray(s)?s:[s]);pt[e]||(pt[e]=new WeakMap);const r=pt[e],n=[],a=new Set,l=new Set(i),c=h=>{if(!h||a.has(h))return;a.add(h);const p=h.assignedSlot;p&&c(p),c(h.parentNode||h.host)};i.forEach(c);const d=h=>{if(!h||l.has(h))return;const p=h.shadowRoot;(p?[...h.children,...p.children]:[...h.children]).forEach(v=>{if(!["template","script","style"].includes(v.localName))if(a.has(v))d(v);else{const A=v.getAttribute(o),z=A!==null&&A!=="false",M=(Me.get(v)||0)+1,I=(r.get(v)||0)+1;Me.set(v,M),r.set(v,I),n.push(v),M===1&&z&&ht.set(v,!0),I===1&&v.setAttribute(e,"true"),z||v.setAttribute(o,"true")}})};return d(t),a.clear(),Gt+=1,()=>{n.forEach(h=>{const p=Me.get(h)-1,m=r.get(h)-1;Me.set(h,p),r.set(h,m),p||(ht.has(h)?ht.delete(h):h.removeAttribute(o)),m||h.removeAttribute(e)}),Gt-=1,Gt||(Me=new WeakMap,Me=new WeakMap,ht=new WeakMap,pt={})}},Gi=(s,t=document.body,e="data-aria-hidden")=>{const o=Array.from(Array.isArray(s)?s:[s]);return t&&o.push(...Array.from(t.querySelectorAll("[aria-live]"))),Vl(o,t,e,"aria-hidden")};/**
2971
+ */let Me=new WeakMap,ht=new WeakMap,pt={},Gt=0;const Fi=i=>i&&i.nodeType===Node.ELEMENT_NODE,Jt=(...i)=>{console.error(`Error: ${i.join(" ")}. Skip setting aria-hidden.`)},Yl=(i,t)=>Fi(i)?t.map(e=>{if(!Fi(e))return Jt(e,"is not a valid element"),null;let o=e;for(;o&&o!==i;){if(i.contains(o))return e;o=o.getRootNode().host}return Jt(e,"is not contained inside",i),null}).filter(e=>!!e):(Jt(i,"is not a valid element"),[]),Vl=(i,t,e,o)=>{const s=Yl(t,Array.isArray(i)?i:[i]);pt[e]||(pt[e]=new WeakMap);const r=pt[e],n=[],a=new Set,l=new Set(s),c=h=>{if(!h||a.has(h))return;a.add(h);const p=h.assignedSlot;p&&c(p),c(h.parentNode||h.host)};s.forEach(c);const d=h=>{if(!h||l.has(h))return;const p=h.shadowRoot;(p?[...h.children,...p.children]:[...h.children]).forEach(y=>{if(!["template","script","style"].includes(y.localName))if(a.has(y))d(y);else{const A=y.getAttribute(o),z=A!==null&&A!=="false",M=(Me.get(y)||0)+1,I=(r.get(y)||0)+1;Me.set(y,M),r.set(y,I),n.push(y),M===1&&z&&ht.set(y,!0),I===1&&y.setAttribute(e,"true"),z||y.setAttribute(o,"true")}})};return d(t),a.clear(),Gt+=1,()=>{n.forEach(h=>{const p=Me.get(h)-1,m=r.get(h)-1;Me.set(h,p),r.set(h,m),p||(ht.has(h)?ht.delete(h):h.removeAttribute(o)),m||h.removeAttribute(e)}),Gt-=1,Gt||(Me=new WeakMap,Me=new WeakMap,ht=new WeakMap,pt={})}},Gs=(i,t=document.body,e="data-aria-hidden")=>{const o=Array.from(Array.isArray(i)?i:[i]);return t&&o.push(...Array.from(t.querySelectorAll("[aria-live]"))),Vl(o,t,e,"aria-hidden")};/**
2972
2972
  * @license
2973
2973
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
2974
2974
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2975
- */class Ul{constructor(t,e){this.host=t,this.callback=typeof e=="function"?e:()=>t}showModal(){const t=this.callback();this.__showOthers=Gi(t)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}/**
2975
+ */class Ul{constructor(t,e){this.host=t,this.callback=typeof e=="function"?e:()=>t}showModal(){const t=this.callback();this.__showOthers=Gs(t)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}/**
2976
2976
  * @license
2977
2977
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
2978
2978
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2979
- */class Wl{saveFocus(t){this.focusNode=t||yo()}restoreFocus(){const t=this.focusNode;t&&(yo()===document.body?setTimeout(()=>t.focus()):t.focus(),this.focusNode=null)}}/**
2979
+ */class Wl{saveFocus(t){this.focusNode=t||vo()}restoreFocus(){const t=this.focusNode;t&&(vo()===document.body?setTimeout(()=>t.focus()):t.focus(),this.focusNode=null)}}/**
2980
2980
  * @license
2981
2981
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
2982
2982
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2983
- */const Xt=[];class ql{constructor(t){this.host=t,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return Pl(this.__trapNode)}get __focusedElementIndex(){const t=this.__focusableElements;return t.indexOf(t.filter(Cl).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(t){if(this.__trapNode=t,this.__focusableElements.length===0)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");Xt.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,Xt.pop()}__onKeyDown(t){if(this.__trapNode&&this===Array.from(Xt).pop()&&t.key==="Tab"){t.preventDefault();const e=t.shiftKey;this.__focusNextElement(e)}}__focusNextElement(t=!1){const e=this.__focusableElements,o=t?-1:1,i=this.__focusedElementIndex,r=(e.length+i+o)%e.length,n=e[r];n.focus(),n.localName==="input"&&n.select()}}/**
2983
+ */const Xt=[];class ql{constructor(t){this.host=t,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return kl(this.__trapNode)}get __focusedElementIndex(){const t=this.__focusableElements;return t.indexOf(t.filter(Cl).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(t){if(this.__trapNode=t,this.__focusableElements.length===0)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");Xt.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,Xt.pop()}__onKeyDown(t){if(this.__trapNode&&this===Array.from(Xt).pop()&&t.key==="Tab"){t.preventDefault();const e=t.shiftKey;this.__focusNextElement(e)}}__focusNextElement(t=!1){const e=this.__focusableElements,o=t?-1:1,s=this.__focusedElementIndex,r=(e.length+s+o)%e.length,n=e[r];n.focus(),n.localName==="input"&&n.select()}}/**
2984
2984
  * @license
2985
2985
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
2986
2986
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2987
- */const Kl=s=>class extends Be(s){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new Ul(this),this.__focusTrapController=new ql(this),this.__focusRestorationController=new Wl}ready(){super.ready(),this.addController(this.__ariaModalController),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController)}_resetFocus(){this.focusTrap&&(this.__ariaModalController.close(),this.__focusTrapController.releaseFocus()),this.restoreFocusOnClose&&this._shouldRestoreFocus()&&this.__focusRestorationController.restoreFocus()}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const e=yo();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return!0;let o=e;const i=e.ownerDocument;for(;o&&o!==i&&o!==this;)o=o.parentNode||o.host;return o===this}};/**
2987
+ */const Kl=i=>class extends Be(i){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new Ul(this),this.__focusTrapController=new ql(this),this.__focusRestorationController=new Wl}ready(){super.ready(),this.addController(this.__ariaModalController),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController)}_resetFocus(){this.focusTrap&&(this.__ariaModalController.close(),this.__focusTrapController.releaseFocus()),this.restoreFocusOnClose&&this._shouldRestoreFocus()&&this.__focusRestorationController.restoreFocus()}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const e=vo();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return!0;let o=e;const s=e.ownerDocument;for(;o&&o!==s&&o!==this;)o=o.parentNode||o.host;return o===this}};/**
2988
2988
  * @license
2989
2989
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
2990
2990
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2991
- */const gt=()=>Array.from(document.body.children).filter(s=>s instanceof HTMLElement&&s._hasOverlayStackMixin&&!s.hasAttribute("closing")).sort((s,t)=>s.__zIndex-t.__zIndex||0),Gl=s=>s===gt().pop(),Jl=s=>class extends s{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return Gl(this)}bringToFront(){let e="";const o=gt().filter(i=>i!==this).pop();o&&(e=o.__zIndex+1),this.style.zIndex=e,this.__zIndex=e||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){document.body.style.pointerEvents!=="none"&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),gt().forEach(e=>{e!==this&&(e.$.overlay.style.pointerEvents="none")})}_exitModalState(){this._previousDocumentPointerEvents!==void 0&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const e=gt();let o;for(;(o=e.pop())&&!(o!==this&&(o.$.overlay.style.removeProperty("pointer-events"),!o.modeless)););}};/**
2991
+ */const gt=()=>Array.from(document.body.children).filter(i=>i instanceof HTMLElement&&i._hasOverlayStackMixin&&!i.hasAttribute("closing")).sort((i,t)=>i.__zIndex-t.__zIndex||0),Gl=i=>i===gt().pop(),Jl=i=>class extends i{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return Gl(this)}bringToFront(){let e="";const o=gt().filter(s=>s!==this).pop();o&&(e=o.__zIndex+1),this.style.zIndex=e,this.__zIndex=e||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){document.body.style.pointerEvents!=="none"&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),gt().forEach(e=>{e!==this&&(e.$.overlay.style.pointerEvents="none")})}_exitModalState(){this._previousDocumentPointerEvents!==void 0&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const e=gt();let o;for(;(o=e.pop())&&!(o!==this&&(o.$.overlay.style.removeProperty("pointer-events"),!o.modeless)););}};/**
2992
2992
  * @license
2993
2993
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
2994
2994
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2995
- */const Xl=s=>class extends Kl(Jl(s)){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),Ki&&(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(e){const o=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(o),o.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const e=window.innerHeight,i=window.innerWidth>e,r=document.documentElement.clientHeight;i&&r>e?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${r-e}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(e,o,i,r){const n=this._oldOwner!==o||this._oldModel!==i;this._oldModel=i,this._oldOwner=o;const a=this._oldRenderer!==e;this._oldRenderer=e;const l=this._oldOpened!==r;this._oldOpened=r,a&&(this.innerHTML="",delete this._$litPart$),r&&e&&(a||l||n)&&this.requestContentUpdate()}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(e,o){e?(this._saveFocus(),this._animatedOpening(),qi(this,()=>{this._trapFocus();const i=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(i)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):o&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(e){e&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const e=getComputedStyle(this),o=e.getPropertyValue("animation-name");return!(e.getPropertyValue("display")==="none")&&o&&o!=="none"}_enqueueAnimation(e,o){const i=`__${e}Handler`,r=n=>{n&&n.target!==this||(o(),this.removeEventListener("animationend",r),delete this[i])};this[i]=r,this.addEventListener("animationend",r)}_flushAnimation(e){const o=`__${e}Handler`;typeof this[o]=="function"&&this[o]()}_animatedOpening(){this.parentNode===document.body&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this.modeless||this._enterModalState(),this.setAttribute("opening",""),this._shouldAnimate()?this._enqueueAnimation("opening",()=>{this._finishOpening()}):this._finishOpening()}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront()}_finishOpening(){this.removeAttribute("opening")}_finishClosing(){this._detachOverlay(),this.$.overlay.style.removeProperty("pointer-events"),this.removeAttribute("closing"),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"))}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.setAttribute("closing",""),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",()=>{this._finishClosing()}):this._finishClosing())}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder)}_mouseDownListener(e){this._mouseDownInside=e.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(e){this._mouseUpInside=e.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(e){return this._last}_outsideClickListener(e){if(e.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=!1,this._mouseUpInside=!1;return}if(!this._shouldCloseOnOutsideClick(e))return;const o=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(o),this.opened&&!o.defaultPrevented&&this.close(e)}_keydownListener(e){if(this._last&&!(this.modeless&&!e.composedPath().includes(this.$.overlay))&&e.key==="Escape"){const o=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(o),this.opened&&!o.defaultPrevented&&this.close(e)}}};/**
2995
+ */const Xl=i=>class extends Kl(Jl(i)){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),Ks&&(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(e){const o=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(o),o.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const e=window.innerHeight,s=window.innerWidth>e,r=document.documentElement.clientHeight;s&&r>e?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${r-e}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(e,o,s,r){const n=this._oldOwner!==o||this._oldModel!==s;this._oldModel=s,this._oldOwner=o;const a=this._oldRenderer!==e;this._oldRenderer=e;const l=this._oldOpened!==r;this._oldOpened=r,a&&(this.innerHTML="",delete this._$litPart$),r&&e&&(a||l||n)&&this.requestContentUpdate()}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(e,o){e?(this._saveFocus(),this._animatedOpening(),qs(this,()=>{this._trapFocus();const s=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(s)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):o&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(e){e&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const e=getComputedStyle(this),o=e.getPropertyValue("animation-name");return!(e.getPropertyValue("display")==="none")&&o&&o!=="none"}_enqueueAnimation(e,o){const s=`__${e}Handler`,r=n=>{n&&n.target!==this||(o(),this.removeEventListener("animationend",r),delete this[s])};this[s]=r,this.addEventListener("animationend",r)}_flushAnimation(e){const o=`__${e}Handler`;typeof this[o]=="function"&&this[o]()}_animatedOpening(){this.parentNode===document.body&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this.modeless||this._enterModalState(),this.setAttribute("opening",""),this._shouldAnimate()?this._enqueueAnimation("opening",()=>{this._finishOpening()}):this._finishOpening()}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront()}_finishOpening(){this.removeAttribute("opening")}_finishClosing(){this._detachOverlay(),this.$.overlay.style.removeProperty("pointer-events"),this.removeAttribute("closing"),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"))}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.setAttribute("closing",""),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",()=>{this._finishClosing()}):this._finishClosing())}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder)}_mouseDownListener(e){this._mouseDownInside=e.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(e){this._mouseUpInside=e.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(e){return this._last}_outsideClickListener(e){if(e.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=!1,this._mouseUpInside=!1;return}if(!this._shouldCloseOnOutsideClick(e))return;const o=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(o),this.opened&&!o.defaultPrevented&&this.close(e)}_keydownListener(e){if(this._last&&!(this.modeless&&!e.composedPath().includes(this.$.overlay))&&e.key==="Escape"){const o=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(o),this.opened&&!o.defaultPrevented&&this.close(e)}}};/**
2996
2996
  * @license
2997
2997
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
2998
2998
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2999
- */const Zt={start:"top",end:"bottom"},Qt={start:"left",end:"right"},$s=new ResizeObserver(s=>{setTimeout(()=>{s.forEach(t=>{t.target.__overlay&&t.target.__overlay._updatePosition()})})}),Zl=s=>class extends s{static get properties(){return{positionTarget:{type:Object,value:null},horizontalAlign:{type:String,value:"start"},verticalAlign:{type:String,value:"top"},noHorizontalOverlap:{type:Boolean,value:!1},noVerticalOverlap:{type:Boolean,value:!1},requiredVerticalSpace:{type:Number,value: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.addEventListener("resize",this._updatePosition),this.__positionTargetAncestorRootNodes=Ja(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0)})}__removeUpdatePositionEventListeners(){window.removeEventListener("resize",this._updatePosition),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(e=>{e.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null)}__overlayOpenedChanged(e,o){if(this.__removeUpdatePositionEventListeners(),o&&(o.__overlay=null,$s.unobserve(o),e&&(this.__addUpdatePositionEventListeners(),o.__overlay=this,$s.observe(o))),e){const i=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(r=>{this.__margins[r]=parseInt(i[r],10)})),this.setAttribute("dir",i.direction),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__positionSettingsChanged(){this._updatePosition()}__onScroll(e){this.contains(e.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened)return;const e=this.positionTarget.getBoundingClientRect(),o=this.__shouldAlignStartVertically(e);this.style.justifyContent=o?"flex-start":"flex-end";const i=this.__isRTL,r=this.__shouldAlignStartHorizontally(e,i),n=!i&&r||i&&!r;this.style.alignItems=n?"flex-start":"flex-end";const a=this.getBoundingClientRect(),l=this.__calculatePositionInOneDimension(e,a,this.noVerticalOverlap,Zt,this,o),c=this.__calculatePositionInOneDimension(e,a,this.noHorizontalOverlap,Qt,this,r);Object.assign(this.style,l,c),this.toggleAttribute("bottom-aligned",!o),this.toggleAttribute("top-aligned",o),this.toggleAttribute("end-aligned",!n),this.toggleAttribute("start-aligned",n)}__shouldAlignStartHorizontally(e,o){const i=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const r=Math.min(window.innerWidth,document.documentElement.clientWidth),n=!o&&this.horizontalAlign==="start"||o&&this.horizontalAlign==="end";return this.__shouldAlignStart(e,i,r,this.__margins,n,this.noHorizontalOverlap,Qt)}__shouldAlignStartVertically(e){const o=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const i=Math.min(window.innerHeight,document.documentElement.clientHeight),r=this.verticalAlign==="top";return this.__shouldAlignStart(e,o,i,this.__margins,r,this.noVerticalOverlap,Zt)}__shouldAlignStart(e,o,i,r,n,a,l){const c=i-e[a?l.end:l.start]-r[l.end],d=e[a?l.start:l.end]-r[l.start],h=n?c:d,m=h>(n?d:c)||h>o;return n===m}__adjustBottomProperty(e,o,i){let r;if(e===o.end){if(o.end===Zt.end){const n=Math.min(window.innerHeight,document.documentElement.clientHeight);if(i>n&&this.__oldViewportHeight){const a=this.__oldViewportHeight-n;r=i-a}this.__oldViewportHeight=n}if(o.end===Qt.end){const n=Math.min(window.innerWidth,document.documentElement.clientWidth);if(i>n&&this.__oldViewportWidth){const a=this.__oldViewportWidth-n;r=i-a}this.__oldViewportWidth=n}}return r}__calculatePositionInOneDimension(e,o,i,r,n,a){const l=a?r.start:r.end,c=a?r.end:r.start,d=parseFloat(n.style[l]||getComputedStyle(n)[l]),h=this.__adjustBottomProperty(l,r,d),p=o[a?r.start:r.end]-e[i===a?r.end:r.start],m=h?`${h}px`:`${d+p*(a?-1:1)}px`;return{[l]:m,[c]:""}}};/**
2999
+ */const Zt={start:"top",end:"bottom"},Qt={start:"left",end:"right"},$i=new ResizeObserver(i=>{setTimeout(()=>{i.forEach(t=>{t.target.__overlay&&t.target.__overlay._updatePosition()})})}),Zl=i=>class extends i{static get properties(){return{positionTarget:{type:Object,value:null},horizontalAlign:{type:String,value:"start"},verticalAlign:{type:String,value:"top"},noHorizontalOverlap:{type:Boolean,value:!1},noVerticalOverlap:{type:Boolean,value:!1},requiredVerticalSpace:{type:Number,value: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.addEventListener("resize",this._updatePosition),this.__positionTargetAncestorRootNodes=Ja(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0)})}__removeUpdatePositionEventListeners(){window.removeEventListener("resize",this._updatePosition),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(e=>{e.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null)}__overlayOpenedChanged(e,o){if(this.__removeUpdatePositionEventListeners(),o&&(o.__overlay=null,$i.unobserve(o),e&&(this.__addUpdatePositionEventListeners(),o.__overlay=this,$i.observe(o))),e){const s=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(r=>{this.__margins[r]=parseInt(s[r],10)})),this.setAttribute("dir",s.direction),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__positionSettingsChanged(){this._updatePosition()}__onScroll(e){this.contains(e.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened)return;const e=this.positionTarget.getBoundingClientRect(),o=this.__shouldAlignStartVertically(e);this.style.justifyContent=o?"flex-start":"flex-end";const s=this.__isRTL,r=this.__shouldAlignStartHorizontally(e,s),n=!s&&r||s&&!r;this.style.alignItems=n?"flex-start":"flex-end";const a=this.getBoundingClientRect(),l=this.__calculatePositionInOneDimension(e,a,this.noVerticalOverlap,Zt,this,o),c=this.__calculatePositionInOneDimension(e,a,this.noHorizontalOverlap,Qt,this,r);Object.assign(this.style,l,c),this.toggleAttribute("bottom-aligned",!o),this.toggleAttribute("top-aligned",o),this.toggleAttribute("end-aligned",!n),this.toggleAttribute("start-aligned",n)}__shouldAlignStartHorizontally(e,o){const s=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const r=Math.min(window.innerWidth,document.documentElement.clientWidth),n=!o&&this.horizontalAlign==="start"||o&&this.horizontalAlign==="end";return this.__shouldAlignStart(e,s,r,this.__margins,n,this.noHorizontalOverlap,Qt)}__shouldAlignStartVertically(e){const o=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const s=Math.min(window.innerHeight,document.documentElement.clientHeight),r=this.verticalAlign==="top";return this.__shouldAlignStart(e,o,s,this.__margins,r,this.noVerticalOverlap,Zt)}__shouldAlignStart(e,o,s,r,n,a,l){const c=s-e[a?l.end:l.start]-r[l.end],d=e[a?l.start:l.end]-r[l.start],h=n?c:d,m=h>(n?d:c)||h>o;return n===m}__adjustBottomProperty(e,o,s){let r;if(e===o.end){if(o.end===Zt.end){const n=Math.min(window.innerHeight,document.documentElement.clientHeight);if(s>n&&this.__oldViewportHeight){const a=this.__oldViewportHeight-n;r=s-a}this.__oldViewportHeight=n}if(o.end===Qt.end){const n=Math.min(window.innerWidth,document.documentElement.clientWidth);if(s>n&&this.__oldViewportWidth){const a=this.__oldViewportWidth-n;r=s-a}this.__oldViewportWidth=n}}return r}__calculatePositionInOneDimension(e,o,s,r,n,a){const l=a?r.start:r.end,c=a?r.end:r.start,d=parseFloat(n.style[l]||getComputedStyle(n)[l]),h=this.__adjustBottomProperty(l,r,d),p=o[a?r.start:r.end]-e[s===a?r.end:r.start],m=h?`${h}px`:`${d+p*(a?-1:1)}px`;return{[l]:m,[c]:""}}};/**
3000
3000
  * @license
3001
3001
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
3002
3002
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3081,22 +3081,22 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3081
3081
  * @license
3082
3082
  * Copyright (c) 2016 - 2023 Vaadin Ltd.
3083
3083
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3084
- */F("vaadin-date-picker-overlay",[Ql,ec],{moduleId:"vaadin-date-picker-overlay-styles"});class tc extends Zl(Xl(Dt(Pe(ve)))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return De`
3084
+ */F("vaadin-date-picker-overlay",[Ql,ec],{moduleId:"vaadin-date-picker-overlay-styles"});class tc extends Zl(Xl(Dt(ke(ye)))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return De`
3085
3085
  <div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
3086
3086
  <div part="overlay" id="overlay">
3087
3087
  <div part="content" id="content">
3088
3088
  <slot></slot>
3089
3089
  </div>
3090
3090
  </div>
3091
- `}}ie(tc);/**
3091
+ `}}se(tc);/**
3092
3092
  * @license
3093
3093
  * Copyright (c) 2016 - 2023 Vaadin Ltd.
3094
3094
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3095
- */function oc(s){let t=s.getDay();t===0&&(t=7);const e=4-t,o=new Date(s.getTime()+e*24*3600*1e3),i=new Date(0,0);i.setFullYear(o.getFullYear());const r=o.getTime()-i.getTime(),n=Math.round(r/(24*3600*1e3));return Math.floor(n/7+1)}function fe(s,t){return s instanceof Date&&t instanceof Date&&s.getFullYear()===t.getFullYear()&&s.getMonth()===t.getMonth()&&s.getDate()===t.getDate()}function it(s,t,e){return(!t||s>=t)&&(!e||s<=e)}function Ji(s,t){return t.filter(e=>e!==void 0).reduce((e,o)=>{if(!o)return e;if(!e)return o;const i=Math.abs(s.getTime()-o.getTime()),r=Math.abs(e.getTime()-s.getTime());return i<r?o:e})}function Xi(s){return{day:s.getDate(),month:s.getMonth(),year:s.getFullYear()}}function Zi(s){const t=new Date,e=new Date(t);return e.setDate(1),e.setMonth(parseInt(s)+t.getMonth()),e}function sc(s,t,e=0,o=1){if(t>99)throw new Error("The provided year cannot have more than 2 digits.");if(t<0)throw new Error("The provided year cannot be negative.");let i=t+Math.floor(s.getFullYear()/100)*100;return s<new Date(i-50,e,o)?i-=100:s>new Date(i+50,e,o)&&(i+=100),i}function Ue(s){const t=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(s);if(!t)return;const e=new Date(0,0);return e.setFullYear(parseInt(t[1],10)),e.setMonth(parseInt(t[2],10)-1),e.setDate(parseInt(t[3],10)),e}/**
3095
+ */function oc(i){let t=i.getDay();t===0&&(t=7);const e=4-t,o=new Date(i.getTime()+e*24*3600*1e3),s=new Date(0,0);s.setFullYear(o.getFullYear());const r=o.getTime()-s.getTime(),n=Math.round(r/(24*3600*1e3));return Math.floor(n/7+1)}function fe(i,t){return i instanceof Date&&t instanceof Date&&i.getFullYear()===t.getFullYear()&&i.getMonth()===t.getMonth()&&i.getDate()===t.getDate()}function st(i,t,e){return(!t||i>=t)&&(!e||i<=e)}function Js(i,t){return t.filter(e=>e!==void 0).reduce((e,o)=>{if(!o)return e;if(!e)return o;const s=Math.abs(i.getTime()-o.getTime()),r=Math.abs(e.getTime()-i.getTime());return s<r?o:e})}function Xs(i){return{day:i.getDate(),month:i.getMonth(),year:i.getFullYear()}}function Zs(i){const t=new Date,e=new Date(t);return e.setDate(1),e.setMonth(parseInt(i)+t.getMonth()),e}function ic(i,t,e=0,o=1){if(t>99)throw new Error("The provided year cannot have more than 2 digits.");if(t<0)throw new Error("The provided year cannot be negative.");let s=t+Math.floor(i.getFullYear()/100)*100;return i<new Date(s-50,e,o)?s-=100:i>new Date(s+50,e,o)&&(s+=100),s}function Ue(i){const t=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(i);if(!t)return;const e=new Date(0,0);return e.setFullYear(parseInt(t[1],10)),e.setMonth(parseInt(t[2],10)-1),e.setDate(parseInt(t[3],10)),e}/**
3096
3096
  * @license
3097
3097
  * Copyright (c) 2016 - 2023 Vaadin Ltd.
3098
3098
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3099
- */const Qi=document.createElement("template");Qi.innerHTML=`
3099
+ */const Qs=document.createElement("template");Qs.innerHTML=`
3100
3100
  <style>
3101
3101
  :host {
3102
3102
  display: block;
@@ -3146,7 +3146,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3146
3146
  <div class="buffer"></div>
3147
3147
  <div id="fullHeight"></div>
3148
3148
  </div>
3149
- `;class er extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(Qi.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1}get active(){return this._activated}set active(t){t&&!this._activated&&(this._createPool(),this._activated=!0)}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const t=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),e="background-position";this.$.fullHeight.style.setProperty(e,t);const o=getComputedStyle(this.$.fullHeight).getPropertyValue(e);this.$.fullHeight.style.removeProperty(e),this._itemHeightVal=parseFloat(o)}return this._itemHeightVal}get _bufferHeight(){return this.itemHeight*this.bufferSize}get position(){return(this.$.scroller.scrollTop-this._buffers[0].translateY)/this.itemHeight+this._firstIndex}set position(t){this._preventScrollEvent=!0,t>this._firstIndex&&t<this._firstIndex+this.bufferSize*2?this.$.scroller.scrollTop=this.itemHeight*(t-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~t,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=t%1*this.itemHeight,this._scrollDisabled=!1),this._mayHaveMomentum&&(this.$.scroller.classList.add("notouchscroll"),this._mayHaveMomentum=!1,setTimeout(()=>{this.$.scroller.classList.remove("notouchscroll")},10))}connectedCallback(){this._ready||(this._ready=!0,this.$={},this.shadowRoot.querySelectorAll("[id]").forEach(t=>{this.$[t.id]=t}),this.$.scroller.addEventListener("scroll",()=>this._scroll()),this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")],this.$.fullHeight.style.height=`${this._initialScroll*2}px`,Rl&&(this.$.scroller.tabIndex=-1))}forceUpdate(){this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel())}_createElement(){}_updateElement(t,e){}_finishInit(){this._initDone||(this._buffers.forEach(t=>{[...t.children].forEach(e=>{this._ensureStampedInstance(e._itemWrapper)})}),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(t){const e=t?1:0;this._buffers[e].translateY=this._buffers[e?0:1].translateY+this._bufferHeight*(e?-1:1),this._buffers[e].style.transform=`translate3d(0, ${this._buffers[e].translateY}px, 0)`,this._buffers[e].updated=!1,this._buffers.reverse()}_scroll(){if(this._scrollDisabled)return;const t=this.$.scroller.scrollTop;(t<this._bufferHeight||t>this._initialScroll*2-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const e=this.itemHeight+this.bufferOffset,o=t>this._buffers[1].translateY+e,i=t<this._buffers[0].translateY+e;(o||i)&&(this._translateBuffer(i),this._updateClones()),this._preventScrollEvent||(this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:!1,composed:!0})),this._mayHaveMomentum=!0),this._preventScrollEvent=!1,this._debouncerScrollFinish=st.debounce(this._debouncerScrollFinish,Et.after(200),()=>{const r=this.$.scroller.getBoundingClientRect();!this._isVisible(this._buffers[0],r)&&!this._isVisible(this._buffers[1],r)&&(this.position=this.position)})}_reset(){this._scrollDisabled=!0,this.$.scroller.scrollTop=this._initialScroll,this._buffers[0].translateY=this._initialScroll-this._bufferHeight,this._buffers[1].translateY=this._initialScroll,this._buffers.forEach(t=>{t.style.transform=`translate3d(0, ${t.translateY}px, 0)`}),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=st.debounce(this._debouncerUpdateClones,Et.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()}),this._scrollDisabled=!1}_createPool(){const t=this.getBoundingClientRect();this._buffers.forEach(e=>{for(let o=0;o<this.bufferSize;o++){const i=document.createElement("div");i.style.height=`${this.itemHeight}px`,i.instance={};const r=`vaadin-infinite-scroller-item-content-${Oi()}`,n=document.createElement("slot");n.setAttribute("name",r),n._itemWrapper=i,e.appendChild(n),i.setAttribute("slot",r),this.appendChild(i),this._isVisible(i,t)&&this._ensureStampedInstance(i)}}),requestAnimationFrame(()=>{this._finishInit()})}_ensureStampedInstance(t){if(t.firstElementChild)return;const e=t.instance;t.instance=this._createElement(),t.appendChild(t.instance),Object.keys(e).forEach(o=>{t.instance[o]=e[o]})}_updateClones(t){this._firstIndex=~~((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const e=t?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((o,i)=>{if(!o.updated){const r=this._firstIndex+this.bufferSize*i;[...o.children].forEach((n,a)=>{const l=n._itemWrapper;(!t||this._isVisible(l,e))&&this._updateElement(l.instance,r+a)}),o.updated=!0}})}_isVisible(t,e){const o=t.getBoundingClientRect();return o.bottom>e.top&&o.top<e.bottom}}/**
3149
+ `;class er extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(Qs.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1}get active(){return this._activated}set active(t){t&&!this._activated&&(this._createPool(),this._activated=!0)}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const t=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),e="background-position";this.$.fullHeight.style.setProperty(e,t);const o=getComputedStyle(this.$.fullHeight).getPropertyValue(e);this.$.fullHeight.style.removeProperty(e),this._itemHeightVal=parseFloat(o)}return this._itemHeightVal}get _bufferHeight(){return this.itemHeight*this.bufferSize}get position(){return(this.$.scroller.scrollTop-this._buffers[0].translateY)/this.itemHeight+this._firstIndex}set position(t){this._preventScrollEvent=!0,t>this._firstIndex&&t<this._firstIndex+this.bufferSize*2?this.$.scroller.scrollTop=this.itemHeight*(t-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~t,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=t%1*this.itemHeight,this._scrollDisabled=!1),this._mayHaveMomentum&&(this.$.scroller.classList.add("notouchscroll"),this._mayHaveMomentum=!1,setTimeout(()=>{this.$.scroller.classList.remove("notouchscroll")},10))}connectedCallback(){this._ready||(this._ready=!0,this.$={},this.shadowRoot.querySelectorAll("[id]").forEach(t=>{this.$[t.id]=t}),this.$.scroller.addEventListener("scroll",()=>this._scroll()),this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")],this.$.fullHeight.style.height=`${this._initialScroll*2}px`,Rl&&(this.$.scroller.tabIndex=-1))}forceUpdate(){this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel())}_createElement(){}_updateElement(t,e){}_finishInit(){this._initDone||(this._buffers.forEach(t=>{[...t.children].forEach(e=>{this._ensureStampedInstance(e._itemWrapper)})}),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(t){const e=t?1:0;this._buffers[e].translateY=this._buffers[e?0:1].translateY+this._bufferHeight*(e?-1:1),this._buffers[e].style.transform=`translate3d(0, ${this._buffers[e].translateY}px, 0)`,this._buffers[e].updated=!1,this._buffers.reverse()}_scroll(){if(this._scrollDisabled)return;const t=this.$.scroller.scrollTop;(t<this._bufferHeight||t>this._initialScroll*2-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const e=this.itemHeight+this.bufferOffset,o=t>this._buffers[1].translateY+e,s=t<this._buffers[0].translateY+e;(o||s)&&(this._translateBuffer(s),this._updateClones()),this._preventScrollEvent||(this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:!1,composed:!0})),this._mayHaveMomentum=!0),this._preventScrollEvent=!1,this._debouncerScrollFinish=it.debounce(this._debouncerScrollFinish,Et.after(200),()=>{const r=this.$.scroller.getBoundingClientRect();!this._isVisible(this._buffers[0],r)&&!this._isVisible(this._buffers[1],r)&&(this.position=this.position)})}_reset(){this._scrollDisabled=!0,this.$.scroller.scrollTop=this._initialScroll,this._buffers[0].translateY=this._initialScroll-this._bufferHeight,this._buffers[1].translateY=this._initialScroll,this._buffers.forEach(t=>{t.style.transform=`translate3d(0, ${t.translateY}px, 0)`}),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=it.debounce(this._debouncerUpdateClones,Et.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()}),this._scrollDisabled=!1}_createPool(){const t=this.getBoundingClientRect();this._buffers.forEach(e=>{for(let o=0;o<this.bufferSize;o++){const s=document.createElement("div");s.style.height=`${this.itemHeight}px`,s.instance={};const r=`vaadin-infinite-scroller-item-content-${Os()}`,n=document.createElement("slot");n.setAttribute("name",r),n._itemWrapper=s,e.appendChild(n),s.setAttribute("slot",r),this.appendChild(s),this._isVisible(s,t)&&this._ensureStampedInstance(s)}}),requestAnimationFrame(()=>{this._finishInit()})}_ensureStampedInstance(t){if(t.firstElementChild)return;const e=t.instance;t.instance=this._createElement(),t.appendChild(t.instance),Object.keys(e).forEach(o=>{t.instance[o]=e[o]})}_updateClones(t){this._firstIndex=~~((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const e=t?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((o,s)=>{if(!o.updated){const r=this._firstIndex+this.bufferSize*s;[...o.children].forEach((n,a)=>{const l=n._itemWrapper;(!t||this._isVisible(l,e))&&this._updateElement(l.instance,r+a)}),o.updated=!0}})}_isVisible(t,e){const o=t.getBoundingClientRect();return o.bottom>e.top&&o.top<e.bottom}}/**
3150
3150
  * @license
3151
3151
  * Copyright (c) 2016 - 2023 Vaadin Ltd.
3152
3152
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3162,7 +3162,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3162
3162
  height: 100%;
3163
3163
  }
3164
3164
  </style>
3165
- `;class ic extends er{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(tr.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(t,e){t.month=Zi(e)}}ie(ic);/**
3165
+ `;class sc extends er{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(tr.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(t,e){t.month=Zs(e)}}se(sc);/**
3166
3166
  * @license
3167
3167
  * Copyright (c) 2016 - 2023 Vaadin Ltd.
3168
3168
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3200,11 +3200,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3200
3200
  border-left-color: #000;
3201
3201
  }
3202
3202
  </style>
3203
- `;class rc extends er{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(or.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(t,e){t.year=this._yearAfterXYears(e)}_yearAfterXYears(t){const e=new Date,o=new Date(e);return o.setFullYear(parseInt(t)+e.getFullYear()),o.getFullYear()}}ie(rc);/**
3203
+ `;class rc extends er{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(or.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(t,e){t.year=this._yearAfterXYears(e)}_yearAfterXYears(t){const e=new Date,o=new Date(e);return o.setFullYear(parseInt(t)+e.getFullYear()),o.getFullYear()}}se(rc);/**
3204
3204
  * @license
3205
3205
  * Copyright (c) 2016 - 2023 Vaadin Ltd.
3206
3206
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3207
- */class nc extends Pe(ve){static get is(){return"vaadin-date-picker-year"}static get template(){return De`
3207
+ */class nc extends ke(ye){static get is(){return"vaadin-date-picker-year"}static get template(){return De`
3208
3208
  <style>
3209
3209
  :host {
3210
3210
  display: block;
@@ -3213,7 +3213,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3213
3213
  </style>
3214
3214
  <div part="year-number">[[year]]</div>
3215
3215
  <div part="year-separator" aria-hidden="true"></div>
3216
- `}static get properties(){return{year:{type:String},selectedDate:{type:Object}}}static get observers(){return["__updateSelected(year, selectedDate)"]}__updateSelected(t,e){this.toggleAttribute("selected",e&&e.getFullYear()===t),this.toggleAttribute("current",t===new Date().getFullYear())}}ie(nc);/**
3216
+ `}static get properties(){return{year:{type:String},selectedDate:{type:Object}}}static get observers(){return["__updateSelected(year, selectedDate)"]}__updateSelected(t,e){this.toggleAttribute("selected",e&&e.getFullYear()===t),this.toggleAttribute("current",t===new Date().getFullYear())}}se(nc);/**
3217
3217
  @license
3218
3218
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3219
3219
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3221,7 +3221,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3221
3221
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3222
3222
  Code distributed by Google as part of the polymer project is also
3223
3223
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3224
- */function Yo(s,t,e,o,i){let r;i&&(r=typeof e=="object"&&e!==null,r&&(o=s.__dataTemp[t]));let n=o!==e&&(o===o||e===e);return r&&n&&(s.__dataTemp[t]=e),n}const Vo=Y(s=>{class t extends s{_shouldPropertyChange(o,i,r){return Yo(this,o,i,r,!0)}}return t}),ac=Y(s=>{class t extends s{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(o,i,r){return Yo(this,o,i,r,this.mutableData)}}return t});Vo._mutablePropertyChange=Yo;/**
3224
+ */function Yo(i,t,e,o,s){let r;s&&(r=typeof e=="object"&&e!==null,r&&(o=i.__dataTemp[t]));let n=o!==e&&(o===o||e===e);return r&&n&&(i.__dataTemp[t]=e),n}const Vo=Y(i=>{class t extends i{_shouldPropertyChange(o,s,r){return Yo(this,o,s,r,!0)}}return t}),ac=Y(i=>{class t extends i{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(o,s,r){return Yo(this,o,s,r,this.mutableData)}}return t});Vo._mutablePropertyChange=Yo;/**
3225
3225
  @license
3226
3226
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3227
3227
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3229,7 +3229,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3229
3229
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3230
3230
  Code distributed by Google as part of the polymer project is also
3231
3231
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3232
- */let Eo=null;function So(){return Eo}So.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:So,writable:!0}});const sr=zo(So),lc=Vo(sr);function cc(s,t){Eo=s,Object.setPrototypeOf(s,t.prototype),new t,Eo=null}const uc=zo(class{});function dc(s,t){for(let e=0;e<t.length;e++){let o=t[e];if(!!s!=!!o.__hideTemplateChildren__)if(o.nodeType===Node.TEXT_NODE)s?(o.__polymerTextContent__=o.textContent,o.textContent=""):o.textContent=o.__polymerTextContent__;else if(o.localName==="slot")if(s)o.__polymerReplaced__=document.createComment("hidden-slot"),K(K(o).parentNode).replaceChild(o.__polymerReplaced__,o);else{const i=o.__polymerReplaced__;i&&K(K(i).parentNode).replaceChild(o,i)}else o.style&&(s?(o.__polymerDisplay__=o.style.display,o.style.display="none"):o.style.display=o.__polymerDisplay__);o.__hideTemplateChildren__=s,o._showHideChildren&&o._showHideChildren(s)}}class ye extends uc{constructor(t){super(),this._configureProperties(t),this.root=this._stampTemplate(this.__dataHost);let e=[];this.children=e;for(let i=this.root.firstChild;i;i=i.nextSibling)e.push(i),i.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let o=this.__templatizeOptions;(t&&o.instanceProps||!o.instanceProps)&&this._enableProperties()}_configureProperties(t){if(this.__templatizeOptions.forwardHostProp)for(let o in this.__hostProps)this._setPendingProperty(o,this.__dataHost["_host_"+o]);for(let o in t)this._setPendingProperty(o,t[o])}forwardHostProp(t,e){this._setPendingPropertyOrPath(t,e,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(t,e,o){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(t,e,i=>{i.model=this,o(i)});else{let i=this.__dataHost.__dataHost;i&&i._addEventListenerToNode(t,e,o)}}_showHideChildren(t){dc(t,this.children)}_setUnmanagedPropertyToNode(t,e,o){t.__hideTemplateChildren__&&t.nodeType==Node.TEXT_NODE&&e=="textContent"?t.__polymerTextContent__=o:super._setUnmanagedPropertyToNode(t,e,o)}get parentModel(){let t=this.__parentModel;if(!t){let e;t=this;do t=t.__dataHost.__dataHost;while((e=t.__templatizeOptions)&&!e.parentModel);this.__parentModel=t}return t}dispatchEvent(t){return!0}}ye.prototype.__dataHost;ye.prototype.__templatizeOptions;ye.prototype._methodHost;ye.prototype.__templatizeOwner;ye.prototype.__hostProps;const hc=Vo(ye);function Rs(s){let t=s.__dataHost;return t&&t._methodHost||t}function pc(s,t,e){let o=e.mutableData?hc:ye;Co.mixin&&(o=Co.mixin(o));let i=class extends o{};return i.prototype.__templatizeOptions=e,i.prototype._bindTemplate(s),_c(i,s,t,e),i}function mc(s,t,e,o){let i=e.forwardHostProp;if(i&&t.hasHostProps){const r=s.localName=="template";let n=t.templatizeTemplateClass;if(!n){if(r){let l=e.mutableData?lc:sr;class c extends l{}n=t.templatizeTemplateClass=c}else{const l=s.constructor;class c extends l{}n=t.templatizeTemplateClass=c}let a=t.hostProps;for(let l in a)n.prototype._addPropertyEffect("_host_"+l,n.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:fc(l,i)}),n.prototype._createNotifyingProperty("_host_"+l);oi&&o&&yc(t,e,o)}if(s.__dataProto&&Object.assign(s.__data,s.__dataProto),r)cc(s,n),s.__dataTemp={},s.__dataPending=null,s.__dataOld=null,s._enableProperties();else{Object.setPrototypeOf(s,n.prototype);const a=t.hostProps;for(let l in a)if(l="_host_"+l,l in s){const c=s[l];delete s[l],s.__data[l]=c}}}}function fc(s,t){return function(o,i,r){t.call(o.__templatizeOwner,i.substring(6),r[i])}}function _c(s,t,e,o){let i=e.hostProps||{};for(let r in o.instanceProps){delete i[r];let n=o.notifyInstanceProp;n&&s.prototype._addPropertyEffect(r,s.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:gc(r,n)})}if(o.forwardHostProp&&t.__dataHost)for(let r in i)e.hasHostProps||(e.hasHostProps=!0),s.prototype._addPropertyEffect(r,s.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:vc()})}function gc(s,t){return function(o,i,r){t.call(o.__templatizeOwner,o,i,r[i])}}function vc(){return function(t,e,o){t.__dataHost._setPendingPropertyOrPath("_host_"+e,o[e],!0,!0)}}function Co(s,t,e){if(xt&&!Rs(s))throw new Error("strictTemplatePolicy: template owner not trusted");if(e=e||{},s.__templatizeOwner)throw new Error("A <template> can only be templatized once");s.__templatizeOwner=t;let i=(t?t.constructor:ye)._parseTemplate(s),r=i.templatizeInstanceClass;r||(r=pc(s,i,e),i.templatizeInstanceClass=r);const n=Rs(s);mc(s,i,e,n);let a=class extends r{};return a.prototype._methodHost=n,a.prototype.__dataHost=s,a.prototype.__templatizeOwner=t,a.prototype.__hostProps=i.hostProps,a=a,a}function yc(s,t,e){const o=e.constructor._properties,{propertyEffects:i}=s,{instanceProps:r}=t;for(let n in i)if(!o[n]&&!(r&&r[n])){const a=i[n];for(let l=0;l<a.length;l++){const{part:c}=a[l].info;if(!(c.signature&&c.signature.static)){console.warn(`Property '${n}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}function bc(s,t){let e;for(;t;)if(e=t.__dataHost?t:t.__templatizeInstance)if(e.__dataHost!=s)t=e.__dataHost;else return e;else t=K(t).parentNode;return null}/**
3232
+ */let Eo=null;function So(){return Eo}So.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:So,writable:!0}});const ir=zo(So),lc=Vo(ir);function cc(i,t){Eo=i,Object.setPrototypeOf(i,t.prototype),new t,Eo=null}const uc=zo(class{});function dc(i,t){for(let e=0;e<t.length;e++){let o=t[e];if(!!i!=!!o.__hideTemplateChildren__)if(o.nodeType===Node.TEXT_NODE)i?(o.__polymerTextContent__=o.textContent,o.textContent=""):o.textContent=o.__polymerTextContent__;else if(o.localName==="slot")if(i)o.__polymerReplaced__=document.createComment("hidden-slot"),K(K(o).parentNode).replaceChild(o.__polymerReplaced__,o);else{const s=o.__polymerReplaced__;s&&K(K(s).parentNode).replaceChild(o,s)}else o.style&&(i?(o.__polymerDisplay__=o.style.display,o.style.display="none"):o.style.display=o.__polymerDisplay__);o.__hideTemplateChildren__=i,o._showHideChildren&&o._showHideChildren(i)}}class ve extends uc{constructor(t){super(),this._configureProperties(t),this.root=this._stampTemplate(this.__dataHost);let e=[];this.children=e;for(let s=this.root.firstChild;s;s=s.nextSibling)e.push(s),s.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let o=this.__templatizeOptions;(t&&o.instanceProps||!o.instanceProps)&&this._enableProperties()}_configureProperties(t){if(this.__templatizeOptions.forwardHostProp)for(let o in this.__hostProps)this._setPendingProperty(o,this.__dataHost["_host_"+o]);for(let o in t)this._setPendingProperty(o,t[o])}forwardHostProp(t,e){this._setPendingPropertyOrPath(t,e,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(t,e,o){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(t,e,s=>{s.model=this,o(s)});else{let s=this.__dataHost.__dataHost;s&&s._addEventListenerToNode(t,e,o)}}_showHideChildren(t){dc(t,this.children)}_setUnmanagedPropertyToNode(t,e,o){t.__hideTemplateChildren__&&t.nodeType==Node.TEXT_NODE&&e=="textContent"?t.__polymerTextContent__=o:super._setUnmanagedPropertyToNode(t,e,o)}get parentModel(){let t=this.__parentModel;if(!t){let e;t=this;do t=t.__dataHost.__dataHost;while((e=t.__templatizeOptions)&&!e.parentModel);this.__parentModel=t}return t}dispatchEvent(t){return!0}}ve.prototype.__dataHost;ve.prototype.__templatizeOptions;ve.prototype._methodHost;ve.prototype.__templatizeOwner;ve.prototype.__hostProps;const hc=Vo(ve);function Ri(i){let t=i.__dataHost;return t&&t._methodHost||t}function pc(i,t,e){let o=e.mutableData?hc:ve;Co.mixin&&(o=Co.mixin(o));let s=class extends o{};return s.prototype.__templatizeOptions=e,s.prototype._bindTemplate(i),_c(s,i,t,e),s}function mc(i,t,e,o){let s=e.forwardHostProp;if(s&&t.hasHostProps){const r=i.localName=="template";let n=t.templatizeTemplateClass;if(!n){if(r){let l=e.mutableData?lc:ir;class c extends l{}n=t.templatizeTemplateClass=c}else{const l=i.constructor;class c extends l{}n=t.templatizeTemplateClass=c}let a=t.hostProps;for(let l in a)n.prototype._addPropertyEffect("_host_"+l,n.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:fc(l,s)}),n.prototype._createNotifyingProperty("_host_"+l);os&&o&&vc(t,e,o)}if(i.__dataProto&&Object.assign(i.__data,i.__dataProto),r)cc(i,n),i.__dataTemp={},i.__dataPending=null,i.__dataOld=null,i._enableProperties();else{Object.setPrototypeOf(i,n.prototype);const a=t.hostProps;for(let l in a)if(l="_host_"+l,l in i){const c=i[l];delete i[l],i.__data[l]=c}}}}function fc(i,t){return function(o,s,r){t.call(o.__templatizeOwner,s.substring(6),r[s])}}function _c(i,t,e,o){let s=e.hostProps||{};for(let r in o.instanceProps){delete s[r];let n=o.notifyInstanceProp;n&&i.prototype._addPropertyEffect(r,i.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:gc(r,n)})}if(o.forwardHostProp&&t.__dataHost)for(let r in s)e.hasHostProps||(e.hasHostProps=!0),i.prototype._addPropertyEffect(r,i.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:yc()})}function gc(i,t){return function(o,s,r){t.call(o.__templatizeOwner,o,s,r[s])}}function yc(){return function(t,e,o){t.__dataHost._setPendingPropertyOrPath("_host_"+e,o[e],!0,!0)}}function Co(i,t,e){if(xt&&!Ri(i))throw new Error("strictTemplatePolicy: template owner not trusted");if(e=e||{},i.__templatizeOwner)throw new Error("A <template> can only be templatized once");i.__templatizeOwner=t;let s=(t?t.constructor:ve)._parseTemplate(i),r=s.templatizeInstanceClass;r||(r=pc(i,s,e),s.templatizeInstanceClass=r);const n=Ri(i);mc(i,s,e,n);let a=class extends r{};return a.prototype._methodHost=n,a.prototype.__dataHost=i,a.prototype.__templatizeOwner=t,a.prototype.__hostProps=s.hostProps,a=a,a}function vc(i,t,e){const o=e.constructor._properties,{propertyEffects:s}=i,{instanceProps:r}=t;for(let n in s)if(!o[n]&&!(r&&r[n])){const a=s[n];for(let l=0;l<a.length;l++){const{part:c}=a[l].info;if(!(c.signature&&c.signature.static)){console.warn(`Property '${n}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}function bc(i,t){let e;for(;t;)if(e=t.__dataHost?t:t.__templatizeInstance)if(e.__dataHost!=i)t=e.__dataHost;else return e;else t=K(t).parentNode;return null}/**
3233
3233
  @license
3234
3234
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3235
3235
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3237,7 +3237,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3237
3237
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3238
3238
  Code distributed by Google as part of the polymer project is also
3239
3239
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3240
- */class Ct{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(t,e){this._asyncModule=t,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,rt.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),rt.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}static debounce(t,e,o){return t instanceof Ct?t._cancelAsync():t=new Ct,t.setConfig(e,o),t}}let rt=new Set;const xc=function(s){rt.add(s)},wc=function(){const s=!!rt.size;return rt.forEach(t=>{try{t.flush()}catch(e){setTimeout(()=>{throw e})}}),s};/**
3240
+ */class Ct{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(t,e){this._asyncModule=t,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,rt.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),rt.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}static debounce(t,e,o){return t instanceof Ct?t._cancelAsync():t=new Ct,t.setConfig(e,o),t}}let rt=new Set;const xc=function(i){rt.add(i)},wc=function(){const i=!!rt.size;return rt.forEach(t=>{try{t.flush()}catch(e){setTimeout(()=>{throw e})}}),i};/**
3241
3241
  @license
3242
3242
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3243
3243
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3245,7 +3245,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3245
3245
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3246
3246
  Code distributed by Google as part of the polymer project is also
3247
3247
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3248
- */const ir=function(){let s,t;do s=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),t=wc();while(s||t)};/**
3248
+ */const sr=function(){let i,t;do i=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),t=wc();while(i||t)};/**
3249
3249
  @license
3250
3250
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3251
3251
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3253,7 +3253,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3253
3253
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3254
3254
  Code distributed by Google as part of the polymer project is also
3255
3255
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3256
- */let Bs=!1;function Ec(){if(ti&&!ei){if(!Bs){Bs=!0;const s=document.createElement("style");s.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(s)}return!0}return!1}/**
3256
+ */let Bi=!1;function Ec(){if(ts&&!es){if(!Bi){Bi=!0;const i=document.createElement("style");i.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(i)}return!0}return!1}/**
3257
3257
  @license
3258
3258
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3259
3259
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3261,11 +3261,11 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3261
3261
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3262
3262
  Code distributed by Google as part of the polymer project is also
3263
3263
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3264
- */const Sc=ac(ve);class Hs extends Sc{static get is(){return"dom-repeat"}static get template(){return null}static get properties(){return{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},itemsIndexAs:{type:String,value:"itemsIndex"},sort:{type:Function,observer:"__sortChanged"},filter:{type:Function,observer:"__filterChanged"},observe:{type:String,observer:"__observeChanged"},delay:Number,renderedItemCount:{type:Number,notify:!ps,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null,this._templateInfo}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let t=0;t<this.__instances.length;t++)this.__detachInstance(t);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),Ec()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let t=K(K(this).parentNode);for(let e=0;e<this.__instances.length;e++)this.__attachInstance(e,t);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const t=this;let e=this.template=t._templateInfo?t:this.querySelector("template");if(!e){let i=new MutationObserver(()=>{if(this.querySelector("template"))i.disconnect(),this.__render();else throw new Error("dom-repeat requires a <template> child")});return i.observe(this,{childList:!0}),!1}let o={};o[this.as]=!0,o[this.indexAs]=!0,o[this.itemsIndexAs]=!0,this.__ctor=Co(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:o,forwardHostProp:function(i,r){let n=this.__instances;for(let a=0,l;a<n.length&&(l=n[a]);a++)l.forwardHostProp(i,r)},notifyInstanceProp:function(i,r,n){if(un(this.as,r)){let a=i[this.itemsIndexAs];r==this.as&&(this.items[a]=n);let l=et(this.as,`${JSCompiler_renameProperty("items",this)}.${a}`,r);this.notifyPath(l,n)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(t){if(typeof t=="string"){let e=t,o=this.__getMethodHost();return function(){return o[e].apply(o,arguments)}}return t}__sortChanged(t){this.__sortFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render)}__filterChanged(t){this.__filterFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(t){return Math.ceil(1e3/t)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(t){if(this.__sortFn||this.__filterFn){if(!t)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths){let e=this.__observePaths;for(let o=0;o<e.length;o++)t.indexOf(e[o])===0&&this.__debounceRender(this.__render,this.delay)}}}__itemsChanged(t){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(t.path,t.value)||(t.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(t,e=0){this.__renderDebouncer=Ct.debounce(this.__renderDebouncer,e>0?_n.after(e):hi,t.bind(this)),xc(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),ir()}__render(){if(!this.__ensureTemplatized())return;let t=this.items||[];const e=this.__sortAndFilterItems(t),o=this.__calculateLimit(e.length);this.__updateInstances(t,o,e),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!ps||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(t){let e=new Array(t.length);for(let o=0;o<t.length;o++)e[o]=o;return this.__filterFn&&(e=e.filter((o,i,r)=>this.__filterFn(t[o],i,r))),this.__sortFn&&e.sort((o,i)=>this.__sortFn(t[o],t[i])),e}__calculateLimit(t){let e=t;const o=this.__instances.length;if(this.initialCount){let i;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(e=Math.min(t,this.initialCount),i=Math.max(e-o,0),this.__chunkCount=i||1):(i=Math.min(Math.max(t-o,0),this.__chunkCount),e=Math.min(o+i,t)),this.__shouldMeasureChunk=i===this.__chunkCount,this.__shouldContinueChunking=e<t,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,e}__continueChunking(){if(this.__shouldMeasureChunk){const t=performance.now()-this.__renderStartTime,e=this._targetFrameTime/t;this.__chunkCount=Math.round(this.__chunkCount*e)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(t,e,o){const i=this.__itemsIdxToInstIdx={};let r;for(r=0;r<e;r++){let n=this.__instances[r],a=o[r],l=t[a];i[a]=r,n?(n._setPendingProperty(this.as,l),n._setPendingProperty(this.indexAs,r),n._setPendingProperty(this.itemsIndexAs,a),n._flushProperties()):this.__insertInstance(l,r,a)}for(let n=this.__instances.length-1;n>=r;n--)this.__detachAndRemoveInstance(n)}__detachInstance(t){let e=this.__instances[t];const o=K(e.root);for(let i=0;i<e.children.length;i++){let r=e.children[i];o.appendChild(r)}return e}__attachInstance(t,e){let o=this.__instances[t];e.insertBefore(o.root,this)}__detachAndRemoveInstance(t){this.__detachInstance(t),this.__instances.splice(t,1)}__stampInstance(t,e,o){let i={};return i[this.as]=t,i[this.indexAs]=e,i[this.itemsIndexAs]=o,new this.__ctor(i)}__insertInstance(t,e,o){const i=this.__stampInstance(t,e,o);let r=this.__instances[e+1],n=r?r.children[0]:this;return K(K(this).parentNode).insertBefore(i.root,n),this.__instances[e]=i,i}_showHideChildren(t){for(let e=0;e<this.__instances.length;e++)this.__instances[e]._showHideChildren(t)}__handleItemPath(t,e){let o=t.slice(6),i=o.indexOf("."),r=i<0?o:o.substring(0,i);if(r==parseInt(r,10)){let n=i<0?"":o.substring(i+1);this.__handleObservedPaths(n);let a=this.__itemsIdxToInstIdx[r],l=this.__instances[a];if(l){let c=this.as+(n?"."+n:"");l._setPendingPropertyOrPath(c,e,!1,!0),l._flushProperties()}return!0}}itemForElement(t){let e=this.modelForElement(t);return e&&e[this.as]}indexForElement(t){let e=this.modelForElement(t);return e&&e[this.indexAs]}modelForElement(t){return bc(this.template,t)}}customElements.define(Hs.is,Hs);/**
3264
+ */const Sc=ac(ye);class Hi extends Sc{static get is(){return"dom-repeat"}static get template(){return null}static get properties(){return{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},itemsIndexAs:{type:String,value:"itemsIndex"},sort:{type:Function,observer:"__sortChanged"},filter:{type:Function,observer:"__filterChanged"},observe:{type:String,observer:"__observeChanged"},delay:Number,renderedItemCount:{type:Number,notify:!pi,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null,this._templateInfo}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let t=0;t<this.__instances.length;t++)this.__detachInstance(t);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),Ec()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let t=K(K(this).parentNode);for(let e=0;e<this.__instances.length;e++)this.__attachInstance(e,t);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const t=this;let e=this.template=t._templateInfo?t:this.querySelector("template");if(!e){let s=new MutationObserver(()=>{if(this.querySelector("template"))s.disconnect(),this.__render();else throw new Error("dom-repeat requires a <template> child")});return s.observe(this,{childList:!0}),!1}let o={};o[this.as]=!0,o[this.indexAs]=!0,o[this.itemsIndexAs]=!0,this.__ctor=Co(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:o,forwardHostProp:function(s,r){let n=this.__instances;for(let a=0,l;a<n.length&&(l=n[a]);a++)l.forwardHostProp(s,r)},notifyInstanceProp:function(s,r,n){if(un(this.as,r)){let a=s[this.itemsIndexAs];r==this.as&&(this.items[a]=n);let l=et(this.as,`${JSCompiler_renameProperty("items",this)}.${a}`,r);this.notifyPath(l,n)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(t){if(typeof t=="string"){let e=t,o=this.__getMethodHost();return function(){return o[e].apply(o,arguments)}}return t}__sortChanged(t){this.__sortFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render)}__filterChanged(t){this.__filterFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(t){return Math.ceil(1e3/t)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(t){if(this.__sortFn||this.__filterFn){if(!t)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths){let e=this.__observePaths;for(let o=0;o<e.length;o++)t.indexOf(e[o])===0&&this.__debounceRender(this.__render,this.delay)}}}__itemsChanged(t){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(t.path,t.value)||(t.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(t,e=0){this.__renderDebouncer=Ct.debounce(this.__renderDebouncer,e>0?_n.after(e):hs,t.bind(this)),xc(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),sr()}__render(){if(!this.__ensureTemplatized())return;let t=this.items||[];const e=this.__sortAndFilterItems(t),o=this.__calculateLimit(e.length);this.__updateInstances(t,o,e),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!pi||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(t){let e=new Array(t.length);for(let o=0;o<t.length;o++)e[o]=o;return this.__filterFn&&(e=e.filter((o,s,r)=>this.__filterFn(t[o],s,r))),this.__sortFn&&e.sort((o,s)=>this.__sortFn(t[o],t[s])),e}__calculateLimit(t){let e=t;const o=this.__instances.length;if(this.initialCount){let s;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(e=Math.min(t,this.initialCount),s=Math.max(e-o,0),this.__chunkCount=s||1):(s=Math.min(Math.max(t-o,0),this.__chunkCount),e=Math.min(o+s,t)),this.__shouldMeasureChunk=s===this.__chunkCount,this.__shouldContinueChunking=e<t,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,e}__continueChunking(){if(this.__shouldMeasureChunk){const t=performance.now()-this.__renderStartTime,e=this._targetFrameTime/t;this.__chunkCount=Math.round(this.__chunkCount*e)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(t,e,o){const s=this.__itemsIdxToInstIdx={};let r;for(r=0;r<e;r++){let n=this.__instances[r],a=o[r],l=t[a];s[a]=r,n?(n._setPendingProperty(this.as,l),n._setPendingProperty(this.indexAs,r),n._setPendingProperty(this.itemsIndexAs,a),n._flushProperties()):this.__insertInstance(l,r,a)}for(let n=this.__instances.length-1;n>=r;n--)this.__detachAndRemoveInstance(n)}__detachInstance(t){let e=this.__instances[t];const o=K(e.root);for(let s=0;s<e.children.length;s++){let r=e.children[s];o.appendChild(r)}return e}__attachInstance(t,e){let o=this.__instances[t];e.insertBefore(o.root,this)}__detachAndRemoveInstance(t){this.__detachInstance(t),this.__instances.splice(t,1)}__stampInstance(t,e,o){let s={};return s[this.as]=t,s[this.indexAs]=e,s[this.itemsIndexAs]=o,new this.__ctor(s)}__insertInstance(t,e,o){const s=this.__stampInstance(t,e,o);let r=this.__instances[e+1],n=r?r.children[0]:this;return K(K(this).parentNode).insertBefore(s.root,n),this.__instances[e]=s,s}_showHideChildren(t){for(let e=0;e<this.__instances.length;e++)this.__instances[e]._showHideChildren(t)}__handleItemPath(t,e){let o=t.slice(6),s=o.indexOf("."),r=s<0?o:o.substring(0,s);if(r==parseInt(r,10)){let n=s<0?"":o.substring(s+1);this.__handleObservedPaths(n);let a=this.__itemsIdxToInstIdx[r],l=this.__instances[a];if(l){let c=this.as+(n?"."+n:"");l._setPendingPropertyOrPath(c,e,!1,!0),l._flushProperties()}return!0}}itemForElement(t){let e=this.modelForElement(t);return e&&e[this.as]}indexForElement(t){let e=this.modelForElement(t);return e&&e[this.indexAs]}modelForElement(t){return bc(this.template,t)}}customElements.define(Hi.is,Hi);/**
3265
3265
  * @license
3266
3266
  * Copyright (c) 2016 - 2023 Vaadin Ltd.
3267
3267
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3268
- */const Cc=s=>class extends jo(s){static get properties(){return{month:{type:Object,value:new Date,sync:!0},selectedDate:{type:Object,notify:!0,sync:!0},focusedDate:{type:Object},showWeekNumbers:{type:Boolean,value:!1},i18n:{type:Object},ignoreTaps:{type:Boolean},minDate:{type:Date,value:null,sync:!0},maxDate:{type:Date,value:null,sync:!0},disabled:{type:Boolean,reflectToAttribute:!0},_days:{type:Array},_weeks:{type:Array},_notTapping:{type:Boolean}}}static get observers(){return["__focusedDateChanged(focusedDate, _days)"]}get focusableDateElement(){return[...this.shadowRoot.querySelectorAll("[part~=date]")].find(e=>fe(e.date,this.focusedDate))}ready(){super.ready(),ue(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(e,o,i){const r=new Date(0,0);r.setFullYear(e.getFullYear()),r.setMonth(e.getMonth()),r.setDate(1);const n=new Date(0,0);return n.setFullYear(e.getFullYear()),n.setMonth(e.getMonth()+1),n.setDate(0),o&&i&&o.getMonth()===i.getMonth()&&o.getMonth()===e.getMonth()&&i.getDate()-o.getDate()>=0?!1:!it(r,o,i)&&!it(n,o,i)}_getTitle(e,o){if(!(e===void 0||o===void 0))return o.formatTitle(o.monthNames[e.getMonth()],e.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300)}_dateAdd(e,o){e.setDate(e.getDate()+o)}_applyFirstDayOfWeek(e,o){if(!(e===void 0||o===void 0))return e.slice(o).concat(e.slice(0,o))}_getWeekDayNames(e,o){if(e===void 0||o===void 0)return[];const{weekdays:i,weekdaysShort:r,firstDayOfWeek:n}=e,a=this._applyFirstDayOfWeek(r,n);return this._applyFirstDayOfWeek(i,n).map((c,d)=>({weekDay:c,weekDayShort:a[d]}))}__focusedDateChanged(e,o){Array.isArray(o)&&o.some(i=>fe(i,e))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(e){return e?e.getDate():""}_showWeekSeparator(e,o){return e&&o&&o.firstDayOfWeek===1}_isToday(e){return fe(new Date,e)}_getDays(e,o){if(e===void 0||o===void 0)return[];const i=new Date(0,0);for(i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()),i.setDate(1);i.getDay()!==o.firstDayOfWeek;)this._dateAdd(i,-1);const r=[],n=i.getMonth(),a=e.getMonth();for(;i.getMonth()===a||i.getMonth()===n;)r.push(i.getMonth()===a?new Date(i.getTime()):null),this._dateAdd(i,1);return r}_getWeeks(e){return e.reduce((o,i,r)=>(r%7===0&&o.push([]),o[o.length-1].push(i),o),[])}_handleTap(e){!this.ignoreTaps&&!this._notTapping&&e.target.date&&!e.target.hasAttribute("disabled")&&(this.selectedDate=e.target.date,this.dispatchEvent(new CustomEvent("date-tap",{detail:{date:e.target.date},bubbles:!0,composed:!0})))}_preventDefault(e){e.preventDefault()}__getWeekNumber(e){const o=e.reduce((i,r)=>!i&&r?r:i);return oc(o)}__getDayAriaLabel(e){if(!e)return"";let o=`${this._getDate(e)} ${this.i18n.monthNames[e.getMonth()]} ${e.getFullYear()}, ${this.i18n.weekdays[e.getDay()]}`;return this._isToday(e)&&(o+=`, ${this.i18n.today}`),o}};/**
3268
+ */const Cc=i=>class extends jo(i){static get properties(){return{month:{type:Object,value:new Date,sync:!0},selectedDate:{type:Object,notify:!0,sync:!0},focusedDate:{type:Object},showWeekNumbers:{type:Boolean,value:!1},i18n:{type:Object},ignoreTaps:{type:Boolean},minDate:{type:Date,value:null,sync:!0},maxDate:{type:Date,value:null,sync:!0},disabled:{type:Boolean,reflectToAttribute:!0},_days:{type:Array},_weeks:{type:Array},_notTapping:{type:Boolean}}}static get observers(){return["__focusedDateChanged(focusedDate, _days)"]}get focusableDateElement(){return[...this.shadowRoot.querySelectorAll("[part~=date]")].find(e=>fe(e.date,this.focusedDate))}ready(){super.ready(),ue(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(e,o,s){const r=new Date(0,0);r.setFullYear(e.getFullYear()),r.setMonth(e.getMonth()),r.setDate(1);const n=new Date(0,0);return n.setFullYear(e.getFullYear()),n.setMonth(e.getMonth()+1),n.setDate(0),o&&s&&o.getMonth()===s.getMonth()&&o.getMonth()===e.getMonth()&&s.getDate()-o.getDate()>=0?!1:!st(r,o,s)&&!st(n,o,s)}_getTitle(e,o){if(!(e===void 0||o===void 0))return o.formatTitle(o.monthNames[e.getMonth()],e.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300)}_dateAdd(e,o){e.setDate(e.getDate()+o)}_applyFirstDayOfWeek(e,o){if(!(e===void 0||o===void 0))return e.slice(o).concat(e.slice(0,o))}_getWeekDayNames(e,o){if(e===void 0||o===void 0)return[];const{weekdays:s,weekdaysShort:r,firstDayOfWeek:n}=e,a=this._applyFirstDayOfWeek(r,n);return this._applyFirstDayOfWeek(s,n).map((c,d)=>({weekDay:c,weekDayShort:a[d]}))}__focusedDateChanged(e,o){Array.isArray(o)&&o.some(s=>fe(s,e))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(e){return e?e.getDate():""}_showWeekSeparator(e,o){return e&&o&&o.firstDayOfWeek===1}_isToday(e){return fe(new Date,e)}_getDays(e,o){if(e===void 0||o===void 0)return[];const s=new Date(0,0);for(s.setFullYear(e.getFullYear()),s.setMonth(e.getMonth()),s.setDate(1);s.getDay()!==o.firstDayOfWeek;)this._dateAdd(s,-1);const r=[],n=s.getMonth(),a=e.getMonth();for(;s.getMonth()===a||s.getMonth()===n;)r.push(s.getMonth()===a?new Date(s.getTime()):null),this._dateAdd(s,1);return r}_getWeeks(e){return e.reduce((o,s,r)=>(r%7===0&&o.push([]),o[o.length-1].push(s),o),[])}_handleTap(e){!this.ignoreTaps&&!this._notTapping&&e.target.date&&!e.target.hasAttribute("disabled")&&(this.selectedDate=e.target.date,this.dispatchEvent(new CustomEvent("date-tap",{detail:{date:e.target.date},bubbles:!0,composed:!0})))}_preventDefault(e){e.preventDefault()}__getWeekNumber(e){const o=e.reduce((s,r)=>!s&&r?r:s);return oc(o)}__getDayAriaLabel(e){if(!e)return"";let o=`${this._getDate(e)} ${this.i18n.monthNames[e.getMonth()]} ${e.getFullYear()}, ${this.i18n.weekdays[e.getDay()]}`;return this._isToday(e)&&(o+=`, ${this.i18n.today}`),o}};/**
3269
3269
  * @license
3270
3270
  * Copyright (c) 2016 - 2023 Vaadin Ltd.
3271
3271
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3329,7 +3329,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3329
3329
  * @license
3330
3330
  * Copyright (c) 2016 - 2023 Vaadin Ltd.
3331
3331
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3332
- */F("vaadin-month-calendar",Ac,{moduleId:"vaadin-month-calendar-styles"});class Pc extends Cc(Pe(ve)){static get template(){return De`
3332
+ */F("vaadin-month-calendar",Ac,{moduleId:"vaadin-month-calendar-styles"});class kc extends Cc(ke(ye)){static get template(){return De`
3333
3333
  <div part="month-header" id="month-header" aria-hidden="true">[[_getTitle(month, i18n)]]</div>
3334
3334
  <table
3335
3335
  id="monthGrid"
@@ -3371,7 +3371,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3371
3371
  </template>
3372
3372
  </tbody>
3373
3373
  </table>
3374
- `}static get is(){return"vaadin-month-calendar"}static get properties(){return{_days:{type:Array,computed:"_getDays(month, i18n, minDate, maxDate)"},_weeks:{type:Array,computed:"_getWeeks(_days)"},disabled:{type:Boolean,reflectToAttribute:!0,computed:"_isDisabled(month, minDate, maxDate)"}}}static get observers(){return["_showWeekNumbersChanged(showWeekNumbers, i18n)"]}_showWeekNumbersChanged(t,e){t&&e&&e.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(t,e,o,i,r){const n=["date"];return this.__isDayDisabled(t,i,r)&&n.push("disabled"),this.__isDayFocused(t,e)&&n.push("focused"),this.__isDaySelected(t,o)&&n.push("selected"),this._isToday(t)&&n.push("today"),n.join(" ")}__isDayFocused(t,e){return fe(t,e)}__isDaySelected(t,e){return fe(t,e)}__getDayAriaSelected(t,e){if(this.__isDaySelected(t,e))return"true"}__isDayDisabled(t,e,o){return!it(t,e,o)}__getDayAriaDisabled(t,e,o){if(!(t===void 0||e===void 0||o===void 0)&&this.__isDayDisabled(t,e,o))return"true"}__getDayTabindex(t,e){return this.__isDayFocused(t,e)?"0":"-1"}}ie(Pc);/**
3374
+ `}static get is(){return"vaadin-month-calendar"}static get properties(){return{_days:{type:Array,computed:"_getDays(month, i18n, minDate, maxDate)"},_weeks:{type:Array,computed:"_getWeeks(_days)"},disabled:{type:Boolean,reflectToAttribute:!0,computed:"_isDisabled(month, minDate, maxDate)"}}}static get observers(){return["_showWeekNumbersChanged(showWeekNumbers, i18n)"]}_showWeekNumbersChanged(t,e){t&&e&&e.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(t,e,o,s,r){const n=["date"];return this.__isDayDisabled(t,s,r)&&n.push("disabled"),this.__isDayFocused(t,e)&&n.push("focused"),this.__isDaySelected(t,o)&&n.push("selected"),this._isToday(t)&&n.push("today"),n.join(" ")}__isDayFocused(t,e){return fe(t,e)}__isDaySelected(t,e){return fe(t,e)}__getDayAriaSelected(t,e){if(this.__isDaySelected(t,e))return"true"}__isDayDisabled(t,e,o){return!st(t,e,o)}__getDayAriaDisabled(t,e,o){if(!(t===void 0||e===void 0||o===void 0)&&this.__isDayDisabled(t,e,o))return"true"}__getDayTabindex(t,e){return this.__isDayFocused(t,e)?"0":"-1"}}se(kc);/**
3375
3375
  * @license
3376
3376
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
3377
3377
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3379,7 +3379,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3379
3379
  * @license
3380
3380
  * Copyright (c) 2016 - 2023 Vaadin Ltd.
3381
3381
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3382
- */const kc=s=>class extends s{static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_originDate:{type:Object,value:new Date},_visibleMonthIndex:Number,_desktopMode:{type:Boolean,observer:"_desktopModeChanged"},_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean,value:!1},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:!0},maxDate:{type:Object,sync:!0},label:String,_cancelButton:{type:Object},_todayButton:{type:Object},calendars:{type:Array,value:()=>[]},years:{type:Array,value:()=>[]}}}static get observers(){return["__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map(e=>e.focusableDateElement).find(Boolean)}_addListeners(){Fi(this.$.scrollers,"pan-y"),ue(this.$.scrollers,"track",this._track.bind(this)),ue(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),ue(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),ue(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new rr(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new Ee(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",o=>this.__onTodayButtonKeyDown(o)),ue(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new Ee(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",o=>this.__onCancelButtonKeyDown(o)),ue(e,"tap",this._cancel.bind(this)),this._cancelButton=e}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(e,o){const i=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+i,o),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new Ee(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:e=>{e.addEventListener("custom-scroll",()=>{this._onMonthScroll()}),e.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart()}),e.addEventListener("keydown",o=>{this.__onMonthCalendarKeyDown(o)}),e.addEventListener("init-done",()=>{const o=[...this.querySelectorAll("vaadin-month-calendar")];o.forEach(i=>{i.addEventListener("selected-date-changed",r=>{this.selectedDate=r.detail.value})}),this.calendars=o}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new Ee(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),ue(e,"tap",o=>{this._onYearTap(o)}),e.addEventListener("custom-scroll",()=>{this._onYearScroll()}),e.addEventListener("touchstart",()=>{this._onYearScrollTouchStart()}),e.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]}),this._yearScroller=e}}))}__updateCancelButton(e,o){e&&(e.textContent=o&&o.cancel)}__updateTodayButton(e,o,i,r){e&&(e.textContent=o&&o.today,e.disabled=!this._isTodayAllowed(i,r))}__updateCalendars(e,o,i,r,n,a,l,c,d){e&&e.length&&e.forEach(h=>{h.i18n=o,h.minDate=i,h.maxDate=r,h.focusedDate=a,h.selectedDate=n,h.showWeekNumbers=l,h.ignoreTaps=c,d?h.setAttribute("theme",d):h.removeAttribute("theme")})}__updateYears(e,o,i){e&&e.length&&e.forEach(r=>{r.selectedDate=o,i?r.setAttribute("theme",i):r.removeAttribute("theme")})}_selectDate(e){this.selectedDate=e,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:e},bubbles:!0,composed:!0}))}_desktopModeChanged(e){this.toggleAttribute("desktop",e)}_focusedDateChanged(e){this.revealDate(e)}revealDate(e,o=!0){if(!e)return;const i=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const c=this._calculateWeekScrollOffset(e);this._scrollToPosition(i+c,o);return}const r=this._monthScroller.position>i,a=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,l=this._monthScroller.position+a-1<i;r?this._scrollToPosition(i,o):l&&this._scrollToPosition(i-a+1,o)}_calculateWeekScrollOffset(e){const o=new Date(0,0);o.setFullYear(e.getFullYear()),o.setMonth(e.getMonth()),o.setDate(1);let i=0;for(;o.getDate()<e.getDate();)o.setDate(o.getDate()+1),o.getDay()===this.i18n.firstDayOfWeek&&(i+=1);return i/6}_initialPositionChanged(e){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(e)}_repositionYearScroller(){const e=this._monthScroller.position;this._visibleMonthIndex=Math.floor(e),this._yearScroller.position=(e+this._originDate.getMonth())/12}_repositionMonthScroller(){this._monthScroller.position=this._yearScroller.position*12-this._originDate.getMonth(),this._visibleMonthIndex=Math.floor(this._monthScroller.position)}_onMonthScroll(){this._repositionYearScroller(),this._doIgnoreTaps()}_onYearScroll(){this._repositionMonthScroller(),this._doIgnoreTaps()}_onYearScrollTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300),this._repositionMonthScroller()}_onMonthScrollTouchStart(){this._repositionYearScroller()}_doIgnoreTaps(){this._ignoreTaps=!0,this._debouncer=st.debounce(this._debouncer,Et.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,o,i){return e&&o&&typeof o.formatDate=="function"?o.formatDate(Xi(e)):i}_onTodayTap(){const e=new Date;Math.abs(this._monthScroller.position-this._differenceInMonths(e,this._originDate))<.001?(this._selectDate(e),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(e){if(!this._ignoreTaps&&!this._notTapping){const i=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+i*12,!0)}}_scrollToPosition(e,o){if(this._targetPosition!==void 0){this._targetPosition=e;return}if(!o){this._monthScroller.position=e,this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=e;let i;this._revealPromise=new Promise(c=>{i=c});const r=(c,d,h,p)=>(c/=p/2,c<1?h/2*c*c+d:(c-=1,-h/2*(c*(c-2)-1)+d));let n=0;const a=this._monthScroller.position,l=c=>{n||(n=c);const d=c-n;if(d<this.scrollDuration){const h=r(d,a,this._targetPosition-a,this.scrollDuration);this._monthScroller.position=h,window.requestAnimationFrame(l)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:a}})),this._monthScroller.position=this._targetPosition,this._targetPosition=void 0,i(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(l)}_limit(e,o){return Math.min(o.max,Math.max(o.min,e))}_handleTrack(e){if(Math.abs(e.detail.dx)<10||Math.abs(e.detail.ddy)>10)return;Math.abs(e.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0);const o=this._translateX+e.detail.ddx;this._translateX=this._limit(o,{min:0,max:this._yearScrollerWidth})}_track(e){if(!this._desktopMode)switch(e.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(e);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller();break}}_toggleAnimateClass(e){e?this.classList.add("animate"):this.classList.remove("animate")}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller()}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","")}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(e){this._desktopMode||(this._monthScroller.style.transform=`translateX(${e-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${e}px)`)}_yearAfterXMonths(e){return Zi(e).getFullYear()}_differenceInMonths(e,o){return(e.getFullYear()-o.getFullYear())*12-o.getMonth()+e.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(e){e.preventDefault()}__toggleDate(e){fe(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e)}__onMonthCalendarKeyDown(e){let o=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),o=!0;break;case"ArrowUp":this._moveFocusByDays(-7),o=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),o=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),o=!0;break;case"Enter":this._selectDate(this.focusedDate),this._close(),o=!0;break;case" ":this.__toggleDate(this.focusedDate),o=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),o=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),o=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),o=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),o=!0;break;case"Tab":this._onTabKeyDown(e,"calendar");break}o&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,o){switch(e.stopPropagation(),o){case"calendar":e.shiftKey&&(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":e.shiftKey&&(e.preventDefault(),this.focusDateElement());break;case"cancel":e.shiftKey||(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput());break}}__onTodayButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"today")}__onCancelButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const o=this.focusableDateElement;o&&fe(o.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,o.focus())}}focusDate(e,o){return ct(this,null,function*(){const i=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=i,o||(this._focusedMonthDate=i.getDate()),yield this.focusDateElement(!1)})}focusDateElement(e=!0){return ct(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(o=>{qi(this,()=>{ir(),o()})})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(e){this.focusDate(Ji(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,o,i){this._dateAllowed(e)?this.focusDate(e,i):this._dateAllowed(this.focusedDate)?o>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,o){const i=new Date(0,0);return i.setFullYear(this.focusedDate.getFullYear()),i.setMonth(this.focusedDate.getMonth()+e),o&&i.setDate(this.focusedDate.getDate()+o),i}_moveFocusByDays(e){const o=this._getDateDiff(0,e);this._focusAllowedDate(o,e,!1)}_moveFocusByMonths(e){const o=this._getDateDiff(e),i=o.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),o.setDate(this._focusedMonthDate),o.getMonth()!==i&&o.setDate(0),this._focusAllowedDate(o,e,!0)}_moveFocusInsideMonth(e,o){const i=new Date(0,0);i.setFullYear(e.getFullYear()),o==="minDate"?(i.setMonth(e.getMonth()),i.setDate(1)):(i.setMonth(e.getMonth()+1),i.setDate(0)),this._dateAllowed(i)?this.focusDate(i):this._dateAllowed(e)?this.focusDate(this[o]):this._focusClosestDate(e)}_dateAllowed(e,o=this.minDate,i=this.maxDate){return(!o||e>=o)&&(!i||e<=i)}_isTodayAllowed(e,o){const i=new Date,r=new Date(0,0);return r.setFullYear(i.getFullYear()),r.setMonth(i.getMonth()),r.setDate(i.getDate()),this._dateAllowed(r,e,o)}};/**
3382
+ */const Pc=i=>class extends i{static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_originDate:{type:Object,value:new Date},_visibleMonthIndex:Number,_desktopMode:{type:Boolean,observer:"_desktopModeChanged"},_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean,value:!1},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:!0},maxDate:{type:Object,sync:!0},label:String,_cancelButton:{type:Object},_todayButton:{type:Object},calendars:{type:Array,value:()=>[]},years:{type:Array,value:()=>[]}}}static get observers(){return["__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map(e=>e.focusableDateElement).find(Boolean)}_addListeners(){Fs(this.$.scrollers,"pan-y"),ue(this.$.scrollers,"track",this._track.bind(this)),ue(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),ue(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),ue(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new rr(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new Ee(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",o=>this.__onTodayButtonKeyDown(o)),ue(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new Ee(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",o=>this.__onCancelButtonKeyDown(o)),ue(e,"tap",this._cancel.bind(this)),this._cancelButton=e}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(e,o){const s=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+s,o),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new Ee(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:e=>{e.addEventListener("custom-scroll",()=>{this._onMonthScroll()}),e.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart()}),e.addEventListener("keydown",o=>{this.__onMonthCalendarKeyDown(o)}),e.addEventListener("init-done",()=>{const o=[...this.querySelectorAll("vaadin-month-calendar")];o.forEach(s=>{s.addEventListener("selected-date-changed",r=>{this.selectedDate=r.detail.value})}),this.calendars=o}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new Ee(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),ue(e,"tap",o=>{this._onYearTap(o)}),e.addEventListener("custom-scroll",()=>{this._onYearScroll()}),e.addEventListener("touchstart",()=>{this._onYearScrollTouchStart()}),e.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]}),this._yearScroller=e}}))}__updateCancelButton(e,o){e&&(e.textContent=o&&o.cancel)}__updateTodayButton(e,o,s,r){e&&(e.textContent=o&&o.today,e.disabled=!this._isTodayAllowed(s,r))}__updateCalendars(e,o,s,r,n,a,l,c,d){e&&e.length&&e.forEach(h=>{h.i18n=o,h.minDate=s,h.maxDate=r,h.focusedDate=a,h.selectedDate=n,h.showWeekNumbers=l,h.ignoreTaps=c,d?h.setAttribute("theme",d):h.removeAttribute("theme")})}__updateYears(e,o,s){e&&e.length&&e.forEach(r=>{r.selectedDate=o,s?r.setAttribute("theme",s):r.removeAttribute("theme")})}_selectDate(e){this.selectedDate=e,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:e},bubbles:!0,composed:!0}))}_desktopModeChanged(e){this.toggleAttribute("desktop",e)}_focusedDateChanged(e){this.revealDate(e)}revealDate(e,o=!0){if(!e)return;const s=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const c=this._calculateWeekScrollOffset(e);this._scrollToPosition(s+c,o);return}const r=this._monthScroller.position>s,a=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,l=this._monthScroller.position+a-1<s;r?this._scrollToPosition(s,o):l&&this._scrollToPosition(s-a+1,o)}_calculateWeekScrollOffset(e){const o=new Date(0,0);o.setFullYear(e.getFullYear()),o.setMonth(e.getMonth()),o.setDate(1);let s=0;for(;o.getDate()<e.getDate();)o.setDate(o.getDate()+1),o.getDay()===this.i18n.firstDayOfWeek&&(s+=1);return s/6}_initialPositionChanged(e){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(e)}_repositionYearScroller(){const e=this._monthScroller.position;this._visibleMonthIndex=Math.floor(e),this._yearScroller.position=(e+this._originDate.getMonth())/12}_repositionMonthScroller(){this._monthScroller.position=this._yearScroller.position*12-this._originDate.getMonth(),this._visibleMonthIndex=Math.floor(this._monthScroller.position)}_onMonthScroll(){this._repositionYearScroller(),this._doIgnoreTaps()}_onYearScroll(){this._repositionMonthScroller(),this._doIgnoreTaps()}_onYearScrollTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300),this._repositionMonthScroller()}_onMonthScrollTouchStart(){this._repositionYearScroller()}_doIgnoreTaps(){this._ignoreTaps=!0,this._debouncer=it.debounce(this._debouncer,Et.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,o,s){return e&&o&&typeof o.formatDate=="function"?o.formatDate(Xs(e)):s}_onTodayTap(){const e=new Date;Math.abs(this._monthScroller.position-this._differenceInMonths(e,this._originDate))<.001?(this._selectDate(e),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(e){if(!this._ignoreTaps&&!this._notTapping){const s=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+s*12,!0)}}_scrollToPosition(e,o){if(this._targetPosition!==void 0){this._targetPosition=e;return}if(!o){this._monthScroller.position=e,this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=e;let s;this._revealPromise=new Promise(c=>{s=c});const r=(c,d,h,p)=>(c/=p/2,c<1?h/2*c*c+d:(c-=1,-h/2*(c*(c-2)-1)+d));let n=0;const a=this._monthScroller.position,l=c=>{n||(n=c);const d=c-n;if(d<this.scrollDuration){const h=r(d,a,this._targetPosition-a,this.scrollDuration);this._monthScroller.position=h,window.requestAnimationFrame(l)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:a}})),this._monthScroller.position=this._targetPosition,this._targetPosition=void 0,s(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(l)}_limit(e,o){return Math.min(o.max,Math.max(o.min,e))}_handleTrack(e){if(Math.abs(e.detail.dx)<10||Math.abs(e.detail.ddy)>10)return;Math.abs(e.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0);const o=this._translateX+e.detail.ddx;this._translateX=this._limit(o,{min:0,max:this._yearScrollerWidth})}_track(e){if(!this._desktopMode)switch(e.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(e);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller();break}}_toggleAnimateClass(e){e?this.classList.add("animate"):this.classList.remove("animate")}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller()}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","")}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(e){this._desktopMode||(this._monthScroller.style.transform=`translateX(${e-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${e}px)`)}_yearAfterXMonths(e){return Zs(e).getFullYear()}_differenceInMonths(e,o){return(e.getFullYear()-o.getFullYear())*12-o.getMonth()+e.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(e){e.preventDefault()}__toggleDate(e){fe(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e)}__onMonthCalendarKeyDown(e){let o=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),o=!0;break;case"ArrowUp":this._moveFocusByDays(-7),o=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),o=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),o=!0;break;case"Enter":this._selectDate(this.focusedDate),this._close(),o=!0;break;case" ":this.__toggleDate(this.focusedDate),o=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),o=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),o=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),o=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),o=!0;break;case"Tab":this._onTabKeyDown(e,"calendar");break}o&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,o){switch(e.stopPropagation(),o){case"calendar":e.shiftKey&&(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":e.shiftKey&&(e.preventDefault(),this.focusDateElement());break;case"cancel":e.shiftKey||(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput());break}}__onTodayButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"today")}__onCancelButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const o=this.focusableDateElement;o&&fe(o.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,o.focus())}}focusDate(e,o){return ct(this,null,function*(){const s=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=s,o||(this._focusedMonthDate=s.getDate()),yield this.focusDateElement(!1)})}focusDateElement(e=!0){return ct(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(o=>{qs(this,()=>{sr(),o()})})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(e){this.focusDate(Js(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,o,s){this._dateAllowed(e)?this.focusDate(e,s):this._dateAllowed(this.focusedDate)?o>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,o){const s=new Date(0,0);return s.setFullYear(this.focusedDate.getFullYear()),s.setMonth(this.focusedDate.getMonth()+e),o&&s.setDate(this.focusedDate.getDate()+o),s}_moveFocusByDays(e){const o=this._getDateDiff(0,e);this._focusAllowedDate(o,e,!1)}_moveFocusByMonths(e){const o=this._getDateDiff(e),s=o.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),o.setDate(this._focusedMonthDate),o.getMonth()!==s&&o.setDate(0),this._focusAllowedDate(o,e,!0)}_moveFocusInsideMonth(e,o){const s=new Date(0,0);s.setFullYear(e.getFullYear()),o==="minDate"?(s.setMonth(e.getMonth()),s.setDate(1)):(s.setMonth(e.getMonth()+1),s.setDate(0)),this._dateAllowed(s)?this.focusDate(s):this._dateAllowed(e)?this.focusDate(this[o]):this._focusClosestDate(e)}_dateAllowed(e,o=this.minDate,s=this.maxDate){return(!o||e>=o)&&(!s||e<=s)}_isTodayAllowed(e,o){const s=new Date,r=new Date(0,0);return r.setFullYear(s.getFullYear()),r.setMonth(s.getMonth()),r.setDate(s.getDate()),this._dateAllowed(r,e,o)}};/**
3383
3383
  * @license
3384
3384
  * Copyright (c) 2016 - 2023 Vaadin Ltd.
3385
3385
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3447,7 +3447,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3447
3447
  * @license
3448
3448
  * Copyright (c) 2016 - 2023 Vaadin Ltd.
3449
3449
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3450
- */F("vaadin-date-picker-overlay-content",Dc,{moduleId:"vaadin-date-picker-overlay-content-styles"});class Tc extends kc(Be(Pe(Dt(ve)))){static get template(){return De`
3450
+ */F("vaadin-date-picker-overlay-content",Dc,{moduleId:"vaadin-date-picker-overlay-content-styles"});class Tc extends Pc(Be(ke(Dt(ye)))){static get template(){return De`
3451
3451
  <div part="overlay-header" on-touchend="_preventDefault" aria-hidden="true">
3452
3452
  <div part="label">[[_formatDisplayed(selectedDate, i18n, label)]]</div>
3453
3453
  <div part="clear-button" hidden$="[[!selectedDate]]"></div>
@@ -3467,27 +3467,27 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3467
3467
  <slot name="today-button"></slot>
3468
3468
  <slot name="cancel-button"></slot>
3469
3469
  </div>
3470
- `}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}ie(Tc);/**
3470
+ `}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}se(Tc);/**
3471
3471
  * @license
3472
3472
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
3473
3473
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3474
- */const nr=Y(s=>class extends jo(Bi(s)){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame(()=>{this.focus(),this.setAttribute("focus-ring","")})}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus()}blur(){this.focusElement&&this.focusElement.blur()}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(e,o){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):o&&this._removeFocusListeners(o)}_addFocusListeners(e){e.addEventListener("blur",this._boundOnBlur),e.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(e){e.removeEventListener("blur",this._boundOnBlur),e.removeEventListener("focus",this._boundOnFocus)}_onFocus(e){e.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(e){e.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(e){return e.target===this.focusElement}_shouldRemoveFocus(e){return e.target===this.focusElement}_disabledChanged(e,o){super._disabledChanged(e,o),this.focusElement&&(this.focusElement.disabled=e),e&&this.blur()}_tabindexChanged(e){this.__forwardTabIndex(e)}__forwardTabIndex(e){e!==void 0&&this.focusElement&&(this.focusElement.tabIndex=e,e!==-1&&(this.tabindex=void 0)),this.disabled&&e&&(e!==-1&&(this._lastTabIndex=e),this.tabindex=void 0)}});/**
3474
+ */const nr=Y(i=>class extends jo(Bs(i)){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame(()=>{this.focus(),this.setAttribute("focus-ring","")})}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus()}blur(){this.focusElement&&this.focusElement.blur()}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(e,o){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):o&&this._removeFocusListeners(o)}_addFocusListeners(e){e.addEventListener("blur",this._boundOnBlur),e.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(e){e.removeEventListener("blur",this._boundOnBlur),e.removeEventListener("focus",this._boundOnFocus)}_onFocus(e){e.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(e){e.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(e){return e.target===this.focusElement}_shouldRemoveFocus(e){return e.target===this.focusElement}_disabledChanged(e,o){super._disabledChanged(e,o),this.focusElement&&(this.focusElement.disabled=e),e&&this.blur()}_tabindexChanged(e){this.__forwardTabIndex(e)}__forwardTabIndex(e){e!==void 0&&this.focusElement&&(this.focusElement.tabIndex=e,e!==-1&&(this.tabindex=void 0)),this.disabled&&e&&(e!==-1&&(this._lastTabIndex=e),this.tabindex=void 0)}});/**
3475
3475
  * @license
3476
3476
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
3477
3477
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3478
- */const eo=new WeakMap;function Mc(s){return eo.has(s)||eo.set(s,new Set),eo.get(s)}function Oc(s,t){const e=document.createElement("style");e.textContent=s,t===document?document.head.appendChild(e):t.insertBefore(e,t.firstChild)}const Ic=Y(s=>class extends s{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const e=this.getRootNode(),o=Mc(e);this.slotStyles.forEach(i=>{o.has(i)||(Oc(i,e),o.add(i))})}});/**
3478
+ */const eo=new WeakMap;function Mc(i){return eo.has(i)||eo.set(i,new Set),eo.get(i)}function Oc(i,t){const e=document.createElement("style");e.textContent=i,t===document?document.head.appendChild(e):t.insertBefore(e,t.firstChild)}const Ic=Y(i=>class extends i{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const e=this.getRootNode(),o=Mc(e);this.slotStyles.forEach(s=>{o.has(s)||(Oc(s,e),o.add(s))})}});/**
3479
3479
  * @license
3480
3480
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
3481
3481
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3482
- */const ar=Y(s=>class extends s{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(e){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=e)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(e){e.addEventListener("input",this._boundOnInput),e.addEventListener("change",this._boundOnChange)}_removeInputListeners(e){e.removeEventListener("input",this._boundOnInput),e.removeEventListener("change",this._boundOnChange)}_forwardInputValue(e){this.inputElement&&(this._inputElementValue=e!=null?e:"")}_inputElementChanged(e,o){e?this._addInputListeners(e):o&&this._removeInputListeners(o)}_hasInputValueChanged(e,o){(e||o)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(e){this._setHasInputValue(e),this._onInput(e)}_onInput(e){const o=e.composedPath()[0];this.__userInput=e.isTrusted,this.value=o.value,this.__userInput=!1}_onChange(e){}_toggleHasValue(e){this.toggleAttribute("has-value",e)}_valueChanged(e,o){this._toggleHasValue(this._hasValue),!(e===""&&o===void 0)&&(this.__userInput||this._forwardInputValue(e))}_setHasInputValue(e){const o=e.composedPath()[0];this._hasInputValue=o.value.length>0}});/**
3482
+ */const ar=Y(i=>class extends i{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(e){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=e)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(e){e.addEventListener("input",this._boundOnInput),e.addEventListener("change",this._boundOnChange)}_removeInputListeners(e){e.removeEventListener("input",this._boundOnInput),e.removeEventListener("change",this._boundOnChange)}_forwardInputValue(e){this.inputElement&&(this._inputElementValue=e!=null?e:"")}_inputElementChanged(e,o){e?this._addInputListeners(e):o&&this._removeInputListeners(o)}_hasInputValueChanged(e,o){(e||o)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(e){this._setHasInputValue(e),this._onInput(e)}_onInput(e){const o=e.composedPath()[0];this.__userInput=e.isTrusted,this.value=o.value,this.__userInput=!1}_onChange(e){}_toggleHasValue(e){this.toggleAttribute("has-value",e)}_valueChanged(e,o){this._toggleHasValue(this._hasValue),!(e===""&&o===void 0)&&(this.__userInput||this._forwardInputValue(e))}_setHasInputValue(e){const o=e.composedPath()[0];this._hasInputValue=o.value.length>0}});/**
3483
3483
  * @license
3484
3484
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
3485
3485
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3486
- */const zc=s=>class extends ar(Mt(s)){static get properties(){return{clearButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1}}}get clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}ready(){super.ready(),this.clearElement&&(this.clearElement.addEventListener("mousedown",e=>this._onClearButtonMouseDown(e)),this.clearElement.addEventListener("click",e=>this._onClearButtonClick(e)))}_onClearButtonClick(e){e.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(e){e.preventDefault(),jl||this.inputElement.focus()}_onEscape(e){super._onEscape(e),this.clearButtonVisible&&this.value&&(e.stopPropagation(),this._onClearAction())}_onClearAction(){this.clear(),this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}};/**
3486
+ */const zc=i=>class extends ar(Mt(i)){static get properties(){return{clearButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1}}}get clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}ready(){super.ready(),this.clearElement&&(this.clearElement.addEventListener("mousedown",e=>this._onClearButtonMouseDown(e)),this.clearElement.addEventListener("click",e=>this._onClearButtonClick(e)))}_onClearButtonClick(e){e.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(e){e.preventDefault(),jl||this.inputElement.focus()}_onEscape(e){super._onEscape(e),this.clearButtonVisible&&this.value&&(e.stopPropagation(),this._onClearAction())}_onClearAction(){this.clear(),this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}};/**
3487
3487
  * @license
3488
3488
  * Copyright (c) 2023 Vaadin Ltd.
3489
3489
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3490
- */const to=new Map;function Uo(s){return to.has(s)||to.set(s,new WeakMap),to.get(s)}function lr(s,t){s&&s.removeAttribute(t)}function cr(s,t){if(!s||!t)return;const e=Uo(t);if(e.has(s))return;const o=No(s.getAttribute(t));e.set(s,new Set(o))}function Nc(s,t){if(!s||!t)return;const e=Uo(t),o=e.get(s);!o||o.size===0?s.removeAttribute(t):Mi(s,t,Tt(o)),e.delete(s)}function oo(s,t,e={newId:null,oldId:null,fromUser:!1}){if(!s||!t)return;const{newId:o,oldId:i,fromUser:r}=e,n=Uo(t),a=n.get(s);if(!r&&a){i&&a.delete(i),o&&a.add(o);return}r&&(a?o||n.delete(s):cr(s,t),lr(s,t)),Xa(s,t,i);const l=o||Tt(a);l&&Mi(s,t,l)}function Lc(s,t){cr(s,t),lr(s,t)}/**
3490
+ */const to=new Map;function Uo(i){return to.has(i)||to.set(i,new WeakMap),to.get(i)}function lr(i,t){i&&i.removeAttribute(t)}function cr(i,t){if(!i||!t)return;const e=Uo(t);if(e.has(i))return;const o=No(i.getAttribute(t));e.set(i,new Set(o))}function Nc(i,t){if(!i||!t)return;const e=Uo(t),o=e.get(i);!o||o.size===0?i.removeAttribute(t):Ms(i,t,Tt(o)),e.delete(i)}function oo(i,t,e={newId:null,oldId:null,fromUser:!1}){if(!i||!t)return;const{newId:o,oldId:s,fromUser:r}=e,n=Uo(t),a=n.get(i);if(!r&&a){s&&a.delete(s),o&&a.add(o);return}r&&(a?o||n.delete(i):cr(i,t),lr(i,t)),Xa(i,t,s);const l=o||Tt(a);l&&Ms(i,t,l)}function Lc(i,t){cr(i,t),lr(i,t)}/**
3491
3491
  * @license
3492
3492
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
3493
3493
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3495,11 +3495,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3495
3495
  * @license
3496
3496
  * Copyright (c) 2022 - 2023 Vaadin Ltd.
3497
3497
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3498
- */class Wo extends Ee{constructor(t,e,o,i={}){super(t,e,o,Nt(zt({},i),{useUniqueId:!0}))}initCustomNode(t){this.__updateNodeId(t),this.__notifyChange(t)}teardownNode(t){const e=this.getSlotChild();e&&e!==this.defaultNode?this.__notifyChange(e):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){const t=super.attachDefaultNode();return t&&this.__updateNodeId(t),t}restoreDefaultNode(){}updateDefaultNode(t){this.__notifyChange(t)}observeNode(t){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver(e=>{e.forEach(o=>{const i=o.target,r=i===this.node;o.type==="attributes"?r&&this.__updateNodeId(i):(r||i.parentElement===this.node)&&this.__notifyChange(this.node)})}),this.__nodeObserver.observe(t,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(t){return t?t.nodeType===Node.ELEMENT_NODE&&(customElements.get(t.localName)||t.children.length>0)||t.textContent&&t.textContent.trim()!=="":!1}__notifyChange(t){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(t),node:t}}))}__updateNodeId(t){const e=!this.nodes||t===this.nodes[0];t.nodeType===Node.ELEMENT_NODE&&(!this.multiple||e)&&!t.id&&(t.id=this.defaultId)}}/**
3498
+ */class Wo extends Ee{constructor(t,e,o,s={}){super(t,e,o,Nt(zt({},s),{useUniqueId:!0}))}initCustomNode(t){this.__updateNodeId(t),this.__notifyChange(t)}teardownNode(t){const e=this.getSlotChild();e&&e!==this.defaultNode?this.__notifyChange(e):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){const t=super.attachDefaultNode();return t&&this.__updateNodeId(t),t}restoreDefaultNode(){}updateDefaultNode(t){this.__notifyChange(t)}observeNode(t){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver(e=>{e.forEach(o=>{const s=o.target,r=s===this.node;o.type==="attributes"?r&&this.__updateNodeId(s):(r||s.parentElement===this.node)&&this.__notifyChange(this.node)})}),this.__nodeObserver.observe(t,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(t){return t?t.nodeType===Node.ELEMENT_NODE&&(customElements.get(t.localName)||t.children.length>0)||t.textContent&&t.textContent.trim()!=="":!1}__notifyChange(t){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(t),node:t}}))}__updateNodeId(t){const e=!this.nodes||t===this.nodes[0];t.nodeType===Node.ELEMENT_NODE&&(!this.multiple||e)&&!t.id&&(t.id=this.defaultId)}}/**
3499
3499
  * @license
3500
3500
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
3501
3501
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3502
- */class $c extends Wo{constructor(t){super(t,"error-message","div")}setErrorMessage(t){this.errorMessage=t,this.updateDefaultNode(this.node)}setInvalid(t){this.invalid=t,this.updateDefaultNode(this.node)}initAddedNode(t){t!==this.defaultNode&&this.initCustomNode(t)}initNode(t){this.updateDefaultNode(t)}initCustomNode(t){t.textContent&&!this.errorMessage&&(this.errorMessage=t.textContent.trim()),super.initCustomNode(t)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(t){const{errorMessage:e,invalid:o}=this,i=!!(o&&e&&e.trim()!=="");t&&(t.textContent=i?e:"",t.hidden=!i,i?t.setAttribute("role","alert"):t.removeAttribute("role")),super.updateDefaultNode(t)}}/**
3502
+ */class $c extends Wo{constructor(t){super(t,"error-message","div")}setErrorMessage(t){this.errorMessage=t,this.updateDefaultNode(this.node)}setInvalid(t){this.invalid=t,this.updateDefaultNode(this.node)}initAddedNode(t){t!==this.defaultNode&&this.initCustomNode(t)}initNode(t){this.updateDefaultNode(t)}initCustomNode(t){t.textContent&&!this.errorMessage&&(this.errorMessage=t.textContent.trim()),super.initCustomNode(t)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(t){const{errorMessage:e,invalid:o}=this,s=!!(o&&e&&e.trim()!=="");t&&(t.textContent=s?e:"",t.hidden=!s,s?t.setAttribute("role","alert"):t.removeAttribute("role")),super.updateDefaultNode(t)}}/**
3503
3503
  * @license
3504
3504
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
3505
3505
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3511,36 +3511,36 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3511
3511
  * @license
3512
3512
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
3513
3513
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3514
- */const Hc=Y(s=>class extends Be(s){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new Bc(this),this._labelController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-label",e.detail.hasContent)})}get _labelId(){const e=this._labelNode;return e&&e.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(e){this._labelController.setLabel(e)}});/**
3514
+ */const Hc=Y(i=>class extends Be(i){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new Bc(this),this._labelController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-label",e.detail.hasContent)})}get _labelId(){const e=this._labelNode;return e&&e.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(e){this._labelController.setLabel(e)}});/**
3515
3515
  * @license
3516
3516
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
3517
3517
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3518
- */const ur=Y(s=>class extends s{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const e=this.checkValidity();return this._setInvalid(!e),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:e}})),e}checkValidity(){return!this.required||!!this.value}_setInvalid(e){this._shouldSetInvalid(e)&&(this.invalid=e)}_shouldSetInvalid(e){return!0}});/**
3518
+ */const ur=Y(i=>class extends i{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const e=this.checkValidity();return this._setInvalid(!e),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:e}})),e}checkValidity(){return!this.required||!!this.value}_setInvalid(e){this._shouldSetInvalid(e)&&(this.invalid=e)}_shouldSetInvalid(e){return!0}});/**
3519
3519
  * @license
3520
3520
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
3521
3521
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3522
- */const jc=s=>class extends ur(Hc(Be(s))){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 Fc(this),this._helperController=new Rc(this),this._errorController=new $c(this),this._errorController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-error-message",e.detail.hasContent)}),this._labelController.addEventListener("slot-content-changed",e=>{const{hasContent:o,node:i}=e.detail;this.__labelChanged(o,i)}),this._helperController.addEventListener("slot-content-changed",e=>{const{hasContent:o,node:i}=e.detail;this.toggleAttribute("has-helper",o),this.__helperChanged(o,i)})}get _errorNode(){return this._errorController.node}get _helperNode(){return this._helperController.node}ready(){super.ready(),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController)}__helperChanged(e,o){e?this._fieldAriaController.setHelperId(o.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(e){this._fieldAriaController.setAriaLabel(e)}_accessibleNameRefChanged(e){this._fieldAriaController.setLabelId(e,!0)}__labelChanged(e,o){e?this._fieldAriaController.setLabelId(o.id):this._fieldAriaController.setLabelId(null)}_errorMessageChanged(e){this._errorController.setErrorMessage(e)}_helperTextChanged(e){this._helperController.setHelperText(e)}_ariaTargetChanged(e){e&&this._fieldAriaController.setTarget(e)}_requiredChanged(e){this._fieldAriaController.setRequired(e)}_invalidChanged(e){this._errorController.setInvalid(e),setTimeout(()=>{if(e){const o=this._errorNode;this._fieldAriaController.setErrorId(o&&o.id)}else this._fieldAriaController.setErrorId(null)})}};/**
3522
+ */const jc=i=>class extends ur(Hc(Be(i))){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 Fc(this),this._helperController=new Rc(this),this._errorController=new $c(this),this._errorController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-error-message",e.detail.hasContent)}),this._labelController.addEventListener("slot-content-changed",e=>{const{hasContent:o,node:s}=e.detail;this.__labelChanged(o,s)}),this._helperController.addEventListener("slot-content-changed",e=>{const{hasContent:o,node:s}=e.detail;this.toggleAttribute("has-helper",o),this.__helperChanged(o,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(e,o){e?this._fieldAriaController.setHelperId(o.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(e){this._fieldAriaController.setAriaLabel(e)}_accessibleNameRefChanged(e){this._fieldAriaController.setLabelId(e,!0)}__labelChanged(e,o){e?this._fieldAriaController.setLabelId(o.id):this._fieldAriaController.setLabelId(null)}_errorMessageChanged(e){this._errorController.setErrorMessage(e)}_helperTextChanged(e){this._helperController.setHelperText(e)}_ariaTargetChanged(e){e&&this._fieldAriaController.setTarget(e)}_requiredChanged(e){this._fieldAriaController.setRequired(e)}_invalidChanged(e){this._errorController.setInvalid(e),setTimeout(()=>{if(e){const o=this._errorNode;this._fieldAriaController.setErrorId(o&&o.id)}else this._fieldAriaController.setErrorId(null)})}};/**
3523
3523
  * @license
3524
3524
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
3525
3525
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3526
- */const Yc=Y(s=>class extends s{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(e){e&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated())}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`)}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`)}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach(e=>{this._delegateAttribute(e,this[e])})}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(e=>{this._delegateProperty(e,this[e])})}_delegateAttrsChanged(...e){this.constructor.delegateAttrs.forEach((o,i)=>{this._delegateAttribute(o,e[i])})}_delegatePropsChanged(...e){this.constructor.delegateProps.forEach((o,i)=>{this._delegateProperty(o,e[i])})}_delegateAttribute(e,o){this.stateTarget&&(e==="invalid"&&this._delegateAttribute("aria-invalid",o?"true":!1),typeof o=="boolean"?this.stateTarget.toggleAttribute(e,o):o?this.stateTarget.setAttribute(e,o):this.stateTarget.removeAttribute(e))}_delegateProperty(e,o){this.stateTarget&&(this.stateTarget[e]=o)}});/**
3526
+ */const Yc=Y(i=>class extends i{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(e){e&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated())}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`)}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`)}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach(e=>{this._delegateAttribute(e,this[e])})}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(e=>{this._delegateProperty(e,this[e])})}_delegateAttrsChanged(...e){this.constructor.delegateAttrs.forEach((o,s)=>{this._delegateAttribute(o,e[s])})}_delegatePropsChanged(...e){this.constructor.delegateProps.forEach((o,s)=>{this._delegateProperty(o,e[s])})}_delegateAttribute(e,o){this.stateTarget&&(e==="invalid"&&this._delegateAttribute("aria-invalid",o?"true":!1),typeof o=="boolean"?this.stateTarget.toggleAttribute(e,o):o?this.stateTarget.setAttribute(e,o):this.stateTarget.removeAttribute(e))}_delegateProperty(e,o){this.stateTarget&&(this.stateTarget[e]=o)}});/**
3527
3527
  * @license
3528
3528
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
3529
3529
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3530
- */const dr=Y(s=>class extends Yc(ur(ar(s))){static get constraints(){return["required"]}static get delegateAttrs(){return[...super.delegateAttrs,"required"]}ready(){super.ready(),this._createConstraintsObserver()}checkValidity(){return this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map(e=>this[e]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(e){return e.some(o=>this.__isValidConstraint(o))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(e,...o){if(!e)return;const i=this._hasValidConstraints(o),r=this.__previousHasConstraints&&!i;(this._hasValue||this.invalid)&&i?this.validate():r&&this._setInvalid(!1),this.__previousHasConstraints=i}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}__isValidConstraint(e){return!!e||e===0}});/**
3530
+ */const dr=Y(i=>class extends Yc(ur(ar(i))){static get constraints(){return["required"]}static get delegateAttrs(){return[...super.delegateAttrs,"required"]}ready(){super.ready(),this._createConstraintsObserver()}checkValidity(){return this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map(e=>this[e]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(e){return e.some(o=>this.__isValidConstraint(o))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(e,...o){if(!e)return;const s=this._hasValidConstraints(o),r=this.__previousHasConstraints&&!s;(this._hasValue||this.invalid)&&s?this.validate():r&&this._setInvalid(!1),this.__previousHasConstraints=s}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}__isValidConstraint(e){return!!e||e===0}});/**
3531
3531
  * @license
3532
3532
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
3533
3533
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3534
- */const Vc=s=>class extends Ic(nr(dr(jc(zc(Mt(s)))))){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[`
3534
+ */const Vc=i=>class extends Ic(nr(dr(jc(zc(Mt(i)))))){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[`
3535
3535
  :is(input[slot='input'], textarea[slot='textarea'])::placeholder {
3536
3536
  font: inherit;
3537
3537
  color: inherit;
3538
3538
  }
3539
- `]}_onFocus(e){super._onFocus(e),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("paste",this._boundOnPaste),e.addEventListener("drop",this._boundOnDrop),e.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("paste",this._boundOnPaste),e.removeEventListener("drop",this._boundOnDrop),e.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(e){super._onKeyDown(e),this.allowedCharPattern&&!this.__shouldAcceptKey(e)&&(e.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=st.debounce(this._preventInputDebouncer,Et.after(200),()=>{this.removeAttribute("input-prevented")})}__shouldAcceptKey(e){return e.metaKey||e.ctrlKey||!e.key||e.key.length!==1||this.__allowedCharRegExp.test(e.key)}_onPaste(e){if(this.allowedCharPattern){const o=e.clipboardData.getData("text");this.__allowedTextRegExp.test(o)||(e.preventDefault(),this._markInputPrevented())}}_onDrop(e){if(this.allowedCharPattern){const o=e.dataTransfer.getData("text");this.__allowedTextRegExp.test(o)||(e.preventDefault(),this._markInputPrevented())}}_onBeforeInput(e){this.allowedCharPattern&&e.data&&!this.__allowedTextRegExp.test(e.data)&&(e.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(e){if(e)try{this.__allowedCharRegExp=new RegExp(`^${e}$`,"u"),this.__allowedTextRegExp=new RegExp(`^${e}*$`,"u")}catch(o){console.error(o)}}};/**
3539
+ `]}_onFocus(e){super._onFocus(e),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("paste",this._boundOnPaste),e.addEventListener("drop",this._boundOnDrop),e.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("paste",this._boundOnPaste),e.removeEventListener("drop",this._boundOnDrop),e.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(e){super._onKeyDown(e),this.allowedCharPattern&&!this.__shouldAcceptKey(e)&&(e.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=it.debounce(this._preventInputDebouncer,Et.after(200),()=>{this.removeAttribute("input-prevented")})}__shouldAcceptKey(e){return e.metaKey||e.ctrlKey||!e.key||e.key.length!==1||this.__allowedCharRegExp.test(e.key)}_onPaste(e){if(this.allowedCharPattern){const o=e.clipboardData.getData("text");this.__allowedTextRegExp.test(o)||(e.preventDefault(),this._markInputPrevented())}}_onDrop(e){if(this.allowedCharPattern){const o=e.dataTransfer.getData("text");this.__allowedTextRegExp.test(o)||(e.preventDefault(),this._markInputPrevented())}}_onBeforeInput(e){this.allowedCharPattern&&e.data&&!this.__allowedTextRegExp.test(e.data)&&(e.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(e){if(e)try{this.__allowedCharRegExp=new RegExp(`^${e}$`,"u"),this.__allowedTextRegExp=new RegExp(`^${e}*$`,"u")}catch(o){console.error(o)}}};/**
3540
3540
  * @license
3541
3541
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
3542
3542
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3543
- */class Uc extends Ee{constructor(t,e){super(t,"input","input",{initializer:(o,i)=>{i.value&&(o.value=i.value),i.type&&o.setAttribute("type",i.type),o.id=this.defaultId,typeof e=="function"&&e(o)},useUniqueId:!0})}}/**
3543
+ */class Uc extends Ee{constructor(t,e){super(t,"input","input",{initializer:(o,s)=>{s.value&&(o.value=s.value),s.type&&o.setAttribute("type",s.type),o.id=this.defaultId,typeof e=="function"&&e(o)},useUniqueId:!0})}}/**
3544
3544
  * @license
3545
3545
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
3546
3546
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3619,7 +3619,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3619
3619
  * @license
3620
3620
  * Copyright (c) 2023 Vaadin Ltd.
3621
3621
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3622
- */const Xc=s=>class extends s{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(e,o){if(!o||e===void 0)return;const{classList:i}=o;if(this.__initialClasses||(this.__initialClasses=new Set(i)),Array.isArray(this.__previousClasses)){const n=this.__previousClasses.filter(a=>!this.__initialClasses.has(a));n.length>0&&i.remove(...n)}const r=typeof e=="string"?e.split(" "):[];r.length>0&&i.add(...r),this.__previousClasses=r}};/**
3622
+ */const Xc=i=>class extends i{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(e,o){if(!o||e===void 0)return;const{classList:s}=o;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 r=typeof e=="string"?e.split(" "):[];r.length>0&&s.add(...r),this.__previousClasses=r}};/**
3623
3623
  * @license
3624
3624
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
3625
3625
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3627,7 +3627,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3627
3627
  * @license
3628
3628
  * Copyright (c) 2016 - 2023 Vaadin Ltd.
3629
3629
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3630
- */const Qc=s=>class extends Xc(Be(nr(dr(Mt(s))))){static get properties(){return{_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged",sync:!0},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean,value:!1,sync:!0},_fullscreen:{type:Boolean,value:!1,sync:!0},_fullscreenMediaQuery:{value:"(max-width: 420px), (max-height: 420px)"},i18n:{type:Object,sync:!0,value:()=>({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(e){const o=String(e.year).replace(/\d+/u,i=>"0000".substr(i.length)+i);return[e.month+1,e.day,o].join("/")},parseDate(e){const o=e.split("/"),i=new Date;let r,n=i.getMonth(),a=i.getFullYear();if(o.length===3){if(n=parseInt(o[0])-1,r=parseInt(o[1]),a=parseInt(o[2]),o[2].length<3&&a>=0){const l=this.referenceDate?Ue(this.referenceDate):new Date;a=sc(l,a,n,r)}}else o.length===2?(n=parseInt(o[0])-1,r=parseInt(o[1])):o.length===1&&(r=parseInt(o[0]));if(r!==void 0)return{day:r,month:n,year:a}},formatTitle:(e,o)=>`${e} ${o}`})},min:{type:String,sync:!0},max:{type:String,sync:!0},_minDate:{type:Date,computed:"__computeMinOrMaxDate(min)",sync:!0},_maxDate:{type:Date,computed:"__computeMinOrMaxDate(max)",sync:!0},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, i18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:Ki},_focusOverlayOnOpen:Boolean,_overlayContent:{type:Object,sync:!0},_hasInputValue:{type:Boolean}}}static get observers(){return["_selectedDateChanged(_selectedDate, i18n)","_focusedDateChanged(_focusedDate, i18n)","__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers)","__updateOverlayContentTheme(_overlayContent, _theme)","__updateOverlayContentFullScreen(_overlayContent, _fullscreen)"]}static get constraints(){return[...super.constraints,"min","max"]}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this),this._boundOverlayRenderer=this._overlayRenderer.bind(this)}get _inputElementValue(){return super._inputElementValue}set _inputElementValue(e){super._inputElementValue=e,this._hasInputValue=!1}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}_onFocus(e){super._onFocus(e),this._noInput&&e.target.blur()}_onBlur(e){super._onBlur(e),this.opened||(this._selectParsedOrFocusedDate(),document.hasFocus()&&this.validate())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new rr(this._fullscreenMediaQuery,o=>{this._fullscreen=o})),this.addController(new Zc(this));const e=this.$.overlay;this._overlayElement=e,e.renderer=this._boundOverlayRenderer,this.addEventListener("mousedown",()=>this.__bringToFront()),this.addEventListener("touchstart",()=>this.__bringToFront())}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.$.overlay.close()}_overlayRenderer(e){if(e.firstChild)return;const o=document.createElement("vaadin-date-picker-overlay-content");e.appendChild(o),this._overlayContent=o,o.addEventListener("close",()=>{this._close()}),o.addEventListener("focus-input",this._focusAndSelect.bind(this)),o.addEventListener("date-tap",i=>{this.__userConfirmedDate=!0,this._selectDate(i.detail.date),this._close()}),o.addEventListener("date-selected",i=>{this.__userConfirmedDate=!!i.detail.date,this._selectDate(i.detail.date)}),o.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),o.addEventListener("focused-date-changed",i=>{this._focusedDate=i.detail.value})}__parseDate(e){if(!this.i18n.parseDate)return;let o=this.i18n.parseDate(e);if(o&&(o=Ue(`${o.year}-${o.month+1}-${o.day}`)),o&&!isNaN(o.getTime()))return o}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(Xi(e))}checkValidity(){const e=this._inputElementValue,o=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),i=!this._selectedDate||it(this._selectedDate,this._minDate,this._maxDate);let r=!0;return this.inputElement&&(this.inputElement.checkValidity?r=this.inputElement.checkValidity():this.inputElement.validate&&(r=this.inputElement.validate())),o&&i&&r}_shouldSetFocus(e){return!this._shouldKeepFocusRing}_shouldRemoveFocus(e){return!this.opened}_setFocused(e){super._setFocused(e),this._shouldKeepFocusRing=e&&this._keyboardActive}__dispatchChange(){this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}_selectDate(e){const o=this.value;this._selectedDate=e,o!==this.value&&this.__dispatchChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_isNoInput(e,o,i,r,n,a){return!e||o&&(!a||n)||i&&n||!r.parseDate}_formatISO(e){if(!(e instanceof Date))return"";const o=(d,h="00")=>(h+d).substr((h+d).length-h.length);let i="",r="0000",n=e.getFullYear();n<0?(n=-n,i="-",r="000000"):e.getFullYear()>=1e4&&(i="+",r="000000");const a=i+o(n,r),l=o(e.getMonth()+1),c=o(e.getDate());return[a,l,c].join("-")}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.autocomplete="off",e.setAttribute("role","combobox"),e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(e){this.inputElement&&this.inputElement.setAttribute("aria-expanded",e)}_selectedDateChanged(e,o){e===void 0||o===void 0||(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(e,o){e===void 0||o===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(e)}_valueChanged(e,o){const i=Ue(e);if(e&&!i){this.value=o;return}e?fe(this._selectedDate,i)||(this._selectedDate=i,o!==void 0&&this.validate()):this._selectedDate=null,this._toggleHasValue(this._hasValue)}__updateOverlayContent(e,o,i,r,n,a,l,c){e&&(e.i18n=o,e.label=i,e.minDate=r,e.maxDate=n,e.focusedDate=a,e.selectedDate=l,e.showWeekNumbers=c)}__updateOverlayContentTheme(e,o){e&&(o?e.setAttribute("theme",o):e.removeAttribute("theme"))}__updateOverlayContentFullScreen(e,o){e&&e.toggleAttribute("fullscreen",o)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._close()}_onOverlayOpened(){const e=this._overlayContent;e.reset();const o=this._getInitialPosition();e.initialPosition=o;const i=e.focusedDate||o;e.scrollToDate(i),this._ignoreFocusedDateChange=!0,e.focusedDate=i,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(e.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const r=this._nativeInput;this._noInput&&r&&(r.blur(),this._overlayContent.focusDateElement());const n=this._noInput?e:[r,e];this.__showOthers=Gi(n)}_getInitialPosition(){const e=Ue(this.initialPosition),o=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||it(o,this._minDate,this._maxDate)?o:Ji(o,[this._minDate,this._maxDate])}_selectParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const e=this._inputElementValue||"",o=this.__parseDate(e);o?this._selectDate(o):(this.__keepInputValue=!0,this._selectDate(null),this._selectedDate=null,this.__keepInputValue=!1)}else this._focusedDate&&this._selectDate(this._focusedDate);this._ignoreFocusedDateChange=!1}_onOverlayClosed(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this.__userConfirmedDate?this.__userConfirmedDate=!1:this._selectParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),!this.value&&!this._keyboardActive&&this.validate()}_onScroll(e){(e.target===window||!this._overlayContent.contains(e.target))&&this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(e){this._inputElementValue=e?this.__formatDate(e):""}_setSelectionRange(e,o){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,o)}_onChange(e){e.stopPropagation()}_onClick(e){this._isClearButton(e)||this._onHostClick(e)}_onHostClick(e){(!this.autoOpenDisabled||this._noInput)&&(e.preventDefault(),this.open())}_onClearButtonClick(e){e.preventDefault(),this._inputElementValue="",this.value="",this.__dispatchChange()}_onKeyDown(e){switch(super._onKeyDown(e),this._noInput&&[9].indexOf(e.keyCode)===-1&&e.preventDefault(),e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(e.preventDefault(),e.stopPropagation(),this._setSelectionRange(0,0),e.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement());break}}_onEnter(e){const o=this.value;this.opened?this.close():this._selectParsedOrFocusedDate(),o===this.value&&this.validate()}_onEscape(e){if(!this.opened){if(this.clearButtonVisible&&this.value){e.stopPropagation(),this._onClearButtonClick(e);return}this.autoOpenDisabled?(this.inputElement.value===""&&this._selectDate(null),this._applyInputValue(this._selectedDate)):(this._focusedDate=this._selectedDate,this._selectParsedOrFocusedDate())}}_isClearButton(e){return e.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open(),this._inputElementValue){const e=this.__parseDate(this._inputElementValue);e&&(this._ignoreFocusedDateChange=!0,fe(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(e){return Ue(e)}};/**
3630
+ */const Qc=i=>class extends Xc(Be(nr(dr(Mt(i))))){static get properties(){return{_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged",sync:!0},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean,value:!1,sync:!0},_fullscreen:{type:Boolean,value:!1,sync:!0},_fullscreenMediaQuery:{value:"(max-width: 420px), (max-height: 420px)"},i18n:{type:Object,sync:!0,value:()=>({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(e){const o=String(e.year).replace(/\d+/u,s=>"0000".substr(s.length)+s);return[e.month+1,e.day,o].join("/")},parseDate(e){const o=e.split("/"),s=new Date;let r,n=s.getMonth(),a=s.getFullYear();if(o.length===3){if(n=parseInt(o[0])-1,r=parseInt(o[1]),a=parseInt(o[2]),o[2].length<3&&a>=0){const l=this.referenceDate?Ue(this.referenceDate):new Date;a=ic(l,a,n,r)}}else o.length===2?(n=parseInt(o[0])-1,r=parseInt(o[1])):o.length===1&&(r=parseInt(o[0]));if(r!==void 0)return{day:r,month:n,year:a}},formatTitle:(e,o)=>`${e} ${o}`})},min:{type:String,sync:!0},max:{type:String,sync:!0},_minDate:{type:Date,computed:"__computeMinOrMaxDate(min)",sync:!0},_maxDate:{type:Date,computed:"__computeMinOrMaxDate(max)",sync:!0},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, i18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:Ks},_focusOverlayOnOpen:Boolean,_overlayContent:{type:Object,sync:!0},_hasInputValue:{type:Boolean}}}static get observers(){return["_selectedDateChanged(_selectedDate, i18n)","_focusedDateChanged(_focusedDate, i18n)","__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers)","__updateOverlayContentTheme(_overlayContent, _theme)","__updateOverlayContentFullScreen(_overlayContent, _fullscreen)"]}static get constraints(){return[...super.constraints,"min","max"]}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this),this._boundOverlayRenderer=this._overlayRenderer.bind(this)}get _inputElementValue(){return super._inputElementValue}set _inputElementValue(e){super._inputElementValue=e,this._hasInputValue=!1}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}_onFocus(e){super._onFocus(e),this._noInput&&e.target.blur()}_onBlur(e){super._onBlur(e),this.opened||(this._selectParsedOrFocusedDate(),document.hasFocus()&&this.validate())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new rr(this._fullscreenMediaQuery,o=>{this._fullscreen=o})),this.addController(new Zc(this));const e=this.$.overlay;this._overlayElement=e,e.renderer=this._boundOverlayRenderer,this.addEventListener("mousedown",()=>this.__bringToFront()),this.addEventListener("touchstart",()=>this.__bringToFront())}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.$.overlay.close()}_overlayRenderer(e){if(e.firstChild)return;const o=document.createElement("vaadin-date-picker-overlay-content");e.appendChild(o),this._overlayContent=o,o.addEventListener("close",()=>{this._close()}),o.addEventListener("focus-input",this._focusAndSelect.bind(this)),o.addEventListener("date-tap",s=>{this.__userConfirmedDate=!0,this._selectDate(s.detail.date),this._close()}),o.addEventListener("date-selected",s=>{this.__userConfirmedDate=!!s.detail.date,this._selectDate(s.detail.date)}),o.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),o.addEventListener("focused-date-changed",s=>{this._focusedDate=s.detail.value})}__parseDate(e){if(!this.i18n.parseDate)return;let o=this.i18n.parseDate(e);if(o&&(o=Ue(`${o.year}-${o.month+1}-${o.day}`)),o&&!isNaN(o.getTime()))return o}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(Xs(e))}checkValidity(){const e=this._inputElementValue,o=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),s=!this._selectedDate||st(this._selectedDate,this._minDate,this._maxDate);let r=!0;return this.inputElement&&(this.inputElement.checkValidity?r=this.inputElement.checkValidity():this.inputElement.validate&&(r=this.inputElement.validate())),o&&s&&r}_shouldSetFocus(e){return!this._shouldKeepFocusRing}_shouldRemoveFocus(e){return!this.opened}_setFocused(e){super._setFocused(e),this._shouldKeepFocusRing=e&&this._keyboardActive}__dispatchChange(){this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}_selectDate(e){const o=this.value;this._selectedDate=e,o!==this.value&&this.__dispatchChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_isNoInput(e,o,s,r,n,a){return!e||o&&(!a||n)||s&&n||!r.parseDate}_formatISO(e){if(!(e instanceof Date))return"";const o=(d,h="00")=>(h+d).substr((h+d).length-h.length);let s="",r="0000",n=e.getFullYear();n<0?(n=-n,s="-",r="000000"):e.getFullYear()>=1e4&&(s="+",r="000000");const a=s+o(n,r),l=o(e.getMonth()+1),c=o(e.getDate());return[a,l,c].join("-")}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.autocomplete="off",e.setAttribute("role","combobox"),e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(e){this.inputElement&&this.inputElement.setAttribute("aria-expanded",e)}_selectedDateChanged(e,o){e===void 0||o===void 0||(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(e,o){e===void 0||o===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(e)}_valueChanged(e,o){const s=Ue(e);if(e&&!s){this.value=o;return}e?fe(this._selectedDate,s)||(this._selectedDate=s,o!==void 0&&this.validate()):this._selectedDate=null,this._toggleHasValue(this._hasValue)}__updateOverlayContent(e,o,s,r,n,a,l,c){e&&(e.i18n=o,e.label=s,e.minDate=r,e.maxDate=n,e.focusedDate=a,e.selectedDate=l,e.showWeekNumbers=c)}__updateOverlayContentTheme(e,o){e&&(o?e.setAttribute("theme",o):e.removeAttribute("theme"))}__updateOverlayContentFullScreen(e,o){e&&e.toggleAttribute("fullscreen",o)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._close()}_onOverlayOpened(){const e=this._overlayContent;e.reset();const o=this._getInitialPosition();e.initialPosition=o;const s=e.focusedDate||o;e.scrollToDate(s),this._ignoreFocusedDateChange=!0,e.focusedDate=s,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(e.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const r=this._nativeInput;this._noInput&&r&&(r.blur(),this._overlayContent.focusDateElement());const n=this._noInput?e:[r,e];this.__showOthers=Gs(n)}_getInitialPosition(){const e=Ue(this.initialPosition),o=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||st(o,this._minDate,this._maxDate)?o:Js(o,[this._minDate,this._maxDate])}_selectParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const e=this._inputElementValue||"",o=this.__parseDate(e);o?this._selectDate(o):(this.__keepInputValue=!0,this._selectDate(null),this._selectedDate=null,this.__keepInputValue=!1)}else this._focusedDate&&this._selectDate(this._focusedDate);this._ignoreFocusedDateChange=!1}_onOverlayClosed(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this.__userConfirmedDate?this.__userConfirmedDate=!1:this._selectParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),!this.value&&!this._keyboardActive&&this.validate()}_onScroll(e){(e.target===window||!this._overlayContent.contains(e.target))&&this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(e){this._inputElementValue=e?this.__formatDate(e):""}_setSelectionRange(e,o){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,o)}_onChange(e){e.stopPropagation()}_onClick(e){this._isClearButton(e)||this._onHostClick(e)}_onHostClick(e){(!this.autoOpenDisabled||this._noInput)&&(e.preventDefault(),this.open())}_onClearButtonClick(e){e.preventDefault(),this._inputElementValue="",this.value="",this.__dispatchChange()}_onKeyDown(e){switch(super._onKeyDown(e),this._noInput&&[9].indexOf(e.keyCode)===-1&&e.preventDefault(),e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(e.preventDefault(),e.stopPropagation(),this._setSelectionRange(0,0),e.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement());break}}_onEnter(e){const o=this.value;this.opened?this.close():this._selectParsedOrFocusedDate(),o===this.value&&this.validate()}_onEscape(e){if(!this.opened){if(this.clearButtonVisible&&this.value){e.stopPropagation(),this._onClearButtonClick(e);return}this.autoOpenDisabled?(this.inputElement.value===""&&this._selectDate(null),this._applyInputValue(this._selectedDate)):(this._focusedDate=this._selectedDate,this._selectParsedOrFocusedDate())}}_isClearButton(e){return e.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open(),this._inputElementValue){const e=this.__parseDate(this._inputElementValue);e&&(this._ignoreFocusedDateChange=!0,fe(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(e){return Ue(e)}};/**
3631
3631
  * @license
3632
3632
  * Copyright (c) 2016 - 2023 Vaadin Ltd.
3633
3633
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3648,7 +3648,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3648
3648
  * @license
3649
3649
  * Copyright (c) 2016 - 2023 Vaadin Ltd.
3650
3650
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3651
- */F("vaadin-date-picker",[Jc,eu],{moduleId:"vaadin-date-picker-styles"});class tu extends Qc(Vc(Pe(Ti(ve)))){static get is(){return"vaadin-date-picker"}static get template(){return De`
3651
+ */F("vaadin-date-picker",[Jc,eu],{moduleId:"vaadin-date-picker-styles"});class tu extends Qc(Vc(ke(Ts(ye)))){static get is(){return"vaadin-date-picker"}static get template(){return De`
3652
3652
  <div class="vaadin-date-picker-container">
3653
3653
  <div part="label">
3654
3654
  <slot name="label"></slot>
@@ -3690,4 +3690,4 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3690
3690
  ></vaadin-date-picker-overlay>
3691
3691
 
3692
3692
  <slot name="tooltip"></slot>
3693
- `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Uc(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Wc(this.inputElement,this._labelController)),this._tooltipController=new Ii(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",e=>e.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(t){t.detail.sourceEvent&&t.detail.sourceEvent.composedPath().includes(this)&&t.preventDefault()}_toggle(t){t.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(t){super._openedChanged(t),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}ie(tu);function ou(s){u.append_styles(s,"svelte-19to85v",".PlayerSelfExclusionTitle.svelte-19to85v.svelte-19to85v{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}.PlayerSelfExclusionTitleMobile.svelte-19to85v.svelte-19to85v{font-size:var(--emw--font-size-large, 20px);color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerSelfExclusionTitleNone.svelte-19to85v.svelte-19to85v{display:none}.SelfExclusionWrapper.svelte-19to85v.svelte-19to85v{background-color:var(--emfe-w-color-pale, var(--emw--color-gray-50, #F1F1F1));color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px;border-radius:20px;max-width:760px}.SelfExclusionWrapper.SelfExclusionWrapperMobile.svelte-19to85v.svelte-19to85v{padding:20px 15px;max-width:unset}.MenuReturnButton.svelte-19to85v.svelte-19to85v{color:var(--emw--color-gray-300, #58586B);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.SelfExclusionDescription.svelte-19to85v.svelte-19to85v{color:var(--emw--color-gray-300, #58586B);line-height:24px}.SelfExclusionDescription.SelfExclusionDescriptionMobile.svelte-19to85v.svelte-19to85v{font-size:var(--emw--font-size-x-small, 12px);line-height:19px}.SelfExclusionDescription.svelte-19to85v .SelfExclusionDescriptionText a.svelte-19to85v{color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionConfigWrapper.svelte-19to85v.svelte-19to85v{width:50%;height:100%;position:relative;margin-bottom:var(--emw--spacing-large, 20px);color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));border-radius:var(--emw--border-radius-medium, 20px);cursor:pointer}.SelfExclusionConfigWrapper.svelte-19to85v .SelfExclusionConfigLabel.svelte-19to85v{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 20px)}.SelfExclusionConfigWrapper.svelte-19to85v .SelfExclusionConfigLabel .SelfExclusionConfigIcon.svelte-19to85v{width:15px;height:15px;fill:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));transform:rotateZ(-90deg);transition:all 0.5s ease-in-out}.SelfExclusionConfigWrapper.svelte-19to85v .SelfExclusionConfigLabel p.svelte-19to85v{margin:0;font-family:inherit}.SelfExclusionConfigWrapper.svelte-19to85v .SelfExclusionConfigLabel .SelfExclusionConfigIcon.active.svelte-19to85v{transform:rotateZ(0deg)}.SelfExclusionConfigWrapper.svelte-19to85v .SelfExclusionDropDown.svelte-19to85v{max-height:0px;overflow:hidden;box-sizing:border-box;transition:all 0.5s ease-in-out;opacity:0;color:var(--emw--color-gray-300, #58586B);background-color:var(--emfe-w-color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:0px 0px var(--emw--border-radius-medium, 20px) var(--emw--border-radius-medium, 20px)}.SelfExclusionConfigWrapper.svelte-19to85v .SelfExclusionDropDown div.svelte-19to85v{padding:var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 20px);font-size:var(--emw--font-size-x-small, 12px);border-top:1px solid var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));transition:all 0.5s ease-in-out;font-family:inherit}.SelfExclusionConfigWrapper.svelte-19to85v .SelfExclusionDropDown div.svelte-19to85v:hover{color:var(--emfe-w-color-white, #FFFFFF);background-color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionConfigWrapper.svelte-19to85v .SelfExclusionDropDown.active.svelte-19to85v{max-height:300px;opacity:1}.SelfExclusionConfigWrapper.SelfExclusionConfigWrapperMobile.svelte-19to85v.svelte-19to85v{width:100%;font-size:var(--emw--font-size-x-small, 12px)}.SelfExclusionConfigWrapper.SelfExclusionConfigWrapperMobile.svelte-19to85v .SelfExclusionConfigLabel .SelfExclusionConfigIcon.svelte-19to85v{width:10px;height:10px}.SelfExclusionDateWrapper.svelte-19to85v.svelte-19to85v{color:var(--emw--color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:16px;position:relative;width:50%}.SelfExclusionDateWrapper.svelte-19to85v label.svelte-19to85v{font-size:var(--emw--font-size-small, 14px);font-weight:300;padding-bottom:5px}.SelfExclusionDateWrapper.svelte-19to85v .SelfExclusionDateInstructions.svelte-19to85v{font-size:var(--emw--font-size-small, 12px);font-weight:300;padding-bottom:5px;line-height:18px}.SelfExclusionDateWrapper.svelte-19to85v .SelfExclusionDateInstructions strong.svelte-19to85v{color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionDateWrapper.SelfExclusionDateWrapperMobile.svelte-19to85v.svelte-19to85v{width:100%}.SelfExclusionActionButtons.svelte-19to85v.svelte-19to85v{margin-top:40px;width:50%}.SelfExclusionActionButtons.svelte-19to85v .SelfExclusionSave.svelte-19to85v{font-family:var(--emw--button-typography);border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emfe-w-color-gray-150, #828282) 80%, black 20%), var(--emfe-w-color-gray-150, #828282), color-mix(in srgb, var(--emfe-w-color-gray-150, #828282) 80%, white 30%));border:2px solid var(--emw--color-black, #000000);border-radius:50px;padding:30px 0;font-size:var(--emw--font-size-large, 20px);color:var(--emw--button-text-color, #FFFFFF)}.SelfExclusionActionButtons.svelte-19to85v .SelfExclusionSave.active.svelte-19to85v{cursor:pointer;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924)}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile.svelte-19to85v.svelte-19to85v{width:100%;grid-template-columns:1fr 1fr}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile.svelte-19to85v .SelfExclusionSave.svelte-19to85v{height:40px;font-size:var(--emw--font-size-small, 14px);padding:20px 0}")}function js(s,t,e){const o=s.slice();return o[42]=t[e],o}function su(s){let t,e,o,i,r,n,a,l,c,d,h=s[13]("titleSelfExclusion")+"",p,m,v;return{c(){t=u.element("div"),e=u.svg_element("svg"),o=u.svg_element("defs"),i=u.svg_element("style"),r=u.text(".aaa{fill:var(--emw--color-primary, #22B04E);}"),n=u.svg_element("g"),a=u.svg_element("g"),l=u.svg_element("path"),c=u.space(),d=u.element("h2"),p=u.text(h),u.attr(l,"class","aaa"),u.attr(l,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),u.attr(l,"transform","translate(15 15) rotate(180)"),u.attr(a,"transform","translate(20 158)"),u.attr(n,"transform","translate(-20 -158)"),u.attr(e,"xmlns","http://www.w3.org/2000/svg"),u.attr(e,"width","15"),u.attr(e,"height","15"),u.attr(e,"viewBox","0 0 15 15"),u.attr(d,"class","PlayerSelfExclusionTitleMobile svelte-19to85v"),u.attr(t,"class","MenuReturnButton svelte-19to85v")},m(A,z){u.insert(A,t,z),u.append(t,e),u.append(e,o),u.append(o,i),u.append(i,r),u.append(e,n),u.append(n,a),u.append(a,l),u.append(t,c),u.append(t,d),u.append(d,p),m||(v=u.listen(t,"click",s[24]),m=!0)},p(A,z){z[0]&8192&&h!==(h=A[13]("titleSelfExclusion")+"")&&u.set_data(p,h)},d(A){A&&u.detach(t),m=!1,v()}}}function Ys(s){let t,e=s[13](`${s[42].key}`)+"",o,i,r;function n(){return s[26](s[42])}return{c(){t=u.element("div"),o=u.text(e),u.attr(t,"class","svelte-19to85v")},m(a,l){u.insert(a,t,l),u.append(t,o),i||(r=u.listen(t,"click",n),i=!0)},p(a,l){s=a,l[0]&8208&&e!==(e=s[13](`${s[42].key}`)+"")&&u.set_data(o,e)},d(a){a&&u.detach(t),i=!1,r()}}}function Vs(s){let t,e,o=s[13]("duration")+"",i,r,n,a=s[13]("dateInstructions")+"",l,c,d,h,p;return{c(){t=u.element("div"),e=u.element("label"),i=u.text(o),r=u.space(),n=u.element("span"),l=u.text(a),c=u.space(),d=u.element("strong"),d.innerHTML='MM/DD/YYYY<strong class="svelte-19to85v"></strong>',h=u.space(),p=u.element("vaadin-date-picker"),u.attr(e,"for","SelfExclusionDate"),u.attr(e,"class","svelte-19to85v"),u.attr(d,"class","svelte-19to85v"),u.attr(n,"class","SelfExclusionDateInstructions svelte-19to85v"),u.set_custom_element_data(p,"min",s[5]),u.set_custom_element_data(p,"max",s[6]),u.set_custom_element_data(p,"value",s[5]),u.attr(t,"class","SelfExclusionDateWrapper "+(s[14]?"SelfExclusionDateWrapperMobile":"")+" svelte-19to85v")},m(m,v){u.insert(m,t,v),u.append(t,e),u.append(e,i),u.append(t,r),u.append(t,n),u.append(n,l),u.append(n,c),u.append(n,d),u.append(t,h),u.append(t,p),s[27](p)},p(m,v){v[0]&8192&&o!==(o=m[13]("duration")+"")&&u.set_data(i,o),v[0]&8192&&a!==(a=m[13]("dateInstructions")+"")&&u.set_data(l,a),v[0]&32&&u.set_custom_element_data(p,"min",m[5]),v[0]&64&&u.set_custom_element_data(p,"max",m[6]),v[0]&32&&u.set_custom_element_data(p,"value",m[5])},d(m){m&&u.detach(t),s[27](null)}}}function iu(s){let t,e,o=s[13]("temporarySelfExclusion",{values:{date:s[7]}})+"",i;return{c(){t=u.element("p"),e=u.element("strong"),i=u.text(o),u.attr(t,"class","SelfExclusionDescriptionText")},m(r,n){u.insert(r,t,n),u.append(t,e),u.append(e,i)},p(r,n){n[0]&8320&&o!==(o=r[13]("temporarySelfExclusion",{values:{date:r[7]}})+"")&&u.set_data(i,o)},d(r){r&&u.detach(t)}}}function ru(s){let t,e,o=s[13]("noPeriodSelected")+"",i;return{c(){t=u.element("p"),e=u.element("strong"),i=u.text(o),u.attr(t,"class","SelfExclusionDescriptionText")},m(r,n){u.insert(r,t,n),u.append(t,e),u.append(e,i)},p(r,n){n[0]&8192&&o!==(o=r[13]("noPeriodSelected")+"")&&u.set_data(i,o)},d(r){r&&u.detach(t)}}}function nu(s){let t,e,o=s[13]("permanentSelfExclusion")+"",i;return{c(){t=u.element("p"),e=u.element("strong"),i=u.text(o),u.attr(t,"class","SelfExclusionDescriptionText")},m(r,n){u.insert(r,t,n),u.append(t,e),u.append(e,i)},p(r,n){n[0]&8192&&o!==(o=r[13]("permanentSelfExclusion")+"")&&u.set_data(i,o)},d(r){r&&u.detach(t)}}}function au(s){let t,e,o,i,r=s[13]("titleSelfExclusion")+"",n,a,l,c,d=s[13]("selfExclusionText1",{values:{operatorname:s[0]}})+"",h,p,m,v=s[13]("selfExclusionText2")+"",A,z,M,I=s[13]("selfExclusionText3",{values:{operatorname:s[0]}})+"",V,re,j,G=s[13]("selfExclusionText4")+"",de,ne,te,L,P,ae,X,x,_,f=s[13](`${s[8]}`)+"",y,g,w,E,k,N,O,H,U,Z,b,$,D,R=s[13]("save")+"",se,le,he,It,qo,be=s[14]&&su(s),Te=u.ensure_array_like(s[4]),J=[];for(let C=0;C<Te.length;C+=1)J[C]=Ys(js(s,Te,C));let Q=s[10]&&Vs(s);function Ko(C,B){return C[9]?nu:C[11]?iu:ru}let lt=Ko(s),ce=lt(s);return{c(){t=u.element("div"),e=u.element("form"),be&&be.c(),o=u.space(),i=u.element("h2"),n=u.text(r),a=u.space(),l=u.element("div"),c=u.element("p"),h=u.text(d),p=u.space(),m=u.element("p"),A=u.text(v),z=u.space(),M=u.element("p"),V=u.text(I),re=u.space(),j=u.element("p"),de=u.text(G),ne=u.space(),te=u.element("a"),L=u.text(s[1]),ae=u.space(),X=u.element("div"),x=u.element("div"),_=u.element("p"),y=u.text(f),g=u.space(),w=u.svg_element("svg"),E=u.svg_element("g"),k=u.svg_element("path"),N=u.space(),O=u.element("div");for(let C=0;C<J.length;C+=1)J[C].c();H=u.space(),Q&&Q.c(),U=u.space(),Z=u.element("div"),ce.c(),b=u.space(),$=u.element("div"),D=u.element("button"),se=u.text(R),u.attr(i,"class","PlayerSelfExclusionTitle "+(s[14]?"PlayerSelfExclusionTitleNone":"")+" svelte-19to85v"),u.attr(c,"class","SelfExclusionDescriptionText"),u.attr(m,"class","SelfExclusionDescriptionText"),u.attr(M,"class","SelfExclusionDescriptionText"),u.attr(te,"href",P="mailto:"+s[1]),u.attr(te,"class","svelte-19to85v"),u.attr(j,"class","SelfExclusionDescriptionText"),u.attr(l,"class","SelfExclusionDescription "+(s[14]?"SelfExclusionDescriptionMobile":"")+" svelte-19to85v"),u.attr(_,"class","svelte-19to85v"),u.attr(k,"d","M 90 24.25 c 0 -0.896 -0.342 -1.792 -1.025 -2.475 c -1.366 -1.367 -3.583 -1.367 -4.949 0 L 45 60.8 L 5.975 21.775 c -1.367 -1.367 -3.583 -1.367 -4.95 0 c -1.366 1.367 -1.366 3.583 0 4.95 l 41.5 41.5 c 1.366 1.367 3.583 1.367 4.949 0 l 41.5 -41.5 C 89.658 26.042 90 25.146 90 24.25 z"),u.attr(k,"stroke-linecap","round"),u.attr(w,"xmlns","http://www.w3.org/2000/svg"),u.attr(w,"xmlns:xlink","http://www.w3.org/1999/xlink"),u.attr(w,"version","1.1"),u.attr(w,"viewBox","0 0 100 100"),u.attr(w,"xml:space","preserve"),u.attr(w,"class","SelfExclusionConfigIcon svelte-19to85v"),u.toggle_class(w,"active",s[12]),u.attr(x,"class","SelfExclusionConfigLabel svelte-19to85v"),u.attr(O,"class","SelfExclusionDropDown svelte-19to85v"),u.toggle_class(O,"active",s[12]),u.attr(X,"class","SelfExclusionConfigWrapper "+(s[14]?"SelfExclusionConfigWrapperMobile":"")+" svelte-19to85v"),u.toggle_class(X,"active",s[12]),u.attr(Z,"class","SelfExclusionDescription "+(s[14]?"SelfExclusionDescriptionMobile":"")+" svelte-19to85v"),u.attr(D,"class",le="SelfExclusionSave "+(s[11]?"active":"")+" svelte-19to85v"),D.disabled=he=!s[11],u.attr($,"class","SelfExclusionActionButtons "+(s[14]?"SelfExclusionActionButtonsMobile":"")+" svelte-19to85v"),u.attr(e,"class","SelfExclusionWrapper "+(s[14]?"SelfExclusionWrapperMobile":"")+" svelte-19to85v")},m(C,B){u.insert(C,t,B),u.append(t,e),be&&be.m(e,null),u.append(e,o),u.append(e,i),u.append(i,n),u.append(e,a),u.append(e,l),u.append(l,c),u.append(c,h),u.append(l,p),u.append(l,m),u.append(m,A),u.append(l,z),u.append(l,M),u.append(M,V),u.append(l,re),u.append(l,j),u.append(j,de),u.append(j,ne),u.append(j,te),u.append(te,L),u.append(e,ae),u.append(e,X),u.append(X,x),u.append(x,_),u.append(_,y),u.append(x,g),u.append(x,w),u.append(w,E),u.append(E,k),u.append(X,N),u.append(X,O);for(let q=0;q<J.length;q+=1)J[q]&&J[q].m(O,null);u.append(e,H),Q&&Q.m(e,null),u.append(e,U),u.append(e,Z),ce.m(Z,null),u.append(e,b),u.append(e,$),u.append($,D),u.append(D,se),s[29](t),It||(qo=[u.listen(x,"click",s[25]),u.listen(D,"click",s[28])],It=!0)},p(C,B){if(C[14]&&be.p(C,B),B[0]&8192&&r!==(r=C[13]("titleSelfExclusion")+"")&&u.set_data(n,r),B[0]&8193&&d!==(d=C[13]("selfExclusionText1",{values:{operatorname:C[0]}})+"")&&u.set_data(h,d),B[0]&8192&&v!==(v=C[13]("selfExclusionText2")+"")&&u.set_data(A,v),B[0]&8193&&I!==(I=C[13]("selfExclusionText3",{values:{operatorname:C[0]}})+"")&&u.set_data(V,I),B[0]&8192&&G!==(G=C[13]("selfExclusionText4")+"")&&u.set_data(de,G),B[0]&2&&u.set_data(L,C[1]),B[0]&2&&P!==(P="mailto:"+C[1])&&u.attr(te,"href",P),B[0]&8448&&f!==(f=C[13](`${C[8]}`)+"")&&u.set_data(y,f),B[0]&4096&&u.toggle_class(w,"active",C[12]),B[0]&73744){Te=u.ensure_array_like(C[4]);let q;for(q=0;q<Te.length;q+=1){const Go=js(C,Te,q);J[q]?J[q].p(Go,B):(J[q]=Ys(Go),J[q].c(),J[q].m(O,null))}for(;q<J.length;q+=1)J[q].d(1);J.length=Te.length}B[0]&4096&&u.toggle_class(O,"active",C[12]),B[0]&4096&&u.toggle_class(X,"active",C[12]),C[10]?Q?Q.p(C,B):(Q=Vs(C),Q.c(),Q.m(e,U)):Q&&(Q.d(1),Q=null),lt===(lt=Ko(C))&&ce?ce.p(C,B):(ce.d(1),ce=lt(C),ce&&(ce.c(),ce.m(Z,null))),B[0]&8192&&R!==(R=C[13]("save")+"")&&u.set_data(se,R),B[0]&2048&&le!==(le="SelfExclusionSave "+(C[11]?"active":"")+" svelte-19to85v")&&u.attr(D,"class",le),B[0]&2048&&he!==(he=!C[11])&&(D.disabled=he)},i:u.noop,o:u.noop,d(C){C&&u.detach(t),be&&be.d(),u.destroy_each(J,C),Q&&Q.d(),ce.d(),s[29](null),It=!1,u.run_all(qo)}}}function lu(s,t,e){let o;u.component_subscribe(s,u.$format,b=>e(13,o=b));let{endpoint:i="",lang:r="en",operator:n="Everymatrix",supportemail:a="",clientstyling:l="",clientstylingurl:c="",translationurl:d=""}=t,h,p,m=[],v=window.navigator.userAgent,A,z,M="",I="",V="selectAPeriod",re=u.getDevice(v)!=="PC",j=!1,G=!1,de=!1,ne=!1;const te=()=>{fetch(d).then($=>$.json()).then($=>{Object.keys($).forEach(D=>{Zo(D,$[D])})}).catch($=>{console.log($)})};Object.keys(Qo).forEach(b=>{Zo(b,Qo[b])});const L=()=>{let b=new URL(`${i}/v1/player/selfExclusionSettings`);fetch(b,{method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json"}}).then(D=>P(D)).then(D=>{e(4,m=D.periods)}).catch(D=>{console.log(D)})},P=b=>{if(b.status>=300)throw new Error("There was an error fetching the config");return b.json()},ae=()=>{e(12,ne=!ne)},X=b=>{switch(I=b.text,e(8,V=b.key),e(11,de=!0),e(12,ne=!1),e(9,j=!1),e(10,G=!1),I){case"Until":e(10,G=!0),e(5,A=Lt().add(6,"months").format("YYYY-MM-DD")),e(6,z=Lt().add(5,"years").format("YYYY-MM-DD")),e(7,M=A);break;case"Permanent":e(9,j=!j);break;default:const[$,D]=I.split(" "),R=D.includes("Day")?"days":D.includes("Month")?"months":D.includes("Year")?"years":null;if(!R)return;e(7,M=Lt().add(Number($),R).format("YYYY-MM-DD"));break}},x=b=>{b.preventDefault(),window.postMessage({type:"SetSelfExclusion",selectedPeriodKey:V,selfExclusionExpiryDate:M},window.location.href)},_=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:re},window.location.href)},f=b=>{e(7,M=b.target.value)},y=()=>{p.addEventListener("change",f,!1)},g=()=>{let b=document.createElement("style");b.innerHTML=l,h.appendChild(b)},w=()=>{let b=new URL(c),$=document.createElement("style");fetch(b.href).then(D=>D.text()).then(D=>{$.innerHTML=D,setTimeout(()=>{h.appendChild($)},1)})};u.onMount(()=>()=>{p.removeEventListener("change",f)});const E=()=>{yr(r)},k=()=>_(),N=()=>ae(),O=b=>X(b);function H(b){u.binding_callbacks[b?"unshift":"push"](()=>{p=b,e(3,p)})}const U=b=>x(b);function Z(b){u.binding_callbacks[b?"unshift":"push"](()=>{h=b,e(2,h)})}return s.$$set=b=>{"endpoint"in b&&e(19,i=b.endpoint),"lang"in b&&e(20,r=b.lang),"operator"in b&&e(0,n=b.operator),"supportemail"in b&&e(1,a=b.supportemail),"clientstyling"in b&&e(21,l=b.clientstyling),"clientstylingurl"in b&&e(22,c=b.clientstylingurl),"translationurl"in b&&e(23,d=b.translationurl)},s.$$.update=()=>{s.$$.dirty[0]&8&&p&&y(),s.$$.dirty[0]&524288&&i&&L(),s.$$.dirty[0]&1048576&&r&&E(),s.$$.dirty[0]&4194308&&c&&h&&w(),s.$$.dirty[0]&2097156&&l&&h&&g(),s.$$.dirty[0]&8388608&&d&&te()},[n,a,h,p,m,A,z,M,V,j,G,de,ne,o,re,ae,X,x,_,i,r,l,c,d,k,N,O,H,U,Z]}class hr extends u.SvelteComponent{constructor(t){super(),u.init(this,t,lu,au,u.safe_not_equal,{endpoint:19,lang:20,operator:0,supportemail:1,clientstyling:21,clientstylingurl:22,translationurl:23},ou,[-1,-1])}get endpoint(){return this.$$.ctx[19]}set endpoint(t){this.$$set({endpoint:t}),u.flush()}get lang(){return this.$$.ctx[20]}set lang(t){this.$$set({lang:t}),u.flush()}get operator(){return this.$$.ctx[0]}set operator(t){this.$$set({operator:t}),u.flush()}get supportemail(){return this.$$.ctx[1]}set supportemail(t){this.$$set({supportemail:t}),u.flush()}get clientstyling(){return this.$$.ctx[21]}set clientstyling(t){this.$$set({clientstyling:t}),u.flush()}get clientstylingurl(){return this.$$.ctx[22]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),u.flush()}get translationurl(){return this.$$.ctx[23]}set translationurl(t){this.$$set({translationurl:t}),u.flush()}}u.create_custom_element(hr,{endpoint:{},lang:{},operator:{},supportemail:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=hr;
3693
+ `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Uc(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Wc(this.inputElement,this._labelController)),this._tooltipController=new Is(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",e=>e.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(t){t.detail.sourceEvent&&t.detail.sourceEvent.composedPath().includes(this)&&t.preventDefault()}_toggle(t){t.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(t){super._openedChanged(t),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}se(tu);function ou(i){u.append_styles(i,"svelte-arm3mh",'.PlayerSelfExclusionTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}.PlayerSelfExclusionTitleMobile{font-size:var(--emw--font-size-large, 20px);color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerSelfExclusionTitleNone{display:none}.SelfExclusionWrapper{background-color:var(--emfe-w-color-pale, var(--emw--color-gray-50, #F1F1F1));color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px;border-radius:20px;max-width:760px}.SelfExclusionWrapper.SelfExclusionWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emw--color-gray-300, #58586B);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.SelfExclusionTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weight-bold, 700)}.SelfExclusionTitle.SelfExclusionTitleMobile{font-size:var(--emw--font-size-large, 20px)}.SelfExclusionDescription{color:var(--emw--color-gray-300, #58586B);line-height:24px}.SelfExclusionDescription.SelfExclusionDescriptionMobile{font-size:var(--emw--font-size-x-small, 12px);line-height:19px}.SelfExclusionDescription .SelfExclusionDescriptionText a{color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionConfigWrapper{width:50%;height:100%;position:relative;margin-bottom:var(--emw--spacing-large, 20px);color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));border-radius:var(--emw--border-radius-medium, 20px);cursor:pointer}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 20px)}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel .SelfExclusionConfigIcon{width:15px;height:15px;fill:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));transform:rotateZ(-90deg);transition:all 0.5s ease-in-out}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel p{margin:0;font-family:inherit}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel .SelfExclusionConfigIcon.active{transform:rotateZ(0deg)}.SelfExclusionConfigWrapper .SelfExclusionDropDown{max-height:0px;overflow:hidden;box-sizing:border-box;transition:all 0.5s ease-in-out;opacity:0;color:var(--emw--color-gray-300, #58586B);background-color:var(--emfe-w-color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:0px 0px var(--emw--border-radius-medium, 20px) var(--emw--border-radius-medium, 20px)}.SelfExclusionConfigWrapper .SelfExclusionDropDown div{padding:var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 20px);font-size:var(--emw--font-size-x-small, 12px);border-top:1px solid var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));transition:all 0.5s ease-in-out;font-family:inherit}.SelfExclusionConfigWrapper .SelfExclusionDropDown div:hover{color:var(--emfe-w-color-white, #FFFFFF);background-color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionConfigWrapper .SelfExclusionDropDown.active{max-height:300px;opacity:1}.SelfExclusionConfigWrapper.SelfExclusionConfigWrapperMobile{width:100%;font-size:var(--emw--font-size-x-small, 12px)}.SelfExclusionConfigWrapper.SelfExclusionConfigWrapperMobile .SelfExclusionConfigLabel .SelfExclusionConfigIcon{width:10px;height:10px}.SelfExclusionDateWrapper{color:var(--emw--color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:16px;position:relative;width:50%}.SelfExclusionDateWrapper label{font-size:var(--emw--font-size-small, 14px);font-weight:300;padding-bottom:5px}.SelfExclusionDateWrapper .SelfExclusionDateInstructions{font-size:var(--emw--font-size-small, 12px);font-weight:300;padding-bottom:5px;line-height:18px}.SelfExclusionDateWrapper .SelfExclusionDateInstructions strong{color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionDateWrapper input{font-family:inherit;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:var(--emw--size-standard, 16px);line-height:18px}.SelfExclusionDateWrapper.SelfExclusionDateWrapperMobile{width:100%}.SelfExclusionRadioWrapper{display:block;position:relative;padding:4px 0 0 0;margin-bottom:16px;font-size:var(--emw--size-standard, 16px);user-select:none;line-height:18px}.SelfExclusionRadioWrapper label{font-size:var(--emw--size-standard, 16px);cursor:pointer;padding-left:35px}.SelfExclusionRadioWrapper input{font-family:inherit;position:absolute;opacity:0;cursor:pointer;height:0;width:0}.SelfExclusionRadioWrapper .Checkmark{position:absolute;top:0;left:0;height:25px;width:25px;background-color:var(--emw--color-gray-100, #E6E6E6);border-radius:50%}.SelfExclusionRadioWrapper input:checked~.Checkmark{background-color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionRadioWrapper .Checkmark:after{content:"";position:absolute;display:none;left:9px;top:5px;width:5px;height:10px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}.SelfExclusionRadioWrapper input:checked~.Checkmark:after{display:block}.SelfExclusionRadioWrapper.SelfExclusionRadioWrapperMobile label{font-family:inherit;font-size:var(--emw--font-size-x-small, 12px)}.SelfExclusionActionButtons{margin-top:40px;width:50%}.SelfExclusionActionButtons .SelfExclusionSave{font-family:var(--emw--button-typography);border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emfe-w-color-gray-150, #828282) 80%, black 20%), var(--emfe-w-color-gray-150, #828282), color-mix(in srgb, var(--emfe-w-color-gray-150, #828282) 80%, white 30%));border:2px solid var(--emw--color-black, #000000);border-radius:50px;padding:30px 0;font-size:var(--emw--font-size-large, 20px);color:var(--emw--button-text-color, #FFFFFF)}.SelfExclusionActionButtons .SelfExclusionSave.active{cursor:pointer;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924)}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile{width:100%;grid-template-columns:1fr 1fr}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile .SelfExclusionSave{height:40px;font-size:var(--emw--font-size-small, 14px);padding:20px 0}')}function ji(i,t,e){const o=i.slice();return o[42]=t[e],o}function iu(i){let t,e,o,s,r,n,a,l,c,d,h=i[13]("titleSelfExclusion")+"",p,m,y;return{c(){t=u.element("div"),e=u.svg_element("svg"),o=u.svg_element("defs"),s=u.svg_element("style"),r=u.text(".aaa{fill:var(--emw--color-primary, #22B04E);}"),n=u.svg_element("g"),a=u.svg_element("g"),l=u.svg_element("path"),c=u.space(),d=u.element("h2"),p=u.text(h),u.attr(l,"class","aaa"),u.attr(l,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),u.attr(l,"transform","translate(15 15) rotate(180)"),u.attr(a,"transform","translate(20 158)"),u.attr(n,"transform","translate(-20 -158)"),u.attr(e,"xmlns","http://www.w3.org/2000/svg"),u.attr(e,"width","15"),u.attr(e,"height","15"),u.attr(e,"viewBox","0 0 15 15"),u.attr(d,"class","PlayerSelfExclusionTitleMobile"),u.attr(t,"class","MenuReturnButton")},m(A,z){u.insert(A,t,z),u.append(t,e),u.append(e,o),u.append(o,s),u.append(s,r),u.append(e,n),u.append(n,a),u.append(a,l),u.append(t,c),u.append(t,d),u.append(d,p),m||(y=u.listen(t,"click",i[24]),m=!0)},p(A,z){z[0]&8192&&h!==(h=A[13]("titleSelfExclusion")+"")&&u.set_data(p,h)},d(A){A&&u.detach(t),m=!1,y()}}}function Yi(i){let t,e=i[13](`${i[42].key}`)+"",o,s,r;function n(){return i[26](i[42])}return{c(){t=u.element("div"),o=u.text(e)},m(a,l){u.insert(a,t,l),u.append(t,o),s||(r=u.listen(t,"click",n),s=!0)},p(a,l){i=a,l[0]&8208&&e!==(e=i[13](`${i[42].key}`)+"")&&u.set_data(o,e)},d(a){a&&u.detach(t),s=!1,r()}}}function Vi(i){let t,e,o=i[13]("duration")+"",s,r,n,a=i[13]("dateInstructions")+"",l,c,d,h,p;return{c(){t=u.element("div"),e=u.element("label"),s=u.text(o),r=u.space(),n=u.element("span"),l=u.text(a),c=u.space(),d=u.element("strong"),d.innerHTML="MM/DD/YYYY<strong></strong>",h=u.space(),p=u.element("vaadin-date-picker"),u.attr(e,"for","SelfExclusionDate"),u.attr(n,"class","SelfExclusionDateInstructions"),u.set_custom_element_data(p,"min",i[5]),u.set_custom_element_data(p,"max",i[6]),u.set_custom_element_data(p,"value",i[5]),u.attr(t,"class","SelfExclusionDateWrapper "+(i[14]?"SelfExclusionDateWrapperMobile":""))},m(m,y){u.insert(m,t,y),u.append(t,e),u.append(e,s),u.append(t,r),u.append(t,n),u.append(n,l),u.append(n,c),u.append(n,d),u.append(t,h),u.append(t,p),i[27](p)},p(m,y){y[0]&8192&&o!==(o=m[13]("duration")+"")&&u.set_data(s,o),y[0]&8192&&a!==(a=m[13]("dateInstructions")+"")&&u.set_data(l,a),y[0]&32&&u.set_custom_element_data(p,"min",m[5]),y[0]&64&&u.set_custom_element_data(p,"max",m[6]),y[0]&32&&u.set_custom_element_data(p,"value",m[5])},d(m){m&&u.detach(t),i[27](null)}}}function su(i){let t,e,o=i[13]("temporarySelfExclusion",{values:{date:i[7]}})+"",s;return{c(){t=u.element("p"),e=u.element("strong"),s=u.text(o),u.attr(t,"class","SelfExclusionDescriptionText")},m(r,n){u.insert(r,t,n),u.append(t,e),u.append(e,s)},p(r,n){n[0]&8320&&o!==(o=r[13]("temporarySelfExclusion",{values:{date:r[7]}})+"")&&u.set_data(s,o)},d(r){r&&u.detach(t)}}}function ru(i){let t,e,o=i[13]("noPeriodSelected")+"",s;return{c(){t=u.element("p"),e=u.element("strong"),s=u.text(o),u.attr(t,"class","SelfExclusionDescriptionText")},m(r,n){u.insert(r,t,n),u.append(t,e),u.append(e,s)},p(r,n){n[0]&8192&&o!==(o=r[13]("noPeriodSelected")+"")&&u.set_data(s,o)},d(r){r&&u.detach(t)}}}function nu(i){let t,e,o=i[13]("permanentSelfExclusion")+"",s;return{c(){t=u.element("p"),e=u.element("strong"),s=u.text(o),u.attr(t,"class","SelfExclusionDescriptionText")},m(r,n){u.insert(r,t,n),u.append(t,e),u.append(e,s)},p(r,n){n[0]&8192&&o!==(o=r[13]("permanentSelfExclusion")+"")&&u.set_data(s,o)},d(r){r&&u.detach(t)}}}function au(i){let t,e,o,s,r=i[13]("titleSelfExclusion")+"",n,a,l,c,d=i[13]("selfExclusionText1",{values:{operatorname:i[0]}})+"",h,p,m,y=i[13]("selfExclusionText2")+"",A,z,M,I=i[13]("selfExclusionText3",{values:{operatorname:i[0]}})+"",V,re,j,G=i[13]("selfExclusionText4")+"",de,ne,oe,L,k,ae,X,x,_,f=i[13](`${i[8]}`)+"",v,g,w,E,P,N,O,H,U,Z,b,$,D,R=i[13]("save")+"",ie,le,he,It,qo,be=i[14]&&iu(i),Te=u.ensure_array_like(i[4]),J=[];for(let C=0;C<Te.length;C+=1)J[C]=Yi(ji(i,Te,C));let Q=i[10]&&Vi(i);function Ko(C,B){return C[9]?nu:C[11]?su:ru}let lt=Ko(i),ce=lt(i);return{c(){t=u.element("div"),e=u.element("form"),be&&be.c(),o=u.space(),s=u.element("h2"),n=u.text(r),a=u.space(),l=u.element("div"),c=u.element("p"),h=u.text(d),p=u.space(),m=u.element("p"),A=u.text(y),z=u.space(),M=u.element("p"),V=u.text(I),re=u.space(),j=u.element("p"),de=u.text(G),ne=u.space(),oe=u.element("a"),L=u.text(i[1]),ae=u.space(),X=u.element("div"),x=u.element("div"),_=u.element("p"),v=u.text(f),g=u.space(),w=u.svg_element("svg"),E=u.svg_element("g"),P=u.svg_element("path"),N=u.space(),O=u.element("div");for(let C=0;C<J.length;C+=1)J[C].c();H=u.space(),Q&&Q.c(),U=u.space(),Z=u.element("div"),ce.c(),b=u.space(),$=u.element("div"),D=u.element("button"),ie=u.text(R),u.attr(s,"class","PlayerSelfExclusionTitle "+(i[14]?"PlayerSelfExclusionTitleNone":"")),u.attr(c,"class","SelfExclusionDescriptionText"),u.attr(m,"class","SelfExclusionDescriptionText"),u.attr(M,"class","SelfExclusionDescriptionText"),u.attr(oe,"href",k="mailto:"+i[1]),u.attr(j,"class","SelfExclusionDescriptionText"),u.attr(l,"class","SelfExclusionDescription "+(i[14]?"SelfExclusionDescriptionMobile":"")),u.attr(P,"d","M 90 24.25 c 0 -0.896 -0.342 -1.792 -1.025 -2.475 c -1.366 -1.367 -3.583 -1.367 -4.949 0 L 45 60.8 L 5.975 21.775 c -1.367 -1.367 -3.583 -1.367 -4.95 0 c -1.366 1.367 -1.366 3.583 0 4.95 l 41.5 41.5 c 1.366 1.367 3.583 1.367 4.949 0 l 41.5 -41.5 C 89.658 26.042 90 25.146 90 24.25 z"),u.attr(P,"stroke-linecap","round"),u.attr(w,"xmlns","http://www.w3.org/2000/svg"),u.attr(w,"xmlns:xlink","http://www.w3.org/1999/xlink"),u.attr(w,"version","1.1"),u.attr(w,"viewBox","0 0 100 100"),u.attr(w,"xml:space","preserve"),u.attr(w,"class","SelfExclusionConfigIcon"),u.toggle_class(w,"active",i[12]),u.attr(x,"class","SelfExclusionConfigLabel"),u.attr(O,"class","SelfExclusionDropDown"),u.toggle_class(O,"active",i[12]),u.attr(X,"class","SelfExclusionConfigWrapper "+(i[14]?"SelfExclusionConfigWrapperMobile":"")),u.toggle_class(X,"active",i[12]),u.attr(Z,"class","SelfExclusionDescription "+(i[14]?"SelfExclusionDescriptionMobile":"")),u.attr(D,"class",le="SelfExclusionSave "+(i[11]?"active":"")),D.disabled=he=!i[11],u.attr($,"class","SelfExclusionActionButtons "+(i[14]?"SelfExclusionActionButtonsMobile":"")),u.attr(e,"class","SelfExclusionWrapper "+(i[14]?"SelfExclusionWrapperMobile":""))},m(C,B){u.insert(C,t,B),u.append(t,e),be&&be.m(e,null),u.append(e,o),u.append(e,s),u.append(s,n),u.append(e,a),u.append(e,l),u.append(l,c),u.append(c,h),u.append(l,p),u.append(l,m),u.append(m,A),u.append(l,z),u.append(l,M),u.append(M,V),u.append(l,re),u.append(l,j),u.append(j,de),u.append(j,ne),u.append(j,oe),u.append(oe,L),u.append(e,ae),u.append(e,X),u.append(X,x),u.append(x,_),u.append(_,v),u.append(x,g),u.append(x,w),u.append(w,E),u.append(E,P),u.append(X,N),u.append(X,O);for(let q=0;q<J.length;q+=1)J[q]&&J[q].m(O,null);u.append(e,H),Q&&Q.m(e,null),u.append(e,U),u.append(e,Z),ce.m(Z,null),u.append(e,b),u.append(e,$),u.append($,D),u.append(D,ie),i[29](t),It||(qo=[u.listen(x,"click",i[25]),u.listen(D,"click",i[28])],It=!0)},p(C,B){if(C[14]&&be.p(C,B),B[0]&8192&&r!==(r=C[13]("titleSelfExclusion")+"")&&u.set_data(n,r),B[0]&8193&&d!==(d=C[13]("selfExclusionText1",{values:{operatorname:C[0]}})+"")&&u.set_data(h,d),B[0]&8192&&y!==(y=C[13]("selfExclusionText2")+"")&&u.set_data(A,y),B[0]&8193&&I!==(I=C[13]("selfExclusionText3",{values:{operatorname:C[0]}})+"")&&u.set_data(V,I),B[0]&8192&&G!==(G=C[13]("selfExclusionText4")+"")&&u.set_data(de,G),B[0]&2&&u.set_data(L,C[1]),B[0]&2&&k!==(k="mailto:"+C[1])&&u.attr(oe,"href",k),B[0]&8448&&f!==(f=C[13](`${C[8]}`)+"")&&u.set_data(v,f),B[0]&4096&&u.toggle_class(w,"active",C[12]),B[0]&73744){Te=u.ensure_array_like(C[4]);let q;for(q=0;q<Te.length;q+=1){const Go=ji(C,Te,q);J[q]?J[q].p(Go,B):(J[q]=Yi(Go),J[q].c(),J[q].m(O,null))}for(;q<J.length;q+=1)J[q].d(1);J.length=Te.length}B[0]&4096&&u.toggle_class(O,"active",C[12]),B[0]&4096&&u.toggle_class(X,"active",C[12]),C[10]?Q?Q.p(C,B):(Q=Vi(C),Q.c(),Q.m(e,U)):Q&&(Q.d(1),Q=null),lt===(lt=Ko(C))&&ce?ce.p(C,B):(ce.d(1),ce=lt(C),ce&&(ce.c(),ce.m(Z,null))),B[0]&8192&&R!==(R=C[13]("save")+"")&&u.set_data(ie,R),B[0]&2048&&le!==(le="SelfExclusionSave "+(C[11]?"active":""))&&u.attr(D,"class",le),B[0]&2048&&he!==(he=!C[11])&&(D.disabled=he)},i:u.noop,o:u.noop,d(C){C&&u.detach(t),be&&be.d(),u.destroy_each(J,C),Q&&Q.d(),ce.d(),i[29](null),It=!1,u.run_all(qo)}}}function lu(i,t,e){let o;u.component_subscribe(i,u.$format,b=>e(13,o=b));let{endpoint:s="",lang:r="en",operator:n="Everymatrix",supportemail:a="",clientstyling:l="",clientstylingurl:c="",translationurl:d=""}=t,h,p,m=[],y=window.navigator.userAgent,A,z,M="",I="",V="selectAPeriod",re=u.getDevice(y)!=="PC",j=!1,G=!1,de=!1,ne=!1;const oe=()=>{fetch(d).then($=>$.json()).then($=>{Object.keys($).forEach(D=>{Zo(D,$[D])})}).catch($=>{console.log($)})};Object.keys(Qo).forEach(b=>{Zo(b,Qo[b])});const L=()=>{let b=new URL(`${s}/v1/player/selfExclusionSettings`);fetch(b,{method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json"}}).then(D=>k(D)).then(D=>{e(4,m=D.periods)}).catch(D=>{console.log(D)})},k=b=>{if(b.status>=300)throw new Error("There was an error fetching the config");return b.json()},ae=()=>{e(12,ne=!ne)},X=b=>{switch(I=b.text,e(8,V=b.key),e(11,de=!0),e(12,ne=!1),e(9,j=!1),e(10,G=!1),I){case"Until":e(10,G=!0),e(5,A=Lt().add(6,"months").format("YYYY-MM-DD")),e(6,z=Lt().add(5,"years").format("YYYY-MM-DD")),e(7,M=A);break;case"Permanent":e(9,j=!j);break;default:const[$,D]=I.split(" "),R=D.includes("Day")?"days":D.includes("Month")?"months":D.includes("Year")?"years":null;if(!R)return;e(7,M=Lt().add(Number($),R).format("YYYY-MM-DD"));break}},x=b=>{b.preventDefault(),window.postMessage({type:"SetSelfExclusion",selectedPeriodKey:V,selfExclusionExpiryDate:M},window.location.href)},_=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:re},window.location.href)},f=b=>{e(7,M=b.target.value)},v=()=>{p.addEventListener("change",f,!1)},g=()=>{let b=document.createElement("style");b.innerHTML=l,h.appendChild(b)},w=()=>{let b=new URL(c),$=document.createElement("style");fetch(b.href).then(D=>D.text()).then(D=>{$.innerHTML=D,setTimeout(()=>{h.appendChild($)},1)})};u.onMount(()=>()=>{p.removeEventListener("change",f)});const E=()=>{vr(r)},P=()=>_(),N=()=>ae(),O=b=>X(b);function H(b){u.binding_callbacks[b?"unshift":"push"](()=>{p=b,e(3,p)})}const U=b=>x(b);function Z(b){u.binding_callbacks[b?"unshift":"push"](()=>{h=b,e(2,h)})}return i.$$set=b=>{"endpoint"in b&&e(19,s=b.endpoint),"lang"in b&&e(20,r=b.lang),"operator"in b&&e(0,n=b.operator),"supportemail"in b&&e(1,a=b.supportemail),"clientstyling"in b&&e(21,l=b.clientstyling),"clientstylingurl"in b&&e(22,c=b.clientstylingurl),"translationurl"in b&&e(23,d=b.translationurl)},i.$$.update=()=>{i.$$.dirty[0]&8&&p&&v(),i.$$.dirty[0]&524288&&s&&L(),i.$$.dirty[0]&1048576&&r&&E(),i.$$.dirty[0]&4194308&&c&&h&&w(),i.$$.dirty[0]&2097156&&l&&h&&g(),i.$$.dirty[0]&8388608&&d&&oe()},[n,a,h,p,m,A,z,M,V,j,G,de,ne,o,re,ae,X,x,_,s,r,l,c,d,P,N,O,H,U,Z]}class hr extends u.SvelteComponent{constructor(t){super(),u.init(this,t,lu,au,u.safe_not_equal,{endpoint:19,lang:20,operator:0,supportemail:1,clientstyling:21,clientstylingurl:22,translationurl:23},ou,[-1,-1])}get endpoint(){return this.$$.ctx[19]}set endpoint(t){this.$$set({endpoint:t}),u.flush()}get lang(){return this.$$.ctx[20]}set lang(t){this.$$set({lang:t}),u.flush()}get operator(){return this.$$.ctx[0]}set operator(t){this.$$set({operator:t}),u.flush()}get supportemail(){return this.$$.ctx[1]}set supportemail(t){this.$$set({supportemail:t}),u.flush()}get clientstyling(){return this.$$.ctx[21]}set clientstyling(t){this.$$set({clientstyling:t}),u.flush()}get clientstylingurl(){return this.$$.ctx[22]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),u.flush()}get translationurl(){return this.$$.ctx[23]}set translationurl(t){this.$$set({translationurl:t}),u.flush()}}u.create_custom_element(hr,{endpoint:{},lang:{},operator:{},supportemail:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=hr;