widgetlogic.org
Open in
urlscan Pro
2606:4700:20::681a:8b
Public Scan
URL:
https://widgetlogic.org/v2/js/data.js?t=1732492800&ver=6.0.0
Submission: On November 25 via manual from SK — Scanned from DE
Submission: On November 25 via manual from SK — Scanned from DE
Form analysis
0 forms found in the DOMText Content
(()=>{"use strict";var e={365:(e,t,n)=>{n.d(t,{A:()=>c});var s=n(889),r=n.n(s),o=n(786),i=n.n(o)()(r());i.push([e.id,"#wgWidgetScreen{height:100%}.wg-wrapper[data-v-21cbf1ea]{font-family:var(--07379a9f);height:100%}",""]);const c=i},968:(e,t,n)=>{n.d(t,{A:()=>c});var s=n(889),r=n.n(s),o=n(786),i=n.n(o)()(r());i.push([e.id,".wg-loader-p[data-v-55c33628]{background:var(--31d93014);border-bottom:1px solid var(--07d13f9a)}",""]);const c=i},99:(e,t,n)=>{n.d(t,{A:()=>c});var s=n(889),r=n.n(s),o=n(786),i=n.n(o)()(r());i.push([e.id,"#wgWidgetScreen .wg-widget-container[data-v-d05217d0]{padding:8px;display:flex;flex-direction:column}#wgWidgetScreen .wg-widget-container .wgwidget-game__info[data-v-d05217d0]{display:flex;flex-direction:row}",""]);const c=i},766:(e,t,n)=>{n.d(t,{A:()=>c});var s=n(889),r=n.n(s),o=n(786),i=n.n(o)()(r());i.push([e.id,"#wgWidgetScreen .wg-widget-command[data-v-62e86c4d]{display:flex;justify-content:center;flex-direction:column;align-items:center;margin:auto}#wgWidgetScreen .wg-widget-command__icon[data-v-62e86c4d]{width:60px;height:60px}#wgWidgetScreen .wg-widget-command__name[data-v-62e86c4d]{margin-top:4px;color:var(--ca11612e);font-size:var(--91c9f8f8);font-weight:var(--309eeaf1);line-height:16px}",""]);const c=i},984:(e,t,n)=>{n.d(t,{A:()=>c});var s=n(889),r=n.n(s),o=n(786),i=n.n(o)()(r());i.push([e.id,"#wgWidgetScreen .wg-widget-placeholder[data-v-d6249f0a]{display:flex;flex-direction:row;align-items:center;border-radius:2px;padding:4px 8px;background-color:var(--4ad1747f);font-size:var(--2a2c557e);font-weight:var(--240d1ab3);color:var(--27988709);margin:8px 0}#wgWidgetScreen .wg-widget-placeholder__icon[data-v-d6249f0a]{margin-right:4px}",""]);const c=i},672:(e,t,n)=>{n.d(t,{A:()=>c});var s=n(889),r=n.n(s),o=n(786),i=n.n(o)()(r());i.push([e.id,"#wgWidgetScreen .wg-widget-score[data-v-78c5cd43]{margin:0 16px;display:flex;justify-content:center;align-items:center;flex-direction:column}#wgWidgetScreen .wg-widget-score .wg-score[data-v-78c5cd43]{color:var(--0b9df8dc);font-size:var(--8b070edc);font-weight:var(--7de92cec)}#wgWidgetScreen .wg-widget-score .wg-score .wg-green[data-v-78c5cd43]{color:var(--0d99d923)}#wgWidgetScreen .wg-widget-score .wg-score .wg-up-score[data-v-78c5cd43]{color:var(--60b6cab1)}#wgWidgetScreen .wg-widget-score .wg-score .wg-down-score[data-v-78c5cd43]{color:var(--67d7e1a2)}#wgWidgetScreen .wg-widget-score .wg-score .wg-score__divider[data-v-78c5cd43]{margin:0 8px}#wgWidgetScreen .wg-widget-score .wg-status[data-v-78c5cd43]{background:var(--0c1fbafe);color:var(--67d7e1a2);padding:0 8px;border-radius:8px;width:fit-content;margin:auto;font-size:var(--f86c4286);font-weight:var(--03be8d58)}#wgWidgetScreen .wg-widget-score .wg-live[data-v-78c5cd43]{color:var(--60b6cab1)}#wgWidgetScreen .wg-widget-score .wg-pen-score[data-v-78c5cd43]{color:var(--8b9016ac);font-size:var(--f86c4286);font-weight:var(--03be8d58)}",""]);const c=i},429:(e,t,n)=>{n.d(t,{A:()=>c});var s=n(889),r=n.n(s),o=n(786),i=n.n(o)()(r());i.push([e.id,"#wgWidgetScreen .wg-widget-title[data-v-3b301c6f]{color:var(--1084ee47);font-size:var(--3b273f3c);font-weight:var(--73ce6c4f)}",""]);const c=i},786:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",s=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),s&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),s&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,s,r,o){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(s)for(var c=0;c<this.length;c++){var a=this[c][0];null!=a&&(i[a]=!0)}for(var l=0;l<e.length;l++){var u=[].concat(e[l]);s&&i[u[0]]||(void 0!==o&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=o),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),r&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=r):u[4]="".concat(r)),t.push(u))}},t}},889:e=>{e.exports=function(e){return e[1]}},374:(e,t)=>{t.A=(e,t)=>{const n=e.__vccOpts||e;for(const[e,s]of t)n[e]=s;return n}},72:e=>{var t=[];function n(e){for(var n=-1,s=0;s<t.length;s++)if(t[s].identifier===e){n=s;break}return n}function s(e,s){for(var o={},i=[],c=0;c<e.length;c++){var a=e[c],l=s.base?a[0]+s.base:a[0],u=o[l]||0,h="".concat(l," ").concat(u);o[l]=u+1;var d=n(h),p={css:a[1],media:a[2],sourceMap:a[3],supports:a[4],layer:a[5]};if(-1!==d)t[d].references++,t[d].updater(p);else{var f=r(p,s);s.byIndex=c,t.splice(c,0,{identifier:h,updater:f,references:1})}i.push(h)}return i}function r(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,r){var o=s(e=e||[],r=r||{});return function(e){e=e||[];for(var i=0;i<o.length;i++){var c=n(o[i]);t[c].references--}for(var a=s(e,r),l=0;l<o.length;l++){var u=n(o[l]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}o=a}}},659:e=>{var t={};e.exports=function(e,n){var s=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(n)}},540:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},56:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},825:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var s="";n.supports&&(s+="@supports (".concat(n.supports,") {")),n.media&&(s+="@media ".concat(n.media," {"));var r=void 0!==n.layer;r&&(s+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),s+=n.css,r&&(s+="}"),n.media&&(s+="}"),n.supports&&(s+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(s+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(s,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},113:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}}},t={};function n(s){var r=t[s];if(void 0!==r)return r.exports;var o=t[s]={id:s,exports:{}};return e[s](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var s in t)n.o(t,s)&&!n.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0;var s={};n.r(s),n.d(s,{colors:()=>u,fonts:()=>l,state:()=>h});const r="football",o="sport:"+r,i={en:["At the moment there are no Live matches and there are no scheduled matches for the next 2 days.","At the moment there are no Live matches, the closest match is"],de:["At the moment there are no Live matches and there are no scheduled matches for the next 2 days.","At the moment there are no Live matches, the closest match is"],pt:["At the moment there are no Live matches and there are no scheduled matches for the next 2 days.","At the moment there are no Live matches, the closest match is"],id:["At the moment there are no Live matches and there are no scheduled matches for the next 2 days.","At the moment there are no Live matches, the closest match is"],it:["At the moment there are no Live matches and there are no scheduled matches for the next 2 days.","At the moment there are no Live matches, the closest match is"],ko:["At the moment there are no Live matches and there are no scheduled matches for the next 2 days.","At the moment there are no Live matches, the closest match is"],pl:["At the moment there are no Live matches and there are no scheduled matches for the next 2 days.","At the moment there are no Live matches, the closest match is"],ru:["At the moment there are no Live matches and there are no scheduled matches for the next 2 days.","At the moment there are no Live matches, the closest match is"],es:["At the moment there are no Live matches and there are no scheduled matches for the next 2 days.","At the moment there are no Live matches, the closest match is"],th:["At the moment there are no Live matches and there are no scheduled matches for the next 2 days.","At the moment there are no Live matches, the closest match is"],tr:["At the moment there are no Live matches and there are no scheduled matches for the next 2 days.","At the moment there are no Live matches, the closest match is"],uk:["At the moment there are no Live matches and there are no scheduled matches for the next 2 days.","At the moment there are no Live matches, the closest match is"],vi:["At the moment there are no Live matches and there are no scheduled matches for the next 2 days.","At the moment there are no Live matches, the closest match is"],nl:["At the moment there are no Live matches and there are no scheduled matches for the next 2 days.","At the moment there are no Live matches, the closest match is"],ro:["At the moment there are no Live matches and there are no scheduled matches for the next 2 days.","At the moment there are no Live matches, the closest match is"],ka:["At the moment there are no Live matches and there are no scheduled matches for the next 2 days.","At the moment there are no Live matches, the closest match is"],hy:["At the moment there are no Live matches and there are no scheduled matches for the next 2 days.","At the moment there are no Live matches, the closest match is"],az:["At the moment there are no Live matches and there are no scheduled matches for the next 2 days.","At the moment there are no Live matches, the closest match is"],el:["At the moment there are no Live matches and there are no scheduled matches for the next 2 days.","At the moment there are no Live matches, the closest match is"],uz:["At the moment there are no Live matches and there are no scheduled matches for the next 2 days.","At the moment there are no Live matches, the closest match is"]},c={en:["Finished","Half time","Postponed","Cancelled","Results only","Live","Finished (OT)","Finished (P)","Awarded","Extra HT","Penalties","Pause","Break time","Q1","Q2","Q3","Q4","OT"],fr:["Finis","Mi-temps","Reporté","Annulé","Résultats uniquement","En ligne","Terminé (Prol.)","Terminé (P)","Récompensé","HT supplémentaire","Pénalités","Pause","Temps de pause","Q1","Q2","Q3","Q4","Prol."],pt:["Completado","Meia hora","Adiado","Cancelado","Apenas resultados","Ao vivo","Finalizado (TE)","Finalizado (P)","AtribuÃdo","Intervalo extra","Penalidades","Pausa","Tempo de intervalo","Q1","Q2","Q3","Q4","TE"],de:["Beendet","Halbzeit","Verschoben","Annulliert","Nur Ergebnisse","Live","Beendet (Verl.)","Beendet (P)","Ausgezeichnet","Zusätzliche HT","Strafstöße","Pause","Pausezeit","Q1","Q2","Q3","Q4","Verl."],id:["Selesai","Setengah waktu","Ditunda","Dibatalkan","Hanya hasil","Langsung","Selesai (WT)","Selesai (P)","Diberikan","HT tambahan","Penalti","Berhenti sebentar","Waktu istirahat","Q1","Q2","Q3","Q4","WT"],it:["Finito","Metà tempo","posticipato","Annullato","Solo risultati","Dal vivo","Finito (Suppl.)","Finito (P)","Premiato","HT extra","Rigori","Pausa","Tempo di pausa","Q1","Q2","Q3","Q4","Suppl."],ko:["완성 ëœ","하프 타임","연기","취소 ëœ","결과만","ìƒì¤‘계","종료 (연장)","종료 (P)","수ìƒ","추가 HT","페ë„í‹°","중지","íœ´ì‹ ì‹œê°„","Q1","Q2","Q3","Q4","연장"],pl:["ZakoÅ„czone","PoÅ‚owa czasu","OdÅ‚ożony","OdwoÅ‚any","Tylko wyniki","Na żywo","ZakoÅ„czony (Dogr.)","ZakoÅ„czony (P)","Wyróżniony","Dodatkowa HT","Karne","Przerwa","Czas przerwy","Q1","Q2","Q3","Q4","Dogr."],ru:["Завершен","Половина времени","ПеренеÑен","Отменен","Только результаты","Ð’ прÑмом Ñфире","Завершен (ОТ)","Завершен (П)","Ðагражден","Дополнительный перерыв","Пенальти","Пауза","Перерыв","Q1","Q2","Q3","Q4","ОТ"],es:["Completado","Medio tiempo","Aplazado","Cancelado","Solo resultados","En vivo","Terminado (Prorr.)","Terminado (P)","Concedido","Descanso extra","Penaltis","Pausa","Tiempo de descanso","Q1","Q2","Q3","Q4","Prorr."],th:["ที่เสร็จเรียบร้à¸à¸¢","ครึ่งà¹à¸£à¸","เลื่à¸à¸™à¸à¸à¸à¹„ป","ยà¸à¹€à¸¥à¸´à¸","เฉพาะผลลัพธ์","ถ่ายทà¸à¸”สด","สิ้นสุด (ต่à¸à¹€à¸§à¸¥à¸²)","สิ้นสุด (P)","ได้รับรางวัล","พัà¸à¹€à¸žà¸´à¹ˆà¸¡à¹€à¸•à¸´à¸¡ HT","จุดโทษ","หยุด","เวลาพัà¸","Q1","Q2","Q3","Q4","ต่à¸à¹€à¸§à¸¥à¸²"],tr:["BitmiÅŸ","Yarıya","Ertelenen","Ä°ptal edildi","Sadece sonuçlar","Canlı","BitmiÅŸ (Uz.)","BitmiÅŸ (P)","Layık görülmek","Ekstra HT","Penaltılar","Duraklat","Mola zamanı","Q1","Q2","Q3","Q4","Uz."],uk:["Завершено","Половина чаÑу","ПеренеÑений","СкаÑований","Тільки результати","Ðаживо","Закінчено (ДЧ)","Закінчено (П)","Ðагороджений","Додатковиа перерва","Пенальті","Пауза","Перерва","Q1","Q2","Q3","Q4","ДЧ"],vi:["Hoà n thà nh","Ná»a thá»i gian","Hoãn lại","Äã hủy","Chỉ kết quả","Trá»±c tiếp","Hoà n thà nh (PG)","Hoà n thà nh (P)","Trao giải thưởng","Nghỉ giữa hiệp phụ","Phạt Ä‘á»n","Tạm ngừng","Thá»i gian nghỉ","Q1","Q2","Q3","Q4","PG"],nl:["Afgelopen","Rust","Uitgesteld","Geannuleerd","Alleen resultaten","Live","Afgerond (Verl.)","Afgerond (P)","Toegekend","Extra HT","Strafschoppen","Pauze","Pauzetijd","Q1","Q2","Q3","Q4","Verl."],ro:["Terminat","Jumătate de timp","Amânat","Anulat","Doar rezultate","Live","Finalizat (Prel.)","Finalizat (P)","Acordat","HT suplimentar","Penalități","Pauză","Timp de pauză","Q1","Q2","Q3","Q4","Prel."],ka:["დáƒáƒ¡áƒ ულდáƒ","Ნáƒáƒ®áƒ”ვáƒáƒ ი დრáƒ","გáƒáƒ“áƒáƒ˜áƒ“áƒ","გáƒáƒ£áƒ¥áƒ›áƒ”ბულიáƒ","მხáƒáƒšáƒáƒ“ შედეგები","პირდáƒáƒžáƒ˜áƒ ი","დáƒáƒ¡áƒ ულდრ(დრრგáƒáƒ’რძ.)","დáƒáƒ¡áƒ ულდრ(P)","Დáƒáƒ¯áƒ˜áƒšáƒ“áƒáƒ”ბული","დáƒáƒ›áƒáƒ¢áƒ”ბითი HT","პენáƒáƒšáƒ¢áƒ”ბი","პáƒáƒ£áƒ–áƒ","შესვენების დრáƒ","Q1","Q2","Q3","Q4","დრრგáƒáƒ’რძ."],hy:["Ô±Õ¾Õ¡Ö€Õ¿Õ¾Õ¥Ö","Ô¿Õ¥Õ½ ÕªÕ¡Õ´","Õ€Õ¥Õ¿Õ¡Õ±Õ£Õ¾Õ¥Õ¬ Õ§","Õ‰Õ¥Õ²ÕµÕ¡Õ¬ Õ§ Õ°Õ¡ÕµÕ¿Õ¡Ö€Õ¡Ö€Õ¾Õ¥Õ¬","Õ„Õ«Õ¡ÕµÕ¶ Õ¡Ö€Õ¤ÕµÕ¸Ö‚Õ¶Ö„Õ¶Õ¥Ö€Õ¨","ÕˆÖ‚Õ²Õ«Õ²","Ô±Õ¾Õ¡Ö€Õ¿Õ¾Õ¡Õ® Õ§ (Õ€Õ¡Õ¾. ÕªÕ¡Õ´.)","Ô±Õ¾Õ¡Ö€Õ¿Õ¾Õ¡Õ® Õ§ (P)","ÕŠÕ¡Ö€Õ£Ö‡Õ¡Õ¿Ö€Õ¾Õ¥Õ¬ Õ§","Ô±Õ¾Õ¥Õ¬Õ«Õ¶ HT","ÕŠÕ¥Õ¶Õ¡Õ¬Õ¿Õ«Õ¶Õ¥Ö€","Ô´Õ¡Õ¤Õ¡Ö€","Ô´Õ¡Õ¤Õ¡Ö€Õ« ÕªÕ¡Õ´Õ¡Õ¶Õ¡Õ¯","Q1","Q2","Q3","Q4","Õ€Õ¡Õ¾. ÕªÕ¡Õ´."],az:["BaÅŸa çatdı","Yarım vaxt","TÉ™xirÉ™ salındı","LaÄŸv edildi","Yalnız nÉ™ticÉ™lÉ™r","Canlı","Bitdi (Uzatma)","Bitdi (P)","Mükafatlandırıldı","ÆlavÉ™ HT","Penalti","FasilÉ™","FasilÉ™ vaxtı","Q1","Q2","Q3","Q4","Uzatma"],el:["ΟλοκληÏώθηκε","ΗμίχÏονο","Αναβλήθηκε","ΑκυÏώθηκε","Μόνο αποτελÎσματα","Ζωντανά","ΟλοκληÏώθηκε (ΠαÏ.)","ΟλοκληÏώθηκε (P)","Î’ÏαβευμÎνο","ΕπιπλÎον HT","Î Îναλτι","ΠαÏση","Διάλειμμα","Q1","Q2","Q3","Q4","ΠαÏ."],uz:["Bajarildi","Yarim vaqt","Kechiktirildi","Bekor qilindi","Faqat natijalar","Jonli","Tugadi (Uzv.)","Tugadi (P)","Mukofotlangan","Qo'shimcha HT","Penalti tiplari","Pauza","Tanaffus vaqti","Q1","Q2","Q3","Q4","Uzv."]},a={en:"Information will be available later",fr:"Les informations seront disponibles ultérieurement",pt:"As informações estarão disponÃveis posteriormente",de:"Informationen werden zu einem späteren Zeitpunkt verfügbar sein",id:"Informasi akan tersedia kemudian",it:"Le informazioni saranno disponibili in seguito",ko:"ì •ë³´ëŠ” 추후 ì œê³µë ì˜ˆì •ìž…ë‹ˆë‹¤.",pl:"Informacje bÄ™dÄ… dostÄ™pne później",ru:"Ð˜Ð½Ñ„Ð¾Ñ€Ð¼Ð°Ñ†Ð¸Ñ Ð±ÑƒÐ´ÐµÑ‚ доÑтупна позже",es:"La información estará disponible más adelante",th:"ข้à¸à¸¡à¸¹à¸¥à¸ˆà¸°à¸žà¸£à¹‰à¸à¸¡à¹ƒà¸Šà¹‰à¸‡à¸²à¸™à¹ƒà¸™à¸ ายหลัง",tr:"Bilgi daha sonra sunulacaktır",uk:"Ð†Ð½Ñ„Ð¾Ñ€Ð¼Ð°Ñ†Ñ–Ñ Ð±ÑƒÐ´Ðµ доÑтупна пізніше",vi:"Thông tin sẽ có sẵn sau",nl:"Informatie is later beschikbaar",ro:"InformaÈ›iile vor fi disponibile ulterior",ka:"ინფáƒáƒ მáƒáƒªáƒ˜áƒ მáƒáƒ’ვიáƒáƒœáƒ”ბით იქნებრხელმისáƒáƒ¬áƒ•áƒ“áƒáƒ›áƒ˜",hy:"ÕÕ¥Õ²Õ¥Õ¯Õ¡Õ¿Õ¾Õ¸Ö‚Õ©ÕµÕ¸Ö‚Õ¶Õ¨ Õ°Õ¡Õ½Õ¡Õ¶Õ¥Õ¬Õ« Õ¯Õ¬Õ«Õ¶Õ« Õ¡Õ¾Õ¥Õ¬Õ« Õ¸Ö‚Õ·",az:"MÉ™lumat daha sonra mövcud olacaq",el:"Οι πληÏοφοÏίες θα είναι διαθÎσιμες αÏγότεÏα",uz:"Ma'lumot keyinchalik beriladi"},l={main_font:"Roboto",regular:"400",medium500:"500",bold:"600",bold700:"700",small:"10px",medium:"12px",large:"14px",large32:"32px"},u={primary_black:"#212B36",primary_grey:"#8595A5",white_secondary:"#F9FAFB",secondary_grey:"#6A7B8B",green:"#1B883F",red:"#D70C17",lightGray:"#30365B",midnight:"#111936"},h={on:!0,off:!1};function d(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}Object.freeze(l),Object.freeze(u),Object.freeze(h);const p={},f=[],m=()=>{},_=()=>!1,g=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),b=e=>e.startsWith("onUpdate:"),v=Object.assign,y=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},w=Object.prototype.hasOwnProperty,S=(e,t)=>w.call(e,t),T=Array.isArray,x=e=>"[object Map]"===R(e),C=e=>"[object Set]"===R(e),k=e=>"function"==typeof e,E=e=>"string"==typeof e,P=e=>"symbol"==typeof e,A=e=>null!==e&&"object"==typeof e,L=e=>(A(e)||k(e))&&k(e.then)&&k(e.catch),O=Object.prototype.toString,R=e=>O.call(e),j=e=>R(e).slice(8,-1),I=e=>"[object Object]"===R(e),M=e=>E(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,D=d(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),z=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},F=/-(\w)/g,U=z((e=>e.replace(F,((e,t)=>t?t.toUpperCase():"")))),Q=/\B([A-Z])/g,N=z((e=>e.replace(Q,"-$1").toLowerCase())),$=z((e=>e.charAt(0).toUpperCase()+e.slice(1))),B=z((e=>e?`on${$(e)}`:"")),W=(e,t)=>!Object.is(e,t),V=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},H=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},q=e=>{const t=parseFloat(e);return isNaN(t)?e:t},J=e=>{const t=E(e)?Number(e):NaN;return isNaN(t)?e:t};let G;const K=()=>G||(G="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{});function Z(e){if(T(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=E(s)?te(s):Z(s);if(r)for(const e in r)t[e]=r[e]}return t}if(E(e)||A(e))return e}const Y=/;(?![^(]*\))/g,X=/:([^]+)/,ee=/\/\*[^]*?\*\//g;function te(e){const t={};return e.replace(ee,"").split(Y).forEach((e=>{if(e){const n=e.split(X);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function ne(e){let t="";if(E(e))t=e;else if(T(e))for(let n=0;n<e.length;n++){const s=ne(e[n]);s&&(t+=s+" ")}else if(A(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const se=d("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function re(e){return!!e||""===e}const oe=e=>!(!e||!0!==e.__v_isRef),ie=e=>E(e)?e:null==e?"":T(e)||A(e)&&(e.toString===O||!k(e.toString))?oe(e)?ie(e.value):JSON.stringify(e,ce,2):String(e),ce=(e,t)=>oe(t)?ce(e,t.value):x(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n],s)=>(e[ae(t,s)+" =>"]=n,e)),{})}:C(t)?{[`Set(${t.size})`]:[...t.values()].map((e=>ae(e)))}:P(t)?ae(t):!A(t)||T(t)||I(t)?t:String(t),ae=(e,t="")=>{var n;return P(e)?`Symbol(${null!=(n=e.description)?n:t})`:e};let le,ue;class he{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=le,!e&&le&&(this.index=(le.scopes||(le.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=le;try{return le=this,e()}finally{le=t}}}on(){le=this}off(){le=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0,this._active=!1}}}class de{constructor(e,t,n,s){this.fn=e,this.trigger=t,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,function(e,t=le){t&&t.active&&t.effects.push(e)}(this,s)}get dirty(){if(2===this._dirtyLevel||3===this._dirtyLevel){this._dirtyLevel=1,ye();for(let e=0;e<this._depsLength;e++){const t=this.deps[e];if(t.computed&&(pe(t.computed),this._dirtyLevel>=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),we()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=ge,t=ue;try{return ge=!0,ue=this,this._runnings++,fe(this),this.fn()}finally{me(this),this._runnings--,ue=t,ge=e}}stop(){this.active&&(fe(this),me(this),this.onStop&&this.onStop(),this.active=!1)}}function pe(e){return e.value}function fe(e){e._trackId++,e._depsLength=0}function me(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)_e(e.deps[t],e);e.deps.length=e._depsLength}}function _e(e,t){const n=e.get(t);void 0!==n&&t._trackId!==n&&(e.delete(t),0===e.size&&e.cleanup())}let ge=!0,be=0;const ve=[];function ye(){ve.push(ge),ge=!1}function we(){const e=ve.pop();ge=void 0===e||e}function Se(){be++}function Te(){for(be--;!be&&Ce.length;)Ce.shift()()}function xe(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&_e(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Ce=[];function ke(e,t,n){Se();for(const n of e.keys()){let s;n._dirtyLevel<t&&(null!=s?s:s=e.get(n)===n._trackId)&&(n._shouldSchedule||(n._shouldSchedule=0===n._dirtyLevel),n._dirtyLevel=t),n._shouldSchedule&&(null!=s?s:s=e.get(n)===n._trackId)&&(n.trigger(),n._runnings&&!n.allowRecurse||2===n._dirtyLevel||(n._shouldSchedule=!1,n.scheduler&&Ce.push(n.scheduler)))}Te()}const Ee=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Pe=new WeakMap,Ae=Symbol(""),Le=Symbol("");function Oe(e,t,n){if(ge&&ue){let t=Pe.get(e);t||Pe.set(e,t=new Map);let s=t.get(n);s||t.set(n,s=Ee((()=>t.delete(n)))),xe(ue,s)}}function Re(e,t,n,s,r,o){const i=Pe.get(e);if(!i)return;let c=[];if("clear"===t)c=[...i.values()];else if("length"===n&&T(e)){const e=Number(s);i.forEach(((t,n)=>{("length"===n||!P(n)&&n>=e)&&c.push(t)}))}else switch(void 0!==n&&c.push(i.get(n)),t){case"add":T(e)?M(n)&&c.push(i.get("length")):(c.push(i.get(Ae)),x(e)&&c.push(i.get(Le)));break;case"delete":T(e)||(c.push(i.get(Ae)),x(e)&&c.push(i.get(Le)));break;case"set":x(e)&&c.push(i.get(Ae))}Se();for(const e of c)e&&ke(e,4);Te()}const je=d("__proto__,__v_isRef,__isVue"),Ie=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(P)),Me=De();function De(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=St(this);for(let e=0,t=this.length;e<t;e++)Oe(n,0,e+"");const s=n[t](...e);return-1===s||!1===s?n[t](...e.map(St)):s}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){ye(),Se();const n=St(this)[t].apply(this,e);return Te(),we(),n}})),e}function ze(e){P(e)||(e=String(e));const t=St(this);return Oe(t,0,e),t.hasOwnProperty(e)}class Fe{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const s=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!s;if("__v_isReadonly"===t)return s;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(s?r?ft:pt:r?dt:ht).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const o=T(e);if(!s){if(o&&S(Me,t))return Reflect.get(Me,t,n);if("hasOwnProperty"===t)return ze}const i=Reflect.get(e,t,n);return(P(t)?Ie.has(t):je(t))?i:(s||Oe(e,0,t),r?i:Pt(i)?o&&M(t)?i:i.value:A(i)?s?_t(i):mt(i):i)}}class Ue extends Fe{constructor(e=!1){super(!1,e)}set(e,t,n,s){let r=e[t];if(!this._isShallow){const t=vt(r);if(yt(n)||vt(n)||(r=St(r),n=St(n)),!T(e)&&Pt(r)&&!Pt(n))return!t&&(r.value=n,!0)}const o=T(e)&&M(t)?Number(t)<e.length:S(e,t),i=Reflect.set(e,t,n,s);return e===St(s)&&(o?W(n,r)&&Re(e,"set",t,n):Re(e,"add",t,n)),i}deleteProperty(e,t){const n=S(e,t),s=(e[t],Reflect.deleteProperty(e,t));return s&&n&&Re(e,"delete",t,void 0),s}has(e,t){const n=Reflect.has(e,t);return P(t)&&Ie.has(t)||Oe(e,0,t),n}ownKeys(e){return Oe(e,0,T(e)?"length":Ae),Reflect.ownKeys(e)}}class Qe extends Fe{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const Ne=new Ue,$e=new Qe,Be=new Ue(!0),We=e=>e,Ve=e=>Reflect.getPrototypeOf(e);function He(e,t,n=!1,s=!1){const r=St(e=e.__v_raw),o=St(t);n||(W(t,o)&&Oe(r,0,t),Oe(r,0,o));const{has:i}=Ve(r),c=s?We:n?xt:Tt;return i.call(r,t)?c(e.get(t)):i.call(r,o)?c(e.get(o)):void(e!==r&&e.get(t))}function qe(e,t=!1){const n=this.__v_raw,s=St(n),r=St(e);return t||(W(e,r)&&Oe(s,0,e),Oe(s,0,r)),e===r?n.has(e):n.has(e)||n.has(r)}function Je(e,t=!1){return e=e.__v_raw,!t&&Oe(St(e),0,Ae),Reflect.get(e,"size",e)}function Ge(e,t=!1){t||yt(e)||vt(e)||(e=St(e));const n=St(this);return Ve(n).has.call(n,e)||(n.add(e),Re(n,"add",e,e)),this}function Ke(e,t,n=!1){n||yt(t)||vt(t)||(t=St(t));const s=St(this),{has:r,get:o}=Ve(s);let i=r.call(s,e);i||(e=St(e),i=r.call(s,e));const c=o.call(s,e);return s.set(e,t),i?W(t,c)&&Re(s,"set",e,t):Re(s,"add",e,t),this}function Ze(e){const t=St(this),{has:n,get:s}=Ve(t);let r=n.call(t,e);r||(e=St(e),r=n.call(t,e)),s&&s.call(t,e);const o=t.delete(e);return r&&Re(t,"delete",e,void 0),o}function Ye(){const e=St(this),t=0!==e.size,n=e.clear();return t&&Re(e,"clear",void 0,void 0),n}function Xe(e,t){return function(n,s){const r=this,o=r.__v_raw,i=St(o),c=t?We:e?xt:Tt;return!e&&Oe(i,0,Ae),o.forEach(((e,t)=>n.call(s,c(e),c(t),r)))}}function et(e,t,n){return function(...s){const r=this.__v_raw,o=St(r),i=x(o),c="entries"===e||e===Symbol.iterator&&i,a="keys"===e&&i,l=r[e](...s),u=n?We:t?xt:Tt;return!t&&Oe(o,0,a?Le:Ae),{next(){const{value:e,done:t}=l.next();return t?{value:e,done:t}:{value:c?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function tt(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function nt(){const e={get(e){return He(this,e)},get size(){return Je(this)},has:qe,add:Ge,set:Ke,delete:Ze,clear:Ye,forEach:Xe(!1,!1)},t={get(e){return He(this,e,!1,!0)},get size(){return Je(this)},has:qe,add(e){return Ge.call(this,e,!0)},set(e,t){return Ke.call(this,e,t,!0)},delete:Ze,clear:Ye,forEach:Xe(!1,!0)},n={get(e){return He(this,e,!0)},get size(){return Je(this,!0)},has(e){return qe.call(this,e,!0)},add:tt("add"),set:tt("set"),delete:tt("delete"),clear:tt("clear"),forEach:Xe(!0,!1)},s={get(e){return He(this,e,!0,!0)},get size(){return Je(this,!0)},has(e){return qe.call(this,e,!0)},add:tt("add"),set:tt("set"),delete:tt("delete"),clear:tt("clear"),forEach:Xe(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((r=>{e[r]=et(r,!1,!1),n[r]=et(r,!0,!1),t[r]=et(r,!1,!0),s[r]=et(r,!0,!0)})),[e,n,t,s]}const[st,rt,ot,it]=nt();function ct(e,t){const n=t?e?it:ot:e?rt:st;return(t,s,r)=>"__v_isReactive"===s?!e:"__v_isReadonly"===s?e:"__v_raw"===s?t:Reflect.get(S(n,s)&&s in t?n:t,s,r)}const at={get:ct(!1,!1)},lt={get:ct(!1,!0)},ut={get:ct(!0,!1)},ht=new WeakMap,dt=new WeakMap,pt=new WeakMap,ft=new WeakMap;function mt(e){return vt(e)?e:gt(e,!1,Ne,at,ht)}function _t(e){return gt(e,!0,$e,ut,pt)}function gt(e,t,n,s,r){if(!A(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const o=r.get(e);if(o)return o;const i=(c=e).__v_skip||!Object.isExtensible(c)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(j(c));var c;if(0===i)return e;const a=new Proxy(e,2===i?s:n);return r.set(e,a),a}function bt(e){return vt(e)?bt(e.__v_raw):!(!e||!e.__v_isReactive)}function vt(e){return!(!e||!e.__v_isReadonly)}function yt(e){return!(!e||!e.__v_isShallow)}function wt(e){return!!e&&!!e.__v_raw}function St(e){const t=e&&e.__v_raw;return t?St(t):e}const Tt=e=>A(e)?mt(e):e,xt=e=>A(e)?_t(e):e;class Ct{constructor(e,t,n,s){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new de((()=>e(this._value)),(()=>Et(this,2===this.effect._dirtyLevel?2:3))),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=n}get value(){const e=St(this);return e._cacheable&&!e.effect.dirty||!W(e._value,e._value=e.effect.run())||Et(e,4),kt(e),e.effect._dirtyLevel>=2&&Et(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function kt(e){var t;ge&&ue&&(e=St(e),xe(ue,null!=(t=e.dep)?t:e.dep=Ee((()=>e.dep=void 0),e instanceof Ct?e:void 0)))}function Et(e,t=4,n,s){const r=(e=St(e)).dep;r&&ke(r,t)}function Pt(e){return!(!e||!0!==e.__v_isRef)}function At(e){return n=!1,Pt(t=e)?t:new Lt(t,n);var t,n}class Lt{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:St(e),this._value=t?e:Tt(e)}get value(){return kt(this),this._value}set value(e){const t=this.__v_isShallow||yt(e)||vt(e);e=t?e:St(e),W(e,this._rawValue)&&(this._rawValue,this._rawValue=e,this._value=t?e:Tt(e),Et(this,4))}}function Ot(e){return Pt(e)?e.value:e}const Rt={get:(e,t,n)=>Ot(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return Pt(r)&&!Pt(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function jt(e){return bt(e)?e:new Proxy(e,Rt)}class It{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return function(e,t){const n=Pe.get(e);return n&&n.get(t)}(St(this._object),this._key)}}class Mt{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Dt(e,t,n){return Pt(e)?e:k(e)?new Mt(e):A(e)&&arguments.length>1?function(e,t,n){const s=e[t];return Pt(s)?s:new It(e,t,n)}(e,t,n):At(e)}const zt="plan",Ft="live",Ut="results_only",Qt="cancelled",Nt="postponed",$t="finished",Bt="finished_overtime",Wt="finished_penalty",Vt="finished_technical_defeat",Ht="halftime",qt="pause",Jt="1st_quarter",Gt="2nd_quarter",Kt="3rd_quarter",Zt="4th_quarter",Yt="overtime",Xt="break_time",en="extra_time_halftime",tn="penalties",nn=[Ft,Ut,Ht,qt,Jt,Gt,Kt,Zt,Yt,Xt,en,tn],sn=[Ft,Ht,qt,Jt,Gt,Kt,Zt,Yt,Xt,en,tn],rn=[zt,Ft,Qt,Nt,$t,Bt,Wt,Vt,Ut,Ht,qt,Jt,Gt,Kt,Zt,Xt,Yt,en,tn];function on(e,t){const n=e=>e&&"object"==typeof e,s=JSON.parse(JSON.stringify(e));return Object.keys(e).forEach((e=>{const r=s[e],o=t[e];n(r)&&n(o)?s[e]=on(r,o):s[e]=o??s[e]})),s}const cn=e=>e<10?"0"+e:e,an=e=>cn(e.getHours())+":"+cn(e.getMinutes()),ln=mt({matches:{},loading:At(!0)}),un=async()=>{const e=["live","today","tomorrow"];let t=null;for(let n in e)if(dn.initData={period:e[n]},t=await dn.socketEmit(dn.rpcSport,dn.initData),t&&t.length)break;(e=>{if(!e)return void console.log("Data is empty...");console.log("data received. period:"+dn.initData.period);const t=(e=>{dn.debug&&console.log("data:",e);const t={};return e.forEach((e=>{const n=new Date(1e3*e.date),s=rn.includes(e.stage)?e.stage:console.log("unknown stages for item:",e)??e.stage,r={...on({slug:"?",matchTime:null,home:{img:null,abbr:null,name:"?",periods:null,score:null},away:{img:null,abbr:null,name:"?",periods:null,score:null}},e),league:on({slug:"?",name:"?",country:"?",img:null},e.league),date:(o=n,cn(o.getDate())+"/"+cn(o.getMonth()+1)+"/"+cn(o.getFullYear())),time:an(n),stage:s,live:nn.includes(s),details:{loading:!1,show:!1,events:{body:{}}}};var o;r.home.abbr=r.home.abbr||r.home.name.substr(0,3).toUpperCase(),r.away.abbr=r.away.abbr||r.away.name.substr(0,3).toUpperCase(),t[r.slug]=r})),t})(e);ln.matches=t,ln.loading=At(!1)})(t)};let hn=null;const dn={debug:!1,mainId:"wgWidgetScreen",matchSlug:null,socket:null,sub:null,sport:null,rpcSport:null,rpcSportDetail:null,initData:null,lang:"en",empty:"",widgetMes:[],style:s,resetAutoUpdate:()=>{hn&&clearTimeout(hn),hn=setTimeout((()=>{console.log("auto update match by timeout"),un()}),6e5)},getFullMatch:()=>un(),async socketEmit(...e){let t=3,n=null;const s=async()=>{try{n=await this.socket.rpc(e[0],{lang:this.lang,...e[1]})}catch(e){console.log(e),t&&(t--,await s())}};return await s(),n?.data??[]}};function pn(e,t,n,s){try{return s?e(...s):e()}catch(e){mn(e,t,n)}}function fn(e,t,n,s){if(k(e)){const r=pn(e,t,n,s);return r&&L(r)&&r.catch((e=>{mn(e,t,n)})),r}if(T(e)){const r=[];for(let o=0;o<e.length;o++)r.push(fn(e[o],t,n,s));return r}}function mn(e,t,n,s=!0){if(t&&t.vnode,t){let s=t.parent;const r=t.proxy,o=`https://vuejs.org/error-reference/#runtime-${n}`;for(;s;){const t=s.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,r,o))return;s=s.parent}const i=t.appContext.config.errorHandler;if(i)return ye(),pn(i,null,10,[e,r,o]),void we()}!function(e){console.error(e)}(e)}let _n=!1,gn=!1;const bn=[];let vn=0;const yn=[];let wn=null,Sn=0;const Tn=Promise.resolve();let xn=null;function Cn(e){const t=xn||Tn;return e?t.then(this?e.bind(this):e):t}function kn(e){bn.length&&bn.includes(e,_n&&e.allowRecurse?vn+1:vn)||(null==e.id?bn.push(e):bn.splice(function(e){let t=vn+1,n=bn.length;for(;t<n;){const s=t+n>>>1,r=bn[s],o=Ln(r);o<e||o===e&&r.pre?t=s+1:n=s}return t}(e.id),0,e),En())}function En(){_n||gn||(gn=!0,xn=Tn.then(Rn))}function Pn(e,t,n=(_n?vn+1:0)){for(;n<bn.length;n++){const t=bn[n];if(t&&t.pre){if(e&&t.id!==e.uid)continue;bn.splice(n,1),n--,t()}}}function An(e){if(yn.length){const e=[...new Set(yn)].sort(((e,t)=>Ln(e)-Ln(t)));if(yn.length=0,wn)return void wn.push(...e);for(wn=e,Sn=0;Sn<wn.length;Sn++){const e=wn[Sn];!1!==e.active&&e()}wn=null,Sn=0}}const Ln=e=>null==e.id?1/0:e.id,On=(e,t)=>{const n=Ln(e)-Ln(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Rn(e){gn=!1,_n=!0,bn.sort(On);try{for(vn=0;vn<bn.length;vn++){const e=bn[vn];e&&!1!==e.active&&pn(e,e.i,e.i?15:14)}}finally{vn=0,bn.length=0,An(),_n=!1,xn=null,(bn.length||yn.length)&&Rn(e)}}let jn=null,In=null;function Mn(e){const t=jn;return jn=e,In=e&&e.type.__scopeId||null,t}function Dn(e){In=e}function zn(){In=null}function Fn(e,t,n,s){const r=e.dirs,o=t&&t.dirs;for(let i=0;i<r.length;i++){const c=r[i];o&&(c.oldValue=o[i].value);let a=c.dir[s];a&&(ye(),fn(a,n,8,[e.el,c,e,t]),we())}}const Un=Symbol("_leaveCb"),Qn=Symbol("_enterCb");const Nn=[Function,Array],$n={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Nn,onEnter:Nn,onAfterEnter:Nn,onEnterCancelled:Nn,onBeforeLeave:Nn,onLeave:Nn,onAfterLeave:Nn,onLeaveCancelled:Nn,onBeforeAppear:Nn,onAppear:Nn,onAfterAppear:Nn,onAppearCancelled:Nn},Bn=e=>{const t=e.subTree;return t.component?Bn(t.component):t},Wn={name:"BaseTransition",props:$n,setup(e,{slots:t}){const n=so(),s=function(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return cs((()=>{e.isMounted=!0})),us((()=>{e.isUnmounting=!0})),e}();return()=>{const r=t.default&&Zn(t.default(),!0);if(!r||!r.length)return;let o=r[0];if(r.length>1){let e=!1;for(const t of r)if(t.type!==Or){o=t,e=!0;break}}const i=St(e),{mode:c}=i;if(s.isLeaving)return Jn(o);const a=Gn(o);if(!a)return Jn(o);let l=qn(a,i,s,n,(e=>l=e));Kn(a,l);const u=n.subTree,h=u&&Gn(u);if(h&&h.type!==Or&&!$r(a,h)&&Bn(n).type!==Or){const e=qn(h,i,s,n);if(Kn(h,e),"out-in"===c&&a.type!==Or)return s.isLeaving=!0,e.afterLeave=()=>{s.isLeaving=!1,!1!==n.update.active&&(n.effect.dirty=!0,n.update())},Jn(o);"in-out"===c&&a.type!==Or&&(e.delayLeave=(e,t,n)=>{Hn(s,h)[String(h.key)]=h,e[Un]=()=>{t(),e[Un]=void 0,delete l.delayedLeave},l.delayedLeave=n})}return o}}},Vn=Wn;function Hn(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function qn(e,t,n,s,r){const{appear:o,mode:i,persisted:c=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:u,onEnterCancelled:h,onBeforeLeave:d,onLeave:p,onAfterLeave:f,onLeaveCancelled:m,onBeforeAppear:_,onAppear:g,onAfterAppear:b,onAppearCancelled:v}=t,y=String(e.key),w=Hn(n,e),S=(e,t)=>{e&&fn(e,s,9,t)},x=(e,t)=>{const n=t[1];S(e,t),T(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},C={mode:i,persisted:c,beforeEnter(t){let s=a;if(!n.isMounted){if(!o)return;s=_||a}t[Un]&&t[Un](!0);const r=w[y];r&&$r(e,r)&&r.el[Un]&&r.el[Un](),S(s,[t])},enter(e){let t=l,s=u,r=h;if(!n.isMounted){if(!o)return;t=g||l,s=b||u,r=v||h}let i=!1;const c=e[Qn]=t=>{i||(i=!0,S(t?r:s,[e]),C.delayedLeave&&C.delayedLeave(),e[Qn]=void 0)};t?x(t,[e,c]):c()},leave(t,s){const r=String(e.key);if(t[Qn]&&t[Qn](!0),n.isUnmounting)return s();S(d,[t]);let o=!1;const i=t[Un]=n=>{o||(o=!0,s(),S(n?m:f,[t]),t[Un]=void 0,w[r]===e&&delete w[r])};w[r]=e,p?x(p,[t,i]):i()},clone(e){const o=qn(e,t,n,s,r);return r&&r(o),o}};return C}function Jn(e){if(Xn(e))return(e=qr(e)).children=null,e}function Gn(e){if(!Xn(e))return e;const{shapeFlag:t,children:n}=e;if(n){if(16&t)return n[0];if(32&t&&k(n.default))return n.default()}}function Kn(e,t){6&e.shapeFlag&&e.component?Kn(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Zn(e,t=!1,n){let s=[],r=0;for(let o=0;o<e.length;o++){let i=e[o];const c=null==n?i.key:String(n)+String(null!=i.key?i.key:o);i.type===Ar?(128&i.patchFlag&&r++,s=s.concat(Zn(i.children,t,c))):(t||i.type!==Or)&&s.push(null!=c?qr(i,{key:c}):i)}if(r>1)for(let e=0;e<s.length;e++)s[e].patchFlag=-2;return s}const Yn=e=>!!e.type.__asyncLoader,Xn=e=>e.type.__isKeepAlive;function es(e,t){ns(e,"a",t)}function ts(e,t){ns(e,"da",t)}function ns(e,t,n=no){const s=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(rs(t,s,n),n){let e=n.parent;for(;e&&e.parent;)Xn(e.parent.vnode)&&ss(s,t,n,e),e=e.parent}}function ss(e,t,n,s){const r=rs(t,e,s,!0);hs((()=>{y(s[t],r)}),n)}function rs(e,t,n=no,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...s)=>{ye();const r=io(n),o=fn(t,n,e,s);return r(),we(),o});return s?r.unshift(o):r.push(o),o}}RegExp,RegExp;const os=e=>(t,n=no)=>{ho&&"sp"!==e||rs(e,((...e)=>t(...e)),n)},is=os("bm"),cs=os("m"),as=os("bu"),ls=os("u"),us=os("bum"),hs=os("um"),ds=os("sp"),ps=os("rtg"),fs=os("rtc");function ms(e,t=no){rs("ec",e,t)}const _s=Symbol.for("v-ndc");function gs(e,t,n,s){let r;const o=n&&n[s];if(T(e)||E(e)){r=new Array(e.length);for(let n=0,s=e.length;n<s;n++)r[n]=t(e[n],n,void 0,o&&o[n])}else if("number"==typeof e){r=new Array(e);for(let n=0;n<e;n++)r[n]=t(n+1,n,void 0,o&&o[n])}else if(A(e))if(e[Symbol.iterator])r=Array.from(e,((e,n)=>t(e,n,void 0,o&&o[n])));else{const n=Object.keys(e);r=new Array(n.length);for(let s=0,i=n.length;s<i;s++){const i=n[s];r[s]=t(e[i],i,s,o&&o[s])}}else r=[];return n&&(n[s]=r),r}const bs=e=>e?ao(e)?_o(e):bs(e.parent):null,vs=v(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>bs(e.parent),$root:e=>bs(e.root),$emit:e=>e.emit,$options:e=>ks(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,kn(e.update)}),$nextTick:e=>e.n||(e.n=Cn.bind(e.proxy)),$watch:e=>br.bind(e)}),ys=(e,t)=>e!==p&&!e.__isScriptSetup&&S(e,t),ws={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:n,setupState:s,data:r,props:o,accessCache:i,type:c,appContext:a}=e;let l;if("$"!==t[0]){const c=i[t];if(void 0!==c)switch(c){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(ys(s,t))return i[t]=1,s[t];if(r!==p&&S(r,t))return i[t]=2,r[t];if((l=e.propsOptions[0])&&S(l,t))return i[t]=3,o[t];if(n!==p&&S(n,t))return i[t]=4,n[t];Ts&&(i[t]=0)}}const u=vs[t];let h,d;return u?("$attrs"===t&&Oe(e.attrs,0,""),u(e)):(h=c.__cssModules)&&(h=h[t])?h:n!==p&&S(n,t)?(i[t]=4,n[t]):(d=a.config.globalProperties,S(d,t)?d[t]:void 0)},set({_:e},t,n){const{data:s,setupState:r,ctx:o}=e;return ys(r,t)?(r[t]=n,!0):s!==p&&S(s,t)?(s[t]=n,!0):!(S(e.props,t)||"$"===t[0]&&t.slice(1)in e||(o[t]=n,0))},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:o}},i){let c;return!!n[i]||e!==p&&S(e,i)||ys(t,i)||(c=o[0])&&S(c,i)||S(s,i)||S(vs,i)||S(r.config.globalProperties,i)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:S(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Ss(e){return T(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}let Ts=!0;function xs(e,t,n){fn(T(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function Cs(e,t,n,s){const r=s.includes(".")?vr(n,s):()=>n[s];if(E(e)){const n=t[e];k(n)&&_r(r,n)}else if(k(e))_r(r,e.bind(n));else if(A(e))if(T(e))e.forEach((e=>Cs(e,t,n,s)));else{const s=k(e.handler)?e.handler.bind(n):t[e.handler];k(s)&&_r(r,s,e)}}function ks(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,c=o.get(t);let a;return c?a=c:r.length||n||s?(a={},r.length&&r.forEach((e=>Es(a,e,i,!0))),Es(a,t,i)):a=t,A(t)&&o.set(t,a),a}function Es(e,t,n,s=!1){const{mixins:r,extends:o}=t;o&&Es(e,o,n,!0),r&&r.forEach((t=>Es(e,t,n,!0)));for(const r in t)if(s&&"expose"===r);else{const s=Ps[r]||n&&n[r];e[r]=s?s(e[r],t[r]):t[r]}return e}const Ps={data:As,props:js,emits:js,methods:Rs,computed:Rs,beforeCreate:Os,created:Os,beforeMount:Os,mounted:Os,beforeUpdate:Os,updated:Os,beforeDestroy:Os,beforeUnmount:Os,destroyed:Os,unmounted:Os,activated:Os,deactivated:Os,errorCaptured:Os,serverPrefetch:Os,components:Rs,directives:Rs,watch:function(e,t){if(!e)return t;if(!t)return e;const n=v(Object.create(null),e);for(const s in t)n[s]=Os(e[s],t[s]);return n},provide:As,inject:function(e,t){return Rs(Ls(e),Ls(t))}};function As(e,t){return t?e?function(){return v(k(e)?e.call(this,this):e,k(t)?t.call(this,this):t)}:t:e}function Ls(e){if(T(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Os(e,t){return e?[...new Set([].concat(e,t))]:t}function Rs(e,t){return e?v(Object.create(null),e,t):t}function js(e,t){return e?T(e)&&T(t)?[...new Set([...e,...t])]:v(Object.create(null),Ss(e),Ss(null!=t?t:{})):t}function Is(){return{app:null,config:{isNativeTag:_,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Ms=0;function Ds(e,t){return function(n,s=null){k(n)||(n=v({},n)),null==s||A(s)||(s=null);const r=Is(),o=new WeakSet;let i=!1;const c=r.app={_uid:Ms++,_component:n,_props:s,_container:null,_context:r,_instance:null,version:bo,get config(){return r.config},set config(e){},use:(e,...t)=>(o.has(e)||(e&&k(e.install)?(o.add(e),e.install(c,...t)):k(e)&&(o.add(e),e(c,...t))),c),mixin:e=>(r.mixins.includes(e)||r.mixins.push(e),c),component:(e,t)=>t?(r.components[e]=t,c):r.components[e],directive:(e,t)=>t?(r.directives[e]=t,c):r.directives[e],mount(o,a,l){if(!i){const u=Hr(n,s);return u.appContext=r,!0===l?l="svg":!1===l&&(l=void 0),a&&t?t(u,o):e(u,o,l),i=!0,c._container=o,o.__vue_app__=c,_o(u.component)}},unmount(){i&&(e(null,c._container),delete c._container.__vue_app__)},provide:(e,t)=>(r.provides[e]=t,c),runWithContext(e){const t=zs;zs=c;try{return e()}finally{zs=t}}};return c}}let zs=null;function Fs(e,t,n=!1){const s=no||jn;if(s||zs){const r=s?null==s.parent?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:zs._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&k(t)?t.call(s&&s.proxy):t}}const Us={},Qs=()=>Object.create(Us),Ns=e=>Object.getPrototypeOf(e)===Us;function $s(e,t,n,s){const[r,o]=e.propsOptions;let i,c=!1;if(t)for(let a in t){if(D(a))continue;const l=t[a];let u;r&&S(r,u=U(a))?o&&o.includes(u)?(i||(i={}))[u]=l:n[u]=l:xr(e.emitsOptions,a)||a in s&&l===s[a]||(s[a]=l,c=!0)}if(o){const t=St(n),s=i||p;for(let i=0;i<o.length;i++){const c=o[i];n[c]=Bs(r,t,c,s[c],e,!S(s,c))}}return c}function Bs(e,t,n,s,r,o){const i=e[n];if(null!=i){const e=S(i,"default");if(e&&void 0===s){const e=i.default;if(i.type!==Function&&!i.skipFactory&&k(e)){const{propsDefaults:o}=r;if(n in o)s=o[n];else{const i=io(r);s=o[n]=e.call(null,t),i()}}else s=e}i[0]&&(o&&!e?s=!1:!i[1]||""!==s&&s!==N(n)||(s=!0))}return s}const Ws=new WeakMap;function Vs(e,t,n=!1){const s=n?Ws:t.propsCache,r=s.get(e);if(r)return r;const o=e.props,i={},c=[];let a=!1;if(!k(e)){const s=e=>{a=!0;const[n,s]=Vs(e,t,!0);v(i,n),s&&c.push(...s)};!n&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}if(!o&&!a)return A(e)&&s.set(e,f),f;if(T(o))for(let e=0;e<o.length;e++){const t=U(o[e]);Hs(t)&&(i[t]=p)}else if(o)for(const e in o){const t=U(e);if(Hs(t)){const n=o[e],s=i[t]=T(n)||k(n)?{type:n}:v({},n);if(s){const e=Gs(Boolean,s.type),n=Gs(String,s.type);s[0]=e>-1,s[1]=n<0||e<n,(e>-1||S(s,"default"))&&c.push(t)}}}const l=[i,c];return A(e)&&s.set(e,l),l}function Hs(e){return"$"!==e[0]&&!D(e)}function qs(e){return null===e?"null":"function"==typeof e?e.name||"":"object"==typeof e&&e.constructor&&e.constructor.name||""}function Js(e,t){return qs(e)===qs(t)}function Gs(e,t){return T(t)?t.findIndex((t=>Js(t,e))):k(t)&&Js(t,e)?0:-1}const Ks=e=>"_"===e[0]||"$stable"===e,Zs=e=>T(e)?e.map(Kr):[Kr(e)],Ys=(e,t,n)=>{if(t._n)return t;const s=function(e,t=jn){if(!t)return e;if(e._n)return e;const n=(...s)=>{n._d&&zr(-1);const r=Mn(t);let o;try{o=e(...s)}finally{Mn(r),n._d&&zr(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}(((...e)=>Zs(t(...e))),n);return s._c=!1,s},Xs=(e,t,n)=>{const s=e._ctx;for(const n in e){if(Ks(n))continue;const r=e[n];if(k(r))t[n]=Ys(0,r,s);else if(null!=r){const e=Zs(r);t[n]=()=>e}}},er=(e,t)=>{const n=Zs(t);e.slots.default=()=>n},tr=(e,t,n)=>{for(const s in t)(n||"_"!==s)&&(e[s]=t[s])},nr=(e,t,n)=>{const s=e.slots=Qs();if(32&e.vnode.shapeFlag){const e=t._;e?(tr(s,t,n),n&&H(s,"_",e,!0)):Xs(t,s)}else t&&er(e,t)},sr=(e,t,n)=>{const{vnode:s,slots:r}=e;let o=!0,i=p;if(32&s.shapeFlag){const e=t._;e?n&&1===e?o=!1:tr(r,t,n):(o=!t.$stable,Xs(t,r)),i=t}else t&&(er(e,t),i={default:1});if(o)for(const e in r)Ks(e)||null!=i[e]||delete r[e]};function rr(e,t,n,s,r=!1){if(T(e))return void e.forEach(((e,o)=>rr(e,t&&(T(t)?t[o]:t),n,s,r)));if(Yn(s)&&!r)return;const o=4&s.shapeFlag?_o(s.component):s.el,i=r?null:o,{i:c,r:a}=e,l=t&&t.r,u=c.refs===p?c.refs={}:c.refs,h=c.setupState;if(null!=l&&l!==a&&(E(l)?(u[l]=null,S(h,l)&&(h[l]=null)):Pt(l)&&(l.value=null)),k(a))pn(a,c,12,[i,u]);else{const t=E(a),s=Pt(a);if(t||s){const c=()=>{if(e.f){const n=t?S(h,a)?h[a]:u[a]:a.value;r?T(n)&&y(n,o):T(n)?n.includes(o)||n.push(o):t?(u[a]=[o],S(h,a)&&(h[a]=u[a])):(a.value=[o],e.k&&(u[e.k]=a.value))}else t?(u[a]=i,S(h,a)&&(h[a]=i)):s&&(a.value=i,e.k&&(u[e.k]=i))};i?(c.id=-1,ir(c,n)):c()}}}const or=Symbol("_vte"),ir=function(e,t){t&&t.pendingBranch?T(e)?t.effects.push(...e):t.effects.push(e):(n=e,T(n)?yn.push(...n):wn&&wn.includes(n,n.allowRecurse?Sn+1:Sn)||yn.push(n),En());var n};function cr(e,t){K().__VUE__=!0;const{insert:n,remove:s,patchProp:r,createElement:o,createText:i,createComment:c,setText:a,setElementText:l,parentNode:u,nextSibling:h,setScopeId:d=m,insertStaticContent:_}=e,g=(e,t,n,s=null,r=null,o=null,i=void 0,c=null,a=!!t.dynamicChildren)=>{if(e===t)return;e&&!$r(e,t)&&(s=G(e),B(e,r,o,!0),e=null),-2===t.patchFlag&&(a=!1,t.dynamicChildren=null);const{type:l,ref:u,shapeFlag:h}=t;switch(l){case Lr:b(e,t,n,s);break;case Or:v(e,t,n,s);break;case Rr:null==e&&y(t,n,s,i);break;case Ar:A(e,t,n,s,r,o,i,c,a);break;default:1&h?w(e,t,n,s,r,o,i,c,a):6&h?O(e,t,n,s,r,o,i,c,a):(64&h||128&h)&&l.process(e,t,n,s,r,o,i,c,a,X)}null!=u&&r&&rr(u,e&&e.ref,o,t||e,!t)},b=(e,t,s,r)=>{if(null==e)n(t.el=i(t.children),s,r);else{const n=t.el=e.el;t.children!==e.children&&a(n,t.children)}},v=(e,t,s,r)=>{null==e?n(t.el=c(t.children||""),s,r):t.el=e.el},y=(e,t,n,s)=>{[e.el,e.anchor]=_(e.children,t,n,s,e.el,e.anchor)},w=(e,t,n,s,r,o,i,c,a)=>{"svg"===t.type?i="svg":"math"===t.type&&(i="mathml"),null==e?T(t,n,s,r,o,i,c,a):k(e,t,r,o,i,c,a)},T=(e,t,s,i,c,a,u,h)=>{let d,p;const{props:f,shapeFlag:m,transition:_,dirs:g}=e;if(d=e.el=o(e.type,a,f&&f.is,f),8&m?l(d,e.children):16&m&&C(e.children,d,null,i,c,ar(e,a),u,h),g&&Fn(e,null,i,"created"),x(d,e,e.scopeId,u,i),f){for(const e in f)"value"===e||D(e)||r(d,e,null,f[e],a,i);"value"in f&&r(d,"value",null,f.value,a),(p=f.onVnodeBeforeMount)&&Xr(p,i,e)}g&&Fn(e,null,i,"beforeMount");const b=function(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}(c,_);b&&_.beforeEnter(d),n(d,t,s),((p=f&&f.onVnodeMounted)||b||g)&&ir((()=>{p&&Xr(p,i,e),b&&_.enter(d),g&&Fn(e,null,i,"mounted")}),c)},x=(e,t,n,s,r)=>{if(n&&d(e,n),s)for(let t=0;t<s.length;t++)d(e,s[t]);if(r&&t===r.subTree){const t=r.vnode;x(e,t,t.scopeId,t.slotScopeIds,r.parent)}},C=(e,t,n,s,r,o,i,c,a=0)=>{for(let l=a;l<e.length;l++){const a=e[l]=c?Zr(e[l]):Kr(e[l]);g(null,a,t,n,s,r,o,i,c)}},k=(e,t,n,s,o,i,c)=>{const a=t.el=e.el;let{patchFlag:u,dynamicChildren:h,dirs:d}=t;u|=16&e.patchFlag;const f=e.props||p,m=t.props||p;let _;if(n&&lr(n,!1),(_=m.onVnodeBeforeUpdate)&&Xr(_,n,t,e),d&&Fn(t,e,n,"beforeUpdate"),n&&lr(n,!0),(f.innerHTML&&null==m.innerHTML||f.textContent&&null==m.textContent)&&l(a,""),h?E(e.dynamicChildren,h,a,n,s,ar(t,o),i):c||z(e,t,a,null,n,s,ar(t,o),i,!1),u>0){if(16&u)P(a,f,m,n,o);else if(2&u&&f.class!==m.class&&r(a,"class",null,m.class,o),4&u&&r(a,"style",f.style,m.style,o),8&u){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const s=e[t],i=f[s],c=m[s];c===i&&"value"!==s||r(a,s,i,c,o,n)}}1&u&&e.children!==t.children&&l(a,t.children)}else c||null!=h||P(a,f,m,n,o);((_=m.onVnodeUpdated)||d)&&ir((()=>{_&&Xr(_,n,t,e),d&&Fn(t,e,n,"updated")}),s)},E=(e,t,n,s,r,o,i)=>{for(let c=0;c<t.length;c++){const a=e[c],l=t[c],h=a.el&&(a.type===Ar||!$r(a,l)||70&a.shapeFlag)?u(a.el):n;g(a,l,h,null,s,r,o,i,!0)}},P=(e,t,n,s,o)=>{if(t!==n){if(t!==p)for(const i in t)D(i)||i in n||r(e,i,t[i],null,o,s);for(const i in n){if(D(i))continue;const c=n[i],a=t[i];c!==a&&"value"!==i&&r(e,i,a,c,o,s)}"value"in n&&r(e,"value",t.value,n.value,o)}},A=(e,t,s,r,o,c,a,l,u)=>{const h=t.el=e?e.el:i(""),d=t.anchor=e?e.anchor:i("");let{patchFlag:p,dynamicChildren:f,slotScopeIds:m}=t;m&&(l=l?l.concat(m):m),null==e?(n(h,s,r),n(d,s,r),C(t.children||[],s,d,o,c,a,l,u)):p>0&&64&p&&f&&e.dynamicChildren?(E(e.dynamicChildren,f,s,o,c,a,l),(null!=t.key||o&&t===o.subTree)&&ur(e,t,!0)):z(e,t,s,d,o,c,a,l,u)},O=(e,t,n,s,r,o,i,c,a)=>{t.slotScopeIds=c,null==e?512&t.shapeFlag?r.ctx.activate(t,n,s,i,a):R(t,n,s,r,o,i,a):j(e,t,a)},R=(e,t,n,s,r,o,i)=>{const c=e.component=function(e,t,n){const s=e.type,r=(t?t.appContext:e.appContext)||eo,o={uid:to++,vnode:e,type:s,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new he(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Vs(s,r),emitsOptions:Tr(s,r),emit:null,emitted:null,propsDefaults:p,inheritAttrs:s.inheritAttrs,ctx:p,data:p,props:p,attrs:p,slots:p,refs:p,setupState:p,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=Sr.bind(null,o),e.ce&&e.ce(o),o}(e,s,r);if(Xn(e)&&(c.ctx.renderer=X),function(e,t=!1,n=!1){t&&oo(t);const{props:s,children:r}=e.vnode,o=ao(e);(function(e,t,n,s=!1){const r={},o=Qs();e.propsDefaults=Object.create(null),$s(e,t,r,o);for(const t in e.propsOptions[0])t in r||(r[t]=void 0);n?e.props=s?r:gt(r,!1,Be,lt,dt):e.type.props?e.props=r:e.props=o,e.attrs=o})(e,s,o,t),nr(e,r,n);const i=o?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ws);const{setup:s}=n;if(s){const n=e.setupContext=s.length>1?function(e){const t=t=>{e.exposed=t||{}};return{attrs:new Proxy(e.attrs,mo),slots:e.slots,emit:e.emit,expose:t}}(e):null,r=io(e);ye();const o=pn(s,e,0,[e.props,n]);if(we(),r(),L(o)){if(o.then(co,co),t)return o.then((n=>{po(e,n,t)})).catch((t=>{mn(t,e,0)}));e.asyncDep=o}else po(e,o,t)}else fo(e,t)}(e,t):void 0;t&&oo(!1)}(c,!1,i),c.asyncDep){if(r&&r.registerDep(c,I,i),!e.el){const e=c.subTree=Hr(Or);v(null,e,t,n)}}else I(c,e,t,n,r,o,i)},j=(e,t,n)=>{const s=t.component=e.component;if(function(e,t,n){const{props:s,children:r,component:o}=e,{props:i,children:c,patchFlag:a}=t,l=o.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&a>=0))return!(!r&&!c||c&&c.$stable)||s!==i&&(s?!i||Pr(s,i,l):!!i);if(1024&a)return!0;if(16&a)return s?Pr(s,i,l):!!i;if(8&a){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(i[n]!==s[n]&&!xr(l,n))return!0}}return!1}(e,t,n)){if(s.asyncDep&&!s.asyncResolved)return void M(s,t,n);s.next=t,function(e){const t=bn.indexOf(e);t>vn&&bn.splice(t,1)}(s.update),s.effect.dirty=!0,s.update()}else t.el=e.el,s.vnode=t},I=(e,t,n,s,r,o,i)=>{const c=()=>{if(e.isMounted){let{next:t,bu:n,u:s,parent:a,vnode:l}=e;{const n=hr(e);if(n)return t&&(t.el=l.el,M(e,t,i)),void n.asyncDep.then((()=>{e.isUnmounted||c()}))}let h,d=t;lr(e,!1),t?(t.el=l.el,M(e,t,i)):t=l,n&&V(n),(h=t.props&&t.props.onVnodeBeforeUpdate)&&Xr(h,a,t,l),lr(e,!0);const p=Cr(e),f=e.subTree;e.subTree=p,g(f,p,u(f.el),G(f),e,r,o),t.el=p.el,null===d&&function({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s!==e)break;(e=t.vnode).el=n,t=t.parent}}(e,p.el),s&&ir(s,r),(h=t.props&&t.props.onVnodeUpdated)&&ir((()=>Xr(h,a,t,l)),r)}else{let i;const{el:c,props:a}=t,{bm:l,m:u,parent:h}=e,d=Yn(t);if(lr(e,!1),l&&V(l),!d&&(i=a&&a.onVnodeBeforeMount)&&Xr(i,h,t),lr(e,!0),c&&te){const n=()=>{e.subTree=Cr(e),te(c,e.subTree,e,r,null)};d?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const i=e.subTree=Cr(e);g(null,i,n,s,e,r,o),t.el=i.el}if(u&&ir(u,r),!d&&(i=a&&a.onVnodeMounted)){const e=t;ir((()=>Xr(i,h,e)),r)}(256&t.shapeFlag||h&&Yn(h.vnode)&&256&h.vnode.shapeFlag)&&e.a&&ir(e.a,r),e.isMounted=!0,t=n=s=null}},a=e.effect=new de(c,m,(()=>kn(l)),e.scope),l=e.update=()=>{a.dirty&&a.run()};l.i=e,l.id=e.uid,lr(e,!0),l()},M=(e,t,n)=>{t.component=e;const s=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,s){const{props:r,attrs:o,vnode:{patchFlag:i}}=e,c=St(r),[a]=e.propsOptions;let l=!1;if(!(s||i>0)||16&i){let s;$s(e,t,r,o)&&(l=!0);for(const o in c)t&&(S(t,o)||(s=N(o))!==o&&S(t,s))||(a?!n||void 0===n[o]&&void 0===n[s]||(r[o]=Bs(a,c,o,void 0,e,!0)):delete r[o]);if(o!==c)for(const e in o)t&&S(t,e)||(delete o[e],l=!0)}else if(8&i){const n=e.vnode.dynamicProps;for(let s=0;s<n.length;s++){let i=n[s];if(xr(e.emitsOptions,i))continue;const u=t[i];if(a)if(S(o,i))u!==o[i]&&(o[i]=u,l=!0);else{const t=U(i);r[t]=Bs(a,c,t,u,e,!1)}else u!==o[i]&&(o[i]=u,l=!0)}}l&&Re(e.attrs,"set","")}(e,t.props,s,n),sr(e,t.children,n),ye(),Pn(e),we()},z=(e,t,n,s,r,o,i,c,a=!1)=>{const u=e&&e.children,h=e?e.shapeFlag:0,d=t.children,{patchFlag:p,shapeFlag:f}=t;if(p>0){if(128&p)return void Q(u,d,n,s,r,o,i,c,a);if(256&p)return void F(u,d,n,s,r,o,i,c,a)}8&f?(16&h&&J(u,r,o),d!==u&&l(n,d)):16&h?16&f?Q(u,d,n,s,r,o,i,c,a):J(u,r,o,!0):(8&h&&l(n,""),16&f&&C(d,n,s,r,o,i,c,a))},F=(e,t,n,s,r,o,i,c,a)=>{t=t||f;const l=(e=e||f).length,u=t.length,h=Math.min(l,u);let d;for(d=0;d<h;d++){const s=t[d]=a?Zr(t[d]):Kr(t[d]);g(e[d],s,n,null,r,o,i,c,a)}l>u?J(e,r,o,!0,!1,h):C(t,n,s,r,o,i,c,a,h)},Q=(e,t,n,s,r,o,i,c,a)=>{let l=0;const u=t.length;let h=e.length-1,d=u-1;for(;l<=h&&l<=d;){const s=e[l],u=t[l]=a?Zr(t[l]):Kr(t[l]);if(!$r(s,u))break;g(s,u,n,null,r,o,i,c,a),l++}for(;l<=h&&l<=d;){const s=e[h],l=t[d]=a?Zr(t[d]):Kr(t[d]);if(!$r(s,l))break;g(s,l,n,null,r,o,i,c,a),h--,d--}if(l>h){if(l<=d){const e=d+1,h=e<u?t[e].el:s;for(;l<=d;)g(null,t[l]=a?Zr(t[l]):Kr(t[l]),n,h,r,o,i,c,a),l++}}else if(l>d)for(;l<=h;)B(e[l],r,o,!0),l++;else{const p=l,m=l,_=new Map;for(l=m;l<=d;l++){const e=t[l]=a?Zr(t[l]):Kr(t[l]);null!=e.key&&_.set(e.key,l)}let b,v=0;const y=d-m+1;let w=!1,S=0;const T=new Array(y);for(l=0;l<y;l++)T[l]=0;for(l=p;l<=h;l++){const s=e[l];if(v>=y){B(s,r,o,!0);continue}let u;if(null!=s.key)u=_.get(s.key);else for(b=m;b<=d;b++)if(0===T[b-m]&&$r(s,t[b])){u=b;break}void 0===u?B(s,r,o,!0):(T[u-m]=l+1,u>=S?S=u:w=!0,g(s,t[u],n,null,r,o,i,c,a),v++)}const x=w?function(e){const t=e.slice(),n=[0];let s,r,o,i,c;const a=e.length;for(s=0;s<a;s++){const a=e[s];if(0!==a){if(r=n[n.length-1],e[r]<a){t[s]=r,n.push(s);continue}for(o=0,i=n.length-1;o<i;)c=o+i>>1,e[n[c]]<a?o=c+1:i=c;a<e[n[o]]&&(o>0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}(T):f;for(b=x.length-1,l=y-1;l>=0;l--){const e=m+l,h=t[e],d=e+1<u?t[e+1].el:s;0===T[l]?g(null,h,n,d,r,o,i,c,a):w&&(b<0||l!==x[b]?$(h,n,d,2):b--)}}},$=(e,t,s,r,o=null)=>{const{el:i,type:c,transition:a,children:l,shapeFlag:u}=e;if(6&u)$(e.component.subTree,t,s,r);else if(128&u)e.suspense.move(t,s,r);else if(64&u)c.move(e,t,s,X);else if(c!==Ar)if(c!==Rr)if(2!==r&&1&u&&a)if(0===r)a.beforeEnter(i),n(i,t,s),ir((()=>a.enter(i)),o);else{const{leave:e,delayLeave:r,afterLeave:o}=a,c=()=>n(i,t,s),l=()=>{e(i,(()=>{c(),o&&o()}))};r?r(i,c,l):l()}else n(i,t,s);else(({el:e,anchor:t},s,r)=>{let o;for(;e&&e!==t;)o=h(e),n(e,s,r),e=o;n(t,s,r)})(e,t,s);else{n(i,t,s);for(let e=0;e<l.length;e++)$(l[e],t,s,r);n(e.anchor,t,s)}},B=(e,t,n,s=!1,r=!1)=>{const{type:o,props:i,ref:c,children:a,dynamicChildren:l,shapeFlag:u,patchFlag:h,dirs:d,cacheIndex:p}=e;if(-2===h&&(r=!1),null!=c&&rr(c,null,n,e,!0),null!=p&&(t.renderCache[p]=void 0),256&u)return void t.ctx.deactivate(e);const f=1&u&&d,m=!Yn(e);let _;if(m&&(_=i&&i.onVnodeBeforeUnmount)&&Xr(_,t,e),6&u)q(e.component,n,s);else{if(128&u)return void e.suspense.unmount(n,s);f&&Fn(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,X,s):l&&!l.hasOnce&&(o!==Ar||h>0&&64&h)?J(l,t,n,!1,!0):(o===Ar&&384&h||!r&&16&u)&&J(a,t,n),s&&W(e)}(m&&(_=i&&i.onVnodeUnmounted)||f)&&ir((()=>{_&&Xr(_,t,e),f&&Fn(e,null,t,"unmounted")}),n)},W=e=>{const{type:t,el:n,anchor:r,transition:o}=e;if(t===Ar)return void H(n,r);if(t===Rr)return void(({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=h(e),s(e),e=n;s(t)})(e);const i=()=>{s(n),o&&!o.persisted&&o.afterLeave&&o.afterLeave()};if(1&e.shapeFlag&&o&&!o.persisted){const{leave:t,delayLeave:s}=o,r=()=>t(n,i);s?s(e.el,i,r):r()}else i()},H=(e,t)=>{let n;for(;e!==t;)n=h(e),s(e),e=n;s(t)},q=(e,t,n)=>{const{bum:s,scope:r,update:o,subTree:i,um:c,m:a,a:l}=e;dr(a),dr(l),s&&V(s),r.stop(),o&&(o.active=!1,B(i,e,t,n)),c&&ir(c,t),ir((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},J=(e,t,n,s=!1,r=!1,o=0)=>{for(let i=o;i<e.length;i++)B(e[i],t,n,s,r)},G=e=>{if(6&e.shapeFlag)return G(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();const t=h(e.anchor||e.el),n=t&&t[or];return n?h(n):t};let Z=!1;const Y=(e,t,n)=>{null==e?t._vnode&&B(t._vnode,null,null,!0):g(t._vnode||null,e,t,null,null,null,n),Z||(Z=!0,Pn(),An(),Z=!1),t._vnode=e},X={p:g,um:B,m:$,r:W,mt:R,mc:C,pc:z,pbc:E,n:G,o:e};let ee,te;return t&&([ee,te]=t(X)),{render:Y,hydrate:ee,createApp:Ds(Y,ee)}}function ar({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function lr({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function ur(e,t,n=!1){const s=e.children,r=t.children;if(T(s)&&T(r))for(let e=0;e<s.length;e++){const t=s[e];let o=r[e];1&o.shapeFlag&&!o.dynamicChildren&&((o.patchFlag<=0||32===o.patchFlag)&&(o=r[e]=Zr(r[e]),o.el=t.el),n||-2===o.patchFlag||ur(t,o)),o.type===Lr&&(o.el=t.el)}}function hr(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:hr(t)}function dr(e){if(e)for(let t=0;t<e.length;t++)e[t].active=!1}const pr=Symbol.for("v-scx"),fr=()=>Fs(pr),mr={};function _r(e,t,n){return gr(e,t,n)}function gr(e,t,{immediate:n,deep:s,flush:r,once:o,onTrack:i,onTrigger:c}=p){if(t&&o){const e=t;t=(...t)=>{e(...t),C()}}const a=no,l=e=>!0===s?e:yr(e,!1===s?1:void 0);let u,h,d=!1,f=!1;if(Pt(e)?(u=()=>e.value,d=yt(e)):bt(e)?(u=()=>l(e),d=!0):T(e)?(f=!0,d=e.some((e=>bt(e)||yt(e))),u=()=>e.map((e=>Pt(e)?e.value:bt(e)?l(e):k(e)?pn(e,a,2):void 0))):u=k(e)?t?()=>pn(e,a,2):()=>(h&&h(),fn(e,a,3,[g])):m,t&&s){const e=u;u=()=>yr(e())}let _,g=e=>{h=S.onStop=()=>{pn(e,a,4),h=S.onStop=void 0}};if(ho){if(g=m,t?n&&fn(t,a,3,[u(),f?[]:void 0,g]):u(),"sync"!==r)return m;{const e=fr();_=e.__watcherHandles||(e.__watcherHandles=[])}}let b=f?new Array(e.length).fill(mr):mr;const v=()=>{if(S.active&&S.dirty)if(t){const e=S.run();(s||d||(f?e.some(((e,t)=>W(e,b[t]))):W(e,b)))&&(h&&h(),fn(t,a,3,[e,b===mr?void 0:f&&b[0]===mr?[]:b,g]),b=e)}else S.run()};let w;v.allowRecurse=!!t,"sync"===r?w=v:"post"===r?w=()=>ir(v,a&&a.suspense):(v.pre=!0,a&&(v.id=a.uid),w=()=>kn(v));const S=new de(u,m,w),x=le,C=()=>{S.stop(),x&&y(x.effects,S)};return t?n?v():b=S.run():"post"===r?ir(S.run.bind(S),a&&a.suspense):S.run(),_&&_.push(C),C}function br(e,t,n){const s=this.proxy,r=E(e)?e.includes(".")?vr(s,e):()=>s[e]:e.bind(s,s);let o;k(t)?o=t:(o=t.handler,n=t);const i=io(this),c=gr(r,o.bind(s),n);return i(),c}function vr(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}function yr(e,t=1/0,n){if(t<=0||!A(e)||e.__v_skip)return e;if((n=n||new Set).has(e))return e;if(n.add(e),t--,Pt(e))yr(e.value,t,n);else if(T(e))for(let s=0;s<e.length;s++)yr(e[s],t,n);else if(C(e)||x(e))e.forEach((e=>{yr(e,t,n)}));else if(I(e)){for(const s in e)yr(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&yr(e[s],t,n)}return e}const wr=(e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[`${t}Modifiers`]||e[`${U(t)}Modifiers`]||e[`${N(t)}Modifiers`];function Sr(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||p;let r=n;const o=t.startsWith("update:"),i=o&&wr(s,t.slice(7));let c;i&&(i.trim&&(r=n.map((e=>E(e)?e.trim():e))),i.number&&(r=n.map(q)));let a=s[c=B(t)]||s[c=B(U(t))];!a&&o&&(a=s[c=B(N(t))]),a&&fn(a,e,6,r);const l=s[c+"Once"];if(l){if(e.emitted){if(e.emitted[c])return}else e.emitted={};e.emitted[c]=!0,fn(l,e,6,r)}}function Tr(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(void 0!==r)return r;const o=e.emits;let i={},c=!1;if(!k(e)){const s=e=>{const n=Tr(e,t,!0);n&&(c=!0,v(i,n))};!n&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return o||c?(T(o)?o.forEach((e=>i[e]=null)):v(i,o),A(e)&&s.set(e,i),i):(A(e)&&s.set(e,null),null)}function xr(e,t){return!(!e||!g(t))&&(t=t.slice(2).replace(/Once$/,""),S(e,t[0].toLowerCase()+t.slice(1))||S(e,N(t))||S(e,t))}function Cr(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[o],slots:i,attrs:c,emit:a,render:l,renderCache:u,props:h,data:d,setupState:p,ctx:f,inheritAttrs:m}=e,_=Mn(e);let g,v;try{if(4&n.shapeFlag){const e=r||s,t=e;g=Kr(l.call(t,e,u,h,p,d,f)),v=c}else{const e=t;g=Kr(e.length>1?e(h,{attrs:c,slots:i,emit:a}):e(h,null)),v=t.props?c:kr(c)}}catch(t){jr.length=0,mn(t,e,1),g=Hr(Or)}let y=g;if(v&&!1!==m){const e=Object.keys(v),{shapeFlag:t}=y;e.length&&7&t&&(o&&e.some(b)&&(v=Er(v,o)),y=qr(y,v,!1,!0))}return n.dirs&&(y=qr(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(n.dirs):n.dirs),n.transition&&(y.transition=n.transition),g=y,Mn(_),g}const kr=e=>{let t;for(const n in e)("class"===n||"style"===n||g(n))&&((t||(t={}))[n]=e[n]);return t},Er=(e,t)=>{const n={};for(const s in e)b(s)&&s.slice(9)in t||(n[s]=e[s]);return n};function Pr(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let r=0;r<s.length;r++){const o=s[r];if(t[o]!==e[o]&&!xr(n,o))return!0}return!1}const Ar=Symbol.for("v-fgt"),Lr=Symbol.for("v-txt"),Or=Symbol.for("v-cmt"),Rr=Symbol.for("v-stc"),jr=[];let Ir=null;function Mr(e=!1){jr.push(Ir=e?null:[])}let Dr=1;function zr(e){Dr+=e,e<0&&Ir&&(Ir.hasOnce=!0)}function Fr(e){return e.dynamicChildren=Dr>0?Ir||f:null,jr.pop(),Ir=jr[jr.length-1]||null,Dr>0&&Ir&&Ir.push(e),e}function Ur(e,t,n,s,r,o){return Fr(Vr(e,t,n,s,r,o,!0))}function Qr(e,t,n,s,r){return Fr(Hr(e,t,n,s,r,!0))}function Nr(e){return!!e&&!0===e.__v_isVNode}function $r(e,t){return e.type===t.type&&e.key===t.key}const Br=({key:e})=>null!=e?e:null,Wr=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?E(e)||Pt(e)||k(e)?{i:jn,r:e,k:t,f:!!n}:e:null);function Vr(e,t=null,n=null,s=0,r=null,o=(e===Ar?0:1),i=!1,c=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Br(t),ref:t&&Wr(t),scopeId:In,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:jn};return c?(Yr(a,n),128&o&&e.normalize(a)):n&&(a.shapeFlag|=E(n)?8:16),Dr>0&&!i&&Ir&&(a.patchFlag>0||6&o)&&32!==a.patchFlag&&Ir.push(a),a}const Hr=function(e,t=null,n=null,s=0,r=null,o=!1){if(e&&e!==_s||(e=Or),Nr(e)){const s=qr(e,t,!0);return n&&Yr(s,n),Dr>0&&!o&&Ir&&(6&s.shapeFlag?Ir[Ir.indexOf(e)]=s:Ir.push(s)),s.patchFlag=-2,s}if(i=e,k(i)&&"__vccOpts"in i&&(e=e.__vccOpts),t){t=function(e){return e?wt(e)||Ns(e)?v({},e):e:null}(t);let{class:e,style:n}=t;e&&!E(e)&&(t.class=ne(e)),A(n)&&(wt(n)&&!T(n)&&(n=v({},n)),t.style=Z(n))}var i;return Vr(e,t,n,s,r,E(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:A(e)?4:k(e)?2:0,o,!0)};function qr(e,t,n=!1,s=!1){const{props:r,ref:o,patchFlag:i,children:c,transition:a}=e,l=t?function(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const e in s)if("class"===e)t.class!==s.class&&(t.class=ne([t.class,s.class]));else if("style"===e)t.style=Z([t.style,s.style]);else if(g(e)){const n=t[e],r=s[e];!r||n===r||T(n)&&n.includes(r)||(t[e]=n?[].concat(n,r):r)}else""!==e&&(t[e]=s[e])}return t}(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Br(l),ref:t&&t.ref?n&&o?T(o)?o.concat(Wr(t)):[o,Wr(t)]:Wr(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:c,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ar?-1===i?16:16|i:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&qr(e.ssContent),ssFallback:e.ssFallback&&qr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&s&&Kn(u,a.clone(u)),u}function Jr(e=" ",t=0){return Hr(Lr,null,e,t)}function Gr(e="",t=!1){return t?(Mr(),Qr(Or,null,e)):Hr(Or,null,e)}function Kr(e){return null==e||"boolean"==typeof e?Hr(Or):T(e)?Hr(Ar,null,e.slice()):"object"==typeof e?Zr(e):Hr(Lr,null,String(e))}function Zr(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:qr(e)}function Yr(e,t){let n=0;const{shapeFlag:s}=e;if(null==t)t=null;else if(T(t))n=16;else if("object"==typeof t){if(65&s){const n=t.default;return void(n&&(n._c&&(n._d=!1),Yr(e,n()),n._c&&(n._d=!0)))}{n=32;const s=t._;s||Ns(t)?3===s&&jn&&(1===jn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=jn}}else k(t)?(t={default:t,_ctx:jn},n=32):(t=String(t),64&s?(n=16,t=[Jr(t)]):n=8);e.children=t,e.shapeFlag|=n}function Xr(e,t,n,s=null){fn(e,t,7,[n,s])}const eo=Is();let to=0;let no=null;const so=()=>no||jn;let ro,oo;{const e=K(),t=(t,n)=>{let s;return(s=e[t])||(s=e[t]=[]),s.push(n),e=>{s.length>1?s.forEach((t=>t(e))):s[0](e)}};ro=t("__VUE_INSTANCE_SETTERS__",(e=>no=e)),oo=t("__VUE_SSR_SETTERS__",(e=>ho=e))}const io=e=>{const t=no;return ro(e),e.scope.on(),()=>{e.scope.off(),ro(t)}},co=()=>{no&&no.scope.off(),ro(null)};function ao(e){return 4&e.vnode.shapeFlag}let lo,uo,ho=!1;function po(e,t,n){k(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:A(t)&&(e.setupState=jt(t)),fo(e,n)}function fo(e,t,n){const s=e.type;if(!e.render){if(!t&&lo&&!s.render){const t=s.template||ks(e).template;if(t){const{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:o,compilerOptions:i}=s,c=v(v({isCustomElement:n,delimiters:o},r),i);s.render=lo(t,c)}}e.render=s.render||m,uo&&uo(e)}{const t=io(e);ye();try{!function(e){const t=ks(e),n=e.proxy,s=e.ctx;Ts=!1,t.beforeCreate&&xs(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:i,watch:c,provide:a,inject:l,created:u,beforeMount:h,mounted:d,beforeUpdate:p,updated:f,activated:_,deactivated:g,beforeDestroy:b,beforeUnmount:v,destroyed:y,unmounted:w,render:S,renderTracked:x,renderTriggered:C,errorCaptured:E,serverPrefetch:P,expose:L,inheritAttrs:O,components:R,directives:j,filters:I}=t;if(l&&function(e,t){T(e)&&(e=Ls(e));for(const n in e){const s=e[n];let r;r=A(s)?"default"in s?Fs(s.from||n,s.default,!0):Fs(s.from||n):Fs(s),Pt(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:e=>r.value=e}):t[n]=r}}(l,s),i)for(const e in i){const t=i[e];k(t)&&(s[e]=t.bind(n))}if(r){const t=r.call(n,n);A(t)&&(e.data=mt(t))}if(Ts=!0,o)for(const e in o){const t=o[e],r=k(t)?t.bind(n,n):k(t.get)?t.get.bind(n,n):m,i=!k(t)&&k(t.set)?t.set.bind(n):m,c=go({get:r,set:i});Object.defineProperty(s,e,{enumerable:!0,configurable:!0,get:()=>c.value,set:e=>c.value=e})}if(c)for(const e in c)Cs(c[e],s,n,e);if(a){const e=k(a)?a.call(n):a;Reflect.ownKeys(e).forEach((t=>{!function(e,t){if(no){let n=no.provides;const s=no.parent&&no.parent.provides;s===n&&(n=no.provides=Object.create(s)),n[e]=t}}(t,e[t])}))}function M(e,t){T(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(u&&xs(u,e,"c"),M(is,h),M(cs,d),M(as,p),M(ls,f),M(es,_),M(ts,g),M(ms,E),M(fs,x),M(ps,C),M(us,v),M(hs,w),M(ds,P),T(L))if(L.length){const t=e.exposed||(e.exposed={});L.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});S&&e.render===m&&(e.render=S),null!=O&&(e.inheritAttrs=O),R&&(e.components=R),j&&(e.directives=j)}(e)}finally{we(),t()}}}const mo={get:(e,t)=>(Oe(e,0,""),e[t])};function _o(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(jt((t=e.exposed,Object.isExtensible(t)&&H(t,"__v_skip",!0),t)),{get:(t,n)=>n in t?t[n]:n in vs?vs[n](e):void 0,has:(e,t)=>t in e||t in vs})):e.proxy;var t}const go=(e,t)=>function(e,t,n=!1){let s,r;const o=k(e);return o?(s=e,r=m):(s=e.get,r=e.set),new Ct(s,r,o||!r,n)}(e,0,ho),bo="3.4.33",vo="undefined"!=typeof document?document:null,yo=vo&&vo.createElement("template"),wo={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r="svg"===t?vo.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?vo.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?vo.createElement(e,{is:n}):vo.createElement(e);return"select"===e&&s&&null!=s.multiple&&r.setAttribute("multiple",s.multiple),r},createText:e=>vo.createTextNode(e),createComment:e=>vo.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>vo.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,o){const i=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),r!==o&&(r=r.nextSibling););else{yo.innerHTML="svg"===s?`<svg>${e}</svg>`:"mathml"===s?`<math>${e}</math>`:e;const r=yo.content;if("svg"===s||"mathml"===s){const e=r.firstChild;for(;e.firstChild;)r.appendChild(e.firstChild);r.removeChild(e)}t.insertBefore(r,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},So="transition",To="animation",xo=Symbol("_vtc"),Co=(e,{slots:t})=>function(e,t,n){const s=arguments.length;return 2===s?A(t)&&!T(t)?Nr(t)?Hr(e,null,[t]):Hr(e,t):Hr(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):3===s&&Nr(n)&&(n=[n]),Hr(e,t,n))}(Vn,function(e){const t={};for(const n in e)n in ko||(t[n]=e[n]);if(!1===e.css)return t;const{name:n="v",type:s,duration:r,enterFromClass:o=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:c=`${n}-enter-to`,appearFromClass:a=o,appearActiveClass:l=i,appearToClass:u=c,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,f=function(e){if(null==e)return null;if(A(e))return[Ao(e.enter),Ao(e.leave)];{const t=Ao(e);return[t,t]}}(r),m=f&&f[0],_=f&&f[1],{onBeforeEnter:g,onEnter:b,onEnterCancelled:y,onLeave:w,onLeaveCancelled:S,onBeforeAppear:T=g,onAppear:x=b,onAppearCancelled:C=y}=t,k=(e,t,n)=>{Oo(e,t?u:c),Oo(e,t?l:i),n&&n()},E=(e,t)=>{e._isLeaving=!1,Oo(e,h),Oo(e,p),Oo(e,d),t&&t()},P=e=>(t,n)=>{const r=e?x:b,i=()=>k(t,e,n);Eo(r,[t,i]),Ro((()=>{Oo(t,e?a:o),Lo(t,e?u:c),Po(r)||Io(t,s,m,i)}))};return v(t,{onBeforeEnter(e){Eo(g,[e]),Lo(e,o),Lo(e,i)},onBeforeAppear(e){Eo(T,[e]),Lo(e,a),Lo(e,l)},onEnter:P(!1),onAppear:P(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>E(e,t);Lo(e,h),Lo(e,d),document.body.offsetHeight,Ro((()=>{e._isLeaving&&(Oo(e,h),Lo(e,p),Po(w)||Io(e,s,_,n))})),Eo(w,[e,n])},onEnterCancelled(e){k(e,!1),Eo(y,[e])},onAppearCancelled(e){k(e,!0),Eo(C,[e])},onLeaveCancelled(e){E(e),Eo(S,[e])}})}(e),t);Co.displayName="Transition";const ko={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Eo=(Co.props=v({},$n,ko),(e,t=[])=>{T(e)?e.forEach((e=>e(...t))):e&&e(...t)}),Po=e=>!!e&&(T(e)?e.some((e=>e.length>1)):e.length>1);function Ao(e){return J(e)}function Lo(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e[xo]||(e[xo]=new Set)).add(t)}function Oo(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const n=e[xo];n&&(n.delete(t),n.size||(e[xo]=void 0))}function Ro(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let jo=0;function Io(e,t,n,s){const r=e._endId=++jo,o=()=>{r===e._endId&&s()};if(n)return setTimeout(o,n);const{type:i,timeout:c,propCount:a}=function(e,t){const n=window.getComputedStyle(e),s=e=>(n[e]||"").split(", "),r=s(`${So}Delay`),o=s(`${So}Duration`),i=Mo(r,o),c=s(`${To}Delay`),a=s(`${To}Duration`),l=Mo(c,a);let u=null,h=0,d=0;return t===So?i>0&&(u=So,h=i,d=o.length):t===To?l>0&&(u=To,h=l,d=a.length):(h=Math.max(i,l),u=h>0?i>l?So:To:null,d=u?u===So?o.length:a.length:0),{type:u,timeout:h,propCount:d,hasTransform:u===So&&/\b(transform|all)(,|$)/.test(s(`${So}Property`).toString())}}(e,t);if(!i)return s();const l=i+"end";let u=0;const h=()=>{e.removeEventListener(l,d),o()},d=t=>{t.target===e&&++u>=a&&h()};setTimeout((()=>{u<a&&h()}),c+1),e.addEventListener(l,d)}function Mo(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map(((t,n)=>Do(t)+Do(e[n]))))}function Do(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}const zo=Symbol("_vod"),Fo=Symbol("_vsh"),Uo=Symbol("");function Qo(e){const t=so();if(!t)return;const n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach((e=>$o(e,n)))},s=()=>{const s=e(t.proxy);No(t.subTree,s),n(s)};cs((()=>{gr(s,null,{flush:"post"});const e=new MutationObserver(s);e.observe(t.subTree.el.parentNode,{childList:!0}),hs((()=>e.disconnect()))}))}function No(e,t){if(128&e.shapeFlag){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push((()=>{No(n.activeBranch,t)}))}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el)$o(e.el,t);else if(e.type===Ar)e.children.forEach((e=>No(e,t)));else if(e.type===Rr){let{el:n,anchor:s}=e;for(;n&&($o(n,t),n!==s);)n=n.nextSibling}}function $o(e,t){if(1===e.nodeType){const n=e.style;let s="";for(const e in t)n.setProperty(`--${e}`,t[e]),s+=`--${e}: ${t[e]};`;n[Uo]=s}}const Bo=/(^|;)\s*display\s*:/,Wo=/\s*!important$/;function Vo(e,t,n){if(T(n))n.forEach((n=>Vo(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=function(e,t){const n=qo[t];if(n)return n;let s=U(t);if("filter"!==s&&s in e)return qo[t]=s;s=$(s);for(let n=0;n<Ho.length;n++){const r=Ho[n]+s;if(r in e)return qo[t]=r}return t}(e,t);Wo.test(n)?e.setProperty(N(s),n.replace(Wo,""),"important"):e[s]=n}}const Ho=["Webkit","Moz","ms"],qo={},Jo="http://www.w3.org/1999/xlink";function Go(e,t,n,s,r,o=se(t)){s&&t.startsWith("xlink:")?null==n?e.removeAttributeNS(Jo,t.slice(6,t.length)):e.setAttributeNS(Jo,t,n):null==n||o&&!re(n)?e.removeAttribute(t):e.setAttribute(t,o?"":P(n)?String(n):n)}const Ko=Symbol("_vei");const Zo=/(?:Once|Passive|Capture)$/;let Yo=0;const Xo=Promise.resolve(),ei=()=>Yo||(Xo.then((()=>Yo=0)),Yo=Date.now()),ti=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123;"undefined"!=typeof HTMLElement&&HTMLElement,Symbol("_moveCb"),Symbol("_enterCb"),Symbol("_assign");const ni=v({patchProp:(e,t,n,s,r,o)=>{const i="svg"===r;"class"===t?function(e,t,n){const s=e[xo];s&&(t=(t?[t,...s]:[...s]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,s,i):"style"===t?function(e,t,n){const s=e.style,r=E(n);let o=!1;if(n&&!r){if(t)if(E(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&Vo(s,t,"")}else for(const e in t)null==n[e]&&Vo(s,e,"");for(const e in n)"display"===e&&(o=!0),Vo(s,e,n[e])}else if(r){if(t!==n){const e=s[Uo];e&&(n+=";"+e),s.cssText=n,o=Bo.test(n)}}else t&&e.removeAttribute("style");zo in e&&(e[zo]=o?s.display:"",e[Fo]&&(s.display="none"))}(e,n,s):g(t)?b(t)||function(e,t,n,s,r=null){const o=e[Ko]||(e[Ko]={}),i=o[t];if(s&&i)i.value=s;else{const[n,c]=function(e){let t;if(Zo.test(e)){let n;for(t={};n=e.match(Zo);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[":"===e[2]?e.slice(3):N(e.slice(2)),t]}(t);if(s){const i=o[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();fn(function(e,t){if(T(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=ei(),n}(s,r);!function(e,t,n,s){e.addEventListener(t,n,s)}(e,n,i,c)}else i&&(function(e,t,n,s){e.removeEventListener(t,n,s)}(e,n,i,c),o[t]=void 0)}}(e,t,0,s,o):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,s){if(s)return"innerHTML"===t||"textContent"===t||!!(t in e&&ti(t)&&k(n));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}return(!ti(t)||!E(n))&&t in e}(e,t,s,i))?(function(e,t,n){if("innerHTML"===t||"textContent"===t){if(null==n)return;return void(e[t]=n)}const s=e.tagName;if("value"===t&&"PROGRESS"!==s&&!s.includes("-")){const r="OPTION"===s?e.getAttribute("value")||"":e.value,o=null==n?"":String(n);return r===o&&"_value"in e||(e.value=o),null==n&&e.removeAttribute(t),void(e._value=n)}let r=!1;if(""===n||null==n){const s=typeof e[t];"boolean"===s?n=re(n):null==n&&"string"===s?(n="",r=!0):"number"===s&&(n=0,r=!0)}try{e[t]=n}catch(e){}r&&e.removeAttribute(t)}(e,t,s),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||Go(e,t,s,i,0,"value"!==t)):("true-value"===t?e._trueValue=s:"false-value"===t&&(e._falseValue=s),Go(e,t,s,i))}},wo);let si;const ri=(e=>(Dn("data-v-55c33628"),e=e(),zn(),e))((()=>Vr("div",{class:"wg-loader"},null,-1))),oi={__name:"Loader",setup:e=>(Qo((e=>({"31d93014":Ot(dn).style.colors.midnight,"07d13f9a":Ot(dn).style.colors.lightGray}))),(e,t)=>t[0]||(zr(-1),(t[0]=Vr("div",{class:"wg-loader-p"},[ri])).cacheIndex=0,zr(1),t[0]))};var ii=n(72),ci=n.n(ii),ai=n(825),li=n.n(ai),ui=n(659),hi=n.n(ui),di=n(56),pi=n.n(di),fi=n(540),mi=n.n(fi),_i=n(113),gi=n.n(_i),bi=n(968),vi={};vi.styleTagTransform=gi(),vi.setAttributes=pi(),vi.insert=hi().bind(null,"head"),vi.domAPI=li(),vi.insertStyleElement=mi(),ci()(bi.A,vi),bi.A&&bi.A.locals&&bi.A.locals;var yi=n(374);const wi=(0,yi.A)(oi,[["__scopeId","data-v-55c33628"]]),Si={class:"wg-widget-title"},Ti={__name:"TitleInfo",props:{match:{type:Object,required:!0}},setup:e=>(Qo((e=>({"1084ee47":Ot(dn).style.colors.primary_black,"3b273f3c":Ot(dn).style.fonts.medium,"73ce6c4f":Ot(dn).style.fonts.regular}))),(t,n)=>(Mr(),Ur(Ar,null,[Gr(" prettier-ignore "),Vr("div",Si,[Vr("span",null,ie(`${e.match?.date} ${e.match?.time}`),1),Jr(" | "),Vr("span",null,ie(e.match?.league?.country),1),Jr(" | "),Vr("span",null,ie(e.match?.league?.name),1)])],2112)))};var xi=n(429),Ci={};Ci.styleTagTransform=gi(),Ci.setAttributes=pi(),Ci.insert=hi().bind(null,"head"),Ci.domAPI=li(),Ci.insertStyleElement=mi(),ci()(xi.A,Ci),xi.A&&xi.A.locals&&xi.A.locals;const ki=(0,yi.A)(Ti,[["__scopeId","data-v-3b301c6f"]]),Ei={class:"wg-widget-command"},Pi=["src","alt"],Ai={class:"wg-widget-command__name"},Li={__name:"Command",props:{img:{type:String,required:!0},name:{type:String,required:!0}},setup:e=>(Qo((e=>({ca11612e:Ot(dn).style.colors.primary_black,"91c9f8f8":Ot(dn).style.fonts.medium,"309eeaf1":Ot(dn).style.fonts.medium500}))),(t,n)=>(Mr(),Ur("div",Ei,[e.img?(Mr(),Ur("img",{key:0,src:e.img,alt:e.name,class:"wg-widget-command__icon",width:"20",height:"20"},null,8,Pi)):Gr("v-if",!0),Vr("div",Ai,ie(e.name),1)])))};var Oi=n(766),Ri={};Ri.styleTagTransform=gi(),Ri.setAttributes=pi(),Ri.insert=hi().bind(null,"head"),Ri.domAPI=li(),Ri.insertStyleElement=mi(),ci()(Oi.A,Ri),Oi.A&&Oi.A.locals&&Oi.A.locals;const ji=(0,yi.A)(Li,[["__scopeId","data-v-62e86c4d"]]);function Ii(e,t,n){const s=dn.debug;let r=-1;return _r(e,((o,i)=>{const c=o-i;var a;t.value=0===(a=c)?"":0<a?"up":"down",s&&console.log(n,"src:",e.value,"n:",o,"o:",i,"n - o:",o-i,"way",t.value),clearTimeout(r),r=setTimeout((()=>{t.value=""}),0<c?45e3:8e3)}))}function Mi(e,t,n){const s=dn.debug;return _r(e,((r,o)=>{t.value=0<r,s&&console.log(n,"src:",e.value,"n:",r,"o:",o,"way",t.value)}))}const Di="-",zi=c[dn.lang],Fi=(e,t=!0)=>{let n=e??-1;return n<0?zi[5]:(t&&90<n&&("string"==typeof e&&-1===e.search("\\+")||"string"!=typeof e)&&(n="90+"),`${n}'`)},Ui=c[dn.lang];const Qi={class:"wg-widget-score"},Ni={class:"wg-score"},$i={key:0,class:"wg-score__divider"},Bi={__name:"Score",props:{match:{type:Object,required:!0},teams:{type:Array,required:!0}},setup(e){Qo((e=>({"0b9df8dc":Ot(dn).style.colors.primary_grey,"8b070edc":Ot(dn).style.fonts.large32,"7de92cec":Ot(dn).style.fonts.bold700,"0d99d923":Ot(dn).style.colors.green,"60b6cab1":Ot(dn).style.colors.red,"67d7e1a2":Ot(dn).style.colors.primary_black,"0c1fbafe":Ot(dn).style.colors.white_secondary,f86c4286:Ot(dn).style.fonts.medium,"03be8d58":Ot(dn).style.fonts.regular,"8b9016ac":Ot(dn).style.colors.secondary_grey})));const t=e,n=go((()=>function(e){const t=()=>zt===e.stage,n=()=>e.home.score-e.away.score,s={home:{val:go((()=>t()?Di:e.home.score??Di)),win:At(0<n()),way:At("")},away:{val:go((()=>t()?Di:e.away.score??Di)),win:At(0<-1*n()),way:At("")}};return Ii(Dt(e.home,"score"),s.home.way,`REACTIVE updated home score (${e.time}, ${e.slug})`),Ii(Dt(e.away,"score"),s.away.way,`REACTIVE updated away score (${e.time}, ${e.slug})`),Mi(n,s.home.win,`REACTIVE updated home win (${e.time}, ${e.slug})`),Mi((()=>-1*n()),s.away.win,`REACTIVE updated away win (${e.time}, ${e.slug})`),s}(t.match))),s=go((()=>function(e){const t=dn.debug,n=go((()=>{const t=(n=e.stage,{[zt]:"",[Ft]:Fi,[Jt]:Fi,[Gt]:Fi,[Ht]:Ui[1],[qt]:Ui[11],[Xt]:Ui[12],[en]:Ui[9],[tn]:Ui[10],[Ut]:Ui[4],[$t]:Ui[0],[Bt]:Ui[6],[Wt]:Ui[7],[Vt]:Ui[8],[Qt]:Ui[3],[Nt]:Ui[2]}[n]??"?");var n;return"function"==typeof t?t(e.matchTime):t}));return t&&_r(n,(()=>{console.log(`REACTIVE updated status (${e.time}, ${e.slug})`,n.value,e.live)})),n}(t.match))),r=go((()=>t.match?.live));return(t,o)=>(Mr(),Ur("div",Qi,[Vr("div",Ni,[(Mr(!0),Ur(Ar,null,gs(e.teams,((e,t)=>(Mr(),Ur(Ar,{key:e},[Vr("span",{class:ne(["wg-score__count",{[`wg-${n.value[e].way.value}-score`]:n.value[e].way.value,"wg-green":n.value[e].win.value}])},ie(n.value[e].val.value),3),t?Gr("v-if",!0):(Mr(),Ur("span",$i,":"))],64)))),128))]),Gr(" prettier-ignore "),Vr("div",{class:ne(["wg-status",{"wg-live":r.value}])},[Gr(" remove live class to see other styles like for finished condition "),Jr(" "+ie(s.value),1)],2)]))}};var Wi=n(672),Vi={};Vi.styleTagTransform=gi(),Vi.setAttributes=pi(),Vi.insert=hi().bind(null,"head"),Vi.domAPI=li(),Vi.insertStyleElement=mi(),ci()(Wi.A,Vi),Wi.A&&Wi.A.locals&&Wi.A.locals;const Hi=(0,yi.A)(Bi,[["__scopeId","data-v-78c5cd43"]]),qi={class:"wg-widget-placeholder"},Ji=(e=>(Dn("data-v-d6249f0a"),e=e(),zn(),e))((()=>Vr("img",{class:"wg-widget-placeholder__icon",src:"https://widgetlogic.org/v2/img/placeholder-blue.svg",alt:"wg-placeholder-icon"},null,-1))),Gi={__name:"Placeholder",props:{match:{type:[Object,null],required:!0}},setup(e){Qo((e=>({"4ad1747f":Ot(dn).style.colors.white_secondary,"2a2c557e":Ot(dn).style.fonts.medium,"240d1ab3":Ot(dn).style.fonts.regular,27988709:Ot(dn).style.colors.secondary_grey})));const t=e,n=go((()=>t.match?dn.widgetMes[1]+` ${t.match?.date} ${t.match?.time} ${t.match?.home?.name} - ${t.match?.away?.name}.`:dn.widgetMes[0]));return(e,t)=>(Mr(),Ur("div",qi,[Ji,Vr("span",null,ie(n.value),1)]))}};var Ki=n(984),Zi={};Zi.styleTagTransform=gi(),Zi.setAttributes=pi(),Zi.insert=hi().bind(null,"head"),Zi.domAPI=li(),Zi.insertStyleElement=mi(),ci()(Ki.A,Zi),Ki.A&&Ki.A.locals&&Ki.A.locals;const Yi=(0,yi.A)(Gi,[["__scopeId","data-v-d6249f0a"]]),Xi={class:"wg-widget-container"},ec={class:"wgwidget-game__info"},tc=Object.assign({inheritAttrs:!1},{__name:"Widget",props:{match:{type:[Object,null],required:!0}},setup(e){const t=e,n=go((()=>t.match?.live)),s=go((()=>!t.match)),r=["home","away"];return(t,o)=>(Mr(),Ur("div",Xi,[n.value?Gr("v-if",!0):(Mr(),Qr(Yi,{key:0,match:e.match},null,8,["match"])),s.value?Gr("v-if",!0):(Mr(),Ur(Ar,{key:1},[Hr(ki,{match:e.match},null,8,["match"]),Vr("div",ec,[(Mr(),Ur(Ar,null,gs(r,((t,n)=>(Mr(),Ur(Ar,{key:t},[Hr(ji,{img:e.match[t].img,name:e.match[t].name},null,8,["img","name"]),n?Gr("v-if",!0):(Mr(),Qr(Hi,{key:0,teams:r,match:e.match},null,8,["match"]))],64)))),64))])],64))]))}});var nc=n(99),sc={};sc.styleTagTransform=gi(),sc.setAttributes=pi(),sc.insert=hi().bind(null,"head"),sc.domAPI=li(),sc.insertStyleElement=mi(),ci()(nc.A,sc),nc.A&&nc.A.locals&&nc.A.locals;const rc=(0,yi.A)(tc,[["__scopeId","data-v-d05217d0"]]),oc={class:"wg-wrapper"},ic={key:0,style:{font:"normal 11px sans-serif"}},cc={key:1},ac={__name:"App",setup(e){Qo((e=>({"07379a9f":Ot(dn).style.fonts.main_font})));const t=dn.debug,{empty:n}=dn,s=go((()=>!Object.values(ln.matches).length)),r=go((()=>{const e=(e=>{const n=[...sn],s=[...n,Ut,zt];let r=null,o=null;const i=localStorage,c=!!i,a=c?i.getItem("matchSlug"):null,l=t=>{for(let n in e)if(t.includes(ln.matches[n].stage))return e[n];return null};if(t&&console.log("selectedMatch",a),a)if(r=e[a],r&&s.includes(r.stage)){if(r&&!n.includes(r.stage)&&(o=l(n),o&&i.removeItem("matchSlug")),!o)return t&&console.log("stored match",r),r}else r&&!s.includes(r.stage)&&un(),i.removeItem("matchSlug");return o||(o=l(n)),r=o||l(s),r&&c&&i.setItem("matchSlug",r.slug),t&&console.log("match",r),r})(ln.matches);return dn.matchSlug=e?e.slug:null,dn.resetAutoUpdate(),e}));return(e,t)=>(Mr(),Ur("div",oc,[Ot(ln).loading?(Mr(),Ur("div",ic,[Hr(wi)])):(Mr(),Ur("div",cc,[s.value?(Mr(),Ur(Ar,{key:0},[Jr(ie(Ot(n)),1)],64)):(Mr(),Qr(rc,{key:1,match:r.value},null,8,["match"]))]))]))}};var lc=n(365),uc={};uc.styleTagTransform=gi(),uc.setAttributes=pi(),uc.insert=hi().bind(null,"head"),uc.domAPI=li(),uc.insertStyleElement=mi(),ci()(lc.A,uc),lc.A&&lc.A.locals&&lc.A.locals;const hc=(0,yi.A)(ac,[["__scopeId","data-v-21cbf1ea"]]),dc=e=>{console.log("start mounting...");const t=document.createElement("div");t.id=dn.mainId,e.after(t),e.remove(),((...e)=>{const t=(si||(si=function(e){return cr(e)}(ni))).createApp(...e),{mount:n}=t;return t.mount=e=>{const s=function(e){return E(e)?document.querySelector(e):e}(e);if(!s)return;const r=t._component;k(r)||r.render||r.template||(r.template=s.innerHTML),s.innerHTML="";const o=n(s,!1,function(e){return e instanceof SVGElement?"svg":"function"==typeof MathMLElement&&e instanceof MathMLElement?"mathml":void 0}(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},t})(hc).mount(`#${dn.mainId}`),dn.debug=!1};function pc(e,t,n,s){return new(n||(n=Promise))((function(r,o){function i(e){try{a(s.next(e))}catch(e){o(e)}}function c(e){try{a(s.throw(e))}catch(e){o(e)}}function a(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,c)}a((s=s.apply(e,t||[])).next())}))}function fc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}"function"==typeof SuppressedError&&SuppressedError;var mc,_c={exports:{}},gc="object"==typeof Reflect?Reflect:null,bc=gc&&"function"==typeof gc.apply?gc.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};mc=gc&&"function"==typeof gc.ownKeys?gc.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var vc=Number.isNaN||function(e){return e!=e};function yc(){yc.init.call(this)}_c.exports=yc,_c.exports.once=function(e,t){return new Promise((function(n,s){function r(n){e.removeListener(t,o),s(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",r),n([].slice.call(arguments))}Lc(e,t,o,{once:!0}),"error"!==t&&function(e,t){"function"==typeof e.on&&Lc(e,"error",t,{once:!0})}(e,r)}))},yc.EventEmitter=yc,yc.prototype._events=void 0,yc.prototype._eventsCount=0,yc.prototype._maxListeners=void 0;var wc=10;function Sc(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function Tc(e){return void 0===e._maxListeners?yc.defaultMaxListeners:e._maxListeners}function xc(e,t,n,s){var r,o,i,c;if(Sc(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),i=o[t]),void 0===i)i=o[t]=n,++e._eventsCount;else if("function"==typeof i?i=o[t]=s?[n,i]:[i,n]:s?i.unshift(n):i.push(n),(r=Tc(e))>0&&i.length>r&&!i.warned){i.warned=!0;var a=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");a.name="MaxListenersExceededWarning",a.emitter=e,a.type=t,a.count=i.length,c=a,console&&console.warn&&console.warn(c)}return e}function Cc(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function kc(e,t,n){var s={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},r=Cc.bind(s);return r.listener=n,s.wrapFn=r,r}function Ec(e,t,n){var s=e._events;if(void 0===s)return[];var r=s[t];return void 0===r?[]:"function"==typeof r?n?[r.listener||r]:[r]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(r):Ac(r,r.length)}function Pc(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function Ac(e,t){for(var n=new Array(t),s=0;s<t;++s)n[s]=e[s];return n}function Lc(e,t,n,s){if("function"==typeof e.on)s.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function r(o){s.once&&e.removeEventListener(t,r),n(o)}))}}Object.defineProperty(yc,"defaultMaxListeners",{enumerable:!0,get:function(){return wc},set:function(e){if("number"!=typeof e||e<0||vc(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");wc=e}}),yc.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},yc.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||vc(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},yc.prototype.getMaxListeners=function(){return Tc(this)},yc.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var s="error"===e,r=this._events;if(void 0!==r)s=s&&void 0===r.error;else if(!s)return!1;if(s){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var i=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw i.context=o,i}var c=r[e];if(void 0===c)return!1;if("function"==typeof c)bc(c,this,t);else{var a=c.length,l=Ac(c,a);for(n=0;n<a;++n)bc(l[n],this,t)}return!0},yc.prototype.addListener=function(e,t){return xc(this,e,t,!1)},yc.prototype.on=yc.prototype.addListener,yc.prototype.prependListener=function(e,t){return xc(this,e,t,!0)},yc.prototype.once=function(e,t){return Sc(t),this.on(e,kc(this,e,t)),this},yc.prototype.prependOnceListener=function(e,t){return Sc(t),this.prependListener(e,kc(this,e,t)),this},yc.prototype.removeListener=function(e,t){var n,s,r,o,i;if(Sc(t),void 0===(s=this._events))return this;if(void 0===(n=s[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete s[e],s.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(r=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){i=n[o].listener,r=o;break}if(r<0)return this;0===r?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,r),1===n.length&&(s[e]=n[0]),void 0!==s.removeListener&&this.emit("removeListener",e,i||t)}return this},yc.prototype.off=yc.prototype.removeListener,yc.prototype.removeAllListeners=function(e){var t,n,s;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var r,o=Object.keys(n);for(s=0;s<o.length;++s)"removeListener"!==(r=o[s])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(s=t.length-1;s>=0;s--)this.removeListener(e,t[s]);return this},yc.prototype.listeners=function(e){return Ec(this,e,!0)},yc.prototype.rawListeners=function(e){return Ec(this,e,!1)},yc.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):Pc.call(e,t)},yc.prototype.listenerCount=Pc,yc.prototype.eventNames=function(){return this._eventsCount>0?mc(this._events):[]};var Oc,Rc,jc,Ic,Mc,Dc,zc,Fc=fc(_c.exports);function Uc(e){return null!=e&&"function"==typeof e}function Qc(e,t,n){e>31&&(e=31);const s=function(e,t){return Math.floor(Math.random()*(t-0+1)+0)}(0,Math.min(n,t*Math.pow(2,e)));return Math.min(n,t+s)}function Nc(e){return Math.min(1e3*e,2147483647)}!function(e){e[e.timeout=1]="timeout",e[e.transportClosed=2]="transportClosed",e[e.clientDisconnected=3]="clientDisconnected",e[e.clientClosed=4]="clientClosed",e[e.clientConnectToken=5]="clientConnectToken",e[e.clientRefreshToken=6]="clientRefreshToken",e[e.subscriptionUnsubscribed=7]="subscriptionUnsubscribed",e[e.subscriptionSubscribeToken=8]="subscriptionSubscribeToken",e[e.subscriptionRefreshToken=9]="subscriptionRefreshToken",e[e.transportWriteError=10]="transportWriteError",e[e.connectionClosed=11]="connectionClosed",e[e.badConfiguration=12]="badConfiguration"}(Oc||(Oc={})),function(e){e[e.connectCalled=0]="connectCalled",e[e.transportClosed=1]="transportClosed",e[e.noPing=2]="noPing",e[e.subscribeTimeout=3]="subscribeTimeout",e[e.unsubscribeError=4]="unsubscribeError"}(Rc||(Rc={})),function(e){e[e.disconnectCalled=0]="disconnectCalled",e[e.unauthorized=1]="unauthorized",e[e.badProtocol=2]="badProtocol",e[e.messageSizeLimit=3]="messageSizeLimit"}(jc||(jc={})),function(e){e[e.subscribeCalled=0]="subscribeCalled",e[e.transportClosed=1]="transportClosed"}(Ic||(Ic={})),function(e){e[e.unsubscribeCalled=0]="unsubscribeCalled",e[e.unauthorized=1]="unauthorized",e[e.clientClosed=2]="clientClosed"}(Mc||(Mc={})),function(e){e.Disconnected="disconnected",e.Connecting="connecting",e.Connected="connected"}(Dc||(Dc={})),function(e){e.Unsubscribed="unsubscribed",e.Subscribing="subscribing",e.Subscribed="subscribed"}(zc||(zc={}));class $c extends Fc{constructor(e,t,n){super(),this._resubscribeTimeout=null,this._refreshTimeout=null,this.channel=t,this.state=zc.Unsubscribed,this._centrifuge=e,this._token="",this._getToken=null,this._data=null,this._getData=null,this._recover=!1,this._offset=null,this._epoch=null,this._recoverable=!1,this._positioned=!1,this._joinLeave=!1,this._minResubscribeDelay=500,this._maxResubscribeDelay=2e4,this._resubscribeTimeout=null,this._resubscribeAttempts=0,this._promises={},this._promiseId=0,this._inflight=!1,this._refreshTimeout=null,this._delta="",this._delta_negotiated=!1,this._prevValue=null,this._unsubPromise=Promise.resolve(),this._setOptions(n),this._centrifuge._debugEnabled?(this.on("state",(e=>{this._centrifuge._debug("subscription state",t,e.oldState,"->",e.newState)})),this.on("error",(e=>{this._centrifuge._debug("subscription error",t,e)}))):this.on("error",(function(){Function.prototype()}))}ready(e){return this.state===zc.Unsubscribed?Promise.reject({code:Oc.subscriptionUnsubscribed,message:this.state}):this.state===zc.Subscribed?Promise.resolve():new Promise(((t,n)=>{const s={resolve:t,reject:n};e&&(s.timeout=setTimeout((function(){n({code:Oc.timeout,message:"timeout"})}),e)),this._promises[this._nextPromiseId()]=s}))}subscribe(){this._isSubscribed()||(this._resubscribeAttempts=0,this._setSubscribing(Ic.subscribeCalled,"subscribe called"))}unsubscribe(){this._unsubPromise=this._setUnsubscribed(Mc.unsubscribeCalled,"unsubscribe called",!0)}publish(e){const t=this;return this._methodCall().then((function(){return t._centrifuge.publish(t.channel,e)}))}presence(){const e=this;return this._methodCall().then((function(){return e._centrifuge.presence(e.channel)}))}presenceStats(){const e=this;return this._methodCall().then((function(){return e._centrifuge.presenceStats(e.channel)}))}history(e){const t=this;return this._methodCall().then((function(){return t._centrifuge.history(t.channel,e)}))}_methodCall(){return this._isSubscribed()?Promise.resolve():this._isUnsubscribed()?Promise.reject({code:Oc.subscriptionUnsubscribed,message:this.state}):new Promise(((e,t)=>{const n=setTimeout((function(){t({code:Oc.timeout,message:"timeout"})}),this._centrifuge._config.timeout);this._promises[this._nextPromiseId()]={timeout:n,resolve:e,reject:t}}))}_nextPromiseId(){return++this._promiseId}_needRecover(){return!0===this._recover}_isUnsubscribed(){return this.state===zc.Unsubscribed}_isSubscribing(){return this.state===zc.Subscribing}_isSubscribed(){return this.state===zc.Subscribed}_setState(e){if(this.state!==e){const t=this.state;return this.state=e,this.emit("state",{newState:e,oldState:t,channel:this.channel}),!0}return!1}_usesToken(){return""!==this._token||null!==this._getToken}_clearSubscribingState(){this._resubscribeAttempts=0,this._clearResubscribeTimeout()}_clearSubscribedState(){this._clearRefreshTimeout()}_setSubscribed(e){if(!this._isSubscribing())return;this._clearSubscribingState(),e.recoverable&&(this._recover=!0,this._offset=e.offset||0,this._epoch=e.epoch||""),e.delta?this._delta_negotiated=!0:this._delta_negotiated=!1,this._setState(zc.Subscribed);const t=this._centrifuge._getSubscribeContext(this.channel,e);this.emit("subscribed",t),this._resolvePromises();const n=e.publications;if(n&&n.length>0)for(const e in n)n.hasOwnProperty(e)&&this._handlePublication(n[e]);!0===e.expires&&(this._refreshTimeout=setTimeout((()=>this._refresh()),Nc(e.ttl)))}_setSubscribing(e,t){return pc(this,void 0,void 0,(function*(){this._isSubscribing()||(this._isSubscribed()&&this._clearSubscribedState(),this._setState(zc.Subscribing)&&this.emit("subscribing",{channel:this.channel,code:e,reason:t}),this._centrifuge._transport&&this._centrifuge._transport.emulation()&&(yield this._unsubPromise),this._isSubscribing()&&this._subscribe())}))}_subscribe(){if(this._centrifuge._debug("subscribing on",this.channel),!this._centrifuge._transportIsOpen)return this._centrifuge._debug("delay subscribe on",this.channel,"till connected"),null;const e=this,t={channel:e.channel};return!this._usesToken()||this._token?e._getData?(e._getData(t).then((function(t){e._isSubscribing()&&(e._data=t,e._sendSubscribe(e._token))})),null):e._sendSubscribe(e._token):(this._getSubscriptionToken().then((function(n){e._isSubscribing()&&(n?(e._token=n,e._getData?e._getData(t).then((function(t){e._isSubscribing()&&(e._data=t,e._sendSubscribe(n))})):e._sendSubscribe(n)):e._failUnauthorized())})).catch((function(t){e._isSubscribing()&&(t instanceof ea?e._failUnauthorized():(e.emit("error",{type:"subscribeToken",channel:e.channel,error:{code:Oc.subscriptionSubscribeToken,message:void 0!==t?t.toString():""}}),e._scheduleResubscribe()))})),null)}_sendSubscribe(e){if(!this._centrifuge._transportIsOpen)return null;const t={channel:this.channel};if(e&&(t.token=e),this._data&&(t.data=this._data),this._positioned&&(t.positioned=!0),this._recoverable&&(t.recoverable=!0),this._joinLeave&&(t.join_leave=!0),this._needRecover()){t.recover=!0;const e=this._getOffset();e&&(t.offset=e);const n=this._getEpoch();n&&(t.epoch=n)}this._delta&&(t.delta=this._delta);const n={subscribe:t};return this._inflight=!0,this._centrifuge._call(n).then((e=>{this._inflight=!1;const t=e.reply.subscribe;this._handleSubscribeResponse(t),e.next&&e.next()}),(e=>{this._inflight=!1,this._handleSubscribeError(e.error),e.next&&e.next()})),n}_handleSubscribeError(e){this._isSubscribing()&&(e.code!==Oc.timeout?this._subscribeError(e):this._centrifuge._disconnect(Rc.subscribeTimeout,"subscribe timeout",!0))}_handleSubscribeResponse(e){this._isSubscribing()&&this._setSubscribed(e)}_setUnsubscribed(e,t,n){if(this._isUnsubscribed())return Promise.resolve();let s=Promise.resolve();return this._isSubscribed()?(n&&(s=this._centrifuge._unsubscribe(this)),this._clearSubscribedState()):this._isSubscribing()&&(this._inflight&&n&&(s=this._centrifuge._unsubscribe(this)),this._clearSubscribingState()),this._setState(zc.Unsubscribed)&&this.emit("unsubscribed",{channel:this.channel,code:e,reason:t}),this._rejectPromises({code:Oc.subscriptionUnsubscribed,message:this.state}),s}_handlePublication(e){if(this._delta&&this._delta_negotiated){const{newData:t,newPrevValue:n}=this._centrifuge._codec.applyDeltaIfNeeded(e,this._prevValue);e.data=t,this._prevValue=n}const t=this._centrifuge._getPublicationContext(this.channel,e);this.emit("publication",t),e.offset&&(this._offset=e.offset)}_handleJoin(e){const t=this._centrifuge._getJoinLeaveContext(e.info);this.emit("join",{channel:this.channel,info:t})}_handleLeave(e){const t=this._centrifuge._getJoinLeaveContext(e.info);this.emit("leave",{channel:this.channel,info:t})}_resolvePromises(){for(const e in this._promises)this._promises.hasOwnProperty(e)&&(this._promises[e].timeout&&clearTimeout(this._promises[e].timeout),this._promises[e].resolve(),delete this._promises[e])}_rejectPromises(e){for(const t in this._promises)this._promises.hasOwnProperty(t)&&(this._promises[t].timeout&&clearTimeout(this._promises[t].timeout),this._promises[t].reject(e),delete this._promises[t])}_scheduleResubscribe(){const e=this,t=this._getResubscribeDelay();this._resubscribeTimeout=setTimeout((function(){e._isSubscribing()&&e._subscribe()}),t)}_subscribeError(e){if(this._isSubscribing())if(e.code<100||109===e.code||!0===e.temporary){109===e.code&&(this._token="");const t={channel:this.channel,type:"subscribe",error:e};this._centrifuge.state===Dc.Connected&&this.emit("error",t),this._scheduleResubscribe()}else this._setUnsubscribed(e.code,e.message,!1)}_getResubscribeDelay(){const e=Qc(this._resubscribeAttempts,this._minResubscribeDelay,this._maxResubscribeDelay);return this._resubscribeAttempts++,e}_setOptions(e){if(e&&(e.since&&(this._offset=e.since.offset,this._epoch=e.since.epoch,this._recover=!0),e.data&&(this._data=e.data),e.getData&&(this._getData=e.getData),void 0!==e.minResubscribeDelay&&(this._minResubscribeDelay=e.minResubscribeDelay),void 0!==e.maxResubscribeDelay&&(this._maxResubscribeDelay=e.maxResubscribeDelay),e.token&&(this._token=e.token),e.getToken&&(this._getToken=e.getToken),!0===e.positioned&&(this._positioned=!0),!0===e.recoverable&&(this._recoverable=!0),!0===e.joinLeave&&(this._joinLeave=!0),e.delta)){if("fossil"!==e.delta)throw new Error("unsupported delta format");this._delta=e.delta}}_getOffset(){const e=this._offset;return null!==e?e:0}_getEpoch(){const e=this._epoch;return null!==e?e:""}_clearRefreshTimeout(){null!==this._refreshTimeout&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null)}_clearResubscribeTimeout(){null!==this._resubscribeTimeout&&(clearTimeout(this._resubscribeTimeout),this._resubscribeTimeout=null)}_getSubscriptionToken(){this._centrifuge._debug("get subscription token for channel",this.channel);const e={channel:this.channel},t=this._getToken;if(null===t)throw this.emit("error",{type:"configuration",channel:this.channel,error:{code:Oc.badConfiguration,message:"provide a function to get channel subscription token"}}),new ea("");return t(e)}_refresh(){this._clearRefreshTimeout();const e=this;this._getSubscriptionToken().then((function(t){if(!e._isSubscribed())return;if(!t)return void e._failUnauthorized();e._token=t;const n={sub_refresh:{channel:e.channel,token:t}};e._centrifuge._call(n).then((t=>{const n=t.reply.sub_refresh;e._refreshResponse(n),t.next&&t.next()}),(t=>{e._refreshError(t.error),t.next&&t.next()}))})).catch((function(t){t instanceof ea?e._failUnauthorized():(e.emit("error",{type:"refreshToken",channel:e.channel,error:{code:Oc.subscriptionRefreshToken,message:void 0!==t?t.toString():""}}),e._refreshTimeout=setTimeout((()=>e._refresh()),e._getRefreshRetryDelay()))}))}_refreshResponse(e){this._isSubscribed()&&(this._centrifuge._debug("subscription token refreshed, channel",this.channel),this._clearRefreshTimeout(),!0===e.expires&&(this._refreshTimeout=setTimeout((()=>this._refresh()),Nc(e.ttl))))}_refreshError(e){this._isSubscribed()&&(e.code<100||!0===e.temporary?(this.emit("error",{type:"refresh",channel:this.channel,error:e}),this._refreshTimeout=setTimeout((()=>this._refresh()),this._getRefreshRetryDelay())):this._setUnsubscribed(e.code,e.message,!0))}_getRefreshRetryDelay(){return Qc(0,1e4,2e4)}_failUnauthorized(){this._setUnsubscribed(Mc.unauthorized,"unauthorized",!0)}}class Bc{constructor(e,t){this.endpoint=e,this.options=t,this._transport=null}name(){return"sockjs"}subName(){return"sockjs-"+this._transport.transport}emulation(){return!1}supported(){return null!==this.options.sockjs}initialize(e,t){this._transport=new this.options.sockjs(this.endpoint,null,this.options.sockjsOptions),this._transport.onopen=()=>{t.onOpen()},this._transport.onerror=e=>{t.onError(e)},this._transport.onclose=e=>{t.onClose(e)},this._transport.onmessage=e=>{t.onMessage(e.data)}}close(){this._transport.close()}send(e){this._transport.send(e)}}class Wc{constructor(e,t){this.endpoint=e,this.options=t,this._transport=null}name(){return"websocket"}subName(){return"websocket"}emulation(){return!1}supported(){return void 0!==this.options.websocket&&null!==this.options.websocket}initialize(e,t){let n="";"protobuf"===e&&(n="centrifuge-protobuf"),this._transport=""!==n?new this.options.websocket(this.endpoint,n):new this.options.websocket(this.endpoint),"protobuf"===e&&(this._transport.binaryType="arraybuffer"),this._transport.onopen=()=>{t.onOpen()},this._transport.onerror=e=>{t.onError(e)},this._transport.onclose=e=>{t.onClose(e)},this._transport.onmessage=e=>{t.onMessage(e.data)}}close(){this._transport.close()}send(e){this._transport.send(e)}}class Vc{constructor(e,t){this.endpoint=e,this.options=t,this._abortController=null,this._utf8decoder=new TextDecoder,this._protocol="json"}name(){return"http_stream"}subName(){return"http_stream"}emulation(){return!0}_handleErrors(e){if(!e.ok)throw new Error(e.status);return e}_fetchEventTarget(e,t,n){const s=new EventTarget;return(0,e.options.fetch)(t,n).then(e._handleErrors).then((t=>{s.dispatchEvent(new Event("open"));let n="",r=0,o=new Uint8Array;const i=t.body.getReader();return new e.options.readableStream({start:t=>function c(){return i.read().then((({done:i,value:a})=>{if(i)return s.dispatchEvent(new Event("close")),void t.close();try{if("json"===e._protocol)for(n+=e._utf8decoder.decode(a);r<n.length;)if("\n"===n[r]){const e=n.substring(0,r);s.dispatchEvent(new MessageEvent("message",{data:e})),n=n.substring(r+1),r=0}else++r;else{const t=new Uint8Array(o.length+a.length);for(t.set(o),t.set(a,o.length),o=t;;){const t=e.options.decoder.decodeReply(o);if(!t.ok)break;{const e=o.slice(0,t.pos);s.dispatchEvent(new MessageEvent("message",{data:e})),o=o.slice(t.pos)}}}}catch(e){return s.dispatchEvent(new Event("error",{detail:e})),s.dispatchEvent(new Event("close")),void t.close()}c()})).catch((function(e){s.dispatchEvent(new Event("error",{detail:e})),s.dispatchEvent(new Event("close")),t.close()}))}()})})).catch((e=>{s.dispatchEvent(new Event("error",{detail:e})),s.dispatchEvent(new Event("close"))})),s}supported(){return null!==this.options.fetch&&null!==this.options.readableStream&&"undefined"!=typeof TextDecoder&&"undefined"!=typeof AbortController&&"undefined"!=typeof EventTarget&&"undefined"!=typeof Event&&"undefined"!=typeof MessageEvent&&"undefined"!=typeof Error}initialize(e,t,n){let s,r;this._protocol=e,this._abortController=new AbortController,"json"===e?(s={Accept:"application/json","Content-Type":"application/json"},r=n):(s={Accept:"application/octet-stream","Content-Type":"application/octet-stream"},r=n);const o={method:"POST",headers:s,body:r,mode:"cors",credentials:"same-origin",cache:"no-cache",signal:this._abortController.signal},i=this._fetchEventTarget(this,this.endpoint,o);i.addEventListener("open",(()=>{t.onOpen()})),i.addEventListener("error",(e=>{this._abortController.abort(),t.onError(e)})),i.addEventListener("close",(()=>{this._abortController.abort(),t.onClose({code:4,reason:"connection closed"})})),i.addEventListener("message",(e=>{t.onMessage(e.data)}))}close(){this._abortController.abort()}send(e,t,n){let s,r;const o={session:t,node:n,data:e};"json"===this._protocol?(s={"Content-Type":"application/json"},r=JSON.stringify(o)):(s={"Content-Type":"application/octet-stream"},r=this.options.encoder.encodeEmulationRequest(o));const i={method:"POST",headers:s,body:r,mode:"cors",credentials:"same-origin",cache:"no-cache"};(0,this.options.fetch)(this.options.emulationEndpoint,i)}}class Hc{constructor(e,t){this.endpoint=e,this.options=t,this._protocol="json",this._transport=null,this._onClose=null}name(){return"sse"}subName(){return"sse"}emulation(){return!0}supported(){return null!==this.options.eventsource&&null!==this.options.fetch}initialize(e,t,n){let s;s=globalThis&&globalThis.document&&globalThis.document.baseURI?new URL(this.endpoint,globalThis.document.baseURI):new URL(this.endpoint),s.searchParams.append("cf_connect",n);const r=new this.options.eventsource(s.toString(),{});this._transport=r,r.onopen=function(){t.onOpen()},r.onerror=function(e){r.close(),t.onError(e),t.onClose({code:4,reason:"connection closed"})},r.onmessage=function(e){t.onMessage(e.data)},this._onClose=function(){t.onClose({code:4,reason:"connection closed"})}}close(){this._transport.close(),null!==this._onClose&&this._onClose()}send(e,t,n){const s={session:t,node:n,data:e},r={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s),mode:"cors",credentials:"same-origin",cache:"no-cache"};(0,this.options.fetch)(this.options.emulationEndpoint,r)}}class qc{constructor(e,t){this.endpoint=e,this.options=t,this._transport=null,this._stream=null,this._writer=null,this._utf8decoder=new TextDecoder,this._protocol="json"}name(){return"webtransport"}subName(){return"webtransport"}emulation(){return!1}supported(){return void 0!==this.options.webtransport&&null!==this.options.webtransport}initialize(e,t){return pc(this,void 0,void 0,(function*(){let n;n=globalThis&&globalThis.document&&globalThis.document.baseURI?new URL(this.endpoint,globalThis.document.baseURI):new URL(this.endpoint),"protobuf"===e&&n.searchParams.append("cf_protocol","protobuf"),this._protocol=e;const s=new EventTarget;this._transport=new this.options.webtransport(n.toString()),this._transport.closed.then((()=>{t.onClose({code:4,reason:"connection closed"})})).catch((()=>{t.onClose({code:4,reason:"connection closed"})}));try{yield this._transport.ready}catch(e){return void this.close()}let r;try{r=yield this._transport.createBidirectionalStream()}catch(e){return void this.close()}this._stream=r,this._writer=this._stream.writable.getWriter(),s.addEventListener("close",(()=>{t.onClose({code:4,reason:"connection closed"})})),s.addEventListener("message",(e=>{t.onMessage(e.data)})),this._startReading(s),t.onOpen()}))}_startReading(e){return pc(this,void 0,void 0,(function*(){const t=this._stream.readable.getReader();let n="",s=0,r=new Uint8Array;try{for(;;){const{done:o,value:i}=yield t.read();if(i.length>0)if("json"===this._protocol)for(n+=this._utf8decoder.decode(i);s<n.length;)if("\n"===n[s]){const t=n.substring(0,s);e.dispatchEvent(new MessageEvent("message",{data:t})),n=n.substring(s+1),s=0}else++s;else{const t=new Uint8Array(r.length+i.length);for(t.set(r),t.set(i,r.length),r=t;;){const t=this.options.decoder.decodeReply(r);if(!t.ok)break;{const n=r.slice(0,t.pos);e.dispatchEvent(new MessageEvent("message",{data:n})),r=r.slice(t.pos)}}}if(o)break}}catch(t){e.dispatchEvent(new Event("close"))}}))}close(){return pc(this,void 0,void 0,(function*(){try{this._writer&&(yield this._writer.close()),this._transport.close()}catch(e){}}))}send(e){return pc(this,void 0,void 0,(function*(){let t;t="json"===this._protocol?(new TextEncoder).encode(e+"\n"):e;try{yield this._writer.write(t)}catch(e){this.close()}}))}}const Jc=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,-1,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,-1,-1,-1,-1,36,-1,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,-1,-1,-1,63,-1];class Gc{constructor(e){this.a=e,this.pos=0}haveBytes(){return this.pos<this.a.length}getByte(){const e=this.a[this.pos];if(this.pos++,this.pos>this.a.length)throw new RangeError("out of bounds");return e}getChar(){return String.fromCharCode(this.getByte())}getInt(){let e,t=0;for(;this.haveBytes()&&(e=Jc[127&this.getByte()])>=0;)t=(t<<6)+e;return this.pos--,t>>>0}}class Kc{constructor(){this.a=[]}toByteArray(e){return Array.isArray(e)?this.a:new Uint8Array(this.a)}putArray(e,t,n){for(let s=t;s<n;s++)this.a.push(e[s])}}function Zc(e){let t=0,n=0,s=0,r=0,o=0,i=e.length;for(;i>=16;)t=t+e[o+0]|0,n=n+e[o+1]|0,s=s+e[o+2]|0,r=r+e[o+3]|0,t=t+e[o+4]|0,n=n+e[o+5]|0,s=s+e[o+6]|0,r=r+e[o+7]|0,t=t+e[o+8]|0,n=n+e[o+9]|0,s=s+e[o+10]|0,r=r+e[o+11]|0,t=t+e[o+12]|0,n=n+e[o+13]|0,s=s+e[o+14]|0,r=r+e[o+15]|0,o+=16,i-=16;for(;i>=4;)t=t+e[o+0]|0,n=n+e[o+1]|0,s=s+e[o+2]|0,r=r+e[o+3]|0,o+=4,i-=4;switch(r=((r+(s<<8)|0)+(n<<16)|0)+(t<<24)|0,i){case 3:r=r+(e[o+2]<<8)|0;case 2:r=r+(e[o+1]<<16)|0;case 1:r=r+(e[o+0]<<24)|0}return r>>>0}class Yc{name(){return"json"}encodeCommands(e){return e.map((e=>JSON.stringify(e))).join("\n")}decodeReplies(e){return e.trim().split("\n").map((e=>JSON.parse(e)))}applyDeltaIfNeeded(e,t){let n,s;if(e.delta){const r=function(e,t){let n=0;const s=new Gc(t),r=e.length,o=t.length,i=s.getInt();if("\n"!==s.getChar())throw new Error("size integer not terminated by '\\n'");const c=new Kc;for(;s.haveBytes();){const t=s.getInt();let a;switch(s.getChar()){case"@":if(a=s.getInt(),s.haveBytes()&&","!==s.getChar())throw new Error("copy command not terminated by ','");if(n+=t,n>i)throw new Error("copy exceeds output file size");if(a+t>r)throw new Error("copy extends past end of input");c.putArray(e,a,a+t);break;case":":if(n+=t,n>i)throw new Error("insert command gives an output larger than predicted");if(t>o)throw new Error("insert count exceeds size of delta");c.putArray(s.a,s.pos,s.pos+t),s.pos+=t;break;case";":{const s=c.toByteArray(e);if(t!==Zc(s))throw new Error("bad checksum");if(n!==i)throw new Error("generated size does not match predicted size");return s}default:throw new Error("unknown delta operator")}}throw new Error("unterminated delta")}(t,(new TextEncoder).encode(e.data));n=JSON.parse((new TextDecoder).decode(r)),s=r}else n=JSON.parse(e.data),s=(new TextEncoder).encode(e.data);return{newData:n,newPrevValue:s}}}const Xc={token:"",getToken:null,data:null,getData:null,debug:!1,name:"js",version:"",fetch:null,readableStream:null,websocket:null,eventsource:null,sockjs:null,sockjsOptions:{},emulationEndpoint:"/emulation",minReconnectDelay:500,maxReconnectDelay:2e4,timeout:5e3,maxServerPingDelay:1e4,networkEventTarget:null};class ea extends Error{constructor(e){super(e),this.name=this.constructor.name}}class ta extends Fc{constructor(e,t){super(),this._reconnectTimeout=null,this._refreshTimeout=null,this._serverPingTimeout=null,this.state=Dc.Disconnected,this._transportIsOpen=!1,this._endpoint=e,this._emulation=!1,this._transports=[],this._currentTransportIndex=0,this._triedAllTransports=!1,this._transportWasOpen=!1,this._transport=null,this._transportId=0,this._deviceWentOffline=!1,this._transportClosed=!0,this._codec=new Yc,this._reconnecting=!1,this._reconnectTimeout=null,this._reconnectAttempts=0,this._client=null,this._session="",this._node="",this._subs={},this._serverSubs={},this._commandId=0,this._commands=[],this._batching=!1,this._refreshRequired=!1,this._refreshTimeout=null,this._callbacks={},this._token="",this._data=null,this._dispatchPromise=Promise.resolve(),this._serverPing=0,this._serverPingTimeout=null,this._sendPong=!1,this._promises={},this._promiseId=0,this._debugEnabled=!1,this._networkEventsSet=!1,this._config=Object.assign(Object.assign({},Xc),t),this._configure(),this._debugEnabled?(this.on("state",(e=>{this._debug("client state",e.oldState,"->",e.newState)})),this.on("error",(e=>{this._debug("client error",e)}))):this.on("error",(function(){Function.prototype()}))}newSubscription(e,t){if(null!==this.getSubscription(e))throw new Error("Subscription to the channel "+e+" already exists");const n=new $c(this,e,t);return this._subs[e]=n,n}getSubscription(e){return this._getSub(e)}removeSubscription(e){e&&(e.state!==zc.Unsubscribed&&e.unsubscribe(),this._removeSubscription(e))}subscriptions(){return this._subs}ready(e){return this.state===Dc.Disconnected?Promise.reject({code:Oc.clientDisconnected,message:"client disconnected"}):this.state===Dc.Connected?Promise.resolve():new Promise(((t,n)=>{const s={resolve:t,reject:n};e&&(s.timeout=setTimeout((function(){n({code:Oc.timeout,message:"timeout"})}),e)),this._promises[this._nextPromiseId()]=s}))}connect(){this._isConnected()?this._debug("connect called when already connected"):this._isConnecting()?this._debug("connect called when already connecting"):(this._debug("connect called"),this._reconnectAttempts=0,this._startConnecting())}disconnect(){this._disconnect(jc.disconnectCalled,"disconnect called",!1)}setToken(e){this._token=e}send(e){const t={send:{data:e}},n=this;return this._methodCall().then((function(){return n._transportSendCommands([t])?Promise.resolve():Promise.reject(n._createErrorObject(Oc.transportWriteError,"transport write error"))}))}rpc(e,t){const n={rpc:{method:e,data:t}},s=this;return this._methodCall().then((function(){return s._callPromise(n,(function(e){return{data:e.rpc.data}}))}))}publish(e,t){const n={publish:{channel:e,data:t}},s=this;return this._methodCall().then((function(){return s._callPromise(n,(function(){return{}}))}))}history(e,t){const n={history:this._getHistoryRequest(e,t)},s=this;return this._methodCall().then((function(){return s._callPromise(n,(function(t){const n=t.history,r=[];if(n.publications)for(let t=0;t<n.publications.length;t++)r.push(s._getPublicationContext(e,n.publications[t]));return{publications:r,epoch:n.epoch||"",offset:n.offset||0}}))}))}presence(e){const t={presence:{channel:e}},n=this;return this._methodCall().then((function(){return n._callPromise(t,(function(e){const t=e.presence.presence;for(const e in t)if(t.hasOwnProperty(e)){const n=t[e].conn_info,s=t[e].chan_info;n&&(t[e].connInfo=n),s&&(t[e].chanInfo=s)}return{clients:t}}))}))}presenceStats(e){const t={presence_stats:{channel:e}},n=this;return this._methodCall().then((function(){return n._callPromise(t,(function(e){const t=e.presence_stats;return{numUsers:t.num_users,numClients:t.num_clients}}))}))}startBatching(){this._batching=!0}stopBatching(){const e=this;Promise.resolve().then((function(){Promise.resolve().then((function(){e._batching=!1,e._flush()}))}))}_debug(...e){this._debugEnabled&&function(e,t){if(globalThis.console){const e=globalThis.console.debug;Uc(e)&&e.apply(globalThis.console,t)}}(0,e)}_formatOverride(){}_configure(){if(!("Promise"in globalThis))throw new Error("Promise polyfill required");if(!this._endpoint)throw new Error("endpoint configuration required");if(null!==this._config.token&&(this._token=this._config.token),null!==this._config.data&&(this._data=this._config.data),this._codec=new Yc,this._formatOverride(),(!0===this._config.debug||"undefined"!=typeof localStorage&&localStorage.getItem("centrifuge.debug"))&&(this._debugEnabled=!0),this._debug("config",this._config),"string"==typeof this._endpoint);else{if(!("object"==typeof this._endpoint&&this._endpoint instanceof Array))throw new Error("unsupported url configuration type: only string or array of objects are supported");this._transports=this._endpoint,this._emulation=!0;for(const e in this._transports)if(this._transports.hasOwnProperty(e)){const t=this._transports[e];if(!t.endpoint||!t.transport)throw new Error("malformed transport configuration");const n=t.transport;if(["websocket","http_stream","sse","sockjs","webtransport"].indexOf(n)<0)throw new Error("unsupported transport name: "+n)}}}_setState(e){if(this.state!==e){this._reconnecting=!1;const t=this.state;return this.state=e,this.emit("state",{newState:e,oldState:t}),!0}return!1}_isDisconnected(){return this.state===Dc.Disconnected}_isConnecting(){return this.state===Dc.Connecting}_isConnected(){return this.state===Dc.Connected}_nextCommandId(){return++this._commandId}_setNetworkEvents(){if(this._networkEventsSet)return;let e=null;null!==this._config.networkEventTarget?e=this._config.networkEventTarget:void 0!==globalThis.addEventListener&&(e=globalThis),e&&(e.addEventListener("offline",(()=>{this._debug("offline event triggered"),this.state!==Dc.Connected&&this.state!==Dc.Connecting||(this._disconnect(Rc.transportClosed,"transport closed",!0),this._deviceWentOffline=!0)})),e.addEventListener("online",(()=>{this._debug("online event triggered"),this.state===Dc.Connecting&&(this._deviceWentOffline&&!this._transportClosed&&(this._deviceWentOffline=!1,this._transportClosed=!0),this._clearReconnectTimeout(),this._startReconnecting())})),this._networkEventsSet=!0)}_getReconnectDelay(){const e=Qc(this._reconnectAttempts,this._config.minReconnectDelay,this._config.maxReconnectDelay);return this._reconnectAttempts+=1,e}_clearOutgoingRequests(){for(const e in this._callbacks)if(this._callbacks.hasOwnProperty(e)){const t=this._callbacks[e];clearTimeout(t.timeout);const n=t.errback;if(!n)continue;n({error:this._createErrorObject(Oc.connectionClosed,"connection closed")})}this._callbacks={}}_clearConnectedState(){this._client=null,this._clearServerPingTimeout(),this._clearRefreshTimeout();for(const e in this._subs){if(!this._subs.hasOwnProperty(e))continue;const t=this._subs[e];t.state===zc.Subscribed&&t._setSubscribing(Ic.transportClosed,"transport closed")}for(const e in this._serverSubs)this._serverSubs.hasOwnProperty(e)&&this.emit("subscribing",{channel:e})}_handleWriteError(e){for(const t of e){const e=t.id;if(!(e in this._callbacks))continue;const n=this._callbacks[e];clearTimeout(this._callbacks[e].timeout),delete this._callbacks[e],(0,n.errback)({error:this._createErrorObject(Oc.transportWriteError,"transport write error")})}}_transportSendCommands(e){if(!e.length)return!0;if(!this._transport)return!1;try{this._transport.send(this._codec.encodeCommands(e),this._session,this._node)}catch(t){return this._debug("error writing commands",t),this._handleWriteError(e),!1}return!0}_initializeTransport(){let e;null!==this._config.websocket?e=this._config.websocket:"function"!=typeof globalThis.WebSocket&&"object"!=typeof globalThis.WebSocket||(e=globalThis.WebSocket);let t=null;null!==this._config.sockjs?t=this._config.sockjs:void 0!==globalThis.SockJS&&(t=globalThis.SockJS);let n=null;null!==this._config.eventsource?n=this._config.eventsource:void 0!==globalThis.EventSource&&(n=globalThis.EventSource);let s=null;null!==this._config.fetch?s=this._config.fetch:void 0!==globalThis.fetch&&(s=globalThis.fetch);let r=null;if(null!==this._config.readableStream?r=this._config.readableStream:void 0!==globalThis.ReadableStream&&(r=globalThis.ReadableStream),this._emulation){this._currentTransportIndex>=this._transports.length&&(this._triedAllTransports=!0,this._currentTransportIndex=0);let o=0;for(;;){if(o>=this._transports.length)throw new Error("no supported transport found");const i=this._transports[this._currentTransportIndex],c=i.transport,a=i.endpoint;if("websocket"===c){if(this._debug("trying websocket transport"),this._transport=new Wc(a,{websocket:e}),!this._transport.supported()){this._debug("websocket transport not available"),this._currentTransportIndex++,o++;continue}}else if("webtransport"===c){if(this._debug("trying webtransport transport"),this._transport=new qc(a,{webtransport:globalThis.WebTransport,decoder:this._codec,encoder:this._codec}),!this._transport.supported()){this._debug("webtransport transport not available"),this._currentTransportIndex++,o++;continue}}else if("http_stream"===c){if(this._debug("trying http_stream transport"),this._transport=new Vc(a,{fetch:s,readableStream:r,emulationEndpoint:this._config.emulationEndpoint,decoder:this._codec,encoder:this._codec}),!this._transport.supported()){this._debug("http_stream transport not available"),this._currentTransportIndex++,o++;continue}}else if("sse"===c){if(this._debug("trying sse transport"),this._transport=new Hc(a,{eventsource:n,fetch:s,emulationEndpoint:this._config.emulationEndpoint}),!this._transport.supported()){this._debug("sse transport not available"),this._currentTransportIndex++,o++;continue}}else{if("sockjs"!==c)throw new Error("unknown transport "+c);if(this._debug("trying sockjs"),this._transport=new Bc(a,{sockjs:t,sockjsOptions:this._config.sockjsOptions}),!this._transport.supported()){this._debug("sockjs transport not available"),this._currentTransportIndex++,o++;continue}}break}}else{if(0===this._endpoint.lastIndexOf("http",0))throw new Error("Provide explicit transport endpoints configuration in case of using HTTP (i.e. using array of TransportEndpoint instead of a single string), or use ws(s):// scheme in an endpoint if you aimed using WebSocket transport");if(this._debug("client will use websocket"),this._transport=new Wc(this._endpoint,{websocket:e}),!this._transport.supported())throw new Error("WebSocket not available")}const o=this,i=this._transport,c=this._nextTransportId();o._debug("id of transport",c);let a=!1;const l=[];if(this._transport.emulation()){const e=o._sendConnect(!0);l.push(e)}this._setNetworkEvents();const u=this._codec.encodeCommands(l);let h;this._transportClosed=!1,h=setTimeout((function(){i.close()}),this._config.timeout),this._transport.initialize(this._codec.name(),{onOpen:function(){if(h&&(clearTimeout(h),h=null),o._transportId!=c)return o._debug("open callback from non-actual transport"),void i.close();a=!0,o._debug(i.subName(),"transport open"),i.emulation()||(o._transportIsOpen=!0,o._transportWasOpen=!0,o.startBatching(),o._sendConnect(!1),o._sendSubscribeCommands(),o.stopBatching(),o.emit("__centrifuge_debug:connect_frame_sent",{}))},onError:function(e){o._transportId==c?o._debug("transport level error",e):o._debug("error callback from non-actual transport")},onClose:function(e){if(h&&(clearTimeout(h),h=null),o._transportId!=c)return void o._debug("close callback from non-actual transport");o._debug(i.subName(),"transport closed"),o._transportClosed=!0,o._transportIsOpen=!1;let t="connection closed",n=!0,s=0;if(e&&"code"in e&&e.code&&(s=e.code),e&&e.reason)try{const s=JSON.parse(e.reason);t=s.reason,n=s.reconnect}catch(r){t=e.reason,(s>=3500&&s<4e3||s>=4500&&s<5e3)&&(n=!1)}s<3e3?(1009===s?(s=jc.messageSizeLimit,t="message size limit exceeded",n=!1):(s=Rc.transportClosed,t="transport closed"),o._emulation&&!o._transportWasOpen&&(o._currentTransportIndex++,o._currentTransportIndex>=o._transports.length&&(o._triedAllTransports=!0,o._currentTransportIndex=0))):o._transportWasOpen=!0,o._isConnecting()&&!a&&o.emit("error",{type:"transport",error:{code:Oc.transportClosed,message:"transport closed"},transport:i.name()}),o._reconnecting=!1,o._disconnect(s,t,n)},onMessage:function(e){o._dataReceived(e)}},u),o.emit("__centrifuge_debug:transport_initialized",{})}_sendConnect(e){const t=this._constructConnectCommand(),n=this;return this._call(t,e).then((e=>{const t=e.reply.connect;n._connectResponse(t),e.next&&e.next()}),(e=>{n._connectError(e.error),e.next&&e.next()})),t}_startReconnecting(){if(this._debug("start reconnecting"),!this._isConnecting())return void this._debug("stop reconnecting: client not in connecting state");if(this._reconnecting)return void this._debug("reconnect already in progress, return from reconnect routine");if(!1===this._transportClosed)return void this._debug("waiting for transport close");this._reconnecting=!0;const e=this,t=""===this._token;this._refreshRequired||t&&null!==this._config.getToken?this._getToken().then((function(t){e._isConnecting()&&(null!=t&&null!=t?(e._token=t,e._debug("connection token refreshed"),e._config.getData?e._config.getData().then((function(t){e._isConnecting()&&(e._data=t,e._initializeTransport())})):e._initializeTransport()):e._failUnauthorized())})).catch((function(t){if(!e._isConnecting())return;if(t instanceof ea)return void e._failUnauthorized();e.emit("error",{type:"connectToken",error:{code:Oc.clientConnectToken,message:void 0!==t?t.toString():""}});const n=e._getReconnectDelay();e._debug("error on connection token refresh, reconnect after "+n+" milliseconds",t),e._reconnecting=!1,e._reconnectTimeout=setTimeout((()=>{e._startReconnecting()}),n)})):this._config.getData?this._config.getData().then((function(t){e._isConnecting()&&(e._data=t,e._initializeTransport())})):this._initializeTransport()}_connectError(e){this.state===Dc.Connecting&&(109===e.code&&(this._refreshRequired=!0),e.code<100||!0===e.temporary||109===e.code?(this.emit("error",{type:"connect",error:e}),this._debug("closing transport due to connect error"),this._disconnect(e.code,e.message,!0)):this._disconnect(e.code,e.message,!1))}_scheduleReconnect(){if(!this._isConnecting())return;let e=!1;!this._emulation||this._transportWasOpen||this._triedAllTransports||(e=!0);let t=this._getReconnectDelay();e&&(t=0),this._debug("reconnect after "+t+" milliseconds"),this._clearReconnectTimeout(),this._reconnectTimeout=setTimeout((()=>{this._startReconnecting()}),t)}_constructConnectCommand(){const e={};this._token&&(e.token=this._token),this._data&&(e.data=this._data),this._config.name&&(e.name=this._config.name),this._config.version&&(e.version=this._config.version);const t={};let n=!1;for(const e in this._serverSubs)if(this._serverSubs.hasOwnProperty(e)&&this._serverSubs[e].recoverable){n=!0;const s={recover:!0};this._serverSubs[e].offset&&(s.offset=this._serverSubs[e].offset),this._serverSubs[e].epoch&&(s.epoch=this._serverSubs[e].epoch),t[e]=s}return n&&(e.subs=t),{connect:e}}_getHistoryRequest(e,t){const n={channel:e};return void 0!==t&&(t.since&&(n.since={offset:t.since.offset},t.since.epoch&&(n.since.epoch=t.since.epoch)),void 0!==t.limit&&(n.limit=t.limit),!0===t.reverse&&(n.reverse=!0)),n}_methodCall(){return this._isConnected()?Promise.resolve():new Promise(((e,t)=>{const n=setTimeout((function(){t({code:Oc.timeout,message:"timeout"})}),this._config.timeout);this._promises[this._nextPromiseId()]={timeout:n,resolve:e,reject:t}}))}_callPromise(e,t){return new Promise(((n,s)=>{this._call(e,!1).then((e=>{n(t(e.reply)),e.next&&e.next()}),(e=>{s(e.error),e.next&&e.next()}))}))}_dataReceived(e){this._serverPing>0&&this._waitServerPing();const t=this._codec.decodeReplies(e);this._dispatchPromise=this._dispatchPromise.then((()=>{let e;this._dispatchPromise=new Promise((t=>{e=t})),this._dispatchSynchronized(t,e)}))}_dispatchSynchronized(e,t){let n=Promise.resolve();for(const t in e)e.hasOwnProperty(t)&&(n=n.then((()=>this._dispatchReply(e[t]))));n=n.then((()=>{t()}))}_dispatchReply(e){let t;const n=new Promise((e=>{t=e}));if(null==e)return this._debug("dispatch: got undefined or null reply"),t(),n;const s=e.id;return s&&s>0?this._handleReply(e,t):e.push?this._handlePush(e.push,t):this._handleServerPing(t),n}_call(e,t){return new Promise(((n,s)=>{e.id=this._nextCommandId(),this._registerCall(e.id,n,s),t||this._addCommand(e)}))}_startConnecting(){this._debug("start connecting"),this._setState(Dc.Connecting)&&this.emit("connecting",{code:Rc.connectCalled,reason:"connect called"}),this._client=null,this._startReconnecting()}_disconnect(e,t,n){if(this._isDisconnected())return;this._transportIsOpen=!1;const s=this.state;this._reconnecting=!1;const r={code:e,reason:t};let o=!1;if(n?o=this._setState(Dc.Connecting):(o=this._setState(Dc.Disconnected),this._rejectPromises({code:Oc.clientDisconnected,message:"disconnected"})),this._clearOutgoingRequests(),s===Dc.Connecting&&this._clearReconnectTimeout(),s===Dc.Connected&&this._clearConnectedState(),o&&(this._isConnecting()?this.emit("connecting",r):this.emit("disconnected",r)),this._transport){this._debug("closing existing transport");const e=this._transport;this._transport=null,e.close(),this._transportClosed=!0,this._nextTransportId()}else this._debug("no transport to close");this._scheduleReconnect()}_failUnauthorized(){this._disconnect(jc.unauthorized,"unauthorized",!1)}_getToken(){if(this._debug("get connection token"),!this._config.getToken)throw this.emit("error",{type:"configuration",error:{code:Oc.badConfiguration,message:"token expired but no getToken function set in the configuration"}}),new ea("");return this._config.getToken({})}_refresh(){const e=this._client,t=this;this._getToken().then((function(n){if(e!==t._client)return;if(!n)return void t._failUnauthorized();if(t._token=n,t._debug("connection token refreshed"),!t._isConnected())return;const s={refresh:{token:t._token}};t._call(s,!1).then((e=>{const n=e.reply.refresh;t._refreshResponse(n),e.next&&e.next()}),(e=>{t._refreshError(e.error),e.next&&e.next()}))})).catch((function(e){t._isConnected()&&(e instanceof ea?t._failUnauthorized():(t.emit("error",{type:"refreshToken",error:{code:Oc.clientRefreshToken,message:void 0!==e?e.toString():""}}),t._refreshTimeout=setTimeout((()=>t._refresh()),t._getRefreshRetryDelay())))}))}_refreshError(e){e.code<100||!0===e.temporary?(this.emit("error",{type:"refresh",error:e}),this._refreshTimeout=setTimeout((()=>this._refresh()),this._getRefreshRetryDelay())):this._disconnect(e.code,e.message,!1)}_getRefreshRetryDelay(){return Qc(0,5e3,1e4)}_refreshResponse(e){this._refreshTimeout&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null),e.expires&&(this._client=e.client,this._refreshTimeout=setTimeout((()=>this._refresh()),Nc(e.ttl)))}_removeSubscription(e){null!==e&&delete this._subs[e.channel]}_unsubscribe(e){if(!this._transportIsOpen)return Promise.resolve();const t={unsubscribe:{channel:e.channel}},n=this;return new Promise(((e,s)=>{this._call(t,!1).then((t=>{e(),t.next&&t.next()}),(t=>{e(),t.next&&t.next(),n._disconnect(Rc.unsubscribeError,"unsubscribe error",!0)}))}))}_getSub(e){return this._subs[e]||null}_isServerSub(e){return void 0!==this._serverSubs[e]}_sendSubscribeCommands(){const e=[];for(const t in this._subs){if(!this._subs.hasOwnProperty(t))continue;const n=this._subs[t];if(!0!==n._inflight&&n.state===zc.Subscribing){const t=n._subscribe();t&&e.push(t)}}return e}_connectResponse(e){if(this._transportIsOpen=!0,this._transportWasOpen=!0,this._reconnectAttempts=0,this._refreshRequired=!1,this._isConnected())return;this._client=e.client,this._setState(Dc.Connected),this._refreshTimeout&&clearTimeout(this._refreshTimeout),e.expires&&(this._refreshTimeout=setTimeout((()=>this._refresh()),Nc(e.ttl))),this._session=e.session,this._node=e.node,this.startBatching(),this._sendSubscribeCommands(),this.stopBatching();const t={client:e.client,transport:this._transport.subName()};e.data&&(t.data=e.data),this.emit("connected",t),this._resolvePromises(),this._processServerSubs(e.subs||{}),e.ping&&e.ping>0?(this._serverPing=1e3*e.ping,this._sendPong=!0===e.pong,this._waitServerPing()):this._serverPing=0}_processServerSubs(e){for(const t in e){if(!e.hasOwnProperty(t))continue;const n=e[t];this._serverSubs[t]={offset:n.offset,epoch:n.epoch,recoverable:n.recoverable||!1};const s=this._getSubscribeContext(t,n);this.emit("subscribed",s)}for(const t in e){if(!e.hasOwnProperty(t))continue;const n=e[t];if(n.recovered){const e=n.publications;if(e&&e.length>0)for(const n in e)e.hasOwnProperty(n)&&this._handlePublication(t,e[n])}}for(const t in this._serverSubs)this._serverSubs.hasOwnProperty(t)&&(e[t]||(this.emit("unsubscribed",{channel:t}),delete this._serverSubs[t]))}_clearRefreshTimeout(){null!==this._refreshTimeout&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null)}_clearReconnectTimeout(){null!==this._reconnectTimeout&&(clearTimeout(this._reconnectTimeout),this._reconnectTimeout=null)}_clearServerPingTimeout(){null!==this._serverPingTimeout&&(clearTimeout(this._serverPingTimeout),this._serverPingTimeout=null)}_waitServerPing(){0!==this._config.maxServerPingDelay&&this._isConnected()&&(this._clearServerPingTimeout(),this._serverPingTimeout=setTimeout((()=>{this._isConnected()&&this._disconnect(Rc.noPing,"no ping",!0)}),this._serverPing+this._config.maxServerPingDelay))}_getSubscribeContext(e,t){const n={channel:e,positioned:!1,recoverable:!1,wasRecovering:!1,recovered:!1};t.recovered&&(n.recovered=!0),t.positioned&&(n.positioned=!0),t.recoverable&&(n.recoverable=!0),t.was_recovering&&(n.wasRecovering=!0);let s="";"epoch"in t&&(s=t.epoch);let r=0;return"offset"in t&&(r=t.offset),(n.positioned||n.recoverable)&&(n.streamPosition={offset:r,epoch:s}),t.data&&(n.data=t.data),n}_handleReply(e,t){const n=e.id;if(!(n in this._callbacks))return void t();const s=this._callbacks[n];if(clearTimeout(this._callbacks[n].timeout),delete this._callbacks[n],"error"in(r=e)&&null!==r.error){const n=s.errback;if(!n)return void t();n({error:e.error,next:t})}else{const n=s.callback;if(!n)return;n({reply:e,next:t})}var r}_handleJoin(e,t){const n=this._getSub(e);if(n)n._handleJoin(t);else if(this._isServerSub(e)){const n={channel:e,info:this._getJoinLeaveContext(t.info)};this.emit("join",n)}}_handleLeave(e,t){const n=this._getSub(e);if(n)n._handleLeave(t);else if(this._isServerSub(e)){const n={channel:e,info:this._getJoinLeaveContext(t.info)};this.emit("leave",n)}}_handleUnsubscribe(e,t){const n=this._getSub(e);n?t.code<2500?n._setUnsubscribed(t.code,t.reason,!1):n._setSubscribing(t.code,t.reason):this._isServerSub(e)&&(delete this._serverSubs[e],this.emit("unsubscribed",{channel:e}))}_handleSubscribe(e,t){this._serverSubs[e]={offset:t.offset,epoch:t.epoch,recoverable:t.recoverable||!1},this.emit("subscribed",this._getSubscribeContext(e,t))}_handleDisconnect(e){const t=e.code;let n=!0;(t>=3500&&t<4e3||t>=4500&&t<5e3)&&(n=!1),this._disconnect(t,e.reason,n)}_getPublicationContext(e,t){const n={channel:e,data:t.data};return t.offset&&(n.offset=t.offset),t.info&&(n.info=this._getJoinLeaveContext(t.info)),t.tags&&(n.tags=t.tags),n}_getJoinLeaveContext(e){const t={client:e.client,user:e.user};return e.conn_info&&(t.connInfo=e.conn_info),e.chan_info&&(t.chanInfo=e.chan_info),t}_handlePublication(e,t){const n=this._getSub(e);if(n)n._handlePublication(t);else if(this._isServerSub(e)){const n=this._getPublicationContext(e,t);this.emit("publication",n),void 0!==t.offset&&(this._serverSubs[e].offset=t.offset)}}_handleMessage(e){this.emit("message",{data:e.data})}_handleServerPing(e){if(this._sendPong){const e={};this._transportSendCommands([e])}e()}_handlePush(e,t){const n=e.channel;e.pub?this._handlePublication(n,e.pub):e.message?this._handleMessage(e.message):e.join?this._handleJoin(n,e.join):e.leave?this._handleLeave(n,e.leave):e.unsubscribe?this._handleUnsubscribe(n,e.unsubscribe):e.subscribe?this._handleSubscribe(n,e.subscribe):e.disconnect&&this._handleDisconnect(e.disconnect),t()}_flush(){const e=this._commands.slice(0);this._commands=[],this._transportSendCommands(e)}_createErrorObject(e,t,n){const s={code:e,message:t};return n&&(s.temporary=!0),s}_registerCall(e,t,n){this._callbacks[e]={callback:t,errback:n,timeout:null},this._callbacks[e].timeout=setTimeout((()=>{delete this._callbacks[e],Uc(n)&&n({error:this._createErrorObject(Oc.timeout,"timeout")})}),this._config.timeout)}_addCommand(e){this._batching?this._commands.push(e):this._transportSendCommands([e])}_nextPromiseId(){return++this._promiseId}_nextTransportId(){return++this._transportId}_resolvePromises(){for(const e in this._promises)this._promises.hasOwnProperty(e)&&(this._promises[e].timeout&&clearTimeout(this._promises[e].timeout),this._promises[e].resolve(),delete this._promises[e])}_rejectPromises(e){for(const t in this._promises)this._promises.hasOwnProperty(t)&&(this._promises[t].timeout&&clearTimeout(this._promises[t].timeout),this._promises[t].reject(e),delete this._promises[t])}}ta.SubscriptionState=zc,ta.State=Dc,ta.UnauthorizedError=ea;const na=e=>{"complete"===document.readyState?e():window.addEventListener("load",e)};na((()=>{let e=document.querySelector('div[data-place="widget-live-match"]');e?.getAttribute("data-place")&&(()=>{let e=document.querySelector('div[data-place="widget-live-match"]');dn.lang="en";const t=e.dataset?.lang??null;t&&(dn.lang=["nl","ro","ka","hy","az","el","pl","uz"].includes(t)?t:dn.lang),dn.sport=r,dn.rpcSport=o,dn.rpcSportDetail=dn.rpcSport+"Detail",dn.empty=a[dn.lang],dn.widgetMes=i[dn.lang],dc(e),(async()=>{console.log("connecting..."),dn.socket=new ta("wss://widgetlogic.org/ws",{timeout:6e4}),dn.sub=dn.socket.newSubscription(dn.rpcSport),dn.debug&&(dn.sub.on("subscribing",(function(e){dn.debug&&console.log(`subscribing: ${e.code}, ${e.reason}`)})).on("subscribed",(function(e){dn.debug&&console.log("subscribed",e)})).on("unsubscribed",(function(e){dn.debug&&console.log(`unsubscribed: ${e.code}, ${e.reason}`)})),dn.socket.on("connecting",(function(e){dn.debug&&console.log(`connecting: ${e.code}, ${e.reason}`)})).on("connected",(function(e){dn.debug&&console.log(`connected over ${e.transport}`)})).on("disconnected",(function(e){dn.debug&&console.log(`disconnected: ${e.code}, ${e.reason}`)})).on("publish",(function(e){dn.debug&&console.log(e)}))),dn.sub.on("publication",(function(e){dn.debug&&console.log("Update",e.data),(e=>{if(!e)return void console.log("Update is empty...");const{slug:t,matchTime:n=null,home:s={score:null,periods:null},away:r={score:null,periods:null}}=e,o=ln.matches[t];if(t===dn.matchSlug&&(dn.resetAutoUpdate(),console.log("Selected Match updated",e)),sn.includes(ln.matches[dn.matchSlug]?.stage)||!n&&!sn.includes(e?.stage)||(console.log("Update match full match",e),dn.getFullMatch()),!o)return void console.log("Match is absent",e);const i=e.stage?rn.includes(e.stage)?e.stage:console.log("unknown stages for update data:",e)??e.stage:null,c=(e,t)=>{const n="object"==typeof e.periods?e.periods:{};return Object.assign(e,{...t.periods?{periods:Object.assign(n,t.periods)}:{},score:t.score})};Object.assign(ln.matches[t],{...i?{stage:i,live:nn.includes(i)}:{},...n?{matchTime:n}:{},...s.score?{home:c(ln.matches[t].home,s)}:{},...r.score?{away:c(ln.matches[t].away,r)}:{}})})(e.data)})),dn.sub.subscribe(),dn.socket.connect(),await un()})()})()})),na((()=>{window.widgetLogic="present"}))})();