@everymatrix/lottery-oddsbom-ticket-bet 0.6.27 → 0.6.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/lottery-oddsbom-bullet_9.cjs.entry.js +7 -7
- package/dist/cjs/{lottery-oddsbom-ticket-bet-7a5265c7.js → lottery-oddsbom-ticket-bet-6aa76dcd.js} +262 -260
- package/dist/cjs/lottery-oddsbom-ticket-bet.cjs.js +1 -1
- package/dist/collection/components/lottery-oddsbom-ticket-bet/lottery-oddsbom-ticket-bet.js +10 -44
- package/dist/collection/components/lottery-oddsbom-ticket-board/lottery-oddsbom-ticket-board.js +5 -5
- package/dist/collection/utils/api.js +1 -1
- package/dist/collection/utils/locale.utils.js +1 -0
- package/dist/collection/utils/utils.js +3 -2
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/lottery-oddsbom-bullet_9.entry.js +8 -8
- package/dist/esm/{lottery-oddsbom-ticket-bet-71eb06e5.js → lottery-oddsbom-ticket-bet-32060989.js} +262 -260
- package/dist/esm/lottery-oddsbom-ticket-bet.js +1 -1
- package/dist/lottery-oddsbom-ticket-bet/index.esm.js +1 -1
- package/dist/lottery-oddsbom-ticket-bet/lottery-oddsbom-bullet_9.entry.js +1 -1
- package/dist/lottery-oddsbom-ticket-bet/{lottery-oddsbom-ticket-bet-71eb06e5.js → lottery-oddsbom-ticket-bet-32060989.js} +5 -5
- package/dist/lottery-oddsbom-ticket-bet/lottery-oddsbom-ticket-bet.esm.js +1 -1
- package/dist/types/components/lottery-oddsbom-ticket-bet/lottery-oddsbom-ticket-bet.d.ts +0 -2
- package/dist/types/components.d.ts +0 -4
- package/dist/types/utils/utils.d.ts +2 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as t,h as e}from"./index-9dee9d86.js";function i(t,e){if(t){const i=document.createElement("style");i.innerHTML=e,t.appendChild(i)}}function s(t,e){if(!t||!e)return;const i=new URL(e);fetch(i.href).then((t=>t.text())).then((e=>{const i=document.createElement("style");i.innerHTML=e,t&&t.appendChild(i)})).catch((t=>{console.error("There was an error while trying to load client styling from URL",t)}))}function o(t,e){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(e,(e=>{i.innerHTML=e,t&&t.appendChild(i)}))}}function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function n(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function a(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function l(t){a(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||"object"===r(t)&&"[object Date]"===e?new Date(t.getTime()):"number"==typeof t||"[object Number]"===e?new Date(t):("string"!=typeof t&&"[object String]"!==e||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}var h={};function d(){return h}function c(t){a(1,arguments);var e=l(t);return e.setHours(0,0,0,0),e}var u=36e5;function p(t){a(1,arguments);var e=l(t),i=e.getUTCDay(),s=(i<1?7:0)+i-1;return e.setUTCDate(e.getUTCDate()-s),e.setUTCHours(0,0,0,0),e}function m(t){a(1,arguments);var e=l(t),i=e.getUTCFullYear(),s=new Date(0);s.setUTCFullYear(i+1,0,4),s.setUTCHours(0,0,0,0);var o=p(s),r=new Date(0);r.setUTCFullYear(i,0,4),r.setUTCHours(0,0,0,0);var n=p(r);return e.getTime()>=o.getTime()?i+1:e.getTime()>=n.getTime()?i:i-1}function v(t,e){var i,s,o,r,h,c,u,p;a(1,arguments);var m=d(),v=n(null!==(i=null!==(s=null!==(o=null!==(r=null==e?void 0:e.weekStartsOn)&&void 0!==r?r:null==e||null===(h=e.locale)||void 0===h||null===(c=h.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==o?o:m.weekStartsOn)&&void 0!==s?s:null===(u=m.locale)||void 0===u||null===(p=u.options)||void 0===p?void 0:p.weekStartsOn)&&void 0!==i?i:0);if(!(v>=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=l(t),b=f.getUTCDay(),g=(b<v?7:0)+b-v;return f.setUTCDate(f.getUTCDate()-g),f.setUTCHours(0,0,0,0),f}function f(t,e){var i,s,o,r,h,c,u,p;a(1,arguments);var m=l(t),f=m.getUTCFullYear(),b=d(),g=n(null!==(i=null!==(s=null!==(o=null!==(r=null==e?void 0:e.firstWeekContainsDate)&&void 0!==r?r:null==e||null===(h=e.locale)||void 0===h||null===(c=h.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==o?o:b.firstWeekContainsDate)&&void 0!==s?s:null===(u=b.locale)||void 0===u||null===(p=u.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==i?i:1);if(!(g>=1&&g<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var y=new Date(0);y.setUTCFullYear(f+1,0,g),y.setUTCHours(0,0,0,0);var w=v(y,e),_=new Date(0);_.setUTCFullYear(f,0,g),_.setUTCHours(0,0,0,0);var x=v(_,e);return m.getTime()>=w.getTime()?f+1:m.getTime()>=x.getTime()?f:f-1}function b(t,e){for(var i=t<0?"-":"",s=Math.abs(t).toString();s.length<e;)s="0"+s;return i+s}const g=function(t,e){var i=t.getUTCFullYear(),s=i>0?i:1-i;return b("yy"===e?s%100:s,e.length)},y=function(t,e){var i=t.getUTCMonth();return"M"===e?String(i+1):b(i+1,2)},w=function(t,e){return b(t.getUTCDate(),e.length)},_=function(t,e){return b(t.getUTCHours()%12||12,e.length)},x=function(t,e){return b(t.getUTCHours(),e.length)},k=function(t,e){return b(t.getUTCMinutes(),e.length)},C=function(t,e){return b(t.getUTCSeconds(),e.length)},A=function(t,e){var i=e.length,s=t.getUTCMilliseconds();return b(Math.floor(s*Math.pow(10,i-3)),e.length)};var S={G:function(t,e,i){var s=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return i.era(s,{width:"abbreviated"});case"GGGGG":return i.era(s,{width:"narrow"});default:return i.era(s,{width:"wide"})}},y:function(t,e,i){if("yo"===e){var s=t.getUTCFullYear();return i.ordinalNumber(s>0?s:1-s,{unit:"year"})}return g(t,e)},Y:function(t,e,i,s){var o=f(t,s),r=o>0?o:1-o;return"YY"===e?b(r%100,2):"Yo"===e?i.ordinalNumber(r,{unit:"year"}):b(r,e.length)},R:function(t,e){return b(m(t),e.length)},u:function(t,e){return b(t.getUTCFullYear(),e.length)},Q:function(t,e,i){var s=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(s);case"QQ":return b(s,2);case"Qo":return i.ordinalNumber(s,{unit:"quarter"});case"QQQ":return i.quarter(s,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(s,{width:"narrow",context:"formatting"});default:return i.quarter(s,{width:"wide",context:"formatting"})}},q:function(t,e,i){var s=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(s);case"qq":return b(s,2);case"qo":return i.ordinalNumber(s,{unit:"quarter"});case"qqq":return i.quarter(s,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(s,{width:"narrow",context:"standalone"});default:return i.quarter(s,{width:"wide",context:"standalone"})}},M:function(t,e,i){var s=t.getUTCMonth();switch(e){case"M":case"MM":return y(t,e);case"Mo":return i.ordinalNumber(s+1,{unit:"month"});case"MMM":return i.month(s,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(s,{width:"narrow",context:"formatting"});default:return i.month(s,{width:"wide",context:"formatting"})}},L:function(t,e,i){var s=t.getUTCMonth();switch(e){case"L":return String(s+1);case"LL":return b(s+1,2);case"Lo":return i.ordinalNumber(s+1,{unit:"month"});case"LLL":return i.month(s,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(s,{width:"narrow",context:"standalone"});default:return i.month(s,{width:"wide",context:"standalone"})}},w:function(t,e,i,s){var o=function(t,e){a(1,arguments);var i=l(t),s=v(i,e).getTime()-function(t,e){var i,s,o,r,l,h,c,u;a(1,arguments);var p=d(),m=n(null!==(i=null!==(s=null!==(o=null!==(r=null==e?void 0:e.firstWeekContainsDate)&&void 0!==r?r:null==e||null===(l=e.locale)||void 0===l||null===(h=l.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==o?o:p.firstWeekContainsDate)&&void 0!==s?s:null===(c=p.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==i?i:1),b=f(t,e),g=new Date(0);return g.setUTCFullYear(b,0,m),g.setUTCHours(0,0,0,0),v(g,e)}(i,e).getTime();return Math.round(s/6048e5)+1}(t,s);return"wo"===e?i.ordinalNumber(o,{unit:"week"}):b(o,e.length)},I:function(t,e,i){var s=function(t){a(1,arguments);var e=l(t),i=p(e).getTime()-function(t){a(1,arguments);var e=m(t),i=new Date(0);return i.setUTCFullYear(e,0,4),i.setUTCHours(0,0,0,0),p(i)}(e).getTime();return Math.round(i/6048e5)+1}(t);return"Io"===e?i.ordinalNumber(s,{unit:"week"}):b(s,e.length)},d:function(t,e,i){return"do"===e?i.ordinalNumber(t.getUTCDate(),{unit:"date"}):w(t,e)},D:function(t,e,i){var s=function(t){a(1,arguments);var e=l(t),i=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var s=e.getTime();return Math.floor((i-s)/864e5)+1}(t);return"Do"===e?i.ordinalNumber(s,{unit:"dayOfYear"}):b(s,e.length)},E:function(t,e,i){var s=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return i.day(s,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(s,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(s,{width:"short",context:"formatting"});default:return i.day(s,{width:"wide",context:"formatting"})}},e:function(t,e,i,s){var o=t.getUTCDay(),r=(o-s.weekStartsOn+8)%7||7;switch(e){case"e":return String(r);case"ee":return b(r,2);case"eo":return i.ordinalNumber(r,{unit:"day"});case"eee":return i.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(o,{width:"short",context:"formatting"});default:return i.day(o,{width:"wide",context:"formatting"})}},c:function(t,e,i,s){var o=t.getUTCDay(),r=(o-s.weekStartsOn+8)%7||7;switch(e){case"c":return String(r);case"cc":return b(r,e.length);case"co":return i.ordinalNumber(r,{unit:"day"});case"ccc":return i.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(o,{width:"narrow",context:"standalone"});case"cccccc":return i.day(o,{width:"short",context:"standalone"});default:return i.day(o,{width:"wide",context:"standalone"})}},i:function(t,e,i){var s=t.getUTCDay(),o=0===s?7:s;switch(e){case"i":return String(o);case"ii":return b(o,e.length);case"io":return i.ordinalNumber(o,{unit:"day"});case"iii":return i.day(s,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(s,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(s,{width:"short",context:"formatting"});default:return i.day(s,{width:"wide",context:"formatting"})}},a:function(t,e,i){var s=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(s,{width:"narrow",context:"formatting"});default:return i.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(t,e,i){var s,o=t.getUTCHours();switch(s=12===o?"noon":0===o?"midnight":o/12>=1?"pm":"am",e){case"b":case"bb":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(s,{width:"narrow",context:"formatting"});default:return i.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(t,e,i){var s,o=t.getUTCHours();switch(s=o>=17?"evening":o>=12?"afternoon":o>=4?"morning":"night",e){case"B":case"BB":case"BBB":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(s,{width:"narrow",context:"formatting"});default:return i.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(t,e,i){if("ho"===e){var s=t.getUTCHours()%12;return 0===s&&(s=12),i.ordinalNumber(s,{unit:"hour"})}return _(t,e)},H:function(t,e,i){return"Ho"===e?i.ordinalNumber(t.getUTCHours(),{unit:"hour"}):x(t,e)},K:function(t,e,i){var s=t.getUTCHours()%12;return"Ko"===e?i.ordinalNumber(s,{unit:"hour"}):b(s,e.length)},k:function(t,e,i){var s=t.getUTCHours();return 0===s&&(s=24),"ko"===e?i.ordinalNumber(s,{unit:"hour"}):b(s,e.length)},m:function(t,e,i){return"mo"===e?i.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):k(t,e)},s:function(t,e,i){return"so"===e?i.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):C(t,e)},S:function(t,e){return A(t,e)},X:function(t,e,i,s){var o=(s._originalDate||t).getTimezoneOffset();if(0===o)return"Z";switch(e){case"X":return T(o);case"XXXX":case"XX":return I(o);default:return I(o,":")}},x:function(t,e,i,s){var o=(s._originalDate||t).getTimezoneOffset();switch(e){case"x":return T(o);case"xxxx":case"xx":return I(o);default:return I(o,":")}},O:function(t,e,i,s){var o=(s._originalDate||t).getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+z(o,":");default:return"GMT"+I(o,":")}},z:function(t,e,i,s){var o=(s._originalDate||t).getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+z(o,":");default:return"GMT"+I(o,":")}},t:function(t,e,i,s){return b(Math.floor((s._originalDate||t).getTime()/1e3),e.length)},T:function(t,e,i,s){return b((s._originalDate||t).getTime(),e.length)}};function z(t,e){var i=t>0?"-":"+",s=Math.abs(t),o=Math.floor(s/60),r=s%60;if(0===r)return i+String(o);var n=e||"";return i+String(o)+n+b(r,2)}function T(t,e){return t%60==0?(t>0?"-":"+")+b(Math.abs(t)/60,2):I(t,e)}function I(t,e){var i=e||"",s=t>0?"-":"+",o=Math.abs(t);return s+b(Math.floor(o/60),2)+i+b(o%60,2)}const D=S;var O=function(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},E=function(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},M={p:E,P:function(t,e){var i,s=t.match(/(P+)(p+)?/)||[],o=s[1],r=s[2];if(!r)return O(t,e);switch(o){case"P":i=e.dateTime({width:"short"});break;case"PP":i=e.dateTime({width:"medium"});break;case"PPP":i=e.dateTime({width:"long"});break;default:i=e.dateTime({width:"full"})}return i.replace("{{date}}",O(o,e)).replace("{{time}}",E(r,e))}};const B=M;var P=["D","DD"],N=["YY","YYYY"];function j(t,e,i){if("YYYY"===t)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===t)throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===t)throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===t)throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var F={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function $(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.width?String(e.width):t.defaultWidth;return t.formats[i]||t.formats[t.defaultWidth]}}var R,L={date:$({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:$({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:$({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},q={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function V(t){return function(e,i){var s;if("formatting"===(null!=i&&i.context?String(i.context):"standalone")&&t.formattingValues){var o=t.defaultFormattingWidth||t.defaultWidth,r=null!=i&&i.width?String(i.width):o;s=t.formattingValues[r]||t.formattingValues[o]}else{var n=t.defaultWidth,a=null!=i&&i.width?String(i.width):t.defaultWidth;s=t.values[a]||t.values[n]}return s[t.argumentCallback?t.argumentCallback(e):e]}}function W(t){return function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=i.width,o=e.match(s&&t.matchPatterns[s]||t.matchPatterns[t.defaultMatchWidth]);if(!o)return null;var r,n=o[0],a=s&&t.parsePatterns[s]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(a)?function(t){for(var e=0;e<t.length;e++)if(t[e].test(n))return e}(a):function(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e].test(n))return e}(a);return r=t.valueCallback?t.valueCallback(l):l,{value:r=i.valueCallback?i.valueCallback(r):r,rest:e.slice(n.length)}}}const U={code:"en-US",formatDistance:function(t,e,i){var s,o=F[t];return s="string"==typeof o?o:1===e?o.one:o.other.replace("{{count}}",e.toString()),null!=i&&i.addSuffix?i.comparison&&i.comparison>0?"in "+s:s+" ago":s},formatLong:L,formatRelative:function(t){return q[t]},localize:{ordinalNumber:function(t){var e=Number(t),i=e%100;if(i>20||i<10)switch(i%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"},era:V({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:V({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:V({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:V({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:V({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(R={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}},function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.match(R.matchPattern);if(!i)return null;var s=i[0],o=t.match(R.parsePattern);if(!o)return null;var r=R.valueCallback?R.valueCallback(o[0]):o[0];return{value:r=e.valueCallback?e.valueCallback(r):r,rest:t.slice(s.length)}}),era:W({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:W({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:W({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:W({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:W({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};var H=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Y=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,G=/^'([^]*?)'?$/,K=/''/g,J=/[a-zA-Z]/;function Q(t,e,i){var s,o,h,c,u,p,m,v,f,b,g,y,w,_,x,k,C,A;a(2,arguments);var S=String(e),z=d(),T=null!==(s=null!==(o=null==i?void 0:i.locale)&&void 0!==o?o:z.locale)&&void 0!==s?s:U,I=n(null!==(h=null!==(c=null!==(u=null!==(p=null==i?void 0:i.firstWeekContainsDate)&&void 0!==p?p:null==i||null===(m=i.locale)||void 0===m||null===(v=m.options)||void 0===v?void 0:v.firstWeekContainsDate)&&void 0!==u?u:z.firstWeekContainsDate)&&void 0!==c?c:null===(f=z.locale)||void 0===f||null===(b=f.options)||void 0===b?void 0:b.firstWeekContainsDate)&&void 0!==h?h:1);if(!(I>=1&&I<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var O=n(null!==(g=null!==(y=null!==(w=null!==(_=null==i?void 0:i.weekStartsOn)&&void 0!==_?_:null==i||null===(x=i.locale)||void 0===x||null===(k=x.options)||void 0===k?void 0:k.weekStartsOn)&&void 0!==w?w:z.weekStartsOn)&&void 0!==y?y:null===(C=z.locale)||void 0===C||null===(A=C.options)||void 0===A?void 0:A.weekStartsOn)&&void 0!==g?g:0);if(!(O>=0&&O<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!T.localize)throw new RangeError("locale must contain localize property");if(!T.formatLong)throw new RangeError("locale must contain formatLong property");var E=l(t);if(!function(t){if(a(1,arguments),!function(t){return a(1,arguments),t instanceof Date||"object"===r(t)&&"[object Date]"===Object.prototype.toString.call(t)}(t)&&"number"!=typeof t)return!1;var e=l(t);return!isNaN(Number(e))}(E))throw new RangeError("Invalid time value");var M=function(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}(E),F=function(t,e){return a(2,arguments),function(t,e){a(2,arguments);var i=l(t).getTime(),s=n(e);return new Date(i+s)}(t,-n(e))}(E,M),$={firstWeekContainsDate:I,weekStartsOn:O,locale:T,_originalDate:E};return S.match(Y).map((function(t){var e=t[0];return"p"===e||"P"===e?(0,B[e])(t,T.formatLong):t})).join("").match(H).map((function(s){if("''"===s)return"'";var o,r,n=s[0];if("'"===n)return(r=(o=s).match(G))?r[1].replace(K,"'"):o;var a=D[n];if(a)return null!=i&&i.useAdditionalWeekYearTokens||-1===N.indexOf(s)||j(s,e,String(t)),null!=i&&i.useAdditionalDayOfYearTokens||!(-1!==P.indexOf(s))||j(s,e,String(t)),a(F,s,T.localize,$);if(n.match(J))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");return s})).join("")}var X={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Z=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,tt=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,et=/^([+-])(\d{2})(?::?(\d{2}))?$/;function it(t){return t?parseInt(t):1}function st(t){return t&&parseFloat(t.replace(",","."))||0}var ot=[31,null,31,30,31,30,31,31,30,31,30,31];function rt(t){return t%400==0||t%4==0&&t%100!=0}function nt(t,e="GET",i=null,s={}){return new Promise(((o,r)=>{const n="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)})),a=Object.assign({"Content-Type":"application/json"},s);"GET"!==e&&"HEAD"!==e&&(a["X-Idempotency-Key"]=n);const l={method:e,headers:a,body:null};i&&"GET"!==e&&"HEAD"!==e?l.body=JSON.stringify(i):delete l.body,fetch(t,l).then((t=>t.ok?t.json():t.json().then((e=>{r({status:t.status,statusText:t.statusText,code:e.code||"UNKNOWN_ERROR",message:e.message||"An unknown error occurred",data:e.data||null})}),(()=>r({status:t.status,statusText:t.statusText,code:"PARSE_ERROR",message:"Failed to parse error response"}))))).then((t=>o(t)),(t=>r(t)))}))}const at=({message:t,theme:e="success"})=>{window.postMessage({type:"ShowNotificationToast",message:t,theme:e})},lt=({date:t,type:e="date",format:i})=>{try{const s=function(t,e){var i;a(1,arguments);var s=n(null!==(i=null==e?void 0:e.additionalDigits)&&void 0!==i?i:2);if(2!==s&&1!==s&&0!==s)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof t&&"[object String]"!==Object.prototype.toString.call(t))return new Date(NaN);var o,r=function(t){var e,i={},s=t.split(X.dateTimeDelimiter);if(s.length>2)return i;if(/:/.test(s[0])?e=s[0]:(i.date=s[0],e=s[1],X.timeZoneDelimiter.test(i.date)&&(i.date=t.split(X.timeZoneDelimiter)[0],e=t.substr(i.date.length,t.length))),e){var o=X.timezone.exec(e);o?(i.time=e.replace(o[1],""),i.timezone=o[1]):i.time=e}return i}(t);if(r.date){var l=function(t,e){var i=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),s=t.match(i);if(!s)return{year:NaN,restDateString:""};var o=s[1]?parseInt(s[1]):null,r=s[2]?parseInt(s[2]):null;return{year:null===r?o:100*r,restDateString:t.slice((s[1]||s[2]).length)}}(r.date,s);o=function(t,e){if(null===e)return new Date(NaN);var i=t.match(Z);if(!i)return new Date(NaN);var s=!!i[4],o=it(i[1]),r=it(i[2])-1,n=it(i[3]),a=it(i[4]),l=it(i[5])-1;if(s)return function(t,e,i){return e>=1&&e<=53&&i>=0&&i<=6}(0,a,l)?function(t,e,i){var s=new Date(0);s.setUTCFullYear(t,0,4);var o=7*(e-1)+i+1-(s.getUTCDay()||7);return s.setUTCDate(s.getUTCDate()+o),s}(e,a,l):new Date(NaN);var h=new Date(0);return function(t,e,i){return e>=0&&e<=11&&i>=1&&i<=(ot[e]||(rt(t)?29:28))}(e,r,n)&&function(t,e){return e>=1&&e<=(rt(t)?366:365)}(e,o)?(h.setUTCFullYear(e,r,Math.max(o,n)),h):new Date(NaN)}(l.restDateString,l.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var h,d=o.getTime(),c=0;if(r.time&&(c=function(t){var e=t.match(tt);if(!e)return NaN;var i=st(e[1]),s=st(e[2]),o=st(e[3]);return function(t,e,i){return 24===t?0===e&&0===i:i>=0&&i<60&&e>=0&&e<60&&t>=0&&t<25}(i,s,o)?i*u+6e4*s+1e3*o:NaN}(r.time),isNaN(c)))return new Date(NaN);if(!r.timezone){var p=new Date(d+c),m=new Date(0);return m.setFullYear(p.getUTCFullYear(),p.getUTCMonth(),p.getUTCDate()),m.setHours(p.getUTCHours(),p.getUTCMinutes(),p.getUTCSeconds(),p.getUTCMilliseconds()),m}return h=function(t){if("Z"===t)return 0;var e=t.match(et);if(!e)return 0;var i="+"===e[1]?-1:1,s=parseInt(e[2]),o=e[3]&&parseInt(e[3])||0;return function(t,e){return e>=0&&e<=59}(0,o)?i*(s*u+6e4*o):NaN}(r.timezone),isNaN(h)?new Date(NaN):new Date(d+c+h)}(t);if(isNaN(s.getTime()))throw new Error(`Invalid date: ${t}`);if(i)return Q(s,i);let o="dd/MM/yyyy";return"time"===e?o="dd/MM/yyyy HH:mm:ss":"week"===e&&(o="ccc dd/MM/yyyy HH:mm:ss"),Q(s,o)}catch(t){return console.error("Error formatting date:",t.message),""}};function ht(t,e){return null==t||""===t||(0!==t||!e)&&!1!==t&&(Array.isArray(t)?function(t){if(0===t.length)return!0;const e=t.length;let i=0;for(let s=0;s<e;s++){if(!ht(t[s]))return!1;i++}return i===e}(t):"[object Object]"===Object.prototype.toString.call(t)?function(t){if(0===Object.keys(t).length)return!0;const e=Object.keys(t).length;let i=0;for(const e of Object.values(t)){if(!ht(e))return!1;i++}return i===e}(t):!t)}function dt(t){return new Promise(((e,i)=>{try{const s=new Blob([t],{type:"text/plain;charset=utf-8"}),o=new FileReader;o.onload=()=>{if("string"==typeof o.result){const t=o.result.split(",")[1];e(t)}else i(new Error("无法转换为Base64编码"))},o.onerror=()=>i(o.error),o.readAsDataURL(s)}catch(t){i(t)}}))}function ct(t,e=2){return Number(t).toFixed(e)}const ut=10;var pt=Object.defineProperty,mt=Object.defineProperties,vt=Object.getOwnPropertyDescriptors,ft=Object.getOwnPropertySymbols,bt=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable,yt=(t,e,i)=>e in t?pt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,wt=(t,e)=>{for(var i in e||(e={}))bt.call(e,i)&&yt(t,i,e[i]);if(ft)for(var i of ft(e))gt.call(e,i)&&yt(t,i,e[i]);return t},_t=(t,e)=>mt(t,vt(e)),xt=(t,e,i)=>(yt(t,"symbol"!=typeof e?e+"":e,i),i),kt=(t,e,i)=>new Promise(((s,o)=>{var r=t=>{try{a(i.next(t))}catch(t){o(t)}},n=t=>{try{a(i.throw(t))}catch(t){o(t)}},a=t=>t.done?s(t.value):Promise.resolve(t.value).then(r,n);a((i=i.apply(t,e)).next())}))
|
|
1
|
+
import{r as t,h as e}from"./index-9dee9d86.js";function i(t,e){if(t){const i=document.createElement("style");i.innerHTML=e,t.appendChild(i)}}function s(t,e){if(!t||!e)return;const i=new URL(e);fetch(i.href).then((t=>t.text())).then((e=>{const i=document.createElement("style");i.innerHTML=e,t&&t.appendChild(i)})).catch((t=>{console.error("There was an error while trying to load client styling from URL",t)}))}function o(t,e){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(e,(e=>{i.innerHTML=e,t&&t.appendChild(i)}))}}function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function n(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function a(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function l(t){a(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||"object"===r(t)&&"[object Date]"===e?new Date(t.getTime()):"number"==typeof t||"[object Number]"===e?new Date(t):("string"!=typeof t&&"[object String]"!==e||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}var h={};function d(){return h}function c(t){a(1,arguments);var e=l(t);return e.setHours(0,0,0,0),e}var u=36e5;function p(t){a(1,arguments);var e=l(t),i=e.getUTCDay(),s=(i<1?7:0)+i-1;return e.setUTCDate(e.getUTCDate()-s),e.setUTCHours(0,0,0,0),e}function m(t){a(1,arguments);var e=l(t),i=e.getUTCFullYear(),s=new Date(0);s.setUTCFullYear(i+1,0,4),s.setUTCHours(0,0,0,0);var o=p(s),r=new Date(0);r.setUTCFullYear(i,0,4),r.setUTCHours(0,0,0,0);var n=p(r);return e.getTime()>=o.getTime()?i+1:e.getTime()>=n.getTime()?i:i-1}function v(t,e){var i,s,o,r,h,c,u,p;a(1,arguments);var m=d(),v=n(null!==(i=null!==(s=null!==(o=null!==(r=null==e?void 0:e.weekStartsOn)&&void 0!==r?r:null==e||null===(h=e.locale)||void 0===h||null===(c=h.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==o?o:m.weekStartsOn)&&void 0!==s?s:null===(u=m.locale)||void 0===u||null===(p=u.options)||void 0===p?void 0:p.weekStartsOn)&&void 0!==i?i:0);if(!(v>=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=l(t),b=f.getUTCDay(),g=(b<v?7:0)+b-v;return f.setUTCDate(f.getUTCDate()-g),f.setUTCHours(0,0,0,0),f}function f(t,e){var i,s,o,r,h,c,u,p;a(1,arguments);var m=l(t),f=m.getUTCFullYear(),b=d(),g=n(null!==(i=null!==(s=null!==(o=null!==(r=null==e?void 0:e.firstWeekContainsDate)&&void 0!==r?r:null==e||null===(h=e.locale)||void 0===h||null===(c=h.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==o?o:b.firstWeekContainsDate)&&void 0!==s?s:null===(u=b.locale)||void 0===u||null===(p=u.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==i?i:1);if(!(g>=1&&g<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var y=new Date(0);y.setUTCFullYear(f+1,0,g),y.setUTCHours(0,0,0,0);var w=v(y,e),_=new Date(0);_.setUTCFullYear(f,0,g),_.setUTCHours(0,0,0,0);var x=v(_,e);return m.getTime()>=w.getTime()?f+1:m.getTime()>=x.getTime()?f:f-1}function b(t,e){for(var i=t<0?"-":"",s=Math.abs(t).toString();s.length<e;)s="0"+s;return i+s}const g=function(t,e){var i=t.getUTCFullYear(),s=i>0?i:1-i;return b("yy"===e?s%100:s,e.length)},y=function(t,e){var i=t.getUTCMonth();return"M"===e?String(i+1):b(i+1,2)},w=function(t,e){return b(t.getUTCDate(),e.length)},_=function(t,e){return b(t.getUTCHours()%12||12,e.length)},x=function(t,e){return b(t.getUTCHours(),e.length)},k=function(t,e){return b(t.getUTCMinutes(),e.length)},C=function(t,e){return b(t.getUTCSeconds(),e.length)},A=function(t,e){var i=e.length,s=t.getUTCMilliseconds();return b(Math.floor(s*Math.pow(10,i-3)),e.length)};var S={G:function(t,e,i){var s=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return i.era(s,{width:"abbreviated"});case"GGGGG":return i.era(s,{width:"narrow"});default:return i.era(s,{width:"wide"})}},y:function(t,e,i){if("yo"===e){var s=t.getUTCFullYear();return i.ordinalNumber(s>0?s:1-s,{unit:"year"})}return g(t,e)},Y:function(t,e,i,s){var o=f(t,s),r=o>0?o:1-o;return"YY"===e?b(r%100,2):"Yo"===e?i.ordinalNumber(r,{unit:"year"}):b(r,e.length)},R:function(t,e){return b(m(t),e.length)},u:function(t,e){return b(t.getUTCFullYear(),e.length)},Q:function(t,e,i){var s=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(s);case"QQ":return b(s,2);case"Qo":return i.ordinalNumber(s,{unit:"quarter"});case"QQQ":return i.quarter(s,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(s,{width:"narrow",context:"formatting"});default:return i.quarter(s,{width:"wide",context:"formatting"})}},q:function(t,e,i){var s=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(s);case"qq":return b(s,2);case"qo":return i.ordinalNumber(s,{unit:"quarter"});case"qqq":return i.quarter(s,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(s,{width:"narrow",context:"standalone"});default:return i.quarter(s,{width:"wide",context:"standalone"})}},M:function(t,e,i){var s=t.getUTCMonth();switch(e){case"M":case"MM":return y(t,e);case"Mo":return i.ordinalNumber(s+1,{unit:"month"});case"MMM":return i.month(s,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(s,{width:"narrow",context:"formatting"});default:return i.month(s,{width:"wide",context:"formatting"})}},L:function(t,e,i){var s=t.getUTCMonth();switch(e){case"L":return String(s+1);case"LL":return b(s+1,2);case"Lo":return i.ordinalNumber(s+1,{unit:"month"});case"LLL":return i.month(s,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(s,{width:"narrow",context:"standalone"});default:return i.month(s,{width:"wide",context:"standalone"})}},w:function(t,e,i,s){var o=function(t,e){a(1,arguments);var i=l(t),s=v(i,e).getTime()-function(t,e){var i,s,o,r,l,h,c,u;a(1,arguments);var p=d(),m=n(null!==(i=null!==(s=null!==(o=null!==(r=null==e?void 0:e.firstWeekContainsDate)&&void 0!==r?r:null==e||null===(l=e.locale)||void 0===l||null===(h=l.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==o?o:p.firstWeekContainsDate)&&void 0!==s?s:null===(c=p.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==i?i:1),b=f(t,e),g=new Date(0);return g.setUTCFullYear(b,0,m),g.setUTCHours(0,0,0,0),v(g,e)}(i,e).getTime();return Math.round(s/6048e5)+1}(t,s);return"wo"===e?i.ordinalNumber(o,{unit:"week"}):b(o,e.length)},I:function(t,e,i){var s=function(t){a(1,arguments);var e=l(t),i=p(e).getTime()-function(t){a(1,arguments);var e=m(t),i=new Date(0);return i.setUTCFullYear(e,0,4),i.setUTCHours(0,0,0,0),p(i)}(e).getTime();return Math.round(i/6048e5)+1}(t);return"Io"===e?i.ordinalNumber(s,{unit:"week"}):b(s,e.length)},d:function(t,e,i){return"do"===e?i.ordinalNumber(t.getUTCDate(),{unit:"date"}):w(t,e)},D:function(t,e,i){var s=function(t){a(1,arguments);var e=l(t),i=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var s=e.getTime();return Math.floor((i-s)/864e5)+1}(t);return"Do"===e?i.ordinalNumber(s,{unit:"dayOfYear"}):b(s,e.length)},E:function(t,e,i){var s=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return i.day(s,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(s,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(s,{width:"short",context:"formatting"});default:return i.day(s,{width:"wide",context:"formatting"})}},e:function(t,e,i,s){var o=t.getUTCDay(),r=(o-s.weekStartsOn+8)%7||7;switch(e){case"e":return String(r);case"ee":return b(r,2);case"eo":return i.ordinalNumber(r,{unit:"day"});case"eee":return i.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(o,{width:"short",context:"formatting"});default:return i.day(o,{width:"wide",context:"formatting"})}},c:function(t,e,i,s){var o=t.getUTCDay(),r=(o-s.weekStartsOn+8)%7||7;switch(e){case"c":return String(r);case"cc":return b(r,e.length);case"co":return i.ordinalNumber(r,{unit:"day"});case"ccc":return i.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(o,{width:"narrow",context:"standalone"});case"cccccc":return i.day(o,{width:"short",context:"standalone"});default:return i.day(o,{width:"wide",context:"standalone"})}},i:function(t,e,i){var s=t.getUTCDay(),o=0===s?7:s;switch(e){case"i":return String(o);case"ii":return b(o,e.length);case"io":return i.ordinalNumber(o,{unit:"day"});case"iii":return i.day(s,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(s,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(s,{width:"short",context:"formatting"});default:return i.day(s,{width:"wide",context:"formatting"})}},a:function(t,e,i){var s=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(s,{width:"narrow",context:"formatting"});default:return i.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(t,e,i){var s,o=t.getUTCHours();switch(s=12===o?"noon":0===o?"midnight":o/12>=1?"pm":"am",e){case"b":case"bb":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(s,{width:"narrow",context:"formatting"});default:return i.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(t,e,i){var s,o=t.getUTCHours();switch(s=o>=17?"evening":o>=12?"afternoon":o>=4?"morning":"night",e){case"B":case"BB":case"BBB":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(s,{width:"narrow",context:"formatting"});default:return i.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(t,e,i){if("ho"===e){var s=t.getUTCHours()%12;return 0===s&&(s=12),i.ordinalNumber(s,{unit:"hour"})}return _(t,e)},H:function(t,e,i){return"Ho"===e?i.ordinalNumber(t.getUTCHours(),{unit:"hour"}):x(t,e)},K:function(t,e,i){var s=t.getUTCHours()%12;return"Ko"===e?i.ordinalNumber(s,{unit:"hour"}):b(s,e.length)},k:function(t,e,i){var s=t.getUTCHours();return 0===s&&(s=24),"ko"===e?i.ordinalNumber(s,{unit:"hour"}):b(s,e.length)},m:function(t,e,i){return"mo"===e?i.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):k(t,e)},s:function(t,e,i){return"so"===e?i.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):C(t,e)},S:function(t,e){return A(t,e)},X:function(t,e,i,s){var o=(s._originalDate||t).getTimezoneOffset();if(0===o)return"Z";switch(e){case"X":return T(o);case"XXXX":case"XX":return I(o);default:return I(o,":")}},x:function(t,e,i,s){var o=(s._originalDate||t).getTimezoneOffset();switch(e){case"x":return T(o);case"xxxx":case"xx":return I(o);default:return I(o,":")}},O:function(t,e,i,s){var o=(s._originalDate||t).getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+z(o,":");default:return"GMT"+I(o,":")}},z:function(t,e,i,s){var o=(s._originalDate||t).getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+z(o,":");default:return"GMT"+I(o,":")}},t:function(t,e,i,s){return b(Math.floor((s._originalDate||t).getTime()/1e3),e.length)},T:function(t,e,i,s){return b((s._originalDate||t).getTime(),e.length)}};function z(t,e){var i=t>0?"-":"+",s=Math.abs(t),o=Math.floor(s/60),r=s%60;if(0===r)return i+String(o);var n=e||"";return i+String(o)+n+b(r,2)}function T(t,e){return t%60==0?(t>0?"-":"+")+b(Math.abs(t)/60,2):I(t,e)}function I(t,e){var i=e||"",s=t>0?"-":"+",o=Math.abs(t);return s+b(Math.floor(o/60),2)+i+b(o%60,2)}const D=S;var O=function(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},E=function(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},M={p:E,P:function(t,e){var i,s=t.match(/(P+)(p+)?/)||[],o=s[1],r=s[2];if(!r)return O(t,e);switch(o){case"P":i=e.dateTime({width:"short"});break;case"PP":i=e.dateTime({width:"medium"});break;case"PPP":i=e.dateTime({width:"long"});break;default:i=e.dateTime({width:"full"})}return i.replace("{{date}}",O(o,e)).replace("{{time}}",E(r,e))}};const B=M;var P=["D","DD"],N=["YY","YYYY"];function j(t,e,i){if("YYYY"===t)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===t)throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===t)throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===t)throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var F={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function $(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.width?String(e.width):t.defaultWidth;return t.formats[i]||t.formats[t.defaultWidth]}}var R,L={date:$({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:$({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:$({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},q={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function V(t){return function(e,i){var s;if("formatting"===(null!=i&&i.context?String(i.context):"standalone")&&t.formattingValues){var o=t.defaultFormattingWidth||t.defaultWidth,r=null!=i&&i.width?String(i.width):o;s=t.formattingValues[r]||t.formattingValues[o]}else{var n=t.defaultWidth,a=null!=i&&i.width?String(i.width):t.defaultWidth;s=t.values[a]||t.values[n]}return s[t.argumentCallback?t.argumentCallback(e):e]}}function W(t){return function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=i.width,o=e.match(s&&t.matchPatterns[s]||t.matchPatterns[t.defaultMatchWidth]);if(!o)return null;var r,n=o[0],a=s&&t.parsePatterns[s]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(a)?function(t){for(var e=0;e<t.length;e++)if(t[e].test(n))return e}(a):function(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e].test(n))return e}(a);return r=t.valueCallback?t.valueCallback(l):l,{value:r=i.valueCallback?i.valueCallback(r):r,rest:e.slice(n.length)}}}const U={code:"en-US",formatDistance:function(t,e,i){var s,o=F[t];return s="string"==typeof o?o:1===e?o.one:o.other.replace("{{count}}",e.toString()),null!=i&&i.addSuffix?i.comparison&&i.comparison>0?"in "+s:s+" ago":s},formatLong:L,formatRelative:function(t){return q[t]},localize:{ordinalNumber:function(t){var e=Number(t),i=e%100;if(i>20||i<10)switch(i%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"},era:V({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:V({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:V({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:V({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:V({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(R={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}},function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.match(R.matchPattern);if(!i)return null;var s=i[0],o=t.match(R.parsePattern);if(!o)return null;var r=R.valueCallback?R.valueCallback(o[0]):o[0];return{value:r=e.valueCallback?e.valueCallback(r):r,rest:t.slice(s.length)}}),era:W({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:W({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:W({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:W({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:W({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};var H=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Y=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,G=/^'([^]*?)'?$/,K=/''/g,J=/[a-zA-Z]/;function Q(t,e,i){var s,o,h,c,u,p,m,v,f,b,g,y,w,_,x,k,C,A;a(2,arguments);var S=String(e),z=d(),T=null!==(s=null!==(o=null==i?void 0:i.locale)&&void 0!==o?o:z.locale)&&void 0!==s?s:U,I=n(null!==(h=null!==(c=null!==(u=null!==(p=null==i?void 0:i.firstWeekContainsDate)&&void 0!==p?p:null==i||null===(m=i.locale)||void 0===m||null===(v=m.options)||void 0===v?void 0:v.firstWeekContainsDate)&&void 0!==u?u:z.firstWeekContainsDate)&&void 0!==c?c:null===(f=z.locale)||void 0===f||null===(b=f.options)||void 0===b?void 0:b.firstWeekContainsDate)&&void 0!==h?h:1);if(!(I>=1&&I<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var O=n(null!==(g=null!==(y=null!==(w=null!==(_=null==i?void 0:i.weekStartsOn)&&void 0!==_?_:null==i||null===(x=i.locale)||void 0===x||null===(k=x.options)||void 0===k?void 0:k.weekStartsOn)&&void 0!==w?w:z.weekStartsOn)&&void 0!==y?y:null===(C=z.locale)||void 0===C||null===(A=C.options)||void 0===A?void 0:A.weekStartsOn)&&void 0!==g?g:0);if(!(O>=0&&O<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!T.localize)throw new RangeError("locale must contain localize property");if(!T.formatLong)throw new RangeError("locale must contain formatLong property");var E=l(t);if(!function(t){if(a(1,arguments),!function(t){return a(1,arguments),t instanceof Date||"object"===r(t)&&"[object Date]"===Object.prototype.toString.call(t)}(t)&&"number"!=typeof t)return!1;var e=l(t);return!isNaN(Number(e))}(E))throw new RangeError("Invalid time value");var M=function(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}(E),F=function(t,e){return a(2,arguments),function(t,e){a(2,arguments);var i=l(t).getTime(),s=n(e);return new Date(i+s)}(t,-n(e))}(E,M),$={firstWeekContainsDate:I,weekStartsOn:O,locale:T,_originalDate:E};return S.match(Y).map((function(t){var e=t[0];return"p"===e||"P"===e?(0,B[e])(t,T.formatLong):t})).join("").match(H).map((function(s){if("''"===s)return"'";var o,r,n=s[0];if("'"===n)return(r=(o=s).match(G))?r[1].replace(K,"'"):o;var a=D[n];if(a)return null!=i&&i.useAdditionalWeekYearTokens||-1===N.indexOf(s)||j(s,e,String(t)),null!=i&&i.useAdditionalDayOfYearTokens||!(-1!==P.indexOf(s))||j(s,e,String(t)),a(F,s,T.localize,$);if(n.match(J))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");return s})).join("")}var X={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Z=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,tt=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,et=/^([+-])(\d{2})(?::?(\d{2}))?$/;function it(t){return t?parseInt(t):1}function st(t){return t&&parseFloat(t.replace(",","."))||0}var ot=[31,null,31,30,31,30,31,31,30,31,30,31];function rt(t){return t%400==0||t%4==0&&t%100!=0}function nt(t,e="GET",i=null,s={}){return new Promise(((o,r)=>{const n="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)})),a=Object.assign({"Content-Type":"application/json"},s);"GET"!==e&&"HEAD"!==e&&(a["X-Idempotency-Key"]=n);const l={method:e,headers:a,body:null};i&&"GET"!==e&&"HEAD"!==e?l.body=JSON.stringify(i):delete l.body,fetch(t,l).then((t=>t.ok?t.json():t.json().then((e=>{r({status:t.status,statusText:t.statusText,code:e.code||"UNKNOWN_ERROR",message:e.message||"An unknown error occurred",data:e.data||null})}),(()=>r({status:t.status,statusText:t.statusText,code:"PARSE_ERROR",message:"Failed to parse error response"}))))).then((t=>o(t)),(t=>r(t)))}))}const at=({message:t,theme:e="success",renderOne:i=!1})=>{window.postMessage({type:"ShowNotificationToast",message:t,theme:e,renderOne:i})},lt=({date:t,type:e="date",format:i})=>{try{const s=function(t,e){var i;a(1,arguments);var s=n(null!==(i=null==e?void 0:e.additionalDigits)&&void 0!==i?i:2);if(2!==s&&1!==s&&0!==s)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof t&&"[object String]"!==Object.prototype.toString.call(t))return new Date(NaN);var o,r=function(t){var e,i={},s=t.split(X.dateTimeDelimiter);if(s.length>2)return i;if(/:/.test(s[0])?e=s[0]:(i.date=s[0],e=s[1],X.timeZoneDelimiter.test(i.date)&&(i.date=t.split(X.timeZoneDelimiter)[0],e=t.substr(i.date.length,t.length))),e){var o=X.timezone.exec(e);o?(i.time=e.replace(o[1],""),i.timezone=o[1]):i.time=e}return i}(t);if(r.date){var l=function(t,e){var i=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),s=t.match(i);if(!s)return{year:NaN,restDateString:""};var o=s[1]?parseInt(s[1]):null,r=s[2]?parseInt(s[2]):null;return{year:null===r?o:100*r,restDateString:t.slice((s[1]||s[2]).length)}}(r.date,s);o=function(t,e){if(null===e)return new Date(NaN);var i=t.match(Z);if(!i)return new Date(NaN);var s=!!i[4],o=it(i[1]),r=it(i[2])-1,n=it(i[3]),a=it(i[4]),l=it(i[5])-1;if(s)return function(t,e,i){return e>=1&&e<=53&&i>=0&&i<=6}(0,a,l)?function(t,e,i){var s=new Date(0);s.setUTCFullYear(t,0,4);var o=7*(e-1)+i+1-(s.getUTCDay()||7);return s.setUTCDate(s.getUTCDate()+o),s}(e,a,l):new Date(NaN);var h=new Date(0);return function(t,e,i){return e>=0&&e<=11&&i>=1&&i<=(ot[e]||(rt(t)?29:28))}(e,r,n)&&function(t,e){return e>=1&&e<=(rt(t)?366:365)}(e,o)?(h.setUTCFullYear(e,r,Math.max(o,n)),h):new Date(NaN)}(l.restDateString,l.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var h,d=o.getTime(),c=0;if(r.time&&(c=function(t){var e=t.match(tt);if(!e)return NaN;var i=st(e[1]),s=st(e[2]),o=st(e[3]);return function(t,e,i){return 24===t?0===e&&0===i:i>=0&&i<60&&e>=0&&e<60&&t>=0&&t<25}(i,s,o)?i*u+6e4*s+1e3*o:NaN}(r.time),isNaN(c)))return new Date(NaN);if(!r.timezone){var p=new Date(d+c),m=new Date(0);return m.setFullYear(p.getUTCFullYear(),p.getUTCMonth(),p.getUTCDate()),m.setHours(p.getUTCHours(),p.getUTCMinutes(),p.getUTCSeconds(),p.getUTCMilliseconds()),m}return h=function(t){if("Z"===t)return 0;var e=t.match(et);if(!e)return 0;var i="+"===e[1]?-1:1,s=parseInt(e[2]),o=e[3]&&parseInt(e[3])||0;return function(t,e){return e>=0&&e<=59}(0,o)?i*(s*u+6e4*o):NaN}(r.timezone),isNaN(h)?new Date(NaN):new Date(d+c+h)}(t);if(isNaN(s.getTime()))throw new Error(`Invalid date: ${t}`);if(i)return Q(s,i);let o="dd/MM/yyyy";return"time"===e?o="dd/MM/yyyy HH:mm:ss":"week"===e&&(o="ccc dd/MM/yyyy HH:mm:ss"),Q(s,o)}catch(t){return console.error("Error formatting date:",t.message),""}};function ht(t,e){return null==t||""===t||(0!==t||!e)&&!1!==t&&(Array.isArray(t)?function(t){if(0===t.length)return!0;const e=t.length;let i=0;for(let s=0;s<e;s++){if(!ht(t[s]))return!1;i++}return i===e}(t):"[object Object]"===Object.prototype.toString.call(t)?function(t){if(0===Object.keys(t).length)return!0;const e=Object.keys(t).length;let i=0;for(const e of Object.values(t)){if(!ht(e))return!1;i++}return i===e}(t):!t)}function dt(t){return new Promise(((e,i)=>{try{const s=new Blob([t],{type:"text/plain;charset=utf-8"}),o=new FileReader;o.onload=()=>{if("string"==typeof o.result){const t=o.result.split(",")[1];e(t)}else i(new Error("无法转换为Base64编码"))},o.onerror=()=>i(o.error),o.readAsDataURL(s)}catch(t){i(t)}}))}function ct(t,e=2){return Number(t).toFixed(e)}const ut=10;var pt=Object.defineProperty,mt=Object.defineProperties,vt=Object.getOwnPropertyDescriptors,ft=Object.getOwnPropertySymbols,bt=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable,yt=(t,e,i)=>e in t?pt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,wt=(t,e)=>{for(var i in e||(e={}))bt.call(e,i)&&yt(t,i,e[i]);if(ft)for(var i of ft(e))gt.call(e,i)&&yt(t,i,e[i]);return t},_t=(t,e)=>mt(t,vt(e)),xt=(t,e,i)=>(yt(t,"symbol"!=typeof e?e+"":e,i),i),kt=(t,e,i)=>new Promise(((s,o)=>{var r=t=>{try{a(i.next(t))}catch(t){o(t)}},n=t=>{try{a(i.throw(t))}catch(t){o(t)}},a=t=>t.done?s(t.value):Promise.resolve(t.value).then(r,n);a((i=i.apply(t,e)).next())}))
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
@@ -19,18 +19,18 @@ const St=globalThis,zt=St.ShadowRoot&&(void 0===St.ShadyCSS||St.ShadyCSS.nativeS
|
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
21
21
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
22
|
-
*/,{is:Bt,defineProperty:Pt,getOwnPropertyDescriptor:Nt,getOwnPropertyNames:jt,getOwnPropertySymbols:Ft,getPrototypeOf:$t}=Object,Rt=globalThis,Lt=Rt.trustedTypes,qt=Lt?Lt.emptyScript:"",Vt=Rt.reactiveElementPolyfillSupport,Wt={toAttribute(t,e){switch(e){case Boolean:t=t?qt:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},Ut=(t,e)=>!Bt(t,e),Ht={attribute:!0,type:String,converter:Wt,reflect:!1,useDefault:!1,hasChanged:Ut};null!=Symbol.metadata||(Symbol.metadata=Symbol("metadata")),null!=Rt.litPropertyMetadata||(Rt.litPropertyMetadata=new WeakMap);
|
|
22
|
+
*/,{is:Bt,defineProperty:Pt,getOwnPropertyDescriptor:Nt,getOwnPropertyNames:jt,getOwnPropertySymbols:Ft,getPrototypeOf:$t}=Object,Rt=globalThis,Lt=Rt.trustedTypes,qt=Lt?Lt.emptyScript:"",Vt=Rt.reactiveElementPolyfillSupport,Wt={toAttribute(t,e){switch(e){case Boolean:t=t?qt:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},Ut=(t,e)=>!Bt(t,e),Ht={attribute:!0,type:String,converter:Wt,reflect:!1,useDefault:!1,hasChanged:Ut};null!=Symbol.metadata||(Symbol.metadata=Symbol("metadata")),null!=Rt.litPropertyMetadata||(Rt.litPropertyMetadata=new WeakMap);let Yt=class extends HTMLElement{static addInitializer(t){var e;this._$Ei(),(null!=(e=this.l)?e:this.l=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Ht){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),s=this.getPropertyDescriptor(t,i,e);void 0!==s&&Pt(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){var s;const{get:o,set:r}=null!=(s=Nt(this.prototype,t))?s:{get(){return this[e]},set(t){this[e]=t}};return{get:o,set(e){const s=null==o?void 0:o.call(this);null==r||r.call(this,e),this.requestUpdate(t,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return null!=(e=this.elementProperties.get(t))?e:Ht}static _$Ei(){if(this.hasOwnProperty("elementProperties"))return;const t=$t(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty("finalized"))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty("properties")){const t=this.properties,e=[...jt(t),...Ft(t)];for(const i of e)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,i]of e)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const i=this._$Eu(t,e);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(Mt(t))}else void 0!==t&&e.push(Mt(t));return e}static _$Eu(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),null==(t=this.constructor.l)||t.forEach((t=>t(this)))}addController(t){var e,i;(null!=(e=this._$EO)?e:this._$EO=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&(null==(i=t.hostConnected)||i.call(t))}removeController(t){var e;null==(e=this._$EO)||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){var t;const e=null!=(t=this.shadowRoot)?t:this.attachShadow(this.constructor.shadowRootOptions);return Et(e,this.constructor.elementStyles),e}connectedCallback(){var t;null!=this.renderRoot||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null==(t=this._$EO)||t.forEach((t=>{var e;return null==(e=t.hostConnected)?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null==(t=this._$EO)||t.forEach((t=>{var e;return null==(e=t.hostDisconnected)?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ET(t,e){var i;const s=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,s);if(void 0!==o&&!0===s.reflect){const r=(void 0!==(null==(i=s.converter)?void 0:i.toAttribute)?s.converter:Wt).toAttribute(e,s.type);this._$Em=t,null==r?this.removeAttribute(o):this.setAttribute(o,r),this._$Em=null}}_$AK(t,e){var i,s,o;const r=this.constructor,n=r._$Eh.get(t);if(void 0!==n&&this._$Em!==n){const t=r.getPropertyOptions(n),a="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null==(i=t.converter)?void 0:i.fromAttribute)?t.converter:Wt;this._$Em=n;const l=a.fromAttribute(e,t.type);this[n]=null!=(o=null!=l?l:null==(s=this._$Ej)?void 0:s.get(n))?o:l,this._$Em=null}}requestUpdate(t,e,i,s=!1,o){var r,n;if(void 0!==t){const a=this.constructor;if(!1===s&&(o=this[t]),null!=i||(i=a.getPropertyOptions(t)),!((null!=(r=i.hasChanged)?r:Ut)(o,e)||i.useDefault&&i.reflect&&o===(null==(n=this._$Ej)?void 0:n.get(t))&&!this.hasAttribute(a._$Eu(t,i))))return;this.C(t,e,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:i,reflect:s,wrapped:o},r){var n,a,l;i&&!(null!=(n=this._$Ej)?n:this._$Ej=new Map).has(t)&&(this._$Ej.set(t,null!=(a=null!=r?r:e)?a:this[t]),!0!==o||void 0!==r)||(this._$AL.has(t)||(this.hasUpdated||i||(e=void 0),this._$AL.set(t,e)),!0===s&&this._$Em!==t&&(null!=(l=this._$Eq)?l:this._$Eq=new Set).add(t))}_$EP(){return kt(this,null,(function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&(yield t),!this.isUpdatePending}))}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(null!=this.renderRoot||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,i]of t){const{wrapped:t}=i,s=this[e];!0!==t||this._$AL.has(e)||void 0===s||this.C(e,void 0,i,s)}}let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null==(t=this._$EO)||t.forEach((t=>{var e;return null==(e=t.hostUpdate)?void 0:e.call(t)})),this.update(i)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null==(e=this._$EO)||e.forEach((t=>{var e;return null==(e=t.hostUpdated)?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&(this._$Eq=this._$Eq.forEach((t=>this._$ET(t,this[t])))),this._$EM()}updated(t){}firstUpdated(t){}};var Gt;Yt.elementStyles=[],Yt.shadowRootOptions={mode:"open"},Yt.elementProperties=new Map,Yt.finalized=new Map,null==Vt||Vt({ReactiveElement:Yt}),(null!=(Gt=Rt.reactiveElementVersions)?Gt:Rt.reactiveElementVersions=[]).push("2.1.2");
|
|
23
23
|
/**
|
|
24
24
|
* @license
|
|
25
25
|
* Copyright 2017 Google LLC
|
|
26
26
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
27
27
|
*/
|
|
28
|
-
const Kt=globalThis,Jt=Kt.trustedTypes,Qt=Jt?Jt.createPolicy("lit-html",{createHTML:t=>t}):void 0,Xt="$lit$",Zt=`lit$${Math.random().toFixed(9).slice(2)}$`,te="?"+Zt,ee=`<${te}>`,ie=document,se=()=>ie.createComment(""),oe=t=>null===t||"object"!=typeof t&&"function"!=typeof t,re=Array.isArray,ne="[ \t\n\f\r]",ae=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,le=/-->/g,he=/>/g,de=RegExp(`>|${ne}(?:([^\\s"'>=/]+)(${ne}*=${ne}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),ce=/'/g,ue=/"/g,pe=/^(?:script|style|textarea|title)$/i,me=Symbol.for("lit-noChange"),ve=Symbol.for("lit-nothing"),fe=new WeakMap,be=ie.createTreeWalker(ie,129);function ge(t,e){if(!re(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Qt?Qt.createHTML(e):e}class ye{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let o=0,r=0;const n=t.length-1,a=this.parts,[l,h]=((t,e)=>{const i=t.length-1,s=[];let o,r=2===e?"<svg>":3===e?"<math>":"",n=ae;for(let e=0;e<i;e++){const i=t[e];let a,l,h=-1,d=0;for(;d<i.length&&(n.lastIndex=d,l=n.exec(i),null!==l);)d=n.lastIndex,n===ae?"!--"===l[1]?n=le:void 0!==l[1]?n=he:void 0!==l[2]?(pe.test(l[2])&&(o=RegExp("</"+l[2],"g")),n=de):void 0!==l[3]&&(n=de):n===de?">"===l[0]?(n=null!=o?o:ae,h=-1):void 0===l[1]?h=-2:(h=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?de:'"'===l[3]?ue:ce):n===ue||n===ce?n=de:n===le||n===he?n=ae:(n=de,o=void 0);const c=n===de&&t[e+1].startsWith("/>")?" ":"";r+=n===ae?i+ee:h>=0?(s.push(a),i.slice(0,h)+Xt+i.slice(h)+Zt+c):i+Zt+(-2===h?e:c)}return[ge(t,r+(t[i]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),s]})(t,e);if(this.el=ye.createElement(l,i),be.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(s=be.nextNode())&&a.length<n;){if(1===s.nodeType){if(s.hasAttributes())for(const t of s.getAttributeNames())if(t.endsWith(Xt)){const e=h[r++],i=s.getAttribute(t).split(Zt),n=/([.?@])?(.*)/.exec(e);a.push({type:1,index:o,name:n[2],strings:i,ctor:"."===n[1]?Ce:"?"===n[1]?Ae:"@"===n[1]?Se:ke}),s.removeAttribute(t)}else t.startsWith(Zt)&&(a.push({type:6,index:o}),s.removeAttribute(t));if(pe.test(s.tagName)){const t=s.textContent.split(Zt),e=t.length-1;if(e>0){s.textContent=Jt?Jt.emptyScript:"";for(let i=0;i<e;i++)s.append(t[i],se()),be.nextNode(),a.push({type:2,index:++o});s.append(t[e],se())}}}else if(8===s.nodeType)if(s.data===te)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=s.data.indexOf(Zt,t+1));)a.push({type:7,index:o}),t+=Zt.length-1}o++}}static createElement(t,e){const i=ie.createElement("template");return i.innerHTML=t,i}}function we(t,e,i=t,s){var o,r,n;if(e===me)return e;let a=void 0!==s?null==(o=i._$Co)?void 0:o[s]:i._$Cl;const l=oe(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==l&&(null==(r=null==a?void 0:a._$AO)||r.call(a,!1),void 0===l?a=void 0:(a=new l(t),a._$AT(t,i,s)),void 0!==s?(null!=(n=i._$Co)?n:i._$Co=[])[s]=a:i._$Cl=a),void 0!==a&&(e=we(t,a._$AS(t,e.values),a,s)),e}class _e{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:s}=this._$AD,o=(null!=(e=null==t?void 0:t.creationScope)?e:ie).importNode(i,!0);be.currentNode=o;let r=be.nextNode(),n=0,a=0,l=s[0];for(;void 0!==l;){if(n===l.index){let e;2===l.type?e=new xe(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new ze(r,this,t)),this._$AV.push(e),l=s[++a]}n!==(null==l?void 0:l.index)&&(r=be.nextNode(),n++)}return be.currentNode=ie,o}p(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class xe{get _$AU(){var t,e;return null!=(e=null==(t=this._$AM)?void 0:t._$AU)?e:this._$Cv}constructor(t,e,i,s){var o;this.type=2,this._$AH=ve,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cv=null==(o=null==s?void 0:s.isConnected)||o}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){var i;t=we(this,t,e),oe(t)?t===ve||null==t||""===t?(this._$AH!==ve&&this._$AR(),this._$AH=ve):t!==this._$AH&&t!==me&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):re(i=t)||"function"==typeof(null==i?void 0:i[Symbol.iterator])?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==ve&&oe(this._$AH)?this._$AA.nextSibling.data=t:this.T(ie.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:s}=t,o="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=ye.createElement(ge(s.h,s.h[0]),this.options)),s);if((null==(e=this._$AH)?void 0:e._$AD)===o)this._$AH.p(i);else{const t=new _e(o,this),e=t.u(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=fe.get(t.strings);return void 0===e&&fe.set(t.strings,e=new ye(t)),e}k(t){re(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const o of t)s===e.length?e.push(i=new xe(this.O(se()),this.O(se()),this,this.options)):i=e[s],i._$AI(o),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var i;for(null==(i=this._$AP)||i.call(this,!1,!0,e);t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cv=t,null==(e=this._$AP)||e.call(this,t))}}class ke{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,s,o){this.type=1,this._$AH=ve,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=ve}_$AI(t,e=this,i,s){const o=this.strings;let r=!1;if(void 0===o)t=we(this,t,e,0),r=!oe(t)||t!==this._$AH&&t!==me,r&&(this._$AH=t);else{const s=t;let n,a;for(t=o[0],n=0;n<o.length-1;n++)a=we(this,s[i+n],e,n),a===me&&(a=this._$AH[n]),r||(r=!oe(a)||a!==this._$AH[n]),a===ve?t=ve:t!==ve&&(t+=(null!=a?a:"")+o[n+1]),this._$AH[n]=a}r&&!s&&this.j(t)}j(t){t===ve?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Ce extends ke{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===ve?void 0:t}}class Ae extends ke{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==ve)}}class Se extends ke{constructor(t,e,i,s,o){super(t,e,i,s,o),this.type=5}_$AI(t,e=this){var i;if((t=null!=(i=we(this,t,e,0))?i:ve)===me)return;const s=this._$AH,o=t===ve&&s!==ve||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==ve&&(s===ve||o);o&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!=(i=null==(e=this.options)?void 0:e.host)?i:this.element,t):this._$AH.handleEvent(t)}}class ze{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){we(this,t)}}const Te=Kt.litHtmlPolyfillSupport;var Ie;null==Te||Te(ye,xe),(null!=(Ie=Kt.litHtmlVersions)?Ie:Kt.litHtmlVersions=[]).push("3.3.
|
|
28
|
+
const Kt=globalThis,Jt=Kt.trustedTypes,Qt=Jt?Jt.createPolicy("lit-html",{createHTML:t=>t}):void 0,Xt="$lit$",Zt=`lit$${Math.random().toFixed(9).slice(2)}$`,te="?"+Zt,ee=`<${te}>`,ie=document,se=()=>ie.createComment(""),oe=t=>null===t||"object"!=typeof t&&"function"!=typeof t,re=Array.isArray,ne="[ \t\n\f\r]",ae=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,le=/-->/g,he=/>/g,de=RegExp(`>|${ne}(?:([^\\s"'>=/]+)(${ne}*=${ne}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),ce=/'/g,ue=/"/g,pe=/^(?:script|style|textarea|title)$/i,me=Symbol.for("lit-noChange"),ve=Symbol.for("lit-nothing"),fe=new WeakMap,be=ie.createTreeWalker(ie,129);function ge(t,e){if(!re(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Qt?Qt.createHTML(e):e}class ye{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let o=0,r=0;const n=t.length-1,a=this.parts,[l,h]=((t,e)=>{const i=t.length-1,s=[];let o,r=2===e?"<svg>":3===e?"<math>":"",n=ae;for(let e=0;e<i;e++){const i=t[e];let a,l,h=-1,d=0;for(;d<i.length&&(n.lastIndex=d,l=n.exec(i),null!==l);)d=n.lastIndex,n===ae?"!--"===l[1]?n=le:void 0!==l[1]?n=he:void 0!==l[2]?(pe.test(l[2])&&(o=RegExp("</"+l[2],"g")),n=de):void 0!==l[3]&&(n=de):n===de?">"===l[0]?(n=null!=o?o:ae,h=-1):void 0===l[1]?h=-2:(h=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?de:'"'===l[3]?ue:ce):n===ue||n===ce?n=de:n===le||n===he?n=ae:(n=de,o=void 0);const c=n===de&&t[e+1].startsWith("/>")?" ":"";r+=n===ae?i+ee:h>=0?(s.push(a),i.slice(0,h)+Xt+i.slice(h)+Zt+c):i+Zt+(-2===h?e:c)}return[ge(t,r+(t[i]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),s]})(t,e);if(this.el=ye.createElement(l,i),be.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(s=be.nextNode())&&a.length<n;){if(1===s.nodeType){if(s.hasAttributes())for(const t of s.getAttributeNames())if(t.endsWith(Xt)){const e=h[r++],i=s.getAttribute(t).split(Zt),n=/([.?@])?(.*)/.exec(e);a.push({type:1,index:o,name:n[2],strings:i,ctor:"."===n[1]?Ce:"?"===n[1]?Ae:"@"===n[1]?Se:ke}),s.removeAttribute(t)}else t.startsWith(Zt)&&(a.push({type:6,index:o}),s.removeAttribute(t));if(pe.test(s.tagName)){const t=s.textContent.split(Zt),e=t.length-1;if(e>0){s.textContent=Jt?Jt.emptyScript:"";for(let i=0;i<e;i++)s.append(t[i],se()),be.nextNode(),a.push({type:2,index:++o});s.append(t[e],se())}}}else if(8===s.nodeType)if(s.data===te)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=s.data.indexOf(Zt,t+1));)a.push({type:7,index:o}),t+=Zt.length-1}o++}}static createElement(t,e){const i=ie.createElement("template");return i.innerHTML=t,i}}function we(t,e,i=t,s){var o,r,n;if(e===me)return e;let a=void 0!==s?null==(o=i._$Co)?void 0:o[s]:i._$Cl;const l=oe(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==l&&(null==(r=null==a?void 0:a._$AO)||r.call(a,!1),void 0===l?a=void 0:(a=new l(t),a._$AT(t,i,s)),void 0!==s?(null!=(n=i._$Co)?n:i._$Co=[])[s]=a:i._$Cl=a),void 0!==a&&(e=we(t,a._$AS(t,e.values),a,s)),e}class _e{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:s}=this._$AD,o=(null!=(e=null==t?void 0:t.creationScope)?e:ie).importNode(i,!0);be.currentNode=o;let r=be.nextNode(),n=0,a=0,l=s[0];for(;void 0!==l;){if(n===l.index){let e;2===l.type?e=new xe(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new ze(r,this,t)),this._$AV.push(e),l=s[++a]}n!==(null==l?void 0:l.index)&&(r=be.nextNode(),n++)}return be.currentNode=ie,o}p(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class xe{get _$AU(){var t,e;return null!=(e=null==(t=this._$AM)?void 0:t._$AU)?e:this._$Cv}constructor(t,e,i,s){var o;this.type=2,this._$AH=ve,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cv=null==(o=null==s?void 0:s.isConnected)||o}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){var i;t=we(this,t,e),oe(t)?t===ve||null==t||""===t?(this._$AH!==ve&&this._$AR(),this._$AH=ve):t!==this._$AH&&t!==me&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):re(i=t)||"function"==typeof(null==i?void 0:i[Symbol.iterator])?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==ve&&oe(this._$AH)?this._$AA.nextSibling.data=t:this.T(ie.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:s}=t,o="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=ye.createElement(ge(s.h,s.h[0]),this.options)),s);if((null==(e=this._$AH)?void 0:e._$AD)===o)this._$AH.p(i);else{const t=new _e(o,this),e=t.u(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=fe.get(t.strings);return void 0===e&&fe.set(t.strings,e=new ye(t)),e}k(t){re(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const o of t)s===e.length?e.push(i=new xe(this.O(se()),this.O(se()),this,this.options)):i=e[s],i._$AI(o),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var i;for(null==(i=this._$AP)||i.call(this,!1,!0,e);t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cv=t,null==(e=this._$AP)||e.call(this,t))}}class ke{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,s,o){this.type=1,this._$AH=ve,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=ve}_$AI(t,e=this,i,s){const o=this.strings;let r=!1;if(void 0===o)t=we(this,t,e,0),r=!oe(t)||t!==this._$AH&&t!==me,r&&(this._$AH=t);else{const s=t;let n,a;for(t=o[0],n=0;n<o.length-1;n++)a=we(this,s[i+n],e,n),a===me&&(a=this._$AH[n]),r||(r=!oe(a)||a!==this._$AH[n]),a===ve?t=ve:t!==ve&&(t+=(null!=a?a:"")+o[n+1]),this._$AH[n]=a}r&&!s&&this.j(t)}j(t){t===ve?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Ce extends ke{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===ve?void 0:t}}class Ae extends ke{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==ve)}}class Se extends ke{constructor(t,e,i,s,o){super(t,e,i,s,o),this.type=5}_$AI(t,e=this){var i;if((t=null!=(i=we(this,t,e,0))?i:ve)===me)return;const s=this._$AH,o=t===ve&&s!==ve||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==ve&&(s===ve||o);o&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!=(i=null==(e=this.options)?void 0:e.host)?i:this.element,t):this._$AH.handleEvent(t)}}class ze{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){we(this,t)}}const Te=Kt.litHtmlPolyfillSupport;var Ie;null==Te||Te(ye,xe),(null!=(Ie=Kt.litHtmlVersions)?Ie:Kt.litHtmlVersions=[]).push("3.3.2");const De=(t,e,i)=>{var s,o;const r=null!=(s=null==i?void 0:i.renderBefore)?s:e;let n=r._$litPart$;if(void 0===n){const t=null!=(o=null==i?void 0:i.renderBefore)?o:null;r._$litPart$=n=new xe(e.insertBefore(se(),t),t,void 0,null!=i?i:{})}return n._$AI(t),n
|
|
29
29
|
/**
|
|
30
30
|
* @license
|
|
31
31
|
* Copyright 2017 Google LLC
|
|
32
32
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
33
|
-
*/},Oe=globalThis;class Ee extends Yt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t;const e=super.createRenderRoot();return null!=(t=this.renderOptions).renderBefore||(t.renderBefore=e.firstChild),e}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=De(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null==(t=this._$Do)||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null==(t=this._$Do)||t.setConnected(!1)}render(){return me}}var Me;Ee._$litElement$=!0,Ee.finalized=!0,null==(Me=Oe.litElementHydrateSupport)||Me.call(Oe,{LitElement:Ee});const Be=Oe.litElementPolyfillSupport;var Pe;null==Be||Be({LitElement:Ee}),(null!=(Pe=Oe.litElementVersions)?Pe:Oe.litElementVersions=[]).push("4.2.
|
|
33
|
+
*/},Oe=globalThis;class Ee extends Yt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t;const e=super.createRenderRoot();return null!=(t=this.renderOptions).renderBefore||(t.renderBefore=e.firstChild),e}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=De(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null==(t=this._$Do)||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null==(t=this._$Do)||t.setConnected(!1)}render(){return me}}var Me;Ee._$litElement$=!0,Ee.finalized=!0,null==(Me=Oe.litElementHydrateSupport)||Me.call(Oe,{LitElement:Ee});const Be=Oe.litElementPolyfillSupport;var Pe;null==Be||Be({LitElement:Ee}),(null!=(Pe=Oe.litElementVersions)?Pe:Oe.litElementVersions=[]).push("4.2.2");
|
|
34
34
|
/**
|
|
35
35
|
* @license
|
|
36
36
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
@@ -6654,4 +6654,4 @@ Ue("vaadin-tabs",Ot`
|
|
|
6654
6654
|
</div>
|
|
6655
6655
|
|
|
6656
6656
|
<div on-click="_scrollForward" part="forward-button" aria-hidden="true"></div>
|
|
6657
|
-
`}static get is(){return"vaadin-tabs"}}Ct(kh);const Ch=["ro","en","fr","ar","hr","zh"],Ah={en:{noTicketBoard:"No ticket board available.",selectionCleared:"Your selection has been cleared.",clearAll:"Clear All",stopAt:"Stop at",turnover:"Turnover: ",pleaseFillIn:"Please fill in all the selection input!",fillIn:"Fill in",noBets:"Sorry. No bets have been placed so far. Check back later!",search:"Search",clear:"Clear",oddsChart:"Odds Chart",ticketSuccess:"Ticket purchased successfully.",stakePerLine:"Stake per Line:",lowestOdds:"Lowest Odds:",highestOdds:"Highest Odds:",orderSummary:"ORDER SUMMARY",ticket:"Ticket",lines:"Lines",total:"Total",submit:"Submit",loading:"Loading",enterValidNumber:"Please enter a valid number.",enterNumberBetween:"Please enter a number between {min} and {max}.",numberAlreadySelected:"This number has already been selected.",enterScoreUpTo:"Please enter the score (Up to {maxScore})",myChoices:"My Choices",teams:"Teams",scores:"Scores",euro:"Euro",cancel:"Cancel",confirm:"Confirm"},ro:{},fr:{},ar:{},hr:{}},Sh=(t,e,i)=>{const s=e;let o=Ah[void 0!==s&&Ch.includes(s)?s:"en"][t];return i&&Object.keys(i).forEach((t=>{o=o.replace(`{${t}}`,i[t])})),o},zh=t=>{Object.keys(t).forEach((e=>{for(let i in t[e])Ah[e][i]=t[e][i]}))},Th=async t=>{if(t)try{const e=await fetch(t);if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);const i=await e.json();zh(i)}catch(t){console.error("Failed to fetch or parse translations from URL:",t)}},Ih=class{constructor(e){t(this,e),this.onStakeChange=t=>{this.gameInfo=Object.assign(Object.assign({},this.gameInfo),{stake:t.detail.value})},this.generateSelection=()=>this.ticketBoardInfo.map((t=>{const e=t.addSelections[0].map((t=>String(t))),i=t.selections[0].filter((t=>t.isSelected)).map((t=>String(t.text))).concat(e),s=t.addSelections[1].map((t=>String(t))),o=((t,e)=>{const i=[];for(const s of t)for(const t of e)i.push(`${s}:${t}`);return i})(i,t.selections[1].filter((t=>t.isSelected)).map((t=>String(t.text))).concat(s));return[[...o]]})),this.endpoint=void 0,this.endpointTicket=void 0,this.endpointLotteryBe=void 0,this.gameId=void 0,this.sessionId=void 0,this.drawId=void 0,this.playerId="",this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.translationUrl="",this.language="en",this.isLoading=!1,this.isLoadingOdds=!1,this.isSubmitLoading=!1,this.matchInfo=void 0,this.ticketBoardInfo=[],this.gameConfig={minScore:0,maxScore:10,minCount:1,maxCount:10,stopTime:"",gameBackEndId:"",stakes:[{label:"1",value:"1"}]},this.addSelectionConfig={needAddMoreBtn:!1,maxOverScore:0,maxScore:0},this.gameInfo={stake:1,quickPick:2,lines:0},this.dialogConfig={title:"",visible:!1},this.oddsData={highest:"",lowest:"",filterdOdds:"",isSearching:!1},this.oddsInfo={count:0,items:[],total:0},this.oddsQuery={limit:10,offset:0,ascending:!0},this.saleStatisticsInfo={}}handleClientStylingChange(t,e){t!=e&&i(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&s(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&o(this.stylingContainer,`${this.mbSource}.Style`)}componentWillLoad(){this.translationUrl&&Th(this.translationUrl),this.initData()}async initData(){await this.fetchGameData(),await this.fetchOddsData()}async fetchGameData(){this.isLoading=!0;try{await this.getGameConfig(),await this.getDrawEventData(),this.initTicketBoard()}catch(t){}finally{this.isLoading=!1}}async fetchOddsData(){this.isLoadingOdds=!0;try{const t=await this.getOddsData({ascending:!0,limit:10,offset:0});this.oddsData.lowest=t.minItem.odds,this.oddsData.highest=t.maxItem.odds,this.oddsInfo=t}catch(t){}finally{this.isLoadingOdds=!1}}async componentDidLoad(){this.stylingContainer&&(this.mbSource&&o(this.stylingContainer,`${this.mbSource}.Style`),this.clientStyling&&i(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&s(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}get canSubmit(){return this.ticketBoardInfo.every((t=>t.selections.every(((e,i)=>e.filter((t=>t.isSelected)).length+t.addSelections[i].length>=this.gameConfig.minCount))))}get oddsChartDialogWidth(){var t;return 0==(null===(t=this.oddsInfo)||void 0===t?void 0:t.total)?"480px":this.ticketBoardInfo.length<=2?"360px":180*this.ticketBoardInfo.length+48+"px"}formattedStopTime(t){let e="";return t?(e=lt({date:t,format:"dd/MM/yyyy HH:mm"}),function(t){return a(1,arguments),function(t,e){a(2,arguments);var i=c(t),s=c(e);return i.getTime()===s.getTime()}(t,Date.now())}(new Date(t))&&(e=lt({date:t,format:"HH:mm"})),e):e}updateBulletDisabledState(t,e,i,s){const o=t[e],r=o.selections[i],n=o.addSelections[i],a=r.filter((t=>t.isSelected)).length+n.length,l=r.map((t=>t.isSelected?t:Object.assign(Object.assign({},t),{isDisabled:a===s})));return t[e].selections[i]=l,t}getMatchCombinationCount(t){return(t.selections[0].filter((t=>t.isSelected)).length+t.addSelections[0].length)*(t.selections[1].filter((t=>t.isSelected)).length+t.addSelections[1].length)}calculateTotalLines(){return this.canSubmit?this.ticketBoardInfo.reduce(((t,e)=>t*this.getMatchCombinationCount(e)),1):0}updateLines(){const t=this.calculateTotalLines();this.gameInfo=Object.assign(Object.assign({},this.gameInfo),{lines:t})}handleTicketBoardInfoChange(){this.updateLines()}handleCanSubmitChange(){this.updateLines()}initTicketBoard(){const{minScore:t,maxScore:e}=this.gameConfig;e-t+1>10&&(this.addSelectionConfig.needAddMoreBtn=!0,this.addSelectionConfig.maxOverScore=t+10,this.addSelectionConfig.maxScore=e),this.ticketBoardInfo=this.matchInfo.map((t=>({matchId:t.eventId,matchName:t.eventName,minScore:0,maxScore:0,selections:[[],[]],addSelections:[[],[]]}))),this.ticketBoardInfo=this.ticketBoardInfo.map((i=>{let s=new Array(e-t+1).fill(0).map(((e,i)=>({text:i+t,idx:i,isSelected:!1,isDisabled:!1,isAddMoreBtn:!1})));return this.addSelectionConfig.needAddMoreBtn&&(s=s.slice(0,10),s.push({text:this.addSelectionConfig.maxOverScore,idx:-1,isSelected:!1,isDisabled:!1,isAddMoreBtn:!0})),Object.assign(Object.assign({},i),{minScore:t,maxScore:e,selections:[s,s]})}))}async getGameConfig(){var t,e,i,s,o,r,n,a,l,h,d,c;try{const u=await nt(`${this.endpoint}/games/${this.gameId}`,"GET");this.rawGameConfig=u,console.log("in getgameconfig",u,this.rawGameConfig);const{minRow:p=0,maxRow:m=0}=null!==(r=null===(o=null===(s=null===(i=null===(e=null===(t=null==u?void 0:u.rules)||void 0===t?void 0:t.poolGame)||void 0===e?void 0:e.outcomeRanges)||void 0===i?void 0:i[0])||void 0===s?void 0:s.bettingType)||void 0===o?void 0:o[0])&&void 0!==r?r:{},{minCount:v=0,maxCount:f=0}=null!==(c=null===(d=null===(h=null===(l=null===(a=null===(n=null==u?void 0:u.rules)||void 0===n?void 0:n.poolGame)||void 0===a?void 0:a.outcomeRanges)||void 0===l?void 0:l[0])||void 0===h?void 0:h.selectRule)||void 0===d?void 0:d[0])&&void 0!==c?c:{},b=p,g=m;this.gameConfig=Object.assign(Object.assign({},this.gameConfig),{minScore:b,maxScore:g,minCount:v,maxCount:f,gameBackEndId:u.type}),this.gameConfig.stakes=u.rules.stakes.map((t=>({value:t.value,label:t.value}))),this.gameConfig.stopTime=u.currentDraw.wagerCloseTime,this.dialogConfig.title=`${u.name} - ${Sh("oddsChart",this.language)}`,this.updateSaleStatistics()}catch(t){}}async updateSaleStatistics(){var t;this.saleStatisticsInfo=await async function({endpoint:t,gameId:e,drawId:i}){try{return await nt(`${t}/api/v1/lottery/core/widget/games/${e}/draws/${i}/saleStatistics`)}catch(t){return Promise.reject(t)}}({endpoint:this.endpointLotteryBe,gameId:null===(t=this.rawGameConfig)||void 0===t?void 0:t.type,drawId:this.drawId})}async getDrawEventData(){try{const t=await nt(`${this.endpoint}/games/${this.rawGameConfig.type}/draws/${this.drawId}/findDrawEvents`,"GET");this.matchInfo=t}catch(t){}}handleOddsBomBulletGroupToggle(t){const{bulletSelctionArr:e,matchIdx:i,selectionIdx:s}=t.detail;let o=[...this.ticketBoardInfo];o[i].selections[s]=e,o=this.updateBulletDisabledState(o,i,s,this.gameConfig.maxCount),this.ticketBoardInfo=[...o]}handleOddsBomBulletAddedByMoreBtnDelete(t){const{delText:e,matchIdx:i,selectionIdx:s}=t.detail;let o=[...this.ticketBoardInfo];o[i].addSelections[s]=o[i].addSelections[s].filter((t=>t!==e)),o=this.updateBulletDisabledState(o,i,s,this.gameConfig.maxCount),this.ticketBoardInfo=[...o]}handleOddsBomAddMoreToMatch(t){const{matchIdx:e,selectionIdx:i,value:s}=t.detail;let o=[...this.ticketBoardInfo];const r=[...o[e].addSelections[i],s].sort(((t,e)=>t-e));o[e].addSelections[i]=r,o=this.updateBulletDisabledState(o,e,i,this.gameConfig.maxCount),this.ticketBoardInfo=[...o]}handleOddsBomBoardClear(){this.initTicketBoard()}handleOddsChartFillIn(t){const{fillInNums:e}=t.detail,i=e.map((t=>t.split(":")[0])).map((t=>Number(t))),s=e.map((t=>t.split(":")[1])).map((t=>Number(t)));let o=[...this.ticketBoardInfo];o=this.ticketBoardInfo.map(((t,e)=>{let o=[...t.addSelections[0]],r=[...t.addSelections[1]];return i[e]>=this.addSelectionConfig.maxOverScore&&(o=[...o,i[e]]),s[e]>=this.addSelectionConfig.maxOverScore&&(r=[...r,s[e]]),Object.assign(Object.assign({},t),{selections:[t.selections[0].map((t=>i[e]==Number(t.text)?Object.assign(Object.assign({},t),{isSelected:!0}):t)),t.selections[1].map((t=>s[e]==Number(t.text)?Object.assign(Object.assign({},t),{isSelected:!0}):t))],addSelections:[o,r]})})),this.ticketBoardInfo=[...o]}async handleSubmit(){var t,e,i,s;const o=this.generateSelection(),r={playerId:this.playerId,tickets:[{startingDrawId:null===(e=null===(t=this.rawGameConfig)||void 0===t?void 0:t.currentDraw)||void 0===e?void 0:e.id,addon:!1,amount:String(Number(this.gameInfo.stake)*this.gameInfo.lines),currency:this.rawGameConfig.rules.stakes[0].currency,selection:[{poolGameSelections:o,multiplier:!1,quickPick:!1,betType:this.rawGameConfig.rules.poolGame.playTypes[0].betTypeId,betName:this.rawGameConfig.rules.betTypes[0].name,stake:Number(this.gameInfo.stake)}],multiplier:!1,multipierNum:1,quickPick:!1,gameName:this.rawGameConfig.name}]};try{this.isSubmitLoading=!0;const t=await nt(`${this.endpointTicket}/tickets`,"POST",r,{Authorization:`Bearer ${this.sessionId}`});"Error"===t.state?at({message:null!==(s=null===(i=null==t?void 0:t.errorDetail)||void 0===i?void 0:i.message)&&void 0!==s?s:"Fail to purchase ticket.",theme:"error"}):(at({message:Sh("ticketSuccess",this.language),theme:"success"}),this.updateSaleStatistics()),this.initTicketBoard()}catch(t){console.log(t),at({message:t.message,theme:"error"})}finally{this.isSubmitLoading=!1}}async getOddsData(t){var e;try{const{drawId:i}=this,s=Object.assign({gameId:this.rawGameConfig.type,drawId:i,bettingType:null!==(e=this.rawGameConfig.rules.poolGame.playTypes[0].bettingType)&&void 0!==e?e:""},t);return await nt(`${this.endpointLotteryBe}/api/v1/lottery/core/widget/poolgame/statistic/realtime/odds${function(t){const e={};Object.entries(t).forEach((([t,i])=>{ht(i,!0)||(e[t]=i)}));const i=Object.entries(e).map((([t,e])=>`${encodeURIComponent(t)}=${encodeURIComponent(e)}`)).join("&");return i?`?${i}`:""}(s)}`,"GET")}catch(t){}}handleOpenOddsChart(){this.dialogConfig=Object.assign(Object.assign({},this.dialogConfig),{visible:!0}),setTimeout((()=>{this.childRef?this.childRef.initOddsChart():console.warn("childRef is not defined")}),0)}handleCloseOddsChart(){var t;this.dialogConfig=Object.assign(Object.assign({},this.dialogConfig),{visible:!1}),null===(t=this.childRef)||void 0===t||t.closeOddsChart(),this.oddsQuery=Object.assign(Object.assign({},this.oddsQuery),{limit:10,offset:0,ascending:!0})}async handleOddsQueryChange(t){this.isLoadingOdds=!0;try{const e=t.detail;this.oddsQuery=Object.assign(Object.assign({},this.oddsQuery),e),this.oddsInfo=await this.getOddsData(this.oddsQuery)}catch(t){console.error("Failed to fetch odds data:",t)}finally{this.isLoadingOdds=!1}}async handleOddsQueryLineChange(t){var e,i;this.oddsData=Object.assign(Object.assign({},this.oddsData),{isSearching:!0});try{const s=t.detail;this.oddsQuery=Object.assign(Object.assign({},this.oddsQuery),s);const o=await this.getOddsData(this.oddsQuery);this.oddsData.filterdOdds=null===(i=null===(e=null==o?void 0:o.items)||void 0===e?void 0:e[0])||void 0===i?void 0:i.odds}catch(t){console.error("Failed to fetch odds data:",t)}finally{this.oddsData=Object.assign(Object.assign({},this.oddsData),{isSearching:!1})}}get formattedTurnover(){var t,e;const i=null===(e=null===(t=this.saleStatisticsInfo)||void 0===t?void 0:t.wagerSegment)||void 0===e?void 0:e.totalSalesCrossDraw;return null==i?"":`€${i?function(t){if(0===t)return"0";if(!t)return"";const e=(t=t.toString()).split(".");return e[0]=e[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),e.join(".")}(i):0}`}render(){var t,i,s;return e("div",{key:"a452341452c423f4497dc49490136d81186f39d5",class:"oddsbomTicketBet",ref:t=>this.stylingContainer=t},e("div",{key:"e6157e120a70b5f01286c39f379909b48b42cdd7",class:"oddsbomTicketBet-banner"},e("div",{key:"53cd51c38956adeaadf8f6c9c1ef0cd49454c973",class:"oddsbomTicketBet-banner-title"},null===(t=this.rawGameConfig)||void 0===t?void 0:t.name),e("div",{key:"6f27e2a768a94701fd4fd0e49b69beef202399ee",class:"oddsbomTicketBet-banner-info"},e("div",{key:"5aeb077902a92af4c8f4137891ae1bb3c29e6e6f",class:"oddsbomTicketBet-banner-info-stoptime"},e("span",{key:"3ebbc2ff952933d63551f1dd82cc1f132513a9f5",style:{fontWeight:"bold",marginRight:"5px"}},Sh("stopAt",this.language)),e("span",{key:"e1f6a4e927a75ef9f4f036fd3eb9fb65f80cb8ff"},this.formattedStopTime(this.gameConfig.stopTime))),e("div",{key:"0ad98e987d5da9e3c2580dc0e46634942ae0d418",class:"oddsbomTicketBet-banner-info-turnover"},e("span",{key:"de2f463b19d848f8bb84f94d9fe1da065246ed33",style:{fontWeight:"bold",marginRight:"5px"}},Sh("turnover",this.language)),e("span",{key:"1d2a975ef0adf7a71219b69747c00335f717dffe"},this.formattedTurnover)))),e("div",{key:"cd2509f8af05db1fc9cee9d12e2e7760383865a5",class:"oddsbomTicketBet-content"},e("div",{key:"6678c2feec0530b3de252857b4a606fe796282a1",class:"oddsbomTicketBet-info"},e("div",{key:"ff2f92502ba18f18d3dbf6f4e4e1180c465cae37",class:"oddsbomTicketBet-info-game"},e("div",{key:"591b3054bbcfc8d78f7de7e2402d79e5b9c38629",class:"oddsbomTicketBet-info--item"},e("div",{key:"10530a1adef3ccedb32ef2af495c7cd8d7867fce",class:"oddsbomTicketBet-info--key"},Sh("stakePerLine",this.language)),e("div",{key:"f6329f6aa83f89a4cbdd95e61dca711a41ef847d",class:"oddsbomTicketBet-info--value"},e("vaadin-select",{key:"50f623f45db1f8039cad01e22c7545a8959ac4e7",items:this.gameConfig.stakes,value:this.gameInfo.stake,"on-value-changed":this.onStakeChange.bind(this),"no-vertical-overlap":!0,noVerticalOverlap:!0})))),e("div",{key:"65b5a68db4e37ba929f77ec7a70ee5f69da92a72",class:"oddsbomTicketBet-info-odds"},e("div",{key:"54000fd4c000b434bc235b23267d2a498a3c9c06",class:"oddsbomTicketBet-info--item"},e("div",{key:"b095f21c9c331a170933b07fbaf8b468e8108f43",class:"oddsbomTicketBet-info--key"},Sh("lowestOdds",this.language)),e("div",{key:"e5f31fbd229ed9e968adc703b552bc1aefb3804a",class:"oddsbomTicketBet-info--value"},this.oddsData.lowest?ct(this.oddsData.lowest):"-")),e("div",{key:"38e80195e6b79ebcda8d30c8b8c47c4c24f4b797",class:"oddsbomTicketBet-info--item"},e("div",{key:"6473ad5dbf3d031b59d47d571aff8347c056690c",class:"oddsbomTicketBet-info--key"},Sh("highestOdds",this.language)),e("div",{key:"dcb1211c33402dbf997ec99710db517d1828cba9",class:"oddsbomTicketBet-info--value"},this.oddsData.highest?ct(this.oddsData.highest):"-")),e("div",{key:"7437feb59d9a3b7a962ee07048704be77ca7083d",class:"oddsbomTicketBet-info---chart"},e("lottery-oddsbom-ticket-button",{key:"014f7ea0d2c044b618b3b6dcf8eddc505d6d59cb",onClick:this.handleOpenOddsChart.bind(this),text:Sh("oddsChart",this.language),variant:"outline",language:this.language,"translation-url":this.translationUrl,"client-styling":this.clientStyling,"client-styling-Url":this.clientStylingUrl})))),e("div",{key:"1219f9c6a5c45e0d81e58c547acd079286477204",class:"oddsbomTicketBet-ticketArea"},e("div",{key:"3540d727eb9144a3bb5f44c119c93d8e82596032",class:"oddsbomTicketBet-ticketArea--left"},this.isLoading?e("div",{class:"loading-wrap"},e("div",{class:"skeleton-content"},e("div",{class:"skeleton-item skeleton-animated",style:{height:"32px",width:"94%"}}),e("div",{class:"skeleton-item skeleton-animated",style:{height:"32px",width:"94%"}}),e("div",{class:"skeleton-item skeleton-animated",style:{height:"32px",width:"94%"}}),e("div",{class:"skeleton-item skeleton-animated",style:{height:"32px",width:"94%"}}),e("div",{class:"skeleton-item skeleton-animated",style:{height:"32px",width:"94%"}}),e("div",{class:"skeleton-item skeleton-animated",style:{height:"32px",width:"94%"}}),e("div",{class:"skeleton-item skeleton-animated",style:{height:"32px",width:"94%"}}))):e("div",null,e("lottery-oddsbom-ticket-board",{ticketBoardInfo:this.ticketBoardInfo,addSelectionConfig:this.addSelectionConfig,language:this.language,"translation-url":this.translationUrl,"client-styling":this.clientStyling,"client-styling-Url":this.clientStylingUrl}))),e("div",{key:"e861df8b8815203f46aae4e48beb5baa4f35d431",class:"oddsbomTicketBet-ticketArea--right"},e("div",{key:"02e6942f0e299d5d6ead74786194a5cafbf1e594",class:"oddsbomTicketBet-ticketArea--right-title"},Sh("orderSummary",this.language)),e("div",{key:"5394435b91a1e738617b8da518e4b8f292fb0f67",class:"oddsbomTicketBet-ticketArea--right-info"},e("div",{key:"08af33121f5e7891e6cbe090fc1da57afb5b838e",class:"oddsbomTicketBet-ticketArea--right-ticketCount"},`${Sh("ticket",this.language)}: ${this.gameInfo.lines} ${Sh("lines",this.language)} x ${this.gameInfo.stake} ${Sh("euro",this.language)}`," "),e("div",{key:"e2f69a26d49e4d473a3240dceca34fed9ae1ecb5",class:"oddsbomTicketBet-ticketArea--right-delimiter"}),e("div",{key:"1d9863afc24a5244e0748173425e979bd605c7fc",class:"oddsbomTicketBet-ticketArea--right-ticketTotal"},`${Sh("total",this.language)}: ${Number(this.gameInfo.stake)*this.gameInfo.lines} ${Sh("euro",this.language)}`),e("div",{key:"7f819287fd6ec22caf027fa748188a5c5730d4fd",class:"oddsbomTicketBet-ticketArea--right-selection"},e("lottery-oddsbom-ticket-selection",{key:"5b73c411433b0224b6b5d9295715ce073e404703",ticketBoardInfo:this.ticketBoardInfo,language:this.language}))),e("div",{key:"ebb777f1c1dabbaaba308960fae8563fcd07cf2c",class:"oddsbomTicketBet-ticketArea--right-submitBtn"},e("lottery-oddsbom-ticket-button",{key:"b2e949540aadf04f9e7f2d8bf9deac8a326e0c1d",text:Sh("submit",this.language),variant:"primary",size:"large",disabled:!this.canSubmit,loading:this.isSubmitLoading,onClick:this.handleSubmit.bind(this),language:this.language,"translation-url":this.translationUrl,"client-styling":this.clientStyling,"client-styling-Url":this.clientStylingUrl}))))),e("lottery-tipping-dialog",{key:"9e8782c15ea827ffd3398cab2eddeceb8af70568",dialogTitle:this.dialogConfig.title,visible:this.dialogConfig.visible,onCancel:this.handleCloseOddsChart.bind(this),showFooter:!1,width:this.oddsChartDialogWidth},e("lottery-oddsbom-oddschart",{key:"3fcb642569764819b0d86e630f314c77532d9c70",ref:t=>this.childRef=t,matchInfo:this.matchInfo,oddsInfo:null===(i=this.oddsInfo)||void 0===i?void 0:i.items,curPage:this.oddsQuery.offset/this.oddsQuery.limit,total:null===(s=this.oddsInfo)||void 0===s?void 0:s.total,limit:this.oddsQuery.limit,offset:this.oddsQuery.offset,isLoading:this.isLoadingOdds,isSearching:this.oddsData.isSearching,filterdOdds:this.oddsData.filterdOdds,language:this.language,"translation-url":this.translationUrl,"client-styling":this.clientStyling,"client-styling-Url":this.clientStylingUrl})))}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],ticketBoardInfo:["handleTicketBoardInfoChange"],canSubmit:["handleCanSubmitChange"]}}};Ih.style=":host {\n --vaadin-input-field-background: var(--emw--color-gray-50, #f5f5f5);\n --vaadin-input-field-border-color: var(--emw--color-gray-100, #e6e6e6);\n --vaadin-input-field-invalid-hover-highlight: var(--emw--color-gray-50, #f5f5f5);\n --vaadin-input-field-hover-highlight: var(--emw--color-gray-50, #f5f5f5);\n --vaadin-input-field-border-width: 1px;\n}\n\n.oddsbomTicketBet {\n container-type: inline-size;\n background-color: var(--emw--color-background, #fff);\n}\n.oddsbomTicketBet-banner {\n background-color: var(--emw--color-primary, #0d196e);\n height: 52px;\n padding: 0 12px;\n display: flex;\n justify-content: center;\n align-items: center;\n position: relative;\n color: var(--emw--color-background, #fff);\n}\n.oddsbomTicketBet-banner-title {\n font-size: 22px;\n font-style: italic;\n font-weight: bold;\n}\n.oddsbomTicketBet-banner-info {\n position: absolute;\n right: 20px;\n display: flex;\n gap: 16px;\n align-items: center;\n}\n.oddsbomTicketBet-banner-info-stoptime, .oddsbomTicketBet-banner-info-turnover {\n color: var(--emw--color-typography-inverse, #fff);\n background-color: var(--emw--color-secondary, #405c8b);\n height: 36px;\n line-height: 36px;\n border-radius: 4px;\n padding: 0 8px;\n font-size: 16px;\n font-weight: bold;\n}\n.oddsbomTicketBet-ticketArea {\n width: 100%;\n margin: 0 auto;\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n padding: 18px 0;\n}\n.oddsbomTicketBet-ticketArea--left {\n max-width: 60%;\n min-width: 50%;\n margin-bottom: 12px;\n}\n.oddsbomTicketBet-ticketArea--right {\n width: 40%;\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n.oddsbomTicketBet-ticketArea--right-title {\n font-size: 20px;\n font-weight: bold;\n color: var(--emw--color-typography, #000);\n}\n.oddsbomTicketBet-ticketArea--right-info {\n width: 96%;\n padding-left: 4%;\n}\n.oddsbomTicketBet-ticketArea--right-ticketCount, .oddsbomTicketBet-ticketArea--right-ticketTotal {\n height: 40px;\n line-height: 40px;\n font-size: 18px;\n user-select: none;\n color: var(--emw--color-typography, #000);\n}\n.oddsbomTicketBet-ticketArea--right-ticketCount {\n margin-top: 40px;\n}\n.oddsbomTicketBet-ticketArea--right-delimiter {\n width: 100%;\n border: 1px solid var(--emw--color-gray-100, #e6e6e6);\n}\n.oddsbomTicketBet-ticketArea--right-submitBtn {\n display: flex;\n align-items: center;\n margin-top: 20px;\n}\n.oddsbomTicketBet-info {\n margin-left: 5%;\n padding: 18px;\n}\n.oddsbomTicketBet-info-game, .oddsbomTicketBet-info-odds {\n display: flex;\n flex-wrap: wrap;\n}\n.oddsbomTicketBet-info-game {\n gap: 24px;\n margin-bottom: 20px;\n}\n.oddsbomTicketBet-info-odds {\n gap: 26px;\n}\n.oddsbomTicketBet-info--item {\n display: flex;\n align-items: center;\n}\n.oddsbomTicketBet-info--key {\n font-weight: bold;\n margin-right: 12px;\n color: var(--emw--color-typography, #000);\n}\n.oddsbomTicketBet-info--value {\n color: var(--emw--color-typography, #000);\n}\n@container (max-width: 430px) {\n .oddsbomTicketBet-banner-title {\n font-size: 20px;\n position: absolute;\n left: 6px;\n }\n .oddsbomTicketBet-banner-info {\n right: 4px;\n gap: 4px;\n }\n .oddsbomTicketBet-banner-info-stoptime, .oddsbomTicketBet-banner-info-turnover {\n height: 32px;\n line-height: 32px;\n font-weight: bold;\n font-size: 16px;\n }\n .oddsbomTicketBet-ticketArea {\n width: 100%;\n }\n .oddsbomTicketBet-ticketArea--left {\n max-width: 100%;\n width: 100%;\n }\n .oddsbomTicketBet-ticketArea--right {\n width: 100%;\n }\n .oddsbomTicketBet-ticketArea--right-info {\n width: 90%;\n padding-left: unset;\n }\n}\n@container (min-width: 1680px) {\n .oddsbomTicketBet-ticketArea {\n width: 80%;\n }\n .oddsbomTicketBet-ticketArea--left {\n width: 50%;\n }\n .oddsbomTicketBet-ticketArea--right {\n width: 50%;\n }\n .oddsbomTicketBet-info {\n margin-left: 10%;\n }\n}\n\n.loading-wrap {\n border: 1px solid var(--emw--color-gray-100, #e6e6e6);\n border-radius: 4px;\n padding: 20px 0;\n}\n\n.skeleton-content {\n display: flex;\n flex-direction: column;\n gap: 29px;\n align-items: center;\n}\n\n.skeleton-item {\n background: var(--emw--color-gray-50, #f5f5f5);\n border-radius: 4px;\n}\n\n.skeleton-animated {\n animation: skeleton-shimmer 1.5s infinite linear;\n background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 37%, #f0f0f0 63%);\n background-size: 200% 100%;\n}\n\n@keyframes skeleton-shimmer {\n to {\n background-position: 100% 0;\n }\n}";export{Ih as L,ut as M,s as a,o as b,at as c,dt as d,ct as f,zh as g,Th as r,i as s,Sh as t}
|
|
6657
|
+
`}static get is(){return"vaadin-tabs"}}Ct(kh);const Ch=["ro","en","fr","ar","hr","zh"],Ah={en:{noTicketBoard:"No ticket board available.",selectionCleared:"Your selection has been cleared.",clearAll:"Clear All",stopAt:"Stop at",turnover:"Turnover: ",pleaseFillIn:"Please fill in all the selection input!",fillIn:"Fill in",noBets:"Sorry. No bets have been placed so far. Check back later!",search:"Search",clear:"Clear",oddsChart:"Odds Chart",ticketSuccess:"Ticket purchased successfully.",stakePerLine:"Stake per Line:",lowestOdds:"Lowest Odds:",highestOdds:"Highest Odds:",orderSummary:"ORDER SUMMARY",ticket:"Ticket",lines:"Lines",line:"Line",total:"Total",submit:"Submit",loading:"Loading",enterValidNumber:"Please enter a valid number.",enterNumberBetween:"Please enter a number between {min} and {max}.",numberAlreadySelected:"This number has already been selected.",enterScoreUpTo:"Please enter the score (Up to {maxScore})",myChoices:"My Choices",teams:"Teams",scores:"Scores",euro:"Euro",cancel:"Cancel",confirm:"Confirm"},ro:{},fr:{},ar:{},hr:{}},Sh=(t,e,i)=>{const s=e;let o=Ah[void 0!==s&&Ch.includes(s)?s:"en"][t];return i&&Object.keys(i).forEach((t=>{o=o.replace(`{${t}}`,i[t])})),o},zh=t=>{Object.keys(t).forEach((e=>{for(let i in t[e])Ah[e][i]=t[e][i]}))},Th=async t=>{if(t)try{const e=await fetch(t);if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);const i=await e.json();zh(i)}catch(t){console.error("Failed to fetch or parse translations from URL:",t)}},Ih=class{constructor(e){t(this,e),this.onStakeChange=t=>{this.gameInfo=Object.assign(Object.assign({},this.gameInfo),{stake:t.detail.value})},this.generateSelection=()=>this.ticketBoardInfo.map((t=>{const e=t.addSelections[0].map((t=>String(t))),i=t.selections[0].filter((t=>t.isSelected)).map((t=>String(t.text))).concat(e),s=t.addSelections[1].map((t=>String(t))),o=((t,e)=>{const i=[];for(const s of t)for(const t of e)i.push(`${s}:${t}`);return i})(i,t.selections[1].filter((t=>t.isSelected)).map((t=>String(t.text))).concat(s));return[[...o]]})),this.endpoint=void 0,this.gameId=void 0,this.sessionId=void 0,this.drawId=void 0,this.playerId="",this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.translationUrl="",this.language="en",this.isLoading=!1,this.isLoadingOdds=!1,this.isSubmitLoading=!1,this.matchInfo=void 0,this.ticketBoardInfo=[],this.gameConfig={minScore:0,maxScore:10,minCount:1,maxCount:10,stopTime:"",gameBackEndId:"",stakes:[{label:"1",value:"1"}]},this.addSelectionConfig={needAddMoreBtn:!1,maxOverScore:0,maxScore:0},this.gameInfo={stake:1,quickPick:2,lines:0},this.dialogConfig={title:"",visible:!1},this.oddsData={highest:"",lowest:"",filterdOdds:"",isSearching:!1},this.oddsInfo={count:0,items:[],total:0},this.oddsQuery={limit:10,offset:0,ascending:!0},this.saleStatisticsInfo={}}handleClientStylingChange(t,e){t!=e&&i(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&s(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&o(this.stylingContainer,`${this.mbSource}.Style`)}componentWillLoad(){this.translationUrl&&Th(this.translationUrl),this.initData()}async initData(){await this.fetchGameData(),await this.fetchOddsData()}async fetchGameData(){this.isLoading=!0;try{await this.getGameConfig(),await this.getDrawEventData(),this.initTicketBoard()}catch(t){}finally{this.isLoading=!1}}async fetchOddsData(){this.isLoadingOdds=!0;try{const t=await this.getOddsData({ascending:!0,limit:10,offset:0});this.oddsData.lowest=t.minItem.odds,this.oddsData.highest=t.maxItem.odds,this.oddsInfo=t}catch(t){}finally{this.isLoadingOdds=!1}}async componentDidLoad(){this.stylingContainer&&(this.mbSource&&o(this.stylingContainer,`${this.mbSource}.Style`),this.clientStyling&&i(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&s(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}get canSubmit(){return this.ticketBoardInfo.every((t=>t.selections.every(((e,i)=>e.filter((t=>t.isSelected)).length+t.addSelections[i].length>=this.gameConfig.minCount))))}get oddsChartDialogWidth(){var t;return 0==(null===(t=this.oddsInfo)||void 0===t?void 0:t.total)?"480px":this.ticketBoardInfo.length<=2?"360px":180*this.ticketBoardInfo.length+48+"px"}formattedStopTime(t){let e="";return t?(e=lt({date:t,format:"dd/MM/yyyy HH:mm"}),function(t){return a(1,arguments),function(t,e){a(2,arguments);var i=c(t),s=c(e);return i.getTime()===s.getTime()}(t,Date.now())}(new Date(t))&&(e=lt({date:t,format:"HH:mm"})),e):e}updateBulletDisabledState(t,e,i,s){const o=t[e],r=o.selections[i],n=o.addSelections[i],a=r.filter((t=>t.isSelected)).length+n.length,l=r.map((t=>t.isSelected?t:Object.assign(Object.assign({},t),{isDisabled:a===s})));return t[e].selections[i]=l,t}getMatchCombinationCount(t){return(t.selections[0].filter((t=>t.isSelected)).length+t.addSelections[0].length)*(t.selections[1].filter((t=>t.isSelected)).length+t.addSelections[1].length)}calculateTotalLines(){return this.canSubmit?this.ticketBoardInfo.reduce(((t,e)=>t*this.getMatchCombinationCount(e)),1):0}updateLines(){const t=this.calculateTotalLines();this.gameInfo=Object.assign(Object.assign({},this.gameInfo),{lines:t})}handleTicketBoardInfoChange(){this.updateLines()}handleCanSubmitChange(){this.updateLines()}initTicketBoard(){const{minScore:t,maxScore:e}=this.gameConfig;e-t+1>10&&(this.addSelectionConfig.needAddMoreBtn=!0,this.addSelectionConfig.maxOverScore=t+10,this.addSelectionConfig.maxScore=e),this.ticketBoardInfo=this.matchInfo.map((t=>({matchId:t.eventId,matchName:t.eventName,minScore:0,maxScore:0,selections:[[],[]],addSelections:[[],[]]}))),this.ticketBoardInfo=this.ticketBoardInfo.map((i=>{let s=new Array(e-t+1).fill(0).map(((e,i)=>({text:i+t,idx:i,isSelected:!1,isDisabled:!1,isAddMoreBtn:!1})));return this.addSelectionConfig.needAddMoreBtn&&(s=s.slice(0,10),s.push({text:this.addSelectionConfig.maxOverScore,idx:-1,isSelected:!1,isDisabled:!1,isAddMoreBtn:!0})),Object.assign(Object.assign({},i),{minScore:t,maxScore:e,selections:[s,s]})}))}async getGameConfig(){var t,e,i,s,o,r,n,a,l,h,d,c;try{const u=await nt(`${this.endpoint}/games/${this.gameId}`,"GET");this.rawGameConfig=u,console.log("in getgameconfig",u,this.rawGameConfig);const{minRow:p=0,maxRow:m=0}=null!==(r=null===(o=null===(s=null===(i=null===(e=null===(t=null==u?void 0:u.rules)||void 0===t?void 0:t.poolGame)||void 0===e?void 0:e.outcomeRanges)||void 0===i?void 0:i[0])||void 0===s?void 0:s.bettingType)||void 0===o?void 0:o[0])&&void 0!==r?r:{},{minCount:v=0,maxCount:f=0}=null!==(c=null===(d=null===(h=null===(l=null===(a=null===(n=null==u?void 0:u.rules)||void 0===n?void 0:n.poolGame)||void 0===a?void 0:a.outcomeRanges)||void 0===l?void 0:l[0])||void 0===h?void 0:h.selectRule)||void 0===d?void 0:d[0])&&void 0!==c?c:{},b=p,g=m;this.gameConfig=Object.assign(Object.assign({},this.gameConfig),{minScore:b,maxScore:g,minCount:v,maxCount:f,gameBackEndId:u.type}),this.gameConfig.stakes=u.rules.stakes.map((t=>({value:t.value,label:t.value}))),this.gameConfig.stopTime=u.currentDraw.wagerCloseTime,this.dialogConfig.title=`${u.name} - ${Sh("oddsChart",this.language)}`,this.updateSaleStatistics()}catch(t){}}async updateSaleStatistics(){var t;this.saleStatisticsInfo=await async function({endpoint:t,gameId:e,drawId:i}){try{return await nt(`${t}/games/${e}/draws/${i}/saleStatistics`)}catch(t){return Promise.reject(t)}}({endpoint:this.endpoint,gameId:null===(t=this.rawGameConfig)||void 0===t?void 0:t.type,drawId:this.drawId})}async getDrawEventData(){try{const t=await nt(`${this.endpoint}/poolgames/${this.rawGameConfig.type}/draws/${this.drawId}/matchConfig`,"GET");this.matchInfo=t}catch(t){}}handleOddsBomBulletGroupToggle(t){const{bulletSelctionArr:e,matchIdx:i,selectionIdx:s}=t.detail;let o=[...this.ticketBoardInfo];o[i].selections[s]=e,o=this.updateBulletDisabledState(o,i,s,this.gameConfig.maxCount),this.ticketBoardInfo=[...o]}handleOddsBomBulletAddedByMoreBtnDelete(t){const{delText:e,matchIdx:i,selectionIdx:s}=t.detail;let o=[...this.ticketBoardInfo];o[i].addSelections[s]=o[i].addSelections[s].filter((t=>t!==e)),o=this.updateBulletDisabledState(o,i,s,this.gameConfig.maxCount),this.ticketBoardInfo=[...o]}handleOddsBomAddMoreToMatch(t){const{matchIdx:e,selectionIdx:i,value:s}=t.detail;let o=[...this.ticketBoardInfo];const r=[...o[e].addSelections[i],s].sort(((t,e)=>t-e));o[e].addSelections[i]=r,o=this.updateBulletDisabledState(o,e,i,this.gameConfig.maxCount),this.ticketBoardInfo=[...o]}handleOddsBomBoardClear(){this.initTicketBoard()}handleOddsChartFillIn(t){const{fillInNums:e}=t.detail,i=e.map((t=>t.split(":")[0])).map((t=>Number(t))),s=e.map((t=>t.split(":")[1])).map((t=>Number(t)));let o=[...this.ticketBoardInfo];o=this.ticketBoardInfo.map(((t,e)=>{let o=[...t.addSelections[0]],r=[...t.addSelections[1]];return i[e]>=this.addSelectionConfig.maxOverScore&&(o=[...o,i[e]]),s[e]>=this.addSelectionConfig.maxOverScore&&(r=[...r,s[e]]),Object.assign(Object.assign({},t),{selections:[t.selections[0].map((t=>i[e]==Number(t.text)?Object.assign(Object.assign({},t),{isSelected:!0}):t)),t.selections[1].map((t=>s[e]==Number(t.text)?Object.assign(Object.assign({},t),{isSelected:!0}):t))],addSelections:[o,r]})})),this.ticketBoardInfo=[...o]}async handleSubmit(){var t,e,i,s;const o=this.generateSelection(),r={playerId:this.playerId,tickets:[{startingDrawId:null===(e=null===(t=this.rawGameConfig)||void 0===t?void 0:t.currentDraw)||void 0===e?void 0:e.id,addon:!1,amount:String(Number(this.gameInfo.stake)*this.gameInfo.lines),currency:this.rawGameConfig.rules.stakes[0].currency,selection:[{poolGameSelections:o,multiplier:!1,quickPick:!1,betType:this.rawGameConfig.rules.poolGame.playTypes[0].betTypeId,betName:this.rawGameConfig.rules.betTypes[0].name,stake:Number(this.gameInfo.stake)}],multiplier:!1,multipierNum:1,quickPick:!1,gameName:this.rawGameConfig.name}]};try{this.isSubmitLoading=!0;const t=await nt(`${this.endpoint}/tickets`,"POST",r,{Authorization:`Bearer ${this.sessionId}`});at("Error"===t.state?{message:null!==(s=null===(i=null==t?void 0:t.errorDetail)||void 0===i?void 0:i.message)&&void 0!==s?s:"Fail to purchase ticket.",theme:"error"}:{message:Sh("ticketSuccess",this.language),theme:"success"}),this.initTicketBoard()}catch(t){console.log(t),at({message:t.message,theme:"error"})}finally{this.isSubmitLoading=!1,this.updateSaleStatistics(),this.fetchOddsData()}}async getOddsData(t){var e;try{const{drawId:i}=this,s=Object.assign({gameId:this.rawGameConfig.type,drawId:i,bettingType:null!==(e=this.rawGameConfig.rules.poolGame.playTypes[0].bettingType)&&void 0!==e?e:""},t);return await nt(`${this.endpoint}/poolgames/statistic/realtime/odds${function(t){const e={};Object.entries(t).forEach((([t,i])=>{ht(i,!0)||(e[t]=i)}));const i=Object.entries(e).map((([t,e])=>`${encodeURIComponent(t)}=${encodeURIComponent(e)}`)).join("&");return i?`?${i}`:""}(s)}`,"GET")}catch(t){}}handleOpenOddsChart(){this.dialogConfig=Object.assign(Object.assign({},this.dialogConfig),{visible:!0}),this.fetchOddsData(),setTimeout((()=>{this.childRef?this.childRef.initOddsChart():console.warn("childRef is not defined")}),0)}handleCloseOddsChart(){var t;this.dialogConfig=Object.assign(Object.assign({},this.dialogConfig),{visible:!1}),null===(t=this.childRef)||void 0===t||t.closeOddsChart(),this.oddsQuery=Object.assign(Object.assign({},this.oddsQuery),{limit:10,offset:0,ascending:!0})}async handleOddsQueryChange(t){this.isLoadingOdds=!0;try{const e=t.detail;this.oddsQuery=Object.assign(Object.assign({},this.oddsQuery),e),this.oddsInfo=await this.getOddsData(this.oddsQuery)}catch(t){console.error("Failed to fetch odds data:",t)}finally{this.isLoadingOdds=!1}}async handleOddsQueryLineChange(t){var e,i;this.oddsData=Object.assign(Object.assign({},this.oddsData),{isSearching:!0});try{const s=t.detail;this.oddsQuery=Object.assign(Object.assign({},this.oddsQuery),s);const o=await this.getOddsData(this.oddsQuery);this.oddsData.filterdOdds=null===(i=null===(e=null==o?void 0:o.items)||void 0===e?void 0:e[0])||void 0===i?void 0:i.odds}catch(t){console.error("Failed to fetch odds data:",t)}finally{this.oddsData=Object.assign(Object.assign({},this.oddsData),{isSearching:!1})}}get formattedTurnover(){var t,e,i;const s=null!==(i=null===(e=null===(t=this.saleStatisticsInfo)||void 0===t?void 0:t.wagerSegment)||void 0===e?void 0:e.totalSalesCrossDraw)&&void 0!==i?i:0;return null==s?"":`€${s?function(t){if(0===t)return"0";if(!t)return"";const e=(t=t.toString()).split(".");return e[0]=e[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),e.join(".")}(s):0}`}render(){var t,i,s;return e("div",{key:"e0c91f7c6103847891acd8a99f7156afbc467338",class:"oddsbomTicketBet",ref:t=>this.stylingContainer=t},e("div",{key:"6dbb623ec69d3bca3df5bbcb5bcff597cd347a44",class:"oddsbomTicketBet-banner"},e("div",{key:"ac1927520f94dc59d632066f160bc1a690ea6533",class:"oddsbomTicketBet-banner-title"},null===(t=this.rawGameConfig)||void 0===t?void 0:t.name),e("div",{key:"eb15ae5a64e037c5074fb75f5f16483e42ea5237",class:"oddsbomTicketBet-banner-info"},e("div",{key:"cb57e9125ab08e8da5bda81775a46fd69f075123",class:"oddsbomTicketBet-banner-info-stoptime"},e("span",{key:"23058038090511080e00a6bfe6de05fdfba569aa",style:{fontWeight:"bold",marginRight:"5px"}},Sh("stopAt",this.language)),e("span",{key:"9bf14b46e60a3df2269304369deab9304236fef9"},this.formattedStopTime(this.gameConfig.stopTime))),e("div",{key:"6d2f58084da38c5176fe29b88ca3f6e38e66f097",class:"oddsbomTicketBet-banner-info-turnover"},e("span",{key:"46aab556141b33ce57d3a7b874a510436ec348fd",style:{fontWeight:"bold",marginRight:"5px"}},Sh("turnover",this.language)),e("span",{key:"f13a4a62b78b3abad07f374989422cb65795eadc"},this.formattedTurnover)))),e("div",{key:"f83442cbffb8829e6b0788a15170ad57d68ac60f",class:"oddsbomTicketBet-content"},e("div",{key:"13c1e9058294242fc0af2ec5dc9a0e65c31ea198",class:"oddsbomTicketBet-info"},e("div",{key:"91f909fcce6c2068ef5b937d4f7c0f175de90286",class:"oddsbomTicketBet-info-game"},e("div",{key:"c4267a20a992e79b898b48904c786963d9fac4a9",class:"oddsbomTicketBet-info--item"},e("div",{key:"ec523777186bb88a8209ed292a4d552fa04f59df",class:"oddsbomTicketBet-info--key"},Sh("stakePerLine",this.language)),e("div",{key:"fb1e9819a0677bee431fe41e896909a6185824f9",class:"oddsbomTicketBet-info--value"},e("vaadin-select",{key:"ac7d4cdbbd7e2ad1319a21c65aa3689ca1a69c33",items:this.gameConfig.stakes,value:this.gameInfo.stake,"on-value-changed":this.onStakeChange.bind(this),"no-vertical-overlap":!0,noVerticalOverlap:!0})))),e("div",{key:"d875f213bb2e932890999a08399992e39e50421d",class:"oddsbomTicketBet-info-odds"},e("div",{key:"771cca886d59db6dbddb5c7fd78936ca103638d6",class:"oddsbomTicketBet-info--item"},e("div",{key:"2802024790a20ec97e749a4930bddffd3712fdac",class:"oddsbomTicketBet-info--key"},Sh("lowestOdds",this.language)),e("div",{key:"4161f551b7ae4c292ed2b3f9a5021f72970c1c91",class:"oddsbomTicketBet-info--value"},this.oddsData.lowest?ct(this.oddsData.lowest):"-")),e("div",{key:"02c36ea62b6173778386a8de7ab9b0466d614819",class:"oddsbomTicketBet-info--item"},e("div",{key:"0a9337ce93656aaa52a51af29930d25f81019e52",class:"oddsbomTicketBet-info--key"},Sh("highestOdds",this.language)),e("div",{key:"8477c83181bc50d78bd8a1c527d82fb5e61395ac",class:"oddsbomTicketBet-info--value"},this.oddsData.highest?ct(this.oddsData.highest):"-")),e("div",{key:"fc1f04efb25e5670d9967b64ce7ed6c6a02517c4",class:"oddsbomTicketBet-info---chart"},e("lottery-oddsbom-ticket-button",{key:"7ae3257b42f1a8f8421f2091c6c496a1d67c02aa",onClick:this.handleOpenOddsChart.bind(this),text:Sh("oddsChart",this.language),variant:"outline",language:this.language,"translation-url":this.translationUrl,"client-styling":this.clientStyling,"client-styling-Url":this.clientStylingUrl})))),e("div",{key:"68c62cd73df569fd8611922722a3c6bef431c7b1",class:"oddsbomTicketBet-ticketArea"},e("div",{key:"a57e94a4f5bb99871efa7414cd2376e7bede6461",class:"oddsbomTicketBet-ticketArea--left"},this.isLoading?e("div",{class:"loading-wrap"},e("div",{class:"skeleton-content"},e("div",{class:"skeleton-item skeleton-animated",style:{height:"32px",width:"94%"}}),e("div",{class:"skeleton-item skeleton-animated",style:{height:"32px",width:"94%"}}),e("div",{class:"skeleton-item skeleton-animated",style:{height:"32px",width:"94%"}}),e("div",{class:"skeleton-item skeleton-animated",style:{height:"32px",width:"94%"}}),e("div",{class:"skeleton-item skeleton-animated",style:{height:"32px",width:"94%"}}),e("div",{class:"skeleton-item skeleton-animated",style:{height:"32px",width:"94%"}}),e("div",{class:"skeleton-item skeleton-animated",style:{height:"32px",width:"94%"}}))):e("div",null,e("lottery-oddsbom-ticket-board",{ticketBoardInfo:this.ticketBoardInfo,addSelectionConfig:this.addSelectionConfig,language:this.language,"translation-url":this.translationUrl,"client-styling":this.clientStyling,"client-styling-Url":this.clientStylingUrl}))),e("div",{key:"a664bc2f98dddf78761e3ed371da7c63ba680e43",class:"oddsbomTicketBet-ticketArea--right"},e("div",{key:"c0116bf8af9de72764a08b0f71213ac0f2cf4e0f",class:"oddsbomTicketBet-ticketArea--right-title"},Sh("orderSummary",this.language)),e("div",{key:"18ee3bf1dd7dcb33e61c7021833e75e2b2fd7025",class:"oddsbomTicketBet-ticketArea--right-info"},e("div",{key:"440fe4c43292b26da32bb5fae68d76bd00eaff68",class:"oddsbomTicketBet-ticketArea--right-ticketCount"},`${Sh("ticket",this.language)}: ${this.gameInfo.lines} ${Sh(this.gameInfo.lines>1?"lines":"line",this.language)} x ${this.gameInfo.stake} ${Sh("euro",this.language)}`," "),e("div",{key:"127c81f2fa786cb9516bee33d6ceebfbae5d1146",class:"oddsbomTicketBet-ticketArea--right-delimiter"}),e("div",{key:"5986f0168e5d3b621eaf20e9d8dc3a2137be6a2f",class:"oddsbomTicketBet-ticketArea--right-ticketTotal"},`${Sh("total",this.language)}: ${Number(this.gameInfo.stake)*this.gameInfo.lines} ${Sh("euro",this.language)}`),e("div",{key:"7177071da1bf81bb4b0ae3aebba1b2fb11abc0cf",class:"oddsbomTicketBet-ticketArea--right-selection"},e("lottery-oddsbom-ticket-selection",{key:"36e476518f29ba8450312c1160400b18f28c06ab",ticketBoardInfo:this.ticketBoardInfo,language:this.language}))),e("div",{key:"60cb5cb2e8bbf3830713db79caba68293db74a37",class:"oddsbomTicketBet-ticketArea--right-submitBtn"},e("lottery-oddsbom-ticket-button",{key:"1f5ad8aedfbe86745ed45d5d0572e42c1ad4522b",text:Sh("submit",this.language),variant:"primary",size:"large",disabled:!this.canSubmit,loading:this.isSubmitLoading,onClick:this.handleSubmit.bind(this),language:this.language,"translation-url":this.translationUrl,"client-styling":this.clientStyling,"client-styling-Url":this.clientStylingUrl}))))),e("lottery-tipping-dialog",{key:"90733558816f8ad1a255a5389be155d90d31d736",dialogTitle:this.dialogConfig.title,visible:this.dialogConfig.visible,onCancel:this.handleCloseOddsChart.bind(this),showFooter:!1,width:this.oddsChartDialogWidth},e("lottery-oddsbom-oddschart",{key:"2d7188cddc3debae2581be2bb99cea02277f4019",ref:t=>this.childRef=t,matchInfo:this.matchInfo,oddsInfo:null===(i=this.oddsInfo)||void 0===i?void 0:i.items,curPage:this.oddsQuery.offset/this.oddsQuery.limit,total:null===(s=this.oddsInfo)||void 0===s?void 0:s.total,limit:this.oddsQuery.limit,offset:this.oddsQuery.offset,isLoading:this.isLoadingOdds,isSearching:this.oddsData.isSearching,filterdOdds:this.oddsData.filterdOdds,language:this.language,"translation-url":this.translationUrl,"client-styling":this.clientStyling,"client-styling-Url":this.clientStylingUrl})))}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],ticketBoardInfo:["handleTicketBoardInfoChange"],canSubmit:["handleCanSubmitChange"]}}};Ih.style=":host {\n --vaadin-input-field-background: var(--emw--color-gray-50, #f5f5f5);\n --vaadin-input-field-border-color: var(--emw--color-gray-100, #e6e6e6);\n --vaadin-input-field-invalid-hover-highlight: var(--emw--color-gray-50, #f5f5f5);\n --vaadin-input-field-hover-highlight: var(--emw--color-gray-50, #f5f5f5);\n --vaadin-input-field-border-width: 1px;\n}\n\n.oddsbomTicketBet {\n container-type: inline-size;\n background-color: var(--emw--color-background, #fff);\n}\n.oddsbomTicketBet-banner {\n background-color: var(--emw--color-primary, #0d196e);\n height: 52px;\n padding: 0 12px;\n display: flex;\n justify-content: center;\n align-items: center;\n position: relative;\n color: var(--emw--color-background, #fff);\n}\n.oddsbomTicketBet-banner-title {\n font-size: 22px;\n font-style: italic;\n font-weight: bold;\n}\n.oddsbomTicketBet-banner-info {\n position: absolute;\n right: 20px;\n display: flex;\n gap: 16px;\n align-items: center;\n}\n.oddsbomTicketBet-banner-info-stoptime, .oddsbomTicketBet-banner-info-turnover {\n color: var(--emw--color-typography-inverse, #fff);\n background-color: var(--emw--color-secondary, #405c8b);\n height: 36px;\n line-height: 36px;\n border-radius: 4px;\n padding: 0 8px;\n font-size: 16px;\n font-weight: bold;\n}\n.oddsbomTicketBet-ticketArea {\n width: 100%;\n margin: 0 auto;\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n padding: 18px 0;\n}\n.oddsbomTicketBet-ticketArea--left {\n max-width: 60%;\n min-width: 50%;\n margin-bottom: 12px;\n}\n.oddsbomTicketBet-ticketArea--right {\n width: 40%;\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n.oddsbomTicketBet-ticketArea--right-title {\n font-size: 20px;\n font-weight: bold;\n color: var(--emw--color-typography, #000);\n}\n.oddsbomTicketBet-ticketArea--right-info {\n width: 96%;\n padding-left: 4%;\n}\n.oddsbomTicketBet-ticketArea--right-ticketCount, .oddsbomTicketBet-ticketArea--right-ticketTotal {\n height: 40px;\n line-height: 40px;\n font-size: 18px;\n user-select: none;\n color: var(--emw--color-typography, #000);\n}\n.oddsbomTicketBet-ticketArea--right-ticketCount {\n margin-top: 40px;\n}\n.oddsbomTicketBet-ticketArea--right-delimiter {\n width: 100%;\n border: 1px solid var(--emw--color-gray-100, #e6e6e6);\n}\n.oddsbomTicketBet-ticketArea--right-submitBtn {\n display: flex;\n align-items: center;\n margin-top: 20px;\n}\n.oddsbomTicketBet-info {\n margin-left: 5%;\n padding: 18px;\n}\n.oddsbomTicketBet-info-game, .oddsbomTicketBet-info-odds {\n display: flex;\n flex-wrap: wrap;\n}\n.oddsbomTicketBet-info-game {\n gap: 24px;\n margin-bottom: 20px;\n}\n.oddsbomTicketBet-info-odds {\n gap: 26px;\n}\n.oddsbomTicketBet-info--item {\n display: flex;\n align-items: center;\n}\n.oddsbomTicketBet-info--key {\n font-weight: bold;\n margin-right: 12px;\n color: var(--emw--color-typography, #000);\n}\n.oddsbomTicketBet-info--value {\n color: var(--emw--color-typography, #000);\n}\n@container (max-width: 430px) {\n .oddsbomTicketBet-banner-title {\n font-size: 20px;\n position: absolute;\n left: 6px;\n }\n .oddsbomTicketBet-banner-info {\n right: 4px;\n gap: 4px;\n }\n .oddsbomTicketBet-banner-info-stoptime, .oddsbomTicketBet-banner-info-turnover {\n height: 32px;\n line-height: 32px;\n font-weight: bold;\n font-size: 16px;\n }\n .oddsbomTicketBet-ticketArea {\n width: 100%;\n }\n .oddsbomTicketBet-ticketArea--left {\n max-width: 100%;\n width: 100%;\n }\n .oddsbomTicketBet-ticketArea--right {\n width: 100%;\n }\n .oddsbomTicketBet-ticketArea--right-info {\n width: 90%;\n padding-left: unset;\n }\n}\n@container (min-width: 1680px) {\n .oddsbomTicketBet-ticketArea {\n width: 80%;\n }\n .oddsbomTicketBet-ticketArea--left {\n width: 50%;\n }\n .oddsbomTicketBet-ticketArea--right {\n width: 50%;\n }\n .oddsbomTicketBet-info {\n margin-left: 10%;\n }\n}\n\n.loading-wrap {\n border: 1px solid var(--emw--color-gray-100, #e6e6e6);\n border-radius: 4px;\n padding: 20px 0;\n}\n\n.skeleton-content {\n display: flex;\n flex-direction: column;\n gap: 29px;\n align-items: center;\n}\n\n.skeleton-item {\n background: var(--emw--color-gray-50, #f5f5f5);\n border-radius: 4px;\n}\n\n.skeleton-animated {\n animation: skeleton-shimmer 1.5s infinite linear;\n background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 37%, #f0f0f0 63%);\n background-size: 200% 100%;\n}\n\n@keyframes skeleton-shimmer {\n to {\n background-position: 100% 0;\n }\n}";export{Ih as L,ut as M,s as a,o as b,at as c,dt as d,ct as f,zh as g,Th as r,i as s,Sh as t}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as l,b as e}from"./index-9dee9d86.js";export{s as setNonce}from"./index-9dee9d86.js";import{g as n}from"./app-globals-0f993ce5.js";(()=>{const e=import.meta.url,n={};return""!==e&&(n.resourcesUrl=new URL(".",e).href),l(n)})().then((async l=>(await n(),e([["lottery-oddsbom-bullet_9",[[1,"lottery-oddsbom-ticket-bet",{endpoint:[513],
|
|
1
|
+
import{p as l,b as e}from"./index-9dee9d86.js";export{s as setNonce}from"./index-9dee9d86.js";import{g as n}from"./app-globals-0f993ce5.js";(()=>{const e=import.meta.url,n={};return""!==e&&(n.resourcesUrl=new URL(".",e).href),l(n)})().then((async l=>(await n(),e([["lottery-oddsbom-bullet_9",[[1,"lottery-oddsbom-ticket-bet",{endpoint:[513],gameId:[513,"game-id"],sessionId:[513,"session-id"],drawId:[513,"draw-id"],playerId:[513,"player-id"],mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],language:[513],isLoading:[32],isLoadingOdds:[32],isSubmitLoading:[32],matchInfo:[32],ticketBoardInfo:[32],gameConfig:[32],addSelectionConfig:[32],gameInfo:[32],dialogConfig:[32],oddsData:[32],oddsInfo:[32],oddsQuery:[32],saleStatisticsInfo:[32]},[[0,"oddsbomBulletGroupToggle","handleOddsBomBulletGroupToggle"],[0,"oddsbomBulletGroupAddedByMoreBtnDel","handleOddsBomBulletAddedByMoreBtnDelete"],[0,"oddsbomAddMoreToMatch","handleOddsBomAddMoreToMatch"],[0,"oddsbomBoardClear","handleOddsBomBoardClear"],[0,"oddschartFillIn","handleOddsChartFillIn"],[0,"oddsQueryChange","handleOddsQueryChange"],[0,"oddsQueryLineChange","handleOddsQueryLineChange"]],{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],ticketBoardInfo:["handleTicketBoardInfoChange"],canSubmit:["handleCanSubmitChange"]}],[1,"lottery-oddsbom-ticket-board",{ticketBoardInfo:[16],mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],language:[513],translationUrl:[513,"translation-url"],addSelectionConfig:[16],bulletsConfig:[32],isInputInvalid:[32],errorMessage:[32],dialogConfig:[32],curAddMoreInfo:[32]},[[0,"oddsbomBulletGroupToggle","handleOddsbomBulletGroupToggle"],[0,"oddsbomBulletCallDialogFromGroup","handleOddsbomBulletCallDialogFromGroup"]],{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}],[1,"lottery-oddsbom-oddschart",{matchInfo:[16],oddsInfo:[16],total:[2],curPage:[2,"cur-page"],limit:[2],offset:[2],filterdOdds:[1,"filterd-odds"],isSearching:[4,"is-searching"],mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],isLoading:[4,"is-loading"],language:[513],translationUrl:[513,"translation-url"],isAscend:[32],selectedGroupIndex:[32],matchSelection:[32],hasFillInSelection:[32],initOddsChart:[64],closeOddsChart:[64]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],matchInfo:["handleMatchInfoChange"]}],[1,"lottery-oddsbom-ticket-selection",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],ticketBoardInfo:[1040],language:[513],expanded:[32],_ticketBoardInfo:[32]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],ticketBoardInfo:["handleTicketBoradInfoChange"]}],[1,"lottery-oddsbom-oddschart-input",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],value:[513],getValue:[64],clearValue:[64]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}],[1,"lottery-tipping-dialog",{mbSource:[1,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],visible:[516],dialogTitle:[1,"dialog-title"],width:[1],closable:[4],mask:[4],maskClosable:[4,"mask-closable"],animationDuration:[2,"animation-duration"],fullscreen:[4],showFooter:[4,"show-footer"],showCancelBtn:[4,"show-cancel-btn"],language:[513],translationUrl:[520,"translation-url"]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}],[1,"lottery-oddsbom-bullet-group",{selectionIdx:[514,"selection-idx"],matchIdx:[514,"match-idx"],bulletConfigs:[16],bulletConfigsDeleteOrigin:[16],addSelectionConfig:[16],isDeleteByIcon:[516,"is-delete-by-icon"],mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],bulletListClass:[1,"bullet-list-class"],innerBulletConfigs:[32],innerBulletConfigsDeleteOrigin:[32]},[[0,"oddsbomBulletToggle","oddsbomBulletToggleHandler"],[0,"oddsbomBulletDelete","oddsbomBulletDeleteHandler"],[0,"oddsbomBulletAddedByMoreBtnDelete","oddsbomBulletAddedByMoreBtnDeleteHandler"],[0,"oddsbomBulletCallDialog","handleOddsbomBulletCallDialog"]],{bulletConfigs:["handleBulletConfigsChange"],bulletConfigsDeleteOrigin:["handleBulletConfigsDeleteOriginChange"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}],[1,"lottery-oddsbom-ticket-button",{variant:[513],size:[513],disabled:[516],loading:[516],text:[513],mbSource:[513,"mb-source"],language:[513],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],ripples:[32]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}],[1,"lottery-oddsbom-bullet",{isSelected:[516,"is-selected"],disabled:[516],text:[513],idx:[514],isReading:[516,"is-reading"],isDeleteByIcon:[516,"is-delete-by-icon"],isCallDialogBtn:[516,"is-call-dialog-btn"],isAddedByMoreBtn:[516,"is-added-by-more-btn"],mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}]]]],l))));
|
|
@@ -3,8 +3,6 @@ import { DrawEvent, TicketBoardItem, AddSelectionConfig, OddsResponse, OddsQuery
|
|
|
3
3
|
import "../../../../../../dist/libs/vaadin-facade/index";
|
|
4
4
|
export declare class LotteryOddsbomTicketBet {
|
|
5
5
|
endpoint: string;
|
|
6
|
-
endpointTicket: string;
|
|
7
|
-
endpointLotteryBe: string;
|
|
8
6
|
gameId: string;
|
|
9
7
|
sessionId: string;
|
|
10
8
|
drawId: string;
|
|
@@ -41,8 +41,6 @@ export namespace Components {
|
|
|
41
41
|
"clientStylingUrl": string;
|
|
42
42
|
"drawId": string;
|
|
43
43
|
"endpoint": string;
|
|
44
|
-
"endpointLotteryBe": string;
|
|
45
|
-
"endpointTicket": string;
|
|
46
44
|
"gameId": string;
|
|
47
45
|
"language": string;
|
|
48
46
|
"mbSource": string;
|
|
@@ -222,8 +220,6 @@ declare namespace LocalJSX {
|
|
|
222
220
|
"clientStylingUrl"?: string;
|
|
223
221
|
"drawId"?: string;
|
|
224
222
|
"endpoint"?: string;
|
|
225
|
-
"endpointLotteryBe"?: string;
|
|
226
|
-
"endpointTicket"?: string;
|
|
227
223
|
"gameId"?: string;
|
|
228
224
|
"language"?: string;
|
|
229
225
|
"mbSource"?: string;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export declare const generateUUID: () => string;
|
|
2
2
|
export declare function fetchRequest(url: string, method?: string, body?: any, headers?: {}): Promise<any>;
|
|
3
|
-
export declare const showNotification: ({ message, theme }: {
|
|
3
|
+
export declare const showNotification: ({ message, theme, renderOne }: {
|
|
4
4
|
message: string;
|
|
5
|
+
renderOne?: boolean;
|
|
5
6
|
theme?: 'success' | 'warning' | 'error' | 'info';
|
|
6
7
|
}) => void;
|
|
7
8
|
export declare const generateCombinations: (arr1: Array<string>, arr2: Array<string>) => any[];
|